/*! jQuery v3.5.1 | (c) JS Foundation and other contributors | jquery.org/license */ !function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(C,e){"use strict";var t=[],r=Object.getPrototypeOf,s=t.slice,g=t.flat?function(e){return t.flat.call(e)}:function(e){return t.concat.apply([],e)},u=t.push,i=t.indexOf,n={},o=n.toString,v=n.hasOwnProperty,a=v.toString,l=a.call(Object),y={},m=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},x=function(e){return null!=e&&e===e.window},E=C.document,c={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,n){var r,i,o=(n=n||E).createElement("script");if(o.text=e,t)for(r in c)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function w(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[o.call(e)]||"object":typeof e}var f="3.5.1",S=function(e,t){return new S.fn.init(e,t)};function p(e){var t=!!e&&"length"in e&&e.length,n=w(e);return!m(e)&&!x(e)&&("array"===n||0===t||"number"==typeof t&&0+~]|"+M+")"+M+"*"),U=new RegExp(M+"|>"),X=new RegExp(F),V=new RegExp("^"+I+"$"),G={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+M+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){T()},ae=be(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{H.apply(t=O.call(p.childNodes),p.childNodes),t[p.childNodes.length].nodeType}catch(e){H={apply:t.length?function(e,t){L.apply(e,O.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function se(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!r&&(T(e),e=e||C,E)){if(11!==p&&(u=Z.exec(t)))if(i=u[1]){if(9===p){if(!(a=e.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else if(f&&(a=f.getElementById(i))&&y(e,a)&&a.id===i)return n.push(a),n}else{if(u[2])return H.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&d.getElementsByClassName&&e.getElementsByClassName)return H.apply(n,e.getElementsByClassName(i)),n}if(d.qsa&&!N[t+" "]&&(!v||!v.test(t))&&(1!==p||"object"!==e.nodeName.toLowerCase())){if(c=t,f=e,1===p&&(U.test(t)||z.test(t))){(f=ee.test(t)&&ye(e.parentNode)||e)===e&&d.scope||((s=e.getAttribute("id"))?s=s.replace(re,ie):e.setAttribute("id",s=S)),o=(l=h(t)).length;while(o--)l[o]=(s?"#"+s:":scope")+" "+xe(l[o]);c=l.join(",")}try{return H.apply(n,f.querySelectorAll(c)),n}catch(e){N(t,!0)}finally{s===S&&e.removeAttribute("id")}}}return g(t.replace($,"$1"),e,n,r)}function ue(){var r=[];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function le(e){return e[S]=!0,e}function ce(e){var t=C.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){var n=e.split("|"),r=n.length;while(r--)b.attrHandle[n[r]]=t}function pe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function de(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function he(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function ge(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&ae(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function ve(a){return le(function(o){return o=+o,le(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function ye(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(e in d=se.support={},i=se.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!Y.test(t||n&&n.nodeName||"HTML")},T=se.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:p;return r!=C&&9===r.nodeType&&r.documentElement&&(a=(C=r).documentElement,E=!i(C),p!=C&&(n=C.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",oe,!1):n.attachEvent&&n.attachEvent("onunload",oe)),d.scope=ce(function(e){return a.appendChild(e).appendChild(C.createElement("div")),"undefined"!=typeof e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),d.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),d.getElementsByTagName=ce(function(e){return e.appendChild(C.createComment("")),!e.getElementsByTagName("*").length}),d.getElementsByClassName=K.test(C.getElementsByClassName),d.getById=ce(function(e){return a.appendChild(e).id=S,!C.getElementsByName||!C.getElementsByName(S).length}),d.getById?(b.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(te,ne);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=d.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):d.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},b.find.CLASS=d.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&E)return t.getElementsByClassName(e)},s=[],v=[],(d.qsa=K.test(C.querySelectorAll))&&(ce(function(e){var t;a.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+M+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||v.push("\\["+M+"*(?:value|"+R+")"),e.querySelectorAll("[id~="+S+"-]").length||v.push("~="),(t=C.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||v.push("\\["+M+"*name"+M+"*="+M+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||v.push(":checked"),e.querySelectorAll("a#"+S+"+*").length||v.push(".#.+[+~]"),e.querySelectorAll("\\\f"),v.push("[\\r\\n\\f]")}),ce(function(e){e.innerHTML="";var t=C.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name"+M+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),a.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),v.push(",.*:")})),(d.matchesSelector=K.test(c=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&ce(function(e){d.disconnectedMatch=c.call(e,"*"),c.call(e,"[s!='']:x"),s.push("!=",F)}),v=v.length&&new RegExp(v.join("|")),s=s.length&&new RegExp(s.join("|")),t=K.test(a.compareDocumentPosition),y=t||K.test(a.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},D=t?function(e,t){if(e===t)return l=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!d.sortDetached&&t.compareDocumentPosition(e)===n?e==C||e.ownerDocument==p&&y(p,e)?-1:t==C||t.ownerDocument==p&&y(p,t)?1:u?P(u,e)-P(u,t):0:4&n?-1:1)}:function(e,t){if(e===t)return l=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e==C?-1:t==C?1:i?-1:o?1:u?P(u,e)-P(u,t):0;if(i===o)return pe(e,t);n=e;while(n=n.parentNode)a.unshift(n);n=t;while(n=n.parentNode)s.unshift(n);while(a[r]===s[r])r++;return r?pe(a[r],s[r]):a[r]==p?-1:s[r]==p?1:0}),C},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(T(e),d.matchesSelector&&E&&!N[t+" "]&&(!s||!s.test(t))&&(!v||!v.test(t)))try{var n=c.call(e,t);if(n||d.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){N(t,!0)}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return G.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&X.test(n)&&(t=h(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=m[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&m(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=se.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function D(e,n,r){return m(n)?S.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?S.grep(e,function(e){return e===n!==r}):"string"!=typeof n?S.grep(e,function(e){return-1)[^>]*|#([\w-]+))$/;(S.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||j,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:q.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof S?t[0]:t,S.merge(this,S.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:E,!0)),N.test(r[1])&&S.isPlainObject(t))for(r in t)m(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=E.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):m(e)?void 0!==n.ready?n.ready(e):e(S):S.makeArray(e,this)}).prototype=S.fn,j=S(E);var L=/^(?:parents|prev(?:Until|All))/,H={children:!0,contents:!0,next:!0,prev:!0};function O(e,t){while((e=e[t])&&1!==e.nodeType);return e}S.fn.extend({has:function(e){var t=S(e,this),n=t.length;return this.filter(function(){for(var e=0;e\x20\t\r\n\f]*)/i,he=/^$|^module$|\/(?:java|ecma)script/i;ce=E.createDocumentFragment().appendChild(E.createElement("div")),(fe=E.createElement("input")).setAttribute("type","radio"),fe.setAttribute("checked","checked"),fe.setAttribute("name","t"),ce.appendChild(fe),y.checkClone=ce.cloneNode(!0).cloneNode(!0).lastChild.checked,ce.innerHTML="",y.noCloneChecked=!!ce.cloneNode(!0).lastChild.defaultValue,ce.innerHTML="",y.option=!!ce.lastChild;var ge={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function ve(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&A(e,t)?S.merge([e],n):n}function ye(e,t){for(var n=0,r=e.length;n",""]);var me=/<|&#?\w+;/;function xe(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d\s*$/g;function qe(e,t){return A(e,"table")&&A(11!==t.nodeType?t:t.firstChild,"tr")&&S(e).children("tbody")[0]||e}function Le(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function He(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Oe(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(Y.hasData(e)&&(s=Y.get(e).events))for(i in Y.remove(t,"handle events"),s)for(n=0,r=s[i].length;n").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),E.head.appendChild(r[0])},abort:function(){i&&i()}}});var Ut,Xt=[],Vt=/(=)\?(?=&|$)|\?\?/;S.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Xt.pop()||S.expando+"_"+Ct.guid++;return this[e]=!0,e}}),S.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(Vt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Vt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=m(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Vt,"$1"+r):!1!==e.jsonp&&(e.url+=(Et.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||S.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=C[r],C[r]=function(){o=arguments},n.always(function(){void 0===i?S(C).removeProp(r):C[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,Xt.push(r)),o&&m(i)&&i(o[0]),o=i=void 0}),"script"}),y.createHTMLDocument=((Ut=E.implementation.createHTMLDocument("").body).innerHTML="
",2===Ut.childNodes.length),S.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(y.createHTMLDocument?((r=(t=E.implementation.createHTMLDocument("")).createElement("base")).href=E.location.href,t.head.appendChild(r)):t=E),o=!n&&[],(i=N.exec(e))?[t.createElement(i[1])]:(i=xe([e],t,o),o&&o.length&&S(o).remove(),S.merge([],i.childNodes)));var r,i,o},S.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1").append(S.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},S.expr.pseudos.animated=function(t){return S.grep(S.timers,function(e){return t===e.elem}).length},S.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=S.css(e,"position"),c=S(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=S.css(e,"top"),u=S.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),m(t)&&(t=t.call(e,n,S.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):("number"==typeof f.top&&(f.top+="px"),"number"==typeof f.left&&(f.left+="px"),c.css(f))}},S.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){S.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===S.css(r,"position"))t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===S.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=S(e).offset()).top+=S.css(e,"borderTopWidth",!0),i.left+=S.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-S.css(r,"marginTop",!0),left:t.left-i.left-S.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===S.css(e,"position"))e=e.offsetParent;return e||re})}}),S.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;S.fn[t]=function(e){return $(this,function(e,t,n){var r;if(x(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),S.each(["top","left"],function(e,n){S.cssHooks[n]=$e(y.pixelPosition,function(e,t){if(t)return t=Be(e,n),Me.test(t)?S(e).position()[n]+"px":t})}),S.each({Height:"height",Width:"width"},function(a,s){S.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){S.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return $(this,function(e,t,n){var r;return x(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?S.css(e,t,i):S.style(e,t,n,i)},s,n?e:void 0,n)}})}),S.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){S.fn[t]=function(e){return this.on(t,e)}}),S.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),S.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){S.fn[n]=function(e,t){return 02?e-2:0),n=2;n1&&void 0!==arguments[1]?arguments[1]:1e11;return _.test(t)?Math.round(t*i)/i:t}var it=i.location,et=/^(https?:)\/\/([^:/?#]+):?(\d*)/i;function at(t){var i=t.match(et);return i&&(i[1]!==it.protocol||i[2]!==it.hostname||i[3]!==it.port)}function nt(t){var i="timestamp="+(new Date).getTime();return t+(-1===t.indexOf("?")?"?":"&")+i}function ht(t){var i=t.rotate,e=t.scaleX,a=t.scaleY,n=t.translateX,h=t.translateY,o=[];return Z(n)&&0!==n&&o.push("translateX("+n+"px)"),Z(h)&&0!==h&&o.push("translateY("+h+"px)"),Z(i)&&0!==i&&o.push("rotate("+i+"deg)"),Z(e)&&1!==e&&o.push("scaleX("+e+")"),Z(a)&&1!==a&&o.push("scaleY("+a+")"),o.length?o.join(" "):"none"}var ot=i.navigator,st=ot&&/(Macintosh|iPhone|iPod|iPad).*AppleWebKit/i.test(ot.userAgent);function rt(i,e){var a=i.pageX,n=i.pageY,h={endX:a,endY:n};return e?h:t.extend({startX:a,startY:n},h)}var dt=Number.isFinite||i.isFinite;function ct(t){var i=t.aspectRatio,e=t.height,a=t.width,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"contain",h=function(t){return dt(t)&&t>0};if(h(a)&&h(e)){var o=e*i;"contain"===n&&o>a||"cover"===n&&o=8&&(h=r+c)}}}if(h){var l=i.getUint16(h,a),p=void 0,g=void 0;for(g=0;gi.width?3===a?r=i.height*s:d=i.width/s:3===a?d=i.width/s:r=i.height*s;var c={aspectRatio:s,naturalWidth:h,naturalHeight:o,width:r,height:d};c.left=(i.width-r)/2,c.top=(i.height-d)/2,c.oldLeft=c.left,c.oldTop=c.top,this.canvas=c,this.limited=1===a||2===a,this.limitCanvas(!0,!0),this.initialImage=t.extend({},e),this.initialCanvas=t.extend({},c)},limitCanvas:function(t,i){var e=this.options,a=this.container,n=this.canvas,h=this.cropBox,o=e.viewMode,s=n.aspectRatio,r=this.cropped&&h;if(t){var d=Number(e.minCanvasWidth)||0,c=Number(e.minCanvasHeight)||0;o>0&&(o>1?(d=Math.max(d,a.width),c=Math.max(c,a.height),3===o&&(c*s>d?d=c*s:c=d/s)):d?d=Math.max(d,r?h.width:0):c?c=Math.max(c,r?h.height:0):r&&(d=h.width,(c=h.height)*s>d?d=c*s:c=d/s));var l=ct({aspectRatio:s,width:d,height:c});d=l.width,c=l.height,n.minWidth=d,n.minHeight=c,n.maxWidth=1/0,n.maxHeight=1/0}if(i)if(o>0){var p=a.width-n.width,g=a.height-n.height;n.minLeft=Math.min(0,p),n.minTop=Math.min(0,g),n.maxLeft=Math.max(0,p),n.maxTop=Math.max(0,g),r&&this.limited&&(n.minLeft=Math.min(h.left,h.left+h.width-n.width),n.minTop=Math.min(h.top,h.top+h.height-n.height),n.maxLeft=h.left,n.maxTop=h.top,2===o&&(n.width>=a.width&&(n.minLeft=Math.min(0,p),n.maxLeft=Math.max(0,p)),n.height>=a.height&&(n.minTop=Math.min(0,g),n.maxTop=Math.max(0,g))))}else n.minLeft=-n.width,n.minTop=-n.height,n.maxLeft=a.width,n.maxTop=a.height},renderCanvas:function(t,i){var e=this.canvas,a=this.image;if(i){var n=function(t){var i=t.width,e=t.height,a=t.degree;if(90==(a=Math.abs(a)%180))return{width:e,height:i};var n=a%90*Math.PI/180,h=Math.sin(n),o=Math.cos(n),s=i*o+e*h,r=i*h+e*o;return a>90?{width:r,height:s}:{width:s,height:r}}({width:a.naturalWidth*Math.abs(a.scaleX||1),height:a.naturalHeight*Math.abs(a.scaleY||1),degree:a.rotate||0}),h=n.width,o=n.height,s=e.width*(h/e.naturalWidth),r=e.height*(o/e.naturalHeight);e.left-=(s-e.width)/2,e.top-=(r-e.height)/2,e.width=s,e.height=r,e.aspectRatio=h/o,e.naturalWidth=h,e.naturalHeight=o,this.limitCanvas(!0,!1)}(e.width>e.maxWidth||e.widthe.maxHeight||e.heighte.width?h.height=h.width/a:h.width=h.height*a),this.cropBox=h,this.limitCropBox(!0,!0),h.width=Math.min(Math.max(h.width,h.minWidth),h.maxWidth),h.height=Math.min(Math.max(h.height,h.minHeight),h.maxHeight),h.width=Math.max(h.minWidth,h.width*n),h.height=Math.max(h.minHeight,h.height*n),h.left=e.left+(e.width-h.width)/2,h.top=e.top+(e.height-h.height)/2,h.oldLeft=h.left,h.oldTop=h.top,this.initialCropBox=t.extend({},h)},limitCropBox:function(t,i){var e=this.options,a=this.container,n=this.canvas,h=this.cropBox,o=this.limited,s=e.aspectRatio;if(t){var r=Number(e.minCropBoxWidth)||0,d=Number(e.minCropBoxHeight)||0,c=Math.min(a.width,o?n.width:a.width),l=Math.min(a.height,o?n.height:a.height);r=Math.min(r,a.width),d=Math.min(d,a.height),s&&(r&&d?d*s>r?d=r/s:r=d*s:r?d=r/s:d&&(r=d*s),l*s>c?l=c/s:c=l*s),h.minWidth=Math.min(r,c),h.minHeight=Math.min(d,l),h.maxWidth=c,h.maxHeight=l}i&&(o?(h.minLeft=Math.max(0,n.left),h.minTop=Math.max(0,n.top),h.maxLeft=Math.min(a.width,n.left+n.width)-h.width,h.maxTop=Math.min(a.height,n.top+n.height)-h.height):(h.minLeft=0,h.minTop=0,h.maxLeft=a.width-h.width,h.maxTop=a.height-h.height))},renderCropBox:function(){var t=this.options,i=this.container,e=this.cropBox;(e.width>e.maxWidth||e.widthe.maxHeight||e.height=i.width&&e.height>=i.height?h:a),this.$cropBox.css({width:e.width,height:e.height,transform:ht({translateX:e.left,translateY:e.top})}),this.cropped&&this.limited&&this.limitCanvas(!0,!0),this.disabled||this.output()},output:function(){this.preview(),this.completed&&this.trigger(k,this.getData())}},ut={initPreview:function(){var i=this.crossOrigin,e=i?this.crossOriginUrl:this.url,a=document.createElement("img");i&&(a.crossOrigin=i),a.src=e;var n=t(a);this.$preview=t(this.options.preview),this.$clone2=n,this.$viewBox.html(n),this.$preview.each(function(a,n){var h=t(n),o=document.createElement("img");h.data(C,{width:h.width(),height:h.height(),html:h.html()}),i&&(o.crossOrigin=i),o.src=e,o.style.cssText='display:block;width:100%;height:auto;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;image-orientation:0deg!important;"',h.html(o)})},resetPreview:function(){this.$preview.each(function(i,e){var a=t(e),n=a.data(C);a.css({width:n.width,height:n.height}).html(n.html).removeData(C)})},preview:function(){var i=this.image,e=this.canvas,a=this.cropBox,n=a.width,h=a.height,o=i.width,s=i.height,r=a.left-e.left-i.left,d=a.top-e.top-i.top;this.cropped&&!this.disabled&&(this.$clone2.css({width:o,height:s,transform:ht(t.extend({translateX:-r,translateY:-d},i))}),this.$preview.each(function(e,a){var c=t(a),l=c.data(C),p=l.width,g=l.height,m=p,u=g,f=1;n&&(u=h*(f=p/n)),h&&u>g&&(m=n*(f=g/h),u=g),c.css({width:m,height:u}).find("img").css({width:o*f,height:s*f,transform:ht(t.extend({translateX:-r*f,translateY:-d*f},i))})}))}},ft={bind:function(){var i=this.$element,e=this.options,a=this.$cropper;t.isFunction(e.cropstart)&&i.on(T,e.cropstart),t.isFunction(e.cropmove)&&i.on(D,e.cropmove),t.isFunction(e.cropend)&&i.on(W,e.cropend),t.isFunction(e.crop)&&i.on(k,e.crop),t.isFunction(e.zoom)&&i.on(P,e.zoom),a.on(O,G(this.cropStart,this)),e.zoomable&&e.zoomOnWheel&&a.on(L,G(this.wheel,this)),e.toggleDragModeOnDblclick&&a.on(Y,G(this.dblclick,this)),t(this.element.ownerDocument).on(E,this.onCropMove=G(this.cropMove,this)).on(N,this.onCropEnd=G(this.cropEnd,this)),e.responsive&&t(window).on(z,this.onResize=G(this.resize,this))},unbind:function(){var i=this.$element,e=this.options,a=this.$cropper;t.isFunction(e.cropstart)&&i.off(T,e.cropstart),t.isFunction(e.cropmove)&&i.off(D,e.cropmove),t.isFunction(e.cropend)&&i.off(W,e.cropend),t.isFunction(e.crop)&&i.off(k,e.crop),t.isFunction(e.zoom)&&i.off(P,e.zoom),a.off(O,this.cropStart),e.zoomable&&e.zoomOnWheel&&a.off(L,this.wheel),e.toggleDragModeOnDblclick&&a.off(Y,this.dblclick),t(this.element.ownerDocument).off(E,this.onCropMove).off(N,this.onCropEnd),e.responsive&&t(window).off(z,this.onResize)}},vt={resize:function(){var i=this.options,e=this.$container,a=this.container,n=Number(i.minContainerWidth)||200,h=Number(i.minContainerHeight)||100;if(!(this.disabled||a.width<=n||a.height<=h)){var o=e.width()/a.width;if(1!==o||e.height()!==a.height){var s=void 0,r=void 0;i.restore&&(s=this.getCanvasData(),r=this.getCropBoxData()),this.render(),i.restore&&(this.setCanvasData(t.each(s,function(t,i){s[t]=i*o})),this.setCropBoxData(t.each(r,function(t,i){r[t]=i*o})))}}},dblclick:function(){this.disabled||this.options.dragMode===B||this.setDragMode(this.$dragBox.hasClass(u)?$:M)},wheel:function(t){var i=this,e=t.originalEvent||t,a=Number(this.options.wheelZoomRatio)||.1;if(!this.disabled&&(t.preventDefault(),!this.wheeling)){this.wheeling=!0,setTimeout(function(){i.wheeling=!1},50);var n=1;e.deltaY?n=e.deltaY>0?1:-1:e.wheelDelta?n=-e.wheelDelta/120:e.detail&&(n=e.detail>0?1:-1),this.zoom(-n*a,t)}},cropStart:function(i){if(!this.disabled){var e=this.options,a=this.pointers,h=i.originalEvent,s=void 0;h&&h.changedTouches?t.each(h.changedTouches,function(t,i){a[i.identifier]=rt(i)}):a[h&&h.pointerId||0]=rt(h||i),s=J(a).length>1&&e.zoomable&&e.zoomOnTouch?o:t(i.target).data(y),I.test(s)&&(this.trigger(T,{originalEvent:h,action:s}).isDefaultPrevented()||(i.preventDefault(),this.action=s,this.cropping=!1,s===n&&(this.cropping=!0,this.$dragBox.addClass(x))))}},cropMove:function(i){var e=this.action;if(!this.disabled&&e){var a=this.pointers,n=i.originalEvent;i.preventDefault(),this.trigger(D,{originalEvent:n,action:e}).isDefaultPrevented()||(n&&n.changedTouches?t.each(n.changedTouches,function(i,e){t.extend(a[e.identifier],rt(e,!0))}):t.extend(a[n&&n.pointerId||0],rt(n||i,!0)),this.change(i))}},cropEnd:function(i){if(!this.disabled){var e=this.action,a=this.pointers,n=i.originalEvent;n&&n.changedTouches?t.each(n.changedTouches,function(t,i){delete a[i.identifier]}):delete a[n&&n.pointerId||0],e&&(i.preventDefault(),J(a).length||(this.action=""),this.cropping&&(this.cropping=!1,this.$dragBox.toggleClass(x,this.cropped&&this.options.modal)),this.trigger(W,{originalEvent:n,action:e}))}}},wt={change:function(i){var e=this.options,u=this.pointers,f=this.container,w=this.canvas,x=this.cropBox,b=this.action,y=e.aspectRatio,C=x.left,M=x.top,$=x.width,B=x.height,k=C+$,W=M+B,D=0,T=0,Y=f.width,H=f.height,X=!0,O=void 0;!y&&i.shiftKey&&(y=$&&B?$/B:1),this.limited&&(D=x.minLeft,T=x.minTop,Y=D+Math.min(f.width,w.width,w.left+w.width),H=T+Math.min(f.height,w.height,w.top+w.height));var E,N,R,z=u[J(u)[0]],L={x:z.endX-z.startX,y:z.endY-z.startY},P=function(t){switch(t){case s:k+L.x>Y&&(L.x=Y-k);break;case r:C+L.xH&&(L.y=H-W)}};switch(b){case a:C+=L.x,M+=L.y;break;case s:if(L.x>=0&&(k>=Y||y&&(M<=T||W>=H))){X=!1;break}P(s),$+=L.x,y&&(B=$/y,M-=L.x/y/2),$<0&&(b=r,$=0);break;case c:if(L.y<=0&&(M<=T||y&&(C<=D||k>=Y))){X=!1;break}P(c),B-=L.y,M+=L.y,y&&($=B*y,C+=L.y*y/2),B<0&&(b=d,B=0);break;case r:if(L.x<=0&&(C<=D||y&&(M<=T||W>=H))){X=!1;break}P(r),$-=L.x,C+=L.x,y&&(B=$/y,M+=L.x/y/2),$<0&&(b=s,$=0);break;case d:if(L.y>=0&&(W>=H||y&&(C<=D||k>=Y))){X=!1;break}P(d),B+=L.y,y&&($=B*y,C-=L.y*y/2),B<0&&(b=c,B=0);break;case l:if(y){if(L.y<=0&&(M<=T||k>=Y)){X=!1;break}P(c),B-=L.y,M+=L.y,$=B*y}else P(c),P(s),L.x>=0?kT&&(B-=L.y,M+=L.y):(B-=L.y,M+=L.y);$<0&&B<0?(b=m,B=0,$=0):$<0?(b=p,$=0):B<0&&(b=g,B=0);break;case p:if(y){if(L.y<=0&&(M<=T||C<=D)){X=!1;break}P(c),B-=L.y,M+=L.y,$=B*y,C+=L.y*y}else P(c),P(r),L.x<=0?C>D?($-=L.x,C+=L.x):L.y<=0&&M<=T&&(X=!1):($-=L.x,C+=L.x),L.y<=0?M>T&&(B-=L.y,M+=L.y):(B-=L.y,M+=L.y);$<0&&B<0?(b=g,B=0,$=0):$<0?(b=l,$=0):B<0&&(b=m,B=0);break;case m:if(y){if(L.x<=0&&(C<=D||W>=H)){X=!1;break}P(r),$-=L.x,C+=L.x,B=$/y}else P(d),P(r),L.x<=0?C>D?($-=L.x,C+=L.x):L.y>=0&&W>=H&&(X=!1):($-=L.x,C+=L.x),L.y>=0?W=0&&(k>=Y||W>=H)){X=!1;break}P(s),B=($+=L.x)/y}else P(d),P(s),L.x>=0?k=0&&W>=H&&(X=!1):$+=L.x,L.y>=0?W0?b=L.y>0?g:l:L.x<0&&(C-=$,b=L.y>0?m:p),L.y<0&&(M-=B),this.cropped||(this.$cropBox.removeClass(v),this.cropped=!0,this.limited&&this.limitCropBox(!0,!0))}X&&(x.width=$,x.height=B,x.left=C,x.top=M,this.action=b,this.renderCropBox()),t.each(u,function(t,i){i.startX=i.endX,i.startY=i.endY})}},xt={crop:function(){this.ready&&!this.disabled&&(this.cropped||(this.cropped=!0,this.limitCropBox(!0,!0),this.options.modal&&this.$dragBox.addClass(x),this.$cropBox.removeClass(v)),this.setCropBoxData(this.initialCropBox))},reset:function(){this.ready&&!this.disabled&&(this.image=t.extend({},this.initialImage),this.canvas=t.extend({},this.initialCanvas),this.cropBox=t.extend({},this.initialCropBox),this.renderCanvas(),this.cropped&&this.renderCropBox())},clear:function(){this.cropped&&!this.disabled&&(t.extend(this.cropBox,{left:0,top:0,width:0,height:0}),this.cropped=!1,this.renderCropBox(),this.limitCanvas(!0,!0),this.renderCanvas(),this.$dragBox.removeClass(x),this.$cropBox.addClass(v))},replace:function(t,i){!this.disabled&&t&&(this.isImg&&this.$element.attr("src",t),i?(this.url=t,this.$clone.attr("src",t),this.ready&&this.$preview.find("img").add(this.$clone2).attr("src",t)):(this.isImg&&(this.replaced=!0),this.options.data=null,this.load(t)))},enable:function(){this.ready&&(this.disabled=!1,this.$cropper.removeClass(f))},disable:function(){this.ready&&(this.disabled=!0,this.$cropper.addClass(f))},destroy:function(){var t=this.$element;this.loaded?(this.isImg&&this.replaced&&t.attr("src",this.originalUrl),this.unbuild(),t.removeClass(v)):this.isImg?t.off(X,this.start):this.$clone&&this.$clone.remove(),t.removeData(e)},move:function(t,i){var e=this.canvas,a=e.left,n=e.top;this.moveTo(V(t)?t:a+Number(t),V(i)?i:n+Number(i))},moveTo:function(t,i){var e=this.canvas,a=!1;V(i)&&(i=t),t=Number(t),i=Number(i),this.ready&&!this.disabled&&this.options.movable&&(Z(t)&&(e.left=t,a=!0),Z(i)&&(e.top=i,a=!0),a&&this.renderCanvas(!0))},zoom:function(t,i){var e=this.canvas;t=(t=Number(t))<0?1/(1-t):1+t,this.zoomTo(e.width*t/e.naturalWidth,i)},zoomTo:function(i,e){var a,n,h,o,s=this.options,r=this.pointers,d=this.canvas,c=d.width,l=d.height,p=d.naturalWidth,g=d.naturalHeight;if((i=Number(i))>=0&&this.ready&&!this.disabled&&s.zoomable){var m=p*i,u=g*i,f=void 0;if(e&&(f=e.originalEvent),this.trigger(P,{originalEvent:f,oldRatio:c/p,ratio:m/p}).isDefaultPrevented())return;if(f){var v=this.$cropper.offset(),w=r&&J(r).length?(a=r,n=0,h=0,o=0,t.each(a,function(t,i){var e=i.startX,a=i.startY;n+=e,h+=a,o+=1}),{pageX:n/=o,pageY:h/=o}):{pageX:e.pageX||f.pageX||0,pageY:e.pageY||f.pageY||0};d.left-=(m-c)*((w.pageX-v.left-d.left)/c),d.top-=(u-l)*((w.pageY-v.top-d.top)/l)}else d.left-=(m-c)/2,d.top-=(u-l)/2;d.width=m,d.height=u,this.renderCanvas(!0)}},rotate:function(t){this.rotateTo((this.image.rotate||0)+Number(t))},rotateTo:function(t){Z(t=Number(t))&&this.ready&&!this.disabled&&this.options.rotatable&&(this.image.rotate=t%360,this.renderCanvas(!0,!0))},scaleX:function(t){var i=this.image.scaleY;this.scale(t,Z(i)?i:1)},scaleY:function(t){var i=this.image.scaleX;this.scale(Z(i)?i:1,t)},scale:function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,e=this.image,a=!1;t=Number(t),i=Number(i),this.ready&&!this.disabled&&this.options.scalable&&(Z(t)&&(e.scaleX=t,a=!0),Z(i)&&(e.scaleY=i,a=!0),a&&this.renderCanvas(!0,!0))},getData:function(){var i=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.options,a=this.image,n=this.canvas,h=this.cropBox,o=void 0;if(this.ready&&this.cropped){o={x:h.left-n.left,y:h.top-n.top,width:h.width,height:h.height};var s=a.width/a.naturalWidth;t.each(o,function(t,e){e/=s,o[t]=i?Math.round(e):e})}else o={x:0,y:0,width:0,height:0};return e.rotatable&&(o.rotate=a.rotate||0),e.scalable&&(o.scaleX=a.scaleX||1,o.scaleY=a.scaleY||1),o},setData:function(i){var e=this.options,a=this.image,n=this.canvas,h={};if(t.isFunction(i)&&(i=i.call(this.element)),this.ready&&!this.disabled&&t.isPlainObject(i)){var o=!1;e.rotatable&&Z(i.rotate)&&i.rotate!==a.rotate&&(a.rotate=i.rotate,o=!0),e.scalable&&(Z(i.scaleX)&&i.scaleX!==a.scaleX&&(a.scaleX=i.scaleX,o=!0),Z(i.scaleY)&&i.scaleY!==a.scaleY&&(a.scaleY=i.scaleY,o=!0)),o&&this.renderCanvas(!0,!0);var s=a.width/a.naturalWidth;Z(i.x)&&(h.left=i.x*s+n.left),Z(i.y)&&(h.top=i.y*s+n.top),Z(i.width)&&(h.width=i.width*s),Z(i.height)&&(h.height=i.height*s),this.setCropBoxData(h)}},getContainerData:function(){return this.ready?t.extend({},this.container):{}},getImageData:function(){return this.loaded?t.extend({},this.image):{}},getCanvasData:function(){var i=this.canvas,e={};return this.ready&&t.each(["left","top","width","height","naturalWidth","naturalHeight"],function(t,a){e[a]=i[a]}),e},setCanvasData:function(i){var e=this.canvas,a=e.aspectRatio;t.isFunction(i)&&(i=i.call(this.$element)),this.ready&&!this.disabled&&t.isPlainObject(i)&&(Z(i.left)&&(e.left=i.left),Z(i.top)&&(e.top=i.top),Z(i.width)?(e.width=i.width,e.height=i.width/a):Z(i.height)&&(e.height=i.height,e.width=i.height*a),this.renderCanvas(!0))},getCropBoxData:function(){var t=this.cropBox;return this.ready&&this.cropped?{left:t.left,top:t.top,width:t.width,height:t.height}:{}},setCropBoxData:function(i){var e=this.cropBox,a=this.options.aspectRatio,n=void 0,h=void 0;t.isFunction(i)&&(i=i.call(this.$element)),this.ready&&this.cropped&&!this.disabled&&t.isPlainObject(i)&&(Z(i.left)&&(e.left=i.left),Z(i.top)&&(e.top=i.top),Z(i.width)&&i.width!==e.width&&(n=!0,e.width=i.width),Z(i.height)&&i.height!==e.height&&(h=!0,e.height=i.height),a&&(n?e.height=e.width/a:h&&(e.width=e.height*a)),this.renderCropBox())},getCroppedCanvas:function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.ready||!window.HTMLCanvasElement)return null;var e,a,n,h,o,s,r,d,c,l,p,g,m,u,f,v,w,x,b,y,C,M,$,B,k,W,D,T,Y,H,X,O,E,N,R=this.canvas,z=(e=this.$clone[0],a=this.image,n=R,h=i,o=a.rotate,s=void 0===o?0:o,r=a.scaleX,d=void 0===r?1:r,c=a.scaleY,l=void 0===c?1:c,p=n.aspectRatio,g=n.naturalWidth,m=n.naturalHeight,u=h.fillColor,f=void 0===u?"transparent":u,v=h.imageSmoothingEnabled,w=void 0===v||v,x=h.imageSmoothingQuality,b=void 0===x?"low":x,y=h.maxWidth,C=void 0===y?1/0:y,M=h.maxHeight,$=void 0===M?1/0:M,B=h.minWidth,k=void 0===B?0:B,W=h.minHeight,D=void 0===W?0:W,T=document.createElement("canvas"),Y=T.getContext("2d"),H=ct({aspectRatio:p,width:C,height:$}),X=ct({aspectRatio:p,width:k,height:D},"cover"),O=Math.min(H.width,Math.max(X.width,g)),E=Math.min(H.height,Math.max(X.height,m)),N=[-O/2,-E/2,O,E],T.width=tt(O),T.height=tt(E),Y.fillStyle=f,Y.fillRect(0,0,O,E),Y.save(),Y.translate(O/2,E/2),Y.rotate(s*Math.PI/180),Y.scale(d,l),Y.imageSmoothingEnabled=w,Y.imageSmoothingQuality=b,Y.drawImage.apply(Y,[e].concat(Q(t.map(N,function(t){return Math.floor(tt(t))})))),Y.restore(),T);if(!this.cropped)return z;var L=this.getData(),P=L.x,I=L.y,U=L.width,A=L.height,F=z.width/Math.floor(R.naturalWidth);1!==F&&(P*=F,I*=F,U*=F,A*=F);var j=U/A,S=ct({aspectRatio:j,width:i.maxWidth||1/0,height:i.maxHeight||1/0}),q=ct({aspectRatio:j,width:i.minWidth||0,height:i.minHeight||0},"cover"),K=ct({aspectRatio:j,width:i.width||(1!==F?z.width:U),height:i.height||(1!==F?z.height:A)}),Z=K.width,V=K.height;Z=Math.min(S.width,Math.max(q.width,Z)),V=Math.min(S.height,Math.max(q.height,V));var G=document.createElement("canvas"),J=G.getContext("2d");G.width=tt(Z),G.height=tt(V),J.fillStyle=i.fillColor||"transparent",J.fillRect(0,0,Z,V);var _=i.imageSmoothingEnabled,it=void 0===_||_,et=i.imageSmoothingQuality;J.imageSmoothingEnabled=it,et&&(J.imageSmoothingQuality=et);var at=z.width,nt=z.height,ht=P,ot=I,st=void 0,rt=void 0,dt=void 0,lt=void 0,pt=void 0,gt=void 0;ht<=-U||ht>at?(ht=0,st=0,dt=0,pt=0):ht<=0?(dt=-ht,ht=0,pt=st=Math.min(at,U+ht)):ht<=at&&(dt=0,pt=st=Math.min(U,at-ht)),st<=0||ot<=-A||ot>nt?(ot=0,rt=0,lt=0,gt=0):ot<=0?(lt=-ot,ot=0,gt=rt=Math.min(nt,A+ot)):ot<=nt&&(lt=0,gt=rt=Math.min(A,nt-ot));var mt=[ht,ot,st,rt];if(pt>0&>>0){var ut=Z/U;mt.push(dt*ut,lt*ut,pt*ut,gt*ut)}return J.drawImage.apply(J,[z].concat(Q(t.map(mt,function(t){return Math.floor(tt(t))})))),G},setAspectRatio:function(t){var i=this.options;this.disabled||V(t)||(i.aspectRatio=Math.max(0,t)||NaN,this.ready&&(this.initCropBox(),this.cropped&&this.renderCropBox()))},setDragMode:function(t){var i=this.options,e=void 0,a=void 0;this.loaded&&!this.disabled&&(e=t===M,a=i.movable&&t===$,t=e||a?t:B,this.$dragBox.data(y,t).toggleClass(u,e).toggleClass(b,a),i.cropBoxMovable||this.$face.data(y,t).toggleClass(u,e).toggleClass(b,a))}},bt=function(){function i(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(S(this,i),!e||!F.test(e.tagName))throw new Error("The first argument is required and must be an or element.");this.element=e,this.$element=t(e),this.options=t.extend({},j,t.isPlainObject(a)&&a),this.completed=!1,this.cropped=!1,this.disabled=!1,this.isImg=!1,this.limited=!1,this.loaded=!1,this.ready=!1,this.replaced=!1,this.wheeling=!1,this.originalUrl="",this.canvas=null,this.cropBox=null,this.pointers={},this.init()}return q(i,[{key:"init",value:function(){var t=this.$element,i=void 0;if(t.is("img")){if(this.isImg=!0,i=t.attr("src")||"",this.originalUrl=i,!i)return;i=t.prop("src")}else t.is("canvas")&&window.HTMLCanvasElement&&(i=t[0].toDataURL());this.load(i)}},{key:"trigger",value:function(i,e){var a=t.Event(i,e);return this.$element.trigger(a),a}},{key:"load",value:function(i){var e=this;if(i){this.url=i,this.image={};var a=this.$element,n=this.options;if(n.checkOrientation&&window.ArrayBuffer)if(U.test(i))A.test(i)?this.read((h=i.replace(pt,""),o=atob(h),s=new ArrayBuffer(o.length),r=new Uint8Array(s),t.each(r,function(t){r[t]=o.charCodeAt(t)}),s)):this.clone();else{var h,o,s,r,d=new XMLHttpRequest;d.onerror=function(){e.clone()},d.onload=function(){e.read(d.response)},n.checkCrossOrigin&&at(i)&&!a.prop("crossOrigin")&&(i=nt(i)),d.open("get",i),d.responseType="arraybuffer",d.withCredentials="use-credentials"===a.prop("crossOrigin"),d.send()}else this.clone()}}},{key:"read",value:function(i){var e,a,n,h=this.options,o=this.image,s=gt(i),r=0,d=1,c=1;if(s>1){this.url=(e="image/jpeg",a=new Uint8Array(i),n="",t.each(a,function(t,i){n+=lt(i)}),"data:"+e+";base64,"+btoa(n));var l=function(t){var i=0,e=1,a=1;switch(t){case 2:e=-1;break;case 3:i=-180;break;case 4:a=-1;break;case 5:i=90,a=-1;break;case 6:i=90;break;case 7:i=90,e=-1;break;case 8:i=-90}return{rotate:i,scaleX:e,scaleY:a}}(s);r=l.rotate,d=l.scaleX,c=l.scaleY}h.rotatable&&(o.rotate=r),h.scalable&&(o.scaleX=d,o.scaleY=c),this.clone()}},{key:"clone",value:function(){var i=this.$element,e=this.options,a=this.url,n="",h=void 0;e.checkCrossOrigin&&at(a)&&((n=i.prop("crossOrigin"))?h=a:(n="anonymous",h=nt(a))),this.crossOrigin=n,this.crossOriginUrl=h;var o=document.createElement("img");n&&(o.crossOrigin=n),o.src=h||a;var s=t(o);this.$clone=s,this.isImg?this.element.complete?this.start():i.one(X,t.proxy(this.start,this)):s.one(X,t.proxy(this.start,this)).one(H,t.proxy(this.stop,this)).addClass(w).insertAfter(i)}},{key:"start",value:function(){var i=this,e=this.$clone,a=this.$element;this.isImg||(e.off(H,this.stop),a=e),function(t,i){if(!t.naturalWidth||st){var e=document.createElement("img");e.onload=function(){i(e.width,e.height)},e.src=t.src}else i(t.naturalWidth,t.naturalHeight)}(a[0],function(e,a){t.extend(i.image,{naturalWidth:e,naturalHeight:a,aspectRatio:e/a}),i.loaded=!0,i.build()})}},{key:"stop",value:function(){this.$clone.remove(),this.$clone=null}},{key:"build",value:function(){var i=this;if(this.loaded){this.ready&&this.unbuild();var n=this.$element,h=this.options,o=this.$clone,s=t('
'),r=s.find("."+e+"-crop-box"),d=r.find("."+e+"-face");this.$container=n.parent(),this.$cropper=s,this.$canvas=s.find("."+e+"-canvas").append(o),this.$dragBox=s.find("."+e+"-drag-box"),this.$cropBox=r,this.$viewBox=s.find("."+e+"-view-box"),this.$face=d,n.addClass(v).after(s),this.isImg||o.removeClass(w),this.initPreview(),this.bind(),h.aspectRatio=Math.max(0,h.aspectRatio)||NaN,h.viewMode=Math.max(0,Math.min(3,Math.round(h.viewMode)))||0,this.cropped=h.autoCrop,h.autoCrop?h.modal&&this.$dragBox.addClass(x):r.addClass(v),h.guides||r.find("."+e+"-dashed").addClass(v),h.center||r.find("."+e+"-center").addClass(v),h.cropBoxMovable&&d.addClass(b).data(y,a),h.highlight||d.addClass("cropper-invisible"),h.background&&s.addClass(e+"-bg"),h.cropBoxResizable||r.find("."+e+"-line,."+e+"-point").addClass(v),this.setDragMode(h.dragMode),this.render(),this.ready=!0,this.setData(h.data),this.completing=setTimeout(function(){t.isFunction(h.ready)&&n.one(R,h.ready),i.trigger(R),i.trigger(k,i.getData()),i.completed=!0},0)}}},{key:"unbuild",value:function(){this.ready&&(this.completed||clearTimeout(this.completing),this.ready=!1,this.completed=!1,this.initialImage=null,this.initialCanvas=null,this.initialCropBox=null,this.container=null,this.canvas=null,this.cropBox=null,this.unbind(),this.resetPreview(),this.$preview=null,this.$viewBox=null,this.$cropBox=null,this.$dragBox=null,this.$canvas=null,this.$container=null,this.$cropper.remove(),this.$cropper=null)}}],[{key:"setDefaults",value:function(i){t.extend(j,t.isPlainObject(i)&&i)}}]),i}();if(t.extend&&t.extend(bt.prototype,mt,ut,ft,vt,wt,xt),t.fn){var yt=t.fn.cropper;t.fn.cropper=function(i){for(var a=arguments.length,n=Array(a>1?a-1:0),h=1;he.length)&&(t=e.length);for(var i=0,n=new Array(t);i=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n,s,r=!0,o=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return r=e.done,e},e:function(e){o=!0,s=e},f:function(){try{r||null==n.return||n.return()}finally{if(o)throw s}}}}var l=function(e,t){if(null===e)return null;if("number"!=typeof t.step)return e;var i=e%(60*t.step);return(i-=(t.minTime||0)%(60*t.step))>=30*t.step?e+=60*t.step-i:e-=i,function(e,t){if(86400==e&&t.show2400)return e;return e%86400}(e,t)};var u,c={appendTo:"body",className:null,closeOnWindowScroll:!1,disableTextInput:!1,disableTimeRanges:[],disableTouchKeyboard:!1,durationTime:null,forceRoundTime:!1,lang:{},listWidth:null,maxTime:null,minTime:null,noneOption:!1,orientation:"l",roundingFunction:l,scrollDefault:null,selectOnBlur:!1,show2400:!1,showDuration:!1,showOn:["click","focus"],showOnFocus:!0,step:30,stopScrollPropagation:!1,timeFormat:"g:ia",typeaheadHighlight:!0,useSelect:!1,wrapHours:!0},m={am:"am",pm:"pm",AM:"AM",PM:"PM",decimal:".",mins:"mins",hr:"hr",hrs:"hrs"},p=function(){function n(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t(this,n),this.targetEl=e;var s=n.extractAttrOptions(e,Object.keys(c));this.settings=this.parseSettings(r(r(r({},c),i),s))}var s,a,l;return s=n,l=[{key:"extractAttrOptions",value:function(e,t){var i,n={},s=o(t);try{for(s.s();!(i=s.n()).done;){var r=i.value;r in e.dataset&&(n[r]=e.dataset[r])}}catch(e){s.e(e)}finally{s.f()}return n}},{key:"isVisible",value:function(e){var t=e[0];return t.offsetWidth>0&&t.offsetHeight>0}}],(a=[{key:"_findRow",value:function(e){if(!e&&0!==e)return!1;var t=!1;return e=this.settings.roundingFunction(e,this.settings),!!this.list&&(this.list.find("li").each((function(i,n){var s=Number.parseInt(n.dataset.time);if(!Number.isNaN(s))return s==e?(t=n,!1):void 0})),t)}},{key:"_hideKeyboard",value:function(){return(window.navigator.msMaxTouchPoints||"ontouchstart"in document)&&this.settings.disableTouchKeyboard}},{key:"_setTimeValue",value:function(e,t){if("INPUT"===this.targetEl.nodeName){null===e&&""==this.targetEl.value||(this.targetEl.value=e);var i=this;i.settings.useSelect&&"select"!=t&&i.list&&i.list.val(i._roundAndFormatTime(i.time2int(e)))}var n=new Event("selectTime");if(this.selectedValue!=e){this.selectedValue=e;var s=new Event("changeTime"),r=new CustomEvent("change",{detail:"timepicker"});return"select"==t?(this.targetEl.dispatchEvent(n),this.targetEl.dispatchEvent(s),this.targetEl.dispatchEvent(r)):-1==["error","initial"].indexOf(t)&&this.targetEl.dispatchEvent(s),!0}return-1==["error","initial"].indexOf(t)&&this.targetEl.dispatchEvent(n),!1}},{key:"_getTimeValue",value:function(){return"INPUT"===this.targetEl.nodeName?this.targetEl.value:this.selectedValue}},{key:"_selectValue",value:function(){this.settings;var e=this.list.find(".ui-timepicker-selected");if(e.hasClass("ui-timepicker-disabled"))return!1;if(!e.length)return!0;var t=e.get(0).dataset.time;if(t){var i=Number.parseInt(t);i&&(t=i)}return null!==t&&("string"!=typeof t&&(t=this._int2time(t)),this._setTimeValue(t,"select")),!0}},{key:"time2int",value:function(e){if(""===e||null==e)return null;if(e instanceof Date)return 3600*e.getHours()+60*e.getMinutes()+e.getSeconds();if("string"!=typeof e)return e;"a"!=(e=e.toLowerCase().replace(/[\s\.]/g,"")).slice(-1)&&"p"!=e.slice(-1)||(e+="m");var t=/^(([^0-9]*))?([0-9]?[0-9])(([0-5][0-9]))?(([0-5][0-9]))?(([^0-9]*))$/;e.match(/\W/)&&(t=/^(([^0-9]*))?([0-9]?[0-9])(\W+([0-5][0-9]?))?(\W+([0-5][0-9]))?(([^0-9]*))$/);var i=e.match(t);if(!i)return null;var n=parseInt(1*i[3],10),s=i[2]||i[9],r=n,a=1*i[5]||0,o=1*i[7]||0;if(s||2!=i[3].length||"0"!=i[3][0]||(s="am"),n<=12&&s){var l=(s=s.trim())==this.settings.lang.pm||s==this.settings.lang.PM;r=12==n?l?12:0:n+(l?12:0)}else if(3600*n+60*a+o>=86400+(this.settings.show2400?1:0)){if(!1===this.settings.wrapHours)return null;r=n%24}var u=3600*r+60*a+o;if(n<12&&!s&&this.settings._twelveHourTime&&this.settings.scrollDefault){var c=u-this.settings.scrollDefault();c<0&&c>=-43200&&(u=(u+43200)%86400)}return u}},{key:"parseSettings",value:function(e){var t=this;if(e.lang=r(r({},m),e.lang),this.settings=e,e.minTime&&(e.minTime=this.time2int(e.minTime)),e.maxTime&&(e.maxTime=this.time2int(e.maxTime)),e.listWidth&&(e.listWidth=this.time2int(e.listWidth)),e.durationTime&&"function"!=typeof e.durationTime&&(e.durationTime=this.time2int(e.durationTime)),"now"==e.scrollDefault)e.scrollDefault=function(){return e.roundingFunction(t.time2int(new Date),e)};else if(e.scrollDefault&&"function"!=typeof e.scrollDefault){var i=e.scrollDefault;e.scrollDefault=function(){return e.roundingFunction(t.time2int(i),e)}}else e.minTime&&(e.scrollDefault=function(){return e.roundingFunction(e.minTime,e)});if("string"==typeof e.timeFormat&&e.timeFormat.match(/[gh]/)&&(e._twelveHourTime=!0),!1===e.showOnFocus&&-1!=e.showOn.indexOf("focus")&&e.showOn.splice(e.showOn.indexOf("focus"),1),e.disableTimeRanges||(e.disableTimeRanges=[]),e.disableTimeRanges.length>0){for(var n in e.disableTimeRanges)e.disableTimeRanges[n]=[this.time2int(e.disableTimeRanges[n][0]),this.time2int(e.disableTimeRanges[n][1])];for(e.disableTimeRanges=e.disableTimeRanges.sort((function(e,t){return e[0]-t[0]})),n=e.disableTimeRanges.length-1;n>0;n--)e.disableTimeRanges[n][0]<=e.disableTimeRanges[n-1][1]&&(e.disableTimeRanges[n-1]=[Math.min(e.disableTimeRanges[n][0],e.disableTimeRanges[n-1][0]),Math.max(e.disableTimeRanges[n][1],e.disableTimeRanges[n-1][1])],e.disableTimeRanges.splice(n,1))}return e}},{key:"_disableTextInputHandler",value:function(e){switch(e.keyCode){case 13:case 9:return;default:e.preventDefault()}}},{key:"_int2duration",value:function(e,t){e=Math.abs(e);var i,n,s=Math.round(e/60),r=[];return s<60?r=[s,this.settings.lang.mins]:(i=Math.floor(s/60),n=s%60,30==t&&30==n&&(i+=this.settings.lang.decimal+5),r.push(i),r.push(1==i?this.settings.lang.hr:this.settings.lang.hrs),30!=t&&n&&(r.push(n),r.push(this.settings.lang.mins))),r.join(" ")}},{key:"_roundAndFormatTime",value:function(e){if(null!==(e=this.settings.roundingFunction(e,this.settings)))return this._int2time(e)}},{key:"_int2time",value:function(e){if("number"!=typeof e)return null;var t=parseInt(e%60),i=parseInt(e/60%60),n=parseInt(e/3600%24),s=new Date(1970,0,2,n,i,t,0);if(isNaN(s.getTime()))return null;if("function"==typeof this.settings.timeFormat)return this.settings.timeFormat(s);for(var r,a,o="",l=0;l11?this.settings.lang.pm:this.settings.lang.am;break;case"A":o+=s.getHours()>11?this.settings.lang.PM:this.settings.lang.AM;break;case"g":o+=0==(r=s.getHours()%12)?"12":r;break;case"G":r=s.getHours(),86400===e&&(r=this.settings.show2400?24:0),o+=r;break;case"h":0!=(r=s.getHours()%12)&&r<10&&(r="0"+r),o+=0===r?"12":r;break;case"H":r=s.getHours(),86400===e&&(r=this.settings.show2400?24:0),o+=r>9?r:"0"+r;break;case"i":o+=(i=s.getMinutes())>9?i:"0"+i;break;case"s":o+=(t=s.getSeconds())>9?t:"0"+t;break;case"\\":l++,o+=this.settings.timeFormat.charAt(l);break;default:o+=a}return o}},{key:"_setSelected",value:function(){var e=this.list;e.find("li").removeClass("ui-timepicker-selected");var t=this.time2int(this._getTimeValue());if(null!==t){var i=this._findRow(t);if(i){var n=i.getBoundingClientRect(),s=e.get(0).getBoundingClientRect(),r=n.top-s.top;if(r+n.height>s.height||r<0){var a=e.scrollTop()+(n.top-s.top)-n.height;e.scrollTop(a)}var o=Number.parseInt(i.dataset.time);(this.settings.forceRoundTime||o===t)&&i.classList.add("ui-timepicker-selected")}}}},{key:"_generateNoneElement",value:function(t,i){var n,s,r,a;return"object"==e(t)?(n=t.label,s=t.className,r=t.value):"string"==typeof t?(n=t,r=""):$.error("Invalid noneOption value"),i?(a=document.createElement("option")).value=r:(a=document.createElement("li")).dataset.time=String(r),a.innerText=n,a.classList.add(s),a}}])&&i(s.prototype,a),l&&i(s,l),n}();u=function(t){var i={init:function(e){return this.each((function(){var s=t(this),l=new p(this,e),u=l.settings;if(u.lang,s.data("timepicker-obj",l),s.addClass("ui-timepicker-input"),u.useSelect)n(s);else{if(s.prop("autocomplete","off"),u.showOn)for(var c in u.showOn)s.on(u.showOn[c]+".timepicker",i.show);s.on("change.timepicker",r),s.on("keydown.timepicker",a),s.on("keyup.timepicker",o),u.disableTextInput&&s.on("keydown.timepicker",l._disableTextInputHandler),s.on("cut.timepicker",o),s.on("paste.timepicker",o),r.call(s.get(0),null,"initial")}}))},show:function(e){var r=t(this),a=r.data("timepicker-obj"),o=a.settings;if(e&&e.preventDefault(),o.useSelect)a.list.focus();else{a._hideKeyboard()&&r.blur();var l=a.list;if(!r.prop("readonly")&&(l&&0!==l.length&&"function"!=typeof o.durationTime||(n(r),l=a.list),!p.isVisible(l))){r.is("input")&&(a.selectedValue=r.val()),a._setSelected(),i.hide(),"number"==typeof o.listWidth&&l.width(r.outerWidth()*o.listWidth),l.show();var u={};o.orientation.match(/r/)?u.left=r.offset().left+r.outerWidth()-l.outerWidth()+parseInt(l.css("marginLeft").replace("px",""),10):o.orientation.match(/l/)?u.left=r.offset().left+parseInt(l.css("marginLeft").replace("px",""),10):o.orientation.match(/c/)&&(u.left=r.offset().left+(r.outerWidth()-l.outerWidth())/2+parseInt(l.css("marginLeft").replace("px",""),10)),"t"==(o.orientation.match(/t/)?"t":o.orientation.match(/b/)?"b":r.offset().top+r.outerHeight(!0)+l.outerHeight()>t(window).height()+t(window).scrollTop()?"t":"b")?(l.addClass("ui-timepicker-positioned-top"),u.top=r.offset().top-l.outerHeight()+parseInt(l.css("marginTop").replace("px",""),10)):(l.removeClass("ui-timepicker-positioned-top"),u.top=r.offset().top+r.outerHeight()+parseInt(l.css("marginTop").replace("px",""),10)),l.offset(u);var c=l.find(".ui-timepicker-selected");if(!c.length){var m=a.time2int(a._getTimeValue());null!==m?c=t(a._findRow(m)):o.scrollDefault&&(c=t(a._findRow(o.scrollDefault())))}if(c.length&&!c.hasClass("ui-timepicker-disabled")||(c=l.find("li:not(.ui-timepicker-disabled):first")),c&&c.length){var d=l.scrollTop()+c.position().top-c.outerHeight();l.scrollTop(d)}else l.scrollTop(0);return o.stopScrollPropagation&&t(document).on("wheel.ui-timepicker",".ui-timepicker-wrapper",(function(e){e.preventDefault();var i=t(this).scrollTop();t(this).scrollTop(i+e.originalEvent.deltaY)})),t(document).on("mousedown.ui-timepicker",s),t(window).on("resize.ui-timepicker",s),o.closeOnWindowScroll&&t(document).on("scroll.ui-timepicker",s),r.trigger("showTimepicker"),this}}},hide:function(e){var i=t(this),n=i.data("timepicker-obj");return n&&n.settings&&n.settings.useSelect&&i.blur(),t(".ui-timepicker-wrapper").each((function(){var e=t(this);if(p.isVisible(e)){var i=e.data("timepicker-input"),n=i.data("timepicker-obj");n&&n.settings&&n.settings.selectOnBlur&&n._selectValue(),e.hide(),i.trigger("hideTimepicker")}})),this},option:function(i,s){return"string"==typeof i&&void 0===s?t(this).data("timepicker-obj").settings[i]:this.each((function(){var a=t(this),o=a.data("timepicker-obj"),l=o.settings,u=o.list;"object"==e(i)?l=t.extend(l,i):"string"==typeof i&&(l[i]=s),l=o.parseSettings(l),o.settings=l,r.call(a.get(0),{type:"change"},"initial"),u&&(u.remove(),o.list=null),l.useSelect&&n(a)}))},getSecondsFromMidnight:function(){var e=t(this).data("timepicker-obj");return e.time2int(e._getTimeValue())},getTime:function(e){var i=t(this).data("timepicker-obj"),n=i._getTimeValue();if(!n)return null;var s=i.time2int(n);if(null===s)return null;e||(e=new Date);var r=new Date(e);return r.setHours(s/3600),r.setMinutes(s%3600/60),r.setSeconds(s%60),r.setMilliseconds(0),r},isVisible:function(){var e=this.data("timepicker-obj");return!!(e&&e.list&&p.isVisible(e.list))},setTime:function(e){var t=this.data("timepicker-obj"),i=t.settings;if(i.forceRoundTime)var n=t._roundAndFormatTime(t.time2int(e));else n=t._int2time(t.time2int(e));return e&&null===n&&i.noneOption&&(n=e),t._setTimeValue(n,"initial"),r.call(this.get(0),{type:"change"},"initial"),t&&t.list&&t._setSelected(),this},remove:function(){if(this.hasClass("ui-timepicker-input")){var e=this.data("timepicker-obj"),t=e.settings;return this.removeAttr("autocomplete","off"),this.removeClass("ui-timepicker-input"),this.removeData("timepicker-obj"),this.off(".timepicker"),e.list&&e.list.remove(),t.useSelect&&this.show(),e.list=null,this}}};function n(e){var n=e.data("timepicker-obj"),s=n.list,r=n.settings;if(s&&s.length&&(s.remove(),n.list=null),r.useSelect){s=t("