avvo-styleguide
Version:
Avvo styleguide
1 lines • 35.7 kB
JavaScript
!function(t){var e={};function n(i){if(e[i])return e[i].exports;var o=e[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(i,o,function(e){return t[e]}.bind(null,o));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=18)}([function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},,function(t,e,n){"use strict";(function(t){t.Avvo=t.Avvo||{},t.Avvo.ui=t.Avvo.ui||{},e.a=Avvo}).call(this,n(0))},function(t,e){t.exports=function(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}},,function(t,e,n){(function(e){const i=n(19),o=n(20),s=n(22),r={create:function(t){return Object.create(r).init(t)},init:function(t){return this.constructor=r,this.placeholder=o.create(t),this.sticky=s.create(t,this),this.container=i.create(t.parentNode),this.positionType="static",this.isTicking=!1,this.threshold=null,this.leftPositionWhenAbsolute=null,this.leftPositionWhenFixed=null,this.latestKnownScrollY=e.pageYOffset,this.setOffsetTop(),this.setOffsetBottom(),this.setLeftPositionWhenAbsolute(),this.setLeftPositionWhenFixed(),this.calcThreshold(),this.subscribeToWindowScroll(),this.subscribeToWindowResize(),this.update(),this},setOffsetTop:function(){this.offsetTop=this.container.borderTopWidth+this.container.paddingTop},setOffsetBottom:function(){this.offsetBottom=this.container.borderBottomWidth+this.container.paddingBottom},calcThreshold:function(){this.threshold=this.getStickyDistanceFromDocumentTop()-this.offsetTop},setLeftPositionWhenAbsolute:function(){const t=parseFloat(this.sticky.$element.css("margin-left"));this.leftPositionWhenAbsolute=this.sticky.$element.position().left-t},setLeftPositionWhenFixed:function(){const t=parseFloat(this.sticky.$element.css("margin-left"));this.leftPositionWhenFixed=e.pageXOffset+this.sticky.$element.offset().left-t},subscribeToWindowScroll:function(){e.addEventListener("scroll",this.onScroll.bind(this))},onScroll:function(){this.isTicking||(this.latestKnownScrollY=e.pageYOffset,this.isTicking=!0,e.requestAnimationFrame(this.update.bind(this)))},subscribeToWindowResize:function(){e.addEventListener("resize",this.onResize.bind(this))},onResize:function(){this.isTicking||(e.requestAnimationFrame(this.refresh.bind(this)),this.isTicking=!0)},isStatic:function(){return"static"===this.positionType},makeStatic:function(){this.sticky.$element.css({position:"static",width:"",left:"",top:""}),this.placeholder.$element.hide(),this.positionType="static"},isFixed:function(){return"fixed"===this.positionType},makeFixed:function(){this.sticky.$element.css({position:"fixed",top:this.offsetTop+"px",bottom:"",left:this.leftPositionWhenFixed+"px"}),this.placeholder.$element.show(),this.positionType="fixed"},isAbsolute:function(){return"absolute"===this.positionType},makeAbsolute:function(){this.sticky.$element.css({position:"absolute",top:"auto",bottom:this.container.paddingBottom+"px",left:this.leftPositionWhenAbsolute+"px"}),this.placeholder.$element.show(),this.positionType="absolute"},update:function(){this.isTicking=!1,this.isBelowThreshold()?this.isStatic()||this.makeStatic():this.canStickyFitInContainer()?this.isFixed()||this.makeFixed():this.isAbsolute()||this.makeAbsolute()},isBelowThreshold:function(){return this.latestKnownScrollY<this.threshold},canStickyFitInContainer:function(){return this.getAvailableSpaceInContainer()>=this.sticky.boundingBoxHeight},getAvailableSpaceInContainer:function(){return this.container.$element[0].getBoundingClientRect().bottom-this.offsetBottom-this.offsetTop},getStickyDistanceFromDocumentTop:function(){return(this.isStatic()?this.sticky.$element:this.placeholder.$element).offset().top},refresh:function(){this.sticky.refresh(),this.placeholder.refresh(),this.calcThreshold(),this.isTicking=!1,!this.isStatic()&&(this.makeStatic(),this.isBelowThreshold())||(this.canStickyFitInContainer()?(this.setLeftPositionWhenFixed(),this.makeFixed()):(this.setLeftPositionWhenAbsolute(),this.makeAbsolute()))}};t.exports=r}).call(this,n(0))},function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return l}));var i=n(7);const o=n(29);function s(e,n){const s=$(n),l=new o(s.data("target")).$element;l.find(".nav-section").each((t,e)=>{Object(i.a)(e)}),l.on("mouseout",e=>{-1===function(e){return"function"!=typeof t.getComputedStyle?"":t.getComputedStyle(e,":after").content}(l[0]).indexOf("off-canvas")&&r(l)}),l.on("hide.ui.offcanvas",r.bind(null,l)),l.on("hide.ui.collapse",".collapse",a.bind(null,l))}function r(t,e){t.find('[data-toggle="collapse"][aria-expanded="true"]').trigger("click.ui.collapse.data-api")}function a(e,n){const i=e.scrollTop();0!==i&&(t.requestAnimationFrame(a.bind(null,e)),e.scrollTop(i-i/6))}function l(){$('[data-toggle="off-canvas"]').each(s)}}).call(this,n(0))},function(t,e,n){"use strict";(function(t){var i=n(8),o=n.n(i),s=n(16);const r=t.jQuery;class a{constructor(t){this.$el=r(t),this.enterId=null,this.exitId=null,this.coordinates=[],this.bindEvents(t)}bindEvents(t){this.$el.on("mouseenter",t=>{this.exitId=null,this.enterId=setTimeout(this.makeActive.bind(this),250),this.$el.on("mousemove",o()(this.handleMove.bind(this),62.5))}),this.$el.on("mouseleave",t=>{clearTimeout(this.enterId),clearTimeout(this.exitId),this.enterId=null,this.exitId=setTimeout(this.makeInactive.bind(this),125)}),this.$el.on("click",e=>{e.target===t&&this.makeActiveNow()})}makeActiveNow(){this.resetCoordinates(),this.$el.addClass("is-active")}makeActive(){this.exitId||this.makeActiveNow.call(this),this.enterId=null}makeInactive(){this.$el.removeClass("is-active"),this.$el.off("mousemove"),this.exitId=null}addCoordinate(t,e){this.coordinates.push({x:t,y:e}),this.coordinates.length>5&&this.coordinates.shift()}resetCoordinates(){this.coordinates=[]}handleMove(t){this.addCoordinate(t.pageX,t.pageY),this.exitId||Object(s.a)(this.coordinates)||this.makeActiveNow()}}e.a=function(t){return new a(t)}}).call(this,n(0))},function(t,e,n){var i=n(23),o=n(3);t.exports=function(t,e,n){var s=!0,r=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return!1===n?s=!1:o(n)&&(s="leading"in n?!!n.leading:s,r="trailing"in n?!!n.trailing:r),i(t,e,{leading:s,maxWait:+e,trailing:r})}},function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return r}));var i=n(2);const o=t.jQuery;class s{static get VERSION(){return"1.0.0"}static get DEFAULTS(){return Object.freeze({anchorSelector:'a[href^="#"]',fastSpeed:400,slowSpeed:600,adjustScrollCoordinate:void 0})}constructor(t,e){this.$element=o(t),this.$element.data("ui.smoothScroller",this),this.settings=o.extend({},s.DEFAULTS,this.$element.data(),e),this.$element.on("click.ui.smoothScroller",this.settings.anchorSelector,t=>this.onClick(t))}destroy(){this.$element.off("click.ui.smoothScroller"),this.$element.removeData("ui.smoothScroller"),i.a.ui.smoothScroller=void 0}onClick(t){this.eventShouldTriggerScroll(t)&&(t.preventDefault(),this.scrollTo(t.currentTarget.getAttribute("href")))}scrollTo(e,n){const i=this.getScrollTarget(e),s=this.getScrollCoordinate(i),r=Math.abs(o(window).scrollTop()-s);let a=n;void 0===a&&(a=r<window.screen.availHeight?this.settings.slowSpeed:this.settings.fastSpeed);const l={target:i[0],targetY:s,distance:r,speed:a};return this.$element.trigger("scrollstart.ui.smoothScroller",l),o("html,body").stop().animate({scrollTop:s},{duration:a,easing:"swing"}).promise().done(()=>{"string"==typeof e&&0===e.indexOf("#")&&t.history.replaceState(null,null,e),this.$element.trigger("scrollend.ui.smoothScroller",l)})}getScrollCoordinate(t){const e=o(t);let n=e.offset().top-parseInt(e.css("margin-top"),10);return this.settings.adjustScrollCoordinate&&(n=this.settings.adjustScrollCoordinate(n,e[0])),n}getScrollTarget(t){if("#"===t)return o("body");let e=o(t);return e.length||0!==t.indexOf("#")||(e=o(`a[name='${t.slice(1)}']`)),e}eventShouldTriggerScroll(t){const e=t.currentTarget.getAttribute("href");return!t.isDefaultPrevented()&&("#"===e||!!document.querySelector(`[id='${e.slice(1)}'], a[name='${e.slice(1)}']`))}}function r(){i.a.ui.smoothScroller?window.console&&console.warn("Avvo.ui.smoothScroller already defined; canceling smoothScroller.init()"):i.a.ui.smoothScroller=new s(document)}}).call(this,n(0))},function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return a}));const i=t.jQuery,o='[data-dismiss="alert"]',s=function(t){i(t).on("click",o,this.close)};function r(t){return this.each((function(){const e=i(this);let n=e.data("ui.alert");n||(n=new s(this),e.data("ui.alert",n)),"string"==typeof t&&n[t].call(e)}))}function a(){const t=i.fn.alert;i.fn.alert=r,i.fn.alert.Constructor=s,i.fn.alert.noConflict=function(){return i.fn.alert=t,this},i(document).on("click.ui.alert.data-api",o,s.prototype.close)}s.VERSION="4.0.0",s.prototype.close=function(t){const e=i(this);let n=e.attr("data-target");n||(n=e.attr("href"));let o=i(n);t&&t.preventDefault(),o.length||(o=e.hasClass("alert")?e:e.closest(".alert"));const s=i.Event("close.ui.alert");function r(){o.detach().trigger("closed.ui.alert").remove()}o.trigger(s),s.isDefaultPrevented()||(o.removeClass("in"),i.support.transition?o.hasClass("fade")?o.one("uiTransitionEnd",r).emulateTransitionEnd(150):o.slideUp(200,r):r())}}).call(this,n(0))},function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return l}));const i=t.jQuery,o=function(t,e){this.$element=i(t),this.options=i.extend({},o.DEFAULTS,e),this.$toggler=i(this.options.toggler).filter(`[href="#${t.id}"], [data-target="#${t.id}"]`),this.transitioning=null,this.togglerContentCollapsed=null,this.togglerContentExpanded=null,this.setTogglerStates(),this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$toggler),this.options.toggle&&this.toggle()};function s(t){const e=t.attr("data-target")||t.attr("href");return i(e)}function r(t){return t.hasClass("in")}function a(t){return this.each((function(){const e=i(this);let n=e.data("ui.collapse");const s=i.extend({},o.DEFAULTS,e.data(),"object"==typeof t&&t);!n&&s.toggle&&"show"===t&&(s.toggle=!1),n||(n=new o(this,s),e.data("ui.collapse",n)),"string"==typeof t&&n[t]()}))}function l(){const t=i.fn.collapse;i.fn.collapse=a,i.fn.collapse.Constructor=o,i.fn.collapse.noConflict=function(){return i.fn.collapse=t,this},i(document).on("click.ui.collapse.data-api",'[data-toggle="collapse"]',(function(t){const e=i(this);e.attr("data-target")||t.preventDefault();const n=s(e),o=n.data("ui.collapse")?"toggle":i.extend({},e.data(),{toggler:this});a.call(n,o)}))}o.VERSION="4.0.0",o.TRANSITION_DURATION=350,o.DEFAULTS={parent:null,toggle:!0,toggler:'[data-toggle="collapse"]',toggledText:null},o.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},o.prototype.show=function(){if(this.transitioning||r(this.$element))return;let t;const e=this.$parent&&this.$parent.find(".in, .collapsing");if(e&&e.length&&(t=e.data("ui.collapse"),t&&t.transitioning))return;const n=i.Event("show.ui.collapse");if(this.$element.trigger(n),n.isDefaultPrevented())return;e&&e.length&&(a.call(e,"hide"),t||e.data("ui.collapse",null));const s=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[s](0).attr("aria-expanded",!0),this.$toggler.html(this.togglerContentExpanded).removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;const l=function(){this.$element.removeClass("collapsing").addClass("collapse in")[s](""),this.transitioning=0,this.$element.trigger("shown.ui.collapse")};if(!i.support.transition)return l.call(this);const c=i.camelCase(["scroll",s].join("-"));this.$element.one("uiTransitionEnd",i.proxy(l,this)).emulateTransitionEnd(o.TRANSITION_DURATION)[s](this.$element[0][c])},o.prototype.hide=function(){if(this.transitioning||!r(this.$element))return;const t=i.Event("hide.ui.collapse");if(this.$element.trigger(t),t.isDefaultPrevented())return;const e=this.dimension();this.$element[e](this.$element[e]()),this.$element[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$toggler.html(this.togglerContentCollapsed).addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;const n=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.ui.collapse")};if(!i.support.transition)return n.call(this);this.$element[e](0).one("uiTransitionEnd",i.proxy(n,this)).emulateTransitionEnd(o.TRANSITION_DURATION)},o.prototype.toggle=function(){this[r(this.$element)?"hide":"show"]()},o.prototype.getParent=function(){return i(this.options.parent).find(`[data-toggle="collapse"][data-parent="${this.options.parent}"]`).each(i.proxy((function(t,e){const n=i(e);this.addAriaAndCollapsedClass(s(n),n)}),this)).end()},o.prototype.addAriaAndCollapsedClass=function(t,e){const n=r(t);t.attr("aria-expanded",n),e.toggleClass("collapsed",!n).attr("aria-expanded",n)},o.prototype.setTogglerStates=function(){const t=!r(this.$element),e=t?"togglerContentExpanded":"togglerContentCollapsed";this[t?"togglerContentCollapsed":"togglerContentExpanded"]=this.$toggler.html(),this[e]=this.getToggledTogglerContent()},o.prototype.getToggledTogglerContent=function(){return this.$toggler.html()?this.options.toggledText?this.options.toggledText:r(this.$element)?this.$toggler.html().replace("Less","More").replace("less","more").replace("chevron-up","chevron-down"):this.$toggler.html().replace("More","Less").replace("more","less").replace("chevron-down","chevron-up"):""}}).call(this,n(0))},function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return c}));const i=t.jQuery,o='[data-toggle="dropdown"]',s=function(t){i(t).on("click.ui.dropdown",this.toggle)};function r(t){t&&3===t.which||(i(".dropdown-backdrop").remove(),i(o).each((function(){const t=i(this),e=a(t),n={relatedTarget:this};if(!e.hasClass("open"))return;const o=i.Event("hide.ui.dropdown",n);e.trigger(o),o.isDefaultPrevented()||(t.attr("aria-expanded","false"),e.removeClass("open").trigger("hidden.ui.dropdown",n))})))}function a(t){let e=t.attr("data-target");const n=t.attr("href");!e&&/#[A-Za-z]/.test(n)&&(e=n.replace(/.*(?=#[^\s]*$)/,""));const o=e&&i(e);return o&&o.length?o:t.parent()}function l(t){return this.each((function(){const e=i(this);let n=e.data("ui.dropdown");n||(n=new s(this),e.data("ui.dropdown",n)),"string"==typeof t&&n[t].call(e)}))}function c(){const t=i.fn.dropdown;i.fn.dropdown=l,i.fn.dropdown.Constructor=s,i.fn.dropdown.noConflict=function(){return i.fn.dropdown=t,this},i(document).on("click.ui.dropdown.data-api",r).on("click.ui.dropdown.data-api",".dropdown form",t=>{t.stopPropagation()}).on("click.ui.dropdown.data-api",o,s.prototype.toggle).on("keydown.ui.dropdown.data-api",o,s.prototype.keydown).on("keydown.ui.dropdown.data-api",'[role="menu"]',s.prototype.keydown).on("keydown.ui.dropdown.data-api",'[role="listbox"]',s.prototype.keydown)}s.VERSION="4.0.0",s.prototype.toggle=function(t){const e=i(this);if(e.is(".disabled, :disabled"))return;const n=a(e),o=n.hasClass("open");if(r(),!o){"ontouchstart"in document.documentElement&&i('<div class="dropdown-backdrop"/>').insertAfter(i(this)).on("click",r);const t={relatedTarget:this},o=i.Event("show.ui.dropdown",t);if(n.trigger(o),o.isDefaultPrevented())return;e.trigger("focus").attr("aria-expanded","true"),n.toggleClass("open").trigger("shown.ui.dropdown",t)}return!1},s.prototype.keydown=function(t){if(!/(38|40|27|32)/.test(t.which)||/input|textarea/i.test(t.target.tagName))return;const e=i(this);if(t.preventDefault(),t.stopPropagation(),e.is(".disabled, :disabled"))return;const n=a(e),s=n.hasClass("open");if(!s&&27!==t.which||s&&27===t.which)return 27===t.which&&n.find(o).trigger("focus"),e.trigger("click");const r=" li:not(.divider):visible a",l=n.find(`[role="menu"]${r}, [role="listbox"]${r}`);if(!l.length)return;let c=l.index(t.target);38===t.which&&c>0&&c--,40===t.which&&c<l.length-1&&c++,~c||(c=0),l.eq(c).trigger("focus")}}).call(this,n(0))},function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return r}));const i=t.jQuery,o=function(t){this.element=i(t)};function s(t){return this.each((function(){let e=i(this),n=e.data("ui.tab");n||e.data("ui.tab",n=new o(this)),"string"==typeof t&&n[t]()}))}function r(){const t=i.fn.tab;i.fn.tab=s,i.fn.tab.Constructor=o,i.fn.tab.noConflict=function(){return i.fn.tab=t,this},i(document).on("click.ui.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',(function(t){t.preventDefault(),s.call(i(this),"show")}))}o.VERSION="4.0.0",o.prototype.show=function(){const t=this.element,e=t.closest("ul:not(.dropdown-menu)");let n=t.data("target");if(n||(n=t.attr("href"),n=n&&n.replace(/.*(?=#[^\s]*$)/,"")),t.parent("li").hasClass("active"))return;const o=e.find(".active:last a")[0],s=i.Event("show.ui.tab",{relatedTarget:o});if(t.trigger(s),s.isDefaultPrevented())return;const r=i(n);this.activate(t.closest("li"),e),this.activate(r,r.parent(),(function(){t.trigger({type:"shown.ui.tab",relatedTarget:o})}))},o.prototype.activate=function(t,e,n){const o=e.find("> .active"),s=n&&i.support.transition&&o.hasClass("fade");function r(){o.removeClass("active").find("> .dropdown-menu > .active").removeClass("active"),t.addClass("active"),s?(t[0].offsetWidth,t.addClass("in")):t.removeClass("fade"),t.parent(".dropdown-menu")&&t.closest("li.dropdown").addClass("active"),n&&n()}s?o.one("uiTransitionEnd",r).emulateTransitionEnd(150):r(),o.removeClass("in")}}).call(this,n(0))},function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return s}));const i=t.jQuery,o=function(t){this.$element=i(t),this.$table=this.$element.find(".table").clone(),this.$caption=this.getCaption(),this.$footer=this.getFooter(),this.$fixedColumn=this.getFixedColumn(),this.render()};function s(){i(document).on("ready.ui.responsive-overflow-table, init.ui.responsive-overflow-table",()=>{i(".table-responsive-overflow").each((t,e)=>{const n=i(e);n.data("ui.responsive-overflow-table")||n.data("ui.responsive-overflow-table",new o(e))})})}o.prototype.getCaption=function(){if(!this.$table.find("caption").length)return;const t=i("<div>"),e=this.$table.clone();return e.children(":not(caption)").remove(),t.append(e).addClass("table-responsive-overflow-caption").attr("aria-hidden",!0),t},o.prototype.getFooter=function(){if(!this.$table.find("tfoot").length)return;const t=i("<div>"),e=this.$table.clone();return e.children(":not(tfoot)").remove(),t.append(e).addClass("table-responsive-overflow-tfoot").attr("aria-hidden",!0),t},o.prototype.getFixedColumn=function(){if(!this.$table.find("tbody tr th:first-child").length)return;const t=this.$element.closest('[class*="u-bg-"], body').css("background-color"),e=i("<div>").addClass("table-responsive-overflow-fixed-column").attr("aria-hidden",!0).css("background-color",t),n=this.$table.clone();return n.children("caption, tfoot").remove(),n.find("th:not(:first-child),td:not(:first-child)").remove(),e.append(n),e},o.prototype.render=function(){const t=i("<div>").addClass("table-responsive-overflow-wrapper"),e=i("<div>").addClass("table-responsive-overflow-scrollable");e.append(this.$table),e.find("tbody tr").first().append("<td class=table-responsive-overflow-spacer> </td>"),t.append(e).append(this.$fixedColumn),this.$element.html([this.$caption,t,this.$footer]),this.$fixedColumn&&this.$element.addClass("has-fixed-column")}}).call(this,n(0))},function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return d}));n(30);const i=t.jQuery,o=i(window),s=i(document);let r,a=o.width();const l=function(t,e){this.$element=i(t),this.options=i.extend({},l.DEFAULTS,e),this.$toggler=i(l.TOGGLE_SELECTOR).filter(`[data-target="#${t.id}"]`),this.$toggler.attr("aria-controls",t.id),this.options.expandLabel=this.options.expandLabel||this.$toggler.html(),this.transitioning=null,this.render()};function c(t){return t.offsetHeight}function h(t){return this.each((function(){const e=i(this);let n=e.data("ui.truncate");const o=i.extend({},l.DEFAULTS,e.data(),"object"==typeof t&&t);""===o.truncateLines&&(o.truncateLines=l.DEFAULTS.truncateLines),n||e.data("ui.truncate",n=new l(this,o)),"string"==typeof t&&n[t]()}))}function d(){const t=i.fn.truncate;i.fn.truncate=h,i.fn.truncate.Constructor=l,i.fn.truncate.noConflict=function(){return i.fn.truncate=t,this},o.on("load.ui.truncate.data-api, init.ui.truncate.data-api",()=>{h.call(i(l.TRUNCATE_SELECTOR))}),s.on("click.ui.truncate.data-api",l.TOGGLE_SELECTOR,(function(t){t.preventDefault();const e=i(this),n=i(e.data("target"));h.call(n,"toggle")})),o.on("resize.ui.truncate.data-api",()=>{clearTimeout(r),r=setTimeout(()=>{o.width()!==a&&(a=o.width(),h.call(i(l.TRUNCATE_SELECTOR),"render"))},l.WINDOW_RESIZE_DELAY)})}l.VERSION="1.1.0",l.TRUNCATE_SELECTOR="[data-truncate-lines]",l.TOGGLE_SELECTOR='[data-toggle="truncate"]',l.TRANSITION_DURATION=350,l.WINDOW_RESIZE_DELAY=100,l.DEFAULTS={toleranceLines:2,truncateLines:3,truncateLabel:"Less",expandLabel:void 0},l.prototype.render=function(){this.calculateHeights(),this.needsTruncation?(this.$toggler.show(),this.$element.hasClass("is-truncated")?this.truncate({animate:!1}):this.expand({animate:!1})):(this.$toggler.hide(),this.$element.css("height",""))},l.prototype.calculateHeights=function(){const t=function(t){const e=t.css("line-height");let n=parseFloat(e);/^\d*\.?\d*$/.test(e)&&(n*=parseFloat(t.css("font-size")));return Math.ceil(n)}(this.$element);this.$element.hasClass("is-truncated")&&this.$element.trigger("destroy.dot"),this.expandedHeight=this.$element[0].scrollHeight,this.truncatedHeight=this.options.truncateLines*t,this.needsTruncation=this.truncatedHeight<this.expandedHeight-this.options.toleranceLines*t},l.prototype.truncate=function(t){if(this.transitioning)return;t=i.extend({animate:!0},t);const e=i.Event("truncate.ui.truncate");if(this.$element.trigger(e),e.isDefaultPrevented())return;t.animate&&(this.$element.height(this.$element.height()),c(this.$element[0]),this.$element.addClass("truncating")),this.$element.attr("aria-expanded",!1),this.$toggler.attr("aria-expanded",!1).trigger("blur"),this.transitioning=!0;const n=function(){this.$element.addClass("is-truncated").dotdotdot().height("").removeClass("truncating"),this.$toggler.html(this.options.expandLabel),this.transitioning=!1,this.$element.trigger("truncated.ui.truncate")};if(this.$element.height(this.truncatedHeight),!i.support.transition)return n.call(this);this.$element.one("uiTransitionEnd",i.proxy(n,this)).emulateTransitionEnd(t.animate?l.TRANSITION_DURATION:0)},l.prototype.expand=function(t){if(this.transitioning)return;t=i.extend({animate:!0},t);const e=i.Event("expand.ui.truncate");if(this.$element.trigger(e),e.isDefaultPrevented())return;t.animate&&(this.truncatedHeight=this.$element.css("overflow","auto").outerHeight(!0),this.$element.height(this.truncatedHeight),c(this.$element[0]),this.$element.addClass("truncating")),this.$element.removeClass("is-truncated").trigger("destroy.dot"),this.$toggler.trigger("blur"),this.transitioning=!0;const n=function(){this.$element.height("").removeClass("truncating").attr("aria-expanded",!0),this.$toggler.html(this.options.truncateLabel).attr("aria-expanded",!0),this.transitioning=!1,this.$element.trigger("expanded.ui.truncate")};if(this.$element.height(this.expandedHeight),!i.support.transition)return n.call(this);this.$element.one("uiTransitionEnd",i.proxy(n,this)).emulateTransitionEnd(t.animate?l.TRANSITION_DURATION:0)},l.prototype.toggle=function(){this[this.$element.hasClass("is-truncated")?"expand":"truncate"]()}}).call(this,n(0))},function(t,e,n){"use strict";var i=function(t,e){const n=e.x-t.x,i=e.y-t.y;return Math.sqrt(Math.pow(n,2)+Math.pow(i,2))};e.a=function(t){const e=t.length;if(e<3)return!0;const n=t[e-3],o=t[e-2],s=t[e-1];return i(o,s)>i(n,o)}},,function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"init",(function(){return u}));var i=n(5),o=n(6),s=n(9),r=n(10),a=n(11),l=n(12),c=n(13),h=n(14),d=n(15);n(31),n(32),n(33);function u(){const e=t.jQuery;i.init(),a.a(),l.a(),r.a(),h.a(),c.a(),d.a(),e(()=>{o.a(),counter.init(),s.a()})}}.call(this,n(0))},function(t,e,n){(function(e){const n={create:function(t){return Object.create(n).init(t)},init:function(t){return this.constructor=n,this.$element=e.$(t),this.paddingTop=null,this.paddingBottom=null,this.borderTopWidth=null,this.borderBottomWidth=null,this.validatePosScheme(),this.setLayoutProperties(),this},validatePosScheme:function(){"static"===this.$element.css("position")&&this.$element.css("position","relative")},setLayoutProperties:function(){this.paddingTop=parseFloat(this.$element.css("paddingTop")),this.paddingBottom=parseFloat(this.$element.css("paddingBottom")),this.borderTopWidth=parseFloat(this.$element.css("borderTopWidth")),this.borderBottomWidth=parseFloat(this.$element.css("borderBottomWidth"))}};t.exports=n}).call(this,n(0))},function(t,e,n){(function(e){const i=n(21),o={create:function(t){return Object.create(o).init(t)},init:function(t){return this.constructor=o,this.$source=e.$(t),this.$element=null,this.element=null,this.createElement(),this},createElement:function(){this.$element=e.$("<div>").addClass(i.PLACEHOLDER_CLASS),this.$element.attr("aria-hidden","true").css("visibility","hidden").hide(),this.refresh(),this.$element.insertAfter(this.$source),this.element=this.$element[0]},refresh:function(){this.$element.css({height:this.$source.height(),margin:this.$source.css("margin"),float:this.$source.css("float")})}};t.exports=o}).call(this,n(0))},function(t,e){t.exports={SELECTOR:".sticky-top",PLACEHOLDER_CLASS:"sticky-placeholder"}},function(t,e,n){(function(e){const n={create:function(t,e){return Object.create(n).init(t,e)},init:function(t,i){return this.constructor=n,this.$element=e.$(t),this.element=this.$element[0],this.positionSticky=i,this.boundingBoxHeight=null,this.setElementWidth(),this.setBoundingBoxHeight(),this},setElementWidth:function(t){this.$element.css("width",""),this.$element.css("width",(t||this.element.getBoundingClientRect().width)+"px")},setBoundingBoxHeight:function(){this.boundingBoxHeight=this.$element.outerHeight(!0)},refresh:function(){let t;this.positionSticky.isStatic()||(t=this.positionSticky.placeholder.element.getBoundingClientRect().width),this.setElementWidth(t),this.setBoundingBoxHeight()}};t.exports=n}).call(this,n(0))},function(t,e,n){var i=n(3),o=n(24),s=Math.max;t.exports=function(t,e,n){var r,a,l,c,h,d,u,f=0,p=!1,g=!0;if("function"!=typeof t)throw new TypeError("Expected a function");if(e=e<0?0:+e||0,!0===n){var m=!0;g=!1}else i(n)&&(m=!!n.leading,p="maxWait"in n&&s(+n.maxWait||0,e),g="trailing"in n?!!n.trailing:g);function v(e,n){n&&clearTimeout(n),a=d=u=void 0,e&&(f=o(),l=t.apply(h,r),d||a||(r=h=void 0))}function $(){var t=e-(o()-c);t<=0||t>e?v(u,a):d=setTimeout($,t)}function b(){v(g,d)}function w(){if(r=arguments,c=o(),h=this,u=g&&(d||!m),!1===p)var n=m&&!d;else{a||m||(f=c);var i=p-(c-f),s=i<=0||i>p;s?(a&&(a=clearTimeout(a)),f=c,l=t.apply(h,r)):a||(a=setTimeout(b,i))}return s&&d?d=clearTimeout(d):d||e===p||(d=setTimeout($,e)),n&&(s=!0,l=t.apply(h,r)),!s||d||a||(r=h=void 0),l}return w.cancel=function(){d&&clearTimeout(d),a&&clearTimeout(a),f=0,a=d=u=void 0},w}},function(t,e,n){var i=n(25)(Date,"now")||function(){return(new Date).getTime()};t.exports=i},function(t,e,n){var i=n(26);t.exports=function(t,e){var n=null==t?void 0:t[e];return i(n)?n:void 0}},function(t,e,n){var i=n(27),o=n(28),s=/^\[object .+?Constructor\]$/,r=Object.prototype,a=Function.prototype.toString,l=r.hasOwnProperty,c=RegExp("^"+a.call(l).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return null!=t&&(i(t)?c.test(a.call(t)):o(t)&&s.test(t))}},function(t,e,n){var i=n(3),o=Object.prototype.toString;t.exports=function(t){return i(t)&&"[object Function]"==o.call(t)}},function(t,e){t.exports=function(t){return!!t&&"object"==typeof t}},function(t,e){const n="off-canvas",i="in",o="fa-times",s=n+"-container",r=n+"-exit",a=n+"-wrapper",l="fa",c="target",h="click.ui.offcanvas",d="hide.ui.offcanvas",u="show.ui.offcanvas",f={ICON:/(fa-[a-zA-Z]+)/g},p=function(t){var e;return this.$element=$(t),this.$wrapper=this.$element.closest("."+a),this.$container=this.$element.closest("."+s),this.$button=$(`[data-toggle=${n}][data-${c}=${t}]`),this.$button.data(l,function(t){const e=t.find(".icon").attr("class"),n=f.ICON.exec(e);if(n&&n.length)return n[0];return""}(this.$button)),this.$exit=$(`<a href="#" role="button" class="${r}" />`),this.$exit.appendTo(this.$wrapper),(e=this).$button.on(h,t=>{t.preventDefault(),e.$container.hasClass(i)?e.hide():e.show()}),e.$exit.on(h,t=>{t.preventDefault(),e.hide()}),this};p.prototype.toggle=function(t){const e=this.$button.data(l);return this.$container.toggleClass(i,t),this.$button.attr("aria-expanded",t),this.$button.find(".icon").toggleClass(e,!t).toggleClass(o,t),this},p.prototype.show=function(){return this.$element.trigger(u),this.toggle(!0)},p.prototype.hide=function(){return this.$element.trigger(d),this.toggle(!1)},t.exports=p},function(t,e){!function(t,e){if(!t.fn.dotdotdot){t.fn.dotdotdot=function(e){if(0==this.length)return t.fn.dotdotdot.debug('No element found for "'+this.selector+'".'),this;if(this.length>1)return this.each((function(){t(this).dotdotdot(e)}));var i=this;i.data("dotdotdot")&&i.trigger("destroy.dot"),i.data("dotdotdot-style",i.attr("style")||""),i.css("word-wrap","break-word"),"nowrap"===i.css("white-space")&&i.css("white-space","normal"),i.bind_events=function(){return i.bind("update.dot",(function(e,n){e.preventDefault(),e.stopPropagation(),h.maxHeight="number"==typeof h.height?h.height:function(t){for(var e=t.innerHeight(),n=["paddingTop","paddingBottom"],i=0,o=n.length;i<o;i++){var s=parseInt(t.css(n[i]),10);isNaN(s)&&(s=0),e-=s}return e}(i),h.maxHeight+=h.tolerance,void 0!==n&&(("string"==typeof n||n instanceof HTMLElement)&&(n=t("<div />").append(n).contents()),n instanceof t&&(o=n)),(g=i.wrapInner('<div class="dotdotdot" />').children()).contents().detach().end().append(o.clone(!0)).find("br").replaceWith(" <br /> ").end().css({height:"auto",width:"auto",border:"none",padding:0,margin:0});var a=!1,f=!1;return u.afterElement&&((a=u.afterElement.clone(!0)).show(),u.afterElement.detach()),s(g,h)&&(f="children"==h.wrap?function(t,e,n){var i=t.children(),o=!1;t.empty();for(var r=0,a=i.length;r<a;r++){var l=i.eq(r);if(t.append(l),n&&t.append(n),s(t,e)){l.remove(),o=!0;break}n&&n.detach()}return o}(g,h,a):function e(n,i,o,a,h){var u=!1;return n.contents().detach().each((function(){var f=this,p=t(f);if(void 0===f||3==f.nodeType&&0==t.trim(f.data).length)return!0;if(p.is("script, .dotdotdot-keep"))n.append(p);else{if(u)return!0;n.append(p),h&&n[n.is("table, thead, tbody, tfoot, tr, col, colgroup, object, embed, param, ol, ul, dl, blockquote, select, optgroup, option, textarea, script, style")?"after":"append"](h),s(o,a)&&((u=3==f.nodeType?function(e,n,i,o,a){var h=e[0];if(!h)return!1;var u=c(h),f=-1!==u.indexOf(" ")?" ":" ",p="letter"==o.wrap?"":f,g=u.split(p),m=-1,v=-1,$=0,b=g.length-1;o.fallbackToLetter&&0==$&&0==b&&(p="",g=u.split(p),b=g.length-1);for(;$<=b&&(0!=$||0!=b);){var w=Math.floor(($+b)/2);if(w==v)break;v=w,l(h,g.slice(0,v+1).join(p)+o.ellipsis),s(i,o)?(b=v,o.fallbackToLetter&&0==$&&0==b&&(p="",g=g[0].split(p),m=-1,v=-1,$=0,b=g.length-1)):(m=v,$=v)}if(-1==m||1==g.length&&0==g[0].length){var y=e.parent();e.detach();var T=a&&a.closest(y).length?a.length:0;y.contents().length>T?h=d(y.contents().eq(-1-T),n):(h=d(y,n,!0),T||y.detach()),h&&(u=r(c(h),o),l(h,u),T&&a&&t(h).parent().append(a))}else u=r(g.slice(0,m+1).join(p),o),l(h,u);return!0}(p,i,o,a,h):e(p,i,o,a,h))||(p.detach(),u=!0)),u||h&&h.detach()}})),u}(g,i,g,h,a)),g.replaceWith(g.contents()),g=null,t.isFunction(h.callback)&&h.callback.call(i[0],f,o),u.isTruncated=f,f})).bind("isTruncated.dot",(function(t,e){return t.preventDefault(),t.stopPropagation(),"function"==typeof e&&e.call(i[0],u.isTruncated),u.isTruncated})).bind("originalContent.dot",(function(t,e){return t.preventDefault(),t.stopPropagation(),"function"==typeof e&&e.call(i[0],o),o})).bind("destroy.dot",(function(t){t.preventDefault(),t.stopPropagation(),i.unwatch().unbind_events().contents().detach().end().append(o).attr("style",i.data("dotdotdot-style")||"").data("dotdotdot",!1)})),i},i.unbind_events=function(){return i.unbind(".dot"),i},i.watch=function(){if(i.unwatch(),"window"==h.watch){var e=t(window),n=e.width(),o=e.height();e.bind("resize.dot"+u.dotId,(function(){n==e.width()&&o==e.height()&&h.windowResizeFix||(n=e.width(),o=e.height(),p&&clearInterval(p),p=setTimeout((function(){i.trigger("update.dot")}),100))}))}else f=a(i),p=setInterval((function(){if(i.is(":visible")){var t=a(i);f.width==t.width&&f.height==t.height||(i.trigger("update.dot"),f=t)}}),500);return i},i.unwatch=function(){return t(window).unbind("resize.dot"+u.dotId),p&&clearInterval(p),i};var o=i.contents(),h=t.extend(!0,{},t.fn.dotdotdot.defaults,e),u={},f={},p=null,g=null;return h.lastCharacter.remove instanceof Array||(h.lastCharacter.remove=t.fn.dotdotdot.defaultArrays.lastCharacter.remove),h.lastCharacter.noEllipsis instanceof Array||(h.lastCharacter.noEllipsis=t.fn.dotdotdot.defaultArrays.lastCharacter.noEllipsis),u.afterElement=function(e,n){if(!e)return!1;if("string"==typeof e)return!!(e=t(e,n)).length&&e;return!!e.jquery&&e}(h.after,i),u.isTruncated=!1,u.dotId=n++,i.data("dotdotdot",!0).bind_events().trigger("update.dot"),h.watch&&i.watch(),i},t.fn.dotdotdot.defaults={ellipsis:"... ",wrap:"word",fallbackToLetter:!0,lastCharacter:{},tolerance:0,callback:null,after:null,height:null,watch:!1,windowResizeFix:!0},t.fn.dotdotdot.defaultArrays={lastCharacter:{remove:[" "," ",",",";",".","!","?"],noEllipsis:[]}},t.fn.dotdotdot.debug=function(t){};var n=1,i=t.fn.html;t.fn.html=function(e){return null!=e&&!t.isFunction(e)&&this.data("dotdotdot")?this.trigger("update",[e]):i.apply(this,arguments)};var o=t.fn.text;t.fn.text=function(e){return null!=e&&!t.isFunction(e)&&this.data("dotdotdot")?(e=t("<div />").text(e).html(),this.trigger("update",[e])):o.apply(this,arguments)}}function s(t,e){return t.innerHeight()>e.maxHeight}function r(e,n){for(;t.inArray(e.slice(-1),n.lastCharacter.remove)>-1;)e=e.slice(0,-1);return t.inArray(e.slice(-1),n.lastCharacter.noEllipsis)<0&&(e+=n.ellipsis),e}function a(t){return{width:t.innerWidth(),height:t.innerHeight()}}function l(t,e){t.innerText?t.innerText=e:t.nodeValue?t.nodeValue=e:t.textContent&&(t.textContent=e)}function c(t){return t.innerText?t.innerText:t.nodeValue?t.nodeValue:t.textContent?t.textContent:""}function h(t){do{t=t.previousSibling}while(t&&1!==t.nodeType&&3!==t.nodeType);return t}function d(e,n,i){var o,s=e&&e[0];if(s){if(!i){if(3===s.nodeType)return s;if(t.trim(e.text()))return d(e.contents().last(),n)}for(o=h(s);!o;){if((e=e.parent()).is(n)||!e.length)return!1;o=h(e[0])}if(o)return d(t(o),n)}return!1}}(jQuery)},function(t,e,n){"use strict";n.p},function(t,e,n){"use strict";n.p},function(t,e,n){"use strict";n.p}]);