(function(e,a){var r=[];function n(t,r){var n=a.Deferred();(function e(){a.ajax(t).done(n.resolve).fail(function(){console.log("AjaxRetry attempt :".concat(r));r--;if(r>0){e()}else{n.rejectWith(this,arguments)}})})();return n.promise()}function t(){var e=a.Deferred();var t=a('#antiforgerytoken input[name="__RequestVerificationToken"]').val();if(!t){r.push(e);if(r.length===1){n({type:"GET",url:a("#antiforgerytoken").attr("data-url"),cache:false},3).done(function(e){a("#antiforgerytoken").empty().append(e);t=a('#antiforgerytoken input[name="__RequestVerificationToken"]').val();r.forEach(function(e){e.resolve(t)});r=[]}).fail(function(e){if(e&&e.responseText){var t="GetAntiForgeryToken failed".concat("Details: ",e.responseText);console.log(t);ClientLogWrapper.getLogger().traceError(t,"antiforgerytoken","","GetTokenDeferred")}r.forEach(function(e){e.reject()});r=[]})}}else{e.resolve(t)}return e.promise()}function i(){var e=a("#antiforgerytoken").attr("data-url");n({type:"GET",url:e,cache:false},3).done(function(t){a('input[name="__RequestVerificationToken"]').each(function(){var e=this;a(e).replaceWith(t)})}).fail(function(e){if(e&&e.responseText){var t="GetAntiForgeryToken failed".concat("Details: ",e.responseText);console.log(t);ClientLogWrapper.getLogger().traceError(t,"antiforgerytoken","","RefreshToken")}})}function s(e,t,r){if(t.mimeType&&t.mimeType==="multipart/form-data"){if(!t.data){t.data=new FormData}t.data.append("__RequestVerificationToken",e)}else{if(r){a("").attr("name","__RequestVerificationToken").attr("type","hidden").appendTo(r).val(e)}else{if(!t.headers){var n={};n["__RequestVerificationToken"]=e;a.extend(t,{headers:n})}else{t.headers["__RequestVerificationToken"]=e}}}}function o(r,n){var i=a.Deferred();t().done(function(e){s(e,r,n);if(n){var t=r.complete;r.complete=function(e){validateLoginSession(null,null,e,t)};n.ajaxSubmit(r)}else{a.ajax(r).done(function(e,t,r){validateLoginSession(e,t,r,i.resolve)}).fail(i.reject)}}).fail(function(){i.rejectWith(this,arguments)});return i.promise()}e.ajaxSafePost=o;e.getTokenDeferred=t;e.refreshToken=i})(window.shell=window.shell||{},jQuery);function validateLoginSession(e,t,r,n){var i=JSON.parse(r.getResponseHeader("x-responded-json"));if(i&&i.status&&(i.status===401||i.status===403)){redirectToLogin()}else if(n&&typeof n==="function"){n(e,t,r)}}function redirectToLogin(){var e=window.location.origin+"/SignIn?returnUrl="+encodeURIComponent(window.location.href);window.location.replace(e)}!window.addEventListener&&function(e,t,r,n,i,a,s){e[n]=t[n]=r[n]=function(e,t){var r=this;s.unshift([r,e,t,function(e){e.currentTarget=r;e.preventDefault=function(){e.returnValue=false};e.stopPropagation=function(){e.cancelBubble=true};e.target=e.srcElement||r;t.call(r,e)}]);this.attachEvent("on"+e,s[0][3])};e[i]=t[i]=r[i]=function(e,t){for(var r=0,n;n=s[r];++r){if(n[0]==this&&n[1]==e&&n[2]==t){return this.detachEvent("on"+e,s.splice(r,1)[0][3])}}};e[a]=t[a]=r[a]=function(e){return this.fireEvent("on"+e.type,e)}}(Window.prototype,HTMLDocument.prototype,Element.prototype,"addEventListener","removeEventListener","dispatchEvent",[]); /**! @license handlebars v4.7.7 Copyright (C) 2011-2019 by Yehuda Katz Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ (function e(t,r){if(typeof exports==="object"&&typeof module==="object")module.exports=r();else if(typeof define==="function"&&define.amd)define([],r);else if(typeof exports==="object")exports["Handlebars"]=r();else t["Handlebars"]=r()})(this,function(){return function(r){var n={};function i(e){if(n[e])return n[e].exports;var t=n[e]={exports:{},id:e,loaded:false};r[e].call(t.exports,t,t.exports,i);t.loaded=true;return t.exports}i.m=r;i.c=n;i.p="";return i(0)}([function(e,t,r){"use strict";var n=r(1)["default"];t.__esModule=true;var i=r(2);var a=n(i);var s=r(45);var o=n(s);var u=r(46);var l=r(51);var c=r(52);var h=n(c);var f=r(49);var p=n(f);var d=r(44);var m=n(d);var g=a["default"].create;function y(){var r=g();r.compile=function(e,t){return l.compile(e,t,r)};r.precompile=function(e,t){return l.precompile(e,t,r)};r.AST=o["default"];r.Compiler=l.Compiler;r.JavaScriptCompiler=h["default"];r.Parser=u.parser;r.parse=u.parse;r.parseWithoutProcessing=u.parseWithoutProcessing;return r}var v=y();v.create=y;m["default"](v);v.Visitor=p["default"];v["default"]=v;t["default"]=v;e.exports=t["default"]},function(e,t){"use strict";t["default"]=function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=true},function(e,t,r){"use strict";var n=r(3)["default"];var i=r(1)["default"];t.__esModule=true;var a=r(4);var s=n(a);var o=r(37);var u=i(o);var l=r(6);var c=i(l);var h=r(5);var f=n(h);var p=r(38);var d=n(p);var m=r(44);var g=i(m);function y(){var t=new s.HandlebarsEnvironment;f.extend(t,s);t.SafeString=u["default"];t.Exception=c["default"];t.Utils=f;t.escapeExpression=f.escapeExpression;t.VM=d;t.template=function(e){return d.template(e,t)};return t}var v=y();v.create=y;g["default"](v);v["default"]=v;t["default"]=v;e.exports=t["default"]},function(e,t){"use strict";t["default"]=function(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t["default"]=e;return t}};t.__esModule=true},function(e,t,r){"use strict";var n=r(1)["default"];t.__esModule=true;t.HandlebarsEnvironment=y;var i=r(5);var a=r(6);var s=n(a);var o=r(10);var u=r(30);var l=r(32);var c=n(l);var h=r(33);var f="4.7.7";t.VERSION=f;var p=8;t.COMPILER_REVISION=p;var d=7;t.LAST_COMPATIBLE_COMPILER_REVISION=d;var m={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};t.REVISION_CHANGES=m;var g="[object Object]";function y(e,t,r){this.helpers=e||{};this.partials=t||{};this.decorators=r||{};o.registerDefaultHelpers(this);u.registerDefaultDecorators(this)}y.prototype={constructor:y,logger:c["default"],log:c["default"].log,registerHelper:function e(t,r){if(i.toString.call(t)===g){if(r){throw new s["default"]("Arg not supported with multiple helpers")}i.extend(this.helpers,t)}else{this.helpers[t]=r}},unregisterHelper:function e(t){delete this.helpers[t]},registerPartial:function e(t,r){if(i.toString.call(t)===g){i.extend(this.partials,t)}else{if(typeof r==="undefined"){throw new s["default"]('Attempting to register a partial called "'+t+'" as undefined')}this.partials[t]=r}},unregisterPartial:function e(t){delete this.partials[t]},registerDecorator:function e(t,r){if(i.toString.call(t)===g){if(r){throw new s["default"]("Arg not supported with multiple decorators")}i.extend(this.decorators,t)}else{this.decorators[t]=r}},unregisterDecorator:function e(t){delete this.decorators[t]},resetLoggedPropertyAccesses:function e(){h.resetLoggedProperties()}};var v=c["default"].log;t.log=v;t.createFrame=i.createFrame;t.logger=c["default"]},function(e,t){"use strict";t.__esModule=true;t.extend=s;t.indexOf=c;t.escapeExpression=h;t.isEmpty=f;t.createFrame=p;t.blockParams=d;t.appendContextPath=m;var r={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`","=":"="};var n=/[&<>"'`=]/g,i=/[&<>"'`=]/;function a(e){return r[e]}function s(e){for(var t=1;t0){if(t.ids){t.ids=[t.name]}return a.helpers.each(e,t)}else{return r(this)}}else{if(t.data&&t.ids){var i=s.createFrame(t.data);i.contextPath=s.appendContextPath(t.data.contextPath,t.name);t={data:i}}return n(e,t)}})};e.exports=t["default"]},function(r,n,i){(function(p){"use strict";var d=i(13)["default"];var e=i(1)["default"];n.__esModule=true;var m=i(5);var t=i(6);var g=e(t);n["default"]=function(e){e.registerHelper("each",function(n,e){if(!e){throw new g["default"]("Must pass iterator to #each")}var i=e.fn,t=e.inverse,r=0,a="",s=undefined,o=undefined;if(e.data&&e.ids){o=m.appendContextPath(e.data.contextPath,e.ids[0])+"."}if(m.isFunction(n)){n=n.call(this)}if(e.data){s=m.createFrame(e.data)}function u(e,t,r){if(s){s.key=e;s.index=t;s.first=t===0;s.last=!!r;if(o){s.contextPath=o+e}}a=a+i(n[e],{data:s,blockParams:m.blockParams([n[e],e],[o+e,null])})}if(n&&typeof n==="object"){if(m.isArray(n)){for(var l=n.length;r=0){t=r}else{t=parseInt(t,10)}}return t},log:function e(t){t=s.lookupLevel(t);if(typeof console!=="undefined"&&s.lookupLevel(s.level)<=t){var r=s.methodMap[t];if(!console[r]){r="log"}for(var n=arguments.length,i=Array(n>1?n-1:0),a=1;a=l.LAST_COMPATIBLE_COMPILER_REVISION&&t<=l.COMPILER_REVISION){return}if(t2){E.push("'"+this.terminals_[_]+"'")}if(this.lexer.showPosition){D="Parse error on line "+(u+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+E.join(", ")+", got '"+(this.terminals_[y]||y)+"'"}else{D="Parse error on line "+(u+1)+": Unexpected "+(y==1?"end of input":"'"+(this.terminals_[y]||y)+"'")}this.parseError(D,{text:this.lexer.match,token:this.terminals_[y]||y,line:this.lexer.yylineno,loc:p,expected:E})}}if(k[0]instanceof Array&&k.length>1){throw new Error("Parse Error: multiple actions possible at state: "+b+", token: "+y)}switch(k[0]){case 1:n.push(y);i.push(this.lexer.yytext);a.push(this.lexer.yylloc);n.push(k[1]);y=null;if(!v){l=this.lexer.yyleng;o=this.lexer.yytext;u=this.lexer.yylineno;p=this.lexer.yylloc;if(c>0)c--}else{y=v;v=null}break;case 2:M=this.productions_[k[1]][1];w.$=i[i.length-M];w._$={first_line:a[a.length-(M||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(M||1)].first_column,last_column:a[a.length-1].last_column};if(d){w._$.range=[a[a.length-(M||1)].range[0],a[a.length-1].range[1]]}S=this.performAction.call(w,o,l,u,this.yy,k[1],i,a);if(typeof S!=="undefined"){return S}if(M){n=n.slice(0,-1*M*2);i=i.slice(0,-1*M);a=a.slice(0,-1*M)}n.push(this.productions_[k[1]][0]);i.push(w.$);a.push(w._$);P=s[n[n.length-2]][n[n.length-1]];n.push(P);break;case 3:return true}}return true}};var t=function(){var e={EOF:1,parseError:function e(t,r){if(this.yy.parser){this.yy.parser.parseError(t,r)}else{throw new Error(t)}},setInput:function e(t){this._input=t;this._more=this._less=this.done=false;this.yylineno=this.yyleng=0;this.yytext=this.matched=this.match="";this.conditionStack=["INITIAL"];this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0};if(this.options.ranges)this.yylloc.range=[0,0];this.offset=0;return this},input:function e(){var t=this._input[0];this.yytext+=t;this.yyleng++;this.offset++;this.match+=t;this.matched+=t;var r=t.match(/(?:\r\n?|\n).*/g);if(r){this.yylineno++;this.yylloc.last_line++}else{this.yylloc.last_column++}if(this.options.ranges)this.yylloc.range[1]++;this._input=this._input.slice(1);return t},unput:function e(t){var r=t.length;var n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input;this.yytext=this.yytext.substr(0,this.yytext.length-r-1);this.offset-=r;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1);this.matched=this.matched.substr(0,this.matched.length-1);if(n.length-1)this.yylineno-=n.length-1;var a=this.yylloc.range;this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-r};if(this.options.ranges){this.yylloc.range=[a[0],a[0]+this.yyleng-r]}return this},more:function e(){this._more=true;return this},less:function e(t){this.unput(this.match.slice(t))},pastInput:function e(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function e(){var t=this.match;if(t.length<20){t+=this._input.substr(0,20-t.length)}return(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function e(){var t=this.pastInput();var r=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+r+"^"},next:function e(){if(this.done){return this.EOF}if(!this._input)this.done=true;var t,r,n,i,a,s;if(!this._more){this.yytext="";this.match=""}var o=this._currentRules();for(var u=0;ur[0].length)){r=n;i=u;if(!this.options.flex)break}}if(r){s=r[0].match(/(?:\r\n?|\n).*/g);if(s)this.yylineno+=s.length;this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:s?s[s.length-1].length-s[s.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+r[0].length};this.yytext+=r[0];this.match+=r[0];this.matches=r;this.yyleng=this.yytext.length;if(this.options.ranges){this.yylloc.range=[this.offset,this.offset+=this.yyleng]}this._more=false;this._input=this._input.slice(r[0].length);this.matched+=r[0];t=this.performAction.call(this,this.yy,this,o[i],this.conditionStack[this.conditionStack.length-1]);if(this.done&&this._input)this.done=false;if(t)return t;else return}if(this._input===""){return this.EOF}else{return this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})}},lex:function e(){var t=this.next();if(typeof t!=="undefined"){return t}else{return this.lex()}},begin:function e(t){this.conditionStack.push(t)},popState:function e(){return this.conditionStack.pop()},_currentRules:function e(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function e(){return this.conditionStack[this.conditionStack.length-2]},pushState:function e(t){this.begin(t)}};e.options={};e.performAction=function e(t,r,n,i){function a(e,t){return r.yytext=r.yytext.substring(e,r.yyleng-t+e)}var s=i;switch(n){case 0:if(r.yytext.slice(-2)==="\\\\"){a(0,1);this.begin("mu")}else if(r.yytext.slice(-1)==="\\"){a(0,1);this.begin("emu")}else{this.begin("mu")}if(r.yytext)return 15;break;case 1:return 15;break;case 2:this.popState();return 15;break;case 3:this.begin("raw");return 15;break;case 4:this.popState();if(this.conditionStack[this.conditionStack.length-1]==="raw"){return 15}else{a(5,9);return"END_RAW_BLOCK"}break;case 5:return 15;break;case 6:this.popState();return 14;break;case 7:return 65;break;case 8:return 68;break;case 9:return 19;break;case 10:this.popState();this.begin("raw");return 23;break;case 11:return 55;break;case 12:return 60;break;case 13:return 29;break;case 14:return 47;break;case 15:this.popState();return 44;break;case 16:this.popState();return 44;break;case 17:return 34;break;case 18:return 39;break;case 19:return 51;break;case 20:return 48;break;case 21:this.unput(r.yytext);this.popState();this.begin("com");break;case 22:this.popState();return 14;break;case 23:return 48;break;case 24:return 73;break;case 25:return 72;break;case 26:return 72;break;case 27:return 87;break;case 28:break;case 29:this.popState();return 54;break;case 30:this.popState();return 33;break;case 31:r.yytext=a(1,2).replace(/\\"/g,'"');return 80;break;case 32:r.yytext=a(1,2).replace(/\\'/g,"'");return 80;break;case 33:return 85;break;case 34:return 82;break;case 35:return 82;break;case 36:return 83;break;case 37:return 84;break;case 38:return 81;break;case 39:return 75;break;case 40:return 77;break;case 41:return 72;break;case 42:r.yytext=r.yytext.replace(/\\([\\\]])/g,"$1");return 72;break;case 43:return"INVALID";break;case 44:return 5;break}};e.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/];e.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:false},emu:{rules:[2],inclusive:false},com:{rules:[6],inclusive:false},raw:{rules:[3,4,5],inclusive:false},INITIAL:{rules:[0,1,44],inclusive:true}};return e}();e.lexer=t;function r(){this.yy={}}r.prototype=e;e.Parser=r;return new r}();t["default"]=r;e.exports=t["default"]},function(e,t,r){"use strict";var n=r(1)["default"];t.__esModule=true;var i=r(49);var a=n(i);function s(){var e=arguments.length<=0||arguments[0]===undefined?{}:arguments[0];this.options=e}s.prototype=new a["default"];s.prototype.Program=function(e){var t=!this.options.ignoreStandalone;var r=!this.isRootSeen;this.isRootSeen=true;var n=e.body;for(var i=0,a=n.length;i0){throw new c["default"]("Invalid path: "+n,{loc:r})}else if(u===".."){a++}}else{i.push(u)}}return{type:"PathExpression",data:e,depth:a,parts:i,original:n,loc:r}}function f(e,t,r,n,i,a){var s=n.charAt(3)||n.charAt(2),o=s!=="{"&&s!=="&";var u=/\*/.test(n);return{type:u?"Decorator":"MustacheStatement",path:e,params:t,hash:r,escaped:o,strip:i,loc:this.locInfo(a)}}function p(e,t,r,n){l(e,r);n=this.locInfo(n);var i={type:"Program",body:t,strip:{},loc:n};return{type:"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:i,openStrip:{},inverseStrip:{},closeStrip:{},loc:n}}function d(e,t,r,n,i,a){if(n&&n.path){l(e,n)}var s=/\*/.test(e.open);t.blockParams=e.blockParams;var o=undefined,u=undefined;if(r){if(s){throw new c["default"]("Unexpected inverse block on decorator",r)}if(r.chain){r.program.body[0].closeStrip=n.strip}u=r.strip;o=r.program}if(i){i=o;o=t;t=i}return{type:s?"DecoratorBlock":"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:t,inverse:o,openStrip:e.strip,inverseStrip:u,closeStrip:n&&n.strip,loc:this.locInfo(a)}}function m(e,t){if(!t&&e.length){var r=e[0].loc,n=e[e.length-1].loc;if(r&&n){t={source:r.source,start:{line:r.start.line,column:r.start.column},end:{line:n.end.line,column:n.end.column}}}}return{type:"Program",body:e,strip:{},loc:t}}function g(e,t,r,n){l(e,r);return{type:"PartialBlockStatement",name:e.path,params:e.params,hash:e.hash,program:t,openStrip:e.strip,closeStrip:r&&r.strip,loc:this.locInfo(n)}}},function(e,t,r){"use strict";var n=r(34)["default"];var i=r(1)["default"];t.__esModule=true;t.Compiler=h;t.precompile=f;t.compile=p;var a=r(6);var u=i(a);var l=r(5);var s=r(45);var c=i(s);var o=[].slice;function h(){}h.prototype={compiler:h,equals:function e(t){var r=this.opcodes.length;if(t.opcodes.length!==r){return false}for(var n=0;n1){throw new u["default"]("Unsupported number of partial arguments: "+n.length,t)}else if(!n.length){if(this.options.explicitPartialContext){this.opcode("pushLiteral","undefined")}else{n.push({type:"PathExpression",parts:[],depth:0})}}var i=t.name.original,a=t.name.type==="SubExpression";if(a){this.accept(t.name)}this.setupFullMustacheParams(t,r,undefined,true);var s=t.indent||"";if(this.options.preventIndent&&s){this.opcode("appendContent",s);s=""}this.opcode("invokePartial",a,i,s);this.opcode("append")},PartialBlockStatement:function e(t){this.PartialStatement(t)},MustacheStatement:function e(t){this.SubExpression(t);if(t.escaped&&!this.options.noEscape){this.opcode("appendEscaped")}else{this.opcode("append")}},Decorator:function e(t){this.DecoratorBlock(t)},ContentStatement:function e(t){if(t.value){this.opcode("appendContent",t.value)}},CommentStatement:function e(){},SubExpression:function e(t){m(t);var r=this.classifySexpr(t);if(r==="simple"){this.simpleSexpr(t)}else if(r==="helper"){this.helperSexpr(t)}else{this.ambiguousSexpr(t)}},ambiguousSexpr:function e(t,r,n){var i=t.path,a=i.parts[0],s=r!=null||n!=null;this.opcode("getContext",i.depth);this.opcode("pushProgram",r);this.opcode("pushProgram",n);i.strict=true;this.accept(i);this.opcode("invokeAmbiguous",a,s)},simpleSexpr:function e(t){var r=t.path;r.strict=true;this.accept(r);this.opcode("resolvePossibleLambda")},helperSexpr:function e(t,r,n){var i=this.setupFullMustacheParams(t,r,n),a=t.path,s=a.parts[0];if(this.options.knownHelpers[s]){this.opcode("invokeKnownHelper",i.length,s)}else if(this.options.knownHelpersOnly){throw new u["default"]("You specified knownHelpersOnly, but used the unknown helper "+s,t)}else{a.strict=true;a.falsy=true;this.accept(a);this.opcode("invokeHelper",i.length,a.original,c["default"].helpers.simpleId(a))}},PathExpression:function e(t){this.addDepth(t.depth);this.opcode("getContext",t.depth);var r=t.parts[0],n=c["default"].helpers.scopedId(t),i=!t.depth&&!n&&this.blockParamIndex(r);if(i){this.opcode("lookupBlockParam",i,t.parts)}else if(!r){this.opcode("pushContext")}else if(t.data){this.options.data=true;this.opcode("lookupData",t.depth,t.parts,t.strict)}else{this.opcode("lookupOnContext",t.parts,t.falsy,t.strict,n)}},StringLiteral:function e(t){this.opcode("pushString",t.value)},NumberLiteral:function e(t){this.opcode("pushLiteral",t.value)},BooleanLiteral:function e(t){this.opcode("pushLiteral",t.value)},UndefinedLiteral:function e(){this.opcode("pushLiteral","undefined")},NullLiteral:function e(){this.opcode("pushLiteral","null")},Hash:function e(t){var r=t.pairs,n=0,i=r.length;this.opcode("pushHash");for(;n=0){return[r,a]}}}};function f(e,t,r){if(e==null||typeof e!=="string"&&e.type!=="Program"){throw new u["default"]("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+e)}t=t||{};if(!("data"in t)){t.data=true}if(t.compat){t.useDepths=true}var n=r.parse(e,t),i=(new r.Compiler).compile(n,t);return(new r.JavaScriptCompiler).compile(i,t)}function p(n,i,a){if(i===undefined)i={};if(n==null||typeof n!=="string"&&n.type!=="Program"){throw new u["default"]("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+n)}i=l.extend({},i);if(!("data"in i)){i.data=true}if(i.compat){i.useDepths=true}var s=undefined;function o(){var e=a.parse(n,i),t=(new a.Compiler).compile(e,i),r=(new a.JavaScriptCompiler).compile(t,i,undefined,true);return a.template(r)}function e(e,t){if(!s){s=o()}return s.call(this,e,t)}e._setup=function(e){if(!s){s=o()}return s._setup(e)};e._child=function(e,t,r,n){if(!s){s=o()}return s._child(e,t,r,n)};return e}function d(e,t){if(e===t){return true}if(l.isArray(e)&&l.isArray(t)&&e.length===t.length){for(var r=0;r0){n+=", "+i.join(", ")}var a=0;u(this.aliases).forEach(function(e){var t=r.aliases[e];if(t.children&&t.referenceCount>1){n+=", alias"+ ++a+"="+e;t.children[0]="alias"+a}});if(this.lookupPropertyFunctionIsUsed){n+=", "+this.lookupPropertyFunctionVarDeclaration()}var s=["container","depth0","helpers","partials","data"];if(this.useBlockParams||this.useDepths){s.push("blockParams")}if(this.useDepths){s.push("depths")}var o=this.mergeSource(n);if(t){s.push(o);return Function.apply(this,s)}else{return this.source.wrap(["function(",s.join(","),") {\n ",o,"}"])}},mergeSource:function e(t){var r=this.environment.isSimple,n=!this.forceBuffer,i=undefined,a=undefined,s=undefined,o=undefined;this.source.each(function(e){if(e.appendToBuffer){if(s){e.prepend(" + ")}else{s=e}o=e}else{if(s){if(!a){i=true}else{s.prepend("buffer += ")}o.add(";");s=o=undefined}a=true;if(!r){n=false}}});if(n){if(s){s.prepend("return ");o.add(";")}else if(!a){this.source.push('return "";')}}else{t+=", buffer = "+(i?"":this.initializeBuffer());if(s){s.prepend("return buffer + ");o.add(";")}else{this.source.push("return buffer;")}}if(t){this.source.prepend("var "+t.substring(2)+(i?"":";\n"))}return this.source.merge()},lookupPropertyFunctionVarDeclaration:function e(){return"\n lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n }\n ".trim()},blockValue:function e(t){var r=this.aliasable("container.hooks.blockHelperMissing"),n=[this.contextName(0)];this.setupHelperArgs(t,0,n);var i=this.popStack();n.splice(1,0,i);this.push(this.source.functionCall(r,"call",n))},ambiguousBlockValue:function e(){var t=this.aliasable("container.hooks.blockHelperMissing"),r=[this.contextName(0)];this.setupHelperArgs("",0,r,true);this.flushInline();var n=this.topStack();r.splice(1,0,n);this.pushSource(["if (!",this.lastHelper,") { ",n," = ",this.source.functionCall(t,"call",r),"}"])},appendContent:function e(t){if(this.pendingContent){t=this.pendingContent+t}else{this.pendingLocation=this.source.currentLocation}this.pendingContent=t},append:function e(){if(this.isInline()){this.replaceStack(function(e){return[" != null ? ",e,' : ""']});this.pushSource(this.appendToBuffer(this.popStack()))}else{var t=this.popStack();this.pushSource(["if (",t," != null) { ",this.appendToBuffer(t,undefined,true)," }"]);if(this.environment.isSimple){this.pushSource(["else { ",this.appendToBuffer("''",undefined,true)," }"])}}},appendEscaped:function e(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},getContext:function e(t){this.lastContext=t},pushContext:function e(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function e(t,r,n,i){var a=0;if(!i&&this.options.compat&&!this.lastContext){this.push(this.depthedLookup(t[a++]))}else{this.pushContext()}this.resolvePath("context",t,a,r,n)},lookupBlockParam:function e(t,r){this.useBlockParams=true;this.push(["blockParams[",t[0],"][",t[1],"]"]);this.resolvePath("context",r,1)},lookupData:function e(t,r,n){if(!t){this.pushStackLiteral("data")}else{this.pushStackLiteral("container.data(data, "+t+")")}this.resolvePath("data",r,0,true,n)},resolvePath:function e(r,n,i,a,t){var s=this;if(this.options.strict||this.options.assumeObjects){this.push(f(this.options.strict&&t,this,n,r));return}var o=n.length;for(;ithis.stackVars.length){this.stackVars.push("stack"+this.stackSlot)}return this.topStackName()},topStackName:function e(){return"stack"+this.stackSlot},flushInline:function e(){var t=this.inlineStack;this.inlineStack=[];for(var r=0,n=t.length;rt?1:0}else{throw new TypeError(e+" - "+t)}};n.equals=function(e,t){return e.compareTo(t)===0};n.getDayNumberFromName=function(e){var t=s.dayNames,r=s.abbreviatedDayNames,n=s.shortestDayNames,i=e.toLowerCase();for(var a=0;a=e.getTime()&&this.getTime()<=t.getTime()};e.isAfter=function(e){return this.compareTo(e||new Date)===1};e.isBefore=function(e){return this.compareTo(e||new Date)===-1};e.isToday=function(){return this.isSameDay(new Date)};e.isSameDay=function(e){return this.clone().clearTime().equals(e.clone().clearTime())};e.addMilliseconds=function(e){this.setMilliseconds(this.getMilliseconds()+e);return this};e.addSeconds=function(e){return this.addMilliseconds(e*1e3)};e.addMinutes=function(e){return this.addMilliseconds(e*6e4)};e.addHours=function(e){return this.addMilliseconds(e*36e5)};e.addDays=function(e){this.setDate(this.getDate()+e);return this};e.addWeeks=function(e){return this.addDays(e*7)};e.addMonths=function(e){var t=this.getDate();this.setDate(1);this.setMonth(this.getMonth()+e);this.setDate(Math.min(t,n.getDaysInMonth(this.getFullYear(),this.getMonth())));return this};e.addYears=function(e){return this.addMonths(e*12)};e.add=function(e){if(typeof e=="number"){this._orient=e;return this}var t=e;if(t.milliseconds){this.addMilliseconds(t.milliseconds)}if(t.seconds){this.addSeconds(t.seconds)}if(t.minutes){this.addMinutes(t.minutes)}if(t.hours){this.addHours(t.hours)}if(t.weeks){this.addWeeks(t.weeks)}if(t.months){this.addMonths(t.months)}if(t.years){this.addYears(t.years)}if(t.days){this.addDays(t.days)}return this};var c,h,f;e.getWeek=function(){var e,t,r,n,i,a,s,o,u,l;c=!c?this.getFullYear():c;h=!h?this.getMonth()+1:h;f=!f?this.getDate():f;if(h<=2){e=c-1;t=(e/4|0)-(e/100|0)+(e/400|0);r=((e-1)/4|0)-((e-1)/100|0)+((e-1)/400|0);u=t-r;i=0;a=f-1+31*(h-1)}else{e=c;t=(e/4|0)-(e/100|0)+(e/400|0);r=((e-1)/4|0)-((e-1)/100|0)+((e-1)/400|0);u=t-r;i=u+1;a=f+(153*(h-3)+2)/5+58+u}s=(e+t)%7;n=(a+s-i)%7;o=a+3-n|0;if(o<0){l=53-((s-u)/5|0)}else if(o>364+u){l=1}else{l=(o/7|0)+1}c=h=f=null;return l};e.getISOWeek=function(){c=this.getUTCFullYear();h=this.getUTCMonth()+1;f=this.getUTCDate();return i(this.getWeek())};e.setWeek=function(e){return this.moveToDayOfWeek(1).addWeeks(e-this.getWeek())};n._validate=function(e,t,r,n){if(typeof e=="undefined"){return false}else if(typeof e!="number"){throw new TypeError(e+" is not a Number.")}else if(er){throw new RangeError(e+" is not a valid value for "+n+".")}return true};n.validateMillisecond=function(e){return n._validate(e,0,999,"millisecond")};n.validateSecond=function(e){return n._validate(e,0,59,"second")};n.validateMinute=function(e){return n._validate(e,0,59,"minute")};n.validateHour=function(e){return n._validate(e,0,23,"hour")};n.validateDay=function(e,t,r){return n._validate(e,1,n.getDaysInMonth(t,r),"day")};n.validateMonth=function(e){return n._validate(e,0,11,"month")};n.validateYear=function(e){return n._validate(e,0,9999,"year")};e.set=function(e){if(n.validateMillisecond(e.millisecond)){this.addMilliseconds(e.millisecond-this.getMilliseconds())}if(n.validateSecond(e.second)){this.addSeconds(e.second-this.getSeconds())}if(n.validateMinute(e.minute)){this.addMinutes(e.minute-this.getMinutes())}if(n.validateHour(e.hour)){this.addHours(e.hour-this.getHours())}if(n.validateMonth(e.month)){this.addMonths(e.month-this.getMonth())}if(n.validateYear(e.year)){this.addYears(e.year-this.getFullYear())}if(n.validateDay(e.day,this.getFullYear(),this.getMonth())){this.addDays(e.day-this.getDate())}if(e.timezone){this.setTimezone(e.timezone)}if(e.timezoneOffset){this.setTimezoneOffset(e.timezoneOffset)}if(e.week&&n._validate(e.week,0,53,"week")){this.setWeek(e.week)}return this};e.moveToFirstDayOfMonth=function(){return this.set({day:1})};e.moveToLastDayOfMonth=function(){return this.set({day:n.getDaysInMonth(this.getFullYear(),this.getMonth())})};e.moveToNthOccurrence=function(e,t){var r=0;if(t>0){r=t-1}else if(t===-1){this.moveToLastDayOfMonth();if(this.getDay()!==e){this.moveToDayOfWeek(e,-1)}return this}return this.moveToFirstDayOfMonth().addDays(-1).moveToDayOfWeek(e,+1).addWeeks(r)};e.moveToDayOfWeek=function(e,t){var r=(e-this.getDay()+7*(t||+1))%7;return this.addDays(r===0?r+=7*(t||+1):r)};e.moveToMonth=function(e,t){var r=(e-this.getMonth()+12*(t||+1))%12;return this.addMonths(r===0?r+=12*(t||+1):r)};e.getOrdinalNumber=function(){return Math.ceil((this.clone().clearTime()-new Date(this.getFullYear(),0,1))/864e5)+1};e.getTimezone=function(){return n.getTimezoneAbbreviation(this.getUTCOffset())};e.setTimezoneOffset=function(e){var t=this.getTimezoneOffset(),r=Number(e)*-6/10;return this.addMinutes(r-t)};e.setTimezone=function(e){return this.setTimezoneOffset(n.getTimezoneOffset(e))};e.hasDaylightSavingTime=function(){return Date.today().set({month:0,day:1}).getTimezoneOffset()!==Date.today().set({month:6,day:1}).getTimezoneOffset()};e.isDaylightSavingTime=function(){return this.hasDaylightSavingTime()&&(new Date).getTimezoneOffset()===Date.today().set({month:6,day:1}).getTimezoneOffset()};e.getUTCOffset=function(){var e=this.getTimezoneOffset()*-10/6,t;if(e<0){t=(e-1e4).toString();return t.charAt(0)+t.substr(2)}else{t=(e+1e4).toString();return"+"+t.substr(1)}};e.getElapsed=function(e){return(e||new Date)-this};if(!e.toISOString){e.toISOString=function(){function e(e){return e<10?"0"+e:e}return'"'+this.getUTCFullYear()+"-"+e(this.getUTCMonth()+1)+"-"+e(this.getUTCDate())+"T"+e(this.getUTCHours())+":"+e(this.getUTCMinutes())+":"+e(this.getUTCSeconds())+'Z"'}}e._toString=e.toString;e.toString=function(e){var t=this;if(e&&e.length==1){var r=s.formatPatterns;t.t=t.toString;switch(e){case"d":return t.t(r.shortDate);case"D":return t.t(r.longDate);case"F":return t.t(r.fullDateTime);case"m":return t.t(r.monthDay);case"r":return t.t(r.rfc1123);case"s":return t.t(r.sortableDateTime);case"t":return t.t(r.shortTime);case"T":return t.t(r.longTime);case"u":return t.t(r.universalSortableDateTime);case"y":return t.t(r.yearMonth)}}var n=function(e){switch(e*1){case 1:case 21:case 31:return"st";case 2:case 22:return"nd";case 3:case 23:return"rd";default:return"th"}};return e?e.replace(/(\\)?(dd?d?d?|MM?M?M?|yy?y?y?|hh?|HH?|mm?|ss?|tt?|S)/g,function(e){if(e.charAt(0)==="\\"){return e.replace("\\","")}t.h=t.getHours;switch(e){case"hh":return i(t.h()<13?t.h()===0?12:t.h():t.h()-12);case"h":return t.h()<13?t.h()===0?12:t.h():t.h()-12;case"HH":return i(t.h());case"H":return t.h();case"mm":return i(t.getMinutes());case"m":return t.getMinutes();case"ss":return i(t.getSeconds());case"s":return t.getSeconds();case"yyyy":return i(t.getFullYear(),4);case"yy":return i(t.getFullYear());case"dddd":return s.dayNames[t.getDay()];case"ddd":return s.abbreviatedDayNames[t.getDay()];case"dd":return i(t.getDate());case"d":return t.getDate();case"MMMM":return s.monthNames[t.getMonth()];case"MMM":return s.abbreviatedMonthNames[t.getMonth()];case"MM":return i(t.getMonth()+1);case"M":return t.getMonth()+1;case"t":return t.h()<12?s.amDesignator.substring(0,1):s.pmDesignator.substring(0,1);case"tt":return t.h()<12?s.amDesignator:s.pmDesignator;case"S":return n(t.getDate());default:return e}}):this._toString()}})();(function(){var n=Date,e=n.prototype,i=n.CultureInfo,t=Number.prototype;e._orient=+1;e._nth=null;e._is=false;e._same=false;e._isSecond=false;t._dateElement="day";e.next=function(){this._orient=+1;return this};n.next=function(){return n.today().next()};e.last=e.prev=e.previous=function(){this._orient=-1;return this};n.last=n.prev=n.previous=function(){return n.today().last()};e.is=function(){this._is=true;return this};e.same=function(){this._same=true;this._isSecond=false;return this};e.today=function(){return this.same().day()};e.weekday=function(){if(this._is){this._is=false;return!this.is().sat()&&!this.is().sun()}return false};e.at=function(e){return typeof e==="string"?n.parse(this.toString("d")+" "+e):this.set(e)};t.fromNow=t.after=function(e){var t={};t[this._dateElement]=this;return(!e?new Date:e.clone()).add(t)};t.ago=t.before=function(e){var t={};t[this._dateElement]=this*-1;return(!e?new Date:e.clone()).add(t)};var r="sunday monday tuesday wednesday thursday friday saturday".split(/\s/),a="january february march april may june july august september october november december".split(/\s/),s="Millisecond Second Minute Hour Day Week Month Year".split(/\s/),o="Milliseconds Seconds Minutes Hours Date Week Month FullYear".split(/\s/),u="final first second third fourth fifth".split(/\s/),l;e.toObject=function(){var e={};for(var t=0;tt){throw new RangeError(n.getDayName(r)+" does not occur "+e+" times in the month of "+n.getMonthName(t.getMonth())+" "+t.getFullYear()+".")}return this}return this.moveToDayOfWeek(r,this._orient)}};var h=function(r){return function(){var e=n.today(),t=r-e.getDay();if(r===0&&i.firstDayOfWeek===1&&e.getDay()!==0){t=t+7}return e.addDays(t)}};for(var f=0;f-1;i--){r=s[i].toLowerCase();if(e[r]!=t[r]){return false}if(n==r){break}}return true}if(a.substring(a.length-1)!="s"){a+="s"}return this["add"+a](this._orient)}};var y=function(e){return function(){this._dateElement=e;return this}};for(var v=0;v0&&!s){try{n=h.call(this,t[1])}catch(e){s=true}}else{s=true}if(!s&&n[1].length===0){s=true}if(!s){var u=[];for(var l=0;l0){i[0]=i[0].concat(r[0]);i[1]=r[1]}}if(i[1].length1){e=Array.prototype.slice.call(arguments)}else if(arguments[0]instanceof Array){e=arguments[0]}if(e){for(var r=0,n=e.shift();r2?e:e+(e+2e3u.getDaysInMonth(this.year,this.month)){throw new RangeError(this.day+" is not a valid value for days.")}var n=new Date(this.year,this.month,this.day,this.hour,this.minute,this.second);if(this.timezone){n.set({timezone:this.timezone})}else if(this.timezoneOffset){n.set({timezoneOffset:this.timezoneOffset})}return n},finish:function(e){e=e instanceof Array?l(e):[e];if(e.length===0){return null}for(var t=0;t0){setInterval(function(){e.each(n)},t.refreshMillis)}return e};function n(){var e=t(this);if(!isNaN(e.datetime)){f(this).text(i(e.datetime))}return this}function t(e){e=f(e);if(!e.data("timeago")){e.data("timeago",{datetime:r.datetime(e)});var t=f.trim(e.text());if(t.length>0&&!(r.isTime(e)&&e.attr("title"))){e.attr("title",t)}}return e.data("timeago")}function i(e){return r.inWords(a(e))}function a(e){return(new Date).getTime()-e.getTime()}document.createElement("abbr");document.createElement("time")})(jQuery);var q=null;window.PR_SHOULD_USE_CONTINUATION=!0;(function(){function l(e){function u(e){var t=e.charCodeAt(0);if(t!==92)return t;var r=e.charAt(1);return(t=s[r])?t:"0"<=r&&r<="7"?parseInt(e.substring(1),8):r==="u"||r==="x"?parseInt(e.substring(2),16):e.charCodeAt(1)}function l(e){if(e<32)return(e<16?"\\x0":"\\x")+e.toString(16);e=String.fromCharCode(e);if(e==="\\"||e==="-"||e==="["||e==="]")e="\\"+e;return e}function o(e){for(var t=e.substring(1,e.length-1).match(/\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\[0-3][0-7]{0,2}|\\[0-7]{1,2}|\\[\S\s]|[^\\]/g),e=[],r=[],n=t[0]==="^",i=n?1:0,a=t.length;i122||(o<65||s>90||r.push([Math.max(65,s)|32,Math.min(o,90)|32]),o<97||s>122||r.push([Math.max(97,s)&-33,Math.min(o,122)&-33]))}}r.sort(function(e,t){return e[0]-t[0]||t[1]-e[1]});t=[];s=[NaN,NaN];for(i=0;ia[0]&&(a[1]+1>a[0]&&r.push("-"),r.push(l(a[1])));r.push("]");return r.join("")}function t(e){for(var t=e.source.match(/\[(?:[^\\\]]|\\[\S\s])*]|\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\\d+|\\[^\dux]|\(\?[!:=]|[()^]|[^()[\\^]+/g),r=t.length,n=[],i=0,a=0;i=2&&e==="["?t[i]=o(s):e!=="\\"&&(t[i]=s.replace(/[A-Za-z]/g,function(e){e=e.charCodeAt(0);return"["+String.fromCharCode(e&-33,e|32)+"]"}));return t.join("")}for(var c=0,h=!1,r=!1,n=0,i=e.length;n=5&&"lang-"===l.substring(0,5))&&!(c&&typeof c[1]==="string"))h=!1,l="src";h||(a[u]=l)}f=n;n+=u.length;if(h){h=c[1];var p=u.indexOf(h),d=p+h.length;c[2]&&(d=u.length-c[2].length,p=d-h.length);l=l.substring(5);k(t+f,u.substring(0,p),g,r);k(t+f+p,h,_(l,h),r);k(t+f+d,u.substring(d),g,r)}else r.push(t+f,l)}e.e=r}var y={},v;(function(){for(var e=u.concat(m),t=[],r={},n=0,i=e.length;n=0;)y[s.charAt(o)]=a;a=a[1];s=""+a;r.hasOwnProperty(s)||(t.push(a),r[s]=q)}t.push(/[\S\s]/);v=l(t)})();var b=m.length;return g}function e(e){var t=[],r=[];e.tripleQuotedStrings?t.push(["str",/^(?:'''(?:[^'\\]|\\[\S\s]|''?(?=[^']))*(?:'''|$)|"""(?:[^"\\]|\\[\S\s]|""?(?=[^"]))*(?:"""|$)|'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$))/,q,"'\""]):e.multiLineStrings?t.push(["str",/^(?:'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$)|`(?:[^\\`]|\\[\S\s])*(?:`|$))/,q,"'\"`"]):t.push(["str",/^(?:'(?:[^\n\r'\\]|\\.)*(?:'|$)|"(?:[^\n\r"\\]|\\.)*(?:"|$))/,q,"\"'"]);e.verbatimStrings&&r.push(["str",/^@"(?:[^"]|"")*(?:"|$)/,q]);var n=e.hashComments;n&&(e.cStyleComments?(n>1?t.push(["com",/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,q,"#"]):t.push(["com",/^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\n\r]*)/,q,"#"]),r.push(["str",/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/,q])):t.push(["com",/^#[^\n\r]*/,q,"#"]));e.cStyleComments&&(r.push(["com",/^\/\/[^\n\r]*/,q]),r.push(["com",/^\/\*[\S\s]*?(?:\*\/|$)/,q]));e.regexLiterals&&r.push(["lang-regex",/^(?:^^\.?|[!+-]|!=|!==|#|%|%=|&|&&|&&=|&=|\(|\*|\*=|\+=|,|-=|->|\/|\/=|:|::|;|<|<<|<<=|<=|=|==|===|>|>=|>>|>>=|>>>|>>>=|[?@[^]|\^=|\^\^|\^\^=|{|\||\|=|\|\||\|\|=|~|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\s*(\/(?=[^*/])(?:[^/[\\]|\\[\S\s]|\[(?:[^\\\]]|\\[\S\s])*(?:]|$))+\/)/]);(n=e.types)&&r.push(["typ",n]);e=(""+e.keywords).replace(/^ | $/g,"");e.length&&r.push(["kwd",RegExp("^(?:"+e.replace(/[\s,]+/g,"|")+")\\b"),q]);t.push(["pln",/^\s+/,q," \r\n\t "]);r.push(["lit",/^@[$_a-z][\w$@]*/i,q],["typ",/^(?:[@_]?[A-Z]+[a-z][\w$@]*|\w+_t\b)/,q],["pln",/^[$_a-z][\w$@]*/i,q],["lit",/^(?:0x[\da-f]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+-]?\d+)?)[a-z]*/i,q,"0123456789"],["pln",/^\\[\S\s]?/,q],["pun",/^.[^\s\w"-$'./@\\`]*/,q]);return i(t,r)}function m(e,t){function i(e){switch(e.nodeType){case 1:if(s.test(e.className))break;if("BR"===e.nodeName)a(e),e.parentNode&&e.parentNode.removeChild(e);else for(e=e.firstChild;e;e=e.nextSibling)i(e);break;case 3:case 4:if(l){var t=e.nodeValue,r=t.match(o);if(r){var n=t.substring(0,r.index);e.nodeValue=n;(t=t.substring(r.index+r[0].length))&&e.parentNode.insertBefore(u.createTextNode(t),e.nextSibling);a(e);n||e.parentNode.removeChild(e)}}}}function a(e){function s(e,t){var r=t?e.cloneNode(!1):e,n=e.parentNode;if(n){var n=s(n,1),i=e.nextSibling;n.appendChild(r);for(var a=i;a;a=i)i=a.nextSibling,n.appendChild(a)}return r}for(;!e.nextSibling;)if(e=e.parentNode,!e)return;for(var e=s(e.nextSibling,0),t;(t=e.parentNode)&&t.nodeType===1;)e=t;n.push(e)}var s=/(?:^|\s)nocode(?:\s|$)/,o=/\r\n?|\n/,u=e.ownerDocument,r;e.currentStyle?r=e.currentStyle.whiteSpace:window.getComputedStyle&&(r=u.defaultView.getComputedStyle(e,q).getPropertyValue("white-space"));var l=r&&"pre"===r.substring(0,3);for(r=u.createElement("LI");e.firstChild;)r.appendChild(e.firstChild);for(var n=[r],c=0;c=0;){var n=t[r];p.hasOwnProperty(n)?window.console&&console.warn("cannot override language handler %s",n):p[n]=e}}function _(e,t){if(!e||!p.hasOwnProperty(e))e=/^\s*=g&&(n+=2);r>=y&&(e+=2)}}catch(e){"console"in window&&console.log(e&&e.stack?e.stack:e)}}var r=["break,continue,do,else,for,if,return,while"],n=[[r,"auto,case,char,const,default,double,enum,extern,float,goto,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],a=[n,"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,dynamic_cast,explicit,export,friend,inline,late_check,mutable,namespace,nullptr,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],s=[n,"abstract,boolean,byte,extends,final,finally,implements,import,instanceof,null,native,package,strictfp,super,synchronized,throws,transient"],o=[s,"as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,interface,internal,into,is,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var"],n=[n,"debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"],u=[r,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],c=[r,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],r=[r,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],h=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)/,y=/\S/,f=e({keywords:[a,o,n,"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END"+u,c,r],hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0}),p={};t(f,["default-code"]);t(i([],[["pln",/^[^]*(?:>|$)/],["com",/^<\!--[\S\s]*?(?:--\>|$)/],["lang-",/^<\?([\S\s]+?)(?:\?>|$)/],["lang-",/^<%([\S\s]+?)(?:%>|$)/],["pun",/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\S\s]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\S\s]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\S\s]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]);t(i([["pln",/^\s+/,q," \t\r\n"],["atv",/^(?:"[^"]*"?|'[^']*'?)/,q,"\"'"]],[["tag",/^^<\/?[a-z](?:[\w-.:]*\w)?|\/?>$/i],["atn",/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^\s"'>]*(?:[^\s"'/>]|\/(?=\s)))/],["pun",/^[/<->]+/],["lang-js",/^on\w+\s*=\s*"([^"]+)"/i],["lang-js",/^on\w+\s*=\s*'([^']+)'/i],["lang-js",/^on\w+\s*=\s*([^\s"'>]+)/i],["lang-css",/^style\s*=\s*"([^"]+)"/i],["lang-css",/^style\s*=\s*'([^']+)'/i],["lang-css",/^style\s*=\s*([^\s"'>]+)/i]]),["in.tag"]);t(i([],[["atv",/^[\S\s]+/]]),["uq.val"]);t(e({keywords:a,hashComments:!0,cStyleComments:!0,types:h}),["c","cc","cpp","cxx","cyc","m"]);t(e({keywords:"null,true,false"}),["json"]);t(e({keywords:o,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:h}),["cs"]);t(e({keywords:s,cStyleComments:!0}),["java"]);t(e({keywords:r,hashComments:!0,multiLineStrings:!0}),["bsh","csh","sh"]);t(e({keywords:u,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py"]);t(e({keywords:"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["perl","pl","pm"]);t(e({keywords:c,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb"]);t(e({keywords:n,cStyleComments:!0,regexLiterals:!0}),["js"]);t(e({keywords:"all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,true,try,unless,until,when,while,yes",hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]);t(i([],[["str",/^[\S\s]+/]]),["regex"]);window.prettyPrintOne=function(e,t,r){var n=document.createElement("PRE");n.innerHTML=e;r&&m(n,r);g({g:t,i:r,h:n});return n.innerHTML};window.prettyPrint=function(u){function l(){for(var e=window.PR_SHOULD_USE_CONTINUATION?h.now()+250:Infinity;f=0){var r=r.match(d),n,i;if(i=!r){i=t;for(var a=void 0,s=i.firstChild;s;s=s.nextSibling)var o=s.nodeType,a=o===1?a?i:s:o===3?y.test(s.nodeValue)?i:a:a;i=(n=a===i?void 0:a)&&"CODE"===n.tagName}i&&(r=n.className.match(d));r&&(r=r[1]);i=!1;for(a=t.parentNode;a;a=a.parentNode)if((a.tagName==="pre"||a.tagName==="code"||a.tagName==="xmp")&&a.className&&a.className.indexOf("prettyprint")>=0){i=!0;break}i||((i=(i=t.className.match(/\blinenums\b(?::(\d+))?/))?i[1]&&i[1].length?+i[1]:!0:!1)&&m(t,i),p={g:r,h:t,i:i},g(p))}}f1&&(t===null||typeof t!=="object")){r=jQuery.extend({},r);if(t===null){r.expires=-1}if(typeof r.expires==="number"){var n=r.expires,i=r.expires=new Date;i.setDate(i.getDate()+n)}return document.cookie=[encodeURIComponent(e),"=",r.raw?String(t):encodeURIComponent(String(t)),r.expires?"; expires="+r.expires.toUTCString():"",r.path?"; path="+r.path:"",r.domain?"; domain="+r.domain:"",r.secure?"; secure":""].join("")}r=t||{};var a,s=r.raw?function(e){return e}:decodeURIComponent;return(a=new RegExp("(?:^|; )"+encodeURIComponent(e)+"=([^;]*)").exec(document.cookie))?s(a[1]):null}; /* jQuery Bootstrap Pagination Copyright (c) 2012 Mark Bates Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ (function(){var n=function(e,t){return function(){return e.apply(t,arguments)}},g=[].indexOf||function(e){for(var t=0,r=this.length;t"+this.buildLink(e,t)+""};e.prototype.buildLink=function(e,t){var r;if(t==null){t=e}if(this.settings.no_turbolink){r=" data-no-turbolink='1'"}else{r=""}if(e==0||e!=t){return""+t+""}else{return""+t+""}};e.prototype.pages=function(){var e,t,r,n,i,a,s,o,u,l,c,h,f,p,d;a=this.settings.total_pages;t=this.settings.current_page;i=[];r=this.settings.display_max;if(a>10){i.push(1);if(t>r-1){i.push("..")}if(t===a){for(n=s=h=a-r;h<=a?s<=a:s>=a;n=h<=a?++s:--s){i.push(n)}}if(a-t=a;n=f<=a?++o:--o){i.push(n)}}else if(t>r-1){e=r/2;for(n=u=p=t-e,d=t+e;p<=d?u<=d:u>=d;n=p<=d?++u:--u){i.push(n)}}else if(t<=r-1){for(n=l=2;2<=r?l<=r:l>=r;n=2<=r?++l:--l){i.push(n)}}i=m.grep(i,function(e,t){return m.inArray(e,i)===t});if(g.call(i,a)<0){if(!(a-t=a;n=1<=a?++c:--c){i.push(n)}}return i};e.prototype.render=function(){var e,t,r,n,i;this.el.html("");if(this.settings.total_pages===1&&this.settings.ignore_single_page){return}e=["
"];e.push("
    ");i=this.buildLinks();for(r=0,n=i.length;r");e.push("
");this.el.html(e.join("\n"));m("[data-page="+this.settings.current_page+"]",this.el).closest("li").addClass("active");m("[data-page='..']",this.el).closest("li").addClass("disabled");m("[data-page='0']",this.el).closest("li").addClass("disabled");m("[data-page='"+(this.settings.total_pages+1)+"']",this.el).closest("li").addClass("disabled");if(this.settings.current_page===1&&this.settings.first){m("li:first",this.el).removeClass("active").addClass("disabled")}if(this.settings.current_page===this.settings.total_pages&&this.settings.last){return m("li:last",this.el).removeClass("active").addClass("disabled")}};e.prototype.isValidPage=function(e){return e>0&&e!==this.settings.current_page&&e<=this.settings.total_pages};e.prototype.clicked=function(e){e.stopPropagation();var t;t=parseInt(m(e.target).attr("data-page"));if(!this.isValidPage(t)){return}if(this.settings.callback!=null){this.settings.callback(e,t)}return this.change(t)};e.prototype.change=function(e){e=parseInt(e);if(!this.isValidPage(e)){return}this.settings.current_page=e;return this.render()};return e}()})(jQuery)}).call(this); /* jQuery blockUI plugin Version 2.56.0-2013.01.31 requires jQuery v1.7 or later Copyright (c) 2007-2013 M. Alsup Thanks to Amir-Hossein Sobhi for some excellent contributions! Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */(function(){"use strict";function e(_){_.fn._fadeIn=_.fn.fadeIn;var M=_.noop||function(){};var P=/MSIE/.test(navigator.userAgent);var E=/MSIE 6.0/.test(navigator.userAgent)&&!/MSIE 8.0/.test(navigator.userAgent);var e=document.documentMode||0;var D=_.isFunction(document.createElement("div").style.setExpression);_.blockUI=function(e){r(window,e)};_.unblockUI=function(e){N(window,e)};_.growlUI=function(e,t,r,n){var i=_('
');if(e)i.append("

"+e+"

");if(t)i.append("

"+t+"

");if(r===undefined)r=3e3;_.blockUI({message:i,fadeIn:700,fadeOut:1e3,centerY:false,timeout:r,showOverlay:false,onUnblock:n,css:_.blockUI.defaults.growlCSS})};_.fn.block=function(e){var t=_.extend({},_.blockUI.defaults,e||{});this.each(function(){var e=_(this);if(t.ignoreIfBlocked&&e.data("blockUI.isBlocked"))return;e.unblock({fadeOut:0})});return this.each(function(){if(_.css(this,"position")=="static"){this.style.position="relative";_(this).data("blockUI.static",true)}this.style.zoom=1;r(this,e)})};_.fn.unblock=function(e){return this.each(function(){N(this,e)})};_.blockUI.version=2.56;_.blockUI.defaults={message:"

Please wait...

",title:null,draggable:true,theme:false,css:{padding:0,margin:0,width:"30%",top:"40%",left:"35%",textAlign:"center",color:"#000",border:"3px solid #aaa",backgroundColor:"#fff",cursor:"wait"},themedCSS:{width:"30%",top:"40%",left:"35%"},overlayCSS:{backgroundColor:"#000",opacity:.6,cursor:"wait"},cursorReset:"default",growlCSS:{width:"350px",top:"10px",left:"",right:"10px",border:"none",padding:"5px",opacity:.6,cursor:"default",color:"#fff",backgroundColor:"#000","-webkit-border-radius":"10px","-moz-border-radius":"10px","border-radius":"10px"},iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank",forceIframe:false,baseZ:1e3,centerX:true,centerY:true,allowBodyStretch:true,bindEvents:true,constrainTabKey:true,fadeIn:200,fadeOut:400,timeout:0,showOverlay:true,focusInput:true,onBlock:null,onUnblock:null,onOverlayClick:null,quirksmodeOffsetHack:4,blockMsgClass:"blockMsg",ignoreIfBlocked:false};var T=null;var C=[];function r(e,a){var t,r;var s=e==window;var n=a&&a.message!==undefined?a.message:undefined;a=_.extend({},_.blockUI.defaults,a||{});if(a.ignoreIfBlocked&&_(e).data("blockUI.isBlocked"))return;a.overlayCSS=_.extend({},_.blockUI.defaults.overlayCSS,a.overlayCSS||{});t=_.extend({},_.blockUI.defaults.css,a.css||{});if(a.onOverlayClick)a.overlayCSS.cursor="pointer";r=_.extend({},_.blockUI.defaults.themedCSS,a.themedCSS||{});n=n===undefined?a.message:n;if(s&&T)N(window,{fadeOut:0});if(n&&typeof n!="string"&&(n.parentNode||n.jquery)){var i=n.jquery?n[0]:n;var o={};_(e).data("blockUI.history",o);o.el=i;o.parent=i.parentNode;o.display=i.style.display;o.position=i.style.position;if(o.parent)o.parent.removeChild(i)}_(e).data("blockUI.onUnblock",a.onUnblock);var u=a.baseZ;var l,c,h,f;if(P||a.forceIframe)l=_('');else l=_('');if(a.theme)c=_('');else c=_('');if(a.theme&&s){f='"}else if(a.theme){f='"}else if(s){f=''}else{f=''}h=_(f);if(n){if(a.theme){h.css(r);h.addClass("ui-widget-content")}else h.css(t)}if(!a.theme)c.css(a.overlayCSS);c.css("position",s?"fixed":"absolute");if(P||a.forceIframe)l.css("opacity",0);var p=[l,c,h],d=s?_("body"):_(e);_.each(p,function(){this.appendTo(d)});if(a.theme&&a.draggable&&_.fn.draggable){h.draggable({handle:".ui-dialog-titlebar",cancel:"li"})}var m=D&&(!_.support.boxModel||_("object,embed",s?null:e).length>0);if(E||m){if(s&&a.allowBodyStretch&&_.support.boxModel)_("html,body").css("height","100%");if((E||!_.support.boxModel)&&!s){var g=A(e,"borderTopWidth"),y=A(e,"borderLeftWidth");var v=g?"(0 - "+g+")":0;var b=y?"(0 - "+y+")":0}_.each(p,function(e,t){var r=t[0].style;r.position="absolute";if(e<2){if(s)r.setExpression("height","Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.support.boxModel?0:"+a.quirksmodeOffsetHack+') + "px"');else r.setExpression("height",'this.parentNode.offsetHeight + "px"');if(s)r.setExpression("width",'jQuery.support.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"');else r.setExpression("width",'this.parentNode.offsetWidth + "px"');if(b)r.setExpression("left",b);if(v)r.setExpression("top",v)}else if(a.centerY){if(s)r.setExpression("top",'(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"');r.marginTop=0}else if(!a.centerY&&s){var n=a.css&&a.css.top?parseInt(a.css.top,10):0;var i="((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "+n+') + "px"';r.setExpression("top",i)}})}if(n){if(a.theme)h.find(".ui-widget-content").append(n);else h.append(n);if(n.jquery||n.nodeType)_(n).show()}if((P||a.forceIframe)&&a.showOverlay)l.show();if(a.fadeIn){var k=a.onBlock?a.onBlock:M;var x=a.showOverlay&&!n?k:M;var S=n?k:M;if(a.showOverlay)c._fadeIn(a.fadeIn,x);if(n)h._fadeIn(a.fadeIn,S)}else{if(a.showOverlay)c.show();if(n)h.show();if(a.onBlock)a.onBlock()}I(1,e,a);if(s){T=h[0];C=_(":input:enabled:visible",T);if(a.focusInput)setTimeout(L,20)}else O(h[0],a.centerX,a.centerY);if(a.timeout){var w=setTimeout(function(){if(s)_.unblockUI(a);else _(e).unblock(a)},a.timeout);_(e).data("blockUI.timeout",w)}}function N(e,t){var r=e==window;var n=_(e);var i=n.data("blockUI.history");var a=n.data("blockUI.timeout");if(a){clearTimeout(a);n.removeData("blockUI.timeout")}t=_.extend({},_.blockUI.defaults,t||{});I(0,e,t);if(t.onUnblock===null){t.onUnblock=n.data("blockUI.onUnblock");n.removeData("blockUI.onUnblock")}var s;if(r)s=_("body").children().filter(".blockUI").add("body > .blockUI");else s=n.find(">.blockUI");if(t.cursorReset){if(s.length>1)s[1].style.cursor=t.cursorReset;if(s.length>2)s[2].style.cursor=t.cursorReset}if(r)T=C=null;if(t.fadeOut){s.fadeOut(t.fadeOut);setTimeout(function(){o(s,i,t,e)},t.fadeOut)}else o(s,i,t,e)}function o(e,t,r,n){var i=_(n);e.each(function(e,t){if(this.parentNode)this.parentNode.removeChild(this)});if(t&&t.el){t.el.style.display=t.display;t.el.style.position=t.position;if(t.parent)t.parent.appendChild(t.el);i.removeData("blockUI.history")}if(i.data("blockUI.static")){i.css("position","static")}if(typeof r.onUnblock=="function")r.onUnblock(n,r);var a=_(document.body),s=a.width(),o=a[0].style.width;a.width(s-1).width(s);a[0].style.width=o}function I(e,t,r){var n=t==window,i=_(t);if(!e&&(n&&!T||!n&&!i.data("blockUI.isBlocked")))return;i.data("blockUI.isBlocked",e);if(!r.bindEvents||e&&!r.showOverlay)return;var a="mousedown mouseup keydown keypress keyup touchstart touchend touchmove";if(e)_(document).on(a,r,s);else _(document).off(a,s)}function s(e){if(e.keyCode&&e.keyCode==9){if(T&&e.data.constrainTabKey){var t=C;var r=!e.shiftKey&&e.target===t[t.length-1];var n=e.shiftKey&&e.target===t[0];if(r||n){setTimeout(function(){L(n)},10);return false}}}var i=e.data;var a=_(e.target);if(a.hasClass("blockOverlay")&&i.onOverlayClick)i.onOverlayClick();if(a.parents("div."+i.blockMsgClass).length>0)return true;return a.parents().children().filter("div.blockUI").length===0}function L(e){if(!C)return;var t=C[e===true?C.length-1:0];if(t)t.focus()}function O(e,t,r){var n=e.parentNode,i=e.style;var a=(n.offsetWidth-e.offsetWidth)/2-A(n,"borderLeftWidth");var s=(n.offsetHeight-e.offsetHeight)/2-A(n,"borderTopWidth");if(t)i.left=a>0?a+"px":"0";if(r)i.top=s>0?s+"px":"0"}function A(e,t){return parseInt(_.css(e,t),10)||0}}if(typeof define==="function"&&define.amd&&define.amd.jQuery){define(["jquery"],e)}else{e(jQuery)}})(); /*! * jQuery Form Plugin * version: 3.51.0-2014.06.20 * Requires jQuery v1.5 or later * Copyright (c) 2014 M. Alsup * Examples and documentation at: http://malsup.com/jquery/form/ * Project repository: https://github.com/malsup/form Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):e("undefined"!=typeof jQuery?jQuery:window.Zepto)}(function(L){"use strict";function r(e){var t=e.data;e.isDefaultPrevented()||(e.preventDefault(),L(e.target).ajaxSubmit(t))}function n(e){var t=e.target,r=L(t);if(!r.is("[type=submit],[type=image]")){var n=r.closest("[type=submit]");if(0===n.length)return;t=n[0]}var i=this;if(i.clk=t,"image"==t.type)if(void 0!==e.offsetX)i.clk_x=e.offsetX,i.clk_y=e.offsetY;else if("function"==typeof L.fn.offset){var a=r.offset();i.clk_x=e.pageX-a.left,i.clk_y=e.pageY-a.top}else i.clk_x=e.pageX-t.offsetLeft,i.clk_y=e.pageY-t.offsetTop;setTimeout(function(){i.clk=i.clk_x=i.clk_y=null},100)}function O(){if(L.fn.ajaxSubmit.debug){var e="[jquery.form] "+Array.prototype.join.call(arguments,"");window.console&&window.console.log?window.console.log(e):window.opera&&window.opera.postError&&window.opera.postError(e)}}var S={};S.fileapi=void 0!==L("").get(0).files,S.formdata=void 0!==window.FormData;var A=!!L.fn.prop;L.fn.attr2=function(){if(!A)return this.attr.apply(this,arguments);var e=this.prop.apply(this,arguments);return e&&e.jquery||"string"==typeof e?e:this.attr.apply(this,arguments)},L.fn.ajaxSubmit=function(T){function s(e){var t,r,n=L.param(e,T.traditional).split("&"),i=n.length,a=[];for(t=0;i>t;t++)n[t]=n[t].replace(/\+/g," "),r=n[t].split("="),a.push([decodeURIComponent(r[0]),decodeURIComponent(r[1])]);return a}function e(e){for(var r=new FormData,t=0;t').val(f.extraData[s].value).appendTo(l)[0]:L('').val(f.extraData[s]).appendTo(l)[0]);f.iframeTarget||d.appendTo("body"),m.attachEvent?m.attachEvent("onload",h):m.addEventListener("load",h,!1),setTimeout(t,15);try{l.submit()}catch(e){var o=document.createElement("form").submit;o.apply(l)}}finally{l.setAttribute("action",r),l.setAttribute("enctype",i),e?l.setAttribute("target",e):N.removeAttr("target"),L(a).remove()}}function h(e){if(!g.aborted&&!_){if(w=c(m),w||(O("cannot access response document"),e=x),e===k&&g)return g.abort("timeout"),void b.reject(g,"timeout");if(e==x&&g)return g.abort("server abort"),void b.reject(g,"error","server abort");if(w&&w.location.href!=f.iframeSrc||y){m.detachEvent?m.detachEvent("onload",h):m.removeEventListener("load",h,!1);var t,r="success";try{if(y)throw"timeout";var n="xml"==f.dataType||w.XMLDocument||L.isXMLDoc(w);if(O("isXml="+n),!n&&window.opera&&(null===w.body||!w.body.innerHTML)&&--M)return O("requeing onLoad callback, DOM not available"),void setTimeout(h,250);var i=w.body?w.body:w.documentElement;g.responseText=i?i.innerHTML:null,g.responseXML=w.XMLDocument?w.XMLDocument:w,n&&(f.dataType="xml"),g.getResponseHeader=function(e){var t={"content-type":f.dataType};return t[e.toLowerCase()]},i&&(g.status=Number(i.getAttribute("status"))||g.status,g.statusText=i.getAttribute("statusText")||g.statusText);var a=(f.dataType||"").toLowerCase(),s=/(json|script|text)/.test(a);if(s||f.textarea){var o=w.getElementsByTagName("textarea")[0];if(o)g.responseText=o.value,g.status=Number(o.getAttribute("status"))||g.status,g.statusText=o.getAttribute("statusText")||g.statusText;else if(s){var u=w.getElementsByTagName("pre")[0],l=w.getElementsByTagName("body")[0];u?g.responseText=u.textContent?u.textContent:u.innerText:l&&(g.responseText=l.textContent?l.textContent:l.innerText)}}else"xml"==a&&!g.responseXML&&g.responseText&&(g.responseXML=P(g.responseText));try{S=D(g,a,f)}catch(e){r="parsererror",g.error=t=e||r}}catch(e){O("error caught: ",e),r="error",g.error=t=e||r}g.aborted&&(O("upload aborted"),r=null),g.status&&(r=g.status>=200&&g.status<300||304===g.status?"success":"error"),"success"===r?(f.success&&f.success.call(f.context,S,"success",g),b.resolve(g.responseText,"success",g),p&&L.event.trigger("ajaxSuccess",[g,f])):r&&(void 0===t&&(t=g.statusText),f.error&&f.error.call(f.context,g,r,t),b.reject(g,"error",t),p&&L.event.trigger("ajaxError",[g,f,t])),p&&L.event.trigger("ajaxComplete",[g,f]),p&&!--L.active&&L.event.trigger("ajaxStop"),f.complete&&f.complete.call(f.context,g,r),_=!0,f.timeout&&clearTimeout(v),setTimeout(function(){f.iframeTarget?d.attr("src",f.iframeSrc):d.remove(),g.responseXML=null},100)}}}var r,n,f,p,u,d,m,g,i,a,y,v,l=N[0],b=L.Deferred();if(b.abort=function(e){g.abort(e)},e)for(n=0;n'),d.css({position:"absolute",top:"-1000px",left:"-1000px"})),m=d[0],g={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(e){var t="timeout"===e?"timeout":"aborted";O("aborting upload... "+t),this.aborted=1;try{m.contentWindow.document.execCommand&&m.contentWindow.document.execCommand("Stop")}catch(e){}d.attr("src",f.iframeSrc),g.error=t,f.error&&f.error.call(f.context,g,t,e),p&&L.event.trigger("ajaxError",[g,f,t]),f.complete&&f.complete.call(f.context,g,t)}},p=f.global,p&&0===L.active++&&L.event.trigger("ajaxStart"),p&&L.event.trigger("ajaxSend",[g,f]),f.beforeSend&&f.beforeSend.call(f.context,g,f)===!1)return f.global&&L.active--,b.reject(),b;if(g.aborted)return b.reject(),b;i=l.clk,i&&(a=i.name,a&&!i.disabled&&(f.extraData=f.extraData||{},f.extraData[a]=i.value,"image"==i.type&&(f.extraData[a+".x"]=l.clk_x,f.extraData[a+".y"]=l.clk_y)));var k=1,x=2,s=L("meta[name=csrf-token]").attr("content"),o=L("meta[name=csrf-param]").attr("content");o&&s&&(f.extraData=f.extraData||{},f.extraData[o]=s),f.forceSync?t():setTimeout(t,10);var S,w,_,M=50,P=L.parseXML||function(e,t){return window.ActiveXObject?(t=new ActiveXObject("Microsoft.XMLDOM"),t.async="false",t.loadXML(e)):t=(new DOMParser).parseFromString(e,"text/xml"),t&&t.documentElement&&"parsererror"!=t.documentElement.nodeName?t:null},E=L.parseJSON||function(e){return window.eval("("+e+")")},D=function(e,t,r){var n=e.getResponseHeader("content-type")||"",i="xml"===t||!t&&n.indexOf("xml")>=0,a=i?e.responseXML:e.responseText;return i&&"parsererror"===a.documentElement.nodeName&&L.error&&L.error("parsererror"),r&&r.dataFilter&&(a=r.dataFilter(a,t)),"string"==typeof a&&("json"===t||!t&&n.indexOf("json")>=0?a=E(a):("script"===t||!t&&n.indexOf("javascript")>=0)&&L.globalEval(a)),a};return b}if(!this.length)return O("ajaxSubmit: skipping submit process - no element selected"),this;var C,r,n,N=this;"function"==typeof T?T={success:T}:void 0===T&&(T={}),C=T.type||this.attr2("method"),r=T.url||this.attr2("action"),n="string"==typeof r?L.trim(r):"",n=n||window.location.href||"",n&&(n=(n.match(/^([^#]+)/)||[])[1]),T=L.extend(!0,{url:n,success:L.ajaxSettings.success,type:C||L.ajaxSettings.type,iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank"},T);var i={};if(this.trigger("form-pre-serialize",[this,T,i]),i.veto)return O("ajaxSubmit: submit vetoed via form-pre-serialize trigger"),this;if(T.beforeSerialize&&T.beforeSerialize(this,T)===!1)return O("ajaxSubmit: submit aborted via beforeSerialize callback"),this;var a=T.traditional;void 0===a&&(a=L.ajaxSettings.traditional);var o,I=[],u=this.formToArray(T.semantic,I);if(T.data&&(T.extraData=T.data,o=L.param(T.data,a)),T.beforeSubmit&&T.beforeSubmit(u,this,T)===!1)return O("ajaxSubmit: submit aborted via beforeSubmit callback"),this;if(this.trigger("form-submit-validate",[u,this,T,i]),i.veto)return O("ajaxSubmit: submit vetoed via form-submit-validate trigger"),this;var l=L.param(u,a);o&&(l=l?l+"&"+o:o),"GET"==T.type.toUpperCase()?(T.url+=(T.url.indexOf("?")>=0?"&":"?")+l,T.data=null):T.data=l;var c=[];if(T.resetForm&&c.push(function(){N.resetForm()}),T.clearForm&&c.push(function(){N.clearForm(T.includeHidden)}),!T.dataType&&T.target){var h=T.success||function(){};c.push(function(e){var t=T.replaceTarget?"replaceWith":"html";L(T.target)[t](e).each(h,arguments)})}else T.success&&c.push(T.success);if(T.success=function(e,t,r){for(var n=T.context||this,i=0,a=c.length;a>i;i++)c[i].apply(n,[e,t,r||N,N])},T.error){var f=T.error;T.error=function(e,t,r){var n=T.context||this;f.apply(n,[e,t,r,N])}}if(T.complete){var p=T.complete;T.complete=function(e,t){var r=T.context||this;p.apply(r,[e,t,N])}}var d=L("input[type=file]:enabled",this).filter(function(){return""!==L(this).val()}),m=d.length>0,g="multipart/form-data",y=N.attr("enctype")==g||N.attr("encoding")==g,v=S.fileapi&&S.formdata;O("fileAPI :"+v);var b,k=(m||y)&&!v;T.iframe!==!1&&(T.iframe||k)?T.closeKeepAlive?L.get(T.closeKeepAlive,function(){b=t(u)}):b=t(u):b=(m||y)&&v?e(u):L.ajax(T),N.removeData("jqxhr").data("jqxhr",b);for(var x=0;xo;o++)if(h=s[o],l=h.name,l&&!h.disabled)if(e&&i.clk&&"image"==h.type)i.clk==h&&(r.push({name:l,value:L(h).val(),type:h.type}),r.push({name:l+".x",value:i.clk_x},{name:l+".y",value:i.clk_y}));else if(c=L.fieldValue(h,!0),c&&c.constructor==Array)for(t&&t.push(h),u=0,p=c.length;p>u;u++)r.push({name:l,value:c[u]});else if(S.fileapi&&"file"==h.type){t&&t.push(h);var d=h.files;if(d.length)for(u=0;ur;r++)a.push({name:e,value:t[r]});else null!==t&&"undefined"!=typeof t&&a.push({name:this.name,value:t})}}),L.param(a)},L.fn.fieldValue=function(e){for(var t=[],r=0,n=this.length;n>r;r++){var i=this[r],a=L.fieldValue(i,e);null===a||"undefined"==typeof a||a.constructor==Array&&!a.length||(a.constructor==Array?L.merge(t,a):t.push(a))}return t},L.fieldValue=function(e,t){var r=e.name,n=e.type,i=e.tagName.toLowerCase();if(void 0===t&&(t=!0),t&&(!r||e.disabled||"reset"==n||"button"==n||("checkbox"==n||"radio"==n)&&!e.checked||("submit"==n||"image"==n)&&e.form&&e.form.clk!=e||"select"==i&&-1==e.selectedIndex))return null;if("select"==i){var a=e.selectedIndex;if(0>a)return null;for(var s=[],o=e.options,u="select-one"==n,l=u?a+1:o.length,c=u?a:0;l>c;c++){var h=o[c];if(h.selected){var f=h.value;if(f||(f=h.attributes&&h.attributes.value&&!h.attributes.value.specified?h.text:h.value),u)return f;s.push(f)}}return s}return L(e).val()},L.fn.clearForm=function(e){return this.each(function(){L("input,select,textarea",this).clearFields(e)})},L.fn.clearFields=L.fn.clearInputs=function(r){var n=/^(?:color|date|datetime|email|month|number|password|range|search|tel|text|time|url|week)$/i;return this.each(function(){var e=this.type,t=this.tagName.toLowerCase();n.test(e)||"textarea"==t?this.value="":"checkbox"==e||"radio"==e?this.checked=!1:"select"==t?this.selectedIndex=-1:"file"==e?/MSIE/.test(navigator.userAgent)?L(this).replaceWith(L(this).clone(!0)):L(this).val(""):r&&(r===!0&&/hidden/.test(e)||"string"==typeof r&&L(this).is(r))&&(this.value="")})},L.fn.resetForm=function(){return this.each(function(){("function"==typeof this.reset||"object"==typeof this.reset&&!this.reset.nodeType)&&this.reset()})},L.fn.enable=function(e){return void 0===e&&(e=!0),this.each(function(){this.disabled=!e})},L.fn.selected=function(r){return void 0===r&&(r=!0),this.each(function(){var e=this.type;if("checkbox"==e||"radio"==e)this.checked=r;else if("option"==this.tagName.toLowerCase()){var t=L(this).parent("select");r&&t[0]&&"select-one"==t[0].type&&t.find("option").selected(!1),this.selected=r}})},L.fn.ajaxSubmit.debug=!1});