/*! For license information please see gs-duplicator.min.user.js.LICENSE.txt */
// ==UserScript==
// @name Gitlab Schedule Duplicator
// @namespace https://github.com/tranphuquy19
// @description The [gs-duplicator] is a utility tool for GitLab that simplifies the duplication, creation, and updating of GitLab pipeline schedules. Its key features include cloning schedules with identical configurations, editing schedules using dropdown options derived from variable descriptions, and downloading schedule configurations as .env files for backup and transfer. The gs-duplicator aims to streamline and optimize the GitLab workflow, providing users with an efficient and user-friendly experience.
// @match https://gitlab.com/*/pipeline_schedules*
// @match https://*.gitlab.com/*/pipeline_schedules*
// @grant GM_addStyle
// @grant GM_log
// @run-at document-end
// @supportURL https://github.com/tranphuquy19/gs-duplicator/issues
// @license MIT
// @author tranphuquy19
// @version 1731698918162
// ==/UserScript==
(()=>{var t=[(t,e)=>{"use strict";var n,r;Object.defineProperty(e,"__esModule",{value:!0}),e.saveGitlabToolSettings=e.saveGitlabToken=e.replaceEnterWithN=e.sortVarByName=e.enableMarkdownVarDescription=e.autoShowDropDown=e.getTheOptionsFrom=e.includeAllVariables=e.wrappedVarBy=e.gitlabDefaultPipelineSchedule=e.gitlabRestPerPage=e.gitlabSvgIconUrl=e.gitlabToken=e.gitlabProjectId=e.gitlabGraphqlUrl=e.gitlabApiUrl=e.gitlabUrl=e.gitlabTokenLocalStorageKey=void 0;const o="gitlab_token";e.gitlabTokenLocalStorageKey=o;const i=document.location.origin;e.gitlabUrl=i;const a=`${i}/api/v4`;e.gitlabApiUrl=a;const s=`${i}/api/graphql`;e.gitlabGraphqlUrl=s;const l=(null===(n=document.querySelector("#project_id"))||void 0===n?void 0:n.value)||(null===(r=document.querySelector("body"))||void 0===r?void 0:r.getAttribute("data-project-id"));e.gitlabProjectId=l;const c=window.atob(localStorage.getItem(o)||"");e.gitlabToken=c;let u=!1;e.includeAllVariables=u;let d="/assets/icons-29e9caf34d9cc5889ea5f1dce460a0578cd14318aabc385b1fe54ce6069c9874.svg";e.gitlabSvgIconUrl=d;let f=9999;e.gitlabRestPerPage=f;let p={active:!1,cron:"0 15 * * *",description:"New pipeline schedule",cron_timezone:"UTC",ref:"main"};e.gitlabDefaultPipelineSchedule=p;let h='"';e.wrappedVarBy=h;let g=!0;e.replaceEnterWithN=g;let v="merge_both";e.getTheOptionsFrom=v;let m=!0;e.autoShowDropDown=m;let b=!0;e.enableMarkdownVarDescription=b;let y=!0;e.sortVarByName=y;const w="gitlab-tool-settings",x=localStorage.getItem(w);if(null===x)localStorage.setItem(w,JSON.stringify({gitlabDefaultPipelineSchedule:p,wrappedVarBy:h,gitlabSvgIconUrl:d,gitlabRestPerPage:f,includeAllVariables:u,getTheOptionsFrom:v,autoShowDropDown:m,enableMarkdownVarDescription:b,sortVarByName:y,replaceEnterWithN:g}));else{const t=JSON.parse(x);e.gitlabDefaultPipelineSchedule=p=t.gitlabDefaultPipelineSchedule,e.wrappedVarBy=h=t.wrappedVarBy,e.gitlabSvgIconUrl=d=t.gitlabSvgIconUrl,e.gitlabRestPerPage=f=t.gitlabRestPerPage,e.includeAllVariables=u=t.includeAllVariables||!1,e.getTheOptionsFrom=v=t.getTheOptionsFrom||"merge_both",e.autoShowDropDown=m=t.autoShowDropDown||!0,e.enableMarkdownVarDescription=b=t.enableMarkdownVarDescription||!0,e.sortVarByName=y=t.sortVarByName||!1,e.replaceEnterWithN=g=t.replaceEnterWithN||!0}const S=t=>{localStorage.setItem(o,window.btoa(t))};e.saveGitlabToken=S;const _=t=>{const e=JSON.parse(localStorage.getItem(w)||""),n=Object.assign(Object.assign({},e),t);localStorage.setItem(w,JSON.stringify(n))};e.saveGitlabToolSettings=_,e.default={gitlabTokenLocalStorageKey:o,gitlabUrl:i,gitlabApiUrl:a,gitlabGraphqlUrl:s,gitlabProjectId:l,gitlabToken:c,gitlabSvgIconUrl:d,gitlabRestPerPage:f,gitlabDefaultPipelineSchedule:p,wrappedVarBy:h,includeAllVariables:u,getTheOptionsFrom:v,autoShowDropDown:m,enableMarkdownVarDescription:b,sortVarByName:y,replaceEnterWithN:g,saveGitlabToken:S,saveGitlabToolSettings:_}},function(t,e){var n;!function(e,n){"use strict";"object"==typeof t.exports?t.exports=e.document?n(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return n(t)}:n(e)}("undefined"!=typeof window?window:this,(function(r,o){"use strict";var i=[],a=Object.getPrototypeOf,s=i.slice,l=i.flat?function(t){return i.flat.call(t)}:function(t){return i.concat.apply([],t)},c=i.push,u=i.indexOf,d={},f=d.toString,p=d.hasOwnProperty,h=p.toString,g=h.call(Object),v={},m=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType&&"function"!=typeof t.item},b=function(t){return null!=t&&t===t.window},y=r.document,w={type:!0,src:!0,nonce:!0,noModule:!0};function x(t,e,n){var r,o,i=(n=n||y).createElement("script");if(i.text=t,e)for(r in w)(o=e[r]||e.getAttribute&&e.getAttribute(r))&&i.setAttribute(r,o);n.head.appendChild(i).parentNode.removeChild(i)}function S(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?d[f.call(t)]||"object":typeof t}var _="3.7.1 -ajax,-ajax/jsonp,-ajax/load,-ajax/script,-ajax/var/location,-ajax/var/nonce,-ajax/var/rquery,-ajax/xhr,-manipulation/_evalUrl,-deprecated/ajax-event-alias,-effects,-effects/animatedSelector,-effects/Tween",E=/HTML$/i,T=function(t,e){return new T.fn.init(t,e)};function P(t){var e=!!t&&"length"in t&&t.length,n=S(t);return!m(t)&&!b(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}function O(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}T.fn=T.prototype={jquery:_,constructor:T,length:0,toArray:function(){return s.call(this)},get:function(t){return null==t?s.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=T.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return T.each(this,t)},map:function(t){return this.pushStack(T.map(this,(function(e,n){return t.call(e,n,e)})))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(T.grep(this,(function(t,e){return(e+1)%2})))},odd:function(){return this.pushStack(T.grep(this,(function(t,e){return e%2})))},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n<e?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:c,sort:i.sort,splice:i.splice},T.extend=T.fn.extend=function(){var t,e,n,r,o,i,a=arguments[0]||{},s=1,l=arguments.length,c=!1;for("boolean"==typeof a&&(c=a,a=arguments[s]||{},s++),"object"==typeof a||m(a)||(a={}),s===l&&(a=this,s--);s<l;s++)if(null!=(t=arguments[s]))for(e in t)r=t[e],"__proto__"!==e&&a!==r&&(c&&r&&(T.isPlainObject(r)||(o=Array.isArray(r)))?(n=a[e],i=o&&!Array.isArray(n)?[]:o||T.isPlainObject(n)?n:{},o=!1,a[e]=T.extend(c,i,r)):void 0!==r&&(a[e]=r));return a},T.extend({expando:"jQuery"+(_+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){var e,n;return!(!t||"[object Object]"!==f.call(t))&&(!(e=a(t))||"function"==typeof(n=p.call(e,"constructor")&&e.constructor)&&h.call(n)===g)},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},globalEval:function(t,e,n){x(t,{nonce:e&&e.nonce},n)},each:function(t,e){var n,r=0;if(P(t))for(n=t.length;r<n&&!1!==e.call(t[r],r,t[r]);r++);else for(r in t)if(!1===e.call(t[r],r,t[r]))break;return t},text:function(t){var e,n="",r=0,o=t.nodeType;if(!o)for(;e=t[r++];)n+=T.text(e);return 1===o||11===o?t.textContent:9===o?t.documentElement.textContent:3===o||4===o?t.nodeValue:n},makeArray:function(t,e){var n=e||[];return null!=t&&(P(Object(t))?T.merge(n,"string"==typeof t?[t]:t):c.call(n,t)),n},inArray:function(t,e,n){return null==e?-1:u.call(e,t,n)},isXMLDoc:function(t){var e=t&&t.namespaceURI,n=t&&(t.ownerDocument||t).documentElement;return!E.test(e||n&&n.nodeName||"HTML")},merge:function(t,e){for(var n=+e.length,r=0,o=t.length;r<n;r++)t[o++]=e[r];return t.length=o,t},grep:function(t,e,n){for(var r=[],o=0,i=t.length,a=!n;o<i;o++)!e(t[o],o)!==a&&r.push(t[o]);return r},map:function(t,e,n){var r,o,i=0,a=[];if(P(t))for(r=t.length;i<r;i++)null!=(o=e(t[i],i,n))&&a.push(o);else for(i in t)null!=(o=e(t[i],i,n))&&a.push(o);return l(a)},guid:1,support:v}),"function"==typeof Symbol&&(T.fn[Symbol.iterator]=i[Symbol.iterator]),T.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(t,e){d["[object "+e+"]"]=e.toLowerCase()}));var C=i.pop,k=i.sort,A=i.splice,j="[\\x20\\t\\r\\n\\f]",R=new RegExp("^"+j+"+|((?:^|[^\\\\])(?:\\\\.)*)"+j+"+$","g");T.contains=function(t,e){var n=e&&e.parentNode;return t===n||!(!n||1!==n.nodeType||!(t.contains?t.contains(n):t.compareDocumentPosition&&16&t.compareDocumentPosition(n)))};var D=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function I(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t}T.escapeSelector=function(t){return(t+"").replace(D,I)};var N=y,L=c;!function(){var t,e,n,o,a,l,c,d,f,h,g=L,m=T.expando,b=0,y=0,w=tt(),x=tt(),S=tt(),_=tt(),E=function(t,e){return t===e&&(a=!0),0},P="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",D="(?:\\\\[\\da-fA-F]{1,6}"+j+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",I="\\["+j+"*("+D+")(?:"+j+"*([*^$|!~]?=)"+j+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+D+"))|)"+j+"*\\]",M=":("+D+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+I+")*)|.*)\\)|)",B=new RegExp(j+"+","g"),F=new RegExp("^"+j+"*,"+j+"*"),U=new RegExp("^"+j+"*([>+~]|"+j+")"+j+"*"),$=new RegExp(j+"|>"),q=new RegExp(M),V=new RegExp("^"+D+"$"),H={ID:new RegExp("^#("+D+")"),CLASS:new RegExp("^\\.("+D+")"),TAG:new RegExp("^("+D+"|[*])"),ATTR:new RegExp("^"+I),PSEUDO:new RegExp("^"+M),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+j+"*(even|odd|(([+-]|)(\\d*)n|)"+j+"*(?:([+-]|)"+j+"*(\\d+)|))"+j+"*\\)|)","i"),bool:new RegExp("^(?:"+P+")$","i"),needsContext:new RegExp("^"+j+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+j+"*((?:-\\d)?\\d*)"+j+"*\\)|)(?=[^-]|$)","i")},G=/^(?:input|select|textarea|button)$/i,z=/^h\d$/i,W=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,J=/[+~]/,K=new RegExp("\\\\[\\da-fA-F]{1,6}"+j+"?|\\\\([^\\r\\n\\f])","g"),X=function(t,e){var n="0x"+t.slice(1)-65536;return e||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},Q=function(){lt()},Y=ft((function(t){return!0===t.disabled&&O(t,"fieldset")}),{dir:"parentNode",next:"legend"});try{g.apply(i=s.call(N.childNodes),N.childNodes),i[N.childNodes.length].nodeType}catch(t){g={apply:function(t,e){L.apply(t,s.call(e))},call:function(t){L.apply(t,s.call(arguments,1))}}}function Z(t,e,n,r){var o,i,a,s,c,u,p,h=e&&e.ownerDocument,b=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==b&&9!==b&&11!==b)return n;if(!r&&(lt(e),e=e||l,d)){if(11!==b&&(c=W.exec(t)))if(o=c[1]){if(9===b){if(!(a=e.getElementById(o)))return n;if(a.id===o)return g.call(n,a),n}else if(h&&(a=h.getElementById(o))&&Z.contains(e,a)&&a.id===o)return g.call(n,a),n}else{if(c[2])return g.apply(n,e.getElementsByTagName(t)),n;if((o=c[3])&&e.getElementsByClassName)return g.apply(n,e.getElementsByClassName(o)),n}if(!(_[t+" "]||f&&f.test(t))){if(p=t,h=e,1===b&&($.test(t)||U.test(t))){for((h=J.test(t)&&st(e.parentNode)||e)==e&&v.scope||((s=e.getAttribute("id"))?s=T.escapeSelector(s):e.setAttribute("id",s=m)),i=(u=ut(t)).length;i--;)u[i]=(s?"#"+s:":scope")+" "+dt(u[i]);p=u.join(",")}try{return g.apply(n,h.querySelectorAll(p)),n}catch(e){_(t,!0)}finally{s===m&&e.removeAttribute("id")}}}return bt(t.replace(R,"$1"),e,n,r)}function tt(){var t=[];return function n(r,o){return t.push(r+" ")>e.cacheLength&&delete n[t.shift()],n[r+" "]=o}}function et(t){return t[m]=!0,t}function nt(t){var e=l.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function rt(t){return function(e){return O(e,"input")&&e.type===t}}function ot(t){return function(e){return(O(e,"input")||O(e,"button"))&&e.type===t}}function it(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&&Y(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function at(t){return et((function(e){return e=+e,et((function(n,r){for(var o,i=t([],n.length,e),a=i.length;a--;)n[o=i[a]]&&(n[o]=!(r[o]=n[o]))}))}))}function st(t){return t&&void 0!==t.getElementsByTagName&&t}function lt(t){var n,r=t?t.ownerDocument||t:N;return r!=l&&9===r.nodeType&&r.documentElement?(c=(l=r).documentElement,d=!T.isXMLDoc(l),h=c.matches||c.webkitMatchesSelector||c.msMatchesSelector,c.msMatchesSelector&&N!=l&&(n=l.defaultView)&&n.top!==n&&n.addEventListener("unload",Q),v.getById=nt((function(t){return c.appendChild(t).id=T.expando,!l.getElementsByName||!l.getElementsByName(T.expando).length})),v.disconnectedMatch=nt((function(t){return h.call(t,"*")})),v.scope=nt((function(){return l.querySelectorAll(":scope")})),v.cssHas=nt((function(){try{return l.querySelector(":has(*,:jqfake)"),!1}catch(t){return!0}})),v.getById?(e.filter.ID=function(t){var e=t.replace(K,X);return function(t){return t.getAttribute("id")===e}},e.find.ID=function(t,e){if(void 0!==e.getElementById&&d){var n=e.getElementById(t);return n?[n]:[]}}):(e.filter.ID=function(t){var e=t.replace(K,X);return function(t){var n=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}},e.find.ID=function(t,e){if(void 0!==e.getElementById&&d){var n,r,o,i=e.getElementById(t);if(i){if((n=i.getAttributeNode("id"))&&n.value===t)return[i];for(o=e.getElementsByName(t),r=0;i=o[r++];)if((n=i.getAttributeNode("id"))&&n.value===t)return[i]}return[]}}),e.find.TAG=function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):e.querySelectorAll(t)},e.find.CLASS=function(t,e){if(void 0!==e.getElementsByClassName&&d)return e.getElementsByClassName(t)},f=[],nt((function(t){var e;c.appendChild(t).innerHTML="<a id='"+m+"' href='' disabled='disabled'></a><select id='"+m+"-\r\\' disabled='disabled'><option selected=''></option></select>",t.querySelectorAll("[selected]").length||f.push("\\["+j+"*(?:value|"+P+")"),t.querySelectorAll("[id~="+m+"-]").length||f.push("~="),t.querySelectorAll("a#"+m+"+*").length||f.push(".#.+[+~]"),t.querySelectorAll(":checked").length||f.push(":checked"),(e=l.createElement("input")).setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),c.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&f.push(":enabled",":disabled"),(e=l.createElement("input")).setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||f.push("\\["+j+"*name"+j+"*="+j+"*(?:''|\"\")")})),v.cssHas||f.push(":has"),f=f.length&&new RegExp(f.join("|")),E=function(t,e){if(t===e)return a=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n||(1&(n=(t.ownerDocument||t)==(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!v.sortDetached&&e.compareDocumentPosition(t)===n?t===l||t.ownerDocument==N&&Z.contains(N,t)?-1:e===l||e.ownerDocument==N&&Z.contains(N,e)?1:o?u.call(o,t)-u.call(o,e):0:4&n?-1:1)},l):l}for(t in Z.matches=function(t,e){return Z(t,null,null,e)},Z.matchesSelector=function(t,e){if(lt(t),d&&!_[e+" "]&&(!f||!f.test(e)))try{var n=h.call(t,e);if(n||v.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){_(e,!0)}return Z(e,l,null,[t]).length>0},Z.contains=function(t,e){return(t.ownerDocument||t)!=l&<(t),T.contains(t,e)},Z.attr=function(t,n){(t.ownerDocument||t)!=l&<(t);var r=e.attrHandle[n.toLowerCase()],o=r&&p.call(e.attrHandle,n.toLowerCase())?r(t,n,!d):void 0;return void 0!==o?o:t.getAttribute(n)},Z.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},T.uniqueSort=function(t){var e,n=[],r=0,i=0;if(a=!v.sortStable,o=!v.sortStable&&s.call(t,0),k.call(t,E),a){for(;e=t[i++];)e===t[i]&&(r=n.push(i));for(;r--;)A.call(t,n[r],1)}return o=null,t},T.fn.uniqueSort=function(){return this.pushStack(T.uniqueSort(s.apply(this)))},e=T.expr={cacheLength:50,createPseudo:et,match:H,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(K,X),t[3]=(t[3]||t[4]||t[5]||"").replace(K,X),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||Z.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&Z.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return H.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&q.test(n)&&(e=ut(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(K,X).toLowerCase();return"*"===t?function(){return!0}:function(t){return O(t,e)}},CLASS:function(t){var e=w[t+" "];return e||(e=new RegExp("(^|"+j+")"+t+"("+j+"|$)"))&&w(t,(function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")}))},ATTR:function(t,e,n){return function(r){var o=Z.attr(r,t);return null==o?"!="===e:!e||(o+="","="===e?o===n:"!="===e?o!==n:"^="===e?n&&0===o.indexOf(n):"*="===e?n&&o.indexOf(n)>-1:"$="===e?n&&o.slice(-n.length)===n:"~="===e?(" "+o.replace(B," ")+" ").indexOf(n)>-1:"|="===e&&(o===n||o.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,n,r,o){var i="nth"!==t.slice(0,3),a="last"!==t.slice(-4),s="of-type"===e;return 1===r&&0===o?function(t){return!!t.parentNode}:function(e,n,l){var c,u,d,f,p,h=i!==a?"nextSibling":"previousSibling",g=e.parentNode,v=s&&e.nodeName.toLowerCase(),y=!l&&!s,w=!1;if(g){if(i){for(;h;){for(d=e;d=d[h];)if(s?O(d,v):1===d.nodeType)return!1;p=h="only"===t&&!p&&"nextSibling"}return!0}if(p=[a?g.firstChild:g.lastChild],a&&y){for(w=(f=(c=(u=g[m]||(g[m]={}))[t]||[])[0]===b&&c[1])&&c[2],d=f&&g.childNodes[f];d=++f&&d&&d[h]||(w=f=0)||p.pop();)if(1===d.nodeType&&++w&&d===e){u[t]=[b,f,w];break}}else if(y&&(w=f=(c=(u=e[m]||(e[m]={}))[t]||[])[0]===b&&c[1]),!1===w)for(;(d=++f&&d&&d[h]||(w=f=0)||p.pop())&&(!(s?O(d,v):1===d.nodeType)||!++w||(y&&((u=d[m]||(d[m]={}))[t]=[b,w]),d!==e)););return(w-=o)===r||w%r==0&&w/r>=0}}},PSEUDO:function(t,n){var r,o=e.pseudos[t]||e.setFilters[t.toLowerCase()]||Z.error("unsupported pseudo: "+t);return o[m]?o(n):o.length>1?(r=[t,t,"",n],e.setFilters.hasOwnProperty(t.toLowerCase())?et((function(t,e){for(var r,i=o(t,n),a=i.length;a--;)t[r=u.call(t,i[a])]=!(e[r]=i[a])})):function(t){return o(t,0,r)}):o}},pseudos:{not:et((function(t){var e=[],n=[],r=mt(t.replace(R,"$1"));return r[m]?et((function(t,e,n,o){for(var i,a=r(t,null,o,[]),s=t.length;s--;)(i=a[s])&&(t[s]=!(e[s]=i))})):function(t,o,i){return e[0]=t,r(e,null,i,n),e[0]=null,!n.pop()}})),has:et((function(t){return function(e){return Z(t,e).length>0}})),contains:et((function(t){return t=t.replace(K,X),function(e){return(e.textContent||T.text(e)).indexOf(t)>-1}})),lang:et((function(t){return V.test(t||"")||Z.error("unsupported lang: "+t),t=t.replace(K,X).toLowerCase(),function(e){var n;do{if(n=d?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(n=n.toLowerCase())===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}})),target:function(t){var e=r.location&&r.location.hash;return e&&e.slice(1)===t.id},root:function(t){return t===c},focus:function(t){return t===function(){try{return l.activeElement}catch(t){}}()&&l.hasFocus()&&!!(t.type||t.href||~t.tabIndex)},enabled:it(!1),disabled:it(!0),checked:function(t){return O(t,"input")&&!!t.checked||O(t,"option")&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!e.pseudos.empty(t)},header:function(t){return z.test(t.nodeName)},input:function(t){return G.test(t.nodeName)},button:function(t){return O(t,"input")&&"button"===t.type||O(t,"button")},text:function(t){var e;return O(t,"input")&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:at((function(){return[0]})),last:at((function(t,e){return[e-1]})),eq:at((function(t,e,n){return[n<0?n+e:n]})),even:at((function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t})),odd:at((function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t})),lt:at((function(t,e,n){var r;for(r=n<0?n+e:n>e?e:n;--r>=0;)t.push(r);return t})),gt:at((function(t,e,n){for(var r=n<0?n+e:n;++r<e;)t.push(r);return t}))}},e.pseudos.nth=e.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})e.pseudos[t]=rt(t);for(t in{submit:!0,reset:!0})e.pseudos[t]=ot(t);function ct(){}function ut(t,n){var r,o,i,a,s,l,c,u=x[t+" "];if(u)return n?0:u.slice(0);for(s=t,l=[],c=e.preFilter;s;){for(a in r&&!(o=F.exec(s))||(o&&(s=s.slice(o[0].length)||s),l.push(i=[])),r=!1,(o=U.exec(s))&&(r=o.shift(),i.push({value:r,type:o[0].replace(R," ")}),s=s.slice(r.length)),e.filter)!(o=H[a].exec(s))||c[a]&&!(o=c[a](o))||(r=o.shift(),i.push({value:r,type:a,matches:o}),s=s.slice(r.length));if(!r)break}return n?s.length:s?Z.error(t):x(t,l).slice(0)}function dt(t){for(var e=0,n=t.length,r="";e<n;e++)r+=t[e].value;return r}function ft(t,e,n){var r=e.dir,o=e.next,i=o||r,a=n&&"parentNode"===i,s=y++;return e.first?function(e,n,o){for(;e=e[r];)if(1===e.nodeType||a)return t(e,n,o);return!1}:function(e,n,l){var c,u,d=[b,s];if(l){for(;e=e[r];)if((1===e.nodeType||a)&&t(e,n,l))return!0}else for(;e=e[r];)if(1===e.nodeType||a)if(u=e[m]||(e[m]={}),o&&O(e,o))e=e[r]||e;else{if((c=u[i])&&c[0]===b&&c[1]===s)return d[2]=c[2];if(u[i]=d,d[2]=t(e,n,l))return!0}return!1}}function pt(t){return t.length>1?function(e,n,r){for(var o=t.length;o--;)if(!t[o](e,n,r))return!1;return!0}:t[0]}function ht(t,e,n,r,o){for(var i,a=[],s=0,l=t.length,c=null!=e;s<l;s++)(i=t[s])&&(n&&!n(i,r,o)||(a.push(i),c&&e.push(s)));return a}function gt(t,e,n,r,o,i){return r&&!r[m]&&(r=gt(r)),o&&!o[m]&&(o=gt(o,i)),et((function(i,a,s,l){var c,d,f,p,h=[],v=[],m=a.length,b=i||function(t,e,n){for(var r=0,o=e.length;r<o;r++)Z(t,e[r],n);return n}(e||"*",s.nodeType?[s]:s,[]),y=!t||!i&&e?b:ht(b,h,t,s,l);if(n?n(y,p=o||(i?t:m||r)?[]:a,s,l):p=y,r)for(c=ht(p,v),r(c,[],s,l),d=c.length;d--;)(f=c[d])&&(p[v[d]]=!(y[v[d]]=f));if(i){if(o||t){if(o){for(c=[],d=p.length;d--;)(f=p[d])&&c.push(y[d]=f);o(null,p=[],c,l)}for(d=p.length;d--;)(f=p[d])&&(c=o?u.call(i,f):h[d])>-1&&(i[c]=!(a[c]=f))}}else p=ht(p===a?p.splice(m,p.length):p),o?o(null,a,p,l):g.apply(a,p)}))}function vt(t){for(var r,o,i,a=t.length,s=e.relative[t[0].type],l=s||e.relative[" "],c=s?1:0,d=ft((function(t){return t===r}),l,!0),f=ft((function(t){return u.call(r,t)>-1}),l,!0),p=[function(t,e,o){var i=!s&&(o||e!=n)||((r=e).nodeType?d(t,e,o):f(t,e,o));return r=null,i}];c<a;c++)if(o=e.relative[t[c].type])p=[ft(pt(p),o)];else{if((o=e.filter[t[c].type].apply(null,t[c].matches))[m]){for(i=++c;i<a&&!e.relative[t[i].type];i++);return gt(c>1&&pt(p),c>1&&dt(t.slice(0,c-1).concat({value:" "===t[c-2].type?"*":""})).replace(R,"$1"),o,c<i&&vt(t.slice(c,i)),i<a&&vt(t=t.slice(i)),i<a&&dt(t))}p.push(o)}return pt(p)}function mt(t,r){var o,i=[],a=[],s=S[t+" "];if(!s){for(r||(r=ut(t)),o=r.length;o--;)(s=vt(r[o]))[m]?i.push(s):a.push(s);s=S(t,function(t,r){var o=r.length>0,i=t.length>0,a=function(a,s,c,u,f){var p,h,v,m=0,y="0",w=a&&[],x=[],S=n,_=a||i&&e.find.TAG("*",f),E=b+=null==S?1:Math.random()||.1,P=_.length;for(f&&(n=s==l||s||f);y!==P&&null!=(p=_[y]);y++){if(i&&p){for(h=0,s||p.ownerDocument==l||(lt(p),c=!d);v=t[h++];)if(v(p,s||l,c)){g.call(u,p);break}f&&(b=E)}o&&((p=!v&&p)&&m--,a&&w.push(p))}if(m+=y,o&&y!==m){for(h=0;v=r[h++];)v(w,x,s,c);if(a){if(m>0)for(;y--;)w[y]||x[y]||(x[y]=C.call(u));x=ht(x)}g.apply(u,x),f&&!a&&x.length>0&&m+r.length>1&&T.uniqueSort(u)}return f&&(b=E,n=S),w};return o?et(a):a}(a,i)),s.selector=t}return s}function bt(t,n,r,o){var i,a,s,l,c,u="function"==typeof t&&t,f=!o&&ut(t=u.selector||t);if(r=r||[],1===f.length){if((a=f[0]=f[0].slice(0)).length>2&&"ID"===(s=a[0]).type&&9===n.nodeType&&d&&e.relative[a[1].type]){if(!(n=(e.find.ID(s.matches[0].replace(K,X),n)||[])[0]))return r;u&&(n=n.parentNode),t=t.slice(a.shift().value.length)}for(i=H.needsContext.test(t)?0:a.length;i--&&(s=a[i],!e.relative[l=s.type]);)if((c=e.find[l])&&(o=c(s.matches[0].replace(K,X),J.test(a[0].type)&&st(n.parentNode)||n))){if(a.splice(i,1),!(t=o.length&&dt(a)))return g.apply(r,o),r;break}}return(u||mt(t,f))(o,n,!d,r,!n||J.test(t)&&st(n.parentNode)||n),r}ct.prototype=e.filters=e.pseudos,e.setFilters=new ct,v.sortStable=m.split("").sort(E).join("")===m,lt(),v.sortDetached=nt((function(t){return 1&t.compareDocumentPosition(l.createElement("fieldset"))})),T.find=Z,T.expr[":"]=T.expr.pseudos,T.unique=T.uniqueSort,Z.compile=mt,Z.select=bt,Z.setDocument=lt,Z.tokenize=ut,Z.escape=T.escapeSelector,Z.getText=T.text,Z.isXML=T.isXMLDoc,Z.selectors=T.expr,Z.support=T.support,Z.uniqueSort=T.uniqueSort}();var M=function(t,e,n){for(var r=[],o=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(o&&T(t).is(n))break;r.push(t)}return r},B=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},F=T.expr.match.needsContext,U=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function $(t,e,n){return m(e)?T.grep(t,(function(t,r){return!!e.call(t,r,t)!==n})):e.nodeType?T.grep(t,(function(t){return t===e!==n})):"string"!=typeof e?T.grep(t,(function(t){return u.call(e,t)>-1!==n})):T.filter(e,t,n)}T.filter=function(t,e,n){var r=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===r.nodeType?T.find.matchesSelector(r,t)?[r]:[]:T.find.matches(t,T.grep(e,(function(t){return 1===t.nodeType})))},T.fn.extend({find:function(t){var e,n,r=this.length,o=this;if("string"!=typeof t)return this.pushStack(T(t).filter((function(){for(e=0;e<r;e++)if(T.contains(o[e],this))return!0})));for(n=this.pushStack([]),e=0;e<r;e++)T.find(t,o[e],n);return r>1?T.uniqueSort(n):n},filter:function(t){return this.pushStack($(this,t||[],!1))},not:function(t){return this.pushStack($(this,t||[],!0))},is:function(t){return!!$(this,"string"==typeof t&&F.test(t)?T(t):t||[],!1).length}});var q,V=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(T.fn.init=function(t,e,n){var r,o;if(!t)return this;if(n=n||q,"string"==typeof t){if(!(r="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:V.exec(t))||!r[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(r[1]){if(e=e instanceof T?e[0]:e,T.merge(this,T.parseHTML(r[1],e&&e.nodeType?e.ownerDocument||e:y,!0)),U.test(r[1])&&T.isPlainObject(e))for(r in e)m(this[r])?this[r](e[r]):this.attr(r,e[r]);return this}return(o=y.getElementById(r[2]))&&(this[0]=o,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):m(t)?void 0!==n.ready?n.ready(t):t(T):T.makeArray(t,this)}).prototype=T.fn,q=T(y);var H=/^(?:parents|prev(?:Until|All))/,G={children:!0,contents:!0,next:!0,prev:!0};function z(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}T.fn.extend({has:function(t){var e=T(t,this),n=e.length;return this.filter((function(){for(var t=0;t<n;t++)if(T.contains(this,e[t]))return!0}))},closest:function(t,e){var n,r=0,o=this.length,i=[],a="string"!=typeof t&&T(t);if(!F.test(t))for(;r<o;r++)for(n=this[r];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&T.find.matchesSelector(n,t))){i.push(n);break}return this.pushStack(i.length>1?T.uniqueSort(i):i)},index:function(t){return t?"string"==typeof t?u.call(T(t),this[0]):u.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(T.uniqueSort(T.merge(this.get(),T(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),T.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return M(t,"parentNode")},parentsUntil:function(t,e,n){return M(t,"parentNode",n)},next:function(t){return z(t,"nextSibling")},prev:function(t){return z(t,"previousSibling")},nextAll:function(t){return M(t,"nextSibling")},prevAll:function(t){return M(t,"previousSibling")},nextUntil:function(t,e,n){return M(t,"nextSibling",n)},prevUntil:function(t,e,n){return M(t,"previousSibling",n)},siblings:function(t){return B((t.parentNode||{}).firstChild,t)},children:function(t){return B(t.firstChild)},contents:function(t){return null!=t.contentDocument&&a(t.contentDocument)?t.contentDocument:(O(t,"template")&&(t=t.content||t),T.merge([],t.childNodes))}},(function(t,e){T.fn[t]=function(n,r){var o=T.map(this,e,n);return"Until"!==t.slice(-5)&&(r=n),r&&"string"==typeof r&&(o=T.filter(r,o)),this.length>1&&(G[t]||T.uniqueSort(o),H.test(t)&&o.reverse()),this.pushStack(o)}}));var W=/[^\x20\t\r\n\f]+/g;function J(t){return t}function K(t){throw t}function X(t,e,n,r){var o;try{t&&m(o=t.promise)?o.call(t).done(e).fail(n):t&&m(o=t.then)?o.call(t,e,n):e.apply(void 0,[t].slice(r))}catch(t){n.apply(void 0,[t])}}T.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return T.each(t.match(W)||[],(function(t,n){e[n]=!0})),e}(t):T.extend({},t);var e,n,r,o,i=[],a=[],s=-1,l=function(){for(o=o||t.once,r=e=!0;a.length;s=-1)for(n=a.shift();++s<i.length;)!1===i[s].apply(n[0],n[1])&&t.stopOnFalse&&(s=i.length,n=!1);t.memory||(n=!1),e=!1,o&&(i=n?[]:"")},c={add:function(){return i&&(n&&!e&&(s=i.length-1,a.push(n)),function e(n){T.each(n,(function(n,r){m(r)?t.unique&&c.has(r)||i.push(r):r&&r.length&&"string"!==S(r)&&e(r)}))}(arguments),n&&!e&&l()),this},remove:function(){return T.each(arguments,(function(t,e){for(var n;(n=T.inArray(e,i,n))>-1;)i.splice(n,1),n<=s&&s--})),this},has:function(t){return t?T.inArray(t,i)>-1:i.length>0},empty:function(){return i&&(i=[]),this},disable:function(){return o=a=[],i=n="",this},disabled:function(){return!i},lock:function(){return o=a=[],n||e||(i=n=""),this},locked:function(){return!!o},fireWith:function(t,n){return o||(n=[t,(n=n||[]).slice?n.slice():n],a.push(n),e||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},T.extend({Deferred:function(t){var e=[["notify","progress",T.Callbacks("memory"),T.Callbacks("memory"),2],["resolve","done",T.Callbacks("once memory"),T.Callbacks("once memory"),0,"resolved"],["reject","fail",T.Callbacks("once memory"),T.Callbacks("once memory"),1,"rejected"]],n="pending",o={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},catch:function(t){return o.then(null,t)},pipe:function(){var t=arguments;return T.Deferred((function(n){T.each(e,(function(e,r){var o=m(t[r[4]])&&t[r[4]];i[r[1]]((function(){var t=o&&o.apply(this,arguments);t&&m(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,o?[t]:arguments)}))})),t=null})).promise()},then:function(t,n,o){var i=0;function a(t,e,n,o){return function(){var s=this,l=arguments,c=function(){var r,c;if(!(t<i)){if((r=n.apply(s,l))===e.promise())throw new TypeError("Thenable self-resolution");c=r&&("object"==typeof r||"function"==typeof r)&&r.then,m(c)?o?c.call(r,a(i,e,J,o),a(i,e,K,o)):(i++,c.call(r,a(i,e,J,o),a(i,e,K,o),a(i,e,J,e.notifyWith))):(n!==J&&(s=void 0,l=[r]),(o||e.resolveWith)(s,l))}},u=o?c:function(){try{c()}catch(r){T.Deferred.exceptionHook&&T.Deferred.exceptionHook(r,u.error),t+1>=i&&(n!==K&&(s=void 0,l=[r]),e.rejectWith(s,l))}};t?u():(T.Deferred.getErrorHook?u.error=T.Deferred.getErrorHook():T.Deferred.getStackHook&&(u.error=T.Deferred.getStackHook()),r.setTimeout(u))}}return T.Deferred((function(r){e[0][3].add(a(0,r,m(o)?o:J,r.notifyWith)),e[1][3].add(a(0,r,m(t)?t:J)),e[2][3].add(a(0,r,m(n)?n:K))})).promise()},promise:function(t){return null!=t?T.extend(t,o):o}},i={};return T.each(e,(function(t,r){var a=r[2],s=r[5];o[r[1]]=a.add,s&&a.add((function(){n=s}),e[3-t][2].disable,e[3-t][3].disable,e[0][2].lock,e[0][3].lock),a.add(r[3].fire),i[r[0]]=function(){return i[r[0]+"With"](this===i?void 0:this,arguments),this},i[r[0]+"With"]=a.fireWith})),o.promise(i),t&&t.call(i,i),i},when:function(t){var e=arguments.length,n=e,r=Array(n),o=s.call(arguments),i=T.Deferred(),a=function(t){return function(n){r[t]=this,o[t]=arguments.length>1?s.call(arguments):n,--e||i.resolveWith(r,o)}};if(e<=1&&(X(t,i.done(a(n)).resolve,i.reject,!e),"pending"===i.state()||m(o[n]&&o[n].then)))return i.then();for(;n--;)X(o[n],a(n),i.reject);return i.promise()}});var Q=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;T.Deferred.exceptionHook=function(t,e){r.console&&r.console.warn&&t&&Q.test(t.name)&&r.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},T.readyException=function(t){r.setTimeout((function(){throw t}))};var Y=T.Deferred();function Z(){y.removeEventListener("DOMContentLoaded",Z),r.removeEventListener("load",Z),T.ready()}T.fn.ready=function(t){return Y.then(t).catch((function(t){T.readyException(t)})),this},T.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--T.readyWait:T.isReady)||(T.isReady=!0,!0!==t&&--T.readyWait>0||Y.resolveWith(y,[T]))}}),T.ready.then=Y.then,"complete"===y.readyState||"loading"!==y.readyState&&!y.documentElement.doScroll?r.setTimeout(T.ready):(y.addEventListener("DOMContentLoaded",Z),r.addEventListener("load",Z));var tt=function(t,e,n,r,o,i,a){var s=0,l=t.length,c=null==n;if("object"===S(n))for(s in o=!0,n)tt(t,e,s,n[s],!0,i,a);else if(void 0!==r&&(o=!0,m(r)||(a=!0),c&&(a?(e.call(t,r),e=null):(c=e,e=function(t,e,n){return c.call(T(t),n)})),e))for(;s<l;s++)e(t[s],n,a?r:r.call(t[s],s,e(t[s],n)));return o?t:c?e.call(t):l?e(t[0],n):i},et=/^-ms-/,nt=/-([a-z])/g;function rt(t,e){return e.toUpperCase()}function ot(t){return t.replace(et,"ms-").replace(nt,rt)}var it=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};function at(){this.expando=T.expando+at.uid++}at.uid=1,at.prototype={cache:function(t){var e=t[this.expando];return e||(e={},it(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,n){var r,o=this.cache(t);if("string"==typeof e)o[ot(e)]=n;else for(r in e)o[ot(r)]=e[r];return o},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][ot(e)]},access:function(t,e,n){return void 0===e||e&&"string"==typeof e&&void 0===n?this.get(t,e):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,r=t[this.expando];if(void 0!==r){if(void 0!==e){n=(e=Array.isArray(e)?e.map(ot):(e=ot(e))in r?[e]:e.match(W)||[]).length;for(;n--;)delete r[e[n]]}(void 0===e||T.isEmptyObject(r))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!T.isEmptyObject(e)}};var st=new at,lt=new at,ct=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ut=/[A-Z]/g;function dt(t,e,n){var r;if(void 0===n&&1===t.nodeType)if(r="data-"+e.replace(ut,"-$&").toLowerCase(),"string"==typeof(n=t.getAttribute(r))){try{n=function(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:ct.test(t)?JSON.parse(t):t)}(n)}catch(t){}lt.set(t,e,n)}else n=void 0;return n}T.extend({hasData:function(t){return lt.hasData(t)||st.hasData(t)},data:function(t,e,n){return lt.access(t,e,n)},removeData:function(t,e){lt.remove(t,e)},_data:function(t,e,n){return st.access(t,e,n)},_removeData:function(t,e){st.remove(t,e)}}),T.fn.extend({data:function(t,e){var n,r,o,i=this[0],a=i&&i.attributes;if(void 0===t){if(this.length&&(o=lt.get(i),1===i.nodeType&&!st.get(i,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&0===(r=a[n].name).indexOf("data-")&&(r=ot(r.slice(5)),dt(i,r,o[r]));st.set(i,"hasDataAttrs",!0)}return o}return"object"==typeof t?this.each((function(){lt.set(this,t)})):tt(this,(function(e){var n;if(i&&void 0===e)return void 0!==(n=lt.get(i,t))||void 0!==(n=dt(i,t))?n:void 0;this.each((function(){lt.set(this,t,e)}))}),null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each((function(){lt.remove(this,t)}))}}),T.extend({queue:function(t,e,n){var r;if(t)return e=(e||"fx")+"queue",r=st.get(t,e),n&&(!r||Array.isArray(n)?r=st.access(t,e,T.makeArray(n)):r.push(n)),r||[]},dequeue:function(t,e){e=e||"fx";var n=T.queue(t,e),r=n.length,o=n.shift(),i=T._queueHooks(t,e);"inprogress"===o&&(o=n.shift(),r--),o&&("fx"===e&&n.unshift("inprogress"),delete i.stop,o.call(t,(function(){T.dequeue(t,e)}),i)),!r&&i&&i.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return st.get(t,n)||st.access(t,n,{empty:T.Callbacks("once memory").add((function(){st.remove(t,[e+"queue",n])}))})}}),T.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?T.queue(this[0],t):void 0===e?this:this.each((function(){var n=T.queue(this,t,e);T._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&T.dequeue(this,t)}))},dequeue:function(t){return this.each((function(){T.dequeue(this,t)}))},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,r=1,o=T.Deferred(),i=this,a=this.length,s=function(){--r||o.resolveWith(i,[i])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";a--;)(n=st.get(i[a],t+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),o.promise(e)}});var ft=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,pt=new RegExp("^(?:([+-])=|)("+ft+")([a-z%]*)$","i"),ht=["Top","Right","Bottom","Left"],gt=y.documentElement,vt=function(t){return T.contains(t.ownerDocument,t)},mt={composed:!0};gt.getRootNode&&(vt=function(t){return T.contains(t.ownerDocument,t)||t.getRootNode(mt)===t.ownerDocument});var bt=function(t,e){return"none"===(t=e||t).style.display||""===t.style.display&&vt(t)&&"none"===T.css(t,"display")};var yt={};function wt(t){var e,n=t.ownerDocument,r=t.nodeName,o=yt[r];return o||(e=n.body.appendChild(n.createElement(r)),o=T.css(e,"display"),e.parentNode.removeChild(e),"none"===o&&(o="block"),yt[r]=o,o)}function xt(t,e){for(var n,r,o=[],i=0,a=t.length;i<a;i++)(r=t[i]).style&&(n=r.style.display,e?("none"===n&&(o[i]=st.get(r,"display")||null,o[i]||(r.style.display="")),""===r.style.display&&bt(r)&&(o[i]=wt(r))):"none"!==n&&(o[i]="none",st.set(r,"display",n)));for(i=0;i<a;i++)null!=o[i]&&(t[i].style.display=o[i]);return t}T.fn.extend({show:function(){return xt(this,!0)},hide:function(){return xt(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each((function(){bt(this)?T(this).show():T(this).hide()}))}});var St,_t,Et=/^(?:checkbox|radio)$/i,Tt=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Pt=/^$|^module$|\/(?:java|ecma)script/i;St=y.createDocumentFragment().appendChild(y.createElement("div")),(_t=y.createElement("input")).setAttribute("type","radio"),_t.setAttribute("checked","checked"),_t.setAttribute("name","t"),St.appendChild(_t),v.checkClone=St.cloneNode(!0).cloneNode(!0).lastChild.checked,St.innerHTML="<textarea>x</textarea>",v.noCloneChecked=!!St.cloneNode(!0).lastChild.defaultValue,St.innerHTML="<option></option>",v.option=!!St.lastChild;var Ot={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 Ct(t,e){var n;return n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&O(t,e)?T.merge([t],n):n}function kt(t,e){for(var n=0,r=t.length;n<r;n++)st.set(t[n],"globalEval",!e||st.get(e[n],"globalEval"))}Ot.tbody=Ot.tfoot=Ot.colgroup=Ot.caption=Ot.thead,Ot.th=Ot.td,v.option||(Ot.optgroup=Ot.option=[1,"<select multiple='multiple'>","</select>"]);var At=/<|&#?\w+;/;function jt(t,e,n,r,o){for(var i,a,s,l,c,u,d=e.createDocumentFragment(),f=[],p=0,h=t.length;p<h;p++)if((i=t[p])||0===i)if("object"===S(i))T.merge(f,i.nodeType?[i]:i);else if(At.test(i)){for(a=a||d.appendChild(e.createElement("div")),s=(Tt.exec(i)||["",""])[1].toLowerCase(),l=Ot[s]||Ot._default,a.innerHTML=l[1]+T.htmlPrefilter(i)+l[2],u=l[0];u--;)a=a.lastChild;T.merge(f,a.childNodes),(a=d.firstChild).textContent=""}else f.push(e.createTextNode(i));for(d.textContent="",p=0;i=f[p++];)if(r&&T.inArray(i,r)>-1)o&&o.push(i);else if(c=vt(i),a=Ct(d.appendChild(i),"script"),c&&kt(a),n)for(u=0;i=a[u++];)Pt.test(i.type||"")&&n.push(i);return d}var Rt=/^([^.]*)(?:\.(.+)|)/;function Dt(){return!0}function It(){return!1}function Nt(t,e,n,r,o,i){var a,s;if("object"==typeof e){for(s in"string"!=typeof n&&(r=r||n,n=void 0),e)Nt(t,s,n,r,e[s],i);return t}if(null==r&&null==o?(o=n,r=n=void 0):null==o&&("string"==typeof n?(o=r,r=void 0):(o=r,r=n,n=void 0)),!1===o)o=It;else if(!o)return t;return 1===i&&(a=o,o=function(t){return T().off(t),a.apply(this,arguments)},o.guid=a.guid||(a.guid=T.guid++)),t.each((function(){T.event.add(this,e,o,r,n)}))}function Lt(t,e,n){n?(st.set(t,e,!1),T.event.add(t,e,{namespace:!1,handler:function(t){var n,r=st.get(this,e);if(1&t.isTrigger&&this[e]){if(r)(T.event.special[e]||{}).delegateType&&t.stopPropagation();else if(r=s.call(arguments),st.set(this,e,r),this[e](),n=st.get(this,e),st.set(this,e,!1),r!==n)return t.stopImmediatePropagation(),t.preventDefault(),n}else r&&(st.set(this,e,T.event.trigger(r[0],r.slice(1),this)),t.stopPropagation(),t.isImmediatePropagationStopped=Dt)}})):void 0===st.get(t,e)&&T.event.add(t,e,Dt)}T.event={global:{},add:function(t,e,n,r,o){var i,a,s,l,c,u,d,f,p,h,g,v=st.get(t);if(it(t))for(n.handler&&(n=(i=n).handler,o=i.selector),o&&T.find.matchesSelector(gt,o),n.guid||(n.guid=T.guid++),(l=v.events)||(l=v.events=Object.create(null)),(a=v.handle)||(a=v.handle=function(e){return void 0!==T&&T.event.triggered!==e.type?T.event.dispatch.apply(t,arguments):void 0}),c=(e=(e||"").match(W)||[""]).length;c--;)p=g=(s=Rt.exec(e[c])||[])[1],h=(s[2]||"").split(".").sort(),p&&(d=T.event.special[p]||{},p=(o?d.delegateType:d.bindType)||p,d=T.event.special[p]||{},u=T.extend({type:p,origType:g,data:r,handler:n,guid:n.guid,selector:o,needsContext:o&&T.expr.match.needsContext.test(o),namespace:h.join(".")},i),(f=l[p])||((f=l[p]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(t,r,h,a)||t.addEventListener&&t.addEventListener(p,a)),d.add&&(d.add.call(t,u),u.handler.guid||(u.handler.guid=n.guid)),o?f.splice(f.delegateCount++,0,u):f.push(u),T.event.global[p]=!0)},remove:function(t,e,n,r,o){var i,a,s,l,c,u,d,f,p,h,g,v=st.hasData(t)&&st.get(t);if(v&&(l=v.events)){for(c=(e=(e||"").match(W)||[""]).length;c--;)if(p=g=(s=Rt.exec(e[c])||[])[1],h=(s[2]||"").split(".").sort(),p){for(d=T.event.special[p]||{},f=l[p=(r?d.delegateType:d.bindType)||p]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=i=f.length;i--;)u=f[i],!o&&g!==u.origType||n&&n.guid!==u.guid||s&&!s.test(u.namespace)||r&&r!==u.selector&&("**"!==r||!u.selector)||(f.splice(i,1),u.selector&&f.delegateCount--,d.remove&&d.remove.call(t,u));a&&!f.length&&(d.teardown&&!1!==d.teardown.call(t,h,v.handle)||T.removeEvent(t,p,v.handle),delete l[p])}else for(p in l)T.event.remove(t,p+e[c],n,r,!0);T.isEmptyObject(l)&&st.remove(t,"handle events")}},dispatch:function(t){var e,n,r,o,i,a,s=new Array(arguments.length),l=T.event.fix(t),c=(st.get(this,"events")||Object.create(null))[l.type]||[],u=T.event.special[l.type]||{};for(s[0]=l,e=1;e<arguments.length;e++)s[e]=arguments[e];if(l.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,l)){for(a=T.event.handlers.call(this,l,c),e=0;(o=a[e++])&&!l.isPropagationStopped();)for(l.currentTarget=o.elem,n=0;(i=o.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==i.namespace&&!l.rnamespace.test(i.namespace)||(l.handleObj=i,l.data=i.data,void 0!==(r=((T.event.special[i.origType]||{}).handle||i.handler).apply(o.elem,s))&&!1===(l.result=r)&&(l.preventDefault(),l.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,l),l.result}},handlers:function(t,e){var n,r,o,i,a,s=[],l=e.delegateCount,c=t.target;if(l&&c.nodeType&&!("click"===t.type&&t.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==t.type||!0!==c.disabled)){for(i=[],a={},n=0;n<l;n++)void 0===a[o=(r=e[n]).selector+" "]&&(a[o]=r.needsContext?T(o,this).index(c)>-1:T.find(o,this,null,[c]).length),a[o]&&i.push(r);i.length&&s.push({elem:c,handlers:i})}return c=this,l<e.length&&s.push({elem:c,handlers:e.slice(l)}),s},addProp:function(t,e){Object.defineProperty(T.Event.prototype,t,{enumerable:!0,configurable:!0,get:m(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(t){return t[T.expando]?t:new T.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){var e=this||t;return Et.test(e.type)&&e.click&&O(e,"input")&&Lt(e,"click",!0),!1},trigger:function(t){var e=this||t;return Et.test(e.type)&&e.click&&O(e,"input")&&Lt(e,"click"),!0},_default:function(t){var e=t.target;return Et.test(e.type)&&e.click&&O(e,"input")&&st.get(e,"click")||O(e,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},T.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},T.Event=function(t,e){if(!(this instanceof T.Event))return new T.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?Dt:It,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&T.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[T.expando]=!0},T.Event.prototype={constructor:T.Event,isDefaultPrevented:It,isPropagationStopped:It,isImmediatePropagationStopped:It,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=Dt,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=Dt,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=Dt,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},T.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},T.event.addProp),T.each({focus:"focusin",blur:"focusout"},(function(t,e){function n(t){if(y.documentMode){var n=st.get(this,"handle"),r=T.event.fix(t);r.type="focusin"===t.type?"focus":"blur",r.isSimulated=!0,n(t),r.target===r.currentTarget&&n(r)}else T.event.simulate(e,t.target,T.event.fix(t))}T.event.special[t]={setup:function(){var r;if(Lt(this,t,!0),!y.documentMode)return!1;(r=st.get(this,e))||this.addEventListener(e,n),st.set(this,e,(r||0)+1)},trigger:function(){return Lt(this,t),!0},teardown:function(){var t;if(!y.documentMode)return!1;(t=st.get(this,e)-1)?st.set(this,e,t):(this.removeEventListener(e,n),st.remove(this,e))},_default:function(e){return st.get(e.target,t)},delegateType:e},T.event.special[e]={setup:function(){var r=this.ownerDocument||this.document||this,o=y.documentMode?this:r,i=st.get(o,e);i||(y.documentMode?this.addEventListener(e,n):r.addEventListener(t,n,!0)),st.set(o,e,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,o=y.documentMode?this:r,i=st.get(o,e)-1;i?st.set(o,e,i):(y.documentMode?this.removeEventListener(e,n):r.removeEventListener(t,n,!0),st.remove(o,e))}}})),T.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(t,e){T.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,r=t.relatedTarget,o=t.handleObj;return r&&(r===this||T.contains(this,r))||(t.type=o.origType,n=o.handler.apply(this,arguments),t.type=e),n}}})),T.fn.extend({on:function(t,e,n,r){return Nt(this,t,e,n,r)},one:function(t,e,n,r){return Nt(this,t,e,n,r,1)},off:function(t,e,n){var r,o;if(t&&t.preventDefault&&t.handleObj)return r=t.handleObj,T(t.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof t){for(o in t)this.off(o,e,t[o]);return this}return!1!==e&&"function"!=typeof e||(n=e,e=void 0),!1===n&&(n=It),this.each((function(){T.event.remove(this,t,n,e)}))}});var Mt=/<script|<style|<link/i,Bt=/checked\s*(?:[^=]|=\s*.checked.)/i,Ft=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Ut(t,e){return O(t,"table")&&O(11!==e.nodeType?e:e.firstChild,"tr")&&T(t).children("tbody")[0]||t}function $t(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function qt(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function Vt(t,e){var n,r,o,i,a,s;if(1===e.nodeType){if(st.hasData(t)&&(s=st.get(t).events))for(o in st.remove(e,"handle events"),s)for(n=0,r=s[o].length;n<r;n++)T.event.add(e,o,s[o][n]);lt.hasData(t)&&(i=lt.access(t),a=T.extend({},i),lt.set(e,a))}}function Ht(t,e){var n=e.nodeName.toLowerCase();"input"===n&&Et.test(t.type)?e.checked=t.checked:"input"!==n&&"textarea"!==n||(e.defaultValue=t.defaultValue)}function Gt(t,e,n,r){e=l(e);var o,i,a,s,c,u,d=0,f=t.length,p=f-1,h=e[0],g=m(h);if(g||f>1&&"string"==typeof h&&!v.checkClone&&Bt.test(h))return t.each((function(o){var i=t.eq(o);g&&(e[0]=h.call(this,o,i.html())),Gt(i,e,n,r)}));if(f&&(i=(o=jt(e,t[0].ownerDocument,!1,t,r)).firstChild,1===o.childNodes.length&&(o=i),i||r)){for(s=(a=T.map(Ct(o,"script"),$t)).length;d<f;d++)c=o,d!==p&&(c=T.clone(c,!0,!0),s&&T.merge(a,Ct(c,"script"))),n.call(t[d],c,d);if(s)for(u=a[a.length-1].ownerDocument,T.map(a,qt),d=0;d<s;d++)c=a[d],Pt.test(c.type||"")&&!st.access(c,"globalEval")&&T.contains(u,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?T._evalUrl&&!c.noModule&&T._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},u):x(c.textContent.replace(Ft,""),c,u))}return t}function zt(t,e,n){for(var r,o=e?T.filter(e,t):t,i=0;null!=(r=o[i]);i++)n||1!==r.nodeType||T.cleanData(Ct(r)),r.parentNode&&(n&&vt(r)&&kt(Ct(r,"script")),r.parentNode.removeChild(r));return t}T.extend({htmlPrefilter:function(t){return t},clone:function(t,e,n){var r,o,i,a,s=t.cloneNode(!0),l=vt(t);if(!(v.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||T.isXMLDoc(t)))for(a=Ct(s),r=0,o=(i=Ct(t)).length;r<o;r++)Ht(i[r],a[r]);if(e)if(n)for(i=i||Ct(t),a=a||Ct(s),r=0,o=i.length;r<o;r++)Vt(i[r],a[r]);else Vt(t,s);return(a=Ct(s,"script")).length>0&&kt(a,!l&&Ct(t,"script")),s},cleanData:function(t){for(var e,n,r,o=T.event.special,i=0;void 0!==(n=t[i]);i++)if(it(n)){if(e=n[st.expando]){if(e.events)for(r in e.events)o[r]?T.event.remove(n,r):T.removeEvent(n,r,e.handle);n[st.expando]=void 0}n[lt.expando]&&(n[lt.expando]=void 0)}}}),T.fn.extend({detach:function(t){return zt(this,t,!0)},remove:function(t){return zt(this,t)},text:function(t){return tt(this,(function(t){return void 0===t?T.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)}))}),null,t,arguments.length)},append:function(){return Gt(this,arguments,(function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Ut(this,t).appendChild(t)}))},prepend:function(){return Gt(this,arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=Ut(this,t);e.insertBefore(t,e.firstChild)}}))},before:function(){return Gt(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this)}))},after:function(){return Gt(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)}))},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(T.cleanData(Ct(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map((function(){return T.clone(this,t,e)}))},html:function(t){return tt(this,(function(t){var e=this[0]||{},n=0,r=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!Mt.test(t)&&!Ot[(Tt.exec(t)||["",""])[1].toLowerCase()]){t=T.htmlPrefilter(t);try{for(;n<r;n++)1===(e=this[n]||{}).nodeType&&(T.cleanData(Ct(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)}),null,t,arguments.length)},replaceWith:function(){var t=[];return Gt(this,arguments,(function(e){var n=this.parentNode;T.inArray(this,t)<0&&(T.cleanData(Ct(this)),n&&n.replaceChild(e,this))}),t)}}),T.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(t,e){T.fn[t]=function(t){for(var n,r=[],o=T(t),i=o.length-1,a=0;a<=i;a++)n=a===i?this:this.clone(!0),T(o[a])[e](n),c.apply(r,n.get());return this.pushStack(r)}}));var Wt=new RegExp("^("+ft+")(?!px)[a-z%]+$","i"),Jt=/^--/,Kt=function(t){var e=t.ownerDocument.defaultView;return e&&e.opener||(e=r),e.getComputedStyle(t)},Xt=function(t,e,n){var r,o,i={};for(o in e)i[o]=t.style[o],t.style[o]=e[o];for(o in r=n.call(t),e)t.style[o]=i[o];return r},Qt=new RegExp(ht.join("|"),"i");function Yt(t,e,n){var r,o,i,a,s=Jt.test(e),l=t.style;return(n=n||Kt(t))&&(a=n.getPropertyValue(e)||n[e],s&&a&&(a=a.replace(R,"$1")||void 0),""!==a||vt(t)||(a=T.style(t,e)),!v.pixelBoxStyles()&&Wt.test(a)&&Qt.test(e)&&(r=l.width,o=l.minWidth,i=l.maxWidth,l.minWidth=l.maxWidth=l.width=a,a=n.width,l.width=r,l.minWidth=o,l.maxWidth=i)),void 0!==a?a+"":a}function Zt(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}!function(){function t(){if(u){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",gt.appendChild(c).appendChild(u);var t=r.getComputedStyle(u);n="1%"!==t.top,l=12===e(t.marginLeft),u.style.right="60%",a=36===e(t.right),o=36===e(t.width),u.style.position="absolute",i=12===e(u.offsetWidth/3),gt.removeChild(c),u=null}}function e(t){return Math.round(parseFloat(t))}var n,o,i,a,s,l,c=y.createElement("div"),u=y.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",v.clearCloneStyle="content-box"===u.style.backgroundClip,T.extend(v,{boxSizingReliable:function(){return t(),o},pixelBoxStyles:function(){return t(),a},pixelPosition:function(){return t(),n},reliableMarginLeft:function(){return t(),l},scrollboxSize:function(){return t(),i},reliableTrDimensions:function(){var t,e,n,o;return null==s&&(t=y.createElement("table"),e=y.createElement("tr"),n=y.createElement("div"),t.style.cssText="position:absolute;left:-11111px;border-collapse:separate",e.style.cssText="box-sizing:content-box;border:1px solid",e.style.height="1px",n.style.height="9px",n.style.display="block",gt.appendChild(t).appendChild(e).appendChild(n),o=r.getComputedStyle(e),s=parseInt(o.height,10)+parseInt(o.borderTopWidth,10)+parseInt(o.borderBottomWidth,10)===e.offsetHeight,gt.removeChild(t)),s}}))}();var te=["Webkit","Moz","ms"],ee=y.createElement("div").style,ne={};function re(t){var e=T.cssProps[t]||ne[t];return e||(t in ee?t:ne[t]=function(t){for(var e=t[0].toUpperCase()+t.slice(1),n=te.length;n--;)if((t=te[n]+e)in ee)return t}(t)||t)}var oe=/^(none|table(?!-c[ea]).+)/,ie={position:"absolute",visibility:"hidden",display:"block"},ae={letterSpacing:"0",fontWeight:"400"};function se(t,e,n){var r=pt.exec(e);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):e}function le(t,e,n,r,o,i){var a="width"===e?1:0,s=0,l=0,c=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(c+=T.css(t,n+ht[a],!0,o)),r?("content"===n&&(l-=T.css(t,"padding"+ht[a],!0,o)),"margin"!==n&&(l-=T.css(t,"border"+ht[a]+"Width",!0,o))):(l+=T.css(t,"padding"+ht[a],!0,o),"padding"!==n?l+=T.css(t,"border"+ht[a]+"Width",!0,o):s+=T.css(t,"border"+ht[a]+"Width",!0,o));return!r&&i>=0&&(l+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-i-l-s-.5))||0),l+c}function ce(t,e,n){var r=Kt(t),o=(!v.boxSizingReliable()||n)&&"border-box"===T.css(t,"boxSizing",!1,r),i=o,a=Yt(t,e,r),s="offset"+e[0].toUpperCase()+e.slice(1);if(Wt.test(a)){if(!n)return a;a="auto"}return(!v.boxSizingReliable()&&o||!v.reliableTrDimensions()&&O(t,"tr")||"auto"===a||!parseFloat(a)&&"inline"===T.css(t,"display",!1,r))&&t.getClientRects().length&&(o="border-box"===T.css(t,"boxSizing",!1,r),(i=s in t)&&(a=t[s])),(a=parseFloat(a)||0)+le(t,e,n||(o?"border":"content"),i,r,a)+"px"}T.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=Yt(t,"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(t,e,n,r){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var o,i,a,s=ot(e),l=Jt.test(e),c=t.style;if(l||(e=re(s)),a=T.cssHooks[e]||T.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(o=a.get(t,!1,r))?o:c[e];"string"===(i=typeof n)&&(o=pt.exec(n))&&o[1]&&(n=function(t,e,n,r){var o,i,a=20,s=r?function(){return r.cur()}:function(){return T.css(t,e,"")},l=s(),c=n&&n[3]||(T.cssNumber[e]?"":"px"),u=t.nodeType&&(T.cssNumber[e]||"px"!==c&&+l)&&pt.exec(T.css(t,e));if(u&&u[3]!==c){for(l/=2,c=c||u[3],u=+l||1;a--;)T.style(t,e,u+c),(1-i)*(1-(i=s()/l||.5))<=0&&(a=0),u/=i;u*=2,T.style(t,e,u+c),n=n||[]}return n&&(u=+u||+l||0,o=n[1]?u+(n[1]+1)*n[2]:+n[2],r&&(r.unit=c,r.start=u,r.end=o)),o}(t,e,o),i="number"),null!=n&&n==n&&("number"!==i||l||(n+=o&&o[3]||(T.cssNumber[s]?"":"px")),v.clearCloneStyle||""!==n||0!==e.indexOf("background")||(c[e]="inherit"),a&&"set"in a&&void 0===(n=a.set(t,n,r))||(l?c.setProperty(e,n):c[e]=n))}},css:function(t,e,n,r){var o,i,a,s=ot(e);return Jt.test(e)||(e=re(s)),(a=T.cssHooks[e]||T.cssHooks[s])&&"get"in a&&(o=a.get(t,!0,n)),void 0===o&&(o=Yt(t,e,r)),"normal"===o&&e in ae&&(o=ae[e]),""===n||n?(i=parseFloat(o),!0===n||isFinite(i)?i||0:o):o}}),T.each(["height","width"],(function(t,e){T.cssHooks[e]={get:function(t,n,r){if(n)return!oe.test(T.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?ce(t,e,r):Xt(t,ie,(function(){return ce(t,e,r)}))},set:function(t,n,r){var o,i=Kt(t),a=!v.scrollboxSize()&&"absolute"===i.position,s=(a||r)&&"border-box"===T.css(t,"boxSizing",!1,i),l=r?le(t,e,r,s,i):0;return s&&a&&(l-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(i[e])-le(t,e,"border",!1,i)-.5)),l&&(o=pt.exec(n))&&"px"!==(o[3]||"px")&&(t.style[e]=n,n=T.css(t,e)),se(0,n,l)}}})),T.cssHooks.marginLeft=Zt(v.reliableMarginLeft,(function(t,e){if(e)return(parseFloat(Yt(t,"marginLeft"))||t.getBoundingClientRect().left-Xt(t,{marginLeft:0},(function(){return t.getBoundingClientRect().left})))+"px"})),T.each({margin:"",padding:"",border:"Width"},(function(t,e){T.cssHooks[t+e]={expand:function(n){for(var r=0,o={},i="string"==typeof n?n.split(" "):[n];r<4;r++)o[t+ht[r]+e]=i[r]||i[r-2]||i[0];return o}},"margin"!==t&&(T.cssHooks[t+e].set=se)})),T.fn.extend({css:function(t,e){return tt(this,(function(t,e,n){var r,o,i={},a=0;if(Array.isArray(e)){for(r=Kt(t),o=e.length;a<o;a++)i[e[a]]=T.css(t,e[a],!1,r);return i}return void 0!==n?T.style(t,e,n):T.css(t,e)}),t,e,arguments.length>1)}}),T.fn.delay=function(t,e){return t=T.fx&&T.fx.speeds[t]||t,e=e||"fx",this.queue(e,(function(e,n){var o=r.setTimeout(e,t);n.stop=function(){r.clearTimeout(o)}}))},function(){var t=y.createElement("input"),e=y.createElement("select").appendChild(y.createElement("option"));t.type="checkbox",v.checkOn=""!==t.value,v.optSelected=e.selected,(t=y.createElement("input")).value="t",t.type="radio",v.radioValue="t"===t.value}();var ue,de=T.expr.attrHandle;T.fn.extend({attr:function(t,e){return tt(this,T.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each((function(){T.removeAttr(this,t)}))}}),T.extend({attr:function(t,e,n){var r,o,i=t.nodeType;if(3!==i&&8!==i&&2!==i)return void 0===t.getAttribute?T.prop(t,e,n):(1===i&&T.isXMLDoc(t)||(o=T.attrHooks[e.toLowerCase()]||(T.expr.match.bool.test(e)?ue:void 0)),void 0!==n?null===n?void T.removeAttr(t,e):o&&"set"in o&&void 0!==(r=o.set(t,n,e))?r:(t.setAttribute(e,n+""),n):o&&"get"in o&&null!==(r=o.get(t,e))?r:null==(r=T.find.attr(t,e))?void 0:r)},attrHooks:{type:{set:function(t,e){if(!v.radioValue&&"radio"===e&&O(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,r=0,o=e&&e.match(W);if(o&&1===t.nodeType)for(;n=o[r++];)t.removeAttribute(n)}}),ue={set:function(t,e,n){return!1===e?T.removeAttr(t,n):t.setAttribute(n,n),n}},T.each(T.expr.match.bool.source.match(/\w+/g),(function(t,e){var n=de[e]||T.find.attr;de[e]=function(t,e,r){var o,i,a=e.toLowerCase();return r||(i=de[a],de[a]=o,o=null!=n(t,e,r)?a:null,de[a]=i),o}}));var fe=/^(?:input|select|textarea|button)$/i,pe=/^(?:a|area)$/i;function he(t){return(t.match(W)||[]).join(" ")}function ge(t){return t.getAttribute&&t.getAttribute("class")||""}function ve(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(W)||[]}T.fn.extend({prop:function(t,e){return tt(this,T.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each((function(){delete this[T.propFix[t]||t]}))}}),T.extend({prop:function(t,e,n){var r,o,i=t.nodeType;if(3!==i&&8!==i&&2!==i)return 1===i&&T.isXMLDoc(t)||(e=T.propFix[e]||e,o=T.propHooks[e]),void 0!==n?o&&"set"in o&&void 0!==(r=o.set(t,n,e))?r:t[e]=n:o&&"get"in o&&null!==(r=o.get(t,e))?r:t[e]},propHooks:{tabIndex:{get:function(t){var e=T.find.attr(t,"tabindex");return e?parseInt(e,10):fe.test(t.nodeName)||pe.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),v.optSelected||(T.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),T.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){T.propFix[this.toLowerCase()]=this})),T.fn.extend({addClass:function(t){var e,n,r,o,i,a;return m(t)?this.each((function(e){T(this).addClass(t.call(this,e,ge(this)))})):(e=ve(t)).length?this.each((function(){if(r=ge(this),n=1===this.nodeType&&" "+he(r)+" "){for(i=0;i<e.length;i++)o=e[i],n.indexOf(" "+o+" ")<0&&(n+=o+" ");a=he(n),r!==a&&this.setAttribute("class",a)}})):this},removeClass:function(t){var e,n,r,o,i,a;return m(t)?this.each((function(e){T(this).removeClass(t.call(this,e,ge(this)))})):arguments.length?(e=ve(t)).length?this.each((function(){if(r=ge(this),n=1===this.nodeType&&" "+he(r)+" "){for(i=0;i<e.length;i++)for(o=e[i];n.indexOf(" "+o+" ")>-1;)n=n.replace(" "+o+" "," ");a=he(n),r!==a&&this.setAttribute("class",a)}})):this:this.attr("class","")},toggleClass:function(t,e){var n,r,o,i,a=typeof t,s="string"===a||Array.isArray(t);return m(t)?this.each((function(n){T(this).toggleClass(t.call(this,n,ge(this),e),e)})):"boolean"==typeof e&&s?e?this.addClass(t):this.removeClass(t):(n=ve(t),this.each((function(){if(s)for(i=T(this),o=0;o<n.length;o++)r=n[o],i.hasClass(r)?i.removeClass(r):i.addClass(r);else void 0!==t&&"boolean"!==a||((r=ge(this))&&st.set(this,"__className__",r),this.setAttribute&&this.setAttribute("class",r||!1===t?"":st.get(this,"__className__")||""))})))},hasClass:function(t){var e,n,r=0;for(e=" "+t+" ";n=this[r++];)if(1===n.nodeType&&(" "+he(ge(n))+" ").indexOf(e)>-1)return!0;return!1}});var me=/\r/g;T.fn.extend({val:function(t){var e,n,r,o=this[0];return arguments.length?(r=m(t),this.each((function(n){var o;1===this.nodeType&&(null==(o=r?t.call(this,n,T(this).val()):t)?o="":"number"==typeof o?o+="":Array.isArray(o)&&(o=T.map(o,(function(t){return null==t?"":t+""}))),(e=T.valHooks[this.type]||T.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,o,"value")||(this.value=o))}))):o?(e=T.valHooks[o.type]||T.valHooks[o.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(o,"value"))?n:"string"==typeof(n=o.value)?n.replace(me,""):null==n?"":n:void 0}}),T.extend({valHooks:{option:{get:function(t){var e=T.find.attr(t,"value");return null!=e?e:he(T.text(t))}},select:{get:function(t){var e,n,r,o=t.options,i=t.selectedIndex,a="select-one"===t.type,s=a?null:[],l=a?i+1:o.length;for(r=i<0?l:a?i:0;r<l;r++)if(((n=o[r]).selected||r===i)&&!n.disabled&&(!n.parentNode.disabled||!O(n.parentNode,"optgroup"))){if(e=T(n).val(),a)return e;s.push(e)}return s},set:function(t,e){for(var n,r,o=t.options,i=T.makeArray(e),a=o.length;a--;)((r=o[a]).selected=T.inArray(T.valHooks.option.get(r),i)>-1)&&(n=!0);return n||(t.selectedIndex=-1),i}}}}),T.each(["radio","checkbox"],(function(){T.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=T.inArray(T(t).val(),e)>-1}},v.checkOn||(T.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})})),T.parseXML=function(t){var e,n;if(!t||"string"!=typeof t)return null;try{e=(new r.DOMParser).parseFromString(t,"text/xml")}catch(t){}return n=e&&e.getElementsByTagName("parsererror")[0],e&&!n||T.error("Invalid XML: "+(n?T.map(n.childNodes,(function(t){return t.textContent})).join("\n"):t)),e};var be=/^(?:focusinfocus|focusoutblur)$/,ye=function(t){t.stopPropagation()};T.extend(T.event,{trigger:function(t,e,n,o){var i,a,s,l,c,u,d,f,h=[n||y],g=p.call(t,"type")?t.type:t,v=p.call(t,"namespace")?t.namespace.split("."):[];if(a=f=s=n=n||y,3!==n.nodeType&&8!==n.nodeType&&!be.test(g+T.event.triggered)&&(g.indexOf(".")>-1&&(v=g.split("."),g=v.shift(),v.sort()),c=g.indexOf(":")<0&&"on"+g,(t=t[T.expando]?t:new T.Event(g,"object"==typeof t&&t)).isTrigger=o?2:3,t.namespace=v.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=n),e=null==e?[t]:T.makeArray(e,[t]),d=T.event.special[g]||{},o||!d.trigger||!1!==d.trigger.apply(n,e))){if(!o&&!d.noBubble&&!b(n)){for(l=d.delegateType||g,be.test(l+g)||(a=a.parentNode);a;a=a.parentNode)h.push(a),s=a;s===(n.ownerDocument||y)&&h.push(s.defaultView||s.parentWindow||r)}for(i=0;(a=h[i++])&&!t.isPropagationStopped();)f=a,t.type=i>1?l:d.bindType||g,(u=(st.get(a,"events")||Object.create(null))[t.type]&&st.get(a,"handle"))&&u.apply(a,e),(u=c&&a[c])&&u.apply&&it(a)&&(t.result=u.apply(a,e),!1===t.result&&t.preventDefault());return t.type=g,o||t.isDefaultPrevented()||d._default&&!1!==d._default.apply(h.pop(),e)||!it(n)||c&&m(n[g])&&!b(n)&&((s=n[c])&&(n[c]=null),T.event.triggered=g,t.isPropagationStopped()&&f.addEventListener(g,ye),n[g](),t.isPropagationStopped()&&f.removeEventListener(g,ye),T.event.triggered=void 0,s&&(n[c]=s)),t.result}},simulate:function(t,e,n){var r=T.extend(new T.Event,n,{type:t,isSimulated:!0});T.event.trigger(r,null,e)}}),T.fn.extend({trigger:function(t,e){return this.each((function(){T.event.trigger(t,e,this)}))},triggerHandler:function(t,e){var n=this[0];if(n)return T.event.trigger(t,e,n,!0)}});var we,xe=/\[\]$/,Se=/\r?\n/g,_e=/^(?:submit|button|image|reset|file)$/i,Ee=/^(?:input|select|textarea|keygen)/i;function Te(t,e,n,r){var o;if(Array.isArray(e))T.each(e,(function(e,o){n||xe.test(t)?r(t,o):Te(t+"["+("object"==typeof o&&null!=o?e:"")+"]",o,n,r)}));else if(n||"object"!==S(e))r(t,e);else for(o in e)Te(t+"["+o+"]",e[o],n,r)}T.param=function(t,e){var n,r=[],o=function(t,e){var n=m(e)?e():e;r[r.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==n?"":n)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!T.isPlainObject(t))T.each(t,(function(){o(this.name,this.value)}));else for(n in t)Te(n,t[n],e,o);return r.join("&")},T.fn.extend({serialize:function(){return T.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var t=T.prop(this,"elements");return t?T.makeArray(t):this})).filter((function(){var t=this.type;return this.name&&!T(this).is(":disabled")&&Ee.test(this.nodeName)&&!_e.test(t)&&(this.checked||!Et.test(t))})).map((function(t,e){var n=T(this).val();return null==n?null:Array.isArray(n)?T.map(n,(function(t){return{name:e.name,value:t.replace(Se,"\r\n")}})):{name:e.name,value:n.replace(Se,"\r\n")}})).get()}}),T.fn.extend({wrapAll:function(t){var e;return this[0]&&(m(t)&&(t=t.call(this[0])),e=T(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map((function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t})).append(this)),this},wrapInner:function(t){return m(t)?this.each((function(e){T(this).wrapInner(t.call(this,e))})):this.each((function(){var e=T(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)}))},wrap:function(t){var e=m(t);return this.each((function(n){T(this).wrapAll(e?t.call(this,n):t)}))},unwrap:function(t){return this.parent(t).not("body").each((function(){T(this).replaceWith(this.childNodes)})),this}}),T.expr.pseudos.hidden=function(t){return!T.expr.pseudos.visible(t)},T.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},v.createHTMLDocument=((we=y.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===we.childNodes.length),T.parseHTML=function(t,e,n){return"string"!=typeof t?[]:("boolean"==typeof e&&(n=e,e=!1),e||(v.createHTMLDocument?((r=(e=y.implementation.createHTMLDocument("")).createElement("base")).href=y.location.href,e.head.appendChild(r)):e=y),i=!n&&[],(o=U.exec(t))?[e.createElement(o[1])]:(o=jt([t],e,i),i&&i.length&&T(i).remove(),T.merge([],o.childNodes)));var r,o,i},T.offset={setOffset:function(t,e,n){var r,o,i,a,s,l,c=T.css(t,"position"),u=T(t),d={};"static"===c&&(t.style.position="relative"),s=u.offset(),i=T.css(t,"top"),l=T.css(t,"left"),("absolute"===c||"fixed"===c)&&(i+l).indexOf("auto")>-1?(a=(r=u.position()).top,o=r.left):(a=parseFloat(i)||0,o=parseFloat(l)||0),m(e)&&(e=e.call(t,n,T.extend({},s))),null!=e.top&&(d.top=e.top-s.top+a),null!=e.left&&(d.left=e.left-s.left+o),"using"in e?e.using.call(t,d):u.css(d)}},T.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each((function(e){T.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 t,e,n,r=this[0],o={top:0,left:0};if("fixed"===T.css(r,"position"))e=r.getBoundingClientRect();else{for(e=this.offset(),n=r.ownerDocument,t=r.offsetParent||n.documentElement;t&&(t===n.body||t===n.documentElement)&&"static"===T.css(t,"position");)t=t.parentNode;t&&t!==r&&1===t.nodeType&&((o=T(t).offset()).top+=T.css(t,"borderTopWidth",!0),o.left+=T.css(t,"borderLeftWidth",!0))}return{top:e.top-o.top-T.css(r,"marginTop",!0),left:e.left-o.left-T.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var t=this.offsetParent;t&&"static"===T.css(t,"position");)t=t.offsetParent;return t||gt}))}}),T.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(t,e){var n="pageYOffset"===e;T.fn[t]=function(r){return tt(this,(function(t,r,o){var i;if(b(t)?i=t:9===t.nodeType&&(i=t.defaultView),void 0===o)return i?i[e]:t[r];i?i.scrollTo(n?i.pageXOffset:o,n?o:i.pageYOffset):t[r]=o}),t,r,arguments.length)}})),T.each(["top","left"],(function(t,e){T.cssHooks[e]=Zt(v.pixelPosition,(function(t,n){if(n)return n=Yt(t,e),Wt.test(n)?T(t).position()[e]+"px":n}))})),T.each({Height:"height",Width:"width"},(function(t,e){T.each({padding:"inner"+t,content:e,"":"outer"+t},(function(n,r){T.fn[r]=function(o,i){var a=arguments.length&&(n||"boolean"!=typeof o),s=n||(!0===o||!0===i?"margin":"border");return tt(this,(function(e,n,o){var i;return b(e)?0===r.indexOf("outer")?e["inner"+t]:e.document.documentElement["client"+t]:9===e.nodeType?(i=e.documentElement,Math.max(e.body["scroll"+t],i["scroll"+t],e.body["offset"+t],i["offset"+t],i["client"+t])):void 0===o?T.css(e,n,s):T.style(e,n,o,s)}),e,a?o:void 0,a)}}))})),T.fn.extend({bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,r){return this.on(e,t,n,r)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)},hover:function(t,e){return this.on("mouseenter",t).on("mouseleave",e||t)}}),T.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(t,e){T.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}}));var Pe=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;T.proxy=function(t,e){var n,r,o;if("string"==typeof e&&(n=t[e],e=t,t=n),m(t))return r=s.call(arguments,2),o=function(){return t.apply(e||this,r.concat(s.call(arguments)))},o.guid=t.guid=t.guid||T.guid++,o},T.holdReady=function(t){t?T.readyWait++:T.ready(!0)},T.isArray=Array.isArray,T.parseJSON=JSON.parse,T.nodeName=O,T.isFunction=m,T.isWindow=b,T.camelCase=ot,T.type=S,T.now=Date.now,T.isNumeric=function(t){var e=T.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},T.trim=function(t){return null==t?"":(t+"").replace(Pe,"$1")},void 0===(n=function(){return T}.apply(e,[]))||(t.exports=n);var Oe=r.jQuery,Ce=r.$;return T.noConflict=function(t){return r.$===T&&(r.$=Ce),t&&r.jQuery===T&&(r.jQuery=Oe),T},void 0===o&&(r.jQuery=r.$=T),T}))},function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(e,n);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,o)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),o=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),o(n(34),e),o(n(29),e),o(n(35),e),o(n(36),e),o(n(9),e),o(n(16),e),o(n(31),e),o(n(8),e),o(n(10),e),o(n(3),e),o(n(18),e),o(n(50),e),o(n(19),e)},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.HttpClient=void 0;const o=r(n(4)),i=n(32),a=(0,i.buildWebStorage)(window.sessionStorage,"gs-");e.HttpClient=class{constructor(t){this._handleResponse=({data:t})=>t,this._handleError=t=>Promise.reject(t),this.client=(0,i.setupCache)(o.default.create({baseURL:t}),{storage:a,generateKey:i.defaultKeyGenerator,headerInterpreter:i.defaultHeaderInterpreter,debug:t=>console.log(t),ttl:15e3,cachePredicate:{statusCheck:t=>t>=200&&t<400}}),this._initializeResponseInterceptor()}_initializeResponseInterceptor(){this.client.interceptors.response.use(this._handleResponse,this._handleError)}}},(t,e,n)=>{"use strict";function r(t,e){return function(){return t.apply(e,arguments)}}const{toString:o}=Object.prototype,{getPrototypeOf:i}=Object,a=(s=Object.create(null),t=>{const e=o.call(t);return s[e]||(s[e]=e.slice(8,-1).toLowerCase())});var s;const l=t=>(t=t.toLowerCase(),e=>a(e)===t),c=t=>e=>typeof e===t,{isArray:u}=Array,d=c("undefined");const f=l("ArrayBuffer");const p=c("string"),h=c("function"),g=c("number"),v=t=>null!==t&&"object"==typeof t,m=t=>{if("object"!==a(t))return!1;const e=i(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||Symbol.toStringTag in t||Symbol.iterator in t)},b=l("Date"),y=l("File"),w=l("Blob"),x=l("FileList"),S=l("URLSearchParams"),[_,E,T,P]=["ReadableStream","Request","Response","Headers"].map(l);function O(t,e,{allOwnKeys:n=!1}={}){if(null==t)return;let r,o;if("object"!=typeof t&&(t=[t]),u(t))for(r=0,o=t.length;r<o;r++)e.call(null,t[r],r,t);else{const o=n?Object.getOwnPropertyNames(t):Object.keys(t),i=o.length;let a;for(r=0;r<i;r++)a=o[r],e.call(null,t[a],a,t)}}function C(t,e){e=e.toLowerCase();const n=Object.keys(t);let r,o=n.length;for(;o-- >0;)if(r=n[o],e===r.toLowerCase())return r;return null}const k="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:n.g,A=t=>!d(t)&&t!==k;const j=(R="undefined"!=typeof Uint8Array&&i(Uint8Array),t=>R&&t instanceof R);var R;const D=l("HTMLFormElement"),I=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),N=l("RegExp"),L=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};O(n,((n,o)=>{let i;!1!==(i=e(n,o,t))&&(r[o]=i||n)})),Object.defineProperties(t,r)},M="abcdefghijklmnopqrstuvwxyz",B="0123456789",F={DIGIT:B,ALPHA:M,ALPHA_DIGIT:M+M.toUpperCase()+B};const U=l("AsyncFunction"),$=(q="function"==typeof setImmediate,V=h(k.postMessage),q?setImmediate:V?(H=`axios@${Math.random()}`,G=[],k.addEventListener("message",(({source:t,data:e})=>{t===k&&e===H&&G.length&&G.shift()()}),!1),t=>{G.push(t),k.postMessage(H,"*")}):t=>setTimeout(t));var q,V,H,G;const z="undefined"!=typeof queueMicrotask?queueMicrotask.bind(k):"undefined"!=typeof process&&process.nextTick||$;var W={isArray:u,isArrayBuffer:f,isBuffer:function(t){return null!==t&&!d(t)&&null!==t.constructor&&!d(t.constructor)&&h(t.constructor.isBuffer)&&t.constructor.isBuffer(t)},isFormData:t=>{let e;return t&&("function"==typeof FormData&&t instanceof FormData||h(t.append)&&("formdata"===(e=a(t))||"object"===e&&h(t.toString)&&"[object FormData]"===t.toString()))},isArrayBufferView:function(t){let e;return e="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&f(t.buffer),e},isString:p,isNumber:g,isBoolean:t=>!0===t||!1===t,isObject:v,isPlainObject:m,isReadableStream:_,isRequest:E,isResponse:T,isHeaders:P,isUndefined:d,isDate:b,isFile:y,isBlob:w,isRegExp:N,isFunction:h,isStream:t=>v(t)&&h(t.pipe),isURLSearchParams:S,isTypedArray:j,isFileList:x,forEach:O,merge:function t(){const{caseless:e}=A(this)&&this||{},n={},r=(r,o)=>{const i=e&&C(n,o)||o;m(n[i])&&m(r)?n[i]=t(n[i],r):m(r)?n[i]=t({},r):u(r)?n[i]=r.slice():n[i]=r};for(let t=0,e=arguments.length;t<e;t++)arguments[t]&&O(arguments[t],r);return n},extend:(t,e,n,{allOwnKeys:o}={})=>(O(e,((e,o)=>{n&&h(e)?t[o]=r(e,n):t[o]=e}),{allOwnKeys:o}),t),trim:t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),inherits:(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},toFlatObject:(t,e,n,r)=>{let o,a,s;const l={};if(e=e||{},null==t)return e;do{for(o=Object.getOwnPropertyNames(t),a=o.length;a-- >0;)s=o[a],r&&!r(s,t,e)||l[s]||(e[s]=t[s],l[s]=!0);t=!1!==n&&i(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},kindOf:a,kindOfTest:l,endsWith:(t,e,n)=>{t=String(t),(void 0===n||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return-1!==r&&r===n},toArray:t=>{if(!t)return null;if(u(t))return t;let e=t.length;if(!g(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},forEachEntry:(t,e)=>{const n=(t&&t[Symbol.iterator]).call(t);let r;for(;(r=n.next())&&!r.done;){const n=r.value;e.call(t,n[0],n[1])}},matchAll:(t,e)=>{let n;const r=[];for(;null!==(n=t.exec(e));)r.push(n);return r},isHTMLForm:D,hasOwnProperty:I,hasOwnProp:I,reduceDescriptors:L,freezeMethods:t=>{L(t,((e,n)=>{if(h(t)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=t[n];h(r)&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(t,e)=>{const n={},r=t=>{t.forEach((t=>{n[t]=!0}))};return u(t)?r(t):r(String(t).split(e)),n},toCamelCase:t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(t,e,n){return e.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(t,e)=>null!=t&&Number.isFinite(t=+t)?t:e,findKey:C,global:k,isContextDefined:A,ALPHABET:F,generateString:(t=16,e=F.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n},isSpecCompliantForm:function(t){return!!(t&&h(t.append)&&"FormData"===t[Symbol.toStringTag]&&t[Symbol.iterator])},toJSONObject:t=>{const e=new Array(10),n=(t,r)=>{if(v(t)){if(e.indexOf(t)>=0)return;if(!("toJSON"in t)){e[r]=t;const o=u(t)?[]:{};return O(t,((t,e)=>{const i=n(t,r+1);!d(i)&&(o[e]=i)})),e[r]=void 0,o}}return t};return n(t,0)},isAsyncFn:U,isThenable:t=>t&&(v(t)||h(t))&&h(t.then)&&h(t.catch),setImmediate:$,asap:z};function J(t,e,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}W.inherits(J,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:W.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const K=J.prototype,X={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((t=>{X[t]={value:t}})),Object.defineProperties(J,X),Object.defineProperty(K,"isAxiosError",{value:!0}),J.from=(t,e,n,r,o,i)=>{const a=Object.create(K);return W.toFlatObject(t,a,(function(t){return t!==Error.prototype}),(t=>"isAxiosError"!==t)),J.call(a,t.message,e,n,r,o),a.cause=t,a.name=t.name,i&&Object.assign(a,i),a};function Q(t){return W.isPlainObject(t)||W.isArray(t)}function Y(t){return W.endsWith(t,"[]")?t.slice(0,-2):t}function Z(t,e,n){return t?t.concat(e).map((function(t,e){return t=Y(t),!n&&e?"["+t+"]":t})).join(n?".":""):e}const tt=W.toFlatObject(W,{},null,(function(t){return/^is[A-Z]/.test(t)}));function et(t,e,n){if(!W.isObject(t))throw new TypeError("target must be an object");e=e||new FormData;const r=(n=W.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(t,e){return!W.isUndefined(e[t])}))).metaTokens,o=n.visitor||c,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&W.isSpecCompliantForm(e);if(!W.isFunction(o))throw new TypeError("visitor must be a function");function l(t){if(null===t)return"";if(W.isDate(t))return t.toISOString();if(!s&&W.isBlob(t))throw new J("Blob is not supported. Use a Buffer instead.");return W.isArrayBuffer(t)||W.isTypedArray(t)?s&&"function"==typeof Blob?new Blob([t]):Buffer.from(t):t}function c(t,n,o){let s=t;if(t&&!o&&"object"==typeof t)if(W.endsWith(n,"{}"))n=r?n:n.slice(0,-2),t=JSON.stringify(t);else if(W.isArray(t)&&function(t){return W.isArray(t)&&!t.some(Q)}(t)||(W.isFileList(t)||W.endsWith(n,"[]"))&&(s=W.toArray(t)))return n=Y(n),s.forEach((function(t,r){!W.isUndefined(t)&&null!==t&&e.append(!0===a?Z([n],r,i):null===a?n:n+"[]",l(t))})),!1;return!!Q(t)||(e.append(Z(o,n,i),l(t)),!1)}const u=[],d=Object.assign(tt,{defaultVisitor:c,convertValue:l,isVisitable:Q});if(!W.isObject(t))throw new TypeError("data must be an object");return function t(n,r){if(!W.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),W.forEach(n,(function(n,i){!0===(!(W.isUndefined(n)||null===n)&&o.call(e,n,W.isString(i)?i.trim():i,r,d))&&t(n,r?r.concat(i):[i])})),u.pop()}}(t),e}function nt(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,(function(t){return e[t]}))}function rt(t,e){this._pairs=[],t&&et(t,this,e)}const ot=rt.prototype;function it(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function at(t,e,n){if(!e)return t;const r=n&&n.encode||it,o=n&&n.serialize;let i;if(i=o?o(e,n):W.isURLSearchParams(e)?e.toString():new rt(e,n).toString(r),i){const e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+i}return t}ot.append=function(t,e){this._pairs.push([t,e])},ot.toString=function(t){const e=t?function(e){return t.call(this,e,nt)}:nt;return this._pairs.map((function(t){return e(t[0])+"="+e(t[1])}),"").join("&")};var st=class{constructor(){this.handlers=[]}use(t,e,n){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){W.forEach(this.handlers,(function(e){null!==e&&t(e)}))}},lt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ct={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:rt,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const ut="undefined"!=typeof window&&"undefined"!=typeof document,dt=(ft="undefined"!=typeof navigator&&navigator.product,ut&&["ReactNative","NativeScript","NS"].indexOf(ft)<0);var ft;const pt="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,ht=ut&&window.location.href||"http://localhost";var gt={...Object.freeze({__proto__:null,hasBrowserEnv:ut,hasStandardBrowserWebWorkerEnv:pt,hasStandardBrowserEnv:dt,origin:ht}),...ct};function vt(t){function e(t,n,r,o){let i=t[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=t.length;if(i=!i&&W.isArray(r)?r.length:i,s)return W.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a;r[i]&&W.isObject(r[i])||(r[i]=[]);return e(t,n,r[i],o)&&W.isArray(r[i])&&(r[i]=function(t){const e={},n=Object.keys(t);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],e[i]=t[i];return e}(r[i])),!a}if(W.isFormData(t)&&W.isFunction(t.entries)){const n={};return W.forEachEntry(t,((t,r)=>{e(function(t){return W.matchAll(/\w+|\[(\w*)]/g,t).map((t=>"[]"===t[0]?"":t[1]||t[0]))}(t),r,n,0)})),n}return null}const mt={transitional:lt,adapter:["xhr","http","fetch"],transformRequest:[function(t,e){const n=e.getContentType()||"",r=n.indexOf("application/json")>-1,o=W.isObject(t);o&&W.isHTMLForm(t)&&(t=new FormData(t));if(W.isFormData(t))return r?JSON.stringify(vt(t)):t;if(W.isArrayBuffer(t)||W.isBuffer(t)||W.isStream(t)||W.isFile(t)||W.isBlob(t)||W.isReadableStream(t))return t;if(W.isArrayBufferView(t))return t.buffer;if(W.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(t,e){return et(t,new gt.classes.URLSearchParams,Object.assign({visitor:function(t,e,n,r){return gt.isNode&&W.isBuffer(t)?(this.append(e,t.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},e))}(t,this.formSerializer).toString();if((i=W.isFileList(t))||n.indexOf("multipart/form-data")>-1){const e=this.env&&this.env.FormData;return et(i?{"files[]":t}:t,e&&new e,this.formSerializer)}}return o||r?(e.setContentType("application/json",!1),function(t,e,n){if(W.isString(t))try{return(e||JSON.parse)(t),W.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(n||JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){const e=this.transitional||mt.transitional,n=e&&e.forcedJSONParsing,r="json"===this.responseType;if(W.isResponse(t)||W.isReadableStream(t))return t;if(t&&W.isString(t)&&(n&&!this.responseType||r)){const n=!(e&&e.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(t){if(n){if("SyntaxError"===t.name)throw J.from(t,J.ERR_BAD_RESPONSE,this,null,this.response);throw t}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:gt.classes.FormData,Blob:gt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};W.forEach(["delete","get","head","post","put","patch"],(t=>{mt.headers[t]={}}));var bt=mt;const yt=W.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);const wt=Symbol("internals");function xt(t){return t&&String(t).trim().toLowerCase()}function St(t){return!1===t||null==t?t:W.isArray(t)?t.map(St):String(t)}function _t(t,e,n,r,o){return W.isFunction(r)?r.call(this,e,n):(o&&(e=n),W.isString(e)?W.isString(r)?-1!==e.indexOf(r):W.isRegExp(r)?r.test(e):void 0:void 0)}class Et{constructor(t){t&&this.set(t)}set(t,e,n){const r=this;function o(t,e,n){const o=xt(e);if(!o)throw new Error("header name must be a non-empty string");const i=W.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||e]=St(t))}const i=(t,e)=>W.forEach(t,((t,n)=>o(t,n,e)));if(W.isPlainObject(t)||t instanceof this.constructor)i(t,e);else if(W.isString(t)&&(t=t.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim()))i((t=>{const e={};let n,r,o;return t&&t.split("\n").forEach((function(t){o=t.indexOf(":"),n=t.substring(0,o).trim().toLowerCase(),r=t.substring(o+1).trim(),!n||e[n]&&yt[n]||("set-cookie"===n?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)})),e})(t),e);else if(W.isHeaders(t))for(const[e,r]of t.entries())o(r,e,n);else null!=t&&o(e,t,n);return this}get(t,e){if(t=xt(t)){const n=W.findKey(this,t);if(n){const t=this[n];if(!e)return t;if(!0===e)return function(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}(t);if(W.isFunction(e))return e.call(this,t,n);if(W.isRegExp(e))return e.exec(t);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=xt(t)){const n=W.findKey(this,t);return!(!n||void 0===this[n]||e&&!_t(0,this[n],n,e))}return!1}delete(t,e){const n=this;let r=!1;function o(t){if(t=xt(t)){const o=W.findKey(n,t);!o||e&&!_t(0,n[o],o,e)||(delete n[o],r=!0)}}return W.isArray(t)?t.forEach(o):o(t),r}clear(t){const e=Object.keys(this);let n=e.length,r=!1;for(;n--;){const o=e[n];t&&!_t(0,this[o],o,t,!0)||(delete this[o],r=!0)}return r}normalize(t){const e=this,n={};return W.forEach(this,((r,o)=>{const i=W.findKey(n,o);if(i)return e[i]=St(r),void delete e[o];const a=t?function(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((t,e,n)=>e.toUpperCase()+n))}(o):String(o).trim();a!==o&&delete e[o],e[a]=St(r),n[a]=!0})),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return W.forEach(this,((n,r)=>{null!=n&&!1!==n&&(e[r]=t&&W.isArray(n)?n.join(", "):n)})),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([t,e])=>t+": "+e)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const n=new this(t);return e.forEach((t=>n.set(t))),n}static accessor(t){const e=(this[wt]=this[wt]={accessors:{}}).accessors,n=this.prototype;function r(t){const r=xt(t);e[r]||(!function(t,e){const n=W.toCamelCase(" "+e);["get","set","has"].forEach((r=>{Object.defineProperty(t,r+n,{value:function(t,n,o){return this[r].call(this,e,t,n,o)},configurable:!0})}))}(n,t),e[r]=!0)}return W.isArray(t)?t.forEach(r):r(t),this}}Et.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),W.reduceDescriptors(Et.prototype,(({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(t){this[n]=t}}})),W.freezeMethods(Et);var Tt=Et;function Pt(t,e){const n=this||bt,r=e||n,o=Tt.from(r.headers);let i=r.data;return W.forEach(t,(function(t){i=t.call(n,i,o.normalize(),e?e.status:void 0)})),o.normalize(),i}function Ot(t){return!(!t||!t.__CANCEL__)}function Ct(t,e,n){J.call(this,null==t?"canceled":t,J.ERR_CANCELED,e,n),this.name="CanceledError"}function kt(t,e,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?e(new J("Request failed with status code "+n.status,[J.ERR_BAD_REQUEST,J.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):t(n)}W.inherits(Ct,J,{__CANCEL__:!0});const At=(t,e,n=3)=>{let r=0;const o=function(t,e){t=t||10;const n=new Array(t),r=new Array(t);let o,i=0,a=0;return e=void 0!==e?e:1e3,function(s){const l=Date.now(),c=r[a];o||(o=l),n[i]=s,r[i]=l;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=t;if(i=(i+1)%t,i===a&&(a=(a+1)%t),l-o<e)return;const f=c&&l-c;return f?Math.round(1e3*d/f):void 0}}(50,250);return function(t,e){let n,r,o=0,i=1e3/e;const a=(e,i=Date.now())=>{o=i,n=null,r&&(clearTimeout(r),r=null),t.apply(null,e)};return[(...t)=>{const e=Date.now(),s=e-o;s>=i?a(t,e):(n=t,r||(r=setTimeout((()=>{r=null,a(n)}),i-s)))},()=>n&&a(n)]}((n=>{const i=n.loaded,a=n.lengthComputable?n.total:void 0,s=i-r,l=o(s);r=i;t({loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&i<=a?(a-i)/l:void 0,event:n,lengthComputable:null!=a,[e?"download":"upload"]:!0})}),n)},jt=(t,e)=>{const n=null!=t;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},Rt=t=>(...e)=>W.asap((()=>t(...e)));var Dt=gt.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),e=document.createElement("a");let n;function r(n){let r=n;return t&&(e.setAttribute("href",r),r=e.href),e.setAttribute("href",r),{href:e.href,protocol:e.protocol?e.protocol.replace(/:$/,""):"",host:e.host,search:e.search?e.search.replace(/^\?/,""):"",hash:e.hash?e.hash.replace(/^#/,""):"",hostname:e.hostname,port:e.port,pathname:"/"===e.pathname.charAt(0)?e.pathname:"/"+e.pathname}}return n=r(window.location.href),function(t){const e=W.isString(t)?r(t):t;return e.protocol===n.protocol&&e.host===n.host}}():function(){return!0},It=gt.hasStandardBrowserEnv?{write(t,e,n,r,o,i){const a=[t+"="+encodeURIComponent(e)];W.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),W.isString(r)&&a.push("path="+r),W.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Nt(t,e){return t&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)?function(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}(t,e):e}const Lt=t=>t instanceof Tt?{...t}:t;function Mt(t,e){e=e||{};const n={};function r(t,e,n){return W.isPlainObject(t)&&W.isPlainObject(e)?W.merge.call({caseless:n},t,e):W.isPlainObject(e)?W.merge({},e):W.isArray(e)?e.slice():e}function o(t,e,n){return W.isUndefined(e)?W.isUndefined(t)?void 0:r(void 0,t,n):r(t,e,n)}function i(t,e){if(!W.isUndefined(e))return r(void 0,e)}function a(t,e){return W.isUndefined(e)?W.isUndefined(t)?void 0:r(void 0,t):r(void 0,e)}function s(n,o,i){return i in e?r(n,o):i in t?r(void 0,n):void 0}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(t,e)=>o(Lt(t),Lt(e),!0)};return W.forEach(Object.keys(Object.assign({},t,e)),(function(r){const i=l[r]||o,a=i(t[r],e[r],r);W.isUndefined(a)&&i!==s||(n[r]=a)})),n}var Bt=t=>{const e=Mt({},t);let n,{data:r,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:a,headers:s,auth:l}=e;if(e.headers=s=Tt.from(s),e.url=at(Nt(e.baseURL,e.url),t.params,t.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),W.isFormData(r))if(gt.hasStandardBrowserEnv||gt.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(n=s.getContentType())){const[t,...e]=n?n.split(";").map((t=>t.trim())).filter(Boolean):[];s.setContentType([t||"multipart/form-data",...e].join("; "))}if(gt.hasStandardBrowserEnv&&(o&&W.isFunction(o)&&(o=o(e)),o||!1!==o&&Dt(e.url))){const t=i&&a&&It.read(a);t&&s.set(i,t)}return e};var Ft="undefined"!=typeof XMLHttpRequest&&function(t){return new Promise((function(e,n){const r=Bt(t);let o=r.data;const i=Tt.from(r.headers).normalize();let a,s,l,c,u,{responseType:d,onUploadProgress:f,onDownloadProgress:p}=r;function h(){c&&c(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let g=new XMLHttpRequest;function v(){if(!g)return;const r=Tt.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders());kt((function(t){e(t),h()}),(function(t){n(t),h()}),{data:d&&"text"!==d&&"json"!==d?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:r,config:t,request:g}),g=null}g.open(r.method.toUpperCase(),r.url,!0),g.timeout=r.timeout,"onloadend"in g?g.onloadend=v:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&0===g.responseURL.indexOf("file:"))&&setTimeout(v)},g.onabort=function(){g&&(n(new J("Request aborted",J.ECONNABORTED,t,g)),g=null)},g.onerror=function(){n(new J("Network Error",J.ERR_NETWORK,t,g)),g=null},g.ontimeout=function(){let e=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||lt;r.timeoutErrorMessage&&(e=r.timeoutErrorMessage),n(new J(e,o.clarifyTimeoutError?J.ETIMEDOUT:J.ECONNABORTED,t,g)),g=null},void 0===o&&i.setContentType(null),"setRequestHeader"in g&&W.forEach(i.toJSON(),(function(t,e){g.setRequestHeader(e,t)})),W.isUndefined(r.withCredentials)||(g.withCredentials=!!r.withCredentials),d&&"json"!==d&&(g.responseType=r.responseType),p&&([l,u]=At(p,!0),g.addEventListener("progress",l)),f&&g.upload&&([s,c]=At(f),g.upload.addEventListener("progress",s),g.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(a=e=>{g&&(n(!e||e.type?new Ct(null,t,g):e),g.abort(),g=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const m=function(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}(r.url);m&&-1===gt.protocols.indexOf(m)?n(new J("Unsupported protocol "+m+":",J.ERR_BAD_REQUEST,t)):g.send(o||null)}))};var Ut=(t,e)=>{let n,r=new AbortController;const o=function(t){if(!n){n=!0,a();const e=t instanceof Error?t:this.reason;r.abort(e instanceof J?e:new Ct(e instanceof Error?e.message:e))}};let i=e&&setTimeout((()=>{o(new J(`timeout ${e} of ms exceeded`,J.ETIMEDOUT))}),e);const a=()=>{t&&(i&&clearTimeout(i),i=null,t.forEach((t=>{t&&(t.removeEventListener?t.removeEventListener("abort",o):t.unsubscribe(o))})),t=null)};t.forEach((t=>t&&t.addEventListener&&t.addEventListener("abort",o)));const{signal:s}=r;return s.unsubscribe=a,[s,()=>{i&&clearTimeout(i),i=null}]};const $t=function*(t,e){let n=t.byteLength;if(!e||n<e)return void(yield t);let r,o=0;for(;o<n;)r=o+e,yield t.slice(o,r),o=r},qt=(t,e,n,r,o)=>{const i=async function*(t,e,n){for await(const r of t)yield*$t(ArrayBuffer.isView(r)?r:await n(String(r)),e)}(t,e,o);let a,s=0,l=t=>{a||(a=!0,r&&r(t))};return new ReadableStream({async pull(t){try{const{done:e,value:r}=await i.next();if(e)return l(),void t.close();let o=r.byteLength;if(n){let t=s+=o;n(t)}t.enqueue(new Uint8Array(r))}catch(t){throw l(t),t}},cancel:t=>(l(t),i.return())},{highWaterMark:2})},Vt="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,Ht=Vt&&"function"==typeof ReadableStream,Gt=Vt&&("function"==typeof TextEncoder?(zt=new TextEncoder,t=>zt.encode(t)):async t=>new Uint8Array(await new Response(t).arrayBuffer()));var zt;const Wt=(t,...e)=>{try{return!!t(...e)}catch(t){return!1}},Jt=Ht&&Wt((()=>{let t=!1;const e=new Request(gt.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e})),Kt=Ht&&Wt((()=>W.isReadableStream(new Response("").body))),Xt={stream:Kt&&(t=>t.body)};var Qt;Vt&&(Qt=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((t=>{!Xt[t]&&(Xt[t]=W.isFunction(Qt[t])?e=>e[t]():(e,n)=>{throw new J(`Response type '${t}' is not supported`,J.ERR_NOT_SUPPORT,n)})})));const Yt=async(t,e)=>{const n=W.toFiniteNumber(t.getContentLength());return null==n?(async t=>null==t?0:W.isBlob(t)?t.size:W.isSpecCompliantForm(t)?(await new Request(t).arrayBuffer()).byteLength:W.isArrayBufferView(t)||W.isArrayBuffer(t)?t.byteLength:(W.isURLSearchParams(t)&&(t+=""),W.isString(t)?(await Gt(t)).byteLength:void 0))(e):n};const Zt={http:null,xhr:Ft,fetch:Vt&&(async t=>{let{url:e,method:n,data:r,signal:o,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:f}=Bt(t);c=c?(c+"").toLowerCase():"text";let p,h,[g,v]=o||i||a?Ut([o,i],a):[];const m=()=>{!p&&setTimeout((()=>{g&&g.unsubscribe()})),p=!0};let b;try{if(l&&Jt&&"get"!==n&&"head"!==n&&0!==(b=await Yt(u,r))){let t,n=new Request(e,{method:"POST",body:r,duplex:"half"});if(W.isFormData(r)&&(t=n.headers.get("content-type"))&&u.setContentType(t),n.body){const[t,e]=jt(b,At(Rt(l)));r=qt(n.body,65536,t,e,Gt)}}W.isString(d)||(d=d?"include":"omit"),h=new Request(e,{...f,signal:g,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:d});let o=await fetch(h);const i=Kt&&("stream"===c||"response"===c);if(Kt&&(s||i)){const t={};["status","statusText","headers"].forEach((e=>{t[e]=o[e]}));const e=W.toFiniteNumber(o.headers.get("content-length")),[n,r]=s&&jt(e,At(Rt(s),!0))||[];o=new Response(qt(o.body,65536,n,(()=>{r&&r(),i&&m()}),Gt),t)}c=c||"text";let a=await Xt[W.findKey(Xt,c)||"text"](o,t);return!i&&m(),v&&v(),await new Promise(((e,n)=>{kt(e,n,{data:a,headers:Tt.from(o.headers),status:o.status,statusText:o.statusText,config:t,request:h})}))}catch(e){if(m(),e&&"TypeError"===e.name&&/fetch/i.test(e.message))throw Object.assign(new J("Network Error",J.ERR_NETWORK,t,h),{cause:e.cause||e});throw J.from(e,e&&e.code,t,h)}})};W.forEach(Zt,((t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(t){}Object.defineProperty(t,"adapterName",{value:e})}}));const te=t=>`- ${t}`,ee=t=>W.isFunction(t)||null===t||!1===t;var ne=t=>{t=W.isArray(t)?t:[t];const{length:e}=t;let n,r;const o={};for(let i=0;i<e;i++){let e;if(n=t[i],r=n,!ee(n)&&(r=Zt[(e=String(n)).toLowerCase()],void 0===r))throw new J(`Unknown adapter '${e}'`);if(r)break;o[e||"#"+i]=r}if(!r){const t=Object.entries(o).map((([t,e])=>`adapter ${t} `+(!1===e?"is not supported by the environment":"is not available in the build")));throw new J("There is no suitable adapter to dispatch the request "+(e?t.length>1?"since :\n"+t.map(te).join("\n"):" "+te(t[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function re(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Ct(null,t)}function oe(t){re(t),t.headers=Tt.from(t.headers),t.data=Pt.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1);return ne(t.adapter||bt.adapter)(t).then((function(e){return re(t),e.data=Pt.call(t,t.transformResponse,e),e.headers=Tt.from(e.headers),e}),(function(e){return Ot(e)||(re(t),e&&e.response&&(e.response.data=Pt.call(t,t.transformResponse,e.response),e.response.headers=Tt.from(e.response.headers))),Promise.reject(e)}))}const ie="1.7.4",ae={};["object","boolean","number","function","string","symbol"].forEach(((t,e)=>{ae[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}}));const se={};ae.transitional=function(t,e,n){function r(t,e){return"[Axios v1.7.4] Transitional option '"+t+"'"+e+(n?". "+n:"")}return(n,o,i)=>{if(!1===t)throw new J(r(o," has been removed"+(e?" in "+e:"")),J.ERR_DEPRECATED);return e&&!se[o]&&(se[o]=!0,console.warn(r(o," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(n,o,i)}};var le={assertOptions:function(t,e,n){if("object"!=typeof t)throw new J("options must be an object",J.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let o=r.length;for(;o-- >0;){const i=r[o],a=e[i];if(a){const e=t[i],n=void 0===e||a(e,i,t);if(!0!==n)throw new J("option "+i+" must be "+n,J.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new J("Unknown option "+i,J.ERR_BAD_OPTION)}},validators:ae};const ce=le.validators;class ue{constructor(t){this.defaults=t,this.interceptors={request:new st,response:new st}}async request(t,e){try{return await this._request(t,e)}catch(t){if(t instanceof Error){let e;Error.captureStackTrace?Error.captureStackTrace(e={}):e=new Error;const n=e.stack?e.stack.replace(/^.+\n/,""):"";try{t.stack?n&&!String(t.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(t.stack+="\n"+n):t.stack=n}catch(t){}}throw t}}_request(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},e=Mt(this.defaults,e);const{transitional:n,paramsSerializer:r,headers:o}=e;void 0!==n&&le.assertOptions(n,{silentJSONParsing:ce.transitional(ce.boolean),forcedJSONParsing:ce.transitional(ce.boolean),clarifyTimeoutError:ce.transitional(ce.boolean)},!1),null!=r&&(W.isFunction(r)?e.paramsSerializer={serialize:r}:le.assertOptions(r,{encode:ce.function,serialize:ce.function},!0)),e.method=(e.method||this.defaults.method||"get").toLowerCase();let i=o&&W.merge(o.common,o[e.method]);o&&W.forEach(["delete","get","head","post","put","patch","common"],(t=>{delete o[t]})),e.headers=Tt.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(s=s&&t.synchronous,a.unshift(t.fulfilled,t.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(t){l.push(t.fulfilled,t.rejected)}));let u,d=0;if(!s){const t=[oe.bind(this),void 0];for(t.unshift.apply(t,a),t.push.apply(t,l),u=t.length,c=Promise.resolve(e);d<u;)c=c.then(t[d++],t[d++]);return c}u=a.length;let f=e;for(d=0;d<u;){const t=a[d++],e=a[d++];try{f=t(f)}catch(t){e.call(this,t);break}}try{c=oe.call(this,f)}catch(t){return Promise.reject(t)}for(d=0,u=l.length;d<u;)c=c.then(l[d++],l[d++]);return c}getUri(t){return at(Nt((t=Mt(this.defaults,t)).baseURL,t.url),t.params,t.paramsSerializer)}}W.forEach(["delete","get","head","options"],(function(t){ue.prototype[t]=function(e,n){return this.request(Mt(n||{},{method:t,url:e,data:(n||{}).data}))}})),W.forEach(["post","put","patch"],(function(t){function e(e){return function(n,r,o){return this.request(Mt(o||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}ue.prototype[t]=e(),ue.prototype[t+"Form"]=e(!0)}));var de=ue;class fe{constructor(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");let e;this.promise=new Promise((function(t){e=t}));const n=this;this.promise.then((t=>{if(!n._listeners)return;let e=n._listeners.length;for(;e-- >0;)n._listeners[e](t);n._listeners=null})),this.promise.then=t=>{let e;const r=new Promise((t=>{n.subscribe(t),e=t})).then(t);return r.cancel=function(){n.unsubscribe(e)},r},t((function(t,r,o){n.reason||(n.reason=new Ct(t,r,o),e(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}static source(){let t;return{token:new fe((function(e){t=e})),cancel:t}}}var pe=fe;const he={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(he).forEach((([t,e])=>{he[e]=t}));var ge=he;const ve=function t(e){const n=new de(e),o=r(de.prototype.request,n);return W.extend(o,de.prototype,n,{allOwnKeys:!0}),W.extend(o,n,null,{allOwnKeys:!0}),o.create=function(n){return t(Mt(e,n))},o}(bt);ve.Axios=de,ve.CanceledError=Ct,ve.CancelToken=pe,ve.isCancel=Ot,ve.VERSION=ie,ve.toFormData=et,ve.AxiosError=J,ve.Cancel=ve.CanceledError,ve.all=function(t){return Promise.all(t)},ve.spread=function(t){return function(e){return t.apply(null,e)}},ve.isAxiosError=function(t){return W.isObject(t)&&!0===t.isAxiosError},ve.mergeConfig=Mt,ve.AxiosHeaders=Tt,ve.formToJSON=t=>vt(W.isHTMLForm(t)?new FormData(t):t),ve.getAdapter=ne,ve.HttpStatusCode=ge,ve.default=ve,t.exports=ve},function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(e,n);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,o)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),o=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),o(n(37),e),o(n(38),e),o(n(39),e),o(n(40),e),o(n(41),e),o(n(42),e),o(n(17),e),o(n(43),e),o(n(44),e),o(n(45),e),o(n(46),e),o(n(30),e)},function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(e,n);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,o)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),o=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),o(n(12),e),o(n(20),e),o(n(13),e),o(n(7),e),o(n(25),e),o(n(51),e),o(n(26),e)},function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(e,n);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,o)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),o=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),o(n(21),e),o(n(22),e),o(n(23),e),o(n(24),e)},function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{l(r.next(t))}catch(t){i(t)}}function s(t){try{l(r.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((r=r.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.GitlabHttpClient=void 0;const o=n(4),i=n(0),a=n(5),s=n(9),l=n(3);class c extends l.HttpClient{constructor(t){super(i.gitlabApiUrl),this._token=t,this._handleRequest=t=>(t&&t.headers&&(t.headers["PRIVATE-TOKEN"]=this._token||""),t),this._handleUnauthorizedError=t=>{var e;return 401===(null===(e=t.response)||void 0===e?void 0:e.status)&&(this._token=(0,s.getGitlabToken)()),Promise.reject(t)},this._initInterceptor=()=>{this.client.interceptors.request.use(this._handleRequest,this._handleError)},this._init()}static getInstance(){return this.instance||(this.instance=new c),this.instance}getPipelines(){return r(this,void 0,void 0,(function*(){try{return yield this.client.get(`projects/${i.gitlabProjectId}/pipelines`)}catch(t){t instanceof o.AxiosError&&this._handleUnauthorizedError(t)}}))}getPipelineSchedules(){return r(this,void 0,void 0,(function*(){try{return yield this.client.get(`projects/${i.gitlabProjectId}/pipeline_schedules`)}catch(t){t instanceof o.AxiosError&&this._handleUnauthorizedError(t)}}))}getPipeLineScheduleById(t){return r(this,void 0,void 0,(function*(){if(!t)throw new Error("scheduleId is required");try{return yield this.client.get(`projects/${i.gitlabProjectId}/pipeline_schedules/${t}`)}catch(t){t instanceof o.AxiosError&&this._handleUnauthorizedError(t)}}))}createPipelineSchedule(t){return r(this,void 0,void 0,(function*(){try{const e=yield this.client.post(`projects/${i.gitlabProjectId}/pipeline_schedules`,t),{id:n}=e;return yield Promise.all((t.variables||[]).map((t=>this.createPipelineScheduleVariable(n,t)))),e}catch(t){t instanceof o.AxiosError&&this._handleUnauthorizedError(t)}}))}createPipelineScheduleVariable(t,e){return r(this,void 0,void 0,(function*(){if(!t)throw new Error("scheduleId is required");const n={key:e.key,value:e.value,variable_type:e.variable_type!==a.CreateGitlabScheduleVariableTypes.FILE?a.CreateGitlabScheduleVariableTypes.ENV_VAR:a.CreateGitlabScheduleVariableTypes.FILE};try{return yield this.client.post(`projects/${i.gitlabProjectId}/pipeline_schedules/${t}/variables`,n)}catch(t){t instanceof o.AxiosError&&this._handleUnauthorizedError(t)}}))}getProjectBranches(t){return r(this,void 0,void 0,(function*(){try{return(yield this.client.get(`projects/${t||i.gitlabProjectId}/repository/branches?per_page=${i.gitlabRestPerPage}`)).map((t=>t.name))}catch(t){t instanceof o.AxiosError&&this._handleUnauthorizedError(t)}}))}getProjectVariables(t){return r(this,void 0,void 0,(function*(){try{return yield this.client.get(`projects/${t}/variables`)}catch(t){t instanceof o.AxiosError&&this._handleUnauthorizedError(t)}}))}_init(){this._token=(0,s.getTokenFromLocalStorage)(),this._initInterceptor()}}e.GitlabHttpClient=c},(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getGitlabToken=e.getTokenFromLocalStorage=void 0;const r=n(0);e.getTokenFromLocalStorage=function(){const t=window.atob(localStorage.getItem(r.gitlabTokenLocalStorageKey)||"");return t&&t.length>0?t:""},e.getGitlabToken=function(){const t=prompt("Invalid Gitlab token. Please enter a valid token:");if(t&&t.length>0)return(0,r.saveGitlabToken)(t),t;throw new Error("token is required")}},(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getProjectIdFromTemplateVar=e.getScheduleIdFromUrl=e.getScheduleIdFromGid=e.getOptionsFromVarDescription=e.getProjectFullPath=e.isPipelineScheduleUrl=e.isEditPipelineScheduleUrl=e.getGitlabScheduleIdFromUrl=void 0;e.getGitlabScheduleIdFromUrl=t=>{const e=null==t?void 0:t.match(/\/pipeline_schedules\/(\d+)/);return(null==e?void 0:e[1])||""};e.isEditPipelineScheduleUrl=t=>/\/pipeline_schedules\/(\d+)\/edit/.test(t||"");e.isPipelineScheduleUrl=t=>/\/pipeline_schedules$/.test(t||"");e.getProjectFullPath=t=>{const e=t.match(/\/(.*?)\/-\/pipeline_schedules/);return(null==e?void 0:e[1])||""};e.getOptionsFromVarDescription=t=>{var e;const n=t.match(/^\[(.*?)\]/);return(null===(e=null==n?void 0:n[1])||void 0===e?void 0:e.split(",").map((t=>t.trim())))||[]};e.getScheduleIdFromGid=t=>{const e=t.match(/\/(\d+)$/);return(null==e?void 0:e[1])||""};e.getScheduleIdFromUrl=t=>{const e=t.match(/\/pipeline_schedules\/(\d+)/);return(null==e?void 0:e[1])||""};e.getProjectIdFromTemplateVar=t=>{const e=t.match(/\$glBranches\((\d+)?\)/);return(null==e?void 0:e[1])||""}},function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(e,n);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,o)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),o=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),o(n(15),e),o(n(28),e)},function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{l(r.next(t))}catch(t){i(t)}}function s(t){try{l(r.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((r=r.apply(t,e||[])).next())}))},o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.DuplicateBtnComponent=void 0;const i=o(n(1)),a=n(0),s=n(2);e.DuplicateBtnComponent=function(t){if(!t)return;const e=`\n\t\t<a title="Duplicate" class="btn gl-button btn-default btn-icon" style="margin-right: 1em;">\n\t\t\t<svg class="s16" data-testid="duplicate-icon">\n\t\t\t\t<use href="${a.gitlabSvgIconUrl}#duplicate"></use>\n\t\t\t</svg>\n\t\t</a>`,n=(0,i.default)(e);return n.on("click",(function(){return r(this,void 0,void 0,(function*(){const e=s.GitlabHttpClient.getInstance(),n=yield e.getPipeLineScheduleById(t);if(!n)return;const r=yield e.createPipelineSchedule({active:n.active,cron:n.cron,cron_timezone:n.cron_timezone,description:`${n.description}-copy`,ref:n.ref,variables:n.variables});r&&confirm("Duplicated successfully! Go to the edit page?")?window.location.href=`${window.location.href}/${null==r?void 0:r.id}/edit`:window.location.reload()}))})),n}},function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{l(r.next(t))}catch(t){i(t)}}function s(t){try{l(r.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((r=r.apply(t,e||[])).next())}))},o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.DownloadEnvBtnComponent=void 0;const i=o(n(1)),a=n(0),s=n(2);e.DownloadEnvBtnComponent=function(t){if(!t)return;const e=`<a title="Download Env File" class="btn gl-button btn-default btn-icon">\n\t\t\t<svg class="s16" data-testid="download-icon">\n\t\t\t\t<use href="${a.gitlabSvgIconUrl}#download"></use>\n\t\t\t</svg>\n\t\t</a>`,n=(0,i.default)(e);return n.on("click",(()=>r(this,void 0,void 0,(function*(){var e,n;const r=s.GitlabHttpClient.getInstance(),o=s.GitlabGraphqlClient.getInstance(),i=[],l=yield r.getPipeLineScheduleById(t);if(l){if(a.includeAllVariables){const t=(0,s.getProjectFullPath)(window.location.pathname),n=(yield o.getCiConfigVariables(t,(null==l?void 0:l.ref)||a.gitlabDefaultPipelineSchedule.ref))||[],r=(0,s.leftJoin)(n,null!==(e=null==l?void 0:l.variables)&&void 0!==e?e:[],"key",((t,e)=>Object.assign(Object.assign({},t),e)));i.push(...r)}else i.push(...null!==(n=null==l?void 0:l.variables)&&void 0!==n?n:[]);(0,s.downloadEnvFile)(i,l.description)}})))),n}},function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{l(r.next(t))}catch(t){i(t)}}function s(t){try{l(r.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((r=r.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0});const o=n(33),i=n(11),a=n(2);r(void 0,void 0,void 0,(function*(){try{r(void 0,void 0,void 0,(function*(){const t=window.location.href;GM_addStyle(o.css),(0,a.isPipelineScheduleUrl)(t)?setTimeout(i.pipelineSchedulesPage,0):(0,a.isEditPipelineScheduleUrl)(t)&&setTimeout(i.editPipelineSchedulePage,0)}))}catch(t){console.error(t)}}))},function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{l(r.next(t))}catch(t){i(t)}}function s(t){try{l(r.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((r=r.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.pipelineSchedulesPage=void 0;const o=n(6),i=n(2);e.pipelineSchedulesPage=()=>r(void 0,void 0,void 0,(function*(){const t=i.GitlabGraphqlClient.getInstance(),e=(0,i.getProjectFullPath)(window.location.pathname),[n,r]=yield Promise.all([t.getPipelineSchedulesQuery(e),(0,i.waitForElement)('tr[data-testid="pipeline-schedule-table-row"]')]),a=$('.btn.btn-confirm:contains("New schedule")'),s=$(a.get()),l=(0,o.QuickNewScheduleBtnComponent)(),c=(0,o.GitlabToolSettingsBtnComponent)(),u=$('<div class="gl-ml-auto"></div>');u.insertBefore(s),s.appendTo(u),l&&(l.insertBefore(s),c.insertAfter(s));const d=$(".tab-pane.active").find(".btn-group").find("[data-testid='delete-pipeline-schedule-btn']");for(const[t,e]of Array.from(d).entries()){const t=$(e),r=t.closest("tr").find('[data-testid="pipeline-schedule-description"]').text().trim(),a=n.project.pipelineSchedules.nodes.find((t=>t.description===r)),s=(0,i.getScheduleIdFromGid)(a.id),l=(0,o.DuplicateBtnComponent)(s);if(l){l.insertBefore(t);const e=(0,o.DownloadEnvBtnComponent)(s);e&&e.insertBefore(l)}}(yield(0,o.ChooseBranchDropdownComponent)()).insertBefore(l)}))},function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{l(r.next(t))}catch(t){i(t)}}function s(t){try{l(r.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((r=r.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.GitlabGraphqlClient=void 0;const o=n(4),i=n(0),a=n(5),s=n(9),l=n(31),c=n(10),u=n(3);class d extends u.HttpClient{constructor(t){super(i.gitlabGraphqlUrl),this._token=t,this.RETRIES=5,this._handleRequest=t=>(t&&t.headers&&(t.headers.Authorization=`Bearer ${this._token}`),t),this._handleUnauthorizedError=t=>{var e;401===(null===(e=t.response)||void 0===e?void 0:e.status)&&(this._token=(0,s.getGitlabToken)())},this._initInterceptor=()=>{this.client.interceptors.request.use(this._handleRequest,this._handleError)},this._init()}static getInstance(){return this.instance||(this.instance=new d),this.instance}getCiConfigVariables(t,e){var n,i,s;return r(this,void 0,void 0,(function*(){let r=[],c=0;try{let o=!1;for(;!o&&c<this.RETRIES;){const{data:a}=yield this.client.post("",{operationName:"ciConfigVariables",query:l.getCiConfigVariablesQueryStr,variables:{fullPath:t,ref:e}});null!==(null===(n=null==a?void 0:a.project)||void 0===n?void 0:n.ciConfigVariables)&&a&&0!=(null===(s=null===(i=null==a?void 0:a.project)||void 0===i?void 0:i.ciConfigVariables)||void 0===s?void 0:s.length)&&(r=a.project.ciConfigVariables,o=!0),c++}return r?r.filter((t=>null!==t.description)).map((t=>({key:t.key,value:t.value,description:t.description,variable_type:a.GitlabScheduleVariableTypes.ENV_VAR,valueOptions:t.valueOptions}))):[]}catch(t){t instanceof o.AxiosError&&this._handleUnauthorizedError(t)}}))}getPipelineSchedulesQuery(t,e=null){return r(this,void 0,void 0,(function*(){const{data:n}=yield this.client.post("",{operationName:"getPipelineSchedulesQuery",query:l.getPipelineSchedulesQueryStr,variables:{ids:e,projectPath:t,first:50,last:null,nextPageCursor:"",prevPageCursor:"",sortValue:"DESCRIPTION_DESC"}});return n}))}getPipelineScheduleIdsQuery(t){return r(this,void 0,void 0,(function*(){const e=yield this.getPipelineSchedulesQuery(t);return d.getPipelineScheduleIdsQueryFromPipelineScheduleDataArray(e)}))}static getPipelineScheduleIdsQueryFromPipelineScheduleDataArray(t){var e,n,r;return null===(r=null===(n=null===(e=null==t?void 0:t.project)||void 0===e?void 0:e.pipelineSchedules)||void 0===n?void 0:n.nodes)||void 0===r?void 0:r.map((t=>(0,c.getScheduleIdFromGid)(t.id)))}updatePipelineSchedule(t,e,n){var o;return r(this,void 0,void 0,(function*(){const r=n.variables,i=yield this.getPipelineSchedulesQuery(e,t),a=null===(o=i.project.pipelineSchedules.nodes[0])||void 0===o?void 0:o.variables.nodes,s=null==a?void 0:a.map((t=>{const e=r.find((e=>e.key===t.key)),n=-1===r.findIndex((e=>e.key===t.key));return Object.assign(Object.assign({},t),{__typename:void 0,value:(null==e?void 0:e.value)||"",destroy:n})})),c=r.filter((t=>-1===(null==a?void 0:a.findIndex((e=>e.key===t.key))))),u=c.map((t=>({key:t.key,value:t.value,variableType:"ENV_VAR"})));c.length>0&&(null==s||s.push(...u));const d={operationName:"updatePipelineSchedule",query:l.updatePipelineScheduleMutationStr,variables:{input:Object.assign(Object.assign({},i.project.pipelineSchedules.nodes[0]),{active:n.activate,cron:n.cron,cronTimezone:n.cronTimezone,description:n.description,ref:n.ref,variables:s,__typename:void 0,editPath:void 0,forTag:void 0,lastPipeline:void 0,nextRunAt:void 0,realNextRun:void 0,refForDisplay:void 0,refPath:void 0,userPermissions:void 0,owner:void 0})}};return yield this.client.post("",d)}))}_init(){this._token=(0,s.getTokenFromLocalStorage)(),this._initInterceptor()}}e.GitlabGraphqlClient=d},(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CreateGitlabScheduleVariableTypes=e.GitlabScheduleVariableTypes=void 0,function(t){t.ENV_VAR="Variable",t.FILE="File"}(e.GitlabScheduleVariableTypes||(e.GitlabScheduleVariableTypes={})),function(t){t.ENV_VAR="env_var",t.FILE="file"}(e.CreateGitlabScheduleVariableTypes||(e.CreateGitlabScheduleVariableTypes={}))},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.$=void 0;const o=r(n(1));e.$=function(t){const e=(0,o.default)(t);return 0===e.length&&console.error(`No element found for selector ${t}`),e}},function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{l(r.next(t))}catch(t){i(t)}}function s(t){try{l(r.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((r=r.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.VarOptionStorage=void 0;const o=n(8),i=n(10);class a{constructor(){this.glHttpClient=o.GitlabHttpClient.getInstance(),this.options={}}static getInstance(){return a.instance||(a.instance=new a),a.instance}setOptions(t){return r(this,void 0,void 0,(function*(){const e=[];for(const n of Object.keys(t)){const r=t[n];if(r)for(let t=0;t<r.length;t++){const n=r[t];if(n&&n.match(/\$glBranches\((\d+)?\)/)){const o=(0,i.getProjectIdFromTemplateVar)(n);e.push(this.glHttpClient.getProjectBranches(o).then((e=>{r.splice(t,1,...e||[])})))}}}yield Promise.all(e),this.options=t}))}getOptions(){return this.options}getOptionsByKey(t){return this.options[t]||[]}hasOptions(){return Object.keys(this.options).length>0}addOption(t,e){var n,r;this.options[t]||(this.options[t]=[]),-1===(null===(n=this.options[t])||void 0===n?void 0:n.indexOf(e))&&(null===(r=this.options[t])||void 0===r||r.push(e))}removeOption(t,e){var n,r;if(!this.options[t])return;const o=(null===(n=this.options[t])||void 0===n?void 0:n.indexOf(e))||-1;-1!==o&&(null===(r=this.options[t])||void 0===r||r.splice(o,1))}}e.VarOptionStorage=a},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.QuickNewScheduleBtnComponent=void 0;const o=r(n(1));e.QuickNewScheduleBtnComponent=function(){const t=(0,o.default)('\n\t<a class="btn gl-button btn-success mr-2">\n\t\t<span>Quick new schedule</span>\n\t</a>');return t.on("click",(function(){(0,o.default)("#gs-dropdown-choose-branch").toggle()})),t}},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.GitlabCheckboxComponent=void 0;const o=r(n(1));e.GitlabCheckboxComponent=function(t,e,n,r=!0,i){const a=null!=i?i:t.replaceAll(" ","")+"_checkbox",s=`\n\t<div class="${null!=n?n:"col-md-2"}">\n\t\t<label class="label-bold" for="${a}">${t}</label>\n\t\t<div>\n\t\t\t<div class="gl-form-checkbox custom-control custom-checkbox">\n\t\t\t\t<input class="custom-control-input" type="checkbox" id="${a}" ${r?"checked":""}>\n\t\t\t\t<label class="custom-control-label" for="${a}"><span>${e}</span></label>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n\t`;return(0,o.default)(s)}},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.GitlabDropdownComponent=void 0;const o=r(n(1)),i=n(0);e.GitlabDropdownComponent=function(t,e,n){const r=`\n\t<div class="dropdown b-dropdown gl-dropdown undefined btn-group" id="gs-dropdown-${t}">\n\t</div>`,a=(0,o.default)(r);a.hide();const s=`\n\t<button aria-haspopup="true" aria-expanded="false" type="button" class="btn dropdown-toggle btn-default btn-md gl-button gl-dropdown-toggle">\n\t\t <span class="gl-dropdown-button-text">${e}</span>\n\t\t <svg data-testid="chevron-down-icon" role="img" aria-hidden="true" class="gl-button-icon dropdown-chevron gl-icon s16">\n\t\t\t\t<use href="${i.gitlabSvgIconUrl}#chevron-down"></use>\n\t\t </svg>\n\t</button>`,l=(0,o.default)(s);a.on("click",(()=>{(0,o.default)(`#gs-dropdown-${t}`).toggleClass("show")})),a.append(l);const c=`\n\t<ul role="menu" tabindex="-1" class="dropdown-menu" aria-labelledby="" style="">\n\t\t<div class="gl-dropdown-inner">\n\t\t\t<div class="gl-dropdown-contents" id="gs-dropdown-contents-${t}">\n\t\t\t</div>\n\t\t</div>\n\t</ul>`,u=(0,o.default)(c);a.append(u);const d=e=>{for(const n of e){const e=`\n\t\t\t\t<li role="presentation" class="gl-dropdown-item">\n\t\t\t\t\t<button role="menuitem" type="button" class="dropdown-item">\n\t\t\t\t\t\t<div class="gl-dropdown-item-text-wrapper">\n\t\t\t\t\t\t\t<p class="gl-dropdown-item-text-primary">${n.text}</p>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</button>\n\t\t\t\t</li>`,r=(0,o.default)(e);r.on("click",n.fn),u.find(`#gs-dropdown-contents-${t}`).append(r)}};return n instanceof Promise?n.then((t=>(d(t),t))):d(n),(0,o.default)(document).on("click",(t=>{(0,o.default)(t.target).closest(a).length||a.removeClass("show")})),a}},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.GitlabRemoveVariableRowComponent=void 0;const o=r(n(1)),i=n(0);e.GitlabRemoveVariableRowComponent=function(){const t=`\n\t<button data-testid="remove-ci-variable-row" aria-label="Remove variable" type="button" class="btn ml-2 gl-md-ml-3 gl-mb-3 custom-remove-variable-btn btn-danger btn-md gl-button btn-danger-secondary btn-icon">\n\t\t<svg data-testid="clear-icon" role="img" aria-hidden="true" class="gl-button-icon gl-icon s16">\n\t\t\t<use href="${i.gitlabSvgIconUrl}#clear">\n\t\t\t</use>\n\t\t</svg>\n\t</button>`;return(0,o.default)(t)}},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.GitlabSelectionComponent=void 0;const o=n(0),i=r(n(1));e.GitlabSelectionComponent=function(t,e,n,r,a){const s=`\n <div class="select-wrapper gl-relative gl-w-full">\n <select class="js-ci-variable-input-variable-type form-control select-control"\n data-testid="${n}"\n data-qa-selector="${r}">\n ${t.map((t=>`<option ${t===e?'selected="selected"':""} value="${t}">${t}</option>`))}\n </select>\n <svg data-testid="chevron-down-icon"\n role="img"\n aria-hidden="true"\n class="gl-absolute gl-right-3 gl-top-3 gl-text-gray-500 gl-icon s16 gl-fill-current"\n data-hidden="true">\n <use href="${o.gitlabSvgIconUrl}#chevron-down"></use>\n </svg>\n </div>\n`,l=(0,i.default)(s);return l.change((function(){a((0,i.default)(this).val())})),l}},function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{l(r.next(t))}catch(t){i(t)}}function s(t){try{l(r.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((r=r.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.ChooseBranchDropdownComponent=void 0;const o=n(0),i=n(2),a=n(7);e.ChooseBranchDropdownComponent=function(){return r(this,void 0,void 0,(function*(){const t=i.GitlabHttpClient.getInstance(),e=i.GitlabGraphqlClient.getInstance(),n=yield t.getProjectBranches(),s=null==n?void 0:n.map((n=>({text:n,fn:()=>r(this,void 0,void 0,(function*(){const r=(0,i.getProjectFullPath)(window.location.pathname);if(r){const i=yield e.getCiConfigVariables(r,`refs/heads/${n}`);if(!i)return;const a=yield t.createPipelineSchedule(Object.assign(Object.assign({},o.gitlabDefaultPipelineSchedule),{ref:n}));yield Promise.all(i.map((e=>t.createPipelineScheduleVariable(null==a?void 0:a.id,e)))),a&&confirm("Create schedule success! Go to the edit page?")?window.location.href=`${window.location.href}/${null==a?void 0:a.id}/edit`:window.location.reload()}}))})));return(0,a.GitlabDropdownComponent)("choose-branch","Copy vars from branch",s||[{text:"No branches found",fn:()=>{}}])}))}},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.GitlabToolSettingsBtnComponent=void 0;const o=r(n(1)),i=n(0),a=n(27);let s=!1;e.GitlabToolSettingsBtnComponent=function(){const t=`\n\t<a class="btn gl-button btn-default ml-2">\n\t\t<svg class="s16" data-testid="settings-icon">\n\t\t\t\t<use href="${i.gitlabSvgIconUrl}#settings"></use>\n\t\t</svg>\n\t\t<span>Schedule Settings</span>\n\t</a>`,e=(0,o.default)(t);return e.on("click",(()=>{s?((0,o.default)(".modal").remove(),(0,o.default)("body").removeClass("modal-open"),s=!1):(()=>{const t=(0,a.GitlabToolSettingsModalComponent)(((e,n)=>{switch(e){case"close":case"cancel":default:t.remove();break;case"okay":const[e,r]=n;(0,i.saveGitlabToken)(e),(0,i.saveGitlabToolSettings)(r),t.remove(),window.location.reload()}}));(0,o.default)("body").append(t),(0,o.default)("body").addClass("modal-open")})()})),e}},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.GitlabToolSettingsModalComponent=void 0;const o=r(n(1)),i=n(0),a=n(2);e.GitlabToolSettingsModalComponent=function(t){const e=`<div style="position: absolute; z-index: 1040;">\n\t<div role="dialog" aria-label="Gitlab Tool Settings" class="modal show gl-modal" aria-modal="true"\n\t\tstyle="display: flex;">\n\t\t<div class="modal-dialog modal-md modal-dialog-scrollable">\n\t\t\t<span tabindex="0" />\n\t\t\t<div tabindex="-1" class="modal-content">\n\t\t\t\t<header class="modal-header">\n\t\t\t\t\t<h4 class="modal-title">Gitlab Tool Settings</h4>\n\t\t\t\t\t<button aria-label="Close" type="button"\n\t\t\t\t\t\tclass="btn btn-default btn-sm gl-button btn-default-tertiary btn-icon js-modal-action-close">\n\t\t\t\t\t\t<svg data-testid="close-icon" role="img" aria-hidden="true" class="gl-button-icon gl-icon s16">\n\t\t\t\t\t\t\t<use href="${i.gitlabSvgIconUrl}#close" />\n\t\t\t\t\t\t</svg>\n\t\t\t\t\t</button>\n\t\t\t\t</header>\n\t\t\t\t<div class="modal-body" style="height: 60vh;">\n\t\t\t\t\t<form class="">\n\t\t\t\t\t\t<div class="separator" style="margin-top:0;">Gitlab API Settings</div>\n\t\t\t\t\t\t<div role="group" class="form-group gl-form-group">\n\t\t\t\t\t\t\t<label for="input-1" class="d-block col-form-label">Gitlab token:</label>\n\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t<div role="group" class="input-group">\n\t\t\t\t\t\t\t\t\t<div class="input-group-prepend">\n\t\t\t\t\t\t\t\t\t\t<div class="input-group-text">Token</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<input id="i-gitlab-token" type="password" class="form-control gl-form-input" aria-label="">\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="gl-alert gl-alert-warning mt-1">\n\t\t\t\t\t\t\t\t\t<svg data-testid="warning-icon" role="img" aria-hidden="true" class="gl-icon s16 gl-alert-icon">\n\t\t\t\t\t\t\t\t\t\t<use href="${i.gitlabSvgIconUrl}#warning"></use>\n\t\t\t\t\t\t\t\t\t</svg>\n\t\t\t\t\t\t\t\t\t<div role="alert" aria-live="assertive" class="gl-alert-content">\n\t\t\t\t\t\t\t\t\t\t<h2 class="gl-alert-title">Warning</h2>\n\t\t\t\t\t\t\t\t\t\t<div class="gl-alert-body"> Do not share your token with anyone. <br> Access to the \`api\` with\n\t\t\t\t\t\t\t\t\t\t\tread/write permission is mandatory for the token!!! </div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<span class="form-text text-gl-muted">Don't have a token? <a\n\t\t\t\t\t\t\t\t\t\thref="https://gitlab.com/-/profile/personal_access_tokens" target="_blank">Create one</a>\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div role="group" class="form-group gl-form-group mt-1">\n\t\t\t\t\t\t\t\t<label for="i-gitlab-rest-per-page" class="d-block col-form-label"> Number of items per page: </label>\n\t\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t\t<input id="i-gitlab-rest-per-page" type="number" placeholder="50" required="required"\n\t\t\t\t\t\t\t\t\t\taria-required="true" class="gl-form-input form-control">\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class="separator">Download ENV vars file Settings</div>\n\t\t\t\t\t\t<div role="group" class="form-group gl-form-group">\n\t\t\t\t\t\t\t<label for="i-wrap-var-value" class="d-block col-form-label"> Wrap the variable value with: </label>\n\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t<select id="i-wrap-the-variable-value-with" required="required" aria-required="true"\n\t\t\t\t\t\t\t\t\tclass="gl-form-select custom-select">\n\t\t\t\t\t\t\t\t\t<option value="none">None</option>\n\t\t\t\t\t\t\t\t\t<option value="single_quotation_mark">Single quotation mark <b>'</b>\n\t\t\t\t\t\t\t\t\t</option>\n\t\t\t\t\t\t\t\t\t<option value="double_quotation_mark">Double quotation mark <b>"</b>\n\t\t\t\t\t\t\t\t\t</option>\n\t\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<small class="form-text text-gl-muted">Wrap the variable value in the ENV vars download file. Example:\n\t\t\t\t\t\t\t\t<span style="color: dimgray;">VAR_X='abc'</span> or <span style="color: dimgray;">VAR_X="abc"</span>,\n\t\t\t\t\t\t\t\tetc. </small>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div role="group" class="form-group gl-form-group mb-1"\n\t\t\t\t\t\t\ttitle="Including variables defined in .gitlab-ci.yml. See: https://docs.gitlab.com/ee/api/graphql/reference/#ciconfigvariable">\n\t\t\t\t\t\t\t<div class="gl-form-checkbox custom-control custom-checkbox">\n\t\t\t\t\t\t\t\t<input id="i-include-all-variables" type="checkbox" name="checkboxes-4" class="custom-control-input"\n\t\t\t\t\t\t\t\t\tvalue="squash">\n\t\t\t\t\t\t\t\t<label for="i-include-all-variables" class="custom-control-label">Include all variables </label>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div role="group" class="form-group gl-form-group mb-1">\n\t\t\t\t\t\t\t<div class="gl-form-checkbox custom-control custom-checkbox">\n\t\t\t\t\t\t\t\t<input id="i-replace-enter-with-n" type="checkbox" name="checkboxes-8" class="custom-control-input"\n\t\t\t\t\t\t\t\t\tvalue="squash">\n\t\t\t\t\t\t\t\t<label for="i-replace-enter-with-n" class="custom-control-label">Replace enter with <code>\\n</code>\n\t\t\t\t\t\t\t\t</label>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class="separator">Schedule page Settings</div>\n\t\t\t\t\t\t<div role="group" class="form-group gl-form-group">\n\t\t\t\t\t\t\t<label for="i-wrap-var-value" class="d-block col-form-label"\n\t\t\t\t\t\t\t\ttitle="Choose to take options from variable description or from Gitlab variable options (defined in .gitlab-ci.yml) or both.">\n\t\t\t\t\t\t\t\tGet the options from: </label>\n\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t<select id="i-get-the-options-from" required="required" aria-required="true"\n\t\t\t\t\t\t\t\t\tclass="gl-form-select custom-select">\n\t\t\t\t\t\t\t\t\t<option value="var_description">Variable description</option>\n\t\t\t\t\t\t\t\t\t<option value="gitlab_variable_options"\n\t\t\t\t\t\t\t\t\t\ttitle="See: https://docs.gitlab.com/ee/ci/yaml/#variablesoptions">Gitlab variable options</option>\n\t\t\t\t\t\t\t\t\t<option value="merge_both">Combine both</option>\n\t\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<small class="form-text text-gl-muted">Choose to take options from variable description or from Gitlab variable options (defined in .gitlab-ci.yml, see: <a\n\t\t\t\t\t\t\t\thref="https://docs.gitlab.com/ee/ci/yaml/#variablesoptions" target="_blank">Gitlab variable options</a>) or both.\n\t\t\t\t\t\t\t</small>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div role="group" class="form-group gl-form-group mb-1">\n\t\t\t\t\t\t\t<div class="gl-form-checkbox custom-control custom-checkbox">\n\t\t\t\t\t\t\t\t<input id="i-schedule-page-auto-show-dropdown" type="checkbox" name="checkboxes-5"\n\t\t\t\t\t\t\t\t\tclass="custom-control-input" disabled checked="checked">\n\t\t\t\t\t\t\t\t<label for="i-schedule-page-auto-show-dropdown" class="custom-control-label">Auto show dropdown(s)\n\t\t\t\t\t\t\t\t</label>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div role="group" class="form-group gl-form-group mb-1">\n\t\t\t\t\t\t\t<div class="gl-form-checkbox custom-control custom-checkbox">\n\t\t\t\t\t\t\t\t<input id="i-enable-markdown-var-description" type="checkbox" name="checkboxes-6"\n\t\t\t\t\t\t\t\t\tclass="custom-control-input" disabled checked="checked">\n\t\t\t\t\t\t\t\t<label for="i-enable-markdown-var-description" class="custom-control-label">Enable markdown variable\n\t\t\t\t\t\t\t\t\tdescription\n\t\t\t\t\t\t\t\t</label>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div role="group" class="form-group gl-form-group mb-1">\n\t\t\t\t\t\t\t<div class="gl-form-checkbox custom-control custom-checkbox">\n\t\t\t\t\t\t\t\t<input id="i-sort-var-by-name" type="checkbox" name="checkboxes-7" class="custom-control-input"\n\t\t\t\t\t\t\t\tdisabled checked="unchecked">\n\t\t\t\t\t\t\t\t<label for="i-sort-var-by-name" class="custom-control-label">Sort variables by name (A-Z)\n\t\t\t\t\t\t\t\t</label>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class="separator">Default new Schedule Settings</div>\n\t\t\t\t\t\t<div role="group" class="form-group gl-form-group">\n\t\t\t\t\t\t\t<label for="i-default-schedule-description" class="d-block col-form-label"> Description: </label>\n\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t<input id="i-default-schedule-description" type="text" placeholder="default schedule description"\n\t\t\t\t\t\t\t\t\trequired="required" aria-required="true" class="gl-form-input form-control">\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div role="group" class="form-group gl-form-group">\n\t\t\t\t\t\t\t<label for="i-default-schedule-interval-pattern" class="d-block col-form-label"> Interval pattern:\n\t\t\t\t\t\t\t</label>\n\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t<input id="i-default-schedule-interval-pattern" type="text" placeholder="0 15 * * *" required="required"\n\t\t\t\t\t\t\t\t\taria-required="true" class="gl-form-input form-control">\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div role="group" class="form-group gl-form-group">\n\t\t\t\t\t\t\t<label for="i-default-schedule-cron-timezone" class="d-block col-form-label"> Cron timezone: </label>\n\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t<input id="i-default-schedule-cron-timezone" type="text" placeholder="UTC" required="required"\n\t\t\t\t\t\t\t\t\taria-required="true" class="gl-form-input form-control">\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div role="group" class="form-group gl-form-group">\n\t\t\t\t\t\t\t<label for="i-default-schedule-target-branch" class="d-block col-form-label"> Target branch: </label>\n\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t<input id="i-default-schedule-target-branch" type="text" placeholder="main" required="required"\n\t\t\t\t\t\t\t\t\taria-required="true" class="gl-form-input form-control">\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div role="group" class="form-group gl-form-group">\n\t\t\t\t\t\t\t<div class="gl-form-checkbox custom-control custom-checkbox">\n\t\t\t\t\t\t\t\t<input id="i-default-schedule-active-by-default" type="checkbox" name="checkboxes-4"\n\t\t\t\t\t\t\t\t\tclass="custom-control-input" value="squash">\n\t\t\t\t\t\t\t\t<label for="i-default-schedule-active-by-default" class="custom-control-label">Active by default\n\t\t\t\t\t\t\t\t</label>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</form>\n\t\t\t\t</div>\n\t\t\t\t<footer class="modal-footer">\n\t\t\t\t\t<button type="button" class="btn js-modal-action-cancel btn-default btn-md gl-button">\n\t\t\t\t\t\t<span class="gl-button-text">Cancel</span>\n\t\t\t\t\t</button>\n\t\t\t\t\t<button type="button"\n\t\t\t\t\t\tclass="btn js-modal-action-secondary btn-confirm btn-md gl-button btn-confirm-secondary">\n\t\t\t\t\t\t<span class="gl-button-text">Discard Changes</span>\n\t\t\t\t\t</button>\n\t\t\t\t\t<button type="button" class="btn js-modal-action-primary btn-confirm btn-md gl-button">\n\t\t\t\t\t\t<span class="gl-button-text">Okay</span>\n\t\t\t\t\t</button>\n\t\t\t\t</footer>\n\t\t\t</div>\n\t\t\t<span tabindex="0" />\n\t\t</div>\n\t</div>\n\t<div class="modal-backdrop" />\n</div>\n`,n=(0,o.default)(e),r=()=>{switch(n.find("#i-gitlab-token").val(i.gitlabToken),n.find("#i-gitlab-rest-per-page").val(i.gitlabRestPerPage),i.wrappedVarBy){case"":default:n.find("select#i-wrap-the-variable-value-with").val("none");break;case"'":n.find("select#i-wrap-the-variable-value-with").val("single_quotation_mark");break;case'"':n.find("select#i-wrap-the-variable-value-with").val("double_quotation_mark")}n.find("#i-include-all-variables").prop("checked",i.includeAllVariables),n.find("#i-get-the-options-from").val(i.getTheOptionsFrom),n.find("#i-schedule-page-auto-show-dropdown").prop("checked",i.autoShowDropDown),n.find("#i-enable-markdown-var-description").prop("checked",i.enableMarkdownVarDescription),n.find("#i-sort-var-by-name").prop("checked",i.sortVarByName),n.find("#i-replace-enter-with-n").prop("checked",i.replaceEnterWithN);const{active:t,cron:e,description:r,cron_timezone:o,ref:a}=i.gitlabDefaultPipelineSchedule;n.find("#i-default-schedule-description").val(r),n.find("#i-default-schedule-interval-pattern").val(e),n.find("#i-default-schedule-cron-timezone").val(o),n.find("#i-default-schedule-target-branch").val(a),n.find("#i-default-schedule-active-by-default").prop("checked",t),n.find("#i-include-all-variables").prop("checked",i.includeAllVariables)};return r(),n.find(".js-modal-action-cancel").on("click",(function(){t("cancel",null)})),n.find(".js-modal-action-secondary").on("click",(function(){r()})),n.find(".js-modal-action-primary").on("click",(function(){t("okay",(()=>{var t,e,r,o,i,s;const l=(null===(t=n.find("#i-gitlab-token").val())||void 0===t?void 0:t.toString())||"",c=parseInt((null===(e=n.find("#i-gitlab-rest-per-page").val())||void 0===e?void 0:e.toString())||"50");let u="";switch(n.find("select#i-wrap-the-variable-value-with").val()){case"none":default:u="";break;case"single_quotation_mark":u="'";break;case"double_quotation_mark":u='"'}const d=n.find("select#i-get-the-options-from").val();let f=a.GetTheOptionsFrom.VAR_DESCRIPTION;switch(d){case"var_description":default:f=a.GetTheOptionsFrom.VAR_DESCRIPTION;break;case"gitlab_variable_options":f=a.GetTheOptionsFrom.GITLAB_VARIABLE_OPTIONS;break;case"merge_both":f=a.GetTheOptionsFrom.MERGE_BOTH}const p=n.find("#i-schedule-page-auto-show-dropdown").prop("checked"),h=n.find("#i-enable-markdown-var-description").prop("checked"),g=n.find("#i-sort-var-by-name").prop("checked"),v=n.find("#i-include-all-variables").prop("checked"),m=n.find("#i-replace-enter-with-n").prop("checked");return[l,{gitlabRestPerPage:c,wrappedVarBy:u,includeAllVariables:v,gitlabDefaultPipelineSchedule:{active:n.find("#i-default-schedule-active-by-default").prop("checked"),cron:(null===(r=n.find("#i-default-schedule-interval-pattern").val())||void 0===r?void 0:r.toString())||"0 15 * * *",description:(null===(o=n.find("#i-default-schedule-description").val())||void 0===o?void 0:o.toString())||"Default schedule",cron_timezone:(null===(i=n.find("#i-default-schedule-cron-timezone").val())||void 0===i?void 0:i.toString())||"UTC",ref:(null===(s=n.find("#i-default-schedule-target-branch").val())||void 0===s?void 0:s.toString())||"main"},getTheOptionsFrom:f,autoShowDropDown:p,enableMarkdownVarDescription:h,sortVarByName:g,replaceEnterWithN:m}]})())})),n.find(".js-modal-action-close").on("click",(function(){t("close",null)})),n.find(".modal").on("click",(function(e){e.target===this&&t("discard",null)})),n}},function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{l(r.next(t))}catch(t){i(t)}}function s(t){try{l(r.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((r=r.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.editPipelineSchedulePage=void 0;const o=n(6),i=n(0),a=n(2),{ROW_CONTAINER:s,REVEAL_VALUES_BTN:l,SUBMIT_BTN:c,BRANCH_SELECT:u,CI_VARIABLE_ROW:d,VARIABLE_KEY_INPUT:f,VARIABLE_SECRET_INPUT:p,VARIABLE_SECRET_INPUT_CLASS:h,REMOVE_VARIABLE_BTN:g}=a.EDIT_PIPELINE_SCHEDULE_PAGE_SELECTORS,v=()=>{let t=(0,a.$)(s);return 0===t.length?console.error("[GitLab Duplicator]-persistedVariables is empty"):t=Array.from(t).slice(0,-1),t};e.editPipelineSchedulePage=()=>r(void 0,void 0,void 0,(function*(){var t,e,n;const m=!0,b=a.VarOptionStorage.getInstance(),y=a.GitlabGraphqlClient.getInstance();console.info("Waiting for the page to be rendered"),yield Promise.all([(0,a.waitForElement)(s),(0,a.waitForElement)(l),(0,a.waitForElement)(c),(0,a.waitForElement)(u)]),console.info("Page is rendered");const w=(0,a.$)(l),x=(0,a.$)(c);x.hide();const S=(0,a.$)('<button type="button" class="btn btn-confirm btn-md gl-button">Edit pipeline schedule</button>');S.insertAfter(x);const _=(0,a.$)(u).find("button").first().text().trim();w&&w.trigger("click");const E=(0,a.getProjectFullPath)(window.location.pathname),T=(yield y.getCiConfigVariables(E,`refs/heads/${_}`))||[],P={};for(const t of T){const e=(0,a.getOptionsFromVarDescription)(t.description);if(i.getTheOptionsFrom===a.GetTheOptionsFrom.VAR_DESCRIPTION)e.length>0&&(P[t.key]=(0,a.getOptionsFromVarDescription)(t.description));else if(i.getTheOptionsFrom===a.GetTheOptionsFrom.GITLAB_VARIABLE_OPTIONS)t.valueOptions&&t.valueOptions.length>0&&(P[t.key]=t.valueOptions);else if(i.getTheOptionsFrom===a.GetTheOptionsFrom.MERGE_BOTH&&(e.length>0||t.valueOptions&&t.valueOptions.length>0)){const e=t.valueOptions||[],n=new Set([...(0,a.getOptionsFromVarDescription)(t.description),...e]);P[t.key]=Array.from(n)}}yield b.setOptions(P);const O=b.getOptions(),C=v(),k=(0,a.$)(".gl-form-checkbox.gl-mb-3.custom-control.custom-checkbox"),A=(0,o.GitlabCheckboxComponent)("Show dropdown(s)","Turn on","pl-0",m,"show_dropdown_checkbox");A.insertAfter(k);const j=[];for(const r of C){const i=(0,a.$)(r);i.find(d).removeClass("gl-mb-3 gl-pb-2");const s=i.find("button.btn.dropdown-toggle.gl-dropdown-toggle").text().trim(),l=i.find(f).val(),c=i.find(p),u=c.val(),v=i.find(g);v.addClass("origin-remove-variable-btn"),v.hide();const m=(0,o.GitlabRemoveVariableRowComponent)();m.insertAfter(v),m.on("click",(()=>{i.remove()}));const b=null===(t=T.find((t=>t.key===l)))||void 0===t?void 0:t.description;if(b){const t=(0,o.VarDescriptionComponent)((0,a.convertMarkdownToHtml)(b));v.on("click",(()=>{t.remove()})),i.append(t)}else i.find(d).attr("style","padding-bottom: 16px;");-1===(null===(e=O[l])||void 0===e?void 0:e.indexOf(u))&&(null===(n=O[l])||void 0===n||n.push(u));let y=null;(O[l]||[]).length>0&&(y=(0,o.GitlabSelectionComponent)(O[l]||[],u,h,"ci_variable_value_field",(t=>{console.log("value",t)}))),j.push({key:l,variableType:s,original:{valueInput:c},clone:y?{valueInput:y}:null})}const R=t=>{var e,n;for(const r of j)if(t){if(r.clone&&r.original.valueInput.is(":visible")){const t=r.original.valueInput.val();-1===(null===(e=O[r.key])||void 0===e?void 0:e.indexOf(t))&&(null===(n=O[r.key])||void 0===n||n.push(t)),r.clone.valueInput=(0,o.GitlabSelectionComponent)(O[r.key]||[],t,"pipeline-form-ci-variable-value","ci_variable_value_field",(t=>{console.log("value",t)})),r.clone.valueInput.val(t),r.clone.valueInput.replaceAll(r.original.valueInput)}}else if(r.clone&&r.clone.valueInput.is(":visible")){const t=r.clone.valueInput.val();r.original.valueInput.val(t),r.original.valueInput.replaceAll(r.clone.valueInput)}};R(m),A.on("click",(t=>{if("INPUT"===t.target.nodeName){const t=(0,a.$)("#show_dropdown_checkbox").is(":checked");R(t),x.show(),S.hide(),(0,a.$)(".origin-remove-variable-btn").show(),(0,a.$)(".custom-remove-variable-btn").hide()}})),w.on("click",(()=>{var t,e;const n=(0,a.$)("#show_dropdown_checkbox").is(":checked");if(w.text().includes("Reveal value")){if(n)for(const e of j)null===(t=e.clone)||void 0===t||t.valueInput.show()}else if(n)for(const t of j)null===(e=t.clone)||void 0===e||e.valueInput.hide()})),S.on("click",(()=>r(void 0,void 0,void 0,(function*(){var t;const e=[],n=v();for(const t of n){const n=(0,a.$)(t),r=n.find(f).val();if(void 0===r)continue;const o=n.find(p).val();void 0!==o&&e.push({key:r,value:o})}const r=(null===(t=(0,a.$)("#content-body > div.col-lg-8.gl-pl-0"))||void 0===t?void 0:t.get()[0]).__vue__.$data,o={description:r.description,cron:r.cron,cronTimezone:r.cronTimezone,ref:r.scheduleRef,activate:r.activated,variables:e};yield y.updatePipelineSchedule((0,a.getScheduleIdFromUrl)(window.location.pathname),E,o),window.location.href=`${window.location.origin}/${E}/-/pipeline_schedules`}))))}))},(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EDIT_PIPELINE_SCHEDULE_PAGE_SELECTORS=e.GetTheOptionsFrom=void 0,function(t){t.VAR_DESCRIPTION="var_description",t.GITLAB_VARIABLE_OPTIONS="gitlab_variable_options",t.MERGE_BOTH="merge_both"}(e.GetTheOptionsFrom||(e.GetTheOptionsFrom={})),e.EDIT_PIPELINE_SCHEDULE_PAGE_SELECTORS={ROW_CONTAINER:"fieldset > div > div",REVEAL_VALUES_BTN:'button[data-testid="variable-security-btn"]',SUBMIT_BTN:'button[data-testid="schedule-submit-button"]',BRANCH_SELECT:'div[id="schedule-target-branch-tag"]',CI_VARIABLE_ROW:'div[data-testid="ci-variable-row"]',VARIABLE_KEY_INPUT:'input[data-testid="pipeline-form-ci-variable-key"]',VARIABLE_SECRET_HIDDEN_INPUT:'textarea[data-testid="pipeline-form-ci-variable-hidden-value"]',VARIABLE_SECRET_INPUT_CLASS:"pipeline-form-ci-variable-value",VARIABLE_SECRET_INPUT:':is(textarea, select)[data-testid="pipeline-form-ci-variable-value"]',REMOVE_VARIABLE_BTN:'button[data-testid="remove-ci-variable-row"]'}},(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.HttpMethods=void 0,function(t){t.GET="GET",t.POST="POST",t.PUT="PUT",t.PATCH="PATCH",t.DELETE="DELETE"}(e.HttpMethods||(e.HttpMethods={}))},(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.updatePipelineScheduleMutationStr=e.getPipelineScheduleQueryStr=e.getPipelineSchedulesQueryStr=e.getCiConfigVariablesQueryStr=void 0,e.getCiConfigVariablesQueryStr="query ciConfigVariables($fullPath: ID!, $ref: String!) {\n project(fullPath: $fullPath) {\n id\n ciConfigVariables(ref: $ref) {\n description\n key\n value\n valueOptions\n __typename\n }\n __typename\n }\n}\n",e.getPipelineSchedulesQueryStr='query getPipelineSchedulesQuery($projectPath: ID!, $status: PipelineScheduleStatus, $ids: [ID!] = null, $sortValue: PipelineScheduleSort, $first: Int, $last: Int, $prevPageCursor: String = "", $nextPageCursor: String = "") {\n currentUser {\n id\n username\n __typename\n }\n project(fullPath: $projectPath) {\n id\n projectPlanLimits {\n ciPipelineSchedules\n __typename\n }\n pipelineSchedules(\n status: $status\n ids: $ids\n sort: $sortValue\n first: $first\n last: $last\n after: $nextPageCursor\n before: $prevPageCursor\n ) {\n count\n nodes {\n id\n description\n cron\n cronTimezone\n ref\n forTag\n editPath\n refPath\n refForDisplay\n lastPipeline {\n id\n detailedStatus {\n id\n group\n icon\n label\n text\n detailsPath\n __typename\n }\n __typename\n }\n active\n nextRunAt\n realNextRun\n owner {\n id\n username\n avatarUrl\n name\n webPath\n __typename\n }\n variables {\n nodes {\n id\n variableType\n key\n value\n __typename\n }\n __typename\n }\n userPermissions {\n playPipelineSchedule\n updatePipelineSchedule\n adminPipelineSchedule\n __typename\n }\n __typename\n }\n pageInfo {\n ...PageInfo\n __typename\n }\n __typename\n }\n __typename\n }\n}\n\nfragment PageInfo on PageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n __typename\n}\n',e.getPipelineScheduleQueryStr="query getPipelineSchedulesQuery($projectPath: ID!, $status: PipelineScheduleStatus, $ids: [ID!] = null) {\n currentUser {\n id\n username\n __typename\n }\n project(fullPath: $projectPath) {\n id\n pipelineSchedules(status: $status, ids: $ids) {\n count\n nodes {\n id\n description\n cron\n cronTimezone\n ref\n forTag\n editPath\n refPath\n refForDisplay\n lastPipeline {\n id\n detailedStatus {\n id\n group\n icon\n label\n text\n detailsPath\n __typename\n }\n __typename\n }\n active\n nextRunAt\n realNextRun\n owner {\n id\n username\n avatarUrl\n name\n webPath\n __typename\n }\n variables {\n nodes {\n id\n variableType\n key\n value\n __typename\n }\n __typename\n }\n userPermissions {\n playPipelineSchedule\n updatePipelineSchedule\n adminPipelineSchedule\n __typename\n }\n __typename\n }\n __typename\n }\n __typename\n }\n}\n",e.updatePipelineScheduleMutationStr="mutation updatePipelineSchedule($input: PipelineScheduleUpdateInput!) {\n pipelineScheduleUpdate(input: $input) {\n clientMutationId\n errors\n __typename\n }\n}\n"},(t,e,n)=>{(()=>{"use strict";var e={d:(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},r={};e.r(r),e.d(r,{Header:()=>i,buildKeyGenerator:()=>_,buildMemoryStorage:()=>w,buildStorage:()=>y,buildWebStorage:()=>P,canStale:()=>m,createCacheResponse:()=>d,createValidateStatus:()=>l,defaultHeaderInterpreter:()=>a,defaultKeyGenerator:()=>E,defaultRequestInterceptor:()=>f,defaultResponseInterceptor:()=>g,isExpired:()=>b,isMethodIn:()=>c,isStorage:()=>v,setupCache:()=>T,testCachePredicate:()=>p,updateCache:()=>h,updateStaleRequest:()=>u});const o=n(47),i=Object.freeze({IfModifiedSince:"if-modified-since",LastModified:"last-modified",IfNoneMatch:"if-none-match",CacheControl:"cache-control",ETag:"etag",Expires:"expires",Age:"age",XAxiosCacheEtag:"x-axios-cache-etag",XAxiosCacheLastModified:"x-axios-cache-last-modified",XAxiosCacheStaleIfError:"x-axios-cache-stale-if-error"}),a=t=>{if(!t)return"not enough headers";const e=t[i.CacheControl];if(e){const{noCache:n,noStore:r,mustRevalidate:a,maxAge:s,immutable:l}=(0,o.parse)(String(e));if(n||r)return"dont cache";if(l)return 31536e6;if(a)return 0;if(void 0!==s){const e=t[i.Age];return e?1e3*(s-Number(e)):1e3*s}}const n=t[i.Expires];if(n){const t=Date.parse(String(n))-Date.now();return t>=0?t:"dont cache"}return"not enough headers"},s=n(48);function l(t){return t?e=>t(e)||304===e:t=>t>=200&&t<300||304===t}function c(t="get",e=[]){return t=t.toLowerCase(),e.some((e=>e===t))}function u(t,e){var n;e.headers||(e.headers={});const{etag:r,modifiedSince:o}=e.cache;if(r){const o=!0===r?null===(n=t.data)||void 0===n?void 0:n.headers[i.ETag]:r;o&&(e.headers[i.IfNoneMatch]=o)}o&&(e.headers[i.IfModifiedSince]=!0===o?t.data.headers[i.LastModified]||new Date(t.createdAt).toUTCString():o.toUTCString())}function d(t,e){return 304===t.status&&e?(t.cached=!0,t.data=e.data,t.status=e.status,t.statusText=e.statusText,t.headers=Object.assign(Object.assign({},e.headers),t.headers),e):{data:t.data,status:t.status,statusText:t.statusText,headers:t.headers}}function f(t){const e=async e=>{var n;const r=e.id=t.generateKey(e);if(!1===e.cache)return e;if(e.cache=Object.assign(Object.assign({},t.defaults.cache),e.cache),!c(e.method,e.cache.methods))return e;let o=await t.storage.get(r,e);const i=e.cache.override;t:if("empty"===o.state||"stale"===o.state||i){if(t.waiting[r]&&!i&&(o=await t.storage.get(r,e),"empty"!==o.state))break t;return t.waiting[r]=(0,s.deferred)(),null===(n=t.waiting[r])||void 0===n||n.catch((()=>{})),await t.storage.set(r,{state:"loading",previous:i?o.data?"stale":"empty":o.state,data:o.data,createdAt:i&&!o.createdAt?Date.now():o.createdAt},e),"stale"===o.state&&u(o,e),e.validateStatus=l(e.validateStatus),e}let a;if("loading"===o.state){const n=t.waiting[r];if(!n)return await t.storage.remove(r,e),e;try{a=await n}catch(t){return e}}else a=o.data;return e.adapter=()=>Promise.resolve({config:e,data:a.data,headers:a.headers,status:a.status,statusText:a.statusText,cached:!0,id:r}),e};return{onFulfilled:e,apply:()=>t.interceptors.request.use(e)}}async function p(t,e){var n;if("function"==typeof e)return e(t);const{statusCheck:r,responseMatch:o,containsHeaders:i}=e;if(r&&!await r(t.status)||o&&!await o(t))return!1;if(i)for(const[e,r]of Object.entries(i))if(!await r(null!==(n=t.headers[e.toLowerCase()])&&void 0!==n?n:t.headers[e]))return!1;return!0}async function h(t,e,n){if("function"==typeof n)return n(e);for(const[r,o]of Object.entries(n)){if("delete"===o){await t.remove(r,e.config);continue}const n=await t.get(r,e.config);if("loading"===n.state)continue;const i=await o(n,e);"delete"!==i?"ignore"!==i&&await t.set(r,i,e.config):await t.remove(r,e.config)}}function g(t){const e=async(e,n)=>{var r;await t.storage.remove(e,n),null===(r=t.waiting[e])||void 0===r||r.reject(),delete t.waiting[e]},n=async n=>{var r,o,a;const s=n.id=null!==(r=(a=n.config).id)&&void 0!==r?r:a.id=t.generateKey(n.config);if(null!==(o=n.cached)&&void 0!==o||(n.cached=!1),n.cached)return n;const l=n.config.cache;if(!l)return Object.assign(Object.assign({},n),{cached:!1});const c=n.config,u=await t.storage.get(s,c);if((null==l?void 0:l.update)&&await h(t.storage,n,l.update),"loading"!==u.state)return n;if(!u.data&&!await p(n,l.cachePredicate))return await e(s,c),n;for(const t of Object.keys(n.headers))t.startsWith("x-axios-cache")&&delete n.headers[t];l.etag&&!0!==l.etag&&(n.headers[i.XAxiosCacheEtag]=l.etag),l.modifiedSince&&(n.headers[i.XAxiosCacheLastModified]=!0===l.modifiedSince?"use-cache-timestamp":l.modifiedSince.toUTCString());let f=l.ttl||-1;if(null==l?void 0:l.interpretHeader){const r=t.headerInterpreter(n.headers);if("dont cache"===r)return await e(s,c),n;f="not enough headers"===r?f:r}const g=d(n,u.data);"function"==typeof f&&(f=await f(n)),l.staleIfError&&(n.headers[i.XAxiosCacheStaleIfError]=String(f));const v={state:"cached",ttl:f,createdAt:Date.now(),data:g},m=t.waiting[s];return m&&(m.resolve(v.data),delete t.waiting[s]),await t.storage.set(s,v,c),n},r=async n=>{var r;const o=n.config;if(!(null==o?void 0:o.cache)||!o.id)throw n;const i=await t.storage.get(o.id,o),a=o.cache;if("loading"!==i.state||"stale"!==i.previous)throw await e(o.id,o),n;if(null==a?void 0:a.staleIfError){const e="function"==typeof a.staleIfError?await a.staleIfError(n.response,i,n):a.staleIfError;if(!0===e||"number"==typeof e&&i.createdAt+e>Date.now())return null===(r=t.waiting[o.id])||void 0===r||r.resolve(i.data),delete t.waiting[o.id],await t.storage.set(o.id,{state:"stale",createdAt:Date.now(),data:i.data},o),{cached:!0,config:o,id:o.id,data:i.data.data,headers:i.data.headers,status:i.data.status,statusText:i.data.statusText}}throw n};return{onFulfilled:n,onRejected:r,apply:()=>t.interceptors.response.use(n,r)}}const v=t=>!!t&&!!t["is-storage"];function m(t){const e=t.data.headers;return i.ETag in e||i.LastModified in e||i.XAxiosCacheEtag in e||i.XAxiosCacheStaleIfError in e||i.XAxiosCacheLastModified in e}function b(t){return t.createdAt+t.ttl<=Date.now()}function y({set:t,find:e,remove:n}){return{"is-storage":1,set:t,remove:n,get:async(r,o)=>{const i=await e(r,o);if(!i)return{state:"empty"};if("cached"!==i.state||!b(i))return i;if(m(i)){const e={state:"stale",createdAt:i.createdAt,data:i.data};return await t(r,e,o),e}return await n(r,o),{state:"empty"}}}}function w(t=!1){const e=y({set:(t,n)=>{e.data[t]=n},remove:t=>{delete e.data[t]},find:n=>{const r=e.data[n];return t&&void 0!==r?"function"==typeof structuredClone?structuredClone(r):JSON.parse(JSON.stringify(r)):r}});return e.data=Object.create(null),e}const x=n(49),S=/^\/|\/$/g;function _(t){return e=>{if(e.id)return e.id;const n=t(e);return"string"==typeof n||"number"==typeof n?`${n}`:`${(0,x.hash)(n)}`}}const E=_((({baseURL:t="",url:e="",method:n="get",params:r,data:o})=>(t&&(t=t.replace(S,"")),e&&(e=e.replace(S,"")),n&&(n=n.toLowerCase()),{url:t+(t&&e?"/":"")+e,params:r,method:n,data:o})));function T(t,e={}){var n,r,o,i,s;const l=t;if(l.storage=e.storage||w(),!v(l.storage))throw new Error("Use buildStorage() function");return l.waiting=e.waiting||{},l.generateKey=e.generateKey||E,l.headerInterpreter=e.headerInterpreter||a,l.requestInterceptor=e.requestInterceptor||f(l),l.responseInterceptor=e.responseInterceptor||g(l),l.debug=e.debug,l.defaults.cache={update:e.update||{},ttl:null!==(n=e.ttl)&&void 0!==n?n:3e5,methods:e.methods||["get"],cachePredicate:e.cachePredicate||{statusCheck:t=>t>=200&&t<400},etag:null===(r=e.etag)||void 0===r||r,modifiedSince:null!==(o=e.modifiedSince)&&void 0!==o?o:!1===e.etag,interpretHeader:null===(i=e.interpretHeader)||void 0===i||i,staleIfError:null===(s=e.staleIfError)||void 0===s||s,override:!1},l.requestInterceptor.apply(),l.responseInterceptor.apply(),l}function P(t,e=""){return y({find:n=>{const r=t.getItem(e+n);return r?JSON.parse(r):void 0},remove:n=>{t.removeItem(e+n)},set:(n,r)=>{const o=()=>t.setItem(e+n,JSON.stringify(r));try{return o()}catch(r){const i=Object.entries(t).filter((t=>t[0].startsWith(e))).map((t=>[t[0],JSON.parse(t[1])]));for(const e of i)"cached"===e[1].state&&b(e[1])&&!m(e[1])&&t.removeItem(e[0]);try{return o()}catch(e){const n=i.sort(((t,e)=>(t[1].createdAt||0)-(e[1].createdAt||0)));for(const e of n){t.removeItem(e[0]);try{return o()}catch(t){}}}t.removeItem(e+n)}}})}t.exports=r})()},(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.css=void 0,e.css="\n.separator {\n display: flex;\n align-items: center;\n text-align: center;\n\tcolor: #737278;\n\tfont-size: 0.9rem;\n\tfont-weight: 500;\n\tmargin: 2rem 0 0.2rem 0;\n}\n\n.separator::before,\n.separator::after {\n content: '';\n flex: 1;\n border-bottom: 1px dashed #737278;\n}\n\n.separator:not(:empty)::before {\n margin-right: .5em;\n}\n\n.separator:not(:empty)::after {\n margin-left: .5em;\n}\n\n.modal-body label {\n\twebkit-user-select: none;\n\t-khtml-user-select: none;\n\t-moz-user-select: -moz-none;\n\t-o-user-select: none;\n\tuser-select: none;\n}\n\n"},(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.leftJoin=void 0,e.leftJoin=function(t,e,n,r){const o=e.reduce(((t,e)=>(t.set(e[n],e),t)),new Map);return t.map((t=>r(t,o.get(t[n]))))}},(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.htmlVarInjector=e.waitForElement=void 0,e.waitForElement=function(t,e=5e3){return new Promise(((n,r)=>{const o=document.querySelector(t);if(o)return n(o);let i=null;const a=setTimeout((()=>{i&&i.disconnect(),r(`Element with selector ${t} not found within ${e}ms`)}),e);i=new MutationObserver((()=>{const e=document.querySelector(t);e&&(clearTimeout(a),i&&i.disconnect(),n(e))})),i.observe(document.body,{childList:!0,subtree:!0})}))},e.htmlVarInjector=function(t,e){return t.replace(/\${(.*?)}/g,((t,n)=>e[n]))}},(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.downloadEnvFile=void 0;const r=n(0);e.downloadEnvFile=function(t,e){const n=t.map((t=>{const e=`${t.key}=${r.wrappedVarBy}${t.value.replaceAll('"','\\"')}${r.wrappedVarBy}`;return r.replaceEnterWithN?e.replaceAll("\n","\\n"):e})).join("\n");!function(t,e){const n=window.URL.createObjectURL(t),r=document.createElement("a");r.href=n,r.download=e,r.click(),window.URL.revokeObjectURL(n)}(new Blob([n],{type:"text/plain;charset=utf-8"}),`${e}.env`)}},(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},(t,e,n)=>{"use strict";n.r(e),n.d(e,{isCacheControl:()=>c,parse:()=>s,tokenize:()=>l});var r=Symbol("cache-parser");function o(t){return("string"==typeof t||"number"==typeof t)&&(t=Number(t))>=0&&t<1/0}function i(t){return!0===t||"number"==typeof t||"string"==typeof t&&"false"!==t}var a=Number;function s(t){var e=Object.defineProperty({},r,{enumerable:!1,value:1});if(!t||"string"!=typeof t)return e;var n=function(t){var e={},n=t.toLowerCase().replace(/\s+/g,"").split(",");for(var r in n){var o,i=n[r].split("=",2);e[i[0]]=null==(o=i[1])||o}return e}(t),s=n["max-age"],l=n["max-stale"],c=n["min-fresh"],u=n["s-maxage"],d=n["stale-if-error"],f=n["stale-while-revalidate"];return i(n.immutable)&&(e.immutable=!0),o(s)&&(e.maxAge=a(s)),o(l)&&(e.maxStale=a(l)),o(c)&&(e.minFresh=a(c)),i(n["must-revalidate"])&&(e.mustRevalidate=!0),i(n["must-understand"])&&(e.mustUnderstand=!0),i(n["no-cache"])&&(e.noCache=!0),i(n["no-store"])&&(e.noStore=!0),i(n["no-transform"])&&(e.noTransform=!0),i(n["only-if-cached"])&&(e.onlyIfCached=!0),i(n.private)&&(e.private=!0),i(n["proxy-revalidate"])&&(e.proxyRevalidate=!0),i(n.public)&&(e.public=!0),o(u)&&(e.sMaxAge=a(u)),o(d)&&(e.staleIfError=a(d)),o(f)&&(e.staleWhileRevalidate=a(f)),e}function l(t){if(!t||"object"!=typeof t)return[];var e=[];return i(t.immutable)&&e.push("immutable"),o(t.maxAge)&&e.push("max-age="+t.maxAge),o(t.maxStale)&&e.push("max-stale="+t.maxStale),o(t.minFresh)&&e.push("min-fresh="+t.minFresh),i(t.mustRevalidate)&&e.push("must-revalidate"),i(t.mustUnderstand)&&e.push("must-understand"),i(t.noCache)&&e.push("no-cache"),i(t.noStore)&&e.push("no-store"),i(t.noTransform)&&e.push("no-transform"),i(t.onlyIfCached)&&e.push("only-if-cached"),i(t.private)&&e.push("private"),i(t.proxyRevalidate)&&e.push("proxy-revalidate"),i(t.public)&&e.push("public"),o(t.sMaxAge)&&e.push("s-maxage="+t.sMaxAge),o(t.staleIfError)&&e.push("stale-if-error="+t.staleIfError),o(t.staleWhileRevalidate)&&e.push("stale-while-revalidate="+t.staleWhileRevalidate),e}function c(t){return!!t&&!!t[r]}},(t,e,n)=>{"use strict";n.r(e),n.d(e,{deferred:()=>o,isDeferred:()=>i});var r=Symbol();function o(){var t,e,n=new Promise((function(n,r){t=n,e=r}));return n.resolve=t,n.reject=e,n[r]=1,n}function i(t){return!!t&&!!t[r]}},(t,e,n)=>{"use strict";function r(t){var e=typeof t;if(t&&"object"===e&&!(t instanceof Date||t instanceof RegExp)){for(var n=Array.isArray(t)?[]:{},o=Object.keys(t).sort((function(t,e){return t>e?1:-1})),i=o.length;i--;){var a=o[i];n[a]=r(t[a])}return String(t.constructor)+JSON.stringify(n,o)}return e+String(t)}function o(t){t=r(t);for(var e=5381,n=0;n<t.length;)e=33*e^t.charCodeAt(n++);return e}n.r(e),n.d(e,{hash:()=>o,serialize:()=>r})},(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.convertMarkdownToHtml=void 0,e.convertMarkdownToHtml=function(t){const e=t.match(/`(.*?)`/g);return e&&e.forEach((e=>{const n=e.replace(/`/g,""),r=document.createElement("div");r.innerText=r.textContent=n;const o=r.innerHTML;t=t.replace(e,`\`${o}\``)})),t.replace(/<\/(.*?)>/g,"</$1>").replace(/<(.*?)>/g,"<$1>").replace(/\*\*(.*?)\*\*/g,"<strong>$1</strong>").replace(/\*(.*?)\*/g,"<em>$1</em>").replace(/~~(.*?)~~/g,"<del>$1</del>").replace(/`(.*?)`/g,"<code>$1</code>").replace(/\[(.*?)\]\((.*?)\)/g,'<a href="$2" target="_blank">$1</a>').replace(/\n/g,"<br />").replace(/\t/g," ")}},(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VarDescriptionComponent=void 0,e.VarDescriptionComponent=function(t){return $(`\n\t<div class="gl-text-gray-500 pb-4 pt-0 mt-0">\n ${t}\n </div>`)}}],e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r].call(i.exports,i,i.exports,n),i.exports}n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};n(14)})();