",""]);var we=/<|?\w+;/;function Ae(e,t,n,r,i){for(var a,o,s,u,l,c,d=t.createDocumentFragment(),f=[],h=0,p=e.length;h-1)i&&i.push(a);else if(l=oe(a),o=ye(d.appendChild(a),"script"),l&&be(o),n)for(c=0;a=o[c++];)ge.test(a.type||"")&&n.push(a);return d}var xe=/^key/,Me=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ke=/^([^.]*)(?:\.(.+)|)/;function De(){return!0}function Le(){return!1}function Te(e,t){return e===function(){try{return y.activeElement}catch(e){}}()==("focus"===t)}function Se(e,t,n,r,i,a){var o,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)Se(e,s,n,r,t[s],a);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Le;else if(!i)return e;return 1===a&&(o=i,(i=function(e){return x().off(e),o.apply(this,arguments)}).guid=o.guid||(o.guid=x.guid++)),e.each((function(){x.event.add(this,t,i,r,n)}))}function Ye(e,t,n){n?(K.set(e,t,!1),x.event.add(e,t,{namespace:!1,handler:function(e){var r,i,a=K.get(this,t);if(1&e.isTrigger&&this[t]){if(a.length)(x.event.special[t]||{}).delegateType&&e.stopPropagation();else if(a=s.call(arguments),K.set(this,t,a),r=n(this,t),this[t](),a!==(i=K.get(this,t))||r?K.set(this,t,!1):i={},a!==i)return e.stopImmediatePropagation(),e.preventDefault(),i.value}else a.length&&(K.set(this,t,{value:x.event.trigger(x.extend(a[0],x.Event.prototype),a.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===K.get(e,t)&&x.event.add(e,t,De)}x.event={global:{},add:function(e,t,n,r,i){var a,o,s,u,l,c,d,f,h,p,m,_=K.get(e);if(J(e))for(n.handler&&(n=(a=n).handler,i=a.selector),i&&x.find.matchesSelector(ae,i),n.guid||(n.guid=x.guid++),(u=_.events)||(u=_.events=Object.create(null)),(o=_.handle)||(o=_.handle=function(t){return void 0!==x&&x.event.triggered!==t.type?x.event.dispatch.apply(e,arguments):void 0}),l=(t=(t||"").match(H)||[""]).length;l--;)h=m=(s=ke.exec(t[l])||[])[1],p=(s[2]||"").split(".").sort(),h&&(d=x.event.special[h]||{},h=(i?d.delegateType:d.bindType)||h,d=x.event.special[h]||{},c=x.extend({type:h,origType:m,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&x.expr.match.needsContext.test(i),namespace:p.join(".")},a),(f=u[h])||((f=u[h]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,r,p,o)||e.addEventListener&&e.addEventListener(h,o)),d.add&&(d.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),i?f.splice(f.delegateCount++,0,c):f.push(c),x.event.global[h]=!0)},remove:function(e,t,n,r,i){var a,o,s,u,l,c,d,f,h,p,m,_=K.hasData(e)&&K.get(e);if(_&&(u=_.events)){for(l=(t=(t||"").match(H)||[""]).length;l--;)if(h=m=(s=ke.exec(t[l])||[])[1],p=(s[2]||"").split(".").sort(),h){for(d=x.event.special[h]||{},f=u[h=(r?d.delegateType:d.bindType)||h]||[],s=s[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),o=a=f.length;a--;)c=f[a],!i&&m!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(f.splice(a,1),c.selector&&f.delegateCount--,d.remove&&d.remove.call(e,c));o&&!f.length&&(d.teardown&&!1!==d.teardown.call(e,p,_.handle)||x.removeEvent(e,h,_.handle),delete u[h])}else for(h in u)x.event.remove(e,h+t[l],n,r,!0);x.isEmptyObject(u)&&K.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,a,o,s=new Array(arguments.length),u=x.event.fix(e),l=(K.get(this,"events")||Object.create(null))[u.type]||[],c=x.event.special[u.type]||{};for(s[0]=u,t=1;t=1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==e.type||!0!==l.disabled)){for(a=[],o={},n=0;n-1:x.find(i,this,null,[l]).length),o[i]&&a.push(r);a.length&&s.push({elem:l,handlers:a})}return l=this,u\s*$/g;function Oe(e,t){return S(e,"table")&&S(11!==t.nodeType?t:t.firstChild,"tr")&&x(e).children("tbody")[0]||e}function Pe(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Ie(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function He(e,t){var n,r,i,a,o,s;if(1===t.nodeType){if(K.hasData(e)&&(s=K.get(e).events))for(i in K.remove(t,"handle events"),s)for(n=0,r=s[i].length;n1&&"string"==typeof p&&!_.checkClone&&Ee.test(p))return e.each((function(i){var a=e.eq(i);m&&(t[0]=p.call(this,i,a.html())),Fe(a,t,n,r)}));if(f&&(a=(i=Ae(t,e[0].ownerDocument,!1,e,r)).firstChild,1===i.childNodes.length&&(i=a),a||r)){for(s=(o=x.map(ye(i,"script"),Pe)).length;d0&&be(o,!u&&ye(e,"script")),s},cleanData:function(e){for(var t,n,r,i=x.event.special,a=0;void 0!==(n=e[a]);a++)if(J(n)){if(t=n[K.expando]){if(t.events)for(r in t.events)i[r]?x.event.remove(n,r):x.removeEvent(n,r,t.handle);n[K.expando]=void 0}n[Z.expando]&&(n[Z.expando]=void 0)}}}),x.fn.extend({detach:function(e){return Be(this,e,!0)},remove:function(e){return Be(this,e)},text:function(e){return W(this,(function(e){return void 0===e?x.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 Fe(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Oe(this,e).appendChild(e)}))},prepend:function(){return Fe(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Oe(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return Fe(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return Fe(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&&(x.cleanData(ye(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return x.clone(this,e,t)}))},html:function(e){return W(this,(function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Ce.test(e)&&!ve[(_e.exec(e)||["",""])[1].toLowerCase()]){e=x.htmlPrefilter(e);try{for(;n3,ae.removeChild(e)),s}}))}();var qe=["Webkit","Moz","ms"],Ge=y.createElement("div").style,Je={};function Qe(e){var t=x.cssProps[e]||Je[e];return t||(e in Ge?e:Je[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=qe.length;n--;)if((e=qe[n]+t)in Ge)return e}(e)||e)}var Ke=/^(none|table(?!-c[ea]).+)/,Ze=/^--/,Xe={position:"absolute",visibility:"hidden",display:"block"},et={letterSpacing:"0",fontWeight:"400"};function tt(e,t,n){var r=re.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function nt(e,t,n,r,i,a){var o="width"===t?1:0,s=0,u=0;if(n===(r?"border":"content"))return 0;for(;o<4;o+=2)"margin"===n&&(u+=x.css(e,n+ie[o],!0,i)),r?("content"===n&&(u-=x.css(e,"padding"+ie[o],!0,i)),"margin"!==n&&(u-=x.css(e,"border"+ie[o]+"Width",!0,i))):(u+=x.css(e,"padding"+ie[o],!0,i),"padding"!==n?u+=x.css(e,"border"+ie[o]+"Width",!0,i):s+=x.css(e,"border"+ie[o]+"Width",!0,i));return!r&&a>=0&&(u+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-a-u-s-.5))||0),u}function rt(e,t,n){var r=Re(e),i=(!_.boxSizingReliable()||n)&&"border-box"===x.css(e,"boxSizing",!1,r),a=i,o=Ve(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(ze.test(o)){if(!n)return o;o="auto"}return(!_.boxSizingReliable()&&i||!_.reliableTrDimensions()&&S(e,"tr")||"auto"===o||!parseFloat(o)&&"inline"===x.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===x.css(e,"boxSizing",!1,r),(a=s in e)&&(o=e[s])),(o=parseFloat(o)||0)+nt(e,t,n||(i?"border":"content"),a,r,o)+"px"}function it(e,t,n,r,i){return new it.prototype.init(e,t,n,r,i)}x.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ve(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,a,o,s=G(t),u=Ze.test(t),l=e.style;if(u||(t=Qe(s)),o=x.cssHooks[t]||x.cssHooks[s],void 0===n)return o&&"get"in o&&void 0!==(i=o.get(e,!1,r))?i:l[t];"string"===(a=typeof n)&&(i=re.exec(n))&&i[1]&&(n=le(e,t,i),a="number"),null!=n&&n==n&&("number"!==a||u||(n+=i&&i[3]||(x.cssNumber[s]?"":"px")),_.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),o&&"set"in o&&void 0===(n=o.set(e,n,r))||(u?l.setProperty(t,n):l[t]=n))}},css:function(e,t,n,r){var i,a,o,s=G(t);return Ze.test(t)||(t=Qe(s)),(o=x.cssHooks[t]||x.cssHooks[s])&&"get"in o&&(i=o.get(e,!0,n)),void 0===i&&(i=Ve(e,t,r)),"normal"===i&&t in et&&(i=et[t]),""===n||n?(a=parseFloat(i),!0===n||isFinite(a)?a||0:i):i}}),x.each(["height","width"],(function(e,t){x.cssHooks[t]={get:function(e,n,r){if(n)return!Ke.test(x.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?rt(e,t,r):$e(e,Xe,(function(){return rt(e,t,r)}))},set:function(e,n,r){var i,a=Re(e),o=!_.scrollboxSize()&&"absolute"===a.position,s=(o||r)&&"border-box"===x.css(e,"boxSizing",!1,a),u=r?nt(e,t,r,s,a):0;return s&&o&&(u-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(a[t])-nt(e,t,"border",!1,a)-.5)),u&&(i=re.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=x.css(e,t)),tt(0,n,u)}}})),x.cssHooks.marginLeft=Ue(_.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(Ve(e,"marginLeft"))||e.getBoundingClientRect().left-$e(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),x.each({margin:"",padding:"",border:"Width"},(function(e,t){x.cssHooks[e+t]={expand:function(n){for(var r=0,i={},a="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+ie[r]+t]=a[r]||a[r-2]||a[0];return i}},"margin"!==e&&(x.cssHooks[e+t].set=tt)})),x.fn.extend({css:function(e,t){return W(this,(function(e,t,n){var r,i,a={},o=0;if(Array.isArray(t)){for(r=Re(e),i=t.length;o1)}}),x.Tween=it,it.prototype={constructor:it,init:function(e,t,n,r,i,a){this.elem=e,this.prop=n,this.easing=i||x.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=a||(x.cssNumber[n]?"":"px")},cur:function(){var e=it.propHooks[this.prop];return e&&e.get?e.get(this):it.propHooks._default.get(this)},run:function(e){var t,n=it.propHooks[this.prop];return this.options.duration?this.pos=t=x.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):it.propHooks._default.set(this),this}},it.prototype.init.prototype=it.prototype,it.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=x.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){x.fx.step[e.prop]?x.fx.step[e.prop](e):1!==e.elem.nodeType||!x.cssHooks[e.prop]&&null==e.elem.style[Qe(e.prop)]?e.elem[e.prop]=e.now:x.style(e.elem,e.prop,e.now+e.unit)}}},it.propHooks.scrollTop=it.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},x.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},x.fx=it.prototype.init,x.fx.step={};var at,ot,st=/^(?:toggle|show|hide)$/,ut=/queueHooks$/;function lt(){ot&&(!1===y.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(lt):n.setTimeout(lt,x.fx.interval),x.fx.tick())}function ct(){return n.setTimeout((function(){at=void 0})),at=Date.now()}function dt(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=ie[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function ft(e,t,n){for(var r,i=(ht.tweeners[t]||[]).concat(ht.tweeners["*"]),a=0,o=i.length;a1)},removeAttr:function(e){return this.each((function(){x.removeAttr(this,e)}))}}),x.extend({attr:function(e,t,n){var r,i,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return void 0===e.getAttribute?x.prop(e,t,n):(1===a&&x.isXMLDoc(e)||(i=x.attrHooks[t.toLowerCase()]||(x.expr.match.bool.test(t)?pt:void 0)),void 0!==n?null===n?void x.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=x.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!_.radioValue&&"radio"===t&&S(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(H);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),pt={set:function(e,t,n){return!1===t?x.removeAttr(e,n):e.setAttribute(n,n),n}},x.each(x.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=mt[t]||x.find.attr;mt[t]=function(e,t,r){var i,a,o=t.toLowerCase();return r||(a=mt[o],mt[o]=i,i=null!=n(e,t,r)?o:null,mt[o]=a),i}}));var _t=/^(?:input|select|textarea|button)$/i,gt=/^(?:a|area)$/i;function vt(e){return(e.match(H)||[]).join(" ")}function yt(e){return e.getAttribute&&e.getAttribute("class")||""}function bt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(H)||[]}x.fn.extend({prop:function(e,t){return W(this,x.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[x.propFix[e]||e]}))}}),x.extend({prop:function(e,t,n){var r,i,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return 1===a&&x.isXMLDoc(e)||(t=x.propFix[t]||t,i=x.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=x.find.attr(e,"tabindex");return t?parseInt(t,10):_t.test(e.nodeName)||gt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),_.optSelected||(x.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)}}),x.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){x.propFix[this.toLowerCase()]=this})),x.fn.extend({addClass:function(e){var t,n,r,i,a,o,s,u=0;if(g(e))return this.each((function(t){x(this).addClass(e.call(this,t,yt(this)))}));if((t=bt(e)).length)for(;n=this[u++];)if(i=yt(n),r=1===n.nodeType&&" "+vt(i)+" "){for(o=0;a=t[o++];)r.indexOf(" "+a+" ")<0&&(r+=a+" ");i!==(s=vt(r))&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,r,i,a,o,s,u=0;if(g(e))return this.each((function(t){x(this).removeClass(e.call(this,t,yt(this)))}));if(!arguments.length)return this.attr("class","");if((t=bt(e)).length)for(;n=this[u++];)if(i=yt(n),r=1===n.nodeType&&" "+vt(i)+" "){for(o=0;a=t[o++];)for(;r.indexOf(" "+a+" ")>-1;)r=r.replace(" "+a+" "," ");i!==(s=vt(r))&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var n=typeof e,r="string"===n||Array.isArray(e);return"boolean"==typeof t&&r?t?this.addClass(e):this.removeClass(e):g(e)?this.each((function(n){x(this).toggleClass(e.call(this,n,yt(this),t),t)})):this.each((function(){var t,i,a,o;if(r)for(i=0,a=x(this),o=bt(e);t=o[i++];)a.hasClass(t)?a.removeClass(t):a.addClass(t);else void 0!==e&&"boolean"!==n||((t=yt(this))&&K.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":K.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+vt(yt(n))+" ").indexOf(t)>-1)return!0;return!1}});var wt=/\r/g;x.fn.extend({val:function(e){var t,n,r,i=this[0];return arguments.length?(r=g(e),this.each((function(n){var i;1===this.nodeType&&(null==(i=r?e.call(this,n,x(this).val()):e)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=x.map(i,(function(e){return null==e?"":e+""}))),(t=x.valHooks[this.type]||x.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))}))):i?(t=x.valHooks[i.type]||x.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(wt,""):null==n?"":n:void 0}}),x.extend({valHooks:{option:{get:function(e){var t=x.find.attr(e,"value");return null!=t?t:vt(x.text(e))}},select:{get:function(e){var t,n,r,i=e.options,a=e.selectedIndex,o="select-one"===e.type,s=o?null:[],u=o?a+1:i.length;for(r=a<0?u:o?a:0;r-1)&&(n=!0);return n||(e.selectedIndex=-1),a}}}}),x.each(["radio","checkbox"],(function(){x.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=x.inArray(x(e).val(),t)>-1}},_.checkOn||(x.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})})),_.focusin="onfocusin"in n;var At=/^(?:focusinfocus|focusoutblur)$/,xt=function(e){e.stopPropagation()};x.extend(x.event,{trigger:function(e,t,r,i){var a,o,s,u,l,c,d,f,p=[r||y],m=h.call(e,"type")?e.type:e,_=h.call(e,"namespace")?e.namespace.split("."):[];if(o=f=s=r=r||y,3!==r.nodeType&&8!==r.nodeType&&!At.test(m+x.event.triggered)&&(m.indexOf(".")>-1&&(_=m.split("."),m=_.shift(),_.sort()),l=m.indexOf(":")<0&&"on"+m,(e=e[x.expando]?e:new x.Event(m,"object"==typeof e&&e)).isTrigger=i?2:3,e.namespace=_.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+_.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=r),t=null==t?[e]:x.makeArray(t,[e]),d=x.event.special[m]||{},i||!d.trigger||!1!==d.trigger.apply(r,t))){if(!i&&!d.noBubble&&!v(r)){for(u=d.delegateType||m,At.test(u+m)||(o=o.parentNode);o;o=o.parentNode)p.push(o),s=o;s===(r.ownerDocument||y)&&p.push(s.defaultView||s.parentWindow||n)}for(a=0;(o=p[a++])&&!e.isPropagationStopped();)f=o,e.type=a>1?u:d.bindType||m,(c=(K.get(o,"events")||Object.create(null))[e.type]&&K.get(o,"handle"))&&c.apply(o,t),(c=l&&o[l])&&c.apply&&J(o)&&(e.result=c.apply(o,t),!1===e.result&&e.preventDefault());return e.type=m,i||e.isDefaultPrevented()||d._default&&!1!==d._default.apply(p.pop(),t)||!J(r)||l&&g(r[m])&&!v(r)&&((s=r[l])&&(r[l]=null),x.event.triggered=m,e.isPropagationStopped()&&f.addEventListener(m,xt),r[m](),e.isPropagationStopped()&&f.removeEventListener(m,xt),x.event.triggered=void 0,s&&(r[l]=s)),e.result}},simulate:function(e,t,n){var r=x.extend(new x.Event,n,{type:e,isSimulated:!0});x.event.trigger(r,null,t)}}),x.fn.extend({trigger:function(e,t){return this.each((function(){x.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return x.event.trigger(e,t,n,!0)}}),_.focusin||x.each({focus:"focusin",blur:"focusout"},(function(e,t){var n=function(e){x.event.simulate(t,e.target,x.event.fix(e))};x.event.special[t]={setup:function(){var r=this.ownerDocument||this.document||this,i=K.access(r,t);i||r.addEventListener(e,n,!0),K.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,i=K.access(r,t)-1;i?K.access(r,t,i):(r.removeEventListener(e,n,!0),K.remove(r,t))}}}));var Mt=n.location,kt={guid:Date.now()},Dt=/\?/;x.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new n.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||x.error("Invalid XML: "+e),t};var Lt=/\[\]$/,Tt=/\r?\n/g,St=/^(?:submit|button|image|reset|file)$/i,Yt=/^(?:input|select|textarea|keygen)/i;function Ct(e,t,n,r){var i;if(Array.isArray(t))x.each(t,(function(t,i){n||Lt.test(e)?r(e,i):Ct(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,r)}));else if(n||"object"!==A(t))r(e,t);else for(i in t)Ct(e+"["+i+"]",t[i],n,r)}x.param=function(e,t){var n,r=[],i=function(e,t){var n=g(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!x.isPlainObject(e))x.each(e,(function(){i(this.name,this.value)}));else for(n in e)Ct(n,e[n],t,i);return r.join("&")},x.fn.extend({serialize:function(){return x.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=x.prop(this,"elements");return e?x.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!x(this).is(":disabled")&&Yt.test(this.nodeName)&&!St.test(e)&&(this.checked||!me.test(e))})).map((function(e,t){var n=x(this).val();return null==n?null:Array.isArray(n)?x.map(n,(function(e){return{name:t.name,value:e.replace(Tt,"\r\n")}})):{name:t.name,value:n.replace(Tt,"\r\n")}})).get()}});var Et=/%20/g,jt=/#.*$/,Ot=/([?&])_=[^&]*/,Pt=/^(.*?):[ \t]*([^\r\n]*)$/gm,It=/^(?:GET|HEAD)$/,Ht=/^\/\//,Nt={},Ft={},Bt="*/".concat("*"),zt=y.createElement("a");function Rt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,a=t.toLowerCase().match(H)||[];if(g(n))for(;r=a[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function $t(e,t,n,r){var i={},a=e===Ft;function o(s){var u;return i[s]=!0,x.each(e[s]||[],(function(e,s){var l=s(t,n,r);return"string"!=typeof l||a||i[l]?a?!(u=l):void 0:(t.dataTypes.unshift(l),o(l),!1)})),u}return o(t.dataTypes[0])||!i["*"]&&o("*")}function Wt(e,t){var n,r,i=x.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&x.extend(!0,e,r),e}zt.href=Mt.href,x.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Mt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Mt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Bt,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":x.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Wt(Wt(e,x.ajaxSettings),t):Wt(x.ajaxSettings,e)},ajaxPrefilter:Rt(Nt),ajaxTransport:Rt(Ft),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var r,i,a,o,s,u,l,c,d,f,h=x.ajaxSetup({},t),p=h.context||h,m=h.context&&(p.nodeType||p.jquery)?x(p):x.event,_=x.Deferred(),g=x.Callbacks("once memory"),v=h.statusCode||{},b={},w={},A="canceled",M={readyState:0,getResponseHeader:function(e){var t;if(l){if(!o)for(o={};t=Pt.exec(a);)o[t[1].toLowerCase()+" "]=(o[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=o[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return l?a:null},setRequestHeader:function(e,t){return null==l&&(e=w[e.toLowerCase()]=w[e.toLowerCase()]||e,b[e]=t),this},overrideMimeType:function(e){return null==l&&(h.mimeType=e),this},statusCode:function(e){var t;if(e)if(l)M.always(e[M.status]);else for(t in e)v[t]=[v[t],e[t]];return this},abort:function(e){var t=e||A;return r&&r.abort(t),k(0,t),this}};if(_.promise(M),h.url=((e||h.url||Mt.href)+"").replace(Ht,Mt.protocol+"//"),h.type=t.method||t.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(H)||[""],null==h.crossDomain){u=y.createElement("a");try{u.href=h.url,u.href=u.href,h.crossDomain=zt.protocol+"//"+zt.host!=u.protocol+"//"+u.host}catch(e){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=x.param(h.data,h.traditional)),$t(Nt,h,t,M),l)return M;for(d in(c=x.event&&h.global)&&0==x.active++&&x.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!It.test(h.type),i=h.url.replace(jt,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(Et,"+")):(f=h.url.slice(i.length),h.data&&(h.processData||"string"==typeof h.data)&&(i+=(Dt.test(i)?"&":"?")+h.data,delete h.data),!1===h.cache&&(i=i.replace(Ot,"$1"),f=(Dt.test(i)?"&":"?")+"_="+kt.guid+++f),h.url=i+f),h.ifModified&&(x.lastModified[i]&&M.setRequestHeader("If-Modified-Since",x.lastModified[i]),x.etag[i]&&M.setRequestHeader("If-None-Match",x.etag[i])),(h.data&&h.hasContent&&!1!==h.contentType||t.contentType)&&M.setRequestHeader("Content-Type",h.contentType),M.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+Bt+"; q=0.01":""):h.accepts["*"]),h.headers)M.setRequestHeader(d,h.headers[d]);if(h.beforeSend&&(!1===h.beforeSend.call(p,M,h)||l))return M.abort();if(A="abort",g.add(h.complete),M.done(h.success),M.fail(h.error),r=$t(Ft,h,t,M)){if(M.readyState=1,c&&m.trigger("ajaxSend",[M,h]),l)return M;h.async&&h.timeout>0&&(s=n.setTimeout((function(){M.abort("timeout")}),h.timeout));try{l=!1,r.send(b,k)}catch(e){if(l)throw e;k(-1,e)}}else k(-1,"No Transport");function k(e,t,o,u){var d,f,y,b,w,A=t;l||(l=!0,s&&n.clearTimeout(s),r=void 0,a=u||"",M.readyState=e>0?4:0,d=e>=200&&e<300||304===e,o&&(b=function(e,t,n){for(var r,i,a,o,s=e.contents,u=e.dataTypes;"*"===u[0];)u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){u.unshift(i);break}if(u[0]in n)a=u[0];else{for(i in n){if(!u[0]||e.converters[i+" "+u[0]]){a=i;break}o||(o=i)}a=a||o}if(a)return a!==u[0]&&u.unshift(a),n[a]}(h,M,o)),!d&&x.inArray("script",h.dataTypes)>-1&&(h.converters["text script"]=function(){}),b=function(e,t,n,r){var i,a,o,s,u,l={},c=e.dataTypes.slice();if(c[1])for(o in e.converters)l[o.toLowerCase()]=e.converters[o];for(a=c.shift();a;)if(e.responseFields[a]&&(n[e.responseFields[a]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=a,a=c.shift())if("*"===a)a=u;else if("*"!==u&&u!==a){if(!(o=l[u+" "+a]||l["* "+a]))for(i in l)if((s=i.split(" "))[1]===a&&(o=l[u+" "+s[0]]||l["* "+s[0]])){!0===o?o=l[i]:!0!==l[i]&&(a=s[0],c.unshift(s[1]));break}if(!0!==o)if(o&&e.throws)t=o(t);else try{t=o(t)}catch(e){return{state:"parsererror",error:o?e:"No conversion from "+u+" to "+a}}}return{state:"success",data:t}}(h,b,M,d),d?(h.ifModified&&((w=M.getResponseHeader("Last-Modified"))&&(x.lastModified[i]=w),(w=M.getResponseHeader("etag"))&&(x.etag[i]=w)),204===e||"HEAD"===h.type?A="nocontent":304===e?A="notmodified":(A=b.state,f=b.data,d=!(y=b.error))):(y=A,!e&&A||(A="error",e<0&&(e=0))),M.status=e,M.statusText=(t||A)+"",d?_.resolveWith(p,[f,A,M]):_.rejectWith(p,[M,A,y]),M.statusCode(v),v=void 0,c&&m.trigger(d?"ajaxSuccess":"ajaxError",[M,h,d?f:y]),g.fireWith(p,[M,A]),c&&(m.trigger("ajaxComplete",[M,h]),--x.active||x.event.trigger("ajaxStop")))}return M},getJSON:function(e,t,n){return x.get(e,t,n,"json")},getScript:function(e,t){return x.get(e,void 0,t,"script")}}),x.each(["get","post"],(function(e,t){x[t]=function(e,n,r,i){return g(n)&&(i=i||r,r=n,n=void 0),x.ajax(x.extend({url:e,type:t,dataType:i,data:n,success:r},x.isPlainObject(e)&&e))}})),x.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),x._evalUrl=function(e,t,n){return x.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){x.globalEval(e,t,n)}})},x.fn.extend({wrapAll:function(e){var t;return this[0]&&(g(e)&&(e=e.call(this[0])),t=x(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){x(this).wrapInner(e.call(this,t))})):this.each((function(){var t=x(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=g(e);return this.each((function(n){x(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){x(this).replaceWith(this.childNodes)})),this}}),x.expr.pseudos.hidden=function(e){return!x.expr.pseudos.visible(e)},x.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},x.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(e){}};var Vt={0:200,1223:204},Ut=x.ajaxSettings.xhr();_.cors=!!Ut&&"withCredentials"in Ut,_.ajax=Ut=!!Ut,x.ajaxTransport((function(e){var t,r;if(_.cors||Ut&&!e.crossDomain)return{send:function(i,a){var o,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(o in e.xhrFields)s[o]=e.xhrFields[o];for(o in e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)s.setRequestHeader(o,i[o]);t=function(e){return function(){t&&(t=r=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(Vt[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(),r=s.onerror=s.ontimeout=t("error"),void 0!==s.onabort?s.onabort=r:s.onreadystatechange=function(){4===s.readyState&&n.setTimeout((function(){t&&r()}))},t=t("abort");try{s.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}})),x.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),x.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 x.globalEval(e),e}}}),x.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),x.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(r,i){t=x("\n\n\n","import { render, staticRenderFns } from \"./VueTypeaheadBootstrapListItem.vue?vue&type=template&id=5bf8ce45&scoped=true&\"\nimport script from \"./VueTypeaheadBootstrapListItem.vue?vue&type=script&lang=js&\"\nexport * from \"./VueTypeaheadBootstrapListItem.vue?vue&type=script&lang=js&\"\nimport style0 from \"./VueTypeaheadBootstrapListItem.vue?vue&type=style&index=0&id=5bf8ce45&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"5bf8ce45\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('a',{class:_vm.textClasses,attrs:{\"tabindex\":\"0\",\"href\":\"#\"},on:{\"keydown\":[function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"tab\",9,$event.key,\"Tab\")){ return null; }return _vm.$emit('listItemBlur')},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"esc\",27,$event.key,[\"Esc\",\"Escape\"])){ return null; }$event.stopPropagation();$event.preventDefault();return _vm.$emit('listItemBlur')},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"down\",40,$event.key,[\"Down\",\"ArrowDown\"])){ return null; }$event.preventDefault();},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"up\",38,$event.key,[\"Up\",\"ArrowUp\"])){ return null; }$event.preventDefault();}],\"keyup\":[function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"down\",40,$event.key,[\"Down\",\"ArrowDown\"])){ return null; }return _vm.$parent.selectNextListItem($event)},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"up\",38,$event.key,[\"Up\",\"ArrowUp\"])){ return null; }return _vm.$parent.selectPreviousListItem($event)}]}},[_c('div',{staticClass:\"sr-only\"},[_vm._v(_vm._s(_vm.screenReaderText))]),_vm._v(\" \"),_c('div',{attrs:{\"aria-hidden\":\"true\"}},[_vm._t(\"suggestion\",[_c('span',{domProps:{\"innerHTML\":_vm._s(_vm.htmlText)}})],null,{ data: _vm.data, htmlText: _vm.htmlText })],2)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n \n \n \n \n \n \n
\n \n\n\n","import mod from \"-!../../../vue-loader/lib/index.js??vue-loader-options!./VueTypeaheadBootstrapList.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../vue-loader/lib/index.js??vue-loader-options!./VueTypeaheadBootstrapList.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./VueTypeaheadBootstrapList.vue?vue&type=template&id=5143ced6&\"\nimport script from \"./VueTypeaheadBootstrapList.vue?vue&type=script&lang=js&\"\nexport * from \"./VueTypeaheadBootstrapList.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:\"suggestionList\",staticClass:\"list-group shadow\"},_vm._l((_vm.matchedItems),function(item,id){return _c('vue-typeahead-bootstrap-list-item',_vm._g({key:id,attrs:{\"active\":_vm.isListItemActive(id),\"id\":(_vm.isListItemActive(id)) ? (\"selected-option-\" + _vm.vbtUniqueId) : false,\"data\":item.data,\"html-text\":_vm.highlight(item.text),\"role\":\"option\",\"aria-selected\":(_vm.isListItemActive(id)) ? 'true' : 'false',\"screen-reader-text\":item.text,\"disabled\":_vm.isDisabledItem(item),\"background-variant\":_vm.backgroundVariant,\"background-variant-resolver\":_vm.backgroundVariantResolver,\"text-variant\":_vm.textVariant},nativeOn:{\"click\":function($event){return _vm.handleHit(item, $event)}},scopedSlots:_vm._u([{key:\"suggestion\",fn:function(ref){\nvar data = ref.data;\nvar htmlText = ref.htmlText;\nreturn (_vm.$scopedSlots.suggestion)?[_vm._t(\"suggestion\",null,null,{ data: data, htmlText: htmlText })]:undefined}}],null,true)},_vm.$listeners))}),1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../vue-loader/lib/index.js??vue-loader-options!./VueTypeaheadBootstrap.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../vue-loader/lib/index.js??vue-loader-options!./VueTypeaheadBootstrap.vue?vue&type=script&lang=js&\"","\n 0) ? 'true' : 'false'\"\n >\n
\n
\n \n {{ prepend }} \n \n
\n
\n
\n \n {{ append }} \n \n
\n
\n
0\"\n :query=\"inputValue\"\n :data=\"formattedData\"\n :background-variant=\"backgroundVariant\"\n :background-variant-resolver=\"backgroundVariantResolver\"\n :text-variant=\"textVariant\"\n :maxMatches=\"maxMatches\"\n :minMatchingChars=\"minMatchingChars\"\n :disableSort=\"disableSort\"\n :showOnFocus=\"showOnFocus\"\n :showAllResults=\"showAllResults\"\n @hit=\"handleHit\"\n @listItemBlur=\"handleChildBlur\"\n :highlightClass='highlightClass'\n :disabledValues=\"disabledValues\"\n :vbtUniqueId=\"id\"\n role=\"listbox\"\n >\n \n \n \n \n \n \n
\n \n\n\n\n\n","import { render, staticRenderFns } from \"./VueTypeaheadBootstrap.vue?vue&type=template&id=dbe69e32&scoped=true&\"\nimport script from \"./VueTypeaheadBootstrap.vue?vue&type=script&lang=js&\"\nexport * from \"./VueTypeaheadBootstrap.vue?vue&type=script&lang=js&\"\nimport style0 from \"./VueTypeaheadBootstrap.vue?vue&type=style&index=0&id=dbe69e32&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"dbe69e32\",\n null\n \n)\n\nexport default component.exports","var baseIsNative = require('./_baseIsNative'),\n getValue = require('./_getValue');\n\n/**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\nfunction getNative(object, key) {\n var value = getValue(object, key);\n return baseIsNative(value) ? value : undefined;\n}\n\nmodule.exports = getNative;\n","/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return value != null && (type == 'object' || type == 'function');\n}\n\nmodule.exports = isObject;\n","module.exports = function(module) {\n\tif (!module.webpackPolyfill) {\n\t\tmodule.deprecate = function() {};\n\t\tmodule.paths = [];\n\t\t// module.parent = undefined by default\n\t\tif (!module.children) module.children = [];\n\t\tObject.defineProperty(module, \"loaded\", {\n\t\t\tenumerable: true,\n\t\t\tget: function() {\n\t\t\t\treturn module.l;\n\t\t\t}\n\t\t});\n\t\tObject.defineProperty(module, \"id\", {\n\t\t\tenumerable: true,\n\t\t\tget: function() {\n\t\t\t\treturn module.i;\n\t\t\t}\n\t\t});\n\t\tmodule.webpackPolyfill = 1;\n\t}\n\treturn module;\n};\n","var Symbol = require('./_Symbol'),\n getRawTag = require('./_getRawTag'),\n objectToString = require('./_objectToString');\n\n/** `Object#toString` result references. */\nvar nullTag = '[object Null]',\n undefinedTag = '[object Undefined]';\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n}\n\nmodule.exports = baseGetTag;\n","var arrayLikeKeys = require('./_arrayLikeKeys'),\n baseKeys = require('./_baseKeys'),\n isArrayLike = require('./isArrayLike');\n\n/**\n * Creates an array of the own enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects. See the\n * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * for more details.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keys(new Foo);\n * // => ['a', 'b'] (iteration order is not guaranteed)\n *\n * _.keys('hi');\n * // => ['0', '1']\n */\nfunction keys(object) {\n return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);\n}\n\nmodule.exports = keys;\n","/*!\n * vue-i18n v8.22.4 \n * (c) 2021 kazuya kawaguchi\n * Released under the MIT License.\n */\n/* */\n\n/**\n * constants\n */\n\nvar numberFormatKeys = [\n 'compactDisplay',\n 'currency',\n 'currencyDisplay',\n 'currencySign',\n 'localeMatcher',\n 'notation',\n 'numberingSystem',\n 'signDisplay',\n 'style',\n 'unit',\n 'unitDisplay',\n 'useGrouping',\n 'minimumIntegerDigits',\n 'minimumFractionDigits',\n 'maximumFractionDigits',\n 'minimumSignificantDigits',\n 'maximumSignificantDigits'\n];\n\n/**\n * utilities\n */\n\nfunction warn (msg, err) {\n if (typeof console !== 'undefined') {\n console.warn('[vue-i18n] ' + msg);\n /* istanbul ignore if */\n if (err) {\n console.warn(err.stack);\n }\n }\n}\n\nfunction error (msg, err) {\n if (typeof console !== 'undefined') {\n console.error('[vue-i18n] ' + msg);\n /* istanbul ignore if */\n if (err) {\n console.error(err.stack);\n }\n }\n}\n\nvar isArray = Array.isArray;\n\nfunction isObject (obj) {\n return obj !== null && typeof obj === 'object'\n}\n\nfunction isBoolean (val) {\n return typeof val === 'boolean'\n}\n\nfunction isString (val) {\n return typeof val === 'string'\n}\n\nvar toString = Object.prototype.toString;\nvar OBJECT_STRING = '[object Object]';\nfunction isPlainObject (obj) {\n return toString.call(obj) === OBJECT_STRING\n}\n\nfunction isNull (val) {\n return val === null || val === undefined\n}\n\nfunction isFunction (val) {\n return typeof val === 'function'\n}\n\nfunction parseArgs () {\n var args = [], len = arguments.length;\n while ( len-- ) args[ len ] = arguments[ len ];\n\n var locale = null;\n var params = null;\n if (args.length === 1) {\n if (isObject(args[0]) || isArray(args[0])) {\n params = args[0];\n } else if (typeof args[0] === 'string') {\n locale = args[0];\n }\n } else if (args.length === 2) {\n if (typeof args[0] === 'string') {\n locale = args[0];\n }\n /* istanbul ignore if */\n if (isObject(args[1]) || isArray(args[1])) {\n params = args[1];\n }\n }\n\n return { locale: locale, params: params }\n}\n\nfunction looseClone (obj) {\n return JSON.parse(JSON.stringify(obj))\n}\n\nfunction remove (arr, item) {\n if (arr.length) {\n var index = arr.indexOf(item);\n if (index > -1) {\n return arr.splice(index, 1)\n }\n }\n}\n\nfunction includes (arr, item) {\n return !!~arr.indexOf(item)\n}\n\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nfunction hasOwn (obj, key) {\n return hasOwnProperty.call(obj, key)\n}\n\nfunction merge (target) {\n var arguments$1 = arguments;\n\n var output = Object(target);\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments$1[i];\n if (source !== undefined && source !== null) {\n var key = (void 0);\n for (key in source) {\n if (hasOwn(source, key)) {\n if (isObject(source[key])) {\n output[key] = merge(output[key], source[key]);\n } else {\n output[key] = source[key];\n }\n }\n }\n }\n }\n return output\n}\n\nfunction looseEqual (a, b) {\n if (a === b) { return true }\n var isObjectA = isObject(a);\n var isObjectB = isObject(b);\n if (isObjectA && isObjectB) {\n try {\n var isArrayA = isArray(a);\n var isArrayB = isArray(b);\n if (isArrayA && isArrayB) {\n return a.length === b.length && a.every(function (e, i) {\n return looseEqual(e, b[i])\n })\n } else if (!isArrayA && !isArrayB) {\n var keysA = Object.keys(a);\n var keysB = Object.keys(b);\n return keysA.length === keysB.length && keysA.every(function (key) {\n return looseEqual(a[key], b[key])\n })\n } else {\n /* istanbul ignore next */\n return false\n }\n } catch (e) {\n /* istanbul ignore next */\n return false\n }\n } else if (!isObjectA && !isObjectB) {\n return String(a) === String(b)\n } else {\n return false\n }\n}\n\n/**\n * Sanitizes html special characters from input strings. For mitigating risk of XSS attacks.\n * @param rawText The raw input from the user that should be escaped.\n */\nfunction escapeHtml(rawText) {\n return rawText\n .replace(//g, '>')\n .replace(/\"/g, '"')\n .replace(/'/g, ''')\n}\n\n/**\n * Escapes html tags and special symbols from all provided params which were returned from parseArgs().params.\n * This method performs an in-place operation on the params object.\n *\n * @param {any} params Parameters as provided from `parseArgs().params`.\n * May be either an array of strings or a string->any map.\n *\n * @returns The manipulated `params` object.\n */\nfunction escapeParams(params) {\n if(params != null) {\n Object.keys(params).forEach(function (key) {\n if(typeof(params[key]) == 'string') {\n params[key] = escapeHtml(params[key]);\n }\n });\n }\n return params\n}\n\n/* */\n\nfunction extend (Vue) {\n if (!Vue.prototype.hasOwnProperty('$i18n')) {\n // $FlowFixMe\n Object.defineProperty(Vue.prototype, '$i18n', {\n get: function get () { return this._i18n }\n });\n }\n\n Vue.prototype.$t = function (key) {\n var values = [], len = arguments.length - 1;\n while ( len-- > 0 ) values[ len ] = arguments[ len + 1 ];\n\n var i18n = this.$i18n;\n return i18n._t.apply(i18n, [ key, i18n.locale, i18n._getMessages(), this ].concat( values ))\n };\n\n Vue.prototype.$tc = function (key, choice) {\n var values = [], len = arguments.length - 2;\n while ( len-- > 0 ) values[ len ] = arguments[ len + 2 ];\n\n var i18n = this.$i18n;\n return i18n._tc.apply(i18n, [ key, i18n.locale, i18n._getMessages(), this, choice ].concat( values ))\n };\n\n Vue.prototype.$te = function (key, locale) {\n var i18n = this.$i18n;\n return i18n._te(key, i18n.locale, i18n._getMessages(), locale)\n };\n\n Vue.prototype.$d = function (value) {\n var ref;\n\n var args = [], len = arguments.length - 1;\n while ( len-- > 0 ) args[ len ] = arguments[ len + 1 ];\n return (ref = this.$i18n).d.apply(ref, [ value ].concat( args ))\n };\n\n Vue.prototype.$n = function (value) {\n var ref;\n\n var args = [], len = arguments.length - 1;\n while ( len-- > 0 ) args[ len ] = arguments[ len + 1 ];\n return (ref = this.$i18n).n.apply(ref, [ value ].concat( args ))\n };\n}\n\n/* */\n\nvar mixin = {\n beforeCreate: function beforeCreate () {\n var options = this.$options;\n options.i18n = options.i18n || (options.__i18n ? {} : null);\n\n if (options.i18n) {\n if (options.i18n instanceof VueI18n) {\n // init locale messages via custom blocks\n if (options.__i18n) {\n try {\n var localeMessages = options.i18n && options.i18n.messages ? options.i18n.messages : {};\n options.__i18n.forEach(function (resource) {\n localeMessages = merge(localeMessages, JSON.parse(resource));\n });\n Object.keys(localeMessages).forEach(function (locale) {\n options.i18n.mergeLocaleMessage(locale, localeMessages[locale]);\n });\n } catch (e) {\n if (process.env.NODE_ENV !== 'production') {\n error(\"Cannot parse locale messages via custom blocks.\", e);\n }\n }\n }\n this._i18n = options.i18n;\n this._i18nWatcher = this._i18n.watchI18nData();\n } else if (isPlainObject(options.i18n)) {\n var rootI18n = this.$root && this.$root.$i18n && this.$root.$i18n instanceof VueI18n\n ? this.$root.$i18n\n : null;\n // component local i18n\n if (rootI18n) {\n options.i18n.root = this.$root;\n options.i18n.formatter = rootI18n.formatter;\n options.i18n.fallbackLocale = rootI18n.fallbackLocale;\n options.i18n.formatFallbackMessages = rootI18n.formatFallbackMessages;\n options.i18n.silentTranslationWarn = rootI18n.silentTranslationWarn;\n options.i18n.silentFallbackWarn = rootI18n.silentFallbackWarn;\n options.i18n.pluralizationRules = rootI18n.pluralizationRules;\n options.i18n.preserveDirectiveContent = rootI18n.preserveDirectiveContent;\n }\n\n // init locale messages via custom blocks\n if (options.__i18n) {\n try {\n var localeMessages$1 = options.i18n && options.i18n.messages ? options.i18n.messages : {};\n options.__i18n.forEach(function (resource) {\n localeMessages$1 = merge(localeMessages$1, JSON.parse(resource));\n });\n options.i18n.messages = localeMessages$1;\n } catch (e) {\n if (process.env.NODE_ENV !== 'production') {\n warn(\"Cannot parse locale messages via custom blocks.\", e);\n }\n }\n }\n\n var ref = options.i18n;\n var sharedMessages = ref.sharedMessages;\n if (sharedMessages && isPlainObject(sharedMessages)) {\n options.i18n.messages = merge(options.i18n.messages, sharedMessages);\n }\n\n this._i18n = new VueI18n(options.i18n);\n this._i18nWatcher = this._i18n.watchI18nData();\n\n if (options.i18n.sync === undefined || !!options.i18n.sync) {\n this._localeWatcher = this.$i18n.watchLocale();\n }\n\n if (rootI18n) {\n rootI18n.onComponentInstanceCreated(this._i18n);\n }\n } else {\n if (process.env.NODE_ENV !== 'production') {\n warn(\"Cannot be interpreted 'i18n' option.\");\n }\n }\n } else if (this.$root && this.$root.$i18n && this.$root.$i18n instanceof VueI18n) {\n // root i18n\n this._i18n = this.$root.$i18n;\n } else if (options.parent && options.parent.$i18n && options.parent.$i18n instanceof VueI18n) {\n // parent i18n\n this._i18n = options.parent.$i18n;\n }\n },\n\n beforeMount: function beforeMount () {\n var options = this.$options;\n options.i18n = options.i18n || (options.__i18n ? {} : null);\n\n if (options.i18n) {\n if (options.i18n instanceof VueI18n) {\n // init locale messages via custom blocks\n this._i18n.subscribeDataChanging(this);\n this._subscribing = true;\n } else if (isPlainObject(options.i18n)) {\n this._i18n.subscribeDataChanging(this);\n this._subscribing = true;\n } else {\n if (process.env.NODE_ENV !== 'production') {\n warn(\"Cannot be interpreted 'i18n' option.\");\n }\n }\n } else if (this.$root && this.$root.$i18n && this.$root.$i18n instanceof VueI18n) {\n this._i18n.subscribeDataChanging(this);\n this._subscribing = true;\n } else if (options.parent && options.parent.$i18n && options.parent.$i18n instanceof VueI18n) {\n this._i18n.subscribeDataChanging(this);\n this._subscribing = true;\n }\n },\n\n beforeDestroy: function beforeDestroy () {\n if (!this._i18n) { return }\n\n var self = this;\n this.$nextTick(function () {\n if (self._subscribing) {\n self._i18n.unsubscribeDataChanging(self);\n delete self._subscribing;\n }\n\n if (self._i18nWatcher) {\n self._i18nWatcher();\n self._i18n.destroyVM();\n delete self._i18nWatcher;\n }\n\n if (self._localeWatcher) {\n self._localeWatcher();\n delete self._localeWatcher;\n }\n });\n }\n};\n\n/* */\n\nvar interpolationComponent = {\n name: 'i18n',\n functional: true,\n props: {\n tag: {\n type: [String, Boolean, Object],\n default: 'span'\n },\n path: {\n type: String,\n required: true\n },\n locale: {\n type: String\n },\n places: {\n type: [Array, Object]\n }\n },\n render: function render (h, ref) {\n var data = ref.data;\n var parent = ref.parent;\n var props = ref.props;\n var slots = ref.slots;\n\n var $i18n = parent.$i18n;\n if (!$i18n) {\n if (process.env.NODE_ENV !== 'production') {\n warn('Cannot find VueI18n instance!');\n }\n return\n }\n\n var path = props.path;\n var locale = props.locale;\n var places = props.places;\n var params = slots();\n var children = $i18n.i(\n path,\n locale,\n onlyHasDefaultPlace(params) || places\n ? useLegacyPlaces(params.default, places)\n : params\n );\n\n var tag = (!!props.tag && props.tag !== true) || props.tag === false ? props.tag : 'span';\n return tag ? h(tag, data, children) : children\n }\n};\n\nfunction onlyHasDefaultPlace (params) {\n var prop;\n for (prop in params) {\n if (prop !== 'default') { return false }\n }\n return Boolean(prop)\n}\n\nfunction useLegacyPlaces (children, places) {\n var params = places ? createParamsFromPlaces(places) : {};\n\n if (!children) { return params }\n\n // Filter empty text nodes\n children = children.filter(function (child) {\n return child.tag || child.text.trim() !== ''\n });\n\n var everyPlace = children.every(vnodeHasPlaceAttribute);\n if (process.env.NODE_ENV !== 'production' && everyPlace) {\n warn('`place` attribute is deprecated in next major version. Please switch to Vue slots.');\n }\n\n return children.reduce(\n everyPlace ? assignChildPlace : assignChildIndex,\n params\n )\n}\n\nfunction createParamsFromPlaces (places) {\n if (process.env.NODE_ENV !== 'production') {\n warn('`places` prop is deprecated in next major version. Please switch to Vue slots.');\n }\n\n return Array.isArray(places)\n ? places.reduce(assignChildIndex, {})\n : Object.assign({}, places)\n}\n\nfunction assignChildPlace (params, child) {\n if (child.data && child.data.attrs && child.data.attrs.place) {\n params[child.data.attrs.place] = child;\n }\n return params\n}\n\nfunction assignChildIndex (params, child, index) {\n params[index] = child;\n return params\n}\n\nfunction vnodeHasPlaceAttribute (vnode) {\n return Boolean(vnode.data && vnode.data.attrs && vnode.data.attrs.place)\n}\n\n/* */\n\nvar numberComponent = {\n name: 'i18n-n',\n functional: true,\n props: {\n tag: {\n type: [String, Boolean, Object],\n default: 'span'\n },\n value: {\n type: Number,\n required: true\n },\n format: {\n type: [String, Object]\n },\n locale: {\n type: String\n }\n },\n render: function render (h, ref) {\n var props = ref.props;\n var parent = ref.parent;\n var data = ref.data;\n\n var i18n = parent.$i18n;\n\n if (!i18n) {\n if (process.env.NODE_ENV !== 'production') {\n warn('Cannot find VueI18n instance!');\n }\n return null\n }\n\n var key = null;\n var options = null;\n\n if (isString(props.format)) {\n key = props.format;\n } else if (isObject(props.format)) {\n if (props.format.key) {\n key = props.format.key;\n }\n\n // Filter out number format options only\n options = Object.keys(props.format).reduce(function (acc, prop) {\n var obj;\n\n if (includes(numberFormatKeys, prop)) {\n return Object.assign({}, acc, ( obj = {}, obj[prop] = props.format[prop], obj ))\n }\n return acc\n }, null);\n }\n\n var locale = props.locale || i18n.locale;\n var parts = i18n._ntp(props.value, locale, key, options);\n\n var values = parts.map(function (part, index) {\n var obj;\n\n var slot = data.scopedSlots && data.scopedSlots[part.type];\n return slot ? slot(( obj = {}, obj[part.type] = part.value, obj.index = index, obj.parts = parts, obj )) : part.value\n });\n\n var tag = (!!props.tag && props.tag !== true) || props.tag === false ? props.tag : 'span';\n return tag\n ? h(tag, {\n attrs: data.attrs,\n 'class': data['class'],\n staticClass: data.staticClass\n }, values)\n : values\n }\n};\n\n/* */\n\nfunction bind (el, binding, vnode) {\n if (!assert(el, vnode)) { return }\n\n t(el, binding, vnode);\n}\n\nfunction update (el, binding, vnode, oldVNode) {\n if (!assert(el, vnode)) { return }\n\n var i18n = vnode.context.$i18n;\n if (localeEqual(el, vnode) &&\n (looseEqual(binding.value, binding.oldValue) &&\n looseEqual(el._localeMessage, i18n.getLocaleMessage(i18n.locale)))) { return }\n\n t(el, binding, vnode);\n}\n\nfunction unbind (el, binding, vnode, oldVNode) {\n var vm = vnode.context;\n if (!vm) {\n warn('Vue instance does not exists in VNode context');\n return\n }\n\n var i18n = vnode.context.$i18n || {};\n if (!binding.modifiers.preserve && !i18n.preserveDirectiveContent) {\n el.textContent = '';\n }\n el._vt = undefined;\n delete el['_vt'];\n el._locale = undefined;\n delete el['_locale'];\n el._localeMessage = undefined;\n delete el['_localeMessage'];\n}\n\nfunction assert (el, vnode) {\n var vm = vnode.context;\n if (!vm) {\n warn('Vue instance does not exists in VNode context');\n return false\n }\n\n if (!vm.$i18n) {\n warn('VueI18n instance does not exists in Vue instance');\n return false\n }\n\n return true\n}\n\nfunction localeEqual (el, vnode) {\n var vm = vnode.context;\n return el._locale === vm.$i18n.locale\n}\n\nfunction t (el, binding, vnode) {\n var ref$1, ref$2;\n\n var value = binding.value;\n\n var ref = parseValue(value);\n var path = ref.path;\n var locale = ref.locale;\n var args = ref.args;\n var choice = ref.choice;\n if (!path && !locale && !args) {\n warn('value type not supported');\n return\n }\n\n if (!path) {\n warn('`path` is required in v-t directive');\n return\n }\n\n var vm = vnode.context;\n if (choice != null) {\n el._vt = el.textContent = (ref$1 = vm.$i18n).tc.apply(ref$1, [ path, choice ].concat( makeParams(locale, args) ));\n } else {\n el._vt = el.textContent = (ref$2 = vm.$i18n).t.apply(ref$2, [ path ].concat( makeParams(locale, args) ));\n }\n el._locale = vm.$i18n.locale;\n el._localeMessage = vm.$i18n.getLocaleMessage(vm.$i18n.locale);\n}\n\nfunction parseValue (value) {\n var path;\n var locale;\n var args;\n var choice;\n\n if (isString(value)) {\n path = value;\n } else if (isPlainObject(value)) {\n path = value.path;\n locale = value.locale;\n args = value.args;\n choice = value.choice;\n }\n\n return { path: path, locale: locale, args: args, choice: choice }\n}\n\nfunction makeParams (locale, args) {\n var params = [];\n\n locale && params.push(locale);\n if (args && (Array.isArray(args) || isPlainObject(args))) {\n params.push(args);\n }\n\n return params\n}\n\nvar Vue;\n\nfunction install (_Vue) {\n /* istanbul ignore if */\n if (process.env.NODE_ENV !== 'production' && install.installed && _Vue === Vue) {\n warn('already installed.');\n return\n }\n install.installed = true;\n\n Vue = _Vue;\n\n var version = (Vue.version && Number(Vue.version.split('.')[0])) || -1;\n /* istanbul ignore if */\n if (process.env.NODE_ENV !== 'production' && version < 2) {\n warn((\"vue-i18n (\" + (install.version) + \") need to use Vue 2.0 or later (Vue: \" + (Vue.version) + \").\"));\n return\n }\n\n extend(Vue);\n Vue.mixin(mixin);\n Vue.directive('t', { bind: bind, update: update, unbind: unbind });\n Vue.component(interpolationComponent.name, interpolationComponent);\n Vue.component(numberComponent.name, numberComponent);\n\n // use simple mergeStrategies to prevent i18n instance lose '__proto__'\n var strats = Vue.config.optionMergeStrategies;\n strats.i18n = function (parentVal, childVal) {\n return childVal === undefined\n ? parentVal\n : childVal\n };\n}\n\n/* */\n\nvar BaseFormatter = function BaseFormatter () {\n this._caches = Object.create(null);\n};\n\nBaseFormatter.prototype.interpolate = function interpolate (message, values) {\n if (!values) {\n return [message]\n }\n var tokens = this._caches[message];\n if (!tokens) {\n tokens = parse(message);\n this._caches[message] = tokens;\n }\n return compile(tokens, values)\n};\n\n\n\nvar RE_TOKEN_LIST_VALUE = /^(?:\\d)+/;\nvar RE_TOKEN_NAMED_VALUE = /^(?:\\w)+/;\n\nfunction parse (format) {\n var tokens = [];\n var position = 0;\n\n var text = '';\n while (position < format.length) {\n var char = format[position++];\n if (char === '{') {\n if (text) {\n tokens.push({ type: 'text', value: text });\n }\n\n text = '';\n var sub = '';\n char = format[position++];\n while (char !== undefined && char !== '}') {\n sub += char;\n char = format[position++];\n }\n var isClosed = char === '}';\n\n var type = RE_TOKEN_LIST_VALUE.test(sub)\n ? 'list'\n : isClosed && RE_TOKEN_NAMED_VALUE.test(sub)\n ? 'named'\n : 'unknown';\n tokens.push({ value: sub, type: type });\n } else if (char === '%') {\n // when found rails i18n syntax, skip text capture\n if (format[(position)] !== '{') {\n text += char;\n }\n } else {\n text += char;\n }\n }\n\n text && tokens.push({ type: 'text', value: text });\n\n return tokens\n}\n\nfunction compile (tokens, values) {\n var compiled = [];\n var index = 0;\n\n var mode = Array.isArray(values)\n ? 'list'\n : isObject(values)\n ? 'named'\n : 'unknown';\n if (mode === 'unknown') { return compiled }\n\n while (index < tokens.length) {\n var token = tokens[index];\n switch (token.type) {\n case 'text':\n compiled.push(token.value);\n break\n case 'list':\n compiled.push(values[parseInt(token.value, 10)]);\n break\n case 'named':\n if (mode === 'named') {\n compiled.push((values)[token.value]);\n } else {\n if (process.env.NODE_ENV !== 'production') {\n warn((\"Type of token '\" + (token.type) + \"' and format of value '\" + mode + \"' don't match!\"));\n }\n }\n break\n case 'unknown':\n if (process.env.NODE_ENV !== 'production') {\n warn(\"Detect 'unknown' type of token!\");\n }\n break\n }\n index++;\n }\n\n return compiled\n}\n\n/* */\n\n/**\n * Path parser\n * - Inspired:\n * Vue.js Path parser\n */\n\n// actions\nvar APPEND = 0;\nvar PUSH = 1;\nvar INC_SUB_PATH_DEPTH = 2;\nvar PUSH_SUB_PATH = 3;\n\n// states\nvar BEFORE_PATH = 0;\nvar IN_PATH = 1;\nvar BEFORE_IDENT = 2;\nvar IN_IDENT = 3;\nvar IN_SUB_PATH = 4;\nvar IN_SINGLE_QUOTE = 5;\nvar IN_DOUBLE_QUOTE = 6;\nvar AFTER_PATH = 7;\nvar ERROR = 8;\n\nvar pathStateMachine = [];\n\npathStateMachine[BEFORE_PATH] = {\n 'ws': [BEFORE_PATH],\n 'ident': [IN_IDENT, APPEND],\n '[': [IN_SUB_PATH],\n 'eof': [AFTER_PATH]\n};\n\npathStateMachine[IN_PATH] = {\n 'ws': [IN_PATH],\n '.': [BEFORE_IDENT],\n '[': [IN_SUB_PATH],\n 'eof': [AFTER_PATH]\n};\n\npathStateMachine[BEFORE_IDENT] = {\n 'ws': [BEFORE_IDENT],\n 'ident': [IN_IDENT, APPEND],\n '0': [IN_IDENT, APPEND],\n 'number': [IN_IDENT, APPEND]\n};\n\npathStateMachine[IN_IDENT] = {\n 'ident': [IN_IDENT, APPEND],\n '0': [IN_IDENT, APPEND],\n 'number': [IN_IDENT, APPEND],\n 'ws': [IN_PATH, PUSH],\n '.': [BEFORE_IDENT, PUSH],\n '[': [IN_SUB_PATH, PUSH],\n 'eof': [AFTER_PATH, PUSH]\n};\n\npathStateMachine[IN_SUB_PATH] = {\n \"'\": [IN_SINGLE_QUOTE, APPEND],\n '\"': [IN_DOUBLE_QUOTE, APPEND],\n '[': [IN_SUB_PATH, INC_SUB_PATH_DEPTH],\n ']': [IN_PATH, PUSH_SUB_PATH],\n 'eof': ERROR,\n 'else': [IN_SUB_PATH, APPEND]\n};\n\npathStateMachine[IN_SINGLE_QUOTE] = {\n \"'\": [IN_SUB_PATH, APPEND],\n 'eof': ERROR,\n 'else': [IN_SINGLE_QUOTE, APPEND]\n};\n\npathStateMachine[IN_DOUBLE_QUOTE] = {\n '\"': [IN_SUB_PATH, APPEND],\n 'eof': ERROR,\n 'else': [IN_DOUBLE_QUOTE, APPEND]\n};\n\n/**\n * Check if an expression is a literal value.\n */\n\nvar literalValueRE = /^\\s?(?:true|false|-?[\\d.]+|'[^']*'|\"[^\"]*\")\\s?$/;\nfunction isLiteral (exp) {\n return literalValueRE.test(exp)\n}\n\n/**\n * Strip quotes from a string\n */\n\nfunction stripQuotes (str) {\n var a = str.charCodeAt(0);\n var b = str.charCodeAt(str.length - 1);\n return a === b && (a === 0x22 || a === 0x27)\n ? str.slice(1, -1)\n : str\n}\n\n/**\n * Determine the type of a character in a keypath.\n */\n\nfunction getPathCharType (ch) {\n if (ch === undefined || ch === null) { return 'eof' }\n\n var code = ch.charCodeAt(0);\n\n switch (code) {\n case 0x5B: // [\n case 0x5D: // ]\n case 0x2E: // .\n case 0x22: // \"\n case 0x27: // '\n return ch\n\n case 0x5F: // _\n case 0x24: // $\n case 0x2D: // -\n return 'ident'\n\n case 0x09: // Tab\n case 0x0A: // Newline\n case 0x0D: // Return\n case 0xA0: // No-break space\n case 0xFEFF: // Byte Order Mark\n case 0x2028: // Line Separator\n case 0x2029: // Paragraph Separator\n return 'ws'\n }\n\n return 'ident'\n}\n\n/**\n * Format a subPath, return its plain form if it is\n * a literal string or number. Otherwise prepend the\n * dynamic indicator (*).\n */\n\nfunction formatSubPath (path) {\n var trimmed = path.trim();\n // invalid leading 0\n if (path.charAt(0) === '0' && isNaN(path)) { return false }\n\n return isLiteral(trimmed) ? stripQuotes(trimmed) : '*' + trimmed\n}\n\n/**\n * Parse a string path into an array of segments\n */\n\nfunction parse$1 (path) {\n var keys = [];\n var index = -1;\n var mode = BEFORE_PATH;\n var subPathDepth = 0;\n var c;\n var key;\n var newChar;\n var type;\n var transition;\n var action;\n var typeMap;\n var actions = [];\n\n actions[PUSH] = function () {\n if (key !== undefined) {\n keys.push(key);\n key = undefined;\n }\n };\n\n actions[APPEND] = function () {\n if (key === undefined) {\n key = newChar;\n } else {\n key += newChar;\n }\n };\n\n actions[INC_SUB_PATH_DEPTH] = function () {\n actions[APPEND]();\n subPathDepth++;\n };\n\n actions[PUSH_SUB_PATH] = function () {\n if (subPathDepth > 0) {\n subPathDepth--;\n mode = IN_SUB_PATH;\n actions[APPEND]();\n } else {\n subPathDepth = 0;\n if (key === undefined) { return false }\n key = formatSubPath(key);\n if (key === false) {\n return false\n } else {\n actions[PUSH]();\n }\n }\n };\n\n function maybeUnescapeQuote () {\n var nextChar = path[index + 1];\n if ((mode === IN_SINGLE_QUOTE && nextChar === \"'\") ||\n (mode === IN_DOUBLE_QUOTE && nextChar === '\"')) {\n index++;\n newChar = '\\\\' + nextChar;\n actions[APPEND]();\n return true\n }\n }\n\n while (mode !== null) {\n index++;\n c = path[index];\n\n if (c === '\\\\' && maybeUnescapeQuote()) {\n continue\n }\n\n type = getPathCharType(c);\n typeMap = pathStateMachine[mode];\n transition = typeMap[type] || typeMap['else'] || ERROR;\n\n if (transition === ERROR) {\n return // parse error\n }\n\n mode = transition[0];\n action = actions[transition[1]];\n if (action) {\n newChar = transition[2];\n newChar = newChar === undefined\n ? c\n : newChar;\n if (action() === false) {\n return\n }\n }\n\n if (mode === AFTER_PATH) {\n return keys\n }\n }\n}\n\n\n\n\n\nvar I18nPath = function I18nPath () {\n this._cache = Object.create(null);\n};\n\n/**\n * External parse that check for a cache hit first\n */\nI18nPath.prototype.parsePath = function parsePath (path) {\n var hit = this._cache[path];\n if (!hit) {\n hit = parse$1(path);\n if (hit) {\n this._cache[path] = hit;\n }\n }\n return hit || []\n};\n\n/**\n * Get path value from path string\n */\nI18nPath.prototype.getPathValue = function getPathValue (obj, path) {\n if (!isObject(obj)) { return null }\n\n var paths = this.parsePath(path);\n if (paths.length === 0) {\n return null\n } else {\n var length = paths.length;\n var last = obj;\n var i = 0;\n while (i < length) {\n var value = last[paths[i]];\n if (value === undefined) {\n return null\n }\n last = value;\n i++;\n }\n\n return last\n }\n};\n\n/* */\n\n\n\nvar htmlTagMatcher = /<\\/?[\\w\\s=\"/.':;#-\\/]+>/;\nvar linkKeyMatcher = /(?:@(?:\\.[a-z]+)?:(?:[\\w\\-_|.]+|\\([\\w\\-_|.]+\\)))/g;\nvar linkKeyPrefixMatcher = /^@(?:\\.([a-z]+))?:/;\nvar bracketsMatcher = /[()]/g;\nvar defaultModifiers = {\n 'upper': function (str) { return str.toLocaleUpperCase(); },\n 'lower': function (str) { return str.toLocaleLowerCase(); },\n 'capitalize': function (str) { return (\"\" + (str.charAt(0).toLocaleUpperCase()) + (str.substr(1))); }\n};\n\nvar defaultFormatter = new BaseFormatter();\n\nvar VueI18n = function VueI18n (options) {\n var this$1 = this;\n if ( options === void 0 ) options = {};\n\n // Auto install if it is not done yet and `window` has `Vue`.\n // To allow users to avoid auto-installation in some cases,\n // this code should be placed here. See #290\n /* istanbul ignore if */\n if (!Vue && typeof window !== 'undefined' && window.Vue) {\n install(window.Vue);\n }\n\n var locale = options.locale || 'en-US';\n var fallbackLocale = options.fallbackLocale === false\n ? false\n : options.fallbackLocale || 'en-US';\n var messages = options.messages || {};\n var dateTimeFormats = options.dateTimeFormats || {};\n var numberFormats = options.numberFormats || {};\n\n this._vm = null;\n this._formatter = options.formatter || defaultFormatter;\n this._modifiers = options.modifiers || {};\n this._missing = options.missing || null;\n this._root = options.root || null;\n this._sync = options.sync === undefined ? true : !!options.sync;\n this._fallbackRoot = options.fallbackRoot === undefined\n ? true\n : !!options.fallbackRoot;\n this._formatFallbackMessages = options.formatFallbackMessages === undefined\n ? false\n : !!options.formatFallbackMessages;\n this._silentTranslationWarn = options.silentTranslationWarn === undefined\n ? false\n : options.silentTranslationWarn;\n this._silentFallbackWarn = options.silentFallbackWarn === undefined\n ? false\n : !!options.silentFallbackWarn;\n this._dateTimeFormatters = {};\n this._numberFormatters = {};\n this._path = new I18nPath();\n this._dataListeners = [];\n this._componentInstanceCreatedListener = options.componentInstanceCreatedListener || null;\n this._preserveDirectiveContent = options.preserveDirectiveContent === undefined\n ? false\n : !!options.preserveDirectiveContent;\n this.pluralizationRules = options.pluralizationRules || {};\n this._warnHtmlInMessage = options.warnHtmlInMessage || 'off';\n this._postTranslation = options.postTranslation || null;\n this._escapeParameterHtml = options.escapeParameterHtml || false;\n\n /**\n * @param choice {number} a choice index given by the input to $tc: `$tc('path.to.rule', choiceIndex)`\n * @param choicesLength {number} an overall amount of available choices\n * @returns a final choice index\n */\n this.getChoiceIndex = function (choice, choicesLength) {\n var thisPrototype = Object.getPrototypeOf(this$1);\n if (thisPrototype && thisPrototype.getChoiceIndex) {\n var prototypeGetChoiceIndex = (thisPrototype.getChoiceIndex);\n return (prototypeGetChoiceIndex).call(this$1, choice, choicesLength)\n }\n\n // Default (old) getChoiceIndex implementation - english-compatible\n var defaultImpl = function (_choice, _choicesLength) {\n _choice = Math.abs(_choice);\n\n if (_choicesLength === 2) {\n return _choice\n ? _choice > 1\n ? 1\n : 0\n : 1\n }\n\n return _choice ? Math.min(_choice, 2) : 0\n };\n\n if (this$1.locale in this$1.pluralizationRules) {\n return this$1.pluralizationRules[this$1.locale].apply(this$1, [choice, choicesLength])\n } else {\n return defaultImpl(choice, choicesLength)\n }\n };\n\n\n this._exist = function (message, key) {\n if (!message || !key) { return false }\n if (!isNull(this$1._path.getPathValue(message, key))) { return true }\n // fallback for flat key\n if (message[key]) { return true }\n return false\n };\n\n if (this._warnHtmlInMessage === 'warn' || this._warnHtmlInMessage === 'error') {\n Object.keys(messages).forEach(function (locale) {\n this$1._checkLocaleMessage(locale, this$1._warnHtmlInMessage, messages[locale]);\n });\n }\n\n this._initVM({\n locale: locale,\n fallbackLocale: fallbackLocale,\n messages: messages,\n dateTimeFormats: dateTimeFormats,\n numberFormats: numberFormats\n });\n};\n\nvar prototypeAccessors = { vm: { configurable: true },messages: { configurable: true },dateTimeFormats: { configurable: true },numberFormats: { configurable: true },availableLocales: { configurable: true },locale: { configurable: true },fallbackLocale: { configurable: true },formatFallbackMessages: { configurable: true },missing: { configurable: true },formatter: { configurable: true },silentTranslationWarn: { configurable: true },silentFallbackWarn: { configurable: true },preserveDirectiveContent: { configurable: true },warnHtmlInMessage: { configurable: true },postTranslation: { configurable: true } };\n\nVueI18n.prototype._checkLocaleMessage = function _checkLocaleMessage (locale, level, message) {\n var paths = [];\n\n var fn = function (level, locale, message, paths) {\n if (isPlainObject(message)) {\n Object.keys(message).forEach(function (key) {\n var val = message[key];\n if (isPlainObject(val)) {\n paths.push(key);\n paths.push('.');\n fn(level, locale, val, paths);\n paths.pop();\n paths.pop();\n } else {\n paths.push(key);\n fn(level, locale, val, paths);\n paths.pop();\n }\n });\n } else if (isArray(message)) {\n message.forEach(function (item, index) {\n if (isPlainObject(item)) {\n paths.push((\"[\" + index + \"]\"));\n paths.push('.');\n fn(level, locale, item, paths);\n paths.pop();\n paths.pop();\n } else {\n paths.push((\"[\" + index + \"]\"));\n fn(level, locale, item, paths);\n paths.pop();\n }\n });\n } else if (isString(message)) {\n var ret = htmlTagMatcher.test(message);\n if (ret) {\n var msg = \"Detected HTML in message '\" + message + \"' of keypath '\" + (paths.join('')) + \"' at '\" + locale + \"'. Consider component interpolation with '' to avoid XSS. See https://bit.ly/2ZqJzkp\";\n if (level === 'warn') {\n warn(msg);\n } else if (level === 'error') {\n error(msg);\n }\n }\n }\n };\n\n fn(level, locale, message, paths);\n};\n\nVueI18n.prototype._initVM = function _initVM (data) {\n var silent = Vue.config.silent;\n Vue.config.silent = true;\n this._vm = new Vue({ data: data });\n Vue.config.silent = silent;\n};\n\nVueI18n.prototype.destroyVM = function destroyVM () {\n this._vm.$destroy();\n};\n\nVueI18n.prototype.subscribeDataChanging = function subscribeDataChanging (vm) {\n this._dataListeners.push(vm);\n};\n\nVueI18n.prototype.unsubscribeDataChanging = function unsubscribeDataChanging (vm) {\n remove(this._dataListeners, vm);\n};\n\nVueI18n.prototype.watchI18nData = function watchI18nData () {\n var self = this;\n return this._vm.$watch('$data', function () {\n var i = self._dataListeners.length;\n while (i--) {\n Vue.nextTick(function () {\n self._dataListeners[i] && self._dataListeners[i].$forceUpdate();\n });\n }\n }, { deep: true })\n};\n\nVueI18n.prototype.watchLocale = function watchLocale () {\n /* istanbul ignore if */\n if (!this._sync || !this._root) { return null }\n var target = this._vm;\n return this._root.$i18n.vm.$watch('locale', function (val) {\n target.$set(target, 'locale', val);\n target.$forceUpdate();\n }, { immediate: true })\n};\n\nVueI18n.prototype.onComponentInstanceCreated = function onComponentInstanceCreated (newI18n) {\n if (this._componentInstanceCreatedListener) {\n this._componentInstanceCreatedListener(newI18n, this);\n }\n};\n\nprototypeAccessors.vm.get = function () { return this._vm };\n\nprototypeAccessors.messages.get = function () { return looseClone(this._getMessages()) };\nprototypeAccessors.dateTimeFormats.get = function () { return looseClone(this._getDateTimeFormats()) };\nprototypeAccessors.numberFormats.get = function () { return looseClone(this._getNumberFormats()) };\nprototypeAccessors.availableLocales.get = function () { return Object.keys(this.messages).sort() };\n\nprototypeAccessors.locale.get = function () { return this._vm.locale };\nprototypeAccessors.locale.set = function (locale) {\n this._vm.$set(this._vm, 'locale', locale);\n};\n\nprototypeAccessors.fallbackLocale.get = function () { return this._vm.fallbackLocale };\nprototypeAccessors.fallbackLocale.set = function (locale) {\n this._localeChainCache = {};\n this._vm.$set(this._vm, 'fallbackLocale', locale);\n};\n\nprototypeAccessors.formatFallbackMessages.get = function () { return this._formatFallbackMessages };\nprototypeAccessors.formatFallbackMessages.set = function (fallback) { this._formatFallbackMessages = fallback; };\n\nprototypeAccessors.missing.get = function () { return this._missing };\nprototypeAccessors.missing.set = function (handler) { this._missing = handler; };\n\nprototypeAccessors.formatter.get = function () { return this._formatter };\nprototypeAccessors.formatter.set = function (formatter) { this._formatter = formatter; };\n\nprototypeAccessors.silentTranslationWarn.get = function () { return this._silentTranslationWarn };\nprototypeAccessors.silentTranslationWarn.set = function (silent) { this._silentTranslationWarn = silent; };\n\nprototypeAccessors.silentFallbackWarn.get = function () { return this._silentFallbackWarn };\nprototypeAccessors.silentFallbackWarn.set = function (silent) { this._silentFallbackWarn = silent; };\n\nprototypeAccessors.preserveDirectiveContent.get = function () { return this._preserveDirectiveContent };\nprototypeAccessors.preserveDirectiveContent.set = function (preserve) { this._preserveDirectiveContent = preserve; };\n\nprototypeAccessors.warnHtmlInMessage.get = function () { return this._warnHtmlInMessage };\nprototypeAccessors.warnHtmlInMessage.set = function (level) {\n var this$1 = this;\n\n var orgLevel = this._warnHtmlInMessage;\n this._warnHtmlInMessage = level;\n if (orgLevel !== level && (level === 'warn' || level === 'error')) {\n var messages = this._getMessages();\n Object.keys(messages).forEach(function (locale) {\n this$1._checkLocaleMessage(locale, this$1._warnHtmlInMessage, messages[locale]);\n });\n }\n};\n\nprototypeAccessors.postTranslation.get = function () { return this._postTranslation };\nprototypeAccessors.postTranslation.set = function (handler) { this._postTranslation = handler; };\n\nVueI18n.prototype._getMessages = function _getMessages () { return this._vm.messages };\nVueI18n.prototype._getDateTimeFormats = function _getDateTimeFormats () { return this._vm.dateTimeFormats };\nVueI18n.prototype._getNumberFormats = function _getNumberFormats () { return this._vm.numberFormats };\n\nVueI18n.prototype._warnDefault = function _warnDefault (locale, key, result, vm, values, interpolateMode) {\n if (!isNull(result)) { return result }\n if (this._missing) {\n var missingRet = this._missing.apply(null, [locale, key, vm, values]);\n if (isString(missingRet)) {\n return missingRet\n }\n } else {\n if (process.env.NODE_ENV !== 'production' && !this._isSilentTranslationWarn(key)) {\n warn(\n \"Cannot translate the value of keypath '\" + key + \"'. \" +\n 'Use the value of keypath as default.'\n );\n }\n }\n\n if (this._formatFallbackMessages) {\n var parsedArgs = parseArgs.apply(void 0, values);\n return this._render(key, interpolateMode, parsedArgs.params, key)\n } else {\n return key\n }\n};\n\nVueI18n.prototype._isFallbackRoot = function _isFallbackRoot (val) {\n return !val && !isNull(this._root) && this._fallbackRoot\n};\n\nVueI18n.prototype._isSilentFallbackWarn = function _isSilentFallbackWarn (key) {\n return this._silentFallbackWarn instanceof RegExp\n ? this._silentFallbackWarn.test(key)\n : this._silentFallbackWarn\n};\n\nVueI18n.prototype._isSilentFallback = function _isSilentFallback (locale, key) {\n return this._isSilentFallbackWarn(key) && (this._isFallbackRoot() || locale !== this.fallbackLocale)\n};\n\nVueI18n.prototype._isSilentTranslationWarn = function _isSilentTranslationWarn (key) {\n return this._silentTranslationWarn instanceof RegExp\n ? this._silentTranslationWarn.test(key)\n : this._silentTranslationWarn\n};\n\nVueI18n.prototype._interpolate = function _interpolate (\n locale,\n message,\n key,\n host,\n interpolateMode,\n values,\n visitedLinkStack\n) {\n if (!message) { return null }\n\n var pathRet = this._path.getPathValue(message, key);\n if (isArray(pathRet) || isPlainObject(pathRet)) { return pathRet }\n\n var ret;\n if (isNull(pathRet)) {\n /* istanbul ignore else */\n if (isPlainObject(message)) {\n ret = message[key];\n if (!(isString(ret) || isFunction(ret))) {\n if (process.env.NODE_ENV !== 'production' && !this._isSilentTranslationWarn(key) && !this._isSilentFallback(locale, key)) {\n warn((\"Value of key '\" + key + \"' is not a string or function !\"));\n }\n return null\n }\n } else {\n return null\n }\n } else {\n /* istanbul ignore else */\n if (isString(pathRet) || isFunction(pathRet)) {\n ret = pathRet;\n } else {\n if (process.env.NODE_ENV !== 'production' && !this._isSilentTranslationWarn(key) && !this._isSilentFallback(locale, key)) {\n warn((\"Value of key '\" + key + \"' is not a string or function!\"));\n }\n return null\n }\n }\n\n // Check for the existence of links within the translated string\n if (isString(ret) && (ret.indexOf('@:') >= 0 || ret.indexOf('@.') >= 0)) {\n ret = this._link(locale, message, ret, host, 'raw', values, visitedLinkStack);\n }\n\n return this._render(ret, interpolateMode, values, key)\n};\n\nVueI18n.prototype._link = function _link (\n locale,\n message,\n str,\n host,\n interpolateMode,\n values,\n visitedLinkStack\n) {\n var ret = str;\n\n // Match all the links within the local\n // We are going to replace each of\n // them with its translation\n var matches = ret.match(linkKeyMatcher);\n for (var idx in matches) {\n // ie compatible: filter custom array\n // prototype method\n if (!matches.hasOwnProperty(idx)) {\n continue\n }\n var link = matches[idx];\n var linkKeyPrefixMatches = link.match(linkKeyPrefixMatcher);\n var linkPrefix = linkKeyPrefixMatches[0];\n var formatterName = linkKeyPrefixMatches[1];\n\n // Remove the leading @:, @.case: and the brackets\n var linkPlaceholder = link.replace(linkPrefix, '').replace(bracketsMatcher, '');\n\n if (includes(visitedLinkStack, linkPlaceholder)) {\n if (process.env.NODE_ENV !== 'production') {\n warn((\"Circular reference found. \\\"\" + link + \"\\\" is already visited in the chain of \" + (visitedLinkStack.reverse().join(' <- '))));\n }\n return ret\n }\n visitedLinkStack.push(linkPlaceholder);\n\n // Translate the link\n var translated = this._interpolate(\n locale, message, linkPlaceholder, host,\n interpolateMode === 'raw' ? 'string' : interpolateMode,\n interpolateMode === 'raw' ? undefined : values,\n visitedLinkStack\n );\n\n if (this._isFallbackRoot(translated)) {\n if (process.env.NODE_ENV !== 'production' && !this._isSilentTranslationWarn(linkPlaceholder)) {\n warn((\"Fall back to translate the link placeholder '\" + linkPlaceholder + \"' with root locale.\"));\n }\n /* istanbul ignore if */\n if (!this._root) { throw Error('unexpected error') }\n var root = this._root.$i18n;\n translated = root._translate(\n root._getMessages(), root.locale, root.fallbackLocale,\n linkPlaceholder, host, interpolateMode, values\n );\n }\n translated = this._warnDefault(\n locale, linkPlaceholder, translated, host,\n isArray(values) ? values : [values],\n interpolateMode\n );\n\n if (this._modifiers.hasOwnProperty(formatterName)) {\n translated = this._modifiers[formatterName](translated);\n } else if (defaultModifiers.hasOwnProperty(formatterName)) {\n translated = defaultModifiers[formatterName](translated);\n }\n\n visitedLinkStack.pop();\n\n // Replace the link with the translated\n ret = !translated ? ret : ret.replace(link, translated);\n }\n\n return ret\n};\n\nVueI18n.prototype._createMessageContext = function _createMessageContext (values) {\n var _list = isArray(values) ? values : [];\n var _named = isObject(values) ? values : {};\n var list = function (index) { return _list[index]; };\n var named = function (key) { return _named[key]; };\n return {\n list: list,\n named: named\n }\n};\n\nVueI18n.prototype._render = function _render (message, interpolateMode, values, path) {\n if (isFunction(message)) {\n return message(this._createMessageContext(values))\n }\n\n var ret = this._formatter.interpolate(message, values, path);\n\n // If the custom formatter refuses to work - apply the default one\n if (!ret) {\n ret = defaultFormatter.interpolate(message, values, path);\n }\n\n // if interpolateMode is **not** 'string' ('row'),\n // return the compiled data (e.g. ['foo', VNode, 'bar']) with formatter\n return interpolateMode === 'string' && !isString(ret) ? ret.join('') : ret\n};\n\nVueI18n.prototype._appendItemToChain = function _appendItemToChain (chain, item, blocks) {\n var follow = false;\n if (!includes(chain, item)) {\n follow = true;\n if (item) {\n follow = item[item.length - 1] !== '!';\n item = item.replace(/!/g, '');\n chain.push(item);\n if (blocks && blocks[item]) {\n follow = blocks[item];\n }\n }\n }\n return follow\n};\n\nVueI18n.prototype._appendLocaleToChain = function _appendLocaleToChain (chain, locale, blocks) {\n var follow;\n var tokens = locale.split('-');\n do {\n var item = tokens.join('-');\n follow = this._appendItemToChain(chain, item, blocks);\n tokens.splice(-1, 1);\n } while (tokens.length && (follow === true))\n return follow\n};\n\nVueI18n.prototype._appendBlockToChain = function _appendBlockToChain (chain, block, blocks) {\n var follow = true;\n for (var i = 0; (i < block.length) && (isBoolean(follow)); i++) {\n var locale = block[i];\n if (isString(locale)) {\n follow = this._appendLocaleToChain(chain, locale, blocks);\n }\n }\n return follow\n};\n\nVueI18n.prototype._getLocaleChain = function _getLocaleChain (start, fallbackLocale) {\n if (start === '') { return [] }\n\n if (!this._localeChainCache) {\n this._localeChainCache = {};\n }\n\n var chain = this._localeChainCache[start];\n if (!chain) {\n if (!fallbackLocale) {\n fallbackLocale = this.fallbackLocale;\n }\n chain = [];\n\n // first block defined by start\n var block = [start];\n\n // while any intervening block found\n while (isArray(block)) {\n block = this._appendBlockToChain(\n chain,\n block,\n fallbackLocale\n );\n }\n\n // last block defined by default\n var defaults;\n if (isArray(fallbackLocale)) {\n defaults = fallbackLocale;\n } else if (isObject(fallbackLocale)) {\n /* $FlowFixMe */\n if (fallbackLocale['default']) {\n defaults = fallbackLocale['default'];\n } else {\n defaults = null;\n }\n } else {\n defaults = fallbackLocale;\n }\n\n // convert defaults to array\n if (isString(defaults)) {\n block = [defaults];\n } else {\n block = defaults;\n }\n if (block) {\n this._appendBlockToChain(\n chain,\n block,\n null\n );\n }\n this._localeChainCache[start] = chain;\n }\n return chain\n};\n\nVueI18n.prototype._translate = function _translate (\n messages,\n locale,\n fallback,\n key,\n host,\n interpolateMode,\n args\n) {\n var chain = this._getLocaleChain(locale, fallback);\n var res;\n for (var i = 0; i < chain.length; i++) {\n var step = chain[i];\n res =\n this._interpolate(step, messages[step], key, host, interpolateMode, args, [key]);\n if (!isNull(res)) {\n if (step !== locale && process.env.NODE_ENV !== 'production' && !this._isSilentTranslationWarn(key) && !this._isSilentFallbackWarn(key)) {\n warn((\"Fall back to translate the keypath '\" + key + \"' with '\" + step + \"' locale.\"));\n }\n return res\n }\n }\n return null\n};\n\nVueI18n.prototype._t = function _t (key, _locale, messages, host) {\n var ref;\n\n var values = [], len = arguments.length - 4;\n while ( len-- > 0 ) values[ len ] = arguments[ len + 4 ];\n if (!key) { return '' }\n\n var parsedArgs = parseArgs.apply(void 0, values);\n if(this._escapeParameterHtml) {\n parsedArgs.params = escapeParams(parsedArgs.params);\n }\n\n var locale = parsedArgs.locale || _locale;\n\n var ret = this._translate(\n messages, locale, this.fallbackLocale, key,\n host, 'string', parsedArgs.params\n );\n if (this._isFallbackRoot(ret)) {\n if (process.env.NODE_ENV !== 'production' && !this._isSilentTranslationWarn(key) && !this._isSilentFallbackWarn(key)) {\n warn((\"Fall back to translate the keypath '\" + key + \"' with root locale.\"));\n }\n /* istanbul ignore if */\n if (!this._root) { throw Error('unexpected error') }\n return (ref = this._root).$t.apply(ref, [ key ].concat( values ))\n } else {\n ret = this._warnDefault(locale, key, ret, host, values, 'string');\n if (this._postTranslation && ret !== null && ret !== undefined) {\n ret = this._postTranslation(ret, key);\n }\n return ret\n }\n};\n\nVueI18n.prototype.t = function t (key) {\n var ref;\n\n var values = [], len = arguments.length - 1;\n while ( len-- > 0 ) values[ len ] = arguments[ len + 1 ];\n return (ref = this)._t.apply(ref, [ key, this.locale, this._getMessages(), null ].concat( values ))\n};\n\nVueI18n.prototype._i = function _i (key, locale, messages, host, values) {\n var ret =\n this._translate(messages, locale, this.fallbackLocale, key, host, 'raw', values);\n if (this._isFallbackRoot(ret)) {\n if (process.env.NODE_ENV !== 'production' && !this._isSilentTranslationWarn(key)) {\n warn((\"Fall back to interpolate the keypath '\" + key + \"' with root locale.\"));\n }\n if (!this._root) { throw Error('unexpected error') }\n return this._root.$i18n.i(key, locale, values)\n } else {\n return this._warnDefault(locale, key, ret, host, [values], 'raw')\n }\n};\n\nVueI18n.prototype.i = function i (key, locale, values) {\n /* istanbul ignore if */\n if (!key) { return '' }\n\n if (!isString(locale)) {\n locale = this.locale;\n }\n\n return this._i(key, locale, this._getMessages(), null, values)\n};\n\nVueI18n.prototype._tc = function _tc (\n key,\n _locale,\n messages,\n host,\n choice\n) {\n var ref;\n\n var values = [], len = arguments.length - 5;\n while ( len-- > 0 ) values[ len ] = arguments[ len + 5 ];\n if (!key) { return '' }\n if (choice === undefined) {\n choice = 1;\n }\n\n var predefined = { 'count': choice, 'n': choice };\n var parsedArgs = parseArgs.apply(void 0, values);\n parsedArgs.params = Object.assign(predefined, parsedArgs.params);\n values = parsedArgs.locale === null ? [parsedArgs.params] : [parsedArgs.locale, parsedArgs.params];\n return this.fetchChoice((ref = this)._t.apply(ref, [ key, _locale, messages, host ].concat( values )), choice)\n};\n\nVueI18n.prototype.fetchChoice = function fetchChoice (message, choice) {\n /* istanbul ignore if */\n if (!message || !isString(message)) { return null }\n var choices = message.split('|');\n\n choice = this.getChoiceIndex(choice, choices.length);\n if (!choices[choice]) { return message }\n return choices[choice].trim()\n};\n\nVueI18n.prototype.tc = function tc (key, choice) {\n var ref;\n\n var values = [], len = arguments.length - 2;\n while ( len-- > 0 ) values[ len ] = arguments[ len + 2 ];\n return (ref = this)._tc.apply(ref, [ key, this.locale, this._getMessages(), null, choice ].concat( values ))\n};\n\nVueI18n.prototype._te = function _te (key, locale, messages) {\n var args = [], len = arguments.length - 3;\n while ( len-- > 0 ) args[ len ] = arguments[ len + 3 ];\n\n var _locale = parseArgs.apply(void 0, args).locale || locale;\n return this._exist(messages[_locale], key)\n};\n\nVueI18n.prototype.te = function te (key, locale) {\n return this._te(key, this.locale, this._getMessages(), locale)\n};\n\nVueI18n.prototype.getLocaleMessage = function getLocaleMessage (locale) {\n return looseClone(this._vm.messages[locale] || {})\n};\n\nVueI18n.prototype.setLocaleMessage = function setLocaleMessage (locale, message) {\n if (this._warnHtmlInMessage === 'warn' || this._warnHtmlInMessage === 'error') {\n this._checkLocaleMessage(locale, this._warnHtmlInMessage, message);\n }\n this._vm.$set(this._vm.messages, locale, message);\n};\n\nVueI18n.prototype.mergeLocaleMessage = function mergeLocaleMessage (locale, message) {\n if (this._warnHtmlInMessage === 'warn' || this._warnHtmlInMessage === 'error') {\n this._checkLocaleMessage(locale, this._warnHtmlInMessage, message);\n }\n this._vm.$set(this._vm.messages, locale, merge(\n typeof this._vm.messages[locale] !== 'undefined' && Object.keys(this._vm.messages[locale]).length\n ? this._vm.messages[locale]\n : {},\n message\n ));\n};\n\nVueI18n.prototype.getDateTimeFormat = function getDateTimeFormat (locale) {\n return looseClone(this._vm.dateTimeFormats[locale] || {})\n};\n\nVueI18n.prototype.setDateTimeFormat = function setDateTimeFormat (locale, format) {\n this._vm.$set(this._vm.dateTimeFormats, locale, format);\n this._clearDateTimeFormat(locale, format);\n};\n\nVueI18n.prototype.mergeDateTimeFormat = function mergeDateTimeFormat (locale, format) {\n this._vm.$set(this._vm.dateTimeFormats, locale, merge(this._vm.dateTimeFormats[locale] || {}, format));\n this._clearDateTimeFormat(locale, format);\n};\n\nVueI18n.prototype._clearDateTimeFormat = function _clearDateTimeFormat (locale, format) {\n for (var key in format) {\n var id = locale + \"__\" + key;\n\n if (!this._dateTimeFormatters.hasOwnProperty(id)) {\n continue\n }\n\n delete this._dateTimeFormatters[id];\n }\n};\n\nVueI18n.prototype._localizeDateTime = function _localizeDateTime (\n value,\n locale,\n fallback,\n dateTimeFormats,\n key\n) {\n var _locale = locale;\n var formats = dateTimeFormats[_locale];\n\n var chain = this._getLocaleChain(locale, fallback);\n for (var i = 0; i < chain.length; i++) {\n var current = _locale;\n var step = chain[i];\n formats = dateTimeFormats[step];\n _locale = step;\n // fallback locale\n if (isNull(formats) || isNull(formats[key])) {\n if (step !== locale && process.env.NODE_ENV !== 'production' && !this._isSilentTranslationWarn(key) && !this._isSilentFallbackWarn(key)) {\n warn((\"Fall back to '\" + step + \"' datetime formats from '\" + current + \"' datetime formats.\"));\n }\n } else {\n break\n }\n }\n\n if (isNull(formats) || isNull(formats[key])) {\n return null\n } else {\n var format = formats[key];\n var id = _locale + \"__\" + key;\n var formatter = this._dateTimeFormatters[id];\n if (!formatter) {\n formatter = this._dateTimeFormatters[id] = new Intl.DateTimeFormat(_locale, format);\n }\n return formatter.format(value)\n }\n};\n\nVueI18n.prototype._d = function _d (value, locale, key) {\n /* istanbul ignore if */\n if (process.env.NODE_ENV !== 'production' && !VueI18n.availabilities.dateTimeFormat) {\n warn('Cannot format a Date value due to not supported Intl.DateTimeFormat.');\n return ''\n }\n\n if (!key) {\n return new Intl.DateTimeFormat(locale).format(value)\n }\n\n var ret =\n this._localizeDateTime(value, locale, this.fallbackLocale, this._getDateTimeFormats(), key);\n if (this._isFallbackRoot(ret)) {\n if (process.env.NODE_ENV !== 'production' && !this._isSilentTranslationWarn(key) && !this._isSilentFallbackWarn(key)) {\n warn((\"Fall back to datetime localization of root: key '\" + key + \"'.\"));\n }\n /* istanbul ignore if */\n if (!this._root) { throw Error('unexpected error') }\n return this._root.$i18n.d(value, key, locale)\n } else {\n return ret || ''\n }\n};\n\nVueI18n.prototype.d = function d (value) {\n var args = [], len = arguments.length - 1;\n while ( len-- > 0 ) args[ len ] = arguments[ len + 1 ];\n\n var locale = this.locale;\n var key = null;\n\n if (args.length === 1) {\n if (isString(args[0])) {\n key = args[0];\n } else if (isObject(args[0])) {\n if (args[0].locale) {\n locale = args[0].locale;\n }\n if (args[0].key) {\n key = args[0].key;\n }\n }\n } else if (args.length === 2) {\n if (isString(args[0])) {\n key = args[0];\n }\n if (isString(args[1])) {\n locale = args[1];\n }\n }\n\n return this._d(value, locale, key)\n};\n\nVueI18n.prototype.getNumberFormat = function getNumberFormat (locale) {\n return looseClone(this._vm.numberFormats[locale] || {})\n};\n\nVueI18n.prototype.setNumberFormat = function setNumberFormat (locale, format) {\n this._vm.$set(this._vm.numberFormats, locale, format);\n this._clearNumberFormat(locale, format);\n};\n\nVueI18n.prototype.mergeNumberFormat = function mergeNumberFormat (locale, format) {\n this._vm.$set(this._vm.numberFormats, locale, merge(this._vm.numberFormats[locale] || {}, format));\n this._clearNumberFormat(locale, format);\n};\n\nVueI18n.prototype._clearNumberFormat = function _clearNumberFormat (locale, format) {\n for (var key in format) {\n var id = locale + \"__\" + key;\n\n if (!this._numberFormatters.hasOwnProperty(id)) {\n continue\n }\n\n delete this._numberFormatters[id];\n }\n};\n\nVueI18n.prototype._getNumberFormatter = function _getNumberFormatter (\n value,\n locale,\n fallback,\n numberFormats,\n key,\n options\n) {\n var _locale = locale;\n var formats = numberFormats[_locale];\n\n var chain = this._getLocaleChain(locale, fallback);\n for (var i = 0; i < chain.length; i++) {\n var current = _locale;\n var step = chain[i];\n formats = numberFormats[step];\n _locale = step;\n // fallback locale\n if (isNull(formats) || isNull(formats[key])) {\n if (step !== locale && process.env.NODE_ENV !== 'production' && !this._isSilentTranslationWarn(key) && !this._isSilentFallbackWarn(key)) {\n warn((\"Fall back to '\" + step + \"' number formats from '\" + current + \"' number formats.\"));\n }\n } else {\n break\n }\n }\n\n if (isNull(formats) || isNull(formats[key])) {\n return null\n } else {\n var format = formats[key];\n\n var formatter;\n if (options) {\n // If options specified - create one time number formatter\n formatter = new Intl.NumberFormat(_locale, Object.assign({}, format, options));\n } else {\n var id = _locale + \"__\" + key;\n formatter = this._numberFormatters[id];\n if (!formatter) {\n formatter = this._numberFormatters[id] = new Intl.NumberFormat(_locale, format);\n }\n }\n return formatter\n }\n};\n\nVueI18n.prototype._n = function _n (value, locale, key, options) {\n /* istanbul ignore if */\n if (!VueI18n.availabilities.numberFormat) {\n if (process.env.NODE_ENV !== 'production') {\n warn('Cannot format a Number value due to not supported Intl.NumberFormat.');\n }\n return ''\n }\n\n if (!key) {\n var nf = !options ? new Intl.NumberFormat(locale) : new Intl.NumberFormat(locale, options);\n return nf.format(value)\n }\n\n var formatter = this._getNumberFormatter(value, locale, this.fallbackLocale, this._getNumberFormats(), key, options);\n var ret = formatter && formatter.format(value);\n if (this._isFallbackRoot(ret)) {\n if (process.env.NODE_ENV !== 'production' && !this._isSilentTranslationWarn(key) && !this._isSilentFallbackWarn(key)) {\n warn((\"Fall back to number localization of root: key '\" + key + \"'.\"));\n }\n /* istanbul ignore if */\n if (!this._root) { throw Error('unexpected error') }\n return this._root.$i18n.n(value, Object.assign({}, { key: key, locale: locale }, options))\n } else {\n return ret || ''\n }\n};\n\nVueI18n.prototype.n = function n (value) {\n var args = [], len = arguments.length - 1;\n while ( len-- > 0 ) args[ len ] = arguments[ len + 1 ];\n\n var locale = this.locale;\n var key = null;\n var options = null;\n\n if (args.length === 1) {\n if (isString(args[0])) {\n key = args[0];\n } else if (isObject(args[0])) {\n if (args[0].locale) {\n locale = args[0].locale;\n }\n if (args[0].key) {\n key = args[0].key;\n }\n\n // Filter out number format options only\n options = Object.keys(args[0]).reduce(function (acc, key) {\n var obj;\n\n if (includes(numberFormatKeys, key)) {\n return Object.assign({}, acc, ( obj = {}, obj[key] = args[0][key], obj ))\n }\n return acc\n }, null);\n }\n } else if (args.length === 2) {\n if (isString(args[0])) {\n key = args[0];\n }\n if (isString(args[1])) {\n locale = args[1];\n }\n }\n\n return this._n(value, locale, key, options)\n};\n\nVueI18n.prototype._ntp = function _ntp (value, locale, key, options) {\n /* istanbul ignore if */\n if (!VueI18n.availabilities.numberFormat) {\n if (process.env.NODE_ENV !== 'production') {\n warn('Cannot format to parts a Number value due to not supported Intl.NumberFormat.');\n }\n return []\n }\n\n if (!key) {\n var nf = !options ? new Intl.NumberFormat(locale) : new Intl.NumberFormat(locale, options);\n return nf.formatToParts(value)\n }\n\n var formatter = this._getNumberFormatter(value, locale, this.fallbackLocale, this._getNumberFormats(), key, options);\n var ret = formatter && formatter.formatToParts(value);\n if (this._isFallbackRoot(ret)) {\n if (process.env.NODE_ENV !== 'production' && !this._isSilentTranslationWarn(key)) {\n warn((\"Fall back to format number to parts of root: key '\" + key + \"' .\"));\n }\n /* istanbul ignore if */\n if (!this._root) { throw Error('unexpected error') }\n return this._root.$i18n._ntp(value, locale, key, options)\n } else {\n return ret || []\n }\n};\n\nObject.defineProperties( VueI18n.prototype, prototypeAccessors );\n\nvar availabilities;\n// $FlowFixMe\nObject.defineProperty(VueI18n, 'availabilities', {\n get: function get () {\n if (!availabilities) {\n var intlDefined = typeof Intl !== 'undefined';\n availabilities = {\n dateTimeFormat: intlDefined && typeof Intl.DateTimeFormat !== 'undefined',\n numberFormat: intlDefined && typeof Intl.NumberFormat !== 'undefined'\n };\n }\n\n return availabilities\n }\n});\n\nVueI18n.install = install;\nVueI18n.version = '8.22.4';\n\nexport default VueI18n;\n","import Vue from 'vue';\n\n// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign#Polyfill\nfunction assign (target, varArgs) {\n var arguments$1 = arguments;\n\n if (target === null || target === undefined) {\n throw new TypeError('Cannot convert undefined or null to object')\n }\n var to = Object(target);\n for (var index = 1; index < arguments.length; index++) {\n var nextSource = arguments$1[index];\n if (nextSource !== null && nextSource !== undefined) {\n for (var nextKey in nextSource) {\n // Avoid bugs when hasOwnProperty is shadowed\n /* istanbul ignore else */\n if (Object.prototype.hasOwnProperty.call(nextSource, nextKey)) {\n to[nextKey] = nextSource[nextKey];\n }\n }\n }\n }\n return to\n}\n\nfunction isExist (obj) {\n return typeof obj !== 'undefined' && obj !== null\n}\n\nfunction isFunction (obj) {\n return typeof obj === 'function'\n}\n\nfunction isNumber (obj) {\n return typeof obj === 'number'\n}\n\nfunction isString (obj) {\n return typeof obj === 'string'\n}\n\nfunction isBoolean (obj) {\n return typeof obj === 'boolean'\n}\n\nfunction isPromiseSupported () {\n return typeof window !== 'undefined' && isExist(window.Promise)\n}\n\nfunction hasOwnProperty (o, k) {\n return Object.prototype.hasOwnProperty.call(o, k)\n}\n\nvar script = {\n props: {\n value: Number,\n indicators: {\n type: Boolean,\n default: true\n },\n controls: {\n type: Boolean,\n default: true\n },\n interval: {\n type: Number,\n default: 5000\n },\n iconControlLeft: {\n type: String,\n default: 'glyphicon glyphicon-chevron-left'\n },\n iconControlRight: {\n type: String,\n default: 'glyphicon glyphicon-chevron-right'\n }\n },\n data: function data () {\n return {\n slides: [],\n activeIndex: 0, // Make v-model not required\n timeoutId: 0,\n intervalId: 0\n }\n },\n watch: {\n interval: function interval () {\n this.startInterval();\n },\n value: function value (index, oldValue) {\n this.run(index, oldValue);\n this.activeIndex = index;\n }\n },\n mounted: function mounted () {\n if (isExist(this.value)) {\n this.activeIndex = this.value;\n }\n if (this.slides.length > 0) {\n this.$select(this.activeIndex);\n }\n this.startInterval();\n },\n beforeDestroy: function beforeDestroy () {\n this.stopInterval();\n },\n methods: {\n run: function run (newIndex, oldIndex) {\n var this$1 = this;\n\n var currentActiveIndex = oldIndex || 0;\n var direction;\n if (newIndex > currentActiveIndex) {\n direction = ['next', 'left'];\n } else {\n direction = ['prev', 'right'];\n }\n this.slides[newIndex].slideClass[direction[0]] = true;\n this.$nextTick(function () {\n this$1.slides[newIndex].$el.offsetHeight;\n this$1.slides.forEach(function (slide, i) {\n if (i === currentActiveIndex) {\n slide.slideClass.active = true;\n slide.slideClass[direction[1]] = true;\n } else if (i === newIndex) {\n slide.slideClass[direction[1]] = true;\n }\n });\n this$1.timeoutId = setTimeout(function () {\n this$1.$select(newIndex);\n this$1.$emit('change', newIndex);\n this$1.timeoutId = 0;\n }, 600);\n });\n },\n startInterval: function startInterval () {\n var this$1 = this;\n\n this.stopInterval();\n if (this.interval > 0) {\n this.intervalId = setInterval(function () {\n this$1.next();\n }, this.interval);\n }\n },\n stopInterval: function stopInterval () {\n clearInterval(this.intervalId);\n this.intervalId = 0;\n },\n resetAllSlideClass: function resetAllSlideClass () {\n this.slides.forEach(function (slide) {\n slide.slideClass.active = false;\n slide.slideClass.left = false;\n slide.slideClass.right = false;\n slide.slideClass.next = false;\n slide.slideClass.prev = false;\n });\n },\n $select: function $select (index) {\n this.resetAllSlideClass();\n this.slides[index].slideClass.active = true;\n },\n select: function select (index) {\n if (this.timeoutId !== 0 || index === this.activeIndex) {\n return\n }\n if (isExist(this.value)) {\n this.$emit('input', index);\n } else {\n this.run(index, this.activeIndex);\n this.activeIndex = index;\n }\n },\n prev: function prev () {\n this.select(this.activeIndex === 0 ? this.slides.length - 1 : this.activeIndex - 1);\n },\n next: function next () {\n this.select(this.activeIndex === this.slides.length - 1 ? 0 : this.activeIndex + 1);\n }\n }\n};\n\nfunction normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier /* server only */, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {\r\n if (typeof shadowMode !== 'boolean') {\r\n createInjectorSSR = createInjector;\r\n createInjector = shadowMode;\r\n shadowMode = false;\r\n }\r\n // Vue.extend constructor export interop.\r\n var options = typeof script === 'function' ? script.options : script;\r\n // render functions\r\n if (template && template.render) {\r\n options.render = template.render;\r\n options.staticRenderFns = template.staticRenderFns;\r\n options._compiled = true;\r\n // functional template\r\n if (isFunctionalTemplate) {\r\n options.functional = true;\r\n }\r\n }\r\n // scopedId\r\n if (scopeId) {\r\n options._scopeId = scopeId;\r\n }\r\n var hook;\r\n if (moduleIdentifier) {\r\n // server build\r\n hook = function (context) {\r\n // 2.3 injection\r\n context =\r\n context || // cached call\r\n (this.$vnode && this.$vnode.ssrContext) || // stateful\r\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext); // functional\r\n // 2.2 with runInNewContext: true\r\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\r\n context = __VUE_SSR_CONTEXT__;\r\n }\r\n // inject component styles\r\n if (style) {\r\n style.call(this, createInjectorSSR(context));\r\n }\r\n // register component module identifier for async chunk inference\r\n if (context && context._registeredComponents) {\r\n context._registeredComponents.add(moduleIdentifier);\r\n }\r\n };\r\n // used by ssr in case component is cached and beforeCreate\r\n // never gets called\r\n options._ssrRegister = hook;\r\n }\r\n else if (style) {\r\n hook = shadowMode\r\n ? function (context) {\r\n style.call(this, createInjectorShadow(context, this.$root.$options.shadowRoot));\r\n }\r\n : function (context) {\r\n style.call(this, createInjector(context));\r\n };\r\n }\r\n if (hook) {\r\n if (options.functional) {\r\n // register for functional component in vue file\r\n var originalRender = options.render;\r\n options.render = function renderWithStyleInjection(h, context) {\r\n hook.call(context);\r\n return originalRender(h, context);\r\n };\r\n }\r\n else {\r\n // inject component registration as beforeCreate hook\r\n var existing = options.beforeCreate;\r\n options.beforeCreate = existing ? [].concat(existing, hook) : [hook];\r\n }\r\n }\r\n return script;\r\n}\n\n/* script */\nvar __vue_script__ = script;\n\n/* template */\nvar __vue_render__ = function() {\n var _vm = this;\n var _h = _vm.$createElement;\n var _c = _vm._self._c || _h;\n return _c(\n \"div\",\n {\n staticClass: \"carousel slide\",\n attrs: { \"data-ride\": \"carousel\" },\n on: { mouseenter: _vm.stopInterval, mouseleave: _vm.startInterval }\n },\n [\n _vm.indicators\n ? _vm._t(\n \"indicators\",\n [\n _c(\n \"ol\",\n { staticClass: \"carousel-indicators\" },\n _vm._l(_vm.slides, function(slide, index) {\n return _c(\"li\", {\n class: { active: index === _vm.activeIndex },\n on: {\n click: function($event) {\n return _vm.select(index)\n }\n }\n })\n }),\n 0\n )\n ],\n { select: _vm.select, activeIndex: _vm.activeIndex }\n )\n : _vm._e(),\n _vm._v(\" \"),\n _c(\n \"div\",\n { staticClass: \"carousel-inner\", attrs: { role: \"listbox\" } },\n [_vm._t(\"default\")],\n 2\n ),\n _vm._v(\" \"),\n _vm.controls\n ? _c(\n \"a\",\n {\n staticClass: \"left carousel-control\",\n attrs: { href: \"#\", role: \"button\" },\n on: {\n click: function($event) {\n $event.preventDefault();\n return _vm.prev()\n }\n }\n },\n [\n _c(\"span\", {\n class: _vm.iconControlLeft,\n attrs: { \"aria-hidden\": \"true\" }\n }),\n _vm._v(\" \"),\n _c(\"span\", { staticClass: \"sr-only\" }, [_vm._v(\"Previous\")])\n ]\n )\n : _vm._e(),\n _vm._v(\" \"),\n _vm.controls\n ? _c(\n \"a\",\n {\n staticClass: \"right carousel-control\",\n attrs: { href: \"#\", role: \"button\" },\n on: {\n click: function($event) {\n $event.preventDefault();\n return _vm.next()\n }\n }\n },\n [\n _c(\"span\", {\n class: _vm.iconControlRight,\n attrs: { \"aria-hidden\": \"true\" }\n }),\n _vm._v(\" \"),\n _c(\"span\", { staticClass: \"sr-only\" }, [_vm._v(\"Next\")])\n ]\n )\n : _vm._e()\n ],\n 2\n )\n};\nvar __vue_staticRenderFns__ = [];\n__vue_render__._withStripped = true;\n\n /* style */\n var __vue_inject_styles__ = undefined;\n /* scoped */\n var __vue_scope_id__ = undefined;\n /* module identifier */\n var __vue_module_identifier__ = undefined;\n /* functional template */\n var __vue_is_functional_template__ = false;\n /* style inject */\n \n /* style inject SSR */\n \n /* style inject shadow dom */\n \n\n \n var __vue_component__ = /*#__PURE__*/normalizeComponent(\n { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },\n __vue_inject_styles__,\n __vue_script__,\n __vue_scope_id__,\n __vue_is_functional_template__,\n __vue_module_identifier__,\n false,\n undefined,\n undefined,\n undefined\n );\n\nfunction spliceIfExist (arr, item) {\n if (Array.isArray(arr)) {\n var index = arr.indexOf(item);\n if (index >= 0) {\n arr.splice(index, 1);\n }\n }\n}\n\nfunction range (end, start, step) {\n if ( start === void 0 ) start = 0;\n if ( step === void 0 ) step = 1;\n\n var arr = [];\n for (var i = start; i < end; i += step) {\n arr.push(i);\n }\n return arr\n}\n\nfunction nodeListToArray (nodeList) {\n return Array.prototype.slice.call(nodeList || [])\n}\n\nfunction onlyUnique (value, index, self) {\n return self.indexOf(value) === index\n}\n\nvar script$1 = {\n data: function data () {\n return {\n slideClass: {\n active: false,\n prev: false,\n next: false,\n left: false,\n right: false\n }\n }\n },\n created: function created () {\n try {\n this.$parent.slides.push(this);\n } catch (e) {\n throw new Error('Slide parent must be Carousel.')\n }\n },\n beforeDestroy: function beforeDestroy () {\n var slides = this.$parent && this.$parent.slides;\n spliceIfExist(slides, this);\n }\n};\n\n/* script */\nvar __vue_script__$1 = script$1;\n\n/* template */\nvar __vue_render__$1 = function() {\n var _vm = this;\n var _h = _vm.$createElement;\n var _c = _vm._self._c || _h;\n return _c(\n \"div\",\n { staticClass: \"item\", class: _vm.slideClass },\n [_vm._t(\"default\")],\n 2\n )\n};\nvar __vue_staticRenderFns__$1 = [];\n__vue_render__$1._withStripped = true;\n\n /* style */\n var __vue_inject_styles__$1 = undefined;\n /* scoped */\n var __vue_scope_id__$1 = undefined;\n /* module identifier */\n var __vue_module_identifier__$1 = undefined;\n /* functional template */\n var __vue_is_functional_template__$1 = false;\n /* style inject */\n \n /* style inject SSR */\n \n /* style inject shadow dom */\n \n\n \n var __vue_component__$1 = /*#__PURE__*/normalizeComponent(\n { render: __vue_render__$1, staticRenderFns: __vue_staticRenderFns__$1 },\n __vue_inject_styles__$1,\n __vue_script__$1,\n __vue_scope_id__$1,\n __vue_is_functional_template__$1,\n __vue_module_identifier__$1,\n false,\n undefined,\n undefined,\n undefined\n );\n\nvar EVENTS = {\n MOUSE_ENTER: 'mouseenter',\n MOUSE_LEAVE: 'mouseleave',\n MOUSE_DOWN: 'mousedown',\n MOUSE_UP: 'mouseup',\n FOCUS: 'focus',\n BLUR: 'blur',\n CLICK: 'click',\n INPUT: 'input',\n KEY_DOWN: 'keydown',\n KEY_UP: 'keyup',\n KEY_PRESS: 'keypress',\n RESIZE: 'resize',\n SCROLL: 'scroll',\n TOUCH_START: 'touchstart',\n TOUCH_END: 'touchend'\n};\n\nvar TRIGGERS = {\n CLICK: 'click',\n HOVER: 'hover',\n FOCUS: 'focus',\n HOVER_FOCUS: 'hover-focus',\n OUTSIDE_CLICK: 'outside-click',\n MANUAL: 'manual'\n};\n\nvar PLACEMENTS = {\n TOP: 'top',\n RIGHT: 'right',\n BOTTOM: 'bottom',\n LEFT: 'left'\n};\n\nfunction isIE11 () {\n /* istanbul ignore next */\n return !!window.MSInputMethodContext && !!document.documentMode\n}\n\nfunction isIE10 () {\n return window.navigator.appVersion.indexOf('MSIE 10') !== -1\n}\n\nfunction getComputedStyle (el) {\n return window.getComputedStyle(el)\n}\n\nfunction getViewportSize () {\n /* istanbul ignore next */\n var width = Math.max(document.documentElement.clientWidth, window.innerWidth) || 0;\n /* istanbul ignore next */\n var height = Math.max(document.documentElement.clientHeight, window.innerHeight) || 0;\n return { width: width, height: height }\n}\n\nvar scrollbarWidth = null;\nvar savedScreenSize = null;\n\nfunction getScrollbarWidth (recalculate) {\n if ( recalculate === void 0 ) recalculate = false;\n\n var screenSize = getViewportSize();\n // return directly when already calculated & not force recalculate & screen size not changed\n if (scrollbarWidth !== null && !recalculate &&\n screenSize.height === savedScreenSize.height && screenSize.width === savedScreenSize.width) {\n return scrollbarWidth\n }\n /* istanbul ignore next */\n if (document.readyState === 'loading') {\n return null\n }\n var div1 = document.createElement('div');\n var div2 = document.createElement('div');\n div1.style.width = div2.style.width = div1.style.height = div2.style.height = '100px';\n div1.style.overflow = 'scroll';\n div2.style.overflow = 'hidden';\n document.body.appendChild(div1);\n document.body.appendChild(div2);\n scrollbarWidth = Math.abs(div1.scrollHeight - div2.scrollHeight);\n document.body.removeChild(div1);\n document.body.removeChild(div2);\n // save new screen size\n savedScreenSize = screenSize;\n return scrollbarWidth\n}\n\nfunction on (element, event, handler) {\n /* istanbul ignore next */\n element.addEventListener(event, handler);\n}\n\nfunction off (element, event, handler) {\n /* istanbul ignore next */\n element.removeEventListener(event, handler);\n}\n\nfunction isElement (el) {\n return el && el.nodeType === Node.ELEMENT_NODE\n}\n\nfunction removeFromDom (el) {\n isElement(el) && isElement(el.parentNode) && el.parentNode.removeChild(el);\n}\n\nfunction ensureElementMatchesFunction () {\n /* istanbul ignore next */\n if (!Element.prototype.matches) {\n Element.prototype.matches =\n Element.prototype.matchesSelector ||\n Element.prototype.mozMatchesSelector ||\n Element.prototype.msMatchesSelector ||\n Element.prototype.oMatchesSelector ||\n Element.prototype.webkitMatchesSelector ||\n function (s) {\n var matches = (this.document || this.ownerDocument).querySelectorAll(s);\n var i = matches.length;\n // eslint-disable-next-line no-empty\n while (--i >= 0 && matches.item(i) !== this) {}\n return i > -1\n };\n }\n}\n\nfunction addClass (el, className) {\n if (!isElement(el)) {\n return\n }\n if (el.className) {\n var classes = el.className.split(' ');\n if (classes.indexOf(className) < 0) {\n classes.push(className);\n el.className = classes.join(' ');\n }\n } else {\n el.className = className;\n }\n}\n\nfunction removeClass (el, className) {\n if (!isElement(el)) {\n return\n }\n if (el.className) {\n var classes = el.className.split(' ');\n var newClasses = [];\n for (var i = 0, l = classes.length; i < l; i++) {\n if (classes[i] !== className) {\n newClasses.push(classes[i]);\n }\n }\n el.className = newClasses.join(' ');\n }\n}\n\nfunction hasClass (el, className) {\n if (!isElement(el)) {\n return false\n }\n var classes = el.className.split(' ');\n for (var i = 0, l = classes.length; i < l; i++) {\n if (classes[i] === className) {\n return true\n }\n }\n return false\n}\n\nfunction setDropdownPosition (dropdown, trigger, options) {\n if ( options === void 0 ) options = {};\n\n var doc = document.documentElement;\n var containerScrollLeft = (window.pageXOffset || doc.scrollLeft) - (doc.clientLeft || 0);\n var containerScrollTop = (window.pageYOffset || doc.scrollTop) - (doc.clientTop || 0);\n var rect = trigger.getBoundingClientRect();\n var dropdownRect = dropdown.getBoundingClientRect();\n dropdown.style.right = 'auto';\n dropdown.style.bottom = 'auto';\n if (options.menuRight) {\n dropdown.style.left = containerScrollLeft + rect.left + rect.width - dropdownRect.width + 'px';\n } else {\n dropdown.style.left = containerScrollLeft + rect.left + 'px';\n }\n if (options.dropup) {\n dropdown.style.top = containerScrollTop + rect.top - dropdownRect.height - 4 + 'px';\n } else {\n dropdown.style.top = containerScrollTop + rect.top + rect.height + 'px';\n }\n}\n\nfunction isAvailableAtPosition (trigger, popup, placement) {\n var triggerRect = trigger.getBoundingClientRect();\n var popupRect = popup.getBoundingClientRect();\n var viewPortSize = getViewportSize();\n var top = true;\n var right = true;\n var bottom = true;\n var left = true;\n switch (placement) {\n case PLACEMENTS.TOP:\n top = triggerRect.top >= popupRect.height;\n left = triggerRect.left + triggerRect.width / 2 >= popupRect.width / 2;\n right = triggerRect.right - triggerRect.width / 2 + popupRect.width / 2 <= viewPortSize.width;\n break\n case PLACEMENTS.BOTTOM:\n bottom = triggerRect.bottom + popupRect.height <= viewPortSize.height;\n left = triggerRect.left + triggerRect.width / 2 >= popupRect.width / 2;\n right = triggerRect.right - triggerRect.width / 2 + popupRect.width / 2 <= viewPortSize.width;\n break\n case PLACEMENTS.RIGHT:\n right = triggerRect.right + popupRect.width <= viewPortSize.width;\n top = triggerRect.top + triggerRect.height / 2 >= popupRect.height / 2;\n bottom = triggerRect.bottom - triggerRect.height / 2 + popupRect.height / 2 <= viewPortSize.height;\n break\n case PLACEMENTS.LEFT:\n left = triggerRect.left >= popupRect.width;\n top = triggerRect.top + triggerRect.height / 2 >= popupRect.height / 2;\n bottom = triggerRect.bottom - triggerRect.height / 2 + popupRect.height / 2 <= viewPortSize.height;\n break\n }\n return top && right && bottom && left\n}\n\nfunction setTooltipPosition (tooltip, trigger, placement, auto, appendTo, positionBy, viewport) {\n if (!isElement(tooltip) || !isElement(trigger)) {\n return\n }\n var isPopover = tooltip && tooltip.className && tooltip.className.indexOf('popover') >= 0;\n var containerScrollTop;\n var containerScrollLeft;\n if (!isExist(appendTo) || appendTo === 'body' || positionBy === 'body') {\n var doc = document.documentElement;\n containerScrollLeft = (window.pageXOffset || doc.scrollLeft) - (doc.clientLeft || 0);\n containerScrollTop = (window.pageYOffset || doc.scrollTop) - (doc.clientTop || 0);\n } else {\n var container = getElementBySelectorOrRef(positionBy || appendTo);\n containerScrollLeft = container.scrollLeft;\n containerScrollTop = container.scrollTop;\n }\n // auto adjust placement\n if (auto) {\n // Try: right -> bottom -> left -> top\n // Cause the default placement is top\n var placements = [PLACEMENTS.RIGHT, PLACEMENTS.BOTTOM, PLACEMENTS.LEFT, PLACEMENTS.TOP];\n // The class switch helper function\n var changePlacementClass = function (placement) {\n // console.log(placement)\n placements.forEach(function (placement) {\n removeClass(tooltip, placement);\n });\n addClass(tooltip, placement);\n };\n // No need to adjust if the default placement fits\n if (!isAvailableAtPosition(trigger, tooltip, placement)) {\n for (var i = 0, l = placements.length; i < l; i++) {\n // Re-assign placement class\n changePlacementClass(placements[i]);\n // Break if new placement fits\n if (isAvailableAtPosition(trigger, tooltip, placements[i])) {\n placement = placements[i];\n break\n }\n }\n changePlacementClass(placement);\n }\n }\n // fix left and top for tooltip\n var rect = trigger.getBoundingClientRect();\n var tooltipRect = tooltip.getBoundingClientRect();\n var top;\n var left;\n if (placement === PLACEMENTS.BOTTOM) {\n top = containerScrollTop + rect.top + rect.height;\n left = containerScrollLeft + rect.left + rect.width / 2 - tooltipRect.width / 2;\n } else if (placement === PLACEMENTS.LEFT) {\n top = containerScrollTop + rect.top + rect.height / 2 - tooltipRect.height / 2;\n left = containerScrollLeft + rect.left - tooltipRect.width;\n } else if (placement === PLACEMENTS.RIGHT) {\n top = containerScrollTop + rect.top + rect.height / 2 - tooltipRect.height / 2;\n // https://github.com/uiv-lib/uiv/issues/272\n // add 1px to fix above issue\n left = containerScrollLeft + rect.left + rect.width + 1;\n } else {\n top = containerScrollTop + rect.top - tooltipRect.height;\n left = containerScrollLeft + rect.left + rect.width / 2 - tooltipRect.width / 2;\n }\n var viewportEl;\n // viewport option\n if (isString(viewport)) {\n viewportEl = document.querySelector(viewport);\n } else if (isFunction(viewport)) {\n viewportEl = viewport(trigger);\n }\n if (isElement(viewportEl)) {\n var popoverFix = isPopover ? 11 : 0;\n var viewportReact = viewportEl.getBoundingClientRect();\n var viewportTop = containerScrollTop + viewportReact.top;\n var viewportLeft = containerScrollLeft + viewportReact.left;\n var viewportBottom = viewportTop + viewportReact.height;\n var viewportRight = viewportLeft + viewportReact.width;\n // fix top\n if (top < viewportTop) {\n top = viewportTop;\n } else if (top + tooltipRect.height > viewportBottom) {\n top = viewportBottom - tooltipRect.height;\n }\n // fix left\n if (left < viewportLeft) {\n left = viewportLeft;\n } else if (left + tooltipRect.width > viewportRight) {\n left = viewportRight - tooltipRect.width;\n }\n // fix for popover pointer\n if (placement === PLACEMENTS.BOTTOM) {\n top -= popoverFix;\n } else if (placement === PLACEMENTS.LEFT) {\n left += popoverFix;\n } else if (placement === PLACEMENTS.RIGHT) {\n left -= popoverFix;\n } else {\n top += popoverFix;\n }\n }\n // set position finally\n tooltip.style.top = top + \"px\";\n tooltip.style.left = left + \"px\";\n}\n\nfunction hasScrollbar (el) {\n var SCROLL = 'scroll';\n var hasVScroll = el.scrollHeight > el.clientHeight;\n var style = getComputedStyle(el);\n return hasVScroll || style.overflow === SCROLL || style.overflowY === SCROLL\n}\n\nfunction toggleBodyOverflow (enable) {\n var MODAL_OPEN = 'modal-open';\n var FIXED_CONTENT = '.navbar-fixed-top, .navbar-fixed-bottom';\n var body = document.body;\n if (enable) {\n removeClass(body, MODAL_OPEN);\n body.style.paddingRight = null;\n nodeListToArray(document.querySelectorAll(FIXED_CONTENT)).forEach(function (node) {\n node.style.paddingRight = null;\n });\n } else {\n var browsersWithFloatingScrollbar = isIE10() || isIE11();\n var documentHasScrollbar = hasScrollbar(document.documentElement) || hasScrollbar(document.body);\n if (documentHasScrollbar && !browsersWithFloatingScrollbar) {\n var scrollbarWidth = getScrollbarWidth();\n body.style.paddingRight = scrollbarWidth + \"px\";\n nodeListToArray(document.querySelectorAll(FIXED_CONTENT)).forEach(function (node) {\n node.style.paddingRight = scrollbarWidth + \"px\";\n });\n }\n addClass(body, MODAL_OPEN);\n }\n}\n\nfunction getClosest (el, selector) {\n ensureElementMatchesFunction();\n var parent;\n var _el = el;\n while (_el) {\n parent = _el.parentElement;\n if (parent && parent.matches(selector)) {\n return parent\n }\n _el = parent;\n }\n return null\n}\n\nfunction getParents (el, selector, until) {\n if ( until === void 0 ) until = null;\n\n ensureElementMatchesFunction();\n var parents = [];\n var parent = el.parentElement;\n while (parent) {\n if (parent.matches(selector)) {\n parents.push(parent);\n } else if (until && (until === parent || parent.matches(until))) {\n break\n }\n parent = parent.parentElement;\n }\n return parents\n}\n\nfunction focus (el) {\n if (!isElement(el)) {\n return\n }\n el.getAttribute('tabindex') ? null : el.setAttribute('tabindex', '-1');\n el.focus();\n}\n\nvar MODAL_BACKDROP = 'modal-backdrop';\n\nfunction getOpenModals () {\n return document.querySelectorAll((\".\" + MODAL_BACKDROP))\n}\n\nfunction getOpenModalNum () {\n return getOpenModals().length\n}\n\nfunction getElementBySelectorOrRef (q) {\n if (isString(q)) { // is selector\n return document.querySelector(q)\n } else if (isElement(q)) { // is element\n return q\n } else if (isElement(q.$el)) { // is component\n return q.$el\n } else {\n return null\n }\n}\n\nvar COLLAPSE = 'collapse';\nvar IN = 'in';\nvar COLLAPSING = 'collapsing';\n\nvar Collapse = {\n render: function render (h) {\n return h(this.tag, {}, this.$slots.default)\n },\n props: {\n tag: {\n type: String,\n default: 'div'\n },\n value: {\n type: Boolean,\n default: false\n },\n transition: {\n type: Number,\n default: 350\n }\n },\n data: function data () {\n return {\n timeoutId: 0\n }\n },\n watch: {\n value: function value (show) {\n this.toggle(show);\n }\n },\n mounted: function mounted () {\n var el = this.$el;\n addClass(el, COLLAPSE);\n if (this.value) {\n addClass(el, IN);\n }\n },\n methods: {\n toggle: function toggle (show) {\n var this$1 = this;\n\n clearTimeout(this.timeoutId);\n var el = this.$el;\n if (show) {\n this.$emit('show');\n removeClass(el, COLLAPSE);\n el.style.height = 'auto';\n var height = window.getComputedStyle(el).height;\n el.style.height = null;\n addClass(el, COLLAPSING);\n el.offsetHeight; // force repaint\n el.style.height = height;\n this.timeoutId = setTimeout(function () {\n removeClass(el, COLLAPSING);\n addClass(el, COLLAPSE);\n addClass(el, IN);\n el.style.height = null;\n this$1.timeoutId = 0;\n this$1.$emit('shown');\n }, this.transition);\n } else {\n this.$emit('hide');\n el.style.height = window.getComputedStyle(el).height;\n removeClass(el, IN);\n removeClass(el, COLLAPSE);\n el.offsetHeight;\n el.style.height = null;\n addClass(el, COLLAPSING);\n this.timeoutId = setTimeout(function () {\n addClass(el, COLLAPSE);\n removeClass(el, COLLAPSING);\n el.style.height = null;\n this$1.timeoutId = 0;\n this$1.$emit('hidden');\n }, this.transition);\n }\n }\n }\n};\n\nvar DEFAULT_TAG = 'div';\n\nvar Dropdown = {\n render: function render (h) {\n return h(\n this.tag,\n {\n class: {\n 'btn-group': this.tag === DEFAULT_TAG,\n dropdown: !this.dropup,\n dropup: this.dropup,\n open: this.show\n }\n },\n [\n this.$slots.default,\n h(\n 'ul',\n {\n class: {\n 'dropdown-menu': true,\n 'dropdown-menu-right': this.menuRight\n },\n ref: 'dropdown'\n },\n [this.$slots.dropdown]\n )\n ]\n )\n },\n props: {\n tag: {\n type: String,\n default: DEFAULT_TAG\n },\n appendToBody: {\n type: Boolean,\n default: false\n },\n value: Boolean,\n dropup: {\n type: Boolean,\n default: false\n },\n menuRight: {\n type: Boolean,\n default: false\n },\n disabled: {\n type: Boolean,\n default: false\n },\n notCloseElements: Array,\n positionElement: null\n },\n data: function data () {\n return {\n show: false,\n triggerEl: undefined\n }\n },\n watch: {\n value: function value (v) {\n this.toggle(v);\n }\n },\n mounted: function mounted () {\n this.initTrigger();\n if (this.triggerEl) {\n on(this.triggerEl, EVENTS.CLICK, this.toggle);\n on(this.triggerEl, EVENTS.KEY_DOWN, this.onKeyPress);\n }\n on(this.$refs.dropdown, EVENTS.KEY_DOWN, this.onKeyPress);\n on(window, EVENTS.CLICK, this.windowClicked);\n on(window, EVENTS.TOUCH_END, this.windowClicked);\n if (this.value) {\n this.toggle(true);\n }\n },\n beforeDestroy: function beforeDestroy () {\n this.removeDropdownFromBody();\n if (this.triggerEl) {\n off(this.triggerEl, EVENTS.CLICK, this.toggle);\n off(this.triggerEl, EVENTS.KEY_DOWN, this.onKeyPress);\n }\n off(this.$refs.dropdown, EVENTS.KEY_DOWN, this.onKeyPress);\n off(window, EVENTS.CLICK, this.windowClicked);\n off(window, EVENTS.TOUCH_END, this.windowClicked);\n },\n methods: {\n getFocusItem: function getFocusItem () {\n var dropdownEl = this.$refs.dropdown;\n /* istanbul ignore next */\n return dropdownEl.querySelector('li > a:focus')\n },\n onKeyPress: function onKeyPress (event) {\n if (this.show) {\n var dropdownEl = this.$refs.dropdown;\n var keyCode = event.keyCode;\n if (keyCode === 27) {\n // esc\n this.toggle(false);\n this.triggerEl && this.triggerEl.focus();\n } else if (keyCode === 13) {\n // enter\n var currentFocus = this.getFocusItem();\n currentFocus && currentFocus.click();\n } else if (keyCode === 38 || keyCode === 40) {\n // up || down\n event.preventDefault();\n event.stopPropagation();\n var currentFocus$1 = this.getFocusItem();\n var items = dropdownEl.querySelectorAll('li:not(.disabled) > a');\n if (!currentFocus$1) {\n focus(items[0]);\n } else {\n for (var i = 0; i < items.length; i++) {\n if (currentFocus$1 === items[i]) {\n if (keyCode === 38 && i < items.length > 0) {\n focus(items[i - 1]);\n } else if (keyCode === 40 && i < items.length - 1) {\n focus(items[i + 1]);\n }\n break\n }\n }\n }\n }\n }\n },\n initTrigger: function initTrigger () {\n var trigger = this.$el.querySelector('[data-role=\"trigger\"]') || this.$el.querySelector('.dropdown-toggle') || this.$el.firstChild;\n this.triggerEl = trigger && trigger !== this.$refs.dropdown ? trigger : null;\n },\n toggle: function toggle (show) {\n if (this.disabled) {\n return\n }\n if (isBoolean(show)) {\n this.show = show;\n } else {\n this.show = !this.show;\n }\n if (this.appendToBody) {\n this.show ? this.appendDropdownToBody() : this.removeDropdownFromBody();\n }\n this.$emit('input', this.show);\n },\n windowClicked: function windowClicked (event) {\n var target = event.target;\n if (this.show && target) {\n var targetInNotCloseElements = false;\n if (this.notCloseElements) {\n for (var i = 0, l = this.notCloseElements.length; i < l; i++) {\n var isTargetInElement = this.notCloseElements[i].contains(target);\n var shouldBreak = isTargetInElement;\n /* istanbul ignore else */\n if (this.appendToBody) {\n var isTargetInDropdown = this.$refs.dropdown.contains(target);\n var isElInElements = this.notCloseElements.indexOf(this.$el) >= 0;\n shouldBreak = isTargetInElement || (isTargetInDropdown && isElInElements);\n }\n if (shouldBreak) {\n targetInNotCloseElements = true;\n break\n }\n }\n }\n var targetInDropdownBody = this.$refs.dropdown.contains(target);\n var targetInTrigger = this.$el.contains(target) && !targetInDropdownBody;\n // normally, a dropdown select event is handled by @click that trigger after @touchend\n // then @touchend event have to be ignore in this case\n var targetInDropdownAndIsTouchEvent = targetInDropdownBody && event.type === 'touchend';\n if (!targetInTrigger && !targetInNotCloseElements && !targetInDropdownAndIsTouchEvent) {\n this.toggle(false);\n }\n }\n },\n appendDropdownToBody: function appendDropdownToBody () {\n try {\n var el = this.$refs.dropdown;\n el.style.display = 'block';\n document.body.appendChild(el);\n var positionElement = this.positionElement || this.$el;\n setDropdownPosition(el, positionElement, this);\n } catch (e) {\n // Silent\n }\n },\n removeDropdownFromBody: function removeDropdownFromBody () {\n try {\n var el = this.$refs.dropdown;\n el.removeAttribute('style');\n this.$el.appendChild(el);\n } catch (e) {\n // Silent\n }\n }\n }\n};\n\nvar defaultLang = {\n uiv: {\n datePicker: {\n clear: 'Clear',\n today: 'Today',\n month: 'Month',\n month1: 'January',\n month2: 'February',\n month3: 'March',\n month4: 'April',\n month5: 'May',\n month6: 'June',\n month7: 'July',\n month8: 'August',\n month9: 'September',\n month10: 'October',\n month11: 'November',\n month12: 'December',\n year: 'Year',\n week1: 'Mon',\n week2: 'Tue',\n week3: 'Wed',\n week4: 'Thu',\n week5: 'Fri',\n week6: 'Sat',\n week7: 'Sun'\n },\n timePicker: {\n am: 'AM',\n pm: 'PM'\n },\n modal: {\n cancel: 'Cancel',\n ok: 'OK'\n },\n multiSelect: {\n placeholder: 'Select...',\n filterPlaceholder: 'Search...'\n }\n }\n};\n\n// https://github.com/ElemeFE/element/blob/dev/src/locale/index.js\n\nvar lang = defaultLang;\n\nvar i18nHandler = function () {\n var vuei18n = Object.getPrototypeOf(this).$t;\n /* istanbul ignore else */\n /* istanbul ignore next */\n if (isFunction(vuei18n)) {\n /* istanbul ignore next */\n try {\n return vuei18n.apply(this, arguments)\n } catch (err) {\n return this.$t.apply(this, arguments)\n }\n }\n};\n\nvar t = function (path, options) {\n options = options || {};\n var value;\n try {\n value = i18nHandler.apply(this, arguments);\n /* istanbul ignore next */\n if (isExist(value) && !options.$$locale) {\n return value\n }\n } catch (e) {\n // ignore\n }\n var array = path.split('.');\n var current = options.$$locale || lang;\n\n for (var i = 0, j = array.length; i < j; i++) {\n var property = array[i];\n value = current[property];\n if (i === j - 1) { return value }\n if (!value) { return '' }\n current = value;\n }\n /* istanbul ignore next */\n return ''\n};\n\nvar use = function (l) {\n lang = l || lang;\n};\n\nvar i18n = function (fn) {\n i18nHandler = fn || i18nHandler;\n};\n\nvar locale = { use: use, t: t, i18n: i18n };\n\nvar Local = {\n methods: {\n t: function t$1 () {\n var arguments$1 = arguments;\n\n var args = [];\n for (var i = 0; i < arguments.length; ++i) {\n args.push(arguments$1[i]);\n }\n args[1] = assign({}, { $$locale: this.locale }, args[1]);\n return t.apply(this, args)\n }\n },\n props: {\n locale: Object\n }\n};\n\nvar e=function(){return (e=Object.assign||function(e){for(var t,r=1,s=arguments.length;r props\n href: String,\n target: String,\n // props\n to: null,\n replace: {\n type: Boolean,\n default: false\n },\n append: {\n type: Boolean,\n default: false\n },\n exact: {\n type: Boolean,\n default: false\n }\n }\n};\n\nvar BtnGroup = {\n functional: true,\n render: function render (h, ref) {\n var obj;\n\n var props = ref.props;\n var children = ref.children;\n var data = ref.data;\n return h(\n 'div',\n a(data, {\n class: ( obj = {\n 'btn-group': !props.vertical,\n 'btn-group-vertical': props.vertical,\n 'btn-group-justified': props.justified\n }, obj[(\"btn-group-\" + (props.size))] = props.size, obj ),\n attrs: {\n role: 'group',\n 'data-toggle': 'buttons'\n }\n }),\n children\n )\n },\n props: {\n size: String,\n vertical: {\n type: Boolean,\n default: false\n },\n justified: {\n type: Boolean,\n default: false\n }\n }\n};\n\nvar INPUT_TYPE_CHECKBOX = 'checkbox';\nvar INPUT_TYPE_RADIO = 'radio';\n\nvar Btn = {\n functional: true,\n mixins: [linkMixin],\n render: function render (h, ref) {\n var children = ref.children;\n var props = ref.props;\n var data = ref.data;\n\n // event listeners\n var listeners = data.on || {};\n // checkbox: model contain inputValue\n // radio: model === inputValue\n var isInputActive = props.inputType === INPUT_TYPE_CHECKBOX ? props.value.indexOf(props.inputValue) >= 0 : props.value === props.inputValue;\n // button class\n var classes = {\n btn: true,\n active: props.inputType ? isInputActive : props.active,\n disabled: props.disabled,\n 'btn-block': props.block\n };\n classes[(\"btn-\" + (props.type))] = Boolean(props.type);\n classes[(\"btn-\" + (props.size))] = Boolean(props.size);\n // prevent event for disabled links\n var on = {\n click: function click (e) {\n if (props.disabled && e instanceof Event) {\n e.preventDefault();\n e.stopPropagation();\n }\n }\n };\n // render params\n var tag, options, slot;\n\n if (props.href) {\n // is native link\n tag = 'a';\n slot = children;\n options = a(data, {\n on: on,\n class: classes,\n attrs: {\n role: 'button',\n href: props.href,\n target: props.target\n }\n });\n } else if (props.to) {\n // is vue router link\n tag = 'router-link';\n slot = children;\n options = a(data, {\n nativeOn: on,\n class: classes,\n props: {\n event: props.disabled ? '' : 'click', // prevent nav while disabled\n to: props.to,\n replace: props.replace,\n append: props.append,\n exact: props.exact\n },\n attrs: {\n role: 'button'\n }\n });\n } else if (props.inputType) {\n // is input checkbox or radio\n tag = 'label';\n options = a(data, {\n on: on,\n class: classes\n });\n slot = [\n h('input', {\n attrs: {\n autocomplete: 'off',\n type: props.inputType,\n checked: isInputActive ? 'checked' : null,\n disabled: props.disabled\n },\n domProps: {\n checked: isInputActive // required\n },\n on: {\n input: function input (evt) {\n evt.stopPropagation();\n },\n change: function change () {\n if (props.inputType === INPUT_TYPE_CHECKBOX) {\n var valueCopied = props.value.slice();\n if (isInputActive) {\n valueCopied.splice(valueCopied.indexOf(props.inputValue), 1);\n } else {\n valueCopied.push(props.inputValue);\n }\n listeners.input(valueCopied);\n } else {\n listeners.input(props.inputValue);\n }\n }\n }\n }),\n children\n ];\n } else if (props.justified) {\n // is in justified btn-group\n tag = BtnGroup;\n options = {};\n slot = [\n h('button', a(data, {\n on: on,\n class: classes,\n attrs: {\n type: props.nativeType,\n disabled: props.disabled\n }\n }), children)\n ];\n } else {\n // is button\n tag = 'button';\n slot = children;\n options = a(data, {\n on: on,\n class: classes,\n attrs: {\n type: props.nativeType,\n disabled: props.disabled\n }\n });\n }\n\n return h(tag, options, slot)\n },\n props: {\n justified: {\n type: Boolean,\n default: false\n },\n type: {\n type: String,\n default: 'default'\n },\n nativeType: {\n type: String,\n default: 'button'\n },\n size: String,\n block: {\n type: Boolean,\n default: false\n },\n active: {\n type: Boolean,\n default: false\n },\n disabled: {\n type: Boolean,\n default: false\n },\n // props\n value: null,\n inputValue: null,\n inputType: {\n type: String,\n validator: function validator (value) {\n return value === INPUT_TYPE_CHECKBOX || value === INPUT_TYPE_RADIO\n }\n }\n }\n};\n\nvar IN$1 = 'in';\n\nvar script$2 = {\n mixins: [Local],\n components: { Btn: Btn },\n props: {\n value: {\n type: Boolean,\n default: false\n },\n title: String,\n size: String,\n backdrop: {\n type: Boolean,\n default: true\n },\n footer: {\n type: Boolean,\n default: true\n },\n header: {\n type: Boolean,\n default: true\n },\n cancelText: String,\n cancelType: {\n type: String,\n default: 'default'\n },\n okText: String,\n okType: {\n type: String,\n default: 'primary'\n },\n dismissBtn: {\n type: Boolean,\n default: true\n },\n transition: {\n type: Number,\n default: 150\n },\n autoFocus: {\n type: Boolean,\n default: false\n },\n keyboard: {\n type: Boolean,\n default: true\n },\n beforeClose: Function,\n zOffset: {\n type: Number,\n default: 20\n },\n appendToBody: {\n type: Boolean,\n default: false\n },\n displayStyle: {\n type: String,\n default: 'block'\n }\n },\n data: function data () {\n return {\n msg: ''\n }\n },\n computed: {\n modalSizeClass: function modalSizeClass () {\n var obj;\n\n return ( obj = {}, obj[(\"modal-\" + (this.size))] = Boolean(this.size), obj )\n }\n },\n watch: {\n value: function value (v) {\n this.$toggle(v);\n }\n },\n mounted: function mounted () {\n removeFromDom(this.$refs.backdrop);\n on(window, EVENTS.MOUSE_DOWN, this.suppressBackgroundClose);\n on(window, EVENTS.KEY_UP, this.onKeyPress);\n if (this.value) {\n this.$toggle(true);\n }\n },\n beforeDestroy: function beforeDestroy () {\n clearTimeout(this.timeoutId);\n removeFromDom(this.$refs.backdrop);\n removeFromDom(this.$el);\n if (getOpenModalNum() === 0) {\n toggleBodyOverflow(true);\n }\n off(window, EVENTS.MOUSE_DOWN, this.suppressBackgroundClose);\n off(window, EVENTS.MOUSE_UP, this.unsuppressBackgroundClose);\n off(window, EVENTS.KEY_UP, this.onKeyPress);\n },\n methods: {\n onKeyPress: function onKeyPress (event) {\n if (this.keyboard && this.value && event.keyCode === 27) {\n var thisModal = this.$refs.backdrop;\n var thisZIndex = thisModal.style.zIndex;\n thisZIndex = thisZIndex && thisZIndex !== 'auto' ? parseInt(thisZIndex) : 0;\n // Find out if this modal is the top most one.\n var modals = getOpenModals();\n var modalsLength = modals.length;\n for (var i = 0; i < modalsLength; i++) {\n if (modals[i] !== thisModal) {\n var zIndex = modals[i].style.zIndex;\n zIndex = zIndex && zIndex !== 'auto' ? parseInt(zIndex) : 0;\n // if any existing modal has higher zIndex, ignore\n if (zIndex > thisZIndex) {\n return\n }\n }\n }\n this.toggle(false);\n }\n },\n toggle: function toggle (show, msg) {\n var this$1 = this;\n\n var shouldClose = true;\n if (isFunction(this.beforeClose)) {\n shouldClose = this.beforeClose(msg);\n }\n\n if (isPromiseSupported()) {\n // Skip the hiding when beforeClose returning falsely value or returned Promise resolves to falsely value\n // Use Promise.resolve to accept both Boolean values and Promises\n Promise.resolve(shouldClose).then(function (shouldClose) {\n // Skip the hiding while show===false\n if (!show && shouldClose) {\n this$1.msg = msg;\n this$1.$emit('input', show);\n }\n });\n } else {\n // Fallback to old version if promise is not supported\n // skip the hiding while show===false & beforeClose returning falsely value\n if (!show && !shouldClose) {\n return\n }\n\n this.msg = msg;\n this.$emit('input', show);\n }\n },\n $toggle: function $toggle (show) {\n var this$1 = this;\n\n var modal = this.$el;\n var backdrop = this.$refs.backdrop;\n clearTimeout(this.timeoutId);\n if (show) {\n // If two modals share the same v-if condition the calculated z-index is incorrect,\n // resulting in popover misbehaviour.\n // solved by adding a nextTick.\n // https://github.com/uiv-lib/uiv/issues/342\n this.$nextTick(function () {\n var alreadyOpenModalNum = getOpenModalNum();\n document.body.appendChild(backdrop);\n if (this$1.appendToBody) {\n document.body.appendChild(modal);\n }\n modal.style.display = this$1.displayStyle;\n modal.scrollTop = 0;\n backdrop.offsetHeight; // force repaint\n toggleBodyOverflow(false);\n addClass(backdrop, IN$1);\n addClass(modal, IN$1);\n // fix z-index for nested modals\n // no need to calculate if no modal is already open\n if (alreadyOpenModalNum > 0) {\n var modalBaseZ = parseInt(getComputedStyle(modal).zIndex) || 1050; // 1050 is default modal z-Index\n var backdropBaseZ = parseInt(getComputedStyle(backdrop).zIndex) || 1040; // 1040 is default backdrop z-Index\n var offset = alreadyOpenModalNum * this$1.zOffset;\n modal.style.zIndex = \"\" + (modalBaseZ + offset);\n backdrop.style.zIndex = \"\" + (backdropBaseZ + offset);\n }\n // z-index fix end\n this$1.timeoutId = setTimeout(function () {\n if (this$1.autoFocus) {\n var btn = this$1.$el.querySelector('[data-action=\"auto-focus\"]');\n if (btn) {\n btn.focus();\n }\n }\n this$1.$emit('show');\n this$1.timeoutId = 0;\n }, this$1.transition);\n });\n } else {\n removeClass(backdrop, IN$1);\n removeClass(modal, IN$1);\n this.timeoutId = setTimeout(function () {\n modal.style.display = 'none';\n removeFromDom(backdrop);\n if (this$1.appendToBody) {\n removeFromDom(modal);\n }\n if (getOpenModalNum() === 0) {\n toggleBodyOverflow(true);\n }\n this$1.$emit('hide', this$1.msg || 'dismiss');\n this$1.msg = '';\n this$1.timeoutId = 0;\n // restore z-index for nested modals\n modal.style.zIndex = '';\n backdrop.style.zIndex = '';\n // z-index fix end\n }, this.transition);\n }\n },\n suppressBackgroundClose: function suppressBackgroundClose (event) {\n if (event && event.target === this.$el) {\n return\n }\n this.isCloseSuppressed = true;\n on(window, 'mouseup', this.unsuppressBackgroundClose);\n },\n unsuppressBackgroundClose: function unsuppressBackgroundClose () {\n var this$1 = this;\n\n if (this.isCloseSuppressed) {\n off(window, 'mouseup', this.unsuppressBackgroundClose);\n setTimeout(function () {\n this$1.isCloseSuppressed = false;\n }, 1);\n }\n },\n backdropClicked: function backdropClicked (event) {\n if (this.backdrop && !this.isCloseSuppressed) {\n this.toggle(false);\n }\n }\n }\n};\n\n/* script */\nvar __vue_script__$2 = script$2;\n\n/* template */\nvar __vue_render__$2 = function() {\n var _vm = this;\n var _h = _vm.$createElement;\n var _c = _vm._self._c || _h;\n return _c(\n \"div\",\n {\n staticClass: \"modal\",\n class: { fade: _vm.transition > 0 },\n attrs: { tabindex: \"-1\", role: \"dialog\" },\n on: {\n click: function($event) {\n if ($event.target !== $event.currentTarget) {\n return null\n }\n return _vm.backdropClicked($event)\n }\n }\n },\n [\n _c(\n \"div\",\n {\n ref: \"dialog\",\n staticClass: \"modal-dialog\",\n class: _vm.modalSizeClass,\n attrs: { role: \"document\" }\n },\n [\n _c(\"div\", { staticClass: \"modal-content\" }, [\n _vm.header\n ? _c(\n \"div\",\n { staticClass: \"modal-header\" },\n [\n _vm._t(\"header\", [\n _vm.dismissBtn\n ? _c(\n \"button\",\n {\n staticClass: \"close\",\n staticStyle: {\n position: \"relative\",\n \"z-index\": \"1060\"\n },\n attrs: { type: \"button\", \"aria-label\": \"Close\" },\n on: {\n click: function($event) {\n return _vm.toggle(false)\n }\n }\n },\n [\n _c(\"span\", { attrs: { \"aria-hidden\": \"true\" } }, [\n _vm._v(\"×\")\n ])\n ]\n )\n : _vm._e(),\n _vm._v(\" \"),\n _c(\n \"h4\",\n { staticClass: \"modal-title\" },\n [_vm._t(\"title\", [_vm._v(_vm._s(_vm.title))])],\n 2\n )\n ])\n ],\n 2\n )\n : _vm._e(),\n _vm._v(\" \"),\n _c(\"div\", { staticClass: \"modal-body\" }, [_vm._t(\"default\")], 2),\n _vm._v(\" \"),\n _vm.footer\n ? _c(\n \"div\",\n { staticClass: \"modal-footer\" },\n [\n _vm._t(\"footer\", [\n _c(\n \"btn\",\n {\n attrs: { type: _vm.cancelType },\n on: {\n click: function($event) {\n return _vm.toggle(false, \"cancel\")\n }\n }\n },\n [\n _c(\"span\", [\n _vm._v(\n _vm._s(\n _vm.cancelText || _vm.t(\"uiv.modal.cancel\")\n )\n )\n ])\n ]\n ),\n _vm._v(\" \"),\n _c(\n \"btn\",\n {\n attrs: {\n type: _vm.okType,\n \"data-action\": \"auto-focus\"\n },\n on: {\n click: function($event) {\n return _vm.toggle(false, \"ok\")\n }\n }\n },\n [\n _c(\"span\", [\n _vm._v(_vm._s(_vm.okText || _vm.t(\"uiv.modal.ok\")))\n ])\n ]\n )\n ])\n ],\n 2\n )\n : _vm._e()\n ])\n ]\n ),\n _vm._v(\" \"),\n _c(\"div\", {\n ref: \"backdrop\",\n staticClass: \"modal-backdrop\",\n class: { fade: _vm.transition > 0 }\n })\n ]\n )\n};\nvar __vue_staticRenderFns__$2 = [];\n__vue_render__$2._withStripped = true;\n\n /* style */\n var __vue_inject_styles__$2 = undefined;\n /* scoped */\n var __vue_scope_id__$2 = undefined;\n /* module identifier */\n var __vue_module_identifier__$2 = undefined;\n /* functional template */\n var __vue_is_functional_template__$2 = false;\n /* style inject */\n \n /* style inject SSR */\n \n /* style inject shadow dom */\n \n\n \n var __vue_component__$2 = /*#__PURE__*/normalizeComponent(\n { render: __vue_render__$2, staticRenderFns: __vue_staticRenderFns__$2 },\n __vue_inject_styles__$2,\n __vue_script__$2,\n __vue_scope_id__$2,\n __vue_is_functional_template__$2,\n __vue_module_identifier__$2,\n false,\n undefined,\n undefined,\n undefined\n );\n\nfunction _typeof(obj) {\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n _typeof = function (obj) {\n return typeof obj;\n };\n } else {\n _typeof = function (obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n }\n\n return _typeof(obj);\n}\n\nfunction _toConsumableArray(arr) {\n return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread();\n}\n\nfunction _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) {\n for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; }\n\n return arr2;\n }\n}\n\nfunction _iterableToArray(iter) {\n if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === \"[object Arguments]\") { return Array.from(iter); }\n}\n\nfunction _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance\");\n}\n\nvar inBrowser = typeof window !== 'undefined';\nfunction freeze(item) {\n if (Array.isArray(item) || _typeof(item) === 'object') {\n return Object.freeze(item);\n }\n\n return item;\n}\nfunction combinePassengers(transports) {\n var slotProps = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n return transports.reduce(function (passengers, transport) {\n var temp = transport.passengers[0];\n var newPassengers = typeof temp === 'function' ? temp(slotProps) : transport.passengers;\n return passengers.concat(newPassengers);\n }, []);\n}\nfunction stableSort(array, compareFn) {\n return array.map(function (v, idx) {\n return [idx, v];\n }).sort(function (a, b) {\n return compareFn(a[1], b[1]) || a[0] - b[0];\n }).map(function (c) {\n return c[1];\n });\n}\nfunction pick(obj, keys) {\n return keys.reduce(function (acc, key) {\n if (obj.hasOwnProperty(key)) {\n acc[key] = obj[key];\n }\n\n return acc;\n }, {});\n}\n\nvar transports = {};\nvar targets = {};\nvar sources = {};\nvar Wormhole = Vue.extend({\n data: function data() {\n return {\n transports: transports,\n targets: targets,\n sources: sources,\n trackInstances: inBrowser\n };\n },\n methods: {\n open: function open(transport) {\n if (!inBrowser) { return; }\n var to = transport.to,\n from = transport.from,\n passengers = transport.passengers,\n _transport$order = transport.order,\n order = _transport$order === void 0 ? Infinity : _transport$order;\n if (!to || !from || !passengers) { return; }\n var newTransport = {\n to: to,\n from: from,\n passengers: freeze(passengers),\n order: order\n };\n var keys = Object.keys(this.transports);\n\n if (keys.indexOf(to) === -1) {\n Vue.set(this.transports, to, []);\n }\n\n var currentIndex = this.$_getTransportIndex(newTransport); // Copying the array here so that the PortalTarget change event will actually contain two distinct arrays\n\n var newTransports = this.transports[to].slice(0);\n\n if (currentIndex === -1) {\n newTransports.push(newTransport);\n } else {\n newTransports[currentIndex] = newTransport;\n }\n\n this.transports[to] = stableSort(newTransports, function (a, b) {\n return a.order - b.order;\n });\n },\n close: function close(transport) {\n var force = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n var to = transport.to,\n from = transport.from;\n if (!to || !from && force === false) { return; }\n\n if (!this.transports[to]) {\n return;\n }\n\n if (force) {\n this.transports[to] = [];\n } else {\n var index = this.$_getTransportIndex(transport);\n\n if (index >= 0) {\n // Copying the array here so that the PortalTarget change event will actually contain two distinct arrays\n var newTransports = this.transports[to].slice(0);\n newTransports.splice(index, 1);\n this.transports[to] = newTransports;\n }\n }\n },\n registerTarget: function registerTarget(target, vm, force) {\n if (!inBrowser) { return; }\n\n if (this.trackInstances && !force && this.targets[target]) {\n console.warn(\"[portal-vue]: Target \".concat(target, \" already exists\"));\n }\n\n this.$set(this.targets, target, Object.freeze([vm]));\n },\n unregisterTarget: function unregisterTarget(target) {\n this.$delete(this.targets, target);\n },\n registerSource: function registerSource(source, vm, force) {\n if (!inBrowser) { return; }\n\n if (this.trackInstances && !force && this.sources[source]) {\n console.warn(\"[portal-vue]: source \".concat(source, \" already exists\"));\n }\n\n this.$set(this.sources, source, Object.freeze([vm]));\n },\n unregisterSource: function unregisterSource(source) {\n this.$delete(this.sources, source);\n },\n hasTarget: function hasTarget(to) {\n return !!(this.targets[to] && this.targets[to][0]);\n },\n hasSource: function hasSource(to) {\n return !!(this.sources[to] && this.sources[to][0]);\n },\n hasContentFor: function hasContentFor(to) {\n return !!this.transports[to] && !!this.transports[to].length;\n },\n // Internal\n $_getTransportIndex: function $_getTransportIndex(_ref) {\n var to = _ref.to,\n from = _ref.from;\n\n for (var i in this.transports[to]) {\n if (this.transports[to][i].from === from) {\n return +i;\n }\n }\n\n return -1;\n }\n }\n});\nvar wormhole = new Wormhole(transports);\n\nvar _id = 1;\nvar Portal = Vue.extend({\n name: 'portal',\n props: {\n disabled: {\n type: Boolean\n },\n name: {\n type: String,\n default: function _default() {\n return String(_id++);\n }\n },\n order: {\n type: Number,\n default: 0\n },\n slim: {\n type: Boolean\n },\n slotProps: {\n type: Object,\n default: function _default() {\n return {};\n }\n },\n tag: {\n type: String,\n default: 'DIV'\n },\n to: {\n type: String,\n default: function _default() {\n return String(Math.round(Math.random() * 10000000));\n }\n }\n },\n created: function created() {\n var _this = this;\n\n this.$nextTick(function () {\n wormhole.registerSource(_this.name, _this);\n });\n },\n mounted: function mounted() {\n if (!this.disabled) {\n this.sendUpdate();\n }\n },\n updated: function updated() {\n if (this.disabled) {\n this.clear();\n } else {\n this.sendUpdate();\n }\n },\n beforeDestroy: function beforeDestroy() {\n wormhole.unregisterSource(this.name);\n this.clear();\n },\n watch: {\n to: function to(newValue, oldValue) {\n oldValue && oldValue !== newValue && this.clear(oldValue);\n this.sendUpdate();\n }\n },\n methods: {\n clear: function clear(target) {\n var closer = {\n from: this.name,\n to: target || this.to\n };\n wormhole.close(closer);\n },\n normalizeSlots: function normalizeSlots() {\n return this.$scopedSlots.default ? [this.$scopedSlots.default] : this.$slots.default;\n },\n normalizeOwnChildren: function normalizeOwnChildren(children) {\n return typeof children === 'function' ? children(this.slotProps) : children;\n },\n sendUpdate: function sendUpdate() {\n var slotContent = this.normalizeSlots();\n\n if (slotContent) {\n var transport = {\n from: this.name,\n to: this.to,\n passengers: _toConsumableArray(slotContent),\n order: this.order\n };\n wormhole.open(transport);\n } else {\n this.clear();\n }\n }\n },\n render: function render(h) {\n var children = this.$slots.default || this.$scopedSlots.default || [];\n var Tag = this.tag;\n\n if (children && this.disabled) {\n return children.length <= 1 && this.slim ? this.normalizeOwnChildren(children)[0] : h(Tag, [this.normalizeOwnChildren(children)]);\n } else {\n return this.slim ? h() : h(Tag, {\n class: {\n 'v-portal': true\n },\n style: {\n display: 'none'\n },\n key: 'v-portal-placeholder'\n });\n }\n }\n});\n\nvar PortalTarget = Vue.extend({\n name: 'portalTarget',\n props: {\n multiple: {\n type: Boolean,\n default: false\n },\n name: {\n type: String,\n required: true\n },\n slim: {\n type: Boolean,\n default: false\n },\n slotProps: {\n type: Object,\n default: function _default() {\n return {};\n }\n },\n tag: {\n type: String,\n default: 'div'\n },\n transition: {\n type: [String, Object, Function]\n }\n },\n data: function data() {\n return {\n transports: wormhole.transports,\n firstRender: true\n };\n },\n created: function created() {\n var _this = this;\n\n this.$nextTick(function () {\n wormhole.registerTarget(_this.name, _this);\n });\n },\n watch: {\n ownTransports: function ownTransports() {\n this.$emit('change', this.children().length > 0);\n },\n name: function name(newVal, oldVal) {\n /**\r\n * TODO\r\n * This should warn as well ...\r\n */\n wormhole.unregisterTarget(oldVal);\n wormhole.registerTarget(newVal, this);\n }\n },\n mounted: function mounted() {\n var _this2 = this;\n\n if (this.transition) {\n this.$nextTick(function () {\n // only when we have a transition, because it causes a re-render\n _this2.firstRender = false;\n });\n }\n },\n beforeDestroy: function beforeDestroy() {\n wormhole.unregisterTarget(this.name);\n },\n computed: {\n ownTransports: function ownTransports() {\n var transports = this.transports[this.name] || [];\n\n if (this.multiple) {\n return transports;\n }\n\n return transports.length === 0 ? [] : [transports[transports.length - 1]];\n },\n passengers: function passengers() {\n return combinePassengers(this.ownTransports, this.slotProps);\n }\n },\n methods: {\n // can't be a computed prop because it has to \"react\" to $slot changes.\n children: function children() {\n return this.passengers.length !== 0 ? this.passengers : this.$scopedSlots.default ? this.$scopedSlots.default(this.slotProps) : this.$slots.default || [];\n },\n // can't be a computed prop because it has to \"react\" to this.children().\n noWrapper: function noWrapper() {\n var noWrapper = this.slim && !this.transition;\n\n if (noWrapper && this.children().length > 1) {\n console.warn('[portal-vue]: PortalTarget with `slim` option received more than one child element.');\n }\n\n return noWrapper;\n }\n },\n render: function render(h) {\n var noWrapper = this.noWrapper();\n var children = this.children();\n var Tag = this.transition || this.tag;\n return noWrapper ? children[0] : this.slim && !Tag ? h() : h(Tag, {\n props: {\n // if we have a transition component, pass the tag if it exists\n tag: this.transition && this.tag ? this.tag : undefined\n },\n class: {\n 'vue-portal-target': true\n }\n }, children);\n }\n});\n\nvar _id$1 = 0;\nvar portalProps = ['disabled', 'name', 'order', 'slim', 'slotProps', 'tag', 'to'];\nvar targetProps = ['multiple', 'transition'];\nVue.extend({\n name: 'MountingPortal',\n inheritAttrs: false,\n props: {\n append: {\n type: [Boolean, String]\n },\n bail: {\n type: Boolean\n },\n mountTo: {\n type: String,\n required: true\n },\n // Portal\n disabled: {\n type: Boolean\n },\n // name for the portal\n name: {\n type: String,\n default: function _default() {\n return 'mounted_' + String(_id$1++);\n }\n },\n order: {\n type: Number,\n default: 0\n },\n slim: {\n type: Boolean\n },\n slotProps: {\n type: Object,\n default: function _default() {\n return {};\n }\n },\n tag: {\n type: String,\n default: 'DIV'\n },\n // name for the target\n to: {\n type: String,\n default: function _default() {\n return String(Math.round(Math.random() * 10000000));\n }\n },\n // Target\n multiple: {\n type: Boolean,\n default: false\n },\n targetSlim: {\n type: Boolean\n },\n targetSlotProps: {\n type: Object,\n default: function _default() {\n return {};\n }\n },\n targetTag: {\n type: String,\n default: 'div'\n },\n transition: {\n type: [String, Object, Function]\n }\n },\n created: function created() {\n if (typeof document === 'undefined') { return; }\n var el = document.querySelector(this.mountTo);\n\n if (!el) {\n console.error(\"[portal-vue]: Mount Point '\".concat(this.mountTo, \"' not found in document\"));\n return;\n }\n\n var props = this.$props; // Target already exists\n\n if (wormhole.targets[props.name]) {\n if (props.bail) {\n console.warn(\"[portal-vue]: Target \".concat(props.name, \" is already mounted.\\n Aborting because 'bail: true' is set\"));\n } else {\n this.portalTarget = wormhole.targets[props.name];\n }\n\n return;\n }\n\n var append = props.append;\n\n if (append) {\n var type = typeof append === 'string' ? append : 'DIV';\n var mountEl = document.createElement(type);\n el.appendChild(mountEl);\n el = mountEl;\n } // get props for target from $props\n // we have to rename a few of them\n\n\n var _props = pick(this.$props, targetProps);\n\n _props.slim = this.targetSlim;\n _props.tag = this.targetTag;\n _props.slotProps = this.targetSlotProps;\n _props.name = this.to;\n this.portalTarget = new PortalTarget({\n el: el,\n parent: this.$parent || this,\n propsData: _props\n });\n },\n beforeDestroy: function beforeDestroy() {\n var target = this.portalTarget;\n\n if (this.append) {\n var el = target.$el;\n el.parentNode.removeChild(el);\n }\n\n target.$destroy();\n },\n render: function render(h) {\n if (!this.portalTarget) {\n console.warn(\"[portal-vue] Target wasn't mounted\");\n return h();\n } // if there's no \"manual\" scoped slot, so we create a ourselves\n\n\n if (!this.$scopedSlots.manual) {\n var props = pick(this.$props, portalProps);\n return h(Portal, {\n props: props,\n attrs: this.$attrs,\n on: this.$listeners,\n scopedSlots: this.$scopedSlots\n }, this.$slots.default);\n } // else, we render the scoped slot\n\n\n var content = this.$scopedSlots.manual({\n to: this.to\n }); // if user used for the scoped slot\n // content will be an array\n\n if (Array.isArray(content)) {\n content = content[0];\n }\n\n if (!content) { return h(); }\n return content;\n }\n});\n\nvar ACTIVE_CLASS = 'active';\nvar IN_CLASS = 'in';\n\nvar script$3 = {\n components: { Portal: Portal },\n props: {\n title: {\n type: String,\n default: 'Tab Title'\n },\n disabled: {\n type: Boolean,\n default: false\n },\n tabClasses: {\n type: Object,\n default: function () { return {} }\n },\n group: String,\n pullRight: {\n type: Boolean,\n default: false\n },\n hidden: {\n type: Boolean,\n default: false\n }\n },\n data: function data () {\n return {\n active: true,\n transition: 150\n }\n },\n watch: {\n active: function active (active$1) {\n var this$1 = this;\n\n if (active$1) {\n setTimeout(function () {\n addClass(this$1.$el, ACTIVE_CLASS);\n this$1.$el.offsetHeight;\n addClass(this$1.$el, IN_CLASS);\n try {\n this$1.$parent.$emit('changed', this$1.$parent.activeIndex);\n } catch (e) {\n throw new Error(' parent must be .')\n }\n }, this.transition);\n } else {\n removeClass(this.$el, IN_CLASS);\n setTimeout(function () {\n removeClass(this$1.$el, ACTIVE_CLASS);\n }, this.transition);\n }\n }\n },\n created: function created () {\n try {\n this.$parent.tabs.push(this);\n } catch (e) {\n throw new Error(' parent must be .')\n }\n },\n beforeDestroy: function beforeDestroy () {\n var tabs = this.$parent && this.$parent.tabs;\n spliceIfExist(tabs, this);\n },\n methods: {\n show: function show () {\n var this$1 = this;\n\n this.$nextTick(function () {\n addClass(this$1.$el, ACTIVE_CLASS);\n addClass(this$1.$el, IN_CLASS);\n });\n }\n }\n};\n\n/* script */\nvar __vue_script__$3 = script$3;\n\n/* template */\nvar __vue_render__$3 = function() {\n var _vm = this;\n var _h = _vm.$createElement;\n var _c = _vm._self._c || _h;\n return _c(\n \"div\",\n {\n staticClass: \"tab-pane\",\n class: { fade: _vm.transition > 0 },\n attrs: { role: \"tabpanel\" }\n },\n [\n _vm._t(\"default\"),\n _vm._v(\" \"),\n _c(\"portal\", { attrs: { to: _vm._uid.toString() } }, [_vm._t(\"title\")], 2)\n ],\n 2\n )\n};\nvar __vue_staticRenderFns__$3 = [];\n__vue_render__$3._withStripped = true;\n\n /* style */\n var __vue_inject_styles__$3 = undefined;\n /* scoped */\n var __vue_scope_id__$3 = undefined;\n /* module identifier */\n var __vue_module_identifier__$3 = undefined;\n /* functional template */\n var __vue_is_functional_template__$3 = false;\n /* style inject */\n \n /* style inject SSR */\n \n /* style inject shadow dom */\n \n\n \n var __vue_component__$3 = /*#__PURE__*/normalizeComponent(\n { render: __vue_render__$3, staticRenderFns: __vue_staticRenderFns__$3 },\n __vue_inject_styles__$3,\n __vue_script__$3,\n __vue_scope_id__$3,\n __vue_is_functional_template__$3,\n __vue_module_identifier__$3,\n false,\n undefined,\n undefined,\n undefined\n );\n\nvar BEFORE_CHANGE_EVENT = 'before-change';\n\nvar script$4 = {\n components: { Dropdown: Dropdown, PortalTarget: PortalTarget },\n props: {\n value: {\n type: Number,\n validator: function (v) { return v >= 0; }\n },\n transition: {\n type: Number,\n default: 150\n },\n justified: Boolean,\n pills: Boolean,\n stacked: Boolean,\n customNavClass: null,\n customContentClass: null\n },\n data: function data () {\n return {\n tabs: [],\n activeIndex: 0 // Make v-model not required\n }\n },\n watch: {\n value: {\n immediate: true,\n handler: function handler (value) {\n if (isNumber(value)) {\n this.activeIndex = value;\n this.selectCurrent();\n }\n }\n },\n tabs: function tabs (tabs$1) {\n var this$1 = this;\n\n tabs$1.forEach(function (tab, index) {\n tab.transition = this$1.transition;\n if (index === this$1.activeIndex) {\n tab.show();\n }\n });\n this.selectCurrent();\n }\n },\n computed: {\n navClasses: function navClasses () {\n var obj;\n\n var tabClasses = {\n nav: true,\n 'nav-justified': this.justified,\n 'nav-tabs': !this.pills,\n 'nav-pills': this.pills,\n 'nav-stacked': this.stacked && this.pills\n };\n var customNavClass = this.customNavClass;\n if (isExist(customNavClass)) {\n if (isString(customNavClass)) {\n return assign({}, tabClasses, ( obj = {}, obj[customNavClass] = true, obj ))\n } else {\n return assign({}, tabClasses, customNavClass)\n }\n } else {\n return tabClasses\n }\n },\n contentClasses: function contentClasses () {\n var obj;\n\n var contentClasses = {\n 'tab-content': true\n };\n var customContentClass = this.customContentClass;\n if (isExist(customContentClass)) {\n if (isString(customContentClass)) {\n return assign({}, contentClasses, ( obj = {}, obj[customContentClass] = true, obj ))\n } else {\n return assign({}, contentClasses, customContentClass)\n }\n } else {\n return contentClasses\n }\n },\n groupedTabs: function groupedTabs () {\n var tabs = [];\n var hash = {};\n this.tabs.forEach(function (tab) {\n if (tab.group) {\n if (hasOwnProperty(hash, tab.group)) {\n tabs[hash[tab.group]].tabs.push(tab);\n } else {\n tabs.push({\n tabs: [tab],\n group: tab.group\n });\n hash[tab.group] = tabs.length - 1;\n }\n if (tab.active) {\n tabs[hash[tab.group]].active = true;\n }\n if (tab.pullRight) {\n tabs[hash[tab.group]].pullRight = true;\n }\n } else {\n tabs.push(tab);\n }\n });\n tabs = tabs.map(function (tab) {\n if (Array.isArray(tab.tabs)) {\n tab.hidden = tab.tabs.filter(function (v) { return v.hidden; }).length === tab.tabs.length;\n }\n return tab\n });\n return tabs\n }\n },\n methods: {\n getTabClasses: function getTabClasses (tab, isSubTab) {\n if ( isSubTab === void 0 ) isSubTab = false;\n\n var defaultClasses = {\n active: tab.active,\n disabled: tab.disabled,\n 'pull-right': tab.pullRight && !isSubTab\n };\n\n // return with new classes added to tab\n return assign(defaultClasses, tab.tabClasses)\n },\n selectCurrent: function selectCurrent () {\n var this$1 = this;\n\n var found = false;\n this.tabs.forEach(function (tab, index) {\n if (index === this$1.activeIndex) {\n found = !tab.active;\n tab.active = true;\n } else {\n tab.active = false;\n }\n });\n if (found) {\n this.$emit('change', this.activeIndex);\n }\n },\n selectValidate: function selectValidate (index) {\n var this$1 = this;\n\n if (isFunction(this.$listeners[BEFORE_CHANGE_EVENT])) {\n this.$emit(BEFORE_CHANGE_EVENT, this.activeIndex, index, function (result) {\n if (!isExist(result)) {\n this$1.$select(index);\n }\n });\n } else {\n this.$select(index);\n }\n },\n select: function select (index) {\n if (!this.tabs[index].disabled && index !== this.activeIndex) {\n this.selectValidate(index);\n }\n },\n $select: function $select (index) {\n if (isNumber(this.value)) {\n this.$emit('input', index);\n } else {\n this.activeIndex = index;\n this.selectCurrent();\n }\n }\n }\n};\n\n/* script */\nvar __vue_script__$4 = script$4;\n\n/* template */\nvar __vue_render__$4 = function() {\n var _vm = this;\n var _h = _vm.$createElement;\n var _c = _vm._self._c || _h;\n return _c(\"section\", [\n _c(\n \"ul\",\n { class: _vm.navClasses, attrs: { role: \"tablist\" } },\n [\n _vm._l(_vm.groupedTabs, function(tab, index) {\n return [\n tab.tabs\n ? _c(\n \"dropdown\",\n {\n directives: [\n {\n name: \"show\",\n rawName: \"v-show\",\n value: !tab.hidden,\n expression: \"!tab.hidden\"\n }\n ],\n class: _vm.getTabClasses(tab),\n attrs: { role: \"presentation\", tag: \"li\" }\n },\n [\n _c(\n \"a\",\n {\n staticClass: \"dropdown-toggle\",\n attrs: { role: \"tab\", href: \"#\" },\n on: {\n click: function($event) {\n $event.preventDefault();\n }\n }\n },\n [\n _vm._v(_vm._s(tab.group) + \" \"),\n _c(\"span\", { staticClass: \"caret\" })\n ]\n ),\n _vm._v(\" \"),\n _c(\n \"template\",\n { slot: \"dropdown\" },\n _vm._l(tab.tabs, function(subTab) {\n return _c(\n \"li\",\n {\n directives: [\n {\n name: \"show\",\n rawName: \"v-show\",\n value: !subTab.hidden,\n expression: \"!subTab.hidden\"\n }\n ],\n class: _vm.getTabClasses(subTab, true)\n },\n [\n _c(\n \"a\",\n {\n attrs: { href: \"#\" },\n on: {\n click: function($event) {\n $event.preventDefault();\n _vm.select(_vm.tabs.indexOf(subTab));\n }\n }\n },\n [_vm._v(_vm._s(subTab.title))]\n )\n ]\n )\n }),\n 0\n )\n ],\n 2\n )\n : _c(\n \"li\",\n {\n directives: [\n {\n name: \"show\",\n rawName: \"v-show\",\n value: !tab.hidden,\n expression: \"!tab.hidden\"\n }\n ],\n class: _vm.getTabClasses(tab),\n attrs: { role: \"presentation\" }\n },\n [\n tab.$slots.title\n ? _c(\n \"a\",\n {\n attrs: { role: \"tab\", href: \"#\" },\n on: {\n click: function($event) {\n $event.preventDefault();\n _vm.select(_vm.tabs.indexOf(tab));\n }\n }\n },\n [\n _c(\"portal-target\", {\n attrs: { name: tab._uid.toString() }\n })\n ],\n 1\n )\n : _c(\"a\", {\n attrs: { role: \"tab\", href: \"#\" },\n domProps: { textContent: _vm._s(tab.title) },\n on: {\n click: function($event) {\n $event.preventDefault();\n _vm.select(_vm.tabs.indexOf(tab));\n }\n }\n })\n ]\n )\n ]\n }),\n _vm._v(\" \"),\n !_vm.justified && _vm.$slots[\"nav-right\"]\n ? _c(\"li\", { staticClass: \"pull-right\" }, [_vm._t(\"nav-right\")], 2)\n : _vm._e()\n ],\n 2\n ),\n _vm._v(\" \"),\n _c(\"div\", { class: _vm.contentClasses }, [_vm._t(\"default\")], 2)\n ])\n};\nvar __vue_staticRenderFns__$4 = [];\n__vue_render__$4._withStripped = true;\n\n /* style */\n var __vue_inject_styles__$4 = undefined;\n /* scoped */\n var __vue_scope_id__$4 = undefined;\n /* module identifier */\n var __vue_module_identifier__$4 = undefined;\n /* functional template */\n var __vue_is_functional_template__$4 = false;\n /* style inject */\n \n /* style inject SSR */\n \n /* style inject shadow dom */\n \n\n \n var __vue_component__$4 = /*#__PURE__*/normalizeComponent(\n { render: __vue_render__$4, staticRenderFns: __vue_staticRenderFns__$4 },\n __vue_inject_styles__$4,\n __vue_script__$4,\n __vue_scope_id__$4,\n __vue_is_functional_template__$4,\n __vue_module_identifier__$4,\n false,\n undefined,\n undefined,\n undefined\n );\n\nfunction pad (value, num) {\n value = value + '';\n for (var i = num - value.length; i > 0; i--) {\n value = '0' + value;\n }\n return value\n}\n\nvar monthNames = [\n 'January',\n 'February',\n 'March',\n 'April',\n 'May',\n 'June',\n 'July',\n 'August',\n 'September',\n 'October',\n 'November',\n 'December'\n];\n\n/**\n * Get total days number in a month.\n * because we're using 0 as the day so that it returns the last day\n * of the last month, so you have to add 1 to the month number\n * so it returns the correct amount of days.\n * https://stackoverflow.com/questions/1184334/get-number-days-in-a-specified-month-using-javascript\n * @param month 0-based\n * @param year\n * @returns {number}\n */\nfunction daysInMonth (month, year) {\n return new Date(year, month + 1, 0).getDate()\n}\n\nfunction stringify (date, format) {\n try {\n var year = date.getFullYear();\n var month = date.getMonth() + 1;\n var day = date.getDate();\n var monthName = monthNames[month - 1];\n return format\n .replace(/yyyy/g, year)\n .replace(/MMMM/g, monthName)\n .replace(/MMM/g, monthName.substring(0, 3))\n .replace(/MM/g, pad(month, 2))\n .replace(/dd/g, pad(day, 2))\n .replace(/yy/g, year)\n .replace(/M(?!a)/g, month)\n .replace(/d/g, day)\n } catch (e) {\n return ''\n }\n}\n\nfunction convertDateToUTC (date) {\n return new Date(date.getUTCFullYear(), date.getUTCMonth(), date.getUTCDate(), date.getUTCHours(), date.getUTCMinutes(), date.getUTCSeconds())\n}\n\n/**\n * https://stackoverflow.com/questions/6117814/get-week-of-year-in-javascript-like-in-php\n * For a given date, get the ISO week number\n * Based on information at:\n * http://www.merlyn.demon.co.uk/weekcalc.htm#WNR\n *\n * Algorithm is to find nearest thursday, it's year\n * is the year of the week number. Then get weeks\n * between that date and the first day of that year.\n *\n * Note that dates in one year can be weeks of previous\n * or next year, overlap is up to 3 days.\n *\n * e.g. 2014/12/29 is Monday in week 1 of 2015\n * 2012/1/1 is Sunday in week 52 of 2011\n *\n * @param {number} d.year year of date\n * @param {number} d.month month of date\n * @param {number} d.date date of date\n * @returns {number}\n */\nfunction getWeekNumber (d) {\n // Copy date so don't modify original\n var _d = new Date(Date.UTC(d.year, d.month, d.date));\n // Set to nearest Thursday: current date + 4 - current day number\n // Make Sunday's day number 7\n _d.setUTCDate(_d.getUTCDate() + 4 - (_d.getUTCDay() || 7));\n // Get first day of year\n var yearStart = new Date(Date.UTC(_d.getUTCFullYear(), 0, 1));\n // Calculate full weeks to nearest Thursday\n return Math.ceil((((_d - yearStart) / 86400000) + 1) / 7)\n}\n\nvar script$5 = {\n mixins: [Local],\n props: {\n month: Number,\n year: Number,\n date: Date,\n today: Date,\n limit: Object,\n weekStartsWith: Number,\n iconControlLeft: String,\n iconControlRight: String,\n dateClass: Function,\n yearMonthFormatter: Function,\n weekNumbers: Boolean\n },\n components: { Btn: Btn },\n computed: {\n weekDays: function weekDays () {\n var days = [];\n var firstDay = this.weekStartsWith;\n while (days.length < 7) {\n days.push(firstDay++);\n if (firstDay > 6) {\n firstDay = 0;\n }\n }\n return days\n },\n yearMonthStr: function yearMonthStr () {\n if (this.yearMonthFormatter) {\n return this.yearMonthFormatter(this.year, this.month)\n } else {\n return isExist(this.month) ? ((this.year) + \" \" + (this.t((\"uiv.datePicker.month\" + (this.month + 1))))) : this.year\n }\n },\n monthDayRows: function monthDayRows () {\n var rows = [];\n var firstDay = new Date(this.year, this.month, 1);\n var prevMonthLastDate = new Date(this.year, this.month, 0).getDate();\n var startIndex = firstDay.getDay();\n // console.log(startIndex)\n var daysNum = daysInMonth(this.month, this.year);\n var weekOffset = 0;\n if (this.weekStartsWith > startIndex) {\n weekOffset = 7 - this.weekStartsWith;\n } else {\n weekOffset = 0 - this.weekStartsWith;\n }\n // console.log(prevMonthLastDate, startIndex, daysNum)\n for (var i = 0; i < 6; i++) {\n rows.push([]);\n for (var j = 0 - weekOffset; j < 7 - weekOffset; j++) {\n var currentIndex = i * 7 + j;\n var date = { year: this.year, disabled: false };\n // date in and not in current month\n if (currentIndex < startIndex) {\n date.date = prevMonthLastDate - startIndex + currentIndex + 1;\n if (this.month > 0) {\n date.month = this.month - 1;\n } else {\n date.month = 11;\n date.year--;\n }\n } else if (currentIndex < startIndex + daysNum) {\n date.date = currentIndex - startIndex + 1;\n date.month = this.month;\n } else {\n date.date = currentIndex - startIndex - daysNum + 1;\n if (this.month < 11) {\n date.month = this.month + 1;\n } else {\n date.month = 0;\n date.year++;\n }\n }\n // process limit dates\n var dateObj = new Date(date.year, date.month, date.date);\n var afterFrom = true;\n var beforeTo = true;\n if (this.limit && this.limit.from) {\n afterFrom = dateObj >= this.limit.from;\n }\n if (this.limit && this.limit.to) {\n beforeTo = dateObj < this.limit.to;\n }\n date.disabled = !afterFrom || !beforeTo;\n if (isFunction(this.dateClass)) {\n date.classes = this.dateClass(dateObj, {\n currentMonth: this.month,\n currentYear: this.year\n });\n } else {\n date.classes = '';\n }\n rows[i].push(date);\n }\n }\n return rows\n }\n },\n methods: {\n getWeekNumber: getWeekNumber,\n tWeekName: function tWeekName (index) {\n return this.t((\"uiv.datePicker.week\" + index))\n },\n getBtnType: function getBtnType (date) {\n if (this.date &&\n date.date === this.date.getDate() &&\n date.month === this.date.getMonth() &&\n date.year === this.date.getFullYear()) {\n return 'primary'\n } else if (date.date === this.today.getDate() &&\n date.month === this.today.getMonth() &&\n date.year === this.today.getFullYear()) {\n return 'info'\n } else {\n return 'default'\n }\n },\n select: function select (date) {\n this.$emit('date-change', date);\n },\n goPrevMonth: function goPrevMonth () {\n var month = this.month;\n var year = this.year;\n if (this.month > 0) {\n month--;\n } else {\n month = 11;\n year--;\n this.$emit('year-change', year);\n }\n this.$emit('month-change', month);\n },\n goNextMonth: function goNextMonth () {\n var month = this.month;\n var year = this.year;\n if (this.month < 11) {\n month++;\n } else {\n month = 0;\n year++;\n this.$emit('year-change', year);\n }\n this.$emit('month-change', month);\n },\n changeView: function changeView () {\n this.$emit('view-change', 'm');\n }\n }\n};\n\n/* script */\nvar __vue_script__$5 = script$5;\n\n/* template */\nvar __vue_render__$5 = function() {\n var _vm = this;\n var _h = _vm.$createElement;\n var _c = _vm._self._c || _h;\n return _c(\n \"table\",\n { staticStyle: { width: \"100%\" }, attrs: { role: \"grid\" } },\n [\n _c(\"thead\", [\n _c(\"tr\", [\n _c(\n \"td\",\n [\n _c(\n \"btn\",\n {\n staticClass: \"uiv-datepicker-pager-prev\",\n staticStyle: { border: \"none\" },\n attrs: { block: \"\", size: \"sm\" },\n on: { click: _vm.goPrevMonth }\n },\n [_c(\"i\", { class: _vm.iconControlLeft })]\n )\n ],\n 1\n ),\n _vm._v(\" \"),\n _c(\n \"td\",\n { attrs: { colspan: _vm.weekNumbers ? 6 : 5 } },\n [\n _c(\n \"btn\",\n {\n staticClass: \"uiv-datepicker-title\",\n staticStyle: { border: \"none\" },\n attrs: { block: \"\", size: \"sm\" },\n on: { click: _vm.changeView }\n },\n [_c(\"b\", [_vm._v(_vm._s(_vm.yearMonthStr))])]\n )\n ],\n 1\n ),\n _vm._v(\" \"),\n _c(\n \"td\",\n [\n _c(\n \"btn\",\n {\n staticClass: \"uiv-datepicker-pager-next\",\n staticStyle: { border: \"none\" },\n attrs: { block: \"\", size: \"sm\" },\n on: { click: _vm.goNextMonth }\n },\n [_c(\"i\", { class: _vm.iconControlRight })]\n )\n ],\n 1\n )\n ]),\n _vm._v(\" \"),\n _c(\n \"tr\",\n { attrs: { align: \"center\" } },\n [\n _vm.weekNumbers ? _c(\"td\") : _vm._e(),\n _vm._v(\" \"),\n _vm._l(_vm.weekDays, function(day) {\n return _c(\"td\", { attrs: { width: \"14.2857142857%\" } }, [\n _c(\"small\", { staticClass: \"uiv-datepicker-week\" }, [\n _vm._v(_vm._s(_vm.tWeekName(day === 0 ? 7 : day)))\n ])\n ])\n })\n ],\n 2\n )\n ]),\n _vm._v(\" \"),\n _c(\n \"tbody\",\n _vm._l(_vm.monthDayRows, function(row) {\n return _c(\n \"tr\",\n [\n _vm.weekNumbers\n ? _c(\n \"td\",\n {\n staticClass: \"text-center\",\n staticStyle: { \"border-right\": \"1px solid #eee\" }\n },\n [\n _c(\"small\", { staticClass: \"text-muted\" }, [\n _vm._v(\n _vm._s(_vm.getWeekNumber(row[_vm.weekStartsWith]))\n )\n ])\n ]\n )\n : _vm._e(),\n _vm._v(\" \"),\n _vm._l(row, function(date) {\n return _c(\n \"td\",\n [\n _c(\n \"btn\",\n {\n class: date.classes,\n staticStyle: { border: \"none\" },\n attrs: {\n block: \"\",\n size: \"sm\",\n \"data-action\": \"select\",\n type: _vm.getBtnType(date),\n disabled: date.disabled\n },\n on: {\n click: function($event) {\n return _vm.select(date)\n }\n }\n },\n [\n _c(\n \"span\",\n {\n class: { \"text-muted\": _vm.month !== date.month },\n attrs: { \"data-action\": \"select\" }\n },\n [_vm._v(_vm._s(date.date))]\n )\n ]\n )\n ],\n 1\n )\n })\n ],\n 2\n )\n }),\n 0\n )\n ]\n )\n};\nvar __vue_staticRenderFns__$5 = [];\n__vue_render__$5._withStripped = true;\n\n /* style */\n var __vue_inject_styles__$5 = undefined;\n /* scoped */\n var __vue_scope_id__$5 = undefined;\n /* module identifier */\n var __vue_module_identifier__$5 = undefined;\n /* functional template */\n var __vue_is_functional_template__$5 = false;\n /* style inject */\n \n /* style inject SSR */\n \n /* style inject shadow dom */\n \n\n \n var __vue_component__$5 = /*#__PURE__*/normalizeComponent(\n { render: __vue_render__$5, staticRenderFns: __vue_staticRenderFns__$5 },\n __vue_inject_styles__$5,\n __vue_script__$5,\n __vue_scope_id__$5,\n __vue_is_functional_template__$5,\n __vue_module_identifier__$5,\n false,\n undefined,\n undefined,\n undefined\n );\n\nvar script$6 = {\n components: { Btn: Btn },\n mixins: [Local],\n props: {\n month: Number,\n year: Number,\n iconControlLeft: String,\n iconControlRight: String\n },\n data: function data () {\n return {\n rows: []\n }\n },\n mounted: function mounted () {\n for (var i = 0; i < 4; i++) {\n this.rows.push([]);\n for (var j = 0; j < 3; j++) {\n this.rows[i].push(i * 3 + j + 1);\n }\n }\n },\n methods: {\n tCell: function tCell (cell) {\n return this.t((\"uiv.datePicker.month\" + cell))\n },\n getBtnClass: function getBtnClass (month) {\n if (month === this.month) {\n return 'primary'\n } else {\n return 'default'\n }\n },\n goPrevYear: function goPrevYear () {\n this.$emit('year-change', this.year - 1);\n },\n goNextYear: function goNextYear () {\n this.$emit('year-change', this.year + 1);\n },\n changeView: function changeView (monthIndex) {\n if (isExist(monthIndex)) {\n this.$emit('month-change', monthIndex);\n this.$emit('view-change', 'd');\n } else {\n this.$emit('view-change', 'y');\n }\n }\n }\n};\n\n/* script */\nvar __vue_script__$6 = script$6;\n\n/* template */\nvar __vue_render__$6 = function() {\n var _vm = this;\n var _h = _vm.$createElement;\n var _c = _vm._self._c || _h;\n return _c(\n \"table\",\n { staticStyle: { width: \"100%\" }, attrs: { role: \"grid\" } },\n [\n _c(\"thead\", [\n _c(\"tr\", [\n _c(\n \"td\",\n [\n _c(\n \"btn\",\n {\n staticClass: \"uiv-datepicker-pager-prev\",\n staticStyle: { border: \"none\" },\n attrs: { block: \"\", size: \"sm\" },\n on: { click: _vm.goPrevYear }\n },\n [_c(\"i\", { class: _vm.iconControlLeft })]\n )\n ],\n 1\n ),\n _vm._v(\" \"),\n _c(\n \"td\",\n { attrs: { colspan: \"4\" } },\n [\n _c(\n \"btn\",\n {\n staticClass: \"uiv-datepicker-title\",\n staticStyle: { border: \"none\" },\n attrs: { block: \"\", size: \"sm\" },\n on: {\n click: function($event) {\n return _vm.changeView()\n }\n }\n },\n [_c(\"b\", [_vm._v(_vm._s(_vm.year))])]\n )\n ],\n 1\n ),\n _vm._v(\" \"),\n _c(\n \"td\",\n [\n _c(\n \"btn\",\n {\n staticClass: \"uiv-datepicker-pager-next\",\n staticStyle: { border: \"none\" },\n attrs: { block: \"\", size: \"sm\" },\n on: { click: _vm.goNextYear }\n },\n [_c(\"i\", { class: _vm.iconControlRight })]\n )\n ],\n 1\n )\n ])\n ]),\n _vm._v(\" \"),\n _c(\n \"tbody\",\n _vm._l(_vm.rows, function(row, i) {\n return _c(\n \"tr\",\n _vm._l(row, function(month, j) {\n return _c(\n \"td\",\n { attrs: { colspan: \"2\", width: \"33.333333%\" } },\n [\n _c(\n \"btn\",\n {\n staticStyle: { border: \"none\" },\n attrs: {\n block: \"\",\n size: \"sm\",\n type: _vm.getBtnClass(i * 3 + j)\n },\n on: {\n click: function($event) {\n return _vm.changeView(i * 3 + j)\n }\n }\n },\n [_c(\"span\", [_vm._v(_vm._s(_vm.tCell(month)))])]\n )\n ],\n 1\n )\n }),\n 0\n )\n }),\n 0\n )\n ]\n )\n};\nvar __vue_staticRenderFns__$6 = [];\n__vue_render__$6._withStripped = true;\n\n /* style */\n var __vue_inject_styles__$6 = undefined;\n /* scoped */\n var __vue_scope_id__$6 = undefined;\n /* module identifier */\n var __vue_module_identifier__$6 = undefined;\n /* functional template */\n var __vue_is_functional_template__$6 = false;\n /* style inject */\n \n /* style inject SSR */\n \n /* style inject shadow dom */\n \n\n \n var __vue_component__$6 = /*#__PURE__*/normalizeComponent(\n { render: __vue_render__$6, staticRenderFns: __vue_staticRenderFns__$6 },\n __vue_inject_styles__$6,\n __vue_script__$6,\n __vue_scope_id__$6,\n __vue_is_functional_template__$6,\n __vue_module_identifier__$6,\n false,\n undefined,\n undefined,\n undefined\n );\n\nvar script$7 = {\n components: { Btn: Btn },\n props: {\n year: Number,\n iconControlLeft: String,\n iconControlRight: String\n },\n computed: {\n rows: function rows () {\n var rows = [];\n var yearGroupStart = this.year - this.year % 20;\n for (var i = 0; i < 4; i++) {\n rows.push([]);\n for (var j = 0; j < 5; j++) {\n rows[i].push(yearGroupStart + i * 5 + j);\n }\n }\n return rows\n },\n yearStr: function yearStr () {\n var start = this.year - this.year % 20;\n return (start + \" ~ \" + (start + 19))\n }\n },\n methods: {\n getBtnClass: function getBtnClass (year) {\n if (year === this.year) {\n return 'primary'\n } else {\n return 'default'\n }\n },\n goPrevYear: function goPrevYear () {\n this.$emit('year-change', this.year - 20);\n },\n goNextYear: function goNextYear () {\n this.$emit('year-change', this.year + 20);\n },\n changeView: function changeView (year) {\n this.$emit('year-change', year);\n this.$emit('view-change', 'm');\n }\n }\n};\n\n/* script */\nvar __vue_script__$7 = script$7;\n\n/* template */\nvar __vue_render__$7 = function() {\n var _vm = this;\n var _h = _vm.$createElement;\n var _c = _vm._self._c || _h;\n return _c(\n \"table\",\n { staticStyle: { width: \"100%\" }, attrs: { role: \"grid\" } },\n [\n _c(\"thead\", [\n _c(\"tr\", [\n _c(\n \"td\",\n [\n _c(\n \"btn\",\n {\n staticClass: \"uiv-datepicker-pager-prev\",\n staticStyle: { border: \"none\" },\n attrs: { block: \"\", size: \"sm\" },\n on: { click: _vm.goPrevYear }\n },\n [_c(\"i\", { class: _vm.iconControlLeft })]\n )\n ],\n 1\n ),\n _vm._v(\" \"),\n _c(\n \"td\",\n { attrs: { colspan: \"3\" } },\n [\n _c(\n \"btn\",\n {\n staticClass: \"uiv-datepicker-title\",\n staticStyle: { border: \"none\" },\n attrs: { block: \"\", size: \"sm\" }\n },\n [_c(\"b\", [_vm._v(_vm._s(_vm.yearStr))])]\n )\n ],\n 1\n ),\n _vm._v(\" \"),\n _c(\n \"td\",\n [\n _c(\n \"btn\",\n {\n staticClass: \"uiv-datepicker-pager-next\",\n staticStyle: { border: \"none\" },\n attrs: { block: \"\", size: \"sm\" },\n on: { click: _vm.goNextYear }\n },\n [_c(\"i\", { class: _vm.iconControlRight })]\n )\n ],\n 1\n )\n ])\n ]),\n _vm._v(\" \"),\n _c(\n \"tbody\",\n _vm._l(_vm.rows, function(row) {\n return _c(\n \"tr\",\n _vm._l(row, function(year) {\n return _c(\n \"td\",\n { attrs: { width: \"20%\" } },\n [\n _c(\n \"btn\",\n {\n staticStyle: { border: \"none\" },\n attrs: {\n block: \"\",\n size: \"sm\",\n type: _vm.getBtnClass(year)\n },\n on: {\n click: function($event) {\n return _vm.changeView(year)\n }\n }\n },\n [_c(\"span\", [_vm._v(_vm._s(year))])]\n )\n ],\n 1\n )\n }),\n 0\n )\n }),\n 0\n )\n ]\n )\n};\nvar __vue_staticRenderFns__$7 = [];\n__vue_render__$7._withStripped = true;\n\n /* style */\n var __vue_inject_styles__$7 = undefined;\n /* scoped */\n var __vue_scope_id__$7 = undefined;\n /* module identifier */\n var __vue_module_identifier__$7 = undefined;\n /* functional template */\n var __vue_is_functional_template__$7 = false;\n /* style inject */\n \n /* style inject SSR */\n \n /* style inject shadow dom */\n \n\n \n var __vue_component__$7 = /*#__PURE__*/normalizeComponent(\n { render: __vue_render__$7, staticRenderFns: __vue_staticRenderFns__$7 },\n __vue_inject_styles__$7,\n __vue_script__$7,\n __vue_scope_id__$7,\n __vue_is_functional_template__$7,\n __vue_module_identifier__$7,\n false,\n undefined,\n undefined,\n undefined\n );\n\nvar script$8 = {\n mixins: [Local],\n components: { DateView: __vue_component__$5, MonthView: __vue_component__$6, YearView: __vue_component__$7, Btn: Btn },\n props: {\n value: null,\n width: {\n type: Number,\n default: 270\n },\n todayBtn: {\n type: Boolean,\n default: true\n },\n clearBtn: {\n type: Boolean,\n default: true\n },\n closeOnSelected: {\n type: Boolean,\n default: true\n },\n limitFrom: null,\n limitTo: null,\n format: {\n type: String,\n default: 'yyyy-MM-dd'\n },\n initialView: {\n type: String,\n default: 'd'\n },\n dateParser: {\n type: Function,\n default: Date.parse\n },\n dateClass: Function,\n yearMonthFormatter: Function,\n weekStartsWith: {\n type: Number,\n default: 0,\n validator: function validator (value) {\n return value >= 0 && value <= 6\n }\n },\n weekNumbers: Boolean,\n iconControlLeft: {\n type: String,\n default: 'glyphicon glyphicon-chevron-left'\n },\n iconControlRight: {\n type: String,\n default: 'glyphicon glyphicon-chevron-right'\n }\n },\n data: function data () {\n return {\n show: false,\n now: new Date(),\n currentMonth: 0,\n currentYear: 0,\n view: 'd'\n }\n },\n computed: {\n valueDateObj: function valueDateObj () {\n var ts = this.dateParser(this.value);\n if (isNaN(ts)) {\n return null\n } else {\n var date = new Date(ts);\n if (date.getHours() !== 0) {\n date = new Date(ts + date.getTimezoneOffset() * 60 * 1000);\n }\n return date\n }\n },\n pickerStyle: function pickerStyle () {\n return {\n width: this.width + 'px'\n }\n },\n pickerClass: function pickerClass () {\n return {\n 'uiv-datepicker': true,\n 'uiv-datepicker-date': this.view === 'd',\n 'uiv-datepicker-month': this.view === 'm',\n 'uiv-datepicker-year': this.view === 'y'\n }\n },\n limit: function limit () {\n var limit = {};\n if (this.limitFrom) {\n var limitFrom = this.dateParser(this.limitFrom);\n if (!isNaN(limitFrom)) {\n limitFrom = convertDateToUTC(new Date(limitFrom));\n limitFrom.setHours(0, 0, 0, 0);\n limit.from = limitFrom;\n }\n }\n if (this.limitTo) {\n var limitTo = this.dateParser(this.limitTo);\n if (!isNaN(limitTo)) {\n limitTo = convertDateToUTC(new Date(limitTo));\n limitTo.setHours(0, 0, 0, 0);\n limit.to = limitTo;\n }\n }\n return limit\n }\n },\n mounted: function mounted () {\n if (this.value) {\n this.setMonthAndYearByValue(this.value);\n } else {\n this.currentMonth = this.now.getMonth();\n this.currentYear = this.now.getFullYear();\n this.view = this.initialView;\n }\n },\n watch: {\n value: function value (val, oldVal) {\n this.setMonthAndYearByValue(val, oldVal);\n }\n },\n methods: {\n setMonthAndYearByValue: function setMonthAndYearByValue (val, oldVal) {\n var ts = this.dateParser(val);\n if (!isNaN(ts)) {\n var date = new Date(ts);\n if (date.getHours() !== 0) {\n date = new Date(ts + date.getTimezoneOffset() * 60 * 1000);\n }\n if (this.limit && ((this.limit.from && date < this.limit.from) || (this.limit.to && date >= this.limit.to))) {\n this.$emit('input', oldVal || '');\n } else {\n this.currentMonth = date.getMonth();\n this.currentYear = date.getFullYear();\n }\n }\n },\n onMonthChange: function onMonthChange (month) {\n this.currentMonth = month;\n },\n onYearChange: function onYearChange (year) {\n this.currentYear = year;\n this.currentMonth = undefined;\n },\n onDateChange: function onDateChange (date) {\n if (date && isNumber(date.date) && isNumber(date.month) && isNumber(date.year)) {\n var _date = new Date(date.year, date.month, date.date);\n this.$emit('input', this.format ? stringify(_date, this.format) : _date);\n // if the input event trigger nothing (same value)\n // manually correct\n this.currentMonth = date.month;\n this.currentYear = date.year;\n } else {\n this.$emit('input', '');\n }\n },\n onViewChange: function onViewChange (view) {\n this.view = view;\n },\n selectToday: function selectToday () {\n this.view = 'd';\n this.onDateChange({\n date: this.now.getDate(),\n month: this.now.getMonth(),\n year: this.now.getFullYear()\n });\n },\n clearSelect: function clearSelect () {\n this.currentMonth = this.now.getMonth();\n this.currentYear = this.now.getFullYear();\n this.view = this.initialView;\n this.onDateChange();\n },\n onPickerClick: function onPickerClick (event) {\n if (event.target.getAttribute('data-action') !== 'select' || !this.closeOnSelected) {\n event.stopPropagation();\n }\n }\n }\n};\n\n/* script */\nvar __vue_script__$8 = script$8;\n\n/* template */\nvar __vue_render__$8 = function() {\n var _vm = this;\n var _h = _vm.$createElement;\n var _c = _vm._self._c || _h;\n return _c(\n \"div\",\n {\n class: _vm.pickerClass,\n style: _vm.pickerStyle,\n attrs: { \"data-role\": \"date-picker\" },\n on: { click: _vm.onPickerClick }\n },\n [\n _c(\"date-view\", {\n directives: [\n {\n name: \"show\",\n rawName: \"v-show\",\n value: _vm.view === \"d\",\n expression: \"view==='d'\"\n }\n ],\n attrs: {\n month: _vm.currentMonth,\n year: _vm.currentYear,\n date: _vm.valueDateObj,\n today: _vm.now,\n limit: _vm.limit,\n \"week-starts-with\": _vm.weekStartsWith,\n \"icon-control-left\": _vm.iconControlLeft,\n \"icon-control-right\": _vm.iconControlRight,\n \"date-class\": _vm.dateClass,\n \"year-month-formatter\": _vm.yearMonthFormatter,\n \"week-numbers\": _vm.weekNumbers,\n locale: _vm.locale\n },\n on: {\n \"month-change\": _vm.onMonthChange,\n \"year-change\": _vm.onYearChange,\n \"date-change\": _vm.onDateChange,\n \"view-change\": _vm.onViewChange\n }\n }),\n _vm._v(\" \"),\n _c(\"month-view\", {\n directives: [\n {\n name: \"show\",\n rawName: \"v-show\",\n value: _vm.view === \"m\",\n expression: \"view==='m'\"\n }\n ],\n attrs: {\n month: _vm.currentMonth,\n year: _vm.currentYear,\n \"icon-control-left\": _vm.iconControlLeft,\n \"icon-control-right\": _vm.iconControlRight,\n locale: _vm.locale\n },\n on: {\n \"month-change\": _vm.onMonthChange,\n \"year-change\": _vm.onYearChange,\n \"view-change\": _vm.onViewChange\n }\n }),\n _vm._v(\" \"),\n _c(\"year-view\", {\n directives: [\n {\n name: \"show\",\n rawName: \"v-show\",\n value: _vm.view === \"y\",\n expression: \"view==='y'\"\n }\n ],\n attrs: {\n year: _vm.currentYear,\n \"icon-control-left\": _vm.iconControlLeft,\n \"icon-control-right\": _vm.iconControlRight\n },\n on: { \"year-change\": _vm.onYearChange, \"view-change\": _vm.onViewChange }\n }),\n _vm._v(\" \"),\n _vm.todayBtn || _vm.clearBtn\n ? _c(\"div\", [\n _c(\"br\"),\n _vm._v(\" \"),\n _c(\n \"div\",\n { staticClass: \"text-center\" },\n [\n _vm.todayBtn\n ? _c(\"btn\", {\n attrs: {\n \"data-action\": \"select\",\n type: \"info\",\n size: \"sm\"\n },\n domProps: {\n textContent: _vm._s(_vm.t(\"uiv.datePicker.today\"))\n },\n on: { click: _vm.selectToday }\n })\n : _vm._e(),\n _vm._v(\" \"),\n _vm.clearBtn\n ? _c(\"btn\", {\n attrs: { \"data-action\": \"select\", size: \"sm\" },\n domProps: {\n textContent: _vm._s(_vm.t(\"uiv.datePicker.clear\"))\n },\n on: { click: _vm.clearSelect }\n })\n : _vm._e()\n ],\n 1\n )\n ])\n : _vm._e()\n ],\n 1\n )\n};\nvar __vue_staticRenderFns__$8 = [];\n__vue_render__$8._withStripped = true;\n\n /* style */\n var __vue_inject_styles__$8 = undefined;\n /* scoped */\n var __vue_scope_id__$8 = undefined;\n /* module identifier */\n var __vue_module_identifier__$8 = undefined;\n /* functional template */\n var __vue_is_functional_template__$8 = false;\n /* style inject */\n \n /* style inject SSR */\n \n /* style inject shadow dom */\n \n\n \n var __vue_component__$8 = /*#__PURE__*/normalizeComponent(\n { render: __vue_render__$8, staticRenderFns: __vue_staticRenderFns__$8 },\n __vue_inject_styles__$8,\n __vue_script__$8,\n __vue_scope_id__$8,\n __vue_is_functional_template__$8,\n __vue_module_identifier__$8,\n false,\n undefined,\n undefined,\n undefined\n );\n\nvar HANDLER = '_uiv_scroll_handler';\nvar events = [EVENTS.RESIZE, EVENTS.SCROLL];\n\nvar bind = function (el, binding) {\n var callback = binding.value;\n if (!isFunction(callback)) {\n return\n }\n unbind(el);\n el[HANDLER] = callback;\n events.forEach(function (event) {\n on(window, event, el[HANDLER]);\n });\n};\n\nvar unbind = function (el) {\n events.forEach(function (event) {\n off(window, event, el[HANDLER]);\n });\n delete el[HANDLER];\n};\n\nvar update = function (el, binding) {\n if (binding.value !== binding.oldValue) {\n bind(el, binding);\n }\n};\n\nvar scroll = { bind: bind, unbind: unbind, update: update };\n\nvar script$9 = {\n directives: {\n scroll: scroll\n },\n props: {\n offset: {\n type: Number,\n default: 0\n }\n },\n data: function data () {\n return {\n affixed: false\n }\n },\n computed: {\n classes: function classes () {\n return {\n affix: this.affixed\n }\n },\n styles: function styles () {\n return {\n top: this.affixed ? this.offset + 'px' : null\n }\n }\n },\n methods: {\n // from https://github.com/ant-design/ant-design/blob/master/components/affix/index.jsx#L20\n onScroll: function onScroll () {\n var this$1 = this;\n\n // if is hidden don't calculate anything\n if (!(this.$el.offsetWidth || this.$el.offsetHeight || this.$el.getClientRects().length)) {\n return\n }\n // get window scroll and element position to detect if have to be normal or affixed\n var scroll = {};\n var element = {};\n var rect = this.$el.getBoundingClientRect();\n var body = document.body;\n var types = ['Top', 'Left'];\n types.forEach(function (type) {\n var t = type.toLowerCase();\n scroll[t] = window['page' + (type === 'Top' ? 'Y' : 'X') + 'Offset'];\n element[t] = scroll[t] + rect[t] - (this$1.$el['client' + type] || body['client' + type] || 0);\n });\n var fix = scroll.top > element.top - this.offset;\n if (this.affixed !== fix) {\n this.affixed = fix;\n this.$emit(this.affixed ? 'affix' : 'unfix');\n this.$nextTick(function () {\n this$1.$emit(this$1.affixed ? 'affixed' : 'unfixed');\n });\n }\n }\n }\n};\n\n/* script */\nvar __vue_script__$9 = script$9;\n\n/* template */\nvar __vue_render__$9 = function() {\n var _vm = this;\n var _h = _vm.$createElement;\n var _c = _vm._self._c || _h;\n return _c(\"div\", { staticClass: \"hidden-print\" }, [\n _c(\n \"div\",\n {\n directives: [\n {\n name: \"scroll\",\n rawName: \"v-scroll\",\n value: _vm.onScroll,\n expression: \"onScroll\"\n }\n ],\n class: _vm.classes,\n style: _vm.styles\n },\n [_vm._t(\"default\")],\n 2\n )\n ])\n};\nvar __vue_staticRenderFns__$9 = [];\n__vue_render__$9._withStripped = true;\n\n /* style */\n var __vue_inject_styles__$9 = undefined;\n /* scoped */\n var __vue_scope_id__$9 = undefined;\n /* module identifier */\n var __vue_module_identifier__$9 = undefined;\n /* functional template */\n var __vue_is_functional_template__$9 = false;\n /* style inject */\n \n /* style inject SSR */\n \n /* style inject shadow dom */\n \n\n \n var __vue_component__$9 = /*#__PURE__*/normalizeComponent(\n { render: __vue_render__$9, staticRenderFns: __vue_staticRenderFns__$9 },\n __vue_inject_styles__$9,\n __vue_script__$9,\n __vue_scope_id__$9,\n __vue_is_functional_template__$9,\n __vue_module_identifier__$9,\n false,\n undefined,\n undefined,\n undefined\n );\n\nvar script$a = {\n props: {\n dismissible: {\n type: Boolean,\n default: false\n },\n duration: {\n type: Number,\n default: 0\n },\n type: {\n type: String,\n default: 'info'\n }\n },\n data: function data () {\n return {\n timeout: 0\n }\n },\n computed: {\n alertClass: function alertClass () {\n var obj;\n\n return ( obj = {\n alert: true\n }, obj[(\"alert-\" + (this.type))] = Boolean(this.type), obj['alert-dismissible'] = this.dismissible, obj )\n }\n },\n methods: {\n closeAlert: function closeAlert () {\n clearTimeout(this.timeout);\n this.$emit('dismissed');\n }\n },\n mounted: function mounted () {\n if (this.duration > 0) {\n this.timeout = setTimeout(this.closeAlert, this.duration);\n }\n },\n destroyed: function destroyed () {\n clearTimeout(this.timeout);\n }\n};\n\n/* script */\nvar __vue_script__$a = script$a;\n\n/* template */\nvar __vue_render__$a = function() {\n var _vm = this;\n var _h = _vm.$createElement;\n var _c = _vm._self._c || _h;\n return _c(\n \"div\",\n { class: _vm.alertClass, attrs: { role: \"alert\" } },\n [\n _vm.dismissible\n ? _c(\n \"button\",\n {\n staticClass: \"close\",\n attrs: { type: \"button\", \"aria-label\": \"Close\" },\n on: { click: _vm.closeAlert }\n },\n [_c(\"span\", { attrs: { \"aria-hidden\": \"true\" } }, [_vm._v(\"×\")])]\n )\n : _vm._e(),\n _vm._v(\" \"),\n _vm._t(\"default\")\n ],\n 2\n )\n};\nvar __vue_staticRenderFns__$a = [];\n__vue_render__$a._withStripped = true;\n\n /* style */\n var __vue_inject_styles__$a = undefined;\n /* scoped */\n var __vue_scope_id__$a = undefined;\n /* module identifier */\n var __vue_module_identifier__$a = undefined;\n /* functional template */\n var __vue_is_functional_template__$a = false;\n /* style inject */\n \n /* style inject SSR */\n \n /* style inject shadow dom */\n \n\n \n var __vue_component__$a = /*#__PURE__*/normalizeComponent(\n { render: __vue_render__$a, staticRenderFns: __vue_staticRenderFns__$a },\n __vue_inject_styles__$a,\n __vue_script__$a,\n __vue_scope_id__$a,\n __vue_is_functional_template__$a,\n __vue_module_identifier__$a,\n false,\n undefined,\n undefined,\n undefined\n );\n\nvar script$b = {\n props: {\n value: {\n type: Number,\n required: true,\n validator: function (v) { return v >= 1; }\n },\n boundaryLinks: {\n type: Boolean,\n default: false\n },\n directionLinks: {\n type: Boolean,\n default: true\n },\n size: String,\n align: String,\n totalPage: {\n type: Number,\n required: true,\n validator: function (v) { return v >= 0; }\n },\n maxSize: {\n type: Number,\n default: 5,\n validator: function (v) { return v >= 0; }\n },\n disabled: Boolean\n },\n data: function data () {\n return {\n sliceStart: 0\n }\n },\n computed: {\n navClasses: function navClasses () {\n var obj;\n\n return ( obj = {}, obj[(\"text-\" + (this.align))] = Boolean(this.align), obj )\n },\n classes: function classes () {\n var obj;\n\n return ( obj = {}, obj[(\"pagination-\" + (this.size))] = Boolean(this.size), obj )\n },\n sliceArray: function sliceArray () {\n return range(this.totalPage).slice(this.sliceStart, this.sliceStart + this.maxSize)\n }\n },\n methods: {\n calculateSliceStart: function calculateSliceStart () {\n var currentPage = this.value;\n var chunkSize = this.maxSize;\n var currentChunkStart = this.sliceStart;\n var currentChunkEnd = currentChunkStart + chunkSize;\n if (currentPage > currentChunkEnd) {\n var lastChunkStart = this.totalPage - chunkSize;\n if (currentPage > lastChunkStart) {\n this.sliceStart = lastChunkStart;\n } else {\n this.sliceStart = currentPage - 1;\n }\n } else if (currentPage < currentChunkStart + 1) {\n if (currentPage > chunkSize) {\n this.sliceStart = currentPage - chunkSize;\n } else {\n this.sliceStart = 0;\n }\n }\n },\n onPageChange: function onPageChange (page) {\n if (!this.disabled && page > 0 && page <= this.totalPage && page !== this.value) {\n this.$emit('input', page);\n this.$emit('change', page);\n }\n },\n toPage: function toPage (pre) {\n if (this.disabled) {\n return\n }\n var chunkSize = this.maxSize;\n var currentChunkStart = this.sliceStart;\n var lastChunkStart = this.totalPage - chunkSize;\n var start = pre ? currentChunkStart - chunkSize : currentChunkStart + chunkSize;\n if (start < 0) {\n this.sliceStart = 0;\n } else if (start > lastChunkStart) {\n this.sliceStart = lastChunkStart;\n } else {\n this.sliceStart = start;\n }\n }\n },\n created: function created () {\n this.$watch(function (vm) { return [vm.value, vm.maxSize, vm.totalPage].join(); }, this.calculateSliceStart, {\n immediate: true\n });\n }\n};\n\n/* script */\nvar __vue_script__$b = script$b;\n\n/* template */\nvar __vue_render__$b = function() {\n var _vm = this;\n var _h = _vm.$createElement;\n var _c = _vm._self._c || _h;\n return _c(\n \"nav\",\n { class: _vm.navClasses, attrs: { \"aria-label\": \"Page navigation\" } },\n [\n _c(\n \"ul\",\n { staticClass: \"pagination\", class: _vm.classes },\n [\n _vm.boundaryLinks\n ? _c(\n \"li\",\n { class: { disabled: _vm.value <= 1 || _vm.disabled } },\n [\n _c(\n \"a\",\n {\n attrs: {\n href: \"#\",\n role: \"button\",\n \"aria-label\": \"First\"\n },\n on: {\n click: function($event) {\n $event.preventDefault();\n return _vm.onPageChange(1)\n }\n }\n },\n [\n _c(\"span\", { attrs: { \"aria-hidden\": \"true\" } }, [\n _vm._v(\"«\")\n ])\n ]\n )\n ]\n )\n : _vm._e(),\n _vm._v(\" \"),\n _vm.directionLinks\n ? _c(\n \"li\",\n { class: { disabled: _vm.value <= 1 || _vm.disabled } },\n [\n _c(\n \"a\",\n {\n attrs: {\n href: \"#\",\n role: \"button\",\n \"aria-label\": \"Previous\"\n },\n on: {\n click: function($event) {\n $event.preventDefault();\n return _vm.onPageChange(_vm.value - 1)\n }\n }\n },\n [\n _c(\"span\", { attrs: { \"aria-hidden\": \"true\" } }, [\n _vm._v(\"‹\")\n ])\n ]\n )\n ]\n )\n : _vm._e(),\n _vm._v(\" \"),\n _vm.sliceStart > 0\n ? _c(\"li\", { class: { disabled: _vm.disabled } }, [\n _c(\n \"a\",\n {\n attrs: {\n href: \"#\",\n role: \"button\",\n \"aria-label\": \"Previous group\"\n },\n on: {\n click: function($event) {\n $event.preventDefault();\n return _vm.toPage(1)\n }\n }\n },\n [\n _c(\"span\", { attrs: { \"aria-hidden\": \"true\" } }, [\n _vm._v(\"…\")\n ])\n ]\n )\n ])\n : _vm._e(),\n _vm._v(\" \"),\n _vm._l(_vm.sliceArray, function(item) {\n return _c(\n \"li\",\n {\n key: item,\n class: {\n active: _vm.value === item + 1,\n disabled: _vm.disabled\n }\n },\n [\n _c(\n \"a\",\n {\n attrs: { href: \"#\", role: \"button\" },\n on: {\n click: function($event) {\n $event.preventDefault();\n return _vm.onPageChange(item + 1)\n }\n }\n },\n [_vm._v(_vm._s(item + 1))]\n )\n ]\n )\n }),\n _vm._v(\" \"),\n _vm.sliceStart < _vm.totalPage - _vm.maxSize\n ? _c(\"li\", { class: { disabled: _vm.disabled } }, [\n _c(\n \"a\",\n {\n attrs: {\n href: \"#\",\n role: \"button\",\n \"aria-label\": \"Next group\"\n },\n on: {\n click: function($event) {\n $event.preventDefault();\n return _vm.toPage(0)\n }\n }\n },\n [\n _c(\"span\", { attrs: { \"aria-hidden\": \"true\" } }, [\n _vm._v(\"…\")\n ])\n ]\n )\n ])\n : _vm._e(),\n _vm._v(\" \"),\n _vm.directionLinks\n ? _c(\n \"li\",\n {\n class: {\n disabled: _vm.value >= _vm.totalPage || _vm.disabled\n }\n },\n [\n _c(\n \"a\",\n {\n attrs: {\n href: \"#\",\n role: \"button\",\n \"aria-label\": \"Next\"\n },\n on: {\n click: function($event) {\n $event.preventDefault();\n return _vm.onPageChange(_vm.value + 1)\n }\n }\n },\n [\n _c(\"span\", { attrs: { \"aria-hidden\": \"true\" } }, [\n _vm._v(\"›\")\n ])\n ]\n )\n ]\n )\n : _vm._e(),\n _vm._v(\" \"),\n _vm.boundaryLinks\n ? _c(\n \"li\",\n {\n class: {\n disabled: _vm.value >= _vm.totalPage || _vm.disabled\n }\n },\n [\n _c(\n \"a\",\n {\n attrs: {\n href: \"#\",\n role: \"button\",\n \"aria-label\": \"Last\"\n },\n on: {\n click: function($event) {\n $event.preventDefault();\n return _vm.onPageChange(_vm.totalPage)\n }\n }\n },\n [\n _c(\"span\", { attrs: { \"aria-hidden\": \"true\" } }, [\n _vm._v(\"»\")\n ])\n ]\n )\n ]\n )\n : _vm._e()\n ],\n 2\n )\n ]\n )\n};\nvar __vue_staticRenderFns__$b = [];\n__vue_render__$b._withStripped = true;\n\n /* style */\n var __vue_inject_styles__$b = undefined;\n /* scoped */\n var __vue_scope_id__$b = undefined;\n /* module identifier */\n var __vue_module_identifier__$b = undefined;\n /* functional template */\n var __vue_is_functional_template__$b = false;\n /* style inject */\n \n /* style inject SSR */\n \n /* style inject shadow dom */\n \n\n \n var __vue_component__$b = /*#__PURE__*/normalizeComponent(\n { render: __vue_render__$b, staticRenderFns: __vue_staticRenderFns__$b },\n __vue_inject_styles__$b,\n __vue_script__$b,\n __vue_scope_id__$b,\n __vue_is_functional_template__$b,\n __vue_module_identifier__$b,\n false,\n undefined,\n undefined,\n undefined\n );\n\nvar SHOW_CLASS = 'in';\n\nvar popupMixin = {\n props: {\n value: {\n type: Boolean,\n default: false\n },\n tag: {\n type: String,\n default: 'span'\n },\n placement: {\n type: String,\n default: PLACEMENTS.TOP\n },\n autoPlacement: {\n type: Boolean,\n default: true\n },\n appendTo: {\n type: null,\n default: 'body'\n },\n positionBy: {\n type: null,\n default: null\n },\n transition: {\n type: Number,\n default: 150\n },\n hideDelay: {\n type: Number,\n default: 0\n },\n showDelay: {\n type: Number,\n default: 0\n },\n enable: {\n type: Boolean,\n default: true\n },\n enterable: {\n type: Boolean,\n default: true\n },\n target: null,\n viewport: null,\n customClass: String\n },\n data: function data () {\n return {\n triggerEl: null,\n hideTimeoutId: 0,\n showTimeoutId: 0,\n transitionTimeoutId: 0,\n autoTimeoutId: 0\n }\n },\n watch: {\n value: function value (v) {\n v ? this.show() : this.hide();\n },\n trigger: function trigger () {\n this.clearListeners();\n this.initListeners();\n },\n target: function target (value) {\n this.clearListeners();\n this.initTriggerElByTarget(value);\n this.initListeners();\n },\n allContent: function allContent (value) {\n var this$1 = this;\n\n // can not use value because it can not detect slot changes\n if (this.isNotEmpty()) {\n // reset position while content changed & is shown\n // nextTick is required\n this.$nextTick(function () {\n /* istanbul ignore else */\n if (this$1.isShown()) {\n this$1.resetPosition();\n }\n });\n } else {\n this.hide();\n }\n },\n enable: function enable (value) {\n // hide if enable changed to false\n /* istanbul ignore else */\n if (!value) {\n this.hide();\n }\n }\n },\n mounted: function mounted () {\n var this$1 = this;\n\n ensureElementMatchesFunction();\n removeFromDom(this.$refs.popup);\n this.$nextTick(function () {\n this$1.initTriggerElByTarget(this$1.target);\n this$1.initListeners();\n if (this$1.value) {\n this$1.show();\n }\n });\n },\n beforeDestroy: function beforeDestroy () {\n this.clearListeners();\n removeFromDom(this.$refs.popup);\n },\n methods: {\n initTriggerElByTarget: function initTriggerElByTarget (target) {\n if (target) {\n // target exist\n this.triggerEl = getElementBySelectorOrRef(target);\n } else {\n // find special element\n var trigger = this.$el.querySelector('[data-role=\"trigger\"]');\n if (trigger) {\n this.triggerEl = trigger;\n } else {\n // use the first child\n var firstChild = this.$el.firstChild;\n this.triggerEl = firstChild === this.$refs.popup ? null : firstChild;\n }\n }\n },\n initListeners: function initListeners () {\n if (this.triggerEl) {\n if (this.trigger === TRIGGERS.HOVER) {\n on(this.triggerEl, EVENTS.MOUSE_ENTER, this.show);\n on(this.triggerEl, EVENTS.MOUSE_LEAVE, this.hide);\n } else if (this.trigger === TRIGGERS.FOCUS) {\n on(this.triggerEl, EVENTS.FOCUS, this.show);\n on(this.triggerEl, EVENTS.BLUR, this.hide);\n } else if (this.trigger === TRIGGERS.HOVER_FOCUS) {\n on(this.triggerEl, EVENTS.MOUSE_ENTER, this.handleAuto);\n on(this.triggerEl, EVENTS.MOUSE_LEAVE, this.handleAuto);\n on(this.triggerEl, EVENTS.FOCUS, this.handleAuto);\n on(this.triggerEl, EVENTS.BLUR, this.handleAuto);\n } else if (this.trigger === TRIGGERS.CLICK || this.trigger === TRIGGERS.OUTSIDE_CLICK) {\n on(this.triggerEl, EVENTS.CLICK, this.toggle);\n }\n }\n on(window, EVENTS.CLICK, this.windowClicked);\n },\n clearListeners: function clearListeners () {\n if (this.triggerEl) {\n off(this.triggerEl, EVENTS.FOCUS, this.show);\n off(this.triggerEl, EVENTS.BLUR, this.hide);\n off(this.triggerEl, EVENTS.MOUSE_ENTER, this.show);\n off(this.triggerEl, EVENTS.MOUSE_LEAVE, this.hide);\n off(this.triggerEl, EVENTS.CLICK, this.toggle);\n off(this.triggerEl, EVENTS.MOUSE_ENTER, this.handleAuto);\n off(this.triggerEl, EVENTS.MOUSE_LEAVE, this.handleAuto);\n off(this.triggerEl, EVENTS.FOCUS, this.handleAuto);\n off(this.triggerEl, EVENTS.BLUR, this.handleAuto);\n }\n off(window, EVENTS.CLICK, this.windowClicked);\n this.clearTimeouts();\n },\n clearTimeouts: function clearTimeouts () {\n if (this.hideTimeoutId) {\n clearTimeout(this.hideTimeoutId);\n this.hideTimeoutId = 0;\n }\n if (this.showTimeoutId) {\n clearTimeout(this.showTimeoutId);\n this.showTimeoutId = 0;\n }\n if (this.transitionTimeoutId) {\n clearTimeout(this.transitionTimeoutId);\n this.transitionTimeoutId = 0;\n }\n if (this.autoTimeoutId) {\n clearTimeout(this.autoTimeoutId);\n this.autoTimeoutId = 0;\n }\n },\n resetPosition: function resetPosition () {\n var popup = this.$refs.popup;\n /* istanbul ignore else */\n if (popup) {\n setTooltipPosition(popup, this.triggerEl, this.placement, this.autoPlacement, this.appendTo, this.positionBy, this.viewport);\n popup.offsetHeight;\n }\n },\n hideOnLeave: function hideOnLeave () {\n if (this.trigger === TRIGGERS.HOVER || (this.trigger === TRIGGERS.HOVER_FOCUS && !this.triggerEl.matches(':focus'))) {\n this.$hide();\n }\n },\n toggle: function toggle () {\n if (this.isShown()) {\n this.hide();\n } else {\n this.show();\n }\n },\n show: function show () {\n var this$1 = this;\n\n if (this.enable && this.triggerEl && this.isNotEmpty() && !this.isShown()) {\n var popUpAppendedContainer = this.hideTimeoutId > 0; // weird condition\n if (popUpAppendedContainer) {\n clearTimeout(this.hideTimeoutId);\n this.hideTimeoutId = 0;\n }\n if (this.transitionTimeoutId > 0) {\n clearTimeout(this.transitionTimeoutId);\n this.transitionTimeoutId = 0;\n }\n clearTimeout(this.showTimeoutId);\n this.showTimeoutId = setTimeout(function () {\n this$1.showTimeoutId = 0;\n var popup = this$1.$refs.popup;\n if (popup) {\n var alreadyOpenModalNum = getOpenModalNum();\n if (alreadyOpenModalNum > 1) {\n var defaultZ = this$1.name === 'popover' ? 1060 : 1070;\n var offset = (alreadyOpenModalNum - 1) * 20;\n popup.style.zIndex = \"\" + (defaultZ + offset);\n }\n // add to dom\n if (!popUpAppendedContainer) {\n popup.className = (this$1.name) + \" \" + (this$1.placement) + \" \" + (this$1.customClass ? this$1.customClass : '') + \" fade\";\n var container = getElementBySelectorOrRef(this$1.appendTo);\n container.appendChild(popup);\n this$1.resetPosition();\n }\n addClass(popup, SHOW_CLASS);\n this$1.$emit('input', true);\n this$1.$emit('show');\n }\n }, this.showDelay);\n }\n },\n hide: function hide () {\n var this$1 = this;\n\n if (this.showTimeoutId > 0) {\n clearTimeout(this.showTimeoutId);\n this.showTimeoutId = 0;\n }\n\n if (!this.isShown()) {\n return\n }\n if (this.enterable && (this.trigger === TRIGGERS.HOVER || this.trigger === TRIGGERS.HOVER_FOCUS)) {\n clearTimeout(this.hideTimeoutId);\n this.hideTimeoutId = setTimeout(function () {\n this$1.hideTimeoutId = 0;\n var popup = this$1.$refs.popup;\n if (popup && !popup.matches(':hover')) {\n this$1.$hide();\n }\n }, 100);\n } else {\n this.$hide();\n }\n },\n $hide: function $hide () {\n var this$1 = this;\n\n if (this.isShown()) {\n clearTimeout(this.hideTimeoutId);\n this.hideTimeoutId = setTimeout(function () {\n this$1.hideTimeoutId = 0;\n removeClass(this$1.$refs.popup, SHOW_CLASS);\n // gives fade out time\n this$1.transitionTimeoutId = setTimeout(function () {\n this$1.transitionTimeoutId = 0;\n removeFromDom(this$1.$refs.popup);\n this$1.$emit('input', false);\n this$1.$emit('hide');\n }, this$1.transition);\n }, this.hideDelay);\n }\n },\n isShown: function isShown () {\n return hasClass(this.$refs.popup, SHOW_CLASS)\n },\n windowClicked: function windowClicked (event) {\n if (this.triggerEl && isFunction(this.triggerEl.contains) && !this.triggerEl.contains(event.target) &&\n this.trigger === TRIGGERS.OUTSIDE_CLICK && !(this.$refs.popup && this.$refs.popup.contains(event.target)) &&\n this.isShown()) {\n this.hide();\n }\n },\n handleAuto: function handleAuto () {\n var this$1 = this;\n\n clearTimeout(this.autoTimeoutId);\n this.autoTimeoutId = setTimeout(function () {\n this$1.autoTimeoutId = 0;\n if (this$1.triggerEl.matches(':hover, :focus')) {\n this$1.show();\n } else {\n this$1.hide();\n }\n }, 20); // 20ms make firefox happy\n }\n }\n};\n\nvar Tooltip = {\n mixins: [popupMixin],\n data: function data () {\n return {\n name: 'tooltip'\n }\n },\n render: function render (h) {\n return h(\n this.tag,\n [\n this.$slots.default,\n h('div',\n {\n ref: 'popup',\n attrs: {\n role: 'tooltip'\n },\n on: {\n mouseleave: this.hideOnLeave\n }\n },\n [\n h('div', { class: 'tooltip-arrow' }),\n h('div', {\n class: 'tooltip-inner',\n domProps: { innerHTML: this.text }\n })\n ]\n )\n ]\n )\n },\n props: {\n text: {\n type: String,\n default: ''\n },\n trigger: {\n type: String,\n default: TRIGGERS.HOVER_FOCUS\n }\n },\n computed: {\n allContent: function allContent () {\n return this.text\n }\n },\n methods: {\n isNotEmpty: function isNotEmpty () {\n return this.text\n }\n }\n};\n\nvar Popover = {\n mixins: [popupMixin],\n data: function data () {\n return {\n name: 'popover'\n }\n },\n render: function render (h) {\n return h(this.tag,\n [\n this.$slots.default,\n h('div',\n {\n style: {\n display: 'block'\n },\n ref: 'popup',\n on: {\n mouseleave: this.hideOnLeave\n }\n },\n [\n h('div', { class: 'arrow' }),\n h('h3', {\n class: 'popover-title',\n directives: [\n { name: 'show', value: this.title }\n ]\n }, this.title),\n h('div', { class: 'popover-content' }, [this.content || this.$slots.popover])\n ]\n )\n ]\n )\n },\n props: {\n title: {\n type: String,\n default: ''\n },\n content: {\n type: String,\n default: ''\n },\n trigger: {\n type: String,\n default: TRIGGERS.OUTSIDE_CLICK\n }\n },\n computed: {\n allContent: function allContent () {\n return this.title + this.content\n }\n },\n methods: {\n isNotEmpty: function isNotEmpty () {\n return this.title || this.content || this.$slots.popover\n }\n }\n};\n\nvar maxHours = 23;\nvar zero = 0;\nvar maxMinutes = 59;\nvar cutUpAmAndPm = 12;\n\nvar script$c = {\n components: { Btn: Btn },\n mixins: [Local],\n props: {\n value: {\n type: Date,\n required: true\n },\n showMeridian: {\n type: Boolean,\n default: true\n },\n min: Date,\n max: Date,\n hourStep: {\n type: Number,\n default: 1\n },\n minStep: {\n type: Number,\n default: 1\n },\n readonly: {\n type: Boolean,\n default: false\n },\n controls: {\n type: Boolean,\n default: true\n },\n iconControlUp: {\n type: String,\n default: 'glyphicon glyphicon-chevron-up'\n },\n iconControlDown: {\n type: String,\n default: 'glyphicon glyphicon-chevron-down'\n },\n inputWidth: {\n type: Number,\n default: 50\n }\n },\n data: function data () {\n return {\n hours: 0,\n minutes: 0,\n meridian: true,\n hoursText: '',\n minutesText: ''\n }\n },\n mounted: function mounted () {\n this.updateByValue(this.value);\n },\n computed: {\n inputStyles: function inputStyles () {\n return {\n width: ((this.inputWidth) + \"px\")\n }\n }\n },\n watch: {\n value: function value (value$1) {\n this.updateByValue(value$1);\n },\n showMeridian: function showMeridian (value) {\n this.setTime();\n },\n hoursText: function hoursText (value) {\n if (this.hours === 0 && value === '') {\n // Prevent a runtime reset from being overwritten\n return\n }\n var hour = parseInt(value);\n if (this.showMeridian) {\n if (hour >= 1 && hour <= cutUpAmAndPm) {\n if (this.meridian) {\n this.hours = hour === cutUpAmAndPm ? 0 : hour;\n } else {\n this.hours = hour === cutUpAmAndPm ? cutUpAmAndPm : hour + cutUpAmAndPm;\n }\n }\n } else if (hour >= zero && hour <= maxHours) {\n this.hours = hour;\n }\n this.setTime();\n },\n minutesText: function minutesText (value) {\n if (this.minutes === 0 && value === '') {\n // Prevent a runtime reset from being overwritten\n return\n }\n var minutesStr = parseInt(value);\n if (minutesStr >= zero && minutesStr <= maxMinutes) {\n this.minutes = minutesStr;\n }\n this.setTime();\n }\n },\n methods: {\n updateByValue: function updateByValue (value) {\n if (isNaN(value.getTime())) {\n this.hours = 0;\n this.minutes = 0;\n this.hoursText = '';\n this.minutesText = '';\n this.meridian = true;\n return\n }\n this.hours = value.getHours();\n this.minutes = value.getMinutes();\n if (!this.showMeridian) {\n this.hoursText = pad(this.hours, 2);\n } else {\n if (this.hours >= cutUpAmAndPm) {\n if (this.hours === cutUpAmAndPm) {\n this.hoursText = this.hours + '';\n } else {\n this.hoursText = pad(this.hours - cutUpAmAndPm, 2);\n }\n this.meridian = false;\n } else {\n if (this.hours === zero) {\n this.hoursText = cutUpAmAndPm.toString();\n } else {\n this.hoursText = pad(this.hours, 2);\n }\n this.meridian = true;\n }\n }\n this.minutesText = pad(this.minutes, 2);\n // lazy model won't update when using keyboard up/down\n this.$refs.hoursInput.value = this.hoursText;\n this.$refs.minutesInput.value = this.minutesText;\n },\n addHour: function addHour (step) {\n step = step || this.hourStep;\n this.hours = this.hours >= maxHours ? zero : this.hours + step;\n },\n reduceHour: function reduceHour (step) {\n step = step || this.hourStep;\n this.hours = this.hours <= zero ? maxHours : this.hours - step;\n },\n addMinute: function addMinute () {\n if (this.minutes >= maxMinutes) {\n this.minutes = zero;\n this.addHour(1);\n } else {\n this.minutes += this.minStep;\n }\n },\n reduceMinute: function reduceMinute () {\n if (this.minutes <= zero) {\n this.minutes = maxMinutes + 1 - this.minStep;\n this.reduceHour(1);\n } else {\n this.minutes -= this.minStep;\n }\n },\n changeTime: function changeTime (isHour, isPlus) {\n if (!this.readonly) {\n if (isHour && isPlus) {\n this.addHour();\n } else if (isHour && !isPlus) {\n this.reduceHour();\n } else if (!isHour && isPlus) {\n this.addMinute();\n } else {\n this.reduceMinute();\n }\n this.setTime();\n }\n },\n toggleMeridian: function toggleMeridian () {\n this.meridian = !this.meridian;\n if (this.meridian) {\n this.hours -= cutUpAmAndPm;\n } else {\n this.hours += cutUpAmAndPm;\n }\n this.setTime();\n },\n onWheel: function onWheel (e, isHour) {\n if (!this.readonly) {\n e.preventDefault();\n this.changeTime(isHour, e.deltaY < 0);\n }\n },\n setTime: function setTime () {\n var time = this.value;\n if (isNaN(time.getTime())) {\n time = new Date();\n time.setHours(0);\n time.setMinutes(0);\n }\n time.setHours(this.hours);\n time.setMinutes(this.minutes);\n if (this.max) {\n var max = new Date(time);\n max.setHours(this.max.getHours());\n max.setMinutes(this.max.getMinutes());\n time = time > max ? max : time;\n }\n if (this.min) {\n var min = new Date(time);\n min.setHours(this.min.getHours());\n min.setMinutes(this.min.getMinutes());\n time = time < min ? min : time;\n }\n this.$emit('input', new Date(time));\n },\n selectInputValue: function selectInputValue (e) {\n // mouseup should be prevented!\n // See various comments in https://stackoverflow.com/questions/3272089/programmatically-selecting-text-in-an-input-field-on-ios-devices-mobile-safari\n e.target.setSelectionRange(0, 2);\n }\n }\n};\n\n/* script */\nvar __vue_script__$c = script$c;\n\n/* template */\nvar __vue_render__$c = function() {\n var _vm = this;\n var _h = _vm.$createElement;\n var _c = _vm._self._c || _h;\n return _c(\n \"section\",\n {\n on: {\n click: function($event) {\n $event.stopPropagation();\n }\n }\n },\n [\n _c(\"table\", [\n _c(\"tbody\", [\n _vm.controls\n ? _c(\"tr\", { staticClass: \"text-center\" }, [\n _c(\n \"td\",\n [\n _c(\n \"btn\",\n {\n attrs: {\n type: \"link\",\n size: \"sm\",\n disabled: _vm.readonly\n },\n on: {\n click: function($event) {\n return _vm.changeTime(1, 1)\n }\n }\n },\n [_c(\"i\", { class: _vm.iconControlUp })]\n )\n ],\n 1\n ),\n _vm._v(\" \"),\n _c(\"td\", [_vm._v(\" \")]),\n _vm._v(\" \"),\n _c(\n \"td\",\n [\n _c(\n \"btn\",\n {\n attrs: {\n type: \"link\",\n size: \"sm\",\n disabled: _vm.readonly\n },\n on: {\n click: function($event) {\n return _vm.changeTime(0, 1)\n }\n }\n },\n [_c(\"i\", { class: _vm.iconControlUp })]\n )\n ],\n 1\n ),\n _vm._v(\" \"),\n _vm.showMeridian ? _c(\"td\") : _vm._e()\n ])\n : _vm._e(),\n _vm._v(\" \"),\n _c(\"tr\", [\n _c(\"td\", { staticClass: \"form-group\" }, [\n _c(\"input\", {\n directives: [\n {\n name: \"model\",\n rawName: \"v-model.lazy\",\n value: _vm.hoursText,\n expression: \"hoursText\",\n modifiers: { lazy: true }\n }\n ],\n ref: \"hoursInput\",\n staticClass: \"form-control text-center\",\n style: _vm.inputStyles,\n attrs: {\n type: \"tel\",\n pattern: \"\\\\d*\",\n placeholder: \"HH\",\n readonly: _vm.readonly,\n maxlength: \"2\",\n size: \"2\"\n },\n domProps: { value: _vm.hoursText },\n on: {\n mouseup: _vm.selectInputValue,\n keydown: [\n function($event) {\n if (\n !$event.type.indexOf(\"key\") &&\n _vm._k($event.keyCode, \"up\", 38, $event.key, [\n \"Up\",\n \"ArrowUp\"\n ])\n ) {\n return null\n }\n $event.preventDefault();\n return _vm.changeTime(1, 1)\n },\n function($event) {\n if (\n !$event.type.indexOf(\"key\") &&\n _vm._k($event.keyCode, \"down\", 40, $event.key, [\n \"Down\",\n \"ArrowDown\"\n ])\n ) {\n return null\n }\n $event.preventDefault();\n return _vm.changeTime(1, 0)\n }\n ],\n wheel: function($event) {\n return _vm.onWheel($event, true)\n },\n change: function($event) {\n _vm.hoursText = $event.target.value;\n }\n }\n })\n ]),\n _vm._v(\" \"),\n _vm._m(0),\n _vm._v(\" \"),\n _c(\"td\", { staticClass: \"form-group\" }, [\n _c(\"input\", {\n directives: [\n {\n name: \"model\",\n rawName: \"v-model.lazy\",\n value: _vm.minutesText,\n expression: \"minutesText\",\n modifiers: { lazy: true }\n }\n ],\n ref: \"minutesInput\",\n staticClass: \"form-control text-center\",\n style: _vm.inputStyles,\n attrs: {\n type: \"tel\",\n pattern: \"\\\\d*\",\n placeholder: \"MM\",\n readonly: _vm.readonly,\n maxlength: \"2\",\n size: \"2\"\n },\n domProps: { value: _vm.minutesText },\n on: {\n mouseup: _vm.selectInputValue,\n keydown: [\n function($event) {\n if (\n !$event.type.indexOf(\"key\") &&\n _vm._k($event.keyCode, \"up\", 38, $event.key, [\n \"Up\",\n \"ArrowUp\"\n ])\n ) {\n return null\n }\n $event.preventDefault();\n return _vm.changeTime(0, 1)\n },\n function($event) {\n if (\n !$event.type.indexOf(\"key\") &&\n _vm._k($event.keyCode, \"down\", 40, $event.key, [\n \"Down\",\n \"ArrowDown\"\n ])\n ) {\n return null\n }\n $event.preventDefault();\n return _vm.changeTime(0, 0)\n }\n ],\n wheel: function($event) {\n return _vm.onWheel($event, false)\n },\n change: function($event) {\n _vm.minutesText = $event.target.value;\n }\n }\n })\n ]),\n _vm._v(\" \"),\n _vm.showMeridian\n ? _c(\n \"td\",\n [\n _vm._v(\"\\n \\n \"),\n _c(\"btn\", {\n attrs: {\n \"data-action\": \"toggleMeridian\",\n disabled: _vm.readonly\n },\n domProps: {\n textContent: _vm._s(\n _vm.meridian\n ? _vm.t(\"uiv.timePicker.am\")\n : _vm.t(\"uiv.timePicker.pm\")\n )\n },\n on: { click: _vm.toggleMeridian }\n })\n ],\n 1\n )\n : _vm._e()\n ]),\n _vm._v(\" \"),\n _vm.controls\n ? _c(\"tr\", { staticClass: \"text-center\" }, [\n _c(\n \"td\",\n [\n _c(\n \"btn\",\n {\n attrs: {\n type: \"link\",\n size: \"sm\",\n disabled: _vm.readonly\n },\n on: {\n click: function($event) {\n return _vm.changeTime(1, 0)\n }\n }\n },\n [_c(\"i\", { class: _vm.iconControlDown })]\n )\n ],\n 1\n ),\n _vm._v(\" \"),\n _c(\"td\", [_vm._v(\" \")]),\n _vm._v(\" \"),\n _c(\n \"td\",\n [\n _c(\n \"btn\",\n {\n attrs: {\n type: \"link\",\n size: \"sm\",\n disabled: _vm.readonly\n },\n on: {\n click: function($event) {\n return _vm.changeTime(0, 0)\n }\n }\n },\n [_c(\"i\", { class: _vm.iconControlDown })]\n )\n ],\n 1\n ),\n _vm._v(\" \"),\n _vm.showMeridian ? _c(\"td\") : _vm._e()\n ])\n : _vm._e()\n ])\n ])\n ]\n )\n};\nvar __vue_staticRenderFns__$c = [\n function() {\n var _vm = this;\n var _h = _vm.$createElement;\n var _c = _vm._self._c || _h;\n return _c(\"td\", [_vm._v(\" \"), _c(\"b\", [_vm._v(\":\")]), _vm._v(\" \")])\n }\n];\n__vue_render__$c._withStripped = true;\n\n /* style */\n var __vue_inject_styles__$c = undefined;\n /* scoped */\n var __vue_scope_id__$c = undefined;\n /* module identifier */\n var __vue_module_identifier__$c = undefined;\n /* functional template */\n var __vue_is_functional_template__$c = false;\n /* style inject */\n \n /* style inject SSR */\n \n /* style inject shadow dom */\n \n\n \n var __vue_component__$c = /*#__PURE__*/normalizeComponent(\n { render: __vue_render__$c, staticRenderFns: __vue_staticRenderFns__$c },\n __vue_inject_styles__$c,\n __vue_script__$c,\n __vue_scope_id__$c,\n __vue_is_functional_template__$c,\n __vue_module_identifier__$c,\n false,\n undefined,\n undefined,\n undefined\n );\n\nfunction request (url, method) {\n if ( method === void 0 ) method = 'GET';\n\n var request = new window.XMLHttpRequest();\n var data = {};\n var p = {\n then: function (fn1, fn2) { return p.done(fn1).fail(fn2); },\n catch: function (fn) { return p.fail(fn); },\n always: function (fn) { return p.done(fn).fail(fn); }\n };\n var statuses = ['done', 'fail'];\n statuses.forEach(function (name) {\n data[name] = [];\n p[name] = function (fn) {\n if (fn instanceof Function) { data[name].push(fn); }\n return p\n };\n });\n p.done(JSON.parse);\n request.onreadystatechange = function () {\n if (request.readyState === 4) {\n var e = { status: request.status };\n if (request.status === 200) {\n var response = request.responseText;\n for (var i in data.done) {\n /* istanbul ignore else */\n if (hasOwnProperty(data.done, i) && isFunction(data.done[i])) {\n var value = data.done[i](response);\n if (isExist(value)) {\n response = value;\n }\n }\n }\n } else {\n data.fail.forEach(function (fail) { return fail(e); });\n }\n }\n };\n request.open(method, url);\n request.setRequestHeader('Accept', 'application/json');\n request.send();\n return p\n}\n\nvar script$d = {\n components: { Dropdown: Dropdown },\n props: {\n value: {\n required: true\n },\n data: Array,\n itemKey: String,\n appendToBody: {\n type: Boolean,\n default: false\n },\n ignoreCase: {\n type: Boolean,\n default: true\n },\n matchStart: {\n type: Boolean,\n default: false\n },\n forceSelect: {\n type: Boolean,\n default: false\n },\n forceClear: {\n type: Boolean,\n default: false\n },\n limit: {\n type: Number,\n default: 10\n },\n asyncSrc: String,\n asyncKey: String,\n asyncFunction: Function,\n debounce: {\n type: Number,\n default: 200\n },\n openOnFocus: {\n type: Boolean,\n default: true\n },\n openOnEmpty: {\n type: Boolean,\n default: false\n },\n target: {\n required: true\n },\n preselect: {\n type: Boolean,\n default: true\n }\n },\n data: function data () {\n return {\n inputEl: null,\n items: [],\n activeIndex: 0,\n timeoutID: 0,\n elements: [],\n open: false,\n dropdownMenuEl: null\n }\n },\n computed: {\n regexOptions: function regexOptions () {\n var options = '';\n if (this.ignoreCase) {\n options += 'i';\n }\n if (!this.matchStart) {\n options += 'g';\n }\n return options\n }\n },\n mounted: function mounted () {\n var this$1 = this;\n\n ensureElementMatchesFunction();\n this.$nextTick(function () {\n this$1.initInputElByTarget(this$1.target);\n this$1.initListeners();\n this$1.dropdownMenuEl = this$1.$refs.dropdown.$el.querySelector('.dropdown-menu');\n // set input text if v-model not empty\n if (this$1.value) {\n this$1.setInputTextByValue(this$1.value);\n }\n });\n },\n beforeDestroy: function beforeDestroy () {\n this.removeListeners();\n },\n watch: {\n target: function target (el) {\n this.removeListeners();\n this.initInputElByTarget(el);\n this.initListeners();\n },\n value: function value (value$1) {\n this.setInputTextByValue(value$1);\n }\n },\n methods: {\n setInputTextByValue: function setInputTextByValue (value) {\n if (isString(value)) {\n // direct\n this.inputEl.value = value;\n } else if (value) {\n // is object\n this.inputEl.value = this.itemKey ? value[this.itemKey] : value;\n } else if (value === null) {\n // is null or undefined or something else not valid\n this.inputEl.value = '';\n }\n },\n hasEmptySlot: function hasEmptySlot () {\n return !!this.$slots.empty || !!this.$scopedSlots.empty\n },\n initInputElByTarget: function initInputElByTarget (target) {\n if (!target) {\n return\n }\n this.inputEl = getElementBySelectorOrRef(target);\n },\n initListeners: function initListeners () {\n if (this.inputEl) {\n this.elements = [this.inputEl];\n on(this.inputEl, EVENTS.FOCUS, this.inputFocused);\n on(this.inputEl, EVENTS.BLUR, this.inputBlured);\n on(this.inputEl, EVENTS.INPUT, this.inputChanged);\n on(this.inputEl, EVENTS.KEY_DOWN, this.inputKeyPressed);\n }\n },\n removeListeners: function removeListeners () {\n this.elements = [];\n if (this.inputEl) {\n off(this.inputEl, EVENTS.FOCUS, this.inputFocused);\n off(this.inputEl, EVENTS.BLUR, this.inputBlured);\n off(this.inputEl, EVENTS.INPUT, this.inputChanged);\n off(this.inputEl, EVENTS.KEY_DOWN, this.inputKeyPressed);\n }\n },\n prepareItems: function prepareItems (data, disableFilters) {\n if ( disableFilters === void 0 ) disableFilters = false;\n\n if (disableFilters) {\n this.items = data.slice(0, this.limit);\n return\n }\n this.items = [];\n this.activeIndex = this.preselect ? 0 : -1;\n for (var i = 0, l = data.length; i < l; i++) {\n var item = data[i];\n var key = this.itemKey ? item[this.itemKey] : item;\n key = key.toString();\n var index = -1;\n if (this.ignoreCase) {\n index = key.toLowerCase().indexOf(this.inputEl.value.toLowerCase());\n } else {\n index = key.indexOf(this.inputEl.value);\n }\n if (this.matchStart ? index === 0 : index >= 0) {\n this.items.push(item);\n }\n if (this.items.length >= this.limit) {\n break\n }\n }\n },\n fetchItems: function fetchItems (value, debounce) {\n var this$1 = this;\n\n clearTimeout(this.timeoutID);\n if (value === '' && !this.openOnEmpty) {\n this.open = false;\n } else if (this.data) {\n this.prepareItems(this.data);\n this.open = this.hasEmptySlot() || Boolean(this.items.length);\n } else if (this.asyncSrc) {\n this.timeoutID = setTimeout(function () {\n this$1.$emit('loading');\n request(this$1.asyncSrc + encodeURIComponent(value))\n .then(function (data) {\n if (this$1.inputEl.matches(':focus')) {\n this$1.prepareItems(this$1.asyncKey ? data[this$1.asyncKey] : data, true);\n this$1.open = this$1.hasEmptySlot() || Boolean(this$1.items.length);\n }\n this$1.$emit('loaded');\n })\n .catch(function (err) {\n console.error(err);\n this$1.$emit('loaded-error');\n });\n }, debounce);\n } else if (this.asyncFunction) {\n var cb = function (data) {\n if (this$1.inputEl.matches(':focus')) {\n this$1.prepareItems(data, true);\n this$1.open = this$1.hasEmptySlot() || Boolean(this$1.items.length);\n }\n this$1.$emit('loaded');\n };\n this.timeoutID = setTimeout(function () {\n this$1.$emit('loading');\n this$1.asyncFunction(value, cb);\n }, debounce);\n }\n },\n inputChanged: function inputChanged () {\n var value = this.inputEl.value;\n this.fetchItems(value, this.debounce);\n this.$emit('input', this.forceSelect ? undefined : value);\n },\n inputFocused: function inputFocused () {\n if (this.openOnFocus) {\n var value = this.inputEl.value;\n this.fetchItems(value, 0);\n }\n },\n inputBlured: function inputBlured () {\n var this$1 = this;\n\n if (!this.dropdownMenuEl.matches(':hover')) {\n this.open = false;\n }\n if (this.inputEl && this.forceClear) {\n this.$nextTick(function () {\n if (typeof this$1.value === 'undefined') {\n this$1.inputEl.value = '';\n }\n });\n }\n },\n inputKeyPressed: function inputKeyPressed (event) {\n event.stopPropagation();\n if (this.open) {\n switch (event.keyCode) {\n case 13:\n if (this.activeIndex >= 0) {\n this.selectItem(this.items[this.activeIndex]);\n } else {\n this.open = false;\n }\n event.preventDefault();\n break\n case 27:\n this.open = false;\n break\n case 38:\n this.activeIndex = this.activeIndex > 0 ? this.activeIndex - 1 : 0;\n break\n case 40: {\n var maxIndex = this.items.length - 1;\n this.activeIndex = this.activeIndex < maxIndex ? this.activeIndex + 1 : maxIndex;\n break\n }\n }\n }\n },\n selectItem: function selectItem (item) {\n this.$emit('input', item);\n this.open = false;\n },\n highlight: function highlight (item) {\n var value = this.itemKey ? item[this.itemKey] : item;\n var inputValue = this.inputEl.value.replace(/[-[\\]{}()*+?.,\\\\^$|#\\s]/g, '\\\\$&');\n return value.replace(new RegExp((\"\" + inputValue), this.regexOptions), '$& ')\n }\n }\n};\n\n/* script */\nvar __vue_script__$d = script$d;\n\n/* template */\nvar __vue_render__$d = function() {\n var _vm = this;\n var _h = _vm.$createElement;\n var _c = _vm._self._c || _h;\n return _c(\n \"dropdown\",\n {\n ref: \"dropdown\",\n attrs: {\n tag: \"section\",\n \"append-to-body\": _vm.appendToBody,\n \"not-close-elements\": _vm.elements,\n \"position-element\": _vm.inputEl\n },\n model: {\n value: _vm.open,\n callback: function($$v) {\n _vm.open = $$v;\n },\n expression: \"open\"\n }\n },\n [\n _c(\n \"template\",\n { slot: \"dropdown\" },\n [\n _vm._t(\n \"item\",\n _vm._l(_vm.items, function(item, index) {\n return _c(\n \"li\",\n { class: { active: _vm.activeIndex === index } },\n [\n _c(\n \"a\",\n {\n attrs: { href: \"#\" },\n on: {\n click: function($event) {\n $event.preventDefault();\n return _vm.selectItem(item)\n }\n }\n },\n [\n _c(\"span\", {\n domProps: { innerHTML: _vm._s(_vm.highlight(item)) }\n })\n ]\n )\n ]\n )\n }),\n {\n items: _vm.items,\n activeIndex: _vm.activeIndex,\n select: _vm.selectItem,\n highlight: _vm.highlight\n }\n ),\n _vm._v(\" \"),\n !_vm.items || _vm.items.length === 0 ? _vm._t(\"empty\") : _vm._e()\n ],\n 2\n )\n ],\n 2\n )\n};\nvar __vue_staticRenderFns__$d = [];\n__vue_render__$d._withStripped = true;\n\n /* style */\n var __vue_inject_styles__$d = undefined;\n /* scoped */\n var __vue_scope_id__$d = undefined;\n /* module identifier */\n var __vue_module_identifier__$d = undefined;\n /* functional template */\n var __vue_is_functional_template__$d = false;\n /* style inject */\n \n /* style inject SSR */\n \n /* style inject shadow dom */\n \n\n \n var __vue_component__$d = /*#__PURE__*/normalizeComponent(\n { render: __vue_render__$d, staticRenderFns: __vue_staticRenderFns__$d },\n __vue_inject_styles__$d,\n __vue_script__$d,\n __vue_scope_id__$d,\n __vue_is_functional_template__$d,\n __vue_module_identifier__$d,\n false,\n undefined,\n undefined,\n undefined\n );\n\nvar ProgressBarStack = {\n functional: true,\n render: function render (h, ref) {\n var obj;\n\n var props = ref.props;\n var data = ref.data;\n return h(\n 'div',\n a(data, {\n class: ( obj = {\n 'progress-bar': true,\n 'progress-bar-striped': props.striped,\n active: props.striped && props.active\n }, obj[(\"progress-bar-\" + (props.type))] = Boolean(props.type), obj ),\n style: {\n minWidth: props.minWidth ? '2em' : null,\n width: ((props.value) + \"%\")\n },\n attrs: {\n role: 'progressbar',\n 'aria-valuemin': 0,\n 'aria-valuenow': props.value,\n 'aria-valuemax': 100\n }\n }),\n props.label ? (props.labelText ? props.labelText : ((props.value) + \"%\")) : null\n )\n },\n props: {\n value: {\n type: Number,\n required: true,\n validator: function validator (value) {\n return value >= 0 && value <= 100\n }\n },\n labelText: String,\n type: String,\n label: {\n type: Boolean,\n default: false\n },\n minWidth: {\n type: Boolean,\n default: false\n },\n striped: {\n type: Boolean,\n default: false\n },\n active: {\n type: Boolean,\n default: false\n }\n }\n};\n\nvar ProgressBar = {\n functional: true,\n render: function render (h, ref) {\n var props = ref.props;\n var data = ref.data;\n var children = ref.children;\n\n return h(\n 'div',\n a(data, { class: 'progress' }),\n children && children.length ? children : [h(ProgressBarStack, { props: props })]\n )\n }\n};\n\nvar BreadcrumbItem = {\n functional: true,\n mixins: [linkMixin],\n render: function render (h, ref) {\n var props = ref.props;\n var data = ref.data;\n var children = ref.children;\n\n var slot;\n if (props.active) {\n slot = children;\n } else if (props.to) {\n slot = [\n h('router-link', {\n props: {\n to: props.to,\n replace: props.replace,\n append: props.append,\n exact: props.exact\n }\n }, children)\n ];\n } else {\n slot = [\n h('a', {\n attrs: {\n href: props.href,\n target: props.target\n }\n }, children)\n ];\n }\n return h('li', a(data, { class: { active: props.active } }), slot)\n },\n props: {\n active: {\n type: Boolean,\n default: false\n }\n }\n};\n\nvar Breadcrumbs = {\n functional: true,\n render: function render (h, ref) {\n var props = ref.props;\n var data = ref.data;\n var children = ref.children;\n\n var slot = [];\n if (children && children.length) {\n slot = children;\n } else if (props.items) {\n slot = props.items.map(function (item, index) {\n return h(\n BreadcrumbItem,\n {\n key: hasOwnProperty(item, 'key') ? item.key : index,\n props: {\n active: hasOwnProperty(item, 'active') ? item.active : index === props.items.length - 1,\n href: item.href,\n target: item.target,\n to: item.to,\n replace: item.replace,\n append: item.append,\n exact: item.exact\n }\n },\n item.text\n )\n });\n }\n return h('ol', a(data, { class: 'breadcrumb' }), slot)\n },\n props: {\n items: Array\n }\n};\n\nvar BtnToolbar = {\n functional: true,\n render: function render (h, ref) {\n var children = ref.children;\n var data = ref.data;\n\n return h(\n 'div',\n a(data, {\n class: {\n 'btn-toolbar': true\n },\n attrs: {\n role: 'toolbar'\n }\n }),\n children\n )\n }\n};\n\nvar script$e = {\n mixins: [Local],\n components: { Dropdown: Dropdown },\n props: {\n value: {\n type: Array,\n required: true\n },\n options: {\n type: Array,\n required: true\n },\n labelKey: {\n type: String,\n default: 'label'\n },\n valueKey: {\n type: String,\n default: 'value'\n },\n limit: {\n type: Number,\n default: 0\n },\n size: String,\n placeholder: String,\n split: {\n type: String,\n default: ', '\n },\n disabled: {\n type: Boolean,\n default: false\n },\n appendToBody: {\n type: Boolean,\n default: false\n },\n block: {\n type: Boolean,\n default: false\n },\n collapseSelected: {\n type: Boolean,\n default: false\n },\n filterable: {\n type: Boolean,\n default: false\n },\n filterAutoFocus: {\n type: Boolean,\n default: true\n },\n filterFunction: Function,\n filterPlaceholder: String,\n selectedIcon: {\n type: String,\n default: 'glyphicon glyphicon-ok'\n },\n itemSelectedClass: String\n },\n data: function data () {\n return {\n showDropdown: false,\n els: [],\n filterInput: '',\n currentActive: -1\n }\n },\n computed: {\n containerStyles: function containerStyles () {\n return {\n width: this.block ? '100%' : ''\n }\n },\n filteredOptions: function filteredOptions () {\n var this$1 = this;\n\n if (this.filterable && this.filterInput) {\n if (this.filterFunction) {\n return this.filterFunction(this.filterInput)\n } else {\n var filterInput = this.filterInput.toLowerCase();\n return this.options.filter(function (v) { return (\n v[this$1.valueKey].toString().toLowerCase().indexOf(filterInput) >= 0 ||\n v[this$1.labelKey].toString().toLowerCase().indexOf(filterInput) >= 0\n ); })\n }\n } else {\n return this.options\n }\n },\n groupedOptions: function groupedOptions () {\n var this$1 = this;\n\n return this.filteredOptions\n .map(function (v) { return v.group; })\n .filter(onlyUnique)\n .map(function (v) { return ({\n options: this$1.filteredOptions.filter(function (option) { return option.group === v; }),\n $group: v\n }); })\n },\n flattenGroupedOptions: function flattenGroupedOptions () {\n var ref;\n\n return (ref = []).concat.apply(ref, this.groupedOptions.map(function (v) { return v.options; }))\n },\n selectClasses: function selectClasses () {\n var obj;\n\n return ( obj = {}, obj[(\"input-\" + (this.size))] = this.size, obj )\n },\n selectedIconClasses: function selectedIconClasses () {\n var obj;\n\n return ( obj = {}, obj[this.selectedIcon] = true, obj['pull-right'] = true, obj )\n },\n selectTextClasses: function selectTextClasses () {\n return {\n 'text-muted': this.value.length === 0\n }\n },\n labelValue: function labelValue () {\n var this$1 = this;\n\n var optionsByValue = this.options.map(function (v) { return v[this$1.valueKey]; });\n return this.value.map(function (v) {\n var index = optionsByValue.indexOf(v);\n return index >= 0 ? this$1.options[index][this$1.labelKey] : v\n })\n },\n selectedText: function selectedText () {\n if (this.value.length) {\n var labelValue = this.labelValue;\n if (this.collapseSelected) {\n var str = labelValue[0];\n str += labelValue.length > 1 ? ((this.split) + \"+\" + (labelValue.length - 1)) : '';\n return str\n } else {\n return labelValue.join(this.split)\n }\n } else {\n return this.placeholder || this.t('uiv.multiSelect.placeholder')\n }\n },\n customOptionsVisible: function customOptionsVisible () {\n return !!this.$slots.option || !!this.$scopedSlots.option\n }\n },\n watch: {\n showDropdown: function showDropdown (v) {\n var this$1 = this;\n\n // clear filter input when dropdown toggles\n this.filterInput = '';\n this.currentActive = -1;\n this.$emit('visible-change', v);\n if (v && this.filterable && this.filterAutoFocus) {\n this.$nextTick(function () {\n this$1.$refs.filterInput.focus();\n });\n }\n }\n },\n mounted: function mounted () {\n this.els = [this.$el];\n },\n methods: {\n goPrevOption: function goPrevOption () {\n if (!this.showDropdown) {\n return\n }\n this.currentActive > 0 ? this.currentActive-- : this.currentActive = this.flattenGroupedOptions.length - 1;\n },\n goNextOption: function goNextOption () {\n if (!this.showDropdown) {\n return\n }\n this.currentActive < this.flattenGroupedOptions.length - 1 ? this.currentActive++ : this.currentActive = 0;\n },\n selectOption: function selectOption () {\n var index = this.currentActive;\n var options = this.flattenGroupedOptions;\n if (!this.showDropdown) {\n this.showDropdown = true;\n } else if (index >= 0 && index < options.length) {\n this.toggle(options[index]);\n }\n },\n itemClasses: function itemClasses (item) {\n var result = {\n disabled: item.disabled,\n active: this.currentActive === this.flattenGroupedOptions.indexOf(item)\n };\n if (this.itemSelectedClass) {\n result[this.itemSelectedClass] = this.isItemSelected(item);\n }\n return result\n },\n isItemSelected: function isItemSelected (item) {\n return this.value.indexOf(item[this.valueKey]) >= 0\n },\n toggle: function toggle (item) {\n if (item.disabled) {\n return\n }\n var value = item[this.valueKey];\n var index = this.value.indexOf(value);\n if (this.limit === 1) {\n var newValue = index >= 0 ? [] : [value];\n this.$emit('input', newValue);\n this.$emit('change', newValue);\n } else {\n if (index >= 0) {\n var newVal = this.value.slice();\n newVal.splice(index, 1);\n this.$emit('input', newVal);\n this.$emit('change', newVal);\n } else if (this.limit === 0 || this.value.length < this.limit) {\n var newVal$1 = this.value.slice();\n newVal$1.push(value);\n this.$emit('input', newVal$1);\n this.$emit('change', newVal$1);\n } else {\n this.$emit('limit-exceed');\n }\n }\n },\n searchClicked: function searchClicked () {\n this.$emit('search', this.filterInput);\n }\n }\n};\n\n/* script */\nvar __vue_script__$e = script$e;\n\n/* template */\nvar __vue_render__$e = function() {\n var _vm = this;\n var _h = _vm.$createElement;\n var _c = _vm._self._c || _h;\n return _c(\n \"dropdown\",\n {\n ref: \"dropdown\",\n style: _vm.containerStyles,\n attrs: {\n \"not-close-elements\": _vm.els,\n \"append-to-body\": _vm.appendToBody,\n disabled: _vm.disabled\n },\n nativeOn: {\n keydown: function($event) {\n if (\n !$event.type.indexOf(\"key\") &&\n _vm._k($event.keyCode, \"esc\", 27, $event.key, [\"Esc\", \"Escape\"])\n ) {\n return null\n }\n _vm.showDropdown = false;\n }\n },\n model: {\n value: _vm.showDropdown,\n callback: function($$v) {\n _vm.showDropdown = $$v;\n },\n expression: \"showDropdown\"\n }\n },\n [\n _c(\n \"div\",\n {\n staticClass: \"form-control dropdown-toggle clearfix\",\n class: _vm.selectClasses,\n attrs: {\n disabled: _vm.disabled,\n tabindex: \"0\",\n \"data-role\": \"trigger\"\n },\n on: {\n focus: function($event) {\n return _vm.$emit(\"focus\", $event)\n },\n blur: function($event) {\n return _vm.$emit(\"blur\", $event)\n },\n keydown: [\n function($event) {\n if (\n !$event.type.indexOf(\"key\") &&\n _vm._k($event.keyCode, \"down\", 40, $event.key, [\n \"Down\",\n \"ArrowDown\"\n ])\n ) {\n return null\n }\n $event.preventDefault();\n $event.stopPropagation();\n return _vm.goNextOption($event)\n },\n function($event) {\n if (\n !$event.type.indexOf(\"key\") &&\n _vm._k($event.keyCode, \"up\", 38, $event.key, [\n \"Up\",\n \"ArrowUp\"\n ])\n ) {\n return null\n }\n $event.preventDefault();\n $event.stopPropagation();\n return _vm.goPrevOption($event)\n },\n function($event) {\n if (\n !$event.type.indexOf(\"key\") &&\n _vm._k($event.keyCode, \"enter\", 13, $event.key, \"Enter\")\n ) {\n return null\n }\n $event.preventDefault();\n $event.stopPropagation();\n return _vm.selectOption($event)\n }\n ]\n }\n },\n [\n _c(\n \"div\",\n {\n staticClass: \"pull-right\",\n staticStyle: {\n display: \"inline-block\",\n \"vertical-align\": \"middle\"\n }\n },\n [\n _c(\"span\", [_vm._v(\" \")]),\n _vm._v(\" \"),\n _c(\"span\", { staticClass: \"caret\" })\n ]\n ),\n _vm._v(\" \"),\n _c(\"div\", {\n class: _vm.selectTextClasses,\n staticStyle: {\n \"overflow-x\": \"hidden\",\n \"text-overflow\": \"ellipsis\",\n \"white-space\": \"nowrap\"\n },\n domProps: { textContent: _vm._s(_vm.selectedText) }\n })\n ]\n ),\n _vm._v(\" \"),\n _c(\n \"template\",\n { slot: \"dropdown\" },\n [\n _vm.filterable\n ? _c(\"li\", { staticStyle: { padding: \"4px 8px\" } }, [\n _c(\"input\", {\n directives: [\n {\n name: \"model\",\n rawName: \"v-model\",\n value: _vm.filterInput,\n expression: \"filterInput\"\n }\n ],\n ref: \"filterInput\",\n staticClass: \"form-control input-sm\",\n attrs: {\n \"aria-label\": \"Filter...\",\n type: \"text\",\n placeholder:\n _vm.filterPlaceholder ||\n _vm.t(\"uiv.multiSelect.filterPlaceholder\")\n },\n domProps: { value: _vm.filterInput },\n on: {\n keyup: function($event) {\n if (\n !$event.type.indexOf(\"key\") &&\n _vm._k($event.keyCode, \"enter\", 13, $event.key, \"Enter\")\n ) {\n return null\n }\n return _vm.searchClicked($event)\n },\n keydown: [\n function($event) {\n if (\n !$event.type.indexOf(\"key\") &&\n _vm._k($event.keyCode, \"down\", 40, $event.key, [\n \"Down\",\n \"ArrowDown\"\n ])\n ) {\n return null\n }\n $event.preventDefault();\n $event.stopPropagation();\n return _vm.goNextOption($event)\n },\n function($event) {\n if (\n !$event.type.indexOf(\"key\") &&\n _vm._k($event.keyCode, \"up\", 38, $event.key, [\n \"Up\",\n \"ArrowUp\"\n ])\n ) {\n return null\n }\n $event.preventDefault();\n $event.stopPropagation();\n return _vm.goPrevOption($event)\n },\n function($event) {\n if (\n !$event.type.indexOf(\"key\") &&\n _vm._k(\n $event.keyCode,\n \"enter\",\n 13,\n $event.key,\n \"Enter\"\n )\n ) {\n return null\n }\n $event.preventDefault();\n $event.stopPropagation();\n return _vm.selectOption($event)\n }\n ],\n input: function($event) {\n if ($event.target.composing) {\n return\n }\n _vm.filterInput = $event.target.value;\n }\n }\n })\n ])\n : _vm._e(),\n _vm._v(\" \"),\n _vm._l(_vm.groupedOptions, function(item) {\n return [\n item.$group\n ? _c(\"li\", {\n staticClass: \"dropdown-header\",\n domProps: { textContent: _vm._s(item.$group) }\n })\n : _vm._e(),\n _vm._v(\" \"),\n _vm._l(item.options, function(_item) {\n return [\n _c(\n \"li\",\n {\n class: _vm.itemClasses(_item),\n staticStyle: { outline: \"0\" },\n on: {\n keydown: [\n function($event) {\n if (\n !$event.type.indexOf(\"key\") &&\n _vm._k($event.keyCode, \"down\", 40, $event.key, [\n \"Down\",\n \"ArrowDown\"\n ])\n ) {\n return null\n }\n $event.preventDefault();\n $event.stopPropagation();\n return _vm.goNextOption($event)\n },\n function($event) {\n if (\n !$event.type.indexOf(\"key\") &&\n _vm._k($event.keyCode, \"up\", 38, $event.key, [\n \"Up\",\n \"ArrowUp\"\n ])\n ) {\n return null\n }\n $event.preventDefault();\n $event.stopPropagation();\n return _vm.goPrevOption($event)\n },\n function($event) {\n if (\n !$event.type.indexOf(\"key\") &&\n _vm._k(\n $event.keyCode,\n \"enter\",\n 13,\n $event.key,\n \"Enter\"\n )\n ) {\n return null\n }\n $event.preventDefault();\n $event.stopPropagation();\n return _vm.selectOption($event)\n }\n ],\n click: function($event) {\n $event.stopPropagation();\n return _vm.toggle(_item)\n },\n mouseenter: function($event) {\n _vm.currentActive = -1;\n }\n }\n },\n [\n _vm.customOptionsVisible\n ? _c(\n \"a\",\n {\n staticStyle: { outline: \"0\" },\n attrs: { role: \"button\" }\n },\n [\n _vm._t(\"option\", null, { item: _item }),\n _vm._v(\" \"),\n _vm.selectedIcon && _vm.isItemSelected(_item)\n ? _c(\"span\", { class: _vm.selectedIconClasses })\n : _vm._e()\n ],\n 2\n )\n : _vm.isItemSelected(_item)\n ? _c(\n \"a\",\n {\n staticStyle: { outline: \"0\" },\n attrs: { role: \"button\" }\n },\n [\n _c(\"b\", [_vm._v(_vm._s(_item[_vm.labelKey]))]),\n _vm._v(\" \"),\n _vm.selectedIcon\n ? _c(\"span\", { class: _vm.selectedIconClasses })\n : _vm._e()\n ]\n )\n : _c(\n \"a\",\n {\n staticStyle: { outline: \"0\" },\n attrs: { role: \"button\" }\n },\n [_c(\"span\", [_vm._v(_vm._s(_item[_vm.labelKey]))])]\n )\n ]\n )\n ]\n })\n ]\n })\n ],\n 2\n )\n ],\n 2\n )\n};\nvar __vue_staticRenderFns__$e = [];\n__vue_render__$e._withStripped = true;\n\n /* style */\n var __vue_inject_styles__$e = undefined;\n /* scoped */\n var __vue_scope_id__$e = undefined;\n /* module identifier */\n var __vue_module_identifier__$e = undefined;\n /* functional template */\n var __vue_is_functional_template__$e = false;\n /* style inject */\n \n /* style inject SSR */\n \n /* style inject shadow dom */\n \n\n \n var __vue_component__$e = /*#__PURE__*/normalizeComponent(\n { render: __vue_render__$e, staticRenderFns: __vue_staticRenderFns__$e },\n __vue_inject_styles__$e,\n __vue_script__$e,\n __vue_scope_id__$e,\n __vue_is_functional_template__$e,\n __vue_module_identifier__$e,\n false,\n undefined,\n undefined,\n undefined\n );\n\nvar script$f = {\n components: { Collapse: Collapse },\n props: {\n value: Boolean,\n fluid: {\n type: Boolean,\n default: true\n },\n fixedTop: Boolean,\n fixedBottom: Boolean,\n staticTop: Boolean,\n inverse: Boolean\n },\n data: function data () {\n return {\n show: false\n }\n },\n computed: {\n navClasses: function navClasses () {\n return {\n navbar: true,\n 'navbar-default': !this.inverse,\n 'navbar-inverse': this.inverse,\n 'navbar-static-top': this.staticTop,\n 'navbar-fixed-bottom': this.fixedBottom,\n 'navbar-fixed-top': this.fixedTop\n }\n }\n },\n mounted: function mounted () {\n this.show = !!this.value;\n },\n watch: {\n value: function value (v) {\n this.show = v;\n }\n },\n methods: {\n toggle: function toggle () {\n this.show = !this.show;\n this.$emit('input', this.show);\n }\n }\n};\n\n/* script */\nvar __vue_script__$f = script$f;\n\n/* template */\nvar __vue_render__$f = function() {\n var _vm = this;\n var _h = _vm.$createElement;\n var _c = _vm._self._c || _h;\n return _c(\"nav\", { class: _vm.navClasses }, [\n _c(\n \"div\",\n { class: _vm.fluid ? \"container-fluid\" : \"container\" },\n [\n _c(\n \"div\",\n { staticClass: \"navbar-header\" },\n [\n _vm._t(\"collapse-btn\", [\n _c(\n \"button\",\n {\n staticClass: \"navbar-toggle collapsed\",\n attrs: { type: \"button\" },\n on: { click: _vm.toggle }\n },\n [\n _c(\"span\", { staticClass: \"sr-only\" }, [\n _vm._v(\"Toggle navigation\")\n ]),\n _vm._v(\" \"),\n _c(\"span\", { staticClass: \"icon-bar\" }),\n _vm._v(\" \"),\n _c(\"span\", { staticClass: \"icon-bar\" }),\n _vm._v(\" \"),\n _c(\"span\", { staticClass: \"icon-bar\" })\n ]\n )\n ]),\n _vm._v(\" \"),\n _vm._t(\"brand\")\n ],\n 2\n ),\n _vm._v(\" \"),\n _vm._t(\"default\"),\n _vm._v(\" \"),\n _c(\n \"collapse\",\n {\n staticClass: \"navbar-collapse\",\n model: {\n value: _vm.show,\n callback: function($$v) {\n _vm.show = $$v;\n },\n expression: \"show\"\n }\n },\n [_vm._t(\"collapse\")],\n 2\n )\n ],\n 2\n )\n ])\n};\nvar __vue_staticRenderFns__$f = [];\n__vue_render__$f._withStripped = true;\n\n /* style */\n var __vue_inject_styles__$f = undefined;\n /* scoped */\n var __vue_scope_id__$f = undefined;\n /* module identifier */\n var __vue_module_identifier__$f = undefined;\n /* functional template */\n var __vue_is_functional_template__$f = false;\n /* style inject */\n \n /* style inject SSR */\n \n /* style inject shadow dom */\n \n\n \n var __vue_component__$f = /*#__PURE__*/normalizeComponent(\n { render: __vue_render__$f, staticRenderFns: __vue_staticRenderFns__$f },\n __vue_inject_styles__$f,\n __vue_script__$f,\n __vue_scope_id__$f,\n __vue_is_functional_template__$f,\n __vue_module_identifier__$f,\n false,\n undefined,\n undefined,\n undefined\n );\n\nvar NavbarNav = {\n functional: true,\n render: function render (h, ref) {\n var children = ref.children;\n var data = ref.data;\n var props = ref.props;\n\n return h(\n 'ul',\n a(data, {\n class: {\n nav: true,\n 'navbar-nav': true,\n 'navbar-left': props.left,\n 'navbar-right': props.right\n }\n }),\n children\n )\n },\n props: {\n left: Boolean,\n right: Boolean\n }\n};\n\nvar NavbarForm = {\n functional: true,\n render: function render (h, ref) {\n var children = ref.children;\n var data = ref.data;\n var props = ref.props;\n\n return h(\n 'form',\n a(data, {\n class: {\n 'navbar-form': true,\n 'navbar-left': props.left,\n 'navbar-right': props.right\n }\n }),\n children\n )\n },\n props: {\n left: Boolean,\n right: Boolean\n }\n};\n\nvar NavbarText = {\n functional: true,\n render: function render (h, ref) {\n var children = ref.children;\n var data = ref.data;\n var props = ref.props;\n\n return h(\n 'p',\n a(data, {\n class: {\n 'navbar-text': true,\n 'navbar-left': props.left,\n 'navbar-right': props.right\n }\n }),\n children\n )\n },\n props: {\n left: Boolean,\n right: Boolean\n }\n};\n\nvar components = /*#__PURE__*/Object.freeze({\n __proto__: null,\n Carousel: __vue_component__,\n Slide: __vue_component__$1,\n Collapse: Collapse,\n Dropdown: Dropdown,\n Modal: __vue_component__$2,\n Tab: __vue_component__$3,\n Tabs: __vue_component__$4,\n DatePicker: __vue_component__$8,\n Affix: __vue_component__$9,\n Alert: __vue_component__$a,\n Pagination: __vue_component__$b,\n Tooltip: Tooltip,\n Popover: Popover,\n TimePicker: __vue_component__$c,\n Typeahead: __vue_component__$d,\n ProgressBar: ProgressBar,\n ProgressBarStack: ProgressBarStack,\n Breadcrumbs: Breadcrumbs,\n BreadcrumbItem: BreadcrumbItem,\n Btn: Btn,\n BtnGroup: BtnGroup,\n BtnToolbar: BtnToolbar,\n MultiSelect: __vue_component__$e,\n Navbar: __vue_component__$f,\n NavbarNav: NavbarNav,\n NavbarForm: NavbarForm,\n NavbarText: NavbarText\n});\n\nvar INSTANCE = '_uiv_tooltip_instance';\n\nvar bind$1 = function (el, binding) {\n // console.log('bind')\n unbind$1(el);\n var Constructor = Vue.extend(Tooltip);\n var vm = new Constructor({\n propsData: {\n target: el,\n appendTo: binding.arg && '#' + binding.arg,\n text: typeof binding.value === 'string' ? (binding.value && binding.value.toString()) : (binding.value && binding.value.text && binding.value.text.toString()),\n positionBy: binding.value && binding.value.positionBy && binding.value.positionBy.toString(),\n viewport: binding.value && binding.value.viewport && binding.value.viewport.toString(),\n customClass: binding.value && binding.value.customClass && binding.value.customClass.toString(),\n showDelay: binding.value && binding.value.showDelay,\n hideDelay: binding.value && binding.value.hideDelay\n }\n });\n var options = [];\n for (var key in binding.modifiers) {\n if (hasOwnProperty(binding.modifiers, key) && binding.modifiers[key]) {\n options.push(key);\n }\n }\n options.forEach(function (option) {\n if (/(top)|(left)|(right)|(bottom)/.test(option)) {\n vm.placement = option;\n } else if (/(hover)|(focus)|(click)/.test(option)) {\n vm.trigger = option;\n } else if (/unenterable/.test(option)) {\n vm.enterable = false;\n }\n });\n vm.$mount();\n el[INSTANCE] = vm;\n};\n\nvar unbind$1 = function (el) {\n // console.log('unbind')\n var vm = el[INSTANCE];\n if (vm) {\n vm.$destroy();\n }\n delete el[INSTANCE];\n};\n\nvar update$1 = function (el, binding) {\n // console.log('update')\n if (binding.value !== binding.oldValue) {\n bind$1(el, binding);\n }\n};\n\nvar tooltip = { bind: bind$1, unbind: unbind$1, update: update$1 };\n\nvar INSTANCE$1 = '_uiv_popover_instance';\n\nvar bind$2 = function (el, binding) {\n // console.log('bind')\n unbind$2(el);\n var Constructor = Vue.extend(Popover);\n var vm = new Constructor({\n propsData: {\n target: el,\n appendTo: binding.arg && '#' + binding.arg,\n title: binding.value && binding.value.title && binding.value.title.toString(),\n positionBy: binding.value && binding.value.positionBy && binding.value.positionBy.toString(),\n content: binding.value && binding.value.content && binding.value.content.toString(),\n viewport: binding.value && binding.value.viewport && binding.value.viewport.toString(),\n customClass: binding.value && binding.value.customClass && binding.value.customClass.toString()\n }\n });\n var options = [];\n for (var key in binding.modifiers) {\n if (hasOwnProperty(binding.modifiers, key) && binding.modifiers[key]) {\n options.push(key);\n }\n }\n options.forEach(function (option) {\n if (/(top)|(left)|(right)|(bottom)/.test(option)) {\n vm.placement = option;\n } else if (/(hover)|(focus)|(click)/.test(option)) {\n vm.trigger = option;\n } else if (/unenterable/.test(option)) {\n vm.enterable = false;\n }\n });\n vm.$mount();\n el[INSTANCE$1] = vm;\n};\n\nvar unbind$2 = function (el) {\n // console.log('unbind')\n var vm = el[INSTANCE$1];\n if (vm) {\n vm.$destroy();\n }\n delete el[INSTANCE$1];\n};\n\nvar update$2 = function (el, binding) {\n // console.log('update')\n if (binding.value !== binding.oldValue) {\n bind$2(el, binding);\n }\n};\n\nvar popover = { bind: bind$2, unbind: unbind$2, update: update$2 };\n\nfunction ScrollSpy (element, target, options) {\n if ( target === void 0 ) target = 'body';\n if ( options === void 0 ) options = {};\n\n this.el = element;\n this.opts = assign({}, ScrollSpy.DEFAULTS, options);\n this.opts.target = target;\n if (target === 'body') {\n this.scrollElement = window;\n } else {\n this.scrollElement = document.querySelector((\"[id=\" + target + \"]\"));\n }\n this.selector = 'li > a';\n this.offsets = [];\n this.targets = [];\n this.activeTarget = null;\n this.scrollHeight = 0;\n if (this.scrollElement) {\n this.refresh();\n this.process();\n }\n}\n\nScrollSpy.DEFAULTS = {\n offset: 10,\n callback: function (ele) { return 0; }\n};\n\nScrollSpy.prototype.getScrollHeight = function () {\n return this.scrollElement.scrollHeight || Math.max(document.body.scrollHeight, document.documentElement.scrollHeight)\n};\n\nScrollSpy.prototype.refresh = function () {\n var this$1 = this;\n\n this.offsets = [];\n this.targets = [];\n this.scrollHeight = this.getScrollHeight();\n var list = nodeListToArray(this.el.querySelectorAll(this.selector));\n var isWindow = this.scrollElement === window;\n list\n .map(function (ele) {\n var href = ele.getAttribute('href');\n if (/^#./.test(href)) {\n var rootEl = isWindow ? document : this$1.scrollElement;\n var hrefEl = rootEl.querySelector((\"[id='\" + (href.slice(1)) + \"']\"));\n var offset = isWindow ? hrefEl.getBoundingClientRect().top : hrefEl.offsetTop;\n return [offset, href]\n } else {\n return null\n }\n })\n .filter(function (item) { return item; })\n .sort(function (a, b) { return a[0] - b[0]; })\n .forEach(function (item) {\n this$1.offsets.push(item[0]);\n this$1.targets.push(item[1]);\n });\n // console.log(this.offsets, this.targets)\n};\n\nScrollSpy.prototype.process = function () {\n var isWindow = this.scrollElement === window;\n var scrollTop = (isWindow ? window.pageYOffset : this.scrollElement.scrollTop) + this.opts.offset;\n var scrollHeight = this.getScrollHeight();\n var scrollElementHeight = isWindow ? getViewportSize().height : this.scrollElement.getBoundingClientRect().height;\n var maxScroll = this.opts.offset + scrollHeight - scrollElementHeight;\n var offsets = this.offsets;\n var targets = this.targets;\n var activeTarget = this.activeTarget;\n var i;\n if (this.scrollHeight !== scrollHeight) {\n this.refresh();\n }\n if (scrollTop >= maxScroll) {\n return activeTarget !== (i = targets[targets.length - 1]) && this.activate(i)\n }\n if (activeTarget && scrollTop < offsets[0]) {\n this.activeTarget = null;\n return this.clear()\n }\n for (i = offsets.length; i--;) {\n activeTarget !== targets[i] &&\n scrollTop >= offsets[i] &&\n (offsets[i + 1] === undefined || scrollTop < offsets[i + 1]) &&\n this.activate(targets[i]);\n }\n};\n\nScrollSpy.prototype.activate = function (target) {\n this.activeTarget = target;\n this.clear();\n var selector = this.selector +\n '[data-target=\"' + target + '\"],' +\n this.selector + '[href=\"' + target + '\"]';\n var activeCallback = this.opts.callback;\n var active = nodeListToArray(this.el.querySelectorAll(selector));\n active.forEach(function (ele) {\n getParents(ele, 'li')\n .forEach(function (item) {\n addClass(item, 'active');\n activeCallback(item);\n });\n if (getParents(ele, '.dropdown-menu').length) {\n addClass(getClosest(ele, 'li.dropdown'), 'active');\n }\n });\n};\n\nScrollSpy.prototype.clear = function () {\n var this$1 = this;\n\n var list = nodeListToArray(this.el.querySelectorAll(this.selector));\n list.forEach(function (ele) {\n getParents(ele, '.active', this$1.opts.target).forEach(function (item) {\n removeClass(item, 'active');\n });\n });\n};\n\nvar INSTANCE$2 = '_uiv_scrollspy_instance';\nvar events$1 = [EVENTS.RESIZE, EVENTS.SCROLL];\n\nvar bind$3 = function (el, binding) {\n // console.log('bind')\n unbind$3(el);\n};\n\nvar inserted = function (el, binding) {\n // console.log('inserted')\n var scrollSpy = new ScrollSpy(el, binding.arg, binding.value);\n if (scrollSpy.scrollElement) {\n scrollSpy.handler = function () {\n scrollSpy.process();\n };\n events$1.forEach(function (event) {\n on(scrollSpy.scrollElement, event, scrollSpy.handler);\n });\n }\n el[INSTANCE$2] = scrollSpy;\n};\n\nvar unbind$3 = function (el) {\n // console.log('unbind')\n var instance = el[INSTANCE$2];\n if (instance && instance.scrollElement) {\n events$1.forEach(function (event) {\n off(instance.scrollElement, event, instance.handler);\n });\n delete el[INSTANCE$2];\n }\n};\n\nvar update$3 = function (el, binding) {\n // console.log('update')\n var isArgUpdated = binding.arg !== binding.oldArg;\n var isValueUpdated = binding.value !== binding.oldValue;\n if (isArgUpdated || isValueUpdated) {\n bind$3(el);\n inserted(el, binding);\n }\n};\n\nvar scrollspy = { bind: bind$3, unbind: unbind$3, update: update$3, inserted: inserted };\n\nvar directives = /*#__PURE__*/Object.freeze({\n __proto__: null,\n tooltip: tooltip,\n popover: popover,\n scrollspy: scrollspy\n});\n\nvar TYPES = {\n ALERT: 0,\n CONFIRM: 1,\n PROMPT: 2\n};\n\nvar script$g = {\n mixins: [Local],\n components: { Modal: __vue_component__$2, Btn: Btn },\n props: {\n backdrop: null,\n title: String,\n content: String,\n html: {\n type: Boolean,\n default: false\n },\n okText: String,\n okType: {\n type: String,\n default: 'primary'\n },\n cancelText: String,\n cancelType: {\n type: String,\n default: 'default'\n },\n type: {\n type: Number,\n default: TYPES.ALERT\n },\n size: {\n type: String,\n default: 'sm'\n },\n cb: {\n type: Function,\n required: true\n },\n validator: {\n type: Function,\n default: function () { return null; }\n },\n customClass: null,\n defaultValue: String,\n inputType: {\n type: String,\n default: 'text'\n },\n autoFocus: {\n type: String,\n default: 'ok'\n },\n reverseButtons: {\n type: Boolean,\n default: false\n }\n },\n data: function data () {\n return {\n TYPES: TYPES,\n show: false,\n input: '',\n dirty: false\n }\n },\n mounted: function mounted () {\n if (this.defaultValue) {\n this.input = this.defaultValue;\n }\n },\n computed: {\n closeOnBackdropClick: function closeOnBackdropClick () {\n // use backdrop prop if exist\n // otherwise, only not available if render as alert\n return isExist(this.backdrop) ? Boolean(this.backdrop) : (this.type !== TYPES.ALERT)\n },\n inputError: function inputError () {\n return this.validator(this.input)\n },\n inputNotValid: function inputNotValid () {\n return this.dirty && this.inputError\n },\n okBtnText: function okBtnText () {\n return this.okText || this.t('uiv.modal.ok')\n },\n cancelBtnText: function cancelBtnText () {\n return this.cancelText || this.t('uiv.modal.cancel')\n }\n },\n methods: {\n toggle: function toggle (show, msg) {\n this.$refs.modal.toggle(show, msg);\n },\n validate: function validate () {\n this.dirty = true;\n if (!isExist(this.inputError)) {\n this.toggle(false, { value: this.input });\n }\n }\n }\n};\n\n/* script */\nvar __vue_script__$g = script$g;\n\n/* template */\nvar __vue_render__$g = function() {\n var _vm = this;\n var _h = _vm.$createElement;\n var _c = _vm._self._c || _h;\n return _c(\n \"modal\",\n {\n ref: \"modal\",\n class: _vm.customClass,\n attrs: {\n \"auto-focus\": \"\",\n size: _vm.size,\n title: _vm.title,\n header: !!_vm.title,\n backdrop: _vm.closeOnBackdropClick,\n \"cancel-text\": _vm.cancelText,\n \"ok-text\": _vm.okText\n },\n on: { hide: _vm.cb },\n model: {\n value: _vm.show,\n callback: function($$v) {\n _vm.show = $$v;\n },\n expression: \"show\"\n }\n },\n [\n _vm.html\n ? _c(\"div\", { domProps: { innerHTML: _vm._s(_vm.content) } })\n : _c(\"p\", [_vm._v(_vm._s(_vm.content))]),\n _vm._v(\" \"),\n _vm.type === _vm.TYPES.PROMPT\n ? _c(\"div\", [\n _c(\n \"div\",\n {\n staticClass: \"form-group\",\n class: { \"has-error\": _vm.inputNotValid }\n },\n [\n _vm.inputType === \"checkbox\"\n ? _c(\"input\", {\n directives: [\n {\n name: \"model\",\n rawName: \"v-model\",\n value: _vm.input,\n expression: \"input\"\n }\n ],\n ref: \"input\",\n staticClass: \"form-control\",\n attrs: {\n required: \"\",\n \"data-action\": \"auto-focus\",\n type: \"checkbox\"\n },\n domProps: {\n checked: Array.isArray(_vm.input)\n ? _vm._i(_vm.input, null) > -1\n : _vm.input\n },\n on: {\n change: [\n function($event) {\n var $$a = _vm.input,\n $$el = $event.target,\n $$c = $$el.checked ? true : false;\n if (Array.isArray($$a)) {\n var $$v = null,\n $$i = _vm._i($$a, $$v);\n if ($$el.checked) {\n $$i < 0 && (_vm.input = $$a.concat([$$v]));\n } else {\n $$i > -1 &&\n (_vm.input = $$a\n .slice(0, $$i)\n .concat($$a.slice($$i + 1)));\n }\n } else {\n _vm.input = $$c;\n }\n },\n function($event) {\n _vm.dirty = true;\n }\n ],\n keyup: function($event) {\n if (\n !$event.type.indexOf(\"key\") &&\n _vm._k(\n $event.keyCode,\n \"enter\",\n 13,\n $event.key,\n \"Enter\"\n )\n ) {\n return null\n }\n return _vm.validate($event)\n }\n }\n })\n : _vm.inputType === \"radio\"\n ? _c(\"input\", {\n directives: [\n {\n name: \"model\",\n rawName: \"v-model\",\n value: _vm.input,\n expression: \"input\"\n }\n ],\n ref: \"input\",\n staticClass: \"form-control\",\n attrs: {\n required: \"\",\n \"data-action\": \"auto-focus\",\n type: \"radio\"\n },\n domProps: { checked: _vm._q(_vm.input, null) },\n on: {\n change: [\n function($event) {\n _vm.input = null;\n },\n function($event) {\n _vm.dirty = true;\n }\n ],\n keyup: function($event) {\n if (\n !$event.type.indexOf(\"key\") &&\n _vm._k(\n $event.keyCode,\n \"enter\",\n 13,\n $event.key,\n \"Enter\"\n )\n ) {\n return null\n }\n return _vm.validate($event)\n }\n }\n })\n : _c(\"input\", {\n directives: [\n {\n name: \"model\",\n rawName: \"v-model\",\n value: _vm.input,\n expression: \"input\"\n }\n ],\n ref: \"input\",\n staticClass: \"form-control\",\n attrs: {\n required: \"\",\n \"data-action\": \"auto-focus\",\n type: _vm.inputType\n },\n domProps: { value: _vm.input },\n on: {\n change: function($event) {\n _vm.dirty = true;\n },\n keyup: function($event) {\n if (\n !$event.type.indexOf(\"key\") &&\n _vm._k(\n $event.keyCode,\n \"enter\",\n 13,\n $event.key,\n \"Enter\"\n )\n ) {\n return null\n }\n return _vm.validate($event)\n },\n input: function($event) {\n if ($event.target.composing) {\n return\n }\n _vm.input = $event.target.value;\n }\n }\n }),\n _vm._v(\" \"),\n _c(\n \"span\",\n {\n directives: [\n {\n name: \"show\",\n rawName: \"v-show\",\n value: _vm.inputNotValid,\n expression: \"inputNotValid\"\n }\n ],\n staticClass: \"help-block\"\n },\n [_vm._v(_vm._s(_vm.inputError))]\n )\n ]\n )\n ])\n : _vm._e(),\n _vm._v(\" \"),\n _vm.type === _vm.TYPES.ALERT\n ? _c(\n \"template\",\n { slot: \"footer\" },\n [\n _c(\"btn\", {\n attrs: {\n type: _vm.okType,\n \"data-action\": _vm.autoFocus === \"ok\" ? \"auto-focus\" : \"\"\n },\n domProps: { textContent: _vm._s(_vm.okBtnText) },\n on: {\n click: function($event) {\n return _vm.toggle(false, \"ok\")\n }\n }\n })\n ],\n 1\n )\n : _c(\n \"template\",\n { slot: \"footer\" },\n [\n _vm.reverseButtons\n ? [\n _vm.type === _vm.TYPES.CONFIRM\n ? _c(\"btn\", {\n attrs: {\n type: _vm.okType,\n \"data-action\":\n _vm.autoFocus === \"ok\" ? \"auto-focus\" : \"\"\n },\n domProps: { textContent: _vm._s(_vm.okBtnText) },\n on: {\n click: function($event) {\n return _vm.toggle(false, \"ok\")\n }\n }\n })\n : _c(\"btn\", {\n attrs: { type: _vm.okType },\n domProps: { textContent: _vm._s(_vm.okBtnText) },\n on: { click: _vm.validate }\n }),\n _vm._v(\" \"),\n _c(\"btn\", {\n attrs: {\n type: _vm.cancelType,\n \"data-action\":\n _vm.autoFocus === \"cancel\" ? \"auto-focus\" : \"\"\n },\n domProps: { textContent: _vm._s(_vm.cancelBtnText) },\n on: {\n click: function($event) {\n return _vm.toggle(false, \"cancel\")\n }\n }\n })\n ]\n : [\n _c(\"btn\", {\n attrs: {\n type: _vm.cancelType,\n \"data-action\":\n _vm.autoFocus === \"cancel\" ? \"auto-focus\" : \"\"\n },\n domProps: { textContent: _vm._s(_vm.cancelBtnText) },\n on: {\n click: function($event) {\n return _vm.toggle(false, \"cancel\")\n }\n }\n }),\n _vm._v(\" \"),\n _vm.type === _vm.TYPES.CONFIRM\n ? _c(\"btn\", {\n attrs: {\n type: _vm.okType,\n \"data-action\":\n _vm.autoFocus === \"ok\" ? \"auto-focus\" : \"\"\n },\n domProps: { textContent: _vm._s(_vm.okBtnText) },\n on: {\n click: function($event) {\n return _vm.toggle(false, \"ok\")\n }\n }\n })\n : _c(\"btn\", {\n attrs: { type: _vm.okType },\n domProps: { textContent: _vm._s(_vm.okBtnText) },\n on: { click: _vm.validate }\n })\n ]\n ],\n 2\n )\n ],\n 2\n )\n};\nvar __vue_staticRenderFns__$g = [];\n__vue_render__$g._withStripped = true;\n\n /* style */\n var __vue_inject_styles__$g = undefined;\n /* scoped */\n var __vue_scope_id__$g = undefined;\n /* module identifier */\n var __vue_module_identifier__$g = undefined;\n /* functional template */\n var __vue_is_functional_template__$g = false;\n /* style inject */\n \n /* style inject SSR */\n \n /* style inject shadow dom */\n \n\n \n var __vue_component__$g = /*#__PURE__*/normalizeComponent(\n { render: __vue_render__$g, staticRenderFns: __vue_staticRenderFns__$g },\n __vue_inject_styles__$g,\n __vue_script__$g,\n __vue_scope_id__$g,\n __vue_is_functional_template__$g,\n __vue_module_identifier__$g,\n false,\n undefined,\n undefined,\n undefined\n );\n\nvar queue = [];\n\nvar destroy = function (instance) {\n // console.log('destroyModal')\n removeFromDom(instance.$el);\n instance.$destroy();\n spliceIfExist(queue, instance);\n};\n\n// handel cancel or ok for confirm & prompt\nvar shallResolve = function (type, msg) {\n if (type === TYPES.CONFIRM) {\n // is confirm\n return msg === 'ok'\n } else {\n // is prompt\n return isExist(msg) && isString(msg.value)\n }\n};\n\nvar init = function (type, options, cb, resolve, reject) {\n if ( resolve === void 0 ) resolve = null;\n if ( reject === void 0 ) reject = null;\n\n var i18n = this.$i18n;\n var instance = new Vue({\n extends: __vue_component__$g,\n i18n: i18n,\n propsData: assign({}, { type: type }, options, {\n cb: function cb$1 (msg) {\n destroy(instance);\n if (isFunction(cb)) {\n if (type === TYPES.CONFIRM) {\n shallResolve(type, msg) ? cb(null, msg) : cb(msg);\n } else if (type === TYPES.PROMPT) {\n shallResolve(type, msg) ? cb(null, msg.value) : cb(msg);\n } else {\n cb(msg);\n }\n } else if (resolve && reject) {\n if (type === TYPES.CONFIRM) {\n shallResolve(type, msg) ? resolve(msg) : reject(msg);\n } else if (type === TYPES.PROMPT) {\n shallResolve(type, msg) ? resolve(msg.value) : reject(msg);\n } else {\n resolve(msg);\n }\n }\n }\n })\n });\n instance.$mount();\n document.body.appendChild(instance.$el);\n instance.show = true;\n queue.push(instance);\n};\n\n// eslint-disable-next-line default-param-last\nvar initModal = function (type, options, cb) {\n var this$1 = this;\n if ( options === void 0 ) options = {};\n\n if (isPromiseSupported()) {\n return new Promise(function (resolve, reject) {\n init.apply(this$1, [type, options, cb, resolve, reject]);\n })\n } else {\n init.apply(this, [type, options, cb]);\n }\n};\n\nvar alert = function (options, cb) {\n return initModal.apply(this, [TYPES.ALERT, options, cb])\n};\n\nvar confirm = function (options, cb) {\n return initModal.apply(this, [TYPES.CONFIRM, options, cb])\n};\n\nvar prompt = function (options, cb) {\n return initModal.apply(this, [TYPES.PROMPT, options, cb])\n};\n\nvar MessageBox = { alert: alert, confirm: confirm, prompt: prompt };\n\nvar TYPES$1 = {\n SUCCESS: 'success',\n INFO: 'info',\n DANGER: 'danger',\n WARNING: 'warning'\n};\n\nvar PLACEMENTS$1 = {\n TOP_LEFT: 'top-left',\n TOP_RIGHT: 'top-right',\n BOTTOM_LEFT: 'bottom-left',\n BOTTOM_RIGHT: 'bottom-right'\n};\n\nvar IN_CLASS$1 = 'in';\nvar ICON = 'glyphicon';\nvar WIDTH = 300;\nvar TRANSITION_DURATION = 300;\n\nvar script$h = {\n components: { Alert: __vue_component__$a },\n props: {\n title: String,\n content: String,\n html: {\n type: Boolean,\n default: false\n },\n duration: {\n type: Number,\n default: 5000\n },\n dismissible: {\n type: Boolean,\n default: true\n },\n type: String,\n placement: String,\n icon: String,\n customClass: null,\n cb: {\n type: Function,\n required: true\n },\n queue: {\n type: Array,\n required: true\n },\n offsetY: {\n type: Number,\n default: 15\n },\n offsetX: {\n type: Number,\n default: 15\n },\n offset: {\n type: Number,\n default: 15\n }\n },\n data: function data () {\n return {\n height: 0,\n top: 0,\n horizontal: this.placement === PLACEMENTS$1.TOP_LEFT || this.placement === PLACEMENTS$1.BOTTOM_LEFT ? 'left' : 'right',\n vertical: this.placement === PLACEMENTS$1.TOP_LEFT || this.placement === PLACEMENTS$1.TOP_RIGHT ? 'top' : 'bottom'\n }\n },\n created: function created () {\n // get prev notifications total height in the queue\n this.top = this.getTotalHeightOfQueue(this.queue);\n },\n mounted: function mounted () {\n var this$1 = this;\n\n var el = this.$el;\n el.style[this.vertical] = this.top + 'px';\n this.$nextTick(function () {\n el.style[this$1.horizontal] = \"-\" + WIDTH + \"px\";\n this$1.height = el.offsetHeight;\n el.style[this$1.horizontal] = (this$1.offsetX) + \"px\";\n addClass(el, IN_CLASS$1);\n });\n },\n computed: {\n styles: function styles () {\n var obj;\n\n var queue = this.queue;\n var thisIndex = queue.indexOf(this);\n return ( obj = {\n position: 'fixed'\n }, obj[this.vertical] = ((this.getTotalHeightOfQueue(queue, thisIndex)) + \"px\"), obj.width = (WIDTH + \"px\"), obj.transition = (\"all \" + (TRANSITION_DURATION / 1000) + \"s ease-in-out\"), obj )\n },\n icons: function icons () {\n if (isString(this.icon)) {\n return this.icon\n }\n switch (this.type) {\n case TYPES$1.INFO:\n case TYPES$1.WARNING:\n return (ICON + \" \" + ICON + \"-info-sign\")\n case TYPES$1.SUCCESS:\n return (ICON + \" \" + ICON + \"-ok-sign\")\n case TYPES$1.DANGER:\n return (ICON + \" \" + ICON + \"-remove-sign\")\n default:\n return null\n }\n }\n },\n methods: {\n getTotalHeightOfQueue: function getTotalHeightOfQueue (queue, lastIndex) {\n if ( lastIndex === void 0 ) lastIndex = queue.length;\n\n var totalHeight = this.offsetY;\n for (var i = 0; i < lastIndex; i++) {\n totalHeight += queue[i].height + this.offset;\n }\n return totalHeight\n },\n onDismissed: function onDismissed () {\n removeClass(this.$el, IN_CLASS$1);\n setTimeout(this.cb, TRANSITION_DURATION);\n }\n }\n};\n\n/* script */\nvar __vue_script__$h = script$h;\n\n/* template */\nvar __vue_render__$h = function() {\n var _vm = this;\n var _h = _vm.$createElement;\n var _c = _vm._self._c || _h;\n return _c(\n \"alert\",\n {\n staticClass: \"fade\",\n class: _vm.customClass,\n style: _vm.styles,\n attrs: {\n type: _vm.type,\n duration: _vm.duration,\n dismissible: _vm.dismissible\n },\n on: { dismissed: _vm.onDismissed }\n },\n [\n _c(\"div\", { staticClass: \"media\", staticStyle: { margin: \"0\" } }, [\n _vm.icons\n ? _c(\"div\", { staticClass: \"media-left\" }, [\n _c(\"span\", {\n class: _vm.icons,\n staticStyle: { \"font-size\": \"1.5em\" }\n })\n ])\n : _vm._e(),\n _vm._v(\" \"),\n _c(\"div\", { staticClass: \"media-body\" }, [\n _vm.title\n ? _c(\"div\", { staticClass: \"media-heading\" }, [\n _c(\"b\", [_vm._v(_vm._s(_vm.title))])\n ])\n : _vm._e(),\n _vm._v(\" \"),\n _vm.html\n ? _c(\"div\", { domProps: { innerHTML: _vm._s(_vm.content) } })\n : _c(\"div\", [_vm._v(_vm._s(_vm.content))])\n ])\n ])\n ]\n )\n};\nvar __vue_staticRenderFns__$h = [];\n__vue_render__$h._withStripped = true;\n\n /* style */\n var __vue_inject_styles__$h = undefined;\n /* scoped */\n var __vue_scope_id__$h = undefined;\n /* module identifier */\n var __vue_module_identifier__$h = undefined;\n /* functional template */\n var __vue_is_functional_template__$h = false;\n /* style inject */\n \n /* style inject SSR */\n \n /* style inject shadow dom */\n \n\n \n var __vue_component__$h = /*#__PURE__*/normalizeComponent(\n { render: __vue_render__$h, staticRenderFns: __vue_staticRenderFns__$h },\n __vue_inject_styles__$h,\n __vue_script__$h,\n __vue_scope_id__$h,\n __vue_is_functional_template__$h,\n __vue_module_identifier__$h,\n false,\n undefined,\n undefined,\n undefined\n );\n\nvar queues = {};\nqueues[PLACEMENTS$1.TOP_LEFT] = [];\nqueues[PLACEMENTS$1.TOP_RIGHT] = [];\nqueues[PLACEMENTS$1.BOTTOM_LEFT] = [];\nqueues[PLACEMENTS$1.BOTTOM_RIGHT] = [];\n\nvar destroy$1 = function (queue, instance) {\n // console.log('destroyNotification')\n removeFromDom(instance.$el);\n instance.$destroy();\n spliceIfExist(queue, instance);\n};\n\nvar init$1 = function (options, cb, resolve, reject) {\n if ( resolve === void 0 ) resolve = null;\n if ( reject === void 0 ) reject = null;\n\n var placement = options.placement;\n var queue = queues[placement];\n // check if placement is valid\n if (!isExist(queue)) {\n return\n }\n /* istanbul ignore else */\n // `error` alias of `danger`\n if (options.type === 'error') {\n options.type = 'danger';\n }\n var instance = new Vue({\n extends: __vue_component__$h,\n propsData: assign({}, { queue: queue, placement: placement }, options, {\n cb: function cb$1 (msg) {\n destroy$1(queue, instance);\n if (isFunction(cb)) {\n cb(msg);\n } else if (resolve && reject) {\n resolve(msg);\n }\n }\n })\n });\n instance.$mount();\n document.body.appendChild(instance.$el);\n queue.push(instance);\n};\n\n// eslint-disable-next-line default-param-last\nvar _notify = function (options, cb) {\n if ( options === void 0 ) options = {};\n\n // simplify usage: pass string as option.content\n if (isString(options)) {\n options = {\n content: options\n };\n }\n // set default placement as top-right\n if (!isExist(options.placement)) {\n options.placement = PLACEMENTS$1.TOP_RIGHT;\n }\n if (isPromiseSupported()) {\n return new Promise(function (resolve, reject) {\n init$1(options, cb, resolve, reject);\n })\n } else {\n init$1(options, cb);\n }\n};\n\nfunction _notify2 (type, args) {\n if (isString(args)) {\n _notify({\n content: args,\n type: type\n });\n } else {\n _notify(assign({}, args, {\n type: type\n }));\n }\n}\n\nvar notify = Object.defineProperties(_notify, {\n success: {\n configurable: false,\n writable: false,\n value: function value (args) {\n _notify2('success', args);\n }\n },\n info: {\n configurable: false,\n writable: false,\n value: function value (args) {\n _notify2('info', args);\n }\n },\n warning: {\n configurable: false,\n writable: false,\n value: function value (args) {\n _notify2('warning', args);\n }\n },\n danger: {\n configurable: false,\n writable: false,\n value: function value (args) {\n _notify2('danger', args);\n }\n },\n error: {\n configurable: false,\n writable: false,\n value: function value (args) {\n _notify2('danger', args);\n }\n },\n dismissAll: {\n configurable: false,\n writable: false,\n value: function value () {\n for (var key in queues) {\n /* istanbul ignore else */\n if (hasOwnProperty(queues, key)) {\n queues[key].forEach(function (instance) {\n instance.onDismissed();\n });\n }\n }\n }\n }\n});\n\nvar Notification = { notify: notify };\n\nvar services = /*#__PURE__*/Object.freeze({\n __proto__: null,\n MessageBox: MessageBox,\n Notification: Notification\n});\n\nvar install = function (Vue, options) {\n if ( options === void 0 ) options = {};\n\n // Setup language, en-US for default\n locale.use(options.locale);\n locale.i18n(options.i18n);\n // Register components\n Object.keys(components).forEach(function (key) {\n var _key = options.prefix ? options.prefix + key : key;\n Vue.component(_key, components[key]);\n });\n // Register directives\n Object.keys(directives).forEach(function (key) {\n var _key = options.prefix ? options.prefix + '-' + key : key;\n Vue.directive(_key, directives[key]);\n });\n // Register services\n Object.keys(services).forEach(function (key) {\n var service = services[key];\n Object.keys(service).forEach(function (serviceKey) {\n var _key = options.prefix ? options.prefix + '_' + serviceKey : serviceKey;\n Vue.prototype['$' + _key] = service[serviceKey];\n });\n });\n};\n\nexport { __vue_component__$9 as Affix, __vue_component__$a as Alert, BreadcrumbItem, Breadcrumbs, Btn, BtnGroup, BtnToolbar, __vue_component__ as Carousel, Collapse, __vue_component__$8 as DatePicker, Dropdown, MessageBox, __vue_component__$2 as Modal, __vue_component__$e as MultiSelect, __vue_component__$f as Navbar, NavbarForm, NavbarNav, NavbarText, Notification, __vue_component__$b as Pagination, Popover, ProgressBar, ProgressBarStack, __vue_component__$1 as Slide, __vue_component__$3 as Tab, __vue_component__$4 as Tabs, __vue_component__$c as TimePicker, Tooltip, __vue_component__$d as Typeahead, install, popover, scrollspy, tooltip };\n//# sourceMappingURL=uiv.esm.js.map\n","/*\n * bootstrap.js\n * Copyright (c) 2020 james@firefly-iii.org\n *\n * This file is part of Firefly III (https://github.com/firefly-iii).\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see .\n */\n\n// // imports\nimport Vue from 'vue';\nimport VueI18n from 'vue-i18n'\nimport * as uiv from 'uiv';\n\n// export jquery for others scripts to use\nwindow.$ = window.jQuery = require('jquery');\n\n// axios\nwindow.axios = require('axios');\nwindow.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';\n\n// CSRF\nlet token = document.head.querySelector('meta[name=\"csrf-token\"]');\n\nif (token) {\n window.axios.defaults.headers.common['X-CSRF-TOKEN'] = token.content;\n} else {\n console.error('CSRF token not found: https://laravel.com/docs/csrf#csrf-x-csrf-token');\n}\n\n// locale\nlet localeToken = document.head.querySelector('meta[name=\"locale\"]');\n\nif (localeToken) {\n localStorage.locale = localeToken.content;\n} else {\n localStorage.locale = 'en_US';\n}\n\n// admin stuff\nrequire('jquery-ui');\nrequire('bootstrap'); // bootstrap CSS?\n\nrequire('./dist/js/adminlte');\nrequire('overlayscrollbars');\n\n\n// vue\nwindow.vuei18n = VueI18n;\nwindow.uiv = uiv;\nVue.use(vuei18n);\nVue.use(uiv);\nwindow.Vue = Vue;","/*!\n * jQuery JavaScript Library v3.5.1\n * https://jquery.com/\n *\n * Includes Sizzle.js\n * https://sizzlejs.com/\n *\n * Copyright JS Foundation and other contributors\n * Released under the MIT license\n * https://jquery.org/license\n *\n * Date: 2020-05-04T22:49Z\n */\n( function( global, factory ) {\n\n\t\"use strict\";\n\n\tif ( typeof module === \"object\" && typeof module.exports === \"object\" ) {\n\n\t\t// For CommonJS and CommonJS-like environments where a proper `window`\n\t\t// is present, execute the factory and get jQuery.\n\t\t// For environments that do not have a `window` with a `document`\n\t\t// (such as Node.js), expose a factory as module.exports.\n\t\t// This accentuates the need for the creation of a real `window`.\n\t\t// e.g. var jQuery = require(\"jquery\")(window);\n\t\t// See ticket #14549 for more info.\n\t\tmodule.exports = global.document ?\n\t\t\tfactory( global, true ) :\n\t\t\tfunction( w ) {\n\t\t\t\tif ( !w.document ) {\n\t\t\t\t\tthrow new Error( \"jQuery requires a window with a document\" );\n\t\t\t\t}\n\t\t\t\treturn factory( w );\n\t\t\t};\n\t} else {\n\t\tfactory( global );\n\t}\n\n// Pass this if window is not defined yet\n} )( typeof window !== \"undefined\" ? window : this, function( window, noGlobal ) {\n\n// Edge <= 12 - 13+, Firefox <=18 - 45+, IE 10 - 11, Safari 5.1 - 9+, iOS 6 - 9.1\n// throw exceptions when non-strict code (e.g., ASP.NET 4.5) accesses strict mode\n// arguments.callee.caller (trac-13335). But as of jQuery 3.0 (2016), strict mode should be common\n// enough that all such attempts are guarded in a try block.\n\"use strict\";\n\nvar arr = [];\n\nvar getProto = Object.getPrototypeOf;\n\nvar slice = arr.slice;\n\nvar flat = arr.flat ? function( array ) {\n\treturn arr.flat.call( array );\n} : function( array ) {\n\treturn arr.concat.apply( [], array );\n};\n\n\nvar push = arr.push;\n\nvar indexOf = arr.indexOf;\n\nvar class2type = {};\n\nvar toString = class2type.toString;\n\nvar hasOwn = class2type.hasOwnProperty;\n\nvar fnToString = hasOwn.toString;\n\nvar ObjectFunctionString = fnToString.call( Object );\n\nvar support = {};\n\nvar isFunction = function isFunction( obj ) {\n\n // Support: Chrome <=57, Firefox <=52\n // In some browsers, typeof returns \"function\" for HTML elements\n // (i.e., `typeof document.createElement( \"object\" ) === \"function\"`).\n // We don't want to classify *any* DOM node as a function.\n return typeof obj === \"function\" && typeof obj.nodeType !== \"number\";\n };\n\n\nvar isWindow = function isWindow( obj ) {\n\t\treturn obj != null && obj === obj.window;\n\t};\n\n\nvar document = window.document;\n\n\n\n\tvar preservedScriptAttributes = {\n\t\ttype: true,\n\t\tsrc: true,\n\t\tnonce: true,\n\t\tnoModule: true\n\t};\n\n\tfunction DOMEval( code, node, doc ) {\n\t\tdoc = doc || document;\n\n\t\tvar i, val,\n\t\t\tscript = doc.createElement( \"script\" );\n\n\t\tscript.text = code;\n\t\tif ( node ) {\n\t\t\tfor ( i in preservedScriptAttributes ) {\n\n\t\t\t\t// Support: Firefox 64+, Edge 18+\n\t\t\t\t// Some browsers don't support the \"nonce\" property on scripts.\n\t\t\t\t// On the other hand, just using `getAttribute` is not enough as\n\t\t\t\t// the `nonce` attribute is reset to an empty string whenever it\n\t\t\t\t// becomes browsing-context connected.\n\t\t\t\t// See https://github.com/whatwg/html/issues/2369\n\t\t\t\t// See https://html.spec.whatwg.org/#nonce-attributes\n\t\t\t\t// The `node.getAttribute` check was added for the sake of\n\t\t\t\t// `jQuery.globalEval` so that it can fake a nonce-containing node\n\t\t\t\t// via an object.\n\t\t\t\tval = node[ i ] || node.getAttribute && node.getAttribute( i );\n\t\t\t\tif ( val ) {\n\t\t\t\t\tscript.setAttribute( i, val );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tdoc.head.appendChild( script ).parentNode.removeChild( script );\n\t}\n\n\nfunction toType( obj ) {\n\tif ( obj == null ) {\n\t\treturn obj + \"\";\n\t}\n\n\t// Support: Android <=2.3 only (functionish RegExp)\n\treturn typeof obj === \"object\" || typeof obj === \"function\" ?\n\t\tclass2type[ toString.call( obj ) ] || \"object\" :\n\t\ttypeof obj;\n}\n/* global Symbol */\n// Defining this global in .eslintrc.json would create a danger of using the global\n// unguarded in another place, it seems safer to define global only for this module\n\n\n\nvar\n\tversion = \"3.5.1\",\n\n\t// Define a local copy of jQuery\n\tjQuery = function( selector, context ) {\n\n\t\t// The jQuery object is actually just the init constructor 'enhanced'\n\t\t// Need init if jQuery is called (just allow error to be thrown if not included)\n\t\treturn new jQuery.fn.init( selector, context );\n\t};\n\njQuery.fn = jQuery.prototype = {\n\n\t// The current version of jQuery being used\n\tjquery: version,\n\n\tconstructor: jQuery,\n\n\t// The default length of a jQuery object is 0\n\tlength: 0,\n\n\ttoArray: function() {\n\t\treturn slice.call( this );\n\t},\n\n\t// Get the Nth element in the matched element set OR\n\t// Get the whole matched element set as a clean array\n\tget: function( num ) {\n\n\t\t// Return all the elements in a clean array\n\t\tif ( num == null ) {\n\t\t\treturn slice.call( this );\n\t\t}\n\n\t\t// Return just the one element from the set\n\t\treturn num < 0 ? this[ num + this.length ] : this[ num ];\n\t},\n\n\t// Take an array of elements and push it onto the stack\n\t// (returning the new matched element set)\n\tpushStack: function( elems ) {\n\n\t\t// Build a new jQuery matched element set\n\t\tvar ret = jQuery.merge( this.constructor(), elems );\n\n\t\t// Add the old object onto the stack (as a reference)\n\t\tret.prevObject = this;\n\n\t\t// Return the newly-formed element set\n\t\treturn ret;\n\t},\n\n\t// Execute a callback for every element in the matched set.\n\teach: function( callback ) {\n\t\treturn jQuery.each( this, callback );\n\t},\n\n\tmap: function( callback ) {\n\t\treturn this.pushStack( jQuery.map( this, function( elem, i ) {\n\t\t\treturn callback.call( elem, i, elem );\n\t\t} ) );\n\t},\n\n\tslice: function() {\n\t\treturn this.pushStack( slice.apply( this, arguments ) );\n\t},\n\n\tfirst: function() {\n\t\treturn this.eq( 0 );\n\t},\n\n\tlast: function() {\n\t\treturn this.eq( -1 );\n\t},\n\n\teven: function() {\n\t\treturn this.pushStack( jQuery.grep( this, function( _elem, i ) {\n\t\t\treturn ( i + 1 ) % 2;\n\t\t} ) );\n\t},\n\n\todd: function() {\n\t\treturn this.pushStack( jQuery.grep( this, function( _elem, i ) {\n\t\t\treturn i % 2;\n\t\t} ) );\n\t},\n\n\teq: function( i ) {\n\t\tvar len = this.length,\n\t\t\tj = +i + ( i < 0 ? len : 0 );\n\t\treturn this.pushStack( j >= 0 && j < len ? [ this[ j ] ] : [] );\n\t},\n\n\tend: function() {\n\t\treturn this.prevObject || this.constructor();\n\t},\n\n\t// For internal use only.\n\t// Behaves like an Array's method, not like a jQuery method.\n\tpush: push,\n\tsort: arr.sort,\n\tsplice: arr.splice\n};\n\njQuery.extend = jQuery.fn.extend = function() {\n\tvar options, name, src, copy, copyIsArray, clone,\n\t\ttarget = arguments[ 0 ] || {},\n\t\ti = 1,\n\t\tlength = arguments.length,\n\t\tdeep = false;\n\n\t// Handle a deep copy situation\n\tif ( typeof target === \"boolean\" ) {\n\t\tdeep = target;\n\n\t\t// Skip the boolean and the target\n\t\ttarget = arguments[ i ] || {};\n\t\ti++;\n\t}\n\n\t// Handle case when target is a string or something (possible in deep copy)\n\tif ( typeof target !== \"object\" && !isFunction( target ) ) {\n\t\ttarget = {};\n\t}\n\n\t// Extend jQuery itself if only one argument is passed\n\tif ( i === length ) {\n\t\ttarget = this;\n\t\ti--;\n\t}\n\n\tfor ( ; i < length; i++ ) {\n\n\t\t// Only deal with non-null/undefined values\n\t\tif ( ( options = arguments[ i ] ) != null ) {\n\n\t\t\t// Extend the base object\n\t\t\tfor ( name in options ) {\n\t\t\t\tcopy = options[ name ];\n\n\t\t\t\t// Prevent Object.prototype pollution\n\t\t\t\t// Prevent never-ending loop\n\t\t\t\tif ( name === \"__proto__\" || target === copy ) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t// Recurse if we're merging plain objects or arrays\n\t\t\t\tif ( deep && copy && ( jQuery.isPlainObject( copy ) ||\n\t\t\t\t\t( copyIsArray = Array.isArray( copy ) ) ) ) {\n\t\t\t\t\tsrc = target[ name ];\n\n\t\t\t\t\t// Ensure proper type for the source value\n\t\t\t\t\tif ( copyIsArray && !Array.isArray( src ) ) {\n\t\t\t\t\t\tclone = [];\n\t\t\t\t\t} else if ( !copyIsArray && !jQuery.isPlainObject( src ) ) {\n\t\t\t\t\t\tclone = {};\n\t\t\t\t\t} else {\n\t\t\t\t\t\tclone = src;\n\t\t\t\t\t}\n\t\t\t\t\tcopyIsArray = false;\n\n\t\t\t\t\t// Never move original objects, clone them\n\t\t\t\t\ttarget[ name ] = jQuery.extend( deep, clone, copy );\n\n\t\t\t\t// Don't bring in undefined values\n\t\t\t\t} else if ( copy !== undefined ) {\n\t\t\t\t\ttarget[ name ] = copy;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t// Return the modified object\n\treturn target;\n};\n\njQuery.extend( {\n\n\t// Unique for each copy of jQuery on the page\n\texpando: \"jQuery\" + ( version + Math.random() ).replace( /\\D/g, \"\" ),\n\n\t// Assume jQuery is ready without the ready module\n\tisReady: true,\n\n\terror: function( msg ) {\n\t\tthrow new Error( msg );\n\t},\n\n\tnoop: function() {},\n\n\tisPlainObject: function( obj ) {\n\t\tvar proto, Ctor;\n\n\t\t// Detect obvious negatives\n\t\t// Use toString instead of jQuery.type to catch host objects\n\t\tif ( !obj || toString.call( obj ) !== \"[object Object]\" ) {\n\t\t\treturn false;\n\t\t}\n\n\t\tproto = getProto( obj );\n\n\t\t// Objects with no prototype (e.g., `Object.create( null )`) are plain\n\t\tif ( !proto ) {\n\t\t\treturn true;\n\t\t}\n\n\t\t// Objects with prototype are plain iff they were constructed by a global Object function\n\t\tCtor = hasOwn.call( proto, \"constructor\" ) && proto.constructor;\n\t\treturn typeof Ctor === \"function\" && fnToString.call( Ctor ) === ObjectFunctionString;\n\t},\n\n\tisEmptyObject: function( obj ) {\n\t\tvar name;\n\n\t\tfor ( name in obj ) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t},\n\n\t// Evaluates a script in a provided context; falls back to the global one\n\t// if not specified.\n\tglobalEval: function( code, options, doc ) {\n\t\tDOMEval( code, { nonce: options && options.nonce }, doc );\n\t},\n\n\teach: function( obj, callback ) {\n\t\tvar length, i = 0;\n\n\t\tif ( isArrayLike( obj ) ) {\n\t\t\tlength = obj.length;\n\t\t\tfor ( ; i < length; i++ ) {\n\t\t\t\tif ( callback.call( obj[ i ], i, obj[ i ] ) === false ) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tfor ( i in obj ) {\n\t\t\t\tif ( callback.call( obj[ i ], i, obj[ i ] ) === false ) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn obj;\n\t},\n\n\t// results is for internal usage only\n\tmakeArray: function( arr, results ) {\n\t\tvar ret = results || [];\n\n\t\tif ( arr != null ) {\n\t\t\tif ( isArrayLike( Object( arr ) ) ) {\n\t\t\t\tjQuery.merge( ret,\n\t\t\t\t\ttypeof arr === \"string\" ?\n\t\t\t\t\t[ arr ] : arr\n\t\t\t\t);\n\t\t\t} else {\n\t\t\t\tpush.call( ret, arr );\n\t\t\t}\n\t\t}\n\n\t\treturn ret;\n\t},\n\n\tinArray: function( elem, arr, i ) {\n\t\treturn arr == null ? -1 : indexOf.call( arr, elem, i );\n\t},\n\n\t// Support: Android <=4.0 only, PhantomJS 1 only\n\t// push.apply(_, arraylike) throws on ancient WebKit\n\tmerge: function( first, second ) {\n\t\tvar len = +second.length,\n\t\t\tj = 0,\n\t\t\ti = first.length;\n\n\t\tfor ( ; j < len; j++ ) {\n\t\t\tfirst[ i++ ] = second[ j ];\n\t\t}\n\n\t\tfirst.length = i;\n\n\t\treturn first;\n\t},\n\n\tgrep: function( elems, callback, invert ) {\n\t\tvar callbackInverse,\n\t\t\tmatches = [],\n\t\t\ti = 0,\n\t\t\tlength = elems.length,\n\t\t\tcallbackExpect = !invert;\n\n\t\t// Go through the array, only saving the items\n\t\t// that pass the validator function\n\t\tfor ( ; i < length; i++ ) {\n\t\t\tcallbackInverse = !callback( elems[ i ], i );\n\t\t\tif ( callbackInverse !== callbackExpect ) {\n\t\t\t\tmatches.push( elems[ i ] );\n\t\t\t}\n\t\t}\n\n\t\treturn matches;\n\t},\n\n\t// arg is for internal usage only\n\tmap: function( elems, callback, arg ) {\n\t\tvar length, value,\n\t\t\ti = 0,\n\t\t\tret = [];\n\n\t\t// Go through the array, translating each of the items to their new values\n\t\tif ( isArrayLike( elems ) ) {\n\t\t\tlength = elems.length;\n\t\t\tfor ( ; i < length; i++ ) {\n\t\t\t\tvalue = callback( elems[ i ], i, arg );\n\n\t\t\t\tif ( value != null ) {\n\t\t\t\t\tret.push( value );\n\t\t\t\t}\n\t\t\t}\n\n\t\t// Go through every key on the object,\n\t\t} else {\n\t\t\tfor ( i in elems ) {\n\t\t\t\tvalue = callback( elems[ i ], i, arg );\n\n\t\t\t\tif ( value != null ) {\n\t\t\t\t\tret.push( value );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Flatten any nested arrays\n\t\treturn flat( ret );\n\t},\n\n\t// A global GUID counter for objects\n\tguid: 1,\n\n\t// jQuery.support is not used in Core but other projects attach their\n\t// properties to it so it needs to exist.\n\tsupport: support\n} );\n\nif ( typeof Symbol === \"function\" ) {\n\tjQuery.fn[ Symbol.iterator ] = arr[ Symbol.iterator ];\n}\n\n// Populate the class2type map\njQuery.each( \"Boolean Number String Function Array Date RegExp Object Error Symbol\".split( \" \" ),\nfunction( _i, name ) {\n\tclass2type[ \"[object \" + name + \"]\" ] = name.toLowerCase();\n} );\n\nfunction isArrayLike( obj ) {\n\n\t// Support: real iOS 8.2 only (not reproducible in simulator)\n\t// `in` check used to prevent JIT error (gh-2145)\n\t// hasOwn isn't used here due to false negatives\n\t// regarding Nodelist length in IE\n\tvar length = !!obj && \"length\" in obj && obj.length,\n\t\ttype = toType( obj );\n\n\tif ( isFunction( obj ) || isWindow( obj ) ) {\n\t\treturn false;\n\t}\n\n\treturn type === \"array\" || length === 0 ||\n\t\ttypeof length === \"number\" && length > 0 && ( length - 1 ) in obj;\n}\nvar Sizzle =\n/*!\n * Sizzle CSS Selector Engine v2.3.5\n * https://sizzlejs.com/\n *\n * Copyright JS Foundation and other contributors\n * Released under the MIT license\n * https://js.foundation/\n *\n * Date: 2020-03-14\n */\n( function( window ) {\nvar i,\n\tsupport,\n\tExpr,\n\tgetText,\n\tisXML,\n\ttokenize,\n\tcompile,\n\tselect,\n\toutermostContext,\n\tsortInput,\n\thasDuplicate,\n\n\t// Local document vars\n\tsetDocument,\n\tdocument,\n\tdocElem,\n\tdocumentIsHTML,\n\trbuggyQSA,\n\trbuggyMatches,\n\tmatches,\n\tcontains,\n\n\t// Instance-specific data\n\texpando = \"sizzle\" + 1 * new Date(),\n\tpreferredDoc = window.document,\n\tdirruns = 0,\n\tdone = 0,\n\tclassCache = createCache(),\n\ttokenCache = createCache(),\n\tcompilerCache = createCache(),\n\tnonnativeSelectorCache = createCache(),\n\tsortOrder = function( a, b ) {\n\t\tif ( a === b ) {\n\t\t\thasDuplicate = true;\n\t\t}\n\t\treturn 0;\n\t},\n\n\t// Instance methods\n\thasOwn = ( {} ).hasOwnProperty,\n\tarr = [],\n\tpop = arr.pop,\n\tpushNative = arr.push,\n\tpush = arr.push,\n\tslice = arr.slice,\n\n\t// Use a stripped-down indexOf as it's faster than native\n\t// https://jsperf.com/thor-indexof-vs-for/5\n\tindexOf = function( list, elem ) {\n\t\tvar i = 0,\n\t\t\tlen = list.length;\n\t\tfor ( ; i < len; i++ ) {\n\t\t\tif ( list[ i ] === elem ) {\n\t\t\t\treturn i;\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t},\n\n\tbooleans = \"checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|\" +\n\t\t\"ismap|loop|multiple|open|readonly|required|scoped\",\n\n\t// Regular expressions\n\n\t// http://www.w3.org/TR/css3-selectors/#whitespace\n\twhitespace = \"[\\\\x20\\\\t\\\\r\\\\n\\\\f]\",\n\n\t// https://www.w3.org/TR/css-syntax-3/#ident-token-diagram\n\tidentifier = \"(?:\\\\\\\\[\\\\da-fA-F]{1,6}\" + whitespace +\n\t\t\"?|\\\\\\\\[^\\\\r\\\\n\\\\f]|[\\\\w-]|[^\\0-\\\\x7f])+\",\n\n\t// Attribute selectors: http://www.w3.org/TR/selectors/#attribute-selectors\n\tattributes = \"\\\\[\" + whitespace + \"*(\" + identifier + \")(?:\" + whitespace +\n\n\t\t// Operator (capture 2)\n\t\t\"*([*^$|!~]?=)\" + whitespace +\n\n\t\t// \"Attribute values must be CSS identifiers [capture 5]\n\t\t// or strings [capture 3 or capture 4]\"\n\t\t\"*(?:'((?:\\\\\\\\.|[^\\\\\\\\'])*)'|\\\"((?:\\\\\\\\.|[^\\\\\\\\\\\"])*)\\\"|(\" + identifier + \"))|)\" +\n\t\twhitespace + \"*\\\\]\",\n\n\tpseudos = \":(\" + identifier + \")(?:\\\\((\" +\n\n\t\t// To reduce the number of selectors needing tokenize in the preFilter, prefer arguments:\n\t\t// 1. quoted (capture 3; capture 4 or capture 5)\n\t\t\"('((?:\\\\\\\\.|[^\\\\\\\\'])*)'|\\\"((?:\\\\\\\\.|[^\\\\\\\\\\\"])*)\\\")|\" +\n\n\t\t// 2. simple (capture 6)\n\t\t\"((?:\\\\\\\\.|[^\\\\\\\\()[\\\\]]|\" + attributes + \")*)|\" +\n\n\t\t// 3. anything else (capture 2)\n\t\t\".*\" +\n\t\t\")\\\\)|)\",\n\n\t// Leading and non-escaped trailing whitespace, capturing some non-whitespace characters preceding the latter\n\trwhitespace = new RegExp( whitespace + \"+\", \"g\" ),\n\trtrim = new RegExp( \"^\" + whitespace + \"+|((?:^|[^\\\\\\\\])(?:\\\\\\\\.)*)\" +\n\t\twhitespace + \"+$\", \"g\" ),\n\n\trcomma = new RegExp( \"^\" + whitespace + \"*,\" + whitespace + \"*\" ),\n\trcombinators = new RegExp( \"^\" + whitespace + \"*([>+~]|\" + whitespace + \")\" + whitespace +\n\t\t\"*\" ),\n\trdescend = new RegExp( whitespace + \"|>\" ),\n\n\trpseudo = new RegExp( pseudos ),\n\tridentifier = new RegExp( \"^\" + identifier + \"$\" ),\n\n\tmatchExpr = {\n\t\t\"ID\": new RegExp( \"^#(\" + identifier + \")\" ),\n\t\t\"CLASS\": new RegExp( \"^\\\\.(\" + identifier + \")\" ),\n\t\t\"TAG\": new RegExp( \"^(\" + identifier + \"|[*])\" ),\n\t\t\"ATTR\": new RegExp( \"^\" + attributes ),\n\t\t\"PSEUDO\": new RegExp( \"^\" + pseudos ),\n\t\t\"CHILD\": new RegExp( \"^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\\\(\" +\n\t\t\twhitespace + \"*(even|odd|(([+-]|)(\\\\d*)n|)\" + whitespace + \"*(?:([+-]|)\" +\n\t\t\twhitespace + \"*(\\\\d+)|))\" + whitespace + \"*\\\\)|)\", \"i\" ),\n\t\t\"bool\": new RegExp( \"^(?:\" + booleans + \")$\", \"i\" ),\n\n\t\t// For use in libraries implementing .is()\n\t\t// We use this for POS matching in `select`\n\t\t\"needsContext\": new RegExp( \"^\" + whitespace +\n\t\t\t\"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\\\(\" + whitespace +\n\t\t\t\"*((?:-\\\\d)?\\\\d*)\" + whitespace + \"*\\\\)|)(?=[^-]|$)\", \"i\" )\n\t},\n\n\trhtml = /HTML$/i,\n\trinputs = /^(?:input|select|textarea|button)$/i,\n\trheader = /^h\\d$/i,\n\n\trnative = /^[^{]+\\{\\s*\\[native \\w/,\n\n\t// Easily-parseable/retrievable ID or TAG or CLASS selectors\n\trquickExpr = /^(?:#([\\w-]+)|(\\w+)|\\.([\\w-]+))$/,\n\n\trsibling = /[+~]/,\n\n\t// CSS escapes\n\t// http://www.w3.org/TR/CSS21/syndata.html#escaped-characters\n\trunescape = new RegExp( \"\\\\\\\\[\\\\da-fA-F]{1,6}\" + whitespace + \"?|\\\\\\\\([^\\\\r\\\\n\\\\f])\", \"g\" ),\n\tfunescape = function( escape, nonHex ) {\n\t\tvar high = \"0x\" + escape.slice( 1 ) - 0x10000;\n\n\t\treturn nonHex ?\n\n\t\t\t// Strip the backslash prefix from a non-hex escape sequence\n\t\t\tnonHex :\n\n\t\t\t// Replace a hexadecimal escape sequence with the encoded Unicode code point\n\t\t\t// Support: IE <=11+\n\t\t\t// For values outside the Basic Multilingual Plane (BMP), manually construct a\n\t\t\t// surrogate pair\n\t\t\thigh < 0 ?\n\t\t\t\tString.fromCharCode( high + 0x10000 ) :\n\t\t\t\tString.fromCharCode( high >> 10 | 0xD800, high & 0x3FF | 0xDC00 );\n\t},\n\n\t// CSS string/identifier serialization\n\t// https://drafts.csswg.org/cssom/#common-serializing-idioms\n\trcssescape = /([\\0-\\x1f\\x7f]|^-?\\d)|^-$|[^\\0-\\x1f\\x7f-\\uFFFF\\w-]/g,\n\tfcssescape = function( ch, asCodePoint ) {\n\t\tif ( asCodePoint ) {\n\n\t\t\t// U+0000 NULL becomes U+FFFD REPLACEMENT CHARACTER\n\t\t\tif ( ch === \"\\0\" ) {\n\t\t\t\treturn \"\\uFFFD\";\n\t\t\t}\n\n\t\t\t// Control characters and (dependent upon position) numbers get escaped as code points\n\t\t\treturn ch.slice( 0, -1 ) + \"\\\\\" +\n\t\t\t\tch.charCodeAt( ch.length - 1 ).toString( 16 ) + \" \";\n\t\t}\n\n\t\t// Other potentially-special ASCII characters get backslash-escaped\n\t\treturn \"\\\\\" + ch;\n\t},\n\n\t// Used for iframes\n\t// See setDocument()\n\t// Removing the function wrapper causes a \"Permission Denied\"\n\t// error in IE\n\tunloadHandler = function() {\n\t\tsetDocument();\n\t},\n\n\tinDisabledFieldset = addCombinator(\n\t\tfunction( elem ) {\n\t\t\treturn elem.disabled === true && elem.nodeName.toLowerCase() === \"fieldset\";\n\t\t},\n\t\t{ dir: \"parentNode\", next: \"legend\" }\n\t);\n\n// Optimize for push.apply( _, NodeList )\ntry {\n\tpush.apply(\n\t\t( arr = slice.call( preferredDoc.childNodes ) ),\n\t\tpreferredDoc.childNodes\n\t);\n\n\t// Support: Android<4.0\n\t// Detect silently failing push.apply\n\t// eslint-disable-next-line no-unused-expressions\n\tarr[ preferredDoc.childNodes.length ].nodeType;\n} catch ( e ) {\n\tpush = { apply: arr.length ?\n\n\t\t// Leverage slice if possible\n\t\tfunction( target, els ) {\n\t\t\tpushNative.apply( target, slice.call( els ) );\n\t\t} :\n\n\t\t// Support: IE<9\n\t\t// Otherwise append directly\n\t\tfunction( target, els ) {\n\t\t\tvar j = target.length,\n\t\t\t\ti = 0;\n\n\t\t\t// Can't trust NodeList.length\n\t\t\twhile ( ( target[ j++ ] = els[ i++ ] ) ) {}\n\t\t\ttarget.length = j - 1;\n\t\t}\n\t};\n}\n\nfunction Sizzle( selector, context, results, seed ) {\n\tvar m, i, elem, nid, match, groups, newSelector,\n\t\tnewContext = context && context.ownerDocument,\n\n\t\t// nodeType defaults to 9, since context defaults to document\n\t\tnodeType = context ? context.nodeType : 9;\n\n\tresults = results || [];\n\n\t// Return early from calls with invalid selector or context\n\tif ( typeof selector !== \"string\" || !selector ||\n\t\tnodeType !== 1 && nodeType !== 9 && nodeType !== 11 ) {\n\n\t\treturn results;\n\t}\n\n\t// Try to shortcut find operations (as opposed to filters) in HTML documents\n\tif ( !seed ) {\n\t\tsetDocument( context );\n\t\tcontext = context || document;\n\n\t\tif ( documentIsHTML ) {\n\n\t\t\t// If the selector is sufficiently simple, try using a \"get*By*\" DOM method\n\t\t\t// (excepting DocumentFragment context, where the methods don't exist)\n\t\t\tif ( nodeType !== 11 && ( match = rquickExpr.exec( selector ) ) ) {\n\n\t\t\t\t// ID selector\n\t\t\t\tif ( ( m = match[ 1 ] ) ) {\n\n\t\t\t\t\t// Document context\n\t\t\t\t\tif ( nodeType === 9 ) {\n\t\t\t\t\t\tif ( ( elem = context.getElementById( m ) ) ) {\n\n\t\t\t\t\t\t\t// Support: IE, Opera, Webkit\n\t\t\t\t\t\t\t// TODO: identify versions\n\t\t\t\t\t\t\t// getElementById can match elements by name instead of ID\n\t\t\t\t\t\t\tif ( elem.id === m ) {\n\t\t\t\t\t\t\t\tresults.push( elem );\n\t\t\t\t\t\t\t\treturn results;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\treturn results;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t// Element context\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\t// Support: IE, Opera, Webkit\n\t\t\t\t\t\t// TODO: identify versions\n\t\t\t\t\t\t// getElementById can match elements by name instead of ID\n\t\t\t\t\t\tif ( newContext && ( elem = newContext.getElementById( m ) ) &&\n\t\t\t\t\t\t\tcontains( context, elem ) &&\n\t\t\t\t\t\t\telem.id === m ) {\n\n\t\t\t\t\t\t\tresults.push( elem );\n\t\t\t\t\t\t\treturn results;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t// Type selector\n\t\t\t\t} else if ( match[ 2 ] ) {\n\t\t\t\t\tpush.apply( results, context.getElementsByTagName( selector ) );\n\t\t\t\t\treturn results;\n\n\t\t\t\t// Class selector\n\t\t\t\t} else if ( ( m = match[ 3 ] ) && support.getElementsByClassName &&\n\t\t\t\t\tcontext.getElementsByClassName ) {\n\n\t\t\t\t\tpush.apply( results, context.getElementsByClassName( m ) );\n\t\t\t\t\treturn results;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Take advantage of querySelectorAll\n\t\t\tif ( support.qsa &&\n\t\t\t\t!nonnativeSelectorCache[ selector + \" \" ] &&\n\t\t\t\t( !rbuggyQSA || !rbuggyQSA.test( selector ) ) &&\n\n\t\t\t\t// Support: IE 8 only\n\t\t\t\t// Exclude object elements\n\t\t\t\t( nodeType !== 1 || context.nodeName.toLowerCase() !== \"object\" ) ) {\n\n\t\t\t\tnewSelector = selector;\n\t\t\t\tnewContext = context;\n\n\t\t\t\t// qSA considers elements outside a scoping root when evaluating child or\n\t\t\t\t// descendant combinators, which is not what we want.\n\t\t\t\t// In such cases, we work around the behavior by prefixing every selector in the\n\t\t\t\t// list with an ID selector referencing the scope context.\n\t\t\t\t// The technique has to be used as well when a leading combinator is used\n\t\t\t\t// as such selectors are not recognized by querySelectorAll.\n\t\t\t\t// Thanks to Andrew Dupont for this technique.\n\t\t\t\tif ( nodeType === 1 &&\n\t\t\t\t\t( rdescend.test( selector ) || rcombinators.test( selector ) ) ) {\n\n\t\t\t\t\t// Expand context for sibling selectors\n\t\t\t\t\tnewContext = rsibling.test( selector ) && testContext( context.parentNode ) ||\n\t\t\t\t\t\tcontext;\n\n\t\t\t\t\t// We can use :scope instead of the ID hack if the browser\n\t\t\t\t\t// supports it & if we're not changing the context.\n\t\t\t\t\tif ( newContext !== context || !support.scope ) {\n\n\t\t\t\t\t\t// Capture the context ID, setting it first if necessary\n\t\t\t\t\t\tif ( ( nid = context.getAttribute( \"id\" ) ) ) {\n\t\t\t\t\t\t\tnid = nid.replace( rcssescape, fcssescape );\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcontext.setAttribute( \"id\", ( nid = expando ) );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// Prefix every selector in the list\n\t\t\t\t\tgroups = tokenize( selector );\n\t\t\t\t\ti = groups.length;\n\t\t\t\t\twhile ( i-- ) {\n\t\t\t\t\t\tgroups[ i ] = ( nid ? \"#\" + nid : \":scope\" ) + \" \" +\n\t\t\t\t\t\t\ttoSelector( groups[ i ] );\n\t\t\t\t\t}\n\t\t\t\t\tnewSelector = groups.join( \",\" );\n\t\t\t\t}\n\n\t\t\t\ttry {\n\t\t\t\t\tpush.apply( results,\n\t\t\t\t\t\tnewContext.querySelectorAll( newSelector )\n\t\t\t\t\t);\n\t\t\t\t\treturn results;\n\t\t\t\t} catch ( qsaError ) {\n\t\t\t\t\tnonnativeSelectorCache( selector, true );\n\t\t\t\t} finally {\n\t\t\t\t\tif ( nid === expando ) {\n\t\t\t\t\t\tcontext.removeAttribute( \"id\" );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t// All others\n\treturn select( selector.replace( rtrim, \"$1\" ), context, results, seed );\n}\n\n/**\n * Create key-value caches of limited size\n * @returns {function(string, object)} Returns the Object data after storing it on itself with\n *\tproperty name the (space-suffixed) string and (if the cache is larger than Expr.cacheLength)\n *\tdeleting the oldest entry\n */\nfunction createCache() {\n\tvar keys = [];\n\n\tfunction cache( key, value ) {\n\n\t\t// Use (key + \" \") to avoid collision with native prototype properties (see Issue #157)\n\t\tif ( keys.push( key + \" \" ) > Expr.cacheLength ) {\n\n\t\t\t// Only keep the most recent entries\n\t\t\tdelete cache[ keys.shift() ];\n\t\t}\n\t\treturn ( cache[ key + \" \" ] = value );\n\t}\n\treturn cache;\n}\n\n/**\n * Mark a function for special use by Sizzle\n * @param {Function} fn The function to mark\n */\nfunction markFunction( fn ) {\n\tfn[ expando ] = true;\n\treturn fn;\n}\n\n/**\n * Support testing using an element\n * @param {Function} fn Passed the created element and returns a boolean result\n */\nfunction assert( fn ) {\n\tvar el = document.createElement( \"fieldset\" );\n\n\ttry {\n\t\treturn !!fn( el );\n\t} catch ( e ) {\n\t\treturn false;\n\t} finally {\n\n\t\t// Remove from its parent by default\n\t\tif ( el.parentNode ) {\n\t\t\tel.parentNode.removeChild( el );\n\t\t}\n\n\t\t// release memory in IE\n\t\tel = null;\n\t}\n}\n\n/**\n * Adds the same handler for all of the specified attrs\n * @param {String} attrs Pipe-separated list of attributes\n * @param {Function} handler The method that will be applied\n */\nfunction addHandle( attrs, handler ) {\n\tvar arr = attrs.split( \"|\" ),\n\t\ti = arr.length;\n\n\twhile ( i-- ) {\n\t\tExpr.attrHandle[ arr[ i ] ] = handler;\n\t}\n}\n\n/**\n * Checks document order of two siblings\n * @param {Element} a\n * @param {Element} b\n * @returns {Number} Returns less than 0 if a precedes b, greater than 0 if a follows b\n */\nfunction siblingCheck( a, b ) {\n\tvar cur = b && a,\n\t\tdiff = cur && a.nodeType === 1 && b.nodeType === 1 &&\n\t\t\ta.sourceIndex - b.sourceIndex;\n\n\t// Use IE sourceIndex if available on both nodes\n\tif ( diff ) {\n\t\treturn diff;\n\t}\n\n\t// Check if b follows a\n\tif ( cur ) {\n\t\twhile ( ( cur = cur.nextSibling ) ) {\n\t\t\tif ( cur === b ) {\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t}\n\t}\n\n\treturn a ? 1 : -1;\n}\n\n/**\n * Returns a function to use in pseudos for input types\n * @param {String} type\n */\nfunction createInputPseudo( type ) {\n\treturn function( elem ) {\n\t\tvar name = elem.nodeName.toLowerCase();\n\t\treturn name === \"input\" && elem.type === type;\n\t};\n}\n\n/**\n * Returns a function to use in pseudos for buttons\n * @param {String} type\n */\nfunction createButtonPseudo( type ) {\n\treturn function( elem ) {\n\t\tvar name = elem.nodeName.toLowerCase();\n\t\treturn ( name === \"input\" || name === \"button\" ) && elem.type === type;\n\t};\n}\n\n/**\n * Returns a function to use in pseudos for :enabled/:disabled\n * @param {Boolean} disabled true for :disabled; false for :enabled\n */\nfunction createDisabledPseudo( disabled ) {\n\n\t// Known :disabled false positives: fieldset[disabled] > legend:nth-of-type(n+2) :can-disable\n\treturn function( elem ) {\n\n\t\t// Only certain elements can match :enabled or :disabled\n\t\t// https://html.spec.whatwg.org/multipage/scripting.html#selector-enabled\n\t\t// https://html.spec.whatwg.org/multipage/scripting.html#selector-disabled\n\t\tif ( \"form\" in elem ) {\n\n\t\t\t// Check for inherited disabledness on relevant non-disabled elements:\n\t\t\t// * listed form-associated elements in a disabled fieldset\n\t\t\t// https://html.spec.whatwg.org/multipage/forms.html#category-listed\n\t\t\t// https://html.spec.whatwg.org/multipage/forms.html#concept-fe-disabled\n\t\t\t// * option elements in a disabled optgroup\n\t\t\t// https://html.spec.whatwg.org/multipage/forms.html#concept-option-disabled\n\t\t\t// All such elements have a \"form\" property.\n\t\t\tif ( elem.parentNode && elem.disabled === false ) {\n\n\t\t\t\t// Option elements defer to a parent optgroup if present\n\t\t\t\tif ( \"label\" in elem ) {\n\t\t\t\t\tif ( \"label\" in elem.parentNode ) {\n\t\t\t\t\t\treturn elem.parentNode.disabled === disabled;\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn elem.disabled === disabled;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Support: IE 6 - 11\n\t\t\t\t// Use the isDisabled shortcut property to check for disabled fieldset ancestors\n\t\t\t\treturn elem.isDisabled === disabled ||\n\n\t\t\t\t\t// Where there is no isDisabled, check manually\n\t\t\t\t\t/* jshint -W018 */\n\t\t\t\t\telem.isDisabled !== !disabled &&\n\t\t\t\t\tinDisabledFieldset( elem ) === disabled;\n\t\t\t}\n\n\t\t\treturn elem.disabled === disabled;\n\n\t\t// Try to winnow out elements that can't be disabled before trusting the disabled property.\n\t\t// Some victims get caught in our net (label, legend, menu, track), but it shouldn't\n\t\t// even exist on them, let alone have a boolean value.\n\t\t} else if ( \"label\" in elem ) {\n\t\t\treturn elem.disabled === disabled;\n\t\t}\n\n\t\t// Remaining elements are neither :enabled nor :disabled\n\t\treturn false;\n\t};\n}\n\n/**\n * Returns a function to use in pseudos for positionals\n * @param {Function} fn\n */\nfunction createPositionalPseudo( fn ) {\n\treturn markFunction( function( argument ) {\n\t\targument = +argument;\n\t\treturn markFunction( function( seed, matches ) {\n\t\t\tvar j,\n\t\t\t\tmatchIndexes = fn( [], seed.length, argument ),\n\t\t\t\ti = matchIndexes.length;\n\n\t\t\t// Match elements found at the specified indexes\n\t\t\twhile ( i-- ) {\n\t\t\t\tif ( seed[ ( j = matchIndexes[ i ] ) ] ) {\n\t\t\t\t\tseed[ j ] = !( matches[ j ] = seed[ j ] );\n\t\t\t\t}\n\t\t\t}\n\t\t} );\n\t} );\n}\n\n/**\n * Checks a node for validity as a Sizzle context\n * @param {Element|Object=} context\n * @returns {Element|Object|Boolean} The input node if acceptable, otherwise a falsy value\n */\nfunction testContext( context ) {\n\treturn context && typeof context.getElementsByTagName !== \"undefined\" && context;\n}\n\n// Expose support vars for convenience\nsupport = Sizzle.support = {};\n\n/**\n * Detects XML nodes\n * @param {Element|Object} elem An element or a document\n * @returns {Boolean} True iff elem is a non-HTML XML node\n */\nisXML = Sizzle.isXML = function( elem ) {\n\tvar namespace = elem.namespaceURI,\n\t\tdocElem = ( elem.ownerDocument || elem ).documentElement;\n\n\t// Support: IE <=8\n\t// Assume HTML when documentElement doesn't yet exist, such as inside loading iframes\n\t// https://bugs.jquery.com/ticket/4833\n\treturn !rhtml.test( namespace || docElem && docElem.nodeName || \"HTML\" );\n};\n\n/**\n * Sets document-related variables once based on the current document\n * @param {Element|Object} [doc] An element or document object to use to set the document\n * @returns {Object} Returns the current document\n */\nsetDocument = Sizzle.setDocument = function( node ) {\n\tvar hasCompare, subWindow,\n\t\tdoc = node ? node.ownerDocument || node : preferredDoc;\n\n\t// Return early if doc is invalid or already selected\n\t// Support: IE 11+, Edge 17 - 18+\n\t// IE/Edge sometimes throw a \"Permission denied\" error when strict-comparing\n\t// two documents; shallow comparisons work.\n\t// eslint-disable-next-line eqeqeq\n\tif ( doc == document || doc.nodeType !== 9 || !doc.documentElement ) {\n\t\treturn document;\n\t}\n\n\t// Update global variables\n\tdocument = doc;\n\tdocElem = document.documentElement;\n\tdocumentIsHTML = !isXML( document );\n\n\t// Support: IE 9 - 11+, Edge 12 - 18+\n\t// Accessing iframe documents after unload throws \"permission denied\" errors (jQuery #13936)\n\t// Support: IE 11+, Edge 17 - 18+\n\t// IE/Edge sometimes throw a \"Permission denied\" error when strict-comparing\n\t// two documents; shallow comparisons work.\n\t// eslint-disable-next-line eqeqeq\n\tif ( preferredDoc != document &&\n\t\t( subWindow = document.defaultView ) && subWindow.top !== subWindow ) {\n\n\t\t// Support: IE 11, Edge\n\t\tif ( subWindow.addEventListener ) {\n\t\t\tsubWindow.addEventListener( \"unload\", unloadHandler, false );\n\n\t\t// Support: IE 9 - 10 only\n\t\t} else if ( subWindow.attachEvent ) {\n\t\t\tsubWindow.attachEvent( \"onunload\", unloadHandler );\n\t\t}\n\t}\n\n\t// Support: IE 8 - 11+, Edge 12 - 18+, Chrome <=16 - 25 only, Firefox <=3.6 - 31 only,\n\t// Safari 4 - 5 only, Opera <=11.6 - 12.x only\n\t// IE/Edge & older browsers don't support the :scope pseudo-class.\n\t// Support: Safari 6.0 only\n\t// Safari 6.0 supports :scope but it's an alias of :root there.\n\tsupport.scope = assert( function( el ) {\n\t\tdocElem.appendChild( el ).appendChild( document.createElement( \"div\" ) );\n\t\treturn typeof el.querySelectorAll !== \"undefined\" &&\n\t\t\t!el.querySelectorAll( \":scope fieldset div\" ).length;\n\t} );\n\n\t/* Attributes\n\t---------------------------------------------------------------------- */\n\n\t// Support: IE<8\n\t// Verify that getAttribute really returns attributes and not properties\n\t// (excepting IE8 booleans)\n\tsupport.attributes = assert( function( el ) {\n\t\tel.className = \"i\";\n\t\treturn !el.getAttribute( \"className\" );\n\t} );\n\n\t/* getElement(s)By*\n\t---------------------------------------------------------------------- */\n\n\t// Check if getElementsByTagName(\"*\") returns only elements\n\tsupport.getElementsByTagName = assert( function( el ) {\n\t\tel.appendChild( document.createComment( \"\" ) );\n\t\treturn !el.getElementsByTagName( \"*\" ).length;\n\t} );\n\n\t// Support: IE<9\n\tsupport.getElementsByClassName = rnative.test( document.getElementsByClassName );\n\n\t// Support: IE<10\n\t// Check if getElementById returns elements by name\n\t// The broken getElementById methods don't pick up programmatically-set names,\n\t// so use a roundabout getElementsByName test\n\tsupport.getById = assert( function( el ) {\n\t\tdocElem.appendChild( el ).id = expando;\n\t\treturn !document.getElementsByName || !document.getElementsByName( expando ).length;\n\t} );\n\n\t// ID filter and find\n\tif ( support.getById ) {\n\t\tExpr.filter[ \"ID\" ] = function( id ) {\n\t\t\tvar attrId = id.replace( runescape, funescape );\n\t\t\treturn function( elem ) {\n\t\t\t\treturn elem.getAttribute( \"id\" ) === attrId;\n\t\t\t};\n\t\t};\n\t\tExpr.find[ \"ID\" ] = function( id, context ) {\n\t\t\tif ( typeof context.getElementById !== \"undefined\" && documentIsHTML ) {\n\t\t\t\tvar elem = context.getElementById( id );\n\t\t\t\treturn elem ? [ elem ] : [];\n\t\t\t}\n\t\t};\n\t} else {\n\t\tExpr.filter[ \"ID\" ] = function( id ) {\n\t\t\tvar attrId = id.replace( runescape, funescape );\n\t\t\treturn function( elem ) {\n\t\t\t\tvar node = typeof elem.getAttributeNode !== \"undefined\" &&\n\t\t\t\t\telem.getAttributeNode( \"id\" );\n\t\t\t\treturn node && node.value === attrId;\n\t\t\t};\n\t\t};\n\n\t\t// Support: IE 6 - 7 only\n\t\t// getElementById is not reliable as a find shortcut\n\t\tExpr.find[ \"ID\" ] = function( id, context ) {\n\t\t\tif ( typeof context.getElementById !== \"undefined\" && documentIsHTML ) {\n\t\t\t\tvar node, i, elems,\n\t\t\t\t\telem = context.getElementById( id );\n\n\t\t\t\tif ( elem ) {\n\n\t\t\t\t\t// Verify the id attribute\n\t\t\t\t\tnode = elem.getAttributeNode( \"id\" );\n\t\t\t\t\tif ( node && node.value === id ) {\n\t\t\t\t\t\treturn [ elem ];\n\t\t\t\t\t}\n\n\t\t\t\t\t// Fall back on getElementsByName\n\t\t\t\t\telems = context.getElementsByName( id );\n\t\t\t\t\ti = 0;\n\t\t\t\t\twhile ( ( elem = elems[ i++ ] ) ) {\n\t\t\t\t\t\tnode = elem.getAttributeNode( \"id\" );\n\t\t\t\t\t\tif ( node && node.value === id ) {\n\t\t\t\t\t\t\treturn [ elem ];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\treturn [];\n\t\t\t}\n\t\t};\n\t}\n\n\t// Tag\n\tExpr.find[ \"TAG\" ] = support.getElementsByTagName ?\n\t\tfunction( tag, context ) {\n\t\t\tif ( typeof context.getElementsByTagName !== \"undefined\" ) {\n\t\t\t\treturn context.getElementsByTagName( tag );\n\n\t\t\t// DocumentFragment nodes don't have gEBTN\n\t\t\t} else if ( support.qsa ) {\n\t\t\t\treturn context.querySelectorAll( tag );\n\t\t\t}\n\t\t} :\n\n\t\tfunction( tag, context ) {\n\t\t\tvar elem,\n\t\t\t\ttmp = [],\n\t\t\t\ti = 0,\n\n\t\t\t\t// By happy coincidence, a (broken) gEBTN appears on DocumentFragment nodes too\n\t\t\t\tresults = context.getElementsByTagName( tag );\n\n\t\t\t// Filter out possible comments\n\t\t\tif ( tag === \"*\" ) {\n\t\t\t\twhile ( ( elem = results[ i++ ] ) ) {\n\t\t\t\t\tif ( elem.nodeType === 1 ) {\n\t\t\t\t\t\ttmp.push( elem );\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\treturn tmp;\n\t\t\t}\n\t\t\treturn results;\n\t\t};\n\n\t// Class\n\tExpr.find[ \"CLASS\" ] = support.getElementsByClassName && function( className, context ) {\n\t\tif ( typeof context.getElementsByClassName !== \"undefined\" && documentIsHTML ) {\n\t\t\treturn context.getElementsByClassName( className );\n\t\t}\n\t};\n\n\t/* QSA/matchesSelector\n\t---------------------------------------------------------------------- */\n\n\t// QSA and matchesSelector support\n\n\t// matchesSelector(:active) reports false when true (IE9/Opera 11.5)\n\trbuggyMatches = [];\n\n\t// qSa(:focus) reports false when true (Chrome 21)\n\t// We allow this because of a bug in IE8/9 that throws an error\n\t// whenever `document.activeElement` is accessed on an iframe\n\t// So, we allow :focus to pass through QSA all the time to avoid the IE error\n\t// See https://bugs.jquery.com/ticket/13378\n\trbuggyQSA = [];\n\n\tif ( ( support.qsa = rnative.test( document.querySelectorAll ) ) ) {\n\n\t\t// Build QSA regex\n\t\t// Regex strategy adopted from Diego Perini\n\t\tassert( function( el ) {\n\n\t\t\tvar input;\n\n\t\t\t// Select is set to empty string on purpose\n\t\t\t// This is to test IE's treatment of not explicitly\n\t\t\t// setting a boolean content attribute,\n\t\t\t// since its presence should be enough\n\t\t\t// https://bugs.jquery.com/ticket/12359\n\t\t\tdocElem.appendChild( el ).innerHTML = \" \" +\n\t\t\t\t\"\" +\n\t\t\t\t\" \";\n\n\t\t\t// Support: IE8, Opera 11-12.16\n\t\t\t// Nothing should be selected when empty strings follow ^= or $= or *=\n\t\t\t// The test attribute must be unknown in Opera but \"safe\" for WinRT\n\t\t\t// https://msdn.microsoft.com/en-us/library/ie/hh465388.aspx#attribute_section\n\t\t\tif ( el.querySelectorAll( \"[msallowcapture^='']\" ).length ) {\n\t\t\t\trbuggyQSA.push( \"[*^$]=\" + whitespace + \"*(?:''|\\\"\\\")\" );\n\t\t\t}\n\n\t\t\t// Support: IE8\n\t\t\t// Boolean attributes and \"value\" are not treated correctly\n\t\t\tif ( !el.querySelectorAll( \"[selected]\" ).length ) {\n\t\t\t\trbuggyQSA.push( \"\\\\[\" + whitespace + \"*(?:value|\" + booleans + \")\" );\n\t\t\t}\n\n\t\t\t// Support: Chrome<29, Android<4.4, Safari<7.0+, iOS<7.0+, PhantomJS<1.9.8+\n\t\t\tif ( !el.querySelectorAll( \"[id~=\" + expando + \"-]\" ).length ) {\n\t\t\t\trbuggyQSA.push( \"~=\" );\n\t\t\t}\n\n\t\t\t// Support: IE 11+, Edge 15 - 18+\n\t\t\t// IE 11/Edge don't find elements on a `[name='']` query in some cases.\n\t\t\t// Adding a temporary attribute to the document before the selection works\n\t\t\t// around the issue.\n\t\t\t// Interestingly, IE 10 & older don't seem to have the issue.\n\t\t\tinput = document.createElement( \"input\" );\n\t\t\tinput.setAttribute( \"name\", \"\" );\n\t\t\tel.appendChild( input );\n\t\t\tif ( !el.querySelectorAll( \"[name='']\" ).length ) {\n\t\t\t\trbuggyQSA.push( \"\\\\[\" + whitespace + \"*name\" + whitespace + \"*=\" +\n\t\t\t\t\twhitespace + \"*(?:''|\\\"\\\")\" );\n\t\t\t}\n\n\t\t\t// Webkit/Opera - :checked should return selected option elements\n\t\t\t// http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked\n\t\t\t// IE8 throws error here and will not see later tests\n\t\t\tif ( !el.querySelectorAll( \":checked\" ).length ) {\n\t\t\t\trbuggyQSA.push( \":checked\" );\n\t\t\t}\n\n\t\t\t// Support: Safari 8+, iOS 8+\n\t\t\t// https://bugs.webkit.org/show_bug.cgi?id=136851\n\t\t\t// In-page `selector#id sibling-combinator selector` fails\n\t\t\tif ( !el.querySelectorAll( \"a#\" + expando + \"+*\" ).length ) {\n\t\t\t\trbuggyQSA.push( \".#.+[+~]\" );\n\t\t\t}\n\n\t\t\t// Support: Firefox <=3.6 - 5 only\n\t\t\t// Old Firefox doesn't throw on a badly-escaped identifier.\n\t\t\tel.querySelectorAll( \"\\\\\\f\" );\n\t\t\trbuggyQSA.push( \"[\\\\r\\\\n\\\\f]\" );\n\t\t} );\n\n\t\tassert( function( el ) {\n\t\t\tel.innerHTML = \" \" +\n\t\t\t\t\" \";\n\n\t\t\t// Support: Windows 8 Native Apps\n\t\t\t// The type and name attributes are restricted during .innerHTML assignment\n\t\t\tvar input = document.createElement( \"input\" );\n\t\t\tinput.setAttribute( \"type\", \"hidden\" );\n\t\t\tel.appendChild( input ).setAttribute( \"name\", \"D\" );\n\n\t\t\t// Support: IE8\n\t\t\t// Enforce case-sensitivity of name attribute\n\t\t\tif ( el.querySelectorAll( \"[name=d]\" ).length ) {\n\t\t\t\trbuggyQSA.push( \"name\" + whitespace + \"*[*^$|!~]?=\" );\n\t\t\t}\n\n\t\t\t// FF 3.5 - :enabled/:disabled and hidden elements (hidden elements are still enabled)\n\t\t\t// IE8 throws error here and will not see later tests\n\t\t\tif ( el.querySelectorAll( \":enabled\" ).length !== 2 ) {\n\t\t\t\trbuggyQSA.push( \":enabled\", \":disabled\" );\n\t\t\t}\n\n\t\t\t// Support: IE9-11+\n\t\t\t// IE's :disabled selector does not pick up the children of disabled fieldsets\n\t\t\tdocElem.appendChild( el ).disabled = true;\n\t\t\tif ( el.querySelectorAll( \":disabled\" ).length !== 2 ) {\n\t\t\t\trbuggyQSA.push( \":enabled\", \":disabled\" );\n\t\t\t}\n\n\t\t\t// Support: Opera 10 - 11 only\n\t\t\t// Opera 10-11 does not throw on post-comma invalid pseudos\n\t\t\tel.querySelectorAll( \"*,:x\" );\n\t\t\trbuggyQSA.push( \",.*:\" );\n\t\t} );\n\t}\n\n\tif ( ( support.matchesSelector = rnative.test( ( matches = docElem.matches ||\n\t\tdocElem.webkitMatchesSelector ||\n\t\tdocElem.mozMatchesSelector ||\n\t\tdocElem.oMatchesSelector ||\n\t\tdocElem.msMatchesSelector ) ) ) ) {\n\n\t\tassert( function( el ) {\n\n\t\t\t// Check to see if it's possible to do matchesSelector\n\t\t\t// on a disconnected node (IE 9)\n\t\t\tsupport.disconnectedMatch = matches.call( el, \"*\" );\n\n\t\t\t// This should fail with an exception\n\t\t\t// Gecko does not error, returns false instead\n\t\t\tmatches.call( el, \"[s!='']:x\" );\n\t\t\trbuggyMatches.push( \"!=\", pseudos );\n\t\t} );\n\t}\n\n\trbuggyQSA = rbuggyQSA.length && new RegExp( rbuggyQSA.join( \"|\" ) );\n\trbuggyMatches = rbuggyMatches.length && new RegExp( rbuggyMatches.join( \"|\" ) );\n\n\t/* Contains\n\t---------------------------------------------------------------------- */\n\thasCompare = rnative.test( docElem.compareDocumentPosition );\n\n\t// Element contains another\n\t// Purposefully self-exclusive\n\t// As in, an element does not contain itself\n\tcontains = hasCompare || rnative.test( docElem.contains ) ?\n\t\tfunction( a, b ) {\n\t\t\tvar adown = a.nodeType === 9 ? a.documentElement : a,\n\t\t\t\tbup = b && b.parentNode;\n\t\t\treturn a === bup || !!( bup && bup.nodeType === 1 && (\n\t\t\t\tadown.contains ?\n\t\t\t\t\tadown.contains( bup ) :\n\t\t\t\t\ta.compareDocumentPosition && a.compareDocumentPosition( bup ) & 16\n\t\t\t) );\n\t\t} :\n\t\tfunction( a, b ) {\n\t\t\tif ( b ) {\n\t\t\t\twhile ( ( b = b.parentNode ) ) {\n\t\t\t\t\tif ( b === a ) {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn false;\n\t\t};\n\n\t/* Sorting\n\t---------------------------------------------------------------------- */\n\n\t// Document order sorting\n\tsortOrder = hasCompare ?\n\tfunction( a, b ) {\n\n\t\t// Flag for duplicate removal\n\t\tif ( a === b ) {\n\t\t\thasDuplicate = true;\n\t\t\treturn 0;\n\t\t}\n\n\t\t// Sort on method existence if only one input has compareDocumentPosition\n\t\tvar compare = !a.compareDocumentPosition - !b.compareDocumentPosition;\n\t\tif ( compare ) {\n\t\t\treturn compare;\n\t\t}\n\n\t\t// Calculate position if both inputs belong to the same document\n\t\t// Support: IE 11+, Edge 17 - 18+\n\t\t// IE/Edge sometimes throw a \"Permission denied\" error when strict-comparing\n\t\t// two documents; shallow comparisons work.\n\t\t// eslint-disable-next-line eqeqeq\n\t\tcompare = ( a.ownerDocument || a ) == ( b.ownerDocument || b ) ?\n\t\t\ta.compareDocumentPosition( b ) :\n\n\t\t\t// Otherwise we know they are disconnected\n\t\t\t1;\n\n\t\t// Disconnected nodes\n\t\tif ( compare & 1 ||\n\t\t\t( !support.sortDetached && b.compareDocumentPosition( a ) === compare ) ) {\n\n\t\t\t// Choose the first element that is related to our preferred document\n\t\t\t// Support: IE 11+, Edge 17 - 18+\n\t\t\t// IE/Edge sometimes throw a \"Permission denied\" error when strict-comparing\n\t\t\t// two documents; shallow comparisons work.\n\t\t\t// eslint-disable-next-line eqeqeq\n\t\t\tif ( a == document || a.ownerDocument == preferredDoc &&\n\t\t\t\tcontains( preferredDoc, a ) ) {\n\t\t\t\treturn -1;\n\t\t\t}\n\n\t\t\t// Support: IE 11+, Edge 17 - 18+\n\t\t\t// IE/Edge sometimes throw a \"Permission denied\" error when strict-comparing\n\t\t\t// two documents; shallow comparisons work.\n\t\t\t// eslint-disable-next-line eqeqeq\n\t\t\tif ( b == document || b.ownerDocument == preferredDoc &&\n\t\t\t\tcontains( preferredDoc, b ) ) {\n\t\t\t\treturn 1;\n\t\t\t}\n\n\t\t\t// Maintain original order\n\t\t\treturn sortInput ?\n\t\t\t\t( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) :\n\t\t\t\t0;\n\t\t}\n\n\t\treturn compare & 4 ? -1 : 1;\n\t} :\n\tfunction( a, b ) {\n\n\t\t// Exit early if the nodes are identical\n\t\tif ( a === b ) {\n\t\t\thasDuplicate = true;\n\t\t\treturn 0;\n\t\t}\n\n\t\tvar cur,\n\t\t\ti = 0,\n\t\t\taup = a.parentNode,\n\t\t\tbup = b.parentNode,\n\t\t\tap = [ a ],\n\t\t\tbp = [ b ];\n\n\t\t// Parentless nodes are either documents or disconnected\n\t\tif ( !aup || !bup ) {\n\n\t\t\t// Support: IE 11+, Edge 17 - 18+\n\t\t\t// IE/Edge sometimes throw a \"Permission denied\" error when strict-comparing\n\t\t\t// two documents; shallow comparisons work.\n\t\t\t/* eslint-disable eqeqeq */\n\t\t\treturn a == document ? -1 :\n\t\t\t\tb == document ? 1 :\n\t\t\t\t/* eslint-enable eqeqeq */\n\t\t\t\taup ? -1 :\n\t\t\t\tbup ? 1 :\n\t\t\t\tsortInput ?\n\t\t\t\t( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) :\n\t\t\t\t0;\n\n\t\t// If the nodes are siblings, we can do a quick check\n\t\t} else if ( aup === bup ) {\n\t\t\treturn siblingCheck( a, b );\n\t\t}\n\n\t\t// Otherwise we need full lists of their ancestors for comparison\n\t\tcur = a;\n\t\twhile ( ( cur = cur.parentNode ) ) {\n\t\t\tap.unshift( cur );\n\t\t}\n\t\tcur = b;\n\t\twhile ( ( cur = cur.parentNode ) ) {\n\t\t\tbp.unshift( cur );\n\t\t}\n\n\t\t// Walk down the tree looking for a discrepancy\n\t\twhile ( ap[ i ] === bp[ i ] ) {\n\t\t\ti++;\n\t\t}\n\n\t\treturn i ?\n\n\t\t\t// Do a sibling check if the nodes have a common ancestor\n\t\t\tsiblingCheck( ap[ i ], bp[ i ] ) :\n\n\t\t\t// Otherwise nodes in our document sort first\n\t\t\t// Support: IE 11+, Edge 17 - 18+\n\t\t\t// IE/Edge sometimes throw a \"Permission denied\" error when strict-comparing\n\t\t\t// two documents; shallow comparisons work.\n\t\t\t/* eslint-disable eqeqeq */\n\t\t\tap[ i ] == preferredDoc ? -1 :\n\t\t\tbp[ i ] == preferredDoc ? 1 :\n\t\t\t/* eslint-enable eqeqeq */\n\t\t\t0;\n\t};\n\n\treturn document;\n};\n\nSizzle.matches = function( expr, elements ) {\n\treturn Sizzle( expr, null, null, elements );\n};\n\nSizzle.matchesSelector = function( elem, expr ) {\n\tsetDocument( elem );\n\n\tif ( support.matchesSelector && documentIsHTML &&\n\t\t!nonnativeSelectorCache[ expr + \" \" ] &&\n\t\t( !rbuggyMatches || !rbuggyMatches.test( expr ) ) &&\n\t\t( !rbuggyQSA || !rbuggyQSA.test( expr ) ) ) {\n\n\t\ttry {\n\t\t\tvar ret = matches.call( elem, expr );\n\n\t\t\t// IE 9's matchesSelector returns false on disconnected nodes\n\t\t\tif ( ret || support.disconnectedMatch ||\n\n\t\t\t\t// As well, disconnected nodes are said to be in a document\n\t\t\t\t// fragment in IE 9\n\t\t\t\telem.document && elem.document.nodeType !== 11 ) {\n\t\t\t\treturn ret;\n\t\t\t}\n\t\t} catch ( e ) {\n\t\t\tnonnativeSelectorCache( expr, true );\n\t\t}\n\t}\n\n\treturn Sizzle( expr, document, null, [ elem ] ).length > 0;\n};\n\nSizzle.contains = function( context, elem ) {\n\n\t// Set document vars if needed\n\t// Support: IE 11+, Edge 17 - 18+\n\t// IE/Edge sometimes throw a \"Permission denied\" error when strict-comparing\n\t// two documents; shallow comparisons work.\n\t// eslint-disable-next-line eqeqeq\n\tif ( ( context.ownerDocument || context ) != document ) {\n\t\tsetDocument( context );\n\t}\n\treturn contains( context, elem );\n};\n\nSizzle.attr = function( elem, name ) {\n\n\t// Set document vars if needed\n\t// Support: IE 11+, Edge 17 - 18+\n\t// IE/Edge sometimes throw a \"Permission denied\" error when strict-comparing\n\t// two documents; shallow comparisons work.\n\t// eslint-disable-next-line eqeqeq\n\tif ( ( elem.ownerDocument || elem ) != document ) {\n\t\tsetDocument( elem );\n\t}\n\n\tvar fn = Expr.attrHandle[ name.toLowerCase() ],\n\n\t\t// Don't get fooled by Object.prototype properties (jQuery #13807)\n\t\tval = fn && hasOwn.call( Expr.attrHandle, name.toLowerCase() ) ?\n\t\t\tfn( elem, name, !documentIsHTML ) :\n\t\t\tundefined;\n\n\treturn val !== undefined ?\n\t\tval :\n\t\tsupport.attributes || !documentIsHTML ?\n\t\t\telem.getAttribute( name ) :\n\t\t\t( val = elem.getAttributeNode( name ) ) && val.specified ?\n\t\t\t\tval.value :\n\t\t\t\tnull;\n};\n\nSizzle.escape = function( sel ) {\n\treturn ( sel + \"\" ).replace( rcssescape, fcssescape );\n};\n\nSizzle.error = function( msg ) {\n\tthrow new Error( \"Syntax error, unrecognized expression: \" + msg );\n};\n\n/**\n * Document sorting and removing duplicates\n * @param {ArrayLike} results\n */\nSizzle.uniqueSort = function( results ) {\n\tvar elem,\n\t\tduplicates = [],\n\t\tj = 0,\n\t\ti = 0;\n\n\t// Unless we *know* we can detect duplicates, assume their presence\n\thasDuplicate = !support.detectDuplicates;\n\tsortInput = !support.sortStable && results.slice( 0 );\n\tresults.sort( sortOrder );\n\n\tif ( hasDuplicate ) {\n\t\twhile ( ( elem = results[ i++ ] ) ) {\n\t\t\tif ( elem === results[ i ] ) {\n\t\t\t\tj = duplicates.push( i );\n\t\t\t}\n\t\t}\n\t\twhile ( j-- ) {\n\t\t\tresults.splice( duplicates[ j ], 1 );\n\t\t}\n\t}\n\n\t// Clear input after sorting to release objects\n\t// See https://github.com/jquery/sizzle/pull/225\n\tsortInput = null;\n\n\treturn results;\n};\n\n/**\n * Utility function for retrieving the text value of an array of DOM nodes\n * @param {Array|Element} elem\n */\ngetText = Sizzle.getText = function( elem ) {\n\tvar node,\n\t\tret = \"\",\n\t\ti = 0,\n\t\tnodeType = elem.nodeType;\n\n\tif ( !nodeType ) {\n\n\t\t// If no nodeType, this is expected to be an array\n\t\twhile ( ( node = elem[ i++ ] ) ) {\n\n\t\t\t// Do not traverse comment nodes\n\t\t\tret += getText( node );\n\t\t}\n\t} else if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) {\n\n\t\t// Use textContent for elements\n\t\t// innerText usage removed for consistency of new lines (jQuery #11153)\n\t\tif ( typeof elem.textContent === \"string\" ) {\n\t\t\treturn elem.textContent;\n\t\t} else {\n\n\t\t\t// Traverse its children\n\t\t\tfor ( elem = elem.firstChild; elem; elem = elem.nextSibling ) {\n\t\t\t\tret += getText( elem );\n\t\t\t}\n\t\t}\n\t} else if ( nodeType === 3 || nodeType === 4 ) {\n\t\treturn elem.nodeValue;\n\t}\n\n\t// Do not include comment or processing instruction nodes\n\n\treturn ret;\n};\n\nExpr = Sizzle.selectors = {\n\n\t// Can be adjusted by the user\n\tcacheLength: 50,\n\n\tcreatePseudo: markFunction,\n\n\tmatch: matchExpr,\n\n\tattrHandle: {},\n\n\tfind: {},\n\n\trelative: {\n\t\t\">\": { dir: \"parentNode\", first: true },\n\t\t\" \": { dir: \"parentNode\" },\n\t\t\"+\": { dir: \"previousSibling\", first: true },\n\t\t\"~\": { dir: \"previousSibling\" }\n\t},\n\n\tpreFilter: {\n\t\t\"ATTR\": function( match ) {\n\t\t\tmatch[ 1 ] = match[ 1 ].replace( runescape, funescape );\n\n\t\t\t// Move the given value to match[3] whether quoted or unquoted\n\t\t\tmatch[ 3 ] = ( match[ 3 ] || match[ 4 ] ||\n\t\t\t\tmatch[ 5 ] || \"\" ).replace( runescape, funescape );\n\n\t\t\tif ( match[ 2 ] === \"~=\" ) {\n\t\t\t\tmatch[ 3 ] = \" \" + match[ 3 ] + \" \";\n\t\t\t}\n\n\t\t\treturn match.slice( 0, 4 );\n\t\t},\n\n\t\t\"CHILD\": function( match ) {\n\n\t\t\t/* matches from matchExpr[\"CHILD\"]\n\t\t\t\t1 type (only|nth|...)\n\t\t\t\t2 what (child|of-type)\n\t\t\t\t3 argument (even|odd|\\d*|\\d*n([+-]\\d+)?|...)\n\t\t\t\t4 xn-component of xn+y argument ([+-]?\\d*n|)\n\t\t\t\t5 sign of xn-component\n\t\t\t\t6 x of xn-component\n\t\t\t\t7 sign of y-component\n\t\t\t\t8 y of y-component\n\t\t\t*/\n\t\t\tmatch[ 1 ] = match[ 1 ].toLowerCase();\n\n\t\t\tif ( match[ 1 ].slice( 0, 3 ) === \"nth\" ) {\n\n\t\t\t\t// nth-* requires argument\n\t\t\t\tif ( !match[ 3 ] ) {\n\t\t\t\t\tSizzle.error( match[ 0 ] );\n\t\t\t\t}\n\n\t\t\t\t// numeric x and y parameters for Expr.filter.CHILD\n\t\t\t\t// remember that false/true cast respectively to 0/1\n\t\t\t\tmatch[ 4 ] = +( match[ 4 ] ?\n\t\t\t\t\tmatch[ 5 ] + ( match[ 6 ] || 1 ) :\n\t\t\t\t\t2 * ( match[ 3 ] === \"even\" || match[ 3 ] === \"odd\" ) );\n\t\t\t\tmatch[ 5 ] = +( ( match[ 7 ] + match[ 8 ] ) || match[ 3 ] === \"odd\" );\n\n\t\t\t\t// other types prohibit arguments\n\t\t\t} else if ( match[ 3 ] ) {\n\t\t\t\tSizzle.error( match[ 0 ] );\n\t\t\t}\n\n\t\t\treturn match;\n\t\t},\n\n\t\t\"PSEUDO\": function( match ) {\n\t\t\tvar excess,\n\t\t\t\tunquoted = !match[ 6 ] && match[ 2 ];\n\n\t\t\tif ( matchExpr[ \"CHILD\" ].test( match[ 0 ] ) ) {\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\t// Accept quoted arguments as-is\n\t\t\tif ( match[ 3 ] ) {\n\t\t\t\tmatch[ 2 ] = match[ 4 ] || match[ 5 ] || \"\";\n\n\t\t\t// Strip excess characters from unquoted arguments\n\t\t\t} else if ( unquoted && rpseudo.test( unquoted ) &&\n\n\t\t\t\t// Get excess from tokenize (recursively)\n\t\t\t\t( excess = tokenize( unquoted, true ) ) &&\n\n\t\t\t\t// advance to the next closing parenthesis\n\t\t\t\t( excess = unquoted.indexOf( \")\", unquoted.length - excess ) - unquoted.length ) ) {\n\n\t\t\t\t// excess is a negative index\n\t\t\t\tmatch[ 0 ] = match[ 0 ].slice( 0, excess );\n\t\t\t\tmatch[ 2 ] = unquoted.slice( 0, excess );\n\t\t\t}\n\n\t\t\t// Return only captures needed by the pseudo filter method (type and argument)\n\t\t\treturn match.slice( 0, 3 );\n\t\t}\n\t},\n\n\tfilter: {\n\n\t\t\"TAG\": function( nodeNameSelector ) {\n\t\t\tvar nodeName = nodeNameSelector.replace( runescape, funescape ).toLowerCase();\n\t\t\treturn nodeNameSelector === \"*\" ?\n\t\t\t\tfunction() {\n\t\t\t\t\treturn true;\n\t\t\t\t} :\n\t\t\t\tfunction( elem ) {\n\t\t\t\t\treturn elem.nodeName && elem.nodeName.toLowerCase() === nodeName;\n\t\t\t\t};\n\t\t},\n\n\t\t\"CLASS\": function( className ) {\n\t\t\tvar pattern = classCache[ className + \" \" ];\n\n\t\t\treturn pattern ||\n\t\t\t\t( pattern = new RegExp( \"(^|\" + whitespace +\n\t\t\t\t\t\")\" + className + \"(\" + whitespace + \"|$)\" ) ) && classCache(\n\t\t\t\t\t\tclassName, function( elem ) {\n\t\t\t\t\t\t\treturn pattern.test(\n\t\t\t\t\t\t\t\ttypeof elem.className === \"string\" && elem.className ||\n\t\t\t\t\t\t\t\ttypeof elem.getAttribute !== \"undefined\" &&\n\t\t\t\t\t\t\t\t\telem.getAttribute( \"class\" ) ||\n\t\t\t\t\t\t\t\t\"\"\n\t\t\t\t\t\t\t);\n\t\t\t\t} );\n\t\t},\n\n\t\t\"ATTR\": function( name, operator, check ) {\n\t\t\treturn function( elem ) {\n\t\t\t\tvar result = Sizzle.attr( elem, name );\n\n\t\t\t\tif ( result == null ) {\n\t\t\t\t\treturn operator === \"!=\";\n\t\t\t\t}\n\t\t\t\tif ( !operator ) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\n\t\t\t\tresult += \"\";\n\n\t\t\t\t/* eslint-disable max-len */\n\n\t\t\t\treturn operator === \"=\" ? result === check :\n\t\t\t\t\toperator === \"!=\" ? result !== check :\n\t\t\t\t\toperator === \"^=\" ? check && result.indexOf( check ) === 0 :\n\t\t\t\t\toperator === \"*=\" ? check && result.indexOf( check ) > -1 :\n\t\t\t\t\toperator === \"$=\" ? check && result.slice( -check.length ) === check :\n\t\t\t\t\toperator === \"~=\" ? ( \" \" + result.replace( rwhitespace, \" \" ) + \" \" ).indexOf( check ) > -1 :\n\t\t\t\t\toperator === \"|=\" ? result === check || result.slice( 0, check.length + 1 ) === check + \"-\" :\n\t\t\t\t\tfalse;\n\t\t\t\t/* eslint-enable max-len */\n\n\t\t\t};\n\t\t},\n\n\t\t\"CHILD\": function( type, what, _argument, first, last ) {\n\t\t\tvar simple = type.slice( 0, 3 ) !== \"nth\",\n\t\t\t\tforward = type.slice( -4 ) !== \"last\",\n\t\t\t\tofType = what === \"of-type\";\n\n\t\t\treturn first === 1 && last === 0 ?\n\n\t\t\t\t// Shortcut for :nth-*(n)\n\t\t\t\tfunction( elem ) {\n\t\t\t\t\treturn !!elem.parentNode;\n\t\t\t\t} :\n\n\t\t\t\tfunction( elem, _context, xml ) {\n\t\t\t\t\tvar cache, uniqueCache, outerCache, node, nodeIndex, start,\n\t\t\t\t\t\tdir = simple !== forward ? \"nextSibling\" : \"previousSibling\",\n\t\t\t\t\t\tparent = elem.parentNode,\n\t\t\t\t\t\tname = ofType && elem.nodeName.toLowerCase(),\n\t\t\t\t\t\tuseCache = !xml && !ofType,\n\t\t\t\t\t\tdiff = false;\n\n\t\t\t\t\tif ( parent ) {\n\n\t\t\t\t\t\t// :(first|last|only)-(child|of-type)\n\t\t\t\t\t\tif ( simple ) {\n\t\t\t\t\t\t\twhile ( dir ) {\n\t\t\t\t\t\t\t\tnode = elem;\n\t\t\t\t\t\t\t\twhile ( ( node = node[ dir ] ) ) {\n\t\t\t\t\t\t\t\t\tif ( ofType ?\n\t\t\t\t\t\t\t\t\t\tnode.nodeName.toLowerCase() === name :\n\t\t\t\t\t\t\t\t\t\tnode.nodeType === 1 ) {\n\n\t\t\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t// Reverse direction for :only-* (if we haven't yet done so)\n\t\t\t\t\t\t\t\tstart = dir = type === \"only\" && !start && \"nextSibling\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tstart = [ forward ? parent.firstChild : parent.lastChild ];\n\n\t\t\t\t\t\t// non-xml :nth-child(...) stores cache data on `parent`\n\t\t\t\t\t\tif ( forward && useCache ) {\n\n\t\t\t\t\t\t\t// Seek `elem` from a previously-cached index\n\n\t\t\t\t\t\t\t// ...in a gzip-friendly way\n\t\t\t\t\t\t\tnode = parent;\n\t\t\t\t\t\t\touterCache = node[ expando ] || ( node[ expando ] = {} );\n\n\t\t\t\t\t\t\t// Support: IE <9 only\n\t\t\t\t\t\t\t// Defend against cloned attroperties (jQuery gh-1709)\n\t\t\t\t\t\t\tuniqueCache = outerCache[ node.uniqueID ] ||\n\t\t\t\t\t\t\t\t( outerCache[ node.uniqueID ] = {} );\n\n\t\t\t\t\t\t\tcache = uniqueCache[ type ] || [];\n\t\t\t\t\t\t\tnodeIndex = cache[ 0 ] === dirruns && cache[ 1 ];\n\t\t\t\t\t\t\tdiff = nodeIndex && cache[ 2 ];\n\t\t\t\t\t\t\tnode = nodeIndex && parent.childNodes[ nodeIndex ];\n\n\t\t\t\t\t\t\twhile ( ( node = ++nodeIndex && node && node[ dir ] ||\n\n\t\t\t\t\t\t\t\t// Fallback to seeking `elem` from the start\n\t\t\t\t\t\t\t\t( diff = nodeIndex = 0 ) || start.pop() ) ) {\n\n\t\t\t\t\t\t\t\t// When found, cache indexes on `parent` and break\n\t\t\t\t\t\t\t\tif ( node.nodeType === 1 && ++diff && node === elem ) {\n\t\t\t\t\t\t\t\t\tuniqueCache[ type ] = [ dirruns, nodeIndex, diff ];\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t// Use previously-cached element index if available\n\t\t\t\t\t\t\tif ( useCache ) {\n\n\t\t\t\t\t\t\t\t// ...in a gzip-friendly way\n\t\t\t\t\t\t\t\tnode = elem;\n\t\t\t\t\t\t\t\touterCache = node[ expando ] || ( node[ expando ] = {} );\n\n\t\t\t\t\t\t\t\t// Support: IE <9 only\n\t\t\t\t\t\t\t\t// Defend against cloned attroperties (jQuery gh-1709)\n\t\t\t\t\t\t\t\tuniqueCache = outerCache[ node.uniqueID ] ||\n\t\t\t\t\t\t\t\t\t( outerCache[ node.uniqueID ] = {} );\n\n\t\t\t\t\t\t\t\tcache = uniqueCache[ type ] || [];\n\t\t\t\t\t\t\t\tnodeIndex = cache[ 0 ] === dirruns && cache[ 1 ];\n\t\t\t\t\t\t\t\tdiff = nodeIndex;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t// xml :nth-child(...)\n\t\t\t\t\t\t\t// or :nth-last-child(...) or :nth(-last)?-of-type(...)\n\t\t\t\t\t\t\tif ( diff === false ) {\n\n\t\t\t\t\t\t\t\t// Use the same loop as above to seek `elem` from the start\n\t\t\t\t\t\t\t\twhile ( ( node = ++nodeIndex && node && node[ dir ] ||\n\t\t\t\t\t\t\t\t\t( diff = nodeIndex = 0 ) || start.pop() ) ) {\n\n\t\t\t\t\t\t\t\t\tif ( ( ofType ?\n\t\t\t\t\t\t\t\t\t\tnode.nodeName.toLowerCase() === name :\n\t\t\t\t\t\t\t\t\t\tnode.nodeType === 1 ) &&\n\t\t\t\t\t\t\t\t\t\t++diff ) {\n\n\t\t\t\t\t\t\t\t\t\t// Cache the index of each encountered element\n\t\t\t\t\t\t\t\t\t\tif ( useCache ) {\n\t\t\t\t\t\t\t\t\t\t\touterCache = node[ expando ] ||\n\t\t\t\t\t\t\t\t\t\t\t\t( node[ expando ] = {} );\n\n\t\t\t\t\t\t\t\t\t\t\t// Support: IE <9 only\n\t\t\t\t\t\t\t\t\t\t\t// Defend against cloned attroperties (jQuery gh-1709)\n\t\t\t\t\t\t\t\t\t\t\tuniqueCache = outerCache[ node.uniqueID ] ||\n\t\t\t\t\t\t\t\t\t\t\t\t( outerCache[ node.uniqueID ] = {} );\n\n\t\t\t\t\t\t\t\t\t\t\tuniqueCache[ type ] = [ dirruns, diff ];\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\tif ( node === elem ) {\n\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Incorporate the offset, then check against cycle size\n\t\t\t\t\t\tdiff -= last;\n\t\t\t\t\t\treturn diff === first || ( diff % first === 0 && diff / first >= 0 );\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t},\n\n\t\t\"PSEUDO\": function( pseudo, argument ) {\n\n\t\t\t// pseudo-class names are case-insensitive\n\t\t\t// http://www.w3.org/TR/selectors/#pseudo-classes\n\t\t\t// Prioritize by case sensitivity in case custom pseudos are added with uppercase letters\n\t\t\t// Remember that setFilters inherits from pseudos\n\t\t\tvar args,\n\t\t\t\tfn = Expr.pseudos[ pseudo ] || Expr.setFilters[ pseudo.toLowerCase() ] ||\n\t\t\t\t\tSizzle.error( \"unsupported pseudo: \" + pseudo );\n\n\t\t\t// The user may use createPseudo to indicate that\n\t\t\t// arguments are needed to create the filter function\n\t\t\t// just as Sizzle does\n\t\t\tif ( fn[ expando ] ) {\n\t\t\t\treturn fn( argument );\n\t\t\t}\n\n\t\t\t// But maintain support for old signatures\n\t\t\tif ( fn.length > 1 ) {\n\t\t\t\targs = [ pseudo, pseudo, \"\", argument ];\n\t\t\t\treturn Expr.setFilters.hasOwnProperty( pseudo.toLowerCase() ) ?\n\t\t\t\t\tmarkFunction( function( seed, matches ) {\n\t\t\t\t\t\tvar idx,\n\t\t\t\t\t\t\tmatched = fn( seed, argument ),\n\t\t\t\t\t\t\ti = matched.length;\n\t\t\t\t\t\twhile ( i-- ) {\n\t\t\t\t\t\t\tidx = indexOf( seed, matched[ i ] );\n\t\t\t\t\t\t\tseed[ idx ] = !( matches[ idx ] = matched[ i ] );\n\t\t\t\t\t\t}\n\t\t\t\t\t} ) :\n\t\t\t\t\tfunction( elem ) {\n\t\t\t\t\t\treturn fn( elem, 0, args );\n\t\t\t\t\t};\n\t\t\t}\n\n\t\t\treturn fn;\n\t\t}\n\t},\n\n\tpseudos: {\n\n\t\t// Potentially complex pseudos\n\t\t\"not\": markFunction( function( selector ) {\n\n\t\t\t// Trim the selector passed to compile\n\t\t\t// to avoid treating leading and trailing\n\t\t\t// spaces as combinators\n\t\t\tvar input = [],\n\t\t\t\tresults = [],\n\t\t\t\tmatcher = compile( selector.replace( rtrim, \"$1\" ) );\n\n\t\t\treturn matcher[ expando ] ?\n\t\t\t\tmarkFunction( function( seed, matches, _context, xml ) {\n\t\t\t\t\tvar elem,\n\t\t\t\t\t\tunmatched = matcher( seed, null, xml, [] ),\n\t\t\t\t\t\ti = seed.length;\n\n\t\t\t\t\t// Match elements unmatched by `matcher`\n\t\t\t\t\twhile ( i-- ) {\n\t\t\t\t\t\tif ( ( elem = unmatched[ i ] ) ) {\n\t\t\t\t\t\t\tseed[ i ] = !( matches[ i ] = elem );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} ) :\n\t\t\t\tfunction( elem, _context, xml ) {\n\t\t\t\t\tinput[ 0 ] = elem;\n\t\t\t\t\tmatcher( input, null, xml, results );\n\n\t\t\t\t\t// Don't keep the element (issue #299)\n\t\t\t\t\tinput[ 0 ] = null;\n\t\t\t\t\treturn !results.pop();\n\t\t\t\t};\n\t\t} ),\n\n\t\t\"has\": markFunction( function( selector ) {\n\t\t\treturn function( elem ) {\n\t\t\t\treturn Sizzle( selector, elem ).length > 0;\n\t\t\t};\n\t\t} ),\n\n\t\t\"contains\": markFunction( function( text ) {\n\t\t\ttext = text.replace( runescape, funescape );\n\t\t\treturn function( elem ) {\n\t\t\t\treturn ( elem.textContent || getText( elem ) ).indexOf( text ) > -1;\n\t\t\t};\n\t\t} ),\n\n\t\t// \"Whether an element is represented by a :lang() selector\n\t\t// is based solely on the element's language value\n\t\t// being equal to the identifier C,\n\t\t// or beginning with the identifier C immediately followed by \"-\".\n\t\t// The matching of C against the element's language value is performed case-insensitively.\n\t\t// The identifier C does not have to be a valid language name.\"\n\t\t// http://www.w3.org/TR/selectors/#lang-pseudo\n\t\t\"lang\": markFunction( function( lang ) {\n\n\t\t\t// lang value must be a valid identifier\n\t\t\tif ( !ridentifier.test( lang || \"\" ) ) {\n\t\t\t\tSizzle.error( \"unsupported lang: \" + lang );\n\t\t\t}\n\t\t\tlang = lang.replace( runescape, funescape ).toLowerCase();\n\t\t\treturn function( elem ) {\n\t\t\t\tvar elemLang;\n\t\t\t\tdo {\n\t\t\t\t\tif ( ( elemLang = documentIsHTML ?\n\t\t\t\t\t\telem.lang :\n\t\t\t\t\t\telem.getAttribute( \"xml:lang\" ) || elem.getAttribute( \"lang\" ) ) ) {\n\n\t\t\t\t\t\telemLang = elemLang.toLowerCase();\n\t\t\t\t\t\treturn elemLang === lang || elemLang.indexOf( lang + \"-\" ) === 0;\n\t\t\t\t\t}\n\t\t\t\t} while ( ( elem = elem.parentNode ) && elem.nodeType === 1 );\n\t\t\t\treturn false;\n\t\t\t};\n\t\t} ),\n\n\t\t// Miscellaneous\n\t\t\"target\": function( elem ) {\n\t\t\tvar hash = window.location && window.location.hash;\n\t\t\treturn hash && hash.slice( 1 ) === elem.id;\n\t\t},\n\n\t\t\"root\": function( elem ) {\n\t\t\treturn elem === docElem;\n\t\t},\n\n\t\t\"focus\": function( elem ) {\n\t\t\treturn elem === document.activeElement &&\n\t\t\t\t( !document.hasFocus || document.hasFocus() ) &&\n\t\t\t\t!!( elem.type || elem.href || ~elem.tabIndex );\n\t\t},\n\n\t\t// Boolean properties\n\t\t\"enabled\": createDisabledPseudo( false ),\n\t\t\"disabled\": createDisabledPseudo( true ),\n\n\t\t\"checked\": function( elem ) {\n\n\t\t\t// In CSS3, :checked should return both checked and selected elements\n\t\t\t// http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked\n\t\t\tvar nodeName = elem.nodeName.toLowerCase();\n\t\t\treturn ( nodeName === \"input\" && !!elem.checked ) ||\n\t\t\t\t( nodeName === \"option\" && !!elem.selected );\n\t\t},\n\n\t\t\"selected\": function( elem ) {\n\n\t\t\t// Accessing this property makes selected-by-default\n\t\t\t// options in Safari work properly\n\t\t\tif ( elem.parentNode ) {\n\t\t\t\t// eslint-disable-next-line no-unused-expressions\n\t\t\t\telem.parentNode.selectedIndex;\n\t\t\t}\n\n\t\t\treturn elem.selected === true;\n\t\t},\n\n\t\t// Contents\n\t\t\"empty\": function( elem ) {\n\n\t\t\t// http://www.w3.org/TR/selectors/#empty-pseudo\n\t\t\t// :empty is negated by element (1) or content nodes (text: 3; cdata: 4; entity ref: 5),\n\t\t\t// but not by others (comment: 8; processing instruction: 7; etc.)\n\t\t\t// nodeType < 6 works because attributes (2) do not appear as children\n\t\t\tfor ( elem = elem.firstChild; elem; elem = elem.nextSibling ) {\n\t\t\t\tif ( elem.nodeType < 6 ) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn true;\n\t\t},\n\n\t\t\"parent\": function( elem ) {\n\t\t\treturn !Expr.pseudos[ \"empty\" ]( elem );\n\t\t},\n\n\t\t// Element/input types\n\t\t\"header\": function( elem ) {\n\t\t\treturn rheader.test( elem.nodeName );\n\t\t},\n\n\t\t\"input\": function( elem ) {\n\t\t\treturn rinputs.test( elem.nodeName );\n\t\t},\n\n\t\t\"button\": function( elem ) {\n\t\t\tvar name = elem.nodeName.toLowerCase();\n\t\t\treturn name === \"input\" && elem.type === \"button\" || name === \"button\";\n\t\t},\n\n\t\t\"text\": function( elem ) {\n\t\t\tvar attr;\n\t\t\treturn elem.nodeName.toLowerCase() === \"input\" &&\n\t\t\t\telem.type === \"text\" &&\n\n\t\t\t\t// Support: IE<8\n\t\t\t\t// New HTML5 attribute values (e.g., \"search\") appear with elem.type === \"text\"\n\t\t\t\t( ( attr = elem.getAttribute( \"type\" ) ) == null ||\n\t\t\t\t\tattr.toLowerCase() === \"text\" );\n\t\t},\n\n\t\t// Position-in-collection\n\t\t\"first\": createPositionalPseudo( function() {\n\t\t\treturn [ 0 ];\n\t\t} ),\n\n\t\t\"last\": createPositionalPseudo( function( _matchIndexes, length ) {\n\t\t\treturn [ length - 1 ];\n\t\t} ),\n\n\t\t\"eq\": createPositionalPseudo( function( _matchIndexes, length, argument ) {\n\t\t\treturn [ argument < 0 ? argument + length : argument ];\n\t\t} ),\n\n\t\t\"even\": createPositionalPseudo( function( matchIndexes, length ) {\n\t\t\tvar i = 0;\n\t\t\tfor ( ; i < length; i += 2 ) {\n\t\t\t\tmatchIndexes.push( i );\n\t\t\t}\n\t\t\treturn matchIndexes;\n\t\t} ),\n\n\t\t\"odd\": createPositionalPseudo( function( matchIndexes, length ) {\n\t\t\tvar i = 1;\n\t\t\tfor ( ; i < length; i += 2 ) {\n\t\t\t\tmatchIndexes.push( i );\n\t\t\t}\n\t\t\treturn matchIndexes;\n\t\t} ),\n\n\t\t\"lt\": createPositionalPseudo( function( matchIndexes, length, argument ) {\n\t\t\tvar i = argument < 0 ?\n\t\t\t\targument + length :\n\t\t\t\targument > length ?\n\t\t\t\t\tlength :\n\t\t\t\t\targument;\n\t\t\tfor ( ; --i >= 0; ) {\n\t\t\t\tmatchIndexes.push( i );\n\t\t\t}\n\t\t\treturn matchIndexes;\n\t\t} ),\n\n\t\t\"gt\": createPositionalPseudo( function( matchIndexes, length, argument ) {\n\t\t\tvar i = argument < 0 ? argument + length : argument;\n\t\t\tfor ( ; ++i < length; ) {\n\t\t\t\tmatchIndexes.push( i );\n\t\t\t}\n\t\t\treturn matchIndexes;\n\t\t} )\n\t}\n};\n\nExpr.pseudos[ \"nth\" ] = Expr.pseudos[ \"eq\" ];\n\n// Add button/input type pseudos\nfor ( i in { radio: true, checkbox: true, file: true, password: true, image: true } ) {\n\tExpr.pseudos[ i ] = createInputPseudo( i );\n}\nfor ( i in { submit: true, reset: true } ) {\n\tExpr.pseudos[ i ] = createButtonPseudo( i );\n}\n\n// Easy API for creating new setFilters\nfunction setFilters() {}\nsetFilters.prototype = Expr.filters = Expr.pseudos;\nExpr.setFilters = new setFilters();\n\ntokenize = Sizzle.tokenize = function( selector, parseOnly ) {\n\tvar matched, match, tokens, type,\n\t\tsoFar, groups, preFilters,\n\t\tcached = tokenCache[ selector + \" \" ];\n\n\tif ( cached ) {\n\t\treturn parseOnly ? 0 : cached.slice( 0 );\n\t}\n\n\tsoFar = selector;\n\tgroups = [];\n\tpreFilters = Expr.preFilter;\n\n\twhile ( soFar ) {\n\n\t\t// Comma and first run\n\t\tif ( !matched || ( match = rcomma.exec( soFar ) ) ) {\n\t\t\tif ( match ) {\n\n\t\t\t\t// Don't consume trailing commas as valid\n\t\t\t\tsoFar = soFar.slice( match[ 0 ].length ) || soFar;\n\t\t\t}\n\t\t\tgroups.push( ( tokens = [] ) );\n\t\t}\n\n\t\tmatched = false;\n\n\t\t// Combinators\n\t\tif ( ( match = rcombinators.exec( soFar ) ) ) {\n\t\t\tmatched = match.shift();\n\t\t\ttokens.push( {\n\t\t\t\tvalue: matched,\n\n\t\t\t\t// Cast descendant combinators to space\n\t\t\t\ttype: match[ 0 ].replace( rtrim, \" \" )\n\t\t\t} );\n\t\t\tsoFar = soFar.slice( matched.length );\n\t\t}\n\n\t\t// Filters\n\t\tfor ( type in Expr.filter ) {\n\t\t\tif ( ( match = matchExpr[ type ].exec( soFar ) ) && ( !preFilters[ type ] ||\n\t\t\t\t( match = preFilters[ type ]( match ) ) ) ) {\n\t\t\t\tmatched = match.shift();\n\t\t\t\ttokens.push( {\n\t\t\t\t\tvalue: matched,\n\t\t\t\t\ttype: type,\n\t\t\t\t\tmatches: match\n\t\t\t\t} );\n\t\t\t\tsoFar = soFar.slice( matched.length );\n\t\t\t}\n\t\t}\n\n\t\tif ( !matched ) {\n\t\t\tbreak;\n\t\t}\n\t}\n\n\t// Return the length of the invalid excess\n\t// if we're just parsing\n\t// Otherwise, throw an error or return tokens\n\treturn parseOnly ?\n\t\tsoFar.length :\n\t\tsoFar ?\n\t\t\tSizzle.error( selector ) :\n\n\t\t\t// Cache the tokens\n\t\t\ttokenCache( selector, groups ).slice( 0 );\n};\n\nfunction toSelector( tokens ) {\n\tvar i = 0,\n\t\tlen = tokens.length,\n\t\tselector = \"\";\n\tfor ( ; i < len; i++ ) {\n\t\tselector += tokens[ i ].value;\n\t}\n\treturn selector;\n}\n\nfunction addCombinator( matcher, combinator, base ) {\n\tvar dir = combinator.dir,\n\t\tskip = combinator.next,\n\t\tkey = skip || dir,\n\t\tcheckNonElements = base && key === \"parentNode\",\n\t\tdoneName = done++;\n\n\treturn combinator.first ?\n\n\t\t// Check against closest ancestor/preceding element\n\t\tfunction( elem, context, xml ) {\n\t\t\twhile ( ( elem = elem[ dir ] ) ) {\n\t\t\t\tif ( elem.nodeType === 1 || checkNonElements ) {\n\t\t\t\t\treturn matcher( elem, context, xml );\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn false;\n\t\t} :\n\n\t\t// Check against all ancestor/preceding elements\n\t\tfunction( elem, context, xml ) {\n\t\t\tvar oldCache, uniqueCache, outerCache,\n\t\t\t\tnewCache = [ dirruns, doneName ];\n\n\t\t\t// We can't set arbitrary data on XML nodes, so they don't benefit from combinator caching\n\t\t\tif ( xml ) {\n\t\t\t\twhile ( ( elem = elem[ dir ] ) ) {\n\t\t\t\t\tif ( elem.nodeType === 1 || checkNonElements ) {\n\t\t\t\t\t\tif ( matcher( elem, context, xml ) ) {\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\twhile ( ( elem = elem[ dir ] ) ) {\n\t\t\t\t\tif ( elem.nodeType === 1 || checkNonElements ) {\n\t\t\t\t\t\touterCache = elem[ expando ] || ( elem[ expando ] = {} );\n\n\t\t\t\t\t\t// Support: IE <9 only\n\t\t\t\t\t\t// Defend against cloned attroperties (jQuery gh-1709)\n\t\t\t\t\t\tuniqueCache = outerCache[ elem.uniqueID ] ||\n\t\t\t\t\t\t\t( outerCache[ elem.uniqueID ] = {} );\n\n\t\t\t\t\t\tif ( skip && skip === elem.nodeName.toLowerCase() ) {\n\t\t\t\t\t\t\telem = elem[ dir ] || elem;\n\t\t\t\t\t\t} else if ( ( oldCache = uniqueCache[ key ] ) &&\n\t\t\t\t\t\t\toldCache[ 0 ] === dirruns && oldCache[ 1 ] === doneName ) {\n\n\t\t\t\t\t\t\t// Assign to newCache so results back-propagate to previous elements\n\t\t\t\t\t\t\treturn ( newCache[ 2 ] = oldCache[ 2 ] );\n\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t// Reuse newcache so results back-propagate to previous elements\n\t\t\t\t\t\t\tuniqueCache[ key ] = newCache;\n\n\t\t\t\t\t\t\t// A match means we're done; a fail means we have to keep checking\n\t\t\t\t\t\t\tif ( ( newCache[ 2 ] = matcher( elem, context, xml ) ) ) {\n\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn false;\n\t\t};\n}\n\nfunction elementMatcher( matchers ) {\n\treturn matchers.length > 1 ?\n\t\tfunction( elem, context, xml ) {\n\t\t\tvar i = matchers.length;\n\t\t\twhile ( i-- ) {\n\t\t\t\tif ( !matchers[ i ]( elem, context, xml ) ) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn true;\n\t\t} :\n\t\tmatchers[ 0 ];\n}\n\nfunction multipleContexts( selector, contexts, results ) {\n\tvar i = 0,\n\t\tlen = contexts.length;\n\tfor ( ; i < len; i++ ) {\n\t\tSizzle( selector, contexts[ i ], results );\n\t}\n\treturn results;\n}\n\nfunction condense( unmatched, map, filter, context, xml ) {\n\tvar elem,\n\t\tnewUnmatched = [],\n\t\ti = 0,\n\t\tlen = unmatched.length,\n\t\tmapped = map != null;\n\n\tfor ( ; i < len; i++ ) {\n\t\tif ( ( elem = unmatched[ i ] ) ) {\n\t\t\tif ( !filter || filter( elem, context, xml ) ) {\n\t\t\t\tnewUnmatched.push( elem );\n\t\t\t\tif ( mapped ) {\n\t\t\t\t\tmap.push( i );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn newUnmatched;\n}\n\nfunction setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) {\n\tif ( postFilter && !postFilter[ expando ] ) {\n\t\tpostFilter = setMatcher( postFilter );\n\t}\n\tif ( postFinder && !postFinder[ expando ] ) {\n\t\tpostFinder = setMatcher( postFinder, postSelector );\n\t}\n\treturn markFunction( function( seed, results, context, xml ) {\n\t\tvar temp, i, elem,\n\t\t\tpreMap = [],\n\t\t\tpostMap = [],\n\t\t\tpreexisting = results.length,\n\n\t\t\t// Get initial elements from seed or context\n\t\t\telems = seed || multipleContexts(\n\t\t\t\tselector || \"*\",\n\t\t\t\tcontext.nodeType ? [ context ] : context,\n\t\t\t\t[]\n\t\t\t),\n\n\t\t\t// Prefilter to get matcher input, preserving a map for seed-results synchronization\n\t\t\tmatcherIn = preFilter && ( seed || !selector ) ?\n\t\t\t\tcondense( elems, preMap, preFilter, context, xml ) :\n\t\t\t\telems,\n\n\t\t\tmatcherOut = matcher ?\n\n\t\t\t\t// If we have a postFinder, or filtered seed, or non-seed postFilter or preexisting results,\n\t\t\t\tpostFinder || ( seed ? preFilter : preexisting || postFilter ) ?\n\n\t\t\t\t\t// ...intermediate processing is necessary\n\t\t\t\t\t[] :\n\n\t\t\t\t\t// ...otherwise use results directly\n\t\t\t\t\tresults :\n\t\t\t\tmatcherIn;\n\n\t\t// Find primary matches\n\t\tif ( matcher ) {\n\t\t\tmatcher( matcherIn, matcherOut, context, xml );\n\t\t}\n\n\t\t// Apply postFilter\n\t\tif ( postFilter ) {\n\t\t\ttemp = condense( matcherOut, postMap );\n\t\t\tpostFilter( temp, [], context, xml );\n\n\t\t\t// Un-match failing elements by moving them back to matcherIn\n\t\t\ti = temp.length;\n\t\t\twhile ( i-- ) {\n\t\t\t\tif ( ( elem = temp[ i ] ) ) {\n\t\t\t\t\tmatcherOut[ postMap[ i ] ] = !( matcherIn[ postMap[ i ] ] = elem );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif ( seed ) {\n\t\t\tif ( postFinder || preFilter ) {\n\t\t\t\tif ( postFinder ) {\n\n\t\t\t\t\t// Get the final matcherOut by condensing this intermediate into postFinder contexts\n\t\t\t\t\ttemp = [];\n\t\t\t\t\ti = matcherOut.length;\n\t\t\t\t\twhile ( i-- ) {\n\t\t\t\t\t\tif ( ( elem = matcherOut[ i ] ) ) {\n\n\t\t\t\t\t\t\t// Restore matcherIn since elem is not yet a final match\n\t\t\t\t\t\t\ttemp.push( ( matcherIn[ i ] = elem ) );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tpostFinder( null, ( matcherOut = [] ), temp, xml );\n\t\t\t\t}\n\n\t\t\t\t// Move matched elements from seed to results to keep them synchronized\n\t\t\t\ti = matcherOut.length;\n\t\t\t\twhile ( i-- ) {\n\t\t\t\t\tif ( ( elem = matcherOut[ i ] ) &&\n\t\t\t\t\t\t( temp = postFinder ? indexOf( seed, elem ) : preMap[ i ] ) > -1 ) {\n\n\t\t\t\t\t\tseed[ temp ] = !( results[ temp ] = elem );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t// Add elements to results, through postFinder if defined\n\t\t} else {\n\t\t\tmatcherOut = condense(\n\t\t\t\tmatcherOut === results ?\n\t\t\t\t\tmatcherOut.splice( preexisting, matcherOut.length ) :\n\t\t\t\t\tmatcherOut\n\t\t\t);\n\t\t\tif ( postFinder ) {\n\t\t\t\tpostFinder( null, results, matcherOut, xml );\n\t\t\t} else {\n\t\t\t\tpush.apply( results, matcherOut );\n\t\t\t}\n\t\t}\n\t} );\n}\n\nfunction matcherFromTokens( tokens ) {\n\tvar checkContext, matcher, j,\n\t\tlen = tokens.length,\n\t\tleadingRelative = Expr.relative[ tokens[ 0 ].type ],\n\t\timplicitRelative = leadingRelative || Expr.relative[ \" \" ],\n\t\ti = leadingRelative ? 1 : 0,\n\n\t\t// The foundational matcher ensures that elements are reachable from top-level context(s)\n\t\tmatchContext = addCombinator( function( elem ) {\n\t\t\treturn elem === checkContext;\n\t\t}, implicitRelative, true ),\n\t\tmatchAnyContext = addCombinator( function( elem ) {\n\t\t\treturn indexOf( checkContext, elem ) > -1;\n\t\t}, implicitRelative, true ),\n\t\tmatchers = [ function( elem, context, xml ) {\n\t\t\tvar ret = ( !leadingRelative && ( xml || context !== outermostContext ) ) || (\n\t\t\t\t( checkContext = context ).nodeType ?\n\t\t\t\t\tmatchContext( elem, context, xml ) :\n\t\t\t\t\tmatchAnyContext( elem, context, xml ) );\n\n\t\t\t// Avoid hanging onto element (issue #299)\n\t\t\tcheckContext = null;\n\t\t\treturn ret;\n\t\t} ];\n\n\tfor ( ; i < len; i++ ) {\n\t\tif ( ( matcher = Expr.relative[ tokens[ i ].type ] ) ) {\n\t\t\tmatchers = [ addCombinator( elementMatcher( matchers ), matcher ) ];\n\t\t} else {\n\t\t\tmatcher = Expr.filter[ tokens[ i ].type ].apply( null, tokens[ i ].matches );\n\n\t\t\t// Return special upon seeing a positional matcher\n\t\t\tif ( matcher[ expando ] ) {\n\n\t\t\t\t// Find the next relative operator (if any) for proper handling\n\t\t\t\tj = ++i;\n\t\t\t\tfor ( ; j < len; j++ ) {\n\t\t\t\t\tif ( Expr.relative[ tokens[ j ].type ] ) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn setMatcher(\n\t\t\t\t\ti > 1 && elementMatcher( matchers ),\n\t\t\t\t\ti > 1 && toSelector(\n\n\t\t\t\t\t// If the preceding token was a descendant combinator, insert an implicit any-element `*`\n\t\t\t\t\ttokens\n\t\t\t\t\t\t.slice( 0, i - 1 )\n\t\t\t\t\t\t.concat( { value: tokens[ i - 2 ].type === \" \" ? \"*\" : \"\" } )\n\t\t\t\t\t).replace( rtrim, \"$1\" ),\n\t\t\t\t\tmatcher,\n\t\t\t\t\ti < j && matcherFromTokens( tokens.slice( i, j ) ),\n\t\t\t\t\tj < len && matcherFromTokens( ( tokens = tokens.slice( j ) ) ),\n\t\t\t\t\tj < len && toSelector( tokens )\n\t\t\t\t);\n\t\t\t}\n\t\t\tmatchers.push( matcher );\n\t\t}\n\t}\n\n\treturn elementMatcher( matchers );\n}\n\nfunction matcherFromGroupMatchers( elementMatchers, setMatchers ) {\n\tvar bySet = setMatchers.length > 0,\n\t\tbyElement = elementMatchers.length > 0,\n\t\tsuperMatcher = function( seed, context, xml, results, outermost ) {\n\t\t\tvar elem, j, matcher,\n\t\t\t\tmatchedCount = 0,\n\t\t\t\ti = \"0\",\n\t\t\t\tunmatched = seed && [],\n\t\t\t\tsetMatched = [],\n\t\t\t\tcontextBackup = outermostContext,\n\n\t\t\t\t// We must always have either seed elements or outermost context\n\t\t\t\telems = seed || byElement && Expr.find[ \"TAG\" ]( \"*\", outermost ),\n\n\t\t\t\t// Use integer dirruns iff this is the outermost matcher\n\t\t\t\tdirrunsUnique = ( dirruns += contextBackup == null ? 1 : Math.random() || 0.1 ),\n\t\t\t\tlen = elems.length;\n\n\t\t\tif ( outermost ) {\n\n\t\t\t\t// Support: IE 11+, Edge 17 - 18+\n\t\t\t\t// IE/Edge sometimes throw a \"Permission denied\" error when strict-comparing\n\t\t\t\t// two documents; shallow comparisons work.\n\t\t\t\t// eslint-disable-next-line eqeqeq\n\t\t\t\toutermostContext = context == document || context || outermost;\n\t\t\t}\n\n\t\t\t// Add elements passing elementMatchers directly to results\n\t\t\t// Support: IE<9, Safari\n\t\t\t// Tolerate NodeList properties (IE: \"length\"; Safari: ) matching elements by id\n\t\t\tfor ( ; i !== len && ( elem = elems[ i ] ) != null; i++ ) {\n\t\t\t\tif ( byElement && elem ) {\n\t\t\t\t\tj = 0;\n\n\t\t\t\t\t// Support: IE 11+, Edge 17 - 18+\n\t\t\t\t\t// IE/Edge sometimes throw a \"Permission denied\" error when strict-comparing\n\t\t\t\t\t// two documents; shallow comparisons work.\n\t\t\t\t\t// eslint-disable-next-line eqeqeq\n\t\t\t\t\tif ( !context && elem.ownerDocument != document ) {\n\t\t\t\t\t\tsetDocument( elem );\n\t\t\t\t\t\txml = !documentIsHTML;\n\t\t\t\t\t}\n\t\t\t\t\twhile ( ( matcher = elementMatchers[ j++ ] ) ) {\n\t\t\t\t\t\tif ( matcher( elem, context || document, xml ) ) {\n\t\t\t\t\t\t\tresults.push( elem );\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif ( outermost ) {\n\t\t\t\t\t\tdirruns = dirrunsUnique;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Track unmatched elements for set filters\n\t\t\t\tif ( bySet ) {\n\n\t\t\t\t\t// They will have gone through all possible matchers\n\t\t\t\t\tif ( ( elem = !matcher && elem ) ) {\n\t\t\t\t\t\tmatchedCount--;\n\t\t\t\t\t}\n\n\t\t\t\t\t// Lengthen the array for every element, matched or not\n\t\t\t\t\tif ( seed ) {\n\t\t\t\t\t\tunmatched.push( elem );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// `i` is now the count of elements visited above, and adding it to `matchedCount`\n\t\t\t// makes the latter nonnegative.\n\t\t\tmatchedCount += i;\n\n\t\t\t// Apply set filters to unmatched elements\n\t\t\t// NOTE: This can be skipped if there are no unmatched elements (i.e., `matchedCount`\n\t\t\t// equals `i`), unless we didn't visit _any_ elements in the above loop because we have\n\t\t\t// no element matchers and no seed.\n\t\t\t// Incrementing an initially-string \"0\" `i` allows `i` to remain a string only in that\n\t\t\t// case, which will result in a \"00\" `matchedCount` that differs from `i` but is also\n\t\t\t// numerically zero.\n\t\t\tif ( bySet && i !== matchedCount ) {\n\t\t\t\tj = 0;\n\t\t\t\twhile ( ( matcher = setMatchers[ j++ ] ) ) {\n\t\t\t\t\tmatcher( unmatched, setMatched, context, xml );\n\t\t\t\t}\n\n\t\t\t\tif ( seed ) {\n\n\t\t\t\t\t// Reintegrate element matches to eliminate the need for sorting\n\t\t\t\t\tif ( matchedCount > 0 ) {\n\t\t\t\t\t\twhile ( i-- ) {\n\t\t\t\t\t\t\tif ( !( unmatched[ i ] || setMatched[ i ] ) ) {\n\t\t\t\t\t\t\t\tsetMatched[ i ] = pop.call( results );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// Discard index placeholder values to get only actual matches\n\t\t\t\t\tsetMatched = condense( setMatched );\n\t\t\t\t}\n\n\t\t\t\t// Add matches to results\n\t\t\t\tpush.apply( results, setMatched );\n\n\t\t\t\t// Seedless set matches succeeding multiple successful matchers stipulate sorting\n\t\t\t\tif ( outermost && !seed && setMatched.length > 0 &&\n\t\t\t\t\t( matchedCount + setMatchers.length ) > 1 ) {\n\n\t\t\t\t\tSizzle.uniqueSort( results );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Override manipulation of globals by nested matchers\n\t\t\tif ( outermost ) {\n\t\t\t\tdirruns = dirrunsUnique;\n\t\t\t\toutermostContext = contextBackup;\n\t\t\t}\n\n\t\t\treturn unmatched;\n\t\t};\n\n\treturn bySet ?\n\t\tmarkFunction( superMatcher ) :\n\t\tsuperMatcher;\n}\n\ncompile = Sizzle.compile = function( selector, match /* Internal Use Only */ ) {\n\tvar i,\n\t\tsetMatchers = [],\n\t\telementMatchers = [],\n\t\tcached = compilerCache[ selector + \" \" ];\n\n\tif ( !cached ) {\n\n\t\t// Generate a function of recursive functions that can be used to check each element\n\t\tif ( !match ) {\n\t\t\tmatch = tokenize( selector );\n\t\t}\n\t\ti = match.length;\n\t\twhile ( i-- ) {\n\t\t\tcached = matcherFromTokens( match[ i ] );\n\t\t\tif ( cached[ expando ] ) {\n\t\t\t\tsetMatchers.push( cached );\n\t\t\t} else {\n\t\t\t\telementMatchers.push( cached );\n\t\t\t}\n\t\t}\n\n\t\t// Cache the compiled function\n\t\tcached = compilerCache(\n\t\t\tselector,\n\t\t\tmatcherFromGroupMatchers( elementMatchers, setMatchers )\n\t\t);\n\n\t\t// Save selector and tokenization\n\t\tcached.selector = selector;\n\t}\n\treturn cached;\n};\n\n/**\n * A low-level selection function that works with Sizzle's compiled\n * selector functions\n * @param {String|Function} selector A selector or a pre-compiled\n * selector function built with Sizzle.compile\n * @param {Element} context\n * @param {Array} [results]\n * @param {Array} [seed] A set of elements to match against\n */\nselect = Sizzle.select = function( selector, context, results, seed ) {\n\tvar i, tokens, token, type, find,\n\t\tcompiled = typeof selector === \"function\" && selector,\n\t\tmatch = !seed && tokenize( ( selector = compiled.selector || selector ) );\n\n\tresults = results || [];\n\n\t// Try to minimize operations if there is only one selector in the list and no seed\n\t// (the latter of which guarantees us context)\n\tif ( match.length === 1 ) {\n\n\t\t// Reduce context if the leading compound selector is an ID\n\t\ttokens = match[ 0 ] = match[ 0 ].slice( 0 );\n\t\tif ( tokens.length > 2 && ( token = tokens[ 0 ] ).type === \"ID\" &&\n\t\t\tcontext.nodeType === 9 && documentIsHTML && Expr.relative[ tokens[ 1 ].type ] ) {\n\n\t\t\tcontext = ( Expr.find[ \"ID\" ]( token.matches[ 0 ]\n\t\t\t\t.replace( runescape, funescape ), context ) || [] )[ 0 ];\n\t\t\tif ( !context ) {\n\t\t\t\treturn results;\n\n\t\t\t// Precompiled matchers will still verify ancestry, so step up a level\n\t\t\t} else if ( compiled ) {\n\t\t\t\tcontext = context.parentNode;\n\t\t\t}\n\n\t\t\tselector = selector.slice( tokens.shift().value.length );\n\t\t}\n\n\t\t// Fetch a seed set for right-to-left matching\n\t\ti = matchExpr[ \"needsContext\" ].test( selector ) ? 0 : tokens.length;\n\t\twhile ( i-- ) {\n\t\t\ttoken = tokens[ i ];\n\n\t\t\t// Abort if we hit a combinator\n\t\t\tif ( Expr.relative[ ( type = token.type ) ] ) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif ( ( find = Expr.find[ type ] ) ) {\n\n\t\t\t\t// Search, expanding context for leading sibling combinators\n\t\t\t\tif ( ( seed = find(\n\t\t\t\t\ttoken.matches[ 0 ].replace( runescape, funescape ),\n\t\t\t\t\trsibling.test( tokens[ 0 ].type ) && testContext( context.parentNode ) ||\n\t\t\t\t\t\tcontext\n\t\t\t\t) ) ) {\n\n\t\t\t\t\t// If seed is empty or no tokens remain, we can return early\n\t\t\t\t\ttokens.splice( i, 1 );\n\t\t\t\t\tselector = seed.length && toSelector( tokens );\n\t\t\t\t\tif ( !selector ) {\n\t\t\t\t\t\tpush.apply( results, seed );\n\t\t\t\t\t\treturn results;\n\t\t\t\t\t}\n\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t// Compile and execute a filtering function if one is not provided\n\t// Provide `match` to avoid retokenization if we modified the selector above\n\t( compiled || compile( selector, match ) )(\n\t\tseed,\n\t\tcontext,\n\t\t!documentIsHTML,\n\t\tresults,\n\t\t!context || rsibling.test( selector ) && testContext( context.parentNode ) || context\n\t);\n\treturn results;\n};\n\n// One-time assignments\n\n// Sort stability\nsupport.sortStable = expando.split( \"\" ).sort( sortOrder ).join( \"\" ) === expando;\n\n// Support: Chrome 14-35+\n// Always assume duplicates if they aren't passed to the comparison function\nsupport.detectDuplicates = !!hasDuplicate;\n\n// Initialize against the default document\nsetDocument();\n\n// Support: Webkit<537.32 - Safari 6.0.3/Chrome 25 (fixed in Chrome 27)\n// Detached nodes confoundingly follow *each other*\nsupport.sortDetached = assert( function( el ) {\n\n\t// Should return 1, but returns 4 (following)\n\treturn el.compareDocumentPosition( document.createElement( \"fieldset\" ) ) & 1;\n} );\n\n// Support: IE<8\n// Prevent attribute/property \"interpolation\"\n// https://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx\nif ( !assert( function( el ) {\n\tel.innerHTML = \" \";\n\treturn el.firstChild.getAttribute( \"href\" ) === \"#\";\n} ) ) {\n\taddHandle( \"type|href|height|width\", function( elem, name, isXML ) {\n\t\tif ( !isXML ) {\n\t\t\treturn elem.getAttribute( name, name.toLowerCase() === \"type\" ? 1 : 2 );\n\t\t}\n\t} );\n}\n\n// Support: IE<9\n// Use defaultValue in place of getAttribute(\"value\")\nif ( !support.attributes || !assert( function( el ) {\n\tel.innerHTML = \" \";\n\tel.firstChild.setAttribute( \"value\", \"\" );\n\treturn el.firstChild.getAttribute( \"value\" ) === \"\";\n} ) ) {\n\taddHandle( \"value\", function( elem, _name, isXML ) {\n\t\tif ( !isXML && elem.nodeName.toLowerCase() === \"input\" ) {\n\t\t\treturn elem.defaultValue;\n\t\t}\n\t} );\n}\n\n// Support: IE<9\n// Use getAttributeNode to fetch booleans when getAttribute lies\nif ( !assert( function( el ) {\n\treturn el.getAttribute( \"disabled\" ) == null;\n} ) ) {\n\taddHandle( booleans, function( elem, name, isXML ) {\n\t\tvar val;\n\t\tif ( !isXML ) {\n\t\t\treturn elem[ name ] === true ? name.toLowerCase() :\n\t\t\t\t( val = elem.getAttributeNode( name ) ) && val.specified ?\n\t\t\t\t\tval.value :\n\t\t\t\t\tnull;\n\t\t}\n\t} );\n}\n\nreturn Sizzle;\n\n} )( window );\n\n\n\njQuery.find = Sizzle;\njQuery.expr = Sizzle.selectors;\n\n// Deprecated\njQuery.expr[ \":\" ] = jQuery.expr.pseudos;\njQuery.uniqueSort = jQuery.unique = Sizzle.uniqueSort;\njQuery.text = Sizzle.getText;\njQuery.isXMLDoc = Sizzle.isXML;\njQuery.contains = Sizzle.contains;\njQuery.escapeSelector = Sizzle.escape;\n\n\n\n\nvar dir = function( elem, dir, until ) {\n\tvar matched = [],\n\t\ttruncate = until !== undefined;\n\n\twhile ( ( elem = elem[ dir ] ) && elem.nodeType !== 9 ) {\n\t\tif ( elem.nodeType === 1 ) {\n\t\t\tif ( truncate && jQuery( elem ).is( until ) ) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tmatched.push( elem );\n\t\t}\n\t}\n\treturn matched;\n};\n\n\nvar siblings = function( n, elem ) {\n\tvar matched = [];\n\n\tfor ( ; n; n = n.nextSibling ) {\n\t\tif ( n.nodeType === 1 && n !== elem ) {\n\t\t\tmatched.push( n );\n\t\t}\n\t}\n\n\treturn matched;\n};\n\n\nvar rneedsContext = jQuery.expr.match.needsContext;\n\n\n\nfunction nodeName( elem, name ) {\n\n return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase();\n\n};\nvar rsingleTag = ( /^<([a-z][^\\/\\0>:\\x20\\t\\r\\n\\f]*)[\\x20\\t\\r\\n\\f]*\\/?>(?:<\\/\\1>|)$/i );\n\n\n\n// Implement the identical functionality for filter and not\nfunction winnow( elements, qualifier, not ) {\n\tif ( isFunction( qualifier ) ) {\n\t\treturn jQuery.grep( elements, function( elem, i ) {\n\t\t\treturn !!qualifier.call( elem, i, elem ) !== not;\n\t\t} );\n\t}\n\n\t// Single element\n\tif ( qualifier.nodeType ) {\n\t\treturn jQuery.grep( elements, function( elem ) {\n\t\t\treturn ( elem === qualifier ) !== not;\n\t\t} );\n\t}\n\n\t// Arraylike of elements (jQuery, arguments, Array)\n\tif ( typeof qualifier !== \"string\" ) {\n\t\treturn jQuery.grep( elements, function( elem ) {\n\t\t\treturn ( indexOf.call( qualifier, elem ) > -1 ) !== not;\n\t\t} );\n\t}\n\n\t// Filtered directly for both simple and complex selectors\n\treturn jQuery.filter( qualifier, elements, not );\n}\n\njQuery.filter = function( expr, elems, not ) {\n\tvar elem = elems[ 0 ];\n\n\tif ( not ) {\n\t\texpr = \":not(\" + expr + \")\";\n\t}\n\n\tif ( elems.length === 1 && elem.nodeType === 1 ) {\n\t\treturn jQuery.find.matchesSelector( elem, expr ) ? [ elem ] : [];\n\t}\n\n\treturn jQuery.find.matches( expr, jQuery.grep( elems, function( elem ) {\n\t\treturn elem.nodeType === 1;\n\t} ) );\n};\n\njQuery.fn.extend( {\n\tfind: function( selector ) {\n\t\tvar i, ret,\n\t\t\tlen = this.length,\n\t\t\tself = this;\n\n\t\tif ( typeof selector !== \"string\" ) {\n\t\t\treturn this.pushStack( jQuery( selector ).filter( function() {\n\t\t\t\tfor ( i = 0; i < len; i++ ) {\n\t\t\t\t\tif ( jQuery.contains( self[ i ], this ) ) {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} ) );\n\t\t}\n\n\t\tret = this.pushStack( [] );\n\n\t\tfor ( i = 0; i < len; i++ ) {\n\t\t\tjQuery.find( selector, self[ i ], ret );\n\t\t}\n\n\t\treturn len > 1 ? jQuery.uniqueSort( ret ) : ret;\n\t},\n\tfilter: function( selector ) {\n\t\treturn this.pushStack( winnow( this, selector || [], false ) );\n\t},\n\tnot: function( selector ) {\n\t\treturn this.pushStack( winnow( this, selector || [], true ) );\n\t},\n\tis: function( selector ) {\n\t\treturn !!winnow(\n\t\t\tthis,\n\n\t\t\t// If this is a positional/relative selector, check membership in the returned set\n\t\t\t// so $(\"p:first\").is(\"p:last\") won't return true for a doc with two \"p\".\n\t\t\ttypeof selector === \"string\" && rneedsContext.test( selector ) ?\n\t\t\t\tjQuery( selector ) :\n\t\t\t\tselector || [],\n\t\t\tfalse\n\t\t).length;\n\t}\n} );\n\n\n// Initialize a jQuery object\n\n\n// A central reference to the root jQuery(document)\nvar rootjQuery,\n\n\t// A simple way to check for HTML strings\n\t// Prioritize #id over to avoid XSS via location.hash (#9521)\n\t// Strict HTML recognition (#11290: must start with <)\n\t// Shortcut simple #id case for speed\n\trquickExpr = /^(?:\\s*(<[\\w\\W]+>)[^>]*|#([\\w-]+))$/,\n\n\tinit = jQuery.fn.init = function( selector, context, root ) {\n\t\tvar match, elem;\n\n\t\t// HANDLE: $(\"\"), $(null), $(undefined), $(false)\n\t\tif ( !selector ) {\n\t\t\treturn this;\n\t\t}\n\n\t\t// Method init() accepts an alternate rootjQuery\n\t\t// so migrate can support jQuery.sub (gh-2101)\n\t\troot = root || rootjQuery;\n\n\t\t// Handle HTML strings\n\t\tif ( typeof selector === \"string\" ) {\n\t\t\tif ( selector[ 0 ] === \"<\" &&\n\t\t\t\tselector[ selector.length - 1 ] === \">\" &&\n\t\t\t\tselector.length >= 3 ) {\n\n\t\t\t\t// Assume that strings that start and end with <> are HTML and skip the regex check\n\t\t\t\tmatch = [ null, selector, null ];\n\n\t\t\t} else {\n\t\t\t\tmatch = rquickExpr.exec( selector );\n\t\t\t}\n\n\t\t\t// Match html or make sure no context is specified for #id\n\t\t\tif ( match && ( match[ 1 ] || !context ) ) {\n\n\t\t\t\t// HANDLE: $(html) -> $(array)\n\t\t\t\tif ( match[ 1 ] ) {\n\t\t\t\t\tcontext = context instanceof jQuery ? context[ 0 ] : context;\n\n\t\t\t\t\t// Option to run scripts is true for back-compat\n\t\t\t\t\t// Intentionally let the error be thrown if parseHTML is not present\n\t\t\t\t\tjQuery.merge( this, jQuery.parseHTML(\n\t\t\t\t\t\tmatch[ 1 ],\n\t\t\t\t\t\tcontext && context.nodeType ? context.ownerDocument || context : document,\n\t\t\t\t\t\ttrue\n\t\t\t\t\t) );\n\n\t\t\t\t\t// HANDLE: $(html, props)\n\t\t\t\t\tif ( rsingleTag.test( match[ 1 ] ) && jQuery.isPlainObject( context ) ) {\n\t\t\t\t\t\tfor ( match in context ) {\n\n\t\t\t\t\t\t\t// Properties of context are called as methods if possible\n\t\t\t\t\t\t\tif ( isFunction( this[ match ] ) ) {\n\t\t\t\t\t\t\t\tthis[ match ]( context[ match ] );\n\n\t\t\t\t\t\t\t// ...and otherwise set as attributes\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tthis.attr( match, context[ match ] );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\treturn this;\n\n\t\t\t\t// HANDLE: $(#id)\n\t\t\t\t} else {\n\t\t\t\t\telem = document.getElementById( match[ 2 ] );\n\n\t\t\t\t\tif ( elem ) {\n\n\t\t\t\t\t\t// Inject the element directly into the jQuery object\n\t\t\t\t\t\tthis[ 0 ] = elem;\n\t\t\t\t\t\tthis.length = 1;\n\t\t\t\t\t}\n\t\t\t\t\treturn this;\n\t\t\t\t}\n\n\t\t\t// HANDLE: $(expr, $(...))\n\t\t\t} else if ( !context || context.jquery ) {\n\t\t\t\treturn ( context || root ).find( selector );\n\n\t\t\t// HANDLE: $(expr, context)\n\t\t\t// (which is just equivalent to: $(context).find(expr)\n\t\t\t} else {\n\t\t\t\treturn this.constructor( context ).find( selector );\n\t\t\t}\n\n\t\t// HANDLE: $(DOMElement)\n\t\t} else if ( selector.nodeType ) {\n\t\t\tthis[ 0 ] = selector;\n\t\t\tthis.length = 1;\n\t\t\treturn this;\n\n\t\t// HANDLE: $(function)\n\t\t// Shortcut for document ready\n\t\t} else if ( isFunction( selector ) ) {\n\t\t\treturn root.ready !== undefined ?\n\t\t\t\troot.ready( selector ) :\n\n\t\t\t\t// Execute immediately if ready is not present\n\t\t\t\tselector( jQuery );\n\t\t}\n\n\t\treturn jQuery.makeArray( selector, this );\n\t};\n\n// Give the init function the jQuery prototype for later instantiation\ninit.prototype = jQuery.fn;\n\n// Initialize central reference\nrootjQuery = jQuery( document );\n\n\nvar rparentsprev = /^(?:parents|prev(?:Until|All))/,\n\n\t// Methods guaranteed to produce a unique set when starting from a unique set\n\tguaranteedUnique = {\n\t\tchildren: true,\n\t\tcontents: true,\n\t\tnext: true,\n\t\tprev: true\n\t};\n\njQuery.fn.extend( {\n\thas: function( target ) {\n\t\tvar targets = jQuery( target, this ),\n\t\t\tl = targets.length;\n\n\t\treturn this.filter( function() {\n\t\t\tvar i = 0;\n\t\t\tfor ( ; i < l; i++ ) {\n\t\t\t\tif ( jQuery.contains( this, targets[ i ] ) ) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t} );\n\t},\n\n\tclosest: function( selectors, context ) {\n\t\tvar cur,\n\t\t\ti = 0,\n\t\t\tl = this.length,\n\t\t\tmatched = [],\n\t\t\ttargets = typeof selectors !== \"string\" && jQuery( selectors );\n\n\t\t// Positional selectors never match, since there's no _selection_ context\n\t\tif ( !rneedsContext.test( selectors ) ) {\n\t\t\tfor ( ; i < l; i++ ) {\n\t\t\t\tfor ( cur = this[ i ]; cur && cur !== context; cur = cur.parentNode ) {\n\n\t\t\t\t\t// Always skip document fragments\n\t\t\t\t\tif ( cur.nodeType < 11 && ( targets ?\n\t\t\t\t\t\ttargets.index( cur ) > -1 :\n\n\t\t\t\t\t\t// Don't pass non-elements to Sizzle\n\t\t\t\t\t\tcur.nodeType === 1 &&\n\t\t\t\t\t\t\tjQuery.find.matchesSelector( cur, selectors ) ) ) {\n\n\t\t\t\t\t\tmatched.push( cur );\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn this.pushStack( matched.length > 1 ? jQuery.uniqueSort( matched ) : matched );\n\t},\n\n\t// Determine the position of an element within the set\n\tindex: function( elem ) {\n\n\t\t// No argument, return index in parent\n\t\tif ( !elem ) {\n\t\t\treturn ( this[ 0 ] && this[ 0 ].parentNode ) ? this.first().prevAll().length : -1;\n\t\t}\n\n\t\t// Index in selector\n\t\tif ( typeof elem === \"string\" ) {\n\t\t\treturn indexOf.call( jQuery( elem ), this[ 0 ] );\n\t\t}\n\n\t\t// Locate the position of the desired element\n\t\treturn indexOf.call( this,\n\n\t\t\t// If it receives a jQuery object, the first element is used\n\t\t\telem.jquery ? elem[ 0 ] : elem\n\t\t);\n\t},\n\n\tadd: function( selector, context ) {\n\t\treturn this.pushStack(\n\t\t\tjQuery.uniqueSort(\n\t\t\t\tjQuery.merge( this.get(), jQuery( selector, context ) )\n\t\t\t)\n\t\t);\n\t},\n\n\taddBack: function( selector ) {\n\t\treturn this.add( selector == null ?\n\t\t\tthis.prevObject : this.prevObject.filter( selector )\n\t\t);\n\t}\n} );\n\nfunction sibling( cur, dir ) {\n\twhile ( ( cur = cur[ dir ] ) && cur.nodeType !== 1 ) {}\n\treturn cur;\n}\n\njQuery.each( {\n\tparent: function( elem ) {\n\t\tvar parent = elem.parentNode;\n\t\treturn parent && parent.nodeType !== 11 ? parent : null;\n\t},\n\tparents: function( elem ) {\n\t\treturn dir( elem, \"parentNode\" );\n\t},\n\tparentsUntil: function( elem, _i, until ) {\n\t\treturn dir( elem, \"parentNode\", until );\n\t},\n\tnext: function( elem ) {\n\t\treturn sibling( elem, \"nextSibling\" );\n\t},\n\tprev: function( elem ) {\n\t\treturn sibling( elem, \"previousSibling\" );\n\t},\n\tnextAll: function( elem ) {\n\t\treturn dir( elem, \"nextSibling\" );\n\t},\n\tprevAll: function( elem ) {\n\t\treturn dir( elem, \"previousSibling\" );\n\t},\n\tnextUntil: function( elem, _i, until ) {\n\t\treturn dir( elem, \"nextSibling\", until );\n\t},\n\tprevUntil: function( elem, _i, until ) {\n\t\treturn dir( elem, \"previousSibling\", until );\n\t},\n\tsiblings: function( elem ) {\n\t\treturn siblings( ( elem.parentNode || {} ).firstChild, elem );\n\t},\n\tchildren: function( elem ) {\n\t\treturn siblings( elem.firstChild );\n\t},\n\tcontents: function( elem ) {\n\t\tif ( elem.contentDocument != null &&\n\n\t\t\t// Support: IE 11+\n\t\t\t// elements with no `data` attribute has an object\n\t\t\t// `contentDocument` with a `null` prototype.\n\t\t\tgetProto( elem.contentDocument ) ) {\n\n\t\t\treturn elem.contentDocument;\n\t\t}\n\n\t\t// Support: IE 9 - 11 only, iOS 7 only, Android Browser <=4.3 only\n\t\t// Treat the template element as a regular one in browsers that\n\t\t// don't support it.\n\t\tif ( nodeName( elem, \"template\" ) ) {\n\t\t\telem = elem.content || elem;\n\t\t}\n\n\t\treturn jQuery.merge( [], elem.childNodes );\n\t}\n}, function( name, fn ) {\n\tjQuery.fn[ name ] = function( until, selector ) {\n\t\tvar matched = jQuery.map( this, fn, until );\n\n\t\tif ( name.slice( -5 ) !== \"Until\" ) {\n\t\t\tselector = until;\n\t\t}\n\n\t\tif ( selector && typeof selector === \"string\" ) {\n\t\t\tmatched = jQuery.filter( selector, matched );\n\t\t}\n\n\t\tif ( this.length > 1 ) {\n\n\t\t\t// Remove duplicates\n\t\t\tif ( !guaranteedUnique[ name ] ) {\n\t\t\t\tjQuery.uniqueSort( matched );\n\t\t\t}\n\n\t\t\t// Reverse order for parents* and prev-derivatives\n\t\t\tif ( rparentsprev.test( name ) ) {\n\t\t\t\tmatched.reverse();\n\t\t\t}\n\t\t}\n\n\t\treturn this.pushStack( matched );\n\t};\n} );\nvar rnothtmlwhite = ( /[^\\x20\\t\\r\\n\\f]+/g );\n\n\n\n// Convert String-formatted options into Object-formatted ones\nfunction createOptions( options ) {\n\tvar object = {};\n\tjQuery.each( options.match( rnothtmlwhite ) || [], function( _, flag ) {\n\t\tobject[ flag ] = true;\n\t} );\n\treturn object;\n}\n\n/*\n * Create a callback list using the following parameters:\n *\n *\toptions: an optional list of space-separated options that will change how\n *\t\t\tthe callback list behaves or a more traditional option object\n *\n * By default a callback list will act like an event callback list and can be\n * \"fired\" multiple times.\n *\n * Possible options:\n *\n *\tonce:\t\t\twill ensure the callback list can only be fired once (like a Deferred)\n *\n *\tmemory:\t\t\twill keep track of previous values and will call any callback added\n *\t\t\t\t\tafter the list has been fired right away with the latest \"memorized\"\n *\t\t\t\t\tvalues (like a Deferred)\n *\n *\tunique:\t\t\twill ensure a callback can only be added once (no duplicate in the list)\n *\n *\tstopOnFalse:\tinterrupt callings when a callback returns false\n *\n */\njQuery.Callbacks = function( options ) {\n\n\t// Convert options from String-formatted to Object-formatted if needed\n\t// (we check in cache first)\n\toptions = typeof options === \"string\" ?\n\t\tcreateOptions( options ) :\n\t\tjQuery.extend( {}, options );\n\n\tvar // Flag to know if list is currently firing\n\t\tfiring,\n\n\t\t// Last fire value for non-forgettable lists\n\t\tmemory,\n\n\t\t// Flag to know if list was already fired\n\t\tfired,\n\n\t\t// Flag to prevent firing\n\t\tlocked,\n\n\t\t// Actual callback list\n\t\tlist = [],\n\n\t\t// Queue of execution data for repeatable lists\n\t\tqueue = [],\n\n\t\t// Index of currently firing callback (modified by add/remove as needed)\n\t\tfiringIndex = -1,\n\n\t\t// Fire callbacks\n\t\tfire = function() {\n\n\t\t\t// Enforce single-firing\n\t\t\tlocked = locked || options.once;\n\n\t\t\t// Execute callbacks for all pending executions,\n\t\t\t// respecting firingIndex overrides and runtime changes\n\t\t\tfired = firing = true;\n\t\t\tfor ( ; queue.length; firingIndex = -1 ) {\n\t\t\t\tmemory = queue.shift();\n\t\t\t\twhile ( ++firingIndex < list.length ) {\n\n\t\t\t\t\t// Run callback and check for early termination\n\t\t\t\t\tif ( list[ firingIndex ].apply( memory[ 0 ], memory[ 1 ] ) === false &&\n\t\t\t\t\t\toptions.stopOnFalse ) {\n\n\t\t\t\t\t\t// Jump to end and forget the data so .add doesn't re-fire\n\t\t\t\t\t\tfiringIndex = list.length;\n\t\t\t\t\t\tmemory = false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Forget the data if we're done with it\n\t\t\tif ( !options.memory ) {\n\t\t\t\tmemory = false;\n\t\t\t}\n\n\t\t\tfiring = false;\n\n\t\t\t// Clean up if we're done firing for good\n\t\t\tif ( locked ) {\n\n\t\t\t\t// Keep an empty list if we have data for future add calls\n\t\t\t\tif ( memory ) {\n\t\t\t\t\tlist = [];\n\n\t\t\t\t// Otherwise, this object is spent\n\t\t\t\t} else {\n\t\t\t\t\tlist = \"\";\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\n\t\t// Actual Callbacks object\n\t\tself = {\n\n\t\t\t// Add a callback or a collection of callbacks to the list\n\t\t\tadd: function() {\n\t\t\t\tif ( list ) {\n\n\t\t\t\t\t// If we have memory from a past run, we should fire after adding\n\t\t\t\t\tif ( memory && !firing ) {\n\t\t\t\t\t\tfiringIndex = list.length - 1;\n\t\t\t\t\t\tqueue.push( memory );\n\t\t\t\t\t}\n\n\t\t\t\t\t( function add( args ) {\n\t\t\t\t\t\tjQuery.each( args, function( _, arg ) {\n\t\t\t\t\t\t\tif ( isFunction( arg ) ) {\n\t\t\t\t\t\t\t\tif ( !options.unique || !self.has( arg ) ) {\n\t\t\t\t\t\t\t\t\tlist.push( arg );\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else if ( arg && arg.length && toType( arg ) !== \"string\" ) {\n\n\t\t\t\t\t\t\t\t// Inspect recursively\n\t\t\t\t\t\t\t\tadd( arg );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} );\n\t\t\t\t\t} )( arguments );\n\n\t\t\t\t\tif ( memory && !firing ) {\n\t\t\t\t\t\tfire();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn this;\n\t\t\t},\n\n\t\t\t// Remove a callback from the list\n\t\t\tremove: function() {\n\t\t\t\tjQuery.each( arguments, function( _, arg ) {\n\t\t\t\t\tvar index;\n\t\t\t\t\twhile ( ( index = jQuery.inArray( arg, list, index ) ) > -1 ) {\n\t\t\t\t\t\tlist.splice( index, 1 );\n\n\t\t\t\t\t\t// Handle firing indexes\n\t\t\t\t\t\tif ( index <= firingIndex ) {\n\t\t\t\t\t\t\tfiringIndex--;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} );\n\t\t\t\treturn this;\n\t\t\t},\n\n\t\t\t// Check if a given callback is in the list.\n\t\t\t// If no argument is given, return whether or not list has callbacks attached.\n\t\t\thas: function( fn ) {\n\t\t\t\treturn fn ?\n\t\t\t\t\tjQuery.inArray( fn, list ) > -1 :\n\t\t\t\t\tlist.length > 0;\n\t\t\t},\n\n\t\t\t// Remove all callbacks from the list\n\t\t\tempty: function() {\n\t\t\t\tif ( list ) {\n\t\t\t\t\tlist = [];\n\t\t\t\t}\n\t\t\t\treturn this;\n\t\t\t},\n\n\t\t\t// Disable .fire and .add\n\t\t\t// Abort any current/pending executions\n\t\t\t// Clear all callbacks and values\n\t\t\tdisable: function() {\n\t\t\t\tlocked = queue = [];\n\t\t\t\tlist = memory = \"\";\n\t\t\t\treturn this;\n\t\t\t},\n\t\t\tdisabled: function() {\n\t\t\t\treturn !list;\n\t\t\t},\n\n\t\t\t// Disable .fire\n\t\t\t// Also disable .add unless we have memory (since it would have no effect)\n\t\t\t// Abort any pending executions\n\t\t\tlock: function() {\n\t\t\t\tlocked = queue = [];\n\t\t\t\tif ( !memory && !firing ) {\n\t\t\t\t\tlist = memory = \"\";\n\t\t\t\t}\n\t\t\t\treturn this;\n\t\t\t},\n\t\t\tlocked: function() {\n\t\t\t\treturn !!locked;\n\t\t\t},\n\n\t\t\t// Call all callbacks with the given context and arguments\n\t\t\tfireWith: function( context, args ) {\n\t\t\t\tif ( !locked ) {\n\t\t\t\t\targs = args || [];\n\t\t\t\t\targs = [ context, args.slice ? args.slice() : args ];\n\t\t\t\t\tqueue.push( args );\n\t\t\t\t\tif ( !firing ) {\n\t\t\t\t\t\tfire();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn this;\n\t\t\t},\n\n\t\t\t// Call all the callbacks with the given arguments\n\t\t\tfire: function() {\n\t\t\t\tself.fireWith( this, arguments );\n\t\t\t\treturn this;\n\t\t\t},\n\n\t\t\t// To know if the callbacks have already been called at least once\n\t\t\tfired: function() {\n\t\t\t\treturn !!fired;\n\t\t\t}\n\t\t};\n\n\treturn self;\n};\n\n\nfunction Identity( v ) {\n\treturn v;\n}\nfunction Thrower( ex ) {\n\tthrow ex;\n}\n\nfunction adoptValue( value, resolve, reject, noValue ) {\n\tvar method;\n\n\ttry {\n\n\t\t// Check for promise aspect first to privilege synchronous behavior\n\t\tif ( value && isFunction( ( method = value.promise ) ) ) {\n\t\t\tmethod.call( value ).done( resolve ).fail( reject );\n\n\t\t// Other thenables\n\t\t} else if ( value && isFunction( ( method = value.then ) ) ) {\n\t\t\tmethod.call( value, resolve, reject );\n\n\t\t// Other non-thenables\n\t\t} else {\n\n\t\t\t// Control `resolve` arguments by letting Array#slice cast boolean `noValue` to integer:\n\t\t\t// * false: [ value ].slice( 0 ) => resolve( value )\n\t\t\t// * true: [ value ].slice( 1 ) => resolve()\n\t\t\tresolve.apply( undefined, [ value ].slice( noValue ) );\n\t\t}\n\n\t// For Promises/A+, convert exceptions into rejections\n\t// Since jQuery.when doesn't unwrap thenables, we can skip the extra checks appearing in\n\t// Deferred#then to conditionally suppress rejection.\n\t} catch ( value ) {\n\n\t\t// Support: Android 4.0 only\n\t\t// Strict mode functions invoked without .call/.apply get global-object context\n\t\treject.apply( undefined, [ value ] );\n\t}\n}\n\njQuery.extend( {\n\n\tDeferred: function( func ) {\n\t\tvar tuples = [\n\n\t\t\t\t// action, add listener, callbacks,\n\t\t\t\t// ... .then handlers, argument index, [final state]\n\t\t\t\t[ \"notify\", \"progress\", jQuery.Callbacks( \"memory\" ),\n\t\t\t\t\tjQuery.Callbacks( \"memory\" ), 2 ],\n\t\t\t\t[ \"resolve\", \"done\", jQuery.Callbacks( \"once memory\" ),\n\t\t\t\t\tjQuery.Callbacks( \"once memory\" ), 0, \"resolved\" ],\n\t\t\t\t[ \"reject\", \"fail\", jQuery.Callbacks( \"once memory\" ),\n\t\t\t\t\tjQuery.Callbacks( \"once memory\" ), 1, \"rejected\" ]\n\t\t\t],\n\t\t\tstate = \"pending\",\n\t\t\tpromise = {\n\t\t\t\tstate: function() {\n\t\t\t\t\treturn state;\n\t\t\t\t},\n\t\t\t\talways: function() {\n\t\t\t\t\tdeferred.done( arguments ).fail( arguments );\n\t\t\t\t\treturn this;\n\t\t\t\t},\n\t\t\t\t\"catch\": function( fn ) {\n\t\t\t\t\treturn promise.then( null, fn );\n\t\t\t\t},\n\n\t\t\t\t// Keep pipe for back-compat\n\t\t\t\tpipe: function( /* fnDone, fnFail, fnProgress */ ) {\n\t\t\t\t\tvar fns = arguments;\n\n\t\t\t\t\treturn jQuery.Deferred( function( newDefer ) {\n\t\t\t\t\t\tjQuery.each( tuples, function( _i, tuple ) {\n\n\t\t\t\t\t\t\t// Map tuples (progress, done, fail) to arguments (done, fail, progress)\n\t\t\t\t\t\t\tvar fn = isFunction( fns[ tuple[ 4 ] ] ) && fns[ tuple[ 4 ] ];\n\n\t\t\t\t\t\t\t// deferred.progress(function() { bind to newDefer or newDefer.notify })\n\t\t\t\t\t\t\t// deferred.done(function() { bind to newDefer or newDefer.resolve })\n\t\t\t\t\t\t\t// deferred.fail(function() { bind to newDefer or newDefer.reject })\n\t\t\t\t\t\t\tdeferred[ tuple[ 1 ] ]( function() {\n\t\t\t\t\t\t\t\tvar returned = fn && fn.apply( this, arguments );\n\t\t\t\t\t\t\t\tif ( returned && isFunction( returned.promise ) ) {\n\t\t\t\t\t\t\t\t\treturned.promise()\n\t\t\t\t\t\t\t\t\t\t.progress( newDefer.notify )\n\t\t\t\t\t\t\t\t\t\t.done( newDefer.resolve )\n\t\t\t\t\t\t\t\t\t\t.fail( newDefer.reject );\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tnewDefer[ tuple[ 0 ] + \"With\" ](\n\t\t\t\t\t\t\t\t\t\tthis,\n\t\t\t\t\t\t\t\t\t\tfn ? [ returned ] : arguments\n\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} );\n\t\t\t\t\t\t} );\n\t\t\t\t\t\tfns = null;\n\t\t\t\t\t} ).promise();\n\t\t\t\t},\n\t\t\t\tthen: function( onFulfilled, onRejected, onProgress ) {\n\t\t\t\t\tvar maxDepth = 0;\n\t\t\t\t\tfunction resolve( depth, deferred, handler, special ) {\n\t\t\t\t\t\treturn function() {\n\t\t\t\t\t\t\tvar that = this,\n\t\t\t\t\t\t\t\targs = arguments,\n\t\t\t\t\t\t\t\tmightThrow = function() {\n\t\t\t\t\t\t\t\t\tvar returned, then;\n\n\t\t\t\t\t\t\t\t\t// Support: Promises/A+ section 2.3.3.3.3\n\t\t\t\t\t\t\t\t\t// https://promisesaplus.com/#point-59\n\t\t\t\t\t\t\t\t\t// Ignore double-resolution attempts\n\t\t\t\t\t\t\t\t\tif ( depth < maxDepth ) {\n\t\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\treturned = handler.apply( that, args );\n\n\t\t\t\t\t\t\t\t\t// Support: Promises/A+ section 2.3.1\n\t\t\t\t\t\t\t\t\t// https://promisesaplus.com/#point-48\n\t\t\t\t\t\t\t\t\tif ( returned === deferred.promise() ) {\n\t\t\t\t\t\t\t\t\t\tthrow new TypeError( \"Thenable self-resolution\" );\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t// Support: Promises/A+ sections 2.3.3.1, 3.5\n\t\t\t\t\t\t\t\t\t// https://promisesaplus.com/#point-54\n\t\t\t\t\t\t\t\t\t// https://promisesaplus.com/#point-75\n\t\t\t\t\t\t\t\t\t// Retrieve `then` only once\n\t\t\t\t\t\t\t\t\tthen = returned &&\n\n\t\t\t\t\t\t\t\t\t\t// Support: Promises/A+ section 2.3.4\n\t\t\t\t\t\t\t\t\t\t// https://promisesaplus.com/#point-64\n\t\t\t\t\t\t\t\t\t\t// Only check objects and functions for thenability\n\t\t\t\t\t\t\t\t\t\t( typeof returned === \"object\" ||\n\t\t\t\t\t\t\t\t\t\t\ttypeof returned === \"function\" ) &&\n\t\t\t\t\t\t\t\t\t\treturned.then;\n\n\t\t\t\t\t\t\t\t\t// Handle a returned thenable\n\t\t\t\t\t\t\t\t\tif ( isFunction( then ) ) {\n\n\t\t\t\t\t\t\t\t\t\t// Special processors (notify) just wait for resolution\n\t\t\t\t\t\t\t\t\t\tif ( special ) {\n\t\t\t\t\t\t\t\t\t\t\tthen.call(\n\t\t\t\t\t\t\t\t\t\t\t\treturned,\n\t\t\t\t\t\t\t\t\t\t\t\tresolve( maxDepth, deferred, Identity, special ),\n\t\t\t\t\t\t\t\t\t\t\t\tresolve( maxDepth, deferred, Thrower, special )\n\t\t\t\t\t\t\t\t\t\t\t);\n\n\t\t\t\t\t\t\t\t\t\t// Normal processors (resolve) also hook into progress\n\t\t\t\t\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t\t\t\t\t// ...and disregard older resolution values\n\t\t\t\t\t\t\t\t\t\t\tmaxDepth++;\n\n\t\t\t\t\t\t\t\t\t\t\tthen.call(\n\t\t\t\t\t\t\t\t\t\t\t\treturned,\n\t\t\t\t\t\t\t\t\t\t\t\tresolve( maxDepth, deferred, Identity, special ),\n\t\t\t\t\t\t\t\t\t\t\t\tresolve( maxDepth, deferred, Thrower, special ),\n\t\t\t\t\t\t\t\t\t\t\t\tresolve( maxDepth, deferred, Identity,\n\t\t\t\t\t\t\t\t\t\t\t\t\tdeferred.notifyWith )\n\t\t\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t// Handle all other returned values\n\t\t\t\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t\t\t\t// Only substitute handlers pass on context\n\t\t\t\t\t\t\t\t\t\t// and multiple values (non-spec behavior)\n\t\t\t\t\t\t\t\t\t\tif ( handler !== Identity ) {\n\t\t\t\t\t\t\t\t\t\t\tthat = undefined;\n\t\t\t\t\t\t\t\t\t\t\targs = [ returned ];\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t// Process the value(s)\n\t\t\t\t\t\t\t\t\t\t// Default process is resolve\n\t\t\t\t\t\t\t\t\t\t( special || deferred.resolveWith )( that, args );\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t},\n\n\t\t\t\t\t\t\t\t// Only normal processors (resolve) catch and reject exceptions\n\t\t\t\t\t\t\t\tprocess = special ?\n\t\t\t\t\t\t\t\t\tmightThrow :\n\t\t\t\t\t\t\t\t\tfunction() {\n\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\tmightThrow();\n\t\t\t\t\t\t\t\t\t\t} catch ( e ) {\n\n\t\t\t\t\t\t\t\t\t\t\tif ( jQuery.Deferred.exceptionHook ) {\n\t\t\t\t\t\t\t\t\t\t\t\tjQuery.Deferred.exceptionHook( e,\n\t\t\t\t\t\t\t\t\t\t\t\t\tprocess.stackTrace );\n\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t// Support: Promises/A+ section 2.3.3.3.4.1\n\t\t\t\t\t\t\t\t\t\t\t// https://promisesaplus.com/#point-61\n\t\t\t\t\t\t\t\t\t\t\t// Ignore post-resolution exceptions\n\t\t\t\t\t\t\t\t\t\t\tif ( depth + 1 >= maxDepth ) {\n\n\t\t\t\t\t\t\t\t\t\t\t\t// Only substitute handlers pass on context\n\t\t\t\t\t\t\t\t\t\t\t\t// and multiple values (non-spec behavior)\n\t\t\t\t\t\t\t\t\t\t\t\tif ( handler !== Thrower ) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tthat = undefined;\n\t\t\t\t\t\t\t\t\t\t\t\t\targs = [ e ];\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\tdeferred.rejectWith( that, args );\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t};\n\n\t\t\t\t\t\t\t// Support: Promises/A+ section 2.3.3.3.1\n\t\t\t\t\t\t\t// https://promisesaplus.com/#point-57\n\t\t\t\t\t\t\t// Re-resolve promises immediately to dodge false rejection from\n\t\t\t\t\t\t\t// subsequent errors\n\t\t\t\t\t\t\tif ( depth ) {\n\t\t\t\t\t\t\t\tprocess();\n\t\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t\t// Call an optional hook to record the stack, in case of exception\n\t\t\t\t\t\t\t\t// since it's otherwise lost when execution goes async\n\t\t\t\t\t\t\t\tif ( jQuery.Deferred.getStackHook ) {\n\t\t\t\t\t\t\t\t\tprocess.stackTrace = jQuery.Deferred.getStackHook();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\twindow.setTimeout( process );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t};\n\t\t\t\t\t}\n\n\t\t\t\t\treturn jQuery.Deferred( function( newDefer ) {\n\n\t\t\t\t\t\t// progress_handlers.add( ... )\n\t\t\t\t\t\ttuples[ 0 ][ 3 ].add(\n\t\t\t\t\t\t\tresolve(\n\t\t\t\t\t\t\t\t0,\n\t\t\t\t\t\t\t\tnewDefer,\n\t\t\t\t\t\t\t\tisFunction( onProgress ) ?\n\t\t\t\t\t\t\t\t\tonProgress :\n\t\t\t\t\t\t\t\t\tIdentity,\n\t\t\t\t\t\t\t\tnewDefer.notifyWith\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t);\n\n\t\t\t\t\t\t// fulfilled_handlers.add( ... )\n\t\t\t\t\t\ttuples[ 1 ][ 3 ].add(\n\t\t\t\t\t\t\tresolve(\n\t\t\t\t\t\t\t\t0,\n\t\t\t\t\t\t\t\tnewDefer,\n\t\t\t\t\t\t\t\tisFunction( onFulfilled ) ?\n\t\t\t\t\t\t\t\t\tonFulfilled :\n\t\t\t\t\t\t\t\t\tIdentity\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t);\n\n\t\t\t\t\t\t// rejected_handlers.add( ... )\n\t\t\t\t\t\ttuples[ 2 ][ 3 ].add(\n\t\t\t\t\t\t\tresolve(\n\t\t\t\t\t\t\t\t0,\n\t\t\t\t\t\t\t\tnewDefer,\n\t\t\t\t\t\t\t\tisFunction( onRejected ) ?\n\t\t\t\t\t\t\t\t\tonRejected :\n\t\t\t\t\t\t\t\t\tThrower\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t);\n\t\t\t\t\t} ).promise();\n\t\t\t\t},\n\n\t\t\t\t// Get a promise for this deferred\n\t\t\t\t// If obj is provided, the promise aspect is added to the object\n\t\t\t\tpromise: function( obj ) {\n\t\t\t\t\treturn obj != null ? jQuery.extend( obj, promise ) : promise;\n\t\t\t\t}\n\t\t\t},\n\t\t\tdeferred = {};\n\n\t\t// Add list-specific methods\n\t\tjQuery.each( tuples, function( i, tuple ) {\n\t\t\tvar list = tuple[ 2 ],\n\t\t\t\tstateString = tuple[ 5 ];\n\n\t\t\t// promise.progress = list.add\n\t\t\t// promise.done = list.add\n\t\t\t// promise.fail = list.add\n\t\t\tpromise[ tuple[ 1 ] ] = list.add;\n\n\t\t\t// Handle state\n\t\t\tif ( stateString ) {\n\t\t\t\tlist.add(\n\t\t\t\t\tfunction() {\n\n\t\t\t\t\t\t// state = \"resolved\" (i.e., fulfilled)\n\t\t\t\t\t\t// state = \"rejected\"\n\t\t\t\t\t\tstate = stateString;\n\t\t\t\t\t},\n\n\t\t\t\t\t// rejected_callbacks.disable\n\t\t\t\t\t// fulfilled_callbacks.disable\n\t\t\t\t\ttuples[ 3 - i ][ 2 ].disable,\n\n\t\t\t\t\t// rejected_handlers.disable\n\t\t\t\t\t// fulfilled_handlers.disable\n\t\t\t\t\ttuples[ 3 - i ][ 3 ].disable,\n\n\t\t\t\t\t// progress_callbacks.lock\n\t\t\t\t\ttuples[ 0 ][ 2 ].lock,\n\n\t\t\t\t\t// progress_handlers.lock\n\t\t\t\t\ttuples[ 0 ][ 3 ].lock\n\t\t\t\t);\n\t\t\t}\n\n\t\t\t// progress_handlers.fire\n\t\t\t// fulfilled_handlers.fire\n\t\t\t// rejected_handlers.fire\n\t\t\tlist.add( tuple[ 3 ].fire );\n\n\t\t\t// deferred.notify = function() { deferred.notifyWith(...) }\n\t\t\t// deferred.resolve = function() { deferred.resolveWith(...) }\n\t\t\t// deferred.reject = function() { deferred.rejectWith(...) }\n\t\t\tdeferred[ tuple[ 0 ] ] = function() {\n\t\t\t\tdeferred[ tuple[ 0 ] + \"With\" ]( this === deferred ? undefined : this, arguments );\n\t\t\t\treturn this;\n\t\t\t};\n\n\t\t\t// deferred.notifyWith = list.fireWith\n\t\t\t// deferred.resolveWith = list.fireWith\n\t\t\t// deferred.rejectWith = list.fireWith\n\t\t\tdeferred[ tuple[ 0 ] + \"With\" ] = list.fireWith;\n\t\t} );\n\n\t\t// Make the deferred a promise\n\t\tpromise.promise( deferred );\n\n\t\t// Call given func if any\n\t\tif ( func ) {\n\t\t\tfunc.call( deferred, deferred );\n\t\t}\n\n\t\t// All done!\n\t\treturn deferred;\n\t},\n\n\t// Deferred helper\n\twhen: function( singleValue ) {\n\t\tvar\n\n\t\t\t// count of uncompleted subordinates\n\t\t\tremaining = arguments.length,\n\n\t\t\t// count of unprocessed arguments\n\t\t\ti = remaining,\n\n\t\t\t// subordinate fulfillment data\n\t\t\tresolveContexts = Array( i ),\n\t\t\tresolveValues = slice.call( arguments ),\n\n\t\t\t// the master Deferred\n\t\t\tmaster = jQuery.Deferred(),\n\n\t\t\t// subordinate callback factory\n\t\t\tupdateFunc = function( i ) {\n\t\t\t\treturn function( value ) {\n\t\t\t\t\tresolveContexts[ i ] = this;\n\t\t\t\t\tresolveValues[ i ] = arguments.length > 1 ? slice.call( arguments ) : value;\n\t\t\t\t\tif ( !( --remaining ) ) {\n\t\t\t\t\t\tmaster.resolveWith( resolveContexts, resolveValues );\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t};\n\n\t\t// Single- and empty arguments are adopted like Promise.resolve\n\t\tif ( remaining <= 1 ) {\n\t\t\tadoptValue( singleValue, master.done( updateFunc( i ) ).resolve, master.reject,\n\t\t\t\t!remaining );\n\n\t\t\t// Use .then() to unwrap secondary thenables (cf. gh-3000)\n\t\t\tif ( master.state() === \"pending\" ||\n\t\t\t\tisFunction( resolveValues[ i ] && resolveValues[ i ].then ) ) {\n\n\t\t\t\treturn master.then();\n\t\t\t}\n\t\t}\n\n\t\t// Multiple arguments are aggregated like Promise.all array elements\n\t\twhile ( i-- ) {\n\t\t\tadoptValue( resolveValues[ i ], updateFunc( i ), master.reject );\n\t\t}\n\n\t\treturn master.promise();\n\t}\n} );\n\n\n// These usually indicate a programmer mistake during development,\n// warn about them ASAP rather than swallowing them by default.\nvar rerrorNames = /^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;\n\njQuery.Deferred.exceptionHook = function( error, stack ) {\n\n\t// Support: IE 8 - 9 only\n\t// Console exists when dev tools are open, which can happen at any time\n\tif ( window.console && window.console.warn && error && rerrorNames.test( error.name ) ) {\n\t\twindow.console.warn( \"jQuery.Deferred exception: \" + error.message, error.stack, stack );\n\t}\n};\n\n\n\n\njQuery.readyException = function( error ) {\n\twindow.setTimeout( function() {\n\t\tthrow error;\n\t} );\n};\n\n\n\n\n// The deferred used on DOM ready\nvar readyList = jQuery.Deferred();\n\njQuery.fn.ready = function( fn ) {\n\n\treadyList\n\t\t.then( fn )\n\n\t\t// Wrap jQuery.readyException in a function so that the lookup\n\t\t// happens at the time of error handling instead of callback\n\t\t// registration.\n\t\t.catch( function( error ) {\n\t\t\tjQuery.readyException( error );\n\t\t} );\n\n\treturn this;\n};\n\njQuery.extend( {\n\n\t// Is the DOM ready to be used? Set to true once it occurs.\n\tisReady: false,\n\n\t// A counter to track how many items to wait for before\n\t// the ready event fires. See #6781\n\treadyWait: 1,\n\n\t// Handle when the DOM is ready\n\tready: function( wait ) {\n\n\t\t// Abort if there are pending holds or we're already ready\n\t\tif ( wait === true ? --jQuery.readyWait : jQuery.isReady ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Remember that the DOM is ready\n\t\tjQuery.isReady = true;\n\n\t\t// If a normal DOM Ready event fired, decrement, and wait if need be\n\t\tif ( wait !== true && --jQuery.readyWait > 0 ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// If there are functions bound, to execute\n\t\treadyList.resolveWith( document, [ jQuery ] );\n\t}\n} );\n\njQuery.ready.then = readyList.then;\n\n// The ready event handler and self cleanup method\nfunction completed() {\n\tdocument.removeEventListener( \"DOMContentLoaded\", completed );\n\twindow.removeEventListener( \"load\", completed );\n\tjQuery.ready();\n}\n\n// Catch cases where $(document).ready() is called\n// after the browser event has already occurred.\n// Support: IE <=9 - 10 only\n// Older IE sometimes signals \"interactive\" too soon\nif ( document.readyState === \"complete\" ||\n\t( document.readyState !== \"loading\" && !document.documentElement.doScroll ) ) {\n\n\t// Handle it asynchronously to allow scripts the opportunity to delay ready\n\twindow.setTimeout( jQuery.ready );\n\n} else {\n\n\t// Use the handy event callback\n\tdocument.addEventListener( \"DOMContentLoaded\", completed );\n\n\t// A fallback to window.onload, that will always work\n\twindow.addEventListener( \"load\", completed );\n}\n\n\n\n\n// Multifunctional method to get and set values of a collection\n// The value/s can optionally be executed if it's a function\nvar access = function( elems, fn, key, value, chainable, emptyGet, raw ) {\n\tvar i = 0,\n\t\tlen = elems.length,\n\t\tbulk = key == null;\n\n\t// Sets many values\n\tif ( toType( key ) === \"object\" ) {\n\t\tchainable = true;\n\t\tfor ( i in key ) {\n\t\t\taccess( elems, fn, i, key[ i ], true, emptyGet, raw );\n\t\t}\n\n\t// Sets one value\n\t} else if ( value !== undefined ) {\n\t\tchainable = true;\n\n\t\tif ( !isFunction( value ) ) {\n\t\t\traw = true;\n\t\t}\n\n\t\tif ( bulk ) {\n\n\t\t\t// Bulk operations run against the entire set\n\t\t\tif ( raw ) {\n\t\t\t\tfn.call( elems, value );\n\t\t\t\tfn = null;\n\n\t\t\t// ...except when executing function values\n\t\t\t} else {\n\t\t\t\tbulk = fn;\n\t\t\t\tfn = function( elem, _key, value ) {\n\t\t\t\t\treturn bulk.call( jQuery( elem ), value );\n\t\t\t\t};\n\t\t\t}\n\t\t}\n\n\t\tif ( fn ) {\n\t\t\tfor ( ; i < len; i++ ) {\n\t\t\t\tfn(\n\t\t\t\t\telems[ i ], key, raw ?\n\t\t\t\t\tvalue :\n\t\t\t\t\tvalue.call( elems[ i ], i, fn( elems[ i ], key ) )\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t}\n\n\tif ( chainable ) {\n\t\treturn elems;\n\t}\n\n\t// Gets\n\tif ( bulk ) {\n\t\treturn fn.call( elems );\n\t}\n\n\treturn len ? fn( elems[ 0 ], key ) : emptyGet;\n};\n\n\n// Matches dashed string for camelizing\nvar rmsPrefix = /^-ms-/,\n\trdashAlpha = /-([a-z])/g;\n\n// Used by camelCase as callback to replace()\nfunction fcamelCase( _all, letter ) {\n\treturn letter.toUpperCase();\n}\n\n// Convert dashed to camelCase; used by the css and data modules\n// Support: IE <=9 - 11, Edge 12 - 15\n// Microsoft forgot to hump their vendor prefix (#9572)\nfunction camelCase( string ) {\n\treturn string.replace( rmsPrefix, \"ms-\" ).replace( rdashAlpha, fcamelCase );\n}\nvar acceptData = function( owner ) {\n\n\t// Accepts only:\n\t// - Node\n\t// - Node.ELEMENT_NODE\n\t// - Node.DOCUMENT_NODE\n\t// - Object\n\t// - Any\n\treturn owner.nodeType === 1 || owner.nodeType === 9 || !( +owner.nodeType );\n};\n\n\n\n\nfunction Data() {\n\tthis.expando = jQuery.expando + Data.uid++;\n}\n\nData.uid = 1;\n\nData.prototype = {\n\n\tcache: function( owner ) {\n\n\t\t// Check if the owner object already has a cache\n\t\tvar value = owner[ this.expando ];\n\n\t\t// If not, create one\n\t\tif ( !value ) {\n\t\t\tvalue = {};\n\n\t\t\t// We can accept data for non-element nodes in modern browsers,\n\t\t\t// but we should not, see #8335.\n\t\t\t// Always return an empty object.\n\t\t\tif ( acceptData( owner ) ) {\n\n\t\t\t\t// If it is a node unlikely to be stringify-ed or looped over\n\t\t\t\t// use plain assignment\n\t\t\t\tif ( owner.nodeType ) {\n\t\t\t\t\towner[ this.expando ] = value;\n\n\t\t\t\t// Otherwise secure it in a non-enumerable property\n\t\t\t\t// configurable must be true to allow the property to be\n\t\t\t\t// deleted when data is removed\n\t\t\t\t} else {\n\t\t\t\t\tObject.defineProperty( owner, this.expando, {\n\t\t\t\t\t\tvalue: value,\n\t\t\t\t\t\tconfigurable: true\n\t\t\t\t\t} );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn value;\n\t},\n\tset: function( owner, data, value ) {\n\t\tvar prop,\n\t\t\tcache = this.cache( owner );\n\n\t\t// Handle: [ owner, key, value ] args\n\t\t// Always use camelCase key (gh-2257)\n\t\tif ( typeof data === \"string\" ) {\n\t\t\tcache[ camelCase( data ) ] = value;\n\n\t\t// Handle: [ owner, { properties } ] args\n\t\t} else {\n\n\t\t\t// Copy the properties one-by-one to the cache object\n\t\t\tfor ( prop in data ) {\n\t\t\t\tcache[ camelCase( prop ) ] = data[ prop ];\n\t\t\t}\n\t\t}\n\t\treturn cache;\n\t},\n\tget: function( owner, key ) {\n\t\treturn key === undefined ?\n\t\t\tthis.cache( owner ) :\n\n\t\t\t// Always use camelCase key (gh-2257)\n\t\t\towner[ this.expando ] && owner[ this.expando ][ camelCase( key ) ];\n\t},\n\taccess: function( owner, key, value ) {\n\n\t\t// In cases where either:\n\t\t//\n\t\t// 1. No key was specified\n\t\t// 2. A string key was specified, but no value provided\n\t\t//\n\t\t// Take the \"read\" path and allow the get method to determine\n\t\t// which value to return, respectively either:\n\t\t//\n\t\t// 1. The entire cache object\n\t\t// 2. The data stored at the key\n\t\t//\n\t\tif ( key === undefined ||\n\t\t\t\t( ( key && typeof key === \"string\" ) && value === undefined ) ) {\n\n\t\t\treturn this.get( owner, key );\n\t\t}\n\n\t\t// When the key is not a string, or both a key and value\n\t\t// are specified, set or extend (existing objects) with either:\n\t\t//\n\t\t// 1. An object of properties\n\t\t// 2. A key and value\n\t\t//\n\t\tthis.set( owner, key, value );\n\n\t\t// Since the \"set\" path can have two possible entry points\n\t\t// return the expected data based on which path was taken[*]\n\t\treturn value !== undefined ? value : key;\n\t},\n\tremove: function( owner, key ) {\n\t\tvar i,\n\t\t\tcache = owner[ this.expando ];\n\n\t\tif ( cache === undefined ) {\n\t\t\treturn;\n\t\t}\n\n\t\tif ( key !== undefined ) {\n\n\t\t\t// Support array or space separated string of keys\n\t\t\tif ( Array.isArray( key ) ) {\n\n\t\t\t\t// If key is an array of keys...\n\t\t\t\t// We always set camelCase keys, so remove that.\n\t\t\t\tkey = key.map( camelCase );\n\t\t\t} else {\n\t\t\t\tkey = camelCase( key );\n\n\t\t\t\t// If a key with the spaces exists, use it.\n\t\t\t\t// Otherwise, create an array by matching non-whitespace\n\t\t\t\tkey = key in cache ?\n\t\t\t\t\t[ key ] :\n\t\t\t\t\t( key.match( rnothtmlwhite ) || [] );\n\t\t\t}\n\n\t\t\ti = key.length;\n\n\t\t\twhile ( i-- ) {\n\t\t\t\tdelete cache[ key[ i ] ];\n\t\t\t}\n\t\t}\n\n\t\t// Remove the expando if there's no more data\n\t\tif ( key === undefined || jQuery.isEmptyObject( cache ) ) {\n\n\t\t\t// Support: Chrome <=35 - 45\n\t\t\t// Webkit & Blink performance suffers when deleting properties\n\t\t\t// from DOM nodes, so set to undefined instead\n\t\t\t// https://bugs.chromium.org/p/chromium/issues/detail?id=378607 (bug restricted)\n\t\t\tif ( owner.nodeType ) {\n\t\t\t\towner[ this.expando ] = undefined;\n\t\t\t} else {\n\t\t\t\tdelete owner[ this.expando ];\n\t\t\t}\n\t\t}\n\t},\n\thasData: function( owner ) {\n\t\tvar cache = owner[ this.expando ];\n\t\treturn cache !== undefined && !jQuery.isEmptyObject( cache );\n\t}\n};\nvar dataPriv = new Data();\n\nvar dataUser = new Data();\n\n\n\n//\tImplementation Summary\n//\n//\t1. Enforce API surface and semantic compatibility with 1.9.x branch\n//\t2. Improve the module's maintainability by reducing the storage\n//\t\tpaths to a single mechanism.\n//\t3. Use the same single mechanism to support \"private\" and \"user\" data.\n//\t4. _Never_ expose \"private\" data to user code (TODO: Drop _data, _removeData)\n//\t5. Avoid exposing implementation details on user objects (eg. expando properties)\n//\t6. Provide a clear path for implementation upgrade to WeakMap in 2014\n\nvar rbrace = /^(?:\\{[\\w\\W]*\\}|\\[[\\w\\W]*\\])$/,\n\trmultiDash = /[A-Z]/g;\n\nfunction getData( data ) {\n\tif ( data === \"true\" ) {\n\t\treturn true;\n\t}\n\n\tif ( data === \"false\" ) {\n\t\treturn false;\n\t}\n\n\tif ( data === \"null\" ) {\n\t\treturn null;\n\t}\n\n\t// Only convert to a number if it doesn't change the string\n\tif ( data === +data + \"\" ) {\n\t\treturn +data;\n\t}\n\n\tif ( rbrace.test( data ) ) {\n\t\treturn JSON.parse( data );\n\t}\n\n\treturn data;\n}\n\nfunction dataAttr( elem, key, data ) {\n\tvar name;\n\n\t// If nothing was found internally, try to fetch any\n\t// data from the HTML5 data-* attribute\n\tif ( data === undefined && elem.nodeType === 1 ) {\n\t\tname = \"data-\" + key.replace( rmultiDash, \"-$&\" ).toLowerCase();\n\t\tdata = elem.getAttribute( name );\n\n\t\tif ( typeof data === \"string\" ) {\n\t\t\ttry {\n\t\t\t\tdata = getData( data );\n\t\t\t} catch ( e ) {}\n\n\t\t\t// Make sure we set the data so it isn't changed later\n\t\t\tdataUser.set( elem, key, data );\n\t\t} else {\n\t\t\tdata = undefined;\n\t\t}\n\t}\n\treturn data;\n}\n\njQuery.extend( {\n\thasData: function( elem ) {\n\t\treturn dataUser.hasData( elem ) || dataPriv.hasData( elem );\n\t},\n\n\tdata: function( elem, name, data ) {\n\t\treturn dataUser.access( elem, name, data );\n\t},\n\n\tremoveData: function( elem, name ) {\n\t\tdataUser.remove( elem, name );\n\t},\n\n\t// TODO: Now that all calls to _data and _removeData have been replaced\n\t// with direct calls to dataPriv methods, these can be deprecated.\n\t_data: function( elem, name, data ) {\n\t\treturn dataPriv.access( elem, name, data );\n\t},\n\n\t_removeData: function( elem, name ) {\n\t\tdataPriv.remove( elem, name );\n\t}\n} );\n\njQuery.fn.extend( {\n\tdata: function( key, value ) {\n\t\tvar i, name, data,\n\t\t\telem = this[ 0 ],\n\t\t\tattrs = elem && elem.attributes;\n\n\t\t// Gets all values\n\t\tif ( key === undefined ) {\n\t\t\tif ( this.length ) {\n\t\t\t\tdata = dataUser.get( elem );\n\n\t\t\t\tif ( elem.nodeType === 1 && !dataPriv.get( elem, \"hasDataAttrs\" ) ) {\n\t\t\t\t\ti = attrs.length;\n\t\t\t\t\twhile ( i-- ) {\n\n\t\t\t\t\t\t// Support: IE 11 only\n\t\t\t\t\t\t// The attrs elements can be null (#14894)\n\t\t\t\t\t\tif ( attrs[ i ] ) {\n\t\t\t\t\t\t\tname = attrs[ i ].name;\n\t\t\t\t\t\t\tif ( name.indexOf( \"data-\" ) === 0 ) {\n\t\t\t\t\t\t\t\tname = camelCase( name.slice( 5 ) );\n\t\t\t\t\t\t\t\tdataAttr( elem, name, data[ name ] );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tdataPriv.set( elem, \"hasDataAttrs\", true );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn data;\n\t\t}\n\n\t\t// Sets multiple values\n\t\tif ( typeof key === \"object\" ) {\n\t\t\treturn this.each( function() {\n\t\t\t\tdataUser.set( this, key );\n\t\t\t} );\n\t\t}\n\n\t\treturn access( this, function( value ) {\n\t\t\tvar data;\n\n\t\t\t// The calling jQuery object (element matches) is not empty\n\t\t\t// (and therefore has an element appears at this[ 0 ]) and the\n\t\t\t// `value` parameter was not undefined. An empty jQuery object\n\t\t\t// will result in `undefined` for elem = this[ 0 ] which will\n\t\t\t// throw an exception if an attempt to read a data cache is made.\n\t\t\tif ( elem && value === undefined ) {\n\n\t\t\t\t// Attempt to get data from the cache\n\t\t\t\t// The key will always be camelCased in Data\n\t\t\t\tdata = dataUser.get( elem, key );\n\t\t\t\tif ( data !== undefined ) {\n\t\t\t\t\treturn data;\n\t\t\t\t}\n\n\t\t\t\t// Attempt to \"discover\" the data in\n\t\t\t\t// HTML5 custom data-* attrs\n\t\t\t\tdata = dataAttr( elem, key );\n\t\t\t\tif ( data !== undefined ) {\n\t\t\t\t\treturn data;\n\t\t\t\t}\n\n\t\t\t\t// We tried really hard, but the data doesn't exist.\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// Set the data...\n\t\t\tthis.each( function() {\n\n\t\t\t\t// We always store the camelCased key\n\t\t\t\tdataUser.set( this, key, value );\n\t\t\t} );\n\t\t}, null, value, arguments.length > 1, null, true );\n\t},\n\n\tremoveData: function( key ) {\n\t\treturn this.each( function() {\n\t\t\tdataUser.remove( this, key );\n\t\t} );\n\t}\n} );\n\n\njQuery.extend( {\n\tqueue: function( elem, type, data ) {\n\t\tvar queue;\n\n\t\tif ( elem ) {\n\t\t\ttype = ( type || \"fx\" ) + \"queue\";\n\t\t\tqueue = dataPriv.get( elem, type );\n\n\t\t\t// Speed up dequeue by getting out quickly if this is just a lookup\n\t\t\tif ( data ) {\n\t\t\t\tif ( !queue || Array.isArray( data ) ) {\n\t\t\t\t\tqueue = dataPriv.access( elem, type, jQuery.makeArray( data ) );\n\t\t\t\t} else {\n\t\t\t\t\tqueue.push( data );\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn queue || [];\n\t\t}\n\t},\n\n\tdequeue: function( elem, type ) {\n\t\ttype = type || \"fx\";\n\n\t\tvar queue = jQuery.queue( elem, type ),\n\t\t\tstartLength = queue.length,\n\t\t\tfn = queue.shift(),\n\t\t\thooks = jQuery._queueHooks( elem, type ),\n\t\t\tnext = function() {\n\t\t\t\tjQuery.dequeue( elem, type );\n\t\t\t};\n\n\t\t// If the fx queue is dequeued, always remove the progress sentinel\n\t\tif ( fn === \"inprogress\" ) {\n\t\t\tfn = queue.shift();\n\t\t\tstartLength--;\n\t\t}\n\n\t\tif ( fn ) {\n\n\t\t\t// Add a progress sentinel to prevent the fx queue from being\n\t\t\t// automatically dequeued\n\t\t\tif ( type === \"fx\" ) {\n\t\t\t\tqueue.unshift( \"inprogress\" );\n\t\t\t}\n\n\t\t\t// Clear up the last queue stop function\n\t\t\tdelete hooks.stop;\n\t\t\tfn.call( elem, next, hooks );\n\t\t}\n\n\t\tif ( !startLength && hooks ) {\n\t\t\thooks.empty.fire();\n\t\t}\n\t},\n\n\t// Not public - generate a queueHooks object, or return the current one\n\t_queueHooks: function( elem, type ) {\n\t\tvar key = type + \"queueHooks\";\n\t\treturn dataPriv.get( elem, key ) || dataPriv.access( elem, key, {\n\t\t\tempty: jQuery.Callbacks( \"once memory\" ).add( function() {\n\t\t\t\tdataPriv.remove( elem, [ type + \"queue\", key ] );\n\t\t\t} )\n\t\t} );\n\t}\n} );\n\njQuery.fn.extend( {\n\tqueue: function( type, data ) {\n\t\tvar setter = 2;\n\n\t\tif ( typeof type !== \"string\" ) {\n\t\t\tdata = type;\n\t\t\ttype = \"fx\";\n\t\t\tsetter--;\n\t\t}\n\n\t\tif ( arguments.length < setter ) {\n\t\t\treturn jQuery.queue( this[ 0 ], type );\n\t\t}\n\n\t\treturn data === undefined ?\n\t\t\tthis :\n\t\t\tthis.each( function() {\n\t\t\t\tvar queue = jQuery.queue( this, type, data );\n\n\t\t\t\t// Ensure a hooks for this queue\n\t\t\t\tjQuery._queueHooks( this, type );\n\n\t\t\t\tif ( type === \"fx\" && queue[ 0 ] !== \"inprogress\" ) {\n\t\t\t\t\tjQuery.dequeue( this, type );\n\t\t\t\t}\n\t\t\t} );\n\t},\n\tdequeue: function( type ) {\n\t\treturn this.each( function() {\n\t\t\tjQuery.dequeue( this, type );\n\t\t} );\n\t},\n\tclearQueue: function( type ) {\n\t\treturn this.queue( type || \"fx\", [] );\n\t},\n\n\t// Get a promise resolved when queues of a certain type\n\t// are emptied (fx is the type by default)\n\tpromise: function( type, obj ) {\n\t\tvar tmp,\n\t\t\tcount = 1,\n\t\t\tdefer = jQuery.Deferred(),\n\t\t\telements = this,\n\t\t\ti = this.length,\n\t\t\tresolve = function() {\n\t\t\t\tif ( !( --count ) ) {\n\t\t\t\t\tdefer.resolveWith( elements, [ elements ] );\n\t\t\t\t}\n\t\t\t};\n\n\t\tif ( typeof type !== \"string\" ) {\n\t\t\tobj = type;\n\t\t\ttype = undefined;\n\t\t}\n\t\ttype = type || \"fx\";\n\n\t\twhile ( i-- ) {\n\t\t\ttmp = dataPriv.get( elements[ i ], type + \"queueHooks\" );\n\t\t\tif ( tmp && tmp.empty ) {\n\t\t\t\tcount++;\n\t\t\t\ttmp.empty.add( resolve );\n\t\t\t}\n\t\t}\n\t\tresolve();\n\t\treturn defer.promise( obj );\n\t}\n} );\nvar pnum = ( /[+-]?(?:\\d*\\.|)\\d+(?:[eE][+-]?\\d+|)/ ).source;\n\nvar rcssNum = new RegExp( \"^(?:([+-])=|)(\" + pnum + \")([a-z%]*)$\", \"i\" );\n\n\nvar cssExpand = [ \"Top\", \"Right\", \"Bottom\", \"Left\" ];\n\nvar documentElement = document.documentElement;\n\n\n\n\tvar isAttached = function( elem ) {\n\t\t\treturn jQuery.contains( elem.ownerDocument, elem );\n\t\t},\n\t\tcomposed = { composed: true };\n\n\t// Support: IE 9 - 11+, Edge 12 - 18+, iOS 10.0 - 10.2 only\n\t// Check attachment across shadow DOM boundaries when possible (gh-3504)\n\t// Support: iOS 10.0-10.2 only\n\t// Early iOS 10 versions support `attachShadow` but not `getRootNode`,\n\t// leading to errors. We need to check for `getRootNode`.\n\tif ( documentElement.getRootNode ) {\n\t\tisAttached = function( elem ) {\n\t\t\treturn jQuery.contains( elem.ownerDocument, elem ) ||\n\t\t\t\telem.getRootNode( composed ) === elem.ownerDocument;\n\t\t};\n\t}\nvar isHiddenWithinTree = function( elem, el ) {\n\n\t\t// isHiddenWithinTree might be called from jQuery#filter function;\n\t\t// in that case, element will be second argument\n\t\telem = el || elem;\n\n\t\t// Inline style trumps all\n\t\treturn elem.style.display === \"none\" ||\n\t\t\telem.style.display === \"\" &&\n\n\t\t\t// Otherwise, check computed style\n\t\t\t// Support: Firefox <=43 - 45\n\t\t\t// Disconnected elements can have computed display: none, so first confirm that elem is\n\t\t\t// in the document.\n\t\t\tisAttached( elem ) &&\n\n\t\t\tjQuery.css( elem, \"display\" ) === \"none\";\n\t};\n\n\n\nfunction adjustCSS( elem, prop, valueParts, tween ) {\n\tvar adjusted, scale,\n\t\tmaxIterations = 20,\n\t\tcurrentValue = tween ?\n\t\t\tfunction() {\n\t\t\t\treturn tween.cur();\n\t\t\t} :\n\t\t\tfunction() {\n\t\t\t\treturn jQuery.css( elem, prop, \"\" );\n\t\t\t},\n\t\tinitial = currentValue(),\n\t\tunit = valueParts && valueParts[ 3 ] || ( jQuery.cssNumber[ prop ] ? \"\" : \"px\" ),\n\n\t\t// Starting value computation is required for potential unit mismatches\n\t\tinitialInUnit = elem.nodeType &&\n\t\t\t( jQuery.cssNumber[ prop ] || unit !== \"px\" && +initial ) &&\n\t\t\trcssNum.exec( jQuery.css( elem, prop ) );\n\n\tif ( initialInUnit && initialInUnit[ 3 ] !== unit ) {\n\n\t\t// Support: Firefox <=54\n\t\t// Halve the iteration target value to prevent interference from CSS upper bounds (gh-2144)\n\t\tinitial = initial / 2;\n\n\t\t// Trust units reported by jQuery.css\n\t\tunit = unit || initialInUnit[ 3 ];\n\n\t\t// Iteratively approximate from a nonzero starting point\n\t\tinitialInUnit = +initial || 1;\n\n\t\twhile ( maxIterations-- ) {\n\n\t\t\t// Evaluate and update our best guess (doubling guesses that zero out).\n\t\t\t// Finish if the scale equals or crosses 1 (making the old*new product non-positive).\n\t\t\tjQuery.style( elem, prop, initialInUnit + unit );\n\t\t\tif ( ( 1 - scale ) * ( 1 - ( scale = currentValue() / initial || 0.5 ) ) <= 0 ) {\n\t\t\t\tmaxIterations = 0;\n\t\t\t}\n\t\t\tinitialInUnit = initialInUnit / scale;\n\n\t\t}\n\n\t\tinitialInUnit = initialInUnit * 2;\n\t\tjQuery.style( elem, prop, initialInUnit + unit );\n\n\t\t// Make sure we update the tween properties later on\n\t\tvalueParts = valueParts || [];\n\t}\n\n\tif ( valueParts ) {\n\t\tinitialInUnit = +initialInUnit || +initial || 0;\n\n\t\t// Apply relative offset (+=/-=) if specified\n\t\tadjusted = valueParts[ 1 ] ?\n\t\t\tinitialInUnit + ( valueParts[ 1 ] + 1 ) * valueParts[ 2 ] :\n\t\t\t+valueParts[ 2 ];\n\t\tif ( tween ) {\n\t\t\ttween.unit = unit;\n\t\t\ttween.start = initialInUnit;\n\t\t\ttween.end = adjusted;\n\t\t}\n\t}\n\treturn adjusted;\n}\n\n\nvar defaultDisplayMap = {};\n\nfunction getDefaultDisplay( elem ) {\n\tvar temp,\n\t\tdoc = elem.ownerDocument,\n\t\tnodeName = elem.nodeName,\n\t\tdisplay = defaultDisplayMap[ nodeName ];\n\n\tif ( display ) {\n\t\treturn display;\n\t}\n\n\ttemp = doc.body.appendChild( doc.createElement( nodeName ) );\n\tdisplay = jQuery.css( temp, \"display\" );\n\n\ttemp.parentNode.removeChild( temp );\n\n\tif ( display === \"none\" ) {\n\t\tdisplay = \"block\";\n\t}\n\tdefaultDisplayMap[ nodeName ] = display;\n\n\treturn display;\n}\n\nfunction showHide( elements, show ) {\n\tvar display, elem,\n\t\tvalues = [],\n\t\tindex = 0,\n\t\tlength = elements.length;\n\n\t// Determine new display value for elements that need to change\n\tfor ( ; index < length; index++ ) {\n\t\telem = elements[ index ];\n\t\tif ( !elem.style ) {\n\t\t\tcontinue;\n\t\t}\n\n\t\tdisplay = elem.style.display;\n\t\tif ( show ) {\n\n\t\t\t// Since we force visibility upon cascade-hidden elements, an immediate (and slow)\n\t\t\t// check is required in this first loop unless we have a nonempty display value (either\n\t\t\t// inline or about-to-be-restored)\n\t\t\tif ( display === \"none\" ) {\n\t\t\t\tvalues[ index ] = dataPriv.get( elem, \"display\" ) || null;\n\t\t\t\tif ( !values[ index ] ) {\n\t\t\t\t\telem.style.display = \"\";\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ( elem.style.display === \"\" && isHiddenWithinTree( elem ) ) {\n\t\t\t\tvalues[ index ] = getDefaultDisplay( elem );\n\t\t\t}\n\t\t} else {\n\t\t\tif ( display !== \"none\" ) {\n\t\t\t\tvalues[ index ] = \"none\";\n\n\t\t\t\t// Remember what we're overwriting\n\t\t\t\tdataPriv.set( elem, \"display\", display );\n\t\t\t}\n\t\t}\n\t}\n\n\t// Set the display of the elements in a second loop to avoid constant reflow\n\tfor ( index = 0; index < length; index++ ) {\n\t\tif ( values[ index ] != null ) {\n\t\t\telements[ index ].style.display = values[ index ];\n\t\t}\n\t}\n\n\treturn elements;\n}\n\njQuery.fn.extend( {\n\tshow: function() {\n\t\treturn showHide( this, true );\n\t},\n\thide: function() {\n\t\treturn showHide( this );\n\t},\n\ttoggle: function( state ) {\n\t\tif ( typeof state === \"boolean\" ) {\n\t\t\treturn state ? this.show() : this.hide();\n\t\t}\n\n\t\treturn this.each( function() {\n\t\t\tif ( isHiddenWithinTree( this ) ) {\n\t\t\t\tjQuery( this ).show();\n\t\t\t} else {\n\t\t\t\tjQuery( this ).hide();\n\t\t\t}\n\t\t} );\n\t}\n} );\nvar rcheckableType = ( /^(?:checkbox|radio)$/i );\n\nvar rtagName = ( /<([a-z][^\\/\\0>\\x20\\t\\r\\n\\f]*)/i );\n\nvar rscriptType = ( /^$|^module$|\\/(?:java|ecma)script/i );\n\n\n\n( function() {\n\tvar fragment = document.createDocumentFragment(),\n\t\tdiv = fragment.appendChild( document.createElement( \"div\" ) ),\n\t\tinput = document.createElement( \"input\" );\n\n\t// Support: Android 4.0 - 4.3 only\n\t// Check state lost if the name is set (#11217)\n\t// Support: Windows Web Apps (WWA)\n\t// `name` and `type` must use .setAttribute for WWA (#14901)\n\tinput.setAttribute( \"type\", \"radio\" );\n\tinput.setAttribute( \"checked\", \"checked\" );\n\tinput.setAttribute( \"name\", \"t\" );\n\n\tdiv.appendChild( input );\n\n\t// Support: Android <=4.1 only\n\t// Older WebKit doesn't clone checked state correctly in fragments\n\tsupport.checkClone = div.cloneNode( true ).cloneNode( true ).lastChild.checked;\n\n\t// Support: IE <=11 only\n\t// Make sure textarea (and checkbox) defaultValue is properly cloned\n\tdiv.innerHTML = \"\";\n\tsupport.noCloneChecked = !!div.cloneNode( true ).lastChild.defaultValue;\n\n\t// Support: IE <=9 only\n\t// IE <=9 replaces tags with their contents when inserted outside of\n\t// the select element.\n\tdiv.innerHTML = \" \";\n\tsupport.option = !!div.lastChild;\n} )();\n\n\n// We have to close these tags to support XHTML (#13200)\nvar wrapMap = {\n\n\t// XHTML parsers do not magically insert elements in the\n\t// same way that tag soup parsers do. So we cannot shorten\n\t// this by omitting or other required elements.\n\tthead: [ 1, \"\" ],\n\tcol: [ 2, \"\" ],\n\ttr: [ 2, \"\" ],\n\ttd: [ 3, \"\" ],\n\n\t_default: [ 0, \"\", \"\" ]\n};\n\nwrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;\nwrapMap.th = wrapMap.td;\n\n// Support: IE <=9 only\nif ( !support.option ) {\n\twrapMap.optgroup = wrapMap.option = [ 1, \"\", \" \" ];\n}\n\n\nfunction getAll( context, tag ) {\n\n\t// Support: IE <=9 - 11 only\n\t// Use typeof to avoid zero-argument method invocation on host objects (#15151)\n\tvar ret;\n\n\tif ( typeof context.getElementsByTagName !== \"undefined\" ) {\n\t\tret = context.getElementsByTagName( tag || \"*\" );\n\n\t} else if ( typeof context.querySelectorAll !== \"undefined\" ) {\n\t\tret = context.querySelectorAll( tag || \"*\" );\n\n\t} else {\n\t\tret = [];\n\t}\n\n\tif ( tag === undefined || tag && nodeName( context, tag ) ) {\n\t\treturn jQuery.merge( [ context ], ret );\n\t}\n\n\treturn ret;\n}\n\n\n// Mark scripts as having already been evaluated\nfunction setGlobalEval( elems, refElements ) {\n\tvar i = 0,\n\t\tl = elems.length;\n\n\tfor ( ; i < l; i++ ) {\n\t\tdataPriv.set(\n\t\t\telems[ i ],\n\t\t\t\"globalEval\",\n\t\t\t!refElements || dataPriv.get( refElements[ i ], \"globalEval\" )\n\t\t);\n\t}\n}\n\n\nvar rhtml = /<|?\\w+;/;\n\nfunction buildFragment( elems, context, scripts, selection, ignored ) {\n\tvar elem, tmp, tag, wrap, attached, j,\n\t\tfragment = context.createDocumentFragment(),\n\t\tnodes = [],\n\t\ti = 0,\n\t\tl = elems.length;\n\n\tfor ( ; i < l; i++ ) {\n\t\telem = elems[ i ];\n\n\t\tif ( elem || elem === 0 ) {\n\n\t\t\t// Add nodes directly\n\t\t\tif ( toType( elem ) === \"object\" ) {\n\n\t\t\t\t// Support: Android <=4.0 only, PhantomJS 1 only\n\t\t\t\t// push.apply(_, arraylike) throws on ancient WebKit\n\t\t\t\tjQuery.merge( nodes, elem.nodeType ? [ elem ] : elem );\n\n\t\t\t// Convert non-html into a text node\n\t\t\t} else if ( !rhtml.test( elem ) ) {\n\t\t\t\tnodes.push( context.createTextNode( elem ) );\n\n\t\t\t// Convert html into DOM nodes\n\t\t\t} else {\n\t\t\t\ttmp = tmp || fragment.appendChild( context.createElement( \"div\" ) );\n\n\t\t\t\t// Deserialize a standard representation\n\t\t\t\ttag = ( rtagName.exec( elem ) || [ \"\", \"\" ] )[ 1 ].toLowerCase();\n\t\t\t\twrap = wrapMap[ tag ] || wrapMap._default;\n\t\t\t\ttmp.innerHTML = wrap[ 1 ] + jQuery.htmlPrefilter( elem ) + wrap[ 2 ];\n\n\t\t\t\t// Descend through wrappers to the right content\n\t\t\t\tj = wrap[ 0 ];\n\t\t\t\twhile ( j-- ) {\n\t\t\t\t\ttmp = tmp.lastChild;\n\t\t\t\t}\n\n\t\t\t\t// Support: Android <=4.0 only, PhantomJS 1 only\n\t\t\t\t// push.apply(_, arraylike) throws on ancient WebKit\n\t\t\t\tjQuery.merge( nodes, tmp.childNodes );\n\n\t\t\t\t// Remember the top-level container\n\t\t\t\ttmp = fragment.firstChild;\n\n\t\t\t\t// Ensure the created nodes are orphaned (#12392)\n\t\t\t\ttmp.textContent = \"\";\n\t\t\t}\n\t\t}\n\t}\n\n\t// Remove wrapper from fragment\n\tfragment.textContent = \"\";\n\n\ti = 0;\n\twhile ( ( elem = nodes[ i++ ] ) ) {\n\n\t\t// Skip elements already in the context collection (trac-4087)\n\t\tif ( selection && jQuery.inArray( elem, selection ) > -1 ) {\n\t\t\tif ( ignored ) {\n\t\t\t\tignored.push( elem );\n\t\t\t}\n\t\t\tcontinue;\n\t\t}\n\n\t\tattached = isAttached( elem );\n\n\t\t// Append to fragment\n\t\ttmp = getAll( fragment.appendChild( elem ), \"script\" );\n\n\t\t// Preserve script evaluation history\n\t\tif ( attached ) {\n\t\t\tsetGlobalEval( tmp );\n\t\t}\n\n\t\t// Capture executables\n\t\tif ( scripts ) {\n\t\t\tj = 0;\n\t\t\twhile ( ( elem = tmp[ j++ ] ) ) {\n\t\t\t\tif ( rscriptType.test( elem.type || \"\" ) ) {\n\t\t\t\t\tscripts.push( elem );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn fragment;\n}\n\n\nvar\n\trkeyEvent = /^key/,\n\trmouseEvent = /^(?:mouse|pointer|contextmenu|drag|drop)|click/,\n\trtypenamespace = /^([^.]*)(?:\\.(.+)|)/;\n\nfunction returnTrue() {\n\treturn true;\n}\n\nfunction returnFalse() {\n\treturn false;\n}\n\n// Support: IE <=9 - 11+\n// focus() and blur() are asynchronous, except when they are no-op.\n// So expect focus to be synchronous when the element is already active,\n// and blur to be synchronous when the element is not already active.\n// (focus and blur are always synchronous in other supported browsers,\n// this just defines when we can count on it).\nfunction expectSync( elem, type ) {\n\treturn ( elem === safeActiveElement() ) === ( type === \"focus\" );\n}\n\n// Support: IE <=9 only\n// Accessing document.activeElement can throw unexpectedly\n// https://bugs.jquery.com/ticket/13393\nfunction safeActiveElement() {\n\ttry {\n\t\treturn document.activeElement;\n\t} catch ( err ) { }\n}\n\nfunction on( elem, types, selector, data, fn, one ) {\n\tvar origFn, type;\n\n\t// Types can be a map of types/handlers\n\tif ( typeof types === \"object\" ) {\n\n\t\t// ( types-Object, selector, data )\n\t\tif ( typeof selector !== \"string\" ) {\n\n\t\t\t// ( types-Object, data )\n\t\t\tdata = data || selector;\n\t\t\tselector = undefined;\n\t\t}\n\t\tfor ( type in types ) {\n\t\t\ton( elem, type, selector, data, types[ type ], one );\n\t\t}\n\t\treturn elem;\n\t}\n\n\tif ( data == null && fn == null ) {\n\n\t\t// ( types, fn )\n\t\tfn = selector;\n\t\tdata = selector = undefined;\n\t} else if ( fn == null ) {\n\t\tif ( typeof selector === \"string\" ) {\n\n\t\t\t// ( types, selector, fn )\n\t\t\tfn = data;\n\t\t\tdata = undefined;\n\t\t} else {\n\n\t\t\t// ( types, data, fn )\n\t\t\tfn = data;\n\t\t\tdata = selector;\n\t\t\tselector = undefined;\n\t\t}\n\t}\n\tif ( fn === false ) {\n\t\tfn = returnFalse;\n\t} else if ( !fn ) {\n\t\treturn elem;\n\t}\n\n\tif ( one === 1 ) {\n\t\torigFn = fn;\n\t\tfn = function( event ) {\n\n\t\t\t// Can use an empty set, since event contains the info\n\t\t\tjQuery().off( event );\n\t\t\treturn origFn.apply( this, arguments );\n\t\t};\n\n\t\t// Use same guid so caller can remove using origFn\n\t\tfn.guid = origFn.guid || ( origFn.guid = jQuery.guid++ );\n\t}\n\treturn elem.each( function() {\n\t\tjQuery.event.add( this, types, fn, data, selector );\n\t} );\n}\n\n/*\n * Helper functions for managing events -- not part of the public interface.\n * Props to Dean Edwards' addEvent library for many of the ideas.\n */\njQuery.event = {\n\n\tglobal: {},\n\n\tadd: function( elem, types, handler, data, selector ) {\n\n\t\tvar handleObjIn, eventHandle, tmp,\n\t\t\tevents, t, handleObj,\n\t\t\tspecial, handlers, type, namespaces, origType,\n\t\t\telemData = dataPriv.get( elem );\n\n\t\t// Only attach events to objects that accept data\n\t\tif ( !acceptData( elem ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Caller can pass in an object of custom data in lieu of the handler\n\t\tif ( handler.handler ) {\n\t\t\thandleObjIn = handler;\n\t\t\thandler = handleObjIn.handler;\n\t\t\tselector = handleObjIn.selector;\n\t\t}\n\n\t\t// Ensure that invalid selectors throw exceptions at attach time\n\t\t// Evaluate against documentElement in case elem is a non-element node (e.g., document)\n\t\tif ( selector ) {\n\t\t\tjQuery.find.matchesSelector( documentElement, selector );\n\t\t}\n\n\t\t// Make sure that the handler has a unique ID, used to find/remove it later\n\t\tif ( !handler.guid ) {\n\t\t\thandler.guid = jQuery.guid++;\n\t\t}\n\n\t\t// Init the element's event structure and main handler, if this is the first\n\t\tif ( !( events = elemData.events ) ) {\n\t\t\tevents = elemData.events = Object.create( null );\n\t\t}\n\t\tif ( !( eventHandle = elemData.handle ) ) {\n\t\t\teventHandle = elemData.handle = function( e ) {\n\n\t\t\t\t// Discard the second event of a jQuery.event.trigger() and\n\t\t\t\t// when an event is called after a page has unloaded\n\t\t\t\treturn typeof jQuery !== \"undefined\" && jQuery.event.triggered !== e.type ?\n\t\t\t\t\tjQuery.event.dispatch.apply( elem, arguments ) : undefined;\n\t\t\t};\n\t\t}\n\n\t\t// Handle multiple events separated by a space\n\t\ttypes = ( types || \"\" ).match( rnothtmlwhite ) || [ \"\" ];\n\t\tt = types.length;\n\t\twhile ( t-- ) {\n\t\t\ttmp = rtypenamespace.exec( types[ t ] ) || [];\n\t\t\ttype = origType = tmp[ 1 ];\n\t\t\tnamespaces = ( tmp[ 2 ] || \"\" ).split( \".\" ).sort();\n\n\t\t\t// There *must* be a type, no attaching namespace-only handlers\n\t\t\tif ( !type ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// If event changes its type, use the special event handlers for the changed type\n\t\t\tspecial = jQuery.event.special[ type ] || {};\n\n\t\t\t// If selector defined, determine special event api type, otherwise given type\n\t\t\ttype = ( selector ? special.delegateType : special.bindType ) || type;\n\n\t\t\t// Update special based on newly reset type\n\t\t\tspecial = jQuery.event.special[ type ] || {};\n\n\t\t\t// handleObj is passed to all event handlers\n\t\t\thandleObj = jQuery.extend( {\n\t\t\t\ttype: type,\n\t\t\t\torigType: origType,\n\t\t\t\tdata: data,\n\t\t\t\thandler: handler,\n\t\t\t\tguid: handler.guid,\n\t\t\t\tselector: selector,\n\t\t\t\tneedsContext: selector && jQuery.expr.match.needsContext.test( selector ),\n\t\t\t\tnamespace: namespaces.join( \".\" )\n\t\t\t}, handleObjIn );\n\n\t\t\t// Init the event handler queue if we're the first\n\t\t\tif ( !( handlers = events[ type ] ) ) {\n\t\t\t\thandlers = events[ type ] = [];\n\t\t\t\thandlers.delegateCount = 0;\n\n\t\t\t\t// Only use addEventListener if the special events handler returns false\n\t\t\t\tif ( !special.setup ||\n\t\t\t\t\tspecial.setup.call( elem, data, namespaces, eventHandle ) === false ) {\n\n\t\t\t\t\tif ( elem.addEventListener ) {\n\t\t\t\t\t\telem.addEventListener( type, eventHandle );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ( special.add ) {\n\t\t\t\tspecial.add.call( elem, handleObj );\n\n\t\t\t\tif ( !handleObj.handler.guid ) {\n\t\t\t\t\thandleObj.handler.guid = handler.guid;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Add to the element's handler list, delegates in front\n\t\t\tif ( selector ) {\n\t\t\t\thandlers.splice( handlers.delegateCount++, 0, handleObj );\n\t\t\t} else {\n\t\t\t\thandlers.push( handleObj );\n\t\t\t}\n\n\t\t\t// Keep track of which events have ever been used, for event optimization\n\t\t\tjQuery.event.global[ type ] = true;\n\t\t}\n\n\t},\n\n\t// Detach an event or set of events from an element\n\tremove: function( elem, types, handler, selector, mappedTypes ) {\n\n\t\tvar j, origCount, tmp,\n\t\t\tevents, t, handleObj,\n\t\t\tspecial, handlers, type, namespaces, origType,\n\t\t\telemData = dataPriv.hasData( elem ) && dataPriv.get( elem );\n\n\t\tif ( !elemData || !( events = elemData.events ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Once for each type.namespace in types; type may be omitted\n\t\ttypes = ( types || \"\" ).match( rnothtmlwhite ) || [ \"\" ];\n\t\tt = types.length;\n\t\twhile ( t-- ) {\n\t\t\ttmp = rtypenamespace.exec( types[ t ] ) || [];\n\t\t\ttype = origType = tmp[ 1 ];\n\t\t\tnamespaces = ( tmp[ 2 ] || \"\" ).split( \".\" ).sort();\n\n\t\t\t// Unbind all events (on this namespace, if provided) for the element\n\t\t\tif ( !type ) {\n\t\t\t\tfor ( type in events ) {\n\t\t\t\t\tjQuery.event.remove( elem, type + types[ t ], handler, selector, true );\n\t\t\t\t}\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tspecial = jQuery.event.special[ type ] || {};\n\t\t\ttype = ( selector ? special.delegateType : special.bindType ) || type;\n\t\t\thandlers = events[ type ] || [];\n\t\t\ttmp = tmp[ 2 ] &&\n\t\t\t\tnew RegExp( \"(^|\\\\.)\" + namespaces.join( \"\\\\.(?:.*\\\\.|)\" ) + \"(\\\\.|$)\" );\n\n\t\t\t// Remove matching events\n\t\t\torigCount = j = handlers.length;\n\t\t\twhile ( j-- ) {\n\t\t\t\thandleObj = handlers[ j ];\n\n\t\t\t\tif ( ( mappedTypes || origType === handleObj.origType ) &&\n\t\t\t\t\t( !handler || handler.guid === handleObj.guid ) &&\n\t\t\t\t\t( !tmp || tmp.test( handleObj.namespace ) ) &&\n\t\t\t\t\t( !selector || selector === handleObj.selector ||\n\t\t\t\t\t\tselector === \"**\" && handleObj.selector ) ) {\n\t\t\t\t\thandlers.splice( j, 1 );\n\n\t\t\t\t\tif ( handleObj.selector ) {\n\t\t\t\t\t\thandlers.delegateCount--;\n\t\t\t\t\t}\n\t\t\t\t\tif ( special.remove ) {\n\t\t\t\t\t\tspecial.remove.call( elem, handleObj );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Remove generic event handler if we removed something and no more handlers exist\n\t\t\t// (avoids potential for endless recursion during removal of special event handlers)\n\t\t\tif ( origCount && !handlers.length ) {\n\t\t\t\tif ( !special.teardown ||\n\t\t\t\t\tspecial.teardown.call( elem, namespaces, elemData.handle ) === false ) {\n\n\t\t\t\t\tjQuery.removeEvent( elem, type, elemData.handle );\n\t\t\t\t}\n\n\t\t\t\tdelete events[ type ];\n\t\t\t}\n\t\t}\n\n\t\t// Remove data and the expando if it's no longer used\n\t\tif ( jQuery.isEmptyObject( events ) ) {\n\t\t\tdataPriv.remove( elem, \"handle events\" );\n\t\t}\n\t},\n\n\tdispatch: function( nativeEvent ) {\n\n\t\tvar i, j, ret, matched, handleObj, handlerQueue,\n\t\t\targs = new Array( arguments.length ),\n\n\t\t\t// Make a writable jQuery.Event from the native event object\n\t\t\tevent = jQuery.event.fix( nativeEvent ),\n\n\t\t\thandlers = (\n\t\t\t\t\tdataPriv.get( this, \"events\" ) || Object.create( null )\n\t\t\t\t)[ event.type ] || [],\n\t\t\tspecial = jQuery.event.special[ event.type ] || {};\n\n\t\t// Use the fix-ed jQuery.Event rather than the (read-only) native event\n\t\targs[ 0 ] = event;\n\n\t\tfor ( i = 1; i < arguments.length; i++ ) {\n\t\t\targs[ i ] = arguments[ i ];\n\t\t}\n\n\t\tevent.delegateTarget = this;\n\n\t\t// Call the preDispatch hook for the mapped type, and let it bail if desired\n\t\tif ( special.preDispatch && special.preDispatch.call( this, event ) === false ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Determine handlers\n\t\thandlerQueue = jQuery.event.handlers.call( this, event, handlers );\n\n\t\t// Run delegates first; they may want to stop propagation beneath us\n\t\ti = 0;\n\t\twhile ( ( matched = handlerQueue[ i++ ] ) && !event.isPropagationStopped() ) {\n\t\t\tevent.currentTarget = matched.elem;\n\n\t\t\tj = 0;\n\t\t\twhile ( ( handleObj = matched.handlers[ j++ ] ) &&\n\t\t\t\t!event.isImmediatePropagationStopped() ) {\n\n\t\t\t\t// If the event is namespaced, then each handler is only invoked if it is\n\t\t\t\t// specially universal or its namespaces are a superset of the event's.\n\t\t\t\tif ( !event.rnamespace || handleObj.namespace === false ||\n\t\t\t\t\tevent.rnamespace.test( handleObj.namespace ) ) {\n\n\t\t\t\t\tevent.handleObj = handleObj;\n\t\t\t\t\tevent.data = handleObj.data;\n\n\t\t\t\t\tret = ( ( jQuery.event.special[ handleObj.origType ] || {} ).handle ||\n\t\t\t\t\t\thandleObj.handler ).apply( matched.elem, args );\n\n\t\t\t\t\tif ( ret !== undefined ) {\n\t\t\t\t\t\tif ( ( event.result = ret ) === false ) {\n\t\t\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\t\t\tevent.stopPropagation();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Call the postDispatch hook for the mapped type\n\t\tif ( special.postDispatch ) {\n\t\t\tspecial.postDispatch.call( this, event );\n\t\t}\n\n\t\treturn event.result;\n\t},\n\n\thandlers: function( event, handlers ) {\n\t\tvar i, handleObj, sel, matchedHandlers, matchedSelectors,\n\t\t\thandlerQueue = [],\n\t\t\tdelegateCount = handlers.delegateCount,\n\t\t\tcur = event.target;\n\n\t\t// Find delegate handlers\n\t\tif ( delegateCount &&\n\n\t\t\t// Support: IE <=9\n\t\t\t// Black-hole SVG instance trees (trac-13180)\n\t\t\tcur.nodeType &&\n\n\t\t\t// Support: Firefox <=42\n\t\t\t// Suppress spec-violating clicks indicating a non-primary pointer button (trac-3861)\n\t\t\t// https://www.w3.org/TR/DOM-Level-3-Events/#event-type-click\n\t\t\t// Support: IE 11 only\n\t\t\t// ...but not arrow key \"clicks\" of radio inputs, which can have `button` -1 (gh-2343)\n\t\t\t!( event.type === \"click\" && event.button >= 1 ) ) {\n\n\t\t\tfor ( ; cur !== this; cur = cur.parentNode || this ) {\n\n\t\t\t\t// Don't check non-elements (#13208)\n\t\t\t\t// Don't process clicks on disabled elements (#6911, #8165, #11382, #11764)\n\t\t\t\tif ( cur.nodeType === 1 && !( event.type === \"click\" && cur.disabled === true ) ) {\n\t\t\t\t\tmatchedHandlers = [];\n\t\t\t\t\tmatchedSelectors = {};\n\t\t\t\t\tfor ( i = 0; i < delegateCount; i++ ) {\n\t\t\t\t\t\thandleObj = handlers[ i ];\n\n\t\t\t\t\t\t// Don't conflict with Object.prototype properties (#13203)\n\t\t\t\t\t\tsel = handleObj.selector + \" \";\n\n\t\t\t\t\t\tif ( matchedSelectors[ sel ] === undefined ) {\n\t\t\t\t\t\t\tmatchedSelectors[ sel ] = handleObj.needsContext ?\n\t\t\t\t\t\t\t\tjQuery( sel, this ).index( cur ) > -1 :\n\t\t\t\t\t\t\t\tjQuery.find( sel, this, null, [ cur ] ).length;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif ( matchedSelectors[ sel ] ) {\n\t\t\t\t\t\t\tmatchedHandlers.push( handleObj );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif ( matchedHandlers.length ) {\n\t\t\t\t\t\thandlerQueue.push( { elem: cur, handlers: matchedHandlers } );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Add the remaining (directly-bound) handlers\n\t\tcur = this;\n\t\tif ( delegateCount < handlers.length ) {\n\t\t\thandlerQueue.push( { elem: cur, handlers: handlers.slice( delegateCount ) } );\n\t\t}\n\n\t\treturn handlerQueue;\n\t},\n\n\taddProp: function( name, hook ) {\n\t\tObject.defineProperty( jQuery.Event.prototype, name, {\n\t\t\tenumerable: true,\n\t\t\tconfigurable: true,\n\n\t\t\tget: isFunction( hook ) ?\n\t\t\t\tfunction() {\n\t\t\t\t\tif ( this.originalEvent ) {\n\t\t\t\t\t\t\treturn hook( this.originalEvent );\n\t\t\t\t\t}\n\t\t\t\t} :\n\t\t\t\tfunction() {\n\t\t\t\t\tif ( this.originalEvent ) {\n\t\t\t\t\t\t\treturn this.originalEvent[ name ];\n\t\t\t\t\t}\n\t\t\t\t},\n\n\t\t\tset: function( value ) {\n\t\t\t\tObject.defineProperty( this, name, {\n\t\t\t\t\tenumerable: true,\n\t\t\t\t\tconfigurable: true,\n\t\t\t\t\twritable: true,\n\t\t\t\t\tvalue: value\n\t\t\t\t} );\n\t\t\t}\n\t\t} );\n\t},\n\n\tfix: function( originalEvent ) {\n\t\treturn originalEvent[ jQuery.expando ] ?\n\t\t\toriginalEvent :\n\t\t\tnew jQuery.Event( originalEvent );\n\t},\n\n\tspecial: {\n\t\tload: {\n\n\t\t\t// Prevent triggered image.load events from bubbling to window.load\n\t\t\tnoBubble: true\n\t\t},\n\t\tclick: {\n\n\t\t\t// Utilize native event to ensure correct state for checkable inputs\n\t\t\tsetup: function( data ) {\n\n\t\t\t\t// For mutual compressibility with _default, replace `this` access with a local var.\n\t\t\t\t// `|| data` is dead code meant only to preserve the variable through minification.\n\t\t\t\tvar el = this || data;\n\n\t\t\t\t// Claim the first handler\n\t\t\t\tif ( rcheckableType.test( el.type ) &&\n\t\t\t\t\tel.click && nodeName( el, \"input\" ) ) {\n\n\t\t\t\t\t// dataPriv.set( el, \"click\", ... )\n\t\t\t\t\tleverageNative( el, \"click\", returnTrue );\n\t\t\t\t}\n\n\t\t\t\t// Return false to allow normal processing in the caller\n\t\t\t\treturn false;\n\t\t\t},\n\t\t\ttrigger: function( data ) {\n\n\t\t\t\t// For mutual compressibility with _default, replace `this` access with a local var.\n\t\t\t\t// `|| data` is dead code meant only to preserve the variable through minification.\n\t\t\t\tvar el = this || data;\n\n\t\t\t\t// Force setup before triggering a click\n\t\t\t\tif ( rcheckableType.test( el.type ) &&\n\t\t\t\t\tel.click && nodeName( el, \"input\" ) ) {\n\n\t\t\t\t\tleverageNative( el, \"click\" );\n\t\t\t\t}\n\n\t\t\t\t// Return non-false to allow normal event-path propagation\n\t\t\t\treturn true;\n\t\t\t},\n\n\t\t\t// For cross-browser consistency, suppress native .click() on links\n\t\t\t// Also prevent it if we're currently inside a leveraged native-event stack\n\t\t\t_default: function( event ) {\n\t\t\t\tvar target = event.target;\n\t\t\t\treturn rcheckableType.test( target.type ) &&\n\t\t\t\t\ttarget.click && nodeName( target, \"input\" ) &&\n\t\t\t\t\tdataPriv.get( target, \"click\" ) ||\n\t\t\t\t\tnodeName( target, \"a\" );\n\t\t\t}\n\t\t},\n\n\t\tbeforeunload: {\n\t\t\tpostDispatch: function( event ) {\n\n\t\t\t\t// Support: Firefox 20+\n\t\t\t\t// Firefox doesn't alert if the returnValue field is not set.\n\t\t\t\tif ( event.result !== undefined && event.originalEvent ) {\n\t\t\t\t\tevent.originalEvent.returnValue = event.result;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n};\n\n// Ensure the presence of an event listener that handles manually-triggered\n// synthetic events by interrupting progress until reinvoked in response to\n// *native* events that it fires directly, ensuring that state changes have\n// already occurred before other listeners are invoked.\nfunction leverageNative( el, type, expectSync ) {\n\n\t// Missing expectSync indicates a trigger call, which must force setup through jQuery.event.add\n\tif ( !expectSync ) {\n\t\tif ( dataPriv.get( el, type ) === undefined ) {\n\t\t\tjQuery.event.add( el, type, returnTrue );\n\t\t}\n\t\treturn;\n\t}\n\n\t// Register the controller as a special universal handler for all event namespaces\n\tdataPriv.set( el, type, false );\n\tjQuery.event.add( el, type, {\n\t\tnamespace: false,\n\t\thandler: function( event ) {\n\t\t\tvar notAsync, result,\n\t\t\t\tsaved = dataPriv.get( this, type );\n\n\t\t\tif ( ( event.isTrigger & 1 ) && this[ type ] ) {\n\n\t\t\t\t// Interrupt processing of the outer synthetic .trigger()ed event\n\t\t\t\t// Saved data should be false in such cases, but might be a leftover capture object\n\t\t\t\t// from an async native handler (gh-4350)\n\t\t\t\tif ( !saved.length ) {\n\n\t\t\t\t\t// Store arguments for use when handling the inner native event\n\t\t\t\t\t// There will always be at least one argument (an event object), so this array\n\t\t\t\t\t// will not be confused with a leftover capture object.\n\t\t\t\t\tsaved = slice.call( arguments );\n\t\t\t\t\tdataPriv.set( this, type, saved );\n\n\t\t\t\t\t// Trigger the native event and capture its result\n\t\t\t\t\t// Support: IE <=9 - 11+\n\t\t\t\t\t// focus() and blur() are asynchronous\n\t\t\t\t\tnotAsync = expectSync( this, type );\n\t\t\t\t\tthis[ type ]();\n\t\t\t\t\tresult = dataPriv.get( this, type );\n\t\t\t\t\tif ( saved !== result || notAsync ) {\n\t\t\t\t\t\tdataPriv.set( this, type, false );\n\t\t\t\t\t} else {\n\t\t\t\t\t\tresult = {};\n\t\t\t\t\t}\n\t\t\t\t\tif ( saved !== result ) {\n\n\t\t\t\t\t\t// Cancel the outer synthetic event\n\t\t\t\t\t\tevent.stopImmediatePropagation();\n\t\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\t\treturn result.value;\n\t\t\t\t\t}\n\n\t\t\t\t// If this is an inner synthetic event for an event with a bubbling surrogate\n\t\t\t\t// (focus or blur), assume that the surrogate already propagated from triggering the\n\t\t\t\t// native event and prevent that from happening again here.\n\t\t\t\t// This technically gets the ordering wrong w.r.t. to `.trigger()` (in which the\n\t\t\t\t// bubbling surrogate propagates *after* the non-bubbling base), but that seems\n\t\t\t\t// less bad than duplication.\n\t\t\t\t} else if ( ( jQuery.event.special[ type ] || {} ).delegateType ) {\n\t\t\t\t\tevent.stopPropagation();\n\t\t\t\t}\n\n\t\t\t// If this is a native event triggered above, everything is now in order\n\t\t\t// Fire an inner synthetic event with the original arguments\n\t\t\t} else if ( saved.length ) {\n\n\t\t\t\t// ...and capture the result\n\t\t\t\tdataPriv.set( this, type, {\n\t\t\t\t\tvalue: jQuery.event.trigger(\n\n\t\t\t\t\t\t// Support: IE <=9 - 11+\n\t\t\t\t\t\t// Extend with the prototype to reset the above stopImmediatePropagation()\n\t\t\t\t\t\tjQuery.extend( saved[ 0 ], jQuery.Event.prototype ),\n\t\t\t\t\t\tsaved.slice( 1 ),\n\t\t\t\t\t\tthis\n\t\t\t\t\t)\n\t\t\t\t} );\n\n\t\t\t\t// Abort handling of the native event\n\t\t\t\tevent.stopImmediatePropagation();\n\t\t\t}\n\t\t}\n\t} );\n}\n\njQuery.removeEvent = function( elem, type, handle ) {\n\n\t// This \"if\" is needed for plain objects\n\tif ( elem.removeEventListener ) {\n\t\telem.removeEventListener( type, handle );\n\t}\n};\n\njQuery.Event = function( src, props ) {\n\n\t// Allow instantiation without the 'new' keyword\n\tif ( !( this instanceof jQuery.Event ) ) {\n\t\treturn new jQuery.Event( src, props );\n\t}\n\n\t// Event object\n\tif ( src && src.type ) {\n\t\tthis.originalEvent = src;\n\t\tthis.type = src.type;\n\n\t\t// Events bubbling up the document may have been marked as prevented\n\t\t// by a handler lower down the tree; reflect the correct value.\n\t\tthis.isDefaultPrevented = src.defaultPrevented ||\n\t\t\t\tsrc.defaultPrevented === undefined &&\n\n\t\t\t\t// Support: Android <=2.3 only\n\t\t\t\tsrc.returnValue === false ?\n\t\t\treturnTrue :\n\t\t\treturnFalse;\n\n\t\t// Create target properties\n\t\t// Support: Safari <=6 - 7 only\n\t\t// Target should not be a text node (#504, #13143)\n\t\tthis.target = ( src.target && src.target.nodeType === 3 ) ?\n\t\t\tsrc.target.parentNode :\n\t\t\tsrc.target;\n\n\t\tthis.currentTarget = src.currentTarget;\n\t\tthis.relatedTarget = src.relatedTarget;\n\n\t// Event type\n\t} else {\n\t\tthis.type = src;\n\t}\n\n\t// Put explicitly provided properties onto the event object\n\tif ( props ) {\n\t\tjQuery.extend( this, props );\n\t}\n\n\t// Create a timestamp if incoming event doesn't have one\n\tthis.timeStamp = src && src.timeStamp || Date.now();\n\n\t// Mark it as fixed\n\tthis[ jQuery.expando ] = true;\n};\n\n// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding\n// https://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html\njQuery.Event.prototype = {\n\tconstructor: jQuery.Event,\n\tisDefaultPrevented: returnFalse,\n\tisPropagationStopped: returnFalse,\n\tisImmediatePropagationStopped: returnFalse,\n\tisSimulated: false,\n\n\tpreventDefault: function() {\n\t\tvar e = this.originalEvent;\n\n\t\tthis.isDefaultPrevented = returnTrue;\n\n\t\tif ( e && !this.isSimulated ) {\n\t\t\te.preventDefault();\n\t\t}\n\t},\n\tstopPropagation: function() {\n\t\tvar e = this.originalEvent;\n\n\t\tthis.isPropagationStopped = returnTrue;\n\n\t\tif ( e && !this.isSimulated ) {\n\t\t\te.stopPropagation();\n\t\t}\n\t},\n\tstopImmediatePropagation: function() {\n\t\tvar e = this.originalEvent;\n\n\t\tthis.isImmediatePropagationStopped = returnTrue;\n\n\t\tif ( e && !this.isSimulated ) {\n\t\t\te.stopImmediatePropagation();\n\t\t}\n\n\t\tthis.stopPropagation();\n\t}\n};\n\n// Includes all common event props including KeyEvent and MouseEvent specific props\njQuery.each( {\n\taltKey: true,\n\tbubbles: true,\n\tcancelable: true,\n\tchangedTouches: true,\n\tctrlKey: true,\n\tdetail: true,\n\teventPhase: true,\n\tmetaKey: true,\n\tpageX: true,\n\tpageY: true,\n\tshiftKey: true,\n\tview: true,\n\t\"char\": true,\n\tcode: true,\n\tcharCode: true,\n\tkey: true,\n\tkeyCode: true,\n\tbutton: true,\n\tbuttons: true,\n\tclientX: true,\n\tclientY: true,\n\toffsetX: true,\n\toffsetY: true,\n\tpointerId: true,\n\tpointerType: true,\n\tscreenX: true,\n\tscreenY: true,\n\ttargetTouches: true,\n\ttoElement: true,\n\ttouches: true,\n\n\twhich: function( event ) {\n\t\tvar button = event.button;\n\n\t\t// Add which for key events\n\t\tif ( event.which == null && rkeyEvent.test( event.type ) ) {\n\t\t\treturn event.charCode != null ? event.charCode : event.keyCode;\n\t\t}\n\n\t\t// Add which for click: 1 === left; 2 === middle; 3 === right\n\t\tif ( !event.which && button !== undefined && rmouseEvent.test( event.type ) ) {\n\t\t\tif ( button & 1 ) {\n\t\t\t\treturn 1;\n\t\t\t}\n\n\t\t\tif ( button & 2 ) {\n\t\t\t\treturn 3;\n\t\t\t}\n\n\t\t\tif ( button & 4 ) {\n\t\t\t\treturn 2;\n\t\t\t}\n\n\t\t\treturn 0;\n\t\t}\n\n\t\treturn event.which;\n\t}\n}, jQuery.event.addProp );\n\njQuery.each( { focus: \"focusin\", blur: \"focusout\" }, function( type, delegateType ) {\n\tjQuery.event.special[ type ] = {\n\n\t\t// Utilize native event if possible so blur/focus sequence is correct\n\t\tsetup: function() {\n\n\t\t\t// Claim the first handler\n\t\t\t// dataPriv.set( this, \"focus\", ... )\n\t\t\t// dataPriv.set( this, \"blur\", ... )\n\t\t\tleverageNative( this, type, expectSync );\n\n\t\t\t// Return false to allow normal processing in the caller\n\t\t\treturn false;\n\t\t},\n\t\ttrigger: function() {\n\n\t\t\t// Force setup before trigger\n\t\t\tleverageNative( this, type );\n\n\t\t\t// Return non-false to allow normal event-path propagation\n\t\t\treturn true;\n\t\t},\n\n\t\tdelegateType: delegateType\n\t};\n} );\n\n// Create mouseenter/leave events using mouseover/out and event-time checks\n// so that event delegation works in jQuery.\n// Do the same for pointerenter/pointerleave and pointerover/pointerout\n//\n// Support: Safari 7 only\n// Safari sends mouseenter too often; see:\n// https://bugs.chromium.org/p/chromium/issues/detail?id=470258\n// for the description of the bug (it existed in older Chrome versions as well).\njQuery.each( {\n\tmouseenter: \"mouseover\",\n\tmouseleave: \"mouseout\",\n\tpointerenter: \"pointerover\",\n\tpointerleave: \"pointerout\"\n}, function( orig, fix ) {\n\tjQuery.event.special[ orig ] = {\n\t\tdelegateType: fix,\n\t\tbindType: fix,\n\n\t\thandle: function( event ) {\n\t\t\tvar ret,\n\t\t\t\ttarget = this,\n\t\t\t\trelated = event.relatedTarget,\n\t\t\t\thandleObj = event.handleObj;\n\n\t\t\t// For mouseenter/leave call the handler if related is outside the target.\n\t\t\t// NB: No relatedTarget if the mouse left/entered the browser window\n\t\t\tif ( !related || ( related !== target && !jQuery.contains( target, related ) ) ) {\n\t\t\t\tevent.type = handleObj.origType;\n\t\t\t\tret = handleObj.handler.apply( this, arguments );\n\t\t\t\tevent.type = fix;\n\t\t\t}\n\t\t\treturn ret;\n\t\t}\n\t};\n} );\n\njQuery.fn.extend( {\n\n\ton: function( types, selector, data, fn ) {\n\t\treturn on( this, types, selector, data, fn );\n\t},\n\tone: function( types, selector, data, fn ) {\n\t\treturn on( this, types, selector, data, fn, 1 );\n\t},\n\toff: function( types, selector, fn ) {\n\t\tvar handleObj, type;\n\t\tif ( types && types.preventDefault && types.handleObj ) {\n\n\t\t\t// ( event ) dispatched jQuery.Event\n\t\t\thandleObj = types.handleObj;\n\t\t\tjQuery( types.delegateTarget ).off(\n\t\t\t\thandleObj.namespace ?\n\t\t\t\t\thandleObj.origType + \".\" + handleObj.namespace :\n\t\t\t\t\thandleObj.origType,\n\t\t\t\thandleObj.selector,\n\t\t\t\thandleObj.handler\n\t\t\t);\n\t\t\treturn this;\n\t\t}\n\t\tif ( typeof types === \"object\" ) {\n\n\t\t\t// ( types-object [, selector] )\n\t\t\tfor ( type in types ) {\n\t\t\t\tthis.off( type, selector, types[ type ] );\n\t\t\t}\n\t\t\treturn this;\n\t\t}\n\t\tif ( selector === false || typeof selector === \"function\" ) {\n\n\t\t\t// ( types [, fn] )\n\t\t\tfn = selector;\n\t\t\tselector = undefined;\n\t\t}\n\t\tif ( fn === false ) {\n\t\t\tfn = returnFalse;\n\t\t}\n\t\treturn this.each( function() {\n\t\t\tjQuery.event.remove( this, types, fn, selector );\n\t\t} );\n\t}\n} );\n\n\nvar\n\n\t// Support: IE <=10 - 11, Edge 12 - 13 only\n\t// In IE/Edge using regex groups here causes severe slowdowns.\n\t// See https://connect.microsoft.com/IE/feedback/details/1736512/\n\trnoInnerhtml = /\n\n\n","import { render, staticRenderFns } from \"./VueTypeaheadBootstrapListItem.vue?vue&type=template&id=5bf8ce45&scoped=true&\"\nimport script from \"./VueTypeaheadBootstrapListItem.vue?vue&type=script&lang=js&\"\nexport * from \"./VueTypeaheadBootstrapListItem.vue?vue&type=script&lang=js&\"\nimport style0 from \"./VueTypeaheadBootstrapListItem.vue?vue&type=style&index=0&id=5bf8ce45&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"5bf8ce45\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('a',{class:_vm.textClasses,attrs:{\"tabindex\":\"0\",\"href\":\"#\"},on:{\"keydown\":[function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"tab\",9,$event.key,\"Tab\")){ return null; }return _vm.$emit('listItemBlur')},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"esc\",27,$event.key,[\"Esc\",\"Escape\"])){ return null; }$event.stopPropagation();$event.preventDefault();return _vm.$emit('listItemBlur')},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"down\",40,$event.key,[\"Down\",\"ArrowDown\"])){ return null; }$event.preventDefault();},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"up\",38,$event.key,[\"Up\",\"ArrowUp\"])){ return null; }$event.preventDefault();}],\"keyup\":[function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"down\",40,$event.key,[\"Down\",\"ArrowDown\"])){ return null; }return _vm.$parent.selectNextListItem($event)},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"up\",38,$event.key,[\"Up\",\"ArrowUp\"])){ return null; }return _vm.$parent.selectPreviousListItem($event)}]}},[_c('div',{staticClass:\"sr-only\"},[_vm._v(_vm._s(_vm.screenReaderText))]),_vm._v(\" \"),_c('div',{attrs:{\"aria-hidden\":\"true\"}},[_vm._t(\"suggestion\",[_c('span',{domProps:{\"innerHTML\":_vm._s(_vm.htmlText)}})],null,{ data: _vm.data, htmlText: _vm.htmlText })],2)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n \n \n \n \n \n \n
\n \n\n\n","import mod from \"-!../../../vue-loader/lib/index.js??vue-loader-options!./VueTypeaheadBootstrapList.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../vue-loader/lib/index.js??vue-loader-options!./VueTypeaheadBootstrapList.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./VueTypeaheadBootstrapList.vue?vue&type=template&id=5143ced6&\"\nimport script from \"./VueTypeaheadBootstrapList.vue?vue&type=script&lang=js&\"\nexport * from \"./VueTypeaheadBootstrapList.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:\"suggestionList\",staticClass:\"list-group shadow\"},_vm._l((_vm.matchedItems),function(item,id){return _c('vue-typeahead-bootstrap-list-item',_vm._g({key:id,attrs:{\"active\":_vm.isListItemActive(id),\"id\":(_vm.isListItemActive(id)) ? (\"selected-option-\" + _vm.vbtUniqueId) : false,\"data\":item.data,\"html-text\":_vm.highlight(item.text),\"role\":\"option\",\"aria-selected\":(_vm.isListItemActive(id)) ? 'true' : 'false',\"screen-reader-text\":item.text,\"disabled\":_vm.isDisabledItem(item),\"background-variant\":_vm.backgroundVariant,\"background-variant-resolver\":_vm.backgroundVariantResolver,\"text-variant\":_vm.textVariant},nativeOn:{\"click\":function($event){return _vm.handleHit(item, $event)}},scopedSlots:_vm._u([{key:\"suggestion\",fn:function(ref){\nvar data = ref.data;\nvar htmlText = ref.htmlText;\nreturn (_vm.$scopedSlots.suggestion)?[_vm._t(\"suggestion\",null,null,{ data: data, htmlText: htmlText })]:undefined}}],null,true)},_vm.$listeners))}),1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../vue-loader/lib/index.js??vue-loader-options!./VueTypeaheadBootstrap.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../vue-loader/lib/index.js??vue-loader-options!./VueTypeaheadBootstrap.vue?vue&type=script&lang=js&\"","\n 0) ? 'true' : 'false'\"\n >\n
\n
\n \n {{ prepend }} \n \n
\n
\n
\n \n {{ append }} \n \n
\n
\n
0\"\n :query=\"inputValue\"\n :data=\"formattedData\"\n :background-variant=\"backgroundVariant\"\n :background-variant-resolver=\"backgroundVariantResolver\"\n :text-variant=\"textVariant\"\n :maxMatches=\"maxMatches\"\n :minMatchingChars=\"minMatchingChars\"\n :disableSort=\"disableSort\"\n :showOnFocus=\"showOnFocus\"\n :showAllResults=\"showAllResults\"\n @hit=\"handleHit\"\n @listItemBlur=\"handleChildBlur\"\n :highlightClass='highlightClass'\n :disabledValues=\"disabledValues\"\n :vbtUniqueId=\"id\"\n role=\"listbox\"\n >\n \n \n \n \n \n \n
\n \n\n\n\n\n","import { render, staticRenderFns } from \"./VueTypeaheadBootstrap.vue?vue&type=template&id=dbe69e32&scoped=true&\"\nimport script from \"./VueTypeaheadBootstrap.vue?vue&type=script&lang=js&\"\nexport * from \"./VueTypeaheadBootstrap.vue?vue&type=script&lang=js&\"\nimport style0 from \"./VueTypeaheadBootstrap.vue?vue&type=style&index=0&id=dbe69e32&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"dbe69e32\",\n null\n \n)\n\nexport default component.exports","var baseIsNative = require('./_baseIsNative'),\n getValue = require('./_getValue');\n\n/**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\nfunction getNative(object, key) {\n var value = getValue(object, key);\n return baseIsNative(value) ? value : undefined;\n}\n\nmodule.exports = getNative;\n","/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return value != null && (type == 'object' || type == 'function');\n}\n\nmodule.exports = isObject;\n","module.exports = function(module) {\n\tif (!module.webpackPolyfill) {\n\t\tmodule.deprecate = function() {};\n\t\tmodule.paths = [];\n\t\t// module.parent = undefined by default\n\t\tif (!module.children) module.children = [];\n\t\tObject.defineProperty(module, \"loaded\", {\n\t\t\tenumerable: true,\n\t\t\tget: function() {\n\t\t\t\treturn module.l;\n\t\t\t}\n\t\t});\n\t\tObject.defineProperty(module, \"id\", {\n\t\t\tenumerable: true,\n\t\t\tget: function() {\n\t\t\t\treturn module.i;\n\t\t\t}\n\t\t});\n\t\tmodule.webpackPolyfill = 1;\n\t}\n\treturn module;\n};\n","var Symbol = require('./_Symbol'),\n getRawTag = require('./_getRawTag'),\n objectToString = require('./_objectToString');\n\n/** `Object#toString` result references. */\nvar nullTag = '[object Null]',\n undefinedTag = '[object Undefined]';\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n}\n\nmodule.exports = baseGetTag;\n","var arrayLikeKeys = require('./_arrayLikeKeys'),\n baseKeys = require('./_baseKeys'),\n isArrayLike = require('./isArrayLike');\n\n/**\n * Creates an array of the own enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects. See the\n * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * for more details.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keys(new Foo);\n * // => ['a', 'b'] (iteration order is not guaranteed)\n *\n * _.keys('hi');\n * // => ['0', '1']\n */\nfunction keys(object) {\n return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);\n}\n\nmodule.exports = keys;\n","/*!\n * vue-i18n v8.22.4 \n * (c) 2021 kazuya kawaguchi\n * Released under the MIT License.\n */\n/* */\n\n/**\n * constants\n */\n\nvar numberFormatKeys = [\n 'compactDisplay',\n 'currency',\n 'currencyDisplay',\n 'currencySign',\n 'localeMatcher',\n 'notation',\n 'numberingSystem',\n 'signDisplay',\n 'style',\n 'unit',\n 'unitDisplay',\n 'useGrouping',\n 'minimumIntegerDigits',\n 'minimumFractionDigits',\n 'maximumFractionDigits',\n 'minimumSignificantDigits',\n 'maximumSignificantDigits'\n];\n\n/**\n * utilities\n */\n\nfunction warn (msg, err) {\n if (typeof console !== 'undefined') {\n console.warn('[vue-i18n] ' + msg);\n /* istanbul ignore if */\n if (err) {\n console.warn(err.stack);\n }\n }\n}\n\nfunction error (msg, err) {\n if (typeof console !== 'undefined') {\n console.error('[vue-i18n] ' + msg);\n /* istanbul ignore if */\n if (err) {\n console.error(err.stack);\n }\n }\n}\n\nvar isArray = Array.isArray;\n\nfunction isObject (obj) {\n return obj !== null && typeof obj === 'object'\n}\n\nfunction isBoolean (val) {\n return typeof val === 'boolean'\n}\n\nfunction isString (val) {\n return typeof val === 'string'\n}\n\nvar toString = Object.prototype.toString;\nvar OBJECT_STRING = '[object Object]';\nfunction isPlainObject (obj) {\n return toString.call(obj) === OBJECT_STRING\n}\n\nfunction isNull (val) {\n return val === null || val === undefined\n}\n\nfunction isFunction (val) {\n return typeof val === 'function'\n}\n\nfunction parseArgs () {\n var args = [], len = arguments.length;\n while ( len-- ) args[ len ] = arguments[ len ];\n\n var locale = null;\n var params = null;\n if (args.length === 1) {\n if (isObject(args[0]) || isArray(args[0])) {\n params = args[0];\n } else if (typeof args[0] === 'string') {\n locale = args[0];\n }\n } else if (args.length === 2) {\n if (typeof args[0] === 'string') {\n locale = args[0];\n }\n /* istanbul ignore if */\n if (isObject(args[1]) || isArray(args[1])) {\n params = args[1];\n }\n }\n\n return { locale: locale, params: params }\n}\n\nfunction looseClone (obj) {\n return JSON.parse(JSON.stringify(obj))\n}\n\nfunction remove (arr, item) {\n if (arr.length) {\n var index = arr.indexOf(item);\n if (index > -1) {\n return arr.splice(index, 1)\n }\n }\n}\n\nfunction includes (arr, item) {\n return !!~arr.indexOf(item)\n}\n\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nfunction hasOwn (obj, key) {\n return hasOwnProperty.call(obj, key)\n}\n\nfunction merge (target) {\n var arguments$1 = arguments;\n\n var output = Object(target);\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments$1[i];\n if (source !== undefined && source !== null) {\n var key = (void 0);\n for (key in source) {\n if (hasOwn(source, key)) {\n if (isObject(source[key])) {\n output[key] = merge(output[key], source[key]);\n } else {\n output[key] = source[key];\n }\n }\n }\n }\n }\n return output\n}\n\nfunction looseEqual (a, b) {\n if (a === b) { return true }\n var isObjectA = isObject(a);\n var isObjectB = isObject(b);\n if (isObjectA && isObjectB) {\n try {\n var isArrayA = isArray(a);\n var isArrayB = isArray(b);\n if (isArrayA && isArrayB) {\n return a.length === b.length && a.every(function (e, i) {\n return looseEqual(e, b[i])\n })\n } else if (!isArrayA && !isArrayB) {\n var keysA = Object.keys(a);\n var keysB = Object.keys(b);\n return keysA.length === keysB.length && keysA.every(function (key) {\n return looseEqual(a[key], b[key])\n })\n } else {\n /* istanbul ignore next */\n return false\n }\n } catch (e) {\n /* istanbul ignore next */\n return false\n }\n } else if (!isObjectA && !isObjectB) {\n return String(a) === String(b)\n } else {\n return false\n }\n}\n\n/**\n * Sanitizes html special characters from input strings. For mitigating risk of XSS attacks.\n * @param rawText The raw input from the user that should be escaped.\n */\nfunction escapeHtml(rawText) {\n return rawText\n .replace(//g, '>')\n .replace(/\"/g, '"')\n .replace(/'/g, ''')\n}\n\n/**\n * Escapes html tags and special symbols from all provided params which were returned from parseArgs().params.\n * This method performs an in-place operation on the params object.\n *\n * @param {any} params Parameters as provided from `parseArgs().params`.\n * May be either an array of strings or a string->any map.\n *\n * @returns The manipulated `params` object.\n */\nfunction escapeParams(params) {\n if(params != null) {\n Object.keys(params).forEach(function (key) {\n if(typeof(params[key]) == 'string') {\n params[key] = escapeHtml(params[key]);\n }\n });\n }\n return params\n}\n\n/* */\n\nfunction extend (Vue) {\n if (!Vue.prototype.hasOwnProperty('$i18n')) {\n // $FlowFixMe\n Object.defineProperty(Vue.prototype, '$i18n', {\n get: function get () { return this._i18n }\n });\n }\n\n Vue.prototype.$t = function (key) {\n var values = [], len = arguments.length - 1;\n while ( len-- > 0 ) values[ len ] = arguments[ len + 1 ];\n\n var i18n = this.$i18n;\n return i18n._t.apply(i18n, [ key, i18n.locale, i18n._getMessages(), this ].concat( values ))\n };\n\n Vue.prototype.$tc = function (key, choice) {\n var values = [], len = arguments.length - 2;\n while ( len-- > 0 ) values[ len ] = arguments[ len + 2 ];\n\n var i18n = this.$i18n;\n return i18n._tc.apply(i18n, [ key, i18n.locale, i18n._getMessages(), this, choice ].concat( values ))\n };\n\n Vue.prototype.$te = function (key, locale) {\n var i18n = this.$i18n;\n return i18n._te(key, i18n.locale, i18n._getMessages(), locale)\n };\n\n Vue.prototype.$d = function (value) {\n var ref;\n\n var args = [], len = arguments.length - 1;\n while ( len-- > 0 ) args[ len ] = arguments[ len + 1 ];\n return (ref = this.$i18n).d.apply(ref, [ value ].concat( args ))\n };\n\n Vue.prototype.$n = function (value) {\n var ref;\n\n var args = [], len = arguments.length - 1;\n while ( len-- > 0 ) args[ len ] = arguments[ len + 1 ];\n return (ref = this.$i18n).n.apply(ref, [ value ].concat( args ))\n };\n}\n\n/* */\n\nvar mixin = {\n beforeCreate: function beforeCreate () {\n var options = this.$options;\n options.i18n = options.i18n || (options.__i18n ? {} : null);\n\n if (options.i18n) {\n if (options.i18n instanceof VueI18n) {\n // init locale messages via custom blocks\n if (options.__i18n) {\n try {\n var localeMessages = options.i18n && options.i18n.messages ? options.i18n.messages : {};\n options.__i18n.forEach(function (resource) {\n localeMessages = merge(localeMessages, JSON.parse(resource));\n });\n Object.keys(localeMessages).forEach(function (locale) {\n options.i18n.mergeLocaleMessage(locale, localeMessages[locale]);\n });\n } catch (e) {\n if (process.env.NODE_ENV !== 'production') {\n error(\"Cannot parse locale messages via custom blocks.\", e);\n }\n }\n }\n this._i18n = options.i18n;\n this._i18nWatcher = this._i18n.watchI18nData();\n } else if (isPlainObject(options.i18n)) {\n var rootI18n = this.$root && this.$root.$i18n && this.$root.$i18n instanceof VueI18n\n ? this.$root.$i18n\n : null;\n // component local i18n\n if (rootI18n) {\n options.i18n.root = this.$root;\n options.i18n.formatter = rootI18n.formatter;\n options.i18n.fallbackLocale = rootI18n.fallbackLocale;\n options.i18n.formatFallbackMessages = rootI18n.formatFallbackMessages;\n options.i18n.silentTranslationWarn = rootI18n.silentTranslationWarn;\n options.i18n.silentFallbackWarn = rootI18n.silentFallbackWarn;\n options.i18n.pluralizationRules = rootI18n.pluralizationRules;\n options.i18n.preserveDirectiveContent = rootI18n.preserveDirectiveContent;\n }\n\n // init locale messages via custom blocks\n if (options.__i18n) {\n try {\n var localeMessages$1 = options.i18n && options.i18n.messages ? options.i18n.messages : {};\n options.__i18n.forEach(function (resource) {\n localeMessages$1 = merge(localeMessages$1, JSON.parse(resource));\n });\n options.i18n.messages = localeMessages$1;\n } catch (e) {\n if (process.env.NODE_ENV !== 'production') {\n warn(\"Cannot parse locale messages via custom blocks.\", e);\n }\n }\n }\n\n var ref = options.i18n;\n var sharedMessages = ref.sharedMessages;\n if (sharedMessages && isPlainObject(sharedMessages)) {\n options.i18n.messages = merge(options.i18n.messages, sharedMessages);\n }\n\n this._i18n = new VueI18n(options.i18n);\n this._i18nWatcher = this._i18n.watchI18nData();\n\n if (options.i18n.sync === undefined || !!options.i18n.sync) {\n this._localeWatcher = this.$i18n.watchLocale();\n }\n\n if (rootI18n) {\n rootI18n.onComponentInstanceCreated(this._i18n);\n }\n } else {\n if (process.env.NODE_ENV !== 'production') {\n warn(\"Cannot be interpreted 'i18n' option.\");\n }\n }\n } else if (this.$root && this.$root.$i18n && this.$root.$i18n instanceof VueI18n) {\n // root i18n\n this._i18n = this.$root.$i18n;\n } else if (options.parent && options.parent.$i18n && options.parent.$i18n instanceof VueI18n) {\n // parent i18n\n this._i18n = options.parent.$i18n;\n }\n },\n\n beforeMount: function beforeMount () {\n var options = this.$options;\n options.i18n = options.i18n || (options.__i18n ? {} : null);\n\n if (options.i18n) {\n if (options.i18n instanceof VueI18n) {\n // init locale messages via custom blocks\n this._i18n.subscribeDataChanging(this);\n this._subscribing = true;\n } else if (isPlainObject(options.i18n)) {\n this._i18n.subscribeDataChanging(this);\n this._subscribing = true;\n } else {\n if (process.env.NODE_ENV !== 'production') {\n warn(\"Cannot be interpreted 'i18n' option.\");\n }\n }\n } else if (this.$root && this.$root.$i18n && this.$root.$i18n instanceof VueI18n) {\n this._i18n.subscribeDataChanging(this);\n this._subscribing = true;\n } else if (options.parent && options.parent.$i18n && options.parent.$i18n instanceof VueI18n) {\n this._i18n.subscribeDataChanging(this);\n this._subscribing = true;\n }\n },\n\n beforeDestroy: function beforeDestroy () {\n if (!this._i18n) { return }\n\n var self = this;\n this.$nextTick(function () {\n if (self._subscribing) {\n self._i18n.unsubscribeDataChanging(self);\n delete self._subscribing;\n }\n\n if (self._i18nWatcher) {\n self._i18nWatcher();\n self._i18n.destroyVM();\n delete self._i18nWatcher;\n }\n\n if (self._localeWatcher) {\n self._localeWatcher();\n delete self._localeWatcher;\n }\n });\n }\n};\n\n/* */\n\nvar interpolationComponent = {\n name: 'i18n',\n functional: true,\n props: {\n tag: {\n type: [String, Boolean, Object],\n default: 'span'\n },\n path: {\n type: String,\n required: true\n },\n locale: {\n type: String\n },\n places: {\n type: [Array, Object]\n }\n },\n render: function render (h, ref) {\n var data = ref.data;\n var parent = ref.parent;\n var props = ref.props;\n var slots = ref.slots;\n\n var $i18n = parent.$i18n;\n if (!$i18n) {\n if (process.env.NODE_ENV !== 'production') {\n warn('Cannot find VueI18n instance!');\n }\n return\n }\n\n var path = props.path;\n var locale = props.locale;\n var places = props.places;\n var params = slots();\n var children = $i18n.i(\n path,\n locale,\n onlyHasDefaultPlace(params) || places\n ? useLegacyPlaces(params.default, places)\n : params\n );\n\n var tag = (!!props.tag && props.tag !== true) || props.tag === false ? props.tag : 'span';\n return tag ? h(tag, data, children) : children\n }\n};\n\nfunction onlyHasDefaultPlace (params) {\n var prop;\n for (prop in params) {\n if (prop !== 'default') { return false }\n }\n return Boolean(prop)\n}\n\nfunction useLegacyPlaces (children, places) {\n var params = places ? createParamsFromPlaces(places) : {};\n\n if (!children) { return params }\n\n // Filter empty text nodes\n children = children.filter(function (child) {\n return child.tag || child.text.trim() !== ''\n });\n\n var everyPlace = children.every(vnodeHasPlaceAttribute);\n if (process.env.NODE_ENV !== 'production' && everyPlace) {\n warn('`place` attribute is deprecated in next major version. Please switch to Vue slots.');\n }\n\n return children.reduce(\n everyPlace ? assignChildPlace : assignChildIndex,\n params\n )\n}\n\nfunction createParamsFromPlaces (places) {\n if (process.env.NODE_ENV !== 'production') {\n warn('`places` prop is deprecated in next major version. Please switch to Vue slots.');\n }\n\n return Array.isArray(places)\n ? places.reduce(assignChildIndex, {})\n : Object.assign({}, places)\n}\n\nfunction assignChildPlace (params, child) {\n if (child.data && child.data.attrs && child.data.attrs.place) {\n params[child.data.attrs.place] = child;\n }\n return params\n}\n\nfunction assignChildIndex (params, child, index) {\n params[index] = child;\n return params\n}\n\nfunction vnodeHasPlaceAttribute (vnode) {\n return Boolean(vnode.data && vnode.data.attrs && vnode.data.attrs.place)\n}\n\n/* */\n\nvar numberComponent = {\n name: 'i18n-n',\n functional: true,\n props: {\n tag: {\n type: [String, Boolean, Object],\n default: 'span'\n },\n value: {\n type: Number,\n required: true\n },\n format: {\n type: [String, Object]\n },\n locale: {\n type: String\n }\n },\n render: function render (h, ref) {\n var props = ref.props;\n var parent = ref.parent;\n var data = ref.data;\n\n var i18n = parent.$i18n;\n\n if (!i18n) {\n if (process.env.NODE_ENV !== 'production') {\n warn('Cannot find VueI18n instance!');\n }\n return null\n }\n\n var key = null;\n var options = null;\n\n if (isString(props.format)) {\n key = props.format;\n } else if (isObject(props.format)) {\n if (props.format.key) {\n key = props.format.key;\n }\n\n // Filter out number format options only\n options = Object.keys(props.format).reduce(function (acc, prop) {\n var obj;\n\n if (includes(numberFormatKeys, prop)) {\n return Object.assign({}, acc, ( obj = {}, obj[prop] = props.format[prop], obj ))\n }\n return acc\n }, null);\n }\n\n var locale = props.locale || i18n.locale;\n var parts = i18n._ntp(props.value, locale, key, options);\n\n var values = parts.map(function (part, index) {\n var obj;\n\n var slot = data.scopedSlots && data.scopedSlots[part.type];\n return slot ? slot(( obj = {}, obj[part.type] = part.value, obj.index = index, obj.parts = parts, obj )) : part.value\n });\n\n var tag = (!!props.tag && props.tag !== true) || props.tag === false ? props.tag : 'span';\n return tag\n ? h(tag, {\n attrs: data.attrs,\n 'class': data['class'],\n staticClass: data.staticClass\n }, values)\n : values\n }\n};\n\n/* */\n\nfunction bind (el, binding, vnode) {\n if (!assert(el, vnode)) { return }\n\n t(el, binding, vnode);\n}\n\nfunction update (el, binding, vnode, oldVNode) {\n if (!assert(el, vnode)) { return }\n\n var i18n = vnode.context.$i18n;\n if (localeEqual(el, vnode) &&\n (looseEqual(binding.value, binding.oldValue) &&\n looseEqual(el._localeMessage, i18n.getLocaleMessage(i18n.locale)))) { return }\n\n t(el, binding, vnode);\n}\n\nfunction unbind (el, binding, vnode, oldVNode) {\n var vm = vnode.context;\n if (!vm) {\n warn('Vue instance does not exists in VNode context');\n return\n }\n\n var i18n = vnode.context.$i18n || {};\n if (!binding.modifiers.preserve && !i18n.preserveDirectiveContent) {\n el.textContent = '';\n }\n el._vt = undefined;\n delete el['_vt'];\n el._locale = undefined;\n delete el['_locale'];\n el._localeMessage = undefined;\n delete el['_localeMessage'];\n}\n\nfunction assert (el, vnode) {\n var vm = vnode.context;\n if (!vm) {\n warn('Vue instance does not exists in VNode context');\n return false\n }\n\n if (!vm.$i18n) {\n warn('VueI18n instance does not exists in Vue instance');\n return false\n }\n\n return true\n}\n\nfunction localeEqual (el, vnode) {\n var vm = vnode.context;\n return el._locale === vm.$i18n.locale\n}\n\nfunction t (el, binding, vnode) {\n var ref$1, ref$2;\n\n var value = binding.value;\n\n var ref = parseValue(value);\n var path = ref.path;\n var locale = ref.locale;\n var args = ref.args;\n var choice = ref.choice;\n if (!path && !locale && !args) {\n warn('value type not supported');\n return\n }\n\n if (!path) {\n warn('`path` is required in v-t directive');\n return\n }\n\n var vm = vnode.context;\n if (choice != null) {\n el._vt = el.textContent = (ref$1 = vm.$i18n).tc.apply(ref$1, [ path, choice ].concat( makeParams(locale, args) ));\n } else {\n el._vt = el.textContent = (ref$2 = vm.$i18n).t.apply(ref$2, [ path ].concat( makeParams(locale, args) ));\n }\n el._locale = vm.$i18n.locale;\n el._localeMessage = vm.$i18n.getLocaleMessage(vm.$i18n.locale);\n}\n\nfunction parseValue (value) {\n var path;\n var locale;\n var args;\n var choice;\n\n if (isString(value)) {\n path = value;\n } else if (isPlainObject(value)) {\n path = value.path;\n locale = value.locale;\n args = value.args;\n choice = value.choice;\n }\n\n return { path: path, locale: locale, args: args, choice: choice }\n}\n\nfunction makeParams (locale, args) {\n var params = [];\n\n locale && params.push(locale);\n if (args && (Array.isArray(args) || isPlainObject(args))) {\n params.push(args);\n }\n\n return params\n}\n\nvar Vue;\n\nfunction install (_Vue) {\n /* istanbul ignore if */\n if (process.env.NODE_ENV !== 'production' && install.installed && _Vue === Vue) {\n warn('already installed.');\n return\n }\n install.installed = true;\n\n Vue = _Vue;\n\n var version = (Vue.version && Number(Vue.version.split('.')[0])) || -1;\n /* istanbul ignore if */\n if (process.env.NODE_ENV !== 'production' && version < 2) {\n warn((\"vue-i18n (\" + (install.version) + \") need to use Vue 2.0 or later (Vue: \" + (Vue.version) + \").\"));\n return\n }\n\n extend(Vue);\n Vue.mixin(mixin);\n Vue.directive('t', { bind: bind, update: update, unbind: unbind });\n Vue.component(interpolationComponent.name, interpolationComponent);\n Vue.component(numberComponent.name, numberComponent);\n\n // use simple mergeStrategies to prevent i18n instance lose '__proto__'\n var strats = Vue.config.optionMergeStrategies;\n strats.i18n = function (parentVal, childVal) {\n return childVal === undefined\n ? parentVal\n : childVal\n };\n}\n\n/* */\n\nvar BaseFormatter = function BaseFormatter () {\n this._caches = Object.create(null);\n};\n\nBaseFormatter.prototype.interpolate = function interpolate (message, values) {\n if (!values) {\n return [message]\n }\n var tokens = this._caches[message];\n if (!tokens) {\n tokens = parse(message);\n this._caches[message] = tokens;\n }\n return compile(tokens, values)\n};\n\n\n\nvar RE_TOKEN_LIST_VALUE = /^(?:\\d)+/;\nvar RE_TOKEN_NAMED_VALUE = /^(?:\\w)+/;\n\nfunction parse (format) {\n var tokens = [];\n var position = 0;\n\n var text = '';\n while (position < format.length) {\n var char = format[position++];\n if (char === '{') {\n if (text) {\n tokens.push({ type: 'text', value: text });\n }\n\n text = '';\n var sub = '';\n char = format[position++];\n while (char !== undefined && char !== '}') {\n sub += char;\n char = format[position++];\n }\n var isClosed = char === '}';\n\n var type = RE_TOKEN_LIST_VALUE.test(sub)\n ? 'list'\n : isClosed && RE_TOKEN_NAMED_VALUE.test(sub)\n ? 'named'\n : 'unknown';\n tokens.push({ value: sub, type: type });\n } else if (char === '%') {\n // when found rails i18n syntax, skip text capture\n if (format[(position)] !== '{') {\n text += char;\n }\n } else {\n text += char;\n }\n }\n\n text && tokens.push({ type: 'text', value: text });\n\n return tokens\n}\n\nfunction compile (tokens, values) {\n var compiled = [];\n var index = 0;\n\n var mode = Array.isArray(values)\n ? 'list'\n : isObject(values)\n ? 'named'\n : 'unknown';\n if (mode === 'unknown') { return compiled }\n\n while (index < tokens.length) {\n var token = tokens[index];\n switch (token.type) {\n case 'text':\n compiled.push(token.value);\n break\n case 'list':\n compiled.push(values[parseInt(token.value, 10)]);\n break\n case 'named':\n if (mode === 'named') {\n compiled.push((values)[token.value]);\n } else {\n if (process.env.NODE_ENV !== 'production') {\n warn((\"Type of token '\" + (token.type) + \"' and format of value '\" + mode + \"' don't match!\"));\n }\n }\n break\n case 'unknown':\n if (process.env.NODE_ENV !== 'production') {\n warn(\"Detect 'unknown' type of token!\");\n }\n break\n }\n index++;\n }\n\n return compiled\n}\n\n/* */\n\n/**\n * Path parser\n * - Inspired:\n * Vue.js Path parser\n */\n\n// actions\nvar APPEND = 0;\nvar PUSH = 1;\nvar INC_SUB_PATH_DEPTH = 2;\nvar PUSH_SUB_PATH = 3;\n\n// states\nvar BEFORE_PATH = 0;\nvar IN_PATH = 1;\nvar BEFORE_IDENT = 2;\nvar IN_IDENT = 3;\nvar IN_SUB_PATH = 4;\nvar IN_SINGLE_QUOTE = 5;\nvar IN_DOUBLE_QUOTE = 6;\nvar AFTER_PATH = 7;\nvar ERROR = 8;\n\nvar pathStateMachine = [];\n\npathStateMachine[BEFORE_PATH] = {\n 'ws': [BEFORE_PATH],\n 'ident': [IN_IDENT, APPEND],\n '[': [IN_SUB_PATH],\n 'eof': [AFTER_PATH]\n};\n\npathStateMachine[IN_PATH] = {\n 'ws': [IN_PATH],\n '.': [BEFORE_IDENT],\n '[': [IN_SUB_PATH],\n 'eof': [AFTER_PATH]\n};\n\npathStateMachine[BEFORE_IDENT] = {\n 'ws': [BEFORE_IDENT],\n 'ident': [IN_IDENT, APPEND],\n '0': [IN_IDENT, APPEND],\n 'number': [IN_IDENT, APPEND]\n};\n\npathStateMachine[IN_IDENT] = {\n 'ident': [IN_IDENT, APPEND],\n '0': [IN_IDENT, APPEND],\n 'number': [IN_IDENT, APPEND],\n 'ws': [IN_PATH, PUSH],\n '.': [BEFORE_IDENT, PUSH],\n '[': [IN_SUB_PATH, PUSH],\n 'eof': [AFTER_PATH, PUSH]\n};\n\npathStateMachine[IN_SUB_PATH] = {\n \"'\": [IN_SINGLE_QUOTE, APPEND],\n '\"': [IN_DOUBLE_QUOTE, APPEND],\n '[': [IN_SUB_PATH, INC_SUB_PATH_DEPTH],\n ']': [IN_PATH, PUSH_SUB_PATH],\n 'eof': ERROR,\n 'else': [IN_SUB_PATH, APPEND]\n};\n\npathStateMachine[IN_SINGLE_QUOTE] = {\n \"'\": [IN_SUB_PATH, APPEND],\n 'eof': ERROR,\n 'else': [IN_SINGLE_QUOTE, APPEND]\n};\n\npathStateMachine[IN_DOUBLE_QUOTE] = {\n '\"': [IN_SUB_PATH, APPEND],\n 'eof': ERROR,\n 'else': [IN_DOUBLE_QUOTE, APPEND]\n};\n\n/**\n * Check if an expression is a literal value.\n */\n\nvar literalValueRE = /^\\s?(?:true|false|-?[\\d.]+|'[^']*'|\"[^\"]*\")\\s?$/;\nfunction isLiteral (exp) {\n return literalValueRE.test(exp)\n}\n\n/**\n * Strip quotes from a string\n */\n\nfunction stripQuotes (str) {\n var a = str.charCodeAt(0);\n var b = str.charCodeAt(str.length - 1);\n return a === b && (a === 0x22 || a === 0x27)\n ? str.slice(1, -1)\n : str\n}\n\n/**\n * Determine the type of a character in a keypath.\n */\n\nfunction getPathCharType (ch) {\n if (ch === undefined || ch === null) { return 'eof' }\n\n var code = ch.charCodeAt(0);\n\n switch (code) {\n case 0x5B: // [\n case 0x5D: // ]\n case 0x2E: // .\n case 0x22: // \"\n case 0x27: // '\n return ch\n\n case 0x5F: // _\n case 0x24: // $\n case 0x2D: // -\n return 'ident'\n\n case 0x09: // Tab\n case 0x0A: // Newline\n case 0x0D: // Return\n case 0xA0: // No-break space\n case 0xFEFF: // Byte Order Mark\n case 0x2028: // Line Separator\n case 0x2029: // Paragraph Separator\n return 'ws'\n }\n\n return 'ident'\n}\n\n/**\n * Format a subPath, return its plain form if it is\n * a literal string or number. Otherwise prepend the\n * dynamic indicator (*).\n */\n\nfunction formatSubPath (path) {\n var trimmed = path.trim();\n // invalid leading 0\n if (path.charAt(0) === '0' && isNaN(path)) { return false }\n\n return isLiteral(trimmed) ? stripQuotes(trimmed) : '*' + trimmed\n}\n\n/**\n * Parse a string path into an array of segments\n */\n\nfunction parse$1 (path) {\n var keys = [];\n var index = -1;\n var mode = BEFORE_PATH;\n var subPathDepth = 0;\n var c;\n var key;\n var newChar;\n var type;\n var transition;\n var action;\n var typeMap;\n var actions = [];\n\n actions[PUSH] = function () {\n if (key !== undefined) {\n keys.push(key);\n key = undefined;\n }\n };\n\n actions[APPEND] = function () {\n if (key === undefined) {\n key = newChar;\n } else {\n key += newChar;\n }\n };\n\n actions[INC_SUB_PATH_DEPTH] = function () {\n actions[APPEND]();\n subPathDepth++;\n };\n\n actions[PUSH_SUB_PATH] = function () {\n if (subPathDepth > 0) {\n subPathDepth--;\n mode = IN_SUB_PATH;\n actions[APPEND]();\n } else {\n subPathDepth = 0;\n if (key === undefined) { return false }\n key = formatSubPath(key);\n if (key === false) {\n return false\n } else {\n actions[PUSH]();\n }\n }\n };\n\n function maybeUnescapeQuote () {\n var nextChar = path[index + 1];\n if ((mode === IN_SINGLE_QUOTE && nextChar === \"'\") ||\n (mode === IN_DOUBLE_QUOTE && nextChar === '\"')) {\n index++;\n newChar = '\\\\' + nextChar;\n actions[APPEND]();\n return true\n }\n }\n\n while (mode !== null) {\n index++;\n c = path[index];\n\n if (c === '\\\\' && maybeUnescapeQuote()) {\n continue\n }\n\n type = getPathCharType(c);\n typeMap = pathStateMachine[mode];\n transition = typeMap[type] || typeMap['else'] || ERROR;\n\n if (transition === ERROR) {\n return // parse error\n }\n\n mode = transition[0];\n action = actions[transition[1]];\n if (action) {\n newChar = transition[2];\n newChar = newChar === undefined\n ? c\n : newChar;\n if (action() === false) {\n return\n }\n }\n\n if (mode === AFTER_PATH) {\n return keys\n }\n }\n}\n\n\n\n\n\nvar I18nPath = function I18nPath () {\n this._cache = Object.create(null);\n};\n\n/**\n * External parse that check for a cache hit first\n */\nI18nPath.prototype.parsePath = function parsePath (path) {\n var hit = this._cache[path];\n if (!hit) {\n hit = parse$1(path);\n if (hit) {\n this._cache[path] = hit;\n }\n }\n return hit || []\n};\n\n/**\n * Get path value from path string\n */\nI18nPath.prototype.getPathValue = function getPathValue (obj, path) {\n if (!isObject(obj)) { return null }\n\n var paths = this.parsePath(path);\n if (paths.length === 0) {\n return null\n } else {\n var length = paths.length;\n var last = obj;\n var i = 0;\n while (i < length) {\n var value = last[paths[i]];\n if (value === undefined) {\n return null\n }\n last = value;\n i++;\n }\n\n return last\n }\n};\n\n/* */\n\n\n\nvar htmlTagMatcher = /<\\/?[\\w\\s=\"/.':;#-\\/]+>/;\nvar linkKeyMatcher = /(?:@(?:\\.[a-z]+)?:(?:[\\w\\-_|.]+|\\([\\w\\-_|.]+\\)))/g;\nvar linkKeyPrefixMatcher = /^@(?:\\.([a-z]+))?:/;\nvar bracketsMatcher = /[()]/g;\nvar defaultModifiers = {\n 'upper': function (str) { return str.toLocaleUpperCase(); },\n 'lower': function (str) { return str.toLocaleLowerCase(); },\n 'capitalize': function (str) { return (\"\" + (str.charAt(0).toLocaleUpperCase()) + (str.substr(1))); }\n};\n\nvar defaultFormatter = new BaseFormatter();\n\nvar VueI18n = function VueI18n (options) {\n var this$1 = this;\n if ( options === void 0 ) options = {};\n\n // Auto install if it is not done yet and `window` has `Vue`.\n // To allow users to avoid auto-installation in some cases,\n // this code should be placed here. See #290\n /* istanbul ignore if */\n if (!Vue && typeof window !== 'undefined' && window.Vue) {\n install(window.Vue);\n }\n\n var locale = options.locale || 'en-US';\n var fallbackLocale = options.fallbackLocale === false\n ? false\n : options.fallbackLocale || 'en-US';\n var messages = options.messages || {};\n var dateTimeFormats = options.dateTimeFormats || {};\n var numberFormats = options.numberFormats || {};\n\n this._vm = null;\n this._formatter = options.formatter || defaultFormatter;\n this._modifiers = options.modifiers || {};\n this._missing = options.missing || null;\n this._root = options.root || null;\n this._sync = options.sync === undefined ? true : !!options.sync;\n this._fallbackRoot = options.fallbackRoot === undefined\n ? true\n : !!options.fallbackRoot;\n this._formatFallbackMessages = options.formatFallbackMessages === undefined\n ? false\n : !!options.formatFallbackMessages;\n this._silentTranslationWarn = options.silentTranslationWarn === undefined\n ? false\n : options.silentTranslationWarn;\n this._silentFallbackWarn = options.silentFallbackWarn === undefined\n ? false\n : !!options.silentFallbackWarn;\n this._dateTimeFormatters = {};\n this._numberFormatters = {};\n this._path = new I18nPath();\n this._dataListeners = [];\n this._componentInstanceCreatedListener = options.componentInstanceCreatedListener || null;\n this._preserveDirectiveContent = options.preserveDirectiveContent === undefined\n ? false\n : !!options.preserveDirectiveContent;\n this.pluralizationRules = options.pluralizationRules || {};\n this._warnHtmlInMessage = options.warnHtmlInMessage || 'off';\n this._postTranslation = options.postTranslation || null;\n this._escapeParameterHtml = options.escapeParameterHtml || false;\n\n /**\n * @param choice {number} a choice index given by the input to $tc: `$tc('path.to.rule', choiceIndex)`\n * @param choicesLength {number} an overall amount of available choices\n * @returns a final choice index\n */\n this.getChoiceIndex = function (choice, choicesLength) {\n var thisPrototype = Object.getPrototypeOf(this$1);\n if (thisPrototype && thisPrototype.getChoiceIndex) {\n var prototypeGetChoiceIndex = (thisPrototype.getChoiceIndex);\n return (prototypeGetChoiceIndex).call(this$1, choice, choicesLength)\n }\n\n // Default (old) getChoiceIndex implementation - english-compatible\n var defaultImpl = function (_choice, _choicesLength) {\n _choice = Math.abs(_choice);\n\n if (_choicesLength === 2) {\n return _choice\n ? _choice > 1\n ? 1\n : 0\n : 1\n }\n\n return _choice ? Math.min(_choice, 2) : 0\n };\n\n if (this$1.locale in this$1.pluralizationRules) {\n return this$1.pluralizationRules[this$1.locale].apply(this$1, [choice, choicesLength])\n } else {\n return defaultImpl(choice, choicesLength)\n }\n };\n\n\n this._exist = function (message, key) {\n if (!message || !key) { return false }\n if (!isNull(this$1._path.getPathValue(message, key))) { return true }\n // fallback for flat key\n if (message[key]) { return true }\n return false\n };\n\n if (this._warnHtmlInMessage === 'warn' || this._warnHtmlInMessage === 'error') {\n Object.keys(messages).forEach(function (locale) {\n this$1._checkLocaleMessage(locale, this$1._warnHtmlInMessage, messages[locale]);\n });\n }\n\n this._initVM({\n locale: locale,\n fallbackLocale: fallbackLocale,\n messages: messages,\n dateTimeFormats: dateTimeFormats,\n numberFormats: numberFormats\n });\n};\n\nvar prototypeAccessors = { vm: { configurable: true },messages: { configurable: true },dateTimeFormats: { configurable: true },numberFormats: { configurable: true },availableLocales: { configurable: true },locale: { configurable: true },fallbackLocale: { configurable: true },formatFallbackMessages: { configurable: true },missing: { configurable: true },formatter: { configurable: true },silentTranslationWarn: { configurable: true },silentFallbackWarn: { configurable: true },preserveDirectiveContent: { configurable: true },warnHtmlInMessage: { configurable: true },postTranslation: { configurable: true } };\n\nVueI18n.prototype._checkLocaleMessage = function _checkLocaleMessage (locale, level, message) {\n var paths = [];\n\n var fn = function (level, locale, message, paths) {\n if (isPlainObject(message)) {\n Object.keys(message).forEach(function (key) {\n var val = message[key];\n if (isPlainObject(val)) {\n paths.push(key);\n paths.push('.');\n fn(level, locale, val, paths);\n paths.pop();\n paths.pop();\n } else {\n paths.push(key);\n fn(level, locale, val, paths);\n paths.pop();\n }\n });\n } else if (isArray(message)) {\n message.forEach(function (item, index) {\n if (isPlainObject(item)) {\n paths.push((\"[\" + index + \"]\"));\n paths.push('.');\n fn(level, locale, item, paths);\n paths.pop();\n paths.pop();\n } else {\n paths.push((\"[\" + index + \"]\"));\n fn(level, locale, item, paths);\n paths.pop();\n }\n });\n } else if (isString(message)) {\n var ret = htmlTagMatcher.test(message);\n if (ret) {\n var msg = \"Detected HTML in message '\" + message + \"' of keypath '\" + (paths.join('')) + \"' at '\" + locale + \"'. Consider component interpolation with '' to avoid XSS. See https://bit.ly/2ZqJzkp\";\n if (level === 'warn') {\n warn(msg);\n } else if (level === 'error') {\n error(msg);\n }\n }\n }\n };\n\n fn(level, locale, message, paths);\n};\n\nVueI18n.prototype._initVM = function _initVM (data) {\n var silent = Vue.config.silent;\n Vue.config.silent = true;\n this._vm = new Vue({ data: data });\n Vue.config.silent = silent;\n};\n\nVueI18n.prototype.destroyVM = function destroyVM () {\n this._vm.$destroy();\n};\n\nVueI18n.prototype.subscribeDataChanging = function subscribeDataChanging (vm) {\n this._dataListeners.push(vm);\n};\n\nVueI18n.prototype.unsubscribeDataChanging = function unsubscribeDataChanging (vm) {\n remove(this._dataListeners, vm);\n};\n\nVueI18n.prototype.watchI18nData = function watchI18nData () {\n var self = this;\n return this._vm.$watch('$data', function () {\n var i = self._dataListeners.length;\n while (i--) {\n Vue.nextTick(function () {\n self._dataListeners[i] && self._dataListeners[i].$forceUpdate();\n });\n }\n }, { deep: true })\n};\n\nVueI18n.prototype.watchLocale = function watchLocale () {\n /* istanbul ignore if */\n if (!this._sync || !this._root) { return null }\n var target = this._vm;\n return this._root.$i18n.vm.$watch('locale', function (val) {\n target.$set(target, 'locale', val);\n target.$forceUpdate();\n }, { immediate: true })\n};\n\nVueI18n.prototype.onComponentInstanceCreated = function onComponentInstanceCreated (newI18n) {\n if (this._componentInstanceCreatedListener) {\n this._componentInstanceCreatedListener(newI18n, this);\n }\n};\n\nprototypeAccessors.vm.get = function () { return this._vm };\n\nprototypeAccessors.messages.get = function () { return looseClone(this._getMessages()) };\nprototypeAccessors.dateTimeFormats.get = function () { return looseClone(this._getDateTimeFormats()) };\nprototypeAccessors.numberFormats.get = function () { return looseClone(this._getNumberFormats()) };\nprototypeAccessors.availableLocales.get = function () { return Object.keys(this.messages).sort() };\n\nprototypeAccessors.locale.get = function () { return this._vm.locale };\nprototypeAccessors.locale.set = function (locale) {\n this._vm.$set(this._vm, 'locale', locale);\n};\n\nprototypeAccessors.fallbackLocale.get = function () { return this._vm.fallbackLocale };\nprototypeAccessors.fallbackLocale.set = function (locale) {\n this._localeChainCache = {};\n this._vm.$set(this._vm, 'fallbackLocale', locale);\n};\n\nprototypeAccessors.formatFallbackMessages.get = function () { return this._formatFallbackMessages };\nprototypeAccessors.formatFallbackMessages.set = function (fallback) { this._formatFallbackMessages = fallback; };\n\nprototypeAccessors.missing.get = function () { return this._missing };\nprototypeAccessors.missing.set = function (handler) { this._missing = handler; };\n\nprototypeAccessors.formatter.get = function () { return this._formatter };\nprototypeAccessors.formatter.set = function (formatter) { this._formatter = formatter; };\n\nprototypeAccessors.silentTranslationWarn.get = function () { return this._silentTranslationWarn };\nprototypeAccessors.silentTranslationWarn.set = function (silent) { this._silentTranslationWarn = silent; };\n\nprototypeAccessors.silentFallbackWarn.get = function () { return this._silentFallbackWarn };\nprototypeAccessors.silentFallbackWarn.set = function (silent) { this._silentFallbackWarn = silent; };\n\nprototypeAccessors.preserveDirectiveContent.get = function () { return this._preserveDirectiveContent };\nprototypeAccessors.preserveDirectiveContent.set = function (preserve) { this._preserveDirectiveContent = preserve; };\n\nprototypeAccessors.warnHtmlInMessage.get = function () { return this._warnHtmlInMessage };\nprototypeAccessors.warnHtmlInMessage.set = function (level) {\n var this$1 = this;\n\n var orgLevel = this._warnHtmlInMessage;\n this._warnHtmlInMessage = level;\n if (orgLevel !== level && (level === 'warn' || level === 'error')) {\n var messages = this._getMessages();\n Object.keys(messages).forEach(function (locale) {\n this$1._checkLocaleMessage(locale, this$1._warnHtmlInMessage, messages[locale]);\n });\n }\n};\n\nprototypeAccessors.postTranslation.get = function () { return this._postTranslation };\nprototypeAccessors.postTranslation.set = function (handler) { this._postTranslation = handler; };\n\nVueI18n.prototype._getMessages = function _getMessages () { return this._vm.messages };\nVueI18n.prototype._getDateTimeFormats = function _getDateTimeFormats () { return this._vm.dateTimeFormats };\nVueI18n.prototype._getNumberFormats = function _getNumberFormats () { return this._vm.numberFormats };\n\nVueI18n.prototype._warnDefault = function _warnDefault (locale, key, result, vm, values, interpolateMode) {\n if (!isNull(result)) { return result }\n if (this._missing) {\n var missingRet = this._missing.apply(null, [locale, key, vm, values]);\n if (isString(missingRet)) {\n return missingRet\n }\n } else {\n if (process.env.NODE_ENV !== 'production' && !this._isSilentTranslationWarn(key)) {\n warn(\n \"Cannot translate the value of keypath '\" + key + \"'. \" +\n 'Use the value of keypath as default.'\n );\n }\n }\n\n if (this._formatFallbackMessages) {\n var parsedArgs = parseArgs.apply(void 0, values);\n return this._render(key, interpolateMode, parsedArgs.params, key)\n } else {\n return key\n }\n};\n\nVueI18n.prototype._isFallbackRoot = function _isFallbackRoot (val) {\n return !val && !isNull(this._root) && this._fallbackRoot\n};\n\nVueI18n.prototype._isSilentFallbackWarn = function _isSilentFallbackWarn (key) {\n return this._silentFallbackWarn instanceof RegExp\n ? this._silentFallbackWarn.test(key)\n : this._silentFallbackWarn\n};\n\nVueI18n.prototype._isSilentFallback = function _isSilentFallback (locale, key) {\n return this._isSilentFallbackWarn(key) && (this._isFallbackRoot() || locale !== this.fallbackLocale)\n};\n\nVueI18n.prototype._isSilentTranslationWarn = function _isSilentTranslationWarn (key) {\n return this._silentTranslationWarn instanceof RegExp\n ? this._silentTranslationWarn.test(key)\n : this._silentTranslationWarn\n};\n\nVueI18n.prototype._interpolate = function _interpolate (\n locale,\n message,\n key,\n host,\n interpolateMode,\n values,\n visitedLinkStack\n) {\n if (!message) { return null }\n\n var pathRet = this._path.getPathValue(message, key);\n if (isArray(pathRet) || isPlainObject(pathRet)) { return pathRet }\n\n var ret;\n if (isNull(pathRet)) {\n /* istanbul ignore else */\n if (isPlainObject(message)) {\n ret = message[key];\n if (!(isString(ret) || isFunction(ret))) {\n if (process.env.NODE_ENV !== 'production' && !this._isSilentTranslationWarn(key) && !this._isSilentFallback(locale, key)) {\n warn((\"Value of key '\" + key + \"' is not a string or function !\"));\n }\n return null\n }\n } else {\n return null\n }\n } else {\n /* istanbul ignore else */\n if (isString(pathRet) || isFunction(pathRet)) {\n ret = pathRet;\n } else {\n if (process.env.NODE_ENV !== 'production' && !this._isSilentTranslationWarn(key) && !this._isSilentFallback(locale, key)) {\n warn((\"Value of key '\" + key + \"' is not a string or function!\"));\n }\n return null\n }\n }\n\n // Check for the existence of links within the translated string\n if (isString(ret) && (ret.indexOf('@:') >= 0 || ret.indexOf('@.') >= 0)) {\n ret = this._link(locale, message, ret, host, 'raw', values, visitedLinkStack);\n }\n\n return this._render(ret, interpolateMode, values, key)\n};\n\nVueI18n.prototype._link = function _link (\n locale,\n message,\n str,\n host,\n interpolateMode,\n values,\n visitedLinkStack\n) {\n var ret = str;\n\n // Match all the links within the local\n // We are going to replace each of\n // them with its translation\n var matches = ret.match(linkKeyMatcher);\n for (var idx in matches) {\n // ie compatible: filter custom array\n // prototype method\n if (!matches.hasOwnProperty(idx)) {\n continue\n }\n var link = matches[idx];\n var linkKeyPrefixMatches = link.match(linkKeyPrefixMatcher);\n var linkPrefix = linkKeyPrefixMatches[0];\n var formatterName = linkKeyPrefixMatches[1];\n\n // Remove the leading @:, @.case: and the brackets\n var linkPlaceholder = link.replace(linkPrefix, '').replace(bracketsMatcher, '');\n\n if (includes(visitedLinkStack, linkPlaceholder)) {\n if (process.env.NODE_ENV !== 'production') {\n warn((\"Circular reference found. \\\"\" + link + \"\\\" is already visited in the chain of \" + (visitedLinkStack.reverse().join(' <- '))));\n }\n return ret\n }\n visitedLinkStack.push(linkPlaceholder);\n\n // Translate the link\n var translated = this._interpolate(\n locale, message, linkPlaceholder, host,\n interpolateMode === 'raw' ? 'string' : interpolateMode,\n interpolateMode === 'raw' ? undefined : values,\n visitedLinkStack\n );\n\n if (this._isFallbackRoot(translated)) {\n if (process.env.NODE_ENV !== 'production' && !this._isSilentTranslationWarn(linkPlaceholder)) {\n warn((\"Fall back to translate the link placeholder '\" + linkPlaceholder + \"' with root locale.\"));\n }\n /* istanbul ignore if */\n if (!this._root) { throw Error('unexpected error') }\n var root = this._root.$i18n;\n translated = root._translate(\n root._getMessages(), root.locale, root.fallbackLocale,\n linkPlaceholder, host, interpolateMode, values\n );\n }\n translated = this._warnDefault(\n locale, linkPlaceholder, translated, host,\n isArray(values) ? values : [values],\n interpolateMode\n );\n\n if (this._modifiers.hasOwnProperty(formatterName)) {\n translated = this._modifiers[formatterName](translated);\n } else if (defaultModifiers.hasOwnProperty(formatterName)) {\n translated = defaultModifiers[formatterName](translated);\n }\n\n visitedLinkStack.pop();\n\n // Replace the link with the translated\n ret = !translated ? ret : ret.replace(link, translated);\n }\n\n return ret\n};\n\nVueI18n.prototype._createMessageContext = function _createMessageContext (values) {\n var _list = isArray(values) ? values : [];\n var _named = isObject(values) ? values : {};\n var list = function (index) { return _list[index]; };\n var named = function (key) { return _named[key]; };\n return {\n list: list,\n named: named\n }\n};\n\nVueI18n.prototype._render = function _render (message, interpolateMode, values, path) {\n if (isFunction(message)) {\n return message(this._createMessageContext(values))\n }\n\n var ret = this._formatter.interpolate(message, values, path);\n\n // If the custom formatter refuses to work - apply the default one\n if (!ret) {\n ret = defaultFormatter.interpolate(message, values, path);\n }\n\n // if interpolateMode is **not** 'string' ('row'),\n // return the compiled data (e.g. ['foo', VNode, 'bar']) with formatter\n return interpolateMode === 'string' && !isString(ret) ? ret.join('') : ret\n};\n\nVueI18n.prototype._appendItemToChain = function _appendItemToChain (chain, item, blocks) {\n var follow = false;\n if (!includes(chain, item)) {\n follow = true;\n if (item) {\n follow = item[item.length - 1] !== '!';\n item = item.replace(/!/g, '');\n chain.push(item);\n if (blocks && blocks[item]) {\n follow = blocks[item];\n }\n }\n }\n return follow\n};\n\nVueI18n.prototype._appendLocaleToChain = function _appendLocaleToChain (chain, locale, blocks) {\n var follow;\n var tokens = locale.split('-');\n do {\n var item = tokens.join('-');\n follow = this._appendItemToChain(chain, item, blocks);\n tokens.splice(-1, 1);\n } while (tokens.length && (follow === true))\n return follow\n};\n\nVueI18n.prototype._appendBlockToChain = function _appendBlockToChain (chain, block, blocks) {\n var follow = true;\n for (var i = 0; (i < block.length) && (isBoolean(follow)); i++) {\n var locale = block[i];\n if (isString(locale)) {\n follow = this._appendLocaleToChain(chain, locale, blocks);\n }\n }\n return follow\n};\n\nVueI18n.prototype._getLocaleChain = function _getLocaleChain (start, fallbackLocale) {\n if (start === '') { return [] }\n\n if (!this._localeChainCache) {\n this._localeChainCache = {};\n }\n\n var chain = this._localeChainCache[start];\n if (!chain) {\n if (!fallbackLocale) {\n fallbackLocale = this.fallbackLocale;\n }\n chain = [];\n\n // first block defined by start\n var block = [start];\n\n // while any intervening block found\n while (isArray(block)) {\n block = this._appendBlockToChain(\n chain,\n block,\n fallbackLocale\n );\n }\n\n // last block defined by default\n var defaults;\n if (isArray(fallbackLocale)) {\n defaults = fallbackLocale;\n } else if (isObject(fallbackLocale)) {\n /* $FlowFixMe */\n if (fallbackLocale['default']) {\n defaults = fallbackLocale['default'];\n } else {\n defaults = null;\n }\n } else {\n defaults = fallbackLocale;\n }\n\n // convert defaults to array\n if (isString(defaults)) {\n block = [defaults];\n } else {\n block = defaults;\n }\n if (block) {\n this._appendBlockToChain(\n chain,\n block,\n null\n );\n }\n this._localeChainCache[start] = chain;\n }\n return chain\n};\n\nVueI18n.prototype._translate = function _translate (\n messages,\n locale,\n fallback,\n key,\n host,\n interpolateMode,\n args\n) {\n var chain = this._getLocaleChain(locale, fallback);\n var res;\n for (var i = 0; i < chain.length; i++) {\n var step = chain[i];\n res =\n this._interpolate(step, messages[step], key, host, interpolateMode, args, [key]);\n if (!isNull(res)) {\n if (step !== locale && process.env.NODE_ENV !== 'production' && !this._isSilentTranslationWarn(key) && !this._isSilentFallbackWarn(key)) {\n warn((\"Fall back to translate the keypath '\" + key + \"' with '\" + step + \"' locale.\"));\n }\n return res\n }\n }\n return null\n};\n\nVueI18n.prototype._t = function _t (key, _locale, messages, host) {\n var ref;\n\n var values = [], len = arguments.length - 4;\n while ( len-- > 0 ) values[ len ] = arguments[ len + 4 ];\n if (!key) { return '' }\n\n var parsedArgs = parseArgs.apply(void 0, values);\n if(this._escapeParameterHtml) {\n parsedArgs.params = escapeParams(parsedArgs.params);\n }\n\n var locale = parsedArgs.locale || _locale;\n\n var ret = this._translate(\n messages, locale, this.fallbackLocale, key,\n host, 'string', parsedArgs.params\n );\n if (this._isFallbackRoot(ret)) {\n if (process.env.NODE_ENV !== 'production' && !this._isSilentTranslationWarn(key) && !this._isSilentFallbackWarn(key)) {\n warn((\"Fall back to translate the keypath '\" + key + \"' with root locale.\"));\n }\n /* istanbul ignore if */\n if (!this._root) { throw Error('unexpected error') }\n return (ref = this._root).$t.apply(ref, [ key ].concat( values ))\n } else {\n ret = this._warnDefault(locale, key, ret, host, values, 'string');\n if (this._postTranslation && ret !== null && ret !== undefined) {\n ret = this._postTranslation(ret, key);\n }\n return ret\n }\n};\n\nVueI18n.prototype.t = function t (key) {\n var ref;\n\n var values = [], len = arguments.length - 1;\n while ( len-- > 0 ) values[ len ] = arguments[ len + 1 ];\n return (ref = this)._t.apply(ref, [ key, this.locale, this._getMessages(), null ].concat( values ))\n};\n\nVueI18n.prototype._i = function _i (key, locale, messages, host, values) {\n var ret =\n this._translate(messages, locale, this.fallbackLocale, key, host, 'raw', values);\n if (this._isFallbackRoot(ret)) {\n if (process.env.NODE_ENV !== 'production' && !this._isSilentTranslationWarn(key)) {\n warn((\"Fall back to interpolate the keypath '\" + key + \"' with root locale.\"));\n }\n if (!this._root) { throw Error('unexpected error') }\n return this._root.$i18n.i(key, locale, values)\n } else {\n return this._warnDefault(locale, key, ret, host, [values], 'raw')\n }\n};\n\nVueI18n.prototype.i = function i (key, locale, values) {\n /* istanbul ignore if */\n if (!key) { return '' }\n\n if (!isString(locale)) {\n locale = this.locale;\n }\n\n return this._i(key, locale, this._getMessages(), null, values)\n};\n\nVueI18n.prototype._tc = function _tc (\n key,\n _locale,\n messages,\n host,\n choice\n) {\n var ref;\n\n var values = [], len = arguments.length - 5;\n while ( len-- > 0 ) values[ len ] = arguments[ len + 5 ];\n if (!key) { return '' }\n if (choice === undefined) {\n choice = 1;\n }\n\n var predefined = { 'count': choice, 'n': choice };\n var parsedArgs = parseArgs.apply(void 0, values);\n parsedArgs.params = Object.assign(predefined, parsedArgs.params);\n values = parsedArgs.locale === null ? [parsedArgs.params] : [parsedArgs.locale, parsedArgs.params];\n return this.fetchChoice((ref = this)._t.apply(ref, [ key, _locale, messages, host ].concat( values )), choice)\n};\n\nVueI18n.prototype.fetchChoice = function fetchChoice (message, choice) {\n /* istanbul ignore if */\n if (!message || !isString(message)) { return null }\n var choices = message.split('|');\n\n choice = this.getChoiceIndex(choice, choices.length);\n if (!choices[choice]) { return message }\n return choices[choice].trim()\n};\n\nVueI18n.prototype.tc = function tc (key, choice) {\n var ref;\n\n var values = [], len = arguments.length - 2;\n while ( len-- > 0 ) values[ len ] = arguments[ len + 2 ];\n return (ref = this)._tc.apply(ref, [ key, this.locale, this._getMessages(), null, choice ].concat( values ))\n};\n\nVueI18n.prototype._te = function _te (key, locale, messages) {\n var args = [], len = arguments.length - 3;\n while ( len-- > 0 ) args[ len ] = arguments[ len + 3 ];\n\n var _locale = parseArgs.apply(void 0, args).locale || locale;\n return this._exist(messages[_locale], key)\n};\n\nVueI18n.prototype.te = function te (key, locale) {\n return this._te(key, this.locale, this._getMessages(), locale)\n};\n\nVueI18n.prototype.getLocaleMessage = function getLocaleMessage (locale) {\n return looseClone(this._vm.messages[locale] || {})\n};\n\nVueI18n.prototype.setLocaleMessage = function setLocaleMessage (locale, message) {\n if (this._warnHtmlInMessage === 'warn' || this._warnHtmlInMessage === 'error') {\n this._checkLocaleMessage(locale, this._warnHtmlInMessage, message);\n }\n this._vm.$set(this._vm.messages, locale, message);\n};\n\nVueI18n.prototype.mergeLocaleMessage = function mergeLocaleMessage (locale, message) {\n if (this._warnHtmlInMessage === 'warn' || this._warnHtmlInMessage === 'error') {\n this._checkLocaleMessage(locale, this._warnHtmlInMessage, message);\n }\n this._vm.$set(this._vm.messages, locale, merge(\n typeof this._vm.messages[locale] !== 'undefined' && Object.keys(this._vm.messages[locale]).length\n ? this._vm.messages[locale]\n : {},\n message\n ));\n};\n\nVueI18n.prototype.getDateTimeFormat = function getDateTimeFormat (locale) {\n return looseClone(this._vm.dateTimeFormats[locale] || {})\n};\n\nVueI18n.prototype.setDateTimeFormat = function setDateTimeFormat (locale, format) {\n this._vm.$set(this._vm.dateTimeFormats, locale, format);\n this._clearDateTimeFormat(locale, format);\n};\n\nVueI18n.prototype.mergeDateTimeFormat = function mergeDateTimeFormat (locale, format) {\n this._vm.$set(this._vm.dateTimeFormats, locale, merge(this._vm.dateTimeFormats[locale] || {}, format));\n this._clearDateTimeFormat(locale, format);\n};\n\nVueI18n.prototype._clearDateTimeFormat = function _clearDateTimeFormat (locale, format) {\n for (var key in format) {\n var id = locale + \"__\" + key;\n\n if (!this._dateTimeFormatters.hasOwnProperty(id)) {\n continue\n }\n\n delete this._dateTimeFormatters[id];\n }\n};\n\nVueI18n.prototype._localizeDateTime = function _localizeDateTime (\n value,\n locale,\n fallback,\n dateTimeFormats,\n key\n) {\n var _locale = locale;\n var formats = dateTimeFormats[_locale];\n\n var chain = this._getLocaleChain(locale, fallback);\n for (var i = 0; i < chain.length; i++) {\n var current = _locale;\n var step = chain[i];\n formats = dateTimeFormats[step];\n _locale = step;\n // fallback locale\n if (isNull(formats) || isNull(formats[key])) {\n if (step !== locale && process.env.NODE_ENV !== 'production' && !this._isSilentTranslationWarn(key) && !this._isSilentFallbackWarn(key)) {\n warn((\"Fall back to '\" + step + \"' datetime formats from '\" + current + \"' datetime formats.\"));\n }\n } else {\n break\n }\n }\n\n if (isNull(formats) || isNull(formats[key])) {\n return null\n } else {\n var format = formats[key];\n var id = _locale + \"__\" + key;\n var formatter = this._dateTimeFormatters[id];\n if (!formatter) {\n formatter = this._dateTimeFormatters[id] = new Intl.DateTimeFormat(_locale, format);\n }\n return formatter.format(value)\n }\n};\n\nVueI18n.prototype._d = function _d (value, locale, key) {\n /* istanbul ignore if */\n if (process.env.NODE_ENV !== 'production' && !VueI18n.availabilities.dateTimeFormat) {\n warn('Cannot format a Date value due to not supported Intl.DateTimeFormat.');\n return ''\n }\n\n if (!key) {\n return new Intl.DateTimeFormat(locale).format(value)\n }\n\n var ret =\n this._localizeDateTime(value, locale, this.fallbackLocale, this._getDateTimeFormats(), key);\n if (this._isFallbackRoot(ret)) {\n if (process.env.NODE_ENV !== 'production' && !this._isSilentTranslationWarn(key) && !this._isSilentFallbackWarn(key)) {\n warn((\"Fall back to datetime localization of root: key '\" + key + \"'.\"));\n }\n /* istanbul ignore if */\n if (!this._root) { throw Error('unexpected error') }\n return this._root.$i18n.d(value, key, locale)\n } else {\n return ret || ''\n }\n};\n\nVueI18n.prototype.d = function d (value) {\n var args = [], len = arguments.length - 1;\n while ( len-- > 0 ) args[ len ] = arguments[ len + 1 ];\n\n var locale = this.locale;\n var key = null;\n\n if (args.length === 1) {\n if (isString(args[0])) {\n key = args[0];\n } else if (isObject(args[0])) {\n if (args[0].locale) {\n locale = args[0].locale;\n }\n if (args[0].key) {\n key = args[0].key;\n }\n }\n } else if (args.length === 2) {\n if (isString(args[0])) {\n key = args[0];\n }\n if (isString(args[1])) {\n locale = args[1];\n }\n }\n\n return this._d(value, locale, key)\n};\n\nVueI18n.prototype.getNumberFormat = function getNumberFormat (locale) {\n return looseClone(this._vm.numberFormats[locale] || {})\n};\n\nVueI18n.prototype.setNumberFormat = function setNumberFormat (locale, format) {\n this._vm.$set(this._vm.numberFormats, locale, format);\n this._clearNumberFormat(locale, format);\n};\n\nVueI18n.prototype.mergeNumberFormat = function mergeNumberFormat (locale, format) {\n this._vm.$set(this._vm.numberFormats, locale, merge(this._vm.numberFormats[locale] || {}, format));\n this._clearNumberFormat(locale, format);\n};\n\nVueI18n.prototype._clearNumberFormat = function _clearNumberFormat (locale, format) {\n for (var key in format) {\n var id = locale + \"__\" + key;\n\n if (!this._numberFormatters.hasOwnProperty(id)) {\n continue\n }\n\n delete this._numberFormatters[id];\n }\n};\n\nVueI18n.prototype._getNumberFormatter = function _getNumberFormatter (\n value,\n locale,\n fallback,\n numberFormats,\n key,\n options\n) {\n var _locale = locale;\n var formats = numberFormats[_locale];\n\n var chain = this._getLocaleChain(locale, fallback);\n for (var i = 0; i < chain.length; i++) {\n var current = _locale;\n var step = chain[i];\n formats = numberFormats[step];\n _locale = step;\n // fallback locale\n if (isNull(formats) || isNull(formats[key])) {\n if (step !== locale && process.env.NODE_ENV !== 'production' && !this._isSilentTranslationWarn(key) && !this._isSilentFallbackWarn(key)) {\n warn((\"Fall back to '\" + step + \"' number formats from '\" + current + \"' number formats.\"));\n }\n } else {\n break\n }\n }\n\n if (isNull(formats) || isNull(formats[key])) {\n return null\n } else {\n var format = formats[key];\n\n var formatter;\n if (options) {\n // If options specified - create one time number formatter\n formatter = new Intl.NumberFormat(_locale, Object.assign({}, format, options));\n } else {\n var id = _locale + \"__\" + key;\n formatter = this._numberFormatters[id];\n if (!formatter) {\n formatter = this._numberFormatters[id] = new Intl.NumberFormat(_locale, format);\n }\n }\n return formatter\n }\n};\n\nVueI18n.prototype._n = function _n (value, locale, key, options) {\n /* istanbul ignore if */\n if (!VueI18n.availabilities.numberFormat) {\n if (process.env.NODE_ENV !== 'production') {\n warn('Cannot format a Number value due to not supported Intl.NumberFormat.');\n }\n return ''\n }\n\n if (!key) {\n var nf = !options ? new Intl.NumberFormat(locale) : new Intl.NumberFormat(locale, options);\n return nf.format(value)\n }\n\n var formatter = this._getNumberFormatter(value, locale, this.fallbackLocale, this._getNumberFormats(), key, options);\n var ret = formatter && formatter.format(value);\n if (this._isFallbackRoot(ret)) {\n if (process.env.NODE_ENV !== 'production' && !this._isSilentTranslationWarn(key) && !this._isSilentFallbackWarn(key)) {\n warn((\"Fall back to number localization of root: key '\" + key + \"'.\"));\n }\n /* istanbul ignore if */\n if (!this._root) { throw Error('unexpected error') }\n return this._root.$i18n.n(value, Object.assign({}, { key: key, locale: locale }, options))\n } else {\n return ret || ''\n }\n};\n\nVueI18n.prototype.n = function n (value) {\n var args = [], len = arguments.length - 1;\n while ( len-- > 0 ) args[ len ] = arguments[ len + 1 ];\n\n var locale = this.locale;\n var key = null;\n var options = null;\n\n if (args.length === 1) {\n if (isString(args[0])) {\n key = args[0];\n } else if (isObject(args[0])) {\n if (args[0].locale) {\n locale = args[0].locale;\n }\n if (args[0].key) {\n key = args[0].key;\n }\n\n // Filter out number format options only\n options = Object.keys(args[0]).reduce(function (acc, key) {\n var obj;\n\n if (includes(numberFormatKeys, key)) {\n return Object.assign({}, acc, ( obj = {}, obj[key] = args[0][key], obj ))\n }\n return acc\n }, null);\n }\n } else if (args.length === 2) {\n if (isString(args[0])) {\n key = args[0];\n }\n if (isString(args[1])) {\n locale = args[1];\n }\n }\n\n return this._n(value, locale, key, options)\n};\n\nVueI18n.prototype._ntp = function _ntp (value, locale, key, options) {\n /* istanbul ignore if */\n if (!VueI18n.availabilities.numberFormat) {\n if (process.env.NODE_ENV !== 'production') {\n warn('Cannot format to parts a Number value due to not supported Intl.NumberFormat.');\n }\n return []\n }\n\n if (!key) {\n var nf = !options ? new Intl.NumberFormat(locale) : new Intl.NumberFormat(locale, options);\n return nf.formatToParts(value)\n }\n\n var formatter = this._getNumberFormatter(value, locale, this.fallbackLocale, this._getNumberFormats(), key, options);\n var ret = formatter && formatter.formatToParts(value);\n if (this._isFallbackRoot(ret)) {\n if (process.env.NODE_ENV !== 'production' && !this._isSilentTranslationWarn(key)) {\n warn((\"Fall back to format number to parts of root: key '\" + key + \"' .\"));\n }\n /* istanbul ignore if */\n if (!this._root) { throw Error('unexpected error') }\n return this._root.$i18n._ntp(value, locale, key, options)\n } else {\n return ret || []\n }\n};\n\nObject.defineProperties( VueI18n.prototype, prototypeAccessors );\n\nvar availabilities;\n// $FlowFixMe\nObject.defineProperty(VueI18n, 'availabilities', {\n get: function get () {\n if (!availabilities) {\n var intlDefined = typeof Intl !== 'undefined';\n availabilities = {\n dateTimeFormat: intlDefined && typeof Intl.DateTimeFormat !== 'undefined',\n numberFormat: intlDefined && typeof Intl.NumberFormat !== 'undefined'\n };\n }\n\n return availabilities\n }\n});\n\nVueI18n.install = install;\nVueI18n.version = '8.22.4';\n\nexport default VueI18n;\n","import Vue from 'vue';\n\n// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign#Polyfill\nfunction assign (target, varArgs) {\n var arguments$1 = arguments;\n\n if (target === null || target === undefined) {\n throw new TypeError('Cannot convert undefined or null to object')\n }\n var to = Object(target);\n for (var index = 1; index < arguments.length; index++) {\n var nextSource = arguments$1[index];\n if (nextSource !== null && nextSource !== undefined) {\n for (var nextKey in nextSource) {\n // Avoid bugs when hasOwnProperty is shadowed\n /* istanbul ignore else */\n if (Object.prototype.hasOwnProperty.call(nextSource, nextKey)) {\n to[nextKey] = nextSource[nextKey];\n }\n }\n }\n }\n return to\n}\n\nfunction isExist (obj) {\n return typeof obj !== 'undefined' && obj !== null\n}\n\nfunction isFunction (obj) {\n return typeof obj === 'function'\n}\n\nfunction isNumber (obj) {\n return typeof obj === 'number'\n}\n\nfunction isString (obj) {\n return typeof obj === 'string'\n}\n\nfunction isBoolean (obj) {\n return typeof obj === 'boolean'\n}\n\nfunction isPromiseSupported () {\n return typeof window !== 'undefined' && isExist(window.Promise)\n}\n\nfunction hasOwnProperty (o, k) {\n return Object.prototype.hasOwnProperty.call(o, k)\n}\n\nvar script = {\n props: {\n value: Number,\n indicators: {\n type: Boolean,\n default: true\n },\n controls: {\n type: Boolean,\n default: true\n },\n interval: {\n type: Number,\n default: 5000\n },\n iconControlLeft: {\n type: String,\n default: 'glyphicon glyphicon-chevron-left'\n },\n iconControlRight: {\n type: String,\n default: 'glyphicon glyphicon-chevron-right'\n }\n },\n data: function data () {\n return {\n slides: [],\n activeIndex: 0, // Make v-model not required\n timeoutId: 0,\n intervalId: 0\n }\n },\n watch: {\n interval: function interval () {\n this.startInterval();\n },\n value: function value (index, oldValue) {\n this.run(index, oldValue);\n this.activeIndex = index;\n }\n },\n mounted: function mounted () {\n if (isExist(this.value)) {\n this.activeIndex = this.value;\n }\n if (this.slides.length > 0) {\n this.$select(this.activeIndex);\n }\n this.startInterval();\n },\n beforeDestroy: function beforeDestroy () {\n this.stopInterval();\n },\n methods: {\n run: function run (newIndex, oldIndex) {\n var this$1 = this;\n\n var currentActiveIndex = oldIndex || 0;\n var direction;\n if (newIndex > currentActiveIndex) {\n direction = ['next', 'left'];\n } else {\n direction = ['prev', 'right'];\n }\n this.slides[newIndex].slideClass[direction[0]] = true;\n this.$nextTick(function () {\n this$1.slides[newIndex].$el.offsetHeight;\n this$1.slides.forEach(function (slide, i) {\n if (i === currentActiveIndex) {\n slide.slideClass.active = true;\n slide.slideClass[direction[1]] = true;\n } else if (i === newIndex) {\n slide.slideClass[direction[1]] = true;\n }\n });\n this$1.timeoutId = setTimeout(function () {\n this$1.$select(newIndex);\n this$1.$emit('change', newIndex);\n this$1.timeoutId = 0;\n }, 600);\n });\n },\n startInterval: function startInterval () {\n var this$1 = this;\n\n this.stopInterval();\n if (this.interval > 0) {\n this.intervalId = setInterval(function () {\n this$1.next();\n }, this.interval);\n }\n },\n stopInterval: function stopInterval () {\n clearInterval(this.intervalId);\n this.intervalId = 0;\n },\n resetAllSlideClass: function resetAllSlideClass () {\n this.slides.forEach(function (slide) {\n slide.slideClass.active = false;\n slide.slideClass.left = false;\n slide.slideClass.right = false;\n slide.slideClass.next = false;\n slide.slideClass.prev = false;\n });\n },\n $select: function $select (index) {\n this.resetAllSlideClass();\n this.slides[index].slideClass.active = true;\n },\n select: function select (index) {\n if (this.timeoutId !== 0 || index === this.activeIndex) {\n return\n }\n if (isExist(this.value)) {\n this.$emit('input', index);\n } else {\n this.run(index, this.activeIndex);\n this.activeIndex = index;\n }\n },\n prev: function prev () {\n this.select(this.activeIndex === 0 ? this.slides.length - 1 : this.activeIndex - 1);\n },\n next: function next () {\n this.select(this.activeIndex === this.slides.length - 1 ? 0 : this.activeIndex + 1);\n }\n }\n};\n\nfunction normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier /* server only */, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {\r\n if (typeof shadowMode !== 'boolean') {\r\n createInjectorSSR = createInjector;\r\n createInjector = shadowMode;\r\n shadowMode = false;\r\n }\r\n // Vue.extend constructor export interop.\r\n var options = typeof script === 'function' ? script.options : script;\r\n // render functions\r\n if (template && template.render) {\r\n options.render = template.render;\r\n options.staticRenderFns = template.staticRenderFns;\r\n options._compiled = true;\r\n // functional template\r\n if (isFunctionalTemplate) {\r\n options.functional = true;\r\n }\r\n }\r\n // scopedId\r\n if (scopeId) {\r\n options._scopeId = scopeId;\r\n }\r\n var hook;\r\n if (moduleIdentifier) {\r\n // server build\r\n hook = function (context) {\r\n // 2.3 injection\r\n context =\r\n context || // cached call\r\n (this.$vnode && this.$vnode.ssrContext) || // stateful\r\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext); // functional\r\n // 2.2 with runInNewContext: true\r\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\r\n context = __VUE_SSR_CONTEXT__;\r\n }\r\n // inject component styles\r\n if (style) {\r\n style.call(this, createInjectorSSR(context));\r\n }\r\n // register component module identifier for async chunk inference\r\n if (context && context._registeredComponents) {\r\n context._registeredComponents.add(moduleIdentifier);\r\n }\r\n };\r\n // used by ssr in case component is cached and beforeCreate\r\n // never gets called\r\n options._ssrRegister = hook;\r\n }\r\n else if (style) {\r\n hook = shadowMode\r\n ? function (context) {\r\n style.call(this, createInjectorShadow(context, this.$root.$options.shadowRoot));\r\n }\r\n : function (context) {\r\n style.call(this, createInjector(context));\r\n };\r\n }\r\n if (hook) {\r\n if (options.functional) {\r\n // register for functional component in vue file\r\n var originalRender = options.render;\r\n options.render = function renderWithStyleInjection(h, context) {\r\n hook.call(context);\r\n return originalRender(h, context);\r\n };\r\n }\r\n else {\r\n // inject component registration as beforeCreate hook\r\n var existing = options.beforeCreate;\r\n options.beforeCreate = existing ? [].concat(existing, hook) : [hook];\r\n }\r\n }\r\n return script;\r\n}\n\n/* script */\nvar __vue_script__ = script;\n\n/* template */\nvar __vue_render__ = function() {\n var _vm = this;\n var _h = _vm.$createElement;\n var _c = _vm._self._c || _h;\n return _c(\n \"div\",\n {\n staticClass: \"carousel slide\",\n attrs: { \"data-ride\": \"carousel\" },\n on: { mouseenter: _vm.stopInterval, mouseleave: _vm.startInterval }\n },\n [\n _vm.indicators\n ? _vm._t(\n \"indicators\",\n [\n _c(\n \"ol\",\n { staticClass: \"carousel-indicators\" },\n _vm._l(_vm.slides, function(slide, index) {\n return _c(\"li\", {\n class: { active: index === _vm.activeIndex },\n on: {\n click: function($event) {\n return _vm.select(index)\n }\n }\n })\n }),\n 0\n )\n ],\n { select: _vm.select, activeIndex: _vm.activeIndex }\n )\n : _vm._e(),\n _vm._v(\" \"),\n _c(\n \"div\",\n { staticClass: \"carousel-inner\", attrs: { role: \"listbox\" } },\n [_vm._t(\"default\")],\n 2\n ),\n _vm._v(\" \"),\n _vm.controls\n ? _c(\n \"a\",\n {\n staticClass: \"left carousel-control\",\n attrs: { href: \"#\", role: \"button\" },\n on: {\n click: function($event) {\n $event.preventDefault();\n return _vm.prev()\n }\n }\n },\n [\n _c(\"span\", {\n class: _vm.iconControlLeft,\n attrs: { \"aria-hidden\": \"true\" }\n }),\n _vm._v(\" \"),\n _c(\"span\", { staticClass: \"sr-only\" }, [_vm._v(\"Previous\")])\n ]\n )\n : _vm._e(),\n _vm._v(\" \"),\n _vm.controls\n ? _c(\n \"a\",\n {\n staticClass: \"right carousel-control\",\n attrs: { href: \"#\", role: \"button\" },\n on: {\n click: function($event) {\n $event.preventDefault();\n return _vm.next()\n }\n }\n },\n [\n _c(\"span\", {\n class: _vm.iconControlRight,\n attrs: { \"aria-hidden\": \"true\" }\n }),\n _vm._v(\" \"),\n _c(\"span\", { staticClass: \"sr-only\" }, [_vm._v(\"Next\")])\n ]\n )\n : _vm._e()\n ],\n 2\n )\n};\nvar __vue_staticRenderFns__ = [];\n__vue_render__._withStripped = true;\n\n /* style */\n var __vue_inject_styles__ = undefined;\n /* scoped */\n var __vue_scope_id__ = undefined;\n /* module identifier */\n var __vue_module_identifier__ = undefined;\n /* functional template */\n var __vue_is_functional_template__ = false;\n /* style inject */\n \n /* style inject SSR */\n \n /* style inject shadow dom */\n \n\n \n var __vue_component__ = /*#__PURE__*/normalizeComponent(\n { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },\n __vue_inject_styles__,\n __vue_script__,\n __vue_scope_id__,\n __vue_is_functional_template__,\n __vue_module_identifier__,\n false,\n undefined,\n undefined,\n undefined\n );\n\nfunction spliceIfExist (arr, item) {\n if (Array.isArray(arr)) {\n var index = arr.indexOf(item);\n if (index >= 0) {\n arr.splice(index, 1);\n }\n }\n}\n\nfunction range (end, start, step) {\n if ( start === void 0 ) start = 0;\n if ( step === void 0 ) step = 1;\n\n var arr = [];\n for (var i = start; i < end; i += step) {\n arr.push(i);\n }\n return arr\n}\n\nfunction nodeListToArray (nodeList) {\n return Array.prototype.slice.call(nodeList || [])\n}\n\nfunction onlyUnique (value, index, self) {\n return self.indexOf(value) === index\n}\n\nvar script$1 = {\n data: function data () {\n return {\n slideClass: {\n active: false,\n prev: false,\n next: false,\n left: false,\n right: false\n }\n }\n },\n created: function created () {\n try {\n this.$parent.slides.push(this);\n } catch (e) {\n throw new Error('Slide parent must be Carousel.')\n }\n },\n beforeDestroy: function beforeDestroy () {\n var slides = this.$parent && this.$parent.slides;\n spliceIfExist(slides, this);\n }\n};\n\n/* script */\nvar __vue_script__$1 = script$1;\n\n/* template */\nvar __vue_render__$1 = function() {\n var _vm = this;\n var _h = _vm.$createElement;\n var _c = _vm._self._c || _h;\n return _c(\n \"div\",\n { staticClass: \"item\", class: _vm.slideClass },\n [_vm._t(\"default\")],\n 2\n )\n};\nvar __vue_staticRenderFns__$1 = [];\n__vue_render__$1._withStripped = true;\n\n /* style */\n var __vue_inject_styles__$1 = undefined;\n /* scoped */\n var __vue_scope_id__$1 = undefined;\n /* module identifier */\n var __vue_module_identifier__$1 = undefined;\n /* functional template */\n var __vue_is_functional_template__$1 = false;\n /* style inject */\n \n /* style inject SSR */\n \n /* style inject shadow dom */\n \n\n \n var __vue_component__$1 = /*#__PURE__*/normalizeComponent(\n { render: __vue_render__$1, staticRenderFns: __vue_staticRenderFns__$1 },\n __vue_inject_styles__$1,\n __vue_script__$1,\n __vue_scope_id__$1,\n __vue_is_functional_template__$1,\n __vue_module_identifier__$1,\n false,\n undefined,\n undefined,\n undefined\n );\n\nvar EVENTS = {\n MOUSE_ENTER: 'mouseenter',\n MOUSE_LEAVE: 'mouseleave',\n MOUSE_DOWN: 'mousedown',\n MOUSE_UP: 'mouseup',\n FOCUS: 'focus',\n BLUR: 'blur',\n CLICK: 'click',\n INPUT: 'input',\n KEY_DOWN: 'keydown',\n KEY_UP: 'keyup',\n KEY_PRESS: 'keypress',\n RESIZE: 'resize',\n SCROLL: 'scroll',\n TOUCH_START: 'touchstart',\n TOUCH_END: 'touchend'\n};\n\nvar TRIGGERS = {\n CLICK: 'click',\n HOVER: 'hover',\n FOCUS: 'focus',\n HOVER_FOCUS: 'hover-focus',\n OUTSIDE_CLICK: 'outside-click',\n MANUAL: 'manual'\n};\n\nvar PLACEMENTS = {\n TOP: 'top',\n RIGHT: 'right',\n BOTTOM: 'bottom',\n LEFT: 'left'\n};\n\nfunction isIE11 () {\n /* istanbul ignore next */\n return !!window.MSInputMethodContext && !!document.documentMode\n}\n\nfunction isIE10 () {\n return window.navigator.appVersion.indexOf('MSIE 10') !== -1\n}\n\nfunction getComputedStyle (el) {\n return window.getComputedStyle(el)\n}\n\nfunction getViewportSize () {\n /* istanbul ignore next */\n var width = Math.max(document.documentElement.clientWidth, window.innerWidth) || 0;\n /* istanbul ignore next */\n var height = Math.max(document.documentElement.clientHeight, window.innerHeight) || 0;\n return { width: width, height: height }\n}\n\nvar scrollbarWidth = null;\nvar savedScreenSize = null;\n\nfunction getScrollbarWidth (recalculate) {\n if ( recalculate === void 0 ) recalculate = false;\n\n var screenSize = getViewportSize();\n // return directly when already calculated & not force recalculate & screen size not changed\n if (scrollbarWidth !== null && !recalculate &&\n screenSize.height === savedScreenSize.height && screenSize.width === savedScreenSize.width) {\n return scrollbarWidth\n }\n /* istanbul ignore next */\n if (document.readyState === 'loading') {\n return null\n }\n var div1 = document.createElement('div');\n var div2 = document.createElement('div');\n div1.style.width = div2.style.width = div1.style.height = div2.style.height = '100px';\n div1.style.overflow = 'scroll';\n div2.style.overflow = 'hidden';\n document.body.appendChild(div1);\n document.body.appendChild(div2);\n scrollbarWidth = Math.abs(div1.scrollHeight - div2.scrollHeight);\n document.body.removeChild(div1);\n document.body.removeChild(div2);\n // save new screen size\n savedScreenSize = screenSize;\n return scrollbarWidth\n}\n\nfunction on (element, event, handler) {\n /* istanbul ignore next */\n element.addEventListener(event, handler);\n}\n\nfunction off (element, event, handler) {\n /* istanbul ignore next */\n element.removeEventListener(event, handler);\n}\n\nfunction isElement (el) {\n return el && el.nodeType === Node.ELEMENT_NODE\n}\n\nfunction removeFromDom (el) {\n isElement(el) && isElement(el.parentNode) && el.parentNode.removeChild(el);\n}\n\nfunction ensureElementMatchesFunction () {\n /* istanbul ignore next */\n if (!Element.prototype.matches) {\n Element.prototype.matches =\n Element.prototype.matchesSelector ||\n Element.prototype.mozMatchesSelector ||\n Element.prototype.msMatchesSelector ||\n Element.prototype.oMatchesSelector ||\n Element.prototype.webkitMatchesSelector ||\n function (s) {\n var matches = (this.document || this.ownerDocument).querySelectorAll(s);\n var i = matches.length;\n while (--i >= 0 && matches.item(i) !== this) {\n }\n return i > -1\n };\n }\n}\n\nfunction addClass (el, className) {\n if (!isElement(el)) {\n return\n }\n if (el.className) {\n var classes = el.className.split(' ');\n if (classes.indexOf(className) < 0) {\n classes.push(className);\n el.className = classes.join(' ');\n }\n } else {\n el.className = className;\n }\n}\n\nfunction removeClass (el, className) {\n if (!isElement(el)) {\n return\n }\n if (el.className) {\n var classes = el.className.split(' ');\n var newClasses = [];\n for (var i = 0, l = classes.length; i < l; i++) {\n if (classes[i] !== className) {\n newClasses.push(classes[i]);\n }\n }\n el.className = newClasses.join(' ');\n }\n}\n\nfunction hasClass (el, className) {\n if (!isElement(el)) {\n return false\n }\n var classes = el.className.split(' ');\n for (var i = 0, l = classes.length; i < l; i++) {\n if (classes[i] === className) {\n return true\n }\n }\n return false\n}\n\nfunction setDropdownPosition (dropdown, trigger, options) {\n if ( options === void 0 ) options = {};\n\n var doc = document.documentElement;\n var containerScrollLeft = (window.pageXOffset || doc.scrollLeft) - (doc.clientLeft || 0);\n var containerScrollTop = (window.pageYOffset || doc.scrollTop) - (doc.clientTop || 0);\n var rect = trigger.getBoundingClientRect();\n var dropdownRect = dropdown.getBoundingClientRect();\n dropdown.style.right = 'auto';\n dropdown.style.bottom = 'auto';\n if (options.menuRight) {\n dropdown.style.left = containerScrollLeft + rect.left + rect.width - dropdownRect.width + 'px';\n } else {\n dropdown.style.left = containerScrollLeft + rect.left + 'px';\n }\n if (options.dropup) {\n dropdown.style.top = containerScrollTop + rect.top - dropdownRect.height - 4 + 'px';\n } else {\n dropdown.style.top = containerScrollTop + rect.top + rect.height + 'px';\n }\n}\n\nfunction isAvailableAtPosition (trigger, popup, placement) {\n var triggerRect = trigger.getBoundingClientRect();\n var popupRect = popup.getBoundingClientRect();\n var viewPortSize = getViewportSize();\n var top = true;\n var right = true;\n var bottom = true;\n var left = true;\n switch (placement) {\n case PLACEMENTS.TOP:\n top = triggerRect.top >= popupRect.height;\n left = triggerRect.left + triggerRect.width / 2 >= popupRect.width / 2;\n right = triggerRect.right - triggerRect.width / 2 + popupRect.width / 2 <= viewPortSize.width;\n break\n case PLACEMENTS.BOTTOM:\n bottom = triggerRect.bottom + popupRect.height <= viewPortSize.height;\n left = triggerRect.left + triggerRect.width / 2 >= popupRect.width / 2;\n right = triggerRect.right - triggerRect.width / 2 + popupRect.width / 2 <= viewPortSize.width;\n break\n case PLACEMENTS.RIGHT:\n right = triggerRect.right + popupRect.width <= viewPortSize.width;\n top = triggerRect.top + triggerRect.height / 2 >= popupRect.height / 2;\n bottom = triggerRect.bottom - triggerRect.height / 2 + popupRect.height / 2 <= viewPortSize.height;\n break\n case PLACEMENTS.LEFT:\n left = triggerRect.left >= popupRect.width;\n top = triggerRect.top + triggerRect.height / 2 >= popupRect.height / 2;\n bottom = triggerRect.bottom - triggerRect.height / 2 + popupRect.height / 2 <= viewPortSize.height;\n break\n }\n return top && right && bottom && left\n}\n\nfunction setTooltipPosition (tooltip, trigger, placement, auto, appendTo, viewport) {\n if (!isElement(tooltip) || !isElement(trigger)) {\n return\n }\n var isPopover = tooltip && tooltip.className && tooltip.className.indexOf('popover') >= 0;\n var containerScrollTop;\n var containerScrollLeft;\n if (!isExist(appendTo) || appendTo === 'body') {\n var doc = document.documentElement;\n containerScrollLeft = (window.pageXOffset || doc.scrollLeft) - (doc.clientLeft || 0);\n containerScrollTop = (window.pageYOffset || doc.scrollTop) - (doc.clientTop || 0);\n } else {\n var container = getElementBySelectorOrRef(appendTo);\n containerScrollLeft = container.scrollLeft;\n containerScrollTop = container.scrollTop;\n }\n // auto adjust placement\n if (auto) {\n // Try: right -> bottom -> left -> top\n // Cause the default placement is top\n var placements = [PLACEMENTS.RIGHT, PLACEMENTS.BOTTOM, PLACEMENTS.LEFT, PLACEMENTS.TOP];\n // The class switch helper function\n var changePlacementClass = function (placement) {\n // console.log(placement)\n placements.forEach(function (placement) {\n removeClass(tooltip, placement);\n });\n addClass(tooltip, placement);\n };\n // No need to adjust if the default placement fits\n if (!isAvailableAtPosition(trigger, tooltip, placement)) {\n for (var i = 0, l = placements.length; i < l; i++) {\n // Re-assign placement class\n changePlacementClass(placements[i]);\n // Break if new placement fits\n if (isAvailableAtPosition(trigger, tooltip, placements[i])) {\n placement = placements[i];\n break\n }\n }\n changePlacementClass(placement);\n }\n }\n // fix left and top for tooltip\n var rect = trigger.getBoundingClientRect();\n var tooltipRect = tooltip.getBoundingClientRect();\n var top;\n var left;\n if (placement === PLACEMENTS.BOTTOM) {\n top = containerScrollTop + rect.top + rect.height;\n left = containerScrollLeft + rect.left + rect.width / 2 - tooltipRect.width / 2;\n } else if (placement === PLACEMENTS.LEFT) {\n top = containerScrollTop + rect.top + rect.height / 2 - tooltipRect.height / 2;\n left = containerScrollLeft + rect.left - tooltipRect.width;\n } else if (placement === PLACEMENTS.RIGHT) {\n top = containerScrollTop + rect.top + rect.height / 2 - tooltipRect.height / 2;\n // https://github.com/uiv-lib/uiv/issues/272\n // add 1px to fix above issue\n left = containerScrollLeft + rect.left + rect.width + 1;\n } else {\n top = containerScrollTop + rect.top - tooltipRect.height;\n left = containerScrollLeft + rect.left + rect.width / 2 - tooltipRect.width / 2;\n }\n var viewportEl;\n // viewport option\n if (isString(viewport)) {\n viewportEl = document.querySelector(viewport);\n } else if (isFunction(viewport)) {\n viewportEl = viewport(trigger);\n }\n if (isElement(viewportEl)) {\n var popoverFix = isPopover ? 11 : 0;\n var viewportReact = viewportEl.getBoundingClientRect();\n var viewportTop = containerScrollTop + viewportReact.top;\n var viewportLeft = containerScrollLeft + viewportReact.left;\n var viewportBottom = viewportTop + viewportReact.height;\n var viewportRight = viewportLeft + viewportReact.width;\n // fix top\n if (top < viewportTop) {\n top = viewportTop;\n } else if (top + tooltipRect.height > viewportBottom) {\n top = viewportBottom - tooltipRect.height;\n }\n // fix left\n if (left < viewportLeft) {\n left = viewportLeft;\n } else if (left + tooltipRect.width > viewportRight) {\n left = viewportRight - tooltipRect.width;\n }\n // fix for popover pointer\n if (placement === PLACEMENTS.BOTTOM) {\n top -= popoverFix;\n } else if (placement === PLACEMENTS.LEFT) {\n left += popoverFix;\n } else if (placement === PLACEMENTS.RIGHT) {\n left -= popoverFix;\n } else {\n top += popoverFix;\n }\n }\n // set position finally\n tooltip.style.top = top + \"px\";\n tooltip.style.left = left + \"px\";\n}\n\nfunction hasScrollbar (el) {\n var SCROLL = 'scroll';\n var hasVScroll = el.scrollHeight > el.clientHeight;\n var style = getComputedStyle(el);\n return hasVScroll || style.overflow === SCROLL || style.overflowY === SCROLL\n}\n\nfunction toggleBodyOverflow (enable) {\n var MODAL_OPEN = 'modal-open';\n var FIXED_CONTENT = '.navbar-fixed-top, .navbar-fixed-bottom';\n var body = document.body;\n if (enable) {\n removeClass(body, MODAL_OPEN);\n body.style.paddingRight = null;\n document.querySelectorAll(FIXED_CONTENT).forEach(function (node) {\n node.style.paddingRight = null;\n });\n } else {\n var browsersWithFloatingScrollbar = isIE10() || isIE11();\n var documentHasScrollbar = hasScrollbar(document.documentElement) || hasScrollbar(document.body);\n if (documentHasScrollbar && !browsersWithFloatingScrollbar) {\n var scrollbarWidth = getScrollbarWidth();\n body.style.paddingRight = scrollbarWidth + \"px\";\n document.querySelectorAll(FIXED_CONTENT).forEach(function (node) {\n node.style.paddingRight = scrollbarWidth + \"px\";\n });\n }\n addClass(body, MODAL_OPEN);\n }\n}\n\nfunction getClosest (el, selector) {\n ensureElementMatchesFunction();\n var parent;\n var _el = el;\n while (_el) {\n parent = _el.parentElement;\n if (parent && parent.matches(selector)) {\n return parent\n }\n _el = parent;\n }\n return null\n}\n\nfunction getParents (el, selector, until) {\n if ( until === void 0 ) until = null;\n\n ensureElementMatchesFunction();\n var parents = [];\n var parent = el.parentElement;\n while (parent) {\n if (parent.matches(selector)) {\n parents.push(parent);\n } else if (until && (until === parent || parent.matches(until))) {\n break\n }\n parent = parent.parentElement;\n }\n return parents\n}\n\nfunction focus (el) {\n if (!isElement(el)) {\n return\n }\n el.getAttribute('tabindex') ? null : el.setAttribute('tabindex', '-1');\n el.focus();\n}\n\nvar MODAL_BACKDROP = 'modal-backdrop';\n\nfunction getOpenModals () {\n return document.querySelectorAll((\".\" + MODAL_BACKDROP))\n}\n\nfunction getOpenModalNum () {\n return getOpenModals().length\n}\n\nfunction getElementBySelectorOrRef (q) {\n if (isString(q)) { // is selector\n return document.querySelector(q)\n } else if (isElement(q)) { // is element\n return q\n } else if (isElement(q.$el)) { // is component\n return q.$el\n } else {\n return null\n }\n}\n\nvar COLLAPSE = 'collapse';\nvar IN = 'in';\nvar COLLAPSING = 'collapsing';\n\nvar Collapse = {\n render: function render (h) {\n return h(this.tag, {}, this.$slots.default)\n },\n props: {\n tag: {\n type: String,\n default: 'div'\n },\n value: {\n type: Boolean,\n default: false\n },\n transition: {\n type: Number,\n default: 350\n }\n },\n data: function data () {\n return {\n timeoutId: 0\n }\n },\n watch: {\n value: function value (show) {\n this.toggle(show);\n }\n },\n mounted: function mounted () {\n var el = this.$el;\n addClass(el, COLLAPSE);\n if (this.value) {\n addClass(el, IN);\n }\n },\n methods: {\n toggle: function toggle (show) {\n var this$1 = this;\n\n clearTimeout(this.timeoutId);\n var el = this.$el;\n if (show) {\n this.$emit('show');\n removeClass(el, COLLAPSE);\n el.style.height = 'auto';\n var height = window.getComputedStyle(el).height;\n el.style.height = null;\n addClass(el, COLLAPSING);\n el.offsetHeight; // force repaint\n el.style.height = height;\n this.timeoutId = setTimeout(function () {\n removeClass(el, COLLAPSING);\n addClass(el, COLLAPSE);\n addClass(el, IN);\n el.style.height = null;\n this$1.timeoutId = 0;\n this$1.$emit('shown');\n }, this.transition);\n } else {\n this.$emit('hide');\n el.style.height = window.getComputedStyle(el).height;\n removeClass(el, IN);\n removeClass(el, COLLAPSE);\n el.offsetHeight;\n el.style.height = null;\n addClass(el, COLLAPSING);\n this.timeoutId = setTimeout(function () {\n addClass(el, COLLAPSE);\n removeClass(el, COLLAPSING);\n el.style.height = null;\n this$1.timeoutId = 0;\n this$1.$emit('hidden');\n }, this.transition);\n }\n }\n }\n};\n\nvar DEFAULT_TAG = 'div';\n\nvar Dropdown = {\n render: function render (h) {\n return h(\n this.tag,\n {\n class: {\n 'btn-group': this.tag === DEFAULT_TAG,\n dropdown: !this.dropup,\n dropup: this.dropup,\n open: this.show\n }\n },\n [\n this.$slots.default,\n h(\n 'ul',\n {\n class: {\n 'dropdown-menu': true,\n 'dropdown-menu-right': this.menuRight\n },\n ref: 'dropdown'\n },\n [this.$slots.dropdown]\n )\n ]\n )\n },\n props: {\n tag: {\n type: String,\n default: DEFAULT_TAG\n },\n appendToBody: {\n type: Boolean,\n default: false\n },\n value: Boolean,\n dropup: {\n type: Boolean,\n default: false\n },\n menuRight: {\n type: Boolean,\n default: false\n },\n disabled: {\n type: Boolean,\n default: false\n },\n notCloseElements: Array,\n positionElement: null\n },\n data: function data () {\n return {\n show: false,\n triggerEl: undefined\n }\n },\n watch: {\n value: function value (v) {\n this.toggle(v);\n }\n },\n mounted: function mounted () {\n this.initTrigger();\n if (this.triggerEl) {\n on(this.triggerEl, EVENTS.CLICK, this.toggle);\n on(this.triggerEl, EVENTS.KEY_DOWN, this.onKeyPress);\n }\n on(this.$refs.dropdown, EVENTS.KEY_DOWN, this.onKeyPress);\n on(window, EVENTS.CLICK, this.windowClicked);\n on(window, EVENTS.TOUCH_END, this.windowClicked);\n if (this.value) {\n this.toggle(true);\n }\n },\n beforeDestroy: function beforeDestroy () {\n this.removeDropdownFromBody();\n if (this.triggerEl) {\n off(this.triggerEl, EVENTS.CLICK, this.toggle);\n off(this.triggerEl, EVENTS.KEY_DOWN, this.onKeyPress);\n }\n off(this.$refs.dropdown, EVENTS.KEY_DOWN, this.onKeyPress);\n off(window, EVENTS.CLICK, this.windowClicked);\n off(window, EVENTS.TOUCH_END, this.windowClicked);\n },\n methods: {\n getFocusItem: function getFocusItem () {\n var dropdownEl = this.$refs.dropdown;\n /* istanbul ignore next */\n return dropdownEl.querySelector('li > a:focus')\n },\n onKeyPress: function onKeyPress (event) {\n if (this.show) {\n var dropdownEl = this.$refs.dropdown;\n var keyCode = event.keyCode;\n if (keyCode === 27) {\n // esc\n this.toggle(false);\n this.triggerEl && this.triggerEl.focus();\n } else if (keyCode === 13) {\n // enter\n var currentFocus = this.getFocusItem();\n currentFocus && currentFocus.click();\n } else if (keyCode === 38 || keyCode === 40) {\n // up || down\n event.preventDefault();\n event.stopPropagation();\n var currentFocus$1 = this.getFocusItem();\n var items = dropdownEl.querySelectorAll('li:not(.disabled) > a');\n if (!currentFocus$1) {\n focus(items[0]);\n } else {\n for (var i = 0; i < items.length; i++) {\n if (currentFocus$1 === items[i]) {\n if (keyCode === 38 && i < items.length > 0) {\n focus(items[i - 1]);\n } else if (keyCode === 40 && i < items.length - 1) {\n focus(items[i + 1]);\n }\n break\n }\n }\n }\n }\n }\n },\n initTrigger: function initTrigger () {\n var trigger = this.$el.querySelector('[data-role=\"trigger\"]') || this.$el.querySelector('.dropdown-toggle') || this.$el.firstChild;\n this.triggerEl = trigger && trigger !== this.$refs.dropdown ? trigger : null;\n },\n toggle: function toggle (show) {\n if (this.disabled) {\n return\n }\n if (isBoolean(show)) {\n this.show = show;\n } else {\n this.show = !this.show;\n }\n if (this.appendToBody) {\n this.show ? this.appendDropdownToBody() : this.removeDropdownFromBody();\n }\n this.$emit('input', this.show);\n },\n windowClicked: function windowClicked (event) {\n var target = event.target;\n if (this.show && target) {\n var targetInNotCloseElements = false;\n if (this.notCloseElements) {\n for (var i = 0, l = this.notCloseElements.length; i < l; i++) {\n var isTargetInElement = this.notCloseElements[i].contains(target);\n var shouldBreak = isTargetInElement;\n /* istanbul ignore else */\n if (this.appendToBody) {\n var isTargetInDropdown = this.$refs.dropdown.contains(target);\n var isElInElements = this.notCloseElements.indexOf(this.$el) >= 0;\n shouldBreak = isTargetInElement || (isTargetInDropdown && isElInElements);\n }\n if (shouldBreak) {\n targetInNotCloseElements = true;\n break\n }\n }\n }\n var targetInDropdownBody = this.$refs.dropdown.contains(target);\n var targetInTrigger = this.$el.contains(target) && !targetInDropdownBody;\n // normally, a dropdown select event is handled by @click that trigger after @touchend\n // then @touchend event have to be ignore in this case\n var targetInDropdownAndIsTouchEvent = targetInDropdownBody && event.type === 'touchend';\n if (!targetInTrigger && !targetInNotCloseElements && !targetInDropdownAndIsTouchEvent) {\n this.toggle(false);\n }\n }\n },\n appendDropdownToBody: function appendDropdownToBody () {\n try {\n var el = this.$refs.dropdown;\n el.style.display = 'block';\n document.body.appendChild(el);\n var positionElement = this.positionElement || this.$el;\n setDropdownPosition(el, positionElement, this);\n } catch (e) {\n // Silent\n }\n },\n removeDropdownFromBody: function removeDropdownFromBody () {\n try {\n var el = this.$refs.dropdown;\n el.removeAttribute('style');\n this.$el.appendChild(el);\n } catch (e) {\n // Silent\n }\n }\n }\n};\n\nvar defaultLang = {\n uiv: {\n datePicker: {\n clear: 'Clear',\n today: 'Today',\n month: 'Month',\n month1: 'January',\n month2: 'February',\n month3: 'March',\n month4: 'April',\n month5: 'May',\n month6: 'June',\n month7: 'July',\n month8: 'August',\n month9: 'September',\n month10: 'October',\n month11: 'November',\n month12: 'December',\n year: 'Year',\n week1: 'Mon',\n week2: 'Tue',\n week3: 'Wed',\n week4: 'Thu',\n week5: 'Fri',\n week6: 'Sat',\n week7: 'Sun'\n },\n timePicker: {\n am: 'AM',\n pm: 'PM'\n },\n modal: {\n cancel: 'Cancel',\n ok: 'OK'\n },\n multiSelect: {\n placeholder: 'Select...',\n filterPlaceholder: 'Search...'\n }\n }\n};\n\n// https://github.com/ElemeFE/element/blob/dev/src/locale/index.js\n\nvar lang = defaultLang;\n\nvar i18nHandler = function () {\n var vuei18n = Object.getPrototypeOf(this).$t;\n /* istanbul ignore else */\n /* istanbul ignore next */\n if (isFunction(vuei18n)) {\n /* istanbul ignore next */\n try {\n return vuei18n.apply(this, arguments)\n } catch (err) {\n return this.$t.apply(this, arguments)\n }\n }\n};\n\nvar t = function (path, options) {\n options = options || {};\n var value;\n try {\n value = i18nHandler.apply(this, arguments);\n /* istanbul ignore next */\n if (isExist(value) && !options.$$locale) {\n return value\n }\n } catch (e) {\n // ignore\n }\n var array = path.split('.');\n var current = options.$$locale || lang;\n\n for (var i = 0, j = array.length; i < j; i++) {\n var property = array[i];\n value = current[property];\n if (i === j - 1) { return value }\n if (!value) { return '' }\n current = value;\n }\n /* istanbul ignore next */\n return ''\n};\n\nvar use = function (l) {\n lang = l || lang;\n};\n\nvar i18n = function (fn) {\n i18nHandler = fn || i18nHandler;\n};\n\nvar locale = { use: use, t: t, i18n: i18n };\n\nvar Local = {\n methods: {\n t: function t$1 () {\n var arguments$1 = arguments;\n\n var args = [];\n for (var i = 0; i < arguments.length; ++i) {\n args.push(arguments$1[i]);\n }\n args[1] = assign({}, { $$locale: this.locale }, args[1]);\n return t.apply(this, args)\n }\n },\n props: {\n locale: Object\n }\n};\n\nvar e=function(){return (e=Object.assign||function(e){for(var t,r=1,s=arguments.length;r props\n href: String,\n target: String,\n // props\n to: null,\n replace: {\n type: Boolean,\n default: false\n },\n append: {\n type: Boolean,\n default: false\n },\n exact: {\n type: Boolean,\n default: false\n }\n }\n};\n\nvar BtnGroup = {\n functional: true,\n render: function render (h, ref) {\n var obj;\n\n var props = ref.props;\n var children = ref.children;\n var data = ref.data;\n return h(\n 'div',\n a(data, {\n class: ( obj = {\n 'btn-group': !props.vertical,\n 'btn-group-vertical': props.vertical,\n 'btn-group-justified': props.justified\n }, obj[(\"btn-group-\" + (props.size))] = props.size, obj ),\n attrs: {\n role: 'group',\n 'data-toggle': 'buttons'\n }\n }),\n children\n )\n },\n props: {\n size: String,\n vertical: {\n type: Boolean,\n default: false\n },\n justified: {\n type: Boolean,\n default: false\n }\n }\n};\n\nvar INPUT_TYPE_CHECKBOX = 'checkbox';\nvar INPUT_TYPE_RADIO = 'radio';\n\nvar Btn = {\n functional: true,\n mixins: [linkMixin],\n render: function render (h, ref) {\n var children = ref.children;\n var props = ref.props;\n var data = ref.data;\n\n // event listeners\n var listeners = data.on || {};\n // checkbox: model contain inputValue\n // radio: model === inputValue\n var isInputActive = props.inputType === INPUT_TYPE_CHECKBOX ? props.value.indexOf(props.inputValue) >= 0 : props.value === props.inputValue;\n // button class\n var classes = {\n btn: true,\n active: props.inputType ? isInputActive : props.active,\n disabled: props.disabled,\n 'btn-block': props.block\n };\n classes[(\"btn-\" + (props.type))] = Boolean(props.type);\n classes[(\"btn-\" + (props.size))] = Boolean(props.size);\n // prevent event for disabled links\n var on = {\n click: function click (e) {\n if (props.disabled && e instanceof Event) {\n e.preventDefault();\n e.stopPropagation();\n }\n }\n };\n // render params\n var tag, options, slot;\n\n if (props.href) {\n // is native link\n tag = 'a';\n slot = children;\n options = a(data, {\n on: on,\n class: classes,\n attrs: {\n role: 'button',\n href: props.href,\n target: props.target\n }\n });\n } else if (props.to) {\n // is vue router link\n tag = 'router-link';\n slot = children;\n options = a(data, {\n nativeOn: on,\n class: classes,\n props: {\n event: props.disabled ? '' : 'click', // prevent nav while disabled\n to: props.to,\n replace: props.replace,\n append: props.append,\n exact: props.exact\n },\n attrs: {\n role: 'button'\n }\n });\n } else if (props.inputType) {\n // is input checkbox or radio\n tag = 'label';\n options = a(data, {\n on: on,\n class: classes\n });\n slot = [\n h('input', {\n attrs: {\n autocomplete: 'off',\n type: props.inputType,\n checked: isInputActive ? 'checked' : null,\n disabled: props.disabled\n },\n domProps: {\n checked: isInputActive // required\n },\n on: {\n input: function input (evt) {\n evt.stopPropagation();\n },\n change: function change () {\n if (props.inputType === INPUT_TYPE_CHECKBOX) {\n var valueCopied = props.value.slice();\n if (isInputActive) {\n valueCopied.splice(valueCopied.indexOf(props.inputValue), 1);\n } else {\n valueCopied.push(props.inputValue);\n }\n listeners.input(valueCopied);\n } else {\n listeners.input(props.inputValue);\n }\n }\n }\n }),\n children\n ];\n } else if (props.justified) {\n // is in justified btn-group\n tag = BtnGroup;\n options = {};\n slot = [\n h('button', a(data, {\n on: on,\n class: classes,\n attrs: {\n type: props.nativeType,\n disabled: props.disabled\n }\n }), children)\n ];\n } else {\n // is button\n tag = 'button';\n slot = children;\n options = a(data, {\n on: on,\n class: classes,\n attrs: {\n type: props.nativeType,\n disabled: props.disabled\n }\n });\n }\n\n return h(tag, options, slot)\n },\n props: {\n justified: {\n type: Boolean,\n default: false\n },\n type: {\n type: String,\n default: 'default'\n },\n nativeType: {\n type: String,\n default: 'button'\n },\n size: String,\n block: {\n type: Boolean,\n default: false\n },\n active: {\n type: Boolean,\n default: false\n },\n disabled: {\n type: Boolean,\n default: false\n },\n // props\n value: null,\n inputValue: null,\n inputType: {\n type: String,\n validator: function validator (value) {\n return value === INPUT_TYPE_CHECKBOX || value === INPUT_TYPE_RADIO\n }\n }\n }\n};\n\nvar IN$1 = 'in';\n\nvar script$2 = {\n mixins: [Local],\n components: { Btn: Btn },\n props: {\n value: {\n type: Boolean,\n default: false\n },\n title: String,\n size: String,\n backdrop: {\n type: Boolean,\n default: true\n },\n footer: {\n type: Boolean,\n default: true\n },\n header: {\n type: Boolean,\n default: true\n },\n cancelText: String,\n cancelType: {\n type: String,\n default: 'default'\n },\n okText: String,\n okType: {\n type: String,\n default: 'primary'\n },\n dismissBtn: {\n type: Boolean,\n default: true\n },\n transition: {\n type: Number,\n default: 150\n },\n autoFocus: {\n type: Boolean,\n default: false\n },\n keyboard: {\n type: Boolean,\n default: true\n },\n beforeClose: Function,\n zOffset: {\n type: Number,\n default: 20\n },\n appendToBody: {\n type: Boolean,\n default: false\n },\n displayStyle: {\n type: String,\n default: 'block'\n }\n },\n data: function data () {\n return {\n msg: ''\n }\n },\n computed: {\n modalSizeClass: function modalSizeClass () {\n var obj;\n\n return ( obj = {}, obj[(\"modal-\" + (this.size))] = Boolean(this.size), obj )\n }\n },\n watch: {\n value: function value (v) {\n this.$toggle(v);\n }\n },\n mounted: function mounted () {\n removeFromDom(this.$refs.backdrop);\n on(window, EVENTS.MOUSE_DOWN, this.suppressBackgroundClose);\n on(window, EVENTS.KEY_UP, this.onKeyPress);\n if (this.value) {\n this.$toggle(true);\n }\n },\n beforeDestroy: function beforeDestroy () {\n clearTimeout(this.timeoutId);\n removeFromDom(this.$refs.backdrop);\n removeFromDom(this.$el);\n if (getOpenModalNum() === 0) {\n toggleBodyOverflow(true);\n }\n off(window, EVENTS.MOUSE_DOWN, this.suppressBackgroundClose);\n off(window, EVENTS.MOUSE_UP, this.unsuppressBackgroundClose);\n off(window, EVENTS.KEY_UP, this.onKeyPress);\n },\n methods: {\n onKeyPress: function onKeyPress (event) {\n if (this.keyboard && this.value && event.keyCode === 27) {\n var thisModal = this.$refs.backdrop;\n var thisZIndex = thisModal.style.zIndex;\n thisZIndex = thisZIndex && thisZIndex !== 'auto' ? parseInt(thisZIndex) : 0;\n // Find out if this modal is the top most one.\n var modals = getOpenModals();\n var modalsLength = modals.length;\n for (var i = 0; i < modalsLength; i++) {\n if (modals[i] !== thisModal) {\n var zIndex = modals[i].style.zIndex;\n zIndex = zIndex && zIndex !== 'auto' ? parseInt(zIndex) : 0;\n // if any existing modal has higher zIndex, ignore\n if (zIndex > thisZIndex) {\n return\n }\n }\n }\n this.toggle(false);\n }\n },\n toggle: function toggle (show, msg) {\n var this$1 = this;\n\n var shouldClose = true;\n if (isFunction(this.beforeClose)) {\n shouldClose = this.beforeClose(msg);\n }\n\n if (isPromiseSupported()) {\n // Skip the hiding when beforeClose returning falsely value or returned Promise resolves to falsely value\n // Use Promise.resolve to accept both Boolean values and Promises\n Promise.resolve(shouldClose).then(function (shouldClose) {\n // Skip the hiding while show===false\n if (!show && shouldClose) {\n this$1.msg = msg;\n this$1.$emit('input', show);\n }\n });\n } else {\n // Fallback to old version if promise is not supported\n // skip the hiding while show===false & beforeClose returning falsely value\n if (!show && !shouldClose) {\n return\n }\n\n this.msg = msg;\n this.$emit('input', show);\n }\n },\n $toggle: function $toggle (show) {\n var this$1 = this;\n\n var modal = this.$el;\n var backdrop = this.$refs.backdrop;\n clearTimeout(this.timeoutId);\n if (show) {\n // If two modals share the same v-if condition the calculated z-index is incorrect,\n // resulting in popover misbehaviour.\n // solved by adding a nextTick.\n // https://github.com/uiv-lib/uiv/issues/342\n this.$nextTick(function () {\n var alreadyOpenModalNum = getOpenModalNum();\n document.body.appendChild(backdrop);\n if (this$1.appendToBody) {\n document.body.appendChild(modal);\n }\n modal.style.display = this$1.displayStyle;\n modal.scrollTop = 0;\n backdrop.offsetHeight; // force repaint\n toggleBodyOverflow(false);\n addClass(backdrop, IN$1);\n addClass(modal, IN$1);\n // fix z-index for nested modals\n // no need to calculate if no modal is already open\n if (alreadyOpenModalNum > 0) {\n var modalBaseZ = parseInt(getComputedStyle(modal).zIndex) || 1050; // 1050 is default modal z-Index\n var backdropBaseZ = parseInt(getComputedStyle(backdrop).zIndex) || 1040; // 1040 is default backdrop z-Index\n var offset = alreadyOpenModalNum * this$1.zOffset;\n modal.style.zIndex = \"\" + (modalBaseZ + offset);\n backdrop.style.zIndex = \"\" + (backdropBaseZ + offset);\n }\n // z-index fix end\n this$1.timeoutId = setTimeout(function () {\n if (this$1.autoFocus) {\n var btn = this$1.$el.querySelector('[data-action=\"auto-focus\"]');\n if (btn) {\n btn.focus();\n }\n }\n this$1.$emit('show');\n this$1.timeoutId = 0;\n }, this$1.transition);\n });\n } else {\n removeClass(backdrop, IN$1);\n removeClass(modal, IN$1);\n this.timeoutId = setTimeout(function () {\n modal.style.display = 'none';\n removeFromDom(backdrop);\n if (this$1.appendToBody) {\n removeFromDom(modal);\n }\n if (getOpenModalNum() === 0) {\n toggleBodyOverflow(true);\n }\n this$1.$emit('hide', this$1.msg || 'dismiss');\n this$1.msg = '';\n this$1.timeoutId = 0;\n // restore z-index for nested modals\n modal.style.zIndex = '';\n backdrop.style.zIndex = '';\n // z-index fix end\n }, this.transition);\n }\n },\n suppressBackgroundClose: function suppressBackgroundClose (event) {\n if (event && event.target === this.$el) {\n return\n }\n this.isCloseSuppressed = true;\n on(window, 'mouseup', this.unsuppressBackgroundClose);\n },\n unsuppressBackgroundClose: function unsuppressBackgroundClose () {\n var this$1 = this;\n\n if (this.isCloseSuppressed) {\n off(window, 'mouseup', this.unsuppressBackgroundClose);\n setTimeout(function () {\n this$1.isCloseSuppressed = false;\n }, 1);\n }\n },\n backdropClicked: function backdropClicked (event) {\n if (this.backdrop && !this.isCloseSuppressed) {\n this.toggle(false);\n }\n }\n }\n};\n\n/* script */\nvar __vue_script__$2 = script$2;\n\n/* template */\nvar __vue_render__$2 = function() {\n var _vm = this;\n var _h = _vm.$createElement;\n var _c = _vm._self._c || _h;\n return _c(\n \"div\",\n {\n staticClass: \"modal\",\n class: { fade: _vm.transition > 0 },\n attrs: { tabindex: \"-1\", role: \"dialog\" },\n on: {\n click: function($event) {\n if ($event.target !== $event.currentTarget) {\n return null\n }\n return _vm.backdropClicked($event)\n }\n }\n },\n [\n _c(\n \"div\",\n {\n ref: \"dialog\",\n staticClass: \"modal-dialog\",\n class: _vm.modalSizeClass,\n attrs: { role: \"document\" }\n },\n [\n _c(\"div\", { staticClass: \"modal-content\" }, [\n _vm.header\n ? _c(\n \"div\",\n { staticClass: \"modal-header\" },\n [\n _vm._t(\"header\", [\n _vm.dismissBtn\n ? _c(\n \"button\",\n {\n staticClass: \"close\",\n staticStyle: {\n position: \"relative\",\n \"z-index\": \"1060\"\n },\n attrs: { type: \"button\", \"aria-label\": \"Close\" },\n on: {\n click: function($event) {\n return _vm.toggle(false)\n }\n }\n },\n [\n _c(\"span\", { attrs: { \"aria-hidden\": \"true\" } }, [\n _vm._v(\"×\")\n ])\n ]\n )\n : _vm._e(),\n _vm._v(\" \"),\n _c(\n \"h4\",\n { staticClass: \"modal-title\" },\n [_vm._t(\"title\", [_vm._v(_vm._s(_vm.title))])],\n 2\n )\n ])\n ],\n 2\n )\n : _vm._e(),\n _vm._v(\" \"),\n _c(\"div\", { staticClass: \"modal-body\" }, [_vm._t(\"default\")], 2),\n _vm._v(\" \"),\n _vm.footer\n ? _c(\n \"div\",\n { staticClass: \"modal-footer\" },\n [\n _vm._t(\"footer\", [\n _c(\n \"btn\",\n {\n attrs: { type: _vm.cancelType },\n on: {\n click: function($event) {\n return _vm.toggle(false, \"cancel\")\n }\n }\n },\n [\n _c(\"span\", [\n _vm._v(\n _vm._s(\n _vm.cancelText || _vm.t(\"uiv.modal.cancel\")\n )\n )\n ])\n ]\n ),\n _vm._v(\" \"),\n _c(\n \"btn\",\n {\n attrs: {\n type: _vm.okType,\n \"data-action\": \"auto-focus\"\n },\n on: {\n click: function($event) {\n return _vm.toggle(false, \"ok\")\n }\n }\n },\n [\n _c(\"span\", [\n _vm._v(_vm._s(_vm.okText || _vm.t(\"uiv.modal.ok\")))\n ])\n ]\n )\n ])\n ],\n 2\n )\n : _vm._e()\n ])\n ]\n ),\n _vm._v(\" \"),\n _c(\"div\", {\n ref: \"backdrop\",\n staticClass: \"modal-backdrop\",\n class: { fade: _vm.transition > 0 }\n })\n ]\n )\n};\nvar __vue_staticRenderFns__$2 = [];\n__vue_render__$2._withStripped = true;\n\n /* style */\n var __vue_inject_styles__$2 = undefined;\n /* scoped */\n var __vue_scope_id__$2 = undefined;\n /* module identifier */\n var __vue_module_identifier__$2 = undefined;\n /* functional template */\n var __vue_is_functional_template__$2 = false;\n /* style inject */\n \n /* style inject SSR */\n \n /* style inject shadow dom */\n \n\n \n var __vue_component__$2 = /*#__PURE__*/normalizeComponent(\n { render: __vue_render__$2, staticRenderFns: __vue_staticRenderFns__$2 },\n __vue_inject_styles__$2,\n __vue_script__$2,\n __vue_scope_id__$2,\n __vue_is_functional_template__$2,\n __vue_module_identifier__$2,\n false,\n undefined,\n undefined,\n undefined\n );\n\nfunction _typeof(obj) {\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n _typeof = function (obj) {\n return typeof obj;\n };\n } else {\n _typeof = function (obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n }\n\n return _typeof(obj);\n}\n\nfunction _toConsumableArray(arr) {\n return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread();\n}\n\nfunction _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) {\n for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; }\n\n return arr2;\n }\n}\n\nfunction _iterableToArray(iter) {\n if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === \"[object Arguments]\") { return Array.from(iter); }\n}\n\nfunction _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance\");\n}\n\nvar inBrowser = typeof window !== 'undefined';\nfunction freeze(item) {\n if (Array.isArray(item) || _typeof(item) === 'object') {\n return Object.freeze(item);\n }\n\n return item;\n}\nfunction combinePassengers(transports) {\n var slotProps = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n return transports.reduce(function (passengers, transport) {\n var temp = transport.passengers[0];\n var newPassengers = typeof temp === 'function' ? temp(slotProps) : transport.passengers;\n return passengers.concat(newPassengers);\n }, []);\n}\nfunction stableSort(array, compareFn) {\n return array.map(function (v, idx) {\n return [idx, v];\n }).sort(function (a, b) {\n return compareFn(a[1], b[1]) || a[0] - b[0];\n }).map(function (c) {\n return c[1];\n });\n}\nfunction pick(obj, keys) {\n return keys.reduce(function (acc, key) {\n if (obj.hasOwnProperty(key)) {\n acc[key] = obj[key];\n }\n\n return acc;\n }, {});\n}\n\nvar transports = {};\nvar targets = {};\nvar sources = {};\nvar Wormhole = Vue.extend({\n data: function data() {\n return {\n transports: transports,\n targets: targets,\n sources: sources,\n trackInstances: inBrowser\n };\n },\n methods: {\n open: function open(transport) {\n if (!inBrowser) { return; }\n var to = transport.to,\n from = transport.from,\n passengers = transport.passengers,\n _transport$order = transport.order,\n order = _transport$order === void 0 ? Infinity : _transport$order;\n if (!to || !from || !passengers) { return; }\n var newTransport = {\n to: to,\n from: from,\n passengers: freeze(passengers),\n order: order\n };\n var keys = Object.keys(this.transports);\n\n if (keys.indexOf(to) === -1) {\n Vue.set(this.transports, to, []);\n }\n\n var currentIndex = this.$_getTransportIndex(newTransport); // Copying the array here so that the PortalTarget change event will actually contain two distinct arrays\n\n var newTransports = this.transports[to].slice(0);\n\n if (currentIndex === -1) {\n newTransports.push(newTransport);\n } else {\n newTransports[currentIndex] = newTransport;\n }\n\n this.transports[to] = stableSort(newTransports, function (a, b) {\n return a.order - b.order;\n });\n },\n close: function close(transport) {\n var force = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n var to = transport.to,\n from = transport.from;\n if (!to || !from && force === false) { return; }\n\n if (!this.transports[to]) {\n return;\n }\n\n if (force) {\n this.transports[to] = [];\n } else {\n var index = this.$_getTransportIndex(transport);\n\n if (index >= 0) {\n // Copying the array here so that the PortalTarget change event will actually contain two distinct arrays\n var newTransports = this.transports[to].slice(0);\n newTransports.splice(index, 1);\n this.transports[to] = newTransports;\n }\n }\n },\n registerTarget: function registerTarget(target, vm, force) {\n if (!inBrowser) { return; }\n\n if (this.trackInstances && !force && this.targets[target]) {\n console.warn(\"[portal-vue]: Target \".concat(target, \" already exists\"));\n }\n\n this.$set(this.targets, target, Object.freeze([vm]));\n },\n unregisterTarget: function unregisterTarget(target) {\n this.$delete(this.targets, target);\n },\n registerSource: function registerSource(source, vm, force) {\n if (!inBrowser) { return; }\n\n if (this.trackInstances && !force && this.sources[source]) {\n console.warn(\"[portal-vue]: source \".concat(source, \" already exists\"));\n }\n\n this.$set(this.sources, source, Object.freeze([vm]));\n },\n unregisterSource: function unregisterSource(source) {\n this.$delete(this.sources, source);\n },\n hasTarget: function hasTarget(to) {\n return !!(this.targets[to] && this.targets[to][0]);\n },\n hasSource: function hasSource(to) {\n return !!(this.sources[to] && this.sources[to][0]);\n },\n hasContentFor: function hasContentFor(to) {\n return !!this.transports[to] && !!this.transports[to].length;\n },\n // Internal\n $_getTransportIndex: function $_getTransportIndex(_ref) {\n var to = _ref.to,\n from = _ref.from;\n\n for (var i in this.transports[to]) {\n if (this.transports[to][i].from === from) {\n return +i;\n }\n }\n\n return -1;\n }\n }\n});\nvar wormhole = new Wormhole(transports);\n\nvar _id = 1;\nvar Portal = Vue.extend({\n name: 'portal',\n props: {\n disabled: {\n type: Boolean\n },\n name: {\n type: String,\n default: function _default() {\n return String(_id++);\n }\n },\n order: {\n type: Number,\n default: 0\n },\n slim: {\n type: Boolean\n },\n slotProps: {\n type: Object,\n default: function _default() {\n return {};\n }\n },\n tag: {\n type: String,\n default: 'DIV'\n },\n to: {\n type: String,\n default: function _default() {\n return String(Math.round(Math.random() * 10000000));\n }\n }\n },\n created: function created() {\n var _this = this;\n\n this.$nextTick(function () {\n wormhole.registerSource(_this.name, _this);\n });\n },\n mounted: function mounted() {\n if (!this.disabled) {\n this.sendUpdate();\n }\n },\n updated: function updated() {\n if (this.disabled) {\n this.clear();\n } else {\n this.sendUpdate();\n }\n },\n beforeDestroy: function beforeDestroy() {\n wormhole.unregisterSource(this.name);\n this.clear();\n },\n watch: {\n to: function to(newValue, oldValue) {\n oldValue && oldValue !== newValue && this.clear(oldValue);\n this.sendUpdate();\n }\n },\n methods: {\n clear: function clear(target) {\n var closer = {\n from: this.name,\n to: target || this.to\n };\n wormhole.close(closer);\n },\n normalizeSlots: function normalizeSlots() {\n return this.$scopedSlots.default ? [this.$scopedSlots.default] : this.$slots.default;\n },\n normalizeOwnChildren: function normalizeOwnChildren(children) {\n return typeof children === 'function' ? children(this.slotProps) : children;\n },\n sendUpdate: function sendUpdate() {\n var slotContent = this.normalizeSlots();\n\n if (slotContent) {\n var transport = {\n from: this.name,\n to: this.to,\n passengers: _toConsumableArray(slotContent),\n order: this.order\n };\n wormhole.open(transport);\n } else {\n this.clear();\n }\n }\n },\n render: function render(h) {\n var children = this.$slots.default || this.$scopedSlots.default || [];\n var Tag = this.tag;\n\n if (children && this.disabled) {\n return children.length <= 1 && this.slim ? this.normalizeOwnChildren(children)[0] : h(Tag, [this.normalizeOwnChildren(children)]);\n } else {\n return this.slim ? h() : h(Tag, {\n class: {\n 'v-portal': true\n },\n style: {\n display: 'none'\n },\n key: 'v-portal-placeholder'\n });\n }\n }\n});\n\nvar PortalTarget = Vue.extend({\n name: 'portalTarget',\n props: {\n multiple: {\n type: Boolean,\n default: false\n },\n name: {\n type: String,\n required: true\n },\n slim: {\n type: Boolean,\n default: false\n },\n slotProps: {\n type: Object,\n default: function _default() {\n return {};\n }\n },\n tag: {\n type: String,\n default: 'div'\n },\n transition: {\n type: [String, Object, Function]\n }\n },\n data: function data() {\n return {\n transports: wormhole.transports,\n firstRender: true\n };\n },\n created: function created() {\n var _this = this;\n\n this.$nextTick(function () {\n wormhole.registerTarget(_this.name, _this);\n });\n },\n watch: {\n ownTransports: function ownTransports() {\n this.$emit('change', this.children().length > 0);\n },\n name: function name(newVal, oldVal) {\n /**\r\n * TODO\r\n * This should warn as well ...\r\n */\n wormhole.unregisterTarget(oldVal);\n wormhole.registerTarget(newVal, this);\n }\n },\n mounted: function mounted() {\n var _this2 = this;\n\n if (this.transition) {\n this.$nextTick(function () {\n // only when we have a transition, because it causes a re-render\n _this2.firstRender = false;\n });\n }\n },\n beforeDestroy: function beforeDestroy() {\n wormhole.unregisterTarget(this.name);\n },\n computed: {\n ownTransports: function ownTransports() {\n var transports = this.transports[this.name] || [];\n\n if (this.multiple) {\n return transports;\n }\n\n return transports.length === 0 ? [] : [transports[transports.length - 1]];\n },\n passengers: function passengers() {\n return combinePassengers(this.ownTransports, this.slotProps);\n }\n },\n methods: {\n // can't be a computed prop because it has to \"react\" to $slot changes.\n children: function children() {\n return this.passengers.length !== 0 ? this.passengers : this.$scopedSlots.default ? this.$scopedSlots.default(this.slotProps) : this.$slots.default || [];\n },\n // can't be a computed prop because it has to \"react\" to this.children().\n noWrapper: function noWrapper() {\n var noWrapper = this.slim && !this.transition;\n\n if (noWrapper && this.children().length > 1) {\n console.warn('[portal-vue]: PortalTarget with `slim` option received more than one child element.');\n }\n\n return noWrapper;\n }\n },\n render: function render(h) {\n var noWrapper = this.noWrapper();\n var children = this.children();\n var Tag = this.transition || this.tag;\n return noWrapper ? children[0] : this.slim && !Tag ? h() : h(Tag, {\n props: {\n // if we have a transition component, pass the tag if it exists\n tag: this.transition && this.tag ? this.tag : undefined\n },\n class: {\n 'vue-portal-target': true\n }\n }, children);\n }\n});\n\nvar _id$1 = 0;\nvar portalProps = ['disabled', 'name', 'order', 'slim', 'slotProps', 'tag', 'to'];\nvar targetProps = ['multiple', 'transition'];\nvar MountingPortal = Vue.extend({\n name: 'MountingPortal',\n inheritAttrs: false,\n props: {\n append: {\n type: [Boolean, String]\n },\n bail: {\n type: Boolean\n },\n mountTo: {\n type: String,\n required: true\n },\n // Portal\n disabled: {\n type: Boolean\n },\n // name for the portal\n name: {\n type: String,\n default: function _default() {\n return 'mounted_' + String(_id$1++);\n }\n },\n order: {\n type: Number,\n default: 0\n },\n slim: {\n type: Boolean\n },\n slotProps: {\n type: Object,\n default: function _default() {\n return {};\n }\n },\n tag: {\n type: String,\n default: 'DIV'\n },\n // name for the target\n to: {\n type: String,\n default: function _default() {\n return String(Math.round(Math.random() * 10000000));\n }\n },\n // Target\n multiple: {\n type: Boolean,\n default: false\n },\n targetSlim: {\n type: Boolean\n },\n targetSlotProps: {\n type: Object,\n default: function _default() {\n return {};\n }\n },\n targetTag: {\n type: String,\n default: 'div'\n },\n transition: {\n type: [String, Object, Function]\n }\n },\n created: function created() {\n if (typeof document === 'undefined') { return; }\n var el = document.querySelector(this.mountTo);\n\n if (!el) {\n console.error(\"[portal-vue]: Mount Point '\".concat(this.mountTo, \"' not found in document\"));\n return;\n }\n\n var props = this.$props; // Target already exists\n\n if (wormhole.targets[props.name]) {\n if (props.bail) {\n console.warn(\"[portal-vue]: Target \".concat(props.name, \" is already mounted.\\n Aborting because 'bail: true' is set\"));\n } else {\n this.portalTarget = wormhole.targets[props.name];\n }\n\n return;\n }\n\n var append = props.append;\n\n if (append) {\n var type = typeof append === 'string' ? append : 'DIV';\n var mountEl = document.createElement(type);\n el.appendChild(mountEl);\n el = mountEl;\n } // get props for target from $props\n // we have to rename a few of them\n\n\n var _props = pick(this.$props, targetProps);\n\n _props.slim = this.targetSlim;\n _props.tag = this.targetTag;\n _props.slotProps = this.targetSlotProps;\n _props.name = this.to;\n this.portalTarget = new PortalTarget({\n el: el,\n parent: this.$parent || this,\n propsData: _props\n });\n },\n beforeDestroy: function beforeDestroy() {\n var target = this.portalTarget;\n\n if (this.append) {\n var el = target.$el;\n el.parentNode.removeChild(el);\n }\n\n target.$destroy();\n },\n render: function render(h) {\n if (!this.portalTarget) {\n console.warn(\"[portal-vue] Target wasn't mounted\");\n return h();\n } // if there's no \"manual\" scoped slot, so we create a ourselves\n\n\n if (!this.$scopedSlots.manual) {\n var props = pick(this.$props, portalProps);\n return h(Portal, {\n props: props,\n attrs: this.$attrs,\n on: this.$listeners,\n scopedSlots: this.$scopedSlots\n }, this.$slots.default);\n } // else, we render the scoped slot\n\n\n var content = this.$scopedSlots.manual({\n to: this.to\n }); // if user used for the scoped slot\n // content will be an array\n\n if (Array.isArray(content)) {\n content = content[0];\n }\n\n if (!content) { return h(); }\n return content;\n }\n});\n\nvar ACTIVE_CLASS = 'active';\nvar IN_CLASS = 'in';\n\nvar script$3 = {\n components: { Portal: Portal },\n props: {\n title: {\n type: String,\n default: 'Tab Title'\n },\n disabled: {\n type: Boolean,\n default: false\n },\n tabClasses: {\n type: Object,\n default: function () { return {} }\n },\n group: String,\n pullRight: {\n type: Boolean,\n default: false\n },\n hidden: {\n type: Boolean,\n default: false\n }\n },\n data: function data () {\n return {\n active: true,\n transition: 150\n }\n },\n watch: {\n active: function active (active$1) {\n var this$1 = this;\n\n if (active$1) {\n setTimeout(function () {\n addClass(this$1.$el, ACTIVE_CLASS);\n this$1.$el.offsetHeight;\n addClass(this$1.$el, IN_CLASS);\n try {\n this$1.$parent.$emit('changed', this$1.$parent.activeIndex);\n } catch (e) {\n throw new Error(' parent must be .')\n }\n }, this.transition);\n } else {\n removeClass(this.$el, IN_CLASS);\n setTimeout(function () {\n removeClass(this$1.$el, ACTIVE_CLASS);\n }, this.transition);\n }\n }\n },\n created: function created () {\n try {\n this.$parent.tabs.push(this);\n } catch (e) {\n throw new Error(' parent must be .')\n }\n },\n beforeDestroy: function beforeDestroy () {\n var tabs = this.$parent && this.$parent.tabs;\n spliceIfExist(tabs, this);\n },\n methods: {\n show: function show () {\n var this$1 = this;\n\n this.$nextTick(function () {\n addClass(this$1.$el, ACTIVE_CLASS);\n addClass(this$1.$el, IN_CLASS);\n });\n }\n }\n};\n\n/* script */\nvar __vue_script__$3 = script$3;\n\n/* template */\nvar __vue_render__$3 = function() {\n var _vm = this;\n var _h = _vm.$createElement;\n var _c = _vm._self._c || _h;\n return _c(\n \"div\",\n {\n staticClass: \"tab-pane\",\n class: { fade: _vm.transition > 0 },\n attrs: { role: \"tabpanel\" }\n },\n [\n _vm._t(\"default\"),\n _vm._v(\" \"),\n _c(\"portal\", { attrs: { to: _vm._uid.toString() } }, [_vm._t(\"title\")], 2)\n ],\n 2\n )\n};\nvar __vue_staticRenderFns__$3 = [];\n__vue_render__$3._withStripped = true;\n\n /* style */\n var __vue_inject_styles__$3 = undefined;\n /* scoped */\n var __vue_scope_id__$3 = undefined;\n /* module identifier */\n var __vue_module_identifier__$3 = undefined;\n /* functional template */\n var __vue_is_functional_template__$3 = false;\n /* style inject */\n \n /* style inject SSR */\n \n /* style inject shadow dom */\n \n\n \n var __vue_component__$3 = /*#__PURE__*/normalizeComponent(\n { render: __vue_render__$3, staticRenderFns: __vue_staticRenderFns__$3 },\n __vue_inject_styles__$3,\n __vue_script__$3,\n __vue_scope_id__$3,\n __vue_is_functional_template__$3,\n __vue_module_identifier__$3,\n false,\n undefined,\n undefined,\n undefined\n );\n\nvar BEFORE_CHANGE_EVENT = 'before-change';\n\nvar script$4 = {\n components: { Dropdown: Dropdown, PortalTarget: PortalTarget },\n props: {\n value: {\n type: Number,\n validator: function (v) { return v >= 0; }\n },\n transition: {\n type: Number,\n default: 150\n },\n justified: Boolean,\n pills: Boolean,\n stacked: Boolean,\n customNavClass: null,\n customContentClass: null\n },\n data: function data () {\n return {\n tabs: [],\n activeIndex: 0 // Make v-model not required\n }\n },\n watch: {\n value: {\n immediate: true,\n handler: function handler (value) {\n if (isNumber(value)) {\n this.activeIndex = value;\n this.selectCurrent();\n }\n }\n },\n tabs: function tabs (tabs$1) {\n var this$1 = this;\n\n tabs$1.forEach(function (tab, index) {\n tab.transition = this$1.transition;\n if (index === this$1.activeIndex) {\n tab.show();\n }\n });\n this.selectCurrent();\n }\n },\n computed: {\n navClasses: function navClasses () {\n var obj;\n\n var tabClasses = {\n nav: true,\n 'nav-justified': this.justified,\n 'nav-tabs': !this.pills,\n 'nav-pills': this.pills,\n 'nav-stacked': this.stacked && this.pills\n };\n var customNavClass = this.customNavClass;\n if (isExist(customNavClass)) {\n if (isString(customNavClass)) {\n return assign({}, tabClasses, ( obj = {}, obj[customNavClass] = true, obj ))\n } else {\n return assign({}, tabClasses, customNavClass)\n }\n } else {\n return tabClasses\n }\n },\n contentClasses: function contentClasses () {\n var obj;\n\n var contentClasses = {\n 'tab-content': true\n };\n var customContentClass = this.customContentClass;\n if (isExist(customContentClass)) {\n if (isString(customContentClass)) {\n return assign({}, contentClasses, ( obj = {}, obj[customContentClass] = true, obj ))\n } else {\n return assign({}, contentClasses, customContentClass)\n }\n } else {\n return contentClasses\n }\n },\n groupedTabs: function groupedTabs () {\n var tabs = [];\n var hash = {};\n this.tabs.forEach(function (tab) {\n if (tab.group) {\n if (hasOwnProperty(hash, tab.group)) {\n tabs[hash[tab.group]].tabs.push(tab);\n } else {\n tabs.push({\n tabs: [tab],\n group: tab.group\n });\n hash[tab.group] = tabs.length - 1;\n }\n if (tab.active) {\n tabs[hash[tab.group]].active = true;\n }\n if (tab.pullRight) {\n tabs[hash[tab.group]].pullRight = true;\n }\n } else {\n tabs.push(tab);\n }\n });\n tabs = tabs.map(function (tab) {\n if (Array.isArray(tab.tabs)) {\n tab.hidden = tab.tabs.filter(function (v) { return v.hidden; }).length === tab.tabs.length;\n }\n return tab\n });\n return tabs\n }\n },\n methods: {\n getTabClasses: function getTabClasses (tab, isSubTab) {\n if ( isSubTab === void 0 ) isSubTab = false;\n\n var defaultClasses = {\n active: tab.active,\n disabled: tab.disabled,\n 'pull-right': tab.pullRight && !isSubTab\n };\n\n // return with new classes added to tab\n return assign(defaultClasses, tab.tabClasses)\n },\n selectCurrent: function selectCurrent () {\n var this$1 = this;\n\n var found = false;\n this.tabs.forEach(function (tab, index) {\n if (index === this$1.activeIndex) {\n found = !tab.active;\n tab.active = true;\n } else {\n tab.active = false;\n }\n });\n if (found) {\n this.$emit('change', this.activeIndex);\n }\n },\n selectValidate: function selectValidate (index) {\n var this$1 = this;\n\n if (isFunction(this.$listeners[BEFORE_CHANGE_EVENT])) {\n this.$emit(BEFORE_CHANGE_EVENT, this.activeIndex, index, function (result) {\n if (!isExist(result)) {\n this$1.$select(index);\n }\n });\n } else {\n this.$select(index);\n }\n },\n select: function select (index) {\n if (!this.tabs[index].disabled && index !== this.activeIndex) {\n this.selectValidate(index);\n }\n },\n $select: function $select (index) {\n if (isNumber(this.value)) {\n this.$emit('input', index);\n } else {\n this.activeIndex = index;\n this.selectCurrent();\n }\n }\n }\n};\n\n/* script */\nvar __vue_script__$4 = script$4;\n\n/* template */\nvar __vue_render__$4 = function() {\n var _vm = this;\n var _h = _vm.$createElement;\n var _c = _vm._self._c || _h;\n return _c(\"section\", [\n _c(\n \"ul\",\n { class: _vm.navClasses, attrs: { role: \"tablist\" } },\n [\n _vm._l(_vm.groupedTabs, function(tab, index) {\n return [\n tab.tabs\n ? _c(\n \"dropdown\",\n {\n directives: [\n {\n name: \"show\",\n rawName: \"v-show\",\n value: !tab.hidden,\n expression: \"!tab.hidden\"\n }\n ],\n class: _vm.getTabClasses(tab),\n attrs: { role: \"presentation\", tag: \"li\" }\n },\n [\n _c(\n \"a\",\n {\n staticClass: \"dropdown-toggle\",\n attrs: { role: \"tab\", href: \"#\" },\n on: {\n click: function($event) {\n $event.preventDefault();\n }\n }\n },\n [\n _vm._v(_vm._s(tab.group) + \" \"),\n _c(\"span\", { staticClass: \"caret\" })\n ]\n ),\n _vm._v(\" \"),\n _c(\n \"template\",\n { slot: \"dropdown\" },\n _vm._l(tab.tabs, function(subTab) {\n return _c(\n \"li\",\n {\n directives: [\n {\n name: \"show\",\n rawName: \"v-show\",\n value: !subTab.hidden,\n expression: \"!subTab.hidden\"\n }\n ],\n class: _vm.getTabClasses(subTab, true)\n },\n [\n _c(\n \"a\",\n {\n attrs: { href: \"#\" },\n on: {\n click: function($event) {\n $event.preventDefault();\n _vm.select(_vm.tabs.indexOf(subTab));\n }\n }\n },\n [_vm._v(_vm._s(subTab.title))]\n )\n ]\n )\n }),\n 0\n )\n ],\n 2\n )\n : _c(\n \"li\",\n {\n directives: [\n {\n name: \"show\",\n rawName: \"v-show\",\n value: !tab.hidden,\n expression: \"!tab.hidden\"\n }\n ],\n class: _vm.getTabClasses(tab),\n attrs: { role: \"presentation\" }\n },\n [\n tab.$slots.title\n ? _c(\n \"a\",\n {\n attrs: { role: \"tab\", href: \"#\" },\n on: {\n click: function($event) {\n $event.preventDefault();\n _vm.select(_vm.tabs.indexOf(tab));\n }\n }\n },\n [\n _c(\"portal-target\", {\n attrs: { name: tab._uid.toString() }\n })\n ],\n 1\n )\n : _c(\"a\", {\n attrs: { role: \"tab\", href: \"#\" },\n domProps: { textContent: _vm._s(tab.title) },\n on: {\n click: function($event) {\n $event.preventDefault();\n _vm.select(_vm.tabs.indexOf(tab));\n }\n }\n })\n ]\n )\n ]\n }),\n _vm._v(\" \"),\n !_vm.justified && _vm.$slots[\"nav-right\"]\n ? _c(\"li\", { staticClass: \"pull-right\" }, [_vm._t(\"nav-right\")], 2)\n : _vm._e()\n ],\n 2\n ),\n _vm._v(\" \"),\n _c(\"div\", { class: _vm.contentClasses }, [_vm._t(\"default\")], 2)\n ])\n};\nvar __vue_staticRenderFns__$4 = [];\n__vue_render__$4._withStripped = true;\n\n /* style */\n var __vue_inject_styles__$4 = undefined;\n /* scoped */\n var __vue_scope_id__$4 = undefined;\n /* module identifier */\n var __vue_module_identifier__$4 = undefined;\n /* functional template */\n var __vue_is_functional_template__$4 = false;\n /* style inject */\n \n /* style inject SSR */\n \n /* style inject shadow dom */\n \n\n \n var __vue_component__$4 = /*#__PURE__*/normalizeComponent(\n { render: __vue_render__$4, staticRenderFns: __vue_staticRenderFns__$4 },\n __vue_inject_styles__$4,\n __vue_script__$4,\n __vue_scope_id__$4,\n __vue_is_functional_template__$4,\n __vue_module_identifier__$4,\n false,\n undefined,\n undefined,\n undefined\n );\n\nfunction pad (value, num) {\n value = value + '';\n for (var i = num - value.length; i > 0; i--) {\n value = '0' + value;\n }\n return value\n}\n\nvar monthNames = [\n 'January',\n 'February',\n 'March',\n 'April',\n 'May',\n 'June',\n 'July',\n 'August',\n 'September',\n 'October',\n 'November',\n 'December'\n];\n\n/**\n * Get total days number in a month.\n * because we're using 0 as the day so that it returns the last day\n * of the last month, so you have to add 1 to the month number\n * so it returns the correct amount of days.\n * https://stackoverflow.com/questions/1184334/get-number-days-in-a-specified-month-using-javascript\n * @param month 0-based\n * @param year\n * @returns {number}\n */\nfunction daysInMonth (month, year) {\n return new Date(year, month + 1, 0).getDate()\n}\n\nfunction stringify (date, format) {\n try {\n var year = date.getFullYear();\n var month = date.getMonth() + 1;\n var day = date.getDate();\n var monthName = monthNames[month - 1];\n return format\n .replace(/yyyy/g, year)\n .replace(/MMMM/g, monthName)\n .replace(/MMM/g, monthName.substring(0, 3))\n .replace(/MM/g, pad(month, 2))\n .replace(/dd/g, pad(day, 2))\n .replace(/yy/g, year)\n .replace(/M(?!a)/g, month)\n .replace(/d/g, day)\n } catch (e) {\n return ''\n }\n}\n\nfunction convertDateToUTC (date) {\n return new Date(date.getUTCFullYear(), date.getUTCMonth(), date.getUTCDate(), date.getUTCHours(), date.getUTCMinutes(), date.getUTCSeconds())\n}\n\n/**\n * https://stackoverflow.com/questions/6117814/get-week-of-year-in-javascript-like-in-php\n * For a given date, get the ISO week number\n * Based on information at:\n * http://www.merlyn.demon.co.uk/weekcalc.htm#WNR\n *\n * Algorithm is to find nearest thursday, it's year\n * is the year of the week number. Then get weeks\n * between that date and the first day of that year.\n *\n * Note that dates in one year can be weeks of previous\n * or next year, overlap is up to 3 days.\n *\n * e.g. 2014/12/29 is Monday in week 1 of 2015\n * 2012/1/1 is Sunday in week 52 of 2011\n *\n * @param {number} d.year year of date\n * @param {number} d.month month of date\n * @param {number} d.date date of date\n * @returns {number}\n */\nfunction getWeekNumber (d) {\n // Copy date so don't modify original\n var _d = new Date(Date.UTC(d.year, d.month, d.date));\n // Set to nearest Thursday: current date + 4 - current day number\n // Make Sunday's day number 7\n _d.setUTCDate(_d.getUTCDate() + 4 - (_d.getUTCDay() || 7));\n // Get first day of year\n var yearStart = new Date(Date.UTC(_d.getUTCFullYear(), 0, 1));\n // Calculate full weeks to nearest Thursday\n return Math.ceil((((_d - yearStart) / 86400000) + 1) / 7)\n}\n\nvar script$5 = {\n mixins: [Local],\n props: {\n month: Number,\n year: Number,\n date: Date,\n today: Date,\n limit: Object,\n weekStartsWith: Number,\n iconControlLeft: String,\n iconControlRight: String,\n dateClass: Function,\n yearMonthFormatter: Function,\n weekNumbers: Boolean\n },\n components: { Btn: Btn },\n computed: {\n weekDays: function weekDays () {\n var days = [];\n var firstDay = this.weekStartsWith;\n while (days.length < 7) {\n days.push(firstDay++);\n if (firstDay > 6) {\n firstDay = 0;\n }\n }\n return days\n },\n yearMonthStr: function yearMonthStr () {\n if (this.yearMonthFormatter) {\n return this.yearMonthFormatter(this.year, this.month)\n } else {\n return isExist(this.month) ? ((this.year) + \" \" + (this.t((\"uiv.datePicker.month\" + (this.month + 1))))) : this.year\n }\n },\n monthDayRows: function monthDayRows () {\n var rows = [];\n var firstDay = new Date(this.year, this.month, 1);\n var prevMonthLastDate = new Date(this.year, this.month, 0).getDate();\n var startIndex = firstDay.getDay();\n // console.log(startIndex)\n var daysNum = daysInMonth(this.month, this.year);\n var weekOffset = 0;\n if (this.weekStartsWith > startIndex) {\n weekOffset = 7 - this.weekStartsWith;\n } else {\n weekOffset = 0 - this.weekStartsWith;\n }\n // console.log(prevMonthLastDate, startIndex, daysNum)\n for (var i = 0; i < 6; i++) {\n rows.push([]);\n for (var j = 0 - weekOffset; j < 7 - weekOffset; j++) {\n var currentIndex = i * 7 + j;\n var date = { year: this.year, disabled: false };\n // date in and not in current month\n if (currentIndex < startIndex) {\n date.date = prevMonthLastDate - startIndex + currentIndex + 1;\n if (this.month > 0) {\n date.month = this.month - 1;\n } else {\n date.month = 11;\n date.year--;\n }\n } else if (currentIndex < startIndex + daysNum) {\n date.date = currentIndex - startIndex + 1;\n date.month = this.month;\n } else {\n date.date = currentIndex - startIndex - daysNum + 1;\n if (this.month < 11) {\n date.month = this.month + 1;\n } else {\n date.month = 0;\n date.year++;\n }\n }\n // process limit dates\n var dateObj = new Date(date.year, date.month, date.date);\n var afterFrom = true;\n var beforeTo = true;\n if (this.limit && this.limit.from) {\n afterFrom = dateObj >= this.limit.from;\n }\n if (this.limit && this.limit.to) {\n beforeTo = dateObj < this.limit.to;\n }\n date.disabled = !afterFrom || !beforeTo;\n if (isFunction(this.dateClass)) {\n date.classes = this.dateClass(dateObj, {\n currentMonth: this.month,\n currentYear: this.year\n });\n } else {\n date.classes = '';\n }\n rows[i].push(date);\n }\n }\n return rows\n }\n },\n methods: {\n getWeekNumber: getWeekNumber,\n tWeekName: function tWeekName (index) {\n return this.t((\"uiv.datePicker.week\" + index))\n },\n getBtnType: function getBtnType (date) {\n if (this.date &&\n date.date === this.date.getDate() &&\n date.month === this.date.getMonth() &&\n date.year === this.date.getFullYear()) {\n return 'primary'\n } else if (date.date === this.today.getDate() &&\n date.month === this.today.getMonth() &&\n date.year === this.today.getFullYear()) {\n return 'info'\n } else {\n return 'default'\n }\n },\n select: function select (date) {\n this.$emit('date-change', date);\n },\n goPrevMonth: function goPrevMonth () {\n var month = this.month;\n var year = this.year;\n if (this.month > 0) {\n month--;\n } else {\n month = 11;\n year--;\n this.$emit('year-change', year);\n }\n this.$emit('month-change', month);\n },\n goNextMonth: function goNextMonth () {\n var month = this.month;\n var year = this.year;\n if (this.month < 11) {\n month++;\n } else {\n month = 0;\n year++;\n this.$emit('year-change', year);\n }\n this.$emit('month-change', month);\n },\n changeView: function changeView () {\n this.$emit('view-change', 'm');\n }\n }\n};\n\n/* script */\nvar __vue_script__$5 = script$5;\n\n/* template */\nvar __vue_render__$5 = function() {\n var _vm = this;\n var _h = _vm.$createElement;\n var _c = _vm._self._c || _h;\n return _c(\n \"table\",\n { staticStyle: { width: \"100%\" }, attrs: { role: \"grid\" } },\n [\n _c(\"thead\", [\n _c(\"tr\", [\n _c(\n \"td\",\n [\n _c(\n \"btn\",\n {\n staticClass: \"uiv-datepicker-pager-prev\",\n staticStyle: { border: \"none\" },\n attrs: { block: \"\", size: \"sm\" },\n on: { click: _vm.goPrevMonth }\n },\n [_c(\"i\", { class: _vm.iconControlLeft })]\n )\n ],\n 1\n ),\n _vm._v(\" \"),\n _c(\n \"td\",\n { attrs: { colspan: _vm.weekNumbers ? 6 : 5 } },\n [\n _c(\n \"btn\",\n {\n staticClass: \"uiv-datepicker-title\",\n staticStyle: { border: \"none\" },\n attrs: { block: \"\", size: \"sm\" },\n on: { click: _vm.changeView }\n },\n [_c(\"b\", [_vm._v(_vm._s(_vm.yearMonthStr))])]\n )\n ],\n 1\n ),\n _vm._v(\" \"),\n _c(\n \"td\",\n [\n _c(\n \"btn\",\n {\n staticClass: \"uiv-datepicker-pager-next\",\n staticStyle: { border: \"none\" },\n attrs: { block: \"\", size: \"sm\" },\n on: { click: _vm.goNextMonth }\n },\n [_c(\"i\", { class: _vm.iconControlRight })]\n )\n ],\n 1\n )\n ]),\n _vm._v(\" \"),\n _c(\n \"tr\",\n { attrs: { align: \"center\" } },\n [\n _vm.weekNumbers ? _c(\"td\") : _vm._e(),\n _vm._v(\" \"),\n _vm._l(_vm.weekDays, function(day) {\n return _c(\"td\", { attrs: { width: \"14.2857142857%\" } }, [\n _c(\"small\", { staticClass: \"uiv-datepicker-week\" }, [\n _vm._v(_vm._s(_vm.tWeekName(day === 0 ? 7 : day)))\n ])\n ])\n })\n ],\n 2\n )\n ]),\n _vm._v(\" \"),\n _c(\n \"tbody\",\n _vm._l(_vm.monthDayRows, function(row) {\n return _c(\n \"tr\",\n [\n _vm.weekNumbers\n ? _c(\n \"td\",\n {\n staticClass: \"text-center\",\n staticStyle: { \"border-right\": \"1px solid #eee\" }\n },\n [\n _c(\"small\", { staticClass: \"text-muted\" }, [\n _vm._v(\n _vm._s(_vm.getWeekNumber(row[_vm.weekStartsWith]))\n )\n ])\n ]\n )\n : _vm._e(),\n _vm._v(\" \"),\n _vm._l(row, function(date) {\n return _c(\n \"td\",\n [\n _c(\n \"btn\",\n {\n class: date.classes,\n staticStyle: { border: \"none\" },\n attrs: {\n block: \"\",\n size: \"sm\",\n \"data-action\": \"select\",\n type: _vm.getBtnType(date),\n disabled: date.disabled\n },\n on: {\n click: function($event) {\n return _vm.select(date)\n }\n }\n },\n [\n _c(\n \"span\",\n {\n class: { \"text-muted\": _vm.month !== date.month },\n attrs: { \"data-action\": \"select\" }\n },\n [_vm._v(_vm._s(date.date))]\n )\n ]\n )\n ],\n 1\n )\n })\n ],\n 2\n )\n }),\n 0\n )\n ]\n )\n};\nvar __vue_staticRenderFns__$5 = [];\n__vue_render__$5._withStripped = true;\n\n /* style */\n var __vue_inject_styles__$5 = undefined;\n /* scoped */\n var __vue_scope_id__$5 = undefined;\n /* module identifier */\n var __vue_module_identifier__$5 = undefined;\n /* functional template */\n var __vue_is_functional_template__$5 = false;\n /* style inject */\n \n /* style inject SSR */\n \n /* style inject shadow dom */\n \n\n \n var __vue_component__$5 = /*#__PURE__*/normalizeComponent(\n { render: __vue_render__$5, staticRenderFns: __vue_staticRenderFns__$5 },\n __vue_inject_styles__$5,\n __vue_script__$5,\n __vue_scope_id__$5,\n __vue_is_functional_template__$5,\n __vue_module_identifier__$5,\n false,\n undefined,\n undefined,\n undefined\n );\n\nvar script$6 = {\n components: { Btn: Btn },\n mixins: [Local],\n props: {\n month: Number,\n year: Number,\n iconControlLeft: String,\n iconControlRight: String\n },\n data: function data () {\n return {\n rows: []\n }\n },\n mounted: function mounted () {\n for (var i = 0; i < 4; i++) {\n this.rows.push([]);\n for (var j = 0; j < 3; j++) {\n this.rows[i].push(i * 3 + j + 1);\n }\n }\n },\n methods: {\n tCell: function tCell (cell) {\n return this.t((\"uiv.datePicker.month\" + cell))\n },\n getBtnClass: function getBtnClass (month) {\n if (month === this.month) {\n return 'primary'\n } else {\n return 'default'\n }\n },\n goPrevYear: function goPrevYear () {\n this.$emit('year-change', this.year - 1);\n },\n goNextYear: function goNextYear () {\n this.$emit('year-change', this.year + 1);\n },\n changeView: function changeView (monthIndex) {\n if (isExist(monthIndex)) {\n this.$emit('month-change', monthIndex);\n this.$emit('view-change', 'd');\n } else {\n this.$emit('view-change', 'y');\n }\n }\n }\n};\n\n/* script */\nvar __vue_script__$6 = script$6;\n\n/* template */\nvar __vue_render__$6 = function() {\n var _vm = this;\n var _h = _vm.$createElement;\n var _c = _vm._self._c || _h;\n return _c(\n \"table\",\n { staticStyle: { width: \"100%\" }, attrs: { role: \"grid\" } },\n [\n _c(\"thead\", [\n _c(\"tr\", [\n _c(\n \"td\",\n [\n _c(\n \"btn\",\n {\n staticClass: \"uiv-datepicker-pager-prev\",\n staticStyle: { border: \"none\" },\n attrs: { block: \"\", size: \"sm\" },\n on: { click: _vm.goPrevYear }\n },\n [_c(\"i\", { class: _vm.iconControlLeft })]\n )\n ],\n 1\n ),\n _vm._v(\" \"),\n _c(\n \"td\",\n { attrs: { colspan: \"4\" } },\n [\n _c(\n \"btn\",\n {\n staticClass: \"uiv-datepicker-title\",\n staticStyle: { border: \"none\" },\n attrs: { block: \"\", size: \"sm\" },\n on: {\n click: function($event) {\n return _vm.changeView()\n }\n }\n },\n [_c(\"b\", [_vm._v(_vm._s(_vm.year))])]\n )\n ],\n 1\n ),\n _vm._v(\" \"),\n _c(\n \"td\",\n [\n _c(\n \"btn\",\n {\n staticClass: \"uiv-datepicker-pager-next\",\n staticStyle: { border: \"none\" },\n attrs: { block: \"\", size: \"sm\" },\n on: { click: _vm.goNextYear }\n },\n [_c(\"i\", { class: _vm.iconControlRight })]\n )\n ],\n 1\n )\n ])\n ]),\n _vm._v(\" \"),\n _c(\n \"tbody\",\n _vm._l(_vm.rows, function(row, i) {\n return _c(\n \"tr\",\n _vm._l(row, function(month, j) {\n return _c(\n \"td\",\n { attrs: { colspan: \"2\", width: \"33.333333%\" } },\n [\n _c(\n \"btn\",\n {\n staticStyle: { border: \"none\" },\n attrs: {\n block: \"\",\n size: \"sm\",\n type: _vm.getBtnClass(i * 3 + j)\n },\n on: {\n click: function($event) {\n return _vm.changeView(i * 3 + j)\n }\n }\n },\n [_c(\"span\", [_vm._v(_vm._s(_vm.tCell(month)))])]\n )\n ],\n 1\n )\n }),\n 0\n )\n }),\n 0\n )\n ]\n )\n};\nvar __vue_staticRenderFns__$6 = [];\n__vue_render__$6._withStripped = true;\n\n /* style */\n var __vue_inject_styles__$6 = undefined;\n /* scoped */\n var __vue_scope_id__$6 = undefined;\n /* module identifier */\n var __vue_module_identifier__$6 = undefined;\n /* functional template */\n var __vue_is_functional_template__$6 = false;\n /* style inject */\n \n /* style inject SSR */\n \n /* style inject shadow dom */\n \n\n \n var __vue_component__$6 = /*#__PURE__*/normalizeComponent(\n { render: __vue_render__$6, staticRenderFns: __vue_staticRenderFns__$6 },\n __vue_inject_styles__$6,\n __vue_script__$6,\n __vue_scope_id__$6,\n __vue_is_functional_template__$6,\n __vue_module_identifier__$6,\n false,\n undefined,\n undefined,\n undefined\n );\n\nvar script$7 = {\n components: { Btn: Btn },\n props: {\n year: Number,\n iconControlLeft: String,\n iconControlRight: String\n },\n computed: {\n rows: function rows () {\n var rows = [];\n var yearGroupStart = this.year - this.year % 20;\n for (var i = 0; i < 4; i++) {\n rows.push([]);\n for (var j = 0; j < 5; j++) {\n rows[i].push(yearGroupStart + i * 5 + j);\n }\n }\n return rows\n },\n yearStr: function yearStr () {\n var start = this.year - this.year % 20;\n return (start + \" ~ \" + (start + 19))\n }\n },\n methods: {\n getBtnClass: function getBtnClass (year) {\n if (year === this.year) {\n return 'primary'\n } else {\n return 'default'\n }\n },\n goPrevYear: function goPrevYear () {\n this.$emit('year-change', this.year - 20);\n },\n goNextYear: function goNextYear () {\n this.$emit('year-change', this.year + 20);\n },\n changeView: function changeView (year) {\n this.$emit('year-change', year);\n this.$emit('view-change', 'm');\n }\n }\n};\n\n/* script */\nvar __vue_script__$7 = script$7;\n\n/* template */\nvar __vue_render__$7 = function() {\n var _vm = this;\n var _h = _vm.$createElement;\n var _c = _vm._self._c || _h;\n return _c(\n \"table\",\n { staticStyle: { width: \"100%\" }, attrs: { role: \"grid\" } },\n [\n _c(\"thead\", [\n _c(\"tr\", [\n _c(\n \"td\",\n [\n _c(\n \"btn\",\n {\n staticClass: \"uiv-datepicker-pager-prev\",\n staticStyle: { border: \"none\" },\n attrs: { block: \"\", size: \"sm\" },\n on: { click: _vm.goPrevYear }\n },\n [_c(\"i\", { class: _vm.iconControlLeft })]\n )\n ],\n 1\n ),\n _vm._v(\" \"),\n _c(\n \"td\",\n { attrs: { colspan: \"3\" } },\n [\n _c(\n \"btn\",\n {\n staticClass: \"uiv-datepicker-title\",\n staticStyle: { border: \"none\" },\n attrs: { block: \"\", size: \"sm\" }\n },\n [_c(\"b\", [_vm._v(_vm._s(_vm.yearStr))])]\n )\n ],\n 1\n ),\n _vm._v(\" \"),\n _c(\n \"td\",\n [\n _c(\n \"btn\",\n {\n staticClass: \"uiv-datepicker-pager-next\",\n staticStyle: { border: \"none\" },\n attrs: { block: \"\", size: \"sm\" },\n on: { click: _vm.goNextYear }\n },\n [_c(\"i\", { class: _vm.iconControlRight })]\n )\n ],\n 1\n )\n ])\n ]),\n _vm._v(\" \"),\n _c(\n \"tbody\",\n _vm._l(_vm.rows, function(row) {\n return _c(\n \"tr\",\n _vm._l(row, function(year) {\n return _c(\n \"td\",\n { attrs: { width: \"20%\" } },\n [\n _c(\n \"btn\",\n {\n staticStyle: { border: \"none\" },\n attrs: {\n block: \"\",\n size: \"sm\",\n type: _vm.getBtnClass(year)\n },\n on: {\n click: function($event) {\n return _vm.changeView(year)\n }\n }\n },\n [_c(\"span\", [_vm._v(_vm._s(year))])]\n )\n ],\n 1\n )\n }),\n 0\n )\n }),\n 0\n )\n ]\n )\n};\nvar __vue_staticRenderFns__$7 = [];\n__vue_render__$7._withStripped = true;\n\n /* style */\n var __vue_inject_styles__$7 = undefined;\n /* scoped */\n var __vue_scope_id__$7 = undefined;\n /* module identifier */\n var __vue_module_identifier__$7 = undefined;\n /* functional template */\n var __vue_is_functional_template__$7 = false;\n /* style inject */\n \n /* style inject SSR */\n \n /* style inject shadow dom */\n \n\n \n var __vue_component__$7 = /*#__PURE__*/normalizeComponent(\n { render: __vue_render__$7, staticRenderFns: __vue_staticRenderFns__$7 },\n __vue_inject_styles__$7,\n __vue_script__$7,\n __vue_scope_id__$7,\n __vue_is_functional_template__$7,\n __vue_module_identifier__$7,\n false,\n undefined,\n undefined,\n undefined\n );\n\nvar script$8 = {\n mixins: [Local],\n components: { DateView: __vue_component__$5, MonthView: __vue_component__$6, YearView: __vue_component__$7, Btn: Btn },\n props: {\n value: null,\n width: {\n type: Number,\n default: 270\n },\n todayBtn: {\n type: Boolean,\n default: true\n },\n clearBtn: {\n type: Boolean,\n default: true\n },\n closeOnSelected: {\n type: Boolean,\n default: true\n },\n limitFrom: null,\n limitTo: null,\n format: {\n type: String,\n default: 'yyyy-MM-dd'\n },\n initialView: {\n type: String,\n default: 'd'\n },\n dateParser: {\n type: Function,\n default: Date.parse\n },\n dateClass: Function,\n yearMonthFormatter: Function,\n weekStartsWith: {\n type: Number,\n default: 0,\n validator: function validator (value) {\n return value >= 0 && value <= 6\n }\n },\n weekNumbers: Boolean,\n iconControlLeft: {\n type: String,\n default: 'glyphicon glyphicon-chevron-left'\n },\n iconControlRight: {\n type: String,\n default: 'glyphicon glyphicon-chevron-right'\n }\n },\n data: function data () {\n return {\n show: false,\n now: new Date(),\n currentMonth: 0,\n currentYear: 0,\n view: 'd'\n }\n },\n computed: {\n valueDateObj: function valueDateObj () {\n var ts = this.dateParser(this.value);\n if (isNaN(ts)) {\n return null\n } else {\n var date = new Date(ts);\n if (date.getHours() !== 0) {\n date = new Date(ts + date.getTimezoneOffset() * 60 * 1000);\n }\n return date\n }\n },\n pickerStyle: function pickerStyle () {\n return {\n width: this.width + 'px'\n }\n },\n pickerClass: function pickerClass () {\n return {\n 'uiv-datepicker': true,\n 'uiv-datepicker-date': this.view === 'd',\n 'uiv-datepicker-month': this.view === 'm',\n 'uiv-datepicker-year': this.view === 'y'\n }\n },\n limit: function limit () {\n var limit = {};\n if (this.limitFrom) {\n var limitFrom = this.dateParser(this.limitFrom);\n if (!isNaN(limitFrom)) {\n limitFrom = convertDateToUTC(new Date(limitFrom));\n limitFrom.setHours(0, 0, 0, 0);\n limit.from = limitFrom;\n }\n }\n if (this.limitTo) {\n var limitTo = this.dateParser(this.limitTo);\n if (!isNaN(limitTo)) {\n limitTo = convertDateToUTC(new Date(limitTo));\n limitTo.setHours(0, 0, 0, 0);\n limit.to = limitTo;\n }\n }\n return limit\n }\n },\n mounted: function mounted () {\n if (this.value) {\n this.setMonthAndYearByValue(this.value);\n } else {\n this.currentMonth = this.now.getMonth();\n this.currentYear = this.now.getFullYear();\n this.view = this.initialView;\n }\n },\n watch: {\n value: function value (val, oldVal) {\n this.setMonthAndYearByValue(val, oldVal);\n }\n },\n methods: {\n setMonthAndYearByValue: function setMonthAndYearByValue (val, oldVal) {\n var ts = this.dateParser(val);\n if (!isNaN(ts)) {\n var date = new Date(ts);\n if (date.getHours() !== 0) {\n date = new Date(ts + date.getTimezoneOffset() * 60 * 1000);\n }\n if (this.limit && ((this.limit.from && date < this.limit.from) || (this.limit.to && date >= this.limit.to))) {\n this.$emit('input', oldVal || '');\n } else {\n this.currentMonth = date.getMonth();\n this.currentYear = date.getFullYear();\n }\n }\n },\n onMonthChange: function onMonthChange (month) {\n this.currentMonth = month;\n },\n onYearChange: function onYearChange (year) {\n this.currentYear = year;\n this.currentMonth = undefined;\n },\n onDateChange: function onDateChange (date) {\n if (date && isNumber(date.date) && isNumber(date.month) && isNumber(date.year)) {\n var _date = new Date(date.year, date.month, date.date);\n this.$emit('input', this.format ? stringify(_date, this.format) : _date);\n // if the input event trigger nothing (same value)\n // manually correct\n this.currentMonth = date.month;\n this.currentYear = date.year;\n } else {\n this.$emit('input', '');\n }\n },\n onViewChange: function onViewChange (view) {\n this.view = view;\n },\n selectToday: function selectToday () {\n this.view = 'd';\n this.onDateChange({\n date: this.now.getDate(),\n month: this.now.getMonth(),\n year: this.now.getFullYear()\n });\n },\n clearSelect: function clearSelect () {\n this.currentMonth = this.now.getMonth();\n this.currentYear = this.now.getFullYear();\n this.view = this.initialView;\n this.onDateChange();\n },\n onPickerClick: function onPickerClick (event) {\n if (event.target.getAttribute('data-action') !== 'select' || !this.closeOnSelected) {\n event.stopPropagation();\n }\n }\n }\n};\n\n/* script */\nvar __vue_script__$8 = script$8;\n\n/* template */\nvar __vue_render__$8 = function() {\n var _vm = this;\n var _h = _vm.$createElement;\n var _c = _vm._self._c || _h;\n return _c(\n \"div\",\n {\n class: _vm.pickerClass,\n style: _vm.pickerStyle,\n attrs: { \"data-role\": \"date-picker\" },\n on: { click: _vm.onPickerClick }\n },\n [\n _c(\"date-view\", {\n directives: [\n {\n name: \"show\",\n rawName: \"v-show\",\n value: _vm.view === \"d\",\n expression: \"view==='d'\"\n }\n ],\n attrs: {\n month: _vm.currentMonth,\n year: _vm.currentYear,\n date: _vm.valueDateObj,\n today: _vm.now,\n limit: _vm.limit,\n \"week-starts-with\": _vm.weekStartsWith,\n \"icon-control-left\": _vm.iconControlLeft,\n \"icon-control-right\": _vm.iconControlRight,\n \"date-class\": _vm.dateClass,\n \"year-month-formatter\": _vm.yearMonthFormatter,\n \"week-numbers\": _vm.weekNumbers,\n locale: _vm.locale\n },\n on: {\n \"month-change\": _vm.onMonthChange,\n \"year-change\": _vm.onYearChange,\n \"date-change\": _vm.onDateChange,\n \"view-change\": _vm.onViewChange\n }\n }),\n _vm._v(\" \"),\n _c(\"month-view\", {\n directives: [\n {\n name: \"show\",\n rawName: \"v-show\",\n value: _vm.view === \"m\",\n expression: \"view==='m'\"\n }\n ],\n attrs: {\n month: _vm.currentMonth,\n year: _vm.currentYear,\n \"icon-control-left\": _vm.iconControlLeft,\n \"icon-control-right\": _vm.iconControlRight,\n locale: _vm.locale\n },\n on: {\n \"month-change\": _vm.onMonthChange,\n \"year-change\": _vm.onYearChange,\n \"view-change\": _vm.onViewChange\n }\n }),\n _vm._v(\" \"),\n _c(\"year-view\", {\n directives: [\n {\n name: \"show\",\n rawName: \"v-show\",\n value: _vm.view === \"y\",\n expression: \"view==='y'\"\n }\n ],\n attrs: {\n year: _vm.currentYear,\n \"icon-control-left\": _vm.iconControlLeft,\n \"icon-control-right\": _vm.iconControlRight\n },\n on: { \"year-change\": _vm.onYearChange, \"view-change\": _vm.onViewChange }\n }),\n _vm._v(\" \"),\n _vm.todayBtn || _vm.clearBtn\n ? _c(\"div\", [\n _c(\"br\"),\n _vm._v(\" \"),\n _c(\n \"div\",\n { staticClass: \"text-center\" },\n [\n _vm.todayBtn\n ? _c(\"btn\", {\n attrs: {\n \"data-action\": \"select\",\n type: \"info\",\n size: \"sm\"\n },\n domProps: {\n textContent: _vm._s(_vm.t(\"uiv.datePicker.today\"))\n },\n on: { click: _vm.selectToday }\n })\n : _vm._e(),\n _vm._v(\" \"),\n _vm.clearBtn\n ? _c(\"btn\", {\n attrs: { \"data-action\": \"select\", size: \"sm\" },\n domProps: {\n textContent: _vm._s(_vm.t(\"uiv.datePicker.clear\"))\n },\n on: { click: _vm.clearSelect }\n })\n : _vm._e()\n ],\n 1\n )\n ])\n : _vm._e()\n ],\n 1\n )\n};\nvar __vue_staticRenderFns__$8 = [];\n__vue_render__$8._withStripped = true;\n\n /* style */\n var __vue_inject_styles__$8 = undefined;\n /* scoped */\n var __vue_scope_id__$8 = undefined;\n /* module identifier */\n var __vue_module_identifier__$8 = undefined;\n /* functional template */\n var __vue_is_functional_template__$8 = false;\n /* style inject */\n \n /* style inject SSR */\n \n /* style inject shadow dom */\n \n\n \n var __vue_component__$8 = /*#__PURE__*/normalizeComponent(\n { render: __vue_render__$8, staticRenderFns: __vue_staticRenderFns__$8 },\n __vue_inject_styles__$8,\n __vue_script__$8,\n __vue_scope_id__$8,\n __vue_is_functional_template__$8,\n __vue_module_identifier__$8,\n false,\n undefined,\n undefined,\n undefined\n );\n\nvar HANDLER = '_uiv_scroll_handler';\nvar events = [EVENTS.RESIZE, EVENTS.SCROLL];\n\nvar bind = function (el, binding) {\n var callback = binding.value;\n if (!isFunction(callback)) {\n return\n }\n unbind(el);\n el[HANDLER] = callback;\n events.forEach(function (event) {\n on(window, event, el[HANDLER]);\n });\n};\n\nvar unbind = function (el) {\n events.forEach(function (event) {\n off(window, event, el[HANDLER]);\n });\n delete el[HANDLER];\n};\n\nvar update = function (el, binding) {\n if (binding.value !== binding.oldValue) {\n bind(el, binding);\n }\n};\n\nvar scroll = { bind: bind, unbind: unbind, update: update };\n\nvar script$9 = {\n directives: {\n scroll: scroll\n },\n props: {\n offset: {\n type: Number,\n default: 0\n }\n },\n data: function data () {\n return {\n affixed: false\n }\n },\n computed: {\n classes: function classes () {\n return {\n affix: this.affixed\n }\n },\n styles: function styles () {\n return {\n top: this.affixed ? this.offset + 'px' : null\n }\n }\n },\n methods: {\n // from https://github.com/ant-design/ant-design/blob/master/components/affix/index.jsx#L20\n onScroll: function onScroll () {\n var this$1 = this;\n\n // if is hidden don't calculate anything\n if (!(this.$el.offsetWidth || this.$el.offsetHeight || this.$el.getClientRects().length)) {\n return\n }\n // get window scroll and element position to detect if have to be normal or affixed\n var scroll = {};\n var element = {};\n var rect = this.$el.getBoundingClientRect();\n var body = document.body;\n var types = ['Top', 'Left'];\n types.forEach(function (type) {\n var t = type.toLowerCase();\n scroll[t] = window['page' + (type === 'Top' ? 'Y' : 'X') + 'Offset'];\n element[t] = scroll[t] + rect[t] - (this$1.$el['client' + type] || body['client' + type] || 0);\n });\n var fix = scroll.top > element.top - this.offset;\n if (this.affixed !== fix) {\n this.affixed = fix;\n this.$emit(this.affixed ? 'affix' : 'unfix');\n this.$nextTick(function () {\n this$1.$emit(this$1.affixed ? 'affixed' : 'unfixed');\n });\n }\n }\n }\n};\n\n/* script */\nvar __vue_script__$9 = script$9;\n\n/* template */\nvar __vue_render__$9 = function() {\n var _vm = this;\n var _h = _vm.$createElement;\n var _c = _vm._self._c || _h;\n return _c(\"div\", { staticClass: \"hidden-print\" }, [\n _c(\n \"div\",\n {\n directives: [\n {\n name: \"scroll\",\n rawName: \"v-scroll\",\n value: _vm.onScroll,\n expression: \"onScroll\"\n }\n ],\n class: _vm.classes,\n style: _vm.styles\n },\n [_vm._t(\"default\")],\n 2\n )\n ])\n};\nvar __vue_staticRenderFns__$9 = [];\n__vue_render__$9._withStripped = true;\n\n /* style */\n var __vue_inject_styles__$9 = undefined;\n /* scoped */\n var __vue_scope_id__$9 = undefined;\n /* module identifier */\n var __vue_module_identifier__$9 = undefined;\n /* functional template */\n var __vue_is_functional_template__$9 = false;\n /* style inject */\n \n /* style inject SSR */\n \n /* style inject shadow dom */\n \n\n \n var __vue_component__$9 = /*#__PURE__*/normalizeComponent(\n { render: __vue_render__$9, staticRenderFns: __vue_staticRenderFns__$9 },\n __vue_inject_styles__$9,\n __vue_script__$9,\n __vue_scope_id__$9,\n __vue_is_functional_template__$9,\n __vue_module_identifier__$9,\n false,\n undefined,\n undefined,\n undefined\n );\n\nvar script$a = {\n props: {\n dismissible: {\n type: Boolean,\n default: false\n },\n duration: {\n type: Number,\n default: 0\n },\n type: {\n type: String,\n default: 'info'\n }\n },\n data: function data () {\n return {\n timeout: 0\n }\n },\n computed: {\n alertClass: function alertClass () {\n var obj;\n\n return ( obj = {\n alert: true\n }, obj[(\"alert-\" + (this.type))] = Boolean(this.type), obj['alert-dismissible'] = this.dismissible, obj )\n }\n },\n methods: {\n closeAlert: function closeAlert () {\n clearTimeout(this.timeout);\n this.$emit('dismissed');\n }\n },\n mounted: function mounted () {\n if (this.duration > 0) {\n this.timeout = setTimeout(this.closeAlert, this.duration);\n }\n },\n destroyed: function destroyed () {\n clearTimeout(this.timeout);\n }\n};\n\n/* script */\nvar __vue_script__$a = script$a;\n\n/* template */\nvar __vue_render__$a = function() {\n var _vm = this;\n var _h = _vm.$createElement;\n var _c = _vm._self._c || _h;\n return _c(\n \"div\",\n { class: _vm.alertClass, attrs: { role: \"alert\" } },\n [\n _vm.dismissible\n ? _c(\n \"button\",\n {\n staticClass: \"close\",\n attrs: { type: \"button\", \"aria-label\": \"Close\" },\n on: { click: _vm.closeAlert }\n },\n [_c(\"span\", { attrs: { \"aria-hidden\": \"true\" } }, [_vm._v(\"×\")])]\n )\n : _vm._e(),\n _vm._v(\" \"),\n _vm._t(\"default\")\n ],\n 2\n )\n};\nvar __vue_staticRenderFns__$a = [];\n__vue_render__$a._withStripped = true;\n\n /* style */\n var __vue_inject_styles__$a = undefined;\n /* scoped */\n var __vue_scope_id__$a = undefined;\n /* module identifier */\n var __vue_module_identifier__$a = undefined;\n /* functional template */\n var __vue_is_functional_template__$a = false;\n /* style inject */\n \n /* style inject SSR */\n \n /* style inject shadow dom */\n \n\n \n var __vue_component__$a = /*#__PURE__*/normalizeComponent(\n { render: __vue_render__$a, staticRenderFns: __vue_staticRenderFns__$a },\n __vue_inject_styles__$a,\n __vue_script__$a,\n __vue_scope_id__$a,\n __vue_is_functional_template__$a,\n __vue_module_identifier__$a,\n false,\n undefined,\n undefined,\n undefined\n );\n\nvar script$b = {\n props: {\n value: {\n type: Number,\n required: true,\n validator: function (v) { return v >= 1; }\n },\n boundaryLinks: {\n type: Boolean,\n default: false\n },\n directionLinks: {\n type: Boolean,\n default: true\n },\n size: String,\n align: String,\n totalPage: {\n type: Number,\n required: true,\n validator: function (v) { return v >= 0; }\n },\n maxSize: {\n type: Number,\n default: 5,\n validator: function (v) { return v >= 0; }\n },\n disabled: Boolean\n },\n data: function data () {\n return {\n sliceStart: 0\n }\n },\n computed: {\n navClasses: function navClasses () {\n var obj;\n\n return ( obj = {}, obj[(\"text-\" + (this.align))] = Boolean(this.align), obj )\n },\n classes: function classes () {\n var obj;\n\n return ( obj = {}, obj[(\"pagination-\" + (this.size))] = Boolean(this.size), obj )\n },\n sliceArray: function sliceArray () {\n return range(this.totalPage).slice(this.sliceStart, this.sliceStart + this.maxSize)\n }\n },\n methods: {\n calculateSliceStart: function calculateSliceStart () {\n var currentPage = this.value;\n var chunkSize = this.maxSize;\n var currentChunkStart = this.sliceStart;\n var currentChunkEnd = currentChunkStart + chunkSize;\n if (currentPage > currentChunkEnd) {\n var lastChunkStart = this.totalPage - chunkSize;\n if (currentPage > lastChunkStart) {\n this.sliceStart = lastChunkStart;\n } else {\n this.sliceStart = currentPage - 1;\n }\n } else if (currentPage < currentChunkStart + 1) {\n if (currentPage > chunkSize) {\n this.sliceStart = currentPage - chunkSize;\n } else {\n this.sliceStart = 0;\n }\n }\n },\n onPageChange: function onPageChange (page) {\n if (!this.disabled && page > 0 && page <= this.totalPage && page !== this.value) {\n this.$emit('input', page);\n this.$emit('change', page);\n }\n },\n toPage: function toPage (pre) {\n if (this.disabled) {\n return\n }\n var chunkSize = this.maxSize;\n var currentChunkStart = this.sliceStart;\n var lastChunkStart = this.totalPage - chunkSize;\n var start = pre ? currentChunkStart - chunkSize : currentChunkStart + chunkSize;\n if (start < 0) {\n this.sliceStart = 0;\n } else if (start > lastChunkStart) {\n this.sliceStart = lastChunkStart;\n } else {\n this.sliceStart = start;\n }\n }\n },\n created: function created () {\n this.$watch(function (vm) { return [vm.value, vm.maxSize, vm.totalPage].join(); }, this.calculateSliceStart, {\n immediate: true\n });\n }\n};\n\n/* script */\nvar __vue_script__$b = script$b;\n\n/* template */\nvar __vue_render__$b = function() {\n var _vm = this;\n var _h = _vm.$createElement;\n var _c = _vm._self._c || _h;\n return _c(\n \"nav\",\n { class: _vm.navClasses, attrs: { \"aria-label\": \"Page navigation\" } },\n [\n _c(\n \"ul\",\n { staticClass: \"pagination\", class: _vm.classes },\n [\n _vm.boundaryLinks\n ? _c(\n \"li\",\n { class: { disabled: _vm.value <= 1 || _vm.disabled } },\n [\n _c(\n \"a\",\n {\n attrs: {\n href: \"#\",\n role: \"button\",\n \"aria-label\": \"First\"\n },\n on: {\n click: function($event) {\n $event.preventDefault();\n return _vm.onPageChange(1)\n }\n }\n },\n [\n _c(\"span\", { attrs: { \"aria-hidden\": \"true\" } }, [\n _vm._v(\"«\")\n ])\n ]\n )\n ]\n )\n : _vm._e(),\n _vm._v(\" \"),\n _vm.directionLinks\n ? _c(\n \"li\",\n { class: { disabled: _vm.value <= 1 || _vm.disabled } },\n [\n _c(\n \"a\",\n {\n attrs: {\n href: \"#\",\n role: \"button\",\n \"aria-label\": \"Previous\"\n },\n on: {\n click: function($event) {\n $event.preventDefault();\n return _vm.onPageChange(_vm.value - 1)\n }\n }\n },\n [\n _c(\"span\", { attrs: { \"aria-hidden\": \"true\" } }, [\n _vm._v(\"‹\")\n ])\n ]\n )\n ]\n )\n : _vm._e(),\n _vm._v(\" \"),\n _vm.sliceStart > 0\n ? _c(\"li\", { class: { disabled: _vm.disabled } }, [\n _c(\n \"a\",\n {\n attrs: {\n href: \"#\",\n role: \"button\",\n \"aria-label\": \"Previous group\"\n },\n on: {\n click: function($event) {\n $event.preventDefault();\n return _vm.toPage(1)\n }\n }\n },\n [\n _c(\"span\", { attrs: { \"aria-hidden\": \"true\" } }, [\n _vm._v(\"…\")\n ])\n ]\n )\n ])\n : _vm._e(),\n _vm._v(\" \"),\n _vm._l(_vm.sliceArray, function(item) {\n return _c(\n \"li\",\n {\n key: item,\n class: {\n active: _vm.value === item + 1,\n disabled: _vm.disabled\n }\n },\n [\n _c(\n \"a\",\n {\n attrs: { href: \"#\", role: \"button\" },\n on: {\n click: function($event) {\n $event.preventDefault();\n return _vm.onPageChange(item + 1)\n }\n }\n },\n [_vm._v(_vm._s(item + 1))]\n )\n ]\n )\n }),\n _vm._v(\" \"),\n _vm.sliceStart < _vm.totalPage - _vm.maxSize\n ? _c(\"li\", { class: { disabled: _vm.disabled } }, [\n _c(\n \"a\",\n {\n attrs: {\n href: \"#\",\n role: \"button\",\n \"aria-label\": \"Next group\"\n },\n on: {\n click: function($event) {\n $event.preventDefault();\n return _vm.toPage(0)\n }\n }\n },\n [\n _c(\"span\", { attrs: { \"aria-hidden\": \"true\" } }, [\n _vm._v(\"…\")\n ])\n ]\n )\n ])\n : _vm._e(),\n _vm._v(\" \"),\n _vm.directionLinks\n ? _c(\n \"li\",\n {\n class: {\n disabled: _vm.value >= _vm.totalPage || _vm.disabled\n }\n },\n [\n _c(\n \"a\",\n {\n attrs: {\n href: \"#\",\n role: \"button\",\n \"aria-label\": \"Next\"\n },\n on: {\n click: function($event) {\n $event.preventDefault();\n return _vm.onPageChange(_vm.value + 1)\n }\n }\n },\n [\n _c(\"span\", { attrs: { \"aria-hidden\": \"true\" } }, [\n _vm._v(\"›\")\n ])\n ]\n )\n ]\n )\n : _vm._e(),\n _vm._v(\" \"),\n _vm.boundaryLinks\n ? _c(\n \"li\",\n {\n class: {\n disabled: _vm.value >= _vm.totalPage || _vm.disabled\n }\n },\n [\n _c(\n \"a\",\n {\n attrs: {\n href: \"#\",\n role: \"button\",\n \"aria-label\": \"Last\"\n },\n on: {\n click: function($event) {\n $event.preventDefault();\n return _vm.onPageChange(_vm.totalPage)\n }\n }\n },\n [\n _c(\"span\", { attrs: { \"aria-hidden\": \"true\" } }, [\n _vm._v(\"»\")\n ])\n ]\n )\n ]\n )\n : _vm._e()\n ],\n 2\n )\n ]\n )\n};\nvar __vue_staticRenderFns__$b = [];\n__vue_render__$b._withStripped = true;\n\n /* style */\n var __vue_inject_styles__$b = undefined;\n /* scoped */\n var __vue_scope_id__$b = undefined;\n /* module identifier */\n var __vue_module_identifier__$b = undefined;\n /* functional template */\n var __vue_is_functional_template__$b = false;\n /* style inject */\n \n /* style inject SSR */\n \n /* style inject shadow dom */\n \n\n \n var __vue_component__$b = /*#__PURE__*/normalizeComponent(\n { render: __vue_render__$b, staticRenderFns: __vue_staticRenderFns__$b },\n __vue_inject_styles__$b,\n __vue_script__$b,\n __vue_scope_id__$b,\n __vue_is_functional_template__$b,\n __vue_module_identifier__$b,\n false,\n undefined,\n undefined,\n undefined\n );\n\nvar SHOW_CLASS = 'in';\n\nvar popupMixin = {\n props: {\n value: {\n type: Boolean,\n default: false\n },\n tag: {\n type: String,\n default: 'span'\n },\n placement: {\n type: String,\n default: PLACEMENTS.TOP\n },\n autoPlacement: {\n type: Boolean,\n default: true\n },\n appendTo: {\n type: null,\n default: 'body'\n },\n transition: {\n type: Number,\n default: 150\n },\n hideDelay: {\n type: Number,\n default: 0\n },\n showDelay: {\n type: Number,\n default: 0\n },\n enable: {\n type: Boolean,\n default: true\n },\n enterable: {\n type: Boolean,\n default: true\n },\n target: null,\n viewport: null,\n customClass: String\n },\n data: function data () {\n return {\n triggerEl: null,\n hideTimeoutId: 0,\n showTimeoutId: 0,\n transitionTimeoutId: 0,\n autoTimeoutId: 0\n }\n },\n watch: {\n value: function value (v) {\n v ? this.show() : this.hide();\n },\n trigger: function trigger () {\n this.clearListeners();\n this.initListeners();\n },\n target: function target (value) {\n this.clearListeners();\n this.initTriggerElByTarget(value);\n this.initListeners();\n },\n allContent: function allContent (value) {\n var this$1 = this;\n\n // can not use value because it can not detect slot changes\n if (this.isNotEmpty()) {\n // reset position while content changed & is shown\n // nextTick is required\n this.$nextTick(function () {\n /* istanbul ignore else */\n if (this$1.isShown()) {\n this$1.resetPosition();\n }\n });\n } else {\n this.hide();\n }\n },\n enable: function enable (value) {\n // hide if enable changed to false\n /* istanbul ignore else */\n if (!value) {\n this.hide();\n }\n }\n },\n mounted: function mounted () {\n var this$1 = this;\n\n ensureElementMatchesFunction();\n removeFromDom(this.$refs.popup);\n this.$nextTick(function () {\n this$1.initTriggerElByTarget(this$1.target);\n this$1.initListeners();\n if (this$1.value) {\n this$1.show();\n }\n });\n },\n beforeDestroy: function beforeDestroy () {\n this.clearListeners();\n removeFromDom(this.$refs.popup);\n },\n methods: {\n initTriggerElByTarget: function initTriggerElByTarget (target) {\n if (target) {\n // target exist\n this.triggerEl = getElementBySelectorOrRef(target);\n } else {\n // find special element\n var trigger = this.$el.querySelector('[data-role=\"trigger\"]');\n if (trigger) {\n this.triggerEl = trigger;\n } else {\n // use the first child\n var firstChild = this.$el.firstChild;\n this.triggerEl = firstChild === this.$refs.popup ? null : firstChild;\n }\n }\n },\n initListeners: function initListeners () {\n if (this.triggerEl) {\n if (this.trigger === TRIGGERS.HOVER) {\n on(this.triggerEl, EVENTS.MOUSE_ENTER, this.show);\n on(this.triggerEl, EVENTS.MOUSE_LEAVE, this.hide);\n } else if (this.trigger === TRIGGERS.FOCUS) {\n on(this.triggerEl, EVENTS.FOCUS, this.show);\n on(this.triggerEl, EVENTS.BLUR, this.hide);\n } else if (this.trigger === TRIGGERS.HOVER_FOCUS) {\n on(this.triggerEl, EVENTS.MOUSE_ENTER, this.handleAuto);\n on(this.triggerEl, EVENTS.MOUSE_LEAVE, this.handleAuto);\n on(this.triggerEl, EVENTS.FOCUS, this.handleAuto);\n on(this.triggerEl, EVENTS.BLUR, this.handleAuto);\n } else if (this.trigger === TRIGGERS.CLICK || this.trigger === TRIGGERS.OUTSIDE_CLICK) {\n on(this.triggerEl, EVENTS.CLICK, this.toggle);\n }\n }\n on(window, EVENTS.CLICK, this.windowClicked);\n },\n clearListeners: function clearListeners () {\n if (this.triggerEl) {\n off(this.triggerEl, EVENTS.FOCUS, this.show);\n off(this.triggerEl, EVENTS.BLUR, this.hide);\n off(this.triggerEl, EVENTS.MOUSE_ENTER, this.show);\n off(this.triggerEl, EVENTS.MOUSE_LEAVE, this.hide);\n off(this.triggerEl, EVENTS.CLICK, this.toggle);\n off(this.triggerEl, EVENTS.MOUSE_ENTER, this.handleAuto);\n off(this.triggerEl, EVENTS.MOUSE_LEAVE, this.handleAuto);\n off(this.triggerEl, EVENTS.FOCUS, this.handleAuto);\n off(this.triggerEl, EVENTS.BLUR, this.handleAuto);\n }\n off(window, EVENTS.CLICK, this.windowClicked);\n this.clearTimeouts();\n },\n clearTimeouts: function clearTimeouts () {\n if (this.hideTimeoutId) {\n clearTimeout(this.hideTimeoutId);\n this.hideTimeoutId = 0;\n }\n if (this.showTimeoutId) {\n clearTimeout(this.showTimeoutId);\n this.showTimeoutId = 0;\n }\n if (this.transitionTimeoutId) {\n clearTimeout(this.transitionTimeoutId);\n this.transitionTimeoutId = 0;\n }\n if (this.autoTimeoutId) {\n clearTimeout(this.autoTimeoutId);\n this.autoTimeoutId = 0;\n }\n },\n resetPosition: function resetPosition () {\n var popup = this.$refs.popup;\n /* istanbul ignore else */\n if (popup) {\n setTooltipPosition(popup, this.triggerEl, this.placement, this.autoPlacement, this.appendTo, this.viewport);\n popup.offsetHeight;\n }\n },\n hideOnLeave: function hideOnLeave () {\n if (this.trigger === TRIGGERS.HOVER || (this.trigger === TRIGGERS.HOVER_FOCUS && !this.triggerEl.matches(':focus'))) {\n this.$hide();\n }\n },\n toggle: function toggle () {\n if (this.isShown()) {\n this.hide();\n } else {\n this.show();\n }\n },\n show: function show () {\n var this$1 = this;\n\n if (this.enable && this.triggerEl && this.isNotEmpty() && !this.isShown()) {\n var popUpAppendedContainer = this.hideTimeoutId > 0; // weird condition\n if (popUpAppendedContainer) {\n clearTimeout(this.hideTimeoutId);\n this.hideTimeoutId = 0;\n }\n if (this.transitionTimeoutId > 0) {\n clearTimeout(this.transitionTimeoutId);\n this.transitionTimeoutId = 0;\n }\n clearTimeout(this.showTimeoutId);\n this.showTimeoutId = setTimeout(function () {\n this$1.showTimeoutId = 0;\n var popup = this$1.$refs.popup;\n if (popup) {\n var alreadyOpenModalNum = getOpenModalNum();\n if (alreadyOpenModalNum > 1) {\n var defaultZ = this$1.name === 'popover' ? 1060 : 1070;\n var offset = (alreadyOpenModalNum - 1) * 20;\n popup.style.zIndex = \"\" + (defaultZ + offset);\n }\n // add to dom\n if (!popUpAppendedContainer) {\n popup.className = (this$1.name) + \" \" + (this$1.placement) + \" \" + (this$1.customClass ? this$1.customClass : '') + \" fade\";\n var container = getElementBySelectorOrRef(this$1.appendTo);\n container.appendChild(popup);\n this$1.resetPosition();\n }\n addClass(popup, SHOW_CLASS);\n this$1.$emit('input', true);\n this$1.$emit('show');\n }\n }, this.showDelay);\n }\n },\n hide: function hide () {\n var this$1 = this;\n\n if (this.showTimeoutId > 0) {\n clearTimeout(this.showTimeoutId);\n this.showTimeoutId = 0;\n }\n\n if (!this.isShown()) {\n return\n }\n if (this.enterable && (this.trigger === TRIGGERS.HOVER || this.trigger === TRIGGERS.HOVER_FOCUS)) {\n clearTimeout(this.hideTimeoutId);\n this.hideTimeoutId = setTimeout(function () {\n this$1.hideTimeoutId = 0;\n var popup = this$1.$refs.popup;\n if (popup && !popup.matches(':hover')) {\n this$1.$hide();\n }\n }, 100);\n } else {\n this.$hide();\n }\n },\n $hide: function $hide () {\n var this$1 = this;\n\n if (this.isShown()) {\n clearTimeout(this.hideTimeoutId);\n this.hideTimeoutId = setTimeout(function () {\n this$1.hideTimeoutId = 0;\n removeClass(this$1.$refs.popup, SHOW_CLASS);\n // gives fade out time\n this$1.transitionTimeoutId = setTimeout(function () {\n this$1.transitionTimeoutId = 0;\n removeFromDom(this$1.$refs.popup);\n this$1.$emit('input', false);\n this$1.$emit('hide');\n }, this$1.transition);\n }, this.hideDelay);\n }\n },\n isShown: function isShown () {\n return hasClass(this.$refs.popup, SHOW_CLASS)\n },\n windowClicked: function windowClicked (event) {\n if (this.triggerEl && isFunction(this.triggerEl.contains) && !this.triggerEl.contains(event.target) &&\n this.trigger === TRIGGERS.OUTSIDE_CLICK && !(this.$refs.popup && this.$refs.popup.contains(event.target)) &&\n this.isShown()) {\n this.hide();\n }\n },\n handleAuto: function handleAuto () {\n var this$1 = this;\n\n clearTimeout(this.autoTimeoutId);\n this.autoTimeoutId = setTimeout(function () {\n this$1.autoTimeoutId = 0;\n if (this$1.triggerEl.matches(':hover, :focus')) {\n this$1.show();\n } else {\n this$1.hide();\n }\n }, 20); // 20ms make firefox happy\n }\n }\n};\n\nvar Tooltip = {\n mixins: [popupMixin],\n data: function data () {\n return {\n name: 'tooltip'\n }\n },\n render: function render (h) {\n return h(\n this.tag,\n [\n this.$slots.default,\n h('div',\n {\n ref: 'popup',\n attrs: {\n role: 'tooltip'\n },\n on: {\n mouseleave: this.hideOnLeave\n }\n },\n [\n h('div', { class: 'tooltip-arrow' }),\n h('div', {\n class: 'tooltip-inner',\n domProps: { innerHTML: this.text }\n })\n ]\n )\n ]\n )\n },\n props: {\n text: {\n type: String,\n default: ''\n },\n trigger: {\n type: String,\n default: TRIGGERS.HOVER_FOCUS\n }\n },\n computed: {\n allContent: function allContent () {\n return this.text\n }\n },\n methods: {\n isNotEmpty: function isNotEmpty () {\n return this.text\n }\n }\n};\n\nvar Popover = {\n mixins: [popupMixin],\n data: function data () {\n return {\n name: 'popover'\n }\n },\n render: function render (h) {\n return h(this.tag,\n [\n this.$slots.default,\n h('div',\n {\n style: {\n display: 'block'\n },\n ref: 'popup',\n on: {\n mouseleave: this.hideOnLeave\n }\n },\n [\n h('div', { class: 'arrow' }),\n h('h3', {\n class: 'popover-title',\n directives: [\n { name: 'show', value: this.title }\n ]\n }, this.title),\n h('div', { class: 'popover-content' }, [this.content || this.$slots.popover])\n ]\n )\n ]\n )\n },\n props: {\n title: {\n type: String,\n default: ''\n },\n content: {\n type: String,\n default: ''\n },\n trigger: {\n type: String,\n default: TRIGGERS.OUTSIDE_CLICK\n }\n },\n computed: {\n allContent: function allContent () {\n return this.title + this.content\n }\n },\n methods: {\n isNotEmpty: function isNotEmpty () {\n return this.title || this.content || this.$slots.popover\n }\n }\n};\n\nvar maxHours = 23;\nvar zero = 0;\nvar maxMinutes = 59;\nvar cutUpAmAndPm = 12;\n\nvar script$c = {\n components: { Btn: Btn },\n mixins: [Local],\n props: {\n value: {\n type: Date,\n required: true\n },\n showMeridian: {\n type: Boolean,\n default: true\n },\n min: Date,\n max: Date,\n hourStep: {\n type: Number,\n default: 1\n },\n minStep: {\n type: Number,\n default: 1\n },\n readonly: {\n type: Boolean,\n default: false\n },\n controls: {\n type: Boolean,\n default: true\n },\n iconControlUp: {\n type: String,\n default: 'glyphicon glyphicon-chevron-up'\n },\n iconControlDown: {\n type: String,\n default: 'glyphicon glyphicon-chevron-down'\n },\n inputWidth: {\n type: Number,\n default: 50\n }\n },\n data: function data () {\n return {\n hours: 0,\n minutes: 0,\n meridian: true,\n hoursText: '',\n minutesText: ''\n }\n },\n mounted: function mounted () {\n this.updateByValue(this.value);\n },\n computed: {\n inputStyles: function inputStyles () {\n return {\n width: ((this.inputWidth) + \"px\")\n }\n }\n },\n watch: {\n value: function value (value$1) {\n this.updateByValue(value$1);\n },\n showMeridian: function showMeridian (value) {\n this.setTime();\n },\n hoursText: function hoursText (value) {\n if (this.hours === 0 && value === '') {\n // Prevent a runtime reset from being overwritten\n return\n }\n var hour = parseInt(value);\n if (this.showMeridian) {\n if (hour >= 1 && hour <= cutUpAmAndPm) {\n if (this.meridian) {\n this.hours = hour === cutUpAmAndPm ? 0 : hour;\n } else {\n this.hours = hour === cutUpAmAndPm ? cutUpAmAndPm : hour + cutUpAmAndPm;\n }\n }\n } else if (hour >= zero && hour <= maxHours) {\n this.hours = hour;\n }\n this.setTime();\n },\n minutesText: function minutesText (value) {\n if (this.minutes === 0 && value === '') {\n // Prevent a runtime reset from being overwritten\n return\n }\n var minutesStr = parseInt(value);\n if (minutesStr >= zero && minutesStr <= maxMinutes) {\n this.minutes = minutesStr;\n }\n this.setTime();\n }\n },\n methods: {\n updateByValue: function updateByValue (value) {\n if (isNaN(value.getTime())) {\n this.hours = 0;\n this.minutes = 0;\n this.hoursText = '';\n this.minutesText = '';\n this.meridian = true;\n return\n }\n this.hours = value.getHours();\n this.minutes = value.getMinutes();\n if (!this.showMeridian) {\n this.hoursText = pad(this.hours, 2);\n } else {\n if (this.hours >= cutUpAmAndPm) {\n if (this.hours === cutUpAmAndPm) {\n this.hoursText = this.hours + '';\n } else {\n this.hoursText = pad(this.hours - cutUpAmAndPm, 2);\n }\n this.meridian = false;\n } else {\n if (this.hours === zero) {\n this.hoursText = cutUpAmAndPm.toString();\n } else {\n this.hoursText = pad(this.hours, 2);\n }\n this.meridian = true;\n }\n }\n this.minutesText = pad(this.minutes, 2);\n // lazy model won't update when using keyboard up/down\n this.$refs.hoursInput.value = this.hoursText;\n this.$refs.minutesInput.value = this.minutesText;\n },\n addHour: function addHour (step) {\n step = step || this.hourStep;\n this.hours = this.hours >= maxHours ? zero : this.hours + step;\n },\n reduceHour: function reduceHour (step) {\n step = step || this.hourStep;\n this.hours = this.hours <= zero ? maxHours : this.hours - step;\n },\n addMinute: function addMinute () {\n if (this.minutes >= maxMinutes) {\n this.minutes = zero;\n this.addHour(1);\n } else {\n this.minutes += this.minStep;\n }\n },\n reduceMinute: function reduceMinute () {\n if (this.minutes <= zero) {\n this.minutes = maxMinutes + 1 - this.minStep;\n this.reduceHour(1);\n } else {\n this.minutes -= this.minStep;\n }\n },\n changeTime: function changeTime (isHour, isPlus) {\n if (!this.readonly) {\n if (isHour && isPlus) {\n this.addHour();\n } else if (isHour && !isPlus) {\n this.reduceHour();\n } else if (!isHour && isPlus) {\n this.addMinute();\n } else {\n this.reduceMinute();\n }\n this.setTime();\n }\n },\n toggleMeridian: function toggleMeridian () {\n this.meridian = !this.meridian;\n if (this.meridian) {\n this.hours -= cutUpAmAndPm;\n } else {\n this.hours += cutUpAmAndPm;\n }\n this.setTime();\n },\n onWheel: function onWheel (e, isHour) {\n if (!this.readonly) {\n e.preventDefault();\n this.changeTime(isHour, e.deltaY < 0);\n }\n },\n setTime: function setTime () {\n var time = this.value;\n if (isNaN(time.getTime())) {\n time = new Date();\n time.setHours(0);\n time.setMinutes(0);\n }\n time.setHours(this.hours);\n time.setMinutes(this.minutes);\n if (this.max) {\n var max = new Date(time);\n max.setHours(this.max.getHours());\n max.setMinutes(this.max.getMinutes());\n time = time > max ? max : time;\n }\n if (this.min) {\n var min = new Date(time);\n min.setHours(this.min.getHours());\n min.setMinutes(this.min.getMinutes());\n time = time < min ? min : time;\n }\n this.$emit('input', new Date(time));\n },\n selectInputValue: function selectInputValue (e) {\n // mouseup should be prevented!\n // See various comments in https://stackoverflow.com/questions/3272089/programmatically-selecting-text-in-an-input-field-on-ios-devices-mobile-safari\n e.target.setSelectionRange(0, 2);\n }\n }\n};\n\n/* script */\nvar __vue_script__$c = script$c;\n\n/* template */\nvar __vue_render__$c = function() {\n var _vm = this;\n var _h = _vm.$createElement;\n var _c = _vm._self._c || _h;\n return _c(\n \"section\",\n {\n on: {\n click: function($event) {\n $event.stopPropagation();\n }\n }\n },\n [\n _c(\"table\", [\n _c(\"tbody\", [\n _vm.controls\n ? _c(\"tr\", { staticClass: \"text-center\" }, [\n _c(\n \"td\",\n [\n _c(\n \"btn\",\n {\n attrs: {\n type: \"link\",\n size: \"sm\",\n disabled: _vm.readonly\n },\n on: {\n click: function($event) {\n return _vm.changeTime(1, 1)\n }\n }\n },\n [_c(\"i\", { class: _vm.iconControlUp })]\n )\n ],\n 1\n ),\n _vm._v(\" \"),\n _c(\"td\", [_vm._v(\" \")]),\n _vm._v(\" \"),\n _c(\n \"td\",\n [\n _c(\n \"btn\",\n {\n attrs: {\n type: \"link\",\n size: \"sm\",\n disabled: _vm.readonly\n },\n on: {\n click: function($event) {\n return _vm.changeTime(0, 1)\n }\n }\n },\n [_c(\"i\", { class: _vm.iconControlUp })]\n )\n ],\n 1\n ),\n _vm._v(\" \"),\n _vm.showMeridian ? _c(\"td\") : _vm._e()\n ])\n : _vm._e(),\n _vm._v(\" \"),\n _c(\"tr\", [\n _c(\"td\", { staticClass: \"form-group\" }, [\n _c(\"input\", {\n directives: [\n {\n name: \"model\",\n rawName: \"v-model.lazy\",\n value: _vm.hoursText,\n expression: \"hoursText\",\n modifiers: { lazy: true }\n }\n ],\n ref: \"hoursInput\",\n staticClass: \"form-control text-center\",\n style: _vm.inputStyles,\n attrs: {\n type: \"tel\",\n pattern: \"\\\\d*\",\n placeholder: \"HH\",\n readonly: _vm.readonly,\n maxlength: \"2\",\n size: \"2\"\n },\n domProps: { value: _vm.hoursText },\n on: {\n mouseup: _vm.selectInputValue,\n keydown: [\n function($event) {\n if (\n !$event.type.indexOf(\"key\") &&\n _vm._k($event.keyCode, \"up\", 38, $event.key, [\n \"Up\",\n \"ArrowUp\"\n ])\n ) {\n return null\n }\n $event.preventDefault();\n return _vm.changeTime(1, 1)\n },\n function($event) {\n if (\n !$event.type.indexOf(\"key\") &&\n _vm._k($event.keyCode, \"down\", 40, $event.key, [\n \"Down\",\n \"ArrowDown\"\n ])\n ) {\n return null\n }\n $event.preventDefault();\n return _vm.changeTime(1, 0)\n }\n ],\n wheel: function($event) {\n return _vm.onWheel($event, true)\n },\n change: function($event) {\n _vm.hoursText = $event.target.value;\n }\n }\n })\n ]),\n _vm._v(\" \"),\n _vm._m(0),\n _vm._v(\" \"),\n _c(\"td\", { staticClass: \"form-group\" }, [\n _c(\"input\", {\n directives: [\n {\n name: \"model\",\n rawName: \"v-model.lazy\",\n value: _vm.minutesText,\n expression: \"minutesText\",\n modifiers: { lazy: true }\n }\n ],\n ref: \"minutesInput\",\n staticClass: \"form-control text-center\",\n style: _vm.inputStyles,\n attrs: {\n type: \"tel\",\n pattern: \"\\\\d*\",\n placeholder: \"MM\",\n readonly: _vm.readonly,\n maxlength: \"2\",\n size: \"2\"\n },\n domProps: { value: _vm.minutesText },\n on: {\n mouseup: _vm.selectInputValue,\n keydown: [\n function($event) {\n if (\n !$event.type.indexOf(\"key\") &&\n _vm._k($event.keyCode, \"up\", 38, $event.key, [\n \"Up\",\n \"ArrowUp\"\n ])\n ) {\n return null\n }\n $event.preventDefault();\n return _vm.changeTime(0, 1)\n },\n function($event) {\n if (\n !$event.type.indexOf(\"key\") &&\n _vm._k($event.keyCode, \"down\", 40, $event.key, [\n \"Down\",\n \"ArrowDown\"\n ])\n ) {\n return null\n }\n $event.preventDefault();\n return _vm.changeTime(0, 0)\n }\n ],\n wheel: function($event) {\n return _vm.onWheel($event, false)\n },\n change: function($event) {\n _vm.minutesText = $event.target.value;\n }\n }\n })\n ]),\n _vm._v(\" \"),\n _vm.showMeridian\n ? _c(\n \"td\",\n [\n _vm._v(\"\\n \\n \"),\n _c(\"btn\", {\n attrs: {\n \"data-action\": \"toggleMeridian\",\n disabled: _vm.readonly\n },\n domProps: {\n textContent: _vm._s(\n _vm.meridian\n ? _vm.t(\"uiv.timePicker.am\")\n : _vm.t(\"uiv.timePicker.pm\")\n )\n },\n on: { click: _vm.toggleMeridian }\n })\n ],\n 1\n )\n : _vm._e()\n ]),\n _vm._v(\" \"),\n _vm.controls\n ? _c(\"tr\", { staticClass: \"text-center\" }, [\n _c(\n \"td\",\n [\n _c(\n \"btn\",\n {\n attrs: {\n type: \"link\",\n size: \"sm\",\n disabled: _vm.readonly\n },\n on: {\n click: function($event) {\n return _vm.changeTime(1, 0)\n }\n }\n },\n [_c(\"i\", { class: _vm.iconControlDown })]\n )\n ],\n 1\n ),\n _vm._v(\" \"),\n _c(\"td\", [_vm._v(\" \")]),\n _vm._v(\" \"),\n _c(\n \"td\",\n [\n _c(\n \"btn\",\n {\n attrs: {\n type: \"link\",\n size: \"sm\",\n disabled: _vm.readonly\n },\n on: {\n click: function($event) {\n return _vm.changeTime(0, 0)\n }\n }\n },\n [_c(\"i\", { class: _vm.iconControlDown })]\n )\n ],\n 1\n ),\n _vm._v(\" \"),\n _vm.showMeridian ? _c(\"td\") : _vm._e()\n ])\n : _vm._e()\n ])\n ])\n ]\n )\n};\nvar __vue_staticRenderFns__$c = [\n function() {\n var _vm = this;\n var _h = _vm.$createElement;\n var _c = _vm._self._c || _h;\n return _c(\"td\", [_vm._v(\" \"), _c(\"b\", [_vm._v(\":\")]), _vm._v(\" \")])\n }\n];\n__vue_render__$c._withStripped = true;\n\n /* style */\n var __vue_inject_styles__$c = undefined;\n /* scoped */\n var __vue_scope_id__$c = undefined;\n /* module identifier */\n var __vue_module_identifier__$c = undefined;\n /* functional template */\n var __vue_is_functional_template__$c = false;\n /* style inject */\n \n /* style inject SSR */\n \n /* style inject shadow dom */\n \n\n \n var __vue_component__$c = /*#__PURE__*/normalizeComponent(\n { render: __vue_render__$c, staticRenderFns: __vue_staticRenderFns__$c },\n __vue_inject_styles__$c,\n __vue_script__$c,\n __vue_scope_id__$c,\n __vue_is_functional_template__$c,\n __vue_module_identifier__$c,\n false,\n undefined,\n undefined,\n undefined\n );\n\nfunction request (url, method) {\n if ( method === void 0 ) method = 'GET';\n\n var request = new window.XMLHttpRequest();\n var data = {};\n var p = {\n then: function (fn1, fn2) { return p.done(fn1).fail(fn2); },\n catch: function (fn) { return p.fail(fn); },\n always: function (fn) { return p.done(fn).fail(fn); }\n };\n var statuses = ['done', 'fail'];\n statuses.forEach(function (name) {\n data[name] = [];\n p[name] = function (fn) {\n if (fn instanceof Function) { data[name].push(fn); }\n return p\n };\n });\n p.done(JSON.parse);\n request.onreadystatechange = function () {\n if (request.readyState === 4) {\n var e = { status: request.status };\n if (request.status === 200) {\n var response = request.responseText;\n for (var i in data.done) {\n /* istanbul ignore else */\n if (hasOwnProperty(data.done, i) && isFunction(data.done[i])) {\n var value = data.done[i](response);\n if (isExist(value)) {\n response = value;\n }\n }\n }\n } else {\n data.fail.forEach(function (fail) { return fail(e); });\n }\n }\n };\n request.open(method, url);\n request.setRequestHeader('Accept', 'application/json');\n request.send();\n return p\n}\n\nvar script$d = {\n components: { Dropdown: Dropdown },\n props: {\n value: {\n required: true\n },\n data: Array,\n itemKey: String,\n appendToBody: {\n type: Boolean,\n default: false\n },\n ignoreCase: {\n type: Boolean,\n default: true\n },\n matchStart: {\n type: Boolean,\n default: false\n },\n forceSelect: {\n type: Boolean,\n default: false\n },\n forceClear: {\n type: Boolean,\n default: false\n },\n limit: {\n type: Number,\n default: 10\n },\n asyncSrc: String,\n asyncKey: String,\n asyncFunction: Function,\n debounce: {\n type: Number,\n default: 200\n },\n openOnFocus: {\n type: Boolean,\n default: true\n },\n openOnEmpty: {\n type: Boolean,\n default: false\n },\n target: {\n required: true\n },\n preselect: {\n type: Boolean,\n default: true\n }\n },\n data: function data () {\n return {\n inputEl: null,\n items: [],\n activeIndex: 0,\n timeoutID: 0,\n elements: [],\n open: false,\n dropdownMenuEl: null\n }\n },\n computed: {\n regexOptions: function regexOptions () {\n var options = '';\n if (this.ignoreCase) {\n options += 'i';\n }\n if (!this.matchStart) {\n options += 'g';\n }\n return options\n }\n },\n mounted: function mounted () {\n var this$1 = this;\n\n ensureElementMatchesFunction();\n this.$nextTick(function () {\n this$1.initInputElByTarget(this$1.target);\n this$1.initListeners();\n this$1.dropdownMenuEl = this$1.$refs.dropdown.$el.querySelector('.dropdown-menu');\n // set input text if v-model not empty\n if (this$1.value) {\n this$1.setInputTextByValue(this$1.value);\n }\n });\n },\n beforeDestroy: function beforeDestroy () {\n this.removeListeners();\n },\n watch: {\n target: function target (el) {\n this.removeListeners();\n this.initInputElByTarget(el);\n this.initListeners();\n },\n value: function value (value$1) {\n this.setInputTextByValue(value$1);\n }\n },\n methods: {\n setInputTextByValue: function setInputTextByValue (value) {\n if (isString(value)) {\n // direct\n this.inputEl.value = value;\n } else if (value) {\n // is object\n this.inputEl.value = this.itemKey ? value[this.itemKey] : value;\n } else if (value === null) {\n // is null or undefined or something else not valid\n this.inputEl.value = '';\n }\n },\n hasEmptySlot: function hasEmptySlot () {\n return !!this.$slots.empty || !!this.$scopedSlots.empty\n },\n initInputElByTarget: function initInputElByTarget (target) {\n if (!target) {\n return\n }\n this.inputEl = getElementBySelectorOrRef(target);\n },\n initListeners: function initListeners () {\n if (this.inputEl) {\n this.elements = [this.inputEl];\n on(this.inputEl, EVENTS.FOCUS, this.inputFocused);\n on(this.inputEl, EVENTS.BLUR, this.inputBlured);\n on(this.inputEl, EVENTS.INPUT, this.inputChanged);\n on(this.inputEl, EVENTS.KEY_DOWN, this.inputKeyPressed);\n }\n },\n removeListeners: function removeListeners () {\n this.elements = [];\n if (this.inputEl) {\n off(this.inputEl, EVENTS.FOCUS, this.inputFocused);\n off(this.inputEl, EVENTS.BLUR, this.inputBlured);\n off(this.inputEl, EVENTS.INPUT, this.inputChanged);\n off(this.inputEl, EVENTS.KEY_DOWN, this.inputKeyPressed);\n }\n },\n prepareItems: function prepareItems (data, disableFilters) {\n if ( disableFilters === void 0 ) disableFilters = false;\n\n if (disableFilters) {\n this.items = data.slice(0, this.limit);\n return\n }\n this.items = [];\n this.activeIndex = this.preselect ? 0 : -1;\n for (var i = 0, l = data.length; i < l; i++) {\n var item = data[i];\n var key = this.itemKey ? item[this.itemKey] : item;\n key = key.toString();\n var index = -1;\n if (this.ignoreCase) {\n index = key.toLowerCase().indexOf(this.inputEl.value.toLowerCase());\n } else {\n index = key.indexOf(this.inputEl.value);\n }\n if (this.matchStart ? index === 0 : index >= 0) {\n this.items.push(item);\n }\n if (this.items.length >= this.limit) {\n break\n }\n }\n },\n fetchItems: function fetchItems (value, debounce) {\n var this$1 = this;\n\n clearTimeout(this.timeoutID);\n if (value === '' && !this.openOnEmpty) {\n this.open = false;\n } else if (this.data) {\n this.prepareItems(this.data);\n this.open = this.hasEmptySlot() || Boolean(this.items.length);\n } else if (this.asyncSrc) {\n this.timeoutID = setTimeout(function () {\n this$1.$emit('loading');\n request(this$1.asyncSrc + encodeURIComponent(value))\n .then(function (data) {\n if (this$1.inputEl.matches(':focus')) {\n this$1.prepareItems(this$1.asyncKey ? data[this$1.asyncKey] : data, true);\n this$1.open = this$1.hasEmptySlot() || Boolean(this$1.items.length);\n }\n this$1.$emit('loaded');\n })\n .catch(function (err) {\n console.error(err);\n this$1.$emit('loaded-error');\n });\n }, debounce);\n } else if (this.asyncFunction) {\n var cb = function (data) {\n if (this$1.inputEl.matches(':focus')) {\n this$1.prepareItems(data, true);\n this$1.open = this$1.hasEmptySlot() || Boolean(this$1.items.length);\n }\n this$1.$emit('loaded');\n };\n this.timeoutID = setTimeout(function () {\n this$1.$emit('loading');\n this$1.asyncFunction(value, cb);\n }, debounce);\n }\n },\n inputChanged: function inputChanged () {\n var value = this.inputEl.value;\n this.fetchItems(value, this.debounce);\n this.$emit('input', this.forceSelect ? undefined : value);\n },\n inputFocused: function inputFocused () {\n if (this.openOnFocus) {\n var value = this.inputEl.value;\n this.fetchItems(value, 0);\n }\n },\n inputBlured: function inputBlured () {\n var this$1 = this;\n\n if (!this.dropdownMenuEl.matches(':hover')) {\n this.open = false;\n }\n if (this.inputEl && this.forceClear) {\n this.$nextTick(function () {\n if (typeof this$1.value === 'undefined') {\n this$1.inputEl.value = '';\n }\n });\n }\n },\n inputKeyPressed: function inputKeyPressed (event) {\n event.stopPropagation();\n if (this.open) {\n switch (event.keyCode) {\n case 13:\n if (this.activeIndex >= 0) {\n this.selectItem(this.items[this.activeIndex]);\n } else {\n this.open = false;\n }\n event.preventDefault();\n break\n case 27:\n this.open = false;\n break\n case 38:\n this.activeIndex = this.activeIndex > 0 ? this.activeIndex - 1 : 0;\n break\n case 40: {\n var maxIndex = this.items.length - 1;\n this.activeIndex = this.activeIndex < maxIndex ? this.activeIndex + 1 : maxIndex;\n break\n }\n }\n }\n },\n selectItem: function selectItem (item) {\n this.$emit('input', item);\n this.open = false;\n },\n highlight: function highlight (item) {\n var value = this.itemKey ? item[this.itemKey] : item;\n var inputValue = this.inputEl.value.replace(/[-[\\]{}()*+?.,\\\\^$|#\\s]/g, '\\\\$&');\n return value.replace(new RegExp((\"\" + inputValue), this.regexOptions), '$& ')\n }\n }\n};\n\n/* script */\nvar __vue_script__$d = script$d;\n\n/* template */\nvar __vue_render__$d = function() {\n var _vm = this;\n var _h = _vm.$createElement;\n var _c = _vm._self._c || _h;\n return _c(\n \"dropdown\",\n {\n ref: \"dropdown\",\n attrs: {\n tag: \"section\",\n \"append-to-body\": _vm.appendToBody,\n \"not-close-elements\": _vm.elements,\n \"position-element\": _vm.inputEl\n },\n model: {\n value: _vm.open,\n callback: function($$v) {\n _vm.open = $$v;\n },\n expression: \"open\"\n }\n },\n [\n _c(\n \"template\",\n { slot: \"dropdown\" },\n [\n _vm._t(\n \"item\",\n _vm._l(_vm.items, function(item, index) {\n return _c(\n \"li\",\n { class: { active: _vm.activeIndex === index } },\n [\n _c(\n \"a\",\n {\n attrs: { href: \"#\" },\n on: {\n click: function($event) {\n $event.preventDefault();\n return _vm.selectItem(item)\n }\n }\n },\n [\n _c(\"span\", {\n domProps: { innerHTML: _vm._s(_vm.highlight(item)) }\n })\n ]\n )\n ]\n )\n }),\n {\n items: _vm.items,\n activeIndex: _vm.activeIndex,\n select: _vm.selectItem,\n highlight: _vm.highlight\n }\n ),\n _vm._v(\" \"),\n !_vm.items || _vm.items.length === 0 ? _vm._t(\"empty\") : _vm._e()\n ],\n 2\n )\n ],\n 2\n )\n};\nvar __vue_staticRenderFns__$d = [];\n__vue_render__$d._withStripped = true;\n\n /* style */\n var __vue_inject_styles__$d = undefined;\n /* scoped */\n var __vue_scope_id__$d = undefined;\n /* module identifier */\n var __vue_module_identifier__$d = undefined;\n /* functional template */\n var __vue_is_functional_template__$d = false;\n /* style inject */\n \n /* style inject SSR */\n \n /* style inject shadow dom */\n \n\n \n var __vue_component__$d = /*#__PURE__*/normalizeComponent(\n { render: __vue_render__$d, staticRenderFns: __vue_staticRenderFns__$d },\n __vue_inject_styles__$d,\n __vue_script__$d,\n __vue_scope_id__$d,\n __vue_is_functional_template__$d,\n __vue_module_identifier__$d,\n false,\n undefined,\n undefined,\n undefined\n );\n\nvar ProgressBarStack = {\n functional: true,\n render: function render (h, ref) {\n var obj;\n\n var props = ref.props;\n var data = ref.data;\n return h(\n 'div',\n a(data, {\n class: ( obj = {\n 'progress-bar': true,\n 'progress-bar-striped': props.striped,\n active: props.striped && props.active\n }, obj[(\"progress-bar-\" + (props.type))] = Boolean(props.type), obj ),\n style: {\n minWidth: props.minWidth ? '2em' : null,\n width: ((props.value) + \"%\")\n },\n attrs: {\n role: 'progressbar',\n 'aria-valuemin': 0,\n 'aria-valuenow': props.value,\n 'aria-valuemax': 100\n }\n }),\n props.label ? (props.labelText ? props.labelText : ((props.value) + \"%\")) : null\n )\n },\n props: {\n value: {\n type: Number,\n required: true,\n validator: function validator (value) {\n return value >= 0 && value <= 100\n }\n },\n labelText: String,\n type: String,\n label: {\n type: Boolean,\n default: false\n },\n minWidth: {\n type: Boolean,\n default: false\n },\n striped: {\n type: Boolean,\n default: false\n },\n active: {\n type: Boolean,\n default: false\n }\n }\n};\n\nvar ProgressBar = {\n functional: true,\n render: function render (h, ref) {\n var props = ref.props;\n var data = ref.data;\n var children = ref.children;\n\n return h(\n 'div',\n a(data, { class: 'progress' }),\n children && children.length ? children : [h(ProgressBarStack, { props: props })]\n )\n }\n};\n\nvar BreadcrumbItem = {\n functional: true,\n mixins: [linkMixin],\n render: function render (h, ref) {\n var props = ref.props;\n var data = ref.data;\n var children = ref.children;\n\n var slot;\n if (props.active) {\n slot = children;\n } else if (props.to) {\n slot = [\n h('router-link', {\n props: {\n to: props.to,\n replace: props.replace,\n append: props.append,\n exact: props.exact\n }\n }, children)\n ];\n } else {\n slot = [\n h('a', {\n attrs: {\n href: props.href,\n target: props.target\n }\n }, children)\n ];\n }\n return h('li', a(data, { class: { active: props.active } }), slot)\n },\n props: {\n active: {\n type: Boolean,\n default: false\n }\n }\n};\n\nvar Breadcrumbs = {\n functional: true,\n render: function render (h, ref) {\n var props = ref.props;\n var data = ref.data;\n var children = ref.children;\n\n var slot = [];\n if (children && children.length) {\n slot = children;\n } else if (props.items) {\n slot = props.items.map(function (item, index) {\n return h(\n BreadcrumbItem,\n {\n key: hasOwnProperty(item, 'key') ? item.key : index,\n props: {\n active: hasOwnProperty(item, 'active') ? item.active : index === props.items.length - 1,\n href: item.href,\n target: item.target,\n to: item.to,\n replace: item.replace,\n append: item.append,\n exact: item.exact\n }\n },\n item.text\n )\n });\n }\n return h('ol', a(data, { class: 'breadcrumb' }), slot)\n },\n props: {\n items: Array\n }\n};\n\nvar BtnToolbar = {\n functional: true,\n render: function render (h, ref) {\n var children = ref.children;\n var data = ref.data;\n\n return h(\n 'div',\n a(data, {\n class: {\n 'btn-toolbar': true\n },\n attrs: {\n role: 'toolbar'\n }\n }),\n children\n )\n }\n};\n\nvar script$e = {\n mixins: [Local],\n components: { Dropdown: Dropdown },\n props: {\n value: {\n type: Array,\n required: true\n },\n options: {\n type: Array,\n required: true\n },\n labelKey: {\n type: String,\n default: 'label'\n },\n valueKey: {\n type: String,\n default: 'value'\n },\n limit: {\n type: Number,\n default: 0\n },\n size: String,\n placeholder: String,\n split: {\n type: String,\n default: ', '\n },\n disabled: {\n type: Boolean,\n default: false\n },\n appendToBody: {\n type: Boolean,\n default: false\n },\n block: {\n type: Boolean,\n default: false\n },\n collapseSelected: {\n type: Boolean,\n default: false\n },\n filterable: {\n type: Boolean,\n default: false\n },\n filterAutoFocus: {\n type: Boolean,\n default: true\n },\n filterFunction: Function,\n filterPlaceholder: String,\n selectedIcon: {\n type: String,\n default: 'glyphicon glyphicon-ok'\n },\n itemSelectedClass: String\n },\n data: function data () {\n return {\n showDropdown: false,\n els: [],\n filterInput: '',\n currentActive: -1\n }\n },\n computed: {\n containerStyles: function containerStyles () {\n return {\n width: this.block ? '100%' : ''\n }\n },\n filteredOptions: function filteredOptions () {\n var this$1 = this;\n\n if (this.filterable && this.filterInput) {\n if (this.filterFunction) {\n return this.filterFunction(this.filterInput)\n } else {\n var filterInput = this.filterInput.toLowerCase();\n return this.options.filter(function (v) { return (\n v[this$1.valueKey].toString().toLowerCase().indexOf(filterInput) >= 0 ||\n v[this$1.labelKey].toString().toLowerCase().indexOf(filterInput) >= 0\n ); })\n }\n } else {\n return this.options\n }\n },\n groupedOptions: function groupedOptions () {\n var this$1 = this;\n\n return this.filteredOptions\n .map(function (v) { return v.group; })\n .filter(onlyUnique)\n .map(function (v) { return ({\n options: this$1.filteredOptions.filter(function (option) { return option.group === v; }),\n $group: v\n }); })\n },\n flattenGroupedOptions: function flattenGroupedOptions () {\n var ref;\n\n return (ref = []).concat.apply(ref, this.groupedOptions.map(function (v) { return v.options; }))\n },\n selectClasses: function selectClasses () {\n var obj;\n\n return ( obj = {}, obj[(\"input-\" + (this.size))] = this.size, obj )\n },\n selectedIconClasses: function selectedIconClasses () {\n var obj;\n\n return ( obj = {}, obj[this.selectedIcon] = true, obj['pull-right'] = true, obj )\n },\n selectTextClasses: function selectTextClasses () {\n return {\n 'text-muted': this.value.length === 0\n }\n },\n labelValue: function labelValue () {\n var this$1 = this;\n\n var optionsByValue = this.options.map(function (v) { return v[this$1.valueKey]; });\n return this.value.map(function (v) {\n var index = optionsByValue.indexOf(v);\n return index >= 0 ? this$1.options[index][this$1.labelKey] : v\n })\n },\n selectedText: function selectedText () {\n if (this.value.length) {\n var labelValue = this.labelValue;\n if (this.collapseSelected) {\n var str = labelValue[0];\n str += labelValue.length > 1 ? ((this.split) + \"+\" + (labelValue.length - 1)) : '';\n return str\n } else {\n return labelValue.join(this.split)\n }\n } else {\n return this.placeholder || this.t('uiv.multiSelect.placeholder')\n }\n },\n customOptionsVisible: function customOptionsVisible () {\n return !!this.$slots.option || !!this.$scopedSlots.option\n }\n },\n watch: {\n showDropdown: function showDropdown (v) {\n var this$1 = this;\n\n // clear filter input when dropdown toggles\n this.filterInput = '';\n this.currentActive = -1;\n this.$emit('visible-change', v);\n if (v && this.filterable && this.filterAutoFocus) {\n this.$nextTick(function () {\n this$1.$refs.filterInput.focus();\n });\n }\n }\n },\n mounted: function mounted () {\n this.els = [this.$el];\n },\n methods: {\n goPrevOption: function goPrevOption () {\n if (!this.showDropdown) {\n return\n }\n this.currentActive > 0 ? this.currentActive-- : this.currentActive = this.flattenGroupedOptions.length - 1;\n },\n goNextOption: function goNextOption () {\n if (!this.showDropdown) {\n return\n }\n this.currentActive < this.flattenGroupedOptions.length - 1 ? this.currentActive++ : this.currentActive = 0;\n },\n selectOption: function selectOption () {\n var index = this.currentActive;\n var options = this.flattenGroupedOptions;\n if (!this.showDropdown) {\n this.showDropdown = true;\n } else if (index >= 0 && index < options.length) {\n this.toggle(options[index]);\n }\n },\n itemClasses: function itemClasses (item) {\n var result = {\n disabled: item.disabled,\n active: this.currentActive === this.flattenGroupedOptions.indexOf(item)\n };\n if (this.itemSelectedClass) {\n result[this.itemSelectedClass] = this.isItemSelected(item);\n }\n return result\n },\n isItemSelected: function isItemSelected (item) {\n return this.value.indexOf(item[this.valueKey]) >= 0\n },\n toggle: function toggle (item) {\n if (item.disabled) {\n return\n }\n var value = item[this.valueKey];\n var index = this.value.indexOf(value);\n if (this.limit === 1) {\n var newValue = index >= 0 ? [] : [value];\n this.$emit('input', newValue);\n this.$emit('change', newValue);\n } else {\n if (index >= 0) {\n var newVal = this.value.slice();\n newVal.splice(index, 1);\n this.$emit('input', newVal);\n this.$emit('change', newVal);\n } else if (this.limit === 0 || this.value.length < this.limit) {\n var newVal$1 = this.value.slice();\n newVal$1.push(value);\n this.$emit('input', newVal$1);\n this.$emit('change', newVal$1);\n } else {\n this.$emit('limit-exceed');\n }\n }\n },\n searchClicked: function searchClicked () {\n this.$emit('search', this.filterInput);\n }\n }\n};\n\n/* script */\nvar __vue_script__$e = script$e;\n\n/* template */\nvar __vue_render__$e = function() {\n var _vm = this;\n var _h = _vm.$createElement;\n var _c = _vm._self._c || _h;\n return _c(\n \"dropdown\",\n {\n ref: \"dropdown\",\n style: _vm.containerStyles,\n attrs: {\n \"not-close-elements\": _vm.els,\n \"append-to-body\": _vm.appendToBody,\n disabled: _vm.disabled\n },\n nativeOn: {\n keydown: function($event) {\n if (\n !$event.type.indexOf(\"key\") &&\n _vm._k($event.keyCode, \"esc\", 27, $event.key, [\"Esc\", \"Escape\"])\n ) {\n return null\n }\n _vm.showDropdown = false;\n }\n },\n model: {\n value: _vm.showDropdown,\n callback: function($$v) {\n _vm.showDropdown = $$v;\n },\n expression: \"showDropdown\"\n }\n },\n [\n _c(\n \"div\",\n {\n staticClass: \"form-control dropdown-toggle clearfix\",\n class: _vm.selectClasses,\n attrs: {\n disabled: _vm.disabled,\n tabindex: \"0\",\n \"data-role\": \"trigger\"\n },\n on: {\n focus: function($event) {\n return _vm.$emit(\"focus\", $event)\n },\n blur: function($event) {\n return _vm.$emit(\"blur\", $event)\n },\n keydown: [\n function($event) {\n if (\n !$event.type.indexOf(\"key\") &&\n _vm._k($event.keyCode, \"down\", 40, $event.key, [\n \"Down\",\n \"ArrowDown\"\n ])\n ) {\n return null\n }\n $event.preventDefault();\n $event.stopPropagation();\n return _vm.goNextOption($event)\n },\n function($event) {\n if (\n !$event.type.indexOf(\"key\") &&\n _vm._k($event.keyCode, \"up\", 38, $event.key, [\n \"Up\",\n \"ArrowUp\"\n ])\n ) {\n return null\n }\n $event.preventDefault();\n $event.stopPropagation();\n return _vm.goPrevOption($event)\n },\n function($event) {\n if (\n !$event.type.indexOf(\"key\") &&\n _vm._k($event.keyCode, \"enter\", 13, $event.key, \"Enter\")\n ) {\n return null\n }\n $event.preventDefault();\n $event.stopPropagation();\n return _vm.selectOption($event)\n }\n ]\n }\n },\n [\n _c(\n \"div\",\n {\n staticClass: \"pull-right\",\n staticStyle: {\n display: \"inline-block\",\n \"vertical-align\": \"middle\"\n }\n },\n [\n _c(\"span\", [_vm._v(\" \")]),\n _vm._v(\" \"),\n _c(\"span\", { staticClass: \"caret\" })\n ]\n ),\n _vm._v(\" \"),\n _c(\"div\", {\n class: _vm.selectTextClasses,\n staticStyle: {\n \"overflow-x\": \"hidden\",\n \"text-overflow\": \"ellipsis\",\n \"white-space\": \"nowrap\"\n },\n domProps: { textContent: _vm._s(_vm.selectedText) }\n })\n ]\n ),\n _vm._v(\" \"),\n _c(\n \"template\",\n { slot: \"dropdown\" },\n [\n _vm.filterable\n ? _c(\"li\", { staticStyle: { padding: \"4px 8px\" } }, [\n _c(\"input\", {\n directives: [\n {\n name: \"model\",\n rawName: \"v-model\",\n value: _vm.filterInput,\n expression: \"filterInput\"\n }\n ],\n ref: \"filterInput\",\n staticClass: \"form-control input-sm\",\n attrs: {\n \"aria-label\": \"Filter...\",\n type: \"text\",\n placeholder:\n _vm.filterPlaceholder ||\n _vm.t(\"uiv.multiSelect.filterPlaceholder\")\n },\n domProps: { value: _vm.filterInput },\n on: {\n keyup: function($event) {\n if (\n !$event.type.indexOf(\"key\") &&\n _vm._k($event.keyCode, \"enter\", 13, $event.key, \"Enter\")\n ) {\n return null\n }\n return _vm.searchClicked($event)\n },\n keydown: [\n function($event) {\n if (\n !$event.type.indexOf(\"key\") &&\n _vm._k($event.keyCode, \"down\", 40, $event.key, [\n \"Down\",\n \"ArrowDown\"\n ])\n ) {\n return null\n }\n $event.preventDefault();\n $event.stopPropagation();\n return _vm.goNextOption($event)\n },\n function($event) {\n if (\n !$event.type.indexOf(\"key\") &&\n _vm._k($event.keyCode, \"up\", 38, $event.key, [\n \"Up\",\n \"ArrowUp\"\n ])\n ) {\n return null\n }\n $event.preventDefault();\n $event.stopPropagation();\n return _vm.goPrevOption($event)\n },\n function($event) {\n if (\n !$event.type.indexOf(\"key\") &&\n _vm._k(\n $event.keyCode,\n \"enter\",\n 13,\n $event.key,\n \"Enter\"\n )\n ) {\n return null\n }\n $event.preventDefault();\n $event.stopPropagation();\n return _vm.selectOption($event)\n }\n ],\n input: function($event) {\n if ($event.target.composing) {\n return\n }\n _vm.filterInput = $event.target.value;\n }\n }\n })\n ])\n : _vm._e(),\n _vm._v(\" \"),\n _vm._l(_vm.groupedOptions, function(item) {\n return [\n item.$group\n ? _c(\"li\", {\n staticClass: \"dropdown-header\",\n domProps: { textContent: _vm._s(item.$group) }\n })\n : _vm._e(),\n _vm._v(\" \"),\n _vm._l(item.options, function(_item) {\n return [\n _c(\n \"li\",\n {\n class: _vm.itemClasses(_item),\n staticStyle: { outline: \"0\" },\n on: {\n keydown: [\n function($event) {\n if (\n !$event.type.indexOf(\"key\") &&\n _vm._k($event.keyCode, \"down\", 40, $event.key, [\n \"Down\",\n \"ArrowDown\"\n ])\n ) {\n return null\n }\n $event.preventDefault();\n $event.stopPropagation();\n return _vm.goNextOption($event)\n },\n function($event) {\n if (\n !$event.type.indexOf(\"key\") &&\n _vm._k($event.keyCode, \"up\", 38, $event.key, [\n \"Up\",\n \"ArrowUp\"\n ])\n ) {\n return null\n }\n $event.preventDefault();\n $event.stopPropagation();\n return _vm.goPrevOption($event)\n },\n function($event) {\n if (\n !$event.type.indexOf(\"key\") &&\n _vm._k(\n $event.keyCode,\n \"enter\",\n 13,\n $event.key,\n \"Enter\"\n )\n ) {\n return null\n }\n $event.preventDefault();\n $event.stopPropagation();\n return _vm.selectOption($event)\n }\n ],\n click: function($event) {\n $event.stopPropagation();\n return _vm.toggle(_item)\n },\n mouseenter: function($event) {\n _vm.currentActive = -1;\n }\n }\n },\n [\n _vm.customOptionsVisible\n ? _c(\n \"a\",\n {\n staticStyle: { outline: \"0\" },\n attrs: { role: \"button\" }\n },\n [\n _vm._t(\"option\", null, { item: _item }),\n _vm._v(\" \"),\n _vm.selectedIcon && _vm.isItemSelected(_item)\n ? _c(\"span\", { class: _vm.selectedIconClasses })\n : _vm._e()\n ],\n 2\n )\n : _vm.isItemSelected(_item)\n ? _c(\n \"a\",\n {\n staticStyle: { outline: \"0\" },\n attrs: { role: \"button\" }\n },\n [\n _c(\"b\", [_vm._v(_vm._s(_item[_vm.labelKey]))]),\n _vm._v(\" \"),\n _vm.selectedIcon\n ? _c(\"span\", { class: _vm.selectedIconClasses })\n : _vm._e()\n ]\n )\n : _c(\n \"a\",\n {\n staticStyle: { outline: \"0\" },\n attrs: { role: \"button\" }\n },\n [_c(\"span\", [_vm._v(_vm._s(_item[_vm.labelKey]))])]\n )\n ]\n )\n ]\n })\n ]\n })\n ],\n 2\n )\n ],\n 2\n )\n};\nvar __vue_staticRenderFns__$e = [];\n__vue_render__$e._withStripped = true;\n\n /* style */\n var __vue_inject_styles__$e = undefined;\n /* scoped */\n var __vue_scope_id__$e = undefined;\n /* module identifier */\n var __vue_module_identifier__$e = undefined;\n /* functional template */\n var __vue_is_functional_template__$e = false;\n /* style inject */\n \n /* style inject SSR */\n \n /* style inject shadow dom */\n \n\n \n var __vue_component__$e = /*#__PURE__*/normalizeComponent(\n { render: __vue_render__$e, staticRenderFns: __vue_staticRenderFns__$e },\n __vue_inject_styles__$e,\n __vue_script__$e,\n __vue_scope_id__$e,\n __vue_is_functional_template__$e,\n __vue_module_identifier__$e,\n false,\n undefined,\n undefined,\n undefined\n );\n\nvar script$f = {\n components: { Collapse: Collapse },\n props: {\n value: Boolean,\n fluid: {\n type: Boolean,\n default: true\n },\n fixedTop: Boolean,\n fixedBottom: Boolean,\n staticTop: Boolean,\n inverse: Boolean\n },\n data: function data () {\n return {\n show: false\n }\n },\n computed: {\n navClasses: function navClasses () {\n return {\n navbar: true,\n 'navbar-default': !this.inverse,\n 'navbar-inverse': this.inverse,\n 'navbar-static-top': this.staticTop,\n 'navbar-fixed-bottom': this.fixedBottom,\n 'navbar-fixed-top': this.fixedTop\n }\n }\n },\n mounted: function mounted () {\n this.show = !!this.value;\n },\n watch: {\n value: function value (v) {\n this.show = v;\n }\n },\n methods: {\n toggle: function toggle () {\n this.show = !this.show;\n this.$emit('input', this.show);\n }\n }\n};\n\n/* script */\nvar __vue_script__$f = script$f;\n\n/* template */\nvar __vue_render__$f = function() {\n var _vm = this;\n var _h = _vm.$createElement;\n var _c = _vm._self._c || _h;\n return _c(\"nav\", { class: _vm.navClasses }, [\n _c(\n \"div\",\n { class: _vm.fluid ? \"container-fluid\" : \"container\" },\n [\n _c(\n \"div\",\n { staticClass: \"navbar-header\" },\n [\n _vm._t(\"collapse-btn\", [\n _c(\n \"button\",\n {\n staticClass: \"navbar-toggle collapsed\",\n attrs: { type: \"button\" },\n on: { click: _vm.toggle }\n },\n [\n _c(\"span\", { staticClass: \"sr-only\" }, [\n _vm._v(\"Toggle navigation\")\n ]),\n _vm._v(\" \"),\n _c(\"span\", { staticClass: \"icon-bar\" }),\n _vm._v(\" \"),\n _c(\"span\", { staticClass: \"icon-bar\" }),\n _vm._v(\" \"),\n _c(\"span\", { staticClass: \"icon-bar\" })\n ]\n )\n ]),\n _vm._v(\" \"),\n _vm._t(\"brand\")\n ],\n 2\n ),\n _vm._v(\" \"),\n _vm._t(\"default\"),\n _vm._v(\" \"),\n _c(\n \"collapse\",\n {\n staticClass: \"navbar-collapse\",\n model: {\n value: _vm.show,\n callback: function($$v) {\n _vm.show = $$v;\n },\n expression: \"show\"\n }\n },\n [_vm._t(\"collapse\")],\n 2\n )\n ],\n 2\n )\n ])\n};\nvar __vue_staticRenderFns__$f = [];\n__vue_render__$f._withStripped = true;\n\n /* style */\n var __vue_inject_styles__$f = undefined;\n /* scoped */\n var __vue_scope_id__$f = undefined;\n /* module identifier */\n var __vue_module_identifier__$f = undefined;\n /* functional template */\n var __vue_is_functional_template__$f = false;\n /* style inject */\n \n /* style inject SSR */\n \n /* style inject shadow dom */\n \n\n \n var __vue_component__$f = /*#__PURE__*/normalizeComponent(\n { render: __vue_render__$f, staticRenderFns: __vue_staticRenderFns__$f },\n __vue_inject_styles__$f,\n __vue_script__$f,\n __vue_scope_id__$f,\n __vue_is_functional_template__$f,\n __vue_module_identifier__$f,\n false,\n undefined,\n undefined,\n undefined\n );\n\nvar NavbarNav = {\n functional: true,\n render: function render (h, ref) {\n var children = ref.children;\n var data = ref.data;\n var props = ref.props;\n\n return h(\n 'ul',\n a(data, {\n class: {\n nav: true,\n 'navbar-nav': true,\n 'navbar-left': props.left,\n 'navbar-right': props.right\n }\n }),\n children\n )\n },\n props: {\n left: Boolean,\n right: Boolean\n }\n};\n\nvar NavbarForm = {\n functional: true,\n render: function render (h, ref) {\n var children = ref.children;\n var data = ref.data;\n var props = ref.props;\n\n return h(\n 'form',\n a(data, {\n class: {\n 'navbar-form': true,\n 'navbar-left': props.left,\n 'navbar-right': props.right\n }\n }),\n children\n )\n },\n props: {\n left: Boolean,\n right: Boolean\n }\n};\n\nvar NavbarText = {\n functional: true,\n render: function render (h, ref) {\n var children = ref.children;\n var data = ref.data;\n var props = ref.props;\n\n return h(\n 'p',\n a(data, {\n class: {\n 'navbar-text': true,\n 'navbar-left': props.left,\n 'navbar-right': props.right\n }\n }),\n children\n )\n },\n props: {\n left: Boolean,\n right: Boolean\n }\n};\n\nvar components = /*#__PURE__*/Object.freeze({\n __proto__: null,\n Carousel: __vue_component__,\n Slide: __vue_component__$1,\n Collapse: Collapse,\n Dropdown: Dropdown,\n Modal: __vue_component__$2,\n Tab: __vue_component__$3,\n Tabs: __vue_component__$4,\n DatePicker: __vue_component__$8,\n Affix: __vue_component__$9,\n Alert: __vue_component__$a,\n Pagination: __vue_component__$b,\n Tooltip: Tooltip,\n Popover: Popover,\n TimePicker: __vue_component__$c,\n Typeahead: __vue_component__$d,\n ProgressBar: ProgressBar,\n ProgressBarStack: ProgressBarStack,\n Breadcrumbs: Breadcrumbs,\n BreadcrumbItem: BreadcrumbItem,\n Btn: Btn,\n BtnGroup: BtnGroup,\n BtnToolbar: BtnToolbar,\n MultiSelect: __vue_component__$e,\n Navbar: __vue_component__$f,\n NavbarNav: NavbarNav,\n NavbarForm: NavbarForm,\n NavbarText: NavbarText\n});\n\nvar INSTANCE = '_uiv_tooltip_instance';\n\nvar bind$1 = function (el, binding) {\n // console.log('bind')\n unbind$1(el);\n var Constructor = Vue.extend(Tooltip);\n var vm = new Constructor({\n propsData: {\n target: el,\n appendTo: binding.arg && '#' + binding.arg,\n text: typeof binding.value === 'string' ? (binding.value && binding.value.toString()) : (binding.value && binding.value.text && binding.value.text.toString()),\n viewport: binding.value && binding.value.viewport && binding.value.viewport.toString(),\n customClass: binding.value && binding.value.customClass && binding.value.customClass.toString(),\n showDelay: binding.value && binding.value.showDelay,\n hideDelay: binding.value && binding.value.hideDelay\n }\n });\n var options = [];\n for (var key in binding.modifiers) {\n if (hasOwnProperty(binding.modifiers, key) && binding.modifiers[key]) {\n options.push(key);\n }\n }\n options.forEach(function (option) {\n if (/(top)|(left)|(right)|(bottom)/.test(option)) {\n vm.placement = option;\n } else if (/(hover)|(focus)|(click)/.test(option)) {\n vm.trigger = option;\n } else if (/unenterable/.test(option)) {\n vm.enterable = false;\n }\n });\n vm.$mount();\n el[INSTANCE] = vm;\n};\n\nvar unbind$1 = function (el) {\n // console.log('unbind')\n var vm = el[INSTANCE];\n if (vm) {\n vm.$destroy();\n }\n delete el[INSTANCE];\n};\n\nvar update$1 = function (el, binding) {\n // console.log('update')\n if (binding.value !== binding.oldValue) {\n bind$1(el, binding);\n }\n};\n\nvar tooltip = { bind: bind$1, unbind: unbind$1, update: update$1 };\n\nvar INSTANCE$1 = '_uiv_popover_instance';\n\nvar bind$2 = function (el, binding) {\n // console.log('bind')\n unbind$2(el);\n var Constructor = Vue.extend(Popover);\n var vm = new Constructor({\n propsData: {\n target: el,\n appendTo: binding.arg && '#' + binding.arg,\n title: binding.value && binding.value.title && binding.value.title.toString(),\n content: binding.value && binding.value.content && binding.value.content.toString(),\n viewport: binding.value && binding.value.viewport && binding.value.viewport.toString(),\n customClass: binding.value && binding.value.customClass && binding.value.customClass.toString()\n }\n });\n var options = [];\n for (var key in binding.modifiers) {\n if (hasOwnProperty(binding.modifiers, key) && binding.modifiers[key]) {\n options.push(key);\n }\n }\n options.forEach(function (option) {\n if (/(top)|(left)|(right)|(bottom)/.test(option)) {\n vm.placement = option;\n } else if (/(hover)|(focus)|(click)/.test(option)) {\n vm.trigger = option;\n } else if (/unenterable/.test(option)) {\n vm.enterable = false;\n }\n });\n vm.$mount();\n el[INSTANCE$1] = vm;\n};\n\nvar unbind$2 = function (el) {\n // console.log('unbind')\n var vm = el[INSTANCE$1];\n if (vm) {\n vm.$destroy();\n }\n delete el[INSTANCE$1];\n};\n\nvar update$2 = function (el, binding) {\n // console.log('update')\n if (binding.value !== binding.oldValue) {\n bind$2(el, binding);\n }\n};\n\nvar popover = { bind: bind$2, unbind: unbind$2, update: update$2 };\n\nfunction ScrollSpy (element, target, options) {\n if ( target === void 0 ) target = 'body';\n if ( options === void 0 ) options = {};\n\n this.el = element;\n this.opts = assign({}, ScrollSpy.DEFAULTS, options);\n this.opts.target = target;\n if (target === 'body') {\n this.scrollElement = window;\n } else {\n this.scrollElement = document.querySelector((\"[id=\" + target + \"]\"));\n }\n this.selector = 'li > a';\n this.offsets = [];\n this.targets = [];\n this.activeTarget = null;\n this.scrollHeight = 0;\n if (this.scrollElement) {\n this.refresh();\n this.process();\n }\n}\n\nScrollSpy.DEFAULTS = {\n offset: 10,\n callback: function (ele) { return 0; }\n};\n\nScrollSpy.prototype.getScrollHeight = function () {\n return this.scrollElement.scrollHeight || Math.max(document.body.scrollHeight, document.documentElement.scrollHeight)\n};\n\nScrollSpy.prototype.refresh = function () {\n var this$1 = this;\n\n this.offsets = [];\n this.targets = [];\n this.scrollHeight = this.getScrollHeight();\n var list = nodeListToArray(this.el.querySelectorAll(this.selector));\n var isWindow = this.scrollElement === window;\n list\n .map(function (ele) {\n var href = ele.getAttribute('href');\n if (/^#./.test(href)) {\n var rootEl = isWindow ? document : this$1.scrollElement;\n var hrefEl = rootEl.querySelector((\"[id='\" + (href.slice(1)) + \"']\"));\n var offset = isWindow ? hrefEl.getBoundingClientRect().top : hrefEl.offsetTop;\n return [offset, href]\n } else {\n return null\n }\n })\n .filter(function (item) { return item; })\n .sort(function (a, b) { return a[0] - b[0]; })\n .forEach(function (item) {\n this$1.offsets.push(item[0]);\n this$1.targets.push(item[1]);\n });\n // console.log(this.offsets, this.targets)\n};\n\nScrollSpy.prototype.process = function () {\n var isWindow = this.scrollElement === window;\n var scrollTop = (isWindow ? window.pageYOffset : this.scrollElement.scrollTop) + this.opts.offset;\n var scrollHeight = this.getScrollHeight();\n var scrollElementHeight = isWindow ? getViewportSize().height : this.scrollElement.getBoundingClientRect().height;\n var maxScroll = this.opts.offset + scrollHeight - scrollElementHeight;\n var offsets = this.offsets;\n var targets = this.targets;\n var activeTarget = this.activeTarget;\n var i;\n if (this.scrollHeight !== scrollHeight) {\n this.refresh();\n }\n if (scrollTop >= maxScroll) {\n return activeTarget !== (i = targets[targets.length - 1]) && this.activate(i)\n }\n if (activeTarget && scrollTop < offsets[0]) {\n this.activeTarget = null;\n return this.clear()\n }\n for (i = offsets.length; i--;) {\n activeTarget !== targets[i] &&\n scrollTop >= offsets[i] &&\n (offsets[i + 1] === undefined || scrollTop < offsets[i + 1]) &&\n this.activate(targets[i]);\n }\n};\n\nScrollSpy.prototype.activate = function (target) {\n this.activeTarget = target;\n this.clear();\n var selector = this.selector +\n '[data-target=\"' + target + '\"],' +\n this.selector + '[href=\"' + target + '\"]';\n var activeCallback = this.opts.callback;\n var active = nodeListToArray(this.el.querySelectorAll(selector));\n active.forEach(function (ele) {\n getParents(ele, 'li')\n .forEach(function (item) {\n addClass(item, 'active');\n activeCallback(item);\n });\n if (getParents(ele, '.dropdown-menu').length) {\n addClass(getClosest(ele, 'li.dropdown'), 'active');\n }\n });\n};\n\nScrollSpy.prototype.clear = function () {\n var this$1 = this;\n\n var list = nodeListToArray(this.el.querySelectorAll(this.selector));\n list.forEach(function (ele) {\n getParents(ele, '.active', this$1.opts.target).forEach(function (item) {\n removeClass(item, 'active');\n });\n });\n};\n\nvar INSTANCE$2 = '_uiv_scrollspy_instance';\nvar events$1 = [EVENTS.RESIZE, EVENTS.SCROLL];\n\nvar bind$3 = function (el, binding) {\n // console.log('bind')\n unbind$3(el);\n};\n\nvar inserted = function (el, binding) {\n // console.log('inserted')\n var scrollSpy = new ScrollSpy(el, binding.arg, binding.value);\n if (scrollSpy.scrollElement) {\n scrollSpy.handler = function () {\n scrollSpy.process();\n };\n events$1.forEach(function (event) {\n on(scrollSpy.scrollElement, event, scrollSpy.handler);\n });\n }\n el[INSTANCE$2] = scrollSpy;\n};\n\nvar unbind$3 = function (el) {\n // console.log('unbind')\n var instance = el[INSTANCE$2];\n if (instance && instance.scrollElement) {\n events$1.forEach(function (event) {\n off(instance.scrollElement, event, instance.handler);\n });\n delete el[INSTANCE$2];\n }\n};\n\nvar update$3 = function (el, binding) {\n // console.log('update')\n var isArgUpdated = binding.arg !== binding.oldArg;\n var isValueUpdated = binding.value !== binding.oldValue;\n if (isArgUpdated || isValueUpdated) {\n bind$3(el);\n inserted(el, binding);\n }\n};\n\nvar scrollspy = { bind: bind$3, unbind: unbind$3, update: update$3, inserted: inserted };\n\nvar directives = /*#__PURE__*/Object.freeze({\n __proto__: null,\n tooltip: tooltip,\n popover: popover,\n scrollspy: scrollspy\n});\n\nvar TYPES = {\n ALERT: 0,\n CONFIRM: 1,\n PROMPT: 2\n};\n\nvar script$g = {\n mixins: [Local],\n components: { Modal: __vue_component__$2, Btn: Btn },\n props: {\n backdrop: null,\n title: String,\n content: String,\n html: {\n type: Boolean,\n default: false\n },\n okText: String,\n okType: {\n type: String,\n default: 'primary'\n },\n cancelText: String,\n cancelType: {\n type: String,\n default: 'default'\n },\n type: {\n type: Number,\n default: TYPES.ALERT\n },\n size: {\n type: String,\n default: 'sm'\n },\n cb: {\n type: Function,\n required: true\n },\n validator: {\n type: Function,\n default: function () { return null; }\n },\n customClass: null,\n defaultValue: String,\n inputType: {\n type: String,\n default: 'text'\n },\n autoFocus: {\n type: String,\n default: 'ok'\n },\n reverseButtons: {\n type: Boolean,\n default: false\n }\n },\n data: function data () {\n return {\n TYPES: TYPES,\n show: false,\n input: '',\n dirty: false\n }\n },\n mounted: function mounted () {\n if (this.defaultValue) {\n this.input = this.defaultValue;\n }\n },\n computed: {\n closeOnBackdropClick: function closeOnBackdropClick () {\n // use backdrop prop if exist\n // otherwise, only not available if render as alert\n return isExist(this.backdrop) ? Boolean(this.backdrop) : (this.type !== TYPES.ALERT)\n },\n inputError: function inputError () {\n return this.validator(this.input)\n },\n inputNotValid: function inputNotValid () {\n return this.dirty && this.inputError\n },\n okBtnText: function okBtnText () {\n return this.okText || this.t('uiv.modal.ok')\n },\n cancelBtnText: function cancelBtnText () {\n return this.cancelText || this.t('uiv.modal.cancel')\n }\n },\n methods: {\n toggle: function toggle (show, msg) {\n this.$refs.modal.toggle(show, msg);\n },\n validate: function validate () {\n this.dirty = true;\n if (!isExist(this.inputError)) {\n this.toggle(false, { value: this.input });\n }\n }\n }\n};\n\n/* script */\nvar __vue_script__$g = script$g;\n\n/* template */\nvar __vue_render__$g = function() {\n var _vm = this;\n var _h = _vm.$createElement;\n var _c = _vm._self._c || _h;\n return _c(\n \"modal\",\n {\n ref: \"modal\",\n class: _vm.customClass,\n attrs: {\n \"auto-focus\": \"\",\n size: _vm.size,\n title: _vm.title,\n header: !!_vm.title,\n backdrop: _vm.closeOnBackdropClick,\n \"cancel-text\": _vm.cancelText,\n \"ok-text\": _vm.okText\n },\n on: { hide: _vm.cb },\n model: {\n value: _vm.show,\n callback: function($$v) {\n _vm.show = $$v;\n },\n expression: \"show\"\n }\n },\n [\n _vm.html\n ? _c(\"div\", { domProps: { innerHTML: _vm._s(_vm.content) } })\n : _c(\"p\", [_vm._v(_vm._s(_vm.content))]),\n _vm._v(\" \"),\n _vm.type === _vm.TYPES.PROMPT\n ? _c(\"div\", [\n _c(\n \"div\",\n {\n staticClass: \"form-group\",\n class: { \"has-error\": _vm.inputNotValid }\n },\n [\n _vm.inputType === \"checkbox\"\n ? _c(\"input\", {\n directives: [\n {\n name: \"model\",\n rawName: \"v-model\",\n value: _vm.input,\n expression: \"input\"\n }\n ],\n ref: \"input\",\n staticClass: \"form-control\",\n attrs: {\n required: \"\",\n \"data-action\": \"auto-focus\",\n type: \"checkbox\"\n },\n domProps: {\n checked: Array.isArray(_vm.input)\n ? _vm._i(_vm.input, null) > -1\n : _vm.input\n },\n on: {\n change: [\n function($event) {\n var $$a = _vm.input,\n $$el = $event.target,\n $$c = $$el.checked ? true : false;\n if (Array.isArray($$a)) {\n var $$v = null,\n $$i = _vm._i($$a, $$v);\n if ($$el.checked) {\n $$i < 0 && (_vm.input = $$a.concat([$$v]));\n } else {\n $$i > -1 &&\n (_vm.input = $$a\n .slice(0, $$i)\n .concat($$a.slice($$i + 1)));\n }\n } else {\n _vm.input = $$c;\n }\n },\n function($event) {\n _vm.dirty = true;\n }\n ],\n keyup: function($event) {\n if (\n !$event.type.indexOf(\"key\") &&\n _vm._k(\n $event.keyCode,\n \"enter\",\n 13,\n $event.key,\n \"Enter\"\n )\n ) {\n return null\n }\n return _vm.validate($event)\n }\n }\n })\n : _vm.inputType === \"radio\"\n ? _c(\"input\", {\n directives: [\n {\n name: \"model\",\n rawName: \"v-model\",\n value: _vm.input,\n expression: \"input\"\n }\n ],\n ref: \"input\",\n staticClass: \"form-control\",\n attrs: {\n required: \"\",\n \"data-action\": \"auto-focus\",\n type: \"radio\"\n },\n domProps: { checked: _vm._q(_vm.input, null) },\n on: {\n change: [\n function($event) {\n _vm.input = null;\n },\n function($event) {\n _vm.dirty = true;\n }\n ],\n keyup: function($event) {\n if (\n !$event.type.indexOf(\"key\") &&\n _vm._k(\n $event.keyCode,\n \"enter\",\n 13,\n $event.key,\n \"Enter\"\n )\n ) {\n return null\n }\n return _vm.validate($event)\n }\n }\n })\n : _c(\"input\", {\n directives: [\n {\n name: \"model\",\n rawName: \"v-model\",\n value: _vm.input,\n expression: \"input\"\n }\n ],\n ref: \"input\",\n staticClass: \"form-control\",\n attrs: {\n required: \"\",\n \"data-action\": \"auto-focus\",\n type: _vm.inputType\n },\n domProps: { value: _vm.input },\n on: {\n change: function($event) {\n _vm.dirty = true;\n },\n keyup: function($event) {\n if (\n !$event.type.indexOf(\"key\") &&\n _vm._k(\n $event.keyCode,\n \"enter\",\n 13,\n $event.key,\n \"Enter\"\n )\n ) {\n return null\n }\n return _vm.validate($event)\n },\n input: function($event) {\n if ($event.target.composing) {\n return\n }\n _vm.input = $event.target.value;\n }\n }\n }),\n _vm._v(\" \"),\n _c(\n \"span\",\n {\n directives: [\n {\n name: \"show\",\n rawName: \"v-show\",\n value: _vm.inputNotValid,\n expression: \"inputNotValid\"\n }\n ],\n staticClass: \"help-block\"\n },\n [_vm._v(_vm._s(_vm.inputError))]\n )\n ]\n )\n ])\n : _vm._e(),\n _vm._v(\" \"),\n _vm.type === _vm.TYPES.ALERT\n ? _c(\n \"template\",\n { slot: \"footer\" },\n [\n _c(\"btn\", {\n attrs: {\n type: _vm.okType,\n \"data-action\": _vm.autoFocus === \"ok\" ? \"auto-focus\" : \"\"\n },\n domProps: { textContent: _vm._s(_vm.okBtnText) },\n on: {\n click: function($event) {\n return _vm.toggle(false, \"ok\")\n }\n }\n })\n ],\n 1\n )\n : _c(\n \"template\",\n { slot: \"footer\" },\n [\n _vm.reverseButtons\n ? [\n _vm.type === _vm.TYPES.CONFIRM\n ? _c(\"btn\", {\n attrs: {\n type: _vm.okType,\n \"data-action\":\n _vm.autoFocus === \"ok\" ? \"auto-focus\" : \"\"\n },\n domProps: { textContent: _vm._s(_vm.okBtnText) },\n on: {\n click: function($event) {\n return _vm.toggle(false, \"ok\")\n }\n }\n })\n : _c(\"btn\", {\n attrs: { type: _vm.okType },\n domProps: { textContent: _vm._s(_vm.okBtnText) },\n on: { click: _vm.validate }\n }),\n _vm._v(\" \"),\n _c(\"btn\", {\n attrs: {\n type: _vm.cancelType,\n \"data-action\":\n _vm.autoFocus === \"cancel\" ? \"auto-focus\" : \"\"\n },\n domProps: { textContent: _vm._s(_vm.cancelBtnText) },\n on: {\n click: function($event) {\n return _vm.toggle(false, \"cancel\")\n }\n }\n })\n ]\n : [\n _c(\"btn\", {\n attrs: {\n type: _vm.cancelType,\n \"data-action\":\n _vm.autoFocus === \"cancel\" ? \"auto-focus\" : \"\"\n },\n domProps: { textContent: _vm._s(_vm.cancelBtnText) },\n on: {\n click: function($event) {\n return _vm.toggle(false, \"cancel\")\n }\n }\n }),\n _vm._v(\" \"),\n _vm.type === _vm.TYPES.CONFIRM\n ? _c(\"btn\", {\n attrs: {\n type: _vm.okType,\n \"data-action\":\n _vm.autoFocus === \"ok\" ? \"auto-focus\" : \"\"\n },\n domProps: { textContent: _vm._s(_vm.okBtnText) },\n on: {\n click: function($event) {\n return _vm.toggle(false, \"ok\")\n }\n }\n })\n : _c(\"btn\", {\n attrs: { type: _vm.okType },\n domProps: { textContent: _vm._s(_vm.okBtnText) },\n on: { click: _vm.validate }\n })\n ]\n ],\n 2\n )\n ],\n 2\n )\n};\nvar __vue_staticRenderFns__$g = [];\n__vue_render__$g._withStripped = true;\n\n /* style */\n var __vue_inject_styles__$g = undefined;\n /* scoped */\n var __vue_scope_id__$g = undefined;\n /* module identifier */\n var __vue_module_identifier__$g = undefined;\n /* functional template */\n var __vue_is_functional_template__$g = false;\n /* style inject */\n \n /* style inject SSR */\n \n /* style inject shadow dom */\n \n\n \n var __vue_component__$g = /*#__PURE__*/normalizeComponent(\n { render: __vue_render__$g, staticRenderFns: __vue_staticRenderFns__$g },\n __vue_inject_styles__$g,\n __vue_script__$g,\n __vue_scope_id__$g,\n __vue_is_functional_template__$g,\n __vue_module_identifier__$g,\n false,\n undefined,\n undefined,\n undefined\n );\n\nvar queue = [];\n\nvar destroy = function (instance) {\n // console.log('destroyModal')\n removeFromDom(instance.$el);\n instance.$destroy();\n spliceIfExist(queue, instance);\n};\n\n// handel cancel or ok for confirm & prompt\nvar shallResolve = function (type, msg) {\n if (type === TYPES.CONFIRM) {\n // is confirm\n return msg === 'ok'\n } else {\n // is prompt\n return isExist(msg) && isString(msg.value)\n }\n};\n\nvar init = function (type, options, cb, resolve, reject) {\n if ( resolve === void 0 ) resolve = null;\n if ( reject === void 0 ) reject = null;\n\n var i18n = this.$i18n;\n var instance = new Vue({\n extends: __vue_component__$g,\n i18n: i18n,\n propsData: assign({}, { type: type }, options, {\n cb: function cb$1 (msg) {\n destroy(instance);\n if (isFunction(cb)) {\n if (type === TYPES.CONFIRM) {\n shallResolve(type, msg) ? cb(null, msg) : cb(msg);\n } else if (type === TYPES.PROMPT) {\n shallResolve(type, msg) ? cb(null, msg.value) : cb(msg);\n } else {\n cb(msg);\n }\n } else if (resolve && reject) {\n if (type === TYPES.CONFIRM) {\n shallResolve(type, msg) ? resolve(msg) : reject(msg);\n } else if (type === TYPES.PROMPT) {\n shallResolve(type, msg) ? resolve(msg.value) : reject(msg);\n } else {\n resolve(msg);\n }\n }\n }\n })\n });\n instance.$mount();\n document.body.appendChild(instance.$el);\n instance.show = true;\n queue.push(instance);\n};\n\nvar initModal = function (type, options, cb) {\n var this$1 = this;\n if ( options === void 0 ) options = {};\n\n if (isPromiseSupported()) {\n return new Promise(function (resolve, reject) {\n init.apply(this$1, [type, options, cb, resolve, reject]);\n })\n } else {\n init.apply(this, [type, options, cb]);\n }\n};\n\nvar alert = function (options, cb) {\n return initModal.apply(this, [TYPES.ALERT, options, cb])\n};\n\nvar confirm = function (options, cb) {\n return initModal.apply(this, [TYPES.CONFIRM, options, cb])\n};\n\nvar prompt = function (options, cb) {\n return initModal.apply(this, [TYPES.PROMPT, options, cb])\n};\n\nvar MessageBox = { alert: alert, confirm: confirm, prompt: prompt };\n\nvar TYPES$1 = {\n SUCCESS: 'success',\n INFO: 'info',\n DANGER: 'danger',\n WARNING: 'warning'\n};\n\nvar PLACEMENTS$1 = {\n TOP_LEFT: 'top-left',\n TOP_RIGHT: 'top-right',\n BOTTOM_LEFT: 'bottom-left',\n BOTTOM_RIGHT: 'bottom-right'\n};\n\nvar IN_CLASS$1 = 'in';\nvar ICON = 'glyphicon';\nvar WIDTH = 300;\nvar TRANSITION_DURATION = 300;\n\nvar script$h = {\n components: { Alert: __vue_component__$a },\n props: {\n title: String,\n content: String,\n html: {\n type: Boolean,\n default: false\n },\n duration: {\n type: Number,\n default: 5000\n },\n dismissible: {\n type: Boolean,\n default: true\n },\n type: String,\n placement: String,\n icon: String,\n customClass: null,\n cb: {\n type: Function,\n required: true\n },\n queue: {\n type: Array,\n required: true\n },\n offsetY: {\n type: Number,\n default: 15\n },\n offsetX: {\n type: Number,\n default: 15\n },\n offset: {\n type: Number,\n default: 15\n }\n },\n data: function data () {\n return {\n height: 0,\n top: 0,\n horizontal: this.placement === PLACEMENTS$1.TOP_LEFT || this.placement === PLACEMENTS$1.BOTTOM_LEFT ? 'left' : 'right',\n vertical: this.placement === PLACEMENTS$1.TOP_LEFT || this.placement === PLACEMENTS$1.TOP_RIGHT ? 'top' : 'bottom'\n }\n },\n created: function created () {\n // get prev notifications total height in the queue\n this.top = this.getTotalHeightOfQueue(this.queue);\n },\n mounted: function mounted () {\n var this$1 = this;\n\n var el = this.$el;\n el.style[this.vertical] = this.top + 'px';\n this.$nextTick(function () {\n el.style[this$1.horizontal] = \"-\" + WIDTH + \"px\";\n this$1.height = el.offsetHeight;\n el.style[this$1.horizontal] = (this$1.offsetX) + \"px\";\n addClass(el, IN_CLASS$1);\n });\n },\n computed: {\n styles: function styles () {\n var obj;\n\n var queue = this.queue;\n var thisIndex = queue.indexOf(this);\n return ( obj = {\n position: 'fixed'\n }, obj[this.vertical] = ((this.getTotalHeightOfQueue(queue, thisIndex)) + \"px\"), obj.width = (WIDTH + \"px\"), obj.transition = (\"all \" + (TRANSITION_DURATION / 1000) + \"s ease-in-out\"), obj )\n },\n icons: function icons () {\n if (isString(this.icon)) {\n return this.icon\n }\n switch (this.type) {\n case TYPES$1.INFO:\n case TYPES$1.WARNING:\n return (ICON + \" \" + ICON + \"-info-sign\")\n case TYPES$1.SUCCESS:\n return (ICON + \" \" + ICON + \"-ok-sign\")\n case TYPES$1.DANGER:\n return (ICON + \" \" + ICON + \"-remove-sign\")\n default:\n return null\n }\n }\n },\n methods: {\n getTotalHeightOfQueue: function getTotalHeightOfQueue (queue, lastIndex) {\n if ( lastIndex === void 0 ) lastIndex = queue.length;\n\n var totalHeight = this.offsetY;\n for (var i = 0; i < lastIndex; i++) {\n totalHeight += queue[i].height + this.offset;\n }\n return totalHeight\n },\n onDismissed: function onDismissed () {\n removeClass(this.$el, IN_CLASS$1);\n setTimeout(this.cb, TRANSITION_DURATION);\n }\n }\n};\n\n/* script */\nvar __vue_script__$h = script$h;\n\n/* template */\nvar __vue_render__$h = function() {\n var _vm = this;\n var _h = _vm.$createElement;\n var _c = _vm._self._c || _h;\n return _c(\n \"alert\",\n {\n staticClass: \"fade\",\n class: _vm.customClass,\n style: _vm.styles,\n attrs: {\n type: _vm.type,\n duration: _vm.duration,\n dismissible: _vm.dismissible\n },\n on: { dismissed: _vm.onDismissed }\n },\n [\n _c(\"div\", { staticClass: \"media\", staticStyle: { margin: \"0\" } }, [\n _vm.icons\n ? _c(\"div\", { staticClass: \"media-left\" }, [\n _c(\"span\", {\n class: _vm.icons,\n staticStyle: { \"font-size\": \"1.5em\" }\n })\n ])\n : _vm._e(),\n _vm._v(\" \"),\n _c(\"div\", { staticClass: \"media-body\" }, [\n _vm.title\n ? _c(\"div\", { staticClass: \"media-heading\" }, [\n _c(\"b\", [_vm._v(_vm._s(_vm.title))])\n ])\n : _vm._e(),\n _vm._v(\" \"),\n _vm.html\n ? _c(\"div\", { domProps: { innerHTML: _vm._s(_vm.content) } })\n : _c(\"div\", [_vm._v(_vm._s(_vm.content))])\n ])\n ])\n ]\n )\n};\nvar __vue_staticRenderFns__$h = [];\n__vue_render__$h._withStripped = true;\n\n /* style */\n var __vue_inject_styles__$h = undefined;\n /* scoped */\n var __vue_scope_id__$h = undefined;\n /* module identifier */\n var __vue_module_identifier__$h = undefined;\n /* functional template */\n var __vue_is_functional_template__$h = false;\n /* style inject */\n \n /* style inject SSR */\n \n /* style inject shadow dom */\n \n\n \n var __vue_component__$h = /*#__PURE__*/normalizeComponent(\n { render: __vue_render__$h, staticRenderFns: __vue_staticRenderFns__$h },\n __vue_inject_styles__$h,\n __vue_script__$h,\n __vue_scope_id__$h,\n __vue_is_functional_template__$h,\n __vue_module_identifier__$h,\n false,\n undefined,\n undefined,\n undefined\n );\n\nvar queues = {};\nqueues[PLACEMENTS$1.TOP_LEFT] = [];\nqueues[PLACEMENTS$1.TOP_RIGHT] = [];\nqueues[PLACEMENTS$1.BOTTOM_LEFT] = [];\nqueues[PLACEMENTS$1.BOTTOM_RIGHT] = [];\n\nvar destroy$1 = function (queue, instance) {\n // console.log('destroyNotification')\n removeFromDom(instance.$el);\n instance.$destroy();\n spliceIfExist(queue, instance);\n};\n\nvar init$1 = function (options, cb, resolve, reject) {\n if ( resolve === void 0 ) resolve = null;\n if ( reject === void 0 ) reject = null;\n\n var placement = options.placement;\n var queue = queues[placement];\n // check if placement is valid\n if (!isExist(queue)) {\n return\n }\n /* istanbul ignore else */\n // `error` alias of `danger`\n if (options.type === 'error') {\n options.type = 'danger';\n }\n var instance = new Vue({\n extends: __vue_component__$h,\n propsData: assign({}, { queue: queue, placement: placement }, options, {\n cb: function cb$1 (msg) {\n destroy$1(queue, instance);\n if (isFunction(cb)) {\n cb(msg);\n } else if (resolve && reject) {\n resolve(msg);\n }\n }\n })\n });\n instance.$mount();\n document.body.appendChild(instance.$el);\n queue.push(instance);\n};\n\nvar _notify = function (options, cb) {\n if ( options === void 0 ) options = {};\n\n // simplify usage: pass string as option.content\n if (isString(options)) {\n options = {\n content: options\n };\n }\n // set default placement as top-right\n if (!isExist(options.placement)) {\n options.placement = PLACEMENTS$1.TOP_RIGHT;\n }\n if (isPromiseSupported()) {\n return new Promise(function (resolve, reject) {\n init$1(options, cb, resolve, reject);\n })\n } else {\n init$1(options, cb);\n }\n};\n\nfunction _notify2 (type, args) {\n if (isString(args)) {\n _notify({\n content: args,\n type: type\n });\n } else {\n _notify(assign({}, args, {\n type: type\n }));\n }\n}\n\nvar notify = Object.defineProperties(_notify, {\n success: {\n configurable: false,\n writable: false,\n value: function value (args) {\n _notify2('success', args);\n }\n },\n info: {\n configurable: false,\n writable: false,\n value: function value (args) {\n _notify2('info', args);\n }\n },\n warning: {\n configurable: false,\n writable: false,\n value: function value (args) {\n _notify2('warning', args);\n }\n },\n danger: {\n configurable: false,\n writable: false,\n value: function value (args) {\n _notify2('danger', args);\n }\n },\n error: {\n configurable: false,\n writable: false,\n value: function value (args) {\n _notify2('danger', args);\n }\n },\n dismissAll: {\n configurable: false,\n writable: false,\n value: function value () {\n for (var key in queues) {\n /* istanbul ignore else */\n if (hasOwnProperty(queues, key)) {\n queues[key].forEach(function (instance) {\n instance.onDismissed();\n });\n }\n }\n }\n }\n});\n\nvar Notification = { notify: notify };\n\nvar services = /*#__PURE__*/Object.freeze({\n __proto__: null,\n MessageBox: MessageBox,\n Notification: Notification\n});\n\nvar install = function (Vue, options) {\n if ( options === void 0 ) options = {};\n\n // Setup language, en-US for default\n locale.use(options.locale);\n locale.i18n(options.i18n);\n // Register components\n Object.keys(components).forEach(function (key) {\n var _key = options.prefix ? options.prefix + key : key;\n Vue.component(_key, components[key]);\n });\n // Register directives\n Object.keys(directives).forEach(function (key) {\n var _key = options.prefix ? options.prefix + '-' + key : key;\n Vue.directive(_key, directives[key]);\n });\n // Register services\n Object.keys(services).forEach(function (key) {\n var service = services[key];\n Object.keys(service).forEach(function (serviceKey) {\n var _key = options.prefix ? options.prefix + '_' + serviceKey : serviceKey;\n Vue.prototype['$' + _key] = service[serviceKey];\n });\n });\n};\n\nexport { __vue_component__$9 as Affix, __vue_component__$a as Alert, BreadcrumbItem, Breadcrumbs, Btn, BtnGroup, BtnToolbar, __vue_component__ as Carousel, Collapse, __vue_component__$8 as DatePicker, Dropdown, MessageBox, __vue_component__$2 as Modal, __vue_component__$e as MultiSelect, __vue_component__$f as Navbar, NavbarForm, NavbarNav, NavbarText, Notification, __vue_component__$b as Pagination, Popover, ProgressBar, ProgressBarStack, __vue_component__$1 as Slide, __vue_component__$3 as Tab, __vue_component__$4 as Tabs, __vue_component__$c as TimePicker, Tooltip, __vue_component__$d as Typeahead, install, popover, scrollspy, tooltip };\n//# sourceMappingURL=uiv.esm.js.map\n","/*\n * bootstrap.js\n * Copyright (c) 2020 james@firefly-iii.org\n *\n * This file is part of Firefly III (https://github.com/firefly-iii).\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see .\n */\n\n// // imports\nimport Vue from 'vue';\nimport VueI18n from 'vue-i18n'\nimport * as uiv from 'uiv';\n\n// export jquery for others scripts to use\nwindow.$ = window.jQuery = require('jquery');\n\n// axios\nwindow.axios = require('axios');\nwindow.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';\n\n// CSRF\nlet token = document.head.querySelector('meta[name=\"csrf-token\"]');\n\nif (token) {\n window.axios.defaults.headers.common['X-CSRF-TOKEN'] = token.content;\n} else {\n console.error('CSRF token not found: https://laravel.com/docs/csrf#csrf-x-csrf-token');\n}\n\n// locale\nlet localeToken = document.head.querySelector('meta[name=\"locale\"]');\n\nif (localeToken) {\n localStorage.locale = localeToken.content;\n} else {\n localStorage.locale = 'en_US';\n}\n\n// admin stuff\nrequire('jquery-ui');\nrequire('bootstrap'); // bootstrap CSS?\n\nrequire('./dist/js/adminlte');\nrequire('overlayscrollbars');\n\n\n// vue\nwindow.vuei18n = VueI18n;\nwindow.uiv = uiv;\nVue.use(vuei18n);\nVue.use(uiv);\nwindow.Vue = Vue;","/*!\n * jQuery JavaScript Library v3.5.1\n * https://jquery.com/\n *\n * Includes Sizzle.js\n * https://sizzlejs.com/\n *\n * Copyright JS Foundation and other contributors\n * Released under the MIT license\n * https://jquery.org/license\n *\n * Date: 2020-05-04T22:49Z\n */\n( function( global, factory ) {\n\n\t\"use strict\";\n\n\tif ( typeof module === \"object\" && typeof module.exports === \"object\" ) {\n\n\t\t// For CommonJS and CommonJS-like environments where a proper `window`\n\t\t// is present, execute the factory and get jQuery.\n\t\t// For environments that do not have a `window` with a `document`\n\t\t// (such as Node.js), expose a factory as module.exports.\n\t\t// This accentuates the need for the creation of a real `window`.\n\t\t// e.g. var jQuery = require(\"jquery\")(window);\n\t\t// See ticket #14549 for more info.\n\t\tmodule.exports = global.document ?\n\t\t\tfactory( global, true ) :\n\t\t\tfunction( w ) {\n\t\t\t\tif ( !w.document ) {\n\t\t\t\t\tthrow new Error( \"jQuery requires a window with a document\" );\n\t\t\t\t}\n\t\t\t\treturn factory( w );\n\t\t\t};\n\t} else {\n\t\tfactory( global );\n\t}\n\n// Pass this if window is not defined yet\n} )( typeof window !== \"undefined\" ? window : this, function( window, noGlobal ) {\n\n// Edge <= 12 - 13+, Firefox <=18 - 45+, IE 10 - 11, Safari 5.1 - 9+, iOS 6 - 9.1\n// throw exceptions when non-strict code (e.g., ASP.NET 4.5) accesses strict mode\n// arguments.callee.caller (trac-13335). But as of jQuery 3.0 (2016), strict mode should be common\n// enough that all such attempts are guarded in a try block.\n\"use strict\";\n\nvar arr = [];\n\nvar getProto = Object.getPrototypeOf;\n\nvar slice = arr.slice;\n\nvar flat = arr.flat ? function( array ) {\n\treturn arr.flat.call( array );\n} : function( array ) {\n\treturn arr.concat.apply( [], array );\n};\n\n\nvar push = arr.push;\n\nvar indexOf = arr.indexOf;\n\nvar class2type = {};\n\nvar toString = class2type.toString;\n\nvar hasOwn = class2type.hasOwnProperty;\n\nvar fnToString = hasOwn.toString;\n\nvar ObjectFunctionString = fnToString.call( Object );\n\nvar support = {};\n\nvar isFunction = function isFunction( obj ) {\n\n // Support: Chrome <=57, Firefox <=52\n // In some browsers, typeof returns \"function\" for HTML elements\n // (i.e., `typeof document.createElement( \"object\" ) === \"function\"`).\n // We don't want to classify *any* DOM node as a function.\n return typeof obj === \"function\" && typeof obj.nodeType !== \"number\";\n };\n\n\nvar isWindow = function isWindow( obj ) {\n\t\treturn obj != null && obj === obj.window;\n\t};\n\n\nvar document = window.document;\n\n\n\n\tvar preservedScriptAttributes = {\n\t\ttype: true,\n\t\tsrc: true,\n\t\tnonce: true,\n\t\tnoModule: true\n\t};\n\n\tfunction DOMEval( code, node, doc ) {\n\t\tdoc = doc || document;\n\n\t\tvar i, val,\n\t\t\tscript = doc.createElement( \"script\" );\n\n\t\tscript.text = code;\n\t\tif ( node ) {\n\t\t\tfor ( i in preservedScriptAttributes ) {\n\n\t\t\t\t// Support: Firefox 64+, Edge 18+\n\t\t\t\t// Some browsers don't support the \"nonce\" property on scripts.\n\t\t\t\t// On the other hand, just using `getAttribute` is not enough as\n\t\t\t\t// the `nonce` attribute is reset to an empty string whenever it\n\t\t\t\t// becomes browsing-context connected.\n\t\t\t\t// See https://github.com/whatwg/html/issues/2369\n\t\t\t\t// See https://html.spec.whatwg.org/#nonce-attributes\n\t\t\t\t// The `node.getAttribute` check was added for the sake of\n\t\t\t\t// `jQuery.globalEval` so that it can fake a nonce-containing node\n\t\t\t\t// via an object.\n\t\t\t\tval = node[ i ] || node.getAttribute && node.getAttribute( i );\n\t\t\t\tif ( val ) {\n\t\t\t\t\tscript.setAttribute( i, val );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tdoc.head.appendChild( script ).parentNode.removeChild( script );\n\t}\n\n\nfunction toType( obj ) {\n\tif ( obj == null ) {\n\t\treturn obj + \"\";\n\t}\n\n\t// Support: Android <=2.3 only (functionish RegExp)\n\treturn typeof obj === \"object\" || typeof obj === \"function\" ?\n\t\tclass2type[ toString.call( obj ) ] || \"object\" :\n\t\ttypeof obj;\n}\n/* global Symbol */\n// Defining this global in .eslintrc.json would create a danger of using the global\n// unguarded in another place, it seems safer to define global only for this module\n\n\n\nvar\n\tversion = \"3.5.1\",\n\n\t// Define a local copy of jQuery\n\tjQuery = function( selector, context ) {\n\n\t\t// The jQuery object is actually just the init constructor 'enhanced'\n\t\t// Need init if jQuery is called (just allow error to be thrown if not included)\n\t\treturn new jQuery.fn.init( selector, context );\n\t};\n\njQuery.fn = jQuery.prototype = {\n\n\t// The current version of jQuery being used\n\tjquery: version,\n\n\tconstructor: jQuery,\n\n\t// The default length of a jQuery object is 0\n\tlength: 0,\n\n\ttoArray: function() {\n\t\treturn slice.call( this );\n\t},\n\n\t// Get the Nth element in the matched element set OR\n\t// Get the whole matched element set as a clean array\n\tget: function( num ) {\n\n\t\t// Return all the elements in a clean array\n\t\tif ( num == null ) {\n\t\t\treturn slice.call( this );\n\t\t}\n\n\t\t// Return just the one element from the set\n\t\treturn num < 0 ? this[ num + this.length ] : this[ num ];\n\t},\n\n\t// Take an array of elements and push it onto the stack\n\t// (returning the new matched element set)\n\tpushStack: function( elems ) {\n\n\t\t// Build a new jQuery matched element set\n\t\tvar ret = jQuery.merge( this.constructor(), elems );\n\n\t\t// Add the old object onto the stack (as a reference)\n\t\tret.prevObject = this;\n\n\t\t// Return the newly-formed element set\n\t\treturn ret;\n\t},\n\n\t// Execute a callback for every element in the matched set.\n\teach: function( callback ) {\n\t\treturn jQuery.each( this, callback );\n\t},\n\n\tmap: function( callback ) {\n\t\treturn this.pushStack( jQuery.map( this, function( elem, i ) {\n\t\t\treturn callback.call( elem, i, elem );\n\t\t} ) );\n\t},\n\n\tslice: function() {\n\t\treturn this.pushStack( slice.apply( this, arguments ) );\n\t},\n\n\tfirst: function() {\n\t\treturn this.eq( 0 );\n\t},\n\n\tlast: function() {\n\t\treturn this.eq( -1 );\n\t},\n\n\teven: function() {\n\t\treturn this.pushStack( jQuery.grep( this, function( _elem, i ) {\n\t\t\treturn ( i + 1 ) % 2;\n\t\t} ) );\n\t},\n\n\todd: function() {\n\t\treturn this.pushStack( jQuery.grep( this, function( _elem, i ) {\n\t\t\treturn i % 2;\n\t\t} ) );\n\t},\n\n\teq: function( i ) {\n\t\tvar len = this.length,\n\t\t\tj = +i + ( i < 0 ? len : 0 );\n\t\treturn this.pushStack( j >= 0 && j < len ? [ this[ j ] ] : [] );\n\t},\n\n\tend: function() {\n\t\treturn this.prevObject || this.constructor();\n\t},\n\n\t// For internal use only.\n\t// Behaves like an Array's method, not like a jQuery method.\n\tpush: push,\n\tsort: arr.sort,\n\tsplice: arr.splice\n};\n\njQuery.extend = jQuery.fn.extend = function() {\n\tvar options, name, src, copy, copyIsArray, clone,\n\t\ttarget = arguments[ 0 ] || {},\n\t\ti = 1,\n\t\tlength = arguments.length,\n\t\tdeep = false;\n\n\t// Handle a deep copy situation\n\tif ( typeof target === \"boolean\" ) {\n\t\tdeep = target;\n\n\t\t// Skip the boolean and the target\n\t\ttarget = arguments[ i ] || {};\n\t\ti++;\n\t}\n\n\t// Handle case when target is a string or something (possible in deep copy)\n\tif ( typeof target !== \"object\" && !isFunction( target ) ) {\n\t\ttarget = {};\n\t}\n\n\t// Extend jQuery itself if only one argument is passed\n\tif ( i === length ) {\n\t\ttarget = this;\n\t\ti--;\n\t}\n\n\tfor ( ; i < length; i++ ) {\n\n\t\t// Only deal with non-null/undefined values\n\t\tif ( ( options = arguments[ i ] ) != null ) {\n\n\t\t\t// Extend the base object\n\t\t\tfor ( name in options ) {\n\t\t\t\tcopy = options[ name ];\n\n\t\t\t\t// Prevent Object.prototype pollution\n\t\t\t\t// Prevent never-ending loop\n\t\t\t\tif ( name === \"__proto__\" || target === copy ) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t// Recurse if we're merging plain objects or arrays\n\t\t\t\tif ( deep && copy && ( jQuery.isPlainObject( copy ) ||\n\t\t\t\t\t( copyIsArray = Array.isArray( copy ) ) ) ) {\n\t\t\t\t\tsrc = target[ name ];\n\n\t\t\t\t\t// Ensure proper type for the source value\n\t\t\t\t\tif ( copyIsArray && !Array.isArray( src ) ) {\n\t\t\t\t\t\tclone = [];\n\t\t\t\t\t} else if ( !copyIsArray && !jQuery.isPlainObject( src ) ) {\n\t\t\t\t\t\tclone = {};\n\t\t\t\t\t} else {\n\t\t\t\t\t\tclone = src;\n\t\t\t\t\t}\n\t\t\t\t\tcopyIsArray = false;\n\n\t\t\t\t\t// Never move original objects, clone them\n\t\t\t\t\ttarget[ name ] = jQuery.extend( deep, clone, copy );\n\n\t\t\t\t// Don't bring in undefined values\n\t\t\t\t} else if ( copy !== undefined ) {\n\t\t\t\t\ttarget[ name ] = copy;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t// Return the modified object\n\treturn target;\n};\n\njQuery.extend( {\n\n\t// Unique for each copy of jQuery on the page\n\texpando: \"jQuery\" + ( version + Math.random() ).replace( /\\D/g, \"\" ),\n\n\t// Assume jQuery is ready without the ready module\n\tisReady: true,\n\n\terror: function( msg ) {\n\t\tthrow new Error( msg );\n\t},\n\n\tnoop: function() {},\n\n\tisPlainObject: function( obj ) {\n\t\tvar proto, Ctor;\n\n\t\t// Detect obvious negatives\n\t\t// Use toString instead of jQuery.type to catch host objects\n\t\tif ( !obj || toString.call( obj ) !== \"[object Object]\" ) {\n\t\t\treturn false;\n\t\t}\n\n\t\tproto = getProto( obj );\n\n\t\t// Objects with no prototype (e.g., `Object.create( null )`) are plain\n\t\tif ( !proto ) {\n\t\t\treturn true;\n\t\t}\n\n\t\t// Objects with prototype are plain iff they were constructed by a global Object function\n\t\tCtor = hasOwn.call( proto, \"constructor\" ) && proto.constructor;\n\t\treturn typeof Ctor === \"function\" && fnToString.call( Ctor ) === ObjectFunctionString;\n\t},\n\n\tisEmptyObject: function( obj ) {\n\t\tvar name;\n\n\t\tfor ( name in obj ) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t},\n\n\t// Evaluates a script in a provided context; falls back to the global one\n\t// if not specified.\n\tglobalEval: function( code, options, doc ) {\n\t\tDOMEval( code, { nonce: options && options.nonce }, doc );\n\t},\n\n\teach: function( obj, callback ) {\n\t\tvar length, i = 0;\n\n\t\tif ( isArrayLike( obj ) ) {\n\t\t\tlength = obj.length;\n\t\t\tfor ( ; i < length; i++ ) {\n\t\t\t\tif ( callback.call( obj[ i ], i, obj[ i ] ) === false ) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tfor ( i in obj ) {\n\t\t\t\tif ( callback.call( obj[ i ], i, obj[ i ] ) === false ) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn obj;\n\t},\n\n\t// results is for internal usage only\n\tmakeArray: function( arr, results ) {\n\t\tvar ret = results || [];\n\n\t\tif ( arr != null ) {\n\t\t\tif ( isArrayLike( Object( arr ) ) ) {\n\t\t\t\tjQuery.merge( ret,\n\t\t\t\t\ttypeof arr === \"string\" ?\n\t\t\t\t\t[ arr ] : arr\n\t\t\t\t);\n\t\t\t} else {\n\t\t\t\tpush.call( ret, arr );\n\t\t\t}\n\t\t}\n\n\t\treturn ret;\n\t},\n\n\tinArray: function( elem, arr, i ) {\n\t\treturn arr == null ? -1 : indexOf.call( arr, elem, i );\n\t},\n\n\t// Support: Android <=4.0 only, PhantomJS 1 only\n\t// push.apply(_, arraylike) throws on ancient WebKit\n\tmerge: function( first, second ) {\n\t\tvar len = +second.length,\n\t\t\tj = 0,\n\t\t\ti = first.length;\n\n\t\tfor ( ; j < len; j++ ) {\n\t\t\tfirst[ i++ ] = second[ j ];\n\t\t}\n\n\t\tfirst.length = i;\n\n\t\treturn first;\n\t},\n\n\tgrep: function( elems, callback, invert ) {\n\t\tvar callbackInverse,\n\t\t\tmatches = [],\n\t\t\ti = 0,\n\t\t\tlength = elems.length,\n\t\t\tcallbackExpect = !invert;\n\n\t\t// Go through the array, only saving the items\n\t\t// that pass the validator function\n\t\tfor ( ; i < length; i++ ) {\n\t\t\tcallbackInverse = !callback( elems[ i ], i );\n\t\t\tif ( callbackInverse !== callbackExpect ) {\n\t\t\t\tmatches.push( elems[ i ] );\n\t\t\t}\n\t\t}\n\n\t\treturn matches;\n\t},\n\n\t// arg is for internal usage only\n\tmap: function( elems, callback, arg ) {\n\t\tvar length, value,\n\t\t\ti = 0,\n\t\t\tret = [];\n\n\t\t// Go through the array, translating each of the items to their new values\n\t\tif ( isArrayLike( elems ) ) {\n\t\t\tlength = elems.length;\n\t\t\tfor ( ; i < length; i++ ) {\n\t\t\t\tvalue = callback( elems[ i ], i, arg );\n\n\t\t\t\tif ( value != null ) {\n\t\t\t\t\tret.push( value );\n\t\t\t\t}\n\t\t\t}\n\n\t\t// Go through every key on the object,\n\t\t} else {\n\t\t\tfor ( i in elems ) {\n\t\t\t\tvalue = callback( elems[ i ], i, arg );\n\n\t\t\t\tif ( value != null ) {\n\t\t\t\t\tret.push( value );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Flatten any nested arrays\n\t\treturn flat( ret );\n\t},\n\n\t// A global GUID counter for objects\n\tguid: 1,\n\n\t// jQuery.support is not used in Core but other projects attach their\n\t// properties to it so it needs to exist.\n\tsupport: support\n} );\n\nif ( typeof Symbol === \"function\" ) {\n\tjQuery.fn[ Symbol.iterator ] = arr[ Symbol.iterator ];\n}\n\n// Populate the class2type map\njQuery.each( \"Boolean Number String Function Array Date RegExp Object Error Symbol\".split( \" \" ),\nfunction( _i, name ) {\n\tclass2type[ \"[object \" + name + \"]\" ] = name.toLowerCase();\n} );\n\nfunction isArrayLike( obj ) {\n\n\t// Support: real iOS 8.2 only (not reproducible in simulator)\n\t// `in` check used to prevent JIT error (gh-2145)\n\t// hasOwn isn't used here due to false negatives\n\t// regarding Nodelist length in IE\n\tvar length = !!obj && \"length\" in obj && obj.length,\n\t\ttype = toType( obj );\n\n\tif ( isFunction( obj ) || isWindow( obj ) ) {\n\t\treturn false;\n\t}\n\n\treturn type === \"array\" || length === 0 ||\n\t\ttypeof length === \"number\" && length > 0 && ( length - 1 ) in obj;\n}\nvar Sizzle =\n/*!\n * Sizzle CSS Selector Engine v2.3.5\n * https://sizzlejs.com/\n *\n * Copyright JS Foundation and other contributors\n * Released under the MIT license\n * https://js.foundation/\n *\n * Date: 2020-03-14\n */\n( function( window ) {\nvar i,\n\tsupport,\n\tExpr,\n\tgetText,\n\tisXML,\n\ttokenize,\n\tcompile,\n\tselect,\n\toutermostContext,\n\tsortInput,\n\thasDuplicate,\n\n\t// Local document vars\n\tsetDocument,\n\tdocument,\n\tdocElem,\n\tdocumentIsHTML,\n\trbuggyQSA,\n\trbuggyMatches,\n\tmatches,\n\tcontains,\n\n\t// Instance-specific data\n\texpando = \"sizzle\" + 1 * new Date(),\n\tpreferredDoc = window.document,\n\tdirruns = 0,\n\tdone = 0,\n\tclassCache = createCache(),\n\ttokenCache = createCache(),\n\tcompilerCache = createCache(),\n\tnonnativeSelectorCache = createCache(),\n\tsortOrder = function( a, b ) {\n\t\tif ( a === b ) {\n\t\t\thasDuplicate = true;\n\t\t}\n\t\treturn 0;\n\t},\n\n\t// Instance methods\n\thasOwn = ( {} ).hasOwnProperty,\n\tarr = [],\n\tpop = arr.pop,\n\tpushNative = arr.push,\n\tpush = arr.push,\n\tslice = arr.slice,\n\n\t// Use a stripped-down indexOf as it's faster than native\n\t// https://jsperf.com/thor-indexof-vs-for/5\n\tindexOf = function( list, elem ) {\n\t\tvar i = 0,\n\t\t\tlen = list.length;\n\t\tfor ( ; i < len; i++ ) {\n\t\t\tif ( list[ i ] === elem ) {\n\t\t\t\treturn i;\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t},\n\n\tbooleans = \"checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|\" +\n\t\t\"ismap|loop|multiple|open|readonly|required|scoped\",\n\n\t// Regular expressions\n\n\t// http://www.w3.org/TR/css3-selectors/#whitespace\n\twhitespace = \"[\\\\x20\\\\t\\\\r\\\\n\\\\f]\",\n\n\t// https://www.w3.org/TR/css-syntax-3/#ident-token-diagram\n\tidentifier = \"(?:\\\\\\\\[\\\\da-fA-F]{1,6}\" + whitespace +\n\t\t\"?|\\\\\\\\[^\\\\r\\\\n\\\\f]|[\\\\w-]|[^\\0-\\\\x7f])+\",\n\n\t// Attribute selectors: http://www.w3.org/TR/selectors/#attribute-selectors\n\tattributes = \"\\\\[\" + whitespace + \"*(\" + identifier + \")(?:\" + whitespace +\n\n\t\t// Operator (capture 2)\n\t\t\"*([*^$|!~]?=)\" + whitespace +\n\n\t\t// \"Attribute values must be CSS identifiers [capture 5]\n\t\t// or strings [capture 3 or capture 4]\"\n\t\t\"*(?:'((?:\\\\\\\\.|[^\\\\\\\\'])*)'|\\\"((?:\\\\\\\\.|[^\\\\\\\\\\\"])*)\\\"|(\" + identifier + \"))|)\" +\n\t\twhitespace + \"*\\\\]\",\n\n\tpseudos = \":(\" + identifier + \")(?:\\\\((\" +\n\n\t\t// To reduce the number of selectors needing tokenize in the preFilter, prefer arguments:\n\t\t// 1. quoted (capture 3; capture 4 or capture 5)\n\t\t\"('((?:\\\\\\\\.|[^\\\\\\\\'])*)'|\\\"((?:\\\\\\\\.|[^\\\\\\\\\\\"])*)\\\")|\" +\n\n\t\t// 2. simple (capture 6)\n\t\t\"((?:\\\\\\\\.|[^\\\\\\\\()[\\\\]]|\" + attributes + \")*)|\" +\n\n\t\t// 3. anything else (capture 2)\n\t\t\".*\" +\n\t\t\")\\\\)|)\",\n\n\t// Leading and non-escaped trailing whitespace, capturing some non-whitespace characters preceding the latter\n\trwhitespace = new RegExp( whitespace + \"+\", \"g\" ),\n\trtrim = new RegExp( \"^\" + whitespace + \"+|((?:^|[^\\\\\\\\])(?:\\\\\\\\.)*)\" +\n\t\twhitespace + \"+$\", \"g\" ),\n\n\trcomma = new RegExp( \"^\" + whitespace + \"*,\" + whitespace + \"*\" ),\n\trcombinators = new RegExp( \"^\" + whitespace + \"*([>+~]|\" + whitespace + \")\" + whitespace +\n\t\t\"*\" ),\n\trdescend = new RegExp( whitespace + \"|>\" ),\n\n\trpseudo = new RegExp( pseudos ),\n\tridentifier = new RegExp( \"^\" + identifier + \"$\" ),\n\n\tmatchExpr = {\n\t\t\"ID\": new RegExp( \"^#(\" + identifier + \")\" ),\n\t\t\"CLASS\": new RegExp( \"^\\\\.(\" + identifier + \")\" ),\n\t\t\"TAG\": new RegExp( \"^(\" + identifier + \"|[*])\" ),\n\t\t\"ATTR\": new RegExp( \"^\" + attributes ),\n\t\t\"PSEUDO\": new RegExp( \"^\" + pseudos ),\n\t\t\"CHILD\": new RegExp( \"^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\\\(\" +\n\t\t\twhitespace + \"*(even|odd|(([+-]|)(\\\\d*)n|)\" + whitespace + \"*(?:([+-]|)\" +\n\t\t\twhitespace + \"*(\\\\d+)|))\" + whitespace + \"*\\\\)|)\", \"i\" ),\n\t\t\"bool\": new RegExp( \"^(?:\" + booleans + \")$\", \"i\" ),\n\n\t\t// For use in libraries implementing .is()\n\t\t// We use this for POS matching in `select`\n\t\t\"needsContext\": new RegExp( \"^\" + whitespace +\n\t\t\t\"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\\\(\" + whitespace +\n\t\t\t\"*((?:-\\\\d)?\\\\d*)\" + whitespace + \"*\\\\)|)(?=[^-]|$)\", \"i\" )\n\t},\n\n\trhtml = /HTML$/i,\n\trinputs = /^(?:input|select|textarea|button)$/i,\n\trheader = /^h\\d$/i,\n\n\trnative = /^[^{]+\\{\\s*\\[native \\w/,\n\n\t// Easily-parseable/retrievable ID or TAG or CLASS selectors\n\trquickExpr = /^(?:#([\\w-]+)|(\\w+)|\\.([\\w-]+))$/,\n\n\trsibling = /[+~]/,\n\n\t// CSS escapes\n\t// http://www.w3.org/TR/CSS21/syndata.html#escaped-characters\n\trunescape = new RegExp( \"\\\\\\\\[\\\\da-fA-F]{1,6}\" + whitespace + \"?|\\\\\\\\([^\\\\r\\\\n\\\\f])\", \"g\" ),\n\tfunescape = function( escape, nonHex ) {\n\t\tvar high = \"0x\" + escape.slice( 1 ) - 0x10000;\n\n\t\treturn nonHex ?\n\n\t\t\t// Strip the backslash prefix from a non-hex escape sequence\n\t\t\tnonHex :\n\n\t\t\t// Replace a hexadecimal escape sequence with the encoded Unicode code point\n\t\t\t// Support: IE <=11+\n\t\t\t// For values outside the Basic Multilingual Plane (BMP), manually construct a\n\t\t\t// surrogate pair\n\t\t\thigh < 0 ?\n\t\t\t\tString.fromCharCode( high + 0x10000 ) :\n\t\t\t\tString.fromCharCode( high >> 10 | 0xD800, high & 0x3FF | 0xDC00 );\n\t},\n\n\t// CSS string/identifier serialization\n\t// https://drafts.csswg.org/cssom/#common-serializing-idioms\n\trcssescape = /([\\0-\\x1f\\x7f]|^-?\\d)|^-$|[^\\0-\\x1f\\x7f-\\uFFFF\\w-]/g,\n\tfcssescape = function( ch, asCodePoint ) {\n\t\tif ( asCodePoint ) {\n\n\t\t\t// U+0000 NULL becomes U+FFFD REPLACEMENT CHARACTER\n\t\t\tif ( ch === \"\\0\" ) {\n\t\t\t\treturn \"\\uFFFD\";\n\t\t\t}\n\n\t\t\t// Control characters and (dependent upon position) numbers get escaped as code points\n\t\t\treturn ch.slice( 0, -1 ) + \"\\\\\" +\n\t\t\t\tch.charCodeAt( ch.length - 1 ).toString( 16 ) + \" \";\n\t\t}\n\n\t\t// Other potentially-special ASCII characters get backslash-escaped\n\t\treturn \"\\\\\" + ch;\n\t},\n\n\t// Used for iframes\n\t// See setDocument()\n\t// Removing the function wrapper causes a \"Permission Denied\"\n\t// error in IE\n\tunloadHandler = function() {\n\t\tsetDocument();\n\t},\n\n\tinDisabledFieldset = addCombinator(\n\t\tfunction( elem ) {\n\t\t\treturn elem.disabled === true && elem.nodeName.toLowerCase() === \"fieldset\";\n\t\t},\n\t\t{ dir: \"parentNode\", next: \"legend\" }\n\t);\n\n// Optimize for push.apply( _, NodeList )\ntry {\n\tpush.apply(\n\t\t( arr = slice.call( preferredDoc.childNodes ) ),\n\t\tpreferredDoc.childNodes\n\t);\n\n\t// Support: Android<4.0\n\t// Detect silently failing push.apply\n\t// eslint-disable-next-line no-unused-expressions\n\tarr[ preferredDoc.childNodes.length ].nodeType;\n} catch ( e ) {\n\tpush = { apply: arr.length ?\n\n\t\t// Leverage slice if possible\n\t\tfunction( target, els ) {\n\t\t\tpushNative.apply( target, slice.call( els ) );\n\t\t} :\n\n\t\t// Support: IE<9\n\t\t// Otherwise append directly\n\t\tfunction( target, els ) {\n\t\t\tvar j = target.length,\n\t\t\t\ti = 0;\n\n\t\t\t// Can't trust NodeList.length\n\t\t\twhile ( ( target[ j++ ] = els[ i++ ] ) ) {}\n\t\t\ttarget.length = j - 1;\n\t\t}\n\t};\n}\n\nfunction Sizzle( selector, context, results, seed ) {\n\tvar m, i, elem, nid, match, groups, newSelector,\n\t\tnewContext = context && context.ownerDocument,\n\n\t\t// nodeType defaults to 9, since context defaults to document\n\t\tnodeType = context ? context.nodeType : 9;\n\n\tresults = results || [];\n\n\t// Return early from calls with invalid selector or context\n\tif ( typeof selector !== \"string\" || !selector ||\n\t\tnodeType !== 1 && nodeType !== 9 && nodeType !== 11 ) {\n\n\t\treturn results;\n\t}\n\n\t// Try to shortcut find operations (as opposed to filters) in HTML documents\n\tif ( !seed ) {\n\t\tsetDocument( context );\n\t\tcontext = context || document;\n\n\t\tif ( documentIsHTML ) {\n\n\t\t\t// If the selector is sufficiently simple, try using a \"get*By*\" DOM method\n\t\t\t// (excepting DocumentFragment context, where the methods don't exist)\n\t\t\tif ( nodeType !== 11 && ( match = rquickExpr.exec( selector ) ) ) {\n\n\t\t\t\t// ID selector\n\t\t\t\tif ( ( m = match[ 1 ] ) ) {\n\n\t\t\t\t\t// Document context\n\t\t\t\t\tif ( nodeType === 9 ) {\n\t\t\t\t\t\tif ( ( elem = context.getElementById( m ) ) ) {\n\n\t\t\t\t\t\t\t// Support: IE, Opera, Webkit\n\t\t\t\t\t\t\t// TODO: identify versions\n\t\t\t\t\t\t\t// getElementById can match elements by name instead of ID\n\t\t\t\t\t\t\tif ( elem.id === m ) {\n\t\t\t\t\t\t\t\tresults.push( elem );\n\t\t\t\t\t\t\t\treturn results;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\treturn results;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t// Element context\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\t// Support: IE, Opera, Webkit\n\t\t\t\t\t\t// TODO: identify versions\n\t\t\t\t\t\t// getElementById can match elements by name instead of ID\n\t\t\t\t\t\tif ( newContext && ( elem = newContext.getElementById( m ) ) &&\n\t\t\t\t\t\t\tcontains( context, elem ) &&\n\t\t\t\t\t\t\telem.id === m ) {\n\n\t\t\t\t\t\t\tresults.push( elem );\n\t\t\t\t\t\t\treturn results;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t// Type selector\n\t\t\t\t} else if ( match[ 2 ] ) {\n\t\t\t\t\tpush.apply( results, context.getElementsByTagName( selector ) );\n\t\t\t\t\treturn results;\n\n\t\t\t\t// Class selector\n\t\t\t\t} else if ( ( m = match[ 3 ] ) && support.getElementsByClassName &&\n\t\t\t\t\tcontext.getElementsByClassName ) {\n\n\t\t\t\t\tpush.apply( results, context.getElementsByClassName( m ) );\n\t\t\t\t\treturn results;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Take advantage of querySelectorAll\n\t\t\tif ( support.qsa &&\n\t\t\t\t!nonnativeSelectorCache[ selector + \" \" ] &&\n\t\t\t\t( !rbuggyQSA || !rbuggyQSA.test( selector ) ) &&\n\n\t\t\t\t// Support: IE 8 only\n\t\t\t\t// Exclude object elements\n\t\t\t\t( nodeType !== 1 || context.nodeName.toLowerCase() !== \"object\" ) ) {\n\n\t\t\t\tnewSelector = selector;\n\t\t\t\tnewContext = context;\n\n\t\t\t\t// qSA considers elements outside a scoping root when evaluating child or\n\t\t\t\t// descendant combinators, which is not what we want.\n\t\t\t\t// In such cases, we work around the behavior by prefixing every selector in the\n\t\t\t\t// list with an ID selector referencing the scope context.\n\t\t\t\t// The technique has to be used as well when a leading combinator is used\n\t\t\t\t// as such selectors are not recognized by querySelectorAll.\n\t\t\t\t// Thanks to Andrew Dupont for this technique.\n\t\t\t\tif ( nodeType === 1 &&\n\t\t\t\t\t( rdescend.test( selector ) || rcombinators.test( selector ) ) ) {\n\n\t\t\t\t\t// Expand context for sibling selectors\n\t\t\t\t\tnewContext = rsibling.test( selector ) && testContext( context.parentNode ) ||\n\t\t\t\t\t\tcontext;\n\n\t\t\t\t\t// We can use :scope instead of the ID hack if the browser\n\t\t\t\t\t// supports it & if we're not changing the context.\n\t\t\t\t\tif ( newContext !== context || !support.scope ) {\n\n\t\t\t\t\t\t// Capture the context ID, setting it first if necessary\n\t\t\t\t\t\tif ( ( nid = context.getAttribute( \"id\" ) ) ) {\n\t\t\t\t\t\t\tnid = nid.replace( rcssescape, fcssescape );\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcontext.setAttribute( \"id\", ( nid = expando ) );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// Prefix every selector in the list\n\t\t\t\t\tgroups = tokenize( selector );\n\t\t\t\t\ti = groups.length;\n\t\t\t\t\twhile ( i-- ) {\n\t\t\t\t\t\tgroups[ i ] = ( nid ? \"#\" + nid : \":scope\" ) + \" \" +\n\t\t\t\t\t\t\ttoSelector( groups[ i ] );\n\t\t\t\t\t}\n\t\t\t\t\tnewSelector = groups.join( \",\" );\n\t\t\t\t}\n\n\t\t\t\ttry {\n\t\t\t\t\tpush.apply( results,\n\t\t\t\t\t\tnewContext.querySelectorAll( newSelector )\n\t\t\t\t\t);\n\t\t\t\t\treturn results;\n\t\t\t\t} catch ( qsaError ) {\n\t\t\t\t\tnonnativeSelectorCache( selector, true );\n\t\t\t\t} finally {\n\t\t\t\t\tif ( nid === expando ) {\n\t\t\t\t\t\tcontext.removeAttribute( \"id\" );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t// All others\n\treturn select( selector.replace( rtrim, \"$1\" ), context, results, seed );\n}\n\n/**\n * Create key-value caches of limited size\n * @returns {function(string, object)} Returns the Object data after storing it on itself with\n *\tproperty name the (space-suffixed) string and (if the cache is larger than Expr.cacheLength)\n *\tdeleting the oldest entry\n */\nfunction createCache() {\n\tvar keys = [];\n\n\tfunction cache( key, value ) {\n\n\t\t// Use (key + \" \") to avoid collision with native prototype properties (see Issue #157)\n\t\tif ( keys.push( key + \" \" ) > Expr.cacheLength ) {\n\n\t\t\t// Only keep the most recent entries\n\t\t\tdelete cache[ keys.shift() ];\n\t\t}\n\t\treturn ( cache[ key + \" \" ] = value );\n\t}\n\treturn cache;\n}\n\n/**\n * Mark a function for special use by Sizzle\n * @param {Function} fn The function to mark\n */\nfunction markFunction( fn ) {\n\tfn[ expando ] = true;\n\treturn fn;\n}\n\n/**\n * Support testing using an element\n * @param {Function} fn Passed the created element and returns a boolean result\n */\nfunction assert( fn ) {\n\tvar el = document.createElement( \"fieldset\" );\n\n\ttry {\n\t\treturn !!fn( el );\n\t} catch ( e ) {\n\t\treturn false;\n\t} finally {\n\n\t\t// Remove from its parent by default\n\t\tif ( el.parentNode ) {\n\t\t\tel.parentNode.removeChild( el );\n\t\t}\n\n\t\t// release memory in IE\n\t\tel = null;\n\t}\n}\n\n/**\n * Adds the same handler for all of the specified attrs\n * @param {String} attrs Pipe-separated list of attributes\n * @param {Function} handler The method that will be applied\n */\nfunction addHandle( attrs, handler ) {\n\tvar arr = attrs.split( \"|\" ),\n\t\ti = arr.length;\n\n\twhile ( i-- ) {\n\t\tExpr.attrHandle[ arr[ i ] ] = handler;\n\t}\n}\n\n/**\n * Checks document order of two siblings\n * @param {Element} a\n * @param {Element} b\n * @returns {Number} Returns less than 0 if a precedes b, greater than 0 if a follows b\n */\nfunction siblingCheck( a, b ) {\n\tvar cur = b && a,\n\t\tdiff = cur && a.nodeType === 1 && b.nodeType === 1 &&\n\t\t\ta.sourceIndex - b.sourceIndex;\n\n\t// Use IE sourceIndex if available on both nodes\n\tif ( diff ) {\n\t\treturn diff;\n\t}\n\n\t// Check if b follows a\n\tif ( cur ) {\n\t\twhile ( ( cur = cur.nextSibling ) ) {\n\t\t\tif ( cur === b ) {\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t}\n\t}\n\n\treturn a ? 1 : -1;\n}\n\n/**\n * Returns a function to use in pseudos for input types\n * @param {String} type\n */\nfunction createInputPseudo( type ) {\n\treturn function( elem ) {\n\t\tvar name = elem.nodeName.toLowerCase();\n\t\treturn name === \"input\" && elem.type === type;\n\t};\n}\n\n/**\n * Returns a function to use in pseudos for buttons\n * @param {String} type\n */\nfunction createButtonPseudo( type ) {\n\treturn function( elem ) {\n\t\tvar name = elem.nodeName.toLowerCase();\n\t\treturn ( name === \"input\" || name === \"button\" ) && elem.type === type;\n\t};\n}\n\n/**\n * Returns a function to use in pseudos for :enabled/:disabled\n * @param {Boolean} disabled true for :disabled; false for :enabled\n */\nfunction createDisabledPseudo( disabled ) {\n\n\t// Known :disabled false positives: fieldset[disabled] > legend:nth-of-type(n+2) :can-disable\n\treturn function( elem ) {\n\n\t\t// Only certain elements can match :enabled or :disabled\n\t\t// https://html.spec.whatwg.org/multipage/scripting.html#selector-enabled\n\t\t// https://html.spec.whatwg.org/multipage/scripting.html#selector-disabled\n\t\tif ( \"form\" in elem ) {\n\n\t\t\t// Check for inherited disabledness on relevant non-disabled elements:\n\t\t\t// * listed form-associated elements in a disabled fieldset\n\t\t\t// https://html.spec.whatwg.org/multipage/forms.html#category-listed\n\t\t\t// https://html.spec.whatwg.org/multipage/forms.html#concept-fe-disabled\n\t\t\t// * option elements in a disabled optgroup\n\t\t\t// https://html.spec.whatwg.org/multipage/forms.html#concept-option-disabled\n\t\t\t// All such elements have a \"form\" property.\n\t\t\tif ( elem.parentNode && elem.disabled === false ) {\n\n\t\t\t\t// Option elements defer to a parent optgroup if present\n\t\t\t\tif ( \"label\" in elem ) {\n\t\t\t\t\tif ( \"label\" in elem.parentNode ) {\n\t\t\t\t\t\treturn elem.parentNode.disabled === disabled;\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn elem.disabled === disabled;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Support: IE 6 - 11\n\t\t\t\t// Use the isDisabled shortcut property to check for disabled fieldset ancestors\n\t\t\t\treturn elem.isDisabled === disabled ||\n\n\t\t\t\t\t// Where there is no isDisabled, check manually\n\t\t\t\t\t/* jshint -W018 */\n\t\t\t\t\telem.isDisabled !== !disabled &&\n\t\t\t\t\tinDisabledFieldset( elem ) === disabled;\n\t\t\t}\n\n\t\t\treturn elem.disabled === disabled;\n\n\t\t// Try to winnow out elements that can't be disabled before trusting the disabled property.\n\t\t// Some victims get caught in our net (label, legend, menu, track), but it shouldn't\n\t\t// even exist on them, let alone have a boolean value.\n\t\t} else if ( \"label\" in elem ) {\n\t\t\treturn elem.disabled === disabled;\n\t\t}\n\n\t\t// Remaining elements are neither :enabled nor :disabled\n\t\treturn false;\n\t};\n}\n\n/**\n * Returns a function to use in pseudos for positionals\n * @param {Function} fn\n */\nfunction createPositionalPseudo( fn ) {\n\treturn markFunction( function( argument ) {\n\t\targument = +argument;\n\t\treturn markFunction( function( seed, matches ) {\n\t\t\tvar j,\n\t\t\t\tmatchIndexes = fn( [], seed.length, argument ),\n\t\t\t\ti = matchIndexes.length;\n\n\t\t\t// Match elements found at the specified indexes\n\t\t\twhile ( i-- ) {\n\t\t\t\tif ( seed[ ( j = matchIndexes[ i ] ) ] ) {\n\t\t\t\t\tseed[ j ] = !( matches[ j ] = seed[ j ] );\n\t\t\t\t}\n\t\t\t}\n\t\t} );\n\t} );\n}\n\n/**\n * Checks a node for validity as a Sizzle context\n * @param {Element|Object=} context\n * @returns {Element|Object|Boolean} The input node if acceptable, otherwise a falsy value\n */\nfunction testContext( context ) {\n\treturn context && typeof context.getElementsByTagName !== \"undefined\" && context;\n}\n\n// Expose support vars for convenience\nsupport = Sizzle.support = {};\n\n/**\n * Detects XML nodes\n * @param {Element|Object} elem An element or a document\n * @returns {Boolean} True iff elem is a non-HTML XML node\n */\nisXML = Sizzle.isXML = function( elem ) {\n\tvar namespace = elem.namespaceURI,\n\t\tdocElem = ( elem.ownerDocument || elem ).documentElement;\n\n\t// Support: IE <=8\n\t// Assume HTML when documentElement doesn't yet exist, such as inside loading iframes\n\t// https://bugs.jquery.com/ticket/4833\n\treturn !rhtml.test( namespace || docElem && docElem.nodeName || \"HTML\" );\n};\n\n/**\n * Sets document-related variables once based on the current document\n * @param {Element|Object} [doc] An element or document object to use to set the document\n * @returns {Object} Returns the current document\n */\nsetDocument = Sizzle.setDocument = function( node ) {\n\tvar hasCompare, subWindow,\n\t\tdoc = node ? node.ownerDocument || node : preferredDoc;\n\n\t// Return early if doc is invalid or already selected\n\t// Support: IE 11+, Edge 17 - 18+\n\t// IE/Edge sometimes throw a \"Permission denied\" error when strict-comparing\n\t// two documents; shallow comparisons work.\n\t// eslint-disable-next-line eqeqeq\n\tif ( doc == document || doc.nodeType !== 9 || !doc.documentElement ) {\n\t\treturn document;\n\t}\n\n\t// Update global variables\n\tdocument = doc;\n\tdocElem = document.documentElement;\n\tdocumentIsHTML = !isXML( document );\n\n\t// Support: IE 9 - 11+, Edge 12 - 18+\n\t// Accessing iframe documents after unload throws \"permission denied\" errors (jQuery #13936)\n\t// Support: IE 11+, Edge 17 - 18+\n\t// IE/Edge sometimes throw a \"Permission denied\" error when strict-comparing\n\t// two documents; shallow comparisons work.\n\t// eslint-disable-next-line eqeqeq\n\tif ( preferredDoc != document &&\n\t\t( subWindow = document.defaultView ) && subWindow.top !== subWindow ) {\n\n\t\t// Support: IE 11, Edge\n\t\tif ( subWindow.addEventListener ) {\n\t\t\tsubWindow.addEventListener( \"unload\", unloadHandler, false );\n\n\t\t// Support: IE 9 - 10 only\n\t\t} else if ( subWindow.attachEvent ) {\n\t\t\tsubWindow.attachEvent( \"onunload\", unloadHandler );\n\t\t}\n\t}\n\n\t// Support: IE 8 - 11+, Edge 12 - 18+, Chrome <=16 - 25 only, Firefox <=3.6 - 31 only,\n\t// Safari 4 - 5 only, Opera <=11.6 - 12.x only\n\t// IE/Edge & older browsers don't support the :scope pseudo-class.\n\t// Support: Safari 6.0 only\n\t// Safari 6.0 supports :scope but it's an alias of :root there.\n\tsupport.scope = assert( function( el ) {\n\t\tdocElem.appendChild( el ).appendChild( document.createElement( \"div\" ) );\n\t\treturn typeof el.querySelectorAll !== \"undefined\" &&\n\t\t\t!el.querySelectorAll( \":scope fieldset div\" ).length;\n\t} );\n\n\t/* Attributes\n\t---------------------------------------------------------------------- */\n\n\t// Support: IE<8\n\t// Verify that getAttribute really returns attributes and not properties\n\t// (excepting IE8 booleans)\n\tsupport.attributes = assert( function( el ) {\n\t\tel.className = \"i\";\n\t\treturn !el.getAttribute( \"className\" );\n\t} );\n\n\t/* getElement(s)By*\n\t---------------------------------------------------------------------- */\n\n\t// Check if getElementsByTagName(\"*\") returns only elements\n\tsupport.getElementsByTagName = assert( function( el ) {\n\t\tel.appendChild( document.createComment( \"\" ) );\n\t\treturn !el.getElementsByTagName( \"*\" ).length;\n\t} );\n\n\t// Support: IE<9\n\tsupport.getElementsByClassName = rnative.test( document.getElementsByClassName );\n\n\t// Support: IE<10\n\t// Check if getElementById returns elements by name\n\t// The broken getElementById methods don't pick up programmatically-set names,\n\t// so use a roundabout getElementsByName test\n\tsupport.getById = assert( function( el ) {\n\t\tdocElem.appendChild( el ).id = expando;\n\t\treturn !document.getElementsByName || !document.getElementsByName( expando ).length;\n\t} );\n\n\t// ID filter and find\n\tif ( support.getById ) {\n\t\tExpr.filter[ \"ID\" ] = function( id ) {\n\t\t\tvar attrId = id.replace( runescape, funescape );\n\t\t\treturn function( elem ) {\n\t\t\t\treturn elem.getAttribute( \"id\" ) === attrId;\n\t\t\t};\n\t\t};\n\t\tExpr.find[ \"ID\" ] = function( id, context ) {\n\t\t\tif ( typeof context.getElementById !== \"undefined\" && documentIsHTML ) {\n\t\t\t\tvar elem = context.getElementById( id );\n\t\t\t\treturn elem ? [ elem ] : [];\n\t\t\t}\n\t\t};\n\t} else {\n\t\tExpr.filter[ \"ID\" ] = function( id ) {\n\t\t\tvar attrId = id.replace( runescape, funescape );\n\t\t\treturn function( elem ) {\n\t\t\t\tvar node = typeof elem.getAttributeNode !== \"undefined\" &&\n\t\t\t\t\telem.getAttributeNode( \"id\" );\n\t\t\t\treturn node && node.value === attrId;\n\t\t\t};\n\t\t};\n\n\t\t// Support: IE 6 - 7 only\n\t\t// getElementById is not reliable as a find shortcut\n\t\tExpr.find[ \"ID\" ] = function( id, context ) {\n\t\t\tif ( typeof context.getElementById !== \"undefined\" && documentIsHTML ) {\n\t\t\t\tvar node, i, elems,\n\t\t\t\t\telem = context.getElementById( id );\n\n\t\t\t\tif ( elem ) {\n\n\t\t\t\t\t// Verify the id attribute\n\t\t\t\t\tnode = elem.getAttributeNode( \"id\" );\n\t\t\t\t\tif ( node && node.value === id ) {\n\t\t\t\t\t\treturn [ elem ];\n\t\t\t\t\t}\n\n\t\t\t\t\t// Fall back on getElementsByName\n\t\t\t\t\telems = context.getElementsByName( id );\n\t\t\t\t\ti = 0;\n\t\t\t\t\twhile ( ( elem = elems[ i++ ] ) ) {\n\t\t\t\t\t\tnode = elem.getAttributeNode( \"id\" );\n\t\t\t\t\t\tif ( node && node.value === id ) {\n\t\t\t\t\t\t\treturn [ elem ];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\treturn [];\n\t\t\t}\n\t\t};\n\t}\n\n\t// Tag\n\tExpr.find[ \"TAG\" ] = support.getElementsByTagName ?\n\t\tfunction( tag, context ) {\n\t\t\tif ( typeof context.getElementsByTagName !== \"undefined\" ) {\n\t\t\t\treturn context.getElementsByTagName( tag );\n\n\t\t\t// DocumentFragment nodes don't have gEBTN\n\t\t\t} else if ( support.qsa ) {\n\t\t\t\treturn context.querySelectorAll( tag );\n\t\t\t}\n\t\t} :\n\n\t\tfunction( tag, context ) {\n\t\t\tvar elem,\n\t\t\t\ttmp = [],\n\t\t\t\ti = 0,\n\n\t\t\t\t// By happy coincidence, a (broken) gEBTN appears on DocumentFragment nodes too\n\t\t\t\tresults = context.getElementsByTagName( tag );\n\n\t\t\t// Filter out possible comments\n\t\t\tif ( tag === \"*\" ) {\n\t\t\t\twhile ( ( elem = results[ i++ ] ) ) {\n\t\t\t\t\tif ( elem.nodeType === 1 ) {\n\t\t\t\t\t\ttmp.push( elem );\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\treturn tmp;\n\t\t\t}\n\t\t\treturn results;\n\t\t};\n\n\t// Class\n\tExpr.find[ \"CLASS\" ] = support.getElementsByClassName && function( className, context ) {\n\t\tif ( typeof context.getElementsByClassName !== \"undefined\" && documentIsHTML ) {\n\t\t\treturn context.getElementsByClassName( className );\n\t\t}\n\t};\n\n\t/* QSA/matchesSelector\n\t---------------------------------------------------------------------- */\n\n\t// QSA and matchesSelector support\n\n\t// matchesSelector(:active) reports false when true (IE9/Opera 11.5)\n\trbuggyMatches = [];\n\n\t// qSa(:focus) reports false when true (Chrome 21)\n\t// We allow this because of a bug in IE8/9 that throws an error\n\t// whenever `document.activeElement` is accessed on an iframe\n\t// So, we allow :focus to pass through QSA all the time to avoid the IE error\n\t// See https://bugs.jquery.com/ticket/13378\n\trbuggyQSA = [];\n\n\tif ( ( support.qsa = rnative.test( document.querySelectorAll ) ) ) {\n\n\t\t// Build QSA regex\n\t\t// Regex strategy adopted from Diego Perini\n\t\tassert( function( el ) {\n\n\t\t\tvar input;\n\n\t\t\t// Select is set to empty string on purpose\n\t\t\t// This is to test IE's treatment of not explicitly\n\t\t\t// setting a boolean content attribute,\n\t\t\t// since its presence should be enough\n\t\t\t// https://bugs.jquery.com/ticket/12359\n\t\t\tdocElem.appendChild( el ).innerHTML = \" \" +\n\t\t\t\t\"\" +\n\t\t\t\t\" \";\n\n\t\t\t// Support: IE8, Opera 11-12.16\n\t\t\t// Nothing should be selected when empty strings follow ^= or $= or *=\n\t\t\t// The test attribute must be unknown in Opera but \"safe\" for WinRT\n\t\t\t// https://msdn.microsoft.com/en-us/library/ie/hh465388.aspx#attribute_section\n\t\t\tif ( el.querySelectorAll( \"[msallowcapture^='']\" ).length ) {\n\t\t\t\trbuggyQSA.push( \"[*^$]=\" + whitespace + \"*(?:''|\\\"\\\")\" );\n\t\t\t}\n\n\t\t\t// Support: IE8\n\t\t\t// Boolean attributes and \"value\" are not treated correctly\n\t\t\tif ( !el.querySelectorAll( \"[selected]\" ).length ) {\n\t\t\t\trbuggyQSA.push( \"\\\\[\" + whitespace + \"*(?:value|\" + booleans + \")\" );\n\t\t\t}\n\n\t\t\t// Support: Chrome<29, Android<4.4, Safari<7.0+, iOS<7.0+, PhantomJS<1.9.8+\n\t\t\tif ( !el.querySelectorAll( \"[id~=\" + expando + \"-]\" ).length ) {\n\t\t\t\trbuggyQSA.push( \"~=\" );\n\t\t\t}\n\n\t\t\t// Support: IE 11+, Edge 15 - 18+\n\t\t\t// IE 11/Edge don't find elements on a `[name='']` query in some cases.\n\t\t\t// Adding a temporary attribute to the document before the selection works\n\t\t\t// around the issue.\n\t\t\t// Interestingly, IE 10 & older don't seem to have the issue.\n\t\t\tinput = document.createElement( \"input\" );\n\t\t\tinput.setAttribute( \"name\", \"\" );\n\t\t\tel.appendChild( input );\n\t\t\tif ( !el.querySelectorAll( \"[name='']\" ).length ) {\n\t\t\t\trbuggyQSA.push( \"\\\\[\" + whitespace + \"*name\" + whitespace + \"*=\" +\n\t\t\t\t\twhitespace + \"*(?:''|\\\"\\\")\" );\n\t\t\t}\n\n\t\t\t// Webkit/Opera - :checked should return selected option elements\n\t\t\t// http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked\n\t\t\t// IE8 throws error here and will not see later tests\n\t\t\tif ( !el.querySelectorAll( \":checked\" ).length ) {\n\t\t\t\trbuggyQSA.push( \":checked\" );\n\t\t\t}\n\n\t\t\t// Support: Safari 8+, iOS 8+\n\t\t\t// https://bugs.webkit.org/show_bug.cgi?id=136851\n\t\t\t// In-page `selector#id sibling-combinator selector` fails\n\t\t\tif ( !el.querySelectorAll( \"a#\" + expando + \"+*\" ).length ) {\n\t\t\t\trbuggyQSA.push( \".#.+[+~]\" );\n\t\t\t}\n\n\t\t\t// Support: Firefox <=3.6 - 5 only\n\t\t\t// Old Firefox doesn't throw on a badly-escaped identifier.\n\t\t\tel.querySelectorAll( \"\\\\\\f\" );\n\t\t\trbuggyQSA.push( \"[\\\\r\\\\n\\\\f]\" );\n\t\t} );\n\n\t\tassert( function( el ) {\n\t\t\tel.innerHTML = \" \" +\n\t\t\t\t\" \";\n\n\t\t\t// Support: Windows 8 Native Apps\n\t\t\t// The type and name attributes are restricted during .innerHTML assignment\n\t\t\tvar input = document.createElement( \"input\" );\n\t\t\tinput.setAttribute( \"type\", \"hidden\" );\n\t\t\tel.appendChild( input ).setAttribute( \"name\", \"D\" );\n\n\t\t\t// Support: IE8\n\t\t\t// Enforce case-sensitivity of name attribute\n\t\t\tif ( el.querySelectorAll( \"[name=d]\" ).length ) {\n\t\t\t\trbuggyQSA.push( \"name\" + whitespace + \"*[*^$|!~]?=\" );\n\t\t\t}\n\n\t\t\t// FF 3.5 - :enabled/:disabled and hidden elements (hidden elements are still enabled)\n\t\t\t// IE8 throws error here and will not see later tests\n\t\t\tif ( el.querySelectorAll( \":enabled\" ).length !== 2 ) {\n\t\t\t\trbuggyQSA.push( \":enabled\", \":disabled\" );\n\t\t\t}\n\n\t\t\t// Support: IE9-11+\n\t\t\t// IE's :disabled selector does not pick up the children of disabled fieldsets\n\t\t\tdocElem.appendChild( el ).disabled = true;\n\t\t\tif ( el.querySelectorAll( \":disabled\" ).length !== 2 ) {\n\t\t\t\trbuggyQSA.push( \":enabled\", \":disabled\" );\n\t\t\t}\n\n\t\t\t// Support: Opera 10 - 11 only\n\t\t\t// Opera 10-11 does not throw on post-comma invalid pseudos\n\t\t\tel.querySelectorAll( \"*,:x\" );\n\t\t\trbuggyQSA.push( \",.*:\" );\n\t\t} );\n\t}\n\n\tif ( ( support.matchesSelector = rnative.test( ( matches = docElem.matches ||\n\t\tdocElem.webkitMatchesSelector ||\n\t\tdocElem.mozMatchesSelector ||\n\t\tdocElem.oMatchesSelector ||\n\t\tdocElem.msMatchesSelector ) ) ) ) {\n\n\t\tassert( function( el ) {\n\n\t\t\t// Check to see if it's possible to do matchesSelector\n\t\t\t// on a disconnected node (IE 9)\n\t\t\tsupport.disconnectedMatch = matches.call( el, \"*\" );\n\n\t\t\t// This should fail with an exception\n\t\t\t// Gecko does not error, returns false instead\n\t\t\tmatches.call( el, \"[s!='']:x\" );\n\t\t\trbuggyMatches.push( \"!=\", pseudos );\n\t\t} );\n\t}\n\n\trbuggyQSA = rbuggyQSA.length && new RegExp( rbuggyQSA.join( \"|\" ) );\n\trbuggyMatches = rbuggyMatches.length && new RegExp( rbuggyMatches.join( \"|\" ) );\n\n\t/* Contains\n\t---------------------------------------------------------------------- */\n\thasCompare = rnative.test( docElem.compareDocumentPosition );\n\n\t// Element contains another\n\t// Purposefully self-exclusive\n\t// As in, an element does not contain itself\n\tcontains = hasCompare || rnative.test( docElem.contains ) ?\n\t\tfunction( a, b ) {\n\t\t\tvar adown = a.nodeType === 9 ? a.documentElement : a,\n\t\t\t\tbup = b && b.parentNode;\n\t\t\treturn a === bup || !!( bup && bup.nodeType === 1 && (\n\t\t\t\tadown.contains ?\n\t\t\t\t\tadown.contains( bup ) :\n\t\t\t\t\ta.compareDocumentPosition && a.compareDocumentPosition( bup ) & 16\n\t\t\t) );\n\t\t} :\n\t\tfunction( a, b ) {\n\t\t\tif ( b ) {\n\t\t\t\twhile ( ( b = b.parentNode ) ) {\n\t\t\t\t\tif ( b === a ) {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn false;\n\t\t};\n\n\t/* Sorting\n\t---------------------------------------------------------------------- */\n\n\t// Document order sorting\n\tsortOrder = hasCompare ?\n\tfunction( a, b ) {\n\n\t\t// Flag for duplicate removal\n\t\tif ( a === b ) {\n\t\t\thasDuplicate = true;\n\t\t\treturn 0;\n\t\t}\n\n\t\t// Sort on method existence if only one input has compareDocumentPosition\n\t\tvar compare = !a.compareDocumentPosition - !b.compareDocumentPosition;\n\t\tif ( compare ) {\n\t\t\treturn compare;\n\t\t}\n\n\t\t// Calculate position if both inputs belong to the same document\n\t\t// Support: IE 11+, Edge 17 - 18+\n\t\t// IE/Edge sometimes throw a \"Permission denied\" error when strict-comparing\n\t\t// two documents; shallow comparisons work.\n\t\t// eslint-disable-next-line eqeqeq\n\t\tcompare = ( a.ownerDocument || a ) == ( b.ownerDocument || b ) ?\n\t\t\ta.compareDocumentPosition( b ) :\n\n\t\t\t// Otherwise we know they are disconnected\n\t\t\t1;\n\n\t\t// Disconnected nodes\n\t\tif ( compare & 1 ||\n\t\t\t( !support.sortDetached && b.compareDocumentPosition( a ) === compare ) ) {\n\n\t\t\t// Choose the first element that is related to our preferred document\n\t\t\t// Support: IE 11+, Edge 17 - 18+\n\t\t\t// IE/Edge sometimes throw a \"Permission denied\" error when strict-comparing\n\t\t\t// two documents; shallow comparisons work.\n\t\t\t// eslint-disable-next-line eqeqeq\n\t\t\tif ( a == document || a.ownerDocument == preferredDoc &&\n\t\t\t\tcontains( preferredDoc, a ) ) {\n\t\t\t\treturn -1;\n\t\t\t}\n\n\t\t\t// Support: IE 11+, Edge 17 - 18+\n\t\t\t// IE/Edge sometimes throw a \"Permission denied\" error when strict-comparing\n\t\t\t// two documents; shallow comparisons work.\n\t\t\t// eslint-disable-next-line eqeqeq\n\t\t\tif ( b == document || b.ownerDocument == preferredDoc &&\n\t\t\t\tcontains( preferredDoc, b ) ) {\n\t\t\t\treturn 1;\n\t\t\t}\n\n\t\t\t// Maintain original order\n\t\t\treturn sortInput ?\n\t\t\t\t( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) :\n\t\t\t\t0;\n\t\t}\n\n\t\treturn compare & 4 ? -1 : 1;\n\t} :\n\tfunction( a, b ) {\n\n\t\t// Exit early if the nodes are identical\n\t\tif ( a === b ) {\n\t\t\thasDuplicate = true;\n\t\t\treturn 0;\n\t\t}\n\n\t\tvar cur,\n\t\t\ti = 0,\n\t\t\taup = a.parentNode,\n\t\t\tbup = b.parentNode,\n\t\t\tap = [ a ],\n\t\t\tbp = [ b ];\n\n\t\t// Parentless nodes are either documents or disconnected\n\t\tif ( !aup || !bup ) {\n\n\t\t\t// Support: IE 11+, Edge 17 - 18+\n\t\t\t// IE/Edge sometimes throw a \"Permission denied\" error when strict-comparing\n\t\t\t// two documents; shallow comparisons work.\n\t\t\t/* eslint-disable eqeqeq */\n\t\t\treturn a == document ? -1 :\n\t\t\t\tb == document ? 1 :\n\t\t\t\t/* eslint-enable eqeqeq */\n\t\t\t\taup ? -1 :\n\t\t\t\tbup ? 1 :\n\t\t\t\tsortInput ?\n\t\t\t\t( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) :\n\t\t\t\t0;\n\n\t\t// If the nodes are siblings, we can do a quick check\n\t\t} else if ( aup === bup ) {\n\t\t\treturn siblingCheck( a, b );\n\t\t}\n\n\t\t// Otherwise we need full lists of their ancestors for comparison\n\t\tcur = a;\n\t\twhile ( ( cur = cur.parentNode ) ) {\n\t\t\tap.unshift( cur );\n\t\t}\n\t\tcur = b;\n\t\twhile ( ( cur = cur.parentNode ) ) {\n\t\t\tbp.unshift( cur );\n\t\t}\n\n\t\t// Walk down the tree looking for a discrepancy\n\t\twhile ( ap[ i ] === bp[ i ] ) {\n\t\t\ti++;\n\t\t}\n\n\t\treturn i ?\n\n\t\t\t// Do a sibling check if the nodes have a common ancestor\n\t\t\tsiblingCheck( ap[ i ], bp[ i ] ) :\n\n\t\t\t// Otherwise nodes in our document sort first\n\t\t\t// Support: IE 11+, Edge 17 - 18+\n\t\t\t// IE/Edge sometimes throw a \"Permission denied\" error when strict-comparing\n\t\t\t// two documents; shallow comparisons work.\n\t\t\t/* eslint-disable eqeqeq */\n\t\t\tap[ i ] == preferredDoc ? -1 :\n\t\t\tbp[ i ] == preferredDoc ? 1 :\n\t\t\t/* eslint-enable eqeqeq */\n\t\t\t0;\n\t};\n\n\treturn document;\n};\n\nSizzle.matches = function( expr, elements ) {\n\treturn Sizzle( expr, null, null, elements );\n};\n\nSizzle.matchesSelector = function( elem, expr ) {\n\tsetDocument( elem );\n\n\tif ( support.matchesSelector && documentIsHTML &&\n\t\t!nonnativeSelectorCache[ expr + \" \" ] &&\n\t\t( !rbuggyMatches || !rbuggyMatches.test( expr ) ) &&\n\t\t( !rbuggyQSA || !rbuggyQSA.test( expr ) ) ) {\n\n\t\ttry {\n\t\t\tvar ret = matches.call( elem, expr );\n\n\t\t\t// IE 9's matchesSelector returns false on disconnected nodes\n\t\t\tif ( ret || support.disconnectedMatch ||\n\n\t\t\t\t// As well, disconnected nodes are said to be in a document\n\t\t\t\t// fragment in IE 9\n\t\t\t\telem.document && elem.document.nodeType !== 11 ) {\n\t\t\t\treturn ret;\n\t\t\t}\n\t\t} catch ( e ) {\n\t\t\tnonnativeSelectorCache( expr, true );\n\t\t}\n\t}\n\n\treturn Sizzle( expr, document, null, [ elem ] ).length > 0;\n};\n\nSizzle.contains = function( context, elem ) {\n\n\t// Set document vars if needed\n\t// Support: IE 11+, Edge 17 - 18+\n\t// IE/Edge sometimes throw a \"Permission denied\" error when strict-comparing\n\t// two documents; shallow comparisons work.\n\t// eslint-disable-next-line eqeqeq\n\tif ( ( context.ownerDocument || context ) != document ) {\n\t\tsetDocument( context );\n\t}\n\treturn contains( context, elem );\n};\n\nSizzle.attr = function( elem, name ) {\n\n\t// Set document vars if needed\n\t// Support: IE 11+, Edge 17 - 18+\n\t// IE/Edge sometimes throw a \"Permission denied\" error when strict-comparing\n\t// two documents; shallow comparisons work.\n\t// eslint-disable-next-line eqeqeq\n\tif ( ( elem.ownerDocument || elem ) != document ) {\n\t\tsetDocument( elem );\n\t}\n\n\tvar fn = Expr.attrHandle[ name.toLowerCase() ],\n\n\t\t// Don't get fooled by Object.prototype properties (jQuery #13807)\n\t\tval = fn && hasOwn.call( Expr.attrHandle, name.toLowerCase() ) ?\n\t\t\tfn( elem, name, !documentIsHTML ) :\n\t\t\tundefined;\n\n\treturn val !== undefined ?\n\t\tval :\n\t\tsupport.attributes || !documentIsHTML ?\n\t\t\telem.getAttribute( name ) :\n\t\t\t( val = elem.getAttributeNode( name ) ) && val.specified ?\n\t\t\t\tval.value :\n\t\t\t\tnull;\n};\n\nSizzle.escape = function( sel ) {\n\treturn ( sel + \"\" ).replace( rcssescape, fcssescape );\n};\n\nSizzle.error = function( msg ) {\n\tthrow new Error( \"Syntax error, unrecognized expression: \" + msg );\n};\n\n/**\n * Document sorting and removing duplicates\n * @param {ArrayLike} results\n */\nSizzle.uniqueSort = function( results ) {\n\tvar elem,\n\t\tduplicates = [],\n\t\tj = 0,\n\t\ti = 0;\n\n\t// Unless we *know* we can detect duplicates, assume their presence\n\thasDuplicate = !support.detectDuplicates;\n\tsortInput = !support.sortStable && results.slice( 0 );\n\tresults.sort( sortOrder );\n\n\tif ( hasDuplicate ) {\n\t\twhile ( ( elem = results[ i++ ] ) ) {\n\t\t\tif ( elem === results[ i ] ) {\n\t\t\t\tj = duplicates.push( i );\n\t\t\t}\n\t\t}\n\t\twhile ( j-- ) {\n\t\t\tresults.splice( duplicates[ j ], 1 );\n\t\t}\n\t}\n\n\t// Clear input after sorting to release objects\n\t// See https://github.com/jquery/sizzle/pull/225\n\tsortInput = null;\n\n\treturn results;\n};\n\n/**\n * Utility function for retrieving the text value of an array of DOM nodes\n * @param {Array|Element} elem\n */\ngetText = Sizzle.getText = function( elem ) {\n\tvar node,\n\t\tret = \"\",\n\t\ti = 0,\n\t\tnodeType = elem.nodeType;\n\n\tif ( !nodeType ) {\n\n\t\t// If no nodeType, this is expected to be an array\n\t\twhile ( ( node = elem[ i++ ] ) ) {\n\n\t\t\t// Do not traverse comment nodes\n\t\t\tret += getText( node );\n\t\t}\n\t} else if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) {\n\n\t\t// Use textContent for elements\n\t\t// innerText usage removed for consistency of new lines (jQuery #11153)\n\t\tif ( typeof elem.textContent === \"string\" ) {\n\t\t\treturn elem.textContent;\n\t\t} else {\n\n\t\t\t// Traverse its children\n\t\t\tfor ( elem = elem.firstChild; elem; elem = elem.nextSibling ) {\n\t\t\t\tret += getText( elem );\n\t\t\t}\n\t\t}\n\t} else if ( nodeType === 3 || nodeType === 4 ) {\n\t\treturn elem.nodeValue;\n\t}\n\n\t// Do not include comment or processing instruction nodes\n\n\treturn ret;\n};\n\nExpr = Sizzle.selectors = {\n\n\t// Can be adjusted by the user\n\tcacheLength: 50,\n\n\tcreatePseudo: markFunction,\n\n\tmatch: matchExpr,\n\n\tattrHandle: {},\n\n\tfind: {},\n\n\trelative: {\n\t\t\">\": { dir: \"parentNode\", first: true },\n\t\t\" \": { dir: \"parentNode\" },\n\t\t\"+\": { dir: \"previousSibling\", first: true },\n\t\t\"~\": { dir: \"previousSibling\" }\n\t},\n\n\tpreFilter: {\n\t\t\"ATTR\": function( match ) {\n\t\t\tmatch[ 1 ] = match[ 1 ].replace( runescape, funescape );\n\n\t\t\t// Move the given value to match[3] whether quoted or unquoted\n\t\t\tmatch[ 3 ] = ( match[ 3 ] || match[ 4 ] ||\n\t\t\t\tmatch[ 5 ] || \"\" ).replace( runescape, funescape );\n\n\t\t\tif ( match[ 2 ] === \"~=\" ) {\n\t\t\t\tmatch[ 3 ] = \" \" + match[ 3 ] + \" \";\n\t\t\t}\n\n\t\t\treturn match.slice( 0, 4 );\n\t\t},\n\n\t\t\"CHILD\": function( match ) {\n\n\t\t\t/* matches from matchExpr[\"CHILD\"]\n\t\t\t\t1 type (only|nth|...)\n\t\t\t\t2 what (child|of-type)\n\t\t\t\t3 argument (even|odd|\\d*|\\d*n([+-]\\d+)?|...)\n\t\t\t\t4 xn-component of xn+y argument ([+-]?\\d*n|)\n\t\t\t\t5 sign of xn-component\n\t\t\t\t6 x of xn-component\n\t\t\t\t7 sign of y-component\n\t\t\t\t8 y of y-component\n\t\t\t*/\n\t\t\tmatch[ 1 ] = match[ 1 ].toLowerCase();\n\n\t\t\tif ( match[ 1 ].slice( 0, 3 ) === \"nth\" ) {\n\n\t\t\t\t// nth-* requires argument\n\t\t\t\tif ( !match[ 3 ] ) {\n\t\t\t\t\tSizzle.error( match[ 0 ] );\n\t\t\t\t}\n\n\t\t\t\t// numeric x and y parameters for Expr.filter.CHILD\n\t\t\t\t// remember that false/true cast respectively to 0/1\n\t\t\t\tmatch[ 4 ] = +( match[ 4 ] ?\n\t\t\t\t\tmatch[ 5 ] + ( match[ 6 ] || 1 ) :\n\t\t\t\t\t2 * ( match[ 3 ] === \"even\" || match[ 3 ] === \"odd\" ) );\n\t\t\t\tmatch[ 5 ] = +( ( match[ 7 ] + match[ 8 ] ) || match[ 3 ] === \"odd\" );\n\n\t\t\t\t// other types prohibit arguments\n\t\t\t} else if ( match[ 3 ] ) {\n\t\t\t\tSizzle.error( match[ 0 ] );\n\t\t\t}\n\n\t\t\treturn match;\n\t\t},\n\n\t\t\"PSEUDO\": function( match ) {\n\t\t\tvar excess,\n\t\t\t\tunquoted = !match[ 6 ] && match[ 2 ];\n\n\t\t\tif ( matchExpr[ \"CHILD\" ].test( match[ 0 ] ) ) {\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\t// Accept quoted arguments as-is\n\t\t\tif ( match[ 3 ] ) {\n\t\t\t\tmatch[ 2 ] = match[ 4 ] || match[ 5 ] || \"\";\n\n\t\t\t// Strip excess characters from unquoted arguments\n\t\t\t} else if ( unquoted && rpseudo.test( unquoted ) &&\n\n\t\t\t\t// Get excess from tokenize (recursively)\n\t\t\t\t( excess = tokenize( unquoted, true ) ) &&\n\n\t\t\t\t// advance to the next closing parenthesis\n\t\t\t\t( excess = unquoted.indexOf( \")\", unquoted.length - excess ) - unquoted.length ) ) {\n\n\t\t\t\t// excess is a negative index\n\t\t\t\tmatch[ 0 ] = match[ 0 ].slice( 0, excess );\n\t\t\t\tmatch[ 2 ] = unquoted.slice( 0, excess );\n\t\t\t}\n\n\t\t\t// Return only captures needed by the pseudo filter method (type and argument)\n\t\t\treturn match.slice( 0, 3 );\n\t\t}\n\t},\n\n\tfilter: {\n\n\t\t\"TAG\": function( nodeNameSelector ) {\n\t\t\tvar nodeName = nodeNameSelector.replace( runescape, funescape ).toLowerCase();\n\t\t\treturn nodeNameSelector === \"*\" ?\n\t\t\t\tfunction() {\n\t\t\t\t\treturn true;\n\t\t\t\t} :\n\t\t\t\tfunction( elem ) {\n\t\t\t\t\treturn elem.nodeName && elem.nodeName.toLowerCase() === nodeName;\n\t\t\t\t};\n\t\t},\n\n\t\t\"CLASS\": function( className ) {\n\t\t\tvar pattern = classCache[ className + \" \" ];\n\n\t\t\treturn pattern ||\n\t\t\t\t( pattern = new RegExp( \"(^|\" + whitespace +\n\t\t\t\t\t\")\" + className + \"(\" + whitespace + \"|$)\" ) ) && classCache(\n\t\t\t\t\t\tclassName, function( elem ) {\n\t\t\t\t\t\t\treturn pattern.test(\n\t\t\t\t\t\t\t\ttypeof elem.className === \"string\" && elem.className ||\n\t\t\t\t\t\t\t\ttypeof elem.getAttribute !== \"undefined\" &&\n\t\t\t\t\t\t\t\t\telem.getAttribute( \"class\" ) ||\n\t\t\t\t\t\t\t\t\"\"\n\t\t\t\t\t\t\t);\n\t\t\t\t} );\n\t\t},\n\n\t\t\"ATTR\": function( name, operator, check ) {\n\t\t\treturn function( elem ) {\n\t\t\t\tvar result = Sizzle.attr( elem, name );\n\n\t\t\t\tif ( result == null ) {\n\t\t\t\t\treturn operator === \"!=\";\n\t\t\t\t}\n\t\t\t\tif ( !operator ) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\n\t\t\t\tresult += \"\";\n\n\t\t\t\t/* eslint-disable max-len */\n\n\t\t\t\treturn operator === \"=\" ? result === check :\n\t\t\t\t\toperator === \"!=\" ? result !== check :\n\t\t\t\t\toperator === \"^=\" ? check && result.indexOf( check ) === 0 :\n\t\t\t\t\toperator === \"*=\" ? check && result.indexOf( check ) > -1 :\n\t\t\t\t\toperator === \"$=\" ? check && result.slice( -check.length ) === check :\n\t\t\t\t\toperator === \"~=\" ? ( \" \" + result.replace( rwhitespace, \" \" ) + \" \" ).indexOf( check ) > -1 :\n\t\t\t\t\toperator === \"|=\" ? result === check || result.slice( 0, check.length + 1 ) === check + \"-\" :\n\t\t\t\t\tfalse;\n\t\t\t\t/* eslint-enable max-len */\n\n\t\t\t};\n\t\t},\n\n\t\t\"CHILD\": function( type, what, _argument, first, last ) {\n\t\t\tvar simple = type.slice( 0, 3 ) !== \"nth\",\n\t\t\t\tforward = type.slice( -4 ) !== \"last\",\n\t\t\t\tofType = what === \"of-type\";\n\n\t\t\treturn first === 1 && last === 0 ?\n\n\t\t\t\t// Shortcut for :nth-*(n)\n\t\t\t\tfunction( elem ) {\n\t\t\t\t\treturn !!elem.parentNode;\n\t\t\t\t} :\n\n\t\t\t\tfunction( elem, _context, xml ) {\n\t\t\t\t\tvar cache, uniqueCache, outerCache, node, nodeIndex, start,\n\t\t\t\t\t\tdir = simple !== forward ? \"nextSibling\" : \"previousSibling\",\n\t\t\t\t\t\tparent = elem.parentNode,\n\t\t\t\t\t\tname = ofType && elem.nodeName.toLowerCase(),\n\t\t\t\t\t\tuseCache = !xml && !ofType,\n\t\t\t\t\t\tdiff = false;\n\n\t\t\t\t\tif ( parent ) {\n\n\t\t\t\t\t\t// :(first|last|only)-(child|of-type)\n\t\t\t\t\t\tif ( simple ) {\n\t\t\t\t\t\t\twhile ( dir ) {\n\t\t\t\t\t\t\t\tnode = elem;\n\t\t\t\t\t\t\t\twhile ( ( node = node[ dir ] ) ) {\n\t\t\t\t\t\t\t\t\tif ( ofType ?\n\t\t\t\t\t\t\t\t\t\tnode.nodeName.toLowerCase() === name :\n\t\t\t\t\t\t\t\t\t\tnode.nodeType === 1 ) {\n\n\t\t\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t// Reverse direction for :only-* (if we haven't yet done so)\n\t\t\t\t\t\t\t\tstart = dir = type === \"only\" && !start && \"nextSibling\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tstart = [ forward ? parent.firstChild : parent.lastChild ];\n\n\t\t\t\t\t\t// non-xml :nth-child(...) stores cache data on `parent`\n\t\t\t\t\t\tif ( forward && useCache ) {\n\n\t\t\t\t\t\t\t// Seek `elem` from a previously-cached index\n\n\t\t\t\t\t\t\t// ...in a gzip-friendly way\n\t\t\t\t\t\t\tnode = parent;\n\t\t\t\t\t\t\touterCache = node[ expando ] || ( node[ expando ] = {} );\n\n\t\t\t\t\t\t\t// Support: IE <9 only\n\t\t\t\t\t\t\t// Defend against cloned attroperties (jQuery gh-1709)\n\t\t\t\t\t\t\tuniqueCache = outerCache[ node.uniqueID ] ||\n\t\t\t\t\t\t\t\t( outerCache[ node.uniqueID ] = {} );\n\n\t\t\t\t\t\t\tcache = uniqueCache[ type ] || [];\n\t\t\t\t\t\t\tnodeIndex = cache[ 0 ] === dirruns && cache[ 1 ];\n\t\t\t\t\t\t\tdiff = nodeIndex && cache[ 2 ];\n\t\t\t\t\t\t\tnode = nodeIndex && parent.childNodes[ nodeIndex ];\n\n\t\t\t\t\t\t\twhile ( ( node = ++nodeIndex && node && node[ dir ] ||\n\n\t\t\t\t\t\t\t\t// Fallback to seeking `elem` from the start\n\t\t\t\t\t\t\t\t( diff = nodeIndex = 0 ) || start.pop() ) ) {\n\n\t\t\t\t\t\t\t\t// When found, cache indexes on `parent` and break\n\t\t\t\t\t\t\t\tif ( node.nodeType === 1 && ++diff && node === elem ) {\n\t\t\t\t\t\t\t\t\tuniqueCache[ type ] = [ dirruns, nodeIndex, diff ];\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t// Use previously-cached element index if available\n\t\t\t\t\t\t\tif ( useCache ) {\n\n\t\t\t\t\t\t\t\t// ...in a gzip-friendly way\n\t\t\t\t\t\t\t\tnode = elem;\n\t\t\t\t\t\t\t\touterCache = node[ expando ] || ( node[ expando ] = {} );\n\n\t\t\t\t\t\t\t\t// Support: IE <9 only\n\t\t\t\t\t\t\t\t// Defend against cloned attroperties (jQuery gh-1709)\n\t\t\t\t\t\t\t\tuniqueCache = outerCache[ node.uniqueID ] ||\n\t\t\t\t\t\t\t\t\t( outerCache[ node.uniqueID ] = {} );\n\n\t\t\t\t\t\t\t\tcache = uniqueCache[ type ] || [];\n\t\t\t\t\t\t\t\tnodeIndex = cache[ 0 ] === dirruns && cache[ 1 ];\n\t\t\t\t\t\t\t\tdiff = nodeIndex;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t// xml :nth-child(...)\n\t\t\t\t\t\t\t// or :nth-last-child(...) or :nth(-last)?-of-type(...)\n\t\t\t\t\t\t\tif ( diff === false ) {\n\n\t\t\t\t\t\t\t\t// Use the same loop as above to seek `elem` from the start\n\t\t\t\t\t\t\t\twhile ( ( node = ++nodeIndex && node && node[ dir ] ||\n\t\t\t\t\t\t\t\t\t( diff = nodeIndex = 0 ) || start.pop() ) ) {\n\n\t\t\t\t\t\t\t\t\tif ( ( ofType ?\n\t\t\t\t\t\t\t\t\t\tnode.nodeName.toLowerCase() === name :\n\t\t\t\t\t\t\t\t\t\tnode.nodeType === 1 ) &&\n\t\t\t\t\t\t\t\t\t\t++diff ) {\n\n\t\t\t\t\t\t\t\t\t\t// Cache the index of each encountered element\n\t\t\t\t\t\t\t\t\t\tif ( useCache ) {\n\t\t\t\t\t\t\t\t\t\t\touterCache = node[ expando ] ||\n\t\t\t\t\t\t\t\t\t\t\t\t( node[ expando ] = {} );\n\n\t\t\t\t\t\t\t\t\t\t\t// Support: IE <9 only\n\t\t\t\t\t\t\t\t\t\t\t// Defend against cloned attroperties (jQuery gh-1709)\n\t\t\t\t\t\t\t\t\t\t\tuniqueCache = outerCache[ node.uniqueID ] ||\n\t\t\t\t\t\t\t\t\t\t\t\t( outerCache[ node.uniqueID ] = {} );\n\n\t\t\t\t\t\t\t\t\t\t\tuniqueCache[ type ] = [ dirruns, diff ];\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\tif ( node === elem ) {\n\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Incorporate the offset, then check against cycle size\n\t\t\t\t\t\tdiff -= last;\n\t\t\t\t\t\treturn diff === first || ( diff % first === 0 && diff / first >= 0 );\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t},\n\n\t\t\"PSEUDO\": function( pseudo, argument ) {\n\n\t\t\t// pseudo-class names are case-insensitive\n\t\t\t// http://www.w3.org/TR/selectors/#pseudo-classes\n\t\t\t// Prioritize by case sensitivity in case custom pseudos are added with uppercase letters\n\t\t\t// Remember that setFilters inherits from pseudos\n\t\t\tvar args,\n\t\t\t\tfn = Expr.pseudos[ pseudo ] || Expr.setFilters[ pseudo.toLowerCase() ] ||\n\t\t\t\t\tSizzle.error( \"unsupported pseudo: \" + pseudo );\n\n\t\t\t// The user may use createPseudo to indicate that\n\t\t\t// arguments are needed to create the filter function\n\t\t\t// just as Sizzle does\n\t\t\tif ( fn[ expando ] ) {\n\t\t\t\treturn fn( argument );\n\t\t\t}\n\n\t\t\t// But maintain support for old signatures\n\t\t\tif ( fn.length > 1 ) {\n\t\t\t\targs = [ pseudo, pseudo, \"\", argument ];\n\t\t\t\treturn Expr.setFilters.hasOwnProperty( pseudo.toLowerCase() ) ?\n\t\t\t\t\tmarkFunction( function( seed, matches ) {\n\t\t\t\t\t\tvar idx,\n\t\t\t\t\t\t\tmatched = fn( seed, argument ),\n\t\t\t\t\t\t\ti = matched.length;\n\t\t\t\t\t\twhile ( i-- ) {\n\t\t\t\t\t\t\tidx = indexOf( seed, matched[ i ] );\n\t\t\t\t\t\t\tseed[ idx ] = !( matches[ idx ] = matched[ i ] );\n\t\t\t\t\t\t}\n\t\t\t\t\t} ) :\n\t\t\t\t\tfunction( elem ) {\n\t\t\t\t\t\treturn fn( elem, 0, args );\n\t\t\t\t\t};\n\t\t\t}\n\n\t\t\treturn fn;\n\t\t}\n\t},\n\n\tpseudos: {\n\n\t\t// Potentially complex pseudos\n\t\t\"not\": markFunction( function( selector ) {\n\n\t\t\t// Trim the selector passed to compile\n\t\t\t// to avoid treating leading and trailing\n\t\t\t// spaces as combinators\n\t\t\tvar input = [],\n\t\t\t\tresults = [],\n\t\t\t\tmatcher = compile( selector.replace( rtrim, \"$1\" ) );\n\n\t\t\treturn matcher[ expando ] ?\n\t\t\t\tmarkFunction( function( seed, matches, _context, xml ) {\n\t\t\t\t\tvar elem,\n\t\t\t\t\t\tunmatched = matcher( seed, null, xml, [] ),\n\t\t\t\t\t\ti = seed.length;\n\n\t\t\t\t\t// Match elements unmatched by `matcher`\n\t\t\t\t\twhile ( i-- ) {\n\t\t\t\t\t\tif ( ( elem = unmatched[ i ] ) ) {\n\t\t\t\t\t\t\tseed[ i ] = !( matches[ i ] = elem );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} ) :\n\t\t\t\tfunction( elem, _context, xml ) {\n\t\t\t\t\tinput[ 0 ] = elem;\n\t\t\t\t\tmatcher( input, null, xml, results );\n\n\t\t\t\t\t// Don't keep the element (issue #299)\n\t\t\t\t\tinput[ 0 ] = null;\n\t\t\t\t\treturn !results.pop();\n\t\t\t\t};\n\t\t} ),\n\n\t\t\"has\": markFunction( function( selector ) {\n\t\t\treturn function( elem ) {\n\t\t\t\treturn Sizzle( selector, elem ).length > 0;\n\t\t\t};\n\t\t} ),\n\n\t\t\"contains\": markFunction( function( text ) {\n\t\t\ttext = text.replace( runescape, funescape );\n\t\t\treturn function( elem ) {\n\t\t\t\treturn ( elem.textContent || getText( elem ) ).indexOf( text ) > -1;\n\t\t\t};\n\t\t} ),\n\n\t\t// \"Whether an element is represented by a :lang() selector\n\t\t// is based solely on the element's language value\n\t\t// being equal to the identifier C,\n\t\t// or beginning with the identifier C immediately followed by \"-\".\n\t\t// The matching of C against the element's language value is performed case-insensitively.\n\t\t// The identifier C does not have to be a valid language name.\"\n\t\t// http://www.w3.org/TR/selectors/#lang-pseudo\n\t\t\"lang\": markFunction( function( lang ) {\n\n\t\t\t// lang value must be a valid identifier\n\t\t\tif ( !ridentifier.test( lang || \"\" ) ) {\n\t\t\t\tSizzle.error( \"unsupported lang: \" + lang );\n\t\t\t}\n\t\t\tlang = lang.replace( runescape, funescape ).toLowerCase();\n\t\t\treturn function( elem ) {\n\t\t\t\tvar elemLang;\n\t\t\t\tdo {\n\t\t\t\t\tif ( ( elemLang = documentIsHTML ?\n\t\t\t\t\t\telem.lang :\n\t\t\t\t\t\telem.getAttribute( \"xml:lang\" ) || elem.getAttribute( \"lang\" ) ) ) {\n\n\t\t\t\t\t\telemLang = elemLang.toLowerCase();\n\t\t\t\t\t\treturn elemLang === lang || elemLang.indexOf( lang + \"-\" ) === 0;\n\t\t\t\t\t}\n\t\t\t\t} while ( ( elem = elem.parentNode ) && elem.nodeType === 1 );\n\t\t\t\treturn false;\n\t\t\t};\n\t\t} ),\n\n\t\t// Miscellaneous\n\t\t\"target\": function( elem ) {\n\t\t\tvar hash = window.location && window.location.hash;\n\t\t\treturn hash && hash.slice( 1 ) === elem.id;\n\t\t},\n\n\t\t\"root\": function( elem ) {\n\t\t\treturn elem === docElem;\n\t\t},\n\n\t\t\"focus\": function( elem ) {\n\t\t\treturn elem === document.activeElement &&\n\t\t\t\t( !document.hasFocus || document.hasFocus() ) &&\n\t\t\t\t!!( elem.type || elem.href || ~elem.tabIndex );\n\t\t},\n\n\t\t// Boolean properties\n\t\t\"enabled\": createDisabledPseudo( false ),\n\t\t\"disabled\": createDisabledPseudo( true ),\n\n\t\t\"checked\": function( elem ) {\n\n\t\t\t// In CSS3, :checked should return both checked and selected elements\n\t\t\t// http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked\n\t\t\tvar nodeName = elem.nodeName.toLowerCase();\n\t\t\treturn ( nodeName === \"input\" && !!elem.checked ) ||\n\t\t\t\t( nodeName === \"option\" && !!elem.selected );\n\t\t},\n\n\t\t\"selected\": function( elem ) {\n\n\t\t\t// Accessing this property makes selected-by-default\n\t\t\t// options in Safari work properly\n\t\t\tif ( elem.parentNode ) {\n\t\t\t\t// eslint-disable-next-line no-unused-expressions\n\t\t\t\telem.parentNode.selectedIndex;\n\t\t\t}\n\n\t\t\treturn elem.selected === true;\n\t\t},\n\n\t\t// Contents\n\t\t\"empty\": function( elem ) {\n\n\t\t\t// http://www.w3.org/TR/selectors/#empty-pseudo\n\t\t\t// :empty is negated by element (1) or content nodes (text: 3; cdata: 4; entity ref: 5),\n\t\t\t// but not by others (comment: 8; processing instruction: 7; etc.)\n\t\t\t// nodeType < 6 works because attributes (2) do not appear as children\n\t\t\tfor ( elem = elem.firstChild; elem; elem = elem.nextSibling ) {\n\t\t\t\tif ( elem.nodeType < 6 ) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn true;\n\t\t},\n\n\t\t\"parent\": function( elem ) {\n\t\t\treturn !Expr.pseudos[ \"empty\" ]( elem );\n\t\t},\n\n\t\t// Element/input types\n\t\t\"header\": function( elem ) {\n\t\t\treturn rheader.test( elem.nodeName );\n\t\t},\n\n\t\t\"input\": function( elem ) {\n\t\t\treturn rinputs.test( elem.nodeName );\n\t\t},\n\n\t\t\"button\": function( elem ) {\n\t\t\tvar name = elem.nodeName.toLowerCase();\n\t\t\treturn name === \"input\" && elem.type === \"button\" || name === \"button\";\n\t\t},\n\n\t\t\"text\": function( elem ) {\n\t\t\tvar attr;\n\t\t\treturn elem.nodeName.toLowerCase() === \"input\" &&\n\t\t\t\telem.type === \"text\" &&\n\n\t\t\t\t// Support: IE<8\n\t\t\t\t// New HTML5 attribute values (e.g., \"search\") appear with elem.type === \"text\"\n\t\t\t\t( ( attr = elem.getAttribute( \"type\" ) ) == null ||\n\t\t\t\t\tattr.toLowerCase() === \"text\" );\n\t\t},\n\n\t\t// Position-in-collection\n\t\t\"first\": createPositionalPseudo( function() {\n\t\t\treturn [ 0 ];\n\t\t} ),\n\n\t\t\"last\": createPositionalPseudo( function( _matchIndexes, length ) {\n\t\t\treturn [ length - 1 ];\n\t\t} ),\n\n\t\t\"eq\": createPositionalPseudo( function( _matchIndexes, length, argument ) {\n\t\t\treturn [ argument < 0 ? argument + length : argument ];\n\t\t} ),\n\n\t\t\"even\": createPositionalPseudo( function( matchIndexes, length ) {\n\t\t\tvar i = 0;\n\t\t\tfor ( ; i < length; i += 2 ) {\n\t\t\t\tmatchIndexes.push( i );\n\t\t\t}\n\t\t\treturn matchIndexes;\n\t\t} ),\n\n\t\t\"odd\": createPositionalPseudo( function( matchIndexes, length ) {\n\t\t\tvar i = 1;\n\t\t\tfor ( ; i < length; i += 2 ) {\n\t\t\t\tmatchIndexes.push( i );\n\t\t\t}\n\t\t\treturn matchIndexes;\n\t\t} ),\n\n\t\t\"lt\": createPositionalPseudo( function( matchIndexes, length, argument ) {\n\t\t\tvar i = argument < 0 ?\n\t\t\t\targument + length :\n\t\t\t\targument > length ?\n\t\t\t\t\tlength :\n\t\t\t\t\targument;\n\t\t\tfor ( ; --i >= 0; ) {\n\t\t\t\tmatchIndexes.push( i );\n\t\t\t}\n\t\t\treturn matchIndexes;\n\t\t} ),\n\n\t\t\"gt\": createPositionalPseudo( function( matchIndexes, length, argument ) {\n\t\t\tvar i = argument < 0 ? argument + length : argument;\n\t\t\tfor ( ; ++i < length; ) {\n\t\t\t\tmatchIndexes.push( i );\n\t\t\t}\n\t\t\treturn matchIndexes;\n\t\t} )\n\t}\n};\n\nExpr.pseudos[ \"nth\" ] = Expr.pseudos[ \"eq\" ];\n\n// Add button/input type pseudos\nfor ( i in { radio: true, checkbox: true, file: true, password: true, image: true } ) {\n\tExpr.pseudos[ i ] = createInputPseudo( i );\n}\nfor ( i in { submit: true, reset: true } ) {\n\tExpr.pseudos[ i ] = createButtonPseudo( i );\n}\n\n// Easy API for creating new setFilters\nfunction setFilters() {}\nsetFilters.prototype = Expr.filters = Expr.pseudos;\nExpr.setFilters = new setFilters();\n\ntokenize = Sizzle.tokenize = function( selector, parseOnly ) {\n\tvar matched, match, tokens, type,\n\t\tsoFar, groups, preFilters,\n\t\tcached = tokenCache[ selector + \" \" ];\n\n\tif ( cached ) {\n\t\treturn parseOnly ? 0 : cached.slice( 0 );\n\t}\n\n\tsoFar = selector;\n\tgroups = [];\n\tpreFilters = Expr.preFilter;\n\n\twhile ( soFar ) {\n\n\t\t// Comma and first run\n\t\tif ( !matched || ( match = rcomma.exec( soFar ) ) ) {\n\t\t\tif ( match ) {\n\n\t\t\t\t// Don't consume trailing commas as valid\n\t\t\t\tsoFar = soFar.slice( match[ 0 ].length ) || soFar;\n\t\t\t}\n\t\t\tgroups.push( ( tokens = [] ) );\n\t\t}\n\n\t\tmatched = false;\n\n\t\t// Combinators\n\t\tif ( ( match = rcombinators.exec( soFar ) ) ) {\n\t\t\tmatched = match.shift();\n\t\t\ttokens.push( {\n\t\t\t\tvalue: matched,\n\n\t\t\t\t// Cast descendant combinators to space\n\t\t\t\ttype: match[ 0 ].replace( rtrim, \" \" )\n\t\t\t} );\n\t\t\tsoFar = soFar.slice( matched.length );\n\t\t}\n\n\t\t// Filters\n\t\tfor ( type in Expr.filter ) {\n\t\t\tif ( ( match = matchExpr[ type ].exec( soFar ) ) && ( !preFilters[ type ] ||\n\t\t\t\t( match = preFilters[ type ]( match ) ) ) ) {\n\t\t\t\tmatched = match.shift();\n\t\t\t\ttokens.push( {\n\t\t\t\t\tvalue: matched,\n\t\t\t\t\ttype: type,\n\t\t\t\t\tmatches: match\n\t\t\t\t} );\n\t\t\t\tsoFar = soFar.slice( matched.length );\n\t\t\t}\n\t\t}\n\n\t\tif ( !matched ) {\n\t\t\tbreak;\n\t\t}\n\t}\n\n\t// Return the length of the invalid excess\n\t// if we're just parsing\n\t// Otherwise, throw an error or return tokens\n\treturn parseOnly ?\n\t\tsoFar.length :\n\t\tsoFar ?\n\t\t\tSizzle.error( selector ) :\n\n\t\t\t// Cache the tokens\n\t\t\ttokenCache( selector, groups ).slice( 0 );\n};\n\nfunction toSelector( tokens ) {\n\tvar i = 0,\n\t\tlen = tokens.length,\n\t\tselector = \"\";\n\tfor ( ; i < len; i++ ) {\n\t\tselector += tokens[ i ].value;\n\t}\n\treturn selector;\n}\n\nfunction addCombinator( matcher, combinator, base ) {\n\tvar dir = combinator.dir,\n\t\tskip = combinator.next,\n\t\tkey = skip || dir,\n\t\tcheckNonElements = base && key === \"parentNode\",\n\t\tdoneName = done++;\n\n\treturn combinator.first ?\n\n\t\t// Check against closest ancestor/preceding element\n\t\tfunction( elem, context, xml ) {\n\t\t\twhile ( ( elem = elem[ dir ] ) ) {\n\t\t\t\tif ( elem.nodeType === 1 || checkNonElements ) {\n\t\t\t\t\treturn matcher( elem, context, xml );\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn false;\n\t\t} :\n\n\t\t// Check against all ancestor/preceding elements\n\t\tfunction( elem, context, xml ) {\n\t\t\tvar oldCache, uniqueCache, outerCache,\n\t\t\t\tnewCache = [ dirruns, doneName ];\n\n\t\t\t// We can't set arbitrary data on XML nodes, so they don't benefit from combinator caching\n\t\t\tif ( xml ) {\n\t\t\t\twhile ( ( elem = elem[ dir ] ) ) {\n\t\t\t\t\tif ( elem.nodeType === 1 || checkNonElements ) {\n\t\t\t\t\t\tif ( matcher( elem, context, xml ) ) {\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\twhile ( ( elem = elem[ dir ] ) ) {\n\t\t\t\t\tif ( elem.nodeType === 1 || checkNonElements ) {\n\t\t\t\t\t\touterCache = elem[ expando ] || ( elem[ expando ] = {} );\n\n\t\t\t\t\t\t// Support: IE <9 only\n\t\t\t\t\t\t// Defend against cloned attroperties (jQuery gh-1709)\n\t\t\t\t\t\tuniqueCache = outerCache[ elem.uniqueID ] ||\n\t\t\t\t\t\t\t( outerCache[ elem.uniqueID ] = {} );\n\n\t\t\t\t\t\tif ( skip && skip === elem.nodeName.toLowerCase() ) {\n\t\t\t\t\t\t\telem = elem[ dir ] || elem;\n\t\t\t\t\t\t} else if ( ( oldCache = uniqueCache[ key ] ) &&\n\t\t\t\t\t\t\toldCache[ 0 ] === dirruns && oldCache[ 1 ] === doneName ) {\n\n\t\t\t\t\t\t\t// Assign to newCache so results back-propagate to previous elements\n\t\t\t\t\t\t\treturn ( newCache[ 2 ] = oldCache[ 2 ] );\n\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t// Reuse newcache so results back-propagate to previous elements\n\t\t\t\t\t\t\tuniqueCache[ key ] = newCache;\n\n\t\t\t\t\t\t\t// A match means we're done; a fail means we have to keep checking\n\t\t\t\t\t\t\tif ( ( newCache[ 2 ] = matcher( elem, context, xml ) ) ) {\n\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn false;\n\t\t};\n}\n\nfunction elementMatcher( matchers ) {\n\treturn matchers.length > 1 ?\n\t\tfunction( elem, context, xml ) {\n\t\t\tvar i = matchers.length;\n\t\t\twhile ( i-- ) {\n\t\t\t\tif ( !matchers[ i ]( elem, context, xml ) ) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn true;\n\t\t} :\n\t\tmatchers[ 0 ];\n}\n\nfunction multipleContexts( selector, contexts, results ) {\n\tvar i = 0,\n\t\tlen = contexts.length;\n\tfor ( ; i < len; i++ ) {\n\t\tSizzle( selector, contexts[ i ], results );\n\t}\n\treturn results;\n}\n\nfunction condense( unmatched, map, filter, context, xml ) {\n\tvar elem,\n\t\tnewUnmatched = [],\n\t\ti = 0,\n\t\tlen = unmatched.length,\n\t\tmapped = map != null;\n\n\tfor ( ; i < len; i++ ) {\n\t\tif ( ( elem = unmatched[ i ] ) ) {\n\t\t\tif ( !filter || filter( elem, context, xml ) ) {\n\t\t\t\tnewUnmatched.push( elem );\n\t\t\t\tif ( mapped ) {\n\t\t\t\t\tmap.push( i );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn newUnmatched;\n}\n\nfunction setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) {\n\tif ( postFilter && !postFilter[ expando ] ) {\n\t\tpostFilter = setMatcher( postFilter );\n\t}\n\tif ( postFinder && !postFinder[ expando ] ) {\n\t\tpostFinder = setMatcher( postFinder, postSelector );\n\t}\n\treturn markFunction( function( seed, results, context, xml ) {\n\t\tvar temp, i, elem,\n\t\t\tpreMap = [],\n\t\t\tpostMap = [],\n\t\t\tpreexisting = results.length,\n\n\t\t\t// Get initial elements from seed or context\n\t\t\telems = seed || multipleContexts(\n\t\t\t\tselector || \"*\",\n\t\t\t\tcontext.nodeType ? [ context ] : context,\n\t\t\t\t[]\n\t\t\t),\n\n\t\t\t// Prefilter to get matcher input, preserving a map for seed-results synchronization\n\t\t\tmatcherIn = preFilter && ( seed || !selector ) ?\n\t\t\t\tcondense( elems, preMap, preFilter, context, xml ) :\n\t\t\t\telems,\n\n\t\t\tmatcherOut = matcher ?\n\n\t\t\t\t// If we have a postFinder, or filtered seed, or non-seed postFilter or preexisting results,\n\t\t\t\tpostFinder || ( seed ? preFilter : preexisting || postFilter ) ?\n\n\t\t\t\t\t// ...intermediate processing is necessary\n\t\t\t\t\t[] :\n\n\t\t\t\t\t// ...otherwise use results directly\n\t\t\t\t\tresults :\n\t\t\t\tmatcherIn;\n\n\t\t// Find primary matches\n\t\tif ( matcher ) {\n\t\t\tmatcher( matcherIn, matcherOut, context, xml );\n\t\t}\n\n\t\t// Apply postFilter\n\t\tif ( postFilter ) {\n\t\t\ttemp = condense( matcherOut, postMap );\n\t\t\tpostFilter( temp, [], context, xml );\n\n\t\t\t// Un-match failing elements by moving them back to matcherIn\n\t\t\ti = temp.length;\n\t\t\twhile ( i-- ) {\n\t\t\t\tif ( ( elem = temp[ i ] ) ) {\n\t\t\t\t\tmatcherOut[ postMap[ i ] ] = !( matcherIn[ postMap[ i ] ] = elem );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif ( seed ) {\n\t\t\tif ( postFinder || preFilter ) {\n\t\t\t\tif ( postFinder ) {\n\n\t\t\t\t\t// Get the final matcherOut by condensing this intermediate into postFinder contexts\n\t\t\t\t\ttemp = [];\n\t\t\t\t\ti = matcherOut.length;\n\t\t\t\t\twhile ( i-- ) {\n\t\t\t\t\t\tif ( ( elem = matcherOut[ i ] ) ) {\n\n\t\t\t\t\t\t\t// Restore matcherIn since elem is not yet a final match\n\t\t\t\t\t\t\ttemp.push( ( matcherIn[ i ] = elem ) );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tpostFinder( null, ( matcherOut = [] ), temp, xml );\n\t\t\t\t}\n\n\t\t\t\t// Move matched elements from seed to results to keep them synchronized\n\t\t\t\ti = matcherOut.length;\n\t\t\t\twhile ( i-- ) {\n\t\t\t\t\tif ( ( elem = matcherOut[ i ] ) &&\n\t\t\t\t\t\t( temp = postFinder ? indexOf( seed, elem ) : preMap[ i ] ) > -1 ) {\n\n\t\t\t\t\t\tseed[ temp ] = !( results[ temp ] = elem );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t// Add elements to results, through postFinder if defined\n\t\t} else {\n\t\t\tmatcherOut = condense(\n\t\t\t\tmatcherOut === results ?\n\t\t\t\t\tmatcherOut.splice( preexisting, matcherOut.length ) :\n\t\t\t\t\tmatcherOut\n\t\t\t);\n\t\t\tif ( postFinder ) {\n\t\t\t\tpostFinder( null, results, matcherOut, xml );\n\t\t\t} else {\n\t\t\t\tpush.apply( results, matcherOut );\n\t\t\t}\n\t\t}\n\t} );\n}\n\nfunction matcherFromTokens( tokens ) {\n\tvar checkContext, matcher, j,\n\t\tlen = tokens.length,\n\t\tleadingRelative = Expr.relative[ tokens[ 0 ].type ],\n\t\timplicitRelative = leadingRelative || Expr.relative[ \" \" ],\n\t\ti = leadingRelative ? 1 : 0,\n\n\t\t// The foundational matcher ensures that elements are reachable from top-level context(s)\n\t\tmatchContext = addCombinator( function( elem ) {\n\t\t\treturn elem === checkContext;\n\t\t}, implicitRelative, true ),\n\t\tmatchAnyContext = addCombinator( function( elem ) {\n\t\t\treturn indexOf( checkContext, elem ) > -1;\n\t\t}, implicitRelative, true ),\n\t\tmatchers = [ function( elem, context, xml ) {\n\t\t\tvar ret = ( !leadingRelative && ( xml || context !== outermostContext ) ) || (\n\t\t\t\t( checkContext = context ).nodeType ?\n\t\t\t\t\tmatchContext( elem, context, xml ) :\n\t\t\t\t\tmatchAnyContext( elem, context, xml ) );\n\n\t\t\t// Avoid hanging onto element (issue #299)\n\t\t\tcheckContext = null;\n\t\t\treturn ret;\n\t\t} ];\n\n\tfor ( ; i < len; i++ ) {\n\t\tif ( ( matcher = Expr.relative[ tokens[ i ].type ] ) ) {\n\t\t\tmatchers = [ addCombinator( elementMatcher( matchers ), matcher ) ];\n\t\t} else {\n\t\t\tmatcher = Expr.filter[ tokens[ i ].type ].apply( null, tokens[ i ].matches );\n\n\t\t\t// Return special upon seeing a positional matcher\n\t\t\tif ( matcher[ expando ] ) {\n\n\t\t\t\t// Find the next relative operator (if any) for proper handling\n\t\t\t\tj = ++i;\n\t\t\t\tfor ( ; j < len; j++ ) {\n\t\t\t\t\tif ( Expr.relative[ tokens[ j ].type ] ) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn setMatcher(\n\t\t\t\t\ti > 1 && elementMatcher( matchers ),\n\t\t\t\t\ti > 1 && toSelector(\n\n\t\t\t\t\t// If the preceding token was a descendant combinator, insert an implicit any-element `*`\n\t\t\t\t\ttokens\n\t\t\t\t\t\t.slice( 0, i - 1 )\n\t\t\t\t\t\t.concat( { value: tokens[ i - 2 ].type === \" \" ? \"*\" : \"\" } )\n\t\t\t\t\t).replace( rtrim, \"$1\" ),\n\t\t\t\t\tmatcher,\n\t\t\t\t\ti < j && matcherFromTokens( tokens.slice( i, j ) ),\n\t\t\t\t\tj < len && matcherFromTokens( ( tokens = tokens.slice( j ) ) ),\n\t\t\t\t\tj < len && toSelector( tokens )\n\t\t\t\t);\n\t\t\t}\n\t\t\tmatchers.push( matcher );\n\t\t}\n\t}\n\n\treturn elementMatcher( matchers );\n}\n\nfunction matcherFromGroupMatchers( elementMatchers, setMatchers ) {\n\tvar bySet = setMatchers.length > 0,\n\t\tbyElement = elementMatchers.length > 0,\n\t\tsuperMatcher = function( seed, context, xml, results, outermost ) {\n\t\t\tvar elem, j, matcher,\n\t\t\t\tmatchedCount = 0,\n\t\t\t\ti = \"0\",\n\t\t\t\tunmatched = seed && [],\n\t\t\t\tsetMatched = [],\n\t\t\t\tcontextBackup = outermostContext,\n\n\t\t\t\t// We must always have either seed elements or outermost context\n\t\t\t\telems = seed || byElement && Expr.find[ \"TAG\" ]( \"*\", outermost ),\n\n\t\t\t\t// Use integer dirruns iff this is the outermost matcher\n\t\t\t\tdirrunsUnique = ( dirruns += contextBackup == null ? 1 : Math.random() || 0.1 ),\n\t\t\t\tlen = elems.length;\n\n\t\t\tif ( outermost ) {\n\n\t\t\t\t// Support: IE 11+, Edge 17 - 18+\n\t\t\t\t// IE/Edge sometimes throw a \"Permission denied\" error when strict-comparing\n\t\t\t\t// two documents; shallow comparisons work.\n\t\t\t\t// eslint-disable-next-line eqeqeq\n\t\t\t\toutermostContext = context == document || context || outermost;\n\t\t\t}\n\n\t\t\t// Add elements passing elementMatchers directly to results\n\t\t\t// Support: IE<9, Safari\n\t\t\t// Tolerate NodeList properties (IE: \"length\"; Safari: ) matching elements by id\n\t\t\tfor ( ; i !== len && ( elem = elems[ i ] ) != null; i++ ) {\n\t\t\t\tif ( byElement && elem ) {\n\t\t\t\t\tj = 0;\n\n\t\t\t\t\t// Support: IE 11+, Edge 17 - 18+\n\t\t\t\t\t// IE/Edge sometimes throw a \"Permission denied\" error when strict-comparing\n\t\t\t\t\t// two documents; shallow comparisons work.\n\t\t\t\t\t// eslint-disable-next-line eqeqeq\n\t\t\t\t\tif ( !context && elem.ownerDocument != document ) {\n\t\t\t\t\t\tsetDocument( elem );\n\t\t\t\t\t\txml = !documentIsHTML;\n\t\t\t\t\t}\n\t\t\t\t\twhile ( ( matcher = elementMatchers[ j++ ] ) ) {\n\t\t\t\t\t\tif ( matcher( elem, context || document, xml ) ) {\n\t\t\t\t\t\t\tresults.push( elem );\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif ( outermost ) {\n\t\t\t\t\t\tdirruns = dirrunsUnique;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Track unmatched elements for set filters\n\t\t\t\tif ( bySet ) {\n\n\t\t\t\t\t// They will have gone through all possible matchers\n\t\t\t\t\tif ( ( elem = !matcher && elem ) ) {\n\t\t\t\t\t\tmatchedCount--;\n\t\t\t\t\t}\n\n\t\t\t\t\t// Lengthen the array for every element, matched or not\n\t\t\t\t\tif ( seed ) {\n\t\t\t\t\t\tunmatched.push( elem );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// `i` is now the count of elements visited above, and adding it to `matchedCount`\n\t\t\t// makes the latter nonnegative.\n\t\t\tmatchedCount += i;\n\n\t\t\t// Apply set filters to unmatched elements\n\t\t\t// NOTE: This can be skipped if there are no unmatched elements (i.e., `matchedCount`\n\t\t\t// equals `i`), unless we didn't visit _any_ elements in the above loop because we have\n\t\t\t// no element matchers and no seed.\n\t\t\t// Incrementing an initially-string \"0\" `i` allows `i` to remain a string only in that\n\t\t\t// case, which will result in a \"00\" `matchedCount` that differs from `i` but is also\n\t\t\t// numerically zero.\n\t\t\tif ( bySet && i !== matchedCount ) {\n\t\t\t\tj = 0;\n\t\t\t\twhile ( ( matcher = setMatchers[ j++ ] ) ) {\n\t\t\t\t\tmatcher( unmatched, setMatched, context, xml );\n\t\t\t\t}\n\n\t\t\t\tif ( seed ) {\n\n\t\t\t\t\t// Reintegrate element matches to eliminate the need for sorting\n\t\t\t\t\tif ( matchedCount > 0 ) {\n\t\t\t\t\t\twhile ( i-- ) {\n\t\t\t\t\t\t\tif ( !( unmatched[ i ] || setMatched[ i ] ) ) {\n\t\t\t\t\t\t\t\tsetMatched[ i ] = pop.call( results );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// Discard index placeholder values to get only actual matches\n\t\t\t\t\tsetMatched = condense( setMatched );\n\t\t\t\t}\n\n\t\t\t\t// Add matches to results\n\t\t\t\tpush.apply( results, setMatched );\n\n\t\t\t\t// Seedless set matches succeeding multiple successful matchers stipulate sorting\n\t\t\t\tif ( outermost && !seed && setMatched.length > 0 &&\n\t\t\t\t\t( matchedCount + setMatchers.length ) > 1 ) {\n\n\t\t\t\t\tSizzle.uniqueSort( results );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Override manipulation of globals by nested matchers\n\t\t\tif ( outermost ) {\n\t\t\t\tdirruns = dirrunsUnique;\n\t\t\t\toutermostContext = contextBackup;\n\t\t\t}\n\n\t\t\treturn unmatched;\n\t\t};\n\n\treturn bySet ?\n\t\tmarkFunction( superMatcher ) :\n\t\tsuperMatcher;\n}\n\ncompile = Sizzle.compile = function( selector, match /* Internal Use Only */ ) {\n\tvar i,\n\t\tsetMatchers = [],\n\t\telementMatchers = [],\n\t\tcached = compilerCache[ selector + \" \" ];\n\n\tif ( !cached ) {\n\n\t\t// Generate a function of recursive functions that can be used to check each element\n\t\tif ( !match ) {\n\t\t\tmatch = tokenize( selector );\n\t\t}\n\t\ti = match.length;\n\t\twhile ( i-- ) {\n\t\t\tcached = matcherFromTokens( match[ i ] );\n\t\t\tif ( cached[ expando ] ) {\n\t\t\t\tsetMatchers.push( cached );\n\t\t\t} else {\n\t\t\t\telementMatchers.push( cached );\n\t\t\t}\n\t\t}\n\n\t\t// Cache the compiled function\n\t\tcached = compilerCache(\n\t\t\tselector,\n\t\t\tmatcherFromGroupMatchers( elementMatchers, setMatchers )\n\t\t);\n\n\t\t// Save selector and tokenization\n\t\tcached.selector = selector;\n\t}\n\treturn cached;\n};\n\n/**\n * A low-level selection function that works with Sizzle's compiled\n * selector functions\n * @param {String|Function} selector A selector or a pre-compiled\n * selector function built with Sizzle.compile\n * @param {Element} context\n * @param {Array} [results]\n * @param {Array} [seed] A set of elements to match against\n */\nselect = Sizzle.select = function( selector, context, results, seed ) {\n\tvar i, tokens, token, type, find,\n\t\tcompiled = typeof selector === \"function\" && selector,\n\t\tmatch = !seed && tokenize( ( selector = compiled.selector || selector ) );\n\n\tresults = results || [];\n\n\t// Try to minimize operations if there is only one selector in the list and no seed\n\t// (the latter of which guarantees us context)\n\tif ( match.length === 1 ) {\n\n\t\t// Reduce context if the leading compound selector is an ID\n\t\ttokens = match[ 0 ] = match[ 0 ].slice( 0 );\n\t\tif ( tokens.length > 2 && ( token = tokens[ 0 ] ).type === \"ID\" &&\n\t\t\tcontext.nodeType === 9 && documentIsHTML && Expr.relative[ tokens[ 1 ].type ] ) {\n\n\t\t\tcontext = ( Expr.find[ \"ID\" ]( token.matches[ 0 ]\n\t\t\t\t.replace( runescape, funescape ), context ) || [] )[ 0 ];\n\t\t\tif ( !context ) {\n\t\t\t\treturn results;\n\n\t\t\t// Precompiled matchers will still verify ancestry, so step up a level\n\t\t\t} else if ( compiled ) {\n\t\t\t\tcontext = context.parentNode;\n\t\t\t}\n\n\t\t\tselector = selector.slice( tokens.shift().value.length );\n\t\t}\n\n\t\t// Fetch a seed set for right-to-left matching\n\t\ti = matchExpr[ \"needsContext\" ].test( selector ) ? 0 : tokens.length;\n\t\twhile ( i-- ) {\n\t\t\ttoken = tokens[ i ];\n\n\t\t\t// Abort if we hit a combinator\n\t\t\tif ( Expr.relative[ ( type = token.type ) ] ) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif ( ( find = Expr.find[ type ] ) ) {\n\n\t\t\t\t// Search, expanding context for leading sibling combinators\n\t\t\t\tif ( ( seed = find(\n\t\t\t\t\ttoken.matches[ 0 ].replace( runescape, funescape ),\n\t\t\t\t\trsibling.test( tokens[ 0 ].type ) && testContext( context.parentNode ) ||\n\t\t\t\t\t\tcontext\n\t\t\t\t) ) ) {\n\n\t\t\t\t\t// If seed is empty or no tokens remain, we can return early\n\t\t\t\t\ttokens.splice( i, 1 );\n\t\t\t\t\tselector = seed.length && toSelector( tokens );\n\t\t\t\t\tif ( !selector ) {\n\t\t\t\t\t\tpush.apply( results, seed );\n\t\t\t\t\t\treturn results;\n\t\t\t\t\t}\n\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t// Compile and execute a filtering function if one is not provided\n\t// Provide `match` to avoid retokenization if we modified the selector above\n\t( compiled || compile( selector, match ) )(\n\t\tseed,\n\t\tcontext,\n\t\t!documentIsHTML,\n\t\tresults,\n\t\t!context || rsibling.test( selector ) && testContext( context.parentNode ) || context\n\t);\n\treturn results;\n};\n\n// One-time assignments\n\n// Sort stability\nsupport.sortStable = expando.split( \"\" ).sort( sortOrder ).join( \"\" ) === expando;\n\n// Support: Chrome 14-35+\n// Always assume duplicates if they aren't passed to the comparison function\nsupport.detectDuplicates = !!hasDuplicate;\n\n// Initialize against the default document\nsetDocument();\n\n// Support: Webkit<537.32 - Safari 6.0.3/Chrome 25 (fixed in Chrome 27)\n// Detached nodes confoundingly follow *each other*\nsupport.sortDetached = assert( function( el ) {\n\n\t// Should return 1, but returns 4 (following)\n\treturn el.compareDocumentPosition( document.createElement( \"fieldset\" ) ) & 1;\n} );\n\n// Support: IE<8\n// Prevent attribute/property \"interpolation\"\n// https://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx\nif ( !assert( function( el ) {\n\tel.innerHTML = \" \";\n\treturn el.firstChild.getAttribute( \"href\" ) === \"#\";\n} ) ) {\n\taddHandle( \"type|href|height|width\", function( elem, name, isXML ) {\n\t\tif ( !isXML ) {\n\t\t\treturn elem.getAttribute( name, name.toLowerCase() === \"type\" ? 1 : 2 );\n\t\t}\n\t} );\n}\n\n// Support: IE<9\n// Use defaultValue in place of getAttribute(\"value\")\nif ( !support.attributes || !assert( function( el ) {\n\tel.innerHTML = \" \";\n\tel.firstChild.setAttribute( \"value\", \"\" );\n\treturn el.firstChild.getAttribute( \"value\" ) === \"\";\n} ) ) {\n\taddHandle( \"value\", function( elem, _name, isXML ) {\n\t\tif ( !isXML && elem.nodeName.toLowerCase() === \"input\" ) {\n\t\t\treturn elem.defaultValue;\n\t\t}\n\t} );\n}\n\n// Support: IE<9\n// Use getAttributeNode to fetch booleans when getAttribute lies\nif ( !assert( function( el ) {\n\treturn el.getAttribute( \"disabled\" ) == null;\n} ) ) {\n\taddHandle( booleans, function( elem, name, isXML ) {\n\t\tvar val;\n\t\tif ( !isXML ) {\n\t\t\treturn elem[ name ] === true ? name.toLowerCase() :\n\t\t\t\t( val = elem.getAttributeNode( name ) ) && val.specified ?\n\t\t\t\t\tval.value :\n\t\t\t\t\tnull;\n\t\t}\n\t} );\n}\n\nreturn Sizzle;\n\n} )( window );\n\n\n\njQuery.find = Sizzle;\njQuery.expr = Sizzle.selectors;\n\n// Deprecated\njQuery.expr[ \":\" ] = jQuery.expr.pseudos;\njQuery.uniqueSort = jQuery.unique = Sizzle.uniqueSort;\njQuery.text = Sizzle.getText;\njQuery.isXMLDoc = Sizzle.isXML;\njQuery.contains = Sizzle.contains;\njQuery.escapeSelector = Sizzle.escape;\n\n\n\n\nvar dir = function( elem, dir, until ) {\n\tvar matched = [],\n\t\ttruncate = until !== undefined;\n\n\twhile ( ( elem = elem[ dir ] ) && elem.nodeType !== 9 ) {\n\t\tif ( elem.nodeType === 1 ) {\n\t\t\tif ( truncate && jQuery( elem ).is( until ) ) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tmatched.push( elem );\n\t\t}\n\t}\n\treturn matched;\n};\n\n\nvar siblings = function( n, elem ) {\n\tvar matched = [];\n\n\tfor ( ; n; n = n.nextSibling ) {\n\t\tif ( n.nodeType === 1 && n !== elem ) {\n\t\t\tmatched.push( n );\n\t\t}\n\t}\n\n\treturn matched;\n};\n\n\nvar rneedsContext = jQuery.expr.match.needsContext;\n\n\n\nfunction nodeName( elem, name ) {\n\n return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase();\n\n};\nvar rsingleTag = ( /^<([a-z][^\\/\\0>:\\x20\\t\\r\\n\\f]*)[\\x20\\t\\r\\n\\f]*\\/?>(?:<\\/\\1>|)$/i );\n\n\n\n// Implement the identical functionality for filter and not\nfunction winnow( elements, qualifier, not ) {\n\tif ( isFunction( qualifier ) ) {\n\t\treturn jQuery.grep( elements, function( elem, i ) {\n\t\t\treturn !!qualifier.call( elem, i, elem ) !== not;\n\t\t} );\n\t}\n\n\t// Single element\n\tif ( qualifier.nodeType ) {\n\t\treturn jQuery.grep( elements, function( elem ) {\n\t\t\treturn ( elem === qualifier ) !== not;\n\t\t} );\n\t}\n\n\t// Arraylike of elements (jQuery, arguments, Array)\n\tif ( typeof qualifier !== \"string\" ) {\n\t\treturn jQuery.grep( elements, function( elem ) {\n\t\t\treturn ( indexOf.call( qualifier, elem ) > -1 ) !== not;\n\t\t} );\n\t}\n\n\t// Filtered directly for both simple and complex selectors\n\treturn jQuery.filter( qualifier, elements, not );\n}\n\njQuery.filter = function( expr, elems, not ) {\n\tvar elem = elems[ 0 ];\n\n\tif ( not ) {\n\t\texpr = \":not(\" + expr + \")\";\n\t}\n\n\tif ( elems.length === 1 && elem.nodeType === 1 ) {\n\t\treturn jQuery.find.matchesSelector( elem, expr ) ? [ elem ] : [];\n\t}\n\n\treturn jQuery.find.matches( expr, jQuery.grep( elems, function( elem ) {\n\t\treturn elem.nodeType === 1;\n\t} ) );\n};\n\njQuery.fn.extend( {\n\tfind: function( selector ) {\n\t\tvar i, ret,\n\t\t\tlen = this.length,\n\t\t\tself = this;\n\n\t\tif ( typeof selector !== \"string\" ) {\n\t\t\treturn this.pushStack( jQuery( selector ).filter( function() {\n\t\t\t\tfor ( i = 0; i < len; i++ ) {\n\t\t\t\t\tif ( jQuery.contains( self[ i ], this ) ) {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} ) );\n\t\t}\n\n\t\tret = this.pushStack( [] );\n\n\t\tfor ( i = 0; i < len; i++ ) {\n\t\t\tjQuery.find( selector, self[ i ], ret );\n\t\t}\n\n\t\treturn len > 1 ? jQuery.uniqueSort( ret ) : ret;\n\t},\n\tfilter: function( selector ) {\n\t\treturn this.pushStack( winnow( this, selector || [], false ) );\n\t},\n\tnot: function( selector ) {\n\t\treturn this.pushStack( winnow( this, selector || [], true ) );\n\t},\n\tis: function( selector ) {\n\t\treturn !!winnow(\n\t\t\tthis,\n\n\t\t\t// If this is a positional/relative selector, check membership in the returned set\n\t\t\t// so $(\"p:first\").is(\"p:last\") won't return true for a doc with two \"p\".\n\t\t\ttypeof selector === \"string\" && rneedsContext.test( selector ) ?\n\t\t\t\tjQuery( selector ) :\n\t\t\t\tselector || [],\n\t\t\tfalse\n\t\t).length;\n\t}\n} );\n\n\n// Initialize a jQuery object\n\n\n// A central reference to the root jQuery(document)\nvar rootjQuery,\n\n\t// A simple way to check for HTML strings\n\t// Prioritize #id over to avoid XSS via location.hash (#9521)\n\t// Strict HTML recognition (#11290: must start with <)\n\t// Shortcut simple #id case for speed\n\trquickExpr = /^(?:\\s*(<[\\w\\W]+>)[^>]*|#([\\w-]+))$/,\n\n\tinit = jQuery.fn.init = function( selector, context, root ) {\n\t\tvar match, elem;\n\n\t\t// HANDLE: $(\"\"), $(null), $(undefined), $(false)\n\t\tif ( !selector ) {\n\t\t\treturn this;\n\t\t}\n\n\t\t// Method init() accepts an alternate rootjQuery\n\t\t// so migrate can support jQuery.sub (gh-2101)\n\t\troot = root || rootjQuery;\n\n\t\t// Handle HTML strings\n\t\tif ( typeof selector === \"string\" ) {\n\t\t\tif ( selector[ 0 ] === \"<\" &&\n\t\t\t\tselector[ selector.length - 1 ] === \">\" &&\n\t\t\t\tselector.length >= 3 ) {\n\n\t\t\t\t// Assume that strings that start and end with <> are HTML and skip the regex check\n\t\t\t\tmatch = [ null, selector, null ];\n\n\t\t\t} else {\n\t\t\t\tmatch = rquickExpr.exec( selector );\n\t\t\t}\n\n\t\t\t// Match html or make sure no context is specified for #id\n\t\t\tif ( match && ( match[ 1 ] || !context ) ) {\n\n\t\t\t\t// HANDLE: $(html) -> $(array)\n\t\t\t\tif ( match[ 1 ] ) {\n\t\t\t\t\tcontext = context instanceof jQuery ? context[ 0 ] : context;\n\n\t\t\t\t\t// Option to run scripts is true for back-compat\n\t\t\t\t\t// Intentionally let the error be thrown if parseHTML is not present\n\t\t\t\t\tjQuery.merge( this, jQuery.parseHTML(\n\t\t\t\t\t\tmatch[ 1 ],\n\t\t\t\t\t\tcontext && context.nodeType ? context.ownerDocument || context : document,\n\t\t\t\t\t\ttrue\n\t\t\t\t\t) );\n\n\t\t\t\t\t// HANDLE: $(html, props)\n\t\t\t\t\tif ( rsingleTag.test( match[ 1 ] ) && jQuery.isPlainObject( context ) ) {\n\t\t\t\t\t\tfor ( match in context ) {\n\n\t\t\t\t\t\t\t// Properties of context are called as methods if possible\n\t\t\t\t\t\t\tif ( isFunction( this[ match ] ) ) {\n\t\t\t\t\t\t\t\tthis[ match ]( context[ match ] );\n\n\t\t\t\t\t\t\t// ...and otherwise set as attributes\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tthis.attr( match, context[ match ] );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\treturn this;\n\n\t\t\t\t// HANDLE: $(#id)\n\t\t\t\t} else {\n\t\t\t\t\telem = document.getElementById( match[ 2 ] );\n\n\t\t\t\t\tif ( elem ) {\n\n\t\t\t\t\t\t// Inject the element directly into the jQuery object\n\t\t\t\t\t\tthis[ 0 ] = elem;\n\t\t\t\t\t\tthis.length = 1;\n\t\t\t\t\t}\n\t\t\t\t\treturn this;\n\t\t\t\t}\n\n\t\t\t// HANDLE: $(expr, $(...))\n\t\t\t} else if ( !context || context.jquery ) {\n\t\t\t\treturn ( context || root ).find( selector );\n\n\t\t\t// HANDLE: $(expr, context)\n\t\t\t// (which is just equivalent to: $(context).find(expr)\n\t\t\t} else {\n\t\t\t\treturn this.constructor( context ).find( selector );\n\t\t\t}\n\n\t\t// HANDLE: $(DOMElement)\n\t\t} else if ( selector.nodeType ) {\n\t\t\tthis[ 0 ] = selector;\n\t\t\tthis.length = 1;\n\t\t\treturn this;\n\n\t\t// HANDLE: $(function)\n\t\t// Shortcut for document ready\n\t\t} else if ( isFunction( selector ) ) {\n\t\t\treturn root.ready !== undefined ?\n\t\t\t\troot.ready( selector ) :\n\n\t\t\t\t// Execute immediately if ready is not present\n\t\t\t\tselector( jQuery );\n\t\t}\n\n\t\treturn jQuery.makeArray( selector, this );\n\t};\n\n// Give the init function the jQuery prototype for later instantiation\ninit.prototype = jQuery.fn;\n\n// Initialize central reference\nrootjQuery = jQuery( document );\n\n\nvar rparentsprev = /^(?:parents|prev(?:Until|All))/,\n\n\t// Methods guaranteed to produce a unique set when starting from a unique set\n\tguaranteedUnique = {\n\t\tchildren: true,\n\t\tcontents: true,\n\t\tnext: true,\n\t\tprev: true\n\t};\n\njQuery.fn.extend( {\n\thas: function( target ) {\n\t\tvar targets = jQuery( target, this ),\n\t\t\tl = targets.length;\n\n\t\treturn this.filter( function() {\n\t\t\tvar i = 0;\n\t\t\tfor ( ; i < l; i++ ) {\n\t\t\t\tif ( jQuery.contains( this, targets[ i ] ) ) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t} );\n\t},\n\n\tclosest: function( selectors, context ) {\n\t\tvar cur,\n\t\t\ti = 0,\n\t\t\tl = this.length,\n\t\t\tmatched = [],\n\t\t\ttargets = typeof selectors !== \"string\" && jQuery( selectors );\n\n\t\t// Positional selectors never match, since there's no _selection_ context\n\t\tif ( !rneedsContext.test( selectors ) ) {\n\t\t\tfor ( ; i < l; i++ ) {\n\t\t\t\tfor ( cur = this[ i ]; cur && cur !== context; cur = cur.parentNode ) {\n\n\t\t\t\t\t// Always skip document fragments\n\t\t\t\t\tif ( cur.nodeType < 11 && ( targets ?\n\t\t\t\t\t\ttargets.index( cur ) > -1 :\n\n\t\t\t\t\t\t// Don't pass non-elements to Sizzle\n\t\t\t\t\t\tcur.nodeType === 1 &&\n\t\t\t\t\t\t\tjQuery.find.matchesSelector( cur, selectors ) ) ) {\n\n\t\t\t\t\t\tmatched.push( cur );\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn this.pushStack( matched.length > 1 ? jQuery.uniqueSort( matched ) : matched );\n\t},\n\n\t// Determine the position of an element within the set\n\tindex: function( elem ) {\n\n\t\t// No argument, return index in parent\n\t\tif ( !elem ) {\n\t\t\treturn ( this[ 0 ] && this[ 0 ].parentNode ) ? this.first().prevAll().length : -1;\n\t\t}\n\n\t\t// Index in selector\n\t\tif ( typeof elem === \"string\" ) {\n\t\t\treturn indexOf.call( jQuery( elem ), this[ 0 ] );\n\t\t}\n\n\t\t// Locate the position of the desired element\n\t\treturn indexOf.call( this,\n\n\t\t\t// If it receives a jQuery object, the first element is used\n\t\t\telem.jquery ? elem[ 0 ] : elem\n\t\t);\n\t},\n\n\tadd: function( selector, context ) {\n\t\treturn this.pushStack(\n\t\t\tjQuery.uniqueSort(\n\t\t\t\tjQuery.merge( this.get(), jQuery( selector, context ) )\n\t\t\t)\n\t\t);\n\t},\n\n\taddBack: function( selector ) {\n\t\treturn this.add( selector == null ?\n\t\t\tthis.prevObject : this.prevObject.filter( selector )\n\t\t);\n\t}\n} );\n\nfunction sibling( cur, dir ) {\n\twhile ( ( cur = cur[ dir ] ) && cur.nodeType !== 1 ) {}\n\treturn cur;\n}\n\njQuery.each( {\n\tparent: function( elem ) {\n\t\tvar parent = elem.parentNode;\n\t\treturn parent && parent.nodeType !== 11 ? parent : null;\n\t},\n\tparents: function( elem ) {\n\t\treturn dir( elem, \"parentNode\" );\n\t},\n\tparentsUntil: function( elem, _i, until ) {\n\t\treturn dir( elem, \"parentNode\", until );\n\t},\n\tnext: function( elem ) {\n\t\treturn sibling( elem, \"nextSibling\" );\n\t},\n\tprev: function( elem ) {\n\t\treturn sibling( elem, \"previousSibling\" );\n\t},\n\tnextAll: function( elem ) {\n\t\treturn dir( elem, \"nextSibling\" );\n\t},\n\tprevAll: function( elem ) {\n\t\treturn dir( elem, \"previousSibling\" );\n\t},\n\tnextUntil: function( elem, _i, until ) {\n\t\treturn dir( elem, \"nextSibling\", until );\n\t},\n\tprevUntil: function( elem, _i, until ) {\n\t\treturn dir( elem, \"previousSibling\", until );\n\t},\n\tsiblings: function( elem ) {\n\t\treturn siblings( ( elem.parentNode || {} ).firstChild, elem );\n\t},\n\tchildren: function( elem ) {\n\t\treturn siblings( elem.firstChild );\n\t},\n\tcontents: function( elem ) {\n\t\tif ( elem.contentDocument != null &&\n\n\t\t\t// Support: IE 11+\n\t\t\t// elements with no `data` attribute has an object\n\t\t\t// `contentDocument` with a `null` prototype.\n\t\t\tgetProto( elem.contentDocument ) ) {\n\n\t\t\treturn elem.contentDocument;\n\t\t}\n\n\t\t// Support: IE 9 - 11 only, iOS 7 only, Android Browser <=4.3 only\n\t\t// Treat the template element as a regular one in browsers that\n\t\t// don't support it.\n\t\tif ( nodeName( elem, \"template\" ) ) {\n\t\t\telem = elem.content || elem;\n\t\t}\n\n\t\treturn jQuery.merge( [], elem.childNodes );\n\t}\n}, function( name, fn ) {\n\tjQuery.fn[ name ] = function( until, selector ) {\n\t\tvar matched = jQuery.map( this, fn, until );\n\n\t\tif ( name.slice( -5 ) !== \"Until\" ) {\n\t\t\tselector = until;\n\t\t}\n\n\t\tif ( selector && typeof selector === \"string\" ) {\n\t\t\tmatched = jQuery.filter( selector, matched );\n\t\t}\n\n\t\tif ( this.length > 1 ) {\n\n\t\t\t// Remove duplicates\n\t\t\tif ( !guaranteedUnique[ name ] ) {\n\t\t\t\tjQuery.uniqueSort( matched );\n\t\t\t}\n\n\t\t\t// Reverse order for parents* and prev-derivatives\n\t\t\tif ( rparentsprev.test( name ) ) {\n\t\t\t\tmatched.reverse();\n\t\t\t}\n\t\t}\n\n\t\treturn this.pushStack( matched );\n\t};\n} );\nvar rnothtmlwhite = ( /[^\\x20\\t\\r\\n\\f]+/g );\n\n\n\n// Convert String-formatted options into Object-formatted ones\nfunction createOptions( options ) {\n\tvar object = {};\n\tjQuery.each( options.match( rnothtmlwhite ) || [], function( _, flag ) {\n\t\tobject[ flag ] = true;\n\t} );\n\treturn object;\n}\n\n/*\n * Create a callback list using the following parameters:\n *\n *\toptions: an optional list of space-separated options that will change how\n *\t\t\tthe callback list behaves or a more traditional option object\n *\n * By default a callback list will act like an event callback list and can be\n * \"fired\" multiple times.\n *\n * Possible options:\n *\n *\tonce:\t\t\twill ensure the callback list can only be fired once (like a Deferred)\n *\n *\tmemory:\t\t\twill keep track of previous values and will call any callback added\n *\t\t\t\t\tafter the list has been fired right away with the latest \"memorized\"\n *\t\t\t\t\tvalues (like a Deferred)\n *\n *\tunique:\t\t\twill ensure a callback can only be added once (no duplicate in the list)\n *\n *\tstopOnFalse:\tinterrupt callings when a callback returns false\n *\n */\njQuery.Callbacks = function( options ) {\n\n\t// Convert options from String-formatted to Object-formatted if needed\n\t// (we check in cache first)\n\toptions = typeof options === \"string\" ?\n\t\tcreateOptions( options ) :\n\t\tjQuery.extend( {}, options );\n\n\tvar // Flag to know if list is currently firing\n\t\tfiring,\n\n\t\t// Last fire value for non-forgettable lists\n\t\tmemory,\n\n\t\t// Flag to know if list was already fired\n\t\tfired,\n\n\t\t// Flag to prevent firing\n\t\tlocked,\n\n\t\t// Actual callback list\n\t\tlist = [],\n\n\t\t// Queue of execution data for repeatable lists\n\t\tqueue = [],\n\n\t\t// Index of currently firing callback (modified by add/remove as needed)\n\t\tfiringIndex = -1,\n\n\t\t// Fire callbacks\n\t\tfire = function() {\n\n\t\t\t// Enforce single-firing\n\t\t\tlocked = locked || options.once;\n\n\t\t\t// Execute callbacks for all pending executions,\n\t\t\t// respecting firingIndex overrides and runtime changes\n\t\t\tfired = firing = true;\n\t\t\tfor ( ; queue.length; firingIndex = -1 ) {\n\t\t\t\tmemory = queue.shift();\n\t\t\t\twhile ( ++firingIndex < list.length ) {\n\n\t\t\t\t\t// Run callback and check for early termination\n\t\t\t\t\tif ( list[ firingIndex ].apply( memory[ 0 ], memory[ 1 ] ) === false &&\n\t\t\t\t\t\toptions.stopOnFalse ) {\n\n\t\t\t\t\t\t// Jump to end and forget the data so .add doesn't re-fire\n\t\t\t\t\t\tfiringIndex = list.length;\n\t\t\t\t\t\tmemory = false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Forget the data if we're done with it\n\t\t\tif ( !options.memory ) {\n\t\t\t\tmemory = false;\n\t\t\t}\n\n\t\t\tfiring = false;\n\n\t\t\t// Clean up if we're done firing for good\n\t\t\tif ( locked ) {\n\n\t\t\t\t// Keep an empty list if we have data for future add calls\n\t\t\t\tif ( memory ) {\n\t\t\t\t\tlist = [];\n\n\t\t\t\t// Otherwise, this object is spent\n\t\t\t\t} else {\n\t\t\t\t\tlist = \"\";\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\n\t\t// Actual Callbacks object\n\t\tself = {\n\n\t\t\t// Add a callback or a collection of callbacks to the list\n\t\t\tadd: function() {\n\t\t\t\tif ( list ) {\n\n\t\t\t\t\t// If we have memory from a past run, we should fire after adding\n\t\t\t\t\tif ( memory && !firing ) {\n\t\t\t\t\t\tfiringIndex = list.length - 1;\n\t\t\t\t\t\tqueue.push( memory );\n\t\t\t\t\t}\n\n\t\t\t\t\t( function add( args ) {\n\t\t\t\t\t\tjQuery.each( args, function( _, arg ) {\n\t\t\t\t\t\t\tif ( isFunction( arg ) ) {\n\t\t\t\t\t\t\t\tif ( !options.unique || !self.has( arg ) ) {\n\t\t\t\t\t\t\t\t\tlist.push( arg );\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else if ( arg && arg.length && toType( arg ) !== \"string\" ) {\n\n\t\t\t\t\t\t\t\t// Inspect recursively\n\t\t\t\t\t\t\t\tadd( arg );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} );\n\t\t\t\t\t} )( arguments );\n\n\t\t\t\t\tif ( memory && !firing ) {\n\t\t\t\t\t\tfire();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn this;\n\t\t\t},\n\n\t\t\t// Remove a callback from the list\n\t\t\tremove: function() {\n\t\t\t\tjQuery.each( arguments, function( _, arg ) {\n\t\t\t\t\tvar index;\n\t\t\t\t\twhile ( ( index = jQuery.inArray( arg, list, index ) ) > -1 ) {\n\t\t\t\t\t\tlist.splice( index, 1 );\n\n\t\t\t\t\t\t// Handle firing indexes\n\t\t\t\t\t\tif ( index <= firingIndex ) {\n\t\t\t\t\t\t\tfiringIndex--;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} );\n\t\t\t\treturn this;\n\t\t\t},\n\n\t\t\t// Check if a given callback is in the list.\n\t\t\t// If no argument is given, return whether or not list has callbacks attached.\n\t\t\thas: function( fn ) {\n\t\t\t\treturn fn ?\n\t\t\t\t\tjQuery.inArray( fn, list ) > -1 :\n\t\t\t\t\tlist.length > 0;\n\t\t\t},\n\n\t\t\t// Remove all callbacks from the list\n\t\t\tempty: function() {\n\t\t\t\tif ( list ) {\n\t\t\t\t\tlist = [];\n\t\t\t\t}\n\t\t\t\treturn this;\n\t\t\t},\n\n\t\t\t// Disable .fire and .add\n\t\t\t// Abort any current/pending executions\n\t\t\t// Clear all callbacks and values\n\t\t\tdisable: function() {\n\t\t\t\tlocked = queue = [];\n\t\t\t\tlist = memory = \"\";\n\t\t\t\treturn this;\n\t\t\t},\n\t\t\tdisabled: function() {\n\t\t\t\treturn !list;\n\t\t\t},\n\n\t\t\t// Disable .fire\n\t\t\t// Also disable .add unless we have memory (since it would have no effect)\n\t\t\t// Abort any pending executions\n\t\t\tlock: function() {\n\t\t\t\tlocked = queue = [];\n\t\t\t\tif ( !memory && !firing ) {\n\t\t\t\t\tlist = memory = \"\";\n\t\t\t\t}\n\t\t\t\treturn this;\n\t\t\t},\n\t\t\tlocked: function() {\n\t\t\t\treturn !!locked;\n\t\t\t},\n\n\t\t\t// Call all callbacks with the given context and arguments\n\t\t\tfireWith: function( context, args ) {\n\t\t\t\tif ( !locked ) {\n\t\t\t\t\targs = args || [];\n\t\t\t\t\targs = [ context, args.slice ? args.slice() : args ];\n\t\t\t\t\tqueue.push( args );\n\t\t\t\t\tif ( !firing ) {\n\t\t\t\t\t\tfire();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn this;\n\t\t\t},\n\n\t\t\t// Call all the callbacks with the given arguments\n\t\t\tfire: function() {\n\t\t\t\tself.fireWith( this, arguments );\n\t\t\t\treturn this;\n\t\t\t},\n\n\t\t\t// To know if the callbacks have already been called at least once\n\t\t\tfired: function() {\n\t\t\t\treturn !!fired;\n\t\t\t}\n\t\t};\n\n\treturn self;\n};\n\n\nfunction Identity( v ) {\n\treturn v;\n}\nfunction Thrower( ex ) {\n\tthrow ex;\n}\n\nfunction adoptValue( value, resolve, reject, noValue ) {\n\tvar method;\n\n\ttry {\n\n\t\t// Check for promise aspect first to privilege synchronous behavior\n\t\tif ( value && isFunction( ( method = value.promise ) ) ) {\n\t\t\tmethod.call( value ).done( resolve ).fail( reject );\n\n\t\t// Other thenables\n\t\t} else if ( value && isFunction( ( method = value.then ) ) ) {\n\t\t\tmethod.call( value, resolve, reject );\n\n\t\t// Other non-thenables\n\t\t} else {\n\n\t\t\t// Control `resolve` arguments by letting Array#slice cast boolean `noValue` to integer:\n\t\t\t// * false: [ value ].slice( 0 ) => resolve( value )\n\t\t\t// * true: [ value ].slice( 1 ) => resolve()\n\t\t\tresolve.apply( undefined, [ value ].slice( noValue ) );\n\t\t}\n\n\t// For Promises/A+, convert exceptions into rejections\n\t// Since jQuery.when doesn't unwrap thenables, we can skip the extra checks appearing in\n\t// Deferred#then to conditionally suppress rejection.\n\t} catch ( value ) {\n\n\t\t// Support: Android 4.0 only\n\t\t// Strict mode functions invoked without .call/.apply get global-object context\n\t\treject.apply( undefined, [ value ] );\n\t}\n}\n\njQuery.extend( {\n\n\tDeferred: function( func ) {\n\t\tvar tuples = [\n\n\t\t\t\t// action, add listener, callbacks,\n\t\t\t\t// ... .then handlers, argument index, [final state]\n\t\t\t\t[ \"notify\", \"progress\", jQuery.Callbacks( \"memory\" ),\n\t\t\t\t\tjQuery.Callbacks( \"memory\" ), 2 ],\n\t\t\t\t[ \"resolve\", \"done\", jQuery.Callbacks( \"once memory\" ),\n\t\t\t\t\tjQuery.Callbacks( \"once memory\" ), 0, \"resolved\" ],\n\t\t\t\t[ \"reject\", \"fail\", jQuery.Callbacks( \"once memory\" ),\n\t\t\t\t\tjQuery.Callbacks( \"once memory\" ), 1, \"rejected\" ]\n\t\t\t],\n\t\t\tstate = \"pending\",\n\t\t\tpromise = {\n\t\t\t\tstate: function() {\n\t\t\t\t\treturn state;\n\t\t\t\t},\n\t\t\t\talways: function() {\n\t\t\t\t\tdeferred.done( arguments ).fail( arguments );\n\t\t\t\t\treturn this;\n\t\t\t\t},\n\t\t\t\t\"catch\": function( fn ) {\n\t\t\t\t\treturn promise.then( null, fn );\n\t\t\t\t},\n\n\t\t\t\t// Keep pipe for back-compat\n\t\t\t\tpipe: function( /* fnDone, fnFail, fnProgress */ ) {\n\t\t\t\t\tvar fns = arguments;\n\n\t\t\t\t\treturn jQuery.Deferred( function( newDefer ) {\n\t\t\t\t\t\tjQuery.each( tuples, function( _i, tuple ) {\n\n\t\t\t\t\t\t\t// Map tuples (progress, done, fail) to arguments (done, fail, progress)\n\t\t\t\t\t\t\tvar fn = isFunction( fns[ tuple[ 4 ] ] ) && fns[ tuple[ 4 ] ];\n\n\t\t\t\t\t\t\t// deferred.progress(function() { bind to newDefer or newDefer.notify })\n\t\t\t\t\t\t\t// deferred.done(function() { bind to newDefer or newDefer.resolve })\n\t\t\t\t\t\t\t// deferred.fail(function() { bind to newDefer or newDefer.reject })\n\t\t\t\t\t\t\tdeferred[ tuple[ 1 ] ]( function() {\n\t\t\t\t\t\t\t\tvar returned = fn && fn.apply( this, arguments );\n\t\t\t\t\t\t\t\tif ( returned && isFunction( returned.promise ) ) {\n\t\t\t\t\t\t\t\t\treturned.promise()\n\t\t\t\t\t\t\t\t\t\t.progress( newDefer.notify )\n\t\t\t\t\t\t\t\t\t\t.done( newDefer.resolve )\n\t\t\t\t\t\t\t\t\t\t.fail( newDefer.reject );\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tnewDefer[ tuple[ 0 ] + \"With\" ](\n\t\t\t\t\t\t\t\t\t\tthis,\n\t\t\t\t\t\t\t\t\t\tfn ? [ returned ] : arguments\n\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} );\n\t\t\t\t\t\t} );\n\t\t\t\t\t\tfns = null;\n\t\t\t\t\t} ).promise();\n\t\t\t\t},\n\t\t\t\tthen: function( onFulfilled, onRejected, onProgress ) {\n\t\t\t\t\tvar maxDepth = 0;\n\t\t\t\t\tfunction resolve( depth, deferred, handler, special ) {\n\t\t\t\t\t\treturn function() {\n\t\t\t\t\t\t\tvar that = this,\n\t\t\t\t\t\t\t\targs = arguments,\n\t\t\t\t\t\t\t\tmightThrow = function() {\n\t\t\t\t\t\t\t\t\tvar returned, then;\n\n\t\t\t\t\t\t\t\t\t// Support: Promises/A+ section 2.3.3.3.3\n\t\t\t\t\t\t\t\t\t// https://promisesaplus.com/#point-59\n\t\t\t\t\t\t\t\t\t// Ignore double-resolution attempts\n\t\t\t\t\t\t\t\t\tif ( depth < maxDepth ) {\n\t\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\treturned = handler.apply( that, args );\n\n\t\t\t\t\t\t\t\t\t// Support: Promises/A+ section 2.3.1\n\t\t\t\t\t\t\t\t\t// https://promisesaplus.com/#point-48\n\t\t\t\t\t\t\t\t\tif ( returned === deferred.promise() ) {\n\t\t\t\t\t\t\t\t\t\tthrow new TypeError( \"Thenable self-resolution\" );\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t// Support: Promises/A+ sections 2.3.3.1, 3.5\n\t\t\t\t\t\t\t\t\t// https://promisesaplus.com/#point-54\n\t\t\t\t\t\t\t\t\t// https://promisesaplus.com/#point-75\n\t\t\t\t\t\t\t\t\t// Retrieve `then` only once\n\t\t\t\t\t\t\t\t\tthen = returned &&\n\n\t\t\t\t\t\t\t\t\t\t// Support: Promises/A+ section 2.3.4\n\t\t\t\t\t\t\t\t\t\t// https://promisesaplus.com/#point-64\n\t\t\t\t\t\t\t\t\t\t// Only check objects and functions for thenability\n\t\t\t\t\t\t\t\t\t\t( typeof returned === \"object\" ||\n\t\t\t\t\t\t\t\t\t\t\ttypeof returned === \"function\" ) &&\n\t\t\t\t\t\t\t\t\t\treturned.then;\n\n\t\t\t\t\t\t\t\t\t// Handle a returned thenable\n\t\t\t\t\t\t\t\t\tif ( isFunction( then ) ) {\n\n\t\t\t\t\t\t\t\t\t\t// Special processors (notify) just wait for resolution\n\t\t\t\t\t\t\t\t\t\tif ( special ) {\n\t\t\t\t\t\t\t\t\t\t\tthen.call(\n\t\t\t\t\t\t\t\t\t\t\t\treturned,\n\t\t\t\t\t\t\t\t\t\t\t\tresolve( maxDepth, deferred, Identity, special ),\n\t\t\t\t\t\t\t\t\t\t\t\tresolve( maxDepth, deferred, Thrower, special )\n\t\t\t\t\t\t\t\t\t\t\t);\n\n\t\t\t\t\t\t\t\t\t\t// Normal processors (resolve) also hook into progress\n\t\t\t\t\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t\t\t\t\t// ...and disregard older resolution values\n\t\t\t\t\t\t\t\t\t\t\tmaxDepth++;\n\n\t\t\t\t\t\t\t\t\t\t\tthen.call(\n\t\t\t\t\t\t\t\t\t\t\t\treturned,\n\t\t\t\t\t\t\t\t\t\t\t\tresolve( maxDepth, deferred, Identity, special ),\n\t\t\t\t\t\t\t\t\t\t\t\tresolve( maxDepth, deferred, Thrower, special ),\n\t\t\t\t\t\t\t\t\t\t\t\tresolve( maxDepth, deferred, Identity,\n\t\t\t\t\t\t\t\t\t\t\t\t\tdeferred.notifyWith )\n\t\t\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t// Handle all other returned values\n\t\t\t\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t\t\t\t// Only substitute handlers pass on context\n\t\t\t\t\t\t\t\t\t\t// and multiple values (non-spec behavior)\n\t\t\t\t\t\t\t\t\t\tif ( handler !== Identity ) {\n\t\t\t\t\t\t\t\t\t\t\tthat = undefined;\n\t\t\t\t\t\t\t\t\t\t\targs = [ returned ];\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t// Process the value(s)\n\t\t\t\t\t\t\t\t\t\t// Default process is resolve\n\t\t\t\t\t\t\t\t\t\t( special || deferred.resolveWith )( that, args );\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t},\n\n\t\t\t\t\t\t\t\t// Only normal processors (resolve) catch and reject exceptions\n\t\t\t\t\t\t\t\tprocess = special ?\n\t\t\t\t\t\t\t\t\tmightThrow :\n\t\t\t\t\t\t\t\t\tfunction() {\n\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\tmightThrow();\n\t\t\t\t\t\t\t\t\t\t} catch ( e ) {\n\n\t\t\t\t\t\t\t\t\t\t\tif ( jQuery.Deferred.exceptionHook ) {\n\t\t\t\t\t\t\t\t\t\t\t\tjQuery.Deferred.exceptionHook( e,\n\t\t\t\t\t\t\t\t\t\t\t\t\tprocess.stackTrace );\n\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t// Support: Promises/A+ section 2.3.3.3.4.1\n\t\t\t\t\t\t\t\t\t\t\t// https://promisesaplus.com/#point-61\n\t\t\t\t\t\t\t\t\t\t\t// Ignore post-resolution exceptions\n\t\t\t\t\t\t\t\t\t\t\tif ( depth + 1 >= maxDepth ) {\n\n\t\t\t\t\t\t\t\t\t\t\t\t// Only substitute handlers pass on context\n\t\t\t\t\t\t\t\t\t\t\t\t// and multiple values (non-spec behavior)\n\t\t\t\t\t\t\t\t\t\t\t\tif ( handler !== Thrower ) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tthat = undefined;\n\t\t\t\t\t\t\t\t\t\t\t\t\targs = [ e ];\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\tdeferred.rejectWith( that, args );\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t};\n\n\t\t\t\t\t\t\t// Support: Promises/A+ section 2.3.3.3.1\n\t\t\t\t\t\t\t// https://promisesaplus.com/#point-57\n\t\t\t\t\t\t\t// Re-resolve promises immediately to dodge false rejection from\n\t\t\t\t\t\t\t// subsequent errors\n\t\t\t\t\t\t\tif ( depth ) {\n\t\t\t\t\t\t\t\tprocess();\n\t\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t\t// Call an optional hook to record the stack, in case of exception\n\t\t\t\t\t\t\t\t// since it's otherwise lost when execution goes async\n\t\t\t\t\t\t\t\tif ( jQuery.Deferred.getStackHook ) {\n\t\t\t\t\t\t\t\t\tprocess.stackTrace = jQuery.Deferred.getStackHook();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\twindow.setTimeout( process );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t};\n\t\t\t\t\t}\n\n\t\t\t\t\treturn jQuery.Deferred( function( newDefer ) {\n\n\t\t\t\t\t\t// progress_handlers.add( ... )\n\t\t\t\t\t\ttuples[ 0 ][ 3 ].add(\n\t\t\t\t\t\t\tresolve(\n\t\t\t\t\t\t\t\t0,\n\t\t\t\t\t\t\t\tnewDefer,\n\t\t\t\t\t\t\t\tisFunction( onProgress ) ?\n\t\t\t\t\t\t\t\t\tonProgress :\n\t\t\t\t\t\t\t\t\tIdentity,\n\t\t\t\t\t\t\t\tnewDefer.notifyWith\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t);\n\n\t\t\t\t\t\t// fulfilled_handlers.add( ... )\n\t\t\t\t\t\ttuples[ 1 ][ 3 ].add(\n\t\t\t\t\t\t\tresolve(\n\t\t\t\t\t\t\t\t0,\n\t\t\t\t\t\t\t\tnewDefer,\n\t\t\t\t\t\t\t\tisFunction( onFulfilled ) ?\n\t\t\t\t\t\t\t\t\tonFulfilled :\n\t\t\t\t\t\t\t\t\tIdentity\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t);\n\n\t\t\t\t\t\t// rejected_handlers.add( ... )\n\t\t\t\t\t\ttuples[ 2 ][ 3 ].add(\n\t\t\t\t\t\t\tresolve(\n\t\t\t\t\t\t\t\t0,\n\t\t\t\t\t\t\t\tnewDefer,\n\t\t\t\t\t\t\t\tisFunction( onRejected ) ?\n\t\t\t\t\t\t\t\t\tonRejected :\n\t\t\t\t\t\t\t\t\tThrower\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t);\n\t\t\t\t\t} ).promise();\n\t\t\t\t},\n\n\t\t\t\t// Get a promise for this deferred\n\t\t\t\t// If obj is provided, the promise aspect is added to the object\n\t\t\t\tpromise: function( obj ) {\n\t\t\t\t\treturn obj != null ? jQuery.extend( obj, promise ) : promise;\n\t\t\t\t}\n\t\t\t},\n\t\t\tdeferred = {};\n\n\t\t// Add list-specific methods\n\t\tjQuery.each( tuples, function( i, tuple ) {\n\t\t\tvar list = tuple[ 2 ],\n\t\t\t\tstateString = tuple[ 5 ];\n\n\t\t\t// promise.progress = list.add\n\t\t\t// promise.done = list.add\n\t\t\t// promise.fail = list.add\n\t\t\tpromise[ tuple[ 1 ] ] = list.add;\n\n\t\t\t// Handle state\n\t\t\tif ( stateString ) {\n\t\t\t\tlist.add(\n\t\t\t\t\tfunction() {\n\n\t\t\t\t\t\t// state = \"resolved\" (i.e., fulfilled)\n\t\t\t\t\t\t// state = \"rejected\"\n\t\t\t\t\t\tstate = stateString;\n\t\t\t\t\t},\n\n\t\t\t\t\t// rejected_callbacks.disable\n\t\t\t\t\t// fulfilled_callbacks.disable\n\t\t\t\t\ttuples[ 3 - i ][ 2 ].disable,\n\n\t\t\t\t\t// rejected_handlers.disable\n\t\t\t\t\t// fulfilled_handlers.disable\n\t\t\t\t\ttuples[ 3 - i ][ 3 ].disable,\n\n\t\t\t\t\t// progress_callbacks.lock\n\t\t\t\t\ttuples[ 0 ][ 2 ].lock,\n\n\t\t\t\t\t// progress_handlers.lock\n\t\t\t\t\ttuples[ 0 ][ 3 ].lock\n\t\t\t\t);\n\t\t\t}\n\n\t\t\t// progress_handlers.fire\n\t\t\t// fulfilled_handlers.fire\n\t\t\t// rejected_handlers.fire\n\t\t\tlist.add( tuple[ 3 ].fire );\n\n\t\t\t// deferred.notify = function() { deferred.notifyWith(...) }\n\t\t\t// deferred.resolve = function() { deferred.resolveWith(...) }\n\t\t\t// deferred.reject = function() { deferred.rejectWith(...) }\n\t\t\tdeferred[ tuple[ 0 ] ] = function() {\n\t\t\t\tdeferred[ tuple[ 0 ] + \"With\" ]( this === deferred ? undefined : this, arguments );\n\t\t\t\treturn this;\n\t\t\t};\n\n\t\t\t// deferred.notifyWith = list.fireWith\n\t\t\t// deferred.resolveWith = list.fireWith\n\t\t\t// deferred.rejectWith = list.fireWith\n\t\t\tdeferred[ tuple[ 0 ] + \"With\" ] = list.fireWith;\n\t\t} );\n\n\t\t// Make the deferred a promise\n\t\tpromise.promise( deferred );\n\n\t\t// Call given func if any\n\t\tif ( func ) {\n\t\t\tfunc.call( deferred, deferred );\n\t\t}\n\n\t\t// All done!\n\t\treturn deferred;\n\t},\n\n\t// Deferred helper\n\twhen: function( singleValue ) {\n\t\tvar\n\n\t\t\t// count of uncompleted subordinates\n\t\t\tremaining = arguments.length,\n\n\t\t\t// count of unprocessed arguments\n\t\t\ti = remaining,\n\n\t\t\t// subordinate fulfillment data\n\t\t\tresolveContexts = Array( i ),\n\t\t\tresolveValues = slice.call( arguments ),\n\n\t\t\t// the master Deferred\n\t\t\tmaster = jQuery.Deferred(),\n\n\t\t\t// subordinate callback factory\n\t\t\tupdateFunc = function( i ) {\n\t\t\t\treturn function( value ) {\n\t\t\t\t\tresolveContexts[ i ] = this;\n\t\t\t\t\tresolveValues[ i ] = arguments.length > 1 ? slice.call( arguments ) : value;\n\t\t\t\t\tif ( !( --remaining ) ) {\n\t\t\t\t\t\tmaster.resolveWith( resolveContexts, resolveValues );\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t};\n\n\t\t// Single- and empty arguments are adopted like Promise.resolve\n\t\tif ( remaining <= 1 ) {\n\t\t\tadoptValue( singleValue, master.done( updateFunc( i ) ).resolve, master.reject,\n\t\t\t\t!remaining );\n\n\t\t\t// Use .then() to unwrap secondary thenables (cf. gh-3000)\n\t\t\tif ( master.state() === \"pending\" ||\n\t\t\t\tisFunction( resolveValues[ i ] && resolveValues[ i ].then ) ) {\n\n\t\t\t\treturn master.then();\n\t\t\t}\n\t\t}\n\n\t\t// Multiple arguments are aggregated like Promise.all array elements\n\t\twhile ( i-- ) {\n\t\t\tadoptValue( resolveValues[ i ], updateFunc( i ), master.reject );\n\t\t}\n\n\t\treturn master.promise();\n\t}\n} );\n\n\n// These usually indicate a programmer mistake during development,\n// warn about them ASAP rather than swallowing them by default.\nvar rerrorNames = /^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;\n\njQuery.Deferred.exceptionHook = function( error, stack ) {\n\n\t// Support: IE 8 - 9 only\n\t// Console exists when dev tools are open, which can happen at any time\n\tif ( window.console && window.console.warn && error && rerrorNames.test( error.name ) ) {\n\t\twindow.console.warn( \"jQuery.Deferred exception: \" + error.message, error.stack, stack );\n\t}\n};\n\n\n\n\njQuery.readyException = function( error ) {\n\twindow.setTimeout( function() {\n\t\tthrow error;\n\t} );\n};\n\n\n\n\n// The deferred used on DOM ready\nvar readyList = jQuery.Deferred();\n\njQuery.fn.ready = function( fn ) {\n\n\treadyList\n\t\t.then( fn )\n\n\t\t// Wrap jQuery.readyException in a function so that the lookup\n\t\t// happens at the time of error handling instead of callback\n\t\t// registration.\n\t\t.catch( function( error ) {\n\t\t\tjQuery.readyException( error );\n\t\t} );\n\n\treturn this;\n};\n\njQuery.extend( {\n\n\t// Is the DOM ready to be used? Set to true once it occurs.\n\tisReady: false,\n\n\t// A counter to track how many items to wait for before\n\t// the ready event fires. See #6781\n\treadyWait: 1,\n\n\t// Handle when the DOM is ready\n\tready: function( wait ) {\n\n\t\t// Abort if there are pending holds or we're already ready\n\t\tif ( wait === true ? --jQuery.readyWait : jQuery.isReady ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Remember that the DOM is ready\n\t\tjQuery.isReady = true;\n\n\t\t// If a normal DOM Ready event fired, decrement, and wait if need be\n\t\tif ( wait !== true && --jQuery.readyWait > 0 ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// If there are functions bound, to execute\n\t\treadyList.resolveWith( document, [ jQuery ] );\n\t}\n} );\n\njQuery.ready.then = readyList.then;\n\n// The ready event handler and self cleanup method\nfunction completed() {\n\tdocument.removeEventListener( \"DOMContentLoaded\", completed );\n\twindow.removeEventListener( \"load\", completed );\n\tjQuery.ready();\n}\n\n// Catch cases where $(document).ready() is called\n// after the browser event has already occurred.\n// Support: IE <=9 - 10 only\n// Older IE sometimes signals \"interactive\" too soon\nif ( document.readyState === \"complete\" ||\n\t( document.readyState !== \"loading\" && !document.documentElement.doScroll ) ) {\n\n\t// Handle it asynchronously to allow scripts the opportunity to delay ready\n\twindow.setTimeout( jQuery.ready );\n\n} else {\n\n\t// Use the handy event callback\n\tdocument.addEventListener( \"DOMContentLoaded\", completed );\n\n\t// A fallback to window.onload, that will always work\n\twindow.addEventListener( \"load\", completed );\n}\n\n\n\n\n// Multifunctional method to get and set values of a collection\n// The value/s can optionally be executed if it's a function\nvar access = function( elems, fn, key, value, chainable, emptyGet, raw ) {\n\tvar i = 0,\n\t\tlen = elems.length,\n\t\tbulk = key == null;\n\n\t// Sets many values\n\tif ( toType( key ) === \"object\" ) {\n\t\tchainable = true;\n\t\tfor ( i in key ) {\n\t\t\taccess( elems, fn, i, key[ i ], true, emptyGet, raw );\n\t\t}\n\n\t// Sets one value\n\t} else if ( value !== undefined ) {\n\t\tchainable = true;\n\n\t\tif ( !isFunction( value ) ) {\n\t\t\traw = true;\n\t\t}\n\n\t\tif ( bulk ) {\n\n\t\t\t// Bulk operations run against the entire set\n\t\t\tif ( raw ) {\n\t\t\t\tfn.call( elems, value );\n\t\t\t\tfn = null;\n\n\t\t\t// ...except when executing function values\n\t\t\t} else {\n\t\t\t\tbulk = fn;\n\t\t\t\tfn = function( elem, _key, value ) {\n\t\t\t\t\treturn bulk.call( jQuery( elem ), value );\n\t\t\t\t};\n\t\t\t}\n\t\t}\n\n\t\tif ( fn ) {\n\t\t\tfor ( ; i < len; i++ ) {\n\t\t\t\tfn(\n\t\t\t\t\telems[ i ], key, raw ?\n\t\t\t\t\tvalue :\n\t\t\t\t\tvalue.call( elems[ i ], i, fn( elems[ i ], key ) )\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t}\n\n\tif ( chainable ) {\n\t\treturn elems;\n\t}\n\n\t// Gets\n\tif ( bulk ) {\n\t\treturn fn.call( elems );\n\t}\n\n\treturn len ? fn( elems[ 0 ], key ) : emptyGet;\n};\n\n\n// Matches dashed string for camelizing\nvar rmsPrefix = /^-ms-/,\n\trdashAlpha = /-([a-z])/g;\n\n// Used by camelCase as callback to replace()\nfunction fcamelCase( _all, letter ) {\n\treturn letter.toUpperCase();\n}\n\n// Convert dashed to camelCase; used by the css and data modules\n// Support: IE <=9 - 11, Edge 12 - 15\n// Microsoft forgot to hump their vendor prefix (#9572)\nfunction camelCase( string ) {\n\treturn string.replace( rmsPrefix, \"ms-\" ).replace( rdashAlpha, fcamelCase );\n}\nvar acceptData = function( owner ) {\n\n\t// Accepts only:\n\t// - Node\n\t// - Node.ELEMENT_NODE\n\t// - Node.DOCUMENT_NODE\n\t// - Object\n\t// - Any\n\treturn owner.nodeType === 1 || owner.nodeType === 9 || !( +owner.nodeType );\n};\n\n\n\n\nfunction Data() {\n\tthis.expando = jQuery.expando + Data.uid++;\n}\n\nData.uid = 1;\n\nData.prototype = {\n\n\tcache: function( owner ) {\n\n\t\t// Check if the owner object already has a cache\n\t\tvar value = owner[ this.expando ];\n\n\t\t// If not, create one\n\t\tif ( !value ) {\n\t\t\tvalue = {};\n\n\t\t\t// We can accept data for non-element nodes in modern browsers,\n\t\t\t// but we should not, see #8335.\n\t\t\t// Always return an empty object.\n\t\t\tif ( acceptData( owner ) ) {\n\n\t\t\t\t// If it is a node unlikely to be stringify-ed or looped over\n\t\t\t\t// use plain assignment\n\t\t\t\tif ( owner.nodeType ) {\n\t\t\t\t\towner[ this.expando ] = value;\n\n\t\t\t\t// Otherwise secure it in a non-enumerable property\n\t\t\t\t// configurable must be true to allow the property to be\n\t\t\t\t// deleted when data is removed\n\t\t\t\t} else {\n\t\t\t\t\tObject.defineProperty( owner, this.expando, {\n\t\t\t\t\t\tvalue: value,\n\t\t\t\t\t\tconfigurable: true\n\t\t\t\t\t} );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn value;\n\t},\n\tset: function( owner, data, value ) {\n\t\tvar prop,\n\t\t\tcache = this.cache( owner );\n\n\t\t// Handle: [ owner, key, value ] args\n\t\t// Always use camelCase key (gh-2257)\n\t\tif ( typeof data === \"string\" ) {\n\t\t\tcache[ camelCase( data ) ] = value;\n\n\t\t// Handle: [ owner, { properties } ] args\n\t\t} else {\n\n\t\t\t// Copy the properties one-by-one to the cache object\n\t\t\tfor ( prop in data ) {\n\t\t\t\tcache[ camelCase( prop ) ] = data[ prop ];\n\t\t\t}\n\t\t}\n\t\treturn cache;\n\t},\n\tget: function( owner, key ) {\n\t\treturn key === undefined ?\n\t\t\tthis.cache( owner ) :\n\n\t\t\t// Always use camelCase key (gh-2257)\n\t\t\towner[ this.expando ] && owner[ this.expando ][ camelCase( key ) ];\n\t},\n\taccess: function( owner, key, value ) {\n\n\t\t// In cases where either:\n\t\t//\n\t\t// 1. No key was specified\n\t\t// 2. A string key was specified, but no value provided\n\t\t//\n\t\t// Take the \"read\" path and allow the get method to determine\n\t\t// which value to return, respectively either:\n\t\t//\n\t\t// 1. The entire cache object\n\t\t// 2. The data stored at the key\n\t\t//\n\t\tif ( key === undefined ||\n\t\t\t\t( ( key && typeof key === \"string\" ) && value === undefined ) ) {\n\n\t\t\treturn this.get( owner, key );\n\t\t}\n\n\t\t// When the key is not a string, or both a key and value\n\t\t// are specified, set or extend (existing objects) with either:\n\t\t//\n\t\t// 1. An object of properties\n\t\t// 2. A key and value\n\t\t//\n\t\tthis.set( owner, key, value );\n\n\t\t// Since the \"set\" path can have two possible entry points\n\t\t// return the expected data based on which path was taken[*]\n\t\treturn value !== undefined ? value : key;\n\t},\n\tremove: function( owner, key ) {\n\t\tvar i,\n\t\t\tcache = owner[ this.expando ];\n\n\t\tif ( cache === undefined ) {\n\t\t\treturn;\n\t\t}\n\n\t\tif ( key !== undefined ) {\n\n\t\t\t// Support array or space separated string of keys\n\t\t\tif ( Array.isArray( key ) ) {\n\n\t\t\t\t// If key is an array of keys...\n\t\t\t\t// We always set camelCase keys, so remove that.\n\t\t\t\tkey = key.map( camelCase );\n\t\t\t} else {\n\t\t\t\tkey = camelCase( key );\n\n\t\t\t\t// If a key with the spaces exists, use it.\n\t\t\t\t// Otherwise, create an array by matching non-whitespace\n\t\t\t\tkey = key in cache ?\n\t\t\t\t\t[ key ] :\n\t\t\t\t\t( key.match( rnothtmlwhite ) || [] );\n\t\t\t}\n\n\t\t\ti = key.length;\n\n\t\t\twhile ( i-- ) {\n\t\t\t\tdelete cache[ key[ i ] ];\n\t\t\t}\n\t\t}\n\n\t\t// Remove the expando if there's no more data\n\t\tif ( key === undefined || jQuery.isEmptyObject( cache ) ) {\n\n\t\t\t// Support: Chrome <=35 - 45\n\t\t\t// Webkit & Blink performance suffers when deleting properties\n\t\t\t// from DOM nodes, so set to undefined instead\n\t\t\t// https://bugs.chromium.org/p/chromium/issues/detail?id=378607 (bug restricted)\n\t\t\tif ( owner.nodeType ) {\n\t\t\t\towner[ this.expando ] = undefined;\n\t\t\t} else {\n\t\t\t\tdelete owner[ this.expando ];\n\t\t\t}\n\t\t}\n\t},\n\thasData: function( owner ) {\n\t\tvar cache = owner[ this.expando ];\n\t\treturn cache !== undefined && !jQuery.isEmptyObject( cache );\n\t}\n};\nvar dataPriv = new Data();\n\nvar dataUser = new Data();\n\n\n\n//\tImplementation Summary\n//\n//\t1. Enforce API surface and semantic compatibility with 1.9.x branch\n//\t2. Improve the module's maintainability by reducing the storage\n//\t\tpaths to a single mechanism.\n//\t3. Use the same single mechanism to support \"private\" and \"user\" data.\n//\t4. _Never_ expose \"private\" data to user code (TODO: Drop _data, _removeData)\n//\t5. Avoid exposing implementation details on user objects (eg. expando properties)\n//\t6. Provide a clear path for implementation upgrade to WeakMap in 2014\n\nvar rbrace = /^(?:\\{[\\w\\W]*\\}|\\[[\\w\\W]*\\])$/,\n\trmultiDash = /[A-Z]/g;\n\nfunction getData( data ) {\n\tif ( data === \"true\" ) {\n\t\treturn true;\n\t}\n\n\tif ( data === \"false\" ) {\n\t\treturn false;\n\t}\n\n\tif ( data === \"null\" ) {\n\t\treturn null;\n\t}\n\n\t// Only convert to a number if it doesn't change the string\n\tif ( data === +data + \"\" ) {\n\t\treturn +data;\n\t}\n\n\tif ( rbrace.test( data ) ) {\n\t\treturn JSON.parse( data );\n\t}\n\n\treturn data;\n}\n\nfunction dataAttr( elem, key, data ) {\n\tvar name;\n\n\t// If nothing was found internally, try to fetch any\n\t// data from the HTML5 data-* attribute\n\tif ( data === undefined && elem.nodeType === 1 ) {\n\t\tname = \"data-\" + key.replace( rmultiDash, \"-$&\" ).toLowerCase();\n\t\tdata = elem.getAttribute( name );\n\n\t\tif ( typeof data === \"string\" ) {\n\t\t\ttry {\n\t\t\t\tdata = getData( data );\n\t\t\t} catch ( e ) {}\n\n\t\t\t// Make sure we set the data so it isn't changed later\n\t\t\tdataUser.set( elem, key, data );\n\t\t} else {\n\t\t\tdata = undefined;\n\t\t}\n\t}\n\treturn data;\n}\n\njQuery.extend( {\n\thasData: function( elem ) {\n\t\treturn dataUser.hasData( elem ) || dataPriv.hasData( elem );\n\t},\n\n\tdata: function( elem, name, data ) {\n\t\treturn dataUser.access( elem, name, data );\n\t},\n\n\tremoveData: function( elem, name ) {\n\t\tdataUser.remove( elem, name );\n\t},\n\n\t// TODO: Now that all calls to _data and _removeData have been replaced\n\t// with direct calls to dataPriv methods, these can be deprecated.\n\t_data: function( elem, name, data ) {\n\t\treturn dataPriv.access( elem, name, data );\n\t},\n\n\t_removeData: function( elem, name ) {\n\t\tdataPriv.remove( elem, name );\n\t}\n} );\n\njQuery.fn.extend( {\n\tdata: function( key, value ) {\n\t\tvar i, name, data,\n\t\t\telem = this[ 0 ],\n\t\t\tattrs = elem && elem.attributes;\n\n\t\t// Gets all values\n\t\tif ( key === undefined ) {\n\t\t\tif ( this.length ) {\n\t\t\t\tdata = dataUser.get( elem );\n\n\t\t\t\tif ( elem.nodeType === 1 && !dataPriv.get( elem, \"hasDataAttrs\" ) ) {\n\t\t\t\t\ti = attrs.length;\n\t\t\t\t\twhile ( i-- ) {\n\n\t\t\t\t\t\t// Support: IE 11 only\n\t\t\t\t\t\t// The attrs elements can be null (#14894)\n\t\t\t\t\t\tif ( attrs[ i ] ) {\n\t\t\t\t\t\t\tname = attrs[ i ].name;\n\t\t\t\t\t\t\tif ( name.indexOf( \"data-\" ) === 0 ) {\n\t\t\t\t\t\t\t\tname = camelCase( name.slice( 5 ) );\n\t\t\t\t\t\t\t\tdataAttr( elem, name, data[ name ] );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tdataPriv.set( elem, \"hasDataAttrs\", true );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn data;\n\t\t}\n\n\t\t// Sets multiple values\n\t\tif ( typeof key === \"object\" ) {\n\t\t\treturn this.each( function() {\n\t\t\t\tdataUser.set( this, key );\n\t\t\t} );\n\t\t}\n\n\t\treturn access( this, function( value ) {\n\t\t\tvar data;\n\n\t\t\t// The calling jQuery object (element matches) is not empty\n\t\t\t// (and therefore has an element appears at this[ 0 ]) and the\n\t\t\t// `value` parameter was not undefined. An empty jQuery object\n\t\t\t// will result in `undefined` for elem = this[ 0 ] which will\n\t\t\t// throw an exception if an attempt to read a data cache is made.\n\t\t\tif ( elem && value === undefined ) {\n\n\t\t\t\t// Attempt to get data from the cache\n\t\t\t\t// The key will always be camelCased in Data\n\t\t\t\tdata = dataUser.get( elem, key );\n\t\t\t\tif ( data !== undefined ) {\n\t\t\t\t\treturn data;\n\t\t\t\t}\n\n\t\t\t\t// Attempt to \"discover\" the data in\n\t\t\t\t// HTML5 custom data-* attrs\n\t\t\t\tdata = dataAttr( elem, key );\n\t\t\t\tif ( data !== undefined ) {\n\t\t\t\t\treturn data;\n\t\t\t\t}\n\n\t\t\t\t// We tried really hard, but the data doesn't exist.\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// Set the data...\n\t\t\tthis.each( function() {\n\n\t\t\t\t// We always store the camelCased key\n\t\t\t\tdataUser.set( this, key, value );\n\t\t\t} );\n\t\t}, null, value, arguments.length > 1, null, true );\n\t},\n\n\tremoveData: function( key ) {\n\t\treturn this.each( function() {\n\t\t\tdataUser.remove( this, key );\n\t\t} );\n\t}\n} );\n\n\njQuery.extend( {\n\tqueue: function( elem, type, data ) {\n\t\tvar queue;\n\n\t\tif ( elem ) {\n\t\t\ttype = ( type || \"fx\" ) + \"queue\";\n\t\t\tqueue = dataPriv.get( elem, type );\n\n\t\t\t// Speed up dequeue by getting out quickly if this is just a lookup\n\t\t\tif ( data ) {\n\t\t\t\tif ( !queue || Array.isArray( data ) ) {\n\t\t\t\t\tqueue = dataPriv.access( elem, type, jQuery.makeArray( data ) );\n\t\t\t\t} else {\n\t\t\t\t\tqueue.push( data );\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn queue || [];\n\t\t}\n\t},\n\n\tdequeue: function( elem, type ) {\n\t\ttype = type || \"fx\";\n\n\t\tvar queue = jQuery.queue( elem, type ),\n\t\t\tstartLength = queue.length,\n\t\t\tfn = queue.shift(),\n\t\t\thooks = jQuery._queueHooks( elem, type ),\n\t\t\tnext = function() {\n\t\t\t\tjQuery.dequeue( elem, type );\n\t\t\t};\n\n\t\t// If the fx queue is dequeued, always remove the progress sentinel\n\t\tif ( fn === \"inprogress\" ) {\n\t\t\tfn = queue.shift();\n\t\t\tstartLength--;\n\t\t}\n\n\t\tif ( fn ) {\n\n\t\t\t// Add a progress sentinel to prevent the fx queue from being\n\t\t\t// automatically dequeued\n\t\t\tif ( type === \"fx\" ) {\n\t\t\t\tqueue.unshift( \"inprogress\" );\n\t\t\t}\n\n\t\t\t// Clear up the last queue stop function\n\t\t\tdelete hooks.stop;\n\t\t\tfn.call( elem, next, hooks );\n\t\t}\n\n\t\tif ( !startLength && hooks ) {\n\t\t\thooks.empty.fire();\n\t\t}\n\t},\n\n\t// Not public - generate a queueHooks object, or return the current one\n\t_queueHooks: function( elem, type ) {\n\t\tvar key = type + \"queueHooks\";\n\t\treturn dataPriv.get( elem, key ) || dataPriv.access( elem, key, {\n\t\t\tempty: jQuery.Callbacks( \"once memory\" ).add( function() {\n\t\t\t\tdataPriv.remove( elem, [ type + \"queue\", key ] );\n\t\t\t} )\n\t\t} );\n\t}\n} );\n\njQuery.fn.extend( {\n\tqueue: function( type, data ) {\n\t\tvar setter = 2;\n\n\t\tif ( typeof type !== \"string\" ) {\n\t\t\tdata = type;\n\t\t\ttype = \"fx\";\n\t\t\tsetter--;\n\t\t}\n\n\t\tif ( arguments.length < setter ) {\n\t\t\treturn jQuery.queue( this[ 0 ], type );\n\t\t}\n\n\t\treturn data === undefined ?\n\t\t\tthis :\n\t\t\tthis.each( function() {\n\t\t\t\tvar queue = jQuery.queue( this, type, data );\n\n\t\t\t\t// Ensure a hooks for this queue\n\t\t\t\tjQuery._queueHooks( this, type );\n\n\t\t\t\tif ( type === \"fx\" && queue[ 0 ] !== \"inprogress\" ) {\n\t\t\t\t\tjQuery.dequeue( this, type );\n\t\t\t\t}\n\t\t\t} );\n\t},\n\tdequeue: function( type ) {\n\t\treturn this.each( function() {\n\t\t\tjQuery.dequeue( this, type );\n\t\t} );\n\t},\n\tclearQueue: function( type ) {\n\t\treturn this.queue( type || \"fx\", [] );\n\t},\n\n\t// Get a promise resolved when queues of a certain type\n\t// are emptied (fx is the type by default)\n\tpromise: function( type, obj ) {\n\t\tvar tmp,\n\t\t\tcount = 1,\n\t\t\tdefer = jQuery.Deferred(),\n\t\t\telements = this,\n\t\t\ti = this.length,\n\t\t\tresolve = function() {\n\t\t\t\tif ( !( --count ) ) {\n\t\t\t\t\tdefer.resolveWith( elements, [ elements ] );\n\t\t\t\t}\n\t\t\t};\n\n\t\tif ( typeof type !== \"string\" ) {\n\t\t\tobj = type;\n\t\t\ttype = undefined;\n\t\t}\n\t\ttype = type || \"fx\";\n\n\t\twhile ( i-- ) {\n\t\t\ttmp = dataPriv.get( elements[ i ], type + \"queueHooks\" );\n\t\t\tif ( tmp && tmp.empty ) {\n\t\t\t\tcount++;\n\t\t\t\ttmp.empty.add( resolve );\n\t\t\t}\n\t\t}\n\t\tresolve();\n\t\treturn defer.promise( obj );\n\t}\n} );\nvar pnum = ( /[+-]?(?:\\d*\\.|)\\d+(?:[eE][+-]?\\d+|)/ ).source;\n\nvar rcssNum = new RegExp( \"^(?:([+-])=|)(\" + pnum + \")([a-z%]*)$\", \"i\" );\n\n\nvar cssExpand = [ \"Top\", \"Right\", \"Bottom\", \"Left\" ];\n\nvar documentElement = document.documentElement;\n\n\n\n\tvar isAttached = function( elem ) {\n\t\t\treturn jQuery.contains( elem.ownerDocument, elem );\n\t\t},\n\t\tcomposed = { composed: true };\n\n\t// Support: IE 9 - 11+, Edge 12 - 18+, iOS 10.0 - 10.2 only\n\t// Check attachment across shadow DOM boundaries when possible (gh-3504)\n\t// Support: iOS 10.0-10.2 only\n\t// Early iOS 10 versions support `attachShadow` but not `getRootNode`,\n\t// leading to errors. We need to check for `getRootNode`.\n\tif ( documentElement.getRootNode ) {\n\t\tisAttached = function( elem ) {\n\t\t\treturn jQuery.contains( elem.ownerDocument, elem ) ||\n\t\t\t\telem.getRootNode( composed ) === elem.ownerDocument;\n\t\t};\n\t}\nvar isHiddenWithinTree = function( elem, el ) {\n\n\t\t// isHiddenWithinTree might be called from jQuery#filter function;\n\t\t// in that case, element will be second argument\n\t\telem = el || elem;\n\n\t\t// Inline style trumps all\n\t\treturn elem.style.display === \"none\" ||\n\t\t\telem.style.display === \"\" &&\n\n\t\t\t// Otherwise, check computed style\n\t\t\t// Support: Firefox <=43 - 45\n\t\t\t// Disconnected elements can have computed display: none, so first confirm that elem is\n\t\t\t// in the document.\n\t\t\tisAttached( elem ) &&\n\n\t\t\tjQuery.css( elem, \"display\" ) === \"none\";\n\t};\n\n\n\nfunction adjustCSS( elem, prop, valueParts, tween ) {\n\tvar adjusted, scale,\n\t\tmaxIterations = 20,\n\t\tcurrentValue = tween ?\n\t\t\tfunction() {\n\t\t\t\treturn tween.cur();\n\t\t\t} :\n\t\t\tfunction() {\n\t\t\t\treturn jQuery.css( elem, prop, \"\" );\n\t\t\t},\n\t\tinitial = currentValue(),\n\t\tunit = valueParts && valueParts[ 3 ] || ( jQuery.cssNumber[ prop ] ? \"\" : \"px\" ),\n\n\t\t// Starting value computation is required for potential unit mismatches\n\t\tinitialInUnit = elem.nodeType &&\n\t\t\t( jQuery.cssNumber[ prop ] || unit !== \"px\" && +initial ) &&\n\t\t\trcssNum.exec( jQuery.css( elem, prop ) );\n\n\tif ( initialInUnit && initialInUnit[ 3 ] !== unit ) {\n\n\t\t// Support: Firefox <=54\n\t\t// Halve the iteration target value to prevent interference from CSS upper bounds (gh-2144)\n\t\tinitial = initial / 2;\n\n\t\t// Trust units reported by jQuery.css\n\t\tunit = unit || initialInUnit[ 3 ];\n\n\t\t// Iteratively approximate from a nonzero starting point\n\t\tinitialInUnit = +initial || 1;\n\n\t\twhile ( maxIterations-- ) {\n\n\t\t\t// Evaluate and update our best guess (doubling guesses that zero out).\n\t\t\t// Finish if the scale equals or crosses 1 (making the old*new product non-positive).\n\t\t\tjQuery.style( elem, prop, initialInUnit + unit );\n\t\t\tif ( ( 1 - scale ) * ( 1 - ( scale = currentValue() / initial || 0.5 ) ) <= 0 ) {\n\t\t\t\tmaxIterations = 0;\n\t\t\t}\n\t\t\tinitialInUnit = initialInUnit / scale;\n\n\t\t}\n\n\t\tinitialInUnit = initialInUnit * 2;\n\t\tjQuery.style( elem, prop, initialInUnit + unit );\n\n\t\t// Make sure we update the tween properties later on\n\t\tvalueParts = valueParts || [];\n\t}\n\n\tif ( valueParts ) {\n\t\tinitialInUnit = +initialInUnit || +initial || 0;\n\n\t\t// Apply relative offset (+=/-=) if specified\n\t\tadjusted = valueParts[ 1 ] ?\n\t\t\tinitialInUnit + ( valueParts[ 1 ] + 1 ) * valueParts[ 2 ] :\n\t\t\t+valueParts[ 2 ];\n\t\tif ( tween ) {\n\t\t\ttween.unit = unit;\n\t\t\ttween.start = initialInUnit;\n\t\t\ttween.end = adjusted;\n\t\t}\n\t}\n\treturn adjusted;\n}\n\n\nvar defaultDisplayMap = {};\n\nfunction getDefaultDisplay( elem ) {\n\tvar temp,\n\t\tdoc = elem.ownerDocument,\n\t\tnodeName = elem.nodeName,\n\t\tdisplay = defaultDisplayMap[ nodeName ];\n\n\tif ( display ) {\n\t\treturn display;\n\t}\n\n\ttemp = doc.body.appendChild( doc.createElement( nodeName ) );\n\tdisplay = jQuery.css( temp, \"display\" );\n\n\ttemp.parentNode.removeChild( temp );\n\n\tif ( display === \"none\" ) {\n\t\tdisplay = \"block\";\n\t}\n\tdefaultDisplayMap[ nodeName ] = display;\n\n\treturn display;\n}\n\nfunction showHide( elements, show ) {\n\tvar display, elem,\n\t\tvalues = [],\n\t\tindex = 0,\n\t\tlength = elements.length;\n\n\t// Determine new display value for elements that need to change\n\tfor ( ; index < length; index++ ) {\n\t\telem = elements[ index ];\n\t\tif ( !elem.style ) {\n\t\t\tcontinue;\n\t\t}\n\n\t\tdisplay = elem.style.display;\n\t\tif ( show ) {\n\n\t\t\t// Since we force visibility upon cascade-hidden elements, an immediate (and slow)\n\t\t\t// check is required in this first loop unless we have a nonempty display value (either\n\t\t\t// inline or about-to-be-restored)\n\t\t\tif ( display === \"none\" ) {\n\t\t\t\tvalues[ index ] = dataPriv.get( elem, \"display\" ) || null;\n\t\t\t\tif ( !values[ index ] ) {\n\t\t\t\t\telem.style.display = \"\";\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ( elem.style.display === \"\" && isHiddenWithinTree( elem ) ) {\n\t\t\t\tvalues[ index ] = getDefaultDisplay( elem );\n\t\t\t}\n\t\t} else {\n\t\t\tif ( display !== \"none\" ) {\n\t\t\t\tvalues[ index ] = \"none\";\n\n\t\t\t\t// Remember what we're overwriting\n\t\t\t\tdataPriv.set( elem, \"display\", display );\n\t\t\t}\n\t\t}\n\t}\n\n\t// Set the display of the elements in a second loop to avoid constant reflow\n\tfor ( index = 0; index < length; index++ ) {\n\t\tif ( values[ index ] != null ) {\n\t\t\telements[ index ].style.display = values[ index ];\n\t\t}\n\t}\n\n\treturn elements;\n}\n\njQuery.fn.extend( {\n\tshow: function() {\n\t\treturn showHide( this, true );\n\t},\n\thide: function() {\n\t\treturn showHide( this );\n\t},\n\ttoggle: function( state ) {\n\t\tif ( typeof state === \"boolean\" ) {\n\t\t\treturn state ? this.show() : this.hide();\n\t\t}\n\n\t\treturn this.each( function() {\n\t\t\tif ( isHiddenWithinTree( this ) ) {\n\t\t\t\tjQuery( this ).show();\n\t\t\t} else {\n\t\t\t\tjQuery( this ).hide();\n\t\t\t}\n\t\t} );\n\t}\n} );\nvar rcheckableType = ( /^(?:checkbox|radio)$/i );\n\nvar rtagName = ( /<([a-z][^\\/\\0>\\x20\\t\\r\\n\\f]*)/i );\n\nvar rscriptType = ( /^$|^module$|\\/(?:java|ecma)script/i );\n\n\n\n( function() {\n\tvar fragment = document.createDocumentFragment(),\n\t\tdiv = fragment.appendChild( document.createElement( \"div\" ) ),\n\t\tinput = document.createElement( \"input\" );\n\n\t// Support: Android 4.0 - 4.3 only\n\t// Check state lost if the name is set (#11217)\n\t// Support: Windows Web Apps (WWA)\n\t// `name` and `type` must use .setAttribute for WWA (#14901)\n\tinput.setAttribute( \"type\", \"radio\" );\n\tinput.setAttribute( \"checked\", \"checked\" );\n\tinput.setAttribute( \"name\", \"t\" );\n\n\tdiv.appendChild( input );\n\n\t// Support: Android <=4.1 only\n\t// Older WebKit doesn't clone checked state correctly in fragments\n\tsupport.checkClone = div.cloneNode( true ).cloneNode( true ).lastChild.checked;\n\n\t// Support: IE <=11 only\n\t// Make sure textarea (and checkbox) defaultValue is properly cloned\n\tdiv.innerHTML = \"\";\n\tsupport.noCloneChecked = !!div.cloneNode( true ).lastChild.defaultValue;\n\n\t// Support: IE <=9 only\n\t// IE <=9 replaces tags with their contents when inserted outside of\n\t// the select element.\n\tdiv.innerHTML = \" \";\n\tsupport.option = !!div.lastChild;\n} )();\n\n\n// We have to close these tags to support XHTML (#13200)\nvar wrapMap = {\n\n\t// XHTML parsers do not magically insert elements in the\n\t// same way that tag soup parsers do. So we cannot shorten\n\t// this by omitting or other required elements.\n\tthead: [ 1, \"\" ],\n\tcol: [ 2, \"\" ],\n\ttr: [ 2, \"\" ],\n\ttd: [ 3, \"\" ],\n\n\t_default: [ 0, \"\", \"\" ]\n};\n\nwrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;\nwrapMap.th = wrapMap.td;\n\n// Support: IE <=9 only\nif ( !support.option ) {\n\twrapMap.optgroup = wrapMap.option = [ 1, \"\", \" \" ];\n}\n\n\nfunction getAll( context, tag ) {\n\n\t// Support: IE <=9 - 11 only\n\t// Use typeof to avoid zero-argument method invocation on host objects (#15151)\n\tvar ret;\n\n\tif ( typeof context.getElementsByTagName !== \"undefined\" ) {\n\t\tret = context.getElementsByTagName( tag || \"*\" );\n\n\t} else if ( typeof context.querySelectorAll !== \"undefined\" ) {\n\t\tret = context.querySelectorAll( tag || \"*\" );\n\n\t} else {\n\t\tret = [];\n\t}\n\n\tif ( tag === undefined || tag && nodeName( context, tag ) ) {\n\t\treturn jQuery.merge( [ context ], ret );\n\t}\n\n\treturn ret;\n}\n\n\n// Mark scripts as having already been evaluated\nfunction setGlobalEval( elems, refElements ) {\n\tvar i = 0,\n\t\tl = elems.length;\n\n\tfor ( ; i < l; i++ ) {\n\t\tdataPriv.set(\n\t\t\telems[ i ],\n\t\t\t\"globalEval\",\n\t\t\t!refElements || dataPriv.get( refElements[ i ], \"globalEval\" )\n\t\t);\n\t}\n}\n\n\nvar rhtml = /<|?\\w+;/;\n\nfunction buildFragment( elems, context, scripts, selection, ignored ) {\n\tvar elem, tmp, tag, wrap, attached, j,\n\t\tfragment = context.createDocumentFragment(),\n\t\tnodes = [],\n\t\ti = 0,\n\t\tl = elems.length;\n\n\tfor ( ; i < l; i++ ) {\n\t\telem = elems[ i ];\n\n\t\tif ( elem || elem === 0 ) {\n\n\t\t\t// Add nodes directly\n\t\t\tif ( toType( elem ) === \"object\" ) {\n\n\t\t\t\t// Support: Android <=4.0 only, PhantomJS 1 only\n\t\t\t\t// push.apply(_, arraylike) throws on ancient WebKit\n\t\t\t\tjQuery.merge( nodes, elem.nodeType ? [ elem ] : elem );\n\n\t\t\t// Convert non-html into a text node\n\t\t\t} else if ( !rhtml.test( elem ) ) {\n\t\t\t\tnodes.push( context.createTextNode( elem ) );\n\n\t\t\t// Convert html into DOM nodes\n\t\t\t} else {\n\t\t\t\ttmp = tmp || fragment.appendChild( context.createElement( \"div\" ) );\n\n\t\t\t\t// Deserialize a standard representation\n\t\t\t\ttag = ( rtagName.exec( elem ) || [ \"\", \"\" ] )[ 1 ].toLowerCase();\n\t\t\t\twrap = wrapMap[ tag ] || wrapMap._default;\n\t\t\t\ttmp.innerHTML = wrap[ 1 ] + jQuery.htmlPrefilter( elem ) + wrap[ 2 ];\n\n\t\t\t\t// Descend through wrappers to the right content\n\t\t\t\tj = wrap[ 0 ];\n\t\t\t\twhile ( j-- ) {\n\t\t\t\t\ttmp = tmp.lastChild;\n\t\t\t\t}\n\n\t\t\t\t// Support: Android <=4.0 only, PhantomJS 1 only\n\t\t\t\t// push.apply(_, arraylike) throws on ancient WebKit\n\t\t\t\tjQuery.merge( nodes, tmp.childNodes );\n\n\t\t\t\t// Remember the top-level container\n\t\t\t\ttmp = fragment.firstChild;\n\n\t\t\t\t// Ensure the created nodes are orphaned (#12392)\n\t\t\t\ttmp.textContent = \"\";\n\t\t\t}\n\t\t}\n\t}\n\n\t// Remove wrapper from fragment\n\tfragment.textContent = \"\";\n\n\ti = 0;\n\twhile ( ( elem = nodes[ i++ ] ) ) {\n\n\t\t// Skip elements already in the context collection (trac-4087)\n\t\tif ( selection && jQuery.inArray( elem, selection ) > -1 ) {\n\t\t\tif ( ignored ) {\n\t\t\t\tignored.push( elem );\n\t\t\t}\n\t\t\tcontinue;\n\t\t}\n\n\t\tattached = isAttached( elem );\n\n\t\t// Append to fragment\n\t\ttmp = getAll( fragment.appendChild( elem ), \"script\" );\n\n\t\t// Preserve script evaluation history\n\t\tif ( attached ) {\n\t\t\tsetGlobalEval( tmp );\n\t\t}\n\n\t\t// Capture executables\n\t\tif ( scripts ) {\n\t\t\tj = 0;\n\t\t\twhile ( ( elem = tmp[ j++ ] ) ) {\n\t\t\t\tif ( rscriptType.test( elem.type || \"\" ) ) {\n\t\t\t\t\tscripts.push( elem );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn fragment;\n}\n\n\nvar\n\trkeyEvent = /^key/,\n\trmouseEvent = /^(?:mouse|pointer|contextmenu|drag|drop)|click/,\n\trtypenamespace = /^([^.]*)(?:\\.(.+)|)/;\n\nfunction returnTrue() {\n\treturn true;\n}\n\nfunction returnFalse() {\n\treturn false;\n}\n\n// Support: IE <=9 - 11+\n// focus() and blur() are asynchronous, except when they are no-op.\n// So expect focus to be synchronous when the element is already active,\n// and blur to be synchronous when the element is not already active.\n// (focus and blur are always synchronous in other supported browsers,\n// this just defines when we can count on it).\nfunction expectSync( elem, type ) {\n\treturn ( elem === safeActiveElement() ) === ( type === \"focus\" );\n}\n\n// Support: IE <=9 only\n// Accessing document.activeElement can throw unexpectedly\n// https://bugs.jquery.com/ticket/13393\nfunction safeActiveElement() {\n\ttry {\n\t\treturn document.activeElement;\n\t} catch ( err ) { }\n}\n\nfunction on( elem, types, selector, data, fn, one ) {\n\tvar origFn, type;\n\n\t// Types can be a map of types/handlers\n\tif ( typeof types === \"object\" ) {\n\n\t\t// ( types-Object, selector, data )\n\t\tif ( typeof selector !== \"string\" ) {\n\n\t\t\t// ( types-Object, data )\n\t\t\tdata = data || selector;\n\t\t\tselector = undefined;\n\t\t}\n\t\tfor ( type in types ) {\n\t\t\ton( elem, type, selector, data, types[ type ], one );\n\t\t}\n\t\treturn elem;\n\t}\n\n\tif ( data == null && fn == null ) {\n\n\t\t// ( types, fn )\n\t\tfn = selector;\n\t\tdata = selector = undefined;\n\t} else if ( fn == null ) {\n\t\tif ( typeof selector === \"string\" ) {\n\n\t\t\t// ( types, selector, fn )\n\t\t\tfn = data;\n\t\t\tdata = undefined;\n\t\t} else {\n\n\t\t\t// ( types, data, fn )\n\t\t\tfn = data;\n\t\t\tdata = selector;\n\t\t\tselector = undefined;\n\t\t}\n\t}\n\tif ( fn === false ) {\n\t\tfn = returnFalse;\n\t} else if ( !fn ) {\n\t\treturn elem;\n\t}\n\n\tif ( one === 1 ) {\n\t\torigFn = fn;\n\t\tfn = function( event ) {\n\n\t\t\t// Can use an empty set, since event contains the info\n\t\t\tjQuery().off( event );\n\t\t\treturn origFn.apply( this, arguments );\n\t\t};\n\n\t\t// Use same guid so caller can remove using origFn\n\t\tfn.guid = origFn.guid || ( origFn.guid = jQuery.guid++ );\n\t}\n\treturn elem.each( function() {\n\t\tjQuery.event.add( this, types, fn, data, selector );\n\t} );\n}\n\n/*\n * Helper functions for managing events -- not part of the public interface.\n * Props to Dean Edwards' addEvent library for many of the ideas.\n */\njQuery.event = {\n\n\tglobal: {},\n\n\tadd: function( elem, types, handler, data, selector ) {\n\n\t\tvar handleObjIn, eventHandle, tmp,\n\t\t\tevents, t, handleObj,\n\t\t\tspecial, handlers, type, namespaces, origType,\n\t\t\telemData = dataPriv.get( elem );\n\n\t\t// Only attach events to objects that accept data\n\t\tif ( !acceptData( elem ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Caller can pass in an object of custom data in lieu of the handler\n\t\tif ( handler.handler ) {\n\t\t\thandleObjIn = handler;\n\t\t\thandler = handleObjIn.handler;\n\t\t\tselector = handleObjIn.selector;\n\t\t}\n\n\t\t// Ensure that invalid selectors throw exceptions at attach time\n\t\t// Evaluate against documentElement in case elem is a non-element node (e.g., document)\n\t\tif ( selector ) {\n\t\t\tjQuery.find.matchesSelector( documentElement, selector );\n\t\t}\n\n\t\t// Make sure that the handler has a unique ID, used to find/remove it later\n\t\tif ( !handler.guid ) {\n\t\t\thandler.guid = jQuery.guid++;\n\t\t}\n\n\t\t// Init the element's event structure and main handler, if this is the first\n\t\tif ( !( events = elemData.events ) ) {\n\t\t\tevents = elemData.events = Object.create( null );\n\t\t}\n\t\tif ( !( eventHandle = elemData.handle ) ) {\n\t\t\teventHandle = elemData.handle = function( e ) {\n\n\t\t\t\t// Discard the second event of a jQuery.event.trigger() and\n\t\t\t\t// when an event is called after a page has unloaded\n\t\t\t\treturn typeof jQuery !== \"undefined\" && jQuery.event.triggered !== e.type ?\n\t\t\t\t\tjQuery.event.dispatch.apply( elem, arguments ) : undefined;\n\t\t\t};\n\t\t}\n\n\t\t// Handle multiple events separated by a space\n\t\ttypes = ( types || \"\" ).match( rnothtmlwhite ) || [ \"\" ];\n\t\tt = types.length;\n\t\twhile ( t-- ) {\n\t\t\ttmp = rtypenamespace.exec( types[ t ] ) || [];\n\t\t\ttype = origType = tmp[ 1 ];\n\t\t\tnamespaces = ( tmp[ 2 ] || \"\" ).split( \".\" ).sort();\n\n\t\t\t// There *must* be a type, no attaching namespace-only handlers\n\t\t\tif ( !type ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// If event changes its type, use the special event handlers for the changed type\n\t\t\tspecial = jQuery.event.special[ type ] || {};\n\n\t\t\t// If selector defined, determine special event api type, otherwise given type\n\t\t\ttype = ( selector ? special.delegateType : special.bindType ) || type;\n\n\t\t\t// Update special based on newly reset type\n\t\t\tspecial = jQuery.event.special[ type ] || {};\n\n\t\t\t// handleObj is passed to all event handlers\n\t\t\thandleObj = jQuery.extend( {\n\t\t\t\ttype: type,\n\t\t\t\torigType: origType,\n\t\t\t\tdata: data,\n\t\t\t\thandler: handler,\n\t\t\t\tguid: handler.guid,\n\t\t\t\tselector: selector,\n\t\t\t\tneedsContext: selector && jQuery.expr.match.needsContext.test( selector ),\n\t\t\t\tnamespace: namespaces.join( \".\" )\n\t\t\t}, handleObjIn );\n\n\t\t\t// Init the event handler queue if we're the first\n\t\t\tif ( !( handlers = events[ type ] ) ) {\n\t\t\t\thandlers = events[ type ] = [];\n\t\t\t\thandlers.delegateCount = 0;\n\n\t\t\t\t// Only use addEventListener if the special events handler returns false\n\t\t\t\tif ( !special.setup ||\n\t\t\t\t\tspecial.setup.call( elem, data, namespaces, eventHandle ) === false ) {\n\n\t\t\t\t\tif ( elem.addEventListener ) {\n\t\t\t\t\t\telem.addEventListener( type, eventHandle );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ( special.add ) {\n\t\t\t\tspecial.add.call( elem, handleObj );\n\n\t\t\t\tif ( !handleObj.handler.guid ) {\n\t\t\t\t\thandleObj.handler.guid = handler.guid;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Add to the element's handler list, delegates in front\n\t\t\tif ( selector ) {\n\t\t\t\thandlers.splice( handlers.delegateCount++, 0, handleObj );\n\t\t\t} else {\n\t\t\t\thandlers.push( handleObj );\n\t\t\t}\n\n\t\t\t// Keep track of which events have ever been used, for event optimization\n\t\t\tjQuery.event.global[ type ] = true;\n\t\t}\n\n\t},\n\n\t// Detach an event or set of events from an element\n\tremove: function( elem, types, handler, selector, mappedTypes ) {\n\n\t\tvar j, origCount, tmp,\n\t\t\tevents, t, handleObj,\n\t\t\tspecial, handlers, type, namespaces, origType,\n\t\t\telemData = dataPriv.hasData( elem ) && dataPriv.get( elem );\n\n\t\tif ( !elemData || !( events = elemData.events ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Once for each type.namespace in types; type may be omitted\n\t\ttypes = ( types || \"\" ).match( rnothtmlwhite ) || [ \"\" ];\n\t\tt = types.length;\n\t\twhile ( t-- ) {\n\t\t\ttmp = rtypenamespace.exec( types[ t ] ) || [];\n\t\t\ttype = origType = tmp[ 1 ];\n\t\t\tnamespaces = ( tmp[ 2 ] || \"\" ).split( \".\" ).sort();\n\n\t\t\t// Unbind all events (on this namespace, if provided) for the element\n\t\t\tif ( !type ) {\n\t\t\t\tfor ( type in events ) {\n\t\t\t\t\tjQuery.event.remove( elem, type + types[ t ], handler, selector, true );\n\t\t\t\t}\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tspecial = jQuery.event.special[ type ] || {};\n\t\t\ttype = ( selector ? special.delegateType : special.bindType ) || type;\n\t\t\thandlers = events[ type ] || [];\n\t\t\ttmp = tmp[ 2 ] &&\n\t\t\t\tnew RegExp( \"(^|\\\\.)\" + namespaces.join( \"\\\\.(?:.*\\\\.|)\" ) + \"(\\\\.|$)\" );\n\n\t\t\t// Remove matching events\n\t\t\torigCount = j = handlers.length;\n\t\t\twhile ( j-- ) {\n\t\t\t\thandleObj = handlers[ j ];\n\n\t\t\t\tif ( ( mappedTypes || origType === handleObj.origType ) &&\n\t\t\t\t\t( !handler || handler.guid === handleObj.guid ) &&\n\t\t\t\t\t( !tmp || tmp.test( handleObj.namespace ) ) &&\n\t\t\t\t\t( !selector || selector === handleObj.selector ||\n\t\t\t\t\t\tselector === \"**\" && handleObj.selector ) ) {\n\t\t\t\t\thandlers.splice( j, 1 );\n\n\t\t\t\t\tif ( handleObj.selector ) {\n\t\t\t\t\t\thandlers.delegateCount--;\n\t\t\t\t\t}\n\t\t\t\t\tif ( special.remove ) {\n\t\t\t\t\t\tspecial.remove.call( elem, handleObj );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Remove generic event handler if we removed something and no more handlers exist\n\t\t\t// (avoids potential for endless recursion during removal of special event handlers)\n\t\t\tif ( origCount && !handlers.length ) {\n\t\t\t\tif ( !special.teardown ||\n\t\t\t\t\tspecial.teardown.call( elem, namespaces, elemData.handle ) === false ) {\n\n\t\t\t\t\tjQuery.removeEvent( elem, type, elemData.handle );\n\t\t\t\t}\n\n\t\t\t\tdelete events[ type ];\n\t\t\t}\n\t\t}\n\n\t\t// Remove data and the expando if it's no longer used\n\t\tif ( jQuery.isEmptyObject( events ) ) {\n\t\t\tdataPriv.remove( elem, \"handle events\" );\n\t\t}\n\t},\n\n\tdispatch: function( nativeEvent ) {\n\n\t\tvar i, j, ret, matched, handleObj, handlerQueue,\n\t\t\targs = new Array( arguments.length ),\n\n\t\t\t// Make a writable jQuery.Event from the native event object\n\t\t\tevent = jQuery.event.fix( nativeEvent ),\n\n\t\t\thandlers = (\n\t\t\t\t\tdataPriv.get( this, \"events\" ) || Object.create( null )\n\t\t\t\t)[ event.type ] || [],\n\t\t\tspecial = jQuery.event.special[ event.type ] || {};\n\n\t\t// Use the fix-ed jQuery.Event rather than the (read-only) native event\n\t\targs[ 0 ] = event;\n\n\t\tfor ( i = 1; i < arguments.length; i++ ) {\n\t\t\targs[ i ] = arguments[ i ];\n\t\t}\n\n\t\tevent.delegateTarget = this;\n\n\t\t// Call the preDispatch hook for the mapped type, and let it bail if desired\n\t\tif ( special.preDispatch && special.preDispatch.call( this, event ) === false ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Determine handlers\n\t\thandlerQueue = jQuery.event.handlers.call( this, event, handlers );\n\n\t\t// Run delegates first; they may want to stop propagation beneath us\n\t\ti = 0;\n\t\twhile ( ( matched = handlerQueue[ i++ ] ) && !event.isPropagationStopped() ) {\n\t\t\tevent.currentTarget = matched.elem;\n\n\t\t\tj = 0;\n\t\t\twhile ( ( handleObj = matched.handlers[ j++ ] ) &&\n\t\t\t\t!event.isImmediatePropagationStopped() ) {\n\n\t\t\t\t// If the event is namespaced, then each handler is only invoked if it is\n\t\t\t\t// specially universal or its namespaces are a superset of the event's.\n\t\t\t\tif ( !event.rnamespace || handleObj.namespace === false ||\n\t\t\t\t\tevent.rnamespace.test( handleObj.namespace ) ) {\n\n\t\t\t\t\tevent.handleObj = handleObj;\n\t\t\t\t\tevent.data = handleObj.data;\n\n\t\t\t\t\tret = ( ( jQuery.event.special[ handleObj.origType ] || {} ).handle ||\n\t\t\t\t\t\thandleObj.handler ).apply( matched.elem, args );\n\n\t\t\t\t\tif ( ret !== undefined ) {\n\t\t\t\t\t\tif ( ( event.result = ret ) === false ) {\n\t\t\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\t\t\tevent.stopPropagation();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Call the postDispatch hook for the mapped type\n\t\tif ( special.postDispatch ) {\n\t\t\tspecial.postDispatch.call( this, event );\n\t\t}\n\n\t\treturn event.result;\n\t},\n\n\thandlers: function( event, handlers ) {\n\t\tvar i, handleObj, sel, matchedHandlers, matchedSelectors,\n\t\t\thandlerQueue = [],\n\t\t\tdelegateCount = handlers.delegateCount,\n\t\t\tcur = event.target;\n\n\t\t// Find delegate handlers\n\t\tif ( delegateCount &&\n\n\t\t\t// Support: IE <=9\n\t\t\t// Black-hole SVG instance trees (trac-13180)\n\t\t\tcur.nodeType &&\n\n\t\t\t// Support: Firefox <=42\n\t\t\t// Suppress spec-violating clicks indicating a non-primary pointer button (trac-3861)\n\t\t\t// https://www.w3.org/TR/DOM-Level-3-Events/#event-type-click\n\t\t\t// Support: IE 11 only\n\t\t\t// ...but not arrow key \"clicks\" of radio inputs, which can have `button` -1 (gh-2343)\n\t\t\t!( event.type === \"click\" && event.button >= 1 ) ) {\n\n\t\t\tfor ( ; cur !== this; cur = cur.parentNode || this ) {\n\n\t\t\t\t// Don't check non-elements (#13208)\n\t\t\t\t// Don't process clicks on disabled elements (#6911, #8165, #11382, #11764)\n\t\t\t\tif ( cur.nodeType === 1 && !( event.type === \"click\" && cur.disabled === true ) ) {\n\t\t\t\t\tmatchedHandlers = [];\n\t\t\t\t\tmatchedSelectors = {};\n\t\t\t\t\tfor ( i = 0; i < delegateCount; i++ ) {\n\t\t\t\t\t\thandleObj = handlers[ i ];\n\n\t\t\t\t\t\t// Don't conflict with Object.prototype properties (#13203)\n\t\t\t\t\t\tsel = handleObj.selector + \" \";\n\n\t\t\t\t\t\tif ( matchedSelectors[ sel ] === undefined ) {\n\t\t\t\t\t\t\tmatchedSelectors[ sel ] = handleObj.needsContext ?\n\t\t\t\t\t\t\t\tjQuery( sel, this ).index( cur ) > -1 :\n\t\t\t\t\t\t\t\tjQuery.find( sel, this, null, [ cur ] ).length;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif ( matchedSelectors[ sel ] ) {\n\t\t\t\t\t\t\tmatchedHandlers.push( handleObj );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif ( matchedHandlers.length ) {\n\t\t\t\t\t\thandlerQueue.push( { elem: cur, handlers: matchedHandlers } );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Add the remaining (directly-bound) handlers\n\t\tcur = this;\n\t\tif ( delegateCount < handlers.length ) {\n\t\t\thandlerQueue.push( { elem: cur, handlers: handlers.slice( delegateCount ) } );\n\t\t}\n\n\t\treturn handlerQueue;\n\t},\n\n\taddProp: function( name, hook ) {\n\t\tObject.defineProperty( jQuery.Event.prototype, name, {\n\t\t\tenumerable: true,\n\t\t\tconfigurable: true,\n\n\t\t\tget: isFunction( hook ) ?\n\t\t\t\tfunction() {\n\t\t\t\t\tif ( this.originalEvent ) {\n\t\t\t\t\t\t\treturn hook( this.originalEvent );\n\t\t\t\t\t}\n\t\t\t\t} :\n\t\t\t\tfunction() {\n\t\t\t\t\tif ( this.originalEvent ) {\n\t\t\t\t\t\t\treturn this.originalEvent[ name ];\n\t\t\t\t\t}\n\t\t\t\t},\n\n\t\t\tset: function( value ) {\n\t\t\t\tObject.defineProperty( this, name, {\n\t\t\t\t\tenumerable: true,\n\t\t\t\t\tconfigurable: true,\n\t\t\t\t\twritable: true,\n\t\t\t\t\tvalue: value\n\t\t\t\t} );\n\t\t\t}\n\t\t} );\n\t},\n\n\tfix: function( originalEvent ) {\n\t\treturn originalEvent[ jQuery.expando ] ?\n\t\t\toriginalEvent :\n\t\t\tnew jQuery.Event( originalEvent );\n\t},\n\n\tspecial: {\n\t\tload: {\n\n\t\t\t// Prevent triggered image.load events from bubbling to window.load\n\t\t\tnoBubble: true\n\t\t},\n\t\tclick: {\n\n\t\t\t// Utilize native event to ensure correct state for checkable inputs\n\t\t\tsetup: function( data ) {\n\n\t\t\t\t// For mutual compressibility with _default, replace `this` access with a local var.\n\t\t\t\t// `|| data` is dead code meant only to preserve the variable through minification.\n\t\t\t\tvar el = this || data;\n\n\t\t\t\t// Claim the first handler\n\t\t\t\tif ( rcheckableType.test( el.type ) &&\n\t\t\t\t\tel.click && nodeName( el, \"input\" ) ) {\n\n\t\t\t\t\t// dataPriv.set( el, \"click\", ... )\n\t\t\t\t\tleverageNative( el, \"click\", returnTrue );\n\t\t\t\t}\n\n\t\t\t\t// Return false to allow normal processing in the caller\n\t\t\t\treturn false;\n\t\t\t},\n\t\t\ttrigger: function( data ) {\n\n\t\t\t\t// For mutual compressibility with _default, replace `this` access with a local var.\n\t\t\t\t// `|| data` is dead code meant only to preserve the variable through minification.\n\t\t\t\tvar el = this || data;\n\n\t\t\t\t// Force setup before triggering a click\n\t\t\t\tif ( rcheckableType.test( el.type ) &&\n\t\t\t\t\tel.click && nodeName( el, \"input\" ) ) {\n\n\t\t\t\t\tleverageNative( el, \"click\" );\n\t\t\t\t}\n\n\t\t\t\t// Return non-false to allow normal event-path propagation\n\t\t\t\treturn true;\n\t\t\t},\n\n\t\t\t// For cross-browser consistency, suppress native .click() on links\n\t\t\t// Also prevent it if we're currently inside a leveraged native-event stack\n\t\t\t_default: function( event ) {\n\t\t\t\tvar target = event.target;\n\t\t\t\treturn rcheckableType.test( target.type ) &&\n\t\t\t\t\ttarget.click && nodeName( target, \"input\" ) &&\n\t\t\t\t\tdataPriv.get( target, \"click\" ) ||\n\t\t\t\t\tnodeName( target, \"a\" );\n\t\t\t}\n\t\t},\n\n\t\tbeforeunload: {\n\t\t\tpostDispatch: function( event ) {\n\n\t\t\t\t// Support: Firefox 20+\n\t\t\t\t// Firefox doesn't alert if the returnValue field is not set.\n\t\t\t\tif ( event.result !== undefined && event.originalEvent ) {\n\t\t\t\t\tevent.originalEvent.returnValue = event.result;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n};\n\n// Ensure the presence of an event listener that handles manually-triggered\n// synthetic events by interrupting progress until reinvoked in response to\n// *native* events that it fires directly, ensuring that state changes have\n// already occurred before other listeners are invoked.\nfunction leverageNative( el, type, expectSync ) {\n\n\t// Missing expectSync indicates a trigger call, which must force setup through jQuery.event.add\n\tif ( !expectSync ) {\n\t\tif ( dataPriv.get( el, type ) === undefined ) {\n\t\t\tjQuery.event.add( el, type, returnTrue );\n\t\t}\n\t\treturn;\n\t}\n\n\t// Register the controller as a special universal handler for all event namespaces\n\tdataPriv.set( el, type, false );\n\tjQuery.event.add( el, type, {\n\t\tnamespace: false,\n\t\thandler: function( event ) {\n\t\t\tvar notAsync, result,\n\t\t\t\tsaved = dataPriv.get( this, type );\n\n\t\t\tif ( ( event.isTrigger & 1 ) && this[ type ] ) {\n\n\t\t\t\t// Interrupt processing of the outer synthetic .trigger()ed event\n\t\t\t\t// Saved data should be false in such cases, but might be a leftover capture object\n\t\t\t\t// from an async native handler (gh-4350)\n\t\t\t\tif ( !saved.length ) {\n\n\t\t\t\t\t// Store arguments for use when handling the inner native event\n\t\t\t\t\t// There will always be at least one argument (an event object), so this array\n\t\t\t\t\t// will not be confused with a leftover capture object.\n\t\t\t\t\tsaved = slice.call( arguments );\n\t\t\t\t\tdataPriv.set( this, type, saved );\n\n\t\t\t\t\t// Trigger the native event and capture its result\n\t\t\t\t\t// Support: IE <=9 - 11+\n\t\t\t\t\t// focus() and blur() are asynchronous\n\t\t\t\t\tnotAsync = expectSync( this, type );\n\t\t\t\t\tthis[ type ]();\n\t\t\t\t\tresult = dataPriv.get( this, type );\n\t\t\t\t\tif ( saved !== result || notAsync ) {\n\t\t\t\t\t\tdataPriv.set( this, type, false );\n\t\t\t\t\t} else {\n\t\t\t\t\t\tresult = {};\n\t\t\t\t\t}\n\t\t\t\t\tif ( saved !== result ) {\n\n\t\t\t\t\t\t// Cancel the outer synthetic event\n\t\t\t\t\t\tevent.stopImmediatePropagation();\n\t\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\t\treturn result.value;\n\t\t\t\t\t}\n\n\t\t\t\t// If this is an inner synthetic event for an event with a bubbling surrogate\n\t\t\t\t// (focus or blur), assume that the surrogate already propagated from triggering the\n\t\t\t\t// native event and prevent that from happening again here.\n\t\t\t\t// This technically gets the ordering wrong w.r.t. to `.trigger()` (in which the\n\t\t\t\t// bubbling surrogate propagates *after* the non-bubbling base), but that seems\n\t\t\t\t// less bad than duplication.\n\t\t\t\t} else if ( ( jQuery.event.special[ type ] || {} ).delegateType ) {\n\t\t\t\t\tevent.stopPropagation();\n\t\t\t\t}\n\n\t\t\t// If this is a native event triggered above, everything is now in order\n\t\t\t// Fire an inner synthetic event with the original arguments\n\t\t\t} else if ( saved.length ) {\n\n\t\t\t\t// ...and capture the result\n\t\t\t\tdataPriv.set( this, type, {\n\t\t\t\t\tvalue: jQuery.event.trigger(\n\n\t\t\t\t\t\t// Support: IE <=9 - 11+\n\t\t\t\t\t\t// Extend with the prototype to reset the above stopImmediatePropagation()\n\t\t\t\t\t\tjQuery.extend( saved[ 0 ], jQuery.Event.prototype ),\n\t\t\t\t\t\tsaved.slice( 1 ),\n\t\t\t\t\t\tthis\n\t\t\t\t\t)\n\t\t\t\t} );\n\n\t\t\t\t// Abort handling of the native event\n\t\t\t\tevent.stopImmediatePropagation();\n\t\t\t}\n\t\t}\n\t} );\n}\n\njQuery.removeEvent = function( elem, type, handle ) {\n\n\t// This \"if\" is needed for plain objects\n\tif ( elem.removeEventListener ) {\n\t\telem.removeEventListener( type, handle );\n\t}\n};\n\njQuery.Event = function( src, props ) {\n\n\t// Allow instantiation without the 'new' keyword\n\tif ( !( this instanceof jQuery.Event ) ) {\n\t\treturn new jQuery.Event( src, props );\n\t}\n\n\t// Event object\n\tif ( src && src.type ) {\n\t\tthis.originalEvent = src;\n\t\tthis.type = src.type;\n\n\t\t// Events bubbling up the document may have been marked as prevented\n\t\t// by a handler lower down the tree; reflect the correct value.\n\t\tthis.isDefaultPrevented = src.defaultPrevented ||\n\t\t\t\tsrc.defaultPrevented === undefined &&\n\n\t\t\t\t// Support: Android <=2.3 only\n\t\t\t\tsrc.returnValue === false ?\n\t\t\treturnTrue :\n\t\t\treturnFalse;\n\n\t\t// Create target properties\n\t\t// Support: Safari <=6 - 7 only\n\t\t// Target should not be a text node (#504, #13143)\n\t\tthis.target = ( src.target && src.target.nodeType === 3 ) ?\n\t\t\tsrc.target.parentNode :\n\t\t\tsrc.target;\n\n\t\tthis.currentTarget = src.currentTarget;\n\t\tthis.relatedTarget = src.relatedTarget;\n\n\t// Event type\n\t} else {\n\t\tthis.type = src;\n\t}\n\n\t// Put explicitly provided properties onto the event object\n\tif ( props ) {\n\t\tjQuery.extend( this, props );\n\t}\n\n\t// Create a timestamp if incoming event doesn't have one\n\tthis.timeStamp = src && src.timeStamp || Date.now();\n\n\t// Mark it as fixed\n\tthis[ jQuery.expando ] = true;\n};\n\n// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding\n// https://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html\njQuery.Event.prototype = {\n\tconstructor: jQuery.Event,\n\tisDefaultPrevented: returnFalse,\n\tisPropagationStopped: returnFalse,\n\tisImmediatePropagationStopped: returnFalse,\n\tisSimulated: false,\n\n\tpreventDefault: function() {\n\t\tvar e = this.originalEvent;\n\n\t\tthis.isDefaultPrevented = returnTrue;\n\n\t\tif ( e && !this.isSimulated ) {\n\t\t\te.preventDefault();\n\t\t}\n\t},\n\tstopPropagation: function() {\n\t\tvar e = this.originalEvent;\n\n\t\tthis.isPropagationStopped = returnTrue;\n\n\t\tif ( e && !this.isSimulated ) {\n\t\t\te.stopPropagation();\n\t\t}\n\t},\n\tstopImmediatePropagation: function() {\n\t\tvar e = this.originalEvent;\n\n\t\tthis.isImmediatePropagationStopped = returnTrue;\n\n\t\tif ( e && !this.isSimulated ) {\n\t\t\te.stopImmediatePropagation();\n\t\t}\n\n\t\tthis.stopPropagation();\n\t}\n};\n\n// Includes all common event props including KeyEvent and MouseEvent specific props\njQuery.each( {\n\taltKey: true,\n\tbubbles: true,\n\tcancelable: true,\n\tchangedTouches: true,\n\tctrlKey: true,\n\tdetail: true,\n\teventPhase: true,\n\tmetaKey: true,\n\tpageX: true,\n\tpageY: true,\n\tshiftKey: true,\n\tview: true,\n\t\"char\": true,\n\tcode: true,\n\tcharCode: true,\n\tkey: true,\n\tkeyCode: true,\n\tbutton: true,\n\tbuttons: true,\n\tclientX: true,\n\tclientY: true,\n\toffsetX: true,\n\toffsetY: true,\n\tpointerId: true,\n\tpointerType: true,\n\tscreenX: true,\n\tscreenY: true,\n\ttargetTouches: true,\n\ttoElement: true,\n\ttouches: true,\n\n\twhich: function( event ) {\n\t\tvar button = event.button;\n\n\t\t// Add which for key events\n\t\tif ( event.which == null && rkeyEvent.test( event.type ) ) {\n\t\t\treturn event.charCode != null ? event.charCode : event.keyCode;\n\t\t}\n\n\t\t// Add which for click: 1 === left; 2 === middle; 3 === right\n\t\tif ( !event.which && button !== undefined && rmouseEvent.test( event.type ) ) {\n\t\t\tif ( button & 1 ) {\n\t\t\t\treturn 1;\n\t\t\t}\n\n\t\t\tif ( button & 2 ) {\n\t\t\t\treturn 3;\n\t\t\t}\n\n\t\t\tif ( button & 4 ) {\n\t\t\t\treturn 2;\n\t\t\t}\n\n\t\t\treturn 0;\n\t\t}\n\n\t\treturn event.which;\n\t}\n}, jQuery.event.addProp );\n\njQuery.each( { focus: \"focusin\", blur: \"focusout\" }, function( type, delegateType ) {\n\tjQuery.event.special[ type ] = {\n\n\t\t// Utilize native event if possible so blur/focus sequence is correct\n\t\tsetup: function() {\n\n\t\t\t// Claim the first handler\n\t\t\t// dataPriv.set( this, \"focus\", ... )\n\t\t\t// dataPriv.set( this, \"blur\", ... )\n\t\t\tleverageNative( this, type, expectSync );\n\n\t\t\t// Return false to allow normal processing in the caller\n\t\t\treturn false;\n\t\t},\n\t\ttrigger: function() {\n\n\t\t\t// Force setup before trigger\n\t\t\tleverageNative( this, type );\n\n\t\t\t// Return non-false to allow normal event-path propagation\n\t\t\treturn true;\n\t\t},\n\n\t\tdelegateType: delegateType\n\t};\n} );\n\n// Create mouseenter/leave events using mouseover/out and event-time checks\n// so that event delegation works in jQuery.\n// Do the same for pointerenter/pointerleave and pointerover/pointerout\n//\n// Support: Safari 7 only\n// Safari sends mouseenter too often; see:\n// https://bugs.chromium.org/p/chromium/issues/detail?id=470258\n// for the description of the bug (it existed in older Chrome versions as well).\njQuery.each( {\n\tmouseenter: \"mouseover\",\n\tmouseleave: \"mouseout\",\n\tpointerenter: \"pointerover\",\n\tpointerleave: \"pointerout\"\n}, function( orig, fix ) {\n\tjQuery.event.special[ orig ] = {\n\t\tdelegateType: fix,\n\t\tbindType: fix,\n\n\t\thandle: function( event ) {\n\t\t\tvar ret,\n\t\t\t\ttarget = this,\n\t\t\t\trelated = event.relatedTarget,\n\t\t\t\thandleObj = event.handleObj;\n\n\t\t\t// For mouseenter/leave call the handler if related is outside the target.\n\t\t\t// NB: No relatedTarget if the mouse left/entered the browser window\n\t\t\tif ( !related || ( related !== target && !jQuery.contains( target, related ) ) ) {\n\t\t\t\tevent.type = handleObj.origType;\n\t\t\t\tret = handleObj.handler.apply( this, arguments );\n\t\t\t\tevent.type = fix;\n\t\t\t}\n\t\t\treturn ret;\n\t\t}\n\t};\n} );\n\njQuery.fn.extend( {\n\n\ton: function( types, selector, data, fn ) {\n\t\treturn on( this, types, selector, data, fn );\n\t},\n\tone: function( types, selector, data, fn ) {\n\t\treturn on( this, types, selector, data, fn, 1 );\n\t},\n\toff: function( types, selector, fn ) {\n\t\tvar handleObj, type;\n\t\tif ( types && types.preventDefault && types.handleObj ) {\n\n\t\t\t// ( event ) dispatched jQuery.Event\n\t\t\thandleObj = types.handleObj;\n\t\t\tjQuery( types.delegateTarget ).off(\n\t\t\t\thandleObj.namespace ?\n\t\t\t\t\thandleObj.origType + \".\" + handleObj.namespace :\n\t\t\t\t\thandleObj.origType,\n\t\t\t\thandleObj.selector,\n\t\t\t\thandleObj.handler\n\t\t\t);\n\t\t\treturn this;\n\t\t}\n\t\tif ( typeof types === \"object\" ) {\n\n\t\t\t// ( types-object [, selector] )\n\t\t\tfor ( type in types ) {\n\t\t\t\tthis.off( type, selector, types[ type ] );\n\t\t\t}\n\t\t\treturn this;\n\t\t}\n\t\tif ( selector === false || typeof selector === \"function\" ) {\n\n\t\t\t// ( types [, fn] )\n\t\t\tfn = selector;\n\t\t\tselector = undefined;\n\t\t}\n\t\tif ( fn === false ) {\n\t\t\tfn = returnFalse;\n\t\t}\n\t\treturn this.each( function() {\n\t\t\tjQuery.event.remove( this, types, fn, selector );\n\t\t} );\n\t}\n} );\n\n\nvar\n\n\t// Support: IE <=10 - 11, Edge 12 - 13 only\n\t// In IE/Edge using regex groups here causes severe slowdowns.\n\t// See https://connect.microsoft.com/IE/feedback/details/1736512/\n\trnoInnerhtml = /