vare,i=t.context,n=t.componentInstance;n._isMounted||(n._isMounted=!0,ut(n,"mounted")),t.data.keepAlive&&(i._isMounted?((e=n)._inactive=!1,Cn.push(e)):lt(n,!0))},destroy:function(t){vare=t.componentInstance;e._isDestroyed||(t.data.keepAlive?functiont(e,i){if(!(i&&(e._directInactive=!0,at(e))||e._inactive)){e._inactive=!0;for(varn=0;n<e.$children.length;n++)t(e.$children[n]);ut(e,"deactivated")}}(e,!0):e.$destroy())}},Mn=Object.keys(Pn),Nn=1,jn=2,Fn=0;Pt.prototype._init=function(t){vare=this;e._uid=Fn++,e._isVue=!0,t&&t._isComponent?function(t,e){vari=t.$options=Object.create(t.constructor.options);i.parent=e.parent,i.propsData=e.propsData,i._parentVnode=e._parentVnode,i._parentListeners=e._parentListeners,i._renderChildren=e._renderChildren,i._componentTag=e._componentTag,i._parentElm=e._parentElm,i._refElm=e._refElm,e.render&&(i.render=e.render,i.staticRenderFns=e.staticRenderFns)}(e,t):e.$options=F(It(e.constructor),t||{},e),e._renderProxy=e,e._self=e,function(t){vare=t.$options,i=e.parent;if(i&&!e.abstract){for(;i.$options.abstract&&i.$parent;)i=i.$parent;i.$children.push(t)}t.$parent=i,t.$root=i?i.$root:t,t.$children=[],t.$refs={},t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}(e),function(t){t._events=Object.create(null),t._hasHookEvent=!1;vare=t.$options._parentListeners;e&&nt(t,e)}(e),function(t){t._vnode=null,t._staticTrees=null;vare=t.$vnode=t.$options._parentVnode,i=e&&e.context;t.$slots=st(t.$options._renderChildren,i),t.$scopedSlots=Hi,t._c=function(e,i,n,s){returnbt(t,e,i,n,s,!1)},t.$createElement=function(e,i,n,s){returnbt(t,e,i,n,s,!0)};varn=e&&e.data;$(t,"$attrs",n&&n.attrs||Hi,0,!0),$(t,"$listeners",t.$options._parentListeners||Hi,0,!0)}(e),ut(e,"beforeCreate"),function(t){vare=mt(t.$options.inject,t);e&&(dn.shouldConvert=!1,Object.keys(e).forEach(function(i){$(t,i,e[i])}),dn.shouldConvert=!0)}(e),dt(e),function(t){vare=t.$options.provide;e&&(t._provided="function"==typeofe?e.call(t):e)}(e),ut(e,"created"),e.$options.el&&e.$mount(e.$options.el)},function(t){vare={get:function(){returnthis._data}},i={get:function(){returnthis._props}};Object.defineProperty(t.prototype,"$data",e),Object.defineProperty(t.prototype,"$props",i),t.prototype.$set=I,t.prototype.$delete=O,t.prototype.$watch=function(t,e,i){if(a(e))returngt(this,t,e,i);(i=i||{}).user=!0;varn=newEn(this,t,e,i);returni.immediate&&e.call(this,n.value),function(){n.teardown()}}}(Pt),function(t){vare=/^hook:/;t.prototype.$on=function(t,i){if(Array.isArray(t))for(varn=0,s=t.length;n<s;n++)this.$on(t[n],i);else(this._events[t]||(this._events[t]=[])).push(i),e.test(t)&&(this._hasHookEvent=!0);returnthis},t.prototype.$once=function(t,e){functioni(){n.$off(t,i),e.apply(n,arguments)}varn=this;returni.fn=e,n.$on(t,i),n},t.prototype.$off=function(t,e){vari=this;if(!arguments.length)returni._events=Object.create(null),i;if(Array.isArray(t)){for(varn=0,s=t.length;n<s;n++)this.$off(t[n],e);returni}varr=i._events[t];if(!r)returni;if(1===arguments.length)returni._events[t]=null,i;if(e)for(varo,a=r.length;a--;)if((o=r[a])===e||o.fn===e){r.splice(a,1);break}returni},t.prototype.$emit=function(t){vare=this,i=e._events[t];if(i){i=i.length>1?m(i):i;for(varn=m(arguments,1),s=0,r=i.length;s<r;s++)try{i[s].apply(e,n)}catch(i){D(i,e,'event handler for "'+t+'"')}}returne}}(Pt),function(t){t.prototype._update=function(t,e){vari=this;i._isMounted&&ut(i,"beforeUpdate");varn=i.$el,s=i._vnode,r=wn;wn=i,i._vnode=t,s?i.$el=i.__patch__(s,t):(i.$el=i.__patch__(i.$el,t,e,!1,i.$options._parentElm,i.$options._refElm),i.$options._parentElm=i.$options._refElm=null),wn=r,n&&(n.__vue__=null),i.$el&&(i.$el.__vue__=i),i.$vnode&&i.$parent&&i.$vnode===i.$parent._vnode&&(i.$parent.$el=i.$el)},t.prototype.$forceUpdate=function(){this._watcher&&this._watcher.update()},t.prototype.$destroy=function(){vart=this;if(!t._isBeingDestroyed){ut(t,"beforeDestroy"),t._isBeingDestroyed=!0;vare=t.$parent;!e||e._isBeingDestroyed||t.$options.abstract||d(e.$children,t),t._watcher&&t._watcher.teardown();fo
clearTimeout(i.timeout),i.hoverState="out",!i.options.delay||!i.options.delay.hide)returni.hide();i.timeout=setTimeout(function(){"out"==i.hoverState&&i.hide()},i.options.delay.hide)},e.prototype.show=function(){vari=t.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(i);varn=t.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(i.isDefaultPrevented()||!n)return;vars=this,r=this.tip(),o=this.getUID(this.type);this.setContent(),r.attr("id",o),this.$element.attr("aria-describedby",o),this.options.animation&&r.addClass("fade");vara="function"==typeofthis.options.placement?this.options.placement.call(this,r[0],this.$element[0]):this.options.placement,l=/\s?auto?\s?/i,u=l.test(a);u&&(a=a.replace(l,"")||"top"),r.detach().css({top:0,left:0,display:"block"}).addClass(a).data("bs."+this.type,this),this.options.container?r.appendTo(this.options.container):r.insertAfter(this.$element);varc=this.getPosition(),h=r[0].offsetWidth,d=r[0].offsetHeight;if(u){varp=a,f=this.options.container?t(this.options.container):this.$element.parent(),g=this.getPosition(f);a="bottom"==a&&c.bottom+d>g.bottom?"top":"top"==a&&c.top-d<g.top?"bottom":"right"==a&&c.right+h>g.width?"left":"left"==a&&c.left-h<g.left?"right":a,r.removeClass(p).addClass(a)}varm=this.getCalculatedOffset(a,c,h,d);this.applyPlacement(m,a);varv=function(){vart=s.hoverState;s.$element.trigger("shown.bs."+s.type),s.hoverState=null,"out"==t&&s.leave(s)};t.support.transition&&this.$tip.hasClass("fade")?r.one("bsTransitionEnd",v).emulateTransitionEnd(e.TRANSITION_DURATION):v()}},e.prototype.applyPlacement=function(e,i){varn=this.tip(),s=n[0].offsetWidth,r=n[0].offsetHeight,o=parseInt(n.css("margin-top"),10),a=parseInt(n.css("margin-left"),10);isNaN(o)&&(o=0),isNaN(a)&&(a=0),e.top=e.top+o,e.left=e.left+a,t.offset.setOffset(n[0],t.extend({using:function(t){n.css({top:Math.round(t.top),left:Math.round(t.left)})}},e),0),n.addClass("in");varl=n[0].offsetWidth,u=n[0].offsetHeight;"top"==i&&u!=r&&(e.top=e.top+r-u);varc=this.getViewportAdjustedDelta(i,e,l,u);c.left?e.left+=c.left:e.top+=c.top;varh=/top|bottom/.test(i),d=h?2*c.left-s+l:2*c.top-r+u,p=h?"offsetWidth":"offsetHeight";n.offset(e),this.replaceArrow(d,n[0][p],h)},e.prototype.replaceArrow=function(t,e,i){this.arrow().css(i?"left":"top",50*(1-t/e)+"%").css(i?"top":"left","")},e.prototype.setContent=function(){vart=this.tip(),e=this.getTitle();t.find(".tooltip-inner")[this.options.html?"html":"text"](e),t.removeClass("fade in top bottom left right")},e.prototype.hide=function(i){functionn(){"in"!=s.hoverState&&r.detach(),s.$element.removeAttr("aria-describedby").trigger("hidden.bs."+s.type),i&&i()}vars=this,r=t(this.$tip),o=t.Event("hide.bs."+this.type);if(this.$element.trigger(o),!o.isDefaultPrevented())returnr.removeClass("in"),t.support.transition&&r.hasClass("fade")?r.one("bsTransitionEnd",n).emulateTransitionEnd(e.TRANSITION_DURATION):n(),this.hoverState=null,this},e.prototype.fixTitle=function(){vart=this.$element;(t.attr("title")||"string"!=typeoft.attr("data-original-title"))&&t.attr("data-original-title",t.attr("title")||"").attr("title","")},e.prototype.hasContent=function(){returnthis.getTitle()},e.prototype.getPosition=function(e){vari=(e=e||this.$element)[0],n="BODY"==i.tagName,s=i.getBoundingClientRect();null==s.width&&(s=t.extend({},s,{width:s.right-s.left,height:s.bottom-s.top}));varr=n?{top:0,left:0}:e.offset(),o={scroll:n?document.documentElement.scrollTop||document.body.scrollTop:e.scrollTop()},a=n?{width:t(window).width(),height:t(window).height()}:null;returnt.extend({},s,o,a,r)},e.prototype.getCalculatedOffset=function(t,e,i,n){return"bottom"==t?{top:e.top+e.height,left:e.left+e.width/2-i/2}:"top"==t?{top:e.top-n,left:e.left+e.width/2-i/2}:"left"==t?{top:e.top+e.height/2-n/2,left:e.left-i}:{top:e.top+e.height/2-n/2,left:e.left+e.width}},e.prototype.getViewportAdjustedDelta=function(t,e,i,n){vars={top:0,left:0};if(!this.$viewport)returns;varr=this.options.viewport&&this.options.viewport.padding||0,o=this.getPosition(this.$viewpor
varr=this;n.__super__.bind.apply(this,arguments),this.$selection.on("click",function(t){r.trigger("toggle",{originalEvent:t})}),this.$selection.on("click",".select2-selection__choice__remove",function(e){if(!r.isDisabled()){varn=t(this).parent(),s=i.GetData(n[0],"data");r.trigger("unselect",{originalEvent:e,data:s})}})},n.prototype.clear=function(){vart=this.$selection.find(".select2-selection__rendered");t.empty(),t.removeAttr("title")},n.prototype.display=function(t,e){vari=this.options.get("templateSelection");returnthis.options.get("escapeMarkup")(i(t,e))},n.prototype.selectionContainer=function(){returnt('<li class="select2-selection__choice"><span class="select2-selection__choice__remove" role="presentation">×</span></li>')},n.prototype.update=function(t){if(this.clear(),0!==t.length){for(vare=[],n=0;n<t.length;n++){vars=t[n],r=this.selectionContainer(),o=this.display(s,r);r.append(o);vara=s.title||s.text;a&&r.attr("title",a),i.StoreData(r[0],"data",s),e.push(r)}varl=this.$selection.find(".select2-selection__rendered");i.appendMany(l,e)}},n}),e.define("select2/selection/placeholder",["../utils"],function(t){functione(t,e,i){this.placeholder=this.normalizePlaceholder(i.get("placeholder")),t.call(this,e,i)}returne.prototype.normalizePlaceholder=function(t,e){return"string"==typeofe&&(e={id:"",text:e}),e},e.prototype.createPlaceholder=function(t,e){vari=this.selectionContainer();returni.html(this.display(e)),i.addClass("select2-selection__placeholder").removeClass("select2-selection__choice"),i},e.prototype.update=function(t,e){vari=1==e.length&&e[0].id!=this.placeholder.id;if(e.length>1||i)returnt.call(this,e);this.clear();varn=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(n)},e}),e.define("select2/selection/allowClear",["jquery","../keys","../utils"],function(t,e,i){functionn(){}returnn.prototype.bind=function(t,e,i){varn=this;t.call(this,e,i),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",function(t){n._handleClear(t)}),e.on("keypress",function(t){n._handleKeyboardClear(t,e)})},n.prototype._handleClear=function(t,e){if(!this.isDisabled()){varn=this.$selection.find(".select2-selection__clear");if(0!==n.length){e.stopPropagation();vars=i.GetData(n[0],"data"),r=this.$element.val();this.$element.val(this.placeholder.id);varo={data:s};if(this.trigger("clear",o),o.prevented)this.$element.val(r);else{for(vara=0;a<s.length;a++)if(o={data:s[a]},this.trigger("unselect",o),o.prevented)returnvoidthis.$element.val(r);this.$element.trigger("input").trigger("change"),this.trigger("toggle",{})}}}},n.prototype._handleKeyboardClear=function(t,i,n){n.isOpen()||i.which!=e.DELETE&&i.which!=e.BACKSPACE||this._handleClear(i)},n.prototype.update=function(e,n){if(e.call(this,n),!(this.$selection.find(".select2-selection__placeholder").length>0||0===n.length)){vars=this.options.get("translations").get("removeAllItems"),r=t('<span class="select2-selection__clear" title="'+s()+'">×</span>');i.StoreData(r[0],"data",n),this.$selection.find(".select2-selection__rendered").prepend(r)}},n}),e.define("select2/selection/search",["jquery","../utils","../keys"],function(t,e,i){functionn(t,e,i){t.call(this,e,i)}returnn.prototype.render=function(e){vari=t('<li class="select2-search select2-search--inline"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></li>');this.$searchContainer=i,this.$search=i.find("input");varn=e.call(this);returnthis._transferTabIndex(),n},n.prototype.bind=function(t,n,s){varr=this,o=n.id+"-results";t.call(this,n,s),n.on("open",function(){r.$search.attr("aria-controls",o),r.$search.trigger("focus")}),n.on("close",function(){r.$search.val(""),r.$search.removeAttr("aria-controls"),r.$search.rem
for(vari=0,n=0;n<e.length;n++){vars=e[n];s.children?i+=t(s.children):i++}returni}(e.data.results)<this.minimumResultsForSearch)&&t.call(this,e)},t}),e.define("select2/dropdown/selectOnClose",["../utils"],function(t){functione(){}returne.prototype.bind=function(t,e,i){varn=this;t.call(this,e,i),e.on("close",function(t){n._handleSelectOnClose(t)})},e.prototype._handleSelectOnClose=function(e,i){if(i&&null!=i.originalSelect2Event){varn=i.originalSelect2Event;if("select"===n._type||"unselect"===n._type)return}vars=this.getHighlightedResults();if(!(s.length<1)){varr=t.GetData(s[0],"data");null!=r.element&&r.element.selected||null==r.element&&r.selected||this.trigger("select",{data:r})}},e}),e.define("select2/dropdown/closeOnSelect",[],function(){functiont(){}returnt.prototype.bind=function(t,e,i){varn=this;t.call(this,e,i),e.on("select",function(t){n._selectTriggered(t)}),e.on("unselect",function(t){n._selectTriggered(t)})},t.prototype._selectTriggered=function(t,e){vari=e.originalEvent;i&&(i.ctrlKey||i.metaKey)||this.trigger("close",{originalEvent:i,originalSelect2Event:e})},t}),e.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(t){vare=t.input.length-t.maximum,i="Please delete "+e+" character";return1!=e&&(i+="s"),i},inputTooShort:function(t){return"Please enter "+(t.minimum-t.input.length)+" or more characters"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(t){vare="You can only select "+t.maximum+" item";return1!=t.maximum&&(e+="s"),e},noResults:function(){return"No results found"},searching:function(){return"Searching…"},removeAllItems:function(){return"Remove all items"}}}),e.define("select2/defaults",["jquery","require","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./i18n/en"],function(t,e,i,n,s,r,o,a,l,u,c,h,d,p,f,g,m,v,_,y,b,w,x,C,k,D,T,S,A){functionE(){this.reset()}returnE.prototype.apply=function(c){if(null==(c=t.extend(!0,{},this.defaults,c)).dataAdapter){if(null!=c.ajax?c.dataAdapter=f:null!=c.data?c.dataAdapter=p:c.dataAdapter=d,c.minimumInputLength>0&&(c.dataAdapter=u.Decorate(c.dataAdapter,v)),c.maximumInputLength>0&&(c.dataAdapter=u.Decorate(c.dataAdapter,_)),c.maximumSelectionLength>0&&(c.dataAdapter=u.Decorate(c.dataAdapter,y)),c.tags&&(c.dataAdapter=u.Decorate(c.dataAdapter,g)),null==c.tokenSeparators&&null==c.tokenizer||(c.dataAdapter=u.Decorate(c.dataAdapter,m)),null!=c.query){varh=e(c.amdBase+"compat/query");c.dataAdapter=u.Decorate(c.dataAdapter,h)}if(null!=c.initSelection){varA=e(c.amdBase+"compat/initSelection");c.dataAdapter=u.Decorate(c.dataAdapter,A)}}if(null==c.resultsAdapter&&(c.resultsAdapter=i,null!=c.ajax&&(c.resultsAdapter=u.Decorate(c.resultsAdapter,C)),null!=c.placeholder&&(c.resultsAdapter=u.Decorate(c.resultsAdapter,x)),c.selectOnClose&&(c.resultsAdapter=u.Decorate(c.resultsAdapter,T))),null==c.dropdownAdapter){if(c.multiple)c.dropdownAdapter=b;else{varE=u.Decorate(b,w);c.dropdownAdapter=E}if(0!==c.minimumResultsForSearch&&(c.dropdownAdapter=u.Decorate(c.dropdownAdapter,D)),c.closeOnSelect&&(c.dropdownAdapter=u.Decorate(c.dropdownAdapter,S)),null!=c.dropdownCssClass||null!=c.dropdownCss||null!=c.adaptDropdownCssClass){var$=e(c.amdBase+"compat/dropdownCss");c.dropdownAdapter=u.Decorate(c.dropdownAdapter,$)}c.dropdownAdapter=u.Decorate(c.dropdownAdapter,k)}if(null==c.selectionAdapter){if(c.multiple?c.selectionAdapter=s:c.selectionAdapter=n,null!=c.placeholder&&(c.selectionAdapter=u.Decorate(c.selectionAdapter,r)),c.allowClear&&(c.select
type:"button","data-dismiss":"modal"}},[t._v("Close")]),t._v(" "),i("button",{staticClass:"btn btn-primary",attrs:{type:"button"},on:{click:t.update}},[t._v("\n Save Changes\n ")])])])])])])},staticRenderFns:[function(){vart=this,e=t.$createElement,i=t._self._c||e;returni("thead",[i("tr",[i("th",[t._v("Client ID")]),t._v(" "),i("th",[t._v("Name")]),t._v(" "),i("th",[t._v("Secret")]),t._v(" "),i("th",[i("span",{staticClass:"sr-only"},[t._v("Edit")])]),t._v(" "),i("th",[i("span",{staticClass:"sr-only"},[t._v("Delete")])])])])},function(){vart=this.$createElement,e=this._self._c||t;returne("div",{staticClass:"modal-header"},[e("button",{staticClass:"close",attrs:{type:"button ","data-dismiss":"modal","aria-hidden":"true"}},[this._v("×")]),this._v(" "),e("h2",{staticClass:"modal-title"},[this._v("\n Create Client\n ")])])},function(){vart=this.$createElement,e=this._self._c||t;returne("p",[e("strong",[this._v("Whoops!")]),this._v(" Something went wrong!")])},function(){vart=this.$createElement,e=this._self._c||t;returne("div",{staticClass:"modal-header"},[e("button",{staticClass:"close",attrs:{type:"button ","data-dismiss":"modal","aria-hidden":"true"}},[this._v("×")]),this._v(" "),e("h2",{staticClass:"modal-title"},[this._v("\n Edit Client\n ")])])},function(){vart=this.$createElement,e=this._self._c||t;returne("p",[e("strong",[this._v("Whoops!")]),this._v(" Something went wrong!")])}]}},lafA:function(t,e){t.exports={render:function(){vart=this,e=t.$createElement,i=t._self._c||e;returni("div",[t.show&&t.fields.length?i("div",[i("div",{staticClass:"form-group"},[i("fieldset",[i("legend",{staticClass:"col-md-3 control-label"},[t._v("Default Values")]),t._v(" "),i("div",{staticClass:"col-sm-8 col-xl-7"},[t.error?i("p",[t._v("\n There was a problem retrieving the fields for this fieldset.\n ")]):t._e(),t._v(" "),t._l(t.fields,function(e){returni("div",{staticClass:"row"},[i("div",{staticClass:"col-sm-12 col-lg-6"},[i("label",{staticClass:"control-label",attrs:{for:"default-value"+e.id}},[t._v(t._s(e.name))])]),t._v(" "),i("div",{staticClass:"col-sm-12 col-lg-6"},["text"==e.type?i("input",{staticClass:"form-control m-b-xs",attrs:{type:"text",id:"default-value"+e.id,name:"default_values["+e.id+"]"},domProps:{value:t.getValue(e)}}):t._e(),t._v(" "),"textarea"==e.type?i("textarea",{staticClass:"form-control",attrs:{id:"default-value"+e.id,name:"default_values["+e.id+"]"},domProps:{value:t.getValue(e)}}):t._e(),i("br"),t._v(" "),"listbox"==e.type?i("select",{staticClass:"form-control m-b-xs",attrs:{name:"default_values["+e.id+"]"}},[i("option",{attrs:{value:""}}),t._v(" "),t._l(e.field_values_array,function(n){returni("option",{domProps:{value:n,selected:t.getValue(e)==n}},[t._v(t._s(n))])})],2):t._e()])])})],2)])])]):t._e()])},staticRenderFns:[]}},m5pD:function(t,e){},oTR8:function(t,e){t.exports={render:function(){vart=this,e=t.$createElement,i=t._self._c||e;returni("div",[t.tokens.length>0?i("div",[i("div",{staticClass:"panel panel-default"},[i("h2",{staticClass:"panel-heading"},[t._v("Authorized Applications")]),t._v(" "),i("div",{staticClass:"panel-body"},[i("table",{staticClass:"table table-borderless m-b-none"},[t._m(0),t._v(" "),i("tbody",t._l(t.tokens,function(e){returni("tr",[i("td",{staticStyle:{"vertical-align":"middle"}},[t._v("\n "+t._s(e.client.name)+"\n ")]),t._v(" "),i("td",{staticStyle:{"vertical-align":"middle"}},[e.scopes.length>0?i("span",[t._v("\n "+t._s(e.scopes.join(", "))+"\n ")]):t._e()]),t._v(" "),i("td",{staticStyle:{"vertical-align":"middle"}},[i("a",{staticClass:"action-link text-danger",on:{click:function(i){t.revoke(e)}}},[t._v("\n Revoke\n ")])])])}))])])])]):t._e()])},staticRenderFns:[function(){vart=this.$createElement,e=this.
;for(varm=c.left+p.left-d.left,y=c.top+p.top-d.top,b=0;b<w.modules.length;++b){varx=w.modules[b],C=x.position.call(this,{left:m,top:y,targetAttachment:i,targetPos:c,elementPos:n,offset:d,targetOffset:p,manualOffset:f,manualTargetOffset:g,scrollbarSize:S,attachment:this.attachment});if(!1===C)return!1;void0!==C&&"object"==typeofC&&(y=C.top,m=C.left)}vark={page:{top:y,left:m},viewport:{top:y-pageYOffset,bottom:pageYOffset-y-l+innerHeight,left:m-pageXOffset,right:pageXOffset-m-a+innerWidth}},D=this.target.ownerDocument,T=D.defaultView,S=void0;returnT.innerHeight>D.documentElement.clientHeight&&(S=this.cache("scrollbar-size",o),k.viewport.bottom-=S.height),T.innerWidth>D.documentElement.clientWidth&&(S=this.cache("scrollbar-size",o),k.viewport.right-=S.width),-1!==["","static"].indexOf(D.body.style.position)&&-1!==["","static"].indexOf(D.body.parentElement.style.position)||(k.page.bottom=D.body.scrollHeight-y-l,k.page.right=D.body.scrollWidth-m-a),void0!==this.options.optimizations&&!1!==this.options.optimizations.moveElement&&void0===this.targetModifier&&function(){vare=t.cache("target-offsetparent",function(){returnr(t.target)}),i=t.cache("target-offsetparent-bounds",function(){returns(e)}),n=getComputedStyle(e),o=i,a={};if(["Top","Left","Bottom","Right"].forEach(function(t){a[t.toLowerCase()]=parseFloat(n["border"+t+"Width"])}),i.right=D.body.scrollWidth-i.left-o.width+a.right,i.bottom=D.body.scrollHeight-i.top-o.height+a.bottom,k.page.top>=i.top+a.top&&k.page.bottom>=i.bottom&&k.page.left>=i.left+a.left&&k.page.right>=i.right){varl=e.scrollTop,u=e.scrollLeft;k.offset={top:k.page.top-i.top+l-a.top,left:k.page.left-i.left+u-a.left}}}(),this.move(k),this.history.unshift(k),this.history.length>3&&this.history.pop(),e&&E(),!0}}},{key:"move",value:function(t){vare=this;if(void0!==this.element.parentNode){vari={};for(varnint){i[n]={};for(varsint[n]){for(varo=!1,l=0;l<this.history.length;++l){varu=this.history[l];if(void0!==u[n]&&!g(u[n][s],t[n][s])){o=!0;break}}o||(i[n][s]=!0)}}varc={top:"",left:"",right:"",bottom:""},h=function(t,i){if(!1!==(void0!==e.options.optimizations?e.options.optimizations.gpu:null)){varn=void0,s=void0;t.top?(c.top=0,n=i.top):(c.bottom=0,n=-i.bottom),t.left?(c.left=0,s=i.left):(c.right=0,s=-i.right),window.matchMedia&&(window.matchMedia("only screen and (min-resolution: 1.3dppx)").matches||window.matchMedia("only screen and (-webkit-min-device-pixel-ratio: 1.3)").matches||(s=Math.round(s),n=Math.round(n))),c[M]="translateX("+s+"px) translateY("+n+"px)","msTransform"!==M&&(c[M]+=" translateZ(0)")}elset.top?c.top=i.top+"px":c.bottom=i.bottom+"px",t.left?c.left=i.left+"px":c.right=i.right+"px"},d=!1;if((i.page.top||i.page.bottom)&&(i.page.left||i.page.right)?(c.position="absolute",h(i.page,t.page)):(i.viewport.top||i.viewport.bottom)&&(i.viewport.left||i.viewport.right)?(c.position="fixed",h(i.viewport,t.viewport)):void0!==i.offset&&i.offset.top&&i.offset.left?function(){c.position="absolute";varn=e.cache("target-offsetparent",function(){returnr(e.target)});r(e.element)!==n&&A(function(){e.element.parentNode.removeChild(e.element),n.appendChild(e.element)}),h(i.offset,t.offset),d=!0}():(c.position="absolute",h({top:!0,left:!0},t.page)),!d)if(this.options.bodyElement)this.element.parentNode!==this.options.bodyElement&&this.options.bodyElement.appendChild(this.element);else{for(varp=!0,f=this.element.parentNode;f&&1===f.nodeType&&"BODY"!==f.tagName;){if("static"!==getComputedStyle(f).position){p=!1;break}f=f.parentNode}p||(this.element.parentNode.removeChild(this.element),this.element.ownerDocument.body.appendChild(this.element))}varm={},v=!1;for(varsinc){var_=c[s];this.element.style[s]!==_&&(v=!0,m[s]=_)}v&&A(function(){a(e.element.style,m),e.trigger("repositioned")})}}}]),c}($);B.modules=[],w.position=j;varq=a(B,w),I=function(){functiont(t,e){vari=[],n=!0,s=!1,r=void0;try{for(varo,a=t[Symbol.iterator]();!(n=(o=a.next()).done)&&(i.push(o.value),!e||i.length!==e);n=!0);}catch(t){s=!0,r=t}finally{try{!n&&a.return&&a.return()}finally{if(s)throwr}}returni}returnf
returnt&&newDate(t.getFullYear(),t.getMonth(),t.getDate())},_zero_utc_time:function(t){returnt&&i(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate())},getDates:function(){returnt.map(this.dates,this._utc_to_local)},getUTCDates:function(){returnt.map(this.dates,function(t){returnnewDate(t)})},getDate:function(){returnthis._utc_to_local(this.getUTCDate())},getUTCDate:function(){vart=this.dates.get(-1);returnt!==e?newDate(t):null},clearDates:function(){this.inputField.val(""),this.update(),this._trigger("changeDate"),this.o.autoclose&&this.hide()},setDates:function(){vare=t.isArray(arguments[0])?arguments[0]:arguments;returnthis.update.apply(this,e),this._trigger("changeDate"),this.setValue(),this},setUTCDates:function(){vare=t.isArray(arguments[0])?arguments[0]:arguments;returnthis.setDates.apply(this,t.map(e,this._utc_to_local)),this},setDate:r("setDates"),setUTCDate:r("setUTCDates"),remove:r("destroy","Method `remove` is deprecated and will be removed in version 2.0. Use `destroy` instead"),setValue:function(){vart=this.getFormattedDate();returnthis.inputField.val(t),this},getFormattedDate:function(i){i===e&&(i=this.o.format);varn=this.o.language;returnt.map(this.dates,function(t){returnv.formatDate(t,i,n)}).join(this.o.multidateSeparator)},getStartDate:function(){returnthis.o.startDate},setStartDate:function(t){returnthis._process_options({startDate:t}),this.update(),this.updateNavArrows(),this},getEndDate:function(){returnthis.o.endDate},setEndDate:function(t){returnthis._process_options({endDate:t}),this.update(),this.updateNavArrows(),this},setDaysOfWeekDisabled:function(t){returnthis._process_options({daysOfWeekDisabled:t}),this.update(),this},setDaysOfWeekHighlighted:function(t){returnthis._process_options({daysOfWeekHighlighted:t}),this.update(),this},setDatesDisabled:function(t){returnthis._process_options({datesDisabled:t}),this.update(),this},place:function(){if(this.isInline)returnthis;vare=this.picker.outerWidth(),i=this.picker.outerHeight(),n=t(this.o.container),s=n.width(),r="body"===this.o.container?t(document).scrollTop():n.scrollTop(),o=n.offset(),a=[0];this.element.parents().each(function(){vare=t(this).css("z-index");"auto"!==e&&0!==Number(e)&&a.push(Number(e))});varl=Math.max.apply(Math,a)+this.o.zIndexOffset,u=this.component?this.component.parent().offset():this.element.offset(),c=this.component?this.component.outerHeight(!0):this.element.outerHeight(!1),h=this.component?this.component.outerWidth(!0):this.element.outerWidth(!1),d=u.left-o.left,p=u.top-o.top;"body"!==this.o.container&&(p+=r),this.picker.removeClass("datepicker-orient-top datepicker-orient-bottom datepicker-orient-right datepicker-orient-left"),"auto"!==this.o.orientation.x?(this.picker.addClass("datepicker-orient-"+this.o.orientation.x),"right"===this.o.orientation.x&&(d-=e-h)):u.left<0?(this.picker.addClass("datepicker-orient-left"),d-=u.left-10):d+e>s?(this.picker.addClass("datepicker-orient-right"),d+=h-e):this.o.rtl?this.picker.addClass("datepicker-orient-right"):this.picker.addClass("datepicker-orient-left");varf,g=this.o.orientation.y;if("auto"===g&&(f=-r+p-i,g=f<0?"bottom":"top"),this.picker.addClass("datepicker-orient-"+g),"top"===g?p-=i+parseInt(this.picker.css("padding-top")):p+=c,this.o.rtl){varm=s-(d+h);this.picker.css({top:p,right:m,zIndex:l})}elsethis.picker.css({top:p,left:d,zIndex:l});returnthis},_allow_update:!0,update:function(){if(!this._allow_update)returnthis;vare=this.dates.copy(),i=[],n=!1;returnarguments.length?(t.each(arguments,t.proxy(function(t,e){einstanceofDate&&(e=this._local_to_utc(e)),i.push(e)},this)),n=!0):(i=this.isInput?this.element.val():this.element.data("date")||this.inputField.val(),i=i&&this.o.multidate?i.split(this.o.multidateSeparator):[i],deletethis.element.data().date),i=t.map(i,t.proxy(function(t){returnv.parseDate(t,this.o.format,this.o.language,this.o.assumeNearbyYear)},this)),i=t.grep(i,t.proxy(function(t){return!this.dateWithinRange(t)||!t},this),!0),this.dates.replace(i),this.o.updateViewDate&&(this.dates.length?this.viewDate=newDate(this.dat