blue-twilight/public/js/blue-twilight.min.js

8 lines
221 KiB
JavaScript
Raw Normal View History

function UploadPhotosViewModel(e,t,n,r){this.el="#upload-tab",this.data={currentStatus:"",imagesFailed:0,imagesTotal:0,imagesUploaded:0,isBulkUploadInProgress:!1,isUploadInProgress:!1,statusMessages:[]},this.computed={failedPercentage:function(){var e=0;return this.imagesTotal>0&&(e=this.imagesFailed/this.imagesTotal*100),e.toFixed(2)+"%"},successfulPercentage:function(){var e=0;return this.imagesTotal>0&&(e=this.imagesUploaded/this.imagesTotal*100),e.toFixed(2)+"%"}},this.methods={onUploadCompleted:function(){this.currentStatus=n.upload_status.replace(":current",this.imagesUploaded+this.imagesFailed).replace(":total",this.imagesTotal),this.imagesFailed+this.imagesUploaded>=this.imagesTotal&&(this.isUploadInProgress=!1,0===this.imagesFailed&&this.imagesUploaded>0&&(window.location=r.analyse))},onUploadFailed:function(e,t){this.imagesFailed++,this.statusMessages.push({message_class:"text-danger",message_text:n.image_failed.replace(":file_name",t)}),this.onUploadCompleted()},onUploadSuccessful:function(e,t){e.is_successful?(this.imagesUploaded++,this.onUploadCompleted()):this.onUploadFailed(e,t)},uploadFile:function(r,i){var o=this,a=new FormData;a.append("album_id",e),a.append("queue_token",t),a.append("photo[]",i,i.name),$.ajax({contentType:!1,data:a,error:function(e){o.onUploadFailed(e,i.name)},method:$(r).attr("method"),processData:!1,success:function(e){o.onUploadSuccessful(e,i.name)},url:$(r).attr("action")}),this.isUploadInProgress=!0,this.currentStatus=n.upload_status.replace(":current",0).replace(":total",this.imagesTotal)},uploadIndividualFiles:function(e){var t=$("input[type=file]",e.target),r=t[0].files;this.currentStatus="",this.statusMessages=[],this.imagesUploaded=0,this.imagesFailed=0,this.imagesTotal=r.length,this.isUploadInProgress=!0;for(var i=0;i<r.length;i++){var o=r[i];o.type.match("image.*")?this.uploadFile(e.target,o):(alert(n.not_an_image_file.replace(":file_name",o.name)),this.onUploadFailed(null,o.name))}return e.preventDefault(),!1}}}function StorageLocationViewModel(){this.el="#storage-options",this.data={storage_driver:"LocalFilesystemSource"}}if(function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){"use strict";function n(e,t){t=t||ne;var n=t.createElement("script");n.text=e,t.head.appendChild(n).parentNode.removeChild(n)}function r(e){var t=!!e&&"length"in e&&e.length,n=he.type(e);return"function"!==n&&!he.isWindow(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}function i(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}function o(e,t,n){return he.isFunction(t)?he.grep(e,function(e,r){return!!t.call(e,r,e)!==n}):t.nodeType?he.grep(e,function(e){return e===t!==n}):"string"!=typeof t?he.grep(e,function(e){return se.call(t,e)>-1!==n}):Te.test(t)?he.filter(t,e,n):(t=he.filter(t,e),he.grep(e,function(e){return se.call(t,e)>-1!==n&&1===e.nodeType}))}function a(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function s(e){var t={};return he.each(e.match(Ae)||[],function(e,n){t[n]=!0}),t}function l(e){return e}function u(e){throw e}function c(e,t,n,r){var i;try{e&&he.isFunction(i=e.promise)?i.call(e).done(t).fail(n):e&&he.isFunction(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}function f(){ne.removeEventListener("DOMContentLoaded",f),e.removeEventListener("load",f),he.ready()}function d(){this.expando=he.expando+d.uid++}function p(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:Le.test(e)?JSON.parse(e):e)}function h(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace($e,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n=p(n)}catch(e){}Ne.set(e,t,n)}else n=void 0;return n}function v(e,t,n,r){var i,o=1,a=20,s=r?function(){return r.cur()}:function(){return he.css(e,t,"")},l=s(),u=n&&n[3]||(he.cssNumber[t]?"":"px"),c=(he.cssNumber[t]||"px"!==u&&+l)&&Pe.exec(he.css(e,t));if(
for(d=t;d=d[v];)if(s?d.nodeName.toLowerCase()===g:1===d.nodeType)return!1;h=v="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?m.firstChild:m.lastChild],a&&y){for(d=m,f=d[R]||(d[R]={}),c=f[d.uniqueID]||(f[d.uniqueID]={}),u=c[e]||[],p=u[0]===F&&u[1],_=p&&u[2],d=p&&m.childNodes[p];d=++p&&d&&d[v]||(_=p=0)||h.pop();)if(1===d.nodeType&&++_&&d===t){c[e]=[F,p,_];break}}else if(y&&(d=t,f=d[R]||(d[R]={}),c=f[d.uniqueID]||(f[d.uniqueID]={}),u=c[e]||[],p=u[0]===F&&u[1],_=p),_===!1)for(;(d=++p&&d&&d[v]||(_=p=0)||h.pop())&&((s?d.nodeName.toLowerCase()!==g:1!==d.nodeType)||!++_||(y&&(f=d[R]||(d[R]={}),c=f[d.uniqueID]||(f[d.uniqueID]={}),c[e]=[F,_]),d!==t)););return(_-=i)===r||_%r==0&&_/r>=0}}},PSEUDO:function(e,n){var i,o=T.pseudos[e]||T.setFilters[e.toLowerCase()]||t.error("unsupported pseudo: "+e);return o[R]?o(n):o.length>1?(i=[e,e,"",n],T.setFilters.hasOwnProperty(e.toLowerCase())?r(function(e,t){for(var r,i=o(e,n),a=i.length;a--;)r=J(e,i[a]),e[r]=!(t[r]=i[a])}):function(e){return o(e,0,i)}):o}},pseudos:{not:r(function(e){var t=[],n=[],i=x(e.replace(oe,"$1"));return i[R]?r(function(e,t,n,r){for(var o,a=i(e,null,r,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,r,o){return t[0]=e,i(t,null,o,n),t[0]=null,!n.pop()}}),has:r(function(e){return function(n){return t(e,n).length>0}}),contains:r(function(e){return e=e.replace(ge,ye),function(t){return(t.textContent||t.innerText||E(t)).indexOf(e)>-1}}),lang:r(function(e){return ce.test(e||"")||t.error("unsupported lang: "+e),e=e.replace(ge,ye).toLowerCase(),function(t){var n;do{if(n=L?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===N},focus:function(e){return e===k.activeElement&&(!k.hasFocus||k.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:s(!1),disabled:s(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!T.pseudos.empty(e)},header:function(e){return pe.test(e.nodeName)},input:function(e){return de.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:l(function(){return[0]}),last:l(function(e,t){return[t-1]}),eq:l(function(e,t,n){return[n<0?n+t:n]}),even:l(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:l(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:l(function(e,t,n){for(var r=n<0?n+t:n;--r>=0;)e.push(r);return e}),gt:l(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}},T.pseudos.nth=T.pseudos.eq;for(_ in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})T.pseudos[_]=function(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}(_);for(_ in{submit:!0,reset:!0})T.pseudos[_]=function(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}(_);return c.prototype=T.filters=T.pseudos,T.setFilters=new c,C=t.tokenize=function(e,n){var r,i,o,a,s,l,u,c=V[e+" "];if(c)return n?0:c.slice(0);for(s=e,l=[],u=T.preFilter;s;){r&&!(i=ae.exec(s))||(i&&(s=s.slice(i[0].length)||s),l.push(o=[])),r=!1,(i=se.exec(s))&&(r=i.shift(),o.push({value:r,type:i[0].replace(oe," ")}),s=s.slice(r.length));for(a in T.filter)!(i=fe[a].exec(s))||u[a]&&!(i=u[a](i))||(r=i.shift(),o.push({value:r,type:a,matches:i}),s=s.slice(r.length));if(!r)break}return n?s.length:s?t.error(e):V(e,l).slice(0)},x=t.compile=function(e,t){var n,r=[],i=[],o=q[e+" "];if(!o){for(t||(t=C(e)),n=t.length;n--;)o=g(t[n]),o[R]?r.push(o):i.push(o);o=q(e,y(i,r)),o.selector=e}return o},A=t.select=function(e,t,n,r){var i,o,a,s,l,c="function"
he.fx.step[e.prop]?he.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[he.cssProps[e.prop]]&&!he.cssHooks[e.prop]?e.elem[e.prop]=e.now:he.style(e.elem,e.prop,e.now+e.unit)}}},M.propHooks.scrollTop=M.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},he.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},he.fx=M.prototype.init,he.fx.step={};var ut,ct,ft=/^(?:toggle|show|hide)$/,dt=/queueHooks$/;he.Animation=he.extend(K,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return v(n.elem,e,Pe.exec(t),n),n}]},tweener:function(e,t){he.isFunction(e)?(t=e,e=["*"]):e=e.match(Ae);for(var n,r=0,i=e.length;r<i;r++)n=e[r],K.tweeners[n]=K.tweeners[n]||[],K.tweeners[n].unshift(t)},prefilters:[q],prefilter:function(e,t){t?K.prefilters.unshift(e):K.prefilters.push(e)}}),he.speed=function(e,t,n){var r=e&&"object"==typeof e?he.extend({},e):{complete:n||!n&&t||he.isFunction(e)&&e,duration:e,easing:n&&t||t&&!he.isFunction(t)&&t};return he.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in he.fx.speeds?r.duration=he.fx.speeds[r.duration]:r.duration=he.fx.speeds._default),null!=r.queue&&r.queue!==!0||(r.queue="fx"),r.old=r.complete,r.complete=function(){he.isFunction(r.old)&&r.old.call(this),r.queue&&he.dequeue(this,r.queue)},r},he.fn.extend({fadeTo:function(e,t,n,r){return this.filter(Re).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=he.isEmptyObject(e),o=he.speed(t,n,r),a=function(){var t=K(this,he.extend({},e),o);(i||ke.get(this,"finish"))&&t.stop(!0)};return a.finish=a,i||o.queue===!1?this.each(a):this.queue(o.queue,a)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&e!==!1&&this.queue(e||"fx",[]),this.each(function(){var t=!0,i=null!=e&&e+"queueHooks",o=he.timers,a=ke.get(this);if(i)a[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&&dt.test(i)&&r(a[i]);for(i=o.length;i--;)o[i].elem!==this||null!=e&&o[i].queue!==e||(o[i].anim.stop(n),t=!1,o.splice(i,1));!t&&n||he.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var t,n=ke.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=he.timers,a=r?r.length:0;for(n.finish=!0,he.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<a;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}}),he.each(["toggle","show","hide"],function(e,t){var n=he.fn[t];he.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(U(t,!0),e,r,i)}}),he.each({slideDown:U("show"),slideUp:U("hide"),slideToggle:U("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){he.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),he.timers=[],he.fx.tick=function(){var e,t=0,n=he.timers;for(ut=he.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||he.fx.stop(),ut=void 0},he.fx.timer=function(e){he.timers.push(e),he.fx.start()},he.fx.interval=13,he.fx.start=function(){ct||(ct=!0,F())},he.fx.stop=function(){ct=null},he.fx.speeds={slow:600,fast:200,_default:400},he.fn.delay=function(t,n){return t=he.fx?he.fx.speeds[t]||t:t,n=n||"fx",this.queue(n,function(n,r){var i=e.setTimeout(n,t);r.stop=function(){e.clearTimeout(i)}})},function(){var e=ne.createElement("input"),t=ne.createElement("select"),n=t.appendChild(ne.createElement("option"));e.type="checkbox",pe.checkOn=""!==e.value,pe.optSelected=n.selected,e=ne.createElement("input"),e.value="t",e.type="radio",pe.radioValue="t"===e.value}();var pt,ht=he.expr.attrHandle;he.fn.extend({attr:function(e,t){return De(this,he.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){he.removeAttr(this,e)})}}),he.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?he.prop(e,t,n):(1===o&&he.isXMLDoc(e)||(i=he.attrHooks[t.toLowerCase()]||(he.expr.m
e[o]=s):(a.fns||(a=e[o]=Q(a)),n(l.name,a,l.once,l.capture)):ro('Invalid handler for event "'+l.name+'": got '+String(a),i);for(o in t)e[o]||(l=Io(o),r(l.name,t[o],l.capture))}function Y(e,t,n){function i(){n.apply(this,arguments),r(o.fns,i)}var o,a=e[t];a?a.fns&&a.merged?(o=a,o.fns.push(i)):o=Q([a,i]):o=Q([i]),o.merged=!0,e[t]=o}function X(e){for(var t=0;t<e.length;t++)if(Array.isArray(e[t]))return Array.prototype.concat.apply([],e);return e}function J(e){return o(e)?[B(e)]:Array.isArray(e)?Z(e):void 0}function Z(e,t){var n,r,i,a=[];for(n=0;n<e.length;n++)null!=(r=e[n])&&"boolean"!=typeof r&&(i=a[a.length-1],Array.isArray(r)?a.push.apply(a,Z(r,(t||"")+"_"+n)):o(r)?i&&i.text?i.text+=String(r):""!==r&&a.push(B(r)):r.text&&i&&i.text?a[a.length-1]=B(i.text+r.text):(r.tag&&null==r.key&&null!=t&&(r.key="__vlist"+t+"_"+n+"__"),a.push(r)));return a}function ee(e){return e&&e.filter(function(e){return e&&e.componentOptions})[0]}function te(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&ie(e,t)}function ne(e,t,n){n?Oo.$once(e,t):Oo.$on(e,t)}function re(e,t){Oo.$off(e,t)}function ie(e,t,n){Oo=e,z(t,n||{},ne,re,e)}function oe(e,t){var n={};if(!e)return n;for(var r,i,o=[],a=0,s=e.length;a<s;a++)if(i=e[a],(i.context===t||i.functionalContext===t)&&i.data&&(r=i.data.slot)){var l=n[r]||(n[r]=[]);"template"===i.tag?l.push.apply(l,i.children):l.push(i)}else o.push(i);return o.length&&(1!==o.length||" "!==o[0].text&&!o[0].isComment)&&(n.default=o),n}function ae(e){for(var t={},n=0;n<e.length;n++)t[e[n][0]]=e[n][1];return t}function se(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}function le(e,t,n){e.$el=t,e.$options.render||(e.$options.render=Do,e.$options.template&&"#"!==e.$options.template.charAt(0)?ro("You are using the runtime-only build of Vue where the template option is not available. Either pre-compile the templates into render functions, or use the compiler-included build.",e):ro("Failed to mount component: template or render function not defined.",e)),pe(e,"beforeMount");var r;return r=Mi.performance&&Zi?function(){var t=e._name,r="start "+t,i="end "+t;Zi.mark(r);var o=e._render();Zi.mark(i),Zi.measure(t+" render",r,i),Zi.mark(r),e._update(o,n),Zi.mark(i),Zi.measure(t+" patch",r,i)}:function(){e._update(e._render(),n)},e._watcher=new Mo(e,r,p),n=!1,null==e.$vnode&&(e._isMounted=!0,pe(e,"mounted")),e}function ue(e,t,n,r,i){var o=!!(i||e.$options._renderChildren||r.data.scopedSlots||e.$scopedSlots!==to);if(e.$options._parentVnode=r,e.$vnode=r,e._vnode&&(e._vnode.parent=r),e.$options._renderChildren=i,t&&e.$options.props){vo.shouldConvert=!1,vo.isSettingProps=!0;for(var a=e._props,s=e.$options._propKeys||[],l=0;l<s.length;l++){var u=s[l];a[u]=R(u,e.$options.props,t,e)}vo.shouldConvert=!0,vo.isSettingProps=!1,e.$options.propsData=t}if(n){var c=e.$options._parentListeners;e.$options._parentListeners=n,ie(e,n,c)}o&&(e.$slots=oe(i,r.context),e.$forceUpdate())}function ce(e){for(;e&&(e=e.$parent);)if(e._inactive)return!0;return!1}function fe(e,t){if(t){if(e._directInactive=!1,ce(e))return}else if(e._directInactive)return;if(e._inactive||null==e._inactive){e._inactive=!1;for(var n=0;n<e.$children.length;n++)fe(e.$children[n]);pe(e,"activated")}}function de(e,t){if(!(t&&(e._directInactive=!0,ce(e))||e._inactive)){e._inactive=!0;for(var n=0;n<e.$children.length;n++)de(e.$children[n]);pe(e,"deactivated")}}function pe(e,t){var n=e.$options[t];if(n)for(var r=0,i=n.length;r<i;r++)try{n[r].call(e)}catch(n){q(n,e,t+" hook")}e._hasHookEvent&&e.$emit("hook:"+t)}function he(){No.length=0,Lo={},$o={},jo=Po=!1}function ve(){Po=!0;var e,t,n;for(No.sort(function(e,t){return e.id-t.id}),Ho=0;Ho<No.length;Ho++)if(e=No[Ho],t=e.id,Lo[t]=null,e.run(),null!=Lo[t]&&($o[t]=($o[t]||0)+1,$o[t]>Mi._maxUpdateCount)){ro("You may have an infinite update loop "+(e.user?'in watcher with ex
e.dispatchEvent(n)}function tr(e){return!e.componentInstance||e.data&&e.data.transition?e:tr(e.componentInstance._vnode)}function nr(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?nr(ee(t.children)):e}function rr(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var i=n._parentListeners;for(var o in i)t[Ni(o)]=i[o];return t}function ir(e,t){return/\d-keep-alive$/.test(t.tag)?e("keep-alive"):null}function or(e){for(;e=e.parent;)if(e.data.transition)return!0}function ar(e,t){return t.key===e.key&&t.tag===e.tag}function sr(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function lr(e){e.data.newPos=e.elm.getBoundingClientRect()}function ur(e){var t=e.data.pos,n=e.data.newPos,r=t.left-n.left,i=t.top-n.top;if(r||i){e.data.moved=!0;var o=e.elm.style;o.transform=o.WebkitTransform="translate("+r+"px,"+i+"px)",o.transitionDuration="0s"}}function cr(e){return cs=cs||document.createElement("div"),cs.innerHTML=e,cs.textContent}function fr(e,t){var n=t?Gs:Ks;return e.replace(n,function(e){return Bs[e]})}function dr(e,t){function n(t){u+=t,e=e.substring(t)}function r(e,n,r){var i,s;if(null==n&&(n=u),null==r&&(r=u),e&&(s=e.toLowerCase()),e)for(i=a.length-1;i>=0&&a[i].lowerCasedTag!==s;i--);else i=0;if(i>=0){for(var l=a.length-1;l>=i;l--)(l>i||!e)&&t.warn&&t.warn("tag <"+a[l].tag+"> has no matching end tag."),t.end&&t.end(a[l].tag,n,r);a.length=i,o=i&&a[i-1].tag}else"br"===s?t.start&&t.start(e,[],!0,n,r):"p"===s&&(t.start&&t.start(e,[],!1,n,r),t.end&&t.end(e,n,r))}for(var i,o,a=[],s=t.expectHTML,l=t.isUnaryTag||Hi,u=0;e;){if(i=e,o&&Vs(o)){var c=o.toLowerCase(),f=qs[c]||(qs[c]=new RegExp("([\\s\\S]*?)(</"+c+"[^>]*>)","i")),d=0,p=e.replace(f,function(e,n,r){return d=r.length,"script"!==c&&"style"!==c&&"noscript"!==c&&(n=n.replace(/<!--([\s\S]*?)-->/g,"$1").replace(/<!\[CDATA\[([\s\S]*?)]]>/g,"$1")),t.chars&&t.chars(n),""});u+=e.length-p.length,e=p,r(c,u-d,u)}else{var h=e.indexOf("<");if(0===h){if(Es.test(e)){var v=e.indexOf("-->");if(v>=0){n(v+3);continue}}if(ws.test(e)){var m=e.indexOf("]>");if(m>=0){n(m+2);continue}}var g=e.match(Ts);if(g){n(g[0].length);continue}var y=e.match(bs);if(y){var _=u;n(y[0].length),r(y[1],_,u);continue}var b=function(){var t=e.match(ys);if(t){var r={tagName:t[1],attrs:[],start:u};n(t[0].length);for(var i,o;!(i=e.match(_s))&&(o=e.match(ms));)n(o[0].length),r.attrs.push(o);if(i)return r.unarySlash=i[1],n(i[0].length),r.end=u,r}}();if(b){!function(e){var n=e.tagName,i=e.unarySlash;s&&("p"===o&&hs(n)&&r(o),ps(n)&&o===n&&r(n));for(var u=l(n)||"html"===n&&"head"===o||!!i,c=e.attrs.length,f=new Array(c),d=0;d<c;d++){var p=e.attrs[d];Cs&&p[0].indexOf('""')===-1&&(""===p[3]&&delete p[3],""===p[4]&&delete p[4],""===p[5]&&delete p[5]);var h=p[3]||p[4]||p[5]||"";f[d]={name:p[1],value:fr(h,t.shouldDecodeNewlines)}}u||(a.push({tag:n,lowerCasedTag:n.toLowerCase(),attrs:f}),o=n),t.start&&t.start(n,f,u,e.start,e.end)}(b);continue}}var T=void 0,E=void 0,w=void 0;if(h>=0){for(E=e.slice(h);!(bs.test(E)||ys.test(E)||Es.test(E)||ws.test(E)||(w=E.indexOf("<",1))<0);)h+=w,E=e.slice(h);T=e.substring(0,h),n(h)}h<0&&(T=e,e=""),t.chars&&T&&t.chars(T)}if(e===i){t.chars&&t.chars(e),!a.length&&t.warn&&t.warn('Mal-formatted tag at end of template: "'+e+'"');break}}r()}function pr(e,t){var n=t?zs(t):Qs;if(n.test(e)){for(var r,i,o=[],a=n.lastIndex=0;r=n.exec(e);){i=r.index,i>a&&o.push(JSON.stringify(e.slice(a,i)));var s=Yt(r[1].trim());o.push("_s("+s+")"),a=i+r[0].length}return a<e.length&&o.push(JSON.stringify(e.slice(a))),o.join("+")}}function hr(e,t){function n(e){e.pre&&(s=!1),Os(e.tag)&&(l=!1)}xs=t.warn||Jt,As=t.getTagNamespace||Hi,Ss=t.mustUseProp||Hi,Os=t.isPreTag||Hi,Ds=Zt(t.modules,"preTransformNode"),Is=Zt(t.modules,"transformNode"),ks=Zt(t.modules,"postTransformNode"),Ns=t.delimiters;var r,i,o=[],a=t.preserveWhitespace!==!1,s=!1,l=!1,u=!1;return dr(e,{warn:xs,expectHTML:t.expectHTML,isUnaryTag:t.isUnaryTag,shouldDecodeNewlines:t.shouldDecodeNewlines,start:function(e,a,c){function f(e){u||("slot"!==e.tag&&"template"!==e.tag||(u=!0,xs("Cannot use <"+e.tag+"> as component root element be
at.version="2.2.0";var Jo,Zo,ea,ta,na,ra,ia,oa,aa,sa=n("input,textarea,option,select"),la=function(e,t,n){return"value"===n&&sa(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},ua=n("contenteditable,draggable,spellcheck"),ca=n("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),fa="http://www.w3.org/1999/xlink",da=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},pa=function(e){return da(e)?e.slice(6,e.length):""},ha=function(e){return null==e||e===!1},va={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},ma=n("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template"),ga=n("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),ya=function(e){return"pre"===e},_a=function(e){return ma(e)||ga(e)},ba=Object.create(null),Ta=Object.freeze({createElement:xt,createElementNS:At,createTextNode:St,createComment:Ot,insertBefore:Dt,removeChild:It,appendChild:kt,parentNode:Nt,nextSibling:Lt,tagName:$t,setTextContent:jt,setAttribute:Pt}),Ea={create:function(e,t){Ht(t)},update:function(e,t){e.data.ref!==t.data.ref&&(Ht(e,!0),Ht(t))},destroy:function(e){Ht(e,!0)}},wa=new Ao("",{},[]),Ca=["create","activate","update","remove","destroy"],xa={create:Ut,update:Ut,destroy:function(e){Ut(e,wa)}},Aa=Object.create(null),Sa=[Ea,xa],Oa={create:Gt,update:Gt},Da={create:zt,update:zt},Ia=/[\w).+\-_$\]]/,ka="__r",Na="__c",La={create:Cn,update:Cn},$a={create:xn,update:xn},ja=a(function(e){var t={};return e.split(/;(?![^(]*\))/g).forEach(function(e){if(e){var n=e.split(/:(.+)/);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}),Pa=/^--/,Ha=/\s*!important$/,Ra=function(e,t,n){Pa.test(t)?e.style.setProperty(t,n):Ha.test(n)?e.style.setProperty(t,n.replace(Ha,""),"important"):e.style[Fa(t)]=n},Ma=["Webkit","Moz","ms"],Fa=a(function(e){if(aa=aa||document.createElement("div"),"filter"!==(e=Ni(e))&&e in aa.style)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<Ma.length;n++){var r=Ma[n]+t;if(r in aa.style)return r}}),Wa={create:Nn,update:Nn},Ua=a(function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}}),Va=Wi&&!qi,qa="transition",Ba="animation",Ka="transition",Ga="transitionend",Qa="animation",za="animationend";Va&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Ka="WebkitTransition",Ga="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Qa="WebkitAnimation",za="webkitAnimationEnd"));var Ya=Wi&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout,Xa=/\b(transform|all)(,|$)/,Ja=Wi?{create:Qn,activate:Qn,remove:function(e,t){e.data.show?t():qn(e,t)}}:{},Za=[Oa,Da,La,$a,Wa,Ja],es=Za.concat(Sa),ts=function(e){function t(e){return new Ao(O.tagName(e).toLowerCase(),{},[],void 0,e)}function r(e,t){function n(){0==--n.listeners&&i(e)}return n.listeners=t,n}function i(e){var t=O.parentNode(e);t&&O.removeChild(t,e)}function a(e,t
;e(document).on(d.CLICK_DATA_API,h.DATA_SLIDE,v._dataApiClickHandler),e(window).on(d.LOAD_DATA_API,function(){e(h.DATA_RIDE).each(function(){var t=e(this);v._jQueryInterface.call(t,t.data())})}),e.fn[t]=v._jQueryInterface,e.fn[t].Constructor=v,e.fn[t].noConflict=function(){return e.fn[t]=l,v._jQueryInterface},v}(jQuery),function(e){var t="collapse",a="bs.collapse",s=e.fn[t],l={toggle:!0,parent:""},u={toggle:"boolean",parent:"string"},c={SHOW:"show."+a,SHOWN:"shown."+a,HIDE:"hide."+a,HIDDEN:"hidden."+a,CLICK_DATA_API:"click.bs.collapse.data-api"},f={SHOW:"show",COLLAPSE:"collapse",COLLAPSING:"collapsing",COLLAPSED:"collapsed"},d={WIDTH:"width",HEIGHT:"height"},p={ACTIVES:".card > .show, .card > .collapsing",DATA_TOGGLE:'[data-toggle="collapse"]'},h=function(){function s(t,r){n(this,s),this._isTransitioning=!1,this._element=t,this._config=this._getConfig(r),this._triggerArray=e.makeArray(e('[data-toggle="collapse"][href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]')),this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}return s.prototype.toggle=function(){e(this._element).hasClass(f.SHOW)?this.hide():this.show()},s.prototype.show=function(){var t=this;if(this._isTransitioning)throw new Error("Collapse is transitioning");if(!e(this._element).hasClass(f.SHOW)){var n=void 0,r=void 0;if(this._parent&&(n=e.makeArray(e(this._parent).find(p.ACTIVES)),n.length||(n=null)),!(n&&(r=e(n).data(a))&&r._isTransitioning)){var i=e.Event(c.SHOW);if(e(this._element).trigger(i),!i.isDefaultPrevented()){n&&(s._jQueryInterface.call(e(n),"hide"),r||e(n).data(a,null));var l=this._getDimension();e(this._element).removeClass(f.COLLAPSE).addClass(f.COLLAPSING),this._element.style[l]=0,this._element.setAttribute("aria-expanded",!0),this._triggerArray.length&&e(this._triggerArray).removeClass(f.COLLAPSED).attr("aria-expanded",!0),this.setTransitioning(!0);var u=function(){e(t._element).removeClass(f.COLLAPSING).addClass(f.COLLAPSE).addClass(f.SHOW),t._element.style[l]="",t.setTransitioning(!1),e(t._element).trigger(c.SHOWN)};if(!o.supportsTransitionEnd())return void u();var d=l[0].toUpperCase()+l.slice(1),h="scroll"+d;e(this._element).one(o.TRANSITION_END,u).emulateTransitionEnd(600),this._element.style[l]=this._element[h]+"px"}}}},s.prototype.hide=function(){var t=this;if(this._isTransitioning)throw new Error("Collapse is transitioning");if(e(this._element).hasClass(f.SHOW)){var n=e.Event(c.HIDE);if(e(this._element).trigger(n),!n.isDefaultPrevented()){var r=this._getDimension(),i=r===d.WIDTH?"offsetWidth":"offsetHeight";this._element.style[r]=this._element[i]+"px",o.reflow(this._element),e(this._element).addClass(f.COLLAPSING).removeClass(f.COLLAPSE).removeClass(f.SHOW),this._element.setAttribute("aria-expanded",!1),this._triggerArray.length&&e(this._triggerArray).addClass(f.COLLAPSED).attr("aria-expanded",!1),this.setTransitioning(!0);var a=function(){t.setTransitioning(!1),e(t._element).removeClass(f.COLLAPSING).addClass(f.COLLAPSE).trigger(c.HIDDEN)};if(this._element.style[r]="",!o.supportsTransitionEnd())return void a();e(this._element).one(o.TRANSITION_END,a).emulateTransitionEnd(600)}}},s.prototype.setTransitioning=function(e){this._isTransitioning=e},s.prototype.dispose=function(){e.removeData(this._element,a),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},s.prototype._getConfig=function(n){return n=e.extend({},l,n),n.toggle=Boolean(n.toggle),o.typeCheckConfig(t,n,u),n},s.prototype._getDimension=function(){return e(this._element).hasClass(d.WIDTH)?d.WIDTH:d.HEIGHT},s.prototype._getParent=function(){var t=this,n=e(this._config.parent)[0],r='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]';return e(n).find(r).each(function(e,n){t._addAriaAndCollapsedClass(s._getTargetFromElement(n),[n])}),n},s.prototype._addAriaAndCollapsedClass=function(t,n){if(t){var r=e(t).hasClass(f.SHOW);t.setAttribute("aria-expanded",r),n.length&&e(n).toggle
key:"Default",get:function(){return l}},{key:"NAME",get:function(){return t}},{key:"DATA_KEY",get:function(){return"bs.tooltip"}},{key:"Event",get:function(){return d}},{key:"EVENT_KEY",get:function(){return a}},{key:"DefaultType",get:function(){return u}}]),s}();return e.fn[t]=g._jQueryInterface,e.fn[t].Constructor=g,e.fn[t].noConflict=function(){return e.fn[t]=s,g._jQueryInterface},g}(jQuery));!function(o){var s="popover",l=".bs.popover",u=o.fn[s],c=o.extend({},a.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),f=o.extend({},a.DefaultType,{content:"(string|element|function)"}),d={FADE:"fade",SHOW:"show"},p={TITLE:".popover-title",CONTENT:".popover-content"},h={HIDE:"hide"+l,HIDDEN:"hidden"+l,SHOW:"show"+l,SHOWN:"shown"+l,INSERTED:"inserted"+l,CLICK:"click"+l,FOCUSIN:"focusin"+l,FOCUSOUT:"focusout"+l,MOUSEENTER:"mouseenter"+l,MOUSELEAVE:"mouseleave"+l},v=function(a){function u(){return n(this,u),e(this,a.apply(this,arguments))}return t(u,a),u.prototype.isWithContent=function(){return this.getTitle()||this._getContent()},u.prototype.getTipElement=function(){return this.tip=this.tip||o(this.config.template)[0]},u.prototype.setContent=function(){var e=o(this.getTipElement());this.setElementContent(e.find(p.TITLE),this.getTitle()),this.setElementContent(e.find(p.CONTENT),this._getContent()),e.removeClass(d.FADE+" "+d.SHOW),this.cleanupTether()},u.prototype._getContent=function(){return this.element.getAttribute("data-content")||("function"==typeof this.config.content?this.config.content.call(this.element):this.config.content)},u._jQueryInterface=function(e){return this.each(function(){var t=o(this).data("bs.popover"),n="object"===(void 0===e?"undefined":r(e))?e:null;if((t||!/destroy|hide/.test(e))&&(t||(t=new u(this,n),o(this).data("bs.popover",t)),"string"==typeof e)){if(void 0===t[e])throw new Error('No method named "'+e+'"');t[e]()}})},i(u,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.6"}},{key:"Default",get:function(){return c}},{key:"NAME",get:function(){return s}},{key:"DATA_KEY",get:function(){return"bs.popover"}},{key:"Event",get:function(){return h}},{key:"EVENT_KEY",get:function(){return l}},{key:"DefaultType",get:function(){return f}}]),u}(a);o.fn[s]=v._jQueryInterface,o.fn[s].Constructor=v,o.fn[s].noConflict=function(){return o.fn[s]=u,v._jQueryInterface},v}(jQuery)}();