From f729f9040e506d4bbb8f230392c60da1cc43d8a0 Mon Sep 17 00:00:00 2001 From: Alexis Gaillard Date: Fri, 17 Sep 2021 08:57:45 +0200 Subject: [PATCH] FRONT-3061: Inclusion of external js assets from bootstrap-ie11. --- bcl-builder.config.js | 5 + includes/page_attachments.inc | 4 +- package.json | 2 +- .../bootstrap-5.0.0-beta2-ie11.js | 35 +++++++ .../bootstrap-ie11/polyfill-ie11.min.js | 91 +++++++++++++++++++ 5 files changed, 134 insertions(+), 3 deletions(-) create mode 100644 resources/js/libraries/bootstrap-ie11/bootstrap-5.0.0-beta2-ie11.js create mode 100644 resources/js/libraries/bootstrap-ie11/polyfill-ie11.min.js diff --git a/bcl-builder.config.js b/bcl-builder.config.js index 4e57d38bb..2d2aaa825 100644 --- a/bcl-builder.config.js +++ b/bcl-builder.config.js @@ -34,6 +34,11 @@ module.exports = { to: path.resolve(outputFolder, "assets/css"), options: { up: true }, }, + { + from: [path.resolve(outputFolder, "resources/js/libraries/bootstrap-ie11/**")], + to: path.resolve(outputFolder, "assets/js"), + options: { up: true }, + }, { from: [path.resolve(outputFolder, "resources/js/libraries/extend/progress.js")], to: path.resolve(outputFolder, "assets/js"), diff --git a/includes/page_attachments.inc b/includes/page_attachments.inc index 80ac86014..9d84332a5 100644 --- a/includes/page_attachments.inc +++ b/includes/page_attachments.inc @@ -18,8 +18,8 @@ function oe_bootstrap_theme_page_attachments_alter(array &$attachments) { $theme_path = $base_url . '/' . $theme->getPath(); $theme_path_safe = Html::escape($theme_path); $markup = '' - . '' - . ''; + . '' + . ''; // Bootstrap-ie11 inline JS which will load the CSS and JS just for IE users. // https://github.com/coliff/bootstrap-ie11 diff --git a/package.json b/package.json index 578c11d1a..0e4383f47 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "devDependencies": { "@openeuropa/bcl-builder": "0.7.0", "@openeuropa/bcl-theme-default": "0.7.0", - "bootstrap-ie11": "5.0.2", + "bootstrap-ie11": "5.1.1", "chokidar-cli": "^3.0.0", "copyfiles": "2.4.1", "cross-env": "7.0.3", diff --git a/resources/js/libraries/bootstrap-ie11/bootstrap-5.0.0-beta2-ie11.js b/resources/js/libraries/bootstrap-ie11/bootstrap-5.0.0-beta2-ie11.js new file mode 100644 index 000000000..f6a73a9d5 --- /dev/null +++ b/resources/js/libraries/bootstrap-ie11/bootstrap-5.0.0-beta2-ie11.js @@ -0,0 +1,35 @@ +/** + * Taken from: https://cdn.jsdelivr.net/combine/npm/bootstrap@5.0.0-beta2/dist/js/bootstrap.bundle.min.js,npm/ie11-custom-properties@4,npm/element-qsa-scope@1 + * + * See: https://github.com/coliff/bootstrap-ie11 + */ + +/** + * Combined by jsDelivr. + * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files + */ +/*! + * Bootstrap v5.0.0-beta2 (https://getbootstrap.com/) + * Copyright 2011-2021 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) + * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) + */ +!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).bootstrap=e()}(this,(function(){"use strict";function t(t,e){for(var n=0;n0,i._pointerEvent=Boolean(window.PointerEvent),i._addEventListeners(),i}i(o,t);var r=o.prototype;return r.next=function(){this._isSliding||this._slide("next")},r.nextWhenVisible=function(){!document.hidden&&g(this._element)&&this.next()},r.prev=function(){this._isSliding||this._slide("prev")},r.pause=function(t){t||(this._isPaused=!0),Y(".carousel-item-next, .carousel-item-prev",this._element)&&(f(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},r.cycle=function(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config&&this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},r.to=function(t){var e=this;this._activeElement=Y(".active.carousel-item",this._element);var n=this._getItemIndex(this._activeElement);if(!(t>this._items.length-1||t<0))if(this._isSliding)B.one(this._element,"slid.bs.carousel",(function(){return e.to(t)}));else{if(n===t)return this.pause(),void this.cycle();var i=t>n?"next":"prev";this._slide(i,this._items[t])}},r.dispose=function(){t.prototype.dispose.call(this),B.off(this._element,".bs.carousel"),this._items=null,this._config=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},r._getConfig=function(t){return t=n({},X,t),p("carousel",t,Q),t},r._handleSwipe=function(){var t=Math.abs(this.touchDeltaX);if(!(t<=40)){var e=t/this.touchDeltaX;this.touchDeltaX=0,e>0&&(b?this.next():this.prev()),e<0&&(b?this.prev():this.next())}},r._addEventListeners=function(){var t=this;this._config.keyboard&&B.on(this._element,"keydown.bs.carousel",(function(e){return t._keydown(e)})),"hover"===this._config.pause&&(B.on(this._element,"mouseenter.bs.carousel",(function(e){return t.pause(e)})),B.on(this._element,"mouseleave.bs.carousel",(function(e){return t.cycle(e)}))),this._config.touch&&this._touchSupported&&this._addTouchEventListeners()},r._addTouchEventListeners=function(){var t=this,e=function(e){!t._pointerEvent||"pen"!==e.pointerType&&"touch"!==e.pointerType?t._pointerEvent||(t.touchStartX=e.touches[0].clientX):t.touchStartX=e.clientX},n=function(e){!t._pointerEvent||"pen"!==e.pointerType&&"touch"!==e.pointerType||(t.touchDeltaX=e.clientX-t.touchStartX),t._handleSwipe(),"hover"===t._config.pause&&(t.pause(),t.touchTimeout&&clearTimeout(t.touchTimeout),t.touchTimeout=setTimeout((function(e){return t.cycle(e)}),500+t._config.interval))};F(".carousel-item img",this._element).forEach((function(t){B.on(t,"dragstart.bs.carousel",(function(t){return t.preventDefault()}))})),this._pointerEvent?(B.on(this._element,"pointerdown.bs.carousel",(function(t){return e(t)})),B.on(this._element,"pointerup.bs.carousel",(function(t){return n(t)})),this._element.classList.add("pointer-event")):(B.on(this._element,"touchstart.bs.carousel",(function(t){return e(t)})),B.on(this._element,"touchmove.bs.carousel",(function(e){return function(e){e.touches&&e.touches.length>1?t.touchDeltaX=0:t.touchDeltaX=e.touches[0].clientX-t.touchStartX}(e)})),B.on(this._element,"touchend.bs.carousel",(function(t){return n(t)})))},r._keydown=function(t){/input|textarea/i.test(t.target.tagName)||("ArrowLeft"===t.key?(t.preventDefault(),b?this.next():this.prev()):"ArrowRight"===t.key&&(t.preventDefault(),b?this.prev():this.next()))},r._getItemIndex=function(t){return this._items=t&&t.parentNode?F(".carousel-item",t.parentNode):[],this._items.indexOf(t)},r._getItemByDirection=function(t,e){var n="next"===t,i="prev"===t,o=this._getItemIndex(e),r=this._items.length-1;if((i&&0===o||n&&o===r)&&!this._config.wrap)return e;var s=(o+("prev"===t?-1:1))%this._items.length;return-1===s?this._items[this._items.length-1]:this._items[s]},r._triggerSlideEvent=function(t,e){var n=this._getItemIndex(t),i=this._getItemIndex(Y(".active.carousel-item",this._element));return B.trigger(this._element,"slide.bs.carousel",{relatedTarget:t,direction:e,from:i,to:n})},r._setActiveIndicatorElement=function(t){if(this._indicatorsElement){var e=Y(".active",this._indicatorsElement);e.classList.remove("active"),e.removeAttribute("aria-current");for(var n=F("[data-bs-target]",this._indicatorsElement),i=0;i0)for(var i=0;i=0}function _t(t){return((ut(t)?t.ownerDocument:t.document)||window.document).documentElement}function bt(t){return"html"===lt(t)?t:t.assignedSlot||t.parentNode||t.host||_t(t)}function yt(t){if(!ft(t)||"fixed"===mt(t).position)return null;var e=t.offsetParent;if(e){var n=_t(e);if("body"===lt(e)&&"static"===mt(e).position&&"static"!==mt(n).position)return n}return e}function wt(t){for(var e=ct(t),n=yt(t);n&&vt(n)&&"static"===mt(n).position;)n=yt(n);return n&&"body"===lt(n)&&"static"===mt(n).position?e:n||function(t){for(var e=bt(t);ft(e)&&["html","body"].indexOf(lt(e))<0;){var n=mt(e);if("none"!==n.transform||"none"!==n.perspective||n.willChange&&"auto"!==n.willChange)return e;e=e.parentNode}return null}(t)||e}function Et(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Tt(t,e,n){return Math.max(t,Math.min(e,n))}function kt(t){return Object.assign(Object.assign({},{top:0,right:0,bottom:0,left:0}),t)}function At(t,e){return e.reduce((function(e,n){return e[n]=t,e}),{})}var Lt={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,n=t.state,i=t.name,o=n.elements.arrow,r=n.modifiersData.popperOffsets,s=ht(n.placement),a=Et(s),l=[it,nt].indexOf(s)>=0?"height":"width";if(o&&r){var c=n.modifiersData[i+"#persistent"].padding,u=pt(o),f="y"===a?tt:it,d="y"===a?et:nt,h=n.rects.reference[l]+n.rects.reference[a]-r[a]-n.rects.popper[l],p=r[a]-n.rects.reference[a],g=wt(o),m=g?"y"===a?g.clientHeight||0:g.clientWidth||0:0,v=h/2-p/2,_=c[f],b=m-u[l]-c[d],y=m/2-u[l]/2+v,w=Tt(_,y,b),E=a;n.modifiersData[i]=((e={})[E]=w,e.centerOffset=w-y,e)}},effect:function(t){var e=t.state,n=t.options,i=t.name,o=n.element,r=void 0===o?"[data-popper-arrow]":o,s=n.padding,a=void 0===s?0:s;null!=r&&("string"!=typeof r||(r=e.elements.popper.querySelector(r)))&>(e.elements.popper,r)&&(e.elements.arrow=r,e.modifiersData[i+"#persistent"]={padding:kt("number"!=typeof a?a:At(a,ot))})},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},Ot={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Dt(t){var e,n=t.popper,i=t.popperRect,o=t.placement,r=t.offsets,s=t.position,a=t.gpuAcceleration,l=t.adaptive,c=t.roundOffsets?function(t){var e=t.x,n=t.y,i=window.devicePixelRatio||1;return{x:Math.round(e*i)/i||0,y:Math.round(n*i)/i||0}}(r):r,u=c.x,f=void 0===u?0:u,d=c.y,h=void 0===d?0:d,p=r.hasOwnProperty("x"),g=r.hasOwnProperty("y"),m=it,v=tt,_=window;if(l){var b=wt(n);b===ct(n)&&(b=_t(n)),o===tt&&(v=et,h-=b.clientHeight-i.height,h*=a?1:-1),o===it&&(m=nt,f-=b.clientWidth-i.width,f*=a?1:-1)}var y,w=Object.assign({position:s},l&&Ot);return a?Object.assign(Object.assign({},w),{},((y={})[v]=g?"0":"",y[m]=p?"0":"",y.transform=(_.devicePixelRatio||1)<2?"translate("+f+"px, "+h+"px)":"translate3d("+f+"px, "+h+"px, 0)",y)):Object.assign(Object.assign({},w),{},((e={})[v]=g?h+"px":"",e[m]=p?f+"px":"",e.transform="",e))}var xt={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,n=t.options,i=n.gpuAcceleration,o=void 0===i||i,r=n.adaptive,s=void 0===r||r,a=n.roundOffsets,l=void 0===a||a,c={placement:ht(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign(Object.assign({},e.styles.popper),Dt(Object.assign(Object.assign({},c),{},{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:l})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign(Object.assign({},e.styles.arrow),Dt(Object.assign(Object.assign({},c),{},{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign(Object.assign({},e.attributes.popper),{},{"data-popper-placement":e.placement})},data:{}},Ct={passive:!0},St={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,n=t.instance,i=t.options,o=i.scroll,r=void 0===o||o,s=i.resize,a=void 0===s||s,l=ct(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return r&&c.forEach((function(t){t.addEventListener("scroll",n.update,Ct)})),a&&l.addEventListener("resize",n.update,Ct),function(){r&&c.forEach((function(t){t.removeEventListener("scroll",n.update,Ct)})),a&&l.removeEventListener("resize",n.update,Ct)}},data:{}},jt={left:"right",right:"left",bottom:"top",top:"bottom"};function Nt(t){return t.replace(/left|right|bottom|top/g,(function(t){return jt[t]}))}var Pt={start:"end",end:"start"};function It(t){return t.replace(/start|end/g,(function(t){return Pt[t]}))}function Mt(t){var e=t.getBoundingClientRect();return{width:e.width,height:e.height,top:e.top,right:e.right,bottom:e.bottom,left:e.left,x:e.left,y:e.top}}function Bt(t){var e=ct(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Ht(t){return Mt(_t(t)).left+Bt(t).scrollLeft}function Rt(t){var e=mt(t),n=e.overflow,i=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+i)}function Wt(t,e){void 0===e&&(e=[]);var n=function t(e){return["html","body","#document"].indexOf(lt(e))>=0?e.ownerDocument.body:ft(e)&&Rt(e)?e:t(bt(e))}(t),i="body"===lt(n),o=ct(n),r=i?[o].concat(o.visualViewport||[],Rt(n)?n:[]):n,s=e.concat(r);return i?s:s.concat(Wt(bt(r)))}function Kt(t){return Object.assign(Object.assign({},t),{},{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Ut(t,e){return"viewport"===e?Kt(function(t){var e=ct(t),n=_t(t),i=e.visualViewport,o=n.clientWidth,r=n.clientHeight,s=0,a=0;return i&&(o=i.width,r=i.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=i.offsetLeft,a=i.offsetTop)),{width:o,height:r,x:s+Ht(t),y:a}}(t)):ft(e)?function(t){var e=Mt(t);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}(e):Kt(function(t){var e=_t(t),n=Bt(t),i=t.ownerDocument.body,o=Math.max(e.scrollWidth,e.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),r=Math.max(e.scrollHeight,e.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-n.scrollLeft+Ht(t),a=-n.scrollTop;return"rtl"===mt(i||e).direction&&(s+=Math.max(e.clientWidth,i?i.clientWidth:0)-o),{width:o,height:r,x:s,y:a}}(_t(t)))}function zt(t){return t.split("-")[1]}function Ft(t){var e,n=t.reference,i=t.element,o=t.placement,r=o?ht(o):null,s=o?zt(o):null,a=n.x+n.width/2-i.width/2,l=n.y+n.height/2-i.height/2;switch(r){case tt:e={x:a,y:n.y-i.height};break;case et:e={x:a,y:n.y+n.height};break;case nt:e={x:n.x+n.width,y:l};break;case it:e={x:n.x-i.width,y:l};break;default:e={x:n.x,y:n.y}}var c=r?Et(r):null;if(null!=c){var u="y"===c?"height":"width";switch(s){case"start":e[c]=e[c]-(n[u]/2-i[u]/2);break;case"end":e[c]=e[c]+(n[u]/2-i[u]/2)}}return e}function Yt(t,e){void 0===e&&(e={});var n=e,i=n.placement,o=void 0===i?t.placement:i,r=n.boundary,s=void 0===r?"clippingParents":r,a=n.rootBoundary,l=void 0===a?"viewport":a,c=n.elementContext,u=void 0===c?"popper":c,f=n.altBoundary,d=void 0!==f&&f,h=n.padding,p=void 0===h?0:h,g=kt("number"!=typeof p?p:At(p,ot)),m="popper"===u?"reference":"popper",v=t.elements.reference,_=t.rects.popper,b=t.elements[d?m:u],y=function(t,e,n){var i="clippingParents"===e?function(t){var e=Wt(bt(t)),n=["absolute","fixed"].indexOf(mt(t).position)>=0&&ft(t)?wt(t):t;return ut(n)?e.filter((function(t){return ut(t)&>(t,n)&&"body"!==lt(t)})):[]}(t):[].concat(e),o=[].concat(i,[n]),r=o[0],s=o.reduce((function(e,n){var i=Ut(t,n);return e.top=Math.max(i.top,e.top),e.right=Math.min(i.right,e.right),e.bottom=Math.min(i.bottom,e.bottom),e.left=Math.max(i.left,e.left),e}),Ut(t,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}(ut(b)?b:b.contextElement||_t(t.elements.popper),s,l),w=Mt(v),E=Ft({reference:w,element:_,strategy:"absolute",placement:o}),T=Kt(Object.assign(Object.assign({},_),E)),k="popper"===u?T:w,A={top:y.top-k.top+g.top,bottom:k.bottom-y.bottom+g.bottom,left:y.left-k.left+g.left,right:k.right-y.right+g.right},L=t.modifiersData.offset;if("popper"===u&&L){var O=L[o];Object.keys(A).forEach((function(t){var e=[nt,et].indexOf(t)>=0?1:-1,n=[tt,et].indexOf(t)>=0?"y":"x";A[t]+=O[n]*e}))}return A}function qt(t,e){void 0===e&&(e={});var n=e,i=n.placement,o=n.boundary,r=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?st:l,u=zt(i),f=u?a?rt:rt.filter((function(t){return zt(t)===u})):ot,d=f.filter((function(t){return c.indexOf(t)>=0}));0===d.length&&(d=f);var h=d.reduce((function(e,n){return e[n]=Yt(t,{placement:n,boundary:o,rootBoundary:r,padding:s})[ht(n)],e}),{});return Object.keys(h).sort((function(t,e){return h[t]-h[e]}))}var Vt={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,i=t.name;if(!e.modifiersData[i]._skip){for(var o=n.mainAxis,r=void 0===o||o,s=n.altAxis,a=void 0===s||s,l=n.fallbackPlacements,c=n.padding,u=n.boundary,f=n.rootBoundary,d=n.altBoundary,h=n.flipVariations,p=void 0===h||h,g=n.allowedAutoPlacements,m=e.options.placement,v=ht(m),_=l||(v!==m&&p?function(t){if("auto"===ht(t))return[];var e=Nt(t);return[It(t),e,It(e)]}(m):[Nt(m)]),b=[m].concat(_).reduce((function(t,n){return t.concat("auto"===ht(n)?qt(e,{placement:n,boundary:u,rootBoundary:f,padding:c,flipVariations:p,allowedAutoPlacements:g}):n)}),[]),y=e.rects.reference,w=e.rects.popper,E=new Map,T=!0,k=b[0],A=0;A=0,C=x?"width":"height",S=Yt(e,{placement:L,boundary:u,rootBoundary:f,altBoundary:d,padding:c}),j=x?D?nt:it:D?et:tt;y[C]>w[C]&&(j=Nt(j));var N=Nt(j),P=[];if(r&&P.push(S[O]<=0),a&&P.push(S[j]<=0,S[N]<=0),P.every((function(t){return t}))){k=L,T=!1;break}E.set(L,P)}if(T)for(var I=function(t){var e=b.find((function(e){var n=E.get(e);if(n)return n.slice(0,t).every((function(t){return t}))}));if(e)return k=e,"break"},M=p?3:1;M>0&&"break"!==I(M);M--);e.placement!==k&&(e.modifiersData[i]._skip=!0,e.placement=k,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Xt(t,e,n){return void 0===n&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function Qt(t){return[tt,nt,et,it].some((function(e){return t[e]>=0}))}var $t={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,n=t.name,i=e.rects.reference,o=e.rects.popper,r=e.modifiersData.preventOverflow,s=Yt(e,{elementContext:"reference"}),a=Yt(e,{altBoundary:!0}),l=Xt(s,i),c=Xt(a,o,r),u=Qt(l),f=Qt(c);e.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:f},e.attributes.popper=Object.assign(Object.assign({},e.attributes.popper),{},{"data-popper-reference-hidden":u,"data-popper-escaped":f})}},Gt={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,n=t.options,i=t.name,o=n.offset,r=void 0===o?[0,0]:o,s=st.reduce((function(t,n){return t[n]=function(t,e,n){var i=ht(t),o=[it,tt].indexOf(i)>=0?-1:1,r="function"==typeof n?n(Object.assign(Object.assign({},e),{},{placement:t})):n,s=r[0],a=r[1];return s=s||0,a=(a||0)*o,[it,nt].indexOf(i)>=0?{x:a,y:s}:{x:s,y:a}}(n,e.rects,r),t}),{}),a=s[e.placement],l=a.x,c=a.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[i]=s}},Zt={name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,n=t.name;e.modifiersData[n]=Ft({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},Jt={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,i=t.name,o=n.mainAxis,r=void 0===o||o,s=n.altAxis,a=void 0!==s&&s,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,f=n.padding,d=n.tether,h=void 0===d||d,p=n.tetherOffset,g=void 0===p?0:p,m=Yt(e,{boundary:l,rootBoundary:c,padding:f,altBoundary:u}),v=ht(e.placement),_=zt(e.placement),b=!_,y=Et(v),w="x"===y?"y":"x",E=e.modifiersData.popperOffsets,T=e.rects.reference,k=e.rects.popper,A="function"==typeof g?g(Object.assign(Object.assign({},e.rects),{},{placement:e.placement})):g,L={x:0,y:0};if(E){if(r){var O="y"===y?tt:it,D="y"===y?et:nt,x="y"===y?"height":"width",C=E[y],S=E[y]+m[O],j=E[y]-m[D],N=h?-k[x]/2:0,P="start"===_?T[x]:k[x],I="start"===_?-k[x]:-T[x],M=e.elements.arrow,B=h&&M?pt(M):{width:0,height:0},H=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},R=H[O],W=H[D],K=Tt(0,T[x],B[x]),U=b?T[x]/2-N-K-R-A:P-K-R-A,z=b?-T[x]/2+N+K+W+A:I+K+W+A,F=e.elements.arrow&&wt(e.elements.arrow),Y=F?"y"===y?F.clientTop||0:F.clientLeft||0:0,q=e.modifiersData.offset?e.modifiersData.offset[e.placement][y]:0,V=E[y]+U-q-Y,X=E[y]+z-q,Q=Tt(h?Math.min(S,V):S,C,h?Math.max(j,X):j);E[y]=Q,L[y]=Q-C}if(a){var $="x"===y?tt:it,G="x"===y?et:nt,Z=E[w],J=Tt(Z+m[$],Z,Z-m[G]);E[w]=J,L[w]=J-Z}e.modifiersData[i]=L}},requiresIfExists:["offset"]};function te(t,e,n){void 0===n&&(n=!1);var i,o,r=_t(e),s=Mt(t),a=ft(e),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(a||!a&&!n)&&(("body"!==lt(e)||Rt(r))&&(l=(i=e)!==ct(i)&&ft(i)?{scrollLeft:(o=i).scrollLeft,scrollTop:o.scrollTop}:Bt(i)),ft(e)?((c=Mt(e)).x+=e.clientLeft,c.y+=e.clientTop):r&&(c.x=Ht(r))),{x:s.left+l.scrollLeft-c.x,y:s.top+l.scrollTop-c.y,width:s.width,height:s.height}}var ee={placement:"bottom",modifiers:[],strategy:"absolute"};function ne(){for(var t=arguments.length,e=new Array(t),n=0;n0&&r--,"ArrowDown"===t.key&&rdocument.documentElement.clientHeight;e||(this._element.style.overflowY="hidden"),this._element.classList.add("modal-static");var n=u(this._dialog);B.off(this._element,"transitionend"),B.one(this._element,"transitionend",(function(){t._element.classList.remove("modal-static"),e||(B.one(t._element,"transitionend",(function(){t._element.style.overflowY=""})),h(t._element,n))})),h(this._element,n),this._element.focus()}},r._adjustDialog=function(){var t=this._element.scrollHeight>document.documentElement.clientHeight;(!this._isBodyOverflowing&&t&&!b||this._isBodyOverflowing&&!t&&b)&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),(this._isBodyOverflowing&&!t&&!b||!this._isBodyOverflowing&&t&&b)&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},r._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},r._checkScrollbar=function(){var t=document.body.getBoundingClientRect();this._isBodyOverflowing=Math.round(t.left+t.right)
',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:[0,0],container:!1,fallbackPlacements:["top","right","bottom","left"],boundary:"clippingParents",customClass:"",sanitize:!0,sanitizeFn:null,allowList:{"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},popperConfig:null},Ce={HIDE:"hide.bs.tooltip",HIDDEN:"hidden.bs.tooltip",SHOW:"show.bs.tooltip",SHOWN:"shown.bs.tooltip",INSERTED:"inserted.bs.tooltip",CLICK:"click.bs.tooltip",FOCUSIN:"focusin.bs.tooltip",FOCUSOUT:"focusout.bs.tooltip",MOUSEENTER:"mouseenter.bs.tooltip",MOUSELEAVE:"mouseleave.bs.tooltip"},Se=function(t){function o(e,n){var i;if(void 0===ae)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");return(i=t.call(this,e)||this)._isEnabled=!0,i._timeout=0,i._hoverState="",i._activeTrigger={},i._popper=null,i.config=i._getConfig(n),i.tip=null,i._setListeners(),i}i(o,t);var r=o.prototype;return r.enable=function(){this._isEnabled=!0},r.disable=function(){this._isEnabled=!1},r.toggleEnabled=function(){this._isEnabled=!this._isEnabled},r.toggle=function(t){if(this._isEnabled)if(t){var e=this._initializeOnDelegatedTarget(t);e._activeTrigger.click=!e._activeTrigger.click,e._isWithActiveTrigger()?e._enter(null,e):e._leave(null,e)}else{if(this.getTipElement().classList.contains("show"))return void this._leave(null,this);this._enter(null,this)}},r.dispose=function(){clearTimeout(this._timeout),B.off(this._element,this.constructor.EVENT_KEY),B.off(this._element.closest(".modal"),"hide.bs.modal",this._hideModalHandler),this.tip&&this.tip.parentNode&&this.tip.parentNode.removeChild(this.tip),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._popper&&this._popper.destroy(),this._popper=null,this.config=null,this.tip=null,t.prototype.dispose.call(this)},r.show=function(){var t=this;if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(this.isWithContent()&&this._isEnabled){var e=B.trigger(this._element,this.constructor.Event.SHOW),n=function t(e){if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){var n=e.getRootNode();return n instanceof ShadowRoot?n:null}return e instanceof ShadowRoot?e:e.parentNode?t(e.parentNode):null}(this._element),i=null===n?this._element.ownerDocument.documentElement.contains(this._element):n.contains(this._element);if(!e.defaultPrevented&&i){var o=this.getTipElement(),r=s(this.constructor.NAME);o.setAttribute("id",r),this._element.setAttribute("aria-describedby",r),this.setContent(),this.config.animation&&o.classList.add("fade");var a="function"==typeof this.config.placement?this.config.placement.call(this,o,this._element):this.config.placement,l=this._getAttachment(a);this._addAttachmentClass(l);var c=this._getContainer();E(o,this.constructor.DATA_KEY,this),this._element.ownerDocument.documentElement.contains(this.tip)||c.appendChild(o),B.trigger(this._element,this.constructor.Event.INSERTED),this._popper=se(this._element,o,this._getPopperConfig(l)),o.classList.add("show");var f,d,p="function"==typeof this.config.customClass?this.config.customClass():this.config.customClass;p&&(f=o.classList).add.apply(f,p.split(" ")),"ontouchstart"in document.documentElement&&(d=[]).concat.apply(d,document.body.children).forEach((function(t){B.on(t,"mouseover",(function(){}))}));var g=function(){var e=t._hoverState;t._hoverState=null,B.trigger(t._element,t.constructor.Event.SHOWN),"out"===e&&t._leave(null,t)};if(this.tip.classList.contains("fade")){var m=u(this.tip);B.one(this.tip,"transitionend",g),h(this.tip,m)}else g()}}},r.hide=function(){var t=this;if(this._popper){var e=this.getTipElement(),n=function(){"show"!==t._hoverState&&e.parentNode&&e.parentNode.removeChild(e),t._cleanTipClass(),t._element.removeAttribute("aria-describedby"),B.trigger(t._element,t.constructor.Event.HIDDEN),t._popper&&(t._popper.destroy(),t._popper=null)};if(!B.trigger(this._element,this.constructor.Event.HIDE).defaultPrevented){var i;if(e.classList.remove("show"),"ontouchstart"in document.documentElement&&(i=[]).concat.apply(i,document.body.children).forEach((function(t){return B.off(t,"mouseover",m)})),this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger.hover=!1,this.tip.classList.contains("fade")){var o=u(e);B.one(e,"transitionend",n),h(e,o)}else n();this._hoverState=""}}},r.update=function(){null!==this._popper&&this._popper.update()},r.isWithContent=function(){return Boolean(this.getTitle())},r.getTipElement=function(){if(this.tip)return this.tip;var t=document.createElement("div");return t.innerHTML=this.config.template,this.tip=t.children[0],this.tip},r.setContent=function(){var t=this.getTipElement();this.setElementContent(Y(".tooltip-inner",t),this.getTitle()),t.classList.remove("fade","show")},r.setElementContent=function(t,e){if(null!==t)return"object"==typeof e&&d(e)?(e.jquery&&(e=e[0]),void(this.config.html?e.parentNode!==t&&(t.innerHTML="",t.appendChild(e)):t.textContent=e.textContent)):void(this.config.html?(this.config.sanitize&&(e=ke(e,this.config.allowList,this.config.sanitizeFn)),t.innerHTML=e):t.textContent=e)},r.getTitle=function(){var t=this._element.getAttribute("data-bs-original-title");return t||(t="function"==typeof this.config.title?this.config.title.call(this._element):this.config.title),t},r.updateAttachment=function(t){return"right"===t?"end":"left"===t?"start":t},r._initializeOnDelegatedTarget=function(t,e){var n=this.constructor.DATA_KEY;return(e=e||T(t.delegateTarget,n))||(e=new this.constructor(t.delegateTarget,this._getDelegateConfig()),E(t.delegateTarget,n,e)),e},r._getOffset=function(){var t=this,e=this.config.offset;return"string"==typeof e?e.split(",").map((function(t){return Number.parseInt(t,10)})):"function"==typeof e?function(n){return e(n,t._element)}:e},r._getPopperConfig=function(t){var e=this,i={placement:t,modifiers:[{name:"flip",options:{altBoundary:!0,fallbackPlacements:this.config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this.config.boundary}},{name:"arrow",options:{element:"."+this.constructor.NAME+"-arrow"}},{name:"onChange",enabled:!0,phase:"afterWrite",fn:function(t){return e._handlePopperPlacementChange(t)}}],onFirstUpdate:function(t){t.options.placement!==t.placement&&e._handlePopperPlacementChange(t)}};return n({},i,"function"==typeof this.config.popperConfig?this.config.popperConfig(i):this.config.popperConfig)},r._addAttachmentClass=function(t){this.getTipElement().classList.add("bs-tooltip-"+this.updateAttachment(t))},r._getContainer=function(){return!1===this.config.container?document.body:d(this.config.container)?this.config.container:Y(this.config.container)},r._getAttachment=function(t){return De[t.toUpperCase()]},r._setListeners=function(){var t=this;this.config.trigger.split(" ").forEach((function(e){if("click"===e)B.on(t._element,t.constructor.Event.CLICK,t.config.selector,(function(e){return t.toggle(e)}));else if("manual"!==e){var n="hover"===e?t.constructor.Event.MOUSEENTER:t.constructor.Event.FOCUSIN,i="hover"===e?t.constructor.Event.MOUSELEAVE:t.constructor.Event.FOCUSOUT;B.on(t._element,n,t.config.selector,(function(e){return t._enter(e)})),B.on(t._element,i,t.config.selector,(function(e){return t._leave(e)}))}})),this._hideModalHandler=function(){t._element&&t.hide()},B.on(this._element.closest(".modal"),"hide.bs.modal",this._hideModalHandler),this.config.selector?this.config=n({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},r._fixTitle=function(){var t=this._element.getAttribute("title"),e=typeof this._element.getAttribute("data-bs-original-title");(t||"string"!==e)&&(this._element.setAttribute("data-bs-original-title",t||""),!t||this._element.getAttribute("aria-label")||this._element.textContent||this._element.setAttribute("aria-label",t),this._element.setAttribute("title",""))},r._enter=function(t,e){e=this._initializeOnDelegatedTarget(t,e),t&&(e._activeTrigger["focusin"===t.type?"focus":"hover"]=!0),e.getTipElement().classList.contains("show")||"show"===e._hoverState?e._hoverState="show":(clearTimeout(e._timeout),e._hoverState="show",e.config.delay&&e.config.delay.show?e._timeout=setTimeout((function(){"show"===e._hoverState&&e.show()}),e.config.delay.show):e.show())},r._leave=function(t,e){e=this._initializeOnDelegatedTarget(t,e),t&&(e._activeTrigger["focusout"===t.type?"focus":"hover"]=!1),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState="out",e.config.delay&&e.config.delay.hide?e._timeout=setTimeout((function(){"out"===e._hoverState&&e.hide()}),e.config.delay.hide):e.hide())},r._isWithActiveTrigger=function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1},r._getConfig=function(t){var e=z.getDataAttributes(this._element);return Object.keys(e).forEach((function(t){Le.has(t)&&delete e[t]})),t&&"object"==typeof t.container&&t.container.jquery&&(t.container=t.container[0]),"number"==typeof(t=n({},this.constructor.Default,e,"object"==typeof t&&t?t:{})).delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),p("tooltip",t,this.constructor.DefaultType),t.sanitize&&(t.template=ke(t.template,t.allowList,t.sanitizeFn)),t},r._getDelegateConfig=function(){var t={};if(this.config)for(var e in this.config)this.constructor.Default[e]!==this.config[e]&&(t[e]=this.config[e]);return t},r._cleanTipClass=function(){var t=this.getTipElement(),e=t.getAttribute("class").match(Ae);null!==e&&e.length>0&&e.map((function(t){return t.trim()})).forEach((function(e){return t.classList.remove(e)}))},r._handlePopperPlacementChange=function(t){var e=t.state;e&&(this.tip=e.elements.popper,this._cleanTipClass(),this._addAttachmentClass(this._getAttachment(e.placement)))},o.jQueryInterface=function(t){return this.each((function(){var e=T(this,"bs.tooltip"),n="object"==typeof t&&t;if((e||!/dispose|hide/.test(t))&&(e||(e=new o(this,n)),"string"==typeof t)){if(void 0===e[t])throw new TypeError('No method named "'+t+'"');e[t]()}}))},e(o,null,[{key:"Default",get:function(){return xe}},{key:"NAME",get:function(){return"tooltip"}},{key:"DATA_KEY",get:function(){return"bs.tooltip"}},{key:"Event",get:function(){return Ce}},{key:"EVENT_KEY",get:function(){return".bs.tooltip"}},{key:"DefaultType",get:function(){return Oe}}]),o}(H);y("tooltip",Se);var je=new RegExp("(^|\\s)bs-popover\\S+","g"),Ne=n({},Se.Default,{placement:"right",offset:[0,8],trigger:"click",content:"",template:''}),Pe=n({},Se.DefaultType,{content:"(string|element|function)"}),Ie={HIDE:"hide.bs.popover",HIDDEN:"hidden.bs.popover",SHOW:"show.bs.popover",SHOWN:"shown.bs.popover",INSERTED:"inserted.bs.popover",CLICK:"click.bs.popover",FOCUSIN:"focusin.bs.popover",FOCUSOUT:"focusout.bs.popover",MOUSEENTER:"mouseenter.bs.popover",MOUSELEAVE:"mouseleave.bs.popover"},Me=function(t){function n(){return t.apply(this,arguments)||this}i(n,t);var o=n.prototype;return o.isWithContent=function(){return this.getTitle()||this._getContent()},o.setContent=function(){var t=this.getTipElement();this.setElementContent(Y(".popover-header",t),this.getTitle());var e=this._getContent();"function"==typeof e&&(e=e.call(this._element)),this.setElementContent(Y(".popover-body",t),e),t.classList.remove("fade","show")},o._addAttachmentClass=function(t){this.getTipElement().classList.add("bs-popover-"+this.updateAttachment(t))},o._getContent=function(){return this._element.getAttribute("data-bs-content")||this.config.content},o._cleanTipClass=function(){var t=this.getTipElement(),e=t.getAttribute("class").match(je);null!==e&&e.length>0&&e.map((function(t){return t.trim()})).forEach((function(e){return t.classList.remove(e)}))},n.jQueryInterface=function(t){return this.each((function(){var e=T(this,"bs.popover"),i="object"==typeof t?t:null;if((e||!/dispose|hide/.test(t))&&(e||(e=new n(this,i),E(this,"bs.popover",e)),"string"==typeof t)){if(void 0===e[t])throw new TypeError('No method named "'+t+'"');e[t]()}}))},e(n,null,[{key:"Default",get:function(){return Ne}},{key:"NAME",get:function(){return"popover"}},{key:"DATA_KEY",get:function(){return"bs.popover"}},{key:"Event",get:function(){return Ie}},{key:"EVENT_KEY",get:function(){return".bs.popover"}},{key:"DefaultType",get:function(){return Pe}}]),n}(Se);y("popover",Me);var Be={offset:10,method:"auto",target:""},He={offset:"number",method:"string",target:"(string|element)"},Re=function(t){function o(e,n){var i;return(i=t.call(this,e)||this)._scrollElement="BODY"===e.tagName?window:e,i._config=i._getConfig(n),i._selector=i._config.target+" .nav-link, "+i._config.target+" .list-group-item, "+i._config.target+" .dropdown-item",i._offsets=[],i._targets=[],i._activeTarget=null,i._scrollHeight=0,B.on(i._scrollElement,"scroll.bs.scrollspy",(function(){return i._process()})),i.refresh(),i._process(),i}i(o,t);var r=o.prototype;return r.refresh=function(){var t=this,e=this._scrollElement===this._scrollElement.window?"offset":"position",n="auto"===this._config.method?e:this._config.method,i="position"===n?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),F(this._selector).map((function(t){var e=l(t),o=e?Y(e):null;if(o){var r=o.getBoundingClientRect();if(r.width||r.height)return[z[n](o).top+i,e]}return null})).filter((function(t){return t})).sort((function(t,e){return t[0]-e[0]})).forEach((function(e){t._offsets.push(e[0]),t._targets.push(e[1])}))},r.dispose=function(){t.prototype.dispose.call(this),B.off(this._scrollElement,".bs.scrollspy"),this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},r._getConfig=function(t){if("string"!=typeof(t=n({},Be,"object"==typeof t&&t?t:{})).target&&d(t.target)){var e=t.target.id;e||(e=s("scrollspy"),t.target.id=e),t.target="#"+e}return p("scrollspy",t,He),t},r._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},r._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},r._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},r._process=function(){var t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),n=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),t>=n){var i=this._targets[this._targets.length-1];this._activeTarget!==i&&this._activate(i)}else{if(this._activeTarget&&t0)return this._activeTarget=null,void this._clear();for(var o=this._offsets.length;o--;)this._activeTarget!==this._targets[o]&&t>=this._offsets[o]&&(void 0===this._offsets[o+1]||t li > .active":".active";e=(e=F(o,i))[e.length-1]}var r=e?B.trigger(e,"hide.bs.tab",{relatedTarget:this._element}):null;if(!(B.trigger(this._element,"show.bs.tab",{relatedTarget:e}).defaultPrevented||null!==r&&r.defaultPrevented)){this._activate(this._element,i);var s=function(){B.trigger(e,"hidden.bs.tab",{relatedTarget:t._element}),B.trigger(t._element,"shown.bs.tab",{relatedTarget:e})};n?this._activate(n,n.parentNode,s):s()}}},o._activate=function(t,e,n){var i=this,o=(!e||"UL"!==e.nodeName&&"OL"!==e.nodeName?q(e,".active"):F(":scope > li > .active",e))[0],r=n&&o&&o.classList.contains("fade"),s=function(){return i._transitionComplete(t,o,n)};if(o&&r){var a=u(o);o.classList.remove("show"),B.one(o,"transitionend",s),h(o,a)}else s()},o._transitionComplete=function(t,e,n){if(e){e.classList.remove("active");var i=Y(":scope > .dropdown-menu .active",e.parentNode);i&&i.classList.remove("active"),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!1)}t.classList.add("active"),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),v(t),t.classList.contains("fade")&&t.classList.add("show"),t.parentNode&&t.parentNode.classList.contains("dropdown-menu")&&(t.closest(".dropdown")&&F(".dropdown-toggle").forEach((function(t){return t.classList.add("active")})),t.setAttribute("aria-expanded",!0)),n&&n()},n.jQueryInterface=function(t){return this.each((function(){var e=T(this,"bs.tab")||new n(this);if("string"==typeof t){if(void 0===e[t])throw new TypeError('No method named "'+t+'"');e[t]()}}))},e(n,null,[{key:"DATA_KEY",get:function(){return"bs.tab"}}]),n}(H);B.on(document,"click.bs.tab.data-api",'[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',(function(t){t.preventDefault(),(T(this,"bs.tab")||new We(this)).show()})),y("tab",We);var Ke={animation:"boolean",autohide:"boolean",delay:"number"},Ue={animation:!0,autohide:!0,delay:5e3},ze=function(t){function o(e,n){var i;return(i=t.call(this,e)||this)._config=i._getConfig(n),i._timeout=null,i._setListeners(),i}i(o,t);var r=o.prototype;return r.show=function(){var t=this;if(!B.trigger(this._element,"show.bs.toast").defaultPrevented){this._clearTimeout(),this._config.animation&&this._element.classList.add("fade");var e=function(){t._element.classList.remove("showing"),t._element.classList.add("show"),B.trigger(t._element,"shown.bs.toast"),t._config.autohide&&(t._timeout=setTimeout((function(){t.hide()}),t._config.delay))};if(this._element.classList.remove("hide"),v(this._element),this._element.classList.add("showing"),this._config.animation){var n=u(this._element);B.one(this._element,"transitionend",e),h(this._element,n)}else e()}},r.hide=function(){var t=this;if(this._element.classList.contains("show")&&!B.trigger(this._element,"hide.bs.toast").defaultPrevented){var e=function(){t._element.classList.add("hide"),B.trigger(t._element,"hidden.bs.toast")};if(this._element.classList.remove("show"),this._config.animation){var n=u(this._element);B.one(this._element,"transitionend",e),h(this._element,n)}else e()}},r.dispose=function(){this._clearTimeout(),this._element.classList.contains("show")&&this._element.classList.remove("show"),B.off(this._element,"click.dismiss.bs.toast"),t.prototype.dispose.call(this),this._config=null},r._getConfig=function(t){return t=n({},Ue,z.getDataAttributes(this._element),"object"==typeof t&&t?t:{}),p("toast",t,this.constructor.DefaultType),t},r._setListeners=function(){var t=this;B.on(this._element,"click.dismiss.bs.toast",'[data-bs-dismiss="toast"]',(function(){return t.hide()}))},r._clearTimeout=function(){clearTimeout(this._timeout),this._timeout=null},o.jQueryInterface=function(t){return this.each((function(){var e=T(this,"bs.toast");if(e||(e=new o(this,"object"==typeof t&&t)),"string"==typeof t){if(void 0===e[t])throw new TypeError('No method named "'+t+'"');e[t](this)}}))},e(o,null,[{key:"DefaultType",get:function(){return Ke}},{key:"Default",get:function(){return Ue}},{key:"DATA_KEY",get:function(){return"bs.toast"}}]),o}(H);return y("toast",ze),{Alert:R,Button:W,Carousel:$,Collapse:J,Dropdown:ve,Modal:ye,Popover:Me,ScrollSpy:Re,Tab:We,Toast:ze,Tooltip:Se}})); +; + +/** + * Minified by jsDelivr using Terser v3.14.1. + * Original file: /npm/ie11-custom-properties@4.1.0/ie11CustomProperties.js + * + * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files + */ +!function(){"use strict";var e=document.createElement("i");if(e.style.setProperty("--x","y"),"y"!==e.style.getPropertyValue("--x")&&e.msMatchesSelector){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector);var t,r=[],n=document,o=!1;document.addEventListener("DOMContentLoaded",function(){o=!0}),"classList"in Element.prototype||H("classList",HTMLElement.prototype,Element.prototype),"innerHTML"in Element.prototype||H("innerHTML",HTMLElement.prototype,Element.prototype),"runtimeStyle"in Element.prototype||H("runtimeStyle",HTMLElement.prototype,Element.prototype),"sheet"in SVGStyleElement.prototype||Object.defineProperty(SVGStyleElement.prototype,"sheet",{get:function(){for(var e,t=document.styleSheets,r=0;e=t[r++];)if(e.ownerNode===this)return e}});var i={},s=new Set,c=!1,l=!1,a=/([\s{;])(--([A-Za-z0-9-_]*)\s*:([^;!}{]+)(!important)?)(?=\s*([;}]|$))/g,u=/([{;]\s*)([A-Za-z0-9-_]+\s*:[^;}{]*var\([^!;}{]+)(!important)?(?=\s*([;}$]|$))/g,f=/-ieVar-([^:]+):/g,p=/-ie-([^};]+)/g,d=/:(hover|active|focus|target|visited|link|:before|:after|:first-letter|:first-line)/;M("style",q),M('link[rel="stylesheet"]',q),M("[ie-style]",function(e){var t=B("{"+e.getAttribute("ie-style")).substr(1);e.style.cssText+=";"+t;var r=R(e.style);r.getters&&N(e,r.getters,"%styleAttr"),r.setters&&G(e,r.setters)});var m={hover:{on:"mouseenter",off:"mouseleave"},focus:{on:"focusin",off:"focusout"},active:{on:"CSSActivate",off:"CSSDeactivate"}},y=null;document.addEventListener("mousedown",function(e){setTimeout(function(){if(e.target===document.activeElement){var t=document.createEvent("Event");t.initEvent("CSSActivate",!0,!0),(y=e.target).dispatchEvent(t)}})}),document.addEventListener("mouseup",function(){if(y){var e=document.createEvent("Event");e.initEvent("CSSDeactivate",!0,!0),y.dispatchEvent(e),y=null}});var v=0,h=new MutationObserver(function(e){if(!l)for(var t,r=0;t=e[r++];)"iecp-needed"!==t.attributeName&&J(t.target)});setTimeout(function(){h.observe(document,{attributes:!0,subtree:!0})});var S=location.hash;addEventListener("hashchange",function(e){var t=document.getElementById(location.hash.substr(1));if(t){var r=document.getElementById(S.substr(1));J(t),J(r)}else J(document);S=location.hash});var E=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"style"),P=E.get;E.get=function(){const e=P.call(this);return e.owningElement=this,e},Object.defineProperty(HTMLElement.prototype,"style",E);var C=getComputedStyle;window.getComputedStyle=function(e){var t=C.apply(this,arguments);return t.computedFor=e,t};var g=CSSStyleDeclaration.prototype,b=g.getPropertyValue;g.getPropertyValue=function(e){if(this.lastPropertyServedBy=!1,"-"!==(e=e.trim())[0]||"-"!==e[1])return b.apply(this,arguments);const t=e.substr(2),r="-ie-"+t,n="-ie-❗"+t;let o=D(this[n]||this[r]);if(this.computedFor){if(void 0===o||T[o]){if(T[o]||!_[e]||_[e].inherits){let t=this.computedFor.parentNode;for(;1===t.nodeType;){if(t.ieCP_setters&&t.ieCP_setters[e]){var i=getComputedStyle(t),s=D(i[n]||i[r]);if(void 0!==s){o=Q(this,s),this.lastPropertyServedBy=t;break}}t=t.parentNode}}}else o=Q(this,o),this.lastPropertyServedBy=this.computedFor;if("initial"===o)return""}return void 0===o&&_[e]&&(o=_[e].initialValue),void 0===o?"":o};var T={inherit:1,revert:1,unset:1},L=g.setProperty;g.setProperty=function(e,t,r){if("-"!==e[0]||"-"!==e[1])return L.apply(this,arguments);const n=this.owningElement;n&&(n.ieCP_setters||(n.ieCP_setters={}),n.ieCP_setters[e]=1),e="-ie-"+("important"===r?"❗":"")+e.substr(2),this.cssText+="; "+e+":"+k(t)+";",n&&J(n)},window.CSS||(window.CSS={});var _={};CSS.registerProperty=function(e){_[e.name]=e}}function w(e,t){try{return e.querySelectorAll(t)}catch(e){return[]}}function M(e,o){for(var i,s={selector:e,callback:o,elements:new WeakMap},c=w(n,s.selector),l=0;i=c[l++];)s.elements.set(i,!0),s.callback.call(i,i);r.push(s),t||(t=new MutationObserver(O)).observe(n,{childList:!0,subtree:!0}),A(s)}function A(e,t){var r,i=0,s=[];try{t&&t.matches(e.selector)&&s.push(t)}catch(e){}for(o&&Array.prototype.push.apply(s,w(t||n,e.selector));r=s[i++];)e.elements.has(r)||(e.elements.set(r,!0),e.callback.call(r,r))}function V(e){for(var t,n=0;t=r[n++];)A(t,e)}function O(e){for(var t,r,n,o,i=0;r=e[i++];)for(n=r.addedNodes,t=0;o=n[t++];)1===o.nodeType&&V(o)}function H(e,t,r){var n=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(r,e,n)}function q(e){if(!e.ieCP_polyfilled&&!e.ieCP_elementSheet&&e.sheet){if(e.href)return t=e.href,r=function(t){var r=B(t);t!==r&&j(e,r)},(n=new XMLHttpRequest).open("GET",t),n.overrideMimeType("text/css"),n.onload=function(){n.status>=200&&n.status<400&&r(n.responseText)},void n.send();var t,r,n,o=e.innerHTML,i=B(o);o!==i&&j(e,i)}}function B(e){return e.replace(a,function(e,t,r,n,o,i){return t+"-ie-"+(i?"❗":"")+n+":"+k(o)}).replace(u,function(e,t,r,n){return t+"-ieVar-"+(n?"❗":"")+r+"; "+r})}function k(e){return e}function D(e){return e}function R(e){e["z-index"]===e&&x();const t=e.cssText;var r,n,o=t.match(f);if(o){var s=[];for(r=0;n=o[r++];){let t=n.slice(7,-1);"❗"===t[0]&&(t=t.substr(1)),s.push(t),i[t]||(i[t]=[]),i[t].push(e)}}var c=t.match(p);if(c){var l={};for(r=0;n=c[r++];){let e=n.substr(4).split(":"),t=e[0],r=e[1];"❗"===t[0]&&(t=t.substr(1)),l[t]=r}}return{getters:s,setters:l}}function j(e,t){e.sheet.cssText=t,e.ieCP_polyfilled=!0;for(var r,n=e.sheet.rules,o=0;r=n[o++];){const e=R(r.style);e.getters&&F(r.selectorText,e.getters),e.setters&&z(r.selectorText,e.setters);const t=r.parentRule&&r.parentRule.media&&r.parentRule.media.mediaText;t&&(e.getters||e.setters)&&matchMedia(t).addListener(function(){J(document.documentElement)})}$()}function F(e,t){I(e),M(Z(e),function(r){N(r,t,e),W(r)})}function N(e,t,r){var n,o,i=0;const s=r.split(",");for(e.setAttribute("iecp-needed",!0),e.ieCPSelectors||(e.ieCPSelectors={});n=t[i++];)for(o=0;r=s[o++];){const t=r.trim().split("::");e.ieCPSelectors[n]||(e.ieCPSelectors[n]=[]),e.ieCPSelectors[n].push({selector:t[0],pseudo:t[1]?"::"+t[1]:""})}}function z(e,t){I(e),M(Z(e),function(e){G(e,t)})}function G(e,t){for(var r in e.ieCP_setters||(e.ieCP_setters={}),t)e.ieCP_setters["--"+r]=1;J(e)}function $(){for(var e in i){let o=i[e];for(var t,r=0;t=o[r++];)if(!t.owningElement){var n=t["-ieVar-"+e];if(n&&""!==(n=Q(getComputedStyle(document.documentElement),n)))try{t[e]=n}catch(e){}}}}function I(e){for(var t in e=e.split(",")[0],m){var r=e.split(":"+t);if(r.length>1){var n=r[1].match(/^[^\s]*/);let e=Z(r[0]+n);const o=m[t];M(e,function(e){e.addEventListener(o.on,K),e.addEventListener(o.off,K)})}}}function Z(e){return e.replace(d,"").replace(":not()","")}function W(e){s.add(e),c||(c=!0,requestAnimationFrame(function(){c=!1,l=!0,s.forEach(X),s.clear(),setTimeout(function(){l=!1})}))}function X(e){e.ieCP_unique||(e.ieCP_unique=++v,e.classList.add("iecp-u"+e.ieCP_unique));var t=getComputedStyle(e);let r="";for(var n in e.runtimeStyle.cssText="",e.ieCPSelectors){var o=t["-ieVar-❗"+n];let a=o||t["-ieVar-"+n];if(a){var i={},s=Q(t,a,i);o&&(s+=" !important");for(var c,l=0;c=e.ieCPSelectors[n][l++];)"%styleAttr"===c.selector&&(e.style[n]=s),(o||!1===i.allByRoot)&&(c.pseudo?r+=c.selector+".iecp-u"+e.ieCP_unique+c.pseudo+"{"+n+":"+s+"}\n":e.runtimeStyle[n]=s)}}!function(e,t){if(!e.ieCP_styleEl&&t){const t=document.createElement("style");t.ieCP_elementSheet=1,document.head.appendChild(t),e.ieCP_styleEl=t}e.ieCP_styleEl&&(e.ieCP_styleEl.innerHTML=t)}(e,r)}function J(e){if(e){e===document.documentElement&&$();var t=e.querySelectorAll("[iecp-needed]");e.hasAttribute&&e.hasAttribute("iecp-needed")&&W(e);for(var r,n=0;r=t[n++];)W(r)}}function K(e){J(e.target)}function Q(e,t,r){return function(e,t){let r,n,o=0,i=null,s=0,c="",l=0;for(;r=e[l++];){if("("===r&&(++o,null===i&&e[l-4]+e[l-3]+e[l-2]==="var"&&(i=o,c+=e.substring(s,l-4),s=l),e[l-5]+e[l-4]+e[l-3]+e[l-2]==="calc"&&(n=o)),")"===r&&i===o){let r,o=e.substring(s,l-1).trim(),a=o.indexOf(",");-1!==a&&(r=o.slice(a+1),o=o.slice(0,a)),c+=t(o,r,n),s=l,i=null}")"===r&&n===--o&&(n=null)}return c+=e.substring(s)}(t,function(t,n,o){var i=e.getPropertyValue(t);return o&&(i=i.replace(/^calc\(/,"(")),r&&e.lastPropertyServedBy!==document.documentElement&&(r.allByRoot=!1),""===i&&n&&(i=Q(e,n,r)),i})}}(); +; + +/** + * Minified by jsDelivr using Terser v3.14.1. + * Original file: /npm/element-qsa-scope@1.1.0/index.js + * + * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files + */ +try{document.querySelector(":scope *")}catch(t){!function(t){var e=/:scope(?![\w-])/gi,r=u(t.querySelector);t.querySelector=function(t){return r.apply(this,arguments)};var c=u(t.querySelectorAll);if(t.querySelectorAll=function(t){return c.apply(this,arguments)},t.matches){var n=u(t.matches);t.matches=function(t){return n.apply(this,arguments)}}if(t.closest){var o=u(t.closest);t.closest=function(t){return o.apply(this,arguments)}}function u(t){return function(r){if(r&&e.test(r)){var c="q"+Math.floor(9e6*Math.random())+1e6;arguments[0]=r.replace(e,"["+c+"]"),this.setAttribute(c,"");var n=t.apply(this,arguments);return this.removeAttribute(c),n}return t.apply(this,arguments)}}}(Element.prototype)} +//# sourceMappingURL=/sm/63ee89205475c7c8b0f0300b3aa48714f3faf7177523d32a7afb81f61ba998c2.map \ No newline at end of file diff --git a/resources/js/libraries/bootstrap-ie11/polyfill-ie11.min.js b/resources/js/libraries/bootstrap-ie11/polyfill-ie11.min.js new file mode 100644 index 000000000..ec1c2859d --- /dev/null +++ b/resources/js/libraries/bootstrap-ie11/polyfill-ie11.min.js @@ -0,0 +1,91 @@ +/** + * Taken from: https://polyfill.io/v3/polyfill.js?features=default%2CNumber.parseInt%2CNumber.parseFloat%2CArray.prototype.find%2CArray.prototype.includes + * + * See: https://github.com/coliff/bootstrap-ie11 + */ + +/* Polyfill service v3.108.0 + * For detailed credits and licence information see https://github.com/financial-times/polyfill-service. + * + * Features requested: Array.prototype.find,Array.prototype.includes,Number.parseFloat,Number.parseInt,default + * + * - _DOMTokenList, License: ISC (required by "DOMTokenList", "default") + * - _ESAbstract.ArrayCreate, License: CC0 (required by "Array.of", "default") + * - _ESAbstract.Call, License: CC0 (required by "Array.prototype.includes", "_ESAbstract.ToString", "_ESAbstract.ToPrimitive", "_ESAbstract.OrdinaryToPrimitive") + * - _ESAbstract.CreateDataProperty, License: CC0 (required by "Array.from", "Set", "_ESAbstract.CreateIterResultObject", "default") + * - _ESAbstract.CreateDataPropertyOrThrow, License: CC0 (required by "Array.of", "default") + * - _ESAbstract.CreateMethodProperty, License: CC0 (required by "Array.from", "Map", "Object.isExtensible", "default") + * - _ESAbstract.Get, License: CC0 (required by "Array.of", "_ESAbstract.Construct", "_ESAbstract.OrdinaryCreateFromConstructor", "_ESAbstract.GetPrototypeFromConstructor", "default") + * - _ESAbstract.HasOwnProperty, License: CC0 (required by "Object.assign", "Object.getOwnPropertyDescriptor", "default") + * - _ESAbstract.IsCallable, License: CC0 (required by "Array.prototype.includes", "_ESAbstract.ToString", "_ESAbstract.ToPrimitive", "_ESAbstract.OrdinaryToPrimitive") + * - _ESAbstract.RequireObjectCoercible, License: CC0 (required by "String.prototype.trim", "_ESAbstract.TrimString", "default") + * - _ESAbstract.SameValueNonNumber, License: CC0 (required by "Array.prototype.includes", "_ESAbstract.SameValueZero") + * - _ESAbstract.ToBoolean, License: CC0 (required by "String.prototype.startsWith", "_ESAbstract.IsRegExp", "default") + * - _ESAbstract.ToObject, License: CC0 (required by "Array.from", "Set", "_ESAbstract.GetIterator", "_ESAbstract.GetV", "default") + * - _ESAbstract.GetV, License: CC0 (required by "Array.from", "Set", "_ESAbstract.GetIterator", "default") + * - _ESAbstract.GetMethod, License: CC0 (required by "Array.from", "Set", "_ESAbstract.IteratorClose", "default") + * - _ESAbstract.Type, License: CC0 (required by "Array.of", "_ESAbstract.Construct", "_ESAbstract.OrdinaryCreateFromConstructor", "_ESAbstract.GetPrototypeFromConstructor", "default") + * - _ESAbstract.CreateIterResultObject, License: CC0 (required by "Array.from", "Set", "default") + * - _ESAbstract.GetPrototypeFromConstructor, License: CC0 (required by "Array.of", "_ESAbstract.Construct", "_ESAbstract.OrdinaryCreateFromConstructor", "default") + * - _ESAbstract.OrdinaryCreateFromConstructor, License: CC0 (required by "Array.of", "_ESAbstract.Construct", "default") + * - _ESAbstract.IsConstructor, License: CC0 (required by "Array.of", "_ESAbstract.Construct", "default") + * - _ESAbstract.Construct, License: CC0 (required by "Array.of", "default") + * - _ESAbstract.IsRegExp, License: CC0 (required by "String.prototype.startsWith", "default") + * - _ESAbstract.IteratorClose, License: CC0 (required by "Array.from", "Set", "default") + * - _ESAbstract.IteratorComplete, License: CC0 (required by "Array.from", "Set", "_ESAbstract.IteratorStep", "default") + * - _ESAbstract.IteratorNext, License: CC0 (required by "Array.from", "Set", "_ESAbstract.IteratorStep", "default") + * - _ESAbstract.IteratorStep, License: CC0 (required by "Array.from", "Set", "default") + * - _ESAbstract.IteratorValue, License: CC0 (required by "Array.from", "Set", "default") + * - _ESAbstract.OrdinaryToPrimitive, License: CC0 (required by "Array.prototype.includes", "_ESAbstract.ToString", "_ESAbstract.ToPrimitive") + * - _ESAbstract.SameValueZero, License: CC0 (required by "Array.from", "Set", "default") + * - _ESAbstract.ToInteger, License: CC0 (required by "String.prototype.startsWith", "default") + * - _ESAbstract.ToLength, License: CC0 (required by "Array.prototype.fill", "default") + * - _ESAbstract.ToPrimitive, License: CC0 (required by "Object.assign", "Object.getOwnPropertyDescriptor", "_ESAbstract.ToPropertyKey", "default") + * - _ESAbstract.ToString, License: CC0 (required by "Object.assign", "Object.getOwnPropertyDescriptor", "_ESAbstract.ToPropertyKey", "default") + * - _ESAbstract.ToPropertyKey, License: CC0 (required by "Object.assign", "Object.getOwnPropertyDescriptor", "default") + * - _ESAbstract.TrimString, License: CC0 (required by "String.prototype.trim", "default") + * - _mutation, License: CC0 (required by "Element.prototype.replaceWith", "default") + * - Array.of, License: CC0 (required by "default") + * - Array.prototype.fill, License: CC0 (required by "default") + * - Array.prototype.find, License: CC0 + * - Array.prototype.includes, License: MIT (required by "Object.getOwnPropertyNames", "default") + * - DocumentFragment, License: CC0 (required by "DocumentFragment.prototype.prepend", "default") + * - DocumentFragment.prototype.append, License: CC0 (required by "default") + * - DocumentFragment.prototype.prepend, License: CC0 (required by "default") + * - DOMTokenList, License: CC0 (required by "Element.prototype.classList", "default") + * - Element.prototype.after, License: CC0 (required by "default") + * - Element.prototype.append, License: CC0 (required by "default") + * - Element.prototype.before, License: CC0 (required by "default") + * - Element.prototype.classList, License: ISC (required by "default") + * - Element.prototype.matches, License: CC0 (required by "Element.prototype.closest", "default") + * - Element.prototype.closest, License: CC0 (required by "default") + * - Element.prototype.prepend, License: CC0 (required by "default") + * - Element.prototype.remove, License: CC0 (required by "default") + * - Element.prototype.replaceWith, License: CC0 (required by "default") + * - Event, License: CC0 (required by "CustomEvent", "default") + * - CustomEvent, License: CC0 (required by "default") + * - Node.prototype.contains, License: CC0 (required by "default") + * - Number.isNaN, License: MIT (required by "default") + * - Object.getOwnPropertyDescriptor, License: CC0 (required by "URL", "Symbol.iterator", "Symbol", "default") + * - Object.isExtensible, License: CC0 (required by "Array.from", "Map", "default") + * - Object.keys, License: MIT (required by "URL", "Symbol.iterator", "Symbol", "default") + * - Object.assign, License: CC0 (required by "default") + * - Object.getOwnPropertyNames, License: CC0 (required by "URL", "Symbol.iterator", "Symbol", "default") + * - String.prototype.endsWith, License: CC0 (required by "default") + * - String.prototype.includes, License: CC0 (required by "default") + * - String.prototype.startsWith, License: CC0 (required by "default") + * - String.prototype.trim, License: CC0 (required by "default") + * - Number.parseFloat, License: MIT + * - Number.parseInt, License: MIT + * - Symbol, License: MIT (required by "Promise", "Symbol.toStringTag", "default") + * - Symbol.iterator, License: MIT (required by "Array.from", "Set", "_ESAbstract.GetIterator", "default") + * - _ESAbstract.GetIterator, License: CC0 (required by "Array.from", "Set", "default") + * - Symbol.species, License: MIT (required by "Array.from", "Set", "default") + * - Map, License: CC0 (required by "Array.from", "default") + * - Set, License: CC0 (required by "Array.from", "default") + * - Array.from, License: CC0 (required by "URL", "default") + * - Symbol.toStringTag, License: MIT (required by "Promise", "default") + * - Promise, License: MIT (required by "default") + * - URL, License: CC0-1.0 (required by "default") */ + +!function(e,t){var r=function(){var e=!0,r=function(t,r,n,o){Object.defineProperty?Object.defineProperty(t,r,{configurable:!1===e||!!o,get:n}):t.__defineGetter__(r,n)};try{r({},"support")}catch(t){e=!1}return function(e,n){var o=this,i=[],a={},c=0,l=0,u=function(e){r(o,e,function(){return s(),i[e]},!1)},p=function(){if(c>=l)for(;l>>0,"object"==typeof e[n]?e[n].baseVal=i.join(" "):e[n]=i.join(" "),p())},o.remove=function(){s.apply(o,t=arguments);for(var t,r={},l=0,u=[];l>>0,"object"==typeof e[n]?e[n].baseVal=i.join(" "):e[n]=i.join(" "),p()},o.toggle=function(e,r){return s.apply(o,[e]),t!==r?r?(o.add(e),!0):(o.remove(e),!1):a[e]?(o.remove(e),!1):(o.add(e),!0)},o.forEach=Array.prototype.forEach,o}}();function n(e){if(1/e==-1/0&&(e=0),e>Math.pow(2,32)-1)throw new RangeError("Invalid array length");var t=[];return t.length=e,t}function o(e,t){var r=arguments.length>2?arguments[2]:[];if(!1===u(e))throw new TypeError(Object.prototype.toString.call(e)+"is not a function.");return e.apply(t,r)}function i(e,t,r){var n={value:r,writable:!0,enumerable:!0,configurable:!0};try{return Object.defineProperty(e,t,n),!0}catch(e){return!1}}function a(e,t,r){var n=i(e,t,r);if(!n)throw new TypeError("Cannot assign value `"+Object.prototype.toString.call(r)+"` to property `"+Object.prototype.toString.call(t)+"` on object `"+Object.prototype.toString.call(e)+"`");return n}function c(e,t,r){var n={value:r,writable:!0,enumerable:!1,configurable:!0};Object.defineProperty(e,t,n)}function l(e,t){return e[t]}function u(e){return"function"==typeof e}function p(e){if(null===e||e===t)throw TypeError(Object.prototype.toString.call(e)+" is not coercible to Object.");return e}function s(e){return Boolean(e)}function f(e){if(null===e||e===t)throw TypeError();return Object(e)}function h(e,t){return f(e)[t]}function b(e,r){var n=h(e,r);if(null===n||n===t)return t;if(!1===u(n))throw new TypeError("Method not callable: "+r);return n}function y(t){switch(typeof t){case"undefined":return"undefined";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";default:return null===t?"null":"Symbol"in e&&(t instanceof e.Symbol||t.constructor===e.Symbol)?"symbol":"object"}}function v(e,t){if("boolean"!==y(t))throw new Error;var r={};return i(r,"value",e),i(r,"done",t),r}function m(e,t){var r=arguments[2]||{},n=function(e,t){var r=l(e,"prototype");return"object"!==y(r)&&(r=t),r}(e,t),o=Object.create(n);for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&Object.defineProperty(o,i,{configurable:!0,enumerable:!1,writable:!0,value:r[i]});return o}function d(e){return"object"===y(e)&&("function"==typeof e&&!!e.prototype)}function g(e){var t=arguments.length>2?arguments[2]:e,r=arguments.length>1?arguments[1]:[];if(!d(e))throw new TypeError("F must be a constructor.");if(!d(t))throw new TypeError("newTarget must be a constructor.");return t===e?new(Function.prototype.bind.apply(e,[null].concat(r))):o(e,m(t,Object.prototype),r)}function w(r){if("object"!==y(r))return!1;var n="Symbol"in e&&"match"in e.Symbol?l(r,e.Symbol.match):t;if(n!==t)return s(n);try{var o=r.lastIndex;return r.lastIndex=0,RegExp.prototype.exec.call(r),!0}catch(e){}finally{r.lastIndex=o}return!1}function j(e,r){if("object"!==y(e["[[Iterator]]"]))throw new Error(Object.prototype.toString.call(e["[[Iterator]]"])+"is not an Object.");var n=e["[[Iterator]]"],i=b(n,"return");if(i===t)return r;try{var a=o(i,n)}catch(e){var c=e}if(r)return r;if(c)throw c;if("object"!==y(a))throw new TypeError("Iterator's return method returned a non-object.");return r}function E(e){var t=function(e){if(arguments.length<2)var t=o(e["[[NextMethod]]"],e["[[Iterator]]"]);else t=o(e["[[NextMethod]]"],e["[[Iterator]]"],[arguments[1]]);if("object"!==y(t))throw new TypeError("bad iterator");return t}(e);return!0!==function(e){if("object"!==y(e))throw new Error(Object.prototype.toString.call(e)+"is not an Object.");return s(l(e,"done"))}(t)&&t}function _(e){if("object"!==y(e))throw new Error(Object.prototype.toString.call(e)+"is not an Object.");return l(e,"value")}function S(e,t){return y(e)===y(t)&&("number"===y(e)?!(!isNaN(e)||!isNaN(t))||(1/e==1/0&&1/t==-1/0||(1/e==-1/0&&1/t==1/0||e===t)):function(e,t){return e===t}(e,t))}function O(e){if("symbol"===y(e))throw new TypeError("Cannot convert a Symbol value to a number");var t=Number(e);return isNaN(t)?0:1/t==1/0||1/t==-1/0||t===1/0||t===-1/0?t:(t<0?-1:1)*Math.floor(Math.abs(t))}function T(e){var t=O(e);return t<=0?0:Math.min(t,Math.pow(2,53)-1)}function M(r){var n=arguments.length>1?arguments[1]:t;if("object"===y(r)){if(arguments.length<2)var i="default";else n===String?i="string":n===Number&&(i="number");var a="function"==typeof e.Symbol&&"symbol"==typeof e.Symbol.toPrimitive?b(r,e.Symbol.toPrimitive):t;if(a!==t){var c=o(a,r,[i]);if("object"!==y(c))return c;throw new TypeError("Cannot convert exotic object to primitive.")}return"default"===i&&(i="number"),function(e,t){if("string"===t)var r=["toString","valueOf"];else r=["valueOf","toString"];for(var n=0;n=1&&e.nodeType<=12}return function(t){if(1===t.length)return e(t[0])?t[0]:document.createTextNode(t[0]+"");for(var r=document.createDocumentFragment(),n=0;n1?arguments[1]:b(e,Symbol.iterator),e);if("object"!==y(t))throw new TypeError("bad iterator");var r=h(t,"next"),n=Object.create(null);return n["[[Iterator]]"]=t,n["[[NextMethod]]"]=r,n["[[Done]]"]=!1,n}c(Array,"of",function(){var e=arguments.length,t=arguments;if(d(this))var r=g(this,[e]);else r=n(e);for(var o=0;o1?arguments[1]:t,a=0;a=0)var o=n;else(o=r+n)<0&&(o=0);for(;o=0&&"[object Function]"===r.call(u.callee)),f),y="[object String]"===r.call(n),v=[];if(n===t||null===n)throw new TypeError("Cannot convert undefined or null to object");var m=i&&h;if(y&&n.length>0&&!e.call(n,0))for(var d=0;d0)for(var g=0;g1?arguments[1]:t,n=x(p(this));if(w(e))throw new TypeError("First argument to String.prototype.endsWith must not be a regular expression");var o=x(e),i=n.length,a=r===t?i:O(r),c=Math.min(Math.max(a,0),i),l=o.length,u=c-l;return!(u<0)&&n.substr(u,l)===o}),c(String.prototype,"includes",function(e){"use strict";var r=arguments.length>1?arguments[1]:t,n=x(p(this));if(w(e))throw new TypeError("First argument to String.prototype.includes must not be a regular expression");var o=x(e),i=O(r),a=n.length,c=Math.min(Math.max(i,0),a);return-1!==String.prototype.indexOf.call(n,o,c)}),c(String.prototype,"startsWith",function(e){"use strict";var r=arguments.length>1?arguments[1]:t,n=x(p(this));if(w(e))throw new TypeError("First argument to String.prototype.startsWith must not be a regular expression");var o=x(e),i=O(r),a=n.length,c=Math.min(Math.max(i,0),a);return!(o.length+c>a)&&0===n.substr(c).indexOf(e)}),c(String.prototype,"trim",function(){"use strict";return function(e,t){var r=x(p(e)),n=/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/.source;if("start"===t)var o=String.prototype.replace.call(r,new RegExp("^"+n,"g"),"");else o="end"===t?String.prototype.replace.call(r,new RegExp(n+"$","g"),""):String.prototype.replace.call(r,new RegExp("^"+n+"|"+n+"$","g"),"");return o}(this,"start+end")}),function(e,t){var r=function(t){var r=String(t).trim(),n=e(r);return 0===n&&"-"==r.charAt(0)?-0:n};try{c(t,"parseFloat",r)}catch(e){t.parseFloat=r}c(Number,"parseFloat",t.parseFloat)}(parseFloat,this),function(e,t){var r=function(t,r){var n=String(t).trim();return e(n,r>>>0||(/^[-+]?0[xX]/.test(n)?16:10))};try{c(t,"parseInt",r)}catch(e){t.parseInt=r}c(Number,"parseInt",t.parseInt)}(parseInt,this),function(r,n,o){"use strict";var i,a=function(){try{var e={};return r.defineProperty(e,"t",{configurable:!0,enumerable:!1,get:function(){return!0},set:t}),!!e.t}catch(e){return!1}}(),c=0,l=""+Math.random(),u="__symbol:",p=u.length,s="__symbol@@"+l,f={},h="defineProperty",b="defineProperties",v="getOwnPropertyNames",m="getOwnPropertyDescriptor",d="propertyIsEnumerable",g=r.prototype,w=g.hasOwnProperty,j=g[d],E=g.toString,_=Array.prototype.concat,S=r.getOwnPropertyNames?r.getOwnPropertyNames(e):[],O=r[v],T=function(e){if("[object Window]"===E.call(e))try{return O(e)}catch(e){return _.call([],S)}return O(e)},M=r[m],x=r.create,P=r.keys,L=r.freeze||r,N=r[h],I=r[b],k=M(r,v),D=function(e,t,r){if(!w.call(e,s))try{N(e,s,{enumerable:!1,configurable:!1,writable:!1,value:{}})}catch(t){e[s]={}}e[s]["@@"+t]=r},C=function(){},F=function(e){return e!=s&&!w.call(W,e)},A=function(e){return e!=s&&w.call(W,e)},z=function(e){var t=""+e;return A(t)?w.call(this,t)&&this[s]&&this[s]["@@"+t]:j.call(this,e)},$=function(e){var t={enumerable:!1,configurable:!0,get:C,set:function(t){i(this,e,{enumerable:!1,configurable:!0,writable:!0,value:t}),D(this,e,!0)}};try{N(g,e,t)}catch(r){g[e]=t.value}W[e]=N(r(e),"constructor",U);var n=M(B.prototype,"description");return n&&N(W[e],"description",n),L(W[e])},R=function(e){var r=function(e){if("symbol"===y(e))return e;throw TypeError(e+" is not a symbol")}(e);if(q){var n=X(r);if(""!==n)return n.slice(1,-1)}if(f[r]!==t)return f[r];var o=r.toString(),i=o.lastIndexOf("0.");return""===(o=o.slice(10,i))?t:o},B=function e(){var n=arguments[0];if(this instanceof e)throw new TypeError("Symbol is not a constructor");var o=u.concat(n||"",l,++c);n===t||null!==n&&!isNaN(n)&&""!==String(n)||(f[o]=String(n));var i=$(o);return a||r.defineProperty(i,"description",{configurable:!0,enumerable:!1,value:R(i)}),i},W=x(null),U={value:B},H=function(e){return W[e]},V=function(e,t,r){var n=""+t;return A(n)?(i(e,n,r.enumerable?function(e){var t=x(e);return t.enumerable=!1,t}(r):r),D(e,n,!!r.enumerable)):N(e,t,r),e},K=function(e){return T(e).filter(e===g?(t=e,function(e){return w.call(t,s)&&w.call(t[s],"@@"+e)}):A).map(H);var t};k.value=V,N(r,h,k),k.value=K,N(r,"getOwnPropertySymbols",k),k.value=function(e){return T(e).filter(F)},N(r,v,k),k.value=function(e,t){var r=K(t);return r.length?P(t).concat(r).forEach(function(r){z.call(t,r)&&V(e,r,t[r])}):I(e,t),e},N(r,b,k),k.value=z,N(g,d,k),k.value=B,N(o,"Symbol",k),k.value=function(e){var t=u.concat(u,e,l);return t in g?W[t]:$(t)},N(B,"for",k),k.value=function(e){if(F(e))throw new TypeError(e+" is not a symbol");return w.call(W,e)?e.slice(2*p,-l.length):void 0},N(B,"keyFor",k),k.value=function(e,t){var r=M(e,t);return r&&A(t)&&(r.enumerable=z.call(e,t)),r},N(r,m,k),k.value=function(e,t){return 1===arguments.length||void 0===t?x(e):function(e,t){var r=x(e);return T(t).forEach(function(e){z.call(t,e)&&V(r,e,t[e])}),r}(e,t)},N(r,"create",k);var G=null===function(){return this}.call(null);if(k.value=G?function(){var e=E.call(this);return"[object String]"===e&&A(this)?"[object Symbol]":e}:function(){if(this===window)return"[object Null]";var e=E.call(this);return"[object String]"===e&&A(this)?"[object Symbol]":e},N(g,"toString",k),i=function(e,t,r){var n=M(g,t);delete g[t],N(e,t,r),e!==g&&N(g,t,n)},function(){try{var e={};return r.defineProperty(e,"t",{configurable:!0,enumerable:!1,get:function(){return!0},set:t}),!!e.t}catch(e){return!1}}()){var X;try{X=Function("s","var v = s.valueOf(); return { [v]() {} }[v].name;")}catch(e){}var q=X&&"inferred"===function(){}.name?X:null;r.defineProperty(o.Symbol.prototype,"description",{configurable:!0,enumerable:!1,get:function(){return R(this)}})}}(Object,0,e),Object.defineProperty(e.Symbol,"iterator",{value:e.Symbol("iterator")}),Object.defineProperty(Symbol,"species",{value:Symbol("species")}),function(e){var r=function(){try{var e={};return Object.defineProperty(e,"t",{configurable:!0,enumerable:!1,get:function(){return!0},set:t}),!!e.t}catch(e){return!1}}(),n=0,o=Symbol("meta_"+(1e8*Math.random()+"").replace(".","")),i=function(e){if("object"==typeof e?null!==e:"function"==typeof e){if(!Object.isExtensible(e))return!1;if(!Object.prototype.hasOwnProperty.call(e,o)){var t=typeof e+"-"+ ++n;Object.defineProperty(e,o,{configurable:!1,enumerable:!1,writable:!1,value:t})}return e[o]}return""+e},a=function(e,r){var n=i(r);if(!1===n)return l(e,r);var o=e._table[n];return o!==t&&o},l=function(e,t){for(var r=0;r0?arguments[0]:t;if(null===o||o===t)return n;var i=n.set;if(!u(i))throw new TypeError("Map.prototype.set is not a function");try{for(var a=F(o);;){var c=E(a);if(!1===c)return n;var l=_(c);if("object"!==y(l))try{throw new TypeError("Iterator value "+l+" is not an entry object")}catch(e){return j(a,e)}try{var p=l[0],s=l[1];i.call(n,p,s)}catch(e){return j(a,e)}}}catch(e){if(Array.isArray(o)||"[object Arguments]"===Object.prototype.toString.call(o)||o.callee){var f,h=o.length;for(f=0;f0?arguments[0]:t;if(null===o||o===t)return n;var i=n.add;if(!u(i))throw new TypeError("Set.prototype.add is not a function");try{for(var a=F(o);;){var c=E(a);if(!1===c)return n;var l=_(c);try{i.call(n,l)}catch(e){return j(a,e)}}}catch(e){if(!Array.isArray(o)&&"[object Arguments]"!==Object.prototype.toString.call(o)&&!o.callee)throw e;var p,s=o.length;for(p=0;p1?arguments[1]:t;if(p===t)var s=!1;else{if(!1===u(p))throw new TypeError(Object.prototype.toString.call(p)+" is not a function.");var h=arguments.length>2?arguments[2]:t;if(h!==t)var y=h;else y=t;s=!0}var v,m=b(i,Symbol.iterator);if(m!==t){if(d(c))var w=g(c);else w=n(0);for(var S=F(i,m),O=0;;){if(O>=Math.pow(2,53)-1)return j(S,new TypeError("Iteration count can not be greater than or equal 9007199254740991."));var M=x(O),P=E(S);if(!1===P)return w.length=O,w;var L=_(P);if(s)try{var N=o(p,y,[L,O])}catch(e){return j(S,e)}else N=L;try{a(w,M,N)}catch(e){return j(S,e)}O+=1}}if("string"==typeof(v=i)||"object"==typeof v&&"[object String]"===e.call(v))var I=r.call(i,/[\uD800-\uDBFF][\uDC00-\uDFFF]?|[^\uD800-\uDFFF]|./g)||[];else I=f(i);var k=T(l(I,"length"));for(w=d(c)?g(c,[k]):n(k),O=0;Oe&&(n.length=e)}return function(e,t){n[o++]=e,n[o++]=t,2===o&&k.nextTick(i)}}function W(e,t){var r,n,o,i,a=0;if(!e)throw U(O);var c=e[k[m][d]];if(F(c))n=c.call(e);else{if(!F(e.next)){if(A(e,f)){for(r=e.length;a=e.length)return{done:!0,value:t};var o=e[n++];return{done:!1,value:"key"===r?o.name:"value"===r?o.value:[o.name,o.value]}}}function p(t,r){if(!(this instanceof e.URL))throw new TypeError("Failed to construct 'URL': Please use the 'new' operator.");r&&(t=function(){if(n)return new o(t,r).href;var e;try{var i;if("[object OperaMini]"===Object.prototype.toString.call(window.operamini)?((e=document.createElement("iframe")).style.display="none",document.documentElement.appendChild(e),i=e.contentWindow.document):document.implementation&&document.implementation.createHTMLDocument?i=document.implementation.createHTMLDocument(""):document.implementation&&document.implementation.createDocument?((i=document.implementation.createDocument("http://www.w3.org/1999/xhtml","html",null)).documentElement.appendChild(i.createElement("head")),i.documentElement.appendChild(i.createElement("body"))):window.ActiveXObject&&((i=new window.ActiveXObject("htmlfile")).write(""),i.close()),!i)throw Error("base not supported");var a=i.createElement("base");a.href=r,i.getElementsByTagName("head")[0].appendChild(a);var c=i.createElement("a");return c.href=t,c.href}finally{e&&e.parentNode.removeChild(e)}}());var i=function(e){if(n)return new o(e);var t=document.createElement("a");return t.href=e,t}(t||""),a=function(){if(!("defineProperties"in Object))return!1;try{var e={};return Object.defineProperties(e,{prop:{get:function(){return!0}}}),e.prop}catch(e){return!1}}()?this:document.createElement("a"),u=new l(i.search?i.search.substring(1):null);function p(){var e=i.href.replace(/#$|\?$|\?(?=#)/g,"");i.href!==e&&(i.href=e)}function s(){u._setList(i.search?c(i.search.substring(1)):[]),u._update_steps()}return u._url_object=a,Object.defineProperties(a,{href:{get:function(){return i.href},set:function(e){i.href=e,p(),s()},enumerable:!0,configurable:!0},origin:{get:function(){return"data:"===this.protocol.toLowerCase()?null:"origin"in i?i.origin:this.protocol+"//"+this.host},enumerable:!0,configurable:!0},protocol:{get:function(){return i.protocol},set:function(e){i.protocol=e},enumerable:!0,configurable:!0},username:{get:function(){return i.username},set:function(e){i.username=e},enumerable:!0,configurable:!0},password:{get:function(){return i.password},set:function(e){i.password=e},enumerable:!0,configurable:!0},host:{get:function(){var e={"http:":/:80$/,"https:":/:443$/,"ftp:":/:21$/}[i.protocol];return e?i.host.replace(e,""):i.host},set:function(e){i.host=e},enumerable:!0,configurable:!0},hostname:{get:function(){return i.hostname},set:function(e){i.hostname=e},enumerable:!0,configurable:!0},port:{get:function(){return i.port},set:function(e){i.port=e},enumerable:!0,configurable:!0},pathname:{get:function(){return"/"!==i.pathname.charAt(0)?"/"+i.pathname:i.pathname},set:function(e){i.pathname=e},enumerable:!0,configurable:!0},search:{get:function(){return i.search},set:function(e){i.search!==e&&(i.search=e,p(),s())},enumerable:!0,configurable:!0},searchParams:{get:function(){return u},enumerable:!0,configurable:!0},hash:{get:function(){return i.hash},set:function(e){i.hash=e,p()},enumerable:!0,configurable:!0},toString:{value:function(){return i.toString()},enumerable:!1,configurable:!0},valueOf:{value:function(){return i.valueOf()},enumerable:!1,configurable:!0}}),a}if(Object.defineProperties(l.prototype,{append:{value:function(e,t){this._list.push({name:e,value:t}),this._update_steps()},writable:!0,enumerable:!0,configurable:!0},delete:{value:function(e){for(var t=0;t1?arguments[1]:t;this._list.forEach(function(t){e.call(r,t.value,t.name)})},writable:!0,enumerable:!0,configurable:!0},toString:{value:function(){return a(this._list)},writable:!0,enumerable:!1,configurable:!0},sort:{value:function(){for(var e=this.entries(),t=e.next(),r=[],n={};!t.done;){var o=t.value,i=o[0];r.push(i),Object.prototype.hasOwnProperty.call(n,i)||(n[i]=[]),n[i].push(o[1]),t=e.next()}r.sort();for(var a=0;a