100 lines
408 KiB
JavaScript
100 lines
408 KiB
JavaScript
var Vn=Object.defineProperty;var Bn=(n,e,t)=>e in n?Vn(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var F=(n,e,t)=>(Bn(n,typeof e!="symbol"?e+"":e,t),t);var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function getAugmentedNamespace(n){if(n.__esModule)return n;var e=n.default;if(typeof e=="function"){var t=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(n).forEach(function(r){var o=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(t,r,o.get?o:{enumerable:!0,get:function(){return n[r]}})}),t}var jquery={exports:{}};/*!
|
||
* jQuery JavaScript Library v3.7.1
|
||
* https://jquery.com/
|
||
*
|
||
* Copyright OpenJS Foundation and other contributors
|
||
* Released under the MIT license
|
||
* https://jquery.org/license
|
||
*
|
||
* Date: 2023-08-28T13:37Z
|
||
*/(function(n){(function(e,t){n.exports=e.document?t(e,!0):function(r){if(!r.document)throw new Error("jQuery requires a window with a document");return t(r)}})(typeof window<"u"?window:commonjsGlobal,function(e,t){var r=[],o=Object.getPrototypeOf,s=r.slice,l=r.flat?function(i){return r.flat.call(i)}:function(i){return r.concat.apply([],i)},f=r.push,E=r.indexOf,d={},g=d.toString,y=d.hasOwnProperty,S=y.toString,x=S.call(Object),w={},C=function(a){return typeof a=="function"&&typeof a.nodeType!="number"&&typeof a.item!="function"},H=function(a){return a!=null&&a===a.window},D=e.document,Z={type:!0,src:!0,nonce:!0,noModule:!0};function B(i,a,c){c=c||D;var p,h,m=c.createElement("script");if(m.text=i,a)for(p in Z)h=a[p]||a.getAttribute&&a.getAttribute(p),h&&m.setAttribute(p,h);c.head.appendChild(m).parentNode.removeChild(m)}function Y(i){return i==null?i+"":typeof i=="object"||typeof i=="function"?d[g.call(i)]||"object":typeof i}var ne="3.7.1",V=/HTML$/i,u=function(i,a){return new u.fn.init(i,a)};u.fn=u.prototype={jquery:ne,constructor:u,length:0,toArray:function(){return s.call(this)},get:function(i){return i==null?s.call(this):i<0?this[i+this.length]:this[i]},pushStack:function(i){var a=u.merge(this.constructor(),i);return a.prevObject=this,a},each:function(i){return u.each(this,i)},map:function(i){return this.pushStack(u.map(this,function(a,c){return i.call(a,c,a)}))},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(u.grep(this,function(i,a){return(a+1)%2}))},odd:function(){return this.pushStack(u.grep(this,function(i,a){return a%2}))},eq:function(i){var a=this.length,c=+i+(i<0?a:0);return this.pushStack(c>=0&&c<a?[this[c]]:[])},end:function(){return this.prevObject||this.constructor()},push:f,sort:r.sort,splice:r.splice},u.extend=u.fn.extend=function(){var i,a,c,p,h,m,_=arguments[0]||{},A=1,b=arguments.length,O=!1;for(typeof _=="boolean"&&(O=_,_=arguments[A]||{},A++),typeof _!="object"&&!C(_)&&(_={}),A===b&&(_=this,A--);A<b;A++)if((i=arguments[A])!=null)for(a in i)p=i[a],!(a==="__proto__"||_===p)&&(O&&p&&(u.isPlainObject(p)||(h=Array.isArray(p)))?(c=_[a],h&&!Array.isArray(c)?m=[]:!h&&!u.isPlainObject(c)?m={}:m=c,h=!1,_[a]=u.extend(O,m,p)):p!==void 0&&(_[a]=p));return _},u.extend({expando:"jQuery"+(ne+Math.random()).replace(/\D/g,""),isReady:!0,error:function(i){throw new Error(i)},noop:function(){},isPlainObject:function(i){var a,c;return!i||g.call(i)!=="[object Object]"?!1:(a=o(i),a?(c=y.call(a,"constructor")&&a.constructor,typeof c=="function"&&S.call(c)===x):!0)},isEmptyObject:function(i){var a;for(a in i)return!1;return!0},globalEval:function(i,a,c){B(i,{nonce:a&&a.nonce},c)},each:function(i,a){var c,p=0;if(X(i))for(c=i.length;p<c&&a.call(i[p],p,i[p])!==!1;p++);else for(p in i)if(a.call(i[p],p,i[p])===!1)break;return i},text:function(i){var a,c="",p=0,h=i.nodeType;if(!h)for(;a=i[p++];)c+=u.text(a);return h===1||h===11?i.textContent:h===9?i.documentElement.textContent:h===3||h===4?i.nodeValue:c},makeArray:function(i,a){var c=a||[];return i!=null&&(X(Object(i))?u.merge(c,typeof i=="string"?[i]:i):f.call(c,i)),c},inArray:function(i,a,c){return a==null?-1:E.call(a,i,c)},isXMLDoc:function(i){var a=i&&i.namespaceURI,c=i&&(i.ownerDocument||i).documentElement;return!V.test(a||c&&c.nodeName||"HTML")},merge:function(i,a){for(var c=+a.length,p=0,h=i.length;p<c;p++)i[h++]=a[p];return i.length=h,i},grep:function(i,a,c){for(var p,h=[],m=0,_=i.length,A=!c;m<_;m++)p=!a(i[m],m),p!==A&&h.push(i[m]);return h},map:function(i,a,c){var p,h,m=0,_=[];if(X(i))for(p=i.length;m<p;m++)h=a(i[m],m,c),h!=null&&_.push(h);else for(m in i)h=a(i[m],m,c),h!=null&&_.push(h);return l(_)},guid:1,support:w}),typeof Symbol=="function"&&(u.fn[Symbol.iterator]=r[Symbol.iterator]),u.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(i,a){d["[object "+a+"]"]=a.toLowerCase()});function X(i){var a=!!i&&"length"in i&&i.length,c=Y(i);return C(i)||H(i)?!1:c==="array"||a===0||typeof a=="number"&&a>0&&a-1 in i}function G(i,a){return i.nodeName&&i.nodeName.toLowerCase()===a.toLowerCase()}var I=r.pop,K=r.sort,U=r.splice,q="[\\x20\\t\\r\\n\\f]",oe=new RegExp("^"+q+"+|((?:^|[^\\\\])(?:\\\\.)*)"+q+"+$","g");u.contains=function(i,a){var c=a&&a.parentNode;return i===c||!!(c&&c.nodeType===1&&(i.contains?i.contains(c):i.compareDocumentPosition&&i.compareDocumentPosition(c)&16))};var ue=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function pe(i,a){return a?i==="\0"?"<22>":i.slice(0,-1)+"\\"+i.charCodeAt(i.length-1).toString(16)+" ":"\\"+i}u.escapeSelector=function(i){return(i+"").replace(ue,pe)};var le=D,ve=f;(function(){var i,a,c,p,h,m=ve,_,A,b,O,L,k=u.expando,R=0,W=0,ae=Wt(),_e=Wt(),de=Wt(),Pe=Wt(),Ne=function(v,T){return v===T&&(h=!0),0},Ye="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",ze="(?:\\\\[\\da-fA-F]{1,6}"+q+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",Ee="\\["+q+"*("+ze+")(?:"+q+"*([*^$|!~]?=)"+q+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+ze+"))|)"+q+"*\\]",ht=":("+ze+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+Ee+")*)|.*)\\)|)",ye=new RegExp(q+"+","g"),Ce=new RegExp("^"+q+"*,"+q+"*"),Dt=new RegExp("^"+q+"*([>+~]|"+q+")"+q+"*"),cr=new RegExp(q+"|>"),Xe=new RegExp(ht),Pt=new RegExp("^"+ze+"$"),Qe={ID:new RegExp("^#("+ze+")"),CLASS:new RegExp("^\\.("+ze+")"),TAG:new RegExp("^("+ze+"|[*])"),ATTR:new RegExp("^"+Ee),PSEUDO:new RegExp("^"+ht),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+q+"*(even|odd|(([+-]|)(\\d*)n|)"+q+"*(?:([+-]|)"+q+"*(\\d+)|))"+q+"*\\)|)","i"),bool:new RegExp("^(?:"+Ye+")$","i"),needsContext:new RegExp("^"+q+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+q+"*((?:-\\d)?\\d*)"+q+"*\\)|)(?=[^-]|$)","i")},st=/^(?:input|select|textarea|button)$/i,at=/^h\d$/i,We=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ur=/[+~]/,nt=new RegExp("\\\\[\\da-fA-F]{1,6}"+q+"?|\\\\([^\\r\\n\\f])","g"),it=function(v,T){var N="0x"+v.slice(1)-65536;return T||(N<0?String.fromCharCode(N+65536):String.fromCharCode(N>>10|55296,N&1023|56320))},In=function(){lt()},Ln=qt(function(v){return v.disabled===!0&&G(v,"fieldset")},{dir:"parentNode",next:"legend"});function Mn(){try{return _.activeElement}catch{}}try{m.apply(r=s.call(le.childNodes),le.childNodes),r[le.childNodes.length].nodeType}catch{m={apply:function(T,N){ve.apply(T,s.call(N))},call:function(T){ve.apply(T,s.call(arguments,1))}}}function Ae(v,T,N,P){var M,z,Q,re,J,me,se,ce=T&&T.ownerDocument,ge=T?T.nodeType:9;if(N=N||[],typeof v!="string"||!v||ge!==1&&ge!==9&&ge!==11)return N;if(!P&&(lt(T),T=T||_,b)){if(ge!==11&&(J=We.exec(v)))if(M=J[1]){if(ge===9)if(Q=T.getElementById(M)){if(Q.id===M)return m.call(N,Q),N}else return N;else if(ce&&(Q=ce.getElementById(M))&&Ae.contains(T,Q)&&Q.id===M)return m.call(N,Q),N}else{if(J[2])return m.apply(N,T.getElementsByTagName(v)),N;if((M=J[3])&&T.getElementsByClassName)return m.apply(N,T.getElementsByClassName(M)),N}if(!Pe[v+" "]&&(!O||!O.test(v))){if(se=v,ce=T,ge===1&&(cr.test(v)||Dt.test(v))){for(ce=ur.test(v)&&fr(T.parentNode)||T,(ce!=T||!w.scope)&&((re=T.getAttribute("id"))?re=u.escapeSelector(re):T.setAttribute("id",re=k)),me=It(v),z=me.length;z--;)me[z]=(re?"#"+re:":scope")+" "+Gt(me[z]);se=me.join(",")}try{return m.apply(N,ce.querySelectorAll(se)),N}catch{Pe(v,!0)}finally{re===k&&T.removeAttribute("id")}}}return zr(v.replace(oe,"$1"),T,N,P)}function Wt(){var v=[];function T(N,P){return v.push(N+" ")>a.cacheLength&&delete T[v.shift()],T[N+" "]=P}return T}function Ke(v){return v[k]=!0,v}function Tt(v){var T=_.createElement("fieldset");try{return!!v(T)}catch{return!1}finally{T.parentNode&&T.parentNode.removeChild(T),T=null}}function kn(v){return function(T){return G(T,"input")&&T.type===v}}function jn(v){return function(T){return(G(T,"input")||G(T,"button"))&&T.type===v}}function Kr(v){return function(T){return"form"in T?T.parentNode&&T.disabled===!1?"label"in T?"label"in T.parentNode?T.parentNode.disabled===v:T.disabled===v:T.isDisabled===v||T.isDisabled!==!v&&Ln(T)===v:T.disabled===v:"label"in T?T.disabled===v:!1}}function mt(v){return Ke(function(T){return T=+T,Ke(function(N,P){for(var M,z=v([],N.length,T),Q=z.length;Q--;)N[M=z[Q]]&&(N[M]=!(P[M]=N[M]))})})}function fr(v){return v&&typeof v.getElementsByTagName<"u"&&v}function lt(v){var T,N=v?v.ownerDocument||v:le;return N==_||N.nodeType!==9||!N.documentElement||(_=N,A=_.documentElement,b=!u.isXMLDoc(_),L=A.matches||A.webkitMatchesSelector||A.msMatchesSelector,A.msMatchesSelector&&le!=_&&(T=_.defaultView)&&T.top!==T&&T.addEventListener("unload",In),w.getById=Tt(function(P){return A.appendChild(P).id=u.expando,!_.getElementsByName||!_.getElementsByName(u.expando).length}),w.disconnectedMatch=Tt(function(P){return L.call(P,"*")}),w.scope=Tt(function(){return _.querySelectorAll(":scope")}),w.cssHas=Tt(function(){try{return _.querySelector(":has(*,:jqfake)"),!1}catch{return!0}}),w.getById?(a.filter.ID=function(P){var M=P.replace(nt,it);return function(z){return z.getAttribute("id")===M}},a.find.ID=function(P,M){if(typeof M.getElementById<"u"&&b){var z=M.getElementById(P);return z?[z]:[]}}):(a.filter.ID=function(P){var M=P.replace(nt,it);return function(z){var Q=typeof z.getAttributeNode<"u"&&z.getAttributeNode("id");return Q&&Q.value===M}},a.find.ID=function(P,M){if(typeof M.getElementById<"u"&&b){var z,Q,re,J=M.getElementById(P);if(J){if(z=J.getAttributeNode("id"),z&&z.value===P)return[J];for(re=M.getElementsByName(P),Q=0;J=re[Q++];)if(z=J.getAttributeNode("id"),z&&z.value===P)return[J]}return[]}}),a.find.TAG=function(P,M){return typeof M.getElementsByTagName<"u"?M.getElementsByTagName(P):M.querySelectorAll(P)},a.find.CLASS=function(P,M){if(typeof M.getElementsByClassName<"u"&&b)return M.getElementsByClassName(P)},O=[],Tt(function(P){var M;A.appendChild(P).innerHTML="<a id='"+k+"' href='' disabled='disabled'></a><select id='"+k+"-\r\\' disabled='disabled'><option selected=''></option></select>",P.querySelectorAll("[selected]").length||O.push("\\["+q+"*(?:value|"+Ye+")"),P.querySelectorAll("[id~="+k+"-]").length||O.push("~="),P.querySelectorAll("a#"+k+"+*").length||O.push(".#.+[+~]"),P.querySelectorAll(":checked").length||O.push(":checked"),M=_.createElement("input"),M.setAttribute("type","hidden"),P.appendChild(M).setAttribute("name","D"),A.appendChild(P).disabled=!0,P.querySelectorAll(":disabled").length!==2&&O.push(":enabled",":disabled"),M=_.createElement("input"),M.setAttribute("name",""),P.appendChild(M),P.querySelectorAll("[name='']").length||O.push("\\["+q+"*name"+q+"*="+q+`*(?:''|"")`)}),w.cssHas||O.push(":has"),O=O.length&&new RegExp(O.join("|")),Ne=function(P,M){if(P===M)return h=!0,0;var z=!P.compareDocumentPosition-!M.compareDocumentPosition;return z||(z=(P.ownerDocument||P)==(M.ownerDocument||M)?P.compareDocumentPosition(M):1,z&1||!w.sortDetached&&M.compareDocumentPosition(P)===z?P===_||P.ownerDocument==le&&Ae.contains(le,P)?-1:M===_||M.ownerDocument==le&&Ae.contains(le,M)?1:p?E.call(p,P)-E.call(p,M):0:z&4?-1:1)}),_}Ae.matches=function(v,T){return Ae(v,null,null,T)},Ae.matchesSelector=function(v,T){if(lt(v),b&&!Pe[T+" "]&&(!O||!O.test(T)))try{var N=L.call(v,T);if(N||w.disconnectedMatch||v.document&&v.document.nodeType!==11)return N}catch{Pe(T,!0)}return Ae(T,_,null,[v]).length>0},Ae.contains=function(v,T){return(v.ownerDocument||v)!=_&<(v),u.contains(v,T)},Ae.attr=function(v,T){(v.ownerDocument||v)!=_&<(v);var N=a.attrHandle[T.toLowerCase()],P=N&&y.call(a.attrHandle,T.toLowerCase())?N(v,T,!b):void 0;return P!==void 0?P:v.getAttribute(T)},Ae.error=function(v){throw new Error("Syntax error, unrecognized expression: "+v)},u.uniqueSort=function(v){var T,N=[],P=0,M=0;if(h=!w.sortStable,p=!w.sortStable&&s.call(v,0),K.call(v,Ne),h){for(;T=v[M++];)T===v[M]&&(P=N.push(M));for(;P--;)U.call(v,N[P],1)}return p=null,v},u.fn.uniqueSort=function(){return this.pushStack(u.uniqueSort(s.apply(this)))},a=u.expr={cacheLength:50,createPseudo:Ke,match:Qe,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(v){return v[1]=v[1].replace(nt,it),v[3]=(v[3]||v[4]||v[5]||"").replace(nt,it),v[2]==="~="&&(v[3]=" "+v[3]+" "),v.slice(0,4)},CHILD:function(v){return v[1]=v[1].toLowerCase(),v[1].slice(0,3)==="nth"?(v[3]||Ae.error(v[0]),v[4]=+(v[4]?v[5]+(v[6]||1):2*(v[3]==="even"||v[3]==="odd")),v[5]=+(v[7]+v[8]||v[3]==="odd")):v[3]&&Ae.error(v[0]),v},PSEUDO:function(v){var T,N=!v[6]&&v[2];return Qe.CHILD.test(v[0])?null:(v[3]?v[2]=v[4]||v[5]||"":N&&Xe.test(N)&&(T=It(N,!0))&&(T=N.indexOf(")",N.length-T)-N.length)&&(v[0]=v[0].slice(0,T),v[2]=N.slice(0,T)),v.slice(0,3))}},filter:{TAG:function(v){var T=v.replace(nt,it).toLowerCase();return v==="*"?function(){return!0}:function(N){return G(N,T)}},CLASS:function(v){var T=ae[v+" "];return T||(T=new RegExp("(^|"+q+")"+v+"("+q+"|$)"))&&ae(v,function(N){return T.test(typeof N.className=="string"&&N.className||typeof N.getAttribute<"u"&&N.getAttribute("class")||"")})},ATTR:function(v,T,N){return function(P){var M=Ae.attr(P,v);return M==null?T==="!=":T?(M+="",T==="="?M===N:T==="!="?M!==N:T==="^="?N&&M.indexOf(N)===0:T==="*="?N&&M.indexOf(N)>-1:T==="$="?N&&M.slice(-N.length)===N:T==="~="?(" "+M.replace(ye," ")+" ").indexOf(N)>-1:T==="|="?M===N||M.slice(0,N.length+1)===N+"-":!1):!0}},CHILD:function(v,T,N,P,M){var z=v.slice(0,3)!=="nth",Q=v.slice(-4)!=="last",re=T==="of-type";return P===1&&M===0?function(J){return!!J.parentNode}:function(J,me,se){var ce,ge,ie,Se,He,Ie=z!==Q?"nextSibling":"previousSibling",Ge=J.parentNode,Je=re&&J.nodeName.toLowerCase(),wt=!se&&!re,Le=!1;if(Ge){if(z){for(;Ie;){for(ie=J;ie=ie[Ie];)if(re?G(ie,Je):ie.nodeType===1)return!1;He=Ie=v==="only"&&!He&&"nextSibling"}return!0}if(He=[Q?Ge.firstChild:Ge.lastChild],Q&&wt){for(ge=Ge[k]||(Ge[k]={}),ce=ge[v]||[],Se=ce[0]===R&&ce[1],Le=Se&&ce[2],ie=Se&&Ge.childNodes[Se];ie=++Se&&ie&&ie[Ie]||(Le=Se=0)||He.pop();)if(ie.nodeType===1&&++Le&&ie===J){ge[v]=[R,Se,Le];break}}else if(wt&&(ge=J[k]||(J[k]={}),ce=ge[v]||[],Se=ce[0]===R&&ce[1],Le=Se),Le===!1)for(;(ie=++Se&&ie&&ie[Ie]||(Le=Se=0)||He.pop())&&!((re?G(ie,Je):ie.nodeType===1)&&++Le&&(wt&&(ge=ie[k]||(ie[k]={}),ge[v]=[R,Le]),ie===J)););return Le-=M,Le===P||Le%P===0&&Le/P>=0}}},PSEUDO:function(v,T){var N,P=a.pseudos[v]||a.setFilters[v.toLowerCase()]||Ae.error("unsupported pseudo: "+v);return P[k]?P(T):P.length>1?(N=[v,v,"",T],a.setFilters.hasOwnProperty(v.toLowerCase())?Ke(function(M,z){for(var Q,re=P(M,T),J=re.length;J--;)Q=E.call(M,re[J]),M[Q]=!(z[Q]=re[J])}):function(M){return P(M,0,N)}):P}},pseudos:{not:Ke(function(v){var T=[],N=[],P=mr(v.replace(oe,"$1"));return P[k]?Ke(function(M,z,Q,re){for(var J,me=P(M,null,re,[]),se=M.length;se--;)(J=me[se])&&(M[se]=!(z[se]=J))}):function(M,z,Q){return T[0]=M,P(T,null,Q,N),T[0]=null,!N.pop()}}),has:Ke(function(v){return function(T){return Ae(v,T).length>0}}),contains:Ke(function(v){return v=v.replace(nt,it),function(T){return(T.textContent||u.text(T)).indexOf(v)>-1}}),lang:Ke(function(v){return Pt.test(v||"")||Ae.error("unsupported lang: "+v),v=v.replace(nt,it).toLowerCase(),function(T){var N;do if(N=b?T.lang:T.getAttribute("xml:lang")||T.getAttribute("lang"))return N=N.toLowerCase(),N===v||N.indexOf(v+"-")===0;while((T=T.parentNode)&&T.nodeType===1);return!1}}),target:function(v){var T=e.location&&e.location.hash;return T&&T.slice(1)===v.id},root:function(v){return v===A},focus:function(v){return v===Mn()&&_.hasFocus()&&!!(v.type||v.href||~v.tabIndex)},enabled:Kr(!1),disabled:Kr(!0),checked:function(v){return G(v,"input")&&!!v.checked||G(v,"option")&&!!v.selected},selected:function(v){return v.parentNode&&v.parentNode.selectedIndex,v.selected===!0},empty:function(v){for(v=v.firstChild;v;v=v.nextSibling)if(v.nodeType<6)return!1;return!0},parent:function(v){return!a.pseudos.empty(v)},header:function(v){return at.test(v.nodeName)},input:function(v){return st.test(v.nodeName)},button:function(v){return G(v,"input")&&v.type==="button"||G(v,"button")},text:function(v){var T;return G(v,"input")&&v.type==="text"&&((T=v.getAttribute("type"))==null||T.toLowerCase()==="text")},first:mt(function(){return[0]}),last:mt(function(v,T){return[T-1]}),eq:mt(function(v,T,N){return[N<0?N+T:N]}),even:mt(function(v,T){for(var N=0;N<T;N+=2)v.push(N);return v}),odd:mt(function(v,T){for(var N=1;N<T;N+=2)v.push(N);return v}),lt:mt(function(v,T,N){var P;for(N<0?P=N+T:N>T?P=T:P=N;--P>=0;)v.push(P);return v}),gt:mt(function(v,T,N){for(var P=N<0?N+T:N;++P<T;)v.push(P);return v})}},a.pseudos.nth=a.pseudos.eq;for(i in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})a.pseudos[i]=kn(i);for(i in{submit:!0,reset:!0})a.pseudos[i]=jn(i);function Yr(){}Yr.prototype=a.filters=a.pseudos,a.setFilters=new Yr;function It(v,T){var N,P,M,z,Q,re,J,me=_e[v+" "];if(me)return T?0:me.slice(0);for(Q=v,re=[],J=a.preFilter;Q;){(!N||(P=Ce.exec(Q)))&&(P&&(Q=Q.slice(P[0].length)||Q),re.push(M=[])),N=!1,(P=Dt.exec(Q))&&(N=P.shift(),M.push({value:N,type:P[0].replace(oe," ")}),Q=Q.slice(N.length));for(z in a.filter)(P=Qe[z].exec(Q))&&(!J[z]||(P=J[z](P)))&&(N=P.shift(),M.push({value:N,type:z,matches:P}),Q=Q.slice(N.length));if(!N)break}return T?Q.length:Q?Ae.error(v):_e(v,re).slice(0)}function Gt(v){for(var T=0,N=v.length,P="";T<N;T++)P+=v[T].value;return P}function qt(v,T,N){var P=T.dir,M=T.next,z=M||P,Q=N&&z==="parentNode",re=W++;return T.first?function(J,me,se){for(;J=J[P];)if(J.nodeType===1||Q)return v(J,me,se);return!1}:function(J,me,se){var ce,ge,ie=[R,re];if(se){for(;J=J[P];)if((J.nodeType===1||Q)&&v(J,me,se))return!0}else for(;J=J[P];)if(J.nodeType===1||Q)if(ge=J[k]||(J[k]={}),M&&G(J,M))J=J[P]||J;else{if((ce=ge[z])&&ce[0]===R&&ce[1]===re)return ie[2]=ce[2];if(ge[z]=ie,ie[2]=v(J,me,se))return!0}return!1}}function pr(v){return v.length>1?function(T,N,P){for(var M=v.length;M--;)if(!v[M](T,N,P))return!1;return!0}:v[0]}function Hn(v,T,N){for(var P=0,M=T.length;P<M;P++)Ae(v,T[P],N);return N}function Ut(v,T,N,P,M){for(var z,Q=[],re=0,J=v.length,me=T!=null;re<J;re++)(z=v[re])&&(!N||N(z,P,M))&&(Q.push(z),me&&T.push(re));return Q}function dr(v,T,N,P,M,z){return P&&!P[k]&&(P=dr(P)),M&&!M[k]&&(M=dr(M,z)),Ke(function(Q,re,J,me){var se,ce,ge,ie,Se=[],He=[],Ie=re.length,Ge=Q||Hn(T||"*",J.nodeType?[J]:J,[]),Je=v&&(Q||!T)?Ut(Ge,Se,v,J,me):Ge;if(N?(ie=M||(Q?v:Ie||P)?[]:re,N(Je,ie,J,me)):ie=Je,P)for(se=Ut(ie,He),P(se,[],J,me),ce=se.length;ce--;)(ge=se[ce])&&(ie[He[ce]]=!(Je[He[ce]]=ge));if(Q){if(M||v){if(M){for(se=[],ce=ie.length;ce--;)(ge=ie[ce])&&se.push(Je[ce]=ge);M(null,ie=[],se,me)}for(ce=ie.length;ce--;)(ge=ie[ce])&&(se=M?E.call(Q,ge):Se[ce])>-1&&(Q[se]=!(re[se]=ge))}}else ie=Ut(ie===re?ie.splice(Ie,ie.length):ie),M?M(null,re,ie,me):m.apply(re,ie)})}function hr(v){for(var T,N,P,M=v.length,z=a.relative[v[0].type],Q=z||a.relative[" "],re=z?1:0,J=qt(function(ce){return ce===T},Q,!0),me=qt(function(ce){return E.call(T,ce)>-1},Q,!0),se=[function(ce,ge,ie){var Se=!z&&(ie||ge!=c)||((T=ge).nodeType?J(ce,ge,ie):me(ce,ge,ie));return T=null,Se}];re<M;re++)if(N=a.relative[v[re].type])se=[qt(pr(se),N)];else{if(N=a.filter[v[re].type].apply(null,v[re].matches),N[k]){for(P=++re;P<M&&!a.relative[v[P].type];P++);return dr(re>1&&pr(se),re>1&&Gt(v.slice(0,re-1).concat({value:v[re-2].type===" "?"*":""})).replace(oe,"$1"),N,re<P&&hr(v.slice(re,P)),P<M&&hr(v=v.slice(P)),P<M&&Gt(v))}se.push(N)}return pr(se)}function Fn(v,T){var N=T.length>0,P=v.length>0,M=function(z,Q,re,J,me){var se,ce,ge,ie=0,Se="0",He=z&&[],Ie=[],Ge=c,Je=z||P&&a.find.TAG("*",me),wt=R+=Ge==null?1:Math.random()||.1,Le=Je.length;for(me&&(c=Q==_||Q||me);Se!==Le&&(se=Je[Se])!=null;Se++){if(P&&se){for(ce=0,!Q&&se.ownerDocument!=_&&(lt(se),re=!b);ge=v[ce++];)if(ge(se,Q||_,re)){m.call(J,se);break}me&&(R=wt)}N&&((se=!ge&&se)&&ie--,z&&He.push(se))}if(ie+=Se,N&&Se!==ie){for(ce=0;ge=T[ce++];)ge(He,Ie,Q,re);if(z){if(ie>0)for(;Se--;)He[Se]||Ie[Se]||(Ie[Se]=I.call(J));Ie=Ut(Ie)}m.apply(J,Ie),me&&!z&&Ie.length>0&&ie+T.length>1&&u.uniqueSort(J)}return me&&(R=wt,c=Ge),He};return N?Ke(M):M}function mr(v,T){var N,P=[],M=[],z=de[v+" "];if(!z){for(T||(T=It(v)),N=T.length;N--;)z=hr(T[N]),z[k]?P.push(z):M.push(z);z=de(v,Fn(M,P)),z.selector=v}return z}function zr(v,T,N,P){var M,z,Q,re,J,me=typeof v=="function"&&v,se=!P&&It(v=me.selector||v);if(N=N||[],se.length===1){if(z=se[0]=se[0].slice(0),z.length>2&&(Q=z[0]).type==="ID"&&T.nodeType===9&&b&&a.relative[z[1].type]){if(T=(a.find.ID(Q.matches[0].replace(nt,it),T)||[])[0],T)me&&(T=T.parentNode);else return N;v=v.slice(z.shift().value.length)}for(M=Qe.needsContext.test(v)?0:z.length;M--&&(Q=z[M],!a.relative[re=Q.type]);)if((J=a.find[re])&&(P=J(Q.matches[0].replace(nt,it),ur.test(z[0].type)&&fr(T.parentNode)||T))){if(z.splice(M,1),v=P.length&&Gt(z),!v)return m.apply(N,P),N;break}}return(me||mr(v,se))(P,T,!b,N,!T||ur.test(v)&&fr(T.parentNode)||T),N}w.sortStable=k.split("").sort(Ne).join("")===k,lt(),w.sortDetached=Tt(function(v){return v.compareDocumentPosition(_.createElement("fieldset"))&1}),u.find=Ae,u.expr[":"]=u.expr.pseudos,u.unique=u.uniqueSort,Ae.compile=mr,Ae.select=zr,Ae.setDocument=lt,Ae.tokenize=It,Ae.escape=u.escapeSelector,Ae.getText=u.text,Ae.isXML=u.isXMLDoc,Ae.selectors=u.expr,Ae.support=u.support,Ae.uniqueSort=u.uniqueSort})();var he=function(i,a,c){for(var p=[],h=c!==void 0;(i=i[a])&&i.nodeType!==9;)if(i.nodeType===1){if(h&&u(i).is(c))break;p.push(i)}return p},Re=function(i,a){for(var c=[];i;i=i.nextSibling)i.nodeType===1&&i!==a&&c.push(i);return c},fe=u.expr.match.needsContext,be=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function we(i,a,c){return C(a)?u.grep(i,function(p,h){return!!a.call(p,h,p)!==c}):a.nodeType?u.grep(i,function(p){return p===a!==c}):typeof a!="string"?u.grep(i,function(p){return E.call(a,p)>-1!==c}):u.filter(a,i,c)}u.filter=function(i,a,c){var p=a[0];return c&&(i=":not("+i+")"),a.length===1&&p.nodeType===1?u.find.matchesSelector(p,i)?[p]:[]:u.find.matches(i,u.grep(a,function(h){return h.nodeType===1}))},u.fn.extend({find:function(i){var a,c,p=this.length,h=this;if(typeof i!="string")return this.pushStack(u(i).filter(function(){for(a=0;a<p;a++)if(u.contains(h[a],this))return!0}));for(c=this.pushStack([]),a=0;a<p;a++)u.find(i,h[a],c);return p>1?u.uniqueSort(c):c},filter:function(i){return this.pushStack(we(this,i||[],!1))},not:function(i){return this.pushStack(we(this,i||[],!0))},is:function(i){return!!we(this,typeof i=="string"&&fe.test(i)?u(i):i||[],!1).length}});var xe,j=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,ee=u.fn.init=function(i,a,c){var p,h;if(!i)return this;if(c=c||xe,typeof i=="string")if(i[0]==="<"&&i[i.length-1]===">"&&i.length>=3?p=[null,i,null]:p=j.exec(i),p&&(p[1]||!a))if(p[1]){if(a=a instanceof u?a[0]:a,u.merge(this,u.parseHTML(p[1],a&&a.nodeType?a.ownerDocument||a:D,!0)),be.test(p[1])&&u.isPlainObject(a))for(p in a)C(this[p])?this[p](a[p]):this.attr(p,a[p]);return this}else return h=D.getElementById(p[2]),h&&(this[0]=h,this.length=1),this;else return!a||a.jquery?(a||c).find(i):this.constructor(a).find(i);else{if(i.nodeType)return this[0]=i,this.length=1,this;if(C(i))return c.ready!==void 0?c.ready(i):i(u)}return u.makeArray(i,this)};ee.prototype=u.fn,xe=u(D);var Te=/^(?:parents|prev(?:Until|All))/,$e={children:!0,contents:!0,next:!0,prev:!0};u.fn.extend({has:function(i){var a=u(i,this),c=a.length;return this.filter(function(){for(var p=0;p<c;p++)if(u.contains(this,a[p]))return!0})},closest:function(i,a){var c,p=0,h=this.length,m=[],_=typeof i!="string"&&u(i);if(!fe.test(i)){for(;p<h;p++)for(c=this[p];c&&c!==a;c=c.parentNode)if(c.nodeType<11&&(_?_.index(c)>-1:c.nodeType===1&&u.find.matchesSelector(c,i))){m.push(c);break}}return this.pushStack(m.length>1?u.uniqueSort(m):m)},index:function(i){return i?typeof i=="string"?E.call(u(i),this[0]):E.call(this,i.jquery?i[0]:i):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(i,a){return this.pushStack(u.uniqueSort(u.merge(this.get(),u(i,a))))},addBack:function(i){return this.add(i==null?this.prevObject:this.prevObject.filter(i))}});function Me(i,a){for(;(i=i[a])&&i.nodeType!==1;);return i}u.each({parent:function(i){var a=i.parentNode;return a&&a.nodeType!==11?a:null},parents:function(i){return he(i,"parentNode")},parentsUntil:function(i,a,c){return he(i,"parentNode",c)},next:function(i){return Me(i,"nextSibling")},prev:function(i){return Me(i,"previousSibling")},nextAll:function(i){return he(i,"nextSibling")},prevAll:function(i){return he(i,"previousSibling")},nextUntil:function(i,a,c){return he(i,"nextSibling",c)},prevUntil:function(i,a,c){return he(i,"previousSibling",c)},siblings:function(i){return Re((i.parentNode||{}).firstChild,i)},children:function(i){return Re(i.firstChild)},contents:function(i){return i.contentDocument!=null&&o(i.contentDocument)?i.contentDocument:(G(i,"template")&&(i=i.content||i),u.merge([],i.childNodes))}},function(i,a){u.fn[i]=function(c,p){var h=u.map(this,a,c);return i.slice(-5)!=="Until"&&(p=c),p&&typeof p=="string"&&(h=u.filter(p,h)),this.length>1&&($e[i]||u.uniqueSort(h),Te.test(i)&&h.reverse()),this.pushStack(h)}});var Oe=/[^\x20\t\r\n\f]+/g;function Ze(i){var a={};return u.each(i.match(Oe)||[],function(c,p){a[p]=!0}),a}u.Callbacks=function(i){i=typeof i=="string"?Ze(i):u.extend({},i);var a,c,p,h,m=[],_=[],A=-1,b=function(){for(h=h||i.once,p=a=!0;_.length;A=-1)for(c=_.shift();++A<m.length;)m[A].apply(c[0],c[1])===!1&&i.stopOnFalse&&(A=m.length,c=!1);i.memory||(c=!1),a=!1,h&&(c?m=[]:m="")},O={add:function(){return m&&(c&&!a&&(A=m.length-1,_.push(c)),function L(k){u.each(k,function(R,W){C(W)?(!i.unique||!O.has(W))&&m.push(W):W&&W.length&&Y(W)!=="string"&&L(W)})}(arguments),c&&!a&&b()),this},remove:function(){return u.each(arguments,function(L,k){for(var R;(R=u.inArray(k,m,R))>-1;)m.splice(R,1),R<=A&&A--}),this},has:function(L){return L?u.inArray(L,m)>-1:m.length>0},empty:function(){return m&&(m=[]),this},disable:function(){return h=_=[],m=c="",this},disabled:function(){return!m},lock:function(){return h=_=[],!c&&!a&&(m=c=""),this},locked:function(){return!!h},fireWith:function(L,k){return h||(k=k||[],k=[L,k.slice?k.slice():k],_.push(k),a||b()),this},fire:function(){return O.fireWith(this,arguments),this},fired:function(){return!!p}};return O};function Fe(i){return i}function ct(i){throw i}function Lt(i,a,c,p){var h;try{i&&C(h=i.promise)?h.call(i).done(a).fail(c):i&&C(h=i.then)?h.call(i,a,c):a.apply(void 0,[i].slice(p))}catch(m){c.apply(void 0,[m])}}u.extend({Deferred:function(i){var a=[["notify","progress",u.Callbacks("memory"),u.Callbacks("memory"),2],["resolve","done",u.Callbacks("once memory"),u.Callbacks("once memory"),0,"resolved"],["reject","fail",u.Callbacks("once memory"),u.Callbacks("once memory"),1,"rejected"]],c="pending",p={state:function(){return c},always:function(){return h.done(arguments).fail(arguments),this},catch:function(m){return p.then(null,m)},pipe:function(){var m=arguments;return u.Deferred(function(_){u.each(a,function(A,b){var O=C(m[b[4]])&&m[b[4]];h[b[1]](function(){var L=O&&O.apply(this,arguments);L&&C(L.promise)?L.promise().progress(_.notify).done(_.resolve).fail(_.reject):_[b[0]+"With"](this,O?[L]:arguments)})}),m=null}).promise()},then:function(m,_,A){var b=0;function O(L,k,R,W){return function(){var ae=this,_e=arguments,de=function(){var Ne,Ye;if(!(L<b)){if(Ne=R.apply(ae,_e),Ne===k.promise())throw new TypeError("Thenable self-resolution");Ye=Ne&&(typeof Ne=="object"||typeof Ne=="function")&&Ne.then,C(Ye)?W?Ye.call(Ne,O(b,k,Fe,W),O(b,k,ct,W)):(b++,Ye.call(Ne,O(b,k,Fe,W),O(b,k,ct,W),O(b,k,Fe,k.notifyWith))):(R!==Fe&&(ae=void 0,_e=[Ne]),(W||k.resolveWith)(ae,_e))}},Pe=W?de:function(){try{de()}catch(Ne){u.Deferred.exceptionHook&&u.Deferred.exceptionHook(Ne,Pe.error),L+1>=b&&(R!==ct&&(ae=void 0,_e=[Ne]),k.rejectWith(ae,_e))}};L?Pe():(u.Deferred.getErrorHook?Pe.error=u.Deferred.getErrorHook():u.Deferred.getStackHook&&(Pe.error=u.Deferred.getStackHook()),e.setTimeout(Pe))}}return u.Deferred(function(L){a[0][3].add(O(0,L,C(A)?A:Fe,L.notifyWith)),a[1][3].add(O(0,L,C(m)?m:Fe)),a[2][3].add(O(0,L,C(_)?_:ct))}).promise()},promise:function(m){return m!=null?u.extend(m,p):p}},h={};return u.each(a,function(m,_){var A=_[2],b=_[5];p[_[1]]=A.add,b&&A.add(function(){c=b},a[3-m][2].disable,a[3-m][3].disable,a[0][2].lock,a[0][3].lock),A.add(_[3].fire),h[_[0]]=function(){return h[_[0]+"With"](this===h?void 0:this,arguments),this},h[_[0]+"With"]=A.fireWith}),p.promise(h),i&&i.call(h,h),h},when:function(i){var a=arguments.length,c=a,p=Array(c),h=s.call(arguments),m=u.Deferred(),_=function(A){return function(b){p[A]=this,h[A]=arguments.length>1?s.call(arguments):b,--a||m.resolveWith(p,h)}};if(a<=1&&(Lt(i,m.done(_(c)).resolve,m.reject,!a),m.state()==="pending"||C(h[c]&&h[c].then)))return m.then();for(;c--;)Lt(h[c],_(c),m.reject);return m.promise()}});var Kt=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;u.Deferred.exceptionHook=function(i,a){e.console&&e.console.warn&&i&&Kt.test(i.name)&&e.console.warn("jQuery.Deferred exception: "+i.message,i.stack,a)},u.readyException=function(i){e.setTimeout(function(){throw i})};var gt=u.Deferred();u.fn.ready=function(i){return gt.then(i).catch(function(a){u.readyException(a)}),this},u.extend({isReady:!1,readyWait:1,ready:function(i){(i===!0?--u.readyWait:u.isReady)||(u.isReady=!0,!(i!==!0&&--u.readyWait>0)&>.resolveWith(D,[u]))}}),u.ready.then=gt.then;function ut(){D.removeEventListener("DOMContentLoaded",ut),e.removeEventListener("load",ut),u.ready()}D.readyState==="complete"||D.readyState!=="loading"&&!D.documentElement.doScroll?e.setTimeout(u.ready):(D.addEventListener("DOMContentLoaded",ut),e.addEventListener("load",ut));var qe=function(i,a,c,p,h,m,_){var A=0,b=i.length,O=c==null;if(Y(c)==="object"){h=!0;for(A in c)qe(i,a,A,c[A],!0,m,_)}else if(p!==void 0&&(h=!0,C(p)||(_=!0),O&&(_?(a.call(i,p),a=null):(O=a,a=function(L,k,R){return O.call(u(L),R)})),a))for(;A<b;A++)a(i[A],c,_?p:p.call(i[A],A,a(i[A],c)));return h?i:O?a.call(i):b?a(i[0],c):m},Yt=/^-ms-/,et=/-([a-z])/g;function Et(i,a){return a.toUpperCase()}function Ve(i){return i.replace(Yt,"ms-").replace(et,Et)}var ot=function(i){return i.nodeType===1||i.nodeType===9||!+i.nodeType};function tt(){this.expando=u.expando+tt.uid++}tt.uid=1,tt.prototype={cache:function(i){var a=i[this.expando];return a||(a={},ot(i)&&(i.nodeType?i[this.expando]=a:Object.defineProperty(i,this.expando,{value:a,configurable:!0}))),a},set:function(i,a,c){var p,h=this.cache(i);if(typeof a=="string")h[Ve(a)]=c;else for(p in a)h[Ve(p)]=a[p];return h},get:function(i,a){return a===void 0?this.cache(i):i[this.expando]&&i[this.expando][Ve(a)]},access:function(i,a,c){return a===void 0||a&&typeof a=="string"&&c===void 0?this.get(i,a):(this.set(i,a,c),c!==void 0?c:a)},remove:function(i,a){var c,p=i[this.expando];if(p!==void 0){if(a!==void 0)for(Array.isArray(a)?a=a.map(Ve):(a=Ve(a),a=a in p?[a]:a.match(Oe)||[]),c=a.length;c--;)delete p[a[c]];(a===void 0||u.isEmptyObject(p))&&(i.nodeType?i[this.expando]=void 0:delete i[this.expando])}},hasData:function(i){var a=i[this.expando];return a!==void 0&&!u.isEmptyObject(a)}};var te=new tt,De=new tt,Mt=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,kt=/[A-Z]/g;function Xr(i){return i==="true"?!0:i==="false"?!1:i==="null"?null:i===+i+""?+i:Mt.test(i)?JSON.parse(i):i}function gr(i,a,c){var p;if(c===void 0&&i.nodeType===1)if(p="data-"+a.replace(kt,"-$&").toLowerCase(),c=i.getAttribute(p),typeof c=="string"){try{c=Xr(c)}catch{}De.set(i,a,c)}else c=void 0;return c}u.extend({hasData:function(i){return De.hasData(i)||te.hasData(i)},data:function(i,a,c){return De.access(i,a,c)},removeData:function(i,a){De.remove(i,a)},_data:function(i,a,c){return te.access(i,a,c)},_removeData:function(i,a){te.remove(i,a)}}),u.fn.extend({data:function(i,a){var c,p,h,m=this[0],_=m&&m.attributes;if(i===void 0){if(this.length&&(h=De.get(m),m.nodeType===1&&!te.get(m,"hasDataAttrs"))){for(c=_.length;c--;)_[c]&&(p=_[c].name,p.indexOf("data-")===0&&(p=Ve(p.slice(5)),gr(m,p,h[p])));te.set(m,"hasDataAttrs",!0)}return h}return typeof i=="object"?this.each(function(){De.set(this,i)}):qe(this,function(A){var b;if(m&&A===void 0)return b=De.get(m,i),b!==void 0||(b=gr(m,i),b!==void 0)?b:void 0;this.each(function(){De.set(this,i,A)})},null,a,arguments.length>1,null,!0)},removeData:function(i){return this.each(function(){De.remove(this,i)})}}),u.extend({queue:function(i,a,c){var p;if(i)return a=(a||"fx")+"queue",p=te.get(i,a),c&&(!p||Array.isArray(c)?p=te.access(i,a,u.makeArray(c)):p.push(c)),p||[]},dequeue:function(i,a){a=a||"fx";var c=u.queue(i,a),p=c.length,h=c.shift(),m=u._queueHooks(i,a),_=function(){u.dequeue(i,a)};h==="inprogress"&&(h=c.shift(),p--),h&&(a==="fx"&&c.unshift("inprogress"),delete m.stop,h.call(i,_,m)),!p&&m&&m.empty.fire()},_queueHooks:function(i,a){var c=a+"queueHooks";return te.get(i,c)||te.access(i,c,{empty:u.Callbacks("once memory").add(function(){te.remove(i,[a+"queue",c])})})}}),u.fn.extend({queue:function(i,a){var c=2;return typeof i!="string"&&(a=i,i="fx",c--),arguments.length<c?u.queue(this[0],i):a===void 0?this:this.each(function(){var p=u.queue(this,i,a);u._queueHooks(this,i),i==="fx"&&p[0]!=="inprogress"&&u.dequeue(this,i)})},dequeue:function(i){return this.each(function(){u.dequeue(this,i)})},clearQueue:function(i){return this.queue(i||"fx",[])},promise:function(i,a){var c,p=1,h=u.Deferred(),m=this,_=this.length,A=function(){--p||h.resolveWith(m,[m])};for(typeof i!="string"&&(a=i,i=void 0),i=i||"fx";_--;)c=te.get(m[_],i+"queueHooks"),c&&c.empty&&(p++,c.empty.add(A));return A(),h.promise(a)}});var Er=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,$t=new RegExp("^(?:([+-])=|)("+Er+")([a-z%]*)$","i"),rt=["Top","Right","Bottom","Left"],ft=D.documentElement,_t=function(i){return u.contains(i.ownerDocument,i)},Qr={composed:!0};ft.getRootNode&&(_t=function(i){return u.contains(i.ownerDocument,i)||i.getRootNode(Qr)===i.ownerDocument});var jt=function(i,a){return i=a||i,i.style.display==="none"||i.style.display===""&&_t(i)&&u.css(i,"display")==="none"};function _r(i,a,c,p){var h,m,_=20,A=p?function(){return p.cur()}:function(){return u.css(i,a,"")},b=A(),O=c&&c[3]||(u.cssNumber[a]?"":"px"),L=i.nodeType&&(u.cssNumber[a]||O!=="px"&&+b)&&$t.exec(u.css(i,a));if(L&&L[3]!==O){for(b=b/2,O=O||L[3],L=+b||1;_--;)u.style(i,a,L+O),(1-m)*(1-(m=A()/b||.5))<=0&&(_=0),L=L/m;L=L*2,u.style(i,a,L+O),c=c||[]}return c&&(L=+L||+b||0,h=c[1]?L+(c[1]+1)*c[2]:+c[2],p&&(p.unit=O,p.start=L,p.end=h)),h}var yr={};function Jr(i){var a,c=i.ownerDocument,p=i.nodeName,h=yr[p];return h||(a=c.body.appendChild(c.createElement(p)),h=u.css(a,"display"),a.parentNode.removeChild(a),h==="none"&&(h="block"),yr[p]=h,h)}function yt(i,a){for(var c,p,h=[],m=0,_=i.length;m<_;m++)p=i[m],p.style&&(c=p.style.display,a?(c==="none"&&(h[m]=te.get(p,"display")||null,h[m]||(p.style.display="")),p.style.display===""&&jt(p)&&(h[m]=Jr(p))):c!=="none"&&(h[m]="none",te.set(p,"display",c)));for(m=0;m<_;m++)h[m]!=null&&(i[m].style.display=h[m]);return i}u.fn.extend({show:function(){return yt(this,!0)},hide:function(){return yt(this)},toggle:function(i){return typeof i=="boolean"?i?this.show():this.hide():this.each(function(){jt(this)?u(this).show():u(this).hide()})}});var Ot=/^(?:checkbox|radio)$/i,vr=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,br=/^$|^module$|\/(?:java|ecma)script/i;(function(){var i=D.createDocumentFragment(),a=i.appendChild(D.createElement("div")),c=D.createElement("input");c.setAttribute("type","radio"),c.setAttribute("checked","checked"),c.setAttribute("name","t"),a.appendChild(c),w.checkClone=a.cloneNode(!0).cloneNode(!0).lastChild.checked,a.innerHTML="<textarea>x</textarea>",w.noCloneChecked=!!a.cloneNode(!0).lastChild.defaultValue,a.innerHTML="<option></option>",w.option=!!a.lastChild})();var Be={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,"",""]};Be.tbody=Be.tfoot=Be.colgroup=Be.caption=Be.thead,Be.th=Be.td,w.option||(Be.optgroup=Be.option=[1,"<select multiple='multiple'>","</select>"]);function ke(i,a){var c;return typeof i.getElementsByTagName<"u"?c=i.getElementsByTagName(a||"*"):typeof i.querySelectorAll<"u"?c=i.querySelectorAll(a||"*"):c=[],a===void 0||a&&G(i,a)?u.merge([i],c):c}function zt(i,a){for(var c=0,p=i.length;c<p;c++)te.set(i[c],"globalEval",!a||te.get(a[c],"globalEval"))}var Zr=/<|&#?\w+;/;function Ar(i,a,c,p,h){for(var m,_,A,b,O,L,k=a.createDocumentFragment(),R=[],W=0,ae=i.length;W<ae;W++)if(m=i[W],m||m===0)if(Y(m)==="object")u.merge(R,m.nodeType?[m]:m);else if(!Zr.test(m))R.push(a.createTextNode(m));else{for(_=_||k.appendChild(a.createElement("div")),A=(vr.exec(m)||["",""])[1].toLowerCase(),b=Be[A]||Be._default,_.innerHTML=b[1]+u.htmlPrefilter(m)+b[2],L=b[0];L--;)_=_.lastChild;u.merge(R,_.childNodes),_=k.firstChild,_.textContent=""}for(k.textContent="",W=0;m=R[W++];){if(p&&u.inArray(m,p)>-1){h&&h.push(m);continue}if(O=_t(m),_=ke(k.appendChild(m),"script"),O&&zt(_),c)for(L=0;m=_[L++];)br.test(m.type||"")&&c.push(m)}return k}var Sr=/^([^.]*)(?:\.(.+)|)/;function vt(){return!0}function bt(){return!1}function Xt(i,a,c,p,h,m){var _,A;if(typeof a=="object"){typeof c!="string"&&(p=p||c,c=void 0);for(A in a)Xt(i,A,c,p,a[A],m);return i}if(p==null&&h==null?(h=c,p=c=void 0):h==null&&(typeof c=="string"?(h=p,p=void 0):(h=p,p=c,c=void 0)),h===!1)h=bt;else if(!h)return i;return m===1&&(_=h,h=function(b){return u().off(b),_.apply(this,arguments)},h.guid=_.guid||(_.guid=u.guid++)),i.each(function(){u.event.add(this,a,h,p,c)})}u.event={global:{},add:function(i,a,c,p,h){var m,_,A,b,O,L,k,R,W,ae,_e,de=te.get(i);if(ot(i))for(c.handler&&(m=c,c=m.handler,h=m.selector),h&&u.find.matchesSelector(ft,h),c.guid||(c.guid=u.guid++),(b=de.events)||(b=de.events=Object.create(null)),(_=de.handle)||(_=de.handle=function(Pe){return typeof u<"u"&&u.event.triggered!==Pe.type?u.event.dispatch.apply(i,arguments):void 0}),a=(a||"").match(Oe)||[""],O=a.length;O--;)A=Sr.exec(a[O])||[],W=_e=A[1],ae=(A[2]||"").split(".").sort(),W&&(k=u.event.special[W]||{},W=(h?k.delegateType:k.bindType)||W,k=u.event.special[W]||{},L=u.extend({type:W,origType:_e,data:p,handler:c,guid:c.guid,selector:h,needsContext:h&&u.expr.match.needsContext.test(h),namespace:ae.join(".")},m),(R=b[W])||(R=b[W]=[],R.delegateCount=0,(!k.setup||k.setup.call(i,p,ae,_)===!1)&&i.addEventListener&&i.addEventListener(W,_)),k.add&&(k.add.call(i,L),L.handler.guid||(L.handler.guid=c.guid)),h?R.splice(R.delegateCount++,0,L):R.push(L),u.event.global[W]=!0)},remove:function(i,a,c,p,h){var m,_,A,b,O,L,k,R,W,ae,_e,de=te.hasData(i)&&te.get(i);if(!(!de||!(b=de.events))){for(a=(a||"").match(Oe)||[""],O=a.length;O--;){if(A=Sr.exec(a[O])||[],W=_e=A[1],ae=(A[2]||"").split(".").sort(),!W){for(W in b)u.event.remove(i,W+a[O],c,p,!0);continue}for(k=u.event.special[W]||{},W=(p?k.delegateType:k.bindType)||W,R=b[W]||[],A=A[2]&&new RegExp("(^|\\.)"+ae.join("\\.(?:.*\\.|)")+"(\\.|$)"),_=m=R.length;m--;)L=R[m],(h||_e===L.origType)&&(!c||c.guid===L.guid)&&(!A||A.test(L.namespace))&&(!p||p===L.selector||p==="**"&&L.selector)&&(R.splice(m,1),L.selector&&R.delegateCount--,k.remove&&k.remove.call(i,L));_&&!R.length&&((!k.teardown||k.teardown.call(i,ae,de.handle)===!1)&&u.removeEvent(i,W,de.handle),delete b[W])}u.isEmptyObject(b)&&te.remove(i,"handle events")}},dispatch:function(i){var a,c,p,h,m,_,A=new Array(arguments.length),b=u.event.fix(i),O=(te.get(this,"events")||Object.create(null))[b.type]||[],L=u.event.special[b.type]||{};for(A[0]=b,a=1;a<arguments.length;a++)A[a]=arguments[a];if(b.delegateTarget=this,!(L.preDispatch&&L.preDispatch.call(this,b)===!1)){for(_=u.event.handlers.call(this,b,O),a=0;(h=_[a++])&&!b.isPropagationStopped();)for(b.currentTarget=h.elem,c=0;(m=h.handlers[c++])&&!b.isImmediatePropagationStopped();)(!b.rnamespace||m.namespace===!1||b.rnamespace.test(m.namespace))&&(b.handleObj=m,b.data=m.data,p=((u.event.special[m.origType]||{}).handle||m.handler).apply(h.elem,A),p!==void 0&&(b.result=p)===!1&&(b.preventDefault(),b.stopPropagation()));return L.postDispatch&&L.postDispatch.call(this,b),b.result}},handlers:function(i,a){var c,p,h,m,_,A=[],b=a.delegateCount,O=i.target;if(b&&O.nodeType&&!(i.type==="click"&&i.button>=1)){for(;O!==this;O=O.parentNode||this)if(O.nodeType===1&&!(i.type==="click"&&O.disabled===!0)){for(m=[],_={},c=0;c<b;c++)p=a[c],h=p.selector+" ",_[h]===void 0&&(_[h]=p.needsContext?u(h,this).index(O)>-1:u.find(h,this,null,[O]).length),_[h]&&m.push(p);m.length&&A.push({elem:O,handlers:m})}}return O=this,b<a.length&&A.push({elem:O,handlers:a.slice(b)}),A},addProp:function(i,a){Object.defineProperty(u.Event.prototype,i,{enumerable:!0,configurable:!0,get:C(a)?function(){if(this.originalEvent)return a(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[i]},set:function(c){Object.defineProperty(this,i,{enumerable:!0,configurable:!0,writable:!0,value:c})}})},fix:function(i){return i[u.expando]?i:new u.Event(i)},special:{load:{noBubble:!0},click:{setup:function(i){var a=this||i;return Ot.test(a.type)&&a.click&&G(a,"input")&&Ht(a,"click",!0),!1},trigger:function(i){var a=this||i;return Ot.test(a.type)&&a.click&&G(a,"input")&&Ht(a,"click"),!0},_default:function(i){var a=i.target;return Ot.test(a.type)&&a.click&&G(a,"input")&&te.get(a,"click")||G(a,"a")}},beforeunload:{postDispatch:function(i){i.result!==void 0&&i.originalEvent&&(i.originalEvent.returnValue=i.result)}}}};function Ht(i,a,c){if(!c){te.get(i,a)===void 0&&u.event.add(i,a,vt);return}te.set(i,a,!1),u.event.add(i,a,{namespace:!1,handler:function(p){var h,m=te.get(this,a);if(p.isTrigger&1&&this[a]){if(m)(u.event.special[a]||{}).delegateType&&p.stopPropagation();else if(m=s.call(arguments),te.set(this,a,m),this[a](),h=te.get(this,a),te.set(this,a,!1),m!==h)return p.stopImmediatePropagation(),p.preventDefault(),h}else m&&(te.set(this,a,u.event.trigger(m[0],m.slice(1),this)),p.stopPropagation(),p.isImmediatePropagationStopped=vt)}})}u.removeEvent=function(i,a,c){i.removeEventListener&&i.removeEventListener(a,c)},u.Event=function(i,a){if(!(this instanceof u.Event))return new u.Event(i,a);i&&i.type?(this.originalEvent=i,this.type=i.type,this.isDefaultPrevented=i.defaultPrevented||i.defaultPrevented===void 0&&i.returnValue===!1?vt:bt,this.target=i.target&&i.target.nodeType===3?i.target.parentNode:i.target,this.currentTarget=i.currentTarget,this.relatedTarget=i.relatedTarget):this.type=i,a&&u.extend(this,a),this.timeStamp=i&&i.timeStamp||Date.now(),this[u.expando]=!0},u.Event.prototype={constructor:u.Event,isDefaultPrevented:bt,isPropagationStopped:bt,isImmediatePropagationStopped:bt,isSimulated:!1,preventDefault:function(){var i=this.originalEvent;this.isDefaultPrevented=vt,i&&!this.isSimulated&&i.preventDefault()},stopPropagation:function(){var i=this.originalEvent;this.isPropagationStopped=vt,i&&!this.isSimulated&&i.stopPropagation()},stopImmediatePropagation:function(){var i=this.originalEvent;this.isImmediatePropagationStopped=vt,i&&!this.isSimulated&&i.stopImmediatePropagation(),this.stopPropagation()}},u.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},u.event.addProp),u.each({focus:"focusin",blur:"focusout"},function(i,a){function c(p){if(D.documentMode){var h=te.get(this,"handle"),m=u.event.fix(p);m.type=p.type==="focusin"?"focus":"blur",m.isSimulated=!0,h(p),m.target===m.currentTarget&&h(m)}else u.event.simulate(a,p.target,u.event.fix(p))}u.event.special[i]={setup:function(){var p;if(Ht(this,i,!0),D.documentMode)p=te.get(this,a),p||this.addEventListener(a,c),te.set(this,a,(p||0)+1);else return!1},trigger:function(){return Ht(this,i),!0},teardown:function(){var p;if(D.documentMode)p=te.get(this,a)-1,p?te.set(this,a,p):(this.removeEventListener(a,c),te.remove(this,a));else return!1},_default:function(p){return te.get(p.target,i)},delegateType:a},u.event.special[a]={setup:function(){var p=this.ownerDocument||this.document||this,h=D.documentMode?this:p,m=te.get(h,a);m||(D.documentMode?this.addEventListener(a,c):p.addEventListener(i,c,!0)),te.set(h,a,(m||0)+1)},teardown:function(){var p=this.ownerDocument||this.document||this,h=D.documentMode?this:p,m=te.get(h,a)-1;m?te.set(h,a,m):(D.documentMode?this.removeEventListener(a,c):p.removeEventListener(i,c,!0),te.remove(h,a))}}}),u.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(i,a){u.event.special[i]={delegateType:a,bindType:a,handle:function(c){var p,h=this,m=c.relatedTarget,_=c.handleObj;return(!m||m!==h&&!u.contains(h,m))&&(c.type=_.origType,p=_.handler.apply(this,arguments),c.type=a),p}}}),u.fn.extend({on:function(i,a,c,p){return Xt(this,i,a,c,p)},one:function(i,a,c,p){return Xt(this,i,a,c,p,1)},off:function(i,a,c){var p,h;if(i&&i.preventDefault&&i.handleObj)return p=i.handleObj,u(i.delegateTarget).off(p.namespace?p.origType+"."+p.namespace:p.origType,p.selector,p.handler),this;if(typeof i=="object"){for(h in i)this.off(h,a,i[h]);return this}return(a===!1||typeof a=="function")&&(c=a,a=void 0),c===!1&&(c=bt),this.each(function(){u.event.remove(this,i,c,a)})}});var en=/<script|<style|<link/i,tn=/checked\s*(?:[^=]|=\s*.checked.)/i,rn=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Tr(i,a){return G(i,"table")&&G(a.nodeType!==11?a:a.firstChild,"tr")&&u(i).children("tbody")[0]||i}function nn(i){return i.type=(i.getAttribute("type")!==null)+"/"+i.type,i}function on(i){return(i.type||"").slice(0,5)==="true/"?i.type=i.type.slice(5):i.removeAttribute("type"),i}function wr(i,a){var c,p,h,m,_,A,b;if(a.nodeType===1){if(te.hasData(i)&&(m=te.get(i),b=m.events,b)){te.remove(a,"handle events");for(h in b)for(c=0,p=b[h].length;c<p;c++)u.event.add(a,h,b[h][c])}De.hasData(i)&&(_=De.access(i),A=u.extend({},_),De.set(a,A))}}function sn(i,a){var c=a.nodeName.toLowerCase();c==="input"&&Ot.test(i.type)?a.checked=i.checked:(c==="input"||c==="textarea")&&(a.defaultValue=i.defaultValue)}function At(i,a,c,p){a=l(a);var h,m,_,A,b,O,L=0,k=i.length,R=k-1,W=a[0],ae=C(W);if(ae||k>1&&typeof W=="string"&&!w.checkClone&&tn.test(W))return i.each(function(_e){var de=i.eq(_e);ae&&(a[0]=W.call(this,_e,de.html())),At(de,a,c,p)});if(k&&(h=Ar(a,i[0].ownerDocument,!1,i,p),m=h.firstChild,h.childNodes.length===1&&(h=m),m||p)){for(_=u.map(ke(h,"script"),nn),A=_.length;L<k;L++)b=h,L!==R&&(b=u.clone(b,!0,!0),A&&u.merge(_,ke(b,"script"))),c.call(i[L],b,L);if(A)for(O=_[_.length-1].ownerDocument,u.map(_,on),L=0;L<A;L++)b=_[L],br.test(b.type||"")&&!te.access(b,"globalEval")&&u.contains(O,b)&&(b.src&&(b.type||"").toLowerCase()!=="module"?u._evalUrl&&!b.noModule&&u._evalUrl(b.src,{nonce:b.nonce||b.getAttribute("nonce")},O):B(b.textContent.replace(rn,""),b,O))}return i}function $r(i,a,c){for(var p,h=a?u.filter(a,i):i,m=0;(p=h[m])!=null;m++)!c&&p.nodeType===1&&u.cleanData(ke(p)),p.parentNode&&(c&&_t(p)&&zt(ke(p,"script")),p.parentNode.removeChild(p));return i}u.extend({htmlPrefilter:function(i){return i},clone:function(i,a,c){var p,h,m,_,A=i.cloneNode(!0),b=_t(i);if(!w.noCloneChecked&&(i.nodeType===1||i.nodeType===11)&&!u.isXMLDoc(i))for(_=ke(A),m=ke(i),p=0,h=m.length;p<h;p++)sn(m[p],_[p]);if(a)if(c)for(m=m||ke(i),_=_||ke(A),p=0,h=m.length;p<h;p++)wr(m[p],_[p]);else wr(i,A);return _=ke(A,"script"),_.length>0&&zt(_,!b&&ke(i,"script")),A},cleanData:function(i){for(var a,c,p,h=u.event.special,m=0;(c=i[m])!==void 0;m++)if(ot(c)){if(a=c[te.expando]){if(a.events)for(p in a.events)h[p]?u.event.remove(c,p):u.removeEvent(c,p,a.handle);c[te.expando]=void 0}c[De.expando]&&(c[De.expando]=void 0)}}}),u.fn.extend({detach:function(i){return $r(this,i,!0)},remove:function(i){return $r(this,i)},text:function(i){return qe(this,function(a){return a===void 0?u.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=a)})},null,i,arguments.length)},append:function(){return At(this,arguments,function(i){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var a=Tr(this,i);a.appendChild(i)}})},prepend:function(){return At(this,arguments,function(i){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var a=Tr(this,i);a.insertBefore(i,a.firstChild)}})},before:function(){return At(this,arguments,function(i){this.parentNode&&this.parentNode.insertBefore(i,this)})},after:function(){return At(this,arguments,function(i){this.parentNode&&this.parentNode.insertBefore(i,this.nextSibling)})},empty:function(){for(var i,a=0;(i=this[a])!=null;a++)i.nodeType===1&&(u.cleanData(ke(i,!1)),i.textContent="");return this},clone:function(i,a){return i=i??!1,a=a??i,this.map(function(){return u.clone(this,i,a)})},html:function(i){return qe(this,function(a){var c=this[0]||{},p=0,h=this.length;if(a===void 0&&c.nodeType===1)return c.innerHTML;if(typeof a=="string"&&!en.test(a)&&!Be[(vr.exec(a)||["",""])[1].toLowerCase()]){a=u.htmlPrefilter(a);try{for(;p<h;p++)c=this[p]||{},c.nodeType===1&&(u.cleanData(ke(c,!1)),c.innerHTML=a);c=0}catch{}}c&&this.empty().append(a)},null,i,arguments.length)},replaceWith:function(){var i=[];return At(this,arguments,function(a){var c=this.parentNode;u.inArray(this,i)<0&&(u.cleanData(ke(this)),c&&c.replaceChild(a,this))},i)}}),u.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(i,a){u.fn[i]=function(c){for(var p,h=[],m=u(c),_=m.length-1,A=0;A<=_;A++)p=A===_?this:this.clone(!0),u(m[A])[a](p),f.apply(h,p.get());return this.pushStack(h)}});var Qt=new RegExp("^("+Er+")(?!px)[a-z%]+$","i"),Jt=/^--/,Ft=function(i){var a=i.ownerDocument.defaultView;return(!a||!a.opener)&&(a=e),a.getComputedStyle(i)},Or=function(i,a,c){var p,h,m={};for(h in a)m[h]=i.style[h],i.style[h]=a[h];p=c.call(i);for(h in a)i.style[h]=m[h];return p},an=new RegExp(rt.join("|"),"i");(function(){function i(){if(O){b.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",O.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",ft.appendChild(b).appendChild(O);var L=e.getComputedStyle(O);c=L.top!=="1%",A=a(L.marginLeft)===12,O.style.right="60%",m=a(L.right)===36,p=a(L.width)===36,O.style.position="absolute",h=a(O.offsetWidth/3)===12,ft.removeChild(b),O=null}}function a(L){return Math.round(parseFloat(L))}var c,p,h,m,_,A,b=D.createElement("div"),O=D.createElement("div");O.style&&(O.style.backgroundClip="content-box",O.cloneNode(!0).style.backgroundClip="",w.clearCloneStyle=O.style.backgroundClip==="content-box",u.extend(w,{boxSizingReliable:function(){return i(),p},pixelBoxStyles:function(){return i(),m},pixelPosition:function(){return i(),c},reliableMarginLeft:function(){return i(),A},scrollboxSize:function(){return i(),h},reliableTrDimensions:function(){var L,k,R,W;return _==null&&(L=D.createElement("table"),k=D.createElement("tr"),R=D.createElement("div"),L.style.cssText="position:absolute;left:-11111px;border-collapse:separate",k.style.cssText="box-sizing:content-box;border:1px solid",k.style.height="1px",R.style.height="9px",R.style.display="block",ft.appendChild(L).appendChild(k).appendChild(R),W=e.getComputedStyle(k),_=parseInt(W.height,10)+parseInt(W.borderTopWidth,10)+parseInt(W.borderBottomWidth,10)===k.offsetHeight,ft.removeChild(L)),_}}))})();function Ct(i,a,c){var p,h,m,_,A=Jt.test(a),b=i.style;return c=c||Ft(i),c&&(_=c.getPropertyValue(a)||c[a],A&&_&&(_=_.replace(oe,"$1")||void 0),_===""&&!_t(i)&&(_=u.style(i,a)),!w.pixelBoxStyles()&&Qt.test(_)&&an.test(a)&&(p=b.width,h=b.minWidth,m=b.maxWidth,b.minWidth=b.maxWidth=b.width=_,_=c.width,b.width=p,b.minWidth=h,b.maxWidth=m)),_!==void 0?_+"":_}function Cr(i,a){return{get:function(){if(i()){delete this.get;return}return(this.get=a).apply(this,arguments)}}}var xr=["Webkit","Moz","ms"],Nr=D.createElement("div").style,Rr={};function ln(i){for(var a=i[0].toUpperCase()+i.slice(1),c=xr.length;c--;)if(i=xr[c]+a,i in Nr)return i}function Zt(i){var a=u.cssProps[i]||Rr[i];return a||(i in Nr?i:Rr[i]=ln(i)||i)}var cn=/^(none|table(?!-c[ea]).+)/,un={position:"absolute",visibility:"hidden",display:"block"},Dr={letterSpacing:"0",fontWeight:"400"};function Pr(i,a,c){var p=$t.exec(a);return p?Math.max(0,p[2]-(c||0))+(p[3]||"px"):a}function er(i,a,c,p,h,m){var _=a==="width"?1:0,A=0,b=0,O=0;if(c===(p?"border":"content"))return 0;for(;_<4;_+=2)c==="margin"&&(O+=u.css(i,c+rt[_],!0,h)),p?(c==="content"&&(b-=u.css(i,"padding"+rt[_],!0,h)),c!=="margin"&&(b-=u.css(i,"border"+rt[_]+"Width",!0,h))):(b+=u.css(i,"padding"+rt[_],!0,h),c!=="padding"?b+=u.css(i,"border"+rt[_]+"Width",!0,h):A+=u.css(i,"border"+rt[_]+"Width",!0,h));return!p&&m>=0&&(b+=Math.max(0,Math.ceil(i["offset"+a[0].toUpperCase()+a.slice(1)]-m-b-A-.5))||0),b+O}function Ir(i,a,c){var p=Ft(i),h=!w.boxSizingReliable()||c,m=h&&u.css(i,"boxSizing",!1,p)==="border-box",_=m,A=Ct(i,a,p),b="offset"+a[0].toUpperCase()+a.slice(1);if(Qt.test(A)){if(!c)return A;A="auto"}return(!w.boxSizingReliable()&&m||!w.reliableTrDimensions()&&G(i,"tr")||A==="auto"||!parseFloat(A)&&u.css(i,"display",!1,p)==="inline")&&i.getClientRects().length&&(m=u.css(i,"boxSizing",!1,p)==="border-box",_=b in i,_&&(A=i[b])),A=parseFloat(A)||0,A+er(i,a,c||(m?"border":"content"),_,p,A)+"px"}u.extend({cssHooks:{opacity:{get:function(i,a){if(a){var c=Ct(i,"opacity");return c===""?"1":c}}}},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(i,a,c,p){if(!(!i||i.nodeType===3||i.nodeType===8||!i.style)){var h,m,_,A=Ve(a),b=Jt.test(a),O=i.style;if(b||(a=Zt(A)),_=u.cssHooks[a]||u.cssHooks[A],c!==void 0){if(m=typeof c,m==="string"&&(h=$t.exec(c))&&h[1]&&(c=_r(i,a,h),m="number"),c==null||c!==c)return;m==="number"&&!b&&(c+=h&&h[3]||(u.cssNumber[A]?"":"px")),!w.clearCloneStyle&&c===""&&a.indexOf("background")===0&&(O[a]="inherit"),(!_||!("set"in _)||(c=_.set(i,c,p))!==void 0)&&(b?O.setProperty(a,c):O[a]=c)}else return _&&"get"in _&&(h=_.get(i,!1,p))!==void 0?h:O[a]}},css:function(i,a,c,p){var h,m,_,A=Ve(a),b=Jt.test(a);return b||(a=Zt(A)),_=u.cssHooks[a]||u.cssHooks[A],_&&"get"in _&&(h=_.get(i,!0,c)),h===void 0&&(h=Ct(i,a,p)),h==="normal"&&a in Dr&&(h=Dr[a]),c===""||c?(m=parseFloat(h),c===!0||isFinite(m)?m||0:h):h}}),u.each(["height","width"],function(i,a){u.cssHooks[a]={get:function(c,p,h){if(p)return cn.test(u.css(c,"display"))&&(!c.getClientRects().length||!c.getBoundingClientRect().width)?Or(c,un,function(){return Ir(c,a,h)}):Ir(c,a,h)},set:function(c,p,h){var m,_=Ft(c),A=!w.scrollboxSize()&&_.position==="absolute",b=A||h,O=b&&u.css(c,"boxSizing",!1,_)==="border-box",L=h?er(c,a,h,O,_):0;return O&&A&&(L-=Math.ceil(c["offset"+a[0].toUpperCase()+a.slice(1)]-parseFloat(_[a])-er(c,a,"border",!1,_)-.5)),L&&(m=$t.exec(p))&&(m[3]||"px")!=="px"&&(c.style[a]=p,p=u.css(c,a)),Pr(c,p,L)}}}),u.cssHooks.marginLeft=Cr(w.reliableMarginLeft,function(i,a){if(a)return(parseFloat(Ct(i,"marginLeft"))||i.getBoundingClientRect().left-Or(i,{marginLeft:0},function(){return i.getBoundingClientRect().left}))+"px"}),u.each({margin:"",padding:"",border:"Width"},function(i,a){u.cssHooks[i+a]={expand:function(c){for(var p=0,h={},m=typeof c=="string"?c.split(" "):[c];p<4;p++)h[i+rt[p]+a]=m[p]||m[p-2]||m[0];return h}},i!=="margin"&&(u.cssHooks[i+a].set=Pr)}),u.fn.extend({css:function(i,a){return qe(this,function(c,p,h){var m,_,A={},b=0;if(Array.isArray(p)){for(m=Ft(c),_=p.length;b<_;b++)A[p[b]]=u.css(c,p[b],!1,m);return A}return h!==void 0?u.style(c,p,h):u.css(c,p)},i,a,arguments.length>1)}});function je(i,a,c,p,h){return new je.prototype.init(i,a,c,p,h)}u.Tween=je,je.prototype={constructor:je,init:function(i,a,c,p,h,m){this.elem=i,this.prop=c,this.easing=h||u.easing._default,this.options=a,this.start=this.now=this.cur(),this.end=p,this.unit=m||(u.cssNumber[c]?"":"px")},cur:function(){var i=je.propHooks[this.prop];return i&&i.get?i.get(this):je.propHooks._default.get(this)},run:function(i){var a,c=je.propHooks[this.prop];return this.options.duration?this.pos=a=u.easing[this.easing](i,this.options.duration*i,0,1,this.options.duration):this.pos=a=i,this.now=(this.end-this.start)*a+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),c&&c.set?c.set(this):je.propHooks._default.set(this),this}},je.prototype.init.prototype=je.prototype,je.propHooks={_default:{get:function(i){var a;return i.elem.nodeType!==1||i.elem[i.prop]!=null&&i.elem.style[i.prop]==null?i.elem[i.prop]:(a=u.css(i.elem,i.prop,""),!a||a==="auto"?0:a)},set:function(i){u.fx.step[i.prop]?u.fx.step[i.prop](i):i.elem.nodeType===1&&(u.cssHooks[i.prop]||i.elem.style[Zt(i.prop)]!=null)?u.style(i.elem,i.prop,i.now+i.unit):i.elem[i.prop]=i.now}}},je.propHooks.scrollTop=je.propHooks.scrollLeft={set:function(i){i.elem.nodeType&&i.elem.parentNode&&(i.elem[i.prop]=i.now)}},u.easing={linear:function(i){return i},swing:function(i){return .5-Math.cos(i*Math.PI)/2},_default:"swing"},u.fx=je.prototype.init,u.fx.step={};var St,Vt,fn=/^(?:toggle|show|hide)$/,pn=/queueHooks$/;function tr(){Vt&&(D.hidden===!1&&e.requestAnimationFrame?e.requestAnimationFrame(tr):e.setTimeout(tr,u.fx.interval),u.fx.tick())}function Lr(){return e.setTimeout(function(){St=void 0}),St=Date.now()}function Bt(i,a){var c,p=0,h={height:i};for(a=a?1:0;p<4;p+=2-a)c=rt[p],h["margin"+c]=h["padding"+c]=i;return a&&(h.opacity=h.width=i),h}function Mr(i,a,c){for(var p,h=(Ue.tweeners[a]||[]).concat(Ue.tweeners["*"]),m=0,_=h.length;m<_;m++)if(p=h[m].call(c,a,i))return p}function dn(i,a,c){var p,h,m,_,A,b,O,L,k="width"in a||"height"in a,R=this,W={},ae=i.style,_e=i.nodeType&&jt(i),de=te.get(i,"fxshow");c.queue||(_=u._queueHooks(i,"fx"),_.unqueued==null&&(_.unqueued=0,A=_.empty.fire,_.empty.fire=function(){_.unqueued||A()}),_.unqueued++,R.always(function(){R.always(function(){_.unqueued--,u.queue(i,"fx").length||_.empty.fire()})}));for(p in a)if(h=a[p],fn.test(h)){if(delete a[p],m=m||h==="toggle",h===(_e?"hide":"show"))if(h==="show"&&de&&de[p]!==void 0)_e=!0;else continue;W[p]=de&&de[p]||u.style(i,p)}if(b=!u.isEmptyObject(a),!(!b&&u.isEmptyObject(W))){k&&i.nodeType===1&&(c.overflow=[ae.overflow,ae.overflowX,ae.overflowY],O=de&&de.display,O==null&&(O=te.get(i,"display")),L=u.css(i,"display"),L==="none"&&(O?L=O:(yt([i],!0),O=i.style.display||O,L=u.css(i,"display"),yt([i]))),(L==="inline"||L==="inline-block"&&O!=null)&&u.css(i,"float")==="none"&&(b||(R.done(function(){ae.display=O}),O==null&&(L=ae.display,O=L==="none"?"":L)),ae.display="inline-block")),c.overflow&&(ae.overflow="hidden",R.always(function(){ae.overflow=c.overflow[0],ae.overflowX=c.overflow[1],ae.overflowY=c.overflow[2]})),b=!1;for(p in W)b||(de?"hidden"in de&&(_e=de.hidden):de=te.access(i,"fxshow",{display:O}),m&&(de.hidden=!_e),_e&&yt([i],!0),R.done(function(){_e||yt([i]),te.remove(i,"fxshow");for(p in W)u.style(i,p,W[p])})),b=Mr(_e?de[p]:0,p,R),p in de||(de[p]=b.start,_e&&(b.end=b.start,b.start=0))}}function hn(i,a){var c,p,h,m,_;for(c in i)if(p=Ve(c),h=a[p],m=i[c],Array.isArray(m)&&(h=m[1],m=i[c]=m[0]),c!==p&&(i[p]=m,delete i[c]),_=u.cssHooks[p],_&&"expand"in _){m=_.expand(m),delete i[p];for(c in m)c in i||(i[c]=m[c],a[c]=h)}else a[p]=h}function Ue(i,a,c){var p,h,m=0,_=Ue.prefilters.length,A=u.Deferred().always(function(){delete b.elem}),b=function(){if(h)return!1;for(var k=St||Lr(),R=Math.max(0,O.startTime+O.duration-k),W=R/O.duration||0,ae=1-W,_e=0,de=O.tweens.length;_e<de;_e++)O.tweens[_e].run(ae);return A.notifyWith(i,[O,ae,R]),ae<1&&de?R:(de||A.notifyWith(i,[O,1,0]),A.resolveWith(i,[O]),!1)},O=A.promise({elem:i,props:u.extend({},a),opts:u.extend(!0,{specialEasing:{},easing:u.easing._default},c),originalProperties:a,originalOptions:c,startTime:St||Lr(),duration:c.duration,tweens:[],createTween:function(k,R){var W=u.Tween(i,O.opts,k,R,O.opts.specialEasing[k]||O.opts.easing);return O.tweens.push(W),W},stop:function(k){var R=0,W=k?O.tweens.length:0;if(h)return this;for(h=!0;R<W;R++)O.tweens[R].run(1);return k?(A.notifyWith(i,[O,1,0]),A.resolveWith(i,[O,k])):A.rejectWith(i,[O,k]),this}}),L=O.props;for(hn(L,O.opts.specialEasing);m<_;m++)if(p=Ue.prefilters[m].call(O,i,L,O.opts),p)return C(p.stop)&&(u._queueHooks(O.elem,O.opts.queue).stop=p.stop.bind(p)),p;return u.map(L,Mr,O),C(O.opts.start)&&O.opts.start.call(i,O),O.progress(O.opts.progress).done(O.opts.done,O.opts.complete).fail(O.opts.fail).always(O.opts.always),u.fx.timer(u.extend(b,{elem:i,anim:O,queue:O.opts.queue})),O}u.Animation=u.extend(Ue,{tweeners:{"*":[function(i,a){var c=this.createTween(i,a);return _r(c.elem,i,$t.exec(a),c),c}]},tweener:function(i,a){C(i)?(a=i,i=["*"]):i=i.match(Oe);for(var c,p=0,h=i.length;p<h;p++)c=i[p],Ue.tweeners[c]=Ue.tweeners[c]||[],Ue.tweeners[c].unshift(a)},prefilters:[dn],prefilter:function(i,a){a?Ue.prefilters.unshift(i):Ue.prefilters.push(i)}}),u.speed=function(i,a,c){var p=i&&typeof i=="object"?u.extend({},i):{complete:c||!c&&a||C(i)&&i,duration:i,easing:c&&a||a&&!C(a)&&a};return u.fx.off?p.duration=0:typeof p.duration!="number"&&(p.duration in u.fx.speeds?p.duration=u.fx.speeds[p.duration]:p.duration=u.fx.speeds._default),(p.queue==null||p.queue===!0)&&(p.queue="fx"),p.old=p.complete,p.complete=function(){C(p.old)&&p.old.call(this),p.queue&&u.dequeue(this,p.queue)},p},u.fn.extend({fadeTo:function(i,a,c,p){return this.filter(jt).css("opacity",0).show().end().animate({opacity:a},i,c,p)},animate:function(i,a,c,p){var h=u.isEmptyObject(i),m=u.speed(a,c,p),_=function(){var A=Ue(this,u.extend({},i),m);(h||te.get(this,"finish"))&&A.stop(!0)};return _.finish=_,h||m.queue===!1?this.each(_):this.queue(m.queue,_)},stop:function(i,a,c){var p=function(h){var m=h.stop;delete h.stop,m(c)};return typeof i!="string"&&(c=a,a=i,i=void 0),a&&this.queue(i||"fx",[]),this.each(function(){var h=!0,m=i!=null&&i+"queueHooks",_=u.timers,A=te.get(this);if(m)A[m]&&A[m].stop&&p(A[m]);else for(m in A)A[m]&&A[m].stop&&pn.test(m)&&p(A[m]);for(m=_.length;m--;)_[m].elem===this&&(i==null||_[m].queue===i)&&(_[m].anim.stop(c),h=!1,_.splice(m,1));(h||!c)&&u.dequeue(this,i)})},finish:function(i){return i!==!1&&(i=i||"fx"),this.each(function(){var a,c=te.get(this),p=c[i+"queue"],h=c[i+"queueHooks"],m=u.timers,_=p?p.length:0;for(c.finish=!0,u.queue(this,i,[]),h&&h.stop&&h.stop.call(this,!0),a=m.length;a--;)m[a].elem===this&&m[a].queue===i&&(m[a].anim.stop(!0),m.splice(a,1));for(a=0;a<_;a++)p[a]&&p[a].finish&&p[a].finish.call(this);delete c.finish})}}),u.each(["toggle","show","hide"],function(i,a){var c=u.fn[a];u.fn[a]=function(p,h,m){return p==null||typeof p=="boolean"?c.apply(this,arguments):this.animate(Bt(a,!0),p,h,m)}}),u.each({slideDown:Bt("show"),slideUp:Bt("hide"),slideToggle:Bt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(i,a){u.fn[i]=function(c,p,h){return this.animate(a,c,p,h)}}),u.timers=[],u.fx.tick=function(){var i,a=0,c=u.timers;for(St=Date.now();a<c.length;a++)i=c[a],!i()&&c[a]===i&&c.splice(a--,1);c.length||u.fx.stop(),St=void 0},u.fx.timer=function(i){u.timers.push(i),u.fx.start()},u.fx.interval=13,u.fx.start=function(){Vt||(Vt=!0,tr())},u.fx.stop=function(){Vt=null},u.fx.speeds={slow:600,fast:200,_default:400},u.fn.delay=function(i,a){return i=u.fx&&u.fx.speeds[i]||i,a=a||"fx",this.queue(a,function(c,p){var h=e.setTimeout(c,i);p.stop=function(){e.clearTimeout(h)}})},function(){var i=D.createElement("input"),a=D.createElement("select"),c=a.appendChild(D.createElement("option"));i.type="checkbox",w.checkOn=i.value!=="",w.optSelected=c.selected,i=D.createElement("input"),i.value="t",i.type="radio",w.radioValue=i.value==="t"}();var kr,xt=u.expr.attrHandle;u.fn.extend({attr:function(i,a){return qe(this,u.attr,i,a,arguments.length>1)},removeAttr:function(i){return this.each(function(){u.removeAttr(this,i)})}}),u.extend({attr:function(i,a,c){var p,h,m=i.nodeType;if(!(m===3||m===8||m===2)){if(typeof i.getAttribute>"u")return u.prop(i,a,c);if((m!==1||!u.isXMLDoc(i))&&(h=u.attrHooks[a.toLowerCase()]||(u.expr.match.bool.test(a)?kr:void 0)),c!==void 0){if(c===null){u.removeAttr(i,a);return}return h&&"set"in h&&(p=h.set(i,c,a))!==void 0?p:(i.setAttribute(a,c+""),c)}return h&&"get"in h&&(p=h.get(i,a))!==null?p:(p=u.find.attr(i,a),p??void 0)}},attrHooks:{type:{set:function(i,a){if(!w.radioValue&&a==="radio"&&G(i,"input")){var c=i.value;return i.setAttribute("type",a),c&&(i.value=c),a}}}},removeAttr:function(i,a){var c,p=0,h=a&&a.match(Oe);if(h&&i.nodeType===1)for(;c=h[p++];)i.removeAttribute(c)}}),kr={set:function(i,a,c){return a===!1?u.removeAttr(i,c):i.setAttribute(c,c),c}},u.each(u.expr.match.bool.source.match(/\w+/g),function(i,a){var c=xt[a]||u.find.attr;xt[a]=function(p,h,m){var _,A,b=h.toLowerCase();return m||(A=xt[b],xt[b]=_,_=c(p,h,m)!=null?b:null,xt[b]=A),_}});var mn=/^(?:input|select|textarea|button)$/i,gn=/^(?:a|area)$/i;u.fn.extend({prop:function(i,a){return qe(this,u.prop,i,a,arguments.length>1)},removeProp:function(i){return this.each(function(){delete this[u.propFix[i]||i]})}}),u.extend({prop:function(i,a,c){var p,h,m=i.nodeType;if(!(m===3||m===8||m===2))return(m!==1||!u.isXMLDoc(i))&&(a=u.propFix[a]||a,h=u.propHooks[a]),c!==void 0?h&&"set"in h&&(p=h.set(i,c,a))!==void 0?p:i[a]=c:h&&"get"in h&&(p=h.get(i,a))!==null?p:i[a]},propHooks:{tabIndex:{get:function(i){var a=u.find.attr(i,"tabindex");return a?parseInt(a,10):mn.test(i.nodeName)||gn.test(i.nodeName)&&i.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),w.optSelected||(u.propHooks.selected={get:function(i){var a=i.parentNode;return a&&a.parentNode&&a.parentNode.selectedIndex,null},set:function(i){var a=i.parentNode;a&&(a.selectedIndex,a.parentNode&&a.parentNode.selectedIndex)}}),u.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){u.propFix[this.toLowerCase()]=this});function pt(i){var a=i.match(Oe)||[];return a.join(" ")}function dt(i){return i.getAttribute&&i.getAttribute("class")||""}function rr(i){return Array.isArray(i)?i:typeof i=="string"?i.match(Oe)||[]:[]}u.fn.extend({addClass:function(i){var a,c,p,h,m,_;return C(i)?this.each(function(A){u(this).addClass(i.call(this,A,dt(this)))}):(a=rr(i),a.length?this.each(function(){if(p=dt(this),c=this.nodeType===1&&" "+pt(p)+" ",c){for(m=0;m<a.length;m++)h=a[m],c.indexOf(" "+h+" ")<0&&(c+=h+" ");_=pt(c),p!==_&&this.setAttribute("class",_)}}):this)},removeClass:function(i){var a,c,p,h,m,_;return C(i)?this.each(function(A){u(this).removeClass(i.call(this,A,dt(this)))}):arguments.length?(a=rr(i),a.length?this.each(function(){if(p=dt(this),c=this.nodeType===1&&" "+pt(p)+" ",c){for(m=0;m<a.length;m++)for(h=a[m];c.indexOf(" "+h+" ")>-1;)c=c.replace(" "+h+" "," ");_=pt(c),p!==_&&this.setAttribute("class",_)}}):this):this.attr("class","")},toggleClass:function(i,a){var c,p,h,m,_=typeof i,A=_==="string"||Array.isArray(i);return C(i)?this.each(function(b){u(this).toggleClass(i.call(this,b,dt(this),a),a)}):typeof a=="boolean"&&A?a?this.addClass(i):this.removeClass(i):(c=rr(i),this.each(function(){if(A)for(m=u(this),h=0;h<c.length;h++)p=c[h],m.hasClass(p)?m.removeClass(p):m.addClass(p);else(i===void 0||_==="boolean")&&(p=dt(this),p&&te.set(this,"__className__",p),this.setAttribute&&this.setAttribute("class",p||i===!1?"":te.get(this,"__className__")||""))}))},hasClass:function(i){var a,c,p=0;for(a=" "+i+" ";c=this[p++];)if(c.nodeType===1&&(" "+pt(dt(c))+" ").indexOf(a)>-1)return!0;return!1}});var En=/\r/g;u.fn.extend({val:function(i){var a,c,p,h=this[0];return arguments.length?(p=C(i),this.each(function(m){var _;this.nodeType===1&&(p?_=i.call(this,m,u(this).val()):_=i,_==null?_="":typeof _=="number"?_+="":Array.isArray(_)&&(_=u.map(_,function(A){return A==null?"":A+""})),a=u.valHooks[this.type]||u.valHooks[this.nodeName.toLowerCase()],(!a||!("set"in a)||a.set(this,_,"value")===void 0)&&(this.value=_))})):h?(a=u.valHooks[h.type]||u.valHooks[h.nodeName.toLowerCase()],a&&"get"in a&&(c=a.get(h,"value"))!==void 0?c:(c=h.value,typeof c=="string"?c.replace(En,""):c??"")):void 0}}),u.extend({valHooks:{option:{get:function(i){var a=u.find.attr(i,"value");return a??pt(u.text(i))}},select:{get:function(i){var a,c,p,h=i.options,m=i.selectedIndex,_=i.type==="select-one",A=_?null:[],b=_?m+1:h.length;for(m<0?p=b:p=_?m:0;p<b;p++)if(c=h[p],(c.selected||p===m)&&!c.disabled&&(!c.parentNode.disabled||!G(c.parentNode,"optgroup"))){if(a=u(c).val(),_)return a;A.push(a)}return A},set:function(i,a){for(var c,p,h=i.options,m=u.makeArray(a),_=h.length;_--;)p=h[_],(p.selected=u.inArray(u.valHooks.option.get(p),m)>-1)&&(c=!0);return c||(i.selectedIndex=-1),m}}}}),u.each(["radio","checkbox"],function(){u.valHooks[this]={set:function(i,a){if(Array.isArray(a))return i.checked=u.inArray(u(i).val(),a)>-1}},w.checkOn||(u.valHooks[this].get=function(i){return i.getAttribute("value")===null?"on":i.value})});var Nt=e.location,jr={guid:Date.now()},nr=/\?/;u.parseXML=function(i){var a,c;if(!i||typeof i!="string")return null;try{a=new e.DOMParser().parseFromString(i,"text/xml")}catch{}return c=a&&a.getElementsByTagName("parsererror")[0],(!a||c)&&u.error("Invalid XML: "+(c?u.map(c.childNodes,function(p){return p.textContent}).join(`
|
||
`):i)),a};var Hr=/^(?:focusinfocus|focusoutblur)$/,Fr=function(i){i.stopPropagation()};u.extend(u.event,{trigger:function(i,a,c,p){var h,m,_,A,b,O,L,k,R=[c||D],W=y.call(i,"type")?i.type:i,ae=y.call(i,"namespace")?i.namespace.split("."):[];if(m=k=_=c=c||D,!(c.nodeType===3||c.nodeType===8)&&!Hr.test(W+u.event.triggered)&&(W.indexOf(".")>-1&&(ae=W.split("."),W=ae.shift(),ae.sort()),b=W.indexOf(":")<0&&"on"+W,i=i[u.expando]?i:new u.Event(W,typeof i=="object"&&i),i.isTrigger=p?2:3,i.namespace=ae.join("."),i.rnamespace=i.namespace?new RegExp("(^|\\.)"+ae.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,i.result=void 0,i.target||(i.target=c),a=a==null?[i]:u.makeArray(a,[i]),L=u.event.special[W]||{},!(!p&&L.trigger&&L.trigger.apply(c,a)===!1))){if(!p&&!L.noBubble&&!H(c)){for(A=L.delegateType||W,Hr.test(A+W)||(m=m.parentNode);m;m=m.parentNode)R.push(m),_=m;_===(c.ownerDocument||D)&&R.push(_.defaultView||_.parentWindow||e)}for(h=0;(m=R[h++])&&!i.isPropagationStopped();)k=m,i.type=h>1?A:L.bindType||W,O=(te.get(m,"events")||Object.create(null))[i.type]&&te.get(m,"handle"),O&&O.apply(m,a),O=b&&m[b],O&&O.apply&&ot(m)&&(i.result=O.apply(m,a),i.result===!1&&i.preventDefault());return i.type=W,!p&&!i.isDefaultPrevented()&&(!L._default||L._default.apply(R.pop(),a)===!1)&&ot(c)&&b&&C(c[W])&&!H(c)&&(_=c[b],_&&(c[b]=null),u.event.triggered=W,i.isPropagationStopped()&&k.addEventListener(W,Fr),c[W](),i.isPropagationStopped()&&k.removeEventListener(W,Fr),u.event.triggered=void 0,_&&(c[b]=_)),i.result}},simulate:function(i,a,c){var p=u.extend(new u.Event,c,{type:i,isSimulated:!0});u.event.trigger(p,null,a)}}),u.fn.extend({trigger:function(i,a){return this.each(function(){u.event.trigger(i,a,this)})},triggerHandler:function(i,a){var c=this[0];if(c)return u.event.trigger(i,a,c,!0)}});var _n=/\[\]$/,Vr=/\r?\n/g,yn=/^(?:submit|button|image|reset|file)$/i,vn=/^(?:input|select|textarea|keygen)/i;function ir(i,a,c,p){var h;if(Array.isArray(a))u.each(a,function(m,_){c||_n.test(i)?p(i,_):ir(i+"["+(typeof _=="object"&&_!=null?m:"")+"]",_,c,p)});else if(!c&&Y(a)==="object")for(h in a)ir(i+"["+h+"]",a[h],c,p);else p(i,a)}u.param=function(i,a){var c,p=[],h=function(m,_){var A=C(_)?_():_;p[p.length]=encodeURIComponent(m)+"="+encodeURIComponent(A??"")};if(i==null)return"";if(Array.isArray(i)||i.jquery&&!u.isPlainObject(i))u.each(i,function(){h(this.name,this.value)});else for(c in i)ir(c,i[c],a,h);return p.join("&")},u.fn.extend({serialize:function(){return u.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var i=u.prop(this,"elements");return i?u.makeArray(i):this}).filter(function(){var i=this.type;return this.name&&!u(this).is(":disabled")&&vn.test(this.nodeName)&&!yn.test(i)&&(this.checked||!Ot.test(i))}).map(function(i,a){var c=u(this).val();return c==null?null:Array.isArray(c)?u.map(c,function(p){return{name:a.name,value:p.replace(Vr,`\r
|
||
`)}}):{name:a.name,value:c.replace(Vr,`\r
|
||
`)}}).get()}});var bn=/%20/g,An=/#.*$/,Sn=/([?&])_=[^&]*/,Tn=/^(.*?):[ \t]*([^\r\n]*)$/mg,wn=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,$n=/^(?:GET|HEAD)$/,On=/^\/\//,Br={},or={},Wr="*/".concat("*"),sr=D.createElement("a");sr.href=Nt.href;function Gr(i){return function(a,c){typeof a!="string"&&(c=a,a="*");var p,h=0,m=a.toLowerCase().match(Oe)||[];if(C(c))for(;p=m[h++];)p[0]==="+"?(p=p.slice(1)||"*",(i[p]=i[p]||[]).unshift(c)):(i[p]=i[p]||[]).push(c)}}function qr(i,a,c,p){var h={},m=i===or;function _(A){var b;return h[A]=!0,u.each(i[A]||[],function(O,L){var k=L(a,c,p);if(typeof k=="string"&&!m&&!h[k])return a.dataTypes.unshift(k),_(k),!1;if(m)return!(b=k)}),b}return _(a.dataTypes[0])||!h["*"]&&_("*")}function ar(i,a){var c,p,h=u.ajaxSettings.flatOptions||{};for(c in a)a[c]!==void 0&&((h[c]?i:p||(p={}))[c]=a[c]);return p&&u.extend(!0,i,p),i}function Cn(i,a,c){for(var p,h,m,_,A=i.contents,b=i.dataTypes;b[0]==="*";)b.shift(),p===void 0&&(p=i.mimeType||a.getResponseHeader("Content-Type"));if(p){for(h in A)if(A[h]&&A[h].test(p)){b.unshift(h);break}}if(b[0]in c)m=b[0];else{for(h in c){if(!b[0]||i.converters[h+" "+b[0]]){m=h;break}_||(_=h)}m=m||_}if(m)return m!==b[0]&&b.unshift(m),c[m]}function xn(i,a,c,p){var h,m,_,A,b,O={},L=i.dataTypes.slice();if(L[1])for(_ in i.converters)O[_.toLowerCase()]=i.converters[_];for(m=L.shift();m;)if(i.responseFields[m]&&(c[i.responseFields[m]]=a),!b&&p&&i.dataFilter&&(a=i.dataFilter(a,i.dataType)),b=m,m=L.shift(),m){if(m==="*")m=b;else if(b!=="*"&&b!==m){if(_=O[b+" "+m]||O["* "+m],!_){for(h in O)if(A=h.split(" "),A[1]===m&&(_=O[b+" "+A[0]]||O["* "+A[0]],_)){_===!0?_=O[h]:O[h]!==!0&&(m=A[0],L.unshift(A[1]));break}}if(_!==!0)if(_&&i.throws)a=_(a);else try{a=_(a)}catch(k){return{state:"parsererror",error:_?k:"No conversion from "+b+" to "+m}}}}return{state:"success",data:a}}u.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Nt.href,type:"GET",isLocal:wn.test(Nt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Wr,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":u.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(i,a){return a?ar(ar(i,u.ajaxSettings),a):ar(u.ajaxSettings,i)},ajaxPrefilter:Gr(Br),ajaxTransport:Gr(or),ajax:function(i,a){typeof i=="object"&&(a=i,i=void 0),a=a||{};var c,p,h,m,_,A,b,O,L,k,R=u.ajaxSetup({},a),W=R.context||R,ae=R.context&&(W.nodeType||W.jquery)?u(W):u.event,_e=u.Deferred(),de=u.Callbacks("once memory"),Pe=R.statusCode||{},Ne={},Ye={},ze="canceled",Ee={readyState:0,getResponseHeader:function(ye){var Ce;if(b){if(!m)for(m={};Ce=Tn.exec(h);)m[Ce[1].toLowerCase()+" "]=(m[Ce[1].toLowerCase()+" "]||[]).concat(Ce[2]);Ce=m[ye.toLowerCase()+" "]}return Ce==null?null:Ce.join(", ")},getAllResponseHeaders:function(){return b?h:null},setRequestHeader:function(ye,Ce){return b==null&&(ye=Ye[ye.toLowerCase()]=Ye[ye.toLowerCase()]||ye,Ne[ye]=Ce),this},overrideMimeType:function(ye){return b==null&&(R.mimeType=ye),this},statusCode:function(ye){var Ce;if(ye)if(b)Ee.always(ye[Ee.status]);else for(Ce in ye)Pe[Ce]=[Pe[Ce],ye[Ce]];return this},abort:function(ye){var Ce=ye||ze;return c&&c.abort(Ce),ht(0,Ce),this}};if(_e.promise(Ee),R.url=((i||R.url||Nt.href)+"").replace(On,Nt.protocol+"//"),R.type=a.method||a.type||R.method||R.type,R.dataTypes=(R.dataType||"*").toLowerCase().match(Oe)||[""],R.crossDomain==null){A=D.createElement("a");try{A.href=R.url,A.href=A.href,R.crossDomain=sr.protocol+"//"+sr.host!=A.protocol+"//"+A.host}catch{R.crossDomain=!0}}if(R.data&&R.processData&&typeof R.data!="string"&&(R.data=u.param(R.data,R.traditional)),qr(Br,R,a,Ee),b)return Ee;O=u.event&&R.global,O&&u.active++===0&&u.event.trigger("ajaxStart"),R.type=R.type.toUpperCase(),R.hasContent=!$n.test(R.type),p=R.url.replace(An,""),R.hasContent?R.data&&R.processData&&(R.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(R.data=R.data.replace(bn,"+")):(k=R.url.slice(p.length),R.data&&(R.processData||typeof R.data=="string")&&(p+=(nr.test(p)?"&":"?")+R.data,delete R.data),R.cache===!1&&(p=p.replace(Sn,"$1"),k=(nr.test(p)?"&":"?")+"_="+jr.guid+++k),R.url=p+k),R.ifModified&&(u.lastModified[p]&&Ee.setRequestHeader("If-Modified-Since",u.lastModified[p]),u.etag[p]&&Ee.setRequestHeader("If-None-Match",u.etag[p])),(R.data&&R.hasContent&&R.contentType!==!1||a.contentType)&&Ee.setRequestHeader("Content-Type",R.contentType),Ee.setRequestHeader("Accept",R.dataTypes[0]&&R.accepts[R.dataTypes[0]]?R.accepts[R.dataTypes[0]]+(R.dataTypes[0]!=="*"?", "+Wr+"; q=0.01":""):R.accepts["*"]);for(L in R.headers)Ee.setRequestHeader(L,R.headers[L]);if(R.beforeSend&&(R.beforeSend.call(W,Ee,R)===!1||b))return Ee.abort();if(ze="abort",de.add(R.complete),Ee.done(R.success),Ee.fail(R.error),c=qr(or,R,a,Ee),!c)ht(-1,"No Transport");else{if(Ee.readyState=1,O&&ae.trigger("ajaxSend",[Ee,R]),b)return Ee;R.async&&R.timeout>0&&(_=e.setTimeout(function(){Ee.abort("timeout")},R.timeout));try{b=!1,c.send(Ne,ht)}catch(ye){if(b)throw ye;ht(-1,ye)}}function ht(ye,Ce,Dt,cr){var Xe,Pt,Qe,st,at,We=Ce;b||(b=!0,_&&e.clearTimeout(_),c=void 0,h=cr||"",Ee.readyState=ye>0?4:0,Xe=ye>=200&&ye<300||ye===304,Dt&&(st=Cn(R,Ee,Dt)),!Xe&&u.inArray("script",R.dataTypes)>-1&&u.inArray("json",R.dataTypes)<0&&(R.converters["text script"]=function(){}),st=xn(R,st,Ee,Xe),Xe?(R.ifModified&&(at=Ee.getResponseHeader("Last-Modified"),at&&(u.lastModified[p]=at),at=Ee.getResponseHeader("etag"),at&&(u.etag[p]=at)),ye===204||R.type==="HEAD"?We="nocontent":ye===304?We="notmodified":(We=st.state,Pt=st.data,Qe=st.error,Xe=!Qe)):(Qe=We,(ye||!We)&&(We="error",ye<0&&(ye=0))),Ee.status=ye,Ee.statusText=(Ce||We)+"",Xe?_e.resolveWith(W,[Pt,We,Ee]):_e.rejectWith(W,[Ee,We,Qe]),Ee.statusCode(Pe),Pe=void 0,O&&ae.trigger(Xe?"ajaxSuccess":"ajaxError",[Ee,R,Xe?Pt:Qe]),de.fireWith(W,[Ee,We]),O&&(ae.trigger("ajaxComplete",[Ee,R]),--u.active||u.event.trigger("ajaxStop")))}return Ee},getJSON:function(i,a,c){return u.get(i,a,c,"json")},getScript:function(i,a){return u.get(i,void 0,a,"script")}}),u.each(["get","post"],function(i,a){u[a]=function(c,p,h,m){return C(p)&&(m=m||h,h=p,p=void 0),u.ajax(u.extend({url:c,type:a,dataType:m,data:p,success:h},u.isPlainObject(c)&&c))}}),u.ajaxPrefilter(function(i){var a;for(a in i.headers)a.toLowerCase()==="content-type"&&(i.contentType=i.headers[a]||"")}),u._evalUrl=function(i,a,c){return u.ajax({url:i,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(p){u.globalEval(p,a,c)}})},u.fn.extend({wrapAll:function(i){var a;return this[0]&&(C(i)&&(i=i.call(this[0])),a=u(i,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&a.insertBefore(this[0]),a.map(function(){for(var c=this;c.firstElementChild;)c=c.firstElementChild;return c}).append(this)),this},wrapInner:function(i){return C(i)?this.each(function(a){u(this).wrapInner(i.call(this,a))}):this.each(function(){var a=u(this),c=a.contents();c.length?c.wrapAll(i):a.append(i)})},wrap:function(i){var a=C(i);return this.each(function(c){u(this).wrapAll(a?i.call(this,c):i)})},unwrap:function(i){return this.parent(i).not("body").each(function(){u(this).replaceWith(this.childNodes)}),this}}),u.expr.pseudos.hidden=function(i){return!u.expr.pseudos.visible(i)},u.expr.pseudos.visible=function(i){return!!(i.offsetWidth||i.offsetHeight||i.getClientRects().length)},u.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch{}};var Nn={0:200,1223:204},Rt=u.ajaxSettings.xhr();w.cors=!!Rt&&"withCredentials"in Rt,w.ajax=Rt=!!Rt,u.ajaxTransport(function(i){var a,c;if(w.cors||Rt&&!i.crossDomain)return{send:function(p,h){var m,_=i.xhr();if(_.open(i.type,i.url,i.async,i.username,i.password),i.xhrFields)for(m in i.xhrFields)_[m]=i.xhrFields[m];i.mimeType&&_.overrideMimeType&&_.overrideMimeType(i.mimeType),!i.crossDomain&&!p["X-Requested-With"]&&(p["X-Requested-With"]="XMLHttpRequest");for(m in p)_.setRequestHeader(m,p[m]);a=function(A){return function(){a&&(a=c=_.onload=_.onerror=_.onabort=_.ontimeout=_.onreadystatechange=null,A==="abort"?_.abort():A==="error"?typeof _.status!="number"?h(0,"error"):h(_.status,_.statusText):h(Nn[_.status]||_.status,_.statusText,(_.responseType||"text")!=="text"||typeof _.responseText!="string"?{binary:_.response}:{text:_.responseText},_.getAllResponseHeaders()))}},_.onload=a(),c=_.onerror=_.ontimeout=a("error"),_.onabort!==void 0?_.onabort=c:_.onreadystatechange=function(){_.readyState===4&&e.setTimeout(function(){a&&c()})},a=a("abort");try{_.send(i.hasContent&&i.data||null)}catch(A){if(a)throw A}},abort:function(){a&&a()}}}),u.ajaxPrefilter(function(i){i.crossDomain&&(i.contents.script=!1)}),u.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(i){return u.globalEval(i),i}}}),u.ajaxPrefilter("script",function(i){i.cache===void 0&&(i.cache=!1),i.crossDomain&&(i.type="GET")}),u.ajaxTransport("script",function(i){if(i.crossDomain||i.scriptAttrs){var a,c;return{send:function(p,h){a=u("<script>").attr(i.scriptAttrs||{}).prop({charset:i.scriptCharset,src:i.url}).on("load error",c=function(m){a.remove(),c=null,m&&h(m.type==="error"?404:200,m.type)}),D.head.appendChild(a[0])},abort:function(){c&&c()}}}});var Ur=[],lr=/(=)\?(?=&|$)|\?\?/;u.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var i=Ur.pop()||u.expando+"_"+jr.guid++;return this[i]=!0,i}}),u.ajaxPrefilter("json jsonp",function(i,a,c){var p,h,m,_=i.jsonp!==!1&&(lr.test(i.url)?"url":typeof i.data=="string"&&(i.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&lr.test(i.data)&&"data");if(_||i.dataTypes[0]==="jsonp")return p=i.jsonpCallback=C(i.jsonpCallback)?i.jsonpCallback():i.jsonpCallback,_?i[_]=i[_].replace(lr,"$1"+p):i.jsonp!==!1&&(i.url+=(nr.test(i.url)?"&":"?")+i.jsonp+"="+p),i.converters["script json"]=function(){return m||u.error(p+" was not called"),m[0]},i.dataTypes[0]="json",h=e[p],e[p]=function(){m=arguments},c.always(function(){h===void 0?u(e).removeProp(p):e[p]=h,i[p]&&(i.jsonpCallback=a.jsonpCallback,Ur.push(p)),m&&C(h)&&h(m[0]),m=h=void 0}),"script"}),w.createHTMLDocument=function(){var i=D.implementation.createHTMLDocument("").body;return i.innerHTML="<form></form><form></form>",i.childNodes.length===2}(),u.parseHTML=function(i,a,c){if(typeof i!="string")return[];typeof a=="boolean"&&(c=a,a=!1);var p,h,m;return a||(w.createHTMLDocument?(a=D.implementation.createHTMLDocument(""),p=a.createElement("base"),p.href=D.location.href,a.head.appendChild(p)):a=D),h=be.exec(i),m=!c&&[],h?[a.createElement(h[1])]:(h=Ar([i],a,m),m&&m.length&&u(m).remove(),u.merge([],h.childNodes))},u.fn.load=function(i,a,c){var p,h,m,_=this,A=i.indexOf(" ");return A>-1&&(p=pt(i.slice(A)),i=i.slice(0,A)),C(a)?(c=a,a=void 0):a&&typeof a=="object"&&(h="POST"),_.length>0&&u.ajax({url:i,type:h||"GET",dataType:"html",data:a}).done(function(b){m=arguments,_.html(p?u("<div>").append(u.parseHTML(b)).find(p):b)}).always(c&&function(b,O){_.each(function(){c.apply(this,m||[b.responseText,O,b])})}),this},u.expr.pseudos.animated=function(i){return u.grep(u.timers,function(a){return i===a.elem}).length},u.offset={setOffset:function(i,a,c){var p,h,m,_,A,b,O,L=u.css(i,"position"),k=u(i),R={};L==="static"&&(i.style.position="relative"),A=k.offset(),m=u.css(i,"top"),b=u.css(i,"left"),O=(L==="absolute"||L==="fixed")&&(m+b).indexOf("auto")>-1,O?(p=k.position(),_=p.top,h=p.left):(_=parseFloat(m)||0,h=parseFloat(b)||0),C(a)&&(a=a.call(i,c,u.extend({},A))),a.top!=null&&(R.top=a.top-A.top+_),a.left!=null&&(R.left=a.left-A.left+h),"using"in a?a.using.call(i,R):k.css(R)}},u.fn.extend({offset:function(i){if(arguments.length)return i===void 0?this:this.each(function(h){u.offset.setOffset(this,i,h)});var a,c,p=this[0];if(p)return p.getClientRects().length?(a=p.getBoundingClientRect(),c=p.ownerDocument.defaultView,{top:a.top+c.pageYOffset,left:a.left+c.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var i,a,c,p=this[0],h={top:0,left:0};if(u.css(p,"position")==="fixed")a=p.getBoundingClientRect();else{for(a=this.offset(),c=p.ownerDocument,i=p.offsetParent||c.documentElement;i&&(i===c.body||i===c.documentElement)&&u.css(i,"position")==="static";)i=i.parentNode;i&&i!==p&&i.nodeType===1&&(h=u(i).offset(),h.top+=u.css(i,"borderTopWidth",!0),h.left+=u.css(i,"borderLeftWidth",!0))}return{top:a.top-h.top-u.css(p,"marginTop",!0),left:a.left-h.left-u.css(p,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var i=this.offsetParent;i&&u.css(i,"position")==="static";)i=i.offsetParent;return i||ft})}}),u.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(i,a){var c=a==="pageYOffset";u.fn[i]=function(p){return qe(this,function(h,m,_){var A;if(H(h)?A=h:h.nodeType===9&&(A=h.defaultView),_===void 0)return A?A[a]:h[m];A?A.scrollTo(c?A.pageXOffset:_,c?_:A.pageYOffset):h[m]=_},i,p,arguments.length)}}),u.each(["top","left"],function(i,a){u.cssHooks[a]=Cr(w.pixelPosition,function(c,p){if(p)return p=Ct(c,a),Qt.test(p)?u(c).position()[a]+"px":p})}),u.each({Height:"height",Width:"width"},function(i,a){u.each({padding:"inner"+i,content:a,"":"outer"+i},function(c,p){u.fn[p]=function(h,m){var _=arguments.length&&(c||typeof h!="boolean"),A=c||(h===!0||m===!0?"margin":"border");return qe(this,function(b,O,L){var k;return H(b)?p.indexOf("outer")===0?b["inner"+i]:b.document.documentElement["client"+i]:b.nodeType===9?(k=b.documentElement,Math.max(b.body["scroll"+i],k["scroll"+i],b.body["offset"+i],k["offset"+i],k["client"+i])):L===void 0?u.css(b,O,A):u.style(b,O,L,A)},a,_?h:void 0,_)}})}),u.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(i,a){u.fn[a]=function(c){return this.on(a,c)}}),u.fn.extend({bind:function(i,a,c){return this.on(i,null,a,c)},unbind:function(i,a){return this.off(i,null,a)},delegate:function(i,a,c,p){return this.on(a,i,c,p)},undelegate:function(i,a,c){return arguments.length===1?this.off(i,"**"):this.off(a,i||"**",c)},hover:function(i,a){return this.on("mouseenter",i).on("mouseleave",a||i)}}),u.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(i,a){u.fn[a]=function(c,p){return arguments.length>0?this.on(a,null,c,p):this.trigger(a)}});var Rn=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;u.proxy=function(i,a){var c,p,h;if(typeof a=="string"&&(c=i[a],a=i,i=c),!!C(i))return p=s.call(arguments,2),h=function(){return i.apply(a||this,p.concat(s.call(arguments)))},h.guid=i.guid=i.guid||u.guid++,h},u.holdReady=function(i){i?u.readyWait++:u.ready(!0)},u.isArray=Array.isArray,u.parseJSON=JSON.parse,u.nodeName=G,u.isFunction=C,u.isWindow=H,u.camelCase=Ve,u.type=Y,u.now=Date.now,u.isNumeric=function(i){var a=u.type(i);return(a==="number"||a==="string")&&!isNaN(i-parseFloat(i))},u.trim=function(i){return i==null?"":(i+"").replace(Rn,"$1")};var Dn=e.jQuery,Pn=e.$;return u.noConflict=function(i){return e.$===u&&(e.$=Pn),i&&e.jQuery===u&&(e.jQuery=Dn),u},typeof t>"u"&&(e.jQuery=e.$=u),u})})(jquery);var jqueryExports=jquery.exports;const $=getDefaultExportFromCjs(jqueryExports),actionAddins={};class MustInputAction{constructor(){F(this,"name");F(this,"actionProps");F(this,"props");this.name="必須チェック",this.actionProps=[],this.register(),this.props={field:{code:""},message:""},this.register()}async process(e,t){var l;let r={canNext:!0,result:!1};if(this.actionProps=e.actionProps,!("field"in e.ActionValue)&&!("message"in e.ActionValue))return r;this.props=e.ActionValue;const o=t.record,s=(l=o[this.props.field.code])==null?void 0:l.value;return s===void 0||s===""?(o[this.props.field.code].error=this.props.message,r):(r={canNext:!0,result:!0},r)}register(){actionAddins[this.name]=this}}new MustInputAction;class Formatter{static numberFormat(e,t){let r=Math.floor(Math.abs(e)).toString(),o=Math.abs(e).toString().split(".")[1]||"",s=e<0,l=t.includes("%");l&&(e*=100,r=Math.floor(Math.abs(e)).toString(),o=Math.abs(e).toString().split(".")[1]||"");let[f,E]=t.split(".");if(r=f?r.padStart(f.replace(/[^0]/g,"").length,"0"):r,o=o.padEnd(E?E.length:0,"0"),/,/.test(f)){const g=[];for(;r.length;)g.unshift(r.slice(-3)),r=r.slice(0,-3);r=g.join(",")}let d=E?`${r}.${o}`:r;return d=s?`-${d}`:d,l?`${d}%`:d}static dateFormat(e,t){const r=e.getFullYear(),o=e.getMonth()+1,s=e.getDate(),l=e.getHours(),f=e.getMinutes(),E=e.getSeconds(),d=e.getMilliseconds(),g=-e.getTimezoneOffset()/60,y={yyyy:r.toString(),yy:r.toString().slice(-2),MM:o.toString().padStart(2,"0"),M:o.toString(),dd:s.toString().padStart(2,"0"),d:s.toString(),HH:l.toString().padStart(2,"0"),H:l.toString(),hh:(l>12?l-12:l).toString().padStart(2,"0"),h:(l>12?l-12:l).toString(),mm:f.toString().padStart(2,"0"),m:f.toString(),ss:E.toString().padStart(2,"0"),s:E.toString(),fff:d.toString().padStart(3,"0"),zzz:(g>=0?"+":"-")+Math.abs(g).toString().padStart(2,"0")+":00"};return t.replace(/yyyy|yy|MM|M|dd|d|HH|H|hh|h|mm|m|ss|s|fff|zzz/g,S=>y[S]||S)}}class AutoNumbering{constructor(){F(this,"name");F(this,"actionProps");F(this,"props");this.name="自動採番する",this.actionProps=[],this.register(),this.props={field:{code:""},format:"",prefix:"",suffix:"",verName:{name:""}},globalThis.window.$format=this.format,this.register()}async process(n,e,t){let r={canNext:!1,result:!1};try{if(this.actionProps=n.actionProps,!("field"in n.ActionValue)&&!("format"in n.ActionValue))return r;this.props=n.ActionValue;const o=e.record,s=await this.createNumber(this.props);return o[this.props.field.code].value=s,this.props.verName&&this.props.verName.name!==""&&(t.variables[this.props.verName.name]=s),r={canNext:!0,result:!0},r}catch(o){return console.error(o),e.error="処理中異常が発生しました。",{canNext:!1,result:!1}}}execTemplate(n){if(n===void 0)return"";const e=/\$\{([^}]+)\}/g;return n.replace(e,(t,r)=>this.execEval(t,r))}execEval(match,expr){return console.log(match),eval(expr)}format(n){const e=new Date;return Formatter.dateFormat(e,n)}async createNumber(n){let e="",t="",r="",o=1;try{o=await this.fetchNo()}catch(s){console.log(s)}return n.format!==void 0&&n.format!==""?e=Formatter.numberFormat(o,n.format):e=o.toString(10),n.prefix!==void 0&&n.prefix!==""&&(t=this.execTemplate(n.prefix)),n.suffix!==void 0&&n.suffix!==""&&(r=this.execTemplate(n.suffix)),`${t}${e}${r}`}async fetchNo(){let n=1;return await new kintone.Promise((e,t)=>{const r=kintone.api.url("/k/v1/records",!0),o={app:kintone.app.getId(),fields:["$id"],query:"limit 1"};return kintone.api(r,"GET",o).then(s=>{s.records[0]!==null&&(n=parseInt(s.records[0].$id.value,10)+1),e(n)}).catch(s=>{t(s)})})}register(){actionAddins[this.name]=this}}new AutoNumbering;class GroupNode{constructor(e,t){F(this,"index");F(this,"type");F(this,"children");F(this,"parent");F(this,"logicalOperator");this.index=0,this.type=t==null?"root":"logicgroup",this.logicalOperator=e,this.parent=t,this.children=[]}get label(){return this.logicalOperator}get header(){return this.type==="root"?"root":"generic"}get expanded(){return this.children.length>0}static fromJSON(e,t=null){const r=new GroupNode(e.logicalOperator,t);return r.index=e.index,r.children=e.children.map(o=>o.type==="logicgroup"?GroupNode.fromJSON(o,r):ConditionNode.fromJSON(o,r)),r}}class ConditionNode{constructor(e,t,r,o){F(this,"index");F(this,"type");F(this,"parent");F(this,"object");F(this,"operator");F(this,"value");this.index=0,this.type="condition",this.object=e,this.operator=t,this.value=r,this.parent=o}get logicalOperator(){return this.parent.logicalOperator}get header(){return"generic"}static fromJSON(e,t){const r=new ConditionNode(e.object,e.operator,e.value,t);return r.index=e.index,r}}class ConditionTree{constructor(){F(this,"root");F(this,"maxIndex");this.maxIndex=0,this.root=new GroupNode("AND",null)}addNode(e,t){this.maxIndex++,t.index=this.maxIndex,e.children.push(t)}removeNode(e){if(e.parent===null)throw new Error("ルートノード削除できません");{const t=e.parent,r=t.children.indexOf(e);r>-1&&t.children.splice(r,1)}}findByIndex(e){return this.findChildren(this.root,e)}findChildren(e,t){if(e.index===t)return e;for(const r of e.children){if(r.index===t)return r;if(r.type!=="condition"){const o=this.findChildren(r,t);if(o)return o}}}getMaxIndex(e){let t=e.index;return e.type!=="condition"&&e.children.forEach(o=>{const s=this.getMaxIndex(o);s>t&&(t=s)}),t}buildConditionString(e){if(e.type!=="condition"){let t="(";const r=e;for(let o=0;o<r.children.length;o++){const s=this.buildConditionString(r.children[o]);s!==""&&(t+=s,o<r.children.length-1&&(t+=` ${r.logicalOperator} `))}return t+=")",t}else{const t=e;if(t.object&&t.operator){let r=t.value;return r&&typeof r=="object"&&"label"in r&&(r=t.value.label),`${t.object.name} ${t.operator} '${r}'`}else return""}}getConditions(e){const t=[];return e.children.forEach(r=>{r.type==="condition"?t.push(r):t.push(...this.getConditions(r))}),t}getGroups(e){const t=[];return t.push(e.index),e.children.forEach(r=>{r.type!=="condition"&&t.push(...this.getGroups(r))}),t}fromJson(e){const t=JSON.parse(e);return this.root=GroupNode.fromJSON(t),this.maxIndex=this.getMaxIndex(this.root),this.root}toJson(){return JSON.stringify(this.root,(e,t)=>e==="parent"?t?t.type:null:t)}evaluate(e,t){if(e.type==="condition")return this.evaluateCondition(e,t);if(e.type==="logicgroup"||e.type==="root"){const r=e,o=r.children.map(s=>this.evaluate(s,t));if(r.logicalOperator==="AND")return o.every(s=>s);if(r.logicalOperator==="OR")return o.some(s=>s);throw new Error("Unsupported logical operator")}else throw new Error("Unsupported node type")}getObjectValue(e,t){if(!(!e||typeof e!="object"||!("objectType"in e))){if(e.objectType==="field"){const r=t.record[e.code];return r.type==="NUMBER"&&r.value!==void 0?Number(r.value):r.value}else if(e.objectType==="variable")return t.variables[e.name].value}}getConditionValue(e){if(!e||typeof e!="object")return e;if("label"in e)return e.label;if("value"in e)return e.value;if("name"in e)return e.name}evaluateCondition(e,t){const{object:r,operator:o,value:s}=e,l=this.getObjectValue(r,t),f=this.getConditionValue(s);switch(o){case"=":case"!=":case">":case">=":case"<":case"<=":return this.compare(o,l,f);case"contains":return this.contains(l,f);case"not contains":return!this.contains(l,f);case"start With":return this.startWith(l,f);case"not start with":return!this.startWith(l,f);case"end with":return this.endsWith(l,f);case"not end with":return this.endsWith(l,f);default:throw new Error("Unsupported operator")}}compare(e,t,r){if((t==null||t==="")&&(r==null||r==="")&&(t="",r=""),t instanceof Date){const o=new Date(r);isNaN(o.getTime())||(r=o)}else if(typeof t=="number"){const o=Number(r);isNaN(o)||(r=o)}else typeof t=="string"&&(r=String(r));switch(e){case"=":return t===r;case"!=":return t!==r;case">":return t>r;case">=":return t>=r;case"<":return t<r;case"<=":return t<=r;default:throw new Error("Unsupported operator for comparison")}}contains(e,t){return typeof e=="string"&&typeof t=="string"?e.includes(t):!1}startWith(e,t){return typeof e=="string"&&typeof t=="string"?e.startsWith(t):!1}endsWith(e,t){return typeof e=="string"&&typeof t=="string"?e.endsWith(t):!1}}class FieldShownAction{constructor(){F(this,"name");F(this,"actionProps");F(this,"props");this.name="表示/非表示",this.actionProps=[],this.props={field:{code:""},show:"",condition:""},this.register()}async process(e,t,r){let o={canNext:!0,result:!1};try{return this.actionProps=e.actionProps,!("field"in e.ActionValue)&&!("show"in e.ActionValue)||(this.props=e.ActionValue,this.getConditionResult(r)&&(this.props.show==="表示"?kintone.app.record.setFieldShown(this.props.field.code,!0):this.props.show==="非表示"&&kintone.app.record.setFieldShown(this.props.field.code,!1)),o={canNext:!0,result:!0}),o}catch(s){return t.error=s,console.error(s),o.canNext=!1,o}}getConditionResult(e){const t=this.getCondition(this.props.condition);return t?t.evaluate(t.root,e):!0}getCondition(e){try{const t=new ConditionTree;return t.fromJson(e),t.getConditions(t.root).length>0?t:null}catch{return null}}register(){actionAddins[this.name]=this}}new FieldShownAction;class ErrorShowAction{constructor(){F(this,"name");F(this,"actionProps");F(this,"props");this.name="エラー表示",this.actionProps=[],this.props={message:"",condition:""},this.register()}async process(e,t,r){let o={canNext:!0,result:!1};try{return this.actionProps=e.actionProps,!("message"in e.ActionValue)&&!("condition"in e.ActionValue)||(this.props=e.ActionValue,this.getConditionResult(r)?t.error=this.props.message:o={canNext:!1,result:!0}),o}catch(s){return t.error=s,console.error(s),o.canNext=!1,o}}getConditionResult(e){const t=this.getCondition(this.props.condition);return t?t.evaluate(t.root,e):!0}getCondition(e){try{const t=new ConditionTree;return t.fromJson(e),t.getConditions(t.root).length>0?t:null}catch{return null}}register(){actionAddins[this.name]=this}}new ErrorShowAction;const buttonAdd="";class ButtonAddAction{constructor(){F(this,"name");F(this,"actionProps");F(this,"props");this.name="ボタンの配置",this.actionProps=[],this.props={buttonName:"",position:"",eventName:""},this.register()}async process(e,t){let r={canNext:!0,result:!1};try{if(this.actionProps=e.actionProps,!("buttonName"in e.ActionValue)&&!("position"in e.ActionValue))return r;this.props=e.ActionValue;let o;if(this.props.space&&this.props.space.elementId?o=kintone.app.record.getSpaceElement(this.props.space.elementId):o=kintone.app.record.getHeaderMenuSpaceElement(),!o)return r;const s=$(`<button id='${this.props.eventName}' class='alc-button-normal' >${this.props.buttonName}</button>`);this.props.position==="一番左に追加する"?$(o).prepend(s):$(o).append(s);const l=`${t.type}.customButtonClick.${this.props.eventName}`;return s.on("click",()=>{$(document).trigger(l,t)}),r}catch(o){return t.error=o,console.error(o),r.canNext=!1,r}}register(){actionAddins[this.name]=this}}new ButtonAddAction;class ConditionAction{constructor(){F(this,"name");F(this,"actionProps");F(this,"props");this.name="条件式",this.actionProps=[],this.props={condition:"",verName:{name:""}},this.register()}async process(e,t,r){let o={canNext:!0,result:""};try{if(this.actionProps=e.actionProps,!("condition"in e.ActionValue)&&!("verName"in e.ActionValue))return o;this.props=e.ActionValue;const s=this.getConditionResult(r);return console.log("条件計算結果:",s),s?o={canNext:!0,result:"はい"}:o={canNext:!0,result:"いいえ"},this.props.verName&&this.props.verName.name!==""&&(r.variables[this.props.verName.name]=o.result),o}catch(s){return t.error=s,console.error(s),o.canNext=!1,o}}getConditionResult(e){const t=this.getCondition(this.props.condition);return t?t.evaluate(t.root,e):!0}getCondition(e){try{const t=new ConditionTree;return t.fromJson(e),t.getConditions(t.root).length>0?t:null}catch{return null}}register(){actionAddins[this.name]=this}}new ConditionAction;class DataProcessingAction{constructor(){F(this,"name");F(this,"actionProps");F(this,"dataProcessingProps");this.name="データ処理",this.actionProps=[],this.dataProcessingProps=null,this.register()}async process(e,t,r){this.actionProps=e.actionProps,this.dataProcessingProps=e.ActionValue,this.dataProcessingProps.conditionO=JSON.parse(this.dataProcessingProps.condition);let o={canNext:!0,result:""};try{if(!this.dataProcessingProps)return o;const s=await selectData(varGet(this.dataProcessingProps.conditionO.queryString,r.variables));return console.log("data ",s),r.variables[this.dataProcessingProps.verName.name]=this.dataProcessingProps.verName.vars.reduce((l,f)=>(calc(f,s)&&(l[f.vName]=calc(f,s)),l),{}),console.log("context ",r),o}catch(s){return console.error(s),t.error=s,o}}register(){actionAddins[this.name]=this}}new DataProcessingAction;const varGet=(n,e)=>{console.log(n);const t=/var\((.*?)\)/g;let r;for(;(r=t.exec(n))!==null;){const o=r[1];if(o in e)n=n.replace(r[0],e[o]);else throw new Error(`変数${o}が見つかりません`)}return console.log(n),n},selectData=async n=>kintone.api(kintone.api.url("/k/v1/records",!0),"GET",{app:kintone.app.getId(),query:n}).then(e=>{const t={};return e.records.forEach(r=>{for(const[o,s]of Object.entries(r))t[o]||(t[o]={type:s.type,value:[]}),t[o].value.push(s.value)}),t}),ERROR_TYPE="ERROR_TYPE",calc=(n,e)=>{const t=typeCheck(n.field.type);if(!t)return ERROR_TYPE;const r=calcFunc[`${t}_${Operator[n.logicalOperator.operator]}`];if(!r)return ERROR_TYPE;const o=e[n.field.code].value;return o?r(o):null},typeCheck=n=>{switch(n){case"RECORD_NUMBER":case"NUMBER":return"number";case"SINGLE_LINE_TEXT":case"MULTI_LINE_TEXT":case"RICH_TEXT":return"string";case"DATE":return"date";case"TIME":return"time";case"DATETIME":case"UPDATED_TIME":return"datetime";default:return null}};var Operator=(n=>(n.SUM="SUM",n.AVG="AVG",n.MAX="MAX",n.MIN="MIN",n.COUNT="COUNT",n.FIRST="FIRST",n))(Operator||{});const calcFunc={number_COUNT:n=>n.length.toString(),string_COUNT:n=>n.length.toString(),date_COUNT:n=>n.length.toString(),time_COUNT:n=>n.length.toString(),datetime_COUNT:n=>n.length.toString(),number_SUM:n=>n.reduce((e,t)=>e+Number(t),0).toString(),number_AVG:n=>(n.reduce((e,t)=>e+Number(t),0)/n.length).toString(),number_MAX:n=>Math.max(...n.map(Number)).toString(),number_MIN:n=>Math.min(...n.map(Number)).toString(),string_SUM:n=>n.join(" "),date_MAX:n=>n.reduce((e,t)=>e>t?e:t),date_MIN:n=>n.reduce((e,t)=>e<t?e:t),time_MAX:n=>n.reduce((e,t)=>e>t?e:t),time_MIN:n=>n.reduce((e,t)=>e<t?e:t),datetime_MAX:n=>n.reduce((e,t)=>new Date(e)>new Date(t)?e:t),datetime_MIN:n=>n.reduce((e,t)=>new Date(e)<new Date(t)?e:t),string_FIRST:n=>n[0]};class DataMappingAction{constructor(){F(this,"name");F(this,"actionProps");F(this,"dataMappingProps");this.name="データマッピング",this.actionProps=[],this.dataMappingProps={},this.register()}async process(e,t,r){this.actionProps=e.actionProps,this.dataMappingProps=e.ActionValue,console.log(e.ActionValue);let o={canNext:!0,result:""};try{const s=this.dataMappingProps.dataMapping.filter(l=>l.from.objectType==="variable"&&l.from.name.name&&l.to.app&&l.to.fields&&l.to.fields.length>0).reduce((l,f)=>({...l,[f.to.fields[0].code]:{value:getValueByPath(r.variables,f.from.name.name)}}),{});s&&Object.keys(s).length>0&&await kintone.api(kintone.api.url("/k/v1/record.json",!0),"POST",{app:this.dataMappingProps.sources.app.id,record:s})}catch(s){console.error("DataMappingAction error",s),o.canNext=!1}return console.log("dataMappingProps",this.dataMappingProps),o}register(){actionAddins[this.name]=this}}new DataMappingAction;const getValueByPath=(n,e)=>e.split(".").reduce((t,r)=>(t||{})[r],n);class CurrentFieldGetAction{constructor(){F(this,"name");F(this,"actionProps");F(this,"currentFieldGetProps");this.name="フィールドの値を取得する",this.actionProps=[],this.currentFieldGetProps={},this.register()}async process(e,t,r){this.currentFieldGetProps=e.ActionValue,this.actionProps=e.actionProps;let o={canNext:!0,result:""};try{r.variables[this.currentFieldGetProps.verName.name]=r.record[this.currentFieldGetProps.field.code].value}catch(s){console.error("CurrentFieldGetAction error",s),o.canNext=!1}return o}register(){actionAddins[this.name]=this}}new CurrentFieldGetAction;class RegularCheckAction{constructor(){F(this,"name");F(this,"actionProps");F(this,"props");this.name="正規表現チェック",this.actionProps=[],this.props={field:{code:""},message:"",regExpression:""},this.register()}async process(e,t){let r={canNext:!0,result:!1};try{if(this.actionProps=e.actionProps,!("field"in e.ActionValue)&&!("message"in e.ActionValue)&&!("regExpression"in e.ActionValue))return r;this.props=e.ActionValue;const o=t.record,s=o[this.props.field.code].value;return new RegExp(this.props.regExpression).test(s)?r={canNext:!0,result:!0}:o[this.props.field.code].error=this.props.message,r}catch(o){return t.error=o,console.error(o),r.canNext=!1,r}}register(){actionAddins[this.name]=this}}new RegularCheckAction;class MailCheckAction{constructor(){F(this,"name");F(this,"actionProps");F(this,"props");this.name="メールアドレスチェック",this.actionProps=[],this.props={field:{code:""},message:"",emailCheck:""},this.register()}async process(e,t){let r={canNext:!0,result:!1};try{if(this.actionProps=e.actionProps,!("field"in e.ActionValue)&&!("message"in e.ActionValue)&&!("emailCheck"in e.ActionValue))return r;this.props=e.ActionValue;const o=t.record,s=o[this.props.field.code].value;return this.props.emailCheck==="厳格"?/^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/.test(s)||(o[this.props.field.code].error=this.props.message):this.props.emailCheck==="ゆるめ"?/^[^@]+@[^@]+$/.test(s)||(o[this.props.field.code].error=this.props.message):r={canNext:!0,result:!0},r}catch(o){return t.error=o,console.error(o),r.canNext=!1,r}}register(){actionAddins[this.name]=this}}new MailCheckAction;class StrCountCheckAciton{constructor(){F(this,"name");F(this,"actionProps");F(this,"props");this.name="文字数チェック",this.actionProps=[],this.props={field:{code:""},message:"",maxLength:0},this.register()}async process(e,t){let r={canNext:!0,result:!1};try{if(this.actionProps=e.actionProps,!("field"in e.ActionValue)&&!("message"in e.ActionValue)&&!("strExpression"in e.ActionValue))return r;this.props=e.ActionValue;const o=t.record,s=o[this.props.field.code].value,l=this.props.maxLength;return s===void 0||s===""||(l<s.length?o[this.props.field.code].error=this.props.message:r={canNext:!0,result:!0}),r}catch(o){return t.error=o,console.error(o),r.canNext=!1,r}}register(){actionAddins[this.name]=this}}new StrCountCheckAciton;class DatetimeGetterAction{constructor(){F(this,"name");F(this,"actionProps");F(this,"props");this.name="現在日時",this.actionProps=[],this.props={verName:{name:""}},this.register()}async process(e,t,r){let o={canNext:!0,result:!1};try{if(this.actionProps=e.actionProps,!("verName"in e.ActionValue))return o;this.props=e.ActionValue;let s=new Date;return this.props.verName&&this.props.verName.name!==""&&(r.variables[this.props.verName.name]=s.toISOString()),o}catch(s){return t.error=s,console.error(s),o.canNext=!1,o}}register(){actionAddins[this.name]=this}}new DatetimeGetterAction;class InsertValueAction{constructor(){F(this,"name");F(this,"actionProps");F(this,"props");this.name="値を挿入する",this.actionProps=[],this.props={field:{code:""},condition:"",value:"",show:""},this.register()}checkInputBlank(e,t,r,o,s){if(t.match(/^(\s| )+?$/)!==null){if(e==="NUMBER"||e==="DATE"||e==="DATETIME"||e==="TIME"||e==="USER_SELECT"||e==="ORGANIZATION_SELECT"||e==="GROUP_SELECT"||e==="RADIO_BUTTON"||e==="DROP_DOWN"||e==="CHECK_BOX"||e==="MULTI_SELECT")throw s.record[r].error="「"+r+"」フィールドには、空白文字は挿入できません。",new Error("「"+r+"」フィールドには、空白文字は挿入できません。「値を挿入する」コンポーネントの処理を中断しました。");if(o)throw s.record[r].error="「"+r+"」フィールドは必須項目のため、空白文字は挿入できません。",new Error("「"+r+"」フィールドは必須項目のため、空白文字は挿入できません。「値を挿入する」コンポーネントの処理を中断しました。")}return!0}checkInputNumber(e,t,r){let o=Number(e);if(!isFinite(o))throw r.record[t].error="「"+t+"」フィールドに入れようとした値は、無効な日付形式です。",new Error("「"+t+"」フィールドに入れようとした値は、有効な数値ではありません。「値を挿入する」コンポーネントの処理を中断しました。");return!0}checkInputDate(e,t,r){let o=e.match(/(\d{4})-(\d{2})-(\d{2})$/),s=e.match(/(\d{4})-(\d{1})-(\d{1})$/),l=e.match(/(\d{4})-(\d{1})-(\d{2})$/),f=e.match(/(\d{4})-(\d{2})-(\d{1})$/),E=e.match(/(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}).000Z/),d;if(d=new Date(e),d!==void 0&&!isNaN(d.getDate())&&o===null&&l===null&&f===null&&s===null&&E===null)throw r.record[t].error="「"+t+"」フィールドに入れようとした値は、無効な日付形式です。",new Error("「"+t+"」フィールドに入れようとした値は、無効な日付形式です。「値を挿入する」コンポーネントの処理を中断しました。");return!0}checkInputTime(e,t,r){if(e.match(/^([0-9]|1[0-9]|2[0-3]):[0-5][0-9]$/)===null)throw r.record[t].error="「"+t+"」フィールドに入れようとした値は、無効な時刻形式です。",new Error("「"+t+"」フィールドに入れようとした値は、無効な時刻形式です。「値を挿入する」コンポーネントの処理を中断しました。");return!0}changeDateFormat(e,t,r,o){let s,l;if(l=new Date(e),l!==void 0&&!isNaN(l.getDate())){if(t==="DATETIME")return s=l.toISOString(),s;let f=e.match(/(\d{4})-(\d{1,2})-(\d{1,2})$/);if(f!==null){let E=1,d=2,g=3;return`${f[E]}-${f[d]}-${f[g]}`}}throw o.record[r].error="「"+r+"」フィールドに入れようとした値は、無効な日付形式です。",new Error("「"+r+"」フィールドに入れようとした値は、無効な日付形式です。「値を挿入する」コンポーネントの処理を中断しました。")}checkInputOption(e,t,r,o){if(t!==void 0){let l=Object.keys(t);for(var s in l)if(l[s]===e)return!0}throw o.record[r].error="「"+r+"」には、存在しない値を挿入しようとしたため、処理を中断しました。",new Error("「"+r+"」には、存在しない値を挿入しようとしたため、処理を中断しました。「値を挿入する」コンポーネントの処理を中断しました。")}async setInputUser(e){let t;try{const o=await kintone.api(kintone.api.url("/v1/users",!0),"GET",{codes:[e]});if(o.users[0].code===e&&(t=o.users[0].name),t===void 0)throw new Error}catch{return!1}return t}async setInputOrganization(e){let t;try{const o=await kintone.api(kintone.api.url("/v1/organizations.json",!0),"GET",{codes:[e]});if(o.organizations[0].code===e&&(t=o.organizations[0].name),t===void 0)throw new Error}catch{return!1}return t}async setInputGroup(e){let t;try{const o=await kintone.api(kintone.api.url("/v1/groups.json",!0),"GET",{codes:[e]});if(o.groups[0].code===e&&(t=o.groups[0].name),t===void 0)throw new Error}catch{return!1}return t}async process(e,t,r){let o={canNext:!0,result:!1};try{if(this.actionProps=e.actionProps,!("field"in e.ActionValue)&&!("value"in e.ActionValue))return o;const s=1,l=3,f=this.actionProps[s].props.modelValue.type,E=this.actionProps[l].props.modelValue,d=this.getConditionResult(r);if(!d)return o;if(f===null)throw new Error("「値を挿入する」コンポーネントで、値を挿入するフィールドが指定されていなかったため、処理が中断されました。");if(f==="FILE"||f==="SUBTABLE"||f==="CATEGORY"||f==="STATUS"||f==="STATUS_ASSIGNEE"||f==="CREATOR"||f==="MODIFIER"||f==="__REVISION__"||f==="RECORD_NUMBER"||f==="__ID__"||f==="CALC"||f==="CREATED_TIME"||f==="UPDATED_TIME")throw new Error("「値を挿入する」コンポーネントで、選択されたフィールドは、値を挿入するコンポーネントでは非対応のフィールドのため、処理を中断しました。");if(E==="")throw new Error("「値を挿入する」コンポーネントで、フィールドに挿入する値が指定されていなかったため、処理が中断されました。");this.props=e.ActionValue;let g=this.props.value;const y=this.props.field.type,S=this.props.field.required,x=this.props.field.code,w=this.props.show;let C=this.props.field.options,H;if(w==="変数"&&d){if(H=r.variables[g],H===void 0)throw new Error("「"+x+"」フィールドに入れようとした変数は、無効な入力形式です。");g=H}let D,Z=[],B=this.checkInputBlank(y,g,x,S,t);if(d&&B){if(y==="SINGLE_LINE_TEXT"||y==="MULTI_LINE_TEXT"||y==="RICH_TEXT"||y==="LINK")D=g;else if(y==="NUMBER")this.checkInputNumber(g,x,t)&&(D=Number(g));else if(y==="DATE"||y==="DATETIME"){if(this.checkInputDate(g,x,t)){let Y=this.changeDateFormat(g,y,x,t);Y&&(D=Y)}}else if(y==="TIME")this.checkInputTime(g,x,t)&&(D=g);else if(y==="RADIO_BUTTON"||y==="DROP_DOWN")this.checkInputOption(g,C,x,t)&&(D=g);else if(y==="CHECK_BOX"||y==="MULTI_SELECT")this.checkInputOption(g,C,x,t)&&(Z[0]=g);else if(y==="USER_SELECT"){let Y=await this.setInputUser(g);if(Y)D=[{code:g,name:Y}];else throw t.record[x].error="ユーザー選択に、挿入しようとしたユーザー情報は見つかりませんでした。「値を挿入する」コンポーネントの処理を中断しました。",new Error("ユーザー選択に、挿入しようとしたユーザー情報は見つかりませんでした。「値を挿入する」コンポーネントの処理を中断しました。")}else if(y==="ORGANIZATION_SELECT"){let Y=await this.setInputOrganization(g);if(Y)D=[{code:g,name:Y}];else throw t.record[x].error="組織選択フィールドに、挿入しようとした組織情報は見つかりませんでした。「値を挿入する」コンポーネントの処理を中断しました。",new Error("組織選択フィールドに、挿入しようとした組織情報は見つかりませんでした。「値を挿入する」コンポーネントの処理を中断しました。")}else if(y==="GROUP_SELECT"){let Y=await this.setInputGroup(g);if(Y)D=[{code:g,name:Y}];else throw t.record[x].error="グループ選択フィールドに、挿入しようとしたグループ情報は見つかりませんでした。「値を挿入する」コンポーネントの処理を中断しました。",new Error("グループ選択フィールドに、挿入しようとしたグループ情報は見つかりませんでした。「値を挿入する」コンポーネントの処理を中断しました。")}}return d&&(D||Z)&&(D?t.record[x].value=D:Z.length>0&&(t.record[x].value=Z)),o={canNext:!0,result:!0},o}catch(s){return t.record,t.error=s.message,console.error(s),o.canNext=!0,o}}getConditionResult(e){const t=this.getCondition(this.props.condition);return t?t.evaluate(t.root,e):!0}getCondition(e){try{const t=new ConditionTree;return t.fromJson(e),t.getConditions(t.root).length>0?t:null}catch{return null}}register(){actionAddins[this.name]=this}}new InsertValueAction;class GetValueAciton{constructor(){F(this,"name");F(this,"actionProps");F(this,"props");this.name="値を取得する",this.actionProps=[],this.props={field:{code:""},verName:{name:""}},this.register()}async process(e,t,r){let o={canNext:!0,result:!1};try{if(this.actionProps=e.actionProps,!("field"in e.ActionValue)&&!("verName"in e.ActionValue))return o;this.props=e.ActionValue;const l=t.record[this.props.field.code].value;return this.props.verName&&this.props.verName.name!==""&&(r.variables[this.props.verName.name]=l),o={canNext:!0,result:!0},o}catch(s){return t.error=s,console.error(s),o.canNext=!1,o}}register(){actionAddins[this.name]=this}}new GetValueAciton;class StringJoinAction{constructor(){F(this,"name");F(this,"actionProps");F(this,"props");this.name="文字結合",this.actionProps=[],this.register(),this.props={saveField:{code:""},joinField1:{code:""},joinField2:{code:""},delimiter:""},this.register()}async process(e,t){let r={canNext:!1,result:!1};try{let o=function(x,w,C,H){var D,Z,B,Y,ne,V,u,X,G,I,K,U,q,oe,ue,pe;if((((D=H.record[C])==null?void 0:D.value)===void 0||((Z=H.record[C])==null?void 0:Z.value)===null)&&(H.record[C].value=""),w==="CREATOR"||w==="MODIFIER")x=(B=H.record[C])==null?void 0:B.value.name;else if(w==="DATETIME"||w==="CREATED_TIME"||w==="UPDATED_TIME")((Y=H.record[C])==null?void 0:Y.value)!==void 0&&((ne=H.record[C])==null?void 0:ne.value)!==""?x=Formatter.dateFormat(new Date((V=H.record[C])==null?void 0:V.value),"yyyy-MM-dd HH:mm"):x=(u=H.record[C])==null?void 0:u.value;else if(w==="USER_SELECT"||w==="ORGANIZATION_SELECT"||w==="GROUP_SELECT"||w==="FILE"||w==="STATUS_ASSIGNEE")if(((X=H.record[C])==null?void 0:X.value)===void 0||((G=H.record[C])==null?void 0:G.value)==="")x=(I=H.record[C])==null?void 0:I.value;else{const le=(K=H.record[C])==null?void 0:K.value;let ve=[];for(let he=0;he<le.length;he++)ve.push(le[he].name);x=ve.join()}else if(w==="CATEGORY"||w==="CHECK_BOX"||w==="MULTI_SELECT")if(((U=H.record[C])==null?void 0:U.value)===void 0||((q=H.record[C])==null?void 0:q.value)==="")x=(oe=H.record[C])==null?void 0:oe.value;else{const le=(ue=H.record[C])==null?void 0:ue.value;let ve=[];for(let he=0;he<le.length;he++)ve.push(le[he]);x=ve.join()}else w==="STATUS"&&H.type.includes("process")?x=H.nextStatus.value:x=(pe=H.record[C])==null?void 0:pe.value;return x==null&&(x=""),x};if(this.actionProps=e.actionProps,!("saveField"in e.ActionValue)&&!("joinField1"in e.ActionValue)&&!("joinField2"in e.ActionValue))return r;this.props=e.ActionValue;const s=t.record,l=this.props.joinField1.type,f=this.props.joinField2.type,E=this.props.saveField.type;if(!(E==="SINGLE_LINE_TEXT"||E==="MULTI_LINE_TEXT"||E==="RICH_TEXT"))return t.error="[エラーメッセージ]:結合保存先対応不可。結合しません",t.type.includes("success")&&window.alert("[windows alert]:"+t.error),r={canNext:!1,result:!1},r;let d="";d=o(d,l,this.props.joinField1.code,t);let g="";g=o(g,f,this.props.joinField2.code,t);const y=this.props.delimiter;let S="";if(d===""&&g===""?S="":d===""&&g!==""?S=g:g===""&&d!==""?S=d:d!==""&&g!==""&&(S=`${d}${y}${g}`),!t.type.includes("success"))s[this.props.saveField.code].value=S,window.alert("文字結合行いました。"+this.props.joinField1.name+":"+d+","+this.props.joinField2.name+":"+g+"。");else{const x={app:t.appId,id:t.recordId,record:{[this.props.saveField.code]:{value:S}}};return await kintone.api(kintone.api.url("/k/v1/record",!0),"PUT",x).then(w=>{s[this.props.saveField.code].value=S,t.type.includes("index")?window.alert("文字結合行いました。"+this.props.joinField1.name+":"+d+","+this.props.joinField2.name+":"+g+"。一覧画面更新成功後自動リロードしません。必要に応じて手動リロードください。"):window.alert("文字結合行いました。"+this.props.joinField1.name+":"+d+","+this.props.joinField2.name+":"+g+"。")}).catch(w=>(t.error="エラーが発生しました。結合しません。システム管理者へお問合せください",window.alert(t.error+"error message:"+w),t))}return r={canNext:!0,result:!0},r}catch(o){return t.type.includes("success")&&window.alert("[windows alert]:処理中異常が発生しました。結合しません。システム担当者へお問合せください。errorメッセージ:"+o),t.error="[エラーメッセージ]:処理中異常が発生しました。結合しません。システム担当者へお問合せください。errorメッセージ:"+o,{canNext:!1,result:!1}}}register(){actionAddins[this.name]=this}}new StringJoinAction;class FullWidthAction{constructor(){F(this,"name");F(this,"actionProps");F(this,"props");this.name="全角チェック",this.actionProps=[],this.props={field:{code:""}},this.register()}async process(e,t,r){var s;let o={canNext:!0,result:!1};try{if(this.actionProps=e.actionProps,!("field"in e.ActionValue))return o;this.props=e.ActionValue;const l=t.record,f=(s=l[this.props.field.code])==null?void 0:s.value;return f===void 0||f===""?o:this.containsFullWidthChars(f)?(o={canNext:!0,result:!0},o):(l[this.props.field.code].error="半角が含まれています",o.canNext=!1,o)}catch(l){return t.error=l,console.error(l),o.canNext=!1,o}}containsFullWidthChars(e){const t="^[^-~。-゚]+$";return new RegExp(t).test(e)}register(){actionAddins[this.name]=this}}new FullWidthAction;class HalfWidthAction{constructor(){F(this,"name");F(this,"actionProps");F(this,"props");this.name="半角チェック",this.actionProps=[],this.props={field:{code:""}},this.register()}async process(e,t,r){var s;let o={canNext:!0,result:!1};try{if(this.actionProps=e.actionProps,!("field"in e.ActionValue))return o;this.props=e.ActionValue;const l=t.record,f=(s=l[this.props.field.code])==null?void 0:s.value;return f===void 0||f===""?o:this.containsHalfWidthChars(f)?(o={canNext:!0,result:!0},o):(l[this.props.field.code].error="全角が含まれています",o.canNext=!1,o)}catch(l){return t.error=l,console.error(l),o.canNext=!1,o}}containsHalfWidthChars(e){const t="^[-~。-゚]+$";return new RegExp(t).test(e)}register(){actionAddins[this.name]=this}}new HalfWidthAction;class LoginUserGetterAction{constructor(){F(this,"name");F(this,"actionProps");F(this,"props");this.name="ログインユーザー取得",this.actionProps=[],this.register(),this.props={verName:{name:""}},this.register()}async process(e,t,r){let o={canNext:!0,result:!1};try{return this.actionProps=e.actionProps,"verName"in e.ActionValue&&(this.props=e.ActionValue,this.props.verName&&this.props.verName.name!==""&&(r.variables[this.props.verName.name]=kintone.getLoginUser()),o={canNext:!0,result:!0}),o}catch(s){return t.error=s.message,{canNext:!1,result:!1}}}register(){actionAddins[this.name]=this}}new LoginUserGetterAction;var index_browser={},platform$2={};(function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.injectPlatformDeps=n.platformDeps=void 0,n.platformDeps={readFileFromPath:function(){throw new Error("not implemented")},getRequestToken:function(){throw new Error("not implemented")},getDefaultAuth:function(){throw new Error("not implemented")},buildPlatformDependentConfig:function(){throw new Error("not implemented")},buildHeaders:function(){throw new Error("not implemented")},buildFormDataValue:function(){throw new Error("not implemented")},buildBaseUrl:function(){throw new Error("not implemented")},getVersion:function(){throw new Error("not implemented")}};var e=function(t){t.readFileFromPath&&(n.platformDeps.readFileFromPath=t.readFileFromPath),t.getRequestToken&&(n.platformDeps.getRequestToken=t.getRequestToken),t.getDefaultAuth&&(n.platformDeps.getDefaultAuth=t.getDefaultAuth),t.buildPlatformDependentConfig&&(n.platformDeps.buildPlatformDependentConfig=t.buildPlatformDependentConfig),t.buildHeaders&&(n.platformDeps.buildHeaders=t.buildHeaders),t.buildFormDataValue&&(n.platformDeps.buildFormDataValue=t.buildFormDataValue),t.buildBaseUrl&&(n.platformDeps.buildBaseUrl=t.buildBaseUrl),t.getVersion&&(n.platformDeps.getVersion=t.getVersion)};n.injectPlatformDeps=e})(platform$2);var browser$2={},UnsupportedPlatformError$1={},__extends$8=commonjsGlobal&&commonjsGlobal.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(r[s]=o[s])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}();Object.defineProperty(UnsupportedPlatformError$1,"__esModule",{value:!0});UnsupportedPlatformError$1.UnsupportedPlatformError=void 0;var UnsupportedPlatformError=function(n){__extends$8(e,n);function e(t){var r=this,o="This function is not supported in ".concat(t," environment");return r=n.call(this,o)||this,Error.captureStackTrace&&Error.captureStackTrace(r,e),r.name="UnsupportedPlatformError",r.platform=t,Object.setPrototypeOf(r,e.prototype),r}return e}(Error);UnsupportedPlatformError$1.UnsupportedPlatformError=UnsupportedPlatformError;function Mime$1(){this._types=Object.create(null),this._extensions=Object.create(null);for(let n=0;n<arguments.length;n++)this.define(arguments[n]);this.define=this.define.bind(this),this.getType=this.getType.bind(this),this.getExtension=this.getExtension.bind(this)}Mime$1.prototype.define=function(n,e){for(let t in n){let r=n[t].map(function(o){return o.toLowerCase()});t=t.toLowerCase();for(let o=0;o<r.length;o++){const s=r[o];if(s[0]!=="*"){if(!e&&s in this._types)throw new Error('Attempt to change mapping for "'+s+'" extension from "'+this._types[s]+'" to "'+t+'". Pass `force=true` to allow this, otherwise remove "'+s+'" from the list of extensions for "'+t+'".');this._types[s]=t}}if(e||!this._extensions[t]){const o=r[0];this._extensions[t]=o[0]!=="*"?o:o.substr(1)}}};Mime$1.prototype.getType=function(n){n=String(n);let e=n.replace(/^.*[/\\]/,"").toLowerCase(),t=e.replace(/^.*\./,"").toLowerCase(),r=e.length<n.length;return(t.length<e.length-1||!r)&&this._types[t]||null};Mime$1.prototype.getExtension=function(n){return n=/^\s*([^;\s]*)/.test(n)&&RegExp.$1,n&&this._extensions[n.toLowerCase()]||null};var Mime_1=Mime$1,standard={"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["es","ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":["*3gpp"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avif":["avif"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/hsj2":["hsj2"],"image/ief":["ief"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpeg","jpg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm"],"image/jpx":["jpx","jpf"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]};let Mime=Mime_1;var lite=new Mime(standard);const name="@kintone/rest-api-client",version="5.5.2",publishConfig={access:"public"},author={name:"Cybozu, Inc.",url:"https://cybozu.co.jp"},description="Kintone REST API client for JavaScript",main$1="lib/src/index.js",module="esm/src/index.js",browser$1="lib/src/index.browser.js",types="lib/src/index.d.ts",scripts={prebuild:"pnpm clean",build:"tsc --build --force",postbuild:"run-p build:*",lint:"eslint 'src/**/*.ts' --max-warnings 0",prepublishOnly:"run-p build:umd_*",test:"cross-env NODE_OPTIONS=--experimental-vm-modules npx jest","test:ci":"cross-env NODE_OPTIONS=--experimental-vm-modules npx jest --runInBand","build:umd_dev":"rollup -c --environment BUILD:development","build:umd_prod":"rollup -c --environment BUILD:production",clean:"rimraf lib esm umd",fix:"pnpm lint --fix",start:"pnpm build --watch"},repository={type:"git",url:"git+https://github.com/kintone/js-sdk.git",directory:"packages/rest-api-client"},files=["esm","lib","umd","index.mjs"],keywords=["kintone","rest","api-client"],license="MIT",bugs={url:"https://github.com/kintone/js-sdk/issues"},homepage="https://github.com/kintone/js-sdk/tree/main/packages/rest-api-client#readme",engines={node:">=18"},devDependencies={"@rollup/plugin-babel":"^6.0.4","@rollup/plugin-commonjs":"^26.0.1","@rollup/plugin-json":"^6.1.0","@rollup/plugin-node-resolve":"^15.2.3","@rollup/plugin-terser":"^0.4.4","@types/core-js":"^2.5.8","@types/js-base64":"^3.3.1","@types/mime":"^3.0.4","@types/qs":"^6.9.15",rollup:"^4.18.0","rollup-plugin-ecma-version-validator":"^0.2.13","rollup-plugin-license":"^3.4.0","rollup-plugin-node-globals":"^1.4.0","rollup-plugin-polyfill-node":"^0.13.0",webpack:"^5.92.0","webpack-cli":"^5.1.4","babel-loader":"^9.1.3",vite:"^5.2.13",rimraf:"^5.0.7","cross-env":"^7.0.3"},dependencies={"core-js":"^3.37.1",axios:"^1.7.2","form-data":"^4.0.0","js-base64":"^3.7.7",mime:"^3.0.0",qs:"^6.12.1"},exports={".":{types:{import:"./esm/src/index.d.ts",require:"./lib/src/index.d.ts",default:"./lib/src/index.d.ts"},node:{import:"./index.mjs",require:"./lib/src/index.js",default:"./lib/src/index.js"},browser:"./lib/src/index.browser.js"},"./package.json":"./package.json"},require$$2={name,version,publishConfig,author,description,main:main$1,module,browser:browser$1,types,scripts,repository,files,keywords,license,bugs,homepage,engines,devDependencies,dependencies,exports};var __awaiter$5=commonjsGlobal&&commonjsGlobal.__awaiter||function(n,e,t,r){function o(s){return s instanceof t?s:new t(function(l){l(s)})}return new(t||(t=Promise))(function(s,l){function f(g){try{d(r.next(g))}catch(y){l(y)}}function E(g){try{d(r.throw(g))}catch(y){l(y)}}function d(g){g.done?s(g.value):o(g.value).then(f,E)}d((r=r.apply(n,e||[])).next())})},__generator$5=commonjsGlobal&&commonjsGlobal.__generator||function(n,e){var t={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,o,s,l;return l={next:f(0),throw:f(1),return:f(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function f(d){return function(g){return E([d,g])}}function E(d){if(r)throw new TypeError("Generator is already executing.");for(;l&&(l=0,d[0]&&(t=0)),t;)try{if(r=1,o&&(s=d[0]&2?o.return:d[0]?o.throw||((s=o.return)&&s.call(o),0):o.next)&&!(s=s.call(o,d[1])).done)return s;switch(o=0,s&&(d=[d[0]&2,s.value]),d[0]){case 0:case 1:s=d;break;case 4:return t.label++,{value:d[1],done:!1};case 5:t.label++,o=d[1],d=[0];continue;case 7:d=t.ops.pop(),t.trys.pop();continue;default:if(s=t.trys,!(s=s.length>0&&s[s.length-1])&&(d[0]===6||d[0]===2)){t=0;continue}if(d[0]===3&&(!s||d[1]>s[0]&&d[1]<s[3])){t.label=d[1];break}if(d[0]===6&&t.label<s[1]){t.label=s[1],s=d;break}if(s&&t.label<s[2]){t.label=s[2],t.ops.push(d);break}s[2]&&t.ops.pop(),t.trys.pop();continue}d=e.call(n,t)}catch(g){d=[6,g],o=0}finally{r=s=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}},__importDefault$3=commonjsGlobal&&commonjsGlobal.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(browser$2,"__esModule",{value:!0});browser$2.getVersion=browser$2.buildBaseUrl=browser$2.buildFormDataValue=browser$2.buildHeaders=browser$2.buildPlatformDependentConfig=browser$2.getDefaultAuth=browser$2.getRequestToken=browser$2.readFileFromPath=void 0;var UnsupportedPlatformError_1$2=UnsupportedPlatformError$1,lite_1=__importDefault$3(lite),package_json_1=__importDefault$3(require$$2),readFileFromPath=function(n){throw new UnsupportedPlatformError_1$2.UnsupportedPlatformError("Browser")};browser$2.readFileFromPath=readFileFromPath;var getRequestToken=function(){return __awaiter$5(void 0,void 0,void 0,function(){var n,e;return __generator$5(this,function(t){if(typeof kintone=="object"&&kintone!==null&&typeof kintone.getRequestToken=="function")return[2,kintone.getRequestToken()];if(typeof garoon=="object"&&garoon!==null&&typeof((e=(n=garoon.connect)===null||n===void 0?void 0:n.kintone)===null||e===void 0?void 0:e.getRequestToken)=="function")return[2,garoon.connect.kintone.getRequestToken()];throw new Error("session authentication must specify a request token")})})};browser$2.getRequestToken=getRequestToken;var getDefaultAuth=function(){return{type:"session"}};browser$2.getDefaultAuth=getDefaultAuth;var buildPlatformDependentConfig=function(){return{}};browser$2.buildPlatformDependentConfig=buildPlatformDependentConfig;var buildHeaders=function(){return{}};browser$2.buildHeaders=buildHeaders;var buildFormDataValue=function(n,e){var t={};return e&&(t.type=lite_1.default.getType(e)||void 0),new Blob([n],t)};browser$2.buildFormDataValue=buildFormDataValue;var buildBaseUrl=function(n){if(n)return n;if(location===void 0)throw new Error("The baseUrl parameter is required for this environment");var e=location.host,t=location.protocol;return"".concat(t,"//").concat(e)};browser$2.buildBaseUrl=buildBaseUrl;var getVersion=function(){return package_json_1.default.version};browser$2.getVersion=getVersion;var KintoneRestAPIClient$1={},BulkRequestClient$1={},BaseClient$1={},url={};Object.defineProperty(url,"__esModule",{value:!0});url.buildPath=void 0;var buildPath=function(n){var e=n.endpointName,t=n.guestSpaceId,r=n.preview,o=t!==void 0?"/guest/".concat(t):"",s=r?"/preview":"";return"/k".concat(o,"/v1").concat(s,"/").concat(e,".json")};url.buildPath=buildPath;var __assign$7=commonjsGlobal&&commonjsGlobal.__assign||function(){return __assign$7=Object.assign||function(n){for(var e,t=1,r=arguments.length;t<r;t++){e=arguments[t];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o])}return n},__assign$7.apply(this,arguments)};Object.defineProperty(BaseClient$1,"__esModule",{value:!0});BaseClient$1.BaseClient=void 0;var url_1=url,BaseClient=function(){function n(e,t){this.client=e,this.guestSpaceId=t}return n.prototype.buildPathWithGuestSpaceId=function(e){return(0,url_1.buildPath)(__assign$7(__assign$7({},e),{guestSpaceId:this.guestSpaceId}))},n.prototype.buildPath=function(e){return(0,url_1.buildPath)(e)},n}();BaseClient$1.BaseClient=BaseClient;var __extends$7=commonjsGlobal&&commonjsGlobal.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(r[s]=o[s])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),__assign$6=commonjsGlobal&&commonjsGlobal.__assign||function(){return __assign$6=Object.assign||function(n){for(var e,t=1,r=arguments.length;t<r;t++){e=arguments[t];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o])}return n},__assign$6.apply(this,arguments)},__rest$3=commonjsGlobal&&commonjsGlobal.__rest||function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(n);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(n,r[o])&&(t[r[o]]=n[r[o]]);return t};Object.defineProperty(BulkRequestClient$1,"__esModule",{value:!0});BulkRequestClient$1.BulkRequestClient=void 0;var BaseClient_1$4=BaseClient$1,BulkRequestClient=function(n){__extends$7(e,n);function e(t,r){var o=n.call(this,t,r)||this;return o.REQUESTS_LENGTH_LIMIT=20,o}return e.prototype.send=function(t){var r=this,o=t.requests,s=o.map(function(f){if("endpointName"in f){var E=f.endpointName,d=__rest$3(f,["endpointName"]);return __assign$6({api:r.buildPathWithGuestSpaceId({endpointName:E})},d)}return f}),l=this.buildPathWithGuestSpaceId({endpointName:"bulkRequest"});return this.client.post(l,{requests:s})},e}(BaseClient_1$4.BaseClient);BulkRequestClient$1.BulkRequestClient=BulkRequestClient;var AppClient$1={},__extends$6=commonjsGlobal&&commonjsGlobal.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(r[s]=o[s])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),__assign$5=commonjsGlobal&&commonjsGlobal.__assign||function(){return __assign$5=Object.assign||function(n){for(var e,t=1,r=arguments.length;t<r;t++){e=arguments[t];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o])}return n},__assign$5.apply(this,arguments)},__awaiter$4=commonjsGlobal&&commonjsGlobal.__awaiter||function(n,e,t,r){function o(s){return s instanceof t?s:new t(function(l){l(s)})}return new(t||(t=Promise))(function(s,l){function f(g){try{d(r.next(g))}catch(y){l(y)}}function E(g){try{d(r.throw(g))}catch(y){l(y)}}function d(g){g.done?s(g.value):o(g.value).then(f,E)}d((r=r.apply(n,e||[])).next())})},__generator$4=commonjsGlobal&&commonjsGlobal.__generator||function(n,e){var t={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,o,s,l;return l={next:f(0),throw:f(1),return:f(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function f(d){return function(g){return E([d,g])}}function E(d){if(r)throw new TypeError("Generator is already executing.");for(;l&&(l=0,d[0]&&(t=0)),t;)try{if(r=1,o&&(s=d[0]&2?o.return:d[0]?o.throw||((s=o.return)&&s.call(o),0):o.next)&&!(s=s.call(o,d[1])).done)return s;switch(o=0,s&&(d=[d[0]&2,s.value]),d[0]){case 0:case 1:s=d;break;case 4:return t.label++,{value:d[1],done:!1};case 5:t.label++,o=d[1],d=[0];continue;case 7:d=t.ops.pop(),t.trys.pop();continue;default:if(s=t.trys,!(s=s.length>0&&s[s.length-1])&&(d[0]===6||d[0]===2)){t=0;continue}if(d[0]===3&&(!s||d[1]>s[0]&&d[1]<s[3])){t.label=d[1];break}if(d[0]===6&&t.label<s[1]){t.label=s[1],s=d;break}if(s&&t.label<s[2]){t.label=s[2],t.ops.push(d);break}s[2]&&t.ops.pop(),t.trys.pop();continue}d=e.call(n,t)}catch(g){d=[6,g],o=0}finally{r=s=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}},__rest$2=commonjsGlobal&&commonjsGlobal.__rest||function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(n);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(n,r[o])&&(t[r[o]]=n[r[o]]);return t};Object.defineProperty(AppClient$1,"__esModule",{value:!0});AppClient$1.AppClient=void 0;var BaseClient_1$3=BaseClient$1,AppClient=function(n){__extends$6(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getFormFields=function(t){var r=t.preview,o=__rest$2(t,["preview"]),s=this.buildPathWithGuestSpaceId({endpointName:"app/form/fields",preview:r});return this.client.get(s,__assign$5({},o))},e.prototype.addFormFields=function(t){var r=this.buildPathWithGuestSpaceId({endpointName:"app/form/fields",preview:!0});return this.client.post(r,t)},e.prototype.updateFormFields=function(t){var r=this.buildPathWithGuestSpaceId({endpointName:"app/form/fields",preview:!0});return this.client.put(r,t)},e.prototype.deleteFormFields=function(t){var r=this.buildPathWithGuestSpaceId({endpointName:"app/form/fields",preview:!0});return this.client.delete(r,t)},e.prototype.getFormLayout=function(t){var r=t.preview,o=__rest$2(t,["preview"]),s=this.buildPathWithGuestSpaceId({endpointName:"app/form/layout",preview:r});return this.client.get(s,__assign$5({},o))},e.prototype.updateFormLayout=function(t){var r=this.buildPathWithGuestSpaceId({endpointName:"app/form/layout",preview:!0});return this.client.put(r,t)},e.prototype.getViews=function(t){var r=t.preview,o=__rest$2(t,["preview"]),s=this.buildPathWithGuestSpaceId({endpointName:"app/views",preview:r});return this.client.get(s,o)},e.prototype.updateViews=function(t){var r=this.buildPathWithGuestSpaceId({endpointName:"app/views",preview:!0});return this.client.put(r,t)},e.prototype.getApp=function(t){var r=this.buildPathWithGuestSpaceId({endpointName:"app"});return this.client.get(r,t)},e.prototype.getApps=function(t){var r=this.buildPathWithGuestSpaceId({endpointName:"apps"});return this.client.get(r,t)},e.prototype.addApp=function(t){return __awaiter$4(this,void 0,void 0,function(){var r,o,s,l,f;return __generator$4(this,function(E){switch(E.label){case 0:return r=t.name,o=t.space,s=this.buildPathWithGuestSpaceId({endpointName:"app",preview:!0}),o?(l=this.buildPathWithGuestSpaceId({endpointName:"space"}),[4,this.client.get(l,{id:o})]):[3,2];case 1:return f=E.sent().defaultThread,[2,this.client.post(s,__assign$5(__assign$5({},t),{thread:f}))];case 2:return[2,this.client.post(s,{name:r})]}})})},e.prototype.getAppSettings=function(t){var r=t.preview,o=__rest$2(t,["preview"]),s=this.buildPathWithGuestSpaceId({endpointName:"app/settings",preview:r});return this.client.get(s,o)},e.prototype.updateAppSettings=function(t){var r=this.buildPathWithGuestSpaceId({endpointName:"app/settings",preview:!0});return this.client.put(r,t)},e.prototype.getProcessManagement=function(t){var r=t.preview,o=__rest$2(t,["preview"]),s=this.buildPathWithGuestSpaceId({endpointName:"app/status",preview:r});return this.client.get(s,o)},e.prototype.updateProcessManagement=function(t){var r=this.buildPathWithGuestSpaceId({endpointName:"app/status",preview:!0});return this.client.put(r,t)},e.prototype.getDeployStatus=function(t){var r=this.buildPathWithGuestSpaceId({endpointName:"app/deploy",preview:!0});return this.client.get(r,t)},e.prototype.deployApp=function(t){var r=this.buildPathWithGuestSpaceId({endpointName:"app/deploy",preview:!0});return this.client.post(r,t)},e.prototype.getFieldAcl=function(t){var r=t.preview,o=__rest$2(t,["preview"]),s=this.buildPathWithGuestSpaceId({endpointName:"field/acl",preview:r});return this.client.get(s,__assign$5({},o))},e.prototype.updateFieldAcl=function(t){var r=this.buildPathWithGuestSpaceId({endpointName:"field/acl",preview:!0});return this.client.put(r,t)},e.prototype.getAppAcl=function(t){var r=t.preview,o=__rest$2(t,["preview"]),s=this.buildPathWithGuestSpaceId({endpointName:"app/acl",preview:r});return this.client.get(s,__assign$5({},o))},e.prototype.updateAppAcl=function(t){var r=this.buildPathWithGuestSpaceId({endpointName:"app/acl",preview:!0});return this.client.put(r,t)},e.prototype.evaluateRecordsAcl=function(t){var r=this.buildPathWithGuestSpaceId({endpointName:"records/acl/evaluate"});return this.client.get(r,t)},e.prototype.getRecordAcl=function(t){var r=t.preview,o=__rest$2(t,["preview"]),s=this.buildPathWithGuestSpaceId({endpointName:"record/acl",preview:r});return this.client.get(s,__assign$5({},o))},e.prototype.updateRecordAcl=function(t){var r=this.buildPathWithGuestSpaceId({endpointName:"record/acl",preview:!0});return this.client.put(r,t)},e.prototype.getAppCustomize=function(t){var r=t.preview,o=__rest$2(t,["preview"]),s=this.buildPathWithGuestSpaceId({endpointName:"app/customize",preview:r});return this.client.get(s,__assign$5({},o))},e.prototype.updateAppCustomize=function(t){var r=this.buildPathWithGuestSpaceId({endpointName:"app/customize",preview:!0});return this.client.put(r,t)},e.prototype.getGeneralNotifications=function(t){var r=t.preview,o=__rest$2(t,["preview"]),s=this.buildPathWithGuestSpaceId({endpointName:"app/notifications/general",preview:r});return this.client.get(s,__assign$5({},o))},e.prototype.updateGeneralNotifications=function(t){var r=this.buildPathWithGuestSpaceId({endpointName:"app/notifications/general",preview:!0});return this.client.put(r,t)},e.prototype.getPerRecordNotifications=function(t){var r=t.preview,o=__rest$2(t,["preview"]),s=this.buildPathWithGuestSpaceId({endpointName:"app/notifications/perRecord",preview:r});return this.client.get(s,o)},e.prototype.updatePerRecordNotifications=function(t){var r=this.buildPathWithGuestSpaceId({endpointName:"app/notifications/perRecord",preview:!0});return this.client.put(r,t)},e.prototype.getReminderNotifications=function(t){var r=t.preview,o=__rest$2(t,["preview"]),s=this.buildPathWithGuestSpaceId({endpointName:"app/notifications/reminder",preview:r});return this.client.get(s,o)},e.prototype.updateReminderNotifications=function(t){var r=this.buildPathWithGuestSpaceId({endpointName:"app/notifications/reminder",preview:!0});return this.client.put(r,t)},e.prototype.getReports=function(t){var r=t.preview,o=__rest$2(t,["preview"]),s=this.buildPathWithGuestSpaceId({endpointName:"app/reports",preview:r});return this.client.get(s,o)},e.prototype.updateReports=function(t){var r=this.buildPathWithGuestSpaceId({endpointName:"app/reports",preview:!0});return this.client.put(r,t)},e.prototype.getAppActions=function(t){var r=t.preview,o=__rest$2(t,["preview"]),s=this.buildPathWithGuestSpaceId({endpointName:"app/actions",preview:r});return this.client.get(s,o)},e.prototype.updateAppActions=function(t){var r=this.buildPathWithGuestSpaceId({endpointName:"app/actions",preview:!0});return this.client.put(r,t)},e}(BaseClient_1$3.BaseClient);AppClient$1.AppClient=AppClient;var RecordClient$1={},error={},KintoneAbortSearchError$1={},__extends$5=commonjsGlobal&&commonjsGlobal.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(r[s]=o[s])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}();Object.defineProperty(KintoneAbortSearchError$1,"__esModule",{value:!0});KintoneAbortSearchError$1.KintoneAbortSearchError=void 0;var KintoneAbortSearchError=function(n){__extends$5(e,n);function e(t){var r=n.call(this,t)||this;return r.name="KintoneAbortSearchError",r.message=t,Object.setPrototypeOf(r,e.prototype),r}return e}(Error);KintoneAbortSearchError$1.KintoneAbortSearchError=KintoneAbortSearchError;var KintoneAllRecordsError$1={},__extends$4=commonjsGlobal&&commonjsGlobal.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(r[s]=o[s])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}();Object.defineProperty(KintoneAllRecordsError$1,"__esModule",{value:!0});KintoneAllRecordsError$1.KintoneAllRecordsError=void 0;var KintoneAllRecordsError=function(n){__extends$4(e,n);function e(t,r,o,s,l){var f=this,E=o-r.length,d=e.extractErrorIndex(E,s,l),g=e.buildErrorMessage(E,o,d);return f=n.call(this,g)||this,f.name="KintoneAllRecordsError",f.processedRecordsResult=t,f.unprocessedRecords=r,f.error=s,f.errorIndex=d,f.message=g,f.numOfProcessedRecords=E,f.numOfAllRecords=o,Object.setPrototypeOf(f,e.prototype),f}return e.parseErrorIndex=function(t){var r=[];return Object.keys(t).forEach(function(o){var s=o.match(/records\[(\d+)\]/);s&&r.push(Number(s[1]))}),r.length>0?Math.min.apply(Math,r):null},e.extractErrorIndex=function(t,r,o){if(r.bulkRequestIndex!==void 0&&r.errors){var s=e.parseErrorIndex(r.errors);if(s!==null)return t+r.bulkRequestIndex*o+s}},e.buildErrorMessage=function(t,r,o){var s="";return o!==void 0&&(s="An error occurred at records[".concat(o,"]. ")),s+="".concat(t,"/").concat(r," records are processed successfully"),s},e}(Error);KintoneAllRecordsError$1.KintoneAllRecordsError=KintoneAllRecordsError;var KintoneRestAPIError$1={},__extends$3=commonjsGlobal&&commonjsGlobal.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(r[s]=o[s])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}();Object.defineProperty(KintoneRestAPIError$1,"__esModule",{value:!0});KintoneRestAPIError$1.KintoneRestAPIError=void 0;var KintoneRestAPIError=function(n){__extends$3(e,n);function e(t){var r=this,o=e.buildErrorResponseDateWithIndex(t),s=o.data,l=o.bulkRequestIndex;return r=n.call(this,s.message)||this,r.name="KintoneRestAPIError",r.id=s.id,r.code=s.code,r.errors=s.errors,r.status=t.status,r.bulkRequestIndex=l,r.headers=t.headers,r.message="[".concat(t.status,"] [").concat(r.code,"] ").concat(r.message," (").concat(r.id,")"),Error.captureStackTrace&&Error.captureStackTrace(r,e),Object.setPrototypeOf(r,e.prototype),r}return e.findErrorResponseDataWithIndex=function(t){for(var r=0;r<t.length;r++)if(Object.keys(t[r]).length!==0){var o=t[r];return{data:o,bulkRequestIndex:r}}throw Error("Missing response data in `results`. This error is likely caused by a bug in Kintone REST API Client. Please file an issue.")},e.buildErrorResponseDateWithIndex=function(t){return"results"in t.data?e.findErrorResponseDataWithIndex(t.data.results):{data:t.data}},e}(Error);KintoneRestAPIError$1.KintoneRestAPIError=KintoneRestAPIError;(function(n){var e=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(r,o,s,l){l===void 0&&(l=s);var f=Object.getOwnPropertyDescriptor(o,s);(!f||("get"in f?!o.__esModule:f.writable||f.configurable))&&(f={enumerable:!0,get:function(){return o[s]}}),Object.defineProperty(r,l,f)}:function(r,o,s,l){l===void 0&&(l=s),r[l]=o[s]}),t=commonjsGlobal&&commonjsGlobal.__exportStar||function(r,o){for(var s in r)s!=="default"&&!Object.prototype.hasOwnProperty.call(o,s)&&e(o,r,s)};Object.defineProperty(n,"__esModule",{value:!0}),t(KintoneAbortSearchError$1,n),t(KintoneAllRecordsError$1,n),t(KintoneRestAPIError$1,n)})(error);var __extends$2=commonjsGlobal&&commonjsGlobal.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(r[s]=o[s])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),__assign$4=commonjsGlobal&&commonjsGlobal.__assign||function(){return __assign$4=Object.assign||function(n){for(var e,t=1,r=arguments.length;t<r;t++){e=arguments[t];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o])}return n},__assign$4.apply(this,arguments)},__awaiter$3=commonjsGlobal&&commonjsGlobal.__awaiter||function(n,e,t,r){function o(s){return s instanceof t?s:new t(function(l){l(s)})}return new(t||(t=Promise))(function(s,l){function f(g){try{d(r.next(g))}catch(y){l(y)}}function E(g){try{d(r.throw(g))}catch(y){l(y)}}function d(g){g.done?s(g.value):o(g.value).then(f,E)}d((r=r.apply(n,e||[])).next())})},__generator$3=commonjsGlobal&&commonjsGlobal.__generator||function(n,e){var t={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,o,s,l;return l={next:f(0),throw:f(1),return:f(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function f(d){return function(g){return E([d,g])}}function E(d){if(r)throw new TypeError("Generator is already executing.");for(;l&&(l=0,d[0]&&(t=0)),t;)try{if(r=1,o&&(s=d[0]&2?o.return:d[0]?o.throw||((s=o.return)&&s.call(o),0):o.next)&&!(s=s.call(o,d[1])).done)return s;switch(o=0,s&&(d=[d[0]&2,s.value]),d[0]){case 0:case 1:s=d;break;case 4:return t.label++,{value:d[1],done:!1};case 5:t.label++,o=d[1],d=[0];continue;case 7:d=t.ops.pop(),t.trys.pop();continue;default:if(s=t.trys,!(s=s.length>0&&s[s.length-1])&&(d[0]===6||d[0]===2)){t=0;continue}if(d[0]===3&&(!s||d[1]>s[0]&&d[1]<s[3])){t.label=d[1];break}if(d[0]===6&&t.label<s[1]){t.label=s[1],s=d;break}if(s&&t.label<s[2]){t.label=s[2],t.ops.push(d);break}s[2]&&t.ops.pop(),t.trys.pop();continue}d=e.call(n,t)}catch(g){d=[6,g],o=0}finally{r=s=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}},__rest$1=commonjsGlobal&&commonjsGlobal.__rest||function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(n);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(n,r[o])&&(t[r[o]]=n[r[o]]);return t},__spreadArray=commonjsGlobal&&commonjsGlobal.__spreadArray||function(n,e,t){if(t||arguments.length===2)for(var r=0,o=e.length,s;r<o;r++)(s||!(r in e))&&(s||(s=Array.prototype.slice.call(e,0,r)),s[r]=e[r]);return n.concat(s||Array.prototype.slice.call(e))};Object.defineProperty(RecordClient$1,"__esModule",{value:!0});RecordClient$1.RecordClient=void 0;var error_1$1=error,BaseClient_1$2=BaseClient$1,ADD_RECORDS_LIMIT=100,UPDATE_RECORDS_LIMIT=100,DELETE_RECORDS_LIMIT=100,GET_RECORDS_LIMIT=500,RecordClient=function(n){__extends$2(e,n);function e(t,r,o){var s=n.call(this,t,o)||this;return s.bulkRequestClient=r,s.didWarnMaximumOffsetValue=!1,s}return e.prototype.getRecord=function(t){var r=this.buildPathWithGuestSpaceId({endpointName:"record"});return this.client.get(r,t)},e.prototype.addRecord=function(t){var r=this.buildPathWithGuestSpaceId({endpointName:"record"});return this.client.post(r,t)},e.prototype.updateRecord=function(t){var r=this.buildPathWithGuestSpaceId({endpointName:"record"});return this.client.put(r,t)},e.prototype.upsertRecord=function(t){return __awaiter$3(this,void 0,void 0,function(){var r,o,s,l,f,E;return __generator$3(this,function(d){switch(d.label){case 0:return r=t.app,o=t.updateKey,s=t.record,[4,this.getRecords({app:r,query:"".concat(o.field,' = "').concat(o.value,'"')})];case 1:return l=d.sent().records,l.length>0?l[0].$id.type!=="__ID__"?[3,3]:[4,this.updateRecord(t)]:[3,4];case 2:return f=d.sent().revision,[2,{id:l[0].$id.value,revision:f}];case 3:throw new Error("Missing `$id` in `getRecords` response. This error is likely caused by a bug in Kintone REST API Client. Please file an issue.");case 4:return[2,this.addRecord({app:r,record:Object.assign({},s,(E={},E[o.field]={value:o.value},E))})]}})})},e.prototype.getRecords=function(t){return __awaiter$3(this,void 0,void 0,function(){var r,o;return __generator$3(this,function(s){switch(s.label){case 0:return r=this.buildPathWithGuestSpaceId({endpointName:"records"}),[4,this.client.get(r,t)];case 1:return o=s.sent(),this.warnMaximumOffsetValueIfNeeded(t.query),[2,o]}})})},e.prototype.warnMaximumOffsetValueIfNeeded=function(t){if(t){var r=/offset\s+(\d+)/i,o=t.match(r);!this.didWarnMaximumOffsetValue&&o&&Number(o[1])>1e4&&(this.didWarnMaximumOffsetValue=!0,console.warn("Warning: The maximum offset value will be limited to 10,000 in the future. Please use `createCursor()` and `getRecordsByCursor()` instead."))}},e.prototype.addRecords=function(t){return __awaiter$3(this,void 0,void 0,function(){var r,o,s,l;return __generator$3(this,function(f){switch(f.label){case 0:return r=this.buildPathWithGuestSpaceId({endpointName:"records"}),[4,this.client.post(r,t)];case 1:return o=f.sent(),s=o.ids,l=o.revisions,[2,{ids:s,revisions:l,records:s.map(function(E,d){return{id:E,revision:l[d]}})}]}})})},e.prototype.updateRecords=function(t){var r=this.buildPathWithGuestSpaceId({endpointName:"records"});return this.client.put(r,t)},e.prototype.deleteRecords=function(t){var r=this.buildPathWithGuestSpaceId({endpointName:"records"});return this.client.delete(r,t)},e.prototype.createCursor=function(t){var r=this.buildPathWithGuestSpaceId({endpointName:"records/cursor"});return this.client.post(r,t)},e.prototype.getRecordsByCursor=function(t){var r=this.buildPathWithGuestSpaceId({endpointName:"records/cursor"});return this.client.get(r,t)},e.prototype.deleteCursor=function(t){var r=this.buildPathWithGuestSpaceId({endpointName:"records/cursor"});return this.client.delete(r,t)},e.prototype.getAllRecords=function(t){return __awaiter$3(this,void 0,void 0,function(){var r,o,s,l,f,E,d;return __generator$3(this,function(g){return r=t.condition,o=t.orderBy,s=t.withCursor,l=s===void 0?!0:s,f=__rest$1(t,["condition","orderBy","withCursor"]),o?l?(E=r?"".concat(r," "):"",d="".concat(E).concat(o?"order by ".concat(o):""),[2,this.getAllRecordsWithCursor(__assign$4(__assign$4({},f),{query:d}))]):[2,this.getAllRecordsWithOffset(__assign$4(__assign$4({},f),{orderBy:o,condition:r}))]:[2,this.getAllRecordsWithId(__assign$4(__assign$4({},f),{condition:r}))]})})},e.prototype.getAllRecordsWithId=function(t){return __awaiter$3(this,void 0,void 0,function(){var r,o,s,l,f,E,d,g,y,S;return __generator$3(this,function(x){switch(x.label){case 0:r=t.fields,o=t.condition,s=__rest$1(t,["fields","condition"]),l=r,l&&l.length>0&&l.indexOf("$id")===-1&&(l=__spreadArray(__spreadArray([],l,!0),["$id"],!1)),f=o?"(".concat(o,") and "):"",E=[],d="0",x.label=1;case 1:return g="".concat(f,"$id > ").concat(d," order by $id asc limit ").concat(GET_RECORDS_LIMIT),[4,this.getRecords(__assign$4(__assign$4({},s),{fields:l,query:g}))];case 2:if(y=x.sent(),E=E.concat(y.records),y.records.length<GET_RECORDS_LIMIT)return[3,3];if(S=y.records[y.records.length-1],S.$id.type==="__ID__")d=S.$id.value;else throw new Error("Missing `$id` in `getRecords` response. This error is likely caused by a bug in Kintone REST API Client. Please file an issue.");return[3,1];case 3:return[2,E]}})})},e.prototype.getAllRecordsWithOffset=function(t){return __awaiter$3(this,void 0,void 0,function(){var r,o,s,l,f,E,d,g;return __generator$3(this,function(y){switch(y.label){case 0:r=t.condition,o=t.orderBy,s=__rest$1(t,["condition","orderBy"]),l=r?"".concat(r," "):"",f=[],E=0,y.label=1;case 1:return d="".concat(l).concat(o?"order by ".concat(o," "):"","limit ").concat(GET_RECORDS_LIMIT," offset ").concat(E),[4,this.getRecords(__assign$4(__assign$4({},s),{query:d}))];case 2:return g=y.sent(),f=f.concat(g.records),g.records.length<GET_RECORDS_LIMIT?[3,3]:(E+=GET_RECORDS_LIMIT,[3,1]);case 3:return[2,f]}})})},e.prototype.getAllRecordsWithCursor=function(t){return __awaiter$3(this,void 0,void 0,function(){var r,o,s,l;return __generator$3(this,function(f){switch(f.label){case 0:return[4,this.createCursor(t)];case 1:r=f.sent().id,f.label=2;case 2:f.trys.push([2,6,,8]),o=[],f.label=3;case 3:return[4,this.getRecordsByCursor({id:r})];case 4:return s=f.sent(),o=o.concat(s.records),s.next?[3,3]:[3,5];case 5:return[2,o];case 6:return l=f.sent(),[4,this.deleteCursor({id:r})];case 7:throw f.sent(),l;case 8:return[2]}})})},e.prototype.addAllRecords=function(t){return __awaiter$3(this,void 0,void 0,function(){return __generator$3(this,function(r){if(!t.records.every(function(o){return!Array.isArray(o)&&o instanceof Object}))throw new Error("the `records` parameter must be an array of object.");return[2,this.addAllRecordsRecursive(t,t.records.length,[])]})})},e.prototype.addAllRecordsRecursive=function(t,r,o){return __awaiter$3(this,void 0,void 0,function(){var s,l,f,E,d,g;return __generator$3(this,function(y){switch(y.label){case 0:if(s=this.bulkRequestClient.REQUESTS_LENGTH_LIMIT*ADD_RECORDS_LIMIT,l=t.app,f=t.records,E=f.slice(0,s),E.length===0)return[2,{records:o}];y.label=1;case 1:return y.trys.push([1,3,,4]),[4,this.addAllRecordsWithBulkRequest({app:l,records:E})];case 2:return d=y.sent(),[3,4];case 3:throw g=y.sent(),new error_1$1.KintoneAllRecordsError({records:o},f,r,g,ADD_RECORDS_LIMIT);case 4:return[2,this.addAllRecordsRecursive({app:l,records:f.slice(s)},r,o.concat(d))]}})})},e.prototype.addAllRecordsWithBulkRequest=function(t){return __awaiter$3(this,void 0,void 0,function(){var r,o,s;return __generator$3(this,function(l){switch(l.label){case 0:return r=this.separateArrayRecursive(ADD_RECORDS_LIMIT,[],t.records),o=r.map(function(f){return{method:"POST",endpointName:"records",payload:{app:t.app,records:f}}}),[4,this.bulkRequestClient.send({requests:o})];case 1:return s=l.sent().results,[2,s.map(function(f){var E=f.ids,d=f.revisions;return E.map(function(g,y){return{id:g,revision:d[y]}})}).reduce(function(f,E){return f.concat(E)},[])]}})})},e.prototype.updateAllRecords=function(t){return __awaiter$3(this,void 0,void 0,function(){return __generator$3(this,function(r){return[2,this.updateAllRecordsRecursive(t,t.records.length,[])]})})},e.prototype.updateAllRecordsRecursive=function(t,r,o){return __awaiter$3(this,void 0,void 0,function(){var s,l,f,E,d,g;return __generator$3(this,function(y){switch(y.label){case 0:if(s=this.bulkRequestClient.REQUESTS_LENGTH_LIMIT*UPDATE_RECORDS_LIMIT,l=t.app,f=t.records,E=f.slice(0,s),E.length===0)return[2,{records:o}];y.label=1;case 1:return y.trys.push([1,3,,4]),[4,this.updateAllRecordsWithBulkRequest({app:l,records:E})];case 2:return d=y.sent(),[3,4];case 3:throw g=y.sent(),new error_1$1.KintoneAllRecordsError({records:o},f,r,g,UPDATE_RECORDS_LIMIT);case 4:return[2,this.updateAllRecordsRecursive({app:l,records:f.slice(s)},r,o.concat(d))]}})})},e.prototype.updateAllRecordsWithBulkRequest=function(t){return __awaiter$3(this,void 0,void 0,function(){var r,o,s;return __generator$3(this,function(l){switch(l.label){case 0:return r=this.separateArrayRecursive(UPDATE_RECORDS_LIMIT,[],t.records),o=r.map(function(f){return{method:"PUT",endpointName:"records",payload:{app:t.app,records:f}}}),[4,this.bulkRequestClient.send({requests:o})];case 1:return s=l.sent().results,[2,s.map(function(f){return f.records}).reduce(function(f,E){return f.concat(E)},[])]}})})},e.prototype.deleteAllRecords=function(t){return this.deleteAllRecordsRecursive(t,t.records.length)},e.prototype.deleteAllRecordsRecursive=function(t,r){return __awaiter$3(this,void 0,void 0,function(){var o,s,l,f,E;return __generator$3(this,function(d){switch(d.label){case 0:if(o=this.bulkRequestClient.REQUESTS_LENGTH_LIMIT*DELETE_RECORDS_LIMIT,s=t.app,l=t.records,f=l.slice(0,o),f.length===0)return[2,{}];d.label=1;case 1:return d.trys.push([1,3,,4]),[4,this.deleteAllRecordsWithBulkRequest({app:s,records:f})];case 2:return d.sent(),[3,4];case 3:throw E=d.sent(),new error_1$1.KintoneAllRecordsError({},l,r,E,DELETE_RECORDS_LIMIT);case 4:return[2,this.deleteAllRecordsRecursive({app:s,records:l.slice(o)},r)]}})})},e.prototype.deleteAllRecordsWithBulkRequest=function(t){return __awaiter$3(this,void 0,void 0,function(){var r,o;return __generator$3(this,function(s){switch(s.label){case 0:return r=this.separateArrayRecursive(DELETE_RECORDS_LIMIT,[],t.records),o=r.map(function(l){return{method:"DELETE",endpointName:"records",payload:{app:t.app,ids:l.map(function(f){return f.id}),revisions:l.map(function(f){return f.revision})}}}),[4,this.bulkRequestClient.send({requests:o})];case 1:return s.sent(),[2]}})})},e.prototype.separateArrayRecursive=function(t,r,o){var s=o.slice(0,t);return s.length===0?r:this.separateArrayRecursive(t,__spreadArray(__spreadArray([],r,!0),[s],!1),o.slice(t))},e.prototype.addRecordComment=function(t){var r=this.buildPathWithGuestSpaceId({endpointName:"record/comment"});return this.client.post(r,t)},e.prototype.deleteRecordComment=function(t){var r=this.buildPathWithGuestSpaceId({endpointName:"record/comment"});return this.client.delete(r,t)},e.prototype.getRecordComments=function(t){var r=this.buildPathWithGuestSpaceId({endpointName:"record/comments"});return this.client.get(r,t)},e.prototype.updateRecordAssignees=function(t){var r=this.buildPathWithGuestSpaceId({endpointName:"record/assignees"});return this.client.put(r,t)},e.prototype.updateRecordStatus=function(t){var r=this.buildPathWithGuestSpaceId({endpointName:"record/status"});return this.client.put(r,t)},e.prototype.updateRecordsStatus=function(t){var r=this.buildPathWithGuestSpaceId({endpointName:"records/status"});return this.client.put(r,t)},e}(BaseClient_1$2.BaseClient);RecordClient$1.RecordClient=RecordClient;var SpaceClient$1={},__extends$1=commonjsGlobal&&commonjsGlobal.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(r[s]=o[s])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}();Object.defineProperty(SpaceClient$1,"__esModule",{value:!0});SpaceClient$1.SpaceClient=void 0;var BaseClient_1$1=BaseClient$1,SpaceClient=function(n){__extends$1(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getSpace=function(t){var r=this.buildPathWithGuestSpaceId({endpointName:"space"});return this.client.get(r,t)},e.prototype.deleteSpace=function(t){var r=this.buildPathWithGuestSpaceId({endpointName:"space"});return this.client.delete(r,t)},e.prototype.updateSpaceBody=function(t){var r=this.buildPathWithGuestSpaceId({endpointName:"space/body"});return this.client.put(r,t)},e.prototype.getSpaceMembers=function(t){var r=this.buildPathWithGuestSpaceId({endpointName:"space/members"});return this.client.get(r,t)},e.prototype.updateSpaceMembers=function(t){var r=this.buildPathWithGuestSpaceId({endpointName:"space/members"});return this.client.put(r,t)},e.prototype.updateThread=function(t){var r=this.buildPathWithGuestSpaceId({endpointName:"space/thread"});return this.client.put(r,t)},e.prototype.addThreadComment=function(t){var r=this.buildPathWithGuestSpaceId({endpointName:"space/thread/comment"});return this.client.post(r,t)},e.prototype.addGuests=function(t){var r=this.buildPath({endpointName:"guests"});return this.client.post(r,t)},e.prototype.deleteGuests=function(t){var r=this.buildPath({endpointName:"guests"});return this.client.delete(r,t)},e.prototype.updateSpaceGuests=function(t){var r=this.buildPathWithGuestSpaceId({endpointName:"space/guests"});return this.client.put(r,t)},e.prototype.addSpaceFromTemplate=function(t){var r=this.buildPath({endpointName:"template/space"});return this.client.post(r,t)},e}(BaseClient_1$1.BaseClient);SpaceClient$1.SpaceClient=SpaceClient;var FileClient$1={},browser=typeof self=="object"?self.FormData:window.FormData,__extends=commonjsGlobal&&commonjsGlobal.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(r[s]=o[s])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),__awaiter$2=commonjsGlobal&&commonjsGlobal.__awaiter||function(n,e,t,r){function o(s){return s instanceof t?s:new t(function(l){l(s)})}return new(t||(t=Promise))(function(s,l){function f(g){try{d(r.next(g))}catch(y){l(y)}}function E(g){try{d(r.throw(g))}catch(y){l(y)}}function d(g){g.done?s(g.value):o(g.value).then(f,E)}d((r=r.apply(n,e||[])).next())})},__generator$2=commonjsGlobal&&commonjsGlobal.__generator||function(n,e){var t={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,o,s,l;return l={next:f(0),throw:f(1),return:f(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function f(d){return function(g){return E([d,g])}}function E(d){if(r)throw new TypeError("Generator is already executing.");for(;l&&(l=0,d[0]&&(t=0)),t;)try{if(r=1,o&&(s=d[0]&2?o.return:d[0]?o.throw||((s=o.return)&&s.call(o),0):o.next)&&!(s=s.call(o,d[1])).done)return s;switch(o=0,s&&(d=[d[0]&2,s.value]),d[0]){case 0:case 1:s=d;break;case 4:return t.label++,{value:d[1],done:!1};case 5:t.label++,o=d[1],d=[0];continue;case 7:d=t.ops.pop(),t.trys.pop();continue;default:if(s=t.trys,!(s=s.length>0&&s[s.length-1])&&(d[0]===6||d[0]===2)){t=0;continue}if(d[0]===3&&(!s||d[1]>s[0]&&d[1]<s[3])){t.label=d[1];break}if(d[0]===6&&t.label<s[1]){t.label=s[1],s=d;break}if(s&&t.label<s[2]){t.label=s[2],t.ops.push(d);break}s[2]&&t.ops.pop(),t.trys.pop();continue}d=e.call(n,t)}catch(g){d=[6,g],o=0}finally{r=s=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}},__importDefault$2=commonjsGlobal&&commonjsGlobal.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(FileClient$1,"__esModule",{value:!0});FileClient$1.FileClient=void 0;var form_data_1$1=__importDefault$2(browser),platform_1$2=platform$2,UnsupportedPlatformError_1$1=UnsupportedPlatformError$1,BaseClient_1=BaseClient$1,FileClient=function(n){__extends(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.uploadFile=function(t){return __awaiter$2(this,void 0,void 0,function(){var r,o,s,l,g,f,E,d,g,y;return __generator$2(this,function(S){switch(S.label){case 0:if(r=this.buildPathWithGuestSpaceId({endpointName:"file"}),o=new form_data_1$1.default,!("path"in t.file))return[3,5];S.label=1;case 1:return S.trys.push([1,3,,4]),[4,platform_1$2.platformDeps.readFileFromPath(t.file.path)];case 2:return s=S.sent(),l=s.name,g=s.data,o.append("file",g,l),[3,4];case 3:throw f=S.sent(),f instanceof UnsupportedPlatformError_1$1.UnsupportedPlatformError?new Error("uploadFile doesn't allow to accept a file path in ".concat(f.platform," environment.")):f;case 4:return[3,6];case 5:E=t.file,d=E.name,g=E.data,y=platform_1$2.platformDeps.buildFormDataValue(g,d),o.append("file",y,d),S.label=6;case 6:return[2,this.client.postData(r,o)]}})})},e.prototype.downloadFile=function(t){var r=this.buildPathWithGuestSpaceId({endpointName:"file"});return this.client.getData(r,t)},e}(BaseClient_1.BaseClient);FileClient$1.FileClient=FileClient;var http={},AxiosClient$1={};function bind$2(n,e){return function(){return n.apply(e,arguments)}}const{toString}=Object.prototype,{getPrototypeOf}=Object,kindOf=(n=>e=>{const t=toString.call(e);return n[t]||(n[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),kindOfTest=n=>(n=n.toLowerCase(),e=>kindOf(e)===n),typeOfTest=n=>e=>typeof e===n,{isArray:isArray$4}=Array,isUndefined=typeOfTest("undefined");function isBuffer$1(n){return n!==null&&!isUndefined(n)&&n.constructor!==null&&!isUndefined(n.constructor)&&isFunction(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const isArrayBuffer=kindOfTest("ArrayBuffer");function isArrayBufferView(n){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(n):e=n&&n.buffer&&isArrayBuffer(n.buffer),e}const isString$1=typeOfTest("string"),isFunction=typeOfTest("function"),isNumber$1=typeOfTest("number"),isObject=n=>n!==null&&typeof n=="object",isBoolean$1=n=>n===!0||n===!1,isPlainObject=n=>{if(kindOf(n)!=="object")return!1;const e=getPrototypeOf(n);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)},isDate$1=kindOfTest("Date"),isFile=kindOfTest("File"),isBlob=kindOfTest("Blob"),isFileList=kindOfTest("FileList"),isStream=n=>isObject(n)&&isFunction(n.pipe),isFormData=n=>{let e;return n&&(typeof FormData=="function"&&n instanceof FormData||isFunction(n.append)&&((e=kindOf(n))==="formdata"||e==="object"&&isFunction(n.toString)&&n.toString()==="[object FormData]"))},isURLSearchParams=kindOfTest("URLSearchParams"),[isReadableStream,isRequest,isResponse,isHeaders]=["ReadableStream","Request","Response","Headers"].map(kindOfTest),trim=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function forEach(n,e,{allOwnKeys:t=!1}={}){if(n===null||typeof n>"u")return;let r,o;if(typeof n!="object"&&(n=[n]),isArray$4(n))for(r=0,o=n.length;r<o;r++)e.call(null,n[r],r,n);else{const s=t?Object.getOwnPropertyNames(n):Object.keys(n),l=s.length;let f;for(r=0;r<l;r++)f=s[r],e.call(null,n[f],f,n)}}function findKey(n,e){e=e.toLowerCase();const t=Object.keys(n);let r=t.length,o;for(;r-- >0;)if(o=t[r],e===o.toLowerCase())return o;return null}const _global=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:commonjsGlobal)(),isContextDefined=n=>!isUndefined(n)&&n!==_global;function merge$1(){const{caseless:n}=isContextDefined(this)&&this||{},e={},t=(r,o)=>{const s=n&&findKey(e,o)||o;isPlainObject(e[s])&&isPlainObject(r)?e[s]=merge$1(e[s],r):isPlainObject(r)?e[s]=merge$1({},r):isArray$4(r)?e[s]=r.slice():e[s]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&forEach(arguments[r],t);return e}const extend=(n,e,t,{allOwnKeys:r}={})=>(forEach(e,(o,s)=>{t&&isFunction(o)?n[s]=bind$2(o,t):n[s]=o},{allOwnKeys:r}),n),stripBOM=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),inherits=(n,e,t,r)=>{n.prototype=Object.create(e.prototype,r),n.prototype.constructor=n,Object.defineProperty(n,"super",{value:e.prototype}),t&&Object.assign(n.prototype,t)},toFlatObject=(n,e,t,r)=>{let o,s,l;const f={};if(e=e||{},n==null)return e;do{for(o=Object.getOwnPropertyNames(n),s=o.length;s-- >0;)l=o[s],(!r||r(l,n,e))&&!f[l]&&(e[l]=n[l],f[l]=!0);n=t!==!1&&getPrototypeOf(n)}while(n&&(!t||t(n,e))&&n!==Object.prototype);return e},endsWith=(n,e,t)=>{n=String(n),(t===void 0||t>n.length)&&(t=n.length),t-=e.length;const r=n.indexOf(e,t);return r!==-1&&r===t},toArray=n=>{if(!n)return null;if(isArray$4(n))return n;let e=n.length;if(!isNumber$1(e))return null;const t=new Array(e);for(;e-- >0;)t[e]=n[e];return t},isTypedArray=(n=>e=>n&&e instanceof n)(typeof Uint8Array<"u"&&getPrototypeOf(Uint8Array)),forEachEntry=(n,e)=>{const r=(n&&n[Symbol.iterator]).call(n);let o;for(;(o=r.next())&&!o.done;){const s=o.value;e.call(n,s[0],s[1])}},matchAll=(n,e)=>{let t;const r=[];for(;(t=n.exec(e))!==null;)r.push(t);return r},isHTMLForm=kindOfTest("HTMLFormElement"),toCamelCase=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,r,o){return r.toUpperCase()+o}),hasOwnProperty=(({hasOwnProperty:n})=>(e,t)=>n.call(e,t))(Object.prototype),isRegExp$2=kindOfTest("RegExp"),reduceDescriptors=(n,e)=>{const t=Object.getOwnPropertyDescriptors(n),r={};forEach(t,(o,s)=>{let l;(l=e(o,s,n))!==!1&&(r[s]=l||o)}),Object.defineProperties(n,r)},freezeMethods=n=>{reduceDescriptors(n,(e,t)=>{if(isFunction(n)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const r=n[t];if(isFunction(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},toObjectSet=(n,e)=>{const t={},r=o=>{o.forEach(s=>{t[s]=!0})};return isArray$4(n)?r(n):r(String(n).split(e)),t},noop$1=()=>{},toFiniteNumber=(n,e)=>n!=null&&Number.isFinite(n=+n)?n:e,ALPHA="abcdefghijklmnopqrstuvwxyz",DIGIT="0123456789",ALPHABET={DIGIT,ALPHA,ALPHA_DIGIT:ALPHA+ALPHA.toUpperCase()+DIGIT},generateString=(n=16,e=ALPHABET.ALPHA_DIGIT)=>{let t="";const{length:r}=e;for(;n--;)t+=e[Math.random()*r|0];return t};function isSpecCompliantForm(n){return!!(n&&isFunction(n.append)&&n[Symbol.toStringTag]==="FormData"&&n[Symbol.iterator])}const toJSONObject=n=>{const e=new Array(10),t=(r,o)=>{if(isObject(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[o]=r;const s=isArray$4(r)?[]:{};return forEach(r,(l,f)=>{const E=t(l,o+1);!isUndefined(E)&&(s[f]=E)}),e[o]=void 0,s}}return r};return t(n,0)},isAsyncFn=kindOfTest("AsyncFunction"),isThenable=n=>n&&(isObject(n)||isFunction(n))&&isFunction(n.then)&&isFunction(n.catch);var utils$1$1={isArray:isArray$4,isArrayBuffer,isBuffer:isBuffer$1,isFormData,isArrayBufferView,isString:isString$1,isNumber:isNumber$1,isBoolean:isBoolean$1,isObject,isPlainObject,isReadableStream,isRequest,isResponse,isHeaders,isUndefined,isDate:isDate$1,isFile,isBlob,isRegExp:isRegExp$2,isFunction,isStream,isURLSearchParams,isTypedArray,isFileList,forEach,merge:merge$1,extend,trim,stripBOM,inherits,toFlatObject,kindOf,kindOfTest,endsWith,toArray,forEachEntry,matchAll,isHTMLForm,hasOwnProperty,hasOwnProp:hasOwnProperty,reduceDescriptors,freezeMethods,toObjectSet,toCamelCase,noop:noop$1,toFiniteNumber,findKey,global:_global,isContextDefined,ALPHABET,generateString,isSpecCompliantForm,toJSONObject,isAsyncFn,isThenable};function AxiosError(n,e,t,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=n,this.name="AxiosError",e&&(this.code=e),t&&(this.config=t),r&&(this.request=r),o&&(this.response=o)}utils$1$1.inherits(AxiosError,Error,{toJSON:function n(){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:utils$1$1.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const prototype$1=AxiosError.prototype,descriptors={};["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(n=>{descriptors[n]={value:n}});Object.defineProperties(AxiosError,descriptors);Object.defineProperty(prototype$1,"isAxiosError",{value:!0});AxiosError.from=(n,e,t,r,o,s)=>{const l=Object.create(prototype$1);return utils$1$1.toFlatObject(n,l,function(E){return E!==Error.prototype},f=>f!=="isAxiosError"),AxiosError.call(l,n.message,e,t,r,o),l.cause=n,l.name=n.name,s&&Object.assign(l,s),l};var httpAdapter=null;function isVisitable(n){return utils$1$1.isPlainObject(n)||utils$1$1.isArray(n)}function removeBrackets(n){return utils$1$1.endsWith(n,"[]")?n.slice(0,-2):n}function renderKey(n,e,t){return n?n.concat(e).map(function(o,s){return o=removeBrackets(o),!t&&s?"["+o+"]":o}).join(t?".":""):e}function isFlatArray(n){return utils$1$1.isArray(n)&&!n.some(isVisitable)}const predicates=utils$1$1.toFlatObject(utils$1$1,{},null,function n(e){return/^is[A-Z]/.test(e)});function toFormData(n,e,t){if(!utils$1$1.isObject(n))throw new TypeError("target must be an object");e=e||new FormData,t=utils$1$1.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(C,H){return!utils$1$1.isUndefined(H[C])});const r=t.metaTokens,o=t.visitor||g,s=t.dots,l=t.indexes,E=(t.Blob||typeof Blob<"u"&&Blob)&&utils$1$1.isSpecCompliantForm(e);if(!utils$1$1.isFunction(o))throw new TypeError("visitor must be a function");function d(w){if(w===null)return"";if(utils$1$1.isDate(w))return w.toISOString();if(!E&&utils$1$1.isBlob(w))throw new AxiosError("Blob is not supported. Use a Buffer instead.");return utils$1$1.isArrayBuffer(w)||utils$1$1.isTypedArray(w)?E&&typeof Blob=="function"?new Blob([w]):Buffer.from(w):w}function g(w,C,H){let D=w;if(w&&!H&&typeof w=="object"){if(utils$1$1.endsWith(C,"{}"))C=r?C:C.slice(0,-2),w=JSON.stringify(w);else if(utils$1$1.isArray(w)&&isFlatArray(w)||(utils$1$1.isFileList(w)||utils$1$1.endsWith(C,"[]"))&&(D=utils$1$1.toArray(w)))return C=removeBrackets(C),D.forEach(function(B,Y){!(utils$1$1.isUndefined(B)||B===null)&&e.append(l===!0?renderKey([C],Y,s):l===null?C:C+"[]",d(B))}),!1}return isVisitable(w)?!0:(e.append(renderKey(H,C,s),d(w)),!1)}const y=[],S=Object.assign(predicates,{defaultVisitor:g,convertValue:d,isVisitable});function x(w,C){if(!utils$1$1.isUndefined(w)){if(y.indexOf(w)!==-1)throw Error("Circular reference detected in "+C.join("."));y.push(w),utils$1$1.forEach(w,function(D,Z){(!(utils$1$1.isUndefined(D)||D===null)&&o.call(e,D,utils$1$1.isString(Z)?Z.trim():Z,C,S))===!0&&x(D,C?C.concat(Z):[Z])}),y.pop()}}if(!utils$1$1.isObject(n))throw new TypeError("data must be an object");return x(n),e}function encode$1(n){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function AxiosURLSearchParams(n,e){this._pairs=[],n&&toFormData(n,this,e)}const prototype=AxiosURLSearchParams.prototype;prototype.append=function n(e,t){this._pairs.push([e,t])};prototype.toString=function n(e){const t=e?function(r){return e.call(this,r,encode$1)}:encode$1;return this._pairs.map(function(o){return t(o[0])+"="+t(o[1])},"").join("&")};function encode$2(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function buildURL(n,e,t){if(!e)return n;const r=t&&t.encode||encode$2,o=t&&t.serialize;let s;if(o?s=o(e,t):s=utils$1$1.isURLSearchParams(e)?e.toString():new AxiosURLSearchParams(e,t).toString(r),s){const l=n.indexOf("#");l!==-1&&(n=n.slice(0,l)),n+=(n.indexOf("?")===-1?"?":"&")+s}return n}class InterceptorManager{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){utils$1$1.forEach(this.handlers,function(r){r!==null&&e(r)})}}var InterceptorManager$1=InterceptorManager,transitionalDefaults={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},URLSearchParams$1=typeof URLSearchParams<"u"?URLSearchParams:AxiosURLSearchParams,FormData$1=typeof FormData<"u"?FormData:null,Blob$1=typeof Blob<"u"?Blob:null,platform$1={isBrowser:!0,classes:{URLSearchParams:URLSearchParams$1,FormData:FormData$1,Blob:Blob$1},protocols:["http","https","file","blob","url","data"]};const hasBrowserEnv=typeof window<"u"&&typeof document<"u",hasStandardBrowserEnv=(n=>hasBrowserEnv&&["ReactNative","NativeScript","NS"].indexOf(n)<0)(typeof navigator<"u"&&navigator.product),hasStandardBrowserWebWorkerEnv=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),origin=hasBrowserEnv&&window.location.href||"http://localhost";var utils$3=Object.freeze({__proto__:null,hasBrowserEnv,hasStandardBrowserWebWorkerEnv,hasStandardBrowserEnv,origin}),platform={...utils$3,...platform$1};function toURLEncodedForm(n,e){return toFormData(n,new platform.classes.URLSearchParams,Object.assign({visitor:function(t,r,o,s){return platform.isNode&&utils$1$1.isBuffer(t)?(this.append(r,t.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},e))}function parsePropPath(n){return utils$1$1.matchAll(/\w+|\[(\w*)]/g,n).map(e=>e[0]==="[]"?"":e[1]||e[0])}function arrayToObject$1(n){const e={},t=Object.keys(n);let r;const o=t.length;let s;for(r=0;r<o;r++)s=t[r],e[s]=n[s];return e}function formDataToJSON(n){function e(t,r,o,s){let l=t[s++];if(l==="__proto__")return!0;const f=Number.isFinite(+l),E=s>=t.length;return l=!l&&utils$1$1.isArray(o)?o.length:l,E?(utils$1$1.hasOwnProp(o,l)?o[l]=[o[l],r]:o[l]=r,!f):((!o[l]||!utils$1$1.isObject(o[l]))&&(o[l]=[]),e(t,r,o[l],s)&&utils$1$1.isArray(o[l])&&(o[l]=arrayToObject$1(o[l])),!f)}if(utils$1$1.isFormData(n)&&utils$1$1.isFunction(n.entries)){const t={};return utils$1$1.forEachEntry(n,(r,o)=>{e(parsePropPath(r),o,t,0)}),t}return null}function stringifySafely(n,e,t){if(utils$1$1.isString(n))try{return(e||JSON.parse)(n),utils$1$1.trim(n)}catch(r){if(r.name!=="SyntaxError")throw r}return(t||JSON.stringify)(n)}const defaults$2={transitional:transitionalDefaults,adapter:["xhr","http","fetch"],transformRequest:[function n(e,t){const r=t.getContentType()||"",o=r.indexOf("application/json")>-1,s=utils$1$1.isObject(e);if(s&&utils$1$1.isHTMLForm(e)&&(e=new FormData(e)),utils$1$1.isFormData(e))return o?JSON.stringify(formDataToJSON(e)):e;if(utils$1$1.isArrayBuffer(e)||utils$1$1.isBuffer(e)||utils$1$1.isStream(e)||utils$1$1.isFile(e)||utils$1$1.isBlob(e)||utils$1$1.isReadableStream(e))return e;if(utils$1$1.isArrayBufferView(e))return e.buffer;if(utils$1$1.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let f;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return toURLEncodedForm(e,this.formSerializer).toString();if((f=utils$1$1.isFileList(e))||r.indexOf("multipart/form-data")>-1){const E=this.env&&this.env.FormData;return toFormData(f?{"files[]":e}:e,E&&new E,this.formSerializer)}}return s||o?(t.setContentType("application/json",!1),stringifySafely(e)):e}],transformResponse:[function n(e){const t=this.transitional||defaults$2.transitional,r=t&&t.forcedJSONParsing,o=this.responseType==="json";if(utils$1$1.isResponse(e)||utils$1$1.isReadableStream(e))return e;if(e&&utils$1$1.isString(e)&&(r&&!this.responseType||o)){const l=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(e)}catch(f){if(l)throw f.name==="SyntaxError"?AxiosError.from(f,AxiosError.ERR_BAD_RESPONSE,this,null,this.response):f}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:platform.classes.FormData,Blob:platform.classes.Blob},validateStatus:function n(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};utils$1$1.forEach(["delete","get","head","post","put","patch"],n=>{defaults$2.headers[n]={}});var defaults$1$1=defaults$2;const ignoreDuplicateOf=utils$1$1.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"]);var parseHeaders=n=>{const e={};let t,r,o;return n&&n.split(`
|
||
`).forEach(function(l){o=l.indexOf(":"),t=l.substring(0,o).trim().toLowerCase(),r=l.substring(o+1).trim(),!(!t||e[t]&&ignoreDuplicateOf[t])&&(t==="set-cookie"?e[t]?e[t].push(r):e[t]=[r]:e[t]=e[t]?e[t]+", "+r:r)}),e};const $internals=Symbol("internals");function normalizeHeader(n){return n&&String(n).trim().toLowerCase()}function normalizeValue(n){return n===!1||n==null?n:utils$1$1.isArray(n)?n.map(normalizeValue):String(n)}function parseTokens(n){const e=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=t.exec(n);)e[r[1]]=r[2];return e}const isValidHeaderName=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function matchHeaderValue(n,e,t,r,o){if(utils$1$1.isFunction(r))return r.call(this,e,t);if(o&&(e=t),!!utils$1$1.isString(e)){if(utils$1$1.isString(r))return e.indexOf(r)!==-1;if(utils$1$1.isRegExp(r))return r.test(e)}}function formatHeader(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r)}function buildAccessors(n,e){const t=utils$1$1.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(n,r+t,{value:function(o,s,l){return this[r].call(this,e,o,s,l)},configurable:!0})})}class AxiosHeaders{constructor(e){e&&this.set(e)}set(e,t,r){const o=this;function s(f,E,d){const g=normalizeHeader(E);if(!g)throw new Error("header name must be a non-empty string");const y=utils$1$1.findKey(o,g);(!y||o[y]===void 0||d===!0||d===void 0&&o[y]!==!1)&&(o[y||E]=normalizeValue(f))}const l=(f,E)=>utils$1$1.forEach(f,(d,g)=>s(d,g,E));if(utils$1$1.isPlainObject(e)||e instanceof this.constructor)l(e,t);else if(utils$1$1.isString(e)&&(e=e.trim())&&!isValidHeaderName(e))l(parseHeaders(e),t);else if(utils$1$1.isHeaders(e))for(const[f,E]of e.entries())s(E,f,r);else e!=null&&s(t,e,r);return this}get(e,t){if(e=normalizeHeader(e),e){const r=utils$1$1.findKey(this,e);if(r){const o=this[r];if(!t)return o;if(t===!0)return parseTokens(o);if(utils$1$1.isFunction(t))return t.call(this,o,r);if(utils$1$1.isRegExp(t))return t.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=normalizeHeader(e),e){const r=utils$1$1.findKey(this,e);return!!(r&&this[r]!==void 0&&(!t||matchHeaderValue(this,this[r],r,t)))}return!1}delete(e,t){const r=this;let o=!1;function s(l){if(l=normalizeHeader(l),l){const f=utils$1$1.findKey(r,l);f&&(!t||matchHeaderValue(r,r[f],f,t))&&(delete r[f],o=!0)}}return utils$1$1.isArray(e)?e.forEach(s):s(e),o}clear(e){const t=Object.keys(this);let r=t.length,o=!1;for(;r--;){const s=t[r];(!e||matchHeaderValue(this,this[s],s,e,!0))&&(delete this[s],o=!0)}return o}normalize(e){const t=this,r={};return utils$1$1.forEach(this,(o,s)=>{const l=utils$1$1.findKey(r,s);if(l){t[l]=normalizeValue(o),delete t[s];return}const f=e?formatHeader(s):String(s).trim();f!==s&&delete t[s],t[f]=normalizeValue(o),r[f]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return utils$1$1.forEach(this,(r,o)=>{r!=null&&r!==!1&&(t[o]=e&&utils$1$1.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join(`
|
||
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach(o=>r.set(o)),r}static accessor(e){const r=(this[$internals]=this[$internals]={accessors:{}}).accessors,o=this.prototype;function s(l){const f=normalizeHeader(l);r[f]||(buildAccessors(o,l),r[f]=!0)}return utils$1$1.isArray(e)?e.forEach(s):s(e),this}}AxiosHeaders.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);utils$1$1.reduceDescriptors(AxiosHeaders.prototype,({value:n},e)=>{let t=e[0].toUpperCase()+e.slice(1);return{get:()=>n,set(r){this[t]=r}}});utils$1$1.freezeMethods(AxiosHeaders);var AxiosHeaders$1=AxiosHeaders;function transformData(n,e){const t=this||defaults$1$1,r=e||t,o=AxiosHeaders$1.from(r.headers);let s=r.data;return utils$1$1.forEach(n,function(f){s=f.call(t,s,o.normalize(),e?e.status:void 0)}),o.normalize(),s}function isCancel(n){return!!(n&&n.__CANCEL__)}function CanceledError(n,e,t){AxiosError.call(this,n??"canceled",AxiosError.ERR_CANCELED,e,t),this.name="CanceledError"}utils$1$1.inherits(CanceledError,AxiosError,{__CANCEL__:!0});function settle(n,e,t){const r=t.config.validateStatus;!t.status||!r||r(t.status)?n(t):e(new AxiosError("Request failed with status code "+t.status,[AxiosError.ERR_BAD_REQUEST,AxiosError.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}function parseProtocol(n){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return e&&e[1]||""}function speedometer(n,e){n=n||10;const t=new Array(n),r=new Array(n);let o=0,s=0,l;return e=e!==void 0?e:1e3,function(E){const d=Date.now(),g=r[s];l||(l=d),t[o]=E,r[o]=d;let y=s,S=0;for(;y!==o;)S+=t[y++],y=y%n;if(o=(o+1)%n,o===s&&(s=(s+1)%n),d-l<e)return;const x=g&&d-g;return x?Math.round(S*1e3/x):void 0}}function throttle(n,e){let t=0;const r=1e3/e;let o=null;return function(){const l=this===!0,f=Date.now();if(l||f-t>r)return o&&(clearTimeout(o),o=null),t=f,n.apply(null,arguments);o||(o=setTimeout(()=>(o=null,t=Date.now(),n.apply(null,arguments)),r-(f-t)))}}var progressEventReducer=(n,e,t=3)=>{let r=0;const o=speedometer(50,250);return throttle(s=>{const l=s.loaded,f=s.lengthComputable?s.total:void 0,E=l-r,d=o(E),g=l<=f;r=l;const y={loaded:l,total:f,progress:f?l/f:void 0,bytes:E,rate:d||void 0,estimated:d&&f&&g?(f-l)/d:void 0,event:s,lengthComputable:f!=null};y[e?"download":"upload"]=!0,n(y)},t)},isURLSameOrigin=platform.hasStandardBrowserEnv?function n(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let r;function o(s){let l=s;return e&&(t.setAttribute("href",l),l=t.href),t.setAttribute("href",l),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:t.pathname.charAt(0)==="/"?t.pathname:"/"+t.pathname}}return r=o(window.location.href),function(l){const f=utils$1$1.isString(l)?o(l):l;return f.protocol===r.protocol&&f.host===r.host}}():function n(){return function(){return!0}}(),cookies=platform.hasStandardBrowserEnv?{write(n,e,t,r,o,s){const l=[n+"="+encodeURIComponent(e)];utils$1$1.isNumber(t)&&l.push("expires="+new Date(t).toGMTString()),utils$1$1.isString(r)&&l.push("path="+r),utils$1$1.isString(o)&&l.push("domain="+o),s===!0&&l.push("secure"),document.cookie=l.join("; ")},read(n){const e=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(n){this.write(n,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function isAbsoluteURL(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function combineURLs(n,e){return e?n.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):n}function buildFullPath(n,e){return n&&!isAbsoluteURL(e)?combineURLs(n,e):e}const headersToObject=n=>n instanceof AxiosHeaders$1?{...n}:n;function mergeConfig(n,e){e=e||{};const t={};function r(d,g,y){return utils$1$1.isPlainObject(d)&&utils$1$1.isPlainObject(g)?utils$1$1.merge.call({caseless:y},d,g):utils$1$1.isPlainObject(g)?utils$1$1.merge({},g):utils$1$1.isArray(g)?g.slice():g}function o(d,g,y){if(utils$1$1.isUndefined(g)){if(!utils$1$1.isUndefined(d))return r(void 0,d,y)}else return r(d,g,y)}function s(d,g){if(!utils$1$1.isUndefined(g))return r(void 0,g)}function l(d,g){if(utils$1$1.isUndefined(g)){if(!utils$1$1.isUndefined(d))return r(void 0,d)}else return r(void 0,g)}function f(d,g,y){if(y in e)return r(d,g);if(y in n)return r(void 0,d)}const E={url:s,method:s,data:s,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:f,headers:(d,g)=>o(headersToObject(d),headersToObject(g),!0)};return utils$1$1.forEach(Object.keys(Object.assign({},n,e)),function(g){const y=E[g]||o,S=y(n[g],e[g],g);utils$1$1.isUndefined(S)&&y!==f||(t[g]=S)}),t}var resolveConfig=n=>{const e=mergeConfig({},n);let{data:t,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:s,headers:l,auth:f}=e;e.headers=l=AxiosHeaders$1.from(l),e.url=buildURL(buildFullPath(e.baseURL,e.url),n.params,n.paramsSerializer),f&&l.set("Authorization","Basic "+btoa((f.username||"")+":"+(f.password?unescape(encodeURIComponent(f.password)):"")));let E;if(utils$1$1.isFormData(t)){if(platform.hasStandardBrowserEnv||platform.hasStandardBrowserWebWorkerEnv)l.setContentType(void 0);else if((E=l.getContentType())!==!1){const[d,...g]=E?E.split(";").map(y=>y.trim()).filter(Boolean):[];l.setContentType([d||"multipart/form-data",...g].join("; "))}}if(platform.hasStandardBrowserEnv&&(r&&utils$1$1.isFunction(r)&&(r=r(e)),r||r!==!1&&isURLSameOrigin(e.url))){const d=o&&s&&cookies.read(s);d&&l.set(o,d)}return e};const isXHRAdapterSupported=typeof XMLHttpRequest<"u";var xhrAdapter=isXHRAdapterSupported&&function(n){return new Promise(function(t,r){const o=resolveConfig(n);let s=o.data;const l=AxiosHeaders$1.from(o.headers).normalize();let{responseType:f}=o,E;function d(){o.cancelToken&&o.cancelToken.unsubscribe(E),o.signal&&o.signal.removeEventListener("abort",E)}let g=new XMLHttpRequest;g.open(o.method.toUpperCase(),o.url,!0),g.timeout=o.timeout;function y(){if(!g)return;const x=AxiosHeaders$1.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),C={data:!f||f==="text"||f==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:x,config:n,request:g};settle(function(D){t(D),d()},function(D){r(D),d()},C),g=null}"onloadend"in g?g.onloadend=y:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(y)},g.onabort=function(){g&&(r(new AxiosError("Request aborted",AxiosError.ECONNABORTED,o,g)),g=null)},g.onerror=function(){r(new AxiosError("Network Error",AxiosError.ERR_NETWORK,o,g)),g=null},g.ontimeout=function(){let w=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const C=o.transitional||transitionalDefaults;o.timeoutErrorMessage&&(w=o.timeoutErrorMessage),r(new AxiosError(w,C.clarifyTimeoutError?AxiosError.ETIMEDOUT:AxiosError.ECONNABORTED,o,g)),g=null},s===void 0&&l.setContentType(null),"setRequestHeader"in g&&utils$1$1.forEach(l.toJSON(),function(w,C){g.setRequestHeader(C,w)}),utils$1$1.isUndefined(o.withCredentials)||(g.withCredentials=!!o.withCredentials),f&&f!=="json"&&(g.responseType=o.responseType),typeof o.onDownloadProgress=="function"&&g.addEventListener("progress",progressEventReducer(o.onDownloadProgress,!0)),typeof o.onUploadProgress=="function"&&g.upload&&g.upload.addEventListener("progress",progressEventReducer(o.onUploadProgress)),(o.cancelToken||o.signal)&&(E=x=>{g&&(r(!x||x.type?new CanceledError(null,n,g):x),g.abort(),g=null)},o.cancelToken&&o.cancelToken.subscribe(E),o.signal&&(o.signal.aborted?E():o.signal.addEventListener("abort",E)));const S=parseProtocol(o.url);if(S&&platform.protocols.indexOf(S)===-1){r(new AxiosError("Unsupported protocol "+S+":",AxiosError.ERR_BAD_REQUEST,n));return}g.send(s||null)})};const composeSignals=(n,e)=>{let t=new AbortController,r;const o=function(E){if(!r){r=!0,l();const d=E instanceof Error?E:this.reason;t.abort(d instanceof AxiosError?d:new CanceledError(d instanceof Error?d.message:d))}};let s=e&&setTimeout(()=>{o(new AxiosError(`timeout ${e} of ms exceeded`,AxiosError.ETIMEDOUT))},e);const l=()=>{n&&(s&&clearTimeout(s),s=null,n.forEach(E=>{E&&(E.removeEventListener?E.removeEventListener("abort",o):E.unsubscribe(o))}),n=null)};n.forEach(E=>E&&E.addEventListener&&E.addEventListener("abort",o));const{signal:f}=t;return f.unsubscribe=l,[f,()=>{s&&clearTimeout(s),s=null}]};var composeSignals$1=composeSignals;const streamChunk=function*(n,e){let t=n.byteLength;if(!e||t<e){yield n;return}let r=0,o;for(;r<t;)o=r+e,yield n.slice(r,o),r=o},readBytes=async function*(n,e,t){for await(const r of n)yield*streamChunk(ArrayBuffer.isView(r)?r:await t(String(r)),e)},trackStream=(n,e,t,r,o)=>{const s=readBytes(n,e,o);let l=0;return new ReadableStream({type:"bytes",async pull(f){const{done:E,value:d}=await s.next();if(E){f.close(),r();return}let g=d.byteLength;t&&t(l+=g),f.enqueue(new Uint8Array(d))},cancel(f){return r(f),s.return()}},{highWaterMark:2})},fetchProgressDecorator=(n,e)=>{const t=n!=null;return r=>setTimeout(()=>e({lengthComputable:t,total:n,loaded:r}))},isFetchSupported=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",isReadableStreamSupported=isFetchSupported&&typeof ReadableStream=="function",encodeText=isFetchSupported&&(typeof TextEncoder=="function"?(n=>e=>n.encode(e))(new TextEncoder):async n=>new Uint8Array(await new Response(n).arrayBuffer())),supportsRequestStream=isReadableStreamSupported&&(()=>{let n=!1;const e=new Request(platform.origin,{body:new ReadableStream,method:"POST",get duplex(){return n=!0,"half"}}).headers.has("Content-Type");return n&&!e})(),DEFAULT_CHUNK_SIZE=64*1024,supportsResponseStream=isReadableStreamSupported&&!!(()=>{try{return utils$1$1.isReadableStream(new Response("").body)}catch{}})(),resolvers={stream:supportsResponseStream&&(n=>n.body)};isFetchSupported&&(n=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!resolvers[e]&&(resolvers[e]=utils$1$1.isFunction(n[e])?t=>t[e]():(t,r)=>{throw new AxiosError(`Response type '${e}' is not supported`,AxiosError.ERR_NOT_SUPPORT,r)})})})(new Response);const getBodyLength=async n=>{if(n==null)return 0;if(utils$1$1.isBlob(n))return n.size;if(utils$1$1.isSpecCompliantForm(n))return(await new Request(n).arrayBuffer()).byteLength;if(utils$1$1.isArrayBufferView(n))return n.byteLength;if(utils$1$1.isURLSearchParams(n)&&(n=n+""),utils$1$1.isString(n))return(await encodeText(n)).byteLength},resolveBodyLength=async(n,e)=>{const t=utils$1$1.toFiniteNumber(n.getContentLength());return t??getBodyLength(e)};var fetchAdapter=isFetchSupported&&(async n=>{let{url:e,method:t,data:r,signal:o,cancelToken:s,timeout:l,onDownloadProgress:f,onUploadProgress:E,responseType:d,headers:g,withCredentials:y="same-origin",fetchOptions:S}=resolveConfig(n);d=d?(d+"").toLowerCase():"text";let[x,w]=o||s||l?composeSignals$1([o,s],l):[],C,H;const D=()=>{!C&&setTimeout(()=>{x&&x.unsubscribe()}),C=!0};let Z;try{if(E&&supportsRequestStream&&t!=="get"&&t!=="head"&&(Z=await resolveBodyLength(g,r))!==0){let V=new Request(e,{method:"POST",body:r,duplex:"half"}),u;utils$1$1.isFormData(r)&&(u=V.headers.get("content-type"))&&g.setContentType(u),V.body&&(r=trackStream(V.body,DEFAULT_CHUNK_SIZE,fetchProgressDecorator(Z,progressEventReducer(E)),null,encodeText))}utils$1$1.isString(y)||(y=y?"cors":"omit"),H=new Request(e,{...S,signal:x,method:t.toUpperCase(),headers:g.normalize().toJSON(),body:r,duplex:"half",withCredentials:y});let B=await fetch(H);const Y=supportsResponseStream&&(d==="stream"||d==="response");if(supportsResponseStream&&(f||Y)){const V={};["status","statusText","headers"].forEach(X=>{V[X]=B[X]});const u=utils$1$1.toFiniteNumber(B.headers.get("content-length"));B=new Response(trackStream(B.body,DEFAULT_CHUNK_SIZE,f&&fetchProgressDecorator(u,progressEventReducer(f,!0)),Y&&D,encodeText),V)}d=d||"text";let ne=await resolvers[utils$1$1.findKey(resolvers,d)||"text"](B,n);return!Y&&D(),w&&w(),await new Promise((V,u)=>{settle(V,u,{data:ne,headers:AxiosHeaders$1.from(B.headers),status:B.status,statusText:B.statusText,config:n,request:H})})}catch(B){throw D(),B&&B.name==="TypeError"&&/fetch/i.test(B.message)?Object.assign(new AxiosError("Network Error",AxiosError.ERR_NETWORK,n,H),{cause:B.cause||B}):AxiosError.from(B,B&&B.code,n,H)}});const knownAdapters={http:httpAdapter,xhr:xhrAdapter,fetch:fetchAdapter};utils$1$1.forEach(knownAdapters,(n,e)=>{if(n){try{Object.defineProperty(n,"name",{value:e})}catch{}Object.defineProperty(n,"adapterName",{value:e})}});const renderReason=n=>`- ${n}`,isResolvedHandle=n=>utils$1$1.isFunction(n)||n===null||n===!1;var adapters={getAdapter:n=>{n=utils$1$1.isArray(n)?n:[n];const{length:e}=n;let t,r;const o={};for(let s=0;s<e;s++){t=n[s];let l;if(r=t,!isResolvedHandle(t)&&(r=knownAdapters[(l=String(t)).toLowerCase()],r===void 0))throw new AxiosError(`Unknown adapter '${l}'`);if(r)break;o[l||"#"+s]=r}if(!r){const s=Object.entries(o).map(([f,E])=>`adapter ${f} `+(E===!1?"is not supported by the environment":"is not available in the build"));let l=e?s.length>1?`since :
|
||
`+s.map(renderReason).join(`
|
||
`):" "+renderReason(s[0]):"as no adapter specified";throw new AxiosError("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return r},adapters:knownAdapters};function throwIfCancellationRequested(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new CanceledError(null,n)}function dispatchRequest(n){return throwIfCancellationRequested(n),n.headers=AxiosHeaders$1.from(n.headers),n.data=transformData.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),adapters.getAdapter(n.adapter||defaults$1$1.adapter)(n).then(function(r){return throwIfCancellationRequested(n),r.data=transformData.call(n,n.transformResponse,r),r.headers=AxiosHeaders$1.from(r.headers),r},function(r){return isCancel(r)||(throwIfCancellationRequested(n),r&&r.response&&(r.response.data=transformData.call(n,n.transformResponse,r.response),r.response.headers=AxiosHeaders$1.from(r.response.headers))),Promise.reject(r)})}const VERSION$1="1.7.2",validators$1={};["object","boolean","number","function","string","symbol"].forEach((n,e)=>{validators$1[n]=function(r){return typeof r===n||"a"+(e<1?"n ":" ")+n}});const deprecatedWarnings={};validators$1.transitional=function n(e,t,r){function o(s,l){return"[Axios v"+VERSION$1+"] Transitional option '"+s+"'"+l+(r?". "+r:"")}return(s,l,f)=>{if(e===!1)throw new AxiosError(o(l," has been removed"+(t?" in "+t:"")),AxiosError.ERR_DEPRECATED);return t&&!deprecatedWarnings[l]&&(deprecatedWarnings[l]=!0,console.warn(o(l," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(s,l,f):!0}};function assertOptions(n,e,t){if(typeof n!="object")throw new AxiosError("options must be an object",AxiosError.ERR_BAD_OPTION_VALUE);const r=Object.keys(n);let o=r.length;for(;o-- >0;){const s=r[o],l=e[s];if(l){const f=n[s],E=f===void 0||l(f,s,n);if(E!==!0)throw new AxiosError("option "+s+" must be "+E,AxiosError.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new AxiosError("Unknown option "+s,AxiosError.ERR_BAD_OPTION)}}var validator={assertOptions,validators:validators$1};const validators=validator.validators;class Axios{constructor(e){this.defaults=e,this.interceptors={request:new InterceptorManager$1,response:new InterceptorManager$1}}async request(e,t){try{return await this._request(e,t)}catch(r){if(r instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const s=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?s&&!String(r.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
||
`+s):r.stack=s}catch{}}throw r}}_request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=mergeConfig(this.defaults,t);const{transitional:r,paramsSerializer:o,headers:s}=t;r!==void 0&&validator.assertOptions(r,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1),o!=null&&(utils$1$1.isFunction(o)?t.paramsSerializer={serialize:o}:validator.assertOptions(o,{encode:validators.function,serialize:validators.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let l=s&&utils$1$1.merge(s.common,s[t.method]);s&&utils$1$1.forEach(["delete","get","head","post","put","patch","common"],w=>{delete s[w]}),t.headers=AxiosHeaders$1.concat(l,s);const f=[];let E=!0;this.interceptors.request.forEach(function(C){typeof C.runWhen=="function"&&C.runWhen(t)===!1||(E=E&&C.synchronous,f.unshift(C.fulfilled,C.rejected))});const d=[];this.interceptors.response.forEach(function(C){d.push(C.fulfilled,C.rejected)});let g,y=0,S;if(!E){const w=[dispatchRequest.bind(this),void 0];for(w.unshift.apply(w,f),w.push.apply(w,d),S=w.length,g=Promise.resolve(t);y<S;)g=g.then(w[y++],w[y++]);return g}S=f.length;let x=t;for(y=0;y<S;){const w=f[y++],C=f[y++];try{x=w(x)}catch(H){C.call(this,H);break}}try{g=dispatchRequest.call(this,x)}catch(w){return Promise.reject(w)}for(y=0,S=d.length;y<S;)g=g.then(d[y++],d[y++]);return g}getUri(e){e=mergeConfig(this.defaults,e);const t=buildFullPath(e.baseURL,e.url);return buildURL(t,e.params,e.paramsSerializer)}}utils$1$1.forEach(["delete","get","head","options"],function n(e){Axios.prototype[e]=function(t,r){return this.request(mergeConfig(r||{},{method:e,url:t,data:(r||{}).data}))}});utils$1$1.forEach(["post","put","patch"],function n(e){function t(r){return function(s,l,f){return this.request(mergeConfig(f||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:l}))}}Axios.prototype[e]=t(),Axios.prototype[e+"Form"]=t(!0)});var Axios$1=Axios;class CancelToken{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(s){t=s});const r=this;this.promise.then(o=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](o);r._listeners=null}),this.promise.then=o=>{let s;const l=new Promise(f=>{r.subscribe(f),s=f}).then(o);return l.cancel=function(){r.unsubscribe(s)},l},e(function(s,l,f){r.reason||(r.reason=new CanceledError(s,l,f),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}static source(){let e;return{token:new CancelToken(function(o){e=o}),cancel:e}}}var CancelToken$1=CancelToken;function spread(n){return function(t){return n.apply(null,t)}}function isAxiosError(n){return utils$1$1.isObject(n)&&n.isAxiosError===!0}const HttpStatusCode={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(HttpStatusCode).forEach(([n,e])=>{HttpStatusCode[e]=n});var HttpStatusCode$1=HttpStatusCode;function createInstance(n){const e=new Axios$1(n),t=bind$2(Axios$1.prototype.request,e);return utils$1$1.extend(t,Axios$1.prototype,e,{allOwnKeys:!0}),utils$1$1.extend(t,e,null,{allOwnKeys:!0}),t.create=function(o){return createInstance(mergeConfig(n,o))},t}const axios=createInstance(defaults$1$1);axios.Axios=Axios$1;axios.CanceledError=CanceledError;axios.CancelToken=CancelToken$1;axios.isCancel=isCancel;axios.VERSION=VERSION$1;axios.toFormData=toFormData;axios.AxiosError=AxiosError;axios.Cancel=axios.CanceledError;axios.all=function n(e){return Promise.all(e)};axios.spread=spread;axios.isAxiosError=isAxiosError;axios.mergeConfig=mergeConfig;axios.AxiosHeaders=AxiosHeaders$1;axios.formToJSON=n=>formDataToJSON(utils$1$1.isHTMLForm(n)?new FormData(n):n);axios.getAdapter=adapters.getAdapter;axios.HttpStatusCode=HttpStatusCode$1;axios.default=axios;var axios_1$1=axios,__assign$3=commonjsGlobal&&commonjsGlobal.__assign||function(){return __assign$3=Object.assign||function(n){for(var e,t=1,r=arguments.length;t<r;t++){e=arguments[t];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o])}return n},__assign$3.apply(this,arguments)},__awaiter$1=commonjsGlobal&&commonjsGlobal.__awaiter||function(n,e,t,r){function o(s){return s instanceof t?s:new t(function(l){l(s)})}return new(t||(t=Promise))(function(s,l){function f(g){try{d(r.next(g))}catch(y){l(y)}}function E(g){try{d(r.throw(g))}catch(y){l(y)}}function d(g){g.done?s(g.value):o(g.value).then(f,E)}d((r=r.apply(n,e||[])).next())})},__generator$1=commonjsGlobal&&commonjsGlobal.__generator||function(n,e){var t={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,o,s,l;return l={next:f(0),throw:f(1),return:f(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function f(d){return function(g){return E([d,g])}}function E(d){if(r)throw new TypeError("Generator is already executing.");for(;l&&(l=0,d[0]&&(t=0)),t;)try{if(r=1,o&&(s=d[0]&2?o.return:d[0]?o.throw||((s=o.return)&&s.call(o),0):o.next)&&!(s=s.call(o,d[1])).done)return s;switch(o=0,s&&(d=[d[0]&2,s.value]),d[0]){case 0:case 1:s=d;break;case 4:return t.label++,{value:d[1],done:!1};case 5:t.label++,o=d[1],d=[0];continue;case 7:d=t.ops.pop(),t.trys.pop();continue;default:if(s=t.trys,!(s=s.length>0&&s[s.length-1])&&(d[0]===6||d[0]===2)){t=0;continue}if(d[0]===3&&(!s||d[1]>s[0]&&d[1]<s[3])){t.label=d[1];break}if(d[0]===6&&t.label<s[1]){t.label=s[1],s=d;break}if(s&&t.label<s[2]){t.label=s[2],t.ops.push(d);break}s[2]&&t.ops.pop(),t.trys.pop();continue}d=e.call(n,t)}catch(g){d=[6,g],o=0}finally{r=s=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}},__importDefault$1=commonjsGlobal&&commonjsGlobal.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(AxiosClient$1,"__esModule",{value:!0});AxiosClient$1.AxiosClient=void 0;var axios_1=__importDefault$1(axios_1$1),AxiosClient=function(){function n(e){var t=e.responseHandler,r=e.requestConfigBuilder;this.responseHandler=t,this.requestConfigBuilder=r}return n.prototype.get=function(e,t){return __awaiter$1(this,void 0,void 0,function(){var r;return __generator$1(this,function(o){switch(o.label){case 0:return[4,this.requestConfigBuilder.build("get",e,t)];case 1:return r=o.sent(),[4,this.sendRequest(r)];case 2:return[2,o.sent()]}})})},n.prototype.getData=function(e,t){return __awaiter$1(this,void 0,void 0,function(){var r;return __generator$1(this,function(o){switch(o.label){case 0:return[4,this.requestConfigBuilder.build("get",e,t,{responseType:"arraybuffer"})];case 1:return r=o.sent(),[4,this.sendRequest(r)];case 2:return[2,o.sent()]}})})},n.prototype.post=function(e,t){return __awaiter$1(this,void 0,void 0,function(){var r;return __generator$1(this,function(o){switch(o.label){case 0:return[4,this.requestConfigBuilder.build("post",e,t)];case 1:return r=o.sent(),[4,this.sendRequest(r)];case 2:return[2,o.sent()]}})})},n.prototype.postData=function(e,t){return __awaiter$1(this,void 0,void 0,function(){var r;return __generator$1(this,function(o){switch(o.label){case 0:return[4,this.requestConfigBuilder.build("post",e,t)];case 1:return r=o.sent(),[4,this.sendRequest(r)];case 2:return[2,o.sent()]}})})},n.prototype.put=function(e,t){return __awaiter$1(this,void 0,void 0,function(){var r;return __generator$1(this,function(o){switch(o.label){case 0:return[4,this.requestConfigBuilder.build("put",e,t)];case 1:return r=o.sent(),[4,this.sendRequest(r)];case 2:return[2,o.sent()]}})})},n.prototype.delete=function(e,t){return __awaiter$1(this,void 0,void 0,function(){var r;return __generator$1(this,function(o){switch(o.label){case 0:return[4,this.requestConfigBuilder.build("delete",e,t)];case 1:return r=o.sent(),[4,this.sendRequest(r)];case 2:return[2,o.sent()]}})})},n.prototype.sendRequest=function(e){return this.responseHandler.handle((0,axios_1.default)(__assign$3(__assign$3({},e),{maxBodyLength:1/0,maxContentLength:1/0})))},n}();AxiosClient$1.AxiosClient=AxiosClient;(function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.DefaultHttpClient=void 0;var e=AxiosClient$1;Object.defineProperty(n,"DefaultHttpClient",{enumerable:!0,get:function(){return e.AxiosClient}})})(http);var KintoneRequestConfigBuilder$1={},esErrors=Error,_eval=EvalError,range=RangeError,ref=ReferenceError,syntax=SyntaxError,type=TypeError,uri=URIError,shams=function n(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),r=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var o=42;e[t]=o;for(t in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var s=Object.getOwnPropertySymbols(e);if(s.length!==1||s[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var l=Object.getOwnPropertyDescriptor(e,t);if(l.value!==o||l.enumerable!==!0)return!1}return!0},origSymbol=typeof Symbol<"u"&&Symbol,hasSymbolSham=shams,hasSymbols$1=function n(){return typeof origSymbol!="function"||typeof Symbol!="function"||typeof origSymbol("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:hasSymbolSham()},test={__proto__:null,foo:{}},$Object=Object,hasProto$1=function n(){return{__proto__:test}.foo===test.foo&&!(test instanceof $Object)},ERROR_MESSAGE="Function.prototype.bind called on incompatible ",toStr$1=Object.prototype.toString,max$1=Math.max,funcType="[object Function]",concatty=function n(e,t){for(var r=[],o=0;o<e.length;o+=1)r[o]=e[o];for(var s=0;s<t.length;s+=1)r[s+e.length]=t[s];return r},slicy=function n(e,t){for(var r=[],o=t||0,s=0;o<e.length;o+=1,s+=1)r[s]=e[o];return r},joiny=function(n,e){for(var t="",r=0;r<n.length;r+=1)t+=n[r],r+1<n.length&&(t+=e);return t},implementation$1=function n(e){var t=this;if(typeof t!="function"||toStr$1.apply(t)!==funcType)throw new TypeError(ERROR_MESSAGE+t);for(var r=slicy(arguments,1),o,s=function(){if(this instanceof o){var g=t.apply(this,concatty(r,arguments));return Object(g)===g?g:this}return t.apply(e,concatty(r,arguments))},l=max$1(0,t.length-r.length),f=[],E=0;E<l;E++)f[E]="$"+E;if(o=Function("binder","return function ("+joiny(f,",")+"){ return binder.apply(this,arguments); }")(s),t.prototype){var d=function(){};d.prototype=t.prototype,o.prototype=new d,d.prototype=null}return o},implementation=implementation$1,functionBind=Function.prototype.bind||implementation,call=Function.prototype.call,$hasOwn=Object.prototype.hasOwnProperty,bind$1=functionBind,hasown=bind$1.call(call,$hasOwn),undefined$1,$Error=esErrors,$EvalError=_eval,$RangeError=range,$ReferenceError=ref,$SyntaxError$1=syntax,$TypeError$3=type,$URIError=uri,$Function=Function,getEvalledConstructor=function(n){try{return $Function('"use strict"; return ('+n+").constructor;")()}catch{}},$gOPD$1=Object.getOwnPropertyDescriptor;if($gOPD$1)try{$gOPD$1({},"")}catch{$gOPD$1=null}var throwTypeError=function(){throw new $TypeError$3},ThrowTypeError=$gOPD$1?function(){try{return arguments.callee,throwTypeError}catch{try{return $gOPD$1(arguments,"callee").get}catch{return throwTypeError}}}():throwTypeError,hasSymbols=hasSymbols$1(),hasProto=hasProto$1(),getProto=Object.getPrototypeOf||(hasProto?function(n){return n.__proto__}:null),needsEval={},TypedArray=typeof Uint8Array>"u"||!getProto?undefined$1:getProto(Uint8Array),INTRINSICS={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?undefined$1:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?undefined$1:ArrayBuffer,"%ArrayIteratorPrototype%":hasSymbols&&getProto?getProto([][Symbol.iterator]()):undefined$1,"%AsyncFromSyncIteratorPrototype%":undefined$1,"%AsyncFunction%":needsEval,"%AsyncGenerator%":needsEval,"%AsyncGeneratorFunction%":needsEval,"%AsyncIteratorPrototype%":needsEval,"%Atomics%":typeof Atomics>"u"?undefined$1:Atomics,"%BigInt%":typeof BigInt>"u"?undefined$1:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?undefined$1:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?undefined$1:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?undefined$1:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":$Error,"%eval%":eval,"%EvalError%":$EvalError,"%Float32Array%":typeof Float32Array>"u"?undefined$1:Float32Array,"%Float64Array%":typeof Float64Array>"u"?undefined$1:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?undefined$1:FinalizationRegistry,"%Function%":$Function,"%GeneratorFunction%":needsEval,"%Int8Array%":typeof Int8Array>"u"?undefined$1:Int8Array,"%Int16Array%":typeof Int16Array>"u"?undefined$1:Int16Array,"%Int32Array%":typeof Int32Array>"u"?undefined$1:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":hasSymbols&&getProto?getProto(getProto([][Symbol.iterator]())):undefined$1,"%JSON%":typeof JSON=="object"?JSON:undefined$1,"%Map%":typeof Map>"u"?undefined$1:Map,"%MapIteratorPrototype%":typeof Map>"u"||!hasSymbols||!getProto?undefined$1:getProto(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?undefined$1:Promise,"%Proxy%":typeof Proxy>"u"?undefined$1:Proxy,"%RangeError%":$RangeError,"%ReferenceError%":$ReferenceError,"%Reflect%":typeof Reflect>"u"?undefined$1:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?undefined$1:Set,"%SetIteratorPrototype%":typeof Set>"u"||!hasSymbols||!getProto?undefined$1:getProto(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?undefined$1:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":hasSymbols&&getProto?getProto(""[Symbol.iterator]()):undefined$1,"%Symbol%":hasSymbols?Symbol:undefined$1,"%SyntaxError%":$SyntaxError$1,"%ThrowTypeError%":ThrowTypeError,"%TypedArray%":TypedArray,"%TypeError%":$TypeError$3,"%Uint8Array%":typeof Uint8Array>"u"?undefined$1:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?undefined$1:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?undefined$1:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?undefined$1:Uint32Array,"%URIError%":$URIError,"%WeakMap%":typeof WeakMap>"u"?undefined$1:WeakMap,"%WeakRef%":typeof WeakRef>"u"?undefined$1:WeakRef,"%WeakSet%":typeof WeakSet>"u"?undefined$1:WeakSet};if(getProto)try{null.error}catch(n){var errorProto=getProto(getProto(n));INTRINSICS["%Error.prototype%"]=errorProto}var doEval=function n(e){var t;if(e==="%AsyncFunction%")t=getEvalledConstructor("async function () {}");else if(e==="%GeneratorFunction%")t=getEvalledConstructor("function* () {}");else if(e==="%AsyncGeneratorFunction%")t=getEvalledConstructor("async function* () {}");else if(e==="%AsyncGenerator%"){var r=n("%AsyncGeneratorFunction%");r&&(t=r.prototype)}else if(e==="%AsyncIteratorPrototype%"){var o=n("%AsyncGenerator%");o&&getProto&&(t=getProto(o.prototype))}return INTRINSICS[e]=t,t},LEGACY_ALIASES={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},bind=functionBind,hasOwn$1=hasown,$concat$1=bind.call(Function.call,Array.prototype.concat),$spliceApply=bind.call(Function.apply,Array.prototype.splice),$replace$1=bind.call(Function.call,String.prototype.replace),$strSlice=bind.call(Function.call,String.prototype.slice),$exec=bind.call(Function.call,RegExp.prototype.exec),rePropName=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,reEscapeChar=/\\(\\)?/g,stringToPath=function n(e){var t=$strSlice(e,0,1),r=$strSlice(e,-1);if(t==="%"&&r!=="%")throw new $SyntaxError$1("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&t!=="%")throw new $SyntaxError$1("invalid intrinsic syntax, expected opening `%`");var o=[];return $replace$1(e,rePropName,function(s,l,f,E){o[o.length]=f?$replace$1(E,reEscapeChar,"$1"):l||s}),o},getBaseIntrinsic=function n(e,t){var r=e,o;if(hasOwn$1(LEGACY_ALIASES,r)&&(o=LEGACY_ALIASES[r],r="%"+o[0]+"%"),hasOwn$1(INTRINSICS,r)){var s=INTRINSICS[r];if(s===needsEval&&(s=doEval(r)),typeof s>"u"&&!t)throw new $TypeError$3("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:o,name:r,value:s}}throw new $SyntaxError$1("intrinsic "+e+" does not exist!")},getIntrinsic=function n(e,t){if(typeof e!="string"||e.length===0)throw new $TypeError$3("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new $TypeError$3('"allowMissing" argument must be a boolean');if($exec(/^%?[^%]*%?$/,e)===null)throw new $SyntaxError$1("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=stringToPath(e),o=r.length>0?r[0]:"",s=getBaseIntrinsic("%"+o+"%",t),l=s.name,f=s.value,E=!1,d=s.alias;d&&(o=d[0],$spliceApply(r,$concat$1([0,1],d)));for(var g=1,y=!0;g<r.length;g+=1){var S=r[g],x=$strSlice(S,0,1),w=$strSlice(S,-1);if((x==='"'||x==="'"||x==="`"||w==='"'||w==="'"||w==="`")&&x!==w)throw new $SyntaxError$1("property names with quotes must have matching quotes");if((S==="constructor"||!y)&&(E=!0),o+="."+S,l="%"+o+"%",hasOwn$1(INTRINSICS,l))f=INTRINSICS[l];else if(f!=null){if(!(S in f)){if(!t)throw new $TypeError$3("base intrinsic for "+e+" exists, but the property is not available.");return}if($gOPD$1&&g+1>=r.length){var C=$gOPD$1(f,S);y=!!C,y&&"get"in C&&!("originalValue"in C.get)?f=C.get:f=f[S]}else y=hasOwn$1(f,S),f=f[S];y&&!E&&(INTRINSICS[l]=f)}}return f},callBind$1={exports:{}},esDefineProperty,hasRequiredEsDefineProperty;function requireEsDefineProperty(){if(hasRequiredEsDefineProperty)return esDefineProperty;hasRequiredEsDefineProperty=1;var n=getIntrinsic,e=n("%Object.defineProperty%",!0)||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return esDefineProperty=e,esDefineProperty}var GetIntrinsic$3=getIntrinsic,$gOPD=GetIntrinsic$3("%Object.getOwnPropertyDescriptor%",!0);if($gOPD)try{$gOPD([],"length")}catch{$gOPD=null}var gopd$1=$gOPD,$defineProperty$1=requireEsDefineProperty(),$SyntaxError=syntax,$TypeError$2=type,gopd=gopd$1,defineDataProperty=function n(e,t,r){if(!e||typeof e!="object"&&typeof e!="function")throw new $TypeError$2("`obj` must be an object or a function`");if(typeof t!="string"&&typeof t!="symbol")throw new $TypeError$2("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new $TypeError$2("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new $TypeError$2("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new $TypeError$2("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new $TypeError$2("`loose`, if provided, must be a boolean");var o=arguments.length>3?arguments[3]:null,s=arguments.length>4?arguments[4]:null,l=arguments.length>5?arguments[5]:null,f=arguments.length>6?arguments[6]:!1,E=!!gopd&&gopd(e,t);if($defineProperty$1)$defineProperty$1(e,t,{configurable:l===null&&E?E.configurable:!l,enumerable:o===null&&E?E.enumerable:!o,value:r,writable:s===null&&E?E.writable:!s});else if(f||!o&&!s&&!l)e[t]=r;else throw new $SyntaxError("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},$defineProperty=requireEsDefineProperty(),hasPropertyDescriptors=function n(){return!!$defineProperty};hasPropertyDescriptors.hasArrayLengthDefineBug=function n(){if(!$defineProperty)return null;try{return $defineProperty([],"length",{value:1}).length!==1}catch{return!0}};var hasPropertyDescriptors_1=hasPropertyDescriptors,GetIntrinsic$2=getIntrinsic,define=defineDataProperty,hasDescriptors=hasPropertyDescriptors_1(),gOPD=gopd$1,$TypeError$1=type,$floor$1=GetIntrinsic$2("%Math.floor%"),setFunctionLength=function n(e,t){if(typeof e!="function")throw new $TypeError$1("`fn` is not a function");if(typeof t!="number"||t<0||t>4294967295||$floor$1(t)!==t)throw new $TypeError$1("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],o=!0,s=!0;if("length"in e&&gOPD){var l=gOPD(e,"length");l&&!l.configurable&&(o=!1),l&&!l.writable&&(s=!1)}return(o||s||!r)&&(hasDescriptors?define(e,"length",t,!0,!0):define(e,"length",t)),e};(function(n){var e=functionBind,t=getIntrinsic,r=setFunctionLength,o=type,s=t("%Function.prototype.apply%"),l=t("%Function.prototype.call%"),f=t("%Reflect.apply%",!0)||e.call(l,s),E=requireEsDefineProperty(),d=t("%Math.max%");n.exports=function(S){if(typeof S!="function")throw new o("a function is required");var x=f(e,l,arguments);return r(x,1+d(0,S.length-(arguments.length-1)),!0)};var g=function(){return f(e,s,arguments)};E?E(n.exports,"apply",{value:g}):n.exports.apply=g})(callBind$1);var callBindExports=callBind$1.exports,GetIntrinsic$1=getIntrinsic,callBind=callBindExports,$indexOf=callBind(GetIntrinsic$1("String.prototype.indexOf")),callBound$1=function n(e,t){var r=GetIntrinsic$1(e,!!t);return typeof r=="function"&&$indexOf(e,".prototype.")>-1?callBind(r):r};const __viteBrowserExternal={},__viteBrowserExternal$1=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$0=getAugmentedNamespace(__viteBrowserExternal$1);var hasMap=typeof Map=="function"&&Map.prototype,mapSizeDescriptor=Object.getOwnPropertyDescriptor&&hasMap?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,mapSize=hasMap&&mapSizeDescriptor&&typeof mapSizeDescriptor.get=="function"?mapSizeDescriptor.get:null,mapForEach=hasMap&&Map.prototype.forEach,hasSet=typeof Set=="function"&&Set.prototype,setSizeDescriptor=Object.getOwnPropertyDescriptor&&hasSet?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,setSize=hasSet&&setSizeDescriptor&&typeof setSizeDescriptor.get=="function"?setSizeDescriptor.get:null,setForEach=hasSet&&Set.prototype.forEach,hasWeakMap=typeof WeakMap=="function"&&WeakMap.prototype,weakMapHas=hasWeakMap?WeakMap.prototype.has:null,hasWeakSet=typeof WeakSet=="function"&&WeakSet.prototype,weakSetHas=hasWeakSet?WeakSet.prototype.has:null,hasWeakRef=typeof WeakRef=="function"&&WeakRef.prototype,weakRefDeref=hasWeakRef?WeakRef.prototype.deref:null,booleanValueOf=Boolean.prototype.valueOf,objectToString=Object.prototype.toString,functionToString=Function.prototype.toString,$match=String.prototype.match,$slice=String.prototype.slice,$replace=String.prototype.replace,$toUpperCase=String.prototype.toUpperCase,$toLowerCase=String.prototype.toLowerCase,$test=RegExp.prototype.test,$concat=Array.prototype.concat,$join=Array.prototype.join,$arrSlice=Array.prototype.slice,$floor=Math.floor,bigIntValueOf=typeof BigInt=="function"?BigInt.prototype.valueOf:null,gOPS=Object.getOwnPropertySymbols,symToString=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,hasShammedSymbols=typeof Symbol=="function"&&typeof Symbol.iterator=="object",toStringTag=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===hasShammedSymbols||"symbol")?Symbol.toStringTag:null,isEnumerable=Object.prototype.propertyIsEnumerable,gPO=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(n){return n.__proto__}:null);function addNumericSeparator(n,e){if(n===1/0||n===-1/0||n!==n||n&&n>-1e3&&n<1e3||$test.call(/e/,e))return e;var t=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof n=="number"){var r=n<0?-$floor(-n):$floor(n);if(r!==n){var o=String(r),s=$slice.call(e,o.length+1);return $replace.call(o,t,"$&_")+"."+$replace.call($replace.call(s,/([0-9]{3})/g,"$&_"),/_$/,"")}}return $replace.call(e,t,"$&_")}var utilInspect=require$$0,inspectCustom=utilInspect.custom,inspectSymbol=isSymbol(inspectCustom)?inspectCustom:null,objectInspect=function n(e,t,r,o){var s=t||{};if(has$3(s,"quoteStyle")&&s.quoteStyle!=="single"&&s.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(has$3(s,"maxStringLength")&&(typeof s.maxStringLength=="number"?s.maxStringLength<0&&s.maxStringLength!==1/0:s.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var l=has$3(s,"customInspect")?s.customInspect:!0;if(typeof l!="boolean"&&l!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(has$3(s,"indent")&&s.indent!==null&&s.indent!==" "&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(has$3(s,"numericSeparator")&&typeof s.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var f=s.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return inspectString(e,s);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var E=String(e);return f?addNumericSeparator(e,E):E}if(typeof e=="bigint"){var d=String(e)+"n";return f?addNumericSeparator(e,d):d}var g=typeof s.depth>"u"?5:s.depth;if(typeof r>"u"&&(r=0),r>=g&&g>0&&typeof e=="object")return isArray$3(e)?"[Array]":"[Object]";var y=getIndent(s,r);if(typeof o>"u")o=[];else if(indexOf(o,e)>=0)return"[Circular]";function S(q,oe,ue){if(oe&&(o=$arrSlice.call(o),o.push(oe)),ue){var pe={depth:s.depth};return has$3(s,"quoteStyle")&&(pe.quoteStyle=s.quoteStyle),n(q,pe,r+1,o)}return n(q,s,r+1,o)}if(typeof e=="function"&&!isRegExp$1(e)){var x=nameOf(e),w=arrObjKeys(e,S);return"[Function"+(x?": "+x:" (anonymous)")+"]"+(w.length>0?" { "+$join.call(w,", ")+" }":"")}if(isSymbol(e)){var C=hasShammedSymbols?$replace.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):symToString.call(e);return typeof e=="object"&&!hasShammedSymbols?markBoxed(C):C}if(isElement$2(e)){for(var H="<"+$toLowerCase.call(String(e.nodeName)),D=e.attributes||[],Z=0;Z<D.length;Z++)H+=" "+D[Z].name+"="+wrapQuotes(quote(D[Z].value),"double",s);return H+=">",e.childNodes&&e.childNodes.length&&(H+="..."),H+="</"+$toLowerCase.call(String(e.nodeName))+">",H}if(isArray$3(e)){if(e.length===0)return"[]";var B=arrObjKeys(e,S);return y&&!singleLineValues(B)?"["+indentedJoin(B,y)+"]":"[ "+$join.call(B,", ")+" ]"}if(isError(e)){var Y=arrObjKeys(e,S);return!("cause"in Error.prototype)&&"cause"in e&&!isEnumerable.call(e,"cause")?"{ ["+String(e)+"] "+$join.call($concat.call("[cause]: "+S(e.cause),Y),", ")+" }":Y.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+$join.call(Y,", ")+" }"}if(typeof e=="object"&&l){if(inspectSymbol&&typeof e[inspectSymbol]=="function"&&utilInspect)return utilInspect(e,{depth:g-r});if(l!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(isMap(e)){var ne=[];return mapForEach&&mapForEach.call(e,function(q,oe){ne.push(S(oe,e,!0)+" => "+S(q,e))}),collectionOf("Map",mapSize.call(e),ne,y)}if(isSet(e)){var V=[];return setForEach&&setForEach.call(e,function(q){V.push(S(q,e))}),collectionOf("Set",setSize.call(e),V,y)}if(isWeakMap(e))return weakCollectionOf("WeakMap");if(isWeakSet(e))return weakCollectionOf("WeakSet");if(isWeakRef(e))return weakCollectionOf("WeakRef");if(isNumber(e))return markBoxed(S(Number(e)));if(isBigInt(e))return markBoxed(S(bigIntValueOf.call(e)));if(isBoolean(e))return markBoxed(booleanValueOf.call(e));if(isString(e))return markBoxed(S(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(typeof globalThis<"u"&&e===globalThis||typeof commonjsGlobal<"u"&&e===commonjsGlobal)return"{ [object globalThis] }";if(!isDate(e)&&!isRegExp$1(e)){var u=arrObjKeys(e,S),X=gPO?gPO(e)===Object.prototype:e instanceof Object||e.constructor===Object,G=e instanceof Object?"":"null prototype",I=!X&&toStringTag&&Object(e)===e&&toStringTag in e?$slice.call(toStr(e),8,-1):G?"Object":"",K=X||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",U=K+(I||G?"["+$join.call($concat.call([],I||[],G||[]),": ")+"] ":"");return u.length===0?U+"{}":y?U+"{"+indentedJoin(u,y)+"}":U+"{ "+$join.call(u,", ")+" }"}return String(e)};function wrapQuotes(n,e,t){var r=(t.quoteStyle||e)==="double"?'"':"'";return r+n+r}function quote(n){return $replace.call(String(n),/"/g,""")}function isArray$3(n){return toStr(n)==="[object Array]"&&(!toStringTag||!(typeof n=="object"&&toStringTag in n))}function isDate(n){return toStr(n)==="[object Date]"&&(!toStringTag||!(typeof n=="object"&&toStringTag in n))}function isRegExp$1(n){return toStr(n)==="[object RegExp]"&&(!toStringTag||!(typeof n=="object"&&toStringTag in n))}function isError(n){return toStr(n)==="[object Error]"&&(!toStringTag||!(typeof n=="object"&&toStringTag in n))}function isString(n){return toStr(n)==="[object String]"&&(!toStringTag||!(typeof n=="object"&&toStringTag in n))}function isNumber(n){return toStr(n)==="[object Number]"&&(!toStringTag||!(typeof n=="object"&&toStringTag in n))}function isBoolean(n){return toStr(n)==="[object Boolean]"&&(!toStringTag||!(typeof n=="object"&&toStringTag in n))}function isSymbol(n){if(hasShammedSymbols)return n&&typeof n=="object"&&n instanceof Symbol;if(typeof n=="symbol")return!0;if(!n||typeof n!="object"||!symToString)return!1;try{return symToString.call(n),!0}catch{}return!1}function isBigInt(n){if(!n||typeof n!="object"||!bigIntValueOf)return!1;try{return bigIntValueOf.call(n),!0}catch{}return!1}var hasOwn=Object.prototype.hasOwnProperty||function(n){return n in this};function has$3(n,e){return hasOwn.call(n,e)}function toStr(n){return objectToString.call(n)}function nameOf(n){if(n.name)return n.name;var e=$match.call(functionToString.call(n),/^function\s*([\w$]+)/);return e?e[1]:null}function indexOf(n,e){if(n.indexOf)return n.indexOf(e);for(var t=0,r=n.length;t<r;t++)if(n[t]===e)return t;return-1}function isMap(n){if(!mapSize||!n||typeof n!="object")return!1;try{mapSize.call(n);try{setSize.call(n)}catch{return!0}return n instanceof Map}catch{}return!1}function isWeakMap(n){if(!weakMapHas||!n||typeof n!="object")return!1;try{weakMapHas.call(n,weakMapHas);try{weakSetHas.call(n,weakSetHas)}catch{return!0}return n instanceof WeakMap}catch{}return!1}function isWeakRef(n){if(!weakRefDeref||!n||typeof n!="object")return!1;try{return weakRefDeref.call(n),!0}catch{}return!1}function isSet(n){if(!setSize||!n||typeof n!="object")return!1;try{setSize.call(n);try{mapSize.call(n)}catch{return!0}return n instanceof Set}catch{}return!1}function isWeakSet(n){if(!weakSetHas||!n||typeof n!="object")return!1;try{weakSetHas.call(n,weakSetHas);try{weakMapHas.call(n,weakMapHas)}catch{return!0}return n instanceof WeakSet}catch{}return!1}function isElement$2(n){return!n||typeof n!="object"?!1:typeof HTMLElement<"u"&&n instanceof HTMLElement?!0:typeof n.nodeName=="string"&&typeof n.getAttribute=="function"}function inspectString(n,e){if(n.length>e.maxStringLength){var t=n.length-e.maxStringLength,r="... "+t+" more character"+(t>1?"s":"");return inspectString($slice.call(n,0,e.maxStringLength),e)+r}var o=$replace.call($replace.call(n,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,lowbyte);return wrapQuotes(o,"single",e)}function lowbyte(n){var e=n.charCodeAt(0),t={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return t?"\\"+t:"\\x"+(e<16?"0":"")+$toUpperCase.call(e.toString(16))}function markBoxed(n){return"Object("+n+")"}function weakCollectionOf(n){return n+" { ? }"}function collectionOf(n,e,t,r){var o=r?indentedJoin(t,r):$join.call(t,", ");return n+" ("+e+") {"+o+"}"}function singleLineValues(n){for(var e=0;e<n.length;e++)if(indexOf(n[e],`
|
||
`)>=0)return!1;return!0}function getIndent(n,e){var t;if(n.indent===" ")t=" ";else if(typeof n.indent=="number"&&n.indent>0)t=$join.call(Array(n.indent+1)," ");else return null;return{base:t,prev:$join.call(Array(e+1),t)}}function indentedJoin(n,e){if(n.length===0)return"";var t=`
|
||
`+e.prev+e.base;return t+$join.call(n,","+t)+`
|
||
`+e.prev}function arrObjKeys(n,e){var t=isArray$3(n),r=[];if(t){r.length=n.length;for(var o=0;o<n.length;o++)r[o]=has$3(n,o)?e(n[o],n):""}var s=typeof gOPS=="function"?gOPS(n):[],l;if(hasShammedSymbols){l={};for(var f=0;f<s.length;f++)l["$"+s[f]]=s[f]}for(var E in n)has$3(n,E)&&(t&&String(Number(E))===E&&E<n.length||hasShammedSymbols&&l["$"+E]instanceof Symbol||($test.call(/[^\w$]/,E)?r.push(e(E,n)+": "+e(n[E],n)):r.push(E+": "+e(n[E],n))));if(typeof gOPS=="function")for(var d=0;d<s.length;d++)isEnumerable.call(n,s[d])&&r.push("["+e(s[d])+"]: "+e(n[s[d]],n));return r}var GetIntrinsic=getIntrinsic,callBound=callBound$1,inspect=objectInspect,$TypeError=type,$WeakMap=GetIntrinsic("%WeakMap%",!0),$Map=GetIntrinsic("%Map%",!0),$weakMapGet=callBound("WeakMap.prototype.get",!0),$weakMapSet=callBound("WeakMap.prototype.set",!0),$weakMapHas=callBound("WeakMap.prototype.has",!0),$mapGet=callBound("Map.prototype.get",!0),$mapSet=callBound("Map.prototype.set",!0),$mapHas=callBound("Map.prototype.has",!0),listGetNode=function(n,e){for(var t=n,r;(r=t.next)!==null;t=r)if(r.key===e)return t.next=r.next,r.next=n.next,n.next=r,r},listGet=function(n,e){var t=listGetNode(n,e);return t&&t.value},listSet=function(n,e,t){var r=listGetNode(n,e);r?r.value=t:n.next={key:e,next:n.next,value:t}},listHas=function(n,e){return!!listGetNode(n,e)},sideChannel=function n(){var e,t,r,o={assert:function(s){if(!o.has(s))throw new $TypeError("Side channel does not contain "+inspect(s))},get:function(s){if($WeakMap&&s&&(typeof s=="object"||typeof s=="function")){if(e)return $weakMapGet(e,s)}else if($Map){if(t)return $mapGet(t,s)}else if(r)return listGet(r,s)},has:function(s){if($WeakMap&&s&&(typeof s=="object"||typeof s=="function")){if(e)return $weakMapHas(e,s)}else if($Map){if(t)return $mapHas(t,s)}else if(r)return listHas(r,s);return!1},set:function(s,l){$WeakMap&&s&&(typeof s=="object"||typeof s=="function")?(e||(e=new $WeakMap),$weakMapSet(e,s,l)):$Map?(t||(t=new $Map),$mapSet(t,s,l)):(r||(r={key:{},next:null}),listSet(r,s,l))}};return o},replace=String.prototype.replace,percentTwenties=/%20/g,Format={RFC1738:"RFC1738",RFC3986:"RFC3986"},formats$3={default:Format.RFC3986,formatters:{RFC1738:function(n){return replace.call(n,percentTwenties,"+")},RFC3986:function(n){return String(n)}},RFC1738:Format.RFC1738,RFC3986:Format.RFC3986},formats$2=formats$3,has$2=Object.prototype.hasOwnProperty,isArray$2=Array.isArray,hexTable=function(){for(var n=[],e=0;e<256;++e)n.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return n}(),compactQueue=function n(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(isArray$2(r)){for(var o=[],s=0;s<r.length;++s)typeof r[s]<"u"&&o.push(r[s]);t.obj[t.prop]=o}}},arrayToObject=function n(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},o=0;o<e.length;++o)typeof e[o]<"u"&&(r[o]=e[o]);return r},merge=function n(e,t,r){if(!t)return e;if(typeof t!="object"){if(isArray$2(e))e.push(t);else if(e&&typeof e=="object")(r&&(r.plainObjects||r.allowPrototypes)||!has$2.call(Object.prototype,t))&&(e[t]=!0);else return[e,t];return e}if(!e||typeof e!="object")return[e].concat(t);var o=e;return isArray$2(e)&&!isArray$2(t)&&(o=arrayToObject(e,r)),isArray$2(e)&&isArray$2(t)?(t.forEach(function(s,l){if(has$2.call(e,l)){var f=e[l];f&&typeof f=="object"&&s&&typeof s=="object"?e[l]=n(f,s,r):e.push(s)}else e[l]=s}),e):Object.keys(t).reduce(function(s,l){var f=t[l];return has$2.call(s,l)?s[l]=n(s[l],f,r):s[l]=f,s},o)},assign=function n(e,t){return Object.keys(t).reduce(function(r,o){return r[o]=t[o],r},e)},decode=function(n,e,t){var r=n.replace(/\+/g," ");if(t==="iso-8859-1")return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch{return r}},limit=1024,encode=function n(e,t,r,o,s){if(e.length===0)return e;var l=e;if(typeof e=="symbol"?l=Symbol.prototype.toString.call(e):typeof e!="string"&&(l=String(e)),r==="iso-8859-1")return escape(l).replace(/%u[0-9a-f]{4}/gi,function(x){return"%26%23"+parseInt(x.slice(2),16)+"%3B"});for(var f="",E=0;E<l.length;E+=limit){for(var d=l.length>=limit?l.slice(E,E+limit):l,g=[],y=0;y<d.length;++y){var S=d.charCodeAt(y);if(S===45||S===46||S===95||S===126||S>=48&&S<=57||S>=65&&S<=90||S>=97&&S<=122||s===formats$2.RFC1738&&(S===40||S===41)){g[g.length]=d.charAt(y);continue}if(S<128){g[g.length]=hexTable[S];continue}if(S<2048){g[g.length]=hexTable[192|S>>6]+hexTable[128|S&63];continue}if(S<55296||S>=57344){g[g.length]=hexTable[224|S>>12]+hexTable[128|S>>6&63]+hexTable[128|S&63];continue}y+=1,S=65536+((S&1023)<<10|d.charCodeAt(y)&1023),g[g.length]=hexTable[240|S>>18]+hexTable[128|S>>12&63]+hexTable[128|S>>6&63]+hexTable[128|S&63]}f+=g.join("")}return f},compact=function n(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],o=0;o<t.length;++o)for(var s=t[o],l=s.obj[s.prop],f=Object.keys(l),E=0;E<f.length;++E){var d=f[E],g=l[d];typeof g=="object"&&g!==null&&r.indexOf(g)===-1&&(t.push({obj:l,prop:d}),r.push(g))}return compactQueue(t),e},isRegExp=function n(e){return Object.prototype.toString.call(e)==="[object RegExp]"},isBuffer=function n(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},combine=function n(e,t){return[].concat(e,t)},maybeMap=function n(e,t){if(isArray$2(e)){for(var r=[],o=0;o<e.length;o+=1)r.push(t(e[o]));return r}return t(e)},utils$2={arrayToObject,assign,combine,compact,decode,encode,isBuffer,isRegExp,maybeMap,merge},getSideChannel=sideChannel,utils$1=utils$2,formats$1=formats$3,has$1=Object.prototype.hasOwnProperty,arrayPrefixGenerators={brackets:function n(e){return e+"[]"},comma:"comma",indices:function n(e,t){return e+"["+t+"]"},repeat:function n(e){return e}},isArray$1=Array.isArray,push=Array.prototype.push,pushToArray=function(n,e){push.apply(n,isArray$1(e)?e:[e])},toISO=Date.prototype.toISOString,defaultFormat=formats$1.default,defaults$1={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:utils$1.encode,encodeValuesOnly:!1,format:defaultFormat,formatter:formats$1.formatters[defaultFormat],indices:!1,serializeDate:function n(e){return toISO.call(e)},skipNulls:!1,strictNullHandling:!1},isNonNullishPrimitive=function n(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},sentinel={},stringify$1=function n(e,t,r,o,s,l,f,E,d,g,y,S,x,w,C,H,D,Z){for(var B=e,Y=Z,ne=0,V=!1;(Y=Y.get(sentinel))!==void 0&&!V;){var u=Y.get(e);if(ne+=1,typeof u<"u"){if(u===ne)throw new RangeError("Cyclic object value");V=!0}typeof Y.get(sentinel)>"u"&&(ne=0)}if(typeof g=="function"?B=g(t,B):B instanceof Date?B=x(B):r==="comma"&&isArray$1(B)&&(B=utils$1.maybeMap(B,function(Re){return Re instanceof Date?x(Re):Re})),B===null){if(l)return d&&!H?d(t,defaults$1.encoder,D,"key",w):t;B=""}if(isNonNullishPrimitive(B)||utils$1.isBuffer(B)){if(d){var X=H?t:d(t,defaults$1.encoder,D,"key",w);return[C(X)+"="+C(d(B,defaults$1.encoder,D,"value",w))]}return[C(t)+"="+C(String(B))]}var G=[];if(typeof B>"u")return G;var I;if(r==="comma"&&isArray$1(B))H&&d&&(B=utils$1.maybeMap(B,d)),I=[{value:B.length>0?B.join(",")||null:void 0}];else if(isArray$1(g))I=g;else{var K=Object.keys(B);I=y?K.sort(y):K}var U=E?t.replace(/\./g,"%2E"):t,q=o&&isArray$1(B)&&B.length===1?U+"[]":U;if(s&&isArray$1(B)&&B.length===0)return q+"[]";for(var oe=0;oe<I.length;++oe){var ue=I[oe],pe=typeof ue=="object"&&typeof ue.value<"u"?ue.value:B[ue];if(!(f&&pe===null)){var le=S&&E?ue.replace(/\./g,"%2E"):ue,ve=isArray$1(B)?typeof r=="function"?r(q,le):q:q+(S?"."+le:"["+le+"]");Z.set(e,ne);var he=getSideChannel();he.set(sentinel,Z),pushToArray(G,n(pe,ve,r,o,s,l,f,E,r==="comma"&&H&&isArray$1(B)?null:d,g,y,S,x,w,C,H,D,he))}}return G},normalizeStringifyOptions=function n(e){if(!e)return defaults$1;if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.encodeDotInKeys<"u"&&typeof e.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(e.encoder!==null&&typeof e.encoder<"u"&&typeof e.encoder!="function")throw new TypeError("Encoder has to be a function.");var t=e.charset||defaults$1.charset;if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=formats$1.default;if(typeof e.format<"u"){if(!has$1.call(formats$1.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var o=formats$1.formatters[r],s=defaults$1.filter;(typeof e.filter=="function"||isArray$1(e.filter))&&(s=e.filter);var l;if(e.arrayFormat in arrayPrefixGenerators?l=e.arrayFormat:"indices"in e?l=e.indices?"indices":"repeat":l=defaults$1.arrayFormat,"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var f=typeof e.allowDots>"u"?e.encodeDotInKeys===!0?!0:defaults$1.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:defaults$1.addQueryPrefix,allowDots:f,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:defaults$1.allowEmptyArrays,arrayFormat:l,charset:t,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:defaults$1.charsetSentinel,commaRoundTrip:e.commaRoundTrip,delimiter:typeof e.delimiter>"u"?defaults$1.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:defaults$1.encode,encodeDotInKeys:typeof e.encodeDotInKeys=="boolean"?e.encodeDotInKeys:defaults$1.encodeDotInKeys,encoder:typeof e.encoder=="function"?e.encoder:defaults$1.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:defaults$1.encodeValuesOnly,filter:s,format:r,formatter:o,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:defaults$1.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:defaults$1.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:defaults$1.strictNullHandling}},stringify_1=function(n,e){var t=n,r=normalizeStringifyOptions(e),o,s;typeof r.filter=="function"?(s=r.filter,t=s("",t)):isArray$1(r.filter)&&(s=r.filter,o=s);var l=[];if(typeof t!="object"||t===null)return"";var f=arrayPrefixGenerators[r.arrayFormat],E=f==="comma"&&r.commaRoundTrip;o||(o=Object.keys(t)),r.sort&&o.sort(r.sort);for(var d=getSideChannel(),g=0;g<o.length;++g){var y=o[g];r.skipNulls&&t[y]===null||pushToArray(l,stringify$1(t[y],y,f,E,r.allowEmptyArrays,r.strictNullHandling,r.skipNulls,r.encodeDotInKeys,r.encode?r.encoder:null,r.filter,r.sort,r.allowDots,r.serializeDate,r.format,r.formatter,r.encodeValuesOnly,r.charset,d))}var S=l.join(r.delimiter),x=r.addQueryPrefix===!0?"?":"";return r.charsetSentinel&&(r.charset==="iso-8859-1"?x+="utf8=%26%2310003%3B&":x+="utf8=%E2%9C%93&"),S.length>0?x+S:""},utils=utils$2,has=Object.prototype.hasOwnProperty,isArray=Array.isArray,defaults={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:utils.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},interpretNumericEntities=function(n){return n.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},parseArrayValue=function(n,e){return n&&typeof n=="string"&&e.comma&&n.indexOf(",")>-1?n.split(","):n},isoSentinel="utf8=%26%2310003%3B",charsetSentinel="utf8=%E2%9C%93",parseValues=function n(e,t){var r={__proto__:null},o=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;o=o.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var s=t.parameterLimit===1/0?void 0:t.parameterLimit,l=o.split(t.delimiter,s),f=-1,E,d=t.charset;if(t.charsetSentinel)for(E=0;E<l.length;++E)l[E].indexOf("utf8=")===0&&(l[E]===charsetSentinel?d="utf-8":l[E]===isoSentinel&&(d="iso-8859-1"),f=E,E=l.length);for(E=0;E<l.length;++E)if(E!==f){var g=l[E],y=g.indexOf("]="),S=y===-1?g.indexOf("="):y+1,x,w;S===-1?(x=t.decoder(g,defaults.decoder,d,"key"),w=t.strictNullHandling?null:""):(x=t.decoder(g.slice(0,S),defaults.decoder,d,"key"),w=utils.maybeMap(parseArrayValue(g.slice(S+1),t),function(H){return t.decoder(H,defaults.decoder,d,"value")})),w&&t.interpretNumericEntities&&d==="iso-8859-1"&&(w=interpretNumericEntities(w)),g.indexOf("[]=")>-1&&(w=isArray(w)?[w]:w);var C=has.call(r,x);C&&t.duplicates==="combine"?r[x]=utils.combine(r[x],w):(!C||t.duplicates==="last")&&(r[x]=w)}return r},parseObject=function(n,e,t,r){for(var o=r?e:parseArrayValue(e,t),s=n.length-1;s>=0;--s){var l,f=n[s];if(f==="[]"&&t.parseArrays)l=t.allowEmptyArrays&&o===""?[]:[].concat(o);else{l=t.plainObjects?Object.create(null):{};var E=f.charAt(0)==="["&&f.charAt(f.length-1)==="]"?f.slice(1,-1):f,d=t.decodeDotInKeys?E.replace(/%2E/g,"."):E,g=parseInt(d,10);!t.parseArrays&&d===""?l={0:o}:!isNaN(g)&&f!==d&&String(g)===d&&g>=0&&t.parseArrays&&g<=t.arrayLimit?(l=[],l[g]=o):d!=="__proto__"&&(l[d]=o)}o=l}return o},parseKeys=function n(e,t,r,o){if(e){var s=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,l=/(\[[^[\]]*])/,f=/(\[[^[\]]*])/g,E=r.depth>0&&l.exec(s),d=E?s.slice(0,E.index):s,g=[];if(d){if(!r.plainObjects&&has.call(Object.prototype,d)&&!r.allowPrototypes)return;g.push(d)}for(var y=0;r.depth>0&&(E=f.exec(s))!==null&&y<r.depth;){if(y+=1,!r.plainObjects&&has.call(Object.prototype,E[1].slice(1,-1))&&!r.allowPrototypes)return;g.push(E[1])}return E&&g.push("["+s.slice(E.index)+"]"),parseObject(g,t,r,o)}},normalizeParseOptions=function n(e){if(!e)return defaults;if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.decodeDotInKeys<"u"&&typeof e.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(e.decoder!==null&&typeof e.decoder<"u"&&typeof e.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=typeof e.charset>"u"?defaults.charset:e.charset,r=typeof e.duplicates>"u"?defaults.duplicates:e.duplicates;if(r!=="combine"&&r!=="first"&&r!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var o=typeof e.allowDots>"u"?e.decodeDotInKeys===!0?!0:defaults.allowDots:!!e.allowDots;return{allowDots:o,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:defaults.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:defaults.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:defaults.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:defaults.arrayLimit,charset:t,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:defaults.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:defaults.comma,decodeDotInKeys:typeof e.decodeDotInKeys=="boolean"?e.decodeDotInKeys:defaults.decodeDotInKeys,decoder:typeof e.decoder=="function"?e.decoder:defaults.decoder,delimiter:typeof e.delimiter=="string"||utils.isRegExp(e.delimiter)?e.delimiter:defaults.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:defaults.depth,duplicates:r,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:defaults.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:defaults.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:defaults.plainObjects,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:defaults.strictNullHandling}},parse$1=function(n,e){var t=normalizeParseOptions(e);if(n===""||n===null||typeof n>"u")return t.plainObjects?Object.create(null):{};for(var r=typeof n=="string"?parseValues(n,t):n,o=t.plainObjects?Object.create(null):{},s=Object.keys(r),l=0;l<s.length;++l){var f=s[l],E=parseKeys(f,r[f],t,typeof n=="string");o=utils.merge(o,E,t)}return t.allowSparse===!0?o:utils.compact(o)},stringify=stringify_1,parse=parse$1,formats=formats$3,lib={formats,parse,stringify},base64={exports:{}};(function(n,e){(function(t,r){n.exports=r()})(typeof self<"u"?self:typeof window<"u"?window:commonjsGlobal,function(){var t="3.7.7",r=t,o=typeof Buffer=="function",s=typeof TextDecoder=="function"?new TextDecoder:void 0,l=typeof TextEncoder=="function"?new TextEncoder:void 0,f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",E=Array.prototype.slice.call(f),d=function(j){var ee={};return j.forEach(function(Te,$e){return ee[Te]=$e}),ee}(E),g=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,y=String.fromCharCode.bind(String),S=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):function(j){return new Uint8Array(Array.prototype.slice.call(j,0))},x=function(j){return j.replace(/=/g,"").replace(/[+\/]/g,function(ee){return ee=="+"?"-":"_"})},w=function(j){return j.replace(/[^A-Za-z0-9\+\/]/g,"")},C=function(j){for(var ee,Te,$e,Me,Oe="",Ze=j.length%3,Fe=0;Fe<j.length;){if((Te=j.charCodeAt(Fe++))>255||($e=j.charCodeAt(Fe++))>255||(Me=j.charCodeAt(Fe++))>255)throw new TypeError("invalid character found");ee=Te<<16|$e<<8|Me,Oe+=E[ee>>18&63]+E[ee>>12&63]+E[ee>>6&63]+E[ee&63]}return Ze?Oe.slice(0,Ze-3)+"===".substring(Ze):Oe},H=typeof btoa=="function"?function(j){return btoa(j)}:o?function(j){return Buffer.from(j,"binary").toString("base64")}:C,D=o?function(j){return Buffer.from(j).toString("base64")}:function(j){for(var ee=4096,Te=[],$e=0,Me=j.length;$e<Me;$e+=ee)Te.push(y.apply(null,j.subarray($e,$e+ee)));return H(Te.join(""))},Z=function(j,ee){return ee===void 0&&(ee=!1),ee?x(D(j)):D(j)},B=function(j){if(j.length<2){var ee=j.charCodeAt(0);return ee<128?j:ee<2048?y(192|ee>>>6)+y(128|ee&63):y(224|ee>>>12&15)+y(128|ee>>>6&63)+y(128|ee&63)}else{var ee=65536+(j.charCodeAt(0)-55296)*1024+(j.charCodeAt(1)-56320);return y(240|ee>>>18&7)+y(128|ee>>>12&63)+y(128|ee>>>6&63)+y(128|ee&63)}},Y=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,ne=function(j){return j.replace(Y,B)},V=o?function(j){return Buffer.from(j,"utf8").toString("base64")}:l?function(j){return D(l.encode(j))}:function(j){return H(ne(j))},u=function(j,ee){return ee===void 0&&(ee=!1),ee?x(V(j)):V(j)},X=function(j){return u(j,!0)},G=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,I=function(j){switch(j.length){case 4:var ee=(7&j.charCodeAt(0))<<18|(63&j.charCodeAt(1))<<12|(63&j.charCodeAt(2))<<6|63&j.charCodeAt(3),Te=ee-65536;return y((Te>>>10)+55296)+y((Te&1023)+56320);case 3:return y((15&j.charCodeAt(0))<<12|(63&j.charCodeAt(1))<<6|63&j.charCodeAt(2));default:return y((31&j.charCodeAt(0))<<6|63&j.charCodeAt(1))}},K=function(j){return j.replace(G,I)},U=function(j){if(j=j.replace(/\s+/g,""),!g.test(j))throw new TypeError("malformed base64.");j+="==".slice(2-(j.length&3));for(var ee,Te="",$e,Me,Oe=0;Oe<j.length;)ee=d[j.charAt(Oe++)]<<18|d[j.charAt(Oe++)]<<12|($e=d[j.charAt(Oe++)])<<6|(Me=d[j.charAt(Oe++)]),Te+=$e===64?y(ee>>16&255):Me===64?y(ee>>16&255,ee>>8&255):y(ee>>16&255,ee>>8&255,ee&255);return Te},q=typeof atob=="function"?function(j){return atob(w(j))}:o?function(j){return Buffer.from(j,"base64").toString("binary")}:U,oe=o?function(j){return S(Buffer.from(j,"base64"))}:function(j){return S(q(j).split("").map(function(ee){return ee.charCodeAt(0)}))},ue=function(j){return oe(le(j))},pe=o?function(j){return Buffer.from(j,"base64").toString("utf8")}:s?function(j){return s.decode(oe(j))}:function(j){return K(q(j))},le=function(j){return w(j.replace(/[-_]/g,function(ee){return ee=="-"?"+":"/"}))},ve=function(j){return pe(le(j))},he=function(j){if(typeof j!="string")return!1;var ee=j.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(ee)||!/[^\s0-9a-zA-Z\-_]/.test(ee)},Re=function(j){return{value:j,enumerable:!1,writable:!0,configurable:!0}},fe=function(){var j=function(ee,Te){return Object.defineProperty(String.prototype,ee,Re(Te))};j("fromBase64",function(){return ve(this)}),j("toBase64",function(ee){return u(this,ee)}),j("toBase64URI",function(){return u(this,!0)}),j("toBase64URL",function(){return u(this,!0)}),j("toUint8Array",function(){return ue(this)})},be=function(){var j=function(ee,Te){return Object.defineProperty(Uint8Array.prototype,ee,Re(Te))};j("toBase64",function(ee){return Z(this,ee)}),j("toBase64URI",function(){return Z(this,!0)}),j("toBase64URL",function(){return Z(this,!0)})},we=function(){fe(),be()},xe={version:t,VERSION:r,atob:q,atobPolyfill:U,btoa:H,btoaPolyfill:C,fromBase64:ve,toBase64:u,encode:u,encodeURI:X,encodeURL:X,utob:ne,btou:K,decode:ve,isValid:he,fromUint8Array:Z,toUint8Array:ue,extendString:fe,extendUint8Array:be,extendBuiltins:we};return xe.Base64={},Object.keys(xe).forEach(function(j){return xe.Base64[j]=xe[j]}),xe})})(base64);var base64Exports=base64.exports,__assign$2=commonjsGlobal&&commonjsGlobal.__assign||function(){return __assign$2=Object.assign||function(n){for(var e,t=1,r=arguments.length;t<r;t++){e=arguments[t];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o])}return n},__assign$2.apply(this,arguments)},__awaiter=commonjsGlobal&&commonjsGlobal.__awaiter||function(n,e,t,r){function o(s){return s instanceof t?s:new t(function(l){l(s)})}return new(t||(t=Promise))(function(s,l){function f(g){try{d(r.next(g))}catch(y){l(y)}}function E(g){try{d(r.throw(g))}catch(y){l(y)}}function d(g){g.done?s(g.value):o(g.value).then(f,E)}d((r=r.apply(n,e||[])).next())})},__generator=commonjsGlobal&&commonjsGlobal.__generator||function(n,e){var t={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,o,s,l;return l={next:f(0),throw:f(1),return:f(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function f(d){return function(g){return E([d,g])}}function E(d){if(r)throw new TypeError("Generator is already executing.");for(;l&&(l=0,d[0]&&(t=0)),t;)try{if(r=1,o&&(s=d[0]&2?o.return:d[0]?o.throw||((s=o.return)&&s.call(o),0):o.next)&&!(s=s.call(o,d[1])).done)return s;switch(o=0,s&&(d=[d[0]&2,s.value]),d[0]){case 0:case 1:s=d;break;case 4:return t.label++,{value:d[1],done:!1};case 5:t.label++,o=d[1],d=[0];continue;case 7:d=t.ops.pop(),t.trys.pop();continue;default:if(s=t.trys,!(s=s.length>0&&s[s.length-1])&&(d[0]===6||d[0]===2)){t=0;continue}if(d[0]===3&&(!s||d[1]>s[0]&&d[1]<s[3])){t.label=d[1];break}if(d[0]===6&&t.label<s[1]){t.label=s[1],s=d;break}if(s&&t.label<s[2]){t.label=s[2],t.ops.push(d);break}s[2]&&t.ops.pop(),t.trys.pop();continue}d=e.call(n,t)}catch(g){d=[6,g],o=0}finally{r=s=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}},__importDefault=commonjsGlobal&&commonjsGlobal.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(KintoneRequestConfigBuilder$1,"__esModule",{value:!0});KintoneRequestConfigBuilder$1.KintoneRequestConfigBuilder=void 0;var form_data_1=__importDefault(browser),qs_1=__importDefault(lib),js_base64_1=base64Exports,platform_1$1=platform$2,DEFAULT_PROXY_PROTOCOL="http",THRESHOLD_AVOID_REQUEST_URL_TOO_LARGE=4096,KintoneRequestConfigBuilder=function(){function n(e){if(this.baseUrl=e.baseUrl,this.auth=e.auth,this.headers=this.buildHeaders({basicAuth:e.basicAuth,userAgent:e.userAgent}),"httpsAgent"in e){if("clientCertAuth"in e)throw new Error("Cannot specify clientCertAuth along with httpsAgent.");this.httpsAgent=e.httpsAgent}else"clientCertAuth"in e&&(this.clientCertAuth=e.clientCertAuth);this.proxy=e.proxy,this.requestToken=null,this.socketTimeout=e.socketTimeout}return n.prototype.build=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var s,l,y,f,E,d,g,y,S,x,w,C,H;return __generator(this,function(D){switch(D.label){case 0:switch(s=__assign$2(__assign$2(__assign$2({method:e,headers:this.headers,url:"".concat(this.baseUrl).concat(t)},o||{}),platform_1$1.platformDeps.buildPlatformDependentConfig({httpsAgent:this.httpsAgent,clientCertAuth:this.clientCertAuth,socketTimeout:this.socketTimeout})),{proxy:this.buildProxyConfig(this.proxy)}),l=e,l){case"get":return[3,1];case"post":return[3,4];case"put":return[3,8];case"delete":return[3,10]}return[3,12];case 1:return y=this.buildRequestUrl(t,r),y.length>THRESHOLD_AVOID_REQUEST_URL_TOO_LARGE?(f=[__assign$2({},s)],w={method:"post",headers:__assign$2(__assign$2({},this.headers),{"X-HTTP-Method-Override":"GET"})},[4,this.buildData(r)]):[3,3];case 2:return[2,__assign$2.apply(void 0,f.concat([(w.data=D.sent(),w)]))];case 3:return[2,__assign$2(__assign$2({},s),{url:y})];case 4:return r instanceof form_data_1.default?[4,this.buildData(r)]:[3,6];case 5:return E=D.sent(),[2,__assign$2(__assign$2({},s),{headers:typeof E.getHeaders=="function"?__assign$2(__assign$2({},this.headers),E.getHeaders()):this.headers,data:E})];case 6:return d=[__assign$2({},s)],C={},[4,this.buildData(r)];case 7:return[2,__assign$2.apply(void 0,d.concat([(C.data=D.sent(),C)]))];case 8:return g=[__assign$2({},s)],H={},[4,this.buildData(r)];case 9:return[2,__assign$2.apply(void 0,g.concat([(H.data=D.sent(),H)]))];case 10:return S=this.buildRequestUrl,x=[t],[4,this.buildData(r)];case 11:return y=S.apply(this,x.concat([D.sent()])),[2,__assign$2(__assign$2({},s),{url:y})];case 12:throw new Error("".concat(e," method is not supported"));case 13:return[2]}})})},n.prototype.buildProxyConfig=function(e){var t;if(e!==void 0){if(e===!1)return!1;var r=e;return r.auth&&(r.auth.username.length===0||r.auth.password.length===0)&&(r.auth=void 0),r.protocol=(t=r.protocol)!==null&&t!==void 0?t:DEFAULT_PROXY_PROTOCOL,r}},n.prototype.buildRequestUrl=function(e,t){return"".concat(this.baseUrl).concat(e,"?").concat(qs_1.default.stringify(t))},n.prototype.buildData=function(e){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(r){switch(r.label){case 0:return this.auth.type!=="session"?[3,2]:[4,this.getRequestToken()];case 1:return t=r.sent(),e instanceof form_data_1.default?(e.append("__REQUEST_TOKEN__",t),[2,e]):[2,__assign$2({__REQUEST_TOKEN__:t},e)];case 2:return[2,e]}})})},n.prototype.buildHeaders=function(e){var t=e.basicAuth,r=e.userAgent,o=t?{Authorization:"Basic ".concat(js_base64_1.Base64.encode("".concat(t.username,":").concat(t.password)))}:{},s=platform_1$1.platformDeps.buildHeaders({userAgent:r}),l=__assign$2(__assign$2({},s),o);switch(this.auth.type){case"password":return __assign$2(__assign$2({},l),{"X-Cybozu-Authorization":js_base64_1.Base64.encode("".concat(this.auth.username,":").concat(this.auth.password))});case"apiToken":{var f=this.auth.apiToken;return Array.isArray(f)?__assign$2(__assign$2({},l),{"X-Cybozu-API-Token":f.join(",")}):__assign$2(__assign$2({},l),{"X-Cybozu-API-Token":f})}case"oAuthToken":return __assign$2(__assign$2({},l),{Authorization:"Bearer ".concat(this.auth.oAuthToken)});default:return __assign$2(__assign$2({},l),{"X-Requested-With":"XMLHttpRequest"})}},n.prototype.getRequestToken=function(){return __awaiter(this,void 0,void 0,function(){var e;return __generator(this,function(t){switch(t.label){case 0:return this.requestToken!==null?[3,2]:(e=this,[4,platform_1$1.platformDeps.getRequestToken()]);case 1:e.requestToken=t.sent(),t.label=2;case 2:return[2,this.requestToken]}})})},n}();KintoneRequestConfigBuilder$1.KintoneRequestConfigBuilder=KintoneRequestConfigBuilder;var KintoneResponseHandler$1={},__assign$1=commonjsGlobal&&commonjsGlobal.__assign||function(){return __assign$1=Object.assign||function(n){for(var e,t=1,r=arguments.length;t<r;t++){e=arguments[t];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o])}return n},__assign$1.apply(this,arguments)},__rest=commonjsGlobal&&commonjsGlobal.__rest||function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(n);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(n,r[o])&&(t[r[o]]=n[r[o]]);return t};Object.defineProperty(KintoneResponseHandler$1,"__esModule",{value:!0});KintoneResponseHandler$1.KintoneResponseHandler=void 0;var error_1=error,KintoneResponseHandler=function(){function n(e){var t=e.enableAbortSearchError;this.enableAbortSearchError=t}return n.prototype.handle=function(e){var t=this;return e.then(function(r){return t.handleSuccessResponse(r)},function(r){return t.handleErrorResponse(r)})},n.prototype.handleSuccessResponse=function(e){if(this.enableAbortSearchError&&/Filter aborted because of too many search results/.test(e.headers["x-cybozu-warning"]))throw new error_1.KintoneAbortSearchError(e.headers["x-cybozu-warning"]);return e.data},n.prototype.handleErrorResponse=function(e){if(!e.response)throw/mac verify failure/.test(e.toString())?new Error("invalid clientCertAuth setting"):e;var t=e.response,r=t.data,o=__rest(t,["data"]);throw typeof r=="string"?new Error("".concat(o.status,": ").concat(o.statusText)):new error_1.KintoneRestAPIError(__assign$1({data:r},o))},n}();KintoneResponseHandler$1.KintoneResponseHandler=KintoneResponseHandler;var __assign=commonjsGlobal&&commonjsGlobal.__assign||function(){return __assign=Object.assign||function(n){for(var e,t=1,r=arguments.length;t<r;t++){e=arguments[t];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o])}return n},__assign.apply(this,arguments)};Object.defineProperty(KintoneRestAPIClient$1,"__esModule",{value:!0});KintoneRestAPIClient$1.KintoneRestAPIClient=void 0;var BulkRequestClient_1=BulkRequestClient$1,AppClient_1=AppClient$1,RecordClient_1=RecordClient$1,SpaceClient_1=SpaceClient$1,FileClient_1=FileClient$1,http_1=http,KintoneRequestConfigBuilder_1=KintoneRequestConfigBuilder$1,KintoneResponseHandler_1=KintoneResponseHandler$1,platform_1=platform$2,UnsupportedPlatformError_1=UnsupportedPlatformError$1,buildDiscriminatedAuth=function(n){if("username"in n)return __assign({type:"password"},n);if("apiToken"in n)return __assign({type:"apiToken"},n);if("oAuthToken"in n)return __assign({type:"oAuthToken"},n);try{return platform_1.platformDeps.getDefaultAuth()}catch(e){throw e instanceof UnsupportedPlatformError_1.UnsupportedPlatformError?new Error("session authentication is not supported in ".concat(e.platform," environment.")):e}},KintoneRestAPIClient=function(){function n(e){e===void 0&&(e={});var t,r,o;validateOptions(e),this.baseUrl=platform_1.platformDeps.buildBaseUrl(e.baseUrl).replace(/\/+$/,"");var s=buildDiscriminatedAuth((t=e.auth)!==null&&t!==void 0?t:{}),l=new KintoneRequestConfigBuilder_1.KintoneRequestConfigBuilder(__assign(__assign({},e),{baseUrl:this.baseUrl,auth:s})),f=new KintoneResponseHandler_1.KintoneResponseHandler({enableAbortSearchError:(o=(r=e.featureFlags)===null||r===void 0?void 0:r.enableAbortSearchError)!==null&&o!==void 0?o:!1}),E=new http_1.DefaultHttpClient({responseHandler:f,requestConfigBuilder:l}),d=e.guestSpaceId;this.bulkRequest_=new BulkRequestClient_1.BulkRequestClient(E,d),this.record=new RecordClient_1.RecordClient(E,this.bulkRequest_,d),this.app=new AppClient_1.AppClient(E,d),this.space=new SpaceClient_1.SpaceClient(E,d),this.file=new FileClient_1.FileClient(E,d)}return Object.defineProperty(n,"version",{get:function(){return platform_1.platformDeps.getVersion()},enumerable:!1,configurable:!0}),n.prototype.getBaseUrl=function(){return this.baseUrl},n.prototype.bulkRequest=function(e){return this.bulkRequest_.send(e)},n}();KintoneRestAPIClient$1.KintoneRestAPIClient=KintoneRestAPIClient;var validateOptions=function(n){validateBaseUrl(n.baseUrl),validateGuestSpaceId(n.guestSpaceId),validateSocketTimeout(n.socketTimeout)},validateBaseUrl=function(n){if(n!==void 0){var e=new URL(n);if(e.hostname!=="localhost"&&e.protocol!=="https:")throw new Error('The protocol of baseUrl must be "https".')}},validateGuestSpaceId=function(n){if(n===""||n===null)throw new Error("invalid guestSpaceId: got [".concat(n,"]"))},validateSocketTimeout=function(n){if(n!==void 0){var e=parseFloat(n.toString());if(isNaN(e)||e<0)throw new Error("Invalid socketTimeout. Must be a positive number.")}};(function(n){var e=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(E,d,g,y){y===void 0&&(y=g);var S=Object.getOwnPropertyDescriptor(d,g);(!S||("get"in S?!d.__esModule:S.writable||S.configurable))&&(S={enumerable:!0,get:function(){return d[g]}}),Object.defineProperty(E,y,S)}:function(E,d,g,y){y===void 0&&(y=g),E[y]=d[g]}),t=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(E,d){Object.defineProperty(E,"default",{enumerable:!0,value:d})}:function(E,d){E.default=d}),r=commonjsGlobal&&commonjsGlobal.__importStar||function(E){if(E&&E.__esModule)return E;var d={};if(E!=null)for(var g in E)g!=="default"&&Object.prototype.hasOwnProperty.call(E,g)&&e(d,E,g);return t(d,E),d},o=commonjsGlobal&&commonjsGlobal.__exportStar||function(E,d){for(var g in E)g!=="default"&&!Object.prototype.hasOwnProperty.call(d,g)&&e(d,E,g)};Object.defineProperty(n,"__esModule",{value:!0}),n.KintoneRestAPIClient=void 0;var s=platform$2,l=r(browser$2);(0,s.injectPlatformDeps)(l);var f=KintoneRestAPIClient$1;Object.defineProperty(n,"KintoneRestAPIClient",{enumerable:!0,get:function(){return f.KintoneRestAPIClient}}),o(error,n)})(index_browser);const autoLookup="";var modal={exports:{}},baseComponent={exports:{}},data={exports:{}};/*!
|
||
* Bootstrap data.js v5.3.3 (https://getbootstrap.com/)
|
||
* Copyright 2011-2024 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||
*/var hasRequiredData;function requireData(){return hasRequiredData||(hasRequiredData=1,function(n,e){(function(t,r){n.exports=r()})(commonjsGlobal,function(){const t=new Map;return{set(o,s,l){t.has(o)||t.set(o,new Map);const f=t.get(o);if(!f.has(s)&&f.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(f.keys())[0]}.`);return}f.set(s,l)},get(o,s){return t.has(o)&&t.get(o).get(s)||null},remove(o,s){if(!t.has(o))return;const l=t.get(o);l.delete(s),l.size===0&&t.delete(o)}}})}(data)),data.exports}var eventHandler={exports:{}},util={exports:{}};/*!
|
||
* Bootstrap index.js v5.3.3 (https://getbootstrap.com/)
|
||
* Copyright 2011-2024 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||
*/var hasRequiredUtil;function requireUtil(){return hasRequiredUtil||(hasRequiredUtil=1,function(n,e){(function(t,r){r(e)})(commonjsGlobal,function(t){const s="transitionend",l=I=>(I&&window.CSS&&window.CSS.escape&&(I=I.replace(/#([^\s"#']+)/g,(K,U)=>`#${CSS.escape(U)}`)),I),f=I=>I==null?`${I}`:Object.prototype.toString.call(I).match(/\s([a-z]+)/i)[1].toLowerCase(),E=I=>{do I+=Math.floor(Math.random()*1e6);while(document.getElementById(I));return I},d=I=>{if(!I)return 0;let{transitionDuration:K,transitionDelay:U}=window.getComputedStyle(I);const q=Number.parseFloat(K),oe=Number.parseFloat(U);return!q&&!oe?0:(K=K.split(",")[0],U=U.split(",")[0],(Number.parseFloat(K)+Number.parseFloat(U))*1e3)},g=I=>{I.dispatchEvent(new Event(s))},y=I=>!I||typeof I!="object"?!1:(typeof I.jquery<"u"&&(I=I[0]),typeof I.nodeType<"u"),S=I=>y(I)?I.jquery?I[0]:I:typeof I=="string"&&I.length>0?document.querySelector(l(I)):null,x=I=>{if(!y(I)||I.getClientRects().length===0)return!1;const K=getComputedStyle(I).getPropertyValue("visibility")==="visible",U=I.closest("details:not([open])");if(!U)return K;if(U!==I){const q=I.closest("summary");if(q&&q.parentNode!==U||q===null)return!1}return K},w=I=>!I||I.nodeType!==Node.ELEMENT_NODE||I.classList.contains("disabled")?!0:typeof I.disabled<"u"?I.disabled:I.hasAttribute("disabled")&&I.getAttribute("disabled")!=="false",C=I=>{if(!document.documentElement.attachShadow)return null;if(typeof I.getRootNode=="function"){const K=I.getRootNode();return K instanceof ShadowRoot?K:null}return I instanceof ShadowRoot?I:I.parentNode?C(I.parentNode):null},H=()=>{},D=I=>{I.offsetHeight},Z=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,B=[],Y=I=>{document.readyState==="loading"?(B.length||document.addEventListener("DOMContentLoaded",()=>{for(const K of B)K()}),B.push(I)):I()},ne=()=>document.documentElement.dir==="rtl",V=I=>{Y(()=>{const K=Z();if(K){const U=I.NAME,q=K.fn[U];K.fn[U]=I.jQueryInterface,K.fn[U].Constructor=I,K.fn[U].noConflict=()=>(K.fn[U]=q,I.jQueryInterface)}})},u=(I,K=[],U=I)=>typeof I=="function"?I(...K):U,X=(I,K,U=!0)=>{if(!U){u(I);return}const q=5,oe=d(K)+q;let ue=!1;const pe=({target:le})=>{le===K&&(ue=!0,K.removeEventListener(s,pe),u(I))};K.addEventListener(s,pe),setTimeout(()=>{ue||g(K)},oe)},G=(I,K,U,q)=>{const oe=I.length;let ue=I.indexOf(K);return ue===-1?!U&&q?I[oe-1]:I[0]:(ue+=U?1:-1,q&&(ue=(ue+oe)%oe),I[Math.max(0,Math.min(ue,oe-1))])};t.defineJQueryPlugin=V,t.execute=u,t.executeAfterTransition=X,t.findShadowRoot=C,t.getElement=S,t.getNextActiveElement=G,t.getTransitionDurationFromElement=d,t.getUID=E,t.getjQuery=Z,t.isDisabled=w,t.isElement=y,t.isRTL=ne,t.isVisible=x,t.noop=H,t.onDOMContentLoaded=Y,t.parseSelector=l,t.reflow=D,t.toType=f,t.triggerTransitionEnd=g,Object.defineProperty(t,Symbol.toStringTag,{value:"Module"})})}(util,util.exports)),util.exports}/*!
|
||
* Bootstrap event-handler.js v5.3.3 (https://getbootstrap.com/)
|
||
* Copyright 2011-2024 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||
*/var hasRequiredEventHandler;function requireEventHandler(){return hasRequiredEventHandler||(hasRequiredEventHandler=1,function(n,e){(function(t,r){n.exports=r(requireUtil())})(commonjsGlobal,function(t){const r=/[^.]*(?=\..*)\.|.*/,o=/\..*/,s=/::\d+$/,l={};let f=1;const E={mouseenter:"mouseover",mouseleave:"mouseout"},d=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function g(V,u){return u&&`${u}::${f++}`||V.uidEvent||f++}function y(V){const u=g(V);return V.uidEvent=u,l[u]=l[u]||{},l[u]}function S(V,u){return function X(G){return ne(G,{delegateTarget:V}),X.oneOff&&Y.off(V,G.type,u),u.apply(V,[G])}}function x(V,u,X){return function G(I){const K=V.querySelectorAll(u);for(let{target:U}=I;U&&U!==this;U=U.parentNode)for(const q of K)if(q===U)return ne(I,{delegateTarget:U}),G.oneOff&&Y.off(V,I.type,u,X),X.apply(U,[I])}}function w(V,u,X=null){return Object.values(V).find(G=>G.callable===u&&G.delegationSelector===X)}function C(V,u,X){const G=typeof u=="string",I=G?X:u||X;let K=B(V);return d.has(K)||(K=V),[G,I,K]}function H(V,u,X,G,I){if(typeof u!="string"||!V)return;let[K,U,q]=C(u,X,G);u in E&&(U=(Re=>function(fe){if(!fe.relatedTarget||fe.relatedTarget!==fe.delegateTarget&&!fe.delegateTarget.contains(fe.relatedTarget))return Re.call(this,fe)})(U));const oe=y(V),ue=oe[q]||(oe[q]={}),pe=w(ue,U,K?X:null);if(pe){pe.oneOff=pe.oneOff&&I;return}const le=g(U,u.replace(r,"")),ve=K?x(V,X,U):S(V,U);ve.delegationSelector=K?X:null,ve.callable=U,ve.oneOff=I,ve.uidEvent=le,ue[le]=ve,V.addEventListener(q,ve,K)}function D(V,u,X,G,I){const K=w(u[X],G,I);K&&(V.removeEventListener(X,K,!!I),delete u[X][K.uidEvent])}function Z(V,u,X,G){const I=u[X]||{};for(const[K,U]of Object.entries(I))K.includes(G)&&D(V,u,X,U.callable,U.delegationSelector)}function B(V){return V=V.replace(o,""),E[V]||V}const Y={on(V,u,X,G){H(V,u,X,G,!1)},one(V,u,X,G){H(V,u,X,G,!0)},off(V,u,X,G){if(typeof u!="string"||!V)return;const[I,K,U]=C(u,X,G),q=U!==u,oe=y(V),ue=oe[U]||{},pe=u.startsWith(".");if(typeof K<"u"){if(!Object.keys(ue).length)return;D(V,oe,U,K,I?X:null);return}if(pe)for(const le of Object.keys(oe))Z(V,oe,le,u.slice(1));for(const[le,ve]of Object.entries(ue)){const he=le.replace(s,"");(!q||u.includes(he))&&D(V,oe,U,ve.callable,ve.delegationSelector)}},trigger(V,u,X){if(typeof u!="string"||!V)return null;const G=t.getjQuery(),I=B(u),K=u!==I;let U=null,q=!0,oe=!0,ue=!1;K&&G&&(U=G.Event(u,X),G(V).trigger(U),q=!U.isPropagationStopped(),oe=!U.isImmediatePropagationStopped(),ue=U.isDefaultPrevented());const pe=ne(new Event(u,{bubbles:q,cancelable:!0}),X);return ue&&pe.preventDefault(),oe&&V.dispatchEvent(pe),pe.defaultPrevented&&U&&U.preventDefault(),pe}};function ne(V,u={}){for(const[X,G]of Object.entries(u))try{V[X]=G}catch{Object.defineProperty(V,X,{configurable:!0,get(){return G}})}return V}return Y})}(eventHandler)),eventHandler.exports}var config={exports:{}},manipulator={exports:{}};/*!
|
||
* Bootstrap manipulator.js v5.3.3 (https://getbootstrap.com/)
|
||
* Copyright 2011-2024 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||
*/var hasRequiredManipulator;function requireManipulator(){return hasRequiredManipulator||(hasRequiredManipulator=1,function(n,e){(function(t,r){n.exports=r()})(commonjsGlobal,function(){function t(s){if(s==="true")return!0;if(s==="false")return!1;if(s===Number(s).toString())return Number(s);if(s===""||s==="null")return null;if(typeof s!="string")return s;try{return JSON.parse(decodeURIComponent(s))}catch{return s}}function r(s){return s.replace(/[A-Z]/g,l=>`-${l.toLowerCase()}`)}return{setDataAttribute(s,l,f){s.setAttribute(`data-bs-${r(l)}`,f)},removeDataAttribute(s,l){s.removeAttribute(`data-bs-${r(l)}`)},getDataAttributes(s){if(!s)return{};const l={},f=Object.keys(s.dataset).filter(E=>E.startsWith("bs")&&!E.startsWith("bsConfig"));for(const E of f){let d=E.replace(/^bs/,"");d=d.charAt(0).toLowerCase()+d.slice(1,d.length),l[d]=t(s.dataset[E])}return l},getDataAttribute(s,l){return t(s.getAttribute(`data-bs-${r(l)}`))}}})}(manipulator)),manipulator.exports}/*!
|
||
* Bootstrap config.js v5.3.3 (https://getbootstrap.com/)
|
||
* Copyright 2011-2024 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||
*/var hasRequiredConfig;function requireConfig(){return hasRequiredConfig||(hasRequiredConfig=1,function(n,e){(function(t,r){n.exports=r(requireManipulator(),requireUtil())})(commonjsGlobal,function(t,r){class o{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(l){return l=this._mergeConfigObj(l),l=this._configAfterMerge(l),this._typeCheckConfig(l),l}_configAfterMerge(l){return l}_mergeConfigObj(l,f){const E=r.isElement(f)?t.getDataAttribute(f,"config"):{};return{...this.constructor.Default,...typeof E=="object"?E:{},...r.isElement(f)?t.getDataAttributes(f):{},...typeof l=="object"?l:{}}}_typeCheckConfig(l,f=this.constructor.DefaultType){for(const[E,d]of Object.entries(f)){const g=l[E],y=r.isElement(g)?"element":r.toType(g);if(!new RegExp(d).test(y))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${E}" provided type "${y}" but expected type "${d}".`)}}}return o})}(config)),config.exports}/*!
|
||
* Bootstrap base-component.js v5.3.3 (https://getbootstrap.com/)
|
||
* Copyright 2011-2024 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||
*/var hasRequiredBaseComponent;function requireBaseComponent(){return hasRequiredBaseComponent||(hasRequiredBaseComponent=1,function(n,e){(function(t,r){n.exports=r(requireData(),requireEventHandler(),requireConfig(),requireUtil())})(commonjsGlobal,function(t,r,o,s){const l="5.3.3";class f extends o{constructor(d,g){super(),d=s.getElement(d),d&&(this._element=d,this._config=this._getConfig(g),t.set(this._element,this.constructor.DATA_KEY,this))}dispose(){t.remove(this._element,this.constructor.DATA_KEY),r.off(this._element,this.constructor.EVENT_KEY);for(const d of Object.getOwnPropertyNames(this))this[d]=null}_queueCallback(d,g,y=!0){s.executeAfterTransition(d,g,y)}_getConfig(d){return d=this._mergeConfigObj(d,this._element),d=this._configAfterMerge(d),this._typeCheckConfig(d),d}static getInstance(d){return t.get(s.getElement(d),this.DATA_KEY)}static getOrCreateInstance(d,g={}){return this.getInstance(d)||new this(d,typeof g=="object"?g:null)}static get VERSION(){return l}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(d){return`${d}${this.EVENT_KEY}`}}return f})}(baseComponent)),baseComponent.exports}var selectorEngine={exports:{}};/*!
|
||
* Bootstrap selector-engine.js v5.3.3 (https://getbootstrap.com/)
|
||
* Copyright 2011-2024 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||
*/var hasRequiredSelectorEngine;function requireSelectorEngine(){return hasRequiredSelectorEngine||(hasRequiredSelectorEngine=1,function(n,e){(function(t,r){n.exports=r(requireUtil())})(commonjsGlobal,function(t){const r=s=>{let l=s.getAttribute("data-bs-target");if(!l||l==="#"){let f=s.getAttribute("href");if(!f||!f.includes("#")&&!f.startsWith("."))return null;f.includes("#")&&!f.startsWith("#")&&(f=`#${f.split("#")[1]}`),l=f&&f!=="#"?f.trim():null}return l?l.split(",").map(f=>t.parseSelector(f)).join(","):null},o={find(s,l=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(l,s))},findOne(s,l=document.documentElement){return Element.prototype.querySelector.call(l,s)},children(s,l){return[].concat(...s.children).filter(f=>f.matches(l))},parents(s,l){const f=[];let E=s.parentNode.closest(l);for(;E;)f.push(E),E=E.parentNode.closest(l);return f},prev(s,l){let f=s.previousElementSibling;for(;f;){if(f.matches(l))return[f];f=f.previousElementSibling}return[]},next(s,l){let f=s.nextElementSibling;for(;f;){if(f.matches(l))return[f];f=f.nextElementSibling}return[]},focusableChildren(s){const l=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(f=>`${f}:not([tabindex^="-"])`).join(",");return this.find(l,s).filter(f=>!t.isDisabled(f)&&t.isVisible(f))},getSelectorFromElement(s){const l=r(s);return l&&o.findOne(l)?l:null},getElementFromSelector(s){const l=r(s);return l?o.findOne(l):null},getMultipleElementsFromSelector(s){const l=r(s);return l?o.find(l):[]}};return o})}(selectorEngine)),selectorEngine.exports}var backdrop={exports:{}};/*!
|
||
* Bootstrap backdrop.js v5.3.3 (https://getbootstrap.com/)
|
||
* Copyright 2011-2024 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||
*/var hasRequiredBackdrop;function requireBackdrop(){return hasRequiredBackdrop||(hasRequiredBackdrop=1,function(n,e){(function(t,r){n.exports=r(requireEventHandler(),requireConfig(),requireUtil())})(commonjsGlobal,function(t,r,o){const s="backdrop",l="fade",f="show",E=`mousedown.bs.${s}`,d={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},g={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class y extends r{constructor(x){super(),this._config=this._getConfig(x),this._isAppended=!1,this._element=null}static get Default(){return d}static get DefaultType(){return g}static get NAME(){return s}show(x){if(!this._config.isVisible){o.execute(x);return}this._append();const w=this._getElement();this._config.isAnimated&&o.reflow(w),w.classList.add(f),this._emulateAnimation(()=>{o.execute(x)})}hide(x){if(!this._config.isVisible){o.execute(x);return}this._getElement().classList.remove(f),this._emulateAnimation(()=>{this.dispose(),o.execute(x)})}dispose(){this._isAppended&&(t.off(this._element,E),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const x=document.createElement("div");x.className=this._config.className,this._config.isAnimated&&x.classList.add(l),this._element=x}return this._element}_configAfterMerge(x){return x.rootElement=o.getElement(x.rootElement),x}_append(){if(this._isAppended)return;const x=this._getElement();this._config.rootElement.append(x),t.on(x,E,()=>{o.execute(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(x){o.executeAfterTransition(x,this._getElement(),this._config.isAnimated)}}return y})}(backdrop)),backdrop.exports}var componentFunctions={exports:{}};/*!
|
||
* Bootstrap component-functions.js v5.3.3 (https://getbootstrap.com/)
|
||
* Copyright 2011-2024 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||
*/var hasRequiredComponentFunctions;function requireComponentFunctions(){return hasRequiredComponentFunctions||(hasRequiredComponentFunctions=1,function(n,e){(function(t,r){r(e,requireEventHandler(),requireSelectorEngine(),requireUtil())})(commonjsGlobal,function(t,r,o,s){const l=(f,E="hide")=>{const d=`click.dismiss${f.EVENT_KEY}`,g=f.NAME;r.on(document,d,`[data-bs-dismiss="${g}"]`,function(y){if(["A","AREA"].includes(this.tagName)&&y.preventDefault(),s.isDisabled(this))return;const S=o.getElementFromSelector(this)||this.closest(`.${g}`);f.getOrCreateInstance(S)[E]()})};t.enableDismissTrigger=l,Object.defineProperty(t,Symbol.toStringTag,{value:"Module"})})}(componentFunctions,componentFunctions.exports)),componentFunctions.exports}var focustrap={exports:{}};/*!
|
||
* Bootstrap focustrap.js v5.3.3 (https://getbootstrap.com/)
|
||
* Copyright 2011-2024 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||
*/var hasRequiredFocustrap;function requireFocustrap(){return hasRequiredFocustrap||(hasRequiredFocustrap=1,function(n,e){(function(t,r){n.exports=r(requireEventHandler(),requireSelectorEngine(),requireConfig())})(commonjsGlobal,function(t,r,o){const s="focustrap",f=".bs.focustrap",E=`focusin${f}`,d=`keydown.tab${f}`,g="Tab",y="forward",S="backward",x={autofocus:!0,trapElement:null},w={autofocus:"boolean",trapElement:"element"};class C extends o{constructor(D){super(),this._config=this._getConfig(D),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return x}static get DefaultType(){return w}static get NAME(){return s}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),t.off(document,f),t.on(document,E,D=>this._handleFocusin(D)),t.on(document,d,D=>this._handleKeydown(D)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,t.off(document,f))}_handleFocusin(D){const{trapElement:Z}=this._config;if(D.target===document||D.target===Z||Z.contains(D.target))return;const B=r.focusableChildren(Z);B.length===0?Z.focus():this._lastTabNavDirection===S?B[B.length-1].focus():B[0].focus()}_handleKeydown(D){D.key===g&&(this._lastTabNavDirection=D.shiftKey?S:y)}}return C})}(focustrap)),focustrap.exports}var scrollbar={exports:{}};/*!
|
||
* Bootstrap scrollbar.js v5.3.3 (https://getbootstrap.com/)
|
||
* Copyright 2011-2024 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||
*/var hasRequiredScrollbar;function requireScrollbar(){return hasRequiredScrollbar||(hasRequiredScrollbar=1,function(n,e){(function(t,r){n.exports=r(requireManipulator(),requireSelectorEngine(),requireUtil())})(commonjsGlobal,function(t,r,o){const s=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",l=".sticky-top",f="padding-right",E="margin-right";class d{constructor(){this._element=document.body}getWidth(){const y=document.documentElement.clientWidth;return Math.abs(window.innerWidth-y)}hide(){const y=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,f,S=>S+y),this._setElementAttributes(s,f,S=>S+y),this._setElementAttributes(l,E,S=>S-y)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,f),this._resetElementAttributes(s,f),this._resetElementAttributes(l,E)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(y,S,x){const w=this.getWidth(),C=H=>{if(H!==this._element&&window.innerWidth>H.clientWidth+w)return;this._saveInitialAttribute(H,S);const D=window.getComputedStyle(H).getPropertyValue(S);H.style.setProperty(S,`${x(Number.parseFloat(D))}px`)};this._applyManipulationCallback(y,C)}_saveInitialAttribute(y,S){const x=y.style.getPropertyValue(S);x&&t.setDataAttribute(y,S,x)}_resetElementAttributes(y,S){const x=w=>{const C=t.getDataAttribute(w,S);if(C===null){w.style.removeProperty(S);return}t.removeDataAttribute(w,S),w.style.setProperty(S,C)};this._applyManipulationCallback(y,x)}_applyManipulationCallback(y,S){if(o.isElement(y)){S(y);return}for(const x of r.find(y,this._element))S(x)}}return d})}(scrollbar)),scrollbar.exports}/*!
|
||
* Bootstrap modal.js v5.3.3 (https://getbootstrap.com/)
|
||
* Copyright 2011-2024 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||
*/(function(n,e){(function(t,r){n.exports=r(requireBaseComponent(),requireEventHandler(),requireSelectorEngine(),requireBackdrop(),requireComponentFunctions(),requireFocustrap(),requireUtil(),requireScrollbar())})(commonjsGlobal,function(t,r,o,s,l,f,E,d){const g="modal",S=".bs.modal",x=".data-api",w="Escape",C=`hide${S}`,H=`hidePrevented${S}`,D=`hidden${S}`,Z=`show${S}`,B=`shown${S}`,Y=`resize${S}`,ne=`click.dismiss${S}`,V=`mousedown.dismiss${S}`,u=`keydown.dismiss${S}`,X=`click${S}${x}`,G="modal-open",I="fade",K="show",U="modal-static",q=".modal.show",oe=".modal-dialog",ue=".modal-body",pe='[data-bs-toggle="modal"]',le={backdrop:!0,focus:!0,keyboard:!0},ve={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class he extends t{constructor(fe,be){super(fe,be),this._dialog=o.findOne(oe,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new d,this._addEventListeners()}static get Default(){return le}static get DefaultType(){return ve}static get NAME(){return g}toggle(fe){return this._isShown?this.hide():this.show(fe)}show(fe){this._isShown||this._isTransitioning||r.trigger(this._element,Z,{relatedTarget:fe}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(G),this._adjustDialog(),this._backdrop.show(()=>this._showElement(fe)))}hide(){!this._isShown||this._isTransitioning||r.trigger(this._element,C).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(K),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){r.off(window,S),r.off(this._dialog,S),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new s({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new f({trapElement:this._element})}_showElement(fe){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const be=o.findOne(ue,this._dialog);be&&(be.scrollTop=0),E.reflow(this._element),this._element.classList.add(K);const we=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,r.trigger(this._element,B,{relatedTarget:fe})};this._queueCallback(we,this._dialog,this._isAnimated())}_addEventListeners(){r.on(this._element,u,fe=>{if(fe.key===w){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),r.on(window,Y,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),r.on(this._element,V,fe=>{r.one(this._element,ne,be=>{if(!(this._element!==fe.target||this._element!==be.target)){if(this._config.backdrop==="static"){this._triggerBackdropTransition();return}this._config.backdrop&&this.hide()}})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(G),this._resetAdjustments(),this._scrollBar.reset(),r.trigger(this._element,D)})}_isAnimated(){return this._element.classList.contains(I)}_triggerBackdropTransition(){if(r.trigger(this._element,H).defaultPrevented)return;const be=this._element.scrollHeight>document.documentElement.clientHeight,we=this._element.style.overflowY;we==="hidden"||this._element.classList.contains(U)||(be||(this._element.style.overflowY="hidden"),this._element.classList.add(U),this._queueCallback(()=>{this._element.classList.remove(U),this._queueCallback(()=>{this._element.style.overflowY=we},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const fe=this._element.scrollHeight>document.documentElement.clientHeight,be=this._scrollBar.getWidth(),we=be>0;if(we&&!fe){const xe=E.isRTL()?"paddingLeft":"paddingRight";this._element.style[xe]=`${be}px`}if(!we&&fe){const xe=E.isRTL()?"paddingRight":"paddingLeft";this._element.style[xe]=`${be}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(fe,be){return this.each(function(){const we=he.getOrCreateInstance(this,fe);if(typeof fe=="string"){if(typeof we[fe]>"u")throw new TypeError(`No method named "${fe}"`);we[fe](be)}})}}return r.on(document,X,pe,function(Re){const fe=o.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&Re.preventDefault(),r.one(fe,Z,xe=>{xe.defaultPrevented||r.one(fe,D,()=>{E.isVisible(this)&&this.focus()})});const be=o.findOne(q);be&&he.getInstance(be).hide(),he.getOrCreateInstance(fe).toggle(this)}),l.enableDismissTrigger(he),E.defineJQueryPlugin(he),he})})(modal);var top="top",bottom="bottom",right="right",left="left",auto="auto",basePlacements=[top,bottom,right,left],start="start",end="end",clippingParents="clippingParents",viewport="viewport",popper="popper",reference="reference",variationPlacements=basePlacements.reduce(function(n,e){return n.concat([e+"-"+start,e+"-"+end])},[]),placements=[].concat(basePlacements,[auto]).reduce(function(n,e){return n.concat([e,e+"-"+start,e+"-"+end])},[]),beforeRead="beforeRead",read="read",afterRead="afterRead",beforeMain="beforeMain",main="main",afterMain="afterMain",beforeWrite="beforeWrite",write="write",afterWrite="afterWrite",modifierPhases=[beforeRead,read,afterRead,beforeMain,main,afterMain,beforeWrite,write,afterWrite];function getNodeName(n){return n?(n.nodeName||"").toLowerCase():null}function getWindow(n){if(n==null)return window;if(n.toString()!=="[object Window]"){var e=n.ownerDocument;return e&&e.defaultView||window}return n}function isElement$1(n){var e=getWindow(n).Element;return n instanceof e||n instanceof Element}function isHTMLElement(n){var e=getWindow(n).HTMLElement;return n instanceof e||n instanceof HTMLElement}function isShadowRoot(n){if(typeof ShadowRoot>"u")return!1;var e=getWindow(n).ShadowRoot;return n instanceof e||n instanceof ShadowRoot}function applyStyles(n){var e=n.state;Object.keys(e.elements).forEach(function(t){var r=e.styles[t]||{},o=e.attributes[t]||{},s=e.elements[t];!isHTMLElement(s)||!getNodeName(s)||(Object.assign(s.style,r),Object.keys(o).forEach(function(l){var f=o[l];f===!1?s.removeAttribute(l):s.setAttribute(l,f===!0?"":f)}))})}function effect$2(n){var e=n.state,t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.styles=t,e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),function(){Object.keys(e.elements).forEach(function(r){var o=e.elements[r],s=e.attributes[r]||{},l=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:t[r]),f=l.reduce(function(E,d){return E[d]="",E},{});!isHTMLElement(o)||!getNodeName(o)||(Object.assign(o.style,f),Object.keys(s).forEach(function(E){o.removeAttribute(E)}))})}}const applyStyles$1={name:"applyStyles",enabled:!0,phase:"write",fn:applyStyles,effect:effect$2,requires:["computeStyles"]};function getBasePlacement(n){return n.split("-")[0]}var max=Math.max,min=Math.min,round=Math.round;function getUAString(){var n=navigator.userAgentData;return n!=null&&n.brands&&Array.isArray(n.brands)?n.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function isLayoutViewport(){return!/^((?!chrome|android).)*safari/i.test(getUAString())}function getBoundingClientRect(n,e,t){e===void 0&&(e=!1),t===void 0&&(t=!1);var r=n.getBoundingClientRect(),o=1,s=1;e&&isHTMLElement(n)&&(o=n.offsetWidth>0&&round(r.width)/n.offsetWidth||1,s=n.offsetHeight>0&&round(r.height)/n.offsetHeight||1);var l=isElement$1(n)?getWindow(n):window,f=l.visualViewport,E=!isLayoutViewport()&&t,d=(r.left+(E&&f?f.offsetLeft:0))/o,g=(r.top+(E&&f?f.offsetTop:0))/s,y=r.width/o,S=r.height/s;return{width:y,height:S,top:g,right:d+y,bottom:g+S,left:d,x:d,y:g}}function getLayoutRect(n){var e=getBoundingClientRect(n),t=n.offsetWidth,r=n.offsetHeight;return Math.abs(e.width-t)<=1&&(t=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:n.offsetLeft,y:n.offsetTop,width:t,height:r}}function contains(n,e){var t=e.getRootNode&&e.getRootNode();if(n.contains(e))return!0;if(t&&isShadowRoot(t)){var r=e;do{if(r&&n.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function getComputedStyle$1(n){return getWindow(n).getComputedStyle(n)}function isTableElement(n){return["table","td","th"].indexOf(getNodeName(n))>=0}function getDocumentElement(n){return((isElement$1(n)?n.ownerDocument:n.document)||window.document).documentElement}function getParentNode(n){return getNodeName(n)==="html"?n:n.assignedSlot||n.parentNode||(isShadowRoot(n)?n.host:null)||getDocumentElement(n)}function getTrueOffsetParent(n){return!isHTMLElement(n)||getComputedStyle$1(n).position==="fixed"?null:n.offsetParent}function getContainingBlock(n){var e=/firefox/i.test(getUAString()),t=/Trident/i.test(getUAString());if(t&&isHTMLElement(n)){var r=getComputedStyle$1(n);if(r.position==="fixed")return null}var o=getParentNode(n);for(isShadowRoot(o)&&(o=o.host);isHTMLElement(o)&&["html","body"].indexOf(getNodeName(o))<0;){var s=getComputedStyle$1(o);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||e&&s.willChange==="filter"||e&&s.filter&&s.filter!=="none")return o;o=o.parentNode}return null}function getOffsetParent(n){for(var e=getWindow(n),t=getTrueOffsetParent(n);t&&isTableElement(t)&&getComputedStyle$1(t).position==="static";)t=getTrueOffsetParent(t);return t&&(getNodeName(t)==="html"||getNodeName(t)==="body"&&getComputedStyle$1(t).position==="static")?e:t||getContainingBlock(n)||e}function getMainAxisFromPlacement(n){return["top","bottom"].indexOf(n)>=0?"x":"y"}function within(n,e,t){return max(n,min(e,t))}function withinMaxClamp(n,e,t){var r=within(n,e,t);return r>t?t:r}function getFreshSideObject(){return{top:0,right:0,bottom:0,left:0}}function mergePaddingObject(n){return Object.assign({},getFreshSideObject(),n)}function expandToHashMap(n,e){return e.reduce(function(t,r){return t[r]=n,t},{})}var toPaddingObject=function n(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,mergePaddingObject(typeof e!="number"?e:expandToHashMap(e,basePlacements))};function arrow(n){var e,t=n.state,r=n.name,o=n.options,s=t.elements.arrow,l=t.modifiersData.popperOffsets,f=getBasePlacement(t.placement),E=getMainAxisFromPlacement(f),d=[left,right].indexOf(f)>=0,g=d?"height":"width";if(!(!s||!l)){var y=toPaddingObject(o.padding,t),S=getLayoutRect(s),x=E==="y"?top:left,w=E==="y"?bottom:right,C=t.rects.reference[g]+t.rects.reference[E]-l[E]-t.rects.popper[g],H=l[E]-t.rects.reference[E],D=getOffsetParent(s),Z=D?E==="y"?D.clientHeight||0:D.clientWidth||0:0,B=C/2-H/2,Y=y[x],ne=Z-S[g]-y[w],V=Z/2-S[g]/2+B,u=within(Y,V,ne),X=E;t.modifiersData[r]=(e={},e[X]=u,e.centerOffset=u-V,e)}}function effect$1(n){var e=n.state,t=n.options,r=t.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=e.elements.popper.querySelector(o),!o)||contains(e.elements.popper,o)&&(e.elements.arrow=o))}const arrow$1={name:"arrow",enabled:!0,phase:"main",fn:arrow,effect:effect$1,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function getVariation(n){return n.split("-")[1]}var unsetSides={top:"auto",right:"auto",bottom:"auto",left:"auto"};function roundOffsetsByDPR(n,e){var t=n.x,r=n.y,o=e.devicePixelRatio||1;return{x:round(t*o)/o||0,y:round(r*o)/o||0}}function mapToStyles(n){var e,t=n.popper,r=n.popperRect,o=n.placement,s=n.variation,l=n.offsets,f=n.position,E=n.gpuAcceleration,d=n.adaptive,g=n.roundOffsets,y=n.isFixed,S=l.x,x=S===void 0?0:S,w=l.y,C=w===void 0?0:w,H=typeof g=="function"?g({x,y:C}):{x,y:C};x=H.x,C=H.y;var D=l.hasOwnProperty("x"),Z=l.hasOwnProperty("y"),B=left,Y=top,ne=window;if(d){var V=getOffsetParent(t),u="clientHeight",X="clientWidth";if(V===getWindow(t)&&(V=getDocumentElement(t),getComputedStyle$1(V).position!=="static"&&f==="absolute"&&(u="scrollHeight",X="scrollWidth")),V=V,o===top||(o===left||o===right)&&s===end){Y=bottom;var G=y&&V===ne&&ne.visualViewport?ne.visualViewport.height:V[u];C-=G-r.height,C*=E?1:-1}if(o===left||(o===top||o===bottom)&&s===end){B=right;var I=y&&V===ne&&ne.visualViewport?ne.visualViewport.width:V[X];x-=I-r.width,x*=E?1:-1}}var K=Object.assign({position:f},d&&unsetSides),U=g===!0?roundOffsetsByDPR({x,y:C},getWindow(t)):{x,y:C};if(x=U.x,C=U.y,E){var q;return Object.assign({},K,(q={},q[Y]=Z?"0":"",q[B]=D?"0":"",q.transform=(ne.devicePixelRatio||1)<=1?"translate("+x+"px, "+C+"px)":"translate3d("+x+"px, "+C+"px, 0)",q))}return Object.assign({},K,(e={},e[Y]=Z?C+"px":"",e[B]=D?x+"px":"",e.transform="",e))}function computeStyles(n){var e=n.state,t=n.options,r=t.gpuAcceleration,o=r===void 0?!0:r,s=t.adaptive,l=s===void 0?!0:s,f=t.roundOffsets,E=f===void 0?!0:f,d={placement:getBasePlacement(e.placement),variation:getVariation(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,mapToStyles(Object.assign({},d,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:l,roundOffsets:E})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,mapToStyles(Object.assign({},d,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:E})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const computeStyles$1={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:computeStyles,data:{}};var passive={passive:!0};function effect(n){var e=n.state,t=n.instance,r=n.options,o=r.scroll,s=o===void 0?!0:o,l=r.resize,f=l===void 0?!0:l,E=getWindow(e.elements.popper),d=[].concat(e.scrollParents.reference,e.scrollParents.popper);return s&&d.forEach(function(g){g.addEventListener("scroll",t.update,passive)}),f&&E.addEventListener("resize",t.update,passive),function(){s&&d.forEach(function(g){g.removeEventListener("scroll",t.update,passive)}),f&&E.removeEventListener("resize",t.update,passive)}}const eventListeners={name:"eventListeners",enabled:!0,phase:"write",fn:function n(){},effect,data:{}};var hash$1={left:"right",right:"left",bottom:"top",top:"bottom"};function getOppositePlacement(n){return n.replace(/left|right|bottom|top/g,function(e){return hash$1[e]})}var hash={start:"end",end:"start"};function getOppositeVariationPlacement(n){return n.replace(/start|end/g,function(e){return hash[e]})}function getWindowScroll(n){var e=getWindow(n),t=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:t,scrollTop:r}}function getWindowScrollBarX(n){return getBoundingClientRect(getDocumentElement(n)).left+getWindowScroll(n).scrollLeft}function getViewportRect(n,e){var t=getWindow(n),r=getDocumentElement(n),o=t.visualViewport,s=r.clientWidth,l=r.clientHeight,f=0,E=0;if(o){s=o.width,l=o.height;var d=isLayoutViewport();(d||!d&&e==="fixed")&&(f=o.offsetLeft,E=o.offsetTop)}return{width:s,height:l,x:f+getWindowScrollBarX(n),y:E}}function getDocumentRect(n){var e,t=getDocumentElement(n),r=getWindowScroll(n),o=(e=n.ownerDocument)==null?void 0:e.body,s=max(t.scrollWidth,t.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),l=max(t.scrollHeight,t.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),f=-r.scrollLeft+getWindowScrollBarX(n),E=-r.scrollTop;return getComputedStyle$1(o||t).direction==="rtl"&&(f+=max(t.clientWidth,o?o.clientWidth:0)-s),{width:s,height:l,x:f,y:E}}function isScrollParent(n){var e=getComputedStyle$1(n),t=e.overflow,r=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+o+r)}function getScrollParent(n){return["html","body","#document"].indexOf(getNodeName(n))>=0?n.ownerDocument.body:isHTMLElement(n)&&isScrollParent(n)?n:getScrollParent(getParentNode(n))}function listScrollParents(n,e){var t;e===void 0&&(e=[]);var r=getScrollParent(n),o=r===((t=n.ownerDocument)==null?void 0:t.body),s=getWindow(r),l=o?[s].concat(s.visualViewport||[],isScrollParent(r)?r:[]):r,f=e.concat(l);return o?f:f.concat(listScrollParents(getParentNode(l)))}function rectToClientRect(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function getInnerBoundingClientRect(n,e){var t=getBoundingClientRect(n,!1,e==="fixed");return t.top=t.top+n.clientTop,t.left=t.left+n.clientLeft,t.bottom=t.top+n.clientHeight,t.right=t.left+n.clientWidth,t.width=n.clientWidth,t.height=n.clientHeight,t.x=t.left,t.y=t.top,t}function getClientRectFromMixedType(n,e,t){return e===viewport?rectToClientRect(getViewportRect(n,t)):isElement$1(e)?getInnerBoundingClientRect(e,t):rectToClientRect(getDocumentRect(getDocumentElement(n)))}function getClippingParents(n){var e=listScrollParents(getParentNode(n)),t=["absolute","fixed"].indexOf(getComputedStyle$1(n).position)>=0,r=t&&isHTMLElement(n)?getOffsetParent(n):n;return isElement$1(r)?e.filter(function(o){return isElement$1(o)&&contains(o,r)&&getNodeName(o)!=="body"}):[]}function getClippingRect(n,e,t,r){var o=e==="clippingParents"?getClippingParents(n):[].concat(e),s=[].concat(o,[t]),l=s[0],f=s.reduce(function(E,d){var g=getClientRectFromMixedType(n,d,r);return E.top=max(g.top,E.top),E.right=min(g.right,E.right),E.bottom=min(g.bottom,E.bottom),E.left=max(g.left,E.left),E},getClientRectFromMixedType(n,l,r));return f.width=f.right-f.left,f.height=f.bottom-f.top,f.x=f.left,f.y=f.top,f}function computeOffsets(n){var e=n.reference,t=n.element,r=n.placement,o=r?getBasePlacement(r):null,s=r?getVariation(r):null,l=e.x+e.width/2-t.width/2,f=e.y+e.height/2-t.height/2,E;switch(o){case top:E={x:l,y:e.y-t.height};break;case bottom:E={x:l,y:e.y+e.height};break;case right:E={x:e.x+e.width,y:f};break;case left:E={x:e.x-t.width,y:f};break;default:E={x:e.x,y:e.y}}var d=o?getMainAxisFromPlacement(o):null;if(d!=null){var g=d==="y"?"height":"width";switch(s){case start:E[d]=E[d]-(e[g]/2-t[g]/2);break;case end:E[d]=E[d]+(e[g]/2-t[g]/2);break}}return E}function detectOverflow(n,e){e===void 0&&(e={});var t=e,r=t.placement,o=r===void 0?n.placement:r,s=t.strategy,l=s===void 0?n.strategy:s,f=t.boundary,E=f===void 0?clippingParents:f,d=t.rootBoundary,g=d===void 0?viewport:d,y=t.elementContext,S=y===void 0?popper:y,x=t.altBoundary,w=x===void 0?!1:x,C=t.padding,H=C===void 0?0:C,D=mergePaddingObject(typeof H!="number"?H:expandToHashMap(H,basePlacements)),Z=S===popper?reference:popper,B=n.rects.popper,Y=n.elements[w?Z:S],ne=getClippingRect(isElement$1(Y)?Y:Y.contextElement||getDocumentElement(n.elements.popper),E,g,l),V=getBoundingClientRect(n.elements.reference),u=computeOffsets({reference:V,element:B,strategy:"absolute",placement:o}),X=rectToClientRect(Object.assign({},B,u)),G=S===popper?X:V,I={top:ne.top-G.top+D.top,bottom:G.bottom-ne.bottom+D.bottom,left:ne.left-G.left+D.left,right:G.right-ne.right+D.right},K=n.modifiersData.offset;if(S===popper&&K){var U=K[o];Object.keys(I).forEach(function(q){var oe=[right,bottom].indexOf(q)>=0?1:-1,ue=[top,bottom].indexOf(q)>=0?"y":"x";I[q]+=U[ue]*oe})}return I}function computeAutoPlacement(n,e){e===void 0&&(e={});var t=e,r=t.placement,o=t.boundary,s=t.rootBoundary,l=t.padding,f=t.flipVariations,E=t.allowedAutoPlacements,d=E===void 0?placements:E,g=getVariation(r),y=g?f?variationPlacements:variationPlacements.filter(function(w){return getVariation(w)===g}):basePlacements,S=y.filter(function(w){return d.indexOf(w)>=0});S.length===0&&(S=y);var x=S.reduce(function(w,C){return w[C]=detectOverflow(n,{placement:C,boundary:o,rootBoundary:s,padding:l})[getBasePlacement(C)],w},{});return Object.keys(x).sort(function(w,C){return x[w]-x[C]})}function getExpandedFallbackPlacements(n){if(getBasePlacement(n)===auto)return[];var e=getOppositePlacement(n);return[getOppositeVariationPlacement(n),e,getOppositeVariationPlacement(e)]}function flip(n){var e=n.state,t=n.options,r=n.name;if(!e.modifiersData[r]._skip){for(var o=t.mainAxis,s=o===void 0?!0:o,l=t.altAxis,f=l===void 0?!0:l,E=t.fallbackPlacements,d=t.padding,g=t.boundary,y=t.rootBoundary,S=t.altBoundary,x=t.flipVariations,w=x===void 0?!0:x,C=t.allowedAutoPlacements,H=e.options.placement,D=getBasePlacement(H),Z=D===H,B=E||(Z||!w?[getOppositePlacement(H)]:getExpandedFallbackPlacements(H)),Y=[H].concat(B).reduce(function(xe,j){return xe.concat(getBasePlacement(j)===auto?computeAutoPlacement(e,{placement:j,boundary:g,rootBoundary:y,padding:d,flipVariations:w,allowedAutoPlacements:C}):j)},[]),ne=e.rects.reference,V=e.rects.popper,u=new Map,X=!0,G=Y[0],I=0;I<Y.length;I++){var K=Y[I],U=getBasePlacement(K),q=getVariation(K)===start,oe=[top,bottom].indexOf(U)>=0,ue=oe?"width":"height",pe=detectOverflow(e,{placement:K,boundary:g,rootBoundary:y,altBoundary:S,padding:d}),le=oe?q?right:left:q?bottom:top;ne[ue]>V[ue]&&(le=getOppositePlacement(le));var ve=getOppositePlacement(le),he=[];if(s&&he.push(pe[U]<=0),f&&he.push(pe[le]<=0,pe[ve]<=0),he.every(function(xe){return xe})){G=K,X=!1;break}u.set(K,he)}if(X)for(var Re=w?3:1,fe=function(j){var ee=Y.find(function(Te){var $e=u.get(Te);if($e)return $e.slice(0,j).every(function(Me){return Me})});if(ee)return G=ee,"break"},be=Re;be>0;be--){var we=fe(be);if(we==="break")break}e.placement!==G&&(e.modifiersData[r]._skip=!0,e.placement=G,e.reset=!0)}}const flip$1={name:"flip",enabled:!0,phase:"main",fn:flip,requiresIfExists:["offset"],data:{_skip:!1}};function getSideOffsets(n,e,t){return t===void 0&&(t={x:0,y:0}),{top:n.top-e.height-t.y,right:n.right-e.width+t.x,bottom:n.bottom-e.height+t.y,left:n.left-e.width-t.x}}function isAnySideFullyClipped(n){return[top,right,bottom,left].some(function(e){return n[e]>=0})}function hide(n){var e=n.state,t=n.name,r=e.rects.reference,o=e.rects.popper,s=e.modifiersData.preventOverflow,l=detectOverflow(e,{elementContext:"reference"}),f=detectOverflow(e,{altBoundary:!0}),E=getSideOffsets(l,r),d=getSideOffsets(f,o,s),g=isAnySideFullyClipped(E),y=isAnySideFullyClipped(d);e.modifiersData[t]={referenceClippingOffsets:E,popperEscapeOffsets:d,isReferenceHidden:g,hasPopperEscaped:y},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":g,"data-popper-escaped":y})}const hide$1={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:hide};function distanceAndSkiddingToXY(n,e,t){var r=getBasePlacement(n),o=[left,top].indexOf(r)>=0?-1:1,s=typeof t=="function"?t(Object.assign({},e,{placement:n})):t,l=s[0],f=s[1];return l=l||0,f=(f||0)*o,[left,right].indexOf(r)>=0?{x:f,y:l}:{x:l,y:f}}function offset(n){var e=n.state,t=n.options,r=n.name,o=t.offset,s=o===void 0?[0,0]:o,l=placements.reduce(function(g,y){return g[y]=distanceAndSkiddingToXY(y,e.rects,s),g},{}),f=l[e.placement],E=f.x,d=f.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=E,e.modifiersData.popperOffsets.y+=d),e.modifiersData[r]=l}const offset$1={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:offset};function popperOffsets(n){var e=n.state,t=n.name;e.modifiersData[t]=computeOffsets({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const popperOffsets$1={name:"popperOffsets",enabled:!0,phase:"read",fn:popperOffsets,data:{}};function getAltAxis(n){return n==="x"?"y":"x"}function preventOverflow(n){var e=n.state,t=n.options,r=n.name,o=t.mainAxis,s=o===void 0?!0:o,l=t.altAxis,f=l===void 0?!1:l,E=t.boundary,d=t.rootBoundary,g=t.altBoundary,y=t.padding,S=t.tether,x=S===void 0?!0:S,w=t.tetherOffset,C=w===void 0?0:w,H=detectOverflow(e,{boundary:E,rootBoundary:d,padding:y,altBoundary:g}),D=getBasePlacement(e.placement),Z=getVariation(e.placement),B=!Z,Y=getMainAxisFromPlacement(D),ne=getAltAxis(Y),V=e.modifiersData.popperOffsets,u=e.rects.reference,X=e.rects.popper,G=typeof C=="function"?C(Object.assign({},e.rects,{placement:e.placement})):C,I=typeof G=="number"?{mainAxis:G,altAxis:G}:Object.assign({mainAxis:0,altAxis:0},G),K=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,U={x:0,y:0};if(V){if(s){var q,oe=Y==="y"?top:left,ue=Y==="y"?bottom:right,pe=Y==="y"?"height":"width",le=V[Y],ve=le+H[oe],he=le-H[ue],Re=x?-X[pe]/2:0,fe=Z===start?u[pe]:X[pe],be=Z===start?-X[pe]:-u[pe],we=e.elements.arrow,xe=x&&we?getLayoutRect(we):{width:0,height:0},j=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:getFreshSideObject(),ee=j[oe],Te=j[ue],$e=within(0,u[pe],xe[pe]),Me=B?u[pe]/2-Re-$e-ee-I.mainAxis:fe-$e-ee-I.mainAxis,Oe=B?-u[pe]/2+Re+$e+Te+I.mainAxis:be+$e+Te+I.mainAxis,Ze=e.elements.arrow&&getOffsetParent(e.elements.arrow),Fe=Ze?Y==="y"?Ze.clientTop||0:Ze.clientLeft||0:0,ct=(q=K==null?void 0:K[Y])!=null?q:0,Lt=le+Me-ct-Fe,Kt=le+Oe-ct,gt=within(x?min(ve,Lt):ve,le,x?max(he,Kt):he);V[Y]=gt,U[Y]=gt-le}if(f){var ut,qe=Y==="x"?top:left,Yt=Y==="x"?bottom:right,et=V[ne],Et=ne==="y"?"height":"width",Ve=et+H[qe],ot=et-H[Yt],tt=[top,left].indexOf(D)!==-1,te=(ut=K==null?void 0:K[ne])!=null?ut:0,De=tt?Ve:et-u[Et]-X[Et]-te+I.altAxis,Mt=tt?et+u[Et]+X[Et]-te-I.altAxis:ot,kt=x&&tt?withinMaxClamp(De,et,Mt):within(x?De:Ve,et,x?Mt:ot);V[ne]=kt,U[ne]=kt-et}e.modifiersData[r]=U}}const preventOverflow$1={name:"preventOverflow",enabled:!0,phase:"main",fn:preventOverflow,requiresIfExists:["offset"]};function getHTMLElementScroll(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}function getNodeScroll(n){return n===getWindow(n)||!isHTMLElement(n)?getWindowScroll(n):getHTMLElementScroll(n)}function isElementScaled(n){var e=n.getBoundingClientRect(),t=round(e.width)/n.offsetWidth||1,r=round(e.height)/n.offsetHeight||1;return t!==1||r!==1}function getCompositeRect(n,e,t){t===void 0&&(t=!1);var r=isHTMLElement(e),o=isHTMLElement(e)&&isElementScaled(e),s=getDocumentElement(e),l=getBoundingClientRect(n,o,t),f={scrollLeft:0,scrollTop:0},E={x:0,y:0};return(r||!r&&!t)&&((getNodeName(e)!=="body"||isScrollParent(s))&&(f=getNodeScroll(e)),isHTMLElement(e)?(E=getBoundingClientRect(e,!0),E.x+=e.clientLeft,E.y+=e.clientTop):s&&(E.x=getWindowScrollBarX(s))),{x:l.left+f.scrollLeft-E.x,y:l.top+f.scrollTop-E.y,width:l.width,height:l.height}}function order(n){var e=new Map,t=new Set,r=[];n.forEach(function(s){e.set(s.name,s)});function o(s){t.add(s.name);var l=[].concat(s.requires||[],s.requiresIfExists||[]);l.forEach(function(f){if(!t.has(f)){var E=e.get(f);E&&o(E)}}),r.push(s)}return n.forEach(function(s){t.has(s.name)||o(s)}),r}function orderModifiers(n){var e=order(n);return modifierPhases.reduce(function(t,r){return t.concat(e.filter(function(o){return o.phase===r}))},[])}function debounce(n){var e;return function(){return e||(e=new Promise(function(t){Promise.resolve().then(function(){e=void 0,t(n())})})),e}}function mergeByName(n){var e=n.reduce(function(t,r){var o=t[r.name];return t[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,t},{});return Object.keys(e).map(function(t){return e[t]})}var DEFAULT_OPTIONS={placement:"bottom",modifiers:[],strategy:"absolute"};function areValidElements(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return!e.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function popperGenerator(n){n===void 0&&(n={});var e=n,t=e.defaultModifiers,r=t===void 0?[]:t,o=e.defaultOptions,s=o===void 0?DEFAULT_OPTIONS:o;return function(f,E,d){d===void 0&&(d=s);var g={placement:"bottom",orderedModifiers:[],options:Object.assign({},DEFAULT_OPTIONS,s),modifiersData:{},elements:{reference:f,popper:E},attributes:{},styles:{}},y=[],S=!1,x={state:g,setOptions:function(D){var Z=typeof D=="function"?D(g.options):D;C(),g.options=Object.assign({},s,g.options,Z),g.scrollParents={reference:isElement$1(f)?listScrollParents(f):f.contextElement?listScrollParents(f.contextElement):[],popper:listScrollParents(E)};var B=orderModifiers(mergeByName([].concat(r,g.options.modifiers)));return g.orderedModifiers=B.filter(function(Y){return Y.enabled}),w(),x.update()},forceUpdate:function(){if(!S){var D=g.elements,Z=D.reference,B=D.popper;if(areValidElements(Z,B)){g.rects={reference:getCompositeRect(Z,getOffsetParent(B),g.options.strategy==="fixed"),popper:getLayoutRect(B)},g.reset=!1,g.placement=g.options.placement,g.orderedModifiers.forEach(function(I){return g.modifiersData[I.name]=Object.assign({},I.data)});for(var Y=0;Y<g.orderedModifiers.length;Y++){if(g.reset===!0){g.reset=!1,Y=-1;continue}var ne=g.orderedModifiers[Y],V=ne.fn,u=ne.options,X=u===void 0?{}:u,G=ne.name;typeof V=="function"&&(g=V({state:g,options:X,name:G,instance:x})||g)}}}},update:debounce(function(){return new Promise(function(H){x.forceUpdate(),H(g)})}),destroy:function(){C(),S=!0}};if(!areValidElements(f,E))return x;x.setOptions(d).then(function(H){!S&&d.onFirstUpdate&&d.onFirstUpdate(H)});function w(){g.orderedModifiers.forEach(function(H){var D=H.name,Z=H.options,B=Z===void 0?{}:Z,Y=H.effect;if(typeof Y=="function"){var ne=Y({state:g,name:D,instance:x,options:B}),V=function(){};y.push(ne||V)}})}function C(){y.forEach(function(H){return H()}),y=[]}return x}}var createPopper$2=popperGenerator(),defaultModifiers$1=[eventListeners,popperOffsets$1,computeStyles$1,applyStyles$1],createPopper$1=popperGenerator({defaultModifiers:defaultModifiers$1}),defaultModifiers=[eventListeners,popperOffsets$1,computeStyles$1,applyStyles$1,offset$1,flip$1,preventOverflow$1,arrow$1,hide$1],createPopper=popperGenerator({defaultModifiers});const Popper=Object.freeze(Object.defineProperty({__proto__:null,afterMain,afterRead,afterWrite,applyStyles:applyStyles$1,arrow:arrow$1,auto,basePlacements,beforeMain,beforeRead,beforeWrite,bottom,clippingParents,computeStyles:computeStyles$1,createPopper,createPopperBase:createPopper$2,createPopperLite:createPopper$1,detectOverflow,end,eventListeners,flip:flip$1,hide:hide$1,left,main,modifierPhases,offset:offset$1,placements,popper,popperGenerator,popperOffsets:popperOffsets$1,preventOverflow:preventOverflow$1,read,reference,right,start,top,variationPlacements,viewport,write},Symbol.toStringTag,{value:"Module"}));/*!
|
||
* Bootstrap v5.3.3 (https://getbootstrap.com/)
|
||
* Copyright 2011-2024 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||
*/const elementMap=new Map,Data={set(n,e,t){elementMap.has(n)||elementMap.set(n,new Map);const r=elementMap.get(n);if(!r.has(e)&&r.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(r.keys())[0]}.`);return}r.set(e,t)},get(n,e){return elementMap.has(n)&&elementMap.get(n).get(e)||null},remove(n,e){if(!elementMap.has(n))return;const t=elementMap.get(n);t.delete(e),t.size===0&&elementMap.delete(n)}},MAX_UID=1e6,MILLISECONDS_MULTIPLIER=1e3,TRANSITION_END="transitionend",parseSelector=n=>(n&&window.CSS&&window.CSS.escape&&(n=n.replace(/#([^\s"#']+)/g,(e,t)=>`#${CSS.escape(t)}`)),n),toType=n=>n==null?`${n}`:Object.prototype.toString.call(n).match(/\s([a-z]+)/i)[1].toLowerCase(),getUID=n=>{do n+=Math.floor(Math.random()*MAX_UID);while(document.getElementById(n));return n},getTransitionDurationFromElement=n=>{if(!n)return 0;let{transitionDuration:e,transitionDelay:t}=window.getComputedStyle(n);const r=Number.parseFloat(e),o=Number.parseFloat(t);return!r&&!o?0:(e=e.split(",")[0],t=t.split(",")[0],(Number.parseFloat(e)+Number.parseFloat(t))*MILLISECONDS_MULTIPLIER)},triggerTransitionEnd=n=>{n.dispatchEvent(new Event(TRANSITION_END))},isElement=n=>!n||typeof n!="object"?!1:(typeof n.jquery<"u"&&(n=n[0]),typeof n.nodeType<"u"),getElement=n=>isElement(n)?n.jquery?n[0]:n:typeof n=="string"&&n.length>0?document.querySelector(parseSelector(n)):null,isVisible=n=>{if(!isElement(n)||n.getClientRects().length===0)return!1;const e=getComputedStyle(n).getPropertyValue("visibility")==="visible",t=n.closest("details:not([open])");if(!t)return e;if(t!==n){const r=n.closest("summary");if(r&&r.parentNode!==t||r===null)return!1}return e},isDisabled=n=>!n||n.nodeType!==Node.ELEMENT_NODE||n.classList.contains("disabled")?!0:typeof n.disabled<"u"?n.disabled:n.hasAttribute("disabled")&&n.getAttribute("disabled")!=="false",findShadowRoot=n=>{if(!document.documentElement.attachShadow)return null;if(typeof n.getRootNode=="function"){const e=n.getRootNode();return e instanceof ShadowRoot?e:null}return n instanceof ShadowRoot?n:n.parentNode?findShadowRoot(n.parentNode):null},noop=()=>{},reflow=n=>{n.offsetHeight},getjQuery=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,DOMContentLoadedCallbacks=[],onDOMContentLoaded=n=>{document.readyState==="loading"?(DOMContentLoadedCallbacks.length||document.addEventListener("DOMContentLoaded",()=>{for(const e of DOMContentLoadedCallbacks)e()}),DOMContentLoadedCallbacks.push(n)):n()},isRTL=()=>document.documentElement.dir==="rtl",defineJQueryPlugin=n=>{onDOMContentLoaded(()=>{const e=getjQuery();if(e){const t=n.NAME,r=e.fn[t];e.fn[t]=n.jQueryInterface,e.fn[t].Constructor=n,e.fn[t].noConflict=()=>(e.fn[t]=r,n.jQueryInterface)}})},execute=(n,e=[],t=n)=>typeof n=="function"?n(...e):t,executeAfterTransition=(n,e,t=!0)=>{if(!t){execute(n);return}const r=5,o=getTransitionDurationFromElement(e)+r;let s=!1;const l=({target:f})=>{f===e&&(s=!0,e.removeEventListener(TRANSITION_END,l),execute(n))};e.addEventListener(TRANSITION_END,l),setTimeout(()=>{s||triggerTransitionEnd(e)},o)},getNextActiveElement=(n,e,t,r)=>{const o=n.length;let s=n.indexOf(e);return s===-1?!t&&r?n[o-1]:n[0]:(s+=t?1:-1,r&&(s=(s+o)%o),n[Math.max(0,Math.min(s,o-1))])},namespaceRegex=/[^.]*(?=\..*)\.|.*/,stripNameRegex=/\..*/,stripUidRegex=/::\d+$/,eventRegistry={};let uidEvent=1;const customEvents={mouseenter:"mouseover",mouseleave:"mouseout"},nativeEvents=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function makeEventUid(n,e){return e&&`${e}::${uidEvent++}`||n.uidEvent||uidEvent++}function getElementEvents(n){const e=makeEventUid(n);return n.uidEvent=e,eventRegistry[e]=eventRegistry[e]||{},eventRegistry[e]}function bootstrapHandler(n,e){return function t(r){return hydrateObj(r,{delegateTarget:n}),t.oneOff&&EventHandler.off(n,r.type,e),e.apply(n,[r])}}function bootstrapDelegationHandler(n,e,t){return function r(o){const s=n.querySelectorAll(e);for(let{target:l}=o;l&&l!==this;l=l.parentNode)for(const f of s)if(f===l)return hydrateObj(o,{delegateTarget:l}),r.oneOff&&EventHandler.off(n,o.type,e,t),t.apply(l,[o])}}function findHandler(n,e,t=null){return Object.values(n).find(r=>r.callable===e&&r.delegationSelector===t)}function normalizeParameters(n,e,t){const r=typeof e=="string",o=r?t:e||t;let s=getTypeEvent(n);return nativeEvents.has(s)||(s=n),[r,o,s]}function addHandler(n,e,t,r,o){if(typeof e!="string"||!n)return;let[s,l,f]=normalizeParameters(e,t,r);e in customEvents&&(l=(w=>function(C){if(!C.relatedTarget||C.relatedTarget!==C.delegateTarget&&!C.delegateTarget.contains(C.relatedTarget))return w.call(this,C)})(l));const E=getElementEvents(n),d=E[f]||(E[f]={}),g=findHandler(d,l,s?t:null);if(g){g.oneOff=g.oneOff&&o;return}const y=makeEventUid(l,e.replace(namespaceRegex,"")),S=s?bootstrapDelegationHandler(n,t,l):bootstrapHandler(n,l);S.delegationSelector=s?t:null,S.callable=l,S.oneOff=o,S.uidEvent=y,d[y]=S,n.addEventListener(f,S,s)}function removeHandler(n,e,t,r,o){const s=findHandler(e[t],r,o);s&&(n.removeEventListener(t,s,!!o),delete e[t][s.uidEvent])}function removeNamespacedHandlers(n,e,t,r){const o=e[t]||{};for(const[s,l]of Object.entries(o))s.includes(r)&&removeHandler(n,e,t,l.callable,l.delegationSelector)}function getTypeEvent(n){return n=n.replace(stripNameRegex,""),customEvents[n]||n}const EventHandler={on(n,e,t,r){addHandler(n,e,t,r,!1)},one(n,e,t,r){addHandler(n,e,t,r,!0)},off(n,e,t,r){if(typeof e!="string"||!n)return;const[o,s,l]=normalizeParameters(e,t,r),f=l!==e,E=getElementEvents(n),d=E[l]||{},g=e.startsWith(".");if(typeof s<"u"){if(!Object.keys(d).length)return;removeHandler(n,E,l,s,o?t:null);return}if(g)for(const y of Object.keys(E))removeNamespacedHandlers(n,E,y,e.slice(1));for(const[y,S]of Object.entries(d)){const x=y.replace(stripUidRegex,"");(!f||e.includes(x))&&removeHandler(n,E,l,S.callable,S.delegationSelector)}},trigger(n,e,t){if(typeof e!="string"||!n)return null;const r=getjQuery(),o=getTypeEvent(e),s=e!==o;let l=null,f=!0,E=!0,d=!1;s&&r&&(l=r.Event(e,t),r(n).trigger(l),f=!l.isPropagationStopped(),E=!l.isImmediatePropagationStopped(),d=l.isDefaultPrevented());const g=hydrateObj(new Event(e,{bubbles:f,cancelable:!0}),t);return d&&g.preventDefault(),E&&n.dispatchEvent(g),g.defaultPrevented&&l&&l.preventDefault(),g}};function hydrateObj(n,e={}){for(const[t,r]of Object.entries(e))try{n[t]=r}catch{Object.defineProperty(n,t,{configurable:!0,get(){return r}})}return n}function normalizeData(n){if(n==="true")return!0;if(n==="false")return!1;if(n===Number(n).toString())return Number(n);if(n===""||n==="null")return null;if(typeof n!="string")return n;try{return JSON.parse(decodeURIComponent(n))}catch{return n}}function normalizeDataKey(n){return n.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}const Manipulator={setDataAttribute(n,e,t){n.setAttribute(`data-bs-${normalizeDataKey(e)}`,t)},removeDataAttribute(n,e){n.removeAttribute(`data-bs-${normalizeDataKey(e)}`)},getDataAttributes(n){if(!n)return{};const e={},t=Object.keys(n.dataset).filter(r=>r.startsWith("bs")&&!r.startsWith("bsConfig"));for(const r of t){let o=r.replace(/^bs/,"");o=o.charAt(0).toLowerCase()+o.slice(1,o.length),e[o]=normalizeData(n.dataset[r])}return e},getDataAttribute(n,e){return normalizeData(n.getAttribute(`data-bs-${normalizeDataKey(e)}`))}};class Config{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,t){const r=isElement(t)?Manipulator.getDataAttribute(t,"config"):{};return{...this.constructor.Default,...typeof r=="object"?r:{},...isElement(t)?Manipulator.getDataAttributes(t):{},...typeof e=="object"?e:{}}}_typeCheckConfig(e,t=this.constructor.DefaultType){for(const[r,o]of Object.entries(t)){const s=e[r],l=isElement(s)?"element":toType(s);if(!new RegExp(o).test(l))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${r}" provided type "${l}" but expected type "${o}".`)}}}const VERSION="5.3.3";class BaseComponent extends Config{constructor(e,t){super(),e=getElement(e),e&&(this._element=e,this._config=this._getConfig(t),Data.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Data.remove(this._element,this.constructor.DATA_KEY),EventHandler.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,r=!0){executeAfterTransition(e,t,r)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return Data.get(getElement(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,typeof t=="object"?t:null)}static get VERSION(){return VERSION}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}}const getSelector=n=>{let e=n.getAttribute("data-bs-target");if(!e||e==="#"){let t=n.getAttribute("href");if(!t||!t.includes("#")&&!t.startsWith("."))return null;t.includes("#")&&!t.startsWith("#")&&(t=`#${t.split("#")[1]}`),e=t&&t!=="#"?t.trim():null}return e?e.split(",").map(t=>parseSelector(t)).join(","):null},SelectorEngine={find(n,e=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(e,n))},findOne(n,e=document.documentElement){return Element.prototype.querySelector.call(e,n)},children(n,e){return[].concat(...n.children).filter(t=>t.matches(e))},parents(n,e){const t=[];let r=n.parentNode.closest(e);for(;r;)t.push(r),r=r.parentNode.closest(e);return t},prev(n,e){let t=n.previousElementSibling;for(;t;){if(t.matches(e))return[t];t=t.previousElementSibling}return[]},next(n,e){let t=n.nextElementSibling;for(;t;){if(t.matches(e))return[t];t=t.nextElementSibling}return[]},focusableChildren(n){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(t=>`${t}:not([tabindex^="-"])`).join(",");return this.find(e,n).filter(t=>!isDisabled(t)&&isVisible(t))},getSelectorFromElement(n){const e=getSelector(n);return e&&SelectorEngine.findOne(e)?e:null},getElementFromSelector(n){const e=getSelector(n);return e?SelectorEngine.findOne(e):null},getMultipleElementsFromSelector(n){const e=getSelector(n);return e?SelectorEngine.find(e):[]}},enableDismissTrigger=(n,e="hide")=>{const t=`click.dismiss${n.EVENT_KEY}`,r=n.NAME;EventHandler.on(document,t,`[data-bs-dismiss="${r}"]`,function(o){if(["A","AREA"].includes(this.tagName)&&o.preventDefault(),isDisabled(this))return;const s=SelectorEngine.getElementFromSelector(this)||this.closest(`.${r}`);n.getOrCreateInstance(s)[e]()})},NAME$f="alert",DATA_KEY$a="bs.alert",EVENT_KEY$b=`.${DATA_KEY$a}`,EVENT_CLOSE=`close${EVENT_KEY$b}`,EVENT_CLOSED=`closed${EVENT_KEY$b}`,CLASS_NAME_FADE$5="fade",CLASS_NAME_SHOW$8="show";class Alert extends BaseComponent{static get NAME(){return NAME$f}close(){if(EventHandler.trigger(this._element,EVENT_CLOSE).defaultPrevented)return;this._element.classList.remove(CLASS_NAME_SHOW$8);const t=this._element.classList.contains(CLASS_NAME_FADE$5);this._queueCallback(()=>this._destroyElement(),this._element,t)}_destroyElement(){this._element.remove(),EventHandler.trigger(this._element,EVENT_CLOSED),this.dispose()}static jQueryInterface(e){return this.each(function(){const t=Alert.getOrCreateInstance(this);if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e](this)}})}}enableDismissTrigger(Alert,"close");defineJQueryPlugin(Alert);const NAME$e="button",DATA_KEY$9="bs.button",EVENT_KEY$a=`.${DATA_KEY$9}`,DATA_API_KEY$6=".data-api",CLASS_NAME_ACTIVE$3="active",SELECTOR_DATA_TOGGLE$5='[data-bs-toggle="button"]',EVENT_CLICK_DATA_API$6=`click${EVENT_KEY$a}${DATA_API_KEY$6}`;class Button extends BaseComponent{static get NAME(){return NAME$e}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(CLASS_NAME_ACTIVE$3))}static jQueryInterface(e){return this.each(function(){const t=Button.getOrCreateInstance(this);e==="toggle"&&t[e]()})}}EventHandler.on(document,EVENT_CLICK_DATA_API$6,SELECTOR_DATA_TOGGLE$5,n=>{n.preventDefault();const e=n.target.closest(SELECTOR_DATA_TOGGLE$5);Button.getOrCreateInstance(e).toggle()});defineJQueryPlugin(Button);const NAME$d="swipe",EVENT_KEY$9=".bs.swipe",EVENT_TOUCHSTART=`touchstart${EVENT_KEY$9}`,EVENT_TOUCHMOVE=`touchmove${EVENT_KEY$9}`,EVENT_TOUCHEND=`touchend${EVENT_KEY$9}`,EVENT_POINTERDOWN=`pointerdown${EVENT_KEY$9}`,EVENT_POINTERUP=`pointerup${EVENT_KEY$9}`,POINTER_TYPE_TOUCH="touch",POINTER_TYPE_PEN="pen",CLASS_NAME_POINTER_EVENT="pointer-event",SWIPE_THRESHOLD=40,Default$c={endCallback:null,leftCallback:null,rightCallback:null},DefaultType$c={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class Swipe extends Config{constructor(e,t){super(),this._element=e,!(!e||!Swipe.isSupported())&&(this._config=this._getConfig(t),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return Default$c}static get DefaultType(){return DefaultType$c}static get NAME(){return NAME$d}dispose(){EventHandler.off(this._element,EVENT_KEY$9)}_start(e){if(!this._supportPointerEvents){this._deltaX=e.touches[0].clientX;return}this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX)}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),execute(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){const e=Math.abs(this._deltaX);if(e<=SWIPE_THRESHOLD)return;const t=e/this._deltaX;this._deltaX=0,t&&execute(t>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(EventHandler.on(this._element,EVENT_POINTERDOWN,e=>this._start(e)),EventHandler.on(this._element,EVENT_POINTERUP,e=>this._end(e)),this._element.classList.add(CLASS_NAME_POINTER_EVENT)):(EventHandler.on(this._element,EVENT_TOUCHSTART,e=>this._start(e)),EventHandler.on(this._element,EVENT_TOUCHMOVE,e=>this._move(e)),EventHandler.on(this._element,EVENT_TOUCHEND,e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&(e.pointerType===POINTER_TYPE_PEN||e.pointerType===POINTER_TYPE_TOUCH)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const NAME$c="carousel",DATA_KEY$8="bs.carousel",EVENT_KEY$8=`.${DATA_KEY$8}`,DATA_API_KEY$5=".data-api",ARROW_LEFT_KEY$1="ArrowLeft",ARROW_RIGHT_KEY$1="ArrowRight",TOUCHEVENT_COMPAT_WAIT=500,ORDER_NEXT="next",ORDER_PREV="prev",DIRECTION_LEFT="left",DIRECTION_RIGHT="right",EVENT_SLIDE=`slide${EVENT_KEY$8}`,EVENT_SLID=`slid${EVENT_KEY$8}`,EVENT_KEYDOWN$1=`keydown${EVENT_KEY$8}`,EVENT_MOUSEENTER$1=`mouseenter${EVENT_KEY$8}`,EVENT_MOUSELEAVE$1=`mouseleave${EVENT_KEY$8}`,EVENT_DRAG_START=`dragstart${EVENT_KEY$8}`,EVENT_LOAD_DATA_API$3=`load${EVENT_KEY$8}${DATA_API_KEY$5}`,EVENT_CLICK_DATA_API$5=`click${EVENT_KEY$8}${DATA_API_KEY$5}`,CLASS_NAME_CAROUSEL="carousel",CLASS_NAME_ACTIVE$2="active",CLASS_NAME_SLIDE="slide",CLASS_NAME_END="carousel-item-end",CLASS_NAME_START="carousel-item-start",CLASS_NAME_NEXT="carousel-item-next",CLASS_NAME_PREV="carousel-item-prev",SELECTOR_ACTIVE=".active",SELECTOR_ITEM=".carousel-item",SELECTOR_ACTIVE_ITEM=SELECTOR_ACTIVE+SELECTOR_ITEM,SELECTOR_ITEM_IMG=".carousel-item img",SELECTOR_INDICATORS=".carousel-indicators",SELECTOR_DATA_SLIDE="[data-bs-slide], [data-bs-slide-to]",SELECTOR_DATA_RIDE='[data-bs-ride="carousel"]',KEY_TO_DIRECTION={[ARROW_LEFT_KEY$1]:DIRECTION_RIGHT,[ARROW_RIGHT_KEY$1]:DIRECTION_LEFT},Default$b={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},DefaultType$b={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class Carousel extends BaseComponent{constructor(e,t){super(e,t),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=SelectorEngine.findOne(SELECTOR_INDICATORS,this._element),this._addEventListeners(),this._config.ride===CLASS_NAME_CAROUSEL&&this.cycle()}static get Default(){return Default$b}static get DefaultType(){return DefaultType$b}static get NAME(){return NAME$c}next(){this._slide(ORDER_NEXT)}nextWhenVisible(){!document.hidden&&isVisible(this._element)&&this.next()}prev(){this._slide(ORDER_PREV)}pause(){this._isSliding&&triggerTransitionEnd(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(this._config.ride){if(this._isSliding){EventHandler.one(this._element,EVENT_SLID,()=>this.cycle());return}this.cycle()}}to(e){const t=this._getItems();if(e>t.length-1||e<0)return;if(this._isSliding){EventHandler.one(this._element,EVENT_SLID,()=>this.to(e));return}const r=this._getItemIndex(this._getActive());if(r===e)return;const o=e>r?ORDER_NEXT:ORDER_PREV;this._slide(o,t[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&EventHandler.on(this._element,EVENT_KEYDOWN$1,e=>this._keydown(e)),this._config.pause==="hover"&&(EventHandler.on(this._element,EVENT_MOUSEENTER$1,()=>this.pause()),EventHandler.on(this._element,EVENT_MOUSELEAVE$1,()=>this._maybeEnableCycle())),this._config.touch&&Swipe.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const r of SelectorEngine.find(SELECTOR_ITEM_IMG,this._element))EventHandler.on(r,EVENT_DRAG_START,o=>o.preventDefault());const t={leftCallback:()=>this._slide(this._directionToOrder(DIRECTION_LEFT)),rightCallback:()=>this._slide(this._directionToOrder(DIRECTION_RIGHT)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),TOUCHEVENT_COMPAT_WAIT+this._config.interval))}};this._swipeHelper=new Swipe(this._element,t)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const t=KEY_TO_DIRECTION[e.key];t&&(e.preventDefault(),this._slide(this._directionToOrder(t)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;const t=SelectorEngine.findOne(SELECTOR_ACTIVE,this._indicatorsElement);t.classList.remove(CLASS_NAME_ACTIVE$2),t.removeAttribute("aria-current");const r=SelectorEngine.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);r&&(r.classList.add(CLASS_NAME_ACTIVE$2),r.setAttribute("aria-current","true"))}_updateInterval(){const e=this._activeElement||this._getActive();if(!e)return;const t=Number.parseInt(e.getAttribute("data-bs-interval"),10);this._config.interval=t||this._config.defaultInterval}_slide(e,t=null){if(this._isSliding)return;const r=this._getActive(),o=e===ORDER_NEXT,s=t||getNextActiveElement(this._getItems(),r,o,this._config.wrap);if(s===r)return;const l=this._getItemIndex(s),f=x=>EventHandler.trigger(this._element,x,{relatedTarget:s,direction:this._orderToDirection(e),from:this._getItemIndex(r),to:l});if(f(EVENT_SLIDE).defaultPrevented||!r||!s)return;const d=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(l),this._activeElement=s;const g=o?CLASS_NAME_START:CLASS_NAME_END,y=o?CLASS_NAME_NEXT:CLASS_NAME_PREV;s.classList.add(y),reflow(s),r.classList.add(g),s.classList.add(g);const S=()=>{s.classList.remove(g,y),s.classList.add(CLASS_NAME_ACTIVE$2),r.classList.remove(CLASS_NAME_ACTIVE$2,y,g),this._isSliding=!1,f(EVENT_SLID)};this._queueCallback(S,r,this._isAnimated()),d&&this.cycle()}_isAnimated(){return this._element.classList.contains(CLASS_NAME_SLIDE)}_getActive(){return SelectorEngine.findOne(SELECTOR_ACTIVE_ITEM,this._element)}_getItems(){return SelectorEngine.find(SELECTOR_ITEM,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return isRTL()?e===DIRECTION_LEFT?ORDER_PREV:ORDER_NEXT:e===DIRECTION_LEFT?ORDER_NEXT:ORDER_PREV}_orderToDirection(e){return isRTL()?e===ORDER_PREV?DIRECTION_LEFT:DIRECTION_RIGHT:e===ORDER_PREV?DIRECTION_RIGHT:DIRECTION_LEFT}static jQueryInterface(e){return this.each(function(){const t=Carousel.getOrCreateInstance(this,e);if(typeof e=="number"){t.to(e);return}if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e]()}})}}EventHandler.on(document,EVENT_CLICK_DATA_API$5,SELECTOR_DATA_SLIDE,function(n){const e=SelectorEngine.getElementFromSelector(this);if(!e||!e.classList.contains(CLASS_NAME_CAROUSEL))return;n.preventDefault();const t=Carousel.getOrCreateInstance(e),r=this.getAttribute("data-bs-slide-to");if(r){t.to(r),t._maybeEnableCycle();return}if(Manipulator.getDataAttribute(this,"slide")==="next"){t.next(),t._maybeEnableCycle();return}t.prev(),t._maybeEnableCycle()});EventHandler.on(window,EVENT_LOAD_DATA_API$3,()=>{const n=SelectorEngine.find(SELECTOR_DATA_RIDE);for(const e of n)Carousel.getOrCreateInstance(e)});defineJQueryPlugin(Carousel);const NAME$b="collapse",DATA_KEY$7="bs.collapse",EVENT_KEY$7=`.${DATA_KEY$7}`,DATA_API_KEY$4=".data-api",EVENT_SHOW$6=`show${EVENT_KEY$7}`,EVENT_SHOWN$6=`shown${EVENT_KEY$7}`,EVENT_HIDE$6=`hide${EVENT_KEY$7}`,EVENT_HIDDEN$6=`hidden${EVENT_KEY$7}`,EVENT_CLICK_DATA_API$4=`click${EVENT_KEY$7}${DATA_API_KEY$4}`,CLASS_NAME_SHOW$7="show",CLASS_NAME_COLLAPSE="collapse",CLASS_NAME_COLLAPSING="collapsing",CLASS_NAME_COLLAPSED="collapsed",CLASS_NAME_DEEPER_CHILDREN=`:scope .${CLASS_NAME_COLLAPSE} .${CLASS_NAME_COLLAPSE}`,CLASS_NAME_HORIZONTAL="collapse-horizontal",WIDTH="width",HEIGHT="height",SELECTOR_ACTIVES=".collapse.show, .collapse.collapsing",SELECTOR_DATA_TOGGLE$4='[data-bs-toggle="collapse"]',Default$a={parent:null,toggle:!0},DefaultType$a={parent:"(null|element)",toggle:"boolean"};class Collapse extends BaseComponent{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];const r=SelectorEngine.find(SELECTOR_DATA_TOGGLE$4);for(const o of r){const s=SelectorEngine.getSelectorFromElement(o),l=SelectorEngine.find(s).filter(f=>f===this._element);s!==null&&l.length&&this._triggerArray.push(o)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return Default$a}static get DefaultType(){return DefaultType$a}static get NAME(){return NAME$b}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(SELECTOR_ACTIVES).filter(f=>f!==this._element).map(f=>Collapse.getOrCreateInstance(f,{toggle:!1}))),e.length&&e[0]._isTransitioning||EventHandler.trigger(this._element,EVENT_SHOW$6).defaultPrevented)return;for(const f of e)f.hide();const r=this._getDimension();this._element.classList.remove(CLASS_NAME_COLLAPSE),this._element.classList.add(CLASS_NAME_COLLAPSING),this._element.style[r]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const o=()=>{this._isTransitioning=!1,this._element.classList.remove(CLASS_NAME_COLLAPSING),this._element.classList.add(CLASS_NAME_COLLAPSE,CLASS_NAME_SHOW$7),this._element.style[r]="",EventHandler.trigger(this._element,EVENT_SHOWN$6)},l=`scroll${r[0].toUpperCase()+r.slice(1)}`;this._queueCallback(o,this._element,!0),this._element.style[r]=`${this._element[l]}px`}hide(){if(this._isTransitioning||!this._isShown()||EventHandler.trigger(this._element,EVENT_HIDE$6).defaultPrevented)return;const t=this._getDimension();this._element.style[t]=`${this._element.getBoundingClientRect()[t]}px`,reflow(this._element),this._element.classList.add(CLASS_NAME_COLLAPSING),this._element.classList.remove(CLASS_NAME_COLLAPSE,CLASS_NAME_SHOW$7);for(const o of this._triggerArray){const s=SelectorEngine.getElementFromSelector(o);s&&!this._isShown(s)&&this._addAriaAndCollapsedClass([o],!1)}this._isTransitioning=!0;const r=()=>{this._isTransitioning=!1,this._element.classList.remove(CLASS_NAME_COLLAPSING),this._element.classList.add(CLASS_NAME_COLLAPSE),EventHandler.trigger(this._element,EVENT_HIDDEN$6)};this._element.style[t]="",this._queueCallback(r,this._element,!0)}_isShown(e=this._element){return e.classList.contains(CLASS_NAME_SHOW$7)}_configAfterMerge(e){return e.toggle=!!e.toggle,e.parent=getElement(e.parent),e}_getDimension(){return this._element.classList.contains(CLASS_NAME_HORIZONTAL)?WIDTH:HEIGHT}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(SELECTOR_DATA_TOGGLE$4);for(const t of e){const r=SelectorEngine.getElementFromSelector(t);r&&this._addAriaAndCollapsedClass([t],this._isShown(r))}}_getFirstLevelChildren(e){const t=SelectorEngine.find(CLASS_NAME_DEEPER_CHILDREN,this._config.parent);return SelectorEngine.find(e,this._config.parent).filter(r=>!t.includes(r))}_addAriaAndCollapsedClass(e,t){if(e.length)for(const r of e)r.classList.toggle(CLASS_NAME_COLLAPSED,!t),r.setAttribute("aria-expanded",t)}static jQueryInterface(e){const t={};return typeof e=="string"&&/show|hide/.test(e)&&(t.toggle=!1),this.each(function(){const r=Collapse.getOrCreateInstance(this,t);if(typeof e=="string"){if(typeof r[e]>"u")throw new TypeError(`No method named "${e}"`);r[e]()}})}}EventHandler.on(document,EVENT_CLICK_DATA_API$4,SELECTOR_DATA_TOGGLE$4,function(n){(n.target.tagName==="A"||n.delegateTarget&&n.delegateTarget.tagName==="A")&&n.preventDefault();for(const e of SelectorEngine.getMultipleElementsFromSelector(this))Collapse.getOrCreateInstance(e,{toggle:!1}).toggle()});defineJQueryPlugin(Collapse);const NAME$a="dropdown",DATA_KEY$6="bs.dropdown",EVENT_KEY$6=`.${DATA_KEY$6}`,DATA_API_KEY$3=".data-api",ESCAPE_KEY$2="Escape",TAB_KEY$1="Tab",ARROW_UP_KEY$1="ArrowUp",ARROW_DOWN_KEY$1="ArrowDown",RIGHT_MOUSE_BUTTON=2,EVENT_HIDE$5=`hide${EVENT_KEY$6}`,EVENT_HIDDEN$5=`hidden${EVENT_KEY$6}`,EVENT_SHOW$5=`show${EVENT_KEY$6}`,EVENT_SHOWN$5=`shown${EVENT_KEY$6}`,EVENT_CLICK_DATA_API$3=`click${EVENT_KEY$6}${DATA_API_KEY$3}`,EVENT_KEYDOWN_DATA_API=`keydown${EVENT_KEY$6}${DATA_API_KEY$3}`,EVENT_KEYUP_DATA_API=`keyup${EVENT_KEY$6}${DATA_API_KEY$3}`,CLASS_NAME_SHOW$6="show",CLASS_NAME_DROPUP="dropup",CLASS_NAME_DROPEND="dropend",CLASS_NAME_DROPSTART="dropstart",CLASS_NAME_DROPUP_CENTER="dropup-center",CLASS_NAME_DROPDOWN_CENTER="dropdown-center",SELECTOR_DATA_TOGGLE$3='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',SELECTOR_DATA_TOGGLE_SHOWN=`${SELECTOR_DATA_TOGGLE$3}.${CLASS_NAME_SHOW$6}`,SELECTOR_MENU=".dropdown-menu",SELECTOR_NAVBAR=".navbar",SELECTOR_NAVBAR_NAV=".navbar-nav",SELECTOR_VISIBLE_ITEMS=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",PLACEMENT_TOP=isRTL()?"top-end":"top-start",PLACEMENT_TOPEND=isRTL()?"top-start":"top-end",PLACEMENT_BOTTOM=isRTL()?"bottom-end":"bottom-start",PLACEMENT_BOTTOMEND=isRTL()?"bottom-start":"bottom-end",PLACEMENT_RIGHT=isRTL()?"left-start":"right-start",PLACEMENT_LEFT=isRTL()?"right-start":"left-start",PLACEMENT_TOPCENTER="top",PLACEMENT_BOTTOMCENTER="bottom",Default$9={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},DefaultType$9={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Dropdown extends BaseComponent{constructor(e,t){super(e,t),this._popper=null,this._parent=this._element.parentNode,this._menu=SelectorEngine.next(this._element,SELECTOR_MENU)[0]||SelectorEngine.prev(this._element,SELECTOR_MENU)[0]||SelectorEngine.findOne(SELECTOR_MENU,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Default$9}static get DefaultType(){return DefaultType$9}static get NAME(){return NAME$a}toggle(){return this._isShown()?this.hide():this.show()}show(){if(isDisabled(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!EventHandler.trigger(this._element,EVENT_SHOW$5,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(SELECTOR_NAVBAR_NAV))for(const r of[].concat(...document.body.children))EventHandler.on(r,"mouseover",noop);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(CLASS_NAME_SHOW$6),this._element.classList.add(CLASS_NAME_SHOW$6),EventHandler.trigger(this._element,EVENT_SHOWN$5,e)}}hide(){if(isDisabled(this._element)||!this._isShown())return;const e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!EventHandler.trigger(this._element,EVENT_HIDE$5,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const r of[].concat(...document.body.children))EventHandler.off(r,"mouseover",noop);this._popper&&this._popper.destroy(),this._menu.classList.remove(CLASS_NAME_SHOW$6),this._element.classList.remove(CLASS_NAME_SHOW$6),this._element.setAttribute("aria-expanded","false"),Manipulator.removeDataAttribute(this._menu,"popper"),EventHandler.trigger(this._element,EVENT_HIDDEN$5,e)}}_getConfig(e){if(e=super._getConfig(e),typeof e.reference=="object"&&!isElement(e.reference)&&typeof e.reference.getBoundingClientRect!="function")throw new TypeError(`${NAME$a.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(typeof Popper>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let e=this._element;this._config.reference==="parent"?e=this._parent:isElement(this._config.reference)?e=getElement(this._config.reference):typeof this._config.reference=="object"&&(e=this._config.reference);const t=this._getPopperConfig();this._popper=createPopper(e,this._menu,t)}_isShown(){return this._menu.classList.contains(CLASS_NAME_SHOW$6)}_getPlacement(){const e=this._parent;if(e.classList.contains(CLASS_NAME_DROPEND))return PLACEMENT_RIGHT;if(e.classList.contains(CLASS_NAME_DROPSTART))return PLACEMENT_LEFT;if(e.classList.contains(CLASS_NAME_DROPUP_CENTER))return PLACEMENT_TOPCENTER;if(e.classList.contains(CLASS_NAME_DROPDOWN_CENTER))return PLACEMENT_BOTTOMCENTER;const t=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return e.classList.contains(CLASS_NAME_DROPUP)?t?PLACEMENT_TOPEND:PLACEMENT_TOP:t?PLACEMENT_BOTTOMEND:PLACEMENT_BOTTOM}_detectNavbar(){return this._element.closest(SELECTOR_NAVBAR)!==null}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(t=>Number.parseInt(t,10)):typeof e=="function"?t=>e(t,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(Manipulator.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...execute(this._config.popperConfig,[e])}}_selectMenuItem({key:e,target:t}){const r=SelectorEngine.find(SELECTOR_VISIBLE_ITEMS,this._menu).filter(o=>isVisible(o));r.length&&getNextActiveElement(r,t,e===ARROW_DOWN_KEY$1,!r.includes(t)).focus()}static jQueryInterface(e){return this.each(function(){const t=Dropdown.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof t[e]>"u")throw new TypeError(`No method named "${e}"`);t[e]()}})}static clearMenus(e){if(e.button===RIGHT_MOUSE_BUTTON||e.type==="keyup"&&e.key!==TAB_KEY$1)return;const t=SelectorEngine.find(SELECTOR_DATA_TOGGLE_SHOWN);for(const r of t){const o=Dropdown.getInstance(r);if(!o||o._config.autoClose===!1)continue;const s=e.composedPath(),l=s.includes(o._menu);if(s.includes(o._element)||o._config.autoClose==="inside"&&!l||o._config.autoClose==="outside"&&l||o._menu.contains(e.target)&&(e.type==="keyup"&&e.key===TAB_KEY$1||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const f={relatedTarget:o._element};e.type==="click"&&(f.clickEvent=e),o._completeHide(f)}}static dataApiKeydownHandler(e){const t=/input|textarea/i.test(e.target.tagName),r=e.key===ESCAPE_KEY$2,o=[ARROW_UP_KEY$1,ARROW_DOWN_KEY$1].includes(e.key);if(!o&&!r||t&&!r)return;e.preventDefault();const s=this.matches(SELECTOR_DATA_TOGGLE$3)?this:SelectorEngine.prev(this,SELECTOR_DATA_TOGGLE$3)[0]||SelectorEngine.next(this,SELECTOR_DATA_TOGGLE$3)[0]||SelectorEngine.findOne(SELECTOR_DATA_TOGGLE$3,e.delegateTarget.parentNode),l=Dropdown.getOrCreateInstance(s);if(o){e.stopPropagation(),l.show(),l._selectMenuItem(e);return}l._isShown()&&(e.stopPropagation(),l.hide(),s.focus())}}EventHandler.on(document,EVENT_KEYDOWN_DATA_API,SELECTOR_DATA_TOGGLE$3,Dropdown.dataApiKeydownHandler);EventHandler.on(document,EVENT_KEYDOWN_DATA_API,SELECTOR_MENU,Dropdown.dataApiKeydownHandler);EventHandler.on(document,EVENT_CLICK_DATA_API$3,Dropdown.clearMenus);EventHandler.on(document,EVENT_KEYUP_DATA_API,Dropdown.clearMenus);EventHandler.on(document,EVENT_CLICK_DATA_API$3,SELECTOR_DATA_TOGGLE$3,function(n){n.preventDefault(),Dropdown.getOrCreateInstance(this).toggle()});defineJQueryPlugin(Dropdown);const NAME$9="backdrop",CLASS_NAME_FADE$4="fade",CLASS_NAME_SHOW$5="show",EVENT_MOUSEDOWN=`mousedown.bs.${NAME$9}`,Default$8={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},DefaultType$8={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Backdrop extends Config{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return Default$8}static get DefaultType(){return DefaultType$8}static get NAME(){return NAME$9}show(e){if(!this._config.isVisible){execute(e);return}this._append();const t=this._getElement();this._config.isAnimated&&reflow(t),t.classList.add(CLASS_NAME_SHOW$5),this._emulateAnimation(()=>{execute(e)})}hide(e){if(!this._config.isVisible){execute(e);return}this._getElement().classList.remove(CLASS_NAME_SHOW$5),this._emulateAnimation(()=>{this.dispose(),execute(e)})}dispose(){this._isAppended&&(EventHandler.off(this._element,EVENT_MOUSEDOWN),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add(CLASS_NAME_FADE$4),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=getElement(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),EventHandler.on(e,EVENT_MOUSEDOWN,()=>{execute(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){executeAfterTransition(e,this._getElement(),this._config.isAnimated)}}const NAME$8="focustrap",DATA_KEY$5="bs.focustrap",EVENT_KEY$5=`.${DATA_KEY$5}`,EVENT_FOCUSIN$2=`focusin${EVENT_KEY$5}`,EVENT_KEYDOWN_TAB=`keydown.tab${EVENT_KEY$5}`,TAB_KEY="Tab",TAB_NAV_FORWARD="forward",TAB_NAV_BACKWARD="backward",Default$7={autofocus:!0,trapElement:null},DefaultType$7={autofocus:"boolean",trapElement:"element"};class FocusTrap extends Config{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return Default$7}static get DefaultType(){return DefaultType$7}static get NAME(){return NAME$8}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),EventHandler.off(document,EVENT_KEY$5),EventHandler.on(document,EVENT_FOCUSIN$2,e=>this._handleFocusin(e)),EventHandler.on(document,EVENT_KEYDOWN_TAB,e=>this._handleKeydown(e)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,EventHandler.off(document,EVENT_KEY$5))}_handleFocusin(e){const{trapElement:t}=this._config;if(e.target===document||e.target===t||t.contains(e.target))return;const r=SelectorEngine.focusableChildren(t);r.length===0?t.focus():this._lastTabNavDirection===TAB_NAV_BACKWARD?r[r.length-1].focus():r[0].focus()}_handleKeydown(e){e.key===TAB_KEY&&(this._lastTabNavDirection=e.shiftKey?TAB_NAV_BACKWARD:TAB_NAV_FORWARD)}}const SELECTOR_FIXED_CONTENT=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",SELECTOR_STICKY_CONTENT=".sticky-top",PROPERTY_PADDING="padding-right",PROPERTY_MARGIN="margin-right";class ScrollBarHelper{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,PROPERTY_PADDING,t=>t+e),this._setElementAttributes(SELECTOR_FIXED_CONTENT,PROPERTY_PADDING,t=>t+e),this._setElementAttributes(SELECTOR_STICKY_CONTENT,PROPERTY_MARGIN,t=>t-e)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,PROPERTY_PADDING),this._resetElementAttributes(SELECTOR_FIXED_CONTENT,PROPERTY_PADDING),this._resetElementAttributes(SELECTOR_STICKY_CONTENT,PROPERTY_MARGIN)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,t,r){const o=this.getWidth(),s=l=>{if(l!==this._element&&window.innerWidth>l.clientWidth+o)return;this._saveInitialAttribute(l,t);const f=window.getComputedStyle(l).getPropertyValue(t);l.style.setProperty(t,`${r(Number.parseFloat(f))}px`)};this._applyManipulationCallback(e,s)}_saveInitialAttribute(e,t){const r=e.style.getPropertyValue(t);r&&Manipulator.setDataAttribute(e,t,r)}_resetElementAttributes(e,t){const r=o=>{const s=Manipulator.getDataAttribute(o,t);if(s===null){o.style.removeProperty(t);return}Manipulator.removeDataAttribute(o,t),o.style.setProperty(t,s)};this._applyManipulationCallback(e,r)}_applyManipulationCallback(e,t){if(isElement(e)){t(e);return}for(const r of SelectorEngine.find(e,this._element))t(r)}}const NAME$7="modal",DATA_KEY$4="bs.modal",EVENT_KEY$4=`.${DATA_KEY$4}`,DATA_API_KEY$2=".data-api",ESCAPE_KEY$1="Escape",EVENT_HIDE$4=`hide${EVENT_KEY$4}`,EVENT_HIDE_PREVENTED$1=`hidePrevented${EVENT_KEY$4}`,EVENT_HIDDEN$4=`hidden${EVENT_KEY$4}`,EVENT_SHOW$4=`show${EVENT_KEY$4}`,EVENT_SHOWN$4=`shown${EVENT_KEY$4}`,EVENT_RESIZE$1=`resize${EVENT_KEY$4}`,EVENT_CLICK_DISMISS=`click.dismiss${EVENT_KEY$4}`,EVENT_MOUSEDOWN_DISMISS=`mousedown.dismiss${EVENT_KEY$4}`,EVENT_KEYDOWN_DISMISS$1=`keydown.dismiss${EVENT_KEY$4}`,EVENT_CLICK_DATA_API$2=`click${EVENT_KEY$4}${DATA_API_KEY$2}`,CLASS_NAME_OPEN="modal-open",CLASS_NAME_FADE$3="fade",CLASS_NAME_SHOW$4="show",CLASS_NAME_STATIC="modal-static",OPEN_SELECTOR$1=".modal.show",SELECTOR_DIALOG=".modal-dialog",SELECTOR_MODAL_BODY=".modal-body",SELECTOR_DATA_TOGGLE$2='[data-bs-toggle="modal"]',Default$6={backdrop:!0,focus:!0,keyboard:!0},DefaultType$6={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class Modal extends BaseComponent{constructor(e,t){super(e,t),this._dialog=SelectorEngine.findOne(SELECTOR_DIALOG,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new ScrollBarHelper,this._addEventListeners()}static get Default(){return Default$6}static get DefaultType(){return DefaultType$6}static get NAME(){return NAME$7}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||EventHandler.trigger(this._element,EVENT_SHOW$4,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(CLASS_NAME_OPEN),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){!this._isShown||this._isTransitioning||EventHandler.trigger(this._element,EVENT_HIDE$4).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(CLASS_NAME_SHOW$4),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){EventHandler.off(window,EVENT_KEY$4),EventHandler.off(this._dialog,EVENT_KEY$4),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Backdrop({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new FocusTrap({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const t=SelectorEngine.findOne(SELECTOR_MODAL_BODY,this._dialog);t&&(t.scrollTop=0),reflow(this._element),this._element.classList.add(CLASS_NAME_SHOW$4);const r=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,EventHandler.trigger(this._element,EVENT_SHOWN$4,{relatedTarget:e})};this._queueCallback(r,this._dialog,this._isAnimated())}_addEventListeners(){EventHandler.on(this._element,EVENT_KEYDOWN_DISMISS$1,e=>{if(e.key===ESCAPE_KEY$1){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),EventHandler.on(window,EVENT_RESIZE$1,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),EventHandler.on(this._element,EVENT_MOUSEDOWN_DISMISS,e=>{EventHandler.one(this._element,EVENT_CLICK_DISMISS,t=>{if(!(this._element!==e.target||this._element!==t.target)){if(this._config.backdrop==="static"){this._triggerBackdropTransition();return}this._config.backdrop&&this.hide()}})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(CLASS_NAME_OPEN),this._resetAdjustments(),this._scrollBar.reset(),EventHandler.trigger(this._element,EVENT_HIDDEN$4)})}_isAnimated(){return this._element.classList.contains(CLASS_NAME_FADE$3)}_triggerBackdropTransition(){if(EventHandler.trigger(this._element,EVENT_HIDE_PREVENTED$1).defaultPrevented)return;const t=this._element.scrollHeight>document.documentElement.clientHeight,r=this._element.style.overflowY;r==="hidden"||this._element.classList.contains(CLASS_NAME_STATIC)||(t||(this._element.style.overflowY="hidden"),this._element.classList.add(CLASS_NAME_STATIC),this._queueCallback(()=>{this._element.classList.remove(CLASS_NAME_STATIC),this._queueCallback(()=>{this._element.style.overflowY=r},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),r=t>0;if(r&&!e){const o=isRTL()?"paddingLeft":"paddingRight";this._element.style[o]=`${t}px`}if(!r&&e){const o=isRTL()?"paddingRight":"paddingLeft";this._element.style[o]=`${t}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,t){return this.each(function(){const r=Modal.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof r[e]>"u")throw new TypeError(`No method named "${e}"`);r[e](t)}})}}EventHandler.on(document,EVENT_CLICK_DATA_API$2,SELECTOR_DATA_TOGGLE$2,function(n){const e=SelectorEngine.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&n.preventDefault(),EventHandler.one(e,EVENT_SHOW$4,o=>{o.defaultPrevented||EventHandler.one(e,EVENT_HIDDEN$4,()=>{isVisible(this)&&this.focus()})});const t=SelectorEngine.findOne(OPEN_SELECTOR$1);t&&Modal.getInstance(t).hide(),Modal.getOrCreateInstance(e).toggle(this)});enableDismissTrigger(Modal);defineJQueryPlugin(Modal);const NAME$6="offcanvas",DATA_KEY$3="bs.offcanvas",EVENT_KEY$3=`.${DATA_KEY$3}`,DATA_API_KEY$1=".data-api",EVENT_LOAD_DATA_API$2=`load${EVENT_KEY$3}${DATA_API_KEY$1}`,ESCAPE_KEY="Escape",CLASS_NAME_SHOW$3="show",CLASS_NAME_SHOWING$1="showing",CLASS_NAME_HIDING="hiding",CLASS_NAME_BACKDROP="offcanvas-backdrop",OPEN_SELECTOR=".offcanvas.show",EVENT_SHOW$3=`show${EVENT_KEY$3}`,EVENT_SHOWN$3=`shown${EVENT_KEY$3}`,EVENT_HIDE$3=`hide${EVENT_KEY$3}`,EVENT_HIDE_PREVENTED=`hidePrevented${EVENT_KEY$3}`,EVENT_HIDDEN$3=`hidden${EVENT_KEY$3}`,EVENT_RESIZE=`resize${EVENT_KEY$3}`,EVENT_CLICK_DATA_API$1=`click${EVENT_KEY$3}${DATA_API_KEY$1}`,EVENT_KEYDOWN_DISMISS=`keydown.dismiss${EVENT_KEY$3}`,SELECTOR_DATA_TOGGLE$1='[data-bs-toggle="offcanvas"]',Default$5={backdrop:!0,keyboard:!0,scroll:!1},DefaultType$5={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Offcanvas extends BaseComponent{constructor(e,t){super(e,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Default$5}static get DefaultType(){return DefaultType$5}static get NAME(){return NAME$6}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown||EventHandler.trigger(this._element,EVENT_SHOW$3,{relatedTarget:e}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new ScrollBarHelper().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(CLASS_NAME_SHOWING$1);const r=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(CLASS_NAME_SHOW$3),this._element.classList.remove(CLASS_NAME_SHOWING$1),EventHandler.trigger(this._element,EVENT_SHOWN$3,{relatedTarget:e})};this._queueCallback(r,this._element,!0)}hide(){if(!this._isShown||EventHandler.trigger(this._element,EVENT_HIDE$3).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(CLASS_NAME_HIDING),this._backdrop.hide();const t=()=>{this._element.classList.remove(CLASS_NAME_SHOW$3,CLASS_NAME_HIDING),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new ScrollBarHelper().reset(),EventHandler.trigger(this._element,EVENT_HIDDEN$3)};this._queueCallback(t,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=()=>{if(this._config.backdrop==="static"){EventHandler.trigger(this._element,EVENT_HIDE_PREVENTED);return}this.hide()},t=!!this._config.backdrop;return new Backdrop({className:CLASS_NAME_BACKDROP,isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?e:null})}_initializeFocusTrap(){return new FocusTrap({trapElement:this._element})}_addEventListeners(){EventHandler.on(this._element,EVENT_KEYDOWN_DISMISS,e=>{if(e.key===ESCAPE_KEY){if(this._config.keyboard){this.hide();return}EventHandler.trigger(this._element,EVENT_HIDE_PREVENTED)}})}static jQueryInterface(e){return this.each(function(){const t=Offcanvas.getOrCreateInstance(this,e);if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e](this)}})}}EventHandler.on(document,EVENT_CLICK_DATA_API$1,SELECTOR_DATA_TOGGLE$1,function(n){const e=SelectorEngine.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&n.preventDefault(),isDisabled(this))return;EventHandler.one(e,EVENT_HIDDEN$3,()=>{isVisible(this)&&this.focus()});const t=SelectorEngine.findOne(OPEN_SELECTOR);t&&t!==e&&Offcanvas.getInstance(t).hide(),Offcanvas.getOrCreateInstance(e).toggle(this)});EventHandler.on(window,EVENT_LOAD_DATA_API$2,()=>{for(const n of SelectorEngine.find(OPEN_SELECTOR))Offcanvas.getOrCreateInstance(n).show()});EventHandler.on(window,EVENT_RESIZE,()=>{for(const n of SelectorEngine.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(n).position!=="fixed"&&Offcanvas.getOrCreateInstance(n).hide()});enableDismissTrigger(Offcanvas);defineJQueryPlugin(Offcanvas);const ARIA_ATTRIBUTE_PATTERN=/^aria-[\w-]*$/i,DefaultAllowlist={"*":["class","dir","id","lang","role",ARIA_ATTRIBUTE_PATTERN],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},uriAttributes=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),SAFE_URL_PATTERN=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,allowedAttribute=(n,e)=>{const t=n.nodeName.toLowerCase();return e.includes(t)?uriAttributes.has(t)?!!SAFE_URL_PATTERN.test(n.nodeValue):!0:e.filter(r=>r instanceof RegExp).some(r=>r.test(t))};function sanitizeHtml(n,e,t){if(!n.length)return n;if(t&&typeof t=="function")return t(n);const o=new window.DOMParser().parseFromString(n,"text/html"),s=[].concat(...o.body.querySelectorAll("*"));for(const l of s){const f=l.nodeName.toLowerCase();if(!Object.keys(e).includes(f)){l.remove();continue}const E=[].concat(...l.attributes),d=[].concat(e["*"]||[],e[f]||[]);for(const g of E)allowedAttribute(g,d)||l.removeAttribute(g.nodeName)}return o.body.innerHTML}const NAME$5="TemplateFactory",Default$4={allowList:DefaultAllowlist,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},DefaultType$4={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},DefaultContentType={entry:"(string|element|function|null)",selector:"(string|element)"};class TemplateFactory extends Config{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return Default$4}static get DefaultType(){return DefaultType$4}static get NAME(){return NAME$5}getContent(){return Object.values(this._config.content).map(e=>this._resolvePossibleFunction(e)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){const e=document.createElement("div");e.innerHTML=this._maybeSanitize(this._config.template);for(const[o,s]of Object.entries(this._config.content))this._setContent(e,s,o);const t=e.children[0],r=this._resolvePossibleFunction(this._config.extraClass);return r&&t.classList.add(...r.split(" ")),t}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(const[t,r]of Object.entries(e))super._typeCheckConfig({selector:t,entry:r},DefaultContentType)}_setContent(e,t,r){const o=SelectorEngine.findOne(r,e);if(o){if(t=this._resolvePossibleFunction(t),!t){o.remove();return}if(isElement(t)){this._putElementInTemplate(getElement(t),o);return}if(this._config.html){o.innerHTML=this._maybeSanitize(t);return}o.textContent=t}}_maybeSanitize(e){return this._config.sanitize?sanitizeHtml(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return execute(e,[this])}_putElementInTemplate(e,t){if(this._config.html){t.innerHTML="",t.append(e);return}t.textContent=e.textContent}}const NAME$4="tooltip",DISALLOWED_ATTRIBUTES=new Set(["sanitize","allowList","sanitizeFn"]),CLASS_NAME_FADE$2="fade",CLASS_NAME_MODAL="modal",CLASS_NAME_SHOW$2="show",SELECTOR_TOOLTIP_INNER=".tooltip-inner",SELECTOR_MODAL=`.${CLASS_NAME_MODAL}`,EVENT_MODAL_HIDE="hide.bs.modal",TRIGGER_HOVER="hover",TRIGGER_FOCUS="focus",TRIGGER_CLICK="click",TRIGGER_MANUAL="manual",EVENT_HIDE$2="hide",EVENT_HIDDEN$2="hidden",EVENT_SHOW$2="show",EVENT_SHOWN$2="shown",EVENT_INSERTED="inserted",EVENT_CLICK$1="click",EVENT_FOCUSIN$1="focusin",EVENT_FOCUSOUT$1="focusout",EVENT_MOUSEENTER="mouseenter",EVENT_MOUSELEAVE="mouseleave",AttachmentMap={AUTO:"auto",TOP:"top",RIGHT:isRTL()?"left":"right",BOTTOM:"bottom",LEFT:isRTL()?"right":"left"},Default$3={allowList:DefaultAllowlist,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},DefaultType$3={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class Tooltip extends BaseComponent{constructor(e,t){if(typeof Popper>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(e,t),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return Default$3}static get DefaultType(){return DefaultType$3}static get NAME(){return NAME$4}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),EventHandler.off(this._element.closest(SELECTOR_MODAL),EVENT_MODAL_HIDE,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!(this._isWithContent()&&this._isEnabled))return;const e=EventHandler.trigger(this._element,this.constructor.eventName(EVENT_SHOW$2)),r=(findShadowRoot(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!r)return;this._disposePopper();const o=this._getTipElement();this._element.setAttribute("aria-describedby",o.getAttribute("id"));const{container:s}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(s.append(o),EventHandler.trigger(this._element,this.constructor.eventName(EVENT_INSERTED))),this._popper=this._createPopper(o),o.classList.add(CLASS_NAME_SHOW$2),"ontouchstart"in document.documentElement)for(const f of[].concat(...document.body.children))EventHandler.on(f,"mouseover",noop);const l=()=>{EventHandler.trigger(this._element,this.constructor.eventName(EVENT_SHOWN$2)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(l,this.tip,this._isAnimated())}hide(){if(!this._isShown()||EventHandler.trigger(this._element,this.constructor.eventName(EVENT_HIDE$2)).defaultPrevented)return;if(this._getTipElement().classList.remove(CLASS_NAME_SHOW$2),"ontouchstart"in document.documentElement)for(const o of[].concat(...document.body.children))EventHandler.off(o,"mouseover",noop);this._activeTrigger[TRIGGER_CLICK]=!1,this._activeTrigger[TRIGGER_FOCUS]=!1,this._activeTrigger[TRIGGER_HOVER]=!1,this._isHovered=null;const r=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),EventHandler.trigger(this._element,this.constructor.eventName(EVENT_HIDDEN$2)))};this._queueCallback(r,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(e){const t=this._getTemplateFactory(e).toHtml();if(!t)return null;t.classList.remove(CLASS_NAME_FADE$2,CLASS_NAME_SHOW$2),t.classList.add(`bs-${this.constructor.NAME}-auto`);const r=getUID(this.constructor.NAME).toString();return t.setAttribute("id",r),this._isAnimated()&&t.classList.add(CLASS_NAME_FADE$2),t}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new TemplateFactory({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[SELECTOR_TOOLTIP_INNER]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(CLASS_NAME_FADE$2)}_isShown(){return this.tip&&this.tip.classList.contains(CLASS_NAME_SHOW$2)}_createPopper(e){const t=execute(this._config.placement,[this,e,this._element]),r=AttachmentMap[t.toUpperCase()];return createPopper(this._element,e,this._getPopperConfig(r))}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(t=>Number.parseInt(t,10)):typeof e=="function"?t=>e(t,this._element):e}_resolvePossibleFunction(e){return execute(e,[this._element])}_getPopperConfig(e){const t={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:r=>{this._getTipElement().setAttribute("data-popper-placement",r.state.placement)}}]};return{...t,...execute(this._config.popperConfig,[t])}}_setListeners(){const e=this._config.trigger.split(" ");for(const t of e)if(t==="click")EventHandler.on(this._element,this.constructor.eventName(EVENT_CLICK$1),this._config.selector,r=>{this._initializeOnDelegatedTarget(r).toggle()});else if(t!==TRIGGER_MANUAL){const r=t===TRIGGER_HOVER?this.constructor.eventName(EVENT_MOUSEENTER):this.constructor.eventName(EVENT_FOCUSIN$1),o=t===TRIGGER_HOVER?this.constructor.eventName(EVENT_MOUSELEAVE):this.constructor.eventName(EVENT_FOCUSOUT$1);EventHandler.on(this._element,r,this._config.selector,s=>{const l=this._initializeOnDelegatedTarget(s);l._activeTrigger[s.type==="focusin"?TRIGGER_FOCUS:TRIGGER_HOVER]=!0,l._enter()}),EventHandler.on(this._element,o,this._config.selector,s=>{const l=this._initializeOnDelegatedTarget(s);l._activeTrigger[s.type==="focusout"?TRIGGER_FOCUS:TRIGGER_HOVER]=l._element.contains(s.relatedTarget),l._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},EventHandler.on(this._element.closest(SELECTOR_MODAL),EVENT_MODAL_HIDE,this._hideModalHandler)}_fixTitle(){const e=this._element.getAttribute("title");e&&(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",e),this._element.setAttribute("data-bs-original-title",e),this._element.removeAttribute("title"))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(e,t){clearTimeout(this._timeout),this._timeout=setTimeout(e,t)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){const t=Manipulator.getDataAttributes(this._element);for(const r of Object.keys(t))DISALLOWED_ATTRIBUTES.has(r)&&delete t[r];return e={...t,...typeof e=="object"&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=e.container===!1?document.body:getElement(e.container),typeof e.delay=="number"&&(e.delay={show:e.delay,hide:e.delay}),typeof e.title=="number"&&(e.title=e.title.toString()),typeof e.content=="number"&&(e.content=e.content.toString()),e}_getDelegateConfig(){const e={};for(const[t,r]of Object.entries(this._config))this.constructor.Default[t]!==r&&(e[t]=r);return e.selector=!1,e.trigger="manual",e}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(e){return this.each(function(){const t=Tooltip.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof t[e]>"u")throw new TypeError(`No method named "${e}"`);t[e]()}})}}defineJQueryPlugin(Tooltip);const NAME$3="popover",SELECTOR_TITLE=".popover-header",SELECTOR_CONTENT=".popover-body",Default$2={...Tooltip.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},DefaultType$2={...Tooltip.DefaultType,content:"(null|string|element|function)"};class Popover extends Tooltip{static get Default(){return Default$2}static get DefaultType(){return DefaultType$2}static get NAME(){return NAME$3}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[SELECTOR_TITLE]:this._getTitle(),[SELECTOR_CONTENT]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each(function(){const t=Popover.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof t[e]>"u")throw new TypeError(`No method named "${e}"`);t[e]()}})}}defineJQueryPlugin(Popover);const NAME$2="scrollspy",DATA_KEY$2="bs.scrollspy",EVENT_KEY$2=`.${DATA_KEY$2}`,DATA_API_KEY=".data-api",EVENT_ACTIVATE=`activate${EVENT_KEY$2}`,EVENT_CLICK=`click${EVENT_KEY$2}`,EVENT_LOAD_DATA_API$1=`load${EVENT_KEY$2}${DATA_API_KEY}`,CLASS_NAME_DROPDOWN_ITEM="dropdown-item",CLASS_NAME_ACTIVE$1="active",SELECTOR_DATA_SPY='[data-bs-spy="scroll"]',SELECTOR_TARGET_LINKS="[href]",SELECTOR_NAV_LIST_GROUP=".nav, .list-group",SELECTOR_NAV_LINKS=".nav-link",SELECTOR_NAV_ITEMS=".nav-item",SELECTOR_LIST_ITEMS=".list-group-item",SELECTOR_LINK_ITEMS=`${SELECTOR_NAV_LINKS}, ${SELECTOR_NAV_ITEMS} > ${SELECTOR_NAV_LINKS}, ${SELECTOR_LIST_ITEMS}`,SELECTOR_DROPDOWN=".dropdown",SELECTOR_DROPDOWN_TOGGLE$1=".dropdown-toggle",Default$1={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},DefaultType$1={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class ScrollSpy extends BaseComponent{constructor(e,t){super(e,t),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return Default$1}static get DefaultType(){return DefaultType$1}static get NAME(){return NAME$2}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=getElement(e.target)||document.body,e.rootMargin=e.offset?`${e.offset}px 0px -30%`:e.rootMargin,typeof e.threshold=="string"&&(e.threshold=e.threshold.split(",").map(t=>Number.parseFloat(t))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(EventHandler.off(this._config.target,EVENT_CLICK),EventHandler.on(this._config.target,EVENT_CLICK,SELECTOR_TARGET_LINKS,e=>{const t=this._observableSections.get(e.target.hash);if(t){e.preventDefault();const r=this._rootElement||window,o=t.offsetTop-this._element.offsetTop;if(r.scrollTo){r.scrollTo({top:o,behavior:"smooth"});return}r.scrollTop=o}}))}_getNewObserver(){const e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(t=>this._observerCallback(t),e)}_observerCallback(e){const t=l=>this._targetLinks.get(`#${l.target.id}`),r=l=>{this._previousScrollData.visibleEntryTop=l.target.offsetTop,this._process(t(l))},o=(this._rootElement||document.documentElement).scrollTop,s=o>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=o;for(const l of e){if(!l.isIntersecting){this._activeTarget=null,this._clearActiveClass(t(l));continue}const f=l.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(s&&f){if(r(l),!o)return;continue}!s&&!f&&r(l)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const e=SelectorEngine.find(SELECTOR_TARGET_LINKS,this._config.target);for(const t of e){if(!t.hash||isDisabled(t))continue;const r=SelectorEngine.findOne(decodeURI(t.hash),this._element);isVisible(r)&&(this._targetLinks.set(decodeURI(t.hash),t),this._observableSections.set(t.hash,r))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(CLASS_NAME_ACTIVE$1),this._activateParents(e),EventHandler.trigger(this._element,EVENT_ACTIVATE,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains(CLASS_NAME_DROPDOWN_ITEM)){SelectorEngine.findOne(SELECTOR_DROPDOWN_TOGGLE$1,e.closest(SELECTOR_DROPDOWN)).classList.add(CLASS_NAME_ACTIVE$1);return}for(const t of SelectorEngine.parents(e,SELECTOR_NAV_LIST_GROUP))for(const r of SelectorEngine.prev(t,SELECTOR_LINK_ITEMS))r.classList.add(CLASS_NAME_ACTIVE$1)}_clearActiveClass(e){e.classList.remove(CLASS_NAME_ACTIVE$1);const t=SelectorEngine.find(`${SELECTOR_TARGET_LINKS}.${CLASS_NAME_ACTIVE$1}`,e);for(const r of t)r.classList.remove(CLASS_NAME_ACTIVE$1)}static jQueryInterface(e){return this.each(function(){const t=ScrollSpy.getOrCreateInstance(this,e);if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e]()}})}}EventHandler.on(window,EVENT_LOAD_DATA_API$1,()=>{for(const n of SelectorEngine.find(SELECTOR_DATA_SPY))ScrollSpy.getOrCreateInstance(n)});defineJQueryPlugin(ScrollSpy);const NAME$1="tab",DATA_KEY$1="bs.tab",EVENT_KEY$1=`.${DATA_KEY$1}`,EVENT_HIDE$1=`hide${EVENT_KEY$1}`,EVENT_HIDDEN$1=`hidden${EVENT_KEY$1}`,EVENT_SHOW$1=`show${EVENT_KEY$1}`,EVENT_SHOWN$1=`shown${EVENT_KEY$1}`,EVENT_CLICK_DATA_API=`click${EVENT_KEY$1}`,EVENT_KEYDOWN=`keydown${EVENT_KEY$1}`,EVENT_LOAD_DATA_API=`load${EVENT_KEY$1}`,ARROW_LEFT_KEY="ArrowLeft",ARROW_RIGHT_KEY="ArrowRight",ARROW_UP_KEY="ArrowUp",ARROW_DOWN_KEY="ArrowDown",HOME_KEY="Home",END_KEY="End",CLASS_NAME_ACTIVE="active",CLASS_NAME_FADE$1="fade",CLASS_NAME_SHOW$1="show",CLASS_DROPDOWN="dropdown",SELECTOR_DROPDOWN_TOGGLE=".dropdown-toggle",SELECTOR_DROPDOWN_MENU=".dropdown-menu",NOT_SELECTOR_DROPDOWN_TOGGLE=`:not(${SELECTOR_DROPDOWN_TOGGLE})`,SELECTOR_TAB_PANEL='.list-group, .nav, [role="tablist"]',SELECTOR_OUTER=".nav-item, .list-group-item",SELECTOR_INNER=`.nav-link${NOT_SELECTOR_DROPDOWN_TOGGLE}, .list-group-item${NOT_SELECTOR_DROPDOWN_TOGGLE}, [role="tab"]${NOT_SELECTOR_DROPDOWN_TOGGLE}`,SELECTOR_DATA_TOGGLE='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',SELECTOR_INNER_ELEM=`${SELECTOR_INNER}, ${SELECTOR_DATA_TOGGLE}`,SELECTOR_DATA_TOGGLE_ACTIVE=`.${CLASS_NAME_ACTIVE}[data-bs-toggle="tab"], .${CLASS_NAME_ACTIVE}[data-bs-toggle="pill"], .${CLASS_NAME_ACTIVE}[data-bs-toggle="list"]`;class Tab extends BaseComponent{constructor(e){super(e),this._parent=this._element.closest(SELECTOR_TAB_PANEL),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),EventHandler.on(this._element,EVENT_KEYDOWN,t=>this._keydown(t)))}static get NAME(){return NAME$1}show(){const e=this._element;if(this._elemIsActive(e))return;const t=this._getActiveElem(),r=t?EventHandler.trigger(t,EVENT_HIDE$1,{relatedTarget:e}):null;EventHandler.trigger(e,EVENT_SHOW$1,{relatedTarget:t}).defaultPrevented||r&&r.defaultPrevented||(this._deactivate(t,e),this._activate(e,t))}_activate(e,t){if(!e)return;e.classList.add(CLASS_NAME_ACTIVE),this._activate(SelectorEngine.getElementFromSelector(e));const r=()=>{if(e.getAttribute("role")!=="tab"){e.classList.add(CLASS_NAME_SHOW$1);return}e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),EventHandler.trigger(e,EVENT_SHOWN$1,{relatedTarget:t})};this._queueCallback(r,e,e.classList.contains(CLASS_NAME_FADE$1))}_deactivate(e,t){if(!e)return;e.classList.remove(CLASS_NAME_ACTIVE),e.blur(),this._deactivate(SelectorEngine.getElementFromSelector(e));const r=()=>{if(e.getAttribute("role")!=="tab"){e.classList.remove(CLASS_NAME_SHOW$1);return}e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),EventHandler.trigger(e,EVENT_HIDDEN$1,{relatedTarget:t})};this._queueCallback(r,e,e.classList.contains(CLASS_NAME_FADE$1))}_keydown(e){if(![ARROW_LEFT_KEY,ARROW_RIGHT_KEY,ARROW_UP_KEY,ARROW_DOWN_KEY,HOME_KEY,END_KEY].includes(e.key))return;e.stopPropagation(),e.preventDefault();const t=this._getChildren().filter(o=>!isDisabled(o));let r;if([HOME_KEY,END_KEY].includes(e.key))r=t[e.key===HOME_KEY?0:t.length-1];else{const o=[ARROW_RIGHT_KEY,ARROW_DOWN_KEY].includes(e.key);r=getNextActiveElement(t,e.target,o,!0)}r&&(r.focus({preventScroll:!0}),Tab.getOrCreateInstance(r).show())}_getChildren(){return SelectorEngine.find(SELECTOR_INNER_ELEM,this._parent)}_getActiveElem(){return this._getChildren().find(e=>this._elemIsActive(e))||null}_setInitialAttributes(e,t){this._setAttributeIfNotExists(e,"role","tablist");for(const r of t)this._setInitialAttributesOnChild(r)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);const t=this._elemIsActive(e),r=this._getOuterElement(e);e.setAttribute("aria-selected",t),r!==e&&this._setAttributeIfNotExists(r,"role","presentation"),t||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){const t=SelectorEngine.getElementFromSelector(e);t&&(this._setAttributeIfNotExists(t,"role","tabpanel"),e.id&&this._setAttributeIfNotExists(t,"aria-labelledby",`${e.id}`))}_toggleDropDown(e,t){const r=this._getOuterElement(e);if(!r.classList.contains(CLASS_DROPDOWN))return;const o=(s,l)=>{const f=SelectorEngine.findOne(s,r);f&&f.classList.toggle(l,t)};o(SELECTOR_DROPDOWN_TOGGLE,CLASS_NAME_ACTIVE),o(SELECTOR_DROPDOWN_MENU,CLASS_NAME_SHOW$1),r.setAttribute("aria-expanded",t)}_setAttributeIfNotExists(e,t,r){e.hasAttribute(t)||e.setAttribute(t,r)}_elemIsActive(e){return e.classList.contains(CLASS_NAME_ACTIVE)}_getInnerElement(e){return e.matches(SELECTOR_INNER_ELEM)?e:SelectorEngine.findOne(SELECTOR_INNER_ELEM,e)}_getOuterElement(e){return e.closest(SELECTOR_OUTER)||e}static jQueryInterface(e){return this.each(function(){const t=Tab.getOrCreateInstance(this);if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e]()}})}}EventHandler.on(document,EVENT_CLICK_DATA_API,SELECTOR_DATA_TOGGLE,function(n){["A","AREA"].includes(this.tagName)&&n.preventDefault(),!isDisabled(this)&&Tab.getOrCreateInstance(this).show()});EventHandler.on(window,EVENT_LOAD_DATA_API,()=>{for(const n of SelectorEngine.find(SELECTOR_DATA_TOGGLE_ACTIVE))Tab.getOrCreateInstance(n)});defineJQueryPlugin(Tab);const NAME="toast",DATA_KEY="bs.toast",EVENT_KEY=`.${DATA_KEY}`,EVENT_MOUSEOVER=`mouseover${EVENT_KEY}`,EVENT_MOUSEOUT=`mouseout${EVENT_KEY}`,EVENT_FOCUSIN=`focusin${EVENT_KEY}`,EVENT_FOCUSOUT=`focusout${EVENT_KEY}`,EVENT_HIDE=`hide${EVENT_KEY}`,EVENT_HIDDEN=`hidden${EVENT_KEY}`,EVENT_SHOW=`show${EVENT_KEY}`,EVENT_SHOWN=`shown${EVENT_KEY}`,CLASS_NAME_FADE="fade",CLASS_NAME_HIDE="hide",CLASS_NAME_SHOW="show",CLASS_NAME_SHOWING="showing",DefaultType={animation:"boolean",autohide:"boolean",delay:"number"},Default={animation:!0,autohide:!0,delay:5e3};class Toast extends BaseComponent{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return Default}static get DefaultType(){return DefaultType}static get NAME(){return NAME}show(){if(EventHandler.trigger(this._element,EVENT_SHOW).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(CLASS_NAME_FADE);const t=()=>{this._element.classList.remove(CLASS_NAME_SHOWING),EventHandler.trigger(this._element,EVENT_SHOWN),this._maybeScheduleHide()};this._element.classList.remove(CLASS_NAME_HIDE),reflow(this._element),this._element.classList.add(CLASS_NAME_SHOW,CLASS_NAME_SHOWING),this._queueCallback(t,this._element,this._config.animation)}hide(){if(!this.isShown()||EventHandler.trigger(this._element,EVENT_HIDE).defaultPrevented)return;const t=()=>{this._element.classList.add(CLASS_NAME_HIDE),this._element.classList.remove(CLASS_NAME_SHOWING,CLASS_NAME_SHOW),EventHandler.trigger(this._element,EVENT_HIDDEN)};this._element.classList.add(CLASS_NAME_SHOWING),this._queueCallback(t,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(CLASS_NAME_SHOW),super.dispose()}isShown(){return this._element.classList.contains(CLASS_NAME_SHOW)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(e,t){switch(e.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=t;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=t;break}}if(t){this._clearTimeout();return}const r=e.relatedTarget;this._element===r||this._element.contains(r)||this._maybeScheduleHide()}_setListeners(){EventHandler.on(this._element,EVENT_MOUSEOVER,e=>this._onInteraction(e,!0)),EventHandler.on(this._element,EVENT_MOUSEOUT,e=>this._onInteraction(e,!1)),EventHandler.on(this._element,EVENT_FOCUSIN,e=>this._onInteraction(e,!0)),EventHandler.on(this._element,EVENT_FOCUSOUT,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each(function(){const t=Toast.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof t[e]>"u")throw new TypeError(`No method named "${e}"`);t[e](this)}})}}enableDismissTrigger(Toast);defineJQueryPlugin(Toast);class AutoLookUpAction{constructor(){F(this,"name");F(this,"actionProps");F(this,"props");F(this,"makeQuery",(e,t)=>{if(typeof t=="number")return`${e.code} = ${t}`;if(typeof t=="string")return`${e.code} = "${t}"`});F(this,"getUpdateRecords",async(e,t)=>await new index_browser.KintoneRestAPIClient().record.getAllRecords({app:this.props.lookupField.app.id,fields:["$id"],condition:this.makeQuery(e,t)}));F(this,"convertForLookup",(e,t,r)=>e.map(o=>({id:Number(o.$id.value),record:{[t.code]:{value:r}}})));F(this,"updateLookupTarget",async e=>{e&&e.length>0&&new index_browser.KintoneRestAPIClient().record.updateAllRecords({app:this.props.lookupField.app.id,records:e})});F(this,"showSpinnerModel",e=>{let t=$("#alcLookupModal");if(t.length===0){const r=`
|
||
<div class="modal" id="alcLookupModal" tabindex="-1" aria-labelledby="staticBackdropLabel" aria-hidden="true">
|
||
<div class="modal-dialog-centered">
|
||
<div class="modal-dialog modal-content">
|
||
<div class="modal-header">
|
||
<h1 class="modal-title fs-5" id="alcLookupModalLabel">ルックアップ同期処理</h1>
|
||
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
|
||
</div>
|
||
<div class="modal-body">
|
||
<div class="row" id="app${e.id}">
|
||
<div class="spinner-border text-secondary col-1 " role="alert"></div>
|
||
<div class="col">${e.name}</div>
|
||
</div>
|
||
</div>
|
||
<div class="modal-footer">
|
||
<button type="button" class="btn btn-primary" data-bs-dismiss="modal">OK</button>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>`;t=$(r).appendTo("body"),t.get()[0].addEventListener("hidden.bs.modal",o=>{Modal.getOrCreateInstance(t.get()[0]).dispose(),$("#alcLookupModal").remove()})}else{const r=$("#alcLookupModal .modal-body"),o=`
|
||
<div class="row" id="app${e.id}">
|
||
<div class="spinner-border text-secondary col-1 " role="alert">
|
||
</div>
|
||
<div class="col">${e.name}</div>
|
||
<div>`;r.append(o)}Modal.getOrCreateInstance(t.get()[0]).show()});F(this,"showResult",(e,t)=>{const r=$(`#alcLookupModal .modal-body #app${e.id}`),o=` <div class="col-1 text-success">✔</div>
|
||
<div class="col">${e.name}</div>
|
||
<div class="col">更新件数:${t}件</div>`;r.html(o)});this.name="ルックアップ更新",this.actionProps=[],this.props={},this.register()}async process(e,t,r){this.actionProps=e.actionProps,this.props={...e.ActionValue,condition:JSON.parse(e.ActionValue.condition)};let o={canNext:!0,result:""};try{const s=this.props.lookupField.fields.filter(g=>g.lookup&&g.lookup.relatedApp.app===String(kintone.app.getId()));if(!s||s.length===0)throw new Error(`ルックアップの設定は不正です。${this.props.lookupField.fields[0].label} `);const l=this.props.lookupField.fields[0],f=t.record[l.lookup.relatedKeyField].value,E=await this.getUpdateRecords(l,f);if(E.length===0)return o;const d=this.convertForLookup(E,l,f);console.log("updateRecords",d),this.showSpinnerModel(this.props.lookupField.app),await this.updateLookupTarget(d),this.showResult(this.props.lookupField.app,d.length)}catch(s){console.error("ルックアップ更新中例外が発生しました。",s),s instanceof Error?t.error=s.message:t.error="ルックアップ更新中例外が発生しました。",o.canNext=!1}return console.log("autoLookupProps",this.props),o}register(){actionAddins[this.name]=this}}new AutoLookUpAction;class ActionProcess{constructor(e,t,r){F(this,"eventId");F(this,"flow");F(this,"event");F(this,"context");this.eventId=e,this.flow=t,this.event=r,this.context={record:this.event.record,variables:{}}}async exec(){const e=this.flow.getRoot();if(e===void 0||e.nextNodeIds.size===0)return;let t=e.nextNodeIds.get("");if(t===void 0)return;let r=this.flow.findNodeById(t),o={canNext:!0};for(;r!==void 0&&o.canNext;){const s=actionAddins[r.name];s!==void 0&&(o=await s.process(r,this.event,this.context));let l="";if(r.outputPoints&&r.outputPoints.length>1&&(l=o.result||""),t=r.nextNodeIds.get(l),t===void 0)return;r=this.flow.findNodeById(t)}}}class ActionProperty{constructor(e,t,r,o,s){F(this,"component");F(this,"props");this.component=e,this.props={name:t,displayName:r,placeholder:o,modelValue:s}}static defaultProperty(){return new ActionProperty("InputText","displayName","表示名","表示を入力してください","")}}class ActionNode{constructor({id:e,name:t,title:r,inputPoint:o,outputPoints:s,actionProps:l}){F(this,"id");F(this,"name");F(this,"inputPoint");F(this,"outputPoints");F(this,"actionProps");F(this,"prevNodeId");F(this,"nextNodeIds");this.id=e,this.name=t,this.inputPoint=o,this.outputPoints=s;const f=ActionProperty.defaultProperty();f.props.modelValue=r,this.actionProps=l,this.nextNodeIds=new Map}get title(){const e=this.actionProps.find(t=>t.props.name==="displayName");return e==null?void 0:e.props.modelValue}get subTitle(){return this.name}get isRoot(){return!1}get ActionValue(){const e={};return this.actionProps.forEach(t=>{e[t.props.name]=t.props.modelValue}),e}}class RootAction{constructor({id:e,name:t,title:r,subTitle:o}){F(this,"id");F(this,"name");F(this,"title");F(this,"subTitle");F(this,"inputPoint");F(this,"outputPoints");F(this,"isRoot");F(this,"actionProps");F(this,"ActionValue");F(this,"prevNodeId");F(this,"nextNodeIds");this.id=e,this.name=t,this.title=r,this.subTitle=o,this.inputPoint="",this.outputPoints=[],this.isRoot=!0,this.actionProps=[],this.ActionValue={},this.nextNodeIds=new Map}}class ActionFlow{constructor(e){F(this,"id");F(this,"actionNodes");e instanceof Array?this.actionNodes=e:this.actionNodes=[e],this.id=""}findNodeById(e){return this.actionNodes.find(t=>t.id===e)}toJSON(){return{id:this.id,actionNodes:this.actionNodes.map(e=>{const{nextNodeIds:t,...r}=e;return{...r,nextNodeIds:Array.from(t.entries())}})}}getRoot(){return this.actionNodes.find(e=>e.isRoot)}static fromJSON(e){const t=JSON.parse(e),r=t.actionNodes.map(s=>{const l=s.isRoot?new RootAction(s):new ActionNode(s);return l.nextNodeIds=new Map(Object.entries(s.nextNodeIds)),l.prevNodeId=s.prevNodeId,l.id=s.id,l}),o=new ActionFlow(r);return o.id=t.id,o}}$(function(){const n=f=>f.filter(E=>E.includes(".change.")),e=f=>f.filter(E=>E.includes(".customButtonClick.")),t=f=>f.filter(E=>!E.includes(".customButtonClick.")&&!E.includes(".change.")),r=Object.keys(alcflow),o=n(r),s=e(r),l=t(r);l.length>0&&kintone.events.on(l,async f=>{const E=alcflow[f.type],d=ActionFlow.fromJSON(E.content);return d!==void 0&&await new ActionProcess(f.type,d,f).exec(),f}),o.length>0&&kintone.events.on(o,f=>{const E=alcflow[f.type],d=ActionFlow.fromJSON(E.content);return d!==void 0&&new ActionProcess(f.type,d,f).exec(),f}),s.length>0&&s.forEach(f=>{$(document).on(f,async()=>{const E=kintone.app.record.get(),d=alcflow[f],g=ActionFlow.fromJSON(d.content);g!==void 0&&await new ActionProcess(f,g,E).exec();const y=E.record;kintone.app.record.set({record:y})})})});
|