diff --git a/judge/dist/shopify_v2.js b/judge/dist/shopify_v2.js index d87c61a..7c4410a 100644 --- a/judge/dist/shopify_v2.js +++ b/judge/dist/shopify_v2.js @@ -2,7 +2,7 @@ jdgm=window.jdgm||{},window.judgeme=jdgm,function(e,t){"object"==typeof module&& if(!i)break}return n?s.length:s?t.error(e):W(e,d).slice(0)},T=t.compile=function(e,t){var n,i=[],r=[],a=U[e+" "];if(!a){for(t||(t=C(e)),n=t.length;n--;)a=_(t[n]),a[B]?i.push(a):r.push(a);a=U(e,j(r,i)),a.selector=e}return a},F=t.select=function(e,t,n,i){var r,a,o,s,d,u="function"==typeof e&&e,c=!i&&C(e=u.selector||e);if(n=n||[],1===c.length){if(a=c[0]=c[0].slice(0),a.length>2&&"ID"===(o=a[0]).type&&b.getById&&9===t.nodeType&&q&&y.relative[a[1].type]){if(t=(y.find.ID(o.matches[0].replace(wt,bt),t)||[])[0],!t)return n;u&&(t=t.parentNode),e=e.slice(a.shift().value.length)}for(r=gt.needsContext.test(e)?0:a.length;r--&&(o=a[r],!y.relative[s=o.type]);)if((d=y.find[s])&&(i=d(o.matches[0].replace(wt,bt),_t.test(a[0].type)&&l(t.parentNode)||t))){if(a.splice(r,1),e=i.length&&m(a),!e)return Y.apply(n,i),n;break}}return(u||T(e,c))(i,t,!q,n,!t||_t.test(e)&&l(t.parentNode)||t),n},b.sortStable=B.split("").sort(J).join("")===B,b.detectDuplicates=!!R,A(),b.sortDetached=r(function(e){return 1&e.compareDocumentPosition(D.createElement("div"))}),r(function(e){return e.innerHTML="","#"===e.firstChild.getAttribute("href")})||a("type|href|height|width",function(e,t,n){return n?void 0:e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),b.attributes&&r(function(e){return e.innerHTML="",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||a("value",function(e,t,n){return n||"input"!==e.nodeName.toLowerCase()?void 0:e.defaultValue}),r(function(e){return null==e.getAttribute("disabled")})||a(tt,function(e,t,n){var i;return n?void 0:e[t]===!0?t.toLowerCase():(i=e.getAttributeNode(t))&&i.specified?i.value:null}),t}(e);at.find=lt,at.expr=lt.selectors,at.expr[":"]=at.expr.pseudos,at.uniqueSort=at.unique=lt.uniqueSort,at.text=lt.getText,at.isXMLDoc=lt.isXML,at.contains=lt.contains;var ct=function(e,t,n){for(var i=[],r=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(r&&at(e).is(n))break;i.push(e)}return i},mt=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},gt=at.expr.match.needsContext,pt=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,ft=/^.[^:#\[\.,]*$/;at.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?at.find.matchesSelector(i,e)?[i]:[]:at.find.matches(e,at.grep(t,function(e){return 1===e.nodeType}))},at.fn.extend({find:function(e){var t,n=this.length,i=[],r=this;if("string"!=typeof e)return this.pushStack(at(e).filter(function(){for(t=0;n>t;t++)if(at.contains(r[t],this))return!0}));for(t=0;n>t;t++)at.find(e,r[t],i);return i=this.pushStack(n>1?at.unique(i):i),i.selector=this.selector?this.selector+" "+e:e,i},filter:function(e){return this.pushStack(i(this,e||[],!1))},not:function(e){return this.pushStack(i(this,e||[],!0))},is:function(e){return!!i(this,"string"==typeof e&>.test(e)?at(e):e||[],!1).length}});var ht,vt=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,_t=at.fn.init=function(e,t,n){var i,r;if(!e)return this;if(n=n||ht,"string"==typeof e){if(i="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:vt.exec(e),!i||!i[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof at?t[0]:t,at.merge(this,at.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:Q,!0)),pt.test(i[1])&&at.isPlainObject(t))for(i in t)at.isFunction(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return r=Q.getElementById(i[2]),r&&r.parentNode&&(this.length=1,this[0]=r),this.context=Q,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):at.isFunction(e)?void 0!==n.ready?n.ready(e):e(at):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),at.makeArray(e,this))};_t.prototype=at.fn,ht=at(Q);var jt=/^(?:parents|prev(?:Until|All))/,wt={children:!0,contents:!0,next:!0,prev:!0};at.fn.extend({has:function(e){var t=at(e,this),n=t.length;return this.filter(function(){for(var e=0;n>e;e++)if(at.contains(this,t[e]))return!0})},closest:function(e,t){for(var n,i=0,r=this.length,a=[],o=gt.test(e)||"string"!=typeof e?at(e,t||this.context):0;r>i;i++)for(n=this[i];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(o?o.index(n)>-1:1===n.nodeType&&at.find.matchesSelector(n,e))){a.push(n);break}return this.pushStack(a.length>1?at.uniqueSort(a):a)},index:function(e){return e?"string"==typeof e?Z.call(at(e),this[0]):Z.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(at.uniqueSort(at.merge(this.get(),at(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),at.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return ct(e,"parentNode")},parentsUntil:function(e,t,n){return ct(e,"parentNode",n)},next:function(e){return r(e,"nextSibling")},prev:function(e){return r(e,"previousSibling")},nextAll:function(e){return ct(e,"nextSibling")},prevAll:function(e){return ct(e,"previousSibling")},nextUntil:function(e,t,n){return ct(e,"nextSibling",n)},prevUntil:function(e,t,n){return ct(e,"previousSibling",n)},siblings:function(e){return mt((e.parentNode||{}).firstChild,e)},children:function(e){return mt(e.firstChild)},contents:function(e){return e.contentDocument||at.merge([],e.childNodes)}},function(e,t){at.fn[e]=function(n,i){var r=at.map(this,t,n);return"Until"!==e.slice(-5)&&(i=n),i&&"string"==typeof i&&(r=at.filter(i,r)),this.length>1&&(wt[e]||at.uniqueSort(r),jt.test(e)&&r.reverse()),this.pushStack(r)}});var bt=/\S+/g;at.Callbacks=function(e){e="string"==typeof e?a(e):at.extend({},e);var t,n,i,r,o=[],s=[],d=-1,u=function(){for(r=e.once,i=t=!0;s.length;d=-1)for(n=s.shift();++d-1;)o.splice(n,1),d>=n&&d--}),this},has:function(e){return e?at.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return r=s=[],o=n="",this},disabled:function(){return!o},lock:function(){return r=s=[],n||(o=n=""),this},locked:function(){return!!r},fireWith:function(e,n){return r||(n=n||[],n=[e,n.slice?n.slice():n],s.push(n),t||u()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!i}};return l},at.extend({Deferred:function(e){var t=[["resolve","done",at.Callbacks("once memory"),"resolved"],["reject","fail",at.Callbacks("once memory"),"rejected"],["notify","progress",at.Callbacks("memory")]],n="pending",i={state:function(){return n},always:function(){return r.done(arguments).fail(arguments),this},then:function(){var e=arguments;return at.Deferred(function(n){at.each(t,function(t,a){var o=at.isFunction(e[t])&&e[t];r[a[1]](function(){var e=o&&o.apply(this,arguments);e&&at.isFunction(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[a[0]+"With"](this===i?n.promise():this,o?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?at.extend(e,i):i}},r={};return i.pipe=i.then,at.each(t,function(e,a){var o=a[2],s=a[3];i[a[1]]=o.add,s&&o.add(function(){n=s},t[1^e][2].disable,t[2][2].lock),r[a[0]]=function(){return r[a[0]+"With"](this===r?i:this,arguments),this},r[a[0]+"With"]=o.fireWith}),i.promise(r),e&&e.call(r,r),r},when:function(e){var t,n,i,r=0,a=X.call(arguments),o=a.length,s=1!==o||e&&at.isFunction(e.promise)?o:0,d=1===s?e:at.Deferred(),u=function(e,n,i){return function(r){n[e]=this,i[e]=arguments.length>1?X.call(arguments):r,i===t?d.notifyWith(n,i):--s||d.resolveWith(n,i)}};if(o>1)for(t=new Array(o),n=new Array(o),i=new Array(o);o>r;r++)a[r]&&at.isFunction(a[r].promise)?a[r].promise().progress(u(r,n,t)).done(u(r,i,a)).fail(d.reject):--s;return s||d.resolveWith(i,a),d.promise()}});var yt;at.fn.ready=function(e){return at.ready.promise().done(e),this},at.extend({isReady:!1,readyWait:1,holdReady:function(e){e?at.readyWait++:at.ready(!0)},ready:function(e){(e===!0?--at.readyWait:at.isReady)||(at.isReady=!0,e!==!0&&--at.readyWait>0||(yt.resolveWith(Q,[at]),at.fn.triggerHandler&&(at(Q).triggerHandler("ready"),at(Q).off("ready"))))}}),at.ready.promise=function(t){return yt||(yt=at.Deferred(),"complete"===Q.readyState||"loading"!==Q.readyState&&!Q.documentElement.doScroll?e.setTimeout(at.ready):(Q.addEventListener("DOMContentLoaded",o),e.addEventListener("load",o))),yt.promise(t)},at.ready.promise();var xt=function(e,t,n,i,r,a,o){var s=0,d=e.length,u=null==n;if("object"===at.type(n)){r=!0;for(s in n)xt(e,t,s,n[s],!0,a,o)}else if(void 0!==i&&(r=!0,at.isFunction(i)||(o=!0),u&&(o?(t.call(e,i),t=null):(u=t,t=function(e,t,n){return u.call(at(e),n)})),t))for(;d>s;s++)t(e[s],n,o?i:i.call(e[s],s,t(e[s],n)));return r?e:u?t.call(e):d?t(e[0],n):a},St=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};s.uid=1,s.prototype={register:function(e,t){var n=t||{};return e.nodeType?e[this.expando]=n:Object.defineProperty(e,this.expando,{value:n,writable:!0,configurable:!0}),e[this.expando]},cache:function(e){if(!St(e))return{};var t=e[this.expando];return t||(t={},St(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var i,r=this.cache(e);if("string"==typeof t)r[t]=n;else for(i in t)r[i]=t[i];return r},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][t]},access:function(e,t,n){var i;return void 0===t||t&&"string"==typeof t&&void 0===n?(i=this.get(e,t),void 0!==i?i:this.get(e,at.camelCase(t))):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,i,r,a=e[this.expando];if(void 0!==a){if(void 0===t)this.register(e);else{at.isArray(t)?i=t.concat(t.map(at.camelCase)):(r=at.camelCase(t),t in a?i=[t,r]:(i=r,i=i in a?[i]:i.match(bt)||[])),n=i.length;for(;n--;)delete a[i[n]]}(void 0===t||at.isEmptyObject(a))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!at.isEmptyObject(t)}};var Ct=new s,Tt=new s,Ft=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,kt=/[A-Z]/g;at.extend({hasData:function(e){return Tt.hasData(e)||Ct.hasData(e)},data:function(e,t,n){return Tt.access(e,t,n)},removeData:function(e,t){Tt.remove(e,t)},_data:function(e,t,n){return Ct.access(e,t,n)},_removeData:function(e,t){Ct.remove(e,t)}}),at.fn.extend({data:function(e,t){var n,i,r,a=this[0],o=a&&a.attributes;if(void 0===e){if(this.length&&(r=Tt.get(a),1===a.nodeType&&!Ct.get(a,"hasDataAttrs"))){for(n=o.length;n--;)o[n]&&(i=o[n].name,0===i.indexOf("data-")&&(i=at.camelCase(i.slice(5)),d(a,i,r[i])));Ct.set(a,"hasDataAttrs",!0)}return r}return"object"==typeof e?this.each(function(){Tt.set(this,e)}):xt(this,function(t){var n,i;if(a&&void 0===t){if(n=Tt.get(a,e)||Tt.get(a,e.replace(kt,"-$&").toLowerCase()),void 0!==n)return n;if(i=at.camelCase(e),n=Tt.get(a,i),void 0!==n)return n;if(n=d(a,i,void 0),void 0!==n)return n}else i=at.camelCase(e),this.each(function(){var n=Tt.get(this,i);Tt.set(this,i,t),e.indexOf("-")>-1&&void 0!==n&&Tt.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){Tt.remove(this,e)})}}),at.extend({queue:function(e,t,n){var i;return e?(t=(t||"fx")+"queue",i=Ct.get(e,t),n&&(!i||at.isArray(n)?i=Ct.access(e,t,at.makeArray(n)):i.push(n)),i||[]):void 0},dequeue:function(e,t){t=t||"fx";var n=at.queue(e,t),i=n.length,r=n.shift(),a=at._queueHooks(e,t),o=function(){at.dequeue(e,t)};"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===t&&n.unshift("inprogress"),delete a.stop,r.call(e,o,a)),!i&&a&&a.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Ct.get(e,n)||Ct.access(e,n,{empty:at.Callbacks("once memory").add(function(){Ct.remove(e,[t+"queue",n])})})}}),at.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length",""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};It.optgroup=It.option,It.tbody=It.tfoot=It.colgroup=It.caption=It.thead,It.th=It.td;var Nt=/<|&#?\w+;/;!function(){var e=Q.createDocumentFragment(),t=e.appendChild(Q.createElement("div")),n=Q.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),t.appendChild(n),it.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,t.innerHTML="",it.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue}();var Ot=/^key/,Bt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ht=/^([^.]*)(?:\.(.+)|)/;at.event={global:{},add:function(e,t,n,i,r){var a,o,s,d,u,l,c,m,g,p,f,h=Ct.get(e);if(h)for(n.handler&&(a=n,n=a.handler,r=a.selector),n.guid||(n.guid=at.guid++),(d=h.events)||(d=h.events={}),(o=h.handle)||(o=h.handle=function(t){return"undefined"!=typeof at&&at.event.triggered!==t.type?at.event.dispatch.apply(e,arguments):void 0}),t=(t||"").match(bt)||[""],u=t.length;u--;)s=Ht.exec(t[u])||[],g=f=s[1],p=(s[2]||"").split(".").sort(),g&&(c=at.event.special[g]||{},g=(r?c.delegateType:c.bindType)||g,c=at.event.special[g]||{},l=at.extend({type:g,origType:f,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&at.expr.match.needsContext.test(r),namespace:p.join(".")},a),(m=d[g])||(m=d[g]=[],m.delegateCount=0,c.setup&&c.setup.call(e,i,p,o)!==!1||e.addEventListener&&e.addEventListener(g,o)),c.add&&(c.add.call(e,l),l.handler.guid||(l.handler.guid=n.guid)),r?m.splice(m.delegateCount++,0,l):m.push(l),at.event.global[g]=!0)},remove:function(e,t,n,i,r){var a,o,s,d,u,l,c,m,g,p,f,h=Ct.hasData(e)&&Ct.get(e);if(h&&(d=h.events)){for(t=(t||"").match(bt)||[""],u=t.length;u--;)if(s=Ht.exec(t[u])||[],g=f=s[1],p=(s[2]||"").split(".").sort(),g){for(c=at.event.special[g]||{},g=(i?c.delegateType:c.bindType)||g,m=d[g]||[],s=s[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),o=a=m.length;a--;)l=m[a],!r&&f!==l.origType||n&&n.guid!==l.guid||s&&!s.test(l.namespace)||i&&i!==l.selector&&("**"!==i||!l.selector)||(m.splice(a,1),l.selector&&m.delegateCount--,c.remove&&c.remove.call(e,l));o&&!m.length&&(c.teardown&&c.teardown.call(e,p,h.handle)!==!1||at.removeEvent(e,g,h.handle),delete d[g])}else for(g in d)at.event.remove(e,g+t[u],n,i,!0);at.isEmptyObject(d)&&Ct.remove(e,"handle events")}},dispatch:function(e){e=at.event.fix(e);var t,n,i,r,a,o=[],s=X.call(arguments),d=(Ct.get(this,"events")||{})[e.type]||[],u=at.event.special[e.type]||{};if(s[0]=e,e.delegateTarget=this,!u.preDispatch||u.preDispatch.call(this,e)!==!1){for(o=at.event.handlers.call(this,e,d),t=0;(r=o[t++])&&!e.isPropagationStopped();)for(e.currentTarget=r.elem,n=0;(a=r.handlers[n++])&&!e.isImmediatePropagationStopped();)(!e.rnamespace||e.rnamespace.test(a.namespace))&&(e.handleObj=a,e.data=a.data,i=((at.event.special[a.origType]||{}).handle||a.handler).apply(r.elem,s),void 0!==i&&(e.result=i)===!1&&(e.preventDefault(),e.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,i,r,a,o=[],s=t.delegateCount,d=e.target;if(s&&d.nodeType&&("click"!==e.type||isNaN(e.button)||e.button<1))for(;d!==this;d=d.parentNode||this)if(1===d.nodeType&&(d.disabled!==!0||"click"!==e.type)){for(i=[],n=0;s>n;n++)a=t[n],r=a.selector+" ",void 0===i[r]&&(i[r]=a.needsContext?at(r,this).index(d)>-1:at.find(r,this,null,[d]).length),i[r]&&i.push(a);i.length&&o.push({elem:d,handlers:i})}return s]*)\/>/gi,$t=/\s*$/g;at.extend({htmlPrefilter:function(e){return e.replace(Mt,"<$1>")},clone:function(e,t,n){var i,r,a,o,s=e.cloneNode(!0),d=at.contains(e.ownerDocument,e);if(!(it.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||at.isXMLDoc(e)))for(o=l(s),a=l(e),i=0,r=a.length;r>i;i++)b(a[i],o[i]);if(t)if(n)for(a=a||l(e),o=o||l(s),i=0,r=a.length;r>i;i++)w(a[i],o[i]);else w(e,s);return o=l(s,"script"),o.length>0&&c(o,!d&&l(e,"script")),s},cleanData:function(e){for(var t,n,i,r=at.event.special,a=0;void 0!==(n=e[a]);a++)if(St(n)){if(t=n[Ct.expando]){if(t.events)for(i in t.events)r[i]?at.event.remove(n,i):at.removeEvent(n,i,t.handle);n[Ct.expando]=void 0}n[Tt.expando]&&(n[Tt.expando]=void 0)}}}),at.fn.extend({domManip:y,detach:function(e){return x(this,e,!0)},remove:function(e){return x(this,e)},text:function(e){return xt(this,function(e){return void 0===e?at.text(this):this.empty().each(function(){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&(this.textContent=e)})},null,e,arguments.length)},append:function(){return y(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=v(this,e);t.appendChild(e)}})},prepend:function(){return y(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=v(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return y(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return y(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(at.cleanData(l(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null==e?!1:e,t=null==t?e:t,this.map(function(){return at.clone(this,e,t)})},html:function(e){return xt(this,function(e){var t=this[0]||{},n=0,i=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!$t.test(e)&&!It[(qt.exec(e)||["",""])[1].toLowerCase()]){e=at.htmlPrefilter(e);try{for(;i>n;n++)t=this[n]||{},1===t.nodeType&&(at.cleanData(l(t,!1)),t.innerHTML=e);t=0}catch(r){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return y(this,arguments,function(t){var n=this.parentNode;at.inArray(this,e)<0&&(at.cleanData(l(this)),n&&n.replaceChild(t,this))},e)}}),at.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){at.fn[e]=function(e){for(var n,i=[],r=at(e),a=r.length-1,o=0;a>=o;o++)n=o===a?this:this.clone(!0),at(r[o])[t](n),Y.apply(i,n.get());return this.pushStack(i)}});var Jt,Vt={HTML:"block",BODY:"block"},Kt=/^margin/,Qt=new RegExp("^("+Et+")(?!px)[a-z%]+$","i"),Xt=function(t){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=e),n.getComputedStyle(t)},Gt=function(e,t,n,i){var r,a,o={};for(a in t)o[a]=e.style[a],e.style[a]=t[a];r=n.apply(e,i||[]);for(a in t)e.style[a]=o[a];return r},Yt=Q.documentElement;!function(){function t(){s.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",s.innerHTML="",Yt.appendChild(o);var t=e.getComputedStyle(s);n="1%"!==t.top,a="2px"===t.marginLeft,i="4px"===t.width,s.style.marginRight="50%",r="4px"===t.marginRight,Yt.removeChild(o)}var n,i,r,a,o=Q.createElement("div"),s=Q.createElement("div");s.style&&(s.style.backgroundClip="content-box",s.cloneNode(!0).style.backgroundClip="",it.clearCloneStyle="content-box"===s.style.backgroundClip,o.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",o.appendChild(s),at.extend(it,{pixelPosition:function(){return t(),n},boxSizingReliable:function(){return null==i&&t(),i},pixelMarginRight:function(){return null==i&&t(),r},reliableMarginLeft:function(){return null==i&&t(),a},reliableMarginRight:function(){var t,n=s.appendChild(Q.createElement("div"));return n.style.cssText=s.style.cssText="-webkit-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",n.style.marginRight=n.style.width="0",s.style.width="1px",Yt.appendChild(o),t=!parseFloat(e.getComputedStyle(n).marginRight),Yt.removeChild(o),s.removeChild(n),t}}))}();var Zt=/^(none|table(?!-c[ea]).+)/,en={position:"absolute",visibility:"hidden",display:"block"},tn={letterSpacing:"0",fontWeight:"400"},nn=["Webkit","O","Moz","ms"],rn=Q.createElement("div").style;at.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=T(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":"cssFloat"},style:function(e,t,n,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var r,a,o,s=at.camelCase(t),d=e.style;return t=at.cssProps[s]||(at.cssProps[s]=k(s)||s),o=at.cssHooks[t]||at.cssHooks[s],void 0===n?o&&"get"in o&&void 0!==(r=o.get(e,!1,i))?r:d[t]:(a=typeof n,"string"===a&&(r=Rt.exec(n))&&r[1]&&(n=u(e,t,r),a="number"),null!=n&&n===n&&("number"===a&&(n+=r&&r[3]||(at.cssNumber[s]?"":"px")),it.clearCloneStyle||""!==n||0!==t.indexOf("background")||(d[t]="inherit"),o&&"set"in o&&void 0===(n=o.set(e,n,i))||(d[t]=n)),void 0)}},css:function(e,t,n,i){var r,a,o,s=at.camelCase(t);return t=at.cssProps[s]||(at.cssProps[s]=k(s)||s),o=at.cssHooks[t]||at.cssHooks[s],o&&"get"in o&&(r=o.get(e,!0,n)),void 0===r&&(r=T(e,t,i)),"normal"===r&&t in tn&&(r=tn[t]),""===n||n?(a=parseFloat(r),n===!0||isFinite(a)?a||0:r):r}}),at.each(["height","width"],function(e,t){at.cssHooks[t]={get:function(e,n,i){return n?Zt.test(at.css(e,"display"))&&0===e.offsetWidth?Gt(e,en,function(){return A(e,t,i)}):A(e,t,i):void 0},set:function(e,n,i){var r,a=i&&Xt(e),o=i&&R(e,t,i,"border-box"===at.css(e,"boxSizing",!1,a),a);return o&&(r=Rt.exec(n))&&"px"!==(r[3]||"px")&&(e.style[t]=n,n=at.css(e,t)),E(e,n,o)}}}),at.cssHooks.marginLeft=F(it.reliableMarginLeft,function(e,t){return t?(parseFloat(T(e,"marginLeft"))||e.getBoundingClientRect().left-Gt(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px":void 0}),at.cssHooks.marginRight=F(it.reliableMarginRight,function(e,t){return t?Gt(e,{display:"inline-block"},T,[e,"marginRight"]):void 0}),at.each({margin:"",padding:"",border:"Width"},function(e,t){at.cssHooks[e+t]={expand:function(n){for(var i=0,r={},a="string"==typeof n?n.split(" "):[n];4>i;i++)r[e+At[i]+t]=a[i]||a[i-2]||a[0];return r}},Kt.test(e)||(at.cssHooks[e+t].set=E)}),at.fn.extend({css:function(e,t){return xt(this,function(e,t,n){var i,r,a={},o=0;if(at.isArray(t)){for(i=Xt(e),r=t.length;r>o;o++)a[t[o]]=at.css(e,t[o],!1,i);return a}return void 0!==n?at.style(e,t,n):at.css(e,t)},e,t,arguments.length>1)},show:function(){return D(this,!0)},hide:function(){return D(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){Dt(this)?at(this).show():at(this).hide()})}}),at.Tween=P,P.prototype={constructor:P,init:function(e,t,n,i,r,a){this.elem=e,this.prop=n,this.easing=r||at.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=a||(at.cssNumber[n]?"":"px")},cur:function(){var e=P.propHooks[this.prop];return e&&e.get?e.get(this):P.propHooks._default.get(this)},run:function(e){var t,n=P.propHooks[this.prop];return this.pos=t=this.options.duration?at.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):P.propHooks._default.set(this),this}},P.prototype.init.prototype=P.prototype,P.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=at.css(e.elem,e.prop,""),t&&"auto"!==t?t:0)},set:function(e){at.fx.step[e.prop]?at.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[at.cssProps[e.prop]]&&!at.cssHooks[e.prop]?e.elem[e.prop]=e.now:at.style(e.elem,e.prop,e.now+e.unit)}}},P.propHooks.scrollTop=P.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},at.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},at.fx=P.prototype.init,at.fx.step={};var an,on,sn=/^(?:toggle|show|hide)$/,dn=/queueHooks$/;at.Animation=at.extend(B,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return u(n.elem,e,Rt.exec(t),n),n}]},tweener:function(e,t){at.isFunction(e)?(t=e,e=["*"]):e=e.match(bt);for(var n,i=0,r=e.length;r>i;i++)n=e[i],B.tweeners[n]=B.tweeners[n]||[],B.tweeners[n].unshift(t)},prefilters:[N],prefilter:function(e,t){t?B.prefilters.unshift(e):B.prefilters.push(e)}}),at.speed=function(e,t,n){var i=e&&"object"==typeof e?at.extend({},e):{complete:n||!n&&t||at.isFunction(e)&&e,duration:e,easing:n&&t||t&&!at.isFunction(t)&&t};return i.duration=at.fx.off?0:"number"==typeof i.duration?i.duration:i.duration in at.fx.speeds?at.fx.speeds[i.duration]:at.fx.speeds._default,(null==i.queue||i.queue===!0)&&(i.queue="fx"),i.old=i.complete,i.complete=function(){at.isFunction(i.old)&&i.old.call(this),i.queue&&at.dequeue(this,i.queue)},i},at.fn.extend({fadeTo:function(e,t,n,i){return this.filter(Dt).css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(e,t,n,i){var r=at.isEmptyObject(e),a=at.speed(t,n,i),o=function(){var t=B(this,at.extend({},e),a);(r||Ct.get(this,"finish"))&&t.stop(!0)};return o.finish=o,r||a.queue===!1?this.each(o):this.queue(a.queue,o)},stop:function(e,t,n){var i=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&e!==!1&&this.queue(e||"fx",[]),this.each(function(){var t=!0,r=null!=e&&e+"queueHooks",a=at.timers,o=Ct.get(this);if(r)o[r]&&o[r].stop&&i(o[r]);else for(r in o)o[r]&&o[r].stop&&dn.test(r)&&i(o[r]);for(r=a.length;r--;)a[r].elem!==this||null!=e&&a[r].queue!==e||(a[r].anim.stop(n),t=!1,a.splice(r,1));(t||!n)&&at.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var t,n=Ct.get(this),i=n[e+"queue"],r=n[e+"queueHooks"],a=at.timers,o=i?i.length:0;for(n.finish=!0,at.queue(this,e,[]),r&&r.stop&&r.stop.call(this,!0),t=a.length;t--;)a[t].elem===this&&a[t].queue===e&&(a[t].anim.stop(!0),a.splice(t,1));for(t=0;o>t;t++)i[t]&&i[t].finish&&i[t].finish.call(this);delete n.finish})}}),at.each(["toggle","show","hide"],function(e,t){var n=at.fn[t];at.fn[t]=function(e,i,r){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(L(t,!0),e,i,r)}}),at.each({slideDown:L("show"),slideUp:L("hide"),slideToggle:L("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){at.fn[e]=function(e,n,i){return this.animate(t,e,n,i)}}),at.timers=[],at.fx.tick=function(){var e,t=0,n=at.timers;for(an=at.now();t1)},removeAttr:function(e){return this.each(function(){at.removeAttr(this,e)})}}),at.extend({attr:function(e,t,n){var i,r,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return"undefined"==typeof e.getAttribute?at.prop(e,t,n):(1===a&&at.isXMLDoc(e)||(t=t.toLowerCase(),r=at.attrHooks[t]||(at.expr.match.bool.test(t)?un:void 0)),void 0!==n?null===n?void at.removeAttr(e,t):r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:(e.setAttribute(t,n+""),n):r&&"get"in r&&null!==(i=r.get(e,t))?i:(i=at.find.attr(e,t),null==i?void 0:i))},attrHooks:{type:{set:function(e,t){if(!it.radioValue&&"radio"===t&&at.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,i,r=0,a=t&&t.match(bt); if(a&&1===e.nodeType)for(;n=a[r++];)i=at.propFix[n]||n,at.expr.match.bool.test(n)&&(e[i]=!1),e.removeAttribute(n)}}),un={set:function(e,t,n){return t===!1?at.removeAttr(e,n):e.setAttribute(n,n),n}},at.each(at.expr.match.bool.source.match(/\w+/g),function(e,t){var n=ln[t]||at.find.attr;ln[t]=function(e,t,i){var r,a;return i||(a=ln[t],ln[t]=r,r=null!=n(e,t,i)?t.toLowerCase():null,ln[t]=a),r}});var cn=/^(?:input|select|textarea|button)$/i,mn=/^(?:a|area)$/i;at.fn.extend({prop:function(e,t){return xt(this,at.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[at.propFix[e]||e]})}}),at.extend({prop:function(e,t,n){var i,r,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return 1===a&&at.isXMLDoc(e)||(t=at.propFix[t]||t,r=at.propHooks[t]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:e[t]=n:r&&"get"in r&&null!==(i=r.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=at.find.attr(e,"tabindex");return t?parseInt(t,10):cn.test(e.nodeName)||mn.test(e.nodeName)&&e.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),it.optSelected||(at.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),at.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){at.propFix[this.toLowerCase()]=this});var gn=/[\t\r\n\f]/g;at.fn.extend({addClass:function(e){var t,n,i,r,a,o,s,d=0;if(at.isFunction(e))return this.each(function(t){at(this).addClass(e.call(this,t,H(this)))});if("string"==typeof e&&e)for(t=e.match(bt)||[];n=this[d++];)if(r=H(n),i=1===n.nodeType&&(" "+r+" ").replace(gn," ")){for(o=0;a=t[o++];)i.indexOf(" "+a+" ")<0&&(i+=a+" ");s=at.trim(i),r!==s&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,i,r,a,o,s,d=0;if(at.isFunction(e))return this.each(function(t){at(this).removeClass(e.call(this,t,H(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof e&&e)for(t=e.match(bt)||[];n=this[d++];)if(r=H(n),i=1===n.nodeType&&(" "+r+" ").replace(gn," ")){for(o=0;a=t[o++];)for(;i.indexOf(" "+a+" ")>-1;)i=i.replace(" "+a+" "," ");s=at.trim(i),r!==s&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):this.each(at.isFunction(e)?function(n){at(this).toggleClass(e.call(this,n,H(this),t),t)}:function(){var t,i,r,a;if("string"===n)for(i=0,r=at(this),a=e.match(bt)||[];t=a[i++];)r.hasClass(t)?r.removeClass(t):r.addClass(t);else(void 0===e||"boolean"===n)&&(t=H(this),t&&Ct.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||e===!1?"":Ct.get(this,"__className__")||""))})},hasClass:function(e){var t,n,i=0;for(t=" "+e+" ";n=this[i++];)if(1===n.nodeType&&(" "+H(n)+" ").replace(gn," ").indexOf(t)>-1)return!0;return!1}});var pn=/\r/g,fn=/[\x20\t\r\n\f]+/g;at.fn.extend({val:function(e){var t,n,i,r=this[0];{if(arguments.length)return i=at.isFunction(e),this.each(function(n){var r;1===this.nodeType&&(r=i?e.call(this,n,at(this).val()):e,null==r?r="":"number"==typeof r?r+="":at.isArray(r)&&(r=at.map(r,function(e){return null==e?"":e+""})),t=at.valHooks[this.type]||at.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&void 0!==t.set(this,r,"value")||(this.value=r))});if(r)return t=at.valHooks[r.type]||at.valHooks[r.nodeName.toLowerCase()],t&&"get"in t&&void 0!==(n=t.get(r,"value"))?n:(n=r.value,"string"==typeof n?n.replace(pn,""):null==n?"":n)}}}),at.extend({valHooks:{option:{get:function(e){var t=at.find.attr(e,"value");return null!=t?t:at.trim(at.text(e)).replace(fn," ")}},select:{get:function(e){for(var t,n,i=e.options,r=e.selectedIndex,a="select-one"===e.type||0>r,o=a?null:[],s=a?r+1:i.length,d=0>r?s:a?r:0;s>d;d++)if(n=i[d],!(!n.selected&&d!==r||(it.optDisabled?n.disabled:null!==n.getAttribute("disabled"))||n.parentNode.disabled&&at.nodeName(n.parentNode,"optgroup"))){if(t=at(n).val(),a)return t;o.push(t)}return o},set:function(e,t){for(var n,i,r=e.options,a=at.makeArray(t),o=r.length;o--;)i=r[o],(i.selected=at.inArray(at.valHooks.option.get(i),a)>-1)&&(n=!0);return n||(e.selectedIndex=-1),a}}}}),at.each(["radio","checkbox"],function(){at.valHooks[this]={set:function(e,t){return at.isArray(t)?e.checked=at.inArray(at(e).val(),t)>-1:void 0}},it.checkOn||(at.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var hn=/^(?:focusinfocus|focusoutblur)$/;at.extend(at.event,{trigger:function(t,n,i,r){var a,o,s,d,u,l,c,m=[i||Q],g=nt.call(t,"type")?t.type:t,p=nt.call(t,"namespace")?t.namespace.split("."):[];if(o=s=i=i||Q,3!==i.nodeType&&8!==i.nodeType&&!hn.test(g+at.event.triggered)&&(g.indexOf(".")>-1&&(p=g.split("."),g=p.shift(),p.sort()),u=g.indexOf(":")<0&&"on"+g,t=t[at.expando]?t:new at.Event(g,"object"==typeof t&&t),t.isTrigger=r?2:3,t.namespace=p.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=i),n=null==n?[t]:at.makeArray(n,[t]),c=at.event.special[g]||{},r||!c.trigger||c.trigger.apply(i,n)!==!1)){if(!r&&!c.noBubble&&!at.isWindow(i)){for(d=c.delegateType||g,hn.test(d+g)||(o=o.parentNode);o;o=o.parentNode)m.push(o),s=o;s===(i.ownerDocument||Q)&&m.push(s.defaultView||s.parentWindow||e)}for(a=0;(o=m[a++])&&!t.isPropagationStopped();)t.type=a>1?d:c.bindType||g,l=(Ct.get(o,"events")||{})[t.type]&&Ct.get(o,"handle"),l&&l.apply(o,n),l=u&&o[u],l&&l.apply&&St(o)&&(t.result=l.apply(o,n),t.result===!1&&t.preventDefault());return t.type=g,r||t.isDefaultPrevented()||c._default&&c._default.apply(m.pop(),n)!==!1||!St(i)||u&&at.isFunction(i[g])&&!at.isWindow(i)&&(s=i[u],s&&(i[u]=null),at.event.triggered=g,i[g](),at.event.triggered=void 0,s&&(i[u]=s)),t.result}},simulate:function(e,t,n){var i=at.extend(new at.Event,n,{type:e,isSimulated:!0});at.event.trigger(i,null,t)}}),at.fn.extend({trigger:function(e,t){return this.each(function(){at.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];return n?at.event.trigger(e,t,n,!0):void 0}}),at.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){at.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),at.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),it.focusin="onfocusin"in e,it.focusin||at.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){at.event.simulate(t,e.target,at.event.fix(e))};at.event.special[t]={setup:function(){var i=this.ownerDocument||this,r=Ct.access(i,t);r||i.addEventListener(e,n,!0),Ct.access(i,t,(r||0)+1)},teardown:function(){var i=this.ownerDocument||this,r=Ct.access(i,t)-1;r?Ct.access(i,t,r):(i.removeEventListener(e,n,!0),Ct.remove(i,t))}}});var vn=e.location,_n=at.now(),jn=/\?/;at.parseJSON=function(e){return JSON.parse(e+"")},at.parseXML=function(t){var n;if(!t||"string"!=typeof t)return null;try{n=(new e.DOMParser).parseFromString(t,"text/xml")}catch(i){n=void 0}return(!n||n.getElementsByTagName("parsererror").length)&&at.error("Invalid XML: "+t),n};var wn=/#.*$/,bn=/([?&])_=[^&]*/,yn=/^(.*?):[ \t]*([^\r\n]*)$/gm,xn=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Sn=/^(?:GET|HEAD)$/,Cn=/^\/\//,Tn={},Fn={},kn="*/".concat("*"),En=Q.createElement("a");En.href=vn.href,at.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:vn.href,type:"GET",isLocal:xn.test(vn.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":kn,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":at.parseJSON,"text xml":at.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?z(z(e,at.ajaxSettings),t):z(at.ajaxSettings,e)},ajaxPrefilter:M(Tn),ajaxTransport:M(Fn),ajax:function(t,n){function i(t,n,i,s){var u,c,_,j,b,x=n;2!==w&&(w=2,d&&e.clearTimeout(d),r=void 0,o=s||"",y.readyState=t>0?4:0,u=t>=200&&300>t||304===t,i&&(j=W(m,y,i)),j=U(m,j,y,u),u?(m.ifModified&&(b=y.getResponseHeader("Last-Modified"),b&&(at.lastModified[a]=b),b=y.getResponseHeader("etag"),b&&(at.etag[a]=b)),204===t||"HEAD"===m.type?x="nocontent":304===t?x="notmodified":(x=j.state,c=j.data,_=j.error,u=!_)):(_=x,(t||!x)&&(x="error",0>t&&(t=0))),y.status=t,y.statusText=(n||x)+"",u?f.resolveWith(g,[c,x,y]):f.rejectWith(g,[y,x,_]),y.statusCode(v),v=void 0,l&&p.trigger(u?"ajaxSuccess":"ajaxError",[y,m,u?c:_]),h.fireWith(g,[y,x]),l&&(p.trigger("ajaxComplete",[y,m]),--at.active||at.event.trigger("ajaxStop")))}"object"==typeof t&&(n=t,t=void 0),n=n||{};var r,a,o,s,d,u,l,c,m=at.ajaxSetup({},n),g=m.context||m,p=m.context&&(g.nodeType||g.jquery)?at(g):at.event,f=at.Deferred(),h=at.Callbacks("once memory"),v=m.statusCode||{},_={},j={},w=0,b="canceled",y={readyState:0,getResponseHeader:function(e){var t;if(2===w){if(!s)for(s={};t=yn.exec(o);)s[t[1].toLowerCase()]=t[2];t=s[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===w?o:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return w||(e=j[n]=j[n]||e,_[e]=t),this},overrideMimeType:function(e){return w||(m.mimeType=e),this},statusCode:function(e){var t;if(e)if(2>w)for(t in e)v[t]=[v[t],e[t]];else y.always(e[y.status]);return this},abort:function(e){var t=e||b;return r&&r.abort(t),i(0,t),this}};if(f.promise(y).complete=h.add,y.success=y.done,y.error=y.fail,m.url=((t||m.url||vn.href)+"").replace(wn,"").replace(Cn,vn.protocol+"//"),m.type=n.method||n.type||m.method||m.type,m.dataTypes=at.trim(m.dataType||"*").toLowerCase().match(bt)||[""],null==m.crossDomain){u=Q.createElement("a");try{u.href=m.url,u.href=u.href,m.crossDomain=En.protocol+"//"+En.host!=u.protocol+"//"+u.host}catch(x){m.crossDomain=!0}}if(m.data&&m.processData&&"string"!=typeof m.data&&(m.data=at.param(m.data,m.traditional)),$(Tn,m,n,y),2===w)return y;l=at.event&&m.global,l&&0===at.active++&&at.event.trigger("ajaxStart"),m.type=m.type.toUpperCase(),m.hasContent=!Sn.test(m.type),a=m.url,m.hasContent||(m.data&&(a=m.url+=(jn.test(a)?"&":"?")+m.data,delete m.data),m.cache===!1&&(m.url=bn.test(a)?a.replace(bn,"$1_="+_n++):a+(jn.test(a)?"&":"?")+"_="+_n++)),m.ifModified&&(at.lastModified[a]&&y.setRequestHeader("If-Modified-Since",at.lastModified[a]),at.etag[a]&&y.setRequestHeader("If-None-Match",at.etag[a])),(m.data&&m.hasContent&&m.contentType!==!1||n.contentType)&&y.setRequestHeader("Content-Type",m.contentType),y.setRequestHeader("Accept",m.dataTypes[0]&&m.accepts[m.dataTypes[0]]?m.accepts[m.dataTypes[0]]+("*"!==m.dataTypes[0]?", "+kn+"; q=0.01":""):m.accepts["*"]);for(c in m.headers)y.setRequestHeader(c,m.headers[c]);if(m.beforeSend&&(m.beforeSend.call(g,y,m)===!1||2===w))return y.abort();b="abort";for(c in{success:1,error:1,complete:1})y[c](m[c]);if(r=$(Fn,m,n,y)){if(y.readyState=1,l&&p.trigger("ajaxSend",[y,m]),2===w)return y;m.async&&m.timeout>0&&(d=e.setTimeout(function(){y.abort("timeout")},m.timeout));try{w=1,r.send(_,i)}catch(x){if(!(2>w))throw x;i(-1,x)}}else i(-1,"No Transport");return y},getJSON:function(e,t,n){return at.get(e,t,n,"json")},getScript:function(e,t){return at.get(e,void 0,t,"script")}}),at.each(["get","post"],function(e,t){at[t]=function(e,n,i,r){return at.isFunction(n)&&(r=r||i,i=n,n=void 0),at.ajax(at.extend({url:e,type:t,dataType:r,data:n,success:i},at.isPlainObject(e)&&e))}}),at._evalUrl=function(e){return at.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},at.fn.extend({wrapAll:function(e){var t;return at.isFunction(e)?this.each(function(t){at(this).wrapAll(e.call(this,t))}):(this[0]&&(t=at(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this)},wrapInner:function(e){return this.each(at.isFunction(e)?function(t){at(this).wrapInner(e.call(this,t))}:function(){var t=at(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=at.isFunction(e);return this.each(function(n){at(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){at.nodeName(this,"body")||at(this).replaceWith(this.childNodes)}).end()}}),at.expr.filters.hidden=function(e){return!at.expr.filters.visible(e)},at.expr.filters.visible=function(e){return e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0};var Rn=/%20/g,An=/\[\]$/,Dn=/\r?\n/g,Pn=/^(?:submit|button|image|reset|file)$/i,qn=/^(?:input|select|textarea|keygen)/i;at.param=function(e,t){var n,i=[],r=function(e,t){t=at.isFunction(t)?t():null==t?"":t,i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(void 0===t&&(t=at.ajaxSettings&&at.ajaxSettings.traditional),at.isArray(e)||e.jquery&&!at.isPlainObject(e))at.each(e,function(){r(this.name,this.value)});else for(n in e)J(n,e[n],t,r);return i.join("&").replace(Rn,"+")},at.fn.extend({serialize:function(){return at.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=at.prop(this,"elements");return e?at.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!at(this).is(":disabled")&&qn.test(this.nodeName)&&!Pn.test(e)&&(this.checked||!Pt.test(e))}).map(function(e,t){var n=at(this).val();return null==n?null:at.isArray(n)?at.map(n,function(e){return{name:t.name,value:e.replace(Dn,"\r\n")}}):{name:t.name,value:n.replace(Dn,"\r\n")}}).get()}}),at.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(t){}};var Ln={0:200,1223:204},In=at.ajaxSettings.xhr();it.cors=!!In&&"withCredentials"in In,it.ajax=In=!!In,at.ajaxTransport(function(t){var n,i;return it.cors||In&&!t.crossDomain?{send:function(r,a){var o,s=t.xhr();if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(o in t.xhrFields)s[o]=t.xhrFields[o];t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest");for(o in r)s.setRequestHeader(o,r[o]);n=function(e){return function(){n&&(n=i=s.onload=s.onerror=s.onabort=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?a(0,"error"):a(s.status,s.statusText):a(Ln[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=n(),i=s.onerror=n("error"),void 0!==s.onabort?s.onabort=i:s.onreadystatechange=function(){4===s.readyState&&e.setTimeout(function(){n&&i()})},n=n("abort");try{s.send(t.hasContent&&t.data||null)}catch(d){if(n)throw d}},abort:function(){n&&n()}}:void 0}),at.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return at.globalEval(e),e}}}),at.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),at.ajaxTransport("script",function(e){if(e.crossDomain){var t,n;return{send:function(i,r){t=at("")):void 0},i=function(e,t){var n,i,r,a,o;return n=e.height()||240,i=e.closest(".jdgm-rev__vids").width()||360,o=Math.min(1.5*n,i),r=jdgmSettings.mute_video_by_default?"muted":"",a="",e.find(".jdgm-vid-player__wrapper").html(a).removeClass("jdgm--loading")},a=function(t){var n;return n=jdgmSettings.remove_judgeme_branding?"":"Powered by Judge.me",t.magnificPopup({type:"image",image:{cursor:null},tLoading:"",gallery:{enabled:!0,preload:[1,10],tCounter:""+n+" %curr% / %total%"},zoom:{enabled:!0,duration:200},callbacks:{open:function(){return e("body").addClass("jm-mfp-is-open")},close:function(){return e("body").removeClass("jm-mfp-is-open")}}})},r=function(t){return t.unveil(200,function(){return e(this).parent(".jdgm-rev__pic-link").removeClass("jdgm--loading")}),setTimeout(function(){return jdgm.ScrollEvent.trigger("unveil")})},e(document).on("click",".jm-mfp-rotate-btn",function(){var t,n;return t=e(".jm-mfp-figure .jm-mfp-img"),n=parseInt(e(this).data("rotation"))+parseInt(t.data("rotation")||0),t.data("rotation",n),t.css("transform","rotate("+n+"deg)")}),jdgm.setupMediaGallery(e(".jdgm-rev"))}),jdgm.$(window).on("load",function(){return jdgmSettings.preloadPictures?jdgm.$(".jdgm-rev__pic-link").slice(0,10).each(function(e,t){return jdgm.preload(jdgm.$(t).data("mfp-src"))}):void 0})}.call(this),function(){var e=function(e,t){return function(){return e.apply(t,arguments)}};jdgm.$(function(t){var n,i,r,a,o,s,d,u;return r=".jdgm-all-reviews-widget",o="https://judge.me/reviews/all_reviews_js_based",i=t(r),n=i.find(".jdgm-all-reviews__header"),u=function(){var e,i,r,a;return a=n.data("number-of-reviews"),i=n.data("average-rating"),e=t(".jdgm-all-reviews__summary-text"),a?(r=jdgmSettings.widget_summary_text.replace("{{ average_rating }}",i).replace("{{ number_of_reviews }}",a),r=r.replace("{{ average_rating_1_decimal }}",Math.round(10*i)/10),r=jdgm.pluralizeLongText(r,a),e.text(r)):e.text(jdgmSettings.widget_no_review_text)},s=function(){var e;return jdgmSettings.remove_judgeme_branding?void 0:(e="Powered by Judge.me",t(e).appendTo(r))},d=function(){var e;if("button_click"===jdgmSettings.all_reviews_page_load_reviews_on)return e="
"+jdgmSettings.all_reviews_page_load_more_text+"
",t(e).appendTo(r)},a=function(){function a(){this._openTabCallback=e(this._openTabCallback,this),this._filterAndSortSuccessCB=e(this._filterAndSortSuccessCB,this),this._filterAndSortBeforeCB=e(this._filterAndSortBeforeCB,this),this.currentTabKey=jdgmSettings.widget_first_sub_tab||"product-reviews",this.defaultTabKey=jdgmSettings.widget_first_sub_tab||"product-reviews",this.$productReviewsList=t(".jdgm-all-reviews__body"),this.$shopReviewsList=t(".jdgm-shop-reviews__body")}var s;return s=1e4,a.prototype.setup=function(){return this._setupSubtab(),this._renderFooterSpinner(),this._setupLoadingReviews(),this._setupFilterAndSort(),this._setupSearch()},a.prototype._renderFooterSpinner=function(){return t("
").appendTo(r)},a.prototype._setupLoadingReviews=function(){return"scroll"===jdgmSettings.all_reviews_page_load_reviews_on?this._setupScrollEvent():this._setupMoreReviewsButton()},a.prototype._setupScrollEvent=function(){return jdgm.ScrollEvent.attach(function(e){return function(){return!e._isScrollAtBottom()||e._isLoading()||e._currentOpenRevsList().data("all-reviews-loaded")?void 0:e._sendRequestToFetchAllJsReviews(e.currentTabKey,e._currentOpenRevsList())}}(this))},a.prototype._setupMoreReviewsButton=function(){return this._flagIsLoading(this._currentOpenRevsList(),!1),t(document).on("click",".jdgm-all-reviews-page__load-more",function(e){return function(){return e._sendRequestToFetchAllJsReviews(e.currentTabKey,e._currentOpenRevsList())}}(this))},a.prototype._filterAndSortBeforeCB=function(){return this._sendRequestToRefetchReviews("shop-reviews",this.$shopReviewsList),this._flagIsLoading(this.$productReviewsList,!0),this._flagIsLoading(this.$shopReviewsList,!0),this.$productReviewsList.slideUp(300),this.$shopReviewsList.slideUp(300)},a.prototype._filterAndSortSuccessCB=function(e){return this.$productReviewsList.data("all-reviews-loaded",!1).data("current-page",1),this.$shopReviewsList.data("all-reviews-loaded",!1).data("current-page",1),this.$productReviewsList.empty(),this._appendMoreReviews(this.$productReviewsList,e.html),this._fixReviewsCountAfterFiltering(e),this._flagIsLoading(this.$productReviewsList,!1),this._currentOpenRevsList().show(),jdgm.triggerEvent("filteredInAllReviewsPage",{$reviewsList:this._currentOpenRevsList()})},a.prototype._fixReviewsCountAfterFiltering=function(e){return t(".jdgm-subtab__name[data-tabname=product-reviews] .jdgm-subtab__count").text(e.number_of_product_reviews),t(".jdgm-subtab__name[data-tabname=shop-reviews] .jdgm-subtab__count").text(e.number_of_shop_reviews)},a.prototype._setupFilterAndSort=function(){return i.data("url",o),jdgm._setupSortAndFilterFor(i,this._filterAndSortBeforeCB,this._filterAndSortSuccessCB)},a.prototype._setupSearch=function(){return this._addSearchBar(),jdgm.setupSearch(i,this._filterAndSortBeforeCB,this._filterAndSortSuccessCB,function(){return jdgm.ajaxParamsFor(i)})},a.prototype._addSearchBar=function(){return t(".jdgm-all-reviews__summary").after(jdgm.widgetActionsWrapper(n.data("number-of-reviews"))),n.find(".jdgm-widget-actions-wrapper").append(n.find(".jdgm-write-rev-link").detach())},a.prototype._sendRequestToFetchAllJsReviews=function(e,n){return this._flagIsLoading(n,!0),t.ajax({url:o,method:"GET",data:t.extend(jdgm.ajaxParamsFor(i),{page:(n.data("current-page")||1)+1,review_type:e}),success:function(e){return function(t){return e._appendMoreReviews(n,t.html),t.html||n.data("all-reviews-loaded",!0),n.data("current-page",parseInt(t.page))}}(this),complete:function(e){return function(){return e._flagIsLoading(n,!1)}}(this)})},a.prototype._setupSubtab=function(){var e;return this.shopReviewsCount=n.data("number-of-shop-reviews")||0,this.productReviewsCount=n.data("number-of-product-reviews")||0,"shop-reviews"===this.defaultTabKey&&this.productReviewsCount<=0||"product-reviews"===this.defaultTabKey&&this.shopReviewsCount<=0?void 0:(e=jdgm._renderAllRevsSubtab(this.shopReviewsCount,this.productReviewsCount),e.insertAfter(n),e.data("open-tab-callback",this._openTabCallback))},a.prototype._openTabCallback=function(e){return this.currentTabKey=e,this.$productReviewsList.toggle("product-reviews"===e),this.$shopReviewsList.toggle("shop-reviews"===e),e!==this.defaultTabKey&&this._fetchShopReviewsFirstTime(i),jdgm.triggerEvent("openedTabInAllReviewsPage",{$reviewsList:this._currentOpenRevsList()})},a.prototype._fetchShopReviewsFirstTime=function(){var e,t;if(!this.firstTimeLoadedShopReviews)return this.firstTimeLoadedShopReviews=!0,e={"product-reviews":this.productReviewsCount,"shop-reviews":this.shopReviewsCount},t={"shop-reviews":this.$shopReviewsList,"product-reviews":this.$productReviewsList},e[this._otherReviewsTab()]>0?this._sendRequestToRefetchReviews(this._otherReviewsTab(),t[this._otherReviewsTab()]):void 0 },a.prototype._otherReviewsTab=function(){return"product-reviews"===this.defaultTabKey?"shop-reviews":"product-reviews"},a.prototype._sendRequestToRefetchReviews=function(e,n){return this._flagIsLoading(n,!0),t.ajax({url:o,data:t.extend(jdgm.ajaxParamsFor(i),{review_type:e}),success:function(e){return function(t){return n.empty(),e._appendMoreReviews(n,t.html),e._flagIsLoading(n,!1)}}(this)})},a.prototype._appendMoreReviews=function(e,t){var n;return e.append(t),n=e.find(".jdgm-rev:not(."+jdgm.DONE_SETUP_CLASS+")"),jdgm.triggerEvent("doneAppendMoreReviewsInAllReviewsPage",{$reviews:n}),jdgm.customizeReviews(),jdgm.setupMediaGallery(e)},a.prototype._currentOpenRevsList=function(){return"product-reviews"===this.currentTabKey&&this.$productReviewsList||this.$shopReviewsList},a.prototype._isScrollAtBottom=function(){var e,n,i,r;return n=t(window),e=this._currentOpenRevsList(),i=e.offset().top+e.height(),r=n.scrollTop()+n.height(),r>i-s},a.prototype._isLoading=function(){return this.$productReviewsList.data("is-loading")||this.$shopReviewsList.data("is-loading")},a.prototype._flagIsLoading=function(e,t){return e.data("is-loading",t),i.find(".jdgm-spinner").toggle(this._isLoading()),i.find(".jdgm-all-reviews-page__load-more-wrapper").toggleClass("jdgm-hidden",t),e.data("all-reviews-loaded")?i.find(".jdgm-all-reviews-page__load-more-wrapper").toggleClass("jdgm-hidden"):void 0},a}(),i.length<=0?void 0:(u(),d(),(new a).setup(),s())})}.call(this),function(){jdgm.$(function(e){var t,n,i,r,a,o,s,d,u,l;return i=".jdgm-carousel",t=".jdgm-carousel-item",n=".jdgm-carousel__item-wrapper",o=function(e,t){return(e%t+t)%t},d=function(t){return s(t),u(t),jdgm.asyncEach(t.find(".jdgm-carousel-item__review"),function(t){return e(t).dotdotdot({watch:!0})},150),t.addClass("jdgm-carousel--done")},s=function(e){return l(e),e.data("current-slide",0).data("slides-count",e.find(t).length)},l=function(e){var i,r;return e.data("vertical-slide")?(i=parseInt(e.find(t).outerHeight(!0)),r=Math.round(e.find(n).outerHeight()/i)):(i=parseInt(e.find(t).outerWidth(!0)),r=Math.round(e.find(n).outerWidth()/i)),e.data("slide-dimension",i).data("slides-per-view",r)},u=function(e){return e.find(".jdgm-carousel__right-arrow").on("click",function(){return jdgm.slideNext(e)}),e.find(".jdgm-carousel__left-arrow").on("click",function(){return jdgm.slidePrev(e)})},r=function(e){var i,r;return i=e.find(t),r=i.css("font-size"),e.find(n).css("font-size",0),i.css("font-size",r)},jdgm.performSliding=function(e,t){var i,r,a,d;return e.data("current-slide")&&e.data("slides-count")&&e.data("slides-per-view")||s(e),i=e.data("current-slide"),r=e.data("slides-count")-e.data("slides-per-view")+1,a=o(i+t,r),d=a*e.data("slide-dimension"),e.data("vertical-slide")?e.find(n).css("transform","translate3d(0px, "+-d+"px, 0px)"):e.find(n).css("transform","translate3d("+-d+"px, 0px, 0px)"),e.data("current-slide",a)},jdgm.slideNext=function(t){return jdgm.performSliding(t||e(i).first(),1)},jdgm.slidePrev=function(t){return jdgm.performSliding(t||e(i).first(),-1)},jdgm.updateCarousel=function(e){return l(e),jdgm.performSliding(e,0)},jdgm.autoSlideCarousel=function(e){var t,n;return n=1e3*(jdgmSettings.featured_carousel_autoslide_interval||jdgmSettings.autoSlideInterval),t=setInterval(function(){return jdgm.performSliding(e,1)},n),e.data("auto-slider",t)},a=function(){return e(".jdgm-carousel-wrapper, .jdgm-carousel-title, .jdgm-all-reviews-rating-wrapper, .jdgm-carousel").addClass("jdgm-hidden")},jdgm.initializeCarousel=function(){return jdgm.asyncEach(e(i),function(t){var n,i;return n=e(t),d(n),i=n.find(".jdgm-carousel-item"),jdgm.customizeCarouselTimestamp(i),!jdgmSettings.carouselNoAutoSlide&&jdgmSettings.featured_carousel_autoslide_interval>0&&jdgm.autoSlideCarousel(n),r(n),0===i.length?a():void 0})},setTimeout(jdgm.initializeCarousel,0),e(window).on("resize",function(){return jdgm.asyncEach(e(i),function(t){return jdgm.updateCarousel(e(t))})})})}.call(this),function(){jdgm.$(function(e){var t,n,i,r,a,o,s,d,u,l,c,m,g,p,f,h,v,_,j,w,b,y,x,S,C;return a=".jdgm-revs-tab .jdgm-rev",i=e(".jdgm-revs-tab"),n=e(".jdgm-revs-tab__wrapper"),t=e(".jdgm-revs-tab__content"),r=e(".jdgm-revs-tab-btn"),l=jdgmSettings.widget_first_sub_tab||"product-reviews",jdgm.showReviewsTab=function(){return n.length>0?(n.addClass("jdgm-show"),e("body").addClass("jdgm-lock-scroll"),jdgm.triggerEvent("doneShowReviewsTab",{$tabModal:n})):void 0},jdgm.hideReviewsTab=function(){return n.removeClass("jdgm-show"),e("body").removeClass("jdgm-lock-scroll")},_=function(n){var i,r;return i=t.find(".jdgm-revs-tab__content-body"),i.length>0?(r=e(n.html).find(".jdgm-revs-tab__content-body").html(),i.html(r)):(r=e(n.html).find(".jdgm-revs-tab__content").html(),t.html(r))},C=function(t){var n,r,a;return n=e(t.html).find(".jdgm-revs-tab__content-header"),a=n.data("number-of-shop-reviews")||0,r=n.data("number-of-product-reviews"),i.find(".jdgm-subtab__name[data-tabname=product-reviews] .jdgm-subtab__count").text(r),i.find(".jdgm-subtab__name[data-tabname=shop-reviews] .jdgm-subtab__count").text(a)},h=function(){return jdgm.customizeReviews(),jdgm.setupMediaGallery(e(".jdgm-revs-tab__reviews"))},d=function(){return e(".jdgm-revs-tab__spinner").show(),e(".jdgm-revs-tab__reviews").slideUp()},u=function(t){return _(t),C(t),h(),e(".jdgm-revs-tab__spinner").hide()},f=function(){return e.extend(jdgm.ajaxParamsFor(i),{review_type:l})},x=function(){return jdgm.setupPaginate(i,d,u,f),jdgm._setupSortAndFilterFor(i,d,u,f)},v=function(){var e,t,n,r;return e=i.find(".jdgm-revs-tab__content-header"),r=e.data("number-of-shop-reviews")||0,n=e.data("number-of-product-reviews"),"shop-reviews"===l&&0>=n||"product-reviews"===l&&0>=r?void 0:(t=jdgm._renderAllRevsSubtab(r,n),t.insertAfter(e),t.data("open-tab-callback",p))},p=function(t){return l!==t?(l=t,d(),e.ajax({url:i.find(".jdgm-paginate").data("url"),data:f(),success:u})):void 0},o=function(){return jdgm.hasBgColor(r)?void 0:(r.css("background-color",jdgmSettings.linkColor),r.css("color",jdgmSettings.bgColor))},w=function(){return o(),"0px"===r.css("padding")?r.css("padding","8px 16px"):void 0},b=function(){return e(document).keydown(function(t){return 27!==t.keyCode||e.magnificPopup.instance.isOpen?void 0:jdgm.hideReviewsTab()})},g=function(){return e(".jdgm-revs-tab__main").prepend(e(".jdgm-revs-tab__header").detach())},j=function(){return e(".jdgm-close-ico").on("click",jdgm.hideReviewsTab),e(".jdgm-revs-tab .jdgm-mask").on("click",jdgm.hideReviewsTab)},m=function(){return e(a).length>0?i.show():void 0},c=function(){return jdgmSettings.floating_tab_button_name&&e(".jdgm-revs-tab-btn").text()!==jdgmSettings.floating_tab_button_name&&e(".jdgm-revs-tab-btn").text(jdgmSettings.floating_tab_button_name),jdgmSettings.floating_tab_title&&e(".jdgm-revs-tab__title").text()!==jdgmSettings.floating_tab_title?e(".jdgm-revs-tab__title").text(jdgmSettings.floating_tab_title):void 0},S=function(){return s(),jdgm.setupSearch(i,d,u,f)},s=function(){var t;return t=e(".jdgm-revs-tab__content-header"),t.prepend(jdgm.widgetActionsWrapper()),t.find(".jdgm-widget-actions-wrapper").append(t.find(".jdgm-write-rev-link").detach()),t.prepend(t.find(".jdgm-review-search").detach())},(y=function(){return m(),b(),g(),w(),v(),x(),j(),c(),S(),r.on("click",jdgm.showReviewsTab)})()})}.call(this),function(){jdgm.$(function(e){var t,n,i,r,a,o,s,d;return n=".jdgm-question-form-wrapper",i=".jdgm-review-widget",t=".jdgm-ask-question-btn",jdgm.openQuestionForm=jdgmSettings.openQuestionForm||function(e){return jdgm.closeForm(e),e.find(n).slideDown(),e.find(".jdgm-question-form input[name=reviewer_name]").focus()},jdgm.closeQuestionForm=jdgmSettings.closeQuestionForm||function(e){return e.find(n).slideUp()},jdgm.submitQuestion=function(t){return t.find(".jdgm-submit-question").prop("disabled","disabled"),e.ajax({url:"https://judge.me/api/questions",method:"POST",data:e.extend({},jdgm.shopParams(),jdgm.getQuestionFormData(t)),success:function(){var e;return e=t.closest(i),jdgm.closeQuestionForm(e),jdgm._showSuccessQuestionMsg(e)}})},jdgm.getQuestionFormData=function(e){return{name:e.find("input[name=reviewer_name]").val(),email:e.find("input[name=reviewer_email]").val(),question_content:e.find("textarea[name=question_content]").val(),id:e.closest(i).data("id"),product_title:e.closest(i).data("product-title"),handle:a(e)}},jdgm._showSuccessQuestionMsg=function(t){var i;return i=jdgmSettings.widget_question_submit_success_text,e("
"+i+"
").insertBefore(t.find(n)),jdgm.changeToRefreshBtn(t)},r=function(e){return e.find(".jdgm-rev-widg__header").append(jdgm.templates.questionForm())},o=function(t){var n;return n=e(""+jdgmSettings.widget_open_question_form_text+""),n.insertAfter(t.find(".jdgm-write-rev-link"))},s=function(e){var i;return i=e.find(t),i.on("click",function(){var t;return t=e.find(n),t.is(":visible")&&jdgm.closeQuestionForm(e)||jdgm.openQuestionForm(e),!1})},d=function(t){return t.find(n).on("submit",function(t){return t.preventDefault(),jdgm.submitQuestion(e(this))})},a=function(){var e;return e=window.location.pathname.split("/"),e.pop()||e.pop()},jdgm._setupQuestionsForm=function(e){return e.find(n).length>0||!jdgmSettings.enable_question_anwser?void 0:(r(e),o(e),s(e),d(e))},jdgmSettings.enable_question_anwser?jdgm.eachRevWidgets(function(e){return jdgm._setupQuestionsForm(e)}):void 0})}.call(this),function(){jdgm.$(function(e){var t,n,i,r,a,o,s,d,u;return t="
",i=".jdgm-quest-widg__body",n=".jdgm-rev-widg__paginate-spinner-wrapper",jdgm.fetchQuestsFirstTime=function(t){var n,i,r,o;return o=t.find(".jdgm-rev-widg").data("number-of-questions")||0,t.data("first-time-quests-load")||0>=o?void 0:(t.data("first-time-quests-load",!0),n=t.find(".jdgm-subtab__name.jdgm--active").data("tabname"),"questions"===n&&u(t),i=t.data("id"),r="api/questions/questions_for_widget","example-product-id"===i&&(r="api/questions/fake_question_widget"),e.ajax({url:"https://judge.me/"+r,data:{product_id:i,shop_domain:jdgm.shopDomain(),platform:jdgmSettings.platform},success:function(e){return a(e,t)}}))},d=function(e){var t,n,i;return t=e.find(".jdgm-rev-widg"),i=t.data("number-of-reviews")||0,n=t.data("number-of-questions")||0,0>=n?void 0:o(e,i,n)},o=function(n,i,a){var o,s;return s=[{key:"reviews",title:jdgmSettings.widget_reviews_subtab_text,count:i},{key:"questions",title:jdgmSettings.widget_questions_subtab_text,count:a}],o=e(jdgm._renderSubtab(s)),o.insertAfter(n.find(".jdgm-rev-widg__header")),o.data("open-tab-callback",function(e){return r(n,e)}),e(t).insertAfter(n.find(".jdgm-rev-widg__body"))},r=function(e,t){return null==t&&(t="reviews"),e.find(".jdgm-rev-widg__body").toggle("reviews"===t),e.find(i).toggle("questions"===t),"questions"===t?jdgm.fetchQuestsFirstTime(e):void 0},a=function(e,t){return t.find(i).html(e.html),jdgm._fixAuthorNameIfFromShop(t),jdgm.customizeQuestions(),t.find(n).hide(),t.find(i).slideDown()},s=function(e){var t,n,r;return n=function(){return{product_id:e.data("id")}},t=function(){return u(e)},r=function(t){return a(t,e)},jdgm.setupPaginate(e.find(i),t,r,n)},u=function(e){return e.find(n).show(),e.find(i).slideUp(),jdgm.scrollTo(e)},jdgmSettings.enable_question_anwser?jdgm.eachRevWidgets(function(e){return d(e),s(e)}):void 0})}.call(this),function(){jdgm.$(function(e){var t,n,i,r,a,o,s,d,u,l;return jdgm.addProductJld=function(t,n){var i,r,a,o;if(!s())return i=e(".jdgm-rev-widg"),a=i.data("number-of-reviews"),o=i.data("average-rating"),t||(t=e("link[rel='canonical']").prop("href")+"#product"),n||(n=e(".jdgm-review-widget").data("product-title")),a>0&&o&&t&&n?(r=document.createElement("script"),r.className="jdgm-aggregate-rating-jld",r.type="application/ld+json",r.text=JSON.stringify({"@context":"http://schema.org","@type":"Product","@id":t,name:n,aggregateRating:{"@type":"AggregateRating",ratingValue:o,reviewCount:a}}),document.querySelector("body").appendChild(r)):void 0},jdgm.addJldToAllReviewsPage=function(t){var n,i,r,a,o;if(!s())return n=e(".jdgm-all-reviews__header"),r=n.data("number-of-reviews"),a=n.data("average-rating"),t||(t=e('meta[property="og:site_name"]').attr("content")||e("title").text()),o=jdgmSettings.allReviewsPageStructuredDataType||"Product",r>0&&a&&t?(i=document.createElement("script"),i.className="jdgm-aggregate-rating-jld",i.type="application/ld+json",i.text=JSON.stringify({"@context":"http://schema.org","@type":o,name:t,aggregateRating:{"@type":"AggregateRating",ratingValue:a,reviewCount:r}}),document.querySelector("body").appendChild(i)):void 0},jdgm.productJldUriId=function(){var e,s,d,u;return u=t().filter(r).filter(i),s=u[0],s?s["@id"]:(e=a(t().filter(n).map(o)),(d=e[0])?d["@id"]:void 0)},d=function(e){return e.aggregateRating&&"Product"===e["@type"]},n=function(e){return!!e["@graph"]},r=function(e){return"Product"===e["@type"]},i=function(e){return!!e["@id"]},o=function(){return function(e){return e["@graph"].filter(r).filter(i)}}(this),a=function(e){return[].concat.apply([],e)},t=function(){return e.map(e('script[type="application/ld+json"]'),function(e){var t;try{return JSON.parse(e.innerText)}catch(n){return t=n,{}}})},s=function(){return t().filter(d).length>0},l=e(".jdgm-rich-snippet.jdgm--old").length<=0,jdgmSettings.jldDisable||jdgmSettings.disable_json_ld||!l||(u=jdgmSettings.jldCanonicalUrl||jdgm.productJldUriId(),jdgm.addProductJld(u,jdgmSettings.jldProductTitle)),jdgmSettings.add_json_ld_snippet_on_all_reviews_page&&l&&jdgm.addJldToAllReviewsPage(jdgmSettings.shopName),jdgmSettings.removeMicrodata||jdgmSettings.remove_microdata_snippet?e(".jdgm-rich-snippet").remove():void 0})}.call(this),function(){jdgm.$(function(e){var t,n,i,r,a,o,s;return t=".jdgm-rev-widg__paginate-spinner-wrapper",n=".jdgm-rev-widg__body",o=function(e){var t,i,o;return i=function(){return jdgm.ajaxParamsFor(e)},t=function(){return r(e)},o=function(t){return a(t,e)},jdgm.setupPaginate(e.find(n),t,o,i)},a=function(e,i){return i.find(n).html(e.html),jdgm.customizeReviews(),jdgm.setupMediaGallery(i.find(".jdgm-rev-widg__reviews")),i.find(t).hide(),i.find(n).slideDown(),jdgm.scrollTo(i)},r=function(e){return jdgm.openSubtab(e,"reviews"),e.find(t).show(),e.find(n).slideUp(),jdgm.scrollTo(e)},s=function(e){var t,n,i;return n=function(){return jdgm.ajaxParamsFor(e)},t=function(){return r(e)},i=function(t){return a(t,e)},jdgm.setupSearch(e,t,i,n)},i=function(e,t){var n,i,o;return i=function(){return jdgm.ajaxParamsFor(t)},n=function(){return r(t)},o=function(e){return a(e,t)},jdgm.fetchSingleReview(t,e,n,o,i)},jdgm._setupLoadReviewsEventsFor=function(e){return jdgm._setupSortAndFilterFor(e,r,a),o(e),s(e)},jdgm.eachRevWidgets(function(t){return jdgm._setupLoadReviewsEventsFor(t),e.urlParam("judgeme_review_uuid")?setTimeout(function(){return i(e.urlParam("judgeme_review_uuid"),t)},0):void 0})})}.call(this),function(){jdgm.$(function(e){var t,n,i,r,a,o,s,d,u;return n=location.origin+"/products/",t="jdgm-widget jdgm-preview-badge jdgm--from-js",r="jdgm--waiting-for-batch-done",i=3e3,jdgm.batchRenderBadges=function(t){var n;return n=e.map(t,function(e){return u(e.productHandle,e.badgePlaceholder)}),e.when.apply(this,n).then(a(t),function(){return setTimeout(a(t),i)})},jdgm.batchRenderBadgesWithCallback=function(e,t){return jdgmSettings.renderBadge=t,jdgm.batchRenderBadges(e)},jdgm.renderJsBadge=function(n,i,r){var a,o;return o=d(n,i),a=e(r),a.addClass(t).html(o),jdgm.buildStarsFor(a.find(".jdgm-prev-badge__stars"),n),a},u=function(t,i){var a;return a=jdgmSettings.productUrlBuilder&&jdgmSettings.productUrlBuilder({handle:t})||n+t,e.ajax(a).success(function(n){var a;return s(n,i,t),a=e(i),a.find(".jdgm-prev-badge").addClass(r)})},s=function(t,n,i){var r,a,o;return r=e(t).find(".jdgm-rev-widg"),a=r.data("average-rating")||0,o=r.data("number-of-reviews")||0,jdgmSettings.renderBadge?jdgmSettings.renderBadge(a,o,n,i):jdgm.renderJsBadge(a,o,n)},a=function(t){return function(){return jdgm.customizeBadges(),jdgm.asyncEach(t,function(t){return e(t.badgePlaceholder).find(".jdgm-prev-badge").removeClass(r)})}},d=function(e,t){var n;return 0===t?jdgm.templates.emptyBadge():(n=o(t),jdgm.templates.badge({averageRating:e,reviewCount:t,previewBadgeText:n}))},o=function(e){var t;return t=1===e&&" review"||" reviews",e+t}})}.call(this),function(){jdgm.$(function(e){var t;return(t=function(){return jdgm.asyncEach(e(".jdgm-all-reviews-rating"),function(t){return jdgm.buildStarsFor(e(t))})})()})}.call(this),function(){jdgm.$(function(e){var t,n,i,r,a,o,s,d,u;return t="https://cache.judge.me",n=t+"/widgets/"+jdgmSettings.platform+"/"+jdgm.shopDomain(),i="jdgm--waiting-for-batch-done",jdgm.loadBadgesInContainer=function(t,n){var i,a,o,s;return null==t&&(t=document),null==n&&(n=jdgm.PUBLIC_TOKEN),i=e(t),a=i.find(".jdgm-preview-badge"),s={public_token:n},a.length>0&&(o=a.map(function(t,n){return e(n).data("id")}),s.preview_badge_product_ids=o.toArray().join(",")),s.preview_badge_product_ids?u(s,r,a):void 0},jdgm.loadBadgesFromList=function(t,n){var i,r;return null==n&&(n=jdgm.PUBLIC_TOKEN),r={public_token:n},i=e.map(t,function(e){return e.productId}),r.preview_badge_product_ids=i.join(","),r.preview_badge_product_ids?u(r,a,t):void 0},u=function(t,i,r){return e.ajax({url:n,method:"GET",data:t,success:function(e){return i(r,e.preview_badges)}})},a=function(t,n){return jdgm.asyncEach(t,function(t){var r,a,o,s;return o=t.badgePlaceholder,r=e(o),s=t.productId,a="
"+n[s]+"
",r.html(a),r.find(".jdgm-prev-badge").addClass(i)}),setTimeout(function(){return o(t)},0)},r=function(t,n){return jdgm.asyncEach(t,function(t){var i;return i=e(t),i.data("added-from-cache-server")?void 0:(i.html(n[i.data("id")]),d(i))}),setTimeout(function(){return s(t)},0)},d=function(e){var t;return e.removeClass(jdgm.DONE_SETUP_CLASS),t=e.find(".jdgm-prev-badge").data("number-of-reviews"),e.toggle(t>0),e.find(".jdgm-prev-badge").addClass(i),e.data("added-from-cache-server",!0)},s=function(e){return jdgm.customizeBadges(),e.find("."+i).removeClass(i)},o=function(t){return jdgm.customizeBadges(),jdgm.asyncEach(t,function(t){return e(t.badgePlaceholder).find(".jdgm-prev-badge").removeClass(i)})}})}.call(this); \ No newline at end of file