"),Q(t._wrapper,"hidden",i?"":null)),s._toggle(n,!0),s.toggleElement(t._wrapper,i,o).then(function(){Te(t,s.clsOpen)===i&&(i||s._toggle(n,!1),t._wrapper=null,pe(n))})}})}}},Vi={mixins:[Li,ji],args:"animation",props:{close:String},data:{animation:[!0],selClose:".bdt-alert-close",duration:150,hideProps:R({opacity:0},ji.data.hideProps)},events:[{name:"click",delegate:function(){return this.selClose},handler:function(t){t.preventDefault(),this.close()}}],methods:{close:function(){var t=this;this.toggleElement(this.$el).then(function(){return t.$destroy(!0)})}}};function Yi(r){ie(function(){var i;r.update(),Ht(window,"load resize",function(){return r.update(null,"resize")}),Ht(document,"loadedmetadata load",function(t){var e=t.target;return r.update(e,"resize")},!0),Ht(window,"scroll",function(t){if(!i){i=!0,pi.write(function(){return i=!1});var e=t.target;r.update(1!==e.nodeType?document.body:e,t.type)}},{passive:!0,capture:!0});var n=0;Ht(document,"animationstart",function(t){var e=t.target;(De(e,"animationName")||"").match(/^bdt-.*(left|right)/)&&(n++,De(document.body,"overflowX","hidden"),setTimeout(function(){--n||De(document.body,"overflowX","")},W(De(e,"animationDuration"))+100))},!0)})}var Ri,qi,Ui={args:"autoplay",props:{automute:Boolean,autoplay:Boolean},data:{automute:!1,autoplay:!0},computed:{inView:function(t){return"inview"===t.autoplay}},connected:function(){this.inView&&!tt(this.$el,"preload")&&(this.$el.preload="none"),this.player=new Ti(this.$el),this.automute&&this.player.mute()},update:{read:function(){return!!this.player&&{visible:kt(this.$el)&&"hidden"!==De(this.$el,"visibility"),inView:this.inView&&hi(this.$el)}},write:function(t){var e=t.visible,i=t.inView;!e||this.inView&&!i?this.player.pause():(!0===this.autoplay||this.inView&&i)&&this.player.play()},events:["resize","scroll"]}},Xi={mixins:[Li,Ui],props:{width:Number,height:Number},data:{automute:!0},update:{read:function(){var t=this.$el;if(!kt(t))return!1;var e=t.parentNode;return{height:e.offsetHeight,width:e.offsetWidth}},write:function(t){var e=t.height,i=t.width,n=this.$el,r=this.width||n.naturalWidth||n.videoWidth||n.clientWidth,o=this.height||n.naturalHeight||n.videoHeight||n.clientHeight;r&&o&&De(n,Z.cover({width:r,height:o},{width:i+(i%2?1:0),height:e+(e%2?1:0)}))},events:["resize"]}},Ki={props:{pos:String,offset:null,flip:Boolean,clsPos:String},data:{pos:"bottom-"+(Ct?"right":"left"),flip:!0,offset:!1,clsPos:""},computed:{pos:function(t){var e=t.pos;return(e+(b(e,"-")?"":"-center")).split("-")},dir:function(){return this.pos[0]},align:function(){return this.pos[1]}},methods:{positionAt:function(t,e,i){var n;Ie(t,this.clsPos+"-(top|bottom|left|right)(-[a-z]+)?"),De(t,{top:"",left:""});var r=this.offset,o=this.getAxis();D(r)||(r=(n=be(r))?Je(n)["x"===o?"left":"top"]-Je(e)["x"===o?"right":"bottom"]:0);var s=Ge(t,e,"x"===o?ai(this.dir)+" "+this.align:this.align+" "+ai(this.dir),"x"===o?this.dir+" "+this.align:this.align+" "+this.dir,"x"===o?""+("left"===this.dir?-r:r):" "+("top"===this.dir?-r:r),null,this.flip,i).target,a=s.x,h=s.y;this.dir="x"===o?a:h,this.align="x"===o?h:a,Ee(t,this.clsPos+"-"+this.dir+"-"+this.align,!1===this.offset)},getAxis:function(){return"top"===this.dir||"bottom"===this.dir?"y":"x"}}},Gi={mixins:[Ki,ji],args:"pos",props:{mode:"list",toggle:Boolean,boundary:Boolean,boundaryAlign:Boolean,delayShow:Number,delayHide:Number,clsDrop:String},data:{mode:["click","hover"],toggle:"- *",boundary:window,boundaryAlign:!1,delayShow:0,delayHide:800,clsDrop:!1,hoverIdle:200,animation:["bdt-animation-fade"],cls:"bdt-open"},computed:{boundary:function(t,e){return nt(t.boundary,e)},clsDrop:function(t){return t.clsDrop||"bdt-"+this.$options.name},clsPos:function(){return this.clsDrop}},created:function(){this.tracker=new wi},connected:function(){ke(this.$el,this.clsDrop);var t=this.$props.toggle;this.toggle=t&&this.$create("toggle",nt(t,this.$el),{target:this.$el,mode:this.mode}),!this.toggle&&jt(this.$el,"updatearia")},events:[{name:"click",delegate:function(){return"."+this.clsDrop+"-close"},handler:function(t){t.preventDefault(),this.hide(!1)}},{name:"click",delegate:function(){return'a[href^="#"]'},handler:function(t){if(!t.defaultPrevented){var e=t.target.hash;e||t.preventDefault(),e&&Tt(e,this.$el)||this.hide(!1)}}},{name:"beforescroll",handler:function(){this.hide(!1)}},{name:"toggle",self:!0,handler:function(t,e){t.preventDefault(),this.isToggled()?this.hide(!1):this.show(e,!1)}},{name:Bt,filter:function(){return b(this.mode,"hover")},handler:function(t){Mi(t)||(Ri&&Ri!==this&&Ri.toggle&&b(Ri.toggle.mode,"hover")&&!Tt(t.target,Ri.toggle.$el)&&!J({x:t.pageX,y:t.pageY},Je(Ri.$el))&&Ri.hide(!1),t.preventDefault(),this.show(this.toggle))}},{name:"toggleshow",handler:function(t,e){e&&!b(e.target,this.$el)||(t.preventDefault(),this.show(e||this.toggle))}},{name:"togglehide "+zt,handler:function(t,e){Mi(t)||e&&!b(e.target,this.$el)||(t.preventDefault(),this.toggle&&b(this.toggle.mode,"hover")&&this.hide())}},{name:"beforeshow",self:!0,handler:function(){this.clearTimers(),Xe.cancel(this.$el),this.position()}},{name:"show",self:!0,handler:function(){this.tracker.init(),jt(this.$el,"updatearia"),function(){if(qi)return;qi=!0,Ht(document,Ot,function(t){var e,i=t.target,n=t.defaultPrevented;if(!n)for(;Ri&&Ri!==e&&!Tt(i,Ri.$el)&&(!Ri.toggle||!Tt(i,Ri.toggle.$el));)(e=Ri).hide(!1)})}()}},{name:"beforehide",self:!0,handler:function(){this.clearTimers()}},{name:"hide",handler:function(t){var e=t.target;this.$el===e?(Ri=this.isActive()?null:Ri,jt(this.$el,"updatearia"),this.tracker.cancel()):Ri=null===Ri&&Tt(e,this.$el)&&this.isToggled()?this:Ri}},{name:"updatearia",self:!0,handler:function(t,e){t.preventDefault(),this.updateAria(this.$el),(e||this.toggle)&&(Q((e||this.toggle).$el,"aria-expanded",this.isToggled()?"true":"false"),Ee(this.toggle.$el,this.cls,this.isToggled()))}}],update:{write:function(){this.isToggled()&&!Xe.inProgress(this.$el)&&this.position()},events:["resize"]},methods:{show:function(e,i){var n=this;void 0===i&&(i=!0);var r=function(){return!n.isToggled()&&n.toggleElement(n.$el,!0)},t=function(){if(n.toggle=e||n.toggle,n.clearTimers(),!n.isActive())if(i&&Ri&&Ri!==n&&Ri.isDelaying)n.showTimer=setTimeout(n.show,10);else{if(n.isParentOf(Ri)){if(!Ri.hideTimer)return;Ri.hide(!1)}else if(Ri&&n.isChildOf(Ri))Ri.clearTimers();else if(Ri&&!n.isChildOf(Ri)&&!n.isParentOf(Ri))for(var t;Ri&&Ri!==t&&!n.isChildOf(Ri);)(t=Ri).hide(!1);i&&n.delayShow?n.showTimer=setTimeout(r,n.delayShow):r(),Ri=n}};e&&this.toggle&&e.$el!==this.toggle.$el?(Lt(this.$el,"hide",t),this.hide(!1)):t()},hide:function(t){var e=this;void 0===t&&(t=!0);var i=function(){return e.toggleNow(e.$el,!1)};this.clearTimers(),this.isDelaying=this.tracker.movesTo(this.$el),t&&this.isDelaying?this.hideTimer=setTimeout(this.hide,this.hoverIdle):t&&this.delayHide?this.hideTimer=setTimeout(i,this.delayHide):i()},clearTimers:function(){clearTimeout(this.showTimer),clearTimeout(this.hideTimer),this.showTimer=null,this.hideTimer=null,this.isDelaying=!1},isActive:function(){return Ri===this},isChildOf:function(t){return t&&t!==this&&Tt(this.$el,t.$el)},isParentOf:function(t){return t&&t!==this&&Tt(t.$el,this.$el)},position:function(){Ie(this.$el,this.clsDrop+"-(stack|boundary)"),De(this.$el,{top:"",left:"",display:"block"}),Ee(this.$el,this.clsDrop+"-boundary",this.boundaryAlign);var t=Je(this.boundary),e=this.boundaryAlign?t:Je(this.toggle.$el);if("justify"===this.align){var i="y"===this.getAxis()?"width":"height";De(this.$el,i,e[i])}else this.$el.offsetWidth>Math.max(t.right-e.left,e.right-t.left)&&ke(this.$el,this.clsDrop+"-stack");this.positionAt(this.$el,this.boundaryAlign?this.boundary:this.toggle.$el,this.boundary),De(this.$el,"display","")}}};var Ji={extends:Gi},Zi={mixins:[Li],args:"target",props:{target:Boolean},data:{target:!1},computed:{input:function(t,e){return be($t,e)},state:function(){return this.input.nextElementSibling},target:function(t,e){var i=t.target;return i&&(!0===i&&this.input.parentNode===e&&this.input.nextElementSibling||nt(i,e))}},update:function(){var t=this.target,e=this.input;if(t){var i,n=It(t)?"value":"textContent",r=t[n],o=e.files&&e.files[0]?e.files[0].name:pt(e,"select")&&(i=ye("option",e).filter(function(t){return t.selected})[0])?i.textContent:e.value;r!==o&&(t[n]=o)}},events:{change:function(){this.$emit()}}},Qi={update:{read:function(t){var e=hi(this.$el);if(!e||t.isInView===e)return!1;t.isInView=e},write:function(){this.$el.src=this.$el.src},events:["scroll","resize"]}},tn={props:{margin:String,firstColumn:Boolean},data:{margin:"bdt-margin-small-top",firstColumn:"bdt-first-column"},update:{read:function(t){var e=this.$el.children;if(!e.length||!kt(this.$el))return t.rows=[[]];t.rows=en(e),t.stacks=!t.rows.some(function(t){return 1
=a.bottom-1){e.push([n]);break}if(r.bottom>a.top){if(r.left=t.offsetHeight)&&De(t,"height",e)})},order:5,events:["resize"]}]}:{},sn={mixins:[on],args:"target",props:{target:String,row:Boolean},data:{target:"> *",row:!0,forceHeight:!0},computed:{elements:function(t,e){return ye(t.target,e)}},update:{read:function(){return{rows:(this.row?en(this.elements):[this.elements]).map(an)}},write:function(t){t.rows.forEach(function(t){var i=t.heights;return t.elements.forEach(function(t,e){return De(t,"minHeight",i[e])})})},events:["resize"]}};function an(t){var e;if(t.length<2)return{heights:[""],elements:t};var i=hn(t),n=i.heights,r=i.max,o=t.some(function(t){return t.style.minHeight}),s=t.some(function(t,e){return!t.style.minHeight&&n[e]";fn.lastIndex=0}return pn[t][e]}(t,h.icon)||t),be(t.substr(t.indexOf(" '),this.isFixed=!1,this.isActive=!1},disconnected:function(){this.isFixed&&(this.hide(),$e(this.selTarget,this.clsInactive)),ue(this.placeholder),this.placeholder=null,this.widthElement=null},events:[{name:"load hashchange popstate",el:window,handler:function(){var n=this;if(!1!==this.targetOffset&&location.hash&&0