PageSourceSearch

https://www.service-public.gouv.fr/resources/v-d470c8fd81/assets/js/common.js

js service-public.gouv.fr collected 2026-09-24 07:38:46 UTC 234,177 bytes, 3,725 lines download raw bytes

vendor: 5,027 bytes, lines 1-2
1/*! jQuery v3.7.0 | (c) OpenJS Foundation and other contributors | jquery.org/license */
2!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(ie,e){"use strict";var oe=[],r=Object.getPrototypeOf,ae=oe.slice,g=oe.flat?function(e){return oe.flat.call(e)}:function(e){return oe.concat.apply([],e)},s=oe.push,se=oe.indexOf,n={},i=n.toString,ue=n.hasOwnProperty,o=ue.toString,a=o.call(Object),le={},v=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},y=function(e){return null!=e&&e===e.window},C=ie.document,u={type:!0,src:!0,nonce:!0,noModule:!0};function m(e,t,n){var r,i,o=(n=n||C).createElement("script");if(o.text=e,t)for(r in u)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function x(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[i.call(e)]||"object":typeof e}var t="3.7.0",l=/HTML$/i,ce=function(e,t){return new ce.fn.init(e,t)};function c(e){var t=!!e&&"length"in e&&e.length,n=x(e);return!v(e)&&!y(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}function fe(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}ce.fn=ce.prototype={jquery:t,constructor:ce,length:0,toArray:function(){return ae.call(this)},get:function(e){return null==e?ae.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=ce.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return ce.each(this,e)},map:function(n){return this.pushStack(ce.map(this,function(e,t){return n.call(e,t,e)}))},slice:function(){return this.pushStack(ae.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(ce.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(ce.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(0<=n&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:s,sort:oe.sort,splice:oe.splice},ce.extend=ce.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||v(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(l&&r&&(ce.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[t],o=i&&!Array.isArray(n)?[]:i||ce.isPlainObject(n)?n:{},i=!1,a[t]=ce.extend(l,o,r)):void 0!==r&&(a[t]=r));return a},ce.extend({expando:"jQuery"+(t+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==i.call(e))&&(!(t=r(e))||"function"==typeof(n=ue.call(t,"constructor")&&t.constructor)&&o.call(n)===a)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){m(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(c(e)){for(n=e.length;r<n;r++)if(!1===t.call(e[r],r,e[r]))break}else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},text:function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i)return e.textContent;if(3===i||4===i)return e.nodeValue}else while(t=e[r++])n+=ce.text(t);return n},makeArray:function(e,t){var n=t||[];return null!=e&&(c(Object(e))?ce.merge(n,"string"==typeof e?[e]:e):s.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:se.call(t,e,n)},isXMLDoc:function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!l.test(t||n&&n.nodeName||"HTML")},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,a=[];if(c(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&a.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&a.push(i);return g(a)},guid:1,support:le}),"function"==typeof Symbol&&(ce.fn[Symbol.iterator]=oe[Symbol.iterator]),ce.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){n["[object "+t+"]"]=t.toLowerCase()});var pe=oe.pop,de=oe.sort,he=oe.splice,ge="[\\x20\\t\\r\\n\\f]",ve=new RegExp("^"+ge+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ge+"+$","g");ce.contains=function(e,t){var n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(e.contains?e.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))};var f=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function p(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}ce.escapeSelector=function(e){return(e+"").replace(f,p)};var ye=C,me=s;!function(){var e,b,w,o,a,T,r,C,d,i,k=me,S=ce.expando,E=0,n=0,s=W(),c=W(),u=W(),h=W(),l=function(e,t){return e===t&&(
vendor: 6,296 bytes, line 2
2a=!0),0},f="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",t="(?:\\\\[\\da-fA-F]{1,6}"+ge+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",p="\\["+ge+"*("+t+")(?:"+ge+"*([*^$|!~]?=)"+ge+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+t+"))|)"+ge+"*\\]",g=":("+t+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+p+")*)|.*)\\)|)",v=new RegExp(ge+"+","g"),y=new RegExp("^"+ge+"*,"+ge+"*"),m=new RegExp("^"+ge+"*([>+~]|"+ge+")"+ge+"*"),x=new RegExp(ge+"|>"),j=new RegExp(g),A=new RegExp("^"+t+"$"),D={ID:new RegExp("^#("+t+")"),CLASS:new RegExp("^\\.("+t+")"),TAG:new RegExp("^("+t+"|[*])"),ATTR:new RegExp("^"+p),PSEUDO:new RegExp("^"+g),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ge+"*(even|odd|(([+-]|)(\\d*)n|)"+ge+"*(?:([+-]|)"+ge+"*(\\d+)|))"+ge+"*\\)|)","i"),bool:new RegExp("^(?:"+f+")$","i"),needsContext:new RegExp("^"+ge+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ge+"*((?:-\\d)?\\d*)"+ge+"*\\)|)(?=[^-]|$)","i")},N=/^(?:input|select|textarea|button)$/i,q=/^h\d$/i,L=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,H=/[+~]/,O=new RegExp("\\\\[\\da-fA-F]{1,6}"+ge+"?|\\\\([^\\r\\n\\f])","g"),P=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},R=function(){V()},M=J(function(e){return!0===e.disabled&&fe(e,"fieldset")},{dir:"parentNode",next:"legend"});try{k.apply(oe=ae.call(ye.childNodes),ye.childNodes),oe[ye.childNodes.length].nodeType}catch(e){k={apply:function(e,t){me.apply(e,ae.call(t))},call:function(e){me.apply(e,ae.call(arguments,1))}}}function I(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!r&&(V(e),e=e||T,C)){if(11!==p&&(u=L.exec(t)))if(i=u[1]){if(9===p){if(!(a=e.getElementById(i)))return n;if(a.id===i)return k.call(n,a),n}else if(f&&(a=f.getElementById(i))&&I.contains(e,a)&&a.id===i)return k.call(n,a),n}else{if(u[2])return k.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&e.getElementsByClassName)return k.apply(n,e.getElementsByClassName(i)),n}if(!(h[t+" "]||d&&d.test(t))){if(c=t,f=e,1===p&&(x.test(t)||m.test(t))){(f=H.test(t)&&z(e.parentNode)||e)==e&&le.scope||((s=e.getAttribute("id"))?s=ce.escapeSelector(s):e.setAttribute("id",s=S)),o=(l=Y(t)).length;while(o--)l[o]=(s?"#"+s:":scope")+" "+Q(l[o]);c=l.join(",")}try{return k.apply(n,f.querySelectorAll(c)),n}catch(e){h(t,!0)}finally{s===S&&e.removeAttribute("id")}}}return re(t.replace(ve,"$1"),e,n,r)}function W(){var r=[];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function F(e){return e[S]=!0,e}function $(e){var t=T.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function B(t){return function(e){return fe(e,"input")&&e.type===t}}function _(t){return function(e){return(fe(e,"input")||fe(e,"button"))&&e.type===t}}function X(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&M(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function U(a){return F(function(o){return o=+o,F(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function z(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function V(e){var t,n=e?e.ownerDocument||e:ye;return n!=T&&9===n.nodeType&&n.documentElement&&(r=(T=n).documentElement,C=!ce.isXMLDoc(T),i=r.matches||r.webkitMatchesSelector||r.msMatchesSelector,ye!=T&&(t=T.defaultView)&&t.top!==t&&t.addEventListener("unload",R),le.getById=$(function(e){return r.appendChild(e).id=ce.expando,!T.getElementsByName||!T.getElementsByName(ce.expando).length}),le.disconnectedMatch=$(function(e){return i.call(e,"*")}),le.scope=$(function(){return T.querySelectorAll(":scope")}),le.cssHas=$(function(){try{return T.querySelector(":has(*,:jqfake)"),!1}catch(e){return!0}}),le.getById?(b.filter.ID=function(e){var t=e.replace(O,P);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&C){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(O,P);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&C){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},b.find.CLASS=function(e,t){if("undefined"!=typeof t.getElementsByClassName&&C)return t.getElementsByClassName(e)},d=[],$(function(e){var t;r.appendChild(e).innerHTML="<a id='"+S+"' href='' disabled='disabled'></a><select id='"+S+"-\r\\' disabled='disabled'><option selected=''></option></select>",e.querySelectorAll("[selected]").length||d.push("\\["+ge+"*(?:value|"+f+")"),e.querySelectorAll("[id~="+S+"-]").length||d.push("~="),e.querySelectorAll("a#"+S+"+*").length||d.push(".#.+[+~]"),e.querySelectorAll(":checked").length||d.push(":checked"),(t=T.createElement("input")).setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),r.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&d.push(":enabled",":disabled"),(t=T.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||d.push("\\["+ge+"*name"+ge+"*="+ge+"*(?:''|\"\")")}),le.cssHas||d.push(":has"),d=d.length&&new RegExp(d.join("|")),l=function(e,t){if(e===t)return a=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!le.sortDetached&&t.compareDocumentPosition(e)===n?e===T||e.ownerDocument==ye&&I.contains(ye,e)?-1:t===T||t.ownerDocument==ye&&I.contains(ye,t)?1:o?se.call(o,e)-se.call(o,t):0:4&n?-1:1)}),T}for(e in I.matches=function(e,t){return I(e,null,null,t)}
vendor: 31,847 bytes, line 2
2,I.matchesSelector=function(e,t){if(V(e),C&&!h[t+" "]&&(!d||!d.test(t)))try{var n=i.call(e,t);if(n||le.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){h(t,!0)}return 0<I(t,T,null,[e]).length},I.contains=function(e,t){return(e.ownerDocument||e)!=T&&V(e),ce.contains(e,t)},I.attr=function(e,t){(e.ownerDocument||e)!=T&&V(e);var n=b.attrHandle[t.toLowerCase()],r=n&&ue.call(b.attrHandle,t.toLowerCase())?n(e,t,!C):void 0;return void 0!==r?r:e.getAttribute(t)},I.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},ce.uniqueSort=function(e){var t,n=[],r=0,i=0;if(a=!le.sortStable,o=!le.sortStable&&ae.call(e,0),de.call(e,l),a){while(t=e[i++])t===e[i]&&(r=n.push(i));while(r--)he.call(e,n[r],1)}return o=null,e},ce.fn.uniqueSort=function(){return this.pushStack(ce.uniqueSort(ae.apply(this)))},(b=ce.expr={cacheLength:50,createPseudo:F,match:D,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(O,P),e[3]=(e[3]||e[4]||e[5]||"").replace(O,P),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||I.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&I.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return D.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&j.test(n)&&(t=Y(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(O,P).toLowerCase();return"*"===e?function(){return!0}:function(e){return fe(e,t)}},CLASS:function(e){var t=s[e+" "];return t||(t=new RegExp("(^|"+ge+")"+e+"("+ge+"|$)"))&&s(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=I.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1<t.indexOf(i):"$="===r?i&&t.slice(-i.length)===i:"~="===r?-1<(" "+t.replace(v," ")+" ").indexOf(i):"|="===r&&(t===i||t.slice(0,i.length+1)===i+"-"))}},CHILD:function(d,e,t,h,g){var v="nth"!==d.slice(0,3),y="last"!==d.slice(-4),m="of-type"===e;return 1===h&&0===g?function(e){return!!e.parentNode}:function(e,t,n){var r,i,o,a,s,u=v!==y?"nextSibling":"previousSibling",l=e.parentNode,c=m&&e.nodeName.toLowerCase(),f=!n&&!m,p=!1;if(l){if(v){while(u){o=e;while(o=o[u])if(m?fe(o,c):1===o.nodeType)return!1;s=u="only"===d&&!s&&"nextSibling"}return!0}if(s=[y?l.firstChild:l.lastChild],y&&f){p=(a=(r=(i=l[S]||(l[S]={}))[d]||[])[0]===E&&r[1])&&r[2],o=a&&l.childNodes[a];while(o=++a&&o&&o[u]||(p=a=0)||s.pop())if(1===o.nodeType&&++p&&o===e){i[d]=[E,a,p];break}}else if(f&&(p=a=(r=(i=e[S]||(e[S]={}))[d]||[])[0]===E&&r[1]),!1===p)while(o=++a&&o&&o[u]||(p=a=0)||s.pop())if((m?fe(o,c):1===o.nodeType)&&++p&&(f&&((i=o[S]||(o[S]={}))[d]=[E,p]),o===e))break;return(p-=g)===h||p%h==0&&0<=p/h}}},PSEUDO:function(e,o){var t,a=b.pseudos[e]||b.setFilters[e.toLowerCase()]||I.error("unsupported pseudo: "+e);return a[S]?a(o):1<a.length?(t=[e,e,"",o],b.setFilters.hasOwnProperty(e.toLowerCase())?F(function(e,t){var n,r=a(e,o),i=r.length;while(i--)e[n=se.call(e,r[i])]=!(t[n]=r[i])}):function(e){return a(e,0,t)}):a}},pseudos:{not:F(function(e){var r=[],i=[],s=ne(e.replace(ve,"$1"));return s[S]?F(function(e,t,n,r){var i,o=s(e,null,r,[]),a=e.length;while(a--)(i=o[a])&&(e[a]=!(t[a]=i))}):function(e,t,n){return r[0]=e,s(r,null,n,i),r[0]=null,!i.pop()}}),has:F(function(t){return function(e){return 0<I(t,e).length}}),contains:F(function(t){return t=t.replace(O,P),function(e){return-1<(e.textContent||ce.text(e)).indexOf(t)}}),lang:F(function(n){return A.test(n||"")||I.error("unsupported lang: "+n),n=n.replace(O,P).toLowerCase(),function(e){var t;do{if(t=C?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===n||0===t.indexOf(n+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=ie.location&&ie.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===r},focus:function(e){return e===function(){try{return T.activeElement}catch(e){}}()&&T.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},enabled:X(!1),disabled:X(!0),checked:function(e){return fe(e,"input")&&!!e.checked||fe(e,"option")&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!b.pseudos.empty(e)},header:function(e){return q.test(e.nodeName)},input:function(e){return N.test(e.nodeName)},button:function(e){return fe(e,"input")&&"button"===e.type||fe(e,"button")},text:function(e){var t;return fe(e,"input")&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:U(function(){return[0]}),last:U(function(e,t){return[t-1]}),eq:U(function(e,t,n){return[n<0?n+t:n]}),even:U(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:U(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:U(function(e,t,n){var r;for(r=n<0?n+t:t<n?t:n;0<=--r;)e.push(r);return e}),gt:U(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=b.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})b.pseudos[e]=B(e);for(e in{submit:!0,reset:!0})b.pseudos[e]=_(e);function G(){}function Y(e,t){var n,r,i,o,a,s,u,l=c[e+" "];if(l)return t?0:l.slice(0);a=e,s=[],u=b.preFilter;while(a){for(o in n&&!(r=y.exec(a))||(r&&(a=a.slice(r[0].length)||a),s.push(i=[])),n=!1,(r=m.exec(a))&&(n=r.shift(),i.push({value:n,type:r[0].replace(ve," ")}),a=a.slice(n.length)),b.filter)!(r=D[o].exec(a))||u[o]&&!(r=u[o](r))||(n=r.shift(),i.push({value:n,type:o,matches:r}),a=a.slice(n.length));if(!n)break}return t?a.length:a?I.error(e):c(e,s).slice(0)}function Q(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function J(a,e,t){var s=e.dir,u=e.next,l=u||s,c=t&&"parentNode"===l,f=n++;return e.first?function(e,t,n){while(e=e[s])if(1===e.nodeType||c)return a(e,t,n);return!1}:function(e,t,n){var r,i,o=[E,f];if(n){while(e=e[s])if((1===e.nodeType||c)&&a(e,t,n))return!0}else while(e=e[s])if(1===e.nodeType||c)if(i=e[S]||(e[S]={}),u&&fe(e,u))e=e[s]||e;else{if((r=i[l])&&r[0]===E&&r[1]===f)return o[2]=r[2];if((i[l]=o)[2]=a(e,t,n))return!0}return!1}}function K(i){return 1<i.length?function(e,t,n){var r=i.length;while(r--)if(!i[r](e,t,n))return!1;return!0}:i[0]}function Z(e,t,n,r,i){for(var o,a=[],s=0,u=e.length,l=null!=t;s<u;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),l&&t.push(s)));return a}function ee(d,h,g,v,y,e){return v&&!v[S]&&(v=ee(v)),y&&!y[S]&&(y=ee(y,e)),F(function(e,t,n,r){var i,o,a,s,u=[],l=[],c=t.length,f=e||function(e,t,n){for(var r=0,i=t.length;r<i;r++)I(e,t[r],n);return n}(h||"*",n.nodeType?[n]:n,[]),p=!d||!e&&h?f:Z(f,u,d,n,r);if(g?g(p,s=y||(e?d:c||v)?[]:t,n,r):s=p,v){i=Z(s,l),v(i,[],n,r),o=i.length;while(o--)(a=i[o])&&(s[l[o]]=!(p[l[o]]=a))}if(e){if(y||d){if(y){i=[],o=s.length;while(o--)(a=s[o])&&i.push(p[o]=a);y(null,s=[],i,r)}o=s.length;while(o--)(a=s[o])&&-1<(i=y?se.call(e,a):u[o])&&(e[i]=!(t[i]=a))}}else s=Z(s===t?s.splice(c,s.length):s),y?y(null,t,s,r):k.apply(t,s)})}function te(e){for(var i,t,n,r=e.length,o=b.relative[e[0].type],a=o||b.relative[" "],s=o?1:0,u=J(function(e){return e===i},a,!0),l=J(function(e){return-1<se.call(i,e)},a,!0),c=[function(e,t,n){var r=!o&&(n||t!=w)||((i=t).nodeType?u(e,t,n):l(e,t,n));return i=null,r}];s<r;s++)if(t=b.relative[e[s].type])c=[J(K(c),t)];else{if((t=b.filter[e[s].type].apply(null,e[s].matches))[S]){for(n=++s;n<r;n++)if(b.relative[e[n].type])break;return ee(1<s&&K(c),1<s&&Q(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(ve,"$1"),t,s<n&&te(e.slice(s,n)),n<r&&te(e=e.slice(n)),n<r&&Q(e))}c.push(t)}return K(c)}function ne(e,t){var n,v,y,m,x,r,i=[],o=[],a=u[e+" "];if(!a){t||(t=Y(e)),n=t.length;while(n--)(a=te(t[n]))[S]?i.push(a):o.push(a);(a=u(e,(v=o,m=0<(y=i).length,x=0<v.length,r=function(e,t,n,r,i){var o,a,s,u=0,l="0",c=e&&[],f=[],p=w,d=e||x&&b.find.TAG("*",i),h=E+=null==p?1:Math.random()||.1,g=d.length;for(i&&(w=t==T||t||i);l!==g&&null!=(o=d[l]);l++){if(x&&o){a=0,t||o.ownerDocument==T||(V(o),n=!C);while(s=v[a++])if(s(o,t||T,n)){k.call(r,o);break}i&&(E=h)}m&&((o=!s&&o)&&u--,e&&c.push(o))}if(u+=l,m&&l!==u){a=0;while(s=y[a++])s(c,f,t,n);if(e){if(0<u)while(l--)c[l]||f[l]||(f[l]=pe.call(r));f=Z(f)}k.apply(r,f),i&&!e&&0<f.length&&1<u+y.length&&ce.uniqueSort(r)}return i&&(E=h,w=p),c},m?F(r):r))).selector=e}return a}function re(e,t,n,r){var i,o,a,s,u,l="function"==typeof e&&e,c=!r&&Y(e=l.selector||e);if(n=n||[],1===c.length){if(2<(o=c[0]=c[0].slice(0)).length&&"ID"===(a=o[0]).type&&9===t.nodeType&&C&&b.relative[o[1].type]){if(!(t=(b.find.ID(a.matches[0].replace(O,P),t)||[])[0]))return n;l&&(t=t.parentNode),e=e.slice(o.shift().value.length)}i=D.needsContext.test(e)?0:o.length;while(i--){if(a=o[i],b.relative[s=a.type])break;if((u=b.find[s])&&(r=u(a.matches[0].replace(O,P),H.test(o[0].type)&&z(t.parentNode)||t))){if(o.splice(i,1),!(e=r.length&&Q(o)))return k.apply(n,r),n;break}}}return(l||ne(e,c))(r,t,!C,n,!t||H.test(e)&&z(t.parentNode)||t),n}G.prototype=b.filters=b.pseudos,b.setFilters=new G,le.sortStable=S.split("").sort(l).join("")===S,V(),le.sortDetached=$(function(e){return 1&e.compareDocumentPosition(T.createElement("fieldset"))}),ce.find=I,ce.expr[":"]=ce.expr.pseudos,ce.unique=ce.uniqueSort,I.compile=ne,I.select=re,I.setDocument=V,I.escape=ce.escapeSelector,I.getText=ce.text,I.isXML=ce.isXMLDoc,I.selectors=ce.expr,I.support=ce.support,I.uniqueSort=ce.uniqueSort}();var d=function(e,t,n){var r=[],i=void 0!==n;while((e=e[t])&&9!==e.nodeType)if(1===e.nodeType){if(i&&ce(e).is(n))break;r.push(e)}return r},h=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},b=ce.expr.match.needsContext,w=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function T(e,n,r){return v(n)?ce.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?ce.grep(e,function(e){return e===n!==r}):"string"!=typeof n?ce.grep(e,function(e){return-1<se.call(n,e)!==r}):ce.filter(n,e,r)}ce.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?ce.find.matchesSelector(r,e)?[r]:[]:ce.find.matches(e,ce.grep(t,function(e){return 1===e.nodeType}))},ce.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(ce(e).filter(function(){for(t=0;t<r;t++)if(ce.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)ce.find(e,i[t],n);return 1<r?ce.uniqueSort(n):n},filter:function(e){return this.pushStack(T(this,e||[],!1))},not:function(e){return this.pushStack(T(this,e||[],!0))},is:function(e){return!!T(this,"string"==typeof e&&b.test(e)?ce(e):e||[],!1).length}});var k,S=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(ce.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||k,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:S.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof ce?t[0]:t,ce.merge(this,ce.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:C,!0)),w.test(r[1])&&ce.isPlainObject(t))for(r in t)v(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=C.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):v(e)?void 0!==n.ready?n.ready(e):e(ce):ce.makeArray(e,this)}).prototype=ce.fn,k=ce(C);var E=/^(?:parents|prev(?:Until|All))/,j={children:!0,contents:!0,next:!0,prev:!0};function A(e,t){while((e=e[t])&&1!==e.nodeType);return e}ce.fn.extend({has:function(e){var t=ce(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(ce.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,o=[],a="string"!=typeof e&&ce(e);if(!b.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?-1<a.index(n):1===n.nodeType&&ce.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(1<o.length?ce.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?se.call(ce(e),this[0]):se.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(ce.uniqueSort(ce.merge(this.get(),ce(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),ce.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return d(e,"parentNode")},parentsUntil:function(e,t,n){return d(e,"parentNode",n)},next:function(e){return A(e,"nextSibling")},prev:function(e){return A(e,"previousSibling")},nextAll:function(e){return d(e,"nextSibling")},prevAll:function(e){return d(e,"previousSibling")},nextUntil:function(e,t,n){return d(e,"nextSibling",n)},prevUntil:function(e,t,n){return d(e,"previousSibling",n)},siblings:function(e){return h((e.parentNode||{}).firstChild,e)},children:function(e){return h(e.firstChild)},contents:function(e){return null!=e.contentDocument&&r(e.contentDocument)?e.contentDocument:(fe(e,"template")&&(e=e.content||e),ce.merge([],e.childNodes))}},function(r,i){ce.fn[r]=function(e,t){var n=ce.map(this,i,e);return"Until"!==r.slice(-5)&&(t=e),t&&"string"==typeof t&&(n=ce.filter(t,n)),1<this.length&&(j[r]||ce.uniqueSort(n),E.test(r)&&n.reverse()),this.pushStack(n)}});var D=/[^\x20\t\r\n\f]+/g;function N(e){return e}function q(e){throw e}function L(e,t,n,r){var i;try{e&&v(i=e.promise)?i.call(e).done(t).fail(n):e&&v(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}ce.Callbacks=function(r){var e,n;r="string"==typeof r?(e=r,n={},ce.each(e.match(D)||[],function(e,t){n[t]=!0}),n):ce.extend({},r);var i,t,o,a,s=[],u=[],l=-1,c=function(){for(a=a||r.once,o=i=!0;u.length;l=-1){t=u.shift();while(++l<s.length)!1===s[l].apply(t[0],t[1])&&r.stopOnFalse&&(l=s.length,t=!1)}r.memory||(t=!1),i=!1,a&&(s=t?[]:"")},f={add:function(){return s&&(t&&!i&&(l=s.length-1,u.push(t)),function n(e){ce.each(e,function(e,t){v(t)?r.unique&&f.has(t)||s.push(t):t&&t.length&&"string"!==x(t)&&n(t)})}(arguments),t&&!i&&c()),this},remove:function(){return ce.each(arguments,function(e,t){var n;while(-1<(n=ce.inArray(t,s,n)))s.splice(n,1),n<=l&&l--}),this},has:function(e){return e?-1<ce.inArray(e,s):0<s.length},empty:function(){return s&&(s=[]),this},disable:function(){return a=u=[],s=t="",this},disabled:function(){return!s},lock:function(){return a=u=[],t||i||(s=t=""),this},locked:function(){return!!a},fireWith:function(e,t){return a||(t=[e,(t=t||[]).slice?t.slice():t],u.push(t),i||c()),this},fire:function(){return f.fireWith(this,arguments),this},fired:function(){return!!o}};return f},ce.extend({Deferred:function(e){var o=[["notify","progress",ce.Callbacks("memory"),ce.Callbacks("memory"),2],["resolve","done",ce.Callbacks("once memory"),ce.Callbacks("once memory"),0,"resolved"],["reject","fail",ce.Callbacks("once memory"),ce.Callbacks("once memory"),1,"rejected"]],i="pending",a={state:function(){return i},always:function(){return s.done(arguments).fail(arguments),this},"catch":function(e){return a.then(null,e)},pipe:function(){var i=arguments;return ce.Deferred(function(r){ce.each(o,function(e,t){var n=v(i[t[4]])&&i[t[4]];s[t[1]](function(){var e=n&&n.apply(this,arguments);e&&v(e.promise)?e.promise().progress(r.notify).done(r.resolve).fail(r.reject):r[t[0]+"With"](this,n?[e]:arguments)})}),i=null}).promise()},then:function(t,n,r){var u=0;function l(i,o,a,s){return function(){var n=this,r=arguments,e=function(){var e,t;if(!(i<u)){if((e=a.apply(n,r))===o.promise())throw new TypeError("Thenable self-resolution");t=e&&("object"==typeof e||"function"==typeof e)&&e.then,v(t)?s?t.call(e,l(u,o,N,s),l(u,o,q,s)):(u++,t.call(e,l(u,o,N,s),l(u,o,q,s),l(u,o,N,o.notifyWith))):(a!==N&&(n=void 0,r=[e]),(s||o.resolveWith)(n,r))}},t=s?e:function(){try{e()}catch(e){ce.Deferred.exceptionHook&&ce.Deferred.exceptionHook(e,t.error),u<=i+1&&(a!==q&&(n=void 0,r=[e]),o.rejectWith(n,r))}};i?t():(ce.Deferred.getErrorHook?t.error=ce.Deferred.getErrorHook():ce.Deferred.getStackHook&&(t.error=ce.Deferred.getStackHook()),ie.setTimeout(t))}}return ce.Deferred(function(e){o[0][3].add(l(0,e,v(r)?r:N,e.notifyWith)),o[1][3].add(l(0,e,v(t)?t:N)),o[2][3].add(l(0,e,v(n)?n:q))}).promise()},promise:function(e){return null!=e?ce.extend(e,a):a}},s={};return ce.each(o,function(e,t){var n=t[2],r=t[5];a[t[1]]=n.add,r&&n.add(function(){i=r},o[3-e][2].disable,o[3-e][3].disable,o[0][2].lock,o[0][3].lock),n.add(t[3].fire),s[t[0]]=function(){return s[t[0]+"With"](this===s?void 0:this,arguments),this},s[t[0]+"With"]=n.fireWith}),a.promise(s),e&&e.call(s,s),s},when:function(e){var n=arguments.length,t=n,r=Array(t),i=ae.call(arguments),o=ce.Deferred(),a=function(t){return function(e){r[t]=this,i[t]=1<arguments.length?ae.call(arguments):e,--n||o.resolveWith(r,i)}};if(n<=1&&(L(e,o.done(a(t)).resolve,o.reject,!n),"pending"===o.state()||v(i[t]&&i[t].then)))return o.then();while(t--)L(i[t],a(t),o.reject);return o.promise()}});var H=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;ce.Deferred.exceptionHook=function(e,t){ie.console&&ie.console.warn&&e&&H.test(e.name)&&ie.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},ce.readyException=function(e){ie.setTimeout(function(){throw e})};var O=ce.Deferred();function P(){C.removeEventListener("DOMContentLoaded",P),ie.removeEventListener("load",P),ce.ready()}ce.fn.ready=function(e){return O.then(e)["catch"](function(e){ce.readyException(e)}),this},ce.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--ce.readyWait:ce.isReady)||(ce.isReady=!0)!==e&&0<--ce.readyWait||O.resolveWith(C,[ce])}}),ce.ready.then=O.then,"complete"===C.readyState||"loading"!==C.readyState&&!C.documentElement.doScroll?ie.setTimeout(ce.ready):(C.addEventListener("DOMContentLoaded",P),ie.addEventListener("load",P));var R=function(e,t,n,r,i,o,a){var s=0,u=e.length,l=null==n;if("object"===x(n))for(s in i=!0,n)R(e,t,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,v(r)||(a=!0),l&&(a?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(ce(e),n)})),t))for(;s<u;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:l?t.call(e):u?t(e[0],n):o},M=/^-ms-/,I=/-([a-z])/g;function W(e,t){return t.toUpperCase()}function F(e){return e.replace(M,"ms-").replace(I,W)}var $=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function B(){this.expando=ce.expando+B.uid++}B.uid=1,B.prototype={cache:function(e){var t=e[this.expando];return t||(t={},$(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[F(t)]=n;else for(r in t)i[F(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][F(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(F):(t=F(t))in r?[t]:t.match(D)||[]).length;while(n--)delete r[t[n]]}(void 0===t||ce.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!ce.isEmptyObject(t)}};var _=new B,X=new B,U=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,z=/[A-Z]/g;function V(e,t,n){var r,i;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(z,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n="true"===(i=n)||"false"!==i&&("null"===i?null:i===+i+""?+i:U.test(i)?JSON.parse(i):i)}catch(e){}X.set(e,t,n)}else n=void 0;return n}ce.extend({hasData:function(e){return X.hasData(e)||_.hasData(e)},data:function(e,t,n){return X.access(e,t,n)},removeData:function(e,t){X.remove(e,t)},_data:function(e,t,n){return _.access(e,t,n)},_removeData:function(e,t){_.remove(e,t)}}),ce.fn.extend({data:function(n,e){var t,r,i,o=this[0],a=o&&o.attributes;if(void 0===n){if(this.length&&(i=X.get(o),1===o.nodeType&&!_.get(o,"hasDataAttrs"))){t=a.length;while(t--)a[t]&&0===(r=a[t].name).indexOf("data-")&&(r=F(r.slice(5)),V(o,r,i[r]));_.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof n?this.each(function(){X.set(this,n)}):R(this,function(e){var t;if(o&&void 0===e)return void 0!==(t=X.get(o,n))?t:void 0!==(t=V(o,n))?t:void 0;this.each(function(){X.set(this,n,e)})},null,e,1<arguments.length,null,!0)},removeData:function(e){return this.each(function(){X.remove(this,e)})}}),ce.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=_.get(e,t),n&&(!r||Array.isArray(n)?r=_.access(e,t,ce.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=ce.queue(e,t),r=n.length,i=n.shift(),o=ce._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,function(){ce.dequeue(e,t)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return _.get(e,n)||_.access(e,n,{empty:ce.Callbacks("once memory").add(function(){_.remove(e,[t+"queue",n])})})}}),ce.fn.extend({queue:function(t,n){var e=2;return"string"!=typeof t&&(n=t,t="fx",e--),arguments.length<e?ce.queue(this[0],t):void 0===n?this:this.each(function(){var e=ce.queue(this,t,n);ce._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&ce.dequeue(this,t)})},dequeue:function(e){return this.each(function(){ce.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=ce.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};"string"!=typeof e&&(t=e,e=void 0),e=e||"fx";while(a--)(n=_.get(o[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var G=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Y=new RegExp("^(?:([+-])=|)("+G+")([a-z%]*)$","i"),Q=["Top","Right","Bottom","Left"],J=C.documentElement,K=function(e){return ce.contains(e.ownerDocument,e)},Z={composed:!0};J.getRootNode&&(K=function(e){return ce.contains(e.ownerDocument,e)||e.getRootNode(Z)===e.ownerDocument});var ee=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&K(e)&&"none"===ce.css(e,"display")};function te(e,t,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return ce.css(e,t,"")},u=s(),l=n&&n[3]||(ce.cssNumber[t]?"":"px"),c=e.nodeType&&(ce.cssNumber[t]||"px"!==l&&+u)&&Y.exec(ce.css(e,t));if(c&&c[3]!==l){u/=2,l=l||c[3],c=+u||1;while(a--)ce.style(e,t,c+l),(1-o)*(1-(o=s()/u||.5))<=0&&(a=0),c/=o;c*=2,ce.style(e,t,c+l),n=n||[]}return n&&(c=+c||+u||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=c,r.end=i)),i}var ne={};function re(e,t){for(var n,r,i,o,a,s,u,l=[],c=0,f=e.length;c<f;c++)(r=e[c]).style&&(n=r.style.display,t?("none"===n&&(l[c]=_.get(r,"display")||null,l[c]||(r.style.display="")),""===r.style.display&&ee(r)&&(l[c]=(u=a=o=void 0,a=(i=r).ownerDocument,s=i.nodeName,(u=ne[s])||(o=a.body.appendChild(a.createElement(s)),u=ce.css(o,"display"),o.parentNode.removeChild(o),"none"===u&&(u="block"),ne[s]=u)))):"none"!==n&&(l[c]="none",_.set(r,"display",n)));for(c=0;c<f;c++)null!=l[c]&&(e[c].style.display=l[c]);return e}ce.fn.extend({show:function(){return re(this,!0)},hide:function(){return re(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){ee(this)?ce(this).show():ce(this).hide()})}});var xe,be,we=/^(?:checkbox|radio)$/i,Te=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Ce=/^$|^module$|\/(?:java|ecma)script/i;xe=C.createDocumentFragment().appendChild(C.createElement("div")),(be=C.createElement("input")).setAttribute("type","radio"),be.setAttribute("checked","checked"),be.setAttribute("name","t"),xe.appendChild(be),le.checkClone=xe.cloneNode(!0).cloneNode(!0).lastChild.checked,xe.innerHTML="<textarea>x</textarea>",le.noCloneChecked=!!xe.cloneNode(!0).lastChild.defaultValue,xe.innerHTML="<option></option>",le.option=!!xe.lastChild;var ke={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function Se(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&fe(e,t)?ce.merge([e],n):n}function Ee(e,t){for(var n=0,r=e.length;n<r;n++)_.set(e[n],"globalEval",!t||_.get(t[n],"globalEval"))}ke.tbody=ke.tfoot=ke.colgroup=ke.caption=ke.thead,ke.th=ke.td,le.option||(ke.optgroup=ke.option=[1,"<select multiple='multiple'>","</select>"]);var je=/<|&#?\w+;/;function Ae(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d<h;d++)if((o=e[d])||0===o)if("object"===x(o))ce.merge(p,o.nodeType?[o]:o);else if(je.test(o)){a=a||f.appendChild(t.createElement("div")),s=(Te.exec(o)||["",""])[1].toLowerCase(),u=ke[s]||ke._default,a.innerHTML=u[1]+ce.htmlPrefilter(o)+u[2],c=u[0];while(c--)a=a.lastChild;ce.merge(p,a.childNodes),(a=f.firstChild).textContent=""}else p.push(t.createTextNode(o));f.textContent="",d=0;while(o=p[d++])if(r&&-1<ce.inArray(o,r))i&&i.push(o);else if(l=K(o),a=Se(f.appendChild(o),"script"),l&&Ee(a),n){c=0;while(o=a[c++])Ce.test(o.type||"")&&n.push(o)}return f}var De=/^([^.]*)(?:\.(.+)|)/;function Ne(){return!0}function qe(){return!1}function Le(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)Le(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=qe;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return ce().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=ce.guid++)),e.each(function(){ce.event.add(this,t,i,r,n)})}function He(e,r,t){t?(_.set(e,r,!1),ce.event.add(e,r,{namespace:!1,handler:function(e){var t,n=_.get(this,r);if(1&e.isTrigger&&this[r]){if(n)(ce.event.special[r]||{}).delegateType&&e.stopPropagation();else if(n=ae.call(arguments),_.set(this,r,n),this[r](),t=_.get(this,r),_.set(this,r,!1),n!==t)return e.stopImmediatePropagation(),e.preventDefault(),t}else n&&(_.set(this,r,ce.event.trigger(n[0],n.slice(1),this)),e.stopPropagation(),e.isImmediatePropagationStopped=Ne)}})):void 0===_.get(e,r)&&ce.event.add(e,r,Ne)}ce.event={global:{},add:function(t,e,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=_.get(t);if($(t)){n.handler&&(n=(o=n).handler,i=o.selector),i&&ce.find.matchesSelector(J,i),n.guid||(n.guid=ce.guid++),(u=v.events)||(u=v.events=Object.create(null)),(a=v.handle)||(a=v.handle=function(e){return"undefined"!=typeof ce&&ce.event.triggered!==e.type?ce.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(D)||[""]).length;while(l--)d=g=(s=De.exec(e[l])||[])[1],h=(s[2]||"").split(".").sort(),d&&(f=ce.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=ce.event.special[d]||{},c=ce.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&ce.expr.match.needsContext.test(i),namespace:h.join(".")},o),(p=u[d])||((p=u[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(t,r,h,a)||t.addEventListener&&t.addEventListener(d,a)),f.add&&(f.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),ce.event.global[d]=!0)}},remove:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=_.hasData(e)&&_.get(e);if(v&&(u=v.events)){l=(t=(t||"").match(D)||[""]).length;while(l--)if(d=g=(s=De.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),d){f=ce.event.special[d]||{},p=u[d=(r?f.delegateType:f.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;while(o--)c=p[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,f.remove&&f.remove.call(e,c));a&&!p.length&&(f.teardown&&!1!==f.teardown.call(e,h,v.handle)||ce.removeEvent(e,d,v.handle),delete u[d])}else for(d in u)ce.event.remove(e,d+t[l],n,r,!0);ce.isEmptyObject(u)&&_.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=new Array(arguments.length),u=ce.event.fix(e),l=(_.get(this,"events")||Object.create(null))[u.type]||[],c=ce.event.special[u.type]||{};for(s[0]=u,t=1;t<arguments.length;t++)s[t]=arguments[t];if(u.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,u)){a=ce.event.handlers.call(this,u,l),t=0;while((i=a[t++])&&!u.isPropagationStopped()){u.currentTarget=i.elem,n=0;while((o=i.handlers[n++])&&!u.isImmediatePropagationStopped())u.rnamespace&&!1!==o.namespace&&!u.rnamespace.test(o.namespace)||(u.handleObj=o,u.data=o.data,void 0!==(r=((ce.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,s))&&!1===(u.result=r)&&(u.preventDefault(),u.stopPropagation()))}return c.postDispatch&&c.postDispatch.call(this,u),u.result}},handlers:function(e,t){var n,r,i,o,a,s=[],u=t.delegateCount,l=e.target;if(u&&l.nodeType&&!("click"===e.type&&1<=e.button))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==e.type||!0!==l.disabled)){for(o=[],a={},n=0;n<u;n++)void 0===a[i=(r=t[n]).selector+" "]&&(a[i]=r.needsContext?-1<ce(i,this).index(l):ce.find(i,this,null,[l]).length),a[i]&&o.push(r);o.length&&s.push({elem:l,handlers:o})}return l=this,u<t.length&&s.push({elem:l,handlers:t.slice(u)}),s},addProp:function(t,e){Object.defineProperty(ce.Event.prototype,t,{enumerable:!0,configurable:!0,get:v(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(e){return e[ce.expando]?e:new ce.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return we.test(t.type)&&t.click&&fe(t,"input")&&He(t,"click",!0),!1},trigger:function(e){var t=this||e;return we.test(t.type)&&t.click&&fe(t,"input")&&He(t,"click"),!0},_default:function(e){var t=e.target;return we.test(t.type)&&t.click&&fe(t,"input")&&_.get(t,"click")||fe(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},ce.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},ce.Event=function(e,t){if(!(this instanceof ce.Event))return new ce.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Ne:qe,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&ce.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[ce.expando]=!0},ce.Event.prototype={constructor:ce.Event,isDefaultPrevented:qe,isPropagationStopped:qe,isImmediatePropagationStopped:qe,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Ne,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Ne,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Ne,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},ce.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,"char":!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},ce.event.addProp),ce.each({focus:"focusin",blur:"focusout"},function(r,i){function o(e){if(C.documentMode){var t=_.get(this,"handle"),n=ce.event.fix(e);
vendor: 6,944 bytes, line 2
2n.type="focusin"===e.type?"focus":"blur",n.isSimulated=!0,t(e),n.target===n.currentTarget&&t(n)}else ce.event.simulate(i,e.target,ce.event.fix(e))}ce.event.special[r]={setup:function(){var e;if(He(this,r,!0),!C.documentMode)return!1;(e=_.get(this,i))||this.addEventListener(i,o),_.set(this,i,(e||0)+1)},trigger:function(){return He(this,r),!0},teardown:function(){var e;if(!C.documentMode)return!1;(e=_.get(this,i)-1)?_.set(this,i,e):(this.removeEventListener(i,o),_.remove(this,i))},_default:function(e){return _.get(e.target,r)},delegateType:i},ce.event.special[i]={setup:function(){var e=this.ownerDocument||this.document||this,t=C.documentMode?this:e,n=_.get(t,i);n||(C.documentMode?this.addEventListener(i,o):e.addEventListener(r,o,!0)),_.set(t,i,(n||0)+1)},teardown:function(){var e=this.ownerDocument||this.document||this,t=C.documentMode?this:e,n=_.get(t,i)-1;n?_.set(t,i,n):(C.documentMode?this.removeEventListener(i,o):e.removeEventListener(r,o,!0),_.remove(t,i))}}}),ce.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,i){ce.event.special[e]={delegateType:i,bindType:i,handle:function(e){var t,n=e.relatedTarget,r=e.handleObj;return n&&(n===this||ce.contains(this,n))||(e.type=r.origType,t=r.handler.apply(this,arguments),e.type=i),t}}}),ce.fn.extend({on:function(e,t,n,r){return Le(this,e,t,n,r)},one:function(e,t,n,r){return Le(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,ce(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=qe),this.each(function(){ce.event.remove(this,e,n,t)})}});var Oe=/<script|<style|<link/i,Pe=/checked\s*(?:[^=]|=\s*.checked.)/i,Re=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Me(e,t){return fe(e,"table")&&fe(11!==t.nodeType?t:t.firstChild,"tr")&&ce(e).children("tbody")[0]||e}function Ie(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function We(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Fe(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(_.hasData(e)&&(s=_.get(e).events))for(i in _.remove(t,"handle events"),s)for(n=0,r=s[i].length;n<r;n++)ce.event.add(t,i,s[i][n]);X.hasData(e)&&(o=X.access(e),a=ce.extend({},o),X.set(t,a))}}function $e(n,r,i,o){r=g(r);var e,t,a,s,u,l,c=0,f=n.length,p=f-1,d=r[0],h=v(d);if(h||1<f&&"string"==typeof d&&!le.checkClone&&Pe.test(d))return n.each(function(e){var t=n.eq(e);h&&(r[0]=d.call(this,e,t.html())),$e(t,r,i,o)});if(f&&(t=(e=Ae(r,n[0].ownerDocument,!1,n,o)).firstChild,1===e.childNodes.length&&(e=t),t||o)){for(s=(a=ce.map(Se(e,"script"),Ie)).length;c<f;c++)u=e,c!==p&&(u=ce.clone(u,!0,!0),s&&ce.merge(a,Se(u,"script"))),i.call(n[c],u,c);if(s)for(l=a[a.length-1].ownerDocument,ce.map(a,We),c=0;c<s;c++)u=a[c],Ce.test(u.type||"")&&!_.access(u,"globalEval")&&ce.contains(l,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?ce._evalUrl&&!u.noModule&&ce._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")},l):m(u.textContent.replace(Re,""),u,l))}return n}function Be(e,t,n){for(var r,i=t?ce.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||ce.cleanData(Se(r)),r.parentNode&&(n&&K(r)&&Ee(Se(r,"script")),r.parentNode.removeChild(r));return e}ce.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,i,o,a,s,u,l,c=e.cloneNode(!0),f=K(e);if(!(le.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||ce.isXMLDoc(e)))for(a=Se(c),r=0,i=(o=Se(e)).length;r<i;r++)s=o[r],u=a[r],void 0,"input"===(l=u.nodeName.toLowerCase())&&we.test(s.type)?u.checked=s.checked:"input"!==l&&"textarea"!==l||(u.defaultValue=s.defaultValue);if(t)if(n)for(o=o||Se(e),a=a||Se(c),r=0,i=o.length;r<i;r++)Fe(o[r],a[r]);else Fe(e,c);return 0<(a=Se(c,"script")).length&&Ee(a,!f&&Se(e,"script")),c},cleanData:function(e){for(var t,n,r,i=ce.event.special,o=0;void 0!==(n=e[o]);o++)if($(n)){if(t=n[_.expando]){if(t.events)for(r in t.events)i[r]?ce.event.remove(n,r):ce.removeEvent(n,r,t.handle);n[_.expando]=void 0}n[X.expando]&&(n[X.expando]=void 0)}}}),ce.fn.extend({detach:function(e){return Be(this,e,!0)},remove:function(e){return Be(this,e)},text:function(e){return R(this,function(e){return void 0===e?ce.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return $e(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Me(this,e).appendChild(e)})},prepend:function(){return $e(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Me(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return $e(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return $e(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(ce.cleanData(Se(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return ce.clone(this,e,t)})},html:function(e){return R(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Oe.test(e)&&!ke[(Te.exec(e)||["",""])[1].toLowerCase()]){e=ce.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(ce.cleanData(Se(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var n=[];return $e(this,arguments,function(e){var t=this.parentNode;ce.inArray(this,n)<0&&(ce.cleanData(Se(this)),t&&t.replaceChild(e,this))},n)}}),ce.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,a){ce.fn[e]=function(e){for(var t,n=[],r=ce(e),i=r.length-1,o=0;o<=i;o++)t=o===i?this:this.clone(!0),ce(r[o])[a](t),s.apply(n,t.get());return this.pushStack(n)}});var _e=new RegExp("^("+G+")(?!px)[a-z%]+$","i"),Xe=/^--/,Ue=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=ie),t.getComputedStyle(e)},ze=function(e,t,n){var r,i,o={};for(i in t)o[i]=e.style[i],e.style[i]=t[i];for(i in r=n.call(e),t)e.style[i]=o[i];return r},Ve=new RegExp(Q.join("|"),"i");function Ge(e,t,n){var r,i,o,a,s=Xe.test(t),u=e.style;return(n=n||Ue(e))&&(a=n.getPropertyValue(t)||n[t],s&&a&&(a=a.replace(ve,"$1")||void 0),""!==a||K(e)||(a=ce.style(e,t)),!le.pixelBoxStyles()&&_e.test(a)&&Ve.test(t)&&(r=u.width,i=u.minWidth,o=u.maxWidth,u.minWidth=u.maxWidth=u.width=a,a=n.width,u.width=r,u.minWidth=i,u.maxWidth=o)),void 0!==a?a+"":a}function Ye(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(l){u.style.cssText="position:absolute;
2left:-11111px;width:60px;margin-top:1px;padding:0;border:0",l.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",J.appendChild(u).appendChild(l);var e=ie.getComputedStyle(l);n="1%"!==e.top,s=12===t(e.marginLeft),l.style.right="60%",o=36===t(e.right),r=36===t(e.width),l.style.position="absolute",i=12===t(l.offsetWidth/3),J.removeChild(u),l=null}}function t(e){return Math.round(parseFloat(e))}var n,r,i,o,a,s,u=C.createElement("div"),l=C.createElement("div");l.style&&(l.style.backgroundClip="content-box",l.cloneNode(!0).style.backgroundClip="",le.clearCloneStyle="content-box"===l.style.backgroundClip,ce.extend(le,{boxSizingReliable:function(){return e(),r},pixelBoxStyles:function(){return e(),o},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),s},scrollboxSize:function(){return e(),i},reliableTrDimensions:function(){var e,t,n,r;return null==a&&(e=C.createElement("table"),t=C.createElement("tr"),n=C.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="border:1px solid",t.style.height="1px",n.style.height="9px",n.style.display="block",J.appendChild(e).appendChild(t).appendChild(n),r=ie.getComputedStyle(t),a=parseInt(r.height,10)+parseInt(r.borderTopWidth,10)+parseInt(r.borderBottomWidth,10)===t.offsetHeight,J.removeChild(e)),a}}))}();var Qe=["Webkit","Moz","ms"],Je=C.createElement("div").style,Ke={};function Ze(e){var t=ce.cssProps[e]||Ke[e];return t||(e in Je?e:Ke[e]=function(e){var t=e[0].toUpperCase()+e.slice(1),n=Qe.length;while(n--)if((e=Qe[n]+t)in Je)return e}(e)||e)}var et=/^(none|table(?!-c[ea]).+)/,tt={position:"absolute",visibility:"hidden",display:"block"},nt={letterSpacing:"0",fontWeight:"400"};function rt(e,t,n){var r=Y.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function it(e,t,n,r,i,o){var a="width"===t?1:0,s=0,u=0,l=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(l+=ce.css(e,n+Q[a],!0,i)),r?("content"===n&&(u-=ce.css(e,"padding"+Q[a],!0,i)),"margin"!==n&&(u-=ce.css(e,"border"+Q[a]+"Width",!0,i))):(u+=ce.css(e,"padding"+Q[a],!0,i),"padding"!==n?u+=ce.css(e,"border"+Q[a]+"Width",!0,i):s+=ce.css(e,"border"+Q[a]+"Width",!0,i));return!r&&0<=o&&(u+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-u-s-.5))||0),u+l}function ot(e,t,n){var r=Ue(e),i=(!le.boxSizingReliable()||n)&&"border-box"===ce.css(e,"boxSizing",!1,r),o=i,a=Ge(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(_e.test(a)){if(!n)return a;a="auto"}return(!le.boxSizingReliable()&&i||!le.reliableTrDimensions()&&fe(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===ce.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===ce.css(e,"boxSizing",!1,r),(o=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+it(e,t,n||(i?"border":"content"),o,r,a)+"px"}function at(e,t,n,r,i){return new at.prototype.init(e,t,n,r,i)}ce.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ge(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=F(t),u=Xe.test(t),l=e.style;if(u||(t=Ze(s)),a=ce.cssHooks[t]||ce.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:l[t];"string"===(o=typeof n)&&(i=Y.exec(n))&&i[1]&&(n=te(e,t,i),o="number"),null!=n&&n==n&&("number"!==o||u||(n+=i&&i[3]||(ce.cssNumber[s]?"":"px")),le.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(u?l.setProperty(t,n):l[t]=n))}},css:function(e,t,n,r){var i,o,a,s=F(t);return Xe.test(t)||(t=Ze(s)),(a=ce.cssHooks[t]||ce.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=Ge(e,t,r)),"normal"===i&&t in nt&&(i=nt[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),ce.each(["height","width"],function(e,u){ce.cssHooks[u]={get:function(e,t,n){if(t)return!et.test(ce.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?ot(e,u,n):ze(e,tt,function(){return ot(e,u,n)})},set:function(e,t,n){var r,i=Ue(e),o=!le.scrollboxSize()&&"absolute"===i.position,a=(o||n)&&"border-box"===ce.css(e,"boxSizing",!1,i),s=n?it(e,u,n,a,i):0;return a&&o&&(s-=Math.ceil(e["offset"+u[0].toUpperCase()+u.slice(1)]-parseFloat(i[u])-it(e,u,"border",!1,i)-.5)),s&&(r=Y.exec(t))&&"px"!==(r[3]||"px")&&(e.style[u]=t,t=ce.css(e,u)),rt(0,t,s)}}}),ce.cssHooks.marginLeft=Ye(le.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Ge(e,"marginLeft"))||e.getBoundingClientRect().left-ze(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),ce.each({margin:"",padding:"",border:"Width"},function(i,o){ce.cssHooks[i+o]={expand:function(e){for(var t=0,n={},r="string"==typeof e?e.split(" "):[e];t<4;t++)n[i+Q[t]+o]=r[t]||r[t-2]||r[0];return n}},"margin"!==i&&(ce.cssHooks[i+o].set=rt)}),ce.fn.extend({css:function(e,t){return R(this,function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=Ue(e),i=t.length;a<i;a++)o[t[a]]=ce.css(e,t[a],!1,r);return o}return void 0!==n?ce.style(e,t,n):ce.css(e,t)},e,t,1<arguments.length)}}),((ce.Tween=at).prototype={constructor:at,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||ce.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(ce.cssNumber[n]?"":"px")},cur:function(){var e=at.propHooks[this.prop];return e&&e.get?e.get(this):at.propHooks._default.get(this)},run:function(e){var t,n=at.propHooks[this.prop];return this.options.duration?this.pos=t=ce.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):at.propHooks._default.set(this),this}}).init.prototype=at.prototype,(at.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=ce.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){ce.fx.step[e.prop]?ce.fx.step[e.prop](e):1!==e.elem.nodeType||!ce.cssHooks[e.prop]&&null==e.elem.style[Ze(e.prop)]?e.elem[e.prop]=e.now:ce.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=at.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},ce.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},ce.fx=at.prototype.init,ce.fx.step={};var st,ut,lt,ct,ft=/^(?:toggle|show|hide)$/,pt=/queueHooks$/;function dt(){ut&&(!1===C.hidden&&ie.requestAnimationFrame?ie.requestAnimationFrame(dt):ie.setTimeout(dt,ce.fx.interval),ce.fx.tick())}function ht(){return ie.setTimeout(function(){st=void 0}),st=Date.now()}function gt(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=Q[r])]=i["padding"+n]=e;
vendor: 32,095 bytes, lines 2-58
2return t&&(i.opacity=i.width=e),i}function vt(e,t,n){for(var r,i=(yt.tweeners[t]||[]).concat(yt.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function yt(o,e,t){var n,a,r=0,i=yt.prefilters.length,s=ce.Deferred().always(function(){delete u.elem}),u=function(){if(a)return!1;for(var e=st||ht(),t=Math.max(0,l.startTime+l.duration-e),n=1-(t/l.duration||0),r=0,i=l.tweens.length;r<i;r++)l.tweens[r].run(n);return s.notifyWith(o,[l,n,t]),n<1&&i?t:(i||s.notifyWith(o,[l,1,0]),s.resolveWith(o,[l]),!1)},l=s.promise({elem:o,props:ce.extend({},e),opts:ce.extend(!0,{specialEasing:{},easing:ce.easing._default},t),originalProperties:e,originalOptions:t,startTime:st||ht(),duration:t.duration,tweens:[],createTween:function(e,t){var n=ce.Tween(o,l.opts,e,t,l.opts.specialEasing[e]||l.opts.easing);return l.tweens.push(n),n},stop:function(e){var t=0,n=e?l.tweens.length:0;if(a)return this;for(a=!0;t<n;t++)l.tweens[t].run(1);return e?(s.notifyWith(o,[l,1,0]),s.resolveWith(o,[l,e])):s.rejectWith(o,[l,e]),this}}),c=l.props;for(!function(e,t){var n,r,i,o,a;for(n in e)if(i=t[r=F(n)],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(a=ce.cssHooks[r])&&"expand"in a)for(n in o=a.expand(o),delete e[r],o)n in e||(e[n]=o[n],t[n]=i);else t[r]=i}(c,l.opts.specialEasing);r<i;r++)if(n=yt.prefilters[r].call(l,o,c,l.opts))return v(n.stop)&&(ce._queueHooks(l.elem,l.opts.queue).stop=n.stop.bind(n)),n;return ce.map(c,vt,l),v(l.opts.start)&&l.opts.start.call(o,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),ce.fx.timer(ce.extend(u,{elem:o,anim:l,queue:l.opts.queue})),l}ce.Animation=ce.extend(yt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return te(n.elem,e,Y.exec(t),n),n}]},tweener:function(e,t){v(e)?(t=e,e=["*"]):e=e.match(D);for(var n,r=0,i=e.length;r<i;r++)n=e[r],yt.tweeners[n]=yt.tweeners[n]||[],yt.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,o,a,s,u,l,c,f="width"in t||"height"in t,p=this,d={},h=e.style,g=e.nodeType&&ee(e),v=_.get(e,"fxshow");for(r in n.queue||(null==(a=ce._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,p.always(function(){p.always(function(){a.unqueued--,ce.queue(e,"fx").length||a.empty.fire()})})),t)if(i=t[r],ft.test(i)){if(delete t[r],o=o||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!v||void 0===v[r])continue;g=!0}d[r]=v&&v[r]||ce.style(e,r)}if((u=!ce.isEmptyObject(t))||!ce.isEmptyObject(d))for(r in f&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(l=v&&v.display)&&(l=_.get(e,"display")),"none"===(c=ce.css(e,"display"))&&(l?c=l:(re([e],!0),l=e.style.display||l,c=ce.css(e,"display"),re([e]))),("inline"===c||"inline-block"===c&&null!=l)&&"none"===ce.css(e,"float")&&(u||(p.done(function(){h.display=l}),null==l&&(c=h.display,l="none"===c?"":c)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",p.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),u=!1,d)u||(v?"hidden"in v&&(g=v.hidden):v=_.access(e,"fxshow",{display:l}),o&&(v.hidden=!g),g&&re([e],!0),p.done(function(){for(r in g||re([e]),_.remove(e,"fxshow"),d)ce.style(e,r,d[r])})),u=vt(g?v[r]:0,r,p),r in v||(v[r]=u.start,g&&(u.end=u.start,u.start=0))}],prefilter:function(e,t){t?yt.prefilters.unshift(e):yt.prefilters.push(e)}}),ce.speed=function(e,t,n){var r=e&&"object"==typeof e?ce.extend({},e):{complete:n||!n&&t||v(e)&&e,duration:e,easing:n&&t||t&&!v(t)&&t};return ce.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in ce.fx.speeds?r.duration=ce.fx.speeds[r.duration]:r.duration=ce.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){v(r.old)&&r.old.call(this),r.queue&&ce.dequeue(this,r.queue)},r},ce.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ee).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(t,e,n,r){var i=ce.isEmptyObject(t),o=ce.speed(e,n,r),a=function(){var e=yt(this,ce.extend({},t),o);(i||_.get(this,"finish"))&&e.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(i,e,o){var a=function(e){var t=e.stop;delete e.stop,t(o)};return"string"!=typeof i&&(o=e,e=i,i=void 0),e&&this.queue(i||"fx",[]),this.each(function(){var e=!0,t=null!=i&&i+"queueHooks",n=ce.timers,r=_.get(this);if(t)r[t]&&r[t].stop&&a(r[t]);else for(t in r)r[t]&&r[t].stop&&pt.test(t)&&a(r[t]);for(t=n.length;t--;)n[t].elem!==this||null!=i&&n[t].queue!==i||(n[t].anim.stop(o),e=!1,n.splice(t,1));!e&&o||ce.dequeue(this,i)})},finish:function(a){return!1!==a&&(a=a||"fx"),this.each(function(){var e,t=_.get(this),n=t[a+"queue"],r=t[a+"queueHooks"],i=ce.timers,o=n?n.length:0;for(t.finish=!0,ce.queue(this,a,[]),r&&r.stop&&r.stop.call(this,!0),e=i.length;e--;)i[e].elem===this&&i[e].queue===a&&(i[e].anim.stop(!0),i.splice(e,1));for(e=0;e<o;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete t.finish})}}),ce.each(["toggle","show","hide"],function(e,r){var i=ce.fn[r];ce.fn[r]=function(e,t,n){return null==e||"boolean"==typeof e?i.apply(this,arguments):this.animate(gt(r,!0),e,t,n)}}),ce.each({slideDown:gt("show"),slideUp:gt("hide"),slideToggle:gt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,r){ce.fn[e]=function(e,t,n){return this.animate(r,e,t,n)}}),ce.timers=[],ce.fx.tick=function(){var e,t=0,n=ce.timers;for(st=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||ce.fx.stop(),st=void 0},ce.fx.timer=function(e){ce.timers.push(e),ce.fx.start()},ce.fx.interval=13,ce.fx.start=function(){ut||(ut=!0,dt())},ce.fx.stop=function(){ut=null},ce.fx.speeds={slow:600,fast:200,_default:400},ce.fn.delay=function(r,e){return r=ce.fx&&ce.fx.speeds[r]||r,e=e||"fx",this.queue(e,function(e,t){var n=ie.setTimeout(e,r);t.stop=function(){ie.clearTimeout(n)}})},lt=C.createElement("input"),ct=C.createElement("select").appendChild(C.createElement("option")),lt.type="checkbox",le.checkOn=""!==lt.value,le.optSelected=ct.selected,(lt=C.createElement("input")).value="t",lt.type="radio",le.radioValue="t"===lt.value;var mt,xt=ce.expr.attrHandle;ce.fn.extend({attr:function(e,t){return R(this,ce.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){ce.removeAttr(this,e)})}}),ce.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"==typeof e.getAttribute?ce.prop(e,t,n):(1===o&&ce.isXMLDoc(e)||(i=ce.attrHooks[t.toLowerCase()]||(ce.expr.match.bool.test(t)?mt:void 0)),void 0!==n?null===n?void ce.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=ce.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!le.radioValue&&"radio"===t&&fe(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(D);if(i&&1===e.nodeType)while(n=i[r++])e.removeAttribute(n)}}),mt={set:function(e,t,n){return!1===t?ce.removeAttr(e,n):e.setAttribute(n,n),n}},ce.each(ce.expr.match.bool.source.match(/\w+/g),function(e,t){var a=xt[t]||ce.find.attr;xt[t]=function(e,t,n){var r,i,o=t.toLowerCase();return n||(i=xt[o],xt[o]=r,r=null!=a(e,t,n)?o:null,xt[o]=i),r}});var bt=/^(?:input|select|textarea|button)$/i,wt=/^(?:a|area)$/i;function Tt(e){return(e.match(D)||[]).join(" ")}function Ct(e){return e.getAttribute&&e.getAttribute("class")||""}function kt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(D)||[]}ce.fn.extend({prop:function(e,t){return R(this,ce.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[ce.propFix[e]||e]})}}),ce.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&ce.isXMLDoc(e)||(t=ce.propFix[t]||t,i=ce.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=ce.find.attr(e,"tabindex");return t?parseInt(t,10):bt.test(e.nodeName)||wt.test(e.nodeName)&&e.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),le.optSelected||(ce.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),ce.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){ce.propFix[this.toLowerCase()]=this}),ce.fn.extend({addClass:function(t){var e,n,r,i,o,a;return v(t)?this.each(function(e){ce(this).addClass(t.call(this,e,Ct(this)))}):(e=kt(t)).length?this.each(function(){if(r=Ct(this),n=1===this.nodeType&&" "+Tt(r)+" "){for(o=0;o<e.length;o++)i=e[o],n.indexOf(" "+i+" ")<0&&(n+=i+" ");a=Tt(n),r!==a&&this.setAttribute("class",a)}}):this},removeClass:function(t){var e,n,r,i,o,a;return v(t)?this.each(function(e){ce(this).removeClass(t.call(this,e,Ct(this)))}):arguments.length?(e=kt(t)).length?this.each(function(){if(r=Ct(this),n=1===this.nodeType&&" "+Tt(r)+" "){for(o=0;o<e.length;o++){i=e[o];while(-1<n.indexOf(" "+i+" "))n=n.replace(" "+i+" "," ")}a=Tt(n),r!==a&&this.setAttribute("class",a)}}):this:this.attr("class","")},toggleClass:function(t,n){var e,r,i,o,a=typeof t,s="string"===a||Array.isArray(t);return v(t)?this.each(function(e){ce(this).toggleClass(t.call(this,e,Ct(this),n),n)}):"boolean"==typeof n&&s?n?this.addClass(t):this.removeClass(t):(e=kt(t),this.each(function(){if(s)for(o=ce(this),i=0;i<e.length;i++)r=e[i],o.hasClass(r)?o.removeClass(r):o.addClass(r);else void 0!==t&&"boolean"!==a||((r=Ct(this))&&_.set(this,"__className__",r),this.setAttribute&&this.setAttribute("class",r||!1===t?"":_.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,r=0;t=" "+e+" ";while(n=this[r++])if(1===n.nodeType&&-1<(" "+Tt(Ct(n))+" ").indexOf(t))return!0;return!1}});var St=/\r/g;ce.fn.extend({val:function(n){var r,e,i,t=this[0];return arguments.length?(i=v(n),this.each(function(e){var t;1===this.nodeType&&(null==(t=i?n.call(this,e,ce(this).val()):n)?t="":"number"==typeof t?t+="":Array.isArray(t)&&(t=ce.map(t,function(e){return null==e?"":e+""})),(r=ce.valHooks[this.type]||ce.valHooks[this.nodeName.toLowerCase()])&&"set"in r&&void 0!==r.set(this,t,"value")||(this.value=t))})):t?(r=ce.valHooks[t.type]||ce.valHooks[t.nodeName.toLowerCase()])&&"get"in r&&void 0!==(e=r.get(t,"value"))?e:"string"==typeof(e=t.value)?e.replace(St,""):null==e?"":e:void 0}}),ce.extend({valHooks:{option:{get:function(e){var t=ce.find.attr(e,"value");return null!=t?t:Tt(ce.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],u=a?o+1:i.length;for(r=o<0?u:a?o:0;r<u;r++)if(((n=i[r]).selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!fe(n.parentNode,"optgroup"))){if(t=ce(n).val(),a)return t;s.push(t)}return s},set:function(e,t){var n,r,i=e.options,o=ce.makeArray(t),a=i.length;while(a--)((r=i[a]).selected=-1<ce.inArray(ce.valHooks.option.get(r),o))&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),ce.each(["radio","checkbox"],function(){ce.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<ce.inArray(ce(e).val(),t)}},le.checkOn||(ce.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var Et=ie.location,jt={guid:Date.now()},At=/\?/;ce.parseXML=function(e){var t,n;if(!e||"string"!=typeof e)return null;try{t=(new ie.DOMParser).parseFromString(e,"text/xml")}catch(e){}return n=t&&t.getElementsByTagName("parsererror")[0],t&&!n||ce.error("Invalid XML: "+(n?ce.map(n.childNodes,function(e){return e.textContent}).join("\n"):e)),t};var Dt=/^(?:focusinfocus|focusoutblur)$/,Nt=function(e){e.stopPropagation()};ce.extend(ce.event,{trigger:function(e,t,n,r){var i,o,a,s,u,l,c,f,p=[n||C],d=ue.call(e,"type")?e.type:e,h=ue.call(e,"namespace")?e.namespace.split("."):[];if(o=f=a=n=n||C,3!==n.nodeType&&8!==n.nodeType&&!Dt.test(d+ce.event.triggered)&&(-1<d.indexOf(".")&&(d=(h=d.split(".")).shift(),h.sort()),u=d.indexOf(":")<0&&"on"+d,(e=e[ce.expando]?e:new ce.Event(d,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=h.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:ce.makeArray(t,[e]),c=ce.event.special[d]||{},r||!c.trigger||!1!==c.trigger.apply(n,t))){if(!r&&!c.noBubble&&!y(n)){for(s=c.delegateType||d,Dt.test(s+d)||(o=o.parentNode);o;o=o.parentNode)p.push(o),a=o;a===(n.ownerDocument||C)&&p.push(a.defaultView||a.parentWindow||ie)}i=0;while((o=p[i++])&&!e.isPropagationStopped())f=o,e.type=1<i?s:c.bindType||d,(l=(_.get(o,"events")||Object.create(null))[e.type]&&_.get(o,"handle"))&&l.apply(o,t),(l=u&&o[u])&&l.apply&&$(o)&&(e.result=l.apply(o,t),!1===e.result&&e.preventDefault());return e.type=d,r||e.isDefaultPrevented()||c._default&&!1!==c._default.apply(p.pop(),t)||!$(n)||u&&v(n[d])&&!y(n)&&((a=n[u])&&(n[u]=null),ce.event.triggered=d,e.isPropagationStopped()&&f.addEventListener(d,Nt),n[d](),e.isPropagationStopped()&&f.removeEventListener(d,Nt),ce.event.triggered=void 0,a&&(n[u]=a)),e.result}},simulate:function(e,t,n){var r=ce.extend(new ce.Event,n,{type:e,isSimulated:!0});ce.event.trigger(r,null,t)}}),ce.fn.extend({trigger:function(e,t){return this.each(function(){ce.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return ce.event.trigger(e,t,n,!0)}});var qt=/\[\]$/,Lt=/\r?\n/g,Ht=/^(?:submit|button|image|reset|file)$/i,Ot=/^(?:input|select|textarea|keygen)/i;function Pt(n,e,r,i){var t;if(Array.isArray(e))ce.each(e,function(e,t){r||qt.test(n)?i(n,t):Pt(n+"["+("object"==typeof t&&null!=t?e:"")+"]",t,r,i)});else if(r||"object"!==x(e))i(n,e);else for(t in e)Pt(n+"["+t+"]",e[t],r,i)}ce.param=function(e,t){var n,r=[],i=function(e,t){var n=v(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!ce.isPlainObject(e))ce.each(e,function(){i(this.name,this.value)});else for(n in e)Pt(n,e[n],t,i);return r.join("&")},ce.fn.extend({serialize:function(){return ce.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=ce.prop(this,"elements");return e?ce.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!ce(this).is(":disabled")&&Ot.test(this.nodeName)&&!Ht.test(e)&&(this.checked||!we.test(e))}).map(function(e,t){var n=ce(this).val();return null==n?null:Array.isArray(n)?ce.map(n,function(e){return{name:t.name,value:e.replace(Lt,"\r\n")}}):{name:t.name,value:n.replace(Lt,"\r\n")}}).get()}});var Rt=/%20/g,Mt=/#.*$/,It=/([?&])_=[^&]*/,Wt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ft=/^(?:GET|HEAD)$/,$t=/^\/\//,Bt={},_t={},Xt="*/".concat("*"),Ut=C.createElement("a");function zt(o){return function(e,t){"string"!=typeof e&&(t=e,e="*");var n,r=0,i=e.toLowerCase().match(D)||[];if(v(t))while(n=i[r++])"+"===n[0]?(n=n.slice(1)||"*",(o[n]=o[n]||[]).unshift(t)):(o[n]=o[n]||[]).push(t)}}function Vt(t,i,o,a){var s={},u=t===_t;function l(e){var r;return s[e]=!0,ce.each(t[e]||[],function(e,t){var n=t(i,o,a);return"string"!=typeof n||u||s[n]?u?!(r=n):void 0:(i.dataTypes.unshift(n),l(n),!1)}),r}return l(i.dataTypes[0])||!s["*"]&&l("*")}function Gt(e,t){var n,r,i=ce.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&ce.extend(!0,e,r),e}Ut.href=Et.href,ce.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Et.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Et.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Xt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":ce.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Gt(Gt(e,ce.ajaxSettings),t):Gt(ce.ajaxSettings,e)},ajaxPrefilter:zt(Bt),ajaxTransport:zt(_t),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var c,f,p,n,d,r,h,g,i,o,v=ce.ajaxSetup({},t),y=v.context||v,m=v.context&&(y.nodeType||y.jquery)?ce(y):ce.event,x=ce.Deferred(),b=ce.Callbacks("once memory"),w=v.statusCode||{},a={},s={},u="canceled",T={readyState:0,getResponseHeader:function(e){var t;if(h){if(!n){n={};while(t=Wt.exec(p))n[t[1].toLowerCase()+" "]=(n[t[1].toLowerCase()+" "]||[]).concat(t[2])}t=n[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return h?p:null},setRequestHeader:function(e,t){return null==h&&(e=s[e.toLowerCase()]=s[e.toLowerCase()]||e,a[e]=t),this},overrideMimeType:function(e){return null==h&&(v.mimeType=e),this},statusCode:function(e){var t;if(e)if(h)T.always(e[T.status]);else for(t in e)w[t]=[w[t],e[t]];return this},abort:function(e){var t=e||u;return c&&c.abort(t),l(0,t),this}};if(x.promise(T),v.url=((e||v.url||Et.href)+"").replace($t,Et.protocol+"//"),v.type=t.method||t.type||v.method||v.type,v.dataTypes=(v.dataType||"*").toLowerCase().match(D)||[""],null==v.crossDomain){r=C.createElement("a");try{r.href=v.url,r.href=r.href,v.crossDomain=Ut.protocol+"//"+Ut.host!=r.protocol+"//"+r.host}catch(e){v.crossDomain=!0}}if(v.data&&v.processData&&"string"!=typeof v.data&&(v.data=ce.param(v.data,v.traditional)),Vt(Bt,v,t,T),h)return T;for(i in(g=ce.event&&v.global)&&0==ce.active++&&ce.event.trigger("ajaxStart"),v.type=v.type.toUpperCase(),v.hasContent=!Ft.test(v.type),f=v.url.replace(Mt,""),v.hasContent?v.data&&v.processData&&0===(v.contentType||"").indexOf("application/x-www-form-urlencoded")&&(v.data=v.data.replace(Rt,"+")):(o=v.url.slice(f.length),v.data&&(v.processData||"string"==typeof v.data)&&(f+=(At.test(f)?"&":"?")+v.data,delete v.data),!1===v.cache&&(f=f.replace(It,"$1"),o=(At.test(f)?"&":"?")+"_="+jt.guid+++o),v.url=f+o),v.ifModified&&(ce.lastModified[f]&&T.setRequestHeader("If-Modified-Since",ce.lastModified[f]),ce.etag[f]&&T.setRequestHeader("If-None-Match",ce.etag[f])),(v.data&&v.hasContent&&!1!==v.contentType||t.contentType)&&T.setRequestHeader("Content-Type",v.contentType),T.setRequestHeader("Accept",v.dataTypes[0]&&v.accepts[v.dataTypes[0]]?v.accepts[v.dataTypes[0]]+("*"!==v.dataTypes[0]?", "+Xt+"; q=0.01":""):v.accepts["*"]),v.headers)T.setRequestHeader(i,v.headers[i]);if(v.beforeSend&&(!1===v.beforeSend.call(y,T,v)||h))return T.abort();if(u="abort",b.add(v.complete),T.done(v.success),T.fail(v.error),c=Vt(_t,v,t,T)){if(T.readyState=1,g&&m.trigger("ajaxSend",[T,v]),h)return T;v.async&&0<v.timeout&&(d=ie.setTimeout(function(){T.abort("timeout")},v.timeout));try{h=!1,c.send(a,l)}catch(e){if(h)throw e;l(-1,e)}}else l(-1,"No Transport");function l(e,t,n,r){var i,o,a,s,u,l=t;h||(h=!0,d&&ie.clearTimeout(d),c=void 0,p=r||"",T.readyState=0<e?4:0,i=200<=e&&e<300||304===e,n&&(s=function(e,t,n){var r,i,o,a,s=e.contents,u=e.dataTypes;while("*"===u[0])u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||e.converters[i+" "+u[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==u[0]&&u.unshift(o),n[o]}(v,T,n)),!i&&-1<ce.inArray("script",v.dataTypes)&&ce.inArray("json",v.dataTypes)<0&&(v.converters["text script"]=function(){}),s=function(e,t,n,r){var i,o,a,s,u,l={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)l[a.toLowerCase()]=e.converters[a];o=c.shift();while(o)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=c.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(a=l[u+" "+o]||l["* "+o]))for(i in l)if((s=i.split(" "))[1]===o&&(a=l[u+" "+s[0]]||l["* "+s[0]])){!0===a?a=l[i]:!0!==l[i]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&e["throws"])t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}(v,s,T,i),i?(v.ifModified&&((u=T.getResponseHeader("Last-Modified"))&&(ce.lastModified[f]=u),(u=T.getResponseHeader("etag"))&&(ce.etag[f]=u)),204===e||"HEAD"===v.type?l="nocontent":304===e?l="notmodified":(l=s.state,o=s.data,i=!(a=s.error))):(a=l,!e&&l||(l="error",e<0&&(e=0))),T.status=e,T.statusText=(t||l)+"",i?x.resolveWith(y,[o,l,T]):x.rejectWith(y,[T,l,a]),T.statusCode(w),w=void 0,g&&m.trigger(i?"ajaxSuccess":"ajaxError",[T,v,i?o:a]),b.fireWith(y,[T,l]),g&&(m.trigger("ajaxComplete",[T,v]),--ce.active||ce.event.trigger("ajaxStop")))}return T},getJSON:function(e,t,n){return ce.get(e,t,n,"json")},getScript:function(e,t){return ce.get(e,void 0,t,"script")}}),ce.each(["get","post"],function(e,i){ce[i]=function(e,t,n,r){return v(t)&&(r=r||n,n=t,t=void 0),ce.ajax(ce.extend({url:e,type:i,dataType:r,data:t,success:n},ce.isPlainObject(e)&&e))}}),ce.ajaxPrefilter(function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")}),ce._evalUrl=function(e,t,n){return ce.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){ce.globalEval(e,t,n)}})},ce.fn.extend({wrapAll:function(e){var t;return this[0]&&(v(e)&&(e=e.call(this[0])),t=ce(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstElementChild)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(n){return v(n)?this.each(function(e){ce(this).wrapInner(n.call(this,e))}):this.each(function(){var e=ce(this),t=e.contents();t.length?t.wrapAll(n):e.append(n)})},wrap:function(t){var n=v(t);return this.each(function(e){ce(this).wrapAll(n?t.call(this,e):t)})},unwrap:function(e){return this.parent(e).not("body").each(function(){ce(this).replaceWith(this.childNodes)}),this}}),ce.expr.pseudos.hidden=function(e){return!ce.expr.pseudos.visible(e)},ce.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},ce.ajaxSettings.xhr=function(){try{return new ie.XMLHttpRequest}catch(e){}};var Yt={0:200,1223:204},Qt=ce.ajaxSettings.xhr();le.cors=!!Qt&&"withCredentials"in Qt,le.ajax=Qt=!!Qt,ce.ajaxTransport(function(i){var o,a;if(le.cors||Qt&&!i.crossDomain)return{send:function(e,t){var n,r=i.xhr();if(r.open(i.type,i.url,i.async,i.username,i.password),i.xhrFields)for(n in i.xhrFields)r[n]=i.xhrFields[n];for(n in i.mimeType&&r.overrideMimeType&&r.overrideMimeType(i.mimeType),i.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e)r.setRequestHeader(n,e[n]);o=function(e){return function(){o&&(o=a=r.onload=r.onerror=r.onabort=r.ontimeout=r.onreadystatechange=null,"abort"===e?r.abort():"error"===e?"number"!=typeof r.status?t(0,"error"):t(r.status,r.statusText):t(Yt[r.status]||r.status,r.statusText,"text"!==(r.responseType||"text")||"string"!=typeof r.responseText?{binary:r.response}:{text:r.responseText},r.getAllResponseHeaders()))}},r.onload=o(),a=r.onerror=r.ontimeout=o("error"),void 0!==r.onabort?r.onabort=a:r.onreadystatechange=function(){4===r.readyState&&ie.setTimeout(function(){o&&a()})},o=o("abort");try{r.send(i.hasContent&&i.data||null)}catch(e){if(o)throw e}},abort:function(){o&&o()}}}),ce.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),ce.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return ce.globalEval(e),e}}}),ce.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),ce.ajaxTransport("script",function(n){var r,i;if(n.crossDomain||n.scriptAttrs)return{send:function(e,t){r=ce("<script>").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),C.head.appendChild(r[0])},abort:function(){i&&i()}}});var Jt,Kt=[],Zt=/(=)\?(?=&|$)|\?\?/;ce.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Kt.pop()||ce.expando+"_"+jt.guid++;return this[e]=!0,e}}),ce.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(Zt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Zt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=v(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Zt,"$1"+r):!1!==e.jsonp&&(e.url+=(At.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||ce.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=ie[r],ie[r]=function(){o=arguments},n.always(function(){void 0===i?ce(ie).removeProp(r):ie[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,Kt.push(r)),o&&v(i)&&i(o[0]),o=i=void 0}),"script"}),le.createHTMLDocument=((Jt=C.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Jt.childNodes.length),ce.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(le.createHTMLDocument?((r=(t=C.implementation.createHTMLDocument("")).createElement("base")).href=C.location.href,t.head.appendChild(r)):t=C),o=!n&&[],(i=w.exec(e))?[t.createElement(i[1])]:(i=Ae([e],t,o),o&&o.length&&ce(o).remove(),ce.merge([],i.childNodes)));var r,i,o},ce.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1<s&&(r=Tt(e.slice(s)),e=e.slice(0,s)),v(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),0<a.length&&ce.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments,a.html(r?ce("<div>").append(ce.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},ce.expr.pseudos.animated=function(t){return ce.grep(ce.timers,function(e){return t===e.elem}).length},ce.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=ce.css(e,"position"),c=ce(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=ce.css(e,"top"),u=ce.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),v(t)&&(t=t.call(e,n,ce.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},ce.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){ce.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===ce.css(r,"position"))t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===ce.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=ce(e).offset()).top+=ce.css(e,"borderTopWidth",!0),i.left+=ce.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-ce.css(r,"marginTop",!0),left:t.left-i.left-ce.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===ce.css(e,"position"))e=e.offsetParent;return e||J})}}),ce.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;ce.fn[t]=function(e){return R(this,function(e,t,n){var r;if(y(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),ce.each(["top","left"],function(e,n){ce.cssHooks[n]=Ye(le.pixelPosition,function(e,t){if(t)return t=Ge(e,n),_e.test(t)?ce(e).position()[n]+"px":t})}),ce.each({Height:"height",Width:"width"},function(a,s){ce.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){ce.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return R(this,function(e,t,n){var r;return y(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?ce.css(e,t,i):ce.style(e,t,n,i)},s,n?e:void 0,n)}})}),ce.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){ce.fn[t]=function(e){return this.on(t,e)}}),ce.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),ce.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){ce.fn[n]=function(e,t){return 0<arguments.length?this.on(n,null,e,t):this.trigger(n)}});var en=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;ce.proxy=function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),v(e))return r=ae.call(arguments,2),(i=function(){return e.apply(t||this,r.concat(ae.call(arguments)))}).guid=e.guid=e.guid||ce.guid++,i},ce.holdReady=function(e){e?ce.readyWait++:ce.ready(!0)},ce.isArray=Array.isArray,ce.parseJSON=JSON.parse,ce.nodeName=fe,ce.isFunction=v,ce.isWindow=y,ce.camelCase=F,ce.type=x,ce.now=Date.now,ce.isNumeric=function(e){var t=ce.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},ce.trim=function(e){return null==e?"":(e+"").replace(en,"$1")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return ce});var tn=ie.jQuery,nn=ie.$;return ce.noConflict=function(e){return ie.$===ce&&(ie.$=nn),e&&ie.jQuery===ce&&(ie.jQuery=tn),ce},"undefined"==typeof e&&(ie.jQuery=ie.$=ce),ce});
3
4/*!
5  * Bootstrap util.js v4.6.1 (https://getbootstrap.com/)
6  * Copyright 2011-2021 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
7  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
8  */
9(function (global, factory) {
10  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('jquery')) :
11  typeof define === 'function' && define.amd ? define('bootstrap/util',['jquery'], factory) :
12  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Util = factory(global.jQuery));
13})(this, (function ($) { 'use strict';
14
15  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
16
17  var $__default = /*#__PURE__*/_interopDefaultLegacy($);
18
19  /**
20   * --------------------------------------------------------------------------
21   * Bootstrap (v4.6.1): util.js
22   * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
23   * --------------------------------------------------------------------------
24   */
25  /**
26   * Private TransitionEnd Helpers
27   */
28
29  var TRANSITION_END = 'transitionend';
30  var MAX_UID = 1000000;
31  var MILLISECONDS_MULTIPLIER = 1000; // Shoutout AngusCroll (https://goo.gl/pxwQGp)
32
33  function toType(obj) {
34    if (obj === null || typeof obj === 'undefined') {
35      return "" + obj;
36    }
37
38    return {}.toString.call(obj).match(/\s([a-z]+)/i)[1].toLowerCase();
39  }
40
41  function getSpecialTransitionEndEvent() {
42    return {
43      bindType: TRANSITION_END,
44      delegateType: TRANSITION_END,
45      handle: function handle(event) {
46        if ($__default["default"](event.target).is(this)) {
47          return event.handleObj.handler.apply(this, arguments); // eslint-disable-line prefer-rest-params
48        }
49
50        return undefined;
51      }
52    };
53  }
54
55  function transitionEndEmulator(duration) {
56    var _this = this;
57
58    var called = false;
59    $__default["default"](this).one(Util.TRANSITION_END, function () {
60      called = true;
61    });
62    setTimeout(function () {
63      if (!called) {
64        Util.triggerTransitionEnd(_this);
65      }
66    }, duration);
67    return this;
68  }
69
70  function setTransitionEndSupport() {
71    $__default["default"].fn.emulateTransitionEnd = transitionEndEmulator;
72    $__default["default"].event.special[Util.TRANSITION_END] = getSpecialTransitionEndEvent();
73  }
74  /**
75   * Public Util API
76   */
77
78
79  var Util = {
80    TRANSITION_END: 'bsTransitionEnd',
81    getUID: function getUID(prefix) {
82      do {
83        // eslint-disable-next-line no-bitwise
84        prefix += ~~(Math.random() * MAX_UID); // "~~" acts like a faster Math.floor() here
85      } while (document.getElementById(prefix));
86
87      return prefix;
88    },
89    getSelectorFromElement: function getSelectorFromElement(element) {
90      var selector = element.getAttribute('data-target');
91
92      if (!selector || selector === '#') {
93        var hrefAttr = element.getAttribute('href');
94        selector = hrefAttr && hrefAttr !== '#' ? hrefAttr.trim() : '';
95      }
96
97      try {
98        return document.querySelector(selector) ? selector : null;
99      } catch (_) {
100        return null;
101      }
102    },
103    getTransitionDurationFromElement: function getTransitionDurationFromElement(element) {
104      if (!element) {
105        return 0;
106      } // Get transition-duration of the element
107
108
109      var transitionDuration = $__default["default"](element).css('transition-duration');
110      var transitionDelay = $__default["default"](element).css('transition-delay');
111      var floatTransitionDuration = parseFloat(transitionDuration);
112      var floatTransitionDelay = parseFloat(transitionDelay); // Return 0 if element or transition duration is not found
113
114      if (!floatTransitionDuration && !floatTransitionDelay) {
115        return 0;
116      } // If multiple durations are defined, take the first
117
118
119      transitionDuration = transitionDuration.split(',')[0];
120      transitionDelay = transitionDelay.split(',')[0];
121      return (parseFloat(transitionDuration) + parseFloat(transitionDelay)) * MILLISECONDS_MULTIPLIER;
122    },
123    reflow: function reflow(element) {
124      return element.offsetHeight;
125    },
126    triggerTransitionEnd: function triggerTransitionEnd(element) {
127      $__default["default"](element).trigger(TRANSITION_END);
128    },
129    supportsTransitionEnd: function supportsTransitionEnd() {
130      return Boolean(TRANSITION_END);
131    },
132    isElement: function isElement(obj) {
133      return (obj[0] || obj).nodeType;
134    },
135    typeCheckConfig: function typeCheckConfig(componentName, config, configTypes) {
136      for (var property in configTypes) {
137        if (Object.prototype.hasOwnProperty.call(configTypes, property)) {
138          var expectedTypes = configTypes[property];
139          var value = config[property];
140          var valueType = value && Util.isElement(value) ? 'element' : toType(value);
141
142          if (!new RegExp(expectedTypes).test(valueType)) {
143            throw new Error(componentName.toUpperCase() + ": " + ("Option \"" + property + "\" provided type \"" + valueType + "\" ") + ("but expected type \"" + expectedTypes + "\"."));
144          }
145        }
146      }
147    },
148    findShadowRoot: function findShadowRoot(element) {
149      if (!document.documentElement.attachShadow) {
150        return null;
151      } // Can find the shadow root otherwise it'll return the document
152
153
154      if (typeof element.getRootNode === 'function') {
155        var root = element.getRootNode();
156        return root instanceof ShadowRoot ? root : null;
157      }
158
159      if (element instanceof ShadowRoot) {
160        return element;
161      } // when we don't find a shadow root
162
163
164      if (!element.parentNode) {
165        return null;
166      }
167
168      return Util.findShadowRoot(element.parentNode);
169    },
170    jQueryDetection: function jQueryDetection() {
171      if (typeof $__default["default"] === 'undefined') {
172        throw new TypeError('Bootstrap\'s JavaScript requires jQuery. jQuery must be included before Bootstrap\'s JavaScript.');
173      }
174
175      var version = $__default["default"].fn.jquery.split(' ')[0].split('.');
176      var minMajor = 1;
177      var ltMajor = 2;
178      var minMinor = 9;
179      var minPatch = 1;
180      var maxMajor = 4;
181
182      if (version[0] < ltMajor && version[1] < minMinor || version[0] === minMajor && version[1] === minMinor && version[2] < minPatch || version[0] >
182= maxMajor) {
183        throw new Error('Bootstrap\'s JavaScript requires at least jQuery v1.9.1 but less than v4.0.0');
184      }
185    }
186  };
187  Util.jQueryDetection();
188  setTransitionEndSupport();
189
190  return Util;
191
192}));
193
194/*!
195  * Bootstrap collapse.js v4.6.1 (https://getbootstrap.com/)
196  * Copyright 2011-2021 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
197  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
198  */
199(function (global, factory) {
200  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('jquery'), require('./util.js')) :
201  typeof define === 'function' && define.amd ? define('bootstrap/collapse',['jquery', './util'], factory) :
202  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Collapse = factory(global.jQuery, global.Util));
203})(this, (function ($, Util) { 'use strict';
204
205  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
206
207  var $__default = /*#__PURE__*/_interopDefaultLegacy($);
208  var Util__default = /*#__PURE__*/_interopDefaultLegacy(Util);
209
210  function _defineProperties(target, props) {
211    for (var i = 0; i < props.length; i++) {
212      var descriptor = props[i];
213      descriptor.enumerable = descriptor.enumerable || false;
214      descriptor.configurable = true;
215      if ("value" in descriptor) descriptor.writable = true;
216      Object.defineProperty(target, descriptor.key, descriptor);
217    }
218  }
219
220  function _createClass(Constructor, protoProps, staticProps) {
221    if (protoProps) _defineProperties(Constructor.prototype, protoProps);
222    if (staticProps) _defineProperties(Constructor, staticProps);
223    return Constructor;
224  }
225
226  function _extends() {
227    _extends = Object.assign || function (target) {
228      for (var i = 1; i < arguments.length; i++) {
229        var source = arguments[i];
230
231        for (var key in source) {
232          if (Object.prototype.hasOwnProperty.call(source, key)) {
233            target[key] = source[key];
234          }
235        }
236      }
237
238      return target;
239    };
240
241    return _extends.apply(this, arguments);
242  }
243
244  /**
245   * Constants
246   */
247
248  var NAME = 'collapse';
249  var VERSION = '4.6.1';
250  var DATA_KEY = 'bs.collapse';
251  var EVENT_KEY = "." + DATA_KEY;
252  var DATA_API_KEY = '.data-api';
253  var JQUERY_NO_CONFLICT = $__default["default"].fn[NAME];
254  var CLASS_NAME_SHOW = 'show';
255  var CLASS_NAME_COLLAPSE = 'collapse';
256  var CLASS_NAME_COLLAPSING = 'collapsing';
257  var CLASS_NAME_COLLAPSED = 'collapsed';
258  var DIMENSION_WIDTH = 'width';
259  var DIMENSION_HEIGHT = 'height';
260  var EVENT_SHOW = "show" + EVENT_KEY;
261  var EVENT_SHOWN = "shown" + EVENT_KEY;
262  var EVENT_HIDE = "hide" + EVENT_KEY;
263  var EVENT_HIDDEN = "hidden" + EVENT_KEY;
264  var EVENT_CLICK_DATA_API = "click" + EVENT_KEY + DATA_API_KEY;
265  var SELECTOR_ACTIVES = '.show, .collapsing';
266  var SELECTOR_DATA_TOGGLE = '[data-toggle="collapse"]';
267  var Default = {
268    toggle: true,
269    parent: ''
270  };
271  var DefaultType = {
272    toggle: 'boolean',
273    parent: '(string|element)'
274  };
275  /**
276   * Class definition
277   */
278
279  var Collapse = /*#__PURE__*/function () {
280    function Collapse(element, config) {
281      this._isTransitioning = false;
282      this._element = element;
283      this._config = this._getConfig(config);
284      this._triggerArray = [].slice.call(document.querySelectorAll("[data-toggle=\"collapse\"][href=\"#" + element.id + "\"]," + ("[data-toggle=\"collapse\"][data-target=\"#" + element.id + "\"]")));
285      var toggleList = [].slice.call(document.querySelectorAll(SELECTOR_DATA_TOGGLE));
286
287      for (var i = 0, len = toggleList.length; i < len; i++) {
288        var elem = toggleList[i];
289        var selector = Util__default["default"].getSelectorFromElement(elem);
290        var filterElement = [].slice.call(document.querySelectorAll(selector)).filter(function (foundElem) {
291          return foundElem === element;
292        });
293
294        if (selector !== null && filterElement.length > 0) {
295          this._selector = selector;
296
297          this._triggerArray.push(elem);
298        }
299      }
300
301      this._parent = this._config.parent ? this._getParent() : null;
302
303      if (!this._config.parent) {
304        this._addAriaAndCollapsedClass(this._element, this._triggerArray);
305      }
306
307      if (this._config.toggle) {
308        this.toggle();
309      }
310    } // Getters
311
312
313    var _proto = Collapse.prototype;
314
315    // Public
316    _proto.toggle = function toggle() {
317      if ($__default["default"](this._element).hasClass(CLASS_NAME_SHOW)) {
318        this.hide();
319      } else {
320        this.show();
321      }
322    };
323
324    _proto.show = function show() {
325      var _this = this;
326
327      if (this._isTransitioning || $__default["default"](this._element).hasClass(CLASS_NAME_SHOW)) {
328        return;
329      }
330
331      var actives;
332      var activesData;
333
334      if (this._parent) {
335        actives = [].slice.call(this._parent.querySelectorAll(SELECTOR_ACTIVES)).filter(function (elem) {
336          if (typeof _this._config.parent === 'string') {
337            return elem.getAttribute('data-parent') === _this._config.parent;
338          }
339
340          return elem.classList.contains(CLASS_NAME_COLLAPSE);
341        });
342
343        if (actives.length === 0) {
344          actives = null;
345        }
346      }
347
348      if (actives) {
349        activesData = $__default["default"](actives).not(this._selector).data(DATA_KEY);
350
351        if (activesData && activesData._isTransitioning) {
352          return;
353        }
354      }
355
356      var startEvent = $__default["default"].Event(EVENT_SHOW);
357      $__default["default"](this._element).trigger(startEvent);
358
359      if (startEvent.isDefaultPrevented()) {
360        return;
361      }
362
363      if (actives) {
364        Collapse._jQueryInterface.call($__default["default"](actives).not(this._selector), 'hide');
365
366        if (!activesData) {
367          $__default["default"](actives).data(DATA_KEY, null);
368        }
369      }
370
371      var dimension = this._getDimension();
372
373      $__default["default"](this._element).removeClass(CLASS_NAME_COLLAPSE).addClass(CLASS_NAME_COLLAPSING);
374      this._element.style[dimension] = 0;
375
376      if (this._triggerArray.length) {
377        $__default["default"](this._triggerArray).removeClass(CLASS_NAME_COLLAPSED).attr('aria-expanded', true);
378      }
379
380      this.setTransitioning(true);
381
382      var complete = function complete() {
383        $__default["default"](_this._element).removeClass(CLASS_NAME_COLLAPSING).addClass(CLASS_NAME_COLLAPSE + " " + CLASS_NAME_SHOW);
384        _this._element.style[dimension] = '';
385
386        _this.setTransitioning(false);
387
388        $__default["default"](_this._element).trigger(EVENT_SHOWN);
389      };
390
391      var capitalizedDimension = dimension[0].toUpperCase() + dimension.slice(1);
392      var scrollSize = "scroll" + capitalizedDimension;
393      var transitionDuration = Util__default["default"].getTransitionDurationFromElement(this._element);
394      $__default["default"](this._element).one(Util__default["default"].TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
395      this._element.style[dimension] = this._element[scrollSize] + "px";
396    };
397
398    _proto.hide = function hide() {
399      var _this2 = this;
400
401      if (this._isTransitioning || !$__default["default"](this._element).hasClass(CLASS_NAME_SHOW)) {
402        return;
403      }
404
405      var startEvent = $__default["default"].Event(EVENT_HIDE);
406      $__default["default"](this._element).trigger(startEvent);
407
408      if (startEvent.isDefaultPrevented()) {
409        return;
410      }
411
412      var dimension = this._getDimension();
413
414      this._element.style[dimension] = this._element.getBoundingClientRect()[dimension] + "px";
415      Util__default["default"].reflow(this._element);
416      $__default["default"](this._element).addClass(CLASS_NAME_COLLAPSING).removeClass(CLASS_NAME_COLLAPSE + " " + CLASS_NAME_SHOW);
417      var triggerArrayLength = this._triggerArray.length;
418
419      if (triggerArrayLength > 0) {
420        for (var i = 0; i < triggerArrayLength; i++) {
421          var trigger = this._triggerArray[i];
422          var selector = Util__default["default"].getSelectorFromElement(trigger);
423
424          if (selector !== null) {
425            var $elem = $__default["default"]([].slice.call(document.querySelectorAll(selector)));
426
427            if (!$elem.hasClass(CLASS_NAME_SHOW)) {
428              $__default["default"](trigger).addClass(CLASS_NAME_COLLAPSED).attr('aria-expanded', false);
429            }
430          }
431        }
432      }
433
434      this.setTransitioning(true);
435
436      var complete = function complete() {
437        _this2.setTransitioning(false);
438
439        $__default["default"](_this2._element).removeClass(CLASS_NAME_COLLAPSING).addClass(CLASS_NAME_COLLAPSE).trigger(EVENT_HIDDEN);
440      };
441
442      this._element.style[dimension] = '';
443      var transitionDuration = Util__default["default"].getTransitionDurationFromElement(this._element);
444      $__default["default"](this._element).one(Util__default["default"].TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
445    };
446
447    _proto.setTransitioning = function setTransitioning(isTransitioning) {
448      this._isTransitioning = isTransitioning;
449    };
450
451    _proto.dispose = function dispose() {
452      $__default["default"].removeData(this._element, DATA_KEY);
453      this._config = null;
454      this._parent = null;
455      this._element = null;
456      this._triggerArray = null;
457      this._isTransitioning = null;
458    } // Private
459    ;
460
461    _proto._getConfig = function _getConfig(config) {
462      config = _extends({}, Default, config);
463      config.toggle = Boolean(config.toggle); // Coerce string values
464
465      Util__default["default"].typeCheckConfig(NAME, config, DefaultType);
466      return config;
467    };
468
469    _proto._getDimension = function _getDimension() {
470      var hasWidth = $__default["default"](this._element).hasClass(DIMENSION_WIDTH);
471      return hasWidth ? DIMENSION_WIDTH : DIMENSION_HEIGHT;
472    };
473
474    _proto._getParent = function _getParent() {
475      var _this3 = this;
476
477      var parent;
478
479      if (Util__default["default"].isElement(this._config.parent)) {
480        parent = this._config.parent; // It's a jQuery object
481
482        if (typeof this._config.parent.jquery !== 'undefined') {
483          parent = this._config.parent[0];
484        }
485      } else {
486        parent = document.querySelector(this._config.parent);
487      }
488
489      var selector = "[data-toggle=\"collapse\"][data-parent=\"" + this._config.parent + "\"]";
490      var children = [].slice.call(parent.querySelectorAll(selector));
491      $__default["default"](children).each(function (i, element) {
492        _this3._addAriaAndCollapsedClass(Collapse._getTargetFromElement(element), [element]);
493      });
494      return parent;
495    };
496
497    _proto._addAriaAndCollapsedClass = function _addAriaAndCollapsedClass(element, triggerArray) {
498      var isOpen = $__default["default"](element).hasClass(CLASS_NAME_SHOW);
499
500      if (triggerArray.length) {
501        $__default["default"](triggerArray).toggleClass(CLASS_NAME_COLLAPSED, !isOpen).attr('aria-expanded', isOpen);
502      }
503    } // Static
504    ;
505
506    Collapse._getTargetFromElement = function _getTargetFromElement(element) {
507      var selector = Util__default["default"].getSelectorFromElement(element);
508      return selector ? document.querySelector(selector) : null;
509    };
510
511    Collapse._jQueryInterface = function _jQueryInterface(config) {
512      return this.each(function () {
513        var $element = $__default["default"](this);
514        var data = $element.data(DATA_KEY);
515
516        var _config = _extends({}, Default, $element.data(), typeof config === 'object' && config ? config : {});
517
518        if (!data && _config.toggle && typeof config === 'string' && /show|hide/.test(config)) {
519          _config.toggle = false;
520        }
521
522        if (!data) {
523          data = new Collapse(this, _config);
524          $element.data(DATA_KEY, data);
525        }
526
527        if (typeof config === 'string') {
528          if (typeof data[config] === 'undefined') {
529            throw new TypeError("No method named \"" + config + "\"");
530          }
531
532          data[config]();
533        }
534      });
535    };
536
537    _createClass(Collapse, null, [{
538      key: "VERSION",
539      get: function get() {
540        return VERSION;
541      }
542    }, {
543      key: "Default",
544      get: function get() {
545        return Default;
546      }
547    }]);
548
549    return Collapse;
550  }();
551  /**
552   * Data API implementation
553   */
554
555
556  $__default["default"](document).on(EVENT_CLICK_DATA_API, SELECTOR_DATA_TOGGLE, function (event) {
557    // preventDefault only for <a> elements (which change the URL) not inside the collapsible element
558    if (event.currentTarget.tagName === 'A') {
559      event.preventDefault();
560    }
561
562    var $trigger = $__default["default"](this);
563    var selector = Util__default["default"].getSelectorFromElement(this);
564    var selectors = [].slice.call(document.querySelectorAll(selector));
565    $__default["default"](selectors).each(function () {
566      var $target = $__default["default"](this);
567      var data = $target.data(DATA_KEY);
568      var config = data ? 'toggle' : $trigger.data();
569
570      Collapse._jQueryInterface.call($target, config);
571    });
572  });
573  /**
574   * jQuery
575   */
576
577  $__default["default"].fn[NAME] = Collapse._jQueryInterface;
578  $__default["default"].fn[NAME].Constructor = Collapse;
579
580  $__default["default"].fn[NAME].noConflict = function () {
581    $__default["default"].fn[NAME] = JQUERY_NO_CONFLICT;
582    return Collapse._jQueryInterface;
583  };
584
585  return Collapse;
586
587}));
588
589(function(root) {
590define("entreprendre/functions", ["jquery"], function() {
591  return (function() {
592//https://github.com/paypal/bootstrap-accessibility-plugin/blob/master/plugins/js/bootstrap-accessibility_1.0.3.js
593// GENERAL UTILITY FUNCTIONS
594// ===============================
595/**retouché car les fonctions global c'est MAL, et ca ne marche pas avec requireJS, on les mets dans un objet a11y*/
596;(function ($) {
597  "use strict";
598  $.fn.extend({
599    'a11y': {
600      'uniqueId': function (prefix) {
601        return (prefix || 'ui-id') + '-' + Math.random().toString(36).substring(2, 15)+Math.random().toString(36).substring(2, 15);
602      },
603      'removeMultiValAttributes': function (el, attr, val) {
604        var describedby = (el.attr(attr) || "").split(/\s+/), index = $.inArray(val, describedby);
605        if (index !== -1) {
606          describedby.splice(index, 1);
607        }
608        describedby = $.trim(describedby.join(" "));
609        if (describedby) {
610          el.attr(attr, describedby);
611        } else {
612          el.removeAttr(attr);
613        }
614      }
615    }
616  });
617})(jQuery);
618
619
620  }).apply(root, arguments);
621});
622}(this));
623
624/*
625 Copyright (C) Federico Zivolo 2020
626 Distributed under the MIT License (license terms are at http://opensource.org/licenses/MIT).
627 */(function(e,t){'object'==typeof exports&&'undefined'!=typeof module?module.exports=t():'function'==typeof define&&define.amd?define('bootstrap/popper',
vendor: 20,926 bytes, line 627
627t):e.Popper=t()})(this,function(){'use strict';function e(e){return e&&'[object Function]'==={}.toString.call(e)}function t(e,t){if(1!==e.nodeType)return[];var o=e.ownerDocument.defaultView,n=o.getComputedStyle(e,null);return t?n[t]:n}function o(e){return'HTML'===e.nodeName?e:e.parentNode||e.host}function n(e){if(!e)return document.body;switch(e.nodeName){case'HTML':case'BODY':return e.ownerDocument.body;case'#document':return e.body;}var i=t(e),r=i.overflow,p=i.overflowX,s=i.overflowY;return /(auto|scroll|overlay)/.test(r+s+p)?e:n(o(e))}function i(e){return e&&e.referenceNode?e.referenceNode:e}function r(e){return 11===e?re:10===e?pe:re||pe}function p(e){if(!e)return document.documentElement;for(var o=r(10)?document.body:null,n=e.offsetParent||null;n===o&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var i=n&&n.nodeName;return i&&'BODY'!==i&&'HTML'!==i?-1!==['TH','TD','TABLE'].indexOf(n.nodeName)&&'static'===t(n,'position')?p(n):n:e?e.ownerDocument.documentElement:document.documentElement}function s(e){var t=e.nodeName;return'BODY'!==t&&('HTML'===t||p(e.firstElementChild)===e)}function d(e){return null===e.parentNode?e:d(e.parentNode)}function a(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var o=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,n=o?e:t,i=o?t:e,r=document.createRange();r.setStart(n,0),r.setEnd(i,0);var l=r.commonAncestorContainer;if(e!==l&&t!==l||n.contains(i))return s(l)?l:p(l);var f=d(e);return f.host?a(f.host,t):a(e,d(t).host)}function l(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:'top',o='top'===t?'scrollTop':'scrollLeft',n=e.nodeName;if('BODY'===n||'HTML'===n){var i=e.ownerDocument.documentElement,r=e.ownerDocument.scrollingElement||i;return r[o]}return e[o]}function f(e,t){var o=2<arguments.length&&void 0!==arguments[2]&&arguments[2],n=l(t,'top'),i=l(t,'left'),r=o?-1:1;return e.top+=n*r,e.bottom+=n*r,e.left+=i*r,e.right+=i*r,e}function m(e,t){var o='x'===t?'Left':'Top',n='Left'==o?'Right':'Bottom';return parseFloat(e['border'+o+'Width'])+parseFloat(e['border'+n+'Width'])}function h(e,t,o,n){return ee(t['offset'+e],t['scroll'+e],o['client'+e],o['offset'+e],o['scroll'+e],r(10)?parseInt(o['offset'+e])+parseInt(n['margin'+('Height'===e?'Top':'Left')])+parseInt(n['margin'+('Height'===e?'Bottom':'Right')]):0)}function c(e){var t=e.body,o=e.documentElement,n=r(10)&&getComputedStyle(o);return{height:h('Height',t,o,n),width:h('Width',t,o,n)}}function g(e){return le({},e,{right:e.left+e.width,bottom:e.top+e.height})}function u(e){var o={};try{if(r(10)){o=e.getBoundingClientRect();var n=l(e,'top'),i=l(e,'left');o.top+=n,o.left+=i,o.bottom+=n,o.right+=i}else o=e.getBoundingClientRect()}catch(t){}var p={left:o.left,top:o.top,width:o.right-o.left,height:o.bottom-o.top},s='HTML'===e.nodeName?c(e.ownerDocument):{},d=s.width||e.clientWidth||p.width,a=s.height||e.clientHeight||p.height,f=e.offsetWidth-d,h=e.offsetHeight-a;if(f||h){var u=t(e);f-=m(u,'x'),h-=m(u,'y'),p.width-=f,p.height-=h}return g(p)}function b(e,o){var i=2<arguments.length&&void 0!==arguments[2]&&arguments[2],p=r(10),s='HTML'===o.nodeName,d=u(e),a=u(o),l=n(e),m=t(o),h=parseFloat(m.borderTopWidth),c=parseFloat(m.borderLeftWidth);i&&s&&(a.top=ee(a.top,0),a.left=ee(a.left,0));var b=g({top:d.top-a.top-h,left:d.left-a.left-c,width:d.width,height:d.height});if(b.marginTop=0,b.marginLeft=0,!p&&s){var w=parseFloat(m.marginTop),y=parseFloat(m.marginLeft);b.top-=h-w,b.bottom-=h-w,b.left-=c-y,b.right-=c-y,b.marginTop=w,b.marginLeft=y}return(p&&!i?o.contains(l):o===l&&'BODY'!==l.nodeName)&&(b=f(b,o)),b}function w(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],o=e.ownerDocument.documentElement,n=b(e,o),i=ee(o.clientWidth,window.innerWidth||0),r=ee(o.clientHeight,window.innerHeight||0),p=t?0:l(o),s=t?0:l(o,'left'),d={top:p-n.top+n.marginTop,left:s-n.left+n.marginLeft,width:i,height:r};return g(d)}function y(e){var n=e.nodeName;if('BODY'===n||'HTML'===n)return!1;if('fixed'===t(e,'position'))return!0;var i=o(e);return!!i&&y(i)}function E(e){if(!e||!e.parentElement||r())return document.documentElement;for(var o=e.parentElement;o&&'none'===t(o,'transform');)o=o.parentElement;return o||document.documentElement}function v(e,t,r,p){var s=4<arguments.length&&void 0!==arguments[4]&&arguments[4],d={top:0,left:0},l=s?E(e):a(e,i(t));if('viewport'===p)d=w(l,s);else{var f;'scrollParent'===p?(f=n(o(t)),'BODY'===f.nodeName&&(f=e.ownerDocument.documentElement)):'window'===p?f=e.ownerDocument.documentElement:f=p;var m=b(f,l,s);if('HTML'===f.nodeName&&!y(l)){var h=c(e.ownerDocument),g=h.height,u=h.width;d.top+=m.top-m.marginTop,d.bottom=g+m.top,d.left+=m.left-m.marginLeft,d.right=u+m.left}else d=m}r=r||0;var v='number'==typeof r;return d.left+=v?r:r.left||0,d.top+=v?r:r.top||0,d.right-=v?r:r.right||0,d.bottom-=v?r:r.bottom||0,d}function x(e){var t=e.width,o=e.height;return t*o}function O(e,t,o,n,i){var r=5<arguments.length&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf('auto'))return e;var p=v(o,n,r,i),s={top:{width:p.width,height:t.top-p.top},right:{width:p.right-t.right,height:p.height},bottom:{width:p.width,height:p.bottom-t.bottom},left:{width:t.left-p.left,height:p.height}},d=Object.keys(s).map(function(e){return le({key:e},s[e],{area:x(s[e])})}).sort(function(e,t){return t.area-e.area}),a=d.filter(function(e){var t=e.width,n=e.height;return t>=o.clientWidth&&n>=o.clientHeight}),l=0<a.length?a[0].key:d[0].key,f=e.split('-')[1];return l+(f?'-'+f:'')}function L(e,t,o){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null,r=n?E(t):a(t,i(o));return b(o,r,n)}function S(e){var t=e.ownerDocument.defaultView,o=t.getComputedStyle(e),n=parseFloat(o.marginTop||0)+parseFloat(o.marginBottom||0),i=parseFloat(o.marginLeft||0)+parseFloat(o.marginRight||0),r={width:e.offsetWidth+i,height:e.offsetHeight+n};return r}function T(e){var t={left:'right',right:'left',bottom:'top',top:'bottom'};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function C(e,t,o){o=o.split('-')[0];var n=S(e),i={width:n.width,height:n.height},r=-1!==['right','left'].indexOf(o),p=r?'top':'left',s=r?'left':'top',d=r?'height':'width',a=r?'width':'height';return i[p]=t[p]+t[d]/2-n[d]/2,i[s]=o===s?t[s]-n[a]:t[T(s)],i}function D(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function N(e,t,o){if(Array.prototype.findIndex)return e.findIndex(function(e){return e[t]===o});var n=D(e,function(e){return e[t]===o});return e.indexOf(n)}function P(t,o,n){var i=void 0===n?t:t.slice(0,N(t,'name',n));return i.forEach(function(t){t['function']&&console.warn('`modifier.function` is deprecated, use `modifier.fn`!');var n=t['function']||t.fn;t.enabled&&e(n)&&(o.offsets.popper=g(o.offsets.popper),o.offsets.reference=g(o.offsets.reference),o=n(o,t))}),o}function k(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=L(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=O(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=C(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?'fixed':'absolute',e=P(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function W(e,t){return e.some(function(e){var o=e.name,n=e.enabled;return n&&o===t})}function B(e){for(var t=[!1,'ms','Webkit','Moz','O'],o=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<t.length;n++){var i=t[n],r=i?''+i+o:e;if('undefined'!=typeof document.body.style[r])return r}return null}function H(){return this.state.isDestroyed=!0,W(this.modifiers,'applyStyle')&&(this.popper.removeAttribute('x-placement'),this.popper.style.position='',this.popper.style.top='',this.popper.style.left='',this.popper.style.right='',this.popper.style.bottom='',this.popper.style.willChange='',this.popper.style[B('transform')]=''),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function A(e){var t=e.ownerDocument;return t?t.defaultView:window}function M(e,t,o,i){var r='BODY'===e.nodeName,p=r?e.ownerDocument.defaultView:e;p.addEventListener(t,o,{passive:!0}),r||M(n(p.parentNode),t,o,i),i.push(p)}function F(e,t,o,i){o.updateBound=i,A(e).addEventListener('resize',o.updateBound,{passive:!0});var r=n(e);return M(r,'scroll',o.updateBound,o.scrollParents),o.scrollElement=r,o.eventsEnabled=!0,o}function I(){this.state.eventsEnabled||(this.state=F(this.reference,this.options,this.state,this.scheduleUpdate))}function R(e,t){return A(e).removeEventListener('resize',t.updateBound),t.scrollParents.forEach(function(e){e.removeEventListener('scroll',t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}function U(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=R(this.reference,this.state))}function Y(e){return''!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function V(e,t){Object.keys(t).forEach(function(o){var n='';-1!==['width','height','top','right','bottom','left'].indexOf(o)&&Y(t[o])&&(n='px'),e.style[o]=t[o]+n})}function j(e,t){Object.keys(t).forEach(function(o){var n=t[o];!1===n?e.removeAttribute(o):e.setAttribute(o,t[o])})}function q(e,t){var o=e.offsets,n=o.popper,i=o.reference,r=$,p=function(e){return e},s=r(i.width),d=r(n.width),a=-1!==['left','right'].indexOf(e.placement),l=-1!==e.placement.indexOf('-'),f=t?a||l||s%2==d%2?r:Z:p,m=t?r:p;return{left:f(1==s%2&&1==d%2&&!l&&t?n.left-1:n.left),top:m(n.top),bottom:m(n.bottom),right:f(n.right)}}function K(e,t,o){var n=D(e,function(e){var o=e.name;return o===t}),i=!!n&&e.some(function(e){return e.name===o&&e.enabled&&e.order<n.order});if(!i){var r='`'+t+'`';console.warn('`'+o+'`'+' modifier is required by '+r+' modifier in order to work, be sure to include it before '+r+'!')}return i}function z(e){return'end'===e?'start':'start'===e?'end':e}function G(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],o=he.indexOf(e),n=he.slice(o+1).concat(he.slice(0,o));return t?n.reverse():n}function _(e,t,o,n){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),r=+i[1],p=i[2];if(!r)return e;if(0===p.indexOf('%')){var s;switch(p){case'%p':s=o;break;case'%':case'%r':default:s=n;}var d=g(s);return d[t]/100*r}if('vh'===p||'vw'===p){var a;return a='vh'===p?ee(document.documentElement.clientHeight,window.innerHeight||0):ee(document.documentElement.clientWidth,window.innerWidth||0),a/100*r}return r}function X(e,t,o,n){var i=[0,0],r=-1!==['right','left'].indexOf(n),p=e.split(/(\+|\-)/).map(function(e){return e.trim()}),s=p.indexOf(D(p,function(e){return-1!==e.search(/,|\s/)}));p[s]&&-1===p[s].indexOf(',')&&console.warn('Offsets separated by white space(s) are deprecated, use a comma (,) instead.');var d=/\s*,\s*|\s+/,a=-1===s?[p]:[p.slice(0,s).concat([p[s].split(d)[0]]),[p[s].split(d)[1]].concat(p.slice(s+1))];return a=a.map(function(e,n){var i=(1===n?!r:r)?'height':'width',p=!1;return e.reduce(function(e,t){return''===e[e.length-1]&&-1!==['+','-'].indexOf(t)?(e[e.length-1]=t,p=!0,e):p?(e[e.length-1]+=t,p=!1,e):e.concat(t)},[]).map(function(e){return _(e,i,t,o)})}),a.forEach(function(e,t){e.forEach(function(o,n){Y(o)&&(i[t]+=o*('-'===e[n-1]?-1:1))})}),i}function J(e,t){var o,n=t.offset,i=e.placement,r=e.offsets,p=r.popper,s=r.reference,d=i.split('-')[0];return o=Y(+n)?[+n,0]:X(n,p,s,d),'left'===d?(p.top+=o[0],p.left-=o[1]):'right'===d?(p.top+=o[0],p.left+=o[1]):'top'===d?(p.left+=o[0],p.top-=o[1]):'bottom'===d&&(p.left+=o[0],p.top+=o[1]),e.popper=p,e}var Q=Math.min,Z=Math.floor,$=Math.round,ee=Math.max,te='undefined'!=typeof window&&'undefined'!=typeof document&&'undefined'!=typeof navigator,oe=function(){for(var e=['Edge','Trident','Firefox'],t=0;t<e.length;t+=1)if(te&&0<=navigator.userAgent.indexOf(e[t]))return 1;return 0}(),ne=te&&window.Promise,ie=ne?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},oe))}},re=te&&!!(window.MSInputMethodContext&&document.documentMode),pe=te&&/MSIE 10/.test(navigator.userAgent),se=function(e,t){if(!(e instanceof t))throw new TypeError('Cannot call a class as a function')},de=function(){function e(e,t){for(var o,n=0;n<t.length;n++)o=t[n],o.enumerable=o.enumerable||!1,o.configurable=!0,'value'in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}return function(t,o,n){return o&&e(t.prototype,o),n&&e(t,n),t}}(),ae=function(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e},le=Object.assign||function(e){for(var t,o=1;o<arguments.length;o++)for(var n in t=arguments[o],t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},fe=te&&/Firefox/i.test(navigator.userAgent),me=['auto-start','auto','auto-end','top-start','top','top-end','right-start','right','right-end','bottom-end','bottom','bottom-start','left-end','left','left-start'],he=me.slice(3),ce={FLIP:'flip',CLOCKWISE:'clockwise',COUNTERCLOCKWISE:'counterclockwise'},ge=function(){function t(o,n){var i=this,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};se(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=ie(this.update.bind(this)),this.options=le({},t.Defaults,r),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=o&&o.jquery?o[0]:o,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(le({},t.Defaults.modifiers,r.modifiers)).forEach(function(e){i.options.modifiers[e]=le({},t.Defaults.modifiers[e]||{},r.modifiers?r.modifiers[e]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return le({name:e},i.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(t){t.enabled&&e(t.onLoad)&&t.onLoad(i.reference,i.popper,i.options,t,i.state)}),this.update();var p=this.options.eventsEnabled;p&&this.enableEventListeners(),this.state.eventsEnabled=p}return de(t,[{key:'update',value:function(){return k.call(this)}},{key:'destroy',value:function(){return H.call(this)}},{key:'enableEventListeners',value:function(){return I.call(this)}},{key:'disableEventListeners',value:function(){return U.call(this)}}]),t}();return ge.Utils=('undefined'==typeof window?global:window).PopperUtils,ge.placements=me,ge.Defaults={placement:'bottom',positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,o=t.split('-')[0],n=t.split('-')[1];if(n){var i=e.offsets,r=i.reference,p=i.popper,s=-1!==['bottom','top'].indexOf(o),d=s?'left':'top',a=s?'width':'height',l={start:ae({},d,r[d]),end:ae({},d,r[d]+r[a]-p[a])};e.offsets.popper=le({},p,l[n])}return e}},offset:{order:200,enabled:!0,fn:J,offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var o=t.boundariesElement||p(e.instance.popper);e.instance.reference===o&&(o=p(o));var n=B('transform'),i=e.instance.popper.style,r=i.top,s=i.left,d=i[n];i.top='',i.left='',i[n]='';var a=v(e.instance.popper,e.instance.reference,t.padding,o,e.positionFixed);i.top=r,i.left=s,i[n]=d,t.boundaries=a;var l=t.priority,f=e.offsets.popper,m={primary:function(e){var o=f[e];return f[e]<a[e]&&!t.escapeWithReference&&(o=ee(f[e],a[e])),ae({},e,o)},secondary:function(e){var o='right'===e?'left':'top',n=f[o];return f[e]>a[e]&&!t.escapeWithReference&&(n=Q(f[o],a[e]-('right'===e?f.width:f.height))),ae({},o,n)}};return l.forEach(function(e){var t=-1===['left','top'].indexOf(e)?'secondary':'primary';f=le({},f,m[t](e))}),e.offsets.popper=f,e},priority:['left','right','top','bottom'],padding:5,boundariesElement:'scrollParent'},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,o=t.popper,n=t.reference,i=e.placement.split('-')[0],r=Z,p=-1!==['top','bottom'].indexOf(i),s=p?'right':'bottom',d=p?'left':'top',a=p?'width':'height';return o[s]<r(n[d])&&(e.offsets.popper[d]=r(n[d])-o[a]),o[d]>r(n[s])&&(e.offsets.popper[d]=r(n[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,o){var n;if(!K(e.instance.modifiers,'arrow','keepTogether'))return e;var i=o.element;if('string'==typeof i){if(i=e.instance.popper.querySelector(i),!i)return e;}else if(!e.instance.popper.contains(i))return console.warn('WARNING: `arrow.element` must be child of its popper element!'),e;var r=e.placement.split('-')[0],p=e.offsets,s=p.popper,d=p.reference,a=-1!==['left','right'].indexOf(r),l=a?'height':'width',f=a?'Top':'Left',m=f.toLowerCase(),h=a?'left':'top',c=a?'bottom':'right',u=S(i)[l];d[c]-u<s[m]&&(e.offsets.popper[m]-=s[m]-(d[c]-u)),d[m]+u>s[c]&&(e.offsets.popper[m]+=d[m]+u-s[c]),e.offsets.popper=g(e.offsets.popper);var b=d[m]+d[l]/2-u/2,w=t(e.instance.popper),y=parseFloat(w['margin'+f]),E=parseFloat(w['border'+f+'Width']),v=b-e.offsets.popper[m]-y-E;return v=ee(Q(s[l]-u,v),0),e.arrowElement=i,e.offsets.arrow=(n={},ae(n,m,$(v)),ae(n,h,''),n),e},element:'[x-arrow]'},flip:{order:600,enabled:!0,fn:function(e,t){if(W(e.instance.modifiers,'inner'))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var o=v(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),n=e.placement.split('-')[0],i=T(n),r=e.placement.split('-')[1]||'',p=[];switch(t.behavior){case ce.FLIP:p=[n,i];break;case ce.CLOCKWISE:p=G(n);break;case ce.COUNTERCLOCKWISE:p=G(n,!0);break;default:p=t.behavior;}return p.forEach(function(s,d){if(n!==s||p.length===d+1)return e;n=e.placement.split('-')[0],i=T(n);var a=e.offsets.popper,l=e.offsets.reference,f=Z,m='left'===n&&f(a.right)>f(l.left)||'right'===n&&f(a.left)<f(l.right)||'top'===n&&f(a.bottom)>f(l.top)||'bottom'===n&&f(a.top)<f(l.bottom),h=f(a.left)<f(o.left),c=f(a.right)>f(o.right),g=f(a.top)<f(o.top),u=f(a.bottom)>f(o.bottom),b='left'===n&&h||'right'===n&&c||'top'===n&&g||'bottom'===n&&u,w=-1!==['top','bottom'].indexOf(n),y=!!t.flipVariations&&(w&&'start'===r&&h||w&&'end'===r&&c||!w&&'start'===r&&g||!w&&'end'===r&&u),E=!!t.flipVariationsByContent&&(w&&'start'===r&&c||w&&'end'===r&&h||!w&&'start'===r&&u||!w&&'end'===r&&g),v=y||E;(m||b||v)&&(e.flipped=!0,(m||b)&&(n=p[d+1]),v&&(r=z(r)),e.placement=n+(r?'-'+r:''),e.offsets.popper=le({},e.offsets.popper,C(e.instance.popper,e.offsets.reference,e.placement)),e=P(e.instance.modifiers,e,'flip'))}),e},behavior:'flip',padding:5,boundariesElement:'viewport',flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,o=t.split('-')[0],n=e.offsets,i=n.popper,r=n.reference,p=-1!==['left','right'].indexOf(o),s=-1===['top','left'].indexOf(o);return i[p?'left':'top']=r[o]-(s?i[p?'width':'height']:0),e.placement=T(t),e.offsets.popper=g(i),e}},hide:{order:800,enabled:!0,fn:function(e){if(!K(e.instance.modifiers,'hide','preventOverflow'))return e;var t=e.offsets.reference,o=D(e.instance.modifiers,function(e){return'preventOverflow'===e.name}).boundaries;if(t.bottom<o.top||t.left>o.right||t.top>o.bottom||t.right<o.left){if(!0===e.hide)return e;e.hide=!0,e.attributes['x-out-of-boundaries']=''}else{if(!1===e.hide)return e;e.hide=!1,e.attributes['x-out-of-boundaries']=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var o=t.x,n=t.y,i=e.offsets.popper,r=D(e.instance.modifiers,function(e){return'applyStyle'===e.name}).gpuAcceleration;void 0!==r&&console.warn('WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!');var s,d,a=void 0===r?t.gpuAcceleration:r,l=p(e.instance.popper),f=u(l),m={position:i.position},h=q(e,2>window.devicePixelRatio||!fe),c='bottom'===o?'top':'bottom',g='right'===n?'left':'right',b=B('transform');if(d='bottom'==c?'HTML'===l.nodeName?-l.clientHeight+h.bottom:-f.height+h.bottom:h.top,s='right'==g?'HTML'===l.nodeName?-l.clientWidth+h.right:-f.width+h.right:h.left,a&&b)m[b]='translate3d('+s+'px, '+d+'px, 0)',m[c]=0,m[g]=0,m.willChange='transform';else{var w='bottom'==c?-1:1,y='right'==g?-1:1;m[c]=d*w,m[g]=s*y,m.willChange=c+', '+g}var E={"x-placement":e.placement};return e.attributes=le({},E,e.attributes),e.styles=le({},m,e.styles),e.arrowStyles=le({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:'bottom',y:'right'},applyStyle:{order:900,enabled:!0,fn:function(e){return V(e.instance.popper,e.styles),j(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&V(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,o,n,i){var r=L(i,t,e,o.positionFixed),p=O(o.placement,r,t,e,o.modifiers.flip.boundariesElement,o.modifiers.flip.padding);return t.setAttribute('x-placement',p),V(t,{position:o.positionFixed?'fixed':'absolute'}),o},gpuAcceleration:void 0}}},ge});
628
629/*!
630  * Bootstrap tooltip.js v4.6.1 (https://getbootstrap.com/)
631  * Copyright 2011-2021 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
632  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
633  */
634(function (global, factory) {
635  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('jquery'), require('popper.js'), require('./util.js')) :
636  typeof define === 'function' && define.amd ? define('bootstrap/tooltip',['jquery', './popper', './util'], factory) :
637  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Tooltip = factory(global.jQuery, global.Popper, global.Util));
638})(this, (function ($, Popper, Util) { 'use strict';
639
640  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
641
642  var $__default = /*#__PURE__*/_interopDefaultLegacy($);
643  var Popper__default = /*#__PURE__*/_interopDefaultLegacy(Popper);
644  var Util__default = /*#__PURE__*/_interopDefaultLegacy(Util);
645
646  function _defineProperties(target, props) {
647    for (var i = 0; i < props.length; i++) {
648      var descriptor = props[i];
649      descriptor.enumerable = descriptor.enumerable || false;
650      descriptor.configurable = true;
651      if ("value" in descriptor) descriptor.writable = true;
652      Object.defineProperty(target, descriptor.key, descriptor);
653    }
654  }
655
656  function _createClass(Constructor, protoProps, staticProps) {
657    if (protoProps) _defineProperties(Constructor.prototype, protoProps);
658    if (staticProps) _defineProperties(Constructor, staticProps);
659    return Constructor;
660  }
661
662  function _extends() {
663    _extends = Object.assign || function (target) {
664      for (var i = 1; i < arguments.length; i++) {
665        var source = arguments[i];
666
667        for (var key in source) {
668          if (Object.prototype.hasOwnProperty.call(source, key)) {
669            target[key] = source[key];
670          }
671        }
672      }
673
674      return target;
675    };
676
677    return _extends.apply(this, arguments);
678  }
679
680  /**
681   * --------------------------------------------------------------------------
682   * Bootstrap (v4.6.1): tools/sanitizer.js
683   * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
684   * --------------------------------------------------------------------------
685   */
686  var uriAttrs = ['background', 'cite', 'href', 'itemtype', 'longdesc', 'poster', 'src', 'xlink:href'];
687  var ARIA_ATTRIBUTE_PATTERN = /^aria-[\w-]*$/i;
688  var DefaultWhitelist = {
689    // Global attributes allowed on any supplied element below.
690    '*': ['class', 'dir', 'id', 'lang', 'role', ARIA_ATTRIBUTE_PATTERN],
691    a: ['target', 'href', 'title', 'rel'],
692    area: [],
693    b: [],
694    br: [],
695    col: [],
696    code: [],
697    div: [],
698    em: [],
699    hr: [],
700    h1: [],
701    h2: [],
702    h3: [],
703    h4: [],
704    h5: [],
705    h6: [],
706    i: [],
707    img: ['src', 'srcset', 'alt', 'title', 'width', 'height'],
708    li: [],
709    ol: [],
710    p: [],
711    pre: [],
712    s: [],
713    small: [],
714    span: [],
715    sub: [],
716    sup: [],
717    strong: [],
718    u: [],
719    ul: []
720  };
721  /**
722   * A pattern that recognizes a commonly useful subset of URLs that are safe.
723   *
724   * Shoutout to Angular https://github.com/angular/angular/blob/12.2.x/packages/core/src/sanitization/url_sanitizer.ts
725   */
726
727  var SAFE_URL_PATTERN = /^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i;
728  /**
729   * A pattern that matches safe data URLs. Only matches image, video and audio types.
730   *
731   * Shoutout to Angular https://github.com/angular/angular/blob/12.2.x/packages/core/src/sanitization/url_sanitizer.ts
732   */
733
734  var DATA_URL_PATTERN = /^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i;
735
736  function allowedAttribute(attr, allowedAttributeList) {
737    var attrName = attr.nodeName.toLowerCase();
738
739    if (allowedAttributeList.indexOf(attrName) !== -1) {
740      if (uriAttrs.indexOf(attrName) !== -1) {
741        return Boolean(SAFE_URL_PATTERN.test(attr.nodeValue) || DATA_URL_PATTERN.test(attr.nodeValue));
742      }
743
744      return true;
745    }
746
747    var regExp = allowedAttributeList.filter(function (attrRegex) {
748      return attrRegex instanceof RegExp;
749    }); // Check if a regular expression validates the attribute.
750
751    for (var i = 0, len = regExp.length; i < len; i++) {
752      if (regExp[i].test(attrName)) {
753        return true;
754      }
755    }
756
757    return false;
758  }
759
760  function sanitizeHtml(unsafeHtml, whiteList, sanitizeFn) {
761    if (unsafeHtml.length === 0) {
762      return unsafeHtml;
763    }
764
765    if (sanitizeFn && typeof sanitizeFn === 'function') {
766      return sanitizeFn(unsafeHtml);
767    }
768
769    var domParser = new window.DOMParser();
770    var createdDocument = domParser.parseFromString(unsafeHtml, 'text/html');
771    var whitelistKeys = Object.keys(whiteList);
772    var elements = [].slice.call(createdDocument.body.querySelectorAll('*'));
773
774    var _loop = function _loop(i, len) {
775      var el = elements[i];
776      var elName = el.nodeName.toLowerCase();
777
778      if (whitelistKeys.indexOf(el.nodeName.toLowerCase()) === -1) {
779        el.parentNode.removeChild(el);
780        return "continue";
781      }
782
783      var attributeList = [].slice.call(el.attributes); // eslint-disable-next-line unicorn/prefer-spread
784
785      var whitelistedAttributes = [].concat(whiteList['*'] || [], whiteList[elName] || []);
786      attributeList.forEach(function (attr) {
787        if (!allowedAttribute(attr, whitelistedAttributes)) {
788          el.removeAttribute(attr.nodeName);
789        }
790      });
791    };
792
793    for (var i = 0, len = elements.length; i < len; i++) {
794      var _ret = _loop(i);
795
796      if (_ret === "continue") continue;
797    }
798
799    return createdDocument.body.innerHTML;
800  }
801
802  /**
803   * Constants
804   */
805
806  var NAME = 'tooltip';
807  var VERSION = '4.6.1';
808  var DATA_KEY = 'bs.tooltip';
809  var EVENT_KEY = "." + DATA_KEY;
810  var JQUERY_NO_CONFLICT = $__default["default"].fn[NAME];
811  var CLASS_PREFIX = 'bs-tooltip';
812  var BSCLS_PREFIX_REGEX = new RegExp("(^|\\s)" + CLASS_PREFIX + "\\S+", 'g');
813  var DISALLOWED_ATTRIBUTES = ['sanitize', 'whiteList', 'sanitizeFn'];
814  var CLASS_NAME_FADE = 'fade';
815  var CLASS_NAME_SHOW = 'show';
816  var HOVER_STATE_SHOW = 'show';
817  var HOVER_STATE_OUT = 'out';
818  var SELECTOR_TOOLTIP_INNER = '.tooltip-inner';
819  var SELECTOR_ARROW = '.arrow';
820  var TRIGGER_HOVER = 'hover';
821  var TRIGGER_FOCUS = 'focus';
822  var TRIGGER_CLICK = 'click';
823  var TRIGGER_MANUAL = 'manual';
824  var AttachmentMap = {
825    AUTO: 'auto',
826    TOP: 'top',
827    RIGHT: 'right',
828    BOTTOM: 'bottom',
829    LEFT: 'left'
830  };
831  var Default = {
832    animation: true,
833    template: '<div class="tooltip" role="tooltip">' + '<div class="arrow"></div>' + '<div class="tooltip-inner"></div></div>',
834    trigger: 'hover focus',
835    title: '',
836    delay: 0,
837    html: false,
838    selector: false,
839    placement: 'top',
840    offset: 0,
841    container: false,
842    fallbackPlacement: 'flip',
843    boundary: 'scrollParent',
844    customClass: '',
845    sanitize: true,
846    sanitizeFn: null,
847    whiteList: DefaultWhitelist,
848    popperConfig: null
849  };
850  var DefaultType = {
851    animation: 'boolean',
852    template: 'string',
853    title: '(string|element|function)',
854    trigger: 'string',
855    delay: '(number|object)',
856    html: 'boolean',
857    selector: '(string|boolean)',
858    placement: '(string|function)',
859    offset: '(number|string|function)',
860    container: '(string|element|boolean)',
861    fallbackPlacement: '(string|array)',
862    boundary: '(string|element)',
863    customClass: '(string|function)',
864    sanitize: 'boolean',
865    sanitizeFn: '(null|function)',
866    whiteList: 'object',
867    popperConfig: '(null|object)'
868  };
869  var Event = {
870    HIDE: "hide" + EVENT_KEY,
871    HIDDEN: "hidden" + EVENT_KEY,
872    SHOW: "show" + EVENT_KEY,
873    SHOWN: "shown" + EVENT_KEY,
874    INSERTED: "inserted" + EVENT_KEY,
875    CLICK: "click" + EVENT_KEY,
876    FOCUSIN: "focusin" + EVENT_KEY,
877    FOCUSOUT: "focusout" + EVENT_KEY,
878    MOUSEENTER: "mouseenter" + EVENT_KEY,
879    MOUSELEAVE: "mouseleave" + EVENT_KEY
880  };
881  /**
882   * Class definition
883   */
884
885  var Tooltip = /*#__PURE__*/function () {
886    function Tooltip(element, config) {
887      if (typeof Popper__default["default"] === 'undefined') {
888        throw new TypeError('Bootstrap\'s tooltips require Popper (https://popper.js.org)');
889      } // Private
890
891
892      this._isEnabled = true;
893      this._timeout = 0;
894      this._hoverState = '';
895      this._activeTrigger = {};
896      this._popper = null; // Protected
897
898      this.element = element;
899      this.config = this._getConfig(config);
900      this.tip = null;
901
902      this._setListeners();
903    } // Getters
904
905
906    var _proto = Tooltip.prototype;
907
908    // Public
909    _proto.enable = function enable() {
910      this._isEnabled = true;
911    };
912
913    _proto.disable = function disable() {
914      this._isEnabled = false;
915    };
916
917    _proto.toggleEnabled = function toggleEnabled() {
918      this._isEnabled = !this._isEnabled;
919    };
920
921    _proto.toggle = function toggle(event) {
922      if (!this._isEnabled) {
923        return;
924      }
925
926      if (event) {
927        var dataKey = this.constructor.DATA_KEY;
928        var context = $__default["default"](event.currentTarget).data(dataKey);
929
930        if (!context) {
931          context = new this.constructor(event.currentTarget, this._getDelegateConfig());
932          $__default["default"](event.currentTarget).data(dataKey, context);
933        }
934
935        context._activeTrigger.click = !context._activeTrigger.click;
936
937        if (context._isWithActiveTrigger()) {
938          context._enter(null, context);
939        } else {
940          context._leave(null, context);
941        }
942      } else {
943        if ($__default["default"](this.getTipElement()).hasClass(CLASS_NAME_SHOW)) {
944          this._leave(null, this);
945
946          return;
947        }
948
949        this._enter(null, this);
950      }
951    };
952
953    _proto.dispose = function dispose() {
954      clearTimeout(this._timeout);
955      $__default["default"].removeData(this.element, this.constructor.DATA_KEY);
956      $__default["default"](this.element).off(this.constructor.EVENT_KEY);
957      $__default["default"](this.element).closest('.modal').off('hide.bs.modal', this._hideModalHandler);
958
959      if (this.tip) {
960        $__default["default"](this.tip).remove();
961      }
962
963      this._isEnabled = null;
964      this._timeout = null;
965      this._hoverState = null;
966      this._activeTrigger = null;
967
968      if (this._popper) {
969        this._popper.destroy();
970      }
971
972      this._popper = null;
973      this.element = null;
974      this.config = null;
975      this.tip = null;
976    };
977
978    _proto.show = function show() {
979      var _this = this;
980
981      if ($__default["default"](this.element).css('display') === 'none') {
982        throw new Error('Please use show on visible elements');
983      }
984
985      var showEvent = $__default["default"].Event(this.constructor.Event.SHOW);
986
987      if (this.isWithContent() && this._isEnabled) {
988        $__default["default"](this.element).trigger(showEvent);
989        var shadowRoot = Util__default["default"].findShadowRoot(this.element);
990        var isInTheDom = $__default["default"].contains(shadowRoot !== null ? shadowRoot : this.element.ownerDocument.documentElement, this.element);
991
992        if (showEvent.isDefaultPrevented() || !isInTheDom) {
993          return;
994        }
995
996        var tip = this.getTipElement();
997        var tipId = Util__default["default"].getUID(this.constructor.NAME);
998        tip.setAttribute('id', tipId);
999        this.element.setAttribute('aria-describedby', tipId);
1000        this.setContent();
1001
1002        if (this.config.animation) {
1003          $__default["default"](tip).addClass(CLASS_NAME_FADE);
1004        }
1005
1006        var placement = typeof this.config.placement === 'function' ? this.config.placement.call(this, tip, this.element) : this.config.placement;
1007
1008        var attachment = this._getAttachment(placement);
1009
1010        this.addAttachmentClass(attachment);
1011
1012        var container = this._getContainer();
1013
1014        $__default["default"](tip).data(this.constructor.DATA_KEY, this);
1015
1016        if (!$__default["default"].contains(this.element.ownerDocument.documentElement, this.tip)) {
1017          $__default["default"](tip).appendTo(container);
1018        }
1019
1020        $__default["default"](this.element).trigger(this.constructor.Event.INSERTED);
1021        this._popper = new Popper__default["default"](this.element, tip, this._getPopperConfig(attachment));
1022        $__default["default"](tip).addClass(CLASS_NAME_SHOW);
1023        $__default["default"](tip).addClass(this.config.customClass); // If this is a touch-enabled device we add extra
1024        // empty mouseover listeners to the body's immediate children;
1025        // only needed because of broken event delegation on iOS
1026        // https://www.quirksmode.org/blog/archives/2014/02/mouse_event_bub.html
1027
1028        if ('ontouchstart' in document.documentElement) {
1029          $__default["default"](document.body).children().on('mouseover', null, $__default["default"].noop);
1030        }
1031
1032        var complete = function complete() {
1033          if (_this.config.animation) {
1034            _this._fixTransition();
1035          }
1036
1037          var prevHoverState = _this._hoverState;
1038          _this._hoverState = null;
1039          $__default["default"](_this.element).trigger(_this.constructor.Event.SHOWN);
1040
1041          if (prevHoverState === HOVER_STATE_OUT) {
1042            _this._leave(null, _this);
1043          }
1044        };
1045
1046        if ($__default["default"](this.tip).hasClass(CLASS_NAME_FADE)) {
1047          var transitionDuration = Util__default["default"].getTransitionDurationFromElement(this.tip);
1048          $__default["default"](this.tip).one(Util__default["default"].TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
1049        } else {
1050          complete();
1051        }
1052      }
1053    };
1054
1055    _proto.hide = function hide(callback) {
1056      var _this2 = this;
1057
1058      var tip = this.getTipElement();
1059      var hideEvent = $__default["default"].Event(this.constructor.Event.HIDE);
1060
1061      var complete = function complete() {
1062        if (_this2._hoverState !== HOVER_STATE_SHOW && tip.parentNode) {
1063          tip.parentNode.removeChild(tip);
1064        }
1065
1066        _this2._cleanTipClass();
1067
1068        _this2.element.removeAttribute('aria-describedby');
1069
1070        $__default["default"](_this2.element).trigger(_this2.constructor.Event.HIDDEN);
1071
1072        if (_this2._popper !== null) {
1073          _this2._popper.destroy();
1074        }
1075
1076        if (callback) {
1077          callback();
1078        }
1079      };
1080
1081      $__default["default"](this.element).trigger(hideEvent);
1082
1083      if (hideEvent.isDefaultPrevented()) {
1084        return;
1085      }
1086
1087      $__default["default"](tip).removeClass(CLASS_NAME_SHOW); // If this is a touch-enabled device we remove the extra
1088      // empty mouseover listeners we added for iOS support
1089
1090      if ('ontouchstart' in document.documentElement) {
1091        $__default["default"](document.body).children().off('mouseover', null, $__default["default"].noop);
1092      }
1093
1094      this._activeTrigger[TRIGGER_CLICK] = false;
1095      this._activeTrigger[TRIGGER_FOCUS] = false;
1096      this._activeTrigger[TRIGGER_HOVER] = false;
1097
1098      if ($__default["default"](this.tip).hasClass(CLASS_NAME_FADE)) {
1099        var transitionDuration = Util__default["default"].getTransitionDurationFromElement(tip);
1100        $__default["default"](tip).one(Util__default["default"].TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
1101      } else {
1102        complete();
1103      }
1104
1105      this._hoverState = '';
1106    };
1107
1108    _proto.update = function update() {
1109      if (this._popper !== null) {
1110        this._popper.scheduleUpdate();
1111      }
1112    } // Protected
1113    ;
1114
1115    _proto.isWithContent = function isWithContent() {
1116      return Boolean(this.getTitle());
1117    };
1118
1119    _proto.addAttachmentClass = function addAttachmentClass(attachment) {
1120      $__default["default"](this.getTipElement()).addClass(CLASS_PREFIX + "-" + attachment);
1121    };
1122
1123    _proto.getTipElement = function getTipElement() {
1124      this.tip = this.tip || $__default["default"](this.config.template)[0];
1125      return this.tip;
1126    };
1127
1128    _proto.setContent = function setContent() {
1129      var tip = this.getTipElement();
1130      this.setElementContent($__default["default"](tip.querySelectorAll(SELECTOR_TOOLTIP_INNER)), this.getTitle());
1131      $__default["default"](tip).removeClass(CLASS_NAME_FADE + " " + CLASS_NAME_SHOW);
1132    };
1133
1134    _proto.setElementContent = function setElementContent($element, content) {
1135      if (typeof content === 'object' && (content.nodeType || content.jquery)) {
1136        // Content is a DOM node or a jQuery
1137        if (this.config.html) {
1138          if (!$__default["default"](content).parent().is($element)) {
1139            $element.empty().append(content);
1140          }
1141        } else {
1142          $element.text($__default["default"](content).text());
1143        }
1144
1145        return;
1146      }
1147
1148      if (this.config.html) {
1149        if (this.config.sanitize) {
1150          content = sanitizeHtml(content, this.config.whiteList, this.config.sanitizeFn);
1151        }
1152
1153        $element.html(content);
1154      } else {
1155        $element.text(content);
1156      }
1157    };
1158
1159    _proto.getTitle = function getTitle() {
1160      var title = this.element.getAttribute('data-original-title');
1161
1162      if (!title) {
1163        title = typeof this.config.title === 'function' ? this.config.title.call(this.element) : this.config.title;
1164      }
1165
1166      return title;
1167    } // Private
1168    ;
1169
1170    _proto._getPopperConfig = function _getPopperConfig(attachment) {
1171      var _this3 = this;
1172
1173      var defaultBsConfig = {
1174        placement: attachment,
1175        modifiers: {
1176          offset: this._getOffset(),
1177          flip: {
1178            behavior: this.config.fallbackPlacement
1179          },
1180          arrow: {
1181            element: SELECTOR_ARROW
1182          },
1183          preventOverflow: {
1184            boundariesElement: this.config.boundary
1185          }
1186        },
1187        onCreate: function onCreate(data) {
1188          if (data.originalPlacement !== data.placement) {
1189            _this3._handlePopperPlacementChange(data);
1190          }
1191        },
1192        onUpdate: function onUpdate(data) {
1193          return _this3._handlePopperPlacementChange(data);
1194        }
1195      };
1196      return _extends({}, defaultBsConfig, this.config.popperConfig);
1197    };
1198
1199    _proto._getOffset = function _getOffset() {
1200      var _this4 = this;
1201
1202      var offset = {};
1203
1204      if (typeof this.config.offset === 'function') {
1205        offset.fn = function (data) {
1206          data.offsets = _extends({}, data.offsets, _this4.config.offset(data.offsets, _this4.element));
1207          return data;
1208        };
1209      } else {
1210        offset.offset = this.config.offset;
1211      }
1212
1213      return offset;
1214    };
1215
1216    _proto._getContainer = function _getContainer() {
1217      if (this.config.container === false) {
1218        return document.body;
1219      }
1220
1221      if (Util__default["default"].isElement(this.config.container)) {
1222        return $__default["default"](this.config.container);
1223      }
1224
1225      return $__default["default"](document).find(this.config.container);
1226    };
1227
1228    _proto._getAttachment = function _getAttachment(placement) {
1229      return AttachmentMap[placement.toUpperCase()];
1230    };
1231
1232    _proto._setListeners = function _setListeners() {
1233      var _this5 = this;
1234
1235      var triggers = this.config.trigger.split(' ');
1236      triggers.forEach(function (trigger) {
1237        if (trigger === 'click') {
1238          $__default["default"](_this5.element).on(_this5.constructor.Event.CLICK, _this5.config.selector, function (event) {
1239            return _this5.toggle(event);
1240          });
1241        } else if (trigger !== TRIGGER_MANUAL) {
1242          var eventIn = trigger === TRIGGER_HOVER ? _this5.constructor.Event.MOUSEENTER : _this5.constructor.Event.FOCUSIN;
1243          var eventOut = trigger === TRIGGER_HOVER ? _this5.constructor.Event.MOUSELEAVE : _this5.constructor.Event.FOCUSOUT;
1244          $__default["default"](_this5.element).on(eventIn, _this5.config.selector, function (event) {
1245            return _this5._enter(event);
1246          }).on(eventOut, _this5.config.selector, function (event) {
1247            return _this5._leave(event);
1248          });
1249        }
1250      });
1251
1252      this._hideModalHandler = function () {
1253        if (_this5.element) {
1254          _this5.hide();
1255        }
1256      };
1257
1258      $__default["default"](this.element).closest('.modal').on('hide.bs.modal', this._hideModalHandler);
1259
1260      if (this.config.selector) {
1261        this.config = _extends({}, this.config, {
1262          trigger: 'manual',
1263          selector: ''
1264        });
1265      } else {
1266        this._fixTitle();
1267      }
1268    };
1269
1270    _proto._fixTitle = function _fixTitle() {
1271      var titleType = typeof this.element.getAttribute('data-original-title');
1272
1273      if (this.element.getAttribute('title') || titleType !== 'string') {
1274        this.element.setAttribute('data-original-title', this.element.getAttribute('title') || '');
1275        this.element.setAttribute('title', '');
1276      }
1277    };
1278
1279    _proto._enter = function _enter(event, context) {
1280      var dataKey = this.constructor.DATA_KEY;
1281      context = context || $__default["default"](event.currentTarget).data(dataKey);
1282
1283      if (!context) {
1284        context = new this.constructor(event.currentTarget, this._getDelegateConfig());
1285        $__default["default"](event.currentTarget).data(dataKey, context);
1286      }
1287
1288      if (event) {
1289        context._activeTrigger[event.type === 'focusin' ? TRIGGER_FOCUS : TRIGGER_HOVER] = true;
1290      }
1291
1292      if ($__default["default"](context.getTipElement()).hasClass(CLASS_NAME_SHOW) || context._hoverState === HOVER_STATE_SHOW) {
1293        context._hoverState = HOVER_STATE_SHOW;
1294        return;
1295      }
1296
1297      clearTimeout(context._timeout);
1298      context._hoverState = HOVER_STATE_SHOW;
1299
1300      if (!context.config.delay || !context.config.delay.show) {
1301        context.show();
1302        return;
1303      }
1304
1305      context._timeout = setTimeout(function () {
1306        if (context._hoverState === HOVER_STATE_SHOW) {
1307          context.show();
1308        }
1309      }, context.config.delay.show);
1310    };
1311
1312    _proto._leave = function _leave(event, context) {
1313      var dataKey = this.constructor.DATA_KEY;
1314      context = context || $__default["default"](event.currentTarget).data(dataKey);
1315
1316      if (!context) {
1317        context = new this.constructor(event.currentTarget, this._getDelegateConfig());
1318        $__default["default"](event.currentTarget).data(dataKey, context);
1319      }
1320
1321      if (event) {
1322        context._activeTrigger[event.type === 'focusout' ? TRIGGER_FOCUS : TRIGGER_HOVER] = false;
1323      }
1324
1325      if (context._isWithActiveTrigger()) {
1326        return;
1327      }
1328
1329      clearTimeout(context._timeout);
1330      context._hoverState = HOVER_STATE_OUT;
1331
1332      if (!context.config.delay || !context.config.delay.hide) {
1333        context.hide();
1334        return;
1335      }
1336
1337      context._timeout = setTimeout(function () {
1338        if (context._hoverState === HOVER_STATE_OUT) {
1339          context.hide();
1340        }
1341      }, context.config.delay.hide);
1342    };
1343
1344    _proto._isWithActiveTrigger = function _isWithActiveTrigger() {
1345      for (var trigger in this._activeTrigger) {
1346        if (this._activeTrigger[trigger]) {
1347          return true;
1348        }
1349      }
1350
1351      return false;
1352    };
1353
1354    _proto._getConfig = function _getConfig(config) {
1355      var dataAttributes = $__default["default"](this.element).data();
1356      Object.keys(dataAttributes).forEach(function (dataAttr) {
1357        if (DISALLOWED_ATTRIBUTES.indexOf(dataAttr) !== -1) {
1358          delete dataAttributes[dataAttr];
1359        }
1360      });
1361      config = _extends({}, this.constructor.Default, dataAttributes, typeof config === 'object' && config ? config : {});
1362
1363      if (typeof config.delay === 'number') {
1364        config.delay = {
1365          show: config.delay,
1366          hide: config.delay
1367        };
1368      }
1369
1370      if (typeof config.title === 'number') {
1371        config.title = config.title.toString();
1372      }
1373
1374      if (typeof config.content === 'number') {
1375        config.content = config.content.toString();
1376      }
1377
1378      Util__default["default"].typeCheckConfig(NAME, config, this.constructor.DefaultType);
1379
1380      if (config.sanitize) {
1381        config.template = sanitizeHtml(config.template, config.whiteList, config.sanitizeFn);
1382      }
1383
1384      return config;
1385    };
1386
1387    _proto._getDelegateConfig = function _getDelegateConfig() {
1388      var config = {};
1389
1390      if (this.config) {
1391        for (var key in this.config) {
1392          if (this.constructor.Default[key] !== this.config[key]) {
1393            config[key] = this.config[key];
1394          }
1395        }
1396      }
1397
1398      return config;
1399    };
1400
1401    _proto._cleanTipClass = function _cleanTipClass() {
1402      var $tip = $__default["default"](this.getTipElement());
1403      var tabClass = $tip.attr('class').match(BSCLS_PREFIX_REGEX);
1404
1405      if (tabClass !== null && tabClass.length) {
1406        $tip.removeClass(tabClass.join(''));
1407      }
1408    };
1409
1410    _proto._handlePopperPlacementChange = function _handlePopperPlacementChange(popperData) {
1411      this.tip = popperData.instance.popper;
1412
1413      this._cleanTipClass();
1414
1415      this.addAttachmentClass(this._getAttachment(popperData.placement));
1416    };
1417
1418    _proto._fixTransition = function _fixTransition() {
1419      var tip = this.getTipElement();
1420      var initConfigAnimation = this.config.animation;
1421
1422      if (tip.getAttribute('x-placement') !== null) {
1423        return;
1424      }
1425
1426      $__default["default"](tip).removeClass(CLASS_NAME_FADE);
1427      this.config.animation = false;
1428      this.hide();
1429      this.show();
1430      this.config.animation = initConfigAnimation;
1431    } // Static
1432    ;
1433
1434    Tooltip._jQueryInterface = function _jQueryInterface(config) {
1435      return this.each(function () {
1436        var $element = $__default["default"](this);
1437        var data = $element.data(DATA_KEY);
1438
1439        var _config = typeof config === 'object' && config;
1440
1441        if (!data && /dispose|hide/.test(config)) {
1442          return;
1443        }
1444
1445        if (!data) {
1446          data = new Tooltip(this, _config);
1447          $element.data(DATA_KEY, data);
1448        }
1449
1450        if (typeof config === 'string') {
1451          if (typeof data[config] === 'undefined') {
1452            throw new TypeError("No method named \"" + config + "\"");
1453          }
1454
1455          data[config]();
1456        }
1457      });
1458    };
1459
1460    _createClass(Tooltip, null, [{
1461      key: "VERSION",
1462      get: function get() {
1463        return VERSION;
1464      }
1465    }, {
1466      key: "Default",
1467      get: function get() {
1468        return Default;
1469      }
1470    }, {
1471      key: "NAME",
1472      get: function get() {
1473        return NAME;
1474      }
1475    }, {
1476      key: "DATA_KEY",
1477      get: function get() {
1478        return DATA_KEY;
1479      }
1480    }, {
1481      key: "Event",
1482      get: function get() {
1483        return Event;
1484      }
1485    }, {
1486      key: "EVENT_KEY",
1487      get: function get() {
1488        return EVENT_KEY;
1489      }
1490    }, {
1491      key: "DefaultType",
1492      get: function get() {
1493        return DefaultType;
1494      }
1495    }]);
1496
1497    return Tooltip;
1498  }();
1499  /**
1500   * jQuery
1501   */
1502
1503
1504  $__default["default"].fn[NAME] = Tooltip._jQueryInterface;
1505  $__default["default"].fn[NAME].Constructor = Tooltip;
1506
1507  $__default["default"].fn[NAME].noConflict = function () {
1508    $__default["default"].fn[NAME] = JQUERY_NO_CONFLICT;
1509    return Tooltip._jQueryInterface;
1510  };
1511
1512  return Tooltip;
1513
1514}));
1515
1516/*!
1517  * Bootstrap modal.js v4.6.1 (https://getbootstrap.com/)
1518  * Copyright 2011-2021 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
1519  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
1520  */
1521(function (global, factory) {
1522  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('jquery'), require('./util.js')) :
1523  typeof define === 'function' && define.amd ? define('bootstrap/modal',['jquery', './util'], factory) :
1524  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Modal = factory(global.jQuery, global.Util));
1525})(this, (function ($, Util) { 'use strict';
1526
1527  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
1528
1529  var $__default = /*#__PURE__*/_interopDefaultLegacy($);
1530  var Util__default = /*#__PURE__*/_interopDefaultLegacy(Util);
1531
1532  function _defineProperties(target, props) {
1533    for (var i = 0; i < props.length; i++) {
1534      var descriptor = props[i];
1535      descriptor.enumerable = descriptor.enumerable || false;
1536      descriptor.configurable = true;
1537      if ("value" in descriptor) descriptor.writable = true;
1538      Object.defineProperty(target, descriptor.key, descriptor);
1539    }
1540  }
1541
1542  function _createClass(Constructor, protoProps, staticProps) {
1543    if (protoProps) _defineProperties(Constructor.prototype, protoProps);
1544    if (staticProps) _defineProperties(Constructor, staticProps);
1545    return Constructor;
1546  }
1547
1548  function _extends() {
1549    _extends = Object.assign || function (target) {
1550      for (var i = 1; i < arguments.length; i++) {
1551        var source = arguments[i];
1552
1553        for (var key in source) {
1554          if (Object.prototype.hasOwnProperty.call(source, key)) {
1555            target[key] = source[key];
1556          }
1557        }
1558      }
1559
1560      return target;
1561    };
1562
1563    return _extends.apply(this, arguments);
1564  }
1565
1566  /**
1567   * Constants
1568   */
1569
1570  var NAME = 'modal';
1571  var VERSION = '4.6.1';
1572  var DATA_KEY = 'bs.modal';
1573  var EVENT_KEY = "." + DATA_KEY;
1574  var DATA_API_KEY = '.data-api';
1575  var JQUERY_NO_CONFLICT = $__default["default"].fn[NAME];
1576  var ESCAPE_KEYCODE = 27; // KeyboardEvent.which value for Escape (Esc) key
1577
1578  var CLASS_NAME_SCROLLABLE = 'modal-dialog-scrollable';
1579  var CLASS_NAME_SCROLLBAR_MEASURER = 'modal-scrollbar-measure';
1580  var CLASS_NAME_BACKDROP = 'modal-backdrop';
1581  var CLASS_NAME_OPEN = 'modal-open';
1582  var CLASS_NAME_FADE = 'fade';
1583  var CLASS_NAME_SHOW = 'show';
1584  var CLASS_NAME_STATIC = 'modal-static';
1585  var EVENT_HIDE = "hide" + EVENT_KEY;
1586  var EVENT_HIDE_PREVENTED = "hidePrevented" + EVENT_KEY;
1587  var EVENT_HIDDEN = "hidden" + EVENT_KEY;
1588  var EVENT_SHOW = "show" + EVENT_KEY;
1589  var EVENT_SHOWN = "shown" + EVENT_KEY;
1590  var EVENT_FOCUSIN = "focusin" + EVENT_KEY;
1591  var EVENT_RESIZE = "resize" + EVENT_KEY;
1592  var EVENT_CLICK_DISMISS = "click.dismiss" + EVENT_KEY;
1593  var EVENT_KEYDOWN_DISMISS = "keydown.dismiss" + EVENT_KEY;
1594  var EVENT_MOUSEUP_DISMISS = "mouseup.dismiss" + EVENT_KEY;
1595  var EVENT_MOUSEDOWN_DISMISS = "mousedown.dismiss" + EVENT_KEY;
1596  var EVENT_CLICK_DATA_API = "click" + EVENT_KEY + DATA_API_KEY;
1597  var SELECTOR_DIALOG = '.modal-dialog';
1598  var SELECTOR_MODAL_BODY = '.modal-body';
1599  var SELECTOR_DATA_TOGGLE = '[data-toggle="modal"]';
1600  var SELECTOR_DATA_DISMISS = '[data-dismiss="modal"]';
1601  var SELECTOR_FIXED_CONTENT = '.fixed-top, .fixed-bottom, .is-fixed, .sticky-top';
1602  var SELECTOR_STICKY_CONTENT = '.sticky-top';
1603  var Default = {
1604    backdrop: true,
1605    keyboard: true,
1606    focus: true,
1607    show: true
1608  };
1609  var DefaultType = {
1610    backdrop: '(boolean|string)',
1611    keyboard: 'boolean',
1612    focus: 'boolean',
1613    show: 'boolean'
1614  };
1615  /**
1616   * Class definition
1617   */
1618
1619  var Modal = /*#__PURE__*/function () {
1620    function Modal(element, config) {
1621      this._config = this._getConfig(config);
1622      this._element = element;
1623      this._dialog = element.querySelector(SELECTOR_DIALOG);
1624      this._backdrop = null;
1625      this._isShown = false;
1626      this._isBodyOverflowing = false;
1627      this._ignoreBackdropClick = false;
1628      this._isTransitioning = false;
1629      this._scrollbarWidth = 0;
1630    } // Getters
1631
1632
1633    var _proto = Modal.prototype;
1634
1635    // Public
1636    _proto.toggle = function toggle(relatedTarget) {
1637      return this._isShown ? this.hide() : this.show(relatedTarget);
1638    };
1639
1640    _proto.show = function show(relatedTarget) {
1641      var _this = this;
1642
1643      if (this._isShown || this._isTransitioning) {
1644        return;
1645      }
1646
1647      var showEvent = $__default["default"].Event(EVENT_SHOW, {
1648        relatedTarget: relatedTarget
1649      });
1650      $__default["default"](this._element).trigger(showEvent);
1651
1652      if (showEvent.isDefaultPrevented()) {
1653        return;
1654      }
1655
1656      this._isShown = true;
1657
1658      if ($__default["default"](this._element).hasClass(CLASS_NAME_FADE)) {
1659        this._isTransitioning = true;
1660      }
1661
1662      this._checkScrollbar();
1663
1664      this._setScrollbar();
1665
1666      this._adjustDialog();
1667
1668      this._setEscapeEvent();
1669
1670      this._setResizeEvent();
1671
1672      $__default["default"](this._element).on(EVENT_CLICK_DISMISS, SELECTOR_DATA_DISMISS, function (event) {
1673        return _this.hide(event);
1674      });
1675      $__default["default"](this._dialog).on(EVENT_MOUSEDOWN_DISMISS, function () {
1676        $__default["default"](_this._element).one(EVENT_MOUSEUP_DISMISS, function (event) {
1677          if ($__default["default"](event.target).is(_this._element)) {
1678            _this._ignoreBackdropClick = true;
1679          }
1680        });
1681      });
1682
1683      this._showBackdrop(function () {
1684        return _this._showElement(relatedTarget);
1685      });
1686    };
1687
1688    _proto.hide = function hide(event) {
1689      var _this2 = this;
1690
1691      if (event) {
1692        event.preventDefault();
1693      }
1694
1695      if (!this._isShown || this._isTransitioning) {
1696        return;
1697      }
1698
1699      var hideEvent = $__default["default"].Event(EVENT_HIDE);
1700      $__default["default"](this._element).trigger(hideEvent);
1701
1702      if (!this._isShown || hideEvent.isDefaultPrevented()) {
1703        return;
1704      }
1705
1706      this._isShown = false;
1707      var transition = $__default["default"](this._element).hasClass(CLASS_NAME_FADE);
1708
1709      if (transition) {
1710        this._isTransitioning = true;
1711      }
1712
1713      this._setEscapeEvent();
1714
1715      this._setResizeEvent();
1716
1717      $__default["default"](document).off(EVENT_FOCUSIN);
1718      $__default["default"](this._element).removeClass(CLASS_NAME_SHOW);
1719      $__default["default"](this._element).off(EVENT_CLICK_DISMISS);
1720      $__default["default"](this._dialog).off(EVENT_MOUSEDOWN_DISMISS);
1721
1722      if (transition) {
1723        var transitionDuration = Util__default["default"].getTransitionDurationFromElement(this._element);
1724        $__default["default"](this._element).one(Util__default["default"].TRANSITION_END, function (event) {
1725          return _this2._hideModal(event);
1726        }).emulateTransitionEnd(transitionDuration);
1727      } else {
1728        this._hideModal();
1729      }
1730    };
1731
1732    _proto.dispose = function dispose() {
1733      [window, this._element, this._dialog].forEach(function (htmlElement) {
1734        return $__default["default"](htmlElement).off(EVENT_KEY);
1735      });
1736      /**
1737       * `document` has 2 events `EVENT_FOCUSIN` and `EVENT_CLICK_DATA_API`
1738       * Do not move `document` in `htmlElements` array
1739       * It will remove `EVENT_CLICK_DATA_API` event that should remain
1740       */
1741
1742      $__default["default"](document).off(EVENT_FOCUSIN);
1743      $__default["default"].removeData(this._element, DATA_KEY);
1744      this._config = null;
1745      this._element = null;
1746      this._dialog = null;
1747      this._backdrop = null;
1748      this._isShown = null;
1749      this._isBodyOverflowing = null;
1750      this._ignoreBackdropClick = null;
1751      this._isTransitioning = null;
1752      this._scrollbarWidth = null;
1753    };
1754
1755    _proto.handleUpdate = function handleUpdate() {
1756      this._adjustDialog();
1757    } // Private
1758    ;
1759
1760    _proto._getConfig = function _getConfig(config) {
1761      config = _extends({}, Default, config);
1762      Util__default["default"].typeCheckConfig(NAME, config, DefaultType);
1763      return config;
1764    };
1765
1766    _proto._triggerBackdropTransition = function _triggerBackdropTransition() {
1767      var _this3 = this;
1768
1769      var hideEventPrevented = $__default["default"].Event(EVENT_HIDE_PREVENTED);
1770      $__default["default"](this._element).trigger(hideEventPrevented);
1771
1772      if (hideEventPrevented.isDefaultPrevented()) {
1773        return;
1774      }
1775
1776      var isModalOverflowing = this._element.scrollHeight > document.documentElement.clientHeight;
1777
1778      if (!isModalOverflowing) {
1779        this._element.style.overflowY = 'hidden';
1780      }
1781
1782      this._element.classList.add(CLASS_NAME_STATIC);
1783
1784      var modalTransitionDuration = Util__default["default"].getTransitionDurationFromElement(this._dialog);
1785      $__default["default"](this._element).off(Util__default["default"].TRANSITION_END);
1786      $__default["default"](this._element).one(Util__default["default"].TRANSITION_END, function () {
1787        _this3._element.classList.remove(CLASS_NAME_STATIC);
1788
1789        if (!isModalOverflowing) {
1790          $__default["default"](_this3._element).one(Util__default["default"].TRANSITION_END, function () {
1791            _this3._element.style.overflowY = '';
1792          }).emulateTransitionEnd(_this3._element, modalTransitionDuration);
1793        }
1794      }).emulateTransitionEnd(modalTransitionDuration);
1795
1796      this._element.focus();
1797    };
1798
1799    _proto._showElement = function _showElement(relatedTarget) {
1800      var _this4 = this;
1801
1802      var transition = $__default["default"](this._element).hasClass(CLASS_NAME_FADE);
1803      var modalBody = this._dialog ? this._dialog.querySelector(SELECTOR_MODAL_BODY) : null;
1804
1805      if (!this._element.parentNode || this._element.parentNode.nodeType !== Node.ELEMENT_NODE) {
1806        // Don't move modal's DOM position
1807        document.body.appendChild(this._element);
1808      }
1809
1810      this._element.style.display = 'block';
1811
1812      this._element.removeAttribute('aria-hidden');
1813
1814      this._element.setAttribute('aria-modal', true);
1815
1816      this._element.setAttribute('role', 'dialog');
1817
1818      if ($__default["default"](this._dialog).hasClass(CLASS_NAME_SCROLLABLE) && modalBody) {
1819        modalBody.scrollTop = 0;
1820      } else {
1821        this._element.scrollTop = 0;
1822      }
1823
1824      if (transition) {
1825        Util__default["default"].reflow(this._element);
1826      }
1827
1828      $__default["default"](this._element).addClass(CLASS_NAME_SHOW);
1829
1830      if (this._config.focus) {
1831        this._enforceFocus();
1832      }
1833
1834      var shownEvent = $__default["default"].Event(EVENT_SHOWN, {
1835        relatedTarget: relatedTarget
1836      });
1837
1838      var transitionComplete = function transitionComplete() {
1839        if (_this4._config.focus) {
1840          _this4._element.focus();
1841        }
1842
1843        _this4._isTransitioning = false;
1844        $__default["default"](_this4._element).trigger(shownEvent);
1845      };
1846
1847      if (transition) {
1848        var transitionDuration = Util__default["default"].getTransitionDurationFromElement(this._dialog);
1849        $__default["default"](this._dialog).one(Util__default["default"].TRANSITION_END, transitionComplete).emulateTransitionEnd(transitionDuration);
1850      } else {
1851        transitionComplete();
1852      }
1853    };
1854
1855    _proto._enforceFocus = function _enforceFocus() {
1856      var _this5 = this;
1857
1858      $__default["default"](document).off(EVENT_FOCUSIN) // Guard against infinite focus loop
1859      .on(EVENT_FOCUSIN, function (event) {
1860        if (document !== event.target && _this5._element !== event.target && $__default["default"](_this5._element).has(event.target).length === 0) {
1861          _this5._element.focus();
1862        }
1863      });
1864    };
1865
1866    _proto._setEscapeEvent = function _setEscapeEvent() {
1867      var _this6 = this;
1868
1869      if (this._isShown) {
1870        $__default["default"](this._element).on(EVENT_KEYDOWN_DISMISS, function (event) {
1871          if (_this6._config.keyboard && event.which === ESCAPE_KEYCODE) {
1872            event.preventDefault();
1873
1874            _this6.hide();
1875          } else if (!_this6._config.keyboard && event.which === ESCAPE_KEYCODE) {
1876            _this6._triggerBackdropTransition();
1877          }
1878        });
1879      } else if (!this._isShown) {
1880        $__default["default"](this._element).off(EVENT_KEYDOWN_DISMISS);
1881      }
1882    };
1883
1884    _proto._setResizeEvent = function _setResizeEvent() {
1885      var _this7 = this;
1886
1887      if (this._isShown) {
1888        $__default["default"](window).on(EVENT_RESIZE, function (event) {
1889          return _this7.handleUpdate(event);
1890        });
1891      } else {
1892        $__default["default"](window).off(EVENT_RESIZE);
1893      }
1894    };
1895
1896    _proto._hideModal = function _hideModal() {
1897      var _this8 = this;
1898
1899      this._element.style.display = 'none';
1900
1901      this._element.setAttribute('aria-hidden', true);
1902
1903      this._element.removeAttribute('aria-modal');
1904
1905      this._element.removeAttribute('role');
1906
1907      this._isTransitioning = false;
1908
1909      this._showBackdrop(function () {
1910        $__default["default"](document.body).removeClass(CLASS_NAME_OPEN);
1911
1912        _this8._resetAdjustments();
1913
1914        _this8._resetScrollbar();
1915
1916        $__default["default"](_this8._element).trigger(EVENT_HIDDEN);
1917      });
1918    };
1919
1920    _proto._removeBackdrop = function _removeBackdrop() {
1921      if (this._backdrop) {
1922        $__default["default"](this._backdrop).remove();
1923        this._backdrop = null;
1924      }
1925    };
1926
1927    _proto._showBackdrop = function _showBackdrop(callback) {
1928      var _this9 = this;
1929
1930      var animate = $__default["default"](this._element).hasClass(CLASS_NAME_FADE) ? CLASS_NAME_FADE : '';
1931
1932      if (this._isShown && this._config.backdrop) {
1933        this._backdrop = document.createElement('div');
1934        this._backdrop.className = CLASS_NAME_BACKDROP;
1935
1936        if (animate) {
1937          this._backdrop.classList.add(animate);
1938        }
1939
1940        $__default["default"](this._backdrop).appendTo(document.body);
1941        $__default["default"](this._element).on(EVENT_CLICK_DISMISS, function (event) {
1942          if (_this9._ignoreBackdropClick) {
1943            _this9._ignoreBackdropClick = false;
1944            return;
1945          }
1946
1947          if (event.target !== event.currentTarget) {
1948            return;
1949          }
1950
1951          if (_this9._config.backdrop === 'static') {
1952            _this9._triggerBackdropTransition();
1953          } else {
1954            _this9.hide();
1955          }
1956        });
1957
1958        if (animate) {
1959          Util__default["default"].reflow(this._backdrop);
1960        }
1961
1962        $__default["default"](this._backdrop).addClass(CLASS_NAME_SHOW);
1963
1964        if (!callback) {
1965          return;
1966        }
1967
1968        if (!animate) {
1969          callback();
1970          return;
1971        }
1972
1973        var backdropTransitionDuration = Util__default["default"].getTransitionDurationFromElement(this._backdrop);
1974        $__default["default"](this._backdrop).one(Util__default["default"].TRANSITION_END, callback).emulateTransitionEnd(backdropTransitionDuration);
1975      } else if (!this._isShown && this._backdrop) {
1976        $__default["default"](this._backdrop).removeClass(CLASS_NAME_SHOW);
1977
1978        var callbackRemove = function callbackRemove() {
1979          _this9._removeBackdrop();
1980
1981          if (callback) {
1982            callback();
1983          }
1984        };
1985
1986        if ($__default["default"](this._element).hasClass(CLASS_NAME_FADE)) {
1987          var _backdropTransitionDuration = Util__default["default"].getTransitionDurationFromElement(this._backdrop);
1988
1989          $__default["default"](this._backdrop).one(Util__default["default"].TRANSITION_END, callbackRemove).emulateTransitionEnd(_backdropTransitionDuration);
1990        } else {
1991          callbackRemove();
1992        }
1993      } else if (callback) {
1994        callback();
1995      }
1996    } // ----------------------------------------------------------------------
1997    // the following methods are used to handle overflowing modals
1998    // todo (fat): these should probably be refactored out of modal.js
1999    // ----------------------------------------------------------------------
2000    ;
2001
2002    _proto._adjustDialog = function _adjustDialog() {
2003      var isModalOverflowing = this._element.scrollHeight > document.documentElement.clientHeight;
2004
2005      if (!this._isBodyOverflowing && isModalOverflowing) {
2006        this._element.style.paddingLeft = this._scrollbarWidth + "px";
2007      }
2008
2009      if (this._isBodyOverflowing && !isModalOverflowing) {
2010        this._element.style.paddingRight = this._scrollbarWidth + "px";
2011      }
2012    };
2013
2014    _proto._resetAdjustments = function _resetAdjustments() {
2015      this._element.style.paddingLeft = '';
2016      this._element.style.paddingRight = '';
2017    };
2018
2019    _proto._checkScrollbar = function _checkScrollbar() {
2020      var rect = document.body.getBoundingClientRect();
2021      this._isBodyOverflowing = Math.round(rect.left + rect.right) < window.innerWidth;
2022      this._scrollbarWidth = this._getScrollbarWidth();
2023    };
2024
2025    _proto._setScrollbar = function _setScrollbar() {
2026      var _this10 = this;
2027
2028      if (this._isBodyOverflowing) {
2029        // Note: DOMNode.style.paddingRight returns the actual value or '' if not set
2030        //   while $(DOMNode).css('padding-right') returns the calculated value or 0 if not set
2031        var fixedContent = [].slice.call(document.querySelectorAll(SELECTOR_FIXED_CONTENT));
2032        var stickyContent = [].slice.call(document.querySelectorAll(SELECTOR_STICKY_CONTENT)); // Adjust fixed content padding
2033
2034        $__default["default"](fixedContent).each(function (index, element) {
2035          var actualPadding = element.style.paddingRight;
2036          var calculatedPadding = $__default["default"](element).css('padding-right');
2037          $__default["default"](element).data('padding-right', actualPadding).css('padding-right', parseFloat(calculatedPadding) + _this10._scrollbarWidth + "px");
2038        }); // Adjust sticky content margin
2039
2040        $__default["default"](stickyContent).each(function (index, element) {
2041          var actualMargin = element.style.marginRight;
2042          var calculatedMargin = $__default["default"](element).css('margin-right');
2043          $__default["default"](element).data('margin-right', actualMargin).css('margin-right', parseFloat(calculatedMargin) - _this10._scrollbarWidth + "px");
2044        }); // Adjust body padding
2045
2046        var actualPadding = document.body.style.paddingRight;
2047        var calculatedPadding = $__default["default"](document.body).css('padding-right');
2048        $__default["default"](document.body).data('padding-right', actualPadding).css('padding-right', parseFloat(calculatedPadding) + this._scrollbarWidth + "px");
2049      }
2050
2051      $__default["default"](document.body).addClass(CLASS_NAME_OPEN);
2052    };
2053
2054    _proto._resetScrollbar = function _resetScrollbar() {
2055      // Restore fixed content padding
2056      var fixedContent = [].slice.call(document.querySelectorAll(SELECTOR_FIXED_CONTENT));
2057      $__default["default"](fixedContent).each(function (index, element) {
2058        var padding = $__default["default"](element).data('padding-right');
2059        $__default["default"](element).removeData('padding-right');
2060        element.style.paddingRight = padding ? padding : '';
2061      }); // Restore sticky content
2062
2063      var elements = [].slice.call(document.querySelectorAll("" + SELECTOR_STICKY_CONTENT));
2064      $__default["default"](elements).each(function (index, element) {
2065        var margin = $__default["default"](element).data('margin-right');
2066
2067        if (typeof margin !== 'undefined') {
2068          $__default["default"](element).css('margin-right', margin).removeData('margin-right');
2069        }
2070      }); // Restore body padding
2071
2072      var padding = $__default["default"](document.body).data('padding-right');
2073      $__default["default"](document.body).removeData('padding-right');
2074      document.body.style.paddingRight = padding ? padding : '';
2075    };
2076
2077    _proto._getScrollbarWidth = function _getScrollbarWidth() {
2078      // thx d.walsh
2079      var scrollDiv = document.createElement('div');
2080      scrollDiv.className = CLASS_NAME_SCROLLBAR_MEASURER;
2081      document.body.appendChild(scrollDiv);
2082      var scrollbarWidth = scrollDiv.getBoundingClientRect().width - scrollDiv.clientWidth;
2083      document.body.removeChild(scrollDiv);
2084      return scrollbarWidth;
2085    } // Static
2086    ;
2087
2088    Modal._jQueryInterface = function _jQueryInterface(config, relatedTarget) {
2089      return this.each(function () {
2090        var data = $__default["default"](this).data(DATA_KEY);
2091
2092        var _config = _extends({}, Default, $__default["default"](this).data(), typeof config === 'object' && config ? config : {});
2093
2094        if (!data) {
2095          data = new Modal(this, _config);
2096          $__default["default"](this).data(DATA_KEY, data);
2097        }
2098
2099        if (typeof config === 'string') {
2100          if (typeof data[config] === 'undefined') {
2101            throw new TypeError("No method named \"" + config + "\"");
2102          }
2103
2104          data[config](relatedTarget);
2105        } else if (_config.show) {
2106          data.show(relatedTarget);
2107        }
2108      });
2109    };
2110
2111    _createClass(Modal, null, [{
2112      key: "VERSION",
2113      get: function get() {
2114        return VERSION;
2115      }
2116    }, {
2117      key: "Default",
2118      get: function get() {
2119        return Default;
2120      }
2121    }]);
2122
2123    return Modal;
2124  }();
2125  /**
2126   * Data API implementation
2127   */
2128
2129
2130  $__default["default"](document).on(EVENT_CLICK_DATA_API, SELECTOR_DATA_TOGGLE, function (event) {
2131    var _this11 = this;
2132
2133    var target;
2134    var selector = Util__default["default"].getSelectorFromElement(this);
2135
2136    if (selector) {
2137      target = document.querySelector(selector);
2138    }
2139
2140    var config = $__default["default"](target).data(DATA_KEY) ? 'toggle' : _extends({}, $__default["default"](target).data(), $__default["default"](this).data());
2141
2142    if (this.tagName === 'A' || this.tagName === 'AREA') {
2143      event.preventDefault();
2144    }
2145
2146    var $target = $__default["default"](target).one(EVENT_SHOW, function (showEvent) {
2147      if (showEvent.isDefaultPrevented()) {
2148        // Only register focus restorer if modal will actually get shown
2149        return;
2150      }
2151
2152      $target.one(EVENT_HIDDEN, function () {
2153        if ($__default["default"](_this11).is(':visible')) {
2154          _this11.focus();
2155        }
2156      });
2157    });
2158
2159    Modal._jQueryInterface.call($__default["default"](target), config, this);
2160  });
2161  /**
2162   * jQuery
2163   */
2164
2165  $__default["default"].fn[NAME] = Modal._jQueryInterface;
2166  $__default["default"].fn[NAME].Constructor = Modal;
2167
2168  $__default["default"].fn[NAME].noConflict = function () {
2169    $__default["default"].fn[NAME] = JQUERY_NO_CONFLICT;
2170    return Modal._jQueryInterface;
2171  };
2172
2173  return Modal;
2174
2175}));
2176
2177(function(root) {
2178define("bootstrap-a11y/functions", ["jquery"], function() {
2179  return (function() {
2180//https://github.com/paypal/bootstrap-accessibility-plugin/blob/master/plugins/js/bootstrap-accessibility_1.0.3.js
2181// GENERAL UTILITY FUNCTIONS
2182// ===============================
2183/**retouché car les fonctions global c'est MAL, et ca ne marche pas avec requireJS, on les mets dans un objet a11y*/
2184(function ($) {
2185  "use strict";
2186  $.fn.extend({
2187    'a11y': {
2188      'uniqueId': function (prefix) {
2189        return (prefix || 'ui-id') + '-' + Math.random().toString(36).substring(2, 15)+Math.random().toString(36).substring(2, 15)
2190      },
2191      'removeMultiValAttributes': function (el, attr, val) {
2192        var describedby = (el.attr(attr) || "").split(/\s+/)
2193          , index = $.inArray(val, describedby)
2194        if (index !== -1) {
2195          describedby.splice(index, 1)
2196        }
2197        describedby = $.trim(describedby.join(" "))
2198        if (describedby) {
2199          el.attr(attr, describedby)
2200        } else {
2201          el.removeAttr(attr)
2202        }
2203      }
2204    }
2205  });
2206})
2207(jQuery);
2208
2209
2210  }).apply(root, arguments);
2211});
2212}(this));
2213
2214(function(root) {
2215define("bootstrap-a11y/modal", ["jquery","bootstrap/modal","bootstrap-a11y/functions"], function() {
2216  return (function() {
2217////https://github.com/paypal/bootstrap-accessibility-plugin/blob/master/plugins/js/bootstrap-accessibility_1.0.3.js
2218// Modal Extension
2219// ===============================
2220// ===============================
2221(function ($) {
2222  'use strict';
2223
2224  var modalFocus = $.fn.modal.Constructor.prototype.enforceFocus,
2225    modalHide = $.fn.modal.Constructor.prototype.hide;
2226
2227  $('.modal-dialog').attr({'role': 'document'});
2228
2229  $.fn.modal.Constructor.prototype.hide = function () {
2230    modalHide.apply(this, arguments);
2231    $(document).off('keydown.bs.modal');
2232  };
2233
2234  $.fn.modal.Constructor.prototype.enforceFocus = function () {
2235    var focusElements = this.$element.find(':tabbable'),
2236      lastElement = focusElements[focusElements.length - 1],
2237      firstElement = focusElements[0];
2238
2239    $(document).on('keydown.bs.modal', $.proxy(function (event) {
2240      var tabEvent = event.keyCode === 9,
2241        backwardTabEvent = event.shiftKey && tabEvent,
2242        forwardTabEvent = !event.shiftKey && tabEvent,
2243        targetFirstElement = $(event.target).is(firstElement),
2244        targetLastElement = $(event.target).is(lastElement);
2245
2246      if (targetFirstElement && backwardTabEvent) {
2247        lastElement.focus();
2248        event.preventDefault();
2249      } else if (targetLastElement && forwardTabEvent) {
2250        firstElement.focus();
2251        event.preventDefault();
2252      }
2253    }, this));
2254
2255    modalFocus.apply(this, arguments)
2256  };
2257
2258})(jQuery);
2259
2260
2261
2262
2263  }).apply(root, arguments);
2264});
2265}(this));
2266
2267(function(root) {
2268define("jqueryM/jquery.printarea", ["jquery"], function() {
2269  return (function() {
2270/**
2271 *  Version 2.4.1 Copyright (C) 2013
2272 *  Tested in IE 11, FF 28.0 and Chrome 33.0.1750.154
2273 *  No official support for other browsers, but will TRY to accommodate challenges in other browsers.
2274 *  Example:
2275 *      Print Button: <div id="print_button">Print</div>
2276 *      Print Area  : <div class="PrintArea" id="MyId" class="MyClass"> ... html ... </div>
2277 *      Javascript  : <script>
2278 *                       $("div#print_button").click(function(){
2279 *                           $("div.PrintArea").printArea( [OPTIONS] );
2280 *                       });
2281 *                     </script>
2282 *  options are passed as json (example: {mode: "popup", popClose
2282: false})
2283 *
2284 *  {OPTIONS}   | [type]     | (default), values      | Explanation
2285 *  ---------   | ---------  | ---------------------- | -----------
2286 *  @mode       | [string]   | (iframe),popup         | printable window is either iframe or browser popup
2287 *  @popHt      | [number]   | (500)                  | popup window height
2288 *  @popWd      | [number]   | (400)                  | popup window width
2289 *  @popX       | [number]   | (500)                  | popup window screen X position
2290 *  @popY       | [number]   | (500)                  | popup window screen Y position
2291 *  @popTitle   | [string]   | ('')                   | popup window title element
2292 *  @popClose   | [boolean]  | (false),true           | popup window close after printing
2293 *  @extraCss   | [string]   | ('')                   | comma separated list of extra css to include
2294 *  @retainAttr | [string[]] | ["id","class","style"] | string array of attributes to retain for the containment area. (ie: id, style, class)
2295 *  @standard   | [string]   | strict, loose, (html5) | Only for popup. For html 4.01, strict or loose document standard, or html 5 standard
2296 *  @extraHead  | [string]   | ('')                   | comma separated list of extra elements to be appended to the head tag
2297 */
2298(function($) {
2299    var counter = 0;
2300    var modes = { iframe : "iframe", popup : "popup" };
2301    var standards = { strict : "strict", loose : "loose", html5 : "html5" };
2302    var defaults = { mode       : modes.iframe,
2303                     standard   : standards.html5,
2304                     popHt      : 500,
2305                     popWd      : 400,
2306                     popX       : 200,
2307                     popY       : 200,
2308                     popTitle   : '',
2309                     popClose   : false,
2310                     extraCss   : '',
2311                     extraHead  : '',
2312                     retainAttr : ["id","class","style"] };
2313
2314    var settings = {};//global settings
2315
2316    $.fn.printArea = function( options )
2317    {
2318        $.extend( settings, defaults, options );
2319
2320        counter++;
2321        var idPrefix = "printArea_";
2322        $( "[id^=" + idPrefix + "]" ).remove();
2323
2324        settings.id = idPrefix + counter;
2325
2326        var $printSource = $(this);
2327
2328        var PrintAreaWindow = PrintArea.getPrintWindow();
2329
2330        PrintArea.write( PrintAreaWindow.doc, $printSource );
2331
2332        setTimeout( function () { PrintArea.print( PrintAreaWindow ); }, 1000 );
2333    };
2334
2335    var PrintArea = {
2336        print : function( PAWindow ) {
2337            var paWindow = PAWindow.win;
2338
2339            $(PAWindow.doc).ready(function(){
2340                paWindow.focus();
2341                paWindow.print();
2342
2343                if ( settings.mode == modes.popup && settings.popClose )
2344                    setTimeout(function() { paWindow.close(); }, 2000);
2345            });
2346        },
2347        write : function ( PADocument, $ele ) {
2348            PADocument.open();
2349            PADocument.write( PrintArea.docType() + "<html>" + PrintArea.getHead() + PrintArea.getBody( $ele ) + "</html>" );
2350            PADocument.close();
2351        },
2352        docType : function() {
2353            if ( settings.mode == modes.iframe ) return "";
2354
2355            if ( settings.standard == standards.html5 ) return "<!DOCTYPE html>";
2356
2357            var transitional = settings.standard == standards.loose ? " Transitional" : "";
2358            var dtd = settings.standard == standards.loose ? "loose" : "strict";
2359
2360            return '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01' + transitional + '//EN" "http://www.w3.org/TR/html4/' + dtd +  '.dtd">';
2361        },
2362        getHead : function() {
2363            var extraHead = "";
2364            var links = "";
2365
2366            if ( settings.extraHead ) settings.extraHead.replace( /([^,]+)/g, function(m){ extraHead += m });
2367
2368            $(document).find("link")
2369                .filter(function(){ // Requirement: <link> element MUST have rel="stylesheet" to be considered in print document
2370                        var relAttr = $(this).attr("rel");
2371                        return ($.type(relAttr) === 'undefined') == false && relAttr.toLowerCase() == 'stylesheet';
2372                    })
2373                .filter(function(){ // Include if media is undefined, empty, print or all
2374                        var mediaAttr = $(this).attr("media");
2375                        return $.type(mediaAttr) === 'undefined' || mediaAttr == "" || mediaAttr.toLowerCase() == 'print' || mediaAttr.toLowerCase() == 'all'
2376                    })
2377                .each(function(){
2378                        links += '<link type="text/css" rel="stylesheet" href="' + $(this).attr("href") + '" >';
2379                    });
2380            if ( settings.extraCss ) settings.extraCss.replace( /([^,\s]+)/g, function(m){ links += '<link type="text/css" rel="stylesheet" href="' + m + '">' });
2381
2382            return "<head><title>" + settings.popTitle + "</title>" + extraHead + links + "</head>";
2383        },
2384        getBody : function ( elements ) {
2385            var htm = "";
2386            var attrs = settings.retainAttr;
2387            elements.each(function() {
2388                var ele = PrintArea.getFormData( $(this) );
2389
2390                var attributes = ""
2391                for ( var x = 0; x < attrs.length; x++ )
2392                {
2393                    var eleAttr = $(ele).attr( attrs[x] );
2394                    if ( eleAttr ) attributes += (attributes.length > 0 ? " ":"") + attrs[x] + "='" + eleAttr + "'";
2395                }
2396
2397                htm += '<div ' + attributes + '>' + $(ele).html() + '</div>';
2398            });
2399
2400            return "<body>" + htm + "</body>";
2401        },
2402        getFormData : function ( ele ) {
2403            var copy = ele.clone();
2404            var copiedInputs = $("input,select,textarea", copy);
2405            $("input,select,textarea", ele).each(function( i ){
2406                var typeInput = $(this).attr("type");
2407                if ($.type(typeInput) === 'undefined') typeInput = $(this).is("select") ? "select" : $(this).is("textarea") ? "textarea" : "";
2408                var copiedInput = copiedInputs.eq( i );
2409
2410                if ( typeInput == "radio" || typeInput == "checkbox" ) copiedInput.attr( "checked", $(this).is(":checked") );
2411                else if ( typeInput == "text" || typeInput == "" ) copiedInput.attr( "value", $(this).val() );
2412                else if ( typeInput == "select" )
2413                    $(this).find( "option" ).each( function( i ) {
2414                        if ( $(this).is(":selected") ) $("option", copiedInput).eq( i ).attr( "selected", true );
2415                    });
2416                else if ( typeInput == "textarea" ) copiedInput.text( $(this).val() );
2417            });
2418            return copy;
2419        },
2420        getPrintWindow : function () {
2421            switch ( settings.mode )
2422            {
2423                case modes.iframe :
2424                    var f = new PrintArea.Iframe();
2425                    return { win : f.contentWindow || f, doc : f.doc };
2426                case modes.popup :
2427                    var p = new PrintArea.Popup();
2428                    return { win : p, doc : p.doc };
2429            }
2430        },
2431        Iframe : function () {
2432            var frameId = settings.id;
2433            var iframeStyle = 'border:0;position:absolute;width:0px;height:0px;right:0px;top:0px;';
2434            var iframe;
2435
2436            try
2437            {
2438                iframe = document.createElement('iframe');
2439                document.body.appendChild(iframe);
2440                $(iframe).attr({ style: iframeStyle, id: frameId, src: "#" + new Date().getTime() });
2441                iframe.doc = null;
2442                iframe.doc = iframe.contentDocument ? iframe.contentDocument : ( iframe.contentWindow ? iframe.contentWindow.document : iframe.document);
2443            }
2444            catch( e ) { throw e + ". iframes may not be supported in this browser."; }
2445
2446            if ( iframe.doc == null ) throw "Cannot find document.";
2447
2448            return iframe;
2449        },
2450        Popup : function () {
2451            var windowAttr = "location=yes,statusbar=no,directories=no,menubar=no,titlebar=no,toolbar=no,dependent=no";
2452            windowAttr += ",width=" + settings.popWd + ",height=" + settings.popHt;
2453            windowAttr += ",resizable=yes,screenX=" + settings.popX + ",screenY=" + settings.popY + ",personalbar=no,scrollbars=yes";
2454
2455            var newWin = window.open( "", "_blank",  windowAttr );
2456
2457            newWin.doc = newWin.document;
2458
2459            return newWin;
2460        }
2461    };
2462})(jQuery);
2463
2464
2465  }).apply(root, arguments);
2466});
2467}(this));
2468
2469!function () {
2470  "use strict";
2471  let endpoint, uuid, altImage, captchetat, captchaStyleName;
2472
2473  async function refreshCaptcha() {
2474    let url = endpoint + "?get=image&c=" + captchaStyleName;
2475    await fetch(url, {method: "GET", headers: {"Content-Type": "application/json"}}).then((response => {
2476      if (!response.ok) throw new Error("La réponse n'est pas OK");
2477      return response.json()
2478    })).then((data => {
2479      let json = JSON.parse(data);
2480      document.getElementById("captchaImage").src = json.imageb64, uuid = json.uuid, document.getElementById("captchaId").setAttribute("value", uuid)
2481    })).catch((error => {
2482      console.error("Erreur lors de la récupération du captcha", error)
2483    }))
2484  }
2485
2486  async function playCaptchaSound() {
2487    if (!uuid)
2488      uuid = document.getElementById("captchaId").value;
2489    let url = endpoint + "?get=sound&c=" + captchaStyleName + "&t=" + uuid;
2490    try {
2491      await new Audio(url).play()
2492    } catch (error) {
2493      console.error("Erreur lors de la récupération du son", error), await refreshCaptcha()
2494    }
2495  }
2496
2497  function generateCaptcha() {
2498    captchetat = document.getElementById("captchetat");
2499    if (captchetat) {
2500      endpoint = captchetat.getAttribute("urlBackend");
2501      captchaStyleName = captchetat.getAttribute("captchaStyleName");
2502      altImage = captchetat.getAttribute("altImage");
2503      getCaptcha().then(r => console.debug("captcha OK"));
2504    } else {
2505      console.error("L'élément captchetat est introuvable.");
2506    }
2507  }
2508
2509  async function getCaptcha() {
2510    let url = endpoint + "?get=image&c=" + captchaStyleName;
2511    await fetch(url, {method: "GET", headers: {"Content-Type": "application/json"}})
2512      .then(response => {
2513        if (!response.ok) throw new Error("La réponse n'est pas OK");
2514        return response.json()
2515      }).then(data => {
2516        if (data) {
2517          let json = JSON.parse(data);
2518          const t = json.uuid;
2519          const i = json.imageb64;
2520          constructHtml(i, altImage, t);
2521          setButtonTitle(captchaStyleName);
2522        } else {
2523          console.error("data captchetat est null.");
2524        }
2525      })
2526      .catch(e => {
2527        console.error("Erreur lors de la récupération du captcha", e)
2528      })
2529  }
2530
2531  function constructHtml(imageb64, altImage, uuid) {
2532    const t = document.createElement("div");
2533    t.style.display = "flex";
2534    t.style.flexDirection = "row";
2535    t.id = "captchetat-container";
2536    document.getElementById("captchetat").appendChild(t);
2537
2538    const a = document.createElement("img");
2539    a.src = `${imageb64}`;
2540    a.alt = altImage ? altImage : "Recopier le code de sécurité de cette image";
2541    a.id = "captchaImage";
2542    document.getElementById("captchetat-container").appendChild(a);
2543
2544    const o = document.createElement("div");
2545    o.id = "logos";
2546    o.style.marginLeft = "10px";
2547    o.style.display = "flex";
2548    o.style.flexDirection = "column";
2549    o.style.justifyContent = "space-evenly";
2550    document.getElementById("captchetat-container").appendChild(o);
2551
2552    const d = document.createElement("button");
2553    d.type = "button";
2554    d.id = "playSoundIcon";
2555    d.title = "Enoncer le code du captcha";
2556    d.alt = "Enoncer le code du captcha";
2557    d.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" version="1.0" width="25" height="25" viewB
2557ox="0 0 75 75" id="iconSound"><path d="M39.389,13.769 L22.235,28.606 L6,28.606 L6,47.699 L21.989,47.699 L39.389,62.75 L39.389,13.769z" style="stroke:#111;stroke-width:5;stroke-linejoin:round;fill:#111;"/><path d="M48,27.6a19.5,19.5 0 0 1 0,21.4M55.1,20.5a30,30 0 0 1 0,35.6M61.6,14a38.8,38.8 0 0 1 0,48.6" style="fill:none;stroke:#111;stroke-width:5;stroke-linecap:round"/></svg>';
2558    document.getElementById("logos").appendChild(d);
2559    document.getElementById("playSoundIcon").addEventListener("click", playCaptchaSound);
2560
2561    const r = document.createElement("button");
2562    r.type = "button";
2563    r.id = "reloadCaptchaIcon";
2564    r.title = "Générer un nouveau captcha";
2565    r.alt = "Générer un nouveau captcha";
2566    r.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="25" height="25" viewBox="0 0 17 20" fill="none" id="iconReload"><path d="M9.00003 4.0001C11.1 4.0001 13.1 4.8001 14.6 6.3001C17.7 9.4001 17.7 14.5001 14.6 17.6001C12.8 19.5001 10.3 20.2001 7.90003 19.9001L8.40003 17.9001C10.1 18.1001 11.9 17.5001 13.2 16.2001C15.5 13.9001 15.5 10.1001 13.2 7.7001C12.1 6.6001 10.5 6.0001 9.00003 6.0001V10.6001L4.00003 5.6001L9.00003 0.600098V4.0001ZM3.30003 17.6001C0.700029 15.0001 0.300029 11.0001 2.10003 7.9001L3.60003 9.4001C2.50003 11.6001 2.90003 14.4001 4.80003 16.2001C5.30003 16.7001 5.90003 17.1001 6.60003 17.4001L6.00003 19.4001C5.00003 19.0001 4.10003 18.4001 3.30003 17.6001V17.6001Z" fill="black"/></svg>';
2567    document.getElementById("logos").appendChild(r);
2568    document.getElementById("reloadCaptchaIcon").addEventListener("click", refreshCaptcha);
2569
2570    const l = document.createElement("input");
2571    l.id = "captchaId";
2572    l.type = "hidden";
2573    l.value = uuid;
2574    l.name = "captchaId";
2575    document.getElementById("captchetat").appendChild(l);
2576  }
2577
2578  function setButtonTitle(captchaStyleName) {
2579    if (captchaStyleName.includes("FR")) {
2580      document.getElementById("playSoundIcon").setAttribute("title", "Énoncer le code du captcha");
2581      document.getElementById("reloadCaptchaIcon").setAttribute("title", "Générer un nouveau captcha");
2582    }
2583  }
2584
2585  window.captchetatComponentModule = {generateCaptcha};
2586}
2587
2588();
2589
2590define("captcha/captchetat-js", function(){});
2591
2592/*!
2593 * jQuery Cookie Plugin v1.4.1
2594 * https://github.com/carhartl/jquery-cookie
2595 *
2596 * Copyright 2006, 2014 Klaus Hartl
2597 * Released under the MIT license
2598 */
2599(function (factory) {
2600  if (typeof define === 'function' && define.amd) {
2601    // AMD (Register as an anonymous module)
2602    define('jqueryM/cookie',['jquery'], factory);
2603  } else if (typeof exports === 'object') {
2604    // Node/CommonJS
2605    module.exports = factory(require('jquery'));
2606  } else {
2607    // Browser globals
2608    factory(jQuery);
2609  }
2610}(function ($) {
2611
2612  var pluses = /\+/g;
2613
2614  function encode(s) {
2615    return config.raw ? s : encodeURIComponent(s);
2616  }
2617
2618  function decode(s) {
2619    return config.raw ? s : decodeURIComponent(s);
2620  }
2621
2622  function stringifyCookieValue(value) {
2623    return encode(config.json ? JSON.stringify(value) : String(value));
2624  }
2625
2626  function parseCookieValue(s) {
2627    if (s.indexOf('"') === 0) {
2628      // This is a quoted cookie as according to RFC2068, unescape...
2629      s = s.slice(1, -1).replace(/\\"/g, '"').replace(/\\\\/g, '\\');
2630    }
2631
2632    try {
2633      // Replace server-side written pluses with spaces.
2634      // If we can't decode the cookie, ignore it, it's unusable.
2635      // If we can't parse the cookie, ignore it, it's unusable.
2636      s = decodeURIComponent(s.replace(pluses, ' '));
2637      return config.json ? JSON.parse(s) : s;
2638    } catch (e) {
2639    }
2640  }
2641
2642  function read(s, converter) {
2643    var value = config.raw ? s : parseCookieValue(s);
2644    return $.isFunction(converter) ? converter(value) : value;
2645  }
2646
2647  var config = $.cookie = function (key, value, options) {
2648
2649    // Write
2650
2651    if (arguments.length > 1 && !$.isFunction(value)) {
2652      options = $.extend({}, config.defaults, options);
2653
2654      if (typeof options.expires === 'number') {
2655        var days = options.expires, t = options.expires = new Date();
2656        t.setMilliseconds(t.getMilliseconds() + days * 864e+5);
2657      }
2658
2659      return (document.cookie = [
2660        encode(key), '=', stringifyCookieValue(value),
2661        options.expires ? '; expires=' + options.expires.toUTCString() : '', // use expires attribute, max-age is not supported by IE
2662        options.path ? '; path=' + options.path : '',
2663        options.domain ? '; domain=' + options.domain : '',
2664        options.secure ? '; secure' : ''
2665      ].join(''));
2666    }
2667
2668    // Read
2669
2670    var result = key ? undefined : {},
2671    // To prevent the for loop in the first place assign an empty array
2672    // in case there are no cookies at all. Also prevents odd result when
2673    // calling $.cookie().
2674      cookies = document.cookie ? document.cookie.split('; ') : [],
2675      i = 0,
2676      l = cookies.length;
2677
2678    for (; i < l; i++) {
2679      var parts = cookies[i].split('='),
2680        name = decode(parts.shift()),
2681        cookie = parts.join('=');
2682
2683      if (key === name) {
2684        // If second argument (value) is a function it's a converter...
2685        result = read(cookie, value);
2686        break;
2687      }
2688
2689      // Prevent storing a cookie that we couldn't decode.
2690      if (!key && (cookie = read(cookie)) !== undefined) {
2691        result[name] = cookie;
2692      }
2693    }
2694
2695    return result;
2696  };
2697
2698  config.defaults = {};
2699
2700  $.removeCookie = function (key, options) {
2701    // Must not alter options, thus extending a fresh object...
2702    $.cookie(key, '', $.extend({}, options, {expires: -1}));
2703    return !$.cookie(key);
2704  };
2705
2706}));
2707
2708define('global',['jquery', 'jqueryM/cookie'], function ($) {
2709  'use strict';
2710
2711  var global = {
2712    postForm: function (idElement, errorCb, successCb, returnDataType) {
2713      $(idElement).submit(function (e) {
2714        e.preventDefault();
2715        var form = this;
2716        $.ajax({
2717          url: form.action,
2718          type: form.method,
2719          dataType: returnDataType,
2720          data: $(form).serialize(),
2721          success: function (result, status, xhr) {
2722            if (xhr && !jQuery.isEmptyObject(xhr.responseJSON.fieldMessages)){
2723              errorCb(idElement, xhr, status, "");
2724            } else {
2725              successCb(idElement, result, status, xhr);
2726            }
2727            global.updateTitleOnErrorMessage();
2728          },
2729          error: function (result, status, error) {
2730            errorCb(idElement, result, status, error);
2731            global.updateTitleOnErrorMessage();
2732          }
2733        });
2734      });
2735    },
2736
2737    postFormWithFiles: function (idElement, errorCb, successCb, returnDataType) {
2738      $(idElement).submit(function (e) {
2739        e.preventDefault();
2740        var form = this;
2741        $.ajax({
2742          url: form.action,
2743          type: form.method,
2744          cache: false,
2745          dataType: returnDataType,
2746          data: new FormData(form),
2747          processData: false,
2748          contentType: false,
2749          success: function (result, status, xhr) {
2750            successCb(idElement, result, status, xhr);
2751          },
2752          error: function (result, status, error) {
2753            errorCb(idElement, result, status, error);
2754            global.updateTitleOnErrorMessage();
2755          }
2756        });
2757      });
2758    },
2759
2760    bindSingleFormRetrieveJson: function (idElement, errorCb, successCb) {
2761      this.postForm(idElement, errorCb, successCb, 'json');
2762    },
2763
2764    ajaxGlobalSetup: function () {
2765      $.ajaxSetup({
2766        beforeSend: function (xhr, settings) {
2767          xhr._method=settings.type;
2768          if (settings.type !== 'GET' && settings.type !== 'HEAD') {
2769            var csrfHeader = global.getCsrfHeader();
2770            if (csrfHeader && csrfHeader.header && csrfHeader.token) {
2771              xhr.setRequestHeader(csrfHeader.header, csrfHeader.token);
2772            }
2773          }
2774          global.handleSessionExpiration(xhr, settings);
2775        },
2776        complete: function (xhr, status) {
2777          if (xhr._method !== 'GET' && xhr._method !== 'HEAD') {
2778            global.setCsrfHeader(xhr);
2779            var csrf = global.getCsrfHeader();
2780            if (csrf && csrf.token) {
2781              $('input[name=_csrf]').val(csrf.token);
2782            }
2783          }
2784
2785        }
2786      });
2787    },
2788
2789    getCsrfHeader: function () {
2790      var divDataCsrf = $('div[data-_csrf]');
2791      if (divDataCsrf.length) {
2792        var token = divDataCsrf.attr('data-_csrf');
2793        var header = divDataCsrf.attr('data-_csrf_header');
2794        return {
2795          token: token,
2796          header: header
2797        };
2798      }
2799      return null;
2800    },
2801
2802    setCsrfHeader: function (xhr) {
2803      if (!xhr) {
2804        return;
2805      }
2806
2807      var csrfResponseHeader = xhr.getResponseHeader('X-CSRF-TOKEN');
2808      if (!csrfResponseHeader) {
2809        return;
2810      }
2811
2812      var divDataCsrf = $('div[data-_csrf]');
2813      if (divDataCsrf.length) {
2814        divDataCsrf.attr('data-_csrf', csrfResponseHeader);
2815      }
2816    },
2817
2818    getCsrfTokenOrNull: function () {
2819      var csrfHeader = global.getCsrfHeader();
2820      return (csrfHeader && csrfHeader.token) ? csrfHeader.token : null;
2821    },
2822
2823    handleSessionExpiration: function (xhr, settings) {
2824      if (typeof settings.error === 'function') {
2825        var errorfunc = settings.error;
2826        settings.error = function (jqXHR2, textStatus, errorThrown) {
2827          if (jqXHR2.status === 412) {
2828            window.location = jqXHR2.getResponseHeader('location');
2829          } else if (jqXHR2.status === 500) {
2830            console.log('Erreur interne');
2831          } else {
2832            errorfunc(jqXHR2, textStatus, errorThrown);
2833          }
2834        };
2835      }
2836    },
2837
2838    formatErrorMessages: function (listOfMessages) {
2839      var formattedMessages = '<div class=\'alert alert-bloc alert-danger\' role=\'alert\'><p><strong>Des erreurs sont présentes dans le formulaire :</strong></p><ul>';
2840      $.each(listOfMessages, function (index, value) {
2841        formattedMessages += '<li data-test=\'error-message' + (index + 1) + '\'>' + value + '</li>';
2842      });
2843      formattedMessages += '</ul></div>';
2844      return $.parseHTML(formattedMessages);
2845    },
2846
2847    getSpRootDomain: function () {
2848      var spRoot = $('meta[name=sp_root]').attr('content');
2849      return spRoot !== undefined ? spRoot : '';
2850    },
2851
2852    getResourcesPath: function () {
2853      var resourcesPath = document.urlResourcesRoot;
2854      return resourcesPath !== undefined ? resourcesPath : '/resources';
2855    },
2856
2857    getAnnuaireRootDomain: function () {
2858      var annuaireRoot = $('meta[name=annuaire_root]').attr('content');
2859      return annuaireRoot !== undefined ? annuaireRoot : '';
2860    },
2861
2862    isEmpty: function (str) {
2863      return (!str || 0 === str.length);
2864    },
2865
2866    rewriteAnnuaireUrl: function (url) {
2867      if (window.location.pathname.indexOf('/annuaire/') > -1) {
2868        return '/annuaire' + url;
2869      } else {
2870        return url;
2871      }
2872    },
2873
2874    transformLineBreakToHtml: function (str) {
2875      return str.replace(/(?:\r\n|\r|\n)/g, '<br/>');
2876    },
2877
2878    addTooltip : function (element, content) {
2879      $(element).tooltip({
2880        delay : { hide : 500 },
2881        content : function() { return content; },
2882        trigger : 'hover focus',
2883        placement : "auto bottom",
2884        container : "body"
2885      });
2886      $(element).on('keyup', function(event) {
2887        if (event.keyCode === 27) $(element).tooltip('hide');
2888      });
2889    },
2890
2891    sharePageSuccess: function () {
2892      $('#envoiPageForm').find('#errorMessages').empty();
2893      $('#modal-mail').modal('hide');
2894    },
2895
2896    sharePageError: function (idElement, data) {
2897      var form = JSON.parse(data.responseText),
2898        modalContainer = $('#modal-mail');
2899      modalContainer.on('hide.bs.modal', function () {
2900        $('#envoiPageForm').find('#errorMessages').empty().hide();
2901      });
2902      $('#envoiPageForm').find('#errorMessages').empty().show().append(global.formatErrorMessages(form.errorMessages));
2903    },
2904
2905    resetOnErrorDocumentTitle: function () {
2906      document.title = document.title.replace('Erreur - ', '');
2907    },
2908
2909    updateTitleOnErrorMessage: function () {
2910      this.resetOnErrorDocumentTitle();
2911
2912      var $alertPanel = $('div .alert-danger'),
2913        isErrorMessagePresent = $alertPanel.is(':visible'),
2914        isFormErrorPresent = $('form').find('.has-error').is(':visible');
2915
2916      if (isErrorMessagePresent || isFormErrorPresent) {
2917        document.title = 'Erreur - ' + document.title;
2918      }
2919    },
2920    removeAccents: function (word) {
2921      var accent = [
2922          /[\300-\306]/g, /[\340-\346]/g, // A, a
2923          /[\310-\313]/g, /[\350-\353]/g, // E, e
2924          /[\314-\317]/g, /[\354-\357]/g, // I, i
2925          /[\322-\330]/g, /[\362-\370]/g, // O, o
2926          /[\331-\334]/g, /[\371-\374]/g, // U, u
2927          /[\321]/g, /[\361]/g, // N, n
2928          /[\307]/g, /[\347]/g // C, c
2929        ],
2930        noaccent = ['A', 'a', 'E', 'e', 'I', 'i', 'O', 'o', 'U', 'u', 'N', 'n', 'C', 'c'],
2931        sanitized = word;
2932
2933      for (var i = 0; i < accent.length; i++) {
2934        sanitized = sanitized.replace(accent[i], noaccent[i]);
2935      }
2936
2937      return sanitized;
2938    }
2939  };
2940
2941  return global;
2942
2943});
2944
2945
2946define('entreprendre/autocomplete-a11y',['jquery'], function ($) {
2947  'use strict';
2948
2949  var CLASS_AUTOCOMPLETE_DEFAULT = ".autocomplete",
2950    TYPE_SELECT = "select",
2951    TYPE_CHANGE = "change",
2952    onGoingAjaxRequests = {};
2953  var trad = {
2954    fr: {
2955      resultat: 'Aucun résultat',
2956      avertissement: 'Des suggestions vous seront proposées lors de votre saisie situées après le champ'
2957    },
2958
2959    en: {
2960      resultat: 'No result',
2961      avertissement: 'Suggestions are offered to you when you type located after the field'
2962    }
2963  };
2964  var queryString = window.location.search;
2965  var urlParams = new URLSearchParams(queryString);
2966  var lang = urlParams.get('lang');
2967  if (lang === null || trad[lang] === undefined) {
2968    lang = "fr";
2969  }
2970  /**
2971   * envoie un évènement vers le body en sortie d'évènement asynchrone
2972   * @param {String} eventName le nom de l'évènement envoyé
2973   * @param {Object} element   l'élément source de l'évènement asynchrone
2974   * @param {Object} data      les données retournées par l'évènement asynchrone
2975   */
2976  function triggerEvent(eventName, element, data) {
2977    var eventObject = newEventObject();
2978    eventObject.element = element;
2979    eventObject.data = data;
2980    $("body").trigger(eventName, eventObject);
2981  }
2982
2983  /**
2984   * Evènement joué lors de la sélection ou la saisie de la valeur dans le champ.
2985   * @author jjacques
2986   * @param {object}   ui     les données sélectionnées dans le menu d'autocomplétion
2987   * @param {object} $this  l'objet en cours de traitement
2988   * @param {object}   params les paramètres de l'appel
2989   */
2990  function eventOnSelect(type, ui, $this, params) {
2991    var eventName = null,
2992      eventObject = newEventObject();
2993    if (type === TYPE_SELECT && ui !== null && ui.item !== null) {
2994      eventName = (params.cle !== null && params.cle !== undefined) ? "ac-" + params.cle.toLowerCase() : "ac-" + params.cle;
2995      eventObject.data = ui.item;
2996      eventObject.element = $this;
2997      if ($.isFunction(params.select)) {
2998        params.select(ui, $this);
2999        if ($this.attr("data-enableautoselect") !== "false"){
3000          $this.parent().submit();
3001        }
3002      }
3003      triggerEvent(eventName, $this, eventObject);
3004
3005
3006    } else if (type === TYPE_CHANGE && $this !== null) {
3007      eventName = (params.cle !== null && params.cle !== undefined) ? "ac-" + params.cle.toLowerCase() : "ac-" + params.cle;
3008      eventObject.data = {
3009        indicatifPays: null,
3010        nationalite: null,
3011        nom: $this.val()
3012      };
3013      eventObject.element = $this;
3014      triggerEvent(eventName, $this, eventObject);
3015    }
3016  }
3017
3018  /**
3019   * Cacher la liste des propositions
3020   * @param {Object} $element L'objet courant
3021   * @return {String}
3022   */
3023  function hideListPropositionContainer($element, setFocusOnInput, params) {
3024    var $divContainer = $element.parent().find("ul[role='listbox']");
3025    $divContainer.empty().parent().addClass("fr-hidden");
3026    $element.parent().find("div.sp-autocomplete-results p").empty();
3027    $element.removeClass("noValidate");
3028    if (setFocusOnInput) {
3029      $element.focus();
3030    }
3031    if (params && $.isFunction(params.hide)) {
3032      params.hide($element, params.dirty);
3033      params.dirty = false;
3034    }
3035  }
3036
3037  /**
3038   * Mettre le focus sur un élément
3039   * @param {Object} $element L'objet sur laquelle mettre le focus
3040   * @param {Object} $defaultTarget L'objet sur laquelle mettre le focus si $element est null
3041   */
3042  function focusOn_Or($target, $defaultTarget) {
3043    if ($target.length > 0) {
3044      $target.focus();
3045    } else {
3046      $defaultTarget.focus();
3047    }
3048  }
3049
3050  /**
3051   * Gestion d'un événement sur les propositions de l'autocomplétions
3052   * @param {Object} $element L'objet courant
3053   * @param {Object} $option Une des propositions
3054   * @param {Object} item Les données associées à la proposition
3055   * @param {Object} params Les paramétres de l'autocomplétion
3056   * @param {Object} event L'événement à traiter
3057   */
3058  function gestionEventOnOption($element, $option, item, params, event) {
3059    var $firstSuggestion = $element.parent().find("ul[role='listbox'] li.sp-item-suggestion").first(),
3060      $lastSuggestion = $element.parent().find("ul[role='listbox'] li.sp-item-suggestion").last(),
3061      $currentSuggestion = $(event.currentTarget),
3062      $previousSuggestion = $currentSuggestion.prev(),
3063      $nextSuggestion = $currentSuggestion.next();
3064
3065    if (event.type === 'click' || event.keyCode === 13) {
3066      eventOnSelect(TYPE_SELECT, {
3067        item: item
3068      }, $element, params);
3069      hideListPropositionContainer($element, true, params);
3070      event.preventDefault();
3071    } else {
3072      switch (event.keyCode) {
3073        case 27:
3074          hideListPropositionContainer($element, true, params);
3075          break;
3076        case 9:
3077
3078          if (event.shiftKey) {
3079            focusOn_Or($previousSuggestion, $element);
3080            event.preventDefault();
3081          } else if ($nextSuggestion.length > 0) {
3082            $nextSuggestion.focus();
3083            event.preventDefault();
3084          } else {
3085            eventOnSelect(TYPE_CHANGE, null, $element, params);
3086            hideListPropositionContainer($element, false, params);
3087          }
3088          break;
3089        case 40:
3090          focusOn_Or($nextSuggestion, $firstSuggestion);
3091          event.preventDefault();
3092          break;
3093        case 38:
3094          focusOn_Or($previousSuggestion, $lastSuggestion);
3095          event.preventDefault();
3096          break;
3097      }
3098    }
3099
3100  }
3101
3102  /**
3103   * Gestion des événements sur les propositions de l'autocomplétions
3104   * @param {Object} $element L'objet courant
3105   * @param {Object} $option Une des propositions
3106   * @param {Object} item Les données associées à la proposition
3107   * @param {Object} params Les paramétres de l'autocomplétion
3108   */
3109  function initEventsOnOption($element, $option, item, params) {
3110    $option.on("click", function (event) {
3111      gestionEventOnOption($element, $option, item, params, event);
3112    }).on("keydown", function (event) {
3113      gestionEventOnOption($element, $option, item, params, event);
3114    });
3115  }
3116
3117  /**
3118   * traitement de la réponse
3119   * @param {Object} $element L'objet courant
3120   * @param {Object} params Les paramétres de l'autocomplétion
3121   */
3122  function traiterReponse($element, params, data) {
3123    var $divContainer = $element.parent().find("ul[role='listbox']");
3124    var $array_suggestions = [];
3125    hideListPropositionContainer($divContainer, false, null);
3126    $element.addClass("noValidate");
3127    if ($divContainer.length > 0) {
3128        if ((typeof (data[0]) === 'string' &&  data[0].length > 0) || (typeof (data.autocomplete) !== 'undefined' && data.autocomplete.length > 0) || (typeof (data[0]) !== 'undefined' && typeof (data[0].insee) !== 'undefined' && data[0].insee.length > 0) || (typeof (data[0]) !== 'undefined' && typeof (data[0].code) !== 'undefined' && data[0].code.length > 0)) {
3129          var dataAutocomplete = data.autocomplete ? data.autocomplete : data;
3130          if ($.isFunction(params.format)) {
3131            dataAutocomplete.forEach(function (item) {
3132                var $option = $("<li class='sp-item-suggestion' role='option'  tabindex='-1'></li>").append(params.format(item));
3133                $divContainer.append($option);
3134                initEventsOnOption($element, $option, item, params);
3135                $array_suggestions.push(item);
3136            });
3137            $element.parent().find("div.sp-autocomplete-results p").text($array_suggestions.length + " suggestions");
3138            $divContainer.parent().removeClass("fr-hidden");
3139            $divContainer.parent().scrollTop(0);
3140          }
3141      }
3142    }
3143  }
3144
3145  /**
3146   * requête ajax pour récupérer la liste des propositions et traitement de la réponse
3147   * @param {Object} $element L'objet courant
3148   * @param {Object} params Les paramétres de l'autocomplétion
3149   */
3150  function requestSuggestions($element, params) {
3151
3152    var dataToSend = ($.isFunction(params.data)) ? params.data($element) : params.data;
3153    // On annule les requêtes précédentes pour être sûr de ne pas avoir de race condition entre les requêtes ajax
3154    cancelAllRequests(params);
3155    var ajaxParamsReqAutocomplete = {
3156      url: params.url(),
3157      data: dataToSend,
3158      beforeSend: function (jqXHR) {
3159        if (onGoingAjaxRequests[params.cle] === undefined) {
3160          onGoingAjaxRequests[params.cle] = [];
3161        }
3162        onGoingAjaxRequests[params.cle].push(jqXHR);
3163      },
3164      success: function (data) {
3165        if ($.isFunction(params.callback) && data !== null) {
3166          traiterReponse($element, params, params.callback(data));
3167        }
3168      },
3169      error: function (XMLHttpRequest, status) {
3170        if (status === "timeout" && params.timeoutCallback) {
3171          params.timeoutCallback();
3172        }
3173      }
3174    };
3175
3176    if (params.timeout) {
3177      ajaxParamsReqAutocomplete.timeout = params.timeout;
3178    }
3179      $.ajax(ajaxParamsReqAutocomplete);
3180
3181  }
3182
3183  /**
3184   * Ajout des élements (DOM) nécessaires au fonctionement
3185   * @param {Object} $element L'objet courant
3186   */
3187  function insertDefaultEelementsAndAttributes($element) {
3188    var $messagePolite = $("<div class='fr-sr-only sp-autocomplete-results' aria-l
3188ive='polite'><p></p></div>");
3189    $messagePolite.insertBefore($element);
3190
3191    var idMessage = "message" + $element.attr("id");
3192    var $message = $("<p id='" + idMessage + "' class='fr-hidden Message'>" + trad[lang].avertissement + "</p>");
3193    if(!$( '#'+idMessage ).length && (typeof $element.attr('data-no-descibedby-message')==="undefined")){
3194      $message.insertBefore($element);
3195      addAttribut($element, "aria-describedby", idMessage);
3196    }
3197    $element.parent().addClass("select-a11y");
3198
3199    var $suggestionsContainer = $("<div class='sp-item-suggestions fr-hidden' data-test='sp-item-suggestions-container'><ul role='listbox'></ul></div>");
3200    $suggestionsContainer.insertAfter($element);
3201
3202    return $suggestionsContainer;
3203  }
3204
3205  /**
3206   * gestion de l'évenement click bouton
3207   * @param {Object} $element L'objet courant
3208   * @param {Object} event L'événement à traiter
3209   * @param {Object} params Les paramétres de l'autocomplétion
3210   * @return {String}
3211   */
3212  function gestionKeyDown($element, event, params) {
3213    var $suggestionsList = $element.parent().find("ul[role='listbox'] li.sp-item-suggestion"),
3214      nonShiftTab = (!event.shiftKey && event.keyCode === 9),
3215      shiftTab = (event.shiftKey && event.keyCode === 9),
3216      downArrow = event.keyCode === 40,
3217      esc = event.keyCode === 27;
3218
3219    if ((nonShiftTab || downArrow)) {
3220      if ($suggestionsList.length > 0) {
3221        $suggestionsList.first().focus();
3222        event.preventDefault();
3223      } else if (downArrow) {
3224        $element.trigger("input", "custom");
3225        event.preventDefault();
3226      }
3227    }
3228    if (nonShiftTab && $suggestionsList.length === 0) {
3229      eventOnSelect(TYPE_CHANGE, null, $element, params);
3230      hideListPropositionContainer($element, false, params);
3231
3232
3233    }
3234    if (esc || shiftTab) {
3235      eventOnSelect(TYPE_CHANGE, null, $element, params);
3236      hideListPropositionContainer($element, true, params);
3237    }
3238  }
3239
3240  /**
3241   * Position des eventsListener sur le champ
3242   * @param {Object} $element L'objet courant
3243   * @param {Object} params Les paramétres de l'autocomplétion
3244   */
3245  function initEventListeners($element, params) {
3246    var $suggestionsContainer = $element.parent().find("ul[role='listbox']");
3247    $element.on("input", function (event, custom) {
3248
3249      hideListPropositionContainer($(this), false, null);
3250      if ($(this).attr("data-enableAutocompleteV2") === "true" && params !== null && $suggestionsContainer.length > 0) {
3251        if (custom !== "custom" && $.isFunction(params.input)) {
3252          params.dirty = true;
3253          params.input($element);
3254        }
3255        if ($(this).val().length >= params.minLength) {
3256          requestSuggestions($(this), params);
3257        } else {
3258          $(this).parent().find("div.sp-autocomplete-results p").empty();
3259        }
3260      }
3261    }).on("keydown", function (event) {
3262      gestionKeyDown($(this), event, params);
3263    }).on("blur", function () {
3264      eventOnSelect(TYPE_CHANGE, null, $element, params);
3265    });
3266    $("body").on("click", function (event) {
3267      var $target = $(event.target);
3268      if (!$target.is($element) && !$target.is($suggestionsContainer.parent()) && !$target.is($suggestionsContainer) && !$target.is('.sp-item-suggestion')) {
3269        eventOnSelect(TYPE_CHANGE, null, $element, params);
3270        hideListPropositionContainer($element, false, params);
3271      }
3272    });
3273  }
3274
3275  /**
3276   * Initialisation de l'autocomplétion sur l'ensemble des champs
3277   * @param {Object} $elements Les objets jquery des champs concernées
3278   * @param {Object} params Les paramétres de l'autocomplétion surchargées
3279   */
3280  function iniAutocompletionOnInput($elements, params) {
3281    $elements.each(function () {
3282      params.dirty = false;
3283      insertDefaultEelementsAndAttributes($(this));
3284      initEventListeners($(this), params);
3285      $(this).enableAutocompletionV2();
3286    });
3287  }
3288
3289  /**
3290   * Annule toutes les requêtes du tableau onGoingAjaxRequests
3291   * @param params
3292   * @returns
3293   */
3294  function cancelAllRequests(params) {
3295    var tab = onGoingAjaxRequests[params.cle];
3296    if (tab !== undefined) {
3297      for (var i = 0; i < tab.length; i++) {
3298        tab[i].abort();
3299      }
3300      onGoingAjaxRequests[params.cle].length = 0;
3301    }
3302  }
3303
3304  $.fn.initAutocompletionV2 = function (params) {
3305    iniAutocompletionOnInput($(this), params);
3306  };
3307
3308  $.fn.disableAutocompletionV2 = function () {
3309    $(this).attr("data-enableAutocompleteV2", "false");
3310  };
3311
3312  $.fn.enableAutocompletionV2 = function () {
3313    $(this).attr("data-enableAutocompleteV2", "true");
3314  };
3315
3316  /***********/
3317  /*  MISC   */
3318  /***********/
3319
3320
3321  /**
3322   * Ajoute une valeur à un attribut (fonctionne de la même manière que addClass)
3323   * @param {object} $element l'élément sur lequel on souhaite ajouter une valeur a un attribut
3324   * @param {string} attribut le nom de l'attribut ciblé
3325   * @param {string} valeur   la valeur à ajouter à l'attribut
3326   */
3327  function addAttribut($element, attribut, valeur) {
3328    if ($element !== null && $element.length) {
3329      if ($element.attr(attribut) !== null) {
3330        var attr_old = $element.attr(attribut);
3331        if (attr_old !== undefined) {
3332          valeur = attr_old + " " + valeur;
3333        }
3334      }
3335      $element.attr(attribut, valeur);
3336    }
3337  }
3338
3339  /**
3340   * retourne un objet de communication utilisé par les API pour spécifier la fin d'une action (autocomplétion...) accompagné de données permettant d'identifier l'élément source et les données retournées par l'appel Ajax
3341   * @returns {Object} Le détail de l'objet de communication
3342   */
3343  function newEventObject() {
3344    return new EventObject();
3345  }
3346
3347  /**
3348   * Objet associé aux évènements lancés à la fin de requêtes asynchrone
3349   */
3350  function EventObject() {
3351    var that = this;
3352    that.element = null;
3353    that.data = null;
3354  }
3355
3356  /**
3357   * Création et affichage d'une erreur associée à un champ (ce champ doit avoir une tooltip d'erreur associée)
3358   * + mise en forme du label et du champ
3359   * @param {Objet} $element jQuery Object de l'élément auquel on souhaite associer l'erreur
3360   * @param {String} message  le contenu du message d'erreur
3361   * @param {Boolean} Indique si la suppression d'erreur se fait sur un champ fichier
3362   */
3363  function creerErreur($element, message, isFichier) {
3364    alert(message);
3365  }
3366
3367  /**
3368   *
3369   * @param {*} $element
3370   */
3371  function showMessage($element) {
3372    $($element).css('display', 'block');
3373  }
3374
3375
3376  /**
3377   *
3378   * @param {s} $element
3379   */
3380  function hideMessage($element) {
3381    $($element).css('display', 'none');
3382  }
3383
3384  return {};
3385});
3386
3387define('entreprendre/init',['jquery', 'global', 'entreprendre/autocomplete-a11y'], function ($, global) {
3388  'use strict';
3389
3390  /**private API*/
3391  function xmlToString(xmlData) {
3392    return (window.ActiveXObject) ? xmlData.xml : (new XMLSerializer()).serializeToString(xmlData);
3393  }
3394
3395  /**Mise en place de l'autocomplete*/
3396  function registerAutoComplete() {
3397    var audience = $("meta[name='audience']").attr("content");
3398    var noSelectionMesssage = $('div#no-selection-message');
3399    var resetButton = $('button#btn-with-reset-localisation-annuaire-navigate-filter');
3400    var selected = null;
3401    var selectMessage = '<p class="fr-error-text">Sélectionner un élément dans la liste des suggestions</p>';
3402
3403    $("#header-search-input").initAutocompletionV2({
3404      cle: "fs",
3405      minLength: 3,
3406      url: function () {
3407        if (document.location.pathname.startsWith('/simulateur') && audience !== 'particuliers')
3408          return "/suggestion";
3409        else if (document.location.pathname.startsWith('/entreprendre') || audience === 'particuliers' || document.location.pathname.startsWith('/annuaire'))
3410          return "/" + audience + "/suggestion";
3411        else return "/suggestion";
3412      },
3413      input: function ($element) {
3414        $("#fs-alert-block-commune").attr('hidden', 'hidden');
3415        $("#fs-search-in-error").attr('hidden', 'hidden');
3416      },
3417      select: function (ui, $element) {
3418        $element.val(ui.item);
3419      },
3420      format: function (item) {
3421        return item;
3422      },
3423      callback: function (data) {
3424        return data;
3425      },
3426      data: function ($element) {
3427        return {
3428          term: $element.val()
3429        };
3430      }
3431    });
3432
3433    $("#search-filter-input").initAutocompletionV2({
3434      minLength: 3,
3435      url: function () {
3436        if (document.location.pathname.startsWith('/entreprendre') || audience === 'particuliers')
3437          return "/" + audience + "/suggestion";
3438        else return "/suggestion";
3439      },
3440      select: function (ui, $element) {
3441        $element.val(ui.item);
3442      },
3443      format: function (item) {
3444        return item;
3445      },
3446      callback: function (data) {
3447        return data;
3448      },
3449      data: function ($element) {
3450        return {
3451          term: $element.val()
3452        };
3453      }
3454    });
3455
3456    var urlSuggestAnnuaire = document.urlSuggestAnnuaire;
3457    $("#whoWhatDirectorySearchForm").initAutocompletionV2({
3458      minLength: 3,
3459      url: function () {
3460        return urlSuggestAnnuaire + "whowhat";
3461      },
3462      select: function (ui, $element) {
3463        $element.val(ui.item);
3464      },
3465      format: function (item) {
3466        return item;
3467      },
3468      callback: function (data) {
3469        return data;
3470      },
3471      data: function ($element) {
3472        return {
3473          term: $element.val()
3474        };
3475      }
3476    });
3477    $("#whereSearchForm").initAutocompletionV2({
3478      minLength: 3,
3479      url: function () {
3480        return urlSuggestAnnuaire + "where";
3481      },
3482      select: function (ui, $element) {
3483        $element.val(ui.item);
3484      },
3485      format: function (item) {
3486        return item;
3487      },
3488      callback: function (data) {
3489        return data;
3490      },
3491      data: function ($element) {
3492        return {
3493          term: $element.val()
3494        };
3495      }
3496    });
3497    $("#annuaire-navigate-filter").initAutocompletionV2({
3498      minLength: 3,
3499      url: function () {
3500        return urlSuggestAnnuaire + "where";
3501      },
3502      select: function (ui, $element) {
3503        $element.val(ui.item);
3504      },
3505      format: function (item) {
3506        return item;
3507      },
3508      callback: function (data) {
3509        return data;
3510      },
3511      data: function ($element) {
3512        return {
3513          term: $element.val()
3514        };
3515      }
3516    });
3517    const $input = $("#input-search-filter");
3518    $input.initAutocompletionV2(
3519      {
3520        cle: "rechercherpar",
3521        minLength: 3,
3522        url: function () {
3523          return urlSuggestAnnuaire + "where";
3524        },
3525        select: function (ui, $element) {
3526          $element.val(ui.item);
3527          selected = ui.item;
3528          noSelectionMesssage.empty();
3529          noSelectionMesssage.addClass('sp-vhidden');
3530          noSelectionMesssage.hide();
3531          noSelectionMesssage.attr("aria-hidden", true);
3532        },
3533        hide: function ($element, dirty) {
3534          if (dirty && selected === null && !!$element.val()) {
3535            resetButton.removeClass('sp-vhidden');
3536            noSelectionMesssage.append(selectMessage);
3537            noSelectionMesssage.removeClass('sp-vhidden');
3538            noSelectionMesssage.show();
3539            noSelectionMesssage.attr("aria-hidden", false);
3540          }
3541        },
3542        input: function () {
3543          if (!resetButton.hasClass('sp-vhidden')) {
3544            resetButton.addClass('sp-vhidden');
3545          }
3546          noSelectionMesssage.empty();
3547          noSelectionMesssage.addClass('sp-vhidden');
3548          noSelectionMesssage.hide();
3549          noSelectionMesssage.attr("aria-hidden", true);
3550          selected = null;
3551        },
3552        format: function (item) {
3553          return item;
3554        },
3555        callback: function (data) {
3556          return data;
3557        },
3558        data: function ($element) {
3559          return {
3560            term: $element.val()
3561          };
3562        }
3563      });
3564
3565    const $resetButton = $("#btn-with-reset-localisation-annuaire-navigate-filter");
3566    const $wrapper = $input.closest(".sp-input-wrap");
3567    function toggleResetButton() {
3568      const value = ($input.val() || "").trim();
3569      const hasValue = value.length > 0;
3570      $resetButton.toggleClass("sp-vhidden", !hasValue);
3571      $wrapper.toggleClass("fr-fi-search-line", !hasValue);
3572    }
3573
3574    $(document).ready(function () {
3575      toggleResetButton();
3576      $input.on("input", toggleResetButton);
3577      $resetButton.on("click", function () {
3578        $input.val("").focus();
3579        toggleResetButton();
3580      });
3581    });
3582  }
3583
3584  function loadSvg() {
3585    $.get(global.getResourcesPath() + '/assets/img/ico-sp.svg')
3586      .done(function (data) {
3587        $('body').append('<div class="svg-inline">' + xmlToString(data) + '</div>');
3588      });
3589  }
3590
3591  var urlSuggestSva = document.urlSuggestSva;
3592  $("#search-site").initAutocompletionV2({
3593    cle: "sva",
3594    minLength: 3,
3595    url: function () {
3596      return urlSuggestSva;
3597    },
3598    input: function ($element) {
3599
3600    },
3601    select: function (ui, $element) {
3602      $element.val(ui.item);
3603    },
3604    format: function (item) {
3605      return item;
3606    },
3607    callback: function (data) {
3608      return data;
3609    },
3610    data: function ($element) {
3611      return {
3612        term: $element.val()
3613      };
3614    }
3615  });
3616
3617
3618  /**public API*/
3619  var init = {
3620    loadAsynchronouslySVG: loadSvg,
3621    startMiscInit: function () {
3622      $(document).ready(function () {
3623        global.ajaxGlobalSetup();
3624        registerAutoComplete();
3625      });
3626    }
3627  };
3628
3629  return init;
3630});
3631
3632//The build will inline common dependencies into this file.
3633
3634//For any third party dependencies, like jQuery, place them in the lib folder.
3635
3636//Configure loading modules from the lib directory,
3637//except for 'app' ones, which are in a sibling
3638//directory.
3639requirejs.config({
3640  baseUrl: (typeof document === 'undefined' ? './' : document.urlResourcesRoot + '/assets/js'),
3641  paths: {
3642    'app': 'app',
3643    'sightglass': 'sightglass/index',
3644    'jquery': 'jquery/jquery-3.7.0.min',//alias pour jquery, donc plus disponible pour appeler les extensions
3645    'jqueryM': 'jquery', // jquery Directory pour les extensions
3646    'jquery-ui': 'jquery-ui/jquery-ui',//alias pour jquery-ui, donc plus disponible pour appeler les extensions
3647    'jquery-uiM': 'jquery-ui', // jquery-ui Directory pour les extensions
3648    'geoportal': 'ign/GeoportalExtended',
3649    'rivets.vendor': 'rivets/rivets.min',
3650    'jasmine-jquery': 'test/jasmine-jquery',
3651    'mustache': 'mustache/mustache.min',
3652    'persoGeo': 'entreprendre/persogeo/persoGeo',
3653    'Backbone': 'backbone/backbone-min',
3654    'text': 'require-plugins/text',
3655    'underscore': 'lodash/lodash',
3656    'chart': 'chart/Chart.min',
3657    'eulerian':'eulerian/eulerian',
3658    'captchetat-js': 'captcha/captchetat-js'
3659  },
3660  /**pour tous les Js qui ne sont pas des modules requireJs et que l'on ne veut pas modifier (lib exterieur)
3661   * /!\ ajoutez un script ici, ne déclenche pas son chargement*/
3662  shim: {
3663    'bootstrap/collapse': {deps: ['jquery']},
3664    'bootstrap/util': {deps: ['jquery']},
3665    'entreprendre/functions': {deps: ['jquery']},
3666    'jqueryM/jquery.printarea': {deps: ['jquery']},
3667    'Backbone': {deps: ['underscore']},
3668    'bootstrap/popper': {deps: ['jquery']},
3669    'bootstrap/tooltip': {deps: ['jquery']},
3670    'bootstrap/modal': {deps: ['jquery']},
3671    'captcha/jquery-captcha.min': {deps: ['jquery']},
3672    'bootstrap-a11y/functions': {deps: ['jquery']},
3673    'bootstrap-a11y/modal': {deps: ['jquery', 'bootstrap/modal', 'bootstrap-a11y/functions']},
3674  },
3675
3676  config: {
3677    'require-plugins/text': {                              // ---> full path is required!!!
3678      useXhr: function (url, protocol, hostname, port) {
3679        return true;
3680      }
3681    }
3682  },
3683  map: {
3684    '*': {
3685      text: 'require-plugins/text'
3686    }
3687  }
3688});
3689
3690/**chargement des modules bootstrap et leurs extensions a11, uniquement ceux utilisé
3691 * /!\ l'ordre est important*/
3692require(['jquery',
3693  'bootstrap/collapse',
3694  'entreprendre/functions',
3695  'bootstrap/util',
3696  'bootstrap/popper',
3697  'bootstrap/tooltip',
3698  'bootstrap/modal',
3699  'bootstrap-a11y/modal',], function ($) {
3700  console.log('boostrap loaded');
3701});
3702
3703/**chargement de l'extension jquery.printarea.js*/
3704require(['jquery', 'jqueryM/jquery.printarea'], function ($) {
3705  console.log('printarea loaded');
3706});
3707
3708/**chargement de captcha V2 AIFE*/
3709require(['jquery','captcha/captchetat-js'], function ($) {
3710  console.log('captcha AIFE V2 loaded');
3711  $(document).ready(function () {
3712    require(['captcha/captcha-aife'], function (captchaAIFE) {
3713      captchaAIFE.showCaptchaAIFEV();
3714    });
3715  });
3716});
3717
3718require(['jquery','entreprendre/init'], function ($,init) {
3719  init.startMiscInit();
3720  init.loadAsynchronouslySVG();
3721});
3722
3723
3724define("common", function(){});
3725

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.