1var CCDN="//d39517acq78dhc.cloudfront.net",SITE_ADMIN=0,SITE_STI=1,SITE_PA=2,SITE_CW=3,SITE_STIUK=4,SITE_MCC=6,SITE_MCCUK=8,SITE_CB=9,SITE_CBW=10,SITE_MCCBB=13,SITE_FPFR=11,SITE_FPUK=12,SITE_FPDE=14,SITE_FPUS=15,SITE_FPIT=16,SITE_FPES=17,SITE_FPIE=18,SITE_FPNL=19,SITE_FPIN=30,SITE_FPBE=20,SITE_FPPL=21,SITE_FPAT=22,SITE_FPCA=24,SITE_PBIN=31,SITE_FPPBUS=50,SITE_PBUK=51,SITE_PBFR=52,SITE_PBIT=53,SITE_PBES=54,SITE_PBDE=55,SITE_PBIE=56,SITE_PBNL=57,SITE_PBBE=58,SITE_PBPL=59,SITE_PBAT=60,SITE_PBCA=62,SITE_IPSEU= 290,SITE_DES=98,SITE_IPS=99,SITE_FPUS_DEMO=100,SITE_FPUK_DEMO=101,SITE_PTUK=112,SITE_PTUS=115,SITE_PTIE=118,SITE_PTFR=111,SITE_PTIT=116,SITE_PTDE=114,SITE_PTES=117,SITE_PTNL=119,SITE_PTBE=120,SITE_PTPL=121,SITE_PTAT=122,SITE_PTCA=124,SITE_ETUS=215,SITE_ETUK=212,SITE_FGUS=70,SITE_IKUS=80,SITE_PGUS=81,SITE_SLY=200,SITE_FCUK=82,SITE_PCC=202,SITE_PBSE=61,SITE_FPSE=23,SITE_PTSE=123,SITE_LMM=127,SITE_LMMUK=128,SITE_ISM=150,SITE_HCUS=180,SITE_HCUK=181,SITE_MYDEALS=182,SITE_CD=151,SITE_LLANE=160,SITE_GIFTS= 3161,SITE_PKPIP=162,SITE_PCRUS=163,SITE_PCRUK=164,SITE_STKUS=165,SITE_STKUK=166,SITE_ORNUS=167,SITE_BAUUK=168,SITE_FPAUS=230,SITE_FPAUK=231,SITE_CPUS=203,SITE_CPAU=205,SITE_CPUK=206,SITE_CPCA=207,SITE_CAFUS=170,SITE_CAFAU=171,SITE_CAFUK=172,SITE_CAFCA=173,SITE_CPBUS=169,SITE_BOU=185,SITE_ISMUS=186,SITE_ISMUK=188,SITE_ISMAU=192,SITE_ISMCA=187,SITE_ISMCF=193,SITE_ISMDE=191,SITE_ISMFR=190,SITE_ISMIE=189,SITE_PPMP=129,SITE_STOCKINGMP=130,SITE_ORNMP=131,SITE_FPAFR=232,SITE_FPAIE=233,SITE_FPAIT=234,SITE_FPADE= 4235,SITE_FPAES=236,SITE_FPAAT=237,SITE_FPANL=238,SITE_FPABE=239,SITE_FPAPL=240,SITE_FPASE=241,ENV_STRING="PROD";var DevConsole=new function(){this.logEnabled=!1;this.logHistory=[];this.GENERAL=1;this.FUNC_CALL=2;this.AJAX_CALL=4;this.DATA=8;this.LINE_NUMBER=16;this.reportMode=this.ALL=4294967295;this._logModeTemp=this._logMode=this.GENERAL;this._breakInX=this._logCt=0;this.groupCSS="font-style: italic;color:#ccc;font-weight:bold;";this.alertCSS="font-size:2em;background-color: #ff0000;color:#fff;font-weight:bold;";this._doLog=function(b){b.filter=this._logMode;b.logId=this.logHistory.length;this._logMode=this._logModeTemp; 5this.logHistory.push(b);this._dispatchLog(b);if(0<this._breakInX&&(this._logCt++,this._logCt==this._breakInX)){this._breakInX=0;debugger}};this.breakInXLogs=function(b){this._logCt=0;this._breakInX=b};this.getModeString=function(b){return b==this.GENERAL?"General":b==this.FUNC_CALL?"Function Call":b==this.AJAX_CALL?"Ajax Call":b==this.DATA?"Data":b==this.LINE_NUMBER?"Line Number":"Unknown"};this.is=function(b){this._logMode=b;return this};this.on=function(b){this._setReportMode(b);b=this.logEnabled; 6this.logEnabled=!0;return b};this.off=function(){var b=this.logEnabled;this.logEnabled=!1;return b};this._setReportMode=function(b){"undefined"==typeof b&&(b=this.ALL);this.reportMode=b};this.getLastLog=function(){return 1>this.logHistory.length?null:this.logHistory[this.logHistory.length-1]};this.dumpLogs=function(){for(var b=this.on(),e=0;e<this.logHistory.length;e++)this._dispatchLog(this.logHistory[e]);b||this.off()};this._dispatchLog=function(b){if(this.logEnabled&&0!=(b.filter&this.reportMode)&& 7"undefined"!=typeof console)if("undefined"!=typeof console[b.logType].apply){console[b.logType].apply(console,b.logArgs);var e="";Error().stack.split("\n").forEach(function(b){"Error"!==b&&(-1===b.indexOf("DevConsole.js")&&-1===b.indexOf("Object._dispatchLog")&&-1===b.indexOf("Object._doLog")&&-1===b.indexOf("Object.log")&&!e)&&(e=b)});console[b.logType].apply(console,["%c"+e,"color:grey;"])}else if("undefined"!=typeof console.log){console.log("("+b.logType+" #"+b.logId+"):");for(var f in b.logArgs)console.log("\t\t"+ 8b.logArgs[f])}};this.log=function(){this._doLog({logType:"log",logArgs:arguments});return this};this.error=function(){this._doLog({logType:"error",logArgs:arguments});return this};this.warn=function(){this._doLog({logType:"warn",logArgs:arguments});return this};this.info=function(){this._doLog({logType:"info",logArgs:arguments});return this};this.debug=function(){this._doLog({logType:"debug",logArgs:arguments});return this};this.trace=function(){this._doLog({logType:"trace",logArgs:arguments});return this}; 9this.style=function(){return this};this.group=function(){var b=Array.prototype.slice.call(arguments);b.unshift(this.groupCSS);b.unshift("%c*** GROUPED LOGS *** [click to expand/collapse] - default expanded");
9this._doLog({logType:"group",logArgs:b});return this};this.groupCollapsed=function(){var b=Array.prototype.slice.call(arguments);b.unshift(this.groupCSS);b.unshift("%c*** GROUPED LOGS *** [click to expand/collapse] - default expanded");this._doLog({logType:"groupCollapsed",logArgs:b});return this}; 10this.groupEnd=function(){this._doLog({logType:"groupEnd",logArgs:arguments});return this};this.method=function(){this._doLog({logType:"debug",logArgs:arguments});return this};this.event=function(){var b=Array.prototype.slice.call(arguments);b.push(window.event||arguments.callee.caller.arguments[0]);this._doLog({logType:"warn",logArgs:b});return this};this.profile=function(b){this._doLog({logType:"profile",logArgs:[b]});return this};this.profileEnd=function(b){this._doLog({logType:"profileEnd",logArgs:[b]}); 11return this};this.alert=function(){var b=Array.prototype.slice.call(arguments),e=this.alertCSS;b.unshift("%c"+b[0]);b[1]=e;this._doLog({logType:"log",logArgs:b});return this}};if("undefined"==typeof console)DevConsole.off(),console=DevConsole;else if("undefined"!=typeof force_devconsole_on)DevConsole.on();window.console||(window.console=DevConsole);if("undefined"==typeof performance)var performance={now:function(){return Date.now()}};!function(b,e){"object"==typeof module&&"object"==typeof module.exports?module.exports=b.document?e(b,!0):function(b){if(!b.document)throw Error("jQuery requires a window with a document");return e(b)}:e(b)}("undefined"!=typeof window?window:this,function(b,e){function f(a,b,c){var d,g,m=(c=c||z).createElement("script");if(m.text=a,b)for(d in Jc)(g=b[d]||b.getAttribute&&b.getAttribute(d))&&m.setAttribute(d,g);c.head.appendChild(m).parentNode.removeChild(m)}function h(a){return null==a?a+"":"object"== 12typeof a||"function"==typeof a?Z[ea.call(a)]||"object":typeof a}function j(a){var b=!!a&&"length"in a&&a.length,c=h(a);return!v(a)&&!ja(a)&&("array"===c||0===b||"number"==typeof b&&0<b&&b-1 in a)}function l(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()}function n(a,b,c){return v(b)?k.grep(a,function(a,d){return!!b.call(a,d,a)!==c}):b.nodeType?k.grep(a,function(a){return a===b!==c}):"string"!=typeof b?k.grep(a,function(a){return-1<u.call(b,a)!==c}):k.filter(b,a,c)}function o(a, 13b){for(;(a=a[b])&&1!==a.nodeType;);return a}function q(a){return a}function r(a){throw a;}function s(a,b,c,d){var g;try{a&&v(g=a.promise)?g.call(a).done(b).fail(c):a&&v(g=a.then)?g.call(a,b,c):b.apply(void 0,[a].slice(d))}catch(m){c.apply(void 0,[m])}}function x(){z.removeEventListener("DOMContentLoaded",x);b.removeEventListener("load",x);k.ready()}function I(a,b){return b.toUpperCase()}function A(a){return a.replace(Kc,"ms-").replace(Lc,I)}function Q(){this.expando=k.expando+Q.uid++}function R(a, 14b,c){var d,g;if(void 0===c&&1===a.nodeType)if(d="data-"+b.replace(Mc,"-$&").toLowerCase(),"string"==typeof(c=a.getAttribute(d))){try{c="true"===(g=c)||"false"!==g&&("null"===g?null:g===+g+""?+g:Nc.test(g)?JSON.parse(g):g)}catch(m){}ga.set(a,b,c)}else c=void 0;return c}function O(a,b,c,d){var g,m,e=20,f=d?function(){return d.cur()}:function(){return k.css(a,b,"")},p=f(),h=c&&c[3]||(k.cssNumber[b]?"":"px"),j=a.nodeType&&(k.cssNumber[b]||"px"!==h&&+p)&&cb.exec(k.css(a,b));if(j&&j[3]!==h){p/=2;h=h||j[3]; 15for(j=+p||1;e--;)k.style(a,b,j+h),0>=(1-m)*(1-(m=f()/p||0.5))&&(e=0),j/=m;j*=2;k.style(a,b,j+h);c=c||[]}return c&&(j=+j||+p||0,g=c[1]?j+(c[1]+1)*c[2]:+c[2],d&&(d.unit=h,d.start=j,d.end=g)),g}function B(a,b){for(var c,d,g,m,e,f,p,h=[],j=0,w=a.length;j<w;j++)(d=a[j]).style&&(c=d.style.display,b?("none"===c&&(h[j]=D.get(d,"display")||null,h[j]||(d.style.display="")),""===d.style.display&&mb(d)&&(h[j]=(p=e=m=void 0,e=(g=d).ownerDocument,f=g.nodeName,(p=Tb[f])||(m=e.body.appendChild(e.createElement(f)), 16p=k.css(m,"display"),m.parentNode.removeChild(m),"none"===p&&(p="block"),Tb[f]=p)))):"none"!==c&&(h[j]="none",D.set(d,"display",c)));for(j=0;j<w;j++)null!=h[j]&&(a[j].style.display=h[j]);return a}function M(a,b){var c;return c="undefined"!=typeof a.getElementsByTagName?a.getElementsByTagName(b||"*"):"undefined"!=typeof a.querySelectorAll?a.querySelectorAll(b||"*"):[],void 0===b||b&&l(a,b)?k.merge([a],c):c}function Oa(a,b){for(var c=0,d=a.length;c<d;c++)D.set(a[c],"globalEval",!b||D.get(b[c],"globalEval"))} 17function Ea(a,b,c,d,g){for(var m,e,f,p,j=b.createDocumentFragment(),w=[],C=0,l=a.length;C<l;
17C++)if((m=a[C])||0===m)if("object"===h(m))k.merge(w,m.nodeType?[m]:m);else if(Pc.test(m)){e=e||j.appendChild(b.createElement("div"));f=(Ub.exec(m)||["",""])[1].toLowerCase();f=ka[f]||ka._default;e.innerHTML=f[1]+k.htmlPrefilter(m)+f[2];for(f=f[0];f--;)e=e.lastChild;k.merge(w,e.childNodes);(e=j.firstChild).textContent=""}else w.push(b.createTextNode(m));j.textContent="";for(C=0;m=w[C++];)if(d&&-1<k.inArray(m, 18d))g&&g.push(m);else if(p=Va(m),e=M(j.appendChild(m),"script"),p&&Oa(e),c)for(f=0;m=e[f++];)Vb.test(m.type||"")&&c.push(m);return j}function G(){return!0}function V(){return!1}function Wa(a,b){var c;a:{try{c=z.activeElement;break a}catch(d){}c=void 0}return a===c==("focus"===b)}function wa(a,b,c,d,g,m){var e,f;if("object"==typeof b){for(f in"string"!=typeof c&&(d=d||c,c=void 0),b)wa(a,f,c,d,b[f],m);return a}if(null==d&&null==g?(g=c,d=c=void 0):null==g&&("string"==typeof c?(g=d,d=void 0):(g=d,d=c, 19c=void 0)),!1===g)g=V;else if(!g)return a;return 1===m&&(e=g,(g=function(a){return k().off(a),e.apply(this,arguments)}).guid=e.guid||(e.guid=k.guid++)),a.each(function(){k.event.add(this,b,g,d,c)})}function Fa(a,b,c){c?(D.set(a,b,!1),k.event.add(a,b,{namespace:!1,handler:function(a){var d,E,g=D.get(this,b);if(1&a.isTrigger&&this[b])if(g.length)(k.event.special[b]||{}).delegateType&&a.stopPropagation();else{if(g=p.call(arguments),D.set(this,b,g),d=c(this,b),this[b](),g!==(E=D.get(this,b))||d?D.set(this, 20b,!1):E={},g!==E)return a.stopImmediatePropagation(),a.preventDefault(),E.value}else g.length&&(D.set(this,b,{value:k.event.trigger(k.extend(g[0],k.Event.prototype),g.slice(1),this)}),a.stopImmediatePropagation())}})):void 0===D.get(a,b)&&k.event.add(a,b,G)}function Xa(a,b){return l(a,"table")&&l(11!==b.nodeType?b:b.firstChild,"tr")&&k(a).children("tbody")[0]||a}function L(a){return a.type=(null!==a.getAttribute("type"))+"/"+a.type,a}function W(a){return"true/"===(a.type||"").slice(0,5)?a.type=a.type.slice(5): 21a.removeAttribute("type"),a}function Ga(a,b){var c,d,g,m,e,f;if(1===b.nodeType){if(D.hasData(a)&&(f=D.get(a).events))for(g in D.remove(b,"handle events"),f){c=0;for(d=f[g].length;c<d;c++)k.event.add(b,g,f[g][c])}ga.hasData(a)&&(m=ga.access(a),e=k.extend({},m),ga.set(b,e))}}function la(a,b,c,d){var b=w(b),g,m,e,p,h=0,j=a.length,C=j-1,l=b[0],n=v(l);if(n||1<j&&"string"==typeof l&&!t.checkClone&&Qc.test(l))return a.each(function(g){var m=a.eq(g);n&&(b[0]=l.call(this,g,m.html()));la(m,b,c,d)});if(j&&(m= 22(g=Ea(b,a[0].ownerDocument,!1,a,d)).firstChild,1===g.childNodes.length&&(g=m),m||d)){for(e=(m=k.map(M(g,"script"),L)).length;h<j;h++)p=g,h!==C&&(p=k.clone(p,!0,!0),e&&k.merge(m,M(p,"script"))),c.call(a[h],p,h);if(e){g=m[m.length-1].ownerDocument;k.map(m,W);for(h=0;h<e;h++)p=m[h],Vb.test(p.type||"")&&!D.access(p,"globalEval")&&k.contains(g,p)&&(p.src&&"module"!==(p.type||"").toLowerCase()?k._evalUrl&&!p.noModule&&k._evalUrl(p.src,{nonce:p.nonce||p.getAttribute("nonce")},g):f(p.textContent.replace(Sc, 23""),p,g))}}return a}function Ha(a,b,c){for(var d=b?k.filter(b,a):a,g=0;null!=(b=d[g]);g++)c||1!==b.nodeType||k.cleanData(M(b)),b.parentNode&&(c&&Va(b)&&Oa(M(b,"script")),b.parentNode.removeChild(b));return a}function aa(a,b,c){var d,g,m,e,f=a.style;return(c=c||nb(a))&&(""!==(e=c.getPropertyValue(b)||c[b])||Va(a)||(e=k.style(a,b)),!t.pixelBoxStyles()&&Cb.test(e)&&Tc.test(b)&&(d=f.width,g=f.minWidth,m=f.maxWidth,f.minWidth=f.maxWidth=f.width=e,e=c.width,f.width=d,f.minWidth=g,f.maxWidth=m)),void 0!== 24e?e+"":e}function H(a,b){return{get:function(){if(!a())return(this.get=b).apply(this,arguments);delete this.get}}}function ta(a){var b;if(!(b=k.cssProps[a]||Wb[a])){if(!(a in Xb)){b=Wb;var c;a:{c=a;for(var d=c[0].toUpperCase()+c.slice(1),g=Yb.length;g--;)if((c=Yb[g]+d)in Xb)break a;c=void 0}a=b[a]=c||a}b=a}return b}function Ia(a,b,c){return(a=cb.exec(b))?Math.max(0,a[2]-(c||0))+(a[3]||"px"):b}function xa(a,b,c,d,g,m){var e="width"===b?1:0,f=0,p=0;if(c===(d?"border":"content"))return 0;for(;4>e;e+= 252)"margin"===c&&(p+=k.css(a,c+ya[e],!0,g)),d?("content"===c&&(p-=k.css(a,"padding"+ya[e],!0,g)),"margin"!==c&&(p-=k.css(a,"border"+ya[e]+"Width",!0,g))):(p+=k.css(a,"padding"+ya[e],!0,g),"padding"!==c?p+=k.css(a,"border"+ya[e]+"Width",!0,g):f+=k.css(a,"border"+ya[e]+"Width",!0,g));return!d&&0<=m&&(p+=Math.max(0,Math.ceil(a["offset"+b[0].toUpperCase()+b.slice(1)]-m-p-f-0.5))||0),p}function oa(a,b,c){var d=nb(a),g=(!t.boxSizingReliable()||c)&&"border-box"===k.css(a,"boxSizing",!1,d),m=g,e=aa(a,b,d), 26f="offset"+b[0].toUpperCase()+b.slice(1);if(Cb.test(e)){if(!c)return e;e="auto"}return(!t.boxSizingReliable()&&g||!t.reliableTrDimensions()&&l(a,"tr")||"auto"===e||!parseFloat(e)&&"inline"===k.css(a,"display",!1,d))&&a.getClientRects().length&&(g="border-box"===k.css(a,"boxSizing",!1,d),(m=f in a)&&(e=a[f])),(e=parseFloat(e)||0)+xa(a,b,c||(g?"border":"content"),m,d,e)+"px"}function F(a,b,c,d,g){return new F.prototype.init(a,b,c,d,g)}function pa(){ob&&(!1===z.hidden&&b.requestAnimationFrame?b.requestAnimationFrame(pa): 27b.setTimeout(pa,k.fx.interval),k.fx.tick())}function pb(){return b.setTimeout(function(){Ya=void 0}),Ya=Date.now()}function Ja(a,b){for(var c,d=0,g={height:a},b=b?1:0;4>d;d+=2-b)g["margin"+(c=ya[d])]=g["padding"+c]=a;return b&&(g.opacity=g.width=a),g}function qb(a,b,c){for(var d,g=(ha.tweeners[b]||[]).concat(ha.tweeners["*"]),m=0,e=g.length;m<e;m++)if(d=g[m].call(c,b,a))return d}function ha(a,b,c){var d,g,m=0,e=ha.prefilters.length,f=k.Deferred().always(function(){delete p.elem}),p=function(){if(g)return!1; 28for(var b=Ya||pb(),b=Math.max(0,h.startTime+h.duration-b),c=1-(b/h.duration||0),d=0,m=h.tweens.length;d<m;d++)h.tweens[d].run(c);return f.notifyWith(a,[h,c,b]),1>
vendor: 4,689 bytes, lines 28-37
28c&&m?b:(m||f.notifyWith(a,[h,1,0]),f.resolveWith(a,[h]),!1)},h=f.promise({elem:a,props:k.extend({},b),opts:k.extend(!0,{specialEasing:{},easing:k.easing._default},c),originalProperties:b,originalOptions:c,startTime:Ya||pb(),duration:c.duration,tweens:[],createTween:function(b,c){var d=k.Tween(a,h.opts,b,c,h.opts.specialEasing[b]||h.opts.easing); 29return h.tweens.push(d),d},stop:function(b){var c=0,d=b?h.tweens.length:0;if(g)return this;for(g=!0;c<d;c++)h.tweens[c].run(1);return b?(f.notifyWith(a,[h,1,0]),f.resolveWith(a,[h,b])):f.rejectWith(a,[h,b]),this}}),b=h.props,c=h.opts.specialEasing,j,w,C,l;for(d in b)if(w=c[j=A(d)],C=b[d],Array.isArray(C)&&(w=C[1],C=b[d]=C[0]),d!==j&&(b[j]=C,delete b[d]),(l=k.cssHooks[j])&&"expand"in l)for(d in C=l.expand(C),delete b[j],C)d in b||(b[d]=C[d],c[d]=w);else c[j]=w;for(!0;m<e;m++)if(d=ha.prefilters[m].call(h, 30a,b,h.opts))return v(d.stop)&&(k._queueHooks(h.elem,h.opts.queue).stop=d.stop.bind(d)),d;return k.map(b,qb,h),v(h.opts.start)&&h.opts.start.call(a,h),h.progress(h.opts.progress).done(h.opts.done,h.opts.complete).fail(h.opts.fail).always(h.opts.always),k.fx.timer(k.extend(p,{elem:a,anim:h,queue:h.opts.queue})),h}function za(a){return(a.match(ua)||[]).join(" ")}function X(a){return a.getAttribute&&a.getAttribute("class")||""}function Ka(a){return Array.isArray(a)?a:"string"==typeof a&&a.match(ua)|| 31[]}function Pa(a,b,c,d){var g;if(Array.isArray(b))k.each(b,function(b,g){c||Uc.test(a)?d(a,g):Pa(a+"["+("object"==typeof g&&null!=g?b:"")+"]",g,c,d)});else if(c||"object"!==h(b))d(a,b);else for(g in b)Pa(a+"["+g+"]",b[g],c,d)}function a(a){return function(b,c){"string"!=typeof b&&(c=b,b="*");var d,g=0,m=b.toLowerCase().match(ua)||[];if(v(c))for(;d=m[g++];)"+"===d[0]?(d=d.slice(1)||"*",(a[d]=a[d]||[]).unshift(c)):(a[d]=a[d]||[]).push(c)}}function c(a,b,c,d){function g(f){var h;return m[f]=!0,k.each(a[f]|| 32[],function(a,E){var f=E(b,c,d);return"string"!=typeof f||e||m[f]?e?!(h=f):void 0:(b.dataTypes.unshift(f),g(f),!1)}),h}var m={},e=a===Db;return g(b.dataTypes[0])||!m["*"]&&g("*")}function d(a,b){var c,d,g=k.ajaxSettings.flatOptions||{};for(c in b)void 0!==b[c]&&((g[c]?a:d||(d={}))[c]=b[c]);return d&&k.extend(!0,a,d),a}var g=[],m=Object.getPrototypeOf,p=g.slice,w=g.flat?function(a){return g.flat.call(a)}:function(a){return g.concat.apply([],a)},C=g.push,u=g.indexOf,Z={},ea=Z.toString,Aa=Z.hasOwnProperty, 33P=Aa.toString,fa=P.call(Object),t={},v=function(a){return"function"==typeof a&&"number"!=typeof a.nodeType},ja=function(a){return null!=a&&a===a.window},z=b.document,Jc={type:!0,src:!0,nonce:!0,noModule:!0},k=function(a,b){return new k.fn.init(a,b)};k.fn=k.prototype={jquery:"3.5.1",constructor:k,length:0,toArray:function(){return p.call(this)},get:function(a){return null==a?p.call(this):0>a?this[a+this.length]:this[a]},pushStack:function(a){a=k.merge(this.constructor(),a);return a.prevObject=this, 34a},each:function(a){return k.each(this,a)},map:function(a){return this.pushStack(k.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(p.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(k.grep(this,function(a,b){return(b+1)%2}))},odd:function(){return this.pushStack(k.grep(this,function(a,b){return b%2}))},eq:function(a){var b=this.length,a=+a+(0>a?b:0);return this.pushStack(0<= 35a&&a<b?[this[a]]:[])},end:function(){return this.prevObject||this.constructor()},push:C,sort:g.sort,splice:g.splice};k.extend=k.fn.extend=function(){var a,b,c,d,g,m,e=arguments[0]||{},f=1,h=arguments.length,p=!1;"boolean"==typeof e&&(p=e,e=arguments[f]||{},f++);"object"==typeof e||v(e)||(e={});for(f===h&&(e=this,f--);f<h;f++)if(null!=(a=arguments[f]))for(b in a)d=a[b],"__proto__"!==b&&e!==d&&(p&&d&&(k.isPlainObject(d)||(g=Array.isArray(d)))?(c=e[b],m=g&&!Array.isArray(c)?[]:g||k.isPlainObject(c)? 36c:{},g=!1,e[b]=k.extend(p,m,d)):void 0!==d&&(e[b]=d));return e};k.extend({expando:"jQuery"+("3.5.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw Error(a);},noop:function(){},isPlainObject:function(a){var b,c;return!(!a||"[object Object]"!==ea.call(a))&&(!(b=m(a))||"function"==typeof(c=Aa.call(b,"constructor")&&b.constructor)&&P.call(c)===fa)},isEmptyObject:function(a){for(var b in a)return!1;return!0},globalEval:function(a,b,c){f(a,{nonce:b&&b.nonce},c)},each:function(a,b){var c, 37d=0;if(j(a))for(c=a.length;d<c&&!1!==b.call(a[d],d,a[d]);d++);else for(d in a)if(!1===b.call(a[d],d,a[d]))break;return a},makeArray:function(a,b){var c=b||[];return null!=a&&(j(Object(a))?k.merge(c,"string"==typeof a?[a]:a):C.call(c,a)),c},inArray:function(a,b,c){return null==b?-1:u.call(b,a,c)}
37,merge:function(a,b){for(var c=+b.length,d=0,g=a.length;d<c;d++)a[g++]=b[d];return a.length=g,a},grep:function(a,b,c){for(var d=[],g=0,m=a.length,c=!c;g<m;g++)!b(a[g],g)!==c&&d.push(a[g]);return d},map:function(a, 38b,c){var d,g,m=0,e=[];if(j(a))for(d=a.length;m<d;m++)null!=(g=b(a[m],m,c))&&e.push(g);else for(m in a)null!=(g=b(a[m],m,c))&&e.push(g);return w(e)},guid:1,support:t});"function"==typeof Symbol&&(k.fn[Symbol.iterator]=g[Symbol.iterator]);k.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(a,b){Z["[object "+b+"]"]=b.toLowerCase()});var ba,Eb=b,y=function(a,b,c,d){var g,m,e,f,h,p=b&&b.ownerDocument;m=b?b.nodeType:9;if(c=c||[],"string"!=typeof a||!a||1!== 39m&&9!==m&&11!==m)return c;if(!d&&(La(b),b=b||N,ma)){if(11!==m&&(h=Vc.exec(a)))if(g=h[1])if(9===m){if(!(e=b.getElementById(g)))return c;if(e.id===g)return c.push(e),c}else{if(p&&(e=p.getElementById(g))&&db(b,e)&&e.id===g)return c.push(e),c}else{if(h[2])return Ma.apply(c,b.getElementsByTagName(a)),c;if((g=h[3])&&S.getElementsByClassName&&b.getElementsByClassName)return Ma.apply(c,b.getElementsByClassName(g)),c}if(S.qsa&&!rb[a+" "]&&(!ca||!ca.test(a))&&(1!==m||"object"!==b.nodeName.toLowerCase())){if(g= 40a,p=b,1===m&&(Wc.test(a)||Zb.test(a))){(p=Fb.test(a)&&Gb(b.parentNode)||b)===b&&S.scope||((f=b.getAttribute("id"))?f=f.replace($b,ac):b.setAttribute("id",f=T));for(m=(g=eb(a)).length;m--;)g[m]=(f?"#"+f:":scope")+" "+sb(g[m]);g=g.join(",")}try{return Ma.apply(c,p.querySelectorAll(g)),c}catch(k){rb(a,!0)}finally{f===T&&b.removeAttribute("id")}}}return bc(a.replace(tb,"$1"),b,c,d)},ub=function(){var a=[];return function Y(b,c){return a.push(b+" ")>J.cacheLength&&delete Y[a.shift()],Y[b+" "]=c}},qa=function(a){return a[T]= 41!0,a},ra=function(a){var b=N.createElement("fieldset");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b)}},Hb=function(a,b){for(var c=a.split("|"),d=c.length;d--;)J.attrHandle[c[d]]=b},cc=function(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&a.sourceIndex-b.sourceIndex;if(d)return d;if(c)for(;c=c.nextSibling;)if(c===b)return-1;return a?1:-1},Xc=function(a){return function(b){return"input"===b.nodeName.toLowerCase()&&b.type===a}},Yc=function(a){return function(b){var c= 42b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}},dc=function(a){return function(b){return"form"in b?b.parentNode&&!1===b.disabled?"label"in b?"label"in b.parentNode?b.parentNode.disabled===a:b.disabled===a:b.isDisabled===a||b.isDisabled!==!a&&Zc(b)===a:b.disabled===a:"label"in b&&b.disabled===a}},K=function(a){return qa(function(b){return b=+b,qa(function(c,d){for(var g,m=a([],c.length,b),e=m.length;e--;)c[g=m[e]]&&(c[g]=!(d[g]=c[g]))})})},Gb=function(a){return a&&"undefined"!= 43typeof a.getElementsByTagName&&a},ec=function(){},sb=function(a){for(var b=0,c=a.length,d="";b<c;b++)d+=a[b].value;return d},vb=function(a,b,c){var d=b.dir,g=b.next,m=g||d,e=c&&"parentNode"===m,f=$c++;return b.first?function(b,c,g){for(;b=b[d];)if(1===b.nodeType||e)return a(b,c,g);return!1}:function(b,c,U){var h,p,Y,k=[va,f];if(U)for(;b=b[d];){if((1===b.nodeType||e)&&a(b,c,U))return!0}else for(;b=b[d];)if(1===b.nodeType||e)if(p=(Y=b[T]||(b[T]={}))[b.uniqueID]||(Y[b.uniqueID]={}),g&&g===b.nodeName.toLowerCase())b= 44b[d]||b;else{if((h=p[m])&&h[0]===va&&h[1]===f)return k[2]=h[2];if((p[m]=k)[2]=a(b,c,U))return!0}return!1}},da=function(a){return 1<a.length?function(b,c,d){for(var g=a.length;g--;)if(!a[g](b,c,d))return!1;return!0}:a[0]},wb=function(a,b,c,d,g){for(var m,e=[],f=0,h=a.length,p=null!=b;f<h;f++)(m=a[f])&&(c&&!c(m,d,g)||(e.push(m),p&&b.push(f)));return e},Ib=function(a,b,c,d,g,m){return d&&!d[T]&&(d=Ib(d)),g&&!g[T]&&(g=Ib(g,m)),qa(function(m,e,f,h){var p,k,j=[],w=[],C=e.length,l;if(!(l=m)){l=b||"*";for(var n= 45f.nodeType?[f]:f,Sb=[],u=0,Z=n.length;u<Z;u++)y(l,n[u],Sb);l=Sb}l=!a||!m&&b?l:wb(l,j,a,f,h);n=c?g||(m?a:C||d)?[]:e:l;if(c&&c(l,n,f,h),d){p=wb(n,w);d(p,[],f,h);for(f=p.length;f--;)(k=p[f])&&(n[w[f]]=!(l[w[f]]=k))}if(m){if(g||a){if(g){p=[];for(f=n.length;f--;)(k=n[f])&&p.push(l[f]=k);g(null,n=[],p,h)}for(f=n.length;f--;)(k=n[f])&&-1<(p=g?Qa(m,k):j[f])&&(m[p]=!(e[p]=k))}}else n=wb(n===e?n.splice(C,n.length):n),g?g(null,e,n,h):Ma.apply(e,n)})}
45,Jb=function(a){var b,c,d,g=a.length,m=J.relative[a[0].type]; 46c=m||J.relative[" "];for(var e=m?1:0,f=vb(function(a){return a===b},c,!0),h=vb(function(a){return-1<Qa(b,a)},c,!0),p=[function(a,c,d){a=!m&&(d||c!==xb)||((b=c).nodeType?f(a,c,d):h(a,c,d));return b=null,a}];e<g;e++)if(c=J.relative[a[e].type])p=[vb(da(p),c)];else{if((c=J.filter[a[e].type].apply(null,a[e].matches))[T]){for(d=++e;d<g&&!J.relative[a[d].type];d++);return Ib(1<e&&da(p),1<e&&sb(a.slice(0,e-1).concat({value:" "===a[e-2].type?"*":""})).replace(tb,"$1"),c,e<d&&Jb(a.slice(e,d)),d<g&&Jb(a=a.slice(d)), 47d<g&&sb(a))}p.push(c)}return da(p)},Za,S,J,yb,fc,eb,Kb,bc,xb,Na,$a,La,N,ia,ma,ca,Ra,zb,db,T="sizzle"+1*new Date,sa=Eb.document,va=0,$c=0,gc=ub(),hc=ub(),ic=ub(),rb=ub(),Lb=function(a,b){return a===b&&($a=!0),0},ad={}.hasOwnProperty,Sa=[],bd=Sa.pop,cd=Sa.push,Ma=Sa.push,jc=Sa.slice,Qa=function(a,b){for(var c=0,d=a.length;c<d;c++)if(a[c]===b)return c;return-1},dd=/[\x20\t\r\n\f]+/g,tb=/^[\x20\t\r\n\f]+|((?:^|[^\\])(?:\\.)*)[\x20\t\r\n\f]+$/g,ed=/^[\x20\t\r\n\f]*,[\x20\t\r\n\f]*/,Zb=/^[\x20\t\r\n\f]*([>+~]|[\x20\t\r\n\f])[\x20\t\r\n\f]*/, 48Wc=/[\x20\t\r\n\f]|>/,fd=RegExp(":((?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\x00-\\x7f])+)(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|\\[[\\x20\\t\\r\\n\\f]*((?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\x00-\\x7f])+)(?:[\\x20\\t\\r\\n\\f]*([*^$|!~]?=)[\\x20\\t\\r\\n\\f]*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|((?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\x00-\\x7f])+))|)[\\x20\\t\\r\\n\\f]*\\])*)|.*)\\)|)"), 49gd=/^(?:\\[\da-fA-F]{1,6}[\x20\t\r\n\f]?|\\[^\r\n\f]|[\w-]|[^\x00-\x7f])+$/,Ab={ID:/^#((?:\\[\da-fA-F]{1,6}[\x20\t\r\n\f]?|\\[^\r\n\f]|[\w-]|[^\x00-\x7f])+)/,CLASS:/^\.((?:\\[\da-fA-F]{1,6}[\x20\t\r\n\f]?|\\[^\r\n\f]|[\w-]|[^\x00-\x7f])+)/,TAG:/^((?:\\[\da-fA-F]{1,6}[\x20\t\r\n\f]?|\\[^\r\n\f]|[\w-]|[^\x00-\x7f])+|[*])/,ATTR:RegExp("^\\[[\\x20\\t\\r\\n\\f]*((?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\x00-\\x7f])+)(?:[\\x20\\t\\r\\n\\f]*([*^$|!~]?=)[\\x20\\t\\r\\n\\f]*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|((?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\x00-\\x7f])+))|)[\\x20\\t\\r\\n\\f]*\\]"), 50PSEUDO:RegExp("^:((?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\x00-\\x7f])+)(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|\\[[\\x20\\t\\r\\n\\f]*((?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\x00-\\x7f])+)(?:[\\x20\\t\\r\\n\\f]*([*^$|!~]?=)[\\x20\\t\\r\\n\\f]*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|((?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\x00-\\x7f])+))|)[\\x20\\t\\r\\n\\f]*\\])*)|.*)\\)|)"), 51CHILD:RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\([\\x20\\t\\r\\n\\f]*(even|odd|(([+-]|)(\\d*)n|)[\\x20\\t\\r\\n\\f]*(?:([+-]|)[\\x20\\t\\r\\n\\f]*(\\d+)|))[\\x20\\t\\r\\n\\f]*\\)|)","i"),bool:RegExp("^(?:checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped)$","i"),needsContext:RegExp("^[\\x20\\t\\r\\n\\f]*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\([\\x20\\t\\r\\n\\f]*((?:-\\d)?\\d*)[\\x20\\t\\r\\n\\f]*\\)|)(?=[^-]|$)", 52"i")},hd=/HTML$/i,id=/^(?:input|select|textarea|button)$/i,jd=/^h\d$/i,fb=/^[^{]+\{\s*\[native \w/,Vc=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Fb=/[+~]/,Ba=/\\[\da-fA-F]{1,6}[\x20\t\r\n\f]?|\\([^\r\n\f])/g,Ca=function(a,b){var c="0x"+a.slice(1)-65536;return b||(0>c?String.fromCharCode(c+65536):String.fromCharCode(c>>10|55296,1023&c|56320))},$b=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ac=function(a,b){return b?"\x00"===a?"\ufffd":a.slice(0,-1)+"\\"+a.charCodeAt(a.length-1).toString(16)+" ": 53"\\"+a},kc=function(){La()},Zc=vb(function(a){return!0===a.disabled&&"fieldset"===a.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{Ma.apply(Sa=jc.call(sa.childNodes),sa.childNodes),Sa[sa.childNodes.length].nodeType}catch(Ld){Ma={apply:Sa.length?function(a,b){cd.apply(a,jc.call(b))}:function(a,b){for(var c=a.length,d=0;a[c++]=b[d++];);a.length=c-1}}}for(Za in S=y.support={},fc=y.isXML=function(a){var b=(a.ownerDocument||a).documentElement;return!hd.test(a.namespaceURI||b&&b.nodeName|| 54"HTML")},La=y.setDocument=function(a){var b,c,a=a?a.ownerDocument||a:sa;return a!=N&&9===a.nodeType&&a.documentElement&&(ia=(N=a).documentElement,ma=!fc(N),sa!=N&&(c=N.defaultView)&&c.top!==c&&(c.addEventListener?c.addEventListener("unload",kc,!1):c.attachEvent&&c.attachEvent("onunload",kc)),S.scope=ra(function(a){return ia.appendChild(a).appendChild(N.createElement("div")),"undefined"!=typeof a.querySelectorAll&&!a.querySelectorAll(":scope fieldset div").length}),S.attributes=ra(function(a){return a.className= 55"i",!a.getAttribute("className")}),S.getElementsByTagName=ra(function(a){return a.appendChild(N.createComment("")),!a.getElementsByTagName("*").length}),S.getElementsByClassName=fb.test(N.getElementsByClassName),S.getById=ra(function(a){return ia.appendChild(a).id=T,!N.getElementsByName||!N.getElementsByName(T).length}),S.getById?(J.filter.ID=function(a){var b=a.replace(Ba,Ca);return function(a){return a.getAttribute("id")===b}},J.find.ID=function(a,b){if("undefined"!=typeof b.getElementById&&ma){var c= 56b.getElementById(a);return c?[c]:[]}}):(J.filter.ID=function(a){var b=a.replace(Ba,Ca);return function(a){return(a="undefined"!=typeof a.getAttributeNode&&a.getAttributeNode("id"))&&a.value===b}},J.find.ID=function(a,b){if("undefined"!=typeof b.getElementById&&ma){var c,d,g,E=b.getElementById(a);if(E){if((c=E.getAttributeNode("id"))&&c.value===a)return[E];g=b.getElementsByName(a);for(d=0;E=g[d++];)if((c=E.getAttributeNode("id"))&&c.value===a)return[E]}return[]}}),J.find.TAG=S.getElementsByTagName? 57function(a,b){return"undefined"!=typeof b.getElementsByTagName?b.getElementsByTagName(a):S.qsa?b.querySelectorAll(a):void 0}:function(a,b){var c,d=[],g=0,E=b.getElementsByTagName(a);if("*"===a){for(;c=E[g++];)1===c.nodeType&&d.push(c);return d}return E},J.find.CLASS=S.getElementsByClassName&&function(a,b){if("undefined"!=typeof b.getElementsByClassName&&ma)return b.getElementsByClassName(a)},Ra=[],ca=[],(S.qsa=fb.test(N.querySelectorAll))&&(ra(function(a){var b;ia.appendChild(a).innerHTML="<a id='"+ 58T+"'></a><select id='"+T+"-\r\\' msallowcapture=''><option selected=''></option></select>";a.querySelectorAll("[msallowcapture^='']").length&&ca.push("[*^$]=[\\x20\\t\\r\\n\\f]*(?:''|\"\")");a.querySelectorAll("[selected]").length||ca.push("\\[[\\x20\\t\\r\\n\\f]*(?:value|checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped)");a.querySelectorAll("[id~="+T+"-]").length||ca.push("~=");(b=N.createElement("input")).setAttribute("name", 59"");a.appendChild(b);a.querySelectorAll("[name='']").length||ca.push("\\[[\\x20\\t\\r\\n\\f]*name[\\x20\\t\\r\\n\\f]*=[\\x20\\t\\r\\n\\f]*(?:''|\"\")");a.querySelectorAll(":checked").length||ca.push(":checked");a.querySelectorAll("a#"+T+"+*").length||ca.push(".#.+[+~]");a.querySelectorAll("\\\f");ca.push("[\\r\\n\\f]")}),ra(function(a){a.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var b=N.createElement("input");b.setAttribute("type","hidden");a.appendChild(b).setAttribute("name", 60"D");a.querySelectorAll("[name=d]").length&&ca.push("name[\\x20\\t\\r\\n\\f]*[*^$|!~]?=");2!==a.querySelectorAll(":enabled").length&&ca.push(":enabled",":disabled");ia.appendChild(a).disabled=!0;2!==a.querySelectorAll(":disabled").length&&ca.push(":enabled",":disabled");a.querySelectorAll("*,:x");ca.push(",.*:")})),(S.matchesSelector=fb.test(zb=ia.matches||ia.webkitMatchesSelector||ia.mozMatchesSelector||ia.oMatchesSelector||ia.msMatchesSelector))&&ra(function(a){S.disconnectedMatch=zb.call(a,"*"); 61zb.call(a,"[s!='']:x");Ra.push("!=",":((?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\x00-\\x7f])+)(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|\\[[\\x20\\t\\r\\n\\f]*((?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\x00-\\x7f])+)(?:[\\x20\\t\\r\\n\\f]*([*^$|!~]?=)[\\x20\\t\\r\\n\\f]*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|((?
vendor: 5,565 bytes, lines 61-72
61:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\x00-\\x7f])+))|)[\\x20\\t\\r\\n\\f]*\\])*)|.*)\\)|)")}), 62ca=ca.length&&RegExp(ca.join("|")),Ra=Ra.length&&RegExp(Ra.join("|")),b=fb.test(ia.compareDocumentPosition),db=b||fb.test(ia.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)for(;b=b.parentNode;)if(b===a)return!0;return!1},Lb=b?function(a,b){if(a===b)return $a=!0,0;var c=!a.compareDocumentPosition-!b.compareDocumentPosition; 63return c||(1&(c=(a.ownerDocument||a)==(b.ownerDocument||b)?a.compareDocumentPosition(b):1)||!S.sortDetached&&b.compareDocumentPosition(a)===c?a==N||a.ownerDocument==sa&&db(sa,a)?-1:b==N||b.ownerDocument==sa&&db(sa,b)?1:Na?Qa(Na,a)-Qa(Na,b):0:4&c?-1:1)}:function(a,b){if(a===b)return $a=!0,0;var c,d=0;c=a.parentNode;var g=b.parentNode,E=[a],m=[b];if(!c||!g)return a==N?-1:b==N?1:c?-1:g?1:Na?Qa(Na,a)-Qa(Na,b):0;if(c===g)return cc(a,b);for(c=a;c=c.parentNode;)E.unshift(c);for(c=b;c=c.parentNode;)m.unshift(c); 64for(;E[d]===m[d];)d++;return d?cc(E[d],m[d]):E[d]==sa?-1:m[d]==sa?1:0}),N},y.matches=function(a,b){return y(a,null,null,b)},y.matchesSelector=function(a,b){if(La(a),S.matchesSelector&&ma&&!rb[b+" "]&&(!Ra||!Ra.test(b))&&(!ca||!ca.test(b)))try{var c=zb.call(a,b);if(c||S.disconnectedMatch||a.document&&11!==a.document.nodeType)return c}catch(d){rb(b,!0)}return 0<y(b,N,null,[a]).length},y.contains=function(a,b){return(a.ownerDocument||a)!=N&&La(a),db(a,b)},y.attr=function(a,b){(a.ownerDocument||a)!=N&& 65La(a);var c=J.attrHandle[b.toLowerCase()],c=c&&ad.call(J.attrHandle,b.toLowerCase())?c(a,b,!ma):void 0;return void 0!==c?c:S.attributes||!ma?a.getAttribute(b):(c=a.getAttributeNode(b))&&c.specified?c.value:null},y.escape=function(a){return(a+"").replace($b,ac)},y.error=function(a){throw Error("Syntax error, unrecognized expression: "+a);},y.uniqueSort=function(a){var b,c=[],d=0,g=0;if($a=!S.detectDuplicates,Na=!S.sortStable&&a.slice(0),a.sort(Lb),$a){for(;b=a[g++];)b===a[g]&&(d=c.push(g));for(;d--;)a.splice(c[d], 661)}return Na=null,a},yb=y.getText=function(a){var b,c="",d=0;if(b=a.nodeType)if(1===b||9===b||11===b){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=yb(a)}else{if(3===b||4===b)return a.nodeValue}else for(;b=a[d++];)c+=yb(b);return c},(J=y.selectors={cacheLength:50,createPseudo:qa,match:Ab,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]= 67a[1].replace(Ba,Ca),a[3]=(a[3]||a[4]||a[5]||"").replace(Ba,Ca),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||y.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&y.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return Ab.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&fd.test(c)&&(b=eb(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0, 68b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(Ba,Ca).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=gc[a+" "];return b||(b=RegExp("(^|[\\x20\\t\\r\\n\\f])"+a+"([\\x20\\t\\r\\n\\f]|$)"))&&gc(a,function(a){return b.test("string"==typeof a.className&&a.className||"undefined"!=typeof a.getAttribute&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){d=y.attr(d,a); 69return null==d?"!="===b:!b||(d+="","="===b?d===c:"!="===b?d!==c:"^="===b?c&&0===d.indexOf(c):"*="===b?c&&-1<d.indexOf(c):"$="===b?c&&d.slice(-c.length)===c:"~="===b?-1<(" "+d.replace(dd," ")+" ").indexOf(c):"|="===b&&(d===c||d.slice(0,c.length+1)===c+"-"))}},CHILD:function(a,b,c,d,g){var m="nth"!==a.slice(0,3),e="last"!==a.slice(-4),f="of-type"===b;return 1===d&&0===g?function(a){return!!a.parentNode}:function(b,c,U){var h,p,k,j,Y,c=m!==e?"nextSibling":"previousSibling",w=b.parentNode,C=f&&b.nodeName.toLowerCase(), 70l=!U&&!f,n=!1;if(w){if(m){for(;c;){for(k=b;k=k[c];)if(f?k.nodeName.toLowerCase()===C:1===k.nodeType)return!1;Y=c="only"===a&&!Y&&"nextSibling"}return!0}if(Y=[e?w.firstChild:w.lastChild],e&&l){n=(j=(h=(U=(p=(k=w)[T]||(k[T]={}))[k.uniqueID]||(p[k.uniqueID]={}))[a]||[])[0]===va&&h[1])&&h[2];for(k=j&&w.childNodes[j];k=++j&&k&&k[c]||(n=j=0)||Y.pop();)if(1===k.nodeType&&++n&&k===b){U[a]=[va,j,n];break}}else if(l&&(n=j=(h=((p=(k=b)[T]||(k[T]={}))[k.uniqueID]||(p[k.uniqueID]={}))[a]||[])[0]===va&&h[1]),!1=== 71n)for(;(k=++j&&k&&k[c]||(n=j=0)||Y.pop())&&(!(f?k.nodeName.toLowerCase()===C:1===k.nodeType)||!++n||!(l&&((U=(p=k[T]||(k[T]={}))[k.uniqueID]||(p[k.uniqueID]={}))[a]=[va,n]),k===b)););return(n-=g)===d||0==n%d&&0<=n/d}}},PSEUDO:function(a,b){var c,d=J.pseudos[a]||J.setFilters[a.toLowerCase()]||y.error("unsupported pseudo: "+a);return d[T]?d(b):1<d.length?(c=[a,a,"",b],J.setFilters.hasOwnProperty(a.toLowerCase())?qa(function(a,c){for(var g,E=d(a,b),m=E.length;m--;)a[g=Qa(a,E[m])]=!(c[g]=E[m])}):function(a){return d(a, 720,c)}):d}},pseudos:{not:qa(function(a){var b=[],c=[],d=Kb(a.replace(tb,"$1"));return d[T]?qa(function(a,b,c,g){for(var E,c=d(a,null,g,[]),g=a.length;g--;)(E=c[g])&&(a[g]=!(b[g]=E))}):function(a,g,E){return b[0]=a,d(b,null,E,c),b[0]=null,!c.pop()}}),has:qa(function(a){return function(b){return 0<y(a,b).length}}
72),contains:qa(function(a){return a=a.replace(Ba,Ca),function(b){return-1<(b.textContent||yb(b)).indexOf(a)}}),lang:qa(function(a){return gd.test(a||"")||y.error("unsupported lang: "+a),a=a.replace(Ba, 73Ca).toLowerCase(),function(b){var c;do if(c=ma?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return(c=c.toLowerCase())===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(a){var b=Eb.location&&Eb.location.hash;return b&&b.slice(1)===a.id},root:function(a){return a===ia},focus:function(a){return a===N.activeElement&&(!N.hasFocus||N.hasFocus())&&!(!a.type&&!a.href&&!~a.tabIndex)},enabled:dc(!1),disabled:dc(!0),checked:function(a){var b=a.nodeName.toLowerCase(); 74return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,!0===a.selected},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(6>a.nodeType)return!1;return!0},parent:function(a){return!J.pseudos.empty(a)},header:function(a){return jd.test(a.nodeName)},input:function(a){return id.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"=== 75a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:K(function(){return[0]}),last:K(function(a,b){return[b-1]}),eq:K(function(a,b,c){return[0>c?c+b:c]}),even:K(function(a,b){for(var c=0;c<b;c+=2)a.push(c);return a}),odd:K(function(a,b){for(var c=1;c<b;c+=2)a.push(c);return a}),lt:K(function(a,b,c){for(b=0>c?c+b:b<c?b:c;0<=--b;)a.push(b);return a}),gt:K(function(a,b,c){for(c=0>c?c+b:c;++c<b;)a.push(c);return a})}}).pseudos.nth=J.pseudos.eq, 76{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})J.pseudos[Za]=Xc(Za);for(Za in{submit:!0,reset:!0})J.pseudos[Za]=Yc(Za);ba=(ec.prototype=J.filters=J.pseudos,J.setFilters=new ec,eb=y.tokenize=function(a,b){var c,d,g,m,e,f,p;if(e=hc[a+" "])return b?0:e.slice(0);e=a;f=[];for(p=J.preFilter;e;){for(m in c&&!(d=ed.exec(e))||(d&&(e=e.slice(d[0].length)||e),f.push(g=[])),c=!1,(d=Zb.exec(e))&&(c=d.shift(),g.push({value:c,type:d[0].replace(tb," ")}),e=e.slice(c.length)),J.filter)!(d=Ab[m].exec(e))||p[m]&& 77!(d=p[m](d))||(c=d.shift(),g.push({value:c,type:m,matches:d}),e=e.slice(c.length));if(!c)break}return b?e.length:e?y.error(a):hc(a,f).slice(0)},Kb=y.compile=function(a,b){var c,d,g,m,e=[],f=[],p=ic[a+" "];if(!p){b||(b=eb(a));for(c=b.length;c--;)(p=Jb(b[c]))[T]?e.push(p):f.push(p);(p=ic(a,(d=0<e.length,g=0<f.length,m=function(a,b,c,m,E){var p,h,U,k=0,j="0",Y=a&&[],w=[],C=xb,l=a||g&&J.find.TAG("*",E),n=va+=null==C?1:Math.random()||0.1,u=l.length;for(E&&(xb=b==N||b||E);j!==u&&null!=(p=l[j]);j++){if(g&& 78p){h=0;for(b||p.ownerDocument==N||(La(p),c=!ma);U=f[h++];)if(U(p,b||N,c)){m.push(p);break}E&&(va=n)}d&&((p=!U&&p)&&k--,a&&Y.push(p))}if(k+=j,d&&j!==k){for(h=0;U=e[h++];)U(Y,w,b,c);if(a){if(0<k)for(;j--;)Y[j]||w[j]||(w[j]=bd.call(m));w=wb(w)}Ma.apply(m,w);E&&!a&&0<w.length&&1<k+e.length&&y.uniqueSort(m)}return E&&(va=n,xb=C),Y},d?qa(m):m))).selector=a}return p},bc=y.select=function(a,b,c,d){var g,m,e,f,p,h="function"==typeof a&&a,k=!d&&eb(a=h.selector||a);if(c=c||[],1===k.length){if(2<(m=k[0]=k[0].slice(0)).length&& 79"ID"===(e=m[0]).type&&9===b.nodeType&&ma&&J.relative[m[1].type]){if(!(b=(J.find.ID(e.matches[0].replace(Ba,Ca),b)||[])[0]))return c;h&&(b=b.parentNode);a=a.slice(m.shift().value.length)}for(g=Ab.needsContext.test(a)?0:m.length;g--&&!(e=m[g],J.relative[f=e.type]);)if((p=J.find[f])&&(d=p(e.matches[0].replace(Ba,Ca),Fb.test(m[0].type)&&Gb(b.parentNode)||b))){if(m.splice(g,1),!(a=d.length&&sb(m)))return Ma.apply(c,d),c;break}}return(h||Kb(a,k))(d,b,!ma,c,!b||Fb.test(a)&&Gb(b.parentNode)||b),c},S.sortStable= 80T.split("").sort(Lb).join("")===T,S.detectDuplicates=!!$a,La(),S.sortDetached=ra(function(a){return 1&a.compareDocumentPosition(N.createElement("fieldset"))}),ra(function(a){return a.innerHTML="<a href='#'></a>","#"===a.firstChild.getAttribute("href")})||Hb("type|href|height|width",function(a,b,c){if(!c)return a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),S.attributes&&ra(function(a){return a.innerHTML="<input/>",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})|| 81Hb("value",function(a,b,c){if(!c&&"input"===a.nodeName.toLowerCase())return a.defaultValue}),ra(function(a){return null==a.getAttribute("disabled")})||Hb("checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",function(a,b,c){var d;if(!c)return!0===a[b]?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),y);k.find=ba;k.expr=ba.selectors;k.expr[":"]=k.expr.pseudos;k.uniqueSort=k.unique=ba.uniqueSort;k.text=ba.getText; 82k.isXMLDoc=ba.isXML;k.contains=ba.contains;k.escapeSelector=ba.escape;var ab=function(a,b,c){for(var d=[],g=void 0!==c;(a=a[b])&&9!==a.nodeType;)if(1===a.nodeType){if(g&&k(a).is(c))break;d.push(a)}return d},lc=function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c},mc=k.expr.match.needsContext,nc=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;k.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?k.find.matchesSelector(d, 83a)?[d]:[]:k.find.matches(a,k.grep(b,function(a){return 1===a.nodeType}))};k.fn.extend({find:function(a){var b,c,d=this.length,g=this;if("string"!=typeof a)return this.pushStack(k(a).filter(function(){for(b=0;b<d;b++)if(k.contains(g[b],this))return!0}));c=this.pushStack([]);for(b=0;b<d;b++)k.find(a,g[b],c);return 1<d?k.uniqueSort(c):c},filter:function(a){return this.pushStack(n(this,a||[],!1))},not:function(a){return this.pushStack(n(this,a||[],!0))},is:function(a){return!!n(this,"string"==typeof a&&
vendor: 4,266 bytes, lines 84-92
84mc.test(a)?k(a):a||[],!1).length}});var oc,kd=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(k.fn.init=function(a,b,c){var d,g;if(!a)return this;if(c=c||oc,"string"==typeof a){if(!(d="<"===a[0]&&">"===a[a.length-1]&&3<=a.length?[null,a,null]:kd.exec(a))||!d[1]&&b)return!b||b.jquery?(b||c).find(a):this.constructor(b).find(a);if(d[1]){if(b=b instanceof k?b[0]:b,k.merge(this,k.parseHTML(d[1],b&&b.nodeType?b.ownerDocument||b:z,!0)),nc.test(d[1])&&k.isPlainObject(b))for(d in b)v(this[d])?this[d](b[d]):this.attr(d, 85b[d]);return this}return(g=z.getElementById(d[2]))&&(this[0]=g,this.length=1),this}return a.nodeType?(this[0]=a,this.length=1,this):v(a)?void 0!==c.ready?c.ready(a):a(k):k.makeArray(a,this)}).prototype=k.fn;oc=k(z);var ld=/^(?:parents|prev(?:Until|All))/,md={children:!0,contents:!0,next:!0,prev:!0};k.fn.extend({has:function(a){var b=k(a,this),c=b.length;return this.filter(function(){for(var a=0;a<c;a++)if(k.contains(this,b[a]))return!0})},closest:function(a,b){var c,d=0,g=this.length,m=[],e="string"!= 86typeof a&&k(a);if(!mc.test(a))for(;d<g;d++)for(c=this[d];c&&c!==b;c=c.parentNode)if(11>c.nodeType&&(e?-1<e.index(c):1===c.nodeType&&k.find.matchesSelector(c,a))){m.push(c);break}return this.pushStack(1<m.length?k.uniqueSort(m):m)},index:function(a){return a?"string"==typeof a?u.call(k(a),this[0]):u.call(this,a.jquery?a[0]:a):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(k.uniqueSort(k.merge(this.get(),k(a,b))))},addBack:function(a){return this.add(null== 87a?this.prevObject:this.prevObject.filter(a))}});k.each({parent:function(a){return(a=a.parentNode)&&11!==a.nodeType?a:null},parents:function(a){return ab(a,"parentNode")},parentsUntil:function(a,b,c){return ab(a,"parentNode",c)},next:function(a){return o(a,"nextSibling")},prev:function(a){return o(a,"previousSibling")},nextAll:function(a){return ab(a,"nextSibling")},prevAll:function(a){return ab(a,"previousSibling")},nextUntil:function(a,b,c){return ab(a,"nextSibling",c)},prevUntil:function(a,b,c){return ab(a, 88"previousSibling",c)},siblings:function(a){return lc((a.parentNode||{}).firstChild,a)},children:function(a){return lc(a.firstChild)},contents:function(a){return null!=a.contentDocument&&m(a.contentDocument)?a.contentDocument:(l(a,"template")&&(a=a.content||a),k.merge([],a.childNodes))}},function(a,b){k.fn[a]=function(c,d){var g=k.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(g=k.filter(d,g)),1<this.length&&(md[a]||k.uniqueSort(g),ld.test(a)&&g.reverse()),this.pushStack(g)}}); 89var ua=/[^\x20\t\r\n\f]+/g;k.Callbacks=function(a){var b,c,a="string"==typeof a?(b=a,c={},k.each(b.match(ua)||[],function(a,b){c[b]=!0}),c):k.extend({},a),d,g,m,e,f=[],p=[],j=-1,w=function(){e=e||a.once;for(m=d=!0;p.length;j=-1)for(g=p.shift();++j<f.length;)!1===f[j].apply(g[0],g[1])&&a.stopOnFalse&&(j=f.length,g=!1);a.memory||(g=!1);d=!1;e&&(f=g?[]:"")},C={add:function(){return f&&(g&&!d&&(j=f.length-1,p.push(g)),function Rc(b){k.each(b,function(b,c){v(c)?a.unique&&C.has(c)||f.push(c):c&&c.length&& 90"string"!==h(c)&&Rc(c)})}(arguments),g&&!d&&w()),this},remove:function(){return k.each(arguments,function(a,b){for(var c;-1<(c=k.inArray(b,f,c));)f.splice(c,1),c<=j&&j--}),this},has:function(a){return a?-1<k.inArray(a,f):0<f.length},empty:function(){return f&&(f=[]),this},disable:function(){return e=p=[],f=g="",this},disabled:function(){return!f},lock:function(){return e=p=[],g||d||(f=g=""),this},locked:function(){return!!e},fireWith:function(a,b){return e||(b=[a,(b=b||[]).slice?b.slice():b],p.push(b), 91d||w()),this},fire:function(){return C.fireWith(this,arguments),this},fired:function(){return!!m}};return C};k.extend({Deferred:function(a){var c=[["notify","progress",k.Callbacks("memory"),k.Callbacks("memory"),2],["resolve","done",k.Callbacks("once memory"),k.Callbacks("once memory"),0,"resolved"],["reject","fail",k.Callbacks("once memory"),k.Callbacks("once memory"),1,"rejected"]],d="pending",g={state:function(){return d},always:function(){return m.done(arguments).fail(arguments),this},"catch":function(a){return g.then(null, 92a)},pipe:function(){var a=arguments;return k.Deferred(function(b){k.each(c,function(c,d){var g=v(a[d[4]])&&a[d[4]];m[d[1]](function(){var a=g&&g.apply(this,arguments);
92a&&v(a.promise)?a.promise().progress(b.notify).done(b.resolve).fail(b.reject):b[d[0]+"With"](this,g?[a]:arguments)})});a=null}).promise()},then:function(a,d,g){function m(a,c,d,g){return function(){var f=this,E=arguments,p=function(){var b,p;if(!(a<e)){if((b=d.apply(f,E))===c.promise())throw new TypeError("Thenable self-resolution"); 93p=b&&("object"==typeof b||"function"==typeof b)&&b.then;v(p)?g?p.call(b,m(e,c,q,g),m(e,c,r,g)):(e++,p.call(b,m(e,c,q,g),m(e,c,r,g),m(e,c,q,c.notifyWith))):(d!==q&&(f=void 0,E=[b]),(g||c.resolveWith)(f,E))}},h=g?p:function(){try{p()}catch(b){k.Deferred.exceptionHook&&k.Deferred.exceptionHook(b,h.stackTrace),e<=a+1&&(d!==r&&(f=void 0,E=[b]),c.rejectWith(f,E))}};a?h():(k.Deferred.getStackHook&&(h.stackTrace=k.Deferred.getStackHook()),b.setTimeout(h))}}var e=0;return k.Deferred(function(b){c[0][3].add(m(0, 94b,v(g)?g:q,b.notifyWith));c[1][3].add(m(0,b,v(a)?a:q));c[2][3].add(m(0,b,v(d)?d:r))}).promise()},promise:function(a){return null!=a?k.extend(a,g):g}},m={};return k.each(c,function(a,b){var e=b[2],f=b[5];g[b[1]]=e.add;f&&e.add(function(){d=f},c[3-a][2].disable,c[3-a][3].disable,c[0][2].lock,c[0][3].lock);e.add(b[3].fire);m[b[0]]=function(){return m[b[0]+"With"](this===m?void 0:this,arguments),this};m[b[0]+"With"]=e.fireWith}),g.promise(m),a&&a.call(m,m),m},when:function(a){var b=arguments.length,c= 95b,d=Array(c),g=p.call(arguments),m=k.Deferred(),e=function(a){return function(c){d[a]=this;g[a]=1<arguments.length?p.call(arguments):c;--b||m.resolveWith(d,g)}};if(1>=b&&(s(a,m.done(e(c)).resolve,m.reject,!b),"pending"===m.state()||v(g[c]&&g[c].then)))return m.then();for(;c--;)s(g[c],e(c),m.reject);return m.promise()}});var nd=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;k.Deferred.exceptionHook=function(a,c){b.console&&b.console.warn&&a&&nd.test(a.name)&&b.console.warn("jQuery.Deferred exception: "+ 96a.message,a.stack,c)};k.readyException=function(a){b.setTimeout(function(){throw a;})};var Mb=k.Deferred();k.fn.ready=function(a){return Mb.then(a)["catch"](function(a){k.readyException(a)}),this};k.extend({isReady:!1,readyWait:1,ready:function(a){(!0===a?--k.readyWait:k.isReady)||(k.isReady=!0)!==a&&0<--k.readyWait||Mb.resolveWith(z,[k])}});k.ready.then=Mb.then;"complete"===z.readyState||"loading"!==z.readyState&&!z.documentElement.doScroll?b.setTimeout(k.ready):(z.addEventListener("DOMContentLoaded", 97x),b.addEventListener("load",x));var Da=function(a,b,c,d,g,m,e){var f=0,p=a.length,j=null==c;if("object"===h(c))for(f in g=!0,c)Da(a,b,f,c[f],!0,m,e);else if(void 0!==d&&(g=!0,v(d)||(e=!0),j&&(e?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(k(a),c)})),b))for(;f<p;f++)b(a[f],c,e?d:d.call(a[f],f,b(a[f],c)));return g?a:j?b.call(a):p?b(a[0],c):m},Kc=/^-ms-/,Lc=/-([a-z])/g,gb=function(a){return 1===a.nodeType||9===a.nodeType||!+a.nodeType};Q.uid=1;Q.prototype={cache:function(a){var b=a[this.expando]; 98return b||(b={},gb(a)&&(a.nodeType?a[this.expando]=b:Object.defineProperty(a,this.expando,{value:b,configurable:!0}))),b},set:function(a,b,c){var d,a=this.cache(a);if("string"==typeof b)a[A(b)]=c;else for(d in b)a[A(d)]=b[d];return a},get:function(a,b){return void 0===b?this.cache(a):a[this.expando]&&a[this.expando][A(b)]},access:function(a,b,c){return void 0===b||b&&"string"==typeof b&&void 0===c?this.get(a,b):(this.set(a,b,c),void 0!==c?c:b)},remove:function(a,b){var c,d=a[this.expando];if(void 0!== 99d){if(void 0!==b){c=(b=Array.isArray(b)?b.map(A):(b=A(b))in d?[b]:b.match(ua)||[]).length;for(;c--;)delete d[b[c]]}(void 0===b||k.isEmptyObject(d))&&(a.nodeType?a[this.expando]=void 0:delete a[this.expando])}},hasData:function(a){a=a[this.expando];return void 0!==a&&!k.isEmptyObject(a)}};var D=new Q,ga=new Q,Nc=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Mc=/[A-Z]/g;k.extend({hasData:function(a){return ga.hasData(a)||D.hasData(a)},data:function(a,b,c){return ga.access(a,b,c)},removeData:function(a,b){ga.remove(a, 100b)},_data:function(a,b,c){return D.access(a,b,c)},_removeData:function(a,b){D.remove(a,b)}});k.fn.extend({data:function(a,b){var c,d,g,m=this[0],e=m&&m.attributes;if(void 0===a){if(this.length&&(g=ga.get(m),1===m.nodeType&&!D.get(m,"hasDataAttrs"))){for(c=e.length;c--;)e[c]&&0===(d=e[c].name).indexOf("data-")&&(d=A(d.slice(5)),R(m,d,g[d]));D.set(m,"hasDataAttrs",!0)}return g}return"object"==typeof a?this.each(function(){ga.set(this,a)}):Da(this,function(b){var c;if(m&&void 0===b)return void 0!==(c= 101ga.get(m,a))?c:void 0!==(c=R(m,a))?c:void 0;this.each(function(){ga.set(this,a,b)})},null,b,1<arguments.length,null,!0)},removeData:function(a){return this.each(function(){ga.remove(this,a)})}});k.extend({queue:function(a,b,c){var d;
101if(a)return b=(b||"fx")+"queue",d=D.get(a,b),c&&(!d||Array.isArray(c)?d=D.access(a,b,k.makeArray(c)):d.push(c)),d||[]},dequeue:function(a,b){var b=b||"fx",c=k.queue(a,b),d=c.length,g=c.shift(),m=k._queueHooks(a,b);"inprogress"===g&&(g=c.shift(),d--);g&&("fx"===b&&c.unshift("inprogress"), 102delete m.stop,g.call(a,function(){k.dequeue(a,b)},m));!d&&m&&m.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return D.get(a,c)||D.access(a,c,{empty:k.Callbacks("once memory").add(function(){D.remove(a,[b+"queue",c])})})}});k.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.length<c?k.queue(this[0],a):void 0===b?this:this.each(function(){var c=k.queue(this,a,b);k._queueHooks(this,a);"fx"===a&&"inprogress"!==c[0]&&k.dequeue(this,a)})},dequeue:function(a){return this.each(function(){k.dequeue(this, 103a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,b){var c,d=1,g=k.Deferred(),m=this,e=this.length,f=function(){--d||g.resolveWith(m,[m])};"string"!=typeof a&&(b=a,a=void 0);for(a=a||"fx";e--;)(c=D.get(m[e],a+"queueHooks"))&&c.empty&&(d++,c.empty.add(f));return f(),g.promise(b)}});var pc=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,cb=RegExp("^(?:([+-])=|)("+pc+")([a-z%]*)$","i"),ya=["Top","Right","Bottom","Left"],Ta=z.documentElement,Va=function(a){return k.contains(a.ownerDocument, 104a)},od={composed:!0};Ta.getRootNode&&(Va=function(a){return k.contains(a.ownerDocument,a)||a.getRootNode(od)===a.ownerDocument});var mb=function(a,b){return"none"===(a=b||a).style.display||""===a.style.display&&Va(a)&&"none"===k.css(a,"display")},Tb={};k.fn.extend({show:function(){return B(this,!0)},hide:function(){return B(this)},toggle:function(a){return"boolean"==typeof a?a?this.show():this.hide():this.each(function(){mb(this)?k(this).show():k(this).hide()})}});var Ua,Bb,hb=/^(?:checkbox|radio)$/i, 105Ub=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Vb=/^$|^module$|\/(?:java|ecma)script/i;Ua=z.createDocumentFragment().appendChild(z.createElement("div"));(Bb=z.createElement("input")).setAttribute("type","radio");Bb.setAttribute("checked","checked");Bb.setAttribute("name","t");Ua.appendChild(Bb);t.checkClone=Ua.cloneNode(!0).cloneNode(!0).lastChild.checked;Ua.innerHTML="<textarea>x</textarea>";t.noCloneChecked=!!Ua.cloneNode(!0).lastChild.defaultValue;Ua.innerHTML="<option></option>";t.option=!!Ua.lastChild; 106var ka={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};ka.tbody=ka.tfoot=ka.colgroup=ka.caption=ka.thead;ka.th=ka.td;t.option||(ka.optgroup=ka.option=[1,"<select multiple='multiple'>","</select>"]);var Pc=/<|&#?\w+;/,pd=/^key/,qd=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,qc=/^([^.]*)(?:\.(.+)|)/;k.event={global:{},add:function(a,b,c,d,g){var m, 107e,f,p,h,j,w,C,l,n;h=D.get(a);if(gb(a)){c.handler&&(c=(m=c).handler,g=m.selector);g&&k.find.matchesSelector(Ta,g);c.guid||(c.guid=k.guid++);(p=h.events)||(p=h.events=Object.create(null));(e=h.handle)||(e=h.handle=function(b){return"undefined"!=typeof k&&k.event.triggered!==b.type?k.event.dispatch.apply(a,arguments):void 0});for(h=(b=(b||"").match(ua)||[""]).length;h--;)l=n=(f=qc.exec(b[h])||[])[1],f=(f[2]||"").split(".").sort(),l&&(w=k.event.special[l]||{},l=(g?w.delegateType:w.bindType)||l,w=k.event.special[l]|| 108{},j=k.extend({type:l,origType:n,data:d,handler:c,guid:c.guid,selector:g,needsContext:g&&k.expr.match.needsContext.test(g),namespace:f.join(".")},m),(C=p[l])||((C=p[l]=[]).delegateCount=0,w.setup&&!1!==w.setup.call(a,d,f,e)||a.addEventListener&&a.addEventListener(l,e)),w.add&&(w.add.call(a,j),j.handler.guid||(j.handler.guid=c.guid)),g?C.splice(C.delegateCount++,0,j):C.push(j),k.event.global[l]=!0)}},remove:function(a,b,c,d,g){var m,e,f,p,h,j,w,C,l,n,u,Z=D.hasData(a)&&D.get(a);if(Z&&(p=Z.events)){for(h= 109(b=(b||"").match(ua)||[""]).length;h--;)if(l=u=(f=qc.exec(b[h])||[])[1],n=(f[2]||"").split(".").sort(),l){w=k.event.special[l]||{};C=p[l=(d?w.delegateType:w.bindType)||l]||[];f=f[2]&&RegExp("(^|\\.)"+n.join("\\.(?:.*\\.|)")+"(\\.|$)");for(e=m=C.length;m--;)j=C[m],!g&&u!==j.origType||c&&c.guid!==j.guid||f&&!f.test(j.namespace)||d&&d!==j.selector&&("**"!==d||!j.selector)||(C.splice(m,1),j.selector&&C.delegateCount--,w.remove&&w.remove.call(a,j));e&&!C.length&&(w.teardown&&!1!==w.teardown.call(a,n,Z.handle)|| 110k.removeEvent(a,l,Z.handle),delete p[l])}else for(l in p)k.event.remove(a,l+b[h],c,d,!0);k.isEmptyObject(p)&&D.remove(a,"handle events")}},dispatch:function(a){var b,c,d,g,m,e,f=Array(arguments.length),p=k.event.fix(a);c=(D.get(this,"events")||Object.create(null))[p.type]||[];var h=k.event.special[p.type]||{};f[0]=p;for(b=1;b<arguments.length;b++)f[b]=arguments[b];if(p.delegateTarget=this,!h.preDispatch||!1!==h.preDispatch.call(this,p)){e=k.event.handlers.call(this,p,c);for(b=0;(g=e[b++])&&!p.isPropagationStopped();){p.currentTarget= 111g.elem;for(c=0;(m=g.handlers[c++])&&!p.isImmediatePropagationStopped();)p.rnamespace&&!1!==m.namespace&&!p.rnamespace.test(m.namespace)||(p.handleObj=m,p.data=m.data,void 0!==(d=((k.event.special[m.origType]||{}).handle||m.handler).apply(g.elem,f))&&!1===(p.result=d)&&(p.preventDefault(),p.stopPropagation()))}return h.postDispatch&&h.postDispatch.call(this,p),p.result}},handlers:function(a,b){var c,d,g,m,e,f=[],p=b.delegateCount,h=a.target;if(p&&h.nodeType&&!("click"===a.type&&1<=a.button))for(;h!== 112this;h=h.parentNode||this)if(1===h.nodeType&&("click"!==a.type||!0!==h.disabled)){m=[];e={};for(c=0;c<p;c++)void 0===e[g=(d=b[c]).selector+" "]&&(e[g]=d.needsContext?-1<k(g,this).index(h):k.find(g,this,null,[h]).length),e[g]&&m.push(d);m.length&&f.push({elem:h,handlers:m})}return h=this,p<b.length&&f.push({elem:h,handlers:b.slice(p)}),f},addProp:function(a,b){Object.defineProperty(k.Event.prototype,a,{enumerable:!0,configurable:!0,get:v(b)?function(){if(this.originalEvent)return b(this.originalEvent)}: 113function(){if(this.originalEvent)return this.originalEvent[a]},set:function(b){Object.defineProperty(this,a,{enumerable:!0,configurable:!0,writable:!0,value:b})}})},fix:function(a){return a[k.expando]?a:new k.Event(a)},special:{load:{noBubble:!0},click:{setup:function(a){a=this||a;return hb.test(a.type)&&a.click&&l(a,"input")&&Fa(a,"click",G),!1},trigger:function(a){a=this||a;return hb.test(a.type)&&a.click&&l(a,"input")&&Fa(a,"click"),!0},_default:function(a){a=a.target;return hb.test(a.type)&&a.click&& 114l(a,"input")&&D.get(a,"click")||l(a,"a")}},beforeunload:{postDispatch:function(a){void 0!==a.result&&a.originalEvent&&(a.originalEvent.returnValue=a.result)}}}};k.removeEvent=function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c)};k.Event=function(a,b){if(!(this instanceof k.Event))return new k.Event(a,b);a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||void 0===a.defaultPrevented&&!1===a.returnValue?G:V,this.target=a.target&&3===a.target.nodeType? 115a.target.parentNode:a.target,this.currentTarget=a.currentTarget,this.relatedTarget=a.relatedTarget):this.type=a;b&&k.extend(this,b);this.timeStamp=a&&a.timeStamp||Date.now();this[k.expando]=!0};k.Event.prototype={constructor:k.Event,isDefaultPrevented:V,isPropagationStopped:V,isImmediatePropagationStopped:V,isSimulated:!1,preventDefault:function(){var a=this.originalEvent;this.isDefaultPrevented=G;a&&!this.isSimulated&&a.preventDefault()},stopPropagation:function(){var a=this.originalEvent;this.isPropagationStopped= 116G;a&&!this.isSimulated&&a.stopPropagation()},stopImmediatePropagation:function(){var a=this.originalEvent;this.isImmediatePropagationStopped=G;a&&!this.isSimulated&&a.stopImmediatePropagation();this.stopPropagation()}};k.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, 117screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(a){var b=a.button;
vendor: 10,968 bytes, lines 117-138
117return null==a.which&&pd.test(a.type)?null!=a.charCode?a.charCode:a.keyCode:!a.which&&void 0!==b&&qd.test(a.type)?1&b?1:2&b?3:4&b?2:0:a.which}},k.event.addProp);k.each({focus:"focusin",blur:"focusout"},function(a,b){k.event.special[a]={setup:function(){return Fa(this,a,Wa),!1},trigger:function(){return Fa(this,a),!0},delegateType:b}});k.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover", 118pointerleave:"pointerout"},function(a,b){k.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c,d=a.relatedTarget,g=a.handleObj;return d&&(d===this||k.contains(this,d))||(a.type=g.origType,c=g.handler.apply(this,arguments),a.type=b),c}}});k.fn.extend({on:function(a,b,c,d){return wa(this,a,b,c,d)},one:function(a,b,c,d){return wa(this,a,b,c,d,1)},off:function(a,b,c){var d,g;if(a&&a.preventDefault&&a.handleObj)return d=a.handleObj,k(a.delegateTarget).off(d.namespace?d.origType+"."+d.namespace: 119d.origType,d.selector,d.handler),this;if("object"==typeof a){for(g in a)this.off(g,b,a[g]);return this}return!1!==b&&"function"!=typeof b||(c=b,b=void 0),!1===c&&(c=V),this.each(function(){k.event.remove(this,a,c,b)})}});var rd=/<script|<style|<link/i,Qc=/checked\s*(?:[^=]|=\s*.checked.)/i,Sc=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;k.extend({htmlPrefilter:function(a){return a},clone:function(a,b,c){var d,g,m,e,f,p,h,j=a.cloneNode(!0),w=Va(a);if(!t.noCloneChecked&&!(1!==a.nodeType&&11!==a.nodeType|| 120k.isXMLDoc(a))){e=M(j);d=0;for(g=(m=M(a)).length;d<g;d++)f=m[d],p=e[d],void 0,"input"===(h=p.nodeName.toLowerCase())&&hb.test(f.type)?p.checked=f.checked:"input"!==h&&"textarea"!==h||(p.defaultValue=f.defaultValue)}if(b)if(c){m=m||M(a);e=e||M(j);d=0;for(g=m.length;d<g;d++)Ga(m[d],e[d])}else Ga(a,j);return 0<(e=M(j,"script")).length&&Oa(e,!w&&M(a,"script")),j},cleanData:function(a){for(var b,c,d,g=k.event.special,m=0;void 0!==(c=a[m]);m++)if(gb(c)){if(b=c[D.expando]){if(b.events)for(d in b.events)g[d]? 121k.event.remove(c,d):k.removeEvent(c,d,b.handle);c[D.expando]=void 0}c[ga.expando]&&(c[ga.expando]=void 0)}}});k.fn.extend({detach:function(a){return Ha(this,a,!0)},remove:function(a){return Ha(this,a)},text:function(a){return Da(this,function(a){return void 0===a?k.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=a)})},null,a,arguments.length)},append:function(){return la(this,arguments,function(a){1!==this.nodeType&&11!==this.nodeType&& 1229!==this.nodeType||Xa(this,a).appendChild(a)})},prepend:function(){return la(this,arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=Xa(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return la(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return la(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},empty:function(){for(var a,b=0;null!=(a=this[b]);b++)1=== 123a.nodeType&&(k.cleanData(M(a,!1)),a.textContent="");return this},clone:function(a,b){return a=null!=a&&a,b=null==b?a:b,this.map(function(){return k.clone(this,a,b)})},html:function(a){return Da(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a&&1===b.nodeType)return b.innerHTML;if("string"==typeof a&&!rd.test(a)&&!ka[(Ub.exec(a)||["",""])[1].toLowerCase()]){a=k.htmlPrefilter(a);try{for(;c<d;c++)1===(b=this[c]||{}).nodeType&&(k.cleanData(M(b,!1)),b.innerHTML=a);b=0}catch(g){}}b&&this.empty().append(a)}, 124null,a,arguments.length)},replaceWith:function(){var a=[];return la(this,arguments,function(b){var c=this.parentNode;0>k.inArray(this,a)&&(k.cleanData(M(this)),c&&c.replaceChild(b,this))},a)}});k.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){k.fn[a]=function(a){for(var c=[],d=k(a),g=d.length-1,m=0;m<=g;m++)a=m===g?this:this.clone(!0),k(d[m])[b](a),C.apply(c,a.get());return this.pushStack(c)}});var Cb=RegExp("^("+pc+")(?!px)[a-z%]+$", 125"i"),nb=function(a){var c=a.ownerDocument.defaultView;return c&&c.opener||(c=b),c.getComputedStyle(a)},rc=function(a,b,c){var d,g={};for(d in b)g[d]=a.style[d],a.style[d]=b[d];for(d in c=c.call(a),b)a.style[d]=g[d];return c},Tc=RegExp(ya.join("|"),"i"),ib=function(){if(na){Nb.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0";na.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%"; 126Ta.appendChild(Nb).appendChild(na);var a=b.getComputedStyle(na);sc="1%"!==a.top;tc=12===Math.round(parseFloat(a.marginLeft));na.style.right="60%";uc=36===Math.round(parseFloat(a.right));vc=36===Math.round(parseFloat(a.width));na.style.position="absolute";wc=12===Math.round(parseFloat(na.offsetWidth/3));Ta.removeChild(Nb);na=null}},sc,vc,wc,uc,Ob,tc,Nb=z.createElement("div"),na=z.createElement("div");na.style&&(na.style.backgroundClip="content-box",na.cloneNode(!0).style.backgroundClip="",t.clearCloneStyle= 127"content-box"===na.style.backgroundClip,k.extend(t,{boxSizingReliable:function(){return ib(),vc},pixelBoxStyles:function(){return ib(),uc},pixelPosition:function(){return ib(),sc},reliableMarginLeft:function(){return ib(),tc},scrollboxSize:function(){return ib(),wc},reliableTrDimensions:function(){var a,c,d,g;return null==Ob&&(a=z.createElement("table"),c=z.createElement("tr"),d=z.createElement("div"),a.style.cssText="position:absolute;left:-11111px",c.style.height="1px",d.style.height="9px",Ta.appendChild(a).appendChild(c).appendChild(d), 128g=b.getComputedStyle(c),Ob=3<parseInt(g.height),Ta.removeChild(a)),Ob}}));!0;var Yb=["Webkit","Moz","ms"],Xb=z.createElement("div").style,Wb={},sd=/^(none|table(?!-c[ea]).+)/,xc=/^--/,td={position:"absolute",visibility:"hidden",display:"block"},yc={letterSpacing:"0",fontWeight:"400"};k.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=aa(a,"opacity");return""===c?"1":c}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0, 129gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(a,b,c,d){if(a&&3!==a.nodeType&&8!==a.nodeType&&a.style){var g,m,e,f=A(b),p=xc.test(b),h=a.style;if(p||(b=ta(f)),e=k.cssHooks[b]||k.cssHooks[f],void 0===c)return e&&"get"in e&&void 0!==(g=e.get(a,!1,d))?g:h[b];"string"===(m=typeof c)&&(g=cb.exec(c))&&g[1]&&(c=O(a,b,g),m="number");null!=c&&c==c&&("number"!==m|| 130p||(c+=g&&g[3]||(k.cssNumber[f]?"":"px")),t.clearCloneStyle||""!==c||0!==b.indexOf("background")||(h[b]="inherit"),e&&"set"in e&&void 0===(c=e.set(a,c,d))||(p?h.setProperty(b,c):h[b]=c))}},css:function(a,b,c,d){var g,m,e,f=A(b);return xc.test(b)||(b=ta(f)),(e=k.cssHooks[b]||k.cssHooks[f])&&"get"in e&&(g=e.get(a,!0,c)),void 0===g&&(g=aa(a,b,d)),"normal"===g&&b in yc&&(g=yc[b]),""===c||c?(m=parseFloat(g),!0===c||isFinite(m)?m||0:g):g}});k.each(["height","width"],function(a,b){k.cssHooks[b]={get:function(a, 131c,d){if(c)return!sd.test(k.css(a,"display"))||a.getClientRects().length&&a.getBoundingClientRect().width?oa(a,b,d):rc(a,td,function(){return oa(a,b,d)})},set:function(a,c,d){var g,m=nb(a),e=!t.scrollboxSize()&&"absolute"===m.position,f=(e||d)&&"border-box"===k.css(a,"boxSizing",!1,m),d=d?xa(a,b,d,f,m):0;return f&&e&&(d-=Math.ceil(a["offset"+b[0].toUpperCase()+b.slice(1)]-parseFloat(m[b])-xa(a,b,"border",!1,m)-0.5)),d&&(g=cb.exec(c))&&"px"!==(g[3]||"px")&&(a.style[b]=c,c=k.css(a,b)),Ia(0,c,d)}}}); 132k.cssHooks.marginLeft=H(t.reliableMarginLeft,function(a,b){if(b)return(parseFloat(aa(a,"marginLeft"))||a.getBoundingClientRect().left-rc(a,{marginLeft:0},function(){return a.getBoundingClientRect().left}))+"px"});k.each({margin:"",padding:"",border:"Width"},function(a,b){k.cssHooks[a+b]={expand:function(c){for(var d=0,g={},c="string"==typeof c?c.split(" "):[c];4>d;d++)g[a+ya[d]+b]=c[d]||c[d-2]||c[0];return g}};"margin"!==a&&(k.cssHooks[a+b].set=Ia)});k.fn.extend({css:function(a,b){return Da(this, 133function(a,b,c){var d,g={},m=0;if(Array.isArray(b)){c=nb(a);for(d=b.length;m<d;m++)g[b[m]]=k.css(a,b[m],!1,c);return g}return void 0!==c?k.style(a,b,c):k.css(a,b)},a,b,1<arguments.length)}});((k.Tween=F).prototype={constructor:F,init:function(a,b,c,d,g,m){this.elem=a;this.prop=c;this.easing=g||k.easing._default;this.options=b;this.start=this.now=this.cur();this.end=d;this.unit=m||(k.cssNumber[c]?"":"px")},cur:function(){var a=F.propHooks[this.prop];return a&&a.get?a.get(this):F.propHooks._default.get(this)}, 134run:function(a){var b,c=F.propHooks[this.prop];return this.options.duration?this.pos=b=k.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):this.pos=b=a,this.now=(this.end-this.start)*b+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),c&&c.set?c.set(this):F.propHooks._default.set(this),this}}).init.prototype=F.prototype;(F.propHooks={_default:{get:function(a){var b;return 1!==a.elem.nodeType||null!=a.elem[a.prop]&&null==a.elem.style[a.prop]?a.elem[a.prop]: 135(b=k.css(a.elem,a.prop,""))&&"auto"!==b?b:0},set:function(a){k.fx.step[a.prop]?k.fx.step[a.prop](a):1!==a.elem.nodeType||!k.cssHooks[a.prop]&&null==a.elem.style[ta(a.prop)]?a.elem[a.prop]=a.now:k.style(a.elem,a.prop,a.now+a.unit)}}}).scrollTop=F.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}};k.easing={linear:function(a){return a},swing:function(a){return 0.5-Math.cos(a*Math.PI)/2},_default:"swing"};k.fx=F.prototype.init;k.fx.step={};var Ya,ob,bb, 136zc,ud=/^(?:toggle|show|hide)$/,vd=/queueHooks$/;k.Animation=k.extend(ha,{tweeners:{"*":[function(a,b){var c=this.createTween(a,b);return O(c.elem,a,cb.exec(b),c),c}]},tweener:function(a,b){v(a)?(b=a,a=["*"]):a=a.match(ua);for(var c,d=0,g=a.length;d<g;d++)c=a[d],ha.tweeners[c]=ha.tweeners[c]||[],ha.tweeners[c].unshift(b)},prefilters:[function(a,b,c){var d,g,m,e,f,p,h,j="width"in b||"height"in b,w=this,C={},l=a.style,n=a.nodeType&&mb(a),u=D.get(a,"fxshow");for(d in c.queue||(null==(e=k._queueHooks(a, 137"fx")).unqueued&&(e.unqueued=0,f=e.empty.fire,e.empty.fire=function(){e.unqueued||f()}),e.unqueued++,w.always(function(){w.always(function(){e.unqueued--;k.queue(a,"fx").length||e.empty.fire()})})),b)if(g=b[d],ud.test(g)){if(delete b[d],m=m||"toggle"===g,g===(n?"hide":"show")){if("show"!==g||!u||void 0===u[d])continue;n=!0}C[d]=u&&u[d]||k.style(a,d)}if((b=!k.isEmptyObject(b))||!k.isEmptyObject(C))for(d in j&&1===a.nodeType&&(c.overflow=[l.overflow,l.overflowX,l.overflowY],null==(p=u&&u.display)&& 138(p=D.get(a,"display")),"none"===(h=k.css(a,"display"))&&(p?h=p:(B([a],!0),p=a.style.display||p,h=k.css(a,"display"),B([a]))),("inline"===h||"inline-block"===h&&null!=p)&&"none"===k.css(a,"float")&&(b||(w.done(function(){l.display=p}),null==p&&(h=l.display,p="none"===h?"":h)),l.display="inline-block")),c.overflow&&(l.overflow="hidden",
vendor: 9,412 bytes, lines 138-156
138w.always(function(){l.overflow=c.overflow[0];l.overflowX=c.overflow[1];l.overflowY=c.overflow[2]})),b=!1,C)b||(u?"hidden"in u&&(n=u.hidden):u=D.access(a,"fxshow",{display:p}), 139m&&(u.hidden=!n),n&&B([a],!0),w.done(function(){for(d in n||B([a]),D.remove(a,"fxshow"),C)k.style(a,d,C[d])})),b=qb(n?u[d]:0,d,w),d in u||(u[d]=b.start,n&&(b.end=b.start,b.start=0))}],prefilter:function(a,b){b?ha.prefilters.unshift(a):ha.prefilters.push(a)}});k.speed=function(a,b,c){var d=a&&"object"==typeof a?k.extend({},a):{complete:c||!c&&b||v(a)&&a,duration:a,easing:c&&b||b&&!v(b)&&b};return k.fx.off?d.duration=0:"number"!=typeof d.duration&&(d.duration in k.fx.speeds?d.duration=k.fx.speeds[d.duration]: 140d.duration=k.fx.speeds._default),null!=d.queue&&!0!==d.queue||(d.queue="fx"),d.old=d.complete,d.complete=function(){v(d.old)&&d.old.call(this);d.queue&&k.dequeue(this,d.queue)},d};k.fn.extend({fadeTo:function(a,b,c,d){return this.filter(mb).css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){var g=k.isEmptyObject(a),m=k.speed(b,c,d),b=function(){var b=ha(this,k.extend({},a),m);(g||D.get(this,"finish"))&&b.stop(!0)};return b.finish=b,g||!1===m.queue?this.each(b):this.queue(m.queue, 141b)},stop:function(a,b,c){var d=function(a){var b=a.stop;delete a.stop;b(c)};return"string"!=typeof a&&(c=b,b=a,a=void 0),b&&this.queue(a||"fx",[]),this.each(function(){var b=!0,g=null!=a&&a+"queueHooks",m=k.timers,e=D.get(this);if(g)e[g]&&e[g].stop&&d(e[g]);else for(g in e)e[g]&&e[g].stop&&vd.test(g)&&d(e[g]);for(g=m.length;g--;)m[g].elem!==this||null!=a&&m[g].queue!==a||(m[g].anim.stop(c),b=!1,m.splice(g,1));!b&&c||k.dequeue(this,a)})},finish:function(a){return!1!==a&&(a=a||"fx"),this.each(function(){var b, 142c=D.get(this),d=c[a+"queue"];b=c[a+"queueHooks"];var g=k.timers,m=d?d.length:0;c.finish=!0;k.queue(this,a,[]);b&&b.stop&&b.stop.call(this,!0);for(b=g.length;b--;)g[b].elem===this&&g[b].queue===a&&(g[b].anim.stop(!0),g.splice(b,1));for(b=0;b<m;b++)d[b]&&d[b].finish&&d[b].finish.call(this);delete c.finish})}});k.each(["toggle","show","hide"],function(a,b){var c=k.fn[b];k.fn[b]=function(a,d,g){return null==a||"boolean"==typeof a?c.apply(this,arguments):this.animate(Ja(b,!0),a,d,g)}});k.each({slideDown:Ja("show"), 143slideUp:Ja("hide"),slideToggle:Ja("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){k.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}});k.timers=[];k.fx.tick=function(){var a,b=0,c=k.timers;for(Ya=Date.now();b<c.length;b++)(a=c[b])()||c[b]!==a||c.splice(b--,1);c.length||k.fx.stop();Ya=void 0};k.fx.timer=function(a){k.timers.push(a);k.fx.start()};k.fx.interval=13;k.fx.start=function(){ob||(ob=!0,pa())};k.fx.stop=function(){ob=null};k.fx.speeds= 144{slow:600,fast:200,_default:400};k.fn.delay=function(a,c){return a=k.fx&&k.fx.speeds[a]||a,c=c||"fx",this.queue(c,function(c,d){var g=b.setTimeout(c,a);d.stop=function(){b.clearTimeout(g)}})};bb=z.createElement("input");zc=z.createElement("select").appendChild(z.createElement("option"));bb.type="checkbox";t.checkOn=""!==bb.value;t.optSelected=zc.selected;(bb=z.createElement("input")).value="t";bb.type="radio";t.radioValue="t"===bb.value;var Ac,jb=k.expr.attrHandle;k.fn.extend({attr:function(a,b){return Da(this, 145k.attr,a,b,1<arguments.length)},removeAttr:function(a){return this.each(function(){k.removeAttr(this,a)})}});k.extend({attr:function(a,b,c){var d,g,m=a.nodeType;if(3!==m&&8!==m&&2!==m)return"undefined"==typeof a.getAttribute?k.prop(a,b,c):(1===m&&k.isXMLDoc(a)||(g=k.attrHooks[b.toLowerCase()]||(k.expr.match.bool.test(b)?Ac:void 0)),void 0!==c?null===c?void k.removeAttr(a,b):g&&"set"in g&&void 0!==(d=g.set(a,c,b))?d:(a.setAttribute(b,c+""),c):g&&"get"in g&&null!==(d=g.get(a,b))?d:null==(d=k.find.attr(a, 146b))?void 0:d)},attrHooks:{type:{set:function(a,b){if(!t.radioValue&&"radio"===b&&l(a,"input")){var c=a.value;return a.setAttribute("type",b),c&&(a.value=c),b}}}},removeAttr:function(a,b){var c,d=0,g=b&&b.match(ua);if(g&&1===a.nodeType)for(;c=g[d++];)a.removeAttribute(c)}});Ac={set:function(a,b,c){return!1===b?k.removeAttr(a,c):a.setAttribute(c,c),c}};k.each(k.expr.match.bool.source.match(/\w+/g),function(a,b){var c=jb[b]||k.find.attr;jb[b]=function(a,b,d){var g,m,e=b.toLowerCase();return d||(m=jb[e], 147jb[e]=g,g=null!=c(a,b,d)?e:null,jb[e]=m),g}});var wd=/^(?:input|select|textarea|button)$/i,xd=/^(?:a|area)$/i;k.fn.extend({prop:function(a,b){return Da(this,k.prop,a,b,1<arguments.length)},removeProp:function(a){return this.each(function(){delete this[k.propFix[a]||a]})}});k.extend({prop:function(a,b,c){var d,g,m=a.nodeType;if(3!==m&&8!==m&&2!==m)return 1===m&&k.isXMLDoc(a)||(b=k.propFix[b]||b,g=k.propHooks[b]),void 0!==c?g&&"set"in g&&void 0!==(d=g.set(a,c,b))?d:a[b]=c:g&&"get"in g&&null!==(d=g.get(a, 148b))?d:a[b]},propHooks:{tabIndex:{get:function(a){var b=k.find.attr(a,"tabindex");return b?parseInt(b,10):wd.test(a.nodeName)||xd.test(a.nodeName)&&a.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}});t.optSelected||(k.propHooks.selected={get:function(a){a=a.parentNode;return a&&a.parentNode&&a.parentNode.selectedIndex,null},set:function(a){a=a.parentNode;a&&(a.selectedIndex,a.parentNode&&a.parentNode.selectedIndex)}});k.each("tabIndex readOnly maxLength cellSpacing cellPadding rowSpan colSpan useMap frameBorder contentEditable".split(" "), 149function(){k.propFix[this.toLowerCase()]=this});k.fn.extend({addClass:function(a){var b,c,d,g,m,e,f,p=0;if(v(a))return this.each(function(b){k(this).addClass(a.call(this,b,X(this)))});if((b=Ka(a)).length)for(;c=this[p++];)if(g=X(c),d=1===c.nodeType&&" "+za(g)+" "){for(e=0;m=b[e++];)0>d.indexOf(" "+m+" ")&&(d+=m+" ");g!==(f=za(d))&&c.setAttribute("class",f)}return this},removeClass:function(a){var b,c,d,g,m,e,f,p=0;if(v(a))return this.each(function(b){k(this).removeClass(a.call(this,b,X(this)))}); 150if(!arguments.length)return this.attr("class","");if((b=Ka(a)).length)for(;c=this[p++];)if(g=X(c),d=1===c.nodeType&&" "+za(g)+" "){for(e=0;m=b[e++];)for(;-1<d.indexOf(" "+m+" ");)d=d.replace(" "+m+" "," ");g!==(f=za(d))&&c.setAttribute("class",f)}return this},toggleClass:function(a,b){var c=typeof a,d="string"===c||Array.isArray(a);return"boolean"==typeof b&&d?b?this.addClass(a):this.removeClass(a):v(a)?this.each(function(c){k(this).toggleClass(a.call(this,c,X(this),b),b)}):this.each(function(){var b, 151g,m,e;if(d){g=0;m=k(this);for(e=Ka(a);b=e[g++];)m.hasClass(b)?m.removeClass(b):m.addClass(b)}else void 0!==a&&"boolean"!==c||((b=X(this))&&D.set(this,"__className__",b),this.setAttribute&&this.setAttribute("class",b||!1===a?"":D.get(this,"__className__")||""))})},hasClass:function(a){for(var b,c=0,a=" "+a+" ";b=this[c++];)if(1===b.nodeType&&-1<(" "+za(X(b))+" ").indexOf(a))return!0;return!1}});var yd=/\r/g;k.fn.extend({val:function(a){var b,c,d,g=this[0];return arguments.length?(d=v(a),this.each(function(c){var g; 1521===this.nodeType&&(null==(g=d?a.call(this,c,k(this).val()):a)?g="":"number"==typeof g?g+="":Array.isArray(g)&&(g=k.map(g,function(a){return null==a?"":a+""})),(b=k.valHooks[this.type]||k.valHooks[this.nodeName.toLowerCase()])&&"set"in b&&void 0!==b.set(this,g,"value")||(this.value=g))})):g?(b=k.valHooks[g.type]||k.valHooks[g.nodeName.toLowerCase()])&&"get"in b&&void 0!==(c=b.get(g,"value"))?c:"string"==typeof(c=g.value)?c.replace(yd,""):null==c?"":c:void 0}});k.extend({valHooks:{option:{get:function(a){var b= 153k.find.attr(a,"value");return null!=b?b:za(k.text(a))}},select:{get:function(a){var b,c,d=a.options,g=a.selectedIndex,m="select-one"===a.type,e=m?null:[],f=m?g+1:d.length;for(c=0>g?f:m?g:0;c<f;c++)if(((b=d[c]).selected||c===g)&&!b.disabled&&(!b.parentNode.disabled||!l(b.parentNode,"optgroup"))){if(a=k(b).val(),m)return a;e.push(a)}return e},set:function(a,b){for(var c,d,g=a.options,m=k.makeArray(b),e=g.length;e--;)((d=g[e]).selected=-1<k.inArray(k.valHooks.option.get(d),m))&&(c=!0);return c||(a.selectedIndex= 154-1),m}}}});k.each(["radio","checkbox"],function(){k.valHooks[this]={set:function(a,b){if(Array.isArray(b))return a.checked=-1<k.inArray(k(a).val(),b)}};t.checkOn||(k.valHooks[this].get=function(a){return null===a.getAttribute("value")?"on":a.value})});t.focusin="onfocusin"in b;var Bc=/^(?:focusinfocus|focusoutblur)$/,Cc=function(a){a.stopPropagation()};k.extend(k.event,{trigger:function(a,c,d,g){var m,e,f,p,h,j,w,C,l=[d||z],n=Aa.call(a,"type")?a.type:a;m=Aa.call(a,"namespace")?a.namespace.split("."): 155[];if(e=C=f=d=d||z,3!==d.nodeType&&8!==d.nodeType&&!Bc.test(n+k.event.triggered)&&(-1<n.indexOf(".")&&(n=(m=n.split(".")).shift(),m.sort()),h=0>n.indexOf(":")&&"on"+n,(a=a[k.expando]?a:new k.Event(n,"object"==typeof a&&a)).isTrigger=g?2:3,a.namespace=m.join("."),a.rnamespace=a.namespace?RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,a.result=void 0,a.target||(a.target=d),c=null==c?[a]:k.makeArray(c,[a]),w=k.event.special[n]||{},g||!w.trigger||!1!==w.trigger.apply(d,c))){if(!g&&!w.noBubble&& 156!ja(d)){p=w.delegateType||n;for(Bc.test(p+n)||(e=e.parentNode);e;e=e.parentNode)l.push(e),f=e;f===(d.ownerDocument||z)&&l.push(f.defaultView||f.parentWindow||b)}for(m=0;(e=l[m++])&&!a.isPropagationStopped();)C=e,a.type=1<m?p:w.bindType||n,(j=(D.get(e,"events")||Object.create(null))[a.type]&&D.get(e,"handle"))&&j.apply(e,c),(j=h&&e[h])&&j.apply&&gb(e)&&(a.result=j.apply(e,c),!1===a.result&&a.preventDefault());return a.type=n,g||a.isDefaultPrevented()||w._default&&!1!==w._default.apply(l.pop(),c)||
157!gb(d)||h&&v(d[n])&&!ja(d)&&((f=d[h])&&(d[h]=null),k.event.triggered=n,a.isPropagationStopped()&&C.addEventListener(n,Cc),d[n](),a.isPropagationStopped()&&C.removeEventListener(n,Cc),k.event.triggered=void 0,f&&(d[h]=f)),a.result}},simulate:function(a,b,c){a=k.extend(new k.Event,c,{type:a,isSimulated:!0});k.event.trigger(a,null,b)}});k.fn.extend({trigger:function(a,b){return this.each(function(){k.event.trigger(a,b,this)})},triggerHandler:function(a,b){var c=this[0];if(c)return k.event.trigger(a, 158b,c,!0)}});t.focusin||k.each({focus:"focusin",blur:"focusout"},function(a,b){var c=function(a){k.event.simulate(b,a.target,k.event.fix(a))};k.event.special[b]={setup:function(){var d=this.ownerDocument||this.document||this,g=D.access(d,b);g||d.addEventListener(a,c,!0);D.access(d,b,(g||0)+1)},teardown:function(){var d=this.ownerDocument||this.document||this,g=D.access(d,b)-1;g?D.access(d,b,g):(d.removeEventListener(a,c,!0),D.remove(d,b))}}});var kb=b.location,Dc=Date.now(),Pb=/\?/;k.parseXML=function(a){var c; 159if(!a||"string"!=typeof a)return null;try{c=(new b.DOMParser).parseFromString(a,"text/xml")}catch(d){c=void 0}return c&&!c.getElementsByTagName("parsererror").length||k.error("Invalid XML: "+a),c};var Uc=/\[\]$/,Ec=/\r?\n/g,zd=/^(?:submit|button|image|reset|file)$/i,Ad=/^(?:input|select|textarea|keygen)/i;k.param=function(a,b){var c,d=[],g=function(a,b){var c=v(b)?b():b;d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(null==c?"":c)};if(null==a)return"";if(Array.isArray(a)||a.jquery&&!k.isPlainObject(a))k.each(a, 160function(){g(this.name,this.value)});else for(c in a)Pa(c,a[c],b,g);return d.join("&")};k.fn.extend({serialize:function(){return k.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=k.prop(this,"elements");return a?k.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!k(this).is(":disabled")&&Ad.test(this.nodeName)&&!zd.test(a)&&(this.checked||!hb.test(a))}).map(function(a,b){var c=k(this).val();return null==c?null:Array.isArray(c)?k.map(c, 161function(a){return{name:b.name,value:a.replace(Ec,"\r\n")}}):{name:b.name,value:c.replace(Ec,"\r\n")}}).get()}});var Bd=/%20/g,Cd=/#.*$/,Dd=/([?&])_=[^&]*/,Ed=/^(.*?):[ \t]*([^\r\n]*)$/gm,Fd=/^(?:GET|HEAD)$/,Gd=/^\/\//,Fc={},Db={},Gc="*/".concat("*"),Qb=z.createElement("a");Qb.href=kb.href;k.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:kb.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(kb.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8", 162accepts:{"*":Gc,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":k.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,b){return b?d(d(a,k.ajaxSettings),b):d(k.ajaxSettings,a)},ajaxPrefilter:a(Fc),ajaxTransport:a(Db),ajax:function(a, 163d){function g(a,c,d,p){var j,l,n,E,ea=c;if(!w){w=!0;h&&b.clearTimeout(h);m=void 0;f=p||"";t.readyState=0<a?4:0;p=200<=a&&300>a||304===a;if(d){n=u;for(var U=t,P,v,fa,s,Y=n.contents,z=n.dataTypes;"*"===z[0];)z.shift(),void 0===P&&(P=n.mimeType||U.getResponseHeader("Content-Type"));if(P)for(v in Y)if(Y[v]&&Y[v].test(P)){z.unshift(v);break}if(z[0]in d)fa=z[0];else{for(v in d){if(!z[0]||n.converters[v+" "+z[0]]){fa=v;break}s||(s=v)}fa=fa||s}d=fa?(fa!==z[0]&&z.unshift(fa),d[fa]):void 0;n=d}!p&&-1<k.inArray("script", 164u.dataTypes)&&(u.converters["text script"]=function(){});var y;a:{d=u;P=n;v=t;fa=p;var x,ja,ba;n={};U=d.dataTypes.slice();if(U[1])for(x in d.converters)n[x.toLowerCase()]=d.converters[x];for(s=U.shift();s;)if(d.responseFields[s]&&(v[d.responseFields[s]]=P),!ba&&fa&&d.dataFilter&&(P=d.dataFilter(P,d.dataType)),ba=s,s=U.shift())if("*"===s)s=ba;else if("*"!==ba&&ba!==s){if(!(x=n[ba+" "+s]||n["* "+s]))for(y in n)if((ja=y.split(" "))[1]===s&&(x=n[ba+" "+ja[0]]||n["* "+ja[0]])){!0===x?x=n[y]:!0!==n[y]&& 165(s=ja[0],U.unshift(ja[1]));break}if(!0!==x)if(x&&d["throws"])P=x(P);else try{P=x(P)}catch(Oc){y={state:"parsererror",error:x?Oc:"No conversion from "+ba+" to "+s};break a}}y={state:"success",data:P}}n=y;p?(u.ifModified&&((E=t.getResponseHeader("Last-Modified"))&&(k.lastModified[e]=E),(E=t.getResponseHeader("etag"))&&(k.etag[e]=E)),204===a||"HEAD"===u.type?ea="nocontent":304===a?ea="notmodified":(ea=n.state,j=n.data,p=!(l=n.error))):(l=ea,!a&&ea||(ea="error",0>a&&(a=0)));t.status=a;t.statusText=(c|| 166ea)+"";p?r.resolveWith(Z,[j,ea,t]):r.rejectWith(Z,[t,ea,l]);t.statusCode(Aa);Aa=void 0;C&&o.trigger(p?"ajaxSuccess":"ajaxError",[t,u,p?j:l]);q.fireWith(Z,[t,ea]);C&&(o.trigger("ajaxComplete",[t,u]),--k.active||k.event.trigger("ajaxStop"))}}"object"==typeof a&&(d=a,a=void 0);var d=d||{},m,e,f,p,h,j,w,C,l,n,u=k.ajaxSetup({},d),Z=u.context||u,o=u.context&&(Z.nodeType||Z.jquery)?k(Z):k.event,r=k.Deferred(),q=k.Callbacks("once memory"),Aa=u.statusCode||{},ea={},P={},v="canceled",t={readyState:0,getResponseHeader:function(a){var b; 167if(w){if(!p)for(p={};b=Ed.exec(f);)p[b[1].toLowerCase()+" "]=(p[b[1].toLowerCase()+" "]||[]).concat(b[2]);b=p[a.toLowerCase()+" "]}return null==b?null:b.join(", ")},getAllResponseHeaders:function(){return w?f:null},setRequestHeader:function(a,b){return null==w&&(a=P[a.toLowerCase()]=P[a.toLowerCase()]||a,ea[a]=b),this},overrideMimeType:function(a){return null==w&&(u.mimeType=a),this},statusCode:function(a){var b;if(a)if(w)t.always(a[t.status]);else for(b in a)Aa[b]=[Aa[b],a[b]];return this},abort:function(a){a= 168a||v;return m&&m.abort(a),g(0,a),this}};if(r.promise(t),u.url=((a||u.url||kb.href)+"").replace(Gd,kb.protocol+"//"),u.type=d.method||d.type||u.method||u.type,u.dataTypes=(u.dataType||"*").toLowerCase().match(ua)||[""],null==u.crossDomain){j=z.createElement("a");try{j.href=u.url,j.href=j.href,u.crossDomain=Qb.protocol+"//"+Qb.host!=j.protocol+"//"+j.host}catch(s){u.crossDomain=!0}}if(u.data&&u.processData&&"string"!=typeof u.data&&(u.data=k.param(u.data,u.traditional)),c(Fc,u,d,t),w)return t;for(l in(C= 169k.event&&u.global)&&0==k.active++&&k.event.trigger("ajaxStart"),u.type=u.type.toUpperCase(),u.hasContent=!Fd.test(u.type),e=u.url.replace(Cd,""),u.hasContent?u.data&&u.processData&&0===(u.contentType||"").indexOf("application/x-www-form-urlencoded")&&(u.data=u.data.replace(Bd,"+")):(n=u.url.slice(e.length),u.data&&(u.processData||"string"==typeof u.data)&&(e+=(Pb.test(e)?"&":"?")+u.data,delete u.data),!1===u.cache&&(e=e.replace(Dd,"$1"),n=(Pb.test(e)?"&":"?")+"_="+Dc++ +n),u.url=e+n),u.ifModified&& 170(k.lastModified[e]&&t.setRequestHeader("If-Modified-Since",k.lastModified[e]),k.etag[e]&&t.setRequestHeader("If-None-Match",k.etag[e])),(u.data&&u.hasContent&&!1!==u.contentType||d.contentType)&&t.setRequestHeader("Content-Type",u.contentType),t.setRequestHeader("Accept",u.dataTypes[0]&&u.accepts[u.dataTypes[0]]?u.accepts[u.dataTypes[0]]+("*"!==u.dataTypes[0]?", "+Gc+"; q=0.01":""):u.accepts["*"]),u.headers)t.setRequestHeader(l,u.headers[l]);
170if(u.beforeSend&&(!1===u.beforeSend.call(Z,t,u)||w))return t.abort(); 171if(v="abort",q.add(u.complete),t.done(u.success),t.fail(u.error),m=c(Db,u,d,t)){if(t.readyState=1,C&&o.trigger("ajaxSend",[t,u]),w)return t;u.async&&0<u.timeout&&(h=b.setTimeout(function(){t.abort("timeout")},u.timeout));try{w=!1,m.send(ea,g)}catch(fa){if(w)throw fa;g(-1,fa)}}else g(-1,"No Transport");return t},getJSON:function(a,b,c){return k.get(a,b,c,"json")},getScript:function(a,b){return k.get(a,void 0,b,"script")}});k.each(["get","post"],function(a,b){k[b]=function(a,c,d,g){return v(c)&&(g= 172g||d,d=c,c=void 0),k.ajax(k.extend({url:a,type:b,dataType:g,data:c,success:d},k.isPlainObject(a)&&a))}});k.ajaxPrefilter(function(a){for(var b in a.headers)"content-type"===b.toLowerCase()&&(a.contentType=a.headers[b]||"")});k._evalUrl=function(a,b,c){return k.ajax({url:a,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(a){k.globalEval(a,b,c)}})};k.fn.extend({wrapAll:function(a){var b;return this[0]&&(v(a)&&(a=a.call(this[0])),b= 173k(a,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){for(var a=this;a.firstElementChild;)a=a.firstElementChild;return a}).append(this)),this},wrapInner:function(a){return v(a)?this.each(function(b){k(this).wrapInner(a.call(this,b))}):this.each(function(){var b=k(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=v(a);return this.each(function(c){k(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(a){return this.parent(a).not("body").each(function(){k(this).replaceWith(this.childNodes)}), 174this}});k.expr.pseudos.hidden=function(a){return!k.expr.pseudos.visible(a)};k.expr.pseudos.visible=function(a){return!(!a.offsetWidth&&!a.offsetHeight&&!a.getClientRects().length)};k.ajaxSettings.xhr=function(){try{return new b.XMLHttpRequest}catch(a){}};var Hd={"0":200,1223:204},lb=k.ajaxSettings.xhr();t.cors=!!lb&&"withCredentials"in lb;t.ajax=lb=!!lb;k.ajaxTransport(function(a){var c,d;if(t.cors||lb&&!a.crossDomain)return{send:function(g,m){var e,f=a.xhr();if(f.open(a.type,a.url,a.async,a.username, 175a.password),a.xhrFields)for(e in a.xhrFields)f[e]=a.xhrFields[e];for(e in a.mimeType&&f.overrideMimeType&&f.overrideMimeType(a.mimeType),a.crossDomain||g["X-Requested-With"]||(g["X-Requested-With"]="XMLHttpRequest"),g)f.setRequestHeader(e,g[e]);c=function(a){return function(){c&&(c=d=f.onload=f.onerror=f.onabort=f.ontimeout=f.onreadystatechange=null,"abort"===a?f.abort():"error"===a?"number"!=typeof f.status?m(0,"error"):m(f.status,f.statusText):m(Hd[f.status]||f.status,f.statusText,"text"!==(f.responseType|| 176"text")||"string"!=typeof f.responseText?{binary:f.response}:{text:f.responseText},f.getAllResponseHeaders()))}};f.onload=c();d=f.onerror=f.ontimeout=c("error");void 0!==f.onabort?f.onabort=d:f.onreadystatechange=function(){4===f.readyState&&b.setTimeout(function(){c&&d()})};c=c("abort");try{f.send(a.hasContent&&a.data||null)}catch(p){if(c)throw p;}},abort:function(){c&&c()}}});k.ajaxPrefilter(function(a){a.crossDomain&&(a.contents.script=!1)});k.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"}, 177contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(a){return k.globalEval(a),a}}});k.ajaxPrefilter("script",function(a){void 0===a.cache&&(a.cache=!1);a.crossDomain&&(a.type="GET")});k.ajaxTransport("script",function(a){var b,c;if(a.crossDomain||a.scriptAttrs)return{send:function(d,g){b=k("<script>").attr(a.scriptAttrs||{}).prop({charset:a.scriptCharset,src:a.url}).on("load error",c=function(a){b.remove();c=null;a&&g("error"===a.type?404:200,a.type)});z.head.appendChild(b[0])}, 178abort:function(){c&&c()}}});var Hc,Ic=[],Rb=/(=)\?(?=&|$)|\?\?/;k.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=Ic.pop()||k.expando+"_"+Dc++;return this[a]=!0,a}});k.ajaxPrefilter("json jsonp",function(a,c,d){var g,m,e,f=!1!==a.jsonp&&(Rb.test(a.url)?"url":"string"==typeof a.data&&0===(a.contentType||"").indexOf("application/x-www-form-urlencoded")&&Rb.test(a.data)&&"data");if(f||"jsonp"===a.dataTypes[0])return g=a.jsonpCallback=v(a.jsonpCallback)?a.jsonpCallback():a.jsonpCallback,f? 179a[f]=a[f].replace(Rb,"$1"+g):!1!==a.jsonp&&(a.url+=(Pb.test(a.url)?"&":"?")+a.jsonp+"="+g),a.converters["script json"]=function(){return e||k.error(g+" was not called"),e[0]},a.dataTypes[0]="json",m=b[g],b[g]=function(){e=arguments},d.always(function(){void 0===m?k(b).removeProp(g):b[g]=m;a[g]&&(a.jsonpCallback=c.jsonpCallback,Ic.push(g));e&&v(m)&&m(e[0]);e=m=void 0}),"script"});t.createHTMLDocument=((Hc=z.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Hc.childNodes.length); 180k.parseHTML=function(a,b,c){return"string"!=typeof a?[]:("boolean"==typeof b&&(c=b,b=!1),b||(t.createHTMLDocument?((d=(b=z.implementation.createHTMLDocument("")).createElement("base")).href=z.location.href,b.head.appendChild(d)):b=z),m=!c&&[],(g=nc.exec(a))?[b.createElement(g[1])]:(g=Ea([a],b,m),m&&m.length&&k(m).remove(),k.merge([],g.childNodes)));var d,g,m};k.fn.load=function(a,b,c){var d,g,m,e=this,f=a.indexOf(" ");return-1<f&&(d=za(a.slice(f)),a=a.slice(0,f)),v(b)?(c=b,b=void 0):b&&"object"== 181typeof b&&(g="POST"),0<e.length&&k.ajax({url:a,type:g||"GET",dataType:"html",data:b}).done(function(a){m=arguments;e.html(d?k("<div>").append(k.parseHTML(a)).find(d):a)}).always(c&&function(a,b){e.each(function(){c.apply(this,m||[a.responseText,b,a])})}),this};k.expr.pseudos.animated=function(a){return k.grep(k.timers,function(b){return a===b.elem}).length};k.offset={setOffset:function(a,b,c){var d,g,m,e,f,p,h=k.css(a,"position"),j=k(a),w={};
181"static"===h&&(a.style.position="relative");f=j.offset(); 182m=k.css(a,"top");p=k.css(a,"left");("absolute"===h||"fixed"===h)&&-1<(m+p).indexOf("auto")?(e=(d=j.position()).top,g=d.left):(e=parseFloat(m)||0,g=parseFloat(p)||0);v(b)&&(b=b.call(a,c,k.extend({},f)));null!=b.top&&(w.top=b.top-f.top+e);null!=b.left&&(w.left=b.left-f.left+g);"using"in b?b.using.call(a,w):("number"==typeof w.top&&(w.top+="px"),"number"==typeof w.left&&(w.left+="px"),j.css(w))}};k.fn.extend({offset:function(a){if(arguments.length)return void 0===a?this:this.each(function(b){k.offset.setOffset(this, 183a,b)});var b,c,d=this[0];return d?d.getClientRects().length?(b=d.getBoundingClientRect(),c=d.ownerDocument.defaultView,{top:b.top+c.pageYOffset,left:b.left+c.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var a,b,c,d=this[0],g={top:0,left:0};if("fixed"===k.css(d,"position"))b=d.getBoundingClientRect();else{b=this.offset();c=d.ownerDocument;for(a=d.offsetParent||c.documentElement;a&&(a===c.body||a===c.documentElement)&&"static"===k.css(a,"position");)a=a.parentNode;a&&a!==d&& 1841===a.nodeType&&((g=k(a).offset()).top+=k.css(a,"borderTopWidth",!0),g.left+=k.css(a,"borderLeftWidth",!0))}return{top:b.top-g.top-k.css(d,"marginTop",!0),left:b.left-g.left-k.css(d,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent;a&&"static"===k.css(a,"position");)a=a.offsetParent;return a||Ta})}});k.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,b){var c="pageYOffset"===b;k.fn[a]=function(d){return Da(this,function(a,d,g){var m; 185if(ja(a)?m=a:9===a.nodeType&&(m=a.defaultView),void 0===g)return m?m[b]:a[d];m?m.scrollTo(c?m.pageXOffset:g,c?g:m.pageYOffset):a[d]=g},a,d,arguments.length)}});k.each(["top","left"],function(a,b){k.cssHooks[b]=H(t.pixelPosition,function(a,c){if(c)return c=aa(a,b),Cb.test(c)?k(a).position()[b]+"px":c})});k.each({Height:"height",Width:"width"},function(a,b){k.each({padding:"inner"+a,content:b,"":"outer"+a},function(c,d){k.fn[d]=function(g,m){var e=arguments.length&&(c||"boolean"!=typeof g),f=c||(!0=== 186g||!0===m?"margin":"border");return Da(this,function(b,c,g){var m;return ja(b)?0===d.indexOf("outer")?b["inner"+a]:b.document.documentElement["client"+a]:9===b.nodeType?(m=b.documentElement,Math.max(b.body["scroll"+a],m["scroll"+a],b.body["offset"+a],m["offset"+a],m["client"+a])):void 0===g?k.css(b,c,f):k.style(b,c,g,f)},b,e?g:void 0,e)}})});k.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){k.fn[b]=function(a){return this.on(b,a)}});k.fn.extend({bind:function(a, 187b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return 1===arguments.length?this.off(a,"**"):this.off(b,a||"**",c)},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});k.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(a, 188b){k.fn[b]=function(a,c){return 0<arguments.length?this.on(b,null,a,c):this.trigger(b)}});var Id=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;k.proxy=function(a,b){var c,d,g;if("string"==typeof b&&(c=a[b],b=a,a=c),v(a))return d=p.call(arguments,2),(g=function(){return a.apply(b||this,d.concat(p.call(arguments)))}).guid=a.guid=a.guid||k.guid++,g};k.holdReady=function(a){a?k.readyWait++:k.ready(!0)};k.isArray=Array.isArray;k.parseJSON=JSON.parse;k.nodeName=l;k.isFunction=v;k.isWindow=ja;k.camelCase=A;k.type= 189h;k.now=Date.now;k.isNumeric=function(a){var b=k.type(a);return("number"===b||"string"===b)&&!isNaN(a-parseFloat(a))};k.trim=function(a){return null==a?"":(a+"").replace(Id,"")};"function"==typeof define&&define.amd&&define("jquery",[],function(){return k});var Jd=b.jQuery,Kd=b.$;return k.noConflict=function(a){return b.$===k&&(b.$=Kd),a&&b.jQuery===k&&(b.jQuery=Jd),k},"undefined"==typeof e&&(b.jQuery=b.$=k),k});(function(b){"function"===typeof define&&define.amd?define(["jquery"],b):b(jQuery)})(function(b){function e(a){for(var b;a.length&&a[0]!==document;){b=a.css("position");if("absolute"===b||"relative"===b||"fixed"===b)if(b=parseInt(a.css("zIndex"),10),!isNaN(b)&&0!==b)return b;a=a.parent()}return 0}function f(){this._curInst=null;this._keyEvent=!1;this._disabledInputs=[];this._inDialog=this._datepickerShowing=!1;this._mainDivId="ui-datepicker-div";this._inlineClass="ui-datepicker-inline";this._appendClass= 190"ui-datepicker-append";this._triggerClass="ui-datepicker-trigger";this._dialogClass="ui-datepicker-dialog";this._disableClass="ui-datepicker-disabled";this._unselectableClass="ui-datepicker-unselectable";this._currentClass="ui-datepicker-current-day";this._dayOverClass="ui-datepicker-days-cell-over";this.regional=[];this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:"January February March April May June July August September October November December".split(" "), 191monthNamesShort:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),dayNames:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),dayNamesShort:"Sun Mon Tue Wed Thu Fri Sat".split(" "),dayNamesMin:"Su Mo Tu We Th Fr Sa".split(" "),weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""};
191this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1, 192navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1};b.extend(this._defaults, 193this.regional[""]);this.regional.en=b.extend(!0,{},this.regional[""]);this.regional["en-US"]=b.extend(!0,{},this.regional.en);this.dpDiv=h(b("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function h(a){return a.on("mouseout","button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a",function(){b(this).removeClass("ui-state-hover");-1!==this.className.indexOf("ui-datepicker-prev")&&b(this).removeClass("ui-datepicker-prev-hover"); 194-1!==this.className.indexOf("ui-datepicker-next")&&b(this).removeClass("ui-datepicker-next-hover")}).on("mouseover","button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a",j)}function j(){if(!b.datepicker._isDisabledDatepicker(X.inline?X.dpDiv.parent()[0]:X.input[0]))b(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),b(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&b(this).addClass("ui-datepicker-prev-hover"), 195-1!==this.className.indexOf("ui-datepicker-next")&&b(this).addClass("ui-datepicker-next-hover")}function l(a,c){b.extend(a,c);for(var d in c)null==c[d]&&(a[d]=c[d]);return a}function n(a){return function(){var b=this.element.val();a.apply(this,arguments);this._refresh();b!==this.element.val()&&this._trigger("change")}}b.ui=b.ui||{};b.ui.version="1.12.1";var o=0,q=Array.prototype.slice,r=b.cleanData;b.cleanData=function(a){var c,d,g;for(g=0;null!=(d=a[g]);g++)try{(c=b._data(d,"events"))&&c.remove&& 196b(d).triggerHandler("remove")}catch(m){}r(a)};b.widget=function(a,c,d){var g,m,e,f={},h=a.split(".")[0],a=a.split(".")[1],j=h+"-"+a;d||(d=c,c=b.Widget);b.isArray(d)&&(d=b.extend.apply(null,[{}].concat(d)));b.expr.pseudos[j.toLowerCase()]=function(a){return!!b.data(a,j)};b[h]=b[h]||{};g=b[h][a];m=b[h][a]=function(a,b){if(!this._createWidget)return new m(a,b);arguments.length&&this._createWidget(a,b)};b.extend(m,g,{version:d.version,_proto:b.extend({},d),_childConstructors:[]});e=new c;e.options=b.widget.extend({}, 197e.options);b.each(d,function(a,d){if(b.isFunction(d)){var g=function(){return c.prototype[a].apply(this,arguments)},m=function(b){return c.prototype[a].apply(this,b)};f[a]=function(){var a=this._super,b=this._superApply,c;this._super=g;this._superApply=m;c=d.apply(this,arguments);this._super=a;this._superApply=b;return c}}else f[a]=d});m.prototype=b.widget.extend(e,{widgetEventPrefix:g?e.widgetEventPrefix||a:a},f,{constructor:m,namespace:h,widgetName:a,widgetFullName:j});g?(b.each(g._childConstructors, 198function(a,c){var d=c.prototype;b.widget(d.namespace+"."+d.widgetName,m,c._proto)}),delete g._childConstructors):c._childConstructors.push(m);b.widget.bridge(a,m);return m};b.widget.extend=function(a){for(var c=q.call(arguments,1),d=0,g=c.length,m,e;d<g;d++)for(m in c[d])e=c[d][m],c[d].hasOwnProperty(m)&&void 0!==e&&(a[m]=b.isPlainObject(e)?b.isPlainObject(a[m])?b.widget.extend({},a[m],e):b.widget.extend({},e):e);return a};b.widget.bridge=function(a,c){var d=c.prototype.widgetFullName||a;b.fn[a]= 199function(g){var m="string"===typeof g,e=q.call(arguments,1),f=this;m?!this.length&&"instance"===g?f=void 0:this.each(function(){var c,m=b.data(this,d);if("instance"===g)return f=m,!1;if(!m)return b.error("cannot call methods on "+a+" prior to initialization; attempted to call method '"+g+"'");if(!b.isFunction(m[g])||"_"===g.charAt(0))return b.error("no such method '"+g+"' for "+a+" widget instance");c=m[g].apply(m,e);if(c!==m&&void 0!==c)return f=c&&c.jquery?f.pushStack(c.get()):c,!1}):(e.length&& 200(g=b.widget.extend.apply(null,[g].concat(e))),this.each(function(){var a=b.data(this,d);a?(a.option(g||{}),a._init&&a._init()):b.data(this,d,new c(g,this))}));return f}};b.Widget=function(){};b.Widget._childConstructors=[];b.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(a,c){c=b(c||this.defaultElement||this)[0];this.element=b(c);this.uuid=o++;this.eventNamespace="."+this.widgetName+this.uuid;this.bindings= 201b();this.hoverable=b();this.focusable=b();this.classesElementLookup={};c!==this&&(b.data(c,this.widgetFullName,this),this._on(!0,this.element,{remove:function(a){a.target===c&&this.destroy()}}),this.document=b(c.style?c.ownerDocument:c.document||c),this.window=b(this.document[0].defaultView||this.document[0].parentWindow));
201this.options=b.widget.extend({},this.options,this._getCreateOptions(),a);this._create();this.options.disabled&&this._setOptionDisabled(this.options.disabled);this._trigger("create", 202null,this._getCreateEventData());this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:b.noop,_create:b.noop,_init:b.noop,destroy:function(){var a=this;this._destroy();b.each(this.classesElementLookup,function(b,d){a._removeClass(d,b)});this.element.off(this.eventNamespace).removeData(this.widgetFullName);this.widget().off(this.eventNamespace).removeAttr("aria-disabled");this.bindings.off(this.eventNamespace)},_destroy:b.noop,widget:function(){return this.element},option:function(a, 203c){var d=a,g,m,e;if(0===arguments.length)return b.widget.extend({},this.options);if("string"===typeof a)if(d={},g=a.split("."),a=g.shift(),g.length){m=d[a]=b.widget.extend({},this.options[a]);for(e=0;e<g.length-1;e++)m[g[e]]=m[g[e]]||{},m=m[g[e]];a=g.pop();if(1===arguments.length)return void 0===m[a]?null:m[a];m[a]=c}else{if(1===arguments.length)return void 0===this.options[a]?null:this.options[a];d[a]=c}this._setOptions(d);return this},_setOptions:function(a){for(var b in a)this._setOption(b,a[b]); 204return this},_setOption:function(a,b){"classes"===a&&this._setOptionClasses(b);this.options[a]=b;"disabled"===a&&this._setOptionDisabled(b);return this},_setOptionClasses:function(a){var c,d,g;for(c in a)g=this.classesElementLookup[c],a[c]===this.options.classes[c]||(!g||!g.length)||(d=b(g.get()),this._removeClass(g,c),d.addClass(this._classes({element:d,keys:c,classes:a,add:!0})))},_setOptionDisabled:function(a){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!a);a&&(this._removeClass(this.hoverable, 205null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(a){function c(c,e){var f,h;for(h=0;h<c.length;h++)f=g.classesElementLookup[c[h]]||b(),f=a.add?b(b.uniqueSort(f.get().concat(a.element.get()))):b(f.not(a.element).get()),g.classesElementLookup[c[h]]=f,d.push(c[h]),e&&a.classes[c[h]]&&d.push(a.classes[c[h]])}var d=[],g=this,a=b.extend({element:this.element, 206classes:this.options.classes||{}},a);this._on(a.element,{remove:"_untrackClassesElement"});a.keys&&c(a.keys.match(/\S+/g)||[],!0);a.extra&&c(a.extra.match(/\S+/g)||[]);return d.join(" ")},_untrackClassesElement:function(a){var c=this;b.each(c.classesElementLookup,function(d,g){-1!==b.inArray(a.target,g)&&(c.classesElementLookup[d]=b(g.not(a.target).get()))})},_removeClass:function(a,b,d){return this._toggleClass(a,b,d,!1)},_addClass:function(a,b,d){return this._toggleClass(a,b,d,!0)},_toggleClass:function(a, 207b,d,g){var g="boolean"===typeof g?g:d,m="string"===typeof a||null===a,a={extra:m?b:d,keys:m?a:b,element:m?this.element:a,add:g};a.element.toggleClass(this._classes(a),g);return this},_on:function(a,c,d){var g,m=this;"boolean"!==typeof a&&(d=c,c=a,a=!1);d?(c=g=b(c),this.bindings=this.bindings.add(c)):(d=c,c=this.element,g=this.widget());b.each(d,function(d,e){function f(){if(a||!(m.options.disabled===true||b(this).hasClass("ui-state-disabled")))return(typeof e==="string"?m[e]:e).apply(m,arguments)} 208if(typeof e!=="string")f.guid=e.guid=e.guid||f.guid||b.guid++;var h=d.match(/^([\w:-]*)\s*(.*)$/),j=h[1]+m.eventNamespace;if(h=h[2])g.on(j,h,f);else c.on(j,f)})},_off:function(a,c){c=(c||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace;a.off(c).off(c);this.bindings=b(this.bindings.not(a).get());this.focusable=b(this.focusable.not(a).get());this.hoverable=b(this.hoverable.not(a).get())},_delay:function(a,b){var d=this;return setTimeout(function(){return("string"===typeof a?d[a]:a).apply(d, 209arguments)},b||0)},_hoverable:function(a){this.hoverable=this.hoverable.add(a);this._on(a,{mouseenter:function(a){this._addClass(b(a.currentTarget),null,"ui-state-hover")},mouseleave:function(a){this._removeClass(b(a.currentTarget),null,"ui-state-hover")}})},_focusable:function(a){this.focusable=this.focusable.add(a);this._on(a,{focusin:function(a){this._addClass(b(a.currentTarget),null,"ui-state-focus")},focusout:function(a){this._removeClass(b(a.currentTarget),null,"ui-state-focus")}})},_trigger:function(a, 210c,d){var g,m=this.options[a],d=d||{},c=b.Event(c);c.type=(a===this.widgetEventPrefix?a:this.widgetEventPrefix+a).toLowerCase();c.target=this.element[0];if(a=c.originalEvent)for(g in a)g in c||(c[g]=a[g]);this.element.trigger(c,d);return!(b.isFunction(m)&&!1===m.apply(this.element[0],[c].concat(d))||c.isDefaultPrevented())}};b.each({show:"fadeIn",hide:"fadeOut"},function(a,c){b.Widget.prototype["_"+a]=function(d,g,m){"string"===typeof g&&(g={effect:g});var e,f=!g?a:!0===g||"number"===typeof g?c:g.effect|| 211c,g=g||{};"number"===typeof g&&(g={duration:g});e=!b.isEmptyObject(g);g.complete=m;g.delay&&d.delay(g.delay);if(e&&b.effects&&b.effects.effect[f])d[a](g);else if(f!==a&&d[f])d[f](g.duration,g.easing,m);else d.queue(function(c){b(this)[a]();m&&m.call(d[0]);c()})}});var s=function(a,b,d){return[parseFloat(a[0])*(M.test(a[0])?b/100:1),parseFloat(a[1])*(M.test(a[1])?d/100:1)]},x,I=Math.max,A=Math.abs,Q=/left|center|right/,R=/top|center|bottom/,O=/[\+\-]\d+(\.[\d]+)?%?/,B=/^\w+/,M=/%$/,Oa=b.fn.position; 212b.position={scrollbarWidth:function(){if(void 0!==x)return x;var a,c,d=b("<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>");c=d.children()[0];b("body").append(d);a=c.offsetWidth;d.css("overflow","scroll");c=c.offsetWidth;a===c&&(c=d[0].clientWidth);d.remove();return x=a-c},getScrollInfo:function(a){var c=a.isWindow||a.isDocument?"":a.element.css("overflow-x"),d=a.isWindow||a.isDocument?"":a.element.css("overflow-y"), 213c="scroll"===c||"auto"===c&&a.width<a.element[0].scrollWidth;return{width:"scroll"===d||"auto"===d&&a.height<a.element[0].scrollHeight?b.position.scrollbarWidth():0,height:c?b.position.scrollbarWidth():0}}
213,getWithinInfo:function(a){var c=b(a||window),d=b.isWindow(c[0]),g=!!c[0]&&9===c[0].nodeType;return{element:c,isWindow:d,isDocument:g,offset:!d&&!g?b(a).offset():{left:0,top:0},scrollLeft:c.scrollLeft(),scrollTop:c.scrollTop(),width:c.outerWidth(),height:c.outerHeight()}}};b.fn.position=function(a){if(!a|| 214!a.of)return Oa.apply(this,arguments);var a=b.extend({},a),c,d,g,m,e,f,h=b(a.of),j=b.position.getWithinInfo(a.within),l=b.position.getScrollInfo(j),n=(a.collision||"flip").split(" "),o={};f=h;var r=f[0];f=9===r.nodeType?{width:f.width(),height:f.height(),offset:{top:0,left:0}}:b.isWindow(r)?{width:f.width(),height:f.height(),offset:{top:f.scrollTop(),left:f.scrollLeft()}}:r.preventDefault?{width:0,height:0,offset:{top:r.pageY,left:r.pageX}}:{width:f.outerWidth(),height:f.outerHeight(),offset:f.offset()}; 215h[0].preventDefault&&(a.at="left top");d=f.width;g=f.height;m=f.offset;e=b.extend({},m);b.each(["my","at"],function(){var b=(a[this]||"").split(" "),c,d;b.length===1&&(b=Q.test(b[0])?b.concat(["center"]):R.test(b[0])?["center"].concat(b):["center","center"]);b[0]=Q.test(b[0])?b[0]:"center";b[1]=R.test(b[1])?b[1]:"center";c=O.exec(b[0]);d=O.exec(b[1]);o[this]=[c?c[0]:0,d?d[0]:0];a[this]=[B.exec(b[0])[0],B.exec(b[1])[0]]});1===n.length&&(n[1]=n[0]);"right"===a.at[0]?e.left+=d:"center"===a.at[0]&&(e.left+= 216d/2);"bottom"===a.at[1]?e.top+=g:"center"===a.at[1]&&(e.top+=g/2);c=s(o.at,d,g);e.left+=c[0];e.top+=c[1];return this.each(function(){var f,w,r=b(this),q=r.outerWidth(),P=r.outerHeight(),x=parseInt(b.css(this,"marginLeft"),10)||0,k=parseInt(b.css(this,"marginTop"),10)||0,ba=q+x+(parseInt(b.css(this,"marginRight"),10)||0)+l.width,B=P+k+(parseInt(b.css(this,"marginBottom"),10)||0)+l.height,y=b.extend({},e),F=s(o.my,r.outerWidth(),r.outerHeight());if(a.my[0]==="right")y.left=y.left-q;else if(a.my[0]=== 217"center")y.left=y.left-q/2;if(a.my[1]==="bottom")y.top=y.top-P;else if(a.my[1]==="center")y.top=y.top-P/2;y.left=y.left+F[0];y.top=y.top+F[1];f={marginLeft:x,marginTop:k};b.each(["left","top"],function(m,e){if(b.ui.position[n[m]])b.ui.position[n[m]][e](y,{targetWidth:d,targetHeight:g,elemWidth:q,elemHeight:P,collisionPosition:f,collisionWidth:ba,collisionHeight:B,offset:[c[0]+F[0],c[1]+F[1]],my:a.my,at:a.at,within:j,elem:r})});a.using&&(w=function(b){var c=m.left-y.left,e=c+d-q,f=m.top-y.top,p=f+ 218g-P,k={target:{element:h,left:m.left,top:m.top,width:d,height:g},element:{element:r,left:y.left,top:y.top,width:q,height:P},horizontal:e<0?"left":c>0?"right":"center",vertical:p<0?"top":f>0?"bottom":"middle"};if(d<q&&A(c+e)<d)k.horizontal="center";if(g<P&&A(f+p)<g)k.vertical="middle";k.important=I(A(c),A(e))>I(A(f),A(p))?"horizontal":"vertical";a.using.call(this,b,k)});r.offset(b.extend(y,{using:w}))})};b.ui.position={fit:{left:function(a,b){var d=b.within,g=d.isWindow?d.scrollLeft:d.offset.left, 219m=d.width,e=a.left-b.collisionPosition.marginLeft,d=g-e,f=e+b.collisionWidth-m-g;b.collisionWidth>m?0<d&&0>=f?(g=a.left+d+b.collisionWidth-m-g,a.left+=d-g):a.left=0<f&&0>=d?g:d>f?g+m-b.collisionWidth:g:a.left=0<d?a.left+d:0<f?a.left-f:I(a.left-e,a.left)},top:function(a,b){var d=b.within,g=d.isWindow?d.scrollTop:d.offset.top,m=b.within.height,e=a.top-b.collisionPosition.marginTop,d=g-e,f=e+b.collisionHeight-m-g;b.collisionHeight>m?0<d&&0>=f?(g=a.top+d+b.collisionHeight-m-g,a.top+=d-g):a.top=0<f&&0>= 220d?g:d>f?g+m-b.collisionHeight:g:a.top=0<d?a.top+d:0<f?a.top-f:I(a.top-e,a.top)}},flip:{left:function(a,b){var d=b.within,g=d.offset.left+d.scrollLeft,m=d.width,e=d.isWindow?d.scrollLeft:d.offset.left,f=a.left-b.collisionPosition.marginLeft,d=f-e,h=f+b.collisionWidth-m-e,f="left"===b.my[0]?-b.elemWidth:"right"===b.my[0]?b.elemWidth:0,j="left"===b.at[0]?b.targetWidth:"right"===b.at[0]?-b.targetWidth:0,l=-2*b.offset[0];if(0>d){if(g=a.left+f+j+l+b.collisionWidth-m-g,0>g||g<A(d))a.left+=f+j+l}else if(0< 221h&&(g=a.left-b.collisionPosition.marginLeft+f+j+l-e,0<g||A(g)<h))a.left+=f+j+l},top:function(a,b){var d=b.within,g=d.offset.top+d.scrollTop,m=d.height,e=d.isWindow?d.scrollTop:d.offset.top,f=a.top-b.collisionPosition.marginTop,d=f-e,h=f+b.collisionHeight-m-e,f="top"===b.my[1]?-b.elemHeight:"bottom"===b.my[1]?b.elemHeight:0,j="top"===b.at[1]?b.targetHeight:"bottom"===b.at[1]?-b.targetHeight:0,l=-2*b.offset[1];if(0>d){if(g=a.top+f+j+l+b.collisionHeight-m-g,0>g||g<A(d))a.top+=f+j+l}else if(0<h&&(g=a.top-
222b.collisionPosition.marginTop+f+j+l-e,0<g||A(g)<h))a.top+=f+j+l}},flipfit:{left:function(){b.ui.position.flip.left.apply(this,arguments);b.ui.position.fit.left.apply(this,arguments)},top:function(){b.ui.position.flip.top.apply(this,arguments);b.ui.position.fit.top.apply(this,arguments)}}};b.extend(b.expr.pseudos,{data:b.expr.createPseudo?b.expr.createPseudo(function(a){return function(c){return!!b.data(c,a)}}):function(a,c,d){return!!b.data(a,d[3])}});b.fn.extend({disableSelection:function(){var a= 223"onselectstart"in document.createElement("div")?"selectstart":"mousedown";return function(){return this.on(a+".ui-disableSelection",function(a){a.preventDefault()})}}(),enableSelection:function(){return this.off(".ui-disableSelection")}});var Ea="ui-effects-animated",G=b;b.effects={effect:{}};var V=function(a,b,d){var g=Ga[b.type]||{};if(null==a)return d||!b.def?null:b.def;a=g.floor?~~a:parseFloat(a);return isNaN(a)?b.def:g.mod?(a+g.mod)%g.mod:0>a?0:g.max<a?g.max:a},Wa=function(a){var b=L(),d=b._rgba= 224[],a=a.toLowerCase();H(Xa,function(g,m){var e,f=m.re.exec(a);e=f&&m.parse(f);f=m.space||"rgba";if(e)return e=b[f](e),b[W[f].cache]=e[W[f].cache],d=b._rgba=e._rgba,!1});return d.length?("0,0,0,0"===d.join()&&G.extend(d,aa.transparent),b):aa[a]},wa=function(a,b,d){d=(d+1)%1;return 1>6*d?a+6*(b-a)*d:1>2*d?b:2>3*d?a+6*(b-a)*(2/3-d):a},Fa=/^([\-+])=\s*(\d+\.?\d*)/,Xa=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(a){return[a[1],a[2],a[3],a[4]]}}, 225{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(a){return[2.55*a[1],2.55*a[2],2.55*a[3],a[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(a){return[parseInt(a[1],16),parseInt(a[2],16),parseInt(a[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(a){return[parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16),parseInt(a[3]+a[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/, 226space:"hsla",parse:function(a){return[a[1],a[2]/100,a[3]/100,a[4]]}}],L=G.Color=function(a,b,d,g){return new G.Color.fn.parse(a,b,d,g)},W={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},Ga={"byte":{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},la=L.support={},Ha=G("<p>")[0],aa,H=G.each;Ha.style.cssText="background-color:rgba(1,1,1,.5)"; 227la.rgba=-1<Ha.style.backgroundColor.indexOf("rgba");H(W,function(a,b){b.cache="_"+a;b.props.alpha={idx:3,type:"percent",def:1}});L.fn=G.extend(L.prototype,{parse:function(a,b,d,g){if(void 0===a)return this._rgba=[null,null,null,null],this;if(a.jquery||a.nodeType)a=G(a).css(b),b=void 0;var e=this,f=G.type(a),h=this._rgba=[];void 0!==b&&(a=[a,b,d,g],f="array");if("string"===f)return this.parse(Wa(a)||aa._default);if("array"===f)return H(W.rgba.props,function(b,c){h[c.idx]=V(a[c.idx],c)}),this;if("object"=== 228f)return a instanceof L?H(W,function(b,c){a[c.cache]&&(e[c.cache]=a[c.cache].slice())}):H(W,function(b,c){var d=c.cache;H(c.props,function(b,g){if(!e[d]&&c.to){if(b==="alpha"||a[b]==null)return;e[d]=c.to(e._rgba)}e[d][g.idx]=V(a[b],g,true)});if(e[d]&&G.inArray(null,e[d].slice(0,3))<0){e[d][3]=1;if(c.from)e._rgba=c.from(e[d])}}),this},is:function(a){var b=L(a),d=!0,g=this;H(W,function(a,e){var f,h=b[e.cache];h&&(f=g[e.cache]||e.to&&e.to(g._rgba)||[],H(e.props,function(a,b){if(null!=h[b.idx])return d= 229h[b.idx]===f[b.idx]}));return d});return d},_space:function(){var a=[],b=this;H(W,function(d,g){b[g.cache]&&a.push(d)});return a.pop()},transition:function(a,b){var d=L(a),g=d._space(),e=W[g],f=0===this.alpha()?L("transparent"):this,h=f[e.cache]||e.to(f._rgba),j=h.slice(),d=d[e.cache];H(e.props,function(a,g){var e=g.idx,m=h[e],f=d[e],p=Ga[g.type]||{};null!==f&&(null===m?j[e]=f:(p.mod&&(f-m>p.mod/2?m+=p.mod:m-f>p.mod/2&&(m-=p.mod)),j[e]=V((f-m)*b+m,g)))});return this[g](j)},blend:function(a){if(1=== 230this._rgba[3])return this;var b=this._rgba.slice(),d=b.pop(),g=L(a)._rgba;
230return L(G.map(b,function(a,b){return(1-d)*g[b]+d*a}))},toRgbaString:function(){var a="rgba(",b=G.map(this._rgba,function(a,b){return null==a?2<b?1:0:a});1===b[3]&&(b.pop(),a="rgb(");return a+b.join()+")"},toHslaString:function(){var a="hsla(",b=G.map(this.hsla(),function(a,b){null==a&&(a=2<b?1:0);b&&3>b&&(a=Math.round(100*a)+"%");return a});1===b[3]&&(b.pop(),a="hsl(");return a+b.join()+")"},toHexString:function(a){var b=this._rgba.slice(), 231d=b.pop();a&&b.push(~~(255*d));return"#"+G.map(b,function(a){a=(a||0).toString(16);return 1===a.length?"0"+a:a}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}});L.fn.parse.prototype=L.fn;W.hsla.to=function(a){if(null==a[0]||null==a[1]||null==a[2])return[null,null,null,a[3]];var b=a[0]/255,d=a[1]/255,g=a[2]/255,a=a[3],e=Math.max(b,d,g),f=Math.min(b,d,g),h=e-f,j=e+f,l=0.5*j;return[Math.round(f===e?0:b===e?60*(d-g)/h+360:d===e?60*(g-b)/h+120:60*(b-d)/h+240)% 232360,0===h?0:0.5>=l?h/j:h/(2-j),l,null==a?1:a]};W.hsla.from=function(a){if(null==a[0]||null==a[1]||null==a[2])return[null,null,null,a[3]];var b=a[0]/360,d=a[1],g=a[2],a=a[3],d=0.5>=g?g*(1+d):g+d-g*d,g=2*g-d;return[Math.round(255*wa(g,d,b+1/3)),Math.round(255*wa(g,d,b)),Math.round(255*wa(g,d,b-1/3)),a]};H(W,function(a,b){var d=b.props,g=b.cache,e=b.to,f=b.from;L.fn[a]=function(a){e&&!this[g]&&(this[g]=e(this._rgba));if(void 0===a)return this[g].slice();var b,c=G.type(a),h="array"===c||"object"===c? 233a:arguments,j=this[g].slice();H(d,function(a,b){var d=h["object"===c?a:b.idx];null==d&&(d=j[b.idx]);j[b.idx]=V(d,b)});return f?(b=L(f(j)),b[g]=j,b):L(j)};H(d,function(b,c){L.fn[b]||(L.fn[b]=function(d){var g=G.type(d),e="alpha"===b?this._hsla?"hsla":"rgba":a,m=this[e](),f=m[c.idx];if("undefined"===g)return f;"function"===g&&(d=d.call(this,f),g=G.type(d));if(null==d&&c.empty)return this;"string"===g&&(g=Fa.exec(d))&&(d=f+parseFloat(g[2])*("+"===g[1]?1:-1));m[c.idx]=d;return this[e](m)})})});L.hook= 234function(a){a=a.split(" ");H(a,function(a,b){G.cssHooks[b]={set:function(a,c){var e,f="";if("transparent"!==c&&("string"!==G.type(c)||(e=Wa(c)))){c=L(e||c);if(!la.rgba&&1!==c._rgba[3]){for(e="backgroundColor"===b?a.parentNode:a;(""===f||"transparent"===f)&&e&&e.style;)try{f=G.css(e,"backgroundColor"),e=e.parentNode}catch(h){}c=c.blend(f&&"transparent"!==f?f:"_default")}c=c.toRgbaString()}try{a.style[b]=c}catch(j){}}};G.fx.step[b]=function(a){a.colorInit||(a.start=L(a.elem,b),a.end=L(a.end),a.colorInit= 235!0);G.cssHooks[b].set(a.elem,a.start.transition(a.end,a.pos))}})};L.hook("backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor");G.cssHooks.borderColor={expand:function(a){var b={};H(["Top","Right","Bottom","Left"],function(d,g){b["border"+g+"Color"]=a});return b}};
235aa=G.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000", 236navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"};var ta=function(a){var c,d=a.ownerDocument.defaultView?a.ownerDocument.defaultView.getComputedStyle(a,null):a.currentStyle,g={};if(d&&d.length&&d[0]&&d[d[0]])for(a=d.length;a--;)c=d[a],"string"===typeof d[c]&&(g[b.camelCase(c)]=d[c]);else for(c in d)"string"===typeof d[c]&&(g[c]=d[c]);return g},Ia=["add","remove","toggle"], 237xa={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};b.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(a,c){b.fx.step[c]=function(a){if("none"!==a.end&&!a.setAttr||1===a.pos&&!a.setAttr)G.style(a.elem,c,a.end),a.setAttr=!0}});b.fn.addBack||(b.fn.addBack=function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))});b.effects.animateClass=function(a,c,d,g){var e=b.speed(c,d,g); 238return this.queue(function(){var c=b(this),d=c.attr("class")||"",g,f=e.children?c.find("*").addBack():c,f=f.map(function(){return{el:b(this),start:ta(this)}});g=function(){b.each(Ia,function(b,d){if(a[d])c[d+"Class"](a[d])})};g();f=f.map(function(){this.end=ta(this.el[0]);var a=this.start,c=this.end,d={},g,e;for(g in c){e=c[g];if(a[g]!==e&&!xa[g]&&(b.fx.step[g]||!isNaN(parseFloat(e))))d[g]=e}this.diff=d;return this});c.attr("class",d);f=f.map(function(){var a=this,c=b.Deferred(),d=b.extend({},e,{queue:false, 239complete:function(){c.resolve(a)}});this.el.animate(this.diff,d);return c.promise()});b.when.apply(b,f.get()).done(function(){g();b.each(arguments,function(){var a=this.el;b.each(this.diff,function(b){a.css(b,"")})});e.complete.call(c[0])})})};b.fn.extend({addClass:function(a){return function(c,d,g,e){return d?b.effects.animateClass.call(this,{add:c},d,g,e):a.apply(this,arguments)}}(b.fn.addClass),removeClass:function(a){return function(c,d,g,e){return arguments.length>1?b.effects.animateClass.call(this, 240{remove:c},d,g,e):a.apply(this,arguments)}}(b.fn.removeClass),toggleClass:function(a){return function(c,d,g,e,f){return typeof d==="boolean"||d===void 0?g?b.effects.animateClass.call(this,d?{add:c}:{remove:c},g,e,f):a.apply(this,arguments):b.effects.animateClass.call(this,{toggle:c},d,g,e)}}(b.fn.toggleClass),switchClass:function(a,c,d,g,e){return b.effects.animateClass.call(this,{add:c,remove:a},d,g,e)}});var oa=function(a,c,d,g){if(b.isPlainObject(a)){c=a;a=a.effect}a={effect:a};c==null&&(c={}); 241if(b.isFunction(c)){g=c;d=null;c={}}if(typeof c==="number"||b.fx.speeds[c]){g=d;d=c;c={}}if(b.isFunction(d)){g=d;d=null}c&&b.extend(a,c);d=d||c.duration;a.duration=b.fx.off?0:typeof d==="number"?d:d in b.fx.speeds?b.fx.speeds[d]:b.fx.speeds._default;a.complete=g||c.complete;return a},F=function(a){return!a||(typeof a==="number"||b.fx.speeds[a])||typeof a==="string"&&!b.effects.effect[a]||b.isFunction(a)||typeof a==="object"&&!a.effect?true:false},pa=function(a,b){var d=b.outerWidth(),g=b.outerHeight(), 242e=/^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/.exec(a)||["",0,d,g,0];return{top:parseFloat(e[1])||0,right:e[2]==="auto"?d:parseFloat(e[2]),bottom:e[3]==="auto"?g:parseFloat(e[3]),left:parseFloat(e[4])||0}};if(b.expr&&b.expr.pseudos&&b.expr.pseudos.animated){var pb=b.expr.pseudos.animated;b.expr.pseudos.animated=function(a){return!!b(a).data(Ea)||pb(a)}}!1!==b.uiBackCompat&&b.extend(b.effects,{save:function(a, 243b){for(var d=0,g=b.length;d<g;d++)b[d]!==null&&a.data("ui-effects-"+b[d],a[0].style[b[d]])},restore:function(a,b){for(var d,g=0,e=b.length;g<e;g++)if(b[g]!==null){d=a.data("ui-effects-"+b[g]);a.css(b[g],d)}},setMode:function(a,b){b==="toggle"&&(b=a.is(":hidden")?"show":"hide");return b},createWrapper:function(a){if(a.parent().is(".ui-effects-wrapper"))return a.parent();var c={width:a.outerWidth(true),height:a.outerHeight(true),"float":a.css("float")},d=b("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%", 244background:"transparent",border:"none",margin:0,padding:0}),g={width:a.width(),height:a.height()},e=document.activeElement;
244try{e.id}catch(f){e=document.body}a.wrap(d);(a[0]===e||b.contains(a[0],e))&&b(e).trigger("focus");d=a.parent();if(a.css("position")==="static"){d.css({position:"relative"});a.css({position:"relative"})}else{b.extend(c,{position:a.css("position"),zIndex:a.css("z-index")});b.each(["top","left","bottom","right"],function(b,d){c[d]=a.css(d);isNaN(parseInt(c[d],10))&&(c[d]="auto")}); 245a.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})}a.css(g);return d.css(c).show()},removeWrapper:function(a){var c=document.activeElement;if(a.parent().is(".ui-effects-wrapper")){a.parent().replaceWith(a);(a[0]===c||b.contains(a[0],c))&&b(c).trigger("focus")}return a}});b.extend(b.effects,{version:"1.12.1",define:function(a,c,d){if(!d){d=c;c="effect"}b.effects.effect[a]=d;b.effects.effect[a].mode=c;return d},scaledDimensions:function(a,b,d){if(b===0)return{height:0,width:0,outerHeight:0, 246outerWidth:0};var g=d!=="horizontal"?(b||100)/100:1,b=d!=="vertical"?(b||100)/100:1;return{height:a.height()*b,width:a.width()*g,outerHeight:a.outerHeight()*b,outerWidth:a.outerWidth()*g}},clipToBox:function(a){return{width:a.clip.right-a.clip.left,height:a.clip.bottom-a.clip.top,left:a.clip.left,top:a.clip.top}},unshift:function(a,b,d){var g=a.queue();b>1&&g.splice.apply(g,[1,0].concat(g.splice(b,d)));a.dequeue()},saveStyle:function(a){a.data("ui-effects-style",a[0].style.cssText)},restoreStyle:function(a){a[0].style.cssText= 247a.data("ui-effects-style")||"";a.removeData("ui-effects-style")},mode:function(a,b){var d=a.is(":hidden");b==="toggle"&&(b=d?"show":"hide");if(d?b==="hide":b==="show")b="none";return b},getBaseline:function(a,b){var d,g;switch(a[0]){case "top":d=0;break;case "middle":d=0.5;break;case "bottom":d=1;break;default:d=a[0]/b.height}switch(a[1]){case "left":g=0;break;case "center":g=0.5;break;case "right":g=1;break;default:g=a[1]/b.width}return{x:g,y:d}},createPlaceholder:function(a){var c,d=a.css("position"), 248g=a.position();a.css({marginTop:a.css("marginTop"),marginBottom:a.css("marginBottom"),marginLeft:a.css("marginLeft"),marginRight:a.css("marginRight")}).outerWidth(a.outerWidth()).outerHeight(a.outerHeight());if(/^(static|relative)/.test(d)){d="absolute";c=b("<"+a[0].nodeName+">").insertAfter(a).css({display:/^(inline|ruby)/.test(a.css("display"))?"inline-block":"block",visibility:"hidden",marginTop:a.css("marginTop"),marginBottom:a.css("marginBottom"),marginLeft:a.css("marginLeft"),marginRight:a.css("marginRight"), 249"float":a.css("float")}).outerWidth(a.outerWidth()).outerHeight(a.outerHeight()).addClass("ui-effects-placeholder");a.data("ui-effects-placeholder",c)}a.css({position:d,left:g.left,top:g.top});return c},removePlaceholder:function(a){var b=a.data("ui-effects-placeholder");if(b){b.remove();a.removeData("ui-effects-placeholder")}},cleanUp:function(a){b.effects.restoreStyle(a);b.effects.removePlaceholder(a)},setTransition:function(a,c,d,g){g=g||{};b.each(c,function(b,c){var e=a.cssUnit(c);e[0]>0&&(g[c]= 250e[0]*d+e[1])});return g}});b.fn.extend({effect:function(){function a(a){function e(){f.removeData(Ea);b.effects.cleanUp(f);c.mode==="hide"&&f.hide();
250m()}function m(){b.isFunction(h)&&h.call(f[0]);b.isFunction(a)&&a()}var f=b(this);c.mode=l.shift();if(b.uiBackCompat!==false&&!g)if(f.is(":hidden")?j==="hide":j==="show"){f[j]();m()}else d.call(f[0],c,m);else if(c.mode==="none"){f[j]();m()}else d.call(f[0],c,e)}var c=oa.apply(this,arguments),d=b.effects.effect[c.effect],g=d.mode,e=c.queue,f=e||"fx",h= 251c.complete,j=c.mode,l=[],n=function(a){var c=b(this),d=b.effects.mode(c,j)||g;c.data(Ea,true);l.push(d);g&&(d==="show"||d===g&&d==="hide")&&c.show();(!g||d!=="none")&&b.effects.saveStyle(c);b.isFunction(a)&&a()};return b.fx.off||!d?j?this[j](c.duration,h):this.each(function(){h&&h.call(this)}):e===false?this.each(n).each(a):this.queue(f,n).queue(f,a)},show:function(a){return function(b){if(F(b))return a.apply(this,arguments);var d=oa.apply(this,arguments);d.mode="show";return this.effect.call(this, 252d)}}(b.fn.show),hide:function(a){return function(b){if(F(b))return a.apply(this,arguments);var d=oa.apply(this,arguments);d.mode="hide";return this.effect.call(this,d)}}(b.fn.hide),toggle:function(a){return function(b){if(F(b)||typeof b==="boolean")return a.apply(this,arguments);var d=oa.apply(this,arguments);d.mode="toggle";return this.effect.call(this,d)}}(b.fn.toggle),cssUnit:function(a){var c=this.css(a),d=[];b.each(["em","px","%","pt"],function(a,b){c.indexOf(b)>0&&(d=[parseFloat(c),b])});return d}, 253cssClip:function(a){return a?this.css("clip","rect("+a.top+"px "+a.right+"px "+a.bottom+"px "+a.left+"px)"):pa(this.css("clip"),this)},transfer:function(a,c){var d=b(this),g=b(a.to),e=g.css("position")==="fixed",f=b("body"),h=e?f.scrollTop():0,f=e?f.scrollLeft():0,j=g.offset(),g={top:j.top-h,left:j.left-f,height:g.innerHeight(),width:g.innerWidth()},j=d.offset(),l=b("<div class='ui-effects-transfer'></div>").appendTo("body").addClass(a.className).css({top:j.top-h,left:j.left-f,height:d.innerHeight(), 254width:d.innerWidth(),position:e?"fixed":"absolute"}).animate(g,a.duration,a.easing,function(){l.remove();b.isFunction(c)&&c()})}});b.fx.step.clip=function(a){if(!a.clipInit){a.start=b(a.elem).cssClip();if(typeof a.end==="string")a.end=pa(a.end,a.elem);a.clipInit=true}b(a.elem).cssClip({top:a.pos*(a.end.top-a.start.top)+a.start.top,right:a.pos*(a.end.right-a.start.right)+a.start.right,bottom:a.pos*(a.end.bottom-a.start.bottom)+a.start.bottom,left:a.pos*(a.end.left-a.start.left)+a.start.left})};var Ja= 255{};b.each(["Quad","Cubic","Quart","Quint","Expo"],function(a,b){Ja[b]=function(b){return Math.pow(b,a+2)}});b.extend(Ja,{Sine:function(a){return 1-Math.cos(a*Math.PI/2)},Circ:function(a){return 1-Math.sqrt(1-a*a)},Elastic:function(a){return a===0||a===1?a:-Math.pow(2,8*(a-1))*Math.sin(((a-1)*80-7.5)*Math.PI/15)},Back:function(a){return a*a*(3*a-2)},Bounce:function(a){for(var b,d=4;a<((b=Math.pow(2,--d))-1)/11;);return 1/Math.pow(4,3-d)-7.5625*Math.pow((b*3-2)/22-a,2)}});b.each(Ja,function(a,c){b.easing["easeIn"+ 256a]=c;b.easing["easeOut"+a]=function(a){return 1-c(1-a)};b.easing["easeInOut"+a]=function(a){return a<0.5?c(a*2)/2:1-c(a*-2+2)/2}});b.effects.define("blind","hide",function(a,c){var d={up:["bottom","top"],vertical:["bottom","top"],down:["top","bottom"],left:["right","left"],horizontal:["right","left"],right:["left","right"]},g=b(this),e=a.direction||"up",f=g.cssClip(),h={clip:b.extend({},f)},j=b.effects.createPlaceholder(g);h.clip[d[e][0]]=h.clip[d[e][1]];if(a.mode==="show"){g.cssClip(h.clip);j&&j.css(b.effects.clipToBox(h)); 257h.clip=f}j&&j.animate(b.effects.clipToBox(h),a.duration,a.easing);g.animate(h,{queue:false,duration:a.duration,easing:a.easing,complete:c})});b.effects.define("bounce",function(a,c){var d,g,e=b(this),f=a.mode,h=f==="hide";g=f==="show";var j=a.direction||"up",f=a.distance,l=a.times||5,n=l*2+(g||h?1:0),o=a.duration/n,r=a.easing,q=j==="up"||j==="down"?"top":"left",j=j==="up"||j==="left",s=0,t=e.queue().length;b.effects.createPlaceholder(e);d=e.css(q);f||(f=e[q==="top"?"outerHeight":"outerWidth"]()/3); 258if(g){g={opacity:1};g[q]=d;e.css("opacity",0).css(q,j?-f*2:f*2).animate(g,o,r)}h&&(f=f/Math.pow(2,l-1));g={};for(g[q]=d;s<l;s++){d={};d[q]=(j?"-=":"+=")+f;e.animate(d,o,r).animate(g,o,r);f=h?f*2:f/2}if(h){d={opacity:0}
258;d[q]=(j?"-=":"+=")+f;e.animate(d,o,r)}e.queue(c);b.effects.unshift(e,t,n+1)});b.effects.define("clip","hide",function(a,c){var d,g={},e=b(this);d=a.direction||"vertical";var f=d==="both",h=f||d==="horizontal",f=f||d==="vertical";d=e.cssClip();g.clip={top:f?(d.bottom-d.top)/2:d.top, 259right:h?(d.right-d.left)/2:d.right,bottom:f?(d.bottom-d.top)/2:d.bottom,left:h?(d.right-d.left)/2:d.left};b.effects.createPlaceholder(e);if(a.mode==="show"){e.cssClip(g.clip);g.clip=d}e.animate(g,{queue:false,duration:a.duration,easing:a.easing,complete:c})});b.effects.define("drop","hide",function(a,c){var d,g=b(this),e=a.mode==="show";d=a.direction||"left";var f=d==="up"||d==="down"?"top":"left",h=d==="up"||d==="left"?"-=":"+=",j=h==="+="?"-=":"+=",l={opacity:0};b.effects.createPlaceholder(g);d= 260a.distance||g[f==="top"?"outerHeight":"outerWidth"](true)/2;l[f]=h+d;if(e){g.css(l);l[f]=j+d;l.opacity=1}g.animate(l,{queue:false,duration:a.duration,easing:a.easing,complete:c})});b.effects.define("explode","hide",function(a,c){function d(){x.push(this);if(x.length===n*o){r.css({visibility:"visible"});b(x).remove();c()}}var g,e,f,h,j,l,n=a.pieces?Math.round(Math.sqrt(a.pieces)):3,o=n,r=b(this),q=a.mode==="show",s=r.show().css("visibility","hidden").offset(),t=Math.ceil(r.outerWidth()/o),v=Math.ceil(r.outerHeight()/ 261n),x=[];for(g=0;g<n;g++){h=s.top+g*v;l=g-(n-1)/2;for(e=0;e<o;e++){f=s.left+e*t;j=e-(o-1)/2;r.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-e*t,top:-g*v}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:t,height:v,left:f+(q?j*t:0),top:h+(q?l*v:0),opacity:q?0:1}).animate({left:f+(q?0:j*t),top:h+(q?0:l*v),opacity:q?1:0},a.duration||500,a.easing,d)}}});b.effects.define("fade","toggle",function(a,c){var d=a.mode=== 262"show";b(this).css("opacity",d?0:1).animate({opacity:d?1:0},{queue:false,duration:a.duration,easing:a.easing,complete:c})});b.effects.define("fold","hide",function(a,c){var d=b(this),g=a.mode,e=g==="show",g=g==="hide",f=a.size||15,h=/([0-9]+)%/.exec(f),j=a.horizFirst?["right","bottom"]:["bottom","right"],l=a.duration/2,n=b.effects.createPlaceholder(d),o=d.cssClip(),r={clip:b.extend({},o)},q={clip:b.extend({},o)},s=[o[j[0]],o[j[1]]],t=d.queue().length;h&&(f=parseInt(h[1],10)/100*s[g?0:1]);r.clip[j[0]]= 263f;q.clip[j[0]]=f;q.clip[j[1]]=0;if(e){d.cssClip(q.clip);n&&n.css(b.effects.clipToBox(q));q.clip=o}d.queue(function(c){n&&n.animate(b.effects.clipToBox(r),l,a.easing).animate(b.effects.clipToBox(q),l,a.easing);c()}).animate(r,l,a.easing).animate(q,l,a.easing).queue(c);b.effects.unshift(d,t,4)});b.effects.define("highlight","show",function(a,c){var d=b(this),g={backgroundColor:d.css("backgroundColor")};if(a.mode==="hide")g.opacity=0;b.effects.saveStyle(d);d.css({backgroundImage:"none",backgroundColor:a.color|| 264"#ffff99"}).animate(g,{queue:false,duration:a.duration,easing:a.easing,complete:c})});b.effects.define("size",function(a,c){var d,g,e,f,h,j,l=b(this),n=["fontSize"],o=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],r=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"];j=a.mode;var q=j!=="effect",s=a.scale||"both";h=a.origin||["middle","center"];var t=l.css("position"),v=l.position(),x=b.effects.scaledDimensions(l),z=a.from||x,B=a.to||b.effects.scaledDimensions(l, 2650);b.effects.createPlaceholder(l);if(j==="show"){j=z;z=B;B=j}e=z.height/x.height;f=z.width/x.width;d=B.height/x.height;g=B.width/x.width;if(s==="box"||s==="both"){if(e!==d){z=b.effects.setTransition(l,o,e,z);B=b.effects.setTransition(l,o,d,B)}if(f!==g){z=b.effects.setTransition(l,r,f,z);B=b.effects.setTransition(l,r,g,B)}}if((s==="content"||s==="both")&&e!==d){z=b.effects.setTransition(l,n,e,z);B=b.effects.setTransition(l,n,d,B)}if(h){h=b.effects.getBaseline(h,x);z.top=(x.outerHeight-z.outerHeight)* 266h.y+v.top;z.left=(x.outerWidth-z.outerWidth)*h.x+v.left;B.top=(x.outerHeight-B.outerHeight)*h.y+v.top;B.left=(x.outerWidth-B.outerWidth)*h.x+v.left}l.css(z);if(s==="content"||s==="both"){o=o.concat(["marginTop","marginBottom"]).concat(n);r=r.concat(["marginLeft","marginRight"]);l.find("*[width]").each(function(){var c=b(this),h=b.effects.scaledDimensions(c),j={height:h.height*e,width:h.width*f,outerHeight:h.outerHeight*e,outerWidth:h.outerWidth*f},h={height:h.height*d,width:h.width*g,outerHeight:h.height* 267d,outerWidth:h.width*g};if(e!==d){j=b.effects.setTransition(c,o,e,j);h=b.effects.setTransition(c,o,d,h)}if(f!==g){j=b.effects.setTransition(c,r,f,j);h=b.effects.setTransition(c,r,g,h)}q&&b.effects.saveStyle(c);c.css(j);c.animate(h,a.duration,a.easing,function(){q&&b.effects.restoreStyle(c)})})}l.animate(B,{queue:false,duration:a.duration,easing:a.easing,complete:function(){var a=l.offset();B.opacity===0&&l.css("opacity",z.opacity);if(!q){l.css("position",t==="static"?"relative":t).offset(a);b.effects.saveStyle(l)}c()}})}); 268b.effects.define("scale",function(a,c){var d=b(this),g=a.mode,g=parseInt(a.percent,10)||(parseInt(a.percent,10)===0?0:g!=="effect"?0:100),d=b.extend(true,{from:b.effects.scaledDimensions(d),to:b.effects.scaledDimensions(d,g,a.direction||"both"),origin:a.origin||["middle","center"]},a);if(a.fade){d.from.opacity=1;d.to.opacity=0}b.effects.effect.size.call(this,d,c)});b.effects.define("puff","hide",function(a,c){var d=b.extend(true,{},a,{fade:true,percent:parseInt(a.percent,10)||150});b.effects.effect.scale.call(this, 269d,c)});b.effects.define("pulsate","show",function(a,c){var d=b(this),g=a.mode,e=g==="show",g=(a.times||5)*2+(e||g==="hide"?1:0),f=a.duration/g,h=0,j=1,l=d.queue().length;if(e||!d.is(":visible")){d.css("opacity",0).show();h=1}for(;j<g;j++){d.animate({opacity:h},f,a.easing);h=1-h}d.animate({opacity:h},f,a.easing);d.queue(c);b.effects.unshift(d,l,g+1)});b.effects.define("shake",function(a,c){var d=1,g=b(this),e=a.direction||"left",f=a.distance||20,h=a.times||3,j=h*2+1,l=Math.round(a.duration/j),n=e=== 270"up"||e==="down"?"top":"left",e=e==="up"||e==="left",o={},r={},q={},s=g.queue().length;b.effects.createPlaceholder(g);o[n]=(e?"-=":"+=")+f;r[n]=(e?"+=":"-=")+f*2;q[n]=(e?"-=":"+=")+f*2;for(g.animate(o,l,a.easing);d<h;d++)g.animate(r,l,a.easing).animate(q,l,a.easing);g.animate(r,l,a.easing).animate(o,l/2,a.easing).queue(c);b.effects.unshift(g,s,j+1)});b.effects.define("slide","show",function(a,c){var d,g,e=b(this),f={up:["bottom","top"],down:["top","bottom"],left:["right","left"],right:["left","right"]}, 271h=a.mode,j=a.direction||"left",l=j==="up"||j==="down"?"top":"left",n=j==="up"||j==="left",o=a.distance||e[l==="top"?"outerHeight":"outerWidth"](true),r={};b.effects.createPlaceholder(e);d=e.cssClip();g=e.position()[l];r[l]=(n?-1:1)*o+g;r.clip=e.cssClip();r.clip[f[j][1]]=r.clip[f[j][0]];if(h==="show"){e.cssClip(r.clip);e.css(l,r[l]);r.clip=d;r[l]=g}e.animate(r,{queue:false,duration:a.duration,easing:a.easing,complete:c})});!1!==b.uiBackCompat&&b.effects.define("transfer",function(a,c){b(this).transfer(a, 272c)});b.ui.focusable=function(a,c){var d,g;d=a.nodeName.toLowerCase();if("area"===d){d=a.parentNode;g=d.name;if(!a.href||!g||d.nodeName.toLowerCase()!=="map")return false;d=b("img[usemap='#"+g+"']");return d.length>0&&d.is(":visible")}if(/^(input|select|textarea|button|object)$/.test(d)){if(d=!a.disabled)(g=b(a).closest("fieldset")[0])&&(d=!g.disabled)}else d="a"===d?a.href||c:c;if(d&&(d=b(a).is(":visible"))){d=b(a);for(g=d.css("visibility");g==="inherit";){d=d.parent();g=d.css("visibility")}d=g!== 273"hidden"}return d};b.extend(b.expr.pseudos,{focusable:function(a){return b.ui.focusable(a,b.attr(a,"tabindex")!=null)}});b.fn.form=function(){return typeof this[0].form==="string"?this.closest("form"):b(this[0].form)};b.ui.formResetMixin={_formResetHandler:function(){var a=b(this);setTimeout(function(){var c=a.data("ui-form-reset-instances");b.each(c,function(){this.refresh()})})},_bindFormResetHandler:function(){this.form=this.element.form();if(this.form.length){var a=this.form.data("ui-form-reset-instances")|| 274[];if(!a.length)this.form.on("reset.ui-form-reset",this._formResetHandler);a.push(this);this.form.data("ui-form-reset-instances",a)}},_unbindFormResetHandler:function(){if(this.form.length){var a=this.form.data("ui-form-reset-instances");a.splice(b.inArray(this,a),1);a.length?this.form.data("ui-form-reset-instances",a):this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset")}}};"1.7"===b.fn.jquery.substring(0,3)&&(b.each(["Width","Height"],function(a,c){function d(a,c,d,e){b.each(g, 275function(){c=c-(parseFloat(b.css(a,"padding"+this))||0);d&&(c=c-(parseFloat(b.css(a,"border"+this+"Width"))||0));e&&(c=c-(parseFloat(b.css(a,"margin"+this))||0))});return c}var g=c==="Width"?["Left","Right"]:["Top","Bottom"],e=c.toLowerCase(),f={innerWidth:b.fn.innerWidth,innerHeight:b.fn.innerHeight,outerWidth:b.fn.outerWidth,outerHeight:b.fn.outerHeight};b.fn["inner"+c]=function(a){return a===void 0?f["inner"+c].call(this):this.each(function(){b(this).css(e,d(this,a)+"px")})};b.fn["outer"+c]=function(a, 276g){return typeof a!=="number"?f["outer"+c].call(this,a):this.each(function(){b(this).css(e,d(this,a,true,g)+"px")})}}),b.fn.addBack=function(a){return this.add(a==null?this.prevObject:this.prevObject.filter(a))});b.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38};var qb=/([!"#$%&'()*+,./:;<=>?@[\]^`{|}~])/g;b.ui.escapeSelector=function(a){return a.replace(qb,"\\$1")};b.fn.labels=function(){var a, 277c,d;if(this[0].labels&&this[0].labels.length)return this.pushStack(this[0].labels);d=this.eq(0).parents("label");
277if(c=this.attr("id")){a=this.eq(0).parents().last();a=a.add(a.length?a.siblings():this.siblings());c="label[for='"+b.ui.escapeSelector(c)+"']";d=d.add(a.find(c).addBack(c))}return this.pushStack(d)};b.fn.scrollParent=function(a){var c=this.css("position"),d=c==="absolute",g=a?/(auto|scroll|hidden)/:/(auto|scroll)/,a=this.parents().filter(function(){var a=b(this);return d&&a.css("position")=== 278"static"?false:g.test(a.css("overflow")+a.css("overflow-y")+a.css("overflow-x"))}).eq(0);return c==="fixed"||!a.length?b(this[0].ownerDocument||document):a};b.extend(b.expr.pseudos,{tabbable:function(a){var c=b.attr(a,"tabindex"),d=c!=null;return(!d||c>=0)&&b.ui.focusable(a,d)}});b.fn.extend({uniqueId:function(){var a=0;return function(){return this.each(function(){if(!this.id)this.id="ui-id-"+ ++a})}}(),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&b(this).removeAttr("id")})}}); 279b.widget("ui.accordion",{version:"1.12.1",options:{active:0,animate:{},classes:{"ui-accordion-header":"ui-corner-top","ui-accordion-header-collapsed":"ui-corner-all","ui-accordion-content":"ui-corner-bottom"},collapsible:!1,event:"click",header:"> li > :first-child, > :not(li):even",heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},hideProps:{borderTopWidth:"hide",borderBottomWidth:"hide",paddingTop:"hide",paddingBottom:"hide", 280height:"hide"},showProps:{borderTopWidth:"show",borderBottomWidth:"show",paddingTop:"show",paddingBottom:"show",height:"show"},_create:function(){var a=this.options;this.prevShow=this.prevHide=b();this._addClass("ui-accordion","ui-widget ui-helper-reset");this.element.attr("role","tablist");if(!a.collapsible&&(a.active===false||a.active==null))a.active=0;this._processPanels();if(a.active<0)a.active=a.active+this.headers.length;this._refresh()},_getCreateEventData:function(){return{header:this.active, 281panel:!this.active.length?b():this.active.next()}},_createIcons:function(){var a,c=this.options.icons;if(c){a=b("<span>");this._addClass(a,"ui-accordion-header-icon","ui-icon "+c.header);a.prependTo(this.headers);a=this.active.children(".ui-accordion-header-icon");this._removeClass(a,c.header)._addClass(a,null,c.activeHeader)._addClass(this.headers,"ui-accordion-icons")}},_destroyIcons:function(){this._removeClass(this.headers,"ui-accordion-icons");this.headers.children(".ui-accordion-header-icon").remove()}, 282_destroy:function(){var a;this.element.removeAttr("role");this.headers.removeAttr("role aria-expanded aria-selected aria-controls tabIndex").removeUniqueId();this._destroyIcons();a=this.headers.next().css("display","").removeAttr("role aria-hidden aria-labelledby").removeUniqueId();this.options.heightStyle!=="content"&&a.css("height","")},_setOption:function(a,b){if(a==="active")this._activate(b);else{if(a==="event"){this.options.event&&this._off(this.headers,this.options.event);this._setupEvents(b)}this._super(a, 283b);a==="collapsible"&&(!b&&this.options.active===false)&&this._activate(0);if(a==="icons"){this._destroyIcons();b&&this._createIcons()}}},_setOptionDisabled:function(a){this._super(a);this.element.attr("aria-disabled",a);this._toggleClass(null,"ui-state-disabled",!!a);this._toggleClass(this.headers.add(this.headers.next()),null,"ui-state-disabled",!!a)},_keydown:function(a){if(!a.altKey&&!a.ctrlKey){var c=b.ui.keyCode,d=this.headers.length,g=this.headers.index(a.target),e=false;switch(a.keyCode){case c.RIGHT:case c.DOWN:e= 284this.headers[(g+1)%d];break;case c.LEFT:case c.UP:e=this.headers[(g-1+d)%d];break;case c.SPACE:case c.ENTER:this._eventHandler(a);break;case c.HOME:e=this.headers[0];break;case c.END:e=this.headers[d-1]}if(e){b(a.target).attr("tabIndex",-1);b(e).attr("tabIndex",0);b(e).trigger("focus");a.preventDefault()}}},_panelKeyDown:function(a){a.keyCode===b.ui.keyCode.UP&&a.ctrlKey&&b(a.currentTarget).prev().trigger("focus")},refresh:function(){var a=this.options;this._processPanels();if(a.active===false&&a.collapsible=== 285true||!this.headers.length){a.active=false;this.active=b()}else if(a.active===false)this._activate(0);else if(this.active.length&&!b.contains(this.element[0],this.active[0])
285)if(this.headers.length===this.headers.find(".ui-state-disabled").length){a.active=false;this.active=b()}else this._activate(Math.max(0,a.active-1));else a.active=this.headers.index(this.active);this._destroyIcons();this._refresh()},_processPanels:function(){var a=this.headers,b=this.panels;this.headers=this.element.find(this.options.header); 286this._addClass(this.headers,"ui-accordion-header ui-accordion-header-collapsed","ui-state-default");this.panels=this.headers.next().filter(":not(.ui-accordion-content-active)").hide();this._addClass(this.panels,"ui-accordion-content","ui-helper-reset ui-widget-content");if(b){this._off(a.not(this.headers));this._off(b.not(this.panels))}},_refresh:function(){var a,c=this.options,d=c.heightStyle,g=this.element.parent();this.active=this._findActive(c.active);this._addClass(this.active,"ui-accordion-header-active", 287"ui-state-active")._removeClass(this.active,"ui-accordion-header-collapsed");this._addClass(this.active.next(),"ui-accordion-content-active");this.active.next().show();this.headers.attr("role","tab").each(function(){var a=b(this),c=a.uniqueId().attr("id"),d=a.next(),g=d.uniqueId().attr("id");a.attr("aria-controls",g);d.attr("aria-labelledby",c)}).next().attr("role","tabpanel");this.headers.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}).next().attr({"aria-hidden":"true"}).hide(); 288this.active.length?this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}).next().attr({"aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0);this._createIcons();this._setupEvents(c.event);if(d==="fill"){a=g.height();this.element.siblings(":visible").each(function(){var c=b(this),d=c.css("position");d==="absolute"||d==="fixed"||(a=a-c.outerHeight(true))});this.headers.each(function(){a=a-b(this).outerHeight(true)});this.headers.next().each(function(){b(this).height(Math.max(0, 289a-b(this).innerHeight()+b(this).height()))}).css("overflow","auto")}else if(d==="auto"){a=0;this.headers.next().each(function(){var c=b(this).is(":visible");c||b(this).show();a=Math.max(a,b(this).css("height","").height());c||b(this).hide()}).height(a)}},_activate:function(a){a=this._findActive(a)[0];if(a!==this.active[0]){a=a||this.active[0];this._eventHandler({target:a,currentTarget:a,preventDefault:b.noop})}},_findActive:function(a){return typeof a==="number"?this.headers.eq(a):b()},_setupEvents:function(a){var c= 290{keydown:"_keydown"};a&&b.each(a.split(" "),function(a,b){c[b]="_eventHandler"});this._off(this.headers.add(this.headers.next()));this._on(this.headers,c);this._on(this.headers.next(),{keydown:"_panelKeyDown"});this._hoverable(this.headers);this._focusable(this.headers)},_eventHandler:function(a){var c,d=this.options,g=this.active,e=b(a.currentTarget),f=(c=e[0]===g[0])&&d.collapsible,h=f?b():e.next(),j=g.next(),h={oldHeader:g,oldPanel:j,newHeader:f?b():e,newPanel:h};a.preventDefault();if(!(c&&!d.collapsible|| 291this._trigger("beforeActivate",a,h)===false)){d.active=f?false:this.headers.index(e);this.active=c?b():e;this._toggle(h);this._removeClass(g,"ui-accordion-header-active","ui-state-active");if(d.icons){a=g.children(".ui-accordion-header-icon");this._removeClass(a,null,d.icons.activeHeader)._addClass(a,null,d.icons.header)}if(!c){this._removeClass(e,"ui-accordion-header-collapsed")._addClass(e,"ui-accordion-header-active","ui-state-active");if(d.icons){c=e.children(".ui-accordion-header-icon");this._removeClass(c, 292null,d.icons.header)._addClass(c,null,d.icons.activeHeader)}this._addClass(e.next(),"ui-accordion-content-active")}}},_toggle:function(a){var c=a.newPanel,d=this.prevShow.length?this.prevShow:a.oldPanel;this.prevShow.add(this.prevHide).stop(true,true);this.prevShow=c;this.prevHide=d;if(this.options.animate)this._animate(c,d,a);else{d.hide();c.show();this._toggleComplete(a)}d.attr({"aria-hidden":"true"});d.prev().attr({"aria-selected":"false","aria-expanded":"false"});c.length&&d.length?d.prev().attr({tabIndex:-1, 293"aria-expanded":"false"}):c.length&&this.headers.filter(function(){return parseInt(b(this).attr("tabIndex"),10)===0}).attr("tabIndex",-1);c.attr("aria-hidden","false").prev().attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_animate:function(a,b,d){var g,e,f,h=this,j=0,l=a.css("box-sizing"),n=a.length&&(!b.length||a.index()<b.index()),o=this.options.animate||{},n=n&&o.down||o,r=function(){h._toggleComplete(d)};typeof n==="number"&&(f=n);
293typeof n==="string"&&(e=n);e=e||n.easing||o.easing; 294f=f||n.duration||o.duration;if(!b.length)return a.animate(this.showProps,f,e,r);if(!a.length)return b.animate(this.hideProps,f,e,r);g=a.show().outerHeight();b.animate(this.hideProps,{duration:f,easing:e,step:function(a,b){b.now=Math.round(a)}});a.hide().animate(this.showProps,{duration:f,easing:e,complete:r,step:function(a,d){d.now=Math.round(a);if(d.prop!=="height")l==="content-box"&&(j=j+d.now);else if(h.options.heightStyle!=="content"){d.now=Math.round(g-b.outerHeight()-j);j=0}}})},_toggleComplete:function(a){var b= 295a.oldPanel,d=b.prev();this._removeClass(b,"ui-accordion-content-active");this._removeClass(d,"ui-accordion-header-active")._addClass(d,"ui-accordion-header-collapsed");if(b.length)b.parent()[0].className=b.parent()[0].className;this._trigger("activate",null,a)}});b.ui.safeActiveElement=function(a){var b;try{b=a.activeElement}catch(d){b=a.body}if(!b)b=a.body;if(!b.nodeName)b=a.body;return b};b.widget("ui.menu",{version:"1.12.1",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-caret-1-e"}, 296items:"> *",menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element;this.mouseHandled=false;this.element.uniqueId().attr({role:this.options.role,tabIndex:0});this._addClass("ui-menu","ui-widget ui-widget-content");this._on({"mousedown .ui-menu-item":function(a){a.preventDefault()},"click .ui-menu-item":function(a){var c=b(a.target),d=b(b.ui.safeActiveElement(this.document[0]));if(!this.mouseHandled&&c.not(".ui-state-disabled").length){this.select(a); 297if(!a.isPropagationStopped())this.mouseHandled=true;if(c.has(".ui-menu").length)this.expand(a);else if(!this.element.is(":focus")&&d.closest(".ui-menu").length){this.element.trigger("focus",[true]);this.active&&this.active.parents(".ui-menu").length===1&&clearTimeout(this.timer)}}},"mouseenter .ui-menu-item":function(a){if(!this.previousFilter){var c=b(a.target).closest(".ui-menu-item"),d=b(a.currentTarget);if(c[0]===d[0]){this._removeClass(d.siblings().children(".ui-state-active"),null,"ui-state-active"); 298this.focus(a,d)}}},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(a,b){var d=this.active||this.element.find(this.options.items).eq(0);b||this.focus(a,d)},blur:function(a){this._delay(function(){b.contains(this.element[0],b.ui.safeActiveElement(this.document[0]))||this.collapseAll(a)})},keydown:"_keydown"});this.refresh();this._on(this.document,{click:function(a){this._closeOnDocumentClick(a)&&this.collapseAll(a);this.mouseHandled=false}})},_destroy:function(){var a=this.element.find(".ui-menu-item").removeAttr("role aria-disabled").children(".ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-haspopup"); 299this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeAttr("role aria-labelledby aria-expanded aria-hidden aria-disabled tabIndex").removeUniqueId().show();a.children().each(function(){var a=b(this);a.data("ui-menu-submenu-caret")&&a.remove()})},_keydown:function(a){var c,d,g,e=true;switch(a.keyCode){case b.ui.keyCode.PAGE_UP:this.previousPage(a);break;case b.ui.keyCode.PAGE_DOWN:this.nextPage(a);break;case b.ui.keyCode.HOME:this._move("first","first",a);break;case b.ui.keyCode.END:this._move("last", 300"last",a);break;case b.ui.keyCode.UP:this.previous(a);break;case b.ui.keyCode.DOWN:this.next(a);break;case b.ui.keyCode.LEFT:this.collapse(a);break;case b.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(a);break;case b.ui.keyCode.ENTER:case b.ui.keyCode.SPACE:this._activate(a);break;case b.ui.keyCode.ESCAPE:this.collapse(a);break;default:e=false;c=this.previousFilter||"";g=false;d=a.keyCode>=96&&a.keyCode<=105?(a.keyCode-96).toString():String.fromCharCode(a.keyCode); 301clearTimeout(this.filterTimer);d===c?g=true:d=c+d;c=this._filterMenuItems(d);c=g&&c.index(this.active.next())!==-1?this.active.nextAll(".ui-menu-item"):c;
301if(!c.length){d=String.fromCharCode(a.keyCode);c=this._filterMenuItems(d)}if(c.length){this.focus(a,c);this.previousFilter=d;this.filterTimer=this._delay(function(){delete this.previousFilter},1E3)}else delete this.previousFilter}e&&a.preventDefault()},_activate:function(a){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length? 302this.expand(a):this.select(a))},refresh:function(){var a,c,d,g=this,e=this.options.icons.submenu;c=this.element.find(this.options.menus);this._toggleClass("ui-menu-icons",null,!!this.element.find(".ui-icon").length);a=c.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var a=b(this),c=a.prev(),d=b("<span>").data("ui-menu-submenu-caret",true);g._addClass(d,"ui-menu-icon","ui-icon "+e);c.attr("aria-haspopup","true").prepend(d); 303a.attr("aria-labelledby",c.attr("id"))});this._addClass(a,"ui-menu","ui-widget ui-widget-content ui-front");a=c.add(this.element).find(this.options.items);a.not(".ui-menu-item").each(function(){var a=b(this);g._isDivider(a)&&g._addClass(a,"ui-menu-divider","ui-widget-content")});c=a.not(".ui-menu-item, .ui-menu-divider");d=c.children().not(".ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()});this._addClass(c,"ui-menu-item")._addClass(d,"ui-menu-item-wrapper");a.filter(".ui-state-disabled").attr("aria-disabled", 304"true");this.active&&!b.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(a,b){if(a==="icons"){var d=this.element.find(".ui-menu-icon");this._removeClass(d,null,this.options.icons.submenu)._addClass(d,null,b.submenu)}this._super(a,b)},_setOptionDisabled:function(a){this._super(a);this.element.attr("aria-disabled",String(a));this._toggleClass(null,"ui-state-disabled",!!a)},focus:function(a,b){var d; 305this.blur(a,a&&a.type==="focus");this._scrollIntoView(b);this.active=b.first();d=this.active.children(".ui-menu-item-wrapper");this._addClass(d,null,"ui-state-active");this.options.role&&this.element.attr("aria-activedescendant",d.attr("id"));d=this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper");this._addClass(d,null,"ui-state-active");a&&a.type==="keydown"?this._close():this.timer=this._delay(function(){this._close()},this.delay);d=b.children(".ui-menu");d.length&&(a&& 306/^mouse/.test(a.type))&&this._startOpening(d);this.activeMenu=b.parent();this._trigger("focus",a,{item:b})},_scrollIntoView:function(a){var c,d,g;if(this._hasScroll()){c=parseFloat(b.css(this.activeMenu[0],"borderTopWidth"))||0;d=parseFloat(b.css(this.activeMenu[0],"paddingTop"))||0;c=a.offset().top-this.activeMenu.offset().top-c-d;d=this.activeMenu.scrollTop();g=this.activeMenu.height();a=a.outerHeight();c<0?this.activeMenu.scrollTop(d+c):c+a>g&&this.activeMenu.scrollTop(d+c-g+a)}},blur:function(a, 307b){b||clearTimeout(this.timer);if(this.active){this._removeClass(this.active.children(".ui-menu-item-wrapper"),null,"ui-state-active");this._trigger("blur",a,{item:this.active});this.active=null}},_startOpening:function(a){clearTimeout(this.timer);if(a.attr("aria-hidden")==="true")this.timer=this._delay(function(){this._close();this._open(a)},this.delay)},_open:function(a){var c=b.extend({of:this.active},this.options.position);clearTimeout(this.timer);this.element.find(".ui-menu").not(a.parents(".ui-menu")).hide().attr("aria-hidden", 308"true");a.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(c)},collapseAll:function(a,c){clearTimeout(this.timer);this.timer=this._delay(function(){var d=c?this.element:b(a&&a.target).closest(this.element.find(".ui-menu"));if(!d.length)d=this.element;this._close(d);this.blur(a);this._removeClass(d.find(".ui-state-active"),null,"ui-state-active");this.activeMenu=d},this.delay)},_close:function(a){a||(a=this.active?this.active.parent():this.element);a.find(".ui-menu").hide().attr("aria-hidden", 309"true").attr("aria-expanded","false")},_closeOnDocumentClick:function(a){return!b(a.target).closest(".ui-menu").length},_isDivider:function(a){return!/[^\-\u2014\u2013\s]/.test(a.text())},collapse:function(a){var b=this.active&&this.active.parent().closest(".ui-menu-item",this.element);if(b&&b.length){this._close();this.focus(a,b)}},expand:function(a){var b=this.active&&this.active.children(".ui-menu ").find(this.options.items).first();if(b&&b.length){this._open(b.parent());this._delay(function(){this.focus(a, 310b)})}},next:function(a){this._move("next","first",a)},previous:function(a){this._move("prev","last",a)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_move:function(a,b,d){var g;this.active&&(g=a==="first"||a==="last"?this.active[a==="first"?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[a+"All"](".ui-menu-item").eq(0));if(!g||!g.length||!this.active)g=this.activeMenu.find(this.options.items)[b](); 311this.focus(d,g)},nextPage:function(a){var c,d,g;if(this.active){if(!this.isLastItem())if(this._hasScroll()){d=this.active.offset().top;g=this.element.height();this.active.nextAll(".ui-menu-item").each(function(){c=b(this);return c.offset().top-d-g<0});this.focus(a,c)}else this.focus(a,this.activeMenu.find(this.options.items)[!this.active?"first":"last"]())}else this.next(a)},previousPage:function(a){var c,d,g;if(this.active){if(!this.isFirstItem())if(this._hasScroll()){d=this.active.offset().top; 312g=this.element.height();this.active.prevAll(".ui-menu-item").each(function(){c=b(this);return c.offset().top-d+g>0});this.focus(a,c)}else this.focus(a,this.activeMenu.find(this.options.items).first())}else this.next(a)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(a){this.active=this.active||b(a.target).closest(".ui-menu-item");var c={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(a,true);this._trigger("select", 313a,c)},_filterMenuItems:function(a){var a=a.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"),c=RegExp("^"+a,"i");return this.activeMenu.find(this.options.items).filter(".ui-menu-item").filter(function(){return c.test(b.trim(b(this).children(".ui-menu-item-wrapper").text()))})}});b.widget("ui.autocomplete",{version:"1.12.1",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null, 314open:null,response:null,search:null,select:null},requestIndex:0,pending:0,_create:function(){var a,c,d,g=this.element[0].nodeName.toLowerCase(),e=g==="textarea",g=g==="input";this.isMultiLine=e||!g&&this._isContentEditable(this.element);this.valueMethod=this.element[e||g?"val":"text"];this.isNewMenu=true;this._addClass("ui-autocomplete-input");this.element.attr("autocomplete","off");this._on(this.element,{keydown:function(g){if(this.element.prop("readOnly"))c=d=a=true;else{c=d=a=false;var e=b.ui.keyCode; 315switch(g.keyCode){case e.PAGE_UP:a=true;this._move("previousPage",g);break;case e.PAGE_DOWN:a=true;this._move("nextPage",g);break;case e.UP:a=true;this._keyEvent("previous",g);break;case e.DOWN:a=true;this._keyEvent("next",g);break;case e.ENTER:if(this.menu.active){a=true;g.preventDefault();this.menu.select(g)}break;case e.TAB:this.menu.active&&this.menu.select(g);break;case e.ESCAPE:if(this.menu.element.is(":visible")){this.isMultiLine||this._value(this.term);this.close(g);g.preventDefault()}break; 316default:c=true;this._searchTimeout(g)}}},keypress:function(d){if(a){a=false;(!this.isMultiLine||this.menu.element.is(":visible"))&&d.preventDefault()}else if(!c){var g=b.ui.keyCode;switch(d.keyCode){case g.PAGE_UP:this._move("previousPage",d);break;case g.PAGE_DOWN:this._move("nextPage",d);break;case g.UP:this._keyEvent("previous",d);break;case g.DOWN:this._keyEvent("next",d)}}}
316,input:function(a){if(d){d=false;a.preventDefault()}else this._searchTimeout(a)},focus:function(){this.selectedItem=null; 317this.previous=this._value()},blur:function(a){if(this.cancelBlur)delete this.cancelBlur;else{clearTimeout(this.searching);this.close(a);this._change(a)}}});this._initSource();this.menu=b("<ul>").appendTo(this._appendTo()).menu({role:null}).hide().menu("instance");this._addClass(this.menu.element,"ui-autocomplete","ui-front");this._on(this.menu.element,{mousedown:function(a){a.preventDefault();this.cancelBlur=true;this._delay(function(){delete this.cancelBlur;this.element[0]!==b.ui.safeActiveElement(this.document[0])&& 318this.element.trigger("focus")})},menufocus:function(a,c){var d;if(this.isNewMenu){this.isNewMenu=false;if(a.originalEvent&&/^mouse/.test(a.originalEvent.type)){this.menu.blur();this.document.one("mousemove",function(){b(a.target).trigger(a.originalEvent)});return}}d=c.item.data("ui-autocomplete-item");false!==this._trigger("focus",a,{item:d})&&a.originalEvent&&/^key/.test(a.originalEvent.type)&&this._value(d.value);if((d=c.item.attr("aria-label")||d.value)&&b.trim(d).length){this.liveRegion.children().hide(); 319b("<div>").text(d).appendTo(this.liveRegion)}},menuselect:function(a,c){var d=c.item.data("ui-autocomplete-item"),g=this.previous;if(this.element[0]!==b.ui.safeActiveElement(this.document[0])){this.element.trigger("focus");this.previous=g;this._delay(function(){this.previous=g;this.selectedItem=d})}false!==this._trigger("select",a,{item:d})&&this._value(d.value);this.term=this._value();this.close(a);this.selectedItem=d}});this.liveRegion=b("<div>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body); 320this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible");this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching);this.element.removeAttr("autocomplete");this.menu.element.remove();this.liveRegion.remove()},_setOption:function(a,b){this._super(a,b);a==="source"&&this._initSource();a==="appendTo"&&this.menu.element.appendTo(this._appendTo());a==="disabled"&&(b&&this.xhr)&&this.xhr.abort()},_isEventTargetInWidget:function(a){var c= 321this.menu.element[0];return a.target===this.element[0]||a.target===c||b.contains(c,a.target)},_closeOnClickOutside:function(a){this._isEventTargetInWidget(a)||this.close()},_appendTo:function(){var a=this.options.appendTo;a&&(a=a.jquery||a.nodeType?b(a):this.document.find(a).eq(0));if(!a||!a[0])a=this.element.closest(".ui-front, dialog");if(!a.length)a=this.document[0].body;return a},_initSource:function(){var a,c,d=this;if(b.isArray(this.options.source)){a=this.options.source;this.source=function(c, 322d){d(b.ui.autocomplete.filter(a,c.term))}}else if(typeof this.options.source==="string"){c=this.options.source;this.source=function(a,e){d.xhr&&d.xhr.abort();d.xhr=b.ajax({url:c,data:a,dataType:"json",success:function(a){e(a)},error:function(){e([])}})}}else this.source=this.options.source},_searchTimeout:function(a){clearTimeout(this.searching);this.searching=this._delay(function(){var b=this.term===this._value(),d=this.menu.element.is(":visible"),g=a.altKey||a.ctrlKey||a.metaKey||a.shiftKey;if(!b|| 323b&&!d&&!g){this.selectedItem=null;this.search(null,a)}},this.options.delay)},search:function(a,b){a=a!=null?a:this._value();this.term=this._value();if(a.length<this.options.minLength)return this.close(b);if(this._trigger("search",b)!==false)return this._search(a)},_search:function(a){this.pending++;this._addClass("ui-autocomplete-loading");this.cancelSearch=false;this.source({term:a},this._response())},_response:function(){var a=++this.requestIndex;return b.proxy(function(b){a===this.requestIndex&& 324this.__response(b);this.pending--;this.pending||this._removeClass("ui-autocomplete-loading")},this)},__response:function(a){a&&(a=this._normalize(a));this._trigger("response",null,{content:a});if(!this.options.disabled&&a&&a.length&&!this.cancelSearch){this._suggest(a);this._trigger("open")}else this._close()},close:function(a){this.cancelSearch=true;this._close(a)},_close:function(a){this._off(this.document,"mousedown");if(this.menu.element.is(":visible")){this.menu.element.hide();this.menu.blur(); 325this.isNewMenu=true;this._trigger("close",a)}}
325,_change:function(a){this.previous!==this._value()&&this._trigger("change",a,{item:this.selectedItem})},_normalize:function(a){return a.length&&a[0].label&&a[0].value?a:b.map(a,function(a){return typeof a==="string"?{label:a,value:a}:b.extend({},a,{label:a.label||a.value,value:a.value||a.label})})},_suggest:function(a){var c=this.menu.element.empty();this._renderMenu(c,a);this.isNewMenu=true;this.menu.refresh();c.show();this._resizeMenu();c.position(b.extend({of:this.element}, 326this.options.position));this.options.autoFocus&&this.menu.next();this._on(this.document,{mousedown:"_closeOnClickOutside"})},_resizeMenu:function(){var a=this.menu.element;a.outerWidth(Math.max(a.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(a,c){var d=this;b.each(c,function(b,c){d._renderItemData(a,c)})},_renderItemData:function(a,b){return this._renderItem(a,b).data("ui-autocomplete-item",b)},_renderItem:function(a,c){return b("<li>").append(b("<div>").text(c.label)).appendTo(a)}, 327_move:function(a,b){if(this.menu.element.is(":visible"))if(this.menu.isFirstItem()&&/^previous/.test(a)||this.menu.isLastItem()&&/^next/.test(a)){this.isMultiLine||this._value(this.term);this.menu.blur()}else this.menu[a](b);else this.search(null,b)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(a,b){if(!this.isMultiLine||this.menu.element.is(":visible")){this._move(a,b);b.preventDefault()}},_isContentEditable:function(a){if(!a.length)return false; 328var b=a.prop("contentEditable");return b==="inherit"?this._isContentEditable(a.parent()):b==="true"}});b.extend(b.ui.autocomplete,{escapeRegex:function(a){return a.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(a,c){var d=RegExp(b.ui.autocomplete.escapeRegex(c),"i");return b.grep(a,function(a){return d.test(a.label||a.value||a)})}});b.widget("ui.autocomplete",b.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(a){return a+(a>1?" results are":" result is")+ 329" available, use up and down arrow keys to navigate."}}},__response:function(a){var c;this._superApply(arguments);if(!this.options.disabled&&!this.cancelSearch){c=a&&a.length?this.options.messages.results(a.length):this.options.messages.noResults;this.liveRegion.children().hide();b("<div>").text(c).appendTo(this.liveRegion)}}});var ha=/ui-corner-([a-z]){2,6}/g;b.widget("ui.controlgroup",{version:"1.12.1",defaultElement:"<div>",options:{direction:"horizontal",disabled:null,onlyVisible:!0,items:{button:"input[type=button], input[type=submit], input[type=reset], button, a", 330controlgroupLabel:".ui-controlgroup-label",checkboxradio:"input[type='checkbox'], input[type='radio']",selectmenu:"select",spinner:".ui-spinner-input"}},_create:function(){this._enhance()},_enhance:function(){this.element.attr("role","toolbar");this.refresh()},_destroy:function(){this._callChildMethod("destroy");this.childWidgets.removeData("ui-controlgroup-data");this.element.removeAttr("role");this.options.items.controlgroupLabel&&this.element.find(this.options.items.controlgroupLabel).find(".ui-controlgroup-label-contents").contents().unwrap()}, 331_initWidgets:function(){var a=this,c=[];b.each(this.options.items,function(d,g){var e,f={};if(g)if(d==="controlgroupLabel"){e=a.element.find(g);e.each(function(){var a=b(this);a.children(".ui-controlgroup-label-contents").length||a.contents().wrapAll("<span class='ui-controlgroup-label-contents'></span>")});a._addClass(e,null,"ui-widget ui-widget-content ui-state-default");c=c.concat(e.get())}else if(b.fn[d]){f=a["_"+d+"Options"]?a["_"+d+"Options"]("middle"):{classes:{}};a.element.find(g).each(function(){var g= 332b(this),e=g[d]("instance"),m=b.widget.extend({},f);if(!(d==="button"&&g.parent(".ui-spinner").length)){e||(e=g[d]()[d]("instance"));if(e)m.classes=a._resolveClassesValues(m.classes,e);g[d](m);m=g[d]("widget");b.data(m[0],"ui-controlgroup-data",e?e:g[d]("instance"));c.push(m[0])}})}});this.childWidgets=b(b.uniqueSort(c));this._addClass(this.childWidgets,"ui-controlgroup-item")},_callChildMethod:function(a){this.childWidgets.each(function(){var c=b(this).data("ui-controlgroup-data");if(c&&c[a])c[a]()})}, 333_updateCornerClass:function(a,b){var d=this._buildSimpleOptions(b,"label").classes.label;this._removeClass(a,null,"ui-corner-top ui-corner-bottom ui-corner-left ui-corner-right ui-corner-all");this._addClass(a,null,d)},_buildSimpleOptions:function(a,b){var d=this.options.direction==="vertical",g={classes:{}};g.classes[b]={middle:"",first:"ui-corner-"+(d?"top":"left"),last:"ui-corner-"+(d?"bottom":"right"),only:"ui-corner-all"}[a];return g},_spinnerOptions:function(a){a=this._buildSimpleOptions(a, 334"ui-spinner");a.classes["ui-spinner-up"]="";a.classes["ui-spinner-down"]="";return a},_buttonOptions:function(a){return this._buildSimpleOptions(a,"ui-button")},_checkboxradioOptions:function(a){return this._buildSimpleOptions(a,"ui-checkboxradio-label")},_selectmenuOptions:function(a){var b=this.options.direction==="vertical";return{width:b?"auto":false,classes:{middle:{"ui-selectmenu-button-open":"","ui-selectmenu-button-closed":""},first:{"ui-selectmenu-button-open":"ui-corner-"+(b?"top":"tl"), 335"ui-selectmenu-button-closed":"ui-corner-"+(b?"top":"left")},last:{"ui-selectmenu-button-open":b?"":"ui-corner-tr","ui-selectmenu-button-closed":"ui-corner-"+(b?"bottom":"right")},only:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"}}[a]}},_resolveClassesValues:function(a,c){var d={};b.each(a,function(g){var e=c.options.classes[g]||"",e=b.trim(e.replace(ha,""));d[g]=(e+" "+a[g]).replace(/\s+/g," ")});return d},_setOption:function(a,b){a==="direction"&&this._removeClass("ui-controlgroup-"+ 336this.options.direction);this._super(a,b);a==="disabled"?this._callChildMethod(b?"disable":"enable"):this.refresh()},refresh:function(){var a,c=this;this._addClass("ui-controlgroup ui-controlgroup-"+this.options.direction);this.options.direction==="horizontal"&&this._addClass(null,"ui-helper-clearfix");this._initWidgets();a=this.childWidgets;this.options.onlyVisible&&(a=a.filter(":visible"));if(a.length){b.each(["first","last"],function(b,g){var e=a[g]().data("ui-controlgroup-data");if(e&&c["_"+e.widgetName+ 337"Options"]){var f=c["_"+e.widgetName+"Options"](a.length===1?"only":g);f.classes=c._resolveClassesValues(f.classes,e);e.element[e.widgetName](f)}else c._updateCornerClass(a[g](),g)});this._callChildMethod("refresh")}}});b.widget("ui.checkboxradio",[b.ui.formResetMixin,{version:"1.12.1",options:{disabled:null,label:null,icon:!0,classes:{"ui-checkboxradio-label":"ui-corner-all","ui-checkboxradio-icon":"ui-corner-all"}},_getCreateOptions:function(){var a,c=this,d=this._super()||{};this._readType();a= 338this.element.labels();this.label=b(a[a.length-1]);this.label.length||b.error("No label found for checkboxradio widget");this.originalLabel="";this.label.contents().not(this.element[0]).each(function(){c.originalLabel=c.originalLabel+(this.nodeType===3?b(this).text():this.outerHTML)});if(this.originalLabel)d.label=this.originalLabel;a=this.element[0].disabled;if(a!=null)d.disabled=a;return d},_create:function(){var a=this.element[0].checked;this._bindFormResetHandler();if(this.options.disabled==null)this.options.disabled= 339this.element[0].disabled;this._setOption("disabled",this.options.disabled);this._addClass("ui-checkboxradio","ui-helper-hidden-accessible");this._addClass(this.label,"ui-checkboxradio-label","ui-button ui-widget");this.type==="radio"&&this._addClass(this.label,"ui-checkboxradio-radio-label");if(this.options.label&&this.options.label!==this.originalLabel)this._updateLabel();else if(this.originalLabel)this.options.label=this.originalLabel;this._enhance();if(a){this._addClass(this.label,"ui-checkboxradio-checked", 340"ui-state-active");this.icon&&this._addClass(this.icon,null,"ui-state-hover")}this._on({change:"_toggleClasses",focus:function(){this._addClass(this.label,null,"ui-state-focus ui-visual-focus")},blur:function(){this._removeClass(this.label,null,"ui-state-focus ui-visual-focus")}})},_readType:function(){var a=this.element[0].nodeName.toLowerCase();this.type=this.element[0].type;
340(a!=="input"||!/radio|checkbox/.test(this.type))&&b.error("Can't create checkboxradio on element.nodeName="+a+" and element.type="+ 341this.type)},_enhance:function(){this._updateIcon(this.element[0].checked)},widget:function(){return this.label},_getRadioGroup:function(){var a=this.element[0].name,c="input[name='"+b.ui.escapeSelector(a)+"']";return!a?b([]):(this.form.length?b(this.form[0].elements).filter(c):b(c).filter(function(){return b(this).form().length===0})).not(this.element)},_toggleClasses:function(){var a=this.element[0].checked;this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",a);this.options.icon&& 342this.type==="checkbox"&&this._toggleClass(this.icon,null,"ui-icon-check ui-state-checked",a)._toggleClass(this.icon,null,"ui-icon-blank",!a);this.type==="radio"&&this._getRadioGroup().each(function(){var a=b(this).checkboxradio("instance");a&&a._removeClass(a.label,"ui-checkboxradio-checked","ui-state-active")})},_destroy:function(){this._unbindFormResetHandler();if(this.icon){this.icon.remove();this.iconSpace.remove()}},_setOption:function(a,b){if(a!=="label"||b){this._super(a,b);if(a==="disabled"){this._toggleClass(this.label, 343null,"ui-state-disabled",b);this.element[0].disabled=b}else this.refresh()}},_updateIcon:function(a){var c="ui-icon ui-icon-background ";if(this.options.icon){if(!this.icon){this.icon=b("<span>");this.iconSpace=b("<span> </span>");
343this._addClass(this.iconSpace,"ui-checkboxradio-icon-space")}if(this.type==="checkbox"){c=c+(a?"ui-icon-check ui-state-checked":"ui-icon-blank");this._removeClass(this.icon,null,a?"ui-icon-blank":"ui-icon-check")}else c=c+"ui-icon-blank";this._addClass(this.icon,"ui-checkboxradio-icon", 344c);a||this._removeClass(this.icon,null,"ui-icon-check ui-state-checked");this.icon.prependTo(this.label).after(this.iconSpace)}else if(this.icon!==void 0){this.icon.remove();this.iconSpace.remove();delete this.icon}},_updateLabel:function(){var a=this.label.contents().not(this.element[0]);this.icon&&(a=a.not(this.icon[0]));this.iconSpace&&(a=a.not(this.iconSpace[0]));a.remove();this.label.append(this.options.label)},refresh:function(){var a=this.element[0].checked,b=this.element[0].disabled;this._updateIcon(a); 345this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",a);this.options.label!==null&&this._updateLabel();b!==this.options.disabled&&this._setOptions({disabled:b})}}]);b.widget("ui.button",{version:"1.12.1",defaultElement:"<button>",options:{classes:{"ui-button":"ui-corner-all"},disabled:null,icon:null,iconPosition:"beginning",label:null,showLabel:!0},_getCreateOptions:function(){var a,b=this._super()||{};this.isInput=this.element.is("input");a=this.element[0].disabled;if(a!=null)b.disabled= 346a;if(this.originalLabel=this.isInput?this.element.val():this.element.html())b.label=this.originalLabel;return b},_create:function(){if(!this.option.showLabel&!this.options.icon)this.options.showLabel=true;if(this.options.disabled==null)this.options.disabled=this.element[0].disabled||false;this.hasTitle=!!this.element.attr("title");this.options.label&&this.options.label!==this.originalLabel&&(this.isInput?this.element.val(this.options.label):this.element.html(this.options.label));this._addClass("ui-button", 347"ui-widget");this._setOption("disabled",this.options.disabled);this._enhance();this.element.is("a")&&this._on({keyup:function(a){if(a.keyCode===b.ui.keyCode.SPACE){a.preventDefault();this.element[0].click?this.element[0].click():this.element.trigger("click")}}})},_enhance:function(){this.element.is("button")||this.element.attr("role","button");if(this.options.icon){this._updateIcon("icon",this.options.icon);this._updateTooltip()}},_updateTooltip:function(){this.title=this.element.attr("title");!this.options.showLabel&& 348!this.title&&this.element.attr("title",this.options.label)},_updateIcon:function(a,c){var d=a!=="iconPosition",g=d?this.options.iconPosition:c,e=g==="top"||g==="bottom";if(this.icon)d&&this._removeClass(this.icon,null,this.options.icon);else{this.icon=b("<span>");this._addClass(this.icon,"ui-button-icon","ui-icon");this.options.showLabel||this._addClass("ui-button-icon-only")}d&&this._addClass(this.icon,null,c);this._attachIcon(g);if(e){this._addClass(this.icon,null,"ui-widget-icon-block");this.iconSpace&& 349this.iconSpace.remove()}else{if(!this.iconSpace){this.iconSpace=b("<span> </span>");
349this._addClass(this.iconSpace,"ui-button-icon-space")}this._removeClass(this.icon,null,"ui-wiget-icon-block");this._attachIconSpace(g)}},_destroy:function(){this.element.removeAttr("role");this.icon&&this.icon.remove();this.iconSpace&&this.iconSpace.remove();this.hasTitle||this.element.removeAttr("title")},_attachIconSpace:function(a){this.icon[/^(?:end|bottom)/.test(a)?"before":"after"](this.iconSpace)},_attachIcon:function(a){this.element[/^(?:end|bottom)/.test(a)? 350"append":"prepend"](this.icon)},_setOptions:function(a){var b=a.icon===void 0?this.options.icon:a.icon;if(!(a.showLabel===void 0?this.options.showLabel:a.showLabel)&&!b)a.showLabel=true;this._super(a)},_setOption:function(a,b){if(a==="icon")if(b)this._updateIcon(a,b);else if(this.icon){this.icon.remove();this.iconSpace&&this.iconSpace.remove()}a==="iconPosition"&&this._updateIcon(a,b);if(a==="showLabel"){this._toggleClass("ui-button-icon-only",null,!b);this._updateTooltip()}if(a==="label")if(this.isInput)this.element.val(b); 351else{this.element.html(b);if(this.icon){this._attachIcon(this.options.iconPosition);this._attachIconSpace(this.options.iconPosition)}}this._super(a,b);if(a==="disabled"){this._toggleClass(null,"ui-state-disabled",b);(this.element[0].disabled=b)&&this.element.blur()}},refresh:function(){var a=this.element.is("input, button")?this.element[0].disabled:this.element.hasClass("ui-button-disabled");a!==this.options.disabled&&this._setOptions({disabled:a});this._updateTooltip()}});if(!1!==b.uiBackCompat){b.widget("ui.button", 352b.ui.button,{options:{text:!0,icons:{primary:null,secondary:null}},_create:function(){if(this.options.showLabel&&!this.options.text)this.options.showLabel=this.options.text;if(!this.options.showLabel&&this.options.text)this.options.text=this.options.showLabel;if(!this.options.icon&&(this.options.icons.primary||this.options.icons.secondary))if(this.options.icons.primary)this.options.icon=this.options.icons.primary;else{this.options.icon=this.options.icons.secondary;this.options.iconPosition="end"}else if(this.options.icon)this.options.icons.primary= 353this.options.icon;this._super()},_setOption:function(a,b){if(a==="text")this._super("showLabel",b);else{if(a==="showLabel")this.options.text=b;if(a==="icon")this.options.icons.primary=b;if(a==="icons")if(b.primary){this._super("icon",b.primary);this._super("iconPosition","beginning")}else if(b.secondary){this._super("icon",b.secondary);this._super("iconPosition","end")}this._superApply(arguments)}}});var za=b.fn.button;b.fn.button=function(){if(!this.length||this.length&&this[0].tagName!=="INPUT"|| 354this.length&&this[0].tagName==="INPUT"&&this.attr("type")!=="checkbox"&&this.attr("type")!=="radio")return za.apply(this,arguments);b.ui.checkboxradio||b.error("Checkboxradio widget missing");return arguments.length===0?this.checkboxradio({icon:false}):this.checkboxradio.apply(this,arguments)};b.fn.buttonset=function(){b.ui.controlgroup||b.error("Controlgroup widget missing");if(arguments[0]==="option"&&arguments[1]==="items"&&arguments[2])return this.controlgroup.apply(this,[arguments[0],"items.button", 355arguments[2]]);if(arguments[0]==="option"&&arguments[1]==="items")return this.controlgroup.apply(this,[arguments[0],"items.button"]);if(typeof arguments[0]==="object"&&arguments[0].items)arguments[0].items={button:arguments[0].items};return this.controlgroup.apply(this,arguments)}}b.extend(b.ui,{datepicker:{version:"1.12.1"}});var X;b.extend(f.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(a){l(this._defaults,a||{});return this}, 356_attachDatepicker:function(a,c){var d,g,e;d=a.nodeName.toLowerCase();g=d==="div"||d==="span";if(!a.id){this.uuid=this.uuid+1;a.id="dp"+this.uuid}e=this._newInst(b(a),g);e.settings=b.extend({},c||{});d==="input"?this._connectDatepicker(a,e):g&&this._inlineDatepicker(a,e)},_newInst:function(a,c){return{id:a[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1"),input:a,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:c,dpDiv:!c?this.dpDiv:h(b("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}}, 357_connectDatepicker:function(a,c){var d=b(a);c.append=b([]);
357c.trigger=b([]);if(!d.hasClass(this.markerClassName)){this._attachments(d,c);d.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp);this._autoSize(c);b.data(a,"datepicker",c);c.settings.disabled&&this._disableDatepicker(a)}},_attachments:function(a,c){var d,g;d=this._get(c,"appendText");var e=this._get(c,"isRTL");c.append&&c.append.remove();if(d){c.append=b("<span class='"+ 358this._appendClass+"'>"+d+"</span>");a[e?"before":"after"](c.append)}a.off("focus",this._showDatepicker);c.trigger&&c.trigger.remove();d=this._get(c,"showOn");if(d==="focus"||d==="both")a.on("focus",this._showDatepicker);if(d==="button"||d==="both"){d=this._get(c,"buttonText");g=this._get(c,"buttonImage");c.trigger=b(this._get(c,"buttonImageOnly")?b("<img/>").addClass(this._triggerClass).attr({src:g,alt:d,title:d}):b("<button type='button'></button>").addClass(this._triggerClass).html(!g?d:b("<img/>").attr({src:g, 359alt:d,title:d})));a[e?"before":"after"](c.trigger);c.trigger.on("click",function(){if(b.datepicker._datepickerShowing&&b.datepicker._lastInput===a[0])b.datepicker._hideDatepicker();else{b.datepicker._datepickerShowing&&b.datepicker._lastInput!==a[0]&&b.datepicker._hideDatepicker();b.datepicker._showDatepicker(a[0])}return false})}},_autoSize:function(a){if(this._get(a,"autoSize")&&!a.inline){var b,d,g,e,f=new Date(2009,11,20),h=this._get(a,"dateFormat");if(h.match(/[DM]/)){b=function(a){for(e=g=d= 3600;e<a.length;e++)if(a[e].length>d){d=a[e].length;g=e}return g};f.setMonth(b(this._get(a,h.match(/MM/)?"monthNames":"monthNamesShort")));f.setDate(b(this._get(a,h.match(/DD/)?"dayNames":"dayNamesShort"))+20-f.getDay())}a.input.attr("size",this._formatDate(a,f).length)}},_inlineDatepicker:function(a,c){var d=b(a);if(!d.hasClass(this.markerClassName)){d.addClass(this.markerClassName).append(c.dpDiv);b.data(a,"datepicker",c);this._setDate(c,this._getDefaultDate(c),true);this._updateDatepicker(c);this._updateAlternate(c); 361c.settings.disabled&&this._disableDatepicker(a);c.dpDiv.css("display","block")}},_dialogDatepicker:function(a,c,d,g,e){var f,a=this._dialogInst;if(!a){this.uuid=this.uuid+1;a="dp"+this.uuid;this._dialogInput=b("<input type='text' id='"+a+"' style='position: absolute; top: -100px; width: 0px;'/>");this._dialogInput.on("keydown",this._doKeyDown);b("body").append(this._dialogInput);a=this._dialogInst=this._newInst(this._dialogInput,false);a.settings={};b.data(this._dialogInput[0],"datepicker",a)}l(a.settings, 362g||{});c=c&&c.constructor===Date?this._formatDate(a,c):c;this._dialogInput.val(c);this._pos=e?e.length?e:[e.pageX,e.pageY]:null;if(!this._pos){c=document.documentElement.clientWidth;g=document.documentElement.clientHeight;e=document.documentElement.scrollLeft||document.body.scrollLeft;f=document.documentElement.scrollTop||document.body.scrollTop;this._pos=[c/2-100+e,g/2-150+f]}this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px");a.settings.onSelect=d;this._inDialog=true; 363this.dpDiv.addClass(this._dialogClass);this._showDatepicker(this._dialogInput[0]);b.blockUI&&b.blockUI(this.dpDiv);b.data(this._dialogInput[0],"datepicker",a);return this},_destroyDatepicker:function(a){var c,d=b(a),g=b.data(a,"datepicker");if(d.hasClass(this.markerClassName)){c=a.nodeName.toLowerCase();b.removeData(a,"datepicker");if(c==="input"){g.append.remove();g.trigger.remove();d.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress", 364this._doKeyPress).off("keyup",this._doKeyUp)}else(c==="div"||c==="span")&&d.removeClass(this.markerClassName).empty();X===g&&(X=null)}},_enableDatepicker:function(a){var c,d=b(a),g=b.data(a,"datepicker");if(d.hasClass(this.markerClassName)){c=a.nodeName.toLowerCase();if(c==="input"){a.disabled=false;g.trigger.filter("button").each(function(){this.disabled=false}).end().filter("img").css({opacity:"1.0",cursor:""})}else if(c==="div"||c==="span"){c=d.children("."+this._inlineClass);c.children().removeClass("ui-state-disabled"); 365c.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",fal
365se)}this._disabledInputs=b.map(this._disabledInputs,function(b){return b===a?null:b})}},_disableDatepicker:function(a){var c,d=b(a),g=b.data(a,"datepicker");if(d.hasClass(this.markerClassName)){c=a.nodeName.toLowerCase();if(c==="input"){a.disabled=true;g.trigger.filter("button").each(function(){this.disabled=true}).end().filter("img").css({opacity:"0.5",cursor:"default"})}else if(c==="div"||c==="span"){c=d.children("."+ 366this._inlineClass);c.children().addClass("ui-state-disabled");c.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",true)}this._disabledInputs=b.map(this._disabledInputs,function(b){return b===a?null:b});this._disabledInputs[this._disabledInputs.length]=a}},_isDisabledDatepicker:function(a){if(!a)return false;for(var b=0;b<this._disabledInputs.length;b++)if(this._disabledInputs[b]===a)return true;return false},_getInst:function(a){try{return b.data(a,"datepicker")}catch(c){throw"Missing instance data for this datepicker"; 367}},_optionDatepicker:function(a,c,d){var g,e,f,h,j=this._getInst(a);
367if(arguments.length===2&&typeof c==="string")return c==="defaults"?b.extend({},b.datepicker._defaults):j?c==="all"?b.extend({},j.settings):this._get(j,c):null;g=c||{};if(typeof c==="string"){g={};g[c]=d}if(j){this._curInst===j&&this._hideDatepicker();e=this._getDateDatepicker(a,true);f=this._getMinMaxDate(j,"min");h=this._getMinMaxDate(j,"max");l(j.settings,g);if(f!==null&&g.dateFormat!==void 0&&g.minDate===void 0)j.settings.minDate= 368this._formatDate(j,f);if(h!==null&&g.dateFormat!==void 0&&g.maxDate===void 0)j.settings.maxDate=this._formatDate(j,h);"disabled"in g&&(g.disabled?this._disableDatepicker(a):this._enableDatepicker(a));this._attachments(b(a),j);this._autoSize(j);this._setDate(j,e);this._updateAlternate(j);this._updateDatepicker(j)}},_changeDatepicker:function(a,b,d){this._optionDatepicker(a,b,d)},_refreshDatepicker:function(a){(a=this._getInst(a))&&this._updateDatepicker(a)},_setDateDatepicker:function(a,b){var d=this._getInst(a); 369if(d){this._setDate(d,b);this._updateDatepicker(d);this._updateAlternate(d)}},_getDateDatepicker:function(a,b){var d=this._getInst(a);d&&!d.inline&&this._setDateFromField(d,b);return d?this._getDate(d):null},_doKeyDown:function(a){var c,d=b.datepicker._getInst(a.target);c=true;var g=d.dpDiv.is(".ui-datepicker-rtl");d._keyEvent=true;if(b.datepicker._datepickerShowing)switch(a.keyCode){case 9:b.datepicker._hideDatepicker();c=false;break;case 13:c=b("td."+b.datepicker._dayOverClass+":not(."+b.datepicker._currentClass+ 370")",d.dpDiv);c[0]&&b.datepicker._selectDay(a.target,d.selectedMonth,d.selectedYear,c[0]);if(a=b.datepicker._get(d,"onSelect")){c=b.datepicker._formatDate(d);a.apply(d.input?d.input[0]:null,[c,d])}else b.datepicker._hideDatepicker();return false;case 27:b.datepicker._hideDatepicker();break;case 33:b.datepicker._adjustDate(a.target,a.ctrlKey?-b.datepicker._get(d,"stepBigMonths"):-b.datepicker._get(d,"stepMonths"),"M");break;case 34:b.datepicker._adjustDate(a.target,a.ctrlKey?+b.datepicker._get(d,"stepBigMonths"): 371+b.datepicker._get(d,"stepMonths"),"M");break;case 35:(a.ctrlKey||a.metaKey)&&b.datepicker._clearDate(a.target);c=a.ctrlKey||a.metaKey;break;case 36:(a.ctrlKey||a.metaKey)&&b.datepicker._gotoToday(a.target);c=a.ctrlKey||a.metaKey;break;case 37:if(a.ctrlKey||a.metaKey)b.datepicker._adjustDate(a.target,g?1:-1,"D");c=a.ctrlKey||a.metaKey;a.originalEvent.altKey&&b.datepicker._adjustDate(a.target,a.ctrlKey?-b.datepicker._get(d,"stepBigMonths"):-b.datepicker._get(d,"stepMonths"),"M");break;case 38:(a.ctrlKey|| 372a.metaKey)&&b.datepicker._adjustDate(a.target,-7,"D");c=a.ctrlKey||a.metaKey;break;case 39:if(a.ctrlKey||a.metaKey)b.datepicker._adjustDate(a.target,g?-1:1,"D");c=a.ctrlKey||a.metaKey;a.originalEvent.altKey&&b.datepicker._adjustDate(a.target,a.ctrlKey?+b.datepicker._get(d,"stepBigMonths"):+b.datepicker._get(d,"stepMonths"),"M");break;case 40:(a.ctrlKey||a.metaKey)&&b.datepicker._adjustDate(a.target,7,"D");c=a.ctrlKey||a.metaKey;break;default:c=false}else a.keyCode===36&&a.ctrlKey?b.datepicker._showDatepicker(this): 373c=false;if(c){a.preventDefault();a.stopPropagation()}},_doKeyPress:function(a){var c,d;c=b.datepicker._getInst(a.target);if(b.datepicker._get(c,"constrainInput")){c=b.datepicker._possibleChars(b.datepicker._get(c,"dateFormat"));d=String.fromCharCode(a.charCode==null?a.keyCode:a.charCode);return a.ctrlKey||a.metaKey||d<" "||!c||c.indexOf(d)>-1}},_doKeyUp:function(a){var c,a=b.datepicker._getInst(a.target);if(a.input.val()!==a.lastVal)try{if(c=b.datepicker.parseDate(b.datepicker._get(a,"dateFormat"), 374a.input?a.input.val():null,b.datepicker._getFormatConfig(a))){b.datepicker._setDateFromField(a);b.datepicker._updateAlternate(a);b.datepicker._updateDatepicker(a)}}catch(d){}return true},_showDatepicker:function(a){a=a.target||a;a.nodeName.toLowerCase()!=="input"&&(a=b("input",a.parentNode)[0]);if(!(b.datepicker._isDisabledDatepicker(a)||b.datepicker._lastInput===a)){var c,d,g,f;c=b.datepicker._getInst(a);if(b.datepicker._curInst&&b.datepicker._curInst!==c){b.datepicker._curInst.dpDiv.stop(true,true); 375c&&b.datepicker._datepickerShowing&&b.datepicker._hideDatepicker(b.datepicker._curInst.input[0])}d=(d=b.datepicker._get(c,"beforeShow"))?d.apply(a,[a,c]):{};if(d!==false){l(c.settings,d);c.lastVal=null;b.datepicker._lastInput=a;b.datepicker._setDateFromField(c);if(b.datepicker._inDialog)a.value="";if(!b.datepicker._pos){b.datepicker._pos=b.datepicker._findPos(a);b.datepicker._pos[1]=b.datepicker._pos[1]+a.offsetHeight}g=false;b(a).parents().each(function(){g=g|b(this).css("position")==="fixed";return!g}); 376d={left:b.datepicker._pos[0],top:b.datepicker._pos[1]};b.datepicker._pos=null;c.dpDiv.empty();c.dpDiv.css({position:"absolute",display:"block",top:"-1000px"});b.datepicker._updateDatepicker(c);d=b.datepicker._checkOffset(c,d,g);c.dpDiv.css({position:b.datepicker._inDialog&&b.blockUI?"static":g?"fixed":"absolute",display:"none",left:d.left+"px",to
376p:d.top+"px"});if(!c.inline){d=b.datepicker._get(c,"showAnim");f=b.datepicker._get(c,"duration");c.dpDiv.css("z-index",e(b(a))+1);b.datepicker._datepickerShowing= 377true;if(b.effects&&b.effects.effect[d])c.dpDiv.show(d,b.datepicker._get(c,"showOptions"),f);else c.dpDiv[d||"show"](d?f:null);b.datepicker._shouldFocusInput(c)&&c.input.trigger("focus");b.datepicker._curInst=c}}}},_updateDatepicker:function(a){this.maxRows=4;X=a;a.dpDiv.empty().append(this._generateHTML(a));this._attachHandlers(a);var c,d=this._getNumberOfMonths(a),g=d[1],e=a.dpDiv.find("."+this._dayOverClass+" a");e.length>0&&j.apply(e.get(0));a.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""); 378g>1&&a.dpDiv.addClass("ui-datepicker-multi-"+g).css("width",17*g+"em");a.dpDiv[(d[0]!==1||d[1]!==1?"add":"remove")+"Class"]("ui-datepicker-multi");a.dpDiv[(this._get(a,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");a===b.datepicker._curInst&&(b.datepicker._datepickerShowing&&b.datepicker._shouldFocusInput(a))&&a.input.trigger("focus");if(a.yearshtml){c=a.yearshtml;setTimeout(function(){c===a.yearshtml&&a.yearshtml&&a.dpDiv.find("select.ui-datepicker-year:first").replaceWith(a.yearshtml);c= 379a.yearshtml=null},0)}},_shouldFocusInput:function(a){return a.input&&a.input.is(":visible")&&!a.input.is(":disabled")&&!a.input.is(":focus")},_checkOffset:function(a,c,d){var g=a.dpDiv.outerWidth(),e=a.dpDiv.outerHeight(),f=a.input?a.input.outerWidth():0,h=a.input?a.input.outerHeight():0,j=document.documentElement.clientWidth+(d?0:b(document).scrollLeft()),l=document.documentElement.clientHeight+(d?0:b(document).scrollTop());c.left=c.left-(this._get(a,"isRTL")?g-f:0);c.left=c.left-(d&&c.left===a.input.offset().left? 380b(document).scrollLeft():0);c.top=c.top-(d&&c.top===a.input.offset().top+h?b(document).scrollTop():0);c.left=c.left-Math.min(c.left,c.left+g>j&&j>g?Math.abs(c.left+g-j):0);c.top=c.top-Math.min(c.top,c.top+e>l&&l>e?Math.abs(e+h):0);return c},_findPos:function(a){for(var c=this._getInst(a),c=this._get(c,"isRTL");a&&(a.type==="hidden"||a.nodeType!==1||b.expr.pseudos.hidden(a));)a=a[c?"previousSibling":"nextSibling"];a=b(a).offset();return[a.left,a.top]},_hideDatepicker:function(a){var c,d,g=this._curInst; 381if(g&&!(a&&g!==b.data(a,"datepicker"))&&this._datepickerShowing){a=this._get(g,"showAnim");c=this._get(g,"duration");d=function(){b.datepicker._tidyDialog(g)};if(b.effects&&(b.effects.effect[a]||b.effects[a]))g.dpDiv.hide(a,b.datepicker._get(g,"showOptions"),c,d);else g.dpDiv[a==="slideDown"?"slideUp":a==="fadeIn"?"fadeOut":"hide"](a?c:null,d);a||d();this._datepickerShowing=false;(a=this._get(g,"onClose"))&&a.apply(g.input?g.input[0]:null,[g.input?g.input.val():"",g]);this._lastInput=null;if(this._inDialog){this._dialogInput.css({position:"absolute", 382left:"0",top:"-100px"});if(b.blockUI){b.unblockUI();b("body").append(this.dpDiv)}}this._inDialog=false}},_tidyDialog:function(a){a.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(a){if(b.datepicker._curInst){var a=b(a.target),c=b.datepicker._getInst(a[0]);(a[0].id!==b.datepicker._mainDivId&&a.parents("#"+b.datepicker._mainDivId).length===0&&!a.hasClass(b.datepicker.markerClassName)&&!a.closest("."+b.datepicker._triggerClass).length&&b.datepicker._datepickerShowing&& 383(!b.datepicker._inDialog||!b.blockUI)||a.hasClass(b.datepicker.markerClassName)&&b.datepicker._curInst!==c)&&b.datepicker._hideDatepicker()}},_adjustDate:function(a,c,d){var a=b(a),g=this._getInst(a[0]);if(!this._isDisabledDatepicker(a[0])){this._adjustInstDate(g,c+(d==="M"?this._get(g,"showCurrentAtPos"):0),d);this._updateDatepicker(g)}},_gotoToday:function(a){var c=b(a),d=this._getInst(c[0]);if(this._get(d,"gotoCurrent")&&d.currentDay){d.selectedDay=d.currentDay;d.drawMonth=d.selectedMonth=d.currentMonth; 384d.drawYear=d.selectedYear=d.currentYear}else{a=new Date;d.selectedDay=a.getDate();d.drawMonth=d.selectedMonth=a.getMonth();d.drawYear=d.selectedYear=a.getFullYear()}this._notifyChange(d);this._adjustDate(c)},_selectMonthYear:function(a,c,d){var a=b(a),g=this._getInst(a[0]);g["selected"+(d==="M"?"Month":"Year")]=g["draw"+(d==="M"?"Month":"Year")]=parseInt(c.options[c.selectedIndex].value,10);this._notifyChange(g);this._adjustDate(a)},_selectDay:function(a,c,d,g){var e;e=b(a);if(!b(g).hasClass(this._unselectableClass)&& 385!this._isDisabledDatepicker(e[0])){e=this._getInst(e[0]);e.selectedDay=e.currentDay=b("a",g).html();e.selectedMonth=e.currentMonth=c;e.selectedYear=e.currentYear=d;this._selectDate(a,this._formatDate(e,e.currentDay,e.currentMonth,e.currentYear))}},_clearDate:function(a){a=b(a);this._selectDate(a,"")},_selectDate:function(a,c){var d;d=b(a);var g=this._getInst(d[0]),c=c!=null?c:this._formatDate(g);g.input&&g.input.val(c);this._updateAlternate(g);(d=this._get(g,"onSelect"))?d.apply(g.input?g.input[0]: 386null,[c,g]):g.input&&g.input.trigger("change");if(g.inline)this._updateDatepicker(g);else{this._hideDatepicker();this._lastInput=g.input[0];typeof g.input[0]!=="object"&&g.input.trigger("focus");this._lastInput=null}},_updateAlternate:function(a){var c,d,g=this._get(a,"altField");if(g){c=this._get(a,"altFormat")||this._get(a,"dateFormat");d=this._getDate(a);a=this.formatDate(c,d,this._getFormatConfig(a));b(g).val(a)}}
386,noWeekends:function(a){a=a.getDay();return[a>0&&a<6,""]},iso8601Week:function(a){var b= 387new Date(a.getTime());b.setDate(b.getDate()+4-(b.getDay()||7));a=b.getTime();b.setMonth(0);b.setDate(1);return Math.floor(Math.round((a-b)/864E5)/7)+1},parseDate:function(a,c,d){if(a==null||c==null)throw"Invalid arguments";c=typeof c==="object"?c.toString():c+"";if(c==="")return null;var g,e,f,h=0;e=(d?d.shortYearCutoff:null)||this._defaults.shortYearCutoff;e=typeof e!=="string"?e:(new Date).getFullYear()%100+parseInt(e,10);f=(d?d.dayNamesShort:null)||this._defaults.dayNamesShort;var j=(d?d.dayNames: 388null)||this._defaults.dayNames,l=(d?d.monthNamesShort:null)||this._defaults.monthNamesShort,n=(d?d.monthNames:null)||this._defaults.monthNames,o=d=-1,r=-1,q=-1,s=false,t,v=function(b){(b=g+1<a.length&&a.charAt(g+1)===b)&&g++;return b},x=function(a){var b=v(a),b=a==="@"?14:a==="!"?20:a==="y"&&b?4:a==="o"?3:2,a=RegExp("^\\d{"+(a==="y"?b:1)+","+b+"}"),a=c.substring(h).match(a);if(!a)throw"Missing number at position "+h;h=h+a[0].length;return parseInt(a[0],10)},z=function(a,d,g){var e=-1,a=b.map(v(a)? 389g:d,function(a,b){return[[b,a]]}).sort(function(a,b){return-(a[1].length-b[1].length)});b.each(a,function(a,b){var d=b[1];if(c.substr(h,d.length).toLowerCase()===d.toLowerCase()){e=b[0];h=h+d.length;return false}});if(e!==-1)return e+1;throw"Unknown name at position "+h;},B=function(){if(c.charAt(h)!==a.charAt(g))throw"Unexpected literal at position "+h;h++};for(g=0;g<a.length;
389g++)if(s)a.charAt(g)==="'"&&!v("'")?s=false:B();else switch(a.charAt(g)){case "d":r=x("d");break;case "D":z("D",f,j);break; 390case "o":q=x("o");break;case "m":o=x("m");break;case "M":o=z("M",l,n);break;case "y":d=x("y");break;case "@":t=new Date(x("@"));d=t.getFullYear();o=t.getMonth()+1;r=t.getDate();break;case "!":t=new Date((x("!")-this._ticksTo1970)/1E4);d=t.getFullYear();o=t.getMonth()+1;r=t.getDate();break;case "'":v("'")?B():s=true;break;default:B()}if(h<c.length){f=c.substr(h);if(!/^\s+/.test(f))throw"Extra/unparsed characters found in date: "+f;}d===-1?d=(new Date).getFullYear():d<100&&(d=d+((new Date).getFullYear()- 391(new Date).getFullYear()%100+(d<=e?0:-100)));if(q>-1){o=1;r=q;do{e=this._getDaysInMonth(d,o-1);if(r<=e)break;o++;r=r-e}while(1)}t=this._daylightSavingAdjust(new Date(d,o-1,r));if(t.getFullYear()!==d||t.getMonth()+1!==o||t.getDate()!==r)throw"Invalid date";return t},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:864E9*(718685+ 392Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925)),formatDate:function(a,b,d){if(!b)return"";var g,e=(d?d.dayNamesShort:null)||this._defaults.dayNamesShort,f=(d?d.dayNames:null)||this._defaults.dayNames,h=(d?d.monthNamesShort:null)||this._defaults.monthNamesShort,d=(d?d.monthNames:null)||this._defaults.monthNames,j=function(b){(b=g+1<a.length&&a.charAt(g+1)===b)&&g++;return b},l=function(a,b,c){b=""+b;if(j(a))for(;b.length<c;)b="0"+b;return b},n="",o=false;if(b)for(g=0;g<a.length;g++)if(o)a.charAt(g)=== 393"'"&&!j("'")?o=false:n=n+a.charAt(g);else switch(a.charAt(g)){case "d":n=n+l("d",b.getDate(),2);break;case "D":var r;r=b.getDay();var q=e,s=f;r=j("D")?s[r]:q[r];n=n+r;break;case "o":n=n+l("o",Math.round(((new Date(b.getFullYear(),b.getMonth(),b.getDate())).getTime()-(new Date(b.getFullYear(),0,0)).getTime())/864E5),3);break;case "m":n=n+l("m",b.getMonth()+1,2);break;case "M":r=b.getMonth();q=h;s=d;r=j("M")?s[r]:q[r];n=n+r;break;case "y":n=n+(j("y")?b.getFullYear():(b.getFullYear()%100<10?"0":"")+ 394b.getFullYear()%100);break;case "@":n=n+b.getTime();break;case "!":n=n+(b.getTime()*1E4+this._ticksTo1970);break;
394case "'":j("'")?n=n+"'":o=true;break;default:n=n+a.charAt(g)}return n},_possibleChars:function(a){var b,d="",g=false,e=function(d){(d=b+1<a.length&&a.charAt(b+1)===d)&&b++;return d};for(b=0;b<a.length;b++)if(g)a.charAt(b)==="'"&&!e("'")?g=false:d=d+a.charAt(b);else switch(a.charAt(b)){case "d":case "m":case "y":case "@":d=d+"0123456789";break;case "D":case "M":return null;case "'":e("'")? 395d=d+"'":g=true;break;default:d=d+a.charAt(b)}return d},_get:function(a,b){return a.settings[b]!==void 0?a.settings[b]:this._defaults[b]},_setDateFromField:function(a,b){if(a.input.val()!==a.lastVal){var d=this._get(a,"dateFormat"),g=a.lastVal=a.input?a.input.val():null,e=this._getDefaultDate(a),f=e,h=this._getFormatConfig(a);try{f=this.parseDate(d,g,h)||e}catch(j){g=b?"":g}a.selectedDay=f.getDate();a.drawMonth=a.selectedMonth=f.getMonth();a.drawYear=a.selectedYear=f.getFullYear();a.currentDay=g?f.getDate(): 3960;a.currentMonth=g?f.getMonth():0;a.currentYear=g?f.getFullYear():0;this._adjustInstDate(a)}},_getDefaultDate:function(a){return this._restrictMinMax(a,this._determineDate(a,this._get(a,"defaultDate"),new Date))},_determineDate:function(a,c,d){if(c==null||c==="")c=d;else{var g;
396if(typeof c==="string")a:{try{g=b.datepicker.parseDate(b.datepicker._get(a,"dateFormat"),c,b.datepicker._getFormatConfig(a));break a}catch(e){}var f=(c.toLowerCase().match(/^c/)?b.datepicker._getDate(a):null)||new Date,a=f.getFullYear(); 397g=f.getMonth();for(var f=f.getDate(),h=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,j=h.exec(c);j;){switch(j[2]||"d"){case "d":case "D":f=f+parseInt(j[1],10);break;case "w":case "W":f=f+parseInt(j[1],10)*7;break;case "m":case "M":g=g+parseInt(j[1],10);f=Math.min(f,b.datepicker._getDaysInMonth(a,g));break;case "y":case "Y":a=a+parseInt(j[1],10);f=Math.min(f,b.datepicker._getDaysInMonth(a,g))}j=h.exec(c)}g=new Date(a,g,f)}else{if(typeof c==="number")if(isNaN(c))c=d;else{a=new Date;a.setDate(a.getDate()+c); 398c=a}else c=new Date(c.getTime());g=c}c=g}if(c=c&&c.toString()==="Invalid Date"?d:c){c.setHours(0);c.setMinutes(0);c.setSeconds(0);c.setMilliseconds(0)}return this._daylightSavingAdjust(c)},_daylightSavingAdjust:function(a){if(!a)return null;a.setHours(a.getHours()>12?a.getHours()+2:0);return a},_setDate:function(a,b,d){var g=!b,e=a.selectedMonth,f=a.selectedYear,b=this._restrictMinMax(a,this._determineDate(a,b,new Date));a.selectedDay=a.currentDay=b.getDate();a.drawMonth=a.selectedMonth=a.currentMonth= 399b.getMonth();a.drawYear=a.selectedYear=a.currentYear=b.getFullYear();(e!==a.selectedMonth||f!==a.selectedYear)&&!d&&this._notifyChange(a);this._adjustInstDate(a);a.input&&a.input.val(g?"":this._formatDate(a))},_getDate:function(a){return!a.currentYear||a.input&&a.input.val()===""?null:this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay))},_attachHandlers:function(a){var c=this._get(a,"stepMonths"),d="#"+a.id.replace(/\\\\/g,"\\");a.dpDiv.find("[data-handler]").map(function(){b(this).on(this.getAttribute("data-event"), 400{prev:function(){b.datepicker._adjustDate(d,-c,"M")},next:function(){b.datepicker._adjustDate(d,+c,"M")},hide:function(){b.datepicker._hideDatepicker()},today:function(){b.datepicker._gotoToday(d)},selectDay:function(){b.datepicker._selectDay(d,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this);return false},selectMonth:function(){b.datepicker._selectMonthYear(d,this,"M");return false},selectYear:function(){b.datepicker._selectMonthYear(d,this,"Y");return false}}[this.getAttribute("data-handler")])})}, 401_generateHTML:function(a){var b,d,g,e,f,h,j,l,n,o,r,q,s,t,v,x,z,B,k,A,I,y,F,H,G,Q,L,O=new Date,O=this._daylightSavingAdjust(new Date(O.getFullYear(),O.getMonth(),O.getDate())),R=this._get(a,"isRTL");h=this._get(a,"showButtonPanel");g=this._get(a,"hideIfNoPrevNext");f=this._get(a,"navigationAsDateFormat");var M=this._getNumberOfMonths(a),K=this._get(a,"showCurrentAtPos");e=this._get(a,"stepMonths");var W=M[0]!==1||M[1]!==1,aa=this._daylightSavingAdjust(!a.currentDay?new Date(9999,9,9):new Date(a.currentYear, 402a.currentMonth,a.currentDay)),X=this._getMinMaxDate(a,"min"),V=this._getMinMaxDate(a,"max"),K=a.drawMonth-K,da=a.drawYear;if(K<0){K=K+12;da--}if(V){b=this._daylightSavingAdjust(new Date(V.getFullYear(),V.getMonth()-M[0]*M[1]+1,V.getDate()));for(b=X&&b<X?X:b;this._daylightSavingAdjust(new Date(da,K,1))>b;){K--;if(K<0){K=11;da--}}}a.drawMonth=K;a.drawYear=da;b=this._get(a,"prevText");b=!f?b:this.formatDate(b,this._daylightSavingAdjust(new Date(da,K-e,1)),this._getFormatConfig(a));b=this._canAdjustMonth(a, 403-1,da,K)?"<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click' title='"+b+"'><span class='ui-icon ui-icon-circle-triangle-"+(R?"e":"w")+"'>"+b+"</span></a>":g?"":"<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='"+b+"'><span class='ui-icon ui-icon-circle-triangle-"+(R?"e":"w")+"'>"+b+"</span></a>";d=this._get(a,"nextText");d=!f?d:this.formatDate(d,this._daylightSavingAdjust(new Date(da,K+e,1)),this._getFormatConfig(a));g=this._canAdjustMonth(a,1,da, 404K)?"<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click' title='"+d+"'><span class='ui-icon ui-icon-circle-triangle-"+(R?"w":"e")+"'>"+d+"</span></a>":g?"":"<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='"+d+"'><span class='ui-icon ui-icon-circle-triangle-"+(R?"w":"e")+"'>"+d+"</span></a>";e=this._get(a,"currentText");d=this._get(a,"gotoCurrent")&&a.currentDay?aa:O;e=!f?e:this.formatDate(e,d,this._getFormatConfig(a));f=!a.inline?"<button type='button' class='ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all' data-handler='hide' data-event='click'>"+ 405this._get(a,"closeText")+"</button>":"";h=h?"<div class='ui-datepicker-buttonpane ui-widget-content'>"+(R?f:"")+(this._isInRange(a,d)?"<button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'>"+e+"</button>":"")+(R?"":f)+"</div>":"";f=parseInt(this._get(a,"firstDay"),10);f=isNaN(f)?0:f;e=this._get(a,"showWeek");d=this._get(a,"dayNames");j=this._get(a,"dayNamesMin");l=this._get(a,"monthNames");n=this._get(a,"monthNamesShort"); 406o=this._get(a,"beforeShowDay");r=this._get(a,"showOtherMonths");q=this._get(a,"selectOtherMonths");s=this._getDefaultDate(a);t="";for(x=0;x<M[0];x++){z="";this.maxRows=4;for(B=0;B<M[1];B++){k=this._daylightSavingAdjust(new Date(da,K,a.selectedDay));v=" ui-corner-all";A="";if(W){A=A+"<div class='ui-datepicker-group";if(M[1]>1)switch(B){case 0:A=A+" ui-datepicker-group-first";v=" ui-corner-"+(R?"right":"left");break;case M[1]-1:A=A+" ui-datepicker-group-last";v=" ui-corner-"+(R?"left":"right");break; 407default:A=A+" ui-datepicker-group-middle";v=""}A=A+"'>"}A=A+("<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+v+"'>"+(/all|left/.test(v)&&x===0?R?g:b:"")+(/all|right/.test(v)&&x===0?R?b:g:"")+this._generateMonthYearHeader(a,K,da,X,V,x>0||B>0,l,n)+"</div><table class='ui-datepicker-calendar'><thead><tr>");I=e?"<th class='ui-datepicker-week-col'>"+this._get(a,"weekHeader")+"</th>":"";for(v=0;v<7;v++){y=(v+f)%7;I=I+("<th scope='col'"+((v+f+6)%7>=5?" class='ui-datepicker-week-end'": 408"")+"><span title='"+d[y]+"'>"+j[y]+"</span></th>")}A=A+(I+"</tr></thead><tbody>");I=this._getDaysInMonth(da,K);if(da===a.selectedYear&&K===a.selectedMonth)a.selectedDay=Math.min(a.selectedDay,I);v=(this._getFirstDayOfMonth(da,K)-f+7)%7;I=Math.ceil((v+I)/7);this.maxRows=I=W?this.maxRows>I?this.maxRows:I:I;y=this._daylightSavingAdjust(new Date(da,K,1-v));for(F=0;F<I;F++){A=A+"<tr>";H=!e?"":"<td class='ui-datepicker-week-col'>"+this._get(a,"calculateWeek")(y)+"</td>";for(v=0;v<7;v++){G=o?o.apply(a.input? 409a.input[0]:null,[y]):[true,""];L=(Q=y.getMonth()!==K)&&!q||!G[0]||X&&y<X||V&&y>V;H=H+("<td class='"+((v+f+6)%7>=5?" ui-datepicker-week-end":"")+(Q?" ui-datepicker-other-month":"")+(y.getTime()===k.getTime()&&K===a.selectedMonth&&a._keyEvent||s.getTime()===y.getTime()&&s.getTime()===k.getTime()?" "+this._dayOverClass:"")+(L?" "+this._unselectableClass+" ui-state-disabled":"")+(Q&&!r?"":" "+G[1]+(y.getTime()===aa.getTime()?" "+this._currentClass:"")+(y.getTime()===O.getTime()?" ui-datepicker-today": 410""))+"'"+((!Q||r)&&G[2]?" title='"+G[2].replace(/'/g,"'")+"'":"")+(L?"":" data-handler='selectDay' data-event='click' data-month='"+y.getMonth()+"' data-year='"+y.getFullYear()+"'")+">"+(Q&&!r?" ":L?"<span class='ui-state-default'>"+y.getDate()+"</span>":"<a class='ui-state-default"+(y.getTime()===O.getTime()?" ui-state-highlight":"")+(y.getTime()===aa.getTime()?" ui-state-active":"")+(Q?" ui-priority-secondary":"")+"' href='#'>"+y.getDate()+"</a>")+"</td>");y.setDate(y.getDate()+1);y=this._daylightSavingAdjust(y)}A= 411A+(H+"</tr>")}K++;if(K>11){K=0;da++}A=A+("</tbody></table>"+(W?"</div>"+(M[0]>0&&B===M[1]-1?"<div class='ui-datepicker-row-break'></div>":""):""));z=z+A}t=t+z}a._keyEvent=false;return t+h},_generateMonthYearHeader:function(a,b,d,g,e,f,h,j){var l,n,o,r=this._get(a,"changeMonth"),q=this._get(a,"changeYear"),s=this._get(a,"showMonthAfterYear"),t="<div class='ui-datepicker-title'>",x="";if(f||!r)x=x+("<span class='ui-datepicker-month'>"+h[b]+"</span>");else{h=g&&g.getFullYear()===d;l=e&&e.getFullYear()=== 412d;x=x+"<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>";for(n=0;n<12;n++)if((!h||n>=g.getMonth())&&(!l||n<=e.getMonth()))x=x+("<option value='"+n+"'"+(n===b?" selected='selected'":"")+">"+j[n]+"</option>");x=x+"</select>"}s||(t=t+(x+(f||!r||!q?" ":"")));if(!a.yearshtml){a.yearshtml="";
412if(f||!q)t=t+("<span class='ui-datepicker-year'>"+d+"</span>");else{j=this._get(a,"yearRange").split(":");o=(new Date).getFullYear();h=function(a){a=a.match(/c[+\-].*/)?d+parseInt(a.substring(1), 41310):a.match(/[+\-].*/)?o+parseInt(a,10):parseInt(a,10);return isNaN(a)?o:a};b=h(j[0]);j=Math.max(b,h(j[1]||""));b=g?Math.max(b,g.getFullYear()):b;j=e?Math.min(j,e.getFullYear()):j;for(a.yearshtml=a.yearshtml+"<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>";b<=j;b++)a.yearshtml=a.yearshtml+("<option value='"+b+"'"+(b===d?" selected='selected'":"")+">"+b+"</option>");a.yearshtml=a.yearshtml+"</select>";t=t+a.yearshtml;a.yearshtml=null}}t=t+this._get(a,"yearSuffix"); 414s&&(t=t+((f||!r||!q?" ":"")+x));return t+"</div>"},_adjustInstDate:function(a,b,d){var g=a.selectedYear+(d==="Y"?b:0),e=a.selectedMonth+(d==="M"?b:0),b=Math.min(a.selectedDay,this._getDaysInMonth(g,e))+(d==="D"?b:0),g=this._restrictMinMax(a,this._daylightSavingAdjust(new Date(g,e,b)));a.selectedDay=g.getDate();a.drawMonth=a.selectedMonth=g.getMonth();a.drawYear=a.selectedYear=g.getFullYear();(d==="M"||d==="Y")&&this._notifyChange(a)},_restrictMinMax:function(a,b){var d=this._getMinMaxDate(a, 415"min"),g=this._getMinMaxDate(a,"max"),d=d&&b<d?d:b;return g&&d>g?g:d}
415,_notifyChange:function(a){var b=this._get(a,"onChangeMonthYear");b&&b.apply(a.input?a.input[0]:null,[a.selectedYear,a.selectedMonth+1,a])},_getNumberOfMonths:function(a){a=this._get(a,"numberOfMonths");return a==null?[1,1]:typeof a==="number"?[1,a]:a},_getMinMaxDate:function(a,b){return this._determineDate(a,this._get(a,b+"Date"),null)},_getDaysInMonth:function(a,b){return 32-this._daylightSavingAdjust(new Date(a,b,32)).getDate()}, 416_getFirstDayOfMonth:function(a,b){return(new Date(a,b,1)).getDay()},_canAdjustMonth:function(a,b,d,g){var e=this._getNumberOfMonths(a),d=this._daylightSavingAdjust(new Date(d,g+(b<0?b:e[0]*e[1]),1));b<0&&d.setDate(this._getDaysInMonth(d.getFullYear(),d.getMonth()));return this._isInRange(a,d)},_isInRange:function(a,b){var d,g,e=this._getMinMaxDate(a,"min"),f=this._getMinMaxDate(a,"max"),h=null,j=null;if(d=this._get(a,"yearRange")){d=d.split(":");g=(new Date).getFullYear();h=parseInt(d[0],10);j=parseInt(d[1], 41710);d[0].match(/[+\-].*/)&&(h=h+g);d[1].match(/[+\-].*/)&&(j=j+g)}return(!e||b.getTime()>=e.getTime())&&(!f||b.getTime()<=f.getTime())&&(!h||b.getFullYear()>=h)&&(!j||b.getFullYear()<=j)},_getFormatConfig:function(a){var b=this._get(a,"shortYearCutoff"),b=typeof b!=="string"?b:(new Date).getFullYear()%100+parseInt(b,10);return{shortYearCutoff:b,dayNamesShort:this._get(a,"dayNamesShort"),dayNames:this._get(a,"dayNames"),monthNamesShort:this._get(a,"monthNamesShort"),monthNames:this._get(a,"monthNames")}}, 418_formatDate:function(a,b,d,g){if(!b){a.currentDay=a.selectedDay;a.currentMonth=a.selectedMonth;a.currentYear=a.selectedYear}b=b?typeof b==="object"?b:this._daylightSavingAdjust(new Date(g,d,b)):this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay));return this.formatDate(this._get(a,"dateFormat"),b,this._getFormatConfig(a))}});b.fn.datepicker=function(a){if(!this.length)return this;if(!b.datepicker.initialized){b(document).on("mousedown",b.datepicker._checkExternalClick); 419b.datepicker.initialized=true}b("#"+b.datepicker._mainDivId).length===0&&b("body").append(b.datepicker.dpDiv);var c=Array.prototype.slice.call(arguments,1);return typeof a==="string"&&(a==="isDisabled"||a==="getDate"||a==="widget")||a==="option"&&arguments.length===2&&typeof arguments[1]==="string"?b.datepicker["_"+a+"Datepicker"].apply(b.datepicker,[this[0]].concat(c)):this.each(function(){typeof a==="string"?b.datepicker["_"+a+"Datepicker"].apply(b.datepicker,[this].concat(c)):b.datepicker._attachDatepicker(this, 420a)})};b.datepicker=new f;b.datepicker.initialized=!1;b.datepicker.uuid=(new Date).getTime();b.datepicker.version="1.12.1";b.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase());var Ka=!1;b(document).on("mouseup",function(){Ka=false});b.widget("ui.mouse",{version:"1.12.1",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var a=this;this.element.on("mousedown."+this.widgetName,function(b){return a._mouseDown(b)}).on("click."+this.widgetName, 421function(c){if(true===b.data(c.target,a.widgetName+".preventClickEvent")){b.removeData(c.target,a.widgetName+".preventClickEvent");c.stopImmediatePropagation();return false}});this.started=false},_mouseDestroy:function(){this.element.off("."+this.widgetName);this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(a){if(!Ka){this._mouseMoved=false;this._mouseStarted&&this._mouseUp(a); 422this._mouseDownEvent=a;var c=this,d=a.which===1,g=typeof this.options.cancel==="string"&&a.target.nodeName?b(a.target).closest(this.options.cancel).length:false;if(!d||g||!this._mouseCapture(a))return true;this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet)this._mouseDelayTimer=setTimeout(function(){c.mouseDelayMet=true},this.options.delay);if(this._mouseDistanceMet(a)&&this._mouseDelayMet(a)){this._mouseStarted=this._mouseStart(a)!==false;if(!this._mouseStarted){a.preventDefault();return true}}true=== 423b.data(a.target,this.widgetName+".preventClickEvent")&&b.removeData(a.target,this.widgetName+".preventClickEvent");this._mouseMoveDelegate=function(a){return c._mouseMove(a)};this._mouseUpDelegate=function(a){return c._mouseUp(a)};this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate);a.preventDefault();return Ka=true}}
423,_mouseMove:function(a){if(this._mouseMoved){if(b.ui.ie&&(!document.documentMode||document.documentMode<9)&&!a.button)return this._mouseUp(a); 424if(!a.which)if(a.originalEvent.altKey||a.originalEvent.ctrlKey||a.originalEvent.metaKey||a.originalEvent.shiftKey)this.ignoreMissingWhich=true;else if(!this.ignoreMissingWhich)return this._mouseUp(a)}if(a.which||a.button)this._mouseMoved=true;if(this._mouseStarted){this._mouseDrag(a);return a.preventDefault()}if(this._mouseDistanceMet(a)&&this._mouseDelayMet(a))(this._mouseStarted=this._mouseStart(this._mouseDownEvent,a)!==false)?this._mouseDrag(a):this._mouseUp(a);return!this._mouseStarted},_mouseUp:function(a){this.document.off("mousemove."+ 425this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;a.target===this._mouseDownEvent.target&&b.data(a.target,this.widgetName+".preventClickEvent",true);this._mouseStop(a)}if(this._mouseDelayTimer){clearTimeout(this._mouseDelayTimer);delete this._mouseDelayTimer}Ka=this.ignoreMissingWhich=false;a.preventDefault()},_mouseDistanceMet:function(a){return Math.max(Math.abs(this._mouseDownEvent.pageX-a.pageX),Math.abs(this._mouseDownEvent.pageY- 426a.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return true}});b.ui.plugin={add:function(a,c,d){var g,a=b.ui[a].prototype;for(g in d){a.plugins[g]=a.plugins[g]||[];a.plugins[g].push([c,d[g]])}},call:function(a,b,d,g){if((b=a.plugins[b])&&(g||a.element[0].parentNode&&a.element[0].parentNode.nodeType!==11))for(g=0;g<b.length;g++)a.options[b[g][0]]&&b[g][1].apply(a.element, 427d)}};b.ui.safeBlur=function(a){a&&a.nodeName.toLowerCase()!=="body"&&b(a).trigger("blur")};b.widget("ui.draggable",b.ui.mouse,{version:"1.12.1",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1, 428zIndex:!1,drag:null,start:null,stop:null},_create:function(){this.options.helper==="original"&&this._setPositionRelative();this.options.addClasses&&this._addClass("ui-draggable");this._setHandleClassName();this._mouseInit()},_setOption:function(a,b){this._super(a,b);if(a==="handle"){this._removeHandleClassName();this._setHandleClassName()}},_destroy:function(){if((this.helper||this.element).is(".ui-draggable-dragging"))this.destroyOnClear=true;else{this._removeHandleClassName();this._mouseDestroy()}}, 429_mouseCapture:function(a){var c=this.options;if(this.helper||c.disabled||b(a.target).closest(".ui-resizable-handle").length>0)return false;this.handle=this._getHandle(a);if(!this.handle)return false;this._blurActiveElement(a);this._blockFrames(c.iframeFix===true?"iframe":c.iframeFix);return true},_blockFrames:function(a){this.iframeBlocks=this.document.find(a).map(function(){var a=b(this);return b("<div>").css("position","absolute").appendTo(a.parent()).outerWidth(a.outerWidth()).outerHeight(a.outerHeight()).offset(a.offset())[0]})}, 430_unblockFrames:function(){if(this.iframeBlocks){this.iframeBlocks.remove();delete this.iframeBlocks}},_blurActiveElement:function(a){var c=b.ui.safeActiveElement(this.document[0]);b(a.target).closest(c).length||b.ui.safeBlur(c)},_mouseStart:function(a){var c=this.options;this.helper=this._createHelper(a);this._addClass(this.helper,"ui-draggable-dragging");this._cacheHelperProportions();if(b.ui.ddmanager)b.ui.ddmanager.current=this;this._cacheMargins();this.cssPosition=this.helper.css("position"); 431this.scrollParent=this.helper.scrollParent(true);this.offsetParent=this.helper.offsetParent();this.hasFixedAncestor=this.helper.parents().filter(function(){return b(this).css("position")==="fixed"}).length>0;this.positionAbs=this.element.offset();this._refreshOffsets(a);this.originalPosition=this.position=this._generatePosition(a,false);this.originalPageX=a.pageX;this.originalPageY=a.pageY;c.cursorAt&&this._adjustOffsetFromHelper(c.cursorAt);this._setContainment();if(this._trigger("start",a)===false){this._clear(); 432return false}this._cacheHelperProportions();b.ui.ddmanager&&!c.dropBehaviour&&b.ui.ddmanager.prepareOffsets(this,a);this._mouseDrag(a,true);b.ui.ddmanager&&b.ui.ddmanager.dragStart(this,a);return true},_refreshOffsets:function(a){this.offset={top:this.positionAbs.top-this.margins.top,left
432:this.positionAbs.left-this.margins.left,scroll:false,parent:this._getParentOffset(),relative:this._getRelativeOffset()};this.offset.click={left:a.pageX-this.offset.left,top:a.pageY-this.offset.top}},_mouseDrag:function(a, 433c){if(this.hasFixedAncestor)this.offset.parent=this._getParentOffset();this.position=this._generatePosition(a,true);this.positionAbs=this._convertPositionTo("absolute");if(!c){var d=this._uiHash();if(this._trigger("drag",a,d)===false){this._mouseUp(new b.Event("mouseup",a));return false}this.position=d.position}this.helper[0].style.left=this.position.left+"px";this.helper[0].style.top=this.position.top+"px";b.ui.ddmanager&&b.ui.ddmanager.drag(this,a);return false},_mouseStop:function(a){var c=this, 434d=false;b.ui.ddmanager&&!this.options.dropBehaviour&&(d=b.ui.ddmanager.drop(this,a));if(this.dropped){d=this.dropped;this.dropped=false}this.options.revert==="invalid"&&!d||this.options.revert==="valid"&&d||this.options.revert===true||b.isFunction(this.options.revert)&&this.options.revert.call(this.element,d)?b(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){c._trigger("stop",a)!==false&&c._clear()}):this._trigger("stop",a)!==false&&this._clear();return false}, 435_mouseUp:function(a){this._unblockFrames();b.ui.ddmanager&&b.ui.ddmanager.dragStop(this,a);this.handleElement.is(a.target)&&this.element.trigger("focus");return b.ui.mouse.prototype._mouseUp.call(this,a)},cancel:function(){this.helper.is(".ui-draggable-dragging")?this._mouseUp(new b.Event("mouseup",{target:this.element[0]})):this._clear();return this},_getHandle:function(a){return this.options.handle?!!b(a.target).closest(this.element.find(this.options.handle)).length:true},_setHandleClassName:function(){this.handleElement= 436this.options.handle?this.element.find(this.options.handle):this.element;this._addClass(this.handleElement,"ui-draggable-handle")},_removeHandleClassName:function(){this._removeClass(this.handleElement,"ui-draggable-handle")},_createHelper:function(a){var c=this.options,d=b.isFunction(c.helper),a=d?b(c.helper.apply(this.element[0],[a])):c.helper==="clone"?this.element.clone().removeAttr("id"):this.element;a.parents("body").length||a.appendTo(c.appendTo==="parent"?this.element[0].parentNode:c.appendTo); 437d&&a[0]===this.element[0]&&this._setPositionRelative();a[0]!==this.element[0]&&!/(fixed|absolute)/.test(a.css("position"))&&a.css("position","absolute");return a},_setPositionRelative:function(){if(!/^(?:r|a|f)/.test(this.element.css("position")))this.element[0].style.position="relative"},_adjustOffsetFromHelper:function(a){typeof a==="string"&&(a=a.split(" "));b.isArray(a)&&(a={left:+a[0],top:+a[1]||0});if("left"in a)this.offset.click.left=a.left+this.margins.left;if("right"in a)this.offset.click.left= 438this.helperProportions.width-a.right+this.margins.left;if("top"in a)this.offset.click.top=a.top+this.margins.top;if("bottom"in a)this.offset.click.top=this.helperProportions.height-a.bottom+this.margins.top},_isRootNode:function(a){return/(html|body)/i.test(a.tagName)||a===this.document[0]},_getParentOffset:function(){var a=this.offsetParent.offset(),c=this.document[0];if(this.cssPosition==="absolute"&&this.scrollParent[0]!==c&&b.contains(this.scrollParent[0],this.offsetParent[0])){a.left=a.left+ 439this.scrollParent.scrollLeft();a.top=a.top+this.scrollParent.scrollTop()}this._isRootNode(this.offsetParent[0])&&(a={top:0,left:0});return{top:a.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:a.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition!=="relative")return{top:0,left:0};var a=this.element.position(),b=this._isRootNode(this.scrollParent[0]);return{top:a.top-(parseInt(this.helper.css("top"),10)||0)+(!b?this.scrollParent.scrollTop(): 4400),left:a.left-(parseInt(this.helper.css("left"),10)||0)+(!b?this.scrollParent.scrollLeft():0)}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var a, 441c,d;a=this.options;c=this.document[0];this.relativeContainer=null;if(a.containment)if(a.containment==="window")this.containment=[b(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,b(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,b(window).scrollLeft()+b(window).width()-this.helperProportions.width-this.margins.left,b(window).scrollTop()+(b(window).height()||c.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];else if(a.containment=== 442"document")this.containment=[0,0,b(c).width()-this.helperProportions.width-this.margins.left,(b(c).height()||c.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];else if(a.containment.constructor===Array)this.containment=a.containment;else{if(a.containment==="parent")a.containment=this.helper[0].parentNode;c=b(a.containment);if(d=c[0]){a=/(scroll|auto)/.test(c.css("overflow"));this.containment=[(parseInt(c.css("borderLeftWidth"),10)||0)+(parseInt(c.css("paddingLeft"),10)||
4430),(parseInt(c.css("borderTopWidth"),10)||0)+(parseInt(c.css("paddingTop"),10)||0),(a?Math.max(d.scrollWidth,d.offsetWidth):d.offsetWidth)-(parseInt(c.css("borderRightWidth"),10)||0)-(parseInt(c.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(a?Math.max(d.scrollHeight,d.offsetHeight):d.offsetHeight)-(parseInt(c.css("borderBottomWidth"),10)||0)-(parseInt(c.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom]; 444this.relativeContainer=c}}else this.containment=null},_convertPositionTo:function(a,b){if(!b)b=this.position;var d=a==="absolute"?1:-1,g=this._isRootNode(this.scrollParent[0]);return{top:b.top+this.offset.relative.top*d+this.offset.parent.top*d-(this.cssPosition==="fixed"?-this.offset.scroll.top:g?0:this.offset.scroll.top)*d,left:b.left+this.offset.relative.left*d+this.offset.parent.left*d-(this.cssPosition==="fixed"?-this.offset.scroll.left:g?0:this.offset.scroll.left)*d}},_generatePosition:function(a, 445b){var d,g,e,f=this.options,h=this._isRootNode(this.scrollParent[0]);e=a.pageX;g=a.pageY;if(!h||!this.offset.scroll)this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()};if(b){if(this.containment){if(this.relativeContainer){d=this.relativeContainer.offset();d=[this.containment[0]+d.left,this.containment[1]+d.top,this.containment[2]+d.left,this.containment[3]+d.top]}else d=this.containment;a.pageX-this.offset.click.left<d[0]&&(e=d[0]+this.offset.click.left);a.pageY- 446this.offset.click.top<d[1]&&(g=d[1]+this.offset.click.top);a.pageX-this.offset.click.left>d[2]&&(e=d[2]+this.offset.click.left);a.pageY-this.offset.click.top>d[3]&&(g=d[3]+this.offset.click.top)}if(f.grid){g=f.grid[1]?this.originalPageY+Math.round((g-this.originalPageY)/f.grid[1])*f.grid[1]:this.originalPageY;g=d?g-this.offset.click.top>=d[1]||g-this.offset.click.top>d[3]?g:g-this.offset.click.top>=d[1]?g-f.grid[1]:g+f.grid[1]:g;e=f.grid[0]?this.originalPageX+Math.round((e-this.originalPageX)/f.grid[0])* 447f.grid[0]:this.originalPageX;e=d?e-this.offset.click.left>=d[0]||e-this.offset.click.left>d[2]?e:e-this.offset.click.left>=d[0]?e-f.grid[0]:e+f.grid[0]:e}if(f.axis==="y")e=this.originalPageX;if(f.axis==="x")g=this.originalPageY}return{top:g-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(this.cssPosition==="fixed"?-this.offset.scroll.top:h?0:this.offset.scroll.top),left:e-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(this.cssPosition==="fixed"?-this.offset.scroll.left: 448h?0:this.offset.scroll.left)}},_clear:function(){this._removeClass(this.helper,"ui-draggable-dragging");this.helper[0]!==this.element[0]&&!this.cancelHelperRemoval&&this.helper.remove();this.helper=null;this.cancelHelperRemoval=false;this.destroyOnClear&&this.destroy()},_trigger:function(a,c,d){d=d||this._uiHash();b.ui.plugin.call(this,a,[c,d,this],true);
448if(/^(drag|start|stop)/.test(a)){this.positionAbs=this._convertPositionTo("absolute");d.offset=this.positionAbs}return b.Widget.prototype._trigger.call(this, 449a,c,d)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}});b.ui.plugin.add("draggable","connectToSortable",{start:function(a,c,d){var g=b.extend({},c,{item:d.element});d.sortables=[];b(d.options.connectToSortable).each(function(){var c=b(this).sortable("instance");if(c&&!c.options.disabled){d.sortables.push(c);c.refreshPositions();c._trigger("activate",a,g)}})},stop:function(a,c,d){var g=b.extend({},c,{item:d.element}); 450d.cancelHelperRemoval=false;b.each(d.sortables,function(){if(this.isOver){this.isOver=0;d.cancelHelperRemoval=true;this.cancelHelperRemoval=false;this._storedCSS={position:this.placeholder.css("position"),top:this.placeholder.css("top"),left:this.placeholder.css("left")};this._mouseStop(a);this.options.helper=this.options._helper}else{this.cancelHelperRemoval=true;this._trigger("deactivate",a,g)}})},drag:function(a,c,d){b.each(d.sortables,function(){var g=false,e=this;e.positionAbs=d.positionAbs; 451e.helperProportions=d.helperProportions;e.offset.click=d.offset.click;if(e._intersectsWith(e.containerCache)){g=true;b.each(d.sortables,function(){this.positionAbs=d.positionAbs;this.helperProportions=d.helperProportions;this.offset.click=d.offset.click;this!==e&&(this._intersectsWith(this.containerCache)&&b.contains(e.element[0],this.element[0]))&&(g=false);return g})}if(g){if(!e.isOver){e.isOver=1;d._parent=c.helper.parent();e.currentItem=c.helper.appendTo(e.element).data("ui-sortable-item",true); 452e.options._helper=e.options.helper;e.options.helper=function(){return c.helper[0]};a.target=e.currentItem[0];e._mouseCapture(a,true);e._mouseStart(a,true,true);e.offset.click.top=d.offset.click.top;e.offset.click.left=d.offset.click.left;e.offset.parent.left=e.offset.parent.left-(d.offset.parent.left-e.offset.parent.left);e.offset.parent.top=e.offset.parent.top-(d.offset.parent.top-e.offset.parent.top);d._trigger("toSortable",a);d.dropped=e.element;b.each(d.sortables,function(){this.refreshPositions()}); 453d.currentItem=d.element;e.fromOutside=d}if(e.currentItem){e._mouseDrag(a);c.position=e.position}}else if(e.isOver){e.isOver=0;e.cancelHelperRemoval=true;e.options._revert=e.options.revert;e.options.revert=false;e._trigger("out",a,e._uiHash(e));e._mouseStop(a,true);e.options.revert=e.options._revert;e.options.helper=e.options._helper;e.placeholder&&e.placeholder.remove();c.helper.appendTo(d._parent);d._refreshOffsets(a);c.position=d._generatePosition(a,true);d._trigger("fromSortable",a);d.dropped= 454false;b.each(d.sortables,function(){this.refreshPositions()})}})}});b.ui.plugin.add("draggable","cursor",{start:function(a,c,d){a=b("body");d=d.options;if(a.css("cursor"))d._cursor=a.css("cursor");a.css("cursor",d.cursor)},stop:function(a,c,d){a=d.options;a._cursor&&b("body").css("cursor",a._cursor)}});b.ui.plugin.add("draggable","opacity",{start:function(a,c,d){a=b(c.helper);d=d.options;if(a.css("opacity"))d._opacity=a.css("opacity");a.css("opacity",d.opacity)},stop:function(a,c,d){a=d.options;a._opacity&& 455b(c.helper).css("opacity",a._opacity)}});b.ui.plugin.add("draggable","scroll",{start:function(a,b,d){if(!d.scrollParentNotHidden)d.scrollParentNotHidden=d.helper.scrollParent(false);if(d.scrollParentNotHidden[0]!==d.document[0]&&d.scrollParentNotHidden[0].tagName!=="HTML")d.overflowOffset=d.scrollParentNotHidden.offset()},drag:function(a,c,d){var c=d.options,e=false,f=d.scrollParentNotHidden[0],h=d.document[0];if(f!==h&&f.tagName!=="HTML"){if(!c.axis||c.axis!=="x")if(d.overflowOffset.top+f.offsetHeight- 456a.pageY<c.scrollSensitivity)f.scrollTop=e=f.scrollTop+c.scrollSpeed;else if(a.pageY-d.overflowOffset.top<c.scrollSensitivity)f.scrollTop=e=f.scrollTop-c.scrollSpeed;if(!c.axis||c.axis!=="y")if(d.overflowOffset.left+f.offsetWidth-a.pageX<c.scrollSensitivity)f.scrollLeft=e=f.scrollLeft+c.scrollSpeed;else if(a.pageX-d.overflowOffset.left<c.scrollSensitivity)f.scrollLeft=e=f.scrollLeft-c.scrollSpeed}else{if(!c.axis||c.axis!=="x")a.pageY-b(h).scrollTop()<c.scrollSensitivity?e=b(h).scrollTop(b(h).scrollTop()- 457c.scrollSpeed):b(window).height()-(a.pageY-b(h).scrollTop())<c.scrollSensitivity&&(e=b(h).scrollTop(b(h).scrollTop()+c.scrollSpeed));if(!c.axis||c.axis!=="y")a.pageX-b(h).scrollLeft()<c.scrollSensitivity?e=b(h).scrollLeft(b(h).scrollLeft()-c.scrollSpeed):b(window).width()-(a.pageX-b(h).scrollLeft())<c.scrollSensitivity&&(e=b(h).scrollLeft(b(h).scrollLeft()+c.scrollSpeed))}e!==false&&(b.ui.ddmanager&&!c.dropBehaviour)&&b.ui.ddmanager.prepareOffsets(d,a)}});b.ui.plugin.add("draggable","snap",{start:function(a, 458c,d){a=d.options;d.snapElements=[];b(a.snap.constructor!==String?a.snap.items||":data(ui-draggable)":a.snap).each(function(){var a=b(this),c=a.offset();this!==d.element[0]&&d.snapElements.push({item:this,width:a.outerWidth(),height:a.outerHeight(),top:c.top,left
458:c.left})})},drag:function(a,c,d){var e,f,h,j,l,n,o,r,q,s,x=d.options,t=x.snapTolerance,v=c.offset.left,B=v+d.helperProportions.width,z=c.offset.top,A=z+d.helperProportions.height;for(q=d.snapElements.length-1;q>=0;q--){l=d.snapElements[q].left- 459d.margins.left;n=l+d.snapElements[q].width;o=d.snapElements[q].top-d.margins.top;r=o+d.snapElements[q].height;if(B<l-t||v>n+t||A<o-t||z>r+t||!b.contains(d.snapElements[q].item.ownerDocument,d.snapElements[q].item)){d.snapElements[q].snapping&&d.options.snap.release&&d.options.snap.release.call(d.element,a,b.extend(d._uiHash(),{snapItem:d.snapElements[q].item}));d.snapElements[q].snapping=false}else{if(x.snapMode!=="inner"){e=Math.abs(o-A)<=t;f=Math.abs(r-z)<=t;h=Math.abs(l-B)<=t;j=Math.abs(n-v)<= 460t;if(e)c.position.top=d._convertPositionTo("relative",{top:o-d.helperProportions.height,left:0}).top;if(f)c.position.top=d._convertPositionTo("relative",{top:r,left:0}).top;if(h)c.position.left=d._convertPositionTo("relative",{top:0,left:l-d.helperProportions.width}).left;if(j)c.position.left=d._convertPositionTo("relative",{top:0,left:n}).left}s=e||f||h||j;if(x.snapMode!=="outer"){e=Math.abs(o-z)<=t;f=Math.abs(r-A)<=t;h=Math.abs(l-v)<=t;j=Math.abs(n-B)<=t;if(e)c.position.top=d._convertPositionTo("relative", 461{top:o,left:0}).top;if(f)c.position.top=d._convertPositionTo("relative",{top:r-d.helperProportions.height,left:0}).top;if(h)c.position.left=d._convertPositionTo("relative",{top:0,left:l}).left;if(j)c.position.left=d._convertPositionTo("relative",{top:0,left:n-d.helperProportions.width}).left}!d.snapElements[q].snapping&&(e||f||h||j||s)&&d.options.snap.snap&&d.options.snap.snap.call(d.element,a,b.extend(d._uiHash(),{snapItem:d.snapElements[q].item}));d.snapElements[q].snapping=e||f||h||j||s}}}});b.ui.plugin.add("draggable", 462"stack",{start:function(a,c,d){var e,a=b.makeArray(b(d.options.stack)).sort(function(a,c){return(parseInt(b(a).css("zIndex"),10)||0)-(parseInt(b(c).css("zIndex"),10)||0)});if(a.length){e=parseInt(b(a[0]).css("zIndex"),10)||0;b(a).each(function(a){b(this).css("zIndex",e+a)});this.css("zIndex",e+a.length)}}});b.ui.plugin.add("draggable","zIndex",{start:function(a,c,d){a=b(c.helper);d=d.options;if(a.css("zIndex"))d._zIndex=a.css("zIndex");a.css("zIndex",d.zIndex)},stop:function(a,c,d){a=d.options;a._zIndex&& 463b(c.helper).css("zIndex",a._zIndex)}});b.widget("ui.resizable",b.ui.mouse,{version:"1.12.1",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,classes:{"ui-resizable-se":"ui-icon ui-icon-gripsmall-diagonal-se"},containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_num:function(a){return parseFloat(a)||0},_isNumber:function(a){return!isNaN(parseFloat(a))}, 464_hasScroll:function(a,c){if(b(a).css("overflow")==="hidden")return false;var d=c&&c==="left"?"scrollLeft":"scrollTop",e=false;if(a[d]>0)return true;a[d]=1;e=a[d]>0;a[d]=0;return e},_create:function(){var a,c=this.options,d=this;this._addClass("ui-resizable");b.extend(this,{_aspectRatio:!!c.aspectRatio,aspectRatio:c.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:c.helper||c.ghost||c.animate?c.helper||"ui-resizable-helper":null});if(this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)){this.element.wrap(b("<div class='ui-wrapper' style='overflow: hidden;'></div>").css({position:this.element.css("position"), 465width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")}));this.element=this.element.parent().data("ui-resizable",this.element.resizable("instance"));this.elementIsWrapper=true;a={marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom"),marginLeft:this.originalElement.css("marginLeft")};this.element.css(a);this.originalElement.css("margin", 4660);this.originalResizeStyle=this.originalElement.css("resize");this.originalElement.css("resize","none");this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"}));this.originalElement.css(a);this._proportionallyResize()}this._setupHandles();if(c.autoHide)b(this.element).on("mouseenter",function(){if(!c.disabled){d._removeClass("ui-resizable-autohide");d._handles.show()}}).on("mouseleave",function(){if(!c.disabled&&!d.resizing){d._addClass("ui-resizable-autohide"); 467d._handles.hide()}});this._mouseInit()},_destroy:function(){this._mouseDestroy();var a,c=function(a){b(a).removeData("resizable").removeData("ui-resizable").off(".resizable").find(".ui-resizable-handle").remove()};if(this.elementIsWrapper){c(this.element);a=this.element;this.originalElement.css({position:a.css("position"),width:a.outerWidth(),height:a.outerHeight(),top:a.css("top"),left:a.css("left")}).insertAfter(a);a.remove()}this.originalElement.css("resize",this.originalResizeStyle);c(this.originalElement); 468return this},_setOption:function(a,b){this._super(a,b);switch(a){case "handles":this._removeHandles();this._setupHandles()}},_setupHandles:function(){var a=this.options,c,d,e,f,h,j=this;this.handles=a.handles||(!b(".ui-resizable-handle",this.element).length?"e,s,se":{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"});this._handles=b();if(this.handles.constructor===String){if(this.handles=== 469"all")this.handles="n,e,s,w,se,sw,ne,nw";e=this.handles.split(",");this.handles={};for(d=0;d<e.length;d++){c=b.trim(e[d]);f="ui-resizable-"+c;h=b("<div>");this._addClass(h,"ui-resizable-handle "+f);h.css({zIndex:a.zIndex});this.handles[c]=".ui-resizable-"+c;this.element.append(h)}}this._renderAxis=function(a){var c,d,e,a=a||this.element;
469for(c in this.handles){if(this.handles[c].constructor===String)this.handles[c]=this.element.children(this.handles[c]).first().show();else if(this.handles[c].jquery|| 470this.handles[c].nodeType){this.handles[c]=b(this.handles[c]);this._on(this.handles[c],{mousedown:j._mouseDown})}if(this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)){d=b(this.handles[c],this.element);e=/sw|ne|nw|se|n|s/.test(c)?d.outerHeight():d.outerWidth();d=["padding",/ne|nw|n/.test(c)?"Top":/se|sw|s/.test(c)?"Bottom":/^e$/.test(c)?"Right":"Left"].join("");a.css(d,e);this._proportionallyResize()}this._handles=this._handles.add(this.handles[c])}}; 471this._renderAxis(this.element);this._handles=this._handles.add(this.element.find(".ui-resizable-handle"));this._handles.disableSelection();this._handles.on("mouseover",function(){if(!j.resizing){this.className&&(h=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i));j.axis=h&&h[1]?h[1]:"se"}});if(a.autoHide){this._handles.hide();this._addClass("ui-resizable-autohide")}},_removeHandles:function(){this._handles.remove()},_mouseCapture:function(a){var c,d,e=false;for(c in this.handles){d=b(this.handles[c])[0]; 472if(d===a.target||b.contains(d,a.target))e=true}return!this.options.disabled&&e},_mouseStart:function(a){var c,d,e=this.options,f=this.element;this.resizing=true;this._renderProxy();c=this._num(this.helper.css("left"));d=this._num(this.helper.css("top"));if(e.containment){c=c+(b(e.containment).scrollLeft()||0);d=d+(b(e.containment).scrollTop()||0)}this.offset=this.helper.offset();this.position={left:c,top:d};this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:f.width(), 473height:f.height()};this.originalSize=this._helper?{width:f.outerWidth(),height:f.outerHeight()}:{width:f.width(),height:f.height()};this.sizeDiff={width:f.outerWidth()-f.width(),height:f.outerHeight()-f.height()};this.originalPosition={left:c,top:d};this.originalMousePosition={left:a.pageX,top:a.pageY};this.aspectRatio=typeof e.aspectRatio==="number"?e.aspectRatio:this.originalSize.width/this.originalSize.height||1;c=b(".ui-resizable-"+this.axis).css("cursor");b("body").css("cursor",c==="auto"?this.axis+ 474"-resize":c);this._addClass("ui-resizable-resizing");this._propagate("start",a);return true},_mouseDrag:function(a){var c,d=this.originalMousePosition;c=a.pageX-d.left||0;var d=a.pageY-d.top||0,e=this._change[this.axis];this._updatePrevProperties();if(!e)return false;c=e.apply(this,[a,c,d]);this._updateVirtualBoundaries(a.shiftKey);if(this._aspectRatio||a.shiftKey)c=this._updateRatio(c,a);c=this._respectSize(c,a);this._updateCache(c);this._propagate("resize",a);c=this._applyChanges();!this._helper&& 475this._proportionallyResizeElements.length&&this._proportionallyResize();if(!b.isEmptyObject(c)){this._updatePrevProperties();this._trigger("resize",a,this.ui());this._applyChanges()}return false},_mouseStop:function(a){this.resizing=false;var c,d,e,f=this.options;if(this._helper){c=this._proportionallyResizeElements;c=(d=c.length&&/textarea/i.test(c[0].nodeName))&&this._hasScroll(c[0],"left")?0:this.sizeDiff.height;d=d?0:this.sizeDiff.width;d={width:this.helper.width()-d,height:this.helper.height()- 476c};c=parseFloat(this.element.css("left"))+(this.position.left-this.originalPosition.left)||null;e=parseFloat(this.element.css("top"))+(this.position.top-this.originalPosition.top)||null;f.animate||this.element.css(b.extend(d,{top:e,left:c}));this.helper.height(this.size.height);this.helper.width(this.size.width);this._helper&&!f.animate&&this._proportionallyResize()}b("body").css("cursor","auto");this._removeClass("ui-resizable-resizing");this._propagate("stop",a);this._helper&&this.helper.remove(); 477return false},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left:this.position.left};this.prevSize={width:this.size.width,height:this.size.height}},_applyChanges:function(){var a={};if(this.position.top!==this.prevPosition.top)a.top=this.position.top+"px";if(this.position.left!==this.prevPosition.left)a.left=this.position.left+"px";if(this.size.width!==this.prevSize.width)a.width=this.size.width+"px";if(this.size.height!==this.prevSize.height)a.height=this.size.height+ 478"px";this.helper.css(a);return a},_updateVirtualBoundaries:function(a){var b,d,e,f;f=this.options;f={minWidth:this._isNumber(f.minWidth)?f.minWidth:0,maxWidth:this._isNumber(f.maxWidth)?f.maxWidth:Infinity,minHeight:this._isNumber(f.minHeight)?f.minHeight:0,maxHeight:this._isNumber(f.maxHeight)?f.maxHeight:Infinity};if(this._aspectRatio||a){a=f.minHeight*this.aspectRatio;d=f.minWidth/this.aspectRatio;b=f.maxHeight*this.aspectRatio;e=f.maxWidth/this.aspectRatio;if(a>f.minWidth)f.minWidth=a;if(d>f.minHeight)f.minHeight= 479d;if(b<f.maxWidth)f.maxWidth=b;if(e<f.maxHeight)f.maxHeight=e}this._vBoundaries=f},_updateCache:function(a){this.offset=this.helper.offset();
479if(this._isNumber(a.left))this.position.left=a.left;if(this._isNumber(a.top))this.position.top=a.top;if(this._isNumber(a.height))this.size.height=a.height;if(this._isNumber(a.width))this.size.width=a.width},_updateRatio:function(a){var b=this.position,d=this.size,e=this.axis;if(this._isNumber(a.height))a.width=a.height*this.aspectRatio;else if(this._isNumber(a.width))a.height= 480a.width/this.aspectRatio;if(e==="sw"){a.left=b.left+(d.width-a.width);a.top=null}if(e==="nw"){a.top=b.top+(d.height-a.height);a.left=b.left+(d.width-a.width)}return a},_respectSize:function(a){var b=this._vBoundaries,d=this.axis,e=this._isNumber(a.width)&&b.maxWidth&&b.maxWidth<a.width,f=this._isNumber(a.height)&&b.maxHeight&&b.maxHeight<a.height,h=this._isNumber(a.width)&&b.minWidth&&b.minWidth>a.width,j=this._isNumber(a.height)&&b.minHeight&&b.minHeight>a.height,l=this.originalPosition.left+this.originalSize.width, 481n=this.originalPosition.top+this.originalSize.height,o=/sw|nw|w/.test(d),d=/nw|ne|n/.test(d);if(h)a.width=b.minWidth;if(j)a.height=b.minHeight;if(e)a.width=b.maxWidth;if(f)a.height=b.maxHeight;if(h&&o)a.left=l-b.minWidth;if(e&&o)a.left=l-b.maxWidth;if(j&&d)a.top=n-b.minHeight;if(f&&d)a.top=n-b.maxHeight;if(!a.width&&!a.height&&!a.left&&a.top)a.top=null;else if(!a.width&&!a.height&&!a.top&&a.left)a.left=null;return a},_getPaddingPlusBorderDimensions:function(a){for(var b=0,d=[],e=[a.css("borderTopWidth"), 482a.css("borderRightWidth"),a.css("borderBottomWidth"),a.css("borderLeftWidth")],a=[a.css("paddingTop"),a.css("paddingRight"),a.css("paddingBottom"),a.css("paddingLeft")];b<4;b++){d[b]=parseFloat(e[b])||0;d[b]=d[b]+(parseFloat(a[b])||0)}return{height:d[0]+d[2],width:d[1]+d[3]}},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var a,b=0,d=this.helper||this.element;b<this._proportionallyResizeElements.length;b++){a=this._proportionallyResizeElements[b];if(!this.outerDimensions)this.outerDimensions= 483this._getPaddingPlusBorderDimensions(a);a.css({height:d.height()-this.outerDimensions.height||0,width:d.width()-this.outerDimensions.width||0})}},_renderProxy:function(){var a=this.options;this.elementOffset=this.element.offset();if(this._helper){this.helper=this.helper||b("<div style='overflow:hidden;'></div>");this._addClass(this.helper,this._helper);this.helper.css({width:this.element.outerWidth(),height:this.element.outerHeight(),position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+ 484"px",zIndex:++a.zIndex});this.helper.appendTo("body").disableSelection()}else this.helper=this.element},_change:{e:function(a,b){return{width:this.originalSize.width+b}},w:function(a,b){return{left:this.originalPosition.left+b,width:this.originalSize.width-b}},n:function(a,b,d){return{top:this.originalPosition.top+d,height:this.originalSize.height-d}},s:function(a,b,d){return{height:this.originalSize.height+d}},se:function(a,c,d){return b.extend(this._change.s.apply(this,arguments),this._change.e.apply(this, 485[a,c,d]))},sw:function(a,c,d){return b.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[a,c,d]))},ne:function(a,c,d){return b.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[a,c,d]))},nw:function(a,c,d){return b.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[a,c,d]))}},_propagate:function(a,c){b.ui.plugin.call(this,a,[c,this.ui()]);a!=="resize"&&this._trigger(a,c,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement, 486element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}});b.ui.plugin.add("resizable","animate",{stop:function(a){var c=b(this).resizable("instance"),d=c.options,e=c._proportionallyResizeElements,f=e.length&&/textarea/i.test(e[0].nodeName),h=f&&c._hasScroll(e[0],"left")?0:c.sizeDiff.height,f={width:c.size.width-(f?0:c.sizeDiff.width),height:c.size.height-h},h=parseFloat(c.element.css("left"))+(c.position.left- 487c.originalPosition.left)||null,j=parseFloat(c.element.css("top"))+(c.position.top-c.originalPosition.top)||null;c.element.animate(b.extend(f,j&&h?{top:j,left:h}:{}),{duration:d.animateDuration,easing:d.animateEasing,step:function(){var d={width:parseFloat(c.element.css("width")),height:parseFloat(c.element.css("height")),top:parseFloat(c.element.css("top")),left:parseFloat(c.element.css("left"))};e&&e.length&&b(e[0]).css({width:d.width,height:d.height});c._updateCache(d);c._propagate("resize",a)}})}}); 488b.ui.plugin.add("resizable","containment",{start:function(){var a,c,d,e,f,h=b(this).resizable("instance"),j=h.element;d=h.options.containment;if(j=d instanceof b?d.get(0):/parent/.test(d)?j.parent().get(0):d){h.containerElement=b(j);if(/document/.test(d)||d===document){h.containerOffset={left:0,top:0};h.containerPosition={left:0,top:0};h.parentData={element:b(document),left:0,top:0,width:b(document).width(),height:b(document).height()||document.body.parentNode.scrollHeight}}else{a=b(j);c=[];b(["Top", 489"Right","Left","Bottom"]).each(function(b,d){c[b]=h._num(a.css("padding"+d))});h.containerOffset=a.offset();h.containerPosition=a.position();h.containerSize={height:a.innerHeight()-c[3],width:a.innerWidth()-c[1]};d=h.containerOffset;e=h.containerSize.height;f=h.containerSize.width;f=h._hasScroll(j,"left")?j.scrollWidth:f;e=h._hasScroll(j)?j.scrollHeight:e;h.parentData={element:j,left:d.left,top:d.top,width:f,height:e}}}},resize:function(a){var c,d,e,f=b(this).resizable("instance");c=f.options;d=f.containerOffset; 490e=f.position;var a=f._aspectRatio||a.shiftKey,h={top:0,left:0},j=f.containerElement,l=true;j[0]!==document&&/static/.test(j.css("position"))&&(h=d);if(e.left<(f._helper?d.left:0)){f.size.width=f.size.width+(f._helper?f.position.left-d.left:f.position.left-h.left);if(a){f.size.height=f.size.width/f.aspectRatio;l=false}
490f.position.left=c.helper?d.left:0}if(e.top<(f._helper?d.top:0)){f.size.height=f.size.height+(f._helper?f.position.top-d.top:f.position.top);if(a){f.size.width=f.size.height*f.aspectRatio; 491l=false}f.position.top=f._helper?d.top:0}c=f.containerElement.get(0)===f.element.parent().get(0);e=/relative|absolute/.test(f.containerElement.css("position"));if(c&&e){f.offset.left=f.parentData.left+f.position.left;f.offset.top=f.parentData.top+f.position.top}else{f.offset.left=f.element.offset().left;f.offset.top=f.element.offset().top}c=Math.abs(f.sizeDiff.width+(f._helper?f.offset.left-h.left:f.offset.left-d.left));d=Math.abs(f.sizeDiff.height+(f._helper?f.offset.top-h.top:f.offset.top-d.top)); 492if(c+f.size.width>=f.parentData.width){f.size.width=f.parentData.width-c;if(a){f.size.height=f.size.width/f.aspectRatio;l=false}}if(d+f.size.height>=f.parentData.height){f.size.height=f.parentData.height-d;if(a){f.size.width=f.size.height*f.aspectRatio;l=false}}if(!l){f.position.left=f.prevPosition.left;f.position.top=f.prevPosition.top;f.size.width=f.prevSize.width;f.size.height=f.prevSize.height}},stop:function(){var a=b(this).resizable("instance"),c=a.options,d=a.containerOffset,e=a.containerPosition, 493f=a.containerElement,h=b(a.helper),j=h.offset(),l=h.outerWidth()-a.sizeDiff.width,h=h.outerHeight()-a.sizeDiff.height;a._helper&&(!c.animate&&/relative/.test(f.css("position")))&&b(this).css({left:j.left-e.left-d.left,width:l,height:h});a._helper&&(!c.animate&&/static/.test(f.css("position")))&&b(this).css({left:j.left-e.left-d.left,width:l,height:h})}});b.ui.plugin.add("resizable","alsoResize",{start:function(){var a=b(this).resizable("instance").options;b(a.alsoResize).each(function(){var a=b(this); 494a.data("ui-resizable-alsoresize",{width:parseFloat(a.width()),height:parseFloat(a.height()),left:parseFloat(a.css("left")),top:parseFloat(a.css("top"))})})},resize:function(a,c){var d=b(this).resizable("instance"),e=d.originalSize,f=d.originalPosition,h={height:d.size.height-e.height||0,width:d.size.width-e.width||0,top:d.position.top-f.top||0,left:d.position.left-f.left||0};b(d.options.alsoResize).each(function(){var a=b(this),d=b(this).data("ui-resizable-alsoresize"),e={},g=a.parents(c.originalElement[0]).length? 495["width","height"]:["width","height","top","left"];b.each(g,function(a,b){var c=(d[b]||0)+(h[b]||0);c&&c>=0&&(e[b]=c||null)});a.css(e)})},stop:function(){b(this).removeData("ui-resizable-alsoresize")}});b.ui.plugin.add("resizable","ghost",{start:function(){var a=b(this).resizable("instance"),c=a.size;a.ghost=a.originalElement.clone();a.ghost.css({opacity:0.25,display:"block",position:"relative",height:c.height,width:c.width,margin:0,left:0,top:0});a._addClass(a.ghost,"ui-resizable-ghost");b.uiBackCompat!== 496false&&typeof a.options.ghost==="string"&&a.ghost.addClass(this.options.ghost);a.ghost.appendTo(a.helper)},resize:function(){var a=b(this).resizable("instance");a.ghost&&a.ghost.css({position:"relative",height:a.size.height,width:a.size.width})},stop:function(){var a=b(this).resizable("instance");a.ghost&&a.helper&&a.helper.get(0).removeChild(a.ghost.get(0))}});b.ui.plugin.add("resizable","grid",{resize:function(){var a,c=b(this).resizable("instance"),d=c.options,e=c.size,f=c.originalSize,h=c.originalPosition, 497j=c.axis,l=typeof d.grid==="number"?[d.grid,d.grid]:d.grid,n=l[0]||1,o=l[1]||1,r=Math.round((e.width-f.width)/n)*n,e=Math.round((e.height-f.height)/o)*o,q=f.width+r,s=f.height+e,x=d.maxWidth&&d.maxWidth<q,t=d.maxHeight&&d.maxHeight<s,v=d.minWidth&&d.minWidth>q,B=d.minHeight&&d.minHeight>s;d.grid=l;v&&(q=q+n);B&&(s=s+o);x&&(q=q-n);t&&(s=s-o);if(/^(se|s|e)$/.test(j)){c.size.width=q;c.size.height=s}else if(/^(ne)$/.test(j)){c.size.width=q;c.size.height=s;c.position.top=h.top-e}else if(/^(sw)$/.test(j)){c.size.width= 498q;c.size.height=s;c.position.left=h.left-r}else{if(s-o<=0||q-n<=0)a=c._getPaddingPlusBorderDimensions(this);if(s-o>0){c.size.height=s;c.position.top=h.top-e}else{s=o-a.height;c.size.height=s;c.position.top=h.top+f.height-s}if(q-n>0){c.size.width=q;c.position.left=h.left-r}else{q=n-a.width;c.size.width=q;
498c.position.left=h.left+f.width-q}}}});b.widget("ui.dialog",{version:"1.12.1",options:{appendTo:"body",autoOpen:!0,buttons:[],classes:{"ui-dialog":"ui-corner-all","ui-dialog-titlebar":"ui-corner-all"}, 499closeOnEscape:!0,closeText:"Close",draggable:!0,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(a){var c=b(this).css(a).offset().top;c<0&&b(this).css("top",a.top-c)}},resizable:!0,show:null,title:null,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},sizeRelatedOptions:{buttons:!0,height:!0, 500maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},resizableRelatedOptions:{maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0},_create:function(){this.originalCss={display:this.element[0].style.display,width:this.element[0].style.width,minHeight:this.element[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.height};this.originalPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)};this.originalTitle=this.element.attr("title"); 501if(this.options.title==null&&this.originalTitle!=null)this.options.title=this.originalTitle;if(this.options.disabled)this.options.disabled=false;this._createWrapper();this.element.show().removeAttr("title").appendTo(this.uiDialog);this._addClass("ui-dialog-content","ui-widget-content");this._createTitlebar();this._createButtonPane();this.options.draggable&&b.fn.draggable&&this._makeDraggable();this.options.resizable&&b.fn.resizable&&this._makeResizable();this._isOpen=false;this._trackFocus()},_init:function(){this.options.autoOpen&& 502this.open()},_appendTo:function(){var a=this.options.appendTo;return a&&(a.jquery||a.nodeType)?b(a):this.document.find(a||"body").eq(0)},_destroy:function(){var a,b=this.originalPosition;this._untrackInstance();this._destroyOverlay();this.element.removeUniqueId().css(this.originalCss).detach();this.uiDialog.remove();this.originalTitle&&this.element.attr("title",this.originalTitle);a=b.parent.children().eq(b.index);a.length&&a[0]!==this.element[0]?a.before(this.element):b.parent.append(this.element)}, 503widget:function(){return this.uiDialog},disable:b.noop,enable:b.noop,close:function(a){var c=this;if(this._isOpen&&this._trigger("beforeClose",a)!==false){this._isOpen=false;this._focusedElement=null;this._destroyOverlay();this._untrackInstance();this.opener.filter(":focusable").trigger("focus").length||b.ui.safeBlur(b.ui.safeActiveElement(this.document[0]));this._hide(this.uiDialog,this.options.hide,function(){c._trigger("close",a)})}},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()}, 504_moveToTop:function(a,c){var d=false,e=this.uiDialog.siblings(".ui-front:visible").map(function(){return+b(this).css("z-index")}).get(),e=Math.max.apply(null,e);if(e>=+this.uiDialog.css("z-index")){this.uiDialog.css("z-index",e+1);d=true}d&&!c&&this._trigger("focus",a);return d},open:function(){var a=this;if(this._isOpen)this._moveToTop()&&this._focusTabbable();else{this._isOpen=true;this.opener=b(b.ui.safeActiveElement(this.document[0]));this._size();this._position();this._createOverlay();this._moveToTop(null, 505true);this.overlay&&this.overlay.css("z-index",this.uiDialog.css("z-index")-1);this._show(this.uiDialog,this.options.show,function(){a._focusTabbable();a._trigger("focus")});this._makeFocusTarget();this._trigger("open")}},_focusTabbable:function(){var a=this._focusedElement;a||(a=this.element.find("[autofocus]"));a.length||(a=this.element.find(":tabbable"));a.length||(a=this.uiDialogButtonPane.find(":tabbable"));a.length||(a=this.uiDialogTitlebarClose.filter(":tabbable"));if(!a.length)a=this.uiDialog; 506a.eq(0).trigger("focus")},_keepFocus:function(a){function c(){var a=b.ui.safeActiveElement(this.document[0]);this.uiDialog[0]===a||b.contains(this.uiDialog[0],a)||this._focusTabbable()}a.preventDefault();c.call(this);this._delay(c)},_createWrapper:function(){this.uiDialog=b("<div>").hide().attr({tabIndex:-1,role:"dialog"}).appendTo(this._appendTo());this._addClass(this.uiDialog,"ui-dialog","ui-widget ui-widget-content ui-front");
506this._on(this.uiDialog,{keydown:function(a){if(this.options.closeOnEscape&& 507!a.isDefaultPrevented()&&a.keyCode&&a.keyCode===b.ui.keyCode.ESCAPE){a.preventDefault();this.close(a)}else if(!(a.keyCode!==b.ui.keyCode.TAB||a.isDefaultPrevented())){var c=this.uiDialog.find(":tabbable"),d=c.filter(":first"),e=c.filter(":last");if((a.target===e[0]||a.target===this.uiDialog[0])&&!a.shiftKey){this._delay(function(){d.trigger("focus")});a.preventDefault()}else if((a.target===d[0]||a.target===this.uiDialog[0])&&a.shiftKey){this._delay(function(){e.trigger("focus")});a.preventDefault()}}}, 508mousedown:function(a){this._moveToTop(a)&&this._focusTabbable()}});this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var a;this.uiDialogTitlebar=b("<div>");this._addClass(this.uiDialogTitlebar,"ui-dialog-titlebar","ui-widget-header ui-helper-clearfix");this._on(this.uiDialogTitlebar,{mousedown:function(a){b(a.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.trigger("focus")}});this.uiDialogTitlebarClose= 509b("<button type='button'></button>").button({label:b("<a>").text(this.options.closeText).html(),icon:"ui-icon-closethick",showLabel:false}).appendTo(this.uiDialogTitlebar);this._addClass(this.uiDialogTitlebarClose,"ui-dialog-titlebar-close");this._on(this.uiDialogTitlebarClose,{click:function(a){a.preventDefault();this.close(a)}});a=b("<span>").uniqueId().prependTo(this.uiDialogTitlebar);this._addClass(a,"ui-dialog-title");this._title(a);this.uiDialogTitlebar.prependTo(this.uiDialog);this.uiDialog.attr({"aria-labelledby":a.attr("id")})}, 510_title:function(a){this.options.title?a.text(this.options.title):a.html(" ")},_createButtonPane:function(){this.uiDialogButtonPane=b("<div>");this._addClass(this.uiDialogButtonPane,"ui-dialog-buttonpane","ui-widget-content ui-helper-clearfix");this.uiButtonSet=b("<div>").appendTo(this.uiDialogButtonPane);this._addClass(this.uiButtonSet,"ui-dialog-buttonset");this._createButtons()},_createButtons:function(){var a=this,c=this.options.buttons;this.uiDialogButtonPane.remove();this.uiButtonSet.empty(); 511if(b.isEmptyObject(c)||b.isArray(c)&&!c.length)this._removeClass(this.uiDialog,"ui-dialog-buttons");else{b.each(c,function(c,e){var f,h,e=b.isFunction(e)?{click:e,text:c}:e,e=b.extend({type:"button"},e);f=e.click;h={icon:e.icon,iconPosition:e.iconPosition,showLabel:e.showLabel,icons:e.icons,text:e.text};delete e.click;delete e.icon;delete e.iconPosition;delete e.showLabel;delete e.icons;typeof e.text==="boolean"&&delete e.text;b("<button></button>",e).button(h).appendTo(a.uiButtonSet).on("click", 512function(){f.apply(a.element[0],arguments)})});this._addClass(this.uiDialog,"ui-dialog-buttons");this.uiDialogButtonPane.appendTo(this.uiDialog)}},_makeDraggable:function(){function a(a){return{position:a.position,offset:a.offset}}var c=this,d=this.options;this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(d,e){c._addClass(b(this),"ui-dialog-dragging");c._blockFrames();c._trigger("dragStart",d,a(e))},drag:function(b, 513d){c._trigger("drag",b,a(d))},stop:function(e,f){var h=f.offset.left-c.document.scrollLeft(),j=f.offset.top-c.document.scrollTop();d.position={my:"left top",at:"left"+(h>=0?"+":"")+h+" top"+(j>=0?"+":"")+j,of:c.window};c._removeClass(b(this),"ui-dialog-dragging");c._unblockFrames();c._trigger("dragStop",e,a(f))}})},_makeResizable:function(){function a(a){return{originalPosition:a.originalPosition,originalSize:a.originalSize,position:a.position,size:a.size}}var c=this,d=this.options,e=d.resizable, 514f=this.uiDialog.css("position"),e=typeof e==="string"?e:"n,e,s,w,se,sw,ne,nw";this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:d.maxWidth,maxHeight:d.maxHeight,minWidth:d.minWidth,minHeight:this._minHeight(),handles:e,start:function(d,e){c._addClass(b(this),"ui-dialog-resizing");c._blockFrames();c._trigger("resizeStart",d,a(e))},resize:function(b,d){c._trigger("resize",b,a(d))},stop:function(e,g){var f=c.uiDialog.offset(),h=f.left-c.document.scrollLeft(), 515f=f.top-c.document.scrollTop();d.height=c.uiDialog.height();d.width=c.uiDialog.width();d.position={my:"left top",at:"left"+(h>=0?"+":"")+h+" top"+(f>=0?"+":"")+f,of:c.window};c._removeClass(b(this),"ui-dialog-resizing");c._unblockFrames();c._trigger("resizeStop",e,a(g))}}).css("position",f)},_trackFocus:function(){this._on(this.widget(),{focusin:function(a){this._makeFocusTarget();this._focusedElement=b(a.target)}})},_makeFocusTarget:function(){this._untrackInstance();this._trackingInstances().unshift(this)}, 516_untrackInstance:function(){var a=this._trackingInstances(),c=b.inArray(this,a);c!==-1&&a.splice(c,1)},_trackingInstances:function(){var a=this.document.data("ui-dialog-instances");if(!a){a=[];this.document.data("ui-dialog-instances",a)}return a},_minHeight:function(){var a=this.options;return a.height==="auto"?a.minHeight:Math.min(a.minHeight,a.height)},_position:function(){var a=this.uiDialog.is(":visible");a||this.uiDialog.show();this.uiDialog.position(this.options.position);a||this.uiDialog.hide()}, 517_setOptions:function(a){var c=this,d=false,e={};b.each(a,function(a,b){c._setOption(a,b);a in c.sizeRelatedOptions&&(d=true);a in c.resizableRelatedOptions&&(e[a]=b)});if(d){this._size();this._position()}this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",e)},_setOption:function(a,c){var d,e=this.uiDialog;if(a!=="disabled"){this._super(a,c);a==="appendTo"&&this.uiDialog.appendTo(this._appendTo());a==="buttons"&&this._createButtons();a==="closeText"&&this.uiDialogTitlebarClose.button({label:b("<a>").text(""+ 518this.options.closeText).html()});if(a==="draggable"){(d=e.is(":data(ui-draggable)"))&&!c&&e.draggable("destroy");!d&&c&&this._makeDraggable()}a==="position"&&this._position();if(a==="resizable"){(d=e.is(":data(ui-resizable)"))&&!c&&e.resizable("destroy");
518d&&typeof c==="string"&&e.resizable("option","handles",c);!d&&c!==false&&this._makeResizable()}a==="title"&&this._title(this.uiDialogTitlebar.find(".ui-dialog-title"))}},_size:function(){var a,b,d,e=this.options;this.element.show().css({width:"auto", 519minHeight:0,maxHeight:"none",height:0});if(e.minWidth>e.width)e.width=e.minWidth;a=this.uiDialog.css({height:"auto",width:e.width}).outerHeight();b=Math.max(0,e.minHeight-a);d=typeof e.maxHeight==="number"?Math.max(0,e.maxHeight-a):"none";e.height==="auto"?this.element.css({minHeight:b,maxHeight:d,height:"auto"}):this.element.height(Math.max(0,e.height-a));this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())},_blockFrames:function(){this.iframeBlocks= 520this.document.find("iframe").map(function(){var a=b(this);return b("<div>").css({position:"absolute",width:a.outerWidth(),height:a.outerHeight()}).appendTo(a.parent()).offset(a.offset())[0]})},_unblockFrames:function(){if(this.iframeBlocks){this.iframeBlocks.remove();delete this.iframeBlocks}},_allowInteraction:function(a){return b(a.target).closest(".ui-dialog").length?true:!!b(a.target).closest(".ui-datepicker").length},_createOverlay:function(){if(this.options.modal){var a=true;this._delay(function(){a= 521false});this.document.data("ui-dialog-overlays")||this._on(this.document,{focusin:function(b){if(!a&&!this._allowInteraction(b)){b.preventDefault();this._trackingInstances()[0]._focusTabbable()}}});this.overlay=b("<div>").appendTo(this._appendTo());this._addClass(this.overlay,null,"ui-widget-overlay ui-front");this._on(this.overlay,{mousedown:"_keepFocus"});this.document.data("ui-dialog-overlays",(this.document.data("ui-dialog-overlays")||0)+1)}},_destroyOverlay:function(){if(this.options.modal&& 522this.overlay){var a=this.document.data("ui-dialog-overlays")-1;if(a)this.document.data("ui-dialog-overlays",a);else{this._off(this.document,"focusin");this.document.removeData("ui-dialog-overlays")}this.overlay.remove();this.overlay=null}}});!1!==b.uiBackCompat&&b.widget("ui.dialog",b.ui.dialog,{options:{dialogClass:""},_createWrapper:function(){this._super();this.uiDialog.addClass(this.options.dialogClass)},_setOption:function(a,b){a==="dialogClass"&&this.uiDialog.removeClass(this.options.dialogClass).addClass(b); 523this._superApply(arguments)}});b.widget("ui.droppable",{version:"1.12.1",widgetEventPrefix:"drop",options:{accept:"*",addClasses:!0,greedy:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var a,c=this.options,d=c.accept;this.isover=false;this.isout=true;this.accept=b.isFunction(d)?d:function(a){return a.is(d)};this.proportions=function(){if(arguments.length)a=arguments[0];else return a?a:a={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight}}; 524this._addToManager(c.scope);c.addClasses&&this._addClass("ui-droppable")},_addToManager:function(a){b.ui.ddmanager.droppables[a]=b.ui.ddmanager.droppables[a]||[];b.ui.ddmanager.droppables[a].push(this)},_splice:function(a){for(var b=0;b<a.length;b++)a[b]===this&&a.splice(b,1)},_destroy:function(){this._splice(b.ui.ddmanager.droppables[this.options.scope])},_setOption:function(a,c){if(a==="accept")this.accept=b.isFunction(c)?c:function(a){return a.is(c)};else if(a==="scope"){this._splice(b.ui.ddmanager.droppables[this.options.scope]); 525this._addToManager(c)}this._super(a,c)},_activate:function(a){var c=b.ui.ddmanager.current;this._addActiveClass();c&&this._trigger("activate",a,this.ui(c))},_deactivate:function(a){var c=b.ui.ddmanager.current;this._removeActiveClass();c&&this._trigger("deactivate",a,this.ui(c))},_over:function(a){var c=b.ui.ddmanager.current;if(c&&(c.currentItem||c.element)[0]!==this.element[0])if(this.accept.call(this.element[0],c.currentItem||c.element)){this._addHoverClass();this._trigger("over",a,this.ui(c))}}, 526_out:function(a){var c=b.ui.ddmanager.current;if(c&&(c.currentItem||c.element)[0]!==this.element[0])if(this.accept.call(this.element[0],c.currentItem||c.element)){this._removeHoverClass();this._trigger("out",a,this.ui(c))}},_drop:function(a,c){var d=c||b.ui.ddmanager.current,e=false;if(!d||(d.currentItem||d.element)[0]===this.element[0])return false;this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function(){var c=b(this).droppable("instance");if(c.options.greedy&&!c.options.disabled&& 527c.options.scope===d.options.scope&&c.accept.call(c.element[0],d.currentItem||d.element)&&Pa(d,b.extend(c,{offset:c.element.offset()}),c.options.tolerance,a)){e=true;return false}});if(e)return false;if(this.accept.call(this.element[0],d.currentItem||d.element)){this._removeActiveClass();this._removeHoverClass();this._trigger("drop",a,this.ui(d));return this.element}return false},ui:function(a){return{draggable:a.currentItem||a.element,helper:
527a.helper,position:a.position,offset:a.positionAbs}},_addHoverClass:function(){this._addClass("ui-droppable-hover")}, 528_removeHoverClass:function(){this._removeClass("ui-droppable-hover")},_addActiveClass:function(){this._addClass("ui-droppable-active")},_removeActiveClass:function(){this._removeClass("ui-droppable-active")}});var Pa=b.ui.intersect=function(a,b,d,e){if(!b.offset)return false;var f=(a.positionAbs||a.position.absolute).left+a.margins.left,h=(a.positionAbs||a.position.absolute).top+a.margins.top,j=f+a.helperProportions.width,l=h+a.helperProportions.height,n=b.offset.left,o=b.offset.top,r=n+b.proportions().width, 529q=o+b.proportions().height;switch(d){case "fit":return n<=f&&j<=r&&o<=h&&l<=q;case "intersect":return n<f+a.helperProportions.width/2&&j-a.helperProportions.width/2<r&&o<h+a.helperProportions.height/2&&l-a.helperProportions.height/2<q;case "pointer":a=e.pageY;d=b.proportions().height;if(o=a>=o&&a<o+d){e=e.pageX;b=b.proportions().width;o=e>=n&&e<n+b}return o;case "touch":return(h>=o&&h<=q||l>=o&&l<=q||h<o&&l>q)&&(f>=n&&f<=r||j>=n&&j<=r||f<n&&j>r);default:return false}};b.ui.ddmanager={current:null, 530droppables:{"default":[]},prepareOffsets:function(a,c){var d,e,f=b.ui.ddmanager.droppables[a.options.scope]||[],h=c?c.type:null,j=(a.currentItem||a.element).find(":data(ui-droppable)").addBack();d=0;a:for(;d<f.length;d++)if(!(f[d].options.disabled||a&&!f[d].accept.call(f[d].element[0],a.currentItem||a.element))){for(e=0;e<j.length;e++)if(j[e]===f[d].element[0]){f[d].proportions().height=0;continue a}f[d].visible=f[d].element.css("display")!=="none";if(f[d].visible){h==="mousedown"&&f[d]._activate.call(f[d], 531c);f[d].offset=f[d].element.offset();f[d].proportions({width:f[d].element[0].offsetWidth,height:f[d].element[0].offsetHeight})}}},drop:function(a,c){var d=false;b.each((b.ui.ddmanager.droppables[a.options.scope]||[]).slice(),function(){if(this.options){!this.options.disabled&&(this.visible&&Pa(a,this,this.options.tolerance,c))&&(d=this._drop.call(this,c)||d);if(!this.options.disabled&&this.visible&&this.accept.call(this.element[0],a.currentItem||a.element)){this.isout=true;this.isover=false;this._deactivate.call(this, 532c)}}});return d},dragStart:function(a,c){a.element.parentsUntil("body").on("scroll.droppable",function(){a.options.refreshPositions||b.ui.ddmanager.prepareOffsets(a,c)})},drag:function(a,c){a.options.refreshPositions&&b.ui.ddmanager.prepareOffsets(a,c);b.each(b.ui.ddmanager.droppables[a.options.scope]||[],function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var d,e,f;f=Pa(a,this,this.options.tolerance,c);var h=!f&&this.isover?"isout":f&&!this.isover?"isover":null;if(h){if(this.options.greedy){e= 533this.options.scope;f=this.element.parents(":data(ui-droppable)").filter(function(){return b(this).droppable("instance").options.scope===e});if(f.length){d=b(f[0]).droppable("instance");d.greedyChild=h==="isover"}}if(d&&h==="isover"){d.isover=false;d.isout=true;d._out.call(d,c)}this[h]=true;this[h==="isout"?"isover":"isout"]=false;this[h==="isover"?"_over":"_out"].call(this,c);if(d&&h==="isout"){d.isout=false;d.isover=true;d._over.call(d,c)}}}})},dragStop:function(a,c){a.element.parentsUntil("body").off("scroll.droppable"); 534a.options.refreshPositions||b.ui.ddmanager.prepareOffsets(a,c)}};!1!==b.uiBackCompat&&b.widget("ui.droppable",b.ui.droppable,{options:{hoverClass:!1,activeClass:!1},_addActiveClass:function(){this._super();this.options.activeClass&&this.element.addClass(this.options.activeClass)},_removeActiveClass:function(){this._super();this.options.activeClass&&this.element.removeClass(this.options.activeClass)},_addHoverClass:function(){this._super();this.options.hoverClass&&this.element.addClass(this.options.hoverClass)}, 535_removeHoverClass:function(){this._super();this.options.hoverClass&&this.element.removeClass(this.options.hoverClass)}});b.widget("ui.progressbar",{version:"1.12.1",options:{classes:{"ui-progressbar":"ui-corner-all","ui-progressbar-value":"ui-corner-left","ui-progressbar-complete":"ui-corner-right"},max:100,value:0,change:null,complete:null},min:0,_create:function(){this.oldValue=this.options.value=this._constrainedValue();this.element.attr({role:"progressbar","aria-valuemin":this.min});this._addClass("ui-progressbar", 536"ui-widget ui-widget-content");this.valueDiv=b("<div>").appendTo(this.element);this._addClass(this.valueDiv,"ui-progressbar-value","ui-widget-header");this._refreshValue()},_destroy:function(){this.element.removeAttr("role aria-valuemin aria-valuemax aria-valuenow");this.valueDiv.remove()}
536,value:function(a){if(a===void 0)return this.options.value;this.options.value=this._constrainedValue(a);this._refreshValue()},_constrainedValue:function(a){if(a===void 0)a=this.options.value;this.indeterminate=a=== 537false;typeof a!=="number"&&(a=0);return this.indeterminate?false:Math.min(this.options.max,Math.max(this.min,a))},_setOptions:function(a){var b=a.value;delete a.value;this._super(a);this.options.value=this._constrainedValue(b);this._refreshValue()},_setOption:function(a,b){a==="max"&&(b=Math.max(this.min,b));this._super(a,b)},_setOptionDisabled:function(a){this._super(a);this.element.attr("aria-disabled",a);this._toggleClass(null,"ui-state-disabled",!!a)},_percentage:function(){return this.indeterminate? 538100:100*(this.options.value-this.min)/(this.options.max-this.min)},_refreshValue:function(){var a=this.options.value,c=this._percentage();this.valueDiv.toggle(this.indeterminate||a>this.min).width(c.toFixed(0)+"%");this._toggleClass(this.valueDiv,"ui-progressbar-complete",null,a===this.options.max)._toggleClass("ui-progressbar-indeterminate",null,this.indeterminate);if(this.indeterminate){this.element.removeAttr("aria-valuenow");if(!this.overlayDiv){this.overlayDiv=b("<div>").appendTo(this.valueDiv); 539this._addClass(this.overlayDiv,"ui-progressbar-overlay")}}else{this.element.attr({"aria-valuemax":this.options.max,"aria-valuenow":a});if(this.overlayDiv){this.overlayDiv.remove();this.overlayDiv=null}}if(this.oldValue!==a){this.oldValue=a;this._trigger("change")}a===this.options.max&&this._trigger("complete")}});b.widget("ui.selectable",b.ui.mouse,{version:"1.12.1",options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch",selected:null,selecting:null,start:null,stop:null,unselected:null, 540unselecting:null},_create:function(){var a=this;this._addClass("ui-selectable");this.dragged=false;this.refresh=function(){a.elementPos=b(a.element[0]).offset();a.selectees=b(a.options.filter,a.element[0]);a._addClass(a.selectees,"ui-selectee");a.selectees.each(function(){var c=b(this),d=c.offset(),e=d.left-a.elementPos.left,d=d.top-a.elementPos.top;b.data(this,"selectable-item",{element:this,$element:c,left:e,top:d,right:e+c.outerWidth(),bottom:d+c.outerHeight(),startselected:false,selected:c.hasClass("ui-selected"), 541selecting:c.hasClass("ui-selecting"),unselecting:c.hasClass("ui-unselecting")})})};this.refresh();this._mouseInit();this.helper=b("<div>");this._addClass(this.helper,"ui-selectable-helper")},_destroy:function(){this.selectees.removeData("selectable-item");this._mouseDestroy()},_mouseStart:function(a){var c=this,d=this.options;this.opos=[a.pageX,a.pageY];this.elementPos=b(this.element[0]).offset();if(!this.options.disabled){this.selectees=b(d.filter,this.element[0]);this._trigger("start",a);b(d.appendTo).append(this.helper); 542this.helper.css({left:a.pageX,top:a.pageY,width:0,height:0});d.autoRefresh&&this.refresh();this.selectees.filter(".ui-selected").each(function(){var d=b.data(this,"selectable-item");d.startselected=true;if(!a.metaKey&&!a.ctrlKey){c._removeClass(d.$element,"ui-selected");d.selected=false;c._addClass(d.$element,"ui-unselecting");d.unselecting=true;c._trigger("unselecting",a,{unselecting:d.element})}});b(a.target).parents().addBack().each(function(){var d,e=b.data(this,"selectable-item");if(e){d=!a.metaKey&& 543!a.ctrlKey||!e.$element.hasClass("ui-selected");c._removeClass(e.$element,d?"ui-unselecting":"ui-selected")._addClass(e.$element,d?"ui-selecting":"ui-unselecting");e.unselecting=!d;e.selecting=d;(e.selected=d)?c._trigger("selecting",a,{selecting:e.element}):c._trigger("unselecting",a,{unselecting:e.element});return false}})}},_mouseDrag:function(a){this.dragged=true;if(!this.options.disabled){var c,d=this,e=this.options,f=this.opos[0],h=this.opos[1],j=a.pageX,l=a.pageY;if(f>j){c=j;j=f;f=c}if(h>l){c= 544l;l=h;h=c}this.helper.css({left:f,top:h,width:j-f,height:l-h});this.selectees.each(function(){var c=b.data(this,"selectable-item"),n=false,o,r,q,s;if(c&&c.element!==d.element[0]){o=c.left+d.elementPos.left;r=c.right+d.elementPos.left;q=c.top+d.elementPos.top;s=c.bottom+d.elementPos.top;e.tolerance==="touch"?n=!(o>j||r<f||q>l||s<h):e.tolerance==="fit"&&(n=o>f&&r<j&&q>h&&s<l);if(n){if(c.selected){d._removeClass(c.$element,"ui-selected");c.selected=false}if(c.unselecting){d._removeClass(c.$element,"ui-unselecting"); 545c.unselecting=false}if(!c.selecting){d._addClass(c.$element,"ui-selecting");c.selecting=true;d._trigger("selecting",a,{selecting:c.element})}}else{if(c.selecting)if((a.metaKey||a.ctrlKey)&&c.startselected){d._removeClass(c.$element,"ui-selecting");c.selecting=false;d._addClass(c.$element,"ui-selected");c.selected=true}else{d._removeClass(c.$element,"ui-selecting");c.selecting=false;if(c.startselected){d._addClass(c.$element,"ui-unselecting");c.unselecting=true}d._trigger("unselecting",a,{unselecting:c.element})}if(c.selected&& 546!a.metaKey&&!a.ctrlKey&&!c.startselected){d._removeClass(c.$element,"ui-selected");c.selected=false;d._addClass(c.$element,"ui-unselecting");c.unselecting=true;d._trigger("unselecting",a,{unselecting:c.element})}}}});return false}},_mouseStop:function(a){var c=this;this.dragged=false;b(".ui-unselecting",this.element[0]).each(function(){var d=b.data(this,"selectable-item");c._removeClass(d.$element,"ui-unselecting");d.unselecting=false;d.startselected=false;c._trigger("unselected",a,{unselected:d.element})}); 547b(".ui-selecting",this.element[0]).each(function(){var d=b.data(this,"selectable-item");c._removeClass(d.$element,"ui-selecting")._addClass(d.$element,"ui-selected");d.selecting=false;d.selected=true;d.startselected=true;c._trigger("selected",a,{selected:d.element})});this._trigger("stop",a);this.helper.remove();return false}});b.widget("ui.selectmenu",[b.ui.formResetMixin,{version:"1.12.1",defaultElement:"<select>",options:{appendTo:null,classes:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"}, 548disabled:null,icons:{button:"ui-icon-triangle-1-s"},position:{my:"left top",at:"left bottom",collision:"none"}
548,width:!1,change:null,close:null,focus:null,open:null,select:null},_create:function(){var a=this.element.uniqueId().attr("id");this.ids={element:a,button:a+"-button",menu:a+"-menu"};this._drawButton();this._drawMenu();this._bindFormResetHandler();this._rendered=false;this.menuItems=b()},_drawButton:function(){var a,c=this,d=this._parseOption(this.element.find("option:selected"),this.element[0].selectedIndex); 549this.labels=this.element.labels().attr("for",this.ids.button);this._on(this.labels,{click:function(a){this.button.focus();a.preventDefault()}});this.element.hide();this.button=b("<span>",{tabindex:this.options.disabled?-1:0,id:this.ids.button,role:"combobox","aria-expanded":"false","aria-autocomplete":"list","aria-owns":this.ids.menu,"aria-haspopup":"true",title:this.element.attr("title")}).insertAfter(this.element);this._addClass(this.button,"ui-selectmenu-button ui-selectmenu-button-closed","ui-button ui-widget"); 550a=b("<span>").appendTo(this.button);this._addClass(a,"ui-selectmenu-icon","ui-icon "+this.options.icons.button);this.buttonItem=this._renderButtonItem(d).appendTo(this.button);this.options.width!==false&&this._resizeButton();this._on(this.button,this._buttonEvents);this.button.one("focusin",function(){c._rendered||c._refreshMenu()})},_drawMenu:function(){var a=this;this.menu=b("<ul>",{"aria-hidden":"true","aria-labelledby":this.ids.button,id:this.ids.menu});this.menuWrap=b("<div>").append(this.menu); 551this._addClass(this.menuWrap,"ui-selectmenu-menu","ui-front");this.menuWrap.appendTo(this._appendTo());this.menuInstance=this.menu.menu({classes:{"ui-menu":"ui-corner-bottom"},role:"listbox",select:function(b,d){b.preventDefault();a._setSelection();a._select(d.item.data("ui-selectmenu-item"),b)},focus:function(b,d){var e=d.item.data("ui-selectmenu-item");if(a.focusIndex!=null&&e.index!==a.focusIndex){a._trigger("focus",b,{item:e});a.isOpen||a._select(e,b)}a.focusIndex=e.index;a.button.attr("aria-activedescendant", 552a.menuItems.eq(e.index).attr("id"))}}).menu("instance");this.menuInstance._off(this.menu,"mouseleave");this.menuInstance._closeOnDocumentClick=function(){return false};this.menuInstance._isDivider=function(){return false}},refresh:function(){this._refreshMenu();this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(this._getSelectedItem().data("ui-selectmenu-item")||{}));this.options.width===null&&this._resizeButton()},_refreshMenu:function(){var a;a=this.element.find("option");this.menu.empty(); 553this._parseOptions(a);this._renderMenu(this.menu,this.items);this.menuInstance.refresh();this.menuItems=this.menu.find("li").not(".ui-selectmenu-optgroup").find(".ui-menu-item-wrapper");this._rendered=true;if(a.length){a=this._getSelectedItem();this.menuInstance.focus(null,a);this._setAria(a.data("ui-selectmenu-item"));this._setOption("disabled",this.element.prop("disabled"))}},open:function(a){if(!this.options.disabled){if(this._rendered){this._removeClass(this.menu.find(".ui-state-active"),null, 554"ui-state-active");this.menuInstance.focus(null,this._getSelectedItem())}else this._refreshMenu();if(this.menuItems.length){this.isOpen=true;this._toggleAttr();this._resizeMenu();this._position();this._on(this.document,this._documentClick);this._trigger("open",a)}}},_position:function(){this.menuWrap.position(b.extend({of:this.button},this.options.position))},close:function(a){if(this.isOpen){this.isOpen=false;this._toggleAttr();this.range=null;this._off(this.document);this._trigger("close",a)}}, 555widget:function(){return this.button},menuWidget:function(){return this.menu},_renderButtonItem:function(a){var c=b("<span>");this._setText(c,a.label);this._addClass(c,"ui-selectmenu-text");return c},_renderMenu:function(a,c){var d=this,e="";b.each(c,function(c,f){var h;if(f.optgroup!==e){h=b("<li>",{text:f.optgroup});d._addClass(h,"ui-selectmenu-optgroup","ui-menu-divider"+(f.element.parent("optgroup").prop("disabled")?" ui-state-disabled":""));h.appendTo(a);e=f.optgroup}d._renderItemData(a,f)})}, 556_renderItemData:function(a,b){return this._renderItem(a,b).data("ui-selectmenu-item",b)},_renderItem:function(a,c){var d=b("<li>"),e=b("<div>",{title:c.element.attr("title")});c.disabled&&this._addClass(d,null,"ui-state-disabled");this._setText(e,c.label);return d.append(e).appendTo(a)},_setText:function(a,b){b?a.text(b):a.html(" ")},_move:function(a,b){var d,e=".ui-menu-item";if(this.isOpen)d=this.menuItems.eq(this.focusIndex).parent("li");else{d=this.menuItems.eq(this.element[0].selectedIndex).parent("li"); 557e=e+":not(.ui-state-disabled)"}d=a==="first"||a==="last"?d[a==="first"?"prevAll":"nextAll"](e).eq(-1):d[a+"All"](e).eq(0);d.length&&this.menuInstance.focus(b,d)},_getSelectedItem:function(){return this.menuItems.eq(this.element[0].selectedIndex).parent("li")}
557,_toggle:function(a){this[this.isOpen?"close":"open"](a)},_setSelection:function(){var a;if(this.range){if(window.getSelection){a=window.getSelection();a.removeAllRanges();a.addRange(this.range)}else this.range.select();this.button.focus()}}, 558_documentClick:{mousedown:function(a){this.isOpen&&(b(a.target).closest(".ui-selectmenu-menu, #"+b.ui.escapeSelector(this.ids.button)).length||this.close(a))}},_buttonEvents:{mousedown:function(){var a;if(window.getSelection){a=window.getSelection();if(a.rangeCount)this.range=a.getRangeAt(0)}else this.range=document.selection.createRange()},click:function(a){this._setSelection();this._toggle(a)},keydown:function(a){var c=true;switch(a.keyCode){case b.ui.keyCode.TAB:case b.ui.keyCode.ESCAPE:this.close(a); 559c=false;break;case b.ui.keyCode.ENTER:this.isOpen&&this._selectFocusedItem(a);break;case b.ui.keyCode.UP:a.altKey?this._toggle(a):this._move("prev",a);break;case b.ui.keyCode.DOWN:a.altKey?this._toggle(a):this._move("next",a);break;case b.ui.keyCode.SPACE:this.isOpen?this._selectFocusedItem(a):this._toggle(a);break;case b.ui.keyCode.LEFT:this._move("prev",a);break;case b.ui.keyCode.RIGHT:this._move("next",a);break;case b.ui.keyCode.HOME:case b.ui.keyCode.PAGE_UP:this._move("first",a);break;case b.ui.keyCode.END:case b.ui.keyCode.PAGE_DOWN:this._move("last", 560a);break;default:this.menu.trigger(a);c=false}c&&a.preventDefault()}},_selectFocusedItem:function(a){var b=this.menuItems.eq(this.focusIndex).parent("li");b.hasClass("ui-state-disabled")||this._select(b.data("ui-selectmenu-item"),a)},_select:function(a,b){var d=this.element[0].selectedIndex;this.element[0].selectedIndex=a.index;this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(a));this._setAria(a);this._trigger("select",b,{item:a});a.index!==d&&this._trigger("change",b,{item:a}); 561this.close(b)},_setAria:function(a){a=this.menuItems.eq(a.index).attr("id");this.button.attr({"aria-labelledby":a,"aria-activedescendant":a});this.menu.attr("aria-activedescendant",a)},_setOption:function(a,b){if(a==="icons"){var d=this.button.find("span.ui-icon");this._removeClass(d,null,this.options.icons.button)._addClass(d,null,b.button)}this._super(a,b);a==="appendTo"&&this.menuWrap.appendTo(this._appendTo());a==="width"&&this._resizeButton()},_setOptionDisabled:function(a){this._super(a);this.menuInstance.option("disabled", 562a);this.button.attr("aria-disabled",a);this._toggleClass(this.button,null,"ui-state-disabled",a);this.element.prop("disabled",a);if(a){this.button.attr("tabindex",-1);this.close()}else this.button.attr("tabindex",0)},_appendTo:function(){var a=this.options.appendTo;a&&(a=a.jquery||a.nodeType?b(a):this.document.find(a).eq(0));if(!a||!a[0])a=this.element.closest(".ui-front, dialog");if(!a.length)a=this.document[0].body;return a},_toggleAttr:function(){this.button.attr("aria-expanded",this.isOpen);this._removeClass(this.button, 563"ui-selectmenu-button-"+(this.isOpen?"closed":"open"))._addClass(this.button,"ui-selectmenu-button-"+(this.isOpen?"open":"closed"))._toggleClass(this.menuWrap,"ui-selectmenu-open",null,this.isOpen);this.menu.attr("aria-hidden",!this.isOpen)},_resizeButton:function(){var a=this.options.width;if(a===false)this.button.css("width","");else{if(a===null){a=this.element.show().outerWidth();this.element.hide()}this.button.outerWidth(a)}},_resizeMenu:function(){this.menu.outerWidth(Math.max(this.button.outerWidth(), 564this.menu.width("").outerWidth()+1))},_getCreateOptions:function(){var a=this._super();a.disabled=this.element.prop("disabled");return a},_parseOptions:function(a){var c=this,d=[];a.each(function(a,e){d.push(c._parseOption(b(e),a))});this.items=d},_parseOption:function(a,b){var d=a.parent("optgroup");return{element:a,index:b,value:a.val(),label:a.text(),optgroup:d.attr("label")||"",disabled:d.prop("disabled")||a.prop("disabled")}},_destroy:function(){this._unbindFormResetHandler();this.menuWrap.remove(); 565this.button.remove();this.element.show();this.element.removeUniqueId();this.labels.attr("for",this.ids.element)}}]);b.widget("ui.slider",b.ui.mouse,{version:"1.12.1",widgetEventPrefix:"slide",options:{animate:!1,classes:{"ui-slider":"ui-corner-all","ui-slider-handle":"ui-corner-all","ui-slider-range":"ui-corner-all ui-widget-header"},distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null}
565,numPages:5,_create:function(){this._mouseSliding= 566this._keySliding=false;this._animateOff=true;this._handleIndex=null;this._detectOrientation();this._mouseInit();this._calculateNewMax();this._addClass("ui-slider ui-slider-"+this.orientation,"ui-widget ui-widget-content");this._refresh();this._animateOff=false},_refresh:function(){this._createRange();this._createHandles();this._setupEvents();this._refreshValue()},_createHandles:function(){var a,c;a=this.options;var d=this.element.find(".ui-slider-handle"),e=[];c=a.values&&a.values.length||1;if(d.length> 567c){d.slice(c).remove();d=d.slice(0,c)}for(a=d.length;a<c;a++)e.push("<span tabindex='0'></span>");this.handles=d.add(b(e.join("")).appendTo(this.element));this._addClass(this.handles,"ui-slider-handle","ui-state-default");this.handle=this.handles.eq(0);this.handles.each(function(a){b(this).data("ui-slider-handle-index",a).attr("tabIndex",0)})},_createRange:function(){var a=this.options;if(a.range){if(a.range===true)if(a.values)if(a.values.length&&a.values.length!==2)a.values=[a.values[0],a.values[0]]; 568else{if(b.isArray(a.values))a.values=a.values.slice(0)}else a.values=[this._valueMin(),this._valueMin()];if(!this.range||!this.range.length){this.range=b("<div>").appendTo(this.element);this._addClass(this.range,"ui-slider-range")}else{this._removeClass(this.range,"ui-slider-range-min ui-slider-range-max");this.range.css({left:"",bottom:""})}(a.range==="min"||a.range==="max")&&this._addClass(this.range,"ui-slider-range-"+a.range)}else{this.range&&this.range.remove();this.range=null}},_setupEvents:function(){this._off(this.handles); 569this._on(this.handles,this._handleEvents);this._hoverable(this.handles);this._focusable(this.handles)},_destroy:function(){this.handles.remove();this.range&&this.range.remove();this._mouseDestroy()},_mouseCapture:function(a){var c,d,e,f,h,j=this,l=this.options;if(l.disabled)return false;this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()};this.elementOffset=this.element.offset();c=this._normValueFromMouse({x:a.pageX,y:a.pageY});d=this._valueMax()-this._valueMin()+1; 570this.handles.each(function(a){var h=Math.abs(c-j.values(a));if(d>h||d===h&&(a===j._lastChangedValue||j.values(a)===l.min)){d=h;e=b(this);f=a}});if(this._start(a,f)===false)return false;this._mouseSliding=true;this._handleIndex=f;this._addClass(e,null,"ui-state-active");e.trigger("focus");h=e.offset();this._clickOffset=!b(a.target).parents().addBack().is(".ui-slider-handle")?{left:0,top:0}:{left:a.pageX-h.left-e.width()/2,top:a.pageY-h.top-e.height()/2-(parseInt(e.css("borderTopWidth"),10)||0)-(parseInt(e.css("borderBottomWidth"), 57110)||0)+(parseInt(e.css("marginTop"),10)||0)};this.handles.hasClass("ui-state-hover")||this._slide(a,f,c);return this._animateOff=true},_mouseStart:function(){return true},_mouseDrag:function(a){var b=this._normValueFromMouse({x:a.pageX,y:a.pageY});this._slide(a,this._handleIndex,b);return false},_mouseStop:function(a){this._removeClass(this.handles,null,"ui-state-active");this._mouseSliding=false;this._stop(a,this._handleIndex);this._change(a,this._handleIndex);this._clickOffset=this._handleIndex= 572null;return this._animateOff=false},_detectOrientation:function(){this.orientation=this.options.orientation==="vertical"?"vertical":"horizontal"},_normValueFromMouse:function(a){var b;if(this.orientation==="horizontal"){b=this.elementSize.width;a=a.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)}else{b=this.elementSize.height;a=a.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)}b=a/b;b>1&&(b=1);b<0&&(b=0);this.orientation==="vertical"&&(b=1-b);a=this._valueMax()- 573this._valueMin();b=this._valueMin()+b*a;return this._trimAlignValue(b)},_uiHash:function(a,b,d){var e={handle:this.handles[a],handleIndex:a,value:b!==void 0?b:this.value()};if(this._hasMultipleValues()){e.value=b!==void 0?b:this.values(a);e.values=d||this.values()}return e},_hasMultipleValues:function(){return this.options.values&&this.options.values.length},_start:function(a,b){return this._trigger("start",a,this._uiHash(b))},_slide:function(a,b,d){var e,f=this.value(),h=this.values();if(this._hasMultipleValues()){e= 574this.values(b?0:1);f=this.values(b);this.options.values.length===2&&this.options.range===true&&(d=b===0?Math.min(e,d):Math.max(e,d));h[b]=d}if(d!==f){a=this._trigger("slide",a,this._uiHash(b,d,h));a!==false&&(this._hasMultipleValues()?this.values(b,d):this.value(d))}},_stop:function(a,b){this._trigger("stop",a,this._uiHash(b))},_change:function(a,b){if(!this._keySliding&&!this._mouseSliding){this._lastChangedValue=b;this._trigger("change",a,this._uiHash(b))}}
574,value:function(a){if(arguments.length){this.options.value= 575this._trimAlignValue(a);this._refreshValue();this._change(null,0)}else return this._value()},values:function(a,c){var d,e,f;if(arguments.length>1){this.options.values[a]=this._trimAlignValue(c);this._refreshValue();this._change(null,a)}else if(arguments.length)if(b.isArray(arguments[0])){d=this.options.values;e=arguments[0];for(f=0;f<d.length;f=f+1){d[f]=this._trimAlignValue(e[f]);this._change(null,f)}this._refreshValue()}else return this._hasMultipleValues()?this._values(a):this.value();else return this._values()}, 576_setOption:function(a,c){var d;d=0;if(a==="range"&&this.options.range===true)if(c==="min"){this.options.value=this._values(0);this.options.values=null}else if(c==="max"){this.options.value=this._values(this.options.values.length-1);this.options.values=null}if(b.isArray(this.options.values))d=this.options.values.length;this._super(a,c);switch(a){case "orientation":this._detectOrientation();this._removeClass("ui-slider-horizontal ui-slider-vertical")._addClass("ui-slider-"+this.orientation);this._refreshValue(); 577this.options.range&&this._refreshRange(c);this.handles.css(c==="horizontal"?"bottom":"left","");break;case "value":this._animateOff=true;this._refreshValue();this._change(null,0);this._animateOff=false;break;case "values":this._animateOff=true;this._refreshValue();for(d=d-1;d>=0;d--)this._change(null,d);this._animateOff=false;break;case "step":case "min":case "max":this._animateOff=true;this._calculateNewMax();this._refreshValue();this._animateOff=false;break;case "range":this._animateOff=true;this._refresh(); 578this._animateOff=false}},_setOptionDisabled:function(a){this._super(a);this._toggleClass(null,"ui-state-disabled",!!a)},_value:function(){var a=this.options.value;return a=this._trimAlignValue(a)},_values:function(a){var b,d;if(arguments.length){b=this.options.values[a];return b=this._trimAlignValue(b)}if(this._hasMultipleValues()){b=this.options.values.slice();for(d=0;d<b.length;d=d+1)b[d]=this._trimAlignValue(b[d]);return b}return[]},_trimAlignValue:function(a){if(a<=this._valueMin())return this._valueMin(); 579if(a>=this._valueMax())return this._valueMax();var b=this.options.step>0?this.options.step:1,d=(a-this._valueMin())%b,a=a-d;Math.abs(d)*2>=b&&(a=a+(d>0?b:-b));return parseFloat(a.toFixed(5))},_calculateNewMax:function(){var a=this.options.max,b=this._valueMin(),d=this.options.step,a=Math.round((a-b)/d)*d+b;a>this.options.max&&(a=a-d);this.max=parseFloat(a.toFixed(this._precision()))},_precision:function(){var a=this._precisionOf(this.options.step);this.options.min!==null&&(a=Math.max(a,this._precisionOf(this.options.min))); 580return a},_precisionOf:function(a){var a=a.toString(),b=a.indexOf(".");return b===-1?0:a.length-b-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshRange:function(a){a==="vertical"&&this.range.css({width:"",left:""});a==="horizontal"&&this.range.css({height:"",bottom:""})},_refreshValue:function(){var a,c,d,e,f,h=this.options.range,j=this.options,l=this,n=!this._animateOff?j.animate:false,o={};if(this._hasMultipleValues())this.handles.each(function(d){c= 581(l.values(d)-l._valueMin())/(l._valueMax()-l._valueMin())*100;o[l.orientation==="horizontal"?"left":"bottom"]=c+"%";b(this).stop(1,1)[n?"animate":"css"](o,j.animate);if(l.options.range===true)if(l.orientation==="horizontal"){if(d===0)l.range.stop(1,1)[n?"animate":"css"]({left:c+"%"},j.animate);if(d===1)l.range[n?"animate":"css"]({width:c-a+"%"},{queue:false,duration:j.animate})}else{if(d===0)l.range.stop(1,1)[n?"animate":"css"]({bottom:c+"%"},j.animate);if(d===1)l.range[n?"animate":"css"]({height:c- 582a+"%"},{queue:false,duration:j.animate})}a=c});else{d=this.value();e=this._valueMin();f=this._valueMax();c=f!==e?(d-e)/(f-e)*100:0;o[this.orientation==="horizontal"?"left":"bottom"]=c+"%";this.handle.stop(1,1)[n?"animate":"css"](o,j.animate);if(h==="min"&&this.orientation==="horizontal")this.range.stop(1,1)[n?"animate":"css"]({width:c+"%"},j.animate);if(h==="max"&&this.orientation==="horizontal")this.range.stop(1,1)[n?"animate":"css"]({width:100-c+"%"},j.animate);if(h==="min"&&this.orientation===
583"vertical")this.range.stop(1,1)[n?"animate":"css"]({height:c+"%"},j.animate);if(h==="max"&&this.orientation==="vertical")this.range.stop(1,1)[n?"animate":"css"]({height:100-c+"%"},j.animate)}},_handleEvents:{keydown:function(a){var c,d,e,f=b(a.target).data("ui-slider-handle-index");switch(a.keyCode){case b.ui.keyCode.HOME:case b.ui.keyCode.END:case b.ui.keyCode.PAGE_UP:case b.ui.keyCode.PAGE_DOWN:case b.ui.keyCode.UP:case b.ui.keyCode.RIGHT:case b.ui.keyCode.DOWN:case b.ui.keyCode.LEFT:a.preventDefault(); 584if(!this._keySliding){this._keySliding=true;this._addClass(b(a.target),null,"ui-state-active");c=this._start(a,f);if(c===false)return}}e=this.options.step;c=this._hasMultipleValues()?d=this.values(f):d=this.value();switch(a.keyCode){case b.ui.keyCode.HOME:d=this._valueMin();break;case b.ui.keyCode.END:d=this._valueMax();break;case b.ui.keyCode.PAGE_UP:d=this._trimAlignValue(c+(this._valueMax()-this._valueMin())/this.numPages);break;case b.ui.keyCode.PAGE_DOWN:d=this._trimAlignValue(c-(this._valueMax()- 585this._valueMin())/this.numPages);break;case b.ui.keyCode.UP:case b.ui.keyCode.RIGHT:if(c===this._valueMax())return;d=this._trimAlignValue(c+e);break;case b.ui.keyCode.DOWN:case b.ui.keyCode.LEFT:if(c===this._valueMin())return;d=this._trimAlignValue(c-e)}this._slide(a,f,d)},keyup:function(a){var c=b(a.target).data("ui-slider-handle-index");if(this._keySliding){this._keySliding=false;this._stop(a,c);this._change(a,c);this._removeClass(b(a.target),null,"ui-state-active")}}}});b.widget("ui.sortable", 586b.ui.mouse,{version:"1.12.1",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1E3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null, 587start:null,stop:null,update:null},_isOverAxis:function(a,b,d){return a>=b&&a<b+d},_isFloating:function(a){return/left|right/.test(a.css("float"))||/inline|table-cell/.test(a.css("display"))},_create:function(){this.containerCache={};this._addClass("ui-sortable");this.refresh();this.offset=this.element.offset();this._mouseInit();this._setHandleClassName();this.ready=true},_setOption:function(a,b){this._super(a,b);a==="handle"&&this._setHandleClassName()},_setHandleClassName:function(){var a=this;this._removeClass(this.element.find(".ui-sortable-handle"), 588"ui-sortable-handle");b.each(this.items,function(){a._addClass(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item,"ui-sortable-handle")})},_destroy:function(){this._mouseDestroy();for(var a=this.items.length-1;a>=0;a--)this.items[a].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(a,c){var d=null,e=false,f=this;if(this.reverting||this.options.disabled||this.options.type==="static")return false;this._refreshItems(a);b(a.target).parents().each(function(){if(b.data(this, 589f.widgetName+"-item")===f){d=b(this);return false}});b.data(a.target,f.widgetName+"-item")===f&&(d=b(a.target));if(!d)return false;if(this.options.handle&&!c){b(this.options.handle,d).find("*").addBack().each(function(){this===a.target&&(e=true)});if(!e)return false}this.currentItem=d;this._removeCurrentsFromItems();return true},_mouseStart:function(a,c,d){var e,c=this.options;this.currentContainer=this;this.refreshPositions();this.helper=this._createHelper(a);this._cacheHelperProportions();this._cacheMargins(); 590this.scrollParent=this.helper.scrollParent();this.offset=this.currentItem.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};b.extend(this.offset,{click:{left:a.pageX-this.offset.left,top:a.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.helper.css("position","absolute");this.cssPosition=this.helper.css("position");this.originalPosition=this._generatePosition(a);this.originalPageX=a.pageX;this.originalPageY= 591a.pageY;c.cursorAt&&this._adjustOffsetFromHelper(c.cursorAt);this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]};this.helper[0]!==this.currentItem[0]&&this.currentItem.hide();this._createPlaceholder();
591c.containment&&this._setContainment();if(c.cursor&&c.cursor!=="auto"){e=this.document.find("body");this.storedCursor=e.css("cursor");e.css("cursor",c.cursor);this.storedStylesheet=b("<style>*{ cursor: "+c.cursor+" !important; }</style>").appendTo(e)}if(c.opacity){if(this.helper.css("opacity"))this._storedOpacity= 592this.helper.css("opacity");this.helper.css("opacity",c.opacity)}if(c.zIndex){if(this.helper.css("zIndex"))this._storedZIndex=this.helper.css("zIndex");this.helper.css("zIndex",c.zIndex)}if(this.scrollParent[0]!==this.document[0]&&this.scrollParent[0].tagName!=="HTML")this.overflowOffset=this.scrollParent.offset();this._trigger("start",a,this._uiHash());this._preserveHelperProportions||this._cacheHelperProportions();if(!d)for(d=this.containers.length-1;d>=0;d--)this.containers[d]._trigger("activate", 593a,this._uiHash(this));if(b.ui.ddmanager)b.ui.ddmanager.current=this;b.ui.ddmanager&&!c.dropBehaviour&&b.ui.ddmanager.prepareOffsets(this,a);this.dragging=true;this._addClass(this.helper,"ui-sortable-helper");this._mouseDrag(a);return true},_mouseDrag:function(a){var c,d,e,f;c=this.options;d=false;this.position=this._generatePosition(a);this.positionAbs=this._convertPositionTo("absolute");if(!this.lastPositionAbs)this.lastPositionAbs=this.positionAbs;if(this.options.scroll){if(this.scrollParent[0]!== 594this.document[0]&&this.scrollParent[0].tagName!=="HTML"){if(this.overflowOffset.top+this.scrollParent[0].offsetHeight-a.pageY<c.scrollSensitivity)this.scrollParent[0].scrollTop=d=this.scrollParent[0].scrollTop+c.scrollSpeed;else if(a.pageY-this.overflowOffset.top<c.scrollSensitivity)this.scrollParent[0].scrollTop=d=this.scrollParent[0].scrollTop-c.scrollSpeed;if(this.overflowOffset.left+this.scrollParent[0].offsetWidth-a.pageX<c.scrollSensitivity)this.scrollParent[0].scrollLeft=d=this.scrollParent[0].scrollLeft+ 595c.scrollSpeed;else if(a.pageX-this.overflowOffset.left<c.scrollSensitivity)this.scrollParent[0].scrollLeft=d=this.scrollParent[0].scrollLeft-c.scrollSpeed}else{a.pageY-this.document.scrollTop()<c.scrollSensitivity?d=this.document.scrollTop(this.document.scrollTop()-c.scrollSpeed):this.window.height()-(a.pageY-this.document.scrollTop())<c.scrollSensitivity&&(d=this.document.scrollTop(this.document.scrollTop()+c.scrollSpeed));a.pageX-this.document.scrollLeft()<c.scrollSensitivity?d=this.document.scrollLeft(this.document.scrollLeft()- 596c.scrollSpeed):this.window.width()-(a.pageX-this.document.scrollLeft())<c.scrollSensitivity&&(d=this.document.scrollLeft(this.document.scrollLeft()+c.scrollSpeed))}d!==false&&(b.ui.ddmanager&&!c.dropBehaviour)&&b.ui.ddmanager.prepareOffsets(this,a)}this.positionAbs=this._convertPositionTo("absolute");if(!this.options.axis||this.options.axis!=="y")this.helper[0].style.left=this.position.left+"px";if(!this.options.axis||this.options.axis!=="x")this.helper[0].style.top=this.position.top+"px";for(c=this.items.length- 5971;c>=0;c--){d=this.items[c];e=d.item[0];if((f=this._intersectsWithPointer(d))&&d.instance===this.currentContainer&&e!==this.currentItem[0]&&this.placeholder[f===1?"next":"prev"]()[0]!==e&&!b.contains(this.placeholder[0],e)&&(this.options.type==="semi-dynamic"?!b.contains(this.element[0],e):1)){this.direction=f===1?"down":"up";if(this.options.tolerance==="pointer"||this._intersectsWithSides(d))this._rearrange(a,d);else break;this._trigger("change",a,this._uiHash());break}}this._contactContainers(a); 598b.ui.ddmanager&&b.ui.ddmanager.drag(this,a);this._trigger("sort",a,this._uiHash());this.lastPositionAbs=this.positionAbs;return false},_mouseStop:function(a,c){if(a){b.ui.ddmanager&&!this.options.dropBehaviour&&b.ui.ddmanager.drop(this,a);if(this.options.revert){var d=this,e=this.placeholder.offset(),f=this.options.axis,h={};if(!f||f==="x")h.left=e.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft);if(!f||f==="y")h.top=e.top- 599this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop);this.reverting=true;b(this.helper).animate(h,parseInt(this.options.revert,10)||500,function(){d._clear(a)})}else this._clear(a,c);return false}},cancel:function(){if(this.dragging){this._mouseUp(new b.Event("mouseup",{target:null}));if(this.options.helper==="original"){this.currentItem.css(this._storedCSS);this._removeClass(this.currentItem,"ui-sortable-helper")}else this.currentItem.show(); 600for(var a=this.containers.length-1;a>=0;a--){this.containers[a]._trigger("deactivate",null,this._uiHash(this));if(this.containers[a].containerCache.over){this.containers[a]._trigger("out",null,this._uiHash(this));this.containers[a].containerCache.over=0}}}if(this.placeholder){this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]);this.options.helper!=="original"&&(this.helper&&this.helper[0].parentNode)&&this.helper.remove();b.extend(this,{helper:null,dragging:false, 601reverting:false,_noFinalSort:null});this.domPosition.prev?b(this.domPosition.prev).after(this.currentItem):b(this.domPosition.parent).prepend(this.currentItem)}return this},serialize:function(a){var c=this._getItemsAsjQuery(a&&a.connected),d=[],a=a||{};b(c).each(function(){var c=(b(a.item||this).attr(a.attribute||"id")||"").match(a.expression||/(.+)[\-=_](.+)/);c&&d.push((a.key||c[1]+"[]")+"="+(a.key&&a.expression?c[1]:c[2]))});!d.length&&a.key&&d.push(a.key+"=");return d.join("&")},toArray:function(a){var c= 602this._getItemsAsjQuery(a&&a.connected),d=[],a=a||{};c.each(function(){d.push(b(a.item||this).attr(a.attribute||"id")||"")});return d},_intersectsWith:function(a){var b=this.positionAbs.left,d=b+this.helperProportions.width,e=this.positionAbs.top,f=e+this.helperProportions.height,h=a.left,j=h+a.width,l=a.top,n=l+a.height,o=this.offset.click.top,r=this.offset.click.left,r=this.options.axis==="y"||b+r>h&&b+r<j,o=(this.options.axis==="x"||e+o>l&&e+o<n)&&r;return this.options.tolerance==="pointer"||this.options.forcePointerForContainers|| 603this.options.tolerance!=="pointer"&&this.helperProportions[this.floating?"width":"height"]>a[this.floating?"width":"height"]?o:h<b+this.helperProportions.width/2&&d-this.helperProportions.width/2<j&&l<e+this.helperProportions.height/2&&f-this.helperProportions.height/2<n},_intersectsWithPointer:function(a){var b;b=this.options.axis==="x"||this._isOverAxis(this.positionAbs.top+this.offset.click.top,a.top,a.height);a=this.options.axis==="y"||this._isOverAxis(this.positionAbs.left+this.offset.click.left, 604a.left,a.width);if(!b||!a)return false;b=this._getDragVerticalDirection();a=this._getDragHorizontalDirection();return this.floating?a==="right"||b==="down"?2:1:b&&(b==="down"?2:1)},_intersectsWithSides:function(a){var b=this._isOverAxis(this.positionAbs.top+this.offset.click.top,a.top+a.height/2,a.height),a=this._isOverAxis(this.positionAbs.left+this.offset.click.left,a.left+a.width/2,a.width),d=this._getDragVerticalDirection(),e=this._getDragHorizontalDirection();return this.floating&&e?e==="right"&& 605a||e==="left"&&!a:d&&(d==="down"&&b||d==="up"&&!b)},_getDragVerticalDirection:function(){var a=this.positionAbs.top-this.lastPositionAbs.top;return a!==0&&(a>0?"down":"up")},_getDragHorizontalDirection:function(){var a=this.positionAbs.left-this.lastPositionAbs.left;return a!==0&&(a>0?"right":"left")},refresh:function(a){this._refreshItems(a);this._setHandleClassName();this.refreshPositions();return this},_connectWith:function(){var a=this.options;
605return a.connectWith.constructor===String?[a.connectWith]: 606a.connectWith},_getItemsAsjQuery:function(a){function c(){h.push(this)}var d,e,f,h=[],j=[],l=this._connectWith();if(l&&a)for(a=l.length-1;a>=0;a--){e=b(l[a],this.document[0]);for(d=e.length-1;d>=0;d--)(f=b.data(e[d],this.widgetFullName))&&(f!==this&&!f.options.disabled)&&j.push([b.isFunction(f.options.items)?f.options.items.call(f.element):b(f.options.items,f.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),f])}j.push([b.isFunction(this.options.items)?this.options.items.call(this.element, 607null,{options:this.options,item:this.currentItem}):b(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]);for(a=j.length-1;a>=0;a--)j[a][0].each(c);return b(h)},_removeCurrentsFromItems:function(){var a=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=b.grep(this.items,function(b){for(var d=0;d<a.length;d++)if(a[d]===b.item[0])return false;return true})},_refreshItems:function(a){this.items=[];this.containers=[this];var c,d,e,f,h,j= 608this.items,l=[[b.isFunction(this.options.items)?this.options.items.call(this.element[0],a,{item:this.currentItem}):b(this.options.items,this.element),this]];if((h=this._connectWith())&&this.ready)for(c=h.length-1;c>=0;c--){e=b(h[c],this.document[0]);for(d=e.length-1;d>=0;d--)if((f=b.data(e[d],this.widgetFullName))&&f!==this&&!f.options.disabled){l.push([b.isFunction(f.options.items)?f.options.items.call(f.element[0],a,{item:this.currentItem}):b(f.options.items,f.element),f]);this.containers.push(f)}}for(c= 609l.length-1;c>=0;c--){a=l[c][1];e=l[c][0];d=0;for(h=e.length;d<h;d++){f=b(e[d]);f.data(this.widgetName+"-item",a);j.push({item:f,instance:a,width:0,height:0,left:0,top:0})}}},refreshPositions:function(a){this.floating=this.items.length?this.options.axis==="x"||this._isFloating(this.items[0].item):false;if(this.offsetParent&&this.helper)this.offset.parent=this._getParentOffset();var c,d,e;for(c=this.items.length-1;c>=0;c--){d=this.items[c];if(!(d.instance!==this.currentContainer&&this.currentContainer&& 610d.item[0]!==this.currentItem[0])){e=this.options.toleranceElement?b(this.options.toleranceElement,d.item):d.item;if(!a){d.width=e.outerWidth();d.height=e.outerHeight()}e=e.offset();d.left=e.left;d.top=e.top}}
610if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(c=this.containers.length-1;c>=0;c--){e=this.containers[c].element.offset();this.containers[c].containerCache.left=e.left;this.containers[c].containerCache.top=e.top;this.containers[c].containerCache.width= 611this.containers[c].element.outerWidth();this.containers[c].containerCache.height=this.containers[c].element.outerHeight()}return this},_createPlaceholder:function(a){var a=a||this,c,d=a.options;if(!d.placeholder||d.placeholder.constructor===String){c=d.placeholder;d.placeholder={element:function(){var d=a.currentItem[0].nodeName.toLowerCase(),e=b("<"+d+">",a.document[0]);a._addClass(e,"ui-sortable-placeholder",c||a.currentItem[0].className)._removeClass(e,"ui-sortable-helper");d==="tbody"?a._createTrPlaceholder(a.currentItem.find("tr").eq(0), 612b("<tr>",a.document[0]).appendTo(e)):d==="tr"?a._createTrPlaceholder(a.currentItem,e):d==="img"&&e.attr("src",a.currentItem.attr("src"));c||e.css("visibility","hidden");return e},update:function(b,e){if(!c||d.forcePlaceholderSize){e.height()||e.height(a.currentItem.innerHe
612ight()-parseInt(a.currentItem.css("paddingTop")||0,10)-parseInt(a.currentItem.css("paddingBottom")||0,10));e.width()||e.width(a.currentItem.innerWidth()-parseInt(a.currentItem.css("paddingLeft")||0,10)-parseInt(a.currentItem.css("paddingRight")|| 6130,10))}}}}a.placeholder=b(d.placeholder.element.call(a.element,a.currentItem));a.currentItem.after(a.placeholder);d.placeholder.update(a,a.placeholder)},_createTrPlaceholder:function(a,c){var d=this;a.children().each(function(){b("<td> </td>",d.document[0]).attr("colspan",b(this).attr("colspan")||1).appendTo(c)})},_contactContainers:function(a){var c,d,e,f,h,j,l,n,o=f=null;for(c=this.containers.length-1;c>=0;c--)if(!b.contains(this.currentItem[0],this.containers[c].element[0]))if(this._intersectsWith(this.containers[c].containerCache)){if(!f|| 614!b.contains(this.containers[c].element[0],f.element[0])){f=this.containers[c];o=c}}else if(this.containers[c].containerCache.over){this.containers[c]._trigger("out",a,this._uiHash(this));this.containers[c].containerCache.over=0}if(f)if(this.containers.length===1){if(!this.containers[o].containerCache.over){this.containers[o]._trigger("over",a,this._uiHash(this));this.containers[o].containerCache.over=1}}else{c=1E4;e=null;f=(d=f.floating||this._isFloating(this.currentItem))?"left":"top";h=d?"width": 615"height";n=d?"pageX":"pageY";for(d=this.items.length-1;d>=0;d--)if(b.contains(this.containers[o].element[0],this.items[d].item[0])&&this.items[d].item[0]!==this.currentItem[0]){j=this.items[d].item.offset()[f];l=false;a[n]-j>this.items[d][h]/2&&(l=true);if(Math.abs(a[n]-j)<c){c=Math.abs(a[n]-j);e=this.items[d];this.direction=l?"up":"down"}}if(e||this.options.dropOnEmpty)if(this.currentContainer===this.containers[o]){if(!this.currentContainer.containerCache.over){this.containers[o]._trigger("over", 616a,this._uiHash());this.currentContainer.containerCache.over=1}}else{e?this._rearrange(a,e,null,true):this._rearrange(a,null,this.containers[o].element,true);this._trigger("change",a,this._uiHash());this.containers[o]._trigger("change",a,this._uiHash(this));this.currentContainer=this.containers[o];this.options.placeholder.update(this.currentContainer,this.placeholder);this.containers[o]._trigger("over",a,this._uiHash(this));this.containers[o].containerCache.over=1}}},_createHelper:function(a){var c= 617this.options,a=b.isFunction(c.helper)?b(c.helper.apply(this.element[0],[a,this.currentItem])):c.helper==="clone"?this.currentItem.clone():this.currentItem;a.parents("body").length||b(c.appendTo!=="parent"?c.appendTo:this.currentItem[0].parentNode)[0].appendChild(a[0]);if(a[0]===this.currentItem[0])this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}; 618(!a[0].style.width||c.forceHelperSize)&&a.width(this.currentItem.width());(!a[0].style.height||c.forceHelperSize)&&a.height(this.currentItem.height());return a},_adjustOffsetFromHelper:function(a){typeof a==="string"&&(a=a.split(" "));b.isArray(a)&&(a={left:+a[0],top:+a[1]||0});if("left"in a)this.offset.click.left=a.left+this.margins.left;if("right"in a)this.offset.click.left=this.helperProportions.width-a.right+this.margins.left;if("top"in a)this.offset.click.top=a.top+this.margins.top;if("bottom"in 619a)this.offset.click.top=this.helperProportions.height-a.bottom+this.margins.top},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var a=this.offsetParent.offset();if(this.cssPosition==="absolute"&&this.scrollParent[0]!==this.document[0]&&b.contains(this.scrollParent[0],this.offsetParent[0])){a.left=a.left+this.scrollParent.scrollLeft();a.top=a.top+this.scrollParent.scrollTop()}if(this.offsetParent[0]===this.document[0].body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=== 620"html"&&b.ui.ie)a={top:0,left:0};return{top:a.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:a.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition==="relative"){var a=this.currentItem.position();return{top:a.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:a.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins= 621{left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var a,c,d;c=this.options;if(c.containment==="parent")c.containment=this.helper[0].parentNode;if(c.containment==="document"||c.containment==="window")this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top- 622this.offset.parent.top,c.containment==="document"?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,(c.containment==="document"?this.document.height()||document.body.parentNode.scrollHeight:this.window.height()||this.document[0].body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(c.containment)){a=b(c.containment)[0];c=b(c.containment).offset();d=b(a).css("overflow")!=="hidden";this.containment= 623[c.left+(parseInt(b(a).css("borderLeftWidth"),10)||0)+(parseInt(b(a).css("paddingLeft"),10)||0)-this.margins.left,c.top+(parseInt(b(a).css("borderTopWidth"),
62310)||0)+(parseInt(b(a).css("paddingTop"),10)||0)-this.margins.top,c.left+(d?Math.max(a.scrollWidth,a.offsetWidth):a.offsetWidth)-(parseInt(b(a).css("borderLeftWidth"),10)||0)-(parseInt(b(a).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,c.top+(d?Math.max(a.scrollHeight,a.offsetHeight):a.offsetHeight)-(parseInt(b(a).css("borderTopWidth"), 62410)||0)-(parseInt(b(a).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}},_convertPositionTo:function(a,c){if(!c)c=this.position;var d=a==="absolute"?1:-1,e=this.cssPosition==="absolute"&&!(this.scrollParent[0]!==this.document[0]&&b.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,f=/(html|body)/i.test(e[0].tagName);return{top:c.top+this.offset.relative.top*d+this.offset.parent.top*d-(this.cssPosition==="fixed"?-this.scrollParent.scrollTop(): 625f?0:e.scrollTop())*d,left:c.left+this.offset.relative.left*d+this.offset.parent.left*d-(this.cssPosition==="fixed"?-this.scrollParent.scrollLeft():f?0:e.scrollLeft())*d}},_generatePosition:function(a){var c,d,e=this.options;d=a.pageX;c=a.pageY;var f=this.cssPosition==="absolute"&&!(this.scrollParent[0]!==this.document[0]&&b.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,h=/(html|body)/i.test(f[0].tagName);if(this.cssPosition==="relative"&&!(this.scrollParent[0]!== 626this.document[0]&&this.scrollParent[0]!==this.offsetParent[0]))this.offset.relative=this._getRelativeOffset();if(this.originalPosition){if(this.containment){a.pageX-this.offset.click.left<this.containment[0]&&(d=this.containment[0]+this.offset.click.left);a.pageY-this.offset.click.top<this.containment[1]&&(c=this.containment[1]+this.offset.click.top);a.pageX-this.offset.click.left>this.containment[2]&&(d=this.containment[2]+this.offset.click.left);a.pageY-this.offset.click.top>this.containment[3]&& 627(c=this.containment[3]+this.offset.click.top)}if(e.grid){c=this.originalPageY+Math.round((c-this.originalPageY)/e.grid[1])*e.grid[1];c=this.containment?c-this.offset.click.top>=this.containment[1]&&c-this.offset.click.top<=this.containment[3]?c:c-this.offset.click.top>=this.containment[1]?c-e.grid[1]:c+e.grid[1]:c;
627d=this.originalPageX+Math.round((d-this.originalPageX)/e.grid[0])*e.grid[0];d=this.containment?d-this.offset.click.left>=this.containment[0]&&d-this.offset.click.left<=this.containment[2]? 628d:d-this.offset.click.left>=this.containment[0]?d-e.grid[0]:d+e.grid[0]:d}}return{top:c-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(this.cssPosition==="fixed"?-this.scrollParent.scrollTop():h?0:f.scrollTop()),left:d-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(this.cssPosition==="fixed"?-this.scrollParent.scrollLeft():h?0:f.scrollLeft())}},_rearrange:function(a,b,d,e){d?d[0].appendChild(this.placeholder[0]):b.item[0].parentNode.insertBefore(this.placeholder[0], 629this.direction==="down"?b.item[0]:b.item[0].nextSibling);var f=this.counter=this.counter?++this.counter:1;this._delay(function(){f===this.counter&&this.refreshPositions(!e)})},_clear:function(a,b){function d(a,b,c){return function(d){c._trigger(a,d,b._uiHash(b))}}this.reverting=false;var e,f=[];!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem);this._noFinalSort=null;if(this.helper[0]===this.currentItem[0]){for(e in this._storedCSS)if(this._storedCSS[e]=== 630"auto"||this._storedCSS[e]==="static")this._storedCSS[e]="";this.currentItem.css(this._storedCSS);this._removeClass(this.currentItem,"ui-sortable-helper")}else this.currentItem.show();this.fromOutside&&!b&&f.push(function(a){this._trigger("receive",a,this._uiHash(this.fromOutside))});(this.fromOutside||this.domPosition.prev!==this.currentItem.prev().not(".ui-sortable-helper")[0]||this.domPosition.parent!==this.currentItem.parent()[0])&&!b&&f.push(function(a){this._trigger("update",a,this._uiHash())}); 631if(this!==this.currentContainer&&!b){f.push(function(a){this._trigger("remove",a,this._uiHash())});f.push(function(a){return function(b){a._trigger("receive",b,this._uiHash(this))}}.call(this,this.currentContainer));f.push(function(a){return function(b){a._trigger("update",b,this._uiHash(this))}}.call(this,this.currentContainer))}for(e=this.containers.length-1;e>=0;e--){b||f.push(d("deactivate",this,this.containers[e]));if(this.containers[e].containerCache.over){f.push(d("out",this,this.containers[e])); 632this.containers[e].containerCache.over=0}}if(this.storedCursor){this.document.find("body").css("cursor",this.storedCursor);this.storedStylesheet.remove()}this._storedOpacity&&this.helper.css("opacity",this._storedOpacity);this._storedZIndex&&this.helper.css("zIndex",this._storedZIndex==="auto"?"":this._storedZIndex);this.dragging=false;b||this._trigger("beforeStop",a,this._uiHash());this.placeholder[0].parentNode.removeChild(this.placeholder[0]);if(!this.cancelHelperRemoval){this.helper[0]!==this.currentItem[0]&& 633this.helper.remove();this.helper=null}if(!b){for(e=0;e<f.length;e++)f[e].call(this,a);this._trigger("stop",a,this._uiHash())}this.fromOutside=false;return!this.cancelHelperRemoval},_trigger:function(){b.Widget.prototype._trigger.apply(this,arguments)===false&&this.cancel()},_uiHash:function(a){var c=a||this;return{helper:c.helper,placeholder:c.placeholder||b([]),position:c.position,originalPosition:c.originalPosition,offset:c.positionAbs,item:c.currentItem,sender:a?a.element:null}}});b.widget("ui.spinner", 634{version:"1.12.1",defaultElement:"<input>",widgetEventPrefix:"spin",options:{classes:{"ui-spinner":"ui-corner-all","ui-spinner-down":"ui-corner-br","ui-spinner-up":"ui-corner-tr"},culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:!0,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption("max",this.options.max);this._setOption("min",this.options.min);this._setOption("step",this.options.step); 635this.value()!==""&&this._value(this.element.val(),true);this._draw();this._on(this._events);this._refresh();this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var a=this._super(),c=this.element;b.each(["min","max","step"],function(b,e){var f=c.attr(e);f!=null&&f.length&&(a[e]=f)});return a}
635,_events:{keydown:function(a){this._start(a)&&this._keydown(a)&&a.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()}, 636blur:function(a){if(this.cancelBlur)delete this.cancelBlur;else{this._stop();this._refresh();this.previous!==this.element.val()&&this._trigger("change",a)}},mousewheel:function(a,b){if(b){if(!this.spinning&&!this._start(a))return false;this._spin((b>0?1:-1)*this.options.step,a);clearTimeout(this.mousewheelTimer);this.mousewheelTimer=this._delay(function(){this.spinning&&this._stop(a)},100);a.preventDefault()}},"mousedown .ui-spinner-button":function(a){function c(){if(this.element[0]!==b.ui.safeActiveElement(this.document[0])){this.element.trigger("focus"); 637this.previous=d;this._delay(function(){this.previous=d})}}var d;d=this.element[0]===b.ui.safeActiveElement(this.document[0])?this.previous:this.element.val();a.preventDefault();c.call(this);this.cancelBlur=true;this._delay(function(){delete this.cancelBlur;c.call(this)});this._start(a)!==false&&this._repeat(null,b(a.currentTarget).hasClass("ui-spinner-up")?1:-1,a)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(a){if(b(a.currentTarget).hasClass("ui-state-active")){if(this._start(a)=== 638false)return false;this._repeat(null,b(a.currentTarget).hasClass("ui-spinner-up")?1:-1,a)}},"mouseleave .ui-spinner-button":"_stop"},_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap("<span>").parent().append("<a></a><a></a>")},_draw:function(){this._enhance();this._addClass(this.uiSpinner,"ui-spinner","ui-widget ui-widget-content");this._addClass("ui-spinner-input");this.element.attr("role","spinbutton");this.buttons=this.uiSpinner.children("a").attr("tabIndex",-1).attr("aria-hidden", 639true).button({classes:{"ui-button":""}});this._removeClass(this.buttons,"ui-corner-all");this._addClass(this.buttons.first(),"ui-spinner-button ui-spinner-up");this._addClass(this.buttons.last(),"ui-spinner-button ui-spinner-down");this.buttons.first().button({icon:this.options.icons.up,showLabel:false});this.buttons.last().button({icon:this.options.icons.down,showLabel:false});this.buttons.height()>Math.ceil(this.uiSpinner.height()*0.5)&&this.uiSpinner.height()>0&&this.uiSpinner.height(this.uiSpinner.height())}, 640_keydown:function(a){var c=this.options,d=b.ui.keyCode;switch(a.keyCode){case d.UP:this._repeat(null,1,a);return true;case d.DOWN:this._repeat(null,-1,a);return true;case d.PAGE_UP:this._repeat(null,c.page,a);return true;case d.PAGE_DOWN:this._repeat(null,-c.page,a);return true}return false},_start:function(a){if(!this.spinning&&this._trigger("start",a)===false)return false;if(!this.counter)this.counter=1;return this.spinning=true},_repeat:function(a,b,d){a=a||500;clearTimeout(this.timer);this.timer= 641this._delay(function(){this._repeat(40,b,d)},a);this._spin(b*this.options.step,d)},_spin:function(a,b){var d=this.value()||0;if(!this.counter)this.counter=1;d=this._adjustValue(d+a*this._increment(this.counter));if(!this.spinning||this._trigger("spin",b,{value:d})!==false){this._value(d);this.counter++}},_increment:function(a){var c=this.options.incremental;return c?b.isFunction(c)?c(a):Math.floor(a*a*a/5E4-a*a/500+17*a/200+1):1},_precision:function(){var a=this._precisionOf(this.options.step);this.options.min!== 642null&&(a=Math.max(a,this._precisionOf(this.options.min)));return a},_precisionOf:function(a){var a=a.toString(),b=a.indexOf(".");return b===-1?0:a.length-b-1},_adjustValue:function(a){var b,d=this.options;b=d.min!==null?d.min:0;a=Math.round((a-b)/d.step)*d.step;a=parseFloat((b+a).toFixed(this._precision()));return d.max!==null&&a>d.max?d.max:d.min!==null&&a<d.min?d.min:a},_stop:function(a){if(this.spinning){clearTimeout(this.timer);clearTimeout(this.mousewheelTimer);this.counter=0;this.spinning=false; 643this._trigger("stop",a)}},_setOption:function(a,b){var d;if(a==="culture"||a==="numberFormat"){d=this._parse(this.element.val());this.options[a]=b;this.element.val(this._format(d))}else{if(a==="max"||a==="min"||a==="step")typeof b==="string"&&(b=this._parse(b));if(a==="icons"){d=this.buttons.first().find(".ui-icon");this._removeClass(d,null,this.options.icons.up);this._addClass(d,null,b.up);d=this.buttons.last().find(".ui-icon");this._removeClass(d,null,this.options.icons.down);this._addClass(d,null, 644b.down)}this._super(a,b)}},_setOptionDisabled:function(a){this._super(a);this._toggleClass(this.uiSpinner,null,"ui-state-disabled",!!a);this.element.prop("disabled",!!a);this.buttons.button(a?"disable":"enable")},_setOptions:n(function(a){this._super(a)}),_parse:function(a){typeof a==="string"&&a!==""&&(a=window.Globalize&&this.options.numberFormat?Globalize.parseFloat(a,10,this.options.culture):+a);return a===""||isNaN(a)?null:a},_format:function(a){return a===""?"":window.Globalize&&this.options.numberFormat? 645Globalize.format(a,this.options.numberFormat,this.options.culture):a},_refresh:function(){this.element.attr({"aria-valuemin":this.options.min,"aria-valuemax":this.options.max,"aria-valuenow":this._parse(this.element.val())})},isValid:function(){var a=this.value();return a===null?false:a===this._adjustValue(a)},_value:function(a,b){var d;if(a!==""){d=this._parse(a);if(d!==null){b||(d=this._adjustValue(d));a=this._format(d)}}this.element.val(a);this._refresh()},_destroy:function(){this.element.prop("disabled", 646false).removeAttr("autocomplete role aria-valuemin aria-valuemax aria-valuenow");this.uiSpinner.replaceWith(this.element)},stepUp:n(function(a){this._stepUp(a)}
646),_stepUp:function(a){if(this._start()){this._spin((a||1)*this.options.step);this._stop()}},stepDown:n(function(a){this._stepDown(a)}),_stepDown:function(a){if(this._start()){this._spin((a||1)*-this.options.step);this._stop()}},pageUp:n(function(a){this._stepUp((a||1)*this.options.page)}),pageDown:n(function(a){this._stepDown((a||1)*this.options.page)}), 647value:function(a){if(!arguments.length)return this._parse(this.element.val());n(this._value).call(this,a)},widget:function(){return this.uiSpinner}});!1!==b.uiBackCompat&&b.widget("ui.spinner",b.ui.spinner,{_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml())},_uiSpinnerHtml:function(){return"<span>"},_buttonHtml:function(){return"<a></a><a></a>"}});b.widget("ui.tabs",{version:"1.12.1",delay:300,options:{active:null, 648classes:{"ui-tabs":"ui-corner-all","ui-tabs-nav":"ui-corner-all","ui-tabs-panel":"ui-corner-bottom","ui-tabs-tab":"ui-corner-top"},collapsible:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_isLocal:function(){var a=/#.*$/;return function(b){var d,e;d=b.href.replace(a,"");e=location.href.replace(a,"");try{d=decodeURIComponent(d)}catch(f){}try{e=decodeURIComponent(e)}catch(h){}return b.hash.length>1&&d===e}}(),_create:function(){var a= 649this,c=this.options;this.running=false;this._addClass("ui-tabs","ui-widget ui-widget-content");this._toggleClass("ui-tabs-collapsible",null,c.collapsible);this._processTabs();c.active=this._initialActive();if(b.isArray(c.disabled))c.disabled=b.uniqueSort(c.disabled.concat(b.map(this.tabs.filter(".ui-state-disabled"),function(b){return a.tabs.index(b)}))).sort();this.active=this.options.active!==false&&this.anchors.length?this._findActive(c.active):b();this._refresh();this.active.length&&this.load(c.active)}, 650_initialActive:function(){var a=this.options.active,c=this.options.collapsible,d=location.hash.substring(1);if(a===null){d&&this.tabs.each(function(c,e){if(b(e).attr("aria-controls")===d){a=c;return false}});a===null&&(a=this.tabs.index(this.tabs.filter(".ui-tabs-active")));if(a===null||a===-1)a=this.tabs.length?0:false}if(a!==false){a=this.tabs.index(this.tabs.eq(a));a===-1&&(a=c?false:0)}!c&&(a===false&&this.anchors.length)&&(a=0);return a},_getCreateEventData:function(){return{tab:this.active, 651panel:!this.active.length?b():this._getPanelForTab(this.active)}},_tabKeydown:function(a){var c=b(b.ui.safeActiveElement(this.document[0])).closest("li"),d=this.tabs.index(c),e=true;if(!this._handlePageNav(a)){switch(a.keyCode){case b.ui.keyCode.RIGHT:case b.ui.keyCode.DOWN:d++;break;case b.ui.keyCode.UP:case b.ui.keyCode.LEFT:e=false;d--;break;case b.ui.keyCode.END:d=this.anchors.length-1;break;case b.ui.keyCode.HOME:d=0;break;case b.ui.keyCode.SPACE:a.preventDefault();clearTimeout(this.activating); 652this._activate(d);return;case b.ui.keyCode.ENTER:a.preventDefault();clearTimeout(this.activating);this._activate(d===this.options.active?false:d);return;default:return}a.preventDefault();clearTimeout(this.activating);d=this._focusNextTab(d,e);if(!a.ctrlKey&&!a.metaKey){c.attr("aria-selected","false");this.tabs.eq(d).attr("aria-selected","true");this.activating=this._delay(function(){this.option("active",d)},this.delay)}}},_panelKeydown:function(a){if(!this._handlePageNav(a)&&a.ctrlKey&&a.keyCode=== 653b.ui.keyCode.UP){a.preventDefault();this.active.trigger("focus")}},_handlePageNav:function(a){if(a.altKey&&a.keyCode===b.ui.keyCode.PAGE_UP){this._activate(this._focusNextTab(this.options.active-1,false));return true}if(a.altKey&&a.keyCode===b.ui.keyCode.PAGE_DOWN){this._activate(this._focusNextTab(this.options.active+1,true));return true}},_findNextTab:function(a,c){function d(){a>e&&(a=0);a<0&&(a=e);return a}for(var e=this.tabs.length-1;b.inArray(d(),this.options.disabled)!==-1;)a=c?a+1:a-1;return a}, 654_focusNextTab:function(a,b){a=this._findNextTab(a,b);this.tabs.eq(a).trigger("focus");return a},_setOption:function(a,b){if(a==="active")this._activate(b);else{this._super(a,b);if(a==="collapsible"){this._toggleClass("ui-tabs-collapsible",null,b);!b&&this.options.active===false&&this._activate(0)}a==="event"&&this._setupEvents(b);a==="heightStyle"&&this._setupHeightStyle(b)}},_sanitizeSelector:function(a){return a?a.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var a= 655this.options,c=this.tablist.children(":has(a[href])");a.disabled=b.map(c.filter(".ui-state-disabled"),function(a){return c.index(a)});this._processTabs();if(a.active===false||!this.anchors.length){a.active=false;this.active=b()}else if(this.active.length&&!b.contains(this.tablist[0],this.active[0])
655)if(this.tabs.length===a.disabled.length){a.active=false;this.active=b()}else this._activate(this._findNextTab(Math.max(0,a.active-1),false));else a.active=this.tabs.index(this.active);this._refresh()}, 656_refresh:function(){this._setOptionDisabled(this.options.disabled);this._setupEvents(this.options.event);this._setupHeightStyle(this.options.heightStyle);this.tabs.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1});this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-hidden":"true"});if(this.active.length){this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0});this._addClass(this.active,"ui-tabs-active","ui-state-active");this._getPanelForTab(this.active).show().attr({"aria-hidden":"false"})}else this.tabs.eq(0).attr("tabIndex", 6570)},_processTabs:function(){var a=this,c=this.tabs,d=this.anchors,e=this.panels;this.tablist=this._getList().attr("role","tablist");this._addClass(this.tablist,"ui-tabs-nav","ui-helper-reset ui-helper-clearfix ui-widget-header");this.tablist.on("mousedown"+this.eventNamespace,"> li",function(a){b(this).is(".ui-state-disabled")&&a.preventDefault()}).on("focus"+this.eventNamespace,".ui-tabs-anchor",function(){b(this).closest("li").is(".ui-state-disabled")&&this.blur()});this.tabs=this.tablist.find("> li:has(a[href])").attr({role:"tab", 658tabIndex:-1});this._addClass(this.tabs,"ui-tabs-tab","ui-state-default");this.anchors=this.tabs.map(function(){return b("a",this)[0]}).attr({role:"presentation",tabIndex:-1});this._addClass(this.anchors,"ui-tabs-anchor");this.panels=b();this.anchors.each(function(c,d){var e,f,g=b(d).uniqueId().attr("id"),h=b(d).closest("li"),j=h.attr("aria-controls");if(a._isLocal(d)){e=d.hash;f=e.substring(1);e=a.element.find(a._sanitizeSelector(e))}else{f=h.attr("aria-controls")||b({}).uniqueId()[0].id;e=a.element.find("#"+ 659f);if(!e.length){e=a._createPanel(f);e.insertAfter(a.panels[c-1]||a.tablist)}e.attr("aria-live","polite")}if(e.length)a.panels=a.panels.add(e);j&&h.data("ui-tabs-aria-controls",j);h.attr({"aria-controls":f,"aria-labelledby":g});e.attr("aria-labelledby",g)});this.panels.attr("role","tabpanel");this._addClass(this.panels,"ui-tabs-panel","ui-widget-content");if(c){this._off(c.not(this.tabs));this._off(d.not(this.anchors));this._off(e.not(this.panels))}},_getList:function(){return this.tablist||this.element.find("ol, ul").eq(0)}, 660_createPanel:function(a){return b("<div>").attr("id",a).data("ui-tabs-destroy",true)},_setOptionDisabled:function(a){var c,d;b.isArray(a)&&(a.length?a.length===this.anchors.length&&(a=true):a=false);for(d=0;c=this.tabs[d];d++){c=b(c);if(a===true||b.inArray(d,a)!==-1){c.attr("aria-disabled","true");this._addClass(c,null,"ui-state-disabled")}else{c.removeAttr("aria-disabled");this._removeClass(c,null,"ui-state-disabled")}}this.options.disabled=a;this._toggleClass(this.widget(),this.widgetFullName+"-disabled", 661null,a===true)},_setupEvents:function(a){var c={};a&&b.each(a.split(" "),function(a,b){c[b]="_eventHandler"});this._off(this.anchors.add(this.tabs).add(this.panels));this._on(true,this.anchors,{click:function(a){a.preventDefault()}});this._on(this.anchors,c);this._on(this.tabs,{keydown:"_tabKeydown"});this._on(this.panels,{keydown:"_panelKeydown"});this._focusable(this.tabs);this._hoverable(this.tabs)},_setupHeightStyle:function(a){var c,d=this.element.parent();if(a==="fill"){c=d.height();c=c-(this.element.outerHeight()- 662this.element.height());this.element.siblings(":visible").each(function(){var a=b(this),d=a.css("position");d==="absolute"||d==="fixed"||(c=c-a.outerHeight(true))});this.element.children().not(this.panels).each(function(){c=c-b(this).outerHeight(true)});this.panels.each(function(){b(this).height(Math.max(0,c-b(this).innerHeight()+b(this).height()))}).css("overflow","auto")}else if(a==="auto"){c=0;this.panels.each(function(){c=Math.max(c,b(this).height("").height())}).height(c)}},_eventHandler:function(a){var c= 663this.options,d=this.active,e=b(a.currentTarget).closest("li"),f=e[0]===d[0],h=f&&c.collapsible,j=h?b():this._getPanelForTab(e),l=!d.length?b():this._getPanelForTab(d),d={oldTab:d,oldPanel:l,newTab:h?b():e,newPanel:j};a.preventDefault();if(!e.hasClass("ui-state-disabled")&&!e.hasClass("ui-tabs-loading")&&!this.running&&!(f&&!c.collapsible||this._trigger("beforeActivate",a,d)===false)){c.active=h?false:this.tabs.index(e);this.active=f?b():e;this.xhr&&this.xhr.abort();!l.length&&!j.length&&b.error("jQuery UI Tabs: Mismatching fragment identifier."); 664j.length&&this.load(this.tabs.index(e),a);this._toggle(a,d)}},_toggle:function(a,c){function d(){f.running=false;f._trigger("activate",a,c)}function e(){f._addClass(c.newTab.closest("li"),"ui-tabs-active","ui-state-active");if(h.length&&f.options.show)f._show(h,f.options.show,d);else{h.show();d()}}var f=this,h=c.newPanel,j=c.oldPanel;this.running=true;if(j.length&&this.options.hide)this._hide(j,this.options.hide,function(){f._removeClass(c.oldTab.closest("li"),"ui-tabs-active","ui-state-active"); 665e()});else{this._removeClass(c.oldTab.closest("li"),"ui-tabs-active","ui-state-active");j.hide();e()}j.attr("aria-hidden","true");c.oldTab.attr({"aria-selected":"false","aria-expanded":"false"});h.length&&j.length?c.oldTab.attr("tabIndex",-1):h.length&&this.tabs.filter(function(){return b(this).attr("tabIndex")===0}).attr("tabIndex",-1);h.attr("aria-hidden","false");c.newTab.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_activate:function(a){a=this._findActive(a);if(a[0]!==this.active[0]){if(!a.length)a= 666this.active;a=a.find(".ui-tabs-anchor")[0];this._eventHandler({target:a,currentTarget:a,preventDefault:b.noop})}},_findActive:function(a){return a===false?b():this.tabs.eq(a)},_getIndex:function(a){typeof a==="string"&&(a=this.anchors.index(this.anchors.filter("[href$='"+b.ui.escapeSelector(a)+"']")));return a},_destroy:function(){this.xhr&&this.xhr.abort();this.tablist.removeAttr("role").off(this.eventNamespace);this.anchors.removeAttr("role tabIndex").removeUniqueId();this.tabs.add(this.panels).each(function(){b.data(this, 667"ui-tabs-destroy")?b(this).remove():b(this).removeAttr("role tabIndex aria-live aria-busy aria-selected aria-labelledby aria-hidden aria-expanded")});this.tabs.each(function(){var a=b(this),c=a.data("ui-tabs-aria-controls");c?a.attr("aria-controls",c).removeData("ui-tabs-aria-controls"):a.removeAttr("aria-controls")});this.panels.show();this.options.heightStyle!=="content"&&this.panels.css("height","")},enable:function(a){var c=this.options.disabled;if(c!==false){if(a===void 0)c=false;else{a=this._getIndex(a); 668c=b.isArray(c)?b.map(c,function(b){return b!==a?b:null}):b.map(this.tabs,function(b,c){return c!==a?c:null})}this._setOptionDisabled(c)}},disable:function(a){var c=this.options.disabled;if(c!==true){if(a===void 0)c=true;else{a=this._getIndex(a);if(b.inArray(a,c)!==-1)return;c=b.isArray(c)?b.merge([a],c).sort():[a]}this._setOptionDisabled(c)}},load:function(a,c){var a=this._getIndex(a),d=this,e=this.tabs.eq(a),f=e.find(".ui-tabs-anchor"),h=this._getPanelForTab(e),j={tab:e,panel:h},l=function(a,b){b=== 669"abort"&&d.panels.stop(false,true);d._removeClass(e,"ui-tabs-loading");h.removeAttr("aria-busy");a===d.xhr&&delete d.xhr};if(!this._isLocal(f[0]))if((this.xhr=b.ajax(this._ajaxSettings(f,c,j)))&&this.xhr.statusText!=="canceled"){this._addClass(e,"ui-tabs-loading");h.attr("aria-busy","true");this.xhr.done(function(a,b,e){setTimeout(function(){h.html(a);d._trigger("load",c,j);l(e,b)},1)}).fail(function(a,b){setTimeout(function(){l(a,b)},1)})}},_ajaxSettings:function(a,c,d){var e=this;return{url:a.attr("href").replace(/#.*$/, 670""),beforeSend:function(a,f){return e._trigger("beforeLoad",c,b.extend({jqXHR:a,ajaxSettings:f},d))}}},_getPanelForTab:function(a){a=b(a).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+a))}});!1!==b.uiBackCompat&&b.widget("ui.tabs",b.ui.tabs,{_processTabs:function(){this._superApply(arguments);this._addClass(this.tabs,"ui-tab")}});b.widget("ui.tooltip",{version:"1.12.1",options:{classes:{"ui-tooltip":"ui-corner-all ui-widget-shadow"},content:function(){var a=b(this).attr("title")|| 671"";return b("<a>").text(a).html()},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,track:!1,close:null,open:null},_addDescribedBy:function(a,c){var d=(a.attr("aria-describedby")||"").split(/\s+/);d.push(c);a.data("ui-tooltip-id",c).attr("aria-describedby",b.trim(d.join(" ")))},_removeDescribedBy:function(a){var c=a.data("ui-tooltip-id"),d=(a.attr("aria-describedby")||"").split(/\s+/),c=b.inArray(c,d);c!==-1&&d.splice(c,1);a.removeData("ui-tooltip-id"); 672(d=b.trim(d.join(" ")))?a.attr("aria-describedby",d):a.removeAttr("aria-describedby")},_create:function(){this._on({mouseover:"open",focusin:"open"});this.tooltips={};this.parents={};this.liveRegion=b("<div>").attr({role:"log","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body);this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible");this.disabledTitles=b([])},_setOption:function(a,c){var d=this;this._super(a,c);a==="content"&&b.each(this.tooltips,function(a, 673b){d._updateContent(b.element)})},_setOptionDisabled:function(a){this[a?"_disable":"_enable"]()},_disable:function(){var a=this;b.each(this.tooltips,function(c,d){var e=b.Event("blur");e.target=e.currentTarget=d.element[0];a.close(e,true)});this.disabledTitles=this.disabledTitles.add(this.element.find(this.options.items).addBack().filter(function(){var a=b(this);if(a.is("[title]"))return a.data("ui-tooltip-title",a.attr("title")).removeAttr("title")}))},_enable:function(){this.disabledTitles.each(function(){var a= 674b(this);a.data("ui-tooltip-title")&&a.attr("title",a.data("ui-tooltip-title"))});this.disabledTitles=b([])},open:function(a){var c=this,d=b(a?a.target:this.element).closest(this.options.items);if(d.length&&!d.data("ui-tooltip-id")){d.attr("title")&&d.data("ui-tooltip-title",d.attr("title"));d.data("ui-tooltip-open",true);a&&a.type==="mouseover"&&d.parents().each(function(){var a=b(this),d;if(a.data("ui-tooltip-open")){d=b.Event("blur");d.target=d.currentTarget=this;c.close(d,true)}if(a.attr("title")){a.uniqueId(); 675c.parents[this.id]={element:this,title:a.attr("title")};a.attr("title","")}});this._registerCloseHandlers(a,d);this._updateContent(d,a)}},_updateContent:function(a,b){var d;d=this.options.content;var e=this,f=b?b.type:null;if(typeof d==="string"||d.nodeType||d.jquery)return this._open(b,a,d);(d=d.call(a[0],function(d){e._delay(function(){if(a.data("ui-tooltip-open")){if(b)b.type=f;this._open(b,a,d)}})}))&&this._open(b,a,d)},_open:function(a,c,d){function e(a){l.of=a;h.is(":hidden")||h.position(l)} 676var f,h,j,l=b.extend({},this.options.position);if(d)if(f=this._find(c))f.tooltip.find(".ui-tooltip-content").html(d);else{c.is("[title]")&&(a&&a.type==="mouseover"?c.attr("title",""):c.removeAttr("title"));f=this._tooltip(c);h=f.tooltip;this._addDescribedBy(c,h.attr("id"));h.find(".ui-tooltip-content").html(d);this.liveRegion.children().hide();d=b("<div>").html(h.find(".ui-tooltip-content").html());d.removeAttr("name").find("[name]").removeAttr("name");d.removeAttr("id").find("[id]").removeAttr("id"); 677d.appendTo(this.liveRegion);if(this.options.track&&a&&/^mouse/.test(a.type)){this._on(this.document,{mousemove:e});e(a)}else h.position(b.extend({of:c},this.options.position));h.hide();this._show(h,this.options.show);if(this.options.track&&this.options.show&&this.options.show.delay)j=this.delayedShow=setInterval(function(){if(h.is(":visible")){e(l.of);clearInterval(j)}},b.fx.interval);this._trigger("open",a,{tooltip:h})}},_registerCloseHandlers:function(a,c){var d={keyup:function(a){if
677(a.keyCode=== 678b.ui.keyCode.ESCAPE){a=b.Event(a);a.currentTarget=c[0];this.close(a,true)}}};if(c[0]!==this.element[0])d.remove=function(){this._removeTooltip(this._find(c).tooltip)};if(!a||a.type==="mouseover")d.mouseleave="close";if(!a||a.type==="focusin")d.focusout="close";this._on(true,c,d)},close:function(a){var c,d=this,e=b(a?a.currentTarget:this.element),f=this._find(e);if(f){c=f.tooltip;if(!f.closing){clearInterval(this.delayedShow);e.data("ui-tooltip-title")&&!e.attr("title")&&e.attr("title",e.data("ui-tooltip-title")); 679this._removeDescribedBy(e);f.hiding=true;c.stop(true);this._hide(c,this.options.hide,function(){d._removeTooltip(b(this))});e.removeData("ui-tooltip-open");this._off(e,"mouseleave focusout keyup");e[0]!==this.element[0]&&this._off(e,"remove");this._off(this.document,"mousemove");a&&a.type==="mouseleave"&&b.each(this.parents,function(a,c){b(c.element).attr("title",c.title);delete d.parents[a]});f.closing=true;this._trigger("close",a,{tooltip:c});if(!f.hiding)f.closing=false}}else e.removeData("ui-tooltip-open")}, 680_tooltip:function(a){var c=b("<div>").attr("role","tooltip"),d=b("<div>").appendTo(c),e=c.uniqueId().attr("id");this._addClass(d,"ui-tooltip-content");this._addClass(c,"ui-tooltip","ui-widget ui-widget-content");c.appendTo(this._appendTo(a));return this.tooltips[e]={element:a,tooltip:c}},_find:function(a){return(a=a.data("ui-tooltip-id"))?this.tooltips[a]:null},_removeTooltip:function(a){a.remove();delete this.tooltips[a.attr("id")]},_appendTo:function(a){a=a.closest(".ui-front, dialog");if(!a.length)a= 681this.document[0].body;return a},_destroy:function(){var a=this;b.each(this.tooltips,function(c,d){var e=b.Event("blur"),f=d.element;e.target=e.currentTarget=f[0];a.close(e,true);b("#"+c).remove();if(f.data("ui-tooltip-title")){f.attr("title")||f.attr("title",f.data("ui-tooltip-title"));f.removeData("ui-tooltip-title")}});this.liveRegion.remove()}});!1!==b.uiBackCompat&&b.widget("ui.tooltip",b.ui.tooltip,{options:{tooltipClass:null},_tooltip:function(){var a=this._superApply(arguments);this.options.tooltipClass&& 682a.tooltip.addClass(this.options.tooltipClass);return a}})});$.fn.extend({togglePlus:function(b,e){var f=arguments,h=b.guid||jQuery.guid++,j=0,l=function(e){var h=(jQuery._data(this,"lastToggle"+b.guid)||0)%j;jQuery._data(this,"lastToggle"+b.guid,h+1);e.preventDefault();return f[h].apply(this,arguments)||!1};for(l.guid=h;j<f.length;)f[j++].guid=h;return this.click(l)}}); 683~function(b){var e=function(e,h){var j=null;return j=function(){"function"==typeof e&&e()||b.fn[e]?h():setTimeout(j,100)}};b.waitForPlugin=function(f){return b.Deferred(function(){e(f,this.resolve)()})};b.waitUntil=function(f){return b.Deferred(function(){e(f,this.resolve)()})}}(window.jQuery); 684~function(b){var e={},f={},h=[];b.extend({getImageData:function(b){var e=document.createElement("canvas");e.width=b.width;e.height=b.height;e.getContext("2d").drawImage(b,0,0);return e.toDataURL("image/png")},getLoadedImage:function(b){return b?"undefined"!==typeof e[b]?e[b]:"":e},loadImage:function(f,h,n){DevConsole.log("load image:"+f);var o="undefined"!==typeof h&&h?addUrlRandom(f):f,q=b.Deferred(),r=0;"undefined"===typeof n&&(n=3);if("undefined"!=typeof e[o])q.resolve(e[o]);else{var s=new Image; 685s.crossOrigin="anonymous";s.onload=function(){DevConsole.log("image loaded:"+o);e[o]=s;q.resolve(s)};s.onerror=function(){r++;r>=n?(this.onerror=null,q.reject()):setTimeout(function(){s.src=o},1E3)};s.src=o}return q.promise()},localImageInfo:function(e){var f=b.Deferred(),h=e.files[0],e=new FileReader;e.onload=function(b){var b=b.target.result,e=new Image;e.onload=function(){f.resolve({width:e.width,height:e.height,size:h.size,type:h.type})};e.src=b};e.readAsDataURL(h);return f.promise()},debounce:function(b, 686e,h,o){f[b]&&clearTimeout(f[b]);o?f[b]?f[b]=setTimeout(function(){e();f[b]=null},h):(e(),f[b]=setTimeout(function(){f[b]=null},h)):f[b]=setTimeout(e,h)},debounceCB:function(b,e){var f;return function(){var h=this,q=arguments;clearTimeout(f);f=setTimeout(function(){b.apply(h,q)},e)}},benchmark:function(b,e){if(!e)return b?h[b]:h;var f=new Date,o=0,q=0;h[b]||(h[b]=[]);h[b].length&&(o=f-h[b][h[b].length-1][1],q=f-h[b][0][1]);h[b].push([e,f,o,q]);return h[b]},logBenchMark:function(e){var f=this.benchmark(e); 687b.post("/webservices/logClient.php",{msg:"benchmarks["+e+"]: "+JSON.stringify(f)+", URL: "+location.href,page:VALIDATE_PAGE,c:VALIDATE_C})}
687,clearBenchMark:function(b){h[b]&&0<h[b].length&&(h[b]=[])}})}(window.jQuery); 688~function(b){var e=[].slice;b.fn.extend({registerLazyDialog:function(b){console.log("register initializer");0<this.length&&(this[0].lazyLoadDialogInitializer=b)},initializeLazyDialog:function(){if(!this.dialog("instance")){var b=this[0].lazyLoadDialogInitializer;if(!b)throw Error("A Initializer must be registered before calling initializeLazyDialog");"object"==typeof b?this.dialog(b):b()}}});b.fn.extend({lazyDialog:function(f){if("object"==typeof f)return this.registerLazyDialog(f),this;if(b.fn.dialog)return this.initializeLazyDialog(), 689b.fn.dialog.apply(this,e.call(arguments)),this;b.waitForPlugin("dialog").then(function(){this.initializeLazyDialog();b.fn.dialog.apply(this,e.call(arguments))});return this}})}(window.jQuery); 690~function(b){if("undefined"!==typeof SITE_BASE&&""!==SITE_BASE){var e=b.ajax;b.ajax=function(f){var h=b.extend(!0,{},b.ajaxSettings,f).beforeSend;f.beforeSend=function(b,e){var f;h&&(f=h.call(this,b,e));SITE_BASE&&(0===e.url.indexOf("/")&&0!==e.url.indexOf("//")&&0!==e.url.indexOf(SITE_BASE))&&(e.url=SITE_BASE+e.url,f=!0);return f};return e.apply(this,arguments)}}}(window.jQuery); 691~function(b){var e=b.fn.scrollTop,f=!!(navigator.userAgent||navigator.vendor||window.opera).match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);b.fn.scrollTop=function(b){var j=this[0]===document||this[0]===window||"HTML"===this[0].tagName||"BODY"===this[0].tagName;return 0===b&&f&&j?(e.call(this,1),setTimeout(function(){e.call(this,0)}.bind(this),300),this):e.apply(this,arguments)}}(window.jQuery);jQuery.cookie=function(b,e,f){if("undefined"!=typeof e){f=f||{};null===e&&(e="",f.expires=-1);var h="";if(f.expires&&("number"==typeof f.expires||f.expires.toUTCString))"number"==typeof f.expires?(h=new Date,h.setTime(h.getTime()+864E5*f.expires)):h=f.expires,h="; expires="+h.toUTCString();var j=f.path?"; path="+f.path:"",l=f.domain?"; domain="+f.domain:"",f=f.secure?"; secure":"";document.cookie=[b,"=",encodeURIComponent(e),h,j,l,f].join("")}else{e=null;if(document.cookie&&""!=document.cookie){f= 692document.cookie.split(";");for(h=0;h<f.length;h++)if(j=jQuery.trim(f[h]),j.substring(0,b.length+1)==b+"="){e=decodeURIComponent(j.substring(b.length+1));break}}return e}};if("undefined"===typeof window.localStorage){var TempStorage=function(){this.values={};this.setItem=function(b,e){this.values[b]=e};this.getItem=function(b){return this.values[b]||null};this.removeItem=function(b){delete this.values[b]}};window.localStorage=new TempStorage;window.sessionStorage=localStorage} 693var PaStorage=new function(){this.EXPIRE_GROUP_NAME="StorageExpire";this.setItem=function(b,e,f){null===e?this.remove(b):"undefined"!==typeof e&&("object"==typeof e&&(e=JSON.stringify(e)),"number"==typeof f&&f?(this.setExpire(b,f),localStorage.setItem(b,e)):sessionStorage.setItem(b,e))};this.getItem=function(b){var e=sessionStorage.getItem(b);if(null===e){if(this.isExpired(b))return this.remove(b),null;e=localStorage.getItem(b)}try{e=JSON.parse(e)}catch(f){}return e};this.getBySubKey=function(b,e){var f= 694JSON.parse(localStorage[b]||"{}");return!e?f:f[e]||null};this.setBySubKey=function(b,e,f){if("object"==typeof e)h=e;else{var h=JSON.parse(localStorage[b]||"{}");null!==f?h[e]=f:delete h[e]}localStorage[b]=JSON.stringify(h)};this.setExpire=function(b,e){this.setBySubKey(this.EXPIRE_GROUP_NAME,b,(new Date).getTime()+864E5*e)};this.isExpired=function(b){return(b=this.getBySubKey(this.EXPIRE_GROUP_NAME,b))&&b<(new Date).getTime()};this.remove=function(b){sessionStorage.removeItem(b);localStorage.removeItem(b); 695this.setBySubKey(this.EXPIRE_GROUP_NAME,b,null)};this.autoClear=function(){var b=this.getItem(this.EXPIRE_GROUP_NAME);if(!b)return 0;var e=(new Date).getTime(),f=[],h;for(h in b){var j=b[h];j&&j<e&&f.push(h)}for(b=0;b<f.length;b++)h=f[b],this.remove(h);return f.length}};PaStorage.autoClear();var keepMenuUp=!0,keepHelpMenuUp="",xmlHttp;"function"!=typeof Object.assign&&(Object.assign=function(b){if(null==b)throw new TypeError("Cannot convert undefined or null to object");for(var b=Object(b),e=1;e<arguments.length;e++){var f=arguments[e];if(null!=f)for(var h in f)Object.prototype.hasOwnProperty.call(f,h)&&(b[h]=f[h])}return b}); 696Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{value:function(b,e){if(this==null)throw new TypeError('"this" is null or not defined');var f=Object(this),h=f.length>>>0;if(h===0)return false;for(var j=e|0,j=Math.max(j>=0?j:h-Math.abs(j),0);j<h;){if(f[j]===b||typeof f[j]==="number"&&typeof b==="number"&&isNaN(f[j])&&isNaN(b))return true;j++}return false}}); 697function setCartNumber(b){if(isResponsive())setMobileCartNumber(b);else if($("#nav_cart_num").length){$("#nav_cart_num").html(b);if(b>0){$("#nav_cart_num").show();SITE_ID==SITE_STI&&$("#nav_cart img").css({"vertical-align":"text-bottom","margin-right":"7px"})}else{$("#nav_cart_num").hasClass("hide-on-none")&&$("#nav_cart_num").hide();SITE_ID==SITE_STI&&$("#nav_cart img").css({"vertical-align":"text-top","margin-right":0})}}} 698function setMobileCartNumber(b){var e=".num_of_items";SITE_ID==SITE_CW?e=".cart_number_of_items":SITE_ID==SITE_MCC&&(e=".number_of_items");if(b==0)$(e).hide();else if($(e).length==0){b='<div class="'+e.substring(1)+'">'+b+"</div>";$("#nav_cart").append(b)}else{$(e).html(b);$(e).show()}}function html(b){return b.replace(/[&<>"']/g,function(b){return{"&":"&","<":"<",">":">",'"':""","'":"'"}[b]})} 699Number.prototype.fixNumber=function(b){var e;e=this+"";this<1E-6&&(e="0");if(e.indexOf(".")>0){var f=e.split(".");if(f[1].length>b){e=f[0]+""+f[1].substr(0,b);f[1].substr(b,1)>=5&&(e=parseInt(e)+1+"");e=b>0?(e.length>b?e.substr(0,e.length-b):0)+"."+e.substr(-b):e}}if(b>0){var f=e.split("."),h=0;f.length<2?e=e+".":h=f[1].length;if(h<b)for(f=h;f<b;f++)e=e+"0"}return e}; 700function createXmlHttpRequest(){window.ActiveXObject?xmlHttp=new ActiveXObject("Microsoft.XMLHTTP"):window.XMLHttpRequest&&(xmlHttp=new XMLHttpRequest)}function createCookie(b,e,f,h){var j="";if(f){j=new Date;j.setTime(j.getTime()+f*864E5);j="; expires="+j.toUTCString()}f="";h&&(f=window.location.host.replace("www.","."));document.cookie=b+"="+e+j+";domain="+f+"; path=/"}function readCookie(b){return getcookie(b)}function getCookie(b){return getcookie(b)} 701function encodeStr(b){for(var e=String.fromCharCode(b.charCodeAt(0)+b.length),f=1;f<b.length;f++)e=e+String.fromCharCode(b.charCodeAt(f)+b.charCodeAt(f-1));return encodeURIComponent(e)}function decodeStr(b){for(var b=decodeURIComponent(b),e=String.fromCharCode(b.charCodeAt(0)-b.length),f=1;f<b.length;f++)e=e+String.fromCharCode(b.charCodeAt(f)-e.charCodeAt(f-1));return e} 702function isEligiblePayIn4ByAmount(b,e,f){typeof e=="undefined"&&(e=30);typeof f=="undefined"&&(f=1500);b=parseFloat(b);return b>0&&b>=e&&b<=f} 703function setAfterPayMessageAmount(b,e){DevConsole.log("setAfterPayMessageAmount:"+b);$(".callout-afterpay").length?$.waitUntil(function(){return typeof AFTERPAY_PLACEMENT_CREATED!="undefined"&&AFTERPAY_PLACEMENT_CREATED}).then(function(){setTimeout(function(){DevConsole.log("update afterPay amount:"+b);$("afterpay-placement").attr("data-amount",b);$(".callout-afterpay").slideDown("normal",function(){typeof e==="function"&&e()})},0)}):$("afterpay-placement").length&&$("afterpay-placement").attr("data-amount", 704b)} 705function togglePayIn4(b,e){DevConsole.log("togglePayIn4:"+b);if($("div[data-pp-message], div[data-pp-message-custom]").length||$(".paypal_break_message").length){typeof e=="undefined"&&(e=500);$.waitUntil(function(){return typeof paypal!="undefined"}).then(function(){setTimeout(function(){typeof b=="undefined"&&($("div[data-pp-message], div[data-pp-message-custom]").length?b=$("div[data-pp-message], div[data-pp-message-custom]").attr("data-pp-amount"):typeof BraintreeClient!=="undefined"&&(b=BraintreeClient.getAmounts()[0]));DevConsole.log("update to amount:"+ 706b);
706var e=$("div[data-pp-message]").attr("data-pp-extra-class-onrender");e&&$("div[data-pp-message]").removeClass(e);$("div[data-pp-message], div[data-pp-message-custom]").attr("data-pp-amount",b);if(isEligiblePayIn4ByAmount(b,$("div[data-pp-message],div[data-pp-message-custom]").attr("data-pp-min-amount"),$("div[data-pp-message], div[data-pp-message-custom]").attr("data-pp-max-amount"))){$("div[data-pp-message-custom]").html(getCustomPayIn4Message(b));$("div[data-pp-message], div[data-pp-message-custom]").show(); 707$(".paypal_break_message").show();(e=$("div[data-pp-message]").attr("data-pp-extra-class-onrender"))&&!$("div[data-pp-message]").hasClass(e)&&setTimeout(function(){$("div[data-pp-message]").addClass(e)},3E3)}else{$("div[data-pp-message], div[data-pp-message-custom]").hide();$(".paypal_break_message").hide()}},e)})}} 708function getCustomPayIn4Message(b){var e="",e=isEligiblePayIn4ByAmount(b)?"or 4 interest-free payments of $"+(b/4).fixNumber(2):"or 4 interest-free payments on purchases of $30-$1,500";return e+' with <img class="paypal-logo" src="/templates/images/paypal_logo.svg"> <span style="font-size:smaller;">\u24d8</span>'}function ajaxRequest(b,e,f){b={type:"post",url:b,dataType:"json",data:e,timeout:3E4};f&&(b=$.extend(b,f));return $.ajax(b).catch(function(b){DevConsole.log(b)})} 709function ajaxComponent(b,e){typeof e=="undefined"&&(e={});var f=$.Deferred(),h="component:"+b+":"+JSON.stringify(e);Status.get(h)?f.resolve(Status.get(h)):ajaxRequest("/common/component",$.extend({uri:b},e)).then(function(b){if(b.status===200){Status.set(h,b.data);f.resolve(b.data)}else f.reject(b.msg)});return f}function logClient(b){$.post("/webservices/logClient.php",{msg:b,page:typeof VALIDATE_PAGE!="undefined"?VALIDATE_PAGE:location.href,c:typeof VALIDATE_C!="undefined"?VALIDATE_C:""})} 710function increaseUsedFeature(b){$.post("/ajax_ab_test.php",{action:"increase_used_feature",exp_id:b})}function setUsedFeature(b,e,f,h){if(readCookie("OPTIMIZELY_VERSION_"+b)&&getVisitorId(b)!=0){h||(h={});var j=function(){$.post("/ajax_ab_test.php",{action:"set_used_feature",exp_id:b,value:e,url:location.href,increase_only:typeof f!=="undefined"&&f?1:0,version:h.version?h.version:""})};h.waitVisitorCreated?$.waitUntil(function(){return getVisitorId(b)>0}).then(function(){j()}):j()}} 711function getVisitorId(b){return(b=readCookie("OPTIMIZELY_VERSION_"+b))?getVisitorIdByValue(b):0}function getVisitorIdByValue(b){var e=0,b=b.split("|");b.length>=3&&(e=b[2]);return e} 712function setUsedFeatureForBreakPoint(b,e){var f="OPTIMIZELY_VERSION_"+b;typeof count=="undefined"&&(count=1);setTimeout(function(){var h=getcookie(f);if(h){h=h.split("|");if(h.length==3&&h[2]>1){var h=window.innerWidth,j=1280;e?j=h:h>=1900?j=1920:h>=1420&&h<1900&&(j=1440);setUsedFeature(b,j);return false}count<5&&setTimeout(function(){count++;DevConsole.log("setUsedFeatureForBreakPoint:"+count);setUsedFeatureForBreakPoint(b,e)},1500)}},700)} 713function checkAndCreateABTestVistor(b){var e=$("body").hasClass("responsive")||window.is_mobile||window.is_mobile_phone?1:0,f=typeof b!=="undefined"&&b?"-2":"-1",h="checkAndCreateABTestVistor-"+f,j=$.Deferred(),l=Status.get(h);DevConsole.log("checkAndCreateABTestVistor",f,l);if(l==="done")j.resolve();else if(l==="creating")$.waitUntil(function(){Status.get(h)==="done"&&j.resolve()});else{Status.set(h,"creating");var n=0;$.each(document.cookie.split(/; */),function(){var l=this.split("=");if(l[0].substring(0, 71418)==="OPTIMIZELY_VERSION"){l=getVisitorIdByValue(l[1]);if(typeof l==="string"&&l.indexOf(f+".")===0){n++;$.post("/ajax_ab_test.php",{action:"create_visitor",is_mobile:e,url:location.href,is_manual:b?1:0},function(){Status.set(h,"done");j.resolve()});return false}}});if(!n){Status.set(h,"done");j.resolve()}}return j.promise()} 715var ABTestExperimentController={isVersion:function(b,e){return RegExp("OPTIMIZELY_VERSION_"+b+"="+e+"\\|\\d+\\|\\-?[\\d\\.]+").test(document.cookie)},hasExperiment:function(b){return RegExp("OPTIMIZELY_VERSION_"+b+"=").test(document.cookie)},getVersionName:function(b){return(b=document.cookie.match(RegExp("OPTIMIZELY_VERSION_"+b+"=(.*?)\\|\\d+\\|\\-?[\\d\\.]+")))&&b[1]?b[1]:""},getVisitorId:function(b){return(b=document.cookie.match(RegExp("OPTIMIZELY_VERSION_"+b+"=(.*?)\\|(\\d+)\\|([\\-\\d\\.]+)")))&& 716b[3]?b[3].indexOf(".")!==-1?b[3]:parseInt(b[3],10)||0:0}},OptimizelyController={isVersion:function(b){return document.cookie.indexOf("OPTIMIZELY_VERSION_"+b+"=1")!==-1},checkVersion:function(b,e){DevConsole.log("OptimizelyController.checkVersion()");var f=0,h=setInterval(function(){var j=false,l;for(l in b){b[l]=OptimizelyController.isVersion(l);b[l]&&(j=true)}if(j||f>1E3){DevConsole.log("OptimizelyController.checkVersion -> end");clearInterval(h);e&&e(b)}f++},1E3)}},Status={status:{},status_timers:{}, 717set:function(b,e,f){var h=this;typeof h.status_timers[b]!=="undefined"&&clearTimeout(h.status_timers[b]);h.status[b]=e;f&&(h.status_timers[b]=setTimeout(function(){delete h.status_timers[b];delete h.status[b]},f))},get:function(b){return this.status[b]},clear:function(b){delete this.status[b]}}; 718function ajaxErrorHandler(b,e){if(e.match(/^RESULTS\:/)){e=e.replace("RESULTS:","");return e.split("\t")}if(e!=""){createXmlHttpRequest();xmlHttp.open("POST","/ajax/ajax_error_handler.php",true);xmlHttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded;");xmlHttp.send("queryString="+escape(b)+"&responseText="+escape(e));if(window.location.href.match(/\/\/simplytoimpress\//)){var f=e.replace(/\<br.*\>/gi,"\n");alert("URL: "+b+"\n\n"+f)}else alert("Sorry, the system encountered an error processing your request. Please try again.")}} 719function subMenu(b,e){var b=b.substr(b.length-1),f=$("#main_menu_"+b).css("backgroundPosition");typeof f=="undefined"&&(f=$("#main_menu_"+b).css("background-position-x")+" "+$("#main_menu_"+b).css("background-position-y"));f=f.split(" ");f=f[0].replace("px","");if(e=="on"){$("#main_menu_"+b).css("backgroundPosition",f+"px 38px");$("#sub_menu_"+b).show()}else{$("#main_menu_"+b).css("backgroundPosition",f+"px 0px");$("#sub_menu_"+b).hide()}}function clearCookie(b){return deleteCookie(b)} 720function deleteCookie(b){var e=new Date;e.setTime(e.getTime()+-864E5);document.cookie=b+"=''; expires="+e.toGMTString()+"; path=/"}function deleteCookieWithOption(b,e){$.cookie(b,"",$.extend({},e,{expires:-1}));return!$.cookie(b)}function showHelpMenu(b){document.getElementById("img_"+b).src=CDN+"/images/personalize/"+b+"_over.gif";document.getElementById("div_"+b).style.display="block";keepHelpMenuUp=b}function hideHelpAfterDelay(b){setTimeout("hideHelpMenu('"+b+"')",100);keepHelpMenuUp=""} 721function hideHelpMenu(b){if(b!=keepHelpMenuUp){document.getElementById("div_"+b).style.display="none";document.getElementById("img_"+b).src=CDN+"/images/personalize/"+b+".gif"}}function showMenu(b){document.getElementById(b).style.display="block";keepMenuUp=true}function hideAfterDelay(b){setTimeout("hideMenu('"+b+"')",500);keepMenuUp=false}function hideMenu(b){if(!keepMenuUp)document.getElementById(b).style.display="none"} 722function switchSelectedHiddenDieCut(){$(".section_die_cuts div.die_cut_available").length>8?$(".section_die_cuts div.die_cut_available span.die_cut_active:hidden").length&&$(".section_die_cuts div.die_cut_available:has(span.die_cut_active)").insertBefore($(".section_die_cuts div.die_cut_available").eq(7)):$("#details-container .dieCutIcons div").length>8?$("#details-container .dieCutIcons div.on:hidden").length&&$("#details-container .dieCutIcons div.on").insertBefore($("#details-container .dieCutIcons div").eq(7)): 723$("#DIE_CUT_OPTIONS div.die-cut-selection").length>8&&($("#DIE_CUT_OPTIONS div.die-cut-selection img.die_cut_active:hidden").length?$("#DIE_CUT_OPTIONS div.die-cut-selection:has(img.die_cut_active)").insertBefore($("#DIE_CUT_OPTIONS div.die-cut-selection").eq(7)):$("#DIE_CUT_OPTIONS div.die-cut-selection div.die_cut_active:hidden").length&&$("#DIE_CUT_OPTIONS div.die-cut-selection:has(div.die_cut_active)").insertBefore($("#DIE_CUT_OPTIONS div.die-cut-selection").eq(7)))} 724function openwin(b,e,f){w2=e+30;h2=f+60;newwindow=window.open(b,"window1","scrollbars=no,menubar=no,height="+h2+",width="+w2+",left=150,top=0,resizable=yes,toolbar=no,location=no,status=no");e&&f&&newwindow.resizeTo(w2,h2);window.focus&&newwindow.focus()}function openwin2(b,e){newwindow=window.open(b,"window2",e);window.focus&&newwindow&&newwindow.focus()} 725function openwin3(b,e,f,h){var e=window.screenLeft!=void 0?window.screenLeft:screen.left,j=window.screenTop!=void 0?window.screenTop:screen.top;width=window.innerWidth?window.innerWidth:document.documentElement.clientWidth?document.documentElement.clientWidth:screen.width;height=window.innerHeight?window.innerHeight:document.documentElement.clientHeight?document.documentElement.clientHeight:screen.height;b=window.open(b,"windowname","scrollbars=yes, width="+f+", height="+h+", top="+(height/2-h/2+
726j)+", left="+(width/2-f/2+e));window.focus&&b.focus()}function findPos(b){var e=curtop=0;if(b.offsetParent){e=b.offsetLeft;for(curtop=b.offsetTop;b=b.offsetParent;){e=e+b.offsetLeft;curtop=curtop+b.offsetTop}}return[e,curtop]}function disableEnterKey(b){if((window.event?window.event.keyCode:b.which)==13){DevConsole.log("prevent");return false}return true} 727function getEvtPos(b,e){var f={x:0,y:0};if(!b)b=window.event;if(typeof b.pageX=="undefined"&&typeof b.changedTouches!="undefined"){b.pageX=b.changedTouches[0].pageX;b.pageY=b.changedTouches[0].pageY}else if(typeof b.pageX=="undefined"&&typeof b.changedPointers!="undefined"){b.pageX=b.changedPointers[0].pageX;b.pageY=b.changedPointers[0].pageY}if(b.pageX||b.pageY){f.x=b.pageX;f.y=b.pageY}else if(b.clientX||b.clientY){f.x=b.clientX+document.body.scrollLeft+document.documentElement.scrollLeft;f.y=b.clientY+ 728document.body.scrollTop+document.documentElement.scrollTop}if(e){f.x=f.x-e.left;f.y=f.y-e.top}return f} 729function isContained(b,e,f){return typeof f!="undefined"&&f?Math.round(Math.max(b.offset().left,f.left))>=Math.round(e.offset().left)&&Math.round(Math.min(b.offset().left+b.width(),f.right))<=Math.round(e.offset().left+e.width())&&Math.round(Math.max(b.offset().top,f.top))>=Math.round(e.offset().top)&&Math.round(Math.min(b.offset().top+b.height(),f.bottom))<=Math.round(e.offset().top+e.height()):b.offset().left>=e.offset().left&&b.offset().left+b.width()<=e.offset().left+e.width()&&b.offset().top>= 730e.offset().top&&b.offset().top+b.height()<=e.offset().top+e.height()}function isContainedByOthers(b,e,f){for(var h=0;h<e.length;h++)if(isContained(b,$(e[h]),f))return true;return false} 731function parse_url(b,e){for(var f=["source","scheme","authority","userInfo","user","pass","host","port","relative","path","directory","file","query","fragment"],h=this.php_js&&this.php_js.ini||{},j=h["phpjs.parse_url.mode"]&&h["phpjs.parse_url.mode"].local_value||"php",l={php:/^(?:([^:\/?#]+):)?(?:\/\/()(?:(?:()(?:([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?))?()(?:(()(?:(?:[^?#\/]*\/)*)()(?:[^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/, 732loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/\/?)?((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/},l=l[j].exec(b),n={},o=14;o--;)l[o]&&(n[f[o]]=l[o]);if(e)return n[e.replace("PHP_URL_","").toLowerCase()];if(j!=="php"){var q=h["phpjs.parse_url.queryKey"]&&h["phpjs.parse_url.queryKey"].local_value||"queryKey",l=/(?:^|&)([^&=]*)=?([^&]*)/g;n[q]={};n[f[12]].replace(l,function(b,e,f){e&&(n[q][e]=f)})}delete n.source; 733return n}function addToQueryString(b,e){breakdown=parse_url(b);return newUrl=breakdown.scheme+"://"+breakdown.host+breakdown.path+(breakdown.query?"?"+breakdown.query+"&":"?")+e+(breakdown.fragment?"#"+breakdown.fragment:"")}function in_array(b,e,f){var h="";if(f)for(h in e){if(e[h]===b)return true}else for(h in e)if(e[h]==b)return true;return false} 734function getObjectValue(b,e,f){typeof b==="undefined"&&(b={});for(var e=e.split("."),h=0;h<e.length;h++)if(b!==null&&typeof b==="object")if(typeof b[e[h]]==="undefined"){b=void 0;break}else b=b[e[h]];else b=void 0;return typeof b==="undefined"&&typeof f!=="undefined"?f:b} 735function objectArraySort(b,e,f){var f=typeof f!=="undefined"&&f.toUpperCase()==="DESC"?"DESC":"ASC",h=function(b,e){return typeof b[e]!=="undefined"?b[e]:typeof b.attributes[e]!=="undefined"?b.attributes[e]:""};b.sort(function(b){return function(e,n){var o=h(e,b),q=h(n,b);return o==q?0:f==="DESC"?o>q?-1:1:o>q?1:-1}}(e))} 736function toCurrency(b){var b=b.toString(),e=b.split(".")[0],b=(b.split(".")[1]||"")+"00",e=e.split("").reverse().join("").replace(/(\d{3}(?!$))/g,"$1,").split("").reverse().join("");return e+"."+b.slice(0,2)} 737function getViewportSizes(){var b,e;if(typeof window.innerWidth!="undefined"){b=window.innerWidth;e=window.innerHeight}else if(typeof document.documentElement!="undefined"&&typeof document.documentElement.clientWidth!="undefined"&&document.documentElement.clientWidth!=0){b=document.documentElement.clientWidth;e=document.documentElement.clientHeight}else{b=document.getElementsByTagName("body")[0].clientWidth;e=document.getElementsByTagName("body")[0].clientHeight}var f=window.pageXOffset!==void 0, 738h=(document.compatMode||"")==="CSS1Compat",j=f?window.pageXOffset:h?document.documentElement.scrollLeft:document.body.scrollLeft,f=f?window.pageYOffset:h?document.documentElement.scrollTop:document.body.scrollTop,h=document.documentElement.clientWidth/window.innerWidth;
738return{viewportWidth:b,viewportHeight:e,scrollX:j,scrollY:f,windowScrolled:j>0||f>0?true:false,windowZoomed:h>1?true:false,zoom:h}} 739function writeDebug(b,e,f,h){if("undefined"!=typeof LOG_JS_ERROR&&LOG_JS_ERROR){""==$("#txtDebug").html()&&$("#txtDebug").html("---Debug Information---\n\n");"undefined"!=typeof $("#txtDebug")&&null!=$("#txtDebug").html()&&$("#txtDebug").html($("#txtDebug").html()+b+"\n");if("undefined"==typeof e||e){b="undefined"!=typeof $("#txtDebug")&&null!=$("#txtDebug").html()?$("#txtDebug").html():"---Debug Information---\n\n"+b;"undefined"!=typeof f||$("#divDebugInfo input[name=page]").val();"undefined"!=typeof h|| 740$("#divDebugInfo input[name=c]").val();DevConsole.log(b)}}}function checkIsPhoneNum(b){var e=b.match(/(\d)/g);return b.match(/^[\(\)\-*#0-9\.\+\s]{8,20}$/)&&e&&e.length>=8&&e.length<=20?true:false}function formatPhoneNum(b){var e=b.replace(/\D/g,""),f="";if(e.length>=10){b=0;if(e.length>10){f="+"+e.substr(0,e.length-10)+"-";b=e.length-10}f=f+(e.substr(b,3)+"-"+e.substr(b+3,3)+"-"+e.substr(b+6))}else f=b;return f} 741function isEmail(b){return/^[^-_.*][a-z0-9_+-]*([.][a-z0-9_+-]+)*[@][a-z0-9_-]+([.][a-z0-9_-]+)*[.][a-zA-Z0-9-]{2,}$/i.test(b)}function isUSPSOnlyAddress(b,e,f){return f=="AA"||f=="AE"||f=="AP"||isPoBoxAddress(b)||isPoBoxAddress(e)}function isPoBoxAddress(b){var e=/^(.*(\s|,|\.))?(po|p\.o\.)\s+[#]{0,1}(\d+)*$/i;return/^(.*(\s|,|\.))?(po|p\.o\.)?\s{0,}box(\s|#)?(\d+).*$/i.test(b)||e.test(b)} 742function isOnlyBoxAddress(b){var e=isPoBoxAddress(b),b=/^(.*(\s|,|\.))?(po|p\.o\.)\s{0,}[#]{0,1}(\d+)*/i.test(b);return e&&!b}function isFunction(b){return Object.prototype.toString.call(b)==="[object Function]"} 743function toggleSpinning(b,e,f,h){if(isFunction(f))f();else for(var j in f)switch(j){case "parent":for(var l=0;l<f[j].length;l++)for(var n in f[j][l])$("#"+b).parent().css(n,f[j][l][n]);break;case "prev":for(l=0;l<f[j].length;l++)for(n in f[j][l])$("#"+b).prev().css(n,f[j][l][n]);break;case "next":for(l=0;l<f[j].length;l++)for(n in f[j][l])$("#"+b).next().css(n,f[j][l][n]);break;default:for(l=0;l<f[j].length;l++)for(n in f[j][l])$(j).css(n,f[j][l][n])}typeof h=="undefined"&&(h=1);if(e){h&&$("#"+b).prev().hide(); 744$("#"+b).show()}else{h&&$("#"+b).prev().show();$("#"+b).hide()}}function limitWords(b){b=$(b).val();if(typeof b!="undefined"&&b.split(/\b[\s,\.-:;]*/).length>3){alert("You've reached the maximum of 3 allowed words.");return false}return true} 745function trimEmoji(b){return b.replace(/[\u200D\uFE00-\uFE0F]/g,"").replace(/([\u0023-\u0039]\u20E3|\uDB40[\uDC62-\uDC7F])|([\u00A9\u00AE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9-\u21AA\u231A-\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA-\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u26FF\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733-\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934-\u2935\u2B05-\u2B07\u2B1B-\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299])|(\uD83C[\uDC04\uDCCF\uDD70-\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01-\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50-\uDE51\uDF00-\uDFFF])|(\uD83D[\uDC00-\uDE4F\uDE80-\uDEFF])|(\uD83E[\uDD10-\uDDFF])/g,"")} 746function trimForRealScript(b,e){return b.replace(typeof e==="undefined"||e?/[^\s!"#$%&'()*+,-.\/0123456789:;=?@ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz|~\u00b0\u2080\u00b9\u2081\u00b2\u2082\u00b3\u2083\u2074\u2084\u2075\u2085\u2076\u2086\u2077\u2087\u2078\u2088\u2079\u2089\u00e0\u00e1\u1ea3\u00e3\u1ea1\u0103\u1eaf\u1eb1\u1eb3\u1eb5\u1eb7\u00e2\u1ea5\u1ea7\u1ea9\u1eab\u1ead\u0101\u0105\u00e5\u03b1\u03ac\u1f00\u1f01\u1f02\u1f03\u1f04\u1f05\u1f06\u1f07\u1f80\u1f81\u1f82\u1f83\u1f84\u1f85\u1f86\u1f87\u1f70\u03ac\u1fb0\u1fb1\u1fb2\u1fb3\u1fb4\u1fb6\u1fb7\u0430\u01fb\u01ce\u00e4\u0431\u042a\u042c\u0411\u00e7\u0107\u010d\u0109\u010b\u010f\u00f0\u0111\u018c\u0221\u0256\u0257\u1d6d\u1d81\u1d91\u00e9\u00e8\u1ebb\u1ebd\u1eb9\u00ea\u1ebf\u1ec1\u1ec3\u1ec5\u1ec7\u00eb\u0113\u0119\u011b\u0115\u0117\u0192\u011d\u011f\u0121\u0123\u0125\u0127\u00ed\u00ec\u1ec9\u0129\u1ecb\u00ee\u00ef\u012b\u012d\u012f\u0131\u03b9\u03af\u03ca\u0390\u1f30\u1f31\u1f32\u1f33\u1f34\u1f35\u1f36\u1f37\u1f76\u03af\u1fd0\u1fd1\u1fd2\u0390\u1fd6\u1fd7\u0456\u0457\u01d0\u0135\u0458\u0408\u0137\u0138\u043a\u03ba\u0136\u0142\u013e\u013a\u013c\u0140\u00f1\u0144\u0148\u0146\u0149\u014b\u00f3\u00f2\u1ecf\u00f5\u1ecd\u00f4\u1ed1\u1ed3\u1ed5\u1ed7\u1ed9\u01a1\u1edb\u1edd\u1edf\u1ee1\u1ee3\u00f8\u014d\u0151\u014f\u03bf\u1f40\u1f41\u1f42\u1f43\u1f44\u1f45\u1f78\u03cc\u043e\u00f6\u0155\u0159\u0157\u015b\u
7460161\u015f\u0219\u015d\u0165\u0163\u0442\u03c4\u021b\u00fa\u00f9\u1ee7\u0169\u1ee5\u01b0\u1ee9\u1eeb\u1eed\u1eef\u1ef1\u00fb\u016b\u016f\u0171\u016d\u0173\u01d4\u01d6\u01d8\u01da\u01dc\u00fc\u0175\u03c9\u03ce\u03c7\u0445\u00fd\u1ef3\u1ef7\u1ef9\u1ef5\u00ff\u0177\u0423\u017a\u017e\u017c\u00c1\u00c0\u1ea2\u00c3\u1ea0\u0102\u1eae\u1eb0\u1eb2\u1eb4\u1eb6\u00c2\u1ea4\u1ea6\u1ea8\u1eaa\u1eac\u00c5\u0100\u0104\u0391\u0386\u1f08\u1f09\u1f0a\u1f0b\u1f0c\u1f0d\u1f0e\u1f0f\u1f88\u1f89\u1f8a\u1f8b\u1f8c\u1f8d\u1f8e\u1f8f\u1fb8\u1fb9\u1fba\u0386\u1fbc\u0410\u01fa\u01cd\u00c4\u0392\u0412\u00c7\u0106\u010c\u0108\u010a\u0421\u010e\u00d0\u0110\u0189\u018a\u1d05\u00c9\u00c8\u1eba\u1ebc\u1eb8\u00ca\u1ebe\u1ec0\u1ec2\u1ec4\u1ec6\u00cb\u0112\u0118\u011a\u0114\u0116\u0395\u0388\u1f18\u1f19\u1f1a\u1f1b\u1f1c\u1f1d\u0388\u1fc8\u0415\u0401\u011e\u0120\u0122\u011c\u0397\u0389\u0126\u041d\u0124\u00cd\u00cc\u1ec8\u0128\u1eca\u00ce\u00cf\u012a\u012c\u012e\u0130\u0399\u038a\u03aa\u1f38\u1f39\u1f3b\u1f3c\u1f3d\u1f3e\u1f3f\u1fd8\u1fd9\u1fda\u038a\u0418\u0406\u0407\u0134\u041a\u039a\u0139\u0141\u013b\u013d\u013f\u041c\u039c\u043c\u0143\u00d1\u0147\u0145\u014a\u039d\u00d3\u00d2\u1ece\u00d5\u1ecc\u00d4\u1ed0\u1ed2\u1ed4\u1ed6\u1ed8\u01a0\u1eda\u1edc\u1ede\u1ee0\u1ee2\u00d8\u014c\u0150\u014e\u039f\u038c\u1f48\u1f49\u1f4a\u1f4b\u1f4c\u1f4d\u1ff8\u038c\u041e\u0420\u03a1\u0158\u0154\u0156\u015e\u015c\u0218\u0160\u015a\u0164\u0162\u0166\u021a\u0422\u03a4\u00da\u00d9\u1ee6\u0168\u1ee4\u01af\u1ee8\u1eea\u1eec\u1eee\u1ef0\u00db\u016a\u016e\u0170\u016c\u0172\u01d3\u01d5\u01d7\u01d9\u01db\u0174\u03a7\u00dd\u1ef2\u1ef6\u1ef8\u1ef4\u0178\u1fe8\u1fe9\u1fea\u038e\u03a5\u03ab\u0176\u01
74679\u017d\u017b\u0396\u0132\u2019\u2018\u201c\u201d\u2014_\u2013]/g: 747/[^\s!"#$%&'()*+,-.\/0123456789:;=?@ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz|~]/g,"")} 748function replaceAccentedCharacters(b){var e={"0":["\u00b0","\u2080"],1:["\u00b9","\u2081"],2:["\u00b2","\u2082"],3:["\u00b3","\u2083"],4:["\u2074","\u2084"],5:["\u2075","\u2085"],6:["\u2076","\u2086"],7:["\u2077","\u2087"],8:["\u2078","\u2088"],9:["\u2079","\u2089"],a:["\u00e0","\u00e1","\u1ea3","\u00e3","\u1ea1","\u0103","\u1eaf","\u1eb1","\u1eb3","\u1eb5","\u1eb7","\u00e2","\u1ea5","\u1ea7","\u1ea9","\u1eab","\u1ead","\u0101","\u0105","\u00e5","\u03b1","\u03ac","\u1f00","\u1f01","\u1f02","\u1f03", 749"\u1f04","\u1f05","\u1f06","\u1f07","\u1f80","\u1f81","\u1f82","\u1f83","\u1f84","\u1f85","\u1f86","\u1f87","\u1f70","\u03ac","\u1fb0","\u1fb1","\u1fb2","\u1fb3","\u1fb4","\u1fb6","\u1fb7","\u0430","\u01fb","\u01ce","\u00e4"],b:["\u0431","\u042a","\u042c","\u0411"],c:["\u00e7","\u0107","\u010d","\u0109","\u010b"],d:["\u010f","\u00f0","\u0111","\u018c","\u0221","\u0256","\u0257","\u1d6d","\u1d81","\u1d91"],e:["\u00e9","\u00e8","\u1ebb","\u1ebd","\u1eb9","\u00ea","\u1ebf","\u1ec1","\u1ec3","\u1ec5", 750"\u1ec7","\u00eb","\u0113","\u0119","\u011b","\u0115","\u0117"],f:["\u0192"],g:["\u011d","\u011f","\u0121","\u0123"],h:["\u0125","\u0127"],i:["\u00ed","\u00ec","\u1ec9","\u0129","\u1ecb","\u00ee","\u00ef","\u012b","\u012d","\u012f","\u0131","\u03b9","\u03af","\u03ca","\u0390","\u1f30","\u1f31","\u1f32","\u1f33","\u1f34","\u1f35","\u1f36","\u1f37","\u1f76","\u03af","\u1fd0","\u1fd1","\u1fd2","\u0390","\u1fd6","\u1fd7","\u0456","\u0457","\u01d0"],j:["\u0135","\u0458","\u0408"],k:["\u0137","\u0138", 751"\u043a","\u03ba","\u0136"],l:["\u0142","\u013e","\u013a","\u013c","\u0140"],n:["\u00f1","\u0144","\u0148","\u0146","\u0149","\u014b"],o:["\u00f3","\u00f2","\u1ecf","\u00f5","\u1ecd","\u00f4","\u1ed1","\u1ed3","\u1ed5","\u1ed7","\u1ed9","\u01a1","\u1edb","\u1edd","\u1edf","\u1ee1","\u1ee3","\u00f8","\u014d","\u0151","\u014f","\u03bf","\u1f40","\u1f41","\u1f42","\u1f43","\u1f44","\u1f45","\u1f78","\u03cc","\u043e","\u00f6"],r:["\u0155","\u0159","\u0157"],s:["\u015b","\u0161","\u015f","\u0219","\u015d"], 752t:["\u0165","\u0163","\u0442","\u03c4","\u021b"],u:["\u00fa","\u00f9","\u1ee7","\u0169","\u1ee5","\u01b0","\u1ee9","\u1eeb","\u1eed","\u1eef","\u1ef1","\u00fb","\u016b","\u016f","\u0171","\u016d","\u0173","\u01d4","\u01d6","\u01d8","\u01da","\u01dc","\u00fc"],w:["\u0175","\u03c9","\u03ce"],x:["\u03c7","\u0445"],y:["\u00fd","\u1ef3","\u1ef7","\u1ef9","\u1ef5","\u00ff","\u0177","\u0423"],z:["\u017a","\u017e","\u017c"],A:["\u00c1","\u00c0","\u1ea2","\u00c3","\u1ea0","\u0102","\u1eae","\u1eb0","\u1eb2", 753"\u1eb4","\u1eb6","\u00c2","\u1ea4","\u1ea6","\u1ea8","\u1eaa","\u1eac","\u00c5","\u0100","\u0104","\u0391","\u0386","\u1f08","\u1f09","\u1f0a","\u1f0b","\u1f0c","\u1f0d","\u1f0e","\u1f0f","\u1f88","\u1f89","\u1f8a","\u1f8b","\u1f8c","\u1f8d","\u1f8e","\u1f8f","\u1fb8","\u1fb9","\u1fba","\u0386","\u1fbc","\u0410","\u01fa","\u01cd","\u00c4"],B:["\u0392","\u0412"],C:["\u00c7","\u0106","\u010c","\u0108","\u010a","\u0421"],D:["\u010e","\u00d0","\u0110","\u0189","\u018a","\u1d05"],E:["\u00c9","\u00c8", 754"\u1eba","\u1ebc","\u1eb8","\u00ca","\u1ebe","\u1ec0","\u1ec2","\u1ec4","\u1ec6","\u00cb","\u0112","\u0118","\u011a","\u0114","\u0116","\u0395","\u0388","\u1f18","\u1f19","\u1f1a","\u1f1b","\u1f1c","\u1f1d","\u0388","\u1fc8","\u0415","\u0401"],G:["\u011e","\u0120","\u0122","\u011c"],H:["\u0397","\u0389","\u0126","\u041d","\u0124"],I:["\u00cd","\u00cc","\u1ec8","\u0128","\u1eca","\u00ce","\u00cf","\u012a","\u012c","\u012e","\u0130","\u0399","\u038a","\u03aa","\u1f38","\u1f39","\u1f3b","\u1f3c","\u1f3d", 755"\u1f3e","\u1f3f","\u1fd8","\u1fd9","\u1fda","\u038a","\u0418","\u0406","\u0407"],J:["\u0134"],K:["\u041a","\u039a"],L:["\u0139","\u0141","\u013b","\u013d","\u013f"],M:["\u041c","\u039c","\u043c"],N:["\u0143","\u00d1","\u0147","\u0145","\u014a","\u039d"],O:["\u00d3","\u00d2","\u1ece","\u00d5","\u1ecc","\u00d4","\u1ed0","\u1ed2","\u1ed4","\u1ed6","\u1ed8","\u01a0","\u1eda","\u1edc","\u1ede","\u1ee0","\u1ee2","\u00d8","\u014c","\u0150","\u014e","\u039f","\u038c","\u1f48","\u1f49","\u1f4a","\u1f4b", 756"\u1f4c","\u1f4d","\u1ff8","\u038c","\u041e"],P:["\u0420","\u03a1"],R:["\u0158","\u0154","\u0156"],S:["\u015e","\u015c","\u0218","\u0160","\u015a"],T:["\u0164","\u0162","\u0166","\u021a","\u0422","\u03a4"],U:["\u00da","\u00d9","\u1ee6","\u0168","\u1ee4","\u01af","\u1ee8","\u1eea","\u1eec","\u1eee","\u1ef0","\u00db","\u016a","\u016e","\u0170","\u016c","\u0172","\u01d3","\u01d5","\u01d7","\u01d9","\u01db"],W:["\u0174"],X:["\u03a7"],Y:["\u00dd","\u1ef2","\u1ef6","\u1ef8","\u1ef4","\u0178","\u1fe8","\u1fe9", 757"\u1fea","\u038e","\u03a5","\u03ab","\u0176"],Z:["\u0179","\u017d","\u017b","\u0396"],IJ:["\u0132"],"'":["\u2019","\u2018"],'"':["\u201c","\u201d"],"-":["_","\u2013","\u2014"],"":["\ufeff"]," ":["\u00a0","\u2000","\u2001","\u2002","\u2003","\u2004","\u2005","\u2006","\u2007","\u2008","\u2009","\u200a","\u202f","\u205f","\u3000"]},f;for(f in e)b=b.replace(RegExp("["+e[f].join("")+"]","g"),f);return b}
758function invalidForRealScript(b,e){b=b.replaceAll("\n","\n");return b.match(typeof e==="undefined"||e?/[^\s!"#$%&'()*+,-.\/0123456789:;=?@ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz|~\u00b0\u2080\u00b9\u2081\u00b2\u2082\u00b3\u2083\u2074\u2084\u2075\u2085\u2076\u2086\u2077\u2087\u2078\u2088\u2079\u2089\u00e0\u00e1\u1ea3\u00e3\u1ea1\u0103\u1eaf\u1eb1\u1eb3\u1eb5\u1eb7\u00e2\u1ea5\u1ea7\u1ea9\u1eab\u1ead\u0101\u0105\u00e5\u03b1\u03ac\u1f00\u1f01\u1f02\u1f03\u1f04\u1f05\u1f06\u1f07\u1f80\u1f81\u1f82\u1f83\u1f84\u1f85\u1f86\u1f87\u1f70\u03ac\u1fb0\u1fb1\u1fb2\u1fb3\u1fb4\u1fb6\u1fb7\u0430\u01fb\u01ce\u00e4\u0431\u042a\u042c\u0411\u00e7\u0107\u010d\u0109\u010b\u010f\u00f0\u0111\u018c\u0221\u0256\u0257\u1d6d\u1d81\u1d91\u00e9\u00e8\u1ebb\u1ebd\u1eb9\u00ea\u1ebf\u1ec1\u1ec3\u1ec5\u1ec7\u00eb\u0113\u0119\u011b\u0115\u0117\u0192\u011d\u011f\u0121\u0123\u0125\u0127\u00ed\u00ec\u1ec9\u0129\u1ecb\u00ee\u00ef\u012b\u012d\u012f\u0131\u03b9\u03af\u03ca\u0390\u1f30\u1f31\u1f32\u1f33\u1f34\u1f35\u1f36\u1f37\u1f76\u03af\u1fd0\u1fd1\u1fd2\u0390\u1fd6\u1fd7\u0456\u0457\u01d0\u0135\u0458\u0408\u0137\u0138\u043a\u03ba\u0136\u0142\u013e\u013a\u013c\u0140\u00f1\u0144\u0148\u0146\u0149\u014b\u00f3\u00f2\u1ecf\u00f5\u1ecd\u00f4\u1ed1\u1ed3\u1ed5\u1ed7\u1ed9\u01a1\u1edb\u1edd\u1edf\u1ee1\u1ee3\u00f8\u014d\u0151\u014f\u03bf\u1f40\u1f41\u1f42\u1f43\u1f44\u1f45\u1f78\u03cc\u043e\u00f6\u0155\u0159\u0157\u015b\u0161\u015f\u0219\u015d\u0165\u0163\u0442\u03c4\u021b\u00fa\u00f9\u1ee7\u0169\u1ee5\u01b0\u1ee9\u1eeb\u1eed\u1eef\u1ef1\u00fb\u016b\u016f\u0171\u016d\u0173\u01d4\u01d6\u01d8\u01da\u01dc\u00fc\u0175\u03c9\u03ce\u03c7\u0445\u00fd\u1ef3\u1ef7\u1ef9\u1ef5\u00ff\u0177\u0423\u017a\u017e\u017c\u00c1\u00c0\u1ea2\u00c3\u1ea0\u0102\u1eae\u1eb0\u1eb2\u1eb4\u1eb6\u00c2\u1ea4\u1ea6\u1ea8\u1eaa\u1eac\u00c5\u0100\u0104\u0391\u0386\u1f08\u1f09\u1f0a\u1f0b\u1f0c\u1f0d\u1f0e\u1f0f\u1f88\u1f89\u1f8a\u1f8b\u1f8c\u1f8d\u1f8e\u1f8f\u1fb8\u1fb9\u1fba\u0386\u1fbc\u0410\u01fa\u01cd\u00c4\u0392\u0412\u00c7\u0106\u010c\u0108\u010a\u0421\u010e\u00d0\u0110\u0189\u018a\u1d05\u00c9\u00c8\u1eba\u1ebc\u1eb8\u00ca\u1ebe\u1ec0\u1ec2\u1ec4\u1ec6\u00cb\u0112\u0118\u011a\u0114\u0116\u0395\u0388\u1f18\u1f19\u1f1a\u1f1b\u1f1c\u1f1d\u0388\u1fc8\u0415\u0401\u011e\u0120\u0122\u011c\u0397\u0389\u0126\u041d\u0124\u00cd\u00cc\u1ec8\u0128\u1eca\u00ce\u00cf\u012a\u012c\u012e\u0130\u0399\u038a\u03aa\u1f38\u1f39\u1f3b\u1f3c\u1f3d\u1f3e\u1f3f\u1fd8\u1fd9\u1fda\u038a\u0418\u0406\u0407\u0134\u041a\u039a\u0139\u0141\u013b\u013d\u013f\u041c\u039c\u043c\u0143\u00d1\u0147\u0145\u014a\u039d\u00d3\u00d2\u1ece\u00d5\u1ecc\u00d4\u1ed0\u1ed2\u1ed4\u1ed6\u1ed8\u01a0\u1eda\u1edc\u1ede\u1ee0\u1ee2\u00d8\u014c\u0150\u014e\u039f\u038c\u1f48\u1f49\u1f4a\u1f4b\u1f4c\u1f4d\u1ff8\u038c\u041e\u0420\u03a1\u0158\u0154\u0156\u015e\u015c\u0218\u0160\u015a\u0164\u0162\u0166\u021a\u0422\u03a4\u00da\u00d9\u1ee6\u0168\u1ee4\u01af\u1ee8\u1eea\u1eec\u1eee\u1ef0\u00db\u016a\u016e\u0170\u016c\u0172\u01d3\u01d5\u01d7\u01d9\u01db\u0174\u03a7\u00dd\u1ef2\u1ef6\u1ef8\u1ef4\u0178\u1fe8\u1fe9\u1fea\u038e\u03a5\u03ab\u0176\u01
75879\u017d\u017b\u0396\u0132\u2019\u2018\u201c\u201d\u2014_\u2013]/g: 759/[^\s!"#$%&'()*+,-.\/0123456789:;=?@ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz|~]/g)} 760function getProductID(){var b=window.navigator.userAgent,e=b.match(/(Android)/),f=b.match(/(iPad|iPhone|iPod)/),h="",j=window.screen.height;if(e){var e=b.match(/(SM-N920C|SM-N9200|SM-N9208|SM-N9209|SM-N920F|SM-N920A|SM-N920T|SM-N920T1|SM-N920P|SM-N920R4|SM-N920V|SM-N920W8)/i),f=b.match(/(SM-N9100|SM-N9109W|SM-N9106W|SM-N9108V|SM-N910H|SM-N910C|SM-N910U|SM-N910F|SM-N910A|SM-N910P|SM-N910R4|SM-N910T|SM-N910T1|SM-N910V|SM-N910W8)/i),j=b.match(/(G9300|G9308|G930T|G930A|G930V|G930R4|G930P|G930F|G930FD|G930S\/K\/L|G930W8|G9350|G935T|G935A|G935V|G935R4|G935P|G935F|G935FD|G935S\/K\/L|G935W8)/i), 761l=b.match(/(SM-G9200|SM-G9208|SM-G9209|SM-G920A|SM-G920F|SM-G920FQ|SM-G920I|SM-G920K|SM-G920L|SM-G920P|SM-G920R4|SM-G920S|SM-G920T|SM-G920V|SM-G9250|SM-G925A|SM-G925F|SM-G925FQ|SM-G925I|SM-G925K|SM-G925L|SM-G925P|SM-G925R4|SM-G925S|SM-G925T|SM-G925V|SM-G925W8|SC-04G)/i),n=b.match(/(SM-G9006V|SM-G9008V|SM-G9009D|SM-G900I|SM-G900J|SM-G900D|SM-G900H|SM-G900F|SM-G900M|SM-G900S|SM-G900K|SM-G900L|SM-G900A|SM-G900T|SM-G900V|SM-G900P|SM-G900R4|SM-G900W8)/i),o=b.match(/(GT-I9500|GT-I9505|GT-I9502|GT-I9508|GT-I959|SC-04E|SCH-I959|SGH-R970|SGH-I337|SGH-I337M|SGH-M919|SGH-M919V|SPH-L720|GT-I9295|SHV-E300S|SHV-E300K|SHV-E300L|SHV-E330S|SHV-E330K|SHV-E330L|SM-C101)/i), 762b=b.match(/(GT-I9300I|GT-I9300|GT-I9308|GT-I939|GT-I9305|GT-I9305T|SGH-I535|SGH-I747|SGH-T999|SPH-L710)/i);e?h=518:f?h=255:j?h=519:l?h=252:n?h=156:o?h=6:b&&(h=3)}else f&&f[1]!=="iPad"&&(f[1]==="iPhone"?j==480||j==Math.round(435)?h=1:j!=568&&(j==667||Math.round(604.46875)):f[1]==="iPod"&&(j==480?h=4:j==568&&(h=5)));return h}function get_mobile_system(){var b=window.navigator.userAgent,e=b.match(/(Android)/),b=b.match(/(iPad|iPhone|iPod)/);return e?"android":b?"ios":false} 763function href(b){DevConsole.log("Redirect requested to: ",b);if(b.length&&!b.match(/^javascript:/i)){b=webUrl(b);if(!(arguments.length>1&&arguments[1])&&typeof SaveProjectPrompt!="undefined")SaveProjectPrompt.confirmBeforeUnload=false;$(".modal-overlay:visible").length?$.clearModalHistoryLog().then(function(){window.location.href=b.split("#")[0]}):window.location.href=b.split("#")[0]}} 764function isValidURLorPath(b){return(b=b.toLowerCase())&&b.indexOf("javascript:")===-1&&b.indexOf("tel:")===-1?true:false}function showBtnSpinner(b,e,f){$("#spinner4btn").length?$("#spinner4btn").show():$(".button_background_div").length&&f?$(".button_background_div").show():f?$('<div class="button_background_div" '+e+"></div>").insertAfter(b):$('<img id="spinner4btn" src="'+CCDN+'/images/ajax-loader2.gif" '+e+">").insertAfter(b)} 765function hideBtnSpinner(){$(".button_background_div").hide();$(".button_background_div").prev().show();$("#spinner4btn").hide();$("#spinner4btn").prev().show()} 766function showLoading(b,e,f){typeof e=="undefined"&&(e="absolute");e=e=="absolute"||e=="fixed"?"position: "+e+"; top:50%;left:50%;width:50px;height:50px;transform:translate(-50%, -50%); z-index: 99;display:none;":"";typeof b==="string"&&(b!=="body"&&/^[0-9a-z_-]+$/i.test(b))&&(b="#"+b);if(f){$(b).find(".dialog_spinner_overlay").length||$(b).append('<div class="dialog_spinner_overlay" style="position:absolute;z-index:99;width:100%;height:100%;top:0;left:0;background: #000;opacity: 0.5;"></div>');$(b).find(".dialog_spinner_overlay").show()}$(b).find("img.dialog_spinner").length|| 767$(b).append('<img style="'+e+'" class="dialog_spinner" src="//cdn.simplytoimpress.com/images/loadingwheel'+(f?"-white":"")+'.svg" />');$(b).find("img.dialog_spinner").show()}function hideLoading(b){typeof b==="string"&&/^[0-9a-z_-]+$/i.test(b)&&(b="#"+b);$(b).find("img.dialog_spinner, .dialog_spinner_overlay").hide()} 768function scrollToBottom(b){(!(typeof b=="undefined"?0:b)||isIOSFBAPP())&&$("html, body").animate({scrollTop:$(document).height()},100,"swing",function(){if(navigator.userAgent.match(/iPhone|iPad|iPod/i)&&navigator.userAgent.indexOf("Safari")!=-1&&navigator.userAgent.indexOf("Chrome")==-1){$("body").css("height","+=1");setTimeout(function(){$("body").css("height","")}
768,30)}})} 769function rawurlencode(b){b=(b+"").toString();return encodeURIComponent(b).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")}function serializeFormData(b){var e=[],f;for(f in b)b.hasOwnProperty(f)&&e.push(f+"="+encodeURIComponent(b[f]));return e.join("&")} 770function loadGoogleTrustedStore(){typeof DevConsole!="undefined"&&DevConsole.log("loadGoogleTrustedStore");if(window.delayJs)delayJs.push("https://www.googlecommerce.com/trustedstores/api/js");else{var b=document.createElement("script");b.type="text/javascript";b.async=true;b.src="https://www.googlecommerce.com/trustedstores/api/js";var e=document.getElementsByTagName("script")[0];e.parentNode.insertBefore(b,e)}} 771function loadPaypalJs(){$("#checkout-js").remove();$("#paypal-js").remove();var b,e=document.getElementsByTagName("script")[0];if(!document.getElementById("paypal-js")){b=document.createElement("script");b.id="paypal-js";b.async=true;b.src="https://www.paypalobjects.com/js/external/paypal.js";e.parentNode.insertBefore(b,e)}} 772function componentSliderVideoShowFallback(b){var e=b.closest?b.closest(".component-slider-media"):null,e=e&&e.querySelector?e.querySelector(".component-slider-video-fallback"):null;if(!e&&b.nextElementSibling&&b.nextElementSibling.tagName==="IMG")e=b.nextElementSibling;b.style.display="none";if(e)e.style.display=""} 773function initComponentSliderVideos(b){(b?$(b):$(document)).find("video.component-slider-video").each(function(){var b=this;if(!b.dataset.sliderVideoInit){b.dataset.sliderVideoInit="1";b.addEventListener("error",function(){componentSliderVideoShowFallback(b)});b.error&&componentSliderVideoShowFallback(b)}})} 774function deferloadImg(){var b=location.href.indexOf("abortdefer")!=-1,e=$("[data-deferload-src]"),f=0;if(e.length){var h=[[],[],[]],j;e.each(function(){j=$(this).data("deferload-priority");typeof j=="undefined"?h[1].push(this):j.toLowerCase()=="high"?h[0].push(this):h[2].push(this)});for(var l,n,o=0;o<h.length;o++){l=h[o];for(var q=0;q<l.length;q++){e=$(l[q]);if(b){f++;e.attr("src",deferIcon)}else{n=e.data("deferload-src");if(n.length){f++;e.attr("src",n).on("error",function(){$.post("/webservices/saveClientLog.php", 775{log:"[Load image error]: "+$(this).attr("src")+" in the page "+$(this).data("page-url")})});e.data("deferload-src","")}}}}}if(e=$(".deferred").length){f=f+e;b&&$(".deferred").css("background-image","url("+deferIcon+")");$(".deferred").removeClass("deferred")}initComponentSliderVideos();e=$("[data-deferload-video-src]");e.length&&!b&&e.each(function(){var b=$(this),e=b.data("deferload-video-src");if(e&&String(e).length){f++;b.attr("src",e);b.data("deferload-video-src","");typeof b[0].load==="function"&& 776b[0].load();(e=b[0].play&&b[0].play())&&typeof e.catch==="function"&&e.catch(function(){});b[0].error&&componentSliderVideoShowFallback(b[0])}});initComponentSliderVideos();return f>0}if("undefined"==typeof window.console){window.console={};var funs="assert clear count debug dir dirxml error exception group groupCollapsed groupEnd info log profile profileEnd table time timeEnd timeStamp trace warn".split(" "),i;for(i in funs)window.console[funs[i]]=function(){}} 777function openSide(){if($.cookie("current_tab_fb")&&isIOSFBAPP()){var b=$.cookie("current_tab_fb").split("|"),e=b[0],f=b[1];$("#UCD_WS_TOP A").each(function(){$(this).attr("template_id")==e&&$(this).attr("panel_id")==f&&$(this).trigger("click")})}} 778function openFirstUCDPhotoSlot(){openSide();if(typeof designer!="undefined"&&designer&&typeof designer._model!="undefined"&&typeof designer._model.attributes!="undefined"&&typeof designer._model.attributes.baseView!="undefined"){if($(".PHOTO_DRAGGER").length){var b=$(".PHOTO_DRAGGER").first().attr("id").match(/[\d]+/)[0];designer._model.attributes.baseView.showUploaderDialog(b);if(typeof isFaceBookApp!="undefined"&&isFaceBookApp==1&&isIOSFBAPP()&&!$.cookie("fb_art_print")){$("#UCD_UPLOADER_DIY li.FACEBOOK").trigger("click"); 779$.cookie("fb_art_print",1)}}}else $("#AddPhotoIcon").length&&$("#AddPhotoIcon").trigger("click")} 780function checkFileTypeForRemoteFile(b,e){for(var f=[],h=0;
780h<IMAGE_FORMATS_SUPPORTED.length;h++)e=="dropbox"?f.push("thumb=.+\\.("+IMAGE_FORMATS_SUPPORTED[h]+")&"):e=="instagram"||e=="facebook"?f.push(".+\\.("+IMAGE_FORMATS_SUPPORTED[h]+")\\?"):f.push(".+\\.("+IMAGE_FORMATS_SUPPORTED[h]+")$");if(f=RegExp(f.join("|"),"ig").exec(b)){if(typeof f[1]!=="undefined")return f[1];if(typeof f[2]!=="undefined")return f[2];if(typeof f[3]!=="undefined")return f[3];if(typeof f[4]!=="undefined")return f[4];if(typeof f[5]!== 781"undefined")return f[5];if(typeof f[6]!=="undefined")return f[6]}return false}function checkFileType(b,e){var f=[],f=typeof b=="string"?[b]:b;e||(e=["png","jpg","jpeg","gif"]);for(var h=e.join(", "),j=e.length===1&&e[0]==="webm"?"WebM video":"image",l=true,n=0;n<f.length;n++)if(f[n]&&e.indexOf(getExtensionName(f[n]).toLowerCase())==-1){alert("Unsupported "+j+" type: "+f[n]+", "+h+" file required.");l=false}return l} 782function checkFileTypes(b,e){var f=[],f=typeof b==="string"?[b]:b,h=new Set;e?typeof e==="string"?h.add(e.toUpperCase()):e.forEach(function(b){h.add(b.toUpperCase())}):h.add("PNG");var j="";h.forEach(function(b){j=j+(b.toUpperCase()+" ")});var l=[];f.forEach(function(b){if(b){b=getExtensionName(b);l.push(b.toUpperCase())}});for(var f=true,n=0;n<l.length;n++)if(!h.has(l[n])){alert("Unsupported image type: "+l[n]+", allowed file type: "+j);f=false}return f} 783function getExtensionName(b){return b.split(".").pop()}function formatFileSize(b){if(b>0){var e=Math.floor(Math.log(b)/Math.log(1024));return(b/Math.pow(1024,e)).toFixed(1)+" "+["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][e]}return b} 784function loadJS(b,e){return $.Deferred(function(){var f=this,h=document.createElement("script");h.src=b;h.onreadystatechange=h.onload=function(){var b=h.readyState;if(!b||/loaded|complete/.test(b)){if(e&&!e.done){e.done=true;e()}f.resolve()}};document.body.appendChild(h)})}function loadAsInlineJS(b,e){$.get(b,{},function(b){var h=document.createElement("script");h.appendChild(document.createTextNode(b));document.body.appendChild(h);e&&e()})}var JSON;JSON||(JSON={}); 785(function(){function b(b){return b<10?"0"+b:b}function e(b){j.lastIndex=0;return j.test(b)?'"'+b.replace(j,function(b){var e=o[b];return typeof e==="string"?e:"\\u"+("0000"+b.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+b+'"'}function f(b,h){var j,o,A,Q,R=l,O,B=h[b];B&&(typeof B==="object"&&typeof B.toJSON==="function")&&(B=B.toJSON(b));typeof q==="function"&&(B=q.call(h,b,B));switch(typeof B){case "string":return e(B);case "number":return isFinite(B)?String(B):"null";case "boolean":case "null":return String(B); 786case "object":if(!B)return"null";l=l+n;O=[];if(Object.prototype.toString.apply(B)==="[object Array]"){Q=B.length;for(j=0;j<Q;j=j+1)O[j]=f(j,B)||"null";A=O.length===0?"[]":l?"[\n"+l+O.join(",\n"+l)+"\n"+R+"]":"["+O.join(",")+"]";l=R;return A}if(q&&typeof q==="object"){Q=q.length;for(j=0;j<Q;j=j+1)if(typeof q[j]==="string"){o=q[j];(A=f(o,B))&&O.push(e(o)+(l?": ":":")+A)}}else for(o in B)if(Object.prototype.hasOwnProperty.call(B,o))(A=f(o,B))&&O.push(e(o)+(l?": ":":")+A);A=O.length===0?"{}":l?"{\n"+ 787l+O.join(",\n"+l)+"\n"+R+"}":"{"+O.join(",")+"}";l=R;return A}}if(typeof Date.prototype.toJSON!=="function"){Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+b(this.getUTCMonth()+1)+"-"+b(this.getUTCDate())+"T"+b(this.getUTCHours())+":"+b(this.getUTCMinutes())+":"+b(this.getUTCSeconds())+"Z":null};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()}}var h=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g, 788j=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,l,n,o={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},q;if(typeof JSON.stringify!=="function")JSON.stringify=function(b,e,h){var j;n=l="";if(typeof h==="number")for(j=0;j<h;j=j+1)n=n+" ";else typeof h==="string"&&(n=h);if((q=e)&&typeof e!=="function"&&(typeof e!=="object"||typeof e.length!=="number"))throw Error("JSON.stringify");return f("",{"":b})}; 789if(typeof JSON.parse!=="function")JSON.parse=function(b,e){function f(b,h){var j,l,n=b[h];if(n&&typeof n==="object")for(j in n)if(Object.prototype.hasOwnProperty.call(n,j)){l=f(n,j);l!==void 0?n[j]=l:delete n[j]}return e.call(b,h,n)}var j,b=String(b);h.lastIndex=0;h.test(b)&&(b=b.replace(h,function(b){return"\\u"+("0000"+b.charCodeAt(0).toString(16)).slice(-4)}));if(/^[\],:{}\s]*$/.test(b.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, 790"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){j=eval("("+b+")");return typeof e==="function"?f({"":j},""):j}throw new SyntaxError("JSON.parse");}})(); 791"undefined"!=typeof $&&$(function(){$(".navmenu").on("shown.bs.offcanvas",function(){$("html").css("position","fixed")});$(".navmenu").on("hidden.bs.offcanvas",function(){$("html").css("position","")});$("#social_networking a").click(function(){var b=$(this).attr("title"),e=$(this).attr("name");trackEvent("Social Links - "+e,"Click",b+" Icon")});$("body").on("input propertychange",'input[block-emoji="1"],textarea[block-emoji="1"]',function(){var b=$(this).val(),e=trimEmoji(b);e!=b&&$(this).val(e)})}); 792"undefined"==typeof Number.parseInt&&(Number.parseInt=parseInt);"undefined"==typeof Number.parseFloat&&(Number.parseFloat=parseFloat);function getMaxDialogIndex(b){typeof b==="undefined"&&(b=5001);
792var e=$(".ui-front:visible, .modal-overlay:visible"),f=0;if(e.length){e=e.map(function(){return parseInt($(this).css("z-index"))}).get();f=Math.max.apply(null,e)}return Math.max(f,b)} 793function showAlert(b,e,f,h,j,l,n,o){if(arguments.length===2&&typeof arguments[1]==="object")var q=arguments[1],e=getObjectValue(q,"title","Alert"),f=getObjectValue(q,"zIndex",0),h=getObjectValue(q,"closeCallback",""),j=getObjectValue(q,"notScrollTop",true),l=getObjectValue(q,"width",450),n=getObjectValue(q,"buttons"),o=getObjectValue(q,"defaultDom","");q=getMaxDialogIndex();f||(f=q+1);o||(o="showAlert");if($("body").hasClass("responsive")&&typeof $.openMobileModal=="function"){q=typeof j==="undefined"? 794true:j;n=typeof n=="undefined"?{OK:function(){}}:n;$.openMobileModal({title:translate(typeof e!=="undefined"?e:translate("Alert")),body:b,size:"small",notScrollTop:q,buttons:n,cssJson:{zIndex:f},callbacks:{close:function(){typeof h==="function"&&h()}}})}else{!$("#"+o).length>0&&$("body").append('<div id="'+o+'"></div>');if(typeof n=="undefined"){n={};n[translate("OK")]=function(){$(this).dialog("close")}}$("#"+o).html(b);$("#"+o).dialog({modal:true,width:l?l:450,maxWidth:"98%",resizable:false,buttons:n, 795close:function(){typeof h==="function"&&h()},open:function(){var b=$(this).dialog("instance");b.uiDialog.css("zIndex",Math.max(f,b.uiDialog.css("zIndex")));b.overlay.css("zIndex",Math.max(f,b.overlay.css("zIndex")))}});typeof SITE_ID!="undefined"&&SITE_ID===0&&$("#"+o).dialog("option","dialogClass","centerButton");$("#"+o).dialog("option","title",typeof e!=="undefined"?e:translate("Alert"));$("#"+o).dialog("moveToTop");$("#"+o).dialog("open");$("#"+o).height()>$(window).height()?$("#"+o).dialog("option", 796"position",{of:window,my:"top",at:"top"}):$("#"+o).dialog("option","position",{of:window})}} 797function showUCDErrorAlert(){showAlert('<div class="ucd-web-alert"><p>We\'re sorry for the inconvenience, but the system has encountered an error (UCD service unavailable).</p><p>Please try the following solutions:</p><ul><li>Refresh the page and try again</li><li>Wait a few minutes before attempting again</li><li>Check your network connection</li></ul><p>If the issue persists, please click "LIVE CHAT" for immediate assistance.</p><p>Thank you for your patience.</p></div>')} 798function opacityBg(b){var e=navigator.userAgent.toLowerCase().indexOf("android")>-1,f=navigator.userAgent.match(/iPhone/i);navigator.userAgent.match(/iPad/i);if(b)$("#common_opacity_background").hide(b===true?500:b);else{$("#common_opacity_background").length||((e||f)&&!($(".container.mobile").length>0)&&!screen.width?$(document.body).append('<div id="common_opacity_background" style=" position: absolute; display: none; left: 0; top: 0; z-index: 9999; background: #000; opacity: 0.25; filter: alpha(opacity=25);width: '+ 799$(document).width()+'px; height: 2000px;"></div>'):$(document.body).append('<div id="common_opacity_background" style=" position: absolute; display: none; left: 0; top: 0; z-index: 9999; background: #000; opacity: 0.25; filter: alpha(opacity=25);width: '+$(document).width()+"px; height: "+($(document).height()<=$(window).height()?"100vh":$(document).height()+"px")+';"></div>'));$("#common_opacity_background").show()}} 800function showPrompt(b,e){var f=prompt(b,"");f&&f.toUpperCase()=="YES"&&typeof e=="function"&&e()}function isResponsive(){return $("body").hasClass("responsive")}function isTouchAble(){return typeof window.ontouchstart!="undefined"}function isIOS(){return!!(navigator.userAgent||navigator.vendor||window.opera).match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)}function isIOS16(){return!!(navigator.userAgent||navigator.vendor||window.opera).match(/iPhone OS 16/)} 801function isSafariBrowser(){var b=navigator.userAgent||navigator.vendor||window.opera;return b.indexOf("Safari")!==-1&&b.indexOf("Chrome")===-1&&b.indexOf("Chromium")===-1}function isFacebookBrowser(){return/FBAN|FBAV/.test(navigator.userAgent||navigator.vendor||window.opera)}function isAndroidFBAPP(){var b=navigator.userAgent||navigator.vendor||window.opera,e=!!(b.indexOf("Android")>-1);return(b.indexOf("FBAN")>-1||b.indexOf("FBAV")>-1)&&e?true:false} 802function isIOSFBAPP(){var b=navigator.userAgent||navigator.vendor||window.opera,e=!!b.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);return(b.indexOf("FBAN")>-1||b.indexOf("FBAV")>-1)&&e?true:false}function isPCiOSApp(){var b=/\s{0,}(pcapp_)(ios)(\/)((\w|\.){1,})\s{0,}/i.exec(navigator.userAgent||navigator.vendor||window.opera);return!!(b&&b.length>0)} 803function isPCAndroidApp(){var b=/\s{0,}(pcapp_)(android)(\/)((\w|\.){1,})\s{0,}/i.exec(navigator.userAgent||navigator.vendor||window.opera);return!!(b&&b.length>0)}function isIPad(){var b=false;if(typeof navigator.userAgent!=="undefined"&&navigator.userAgent.match(/(iPad)/)||typeof navigator.platform!=="undefined"&&navigator.platform==="MacIntel"&&typeof navigator.maxTouchPoints!=="undefined"&&navigator.maxTouchPoints>1)b=true;return b} 804function isIE(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"all",b=b.toString();switch(b){case "11":return navigator.userAgent.indexOf("Trident")!==-1;case "10":return navigator.appVersion.indexOf("MSIE 10")!==-1;case "all":return navigator.userAgent.indexOf("Trident")!==-1||navigator.userAgent.indexOf("MSIE")!==-1}}function isChromiumEdge(){return typeof navigator.userAgent!=="undefined"&&navigator.userAgent.indexOf("Chrome")!==-1&&navigator.userAgent.indexOf("Edg")!==-1} 805function isSyncAjaxUnavailableOnUnload(){return typeof Detectizr!=="undefined"&&(Detectizr.browser.name==="chrome"&&parseInt(Detectizr.browser.version)>=73||Detectizr.browser.name==="safari"&&parseInt(Detectizr.browser.version)>=13)?true:false}function getEventName(b,e){var f={mousedown:"touchstart",mousemove:"touchmove",mouseup:"touchend",click:"tap"};typeof e==="undefined"&&(e=isTouchAble());return e?f[b]||b:b} 806function showConfirm(b,e,f,h,j,l,n,o,q){typeof j=="undefined"&&(j="YES");typeof l=="undefined"&&(l="NO");typeof h=="undefined"&&(h="Confirm");if(typeof n=="undefined"||!n)n=400;typeof o=="undefined"&&(o=f);if(typeof q=="undefined"||q===null)q={};var r=q&&q.extraClass?" "+q.extraClass:"",s=false,x=$("body").hasClass("responsive")&&typeof $.openMobileModal=="function",I=getMaxDialogIndex()+1,A={};
806j&&(typeof j=="string"?A[j]=function(){s=true;x||$(this).dialog("close");typeof e==="function"&&e()}:A[j.text]= 807{text:j.text,"class":j.class,click:function(){s=true;x||$(this).dialog("close");typeof e==="function"&&e()}});l&&(typeof l=="string"?A[l]=function(){s=true;x||$(this).dialog("close");typeof f==="function"&&f()}:A[l.text]={text:l.text,"class":l.class,click:function(){s=true;x||$(this).dialog("close");typeof f==="function"&&f()}});j=function(){s||typeof o==="function"&&o()};l=function(b,e){if(!s&&q&&typeof q.callbackBeforeClose==="function")return q.callbackBeforeClose(b,e)};if(x)$.openMobileModal({id:q&& 808q.id?q.id:null,title:h,body:b,size:"small",cssJson:{zIndex:I},buttons:A,notScrollTop:q&&typeof q.notScrollTop!="undefined"?q.notScrollTop:true,callbacks:{beforeClose:l,close:j},modalClass:r});else{!$("#showConfirm").length>0&&$("body").append('<div id="showConfirm"></div>');$("#showConfirm").html(b);$("#showConfirm").dialog({width:n,modal:true,dialogClass:"confirmDialog"+r,resizable:false,buttons:A,beforeClose:l,close:j,open:function(){var b=$(this).dialog("instance");b.uiDialog.css("zIndex",Math.max(I, 809b.uiDialog.css("zIndex")));b.overlay.css("zIndex",Math.max(I,b.overlay.css("zIndex")))}});typeof SITE_ID!="undefined"&&SITE_ID===0&&$("#showConfirm").dialog("option","dialogClass","centerButton");$("#showConfirm").dialog("option","title",h);$("#showConfirm").dialog("open")}}function publicGetUrlParam(b,e){if(typeof b=="string"&&typeof e=="string"){var f=b.match(RegExp("(^|[&?])"+e+"=([^&#]*)([&#]|$)"));if(f!=null)return unescape(f[2])}return null} 810function getFancyboxDefaults(b,e){var b=b?b:{},e=e||false,f={padding:"0 0 20px",bottom:-40,background:"white","text-align":"center"};"object"==typeof b.caption_wrap&&$.extend(f,b.caption_wrap);if(e)f.bottom=0;return{clickOutside:false,animationEffect:false,transitionEffect:false,margin:[0,0],gutter:0,baseClass:"fancybox-custom-layout",infobar:false,idleTime:false,buttons:["close"],touch:false,clickContent:false,mobile:{clickContent:function(){return false}},onInit:function(h){if(!e){h.$refs.inner.wrap('<div class="fancybox-outer" style="margin: auto; overflow: visible; top: 20px; bottom: 20px; left: 20px; right: 20px;"></div>'); 811var j=h.$refs.inner.find(".fancybox-toolbar"),l={top:-14,right:-14};if(e)l.right=0;j.hide();j.css(l);j.find(".fancybox-button").css({width:30,height:30,padding:5,borderRadius:15,marginLeft:5});h.$refs.inner.find(".fancybox-caption-wrap").hide().css(f).children(".fancybox-caption").css({padding:0,color:"#333",border:0});h.$refs.bg.on("click",function(){$.fancybox.close(true)});j=b.background||h.group[h.currIndex].opts.background;"object"==typeof j&&h.$refs.bg.css(j);if("function"==b.onInit)b.onInit(h)}}, 812afterLoad:function(f){if(!e){var j=b.padding?b.padding:0,l=f.current.width/f.current.height,n=f.Guestures.$stage.width(),o=f.Guestures.$stage.height(),q=n<=f.current.width?n:f.current.width;e&&(q=q+212);var r=q/l;if(l<=n/o){r=o<=f.current.height?o:f.current.height;q=r*l}f.$refs.bg.parent().find(".fancybox-outer").css({width:q+j*2,height:r+j*2,background:"white"});j={width:q+j*2,height:r+j*2,background:"white"};f.current.src.indexOf("napkin")>-1||f.current.src.indexOf("_dc")==-1&&f.$refs.bg.parent().find(".fancybox-inner").css("outline", 813"#B1B1B1 solid 1px");f.$refs.bg.parent().find(".fancybox-outer").css(j);f.$refs.inner.find(".fancybox-toolbar").show();f.$refs.inner.find(".fancybox-image-wrap").css({outline:0}).find(".fancybox-image").css({"box-sizing":"border-box"});true===b.infobar?f.$refs.inner.find(".fancybox-caption-wrap").show():f.$refs.inner.find(".fancybox-caption-wrap").hide();"function"==b.afterLoad&&b.afterLoad(f)}}}} 814function initFancybox(b,e){var e=e?e:{},f=e.thumbs&&$(b).length>1,f=getFancyboxDefaults(e,f),f=$.extend(f,e);$(b).fancybox(f)}function openFancyboxImage(b,e){var e=e?e:{},f=getFancyboxDefaults(e,false);if(!e.background)f.background={background:"white",opacity:0.7};f=$.extend(f,e);$.fancybox.open([{src:b,type:"image"}],f)} 815function simpleZoomPhotoMobile(b){var e=function(){$(".zoom-wrapper").hide();$(".zoom-img").hide()},f=$(b).find("img").css("border"),h;h='<div class="zoom-wrapper" style="box-sizing: border-box;position: fixed;top: 0;left: 0;width: 100%;height: 100%;z-index: 99992;backface-visibility: hidden;transform: translateZ(0);"><div class="zoom-bg" style="box-sizing: border-box;position: absolute;top: 0;right: 0;bottom: 0;left: 0;transition-duration: inherit;transition-property: opacity;background: white;opacity: 0.7;"></div><img class="preview_loading" style="top: 50%;left: 50%;transform: translate(-50%, -50%);position: absolute;" src="//cdn3.simplytoimpress.com/images/envelope_address/ajax-loader.gif" /><img src="" class="zoom-img" alt="" style="padding: 0px;margin: 0px;border: none;border-radius: 0px;box-shadow: none;position: absolute;z-index: 1;width: 90vw;top: 50%;left: 50%;transform: translate(-50%, -50%);"></div>';$(".zoom-wrapper").length|| 816$(h).appendTo("body");$(".zoom-wrapper").show().on("click",e);$(".preview_loading").show();b=$(b).attr("href");$(".zoom-img").one("load",function(){setTimeout(function(){$(".preview_loading").hide();$(".zoom-img").show()},300)}).attr("src",b).css("border",f).on("click",e)} 817function speedUpOrderDialog(b){$.ajax({url:"speedup_dialog.php",timeout:6E4,data:{order_id:b},type:"post",success:function(b){if(b.indexOf("speedup_dialog")==-1)if($("body").hasClass("responsive")&&typeof $.openMobileModal=="function")$.o
817penMobileModal({title:"Speed Up My Order",body:b});else{var f=$("#alertDialog").html(b).dialog({title:"Speed Up My Order",width:610,height:"auto",resizable:false,dialogClass:"centerButton",buttons:{OK:function(){$(this).dialog("close")}}}).on("keydown",function(b){b.keyCode=== 818$.ui.keyCode.ESCAPE&&f.dialog("close");b.stopPropagation()}).on("dialogclose",function(){f.dialog("option","buttons","")}).dialog("open");$("#alertDialog").dialog("option","position",{of:window})}else if($("body").hasClass("responsive")&&typeof $.openMobileModal=="function")$.openMobileModal({title:"Speed Up My Order",body:b,margin:"none",id:"speedup_modal"});else{f=$("#alertDialog").html(b).dialog({title:"Speed Up My Order",width:810,height:"auto",resizable:false,dialogClass:"",modal:true,buttons:{}}).on("keydown", 819function(b){b.keyCode===$.ui.keyCode.ESCAPE&&f.dialog("close");b.stopPropagation()}).dialog("open");$("#alertDialog").dialog("option","position",{of:window})}}})}function escapeHtml(b){return html(b)}function getParamByName(b,e){if(b.indexOf("http")===0||b.indexOf("//")===0)b=(new URL(b)).search;b.charAt(0)==="?"&&(b=b.substr(1));var f=b.match(RegExp("(^|&)"+e+"=([^&]*)(&|$)"));return f!==null?decodeURIComponent(f[2]):""} 820~function(b){b(document).on("focus",".password-group input",function(){b(this).parent().addClass("focus")}).on("blur",".password-group input",function(){b(this).parent().removeClass("focus")});b(document).on("click",".eyeball",function(){var e=b(this),f=e.prev();if(f.attr("type")=="password"){f.attr("type","text");e.text("Hide")}else{f.attr("type","password");e.text("Show")}})}(window.jQuery); 821~function(){var b=function(){},e={},f=500,h=[];parseInt(window.isLighthouse)&&(f=15E3);var j=function(f,h,j){if(j&&typeof e[f]!="undefined")e[f].then(h);else{console.log("Loading delayed script: "+f);e[f]=loadJS(f,h||b)}},l=function(){var b=[];if(typeof window.delayJs!="undefined")b=window.delayJs;var e=function(b){typeof b=="string"&&(b=[b]);(b[3]||{}).noDelay?j.apply(this,b):h.push(b)};window.delayJs={push:function(b){typeof b=="string"&&(b=[b]);j.apply(this,b)}};Object.prototype.toString.call(b)=== 822"[object Array]"&&b.forEach(e);h.length>0&&setTimeout(function(){h.forEach(function(b){j.apply(this,b)});h=[]},f)};document.readyState=="complete"?l():window.addEventListener("load",l)}();function clientLogAdapter(b,e){e||(e="INFO");typeof $!=="undefined"&&$.ajax({type:"POST",url:"/webservices/util/client_log.php",data:{message:b,type:e}})} 823~function(b){var e=function(e,h){var j=null;return j=function(){typeof e=="function"&&e()||b.fn[e]?h():setTimeout(j,100)}};b.waitForPlugin=function(f){return b.Deferred(function(){e(f,this.resolve)()})};b.waitUntil=function(f){return b.Deferred(function(){e(f,this.resolve)()})}}(window.jQuery);function computeCanvasDimensions(b,e){var f=Math.min(1,8192/Math.max(b,e,1),Math.sqrt(16777216/Math.max(b*e,1)));return{width:Math.max(1,Math.floor(b*f)),height:Math.max(1,Math.floor(e*f))}} 824~function(b){var e={},f={},h=[];b.extend({getImageData:function(b){var e=document.createElement("canvas");e.width=b.naturalWidth?b.naturalWidth:b.width;e.height=b.naturalHeight?b.naturalHeight:b.height;e.getContext("2d").drawImage(b,0,0);return e.toDataURL("image/png")},getLoadedImage:function(b){return b?typeof e[b]!=="undefined"?e[b]:"":e},saveLoadedImage:function(b){e[b.src]=b},loadImage:function(f,h,n){DevConsole.log("load image:"+f);var o=typeof h!=="undefined"&&h?addUrlRandom(f):f,q=b.Deferred(), 825r=0;typeof n==="undefined"&&(n=3);if(typeof e[o]!="undefined")q.resolve(e[o]);else{var s=new Image;s.crossOrigin="anonymous";s.onload=function(){DevConsole.log("image loaded:"+o);e[o]=s;q.resolve(s)};s.onerror=function(){r++;if(r>=n){this.onerror=null;q.reject()}else setTimeout(function(){s.src=o},1E3)};s.src=o}return q.promise()},convertBlobToBase64:function(b){return new Promise(function(e,f){var h=new FileReader;h.onerror=f;h.onload=function(){e(h.result)};h.readAsDataURL(b)})},localImageInfo:function(e){var f= 826b.Deferred(),h=typeof e.files!="undefined"?e.files[0]:e,o=function(b){var e=new Image;e.onload=function(){f.resolve({width:e.width,height:e.height,name:h.name,size:h.size,type:h.type,data:b})};e.onerror=function(){typeof b=="string"&&b.indexOf("blob:")===0&&URL.revokeObjectURL(b);f.reject("IMAGE_DECODE_ERROR")};e.src=b},e=new FileReader;e.onload=function(b){b=b.target.result;if(typeof libheif!="undefined"&&h.name.match(/\.heic$/i))try{var e=(new (libheif().HeifDecoder)).decode(b)[0],j=e.get_width(), 827x=e.get_height(),I=computeCanvasDimensions(j,x),A=document.createElement("canvas");A.width=I.width;A.height=I.height;var Q=A.getContext("2d");if(Q){var R=Q.createImageData(I.width,I.height);e.display(R,function(b){try{if(b){b=b||R;if(b.width!==I.width||b.height!==I.height)f.reject("HEIC decoder returned unexpected image dimensions.");else{Q.putImageData(b,0,0);var e=A.toDataURL("image/jpeg",0.8);o(e)}}else f.reject("HEIF display processing failed")}catch(h){f.reject("Error in display callback:"+h)}})}else f.reject("HEIC canvas context unavailable for oversized image.")}catch(O){f.reject("HEIC decode error:"+ 828O)}else o(b)};h.name.match(/\.heic$/i)?e.readAsArrayBuffer(h):o(URL.createObjectURL(h));return f.promise()},debounce:function(b,e,h,o){f[b]&&clearTimeout(f[b]);if(o){o=!f[b];f[b]=setTimeout(function(){f[b]=null},h);
828o&&e()}else f[b]=setTimeout(e,h)},debounceCB:function(b,e){var f;return function(){var h=this,q=arguments;clearTimeout(f);f=setTimeout(function(){b.apply(h,q)},e)}},benchmark:function(b,e){if(!e)return b?h[b]:h;var f=new Date,o=0,q=0;h[b]||(h[b]=[]);if(h[b].length){o=f-h[b][h[b].length- 8291][1];q=f-h[b][0][1]}h[b].push([e,f,o,q]);return h[b]},logBenchMark:function(b){var e=this.benchmark(b);logClient("benchmarks["+b+"]: "+JSON.stringify(e))},clearBenchMark:function(b){h[b]&&h[b].length>0&&(h[b]=[])}})}(window.jQuery); 830~function(b){var e=[].slice;b.fn.extend({registerLazyDialog:function(b){console.log("register initializer");this.length>0&&(this[0].lazyLoadDialogInitializer=b)},initializeLazyDialog:function(){if(!this.dialog("instance")){var b=this[0].lazyLoadDialogInitializer;if(!b)throw Error("A Initializer must be registered before calling initializeLazyDialog");typeof b=="object"?this.dialog(b):b()}}});b.fn.extend({lazyDialog:function(f){if(typeof f=="object"){this.registerLazyDialog(f);return this}if(b.fn.dialog){this.initializeLazyDialog(); 831b.fn.dialog.apply(this,e.call(arguments));return this}b.waitForPlugin("dialog").then(function(){this.initializeLazyDialog();b.fn.dialog.apply(this,e.call(arguments))});return this}})}(window.jQuery);function fadeInImgLoaded(b,e){typeof e==="undefined"&&(e=true);setTimeout(function(){$(b).addClass("loaded");e&&setTimeout(function(){$(b).parents().find(".loading-thumb").remove()},300)},30)} 832function $alert(b,e){var f=$.Deferred(),h=Math.min(720,$(window).width()-20),j=Math.min(360,h);$("<div><span style='word-break: unset; white-space: nowrap;'>"+b+"</span></div>").dialog({autoOpen:true,modal:true,width:j,title:e||"Alert",close:function(){$(this).dialog("destroy")},open:function(){var b=$(this).dialog("instance");b.uiDialog.css("zIndex",9999);b.overlay.css("zIndex",9998);b=$(this).find("span").width();$(this).find("span").css({whiteSpace:"normal"});$(this).dialog("option","width",Math.min(b/ 8330.9,h))},buttons:[{text:"OK",click:function(){$(this).dialog("close");f.resolve()}}]}).dialog("moveToTop");return f.promise()} 834function fbAndroidHistory(b){if(window.sessionStorage&&typeof OPEN_HISTORY_BUTTONS_IN_ANDROID_FBAPP!="undefined"&&OPEN_HISTORY_BUTTONS_IN_ANDROID_FBAPP){DevConsole.log("FB History on Android: action -> "+b);var e=location.href,f=sessionStorage.getItem("fbHistory"),h=f?JSON.parse(f):[];if(e.indexOf("#")==-1||/^\#[^\d][^\-]+$/ig.test(location.hash)){e="#"+history.length;/^\#[^\d][^\-]+$/ig.test(location.hash)&&(e=location.hash+"-"+history.length);history.replaceState(history.state,null,e);e=location.href}if("update start"== 835b)orig_page_url=e;else if("update end"==b){if(h.length>0&&typeof orig_page_url!="undefined"&&h.indexOf(orig_page_url)>-1){h.splice(h.indexOf(orig_page_url),1,e);sessionStorage.setItem("fbHistory",JSON.stringify(h))}}else{if(history[b])history[b]();else{if(history.length<h.length||history.length==h.length&&h[history.length-1]!=e)h=h.slice(0,history.length-1);DevConsole.log("FB History on Android: action -> last items: "+h.length);if(h.length==0||h.indexOf(e)==-1&&h.length!=history.length){h.push(e); 836sessionStorage.setItem("fbHistory",JSON.stringify(h))}sessionStorage.removeItem("fbHistoryFrom");h=(f=sessionStorage.getItem("fbHistory"))?JSON.parse(f):[]}setTimeout(function(){if(location.href.indexOf("confirm_order")==-1){var b=h.indexOf(location.href);b<h.length-1&&b>-1?$(".fb-history a.forward").show():$(".fb-history a.forward").hide();b>0?$(".fb-history a.back").removeClass("disabled"):$(".fb-history a.back").addClass("disabled");h.length>1?$(".fb-history").show():$(".fb-history").hide()}}, 83710)}return false}}function concatUrl(b){typeof b=="undefined"&&(b="");var e="",f=b.split("?",2);if(f.length>1){b=f[0];e=f[1]}for(f=1;f<arguments.length;f++){b=b+"/";b=b+arguments[f]}var f="",h=0;if(-1!=(h=b.indexOf("://"))){f=b.substr(0,h+3);h=b.substr(h+3);h=h.replace(/\/+/g,"/");b=f+h}else b=b.replace(/\/+/g,"/");e.length>0&&(b=b+("?"+e));return b}function addUrlRandom(b,e){return!b?b:changeUrlArg(b,"t",e||Math.random())}function removeUrlParam(b,e){return changeUrlArg(b,e,void 0)} 838function removeQueryParam(b,e){return changeUrlArg(b,e,void 0)} 839function changeUrlArg(b,e,f){if(!e)return b;var h=b.indexOf("#"),j=h!==-1?b.substring(0,h):b,h=h!==-1?b.substring(h):"",l=j.indexOf("?"),n=e+"="+f;if(l===-1)return f===void 0?b:j+"?"+n+h;var b=j.substring(0,l),o=j.substring(l+1),j=[],l=false;if(o)for(var o=o.split("&"),q=0;q<o.length;q++){var r=o[q];
839if(r.length){var s=r.indexOf("=");if((s!==-1?r.substring(0,s):r)===e){l=true;f!==void 0&&j.push(n)}else j.push(r)}}!l&&f!==void 0&&j.push(n);return j.length===0?b+h:b+"?"+j.join("&")+h} 840function appendUrlParams(b,e){var f=new URLSearchParams,h;for(h in e)f.append(h,e[h]);return b+(b.indexOf("?")>-1?"&":"?")+f.toString()} 841function getImageVisibleArea(b){function e(b){var e=b.naturalWidth||b.width,j=b.naturalHeight||b.height;if(!e||!j)return null;try{var l=document.createElement("canvas");l.width=e;l.height=j;var n=l.getContext("2d");n.drawImage(b,0,0);for(var o=n.getImageData(0,0,e,j).data,b=e,l=-1,n=j,q=-1,r=false,s=0;s<j;s++)for(var x=0;x<e;x++)if(o[(s*e+x)*4+3]<=10)r=true;else{x<b&&(b=x);x>l&&(l=x);s<n&&(n=s);s>q&&(q=s)}return!r||l<b||q<n?{is_transparent:0,visible_width:e,visible_height:j,min_x:0,max_x:e,min_y:0, 842max_y:j,width:e,height:j}:{is_transparent:1,visible_width:l-b+1,visible_height:q-n+1,min_x:b,max_x:l+1,min_y:n,max_y:q+1,width:e,height:j}}catch(I){return null}}return new Promise(function(f){if(b&&typeof b==="object"&&b.nodeName==="IMG")f(e(b));else if(!b||typeof b!=="string")f(null);else{var h=new Image;h.crossOrigin="anonymous";h.onload=function(){f(e(h))};h.onerror=function(){f(null)};h.src=b}})} 843function buildCustomPreviewUrl(b){for(var b=b||{},e=["design_id","die_cut_id","raster_element_id","preview_sample_url","attr_val","extra","extra_json","foil_color_id","background_color","logo_color","custom_photo_info","custom_asset_info","cart_item_id","ignore_text","ver","size","output"],f={},h=0;h<e.length;h++){var j=e[h];if(b.hasOwnProperty(j)&&b[j]!==void 0&&b[j]!==null&&b[j]!==""){var l=b[j];if((j==="custom_photo_info"||j==="custom_asset_info")&&typeof l==="object"){if(j==="custom_photo_info"&& 844!l.first_name&&!l.last_name){delete l.first_name;delete l.last_name}
844l=JSON.stringify(l)}else j==="extra"&&typeof l==="object"?l=JSON.stringify(l):j==="extra_json"&&typeof l==="object"&&(l=JSON.stringify(l));f[j]=l}}return(b.fullPath?window.location.protocol+"//"+window.location.host:"")+appendUrlParams(webUrl("/webservices/custom_preview.php"),f)}function removeQueryString(b){var e=b.indexOf("?");return e==-1?b:b.substr(0,e)} 845function changeURL(b,e,f,h){f=webUrl(f);DevConsole.log("changeURL: state -> "+b+", title -> "+e+", url -> "+f);if(typeof window.history.replaceState=="undefined")DevConsole.log("History.replaceStat/pushState is not supported.");else{if(false===h){window.history.pushState(b,e,f);fbAndroidHistory("updateBackForward")}else{fbAndroidHistory("update start");window.history.replaceState(b,e,f);fbAndroidHistory("update end")}localStorage.setItem("previous_hash",f)}} 846function getMobileDialogType(){return localStorage.getItem("previous_hash").indexOf("#modal-")>-1?"mobile_modal":"ucd"}function checkValidityById(b){var e=document.getElementById(b);if(e==null)return true;b=true;if(null!=e.getAttribute("required")&&e.type=="checkbox")b=e.checked;if(b==false){e=e.getAttribute("invalid-msg")||"Invalid value";$alert(e)}return b} 847function checkCCExpireDate(b,e){var b=b.replace(/\s/g,""),f=e?true:false;if(b){var h=new Date,j=h.getFullYear(),h=h.getMonth()+1,l=b.split("/"),n=parseInt(l[0]),n=isNaN(n)?"":n,o=typeof l[1]==="undefined"?"":parseInt(l[1]),o=isNaN(o)?0:o,q=o<=99?o+2E3:o;if(l.length>2||l[0].length>2||typeof l[1]!=="undefined"&&l[1].length>4)return false;if(e){if(l[0].length>2||n>12||(l[0].length===2||typeof l[1]!=="undefined")&&n<1)f=false;if(typeof l[1]!=="undefined"&&l[1].length>1)if(l[1].length==1)o||(f=false); 848else if(l[1].length==2)q<j&&o*100+99<j&&(f=false);else if(l[1].length==3){if(o*10>2099||o*10+9<j)f=false}else if(q>2099||q<j)f=false;q==j&&n<h&&(f=false)}else f=!n||n>12||n<1?false:!o||q>2099||q<j?false:q==j&&n<h?false:true}return f}function checkLuhn(b){for(var e=0,f=false,h=b.length-1;h>=0;h--){var j=parseInt(b.substring(h,h+1));if(f){j=j*2;j>9&&(j=j%10+1)}e=e+j;f=!f}return e%10==0} 849function checkCCNumber(b){var b=b.replace(/[^0-9]/g,""),e=/^3(4|7)/g.test(b),f=true;if(e&&b.length>=15||!e&&b.length>=16)f=checkLuhn(b);return f} 850function getCreditCardType(b){var e="Card",b=b.replace(/[^0-9]/g,"");if(b.length<12)return"Visa";switch(parseInt(b.substr(0,2))){case 34:case 37:e="American Express";break;case 36:e="Diners Club International";break;case 38:e="Carte Blanche";break;case 51:case 52:case 53:case 54:case 55:e="MasterCard";break;case 62:e="China UnionPay";break;case 65:e="Discover Card";break;default:switch(num=parseInt(b.substr(0,4))){case 2014:case 2149:e="Diners Club enRoute";break;case 2131:case 1800:e="JCB";break; 851case 6011:e="Discover Card";break;case 5610:e="Bankcard";break;case num>=3528&&num<=3589:e="JCB";break;case 6304:case 6706:case 6771:case 6709:e="Laser";break;case 5018:case 5020:case 5038:case 6304:case 6759:case 6761:case 6762:case 6763:e="Maestro";break;case 6334:case 6767:e="Solo";break;case 4903:case 4905:case 4911:case 4936:case 6333:case 6759:e="Switch";break;case 4026:case 4508:case 4844:case 4913:case 4917:e="Visa Electron";break;default:switch(parseInt(b.substr(0,3))){case 300:case 301:case 302:case 303:case 304:case 305:e= 852"American Diners Club";break;case 637:case 638:case 639:e="InstaPayment";break;
852case 644:case 645:case 646:case 647:case 648:case 649:e="Discover Card";break;default:switch(parseInt(b.substr(0,1))){case 4:e="Visa"}}}}switch(num=parseInt(b.substr(0,6))){case num>222099&&num<272100:e="MasterCard";break;case num>560221&&num<560225:e="Bankcard";break;case num>622126&&num<622925:e="Discover Card";break;case 564182:case 633110:e="Switch";break;case 417500:e="Visa Electron"}return e} 853function getCreditCardLogo(b){var e={VISA:{name:"Visa",logo:"/images/cart/visa.gif"},MASTER:{name:"MasterCard",logo:"/images/cart/mastercard.gif"},AMERICAN_EXPRESS:{name:"American Express",logo:"/images/cart/amex.gif"},DISCOVER:{name:"Discover Card",logo:"/images/cart/discover.gif"}},f;for(f in e)if(b==e[f].name)return e[f].logo;return""} 854function sortItems(b){var e=[],f=[],h;for(h in b){var j=b[h],l=j.id.toString().replace(/\D/g,"");if(j.upsell_to_cart_item&&typeof e[j.upsell_to_cart_item]!="undefined")l=f[l]=j.upsell_to_cart_item;j.is_virtual&&(typeof e[l]==="undefined"&&typeof f[l]!="undefined")&&(l=f[l]);typeof e[l]==="undefined"&&(e[l]=[]);e[l].push(j)}var b=[],n;for(n in e){f=e[n];for(h in f)b.push(f[h])}return b} 855function toggleHeaderAndFooter(b){if(b=="show")$("#header_wrapper, #promo_banner_wrapper, #footer_wrapper, #promo_disclaimer, .double_bar").show();else{$("#header_wrapper, #promo_banner_wrapper, #footer_wrapper, #promo_disclaimer, .double_bar").hide();setTimeout(function(){$("#header_wrapper, #promo_banner_wrapper, #footer_wrapper, #promo_disclaimer, .double_bar").hide()},1E3)}} 856function toggleLoginHeader(b,e){e=typeof e!="undefined"?e:0;if(b=="login"){$("#header_right a").eq(0).remove();$("#header_right script").eq(0).after('<ul id="my_acct_nav"><li><a class="my_acct_nav_start" href="#">My Account</a><ul><li><a href="/secure/myaccount/orders">My Orders</a></li><li><a href="/projects_in_work">Projects in Work</a></li><li><a href="/secure/profile/profile">My Profile</a></li><li><a href="/secure/profile/logout">Sign Out</a></li></ul></li></ul>');$("#header_right a.hilight").html("CART ("+ 857e+")")}}function loadImageAgain(b,e,f){var h=$(b.target),j=h.attr("src"),l=h.attr("width"),n=h.attr("height"),f=f||1E3;h.removeAttr("onerror");if(e)h.css("visibility","hidden");else{console.log("Failed to load img: src="+h.attr("src")+", going to load one more time");h.attr("src","https://cdn2.mycustomcase.com/images/ajax-loader2.gif").attr("width",16).attr("height",16)}setTimeout(function(){h.css("visibility","visible");h.attr("src",addUrlRandom(j)).attr("width",l).attr("height",n)},f)} 858function getLoadPhotoTrayImageAgainCallback(b,e){b=b||function(){};return function(f){var h=$(f.target),j=h.attr("src"),f=h.data("retry")||0;if(j){e&&h.parent().addClass("retry-loading-wheel");if(f>=3){e&&hidePhotoTrayLoadingWheel(h);h.off();b()}else{f=f+1;h.data("retry",f);if(e){h.off("load.retryLoadingWheel");h.one("load.retryLoadingWheel",function(){hidePhotoTrayLoadingWheel(h)})}if(f==2){f={url:j};if(h.data("customer_id"))f.customer_id=h.data("customer_id");else if(typeof Status!=="undefined"&& 859Status.get&&Status.get("user_id"))f.customer_id=Status.get("user_id");if(h.data("cart_id"))f.cart_id=h.data("cart_id");else if(typeof Status!=="undefined"&&Status.get&&Status.get("cart_id"))f.cart_id=Status.get("cart_id");if(h.data("site_id"))f.site_id=h.data("site_id");else if(typeof SITE_ID!=="undefined")f.site_id=SITE_ID;var l="https://img.planetart.com";if(location.host&&(location.host.match(/planetart\.(com|dev)$/i)||location.host.match(/simplytoimpress\.co\.uk$/i)))l="";$.ajax({url:l+"/webservices/thumb.php", 860data:f,dataType:"jsonp",jsonp:"callback",timeout:3E4,success:function(f){if(f.error){DevConsole.info("Failed to regenerate thumb for url: "+j+", err="+f.error);e&&hidePhotoTrayLoadingWheel(h);b.call(h[0])}else h.attr("src",f.url)},error:function(){DevConsole.info("thumb.php request timeout for url: "+j);e&&hidePhotoTrayLoadingWheel(h);b.call(h[0])}})}else setTimeout(function(){h.attr("src",addUrlRandom(j))},500)}}}} 861function hidePhotoTrayLoadingWheel(b){b.parent()&&b.parent().hasClass("retry-loading-wheel")&&b.parent().removeClass("retry-loading-wheel")} 862function initFavSlider(){var b=setInterval(function(){if(typeof $.fn.slick=="function"){$("#favorite_list").slick({dots:false,accessibility:false,useTransform:false,infinite:true,autoplay:false,arrows:true,forceArrow:true,speed:500,slidesToShow:5,slidesToScroll:5,prevArrow:'<span class="slick-prev"></span>',nextArrow:'<span class="slick-next"></span>'});clearInterval(b)}
862},1E3)} 863function initJQDialog(b,e){$(function(){e=$.extend({autoOpen:false,width:450,modal:true,resizable:false,draggable:false,closeOnEscape:true},e);$(b).dialog(e)})}function openJQDialog(b){$(b).dialog("open")}function closeJQDialog(b,e){e?$(b).dialog("destroy").remove():$(b).dialog("close")}function destroyJQDialog(b){$(b).dialog("destroy").remove()}var mouseDown=!1,_target;document.addEventListener("mousedown",function(b){if($(b.target).hasClass("tab-focus")){_target=b.target;mouseDown=true}}); 864document.addEventListener("mouseup",function(){typeof _target!="undefined"&&_target.blur();mouseDown=false}); 865function parseUcdYear(b,e,f,h){DevConsole.log("parseUcdYear:"+b+", "+e+", "+f+", "+h);for(var j=b,l=/{{(.+?)}}/g,n=[[],[]],o;(o=l.exec(b))!=null;){n[0].push(o[0]);n[1].push(o[1])}if(n[1].length&&e){b=[];for(l=0;l<n[1].length;l++){o=n[1][l];var q=o.split("_");o=String((f||!h&&q[0]=="nextYear"?1:0)+parseInt(e));if("spelled"==q[1]){var r=o.substr(0,2),r=convertNumbersToWords(r);o=o.substr(2,2);yearSpelled=convertNumbersToWords(o);var s=q[2];if("allLower"==s){yearSpelled=yearSpelled.toLowerCase();r=r.toLowerCase()}else if("1stCap"== 866s){yearSpelled=yearSpelled[0].toUpperCase()+yearSpelled.substr(1);r=r[0].toUpperCase()+r.substr(1)}else if("allCap"==s){yearSpelled=yearSpelled.toUpperCase();r=r.toUpperCase()}o=typeof q[3]!="undefined"&&q[3]=="1h"?o>20&&o%10!=0?r+" "+yearSpelled:r+"-"+yearSpelled:yearSpelled}else{r=parseInt(q[1]);o=o.substr(Math.abs(r-4));r=parseInt(q[2]);o=o.split("").join(" ".repeat(r));q=parseInt(q[3]);q>1&&(o=o.length==4&&q==2?o.substr(0,2)+"\\n"+o.substr(2,2):o.split("").join("\\n"))}b[l]=o}for(l=0;l<n[0].length;l++){o= 867n[0][l];j=j.replace(o,b[l])}}return j}function convertNumbersToWords(b){var e={20:"twenty",30:"thirty",40:"forty",50:"fifty",60:"sixty",70:"seventy",80:"eighty",90:"ninety"},f={1:"one",2:"two",3:"three",4:"four",5:"five",6:"six",7:"seven",8:"eight",9:"nine",10:"ten",11:"eleven",12:"twelve",13:"thirteen",14:"fourteen",15:"fifteen",16:"sixteen",17:"seventeen",18:"eighteen",19:"nineteen"},h=b=parseInt(b);b<100&&(h=b>=20?e[Math.floor(b/10)*10]+(b%10>0?"-"+f[b%10]:""):f[b]);return h} 868function selectElementContents(b,e){var f=0;if(document.body.createTextRange){f=document.body.createTextRange();f.moveToElementText(b);f.select();f.execCommand("Copy");f=1}else if(window.getSelection&&document.createRange){var h=document.createRange();h.selectNodeContents(b);var j=window.getSelection();j.removeAllRanges();j.addRange(h);try{document.execCommand("copy");f=1}catch(l){f=0}}if(f==1){$(".copyimg").attr("src",$(".copyimg").attr("src").replace("Copy2","Copy"));typeof e!="undefined"&&$("#"+ 869e).attr("src",$("#"+e).attr("src").replace("Copy","Copy2"))}} 870function centerUiDialog(b,e){var e=typeof e!="undefined"?e:true,f=$("#"+b).closest(".ui-dialog"),h,j;h=window.innerHeight;j=window.innerWidth;h=$(window).scrollTop()+(h-f.outerHeight())/2;j=$(window).scrollLeft()+(j-f.outerWidth())/2;if(e){$(window).on("resize",function(){centerUiDialog(b,false);$(window).off("resize")});$(window).on("scroll",function(){centerUiDialog(b,false);$(window).off("scroll")})}f.css({position:"absolute",top:h,left:j})} 871function disableBrowserCache(){$(window).on("pageshow",function(b){if(b.originalEvent.persisted){DevConsole.log("reload page to disable browser cache");window.location.reload()}})}function isGuid(b){return!!b.match(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12,13}$/i)}function getGuidNameFromUrl(b){for(var b=b.split("?").shift(),e=b.split("/"),f=0;f<e.length;f++){var h=e[f].split(".").shift();if(isGuid(h))return e[f]}return b.split("/").pop()} 872function basename(b,e){b=b.split("?").shift().split("/").pop();return e?b.split(".").shift():b} 873function alertDialog(b,e,f,h,j,l,n,o){var q=$("body").hasClass("responsive")&&typeof $.openMobileModal==="function",r=n&&typeof n.dialogClass!=="undefined"?n.dialogClass:"";typeof l==="undefined"&&(l="");if(typeof e==="undefined"||!e)e=450;if(typeof f==="undefined"||!f)f="auto";if(typeof h==="undefined"||!h)h={OK:function(){q||$(this).dialog("close")}};if(typeof j==="undefined"||!j)j="Alert";if(typeof o=="undefined"||!o)o={my:"center",at:"center",of:window};if(q)$.openMobileModal({title:j,body:b, 874size:"small",buttons:h,margin:"none",modalClass:r,callbacks:{onOpen:function(){n&&typeof n.openCallback==="function"&&n.openCallback()},tapout:function(){n&&typeof n.tapoutCallback==="function"&&n.tapoutCallback()},close:function(){n&&typeof n.closeCallback==="function"&&n.closeCallback()}}});else{l&&$("#"+l).html(b);$(l?"#"+l:"<div>"+b+"</div>").dialog({modal:true,autoOpen:true,resizable:false,title:j,width:e,height:f,dialogClass:r,buttons:h,position:o,open:function(){$(this).dialog("moveToTop"); 875n&&typeof n.openCallback==="function"&&n.openCallback()},close:function(){n&&typeof n.closeCallback==="function"&&n.closeCallback();l||$(this).dialog("destroy")}})}}function closeAlertDialog(b){$("body").hasClass("responsive")&&typeof $.openMobileModal==="function"?b.closeMobileModal():b.dialog("destroy")} 876function redeemFreeCanvasByCode(b,e,f,h){var j=typeof is_mobile_phone!="undefined"&&is_mobile_phone,l=f?"ALERT":"REDEEM YOUR CANVAS",n=function(){j||$(this).dialog("close")}
876,o=function(b,e){return'<div style="text-align: '+(e?"left":"center")+'">'+b+"</div>"},q=function(){j||$(this).dialog("close");$.ajax({type:"POST",url:"/free_canvas_cta.php",timeout:6E4,data:{promo_code:b},dataType:"json",success:function(b){b.success?href("/canvas-prints/designer.php?item_id="+b.hash_item_id):alertDialog(o(b.message), 877450,"auto",{DONE:n})}})},h=e?f?o("This promo code has expired."):o("This is a one-time use voucher code for your free 9x12 canvas. This code will expire on "+h+".",true):o("This one-time use promo code has been redeemed.");alertDialog(h,"alertDialog",450,"auto",j?f||!e?{DONE:function(){}}:{"NOT NOW":function(){},"REDEEM NOW":q}:f||!e?{DONE:n}:{"NOT NOW":n,"REDEEM NOW":q},l)}function preview_loaded(b){b=$(b).parents(".slider");b.find(".loading-thumb").hide();b.find(".item_previews").show()} 878function resetImgUrl(b,e,f,h){"undefined"===typeof h&&(h=3E3);if(f>0){b.src="";b.onerror=function(){resetImgUrl(b,e,f-1,h)};setTimeout(function(){b.src=e},h)}}function webUrl(b){return SITE_BASE&&0===b.indexOf("/")&&0!==b.indexOf("//")&&0!==b.indexOf(SITE_BASE)?SITE_BASE+b:b}function setCookie(b,e,f){return setcookie(b,e,f)} 879function setcookie(b,e,f){var h="";if(f){h=new Date;h.setTime((new Date).getTime()+864E5*f);h=";expires="+h.toGMTString()}document.cookie=b+"="+escape(e)+";path=/"+h+";secure"}function getcookie(b){return(b=document.cookie.match("(^|;) ?"+b+"=([^;]*)(;|$)"))?unescape(b[2]):""}window.localStorage=window.localStorage||{};function getLocalStorageSubKey(b,e){var f=JSON.parse(localStorage[b]||"{}");return!e?f:f[e]||null} 880function setLocalStorageSubKey(b,e,f){if(typeof e=="object")h=e;else{var h=JSON.parse(localStorage[b]||"{}");null!==f?h[e]=f:delete h[e]}localStorage[b]=JSON.stringify(h)}function getSessionStorageSubKey(b,e){var f=JSON.parse(sessionStorage[b]||"{}");return!e?f:f[e]||null}function getSessionStorageSubKeyLike(b,e){var f=JSON.parse(sessionStorage[b]||"{}");if(e){var h={},j;for(j in f)j.indexOf(e)>-1&&(h[j]=f[j]);return Object.keys(h).length===0?null:h}return Object.keys(f).length===0?null:f} 881function setSessionStorageSubKey(b,e,f){if(typeof e=="object")h=e;else{var h=JSON.parse(sessionStorage[b]||"{}");null!==f?h[e]=f:delete h[e]}sessionStorage[b]=JSON.stringify(h)}function removeStorageLike(b,e,f){b=b=="localStorage"?localStorage:sessionStorage;if(typeof f=="undefined"||!f)b.removeItem(e);else{var h=JSON.parse(b[e]||"{}"),j;for(j in h)j.indexOf(f)>-1&&delete h[j];b[e]=JSON.stringify(h)}} 882function htmlspecialchars(b){var e={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="};return b.replace(/[&<>"'`\/=]/g,function(b){return e[b]})}function getCountryIdByCode(b,e){var f=null;if(typeof countryCodeAlpha2!="undefined")for(var h in countryCodeAlpha2)if(countryCodeAlpha2[h]===b){f=h;break}return f?f:e} 883function getCountryCodeById(b,e){return typeof countryCodeAlpha2!="undefined"&&typeof countryCodeAlpha2[b]!="undefined"?countryCodeAlpha2[b]:e}var pushAWSPersonalizeEvents=function(b,e,f){$.post("/ajax/ajax_aws_personalize_events.php",{action:b,design_id:e,theme_id:f},function(b){DevConsole.log("ajax_aws_personalize_events.php.post: ",b)})}; 884function hashCode(b,e){e||(e=8);if(e<1)throw Error("length must be a positive number");var f=2166136261,h=b.length-1;if(typeof b=="string")for(;h>-1;h--){f=f^b.charCodeAt(h);f=f*16777619}else for(;h>-1;h--){f=f^b[h];f=f*16777619}for(var h="",j=0;j<e;j++)var l=Math.abs(f)%36,h=h+"abcdefghijklmnopqrstuvwxyz0123456789"[l],f=f*16777619^f>>>16;return h}var asyncCall=navigator.sendBeacon||function(b){(new Image).src=b}; 885function implode(b,e,f,h){var j=b;if(typeof b=="object"&&typeof b.length!="undefined"){var l=b.length;f&&(l=l-1);j=b.slice(0,l).join(e);h&&(j=j.toUpperCase());f&&(j=j+(f+(h?b[l].toUpperCase():b[l])))}return j}function getFileName(b){var e=b.lastIndexOf("/"),f=b.lastIndexOf("\\"),e=Math.max(e,f);return e<0?b:b.substring(e+1)} 886var openSearch=function(b,e){DevConsole.log("openSearch");b=b.replace(/\s+/g,"-").replace(/\//,"-");b=fitlerUrlSpecialCharacter(b);document.location.href="/search/"+encodeURIComponent(b)+"/"+(e?"?nr=t":"")};
886function fitlerUrlSpecialCharacter(b){b=decodeURIComponent(b);return b.replace(/[!@#$%^&*(),.?":;{}_`~'|<>]/g,"-")} 887function generate3dPreview(b,e){$.post("/ajax/getstart_3dpreview_ajax.php",b,function(b){b==="ERROR"?setTimeout($.post("/ajax/getstart_3dpreview_ajax.php",b,function(b){e!==void 0&&e(b)}),1E3):e!==void 0&&e(b)})}function downloadFile(b,e){var f=new Blob([b]),h=document.createElement("a"),f=window.URL.createObjectURL(f);h.href=f;h.download=e;document.body.appendChild(h);h.click();document.body.removeChild(h);window.URL.revokeObjectURL(f)} 888function getQuery(b,e){if(!window._cached_query_parameters){window._cached_query_parameters={};var f=window.location.search.substring(1).split("&").map(function(b){return b.split("=")}),h;for(h in f)window._cached_query_parameters[f[h][0]]=f[h][1]}return window._cached_query_parameters.hasOwnProperty(b)?window._cached_query_parameters[b]:e} 889function getValueFormQueryLikeString(b,e,f,h){b=b.split(f);for(f=0;f<b.length;f++){var j=b[f].split(h);if(decodeURIComponent(j[0])===e)return decodeURIComponent(j[1])}}function pick(b,e){return e.reduce(function(e,h){b.hasOwnProperty(h)&&(e[h]=b[h]);return e},{})} 890function alterPromoInfo(b,e,f){b="<div id='alert_promo_info_dialog' "+(f?"":"style='display: none'")+"><p class='promo-info'>Welcome to "+b+"!</p><p class='promo-info'>Your Groupon code has been applied. Just choose your "+e.toLowerCase()+" design and proceed to cart to see your final pricing.</p></div>";if(f)$.openMobileModal({title:"Welcome",body:b,size:"small",buttons:{CONTINUE:function(){}}});else{$("#alert_promo_info_dialog").length===0&&$("body").append(b);$("#alert_promo_info_dialog").dialog({autoOpen:false, 891modal:true,resizable:true});$("#alert_promo_info_dialog").dialog({resizable:false,modal:true,width:400,height:"auto",dialogClass:"buttonCenterCss",title:"Welcome",buttons:{CONTINUE:function(){$(this).dialog("close")}}});$("#alert_promo_info_dialog").dialog("open")}}function translate(b){return"undefined"!==typeof i18nController?i18nController.translate(b):b}function loadScript(b){var e=document.createElement("script");e.async=true;e.type="text/javascript";e.src=b;document.head.appendChild(e)} 892function combineArrWithUtmInfoEncoded(b){localStorage.getItem("utm_info")&&(b=$.extend(b,JSON.parse(localStorage.getItem("utm_info"))));if(typeof b.web_url_without_query!="undefined")b.web_url_without_query=decodeURIComponent(b.web_url_without_query);b=(new URLSearchParams(b)).toString();console.log("plugin_pc_function.js:"+b);return encodeURIComponent(b)}function hexToRgb(b){b=b.replace(/^#/,"");b=parseInt(b,16);return[b>>16&255,b>>8&255,b&255]} 893function colorDistance(b,e){var f=b[0]-e[0],h=b[1]-e[1],j=b[2]-e[2];return Math.sqrt(f*f+h*h+j*j)}function isAlmostWhite(b){b=hexToRgb(b);return colorDistance(b,[255,255,255])<30}function debounce(b,e){var f;return function(){var h=this,j=Array.prototype.slice.call(arguments);clearTimeout(f);f=setTimeout(function(){b.apply(h,j)},e)}}function decodeHtml(b){var e=document.createElement("textarea");e.innerHTML=b;return e.value} 894function goToDesignTemplate(b){setCookie("design_template_search",$(b).attr("data-value"));window.open("/index?app=design_templates")}function escapeDeepHtml(b){var e={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="};return String(b).replace(/[&<>"'`=\/]/g,function(b){return e[b]})}function isJSON(b){try{var e=JSON.parse(b);return typeof e==="object"&&e!==null}catch(f){return false}} 895function isObject(b){return typeof b==="object"&&b!==null&&!Array.isArray(b)}function isScalar(b,e){var f=typeof b;return f==="string"||f==="number"||f==="boolean"||f==="bigint"||!e&&(f==="symbol"||f==="undefined"||b===null)}function getBlackFriday(b){var b=new Date(b,10,1),e=(5-b.getDay()+7)%7;b.setDate(b.getDate()+e);b.setDate(b.getDate()+21);return b} 896function formatOrdinal(b){if(isNaN(b)||b===""||b===null||b===void 0)return b;b=parseInt(b);if(b<=0)return b;var e="th";if(b%100>=11&&b%100<=13)e="th";else switch(b%10){case 1:e="st";break;case 2:e="nd";break;case 3:e="rd";break;default:e="th"}return b+e}"undefined"!==typeof window.jQuery&&jQuery(function(){typeof initComponentSliderVideos==="function"&&initComponentSliderVideos()});(function(){Lanbu=function(){};Lanbu.prototype.log=function(b){DevConsole.log("Lanbu: "+b)};Lanbu.extend=function(b,e){b.extend=arguments.callee;var f=function(){};f.prototype=this.prototype;b.prototype=new f;f.prototype.constructor=b;this[e||b.name]=b}}).call(this);(function(){var b=function(){Lanbu.call(this);this.init()};b.name||(b.name="Controller");
896Lanbu.extend(b,"Controller");b.prototype.init=function(){}}).call(this);(function(){var b=function(){Lanbu.Controller.call(this);this.init();Lanbu.View&&Lanbu.View.DesignView&&(this.designView=new Lanbu.View.DesignView)};b.name||(b.name="DesignController");Lanbu.Controller.extend(b,"DesignController");b.prototype.init=function(){this.log("DesignController Init");this.upgDefaultOptions={dcp:"",dcv:"",scodix:0,fs:0,fsc:0,fsv:0,re:-1};this.upgOptionsNotAppend={v:0,id:0,dv:0,w:0,h:0,year:0};this.photos=[];this.texts=[];this.assets=[];this.addtl_space=25};b.prototype.getSampleUrl= 897function(b,f,h,j,l){this.log("DesignController getSampleUrl");var n=b.match(RegExp("/(preview)/(\\d+)-(\\d+)-(\\d+)-(\\d+)-(\\d+)-(20\\d{2})(-dcp(Magnet-|CO-)?[^-]+)?(-dcv[^-]*)?(-scodix\\d)?(-fs\\d+)?(-fsc\\d+)?(-fsv\\d+)?(-re\\d+)?(-side\\d)?(-sp\\d)?(-pd\\d+.?\\d*)?(-test\\d+)?(-dup\\d+)?(-spacing\\d+)?(-bgc[\\da-zA-Z]{3,8})?(-lang[a-z\\-]+)?(-afoil[\\S\\d]+)?(-ufoil(on|off))?(-underlays(-fl[^-]+-pt[^-]+-x-?\\d+\\.?\\d*-y-?\\d+\\.?\\d*)+)?(-overlays(-fl[^-]+-pt[^-]+-x-?\\d+\\.?\\d*-y-?\\d+\\.?\\d*)+)?\\.(jpg|png|webp|gif)")); 898if(!n)return b;var o=n[0],q=n[1],r=n[2],s=n[3],x=n[4],I=n[5],A=n[6],Q=n[7],R=n[8]?n[8].replace("-dcp",""):"",O=n[10]?n[10].replace("-dcv",""):"",B=n[11]?n[11].replace("-scodix",""):0,M=n[12]?n[12].replace("-fs",""):0,Oa=n[13]?n[13].replace("-fsc",""):0,Ea=n[14]?n[14].replace("-fsv",""):0,G=n[15]?n[15].replace("-re",""):-1,V=n[17]?n[17].replace("-sp",""):1,Wa=n[18]?n[18].replace("-pd",""):0,wa=n[20]?n[20].replace("-dup",""):0,Fa=n[21]?n[21].replace("-spacing",""):0,Xa=n[22]?n[22].replace("-bgc",""): 899"",L=n[23]?n[23].replace("-lang",""):"",W=n[24]?n[24]:"",Ga=n[26]?n[26]:"",la=[],Ha=[],aa=n[27];if(aa)for(var H=null,ta=/-fl([^-]+)-pt([^-]+)-x(-?\d+\.?\d*)-y(-?\d+\.?\d*)/ig;(H=ta.exec(aa))!==null;){var Ia=H[1],xa=H[2],oa=H[3],H=H[4];la.push({fl:Ia,pt:xa,x:oa,y:H})}if(aa=n[29]){H=null;for(ta=/-fl([^-]+)-pt([^-]+)-x(-?\d+\.?\d*)-y(-?\d+\.?\d*)/ig;(H=ta.exec(aa))!==null;){Ia=H[1];xa=H[2];oa=H[3];H=H[4];Ha.push({fl:Ia,pt:xa,x:oa,y:H})}}n=n.pop();r={v:r,id:s,dv:x,w:I,h:A,year:Q,dcp:R,dcv:O,scodix:B, 900fs:M,fsc:Oa,fsv:Ea,re:G,sp:V,pd:Wa,dup:wa,spacing:Fa,bgc:Xa,lang:L,ufoil:Ga?Ga:"",afoil:W?W:"",underlays:la,overlays:Ha};if(j!==true)for(var F in this.upgDefaultOptions)r[F]=this.upgDefaultOptions[F];if(typeof f=="object"){if(f.format){n=f.format;delete f.format}for(F in f)"undefined"!=typeof f[F]&&(r[F]=f[F])}if(h>0){r.id=h;if(l!==void 0)r.dv=l}if(!r.dcp){delete r.dcp;delete r.dcv}r.dcv||delete r.dcv;r.scodix||delete r.scodix;r.fs||delete r.fs;r.fsc||delete r.fsc;r.fsv||delete r.fsv;r.re<0&&delete r.re; 901r.sp>0&&delete r.sp;r.bgc||delete r.bgc;r.lang||delete r.lang;r.pd||delete r.pd;r.dup||delete r.dup;r.spacing||delete r.spacing;r.underlays.length===0&&delete r.underlays;r.overlays.length===0&&delete r.overlays;r.afoil||delete r.afoil;r.ufoil||delete r.ufoil;typeof r.overlays!="undefined"&&(r.overlays.length===1&&typeof r.overlays[0]==="undefined")&&delete r.overlays;f="/"+q+"/";j=[];for(F in r)if("object"==typeof r[F]&&"undefined"!=typeof r[F].length){j.push(F);for(var pa in r[F]){j.push("fl"+r[F][pa].fl); 902j.push("pt"+r[F][pa].pt);j.push("x"+r[F][pa].x);j.push("y"+r[F][pa].y)}}else{l=F+r[F];this.upgOptionsNotAppend.hasOwnProperty(F)&&(l=r[F]);j.push(l)}r.afoil&&(n="webp");f=f+(j.join("-")+"."+n);b=b.replace(o,f);h>0&&(b=this.updateDomainByDesignID(b,h));return b};b.prototype.getSubDir=function(b){return"/"+Math.floor(b/1E3)+"/"+b};b.prototype.updateDomainByDesignID=function(b,f){f>0&&(b=b.replace(/^(https\:\/\/)(p|sample)\d+/i,"$1$2"+(f%5+1)));return b};b.prototype.preview=function(b,f,h){!b&&(b="/1.jpg"); 903!f&&(f=b);(new IPS(b,f)).composite({out_put:"preview",w:h.w?h.w:650,h:h.h?h.h:650},this.photos,this.texts,this.assets,h)};b.prototype.generatePreview=function(b,f,h,j,l){var n=this,h=h||"front",j=j||"preview",l=l||"jpg",o="/webservices/ucd/ip_ajax.php",q={async:false,directory:f+"/",file:h+"_"+j+"."+l,"actions[composite]":b,c:dataEncoding("composite"),output:true},o=IPS_URL+"/composite?c="+dataEncoding("composite")+"&async=0&output=1",q={file:f+"/"+h+"_"+j+"."+l,composite:JSON.stringify(b)};this.designView.showPreviewSpinner();
904$.ajax({url:o,data:q,type:"post",xhrFields:{responseType:"blob"},success:function(b){n.designView&&n.designView.updatePreview(h,b)},complete:function(){$(".rubbberBtn").prop("disabled",false);n.designView.hidePreviewSpinner();n.designView.enableNextButton()}})};b.prototype.delay=function(b,f){b=b||1E3;this._delay&&clearTimeout(this._delay);this._delay=setTimeout(function(){f()},b)};b.prototype.generateText=function(b,f,h,j){var l=this,f=concatUrl(f,"/photos/text/"+("text-"+b.id+"-"+(h||"0")+".png")), 905n=b.orig_size||b.size,h=[b.txt,b.font,b.color,n,b.align,b.leading,b.kerning,{initialize:false,output:true,w:b.w,h:b.h,scale:j.scale,view_only:1}];this.designView.showPreviewSpinner();if(h[0].trim()){f=IPS_URL+"/makeText?c="+dataEncoding("makeText")+"&async=0&output=1&file="+f+"&makeText="+encodeURIComponent(JSON.stringify(h));h=new Image;h.onload=function(){if(l.designView){var f=n;if(this.naturalWidth>b.max_width){f=(b.txt.length-1)*b.kerning;f=n*((b.max_width-l.addtl_space*2-f)/(this.naturalWidth- 906l.addtl_space*2-f));f>0&&$('.rsd-text-object input[name="size'+b.id+'"]').val(Math.round(f))}else{b.size=b.orig_size;$('.rsd-text-object input[name="size'+b.id+'"]').val(Math.round(f))}if(typeof j.callback=="function")j.callback();else{l.designView.hidePreviewSpinner();l.designView.enableNextButton()}}};h.onerror=function(){if(l.designView)if(typeof j.callback=="function")j.callback();else{l.designView.hidePreviewSpinner();l.designView.enableNextButton()}};h.src=f}else if(l.designView)if(typeof j.callback== 907"function")j.callback();else{l.designView.hidePreviewSpinner();l.designView.enableNextButton()}};b.prototype.getMaxWidthForTextAutoScale=function(b,f,h){var j=b[0].w,b=BLEED_RUBBER_STAMP[h]/b[4].scale,h=j-b*2,l=parseFloat(f.x),n=parseFloat(f.w),f=f.align.toLowerCase(),o=0,o="right"==f?l+n+this.addtl_space-b:"center"==f?l+n/2<=j/2?n+2*(l-b):(j-b-(l+n))*2+n:j-l-b+this.addtl_space;o>0&&(h=Math.min(h,o));return h}}).call(this);(function(){var b=function(){Lanbu.call(this);this.event_namespace="lanbu";this.events=[];this.init()};b.name||(b.name="View");Lanbu.extend(b,"View");b.prototype.init=function(){this.log("View Init");this.undelegateEvents();this.delegateEvents()};b.prototype.undelegateEvents=function(){if(this.events.length)for(var b=0;b<this.events.length;b++){var f=this.events[b].on+"."+this.event_namespace,h=this.events[b].selector;$(document).undelegate(h,f)}};b.prototype.delegateEvents=function(){if(this.events.length)for(var b= 9080;b<this.events.length;b++)(function(){var f=this.events[b].on+"."+this.event_namespace,h=this.events[b].selector,j=this[this.events[b].fn].bind(this);$(document).delegate(h,f,function(b){try{return j(b)}catch(e){}})}).call(this)};b.prototype.bindGA=function(b,f,h,j){b=[b,f,h,j];(typeof THIRD_PARTY_IS_NOT_TRACKING=="undefined"||!THIRD_PARTY_IS_NOT_TRACKING)&&trackEvent.apply(null,b)};b.prototype.getBlob=function(b){return window.URL.createObjectURL(b)}}).call(this);(function(){var b=function(){Lanbu.View.call(this);this.events=[{on:"click",selector:"#show_more_like_this .recommend_loop_div > a",fn:"gaShopMoreLikeThis"},{on:"click",selector:"#shop_same_artist .recommend_loop_div > a",fn:"gaShopSameArtist"},{on:"click",selector:".shop_by_section > a",fn:"gaShopSpecifics"},{on:"click",selector:".sizes_box button",fn:"gaShopSize"},{on:"click",selector:".recommendation_wrapper .right_arrow",fn:"gaCarouselNextArrow"},{on:"click",selector:"#sort_container .list label,.filtersubmenu .list label", 909fn:"gaApplyFilter"},{on:"click",selector:".category_thumb .thumb_favorite_btn,.shutterstock_img .favorite,.footerbar .favorite",fn:"gaFavorite"},{on:"click",selector:".category_thumb",fn:"gaThumbnail"},{on:"click",selector:"nav.main-nav a,#mainMenu li>a",fn:"gaNav"},{on:"submit",selector:"form.search_form",fn:"gaSearch"},{on:"load",selector:document,fn:"gaSearch"},{on:"click",selector:"[e-read-more]",fn:"readMore"}];this.init()};b.name||(b.name="DesignView");Lanbu.View.extend(b,"DesignView");b.prototype.gaShopMoreLikeThis= 910function(b){this.log("gaShopMoreLikeThis");var f=b.currentTarget,b=$(f).attr("href").replace(/.*\/canvas-prints\/(.+)\?.+/i,"$1"),f=$(f).index()+1;this.bindGA("Click SHOP MORE LIKE THIS","Click",b,f)};b.prototype.gaShopSameArtist=function(b){this.log("gaShopSameArtist");var f=b.currentTarget,b=$(f).attr("href").replace(/.*\/canvas-prints\/(.+)\?.+/i,"$1"),f=$(f).index()+1;this.bindGA("Click SHOP SAME ARTIST","Click",b,f)};b.prototype.gaShopSpecifics=function(b){this.log("gaShopSpecifics");var b=$(b.currentTarget).attr("href").replace(/.+\?(.+)/i, 911"$1"),f=parseInt(b.replace(/[^\d]+/i,"")),h="Click SHOP BY ABSTRACT";
911/media/i.test(b)?h="Click SHOP BY MEDIA":/color/i.test(b)&&(h="Click SHOP BY COLOR");this.bindGA(h,"Click",b,f)};b.prototype.gaShopSize=function(b){this.log("gaShopSize");var f=b.currentTarget,b=$(f).html().trim(),f=$(f).index()+1;this.bindGA("Click Size","Click",b,f)};b.prototype.gaCarouselNextArrow=function(b){this.log("gaCarouselNextArrow");b=$(b.currentTarget).closest("#show_more_like_this").length?"Shop more like this":"Shop Same Artist"; 912this.bindGA("Click carousel next arrow","Click",b,null)};b.prototype.gaThumbnail=function(b){this.log("gaThumbnail");var f=b.currentTarget,h=$("#per_page").length?$("#per_page").val():36,j=$("#per_page").length?$(".shutterstock_paginator .current_page").html():$(".page_num_span").html().replace(/^page\s+(\d+)\s+of\s+\d+$/i,"$1"),b=$(f).find(".thumb_wrapper a").attr("href"),f=$(f).index()+1+h*(parseInt(j)-1);this.bindGA("Click Thumbnail ( on the thumbs page )","Click",b,f)};b.prototype.gaApplyFilter= 913function(b){this.log("gaApplyFilter");var f=$(b.currentTarget).prev(),b=f.data("filter-group")+f.data("filter-field")+f.data("filter-value"),f=f.data("filter-value");this.bindGA("Apply Thumbnail Filter","Click",b,f)};b.prototype.gaFavorite=function(b){this.log("gaFavorite");b=b.currentTarget;b=is_responsive?$(b).parent().find("a.thumb_titling").attr("href"):$(b).hasClass("favorite")?location.href.replace(/^https?\:\/\/[^\/]+/i,""):$(b).parent().find(".thumb_wrapper a").attr("href");this.bindGA("Favorited", 914"Click",b,null);return false};b.prototype.gaNav=function(b){this.log("gaNav");b=$(b.currentTarget).attr("href");this.bindGA("Click Nav","Click",b,null)};b.prototype.gaSearch=function(b){this.log("gaSearch");b=$(b.currentTarget).find("input.search_input").val();this.bindGA("Search","Click",b,null)};b.prototype.loadHandler=function(){var b=$("#toolbar_bottom .add_to_cart");if(location.href.indexOf("/canvas-prints")>-1&&b.length){b=b.outerHeight();$(document.body).css({height:"auto","padding-bottom":b})}}; 915b.prototype.readMore=function(b){this.log("readMore");var b=b.currentTarget,f=$(b).attr("e-read-more");if($(b).data("is-more")){$(".read-more",f).addClass("hide");$(".read-less",f).removeClass("hide");$(b).html("READ MORE");$(b).data("is-more",false)}else{$(".read-more",f).removeClass("hide");$(".read-less",f).addClass("hide");$(b).html("READ LESS");$(b).data("is-more",true)}return false}}).call(this);function addToFavorites(b,e){$("#favTrayWrapper").show();$("#favTrayWrapper").animate({height:265},600);$("#favTrayShowHideLink > img").attr("src",CDN+"/images/designs/favorite_tray_hide.png");$("#favTrayShowHideLink > div").removeClass("fav-up-arrow").addClass("fav-down-arrow");$.post("/ajax/favorites_ajax.php",{design_id:b,action:"add"},function(f){$("#btn_fav_"+b).attr("class","btn_fav");$("#btn_fav_"+b).css("background-position","27px 0px");$("#btn_fav_"+b).attr("title","Remove from "+e);f&&(f.match(/^MAX_REACHED/)? 916favTrayMaxReached():(f.match(/^PRESELECT[0-9]+CLOSESELECT/)&&(f=f.split("CLOSESELECT"),parseInt(f[0].replace("PRESELECT","")),f=f[1]),$("#favTray").html(f),$("#more_information").dialog("close")))})}function toggleFavoritePADetail(b,e,f,h,j){var l=0<=$("#die_cut_id").length?$("#die_cut_id").val():-1,n=$(".available_raster_texts").length?$(".available_raster_texts span.current").attr("ref"):-1;toggleFavoritePA(b,e,f,h,"die_cut="+l+"&raster_element="+n,j)} 917function toggleFavoritePA(b,e,f,h,j,l){DevConsole.log("Favorite.js->toggleFavoritePA:"+j);h.preventDefault();var n=$(h.target),h=e=-1,o=0,q=0,r=0;"undefined"!=typeof j&&0<=parseInt(publicGetUrlParam(j,"die_cut"))&&(e=parseInt(publicGetUrlParam(j,"die_cut")));1>e&&(q=$("#folded-overlay").is(":visible")?1:0);"undefined"!=typeof j&&0<=parseInt(publicGetUrlParam(j,"folded"))&&(q=parseInt(publicGetUrlParam(j,"folded")));0<q&&(e=-1);"undefined"!=typeof j&&0<=parseInt(publicGetUrlParam(j,"default_option_id"))&& 918(o=parseInt(publicGetUrlParam(j,"default_option_id")));"undefined"!=typeof j&&0<=parseInt(publicGetUrlParam(j,"orientation"))&&(r=parseInt(publicGetUrlParam(j,"orientation")));"undefined"!=typeof j&&0<=parseInt(publicGetUrlParam(j,"raster_element"))&&(h=parseInt(publicGetUrlParam(j,"raster_element")));if("undefined"!=typeof j&&"black"==publicGetUrlParam(j,"mug_color")||"white"==publicGetUrlParam(j,"mug_color"))o="black"==publicGetUrlParam(j,"mug_color")?"854":"855";"undefined"!=typeof j&&"57"==publicGetUrlParam(j, 919"product_type_id")&&(o=parseInt(publicGetUrlParam(j,"block_option_id")),r=parseInt(publicGetUrlParam(j,"block_orientation")));var s=$(".num_photos_tag span.current").attr("data");s||(s=$("input[name=pa_gift_size]:checked").attr("design_id"));
919s||(s=$("input[name=paperType]:checked").data("design-id"));s||(s=b);n.hasClass("btn_unfav")?n.attr("class","btn_fav"):n.attr("class","btn_unfav");$.post("/ajax/favorites_ajax.php",{theme_url:l,design_id:s,diecut_id:e,element_id:h,default_option_id:o,current_is_folded:q, 920orientation:r,action:"toggleTray"},function(b){if(b){var e=0;$("#favoriteLink").html(b);if(b.match(/^RMV/)){b=b.split("RMV");if(!$.cookie("OPTIMIZELY_VERSION_82")||$.cookie("OPTIMIZELY_VERSION_82").match(/^old/))$(".favorites-count").html(b[1]);else if(b[1]>0){$(".favorites-count").html(" "+b[1]);$("#icon-wishlist img").attr("src","//cdn2.photoaffections.com/images/icons/homepage/heart.png")}else{$(".favorites-count").html("");$("#icon-wishlist img").attr("src","//cdn2.photoaffections.com/images/icons/homepage/blue_heart.png")}n.attr("title", 921"Remove from "+f);if(typeof num_photos_if_favorite!="undefined"&&(typeof num_photos_if_favorite[s]=="undefined"||num_photos_if_favorite[s]=="0"))num_photos_if_favorite[s]="1";e=1}else if(b.match(/^MAX_REACHED/))favTrayMaxReached();else{if(b>0){$(".favorites-count").html(" "+b);$("#icon-wishlist img").attr("src","//cdn2.photoaffections.com/images/icons/homepage/heart.png")}else{$(".favorites-count").html("");$("#icon-wishlist img").attr("src","//cdn2.photoaffections.com/images/icons/homepage/blue_heart.png")}n.attr("title", 922"Add to "+f);if(typeof num_photos_if_favorite!="undefined"&&(typeof num_photos_if_favorite[s]=="undefined"||num_photos_if_favorite[s]=="1"))num_photos_if_favorite[s]="0"}$('input[name="pa_gift_size"][design_id='+s+"]").attr("is_favorited",e)}})} 923function toggleFavorite(b,e,f,h,j){DevConsole.log("Favorite.js->toggleFavorite:"+j);$("#favTrayWrapper").animate({height:265},600);var l=$(".num_photos_tag span.current").attr("data");l||(l=b);var n=-1,o=-1,q=0,r=0;"string"==typeof j&&-1<parseInt(publicGetUrlParam(j,"die_cut"))&&(n=parseInt(publicGetUrlParam(j,"die_cut")));"string"==typeof j&&-1<parseInt(publicGetUrlParam(j,"raster_element"))&&(o=parseInt(publicGetUrlParam(j,"raster_element")));"string"==typeof j&&-1<parseInt(publicGetUrlParam(j, 924"folded"))&&(q=parseInt(publicGetUrlParam(j,"folded")));"string"==typeof h&&-1<parseInt(publicGetUrlParam(h,"option_id"))&&(r=parseInt(publicGetUrlParam(h,"option_id")));$.post("/ajax/favorites_ajax.php",{theme_url:"undefined"!==typeof h?h:"",design_id:l,diecut_id:n,element_id:o,current_is_folded:q,default_option_id:r,action:"toggleTray"},function(h){$("#favoriteLink").html(h);if(h.match(/^RMV/)){var j=h.split("RMV");$(e).toggleClass("selected");0<$("#btn_fav_"+b).length&&!$("#btn_fav_"+b).is($(e))&& 925($("#btn_fav_"+b).removeClass("btn_fav btn_unfav selected"),$("#btn_fav_"+b).addClass("btn_unfav selected"));$(e).attr("title","Remove from "+f);$("#favTray").html(j[1]);$("#favTrayWrapper").show();$("#favTrayShowHideLink > div").removeClass("fav-up-arrow").addClass("fav-down-arrow");0<$(".my-favorites-header").length&&$(".my-favorites-header").addClass("my-favorites-header-saved")}else h.match(/^MAX_REACHED/)?favTrayMaxReached():($(e).toggleClass("selected"),0<$("#btn_fav_"+b).length&&($("#btn_fav_"+ 926b).removeClass("btn_fav btn_unfav selected"),$("#btn_fav_"+b).addClass("btn_fav")),$(e).attr("title","Add to "+f),$("#favTray").html(h),h.match(/AUTOHIDE/)?($("#favTrayWrapper").slideUp(500,function(){$("#favTray").html(h);$("#favTrayShowHideLink > div").removeClass("fav-down-arrow").addClass("fav-up-arrow")}),$("#myImageFlow").css("display","none")):$("#favTrayShowHideLink > div").removeClass("fav-up-arrow").addClass("fav-down-arrow"),(0==h||h.match(/AUTOHIDE/))&&0<$(".my-favorites-header").length&& 927$(".my-favorites-header").removeClass("my-favorites-header-saved"))})} 928function toggleFavoriteMobileDesigns(b,e,f,h){var j="undefined"!==typeof f?f:"",l=-1,n=-1,o=0,q=0;"string"==typeof h&&-1<parseInt(publicGetUrlParam(h,"die_cut"))&&(l=parseInt(publicGetUrlParam(h,"die_cut")));"string"==typeof h&&-1<parseInt(publicGetUrlParam(h,"raster_element"))&&(n=parseInt(publicGetUrlParam(h,"raster_element")));"string"==typeof h&&-1<parseInt(publicGetUrlParam(h,"folded"))&&(o=parseInt(publicGetUrlParam(h,"folded")));"string"==typeof f&&-1<parseInt(publicGetUrlParam(f,"option_id"))&& 929(q=parseInt(publicGetUrlParam(f,"option_id")));f={};f.design_id=b;f.action="toggleTray";f.diecut_id=l;f.element_id=n;f.current_is_folded=o;f.default_option_id=q;0<j.length&&(f.theme_url=j);$("#btn_fav_"+b).hasClass("btn_unfav")?$("#btn_fav_"+b).attr("class","btn_fav"):$("#btn_fav_"+b).attr("class","btn_unfav");$.post("/ajax/favorites_ajax.php",f,function(f){if(f){$("#favoriteLink").html(f);if(f.match(/^RMV/)){var h=f.split("RMV");$(".number_of_favorites").html(h[1]);$("#btn_fav_"+b).attr("title", 930"Remove from "+e);$(".number_of_favorites").filter(function(){return $(this).text()=="0"})}else if(f.match(/^MAX_REACHED/))favTrayMaxReached();else{$(".number_of_favorites").html(f);$("#btn_fav_"+b).attr("title","Add to "+e)}if(f.match(/^0/))$(".number_of_favorites").fadeOut(300,function(){$(".number_of_favorites").addClass("hidden")});else{$(".number_of_favorites").removeClass("hidden");$(".number_of_favorites").fadeIn(300)}}})} 931function toggleFavoriteMobile(b,e,f,h,j){var l="undefined"!==typeof f?f:"",h="undefined"!==typeof h?h:"",j="undefined"!==typeof j?j:"",n={diecut_id:-1,element_id:-1,foil_color:-1};n.design_id=b;n.action="toggleTray";l&&(n.theme_url=l);h&&(n.product_id=h);j&&(n.default_option_id=j);"string"==typeof f&&-1<parseInt(publicGetUrlParam(f,"option_id"))&&(n.default_option_id=parseInt(publicGetUrlParam(f,"option_id")));"undefined"!=typeof f&&"57"==publicGetUrlParam(f,"product_type_id")&&(n.default_option_id= 932parseInt(publicGetUrlParam(f,"block_option_id")),n.orientation=parseInt(publicGetUrlParam(f,"block_orientation")));"string"==typeof f&&-1<parseInt(publicGetUrlParam(f,"die_cut"))&&(n.diecut_id=parseInt(publicGetUrlParam(f,"die_cut")));$("#btn_fav_"+b).hasClass("btn_unfav")?$("#btn_fav_"+b).attr("class","btn_fav"):$("#btn_fav_"+b).attr("class","btn_unfav");$.post("/ajax/favorites_ajax.php",n,function(f){if(f){$("#favoriteLink").html(f);if(f.match(/^RMV/)){var h=f.split("RMV");$(".number_of_favorites").html(h[1]); 933$("#btn_fav_"+b).attr("title","Remove from "+e);$(".number_of_favorites").filter(function(){return $(this).text()=="0"})}else if(f.match(/^MAX_REACHED/))favTrayMaxReached();else{$(".number_of_favorites").html(f);$("#btn_fav_"+b).attr("title","Add to "+e)}if(f.match(/^0/))$(".number_of_favorites").fadeOut(300,function(){$(".number_of_favorites").addClass("hidden")});else{$(".number_of_favorites").removeClass("hidden");$(".number_of_favorites").fadeIn(300)}}})} 934function toggleFavoriteMCC(b,e,f,h,j,l){$("#btn_fav_"+b).hasClass("btn_unfav")?$("#btn_fav_"+b).attr("class","btn_fav"):$("#btn_fav_"+b).attr("class","btn_unfav");$.post("/ajax/favorites_ajax.php",{design_id:b,action:"toggleTray",theme_url:h,product_id:j,default_option_id:l},function(e){if(e){$("#favoriteLink").html(e);if(e.match(/^RMV/)){var h=e.split("RMV");$(".number_of_favorites").html(h[1]);$("#btn_fav_"+b).attr("title","Remove from "+f);$(".number_of_favorites").filter(function(){return"0"== 935$(this).text()})}else e.match(/^MAX_REACHED/)?favTrayMaxReached():($(".number_of_favorites").html(e),$("#btn_fav_"+b).attr("title","Add to "+f));e.match(/^0/)?$(".number_of_favorites").fadeOut(1E3,function(){$(".number_of_favorites").addClass("no-display")}):$(".number_of_favorites").fadeIn(1E3,function(){$(".number_of_favorites").removeClass("no-display")});$("#more_information").dialog("close")}})} 936function toggleFavoriteCB(b,e,f,h){var j=$("#btn_fav_"+b).attr("src"),l=j,n="toggleTray";0<j.indexOf("-empty")?(l=j.replace("-empty","-full"),$("#btn_fav_"+b).attr("title","Remove from Wishlist")):0<j.indexOf("-full")&&(l=j.replace("-full","-empty"),$("#btn_fav_"+b).attr("title","Add to Wishlist"),n="remove");$("#btn_fav_"+b).attr("src",l);$.post("/ajax/favorites_ajax.php",{design_id:b,action:n,theme_url:e,product_id:f},function(b){if(b)if(b.match(/^RMV/)){b=b.split("RMV");if(b[1]=="0"||b[1]=="1"){$(".wishlist-image").attr("src", 937h);setTimeout(function(){$.colorbox({inline:true,href:"#wishlistWrapper"})},500)}$("#wishCounts").html(b[1]=="0"?"1":b[1])}else b.match(/^MAX_REACHED/)?favTrayMaxReached():n=="remove"&&$("#wishCounts").html(b)})}function removeFavorite(b){$.post("/ajax/favorites_ajax.php",{design_id:parseInt(b),action:"remove"},function(b){b&&(b=window.location.href,b=b.split("#")[0],href(b))})} 938function favTrayMaxReached(){$("#fav_tray_dialog").text("We're sorry but your favorites tray is maxed out!<br />You can only have 200 favorites at a time. Please remove some favorites before adding more. <br />You can also remove all favorites from the favorites page to start over.").dialog({dialogClass:"no-close",modal:!0,buttons:[{text:"OK",click:function(){$(this).dialog("close")}}]})} 939function canvasThumbsToggleFavorite(b,e,f){$.ajax({type:"POST",contentType:"application/x-www-form-urlencoded",url:"/ajax/cw/favorite_ajax.php",data:{image_id:b,source:e,design_id:f},dataType:"json",success:function(f){200===f.code?(f="#btn_fav_"+b+"_"+e,$(f).hasClass("selected")?$(f).removeClass("selected"):$(f).addClass("selected")):alert(f.message)},error:function(){alert("Operation failed. Please try again later")}})} 940function canvasOtherToggleFavorite(b,e,f,h,j,l){$.ajax({type:"POST",contentType:"application/x-www-form-urlencoded",url:"/ajax/cw/favorite_ajax.php",data:{image_id:b,source:e,design_id:f,extra:j||
9400,variant_id:l||""},dataType:"json",success:function(f){if(200===f.code){if("undefined"===typeof j){var l="#favorites_"+b+"_"+e;$(l).fadeOut("normal",function(){$(l).remove()})}h&&$(".number_of_favorites").html(f.favorite_nums);0===f.favorite_nums?h?($("#ramf").addClass("hide"),$(".number_of_favorites").addClass("no-display"), 941$(".td_fav").fadeOut("normal",function(){$(".td_fav").remove();$(".no_items_message").removeClass("hide")})):($("#dialogwin").hasClass("ui-dialog-content")&&$("#dialogwin").dialog("close"),$("#ramf").addClass("hide"),$(".my-favorites-header").removeClass("my-favorites-header-saved"),$(".category_thumb").fadeOut("normal",function(){$(".category_thumb").remove();$(".empty_favorite").removeClass("hide")})):h?$(".number_of_favorites").hasClass("no-display")&&$(".number_of_favorites").removeClass("no-display"): 942($("#dialogwin").hasClass("ui-dialog-content")&&$("#dialogwin").dialog("close"),$(".my-favorites-header").hasClass("my-favorites-header-saved")||$(".my-favorites-header").addClass("my-favorites-header-saved"))}else alert(f.message)},error:function(){alert("Operation failed. Please try again later")}})};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.