@sitelintcode/optimize-image-on-the-client-side 0.0.44 → 0.0.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/interfaces/optimize-image-on-the-client-side.interfaces.d.ts +4 -0
- package/dist/optimize-image-on-the-client-side.d.ts +5 -4
- package/dist/optimize-image-on-the-client-side.js +30 -1
- package/dist/optimize-image-on-the-client-side.mjs +30 -1
- package/dist/utilities/common.utilities.d.ts +5 -0
- package/package.json +35 -35
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import '@ungap/global-this';
|
|
2
|
+
import 'jquery';
|
|
3
|
+
export declare class OptimizeImage {
|
|
2
4
|
private inputTypeFileHandlerReference;
|
|
3
5
|
private customInputElements;
|
|
4
6
|
private onCompressionDoneCallback;
|
|
@@ -14,10 +16,9 @@ declare class OptimizeImage {
|
|
|
14
16
|
private compressImage;
|
|
15
17
|
private redispatchEvent;
|
|
16
18
|
private processImages;
|
|
19
|
+
private handlejQueryChangeEvent;
|
|
17
20
|
private handleChangeEvent;
|
|
18
21
|
addImageOptimization(cssQuerySelector: string): void;
|
|
19
22
|
uninstall(): void;
|
|
20
|
-
install(cssQuerySelector?: string | undefined, onCompressionDoneCallback?:
|
|
23
|
+
install(cssQuerySelector?: string | undefined, onCompressionDoneCallback?: ((originalFiles: FileList | null, compressedFiles: FileList) => void), quality?: number): void;
|
|
21
24
|
}
|
|
22
|
-
|
|
23
|
-
export { OptimizeImage };
|
|
@@ -1 +1,30 @@
|
|
|
1
|
-
|
|
1
|
+
(function(we,Ee){typeof exports=="object"&&typeof module<"u"?Ee(exports):typeof define=="function"&&define.amd?define(["exports"],Ee):(we=typeof globalThis<"u"?globalThis:we||self,Ee(we.sitelint={}))})(this,(function(we){"use strict";(function(b){typeof globalThis!="object"&&(this?g():(b.defineProperty(b.prototype,"_T_",{configurable:!0,get:g}),_T_));function g(){var A=this||self;A.globalThis=A,delete b.prototype._T_}})(Object);/*!
|
|
2
|
+
* jQuery JavaScript Library v4.1.0
|
|
3
|
+
* https://jquery.com/
|
|
4
|
+
*
|
|
5
|
+
* Copyright OpenJS Foundation and other contributors
|
|
6
|
+
* Released under the MIT license
|
|
7
|
+
* https://jquery.com/license/
|
|
8
|
+
*
|
|
9
|
+
* Date: 2026-11-17T18:40Z
|
|
10
|
+
*/function Ee(b,g){if(typeof b>"u"||!b.document)throw new Error("jQuery requires a window with a document");var A=[],k=Object.getPrototypeOf,w=A.slice,O=A.flat?function(e){return A.flat.call(e)}:function(e){return A.concat.apply([],e)},P=A.push,M=A.indexOf,Q={},Fe=Q.toString,le=Q.hasOwnProperty,R=le.toString,Se=R.call(Object),ee={};function De(e){return e==null?e+"":typeof e=="object"?Q[Fe.call(e)]||"object":typeof e}function je(e){return e!=null&&e===e.window}function Qe(e){var t=!!e&&e.length,n=De(e);return typeof e=="function"||je(e)?!1:n==="array"||t===0||typeof t=="number"&&t>0&&t-1 in e}var N=b.document,On={type:!0,src:!0,nonce:!0,noModule:!0};function kt(e,t,n){n=n||N;var i,o=n.createElement("script");o.text=e;for(i in On)t&&t[i]&&(o[i]=t[i]);n.head.appendChild(o).parentNode&&o.parentNode.removeChild(o)}var It="4.1.0",Rn=/HTML$/i,r=function(e,t){return new r.fn.init(e,t)};r.fn=r.prototype={jquery:It,constructor:r,length:0,toArray:function(){return w.call(this)},get:function(e){return e==null?w.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=r.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return r.each(this,e)},map:function(e){return this.pushStack(r.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(w.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(r.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(r.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()}},r.extend=r.fn.extend=function(){var e,t,n,i,o,s,u=arguments[0]||{},a=1,f=arguments.length,c=!1;for(typeof u=="boolean"&&(c=u,u=arguments[a]||{},a++),typeof u!="object"&&typeof u!="function"&&(u={}),a===f&&(u=this,a--);a<f;a++)if((e=arguments[a])!=null)for(t in e)i=e[t],!(t==="__proto__"||u===i)&&(c&&i&&(r.isPlainObject(i)||(o=Array.isArray(i)))?(n=u[t],o&&!Array.isArray(n)?s=[]:!o&&!r.isPlainObject(n)?s={}:s=n,o=!1,u[t]=r.extend(c,s,i)):i!==void 0&&(u[t]=i));return u},r.extend({expando:"jQuery"+(It+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!e||Fe.call(e)!=="[object Object]"?!1:(t=k(e),t?(n=le.call(t,"constructor")&&t.constructor,typeof n=="function"&&R.call(n)===Se):!0)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){kt(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,i=0;if(Qe(e))for(n=e.length;i<n&&t.call(e[i],i,e[i])!==!1;i++);else for(i in e)if(t.call(e[i],i,e[i])===!1)break;return e},text:function(e){var t,n,i="",o=e.nodeType;if(!o)for(t=0;t<e.length;t++)n=e[t],i+=r.text(n);return o===1||o===11?e.textContent:o===9?e.documentElement.textContent:o===3||o===4?e.nodeValue:i},makeArray:function(e,t){var n=t||[];return e!=null&&(Qe(Object(e))?r.merge(n,typeof e=="string"?[e]:e):P.call(n,e)),n},inArray:function(e,t,n){return t==null?-1:M.call(t,e,n)},isXMLDoc:function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!Rn.test(t||n&&n.nodeName||"HTML")},contains:function(e,t){var n=t&&t.parentNode;return e===n||!!(n&&n.nodeType===1&&(e.contains?e.contains(n):e.compareDocumentPosition&&e.compareDocumentPosition(n)&16))},merge:function(e,t){for(var n=+t.length,i=0,o=e.length;i<n;i++)e[o++]=t[i];return e.length=o,e},grep:function(e,t,n){for(var i,o=[],s=0,u=e.length,a=!n;s<u;s++)i=!t(e[s],s),i!==a&&o.push(e[s]);return o},map:function(e,t,n){var i,o,s=0,u=[];if(Qe(e))for(i=e.length;s<i;s++)o=t(e[s],s,n),o!=null&&u.push(o);else for(s in e)o=t(e[s],s,n),o!=null&&u.push(o);return O(u)},guid:1,support:ee}),typeof Symbol=="function"&&(r.fn[Symbol.iterator]=A[Symbol.iterator]),r.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){Q["[object "+t+"]"]=t.toLowerCase()});function S(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var qn=A.pop,E="[\\x20\\t\\r\\n\\f]",Ne=/^--/,q=N.documentMode,We=q&&new RegExp(":enabled|:disabled|\\["+E+"*name"+E+"*="+E+`*(?:''|"")`),ke=new RegExp("^"+E+"+|((?:^|[^\\\\])(?:\\\\.)*)"+E+"+$","g"),Hn="\\\\[\\da-fA-F]{1,6}"+E+"?|\\\\[^\\da-fA-F\\r\\n\\f]",se="(?:"+Hn+"|[\\w-]|[^\\0-\\x7f])+",Ot=new RegExp("^"+E+"*([>+~]|"+E+")"+E+"*"),Pn=new RegExp(E+"|>"),st=/[+~]/,te=N.documentElement,Mn=te.matches||te.msMatchesSelector;function Ue(){var e=[];function t(n,i){return e.push(n+" ")>r.expr.cacheLength&&delete t[e.shift()],t[n+" "]=i}return t}function ut(e){return e&&typeof e.querySelectorAll<"u"&&e}var Rt="\\["+E+"*("+se+")(?:"+E+"*([*^$|!~]?=)"+E+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+se+"))|)"+E+"*\\]",qt=":("+se+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+Rt+")*)|.*)\\)|)",at={ID:new RegExp("^#("+se+")"),CLASS:new RegExp("^\\.("+se+")"),TAG:new RegExp("^("+se+"|[*])"),ATTR:new RegExp("^"+Rt),PSEUDO:new RegExp("^"+qt),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+E+"*(even|odd|(([+-]|)(\\d*)n|)"+E+"*(?:([+-]|)"+E+"*(\\d+)|))"+E+"*\\)|)","i")},Ln=new RegExp(qt),Bn=new RegExp("\\\\[\\da-fA-F]{1,6}"+E+"?|\\\\([^\\da-fA-F\\r\\n\\f])","g"),Fn=function(e,t){var n="0x"+e.slice(1)-0;return t||(!n||n>1114111||n>=55296&&n<57344?"\uFFFD":n<65536?String.fromCharCode(n):String.fromCharCode(n-65536>>10|55296,n-65536&1023|56320))};function ne(e){return e.replace(Bn,Fn)}function Ie(e){r.error("Syntax error, unrecognized expression: "+e)}var Qn=new RegExp("^"+E+"*,"+E+"*"),Ht=Ue();function Oe(e,t){var n,i,o,s,u,a,f,c=Ht[e+" "];if(c)return t?0:c.slice(0);for(u=e,a=[],f=r.expr.preFilter;u;){(!n||(i=Qn.exec(u)))&&(i&&(u=u.slice(i[0].length)||u),a.push(o=[])),n=!1,(i=Ot.exec(u))&&(n=i.shift(),o.push({value:n,type:i[0].replace(ke," ")}),u=u.slice(n.length));for(s in at)(i=r.expr.match[s].exec(u))&&(!f[s]||(i=f[s](i)))&&(n=i.shift(),o.push({value:n,type:s,matches:i}),u=u.slice(n.length));if(!n)break}return t?u.length:u?Ie(e):Ht(e,a).slice(0)}var Wn={ATTR:function(e){return e[1]=ne(e[1]),e[3]=ne(e[3]||e[4]||e[5]||""),e[2]==="~="&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),e[1].slice(0,3)==="nth"?(e[3]||Ie(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*(e[3]==="even"||e[3]==="odd")),e[5]=+(e[7]+e[8]||e[3]==="odd")):e[3]&&Ie(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return at.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&Ln.test(n)&&(t=Oe(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}};function Ge(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function V(e,t,n,i,o,s,u){var a=0,f=e.length,c=n==null;if(De(n)==="object"){o=!0;for(a in n)V(e,t,a,n[a],!0,s,u)}else if(i!==void 0&&(o=!0,typeof i!="function"&&(u=!0),c&&(u?(t.call(e,i),t=null):(c=t,t=function(p,d,l){return c.call(r(p),l)})),t))for(;a<f;a++)t(e[a],n,u?i:i.call(e[a],a,t(e[a],n)));return o?e:c?t.call(e):f?t(e[0],n):s}var _=/[^\x20\t\r\n\f]+/g;r.fn.extend({attr:function(e,t){return V(this,r.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){r.removeAttr(this,e)})}}),r.extend({attr:function(e,t,n){var i,o,s=e.nodeType;if(!(s===3||s===8||s===2)){if(typeof e.getAttribute>"u")return r.prop(e,t,n);if((s!==1||!r.isXMLDoc(e))&&(o=r.attrHooks[t.toLowerCase()]),n!==void 0){if(n===null||n===!1&&t.toLowerCase().indexOf("aria-")!==0){r.removeAttr(e,t);return}return o&&"set"in o&&(i=o.set(e,n,t))!==void 0?i:(e.setAttribute(t,n),n)}return o&&"get"in o&&(i=o.get(e,t))!==null?i:(i=e.getAttribute(t),i??void 0)}},attrHooks:{},removeAttr:function(e,t){var n,i=t&&t.match(_);if(i&&e.nodeType===1)for(n=0;n<i.length;n++)e.removeAttribute(i[n])}}),q&&(r.attrHooks.type={set:function(e,t){if(t==="radio"&&S(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}});var Un=/^-$|([\0-\x1f\x7f]|^-?\d)|[^\x80-\uFFFF\w-]/g;function Gn(e,t){return t?e==="\0"?"\uFFFD":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}r.escapeSelector=function(e){return(e+"").replace(Un,Gn)};var Yn=A.sort,Zn=A.splice,ft;function _n(e,t){if(e==t)return ft=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1,n&1?e==N||e.ownerDocument==N&&r.contains(N,e)?-1:t==N||t.ownerDocument==N&&r.contains(N,t)?1:0:n&4?-1:1)}r.uniqueSort=function(e){var t,n=1;if(ft=!1,Yn.call(e,_n),ft){for(t=1;t<e.length;t++)e[t]!==e[t-1]&&(e[n++]=e[t]);Array.isArray(e)?e.length=n:Zn.call(e,n)}return e},r.fn.uniqueSort=function(){return this.pushStack(r.uniqueSort(w.apply(this)))};var pe,Ye,F,Pt,X,K=0,Jn=0,Mt=Ue(),Lt=Ue(),Ze=Ue(),Vn=new RegExp(E+"+","g"),Xn=new RegExp("^"+se+"$"),Bt=r.extend({needsContext:new RegExp("^"+E+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+E+"*((?:-\\d)?\\d*)"+E+"*\\)|)(?=[^-]|$)","i")},at),Kn=/^(?:input|select|textarea|button)$/i,zn=/^h\d$/i,$n=/^(?:#([\w-]+)|(\.?[a-z][\w-]*))$/i,ei=function(){de()},ti=_e(function(e){return e.disabled===!0&&S(e,"fieldset")},{dir:"parentNode",next:"legend"});function U(e,t,n,i){var o,s,u,a,f,c,p,d=t&&t.ownerDocument,l=t?t.nodeType:9;if(n=n||[],typeof e!="string"||!e||l!==1&&l!==9&&l!==11)return n;if(!i&&(de(t),t=t||F,X)){if(l!==11&&(f=$n.exec(e))){if(o=f[1]){if(l===9)return(u=t.getElementById(o))&&P.call(n,u),n;if(d&&(u=d.getElementById(o))&&r.contains(t,u))return P.call(n,u),n}else if(f[2])return P.apply(n,t.querySelectorAll(e)),n}if(!Ze[e+" "]&&(!We||!We.test(e))){if(p=e,d=t,l===1&&(Pn.test(e)||Ot.test(e))){for(d=st.test(e)&&ut(t.parentNode)||t,(d!=t||q)&&((a=t.getAttribute("id"))?a=r.escapeSelector(a):t.setAttribute("id",a=r.expando)),c=Oe(e),s=c.length;s--;)c[s]=(a?"#"+a:":scope")+" "+Ge(c[s]);p=c.join(",")}try{return P.apply(n,d.querySelectorAll(p)),n}catch{Ze(e,!0)}finally{a===r.expando&&t.removeAttribute("id")}}}return Wt(e.replace(ke,"$1"),t,n,i)}function J(e){return e[r.expando]=!0,e}function ni(e){return function(t){return S(t,"input")&&t.type===e}}function ii(e){return function(t){return(S(t,"input")||S(t,"button"))&&t.type===e}}function Ft(e){return function(t){return"form"in t?t.parentNode&&t.disabled===!1?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&ti(t)===e:t.disabled===e:"label"in t?t.disabled===e:!1}}function ue(e){return J(function(t){return t=+t,J(function(n,i){for(var o,s=e([],n.length,t),u=s.length;u--;)n[o=s[u]]&&(n[o]=!(i[o]=n[o]))})})}function de(e){var t,n=e?e.ownerDocument||e:N;n==F||n.nodeType!==9||(F=n,Pt=F.documentElement,X=!r.isXMLDoc(F),q&&N!=F&&(t=F.defaultView)&&t.top!==t&&t.addEventListener("unload",ei))}U.matches=function(e,t){return U(e,null,null,t)},U.matchesSelector=function(e,t){if(de(e),X&&!Ze[t+" "]&&(!We||!We.test(t)))try{return Mn.call(e,t)}catch{Ze(t,!0)}return U(t,F,null,[e]).length>0},r.expr={cacheLength:50,createPseudo:J,match:Bt,find:{ID:function(e,t){if(typeof t.getElementById<"u"&&X){var n=t.getElementById(e);return n?[n]:[]}},TAG:function(e,t){return q&&Ne.test(e)?[]:t.querySelectorAll(e==="*"?e:r.escapeSelector(e))},CLASS:function(e,t){if(X)return q&&Ne.test(e)?t.getElementsByClassName(e):t.querySelectorAll("."+r.escapeSelector(e))}},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:Wn,filter:{ID:function(e){var t=ne(e);return function(n){return n.getAttribute("id")===t}},TAG:function(e){var t=ne(e).toLowerCase();return e==="*"?function(){return!0}:function(n){return S(n,t)}},CLASS:function(e){var t=Mt[e+" "];return t||(t=new RegExp("(^|"+E+")"+e+"("+E+"|$)"))&&Mt(e,function(n){return t.test(typeof n.className=="string"&&n.className||typeof n.getAttribute<"u"&&n.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(i){var o=r.attr(i,e);return o==null?t==="!=":t?(o+="",t==="="?o===n:t==="!="?o!==n:t==="^="?n&&o.indexOf(n)===0:t==="*="?n&&o.indexOf(n)>-1:t==="$="?n&&o.slice(-n.length)===n:t==="~="?(" "+o.replace(Vn," ")+" ").indexOf(n)>-1:t==="|="?o===n||o.slice(0,n.length+1)===n+"-":!1):!0}},CHILD:function(e,t,n,i,o){var s=e.slice(0,3)!=="nth",u=e.slice(-4)!=="last",a=t==="of-type";return i===1&&o===0?function(f){return!!f.parentNode}:function(f,c,p){var d,l,h,y,v,x=s!==u?"nextSibling":"previousSibling",j=f.parentNode,D=a&&f.nodeName.toLowerCase(),Y=!p&&!a,H=!1;if(j){if(s){for(;x;){for(h=f;h=h[x];)if(a?S(h,D):h.nodeType===1)return!1;v=x=e==="only"&&!v&&"nextSibling"}return!0}if(v=[u?j.firstChild:j.lastChild],u&&Y){for(l=j[r.expando]||(j[r.expando]={}),d=l[e]||[],y=d[0]===K&&d[1],H=y&&d[2],h=y&&j.childNodes[y];h=++y&&h&&h[x]||(H=y=0)||v.pop();)if(h.nodeType===1&&++H&&h===f){l[e]=[K,y,H];break}}else if(Y&&(l=f[r.expando]||(f[r.expando]={}),d=l[e]||[],y=d[0]===K&&d[1],H=y),H===!1)for(;(h=++y&&h&&h[x]||(H=y=0)||v.pop())&&!((a?S(h,D):h.nodeType===1)&&++H&&(Y&&(l=h[r.expando]||(h[r.expando]={}),l[e]=[K,H]),h===f)););return H-=o,H===i||H%i===0&&H/i>=0}}},PSEUDO:function(e,t){var n=r.expr.pseudos[e]||r.expr.setFilters[e.toLowerCase()]||Ie("unsupported pseudo: "+e);return n[r.expando]?n(t):n}},pseudos:{not:J(function(e){var t=[],n=[],i=dt(e.replace(ke,"$1"));return i[r.expando]?J(function(o,s,u,a){for(var f,c=i(o,null,a,[]),p=o.length;p--;)(f=c[p])&&(o[p]=!(s[p]=f))}):function(o,s,u){return t[0]=o,i(t,null,u,n),t[0]=null,!n.pop()}}),has:J(function(e){return function(t){return U(e,t).length>0}}),contains:J(function(e){return e=ne(e),function(t){return(t.textContent||r.text(t)).indexOf(e)>-1}}),lang:J(function(e){return Xn.test(e||"")||Ie("unsupported lang: "+e),e=ne(e).toLowerCase(),function(t){var n;do if(n=X?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||n.indexOf(e+"-")===0;while((t=t.parentNode)&&t.nodeType===1);return!1}}),target:function(e){var t=b.location&&b.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===Pt},focus:function(e){return e===F.activeElement&&F.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},enabled:Ft(!1),disabled:Ft(!0),checked:function(e){return S(e,"input")&&!!e.checked||S(e,"option")&&!!e.selected},selected:function(e){return q&&e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.expr.pseudos.empty(e)},header:function(e){return zn.test(e.nodeName)},input:function(e){return Kn.test(e.nodeName)},button:function(e){return S(e,"input")&&e.type==="button"||S(e,"button")},text:function(e){return S(e,"input")&&e.type==="text"},first:ue(function(){return[0]}),last:ue(function(e,t){return[t-1]}),eq:ue(function(e,t,n){return[n<0?n+t:n]}),even:ue(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:ue(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:ue(function(e,t,n){var i;for(n<0?i=n+t:n>t?i=t:i=n;--i>=0;)e.push(i);return e}),gt:ue(function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e})}},r.expr.pseudos.nth=r.expr.pseudos.eq;for(pe in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.expr.pseudos[pe]=ni(pe);for(pe in{submit:!0,reset:!0})r.expr.pseudos[pe]=ii(pe);function Qt(){}Qt.prototype=r.expr.pseudos,r.expr.setFilters=new Qt;function _e(e,t,n){var i=t.dir,o=t.next,s=o||i,u=n&&s==="parentNode",a=Jn++;return t.first?function(f,c,p){for(;f=f[i];)if(f.nodeType===1||u)return e(f,c,p);return!1}:function(f,c,p){var d,l,h=[K,a];if(p){for(;f=f[i];)if((f.nodeType===1||u)&&e(f,c,p))return!0}else for(;f=f[i];)if(f.nodeType===1||u)if(l=f[r.expando]||(f[r.expando]={}),o&&S(f,o))f=f[i]||f;else{if((d=l[s])&&d[0]===K&&d[1]===a)return h[2]=d[2];if(l[s]=h,h[2]=e(f,c,p))return!0}return!1}}function ct(e){return e.length>1?function(t,n,i){for(var o=e.length;o--;)if(!e[o](t,n,i))return!1;return!0}:e[0]}function ri(e,t,n){for(var i=0,o=t.length;i<o;i++)U(e,t[i],n);return n}function Je(e,t,n,i,o){for(var s,u=[],a=0,f=e.length,c=t!=null;a<f;a++)(s=e[a])&&(!n||n(s,i,o))&&(u.push(s),c&&t.push(a));return u}function lt(e,t,n,i,o,s){return i&&!i[r.expando]&&(i=lt(i)),o&&!o[r.expando]&&(o=lt(o,s)),J(function(u,a,f,c){var p,d,l,h,y=[],v=[],x=a.length,j=u||ri(t||"*",f.nodeType?[f]:f,[]),D=e&&(u||!t)?Je(j,y,e,f,c):j;if(n?(h=o||(u?e:x||i)?[]:a,n(D,h,f,c)):h=D,i)for(p=Je(h,v),i(p,[],f,c),d=p.length;d--;)(l=p[d])&&(h[v[d]]=!(D[v[d]]=l));if(u){if(o||e){if(o){for(p=[],d=h.length;d--;)(l=h[d])&&p.push(D[d]=l);o(null,h=[],p,c)}for(d=h.length;d--;)(l=h[d])&&(p=o?M.call(u,l):y[d])>-1&&(u[p]=!(a[p]=l))}}else h=Je(h===a?h.splice(x,h.length):h),o?o(null,a,h,c):P.apply(a,h)})}function pt(e){for(var t,n,i,o=e.length,s=r.expr.relative[e[0].type],u=s||r.expr.relative[" "],a=s?1:0,f=_e(function(d){return d===t},u,!0),c=_e(function(d){return M.call(t,d)>-1},u,!0),p=[function(d,l,h){var y=!s&&(h||l!=Ye)||((t=l).nodeType?f(d,l,h):c(d,l,h));return t=null,y}];a<o;a++)if(n=r.expr.relative[e[a].type])p=[_e(ct(p),n)];else{if(n=r.expr.filter[e[a].type].apply(null,e[a].matches),n[r.expando]){for(i=++a;i<o&&!r.expr.relative[e[i].type];i++);return lt(a>1&&ct(p),a>1&&Ge(e.slice(0,a-1).concat({value:e[a-2].type===" "?"*":""})).replace(ke,"$1"),n,a<i&&pt(e.slice(a,i)),i<o&&pt(e=e.slice(i)),i<o&&Ge(e))}p.push(n)}return ct(p)}function oi(e,t){var n=t.length>0,i=e.length>0,o=function(s,u,a,f,c){var p,d=0,l="0",h=0,y=s&&[],v=[],x=Ye,j=s||i&&r.expr.find.TAG("*",c),D=K+=x==null?1:Math.random()||.1;for(c&&(Ye=u==F||u||c);l<j.length;l++){if(p=j[l],i&&p){for(!u&&p.ownerDocument!=F&&(de(p),a=!X),d=0;d<e.length;d++)if(e[d](p,u||F,a)){P.call(f,p);break}c&&(K=D)}n&&((p=d>=e.length&&p)&&h--,s&&y.push(p))}if(h+=l,n&&l!==h){for(d=0;d<t.length;d++)t[d](y,v,u,a);if(s){if(h>0)for(;l--;)y[l]||v[l]||(v[l]=qn.call(f));v=Je(v)}P.apply(f,v),c&&!s&&v.length>0&&h+t.length>1&&r.uniqueSort(f)}return c&&(K=D,Ye=x),y};return n?J(o):o}function dt(e,t){var n,i=[],o=[],s=Lt[e+" "];if(!s){for(t||(t=Oe(e)),n=t.length;n--;)s=pt(t[n]),s[r.expando]?i.push(s):o.push(s);s=Lt(e,oi(o,i)),s.selector=e}return s}function Wt(e,t,n,i){var o,s,u,a,f,c=typeof e=="function"&&e,p=!i&&Oe(e=c.selector||e);if(n=n||[],p.length===1){if(s=p[0]=p[0].slice(0),s.length>2&&(u=s[0]).type==="ID"&&t.nodeType===9&&X&&r.expr.relative[s[1].type]){if(t=(r.expr.find.ID(ne(u.matches[0]),t)||[])[0],t)c&&(t=t.parentNode);else return n;e=e.slice(s.shift().value.length)}for(o=Bt.needsContext.test(e)?0:s.length;o--&&(u=s[o],!r.expr.relative[a=u.type]);)if((f=r.expr.find[a])&&(i=f(ne(u.matches[0]),st.test(s[0].type)&&ut(t.parentNode)||t))){if(s.splice(o,1),e=i.length&&Ge(s),!e)return P.apply(n,i),n;break}}return(c||dt(e,p))(i,t,!X,n,!t||st.test(e)&&ut(t.parentNode)||t),n}de(),r.find=U,U.compile=dt,U.select=Wt,U.setDocument=de,U.tokenize=Oe;function he(e,t,n){for(var i=[],o=n!==void 0;(e=e[t])&&e.nodeType!==9;)if(e.nodeType===1){if(o&&r(e).is(n))break;i.push(e)}return i}function Ut(e,t){for(var n=[];e;e=e.nextSibling)e.nodeType===1&&e!==t&&n.push(e);return n}var Gt=r.expr.match.needsContext,Yt=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function Zt(e){return e[0]==="<"&&e[e.length-1]===">"&&e.length>=3}function ht(e,t,n){return typeof t=="function"?r.grep(e,function(i,o){return!!t.call(i,o,i)!==n}):t.nodeType?r.grep(e,function(i){return i===t!==n}):typeof t!="string"?r.grep(e,function(i){return M.call(t,i)>-1!==n}):r.filter(t,e,n)}r.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),t.length===1&&i.nodeType===1?r.find.matchesSelector(i,e)?[i]:[]:r.find.matches(e,r.grep(t,function(o){return o.nodeType===1}))},r.fn.extend({find:function(e){var t,n,i=this.length,o=this;if(typeof e!="string")return this.pushStack(r(e).filter(function(){for(t=0;t<i;t++)if(r.contains(o[t],this))return!0}));for(n=this.pushStack([]),t=0;t<i;t++)r.find(e,o[t],n);return i>1?r.uniqueSort(n):n},filter:function(e){return this.pushStack(ht(this,e||[],!1))},not:function(e){return this.pushStack(ht(this,e||[],!0))},is:function(e){return!!ht(this,typeof e=="string"&&Gt.test(e)?r(e):e||[],!1).length}});var Ve,si=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,ui=r.fn.init=function(e,t){var n,i;if(!e)return this;if(e.nodeType)return this[0]=e,this.length=1,this;if(typeof e=="function")return Ve.ready!==void 0?Ve.ready(e):e(r);if(n=e+"",Zt(n))n=[null,e,null];else if(typeof e=="string")n=si.exec(e);else return r.makeArray(e,this);if(n&&(n[1]||!t))if(n[1]){if(t=t instanceof r?t[0]:t,r.merge(this,r.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:N,!0)),Yt.test(n[1])&&r.isPlainObject(t))for(n in t)typeof this[n]=="function"?this[n](t[n]):this.attr(n,t[n]);return this}else return i=N.getElementById(n[2]),i&&(this[0]=i,this.length=1),this;else return!t||t.jquery?(t||Ve).find(e):this.constructor(t).find(e)};ui.prototype=r.fn,Ve=r(N);var ai=/^(?:parents|prev(?:Until|All))/,fi={children:!0,contents:!0,next:!0,prev:!0};r.fn.extend({has:function(e){var t=r(e,this),n=t.length;return this.filter(function(){for(var i=0;i<n;i++)if(r.contains(this,t[i]))return!0})},closest:function(e,t){var n,i=0,o=this.length,s=[],u=typeof e!="string"&&r(e);if(!Gt.test(e)){for(;i<o;i++)for(n=this[i];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(u?u.index(n)>-1:n.nodeType===1&&r.find.matchesSelector(n,e))){s.push(n);break}}return this.pushStack(s.length>1?r.uniqueSort(s):s)},index:function(e){return e?typeof e=="string"?M.call(r(e),this[0]):M.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(r.uniqueSort(r.merge(this.get(),r(e,t))))},addBack:function(e){return this.add(e==null?this.prevObject:this.prevObject.filter(e))}});function _t(e,t){for(;(e=e[t])&&e.nodeType!==1;);return e}r.each({parent:function(e){var t=e.parentNode;return t&&t.nodeType!==11?t:null},parents:function(e){return he(e,"parentNode")},parentsUntil:function(e,t,n){return he(e,"parentNode",n)},next:function(e){return _t(e,"nextSibling")},prev:function(e){return _t(e,"previousSibling")},nextAll:function(e){return he(e,"nextSibling")},prevAll:function(e){return he(e,"previousSibling")},nextUntil:function(e,t,n){return he(e,"nextSibling",n)},prevUntil:function(e,t,n){return he(e,"previousSibling",n)},siblings:function(e){return Ut((e.parentNode||{}).firstChild,e)},children:function(e){return Ut(e.firstChild)},contents:function(e){return e.contentDocument!=null&&k(e.contentDocument)?e.contentDocument:(S(e,"template")&&(e=e.content||e),r.merge([],e.childNodes))}},function(e,t){r.fn[e]=function(n,i){var o=r.map(this,t,n);return e.slice(-5)!=="Until"&&(i=n),i&&typeof i=="string"&&(o=r.filter(i,o)),this.length>1&&(fi[e]||r.uniqueSort(o),ai.test(e)&&o.reverse()),this.pushStack(o)}});function ci(e){var t={};return r.each(e.match(_)||[],function(n,i){t[i]=!0}),t}r.Callbacks=function(e){e=typeof e=="string"?ci(e):r.extend({},e);var t,n,i,o,s=[],u=[],a=-1,f=function(){for(o=o||e.once,i=t=!0;u.length;a=-1)for(n=u.shift();++a<s.length;)s[a].apply(n[0],n[1])===!1&&e.stopOnFalse&&(a=s.length,n=!1);e.memory||(n=!1),t=!1,o&&(n?s=[]:s="")},c={add:function(){return s&&(n&&!t&&(a=s.length-1,u.push(n)),(function p(d){r.each(d,function(l,h){typeof h=="function"?(!e.unique||!c.has(h))&&s.push(h):h&&h.length&&De(h)!=="string"&&p(h)})})(arguments),n&&!t&&f()),this},remove:function(){return r.each(arguments,function(p,d){for(var l;(l=r.inArray(d,s,l))>-1;)s.splice(l,1),l<=a&&a--}),this},has:function(p){return p?r.inArray(p,s)>-1:s.length>0},empty:function(){return s&&(s=[]),this},disable:function(){return o=u=[],s=n="",this},disabled:function(){return!s},lock:function(){return o=u=[],!n&&!t&&(s=n=""),this},locked:function(){return!!o},fireWith:function(p,d){return o||(d=d||[],d=[p,d.slice?d.slice():d],u.push(d),t||f()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!i}};return c};function ge(e){return e}function Xe(e){throw e}function Jt(e,t,n,i){var o;try{e&&typeof(o=e.promise)=="function"?o.call(e).done(t).fail(n):e&&typeof(o=e.then)=="function"?o.call(e,t,n):t.apply(void 0,[e].slice(i))}catch(s){n(s)}}r.extend({Deferred:function(e){var t=[["notify","progress",r.Callbacks("memory"),r.Callbacks("memory"),2],["resolve","done",r.Callbacks("once memory"),r.Callbacks("once memory"),0,"resolved"],["reject","fail",r.Callbacks("once memory"),r.Callbacks("once memory"),1,"rejected"]],n="pending",i={state:function(){return n},always:function(){return o.done(arguments).fail(arguments),this},catch:function(s){return i.then(null,s)},pipe:function(){var s=arguments;return r.Deferred(function(u){r.each(t,function(a,f){var c=typeof s[f[4]]=="function"&&s[f[4]];o[f[1]](function(){var p=c&&c.apply(this,arguments);p&&typeof p.promise=="function"?p.promise().progress(u.notify).done(u.resolve).fail(u.reject):u[f[0]+"With"](this,c?[p]:arguments)})}),s=null}).promise()},then:function(s,u,a){var f=0;function c(p,d,l,h){return function(){var y=this,v=arguments,x=function(){var D,Y;if(!(p<f)){if(D=l.apply(y,v),D===d.promise())throw new TypeError("Thenable self-resolution");Y=D&&(typeof D=="object"||typeof D=="function")&&D.then,typeof Y=="function"?h?Y.call(D,c(f,d,ge,h),c(f,d,Xe,h)):(f++,Y.call(D,c(f,d,ge,h),c(f,d,Xe,h),c(f,d,ge,d.notifyWith))):(l!==ge&&(y=void 0,v=[D]),(h||d.resolveWith)(y,v))}},j=h?x:function(){try{x()}catch(D){r.Deferred.exceptionHook&&r.Deferred.exceptionHook(D,j.error),p+1>=f&&(l!==Xe&&(y=void 0,v=[D]),d.rejectWith(y,v))}};p?j():(r.Deferred.getErrorHook&&(j.error=r.Deferred.getErrorHook()),b.setTimeout(j))}}return r.Deferred(function(p){t[0][3].add(c(0,p,typeof a=="function"?a:ge,p.notifyWith)),t[1][3].add(c(0,p,typeof s=="function"?s:ge)),t[2][3].add(c(0,p,typeof u=="function"?u:Xe))}).promise()},promise:function(s){return s!=null?r.extend(s,i):i}},o={};return r.each(t,function(s,u){var a=u[2],f=u[5];i[u[1]]=a.add,f&&a.add(function(){n=f},t[3-s][2].disable,t[3-s][3].disable,t[0][2].lock,t[0][3].lock),a.add(u[3].fire),o[u[0]]=function(){return o[u[0]+"With"](this===o?void 0:this,arguments),this},o[u[0]+"With"]=a.fireWith}),i.promise(o),e&&e.call(o,o),o},when:function(e){var t=arguments.length,n=t,i=Array(n),o=w.call(arguments),s=r.Deferred(),u=function(a){return function(f){i[a]=this,o[a]=arguments.length>1?w.call(arguments):f,--t||s.resolveWith(i,o)}};if(t<=1&&(Jt(e,s.done(u(n)).resolve,s.reject,!t),s.state()==="pending"||typeof(o[n]&&o[n].then)=="function"))return s.then();for(;n--;)Jt(o[n],u(n),s.reject);return s.promise()}});var li=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;r.Deferred.exceptionHook=function(e,t){e&&li.test(e.name)&&b.console.warn("jQuery.Deferred exception",e,t)},r.readyException=function(e){b.setTimeout(function(){throw e})};var gt=r.Deferred();r.fn.ready=function(e){return gt.then(e).catch(function(t){r.readyException(t)}),this},r.extend({isReady:!1,readyWait:1,ready:function(e){(e===!0?--r.readyWait:r.isReady)||(r.isReady=!0,!(e!==!0&&--r.readyWait>0)&>.resolveWith(N,[r]))}}),r.ready.then=gt.then;function Ke(){N.removeEventListener("DOMContentLoaded",Ke),b.removeEventListener("load",Ke),r.ready()}N.readyState!=="loading"?b.setTimeout(r.ready):(N.addEventListener("DOMContentLoaded",Ke),b.addEventListener("load",Ke));var pi=/-([a-z])/g;function di(e,t){return t.toUpperCase()}function ae(e){return e.replace(pi,di)}function Re(e){return e.nodeType===1||e.nodeType===9||!+e.nodeType}function qe(){this.expando=r.expando+qe.uid++}qe.uid=1,qe.prototype={cache:function(e){var t=e[this.expando];return t||(t=Object.create(null),Re(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var i,o=this.cache(e);if(typeof t=="string")o[ae(t)]=n;else for(i in t)o[ae(i)]=t[i];return n},get:function(e,t){return t===void 0?this.cache(e):e[this.expando]&&e[this.expando][ae(t)]},access:function(e,t,n){return t===void 0||t&&typeof t=="string"&&n===void 0?this.get(e,t):(this.set(e,t,n),n!==void 0?n:t)},remove:function(e,t){var n,i=e[this.expando];if(i!==void 0){if(t!==void 0)for(Array.isArray(t)?t=t.map(ae):(t=ae(t),t=t in i?[t]:t.match(_)||[]),n=t.length;n--;)delete i[t[n]];(t===void 0||r.isEmptyObject(i))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return t!==void 0&&!r.isEmptyObject(t)}};var m=new qe,L=new qe,hi=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,gi=/[A-Z]/g;function yi(e){return e==="true"?!0:e==="false"?!1:e==="null"?null:e===+e+""?+e:hi.test(e)?JSON.parse(e):e}function Vt(e,t,n){var i;if(n===void 0&&e.nodeType===1)if(i="data-"+t.replace(gi,"-$&").toLowerCase(),n=e.getAttribute(i),typeof n=="string"){try{n=yi(n)}catch{}L.set(e,t,n)}else n=void 0;return n}r.extend({hasData:function(e){return L.hasData(e)||m.hasData(e)},data:function(e,t,n){return L.access(e,t,n)},removeData:function(e,t){L.remove(e,t)},_data:function(e,t,n){return m.access(e,t,n)},_removeData:function(e,t){m.remove(e,t)}}),r.fn.extend({data:function(e,t){var n,i,o,s=this[0],u=s&&s.attributes;if(e===void 0){if(this.length&&(o=L.get(s),s.nodeType===1&&!m.get(s,"hasDataAttrs"))){for(n=u.length;n--;)u[n]&&(i=u[n].name,i.indexOf("data-")===0&&(i=ae(i.slice(5)),Vt(s,i,o[i])));m.set(s,"hasDataAttrs",!0)}return o}return typeof e=="object"?this.each(function(){L.set(this,e)}):V(this,function(a){if(s&&a===void 0)return Vt(s,e,L.get(s,e));this.each(function(){L.set(this,e,a)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){L.remove(this,e)})}}),r.extend({queue:function(e,t,n){var i;if(e)return t=(t||"fx")+"queue",i=m.get(e,t),n&&(!i||Array.isArray(n)?i=m.set(e,t,r.makeArray(n)):i.push(n)),i||[]},dequeue:function(e,t){t=t||"fx";var n=r.queue(e,t),i=n.length,o=n.shift(),s=r._queueHooks(e,t),u=function(){r.dequeue(e,t)};o==="inprogress"&&(o=n.shift(),i--),o&&(t==="fx"&&n.unshift("inprogress"),delete s.stop,o.call(e,u,s)),!i&&s&&s.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return m.get(e,n)||m.set(e,n,{empty:r.Callbacks("once memory").add(function(){m.remove(e,[t+"queue",n])})})}}),r.fn.extend({queue:function(e,t){var n=2;return typeof e!="string"&&(t=e,e="fx",n--),arguments.length<n?r.queue(this[0],e):t===void 0?this:this.each(function(){var i=r.queue(this,e,t);r._queueHooks(this,e),e==="fx"&&i[0]!=="inprogress"&&r.dequeue(this,e)})},dequeue:function(e){return this.each(function(){r.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,i=1,o=r.Deferred(),s=this,u=this.length,a=function(){--i||o.resolveWith(s,[s])};for(typeof e!="string"&&(t=e,e=void 0),e=e||"fx";u--;)n=m.get(s[u],e+"queueHooks"),n&&n.empty&&(i++,n.empty.add(a));return a(),o.promise(t)}});var Xt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,He=new RegExp("^(?:([+-])=|)("+Xt+")([a-z%]*)$","i"),ie=["Top","Right","Bottom","Left"];function ze(e,t){return e=t||e,e.style.display==="none"||e.style.display===""&&r.css(e,"display")==="none"}var vi=/^[a-z]/,Ai=/^(?:Border(?:Top|Right|Bottom|Left)?(?:Width|)|(?:Margin|Padding)?(?:Top|Right|Bottom|Left)?|(?:Min|Max)?(?:Width|Height))$/;function $e(e){return vi.test(e)&&Ai.test(e[0].toUpperCase()+e.slice(1))}function Kt(e,t,n,i){var o,s,u=20,a=i?function(){return i.cur()}:function(){return r.css(e,t,"")},f=a(),c=n&&n[3]||($e(t)?"px":""),p=e.nodeType&&(!$e(t)||c!=="px"&&+f)&&He.exec(r.css(e,t));if(p&&p[3]!==c){for(f=f/2,c=c||p[3],p=+f||1;u--;)r.style(e,t,p+c),(1-s)*(1-(s=a()/f||.5))<=0&&(u=0),p=p/s;p=p*2,r.style(e,t,p+c),n=n||[]}return n&&(p=+p||+f||0,o=n[1]?p+(n[1]+1)*n[2]:+n[2],i&&(i.unit=c,i.start=p,i.end=o)),o}var xi=/^-ms-/;function yt(e){return ae(e.replace(xi,"ms-"))}var zt={};function mi(e){var t,n=e.ownerDocument,i=e.nodeName,o=zt[i];return o||(t=n.body.appendChild(n.createElement(i)),o=r.css(t,"display"),t.parentNode.removeChild(t),o==="none"&&(o="block"),zt[i]=o,o)}function ye(e,t){for(var n,i,o=[],s=0,u=e.length;s<u;s++)i=e[s],i.style&&(n=i.style.display,t?(n==="none"&&(o[s]=m.get(i,"display")||null,o[s]||(i.style.display="")),i.style.display===""&&ze(i)&&(o[s]=mi(i))):n!=="none"&&(o[s]="none",m.set(i,"display",n)));for(s=0;s<u;s++)o[s]!=null&&(e[s].style.display=o[s]);return e}r.fn.extend({show:function(){return ye(this,!0)},hide:function(){return ye(this)},toggle:function(e){return typeof e=="boolean"?e?this.show():this.hide():this.each(function(){ze(this)?r(this).show():r(this).hide()})}});var Pe=function(e){return r.contains(e.ownerDocument,e)||e.getRootNode(bi)===e.ownerDocument},bi={composed:!0};te.getRootNode||(Pe=function(e){return r.contains(e.ownerDocument,e)});var $t=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,z={thead:["table"],col:["colgroup","table"],tr:["tbody","table"],td:["tr","tbody","table"]};z.tbody=z.tfoot=z.colgroup=z.caption=z.thead,z.th=z.td;function B(e,t){var n;return typeof e.querySelectorAll<"u"?n=e.querySelectorAll(t||"*"):n=[],t===void 0||t&&S(e,t)?r.merge([e],n):n}var en=/^$|^module$|\/(?:java|ecma)script/i;function vt(e,t){for(var n=0,i=e.length;n<i;n++)m.set(e[n],"globalEval",!t||m.get(t[n],"globalEval"))}var Ti=/<|&#?\w+;/;function tn(e,t,n,i,o){var s,u,a,f,c,p,d,l=t.createDocumentFragment(),h=[],y=e.length;for(p=0;p<y;p++)if(s=e[p],s||s===0)if(De(s)==="object"&&(s.nodeType||Qe(s)))r.merge(h,s.nodeType?[s]:s);else if(!Ti.test(s))h.push(t.createTextNode(s));else{for(u=u||l.appendChild(t.createElement("div")),a=($t.exec(s)||["",""])[1].toLowerCase(),f=z[a]||A,d=f.length;--d>-1;)u=u.appendChild(t.createElement(f[d]));u.innerHTML=r.htmlPrefilter(s),r.merge(h,u.childNodes),u=l.firstChild,u.textContent=""}for(l.textContent="",p=0;p<h.length;p++){if(s=h[p],i&&r.inArray(s,i)>-1){o&&o.push(s);continue}if(c=Pe(s),u=B(l.appendChild(s),"script"),c&&vt(u),n)for(d=0;d<u.length;d++)s=u[d],en.test(s.type||"")&&n.push(s)}return l}function Ci(e){return e.type=(e.getAttribute("type")!==null)+"/"+e.type,e}function wi(e){return(e.type||"").slice(0,5)==="true/"?e.type=e.type.slice(5):e.removeAttribute("type"),e}function ve(e,t,n,i){t=O(t);var o,s,u,a,f,c,p=0,d=e.length,l=d-1,h=t[0],y=typeof h=="function";if(y)return e.each(function(v){var x=e.eq(v);t[0]=h.call(this,v,x.html()),ve(x,t,n,i)});if(d&&(o=tn(t,e[0].ownerDocument,!1,e,i),s=o.firstChild,o.childNodes.length===1&&(o=s),s||i)){for(u=r.map(B(o,"script"),Ci),a=u.length;p<d;p++)f=o,p!==l&&(f=r.clone(f,!0,!0),a&&r.merge(u,B(f,"script"))),n.call(e[p],f,p);if(a)for(c=u[u.length-1].ownerDocument,r.map(u,wi),p=0;p<a;p++)f=u[p],en.test(f.type||"")&&!m.get(f,"globalEval")&&r.contains(c,f)&&(f.src&&(f.type||"").toLowerCase()!=="module"?r._evalUrl&&!f.noModule&&r._evalUrl(f.src,{nonce:f.nonce,crossOrigin:f.crossOrigin},c):kt(f.textContent,f,c))}return e}var et=/^(?:checkbox|radio)$/i,nn=/^([^.]*)(?:\.(.+)|)/;function Ae(){return!0}function xe(){return!1}function At(e,t,n,i,o,s){var u,a;if(typeof t=="object"){typeof n!="string"&&(i=i||n,n=void 0);for(a in t)At(e,a,n,i,t[a],s);return e}if(i==null&&o==null?(o=n,i=n=void 0):o==null&&(typeof n=="string"?(o=i,i=void 0):(o=i,i=n,n=void 0)),o===!1)o=xe;else if(!o)return e;return s===1&&(u=o,o=function(f){return r().off(f),u.apply(this,arguments)},o.guid=u.guid||(u.guid=r.guid++)),e.each(function(){r.event.add(this,t,o,i,n)})}r.event={add:function(e,t,n,i,o){var s,u,a,f,c,p,d,l,h,y,v,x=m.get(e);if(Re(e))for(n.handler&&(s=n,n=s.handler,o=s.selector),o&&r.find.matchesSelector(te,o),n.guid||(n.guid=r.guid++),(f=x.events)||(f=x.events=Object.create(null)),(u=x.handle)||(u=x.handle=function(j){return typeof r<"u"&&r.event.triggered!==j.type?r.event.dispatch.apply(e,arguments):void 0}),t=(t||"").match(_)||[""],c=t.length;c--;)a=nn.exec(t[c])||[],h=v=a[1],y=(a[2]||"").split(".").sort(),h&&(d=r.event.special[h]||{},h=(o?d.delegateType:d.bindType)||h,d=r.event.special[h]||{},p=r.extend({type:h,origType:v,data:i,handler:n,guid:n.guid,selector:o,needsContext:o&&r.expr.match.needsContext.test(o),namespace:y.join(".")},s),(l=f[h])||(l=f[h]=[],l.delegateCount=0,(!d.setup||d.setup.call(e,i,y,u)===!1)&&e.addEventListener&&e.addEventListener(h,u)),d.add&&(d.add.call(e,p),p.handler.guid||(p.handler.guid=n.guid)),o?l.splice(l.delegateCount++,0,p):l.push(p))},remove:function(e,t,n,i,o){var s,u,a,f,c,p,d,l,h,y,v,x=m.hasData(e)&&m.get(e);if(!(!x||!(f=x.events))){for(t=(t||"").match(_)||[""],c=t.length;c--;){if(a=nn.exec(t[c])||[],h=v=a[1],y=(a[2]||"").split(".").sort(),!h){for(h in f)r.event.remove(e,h+t[c],n,i,!0);continue}for(d=r.event.special[h]||{},h=(i?d.delegateType:d.bindType)||h,l=f[h]||[],a=a[2]&&new RegExp("(^|\\.)"+y.join("\\.(?:.*\\.|)")+"(\\.|$)"),u=s=l.length;s--;)p=l[s],(o||v===p.origType)&&(!n||n.guid===p.guid)&&(!a||a.test(p.namespace))&&(!i||i===p.selector||i==="**"&&p.selector)&&(l.splice(s,1),p.selector&&l.delegateCount--,d.remove&&d.remove.call(e,p));u&&!l.length&&((!d.teardown||d.teardown.call(e,y,x.handle)===!1)&&r.removeEvent(e,h,x.handle),delete f[h])}r.isEmptyObject(f)&&m.remove(e,"handle events")}},dispatch:function(e){var t,n,i,o,s,u,a,f,c,p=new Array(arguments.length);for(t=r.event.fix(e),c=(m.get(this,"events")||Object.create(null))[t.type]||[],a=r.event.special[t.type]||{},s=0;s<arguments.length;s++)p[s]=arguments[s];if(p[0]=t,t.delegateTarget=this,!(a.preDispatch&&a.preDispatch.call(this,t)===!1)){for(f=r.event.handlers.call(this,t,c),s=0;s<f.length&&!t.isPropagationStopped();s++)for(i=f[s],t.currentTarget=i.elem,u=0;u<i.handlers.length&&!t.isImmediatePropagationStopped();u++)o=i.handlers[u],(!t.rnamespace||o.namespace===!1||t.rnamespace.test(o.namespace))&&(t.handleObj=o,t.data=o.data,n=((r.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,p),n!==void 0&&(t.result=n)===!1&&(t.preventDefault(),t.stopPropagation()));return a.postDispatch&&a.postDispatch.call(this,t),t.result}},handlers:function(e,t){var n,i,o,s,u,a=[],f=t.delegateCount,c=e.target;if(f&&!(e.type==="click"&&e.button>=1)){for(;c!==this;c=c.parentNode||this)if(c.nodeType===1&&!(e.type==="click"&&c.disabled===!0)){for(s=[],u={},n=0;n<f;n++)i=t[n],o=i.selector+" ",u[o]===void 0&&(u[o]=i.needsContext?r(o,this).index(c)>-1:r.find(o,this,null,[c]).length),u[o]&&s.push(i);s.length&&a.push({elem:c,handlers:s})}}return c=this,f<t.length&&a.push({elem:c,handlers:t.slice(f)}),a},addProp:function(e,t){Object.defineProperty(r.Event.prototype,e,{enumerable:!0,configurable:!0,get:typeof t=="function"?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(n){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:n})}})},fix:function(e){return e[r.expando]?e:new r.Event(e)},special:r.extend(Object.create(null),{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return et.test(t.type)&&t.click&&S(t,"input")&&tt(t,"click",!0),!1},trigger:function(e){var t=this||e;return et.test(t.type)&&t.click&&S(t,"input")&&tt(t,"click"),!0},_default:function(e){var t=e.target;return et.test(t.type)&&t.click&&S(t,"input")&&m.get(t,"click")||S(t,"a")}},beforeunload:{postDispatch:function(e){e.result!==void 0&&e.preventDefault()}}})};function tt(e,t,n){if(!n){m.get(e,t)===void 0&&r.event.add(e,t,Ae);return}m.set(e,t,!1),r.event.add(e,t,{namespace:!1,handler:function(i){var o,s=m.get(this,t);if(i.isTrigger&1&&this[t]){if(s.length)(r.event.special[t]||{}).delegateType&&i.stopPropagation();else if(s=w.call(arguments),m.set(this,t,s),this[t](),o=m.get(this,t),m.set(this,t,!1),s!==o)return i.stopImmediatePropagation(),i.preventDefault(),o&&o.value}else s.length&&(m.set(this,t,{value:r.event.trigger(s[0],s.slice(1),this)}),i.stopPropagation(),i.isImmediatePropagationStopped=Ae)}})}r.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},r.Event=function(e,t){if(!(this instanceof r.Event))return new r.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented?Ae:xe,this.target=e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&r.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[r.expando]=!0},r.Event.prototype={constructor:r.Event,isDefaultPrevented:xe,isPropagationStopped:xe,isImmediatePropagationStopped:xe,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Ae,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Ae,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Ae,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},r.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},r.event.addProp),r.each({focus:"focusin",blur:"focusout"},function(e,t){function n(i){var o=r.event.fix(i);o.type=i.type==="focusin"?"focus":"blur",o.isSimulated=!0,o.target===o.currentTarget&&m.get(this,"handle")(o)}r.event.special[e]={setup:function(){if(tt(this,e,!0),q)this.addEventListener(t,n);else return!1},trigger:function(){return tt(this,e),!0},teardown:function(){if(q)this.removeEventListener(t,n);else return!1},_default:function(i){return m.get(i.target,e)},delegateType:t}}),r.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){r.event.special[e]={delegateType:t,bindType:t,handle:function(n){var i,o=this,s=n.relatedTarget,u=n.handleObj;return(!s||s!==o&&!r.contains(o,s))&&(n.type=u.origType,i=u.handler.apply(this,arguments),n.type=t),i}}}),r.fn.extend({on:function(e,t,n,i){return At(this,e,t,n,i)},one:function(e,t,n,i){return At(this,e,t,n,i,1)},off:function(e,t,n){var i,o;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,r(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if(typeof e=="object"){for(o in e)this.off(o,t,e[o]);return this}return(t===!1||typeof t=="function")&&(n=t,t=void 0),n===!1&&(n=xe),this.each(function(){r.event.remove(this,e,n,t)})}});var Ei=/<script|<style|<link/i;function rn(e,t){return S(e,"table")&&S(t.nodeType!==11?t:t.firstChild,"tr")&&r(e).children("tbody")[0]||e}function on(e,t){var n,i,o,s=m.get(e,"events");if(t.nodeType===1){if(s){m.remove(t,"handle events");for(n in s)for(i=0,o=s[n].length;i<o;i++)r.event.add(t,n,s[n][i])}L.hasData(e)&&L.set(t,r.extend({},L.get(e)))}}function sn(e,t,n){var i,o,s=t?r.filter(t,e):e;for(o=0;o<s.length;o++)i=s[o],!n&&i.nodeType===1&&r.cleanData(B(i)),i.parentNode&&(n&&Pe(i)&&vt(B(i,"script")),i.parentNode.removeChild(i));return e}r.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var i,o,s,u,a=e.cloneNode(!0),f=Pe(e);if(q&&(e.nodeType===1||e.nodeType===11)&&!r.isXMLDoc(e))for(u=B(a),s=B(e),i=0,o=s.length;i<o;i++)S(u[i],"textarea")&&(u[i].defaultValue=s[i].defaultValue);if(t)if(n)for(s=s||B(e),u=u||B(a),i=0,o=s.length;i<o;i++)on(s[i],u[i]);else on(e,a);return u=B(a,"script"),u.length>0&&vt(u,!f&&B(e,"script")),a},cleanData:function(e){var t,n,i,o,s=r.event.special;for(o=0;o<e.length;o++)if(n=e[o],Re(n)){if(t=n[m.expando]){if(t.events)for(i in t.events)s[i]?r.event.remove(n,i):r.removeEvent(n,i,t.handle);n[m.expando]=void 0}n[L.expando]&&(n[L.expando]=void 0)}}}),r.fn.extend({detach:function(e){return sn(this,e,!0)},remove:function(e){return sn(this,e)},text:function(e){return V(this,function(t){return t===void 0?r.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=t)})},null,e,arguments.length)},append:function(){return ve(this,arguments,function(e){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var t=rn(this,e);t.appendChild(e)}})},prepend:function(){return ve(this,arguments,function(e){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var t=rn(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return ve(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return ve(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){var e,t;for(t=0;t<this.length;t++)e=this[t],e.nodeType===1&&(r.cleanData(B(e,!1)),e.textContent="");return this},clone:function(e,t){return e=e??!1,t=t??e,this.map(function(){return r.clone(this,e,t)})},html:function(e){return V(this,function(t){var n=this[0]||{},i=0,o=this.length;if(t===void 0&&n.nodeType===1)return n.innerHTML;if(typeof t=="string"&&!Ei.test(t)&&!z[($t.exec(t)||["",""])[1].toLowerCase()]){t=r.htmlPrefilter(t);try{for(;i<o;i++)n=this[i]||{},n.nodeType===1&&(r.cleanData(B(n,!1)),n.innerHTML=t);n=0}catch{}}n&&this.empty().append(t)},null,e,arguments.length)},replaceWith:function(){var e=[];return ve(this,arguments,function(t){var n=this.parentNode;r.inArray(this,e)<0&&(r.cleanData(B(this)),n&&n.replaceChild(t,this))},e)}}),r.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){r.fn[e]=function(n){for(var i,o=[],s=r(n),u=s.length-1,a=0;a<=u;a++)i=a===u?this:this.clone(!0),r(s[a])[t](i),P.apply(o,i);return this.pushStack(o)}});var Si=new RegExp("^("+Xt+")(?!px)[a-z%]+$","i");function nt(e){var t=e.ownerDocument.defaultView;return t||(t=b),t.getComputedStyle(e)}function Di(e,t,n){var i,o,s={};for(o in t)s[o]=e.style[o],e.style[o]=t[o];i=n.call(e);for(o in t)e.style[o]=s[o];return i}function un(e,t,n){var i,o=Ne.test(t);return n=n||nt(e),n&&(i=n.getPropertyValue(t)||n[t],o&&i&&(i=i.replace(ke,"$1")||void 0),i===""&&!Pe(e)&&(i=r.style(e,t))),i!==void 0?i+"":i}function fe(e){return N.createElementNS("http://www.w3.org/1999/xhtml",e)}var an=["Webkit","Moz","ms"],fn=fe("div").style;function ji(e){for(var t=e[0].toUpperCase()+e.slice(1),n=an.length;n--;)if(e=an[n]+t,e in fn)return e}function xt(e){return e in fn?e:ji(e)||e}var cn,ln,re=fe("table");function pn(){if(!(!re||!re.style)){var e,t=fe("col"),n=fe("tr"),i=fe("td");if(re.style.cssText="position:absolute;left:-11111px;border-collapse:separate;border-spacing:0",n.style.cssText="box-sizing:content-box;border:1px solid;height:1px",i.style.cssText="height:9px;width:9px;padding:0",t.span=2,te.appendChild(re).appendChild(t).parentNode.appendChild(n).appendChild(i).parentNode.appendChild(i.cloneNode(!0)),re.offsetWidth===0){te.removeChild(re).textContent="";return}e=b.getComputedStyle(n),ln=q||Math.round(parseFloat(b.getComputedStyle(t).width))===18,cn=Math.round(parseFloat(e.height)+parseFloat(e.borderTopWidth)+parseFloat(e.borderBottomWidth))===n.offsetHeight,te.removeChild(re),re=null}}r.extend(ee,{reliableTrDimensions:function(){return pn(),cn},reliableColDimensions:function(){return pn(),ln}});var Ni={position:"absolute",visibility:"hidden",display:"block"},dn={letterSpacing:"0",fontWeight:"400"};function hn(e,t,n){var i=He.exec(t);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):t}function gn(e,t,n,i,o,s){var u=t==="width"?1:0,a=0,f=0,c=0;if(n===(i?"border":"content"))return 0;for(;u<4;u+=2)n==="margin"&&(c+=r.css(e,n+ie[u],!0,o)),i?(n==="content"&&(f-=r.css(e,"padding"+ie[u],!0,o)),n!=="margin"&&(f-=r.css(e,"border"+ie[u]+"Width",!0,o))):(f+=r.css(e,"padding"+ie[u],!0,o),n!=="padding"?f+=r.css(e,"border"+ie[u]+"Width",!0,o):a+=r.css(e,"border"+ie[u]+"Width",!0,o));return!i&&s>=0&&(f+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-s-f-a-.5))||0),f+c}function yn(e,t,n){var i=nt(e),o=q||n,s=o&&r.css(e,"boxSizing",!1,i)==="border-box",u=s,a=un(e,t,i),f="offset"+t[0].toUpperCase()+t.slice(1);if(Si.test(a)){if(!n)return a;a="auto"}return(a==="auto"||q&&s||!ee.reliableColDimensions()&&S(e,"col")||!ee.reliableTrDimensions()&&S(e,"tr"))&&e.getClientRects().length&&(s=r.css(e,"boxSizing",!1,i)==="border-box",u=f in e,u&&(a=e[f])),a=parseFloat(a)||0,a+gn(e,t,n||(s?"border":"content"),u,i,a)+"px"}r.extend({cssHooks:{},style:function(e,t,n,i){if(!(!e||e.nodeType===3||e.nodeType===8||!e.style)){var o,s,u,a=yt(t),f=Ne.test(t),c=e.style;if(f||(t=xt(a)),u=r.cssHooks[t]||r.cssHooks[a],n!==void 0){if(s=typeof n,s==="string"&&(o=He.exec(n))&&o[1]&&(n=Kt(e,t,o),s="number"),n==null||n!==n)return;s==="number"&&(n+=o&&o[3]||($e(a)?"px":"")),q&&n===""&&t.indexOf("background")===0&&(c[t]="inherit"),(!u||!("set"in u)||(n=u.set(e,n,i))!==void 0)&&(f?c.setProperty(t,n):c[t]=n)}else return u&&"get"in u&&(o=u.get(e,!1,i))!==void 0?o:c[t]}},css:function(e,t,n,i){var o,s,u,a=yt(t),f=Ne.test(t);return f||(t=xt(a)),u=r.cssHooks[t]||r.cssHooks[a],u&&"get"in u&&(o=u.get(e,!0,n)),o===void 0&&(o=un(e,t,i)),o==="normal"&&t in dn&&(o=dn[t]),n===""||n?(s=parseFloat(o),n===!0||isFinite(s)?s||0:o):o}}),r.each(["height","width"],function(e,t){r.cssHooks[t]={get:function(n,i,o){if(i)return r.css(n,"display")==="none"?Di(n,Ni,function(){return yn(n,t,o)}):yn(n,t,o)},set:function(n,i,o){var s,u=nt(n),a=o&&r.css(n,"boxSizing",!1,u)==="border-box",f=o?gn(n,t,o,a,u):0;return f&&(s=He.exec(i))&&(s[3]||"px")!=="px"&&(n.style[t]=i,i=r.css(n,t)),hn(n,i,f)}}}),r.each({margin:"",padding:"",border:"Width"},function(e,t){r.cssHooks[e+t]={expand:function(n){for(var i=0,o={},s=typeof n=="string"?n.split(" "):[n];i<4;i++)o[e+ie[i]+t]=s[i]||s[i-2]||s[0];return o}},e!=="margin"&&(r.cssHooks[e+t].set=hn)}),r.fn.extend({css:function(e,t){return V(this,function(n,i,o){var s,u,a={},f=0;if(Array.isArray(i)){for(s=nt(n),u=i.length;f<u;f++)a[i[f]]=r.css(n,i[f],!1,s);return a}return o!==void 0?r.style(n,i,o):r.css(n,i)},e,t,arguments.length>1)}});function W(e,t,n,i,o){return new W.prototype.init(e,t,n,i,o)}r.Tween=W,W.prototype={constructor:W,init:function(e,t,n,i,o,s){this.elem=e,this.prop=n,this.easing=o||r.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=s||($e(n)?"px":"")},cur:function(){var e=W.propHooks[this.prop];return e&&e.get?e.get(this):W.propHooks._default.get(this)},run:function(e){var t,n=W.propHooks[this.prop];return this.options.duration?this.pos=t=r.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):W.propHooks._default.set(this),this}},W.prototype.init.prototype=W.prototype,W.propHooks={_default:{get:function(e){var t;return e.elem.nodeType!==1||e.elem[e.prop]!=null&&e.elem.style[e.prop]==null?e.elem[e.prop]:(t=r.css(e.elem,e.prop,""),!t||t==="auto"?0:t)},set:function(e){r.fx.step[e.prop]?r.fx.step[e.prop](e):e.elem.nodeType===1&&(r.cssHooks[e.prop]||e.elem.style[xt(e.prop)]!=null)?r.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},r.easing={linear:function(e){return e},swing:function(e){return .5-Math.cos(e*Math.PI)/2},_default:"swing"},r.fx=W.prototype.init,r.fx.step={};var me,it,ki=/^(?:toggle|show|hide)$/,Ii=/queueHooks$/;function mt(){it&&(N.hidden===!1&&b.requestAnimationFrame?b.requestAnimationFrame(mt):b.setTimeout(mt,13),r.fx.tick())}function vn(){return b.setTimeout(function(){me=void 0}),me=Date.now()}function rt(e,t){var n,i=0,o={height:e};for(t=t?1:0;i<4;i+=2-t)n=ie[i],o["margin"+n]=o["padding"+n]=e;return t&&(o.opacity=o.width=e),o}function An(e,t,n){for(var i,o=(G.tweeners[t]||[]).concat(G.tweeners["*"]),s=0,u=o.length;s<u;s++)if(i=o[s].call(n,t,e))return i}function Oi(e,t,n){var i,o,s,u,a,f,c,p,d="width"in t||"height"in t,l=this,h={},y=e.style,v=e.nodeType&&ze(e),x=m.get(e,"fxshow");n.queue||(u=r._queueHooks(e,"fx"),u.unqueued==null&&(u.unqueued=0,a=u.empty.fire,u.empty.fire=function(){u.unqueued||a()}),u.unqueued++,l.always(function(){l.always(function(){u.unqueued--,r.queue(e,"fx").length||u.empty.fire()})}));for(i in t)if(o=t[i],ki.test(o)){if(delete t[i],s=s||o==="toggle",o===(v?"hide":"show"))if(o==="show"&&x&&x[i]!==void 0)v=!0;else continue;h[i]=x&&x[i]||r.style(e,i)}if(f=!r.isEmptyObject(t),!(!f&&r.isEmptyObject(h))){d&&e.nodeType===1&&(n.overflow=[y.overflow,y.overflowX,y.overflowY],c=x&&x.display,c==null&&(c=m.get(e,"display")),p=r.css(e,"display"),p==="none"&&(c?p=c:(ye([e],!0),c=e.style.display||c,p=r.css(e,"display"),ye([e]))),(p==="inline"||p==="inline-block"&&c!=null)&&r.css(e,"float")==="none"&&(f||(l.done(function(){y.display=c}),c==null&&(p=y.display,c=p==="none"?"":p)),y.display="inline-block")),n.overflow&&(y.overflow="hidden",l.always(function(){y.overflow=n.overflow[0],y.overflowX=n.overflow[1],y.overflowY=n.overflow[2]})),f=!1;for(i in h)f||(x?"hidden"in x&&(v=x.hidden):x=m.set(e,"fxshow",{display:c}),s&&(x.hidden=!v),v&&ye([e],!0),l.done(function(){v||ye([e]),m.remove(e,"fxshow");for(i in h)r.style(e,i,h[i])})),f=An(v?x[i]:0,i,l),i in x||(x[i]=f.start,v&&(f.end=f.start,f.start=0))}}function Ri(e,t){var n,i,o,s,u;for(n in e)if(i=yt(n),o=t[i],s=e[n],Array.isArray(s)&&(o=s[1],s=e[n]=s[0]),n!==i&&(e[i]=s,delete e[n]),u=r.cssHooks[i],u&&"expand"in u){s=u.expand(s),delete e[i];for(n in s)n in e||(e[n]=s[n],t[n]=o)}else t[i]=o}function G(e,t,n){var i,o,s=0,u=G.prefilters.length,a=r.Deferred().always(function(){delete f.elem}),f=function(){if(o)return!1;for(var d=me||vn(),l=Math.max(0,c.startTime+c.duration-d),h=1-(l/c.duration||0),y=0,v=c.tweens.length;y<v;y++)c.tweens[y].run(h);return a.notifyWith(e,[c,h,l]),h<1&&v?l:(v||a.notifyWith(e,[c,1,0]),a.resolveWith(e,[c]),!1)},c=a.promise({elem:e,props:r.extend({},t),opts:r.extend(!0,{specialEasing:{},easing:r.easing._default},n),originalProperties:t,originalOptions:n,startTime:me||vn(),duration:n.duration,tweens:[],createTween:function(d,l){var h=r.Tween(e,c.opts,d,l,c.opts.specialEasing[d]||c.opts.easing);return c.tweens.push(h),h},stop:function(d){var l=0,h=d?c.tweens.length:0;if(o)return this;for(o=!0;l<h;l++)c.tweens[l].run(1);return d?(a.notifyWith(e,[c,1,0]),a.resolveWith(e,[c,d])):a.rejectWith(e,[c,d]),this}}),p=c.props;for(Ri(p,c.opts.specialEasing);s<u;s++)if(i=G.prefilters[s].call(c,e,p,c.opts),i)return typeof i.stop=="function"&&(r._queueHooks(c.elem,c.opts.queue).stop=i.stop.bind(i)),i;return r.map(p,An,c),typeof c.opts.start=="function"&&c.opts.start.call(e,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),r.fx.timer(r.extend(f,{elem:e,anim:c,queue:c.opts.queue})),c}r.Animation=r.extend(G,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return Kt(n.elem,e,He.exec(t),n),n}]},tweener:function(e,t){typeof e=="function"?(t=e,e=["*"]):e=e.match(_);for(var n,i=0,o=e.length;i<o;i++)n=e[i],G.tweeners[n]=G.tweeners[n]||[],G.tweeners[n].unshift(t)},prefilters:[Oi],prefilter:function(e,t){t?G.prefilters.unshift(e):G.prefilters.push(e)}}),r.speed=function(e,t,n){var i=e&&typeof e=="object"?r.extend({},e):{complete:n||t||typeof e=="function"&&e,duration:e,easing:n&&t||t&&typeof t!="function"&&t};return r.fx.off?i.duration=0:typeof i.duration!="number"&&(i.duration in r.fx.speeds?i.duration=r.fx.speeds[i.duration]:i.duration=r.fx.speeds._default),(i.queue==null||i.queue===!0)&&(i.queue="fx"),i.old=i.complete,i.complete=function(){typeof i.old=="function"&&i.old.call(this),i.queue&&r.dequeue(this,i.queue)},i},r.fn.extend({fadeTo:function(e,t,n,i){return this.filter(ze).css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(e,t,n,i){var o=r.isEmptyObject(e),s=r.speed(t,n,i),u=function(){var a=G(this,r.extend({},e),s);(o||m.get(this,"finish"))&&a.stop(!0)};return u.finish=u,o||s.queue===!1?this.each(u):this.queue(s.queue,u)},stop:function(e,t,n){var i=function(o){var s=o.stop;delete o.stop,s(n)};return typeof e!="string"&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each(function(){var o=!0,s=e!=null&&e+"queueHooks",u=r.timers,a=m.get(this);if(s)a[s]&&a[s].stop&&i(a[s]);else for(s in a)a[s]&&a[s].stop&&Ii.test(s)&&i(a[s]);for(s=u.length;s--;)u[s].elem===this&&(e==null||u[s].queue===e)&&(u[s].anim.stop(n),o=!1,u.splice(s,1));(o||!n)&&r.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var t,n=m.get(this),i=n[e+"queue"],o=n[e+"queueHooks"],s=r.timers,u=i?i.length:0;for(n.finish=!0,r.queue(this,e,[]),o&&o.stop&&o.stop.call(this,!0),t=s.length;t--;)s[t].elem===this&&s[t].queue===e&&(s[t].anim.stop(!0),s.splice(t,1));for(t=0;t<u;t++)i[t]&&i[t].finish&&i[t].finish.call(this);delete n.finish})}}),r.each(["toggle","show","hide"],function(e,t){var n=r.fn[t];r.fn[t]=function(i,o,s){return i==null||typeof i=="boolean"?n.apply(this,arguments):this.animate(rt(t,!0),i,o,s)}}),r.each({slideDown:rt("show"),slideUp:rt("hide"),slideToggle:rt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){r.fn[e]=function(n,i,o){return this.animate(t,n,i,o)}}),r.timers=[],r.fx.tick=function(){var e,t=0,n=r.timers;for(me=Date.now();t<n.length;t++)e=n[t],!e()&&n[t]===e&&n.splice(t--,1);n.length||r.fx.stop(),me=void 0},r.fx.timer=function(e){r.timers.push(e),r.fx.start()},r.fx.start=function(){it||(it=!0,mt())},r.fx.stop=function(){it=null},r.fx.speeds={slow:600,fast:200,_default:400},r.fn.delay=function(e,t){return e=r.fx&&r.fx.speeds[e]||e,t=t||"fx",this.queue(t,function(n,i){var o=b.setTimeout(n,e);i.stop=function(){b.clearTimeout(o)}})};var qi=/^(?:input|select|textarea|button)$/i,Hi=/^(?:a|area)$/i;r.fn.extend({prop:function(e,t){return V(this,r.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[r.propFix[e]||e]})}}),r.extend({prop:function(e,t,n){var i,o,s=e.nodeType;if(!(s===3||s===8||s===2))return(s!==1||!r.isXMLDoc(e))&&(t=r.propFix[t]||t,o=r.propHooks[t]),n!==void 0?o&&"set"in o&&(i=o.set(e,n,t))!==void 0?i:e[t]=n:o&&"get"in o&&(i=o.get(e,t))!==null?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=e.getAttribute("tabindex");return t?parseInt(t,10):qi.test(e.nodeName)||Hi.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),q&&(r.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),r.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){r.propFix[this.toLowerCase()]=this});function ce(e){var t=e.match(_)||[];return t.join(" ")}function be(e){return e.getAttribute&&e.getAttribute("class")||""}function bt(e){return Array.isArray(e)?e:typeof e=="string"?e.match(_)||[]:[]}r.fn.extend({addClass:function(e){var t,n,i,o,s;return typeof e=="function"?this.each(function(u){r(this).addClass(e.call(this,u,be(this)))}):(t=bt(e),t.length?this.each(function(){if(i=be(this),n=this.nodeType===1&&" "+ce(i)+" ",n){for(o=0;o<t.length;o++)n.indexOf(" "+t[o]+" ")<0&&(n+=t[o]+" ");s=ce(n),i!==s&&this.setAttribute("class",s)}}):this)},removeClass:function(e){var t,n,i,o,s;return typeof e=="function"?this.each(function(u){r(this).removeClass(e.call(this,u,be(this)))}):arguments.length?(t=bt(e),t.length?this.each(function(){if(i=be(this),n=this.nodeType===1&&" "+ce(i)+" ",n){for(o=0;o<t.length;o++)for(;n.indexOf(" "+t[o]+" ")>-1;)n=n.replace(" "+t[o]+" "," ");s=ce(n),i!==s&&this.setAttribute("class",s)}}):this):this.attr("class","")},toggleClass:function(e,t){var n,i,o;return typeof e=="function"?this.each(function(s){r(this).toggleClass(e.call(this,s,be(this),t),t)}):typeof t=="boolean"?t?this.addClass(e):this.removeClass(e):(n=bt(e),n.length?this.each(function(){for(o=r(this),i=0;i<n.length;i++)o.hasClass(n[i])?o.removeClass(n[i]):o.addClass(n[i])}):this)},hasClass:function(e){var t,n;for(t=" "+e+" ",n=0;n<this.length;n++)if(this[n].nodeType===1&&(" "+ce(be(this[n]))+" ").indexOf(t)>-1)return!0;return!1}}),r.fn.extend({val:function(e){var t,n,i,o=this[0];return arguments.length?(i=typeof e=="function",this.each(function(s){var u;this.nodeType===1&&(i?u=e.call(this,s,r(this).val()):u=e,u==null?u="":typeof u=="number"?u+="":Array.isArray(u)&&(u=r.map(u,function(a){return a==null?"":a+""})),t=r.valHooks[this.type]||r.valHooks[this.nodeName.toLowerCase()],(!t||!("set"in t)||t.set(this,u,"value")===void 0)&&(this.value=u))})):o?(t=r.valHooks[o.type]||r.valHooks[o.nodeName.toLowerCase()],t&&"get"in t&&(n=t.get(o,"value"))!==void 0?n:(n=o.value,n??"")):void 0}}),r.extend({valHooks:{select:{get:function(e){var t,n,i,o=e.options,s=e.selectedIndex,u=e.type==="select-one",a=u?null:[],f=u?s+1:o.length;for(s<0?i=f:i=u?s:0;i<f;i++)if(n=o[i],n.selected&&!n.disabled&&(!n.parentNode.disabled||!S(n.parentNode,"optgroup"))){if(t=r(n).val(),u)return t;a.push(t)}return a},set:function(e,t){for(var n,i,o=e.options,s=r.makeArray(t),u=o.length;u--;)i=o[u],(i.selected=r.inArray(r(i).val(),s)>-1)&&(n=!0);return n||(e.selectedIndex=-1),s}}}}),q&&(r.valHooks.option={get:function(e){var t=e.getAttribute("value");return t??ce(r.text(e))}}),r.each(["radio","checkbox"],function(){r.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=r.inArray(r(e).val(),t)>-1}}});var xn=/^(?:focusinfocus|focusoutblur)$/,mn=function(e){e.stopPropagation()};r.extend(r.event,{trigger:function(e,t,n,i){var o,s,u,a,f,c,p,d,l,h=le.call(e,"type")?e.type:e,y=le.call(e,"namespace")?e.namespace.split("."):[];if(s=l=u=n=n||N,a=[s],!(n.nodeType===3||n.nodeType===8)&&!xn.test(h+r.event.triggered)&&(h.indexOf(".")>-1&&(y=h.split("."),h=y.shift(),y.sort()),c=h.indexOf(":")<0&&"on"+h,e=e[r.expando]?e:new r.Event(h,typeof e=="object"&&e),e.isTrigger=i?2:3,e.namespace=y.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+y.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=t==null?[e]:r.makeArray(t,[e]),d=r.event.special[h]||{},!(!i&&d.trigger&&d.trigger.apply(n,t)===!1))){if(!i&&!d.noBubble&&!je(n)){for(f=d.delegateType||h,xn.test(f+h)||(s=s.parentNode);s;s=s.parentNode)a.push(s),u=s;u===(n.ownerDocument||N)&&a.push(u.defaultView||u.parentWindow||b)}for(o=0;o<a.length&&!e.isPropagationStopped();o++)s=a[o],l=s,e.type=o?f:d.bindType||h,p=(m.get(s,"events")||Object.create(null))[e.type]&&m.get(s,"handle"),p&&p.apply(s,t),p=c&&s[c],p&&p.apply&&Re(s)&&(e.result=p.apply(s,t),e.result===!1&&e.preventDefault());return e.type=h,!i&&!e.isDefaultPrevented()&&(!d._default||d._default.apply(a.pop(),t)===!1)&&Re(n)&&c&&typeof n[h]=="function"&&!je(n)&&(u=n[c],u&&(n[c]=null),r.event.triggered=h,e.isPropagationStopped()&&l.addEventListener(h,mn),n[h](),e.isPropagationStopped()&&l.removeEventListener(h,mn),r.event.triggered=void 0,u&&(n[c]=u)),e.result}},simulate:function(e,t,n){var i=r.extend(new r.Event,n,{type:e,isSimulated:!0});r.event.trigger(i,null,t)}}),r.fn.extend({trigger:function(e,t){return this.each(function(){r.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return r.event.trigger(e,t,n,!0)}});var Me=b.location,bn={guid:Date.now()},Tt=/\?/;r.parseXML=function(e){var t,n;if(!e||typeof e!="string")return null;try{t=new b.DOMParser().parseFromString(e,"text/xml")}catch{}return n=t&&t.querySelector("parsererror"),(!t||n)&&r.error("Invalid XML: "+(n?r.map(n.childNodes,function(i){return i.textContent}).join(`
|
|
11
|
+
`):e)),t};var Pi=/\[\]$/,Tn=/\r?\n/g,Mi=/^(?:submit|button|image|reset|file)$/i,Li=/^(?:input|select|textarea|keygen)/i;function Ct(e,t,n,i){var o;if(Array.isArray(t))r.each(t,function(s,u){n||Pi.test(e)?i(e,u):Ct(e+"["+(typeof u=="object"&&u!=null?s:"")+"]",u,n,i)});else if(!n&&De(t)==="object")for(o in t)Ct(e+"["+o+"]",t[o],n,i);else i(e,t)}r.param=function(e,t){var n,i=[],o=function(s,u){var a=typeof u=="function"?u():u;i[i.length]=encodeURIComponent(s)+"="+encodeURIComponent(a??"")};if(e==null)return"";if(Array.isArray(e)||e.jquery&&!r.isPlainObject(e))r.each(e,function(){o(this.name,this.value)});else for(n in e)Ct(n,e[n],t,o);return i.join("&")},r.fn.extend({serialize:function(){return r.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=r.prop(this,"elements");return e?r.makeArray(e):Li.test(this.nodeName)?this:[]}).filter(function(){var e=this.type;return this.name&&!r(this).is(":disabled")&&!Mi.test(e)&&(this.checked||!et.test(e))}).map(function(e,t){var n=r(this).val();return n==null?null:Array.isArray(n)?r.map(n,function(i){return{name:t.name,value:i.replace(Tn,`\r
|
|
12
|
+
`)}}):{name:t.name,value:n.replace(Tn,`\r
|
|
13
|
+
`)}}).get()}});var Bi=/%20/g,Fi=/#.*$/,Qi=/([?&])_=[^&]*/,Wi=/^(.*?):[ \t]*([^\r\n]*)$/mg,Ui=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Gi=/^(?:GET|HEAD)$/,Yi=/^\/\//,Cn={},wt={},wn="*/".concat("*"),Et=fe("a");Et.href=Me.href;function En(e){return function(t,n){typeof t!="string"&&(n=t,t="*");var i,o,s=t.toLowerCase().match(_)||[];if(typeof n=="function")for(o=0;o<s.length;o++)i=s[o],i[0]==="+"?(i=i.slice(1)||"*",(e[i]=e[i]||[]).unshift(n)):(e[i]=e[i]||[]).push(n)}}function Sn(e,t,n,i){var o={},s=e===wt;function u(a){var f;return o[a]=!0,r.each(e[a]||[],function(c,p){var d=p(t,n,i);if(typeof d=="string"&&!s&&!o[d])return t.dataTypes.unshift(d),u(d),!1;if(s)return!(f=d)}),f}return u(t.dataTypes[0])||!o["*"]&&u("*")}function St(e,t){var n,i,o=r.ajaxSettings.flatOptions||{};for(n in t)t[n]!==void 0&&((o[n]?e:i||(i={}))[n]=t[n]);return i&&r.extend(!0,e,i),e}function Zi(e,t,n){for(var i,o,s,u,a=e.contents,f=e.dataTypes;f.length&&f[0]==="*";)f.shift(),i===void 0&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i){for(o in a)if(a[o]&&a[o].test(i)){f.unshift(o);break}}if(f[0]in n)s=f[0];else{for(o in n){if(!f[0]||e.converters[o+" "+f[0]]){s=o;break}u||(u=o)}s=s||u}if(s)return s!==f[0]&&f.unshift(s),n[s]}function _i(e,t,n,i){var o,s,u,a,f,c={},p=e.dataTypes.slice();if(p[1])for(u in e.converters)c[u.toLowerCase()]=e.converters[u];for(s=p.shift();s;)if(e.responseFields[s]&&(n[e.responseFields[s]]=t),!f&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),f=s,s=p.shift(),s){if(s==="*")s=f;else if(f!=="*"&&f!==s){if(u=c[f+" "+s]||c["* "+s],!u){for(o in c)if(a=o.split(" "),a[1]===s&&(u=c[f+" "+a[0]]||c["* "+a[0]],u)){u===!0?u=c[o]:c[o]!==!0&&(s=a[0],p.unshift(a[1]));break}}if(u!==!0)if(u&&e.throws)t=u(t);else try{t=u(t)}catch(d){return{state:"parsererror",error:u?d:"No conversion from "+f+" to "+s}}}}return{state:"success",data:t}}r.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Me.href,type:"GET",isLocal:Ui.test(Me.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":wn,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":r.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?St(St(e,r.ajaxSettings),t):St(r.ajaxSettings,e)},ajaxPrefilter:En(Cn),ajaxTransport:En(wt),ajax:function(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};var n,i,o,s,u,a,f,c,p,d,l=r.ajaxSetup({},t),h=l.context||l,y=l.context&&(h.nodeType||h.jquery)?r(h):r.event,v=r.Deferred(),x=r.Callbacks("once memory"),j=l.statusCode||{},D={},Y={},H="canceled",C={readyState:0,getResponseHeader:function(T){var I;if(f){if(!s)for(s={};I=Wi.exec(o);)s[I[1].toLowerCase()+" "]=(s[I[1].toLowerCase()+" "]||[]).concat(I[2]);I=s[T.toLowerCase()+" "]}return I==null?null:I.join(", ")},getAllResponseHeaders:function(){return f?o:null},setRequestHeader:function(T,I){return f==null&&(T=Y[T.toLowerCase()]=Y[T.toLowerCase()]||T,D[T]=I),this},overrideMimeType:function(T){return f==null&&(l.mimeType=T),this},statusCode:function(T){var I;if(T)if(f)C.always(T[C.status]);else for(I in T)j[I]=[j[I],T[I]];return this},abort:function(T){var I=T||H;return n&&n.abort(I),ot(0,I),this}};if(v.promise(C),l.url=((e||l.url||Me.href)+"").replace(Yi,Me.protocol+"//"),l.type=t.method||t.type||l.method||l.type,l.dataTypes=(l.dataType||"*").toLowerCase().match(_)||[""],l.crossDomain==null){a=fe("a");try{a.href=l.url,a.href=a.href,l.crossDomain=Et.protocol+"//"+Et.host!=a.protocol+"//"+a.host}catch{l.crossDomain=!0}}if(Sn(Cn,l,t,C),l.data&&l.processData&&typeof l.data!="string"&&(l.data=r.param(l.data,l.traditional)),f)return C;c=r.event&&l.global,c&&r.active++===0&&r.event.trigger("ajaxStart"),l.type=l.type.toUpperCase(),l.hasContent=!Gi.test(l.type),i=l.url.replace(Fi,""),l.hasContent?l.data&&l.processData&&(l.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(l.data=l.data.replace(Bi,"+")):(d=l.url.slice(i.length),l.data&&(l.processData||typeof l.data=="string")&&(i+=(Tt.test(i)?"&":"?")+l.data,delete l.data),l.cache===!1&&(i=i.replace(Qi,"$1"),d=(Tt.test(i)?"&":"?")+"_="+bn.guid+++d),l.url=i+d),l.ifModified&&(r.lastModified[i]&&C.setRequestHeader("If-Modified-Since",r.lastModified[i]),r.etag[i]&&C.setRequestHeader("If-None-Match",r.etag[i])),(l.data&&l.hasContent&&l.contentType!==!1||t.contentType)&&C.setRequestHeader("Content-Type",l.contentType),C.setRequestHeader("Accept",l.dataTypes[0]&&l.accepts[l.dataTypes[0]]?l.accepts[l.dataTypes[0]]+(l.dataTypes[0]!=="*"?", "+wn+"; q=0.01":""):l.accepts["*"]);for(p in l.headers)C.setRequestHeader(p,l.headers[p]);if(l.beforeSend&&(l.beforeSend.call(h,C,l)===!1||f))return C.abort();if(H="abort",x.add(l.complete),C.done(l.success),C.fail(l.error),n=Sn(wt,l,t,C),!n)ot(-1,"No Transport");else{if(C.readyState=1,c&&y.trigger("ajaxSend",[C,l]),f)return C;l.async&&l.timeout>0&&(u=b.setTimeout(function(){C.abort("timeout")},l.timeout));try{f=!1,n.send(D,ot)}catch(T){if(f)throw T;ot(-1,T)}}function ot(T,I,jt,Nn){var oe,Nt,Le,Te,Ce,Z,kn;typeof T=="object"&&(I=T.statusText,jt=T.responses,Nn=T.headers,kn=T.responseURL,T=T.status),Z=I,!f&&(f=!0,u&&b.clearTimeout(u),n=void 0,o=Nn||"",C.readyState=T>0?4:0,oe=T>=200&&T<300||T===304,jt&&(Te=Zi(l,C,jt)),!oe&&r.inArray("script",l.dataTypes)>-1&&r.inArray("json",l.dataTypes)<0&&(l.converters["text script"]=function(){}),Te=_i(l,Te,C,oe),oe?(l.ifModified&&(Ce=C.getResponseHeader("Last-Modified"),Ce&&(r.lastModified[i]=Ce),Ce=C.getResponseHeader("etag"),Ce&&(r.etag[i]=Ce)),T===204||l.type==="HEAD"?Z="nocontent":T===304?Z="notmodified":(Z=Te.state,Nt=Te.data,Le=Te.error,oe=!Le)):(Le=Z,(T||!Z)&&(Z="error",T<0&&(T=0))),C.status=T,C.statusText=(I||Z)+"",C.responseURL=kn,oe?v.resolveWith(h,[Nt,Z,C]):v.rejectWith(h,[C,Z,Le]),C.statusCode(j),j=void 0,c&&y.trigger(oe?"ajaxSuccess":"ajaxError",[C,l,oe?Nt:Le]),x.fireWith(h,[C,Z]),c&&(y.trigger("ajaxComplete",[C,l]),--r.active||r.event.trigger("ajaxStop")))}return C},getJSON:function(e,t,n){return r.get(e,t,n,"json")},getScript:function(e,t){return r.get(e,void 0,t,"script")}}),r.each(["get","post"],function(e,t){r[t]=function(n,i,o,s){return(typeof i=="function"||i===null)&&(s=s||o,o=i,i=void 0),r.ajax(r.extend({url:n,type:t,dataType:s,data:i,success:o},r.isPlainObject(n)&&n))}}),r.ajaxPrefilter(function(e){var t;for(t in e.headers)t.toLowerCase()==="content-type"&&(e.contentType=e.headers[t]||"")}),r._evalUrl=function(e,t,n){return r.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,scriptAttrs:t.crossOrigin?{crossOrigin:t.crossOrigin}:void 0,converters:{"text script":function(){}},dataFilter:function(i){r.globalEval(i,t,n)}})},r.fn.extend({wrapAll:function(e){var t;return this[0]&&(typeof e=="function"&&(e=e.call(this[0])),t=r(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var n=this;n.firstElementChild;)n=n.firstElementChild;return n}).append(this)),this},wrapInner:function(e){return typeof e=="function"?this.each(function(t){r(this).wrapInner(e.call(this,t))}):this.each(function(){var t=r(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=typeof e=="function";return this.each(function(n){r(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){r(this).replaceWith(this.childNodes)}),this}}),r.expr.pseudos.hidden=function(e){return!r.expr.pseudos.visible(e)},r.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},r.ajaxSettings.xhr=function(){return new b.XMLHttpRequest};var Ji={0:200};r.ajaxTransport(function(e){var t;return{send:function(n,i){var o,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(o in e.xhrFields)s[o]=e.xhrFields[o];e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),!e.crossDomain&&!n["X-Requested-With"]&&(n["X-Requested-With"]="XMLHttpRequest");for(o in n)s.setRequestHeader(o,n[o]);t=function(u){return function(){t&&(t=s.onload=s.onerror=s.onabort=s.ontimeout=null,u==="abort"?s.abort():i(u==="error"?{status:s.status,statusText:s.statusText,responseURL:s.responseURL}:{status:Ji[s.status]||s.status,statusText:s.statusText,responses:(s.responseType||"text")==="text"?{text:s.responseText}:{binary:s.response},headers:s.getAllResponseHeaders(),responseURL:s.responseURL}))}},s.onload=t(),s.onabort=s.onerror=s.ontimeout=t("error"),t=t("abort");try{s.send(e.hasContent&&e.data||null)}catch(u){if(t)throw u}},abort:function(){t&&t()}}});function Dn(e){return e.scriptAttrs||!e.headers&&(e.crossDomain||e.async&&r.inArray("json",e.dataTypes)<0)}r.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},converters:{"text script":function(e){return r.globalEval(e),e}}}),r.ajaxPrefilter("script",function(e){e.cache===void 0&&(e.cache=!1),Dn(e)&&(e.type="GET")}),r.ajaxTransport("script",function(e){if(Dn(e)){var t,n;return{send:function(i,o){t=r("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(s){t.remove(),n=null,s&&o(s.type==="error"?404:200,s.type)}),N.head.appendChild(t[0])},abort:function(){n&&n()}}}});var jn=[],Dt=/(=)\?(?=&|$)|\?\?/;r.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=jn.pop()||r.expando+"_"+bn.guid++;return this[e]=!0,e}}),r.ajaxPrefilter("jsonp",function(e,t,n){var i,o,s,u=e.jsonp!==!1&&(Dt.test(e.url)?"url":typeof e.data=="string"&&(e.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&Dt.test(e.data)&&"data");return i=e.jsonpCallback=typeof e.jsonpCallback=="function"?e.jsonpCallback():e.jsonpCallback,u?e[u]=e[u].replace(Dt,"$1"+i):e.jsonp!==!1&&(e.url+=(Tt.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return s||r.error(i+" was not called"),s[0]},e.dataTypes[0]="json",o=b[i],b[i]=function(){s=arguments},n.always(function(){o===void 0?r(b).removeProp(i):b[i]=o,e[i]&&(e.jsonpCallback=t.jsonpCallback,jn.push(i)),s&&typeof o=="function"&&o(s[0]),s=o=void 0}),"script"}),r.ajaxPrefilter(function(e,t){typeof e.data!="string"&&!r.isPlainObject(e.data)&&!Array.isArray(e.data)&&!("processData"in t)&&(e.processData=!1),e.data instanceof b.FormData&&(e.contentType=!1)}),r.parseHTML=function(e,t,n){if(typeof e!="string"&&!Zt(e+""))return[];typeof t=="boolean"&&(n=t,t=!1);var i,o;return t||(t=new b.DOMParser().parseFromString("","text/html")),i=Yt.exec(e),o=!n&&[],i?[t.createElement(i[1])]:(i=tn([e],t,o),o&&o.length&&r(o).remove(),r.merge([],i.childNodes))},r.fn.load=function(e,t,n){var i,o,s,u=this,a=e.indexOf(" ");return a>-1&&(i=ce(e.slice(a)),e=e.slice(0,a)),typeof t=="function"?(n=t,t=void 0):t&&typeof t=="object"&&(o="POST"),u.length>0&&r.ajax({url:e,type:o||"GET",dataType:"html",data:t}).done(function(f){s=arguments,u.html(i?r("<div>").append(r.parseHTML(f)).find(i):f)}).always(n&&function(f,c){u.each(function(){n.apply(this,s||[f.responseText,c,f])})}),this},r.expr.pseudos.animated=function(e){return r.grep(r.timers,function(t){return e===t.elem}).length},r.offset={setOffset:function(e,t,n){var i,o,s,u,a,f,c,p=r.css(e,"position"),d=r(e),l={};p==="static"&&(e.style.position="relative"),a=d.offset(),s=r.css(e,"top"),f=r.css(e,"left"),c=(p==="absolute"||p==="fixed")&&(s+f).indexOf("auto")>-1,c?(i=d.position(),u=i.top,o=i.left):(u=parseFloat(s)||0,o=parseFloat(f)||0),typeof t=="function"&&(t=t.call(e,n,r.extend({},a))),t.top!=null&&(l.top=t.top-a.top+u),t.left!=null&&(l.left=t.left-a.left+o),"using"in t?t.using.call(e,l):d.css(l)}},r.fn.extend({offset:function(e){if(arguments.length)return e===void 0?this:this.each(function(o){r.offset.setOffset(this,e,o)});var t,n,i=this[0];if(i)return i.getClientRects().length?(t=i.getBoundingClientRect(),n=i.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var e,t,n,i=this[0],o={top:0,left:0};if(r.css(i,"position")==="fixed")t=i.getBoundingClientRect();else{for(t=this.offset(),n=i.ownerDocument,e=i.offsetParent||n.documentElement;e&&e!==n.documentElement&&r.css(e,"position")==="static";)e=e.offsetParent||n.documentElement;e&&e!==i&&e.nodeType===1&&r.css(e,"position")!=="static"&&(o=r(e).offset(),o.top+=r.css(e,"borderTopWidth",!0),o.left+=r.css(e,"borderLeftWidth",!0))}return{top:t.top-o.top-r.css(i,"marginTop",!0),left:t.left-o.left-r.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&r.css(e,"position")==="static";)e=e.offsetParent;return e||te})}}),r.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n=t==="pageYOffset";r.fn[e]=function(i){return V(this,function(o,s,u){var a;if(je(o)?a=o:o.nodeType===9&&(a=o.defaultView),u===void 0)return a?a[t]:o[s];a?a.scrollTo(n?a.pageXOffset:u,n?u:a.pageYOffset):o[s]=u},e,i,arguments.length)}}),r.each({Height:"height",Width:"width"},function(e,t){r.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,i){r.fn[i]=function(o,s){var u=arguments.length&&(n||typeof o!="boolean"),a=n||(o===!0||s===!0?"margin":"border");return V(this,function(f,c,p){var d;return je(f)?i.indexOf("outer")===0?f["inner"+e]:f.document.documentElement["client"+e]:f.nodeType===9?(d=f.documentElement,Math.max(f.body["scroll"+e],d["scroll"+e],f.body["offset"+e],d["offset"+e],d["client"+e])):p===void 0?r.css(f,c,a):r.style(f,c,p,a)},t,u?o:void 0,u)}})}),r.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){r.fn[t]=function(n){return this.on(t,n)}}),r.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,i){return this.on(t,e,n,i)},undelegate:function(e,t,n){return arguments.length===1?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)}}),r.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){r.fn[t]=function(n,i){return arguments.length>0?this.on(t,null,n,i):this.trigger(t)}}),r.proxy=function(e,t){var n,i,o;if(typeof t=="string"&&(n=e[t],t=e,e=n),typeof e=="function")return i=w.call(arguments,2),o=function(){return e.apply(t||this,i.concat(w.call(arguments)))},o.guid=e.guid=e.guid||r.guid++,o},r.holdReady=function(e){e?r.readyWait++:r.ready(!0)},r.expr[":"]=r.expr.filters=r.expr.pseudos,typeof define=="function"&&define.amd&&define("jquery",[],function(){return r});var Vi=b.jQuery,Xi=b.$;return r.noConflict=function(e){return b.$===r&&(b.$=Xi),e&&b.jQuery===r&&(b.jQuery=Vi),r},r}Ee(window);class Be{static isHtmlElement(g){if(g===null)return!1;try{return g instanceof Element||g instanceof Document}catch{return typeof g=="object"&&g.nodeType===Node.ELEMENT_NODE&&typeof g.style=="object"&&typeof g.ownerDocument=="object"}}static getComputedStyle(g,A){return Be.isHtmlElement(g)?document&&document.defaultView&&document.defaultView.getComputedStyle(g,A||null):null}static createCSS(g,A,k){if(g===null)throw new Error(`[CommonUtilities.createCSS] passed content is not a string. Is type ${typeof g}`);const w=document.head,O=document.createElement("style");typeof A=="string"&&(O.id=A),typeof k=="string"&&k.length>0&&O.setAttribute("media",k),typeof O.styleSheet=="object"?O.styleSheet.cssText=g:O.appendChild(document.createTextNode(g)),w.appendChild(O)}}class In{constructor(){this.inputTypeFileHandlerReference=null,this.customInputElements=null,this.onCompressionDoneCallback=void 0,this.originalCursor=void 0,this.timeoutId=void 0,this.processedEvent=!1,this.busyElementId="sl_busy_indicator",this.quality=.75}createCSS(){Be.createCSS(`
|
|
14
|
+
.sl-busy-indicator {
|
|
15
|
+
display: flex;
|
|
16
|
+
justify-content: center;
|
|
17
|
+
position: fixed;
|
|
18
|
+
top: 4px;
|
|
19
|
+
width: 100%;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.sl-busy-indicator span {
|
|
23
|
+
background-image: url("data:image/gif;base64,R0lGODlhHwAfAPUAAP///wAAAOjo6NLS0ry8vK6urqKiotzc3Li4uJqamuTk5NjY2KqqqqCgoLCwsMzMzPb29qioqNTU1Obm5jY2NiYmJlBQUMTExHBwcJKSklZWVvr6+mhoaEZGRsbGxvj4+EhISDIyMgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/hpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh+QQJCgAAACwAAAAAHwAfAAAG/0CAcEgUDAgFA4BiwSQexKh0eEAkrldAZbvlOD5TqYKALWu5XIwnPFwwymY0GsRgAxrwuJwbCi8aAHlYZ3sVdwtRCm8JgVgODwoQAAIXGRpojQwKRGSDCRESYRsGHYZlBFR5AJt2a3kHQlZlERN2QxMRcAiTeaG2QxJ5RnAOv1EOcEdwUMZDD3BIcKzNq3BJcJLUABBwStrNBtjf3GUGBdLfCtadWMzUz6cDxN/IZQMCvdTBcAIAsli0jOHSJeSAqmlhNr0awo7RJ19TJORqdAXVEEVZyjyKtE3Bg3oZE2iK8oeiKkFZGiCaggelSTiA2LhxiZLBSjZjBL2siNBOFQ84LxHA+mYEiRJzBO7ZCQIAIfkECQoAAAAsAAAAAB8AHwAABv9AgHBIFAwIBQPAUCAMBMSodHhAJK5XAPaKOEynCsIWqx0nCIrvcMEwZ90JxkINaMATZXfju9jf82YAIQxRCm14Ww4PChAAEAoPDlsAFRUgHkRiZAkREmoSEXiVlRgfQgeBaXRpo6MOQlZbERN0Qx4drRUcAAJmnrVDBrkVDwNjr8BDGxq5Z2MPyUQZuRgFY6rRABe5FgZjjdm8uRTh2d5b4NkQY0zX5QpjTc/lD2NOx+WSW0++2RJmUGJhmZVsQqgtCE6lqpXGjBchmt50+hQKEAEiht5gUcTIESR9GhlgE9IH0BiTkxrMmWIHDkose9SwcQlHDsOIk9ygiVbl5JgMLuV4HUmypMkTOkEAACH5BAkKAAAALAAAAAAfAB8AAAb/QIBwSBQMCAUDwFAgDATEqHR4QCSuVwD2ijhMpwrCFqsdJwiK73DBMGfdCcZCDWjAE2V347vY3/NmdXNECm14Ww4PChAAEAoPDltlDGlDYmQJERJqEhGHWARUgZVqaWZeAFZbERN0QxOeWwgAAmabrkMSZkZjDrhRkVtHYw+/RA9jSGOkxgpjSWOMxkIQY0rT0wbR2LQV3t4UBcvcF9/eFpdYxdgZ5hUYA73YGxruCbVjt78G7hXFqlhY/fLQwR0HIQdGuUrTz5eQdIc0cfIEwByGD0MKvcGSaFGjR8GyeAPhIUofQGNQSgrB4IsdOCqx7FHDBiYcOQshYjKDxliVDpRjunCjdSTJkiZP6AQBACH5BAkKAAAALAAAAAAfAB8AAAb/QIBwSBQMCAUDwFAgDATEqHR4QCSuVwD2ijhMpwrCFqsdJwiK73DBMGfdCcZCDWjAE2V347vY3/NmdXNECm14Ww4PChAAEAoPDltlDGlDYmQJERJqEhGHWARUgZVqaWZeAFZbERN0QxOeWwgAAmabrkMSZkZjDrhRkVtHYw+/RA9jSGOkxgpjSWOMxkIQY0rT0wbR2I3WBcvczltNxNzIW0693MFYT7bTumNQqlisv7BjswAHo64egFdQAbj0RtOXDQY6VAAUakihN1gSLaJ1IYOGChgXXqEUpQ9ASRlDYhT0xQ4cACJDhqDD5mRKjCAYuArjBmVKDP9+VRljMyMHDwcfuBlBooSCBQwJiqkJAgAh+QQJCgAAACwAAAAAHwAfAAAG/0CAcEgUDAgFA8BQIAwExKh0eEAkrlcA9oo4TKcKwharHScIiu9wwTBn3QnGQg1owBNld+O72N/zZnVzRApteFsODwoQABAKDw5bZQxpQ2JkCRESahIRh1gEVIGVamlmXgBWWxETdEMTnlsIAAJmm65DEmZGYw64UZFbR2MPv0QPY0hjpMYKY0ljjMZCEGNK09MG0diN1gXL3M5bTcTcyFtOvdzBWE+207pjUKpYrL+wY7MAB4EerqZjUAG4lKVCBwMbvnT6dCXUkEIFK0jUkOECFEeQJF2hFKUPAIkgQwIaI+hLiJAoR27Zo4YBCJQgVW4cpMYDBpgVZKL59cEBhw+U+QROQ4bBAoUlTZ7QCQIAIfkECQoAAAAsAAAAAB8AHwAABv9AgHBIFAwIBQPAUCAMBMSodHhAJK5XAPaKOEynCsIWqx0nCIrvcMEwZ90JxkINaMATZXfju9jf82Z1c0QKbXhbDg8KEAAQCg8OW2UMaUNiZAkREmoSEYdYBFSBlWppZl4AVlsRE3RDE55bCAACZpuuQxJmRmMOuFGRW0djD79ED2NIY6TGCmNJY4zGQhBjStPTFBXb21DY1VsGFtzbF9gAzlsFGOQVGefIW2LtGhvYwVgDD+0V17+6Y6BwaNfBwy9YY2YBcMAPnStTY1B9YMdNiyZOngCFGuIBxDZAiRY1eoTvE6UoDEIAGrNSUoNBUuzAaYlljxo2M+HIeXiJpRsRNMaq+JSFCpsRJEqYOPH2JQgAIfkECQoAAAAsAAAAAB8AHwAABv9AgHBIFAwIBQPAUCAMBMSodHhAJK5XAPaKOEynCsIWqx0nCIrvcMEwZ90JxkINaMATZXfjywjlzX9jdXNEHiAVFX8ODwoQABAKDw5bZQxpQh8YiIhaERJqEhF4WwRDDpubAJdqaWZeAByoFR0edEMTolsIAA+yFUq2QxJmAgmyGhvBRJNbA5qoGcpED2MEFrIX0kMKYwUUslDaj2PA4soGY47iEOQFY6vS3FtNYw/m1KQDYw7mzFhPZj5JGzYGipUtESYowzVmF4ADgOCBCZTgFQAxZBJ4AiXqT6ltbUZhWdToUSR/Ii1FWbDnDkUyDQhJsQPn5ZU9atjUhCPHVhgTNy/RSKsiqKFFbUaQKGHiJNyXIAAh+QQJCgAAACwAAAAAHwAfAAAG/0CAcEh8JDAWCsBQIAwExKhU+HFwKlgsIMHlIg7TqQeTLW+7XYIiPGSAymY0mrFgA0LwuLzbCC/6eVlnewkADXVECgxcAGUaGRdQEAoPDmhnDGtDBJcVHQYbYRIRhWgEQwd7AB52AGt7YAAIchETrUITpGgIAAJ7ErdDEnsCA3IOwUSWaAOcaA/JQ0amBXKa0QpyBQZyENFCEHIG39HcaN7f4WhM1uTZaE1y0N/TacZoyN/LXU+/0cNyoMxCUytYLjm8AKSS46rVKzmxADhjlCACMFGkBiU4NUQRxS4OHijwNqnSJS6ZovzRyJAQo0NhGrgs5bIPmwWLCLHsQsfhxBWTe9QkOzCwC8sv5Ho127akyRM7QQAAOwAAAAAAAAAAAA==");
|
|
24
|
+
background-repeat: no-repeat;
|
|
25
|
+
background-position: 100% 50%;
|
|
26
|
+
background-size: 1.5rem 1.5rem;
|
|
27
|
+
display: inline-flex;
|
|
28
|
+
height: 1.5rem;
|
|
29
|
+
width: 1.5rem;
|
|
30
|
+
}`)}enableBusyIndicator(){const g=Be.getComputedStyle(document.body);if(g===null)return;this.originalCursor=g.getPropertyValue("cursor"),document.body.style.cursor="progress";const A=document.createElement("div");A.id=this.busyElementId,A.classList.add("sl-busy-indicator"),A.insertAdjacentHTML("afterbegin","<span></span>"),document.body.appendChild(A)}disableBusyIndicator(){globalThis.clearTimeout(this.timeoutId),typeof this.originalCursor=="string"&&(document.body.style.cursor=this.originalCursor),document.getElementById(this.busyElementId)?.remove()}async compressImage(g,{quality:A=1,type:k=g.type}){let w;try{w=await globalThis.createImageBitmap(g)}catch{return Promise.resolve(null)}const O=document.createElement("canvas");O.width=w.width,O.height=w.height;const P=O.getContext("2d");if(P===null)return Promise.resolve(null);P.drawImage(w,0,0);let M;try{M=await new Promise(Q=>{O.toBlob(Q,k,A)})}catch{return Promise.resolve(null)}return M===null?Promise.resolve(null):new File([M],g.name,{type:M.type})}redispatchEvent(g,A){const k=A;k.disabled=!1;const w={bubbles:g.bubbles,cancelable:g.cancelable,composed:g.composed,currentTarget:g.currentTarget,defaultPrevented:g.defaultPrevented,eventPhase:g.eventPhase,isTrusted:g.isTrusted,returnValue:g.returnValue,srcElement:g.srcElement,target:g.target,timeStamp:g.timeStamp,type:g.type};if(typeof jQuery>"u"){const O=new CustomEvent(g.type,w);k.parentNode?.dispatchEvent(O)}else{const O=$.Event(g.type,w);$(A).trigger(O)}this.processedEvent=!1}async processImages(g,A){const k=A;if(typeof k.files>"u"){this.redispatchEvent(g,k);return}const w=k.files;if(w===null||w.length===0){this.redispatchEvent(g,k);return}this.timeoutId=Number(globalThis.setTimeout(this.enableBusyIndicator.bind(this),1e3));const O=["image/jpeg","image/png","image/webp"],P=R=>R===g.target;let M;if(Array.isArray(this.customInputElements)&&(M=this.customInputElements.find(P),typeof M>"u"))return;const Q=new DataTransfer,Fe={quality:this.quality,type:"image/jpeg"},le=async R=>{if(R.type.startsWith("image")===!1||O.includes(R.type)===!1){Q.items.add(R);return}const Se=Object.assign(Fe,{type:R.type}),ee=await this.compressImage(R,Se);ee instanceof File&&(ee.size<R.size?Q.items.add(ee):Q.items.add(R))};for(let R=0,Se=w.length;R<Se;R+=1)await le(w[R]);g.target.files=Q.files,this.disableBusyIndicator(),typeof this.onCompressionDoneCallback=="function"&&this.onCompressionDoneCallback(w,Q.files),this.redispatchEvent(g,A)}handlejQueryChangeEvent(g){const A=g.originalEvent;if(typeof A>"u"||A.target===null)return;const k=$(A.target);this.processedEvent||!k.is('input[type="file"]')||g.type==="change"&&(g.eventPhase===1&&(this.processedEvent=!0),g.stopPropagation(),k.prop("disabled",!0),this.processImages(A,k[0]))}handleChangeEvent(g){const A=g.target;this.processedEvent||A===null||g.type==="change"&&(A.nodeName.toLowerCase()!=="input"||A.type!=="file"||(g.eventPhase===1&&(this.processedEvent=!0),g.stopPropagation(),A.disabled=!0,this.processImages(g,A)))}addImageOptimization(g){typeof g=="string"&&(this.customInputElements=Array.from(document.querySelectorAll(g)))}uninstall(){this.onCompressionDoneCallback=void 0,this.inputTypeFileHandlerReference!==null&&document.removeEventListener("change",this.inputTypeFileHandlerReference)}install(g,A,k=.75){this.inputTypeFileHandlerReference=this.handleChangeEvent.bind(this),this.quality=k,this.onCompressionDoneCallback=A;const w={capture:!0};window.jQuery?$(document).on("change",this.handlejQueryChangeEvent.bind(this)):document.addEventListener("change",this.inputTypeFileHandlerReference,w),this.createCSS(),typeof g=="string"&&this.addImageOptimization(g)}}we.OptimizeImage=In}));
|
|
@@ -1 +1,30 @@
|
|
|
1
|
-
|
|
1
|
+
(function(b){typeof globalThis!="object"&&(this?g():(b.defineProperty(b.prototype,"_T_",{configurable:!0,get:g}),_T_));function g(){var A=this||self;A.globalThis=A,delete b.prototype._T_}})(Object);/*!
|
|
2
|
+
* jQuery JavaScript Library v4.1.0
|
|
3
|
+
* https://jquery.com/
|
|
4
|
+
*
|
|
5
|
+
* Copyright OpenJS Foundation and other contributors
|
|
6
|
+
* Released under the MIT license
|
|
7
|
+
* https://jquery.com/license/
|
|
8
|
+
*
|
|
9
|
+
* Date: 2026-11-17T18:40Z
|
|
10
|
+
*/function Ji(b,g){if(typeof b>"u"||!b.document)throw new Error("jQuery requires a window with a document");var A=[],k=Object.getPrototypeOf,w=A.slice,O=A.flat?function(e){return A.flat.call(e)}:function(e){return A.concat.apply([],e)},P=A.push,M=A.indexOf,Q={},Me=Q.toString,le=Q.hasOwnProperty,R=le.toString,we=R.call(Object),ee={};function Ee(e){return e==null?e+"":typeof e=="object"?Q[Me.call(e)]||"object":typeof e}function Se(e){return e!=null&&e===e.window}function Le(e){var t=!!e&&e.length,n=Ee(e);return typeof e=="function"||Se(e)?!1:n==="array"||t===0||typeof t=="number"&&t>0&&t-1 in e}var N=b.document,Nn={type:!0,src:!0,nonce:!0,noModule:!0};function jt(e,t,n){n=n||N;var i,o=n.createElement("script");o.text=e;for(i in Nn)t&&t[i]&&(o[i]=t[i]);n.head.appendChild(o).parentNode&&o.parentNode.removeChild(o)}var Nt="4.1.0",kn=/HTML$/i,r=function(e,t){return new r.fn.init(e,t)};r.fn=r.prototype={jquery:Nt,constructor:r,length:0,toArray:function(){return w.call(this)},get:function(e){return e==null?w.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=r.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return r.each(this,e)},map:function(e){return this.pushStack(r.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(w.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(r.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(r.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()}},r.extend=r.fn.extend=function(){var e,t,n,i,o,s,u=arguments[0]||{},a=1,f=arguments.length,c=!1;for(typeof u=="boolean"&&(c=u,u=arguments[a]||{},a++),typeof u!="object"&&typeof u!="function"&&(u={}),a===f&&(u=this,a--);a<f;a++)if((e=arguments[a])!=null)for(t in e)i=e[t],!(t==="__proto__"||u===i)&&(c&&i&&(r.isPlainObject(i)||(o=Array.isArray(i)))?(n=u[t],o&&!Array.isArray(n)?s=[]:!o&&!r.isPlainObject(n)?s={}:s=n,o=!1,u[t]=r.extend(c,s,i)):i!==void 0&&(u[t]=i));return u},r.extend({expando:"jQuery"+(Nt+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!e||Me.call(e)!=="[object Object]"?!1:(t=k(e),t?(n=le.call(t,"constructor")&&t.constructor,typeof n=="function"&&R.call(n)===we):!0)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){jt(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,i=0;if(Le(e))for(n=e.length;i<n&&t.call(e[i],i,e[i])!==!1;i++);else for(i in e)if(t.call(e[i],i,e[i])===!1)break;return e},text:function(e){var t,n,i="",o=e.nodeType;if(!o)for(t=0;t<e.length;t++)n=e[t],i+=r.text(n);return o===1||o===11?e.textContent:o===9?e.documentElement.textContent:o===3||o===4?e.nodeValue:i},makeArray:function(e,t){var n=t||[];return e!=null&&(Le(Object(e))?r.merge(n,typeof e=="string"?[e]:e):P.call(n,e)),n},inArray:function(e,t,n){return t==null?-1:M.call(t,e,n)},isXMLDoc:function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!kn.test(t||n&&n.nodeName||"HTML")},contains:function(e,t){var n=t&&t.parentNode;return e===n||!!(n&&n.nodeType===1&&(e.contains?e.contains(n):e.compareDocumentPosition&&e.compareDocumentPosition(n)&16))},merge:function(e,t){for(var n=+t.length,i=0,o=e.length;i<n;i++)e[o++]=t[i];return e.length=o,e},grep:function(e,t,n){for(var i,o=[],s=0,u=e.length,a=!n;s<u;s++)i=!t(e[s],s),i!==a&&o.push(e[s]);return o},map:function(e,t,n){var i,o,s=0,u=[];if(Le(e))for(i=e.length;s<i;s++)o=t(e[s],s,n),o!=null&&u.push(o);else for(s in e)o=t(e[s],s,n),o!=null&&u.push(o);return O(u)},guid:1,support:ee}),typeof Symbol=="function"&&(r.fn[Symbol.iterator]=A[Symbol.iterator]),r.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){Q["[object "+t+"]"]=t.toLowerCase()});function S(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var In=A.pop,E="[\\x20\\t\\r\\n\\f]",De=/^--/,q=N.documentMode,Be=q&&new RegExp(":enabled|:disabled|\\["+E+"*name"+E+"*="+E+`*(?:''|"")`),je=new RegExp("^"+E+"+|((?:^|[^\\\\])(?:\\\\.)*)"+E+"+$","g"),On="\\\\[\\da-fA-F]{1,6}"+E+"?|\\\\[^\\da-fA-F\\r\\n\\f]",se="(?:"+On+"|[\\w-]|[^\\0-\\x7f])+",kt=new RegExp("^"+E+"*([>+~]|"+E+")"+E+"*"),Rn=new RegExp(E+"|>"),rt=/[+~]/,te=N.documentElement,qn=te.matches||te.msMatchesSelector;function Fe(){var e=[];function t(n,i){return e.push(n+" ")>r.expr.cacheLength&&delete t[e.shift()],t[n+" "]=i}return t}function ot(e){return e&&typeof e.querySelectorAll<"u"&&e}var It="\\["+E+"*("+se+")(?:"+E+"*([*^$|!~]?=)"+E+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+se+"))|)"+E+"*\\]",Ot=":("+se+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+It+")*)|.*)\\)|)",st={ID:new RegExp("^#("+se+")"),CLASS:new RegExp("^\\.("+se+")"),TAG:new RegExp("^("+se+"|[*])"),ATTR:new RegExp("^"+It),PSEUDO:new RegExp("^"+Ot),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+E+"*(even|odd|(([+-]|)(\\d*)n|)"+E+"*(?:([+-]|)"+E+"*(\\d+)|))"+E+"*\\)|)","i")},Hn=new RegExp(Ot),Pn=new RegExp("\\\\[\\da-fA-F]{1,6}"+E+"?|\\\\([^\\da-fA-F\\r\\n\\f])","g"),Mn=function(e,t){var n="0x"+e.slice(1)-0;return t||(!n||n>1114111||n>=55296&&n<57344?"\uFFFD":n<65536?String.fromCharCode(n):String.fromCharCode(n-65536>>10|55296,n-65536&1023|56320))};function ne(e){return e.replace(Pn,Mn)}function Ne(e){r.error("Syntax error, unrecognized expression: "+e)}var Ln=new RegExp("^"+E+"*,"+E+"*"),Rt=Fe();function ke(e,t){var n,i,o,s,u,a,f,c=Rt[e+" "];if(c)return t?0:c.slice(0);for(u=e,a=[],f=r.expr.preFilter;u;){(!n||(i=Ln.exec(u)))&&(i&&(u=u.slice(i[0].length)||u),a.push(o=[])),n=!1,(i=kt.exec(u))&&(n=i.shift(),o.push({value:n,type:i[0].replace(je," ")}),u=u.slice(n.length));for(s in st)(i=r.expr.match[s].exec(u))&&(!f[s]||(i=f[s](i)))&&(n=i.shift(),o.push({value:n,type:s,matches:i}),u=u.slice(n.length));if(!n)break}return t?u.length:u?Ne(e):Rt(e,a).slice(0)}var Bn={ATTR:function(e){return e[1]=ne(e[1]),e[3]=ne(e[3]||e[4]||e[5]||""),e[2]==="~="&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),e[1].slice(0,3)==="nth"?(e[3]||Ne(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*(e[3]==="even"||e[3]==="odd")),e[5]=+(e[7]+e[8]||e[3]==="odd")):e[3]&&Ne(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return st.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&Hn.test(n)&&(t=ke(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}};function Qe(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function V(e,t,n,i,o,s,u){var a=0,f=e.length,c=n==null;if(Ee(n)==="object"){o=!0;for(a in n)V(e,t,a,n[a],!0,s,u)}else if(i!==void 0&&(o=!0,typeof i!="function"&&(u=!0),c&&(u?(t.call(e,i),t=null):(c=t,t=function(p,d,l){return c.call(r(p),l)})),t))for(;a<f;a++)t(e[a],n,u?i:i.call(e[a],a,t(e[a],n)));return o?e:c?t.call(e):f?t(e[0],n):s}var _=/[^\x20\t\r\n\f]+/g;r.fn.extend({attr:function(e,t){return V(this,r.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){r.removeAttr(this,e)})}}),r.extend({attr:function(e,t,n){var i,o,s=e.nodeType;if(!(s===3||s===8||s===2)){if(typeof e.getAttribute>"u")return r.prop(e,t,n);if((s!==1||!r.isXMLDoc(e))&&(o=r.attrHooks[t.toLowerCase()]),n!==void 0){if(n===null||n===!1&&t.toLowerCase().indexOf("aria-")!==0){r.removeAttr(e,t);return}return o&&"set"in o&&(i=o.set(e,n,t))!==void 0?i:(e.setAttribute(t,n),n)}return o&&"get"in o&&(i=o.get(e,t))!==null?i:(i=e.getAttribute(t),i??void 0)}},attrHooks:{},removeAttr:function(e,t){var n,i=t&&t.match(_);if(i&&e.nodeType===1)for(n=0;n<i.length;n++)e.removeAttribute(i[n])}}),q&&(r.attrHooks.type={set:function(e,t){if(t==="radio"&&S(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}});var Fn=/^-$|([\0-\x1f\x7f]|^-?\d)|[^\x80-\uFFFF\w-]/g;function Qn(e,t){return t?e==="\0"?"\uFFFD":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}r.escapeSelector=function(e){return(e+"").replace(Fn,Qn)};var Wn=A.sort,Un=A.splice,ut;function Gn(e,t){if(e==t)return ut=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1,n&1?e==N||e.ownerDocument==N&&r.contains(N,e)?-1:t==N||t.ownerDocument==N&&r.contains(N,t)?1:0:n&4?-1:1)}r.uniqueSort=function(e){var t,n=1;if(ut=!1,Wn.call(e,Gn),ut){for(t=1;t<e.length;t++)e[t]!==e[t-1]&&(e[n++]=e[t]);Array.isArray(e)?e.length=n:Un.call(e,n)}return e},r.fn.uniqueSort=function(){return this.pushStack(r.uniqueSort(w.apply(this)))};var pe,We,F,qt,X,K=0,Yn=0,Ht=Fe(),Pt=Fe(),Ue=Fe(),Zn=new RegExp(E+"+","g"),_n=new RegExp("^"+se+"$"),Mt=r.extend({needsContext:new RegExp("^"+E+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+E+"*((?:-\\d)?\\d*)"+E+"*\\)|)(?=[^-]|$)","i")},st),Jn=/^(?:input|select|textarea|button)$/i,Vn=/^h\d$/i,Xn=/^(?:#([\w-]+)|(\.?[a-z][\w-]*))$/i,Kn=function(){de()},$n=Ge(function(e){return e.disabled===!0&&S(e,"fieldset")},{dir:"parentNode",next:"legend"});function U(e,t,n,i){var o,s,u,a,f,c,p,d=t&&t.ownerDocument,l=t?t.nodeType:9;if(n=n||[],typeof e!="string"||!e||l!==1&&l!==9&&l!==11)return n;if(!i&&(de(t),t=t||F,X)){if(l!==11&&(f=Xn.exec(e))){if(o=f[1]){if(l===9)return(u=t.getElementById(o))&&P.call(n,u),n;if(d&&(u=d.getElementById(o))&&r.contains(t,u))return P.call(n,u),n}else if(f[2])return P.apply(n,t.querySelectorAll(e)),n}if(!Ue[e+" "]&&(!Be||!Be.test(e))){if(p=e,d=t,l===1&&(Rn.test(e)||kt.test(e))){for(d=rt.test(e)&&ot(t.parentNode)||t,(d!=t||q)&&((a=t.getAttribute("id"))?a=r.escapeSelector(a):t.setAttribute("id",a=r.expando)),c=ke(e),s=c.length;s--;)c[s]=(a?"#"+a:":scope")+" "+Qe(c[s]);p=c.join(",")}try{return P.apply(n,d.querySelectorAll(p)),n}catch{Ue(e,!0)}finally{a===r.expando&&t.removeAttribute("id")}}}return Ft(e.replace(je,"$1"),t,n,i)}function J(e){return e[r.expando]=!0,e}function zn(e){return function(t){return S(t,"input")&&t.type===e}}function ei(e){return function(t){return(S(t,"input")||S(t,"button"))&&t.type===e}}function Lt(e){return function(t){return"form"in t?t.parentNode&&t.disabled===!1?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&$n(t)===e:t.disabled===e:"label"in t?t.disabled===e:!1}}function ue(e){return J(function(t){return t=+t,J(function(n,i){for(var o,s=e([],n.length,t),u=s.length;u--;)n[o=s[u]]&&(n[o]=!(i[o]=n[o]))})})}function de(e){var t,n=e?e.ownerDocument||e:N;n==F||n.nodeType!==9||(F=n,qt=F.documentElement,X=!r.isXMLDoc(F),q&&N!=F&&(t=F.defaultView)&&t.top!==t&&t.addEventListener("unload",Kn))}U.matches=function(e,t){return U(e,null,null,t)},U.matchesSelector=function(e,t){if(de(e),X&&!Ue[t+" "]&&(!Be||!Be.test(t)))try{return qn.call(e,t)}catch{Ue(t,!0)}return U(t,F,null,[e]).length>0},r.expr={cacheLength:50,createPseudo:J,match:Mt,find:{ID:function(e,t){if(typeof t.getElementById<"u"&&X){var n=t.getElementById(e);return n?[n]:[]}},TAG:function(e,t){return q&&De.test(e)?[]:t.querySelectorAll(e==="*"?e:r.escapeSelector(e))},CLASS:function(e,t){if(X)return q&&De.test(e)?t.getElementsByClassName(e):t.querySelectorAll("."+r.escapeSelector(e))}},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:Bn,filter:{ID:function(e){var t=ne(e);return function(n){return n.getAttribute("id")===t}},TAG:function(e){var t=ne(e).toLowerCase();return e==="*"?function(){return!0}:function(n){return S(n,t)}},CLASS:function(e){var t=Ht[e+" "];return t||(t=new RegExp("(^|"+E+")"+e+"("+E+"|$)"))&&Ht(e,function(n){return t.test(typeof n.className=="string"&&n.className||typeof n.getAttribute<"u"&&n.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(i){var o=r.attr(i,e);return o==null?t==="!=":t?(o+="",t==="="?o===n:t==="!="?o!==n:t==="^="?n&&o.indexOf(n)===0:t==="*="?n&&o.indexOf(n)>-1:t==="$="?n&&o.slice(-n.length)===n:t==="~="?(" "+o.replace(Zn," ")+" ").indexOf(n)>-1:t==="|="?o===n||o.slice(0,n.length+1)===n+"-":!1):!0}},CHILD:function(e,t,n,i,o){var s=e.slice(0,3)!=="nth",u=e.slice(-4)!=="last",a=t==="of-type";return i===1&&o===0?function(f){return!!f.parentNode}:function(f,c,p){var d,l,h,y,v,x=s!==u?"nextSibling":"previousSibling",j=f.parentNode,D=a&&f.nodeName.toLowerCase(),Y=!p&&!a,H=!1;if(j){if(s){for(;x;){for(h=f;h=h[x];)if(a?S(h,D):h.nodeType===1)return!1;v=x=e==="only"&&!v&&"nextSibling"}return!0}if(v=[u?j.firstChild:j.lastChild],u&&Y){for(l=j[r.expando]||(j[r.expando]={}),d=l[e]||[],y=d[0]===K&&d[1],H=y&&d[2],h=y&&j.childNodes[y];h=++y&&h&&h[x]||(H=y=0)||v.pop();)if(h.nodeType===1&&++H&&h===f){l[e]=[K,y,H];break}}else if(Y&&(l=f[r.expando]||(f[r.expando]={}),d=l[e]||[],y=d[0]===K&&d[1],H=y),H===!1)for(;(h=++y&&h&&h[x]||(H=y=0)||v.pop())&&!((a?S(h,D):h.nodeType===1)&&++H&&(Y&&(l=h[r.expando]||(h[r.expando]={}),l[e]=[K,H]),h===f)););return H-=o,H===i||H%i===0&&H/i>=0}}},PSEUDO:function(e,t){var n=r.expr.pseudos[e]||r.expr.setFilters[e.toLowerCase()]||Ne("unsupported pseudo: "+e);return n[r.expando]?n(t):n}},pseudos:{not:J(function(e){var t=[],n=[],i=lt(e.replace(je,"$1"));return i[r.expando]?J(function(o,s,u,a){for(var f,c=i(o,null,a,[]),p=o.length;p--;)(f=c[p])&&(o[p]=!(s[p]=f))}):function(o,s,u){return t[0]=o,i(t,null,u,n),t[0]=null,!n.pop()}}),has:J(function(e){return function(t){return U(e,t).length>0}}),contains:J(function(e){return e=ne(e),function(t){return(t.textContent||r.text(t)).indexOf(e)>-1}}),lang:J(function(e){return _n.test(e||"")||Ne("unsupported lang: "+e),e=ne(e).toLowerCase(),function(t){var n;do if(n=X?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||n.indexOf(e+"-")===0;while((t=t.parentNode)&&t.nodeType===1);return!1}}),target:function(e){var t=b.location&&b.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===qt},focus:function(e){return e===F.activeElement&&F.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},enabled:Lt(!1),disabled:Lt(!0),checked:function(e){return S(e,"input")&&!!e.checked||S(e,"option")&&!!e.selected},selected:function(e){return q&&e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.expr.pseudos.empty(e)},header:function(e){return Vn.test(e.nodeName)},input:function(e){return Jn.test(e.nodeName)},button:function(e){return S(e,"input")&&e.type==="button"||S(e,"button")},text:function(e){return S(e,"input")&&e.type==="text"},first:ue(function(){return[0]}),last:ue(function(e,t){return[t-1]}),eq:ue(function(e,t,n){return[n<0?n+t:n]}),even:ue(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:ue(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:ue(function(e,t,n){var i;for(n<0?i=n+t:n>t?i=t:i=n;--i>=0;)e.push(i);return e}),gt:ue(function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e})}},r.expr.pseudos.nth=r.expr.pseudos.eq;for(pe in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.expr.pseudos[pe]=zn(pe);for(pe in{submit:!0,reset:!0})r.expr.pseudos[pe]=ei(pe);function Bt(){}Bt.prototype=r.expr.pseudos,r.expr.setFilters=new Bt;function Ge(e,t,n){var i=t.dir,o=t.next,s=o||i,u=n&&s==="parentNode",a=Yn++;return t.first?function(f,c,p){for(;f=f[i];)if(f.nodeType===1||u)return e(f,c,p);return!1}:function(f,c,p){var d,l,h=[K,a];if(p){for(;f=f[i];)if((f.nodeType===1||u)&&e(f,c,p))return!0}else for(;f=f[i];)if(f.nodeType===1||u)if(l=f[r.expando]||(f[r.expando]={}),o&&S(f,o))f=f[i]||f;else{if((d=l[s])&&d[0]===K&&d[1]===a)return h[2]=d[2];if(l[s]=h,h[2]=e(f,c,p))return!0}return!1}}function at(e){return e.length>1?function(t,n,i){for(var o=e.length;o--;)if(!e[o](t,n,i))return!1;return!0}:e[0]}function ti(e,t,n){for(var i=0,o=t.length;i<o;i++)U(e,t[i],n);return n}function Ye(e,t,n,i,o){for(var s,u=[],a=0,f=e.length,c=t!=null;a<f;a++)(s=e[a])&&(!n||n(s,i,o))&&(u.push(s),c&&t.push(a));return u}function ft(e,t,n,i,o,s){return i&&!i[r.expando]&&(i=ft(i)),o&&!o[r.expando]&&(o=ft(o,s)),J(function(u,a,f,c){var p,d,l,h,y=[],v=[],x=a.length,j=u||ti(t||"*",f.nodeType?[f]:f,[]),D=e&&(u||!t)?Ye(j,y,e,f,c):j;if(n?(h=o||(u?e:x||i)?[]:a,n(D,h,f,c)):h=D,i)for(p=Ye(h,v),i(p,[],f,c),d=p.length;d--;)(l=p[d])&&(h[v[d]]=!(D[v[d]]=l));if(u){if(o||e){if(o){for(p=[],d=h.length;d--;)(l=h[d])&&p.push(D[d]=l);o(null,h=[],p,c)}for(d=h.length;d--;)(l=h[d])&&(p=o?M.call(u,l):y[d])>-1&&(u[p]=!(a[p]=l))}}else h=Ye(h===a?h.splice(x,h.length):h),o?o(null,a,h,c):P.apply(a,h)})}function ct(e){for(var t,n,i,o=e.length,s=r.expr.relative[e[0].type],u=s||r.expr.relative[" "],a=s?1:0,f=Ge(function(d){return d===t},u,!0),c=Ge(function(d){return M.call(t,d)>-1},u,!0),p=[function(d,l,h){var y=!s&&(h||l!=We)||((t=l).nodeType?f(d,l,h):c(d,l,h));return t=null,y}];a<o;a++)if(n=r.expr.relative[e[a].type])p=[Ge(at(p),n)];else{if(n=r.expr.filter[e[a].type].apply(null,e[a].matches),n[r.expando]){for(i=++a;i<o&&!r.expr.relative[e[i].type];i++);return ft(a>1&&at(p),a>1&&Qe(e.slice(0,a-1).concat({value:e[a-2].type===" "?"*":""})).replace(je,"$1"),n,a<i&&ct(e.slice(a,i)),i<o&&ct(e=e.slice(i)),i<o&&Qe(e))}p.push(n)}return at(p)}function ni(e,t){var n=t.length>0,i=e.length>0,o=function(s,u,a,f,c){var p,d=0,l="0",h=0,y=s&&[],v=[],x=We,j=s||i&&r.expr.find.TAG("*",c),D=K+=x==null?1:Math.random()||.1;for(c&&(We=u==F||u||c);l<j.length;l++){if(p=j[l],i&&p){for(!u&&p.ownerDocument!=F&&(de(p),a=!X),d=0;d<e.length;d++)if(e[d](p,u||F,a)){P.call(f,p);break}c&&(K=D)}n&&((p=d>=e.length&&p)&&h--,s&&y.push(p))}if(h+=l,n&&l!==h){for(d=0;d<t.length;d++)t[d](y,v,u,a);if(s){if(h>0)for(;l--;)y[l]||v[l]||(v[l]=In.call(f));v=Ye(v)}P.apply(f,v),c&&!s&&v.length>0&&h+t.length>1&&r.uniqueSort(f)}return c&&(K=D,We=x),y};return n?J(o):o}function lt(e,t){var n,i=[],o=[],s=Pt[e+" "];if(!s){for(t||(t=ke(e)),n=t.length;n--;)s=ct(t[n]),s[r.expando]?i.push(s):o.push(s);s=Pt(e,ni(o,i)),s.selector=e}return s}function Ft(e,t,n,i){var o,s,u,a,f,c=typeof e=="function"&&e,p=!i&&ke(e=c.selector||e);if(n=n||[],p.length===1){if(s=p[0]=p[0].slice(0),s.length>2&&(u=s[0]).type==="ID"&&t.nodeType===9&&X&&r.expr.relative[s[1].type]){if(t=(r.expr.find.ID(ne(u.matches[0]),t)||[])[0],t)c&&(t=t.parentNode);else return n;e=e.slice(s.shift().value.length)}for(o=Mt.needsContext.test(e)?0:s.length;o--&&(u=s[o],!r.expr.relative[a=u.type]);)if((f=r.expr.find[a])&&(i=f(ne(u.matches[0]),rt.test(s[0].type)&&ot(t.parentNode)||t))){if(s.splice(o,1),e=i.length&&Qe(s),!e)return P.apply(n,i),n;break}}return(c||lt(e,p))(i,t,!X,n,!t||rt.test(e)&&ot(t.parentNode)||t),n}de(),r.find=U,U.compile=lt,U.select=Ft,U.setDocument=de,U.tokenize=ke;function he(e,t,n){for(var i=[],o=n!==void 0;(e=e[t])&&e.nodeType!==9;)if(e.nodeType===1){if(o&&r(e).is(n))break;i.push(e)}return i}function Qt(e,t){for(var n=[];e;e=e.nextSibling)e.nodeType===1&&e!==t&&n.push(e);return n}var Wt=r.expr.match.needsContext,Ut=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function Gt(e){return e[0]==="<"&&e[e.length-1]===">"&&e.length>=3}function pt(e,t,n){return typeof t=="function"?r.grep(e,function(i,o){return!!t.call(i,o,i)!==n}):t.nodeType?r.grep(e,function(i){return i===t!==n}):typeof t!="string"?r.grep(e,function(i){return M.call(t,i)>-1!==n}):r.filter(t,e,n)}r.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),t.length===1&&i.nodeType===1?r.find.matchesSelector(i,e)?[i]:[]:r.find.matches(e,r.grep(t,function(o){return o.nodeType===1}))},r.fn.extend({find:function(e){var t,n,i=this.length,o=this;if(typeof e!="string")return this.pushStack(r(e).filter(function(){for(t=0;t<i;t++)if(r.contains(o[t],this))return!0}));for(n=this.pushStack([]),t=0;t<i;t++)r.find(e,o[t],n);return i>1?r.uniqueSort(n):n},filter:function(e){return this.pushStack(pt(this,e||[],!1))},not:function(e){return this.pushStack(pt(this,e||[],!0))},is:function(e){return!!pt(this,typeof e=="string"&&Wt.test(e)?r(e):e||[],!1).length}});var Ze,ii=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,ri=r.fn.init=function(e,t){var n,i;if(!e)return this;if(e.nodeType)return this[0]=e,this.length=1,this;if(typeof e=="function")return Ze.ready!==void 0?Ze.ready(e):e(r);if(n=e+"",Gt(n))n=[null,e,null];else if(typeof e=="string")n=ii.exec(e);else return r.makeArray(e,this);if(n&&(n[1]||!t))if(n[1]){if(t=t instanceof r?t[0]:t,r.merge(this,r.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:N,!0)),Ut.test(n[1])&&r.isPlainObject(t))for(n in t)typeof this[n]=="function"?this[n](t[n]):this.attr(n,t[n]);return this}else return i=N.getElementById(n[2]),i&&(this[0]=i,this.length=1),this;else return!t||t.jquery?(t||Ze).find(e):this.constructor(t).find(e)};ri.prototype=r.fn,Ze=r(N);var oi=/^(?:parents|prev(?:Until|All))/,si={children:!0,contents:!0,next:!0,prev:!0};r.fn.extend({has:function(e){var t=r(e,this),n=t.length;return this.filter(function(){for(var i=0;i<n;i++)if(r.contains(this,t[i]))return!0})},closest:function(e,t){var n,i=0,o=this.length,s=[],u=typeof e!="string"&&r(e);if(!Wt.test(e)){for(;i<o;i++)for(n=this[i];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(u?u.index(n)>-1:n.nodeType===1&&r.find.matchesSelector(n,e))){s.push(n);break}}return this.pushStack(s.length>1?r.uniqueSort(s):s)},index:function(e){return e?typeof e=="string"?M.call(r(e),this[0]):M.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(r.uniqueSort(r.merge(this.get(),r(e,t))))},addBack:function(e){return this.add(e==null?this.prevObject:this.prevObject.filter(e))}});function Yt(e,t){for(;(e=e[t])&&e.nodeType!==1;);return e}r.each({parent:function(e){var t=e.parentNode;return t&&t.nodeType!==11?t:null},parents:function(e){return he(e,"parentNode")},parentsUntil:function(e,t,n){return he(e,"parentNode",n)},next:function(e){return Yt(e,"nextSibling")},prev:function(e){return Yt(e,"previousSibling")},nextAll:function(e){return he(e,"nextSibling")},prevAll:function(e){return he(e,"previousSibling")},nextUntil:function(e,t,n){return he(e,"nextSibling",n)},prevUntil:function(e,t,n){return he(e,"previousSibling",n)},siblings:function(e){return Qt((e.parentNode||{}).firstChild,e)},children:function(e){return Qt(e.firstChild)},contents:function(e){return e.contentDocument!=null&&k(e.contentDocument)?e.contentDocument:(S(e,"template")&&(e=e.content||e),r.merge([],e.childNodes))}},function(e,t){r.fn[e]=function(n,i){var o=r.map(this,t,n);return e.slice(-5)!=="Until"&&(i=n),i&&typeof i=="string"&&(o=r.filter(i,o)),this.length>1&&(si[e]||r.uniqueSort(o),oi.test(e)&&o.reverse()),this.pushStack(o)}});function ui(e){var t={};return r.each(e.match(_)||[],function(n,i){t[i]=!0}),t}r.Callbacks=function(e){e=typeof e=="string"?ui(e):r.extend({},e);var t,n,i,o,s=[],u=[],a=-1,f=function(){for(o=o||e.once,i=t=!0;u.length;a=-1)for(n=u.shift();++a<s.length;)s[a].apply(n[0],n[1])===!1&&e.stopOnFalse&&(a=s.length,n=!1);e.memory||(n=!1),t=!1,o&&(n?s=[]:s="")},c={add:function(){return s&&(n&&!t&&(a=s.length-1,u.push(n)),(function p(d){r.each(d,function(l,h){typeof h=="function"?(!e.unique||!c.has(h))&&s.push(h):h&&h.length&&Ee(h)!=="string"&&p(h)})})(arguments),n&&!t&&f()),this},remove:function(){return r.each(arguments,function(p,d){for(var l;(l=r.inArray(d,s,l))>-1;)s.splice(l,1),l<=a&&a--}),this},has:function(p){return p?r.inArray(p,s)>-1:s.length>0},empty:function(){return s&&(s=[]),this},disable:function(){return o=u=[],s=n="",this},disabled:function(){return!s},lock:function(){return o=u=[],!n&&!t&&(s=n=""),this},locked:function(){return!!o},fireWith:function(p,d){return o||(d=d||[],d=[p,d.slice?d.slice():d],u.push(d),t||f()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!i}};return c};function ge(e){return e}function _e(e){throw e}function Zt(e,t,n,i){var o;try{e&&typeof(o=e.promise)=="function"?o.call(e).done(t).fail(n):e&&typeof(o=e.then)=="function"?o.call(e,t,n):t.apply(void 0,[e].slice(i))}catch(s){n(s)}}r.extend({Deferred:function(e){var t=[["notify","progress",r.Callbacks("memory"),r.Callbacks("memory"),2],["resolve","done",r.Callbacks("once memory"),r.Callbacks("once memory"),0,"resolved"],["reject","fail",r.Callbacks("once memory"),r.Callbacks("once memory"),1,"rejected"]],n="pending",i={state:function(){return n},always:function(){return o.done(arguments).fail(arguments),this},catch:function(s){return i.then(null,s)},pipe:function(){var s=arguments;return r.Deferred(function(u){r.each(t,function(a,f){var c=typeof s[f[4]]=="function"&&s[f[4]];o[f[1]](function(){var p=c&&c.apply(this,arguments);p&&typeof p.promise=="function"?p.promise().progress(u.notify).done(u.resolve).fail(u.reject):u[f[0]+"With"](this,c?[p]:arguments)})}),s=null}).promise()},then:function(s,u,a){var f=0;function c(p,d,l,h){return function(){var y=this,v=arguments,x=function(){var D,Y;if(!(p<f)){if(D=l.apply(y,v),D===d.promise())throw new TypeError("Thenable self-resolution");Y=D&&(typeof D=="object"||typeof D=="function")&&D.then,typeof Y=="function"?h?Y.call(D,c(f,d,ge,h),c(f,d,_e,h)):(f++,Y.call(D,c(f,d,ge,h),c(f,d,_e,h),c(f,d,ge,d.notifyWith))):(l!==ge&&(y=void 0,v=[D]),(h||d.resolveWith)(y,v))}},j=h?x:function(){try{x()}catch(D){r.Deferred.exceptionHook&&r.Deferred.exceptionHook(D,j.error),p+1>=f&&(l!==_e&&(y=void 0,v=[D]),d.rejectWith(y,v))}};p?j():(r.Deferred.getErrorHook&&(j.error=r.Deferred.getErrorHook()),b.setTimeout(j))}}return r.Deferred(function(p){t[0][3].add(c(0,p,typeof a=="function"?a:ge,p.notifyWith)),t[1][3].add(c(0,p,typeof s=="function"?s:ge)),t[2][3].add(c(0,p,typeof u=="function"?u:_e))}).promise()},promise:function(s){return s!=null?r.extend(s,i):i}},o={};return r.each(t,function(s,u){var a=u[2],f=u[5];i[u[1]]=a.add,f&&a.add(function(){n=f},t[3-s][2].disable,t[3-s][3].disable,t[0][2].lock,t[0][3].lock),a.add(u[3].fire),o[u[0]]=function(){return o[u[0]+"With"](this===o?void 0:this,arguments),this},o[u[0]+"With"]=a.fireWith}),i.promise(o),e&&e.call(o,o),o},when:function(e){var t=arguments.length,n=t,i=Array(n),o=w.call(arguments),s=r.Deferred(),u=function(a){return function(f){i[a]=this,o[a]=arguments.length>1?w.call(arguments):f,--t||s.resolveWith(i,o)}};if(t<=1&&(Zt(e,s.done(u(n)).resolve,s.reject,!t),s.state()==="pending"||typeof(o[n]&&o[n].then)=="function"))return s.then();for(;n--;)Zt(o[n],u(n),s.reject);return s.promise()}});var ai=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;r.Deferred.exceptionHook=function(e,t){e&&ai.test(e.name)&&b.console.warn("jQuery.Deferred exception",e,t)},r.readyException=function(e){b.setTimeout(function(){throw e})};var dt=r.Deferred();r.fn.ready=function(e){return dt.then(e).catch(function(t){r.readyException(t)}),this},r.extend({isReady:!1,readyWait:1,ready:function(e){(e===!0?--r.readyWait:r.isReady)||(r.isReady=!0,!(e!==!0&&--r.readyWait>0)&&dt.resolveWith(N,[r]))}}),r.ready.then=dt.then;function Je(){N.removeEventListener("DOMContentLoaded",Je),b.removeEventListener("load",Je),r.ready()}N.readyState!=="loading"?b.setTimeout(r.ready):(N.addEventListener("DOMContentLoaded",Je),b.addEventListener("load",Je));var fi=/-([a-z])/g;function ci(e,t){return t.toUpperCase()}function ae(e){return e.replace(fi,ci)}function Ie(e){return e.nodeType===1||e.nodeType===9||!+e.nodeType}function Oe(){this.expando=r.expando+Oe.uid++}Oe.uid=1,Oe.prototype={cache:function(e){var t=e[this.expando];return t||(t=Object.create(null),Ie(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var i,o=this.cache(e);if(typeof t=="string")o[ae(t)]=n;else for(i in t)o[ae(i)]=t[i];return n},get:function(e,t){return t===void 0?this.cache(e):e[this.expando]&&e[this.expando][ae(t)]},access:function(e,t,n){return t===void 0||t&&typeof t=="string"&&n===void 0?this.get(e,t):(this.set(e,t,n),n!==void 0?n:t)},remove:function(e,t){var n,i=e[this.expando];if(i!==void 0){if(t!==void 0)for(Array.isArray(t)?t=t.map(ae):(t=ae(t),t=t in i?[t]:t.match(_)||[]),n=t.length;n--;)delete i[t[n]];(t===void 0||r.isEmptyObject(i))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return t!==void 0&&!r.isEmptyObject(t)}};var m=new Oe,L=new Oe,li=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,pi=/[A-Z]/g;function di(e){return e==="true"?!0:e==="false"?!1:e==="null"?null:e===+e+""?+e:li.test(e)?JSON.parse(e):e}function _t(e,t,n){var i;if(n===void 0&&e.nodeType===1)if(i="data-"+t.replace(pi,"-$&").toLowerCase(),n=e.getAttribute(i),typeof n=="string"){try{n=di(n)}catch{}L.set(e,t,n)}else n=void 0;return n}r.extend({hasData:function(e){return L.hasData(e)||m.hasData(e)},data:function(e,t,n){return L.access(e,t,n)},removeData:function(e,t){L.remove(e,t)},_data:function(e,t,n){return m.access(e,t,n)},_removeData:function(e,t){m.remove(e,t)}}),r.fn.extend({data:function(e,t){var n,i,o,s=this[0],u=s&&s.attributes;if(e===void 0){if(this.length&&(o=L.get(s),s.nodeType===1&&!m.get(s,"hasDataAttrs"))){for(n=u.length;n--;)u[n]&&(i=u[n].name,i.indexOf("data-")===0&&(i=ae(i.slice(5)),_t(s,i,o[i])));m.set(s,"hasDataAttrs",!0)}return o}return typeof e=="object"?this.each(function(){L.set(this,e)}):V(this,function(a){if(s&&a===void 0)return _t(s,e,L.get(s,e));this.each(function(){L.set(this,e,a)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){L.remove(this,e)})}}),r.extend({queue:function(e,t,n){var i;if(e)return t=(t||"fx")+"queue",i=m.get(e,t),n&&(!i||Array.isArray(n)?i=m.set(e,t,r.makeArray(n)):i.push(n)),i||[]},dequeue:function(e,t){t=t||"fx";var n=r.queue(e,t),i=n.length,o=n.shift(),s=r._queueHooks(e,t),u=function(){r.dequeue(e,t)};o==="inprogress"&&(o=n.shift(),i--),o&&(t==="fx"&&n.unshift("inprogress"),delete s.stop,o.call(e,u,s)),!i&&s&&s.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return m.get(e,n)||m.set(e,n,{empty:r.Callbacks("once memory").add(function(){m.remove(e,[t+"queue",n])})})}}),r.fn.extend({queue:function(e,t){var n=2;return typeof e!="string"&&(t=e,e="fx",n--),arguments.length<n?r.queue(this[0],e):t===void 0?this:this.each(function(){var i=r.queue(this,e,t);r._queueHooks(this,e),e==="fx"&&i[0]!=="inprogress"&&r.dequeue(this,e)})},dequeue:function(e){return this.each(function(){r.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,i=1,o=r.Deferred(),s=this,u=this.length,a=function(){--i||o.resolveWith(s,[s])};for(typeof e!="string"&&(t=e,e=void 0),e=e||"fx";u--;)n=m.get(s[u],e+"queueHooks"),n&&n.empty&&(i++,n.empty.add(a));return a(),o.promise(t)}});var Jt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Re=new RegExp("^(?:([+-])=|)("+Jt+")([a-z%]*)$","i"),ie=["Top","Right","Bottom","Left"];function Ve(e,t){return e=t||e,e.style.display==="none"||e.style.display===""&&r.css(e,"display")==="none"}var hi=/^[a-z]/,gi=/^(?:Border(?:Top|Right|Bottom|Left)?(?:Width|)|(?:Margin|Padding)?(?:Top|Right|Bottom|Left)?|(?:Min|Max)?(?:Width|Height))$/;function Xe(e){return hi.test(e)&&gi.test(e[0].toUpperCase()+e.slice(1))}function Vt(e,t,n,i){var o,s,u=20,a=i?function(){return i.cur()}:function(){return r.css(e,t,"")},f=a(),c=n&&n[3]||(Xe(t)?"px":""),p=e.nodeType&&(!Xe(t)||c!=="px"&&+f)&&Re.exec(r.css(e,t));if(p&&p[3]!==c){for(f=f/2,c=c||p[3],p=+f||1;u--;)r.style(e,t,p+c),(1-s)*(1-(s=a()/f||.5))<=0&&(u=0),p=p/s;p=p*2,r.style(e,t,p+c),n=n||[]}return n&&(p=+p||+f||0,o=n[1]?p+(n[1]+1)*n[2]:+n[2],i&&(i.unit=c,i.start=p,i.end=o)),o}var yi=/^-ms-/;function ht(e){return ae(e.replace(yi,"ms-"))}var Xt={};function vi(e){var t,n=e.ownerDocument,i=e.nodeName,o=Xt[i];return o||(t=n.body.appendChild(n.createElement(i)),o=r.css(t,"display"),t.parentNode.removeChild(t),o==="none"&&(o="block"),Xt[i]=o,o)}function ye(e,t){for(var n,i,o=[],s=0,u=e.length;s<u;s++)i=e[s],i.style&&(n=i.style.display,t?(n==="none"&&(o[s]=m.get(i,"display")||null,o[s]||(i.style.display="")),i.style.display===""&&Ve(i)&&(o[s]=vi(i))):n!=="none"&&(o[s]="none",m.set(i,"display",n)));for(s=0;s<u;s++)o[s]!=null&&(e[s].style.display=o[s]);return e}r.fn.extend({show:function(){return ye(this,!0)},hide:function(){return ye(this)},toggle:function(e){return typeof e=="boolean"?e?this.show():this.hide():this.each(function(){Ve(this)?r(this).show():r(this).hide()})}});var qe=function(e){return r.contains(e.ownerDocument,e)||e.getRootNode(Ai)===e.ownerDocument},Ai={composed:!0};te.getRootNode||(qe=function(e){return r.contains(e.ownerDocument,e)});var Kt=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,z={thead:["table"],col:["colgroup","table"],tr:["tbody","table"],td:["tr","tbody","table"]};z.tbody=z.tfoot=z.colgroup=z.caption=z.thead,z.th=z.td;function B(e,t){var n;return typeof e.querySelectorAll<"u"?n=e.querySelectorAll(t||"*"):n=[],t===void 0||t&&S(e,t)?r.merge([e],n):n}var $t=/^$|^module$|\/(?:java|ecma)script/i;function gt(e,t){for(var n=0,i=e.length;n<i;n++)m.set(e[n],"globalEval",!t||m.get(t[n],"globalEval"))}var xi=/<|&#?\w+;/;function zt(e,t,n,i,o){var s,u,a,f,c,p,d,l=t.createDocumentFragment(),h=[],y=e.length;for(p=0;p<y;p++)if(s=e[p],s||s===0)if(Ee(s)==="object"&&(s.nodeType||Le(s)))r.merge(h,s.nodeType?[s]:s);else if(!xi.test(s))h.push(t.createTextNode(s));else{for(u=u||l.appendChild(t.createElement("div")),a=(Kt.exec(s)||["",""])[1].toLowerCase(),f=z[a]||A,d=f.length;--d>-1;)u=u.appendChild(t.createElement(f[d]));u.innerHTML=r.htmlPrefilter(s),r.merge(h,u.childNodes),u=l.firstChild,u.textContent=""}for(l.textContent="",p=0;p<h.length;p++){if(s=h[p],i&&r.inArray(s,i)>-1){o&&o.push(s);continue}if(c=qe(s),u=B(l.appendChild(s),"script"),c&>(u),n)for(d=0;d<u.length;d++)s=u[d],$t.test(s.type||"")&&n.push(s)}return l}function mi(e){return e.type=(e.getAttribute("type")!==null)+"/"+e.type,e}function bi(e){return(e.type||"").slice(0,5)==="true/"?e.type=e.type.slice(5):e.removeAttribute("type"),e}function ve(e,t,n,i){t=O(t);var o,s,u,a,f,c,p=0,d=e.length,l=d-1,h=t[0],y=typeof h=="function";if(y)return e.each(function(v){var x=e.eq(v);t[0]=h.call(this,v,x.html()),ve(x,t,n,i)});if(d&&(o=zt(t,e[0].ownerDocument,!1,e,i),s=o.firstChild,o.childNodes.length===1&&(o=s),s||i)){for(u=r.map(B(o,"script"),mi),a=u.length;p<d;p++)f=o,p!==l&&(f=r.clone(f,!0,!0),a&&r.merge(u,B(f,"script"))),n.call(e[p],f,p);if(a)for(c=u[u.length-1].ownerDocument,r.map(u,bi),p=0;p<a;p++)f=u[p],$t.test(f.type||"")&&!m.get(f,"globalEval")&&r.contains(c,f)&&(f.src&&(f.type||"").toLowerCase()!=="module"?r._evalUrl&&!f.noModule&&r._evalUrl(f.src,{nonce:f.nonce,crossOrigin:f.crossOrigin},c):jt(f.textContent,f,c))}return e}var Ke=/^(?:checkbox|radio)$/i,en=/^([^.]*)(?:\.(.+)|)/;function Ae(){return!0}function xe(){return!1}function yt(e,t,n,i,o,s){var u,a;if(typeof t=="object"){typeof n!="string"&&(i=i||n,n=void 0);for(a in t)yt(e,a,n,i,t[a],s);return e}if(i==null&&o==null?(o=n,i=n=void 0):o==null&&(typeof n=="string"?(o=i,i=void 0):(o=i,i=n,n=void 0)),o===!1)o=xe;else if(!o)return e;return s===1&&(u=o,o=function(f){return r().off(f),u.apply(this,arguments)},o.guid=u.guid||(u.guid=r.guid++)),e.each(function(){r.event.add(this,t,o,i,n)})}r.event={add:function(e,t,n,i,o){var s,u,a,f,c,p,d,l,h,y,v,x=m.get(e);if(Ie(e))for(n.handler&&(s=n,n=s.handler,o=s.selector),o&&r.find.matchesSelector(te,o),n.guid||(n.guid=r.guid++),(f=x.events)||(f=x.events=Object.create(null)),(u=x.handle)||(u=x.handle=function(j){return typeof r<"u"&&r.event.triggered!==j.type?r.event.dispatch.apply(e,arguments):void 0}),t=(t||"").match(_)||[""],c=t.length;c--;)a=en.exec(t[c])||[],h=v=a[1],y=(a[2]||"").split(".").sort(),h&&(d=r.event.special[h]||{},h=(o?d.delegateType:d.bindType)||h,d=r.event.special[h]||{},p=r.extend({type:h,origType:v,data:i,handler:n,guid:n.guid,selector:o,needsContext:o&&r.expr.match.needsContext.test(o),namespace:y.join(".")},s),(l=f[h])||(l=f[h]=[],l.delegateCount=0,(!d.setup||d.setup.call(e,i,y,u)===!1)&&e.addEventListener&&e.addEventListener(h,u)),d.add&&(d.add.call(e,p),p.handler.guid||(p.handler.guid=n.guid)),o?l.splice(l.delegateCount++,0,p):l.push(p))},remove:function(e,t,n,i,o){var s,u,a,f,c,p,d,l,h,y,v,x=m.hasData(e)&&m.get(e);if(!(!x||!(f=x.events))){for(t=(t||"").match(_)||[""],c=t.length;c--;){if(a=en.exec(t[c])||[],h=v=a[1],y=(a[2]||"").split(".").sort(),!h){for(h in f)r.event.remove(e,h+t[c],n,i,!0);continue}for(d=r.event.special[h]||{},h=(i?d.delegateType:d.bindType)||h,l=f[h]||[],a=a[2]&&new RegExp("(^|\\.)"+y.join("\\.(?:.*\\.|)")+"(\\.|$)"),u=s=l.length;s--;)p=l[s],(o||v===p.origType)&&(!n||n.guid===p.guid)&&(!a||a.test(p.namespace))&&(!i||i===p.selector||i==="**"&&p.selector)&&(l.splice(s,1),p.selector&&l.delegateCount--,d.remove&&d.remove.call(e,p));u&&!l.length&&((!d.teardown||d.teardown.call(e,y,x.handle)===!1)&&r.removeEvent(e,h,x.handle),delete f[h])}r.isEmptyObject(f)&&m.remove(e,"handle events")}},dispatch:function(e){var t,n,i,o,s,u,a,f,c,p=new Array(arguments.length);for(t=r.event.fix(e),c=(m.get(this,"events")||Object.create(null))[t.type]||[],a=r.event.special[t.type]||{},s=0;s<arguments.length;s++)p[s]=arguments[s];if(p[0]=t,t.delegateTarget=this,!(a.preDispatch&&a.preDispatch.call(this,t)===!1)){for(f=r.event.handlers.call(this,t,c),s=0;s<f.length&&!t.isPropagationStopped();s++)for(i=f[s],t.currentTarget=i.elem,u=0;u<i.handlers.length&&!t.isImmediatePropagationStopped();u++)o=i.handlers[u],(!t.rnamespace||o.namespace===!1||t.rnamespace.test(o.namespace))&&(t.handleObj=o,t.data=o.data,n=((r.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,p),n!==void 0&&(t.result=n)===!1&&(t.preventDefault(),t.stopPropagation()));return a.postDispatch&&a.postDispatch.call(this,t),t.result}},handlers:function(e,t){var n,i,o,s,u,a=[],f=t.delegateCount,c=e.target;if(f&&!(e.type==="click"&&e.button>=1)){for(;c!==this;c=c.parentNode||this)if(c.nodeType===1&&!(e.type==="click"&&c.disabled===!0)){for(s=[],u={},n=0;n<f;n++)i=t[n],o=i.selector+" ",u[o]===void 0&&(u[o]=i.needsContext?r(o,this).index(c)>-1:r.find(o,this,null,[c]).length),u[o]&&s.push(i);s.length&&a.push({elem:c,handlers:s})}}return c=this,f<t.length&&a.push({elem:c,handlers:t.slice(f)}),a},addProp:function(e,t){Object.defineProperty(r.Event.prototype,e,{enumerable:!0,configurable:!0,get:typeof t=="function"?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(n){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:n})}})},fix:function(e){return e[r.expando]?e:new r.Event(e)},special:r.extend(Object.create(null),{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return Ke.test(t.type)&&t.click&&S(t,"input")&&$e(t,"click",!0),!1},trigger:function(e){var t=this||e;return Ke.test(t.type)&&t.click&&S(t,"input")&&$e(t,"click"),!0},_default:function(e){var t=e.target;return Ke.test(t.type)&&t.click&&S(t,"input")&&m.get(t,"click")||S(t,"a")}},beforeunload:{postDispatch:function(e){e.result!==void 0&&e.preventDefault()}}})};function $e(e,t,n){if(!n){m.get(e,t)===void 0&&r.event.add(e,t,Ae);return}m.set(e,t,!1),r.event.add(e,t,{namespace:!1,handler:function(i){var o,s=m.get(this,t);if(i.isTrigger&1&&this[t]){if(s.length)(r.event.special[t]||{}).delegateType&&i.stopPropagation();else if(s=w.call(arguments),m.set(this,t,s),this[t](),o=m.get(this,t),m.set(this,t,!1),s!==o)return i.stopImmediatePropagation(),i.preventDefault(),o&&o.value}else s.length&&(m.set(this,t,{value:r.event.trigger(s[0],s.slice(1),this)}),i.stopPropagation(),i.isImmediatePropagationStopped=Ae)}})}r.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},r.Event=function(e,t){if(!(this instanceof r.Event))return new r.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented?Ae:xe,this.target=e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&r.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[r.expando]=!0},r.Event.prototype={constructor:r.Event,isDefaultPrevented:xe,isPropagationStopped:xe,isImmediatePropagationStopped:xe,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Ae,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Ae,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Ae,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},r.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},r.event.addProp),r.each({focus:"focusin",blur:"focusout"},function(e,t){function n(i){var o=r.event.fix(i);o.type=i.type==="focusin"?"focus":"blur",o.isSimulated=!0,o.target===o.currentTarget&&m.get(this,"handle")(o)}r.event.special[e]={setup:function(){if($e(this,e,!0),q)this.addEventListener(t,n);else return!1},trigger:function(){return $e(this,e),!0},teardown:function(){if(q)this.removeEventListener(t,n);else return!1},_default:function(i){return m.get(i.target,e)},delegateType:t}}),r.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){r.event.special[e]={delegateType:t,bindType:t,handle:function(n){var i,o=this,s=n.relatedTarget,u=n.handleObj;return(!s||s!==o&&!r.contains(o,s))&&(n.type=u.origType,i=u.handler.apply(this,arguments),n.type=t),i}}}),r.fn.extend({on:function(e,t,n,i){return yt(this,e,t,n,i)},one:function(e,t,n,i){return yt(this,e,t,n,i,1)},off:function(e,t,n){var i,o;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,r(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if(typeof e=="object"){for(o in e)this.off(o,t,e[o]);return this}return(t===!1||typeof t=="function")&&(n=t,t=void 0),n===!1&&(n=xe),this.each(function(){r.event.remove(this,e,n,t)})}});var Ti=/<script|<style|<link/i;function tn(e,t){return S(e,"table")&&S(t.nodeType!==11?t:t.firstChild,"tr")&&r(e).children("tbody")[0]||e}function nn(e,t){var n,i,o,s=m.get(e,"events");if(t.nodeType===1){if(s){m.remove(t,"handle events");for(n in s)for(i=0,o=s[n].length;i<o;i++)r.event.add(t,n,s[n][i])}L.hasData(e)&&L.set(t,r.extend({},L.get(e)))}}function rn(e,t,n){var i,o,s=t?r.filter(t,e):e;for(o=0;o<s.length;o++)i=s[o],!n&&i.nodeType===1&&r.cleanData(B(i)),i.parentNode&&(n&&qe(i)&>(B(i,"script")),i.parentNode.removeChild(i));return e}r.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var i,o,s,u,a=e.cloneNode(!0),f=qe(e);if(q&&(e.nodeType===1||e.nodeType===11)&&!r.isXMLDoc(e))for(u=B(a),s=B(e),i=0,o=s.length;i<o;i++)S(u[i],"textarea")&&(u[i].defaultValue=s[i].defaultValue);if(t)if(n)for(s=s||B(e),u=u||B(a),i=0,o=s.length;i<o;i++)nn(s[i],u[i]);else nn(e,a);return u=B(a,"script"),u.length>0&>(u,!f&&B(e,"script")),a},cleanData:function(e){var t,n,i,o,s=r.event.special;for(o=0;o<e.length;o++)if(n=e[o],Ie(n)){if(t=n[m.expando]){if(t.events)for(i in t.events)s[i]?r.event.remove(n,i):r.removeEvent(n,i,t.handle);n[m.expando]=void 0}n[L.expando]&&(n[L.expando]=void 0)}}}),r.fn.extend({detach:function(e){return rn(this,e,!0)},remove:function(e){return rn(this,e)},text:function(e){return V(this,function(t){return t===void 0?r.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=t)})},null,e,arguments.length)},append:function(){return ve(this,arguments,function(e){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var t=tn(this,e);t.appendChild(e)}})},prepend:function(){return ve(this,arguments,function(e){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var t=tn(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return ve(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return ve(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){var e,t;for(t=0;t<this.length;t++)e=this[t],e.nodeType===1&&(r.cleanData(B(e,!1)),e.textContent="");return this},clone:function(e,t){return e=e??!1,t=t??e,this.map(function(){return r.clone(this,e,t)})},html:function(e){return V(this,function(t){var n=this[0]||{},i=0,o=this.length;if(t===void 0&&n.nodeType===1)return n.innerHTML;if(typeof t=="string"&&!Ti.test(t)&&!z[(Kt.exec(t)||["",""])[1].toLowerCase()]){t=r.htmlPrefilter(t);try{for(;i<o;i++)n=this[i]||{},n.nodeType===1&&(r.cleanData(B(n,!1)),n.innerHTML=t);n=0}catch{}}n&&this.empty().append(t)},null,e,arguments.length)},replaceWith:function(){var e=[];return ve(this,arguments,function(t){var n=this.parentNode;r.inArray(this,e)<0&&(r.cleanData(B(this)),n&&n.replaceChild(t,this))},e)}}),r.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){r.fn[e]=function(n){for(var i,o=[],s=r(n),u=s.length-1,a=0;a<=u;a++)i=a===u?this:this.clone(!0),r(s[a])[t](i),P.apply(o,i);return this.pushStack(o)}});var Ci=new RegExp("^("+Jt+")(?!px)[a-z%]+$","i");function ze(e){var t=e.ownerDocument.defaultView;return t||(t=b),t.getComputedStyle(e)}function wi(e,t,n){var i,o,s={};for(o in t)s[o]=e.style[o],e.style[o]=t[o];i=n.call(e);for(o in t)e.style[o]=s[o];return i}function on(e,t,n){var i,o=De.test(t);return n=n||ze(e),n&&(i=n.getPropertyValue(t)||n[t],o&&i&&(i=i.replace(je,"$1")||void 0),i===""&&!qe(e)&&(i=r.style(e,t))),i!==void 0?i+"":i}function fe(e){return N.createElementNS("http://www.w3.org/1999/xhtml",e)}var sn=["Webkit","Moz","ms"],un=fe("div").style;function Ei(e){for(var t=e[0].toUpperCase()+e.slice(1),n=sn.length;n--;)if(e=sn[n]+t,e in un)return e}function vt(e){return e in un?e:Ei(e)||e}var an,fn,re=fe("table");function cn(){if(!(!re||!re.style)){var e,t=fe("col"),n=fe("tr"),i=fe("td");if(re.style.cssText="position:absolute;left:-11111px;border-collapse:separate;border-spacing:0",n.style.cssText="box-sizing:content-box;border:1px solid;height:1px",i.style.cssText="height:9px;width:9px;padding:0",t.span=2,te.appendChild(re).appendChild(t).parentNode.appendChild(n).appendChild(i).parentNode.appendChild(i.cloneNode(!0)),re.offsetWidth===0){te.removeChild(re).textContent="";return}e=b.getComputedStyle(n),fn=q||Math.round(parseFloat(b.getComputedStyle(t).width))===18,an=Math.round(parseFloat(e.height)+parseFloat(e.borderTopWidth)+parseFloat(e.borderBottomWidth))===n.offsetHeight,te.removeChild(re),re=null}}r.extend(ee,{reliableTrDimensions:function(){return cn(),an},reliableColDimensions:function(){return cn(),fn}});var Si={position:"absolute",visibility:"hidden",display:"block"},ln={letterSpacing:"0",fontWeight:"400"};function pn(e,t,n){var i=Re.exec(t);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):t}function dn(e,t,n,i,o,s){var u=t==="width"?1:0,a=0,f=0,c=0;if(n===(i?"border":"content"))return 0;for(;u<4;u+=2)n==="margin"&&(c+=r.css(e,n+ie[u],!0,o)),i?(n==="content"&&(f-=r.css(e,"padding"+ie[u],!0,o)),n!=="margin"&&(f-=r.css(e,"border"+ie[u]+"Width",!0,o))):(f+=r.css(e,"padding"+ie[u],!0,o),n!=="padding"?f+=r.css(e,"border"+ie[u]+"Width",!0,o):a+=r.css(e,"border"+ie[u]+"Width",!0,o));return!i&&s>=0&&(f+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-s-f-a-.5))||0),f+c}function hn(e,t,n){var i=ze(e),o=q||n,s=o&&r.css(e,"boxSizing",!1,i)==="border-box",u=s,a=on(e,t,i),f="offset"+t[0].toUpperCase()+t.slice(1);if(Ci.test(a)){if(!n)return a;a="auto"}return(a==="auto"||q&&s||!ee.reliableColDimensions()&&S(e,"col")||!ee.reliableTrDimensions()&&S(e,"tr"))&&e.getClientRects().length&&(s=r.css(e,"boxSizing",!1,i)==="border-box",u=f in e,u&&(a=e[f])),a=parseFloat(a)||0,a+dn(e,t,n||(s?"border":"content"),u,i,a)+"px"}r.extend({cssHooks:{},style:function(e,t,n,i){if(!(!e||e.nodeType===3||e.nodeType===8||!e.style)){var o,s,u,a=ht(t),f=De.test(t),c=e.style;if(f||(t=vt(a)),u=r.cssHooks[t]||r.cssHooks[a],n!==void 0){if(s=typeof n,s==="string"&&(o=Re.exec(n))&&o[1]&&(n=Vt(e,t,o),s="number"),n==null||n!==n)return;s==="number"&&(n+=o&&o[3]||(Xe(a)?"px":"")),q&&n===""&&t.indexOf("background")===0&&(c[t]="inherit"),(!u||!("set"in u)||(n=u.set(e,n,i))!==void 0)&&(f?c.setProperty(t,n):c[t]=n)}else return u&&"get"in u&&(o=u.get(e,!1,i))!==void 0?o:c[t]}},css:function(e,t,n,i){var o,s,u,a=ht(t),f=De.test(t);return f||(t=vt(a)),u=r.cssHooks[t]||r.cssHooks[a],u&&"get"in u&&(o=u.get(e,!0,n)),o===void 0&&(o=on(e,t,i)),o==="normal"&&t in ln&&(o=ln[t]),n===""||n?(s=parseFloat(o),n===!0||isFinite(s)?s||0:o):o}}),r.each(["height","width"],function(e,t){r.cssHooks[t]={get:function(n,i,o){if(i)return r.css(n,"display")==="none"?wi(n,Si,function(){return hn(n,t,o)}):hn(n,t,o)},set:function(n,i,o){var s,u=ze(n),a=o&&r.css(n,"boxSizing",!1,u)==="border-box",f=o?dn(n,t,o,a,u):0;return f&&(s=Re.exec(i))&&(s[3]||"px")!=="px"&&(n.style[t]=i,i=r.css(n,t)),pn(n,i,f)}}}),r.each({margin:"",padding:"",border:"Width"},function(e,t){r.cssHooks[e+t]={expand:function(n){for(var i=0,o={},s=typeof n=="string"?n.split(" "):[n];i<4;i++)o[e+ie[i]+t]=s[i]||s[i-2]||s[0];return o}},e!=="margin"&&(r.cssHooks[e+t].set=pn)}),r.fn.extend({css:function(e,t){return V(this,function(n,i,o){var s,u,a={},f=0;if(Array.isArray(i)){for(s=ze(n),u=i.length;f<u;f++)a[i[f]]=r.css(n,i[f],!1,s);return a}return o!==void 0?r.style(n,i,o):r.css(n,i)},e,t,arguments.length>1)}});function W(e,t,n,i,o){return new W.prototype.init(e,t,n,i,o)}r.Tween=W,W.prototype={constructor:W,init:function(e,t,n,i,o,s){this.elem=e,this.prop=n,this.easing=o||r.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=s||(Xe(n)?"px":"")},cur:function(){var e=W.propHooks[this.prop];return e&&e.get?e.get(this):W.propHooks._default.get(this)},run:function(e){var t,n=W.propHooks[this.prop];return this.options.duration?this.pos=t=r.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):W.propHooks._default.set(this),this}},W.prototype.init.prototype=W.prototype,W.propHooks={_default:{get:function(e){var t;return e.elem.nodeType!==1||e.elem[e.prop]!=null&&e.elem.style[e.prop]==null?e.elem[e.prop]:(t=r.css(e.elem,e.prop,""),!t||t==="auto"?0:t)},set:function(e){r.fx.step[e.prop]?r.fx.step[e.prop](e):e.elem.nodeType===1&&(r.cssHooks[e.prop]||e.elem.style[vt(e.prop)]!=null)?r.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},r.easing={linear:function(e){return e},swing:function(e){return .5-Math.cos(e*Math.PI)/2},_default:"swing"},r.fx=W.prototype.init,r.fx.step={};var me,et,Di=/^(?:toggle|show|hide)$/,ji=/queueHooks$/;function At(){et&&(N.hidden===!1&&b.requestAnimationFrame?b.requestAnimationFrame(At):b.setTimeout(At,13),r.fx.tick())}function gn(){return b.setTimeout(function(){me=void 0}),me=Date.now()}function tt(e,t){var n,i=0,o={height:e};for(t=t?1:0;i<4;i+=2-t)n=ie[i],o["margin"+n]=o["padding"+n]=e;return t&&(o.opacity=o.width=e),o}function yn(e,t,n){for(var i,o=(G.tweeners[t]||[]).concat(G.tweeners["*"]),s=0,u=o.length;s<u;s++)if(i=o[s].call(n,t,e))return i}function Ni(e,t,n){var i,o,s,u,a,f,c,p,d="width"in t||"height"in t,l=this,h={},y=e.style,v=e.nodeType&&Ve(e),x=m.get(e,"fxshow");n.queue||(u=r._queueHooks(e,"fx"),u.unqueued==null&&(u.unqueued=0,a=u.empty.fire,u.empty.fire=function(){u.unqueued||a()}),u.unqueued++,l.always(function(){l.always(function(){u.unqueued--,r.queue(e,"fx").length||u.empty.fire()})}));for(i in t)if(o=t[i],Di.test(o)){if(delete t[i],s=s||o==="toggle",o===(v?"hide":"show"))if(o==="show"&&x&&x[i]!==void 0)v=!0;else continue;h[i]=x&&x[i]||r.style(e,i)}if(f=!r.isEmptyObject(t),!(!f&&r.isEmptyObject(h))){d&&e.nodeType===1&&(n.overflow=[y.overflow,y.overflowX,y.overflowY],c=x&&x.display,c==null&&(c=m.get(e,"display")),p=r.css(e,"display"),p==="none"&&(c?p=c:(ye([e],!0),c=e.style.display||c,p=r.css(e,"display"),ye([e]))),(p==="inline"||p==="inline-block"&&c!=null)&&r.css(e,"float")==="none"&&(f||(l.done(function(){y.display=c}),c==null&&(p=y.display,c=p==="none"?"":p)),y.display="inline-block")),n.overflow&&(y.overflow="hidden",l.always(function(){y.overflow=n.overflow[0],y.overflowX=n.overflow[1],y.overflowY=n.overflow[2]})),f=!1;for(i in h)f||(x?"hidden"in x&&(v=x.hidden):x=m.set(e,"fxshow",{display:c}),s&&(x.hidden=!v),v&&ye([e],!0),l.done(function(){v||ye([e]),m.remove(e,"fxshow");for(i in h)r.style(e,i,h[i])})),f=yn(v?x[i]:0,i,l),i in x||(x[i]=f.start,v&&(f.end=f.start,f.start=0))}}function ki(e,t){var n,i,o,s,u;for(n in e)if(i=ht(n),o=t[i],s=e[n],Array.isArray(s)&&(o=s[1],s=e[n]=s[0]),n!==i&&(e[i]=s,delete e[n]),u=r.cssHooks[i],u&&"expand"in u){s=u.expand(s),delete e[i];for(n in s)n in e||(e[n]=s[n],t[n]=o)}else t[i]=o}function G(e,t,n){var i,o,s=0,u=G.prefilters.length,a=r.Deferred().always(function(){delete f.elem}),f=function(){if(o)return!1;for(var d=me||gn(),l=Math.max(0,c.startTime+c.duration-d),h=1-(l/c.duration||0),y=0,v=c.tweens.length;y<v;y++)c.tweens[y].run(h);return a.notifyWith(e,[c,h,l]),h<1&&v?l:(v||a.notifyWith(e,[c,1,0]),a.resolveWith(e,[c]),!1)},c=a.promise({elem:e,props:r.extend({},t),opts:r.extend(!0,{specialEasing:{},easing:r.easing._default},n),originalProperties:t,originalOptions:n,startTime:me||gn(),duration:n.duration,tweens:[],createTween:function(d,l){var h=r.Tween(e,c.opts,d,l,c.opts.specialEasing[d]||c.opts.easing);return c.tweens.push(h),h},stop:function(d){var l=0,h=d?c.tweens.length:0;if(o)return this;for(o=!0;l<h;l++)c.tweens[l].run(1);return d?(a.notifyWith(e,[c,1,0]),a.resolveWith(e,[c,d])):a.rejectWith(e,[c,d]),this}}),p=c.props;for(ki(p,c.opts.specialEasing);s<u;s++)if(i=G.prefilters[s].call(c,e,p,c.opts),i)return typeof i.stop=="function"&&(r._queueHooks(c.elem,c.opts.queue).stop=i.stop.bind(i)),i;return r.map(p,yn,c),typeof c.opts.start=="function"&&c.opts.start.call(e,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),r.fx.timer(r.extend(f,{elem:e,anim:c,queue:c.opts.queue})),c}r.Animation=r.extend(G,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return Vt(n.elem,e,Re.exec(t),n),n}]},tweener:function(e,t){typeof e=="function"?(t=e,e=["*"]):e=e.match(_);for(var n,i=0,o=e.length;i<o;i++)n=e[i],G.tweeners[n]=G.tweeners[n]||[],G.tweeners[n].unshift(t)},prefilters:[Ni],prefilter:function(e,t){t?G.prefilters.unshift(e):G.prefilters.push(e)}}),r.speed=function(e,t,n){var i=e&&typeof e=="object"?r.extend({},e):{complete:n||t||typeof e=="function"&&e,duration:e,easing:n&&t||t&&typeof t!="function"&&t};return r.fx.off?i.duration=0:typeof i.duration!="number"&&(i.duration in r.fx.speeds?i.duration=r.fx.speeds[i.duration]:i.duration=r.fx.speeds._default),(i.queue==null||i.queue===!0)&&(i.queue="fx"),i.old=i.complete,i.complete=function(){typeof i.old=="function"&&i.old.call(this),i.queue&&r.dequeue(this,i.queue)},i},r.fn.extend({fadeTo:function(e,t,n,i){return this.filter(Ve).css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(e,t,n,i){var o=r.isEmptyObject(e),s=r.speed(t,n,i),u=function(){var a=G(this,r.extend({},e),s);(o||m.get(this,"finish"))&&a.stop(!0)};return u.finish=u,o||s.queue===!1?this.each(u):this.queue(s.queue,u)},stop:function(e,t,n){var i=function(o){var s=o.stop;delete o.stop,s(n)};return typeof e!="string"&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each(function(){var o=!0,s=e!=null&&e+"queueHooks",u=r.timers,a=m.get(this);if(s)a[s]&&a[s].stop&&i(a[s]);else for(s in a)a[s]&&a[s].stop&&ji.test(s)&&i(a[s]);for(s=u.length;s--;)u[s].elem===this&&(e==null||u[s].queue===e)&&(u[s].anim.stop(n),o=!1,u.splice(s,1));(o||!n)&&r.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var t,n=m.get(this),i=n[e+"queue"],o=n[e+"queueHooks"],s=r.timers,u=i?i.length:0;for(n.finish=!0,r.queue(this,e,[]),o&&o.stop&&o.stop.call(this,!0),t=s.length;t--;)s[t].elem===this&&s[t].queue===e&&(s[t].anim.stop(!0),s.splice(t,1));for(t=0;t<u;t++)i[t]&&i[t].finish&&i[t].finish.call(this);delete n.finish})}}),r.each(["toggle","show","hide"],function(e,t){var n=r.fn[t];r.fn[t]=function(i,o,s){return i==null||typeof i=="boolean"?n.apply(this,arguments):this.animate(tt(t,!0),i,o,s)}}),r.each({slideDown:tt("show"),slideUp:tt("hide"),slideToggle:tt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){r.fn[e]=function(n,i,o){return this.animate(t,n,i,o)}}),r.timers=[],r.fx.tick=function(){var e,t=0,n=r.timers;for(me=Date.now();t<n.length;t++)e=n[t],!e()&&n[t]===e&&n.splice(t--,1);n.length||r.fx.stop(),me=void 0},r.fx.timer=function(e){r.timers.push(e),r.fx.start()},r.fx.start=function(){et||(et=!0,At())},r.fx.stop=function(){et=null},r.fx.speeds={slow:600,fast:200,_default:400},r.fn.delay=function(e,t){return e=r.fx&&r.fx.speeds[e]||e,t=t||"fx",this.queue(t,function(n,i){var o=b.setTimeout(n,e);i.stop=function(){b.clearTimeout(o)}})};var Ii=/^(?:input|select|textarea|button)$/i,Oi=/^(?:a|area)$/i;r.fn.extend({prop:function(e,t){return V(this,r.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[r.propFix[e]||e]})}}),r.extend({prop:function(e,t,n){var i,o,s=e.nodeType;if(!(s===3||s===8||s===2))return(s!==1||!r.isXMLDoc(e))&&(t=r.propFix[t]||t,o=r.propHooks[t]),n!==void 0?o&&"set"in o&&(i=o.set(e,n,t))!==void 0?i:e[t]=n:o&&"get"in o&&(i=o.get(e,t))!==null?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=e.getAttribute("tabindex");return t?parseInt(t,10):Ii.test(e.nodeName)||Oi.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),q&&(r.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),r.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){r.propFix[this.toLowerCase()]=this});function ce(e){var t=e.match(_)||[];return t.join(" ")}function be(e){return e.getAttribute&&e.getAttribute("class")||""}function xt(e){return Array.isArray(e)?e:typeof e=="string"?e.match(_)||[]:[]}r.fn.extend({addClass:function(e){var t,n,i,o,s;return typeof e=="function"?this.each(function(u){r(this).addClass(e.call(this,u,be(this)))}):(t=xt(e),t.length?this.each(function(){if(i=be(this),n=this.nodeType===1&&" "+ce(i)+" ",n){for(o=0;o<t.length;o++)n.indexOf(" "+t[o]+" ")<0&&(n+=t[o]+" ");s=ce(n),i!==s&&this.setAttribute("class",s)}}):this)},removeClass:function(e){var t,n,i,o,s;return typeof e=="function"?this.each(function(u){r(this).removeClass(e.call(this,u,be(this)))}):arguments.length?(t=xt(e),t.length?this.each(function(){if(i=be(this),n=this.nodeType===1&&" "+ce(i)+" ",n){for(o=0;o<t.length;o++)for(;n.indexOf(" "+t[o]+" ")>-1;)n=n.replace(" "+t[o]+" "," ");s=ce(n),i!==s&&this.setAttribute("class",s)}}):this):this.attr("class","")},toggleClass:function(e,t){var n,i,o;return typeof e=="function"?this.each(function(s){r(this).toggleClass(e.call(this,s,be(this),t),t)}):typeof t=="boolean"?t?this.addClass(e):this.removeClass(e):(n=xt(e),n.length?this.each(function(){for(o=r(this),i=0;i<n.length;i++)o.hasClass(n[i])?o.removeClass(n[i]):o.addClass(n[i])}):this)},hasClass:function(e){var t,n;for(t=" "+e+" ",n=0;n<this.length;n++)if(this[n].nodeType===1&&(" "+ce(be(this[n]))+" ").indexOf(t)>-1)return!0;return!1}}),r.fn.extend({val:function(e){var t,n,i,o=this[0];return arguments.length?(i=typeof e=="function",this.each(function(s){var u;this.nodeType===1&&(i?u=e.call(this,s,r(this).val()):u=e,u==null?u="":typeof u=="number"?u+="":Array.isArray(u)&&(u=r.map(u,function(a){return a==null?"":a+""})),t=r.valHooks[this.type]||r.valHooks[this.nodeName.toLowerCase()],(!t||!("set"in t)||t.set(this,u,"value")===void 0)&&(this.value=u))})):o?(t=r.valHooks[o.type]||r.valHooks[o.nodeName.toLowerCase()],t&&"get"in t&&(n=t.get(o,"value"))!==void 0?n:(n=o.value,n??"")):void 0}}),r.extend({valHooks:{select:{get:function(e){var t,n,i,o=e.options,s=e.selectedIndex,u=e.type==="select-one",a=u?null:[],f=u?s+1:o.length;for(s<0?i=f:i=u?s:0;i<f;i++)if(n=o[i],n.selected&&!n.disabled&&(!n.parentNode.disabled||!S(n.parentNode,"optgroup"))){if(t=r(n).val(),u)return t;a.push(t)}return a},set:function(e,t){for(var n,i,o=e.options,s=r.makeArray(t),u=o.length;u--;)i=o[u],(i.selected=r.inArray(r(i).val(),s)>-1)&&(n=!0);return n||(e.selectedIndex=-1),s}}}}),q&&(r.valHooks.option={get:function(e){var t=e.getAttribute("value");return t??ce(r.text(e))}}),r.each(["radio","checkbox"],function(){r.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=r.inArray(r(e).val(),t)>-1}}});var vn=/^(?:focusinfocus|focusoutblur)$/,An=function(e){e.stopPropagation()};r.extend(r.event,{trigger:function(e,t,n,i){var o,s,u,a,f,c,p,d,l,h=le.call(e,"type")?e.type:e,y=le.call(e,"namespace")?e.namespace.split("."):[];if(s=l=u=n=n||N,a=[s],!(n.nodeType===3||n.nodeType===8)&&!vn.test(h+r.event.triggered)&&(h.indexOf(".")>-1&&(y=h.split("."),h=y.shift(),y.sort()),c=h.indexOf(":")<0&&"on"+h,e=e[r.expando]?e:new r.Event(h,typeof e=="object"&&e),e.isTrigger=i?2:3,e.namespace=y.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+y.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=t==null?[e]:r.makeArray(t,[e]),d=r.event.special[h]||{},!(!i&&d.trigger&&d.trigger.apply(n,t)===!1))){if(!i&&!d.noBubble&&!Se(n)){for(f=d.delegateType||h,vn.test(f+h)||(s=s.parentNode);s;s=s.parentNode)a.push(s),u=s;u===(n.ownerDocument||N)&&a.push(u.defaultView||u.parentWindow||b)}for(o=0;o<a.length&&!e.isPropagationStopped();o++)s=a[o],l=s,e.type=o?f:d.bindType||h,p=(m.get(s,"events")||Object.create(null))[e.type]&&m.get(s,"handle"),p&&p.apply(s,t),p=c&&s[c],p&&p.apply&&Ie(s)&&(e.result=p.apply(s,t),e.result===!1&&e.preventDefault());return e.type=h,!i&&!e.isDefaultPrevented()&&(!d._default||d._default.apply(a.pop(),t)===!1)&&Ie(n)&&c&&typeof n[h]=="function"&&!Se(n)&&(u=n[c],u&&(n[c]=null),r.event.triggered=h,e.isPropagationStopped()&&l.addEventListener(h,An),n[h](),e.isPropagationStopped()&&l.removeEventListener(h,An),r.event.triggered=void 0,u&&(n[c]=u)),e.result}},simulate:function(e,t,n){var i=r.extend(new r.Event,n,{type:e,isSimulated:!0});r.event.trigger(i,null,t)}}),r.fn.extend({trigger:function(e,t){return this.each(function(){r.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return r.event.trigger(e,t,n,!0)}});var He=b.location,xn={guid:Date.now()},mt=/\?/;r.parseXML=function(e){var t,n;if(!e||typeof e!="string")return null;try{t=new b.DOMParser().parseFromString(e,"text/xml")}catch{}return n=t&&t.querySelector("parsererror"),(!t||n)&&r.error("Invalid XML: "+(n?r.map(n.childNodes,function(i){return i.textContent}).join(`
|
|
11
|
+
`):e)),t};var Ri=/\[\]$/,mn=/\r?\n/g,qi=/^(?:submit|button|image|reset|file)$/i,Hi=/^(?:input|select|textarea|keygen)/i;function bt(e,t,n,i){var o;if(Array.isArray(t))r.each(t,function(s,u){n||Ri.test(e)?i(e,u):bt(e+"["+(typeof u=="object"&&u!=null?s:"")+"]",u,n,i)});else if(!n&&Ee(t)==="object")for(o in t)bt(e+"["+o+"]",t[o],n,i);else i(e,t)}r.param=function(e,t){var n,i=[],o=function(s,u){var a=typeof u=="function"?u():u;i[i.length]=encodeURIComponent(s)+"="+encodeURIComponent(a??"")};if(e==null)return"";if(Array.isArray(e)||e.jquery&&!r.isPlainObject(e))r.each(e,function(){o(this.name,this.value)});else for(n in e)bt(n,e[n],t,o);return i.join("&")},r.fn.extend({serialize:function(){return r.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=r.prop(this,"elements");return e?r.makeArray(e):Hi.test(this.nodeName)?this:[]}).filter(function(){var e=this.type;return this.name&&!r(this).is(":disabled")&&!qi.test(e)&&(this.checked||!Ke.test(e))}).map(function(e,t){var n=r(this).val();return n==null?null:Array.isArray(n)?r.map(n,function(i){return{name:t.name,value:i.replace(mn,`\r
|
|
12
|
+
`)}}):{name:t.name,value:n.replace(mn,`\r
|
|
13
|
+
`)}}).get()}});var Pi=/%20/g,Mi=/#.*$/,Li=/([?&])_=[^&]*/,Bi=/^(.*?):[ \t]*([^\r\n]*)$/mg,Fi=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Qi=/^(?:GET|HEAD)$/,Wi=/^\/\//,bn={},Tt={},Tn="*/".concat("*"),Ct=fe("a");Ct.href=He.href;function Cn(e){return function(t,n){typeof t!="string"&&(n=t,t="*");var i,o,s=t.toLowerCase().match(_)||[];if(typeof n=="function")for(o=0;o<s.length;o++)i=s[o],i[0]==="+"?(i=i.slice(1)||"*",(e[i]=e[i]||[]).unshift(n)):(e[i]=e[i]||[]).push(n)}}function wn(e,t,n,i){var o={},s=e===Tt;function u(a){var f;return o[a]=!0,r.each(e[a]||[],function(c,p){var d=p(t,n,i);if(typeof d=="string"&&!s&&!o[d])return t.dataTypes.unshift(d),u(d),!1;if(s)return!(f=d)}),f}return u(t.dataTypes[0])||!o["*"]&&u("*")}function wt(e,t){var n,i,o=r.ajaxSettings.flatOptions||{};for(n in t)t[n]!==void 0&&((o[n]?e:i||(i={}))[n]=t[n]);return i&&r.extend(!0,e,i),e}function Ui(e,t,n){for(var i,o,s,u,a=e.contents,f=e.dataTypes;f.length&&f[0]==="*";)f.shift(),i===void 0&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i){for(o in a)if(a[o]&&a[o].test(i)){f.unshift(o);break}}if(f[0]in n)s=f[0];else{for(o in n){if(!f[0]||e.converters[o+" "+f[0]]){s=o;break}u||(u=o)}s=s||u}if(s)return s!==f[0]&&f.unshift(s),n[s]}function Gi(e,t,n,i){var o,s,u,a,f,c={},p=e.dataTypes.slice();if(p[1])for(u in e.converters)c[u.toLowerCase()]=e.converters[u];for(s=p.shift();s;)if(e.responseFields[s]&&(n[e.responseFields[s]]=t),!f&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),f=s,s=p.shift(),s){if(s==="*")s=f;else if(f!=="*"&&f!==s){if(u=c[f+" "+s]||c["* "+s],!u){for(o in c)if(a=o.split(" "),a[1]===s&&(u=c[f+" "+a[0]]||c["* "+a[0]],u)){u===!0?u=c[o]:c[o]!==!0&&(s=a[0],p.unshift(a[1]));break}}if(u!==!0)if(u&&e.throws)t=u(t);else try{t=u(t)}catch(d){return{state:"parsererror",error:u?d:"No conversion from "+f+" to "+s}}}}return{state:"success",data:t}}r.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:He.href,type:"GET",isLocal:Fi.test(He.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Tn,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":r.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?wt(wt(e,r.ajaxSettings),t):wt(r.ajaxSettings,e)},ajaxPrefilter:Cn(bn),ajaxTransport:Cn(Tt),ajax:function(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};var n,i,o,s,u,a,f,c,p,d,l=r.ajaxSetup({},t),h=l.context||l,y=l.context&&(h.nodeType||h.jquery)?r(h):r.event,v=r.Deferred(),x=r.Callbacks("once memory"),j=l.statusCode||{},D={},Y={},H="canceled",C={readyState:0,getResponseHeader:function(T){var I;if(f){if(!s)for(s={};I=Bi.exec(o);)s[I[1].toLowerCase()+" "]=(s[I[1].toLowerCase()+" "]||[]).concat(I[2]);I=s[T.toLowerCase()+" "]}return I==null?null:I.join(", ")},getAllResponseHeaders:function(){return f?o:null},setRequestHeader:function(T,I){return f==null&&(T=Y[T.toLowerCase()]=Y[T.toLowerCase()]||T,D[T]=I),this},overrideMimeType:function(T){return f==null&&(l.mimeType=T),this},statusCode:function(T){var I;if(T)if(f)C.always(T[C.status]);else for(I in T)j[I]=[j[I],T[I]];return this},abort:function(T){var I=T||H;return n&&n.abort(I),nt(0,I),this}};if(v.promise(C),l.url=((e||l.url||He.href)+"").replace(Wi,He.protocol+"//"),l.type=t.method||t.type||l.method||l.type,l.dataTypes=(l.dataType||"*").toLowerCase().match(_)||[""],l.crossDomain==null){a=fe("a");try{a.href=l.url,a.href=a.href,l.crossDomain=Ct.protocol+"//"+Ct.host!=a.protocol+"//"+a.host}catch{l.crossDomain=!0}}if(wn(bn,l,t,C),l.data&&l.processData&&typeof l.data!="string"&&(l.data=r.param(l.data,l.traditional)),f)return C;c=r.event&&l.global,c&&r.active++===0&&r.event.trigger("ajaxStart"),l.type=l.type.toUpperCase(),l.hasContent=!Qi.test(l.type),i=l.url.replace(Mi,""),l.hasContent?l.data&&l.processData&&(l.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(l.data=l.data.replace(Pi,"+")):(d=l.url.slice(i.length),l.data&&(l.processData||typeof l.data=="string")&&(i+=(mt.test(i)?"&":"?")+l.data,delete l.data),l.cache===!1&&(i=i.replace(Li,"$1"),d=(mt.test(i)?"&":"?")+"_="+xn.guid+++d),l.url=i+d),l.ifModified&&(r.lastModified[i]&&C.setRequestHeader("If-Modified-Since",r.lastModified[i]),r.etag[i]&&C.setRequestHeader("If-None-Match",r.etag[i])),(l.data&&l.hasContent&&l.contentType!==!1||t.contentType)&&C.setRequestHeader("Content-Type",l.contentType),C.setRequestHeader("Accept",l.dataTypes[0]&&l.accepts[l.dataTypes[0]]?l.accepts[l.dataTypes[0]]+(l.dataTypes[0]!=="*"?", "+Tn+"; q=0.01":""):l.accepts["*"]);for(p in l.headers)C.setRequestHeader(p,l.headers[p]);if(l.beforeSend&&(l.beforeSend.call(h,C,l)===!1||f))return C.abort();if(H="abort",x.add(l.complete),C.done(l.success),C.fail(l.error),n=wn(Tt,l,t,C),!n)nt(-1,"No Transport");else{if(C.readyState=1,c&&y.trigger("ajaxSend",[C,l]),f)return C;l.async&&l.timeout>0&&(u=b.setTimeout(function(){C.abort("timeout")},l.timeout));try{f=!1,n.send(D,nt)}catch(T){if(f)throw T;nt(-1,T)}}function nt(T,I,St,Dn){var oe,Dt,Pe,Te,Ce,Z,jn;typeof T=="object"&&(I=T.statusText,St=T.responses,Dn=T.headers,jn=T.responseURL,T=T.status),Z=I,!f&&(f=!0,u&&b.clearTimeout(u),n=void 0,o=Dn||"",C.readyState=T>0?4:0,oe=T>=200&&T<300||T===304,St&&(Te=Ui(l,C,St)),!oe&&r.inArray("script",l.dataTypes)>-1&&r.inArray("json",l.dataTypes)<0&&(l.converters["text script"]=function(){}),Te=Gi(l,Te,C,oe),oe?(l.ifModified&&(Ce=C.getResponseHeader("Last-Modified"),Ce&&(r.lastModified[i]=Ce),Ce=C.getResponseHeader("etag"),Ce&&(r.etag[i]=Ce)),T===204||l.type==="HEAD"?Z="nocontent":T===304?Z="notmodified":(Z=Te.state,Dt=Te.data,Pe=Te.error,oe=!Pe)):(Pe=Z,(T||!Z)&&(Z="error",T<0&&(T=0))),C.status=T,C.statusText=(I||Z)+"",C.responseURL=jn,oe?v.resolveWith(h,[Dt,Z,C]):v.rejectWith(h,[C,Z,Pe]),C.statusCode(j),j=void 0,c&&y.trigger(oe?"ajaxSuccess":"ajaxError",[C,l,oe?Dt:Pe]),x.fireWith(h,[C,Z]),c&&(y.trigger("ajaxComplete",[C,l]),--r.active||r.event.trigger("ajaxStop")))}return C},getJSON:function(e,t,n){return r.get(e,t,n,"json")},getScript:function(e,t){return r.get(e,void 0,t,"script")}}),r.each(["get","post"],function(e,t){r[t]=function(n,i,o,s){return(typeof i=="function"||i===null)&&(s=s||o,o=i,i=void 0),r.ajax(r.extend({url:n,type:t,dataType:s,data:i,success:o},r.isPlainObject(n)&&n))}}),r.ajaxPrefilter(function(e){var t;for(t in e.headers)t.toLowerCase()==="content-type"&&(e.contentType=e.headers[t]||"")}),r._evalUrl=function(e,t,n){return r.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,scriptAttrs:t.crossOrigin?{crossOrigin:t.crossOrigin}:void 0,converters:{"text script":function(){}},dataFilter:function(i){r.globalEval(i,t,n)}})},r.fn.extend({wrapAll:function(e){var t;return this[0]&&(typeof e=="function"&&(e=e.call(this[0])),t=r(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var n=this;n.firstElementChild;)n=n.firstElementChild;return n}).append(this)),this},wrapInner:function(e){return typeof e=="function"?this.each(function(t){r(this).wrapInner(e.call(this,t))}):this.each(function(){var t=r(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=typeof e=="function";return this.each(function(n){r(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){r(this).replaceWith(this.childNodes)}),this}}),r.expr.pseudos.hidden=function(e){return!r.expr.pseudos.visible(e)},r.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},r.ajaxSettings.xhr=function(){return new b.XMLHttpRequest};var Yi={0:200};r.ajaxTransport(function(e){var t;return{send:function(n,i){var o,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(o in e.xhrFields)s[o]=e.xhrFields[o];e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),!e.crossDomain&&!n["X-Requested-With"]&&(n["X-Requested-With"]="XMLHttpRequest");for(o in n)s.setRequestHeader(o,n[o]);t=function(u){return function(){t&&(t=s.onload=s.onerror=s.onabort=s.ontimeout=null,u==="abort"?s.abort():i(u==="error"?{status:s.status,statusText:s.statusText,responseURL:s.responseURL}:{status:Yi[s.status]||s.status,statusText:s.statusText,responses:(s.responseType||"text")==="text"?{text:s.responseText}:{binary:s.response},headers:s.getAllResponseHeaders(),responseURL:s.responseURL}))}},s.onload=t(),s.onabort=s.onerror=s.ontimeout=t("error"),t=t("abort");try{s.send(e.hasContent&&e.data||null)}catch(u){if(t)throw u}},abort:function(){t&&t()}}});function En(e){return e.scriptAttrs||!e.headers&&(e.crossDomain||e.async&&r.inArray("json",e.dataTypes)<0)}r.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},converters:{"text script":function(e){return r.globalEval(e),e}}}),r.ajaxPrefilter("script",function(e){e.cache===void 0&&(e.cache=!1),En(e)&&(e.type="GET")}),r.ajaxTransport("script",function(e){if(En(e)){var t,n;return{send:function(i,o){t=r("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(s){t.remove(),n=null,s&&o(s.type==="error"?404:200,s.type)}),N.head.appendChild(t[0])},abort:function(){n&&n()}}}});var Sn=[],Et=/(=)\?(?=&|$)|\?\?/;r.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Sn.pop()||r.expando+"_"+xn.guid++;return this[e]=!0,e}}),r.ajaxPrefilter("jsonp",function(e,t,n){var i,o,s,u=e.jsonp!==!1&&(Et.test(e.url)?"url":typeof e.data=="string"&&(e.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&Et.test(e.data)&&"data");return i=e.jsonpCallback=typeof e.jsonpCallback=="function"?e.jsonpCallback():e.jsonpCallback,u?e[u]=e[u].replace(Et,"$1"+i):e.jsonp!==!1&&(e.url+=(mt.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return s||r.error(i+" was not called"),s[0]},e.dataTypes[0]="json",o=b[i],b[i]=function(){s=arguments},n.always(function(){o===void 0?r(b).removeProp(i):b[i]=o,e[i]&&(e.jsonpCallback=t.jsonpCallback,Sn.push(i)),s&&typeof o=="function"&&o(s[0]),s=o=void 0}),"script"}),r.ajaxPrefilter(function(e,t){typeof e.data!="string"&&!r.isPlainObject(e.data)&&!Array.isArray(e.data)&&!("processData"in t)&&(e.processData=!1),e.data instanceof b.FormData&&(e.contentType=!1)}),r.parseHTML=function(e,t,n){if(typeof e!="string"&&!Gt(e+""))return[];typeof t=="boolean"&&(n=t,t=!1);var i,o;return t||(t=new b.DOMParser().parseFromString("","text/html")),i=Ut.exec(e),o=!n&&[],i?[t.createElement(i[1])]:(i=zt([e],t,o),o&&o.length&&r(o).remove(),r.merge([],i.childNodes))},r.fn.load=function(e,t,n){var i,o,s,u=this,a=e.indexOf(" ");return a>-1&&(i=ce(e.slice(a)),e=e.slice(0,a)),typeof t=="function"?(n=t,t=void 0):t&&typeof t=="object"&&(o="POST"),u.length>0&&r.ajax({url:e,type:o||"GET",dataType:"html",data:t}).done(function(f){s=arguments,u.html(i?r("<div>").append(r.parseHTML(f)).find(i):f)}).always(n&&function(f,c){u.each(function(){n.apply(this,s||[f.responseText,c,f])})}),this},r.expr.pseudos.animated=function(e){return r.grep(r.timers,function(t){return e===t.elem}).length},r.offset={setOffset:function(e,t,n){var i,o,s,u,a,f,c,p=r.css(e,"position"),d=r(e),l={};p==="static"&&(e.style.position="relative"),a=d.offset(),s=r.css(e,"top"),f=r.css(e,"left"),c=(p==="absolute"||p==="fixed")&&(s+f).indexOf("auto")>-1,c?(i=d.position(),u=i.top,o=i.left):(u=parseFloat(s)||0,o=parseFloat(f)||0),typeof t=="function"&&(t=t.call(e,n,r.extend({},a))),t.top!=null&&(l.top=t.top-a.top+u),t.left!=null&&(l.left=t.left-a.left+o),"using"in t?t.using.call(e,l):d.css(l)}},r.fn.extend({offset:function(e){if(arguments.length)return e===void 0?this:this.each(function(o){r.offset.setOffset(this,e,o)});var t,n,i=this[0];if(i)return i.getClientRects().length?(t=i.getBoundingClientRect(),n=i.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var e,t,n,i=this[0],o={top:0,left:0};if(r.css(i,"position")==="fixed")t=i.getBoundingClientRect();else{for(t=this.offset(),n=i.ownerDocument,e=i.offsetParent||n.documentElement;e&&e!==n.documentElement&&r.css(e,"position")==="static";)e=e.offsetParent||n.documentElement;e&&e!==i&&e.nodeType===1&&r.css(e,"position")!=="static"&&(o=r(e).offset(),o.top+=r.css(e,"borderTopWidth",!0),o.left+=r.css(e,"borderLeftWidth",!0))}return{top:t.top-o.top-r.css(i,"marginTop",!0),left:t.left-o.left-r.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&r.css(e,"position")==="static";)e=e.offsetParent;return e||te})}}),r.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n=t==="pageYOffset";r.fn[e]=function(i){return V(this,function(o,s,u){var a;if(Se(o)?a=o:o.nodeType===9&&(a=o.defaultView),u===void 0)return a?a[t]:o[s];a?a.scrollTo(n?a.pageXOffset:u,n?u:a.pageYOffset):o[s]=u},e,i,arguments.length)}}),r.each({Height:"height",Width:"width"},function(e,t){r.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,i){r.fn[i]=function(o,s){var u=arguments.length&&(n||typeof o!="boolean"),a=n||(o===!0||s===!0?"margin":"border");return V(this,function(f,c,p){var d;return Se(f)?i.indexOf("outer")===0?f["inner"+e]:f.document.documentElement["client"+e]:f.nodeType===9?(d=f.documentElement,Math.max(f.body["scroll"+e],d["scroll"+e],f.body["offset"+e],d["offset"+e],d["client"+e])):p===void 0?r.css(f,c,a):r.style(f,c,p,a)},t,u?o:void 0,u)}})}),r.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){r.fn[t]=function(n){return this.on(t,n)}}),r.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,i){return this.on(t,e,n,i)},undelegate:function(e,t,n){return arguments.length===1?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)}}),r.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){r.fn[t]=function(n,i){return arguments.length>0?this.on(t,null,n,i):this.trigger(t)}}),r.proxy=function(e,t){var n,i,o;if(typeof t=="string"&&(n=e[t],t=e,e=n),typeof e=="function")return i=w.call(arguments,2),o=function(){return e.apply(t||this,i.concat(w.call(arguments)))},o.guid=e.guid=e.guid||r.guid++,o},r.holdReady=function(e){e?r.readyWait++:r.ready(!0)},r.expr[":"]=r.expr.filters=r.expr.pseudos,typeof define=="function"&&define.amd&&define("jquery",[],function(){return r});var Zi=b.jQuery,_i=b.$;return r.noConflict=function(e){return b.$===r&&(b.$=_i),e&&b.jQuery===r&&(b.jQuery=Zi),r},r}Ji(window);class it{static isHtmlElement(g){if(g===null)return!1;try{return g instanceof Element||g instanceof Document}catch{return typeof g=="object"&&g.nodeType===Node.ELEMENT_NODE&&typeof g.style=="object"&&typeof g.ownerDocument=="object"}}static getComputedStyle(g,A){return it.isHtmlElement(g)?document&&document.defaultView&&document.defaultView.getComputedStyle(g,A||null):null}static createCSS(g,A,k){if(g===null)throw new Error(`[CommonUtilities.createCSS] passed content is not a string. Is type ${typeof g}`);const w=document.head,O=document.createElement("style");typeof A=="string"&&(O.id=A),typeof k=="string"&&k.length>0&&O.setAttribute("media",k),typeof O.styleSheet=="object"?O.styleSheet.cssText=g:O.appendChild(document.createTextNode(g)),w.appendChild(O)}}class Vi{constructor(){this.inputTypeFileHandlerReference=null,this.customInputElements=null,this.onCompressionDoneCallback=void 0,this.originalCursor=void 0,this.timeoutId=void 0,this.processedEvent=!1,this.busyElementId="sl_busy_indicator",this.quality=.75}createCSS(){it.createCSS(`
|
|
14
|
+
.sl-busy-indicator {
|
|
15
|
+
display: flex;
|
|
16
|
+
justify-content: center;
|
|
17
|
+
position: fixed;
|
|
18
|
+
top: 4px;
|
|
19
|
+
width: 100%;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.sl-busy-indicator span {
|
|
23
|
+
background-image: url("data:image/gif;base64,R0lGODlhHwAfAPUAAP///wAAAOjo6NLS0ry8vK6urqKiotzc3Li4uJqamuTk5NjY2KqqqqCgoLCwsMzMzPb29qioqNTU1Obm5jY2NiYmJlBQUMTExHBwcJKSklZWVvr6+mhoaEZGRsbGxvj4+EhISDIyMgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/hpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh+QQJCgAAACwAAAAAHwAfAAAG/0CAcEgUDAgFA4BiwSQexKh0eEAkrldAZbvlOD5TqYKALWu5XIwnPFwwymY0GsRgAxrwuJwbCi8aAHlYZ3sVdwtRCm8JgVgODwoQAAIXGRpojQwKRGSDCRESYRsGHYZlBFR5AJt2a3kHQlZlERN2QxMRcAiTeaG2QxJ5RnAOv1EOcEdwUMZDD3BIcKzNq3BJcJLUABBwStrNBtjf3GUGBdLfCtadWMzUz6cDxN/IZQMCvdTBcAIAsli0jOHSJeSAqmlhNr0awo7RJ19TJORqdAXVEEVZyjyKtE3Bg3oZE2iK8oeiKkFZGiCaggelSTiA2LhxiZLBSjZjBL2siNBOFQ84LxHA+mYEiRJzBO7ZCQIAIfkECQoAAAAsAAAAAB8AHwAABv9AgHBIFAwIBQPAUCAMBMSodHhAJK5XAPaKOEynCsIWqx0nCIrvcMEwZ90JxkINaMATZXfju9jf82YAIQxRCm14Ww4PChAAEAoPDlsAFRUgHkRiZAkREmoSEXiVlRgfQgeBaXRpo6MOQlZbERN0Qx4drRUcAAJmnrVDBrkVDwNjr8BDGxq5Z2MPyUQZuRgFY6rRABe5FgZjjdm8uRTh2d5b4NkQY0zX5QpjTc/lD2NOx+WSW0++2RJmUGJhmZVsQqgtCE6lqpXGjBchmt50+hQKEAEiht5gUcTIESR9GhlgE9IH0BiTkxrMmWIHDkose9SwcQlHDsOIk9ygiVbl5JgMLuV4HUmypMkTOkEAACH5BAkKAAAALAAAAAAfAB8AAAb/QIBwSBQMCAUDwFAgDATEqHR4QCSuVwD2ijhMpwrCFqsdJwiK73DBMGfdCcZCDWjAE2V347vY3/NmdXNECm14Ww4PChAAEAoPDltlDGlDYmQJERJqEhGHWARUgZVqaWZeAFZbERN0QxOeWwgAAmabrkMSZkZjDrhRkVtHYw+/RA9jSGOkxgpjSWOMxkIQY0rT0wbR2LQV3t4UBcvcF9/eFpdYxdgZ5hUYA73YGxruCbVjt78G7hXFqlhY/fLQwR0HIQdGuUrTz5eQdIc0cfIEwByGD0MKvcGSaFGjR8GyeAPhIUofQGNQSgrB4IsdOCqx7FHDBiYcOQshYjKDxliVDpRjunCjdSTJkiZP6AQBACH5BAkKAAAALAAAAAAfAB8AAAb/QIBwSBQMCAUDwFAgDATEqHR4QCSuVwD2ijhMpwrCFqsdJwiK73DBMGfdCcZCDWjAE2V347vY3/NmdXNECm14Ww4PChAAEAoPDltlDGlDYmQJERJqEhGHWARUgZVqaWZeAFZbERN0QxOeWwgAAmabrkMSZkZjDrhRkVtHYw+/RA9jSGOkxgpjSWOMxkIQY0rT0wbR2I3WBcvczltNxNzIW0693MFYT7bTumNQqlisv7BjswAHo64egFdQAbj0RtOXDQY6VAAUakihN1gSLaJ1IYOGChgXXqEUpQ9ASRlDYhT0xQ4cACJDhqDD5mRKjCAYuArjBmVKDP9+VRljMyMHDwcfuBlBooSCBQwJiqkJAgAh+QQJCgAAACwAAAAAHwAfAAAG/0CAcEgUDAgFA8BQIAwExKh0eEAkrlcA9oo4TKcKwharHScIiu9wwTBn3QnGQg1owBNld+O72N/zZnVzRApteFsODwoQABAKDw5bZQxpQ2JkCRESahIRh1gEVIGVamlmXgBWWxETdEMTnlsIAAJmm65DEmZGYw64UZFbR2MPv0QPY0hjpMYKY0ljjMZCEGNK09MG0diN1gXL3M5bTcTcyFtOvdzBWE+207pjUKpYrL+wY7MAB4EerqZjUAG4lKVCBwMbvnT6dCXUkEIFK0jUkOECFEeQJF2hFKUPAIkgQwIaI+hLiJAoR27Zo4YBCJQgVW4cpMYDBpgVZKL59cEBhw+U+QROQ4bBAoUlTZ7QCQIAIfkECQoAAAAsAAAAAB8AHwAABv9AgHBIFAwIBQPAUCAMBMSodHhAJK5XAPaKOEynCsIWqx0nCIrvcMEwZ90JxkINaMATZXfju9jf82Z1c0QKbXhbDg8KEAAQCg8OW2UMaUNiZAkREmoSEYdYBFSBlWppZl4AVlsRE3RDE55bCAACZpuuQxJmRmMOuFGRW0djD79ED2NIY6TGCmNJY4zGQhBjStPTFBXb21DY1VsGFtzbF9gAzlsFGOQVGefIW2LtGhvYwVgDD+0V17+6Y6BwaNfBwy9YY2YBcMAPnStTY1B9YMdNiyZOngCFGuIBxDZAiRY1eoTvE6UoDEIAGrNSUoNBUuzAaYlljxo2M+HIeXiJpRsRNMaq+JSFCpsRJEqYOPH2JQgAIfkECQoAAAAsAAAAAB8AHwAABv9AgHBIFAwIBQPAUCAMBMSodHhAJK5XAPaKOEynCsIWqx0nCIrvcMEwZ90JxkINaMATZXfjywjlzX9jdXNEHiAVFX8ODwoQABAKDw5bZQxpQh8YiIhaERJqEhF4WwRDDpubAJdqaWZeAByoFR0edEMTolsIAA+yFUq2QxJmAgmyGhvBRJNbA5qoGcpED2MEFrIX0kMKYwUUslDaj2PA4soGY47iEOQFY6vS3FtNYw/m1KQDYw7mzFhPZj5JGzYGipUtESYowzVmF4ADgOCBCZTgFQAxZBJ4AiXqT6ltbUZhWdToUSR/Ii1FWbDnDkUyDQhJsQPn5ZU9atjUhCPHVhgTNy/RSKsiqKFFbUaQKGHiJNyXIAAh+QQJCgAAACwAAAAAHwAfAAAG/0CAcEh8JDAWCsBQIAwExKhU+HFwKlgsIMHlIg7TqQeTLW+7XYIiPGSAymY0mrFgA0LwuLzbCC/6eVlnewkADXVECgxcAGUaGRdQEAoPDmhnDGtDBJcVHQYbYRIRhWgEQwd7AB52AGt7YAAIchETrUITpGgIAAJ7ErdDEnsCA3IOwUSWaAOcaA/JQ0amBXKa0QpyBQZyENFCEHIG39HcaN7f4WhM1uTZaE1y0N/TacZoyN/LXU+/0cNyoMxCUytYLjm8AKSS46rVKzmxADhjlCACMFGkBiU4NUQRxS4OHijwNqnSJS6ZovzRyJAQo0NhGrgs5bIPmwWLCLHsQsfhxBWTe9QkOzCwC8sv5Ho127akyRM7QQAAOwAAAAAAAAAAAA==");
|
|
24
|
+
background-repeat: no-repeat;
|
|
25
|
+
background-position: 100% 50%;
|
|
26
|
+
background-size: 1.5rem 1.5rem;
|
|
27
|
+
display: inline-flex;
|
|
28
|
+
height: 1.5rem;
|
|
29
|
+
width: 1.5rem;
|
|
30
|
+
}`)}enableBusyIndicator(){const g=it.getComputedStyle(document.body);if(g===null)return;this.originalCursor=g.getPropertyValue("cursor"),document.body.style.cursor="progress";const A=document.createElement("div");A.id=this.busyElementId,A.classList.add("sl-busy-indicator"),A.insertAdjacentHTML("afterbegin","<span></span>"),document.body.appendChild(A)}disableBusyIndicator(){globalThis.clearTimeout(this.timeoutId),typeof this.originalCursor=="string"&&(document.body.style.cursor=this.originalCursor),document.getElementById(this.busyElementId)?.remove()}async compressImage(g,{quality:A=1,type:k=g.type}){let w;try{w=await globalThis.createImageBitmap(g)}catch{return Promise.resolve(null)}const O=document.createElement("canvas");O.width=w.width,O.height=w.height;const P=O.getContext("2d");if(P===null)return Promise.resolve(null);P.drawImage(w,0,0);let M;try{M=await new Promise(Q=>{O.toBlob(Q,k,A)})}catch{return Promise.resolve(null)}return M===null?Promise.resolve(null):new File([M],g.name,{type:M.type})}redispatchEvent(g,A){const k=A;k.disabled=!1;const w={bubbles:g.bubbles,cancelable:g.cancelable,composed:g.composed,currentTarget:g.currentTarget,defaultPrevented:g.defaultPrevented,eventPhase:g.eventPhase,isTrusted:g.isTrusted,returnValue:g.returnValue,srcElement:g.srcElement,target:g.target,timeStamp:g.timeStamp,type:g.type};if(typeof jQuery>"u"){const O=new CustomEvent(g.type,w);k.parentNode?.dispatchEvent(O)}else{const O=$.Event(g.type,w);$(A).trigger(O)}this.processedEvent=!1}async processImages(g,A){const k=A;if(typeof k.files>"u"){this.redispatchEvent(g,k);return}const w=k.files;if(w===null||w.length===0){this.redispatchEvent(g,k);return}this.timeoutId=Number(globalThis.setTimeout(this.enableBusyIndicator.bind(this),1e3));const O=["image/jpeg","image/png","image/webp"],P=R=>R===g.target;let M;if(Array.isArray(this.customInputElements)&&(M=this.customInputElements.find(P),typeof M>"u"))return;const Q=new DataTransfer,Me={quality:this.quality,type:"image/jpeg"},le=async R=>{if(R.type.startsWith("image")===!1||O.includes(R.type)===!1){Q.items.add(R);return}const we=Object.assign(Me,{type:R.type}),ee=await this.compressImage(R,we);ee instanceof File&&(ee.size<R.size?Q.items.add(ee):Q.items.add(R))};for(let R=0,we=w.length;R<we;R+=1)await le(w[R]);g.target.files=Q.files,this.disableBusyIndicator(),typeof this.onCompressionDoneCallback=="function"&&this.onCompressionDoneCallback(w,Q.files),this.redispatchEvent(g,A)}handlejQueryChangeEvent(g){const A=g.originalEvent;if(typeof A>"u"||A.target===null)return;const k=$(A.target);this.processedEvent||!k.is('input[type="file"]')||g.type==="change"&&(g.eventPhase===1&&(this.processedEvent=!0),g.stopPropagation(),k.prop("disabled",!0),this.processImages(A,k[0]))}handleChangeEvent(g){const A=g.target;this.processedEvent||A===null||g.type==="change"&&(A.nodeName.toLowerCase()!=="input"||A.type!=="file"||(g.eventPhase===1&&(this.processedEvent=!0),g.stopPropagation(),A.disabled=!0,this.processImages(g,A)))}addImageOptimization(g){typeof g=="string"&&(this.customInputElements=Array.from(document.querySelectorAll(g)))}uninstall(){this.onCompressionDoneCallback=void 0,this.inputTypeFileHandlerReference!==null&&document.removeEventListener("change",this.inputTypeFileHandlerReference)}install(g,A,k=.75){this.inputTypeFileHandlerReference=this.handleChangeEvent.bind(this),this.quality=k,this.onCompressionDoneCallback=A;const w={capture:!0};window.jQuery?$(document).on("change",this.handlejQueryChangeEvent.bind(this)):document.addEventListener("change",this.inputTypeFileHandlerReference,w),this.createCSS(),typeof g=="string"&&this.addImageOptimization(g)}}export{Vi as OptimizeImage};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare class CommonUtilities {
|
|
2
|
+
static isHtmlElement(el: HTMLElement | Element | Node | null): boolean;
|
|
3
|
+
static getComputedStyle(element: Element, pseudoElt?: string): CSSStyleDeclaration | null;
|
|
4
|
+
static createCSS(content: string, id?: string, media?: string): void;
|
|
5
|
+
}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@sitelintcode/optimize-image-on-the-client-side",
|
|
3
3
|
"description": "Optimize image on the client side",
|
|
4
4
|
"author": "Cezary Tomczyk <cezary.tomczyk@gmail.com> (https://www.sitelint.com/)",
|
|
5
|
-
"version": "0.0.
|
|
5
|
+
"version": "0.0.46",
|
|
6
6
|
"license": "MOZILLA PUBLIC LICENSE, VERSION 2.0",
|
|
7
7
|
"node": ">=16",
|
|
8
8
|
"main": "dist/optimize-image-on-the-client-side.js",
|
|
@@ -20,23 +20,24 @@
|
|
|
20
20
|
"./package.json": "./package.json"
|
|
21
21
|
},
|
|
22
22
|
"files": [
|
|
23
|
-
"dist
|
|
23
|
+
"dist"
|
|
24
24
|
],
|
|
25
25
|
"scripts": {
|
|
26
|
-
"build:dev": "shx rm -rf ./dist && shx mkdir ./dist && npm run scripts:dev && npm run copy:files",
|
|
27
|
-
"build:prod": "shx rm -rf ./dist && shx mkdir ./dist && npm run scripts:prod && npm run copy:files",
|
|
26
|
+
"build:dev": "shx rm -rf ./dist && shx mkdir ./dist && npm run scripts:dev && npm run types:build && npm run copy:files",
|
|
27
|
+
"build:prod": "shx rm -rf ./dist && shx mkdir ./dist && npm run scripts:prod && npm run types:build && npm run copy:files",
|
|
28
28
|
"copy:files": "copyfiles -f ./dist/optimize-image-on-the-client-side.js ./demo",
|
|
29
29
|
"scripts:dev": "rollup --config ./rollup.config.mjs --environment INCLUDE_DEPS,BUILD:development",
|
|
30
30
|
"scripts:prod": "rollup --config ./rollup.config.mjs --environment INCLUDE_DEPS,BUILD:production",
|
|
31
|
-
"
|
|
31
|
+
"types:build": "tsc --emitDeclarationOnly",
|
|
32
|
+
"scripts:lint": "oxlint --fix ./src",
|
|
32
33
|
"lint": "npm run markdown:lint && npm run scripts:lint && dpdm --transform=true --tree=false --warning=false ./src/optimize-image-on-the-client-side.ts && npm run test",
|
|
33
34
|
"markdown:lint": "markdownlint \"**/*.md\" --config=.markdownlint.json --ignore-path=.markdownlintignore",
|
|
34
|
-
"test": "
|
|
35
|
-
"test:debug": "node --inspect
|
|
36
|
-
"test:coverage": "
|
|
35
|
+
"test": "node --no-warnings --import tsx --import ./.test-helpers/setup.ts --test \"src/**/*.test.ts\"",
|
|
36
|
+
"test:debug": "node --inspect --no-warnings --import tsx --import ./.test-helpers/setup.ts --test \"src/**/*.test.ts\"",
|
|
37
|
+
"test:coverage": "node --no-warnings --import tsx --import ./.test-helpers/setup.ts --test --experimental-test-coverage --test-coverage-exclude=\".test-helpers/**\" \"src/**/*.test.ts\"",
|
|
37
38
|
"watch:dev": "chokidar \"./src/**/*.ts\" -c \"npm run build:dev && echo 'Build completed'\"",
|
|
38
39
|
"watch:prod": "chokidar \"./src/**/*.ts\" -c \"npm run build:prod && echo 'Build completed'\"",
|
|
39
|
-
"release": "release-it"
|
|
40
|
+
"release": "release-it --config release-it.json"
|
|
40
41
|
},
|
|
41
42
|
"publishConfig": {
|
|
42
43
|
"access": "public"
|
|
@@ -51,42 +52,41 @@
|
|
|
51
52
|
"private": false,
|
|
52
53
|
"devDependencies": {
|
|
53
54
|
"@alex_neo/jest-expect-message": "1.0.5",
|
|
54
|
-
"@
|
|
55
|
-
"@
|
|
56
|
-
"@types/
|
|
57
|
-
"@types/
|
|
55
|
+
"@rollup/plugin-commonjs": "29.0.3",
|
|
56
|
+
"@rollup/plugin-node-resolve": "16.0.3",
|
|
57
|
+
"@types/jest": "30.0.0",
|
|
58
|
+
"@types/jquery": "4.0.1",
|
|
59
|
+
"@types/jsdom": "30.0.0",
|
|
60
|
+
"@types/node": "26.6.6",
|
|
58
61
|
"@types/sharp": "0.32.0",
|
|
59
|
-
"
|
|
60
|
-
"@typescript-eslint/parser": "8.17.0",
|
|
61
|
-
"bootstrap": "5.3.3",
|
|
62
|
+
"bootstrap": "5.3.9",
|
|
62
63
|
"chokidar-cli": "3.0.0",
|
|
63
64
|
"copyfiles": "2.4.1",
|
|
64
|
-
"dpdm": "3.
|
|
65
|
-
"eslint": "9.16.0",
|
|
66
|
-
"eslint-cli": "1.1.1",
|
|
67
|
-
"eslint-plugin-import": "2.31.0",
|
|
68
|
-
"eslint-plugin-markdown": "5.1.0",
|
|
65
|
+
"dpdm": "4.3.0",
|
|
69
66
|
"html-loader": "5.1.0",
|
|
70
67
|
"husky": "9.1.7",
|
|
71
|
-
"jest": "
|
|
72
|
-
"jest-environment-jsdom": "
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"
|
|
68
|
+
"jest": "30.5.2",
|
|
69
|
+
"jest-environment-jsdom": "30.5.2",
|
|
70
|
+
"jquery": "4.1.0",
|
|
71
|
+
"jsdom": "31.0.1",
|
|
72
|
+
"markdownlint-cli": "0.50.0",
|
|
73
|
+
"oxlint": "1.94.0",
|
|
74
|
+
"oxlint-tsgolint": "7.0.2007",
|
|
75
|
+
"release-it": "21.1.2",
|
|
76
|
+
"rollup": "4.68.8",
|
|
77
|
+
"rollup-plugin-dts": "6.5.1",
|
|
78
|
+
"rollup-plugin-esbuild": "6.2.1",
|
|
78
79
|
"rollup-plugin-html": "0.2.1",
|
|
79
80
|
"rollup-plugin-json": "4.0.0",
|
|
80
81
|
"rollup-plugin-minification": "0.2.0",
|
|
81
|
-
"rollup-plugin-
|
|
82
|
-
"rollup-plugin-
|
|
83
|
-
"rollup-plugin-visualizer": "5.12.0",
|
|
82
|
+
"rollup-plugin-typescript2": "0.37.0",
|
|
83
|
+
"rollup-plugin-visualizer": "7.1.3",
|
|
84
84
|
"shelljs-nodecli": "0.1.1",
|
|
85
|
-
"shx": "0.
|
|
85
|
+
"shx": "0.4.0",
|
|
86
86
|
"standard-version": "9.5.0",
|
|
87
|
-
"
|
|
88
|
-
"typescript
|
|
89
|
-
"webpack-bundle-analyzer": "4.
|
|
87
|
+
"tsx": "4.23.15",
|
|
88
|
+
"typescript": "7.0.2",
|
|
89
|
+
"webpack-bundle-analyzer": "5.4.3"
|
|
90
90
|
},
|
|
91
91
|
"dependencies": {
|
|
92
92
|
"@ungap/global-this": "0.4.4"
|