1!function(t){function e(n){if(i[n])return i[n].exports;var r=i[n]={exports:{},id:n,loaded:!1};return t[n].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var n=window.webpackJsonp;window.webpackJsonp=function(o,s){for(var a,l,c=0,u=[];c<o.length;c++)l=o[c],r[l]&&u.push.apply(u,r[l]),r[l]=0;for(a in s)Object.prototype.hasOwnProperty.call(s,a)&&(t[a]=s[a]);for(n&&n(o,s);u.length;)u.shift().call(null,e);if(s[0])return i[0]=0,e(0)};var i={},r={0:0};e.e=function(t,n){if(0===r[t])return n.call(null,e);if(void 0!==r[t])r[t].push(n);else{r[t]=[n];var i=document.getElementsByTagName("head")[0],o=document.createElement("script");o.type="text/javascript",o.charset="utf-8",o.async=!0,o.src=e.p+window.webpackBundleManifest[t],i.appendChild(o)}},e.m=t,e.c=i,e.p=""}([,function(t,e,n){"use strict";n(33),n(31),n(155),n(34),n(32),n(142),n(146),n(95),n(161),n(158),n(159),n(157),n(86),n(163),n(88),n(89),n(85),n(30),n(101),n(27),n(138),n(139),n(151),n(150),n(99)},function(t,e,n){t.exports=n(9)(1)},function(t,e,n){t.exports=n(173)(2)},function(t,e,n){t.exports=n(171)(3)},,function(t,e){"use strict";Routes=window.Routes||{},$(function(){rwgps.Events.bind("metrics:changed",Routes.Common.updateMetrics);var t="#cue_sheet_preview tr, .cue_sheet_preview tr";$(document).on("mouseenter",t,function(){var t=$(this),e=t.data("coursepoint");void 0!==e&&($("#cue_sheet_preview tr, .cue_sheet_preview tr").css({"background-color":""}),t.css({"background-color":"#E7E7E7",cursor:"pointer"}),Routes.activeMap&&Routes.activeMap.callWhenReady(function(){Routes.activeMap.openCoursePointInfoWindow(e,!1)}))}).on("mouseleave",t,function(){var t=$(this);t.css({"background-color":""}),Routes.activeMap&&Routes.activeMap.callWhenReady(function(){Routes.activeMap.closePreviewInfoWindow()})}).on("click",t,function(){var t=$(this);Routes.activeMap.callWhenReady(function(){Routes.activeMap.openCoursePointInfoWindow(t.data("coursepoint"),!0)}),$("#cue_sheet_preview tr, .cue_sheet_preview tr").removeClass("openCoursePointInfo"),t.addClass("openCoursePointInfo")})}),Routes.Common={pois:[],onMapCleared:function(){this.pois=[]},geocodeResult:function(t,e,n,i){var r={country_code:t,administrative_area:e,locality:n,postal_code:i};$("#geodata").val(JSON.stringify(r))},getRouteViewerOptions:function(){var t=[],e=0;return $('#options input[type="checkbox"]').each(function(){t[e]=$(this).val()+":"+$(this).attr("checked"),e++}),t},resizeMap:function(){var t=$(".globalNav").get(0).getClientRects()[0].top+$(".globalNav").outerHeight(),e=window.innerHeight?window.innerHeight-t:$(window).height()-t,n=$("#page_tips:visible").height()||0;$(".fullpage_left_col,.fullpage_right_col").height(e),$("#map,#new_route_map").height(e),0!=$("#save_route_form").length&&$(".fullpage_left_col,.fullpage_right_col").css("height",$(window).height()-t),0!=$(".sidebar_pages").length&&$(".sidebar_pages").each(function(){var i=$(this).offset().top-t;$(this).height(e-i),$(this).parents(".fullpage_left_col").length>0&&$(this).height(e-i-n)}),0!=$(".fullpage_right_col .sidebar_pages").length&&$("#playback_container").length&&$(".fullpage_right_col .sidebar_pages").height(e-153),rwgps.Events.trigger("resizeMap:after")},populateCoursePoints:function(t,e){var n=$("#cue_sheet_preview, .cue_sheet_preview");if(n.find("td").css({"background-color":"#FFFFFF"}),e||n.empty(),null!=t)for(var i=0;i<t.length;i++)n.append(Routes.Common.createCoursePointRow(t[i],e))},createCoursePointRow:function(t,e){$("#start_drawing_for_cue_sheet").hide();var n=$("<tr><td>"+_.escape(t.notes)+"</td><td>"+rwgps.LabelMaker.longLabel(t.distance,!0)+"</td></tr>");return e&&n.find("td").css({"background-color":"#E7E7E7"}),n.data("coursepoint",t),t.row=n,n},prevCoursePointInfo:function(t){$("#cue_sheet_preview tr, .cue_sheet_preview tr").removeClass("openCoursePointInfo"),$("#"+t).addClass("openCoursePointInfo")},nextCoursePointInfo:function(t){$("#cue_sheet_preview tr, .cue_sheet_preview tr").removeClass("openCoursePointInfo"),$("#"+t).addClass("openCoursePointInfo")},updateMetrics:function(t,e){if(t&&t.v){e&&$(".hide_zoomed_out").show(),null==t&&(t={}),$(".changesOnZoom").toggleClass("zoomed_in",!!e),t.hasOwnProperty("cad")&&t.cad.avg&&($("#maxCad").text(t.cad.max+" rpm"),t.cad.max_i&&$("#maxCad").data("i",t.cad.max_i),$("#minCad").text(t.cad.min+" rpm"),t.cad.min_i&&$("#minCad").data("i",t.cad.min_i),$("#avgCad").text(t.cad.avg.toFixed(1)+" rpm")),t.hasOwnProperty("hr")&&t.hr.avg&&($("#maxHr").text(Math.round(t.hr.max)+" bpm"),t.hr.max_i&&$("#maxHr").data("i",t.hr.max_i),$("#minHr").text(Math.round(t.hr.min)+" bpm"),t.hr.min_i&&$("#minHr").data("i",t.hr.min_i),$("#avgHr").text(t.hr.avg.toFixed(1)+" bpm")),t.hasOwnProperty("watts")&&t.watts.avg&&($("#maxWatts").text(Math.round(t.watts.max)),t.watts.max_i&&$("#maxWatts").data("i",t.watts.max_i),$("#avgWattsWith0s").text(Math.round(t.watts._avg)),$("#avgWatts").text(Math.round(t.watts.avg)),$("#normalizedPower").text(Math.round(t.watts.normalized)),$("#workKJ").text(Math.round(t.kJ)+" kJ")),t.hasOwnProperty("speed")&&t.speed.avg&&($("#maxSpeed").text(rwgps.LabelMaker.speedLabel(t.speed.max,!0)),t.speed.max_i&&$("#maxSpeed").data("i",t.speed.max_i),$("#minSpeed").text(rwgps.LabelMaker.speedLabel(t.speed.min,!0)),t.speed.min_i&&$("#minSpeed").data("i",t.speed.min_i),$("#avgSpeed").text(rwgps.LabelMaker.speedLabel(t.speed.avg,!0))
1),t.hasOwnProperty("distance")?$(".txtDistance").text(rwgps.LabelMaker.longLabel(t.distance,!0)):$(".txtDistance").text(""),t.distance?$(".hide_unless_distance").show():$(".hide_unless_distance").hide(),!t.hasOwnProperty("ele_gain")||!t.hasOwnProperty("ele_loss")||isNaN(t.ele_loss)||0==t.ele_gain&&0==t.ele_loss?$(".hide_unless_ele").hide():($(".hide_unless_ele").show(),$(".txtAscent").text(rwgps.LabelMaker.shortLabel(t.ele_gain,!1)),$(".txtDescent").text(rwgps.LabelMaker.shortLabel(t.ele_loss,!0))),t.hasOwnProperty("vam")?($(".txtVam").text(Math.round(t.vam)+" Vm/h"),0==Math.round(t.vam)?$(".vamRow").hide():$(".vamRow").show()):$(".vamRow").hide(),t.hasOwnProperty("ascentTime")&&($(".txtAscentTime").text(rwgps.LabelMaker.durationLabel(t.ascentTime)),0==t.ascentTime?$(".ascentRow").hide():$(".ascentRow").show()),t.hasOwnProperty("descentTime")&&($(".txtDescentTime").text(rwgps.LabelMaker.durationLabel(t.descentTime)),0==t.descentTime?$(".descentRow").hide():$(".descentRow").show()),t.hasOwnProperty("duration")&&t.duration&&($("#duration").text(rwgps.LabelMaker.durationLabel(t.duration)),$("#movingTime").text(rwgps.LabelMaker.durationLabel(t.movingTime)),$("#stoppedTime").text(rwgps.LabelMaker.durationLabel(t.stoppedTime))),t.hasOwnProperty("pace")&&t.pace&&t.movingPace&&($("#pace").text(rwgps.LabelMaker.paceLabel(t.pace)),$("#movingPace").text(rwgps.LabelMaker.paceLabel(t.movingPace))),$(".txtTrackPoints").text(t.numPoints||0);try{$(".txtCoursePoints").text(Routes.activeMap.activeRoute.coursePoints().length)}catch(t){$(".txtCoursePoints").text("")}t.hasOwnProperty("ele")?($(".txtMinElevation").text(rwgps.LabelMaker.shortLabel(t.ele.min,!0)),$(".txtMaxElevation").text(rwgps.LabelMaker.shortLabel(t.ele.max,!0)),$(".txtAvgElevation").text(rwgps.LabelMaker.shortLabel(t.ele.avg,!0))):($(".txtMinElevation").text(""),$(".txtMaxElevation").text(""),$(".txtAvgElevation").text("")),t.hasOwnProperty("startElevation")&&!isNaN(t.startElevation)?$(".txtStartElevation").text(rwgps.LabelMaker.shortLabel(t.startElevation,!0)):$(".txtStartElevation").text(""),t.hasOwnProperty("endElevation")&&!isNaN(t.endElevation)?$(".txtFinishElevation").text(rwgps.LabelMaker.shortLabel(t.endElevation,!0)):$(".txtFinishElevation").text(""),t.hasOwnProperty("grade")?(t.grade.max&&($(".txtMaxGrade").text(t.grade.max.toFixed(1)+" %"),t.grade.max_i&&$(".txtMaxGrade").data("i",t.grade.max_i)),t.grade.avg&&$(".txtAvgGrade").text(t.grade.avg.toFixed(1)+" %")):($(".txtMaxGrade").text("0 %"),$(".txtAvgGrade").text("0 %")),t.isClimb?($(".hide_unless_climb").show(),$(".txtCat").text(t.uciCategory),$(".txtFiets").text(t.fietsIndex.toFixed(2))):$(".hide_unless_climb").hide(),t.estimatedTime?($(".hide_unless_estimatedTime").show(),$(".txtEstimatedTime").text(rwgps.LabelMaker.durationLabel(t.estimatedTime))):$(".hide_unless_estimatedTime").hide(),e||$(".hide_zoomed_out").hide()}},populateTipOfTheDay:function(){var t=Math.floor(Math.random()*Routes.Common.tipsOfTheDay.length),e=Routes.Common.tipsOfTheDay[t];$("#tip_link").attr("href",e.link),""===e.link&&$("#tip_link").hide(),$("#tip_text").text(e.tip)}},Routes.Common.tipsOfTheDay=[{tip:"When planning or viewing a route, click and drag on the elevation profile to zoom in on a specific section of your route. Click the Edit link that appears to access advanced tools.",link:"https://ridewithgps.com/help/the-elevation-profile-for-routes"},{tip:"By changing the map style, you can switch between maps that focus on different information. Different styles use different routing data. If you get stuck while planning, or don't see a trail you want, switching your map style may help.",link:"https://ridewithgps.com/help/switching-map-styles"},{tip:"Change the rules of the road by switching routing optimizations in the right hand sidebar. Donât be afraid to try walking and driving modes, they can help route around obstructions. Click below to learn more about the different modes.",link:"https://ridewithgps.com/help/planning#optimize-for"},{tip:"To join two routes together, click the Add Route button at the top of the left sidebar. Once your desired route is added to the map, join them by clicking the green dot. You can route from the end of one to the start of another by clicking on the map like usual.",link:"https://ridewithgps.com/help/combining-and-splitting-routes#combining"},{tip:"To split a route, click and drag on the elevation profile then click the Edit link that appears. You'll be able to then remove the selected section. The remaining route sections can be saved as separate routes, or you can reconnect them in a different way.",link:"https://ridewithgps.com/help/combining-and-splitting-routes#splitting"},{tip:"Add Points of Interest (POI) to your map by clicking the Add POI button in the right sidebar, then clicking anywhere on the map. POI are shown on printed maps and cuesheets, as well as our mobile app during navigation.",link:"https://ridewithgps.com/help/point-of-interest-pois#adding"},{tip:"Change the color of a section of your route by clicking and dragging the elevation profile, then clicking the Edit link. Select the change color option, or one of the other editing tools.",link:"https://ridewithgps.com/help/edit-color-on-a-section-of-route"},{tip:"To delete a section of your route, click and drag on the elevation profile on the section you wish to delete, then click the Edit link. If you delete a selection in the middle of your route, you can re-join the remaining sections in a new way, or you can save them as separate routes.",link:"https://ridewithgps.com/help/the-elevation-profile-for-routes#edit"},{tip:"You can click and drag your route to edit it. Mouse over the route, then click and drag the blue dot. Click below to learn how to control how much of your route changes when clicking and dragging.",link:"https://ridewithgps.com/help/planning#add-remove-control-points"},{tip:"Add custom cues by clicking the Add to Cuesheet button in the right sidebar, then clicking the blue dot seen while mousing along your route. These
1cues will be available on printed maps and when navigating using the Ride with GPS app, a Garmin unit, or a Wahoo ELEMNT.",link:"https://ridewithgps.com/help/edit-cue-sheet"},{tip:"Use the Draw Lines button in the right sidebar to switch from following roads and paths to drawing straight lines between clicks. This is helpful when working with trails that are not routable, or when dealing with unusual intersections or parking lots.",link:"https://ridewithgps.com/help/planning#drawlines"},{tip:"Do you like keyboard shortcuts? If so, hit shift-? to get a cheat sheet of route planner hotkeys.",link:"https://ridewithgps.com/routes/new#hotkey_modal"},{tip:"See more of your map by collapsing the right and left sidebars. Simply click the << and >> icons near the top of the sidebars to collapse them. Click the same icons to re-open them when you need to access route planning tools."}]},function(t,e){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}; 2//! Date extension object - all supporting objects go in here. 3Date.ext={}, 4//! Utility methods 5Date.ext.util={},Date.ext.util.xPad=function(t,e,n){for("undefined"==typeof n&&(n=10);parseInt(t,10)<n&&n>1;n/=10)try{t=e.toString()+t}catch(t){}return t.toString()},Date.prototype.locale="en-US", 6//! \cond FALSE 7document.getElementsByTagName("html")&&document.getElementsByTagName("html")[0].lang&&(D
7ate.prototype.locale=document.getElementsByTagName("html")[0].lang), 8//! \endcond 9Date.ext.locales={},Date.ext.locales.en={a:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],A:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],b:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],B:["January","February","March","April","May","June","July","August","September","October","November","December"],c:"%a %d %b %Y %T %Z",p:["AM","PM"],P:["am","pm"],x:"%d/%m/%y",X:"%T"}, 10//! \cond FALSE 11Date.ext.locales["en-US"]=Date.ext.locales.en,Date.ext.locales["en-US"].c="%a %d %b %Y %r %Z",Date.ext.locales["en-US"].x="%D",Date.ext.locales["en-US"].X="%r",Date.ext.locales["en-GB"]=Date.ext.locales.en,Date.ext.locales["en-AU"]=Date.ext.locales["en-GB"], 12//! \endcond 13//! \brief List of supported format specifiers. 14Date.ext.formats={a:function(t){return Date.ext.locales[t.locale].a[t.getDay()]},A:function(t){return Date.ext.locales[t.locale].A[t.getDay()]},b:function(t){return Date.ext.locales[t.locale].b[t.getMonth()]},B:function(t){return Date.ext.locales[t.locale].B[t.getMonth()]},c:"toLocaleString",C:function(t){return Date.ext.util.xPad(parseInt(t.getFullYear()/100,10),0)},d:["getDate","0"],e:["getDate"," "],g:function(t){return Date.ext.util.xPad(parseInt(Date.ext.util.G(t)/100,10),0)},G:function(t){var e=t.getFullYear(),n=parseInt(Date.ext.formats.V(t),10),i=parseInt(Date.ext.formats.W(t),10);return i>n?e++:0===i&&n>=52&&e--,e},H:["getHours","0"],I:function t(e){var t=e.getHours()%12;return Date.ext.util.xPad(0===t?12:t,0)},j:function(t){var e=t-new Date(""+t.getFullYear()+"/1/1 GMT");e+=6e4*t.getTimezoneOffset();var n=parseInt(e/6e4/60/24,10)+1;return Date.ext.util.xPad(n,0,100)},l:function(t){var e=t.getHours()%12;return 0===e?12:e},m:function(t){return Date.ext.util.xPad(t.getMonth()+1,0)},M:["getMinutes","0"],p:function(t){return Date.ext.locales[t.locale].p[t.getHours()>=12?1:0]},P:function(t){return Date.ext.locales[t.locale].P[t.getHours()>=12?1:0]},S:["getSeconds","0"],u:function(t){var e=t.getDay();return 0===e?7:e},U:function(t){var e=parseInt(Date.ext.formats.j(t),10),n=6-t.getDay(),i=parseInt((e+n)/7,10);return Date.ext.util.xPad(i,0)},V:function(t){var e=parseInt(Date.ext.formats.W(t),10),n=new Date(""+t.getFullYear()+"/1/1").getDay(),i=e+(n>4||n<=1?0:1);return 53==i&&new Date(""+t.getFullYear()+"/12/31").getDay()<4?i=1:0===i&&(i=Date.ext.formats.V(new Date(""+(t.getFullYear()-1)+"/12/31"))),Date.ext.util.xPad(i,0)},w:"getDay",W:function(t){var e=parseInt(Date.ext.formats.j(t),10),n=7-Date.ext.formats.u(t),i=parseInt((e+n)/7,10);return Date.ext.util.xPad(i,0,10)},y:function(t){return Date.ext.util.xPad(t.getFullYear()%100,0)},Y:"getFullYear",z:function(t){var e=t.getTimezoneOffset(),n=Date.ext.util.xPad(parseInt(Math.abs(e/60),10),0),i=Date.ext.util.xPad(e%60,0);return(e>0?"-":"+")+n+i},Z:function(t){return t.toString().replace(/^.*\(([^)]+)\)$/,"$1")},"%":function(){return"%"}},Date.ext.aggregates={c:"locale",D:"%m/%d/%y",h:"%b",n:"\n",r:"%I:%M:%S %p",R:"%H:%M",t:"\t",T:"%H:%M:%S",x:"locale",X:"locale"}, 15//! \cond FALSE 16Date.ext.aggregates.z=Date.ext.formats.z(new Date),Date.ext.aggregates.Z=Date.ext.formats.Z(new Date), 17//! \endcond 18//! List of unsupported format specifiers. 19Date.ext.unsupported={},Date.prototype.strftime=function(t){this.locale in Date.ext.locales||(this.locale.replace(/-[a-zA-Z]+$/,"")in Date.ext.locales?this.locale=this.locale.replace(/-[a-zA-Z]+$/,""):this.locale="en-GB");for(var e=this;t.match(/%[cDhnrRtTxXzZ]/);)t=t.replace(/%([cDhnrRtTxXzZ])/g,function(t,n){var i=Date.ext.aggregates[n];return"locale"==i?Date.ext.locales[e.locale][n]:i});var i=t.replace(/%([aAbBCdegGHIjlmMpPSuUVwWyY%])/g,function(t,i){var r=Date.ext.formats[i];return"string"==typeof r?e[r]():"function"==typeof r?r.call(e,e):"object"==("undefined"==typeof r?"undefined":n(r))&&"string"==typeof r[0]?Date.ext.util.xPad(e[r[0]](),r[1]):i});return e=null,i}},function(t,e){"use strict";
19rwgps.ns("postcards",function(){var t,e,n=this,i=4096,r=2<<16,o=3,s=3,a={img:null,origWidth:0,origHeight:0,ratio:0,src:"",scale:0,marginLeft:0,marginTop:0},l={cellSpacing:1};n.Postcard=function(t,e){this.$postcard=$(t),this.$container=$(".imagecells",this.$postcard),this.containerWidth=this.$container.width(),this.containerHeight=this.$container.height(),this.options=_.extend(e||{},l),this.cells=[],this.images=[],this.filmstripEnabled=!1,(this.options.srcs||this.options.layout)&&this.init()},_.extend(n.Postcard.prototype,Backbone.Events),_.extend(n.Postcard,Backbone.Events);var c=n.Postcard.layouts={1:{},2:{row:[{},{width:1.5}]},3:{row:[{width:1.5},{stack:[{},{}]}]},"3a":{stack:[{},{row:[{},{}]}]},4:{row:[{stack:[{height:2},{}]},{stack:[{},{height:2}]}]},"4a":{stack:[{row:[{},{}]},{row:[{},{}]}]},"4b":{row:[{},{stack:[{},{row:[{},{}]}]}]},"4c":{stack:[{},{row:[{},{},{}]}]},5:{row:[{stack:[{},{}]},{},{stack:[{},{}]}]},"5b":{row:[{width:2},{width:3,stack:[{row:[{width:1},{width:2}]},{row:[{width:2},{width:1}]}]}]},6:{row:[{width:2,stack:[{height:2},{height:1}]},{width:4,stack:[{height:1},{height:2,row:[{width:2},{width:2,stack:[{height:1},{height:1}]}]}]}]},"6a":{stack:[{row:[{},{},{}]},{row:[{},{},{}]}]},"6b":{row:[{stack:[{height:2},{height:1}]},{stack:[{row:[{},{}]},{row:[{},{}]}]}]},gt6:{row:[{width:2,stack:[{height:2},{height:1}]},{width:4,stack:[{height:1},{height:2,row:[{width:2},{width:2,stack:[{height:1},{height:1,row:[{},{}]}]}]}]}]},8:{row:[{width:2,stack:[{height:2},{height:1}]},{width:3,stack:[{height:1},{height:2,row:[{width:2},{width:2,stack:[{height:1},{height:1,row:[{},{}]}]}]}]},{width:1}]}};n.Postcard.prototype.init=function(t){var e;this.options.layout?e=this.processLayout(this.options.layout):!t&&this.options.srcs&&(t=this.options.srcs.length>6?"gt6":this.options.srcs.length),this.renderLayout(e||t),this.cells=$(".cell",this.$container).toArray(),this.images=[],this.options.layout?this.loadImagesFromLayout():this.options.srcs&&this.loadImagesFromSrcs(),this.filmstripEnabled=!this.options.disableFilmstrip&&!this.options.edit&&this.images.length>=s,this.filmstripEnabled&&(this.$postcard.addClass("filmstrip-enabled").addClass("clickable-images"),this.initFilmstrip()),this.options.clickableImages&&(this.initClickableImages(),this.$postcard.addClass("clickable-images")),this.options.edit&&this.$postcard.addClass("edit-enabled"),this.options.fluid&&this.initFluid(),this.initExpandoOverview()},n.Postcard.prototype.enableFluid=function(){var t=this.$container.closest(".ambassador-route-postcard");t.size()>0&&!this.options.fluid&&(t.addClass("fluid"),this.options.fluid=!0,this.initFluid(),this.fluidResize())},n.Postcard.prototype.disableFluid=function(){var t=this.$container.closest(".ambassador-route-postcard");if(t.size()>0&&this.options.fluid){t.removeClass("fluid"),this.options.fluid=!1;var e=t.width(),n=Math.round(e/o);this.$container.height(n),t.hasClass("with_ambassador")&&(t.find(".inner-container").width(e),e-=140),this.$container.width(e),this.renderIfSizeChanged()}},n.Postcard.prototype.initExpandoOverview=function(){var t=this.$container.closest(".ambassador-route-postcard");t.find(".route-overview a").on("click",function(){var t=$(this).closest(".footer");return t.find(".route-overview").hide(),t.find(".full-overview").show(),!1}),t.find(".full-overview a").on("click",function(){var t=$(this).closest(".footer");return t.find(".full-overview").hide(),t.find(".route-overview").show(),!1})},n.Postcard.prototype.initFluid=function(){if(!this._fluidResizeEnabled){this._fluidResizeEnabled=!0;var t=this,e=function(){var e=0,n=300;return function(){e?(e>0&&clearTimeout(e),e=setTimeout(function(){e=0,t.fluidResize()},n)):(t.fluidResize(),e=-1,setTimeout(function(){e=0},n))}}();$(window).resize(e),n.Postcard.on("resize",e),this.fluidResize()}},n.Postcard.prototype.fluidResize=function(){if(0!=this.$container.length&&this.options.fluid){var t=this.$container.closest(".fluid"),e=t.width(),n=e,i=this.options.fixedHeight||Math.round(n/o);t.hasClass("with_ambassador")&&(n-=140),t.find(".inner-container").width(e),this.$container.width(n).height(i),this.renderIfSizeChanged()}},n.Postcard.prototype.renderIfSizeChanged=function(){var t=this.$container.width(),e=this.$container.height();t==this.containerWidth&&e==this.containerHeight||(this.containerWidth=t,this.containerHeight=e,this.init())},n.Postcard.prototype.initClickableImages=function(){var t=this;$(".flip-container",this.$container).on("click",function(){var e=t.images[$(this).find(".cell").attr("data-imageI")];t.trigger("image:click",e)})},n.Postcard.prototype.initFilmstrip=function(){for(var t=this,e=0;e<this.images.length;e++)0===e?this.images[e].prev=this.images[this.images.length-1]:this.images[e].prev=this.images[e-1],e===this.images.length-1?this.images[e].next=this.images[0]:this.images[e].next=this.images[e+1];$(".flip-container",this.$container).on("click",function(){if(!($(this).find(".metric-flipper").size()>0)&&t.filmstripEnabled){t.createSupercell();var e=t.images[$(this).find(".cell").attr("data-imageI")];t.showImageInSupercell(e)}}),this.$postcard.on("click",".metric-flipper .back",function(){var e=$
19(this).closest(".metric-flipper").position().top;200===e?t.showImageInSupercell("next"):0===e&&t.showImageInSupercell("prev")}),this.$container.on("click",".supercell",function(){t.showImageInSupercell("next")}),this.$container.on("click",".closesupercell",function(){t.$container.find(".supercell").remove(),$(this).remove(),_.each(t.images,function(e){t.fillCell(e.cell,e,!0)}),t.flipMetrics(!0)}),$(".flip-container .front.cell",this.$container).on("mouseenter",function(){$(this).closest(".flip-container").css({zIndex:3})}).on("mouseleave",function(){$(this).closest(".flip-container").css({zIndex:2})})},n.Postcard.prototype.loadImagesFromLayout=function(){var t=this;this._imagesToPlace=0,_.each(this.cells,function(e){var n=$(e).data("cell").imageOpts;if(n){t.placingImage();var i=_.extend({},a,n);i.img=new Image,i.img.src=i.src,i.img.onerror=function(){t.placedImage(e)},i.img.onload=function(n){return function(){n.origWidth=n.img.width,n.origHeight=n.img.height,n.ratio=n.origWidth/n.origHeight,t.images.push(n),setTimeout(function(e){return function(){t.fillCell(e,n,!0,!1,"crossfade"),t.placedImage()}}(e),200*Math.random())}}(i)}},this)},n.Postcard.prototype.loadImagesFromSrcs=function(){for(var t=this,e=0,n=0;n<this.options.srcs.length;n++){e++;var i=_.extend({},a);i.img=new Image,i.img.src=i.src=this.options.srcs[n],i.img.onload=function(n){return function(){n.origWidth=n.img.width,n.origHeight=n.img.height,n.ratio=n.origWidth/n.origHeight,e--,0===e&&t.placeImages()}}(i),this.images.push(i)}},n.Postcard.prototype.placeImages=function(){var t=this;this._imagesToPlace=0,this.images.sort(function(t,e){var n=t.ratio,i=e.ratio;return n>1&&(n=1/n),i>1&&(i=1/i),n-i});var e=_.map(this.cells,function(t){var e=$(t).width(),n=$(t).height(),i=e/n;return{cell:t,cw:e,ch:n,cratio:i}});_.each(this.images,function(n){if(0!==e.length){e.sort(function(t,e){var i=t.cratio,r=e.cratio;return Math.abs(r-n.ratio)-Math.abs(i-n.ratio)});var i=e.shift();n.cell=i.cell,this.placingImage(),setTimeout(function(e){return function(){t.fillCell(e,n,!0,!1,"crossfade"),t.placedImage()}}(i.cell),200*Math.random())}},this)},n.Postcard.prototype.onImagesPlaced=function(){this.options.edit&&this.setupEditingTools(),this.options.onImagesPlaced&&this.options.onImagesPlaced()},n.Postcard.prototype.placedImage=function(t){t&&(this.errorCells||(this.errorCells=[]),this.errorCells.push(t)),this._imagesToPlace--,0===this._imagesToPlace&&(this.errorCells&&this.errorCells.length>0&&this.images.length>0&&_.each(this.errorCells,function(t){var e=_.extend({},this.images[0]);e.img=e.img.cloneNode(),this.images.push(e),this.fillCell($(t),e,!0,!1,"crossfade")},this),this.onImagesPlaced())},n.Postcard.prototype.placingImage=function(){this._imagesToPlace++},n.Postcard.prototype.renderLayout=function(t){_.isObject(t)?this.layout=t:this.layout=$.extend(!0,{},c[t]);var e=[],n=this.options.cellSpacing;!function t(i,r){var o,s,a,l,c;if(i.row)o=i.row,s="height",a="width",l="top",c="left";else{if(!i.stack)return r=_.extend({},r),r.width-=n,r.height-=n,r.layoutObj=i,i.image&&(r.imageOpts=i.image),void e.push(r);o=i.stack,s="width",a="height",l="left",c="top"}var u=r[a],h=0;_.each(o,function(t){t[a]||(t[a]=1),h+=t[a]});var p=u/h,d=r[c];_.each(o,function(e){var n={};n[c]=d,n[l]=r[l],n[a]=Math.round(e[a]*p),n[s]=r[s],t(e,n),d+=n[a]})}(this.layout,{top:0,left:0,width:this.containerWidth,height:this.containerHeight});var i=[],r=[],o=5;_.each(e,function(t){var e;for(e=0;e<i.length;e++)Math.abs(t.top-i[e])<o&&(t.top=i[e]),Math.abs(t.top+t.height+n-i[e])<o&&(t.height=i[e]-n-t.top);for(e=0;e<r.length;e++)Math.abs(t.left-r[e])<o&&(t.left=r[e]),Math.abs(t.left+t.width+n-r[e])<o&&(t.width=r[e]-n-t.left);i.push(t.top),i.push(t.top+t.height+n),r.push(t.left),r.push(t.left+t.width+n)}),this.$container.empty();var s=this;_.each(e,function(t){var e=$("<div class='flip-container'><div class='flipper'><div class='front cell'></div><div class='back'></div></div></div>");e.css({position:"absolute",width:t.width,height:t.height,top:t.top,left:t.left}),e.find(".front,.back").css({width:t.width,height:t.height}),e.find(".cell").data("cell",t),s.$container.append(e)})},n.Postcard.prototype.processLayout=function t(e){var n={};return e.width&&(n.width=e.width),e.height&&(n.height=e.height),e.row?_.extend(n,{row:_.map(e.row,t,this)}):e.stack?_.extend(n,{stack:_.map(e.stack,t,this)}):(e.image&&(this.options.editedImageUrls&&e.image.editedImageId?n.image={photoId:e.image.photoId,src:this.options.editedImageUrls[e.image.editedImageId]}:n.image={photoId:e.image.photoId,src:e.image.src,scale:e.image.scaleNoRes*this.containerWidth/r,marginLeft:e.image.marginLeftNoRes*this.containerWidth/i,marginTop:e.image.marginTopNoRes*this.containerHeight/i}),n)};var u=1e3;n.Postcard.prototype.serializeLayout=function(t,e){var n={};if(t||(e=[],t=this.layout,n.photoIds=e),t.width&&(n.width=t.width),t.height&&(n.height=t.height),t.row)return _.extend(n,{row:_.map(t.row,function(t){return this.serializeLayout(t,e)},this)});if(t.stack)return _.extend(n,{stack:_.map(t.stack,function(t){return this.serializeLayout(t,e)},this)});if(t.image){var o=parseInt(t.image.src.match(/photos(?:\/\w+)?\/([0-9]+)/)[1]),s=$(t.image.img).closest(".cell"),a=s.width(),l=s.height(),c=this.containerWidth,h=this.containerHeight;n.image={src:t.image.src,scaleNoRes:Math.floor(u*r*t.image.scale/c)/u,marginLeftNoRes:Math.floor(u*i*t.image.marginLeft/c)/u,marginTopNoRes:Math.floor(u*i*t.image.marginTop/h)/u,widthNoRes:Math.floor(u*i*a/c)/u,heightNoRes:Math.floor(u*i*l/h)/u,photoId:o},e.push(o)}return n},n.Postcard.prototype.fillCell=function(t,e,n,i,r){var o,s=!1,a=$(t),l=a.width(),c=a.height(),u=l/c;if(i?o=e.img.cloneNode():($(e.img).remove(),o=e.img),$(o).addClass("postc
19ard-cell-image"),"crossfade"===r){var h=a.find("img.postcard-cell-image").css({opacity:0,position:"absolute"}).removeClass("postcard-cell-image");setTimeout(function(){h.remove()},600);var p=$(o);p.css({position:"absolute",opacity:0}),a.prepend(p),setTimeout(function(){p.css({opacity:1})},0)}else a.empty().append(o);var d=_.indexOf(this.images,e);if(d===-1&&(d=a.attr("data-imageI"),this.images[d]=e,s=!0),a.attr("data-imageI",_.indexOf(this.images,e)),e.scale){var f,m=e.scale*e.origWidth,g=e.scale*e.origHeight;l>m&&(f=l/m,m=l,g*=f),c>g&&(f=c/g,g=c,m*=f),o.style.width=m+"px",o.style.height=g+"px",o.style.marginLeft=(e.marginLeft+parseFloat(o.style.width)<l?l-parseFloat(o.style.width):e.marginLeft)+"px",o.style.marginTop=(e.marginTop+parseFloat(o.style.height)<c?c-parseFloat(o.style.height):e.marginTop)+"px"}else(n?e.ratio>u:e.ratio<u)?(m=c*e.ratio,o.style.width=m+"px",o.style.height=c+"px",e.marginLeft=-((m-l)/2),e.marginTop=0,o.style.marginLeft=e.marginLeft+"px",o.style.marginTop=e.marginTop+"px"):(o.style.width=l+"px",g=1/e.ratio*l,o.style.height=g+"px",e.marginTop=-((g-c)/2),e.marginLeft=0,o.style.marginLeft=e.marginLeft+"px",o.style.marginTop=e.marginTop+"px");if(s&&this.options.edit)for(var v=0;v<this.imageScalers.length;v++)if(this.imageScalers[v].$cell[0]===a[0]){this.imageScalers[v].imageChanged();break}var y=a.data("cell");y&&y.layoutObj&&(y.layoutObj.image=e)},n.Postcard.prototype.setupEditingTools=function(){var e=this,n=this.$postcard.find(".cell");n.on("mousedown","img.postcard-cell-image",function(t){$(t.currentTarget).hasClass("postcard-cell-image")&&($(this).closest(".cell").find(".image-scaler").hide(),e.startMoveImage(t,$(this)))}
19),e.imageScalers=[],n.each(function(){var n=$(this),i=new t(e,n);i.$el.hide(),e.imageScalers.push(i)}),n.on("mouseover",function(){e.imageScaler||e.imageMover||$(this).find(".image-scaler").show()}).on("mouseout",function(){e.imageScaler||e.imageMover||$(this).find(".image-scaler").hide()})},n.Postcard.prototype.startMoveImage=function(t,n){this.imageMover=new e(n),this.imageMover.start(this,t)},n.Postcard.prototype.imageMoveComplete=function(){var t=this.images[this.imageMover.$cell.attr("data-imageI")];t.marginLeft=this.imageMover.pxStrToFloat(this.imageMover.$img.css("marginLeft")),t.marginTop=this.imageMover.pxStrToFloat(this.imageMover.$img.css("marginTop")),this.options.onImageMoveComplete&&this.options.onImageMoveComplete(),delete this.imageMover},n.Postcard.prototype.createSupercell=function(){var t=$('<div class="supercell"></div>');t.css({position:"absolute",left:0,top:0,width:599,height:299,backgroundColor:"#333"}),this.$container.append(t);var e=$("<div class='closesupercell'><i class='icon-reply icon-3x'></i></div>");e.css({position:"absolute",left:10,top:this.containerHeight-53,width:42,he
19ight:43,color:"#999",cursor:"pointer"}),this.$container.append(e)},n.Postcard.prototype.flipMetrics=function(t){var e=50,n=$(".metric-flipper",this.$postcard).closest(".flip-container").toArray();t&&n.reverse(),function i(){if(0!==n.length){var r=$(n.shift());r[t?"removeClass":"addClass"]("hover"),r.emulateTransitionEnd(400),r.find(t?".front":".back").css({visibility:"visible"}),r.one(transitionEndEvent,function(){$(this).find(t?".back":".front").css({visibility:"hidden"})}),setTimeout(i,e)}}()},n.Postcard.prototype.showImageInSupercell=function(t){if("next"===t||"prev"===t){var e,n,i,r,o,s;"next"===t?(e=2,n="after",i=300,r="next",o=0,s=-100):(e=0,n="before",i=-100,r="prev",o=3,s=100);var a=this;$(".metricscells",this.$postcard).queue(function(){var l=$(this),c=$(".metric-flipper .back",l).toArray(),u=$(c[e]).closest(".flip-container").get(0),h=u.cloneNode(!0);$(h).css({top:i}),$(u)[n](h),a.fillCell($(h).find(".back"),a.images[$(c[e]).attr("data-imageI")][r],!0);var p=$(".metric-flipper",l).toArray();"prev"===t&&p.reverse();var d;!function t(){if(0!==p.length){var e=$(p.shift());e.css({top:e.position().top+s});var n=e.find(".front").html();e.find(".front").html(d),d=n,setTimeout(t,15)}}(),setTimeout(function(){$($(".metric-flipper",l).get(o)).remove(),l.dequeue()},430)});var l=$(".supercell",this.$container);this.fillCell(l,this.images[l.attr("data-imageI")][r],!1,!0,"crossfade")}else{this.fillCell($(".supercell",this.$container),t,!1,!0,"crossfade"),this.flipMetrics();var c=$(".metric-flipper .back",this.$postcard).toArray();this.fillCell(c[0],t.prev,!0),this.fillCell(c[1],t,!0),this.fillCell(c[2],t.next,!0)}},t=function(t,e){this.postcard=t,this.$cell=e,this.currentSize={width:0,height:0},this.buildSlider(),this.imageChanged()},t.prototype={imageChanged:function(){this.image=this.postcard.images[this.$cell.attr("data-imageI")],this.$img=$(this.image.img),this.image.scale=$(this.image.img).height()/this.image.origHeight,this.maxScale=1,this.minScale=this.calcMinScale(),this.scaleRange=this.maxScale-this.minScale,this.renderSliderKnobPosition()},buildSlider:function(){this.$el=$(['<div class="image-scaler">','<div class="slider-bar">','<div class="slider-knob">',"</div></div></div>"].join("")),this.$sliderKnob=this.$el.find(".slider-knob"),this.$cell.append(this.$el),this.$el.width(this.$cell.width()-20).css("top",this.$cell.height()-20);var t=this;this.$el.find(".slider-bar").on("mousedown",function(){t.onBarClick.apply(t,arguments)})},calcMinScale:function(){var t=this.$cell.height(),e=this.$cell.width(),n=e/t;return this.image.ratio>n?t/this.image.origHeight:e/this.image.origWidth},onBarClick:function(t){this.setBoundedImageScale(t.pageX),this.startDrag(t),this.renderMove()},startDrag:function(t){this.postcard.imageScaler=this;var e=this.$cell.width()/2+this.$cell.offset().left-this.$img.offset().left,n=this.$cell.height()/2+this.$cell.offset().top-this.$img.offset().top;this.centerXPct=e/this.$img.width(),this.centerYPct=n/this.$img.height(),document.body.focus(),document.onselectstart=function(){return!1},t.preventDefault();var i=this;this.onMouseMove=function(){i.move.apply(i,arguments)},this.onMouseUp=function(){i.success()},$(window).on("mouseup",this.onMouseUp).on("mousemove",this.onMouseMove),this.$img.addClass("notransition")},renderSliderKnobPosition:function(){var t=-4;this.$sliderKnob.css("left",(this.image.scale-this.minScale)/this.scaleRange*this.$el.width()+t)},setBoundedImageScale:function(t){var e=(t-this.$el.offset().left)/this.$el.width();e<0?e=0:e>1&&(e=1);var n=e*this.scaleRange+this.minScale;this.image.scale=n,this.currentSize.width=this.image.origWidth*n,this.currentSize.height=this.image.origHeight*n},move:function(t){this.setBoundedImageScale(t.pageX);var e=this;this._renderId&&cancelAnimationFrame(this._renderId),this._renderId=requestAnimationFrame(function(){e.renderMove()})},renderMove:function(){this.renderSliderKnobPosition(),this.$img.width(this.currentSize.width),this.$img.height(this.currentSize.height);var t=-(this.centerXPct*this.currentSize.width-this.$cell.width()/2),e=-(this.centerYPct*this.currentSize.height-this.$cell.height()/2),n=this.$cell.width()-this.$img.width(),i=this.$cell.height()-this.$img.he
19ight();t>0?t=0:t<n&&(t=n),e>0?e=0:e<i&&(e=i),this.$img.css("marginLeft",t+"px"),this.$img.css("marginTop",e+"px")},success:function(){this.postcard.options.onImageScaleComplete&&this.postcard.options.onImageScaleComplete(),this.cleanup()},cleanup:function(){this._renderId&&cancelAnimationFrame(this._renderId),this._renderId=requestAnimationFrame(function(){t.renderMove()}),document.onselectstart=null,$(window).off("mouseup",this.onMouseUp).off("mousemove",this.onMouseMove);var t=this;_.defer(function(){t.$img.removeClass("notransition")}),delete this.postcard.imageScaler}},e=function(t){this.$img=t,this.$cell=t.closest(".cell"),this.imageOffset=t.offset(),this.cellOffset=t.closest(".cell").offset(),this.mouseToImage={left:0,top:0},this.mouseToImageOffset={left:0,top:0},this.mouseOffset={left:0,top:0}},e.prototype={pxStrToFloat:function(t){return parseFloat(t.replace("px",""))},start:function(t,e){this.postcard=t,document.body.focus(),document.onselectstart=function(){return!1},e.preventDefault(),this.mouseToImage.left=this.pxStrToFloat(this.$img.css("marginLeft"))-e.pageX,this.mouseToImage.top=this.pxStrToFloat(this.$img.css("marginTop"))-e.pageY,this.mouseToImageOffset.left=this.imageOffset.left-e.pageX,this.mouseToImageOffset.top=this.imageOffset.top-e.pageY,this.setBoundedMouseOffset(e.pageX,e.pageY);var n=this;this.onMouseMove=function(){n.move.apply(n,arguments)},this.onMouseUp=function(){n.success()},$(window).on("mouseup",this.onMouseUp).on("mousemove",this.onMouseMove),$("body").prepend(this.$img.remove()),this.$img.addClass("postcard-moving"),this.$img.offset(this.imageOffset),this.$frame=$("<div></div>").addClass("postcard-moving-frame"),$("body").prepend(this.$frame),this.$frame.offset({left:this.cellOffset.left-1,top:this.cellOffset.top-1}).width(this.$cell.width()).height(this.$cell.height())},setUnboundedMouseOffset:function(t,e){this.mouseOffset.left=t,this.mouseOffset.top=e},setBoundedMouseOffset:function(t,e){var n=t+this.mouseToImageOffset.left,i=e+this.mouseToImageOffset.top,r=this.cellOffset.left+this.$cell.width()-this.$img.width(),o=this.cellOffset.top+this.$cell.height()-this.$img.height(),s=0;return n>this.cellOffset.left?(s=n-this.cellOffset.left,n=this.cellOffset.left):n<r&&(s=r-n,n=r),i>this.cellOffset.top?(s=Math.max(s,i-this.cellOffset.top),i=this.cellOffset.top):i<o&&(s=Math.max(s,o-i),i=o),t=n-this.mouseToImageOffset.left,e=i-this.mouseToImageOffset.top,this.mouseOffset.left=t,this.mouseOffset.top=e,s},popOut:function(){this.poppedOut=!0,this.$frame.remove(),this.$img.addClass("postcard-image-droppable")},move:function(t){if(this.poppedOut)this.setUnboundedMouseOffset(t.pageX,t.pageY);else{var e=this.setBoundedMouseOffset(t.pageX,t.pageY);e>100&&this.popOut()}var n=this;this._renderId&&cancelAnimationFrame(this._renderId),this._renderId=requestAnimationFrame(function(){n.renderMove()})},renderMove:function(){var t,e;t=this.mouseOffset.left+this.mouseToImageOffset.left,e=this.mouseOffset.top+this.mouseToImageOffset.top,this.$img.offset({left:t,top:e})},renderFinalPosition:function(){var t,e;t=this.mouseOffset.left+this.mouseToImage.left,e=this.mouseOffset.top+this.mouseToImage.top;var n=this.$cell.width()-this.$img.width(),i=this.$cell.height()-this.$img.height();t>0?t=0:t<n&&(t=n),e>0?e=0:e<i&&(e=i),this.$img.css("marginLeft",t+"px"),this.$img.css("marginTop",e+"px")},success:function(){this.cleanup()},cleanup:function(){if(this._renderId&&cancelAnimationFrame(this._renderId),this.poppedOut||this.$frame.remove(),document.onselectstart=null,$(window).off("mouseup",this.onMouseUp).off("mousemove",this.onMouseMove),this.$cell.prepend(this.$img.remove()),this.$img.css({left:"",top:""}),this.$img.removeClass("postcard-moving"),this.poppedOut){this.$img.removeClass("postcard-image-droppable");var e=this.mouseOffset,n=e.left,i=e.top,r=_.find(this.postcard.cells,function(t){var e=$(t),r=e.offset();return n>r.left&&n<r.left+e.width()&&i>r.top&&i<r.top+e.height()});if(r&&r!==this.$cell.get(0)){var o=$(r),s=_.extend({},this.postcard.images[this.$cell.attr("data-imageI")]),a=_.extend({},this.postcard.images[o.attr("data-imageI")]);
19[s,a].forEach(function(t){t.scale=t.marginLeft=t.marginTop=null,t.img=t.img.cloneNode()}),this.postcard.fillCell(o,s,!0,!1),this.postcard.fillCell(this.$cell,a,!0,!1);var l=new t(this.postcard,o);l.$el.hide(),this.postcard.imageScalers.push(l);var c=new t(this.postcard,this.$cell);c.$el.hide(),this.postcard.imageScalers.push(c)}}this.$img.addClass("notransition"),this.renderFinalPosition();var u=this;_.defer(function(){u.$img.removeClass("notransition")}),this.postcard.imageMoveComplete()}}})},function(t,e){t.exports=jquery_ui_lib},function(t,e,n){"use strict";n(36),n(16),n(28),n(7),n(37),n(35)},,,,function(t,e){!function(t){"undefined"==typeof t.fn.each2&&t.fn.extend({each2:function(e){for(var n=t([0]),i=-1,r=this.length;++i<r&&(n.context=n[0]=this[i])&&e.call(n[0],i,n)!==!1;);return this}})}(jQuery),function(t,e){"use strict";function n(t,e){for(var n=0,r=e.length;n<r;n+=1)if(i(t,e[n]))return n;return-1}function i(t,n){return t===n||t!==e&&n!==e&&(null!==t&&null!==n&&(t.constructor===String?t===n+"":n.constructor===String&&n===t+""))}function r(e,n){var i,r,o;if(null===e||e.length<1)return[];for(i=e.split(n),r=0,o=i.length;r<o;r+=1)i[r]=t.trim(i[r]);return i}function o(t){return t.outerWidth(!1)-t.width()}function s(n){var i="keyup-change-value";n.bind("keydown",function(){t.data(n,i)===e&&t.data(n,i,n.val())}),n.bind("keyup",function(){var r=t.data(n,i);r!==e&&n.val()!==r&&(t.removeData(n,i),n.trigger("keyup-change"))})}function a(n){n.bind("mousemove",function(n){var i=M;i!==e&&i.x===n.pageX&&i.y===n.pageY||t(n.target).trigger("mousemove-filtered",n)})}function l(t,n,i){i=i||e;var r;return function(){var e=arguments;window.clearTimeout(r),r=window.setTimeout(function(){n.apply(i,e)},t)}}function c(t){var e,n=!1;return function(){return n===!1&&(e=t(),n=!0),e}}function u(t,e){var i=l(t,function(t){e.trigger("scroll-debounced",t)});e.bind("scroll",function(t){n(t.target,e.get())>=0&&i(t)})}function h(t){t[0]!==document.activeElement&&window.setTimeout(function(){var e,n=t[0],i=t.val().length;t.focus(),n.setSelectionRange?n.setSelectionRange(i,i):n.createTextRange&&(e=n.createTextRange(),e.collapse(!0),e.moveEnd("character",i),e.moveStart("character",i),e.select())},0)}function p(t){t.preventDefault(),t.stopPropagation()}function d(t){t.preventDefault(),t.stopImmediatePropagation()}function f(e){if(!I){var n=e[0].currentStyle||window.getComputedStyle(e[0],null);I=t(document.createElement("div")).css({position:"absolute",left:"-10000px",top:"-10000px",display:"none",fontSize:n.fontSize,fontFamily:n.fontFamily,fontStyle:n.fontStyle,fontWeight:n.fontWeight,letterSpacing:n.letterSpacing,textTransform:n.textTransform,whiteSpace:"nowrap"}),I.attr("class","select2-sizer"),t("body").append(I)}return I.text(e.val()),I.width()}function m(e,n,i){var r,o,s=[];r=e.attr("class"),"string"==typeof r&&t(r.split(" ")).each2(function(){0===this.indexOf("select2-")&&s.push(this)}),r=n.attr("class"),"string"==typeof r&&t(r.split(" ")).each2(function(){0!==this.indexOf("select2-")&&(o=i(this),"string"==typeof o&&o.length>0&&s.push(this))}),e.attr("class",s.join(" "))}function g(t,e,n,i){var r=t.toUpperCase().indexOf(e.toUpperCase()),o=e.length;return r<0?void n.push(i(t)):(n.push(i(t.substring(0,r))),n.push("<span class='select2-match'>"),n.push(i(t.substring(r,r+o))),n.push("</span>"),void n.push(i(t.substring(r+o,t.length))))}function v(e){var n,i=0,r=null,o=e.quietMillis||100,s=e.url,a=this;return function(l){window.clearTimeout(n),n=window.setTimeout(function(){i+=1;var n=i,o=e.data,c=s,u=e.transport||t.ajax,h=e.type||"GET",p={};o=o?o.call(a,l.term,l.page,l.context):null,c="function"==typeof c?c.call(a,l.term,l.page,l.context):c,null!==r&&r.abort(),e.params&&(t.isFunction(e.params)?t.extend(p,e.params.call(a)):t.extend(p,e.params)),t.extend(p,{url:c,dataType:e.dataType,data:o,type:h,cache:!1,success:function(t){if(!(n<i)){var r=e.results(t,l.page);l.callback(r)}}}),r=u.call(a,p)},o)}}function y(e){var n,i,r=e,o=function(t){return""+t.text};t.isArray(r)&&(i=r,r={results:i}),t.isFunction(r)===!1&&(i=r,r=function(){return i});var s=r();return s.text&&(o=s.text,t.isFunction(o)||(n=r.text,o=function(t){return t[n]})),function(e){var n,i=e.term,s={results:[]};return""===i?void e.callback(r()):(n=function(r,s){var a,l;if(r=r[0],r.children){a={};for(l in r)r.hasOwnProperty(l)&&(a[l]=r[l]);a.children=[],t(r.children).each2(function(t,e){n(e,a.children)}),(a.children.length||e.matcher(i,o(a),r))&&s.push(a)}else e.matcher(i,o(r),r)&&s.push(r)},t(r().results).each2(function(t,e){n(e,s.results)}),void e.callback(s))}}function b(n){var i=t.isFunction(n);return function(r){var o=r.term,s={results:[]};t(i?n():n).each(function(){var t=this.text!==e,n=t?this.text:this;(""===o||r.matcher(o,n))&&s.results.push(t?this:{id:this,text:this})}),r.callback(s)}}function w(e,n){if(t.isFunction(e))return!0;
19if(!e)return!1;throw new Error("formatterName must be a function or a falsy value")}function _(e){return t.isFunction(e)?e():e}function x(e){var n=0;return t.each(e,function(t,e){e.children?n+=x(e.children):n++}),n}function k(t,n,r,o){var s,a,l,c,u,h=t,p=!1;if(!o.createSearchChoice||!o.tokenSeparators||o.tokenSeparators.length<1)return e;for(;;){for(a=-1,l=0,c=o.tokenSeparators.length;l<c&&(u=o.tokenSeparators[l],a=t.indexOf(u),!(a>=0));l++);if(a<0)break;if(s=t.substring(0,a),t=t.substring(a+u.length),s.length>0&&(s=o.createSearchChoice(s,n),s!==e&&null!==s&&o.id(s)!==e&&null!==o.id(s))){for(p=!1,l=0,c=n.length;l<c;l++)if(i(o.id(s),o.id(n[l]))){p=!0;break}p||r(s)}}return h!==t?t:void 0}function T(e,n){var i=function(){};return i.prototype=new e,i.prototype.constructor=i,i.prototype.parent=e.prototype,i.prototype=t.extend(i.prototype,n),i}if(window.Select2===e){var C,$,S,E,A,I,M,j;C={TAB:9,ENTER:13,ESC:27,SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40,SHIFT:16,CTRL:17,ALT:18,PAGE_UP:33,PAGE_DOWN:34,HOME:36,END:35,BACKSPACE:8,DELETE:46,isArrow:function(t){switch(t=t.which?t.which:t){case C.LEFT:case C.RIGHT:case C.UP:case C.DOWN:return!0}return!1},isControl:function(t){var e=t.which;switch(e){case C.SHIFT:case C.CTRL:case C.ALT:return!0}return!!t.metaKey},isFunctionKey:function(t){return t=t.which?t.which:t,t>=112&&t<=123}},j=t(document),A=function(){var t=1;return function(){return t++}}(),j.bind("mousemove",function(t){M={x:t.pageX,y:t.pageY}}),$=T(Object,{bind:function(t){var e=this;return function(){t.apply(e,arguments)}},init:function(n){var i,r,o=".select2-results";this.opts=n=this.prepareOpts(n),this.id=n.id,n.element.data("select2")!==e&&null!==n.element.data("select2")&&this.destroy(),this.enabled=!0,this.container=this.createContainer(),this.containerId="s2id_"+(n.element.attr("id")||"autogen"+A()),this.containerSelector="#"+this.containerId.replace(/([;&,\.\+\*\~':"\!\^#$%@\[\]\(\)=>\|])/g,"\\$1"),this.container.attr("id",this.containerId),this.body=c(function(){return n.element.closest("body")}),m(this.container,this.opts.element,this.opts.adaptContainerCssClass),this.container.css(_(n.containerCss)),this.container.addClass(_(n.containerCssClass)),this.elementTabIndex=this.opts.element.attr("tabIndex"),this.opts.element.data("select2",this).addClass("select2-offscreen").bind("focus.select2",function(){t(this).select2("focus")}).attr("tabIndex","-1").before(this.container),this.container.data("select2",this),this.dropdown=this.container.find(".select2-drop"),this.dropdown.addClass(_(n.dropdownCssClass)),this.dropdown.data("select2",this),this.results=i=this.container.find(o),this.search=r=this.container.find("input.select2-input"),r.attr("tabIndex",this.elementTabIndex),this.resultsPage=0,this.context=null,this.initContainer(),a(this.results),this.dropdown.delegate(o,"mousemove-filtered touchstart touchmove touchend",this.bind(this.highlightUnderEvent)),u(80,this.results),this.dropdown.delegate(o,"scroll-debounced",this.bind(this.loadMoreIfNeeded)),t.fn.mousewheel&&i.mousewheel(function(t,e,n,r){var o=i.scrollTop();r>0&&o-r<=0?(i.scrollTop(0),p(t)):r<0&&i.get(0).scrollHeight-i.scrollTop()+r<=i.height()&&(i.scrollTop(i.get(0).scrollHeight-i.height()),p(t))}),s(r),r.bind("keyup-change input paste",this.bind(this.updateResults)),r.bind("focus",function(){r.addClass("select2-focused")}),r.bind("blur",function(){r.removeClass("select2-focused")}),this.dropdown.delegate(o,"mouseup",this.bind(function(e){t(e.target).closest(".select2-result-selectable").length>0&&(this.highlightUnderEvent(e),this.selectHighlighted(e))})),this.dropdown.bind("click mouseup mousedown",function(t){t.stopPropagation()}),t.isFunction(this.opts.initSelection)&&(this.initSelection(),this.monitorSource()),(n.element.is(":disabled")||n.element.is("[readonly='readonly']"))&&this.disable()},destroy:function(){var t=this.opts.element.data("select2");this.propertyObserver&&(delete this.propertyObserver,this.propertyObserver=null),t!==e&&(t.container.remove(),t.dropdown.remove(),t.opts.element.removeClass("select2-offscreen").removeData("select2").unbind(".select2").attr({tabIndex:this.elementTabIndex}).show())},prepareOpts:function(n){var o,s,a,l;if(o=n.element,"select"===o.get(0).tagName.toLowerCase()&&(this.select=s=n.element),s&&t.each(["id","multiple","ajax","query","createSearchChoice","initSelection","data","tags"],function(){if(this in n)throw new Error("Option '"+this+"' is not allowed for Select2 when attached to a <select> element."); 20}),n=t.extend({},{populateResults:function(i,r,o){var s,a=this.opts.id,l=this;(s=function(i,r,c){var u,h,p,d,f,m,g,v,y,b;for(i=n.sortResults(i,r,o),u=0,h=i.length;u<h;u+=1)p=i[u],f=p.disabled===!0,d=!f&&a(p)!==e,m=p.children&&p.children.length>0,g=t("<li></li>"),g.addClass("select2-results-dept-"+c),g.addClass("select2-result"),g.addClass(d?"select2-result-selectable":"select2-result-unselectable"),f&&g.addClass("select2-disabled"),m&&g.addClass("select2-result-with-children"),g.addClass(l.opts.formatResultCssClass(p)),v=t
20(document.createElement("div")),v.addClass("select2-result-label"),b=n.formatResult(p,v,o,l.opts.escapeMarkup),b!==e&&v.html(b),g.append(v),m&&(y=t("<ul></ul>"),y.addClass("select2-result-sub"),s(p.children,y,c+1),g.append(y)),g.data("select2-data",p),r.append(g)})(r,i,0)}},t.fn.select2.defaults,n),"function"!=typeof n.id&&(a=n.id,n.id=function(t){return t[a]}),t.isArray(n.element.data("select2Tags"))){if("tags"in n)throw"tags specified as both an attribute 'data-select2-tags' and in options of Select2 "+n.element.attr("id");n.tags=n.element.attr("data-select2-tags")}if(s?(n.query=this.bind(function(n){var r,s,a,l={results:[],more:!1},c=n.term;a=function(t,e){var r;t.is("option")?n.matcher(c,t.text(),t)&&e.push({id:t.attr("value"),text:t.text(),element:t.get(),css:t.attr("class"),disabled:i(t.attr("disabled"),"disabled")}):t.is("optgroup")&&(r={text:t.attr("label"),children:[],element:t.get(),css:t.attr("class")},t.children().each2(function(t,e){a(e,r.children)}),r.children.length>0&&e.push(r))},r=o.children(),this.getPlaceholder()!==e&&r.length>0&&(s=r[0],""===t(s).text()&&(r=r.not(s))),r.each2(function(t,e){a(e,l.results)}),n.callback(l)}),n.id=function(t){return t.id},n.formatResultCssClass=function(t){return t.css}):"query"in n||("ajax"in n?(l=n.element.data("ajax-url"),l&&l.length>0&&(n.ajax.url=l),n.query=v.call(n.element,n.ajax)):"data"in n?n.query=y(n.data):"tags"in n&&
20(n.query=b(n.tags),n.createSearchChoice===e&&(n.createSearchChoice=function(t){return{id:t,text:t}}),n.initSelection===e&&(n.initSelection=function(e,o){var s=[];t(r(e.val(),n.separator)).each(function(){var e=this,r=this,o=n.tags;t.isFunction(o)&&(o=o()),t(o).each(function(){if(i(this.id,e))return r=this.text,!1}),s.push({id:e,text:r})}),o(s)}))),"function"!=typeof n.query)throw"query function not defined for Select2 "+n.element.attr("id");return n},monitorSource:function(){var t,e=this.opts.element;e.bind("change.select2",this.bind(function(t){this.opts.element.data("select2-change-triggered")!==!0&&this.initSelection()})),t=this.bind(function(){var t,e;t="disabled"!==this.opts.element.attr("disabled"),e="readonly"===this.opts.element.attr("readonly"),t=t&&!e,this.enabled!==t&&(t?this.enable():this.disable()),m(this.container,this.opts.element,this.opts.adaptContainerCssClass),this.container.addClass(_(this.opts.containerCssClass)),m(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass),this.dropdown.addClass(_(this.opts.dropdownCssClass))}),e.bind("propertychange.select2 DOMAttrModified.select2",t),"undefined"!=typeof WebKitMutationObserver&&(this.propertyObserver&&(delete this.propertyObserver,this.propertyObserver=null),this.propertyObserver=new WebKitMutationObserver(function(e){e.forEach(t)}),this.propertyObserver.observe(e.get(0),{attributes:!0,subtree:!1}))},triggerChange:function(e){e=e||{},e=t.extend({},e,{type:"change",val:this.val()}),this.opts.element.data("select2-change-triggered",!0),this.opts.element.trigger(e),this.opts.element.data("select2-change-triggered",!1),this.opts.element.click(),this.opts.blurOnChange&&this.opts.element.blur()},enable:function(){this.enabled||(this.enabled=!0,this.container.removeClass("select2-container-disabled"),this.opts.element.removeAttr("disabled"))},disable:function(){this.enabled&&(this.close(),this.enabled=!1,this.container.addClass("select2-container-disabled"),this.opts.element.attr("disabled","disabled"))},opened:function(){return this.container.hasClass("select2-dropdown-open")},positionDropdown:function(){var e,n,i,r=this.container.offset(),o=this.container.outerHeight(!1),s=this.container.outerWidth(!1),a=this.dropdown.outerHeight(!1),l=t(window).scrollLeft()+t(window).width(),c=t(window).scrollTop()+t(window).height(),u=r.top+o,h=r.left,p=u+a<=c,d=r.top-a>=this.body().scrollTop(),f=this.dropdown.outerWidth(!1),m=h+f<=l,g=this.dropdown.hasClass("select2-drop-above");"static"!==this.body().css("position")&&(e=this.body().offset(),u-=e.top,h-=e.left),g?(n=!0,!d&&p&&(n=!1)):(n=!1,!p&&d&&(n=!0)),m||(h=r.left+s-f),n?(u=r.top-a,this.container.addClass("select2-drop-above"),this.dropdown.addClass("select2-drop-above")):(this.container.removeClass("select2-drop-above"),this.dropdown.removeClass("select2-drop-above")),i=t.extend({top:u,left:h,width:s},_(this.opts.dropdownCss)),this.dropdown.css(i)},shouldOpen:function(){var e;return!this.opened()&&(e=t.Event("opening"),this.opts.element.trigger(e),!e.isDefaultPrevented())},clearDropdownAlignmentPreference:function(){this.container.removeClass("select2-drop-above"),this.dropdown.removeClass("select2-drop-above")},open:function(){return!!this.shouldOpen()&&(window.setTimeout(this.bind(this.opening),1),!0)},opening:function(){var e,n=this.containerId,i="scroll."+n,r="resize."+n,o="orientationchange."+n;this.clearDropdownAlignmentPreference(),this.container.addClass("select2-dropdown-open").addClass("select2-container-active"),this.dropdown[0]!==this.body().children().last()[0]&&this.dropdown.detach().appendTo(this.body()),this.updateResults(!0),e=t("#select2-drop-mask"),0==e.length&&(e=t(document.createElement("div")),e.attr("id","select2-drop-mask").attr("class","select2-drop-mask"),e.hide(),e.appendTo(this.body()),e.bind("mousedown touchstart",function(e){var n,i=t("#select2-drop");i.length>0&&(n=i.data("select2"),n.opts.selectOnBlur&&n.selectHighlighted({noFocus:!0}),n.close())})),this.dropdown.prev()[0]!==e[0]&&this.dropdown.before(e),t("#select2-drop").removeAttr("id"),this.dropdown.attr("id","select2-drop"),e.css({width:document.documentElement.scrollWidth,height:document.documentElement.scrollHeight}),e.show(),this.dropdown.show(),this.positionDropdown(),this.dropdown.addClass("select2-drop-active"),this.ensureHighlightVisible();var s=this;this.container.parents().add(window).each(function(){t(this).bind(r+" "+i+" "+o,function(e){t("#select2-drop-mask").css({width:document.documentElement.scrollWidth,height:document.documentElement.scrollHeight}),s.positionDropdown()})}),this.focusSearch()},close:function(){if(this.opened()){var e=this.containerId,n="scroll."+e,i="resize."+e,r="orientationchange."+e;this.container.parents().add(window).each(function(){t(this).unbind(n).unbind(i).unbind(r)}),this.clearDropdownAlignmentPreference(),t("#select2-drop-mask").hide(),this.dropdown.removeAttr("id"),this.dropdown.hide(),this.container.removeClass("select2-dropdown-open"),this.results.empty(),this.clearSearch(),this.opts.element.trigger(t.Event("close"))}},clearSearch:function(){},getMaximumSelectionSize:function(){return _(this.opts.maximumSelectionSize)},ensureHighlightVisible:function(){var e,n,i,r,o,s,a,l=this.results;
20if(n=this.highlight(),!(n<0)){if(0==n)return void l.scrollTop(0);e=this.findHighlightableChoices(),i=t(e[n]),r=i.offset().top+i.outerHeight(!0),n===e.length-1&&(a=l.find("li.select2-more-results"),a.length>0&&(r=a.offset().top+a.outerHeight(!0))),o=l.offset().top+l.outerHeight(!0),r>o&&l.scrollTop(l.scrollTop()+(r-o)),s=i.offset().top-l.offset().top,s<0&&"none"!=i.css("display")&&l.scrollTop(l.scrollTop()+s)}},findHighlightableChoices:function(){this.results.find(".select2-result-selectable:not(.select2-selected):not(.select2-disabled)");return this.results.find(".select2-result-selectable:not(.select2-selected):not(.select2-disabled)")},moveHighlight:function(e){for(var n=this.findHighlightableChoices(),i=this.highlight();i>-1&&i<n.length;){i+=e;var r=t(n[i]);if(r.hasClass("select2-result-selectable")&&!r.hasClass("select2-disabled")&&!r.hasClass("select2-selected")){this.highlight(i);break}}},highlight:function(e){var i,r,o=this.findHighlightableChoices();return 0===arguments.length?n(o.filter(".select2-highlighted")[0],o.get()):(e>=o.length&&(e=o.length-1),e<0&&(e=0),this.results.find(".select2-highlighted").removeClass("select2-highlighted"),i=t(o[e]),i.addClass("select2-highlighted"),this.ensureHighlightVisible(),r=i.data("select2-data"),void(r&&this.opts.element.trigger({type:"highlight",val:this.id(r),choice:r})))},countSelectableResults:function(){return this.findHighlightableChoices().length},highlightUnderEvent:function(e){var n=t(e.target).closest(".select2-result-selectable");if(n.length>0&&!n.is(".select2-highlighted")){var i=this.findHighlightableChoices();this.highlight(i.index(n))}else 0==n.length&&this.results.find(".select2-highlighted").removeClass("select2-highlighted")},loadMoreIfNeeded:function(){var t,e=this.results,n=e.find("li.select2-more-results"),i=this.resultsPage+1,r=this,o=this.search.val(),s=this.context;0!==n.length&&(t=n.offset().top-e.offset().top-e.height(),t<=this.opts.loadMorePadding&&(n.addClass("select2-active"),this.opts.query({element:this.opts.element,term:o,page:i,context:s,matcher:this.opts.matcher,callback:this.bind(function(t){r.opened()&&(r.opts.populateResults.call(this,e,t.results,{term:o,page:i,context:s}),t.more===!0?(n.detach().appendTo(e).text(r.opts.formatLoadMore(i+1)),window.setTimeout(function(){r.loadMoreIfNeeded()},10)):n.remove(),r.positionDropdown(),r.resultsPage=i,r.context=t.context)})})))},tokenize:function(){},updateResults:function(n){function r(){c.scrollTop(0),l.removeClass("select2-active"),h.positionDropdown()}function o(t){c.html(t),r()}var s,a,l=this.search,c=this.results,u=this.opts,h=this;if(n===!0||this.showSearchInput!==!1&&this.opened()){l.addClass("select2-active");var p=this.getMaximumSelectionSize();if(p>=1&&(s=this.data(),t.isArray(s)&&s.length>=p&&w(u.formatSelectionTooBig,"formatSelectionTooBig")))return void o("<li class='select2-selection-limit'>"+u.formatSelectionTooBig(p)+"</li>");if(l.val().length<u.minimumInputLength)return void o(w(u.formatInputTooShort,"formatInputTooShort")?"<li class='select2-no-results'>"+u.formatInputTooShort(l.val(),u.minimumInputLength)+"</li>":"");if(u.formatSearching()&&n===!0&&o("<li class='select2-searching'>"+u.formatSearching()+"</li>"),u.maximumInputLength&&l.val().length>u.maximumInputLength)return void o(w(u.formatInputTooLong,"formatInputTooLong")?"<li class='select2-no-results'>"+u.formatInputTooLong(l.val(),u.maximumInputLength)+"</li>":"");a=this.tokenize(),a!=e&&null!=a&&l.val(a),this.resultsPage=1,u.query({element:u.element,term:l.val(),page:this.resultsPage,context:null,matcher:u.matcher,callback:this.bind(function(s){var a;if(this.opened()){if(this.context=s.context===e?null:s.context,this.opts.createSearchChoice&&""!==l.val()&&(a=this.opts.createSearchChoice.call(null,l.val(),s.results),a!==e&&null!==a&&h.id(a)!==e&&null!==h.id(a)&&0===t(s.results).filter(function(){return i(h.id(this),h.id(a))}).length&&s.results.unshift(a)),0===s.results.length&&w(u.formatNoMatches,"formatNoMatches"))return void o("<li class='select2-no-results'>"+u.formatNoMatches(l.val())+"</li>");c.empty(),h.opts.populateResults.call(this,c,s.results,{term:l.val(),page:this.resultsPage,context:null}),s.more===!0&&w(u.formatLoadMore,"formatLoadMore")&&(c.append("<li class='select2-more-results'>"+h.opts.escapeMarkup(u.formatLoadMore(this.resultsPage))+"</li>"),window.setTimeout(function(){h.loadMoreIfNeeded()},10)),this.postprocessResults(s,n),r()}})})}},cancel:function(){this.close()},blur:function(){this.opts.selectOnBlur&&this.selectHighlighted({noFocus:!0}),this.close(),this.container.removeClass("select2-container-active"),this.search[0]===document.activeElement&&this.search.blur(),this.clearSearch(),this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus")},focusSearch:function(){h(this.search)},selectHighlighted:function(t){var e=this.highlight(),n=this.results.find(".select2-highlighted"),i=n.closest(".select2-result").data("select2-data");i&&(this.highlight(e),this.onSelect(i,t))},getPlaceholder:function(){return this.opts.element.attr("placeholder")||this.opts.element.attr("data-placeholder")||this.opts.element.data("placeholder")||this.opts.placeholder},initContainerWidth:function(){function n(){var n,i,r,o,s;if("off"===this.opts.width)return null;if("element"===this.opts.width)return 0===this.opts.element.outerWidth(!1)?"auto":this.opts.element.outerWidth(!1)+"px";if("copy"===this.opts.width||"resolve"===this.opts.width){if(n=this.opts.element.attr("style"),n!==e)for(i=n.split(";"),o=0,s=i.length;o<s;o+=1)if(r=i[o].replace(/\s/g,"").match(/width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/),null!==r&&r.length>=1)return r[1];return"resolve"===this.opts.width?(n=this.opts.element.css("width"),n.indexOf("%")>0?n:0===this.opts.element.outerWidth(!1)?"auto":this.opts.element.outerWidth(!1)+"px"):null}return t.isFunction(this.opts.width)?this.opts.width():this.opts.width}var i=n.call(this);null!==i&&this.container.css("width",i)}}),S=T($,{createContainer:function(){var e=t(document.createElement("div")).attr({class:"select2-container"}).html(["<a href='javascript:void(0)' onclick='return false;' class='select2-choice' tabindex='-1'>"," <span></span><abbr class='select2-search-choice-close' style='display:none;'></abbr>"," <div><b></b></div>","</a>","<input class='select2-focusser select2-offscreen' type='text'/>","<div class='select2-drop' style='display:none'>"," <div class='select2-search'>"," <input type='text' autocomplete='off' class='select2-input'/>"," </div>"," <ul class='select2-results'>"," </ul>","</div>"].join(""));return e},disable:function(){this.enabled&&(this.parent.disable.apply(this,arguments),this.focusser.attr("disabled","disabled"))},enable:function(){this.enabled||(this.parent.enable.apply(this,arguments),this.focusser.removeAttr("disabled"))},opening:function(){this.parent.opening.apply(this,arguments),this.focusser.attr("disabled","disabled"),this.opts.element.trigger(t.Event("open"))},close:function(){this.opened()&&(this.parent.close.apply(this,arguments),this.focusser.removeAttr("disabled"),h(this.focusser))},focus:function(){this.opened()?this.close():(this.focusser.removeAttr("disabled"),this.focusser.focus())},isFocused:function(){return this.container.hasClass("select2-container-active")},cancel:function(){this.parent.cancel.apply(this,arguments),this.focusser.removeAttr("disabled"),this.focusser.focus()},initContainer:function(){var t,e=this.container,n=this.dropdown,i=!1;this.showSearch(this.opts.minimumResultsForSearch>=0),this.selection=t=e.find(".select2-choice"),this.focusser=e.find(".select2-focusser"),this.search.bind("keydown",this.bind(function(t){if(this.enabled){if(t.which===C.PAGE_UP||t.which===C.PAGE_DOWN)return void p(t);switch(t.which){case C.UP:case C.DOWN:return this.moveHighlight(t.which===C.UP?-1:1),void p(t);
20case C.TAB:case C.ENTER:return this.selectHighlighted(),void p(t);case C.ESC:return this.cancel(t),void p(t)}}})),this.focusser.bind("keydown",this.bind(function(t){if(this.enabled&&t.which!==C.TAB&&!C.isControl(t)&&!C.isFunctionKey(t)&&t.which!==C.ESC)return this.opts.openOnEnter===!1&&t.which===C.ENTER?void p(t):t.which==C.DOWN||t.which==C.UP||t.which==C.ENTER&&this.opts.openOnEnter?(this.open(),void p(t)):t.which==C.DELETE||t.which==C.BACKSPACE?(this.opts.allowClear&&this.clear(),void p(t)):void 0})),s(this.focusser),this.focusser.bind("keyup-change input",this.bind(function(t){this.opened()||(this.open(),this.showSearchInput!==!1&&this.search.val(this.focusser.val()),this.focusser.val(""),p(t))})),t.delegate("abbr","mousedown",this.bind(function(t){this.enabled&&(this.clear(),d(t),this.close(),this.selection.focus())})),t.bind("mousedown",this.bind(function(t){i=!0,this.opened()?this.close():this.enabled&&this.open(),p(t),i=!1})),n.bind("mousedown",this.bind(function(){this.search.focus()})),t.bind("focus",this.bind(function(t){p(t)})),this.focusser.bind("focus",this.bind(function(){this.container.addClass("select2-container-active")})).bind("blur",this.bind(function(){this.opened()||this.container.removeClass("select2-container-active")})),this.search.bind("focus",this.bind(function(){this.container.addClass("select2-container-active")})),this.initContainerWidth(),this.setPlaceholder()},clear:function(){var t=this.selection.data("select2-data");this.opts.element.val(""),this.selection.find("span").empty(),this.selection.removeData("select2-data"),this.setPlaceholder(),this.opts.element.trigger({type:"removed",val:this.id(t),choice:t}),this.triggerChange({removed:t})},initSelection:function(){if(""===this.opts.element.val()&&""===this.opts.element.text())this.close(),this.setPlaceholder();else{var t=this;this.opts.initSelection.call(null,this.opts.element,function(n){n!==e&&null!==n&&(t.updateSelection(n),t.close(),t.setPlaceholder())})}},prepareOpts:function(){var e=this.parent.prepareOpts.apply(this,arguments);return"select"===e.element.get(0).tagName.toLowerCase()?e.initSelection=function(e,n){var i=e.find(":selected");t.isFunction(n)&&n({id:i.attr("value"),text:i.text(),element:i})}:"data"in e&&(e.initSelection=e.initSelection||function(n,r){var o=n.val();e.query({matcher:function(t,n,r){return i(o,e.id(r))},callback:t.isFunction(r)?function(t){r(t.results.length?t.results[0]:null)}:t.noop})}),e},getPlaceholder:function(){return this.select&&""!==this.select.find("option").first().text()?e:this.parent.getPlaceholder.apply(this,arguments)},setPlaceholder:function(){var t=this.getPlaceholder();if(""===this.opts.element.val()&&t!==e){if(this.select&&""!==this.select.find("option:first").text())return;this.selection.find("span").html(this.opts.escapeMarkup(t)),this.selection.addClass("select2-default"),this.selection.find("abbr").hide()}},postprocessResults:function(t,e){var n=0,r=this,o=!0;if(this.findHighlightableChoices().each2(function(t,e){if(i(r.id(e.data("select2-data")),r.opts.element.val()))return n=t,!1}),this.highlight(n),e===!0){var s=this.opts.minimumResultsForSearch;o=!(s<0)&&x(t.results)>=s,this.showSearch(o)}},showSearch:function(e){this.showSearchInput=e,this.dropdown.find(".select2-search")[e?"removeClass":"addClass"]("select2-search-hidden"),t(this.dropdown,this.container)[e?"addClass":"removeClass"]("select2-with-searchbox")},onSelect:function(t,e){var n=this.opts.element.val();this.opts.element.val(this.id(t)),this.updateSelection(t),this.opts.element.trigger({type:"selected",val:this.id(t),choice:t}),this.close(),e&&e.noFocus||this.selection.focus(),i(n,this.id(t))||this.triggerChange()},updateSelection:function(t){var n,i=this.selection.find("span");this.selection.data("select2-data",t),i.empty(),n=this.opts.formatSelection(t,i),n!==e&&i.append(this.opts.escapeMarkup(n)),this.selection.removeClass("select2-default"),this.opts.allowClear&&this.getPlaceholder()!==e&&this.selection.find("abbr").show()},val:function(){var t,n=!1,i=null,r=this;if(0===arguments.length)return this.opts.element.val();if(t=arguments[0],arguments.length>1&&(n=arguments[1]),this.select)this.select.val(t).find(":selected").each2(function(t,e){return i={id:e.attr("value"),text:e.text()},!1}),this.updateSelection(i),this.setPlaceholder(),n&&this.triggerChange();else{if(this.opts.initSelection===e)throw new Error("cannot call val() if initSelection() is not defined");if(!t&&0!==t)return this.clear(),void(n&&this.triggerChange());this.opts.element.val(t),this.opts.initSelection(this.opts.element,function(t){r.opts.element.val(t?r.id(t):""),r.updateSelection(t),r.setPlaceholder(),n&&r.triggerChange()})}},clearSearch:function(){this.search.val(""),this.focusser.val("")},data:function(t){var n;return 0===arguments.length?(n=this.selection.data("select2-data"),n==e&&(n=null),n):void(t&&""!==t?(this.opts.element.val(t?this.id(t):""),this.updateSelection(t)):this.clear())}}),E=T($,{createContainer:function(){var e=t(document.createElement("div")).attr({class:"select2-container select2-container-multi"}).html([" <ul class='select2-choices'>"," <li class='select2-search-field'>"," <input type='text' autocomplete='off' class='select2-input'>"," </li>","</ul>","<div class='select2-drop select2-drop-multi' style='display:none;'>"," <ul class='select2-results'>"," </ul>","</div>"].join(""));return e},prepareOpts:function(){var e=this.parent.prepareOpts.apply(this,arguments);return"select"===e.element.get(0).tagName.toLowerCase()?e.initSelection=function(t,e){var n=[];t.find(":selected").each2(function(t,e){n.push({id:e.attr("value"),text:e.text(),element:e[0]})}),e(n)}:"data"in e&&(e.initSelection=e.initSelection||function(n,o){var s=r(n.val(),e.separator);e.query({matcher:function(n,r,o){return t.grep(s,function(t){return i(t,e.id(o))}).length},callback:t.isFunction(o)?function(t){o(t.results)}:t.noop})}),e},initContainer:function(){var e,n=".select2-choices";this.searchContainer=this.container.find(".select2-search-field"),this.selection=e=this.container.find(n),this.search.bind("input paste",this.bind(function(){this.enabled&&(this.opened()||this.open())})),this.search.bind("keydown",this.bind(function(t){if(this.enabled){if(t.which===C.BACKSPACE&&""===this.search.val()){this.close();var n,i=e.find(".select2-search-choice-focus");if(i.length>0)return this.unselect(i.first()),this.search.width(10),void p(t);n=e.find(".select2-search-choice:not(.select2-locked)"),n.length>
200&&n.last().addClass("select2-search-choice-focus")}else e.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus");if(this.opened())switch(t.which){case C.UP:case C.DOWN:return this.moveHighlight(t.which===C.UP?-1:1),void p(t);case C.ENTER:case C.TAB:return this.selectHighlighted(),void p(t);case C.ESC:return this.cancel(t),void p(t)}if(t.which!==C.TAB&&!C.isControl(t)&&!C.isFunctionKey(t)&&t.which!==C.BACKSPACE&&t.which!==C.ESC){if(t.which===C.ENTER){if(this.opts.openOnEnter===!1)return;if(t.altKey||t.ctrlKey||t.shiftKey||t.metaKey)return}this.open(),t.which!==C.PAGE_UP&&t.which!==C.PAGE_DOWN||p(t)}}})),this.search.bind("keyup",this.bind(this.resizeSearch)),this.search.bind("blur",this.bind(function(t){this.container.removeClass("select2-container-active"),this.search.removeClass("select2-focused"),this.opened()||this.clearSearch(),t.stopImmediatePropagation()})),this.container.delegate(n,"mousedown",this.bind(function(e){this.enabled&&(t(e.target).closest(".select2-search-choice").length>0||(this.clearPlaceholder(),this.open(),this.focusSearch(),e.preventDefault()))})),this.container.delegate(n,"focus",this.bind(function(){this.enabled&&(this.container.addClass("select2-container-active"),this.dropdown.addClass("select2-drop-active"),this.clearPlaceholder())})),this.initContainerWidth(),this.clearSearch()},enable:function(){this.enabled||(this.parent.enable.apply(this,arguments),this.search.removeAttr("disabled"))},disable:function(){this.enabled&&(this.parent.disable.apply(this,arguments),this.search.attr("disabled",!0))},initSelection:function(){if(""===this.opts.element.val()&&""===this.opts.element.text()&&(this.updateSelection([]),this.close(),this.clearSearch()),this.select||""!==this.opts.element.val()){var t=this;this.opts.initSelection.call(null,this.opts.element,function(n){n!==e&&null!==n&&(t.updateSelection(n),t.close(),t.clearSearch())})}},clearSearch:function(){var t=this.getPlaceholder();t!==e&&0===this.getVal().length&&this.search.hasClass("select2-focused")===!1?(this.search.val(t).addClass("select2-default"),this.resizeSearch()):this.search.val("").width(10)},clearPlaceholder:function(){this.search.hasClass("select2-default")&&this.search.val("").removeClass("select2-default")},opening:function(){this.parent.opening.apply(this,arguments),this.clearPlaceholder(),this.resizeSearch(),this.focusSearch(),this.opts.element.trigger(t.Event("open"))},close:function(){this.opened()&&this.parent.close.apply(this,arguments)},focus:function(){this.close(),this.search.focus(),this.opts.element.triggerHandler("focus")},isFocused:function(){return this.search.hasClass("select2-focused")},updateSelection:function(e){var i=[],r=[],o=this;t(e).each(function(){n(o.id(this),i)<0&&(i.push(o.id(this)),r.push(this))}),e=r,this.selection.find(".select2-search-choice").remove(),t(e).each(function(){o.addSelectedChoice(this)}),o.postprocessResults()},tokenize:function(){var t=this.search.val();t=this.opts.tokenizer(t,this.data(),this.bind(this.onSelect),this.opts),null!=t&&t!=e&&(this.search.val(t),t.length>0&&this.open())},onSelect:function(t,e){this.addSelectedChoice(t),this.opts.element.trigger({type:"selected",val:this.id(t),choice:t}),!this.select&&this.opts.closeOnSelect||this.postprocessResults(),this.opts.closeOnSelect?(this.close(),this.search.width(10)):this.countSelectableResults()>0?(this.search.width(10),this.resizeSearch(),this.val().length>=this.getMaximumSelectionSize()&&this.updateResults(!0),this.positionDropdown()):(this.close(),this.search.width(10)),this.triggerChange({added:t}),e&&e.noFocus||this.focusSearch()},cancel:function(){this.close(),this.focusSearch()},addSelectedChoice:function(n){var i,r=!n.locked,o=t("<li class='select2-search-choice'> <div></div> <a href='#' onclick='return false;' class='select2-search-choice-close' tabindex='-1'></a></li>"),s=t("<li class='select2-search-choice select2-locked'><div></div></li>"),a=r?o:s,l=this.id(n),c=this.getVal();i=this.opts.formatSelection(n,a.find("div")),i!=e&&a.find("div").replaceWith("<div>
20"+this.opts.escapeMarkup(i)+"</div>"),r&&a.find(".select2-search-choice-close").bind("mousedown",p).bind("click dblclick",this.bind(function(e){this.enabled&&(t(e.target).closest(".select2-search-choice").fadeOut("fast",this.bind(function(){this.unselect(t(e.target)),this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus"),this.close(),this.focusSearch()})).dequeue(),p(e))})).bind("focus",this.bind(function(){this.enabled&&(this.container.addClass("select2-container-active"),this.dropdown.addClass("select2-drop-active"))})),a.data("select2-data",n),a.insertBefore(this.searchContainer),c.push(l),this.setVal(c)},unselect:function(t){var e,i,r=this.getVal();if(t=t.closest(".select2-search-choice"),0===t.length)throw"Invalid argument: "+t+". Must be .select2-search-choice";e=t.data("select2-data"),e&&(i=n(this.id(e),r),i>=0&&(r.splice(i,1),this.setVal(r),this.select&&this.postprocessResults()),t.remove(),this.opts.element.trigger({type:"removed",val:this.id(e),choice:e}),this.triggerChange({removed:e}))},postprocessResults:function(){var t=this.getVal(),e=this.results.find(".select2-result"),i=this.results.find(".select2-result-with-children"),r=this;e.each2(function(e,i){var o=r.id(i.data("select2-data"));n(o,t)>=0&&(i.addClass("select2-selected"),i.find(".select2-result-selectable").addClass("select2-selected"))}),i.each2(function(t,e){e.is(".select2-result-selectable")||0!==e.find(".select2-result-selectable:not(.select2-selected)").length||e.addClass("select2-selected")}),this.highlight()==-1&&r.highlight(0)},resizeSearch:function(){var t,e,n,i,r,s=o(this.search);t=f(this.search)+10,e=this.search.offset().left,n=this.selection.width(),i=this.selection.offset().left,r=n-(e-i)-s,r<t&&(r=n-s),r<40&&(r=n-s),r<=0&&(r=t),this.search.width(r)},getVal:function(){var t;return this.select?(t=this.select.val(),null===t?[]:t):(t=this.opts.element.val(),r(t,this.opts.separator))},setVal:function(e){var i;this.select?this.select.val(e):(i=[],t(e).each(function(){n(this,i)<0&&i.push(this)}),this.opts.element.val(0===i.length?"":i.join(this.opts.separator)))},val:function(){var n,i=!1,r=this;if(0===arguments.length)return this.getVal();if(n=arguments[0],arguments.length>1&&(i=arguments[1]),!n&&0!==n)return this.opts.element.val(""),this.updateSelection([]),this.clearSearch(),void(i&&this.triggerChange());if(this.setVal(n),this.select)this.opts.initSelection(this.select,this.bind(this.updateSelection)),i&&this.triggerChange();else{if(this.opts.initSelection===e)throw new Error("val() cannot be called if initSelection() is not defined");this.opts.initSelection(this.opts.element,function(e){var n=t(e).map(r.id);r.setVal(n),r.updateSelection(e),r.clearSearch(),i&&r.triggerChange()})}this.clearSearch()},onSortStart:function(){if(this.select)throw new Error("Sorting of elements is not supported when attached to <select>. Attach to <input type='hidden'/> instead.");this.search.width(0),this.searchContainer.hide()},onSortEnd:function(){var e=[],n=this;this.searchContainer.show(),this.searchContainer.appendTo(this.searchContainer.parent()),this.resizeSearch(),this.selection.find(".select2-search-choice").each(function(){e.push(n.opts.id(t(this).data("select2-data")))}),this.setVal(e),this.triggerChange()},data:function(e){var n,i=this;return 0===arguments.length?this.selection.find(".select2-search-choice").map(function(){return t(this).data("select2-data")}).get():(e||(e=[]),n=t.map(e,function(t){return i.opts.id(t)}),this.setVal(n),this.updateSelection(e),this.clearSearch(),void 0)}}),t.fn.select2=function(){var i,r,o,s,a=Array.prototype.slice.call(arguments,0),l=["updateResults","val","destroy","opened","open","close","focus","isFocused","container","onSortStart","onSortEnd","enable","disable","positionDropdown","data"];return this.each(function(){if(0===a.length||"object"==typeof a[0])i=0===a.length?{}:t.extend({},a[0]),i.element=t(this),"select"===i.element.get(0).tagName.toLowerCase()?s=i.element.attr("multiple"):(s=i.multiple||!1,"tags"in i&&(i.multiple=s=!0)),r=s?new E:new S,r.init(i);else{if("string"!=typeof a[0])throw"Invalid arguments to select2 plugin: "+a;if(n(a[0],l)<0)throw"Unknown method: "+a[0];if(o=e,r=t(this).data("select2"),r===e)return;
20if(o="container"===a[0]?r.container:r[a[0]].apply(r,a.slice(1)),o!==e)return!1}}),o===e?this:o},t.fn.select2.defaults={width:"copy",loadMorePadding:0,closeOnSelect:!0,openOnEnter:!0,containerCss:{},dropdownCss:{},containerCssClass:"",dropdownCssClass:"",formatResult:function(t,e,n,i){var r=[];return g(t.text,n.term,r,i),r.join("")},formatSelection:function(t,n){return t?t.text:e},sortResults:function(t,e,n){return t},formatResultCssClass:function(t){return e},formatNoMatches:function(){return"No matches found"},formatInputTooShort:function(t,e){var n=e-t.length;return"Please enter "+n+" more character"+(1==n?"":"s")},formatInputTooLong:function(t,e){var n=t.length-e;return"Please enter "+n+" less character"+(1==n?"":"s")},formatSelectionTooBig:function(t){return"You can only select "+t+" item"+(1==t?"":"s")},formatLoadMore:function(t){return"Loading more results..."},formatSearching:function(){return"Searching..."},minimumResultsForSearch:0,minimumInputLength:0,maximumInputLength:null,maximumSelectionSize:0,id:function(t){return t.id},matcher:function(t,e){return e.toUpperCase().indexOf(t.toUpperCase())>=0},separator:",",tokenSeparators:[],tokenizer:k,escapeMarkup:function(t){var e={"\\":"\","&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return String(t).replace(/[&<>"'/\\]/g,function(t){return e[t[0]]})},blurOnChange:!1,selectOnBlur:!1,adaptContainerCssClass:function(t){return t},adaptDropdownCssClass:function(t){return null}},window.Select2={query:{ajax:v,local:y,tags:b},util:{debounce:l,markMatch:g},class:{abstract:$,single:S,multi:E}}}}(jQuery)},,function(t,e,n){t.exports=n(9)(36)},,,function(t,e,n){(function(e){t.exports=e.MDConvert=n(135)}).call(e,function(){return this}())},function(t,e,n){(function(e){t.exports=e.Remarkable=n(167)}).call(e,function(){return this}())},function(t,e,n){var i,r,o;!function(s){"use strict";r=[n(172)],i=s,o="function"==typeof i?i.apply(e,r):i,!(void 0!==o&&(t.exports=o))}(function(t){"use strict";function e(e){return!e.nodeName||t.inArray(e.nodeName.toLowerCase(),["iframe","#document","html","body"])!==-1}function n(e){return t.isFunction(e)||t.isPlainObject(e)?e:{ 21top:e,left:e}}var i=t.scrollTo=function(e,n,i){return t(window).scrollTo(e,n,i)};return i.defaults={axis:"xy",duration:0,limit:!0},t.fn.scrollTo=function(r,o,s){"object"==typeof o&&(s=o,o=0),"function"==typeof s&&(s={onAfter:s}),"max"===r&&(r=9e9),s=t.extend({},i.defaults,s),o=o||s.duration;var a=s.queue&&s.axis.length>1;return a&&(o/=2),s.offset=n(s.offset),s.over=n(s.over),this.each(function(){function l(e){var n=t.extend({},s,{queue:!0,duration:o,complete:e&&function(){e.call(h,d,s)}});p.animate(f,n)}if(null!==r){var c,u=e(this),h=u?this.contentWindow||window:this,p=t(h),d=r,f={};switch(typeof d){case"number":case"string":if(/^([+-]=?)?\d+(\.\d+)?(px|%)?$/.test(d)){d=n(d);break}d=u?t(d):t(d,h);case"object":if(0===d.length)return;(d.is||d.style)&&(c=(d=t(d)).offset())}var m=t.isFunction(s.offset)&&s.offset(h,d)||s.offset;t.each(s.axis.split(""),function(t,e){var n="x"===e?"Left":"Top",r=n.toLowerCase(),o="scroll"+n,g=p[o](),v=i.max(h,e);if(c)f[o]=c[r]+(u?0:g-p.offset()[r]),s.margin&&(f[o]-=parseInt(d.css("margin"+n),10)||0,f[o]-=parseInt(d.css("border"+n+"Width"),10)||0),f[o]+=m[r]||0,s.over[r]&&(f[o]+=d["x"===e?"width":"height"]()*s.over[r]);else{var y=d[r];f[o]=y.slice&&"%"===y.slice(-1)?parseFloat(y)/100*v:y}s.limit&&/^\d+$/.test(f[o])&&(f[o]=f[o]<=0?0:Math.min(f[o],v)),!t&&s.axis.length>1&&(g===f[o]?f={}:a&&(l(s.onAfterFirst),f={}))}),l(s.onAfter)}})},i.max=function(n,i){var r="x"===i?"Width":"Height",o="scroll"+r;if(!e(n))return n[o]-t(n)[r.toLowerCase()]();var s="client"+r,a=n.ownerDocument||n.document,l=a.documentElement,c=a.body;return Math.max(l[o],c[o])-Math.min(l[s],c[s])},t.Tween.propHooks.scrollLeft=t.Tween.propHooks.scrollTop={get:function(e){return t(e.elem)[e.prop]()},set:function(e){var n=this.get(e);if(e.options.interrupt&&e._last&&e._last!==n)return t(e.elem).stop();var i=Math.round(e.now);n!==i&&(t(e.elem)[e.prop](i),e._last=this.get(e))}},i})},,,,,function(t,e){"use strict";function n(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function r(t){if(u===setTimeout)return setTimeout(t,0);if((u===n||!u)&&setTimeout)return u=setTimeout,setTimeout(t,0);try{return u(t,0)}catch(e){try{return u.call(null,t,0)}catch(e){return u.call(this,t,0)}}}function o(t){if(h===clearTimeout)return clearTimeout(t);if((h===i||!h)&&clearTimeout)return h=clearTimeout,clearTimeout(t);try{return h(t)}catch(e){try{return h.call(null,t)}catch(e){return h.call(this,t)}}}function s(){m&&d&&(m=!1,d.length?f=d.concat(f):g=-1,f.length&&a())}function a(){if(!m){var t=r(s);m=!0;for(var e=f.length;e;){for(d=f,f=[];++g<e;)d&&d[g].run();g=-1,e=f.length}d=null,m=!1,o(t)}}function l(t,e){this.fun=t,this.array=e}function c(){}var u,h,p=t.exports={};!function(){try{u="function"==typeof setTimeout?setTimeout:n}catch(t){u=n}try{h="function"==typeof clearTimeout?clearTimeout:i}catch(t){h=i}}();var d,f=[],m=!1,g=-1;p.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];f.push(new l(t,e)),1!==f.length||m||r(a)},l.prototype.run=function(){this.fun.apply(null,this.array)},p.title="browser",p.browser=!0,p.env={},p.argv=[],p.version="",p.versions={},p.on=c,p.addListener=c,p.once=c,p.off=c,p.removeListener=c,p.removeAllListeners=c,p.emit=c,p.prependListener=c,p.prependOnceListener=c,p.listeners=function(t){return[]},p.binding=function(t){throw new Error("process.binding is not supported")},p.cwd=function(){return"/"},p.chdir=function(t){throw new Error("process.chdir is not supported")},p.umask=function(){return 0}},function(module,exports){"use strict";!function(){return"function"!=typeof NodeList.prototype.forEach&&void(NodeList.prototype.forEach=Array.prototype.forEach)}(),Array.prototype.remove=function(t,e){var n=this.slice((e||t)+1||this.length);return this.length=t<0?this.length+t:t,this.push.apply(this,n)},window.reloadTooltips=function(){$(".tt").tooltip({container:"body"})},window.reloadDatepickers=function(){$.datepicker&&$("input.datepicker").datepicker(rwgps.config.datePickerOpts)},window.trace=function(t){window.console&&window.console.log&&console.log(t)},window.stopEvent=function(t){t.cancelBubble=!0,t.stopPropagation&&t.stopPropagation()},window.maybeShowAppInstallPrompt=function(){if(0==/Android/i.test(navigator.userAgent))return!1;if(window.location.pathname.match(/choose_account|settings\/backups|subscriptions\/manage|subscriptions\/new/))return!1;if("true"===new URLSearchParams(window.location.search).get("no_app_banner"))return $.cookie("mobile_prompt","",{expires:365}),!1;var t=$.cookie("mobile_prompt");null==t&&($("#android-app-install-modal").modal("show"),$("#android-app-install-modal a.android-app-install-link").on("click",function(){$.cookie("mobile_prompt","",{expires:365}),$("#android-app-install-modal").modal("hide")}),$("#android-app-install-modal a.never-again").on("click",function(){$.cookie("mobile_prompt","",{expires:365})}),$("#android-app-install-modal a.remind-later").on("click",function(){$.cookie("mobile_prompt","",{expires:7})}),$("#android-app-install-modal").on("hidden.bs.modal",function(){$("#android-app-install-modal .ok").off("
21click")}))},window.hintify=function(t,e){t.focus(function(){t.val()==e&&t.val("").removeClass("field_hint")}).blur(function(){""==t.val()&&t.val(e).addClass("field_hint")}).blur()},window.trackEvent=function(){},$(function(){function t(t){13==t.keyCode&&$("#alert_modal").modal("hide")}$("#alert_modal").on("show.bs.modal",function(){$(window).on("keypress",t)}),$("#alert_modal").on("hidden.bs.modal",function(){$(window).off("keypress",t)})}),window.customAlert=function(t){window.rwgps.plannerAlertModal?window.rwgps.plannerAlertModal({msg:t}):($("#alert_modal .modal-body p").html(t),$("#alert_modal").modal("show"))},$(function(){function t(t){13==t.keyCode&&$("#confirm_modal .ok").click()}$("#confirm_modal").on("show.bs.modal",function(){$(window).on("keypress",t)}),$("#confirm_modal").on("shown.bs.modal",function(){$("#confirm_modal .ok").focus()}),$("#confirm_modal").on("hidden.bs.modal",function(){$(window).off("keypress",t)})}),window.customConfirm=function(t,e,n){if(window.rwgps.plannerConfirmModal)return void window.rwgps.plannerConfirmModal({msg:t,cb:e});if(!window._showingCustomConfirm){window._showingCustomConfirm=!0;var i,r;n&&(n.confirmText&&(i=$("#confirm_modal .ok").text(),$("#confirm_modal .ok").text(n.confirmText)),n.cancelText&&(r=$("#confirm_modal .cancel").text(),$("#confirm_modal .cancel").text(n.cancelText)),n.noCancel&&$("#confirm_modal .cancel").text("")),$("#confirm_modal .modal-body p").html(t),$("#confirm_modal").modal("show"),$("#confirm_modal .ok").on("click",_.once(e)),$("#confirm_modal").on("hidden.bs.modal",function(){i&&$("#confirm_modal .ok").text(i),r&&$("#confirm_modal .cancel").text(r),window._showingCustomConfirm=!1})}};var Application=window.Application={initSlideshow:function(t){t.find("img,a.next").click(function(){var t=$(this).closest(".slide");0==t.next(".slide").size()?t.hide().closest(".slides").find(".slide.first").show():t.hide().next(".slide").show()})},preventSpinner:function(){$('<div class="prettyLoader"></div>').css("display","none").appendTo("body")},flashLoadCb:function(t){t.success||$("#alternative_content").show()},initColorbox:function(){$(".colorbox").colorbox(),$(".bigcolorbox").colorbox({width:"970px",height:"80%",maxHeight:"800px",onComplete:function(){$("#cboxLoadedContent").addClass("bigbox")}})},initUpsell:function(){function t(t){t.preventDefault();var e=$(this),n=e.data("feature"),i=!e.hasClass("featureModal");rwgps.upgradeModal({feature:n,showUpgradeButton:i})}var e=rwgps.config.currentUser?rwgps.config.currentUser.account_level:0;rwgps.config.bypassPrivileges||(e<2&&$("body").on("click",".premium_required",t),e<1&&$("body").on("click",".basic_required",t)),$("body").on("click",".featureModal",t),$("body").on("click","[data-requires-privilege]",function(t){var e=t.target,n=e.dataset.requiresPrivilege,i=e.dataset.feature;rwgps.config.privileges[n]||(t.preventDefault(),rwgps.upgradeModal({feature:i,showUpgradeButton:!0}))}),rwgps.config.currentUser||(console.log("no currentUser"),$("#signup_modal").on("show.bs.modal",function(){$(this).css({top:20}).find(".modal-body").css({maxHeight:$(window).height()-160,"overflow-y":"scroll"})}),$("#signup_modal").on("shown.bs.modal",function(){$(this).find(".fb-signup-btn").focus()}),$("body").on("click",".login_required",function(){var t=$(this),e=t.data("redirect")?t.data("redirect"):t.attr("href");return $("#signup_modal").modal("show"),$("#signup_modal input[name=redirect]").val(e),!1}))},init:function init(){$(function(){Application.initUpsell(),Application.initColorbox(),$("#login-button").on("click",function(){rwgps.loginModalOverlay()}),$("#signup_modal a.signin").on("click",function(){$("#signup_modal").modal("hide"),$("#login_form").modal("show")}),$("#login_form").on("shown.bs.modal",function(){$(this).find("input:first").focus()}),$("#share_link_modal").on("shown.bs.modal",function(){$(this).find("input.share_link").focus().select()}),$("body").on("click",".share_bar_share_link",function(){$("#share_link_modal").modal("show").find("input.share_link").val($(this).data("uri"))}),$("body").on("click",".share_bar_share_email",function(){var t=$(this).data("asset_type"),e=$(this).data("asset_id"),n=$(this).data("uri");$("#share_email_modal").modal("show").find(".share_email_asset_type").val(t).end().find(".share_email_asset_id").val(e).end().find(".share_email_asset_url").val(n)}),$("#share_email_modal form").ajaxForm({success:function(t){$("#share_email_modal").modal("hide"),$.jGrowl(t.message)}}),$("#share_widget_modal").on("shown.bs.modal",function(){$(this).find("textarea.share_widget").focus().select()}),$("body").on("click",".share_bar_share_widget",function(){$("#share_widget_modal").modal("show").find("textarea.share_widget").val($(this).data("c
21ode"))}),$("body").on("click",".request_follow",function(){var t=$(this),e=t.data("user");return $.post("/follows.json",{follow:{item_type:"User",item_id:e}},function(e){var n="requested"===e.follow.level;t.fadeOut(400,function(){t.siblings(n?".follow_requested":".follow_confirm").fadeIn()})}),!1}),$(document).on("click","a.delete",function(event){event.stopPropagation(),event.preventDefault();var message=$(this).attr("doconfirm"),onsuccess=$(this).attr("onsuccess"),deleteIt=function deleteIt(){$.post(self.href,{_method:"delete"},function(){$(self).closest("li").remove(),onsuccess&&eval(onsuccess)})};message?customConfirm(message,deleteIt):deleteIt()}),reloadTooltips(),$(".mini_summary table tr:odd").addClass("alt"),$("li,tr").hover(function(){$(this).addClass("hover")},function(){$(this).removeClass("hover")}),$.jGrowl.defaults.position="bottom-right",$("select#units").change(function(){$(this).hasClass("reload")?Application.setPreference("metric_units",$("select#units option:selected").val()):(rwgps.LabelMaker.metric="true"===$("select#units option:selected").val(),Routes.activeMap.activeRoute&&(Routes.activeMap.activeRoute.metricsChange(),Routes.activeMap.populateCuesheet(Routes.activeMap.activeRoute.coursePoints()),Routes.activeMap.drawRouteDistanceMarkers()),Application.setPreference("metric_units",$("select#units option:selected").val(),!0))}),$(".dont_bubble").live("click",function(t){stopEvent(t)}),reloadDatepickers(),$.prettyLoader&&$.prettyLoader({delay:!1}),$(".close_app_link").click(function(){$(".app_link").remove()})})},setupPlaceAutocomplete:function(t){var e,n={};$(t).autocomplete({minLength:3,delay:200,source:function(t,i){var r=t.term;return r in n?void i(n[r]):void(e=$.getJSON("/places/search.json",{q:t.term},function(o,s,a){var l=_.map(o,function(t){var e=[t.name,t.municipality,t.region].join(", ");return rwgps.places[e]=t,e});l=_.without(l,null),o.length>0&&(rwgps.places[t.term]=o[0]),n[r]=l,a===e&&i(l)}))}}).keypress(function(n){13===n.keyCode&&e&&e.abort&&e.abort(),$(t).autocomplete("close")})},setPreference:function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"/set_preference";Application.preventSpinner(),$.post(i,{key:t,value:e},function(){n||window.location.reload()})}};window.MultiSelector=function(t,e){this.list_target=t,this.addElement=function(t){"INPUT"==t.tagName&&"file"==t.type?(t.name=e+"[photos][]",t.multi_selector=this,t.onchange=function(){var t=document.createElement("input"),e=$(this).attr("id");$(this).attr("id",""),$(t).attr("id",e),t.type="file",this.parentNode.insertBefore(t,this),this.multi_selector.addElement(t),this.multi_selector.addListRow(this),this.style.position="absolute",this.style.left="-1000px"},this.current_element=t):alert("Error: not a file input element")},this.addListRow=function(t){var e=document.createElement("div"),n=document.createElement("input");n.type="button",n.value="Delete",e.element=t,n.onclick=function(){return this.parentNode.element.parentNode.removeChild(this.parentNode.element),this.parentNode.parentNode.removeChild(this.parentNode),this.parentNode.element.multi_selector.current_element.disabled=!1,!1},e.innerHTML=t.value,e.appendChild(n),this.list_target.appendChild(e)}},window.centeredpopup=function(t,e,n,i){var r=window.screenLeft?window.screenLeft:window.screenX,o=window.screenTop?window.screenTop:window.screenY,s=r+window.innerWidth/2-n/2,a=o+window.innerHeight/2-i/2;return window.open(t,e,"toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width="+n+", height="+i+", top="+a+", left="+s)},function(){for(var t=0,e=["ms","moz","webkit","o"],n=0;n<e.length&&!window.requestAnimationFrame;++n)window.requestAnimationFrame=window[e[n]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[e[n]+"CancelAnimationFrame"]||window[e[n]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(e){var n=(new Date).getTime(),i=Math.max(0,16-(n-t)),r=window.setTimeout(function(){e(n+i)},i);return t=n+i,r}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(t){clearTimeout(t)})}();var transitionEndEvent=window.transitionEndEvent=function(){var t,e=document.createElement("fakeelement"),n={transition:"transitionend",MSTransition:"msTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(t in n)if(void 0!==e.style[t])return n[t];return"fakeTransitionEndEvent"}();$.fn.emulateTransitionEnd=function(t){var e=!1,n=this;$(this).one(transitionEndEvent,function(){e=!0});var i=function(){e||$(n).trigger(transitionEndEvent)};return setTimeout(i,t),this},jQuery.each(["Width","Height"],function(t,e){function n(t,e,n,r){return jQuery.each(i,function(){e-=parseFloat(jQuery.css(t,"padding"+this,!0))||0,n&&(e-=parseFloat(jQuery.css(t,"border"+this+"Width",!0))||0),r&&(e-=parseFloat(jQuery.css(t,"margin"+this,!0))||0)}),e}var i="Width"===e?["Left","Right"]:["Top","Bottom"],r=e.toLowerCase(),o={innerWidth:jQuery.fn.innerWidth,innerHeight:jQuery.fn.innerHeight,outerWidth:jQuery.fn.outerWidth,outerHeight:jQuery.fn.outerHeight};jQuery.fn["inner"+e]=function(t){return void 0===t?o["inner"+e].call(this):this.each(function(){jQuery(this).css(r,n(this,t)+"px")})},jQuery.fn["outer"+e]=function(t,i){return void 0===t&&(t=!1),"number"!=typeof t?o["outer"+e].call(this,t):this.each(function(){jQuery(this).css(r,n(this,t,!0,i)+"px")})}}),$(".globalMenuOpen").on("click",function(){$("body").addClass("noscroll"),$(".globalNav").addClass("open")}),$(".globalMenuClose").on("click",function(){$("body").removeClass("noscroll"),$(".globalNav").removeClass("open")}),rwgps.ns("signup").init=function(){rwgps.ns("users.signup.params",function(){var t=this;$("#user_email,#user_email_confirmation","#new_user").val(t.email),t.duplicate_email&&($("#duplicate_email_modal").modal("show"),$(".goto-login","#duplicate_email_modal").on("click",function(t){t.preventDefault(),$("#duplicate_email_modal").modal("hide"),r
21wgps.loginModalOverlay()}),$(".reset-password","#duplicate_email_modal").on("click",function(e){e.preventDefault(),$("#email","#duplicate_email_modal").val(t.email),$(".forgot_password form","#duplicate_email_modal").ajaxSubmit({dataType:"json",success:function(){$("#duplicate_email_modal").modal("hide"),window.customAlert("An email was sent to the email address you provided with instructions to reset your password on Ride with GPS.")}})}))})}},function(t,e){"use strict";!function(t){t(jQuery)}(function(t){function e(e){var n="dragover"===e;return function(i){i.dataTransfer=i.originalEvent&&i.originalEvent.dataTransfer;var r=i.dataTransfer;r&&t.inArray("Files",r.types)!==-1&&this._trigger(e,t.Event(e,{delegatedEvent:i}))!==!1&&(i.preventDefault(),n&&(r.dropEffect="copy"))}}t.support.fileInput=!(new RegExp("(Android (1\\.[0156]|2\\.[01]))|(Windows Phone (OS 7|8\\.0))|(XBLWP)|(ZuneWP)|(WPDesktop)|(w(eb)?OSBrowser)|(webOS)|(Kindle/(1\\.0|2\\.[05]|3\\.0))").test(window.navigator.userAgent)||t('<input type="file">').prop("disabled")),t.support.xhrFileUpload=!(!window.ProgressEvent||!window.FileReader),t.support.xhrFormDataFileUpload=!!window.FormData,t.support.blobSlice=window.Blob&&(Blob.prototype.slice||Blob.prototype.webkitSlice||Blob.prototype.mozSlice),t.widget("blueimp.fileupload",{options:{dropZone:t(document),pasteZone:void 0,fileInput:void 0,replaceFileInput:!0,paramName:void 0,singleFileUploads:!0,limitMultiFileUploads:void 0,limitMultiFileUploadSize:void 0,limitMultiFileUploadSizeOverhead:512,sequentialUploads:!1,limitConcurrentUploads:void 0,forceIframeTransport:!1,redirect:void 0,redirectParamName:void 0,postMessage:void 0,multipart:!0,maxChunkSize:void 0,uploadedBytes:void 0,recalculateProgress:!0,progressInterval:100,bitrateInterval:500,autoUpload:!0,messages:{uploadedBytes:"Uploaded bytes exceed file size"},i18n:function(e,n){return e=this.messages[e]||e.toString(),n&&t.each(n,function(t,n){e=e.replace("{"+t+"}",n)}),e},formData:function(t){return t.serializeArray()},add:function(e,n){return!e.isDefaultPrevented()&&void((n.autoUpload||n.autoUpload!==!1&&t(this).fileupload("option","autoUpload"))&&n.process().done(function(){n.submit()}))},processData:!1,contentType:!1,cache:!1,timeout:0},_specialOptions:["fileInput","dropZone","pasteZone","multipart","forceIframeTransport"],_blobSlice:t.support.blobSlice&&function(){var t=this.slice||this.webkitSlice||this.mozSlice;return t.apply(this,arguments)},_BitrateTimer:function(){this.timestamp=Date.now?Date.now():(new Date).getTime(),this.loaded=0,this.bitrate=0,this.getBitrate=function(t,e,n){var i=t-this.timestamp;return(!this.bitrate||!n||i>n)&&(this.bitrate=(e-this.loaded)*(1e3/i)*8,this.loaded=e,this.timestamp=t),this.bitrate}},_isXHRUpload:function(e){return!e.forceIframeTransport&&(!e.multipart&&t.support.xhrFileUpload||t.support.xhrFormDataFileUpload)},_getFormData:function(e){var n;return"function"===t.type(e.formData)?e.formData(e.form):t.isArray(e.formData)?e.formData:"object"===t.type(e.formData)?(n=[],t.each(e.formData,function(t,e){n.push({name:t,value:e})}),n):[]},_getTotal:function(e){var n=0;return t.each(e,function(t,e){n+=e.size||1}),n},_initProgressObject:function(e){var n={loaded:0,total:0,bitrate:0};e._progress?t.extend(e._progress,n):e._progress=n},_initResponseObject:function(t){var e;if(t._response)for(e in t._response)t._response.hasOwnProperty(e)&&delete t._response[e];else t._response={}},_onProgress:function(e,n){if(e.lengthComputable){var i,r=Date.now?Date.now():(new Date).getTime();if(n._time&&n.progressInterval&&r-n._time<n.progressInterval&&e.loaded!==e.total)return;n._time=r,i=Math.floor(e.loaded/e.total*(n.chunkSize||n._progress.total))+(n.uploadedBytes||0),this._progress.loaded+=i-n._progress.loaded,this._progress.bitrate=this._bitrateTimer.getBitrate(r,this._progress.loaded,n.bitrateInterval),n._progress.loaded=n.loaded=i,n._progress.bitrate=n.bitrate=n._bitrateTimer.getBitrate(r,i,n.bitrateInterval),this._trigger("progress",t.Event("progress",{delegatedEvent:e}),n),this._trigger("progressall",t.Event("progressall",{delegatedEvent:e}),this._progress)}},_initProgressListener:function(e){var n=this,i=e.xhr?e.xhr():t.ajaxSettings.xhr();i.upload&&(t(i.upload).bind("progress",function(t){var i=t.originalEvent;t.lengthComputable=i.lengthComputable,t.loaded=i.loaded,t.total=i.total,n._onProgress(t,e)}),e.xhr=function(){return i})},_isInstanceOf:function(t,e){return Object.prototype.toString.call(e)==="[object "+t+"]"},_initXHRData:function(e){var n,i=this,r=e.files[0],o=e.multipart||!t.supp
21ort.xhrFileUpload,s="array"===t.type(e.paramName)?e.paramName[0]:e.paramName;e.headers=t.extend({},e.headers),e.contentRange&&(e.headers["Content-Range"]=e.contentRange),o&&!e.blob&&this._isInstanceOf("File",r)||(e.headers["Content-Disposition"]='attachment; filename="'+encodeURI(r.name)+'"'),o?t.support.xhrFormDataFileUpload&&(e.postMessage?(n=this._getFormData(e),e.blob?n.push({name:s,value:e.blob}):t.each(e.files,function(i,r){n.push({name:"array"===t.type(e.paramName)&&e.paramName[i]||s,value:r})})):(i._isInstanceOf("FormData",e.formData)?n=e.formData:(n=new FormData,t.each(this._getFormData(e),function(t,e){n.append(e.name,e.value)})),e.blob?n.append(s,e.blob,r.name):t.each(e.files,function(r,o){(i._isInstanceOf("File",o)||i._isInstanceOf("Blob",o))&&n.append("array"===t.type(e.paramName)&&e.paramName[r]||s,o,o.uploadName||o.name)})),e.data=n):(e.contentType=r.type||"application/octet-stream",e.data=e.blob||r),e.blob=null},_initIframeSettings:function(e){var n=t("<a></a>").prop("href",e.url).prop("host");e.dataType="iframe "+(e.dataType||""),e.formData=this._getFormData(e),e.redirect&&n&&n!==location.host&&e.formData.push({name:e.redirectParamName||"redirect",value:e.redirect})},_initDataSettings:function(t){this._isXHRUpload(t)?(this._chunkedUpload(t,!0)||(t.data||this._initXHRData(t),this._initProgressListener(t)),t.postMessage&&(t.dataType="postmessage "+(t.dataType||""))):this._initIframeSettings(t)},_getParamName:function(e){var n=t(e.fileInput),i=e.paramName;return i?t.isArray(i)||(i=[i]):(i=[],n.each(function(){for(var e=t(this),n=e.prop("name")||"files[]",r=(e.prop("files")||[1]).length;r;)i.push(n),r-=1}),i.length||(i=[n.prop("name")||"files[]"])),i},_initFormSettings:function(e){e.form&&e.form.length||(e.form=t(e.fileInput.prop("form")),e.form.length||(e.form=t(this.options.fileInput.prop("form")))),e.paramName=this._getParamName(e),e.url||(e.url=e.form.prop("action")||location.href),e.type=(e.type||"string"===t.type(e.form.prop("method"))&&e.form.prop("method")||"").toUpperCase(),"POST"!==e.type&&"PUT"!==e.type&&"PATCH"!==e.type&&(e.type="POST"),e.formAcceptCharset||(e.formAcceptCharset=e.form.attr("accept-charset"))},_getAJAXSettings:function(e){var n=t.extend({},this.options,e);return this._initFormSettings(n),this._initDataSettings(n),n},_getDeferredState:function(t){return t.state?t.state():t.isResolved()?"resolved":t.isRejected()?"rejected":"pending"},_enhancePromise:function(t){return t.success=t.done,t.error=t.fail,t.complete=t.always,t},_getXHRPromise:function(e,n,i){var r=t.Deferred(),o=r.promise();return n=n||this.options.context||o,e===!0?r.resolveWith(n,i):e===!1&&r.rejectWith(n,i),o.abort=r.promise,this._enhancePromise(o)},_addConvenienceMethods:function(e,n){var i=this,r=function(e){return t.Deferred().resolveWith(i,e).promise()};n.process=function(e,o){return(e||o)&&(n._processQueue=this._processQueue=(this._processQueue||r([this])).then(function(){return n.errorThrown?t.Deferred().rejectWith(i,[n]).promise():r(arguments)}).then(e,o)),this._processQueue||r([this])},n.submit=function(){return"pending"!==this.state()&&(n.jqXHR=this.jqXHR=i._trigger("submit",t.Event("submit",{delegatedEvent:e}),this)!==!1&&i._onSend(e,this)),this.jqXHR||i._getXHRPromise()},n.abort=function(){return this.jqXHR?this.jqXHR.abort():(this.errorThrown="abort",i._trigger("fail",null,this),i._getXHRPromise(!1))},n.state=function(){return this.jqXHR?i._getDeferredState(this.jqXHR):this._processQueue?i._getDeferredState(this._processQueue):void 0},n.processing=function(){return!this.jqXHR&&this._processQueue&&"pending"===i._getDeferredState(this._processQueue)},n.progress=function(){return this._progress},n.response=function(){return this._response}},_getUploadedBytes:function(t){var e=t.getResponseHeader("Range"),n=e&&e.split("-"),i=n&&n.length>1&&parseInt(n[1],10);return i&&i+1},_chunkedUpload:function(e,n){e.uploadedBytes=e.uploadedBytes||0;var i,r,o=this,s=e.files[0],a=s.size,l=e.uploadedBytes,c=e.maxChunkSize||a,u=this._blobSlice,h=t.Deferred(),p=h.promise();return!(!(this._isXHRUpload(e)&&u&&(l||c<a))||e.data)&&(!!n||(l>=a?(s.error=e.i18n("uploadedBytes"),this._getXHRPromise(!1,e.context,[null,"error",s.error])):(r=function(){var n=t.extend({},e),p=n._progress.loaded;n.blob=u.call(s,l,l+c,s.type),n.chunkSize=n.blob.size,n.contentRange="bytes "+l+"-"+(l+n.chunkSize-1)+"/"+a,o._initXHRData(n),o._initProgressListener(n),i=(o._trigger("chunkse
21nd",null,n)!==!1&&t.ajax(n)||o._getXHRPromise(!1,n.context)).done(function(i,s,c){l=o._getUploadedBytes(c)||l+n.chunkSize,p+n.chunkSize-n._progress.loaded&&o._onProgress(t.Event("progress",{lengthComputable:!0,loaded:l-n.uploadedBytes,total:l-n.uploadedBytes}),n),e.uploadedBytes=n.uploadedBytes=l,n.result=i,n.textStatus=s,n.jqXHR=c,o._trigger("chunkdone",null,n),o._trigger("chunkalways",null,n),l<a?r():h.resolveWith(n.context,[i,s,c])}).fail(function(t,e,i){n.jqXHR=t,n.textStatus=e,n.errorThrown=i,o._trigger("chunkfail",null,n),o._trigger("chunkalways",null,n),h.rejectWith(n.context,[t,e,i])})},this._enhancePromise(p),p.abort=function(){return i.abort()},r(),p)))},_beforeSend:function(t,e){0===this._active&&(this._trigger("start"),this._bitrateTimer=new this._BitrateTimer,this._progress.loaded=this._progress.total=0,this._progress.bitrate=0),this._initResponseObject(e),this._initProgressObject(e),e._progress.loaded=e.loaded=e.uploadedBytes||0,e._progress.total=e.total=this._getTotal(e.files)||1,e._progress.bitrate=e.bitrate=0,this._active+=1,this._progress.loaded+=e.loaded,this._progress.total+=e.total},_onDone:function(e,n,i,r){var o=r._progress.total,s=r._response;r._progress.loaded<o&&this._onProgress(t.Event("progress",{lengthComputable:!0,loaded:o,total:o}),r),s.result=r.result=e,s.textStatus=r.textStatus=n,s.jqXHR=r.jqXHR=i,this._trigger("done",null,r)},_onFail:function(t,e,n,i){var r=i._response;i.recalculateProgress&&(this._progress.loaded-=i._progress.loaded,this._progress.total-=i._progress.total),r.jqXHR=i.jqXHR=t,r.textStatus=i.textStatus=e,r.errorThrown=i.errorThrown=n,this._trigger("fail",null,i)},_onAlways:function(t,e,n,i){this._trigger("always",null,i)}
21,_onSend:function(e,n){n.submit||this._addConvenienceMethods(e,n);var i,r,o,s,a=this,l=a._getAJAXSettings(n),c=function(){return a._sending+=1,l._bitrateTimer=new a._BitrateTimer,i=i||((r||a._trigger("send",t.Event("send",{delegatedEvent:e}),l)===!1)&&a._getXHRPromise(!1,l.context,r)||a._chunkedUpload(l)||t.ajax(l)).done(function(t,e,n){a._onDone(t,e,n,l)}).fail(function(t,e,n){a._onFail(t,e,n,l)}).always(function(t,e,n){if(a._onAlways(t,e,n,l),a._sending-=1,a._active-=1,l.limitConcurrentUploads&&l.limitConcurrentUploads>a._sending)for(var i=a._slots.shift();i;){if("pending"===a._getDeferredState(i)){i.resolve();break}i=a._slots.shift()}0===a._active&&a._trigger("stop")})};return this._beforeSend(e,l),this.options.sequentialUploads||this.options.limitConcurrentUploads&&this.options.limitConcurrentUploads<=this._sending?(this.options.limitConcurrentUploads>1?(o=t.Deferred(),this._slots.push(o),s=o.then(c)):(this._sequence=this._sequence.then(c,c),s=this._sequence),s.abort=function(){return r=[void 0,"abort","abort"],i?i.abort():(o&&o.rejectWith(l.context,r),c())},this._enhancePromise(s)):c()},_onAdd:function(e,n){var i,r,o,s,a=this,l=!0,c=t.extend({},this.options,n),u=n.files,h=u.length,p=c.limitMultiFileUploads,d=c.limitMultiFileUploadSize,f=c.limitMultiFileUploadSizeOverhead,m=0,g=this._getParamName(c),v=0;if(!h)return!1;if(d&&void 0===u[0].size&&(d=void 0),(c.singleFileUploads||p||d)&&this._isXHRUpload(c))if(c.singleFileUploads||d||!p)if(!c.singleFileUploads&&d)for(o=[],i=[],s=0;s<h;s+=1)m+=u[s].size+f,(s+1===h||m+u[s+1].size+f>d||p&&s+1-v>=p)&&(o.push(u.slice(v,s+1)),r=g.slice(v,s+1),r.length||(r=g),i.push(r),v=s+1,m=0);else i=g;else for(o=[],i=[],s=0;s<h;s+=p)o.push(u.slice(s,s+p)),r=g.slice(s,s+p),r.length||(r=g),i.push(r);else o=[u],i=[g];return n.originalFiles=u,t.each(o||u,function(r,s){var c=t.extend({},n);return c.files=o?s:[s],c.paramName=i[r],a._initResponseObject(c),a._initProgressObject(c),a._addConvenienceMethods(e,c),l=a._trigger("add",t.Event("add",{delegatedEvent:e}),c)}),l},_replaceFileInput:function(e){var n=e.fileInput,i=n.clone(!0),r=n.is(document.activeElement);e.fileInputClone=i,t("<form></form>").append(i)[0].reset(),n.after(i).detach(),r&&i.focus(),t.cleanData(n.unbind("remove")),this.options.fileInput=this.options.fileInput.map(function(t,e){return e===n[0]?i[0]:e}),n[0]===this.element[0]&&(this.element=i)},_handleFileTreeEntry:function(e,n){var i,r=this,o=t.Deferred(),s=function(t){t&&!t.entry&&(t.entry=e),o.resolve([t])},a=function(t){r._handleFileTreeEntries(t,n+e.name+"/").done(function(t){o.resolve(t)}).fail(s)},l=function t(){i.readEntries(function(e){e.length?(c=c.concat(e),t()):a(c)},s)},c=[];return n=n||"",e.isFile?e._file?(e._file.relativePath=n,o.resolve(e._file)):e.file(function(t){t.relativePath=n,o.resolve(t)},s):e.isDirectory?(i=e.createReader(),l()):o.resolve([]),o.promise()},_handleFileTreeEntries:function(e,n){var i=this;return t.when.apply(t,t.map(e,function(t){return i._handleFileTreeEntry(t,n)})).then(function(){return Array.prototype.concat.apply([],arguments)})},_getDroppedFiles:function(e){e=e||{};var n=e.items;return n&&n.length&&(n[0].webkitGetAsEntry||n[0].getAsEntry)?this._handleFileTreeEntries(t.map(n,function(t){var e;return t.webkitGetAsEntry?(e=t.webkitGetAsEntry(),e&&(e._file=t.getAsFile()),e):t.getAsEntry()})):t.Deferred().resolve(t.makeArray(e.files)).promise()},_getSingleFileInputFiles:function(e){e=t(e);var n,i,r=e.prop("webkitEntries")||e.prop("entries");if(r&&r.length)return this._handleFileTreeEntries(r);if(n=t.makeArray(e.prop("files")),n.length)void 0===n[0].name&&n[0].fileName&&t.each(n,function(t,e){e.name=e.fileName,e.size=e.fileSize});else{if(i=e.prop("value"),!i)return t.Deferred().resolve([]).promise();n=[{name:i.replace(/^.*\\/,"")}]}return t.Deferred().resolve(n).promise()},_getFileInputFiles:function(e){return e instanceof t&&1!==e.length?t.when.apply(t,t.map(e,this._getSingleFileInputFiles)).then(function(){return Array.prototype.concat.apply([],arguments)}):this._getSingleFileInputFiles(e)},_onChange:function(e){var n=this,i={fileInput:t(e.target),form:t(e.target.form)};this._getFileInputFiles(i.fileInput).always(function(r){i.files=r,n.options.replaceFileInput&&n._replaceFileInput(i),n._trigger("change",t.Event("change",{delegatedEvent:e}),i)!==!1&&n._onAdd(e,i)})},_onPaste:function(e){var n=e.originalEvent&&e.originalEvent.clipboardData&&e.originalEvent.clipboardData.items,i={files:[]};n&&n.length&&(t.each(n,function(t,e){var n=e.getAsFile&&e.getAsFile();n&&i.files.push(n)}),this._trigger("paste",t.Event("paste",{delegatedEvent:e}),i)!==!1&&this._onAdd(e,i))},_onDrop:function(e){e.dataTransfer=e.originalEvent&&e.originalEvent.dataTransfer;var n=this,i=e.dataTransfer,r={};i&&i.files&&i.files.length&&(e.preventDefault(),this._getDroppedFiles(i).always(function(i){r.files=i,n._trigger("drop",t.Event("drop",{delegatedEvent:e}),r)!==!1&&n._onAdd(e,r)}))},_onDragOver:e("dragover"),_onDragEnter:e("dragenter"),_onDragLeave:e("dragleave"),_initEventHandlers:function(){this._isXHRUpload(this.options)&&(this._on(this.options.dropZone,{dragover:this._onDragOver,drop:this._onDrop,dragenter:this._onDragEnter,dragleave:this._onDragLeave}),this._on(this.options.pasteZone,{paste:this._onPaste})),t.support.fileInput&&this._on(this.options.fileInput,{change:this._onChange})},_destroyEventHandlers:function(){ 22this._off(this.options.dropZone,"dragenter dragleave dragover drop"),this._off(this.options.pasteZone,"paste"),this._off(this.options.fileInput,"change")},_setOption:function(e,n){var i=t.inArray(e,this._specialOptions)!==-1;i&&this._destroyEventHandlers(),this._super(e,n),i&&(this._initSpecialOptions(),this._initEventHandlers())},_initSpecialOptions:function(){var e=this.options;void 0===e.fileInput?e.fileInput=this.element.is('input[type="file"]')?this.element:this.element.find('input[type="file"]'):e.fileInput instanceof t||(e.fileInput=t(e.fileInput)),e.dropZone instanceof t||(e.dropZone=t(e.dropZone)),e.pasteZone instanceof t||(e.pasteZone=t(e.pasteZone))},_getRegExp:function(t){var e=t.split("/"),n=e.pop();return e.shift(),new RegExp(e.join("/"),n)},_isRegExpOption:function(e,n){return"url"!==e&&"string"===t.type(n)&&/^\/.*\/[igm]{0,3}$/.test(n)},_initDataAttributes:function(){var e=this,n=this.options,i=this.element.data();t.each(this.element[0].attributes,function(t,r){var o,s=r.name.toLowerCase();/^data-/.test(s)&&(s=s.slice(5).replace(/-[a-z]/g,function(t){return t.charAt(1).toUpperCase()}
22),o=i[s],e._isRegExpOption(s,o)&&(o=e._getRegExp(o)),n[s]=o)})},_create:function(){this._initDataAttributes(),this._initSpecialOptions(),this._slots=[],this._sequence=this._getXHRPromise(!0),this._sending=this._active=0,this._initProgressObject(this),this._initEventHandlers()},active:function(){return this._active},progress:function(){return this._progress},add:function(e){var n=this;e&&!this.options.disabled&&(e.fileInput&&!e.files?this._getFileInputFiles(e.fileInput).always(function(t){e.files=t,n._onAdd(null,e)}):(e.files=t.makeArray(e.files),this._onAdd(null,e)))},send:function(e){if(e&&!this.options.disabled){if(e.fileInput&&!e.files){var n,i,r=this,o=t.Deferred(),s=o.promise();return s.abort=function(){return i=!0,n?n.abort():(o.reject(null,"abort","abort"),s)},this._getFileInputFiles(e.fileInput).always(function(t){if(!i){if(!t.length)return void o.reject();e.files=t,n=r._onSend(null,e),n.then(function(t,e,n){o.resolve(t,e,n)},function(t,e,n){o.reject(t,e,n)})}}),this._enhancePromise(s)}if(e.files=t.makeArray(e.files),e.files.length)return this._onSend(null,e)}return this._getXHRPromise(!1,e&&e.context)}})})},function(t,e,n){"use strict";function i(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}!function(){var e=n(90),r=function(t,e,n,i){this.readOnly=e,this.serverMode=!!i,_.isArray(t)?this._data=new rwgps.Data(t):this._data=t,this._points=[],this._metrics={},n&&1==n.v&&(this._metrics=n,this.calculated=!0)};r.version=1;var o=-15,s=15;r.aggregate=function(){return _.reduce(arguments,function(t,e){return e},null)},r.prototype={metrics:function(){return this.calculated||this.calculate(),this._metrics},hasMetric:function(t){if(!this._metrics[t])return!1;var e=this._metrics[t]._max;return!(void 0===e||null===e||e==-5e4||isNaN(e))},limitedDetect:function(t){if(this._data.count>0)for(var e=Math.ceil(this._data.count/10),n=0;n<e;n++)if(t(this._data.points(n)))return!0;return!1},hasPosition:function(){return void 0===this._hasPosition&&(this._hasPosition=this.limitedDetect(function(t){return t.point})),this._hasPosition},hasTime:function(){return!!(this._data.points(0)&&!isNaN(this._data.points(0).time)&&this._data.points(0).time>0)},hasDistance:function(){if(void 0===this._hasDistance){var t;this._hasDistance=this.limitedDetect(function(e){if(e.point)return!0;if(_.isNumber(e.providedDistance))if(void 0===t)t=e.providedDistance;else if(e.providedDistance-t>0)return!0})}return this._hasDistance},hasPower:function t(){if(0==this._data.count)return!1;for(var e,t=!1,n=0;n<10;n++)e=Math.floor(Math.random()*this._data.count),t=t||null!=this._data.points(e).watts;return t},enabledMetrics:function t(){var e,t=[];e=this.serverMode?["ele","hr","cad","watts","speed","grade","temp"]:["ele","surfaces","hr","cad","watts","watts_ma_30","watts_ma_60","speed","grade","temp"];for(var n=0;n<e.length;n++)this.hasMetric(e[n])&&t.push(e[n]);return t},enabledBaseMetrics:function(){for(var t=["ele","hr","cad","watts","speed","grade","temp"],e=[],n=0;n<t.length;n++)this.hasMetric(t[n])&&e.push(t[n]);return e},getMetric:function(t,e){var n=this._metrics;return n[t]&&n[t][e]?n[t][e]:0},setMetric:function(t,e,n,i){this._metrics[t]||(this._metrics[t]={}),this._metrics[t][e]=n,i&&(this._metrics[t][e+"_i"]=i)},removeMetric:function(t){delete this._metrics[t]},setHRZoneBoundaries:function(t){this._hrZoneBoundaries=t},getHRZoneBoundaries:function(){return this._hrZoneBoundaries},calculate:function(t){if(this._data.count<2)return{};if(t&&this.calculated)return this._metrics;this._points=this._data.points();var e,n;n=this.serverMode?["ele","hr","cad","watts","speed","grade","temp"]:["ele","surfaces","hr","cad","watts","watts_ma_30","watts_ma_60","speed","grade","temp"];var i,o,s,a,l,c,u=this.hasTime(),h=this._data,p=this.hasPower(),d=this.hasDistance(),f=0,m=0,g=0,v=0,y=0,b=0,w=10,_=10,x=this._bounds={sw:{lat:90,lng:180},ne:{lat:-90,lng:-180}};for(p&&(this.serverMode?this._metrics.bestEfforts=this.calculateMovingAverages("watts",[5,10,15,20,30,60,300,600,1200,1800,3600,5400]):this.calculateMovingAverages("watts",[30,60]),this.calculateNormalizedPower()),i=h.points(0),e=0;e<n.length;e++){var k=n[e];this.setMetric(k,"max",-5e4),this.setMetric(k,"min",5e4)}u&&(a=0,l=0,c=i.time);var T,C,$=this._points,S=0;if(!this.readOnly){var E=h.points(0);for(isNaN(E.grade)&&!isNaN(E.ele)&&(E.grade=E.grade_orig=0),isNaN(E.speed)&&d&&(E.speed=0),E.distance=0,i=null,e=0;e<h.count;e++)i&&(void 0!==i.providedDistance||i.point)&&(C=i),i=$[e],o=C&&(!C.excludeFromMetrics||!i.excludeFromMetrics),i.point&&(i.point.lat<-90||i.point.lat>90||i.point.lng<-180||i.point.lng>180)&&(i.point=null),C&&(T=void 0!==C.providedDistance&&void 0!==i.providedDistance?i.providedDistance-C.providedDistance:i.point&&C.point?i.distanceFromPoint(C):0,f+=T,o&&(S+=T)),i.distance=f,i.distanceWithoutExcludedPoints=S;f=0}var A=this.smoothEles(),I=!1;i=null,C=null;var M,j=0,D=!1;for(e=0;e<h.count;e++){D=!1,I&&(C=i),u&&i&&i.time&&(M=i),i=$[e],o=C&&(!C.excludeFromMetrics||!i.excludeFromMetrics),I=void 0!==i.providedDistance||i.point;var O;if(T=C?void 0!==C.providedDistance&&void 0!==i.providedDistance?i.providedDistance-C.providedDistance:void 0!==C.distance&&void 0!==i.distance?i.distance-C.distance:i.point&&C.point?i.distanceFromPoint(C):0:0,T&&o&&(f+=T),u&&i.time&&o&&C.time&&C.time!=i.time){var N=i.time-C.time,L=(0==N?0:T/N)/1e3*3600;if(!Number.isFinite(i.speed)&&d){if(i.speed=L,L>100&&O){var P=(L-O)/N;1.5*O<L&&P>40&&(i.speed=void 0)}O=L}else i.speed&&(O=i.speed);var R=3.2;j=i.time-M.time,j<=32&&(i.speed>R&&L>R||i.cad&&i.cad>w||i.watts&&i.watts>_)?(a+=j,b+=1,D=!0):d&&(C.exclude=!0,i.exclude=!0,j>32&&(C.speed=0,i.speed=0))}else b+=1;!I&&this.hasPosition()&&(i.speed=null),i.point&&(i.point.lng>x.ne.lng&&(x.ne.lng=i.point.lng),i.point.lat>x.ne.lat&&(x.ne.lat=i.point.lat),i.point.lng<x.sw.lng&&(x.sw.lng=i.point.lng),i.point.lat<x.sw.lat&&(x.sw.lat=i.point.lat));var q=A.idxMap[e];if(q&&q>0){var F=A.results[q]-A.results[q-1];o&&(F<0&&F>-500?(g-=F,u&&D&&i.time&&C.time&&(y+=i.time-C.time)):F>0&&F<500&&(m+=F,u&&D&&i.time&&C.time&&(v+=i.time-C.time))),isNaN(F)||!isNaN(i.grade)&&null!=i.grade||(i.grade=i.grade_orig=0==T?0:parseInt(F/T*100*10)/10,Math.abs(i.grade)>40&&C&&(i.grade=i.grade_orig=C.grade))}}for(var H,B,z,U,W=0;W<n.length;W++){k=n[W],H=B=z=U=0;var G,V=0,X=0,Q=$[0].time,J=0,Z=null;for(e=0;e<h.count;e++)if(i=$[e],null!==i[k]&&!isNaN(i[k])&&(H++,B+=i[k],u&&(null!==Z&&(J=i.time-Q,G=(i[k]+Z)/2,J>180&&(G=0),V+=J,X+=J*G),Q=i.time,Z=i[k]),(i[k]<this._metrics[k]._min||void 0===this._metrics[k]._min)&&this.setMetric(k,"_min",i[k]),(i[k]>this._metrics[k]._max||void 0===this._metrics[k]._max)&&this.setMetric(k,"_max",i[k]),!i.exclude)){
22if("cad"==k){if(i[k]<w)continue;z++}else if("watts"==k){if(i[k]<_)continue;z++}else z++;i[k]>this.getMetric(k,"max")&&this.setMetric(k,"max",i[k],e),i[k]<this.getMetric(k,"min")&&this.setMetric(k,"min",i[k],e),("speed"!=k||u)&&(U+=i[k])}H>0?(u?this.setMetric(k,"_avg",V>0?X/V:0):this.setMetric(k,"_avg",B/h.count),z>0&&this.setMetric(k,"avg",U/z)):this.removeMetric(k)}u&&(Q=h.points(h.count-1).time,Q||(Q=h.points(h.count-2).time),s=Q-h.points(0).time,s>0?(l=s-a,this._metrics.stationary=!this.hasPosition(),this._metrics.duration=s,this._metrics.firstTime=c,this._metrics.movingTime=a,this._metrics.stoppedTime=l,this._metrics.pace=f>0?s/(f/1e3):0,this._metrics.movingPace=f>0?a/(f/1e3):0,this._metrics.ascentTime=v,this._metrics.descentTime=y,this._metrics.vam=v>0?m/(v/3600):0,p&&(this._metrics.kJ=this._metrics.watts._avg*s/1e3),this._metrics.speed&&a>0&&(this._metrics.speed.avg=f/1e3/(a/3600))):delete this._metrics.speed),this._metrics.speed&&this.hasTime()&&this._metrics.speed.avg<.3&&(delete this._metrics.speed,this._hasDistance=!1,this._hasPosition=!1),this.calculateGradeAndSpeed(),this.hasPosition()&&(this.serverMode&&u?this._metrics.tripSummary=this.buildTripSummary():rwgps.summary&&rwgps.summary.user_summary&&(this._metrics.estimatedTime=this.estimateTimeFor(rwgps.summary.user_summary))),this.serverMode&&this.hasPosition()&&d&&(this._metrics.routeSummary=this.buildRouteSummary());var Y=this._hrZoneBoundaries;if(Y&&u){for(var K={1:0,2:0,3:0,4:0,5:0},tt=!1,et=0;et<$.length;++et){var nt=$[et];if(!nt.exclude){var it=nt.hr;if(Number.isFinite(it)){for(var rt=6;rt>0&&it<Y[rt-1];--rt);if(!(rt>5||rt<1)){var ot=$[et-1],st=$[et+1],at=(ot&&!ot.exclude?ot:nt).time,lt=(st&&!st.exclude?st:nt).time,ct=(lt-at)/2;Number.isFinite(ct)&&(tt=!0,K[rt]=(K[rt]||0)+ct)}}}}tt&&(this._metrics.hr_zones=K)}return this._metrics.distance=f,this._metrics.startElevation=h.points(0).ele,this._metrics.endElevation=h.points(h.count-1).ele,this._metrics.numPoints=h.count,this._metrics.ele_gain=m,this._metrics.ele_loss=g,this.hasSurface()&&(this._metrics.surfaces=this.calculateSurfaceTypes()),this.calculated=!0,m>50&&g/m<.2&&(this._metrics.isClimb=!0,this.calculateUCIClimbRating(),this.calculateFietsIndex()),this._metrics.v=r.version,this._metrics},buildTripSummary:function(){var t,e=this._points,n={},i={};for(t=o;t<=s;t++)n[t.toString()]=[];var r=-1;for(t=0;t<e.length;t++){var a=e[t],l=a.grade;_.isFinite(l)&&_.isFinite(a.speed)&&a.exclude!==!0&&(r>-1&&(l>s&&(l=s),l<o&&(l=o),n[Math.round(l).toString()].push(a.speed)),r=t)}for(t=o;t<=s;t++){var c,u,h=n[t],p=h.length;0===p?u=0:(c=h.reduce(function(t,e){return(void 0===t?0:t)+(void 0===e?0:e)}),u=c/p),i[t]=[u,p]}return i},buildRouteSummary:function(){var t,e=this._points,n={},i={};for(t=o;t<=s;t++)n[t.toString()]=[];var r=-1;for(t=0;t<e.length;t++){var a=e[t];if(_.isFinite(a.grade)){if(r>-1){var l=a.distance-e[r].distance,c=(e[t].grade+e[r].grade)/2,u=Math.round(c);u>s&&(u=s),u<o&&(u=o),n[u.toString()].push(l)}r=t}}for(t=o;t<=s;t++)if(0===n[t].length)i[t]=0;else{var h=n[t].reduce(function(t,e){return(void 0===t?0:t)+(void 0===e?0:e)});i[t]=h}return i},estimateTimeFor:function(t){var e=this.buildRouteSummary(),n=0;return Object.keys(e).forEach(function(i){i>s&&(t[i]=t[s.toString()]),i<o&&(t[i]=t[o.toString()]),n+=e[i]/1e3/t[i][0]}),3600*n},calculateUCIClimbRating:function(){var t,e=this.metrics(),n=e.uciScore=e.distance*this.getMetric("grade","avg");n>64e3?t="HC":n>48e3?t=1:n>32e3?t=2:n>16e3?t=3:n>8e3&&(t=4),e.uciCategory=t},calculateFietsIndex:function(){var t=this.metrics(),e=this.getMetric("ele","max"),n=this.getMetric("ele","min"),i=e-n,r=t.distance,o=e;t.fietsIndex=i*i/(10*r)+(o>1e3?(o-1e3)/1e3:0)},calculateMovingAverages:function(t,e){if(this._points[0]&&!this._points[0].hasOwnProperty("watts_ma_"+e[0])){for(var n=[],i=this._data,r=this._points,o=null,s=null,a=0,l=i.count;a<l;a++)o=s,s=r[a],s._idx=a,0!=a&&s.time==o.time||!_.isNumber(s.watts)||n.push(s);if(n.length<=2)return{};for(var c,u,h="watts",p=0,d={},f=0;f<e.length;f++){p=0,c=e[f];var m=h+"_ma_"+c,g=c/2,v=n[0].time,y=n[n.length-1].time;for(a=0;n[++a]&&n[a].time-v<g;);if(!n[a]||y-n[a].time<g)break;
22if(n[a][m])break;var b=this.timeWeightedAverage(h,n[a].time-g,n[a].time+g,null,n);n[a][m]=b.avg;var w=b.outerStartI,x=b.innerEndI,k=a;for(++a;y-n[a].time>=g;a++){var T=n[a].time,C=n[a-1].time,$=T-C,S=this.timeWeightedAverage(h,C+g,T+g,x,n);x=S.innerEndI;var E=this.timeWeightedAverage(h,C-g,T-g,w,n);w=E.outerStartI;var A=n[k][m],I=(c*A+$*(S.avg-E.avg))/c;I<0&&I>-1e-7&&(I=0),n[a][m]=I,(!p||p<I)&&(p=I,u=n[a]._idx),k=a}d[c]=[u,p]}return d}},timeWeightedAverage:function(t,e,n,i,r){for(r||(r=this._data.points()),e||(e=0),n||(n=r[r.length-2].time),i||(i=1);r[i].time<e;)i++;for(var o=i,s=0;r[++o]&&r[o].time<=n;){var a=r[o].time-r[o-1].time,l=(r[o][t]+r[o-1][t])/2;s+=a*l}var c=o-1;(r[c].time>n||r.length==c+1)&&c--;var u,h=r[i],p=r[i-1],d=h.time-e,f=h[t]-(h[t]-p[t])*d/(h.time-p.time),m=r[c],g=r[c+1],v=n-m.time,y=m[t]+(g[t]-m[t])*v/(g.time-m.time);if(c<i)u=(f+y)/2;else{var b=d*(f+h[t])/2+s+v*(y+m[t])/2;u=b/(n-e)}return{outerStartI:i-1,innerEndI:c,avg:u}},resampleEles:function(t,e,n){var i,r,o=[],s=t[0][n],a=0;for(o.push({x:0,y:t[0].ele||0,yDelta:0});a<t.length;)if(r=t[a],i&&Number.isFinite(r.ele)&&i[n]<=s&&r[n]>s&&t[a][n]-s<1e3){var l=r[n]-i[n],c=(s-i[n])/l,u=r.ele-i.ele,h=i.ele+c*u;o.push({x:s,y:h,yDelta:u}),r[n]-s<e&&(a+=1,void 0!==r.ele&&(i=r)),s+=e}else void 0!==r.ele&&(i=r),a+=1;return o},smoothEles:function(){for(var t,n,i=[],r=[],o=0,s=0;s<this._points.length;s++)Number.isFinite(this._points[s].ele)&&(r[s]=i.length,i.push(this._points[s]));if(0===i.length)return{results:[],idxMap:r};this.hasDistance()?(t=_.map(i,function(t){return{x:t.distance,y:t.ele}}),n=this.resampleEles(i,20,"distance")):(t=_.map(i,function(t){return{x:t.timeFromStart,y:t.ele}}),n=this.resampleEles(i,2,"time")),_.each(n,function(t){o+=Math.pow(t.yDelta,6)});var a=Math.pow(o/n.length,1/6),l=10,c=70,u=.05,h=8,p=l;if(a<=u)p=l;else if(a>=h)p=c;else{var d=a-u,f=d/(h-u);p=Math.round(l+(c-l)*f)}return{results:new e.DJFilter(t,p).filter(),idxMap:r}},calculateGradeAndSpeed:function(){var t=this._data,n=this._points;if(n[0]&&"undefined"==typeof n[0].speed_orig){var i,r,o,s=0,a=[],l=[],c=[],u=[],h=[],p=[],d=this.hasMetric("speed"),f=this.hasMetric("grade"),m=0,g=0,v=0;for(i=0;i<t.count;i++)r=o,o=n[i],i>0&&(r.distance&&o.distance?s+=o.distance-r.distance:o.point&&r.point&&(s+=o.distanceFromPoint(r))),d&&(null==o.speed?l.push(null):(c.push(o.speed),a.push(s),l.push(g),g++)),f&&(isNaN(o.grade_orig)?(m++,h.push(null)):(p.push(o.grade_orig),u.push(s),h.push(v),v++));var y,b,w;d&&(w=new e.SincFilter(a,c),y=w.filter(),this.setMetric("speed","max",-5e4),this.setMetric("speed","min",5e4)),f&&(w=new e.LowPass(u,p,4.4),b=w.filter(),this.setMetric("grade","max",-5e4),this.setMetric("grade","min",5e4));var _=null,x=null,k=0;for(i=0;i<t.count;i++)o=n[i],d&&(void 0===o.speed_orig&&(o.speed_orig=o.speed),null!==l[i]?(_=y[l[i]],o.exclude||(o.speed=_),_>this.getMetric("speed","max")&&this.setMetric("speed","max",_,i),_<this.getMetric("speed","min")&&this.setMetric("speed","min",_,i)):o.speed=_),f&&(null!=h[i]?(k++,x=b[h[i]],o.grade=x,x>this.getMetric("grade","max")&&this.setMetric("grade","max",x,i),x<this.getMetric("grade","min")&&this.setMetric("grade","min",x,i)):(k++,o.grade=x))}},calculateNormalizedPower:function(){var t,e,n,i,r=this._data,o=[],s=0,a=this._points;for(t=0;t<r.count;t++)i=a[t],null!=i.watts_ma_30&&o.push(Math.pow(i.watts_ma_30,4));for(t=0;t<o.length;t++)s+=o[t];return n=s/o.length,e=Math.pow(n,.25),this.setMetric("watts","normalized",e),e},average:function(t){for(var e=0,n=0;n<t.length;n++)e+=t[n];return e/t.length},calculateBestEfforts:function(){function t(t,n,i){var o,s,a,l=r[n];if("after"==t){for(o=l.time+i,s=n;e.points(s+1)&&e.points(s).time<=o;)s++;return--s,a=(o-e.points(s).time)/(e.points(s+1).time-e.points(s).time),[s,a]}for(o=l.time-i,s=n;e.points(s-1)&&e.points(s)&&e.points(s).time>=o;)s--;return a=(o-e.points(s).time)/(e.points(s+1).time-e.points(s).time),[s,a]}if(this.hasPower()){for(var e=this._data,n={},i=[30,60],r=this._points,o=4,s=0;s<i.length;s++){var a=i[s],l="watts_ma_"+a,c=a/2,u=_.sortBy(_.select(r,function(t){return t&&t[l]}),function(t){return-t[l]});if(u.length>=o){n[a]=[];var h=0,p=t("before",u[0]._idx,c),d=t("after",u[0]._idx,c);n[a].push([p,d]),h++;for(var f,m,g=o-1;g>0;)f=t("before",u[h]._idx,c),m=t("after",u[h]._idx,c),_.all(n[a],function(t){return f[0]<t[0][0]&&m[0]<t[0][0]||f[0]>t[1][0]&&m[0]>t[1][0]})&&(p=f,d=m,n[a].push([p,d]),g--),h++}}return n}},calculateSpeedBuckets:function(){for(var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=t?1:.621371,n=this._points,r={},o={},s={},a={},l=0,c=0;c<n.length;++c){var u=n[c];if(!u.exclude){var h=u.speed*e,p=Math.floor(h),d=n[c-1],f=n[c+1],m=(d&&!d.exclude?d:u).time,g=(f&&!f.exclude?f:u).time,v=(g-m)/120;if(!(v>.5||0==p)){l+=v;var y=a[p]||0,b=a[p]=y+1;r[p]=(r[p]||0)+v,s[p]=((s[p]||0)*y+u.grade)/b}}}for(var w=Object.keys(r),_=Math.min.apply(Math,i(w)),x=Math.max.apply(Math,i(w)),k=_;k<=x;k++)r[k]||(r[k]=0),s[k]||(s[k]=0),o[k]=l,l-=r[k]||0;return{durations:r,gradeAvgs:s,gteDurations:o}},hasSurface:function(){return void 0===this._hasSurface&&(this._hasSurface=Object.keys(this.surfaces()).length>0),this._hasSurface}
22,surfaces:function(){return void 0===this._surfaces&&(this._surfaces=this.calculateSurfaceTypes()),this._surfaces},calculateSurfaceTypes:function(){if(this._surfaces)return this._surfaces;var t=this._points;if(0===t.length)return{};var e={},n=!1,i=0,r=""+t[0].surface,o=!0;t.forEach(function(s,a){if(void 0!==s.surface){var l=t[a-1],c=""+s.surface;a>0&&!l.excludeFromMetrics&&s.excludeFromMetrics?(n=!0,Object.keys(e).indexOf(r)===-1&&(e[r]=0),e[r]+=s.distance-i):a>0&&l.excludeFromMetrics&&!s.excludeFromMetrics?(n=!1,i=t[a-1].distance,r=c):n||c===r||(Object.keys(e).indexOf(r)===-1&&(e[r]=0),e[r]=e[r]+(l.distance-i),i=l.distance,r=c)}else o=!1});var s=t[t.length-1],a=""+s.surface;return"undefined"===a||n||(Object.keys(e).indexOf(a)===-1&&(e[a]=0),e[a]+=s.distance-i),Object.keys(e).length>0&&o&&(e._max=!0),this._surfaces=e,e}},t.exports=r}()},function(t,e){"use strict";!function(t){function e(e){if(!t.ajaxSettings.stopCSRF){var n=t('meta[name="csrf-token"]').attr("content");n&&e(function(t){t.setRequestHeader("X-CSRF-Token",n)})}}function n(e,n,i){var r=new t.Event(n);return e.trigger(r,i),r.result!==!1}function i(e){var i,r,o,s=e.attr("data-type")||t.ajaxSettings&&t.ajaxSettings.dataType;if(e.is("form")){i=e.attr("method"),r=e.attr("action"),o=e.serializeArray();var a=e.data("ujs:submit-button");a&&(o.push(a),e.data("ujs:submit-button",null))}else i=e.attr("data-method"),r=e.attr("href"),o=null;t.ajax({url:r,type:i||"GET",data:o,dataType:s,beforeSend:function(t,i){return void 0===i.dataType&&t.setRequestHeader("accept","*/*;q=0.5, "+i.accepts.script),n(e,"ajax:beforeSend",[t,i])},success:function(t,n,i){e.trigger("ajax:success",[t,n,i])},complete:function(t,n){e.trigger("ajax:complete",[t,n])},error:function(t,n,i){e.trigger("ajax:error",[t,n,i])}})}function r(e){var n=e.attr("href"),i=e.attr("data-method"),r=t("meta[name=csrf-token]").attr("content"),o=t("meta[name=csrf-param]").attr("content"),s=t('<form method="post" action="'+n+'"></form>'),a='<input name="_method" value="'+i+'" type="hidden" />';void 0!==o&&void 0!==r&&(a+='<input name="'+o+'" value="'+r+'" type="hidden" />'),s.hide().append(a).appendTo("body"),s.submit()}function o(e){e.find("input[data-disable-with]").each(function(){var e=t(this);e.data("ujs:enable-with",e.val()).val(e.attr("data-disable-with")).attr("disabled","disabled")})}function s(e){e.find("input[data-disable-with]").each(function(){var e=t(this);e.val(e.data("ujs:enable-with")).removeAttr("disabled")})}function a(e){var n=!1;return e.find("input[name][required]").each(function(){t(this).val()||(n=!0)}),n}var l;if("1.5"==t().jquery){var c=t.ajaxSettings.xhr;t.ajaxSettings.xhr=function(){var t=c();return e(function(e){var n=t.open;t.open=function(){n.apply(this,arguments),e(this)}}),t}}else t(document).ajaxSend(function(t,n){e(function(t){t(n)})});l=function(t){var e,i=t.data("confirm"),r=!1;return!i||(n(t,"confirm")&&customConfirm(i,function(){if(e=n(t,"confirm:complete",[r])){var i=l;l=function(){return!0},t.trigger("click"),l=i}}),!1)},t(document).on("click.rails","a[data-confirm], a[data-method], a[data-remote]",function(){var e=t(this);return!!l(e)&&(void 0!=e.attr("data-remote")?(i(e),!1):e.attr("data-method")?(r(e),!1):void 0)}),t(document).on("submit.rails","form",function(){var e=t(this),n=void 0!=e.attr("data-remote");return!!l(e)&&(a(e)?!n:n?(i(e),!1):void setTimeout(function(){o(e)},13))}),t(document).on("click.rails","form input[type=submit], form button[type=submit], form button:not([type])",function(){var e=t(this);if(!l(e))return!1;var n=e.attr("name"),i=n?{name:n,value:e.val()}:null;e.closest("form").data("ujs:submit-button",i)}),t(document).on("ajax:beforeSend.rails","form",function(e){this==e.target&&o(t(this))}),t(document).on("ajax:complete.rails","form",function(e){this==e.target&&s(t(this))})}(jQuery)},function(t,e,n){(function(e){t.exports=e.$=n(145)}).call(e,function(){return this}())},function(t,e,n){(function(e){t.exports=e.Backbone=n(149)}).call(e,function(){return this}())},function(t,e,n){(function(e){t.exports=e.T=n(141)}).call(e,function(){return this}())},function(t,e,n){(function(e){t.exports=e._=n(168)}).call(e,function(){return this}())},function(t,e,n){(function(e){t.exports=e.rwgpsG_views_photos=n(45)}).call(e,function(){return this}())},function(t,e){!function(t){"use strict";t(jQuery)}(function(t){"use strict";var e=0;t.ajaxTransport("iframe",function(n){if(n.async){var i,r,o,s=n.initialIframeSrc||"javascript:false;";return{send:function(a,l){i=t('<form style="display:none;"></form>'),i.attr("accept-charset",n.formAcceptCharset),o=/\?/.test(n.url)?"&":"?","DELETE"===n.type?(n.url=n.url+o+"_method=DELETE",n.type="POST"):"PUT"===n.type?(n.url=n.url+o+"_method=PUT",n.type="POST"):"PATCH"===n.type&&(n.url=n.url+o+"_method=PATCH",n.type="POST"),e+=1,r=t('<iframe src="'+s+'" name="iframe-transport-'+e+'"></iframe>').bind("load",function(){var e,o=t.isArray(n.paramName)?n.paramName:[n.paramName];r.unbind("load").bind("load",function(){var e;try{if(e=r.contents(),!e.length||!e[0].firstChild)throw new Error}catch(t){e=void 0}l(200,"success",{iframe:e}),t('<iframe src="'+s+'"></iframe>').appendTo(i),window.setTimeout(function(){i.remove()},0)}),i.prop("target",r.prop("name")).prop("action",n.url).prop("method",n.type),n.formData&&t.each(n.formData,function(e,n){t('<input type="hidden"/>').prop("name",n.name).val(n.value).appendTo(i)}),n.fileInput&&n.fileInput.length&&"POST"===n.type&&(e=n.fileInput.clone(),n.fileInput.after(function(t){return e[t]}),n.paramName&&n.fileInput.each(function(e){t(this).prop("name",o[e]||n.paramName)}),i.append(n.fileInput).prop("enctype","multipart/form-data").prop("encoding","multipart/form-data"),n.fileInput.removeAttr("form")),i.submit(),e&&e.length&&n.fileInput.each(function(n,i){var r=t(e[n]);t(i).prop("name",r.prop("name")).attr("form",r.attr("form")),r.replaceWith(i)})}),i.append(r).appendTo(document.body)},abort:function(){r&&r.unbind("load").prop("src",s),i&&i.remove()}}}}),t.ajaxSetup({converters:{"iframe text":function(e){return e&&t(e[0].body).text()},"iframe json":function(e){return e&&t.parseJSON(t(e[0].body).text())},"iframe html":function(e){return e&&t(e[0].body).html()},"iframe xml":function(e){var n=e&&e[0];return n&&t.isXMLDoc(n)?n:t.parseXML(n.XMLDocument&&n.XMLDocument.xml||t(n.body).html())}
22,"iframe script":function(e){return e&&t.globalEval(t(e[0].body).text())}}})})},function(module,exports){rwgps.templates=rwgps.templates||{},rwgps.templates.photos={uploader:function(obj){var __t,__p="",__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,"")};with(obj||{})__p+='<div class="photo_uploader"> <div class="progress.progress-success"> <div class="progress-bar"></div> </div> <span class="btn btn-default btn-sm fileinput-button add-photo-prompt"> <span>'+(null==(__t=cta)?"":_.escape(__t))+'</span> <input class="photos_upload" type="file" multiple="multiple"></div>';return __p},miniSlideshow:function(obj){var __t,__p="",__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,"")};with(obj||{})__p+='<div class="mini_slideshow carousel" id="'+(null==(__t=carouselId)?"":_.escape(__t))+'"><ol class="carousel-indicators"></ol><div class="carousel-inner"></div><a href="javascript:;" class="carousel-control left"><i class="icon-prev"></i></a><a href="javascript:;" class="carousel-control right"><i class="icon-next"></i></a></div>';return __p},miniSlideshowIndicator:function(obj){var __t,__p="",__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,"")};with(obj||{})__p+="";return __p},miniSlideshowItem:function(obj){var __t,__p="",__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,"")};with(obj||{})__p+='<div class="item"><a class="popup_photo_modal" href="javascript:;" title="'+(null==(__t=photo.caption||"")?"":_.escape(__t))+'"><img class="ss_img" data-lazy-src="/photos/'+(null==(__t=photo.id)?"":__t)+'/sq_thumb.jpg" alt="'+(null==(__t=photo.caption||"")?"":_.escape(__t))+'" data-lat="'+(null==(__t=photo.lat)?"":_.escape(__t))+'" data-lng="'+(null==(__t=photo.lng)?"":_.escape(__t))+'" data-photo-id="'+(null==(__t=photo.id)?"":_.escape(__t))+'"></a></div>';return __p},modalSlideshow:function(obj){var __t,__p="",__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,"")};with(obj||{})__p+="",this.options.modal&&(__p+='<div class="modal-dialog"><div class="modal-content"><div class="modal-body"><button class="close" type="button" data-dismiss="modal">×</button>'),__p+='<div class="inner"><div class="carousel" id="'+(null==(__t=carouselId)?"":_.escape(__t))+'" data-interval="0"><ol class="carousel-indicators"></ol><div class="carousel-inner"></div><a href="javascript:;" class="carousel-control left"><i class="icon-prev"></i></a><a href="javascript:;" class="carousel-control right"><i class="icon-next"></i></a></div></div>',this.options.modal&&(__p+="</div></div></div>"),__p+="";return __p},modalSlideshowIndicator:function(obj){var __t,__p="",__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,"")};with(obj||{})__p+='<li data-target="#'+(null==(__t=carouselId)?"":__t)+'" data-slide-to="'+(null==(__t=slideTo)?"":__t)+'" data-photo-id="'+(null==(__t=photoId)?"":__t)+'"></li>';return __p},modalSlideshowItem:function(obj){var __t,__p="",__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,"")};with(obj||{})__p+='<div class="item"><div class="image_container"><img class="ss_img" data-lazy-src="/photos/'+(null==(__t=photo.id)?"":__t)+'/large.jpg" alt="'+(null==(__t=photo.caption||"")?"":_.escape(__t))+'" data-lat="'+(null==(__t=photo.lat)?"":_.escape(__t))+'" data-lng="'+(null==(__t=photo.lng)?"":_.escape(__t))+'" data-photo-id="'+(null==(__t=photo.id)?"":_.escape(__t))+'"></div><div class="below_image"><div class="controls_spacer"></div>',canEdit?(__p+='<div class="pull-right edit_actions">',belongsToPhotoset&&(__p+='<a href="javascript:;" class="set_highlight">Set as cover</a>'),__p+='<a href="javascript:;" class="rotate_ccw"><i class="icon-rotate-left"></i></a><a href="javascript:;" class="rotate_cw"><i class="icon-rotate-right"></i></a><a href="javascript:;" class="remove"><i class="icon-trash"></i></a></div>',__p+=photo.caption?'<div class="caption can_modify">'+(null==(__t=photo.caption||"")?"":_.escape(__t))+"</div>":'<div class="caption can_modify"><span class="nocaption">(click to add caption)</span></div>',__p+=""):__p+='<div class="caption">
22'+(null==(__t=photo.caption||"")?"":_.escape(__t))+"</div>",__p+="",(photo.captured_at||"trip"===photo.parent_type)&&(__p+="<small>",photo.captured_at&&(__p+=""+(null==(__t=photo.captured_at.strftime("%A, %B %e, %Y at %l:%M %p"))?"":__t)),__p+="","trip"===photo.parent_type&&(__p+=' (<a href="/trips/'+(null==(__t=photo.parent_id)?"":__t)+'">go to ride</a>)'),__p+="</small>"),__p+=""+(null==(__t=shareBar)?"":__t)+"</div></div>";return __p},shareBar:function(obj){var __t,__p="",__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,"")};with(obj||{}){__p+='<ul class="share_bar list-inline list-unstyled"><li><a class="tt remember_this" href="/remember/'+(null==(__t=assetType)?"":__t)+"/"+(null==(__t=assetId)?"":__t)+'" title="Pin this so you can quickly find it later"><i class="icon-pushpin icon-large"></i></a></li><li>';var fb_uri=uri+"?fb_share="+assetType+"&mode=manual";__p+='<a class="tt" href="http://facebook.com/sharer.php?u='+(null==(__t=encodeURIComponent(fb_uri))?"":__t)+'" title="Share this with your friends and family on Facebook" onclick="centeredpopup(this.href,\'\',600,600);return false;"><i class="icon-facebook-sign icon-large"></i></a></li><li><div class="dropup"><a href="#" data-toggle="dropdown" class="tt more-share-options dropdown-toggle">Share<span class="caret"></span></a><ul class="dropdown-menu"><li><a href="http://twitter.com/home?status='+(null==(__t=encodeURIComponent(tweet))?"":__t)+'" onclick="centeredpopup(this.href,\'\',600,600);return false;">Twitter</a></li><li><a href="http://plus.google.com/share?url='+(null==(__t=encodeURIComponent(fb_uri))?"":__t)+'" onclick="centeredpopup(this.href,\'\',600,600);return false;"> Google+</a></li><li><a class="share_bar_share_link" href="javascript:;" data-uri="'+(null==(__t=uri)?"":__t)+'">Link</a></li>',"photo"===assetType&&(__p+='<li><a target="_blank" href="/photos/'+(null==(__t=assetId)?"":__t)+'/full.jpg">View original</a></li>'),__p+="</ul></div></li></ul>"}return __p}}},,,function(t,e){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i={translations:{},load:function(t){this.translations=this.translations||{};for(var e in t)this.translations[e]=t[e]},t:function t(e,i){var t=this.translations[e];return void 0===i?t:"string"==typeof t?this.interpolate(t,i):"object"==("undefined"==typeof t?"undefined":n(t))&&i&&void 0!==i.count?0==i.count&&t.zero?this.interpolate(t.zero,i):1==i.count?this.interpolate(t.one,i):this.interpolate(t.other,i):e},interpolate:function(t,e){return t.replace(/%{([^%{}]*)}/g,function(t,n){var i=e[n];return"string"==typeof i||"number"==typeof i?i:t})},needsPlural:function(t){return t.count&&"string"!=typeof t.count&&t.count>1}};"undefined"!=typeof t&&t.exports&&(t.exports=i),window.translationsToLoad&&i.load(window.translationsToLoad)},,function(t,e){"use strict";t.exports={init:function(t){this.selector=t,this.$container=$(t);var e=this;this.$container.find(".comment_form").submit(function(){var t=e.$container.find(".new_comment").val();return""!=t&&$(this).ajaxSubmit({dataType:"json",beforeSubmit:function(){$.prettyLoader.show()},success:function(t){if(t.status>0){var n=$(t.new_comment).hide();e.$container.find(".comments").append(n),n.slideDown(),e.$container.find(".new_comment").val("").blur()}else $.jGrowl(t.message);$.prettyLoader.hide()},error:function(t,e,n){$.jGrowl(e+", "+n+". Contact us if this problem persists"),$.prettyLoader.hide()}}),!1}),this.$container.on("click","a.delete-comment",function(){var t=this;customConfirm("Are you sure you want to delete this comment?",function(){e.destroy($(t))})})},destroy:function(t){var e=t.data("comment-id"),n=this;$.prettyLoader.show(),$.ajax({type:"POST",url:"/comments/"+e+".json",data:{_method:"delete"},dataType:"json",success:function(){$.prettyLoader.hide(),n.$container.find(".comment[data-comment-id="+e+"]").slideUp(function(){$(this).remove()})},error:function(){$.prettyLoader.hide(),$.jGrowl("Comment deleted"),trace("Something went wrong")}})}}},function(t,e){"use strict";var n=function(){function t(t,e){var n=[],i=!0,r=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(i=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);i=!0);}catch(t){r=!0,o=t}finally{try{!i&&a.return&&a.return()}finally{if(r)throw o}}return n; 23}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);
23throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=t.exports={remember:function(t,e){this.trackEvent(t),$.ajax({type:"post",url:t+".json",dataType:"json",data:{},success:function(t){t?($.jGrowl(T.t("remembered_success")),e&&e.slideUp()):$.jGrowl(t.message),$.prettyLoader.hide()},error:function(){$.jGrowl(T.t("something_went_wrong"),{sticky:!0}),$.prettyLoader.hide()}})},trackEvent:function(t){if(window.amplitude){var e=window.location.pathname,i=(t.match(/(route|trip)\/(\d+)$/)||[]).slice(-2),r=n(i,2),o=r[0],s=r[1],a=null;o="trip"===o?"ride":"route",/find$/.test(e)?a="findPage":/clubs\/[^\/]+\/routes$/.test(e)&&(a="orgRouteLibrary"),window.amplitude.track("Click Pin",{asset_id:parseInt(s),asset_type:o,pin_source:a,user_pinned:!0})}}};$(function(){$("body").on("click",".remember_this",function(){var t=$(this);return i.remember(t.attr("href"),t.parent()),!1})})},function(t,e,n){"use strict";function i(){function t(t,e){t&&e?v[t]=e:h.extend(v,t)}function e(t,e){return v[t]=e}function n(){return"gi"==r.site?"gi/poi/negativ_med_ramme/":"poi_icons/"}function i(t,e){var n=d(t);return e&&(_.isFunction(e)&&(e=e.apply(n)),void 0!==e&&_.extend(d(t),e)),n}function d(t){var e,n=r;return _.each(t.split("."),function(t){e=void 0===e?t:e+"."+t,void 0===n[t]&&(n[t]=_.extend({_ns:e},T)),n=n[t]}),n}function f(t,e){e||(e={defaultLat:43.9949,defaultLng:-123.08841}),this.config=e,this.targetId=t,p.metric=e.metric=!0;var n=e.routeId;n?(p.createMode=!1,this.loadRoute(n,e.coursePointsFn)):e.plan&&(p.createMode=!0)}var y="rwgps",b=/(\.|\/)(gif|jpe?g|png)$/i,w=/(\.|\/)(gpx|tcx|kml|fit|kmz|zip|gz|tar)$/i,x="*.jpg;*.JPG;*.png;*.PNG;*.gif;*.GIF;*.tiff;*.TIFF",k="*.gpx;*.GPX;*.tcx;*.TCX;*.kml;*.KML;*.kmz;*.KMZ;*.fit;*.FIT;*.zip;*.ZIP;*.gz;*.GZ;*.tar;*.TAR",T={ns:function(){return this._ns}},C=Backbone.Model.extend({full:function(){if(this.fullDfd)return this.fullDfd.promise();var t=this.fullDfd=new h.Deferred;if(this.attributes.course_points){var e=new r.models.Route(this.attributes);return e.set("mappingRoute",new r.Route(this.attributes)),t.resolve(e),t.promise()}var n=m+"/routes/"+this.get("id")+".json";return this.get("privacy_code_string")&&(n+="?privacy_code="+this.get("privacy_code_string")),h.getJSON(n,function(e){if(e){var n=new r.models.Route(e);n.set("mappingRoute",new r.Route(e)),t.resolve(n)}else t.reject()}),t.promise()},gpxUrl:function(){return m+"/routes/"+this.get("id")+".gpx"},tcxUrl:function(){return m+"/routes/"+this.get("id")+".tcx"},kmlUrl:function(){return m+"/routes/"+this.get("id")+".kml"},csvUrl:function(){return m+"/routes/"+this.get("id")+".csv"},printCueSheetUrl:function(){return"https://ridewithgps.com/routes/"+this.get("id")+"/cue_sheet"},printMapUrl:function(){return"https://ridewithgps.com/routes/"+this.get("id")+"/full.gif"},embedSrc:function(){return'<iframe src="https://ridewithgps.com/routes/'+this.get("id")+'/embed" height="500px" width="100%" frameborder="0"></iframe>'},emailTo:function(t){var e=this,n=new h.Deferred;return h.getJSON(m+"/share.js?callback=?",{site:v.site,share:{email:t,model:"Route",id:e.get("id")}},function(t){t.success?n.resolve():n.reject()}),n.promise()},copy:function(){var t=this,e=new h.Deferred;return h.getJSON(m+"/routes/"+t.get("id")+"/copy.js?callback=?",function(t){t?e.resolve():e.reject()}),e.promise()},remember:function(){var t=this,e=new h.Deferred;return h.getJSON(m+"/remember/route/"+t.get("id")+".js?callback=?",function(t){t?e.resolve():e.reject()}),e.promise()}});C.search=function(t,e){h.getJSON(m+"/routes/search.js?callback=?",t,function(t){for(var n=[],i=0,r=t.length;i<r;i++)n.push(new C(t[i]));e(n)})},C.find=function(t){var e=new h.Deferred;return h.getJSON(m+"/routes/"+t+".js?attrs=true&callback=?",function(t){t?e.resolve(new r.models.Route(t)):e.reject()}),e.promise()},f.DEFAULT_CONFIG={routeId:null},f.prototype={saveRoute:function(t,e){var n={route_data:p.movie().routeJSON(),course_points:p.movie().coursePointsJSON()},i=h('<form action="'+m+'/routes.json" method="POST"></form>'),r=h('<input type="hidden" name="redirect_to">');i.append(r),r.val(e),_.each(["route_data","points_of_interest","course_points"],function(t){var e=h('<input type="hidden" name="'+t+'">');i.append(e),e.val(n[t])}),_.each(["name","description","pavement_type_id","visibility"],function(e){var n=h('<input type="hidden" name="route['+e+']">');i.append(n),n.val(t[e])}),h("body").append(i),i.submit()},loadRoute:function(t,e){this.routeId=t,h.getJSON(m+"/routes/"+t+".js?string=1&include_cps=1&callback=?",function(t){p.callWhenReady(function(){p.movie().loadRoute(t[0],JSON.stringify(t[1]))}
23),_.each(t[1],function(t){t.notes=t.n,t.distance=t.d}),e&&e(t[1])})},_drawingMode:"directions",drawingMode:function(t){return t?void("directions"!=t&&"polyline"!=t||(this._drawingMode=t,p.callWhenReady(function(){p.movie().setDrawingMode(t)}))):this._drawingMode},setColor:function(t){p.callWhenReady(function(){p.movie().setColor(t)})},gotoLocation:function(t){p.callWhenReady(function(){p.movie().gotoLocation(t)})},showCoursePointMarker:function(t){p.callWhenReady(function(){p.movie().showCoursePointMarker(t)})},hideCoursePointMarker:function(t){p.callWhenReady(function(){p.movie().hideCoursePointMarker(t)})},recenterMap:function(){p.callWhenReady(function(){p.movie().recenterMap()})},enableAddPoi:function(){p.callWhenReady(function(){p.movie().enableAddPoi()})},fixCoursePointDistances:function(){p.callWhenReady(function(){p.movie().fixCoursePointDistances()})},enableAddCoursePoint:function(){p.callWhenReady(function(){p.movie().enableAddCoursePoint()})},walkingMode:function(t){p.callWhenReady(function(){p.movie().walkingMode(t)})},setOption:function(t,e){p.callWhenReady(function(){p.movie().setOption(t,e)})}},f.metricsChange=function(t){t?(this.onMetricsChange||(this.onMetricsChange=[]),this.onMetricsChange.push(t)):this.onMetricsChange&&_.each(this.onMetricsChange,function(t){t(f.metrics,f.zoomedIn)})},f.coursePointsChange=function(t){t?(this.onCoursePointsChange||(this.onCoursePointsChange=[]),this.onCoursePointsChange.push(t)):this.onCoursePointsChange&&_.each(this.onCoursePointsChange,function(t){t(f.coursePoints)})},f.updateMetrics=function(t,e){this.metrics=t,this.zoomedIn=e,this.metricsChange()},f.updateCoursePoints=function(t,e){this.coursePoints||(this.coursePoints=[]),this.coursePoints=e?this.coursePoints.concat(t):t,this.coursePointsChange()},u.Common.updateMetrics=function(t,e){f.updateMetrics(t,e)},u.Common.populateCoursePoints=function(t,e){f.updateCoursePoints(t,e)};var $=Backbone.Model.extend({url:function(){return this.id?g+"/users/"+this.id+".js":g+"/users.js"},routes:function(){var t=new h.Deferred;return this._routes?void t.resolve(this._routes):(h.getJSON(m+"/users/"+this.id+"/routes.js?callback=?",function(e){e?(this._routes=_.map(e,function(t){return new r.Route(t)}),t.resolve(this._routes)):t.reject()}),t.promise())},favoriteRoutes:function(){var t=new h.Deferred;return this._favoriteRoutes?void t.resolve(this._routes):(h.getJSON(m+"/users/"+this.id+"/favorite_routes.js?callback=?",function(e){e?(this._favoriteRoutes=_.map(e,function(t){return new r.Route(t)}),t.resolve(this._favoriteRoutes)):t.reject()}),t.promise())}}),S=Backbone.sync;Backbone.sync=function(t,e,n,i){"create"==t&&e instanceof r.models.User?h.getJSON(g+"/users.js?callback=?",{_method:"POST",user:e.toJSON()},function(t){t.user?n(t.user):t.errors&&i(t.errors)}):S.apply(this,arguments)},$.login=function(t,e){var n=this,i=new h.Deferred;return h.getJSON(g+"/login.js?callback=?",{email:t,password:e},function(t){t?(delete n.currentDfd,n.current=new $(t),i.resolve(n.current)):i.reject()}),i.promise()},$.resetPassword=function(t){var e=new h.Deferred;return h.getJSON(m+"/forgot_password.js?callback=?",{site:v.site,email:t},function(t){t&&1==t.status?e.resolve():e.reject()}),e.promise()},$.usePasswordReset=function(t,e){var n=new h.Deferred;return h.getJSON(g+"/reset_password/"+t+".js?callback=?",{"user[password]":e,"user[password_confirmation]":e},function(t){t?n.resolve():n.reject()}),n.promise()},$.logout=function(){var t=this,e=new h.Deferred;return h.getJSON(m+"/logout.js?callback=?",function(){delete t.currentDfd,e.resolve()}),e.promise()},$.getCurrent=function(){if(this.currentDfd)return this.currentDfd;var t=this.currentDfd=new h.Deferred;return void 0!==r.ns("config").currentUser?r.config.currentUser?t.resolve(new $(r.config.currentUser)):t.reject():h.getJSON(m+"/users/current.js?callback=?",function(e){e?t.resolve(new $(e)):t.reject()}),t},_.extend(r,{site:y,imageExtensions:x,gpsExtensions:k,imageExtRegEx:b,gpsExtRegEx:w,set:t,get:e,ns:i,User:$,poiIconsPath:n,places:{}}),_.extend(r,o),_.extend(r,s),_.extend(r,a),_.extend(r,l),r.MetricsCalculator=c,r.ns("Events",Backbone.Events),r.ns("models",{Route:C,Map:f,User:$}),r.ns("config").datePickerOpts={buttonImage:"/images/led-icons/calendar_1.png",buttonImageOnly:!0,beforeShow:function(t){t.setAttribute("autocomplete","off"),setTimeout(function(){h("#ui-datepicker-div").css({"z-index":11e3})},10)},showOn:"both",dateFormat:"yy-mm-dd"}
23,window.activeRWNamespace&&(r.activeNs=r.ns(window.activeRWNamespace)),window.rwgpsNSData&&window.rwgpsNSData.forEach(function(t){r.ns(t[0],t[1])})}var r,o=n(107),s=n(108),a=n(109),l=n(110),c=n(29),u=window.Routes=window.Routes||{};u.Common={};var h,p,d={isComplete:!1,afterComplete:[i]},f=t.exports=r=function(t){d.isComplete?t():d.afterComplete.push(t)},m="",g="",v={};f.csrfParams=function(){var t={authenticity_token:encodeURIComponent(r.config.authenticityToken)};return t[r.config.sessionKeyName]=r.config.sessionKeyValue,t},h=jQuery,p=window.Map,d.isComplete=!0,_.each(d.afterComplete,function(t){t()})},function(t,e){"use strict";!function(){var e,n,i,r;e=Backbone.View.extend({prev:function(){this.carousel("prev")},next:function(){this.carousel("next")},imageLoader:function(){var t=this.$(".active.item"),e=t.add(t.next(".item")).add(t.prev(".item")).find("img.ss_img");e.each(function(){var t=$(this).data("lazy-src");t&&!$(this).attr("src")&&$(this).attr("src",t)})},activePhotoId:function(){return this.$(".item.active img.ss_img").data("photo-id")},highlightActiveOnMap:function(){if(Routes&&Routes.activeMap){var t=this.activePhotoId();Routes.activeMap.selectedImageMarker&&(Routes.activeMap.selectedImageMarker.setIcon("/images/image_marker.png?1"),Routes.activeMap.selectedImageMarker.selected=!1),Routes.activeMap.imageMarkers&&Routes.activeMap.imageMarkers[t]&&(Routes.activeMap.imageMarkers[t].setIcon("/images/image_marker_selected.png?1"),Routes.activeMap.selectedImageMarker=Routes.activeMap.imageMarkers[t],Routes.activeMap.selectedImageMarker.selected=!0)}},processPhotos:function(t){return _.map(t,function(t){return t.captured_at&&_.isString(t.captured_at)&&(t.captured_at=rwgps.DateExt.parse(t.captured_at,!0)),t})}}),n=e.extend({id:function(){return _.uniqueId("photosview_")},className:"photosview_mini",template:rwgps.templates.photos.miniSlideshow,indicatorTemplate:rwgps.templates.photos.miniSlideshowIndicator,itemTemplate:rwgps.templates.photos.miniSlideshowItem,uploaderTemplate:rwgps.templates.photos.uploader,initialize:function(){_.bindAll(this,"imageLoader","highlightActiveOnMap","showTooltipIfMouseover","showPhotoById"),this.canEdit=this.options.canEdit,this.carouselId=_.uniqueId("photosview_"),this.photosetId=this.options.photosetId,this.photos=this.processPhotos(this.options.photos),this.modalView=new i({photosView:this,modal:!this.options.inline,photosetId:this.photosetId,parentType:this.options.parentType,parentId:this.options.parentId}),this.modalView.render(),this.options.inline?$(this.options.container).html(this.modalView.$el):(this.modalView.$el.appendTo("body"),this.render(),$(this.options.container).html(this.$el)),this.canEdit&&!this.options.hideUploader&&this.setupUploader(),reloadTooltips(),this.options.coverId&&_.each(this.photos,function(t,e){t.id==this.options.coverId&&(this.options.inline?this.modalView.carousel(e):this.carousel(e))},this),n.registerPhotos(this.photos,this,this.options.noClobber),_.defer(function(){Backbone.History.started||Backbone.history.start()})},events:{"click .carousel-control.left":"prev","click .carousel-control.right":"next","click .popup_photo_modal":"showModal","mouseenter .carousel":"showTooltip","mouseleave .carousel":"hideTooltip"},showPhotoById:function(t){var e=this.options.inline?this.modalView:this,n=e.$("img.ss_img[data-photo-id="+t+"]").closest(".item"),i=n.parent().children(),r=i.index(n);r!==-1&&(e.carousel(r),this.options.inline||this.showModal())},delegateCarouselEvents:function(){this.$(".carousel").on("slid.bs.carousel",this.imageLoader).on("slid.bs.carousel",this.highlightActiveOnMap).on("slid.bs.carousel",this.showTooltipIfMouseover)},carousel:function(){this.$(".carousel").carousel.apply(this.$(".carousel"),arguments)},showTooltip:function(){this._mouseover=!0,this.$(".item.active a.popup_photo_modal").tooltip("show")},hideTooltip:function(){this._mouseover=!1,this.$(".item.active a.popup_photo_modal").tooltip("hide")},showTooltipIfMouseover:function(){this._mouseover&&(this.$("a.popup_photo_modal").tooltip("hide"),this.showTooltip())},showModal:function(){var t=this.$(".item").index(this.$(".item.active"));
23rwgps.gallery?rwgps.gallery({photos:this.photos,readonly:!this.options.canEdit,defaultActive:t,photosetId:this.photosetId,parentType:this.options.parentType,parentId:this.options.parentId,coverId:this.options.coverId}):this.modalView.show(t)},setupUploader:function(){function t(t){t.captured_at&&(t.captured_at=rwgps.DateExt.parse(t.captured_at)),r.photos.push(t),r.trigger("photo:added",t)}function e(){r.options.inline?(r.modalView.undelegateEvents(),r.modalView.$el.remove(),r.modalView.render(),r.modalView.delegateEvents(),i.html(r.modalView.$el),r.setupUploader()):(r.hideTooltip(),r.undelegateEvents(),r.$el.remove(),r.modalView.undelegateEvents(),r.modalView.$el.remove(),r.render(),r.delegateEvents(),i.html(r.$el),r.modalView.render(),r.modalView.delegateEvents(),r.modalView.$el.appendTo("body"),r.setupUploader())}var n=this.options.inline?this.modalView.$el:this.$el,i=n.parent(),r=this;n.append(this.uploaderTemplate({cta:T.t("add_photos")}));var o=i.find(".photo_uploader"),s=rwgps.csrfParams();this.options.parentType&&this.options.parentId&&(s.parent_type=this.options.parentType,s.parent_id=this.options.parentId),this.photosetId&&(s.photoset_id=this.photosetId);var a={dataType:"json",url:"/upload/photos",type:"post",paramName:"Filedata",sequentialUploads:!0,maxFileSize:15e6,formData:function(){return _.map(s,function(t,e){return{name:e,value:t}})},add:function(t,e){var n=[];_.each(e.files,function(t){rwgps.imageExtRegEx.test(t.name)?n.push(t):trace("File failed regex match: "+t.name)}),n.length>0?(e.files=n,r.photosetId||r.options.parentId||r.options.photosetDisabled?e.submit():(r.createPhotoset||(r.createPhotoset=$.post("/photosets").success(function(t){s.photoset_id=t.id,r.photosetId=t.id})),r.createPhotoset.success(function(){e.submit()}))):trace("No valid photos")},start:function(){n.find(".below_image").hide(),o.find(".fileinput-button").hide(),o.find(".progress").show(),window.$u=o,r.trigger("upload:start")},stop:function(){o.find(".progress").hide(),o.find(".fileinput-button").show(),e(),r.trigger("upload:complete")},progressall:function(t,e){var n=parseInt(e.loaded/e.total*100,10);o.find(".progress .progress-bar").css("width",n+"%")},done:function(e,n){t(n.result.photo)},fail:function(t,e){if(o.find(".progress").hide(),o.find(".fileinput-button").show(),e.jqXHR&&e.jqXHR.responseText){var n=$.parseJSON(e.jqXHR.responseText);trace("Something went wrong: "+n.error)}else trace(T.t("something_went_wrong"))}},l=o.find(".photos_upload");l.fileupload&&l.fileupload(a)},render:function(){if(this.photos.length>0){this.$el.html(this.template({carouselId:this.carouselId}));var t=this.$(".carousel-indicators"),e=this.$(".carousel-inner");if(_.each(this.photos,function(n,i){t.append(this.indicatorTemplate({carouselId:this.carouselId,slideTo:i,photoId:n.id})),e.append(this.itemTemplate({photo:n}))},this),t.find("li").first().addClass("active"),e.find(".item").first().addClass("active"),e.find("img.ss_img").each(function(){$(this).attr("src",$(this).data("lazy-src"))}),this.$("a.popup_photo_modal").tooltip({container:"body",trigger:"manual",animation:!1}),this.carousel({interval:0}),this.delegateCarouselEvents(),this.photos.length>1){this.$(".carousel-control").hide();var n=this.$(".item.active img.ss_img");if(n.get(0).height>0)this.$(".carousel-control").show();else{var i=this;n.on("load",function(){i.$(".carousel-control").show()})}}else this.$(".carousel-control").hide(),this.$(".carousel-indicators").hide()}}}),i=e.extend({id:function(){return _.uniqueId("photosview_")},className:function(){return this.options.modal?"modal photo_modal fade":"photo_inline"},template:rwgps.templates.photos.modalSlideshow,indicatorTemplate:rwgps.templates.photos.modalSlideshowIndicator,itemTemplate:rwgps.templates.photos.modalSlideshowItem,shareBarTemplate:rwgps.templates.photos.shareBar,initialize:function(){_.bindAll(this,"globalArrowNav","resizeHandler","imageLoader","highlightActiveOnMap","verticallyCenterImage","updateRoute","clearRoute","enableGlobalArrowNav","disableGlobalArrowNav","enableResizeHandler","disableResizeHandler","syncMiniSlideshowPosition","hideOnEscape"),this.throttledResizeHandler=_.throttle(this.resizeHandler),this.parentType=this.options.parentType,this.parentId=this.options.parentId,this.photosView=this.options.photosView,this.photos=this.photosView?this.photosView.photos:this.processPhotos(this.options.photos),this.photosetId=this.photosView?this.photosView.photosetId:this.options.photosetId,this.canEdit=this.photosView?this.photosView.canEdit:this.options.canEdit,this.hideSharing=!this.photosView||this.photosView.options.hideSharing,this.carouselId=_.uniqueId("photosview_")},events:{"click .carousel-control.left":"prev","click .carousel-control.right":"next","click .edit_actions .set_highlight":"setHighlight","click .edit_actions .rotate_ccw":"rotateCcw","click .edit_actions .rotate_cw":"rotateCw","click .edit_actions .remove":"removeOnConfirm","click .image_container":"next","click .share_bar_share_link":"closeModal","click .can_modify":"enableCaptionEditor","click .caption.editing .cancel":"cancelCaptionEdit","click .caption.editing .save":"saveCaptionEdit","keypress .caption.editing input":"saveCaptionEditOnEnter"},closeModal:function(){this.options.modal&&this.$el.modal("hide")},delegateModalEvents:function(){this.$el.on("shown.bs.modal",this.verticallyCenterImage).on("shown.bs.modal",this.imageLoader).on("shown.bs.modal",this.enableGlobalArrowNav).on("shown.bs.modal",this.cacheScrollTop).on("hide.bs.modal",this.disableGlobalArrowNav).on("show.bs.modal",this.enableResizeHandler).on("shown.bs.modal",this.resizeHandler).on("shown.bs.modal",this.updateRoute).on("hide.bs.modal",this.clearRoute).on("hide.bs.modal",this.disableResizeHandler).on("hide.bs.modal",this.syncMiniSlideshowPosition).on("hide.bs.modal",this.restoreScrollTop),$("body").on("keyup",this.hideOnEscape)},delegateCarouselEvents:function(){this.$(".carousel").on("slid.bs.carousel",this.imageLoader).on("slid.bs.carousel",this.highlightActiveOnMap).on("slid.bs.carousel",this.verticallyCenterImage).on("slid.bs.carousel",this.updateRoute)},hideOnEscape:function(t){27===t.keyCode&&this.closeModal()},clearRoute:function(){n.router&&n.router.navigate("",{replace:!0})},updateRoute:function(){n.router&&n.router.navigate("photos/"+this.activePhotoId(),{replace:!0})},cacheScrollTop:function(){this._pageScrollTop=$(window).scrollTop()},restoreScrollTop:function(){$(window).scrollTop(this._pageScrollTop)},cancelCaptionEdit:function(t){var e=this.$(".item.active .caption.can_modify");e.html(this.prevCaptionHtml),e.removeClass("editing"),t.stopPropagation()},saveCaptionEditOnEnter:function(t){if(13==t.keyCode)return this.saveC
23aptionEdit(),!1},saveCaptionEdit:function(t){var e=this.$(".item.active .caption.can_modify"),n=e.find("input").val();e.html("").text(n);var i=this.activePhotoId(),r={photos:{}};r.photos[i]={caption:n},Application.preventSpinner(),$.post("/photos/update_set",r),e.removeClass("editing"),t&&t.stopPropagation()},enableCaptionEditor:function(){var t=this.$(".item.active .caption.can_modify");if(!t.hasClass("editing")){this.prevCaptionHtml=t.html();var e=t.find(".nocaption").size()?"":t.text();t.addClass("editing"),t.html('<form class="form-inline"><input type="text" maxlength="255"><a href="javascript:;" class="btn btn-default save">Save</a><a href="javascript:;" class="btn btn-default cancel">Cancel</a></form>'),t.find("input").val(e).focus().select(),t.find("form").on("submit",function(){return!1})}},enableResizeHandler:function(){$(window).on("resize",this.throttledResizeHandler).resize()},disableResizeHandler:function(){$(window).off("resize",this.throttledResizeHandler)},resizeHandler:function(){var t,e,n;if(0==this.photos.length)e=this.$el.parent().width(),n=0,t=100;else if(this.options.modal){var i=$(window).width(),r=$(window).height();e=.8*i,t=.95*r,n=t-150}else e=this.$el.parent().width(),n=.75*e,t=n+100;this.$el.find(".modal-dialog").width(e),this.$el.find(".modal-content").height(t),this.$(".carousel-control").height(n),this.$(".image_container").height(n),this.verticallyCenterImage()},carousel:function(){this.$(".carousel").carousel.apply(this.$(".carousel"),arguments)},globalArrowNav:function(t){$(t.target).is("input")||(37===t.keyCode?this.prev():39===t.keyCode&&this.next())},enableGlobalArrowNav:function(){$("body").on("keydown",this.globalArrowNav)},disableGlobalArrowNav:function(){$("body").off("keydown",this.globalArrowNav)},show:function(t){this.$el.modal(),this.carousel({interval:0}),this.carousel(t)},showById:function(t){var e=this.$("img.ss_img[data-photo-id="+t+"]").closest(".item"),n=e.parent().children(),i=n.index(e);i!==-1&&this.show(i)},syncMiniSlideshowPosition:function(){if(this.photosView){var t=this.$(".item.active"),e=t.parent().children(),n=e.index(t);0==this.photosView.$(".item.active").size()&&this.photosView.next(),this.photosView.carousel(n)}},setHighlight:function(){var t=this,e=this.activePhotoId();$.post("/photosets/"+this.photosetId+"/photo/"+e+"/set_highlight",{parent_type:this.parentType,parent_id:this.parentId},function(){t.$(".item.active .set_highlight").slideUp()})},rotateCcw:function(){this.rotate(-90)},rotateCw:function(){this.rotate(90)},rotate:function(t){var e=this,n=this.activePhotoId();$.post("/photos/"+n+"/rotate.json",{degrees:t},function(){$("img.ss_img[data-photo-id="+n+"]").each(function(){$(this).attr("src")&&$(this).attr("src",$(this).attr("src")+"?1")}),e.verticallyCenterImage()})},removeOnConfirm:function(){confirm("Are you sure you want to delete this photo?")&&this.remove()},remove:function(){var t=this.activePhotoId();$.post("/photos/"+t+".json",{_method:"delete"}),this.next(),$("img.ss_img[data-photo-id="+t+"]").closest(".item").remove(),$(".carousel-indicators li[data-photo-id="+t+"]").each(function(){$(this).nextAll().each(function(){$(this).attr("data-slide-to",$(this).attr("data-slide-to")-1)})}).remove();var e=this;if(this.options.modal?$(".mini_slideshow").each(function(){$(this).find(".item").size()||($(this).html(""),e.$el.modal("hide"))}):$(".photo_inline>.inner").each(function(){$(this).find(".item").size()||$(this).html("")}),Routes&&Routes.activeMap){var n=Routes.activeMap.imageMarkers;n&&n[t]&&(n[t].setMap(null),Routes.activeMap.selectedImageMarker===n[t]&&(Routes.activeMap.selectedImageMarker.setMap(null),delete Routes.activeMap.selectedImageMarker),delete n[t])}for(var i,r=0;r<this.photos.length;r++)if(this.photos[r].id==t){i=this.photos[r],this.photos.splice(r,1);break}this.photosView&&this.photosView.trigger("photo:deleted",i)},verticallyCenterImage:function(){var t=this.$(".item.active img.ss_img");if(t.size())if(t.get(0).height>0)this._verticallyCenterImage(t);else{t.off("load");var e=this;t.on("load",function(){t.data("loaded",!0),e._verticallyCenterImage(t)})}},_verticallyCenterImage:function(t){var e=t.get(0),n=e.width,i=e.he
23ight,r=this.$(".item.active .image_container"),o=r.width(),s=r.height();if(0!==o){if(t.attr("data-photo-id")){var a=parseInt(t.data("photo-id"),10),l=_.findWhere(this.photos,{id:a});l&&_.has(l,"height")&&_.has(l,"width")&&(n=l.width,i=l.height)}if(n<o&&i<s)t.css({marginTop:(s-i)/2+"px"});else if(n/i>o/s){var c=i*o/n;t.css({marginTop:(s-c)/2+"px"})}else t.css({marginTop:0});t.css({visibility:"visible"})}},render:function(){this.$el.html(this.template({carouselId:this.carouselId,modal:this.options.modal}));var t=this.$(".carousel-indicators"),e=this.$(".carousel-inner");_.each(this.photos,function(n,i){t.append(this.indicatorTemplate({carouselId:this.carouselId,slideTo:i,photoId:n.id}));var r="http://"+window.location.host+window.location.pathname+"#photos/"+n.id,o={photo:n,canEdit:this.canEdit,belongsToPhotoset:this.photosetId,shareBar:""};this.hideSharing||(o.shareBar=this.shareBarTemplate({assetType:"photo",assetId:n.id,uri:r,tweet:"Check out this cool photo: "+r})),e.append(this.itemTemplate(o))},this),t.find("li").first().addClass("active"),e.find(".item").first().addClass("active"),this.carousel({interval:0}),this.delegateCarouselEvents(),1===this.photos.length&&(this.$(".carousel-control").hide(),this.$(".carousel-indicators").hide()),this.options.modal?this.delegateModalEvents():(e.find("img.ss_img").slice(0,2).each(function(){$(this).attr("src",$(this).data("lazy-src")).css({visibility:"visible"})}),this.enableResizeHandler(),this.photos.length||this.$(".inner").html(""))}}),r=Backbone.Router.extend({routes:{"photos/:id":"photo"}}),n.viewsByPhotoIds={},n.router=new r,n.router.on("route:photo",function(t){n.viewsByPhotoIds[t]?n.viewsByPhotoIds[t].showPhotoById(t):n.attemptedPhotoId=t}),n.registerPhotos=function(t,e){for(var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=0;r<t.length;r++)i&&n.viewsByPhotoIds[t[r].id]||(n.viewsByPhotoIds[t[r].id]=e),n.attemptedPhotoId&&n.attemptedPhotoId==t[r].id&&(n.attemptedPhotoId=void 0,e.showPhotoById(t[r].id))},n.removeById=function(t){var e=n.viewsByPhotoIds[t];if(!e)return!1;var i=e.photos.find(function(e){return e.id===t});return!!i&&(e.activePhotoId()===t&&e.next(),e.trigger("photo:deleted",i),e.photos=e.photos.filter(function(e){return e.id!==t}),$("img.ss_img[data-photo-id="+t+"]").closest(".item").remove(),$(".mini_slideshow").each(function(){$(this).find(".item").size()||$(this).html("")}),!0)},n.PhotosModalView=i,t.exports=n}()},function(t,e,n){(function(t,e){"use strict";!function(t,n){function i(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n<e.length;n++)e[n]=arguments[n+1];var i={callback:t,args:e};return m[f]=i,d(f),f++}function r(t){delete m[t]}function o(t){var e=t.callback,i=t.args;switch(i.length){case 0:e();break;case 1:e(i[0]);break;case 2:e(i[0],i[1]);break;case 3:e(i[0],i[1],i[2]);break;default:e.apply(n,i)}}function s(t){if(g)setTimeout(s,0,t);else{var e=m[t];if(e){g=!0;try{o(e)}finally{r(t),g=!1}}}}function a(){d=function(t){e.nextTick(function(){s(t)})}}function l(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}function c(){var e="setImmediate$"+Math.random()+"$",n=function(n){n.source===t&&"string"==typeof n.data&&0===n.data.indexOf(e)&&s(+n.data.slice(e.length))};t.addEventListener?t.addEventListener("message",n,!1):t.attachEvent("onmessage",n),d=function(n){t.postMessage(e+n,"*")}}function u(){var t=new MessageChannel;t.port1.onmessage=function(t){var e=t.data;s(e)},d=function(e){t.port2.postMessage(e)}}function h(){var t=v.documentElement;d=function(e){var n=v.createElement("script");n.onreadystatechange=function(){s(e),n.onreadystatechange=null,t.removeChild(n),n=null},t.appendChild(n)}}function p(){d=function(t){setTimeout(s,0,t)}}if(!t.setImmediate){var d,f=1,m={},g=!1,v=t.document,y=Object.getPrototypeOf&&Object.getPrototypeOf(t);y=y&&y.setTimeout?y:t,"[object process]"==={}.toString.call(t.process)?a():l()?c():t.MessageChannel?u():v&&"onreadystatechange"in v.createElement("script")?h():p(),y.setImmediate=i,y.clearImmediate=r}}("undefined"==typeof self?"undefined"==typeof t?void 0:t:self)}).call(e,function(){return this}(),n(26))},function(t,e,n){(function(t){"use strict";function i(t,e){this._id=t,this._clearFn=e}var r="undefined"!=typeof t&&t||"undefined"!=typeof self&&self||window,o=Function.prototype.apply;e.setTimeout=function(){return new i(o.call(setTimeout,r,arguments),clearTimeout)},e.setInterval=function(){return new i(o.call(setInterval,r,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(r,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},n(46),e.setImmediate="undefined"!=typeof self&&self.setImmediate||"undefined"!=typeof t&&t.setImmediate||void 0,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||"undefined"!=typeof t&&t.clearImmediate||void 0}).call(e,function(){return this}())},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e){"use strict";jQuery.cookie=function(t,e,n){if("undefined"==typeof e){var i=null;if(document.cookie&&""!=document.cookie)for(var r=document.cookie.split(";"),o=0;o<r.length;o++){var s=jQuery.trim(r[o]);if(s.substring(0,t.length+1)==t+"="){i=decodeURIComponent(s.substring(t.length+1));break}}return i}n=n||{},null===e&&(e="",n.expires=-1);var a="";if(n.expires&&("number"==typeof n.expires||n.expires.toUTCString)){var l;"number"==typeof n.expires?(l=new Date,l.setTime(l.getTime()+24*n.expires*60*60*1e3)):l=n.expires,a="; expires="+l.toUTCString()}var c=n.path?"; path="+n.path:"",u=n.domain?"; domain="+n.domain:"",h=n.secure?"; secure":"";document.cookie=[t,"=",encodeURIComponent(e),a,c,u,h].join("")}},function(t,e){"use strict";!function(t){t.fn.hoverIntent=function(e,n){var i={sensitivity:7,interval:100,timeout:0};i=t.extend(i,n?{over:e,out:n}:e);var r,o,s,a,l=function(t){r=t.pageX,o=t.pageY},c=function e(n,c){return c.hoverIntent_t=clearTimeout(c.hoverIntent_t),Math.abs(s-r)+Math.abs(a-o)<i.sensitivity?(t(c).unbind("mousemove",l),c.hoverIntent_s=1,i.over.apply(c,[n])):(s=r,a=o,c.hoverIntent_t=setTimeout(function(){e(n,c)},i.interval),void 0)},u=function(t,e){return e.hoverIntent_t=clearTimeout(e.hoverIntent_t),e.hoverIntent_s=0,i.out.apply(e,[t])}
23,h=function(e){for(var n=("mouseover"==e.type?e.fromElement:e.toElement)||e.relatedTarget;n&&n!=this;)try{n=n.parentNode}catch(t){n=this}if(n==this)return!1;var r=jQuery.extend({},e),o=this;o.hoverIntent_t&&(o.hoverIntent_t=clearTimeout(o.hoverIntent_t)),"mouseover"==e.type?(s=r.pageX,a=r.pageY,t(o).bind("mousemove",l),1!=o.hoverIntent_s&&(o.hoverIntent_t=setTimeout(function(){c(r,o)},i.interval))):(t(o).unbind("mousemove",l),1==o.hoverIntent_s&&(o.hoverIntent_t=setTimeout(function(){u(r,o)},i.timeout)))};return this.mouseover(h).mouseout(h)}}(jQuery)},,function(t,e){"use strict";!function(t){t.fn.pointOut=function(e,n,i,r){var o=this.offset().left<t(document).width()/2;n||(n="");var s=t('<div class="pointer" style="'+(o?"text-align:left":"text-align:right")+'"><h2>'+(o?"← "+e:e+" →")+"</h2><p>"+n+"</p></div>");t("body").prepend(s),s.hide();var a,l,c,u,h=this.offset();return i instanceof Array?(u=i[0],c=i[1]):null!=i?(u=i,c=0):(u=0,c=0),a=h.top+u,l=h.left+c,a>t(window).height()-70?(a=t(window).height()-70,t(this).closest(".overflowing").scrollTo(a,200)):a<32&&(a=42,t(this).closest(".overflowing").scrollTo(0,200)),o?(s.css({ 24top:0,left:l+this.outerWidth()+208}),s.animate({top:a-50,left:l+this.outerWidth()+208,opacity:"show"},500),s.animate({top:a-10,left:l+this.outerWidth()+3},400)):(s.css({top:0,left:l-s.outerWidth()-208}),s.animate({top:a-50,left:l-s.outerWidth()-208,opacity:"show"},500),s.animate({top:a-10,left:l-s.outerWidth()-3},400)),setTimeout(function(){s.fadeOut(function(){t(this).remove()})},3e3),r&&setTimeout(r,1500),!1}}(jQuery)},function(t,e){"use strict";!function(t){t.prettyLoader={version:"1.0.1"},t.prettyLoader=function(e){function n(){r=i(),t(document).triggerHandler("mousemove")}function i(){return self.pageYOffset?{scrollTop:self.pageYOffset,scrollLeft:self.pageXOffset}:document.documentElement&&document.documentElement.scrollTop?{scrollTop:document.documentElement.scrollTop,scrollLeft:document.documentElement.scrollLeft}:document.body?{scrollTop:document.body.scrollTop,scrollLeft:document.body.scrollLeft}:void 0}e=jQuery.extend({animation_speed:"fast",bind_to_ajax:!0,delay:!1,loader:"/images/prettyLoader/ajax-loader.gif?2000000000",offset_top:13,offset_left:10},e);var r=i(),o=new Image;o.onerror=function(){},o.src=e.loader,e.bind_to_ajax&&jQuery(document).ajaxStart(function(){t.prettyLoader.show(5e3)}).ajaxStop(function(){t.prettyLoader.hide()});var s=0,a=0;return t.prettyLoader.positionLoader=function(n){n=n?n:window.event,n.clientX&&(s=n.clientX),n.clientY&&(a=n.clientY);var i=s+e.offset_left+r.scrollLeft,o=a+e.offset_top+r.scrollTop;t(".prettyLoader").css({top:o,left:i})},t.prettyLoader.show=function(o){t(".prettyLoader").length>0||(r=i(),t("<div></div>").addClass("prettyLoader").addClass("prettyLoader_"+e.theme).appendTo("body").hide(),t("<img />").attr("src",e.loader).appendTo(".prettyLoader"),t(".prettyLoader").fadeIn(e.animation_speed),t(".prettyLoader").css({top:-200,left:-200}),t(document).bind("click",t.prettyLoader.positionLoader),t(document).bind("mousemove",t.prettyLoader.positionLoader),t(window).scroll(n),o=o?o:e.delay,o&&setTimeout(function(){t.prettyLoader.hide()},o))},t.prettyLoader.hide=function(){t(document).unbind("click",t.prettyLoader.positionLoader),t(document).unbind("mousemove",t.prettyLoader.positionLoader),t(window).unbind("scroll",n),t(".prettyLoader").fadeOut(e.animation_speed,function(){t(this).remove()})},this}}(jQuery)},function(t,e){"use strict";!function(){var e={};e.LowPass=function(t,e,n){this.x=t,this.y=e;var i=(t[t.length-1]-t[0])/t.length;this.smoothing=n*i},e.LowPass.prototype={filter:function(){for(var t,e,n,i,r,o=0,s=this.y.length;o<s;o++)if(_.isNumber(this.x[o])&&_.isNumber(this.y[o])&&(_.isNumber(t)||(t=this.y[o]),n=e,r=i,e=this.x[o],i=this.y[o],_.isNumber(n)&&_.isNumber(r))){var a=e-n,l=this.smoothing/a;l<1&&(l=1),t+=(i-t)/l,this.y[o]=t}return this.y}},e.MovingAverage=function(t,e){this.x=t,this.y=e,this.winWidth=150,this.kernelWidth=7},e.MovingAverage.prototype={filter:function(){for(var t=(this.kernelWidth-1)/2,e=0,n=0,i=0,r=new Array(this.x.length),o=0;o<this.x.length;o++){for(e=o-t,n=o+t;e<0;)e+=1;for(;n>=this.y.length;)n-=1;if(this.winWidth>0)for(i=this.x[n]-this.x[e];i>this.winWidth;)e+1<=o&&n-o<=o-e&&(e+=1),n-1>=o&&n-1>=o-e&&(n-=1),i=this.x[n]-this.x[e];for(var s=0,a=e;a<=n;a+=1)s+=this.y[a];r[o]=s/(n-e+1)}return r}},e.DJFilter=function(t,e){this.points=t,this.tau=e||30},e.DJFilter.prototype={filter:function(){for(var t,e,n,i=[-1,1],r=0;r<i.length;r++)for(var o=i[r],s=0;s<this.points.length;s++){var a=1==o?s:this.points.length-1-s,l=this.points[a].x,c=this.points[a].y;if(null==n||null==e||null==t)n=c;else{var u=Math.abs(l-e)/this.tau,h=Math.exp(-u),p=c-t;u>0&&(n=n*h+c*(1-h)+p/u*((u+1)*h-1))}t=c,e=l,o==-1?this.points[a].ySmooth=n:this.points[a].ySmooth=(this.points[a].ySmooth+n)/2}return _.map(this.points,function(t){return t.ySmooth})}},e.Filter=function(){},e.Filter.prototype={filter:function(){var t,e,n=0,i=0,r=0,o=0,s=0,a=0,l=new Array(this.x.length),c=[];n=(this.kernel.length-1)/2;for(var u=0;u<this.x.length;u++){var h=0;for(i=u-n,r=u+n,o=0,s=this.kernel.length-1;i<0;)i+=1,o+=1;for(;r>=this.x.length;)r-=1,s-=1;if(this.winWidth>0)for(a=this.x[r]-this.x[i];a>this.winWidth;)i+1<=u&&r-u<=u-i&&(i+=1,o+=1),r-1>=u&&r-1>=u-i&&(r-=1,s-=1),a=this.x[r]-this.x[i];c[s+1-o]?t=c[s+1-o]:(t=this.normalizeKernel(this.kernel.slice(o,s+1)),c[s+1-o]=t),e=new Array(r-i);for(var p=0,d=i;d<=r;d+=1)e[p]=this.y[d],p+=1;for(d=0;d<e.length;
24d++)h+=e[d]*t[d];l[u]=Math.round(1e3*h)/1e3}return l},createSincKernel:function(t,e){if(1==t)return[1];for(var n=new Array(t),i=0,r=0;r<=t;r++)n[r]=.54-.46*Math.cos(2*Math.PI*r/t),i=r-t/2,0==i?n[r]=2*n[r]*Math.PI*e:n[r]=n[r]*Math.sin(2*Math.PI*e*i)/i;return n},createGaussianKernel:function(t,e){if(1==t)return[1];for(var n=new Array(t),i=0;i<=t;i++)n[i]=1/(Math.sqrt(2*Math.PI)*e)*Math.exp(-.5*Math.pow(i/e,2));return n},normalizeKernel:function(t){var e=0,n=0,i=new Array(t.length);for(e=0;e<t.length;e++)n+=t[e];for(e=0;e<t.length;e++)i[e]=t[e]/n;return i}},e.GaussianFilter=function(t,e,n,i,r){var o=o||10;i=i||8;var s=o>t.length?t.length%2!=0?t.length+1:t.length:o;this.x=t,this.y=e,this.winWidth=r||100,this.kernel=this.createGaussianKernel(s,i)},e.GaussianFilter.prototype=new e.Filter,e.SincFilter=function(t,e,n,i,r){n=n||10,i=i||.04;var o=n>t.length?t.length%2!=0?t.length+1:t.length:n;this.x=t,this.y=e,this.winWidth=r||100,this.kernel=this.createSincKernel(o,i)},e.SincFilter.prototype=new e.Filter,e.SavitskyGolayFilter=function(t,e){this.x=t,this.y=e,this.winWidth=0,this.kernel=[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]},e.SavitskyGolayFilter.prototype=new e.Filter,t.exports=e}()},,,,,function(t,e){"use strict";!function(t){t.api=function(t,e,n,i){/^\//.test(t)&&(t=t.slice(1)),/\.json/.test(t)||(t+=".json"),/^get|post|put|delete$/i.test(e)||(i=n,n=e,e="get"),"function"==typeof n&&(i=n,n={});var r={url:"/"+t,data:n,type:e};r.complete=function(t){if(200!==t.status)throw{name:"BadResponseError"};i(JSON.parse(t.responseText))},jQuery.ajax(r)},t.loadScript=function(t,e){var n=document.createElement("script");n.async=!0,n.src=t;var i=document.getElementsByTagName("script")[0];i.parentNode.insertBefore(n,i),n.onload=n.onreadystatechange=function(){var t=n.readyState;t&&!/complete|loaded/.test(n.readyState)||(e(),n.onload=null,n.onreadystatechange=null)}},t.loadStylesheet=function(t,e){function n(){try{for(var t=document.styleSheets,e=0,i=t.length;e<i;e++)if(t[e].ownerNode.id==a&&t[e].cssRules.length)return s();throw new Error}catch(t){setTimeout(n,20)}}var i,r,o=document.createElement("link"),s=function(){r||(r=1,o.removeAttribute("id"),setTimeout(e,0))},a="rwgps"+ +new Date;e=e||function(){},o.href=t,o.rel="stylesheet",o.type="text/css",o.id=a,i=document.getElementsByTagName("script")[0],i.parentNode.insertBefore(o,i),o.onload=s,n()},t.widget=function(){this.initialize.apply(this,arguments),this._afterLoaded=[]},t.widget.prototype={initialize:function(){},deps:[],renderSync:function(){throw"renderSync not implemented"},loaded:function(t){this._loaded?t():this._afterLoaded.push(t),this.load()},load:function(){if(!this._loading){this._loading=!0;var e=this;async.forEach(this.deps,function(e,n){/\.js$/.test(e)?t.loadScript(e,n):/\.css$/.test(e)?t.loadStylesheet(e,n):n("Unrecognized file type "+e)},function(){e.loadComplete()})}},loadComplete:function(){for(;this._afterLoaded.length;)this._afterLoaded.pop()();this._loaded=!0},render:function(){var t=this;this.loaded(function(){t.renderSync.apply(t,arguments)})}},t.widget.extend=function(t){var e=this,n=function(){return e.apply(this,arguments)},i=function(){this.constructor=n};return i.prototype=e.prototype,n.prototype=new i,_.extend(n.prototype,t),n},t.widget.RouteSelector=t.widget.extend({initialize:function(t){this.target=t,this.sortField="createdAt",this.sortDir=-1},deps:["/javascripts/strftime.min.js","/javascripts/select2.min.js","/stylesheets/select2.min.css"],formatOption:function(e){var n=$(e.element).data();return n.distance&&n.createdAt?e.text+"<div style='float:right;font-style:italic;'>"+t.LabelMaker.longLabel(n.distance,!0)+" - "+t.DateExt.parse(n.createdAt).strftime("%Y-%m-%d")+"</div><div style='clear:right'></div>":e.text},renderSync:function(){var e=this.target,n=this;e.select2({matcher:function(t,e){return e.toLowerCase().score(t.toLowerCase())},sortResults:function(e,i,r){if(""!=r.term)return i.parent().find(".route-selector-sorter").hide(),_.sortBy(e,function(t){return-t.text.toLowerCase().score(r.term.toLowerCase())});i.parent().find(".route-selector-sorter").show();var o=n.sortField,s=_.sortBy(e,function(e){return"createdAt"===o?n.sortDir*t.DateExt.parse($(e.element).data(o)).getTime():"name"===o?e.text:n.sortDir*$(e.element).data(n.sortField)});return"name"===o&&n.sortDir===-1&&s.reverse(),s},width:"400px",placeholder:e.attr("data-rwgps-widget-placeholder"),allowClear:!0,formatResult:this.formatOption}),e.select2("container").data("widget",n),e.on("open",function(){var t=this;
24$(".select2-with-searchbox").each(function(){var e=$(this);if(0===e.find(".route-selector-sorter").size()){var n=$('<div class="route-selector-sorter" style="margin-top:4px;float:right;">'+T.t("sort_by")+': <a href="javascript:;" class="route-selector-sort-by" data-sort-by="name">'+T.t("name")+'</a>, <a href="javascript:;" class="route-selector-sort-by" data-sort-by="distance">'+T.t("distance")+'</a>, <a href="javascript:;" class="route-selector-sort-by" data-sort-by="createdAt" style="font-weight:bold">'+T.t("date")+"</a></div>");e.find(".select2-search").append(n),$(t).select2("positionDropdown"),n.on("click",".route-selector-sort-by",function(){var t=$(".select2-container-active").data("widget");$(this).siblings(".route-selector-sort-by").css({fontWeight:"normal"}),$(this).css({fontWeight:"bold"});var e=$(this).data("sort-dir");t.sortField=$(this).data("sort-by"),t.sortDir=1==e?-1:1,$(this).data("sort-dir",t.sortDir),$(".select2-container-active").select2("updateResults")})}})})}}),t.widget.findAndRender=function(e){$(function(){var n=e?e.find(".rwgps-widget"):$(".rwgps-widget");
24n.each(function(){var e=$(this),n=e.attr("data-rwgps-widget-type");switch(e.removeClass("rwgps-widget"),n){case"route-selector":var i=new t.widget.RouteSelector(e);i.render()}})})},t.widget.findAndRender()}(rwgps)},,,,function(t,e){"use strict";rwgps.ns("pages.home",function(){var t=this,e=void 0,n=void 0,i=void 0,r=void 0,o=void 0,s=void 0,a=void 0,l=1;t.init=function(){n=$(".steps").get(0),e=$(".steps .details").get(0),r=$(".steps .photos img").toArray(),o=$(".steps .number").toArray(),s=$(".steps .number img").toArray(),a=$(".steps .detail").toArray();var t=void 0;window.addEventListener("scroll",function(){t&&window.cancelAnimationFrame(t),t=window.requestAnimationFrame(i)}),i()};var c=function(t){switch($(a[l-1]).removeClass("active"),$(o[l-1]).removeClass("active"),l=t,$(a[l-1]).addClass("active"),$(o[l-1]).addClass("active"),l){case 1:$(s[0]).removeClass("active"),$(s[1]).removeClass("active");break;case 2:$(s[0]).addClass("active"),$(s[1]).removeClass("active");break;case 3:$(s[0]).addClass("active"),$(s[1]).addClass("active")}};i=function(){window.pageYOffset>=n.offsetTop?window.pageYOffset>=r[2].offsetTop?(e.style.position="absolute",e.style.top=r[2].offsetTop+"px"):(e.style.position="fixed",e.style.top=0):(e.style.position="relative",e.style.top=0);var t=400;window.pageYOffset>r[2].offsetTop-t?3!==l&&c(3):window.pageYOffset>r[1].offsetTop-t?2!==l&&c(2):1!==l&&c(1)}}),rwgps.ns("pages.marketing",function(){var t=this,e=void 0,n=window.innerHeight-50,i=function(t){return window.pageYOffset+n>t.offsetTop};t.initFeatureFade=function(){if(!(window.innerWidth<1053)){var t=void 0;window.addEventListener("scroll",function(){t&&window.cancelAnimationFrame(t),t=window.requestAnimationFrame(e)}),$(".feature-breakdown .detail, .feature-breakdown .image").each(function(){i(this)||$(this).addClass("below-fold")})}},e=function(){$(".below-fold").each(function(){i(this)&&$(this).removeClass("below-fold")})}})},,function(t,e){"use strict";String.prototype.score=function(t,e){if(e=e||0,0==t.length)return.9;if(t.length>this.length)return 0;for(var n=t.length;n>0;n--){var i=t.substring(0,n),r=this.indexOf(i);if(!(r<0||r+t.length>this.length+e)){var o=this.substring(r+i.length),s=null;s=n>=t.length?"":t.substring(n);var a=o.score(s,e+r);if(a>0){var l=this.length-o.length;if(0!=r){var c=0,u=this.charCodeAt(r-1);if(32==u||9==u)for(c=r-2;c>=0;c--)u=this.charCodeAt(c),l-=32==u||9==u?1:.15;else l-=r}return l+=a*o.length,l/=this.length}}}return 0}},,,,,,function(t,e,n){"use strict";!function(){var e,i,r,o=n(29);e=function(t,e){return this._points=t,this.count=t.length,this._metrics=e,this};var s=1e3,a=100;e.serializePointsAround=function(t,e){return e?Math.round(t.estimatedPoint[e]*a)/a:[t.lowI,Math.round(t.pct*s)/s]},_.extend(e.prototype,Backbone.Events),e.prototype.points=function(t){if(void 0!==t){if(_.isNumber(t))return this._points[t];var e=t;e[0]&&e[0].time&&!e[e.length-1].time&&e.pop(),this._points=e,this.count=e.length,delete this._metricsCalculator,this.trigger("points:change")}return this._points},e.prototype.seek=function(t,e,n,i){i||(i=1);for(var r=i>0?this.count-1:0,o=t,s=this.points(),a=s[t][e];o!=r;){if(Math.abs(s[o][e]-a)>=n)return o;o+=i}return o},e.prototype.pointsAroundX=function(t,e,n,i){n||(n=this.points());for(var r,o,s=0,a=n.length-1;s!=a;)if(r=s+Math.floor((a-s)/2),o=n[r][e],t<o)a=r;else{if(!(t>o))break;if(t-o<n[r+1][e]-t)break;s=++r}o=n[r][e],t<=o?(s=r-1,a=r):(s=r,a=r+1),0==r?(s=r,a=r+1):r==n.length-1&&(s=r-1,a=r);var l=(t-n[s][e])/(n[a][e]-n[s][e]);1==n.length&&(r=0),i&&(r+=i,s+=i,a+=i);var c=this.interpolatePoint(s,l);return{x:t,closestI:r,lowI:s,highI:a,pct:l,estimatedPoint:c}},e.prototype.metricsKeys=function(){return this._metricsKeys||(this._metricsKeys=this.metricsCalculator().enabledMetrics()),this._metricsKeys},e.prototype.metricsCalculator=function(){return this._metricsCalculator||(delete this._metricsKeys,this._metricsCalculator=new o(this,!1,this._metrics),this._metricsCalculator.calculate(!0)),this._metricsCalculator},e.prototype.metrics=function(){return this.metricsCalculator().metrics()},e.prototype.partitionByDistanceFraction=function(t){this.metricsCalculator().calculate();var e,n=this.metricsCalculator().metrics().distance*t,i=n,o=this.points(),s=[];if(t<1){for(var a=0,l=o.length;a<l;a++)if(o[a].distance>=i){e=o[a-1];var c=(i-e.distance)/(o[a].distance-e.distance);1==c&&(c=0,++a),s.push([a-1,c]),i+=n}(o[o.length-1].distance-o[s[s.length-1][0]].distance)/n<=t/10&&s.pop()}var u=new r(this,s);return u},e.prototype.slice=function(t,e,n,r){return new i(this,t,e,n,r)},e.prototype.interpolatePoint=function(t,e){var n={},i=this.points(t),r=this.points(t+1);_.each(this.metricsKeys().concat("time","distance","providedDistance"),function(t){_.isNumber(i[t])&&_.isNumber(r[t])&&(n[t]=i[t]+e*(r[t]-i[t]))}),n.point={lat:(r.point.lat-i.point.lat)*e+i.point.lat,lng:(r.point.lng-i.point.lng)*e+i.point.lng};var o=void 0!==i.surface,s=void 0!==r.surface;return o&&s?n.surface=1===Math.round(e)?r.surface:i.surface:o?n.surface=i.surface:s&&(n.surface=r.surface),new rwgps.TrackPoint(n)},i=function(t,e,n,i,r){var o,s;o=t.canvasId?t._data:t,o.count<e+n&&(e>o.count-2&&(e=o.count-2),n=o.count-e,r=0),s=e+n-1,_.isNumber(i)&&i>0?this.left=o.interpolatePoint(e,i):(i=0,this.left=o.points(e)),_.isNumber(r)&&r>0?(this.right=o.interpolatePoint(e+n-1,r),n++):(r=0,this.right=o.points(s)),this.i=e,this.count=n,this._parentData=o,this.pct1=i,this.pct2=r,this.lastI=s},i.prototype.serialize=function(t){return t?[Math.round(100*this.firstPoint()[t])/100,Math.round(100*this.lastPoint()[t])/100]:[this.i,this.count]},i.prototype.pointByIndex=function(t){return this.points(t)},i.prototype.firstPoint=function(){return this.left},i.prototype.lastPoint=function(){return this.right},i.prototype.buffer=function(t){var e=this.lastPoint()[t]-this.firstPoint()[t],n=.35*e,r=this._parentData.seek(this.i,t,n,-1),o=this._parentData.seek(this.lastI,t,n),s=o-r+1;return new i(this._parentData,r,s)},i.prototype.points=function(t){if(void 0!==t)return 0===t?this.left:t===this.count-1?this.right:this._parentData.points(t+this.i);if(!this._data){for(var e=[this.left],n=this.i,i=n+1,r=this._parentData.points(),o=this.lastI;i<=o;i++)e.push(r[i]);this.pct2>0&&e.push(this.right),this._data=e}return this._data},i.prototype.data=i.prototype.points,i.prototype.dataObj=function(){return this._dataObj||(this._dataObj=new e(this.points())
24),this._dataObj},i.prototype.metricsCalculator=function(){return this._metricsCalculator||(this._metricsCalculator=new o(this,!0),this._metricsCalculator.calculate()),this._metricsCalculator},i.prototype.metrics=function(){return this.metricsCalculator().metrics()},r=function(t,e){this.data=t;var n=this._slices=[];if(0==e.length)n.push(new i(t,0,this.data.points().length));else{for(var r=0,o=[0,0];r<e.length;r++)n.push(new i(t,o[0],e[r][0]-o[0]+1,o[1],e[r][1])),o=e[r];n.push(new i(t,o[0],t.points().length-o[0],o[1]))}},r.prototype={slices:function(){return this._slices},slice:function(t){return this._slices[t]}},t.exports={Data:e,DataSlice:i,DataPartition:r}}()},function(t,e){"use strict";!function(){t.exports={DateExt:{parse:function(t,e){if(t){void 0===e&&(e=!1),t=t.replace("Z","-00:00");var n=t.match(/^([0-9]{4})-0?([0-9]{1,2})-0?([0-9]{1,2})T0?([0-9]{1,2}):0?([0-9]{1,2}):0?([0-9]{1,2})([-+])0?([0-9]{1,2}):0?([0-9]{1,2})$/),i=parseInt(n[1]),r=parseInt(n[2])-1,o=parseInt(n[3]),s=parseInt(n[4]),a=parseInt(n[5]),l=parseInt(n[6]),c=n[7],u=parseInt(n[8]),h=parseInt(n[9]),p=("-"==c?1:-1)*(60*u+h)*6e4,d=new Date;return e?(d.setFullYear(i,r,o),d.setHours(s,a,l)):(d.setUTCFullYear(i,r,o),d.setUTCHours(s,a,l),d.setTime(d.getTime()+p)),d}},parseDate:function(t){if(t){var e=t.match(/^([0-9]{4})-0?([0-9]{1,2})-0?([0-9]{1,2})$/),n=parseInt(e[1]),i=parseInt(e[2])-1,r=parseInt(e[3]),o=new Date(n,i,r);return o}}}}}()},function(t,e){"use strict";!function(){t.exports={Convert:{longToM:function(t){return rwgps.LabelMaker.metric?1e3*t:1609.344*t},mToLong:function(t){return rwgps.LabelMaker.metric?.001*t:.000621371192*t},longToKm:function(t){return rwgps.LabelMaker.metric?t:1.609344*t},kmToLong:function(t){return rwgps.LabelMaker.metric?t:.621371192*t},shortToM:function(t){return rwgps.LabelMaker.metric?t:.3048006096012*t},mToShort:function(t){return rwgps.LabelMaker.metric?t:3.2808399*t},cToDeg:function(t){return rwgps.LabelMaker.metric?t:1.8*t+32},degToC:function(t){return rwgps.LabelMaker.metric?t:5*(t-32)/9}},LabelMaker:{metric:!0,longUnit:function(){return this.metric?"km":"miles"},shortUnitAbbrev:function(){return this.metric?"m":"ft"},speedLabel:function(t,e){var n=this.metric?1*t:.621371192*t;return n.toFixed(1)+(e?this.metric?" kph":" mph":"")},longLabel:function(t,e,n){n||(n=1);var i=this.metric?.001*t:.000621371192*t;return i.toFixed(n)+(e?"full"==e?this.metric?" km":" miles":this.metric?" km":" mi":"")},shortLabel:function(t,e){var n=this.metric?t:3.2808399*t;return Math.round(n)+(e?"full"==e?this.metric?" meters":" feet":this.metric?" m":" ft":"")},durationLabel:function(t,e){var n=Math.floor(t/3600);t-=3600*n;var i=Math.floor(t/60);if(t=Math.floor(t-60*i),1===e)return(n>0?(n<10?"0":"")+n+":"+(i<10?"0":""):"")+i+":"+(t<10?"0":"")+t;if(e){var r=0;return n>99&&(r=Math.floor(n/24),n-=24*r),r>0?r+"d"+(0==n?"":n+"h"):n>0?n+"h"+(0==i?"":i+"m"):i>9?i+"m":i>0?i+"m"+t+"s":t+"s"}return(n<10?"0":"")+n+":"+(i<10?"0":"")+i+":"+(t<10?"0":"")+t},paceLabel:function(t,e){var n=Math.round(1/rwgps.Convert.kmToLong(1/t));return rwgps.LabelMaker.durationLabel(n,e)}}}}()},function(t,e){"use strict";!function(){t.exports={Utils:{truncate:function(t,e){return void 0==t||0==t.length?"":t.length<=e?t:t.slice(0,e)+"…"},attrObjFromSerializedArray:function(t){return _.reduce(t,function(t,e){return t[e.name]=e.value,t},{})},formatText:function(t){return t||(t=""),t=t.replace(/\r\n?/g,"\n"),t=t.replace(/\n+$/,""),t="<p>"+t+"</p>",t=t.replace(/\n\n+/g,"</p><p>"),t=t.replace(/\n/g,"<br/>"),this.autolink(t)},autolink:function(t,e){var n,i,r,o;if(r=/(\b(https?):\/\/[\-A-Z0-9+&@#\/%?=~_|!:,.;]*[\-A-Z0-9+&@#\/%=~_|])/gi,e){i="";for(n in e)o=e[n],i+=" "+n+"='"+o+"'";return t.replace(r,"<a href='$1' "+i.trim()+">$1</a>")}return t.replace(r,"<a href='$1'>$1</a>")},addCommas:function(t){t+="";for(var e=t.split("."),n=e[0],i=e.length>1?"."+e[1]:"",r=/(\d+)(\d{3})/;r.test(n);)n=n.replace(r,"$1,$2");return n+i},getQueryParameters:function(t){return(t||document.location.search).replace(/(^\?)/,"").split("&").map(function(t){return t=t.split("="),this[t[0]]=t[1],this}.bind({}))[0]}}}}()},,,,,,,,,,,,,,,,,,,,,,,,,function(t,e){"use strict";var n=function t(e){t.done?e():t.afterConvertFns.push(e)};n.afterConvertFns=[],$(function(){var t=new Remarkable;
24$(".mdconvert").each(function(){var e=$(this),n=e.find("textarea").val();e.html(t.render(n)),e.removeClass("mdconvert")}),n.done=!0,_.each(n.afterConvertFns,function(t){t()})}),t.exports=n},,,function(t,e,n){(function(e){t.exports=e.Comments=n(42)}).call(e,function(){return this}())},function(t,e,n){(function(e){t.exports=e.Favorites=n(43)}).call(e,function(){return this}())},,function(t,e,n){(function(e){t.exports=e.Translations=n(40)}).call(e,function(){return this}())},function(t,e,n){(function(e){t.exports=e.async=n(148)}).call(e,function(){return this}())},,,function(t,e,n){(function(e){t.exports=e.jQuery=n(154)}).call(e,function(){return this}())},function(t,e,n){(function(e){t.exports=e.rwgps=n(44)}).call(e,function(){return this}())},,function(t,e,n){var i,r;(function(n,o,s){/*! 25 * async 26 * https://github.com/caolan/async 27 * 28 * Copyright 2010-2014 Caolan McMahon 29 * Released under the MIT license 30 */ 31!function(){function a(){}function l(t){return t}function c(t){return!!t}function u(t){return!t}function h(t){return function(){if(null===t)throw new Error("Callback was already called.");t.apply(this,arguments),t=null}}function p(t){return function(){null!==t&&(t.apply(this,arguments),t=null)}}function d(t){return z(t)||"number"==typeof t.length&&t.length>=0&&t.length%1===0}function f(t,e){for(var n=-1,i=t.length;++n<i;)e(t[n],n,t)}function m(t,e){for(var n=-1,i=t.length,r=Array(i);++n<i;)r[n]=e(t[n],n,t);return r}function g(t){return m(Array(t),function(t,e){return e})}function v(t,e,n){return f(t,function(t,i,r){n=e(n,t,i,r)}),n}function y(t,e){f(W(t),function(n){e(t[n],n)})}function b(t,e){for(var n=0;n<t.length;n++)if(t[n]===e)return n;return-1}function w(t){var e,n,i=-1;return d(t)?(e=t.length,function(){return i++,i<e?i:null}):(n=W(t),e=n.length,function(){return i++,i<e?n[i]:null})}function _(t,e){return e=null==e?t.length-1:+e,function(){for(var n=Math.max(arguments.length-e,0),i=Array(n),r=0;r<n;r++)i[r]=arguments[r+e];switch(e){case 0:return t.call(this,i);case 1:return t.call(this,arguments[0],i)}}}function x(t){return function(e,n,i){return t(e,i)}}function k(t){return function(e,n,i){i=p(i||a),e=e||[];var r=w(e);if(t<=0)return i(null);var o=!1,s=0,l=!1;!function a(){if(o&&s<=0)return i(null);for(;s<t&&!l;){var c=r();if(null===c)return o=!0,void(s<=0&&i(null));s+=1,n(e[c],c,h(function(t){s-=1,t?(i(t),l=!0):a()}))}}()}}function T(t){return function(e,n,i){return t(F.eachOf,e,n,i)}}function C(t){return function(e,n,i,r){return t(k(n),e,i,r)}}function $(t){return function(e,n,i){return t(F.eachOfSeries,e,n,i)}}function S(t,e,n,i){i=p(i||a),e=e||[];var r=d(e)?[]:{};t(e,function(t,e,i){n(t,function(t,n){r[e]=n,i(t)})},function(t){i(t,r)})}function E(t,e,n,i){var r=[];t(e,function(t,e,i){n(t,function(n){n&&r.push({index:e,value:t}),i()})},function(){i(m(r.sort(function(t,e){return t.index-e.index}),function(t){return t.value}))})}function A(t,e,n,i){E(t,e,function(t,e){n(t,function(t){e(!t)})},i)}function I(t,e,n){return function(i,r,o,s){function a(){s&&s(n(!1,void 0))}function l(t,i,r){return s?void o(t,function(i){s&&e(i)&&(s(n(!0,t)),s=o=!1),r()}):r()}arguments.length>3?t(i,r,l,a):(s=o,o=r,t(i,l,a))}}function M(t,e){return e}function j(t,e,n){n=n||a;var i=d(e)?[]:{};t(e,function(t,e,n){t(_(function(t,r){r.length<=1&&(r=r[0]),i[e]=r,n(t)}))},function(t){n(t,i)})}function D(t,e,n,i){var r=[];t(e,function(t,e,i){n(t,function(t,e){r=r.concat(e||[]),i(t)})},function(t){i(t,r)})}function O(t,e,n){function i(t,e,n,i){if(null!=i&&"function"!=typeof i)throw new Error("task callback must be a function");return t.started=!0,z(e)||(e=[e]),0===e.length&&t.idle()?F.setImmediate(function(){t.drain()}):(f(e,function(e){var r={data:e,callback:i||a};n?t.tasks.unshift(r):t.tasks.push(r),t.tasks.length===t.concurrency&&t.s
31aturated()}),void F.setImmediate(t.process))}function r(t,e){return function(){o-=1;var n=!1,i=arguments;f(e,function(t){f(s,function(e,i){e!==t||n||(s.splice(i,1),n=!0)}),t.callback.apply(t,i)}),t.tasks.length+o===0&&t.drain(),t.process()}}if(null==e)e=1;else if(0===e)throw new Error("Concurrency must not be zero");var o=0,s=[],l={tasks:[],concurrency:e,payload:n,saturated:a,empty:a,drain:a,started:!1,paused:!1,push:function(t,e){i(l,t,!1,e)},kill:function(){l.drain=a,l.tasks=[]},unshift:function(t,e){i(l,t,!0,e)},process:function(){for(;!l.paused&&o<l.concurrency&&l.tasks.length;){var e=l.payload?l.tasks.splice(0,l.payload):l.tasks.splice(0,l.tasks.length),n=m(e,function(t){return t.data});0===l.tasks.length&&l.empty(),o+=1,s.push(e[0]);var i=h(r(l,e));t(n,i)}},length:function(){return l.tasks.length},running:function(){return o},workersList:function(){return s},idle:function(){return l.tasks.length+o===0},pause:function(){l.paused=!0},resume:function(){if(l.paused!==!1){l.paused=!1;for(var t=Math.min(l.concurrency,l.tasks.length),e=1;e<=t;e++)F.setImmediate(l.process)}}};return l}function N(t){return _(function(e,n){e.apply(null,n.concat([_(function(e,n){"object"==typeof console&&(e?console.error&&console.error(e):console[t]&&f(n,function(e){console[t](e)}))})]))})}function L(t){return function(e,n,i){t(g(e),n,i)}}function P(t){return _(function(e,n){var i=_(function(n){var i=this,r=n.pop();return t(e,function(t,e,r){t.apply(i,n.concat([r]))},r)});return n.length?i.apply(this,n):i})}function R(t){return _(function(e){var n=e.pop();e.push(function(){var t=arguments;i?F.setImmediate(function(){n.apply(null,t)}):n.apply(null,t)});var i=!0;t.apply(this,e),i=!1})}var q,F={},H="object"==typeof self&&self.self===self&&self||"object"==typeof n&&n.global===n&&n||this;null!=H&&(q=H.async),F.noConflict=function(){return H.async=q,F};var B=Object.prototype.toString,z=Array.isArray||function(t){return"[object Array]"===B.call(t)},U=function(t){var e=typeof t;return"function"===e||"object"===e&&!!t},W=Object.keys||function(t){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e},G="function"==typeof o&&o,V=G?function(t){G(t)}:function(t){setTimeout(t,0)};"object"==typeof s&&"function"==typeof s.nextTick?F.nextTick=s.nextTick:F.nextTick=V,F.setImmediate=G?V:F.nextTick,F.forEach=F.each=function(t,e,n){return F.eachOf(t,x(e),n)},F.forEachSeries=F.eachSeries=function(t,e,n){return F.eachOfSeries(t,x(e),n)},F.forEachLimit=F.eachLimit=function(t,e,n,i){return k(e)(t,x(n),i)},F.forEachOf=F.eachOf=function(t,e,n){function i(t){s--,t?n(t):null===r&&s<=0&&n(null)}n=p(n||a),t=t||[];for(var r,o=w(t),s=0;null!=(r=o());)s+=1,e(t[r],r,h(i));0===s&&n(null)},F.forEachOfSeries=F.eachOfSeries=function(t,e,n){function i(){var s=!0;return null===o?n(null):(e(t[o],o,h(function(t){if(t)n(t);else{if(o=r(),null===o)return n(null);s?F.setImmediate(i):i()}})),void(s=!1))}n=p(n||a),t=t||[];var r=w(t),o=r();i()},F.forEachOfLimit=F.eachOfLimit=function(t,e,n,i){k(e)(t,n,i)},F.map=T(S),F.mapSeries=$(S),F.mapLimit=C(S),F.inject=F.foldl=F.reduce=function(t,e,n,i){F.eachOfSeries(t,function(t,i,r){n(e,t,function(t,n){e=n,r(t)})},function(t){i(t,e)})},F.foldr=F.reduceRight=function(t,e,n,i){var r=m(t,l).reverse();F.reduce(r,e,n,i)},F.transform=function(t,e,n,i){3===arguments.length&&(i=n,n=e,e=z(t)?[]:{}),F.eachOf(t,function(t,i,r){n(e,t,i,r)},function(t){i(t,e)})},F.select=F.filter=T(E),F.selectLimit=F.filterLimit=C(E),F.selectSeries=F.filterSeries=$(E),F.reject=T(A),F.rejectLimit=C(A),F.rejectSeries=$(A),F.any=F.some=I(F.eachOf,c,l),F.someLimit=I(F.eachOfLimit,c,l),F.all=F.every=I(F.eachOf,u,u),F.everyLimit=I(F.eachOfLimit,u,u),F.detect=I(F.eachOf,l,M),F.detectSeries=I(F.eachOfSeries,l,M),F.detectLimit=I(F.eachOfLimit,l,M),F.sortBy=function(t,e,n){function i(t,e){var n=t.criteria,i=e.criteria;return n<i?-1:n>i?1:0}F.map(t,function(t,n){e(t,function(e,i){e?n(e):n(null,{value:t,criteria:i})})},function(t,e){return t?n(t):void n(null,m(e.sort(i),function(t){return t.value}))})},F.auto=function(t,e,n){function i(t){d.unshift(t)}function r(t){var e=b(d,t);e>=0&&d.splice(e,1)}function o(){l--,f(d.slice(0),function(t){t()})}"function"==typeof arguments[1]&&(n=e,e=null),n=p(n||a);var s=W(t),l=s.length;if(!l)return n(null);e||(e=l);var c={},u=0,h=!1,d=[];i(function(){l||n(null,c)}),f(s,function(s){function a(){return u<e&&v(m,function(t,e){return t&&c.hasOwnProperty(e)},!0)&&!c.hasOwnProperty(s)}function l(){a()&&(u++,r(l),d[d.length-1](f,c))}
31if(!h){for(var p,d=z(t[s])?t[s]:[t[s]],f=_(function(t,e){if(u--,e.length<=1&&(e=e[0]),t){var i={};y(c,function(t,e){i[e]=t}),i[s]=e,h=!0,n(t,i)}else c[s]=e,F.setImmediate(o)}),m=d.slice(0,d.length-1),g=m.length;g--;){if(!(p=t[m[g]]))throw new Error("Has nonexistent dependency in "+m.join(", "));if(z(p)&&b(p,s)>=0)throw new Error("Has cyclic dependencies")}a()?(u++,d[d.length-1](f,c)):i(l)}})},F.retry=function(t,e,n){function i(t,e){if("number"==typeof e)t.times=parseInt(e,10)||o;else{if("object"!=typeof e)throw new Error("Unsupported argument type for 'times': "+typeof e);t.times=parseInt(e.times,10)||o,t.interval=parseInt(e.interval,10)||s}}function r(t,e){function n(t,n){return function(i){t(function(t,e){i(!t||n,{err:t,result:e})},e)}}function i(t){return function(e){setTimeout(function(){e(null)},t)}}for(;l.times;){var r=!(l.times-=1);a.push(n(l.task,r)),!r&&l.interval>0&&a.push(i(l.interval))}F.series(a,function(e,n){n=n[n.length-1],(t||l.callback)(n.err,n.result)})}var o=5,s=0,a=[],l={times:o,interval:s},c=arguments.length;if(c<1||c>3)throw new Error("Invalid arguments - must be either (task), (task, callback), (times, task) or (times, task, callback)");return c<=2&&"function"==typeof t&&(n=e,e=t),"function"!=typeof t&&i(l,t),l.callback=n,l.task=e,l.callback?r():r},F.waterfall=function(t,e){function n(t){return _(function(i,r){if(i)e.apply(null,[i].concat(r));else{var o=t.next();o?r.push(n(o)):r.push(e),R(t).apply(null,r)}})}if(e=p(e||a),!z(t)){var i=new Error("First argument to waterfall must be an array of functions");return e(i)}return t.length?void n(F.iterator(t))():e()},F.parallel=function(t,e){j(F.eachOf,t,e)},F.parallelLimit=function(t,e,n){j(k(e),t,n)},F.series=function(t,e){j(F.eachOfSeries,t,e)},F.iterator=function(t){function e(n){function i(){return t.length&&t[n].apply(null,arguments),i.next()}return i.next=function(){return n<t.length-1?e(n+1):null},i}return e(0)},F.apply=_(function(t,e){return _(function(n){return t.apply(null,e.concat(n))})}),F.concat=T(D),F.concatSeries=$(D),F.whilst=function(t,e,n){if(n=n||a,t()){var i=_(function(r,o){r?n(r):t.apply(this,o)?e(i):n.apply(null,[null].concat(o))});e(i)}else n(null)},F.doWhilst=function(t,e,n){var i=0;return F.whilst(function(){return++i<=1||e.apply(this,arguments)},t,n)},F.until=function(t,e,n){return F.whilst(function(){return!t.apply(this,arguments)},e,n)},F.doUntil=function(t,e,n){return F.doWhilst(t,function(){return!e.apply(this,arguments)},n)},F.during=function(t,e,n){n=n||a;var i=_(function(e,i){e?n(e):(i.push(r),t.apply(this,i))}),r=function(t,r){t?n(t):r?e(i):n(null)};t(r)},F.doDuring=function(t,e,n){var i=0;F.during(function(t){i++<1?t(null,!0):e.apply(this,arguments)},t,n)},F.queue=function(t,e){var n=O(function(e,n){t(e[0],n)},e,1);return n},F.priorityQueue=function(t,e){function n(t,e){return t.priority-e.priority}function i(t,e,n){for(var i=-1,r=t.length-1;i<r;){var o=i+(r-i+1>>>1);n(e,t[o])>=0?i=o:r=o-1}return i}function r(t,e,r,o){if(null!=o&&"function"!=typeof o)throw new Error("task callback must be a function");return t.started=!0,z(e)||(e=[e]),0===e.length?F.setImmediate(function(){t.drain()}):void f(e,function(e){var s={data:e,priority:r,callback:"function"==typeof o?o:a};t.tasks.splice(i(t.tasks,s,n)+1,0,s),t.tasks.length===t.concurrency&&t.s
31aturated(),F.setImmediate(t.process)})}var o=F.queue(t,e);return o.push=function(t,e,n){r(o,t,e,n)},delete o.unshift,o},F.cargo=function(t,e){return O(t,1,e)},F.log=N("log"),F.dir=N("dir"),F.memoize=function(t,e){var n={},i={},r=Object.prototype.hasOwnProperty;e=e||l;var o=_(function(o){var s=o.pop(),a=e.apply(null,o);r.call(n,a)?F.setImmediate(function(){s.apply(null,n[a])}):r.call(i,a)?i[a].push(s):(i[a]=[s],t.apply(null,o.concat([_(function(t){n[a]=t;var e=i[a];delete i[a];for(var r=0,o=e.length;r<o;r++)e[r].apply(null,t)})])))});return o.memo=n,o.unmemoized=t,o},F.unmemoize=function(t){return function(){return(t.unmemoized||t).apply(null,arguments)}},F.times=L(F.map),F.timesSeries=L(F.mapSeries),F.timesLimit=function(t,e,n,i){return F.mapLimit(g(t),e,n,i)},F.seq=function(){var t=arguments;return _(function(e){var n=this,i=e[e.length-1];"function"==typeof i?e.pop():i=a,F.reduce(t,e,function(t,e,i){e.apply(n,t.concat([_(function(t,e){i(t,e)})]))},function(t,e){i.apply(n,[t].concat(e))})})},F.compose=function(){return F.seq.apply(null,Array.prototype.reverse.call(arguments))},F.applyEach=P(F.eachOf),F.applyEachSeries=P(F.eachOfSeries),F.forever=function(t,e){function n(t){return t?i(t):void r(n)}var i=h(e||a),r=R(t);n()},F.ensureAsync=R,F.constant=_(function(t){var e=[null].concat(t);return function(t){return t.apply(this,e)}}),F.wrapSync=F.asyncify=function(t){return _(function(e){var n,i=e.pop();try{n=t.apply(this,e)}catch(t){return i(t)}U(n)&&"function"==typeof n.then?n.then(function(t){i(null,t)}).catch(function(t){i(t.message?t:new Error(t))}):i(null,n)})},"object"==typeof t&&t.exports?t.exports=F:(i=[],r=function(){return F}.apply(e,i),!(void 0!==r&&(t.exports=r)))}()}).call(e,function(){return this}(),n(47).setImmediate,n(26))},function(t,e,n){!function(t,n){n(t,e,_,$)}({},function(t,e,n,i){var r=t.Backbone,o=[],s=o.push,a=o.slice,l=o.splice;e.VERSION="1.0.0",e.$=i,e.noConflict=function(){return t.Backbone=r,this},e.emulateHTTP=!1,e.emulateJSON=!1;var c=e.Events={on:function(t,e,n){if(!h(this,"on",t,[e,n])||!e)return this;this._events||(this._events={});var i=this._events[t]||(this._events[t]=[]);return i.push({callback:e,context:n,ctx:n||this}),this},once:function(t,e,i){if(!h(this,"once",t,[e,i])||!e)return this;var r=this,o=n.once(function(){r.off(t,o),e.apply(this,arguments)});return o._callback=e,this.on(t,o,i)},off:function(t,e,i){var r,o,s,a,l,c,u,p;if(!this._events||!h(this,"off",t,[e,i]))return this;if(!t&&!e&&!i)return this._events={},this;for(a=t?[t]:n.keys(this._events),l=0,c=a.length;l<c;l++)if(t=a[l],s=this._events[t]){if(this._events[t]=r=[],e||i)for(u=0,p=s.length;u<p;u++)o=s[u],(e&&e!==o.callback&&e!==o.callback._callback||i&&i!==o.context)&&r.push(o);r.length||delete this._events[t]}return this},trigger:function(t){if(!this._events)return this;var e=a.call(arguments,1);if(!h(this,"trigger",t,e))return this;var n=this._events[t],i=this._events.all;return n&&p(n,e),i&&p(i,arguments),this},stopListening:function(t,e,n){var i=this._listeners;if(!i)return this;var r=!e&&!n;"object"==typeof e&&(n=this),t&&((i={})[t._listenerId]=t);for(var o in i)i[o].off(e,n,this),r&&delete this._listeners[o];return this}},u=/\s+/,h=function(t,e,n,i){if(!n)return!0;if("object"==typeof n){for(var r in n)t[e].apply(t,[r,n[r]].concat(i));return!1}if(u.test(n)){for(var o=n.split(u),s=0,a=o.length;s<a;s++)t[e].apply(t,[o[s]].concat(i));return!1}return!0},p=function(t,e){var n,i=-1,r=t.length,o=e[0],s=e[1],a=e[2];switch(e.length){case 0:for(;++i<r;)(n=t[i]).callback.call(n.ctx);return;case 1:for(;++i<r;)(n=t[i]).callback.call(n.ctx,o);return;case 2:for(;++i<r;)(n=t[i]).callback.call(n.ctx,o,s);return;case 3:for(;++i<r;)(n=t[i]).callback.call(n.ctx,o,s,a);return;default:for(;++i<r;)(n=t[i]).callback.apply(n.ctx,e)}},d={listenTo:"on",listenToOnce:"once"};n.each(d,function(t,e){c[e]=function(e,i,r){var o=this._listeners||(this._listeners={}),s=e._listenerId||(e._listenerId=n.uniqueId("l"));return o[s]=e,"object"==typeof i&&(r=this),e[t](i,r,this),this}}),c.bind=c.on,c.unbind=c.off,n.extend(e,c);var f=e.Model=function(t,e){var i,r=t||{};e||(e={}),this.cid=n.uniqueId("c"),this.attributes={},n.extend(this,n.pick(e,m)),e.parse&&(r=this.parse(r,e)||{}),(i=n.result(this,"defaults"))&&(r=n.defaults({},r,i)),this.set(r,e),this.changed={},this.initialize.apply(this,arguments)},m=["url","urlRoot","collection"];
31n.extend(f.prototype,c,{changed:null,validationError:null,idAttribute:"id",initialize:function(){},toJSON:function(t){return n.clone(this.attributes)},sync:function(){return e.sync.apply(this,arguments)},get:function(t){return this.attributes[t]},escape:function(t){return n.escape(this.get(t))},has:function(t){return null!=this.get(t)},set:function(t,e,i){var r,o,s,a,l,c,u,h;if(null==t)return this;if("object"==typeof t?(o=t,i=e):(o={})[t]=e,i||(i={}),!this._validate(o,i))return!1;s=i.unset,l=i.silent,a=[],c=this._changing,this._changing=!0,c||(this._previousAttributes=n.clone(this.attributes),this.changed={}),h=this.attributes,u=this._previousAttributes,this.idAttribute in o&&(this.id=o[this.idAttribute]);for(r in o)e=o[r],n.isEqual(h[r],e)||a.push(r),n.isEqual(u[r],e)?delete this.changed[r]:this.changed[r]=e,s?delete h[r]:h[r]=e;if(!l){a.length&&(this._pending=!0);for(var p=0,d=a.length;p<d;p++)this.trigger("change:"+a[p],this,h[a[p]],i)}if(c)return this;if(!l)for(;this._pending;)this._pending=!1,this.trigger("change",this,i);return this._pending=!1,this._changing=!1,this},unset:function(t,e){return this.set(t,void 0,n.extend({},e,{unset:!0}))},clear:function(t){var e={};for(var i in this.attributes)e[i]=void 0;return this.set(e,n.extend({},t,{unset:!0}))},hasChanged:function(t){return null==t?!n.isEmpty(this.changed):n.has(this.changed,t)},changedAttributes:function(t){if(!t)return!!this.hasChanged()&&n.clone(this.changed);var e,i=!1,r=this._changing?this._previousAttributes:this.attributes;for(var o in t)n.isEqual(r[o],e=t[o])||((i||(i={}))[o]=e);return i},previous:function(t){return null!=t&&this._previousAttributes?this._previousAttributes[t]:null},previousAttributes:function(){return n.clone(this._previousAttributes)},fetch:function(t){t=t?n.clone(t):{},void 0===t.parse&&(t.parse=!0);var e=this,i=t.success;return t.success=function(n){return!!e.set(e.parse(n,t),t)&&(i&&i(e,n,t),void e.trigger("sync",e,n,t))},R(this,t),this.sync("read",this,t)},save:function(t,e,i){var r,o,s,a=this.attributes;if(null==t||"object"==typeof t?(r=t,i=e):(r={})[t]=e,r&&(!i||!i.wait)&&!this.set(r,i))return!1;if(i=n.extend({validate:!0},i),!this._validate(r,i))return!1;r&&i.wait&&(this.attributes=n.extend({},a,r)),void 0===i.parse&&(i.parse=!0);var l=this,c=i.success;return i.success=function(t){l.attributes=a;var e=l.parse(t,i);return i.wait&&(e=n.extend(r||{},e)),!(n.isObject(e)&&!l.set(e,i))&&(c&&c(l,t,i),void l.trigger("sync",l,t,i))},R(this,i),o=this.isNew()?"create":i.patch?"patch":"update","patch"===o&&(i.attrs=r),s=this.sync(o,this,i),r&&i.wait&&(this.attributes=a),s},destroy:function(t){t=t?n.clone(t):{};var e=this,i=t.success,r=function(){e.trigger("destroy",e,e.collection,t)};if(t.success=function(n){(t.wait||e.isNew())&&r(),i&&i(e,n,t),e.isNew()||e.trigger("sync",e,n,t)},this.isNew())return t.success(),!1;R(this,t);var o=this.sync("delete",this,t);return t.wait||r(),o},url:function(){var t=n.result(this,"urlRoot")||n.result(this.collection,"url")||P();return this.isNew()?t:t+("/"===t.charAt(t.length-1)?"":"/")+encodeURIComponent(this.id)},parse:function(t,e){return t},clone:function(){return new this.constructor(this.attributes)},isNew:function(){return null==this.id},isValid:function(t){return this._validate({},n.extend(t||{},{validate:!0}))},_validate:function(t,e){if(!e.validate||!this.validate)return!0;t=n.extend({},this.attributes,t);var i=this.validationError=this.validate(t,e)||null;return!i||(this.trigger("invalid",this,i,n.extend(e||{},{validationError:i})),!1)}});var g=["keys","values","pairs","invert","pick","omit"];n.each(g,function(t){f.prototype[t]=function(){var e=a.call(arguments);return e.unshift(this.attributes),n[t].apply(n,e)}});var v=e.Collection=function(t,e){e||(e={}),e.url&&(this.url=e.url),e.model&&(this.model=e.model),void 0!==e.comparator&&(this.comparator=e.comparator),this._reset(),this.initialize.apply(this,arguments),t&&this.reset(t,n.extend({silent:!0},e))},y={add:!0,remove:!0,merge:!0},b={add:!0,merge:!1,remove:!1};n.extend(v.prototype,c,{model:f,initialize:function(){},toJSON:function(t){return this.map(function(e){return e.toJSON(t)})},sync:function(){return e.sync.apply(this,arguments)},add:function(t,e){return this.set(t,n.defaults(e||{},b))},remove:function(t,e){t=n.isArray(t)?t.slice():[t],e||(e={});var i,r,o,s;for(i=0,r=t.length;i<r;i++)s=this.get(t[i]),s&&(delete this._byId[s.id],delete this._byId[s.cid],o=this.indexOf(s),this.models.splice(o,1),this.length--,e.silent||(e.index=o,s.trigger("remove",s,this,e)),this._removeReference(s));return this},set:function(t,e){e=n.defaults(e||{},y),e.parse&&(t=this.parse(t,e)),n.isArray(t)||(t=t?[t]:[]);var i,r,o,a,c,u=e.at,h=this.comparator&&null==u&&e.sort!==!1,p=n.isString(this.comparator)?this.comparator:null,d=[],f=[],m={};for(i=0,r=t.length;i<r;i++)(o=this._prepareModel(t[i],e))&&((a=this.get(o))?(e.remove&&(m[a.cid]=!0),e.merge&&(a.set(o.attributes,e),h&&!c&&a.hasChanged(p)&&(c=!0))):e.add&&(d.push(o),o.on("all",this._onModelEvent,this),this._byId[o.cid]=o,null!=o.id&&(this._byId[o.id]=o)));if(e.remove){for(i=0,r=this.length;i<r;++i)m[(o=this.models[i]).cid]||f.push(o);f.length&&this.remove(f,e)}if(d.length&&(h&&(c=!0),this.length+=d.length,null!=u?l.apply(this.models,[u,0].concat(d)):s.apply(this.models,d)),c&&this.sort({silent:!0}),e.silent)return this;for(i=0,r=d.length;i<r;i++)(o=d[i]).trigger("add",o,this,e);return c&&this.trigger("sort",this,e),this},reset:function(t,e){e||(e={});for(var i=0,r=this.models.length;i<r;i++)this._removeReference(this.models[i]);return e.previousModels=this.models,this._reset(),this.add(t,n.extend({silent:!0},e)),e.silent||this.trigger("reset",this,e),this},push:function(t,e){return t=this._prepareModel(t,e),this.add(t,n.extend({at:this.length},e)),t},pop:function(t){var e=this.at(this.length-1);return this.remove(e,t),e},unshift:function(t,e){return t=this._prepareModel(t,e),this.add(t,n.extend({at:0},e)),t},shift:function(t){var e=this.at(0);return this.remove(e,t),e},slice:function(t,e){return this.models.slice(t,e)},get:function(t){if(null!=t)return this._byId[null!=t.id?t.id:t.cid||t]},at:function(t){return this.models[t]},where:function(t,e){return n.isEmpty(t)?e?void 0:[]:this[e?"find":"filter"](function(e){for(var n in t)if(t[n]!==e.get(n))return!1;return!0})},findWhere:function(t){return this.where(t,!0)},sort:function(t){if(!this.comparator)throw new Error("Cannot sort a set without a comparator");return t||(t={}),n.isString(this.comparator)||1===this.comparator.length?this.models=this.sortBy(this.comparator,this):this.models.sort(n.bind(this.comparator,this)),t.silent||this.trigger("sort",this,t),this}
31,sortedIndex:function(t,e,i){e||(e=this.comparator);var r=n.isFunction(e)?e:function(t){return t.get(e)};return n.sortedIndex(this.models,t,r,i)},pluck:function(t){return n.invoke(this.models,"get",t)},fetch:function(t){t=t?n.clone(t):{},void 0===t.parse&&(t.parse=!0);var e=t.success,i=this;return t.success=function(n){var r=t.reset?"reset":"set";i[r](n,t),e&&e(i,n,t),i.trigger("sync",i,n,t)},R(this,t),this.sync("read",this,t)},create:function(t,e){if(e=e?n.clone(e):{},!(t=this._prepareModel(t,e)))return!1;e.wait||this.add(t,e);var i=this,r=e.success;return e.success=function(n){e.wait&&i.add(t,e),r&&r(t,n,e)},t.save(null,e),t},parse:function(t,e){return t},clone:function(){return new this.constructor(this.models)},_reset:function(){this.length=0,this.models=[],this._byId={}},_prepareModel:function(t,e){if(t instanceof f)return t.collection||(t.collection=this),t;e||(e={}),e.collection=this;var n=new this.model(t,e);return n._validate(t,e)?n:(this.trigger("invalid",this,t,e),!1)},_removeReference:function(t){this===t.collection&&delete t.collection,t.off("all",this._onModelEvent,this)},_onModelEvent:function(t,e,n,i){("add"!==t&&"remove"!==t||n===this)&&("destroy"===t&&this.remove(e,i),e&&t==="change:"+e.idAttribute&&(delete this._byId[e.previous(e.idAttribute)],null!=e.id&&(this._byId[e.id]=e)),this.trigger.apply(this,arguments))}});var w=["forEach","each","map","collect","reduce","foldl","inject","reduceRight","foldr","find","detect","filter","select","reject","every","all","some","any","include","contains","invoke","max","min","toArray","size","first","head","take","initial","rest","tail","drop","last","without","indexOf","shuffle","lastIndexOf","isEmpty","chain"];n.each(w,function(t){v.prototype[t]=function(){var e=a.call(arguments);return e.unshift(this.models),n[t].apply(n,e)}});var _=["groupBy","countBy","sortBy"];n.each(_,function(t){v.prototype[t]=function(e,i){var r=n.isFunction(e)?e:function(t){return t.get(e)};return n[t](this.models,r,i)}});var x=e.View=function(t){this.cid=n.uniqueId("view"),this._configure(t||{}),this._ensureElement(),this.initialize.apply(this,arguments),this.delegateEvents()},k=/^(\S+)\s*(.*)$/,T=["model","collection","el","id","attributes","className","tagName","events"];n.extend(x.prototype,c,{tagName:"div",$:function(t){return this.$el.find(t)},initialize:function(){},render:function(){return this},remove:function(){return this.$el.remove(),this.stopListening(),this},setElement:function(t,n){return this.$el&&this.undelegateEvents(),this.$el=t instanceof e.$?t:e.$(t),this.el=this.$el[0],n!==!1&&this.delegateEvents(),this},delegateEvents:function(t){if(!t&&!(t=n.result(this,"events")))return this;this.undelegateEvents();for(var e in t){var i=t[e];if(n.isFunction(i)||(i=this[t[e]]),i){var r=e.match(k),o=r[1],s=r[2];i=n.bind(i,this),o+=".delegateEvents"+this.cid,""===s?this.$el.on(o,i):this.$el.on(o,s,i)}}return this},undelegateEvents:function(){return this.$el.off(".delegateEvents"+this.cid),this},_configure:function(t){this.options&&(t=n.extend({},n.result(this,"options"),t)),n.extend(this,n.pick(t,T)),this.options=t},_ensureElement:function(){if(this.el)this.setElement(n.result(this,"el"),!1);else{var t=n.extend({},n.result(this,"attributes"));this.id&&(t.id=n.result(this,"id")),this.className&&(t.class=n.result(this,"className"));var i=e.$("<"+n.result(this,"tagName")+">").attr(t);this.setElement(i,!1)}}}),e.sync=function(t,i,r){var o=C[t];n.defaults(r||(r={}),{emulateHTTP:e.emulateHTTP,emulateJSON:e.emulateJSON});var s={type:o,dataType:"json"};if(r.url||(s.url=n.result(i,"url")||P()),null!=r.data||!i||"create"!==t&&"update"!==t&&"patch"!==t||(s.contentType="application/json",s.data=JSON.stringify(r.attrs||i.toJSON(r))),r.emulateJSON&&(s.contentType="application/x-www-form-urlencoded",s.data=s.data?{model:s.data}:{}),r.emulateHTTP&&("PUT"===o||"DELETE"===o||"PATCH"===o)){s.type="POST",r.emulateJSON&&(s.data._method=o);var a=r.beforeSend;r.beforeSend=function(t){if(t.setRequestHeader("X-HTTP-Method-Override",o),a)return a.apply(this,arguments)}}"GET"===s.type||r.emulateJSON||(s.processData=!1),"PATCH"!==s.type||!window.ActiveXObject||window.external&&window.external.msActiveXFilteringEnabled||(s.xhr=function(){return new ActiveXObject("Microsoft.XMLHTTP")});var l=r.xhr=e.ajax(n.extend(s,r));return i.trigger("request",i,l,r),l};var C={create:"POST",update:"PUT",patch:"PATCH",delete:"DELETE",read:"GET"};e.ajax=function(){return e.$.ajax.apply(e.$,arguments)};var $=e.Router=function(t){t||(t={}),t.routes&&(this.routes=t.routes),this._bindRoutes(),this.initialize.apply(this,arguments)},S=/\((.*?)\)/g,E=/(\(\?)?:\w+/g,A=/\*\w+/g,I=/[\-{}\[\]+?.,\\\^$|#\s]/g;n.extend($.prototype,c,{initialize:function(){},route:function(t,i,r){n.isRegExp(t)||(t=this._routeToRegExp(t)),n.isFunction(i)&&(r=i,i=""),r||(r=this[i]);var o=this;return e.history.route(t,function(n){var s=o._extractParameters(t,n);r&&r.apply(o,s),o.trigger.apply(o,["route:"+i].concat(s)),o.trigger("route",i,s),e.history.trigger("route",o,i,s)}),this},navigate:function(t,n){return e.history.navigate(t,n),this},_bindRoutes:function(){if(this.routes){this.routes=n.result(this,"routes");for(var t,e=n.keys(this.routes);null!=(t=e.pop());)this.route(t,this.routes[t])}},_routeToRegExp:function(t){return t=t.replace(I,"\\$&").replace(S,"(?:$1)?").replace(E,function(t,e){return e?t:"([^/]+)"}).replace(A,"(.*?)"),new RegExp("^"+t+"$")},_extractParameters:function(t,e){var i=t.exec(e).slice(1);return n.map(i,function(t){return t?decodeURIComponent(t):null})}});var M=e.History=function(){this.handlers=[],n.bindAll(this,"checkUrl"),"undefined"!=typeof window&&(this.location=window.location,this.history=window.history)},j=/^[#\/]|\s+$/g,D=/^\/+|\/+$/g,O=/msie [\w.]+/,N=/\/$/;M.started=!1,n.extend(M.prototype,c,{interval:50,getHash:function(t){var e=(t||this).location.href.match(/#(.*)$/);return e?e[1]:""},getFragment:function(t,e){if(null==t)if(this._hasPushState||!this._wantsHashChange||e){t=this.location.pathname;var n=this.root.replace(N,"");t.indexOf(n)||(t=t.substr(n.length))}else t=this.getHash();return t.replace(j,"")},start:function(t){if(M.started)throw new Error("Backbone.history has already been started");M.started=!0,this.options=n.extend({},{root:"/"},this.options,t),this.root=this.options.root,this._wantsHashChange=this.options.hashChange!==!1,this._wantsPushState=!!this.options.pushState,this._hasPushState=!!(this.options.pushState&&this.history&&this.history.pushState);var i=this.getFragment(),r=document.documentMode,o=O.exec(navigator.userAgent.toLowerCase())&&(!r||r<=7);this.root=("/"+this.root+"/").replace(D,"/"),o&&this._wantsHashChange&&(this.iframe=e.$('<iframe src="javascript:0" tabindex="-1" />').hide().appendTo("body")[0].contentWindow,this.navigate(i)),this._hasPushState?e.$(window).on("popstate",this.checkUrl):this._wantsHashChange&&"onhashchange"in window&&!o?e.$(window).on("hashchange",this.checkUrl):this._wantsHashChange&&(this._checkUrlInterval=setInterval(this.checkUrl,this.interval)),this.fragment=i;var s=this.location,a=s.pathname.replace(/[^\/]$/,"$&/")===this.root;return this._wantsHashChange&&this._wantsPushState&&!this._hasPushState&&!a?(this.fragment=this.getFragment(null,!0),this.location.replace(this.root+this.location.search+"#"+this.fragment),!0):(this._wantsPushState&&this._hasPushState&&a&&s.hash&&(this.fragment=this.getHash().replace(j,""),this.history.replaceState({},document.title,this.root+this.fragment+s.search)),this.options.silent?void 0:this.loadUrl())},stop:function(){e.$(window).off("popstate",this.checkUrl).off("hashchange",this.checkUrl),clearInterval(this._checkUrlInterval),M.started=!1},route:function(t,e){this.handlers.unshift({route:t,callback:e})},checkUrl:function(t){var e=this.getFragment();return e===this.fragment&&this.iframe&&(e=this.getFragment(this.getHash(this.iframe))),e!==this.fragment&&(this.iframe&&this.navigate(e),void(this.loadUrl()||this.loadUrl(this.getHash())))},loadUrl:function(t){var e=this.fragment=this.getFragment(t),i=n.any(this.handlers,function(t){if(t.route.test(e))return t.callback(e),!0});return i},navigate:function(t,e){if(!M.started)return!1;if(e&&e!==!0||(e={trigger:e}),t=this.getFragment(t||""),this.fragment!==t){this.fragment=t;var n=this.root+t;if(this._hasPushState)this.history[e.replace?"replaceState":"pushState"]({},document.title,n);else{if(!this._wantsHashChange)return this.location.assign(n);this._updateHash(this.location,t,e.replace),this.iframe&&t!==this.getFragment(this.getHash(this.iframe))&&(e.replace||this.iframe.document.open().close(),this._updateHash(this.iframe.location,t,e.replace))}e.trigger&&this.loadUrl(t)}},_updateHash:function(t,e,n){if(n){var i=t.href.replace(/(javascript:|#).*$/,"");t.replace(i+"#"+e)}else t.hash="#"+e}}),e.history=new M;var L=function(t,e){var i,r=this;i=t&&n.has(t,"constructor")?t.constructor:function(){return r.apply(this,arguments)},n.extend(i,r,e);var o=function(){this.constructor=i};return o.prototype=r.prototype,i.prototype=new o,t&&n.extend(i.prototype,t),i.__super__=r.prototype,i};f.extend=v.extend=$.extend=x.extend=M.extend=L;var P=function(){throw new Error('A "url" property or function must be specified')},R=function(t,e){var n=e.error;e.error=function(i){n&&n(t,i,e),t.trigger("error",t,i,e)}};return e})},function(t,e){/*! 32 * Bootstrap v3.3.6 (http://getbootstrap.com) 33 * Copyright 2011-2016 Twitter, Inc. 34 * Licensed under the MIT license 35 */ 36if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(t){"use strict";var e=t.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1==e[0]&&9==e[1]&&e[2]<1||e[0]>2)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 3")}(jQuery),+function(t){"use strict";function e(){var t=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var n in e)if(void 0!==t.style[n])return{end:e[n]};return!1}t.fn.emulateTransitionEnd=function(e){var n=!1,i=this;t(this).one("bsTransitionEnd",function(){n=!0});var r=function(){n||t(i).trigger(t.support.transition.end)};return setTimeout(r,e),this},t(function(){t.support.transition=e(),t.support.transition&&(t.event.special.bsTransitionEnd={bindType:t.supp
vendor: 4,790 bytes, line 36
36ort.transition.end,delegateType:t.support.transition.end,handle:function(e){if(t(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}})})}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var n=t(this),r=n.data("bs.alert");r||n.data("bs.alert",r=new i(this)),"string"==typeof e&&r[e].call(n)})}var n='[data-dismiss="alert"]',i=function(e){t(e).on("click",n,this.close)};i.VERSION="3.3.6",i.TRANSITION_DURATION=150,i.prototype.close=function(e){function n(){s.detach().trigger("closed.bs.alert").remove()}var r=t(this),o=r.attr("data-target");o||(o=r.attr("href"),o=o&&o.replace(/.*(?=#[^\s]*$)/,""));var s=t(o);e&&e.preventDefault(),s.length||(s=r.closest(".alert")),s.trigger(e=t.Event("close.bs.alert")),e.isDefaultPrevented()||(s.removeClass("in"),t.support.transition&&s.hasClass("fade")?s.one("bsTransitionEnd",n).emulateTransitionEnd(i.TRANSITION_DURATION):n())};var r=t.fn.alert;t.fn.alert=e,t.fn.alert.Constructor=i,t.fn.alert.noConflict=function(){return t.fn.alert=r,this},t(document).on("click.bs.alert.data-api",n,i.prototype.close)}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var i=t(this),r=i.data("bs.button"),o="object"==typeof e&&e;r||i.data("bs.button",r=new n(this,o)),"toggle"==e?r.toggle():e&&r.setState(e)})}var n=function(e,i){this.$element=t(e),this.options=t.extend({},n.DEFAULTS,i),this.isLoading=!1};n.VERSION="3.3.6",n.DEFAULTS={loadingText:"loading..."},n.prototype.setState=function(e){var n="disabled",i=this.$element,r=i.is("input")?"val":"html",o=i.data();e+="Text",null==o.resetText&&i.data("resetText",i[r]()),setTimeout(t.proxy(function(){i[r](null==o[e]?this.options[e]:o[e]),"loadingText"==e?(this.isLoading=!0,i.addClass(n).attr(n,n)):this.isLoading&&(this.isLoading=!1,i.removeClass(n).removeAttr(n))},this),0)},n.prototype.toggle=function(){var t=!0,e=this.$element.closest('[data-toggle="buttons"]');if(e.length){var n=this.$element.find("input");"radio"==n.prop("type")?(n.prop("checked")&&(t=!1),e.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==n.prop("type")&&(n.prop("checked")!==this.$element.hasClass("active")&&(t=!1),this.$element.toggleClass("active")),n.prop("checked",this.$element.hasClass("active")),t&&n.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var i=t.fn.button;t.fn.button=e,t.fn.button.Constructor=n,t.fn.button.noConflict=function(){return t.fn.button=i,this},t(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(n){var i=t(n.target).closest(".btn");e.call(i,"toggle"),t(n.target).is('input[type="radio"]')||t(n.target).is('input[type="checkbox"]')||(n.preventDefault(),i.is("input,button")?i.trigger("focus"):i.find("input:visible,button:visible").first().trigger("focus"))}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(e){t(e.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(e.type))})}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var i=t(this),r=i.data("bs.carousel"),o=t.extend({},n.DEFAULTS,i.data(),"object"==typeof e&&e),s="string"==typeof e?e:o.slide;r||i.data("bs.carousel",r=new n(this,o)),"number"==typeof e?r.to(e):s?r[s]():o.interval&&r.pause().cycle()})}var n=function(e,n){this.$element=t(e),this.$indicators=this.$element.find(".carousel-indicators"),this.options=n,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",t.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",t.proxy(this.pause,this)).on("mouseleave.bs.carousel",t.proxy(this.cycle,this))};n.VERSION="3.3.6",n.TRANSITION_DURATION=600,n.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},n.prototype.keydown=function(t){if(!/input|textarea/i.test(t.target.tagName)){switch(t.which){case 37:this.prev();break;case 39:this.next();break;default:return}t.preventDefault()}},n.prototype.cycle=function(e){return e||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(t.proxy(this.next,this),this.options.interval)),this},n.prototype.getItemIndex=function(t){return this.$items=t.parent().children(".item"),this.$items.index(t||this.$active)},n.prototype.getItemForDirection=function(t,e){var n=this.getItemIndex(e),i="prev"==t&&0===n||"next"==t&&n==this.$items.length-1;if(i&&!this.options.wrap)return e;var r="prev"==t?-1:1,o=(n+r)%this.$items.length;return this.$items.eq(o)},n.prototype.to=function(t){var e=this,n=this.getItemIndex(this.$active=this.$element.find(".
36item.active"));if(!(t>this.$items.length-1||t<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){e.to(t)}):n==t?this.pause().cycle():this.slide(t>n?"next":"prev",this.$items.eq(t))},n.prototype.pause=function(e){return e||(this.paused=!0),this.$element.find(".next, .prev").length&&t.support.transition&&(this.$element.trigger(t.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},n.prototype.next=function(){if(!this.sliding)return this.slide("next")},n.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},n.prototype.slide=function(e,i){var r=this.$element.find(".item.active"),o=i||this.getItemForDirection(e,r),s=this.interval,a="next"==e?"left":"right",l=this;if(o.hasClass("active"))return this.sliding=!1;var c=o[0],u=t.Event("slide.bs.carousel",{relatedTarget:c,direction:a});if(this.$element.trigger(u),!u.isDefaultPrevented()){if(this.sliding=!0,s&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var h=t(this.$indicators.children()[this.getItemIndex(o)]);h&&h.addClass("active")}var p=t.Event("slid.bs.carousel",{relatedTarget:c,direction:a});return t.support.transition&&this.$element.hasClass("slide")?(o.addClass(e),o[0].offsetWidth,r.addClass(a),o.addClass(a),r.one("bsTransitionEnd",function(){o.removeClass([e,a].join(" ")).addClass("active"),r.removeClass(["active",a].join(" ")),l.sliding=!1,setTimeout(function(){l.$element.trigger(p)},0)}).emulateTransitionEnd(n.TRANSITION_DURATION)):(r.removeClass("active"),o.addClass("active"),this.sliding=!1,this.$element.trigger(p)),s&&this.cycle(),this}};var i=t.fn.carousel;t.fn.carousel=e,t.fn.carousel.Constructor=n,t.fn.carousel.noConflict=function(){return t.fn.carousel=i,this};var r=function(n){var i,r=t(this),o=t(r.attr("data-target")||(i=r.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,""));if(o.hasClass("carousel")){var s=t.extend({},o.data(),r.data()),a=r.attr("data-slide-to");a&&(s.interval=!1),e.call(o,s),a&&o.data("bs.carousel").to(a),n.preventDefault()}};t(document).on("click.bs.carousel.data-api","[data-slide]",r).on("click.bs.carousel.data-api","[data-slide-to]",r),t(window).on("load",function(){t('[data-ride="carousel"]').each(function(){var n=t(this);e.call(n,n.data())})})}(jQuery),+function(t){"use strict";function e(e){var n,i=e.attr("data-target")||(n=e.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,"");return t(i)}function n(e){return this.each(function(){var n=t(this),r=n.data("bs.collapse"),o=t.extend({},i.DEFAULTS,n.data(),"object"==typeof e&&e);!r&&o.toggle&&/show|hide/.test(e)&&(o.toggle=!1),r||n.data("bs.collapse",r=new i(this,o)),"string"==typeof e&&r[e]()})}var i=function(e,n){this.$element=t(e),this.options=t.extend({},i.DEFAULTS,n),this.$trigger=t('[data-toggle="collapse"][href="#'+e.id+'"],[data-toggle="collapse"][data-target="#'+e.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};i.VERSION="3.3.6",i.TRANSITION_DURATION=350,i.DEFAULTS={toggle:!0},i.prototype.dimension=function(){var t=this.$element.hasClass("width");return t?"width":"height"},i.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var e,r=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(r&&r.length&&(e=r.data("bs.collapse"),e&&e.transitioning))){var o=t.Event("show.bs.collapse");if(this.$element.trigger(o),!o.isDefaultPrevented()){r&&r.length&&(n.call(r,"hide"),e||r.data("bs.collapse",null));var s=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[s](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var a=function(){this.$element.removeClass("collapsing").addClass("collapse in")[s](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!t.support.transition)return a.call(this);var l=t.camelCase(["scroll",s].join("-"));this.$element.one("bsTransitionEnd",t.proxy(a,this)).emulateTransitionEnd(i.TRANSITION_DURATION)[s](this.$element[0][l])}}}},i.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var e=t.Event("hide.bs.collapse");if(this.$element.trigger(e),!e.isDefaultPrevented()){var n=this.dimension();this.$element[n](this.$element[n]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var r=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};return t.support.transition?void this.$element[n](0).one("bsTransitionEnd",t.proxy(r,this)).emulateTransitionEnd(i.TRANSITION_DURATION):r.call(this)}}},i.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},i.prototype.getParent=function(){return t(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(t.proxy(function(n,i){var r=t(i);this.addAriaAndCollapsedClass(e(r),r)},this)).end()},i.prototype.addAriaAndCollapsedClass=function(t,e){var n=t.hasClass("in");t.attr("aria-expanded",n),e.toggleClass("collapsed",!n).attr("aria-expanded",n)};var r=t.fn.collapse;t.fn.collapse=n,t.fn.collapse.Constructor=i,t.fn.collapse.noConflict=function(){return t.fn.collapse=r,this},t(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(i){var r=t(this);r.attr("data-target")||i.preventDefault();var o=e(r),s=o.data("bs.collapse"),a=s?"toggle":r.data();n.call(o,a)})}(jQuery),+function(t){"use strict";function e(e){var n=e.attr("data-target");n||(n=e.attr("href"),n=n&&/#[A-Za-z]/.test(n)&&n.replace(/.*(?=#[^\s]*$)/,""));var i=n&&t(n);return i&&i.length?i:e.parent()}function n(n){n&&3===n.which||(t(r).remove(),t(o).each(function(){var i=t(this),r=e(i),o={relatedTarget:this};r.hasClass("open")&&(n&&"click"==n.type&&/input|textarea/i.test(n.target.tagName)&&t.contains(r[0],n.target)||(r.trigger(n=t.Event("hide.bs.dropdown",o)),n.isDefaultPrevented()||(i.attr("aria-expanded","fal
36se"),r.removeClass("open").trigger(t.Event("hidden.bs.dropdown",o)))))}))}function i(e){return this.each(function(){var n=t(this),i=n.data("bs.dropdown");i||n.data("bs.dropdown",i=new s(this)),"string"==typeof e&&i[e].call(n)})}var r=".dropdown-backdrop",o='[data-toggle="dropdown"]',s=function(e){t(e).on("click.bs.dropdown",this.toggle)};s.VERSION="3.3.6",s.prototype.toggle=function(i){var r=t(this);if(!r.is(".disabled, :disabled")){var o=e(r),s=o.hasClass("open");if(n(),!s){"ontouchstart"in document.documentElement&&!o.closest(".navbar-nav").length&&t(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(t(this)).on("click",n);var a={relatedTarget:this};if(o.trigger(i=t.Event("show.bs.dropdown",a)),i.isDefaultPrevented())return;r.trigger("focus").attr("aria-expanded","true"),o.toggleClass("open").trigger(t.Event("shown.bs.dropdown",a))}return!1}},s.prototype.keydown=function(n){if(/(38|40|27|32)/.test(n.which)&&!/input|textarea/i.test(n.target.tagName)){var i=t(this);if(n.preventDefault(),n.stopPropagation(),!i.is(".disabled, :disabled")){var r=e(i),s=r.hasClass("open");if(!s&&27!=n.which||s&&27==n.which)return 27==n.which&&r.find(o).trigger("focus"),i.trigger("click");var a=" li:not(.disabled):visible a",l=r.find(".dropdown-menu"+a);if(l.length){var c=l.index(n.target);38==n.which&&c>0&&c--,40==n.which&&c<l.length-1&&c++,~c||(c=0),l.eq(c).trigger("focus")}}}};var a=t.fn.dropdown;t.fn.dropdown=i,t.fn.dropdown.Constructor=s,t.fn.dropdown.noConflict=function(){return t.fn.dropdown=a,this},t(document).on("click.bs.dropdown.data-api",n).on("click.bs.dropdown.data-api",".dropdown form",function(t){t.stopPropagation()}).on("click.bs.dropdown.data-api",o,s.prototype.toggle).on("keydown.bs.dropdown.data-api",o,s.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",s.prototype.keydown)}(jQuery),+function(t){"use strict";function e(e,i){return this.each(function(){var r=t(this),o=r.data("bs.modal"),s=t.extend({},n.DEFAULTS,r.data(),"object"==typeof e&&e);o||r.data("bs.modal",o=new n(this,s)),"string"==typeof e?o[e](i):s.show&&o.show(i)})}var n=function(e,n){this.options=n,this.$body=t(document.body),this.$element=t(e),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,t.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};n.VERSION="3.3.6",n.TRANSITION_DURATION=300,n.BACKDROP_TRANSITION_DURATION=150,n.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},n.prototype.toggle=function(t){return this.isShown?this.hide():this.show(t)},n.prototype.show=function(e){var i=this,r=t.Event("show.bs.modal",{relatedTarget:e});this.$element.trigger(r),this.isShown||r.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',t.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){i.$element.one("mouseup.dismiss.bs.modal",function(e){t(e.target).is(i.$element)&&(i.ignoreBackdropClick=!0)})}),this.backdrop(function(){var r=t.support.transition&&i.$element.hasClass("fade");i.$element.parent().length||i.$element.appendTo(i.$body),i.$element.show().scrollTop(0),i.adjustDialog(),r&&i.$element[0].offsetWidth,i.$element.addClass("in"),i.enforceFocus();var o=t.Event("shown.bs.modal",{relatedTarget:e});r?i.$dialog.one("bsTransitionEnd",function(){i.$element.trigger("focus").trigger(o)}).emulateTransitionEnd(n.TRANSITION_DURATION):i.$element.trigger("focus").trigger(o)}))},n.prototype.hide=function(e){e&&e.preventDefault(),e=t.Event("hide.bs.modal"),this.$element.trigger(e),this.isShown&&!e.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),t(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),t.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",t.proxy(this.hideModal,this)).emulateTransitionEnd(n.TRANSITION_DURATION):this.hideModal())},n.prototype.enforceFocus=function(){t(document).off("focusin.bs.modal").on("focusin.bs.modal",t.proxy(function(t){document===t.target||this.$element[0]===t.target||this.$element.has(t.target).length||this.$element.trigger("focus")},this))},n.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("key
36down.dismiss.bs.modal",t.proxy(function(t){27==t.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},n.prototype.resize=function(){this.isShown?t(window).on("resize.bs.modal",t.proxy(this.handleUpdate,this)):t(window).off("resize.bs.modal")},n.prototype.hideModal=function(){var t=this;this.$element.hide(),this.backdrop(function(){t.$body.removeClass("modal-open"),t.resetAdjustments(),t.resetScrollbar(),t.$element.trigger("hidden.bs.modal")})},n.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},n.prototype.backdrop=function(e){var i=this,r=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var o=t.support.transition&&r;if(this.$backdrop=t(document.createElement("div")).addClass("modal-backdrop "+r).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",t.proxy(function(t){return this.ignoreBackdropClick?void(this.ignoreBackdropClick=!1):void(t.target===t.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide()))},this)),o&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!e)return;o?this.$backdrop.one("bsTransitionEnd",e).emulateTransitionEnd(n.BACKDROP_TRANSITION_DURATION):e()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var s=function(){i.removeBackdrop(),e&&e()};t.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",s).emulateTransitionEnd(n.BACKDROP_TRANSITION_DURATION):s()}else e&&e()},n.prototype.handleUpdate=function(){this.adjustDialog()},n.prototype.adjustDialog=function(){var t=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&t?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!t?this.scrollbarWidth:""})},n.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},n.prototype.checkScrollbar=function(){var t=window.innerWidth;if(!t){var e=document.documentElement.getBoundingClientRect();t=e.right-Math.abs(e.left)}this.bodyIsOverflowing=document.body.clientWidth<t,this.scrollbarWidth=this.measureScrollbar()},n.prototype.setScrollbar=function(){var t=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"",this.bodyIsOverflowing&&this.$body.css("padding-right",t+this.scrollbarWidth)},n.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)},n.prototype.measureScrollbar=function(){var t=document.createElement("div");t.className="modal-scrollbar-measure",this.$body.append(t);var e=t.offsetWidth-t.clientWidth;return this.$body[0].removeChild(t),e};var i=t.fn.modal;t.fn.modal=e,t.fn.modal.Constructor=n,t.fn.modal.noConflict=function(){return t.fn.modal=i,this},t(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(n){var i=t(this),r=i.attr("href"),o=t(i.attr("data-target")||r&&r.replace(/.*(?=#[^\s]+$)/,"")),s=o.data("bs.modal")?"toggle":t.extend({remote:!/#/.test(r)&&r},o.data(),i.data());i.is("a")&&n.preventDefault(),o.one("show.bs.modal",function(t){t.isDefaultPrevented()||o.one("hidden.bs.modal",function(){i.is(":visible")&&i.trigger("focus")})}),e.call(o,s,this)})}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var i=t(this),r=i.data("bs.tooltip"),o="object"==typeof e&&e;!r&&/destroy|hide/.test(e)||(r||i.data("bs.tooltip",r=new n(this,o)),"string"==typeof e&&r[e]())})}var n=function(t,e){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",t,e)};n.VERSION="3.3.6",n.TRANSITION_DURATION=150,n.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},n.prototype.init=function(e,n,i){if(this.enabled=!0,this.type=e,this.$element=t(n),this.options=this.getOptions(i),this.$viewport=this.options.viewport&&t(t.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var r=this.options.trigger.split(" "),o=r.length;o--;){var s=r[o];if("click"==s)this.$element.on("click."+this.type,this.options.selector,t.proxy(this.toggle,this));else if("manual"!=s){var a="hover"==s?"mouseenter":"focusin",l="hover"==s?"mouseleave":"focusout";this.$element.on(a+"."+this.type,this.options.selector,t.proxy(this.enter,this)),this.$element.on(l+"."+this.type,this.options.selector,t.proxy(this.leave,this))}}this.options.selector?this._options=t.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},n.prototype.getDefaults=function(){return n.DEFAULTS},n.prototype.getOptions=function(e){return e=t.extend({},this.getDefaults(),this.$element.data(),e),e.delay&&"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),e},n.prototype.getDelegateOptions=function(){var e={},n=this.getDefaults();return this._options&&t.each(this._options,function(t,i){n[t]!=i&&(e[t]=i)}),e},n.prototype.enter=function(e){var n=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);return n||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,n)),e instanceof t.Event&&(n.inState["focusin"==e.type?"focu
36s":"hover"]=!0),n.tip().hasClass("in")||"in"==n.hoverState?void(n.hoverState="in"):(clearTimeout(n.timeout),n.hoverState="in",n.options.delay&&n.options.delay.show?void(n.timeout=setTimeout(function(){"in"==n.hoverState&&n.show()},n.options.delay.show)):n.show())},n.prototype.isInStateTrue=function(){for(var t in this.inState)if(this.inState[t])return!0;return!1},n.prototype.leave=function(e){var n=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);if(n||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,n)),e instanceof t.Event&&(n.inState["focusout"==e.type?"focus":"hover"]=!1),!n.isInStateTrue())return clearTimeout(n.timeout),n.hoverState="out",n.options.delay&&n.options.delay.hide?void(n.timeout=setTimeout(function(){"out"==n.hoverState&&n.hide()},n.options.delay.hide)):n.hide()},n.prototype.show=function(){var e=t.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(e);var i=t.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(e.isDefaultPrevented()||!i)return;var r=this,o=this.tip(),s=this.getUID(this.type);this.setContent(),o.attr("id",s),this.$element.attr("aria-describedby",s),this.options.animation&&o.addClass("fade");var a="function"==typeof this.options.placement?this.options.placement.call(this,o[0],this.$element[0]):this.options.placement,l=/\s?auto?\s?/i,c=l.test(a);c&&(a=a.replace(l,"")||"top"),o.detach().css({top:0,left:0,display:"block"}).addClass(a).data("bs."+this.type,this),this.options.container?o.appendTo(this.options.container):o.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var u=this.getPosition(),h=o[0].offsetWidth,p=o[0].offsetHeight;if(c){var d=a,f=this.getPosition(this.$viewport);a="bottom"==a&&u.bottom+p>f.bottom?"top":"top"==a&&u.top-p<f.top?"bottom":"right"==a&&u.right+h>f.width?"left":"left"==a&&u.left-h<f.left?"right":a,o.removeClass(d).addClass(a)}var m=this.getCalculatedOffset(a,u,h,p);this.applyPlacement(m,a);var g=function(){var t=r.hoverState;r.$element.trigger("shown.bs."+r.type),r.hoverState=null,"out"==t&&r.leave(r)};t.support.transition&&this.$tip.hasClass("fade")?o.one("bsTransitionEnd",g).emulateTransitionEnd(n.TRANSITION_DURATION):g()}},n.prototype.applyPlacement=function(e,n){var i=this.tip(),r=i[0].offsetWidth,o=i[0].offsetHeight,s=parseInt(i.css("margin-top"),10),a=parseInt(i.css("margin-left"),10);isNaN(s)&&(s=0),isNaN(a)&&(a=0),e.top+=s,e.left+=a,t.offset.setOffset(i[0],t.extend({using:function(t){i.css({top:Math.round(t.top),left:Math.round(t.left)})}},e),0),i.addClass("in");var l=i[0].offsetWidth,c=i[0].offsetHeight;"top"==n&&c!=o&&(e.top=e.top+o-c);var u=this.getViewportAdjustedDelta(n,e,l,c);u.left?e.left+=u.left:e.top+=u.top;var h=/top|bottom/.test(n),p=h?2*u.left-r+l:2*u.top-o+c,d=h?"offsetWidth":"offsetHeight";i.offset(e),this.replaceArrow(p,i[0][d],h)},n.prototype.replaceArrow=function(t,e,n){this.arrow().css(n?"left":"top",50*(1-t/e)+"%").css(n?"top":"left","")},n.prototype.setContent=function(){var t=this.tip(),e=this.getTitle();t.find(".tooltip-inner")[this.options.html?"html":"text"](e),t.removeClass("fade in top bottom left right")},n.prototype.hide=function(e){function i(){"in"!=r.hoverState&&o.detach(),r.$element.removeAttr("aria-describedby").trigger("hidden.bs."+r.type),e&&e()}var r=this,o=t(this.$tip),s=t.Event("hide.bs."+this.type);if(this.$element.trigger(s),!s.isDefaultPrevented())return o.removeClass("in"),t.support.transition&&o.hasClass("fade")?o.one("bsTransitionEnd",i).emulateTransitionEnd(n.TRANSITION_DURATION):i(),this.hoverState=null,this},n.prototype.fixTitle=function(){var t=this.$element;(t.attr("title")||"string"!=typeof t.attr("data-original-title"))&&t.attr("data-original-title",t.attr("title")||"").attr("title","")},n.prototype.hasContent=function(){return this.getTitle()},n.prototype.getPosition=function(e){e=e||this.$element;var n=e[0],i="BODY"==n.tagName,r=n.getBoundingClientRect();null==r.width&&(r=t.extend({},r,{width:r.right-r.left,height:r.bottom-r.top}));var o=i?{top:0,left:0}:e.offset(),s={scroll:i?document.documentElement.scrollTop||document.body.scrollTop:e.scrollTop()},a=i?{width:t(window).width(),height:t(window).height()}:null;return t.extend({},r,s,a,o)},n.prototype.getCalculatedOffset=function(t,e,n,i){return"bottom"==t?{top:e.top+e.height,left:e.left+e.width/2-n/2}:"top"==t?{top:e.top-i,left:e.left+e.width/2-n/2}:"left"==t?{top:e.top+e.height/2-i/2,left:e.left-n}:{top:e.top+e.height/2-i/2,left:e.left+e.width}},n.prototype.getViewportAdjustedDelta=function(t,e,n,i){var r={top:0,left:0};if(!this.$viewport)return r;var o=this.options.viewport&&this.options.viewport.padding||0,s=this.getPosition(this.$viewport);if(/right|left/.test(t)){var a=e.top-o-s.scroll,l=e.top+o-s.scroll+i;a<s.top?r.top=s.top-a:l>s.top+s.height&&(r.top=s.top+s.height-l)}else{var c=e.left-o,u=e.left+o+n;c<s.left?r.left=s.left-c:u>s.right&&(r.left=s.left+s.width-u)}return r},n.prototype.getTitle=function(){var t,e=this.$element,n=this.options;return t=e.attr("data-original-title")||("function"==typeof n.title?n.title.call(e[0]):n.title)},n.prototype.getUID=function(t){do t+=~~(1e6*Math.random());while(document.getElementById(t));return t},n.prototype.tip=function(){if(!this.$tip&&(this.$tip=t(this.options.template),1!=this.$tip.length))throw new Error(this.t
vendor: 9,659 bytes, lines 36-37
36ype+" `template` option must consist of exactly 1 top-level element!");return this.$tip},n.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},n.prototype.enable=function(){this.enabled=!0},n.prototype.disable=function(){this.enabled=!1},n.prototype.toggleEnabled=function(){this.enabled=!this.enabled},n.prototype.toggle=function(e){var n=this;e&&(n=t(e.currentTarget).data("bs."+this.type),n||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,n))),e?(n.inState.click=!n.inState.click,n.isInStateTrue()?n.enter(n):n.leave(n)):n.tip().hasClass("in")?n.leave(n):n.enter(n)},n.prototype.destroy=function(){var t=this;clearTimeout(this.timeout),this.hide(function(){t.$element.off("."+t.type).removeData("bs."+t.type),t.$tip&&t.$tip.detach(),t.$tip=null,t.$arrow=null,t.$viewport=null})};var i=t.fn.tooltip;t.fn.tooltip=e,t.fn.tooltip.Constructor=n,t.fn.tooltip.noConflict=function(){return t.fn.tooltip=i,this}}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var i=t(this),r=i.data("bs.popover"),o="object"==typeof e&&e;!r&&/destroy|hide/.test(e)||(r||i.data("bs.popover",r=new n(this,o)),"string"==typeof e&&r[e]())})}var n=function(t,e){this.init("popover",t,e)};if(!t.fn.tooltip)throw new Error("Popover requires tooltip.js");n.VERSION="3.3.6",n.DEFAULTS=t.extend({},t.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),n.prototype=t.extend({},t.fn.tooltip.Constructor.prototype),n.prototype.constructor=n,n.prototype.getDefaults=function(){return n.DEFAULTS},n.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),n=this.getContent();t.find(".popover-title")[this.options.html?"html":"text"](e),t.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof n?"html":"append":"text"](n),t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},n.prototype.hasContent=function(){return this.getTitle()||this.getContent()},n.prototype.getContent=function(){var t=this.$element,e=this.options;return t.attr("data-content")||("function"==typeof e.content?e.content.call(t[0]):e.content)},n.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var i=t.fn.popover;t.fn.popover=e,t.fn.popover.Constructor=n,t.fn.popover.noConflict=function(){return t.fn.popover=i,this}}(jQuery),+function(t){"use strict";function e(n,i){this.$body=t(document.body),this.$scrollElement=t(t(n).is(document.body)?window:n),this.options=t.extend({},e.DEFAULTS,i),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",t.proxy(this.process,this)),this.refresh(),this.process()}function n(n){return this.each(function(){var i=t(this),r=i.data("bs.scrollspy"),o="object"==typeof n&&n;r||i.data("bs.scrollspy",r=new e(this,o)),"string"==typeof n&&r[n]()})}e.VERSION="3.3.6",e.DEFAULTS={offset:10},e.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},e.prototype.refresh=function(){var e=this,n="offset",i=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),t.isWindow(this.$scrollElement[0])||(n="position",i=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var e=t(this),r=e.data("target")||e.attr("href"),o=/^#./.test(r)&&t(r);return o&&o.length&&o.is(":visible")&&[[o[n]().top+i,r]]||null}).sort(function(t,e){return t[0]-e[0]}).each(function(){e.offsets.push(this[0]),e.targets.push(this[1])})},e.prototype.process=function(){var t,e=this.$scrollElement.scrollTop()+this.options.offset,n=this.getScrollHeight(),i=this.options.offset+n-this.$scrollElement.height(),r=this.offsets,o=this.targets,s=this.activeTarget;if(this.scrollHeight!=n&&this.refresh(),e>=i)return s!=(t=o[o.length-1])&&this.activate(t);if(s&&e<r[0])return this.activeTarget=null,this.clear();for(t=r.length;t--;)s!=o[t]&&e>=r[t]&&(void 0===r[t+1]||e<r[t+1])&&this.activate(o[t])},e.prototype.activate=function(e){this.activeTarget=e,this.clear();var n=this.selector+'[data-target="'+e+'"],'+this.selector+'[href="'+e+'"]',i=t(n).parents("li").addClass("active"); 37i.parent(".dropdown-menu").length&&(i=i.closest("li.dropdown").addClass("active")),i.trigger("activate.bs.scrollspy")},e.prototype.clear=function(){t(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var i=t.fn.scrollspy;t.fn.scrollspy=n,t.fn.scrollspy.Constructor=e,t.fn.scrollspy.noConflict=function(){return t.fn.scrollspy=i,this},t(window).on("load.bs.scrollspy.data-api",function(){t('[data-spy="scroll"]').each(function(){var e=t(this);n.call(e,e.data())})})}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var i=t(this),r=i.data("bs.tab");r||i.data("bs.tab",r=new n(this)),"string"==typeof e&&r[e]()})}var n=function(e){this.element=t(e)};n.VERSION="3.3.6",n.TRANSITION_DURATION=150,n.prototype.show=function(){var e=this.element,n=e.closest("ul:not(.dropdown-menu)"),i=e.data("target");if(i||(i=e.attr("href"),i=i&&i.replace(/.*(?=#[^\s]*$)/,"")),!e.parent("li").hasClass("active")){var r=n.find(".active:last a"),o=t.Event("hide.bs.tab",{relatedTarget:e[0]}),s=t.Event("show.bs.tab",{relatedTarget:r[0]});if(r.trigger(o),e.trigger(s),!s.isDefaultPrevented()&&!o.isDefaultPrevented()){var a=t(i);this.activate(e.closest("li"),n),this.activate(a,a.parent(),function(){r.trigger({type:"hidden.bs.tab",relatedTarget:e[0]}),e.trigger({type:"shown.bs.tab",relatedTarget:r[0]})})}}},n.prototype.activate=function(e,i,r){function o(){s.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),e.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),a?(e[0].offsetWidth,e.addClass("in")):e.removeClass("fade"),e.parent(".dropdown-menu").length&&e.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),r&&r()}var s=i.find("> .active"),a=r&&t.support.transition&&(s.length&&s.hasClass("fade")||!!i.find("> .fade").length);s.length&&a?s.one("bsTransitionEnd",o).emulateTransitionEnd(n.TRANSITION_DURATION):o(),s.removeClass("in")};var i=t.fn.tab;t.fn.tab=e,t.fn.tab.Constructor=n,t.fn.tab.noConflict=function(){return t.fn.tab=i,this};var r=function(n){n.preventDefault(),e.call(t(this),"show")};t(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',r).on("click.bs.tab.data-api",'[data-toggle="pill"]',r)}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var i=t(this),r=i.data("bs.affix"),o="object"==typeof e&&e;r||i.data("bs.affix",r=new n(this,o)),"string"==typeof e&&r[e]()})}var n=function(e,i){this.options=t.extend({},n.DEFAULTS,i),this.$target=t(this.options.target).on("scroll.bs.affix.data-api",t.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",t.proxy(this.checkPositionWithEventLoop,this)),this.$element=t(e),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};n.VERSION="3.3.6",n.RESET="affix affix-top affix-bottom",n.DEFAULTS={offset:0,target:window},n.prototype.getState=function(t,e,n,i){var r=this.$target.scrollTop(),o=this.$element.offset(),s=this.$target.height();if(null!=n&&"top"==this.affixed)return r<n&&"top";if("bottom"==this.affixed)return null!=n?!(r+this.unpin<=o.top)&&"bottom":!(r+s<=t-i)&&"bottom";var a=null==this.affixed,l=a?r:o.top,c=a?s:e;return null!=n&&r<=n?"top":null!=i&&l+c>=t-i&&"bottom"},n.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(n.RESET).addClass("affix");var t=this.$target.scrollTop(),e=this.$element.offset();return this.pinnedOffset=e.top-t},n.prototype.checkPositionWithEventLoop=function(){setTimeout(t.proxy(this.checkPosition,this),1)},n.prototype.checkPosition=function(){if(this.$element.is(":visible")){var e=this.$element.height(),i=this.options.offset,r=i.top,o=i.bottom,s=Math.max(t(document).height(),t(document.body).height());"object"!=typeof i&&(o=r=i),"function"==typeof r&&(r=i.top(this.$element)),"function"==typeof o&&(o=i.bottom(this.$element));var a=this.getState(s,e,r,o);if(this.affixed!=a){null!=this.unpin&&this.$element.css("top","");var l="affix"+(a?"-"+a:""),c=t.Event(l+".bs.affix");if(this.$element.trigger(c),c.isDefaultPrevented())return;this.affixed=a,this.unpin="bottom"==a?this.getPinnedOffset():null,this.$element.removeClass(n.RESET).addClass(l).trigger(l.replace("affix","affixed")+".bs.affix")}"bottom"==a&&this.$element.offset({top:s-e-o})}};var i=t.fn.affix;t.fn.affix=e,t.fn.affix.Constructor=n,t.fn.affix.noConflict=function(){return t.fn.affix=i,this},t(window).on("load",function(){t('[data-spy="affix"]').each(function(){var n=t(this),i=n.data();i.offset=i.offset||{},null!=i.offsetBottom&&(i.offset.bottom=i.offsetBottom),null!=i.offsetTop&&(i.offset.top=i.offsetTop),e.call(n,i)})})}(jQuery)},function(t,e){!function(t,e,n){function i(n,i,r){var o=e.createElement(n);return i&&(o.id=G+i),r&&(o.style.cssText=r),t(o)}function r(t){var e=b.length,n=(P+t)%e;return n<0?e+n:n}function o(t,e){return Math.round((/%/.test(t)?("x"===e?w.width():w.height())/100:1)*parseInt(t,10))}function s(t){return M.photo||/\.(gif|png|jpe?g|bmp|ico)((#|\?).*)?$/i.test(t)}function a(){var e;M=t.extend({},t.data(L,W));
37for(e in M)t.isFunction(M[e])&&"on"!==e.slice(0,2)&&(M[e]=M[e].call(L));M.rel=M.rel||L.rel||"nofollow",M.href=M.href||t(L).attr("href"),M.title=M.title||L.title,"string"==typeof M.href&&(M.href=t.trim(M.href))}function l(e,n){t.event.trigger(e),n&&n.call(L)}function c(){var t,e,n,i=G+"Slideshow_",r="click."+G;M.slideshow&&b[1]?(e=function(){$.text(M.slideshowStop).unbind(r).bind(J,function(){(P<b.length-1||M.loop)&&(t=setTimeout(z.next,M.slideshowSpeed))}).bind(Q,function(){clearTimeout(t)}).one(r+" "+Z,n),p.removeClass(i+"off").addClass(i+"on"),t=setTimeout(z.next,M.slideshowSpeed)},n=function(){clearTimeout(t),$.text(M.slideshowStart).unbind([J,Q,Z,r].join(" ")).one(r,function(){z.next(),e()}),p.removeClass(i+"on").addClass(i+"off")},M.slideshowAuto?e():n()):p.removeClass(i+"off "+i+"on")}function u(e){if(!H){if(L=e,a(),b=t(L),P=0,"nofollow"!==M.rel&&(b=t("."+V).filter(function(){var e=t.data(this,W).rel||this.rel;return e===M.rel}),P=b.index(L),P===-1&&(b=b.add(L),P=b.length-1)),!q){if(q=F=!0,p.show(),M.returnFocus)try{L.blur(),t(L).one(Y,function(){try{this.focus()}catch(t){}})}catch(t){}h.css({opacity:+M.opacity,cursor:M.overlayClose?"pointer":"auto"}).show(),M.w=o(M.initialWidth,"x"),M.h=o(M.initialHeight,"y"),z.position(),et&&w.bind("resize."+nt+" scroll."+nt,function(){h.css({width:w.width(),height:w.height(),top:w.scrollTop(),left:w.scrollLeft()})}).trigger("resize."+nt),l(X,M.onOpen),I.add(T).hide(),A.html(M.close).show()}z.load(!0)}}var h,p,d,f,m,g,v,y,b,w,_,x,k,T,C,$,S,E,A,I,M,j,D,O,N,L,P,R,q,F,H,B,z,U={transition:"elastic",speed:300,width:!1,initialWidth:"600",innerWidth:!1,maxWidth:!1,height:!1,initialHeight:"450",innerHeight:!1,maxHeight:!1,scalePhotos:!0,scrolling:!0,inline:!1,html:!1,iframe:!1,fastIframe:!0,photo:!1,href:!1,title:!1,rel:!1,opacity:.9,preloading:!0,current:"image {current} of {total}",previous:"previous",next:"next",close:"close",open:!1,returnFocus:!0,loop:!0,slideshow:!1,slideshowAuto:!0,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",onOpen:!1,onLoad:!1,onComplete:!1,onCleanup:!1,onClosed:!1,overlayClose:!0,escKey:!0,arrowKey:!0,top:!1,bottom:!1,left:!1,right:!1,fixed:!1,data:void 0},W="colorbox",G="cbox",V=G+"Element",X=G+"_open",Q=G+"_load",J=G+"_complete",Z=G+"_cleanup",Y=G+"_closed",K=G+"_purge",tt=!1,et=!1,nt=G+"_IE6",it="div";z=t.fn[W]=t[W]=function(e,n){var i=this;if(e=e||{},z.init(),!i[0]){if(i.selector)return i;i=t("<a/>"),e.open=!0}return n&&(e.onComplete=n),i.each(function(){t.data(this,W,t.extend({},t.data(this,W)||U,e)),t(this).addClass(V)}),(t.isFunction(e.open)&&e.open.call(i)||e.open)&&u(i[0]),i},z.init=function(){if(!p){if(!t("body")[0])return void t(z.init);w=t(n),p=i(it).attr({id:W,class:tt?G+(et?"IE6":"IE"):""}),h=i(it,"Overlay",et?"position:absolute":"").hide(),d=i(it,"Wrapper"),f=i(it,"Content").append(_=i(it,"LoadedContent","width:0; height:0;
37 overflow:hidden"),k=i(it,"LoadingOverlay").add(i(it,"LoadingGraphic")),T=i(it,"Title"),C=i(it,"Current"),S=i(it,"Next"),E=i(it,"Previous"),$=i(it,"Slideshow").bind(X,c),A=i(it,"Close")),d.append(i(it).append(i(it,"TopLeft"),m=i(it,"TopCenter"),i(it,"TopRight")),i(it,!1,"clear:left").append(g=i(it,"MiddleLeft"),f,v=i(it,"MiddleRight")),i(it,!1,"clear:left").append(i(it,"BottomLeft"),y=i(it,"BottomCenter"),i(it,"BottomRight"))).find("div div").css({float:"left"}),x=i(it,!1,"position:absolute; width:9999px; visibility:hidden; display:none"),t("body").prepend(h,p.append(d,x)),j=m.height()+y.height()+f.outerHeight(!0)-f.height(),D=g.width()+v.width()+f.outerWidth(!0)-f.width(),O=_.outerHeight(!0),N=_.outerWidth(!0),p.css({"padding-bottom":j,"padding-right":D}).hide(),S.click(function(){z.next()}),E.click(function(){z.prev()}),A.click(function(){z.close()}),I=S.add(E).add(C).add($),h.click(function(){M.overlayClose&&z.close()}),t(e).bind("keydown."+G,function(t){var e=t.keyCode;q&&M.escKey&&27===e&&(t.preventDefault(),z.close()),q&&M.arrowKey&&b[1]&&(37===e?(t.preventDefault(),E.click()):39===e&&(t.preventDefault(),S.click()))})}},z.remove=function(){p.add(h).remove(),p=null,t("."+V).removeData(W).removeClass(V)},z.position=function(t,e){function n(t){m[0].style.width=y[0].style.width=f[0].style.width=t.style.width,k[0].style.height=k[1].style.height=f[0].style.height=g[0].style.height=v[0].style.height=t.style.height}var i=0,r=0,s=p.offset();w.unbind("resize."+G),p.css({top:-99999,left:-99999}),M.fixed&&!et?p.css({position:"fixed"}):(i=w.scrollTop(),r=w.scrollLeft(),p.css({position:"absolute"})),r+=M.right!==!1?Math.max(w.width()-M.w-N-D-o(M.right,"x"),0):M.left!==!1?o(M.left,"x"):Math.round(Math.max(w.width()-M.w-N-D,0)/2),i+=M.bottom!==!1?Math.max(w.height()-M.h-O-j-o(M.bottom,"y"),0):M.top!==!1?o(M.top,"y"):Math.round(Math.max(w.height()-M.h-O-j,0)/2),p.css({top:s.top,left:s.left}),t=p.width()===M.w+N&&p.height()===M.h+O?0:t||0,d[0].style.width=d[0].style.height="9999px",p.dequeue().animate({width:M.w+N,height:M.h+O,top:i,left:r},{duration:t,complete:function(){n(this),F=!1,d[0].style.width=M.w+N+D+"px",d[0].style.height=M.h+O+j+"px",e&&e(),setTimeout(function(){w.bind("resize."+G,z.position)},1)},step:function(){n(this)}})},z.resize=function(t){q&&(t=t||{},t.width&&(M.w=o(t.width,"x")-N-D),t.innerWidth&&(M.w=o(t.innerWidth,"x")),_.css({width:M.w}),t.height&&(M.h=o(t.height,"y")-O-j),t.innerHeight&&(M.h=o(t.innerHe
37ight,"y")),t.innerHeight||t.height||(_.css({height:"auto"}),M.h=_.height()),_.css({height:M.h}),z.position("none"===M.transition?0:M.speed))},z.prep=function(e){function n(){return M.w=M.w||_.width(),M.w=M.mw&&M.mw<M.w?M.mw:M.w,M.w}function o(){return M.h=M.h||_.height(),M.h=M.mh&&M.mh<M.h?M.mh:M.h,M.h}if(q){var a,c="none"===M.transition?0:M.speed;_.remove(),_=i(it,"LoadedContent").append(e),_.hide().appendTo(x.show()).css({width:n(),overflow:M.scrolling?"auto":"hidden"}).css({height:o()}).prependTo(f),x.hide(),t(R).css({float:"none"}),et&&t("select").not(p.find("select")).filter(function(){return"hidden"!==this.style.visibility}).css({visibility:"hidden"}).one(Z,function(){this.style.visibility="inherit"}),a=function(){function e(){tt&&p[0].style.removeAttribute("filter")}var n,o,a,u,h,d,f=b.length,m="frameBorder",g="allowTransparency";if(q){if(u=function(){clearTimeout(B),k.hide(),l(J,M.onComplete)},tt&&R&&_.fadeIn(100),T.html(M.title).add(_).show(),f>1){if("string"==typeof M.current&&C.html(M.current.replace("{current}",P+1).replace("{total}",f)).show(),S[M.loop||P<f-1?"show":"hide"]().html(M.next),E[M.loop||P?"show":"hide"]().html(M.previous),M.slideshow&&$.show(),M.preloading)for(n=[r(-1),r(1)];o=b[n.pop()];)h=t.data(o,W).href||o.href,t.isFunction(h)&&(h=h.call(o)),s(h)&&(d=new Image,d.src=h)}else I.hide();M.iframe?(a=i("iframe")[0],m in a&&(a[m]=0),g in a&&(a[g]="true"),a.name=G+ +new Date,M.fastIframe?u():t(a).one("load",u),a.src=M.href,M.scrolling||(a.scrolling="no"),t(a).addClass(G+"Iframe").appendTo(_).one(K,function(){a.src="//about:blank"})):u(),"fade"===M.transition?p.fadeTo(c,1,e):e()}},"fade"===M.transition?p.fadeTo(c,0,function(){z.position(0,a)}):z.position(c,a)}},z.load=function(e){var n,r,c=z.prep;F=!0,R=!1,L=b[P],e||a(),l(K),l(Q,M.onLoad),M.h=M.height?o(M.height,"y")-O-j:M.innerHeight&&o(M.innerHeight,"y"),M.w=M.width?o(M.width,"x")-N-D:M.innerWidth&&o(M.innerWidth,"x"),M.mw=M.w,M.mh=M.h,M.maxWidth&&(M.mw=o(M.maxWidth,"x")-N-D,M.mw=M.w&&M.w<M.mw?M.w:M.mw),M.maxHeight&&(M.mh=o(M.maxHeight,"y")-O-j,M.mh=M.h&&M.h<M.mh?M.h:M.mh),n=M.href,B=setTimeout(function(){k.show()},100),M.inline?(i(it).hide().insertBefore(t(n)[0]).one(K,function(){t(this).replaceWith(_.children())}),c(t(n))):M.iframe?c(" "):M.html?c(M.html):s(n)?(t(R=new Image).addClass(G+"Photo").error(function(){M.title=!1,c(i(it,"Error").text("This image could not be loaded"))}).load(function(){var t;R.onload=null,M.scalePhotos&&(r=function(){R.height-=R.height*t,R.width-=R.width*t},M.mw&&R.width>M.mw&&(t=(R.width-M.mw)/R.width,r()),M.mh&&R.height>M.mh&&(t=(R.height-M.mh)/R.height,r())),M.h&&(R.style.marginTop=Math.max(M.h-R.height,0)/2+"px"),b[1]&&(P<b.length-1||M.loop)&&(R.style.cursor="pointer",R.onclick=function(){z.next()}),tt&&(R.style.msInterpolationMode="bicubic"),setTimeout(function(){c(R)},1)}),setTimeout(function(){R.src=n},1)):n&&x.load(n,M.data,function(e,n,r){c("error"===n?i(it,"Error").text("Request unsuccessful: "+r.statusText):t(this).contents())})},z.next=function(){!F&&b[1]&&(P<b.length-1||M.loop)&&(P=r(1),z.load())},z.prev=function(){!F&&b[1]&&(P||M.loop)&&(P=r(-1),z.load())},z.close=function(){q&&!H&&(H=!0,q=!1,l(Z,M.onCleanup),w.unbind("."+G+" ."+nt),h.fadeTo(200,0),p.stop().fadeTo(300,0,function(){p.add(h).css({opacity:1,cursor:"auto"}).hide(),l(K),_.remove(),setTimeout(function(){H=!1,l(Y,M.onClosed)},1)}))},z.element=function(){return t(L)},z.settings=U,t(e).on("click","."+V,function(t){t.which>1||t.shiftKey||t.altKey||t.metaKey||(t.preventDefault(),u(this))}),z.init()}(jQuery,document,window)},,,function(t,e,n){var i,r;/*! 38 * jQuery JavaScript Library v2.2.3 39 * http://jquery.com/ 40 * 41 * Includes Sizzle.js 42 * http://sizzlejs.com/ 43 * 44 * Copyright jQuery Foundation and other contributors 45 * Released under the MIT license 46 * http://jquery.org/license 47 * 48 * Date: 2016-04-05T19:26Z 49 */ 50!function(e,n){"object"==typeof t&&"object"==typeof t.exports?t.exports=e.document?n(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return n(t)}:n(e)}("undefined"!=typeof window?window:this,function(n,o){function s(t){var e=!!t&&"length"in t&&t.length,n=ct.type(t);return"function"!==n&&!ct.isWindow(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}function a(t,e,n){if(ct.isFunction(e))return ct.grep(t,function(t,i){return!!e.call(t,i,t)!==n});if(e.nodeType)return ct.grep(t,function(t){return t===e!==n});if("string"==typeof e){if(bt.test(e))return ct.filter(e,t,n);e=ct.filter(e,t)}return ct.grep(t,function(t){return it.call(e,t)>-1!==n})}function l(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}function c(t){var e={};return ct.each(t.match(Ct)||[],function(t,n){e[n]=!0}),e}function u(){K.removeEventListener("DOMContentLoaded",u),n.removeEventListener("load",u),ct.ready()}function h(){this.expando=ct.expando+h.uid++}function p(t,e,n){var i;if(void 0===n&&1===t.nodeType)if(i="data-"+e.replace(jt,"-$&").toLowerCase(),n=t.getAttribute(i),"string"==typeof n){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:Mt.test(n)?ct.parseJSON(n):n)}catch(t){}It.set(t,e,n)}else n=void 0;return n}function d(t,e,n,i){var r,o=1,s=20,a=i?function(){return i.cur()}:function(){return ct.css(t,e,"")},l=a(),c=n&&n[3]||(ct.cssNumber[e]?"":"px"),u=(ct.cssNumber[e]||"px"!==c&&+l)&&Ot.exec(ct.css(t,e));if(u&&u[3]!==c){c=c||u[3],n=n||[],u=+l||1;do o=o||".5",u/=o,ct.style(t,e,u+c);while(o!==(o=a()/l)&&1!==o&&--s)}return n&&(u=+u||+l||0,r=n[1]?u+(n[1]+1)*n[2]:+n[2],i&&(i.unit=c,i.start=u,i.end=r)),r}function f(t,e){var n="undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e||"*"):"undefined"!=typeof t.querySelectorAll?t.querySelectorAll(e||"*"):[];return void 0===e||e&&ct.nodeName(t,e)?ct.merge([t],n):n}function m(t,e){for(var n=0,i=t.length;n<i;n++)At.set(t[n],"globalEval",!e||At.get(e[n],"globalEval"))}function g(t,e,n,i,r){for(var o,s,a,l,c,u,h=e.createDocumentFragment(),p=[],d=0,g=t.length;d<g;d++)if(o=t[d],o||0===o)if("object"===ct.type(o))ct.merge(p,o.nodeType?[o]:o);else if(Ht.test(o)){for(s=s||h.appendChild(e.createElement("div")),a=(Rt.exec(o)||["",""])[1].toLowerCase(),l=Ft[a]||Ft._default,s.innerHTML=l[1]+ct.htmlPrefilter(o)+l[2],u=l[0];u--;)s=s.lastChild;ct.merge(p,s.childNodes),s=h.firstChild,s.textContent=""}else p.push(e.createTextNode(o));for(h.textContent="",d=0;o=p[d++];)if(i&&ct.inArray(o,i)>-1)r&&r.push(o);else if(c=ct.contains(o.ownerDocument,o),s=f(h.appendChild(o),"script"),c&&m(s),n)for(u=0;o=s[u++];)qt.test(o.type||"")&&n.push(o);return h}function v(){return!0}function y(){return!1}function b(){try{return K.activeElement}catch(t){}}function w(t,e,n,i,r,o){var s,a;if("object"==typeof e){"string"!=typeof n&&(i=i||n,n=void 0);for(a in e)w(t,a,n,i,e[a],o);return t}if(null==i&&null==r?(r=n,i=n=void 0):null==r&&("string"==typeof n?(r=i,i=void 0):(r=i,i=n,n=void 0)),r===!1)r=y;else if(!r)return t;return 1===o&&(s=r,r=function(t){return ct().off(t),s.apply(this,arguments)},r.guid=s.guid||(s.guid=ct.guid++)),t.each(function(){ct.event.add(this,e,r,i,n)})}
50function _(t,e){return ct.nodeName(t,"table")&&ct.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function x(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function k(t){var e=Xt.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function T(t,e){var n,i,r,o,s,a,l,c;if(1===e.nodeType){if(At.hasData(t)&&(o=At.access(t),s=At.set(e,o),c=o.events)){delete s.handle,s.events={};for(r in c)for(n=0,i=c[r].length;n<i;n++)ct.event.add(e,r,c[r][n])}It.hasData(t)&&(a=It.access(t),l=ct.extend({},a),It.set(e,l))}}function C(t,e){var n=e.nodeName.toLowerCase();"input"===n&&Pt.test(t.type)?e.checked=t.checked:"input"!==n&&"textarea"!==n||(e.defaultValue=t.defaultValue)}function $(t,e,n,i){e=et.apply([],e);var r,o,s,a,l,c,u=0,h=t.length,p=h-1,d=e[0],m=ct.isFunction(d);if(m||h>1&&"string"==typeof d&&!at.checkClone&&Vt.test(d))return t.each(function(r){var o=t.eq(r);m&&(e[0]=d.call(this,r,o.html())),$(o,e,n,i)});if(h&&(r=g(e,t[0].ownerDocument,!1,t,i),o=r.firstChild,1===r.childNodes.length&&(r=o),o||i)){for(s=ct.map(f(r,"script"),x),a=s.length;u<h;u++)l=r,u!==p&&(l=ct.clone(l,!0,!0),a&&ct.merge(s,f(l,"script"))),n.call(t[u],l,u);if(a)for(c=s[s.length-1].ownerDocument,ct.map(s,k),u=0;u<a;u++)l=s[u],qt.test(l.type||"")&&!At.access(l,"globalEval")&&ct.contains(c,l)&&(l.src?ct._evalUrl&&ct._evalUrl(l.src):ct.globalEval(l.textContent.replace(Qt,"")))}return t}function S(t,e,n){for(var i,r=e?ct.filter(e,t):t,o=0;null!=(i=r[o]);o++)n||1!==i.nodeType||ct.cleanData(f(i)),i.parentNode&&(n&&ct.contains(i.ownerDocument,i)&&m(f(i,"script")),i.parentNode.removeChild(i));return t}function E(t,e){var n=ct(e.createElement(t)).appendTo(e.body),i=ct.css(n[0],"display");return n.detach(),i}function A(t){var e=K,n=Zt[t];return n||(n=E(t,e),"none"!==n&&n||(Jt=(Jt||ct("<iframe frameborder='0' width='0' height='0'/>")).appendTo(e.documentElement),e=Jt[0].contentDocument,e.write(),e.close(),n=E(t,e),Jt.detach()),Zt[t]=n),n}function I(t,e,n){var i,r,o,s,a=t.style;return n=n||te(t),s=n?n.getPropertyValue(e)||n[e]:void 0,""!==s&&void 0!==s||ct.contains(t.ownerDocument,t)||(s=ct.style(t,e)),n&&!at.pixelMarginRight()&&Kt.test(s)&&Yt.test(e)&&(i=a.width,r=a.minWidth,o=a.maxWidth,a.minWidth=a.maxWidth=a.width=s,s=n.width,a.width=i,a.minWidth=r,a.maxWidth=o),void 0!==s?s+"":s}function M(t,e){return{get:function(){return t()?void delete this.get:(this.get=e).apply(this,arguments)}}}function j(t){if(t in ae)return t;for(var e=t[0].toUpperCase()+t.slice(1),n=se.length;n--;)if(t=se[n]+e,t in ae)return t}function D(t,e,n){var i=Ot.exec(e);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):e}function O(t,e,n,i,r){for(var o=n===(i?"border":"content")?4:"width"===e?1:0,s=0;o<4;o+=2)"margin"===n&&(s+=ct.css(t,n+Nt[o],!0,r)),i?("content"===n&&(s-=ct.css(t,"padding"+Nt[o],!0,r)),"margin"!==n&&(s-=ct.css(t,"border"+Nt[o]+"Width",!0,r))):(s+=ct.css(t,"padding"+Nt[o],!0,r),"padding"!==n&&(s+=ct.css(t,"border"+Nt[o]+"Width",!0,r)));return s}function N(t,e,i){var r=!0,o="width"===e?t.offsetWidth:t.offsetHeight,s=te(t),a="border-box"===ct.css(t,"boxSizing",!1,s);if(K.msFullscreenElement&&n.top!==n&&t.getClientRects().length&&(o=Math.round(100*t.getBoundingClientRect()[e])),o<=0||null==o){if(o=I(t,e,s),(o<0||null==o)&&(o=t.style[e]),Kt.test(o))return o;r=a&&(at.boxSizingReliable()||o===t.style[e]),o=parseFloat(o)||0}return o+O(t,e,i||(a?"border":"content"),r,s)+"px"}function L(t,e){for(var n,i,r,o=[],s=0,a=t.length;s<a;s++)i=t[s],i.style&&(o[s]=At.get(i,"olddisplay"),n=i.style.display,e?(o[s]||"none"!==n||(i.style.display=""),""===i.style.display&&Lt(i)&&(o[s]=At.access(i,"olddisplay",A(i.nodeName)))):(r=Lt(i),"none"===n&&r||At.set(i,"olddisplay",r?n:ct.css(i,"display"))));for(s=0;s<a;s++)i=t[s],i.style&&(e&&"none"!==i.style.display&&""!==i.style.display||(i.style.display=e?o[s]||"":"none"));return t}function P(t,e,n,i,r){return new P.prototype.init(t,e,n,i,r)}function R(){return n.setTimeout(function(){le=void 0}),le=ct.now()}function q(t,e){var n,i=0,r={height:t};for(e=e?1:0;i<4;i+=2-e)n=Nt[i],r["margin"+n]=r["padding"+n]=t;return e&&(r.opacity=r.width=t),r}function F(t,e,n){for(var i,r=(z.tweeners[e]||[]).concat(z.tweeners["*"]),o=0,s=r.length;o<s;o++)if(i=r[o].call(n,e,t))return i}function H(t,e,n){var i,r,o,s,a,l,c,u,h=this,p={}
vendor: 6,777 bytes, line 50
50,d=t.style,f=t.nodeType&&Lt(t),m=At.get(t,"fxshow");n.queue||(a=ct._queueHooks(t,"fx"),null==a.unqueued&&(a.unqueued=0,l=a.empty.fire,a.empty.fire=function(){a.unqueued||l()}),a.unqueued++,h.always(function(){h.always(function(){a.unqueued--,ct.queue(t,"fx").length||a.empty.fire()})})),1===t.nodeType&&("height"in e||"width"in e)&&(n.overflow=[d.overflow,d.overflowX,d.overflowY],c=ct.css(t,"display"),u="none"===c?At.get(t,"olddisplay")||A(t.nodeName):c,"inline"===u&&"none"===ct.css(t,"float")&&(d.display="inline-block")),n.overflow&&(d.overflow="hidden",h.always(function(){d.overflow=n.overflow[0],d.overflowX=n.overflow[1],d.overflowY=n.overflow[2]}));for(i in e)if(r=e[i],ue.exec(r)){if(delete e[i],o=o||"toggle"===r,r===(f?"hide":"show")){if("show"!==r||!m||void 0===m[i])continue;f=!0}p[i]=m&&m[i]||ct.style(t,i)}else c=void 0;if(ct.isEmptyObject(p))"inline"===("none"===c?A(t.nodeName):c)&&(d.display=c);else{m?"hidden"in m&&(f=m.hidden):m=At.access(t,"fxshow",{}),o&&(m.hidden=!f),f?ct(t).show():h.done(function(){ct(t).hide()}),h.done(function(){var e;At.remove(t,"fxshow");for(e in p)ct.style(t,e,p[e])});for(i in p)s=F(f?m[i]:0,i,h),i in m||(m[i]=s.start,f&&(s.end=s.start,s.start="width"===i||"height"===i?1:0))}}function B(t,e){var n,i,r,o,s;for(n in t)if(i=ct.camelCase(n),r=e[i],o=t[n],ct.isArray(o)&&(r=o[1],o=t[n]=o[0]),n!==i&&(t[i]=o,delete t[n]),s=ct.cssHooks[i],s&&"expand"in s){o=s.expand(o),delete t[i];for(n in o)n in t||(t[n]=o[n],e[n]=r)}else e[i]=r}function z(t,e,n){var i,r,o=0,s=z.prefilters.length,a=ct.Deferred().always(function(){delete l.elem}),l=function(){if(r)return!1;for(var e=le||R(),n=Math.max(0,c.startTime+c.duration-e),i=n/c.duration||0,o=1-i,s=0,l=c.tweens.length;s<l;s++)c.tweens[s].run(o);return a.notifyWith(t,[c,o,n]),o<1&&l?n:(a.resolveWith(t,[c]),!1)},c=a.promise({elem:t,props:ct.extend({},e),opts:ct.extend(!0,{specialEasing:{},easing:ct.easing._default},n),originalProperties:e,originalOptions:n,startTime:le||R(),duration:n.duration,tweens:[],createTween:function(e,n){var i=ct.Tween(t,c.opts,e,n,c.opts.specialEasing[e]||c.opts.easing);return c.tweens.push(i),i},stop:function(e){var n=0,i=e?c.tweens.length:0;if(r)return this;for(r=!0;n<i;n++)c.tweens[n].run(1);return e?(a.notifyWith(t,[c,1,0]),a.resolveWith(t,[c,e])):a.rejectWith(t,[c,e]),this}}),u=c.props;for(B(u,c.opts.specialEasing);o<s;o++)if(i=z.prefilters[o].call(c,t,u,c.opts))return ct.isFunction(i.stop)&&(ct._queueHooks(c.elem,c.opts.queue).stop=ct.proxy(i.stop,i)),i;return ct.map(u,F,c),ct.isFunction(c.opts.start)&&c.opts.start.call(t,c),ct.fx.timer(ct.extend(l,{elem:t,anim:c,queue:c.opts.queue})),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always)}function U(t){return t.getAttribute&&t.getAttribute("class")||""}function W(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var i,r=0,o=e.toLowerCase().match(Ct)||[];if(ct.isFunction(n))for(;i=o[r++];)"+"===i[0]?(i=i.slice(1)||"*",(t[i]=t[i]||[]).unshift(n)):(t[i]=t[i]||[]).push(n)}}function G(t,e,n,i){function r(a){var l;return o[a]=!0,ct.each(t[a]||[],function(t,a){var c=a(e,n,i);return"string"!=typeof c||s||o[c]?s?!(l=c):void 0:(e.dataTypes.unshift(c),r(c),!1)}),l}var o={},s=t===Ie;return r(e.dataTypes[0])||!o["*"]&&r("*")}function V(t,e){var n,i,r=ct.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((r[n]?t:i||(i={}))[n]=e[n]);return i&&ct.extend(!0,t,i),t}function X(t,e,n){for(var i,r,o,s,a=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=t.mimeType||e.getResponseHeader("Content-Type"));if(i)for(r in a)if(a[r]&&a[r].test(i)){l.unshift(r);break}if(l[0]in n)o=l[0];else{for(r in n){if(!l[0]||t.converters[r+" "+l[0]]){o=r;break}s||(s=r)}o=o||s}if(o)return o!==l[0]&&l.unshift(o),n[o]}function Q(t,e,n,i){var r,o,s,a,l,c={},u=t.dataTypes.slice();if(u[1])for(s in t.converters)c[s.toLowerCase()]=t.converters[s];for(o=u.shift();o;)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!l&&i&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=o,o=u.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(s=c[l+" "+o]||c["* "+o],!s)for(r in c)if(a=r.split(" "),a[1]===o&&(s=c[l+" "+a[0]]||c["* "+a[0]])){s===!0?s=c[r]:c[r]!==!0&&(o=a[0],u.unshift(a[1]));break}if(s!==!0)if(s&&t.throws)e=s(e);else try{e=s(e)}catch(t){return{state:"parsererror",error:s?t:"No conversion from "+l+" to "+o}}}return{state:"success",data:e}}function J(t,e,n,i){var r;if(ct.isArray(e))ct.each(e,function(e,r){n||Oe.test(t)?i(t,r):J(t+"["+("object"==typeof r&&null!=r?e:"")+"]",r,n,i)});else if(n||"object"!==ct.type(e))i(t,e);else for(r in e)J(t+"["+r+"]",e[r],n,i)}function Z(t){return ct.isWindow(t)?t:9===t.nodeType&&t.defaultView}var Y=[],K=n.document,tt=Y.slice,et=Y.concat,nt=Y.push,it=Y.indexOf,rt={},ot=rt.toString,st=rt.hasOwnProperty,at={},lt="2.2.3",ct=function(t,e){return new ct.fn.init(t,e)},ut=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,ht=/^-ms-/,pt=/-([\da-z])/gi,dt=function(t,e){return e.toUpperCase()};ct.fn=ct.prototype={jquery:lt,constructor:ct,selector:"",length:0,toArray:function(){return tt.call(this)},get:function(t){return null!=t?t<0?this[t+this.length]:this[t]:tt.call(this)},pushStack:function(t){var e=ct.merge(this.constructor(),t);return e.prevObject=this,e.context=this.context,e},each:function(t){return ct.each(this,t)},map:function(t){return this.pushStack(ct.map(this,function(e,n){return t.call(e,n,e)}))},slice:function(){return this.pushStack(tt.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n<e?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:nt,sort:Y.sort,splice:Y.splice},ct.extend=ct.fn.extend=function(){var t,e,n,i,r,o,s=arguments[0]||{},a=1,l=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[a]||{},a++),"object"==typeof s||ct.isFunction(s)||(s={}),a===l&&(s=this,a--);a<l;a++)if(null!=(t=arguments[a]))for(e in t)n=s[e],i=t[e],s!==i&&(c&&i&&(ct.isPlainObject(i)||(r=ct.isArray(i)))?(r?(r=!1,o=n&&ct.isArray(n)?n:[]):o=n&&ct.isPlainObject(n)?n:{},s[e]=ct.extend(c,o,i)):void 0!==i&&(s[e]=i));return s},ct.extend({expando:"jQuery"+(lt+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isFunction:function(t){return"function"===ct.type(t)},isArray:Array.isArray,isWindow:function(t){return null!=t&&t===t.window},isNumeric:function(t){var e=t&&t.toString();return!ct.isArray(t)&&e-parseFloat(e)+1>=0},isPlainObject:function(t){var e;if("object"!==ct.type(t)||t.nodeType||ct.isWindow(t))return!1;if(t.constructor&&!st.call(t,"constructor")&&!st.call(t.constructor.prototype||{},"isPrototypeOf"))return!1;for(e in t);return void 0===e||st.call(t,e)},isEmptyObject:function(t){var e;
50for(e in t)return!1;return!0},type:function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?rt[ot.call(t)]||"object":typeof t},globalEval:function(t){var e,n=eval;t=ct.trim(t),t&&(1===t.indexOf("use strict")?(e=K.createElement("script"),e.text=t,K.head.appendChild(e).parentNode.removeChild(e)):n(t))},camelCase:function(t){return t.replace(ht,"ms-").replace(pt,dt)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e){var n,i=0;if(s(t))for(n=t.length;i<n&&e.call(t[i],i,t[i])!==!1;i++);else for(i in t)if(e.call(t[i],i,t[i])===!1)break;return t},trim:function(t){return null==t?"":(t+"").replace(ut,"")},makeArray:function(t,e){var n=e||[];return null!=t&&(s(Object(t))?ct.merge(n,"string"==typeof t?[t]:t):nt.call(n,t)),n},inArray:function(t,e,n){return null==e?-1:it.call(e,t,n)},merge:function(t,e){for(var n=+e.length,i=0,r=t.length;i<n;i++)t[r++]=e[i];return t.length=r,t},grep:function(t,e,n){for(var i,r=[],o=0,s=t.length,a=!n;o<s;o++)i=!e(t[o],o),i!==a&&r.push(t[o]);return r},map:function(t,e,n){var i,r,o=0,a=[];if(s(t))for(i=t.length;o<i;o++)r=e(t[o],o,n),null!=r&&a.push(r);else for(o in t)r=e(t[o],o,n),null!=r&&a.push(r);return et.apply([],a)},guid:1,proxy:function(t,e){var n,i,r;if("string"==typeof e&&(n=t[e],e=t,t=n),ct.isFunction(t))return i=tt.call(arguments,2),r=function(){return t.apply(e||this,i.concat(tt.call(arguments)))},r.guid=t.guid=t.guid||ct.guid++,r},now:Date.now,support:at}),"function"==typeof Symbol&&(ct.fn[Symbol.iterator]=Y[Symbol.iterator]),ct.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){rt["[object "+e+"]"]=e.toLowerCase()});var ft=/*! 51 * Sizzle CSS Selector Engine v2.2.1 52 * http://sizzlejs.com/ 53 * 54 * Copyright jQuery Foundation and other contributors 55 * Released under the MIT license 56 * http://jquery.org/license 57 * 58 * Date: 2015-10-17 59 */ 60function(t){function e(t,e,n,i){var r,o,s,a,l,c,h,d,f=e&&e.ownerDocument,m=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==m&&9!==m&&11!==m)return n;if(!i&&((e?e.ownerDocument||e:F)!==j&&M(e),e=e||j,O)){if(11!==m&&(c=vt.exec(t)))if(r=c[1]){if(9===m){if(!(s=e.getElementById(r)))return n;if(s.id===r)return n.push(s),n}else if(f&&(s=f.getElementById(r))&&R(e,s)&&s.id===r)return n.push(s),n}else{if(c[2])return Y.apply(n,e.getElementsByTagName(t)),n;if((r=c[3])&&_.getElementsByClassName&&e.getElementsByClassName)return Y.apply(n,e.getElementsByClassName(r)),n}if(_.qsa&&!W[t+" "]&&(!N||!N.test(t))){if(1!==m)f=e,d=t;else if("object"!==e.nodeName.toLowerCase()){for((a=e.getAttribute("id"))?a=a.replace(bt,"\\$&"):e.setAttribute("id",a=q),h=C(t),o=h.length,l=pt.test(a)?"#"+a:"[id='"+a+"']";o--;)h[o]=l+" "+p(h[o]);d=h.join(","),f=yt.test(t)&&u(e.parentNode)||e}if(d)try{return Y.apply(n,f.querySelectorAll(d)),n}catch(t){}finally{a===q&&e.removeAttribute("id")}}}return S(t.replace(at,"$1"),e,n,i)}function n(){function t(n,i){return e.push(n+" ")>x.cacheLength&&delete t[e.shift()],t[n+" "]=i}var e=[];return t}function i(t){return t[q]=!0,t}function r(t){var e=j.createElement("div");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function o(t,e){for(var n=t.split("|"),i=n.length;i--;)x.attrHandle[n[i]]=e}function s(t,e){var n=e&&t,i=n&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||V)-(~t.sourceIndex||V);if(i)return i;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function a(t){return function(e){var n=e.nodeName.toLowerCase();return"input"===n&&e.type===t}}function l(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}function c(t){return i(function(e){return e=+e,i(function(n,i){for(var r,o=t([],n.length,e),s=o.length;s--;)n[r=o[s]]&&(n[r]=!(i[r]=n[r]))})})}function u(t){return t&&"undefined"!=typeof t.getElementsByTagName&&t}function h(){}function p(t){for(var e=0,n=t.length,i="";e<n;e++)i+=t[e].value;return i}function d(t,e,n){var i=e.dir,r=n&&"parentNode"===i,o=B++;return e.first?function(e,n,o){for(;e=e[i];)if(1===e.nodeType||r)return t(e,n,o)}:function(e,n,s){var a,l,c,u=[H,o];if(s){for(;e=e[i];)if((1===e.nodeType||r)&&t(e,n,s))return!0}else for(;e=e[i];)if(1===e.nodeType||r){if(c=e[q]||(e[q]={}),l=c[e.uniqueID]||(c[e.uniqueID]={}),(a=l[i])&&a[0]===H&&a[1]===o)return u[2]=a[2];if(l[i]=u,u[2]=t(e,n,s))return!0}}}function f(t){return t.length>1?function(e,n,i){for(var r=t.length;r--;)if(!t[r](e,n,i))return!1;return!0}:t[0]}function m(t,n,i){for(var r=0,o=n.length;r<o;r++)e(t,n[r],i);return i}function g(t,e,n,i,r){for(var o,s=[],a=0,l=t.length,c=null!=e;a<l;
vendor: 12,863 bytes, line 60
60a++)(o=t[a])&&(n&&!n(o,i,r)||(s.push(o),c&&e.push(a)));return s}function v(t,e,n,r,o,s){return r&&!r[q]&&(r=v(r)),o&&!o[q]&&(o=v(o,s)),i(function(i,s,a,l){var c,u,h,p=[],d=[],f=s.length,v=i||m(e||"*",a.nodeType?[a]:a,[]),y=!t||!i&&e?v:g(v,p,t,a,l),b=n?o||(i?t:f||r)?[]:s:y;if(n&&n(y,b,a,l),r)for(c=g(b,d),r(c,[],a,l),u=c.length;u--;)(h=c[u])&&(b[d[u]]=!(y[d[u]]=h));if(i){if(o||t){if(o){for(c=[],u=b.length;u--;)(h=b[u])&&c.push(y[u]=h);o(null,b=[],c,l)}for(u=b.length;u--;)(h=b[u])&&(c=o?tt(i,h):p[u])>-1&&(i[c]=!(s[c]=h))}}else b=g(b===s?b.splice(f,b.length):b),o?o(null,s,b,l):Y.apply(s,b)})}function y(t){for(var e,n,i,r=t.length,o=x.relative[t[0].type],s=o||x.relative[" "],a=o?1:0,l=d(function(t){return t===e},s,!0),c=d(function(t){return tt(e,t)>-1},s,!0),u=[function(t,n,i){var r=!o&&(i||n!==E)||((e=n).nodeType?l(t,n,i):c(t,n,i));return e=null,r}];a<r;a++)if(n=x.relative[t[a].type])u=[d(f(u),n)];else{if(n=x.filter[t[a].type].apply(null,t[a].matches),n[q]){for(i=++a;i<r&&!x.relative[t[i].type];i++);return v(a>1&&f(u),a>1&&p(t.slice(0,a-1).concat({value:" "===t[a-2].type?"*":""})).replace(at,"$1"),n,a<i&&y(t.slice(a,i)),i<r&&y(t=t.slice(i)),i<r&&p(t))}u.push(n)}return f(u)}function b(t,n){var r=n.length>0,o=t.length>0,s=function(i,s,a,l,c){var u,h,p,d=0,f="0",m=i&&[],v=[],y=E,b=i||o&&x.find.TAG("*",c),w=H+=null==y?1:Math.random()||.1,_=b.length;for(c&&(E=s===j||s||c);f!==_&&null!=(u=b[f]);f++){if(o&&u){for(h=0,s||u.ownerDocument===j||(M(u),a=!O);p=t[h++];)if(p(u,s||j,a)){l.push(u);break}c&&(H=w)}r&&((u=!p&&u)&&d--,i&&m.push(u))}if(d+=f,r&&f!==d){for(h=0;p=n[h++];)p(m,v,s,a);if(i){if(d>0)for(;f--;)m[f]||v[f]||(v[f]=J.call(l));v=g(v)}Y.apply(l,v),c&&!i&&v.length>0&&d+n.length>1&&e.uniqueSort(l)}return c&&(H=w,E=y),m};return r?i(s):s}var w,_,x,k,T,C,$,S,E,A,I,M,j,D,O,N,L,P,R,q="sizzle"+1*new Date,F=t.document,H=0,B=0,z=n(),U=n(),W=n(),G=function(t,e){return t===e&&(I=!0),0},V=1<<31,X={}.hasOwnProperty,Q=[],J=Q.pop,Z=Q.push,Y=Q.push,K=Q.slice,tt=function(t,e){for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n;return-1},et="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",nt="[\\x20\\t\\r\\n\\f]",it="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",rt="\\["+nt+"*("+it+")(?:"+nt+"*([*^$|!~]?=)"+nt+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+it+"))|)"+nt+"*\\]",ot=":("+it+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+rt+")*)|.*)\\)|)",st=new RegExp(nt+"+","g"),at=new RegExp("^"+nt+"+|((?:^|[^\\\\])(?:\\\\.)*)"+nt+"+$","g"),lt=new RegExp("^"+nt+"*,"+nt+"*"),ct=new RegExp("^"+nt+"*([>+~]|"+nt+")"+nt+"*"),ut=new RegExp("="+nt+"*([^\\]'\"]*?)"+nt+"*\\]","g"),ht=new RegExp(ot),pt=new RegExp("^"+it+"$"),dt={ID:new RegExp("^#("+it+")"),CLASS:new RegExp("^\\.("+it+")"),TAG:new RegExp("^("+it+"|[*])"),ATTR:new RegExp("^"+rt),PSEUDO:new RegExp("^"+ot),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+nt+"*(even|odd|(([+-]|)(\\d*)n|)"+nt+"*(?:([+-]|)"+nt+"*(\\d+)|))"+nt+"*\\)|)","i"),bool:new RegExp("^(?:"+et+")$","i"),needsContext:new RegExp("^"+nt+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+nt+"*((?:-\\d)?\\d*)"+nt+"*\\)|)(?=[^-]|$)","i")},ft=/^(?:input|select|textarea|button)$/i,mt=/^h\d$/i,gt=/^[^{]+\{\s*\[native \w/,vt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,yt=/[+~]/,bt=/'|\\/g,wt=new RegExp("\\\\([\\da-f]{1,6}"+nt+"?|("+nt+")|.)","ig"),_t=function(t,e,n){var i="0x"+e-65536;return i!==i||n?e:i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)},xt=function(){M()};try{Y.apply(Q=K.call(F.childNodes),F.childNodes),Q[F.childNodes.length].nodeType}catch(t){Y={apply:Q.length?function(t,e){Z.apply(t,K.call(e))}:function(t,e){for(var n=t.length,i=0;t[n++]=e[i++];);t.length=n-1}}}_=e.support={},T=e.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},M=e.setDocument=function(t){var e,n,i=t?t.ownerDocument||t:F;return i!==j&&9===i.nodeType&&i.documentElement?(j=i,D=j.documentElement,O=!T(j),(n=j.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",xt,!1):n.attachEvent&&n.attachEvent("onunload",xt)),_.attributes=r(function(t){return t.className="i",!t.getAttribute("className")}),_.getElementsByTagName=r(function(t){return t.appendChild(j.createComment("")),!t.getElementsByTagName("*").length}),_.getElementsByClassName=gt.test(j.getElementsByClassName),_.getById=r(function(t){return D.appendChild(t).id=q,!j.getElementsByName||!j.getElementsByName(q).length}),_.getById?(x.find.ID=function(t,e){if("undefined"!=typeof e.getElementById&&O){var n=e.getElementById(t);return n?[n]:[]}},x.filter.ID=function(t){var e=t.replace(wt,_t);return function(t){return t.getAttribute("id")===e}}):(delete x.find.ID,x.filter.ID=function(t){var e=t.replace(wt,_t);return function(t){var n="undefined"!=typeof t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}}),x.find.TAG=_.getElementsByTagName?function(t,e){return"undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t):_.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,i=[],r=0,o=e.getElementsByTagName(t);if("*"===t){for(;n=o[r++];)1===n.nodeType&&i.push(n);return i}return o},x.find.CLASS=_.getElementsByClassName&&function(t,e){if("undefined"!=typeof e.getElementsByClassName&&O)return e.getElementsByClassName(t)},L=[],N=[],(_.qsa=gt.test(j.querySelectorAll))&&(r(function(t){D.appendChild(t).innerHTML="<a id='"+q+"'></a><select id='"+q+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&N.push("[*^$]="+nt+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||N.push("\\["+nt+"*(?:value|"+et+")"),t.querySelectorAll("[id~="+q+"-]").length||N.push("~="),t.querySelectorAll(":checked").length||N.push(":checked"),t.querySelectorAll("a#"+q+"+*").length||N.push(".#.+[+~]")}),r(function(t){var e=j.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&N.push("name"+nt+"*[*^$|!~]?="),t.querySelectorAll(":enabled").length||N.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),N.push(",.*:")})),(_.matchesSelector=gt.test(P=D.matches||D.webkitMatchesSelector||D.mozMatchesSelector||D.oMatchesSelector||D.msMatchesSelector))&&r(function(t){_.disconnectedMatch=P.call(t,"div"),P.call(t,"[s!='']:x"),L.push("!=",ot)}),N=N.length&&new RegExp(N.join("|")),L=L.length&&new RegExp(L.join("|")),e=gt.test(D.compareDocumentPosition),R=e||gt.test(D.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,i=e&&e.parentNode;return t===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):t.compareDocumentPosition&&16&t.compareDocumentPosition(i)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},G=e?function(t,e){if(t===e)return I=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n?n:(n=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1,1&n||!_.sortDetached&&e.compareDocumentPosition(t)===n?t===j||t.ownerDocument===F&&R(F,t)?-1:e===j||e.ownerDocument===F&&R(F,e)?1:A?tt(A,t)-tt(A,e):0:4&n?-1:1)}:function(t,e){if(t===e)return I=!0,0;var n,i=0,r=t.parentNode,o=e.parentNode,a=[t],l=[e];if(!r||!o)return t===j?-1:e===j?1:r?-1:o?1:A?tt(A,t)-tt(A,e):0;if(r===o)return s(t,e);for(n=t;n=n.parentNode;)a.unshift(n);for(n=e;n=n.parentNode;)l.unshift(n);for(;a[i]===l[i];)i++;return i?s(a[i],l[i]):a[i]===F?-1:l[i]===F?1:0},j):j},e.matches=function(t,n){return e(t,null,null,n)},e.matchesSelector=function(t,n){if((t.ownerDocument||t)!==j&&M(t),n=n.replace(ut,"='$1']"),_.matchesSelector&&O&&!W[n+" "]&&(!L||!L.test(n))&&(!N||!N.test(n)))try{var i=P.call(t,n);if(i||_.disconnectedMatch||t.document&&11!==t.document.nodeType)return i}catch(t){}return e(n,j,null,[t]).length>0},e.contains=function(t,e){return(t.ownerDocument||t)!==j&&M(t),R(t,e)},e.attr=function(t,e){(t.ownerDocument||t)!==j&&M(t);var n=x.attrHandle[e.toLowerCase()],i=n&&X.call(x.attrHandle,e.toLowerCase())?n(t,e,!O):void 0;return void 0!==i?i:_.attributes||!O?t.getAttribute(e):(i=t.getAttributeNode(e))&&i.specified?i.value:null},e.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},e.uniqueSort=function(t){var e,n=[],i=0,r=0;if(I=!_.detectDuplicates,A=!_.sortStable&&t.slice(0),t.sort(G),I){for(;e=t[r++];)e===t[r]&&(i=n.push(r));for(;i--;)t.splice(n[i],1)}return A=null,t},k=e.getText=function(t){var e,n="",i=0,r=t.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=k(t)}else if(3===r||4===r)return t.nodeValue}else for(;e=t[i++];)n+=k(e);return n},x=e.selectors={cacheLength:50,createPseudo:i,match:dt,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(wt,_t),t[3]=(t[3]||t[4]||t[5]||"").replace(wt,_t),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||e.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&e.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return dt.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&ht.test(n)&&(e=C(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(wt,_t).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=z[t+" "];return e||(e=new RegExp("(^|"+nt+")"+t+"("+nt+"|$)"))&&z(t,function(t){return e.test("string"==typeof t.className&&t.className||"undefined"!=typeof t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,n,i){return function(r){var o=e.attr(r,t);return null==o?"!="===n:!n||(o+="","="===n?o===i:"!="===n?o!==i:"^="===n?i&&0===o.indexOf(i):"*="===n?i&&o.indexOf(i)>-1:"$="===n?i&&o.slice(-i.length)===i:"~="===n?(" "+o.replace(st," ")+" ").indexOf(i)>-1:"|="===n&&(o===i||o.slice(0,i.length+1)===i+"-"))}},CHILD:function(t,e,n,i,r){var o="nth"!==t.slice(0,3),s="last"!==t.slice(-4),a="of-type"===e;return 1===i&&0===r?function(t){return!!t.parentNode}:function(e,n,l){var c,u,h,p,d,f,m=o!==s?"nextSibling":"previousSibling",g=e.parentNode,v=a&&e.nodeName.toLowerCase(),y=!l&&!a,b=!1;if(g){if(o){for(;m;){for(p=e;p=p[m];)if(a?p.nodeName.toLowerCase()===v:1===p.nodeType)return!1;f=m="only"===t&&!f&&"nextSibling"}return!0}if(f=[s?g.firstChild:g.lastChild],s&&y){for(p=g,h=p[q]||(p[q]={}),u=h[p.uniqueID]||(h[p.uniqueID]={}),c=u[t]||[],d=c[0]===H&&c[1],b=d&&c[2],p=d&&g.childNodes[d];p=++d&&p&&p[m]||(b=d=0)||f.pop();)if(1===p.nodeType&&++b&&p===e){u[t]=[H,d,b];break}}else if(y&&(p=e,h=p[q]||(p[q]={}),u=h[p.uniqueID]||(h[p.uniqueID]={}),c=u[t]||[],d=c[0]===H&&c[1],b=d),b===!1)for(;(p=++d&&p&&p[m]||(b=d=0)||f.pop())&&((a?p.nodeName.toLowerCase()!==v:1!==p.nodeType)||!++b||(y&&(h=p[q]||(p[q]={}),u=h[p.uniqueID]||(h[p.uniqueID]={}),u[t]=[H,b]),p!==e)););return b-=r,b===i||b%i===0&&b/i>=0}}},PSEUDO:function(t,n){var r,o=x.pseudos[t]||x.setFilters[t.toLowerCase()]||e.error("unsupported pseudo: "+t);return o[q]?o(n):o.length>1?(r=[t,t,"",n],x.setFilters.hasOwnProperty(t.toLowerCase())?i(function(t,e){for(var i,r=o(t,n),s=r.length;s--;)i=tt(t,r[s]),t[i]=!(e[i]=r[s])}):function(t){return o(t,0,r)}):o}},pseudos:{not:i(function(t){var e=[],n=[],r=$(t.replace(at,"$1"));return r[q]?i(function(t,e,n,i){for(var o,s=r(t,null,i,[]),a=t.length;a--;)(o=s[a])&&(t[a]=!(e[a]=o))}):function(t,i,o){return e[0]=t,r(e,null,o,n),e[0]=null,!n.pop()}}),has:i(function(t){return function(n){return e(t,n).length>0}}),contains:i(function(t){return t=t.replace(wt,_t),function(e){return(e.textContent||e.innerText||k(e)).indexOf(t)>-1}}),lang:i(function(t){return pt.test(t||"")||e.error("unsupported lang: "+t),t=t.replace(wt,_t).toLowerCase(),function(e){var n;do if(n=O?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return n=n.toLowerCase(),n===t||0===n.indexOf(t+"-");while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===D},focus:function(t){return t===j.activeElement&&(!j.hasFocus||j.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:function(t){return t.disabled===!1},disabled:function(t){return t.disabled===!0},checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,t.selected===!0},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!x.pseudos.empty(t)}
vendor: 5,113 bytes, line 60
60,header:function(t){return mt.test(t.nodeName)},input:function(t){return ft.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:c(function(){return[0]}),last:c(function(t,e){return[e-1]}),eq:c(function(t,e,n){return[n<0?n+e:n]}),even:c(function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t}),odd:c(function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t}),lt:c(function(t,e,n){for(var i=n<0?n+e:n;--i>=0;)t.push(i);return t}),gt:c(function(t,e,n){for(var i=n<0?n+e:n;++i<e;)t.push(i);return t})}},x.pseudos.nth=x.pseudos.eq;for(w in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})x.pseudos[w]=a(w);for(w in{submit:!0,reset:!0})x.pseudos[w]=l(w);return h.prototype=x.filters=x.pseudos,x.setFilters=new h,C=e.tokenize=function(t,n){var i,r,o,s,a,l,c,u=U[t+" "];if(u)return n?0:u.slice(0);for(a=t,l=[],c=x.preFilter;a;){i&&!(r=lt.exec(a))||(r&&(a=a.slice(r[0].length)||a),l.push(o=[])),i=!1,(r=ct.exec(a))&&(i=r.shift(),o.push({value:i,type:r[0].replace(at," ")}),a=a.slice(i.length));for(s in x.filter)!(r=dt[s].exec(a))||c[s]&&!(r=c[s](r))||(i=r.shift(),o.push({value:i,type:s,matches:r}),a=a.slice(i.length));if(!i)break}return n?a.length:a?e.error(t):U(t,l).slice(0)},$=e.compile=function(t,e){var n,i=[],r=[],o=W[t+" "];if(!o){for(e||(e=C(t)),n=e.length;n--;)o=y(e[n]),o[q]?i.push(o):r.push(o);o=W(t,b(r,i)),o.selector=t}return o},S=e.select=function(t,e,n,i){var r,o,s,a,l,c="function"==typeof t&&t,h=!i&&C(t=c.selector||t);if(n=n||[],1===h.length){if(o=h[0]=h[0].slice(0),o.length>2&&"ID"===(s=o[0]).type&&_.getById&&9===e.nodeType&&O&&x.relative[o[1].type]){if(e=(x.find.ID(s.matches[0].replace(wt,_t),e)||[])[0],!e)return n;c&&(e=e.parentNode),t=t.slice(o.shift().value.length)}for(r=dt.needsContext.test(t)?0:o.length;r--&&(s=o[r],!x.relative[a=s.type]);)if((l=x.find[a])&&(i=l(s.matches[0].replace(wt,_t),yt.test(o[0].type)&&u(e.parentNode)||e))){if(o.splice(r,1),t=i.length&&p(o),!t)return Y.apply(n,i),n;break}}return(c||$(t,h))(i,e,!O,n,!e||yt.test(t)&&u(e.parentNode)||e),n},_.sortStable=q.split("").sort(G).join("")===q,_.detectDuplicates=!!I,M(),_.sortDetached=r(function(t){return 1&t.compareDocumentPosition(j.createElement("div"))}),r(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||o("type|href|height|width",function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),_.attributes&&r(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||o("value",function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),r(function(t){return null==t.getAttribute("disabled")})||o(et,function(t,e,n){var i;if(!n)return t[e]===!0?e.toLowerCase():(i=t.getAttributeNode(e))&&i.specified?i.value:null}),e}(n);ct.find=ft,ct.expr=ft.selectors,ct.expr[":"]=ct.expr.pseudos,ct.uniqueSort=ct.unique=ft.uniqueSort,ct.text=ft.getText,ct.isXMLDoc=ft.isXML,ct.contains=ft.contains;var mt=function(t,e,n){for(var i=[],r=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(r&&ct(t).is(n))break;i.push(t)}return i},gt=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},vt=ct.expr.match.needsContext,yt=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,bt=/^.[^:#\[\.,]*$/;ct.filter=function(t,e,n){var i=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?ct.find.matchesSelector(i,t)?[i]:[]:ct.find.matches(t,ct.grep(e,function(t){return 1===t.nodeType}))},ct.fn.extend({find:function(t){var e,n=this.length,i=[],r=this;if("string"!=typeof t)return this.pushStack(ct(t).filter(function(){for(e=0;e<n;e++)if(ct.contains(r[e],this))return!0}));for(e=0;e<n;e++)ct.find(t,r[e],i);return i=this.pushStack(n>1?ct.unique(i):i),i.selector=this.selector?this.selector+" "+t:t,i},filter:function(t){return this.pushStack(a(this,t||[],!1))},not:function(t){return this.pushStack(a(this,t||[],!0))},is:function(t){return!!a(this,"string"==typeof t&&vt.test(t)?ct(t):t||[],!1).length}});var wt,_t=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,xt=ct.fn.init=function(t,e,n){var i,r;if(!t)return this;if(n=n||wt,"string"==typeof t){if(i="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:_t.exec(t),!i||!i[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(i[1]){if(e=e instanceof ct?e[0]:e,ct.merge(this,ct.parseHTML(i[1],e&&e.nodeType?e.ownerDocument||e:K,!0)),yt.test(i[1])&&ct.isPlainObject(e))for(i in e)ct.isFunction(this[i])?this[i](e[i]):this.attr(i,e[i]);return this}return r=K.getElementById(i[2]),r&&r.parentNode&&(this.length=1,this[0]=r),this.context=K,this.selector=t,this}return t.nodeType?(this.context=this[0]=t,this.length=1,this):ct.isFunction(t)?void 0!==n.ready?n.ready(t):t(ct):(void 0!==t.selector&&(this.selector=t.selector,this.context=t.context),ct.makeArray(t,this))};xt.prototype=ct.fn,wt=ct(K);var kt=/^(?:parents|prev(?:Until|All))/,Tt={children:!0,contents:!0,next:!0,prev:!0};
vendor: 4,900 bytes, line 60
60ct.fn.extend({has:function(t){var e=ct(t,this),n=e.length;return this.filter(function(){for(var t=0;t<n;t++)if(ct.contains(this,e[t]))return!0})},closest:function(t,e){for(var n,i=0,r=this.length,o=[],s=vt.test(t)||"string"!=typeof t?ct(t,e||this.context):0;i<r;i++)for(n=this[i];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(s?s.index(n)>-1:1===n.nodeType&&ct.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(o.length>1?ct.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?it.call(ct(t),this[0]):it.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(ct.uniqueSort(ct.merge(this.get(),ct(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),ct.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return mt(t,"parentNode")},parentsUntil:function(t,e,n){return mt(t,"parentNode",n)},next:function(t){return l(t,"nextSibling")},prev:function(t){return l(t,"previousSibling")},nextAll:function(t){return mt(t,"nextSibling")},prevAll:function(t){return mt(t,"previousSibling")},nextUntil:function(t,e,n){return mt(t,"nextSibling",n)},prevUntil:function(t,e,n){return mt(t,"previousSibling",n)},siblings:function(t){return gt((t.parentNode||{}).firstChild,t)},children:function(t){return gt(t.firstChild)},contents:function(t){return t.contentDocument||ct.merge([],t.childNodes)}},function(t,e){ct.fn[t]=function(n,i){var r=ct.map(this,e,n);return"Until"!==t.slice(-5)&&(i=n),i&&"string"==typeof i&&(r=ct.filter(i,r)),this.length>1&&(Tt[t]||ct.uniqueSort(r),kt.test(t)&&r.reverse()),this.pushStack(r)}});var Ct=/\S+/g;ct.Callbacks=function(t){t="string"==typeof t?c(t):ct.extend({},t);var e,n,i,r,o=[],s=[],a=-1,l=function(){for(r=t.once,i=e=!0;s.length;a=-1)for(n=s.shift();++a<o.length;)o[a].apply(n[0],n[1])===!1&&t.stopOnFalse&&(a=o.length,n=!1);t.memory||(n=!1),e=!1,r&&(o=n?[]:"")},u={add:function(){return o&&(n&&!e&&(a=o.length-1,s.push(n)),function e(n){ct.each(n,function(n,i){ct.isFunction(i)?t.unique&&u.has(i)||o.push(i):i&&i.length&&"string"!==ct.type(i)&&e(i)})}(arguments),n&&!e&&l()),this},remove:function(){return ct.each(arguments,function(t,e){for(var n;(n=ct.inArray(e,o,n))>-1;)o.splice(n,1),n<=a&&a--}),this},has:function(t){return t?ct.inArray(t,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(t,n){return r||(n=n||[],n=[t,n.slice?n.slice():n],s.push(n),e||l()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!i}};return u},ct.extend({Deferred:function(t){var e=[["resolve","done",ct.Callbacks("once memory"),"resolved"],["reject","fail",ct.Callbacks("once memory"),"rejected"],["notify","progress",ct.Callbacks("memory")]],n="pending",i={state:function(){return n},always:function(){return r.done(arguments).fail(arguments),this},then:function(){var t=arguments;return ct.Deferred(function(n){ct.each(e,function(e,o){var s=ct.isFunction(t[e])&&t[e];r[o[1]](function(){var t=s&&s.apply(this,arguments);t&&ct.isFunction(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[o[0]+"With"](this===i?n.promise():this,s?[t]:arguments)})}),t=null}).promise()},promise:function(t){return null!=t?ct.extend(t,i):i}},r={};return i.pipe=i.then,ct.each(e,function(t,o){var s=o[2],a=o[3];i[o[1]]=s.add,a&&s.add(function(){n=a},e[1^t][2].disable,e[2][2].lock),r[o[0]]=function(){return r[o[0]+"With"](this===r?i:this,arguments),this},r[o[0]+"With"]=s.fireWith}),i.promise(r),t&&t.call(r,r),r},when:function(t){var e,n,i,r=0,o=tt.call(arguments),s=o.length,a=1!==s||t&&ct.isFunction(t.promise)?s:0,l=1===a?t:ct.Deferred(),c=function(t,n,i){return function(r){n[t]=this,i[t]=arguments.length>1?tt.call(arguments):r,i===e?l.notifyWith(n,i):--a||l.resolveWith(n,i)}};if(s>1)for(e=new Array(s),n=new Array(s),i=new Array(s);r<s;r++)o[r]&&ct.isFunction(o[r].promise)?o[r].promise().progress(c(r,n,e)).done(c(r,i,o)).fail(l.reject):--a;return a||l.resolveWith(i,o),l.promise()}});var $t;ct.fn.ready=function(t){return ct.ready.promise().done(t),this},ct.extend({isReady:!1,readyWait:1,holdReady:function(t){t?ct.readyWait++:ct.ready(!0)},ready:function(t){(t===!0?--ct.readyWait:ct.isReady)||(ct.isReady=!0,t!==!0&&--ct.readyWait>0||($t.resolveWith(K,[ct]),ct.fn.triggerHandler&&(ct(K).triggerHandler("ready"),ct(K).off("ready"))))}}),ct.ready.promise=function(t){return $t||($t=ct.Deferred(),"complete"===K.readyState||"loading"!==K.readyState&&!K.documentElement.doScroll?n.setTimeout(ct.ready):(K.addEventListener("DOMContentLoaded",u),n.addEventListener("load",u))),$t.promise(t)},ct.ready.promise();var St=function(t,e,n,i,r,o,s){var a=0,l=t.length,c=null==n;
60if("object"===ct.type(n)){r=!0;for(a in n)St(t,e,a,n[a],!0,o,s)}else if(void 0!==i&&(r=!0,ct.isFunction(i)||(s=!0),c&&(s?(e.call(t,i),e=null):(c=e,e=function(t,e,n){return c.call(ct(t),n)})),e))for(;a<l;a++)e(t[a],n,s?i:i.call(t[a],a,e(t[a],n)));return r?t:c?e.call(t):l?e(t[0],n):o},Et=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};h.uid=1,h.prototype={register:function(t,e){var n=e||{};return t.nodeType?t[this.expando]=n:Object.defineProperty(t,this.expando,{value:n,writable:!0,configurable:!0}),t[this.expando]},cache:function(t){if(!Et(t))return{};var e=t[this.expando];return e||(e={},Et(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,n){var i,r=this.cache(t);if("string"==typeof e)r[e]=n;else for(i in e)r[i]=e[i];return r},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][e]},access:function(t,e,n){var i;return void 0===e||e&&"string"==typeof e&&void 0===n?(i=this.get(t,e),void 0!==i?i:this.get(t,ct.camelCase(e))):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,i,r,o=t[this.expando];if(void 0!==o){if(void 0===e)this.register(t);else{ct.isArray(e)?i=e.concat(e.map(ct.camelCase)):(r=ct.camelCase(e),e in o?i=[e,r]:(i=r,i=i in o?[i]:i.match(Ct)||[])),n=i.length;for(;n--;)delete o[i[n]]}(void 0===e||ct.isEmptyObject(o))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!ct.isEmptyObject(e)}};var At=new h,It=new h,Mt=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,jt=/[A-Z]/g;ct.extend({hasData:function(t){return It.hasData(t)||At.hasData(t)},data:function(t,e,n){return It.access(t,e,n)},removeData:function(t,e){It.remove(t,e)},_data:function(t,e,n){return At.access(t,e,n)},_removeData:function(t,e){At.remove(t,e)}}),ct.fn.extend({data:function(t,e){var n,i,r,o=this[0],s=o&&o.attributes;if(void 0===t){if(this.length&&(r=It.get(o),1===o.nodeType&&!At.get(o,"hasDataAttrs"))){for(n=s.length;n--;)s[n]&&(i=s[n].name,0===i.indexOf("data-")&&(i=ct.camelCase(i.slice(5)),p(o,i,r[i])));At.set(o,"hasDataAttrs",!0)}return r}return"object"==typeof t?this.each(function(){It.set(this,t)}):St(this,function(e){var n,i;if(o&&void 0===e){if(n=It.get(o,t)||It.get(o,t.replace(jt,"-$&").toLowerCase()),void 0!==n)return n;if(i=ct.camelCase(t),n=It.get(o,i),void 0!==n)return n;if(n=p(o,i,void 0),void 0!==n)return n}else i=ct.camelCase(t),this.each(function(){var n=It.get(this,i);It.set(this,i,e),t.indexOf("-")>-1&&void 0!==n&&It.set(this,t,e)})},null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each(function(){It.remove(this,t)})}}),ct.extend({queue:function(t,e,n){var i;if(t)return e=(e||"fx")+"queue",i=At.get(t,e),n&&(!i||ct.isArray(n)?i=At.access(t,e,ct.makeArray(n)):i.push(n)),i||[]},dequeue:function(t,e){e=e||"fx";var n=ct.queue(t,e),i=n.length,r=n.shift(),o=ct._queueHooks(t,e),s=function(){ct.dequeue(t,e)};"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===e&&n.unshift("inprogress"),delete o.stop,r.call(t,s,o)),!i&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return At.get(t,n)||At.access(t,n,{empty:ct.Callbacks("once memory").add(function(){At.remove(t,[e+"queue",n])})})}}),ct.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?ct.queue(this[0],t):void 0===e?this:this.each(function(){var n=ct.queue(this,t,e);ct._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&ct.dequeue(this,t)})},dequeue:function(t){return this.each(function(){ct.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,i=1,r=ct.Deferred(),o=this,s=this.length,a=function(){--i||r.resolveWith(o,[o])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";s--;)n=At.get(o[s],t+"queueHooks"),n&&n.empty&&(i++,n.empty.add(a));return a(),r.promise(e)}});var Dt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Ot=new RegExp("^(?:([+-])=|)("+Dt+")([a-z%]*)$","i"),Nt=["Top","Right","Bottom","Left"],Lt=function(t,e){return t=e||t,"none"===ct.css(t,"display")||!ct.contains(t.ownerDocument,t)},Pt=/^(?:checkbox|radio)$/i,Rt=/<([\w:-]+)/,qt=/^$|\/(?:java|ecma)script/i,Ft={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};Ft.optgroup=Ft.option,Ft.tbody=Ft.tfoot=Ft.colgroup=Ft.caption=Ft.thead,Ft.th=Ft.td;var Ht=/<|&#?\w+;/;!function(){var t=K.createDocumentFragment(),e=t.appendChild(K.createElement("div")),n=K.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),e.appendChild(n),at.checkClone
60=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="<textarea>x</textarea>",at.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue}();var Bt=/^key/,zt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ut=/^([^.]*)(?:\.(.+)|)/;ct.event={global:{},add:function(t,e,n,i,r){var o,s,a,l,c,u,h,p,d,f,m,g=At.get(t);if(g)for(n.handler&&(o=n,n=o.handler,r=o.selector),n.guid||(n.guid=ct.guid++),(l=g.events)||(l=g.events={}),(s=g.handle)||(s=g.handle=function(e){return"undefined"!=typeof ct&&ct.event.triggered!==e.type?ct.event.dispatch.apply(t,arguments):void 0}),e=(e||"").match(Ct)||[""],c=e.length;c--;)a=Ut.exec(e[c])||[],d=m=a[1],f=(a[2]||"").split(".").sort(),d&&(h=ct.event.special[d]||{},d=(r?h.delegateType:h.bindType)||d,h=ct.event.special[d]||{},u=ct.extend({type:d,origType:m,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&ct.expr.match.needsContext.test(r),namespace:f.join(".")},o),(p=l[d])||(p=l[d]=[],p.delegateCount=0,h.setup&&h.setup.call(t,i,f,s)!==!1||t.addEventListener&&t.addEventListener(d,s)),h.add&&(h.add.call(t,u),u.handler.guid||(u.handler.guid=n.guid)),r?p.splice(p.delegateCount++,0,u):p.push(u),ct.event.global[d]=!0)},remove:function(t,e,n,i,r){var o,s,a,l,c,u,h,p,d,f,m,g=At.hasData(t)&&At.get(t);if(g&&(l=g.events)){for(e=(e||"").match(Ct)||[""],c=e.length;c--;)if(a=Ut.exec(e[c])||[],d=m=a[1],f=(a[2]||"").split(".").sort(),d){for(h=ct.event.special[d]||{},d=(i?h.delegateType:h.bindType)||d,p=l[d]||[],a=a[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=p.length;o--;)u=p[o],!r&&m!==u.origType||n&&n.guid!==u.guid||a&&!a.test(u.namespace)||i&&i!==u.selector&&("**"!==i||!u.selector)||(p.splice(o,1), 61u.selector&&p.delegateCount--,h.remove&&h.remove.call(t,u));s&&!p.length&&(h.teardown&&h.teardown.call(t,f,g.handle)!==!1||ct.removeEvent(t,d,g.handle),delete l[d])}else for(d in l)ct.event.remove(t,d+e[c],n,i,!0);ct.isEmptyObject(l)&&At.remove(t,"handle events")}},dispatch:function(t){t=ct.event.fix(t);var e,n,i,r,o,s=[],a=tt.call(arguments),l=(At.get(this,"events")||{})[t.type]||[],c=ct.event.special[t.type]||{};if(a[0]=t,t.delegateTarget=this,!c.preDispatch||c.preDispatch.call(this,t)!==!1){for(s=ct.event.handlers.call(this,t,l),e=0;(r=s[e++])&&!t.isPropagationStopped();)for(t.currentTarget=r.elem,n=0;(o=r.handlers[n++])&&!t.isImmediatePropagationStopped();)t.rnamespace&&!t.rnamespace.test(o.namespace)||(t.handleObj=o,t.data=o.data,i=((ct.event.special[o.origType]||{}).handle||o.handler).apply(r.elem,a),void 0!==i&&(t.result=i)===!1&&(t.preventDefault(),t.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,t),t.result}},handlers:function(t,e){var n,i,r,o,s=[],a=e.delegateCount,l=t.target;if(a&&l.nodeType&&("click"!==t.type||isNaN(t.button)||t.button<1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&(l.disabled!==!0||"click"!==t.type)){for(i=[],n=0;n<a;n++)o=e[n],r=o.selector+" ",void 0===i[r]&&(i[r]=o.needsContext?ct(r,this).index(l)>-1:ct.find(r,this,null,[l]).length),i[r]&&i.push(o);i.length&&s.push({elem:l,handlers:i})}return a<e.length&&s.push({elem:this,handlers:e.slice(a)}),s},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(t,e){return null==t.which&&(t.which=null!=e.charCode?e.charCode:e.keyCode),t}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(t,e){var n,i,r,o=e.button;return null==t.pageX&&null!=e.clientX&&(n=t.target.ownerDocument||K,i=n.documentElement,r=n.body,t.pageX=e.clientX+(i&&i.scrollLeft||r&&r.scrollLeft||0)-(i&&i.clientLeft||r&&r.clientLeft||0),t.pageY=e.clientY+(i&&i.scrollTop||r&&r.scrollTop||0)-(i&&i.clientTop||r&&r.clientTop||0)),t.which||void 0===o||(t.which=1&o?1:2&o?3:4&o?2:0),t}},fix:function(t){if(t[ct.expando])return t;var e,n,i,r=t.type,o=t,s=this.fixHooks[r];for(s||(this.fixHooks[r]=s=zt.test(r)?this.mouseHooks:Bt.test(r)?this.keyHooks:{}),i=s.props?this.props.concat(s.props):this.props,t=new ct.Event(o),e=i.length;e--;)n=i[e],t[n]=o[n];return t.target||(t.target=K),3===t.target.nodeType&&(t.target=t.target.parentNode),s.filter?s.filter(t,o):t},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==b()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===b()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&ct.no
vendor: 15,619 bytes, line 61
61deName(this,"input"))return this.click(),!1},_default:function(t){return ct.nodeName(t.target,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},ct.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},ct.Event=function(t,e){return this instanceof ct.Event?(t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&t.returnValue===!1?v:y):this.type=t,e&&ct.extend(this,e),this.timeStamp=t&&t.timeStamp||ct.now(),void(this[ct.expando]=!0)):new ct.Event(t,e)},ct.Event.prototype={constructor:ct.Event,isDefaultPrevented:y,isPropagationStopped:y,isImmediatePropagationStopped:y,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=v,t&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=v,t&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=v,t&&t.stopImmediatePropagation(),this.stopPropagation()}},ct.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,e){ct.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,i=this,r=t.relatedTarget,o=t.handleObj;return r&&(r===i||ct.contains(i,r))||(t.type=o.origType,n=o.handler.apply(this,arguments),t.type=e),n}}}),ct.fn.extend({on:function(t,e,n,i){return w(this,t,e,n,i)},one:function(t,e,n,i){return w(this,t,e,n,i,1)},off:function(t,e,n){var i,r;if(t&&t.preventDefault&&t.handleObj)return i=t.handleObj,ct(t.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof t){for(r in t)this.off(r,e,t[r]);return this}return e!==!1&&"function"!=typeof e||(n=e,e=void 0),n===!1&&(n=y),this.each(function(){ct.event.remove(this,t,n,e)})}});var Wt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,Gt=/<script|<style|<link/i,Vt=/checked\s*(?:[^=]|=\s*.checked.)/i,Xt=/^true\/(.*)/,Qt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;ct.extend({htmlPrefilter:function(t){return t.replace(Wt,"<$1></$2>")},clone:function(t,e,n){var i,r,o,s,a=t.cloneNode(!0),l=ct.contains(t.ownerDocument,t);if(!(at.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||ct.isXMLDoc(t)))for(s=f(a),o=f(t),i=0,r=o.length;i<r;i++)C(o[i],s[i]);if(e)if(n)for(o=o||f(t),s=s||f(a),i=0,r=o.length;i<r;i++)T(o[i],s[i]);else T(t,a);return s=f(a,"script"),s.length>0&&m(s,!l&&f(t,"script")),a},cleanData:function(t){for(var e,n,i,r=ct.event.special,o=0;void 0!==(n=t[o]);o++)if(Et(n)){if(e=n[At.expando]){if(e.events)for(i in e.events)r[i]?ct.event.remove(n,i):ct.removeEvent(n,i,e.handle);n[At.expando]=void 0}n[It.expando]&&(n[It.expando]=void 0)}}}),ct.fn.extend({domManip:$,detach:function(t){return S(this,t,!0)},remove:function(t){return S(this,t)},text:function(t){return St(this,function(t){return void 0===t?ct.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)})},null,t,arguments.length)},append:function(){return $(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=_(this,t);e.appendChild(t)}})},prepend:function(){return $(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=_(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return $(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return $(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(ct.cleanData(f(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return ct.clone(this,t,e)})},html:function(t){return St(this,function(t){var e=this[0]||{},n=0,i=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!Gt.test(t)&&!Ft[(Rt.exec(t)||["",""])[1].toLowerCase()]){t=ct.htmlPrefilter(t);try{for(;n<i;n++)e=this[n]||{},1===e.nodeType&&(ct.cleanData(f(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=[];return $(this,arguments,function(e){var n=this.parentNode;ct.inArray(this,t)<0&&(ct.cleanData(f(this)),n&&n.replaceChild(e,this))},t)}}),ct.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){ct.fn[t]=function(t){for(var n,i=[],r=ct(t),o=r.length-1,s=0;s<=o;s++)n=s===o?this:this.clone(!0),ct(r[s])[e](n),nt.apply(i,n.get());return this.pushStack(i)}});var Jt,Zt={HTML:"block",BODY:"block"},Yt=/^margin/,Kt=new RegExp("^("+Dt+")(?!px)[a-z%]+$","i"),te=function(t){var e=t.ownerDocument.defaultView;return e&&e.opener||(e=n),e.getComputedStyle(t)},ee=function(t,e,n,i){var r,o,s={};for(o in e)s[o]=t.style[o],t.style[o]=e[o];r=n.apply(t,i||[]);for(o in e)t.style[o]=s[o];return r},ne=K.documentElement;!function(){function t(){a.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%",a.innerHTML="",ne.appendChild(s);var t=n.getComputedStyle(a);e="1%"!==t.top,o="2px"===t.marginLeft,i="4px"===t.width,a.style.marginRight="50%",r="4px"===t.marginRight,ne.removeChild(s)}var e,i,r,o,s=K.createElement("div"),a=K.createElement("div");a.style&&(a.style.backgroundClip="content-box",a.cloneNode(!0).style.backgroundClip="",at.clearCloneStyle="content-box"===a.style.backgroundClip,s.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",s.appendChild(a),ct.extend(at,{pixelPosition:function(){return t(),e},boxSizingReliable:function(){return null==i&&t(),i},pixelMarginRight:function(){return null==i&&t(),r},reliableMarginLeft:function(){return null==i&&t(),o},reliableMarginRight:function(){var t,e=a.appendChild(K.createElement("div"));return e.style.cssText=a.style.cssText="-webkit-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",e.style.marginRight=e.style.width="0",a.style.width="1px",ne.appendChild(s),t=!parseFloat(n.getComputedStyle(e).marginRight),ne.removeChild(s),a.removeChild(e),t}}))}();var ie=/^(none|table(?!-c[ea]).+)/,re={position:"absolute",visibility:"hidden",display:"block"},oe={letterSpacing:"0",fontWeight:"400"},se=["Webkit","O","Moz","ms"],ae=K.createElement("div").style;ct.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=I(t,"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(t,e,n,i){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var r,o,s,a=ct.camelCase(e),l=t.style;return e=ct.cssProps[a]||(ct.cssProps[a]=j(a)||a),s=ct.cssHooks[e]||ct.cssHooks[a],void 0===n?s&&"get"in s&&void 0!==(r=s.get(t,!1,i))?r:l[e]:(o=typeof n,"string"===o&&(r=Ot.exec(n))&&r[1]&&(n=d(t,e,r),o="number"),null!=n&&n===n&&("number"===o&&(n+=r&&r[3]||(ct.cssNumber[a]?"":"px")),at.clearCloneStyle||""!==n||0!==e.indexOf("background")||(l[e]="inherit"),s&&"set"in s&&void 0===(n=s.set(t,n,i))||(l[e]=n)),void 0)}},css:function(t,e,n,i){var r,o,s,a=ct.camelCase(e);return e=ct.cssProps[a]||(ct.cssProps[a]=j(a)||a),s=ct.cssHooks[e]||ct.cssHooks[a],s&&"get"in s&&(r=s.get(t,!0,n)),void 0===r&&(r=I(t,e,i)),"normal"===r&&e in oe&&(r=oe[e]),""===n||n?(o=parseFloat(r),n===!0||isFinite(o)?o||0:r):r}}),ct.each(["height","width"],function(t,e){ct.cssHooks[e]={get:function(t,n,i){if(n)return ie.test(ct.css(t,"display"))&&0===t.offsetWidth?ee(t,re,function(){return N(t,e,i)}):N(t,e,i)},set:function(t,n,i){var r,o=i&&te(t),s=i&&O(t,e,i,"border-box"===ct.css(t,"boxSizing",!1,o),o);return s&&(r=Ot.exec(n))&&"px"!==(r[3]||"px")&&(t.style[e]=n,n=ct.css(t,e)),D(t,n,s)}}}),ct.cssHooks.marginLeft=M(at.reliableMarginLeft,function(t,e){if(e)return(parseFloat(I(t,"marginLeft"))||t.getBoundingClientRect().left-ee(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px"}),ct.cssHooks.marginRight=M(at.reliableMarginRight,function(t,e){if(e)return ee(t,{display:"inline-block"},I,[t,"marginRight"])}),ct.each({margin:"",padding:"",border:"Width"},function(t,e){ct.cssHooks[t+e]={expand:function(n){for(var i=0,r={},o="string"==typeof n?n.split(" "):[n];i<4;i++)r[t+Nt[i]+e]=o[i]||o[i-2]||o[0];return r}},Yt.test(t)||(ct.cssHooks[t+e].set=D)}),ct.fn.extend({css:function(t,e){return St(this,function(t,e,n){var i,r,o={},s=0;if(ct.isArray(e)){for(i=te(t),r=e.length;s<r;s++)o[e[s]]=ct.css(t,e[s],!1,i);return o}return void 0!==n?ct.style(t,e,n):ct.css(t,e)},t,e,arguments.length>1)},show:function(){return L(this,!0)},hide:function(){return L(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){Lt(this)?ct(this).show():ct(this).hide()})}}),ct.Tween=P,P.prototype={constructor:P,init:function(t,e,n,i,r,o){this.elem=t,this.prop=n,this.easing=r||ct.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=i,this.unit=o||(ct.cssNumber[n]?"":"px")},cur:function(){var t=P.propHooks[this.prop];return t&&t.get?t.get(this):P.propHooks._default.get(this)},run:function(t){var e,n=P.propHooks[this.prop];return this.options.duration?this.pos=e=ct.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+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(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=ct.css(t.elem,t.prop,""),e&&"auto"!==e?e:0)},set:function(t){ct.fx.step[t.prop]?ct.fx.step[t.prop](t):1!==t.elem.nodeType||null==t.elem.style[ct.cssProps[t.prop]]&&!ct.cssHooks[t.prop]?t.elem[t.prop]=t.now:ct.style(t.elem,t.prop,t.now+t.unit)}}},P.propHooks.scrollTop=P.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},ct.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},ct.fx=P.prototype.init,ct.fx.step={};var le,ce,ue=/^(?:toggle|show|hide)$/,he=/queueHooks$/;ct.Animation=ct.extend(z,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return d(n.elem,t,Ot.exec(e),n),n}]},tweener:function(t,e){ct.isFunction(t)?(e=t,t=["*"]):t=t.match(Ct);for(var n,i=0,r=t.length;i<r;i++)n=t[i],z.tweeners[n]=z.tweeners[n]||[],z.tweeners[n].unshift(e)},prefilters:[H],prefilter:function(t,e){e?z.prefilters.unshift(t):z.prefilters.push(t)}}),ct.speed=function(t,e,n){var i=t&&"object"==typeof t?ct.extend({},t):{complete:n||!n&&e||ct.isFunction(t)&&t,duration:t,easing:n&&e||e&&!ct.isFunction(e)&&e};return i.duration=ct.fx.off?0:"number"==typeof i.duration?i.duration:i.duration in ct.fx.speeds?ct.fx.speeds[i.duration]:ct.fx.speeds._default,null!=i.queue&&i.queue!==!0||(i.queue="fx"),i.old=i.complete,i.complete=function(){ct.isFunction(i.old)&&i.old.call(this),i.queue&&ct.dequeue(this,i.queue)},i},ct.fn.extend({fadeTo:function(t,e,n,i){return this.filter(Lt).css("opacity",0).show().end().animate({opacity:e},t,n,i)},animate:function(t,e,n,i){var r=ct.isEmptyObject(t),o=ct.speed(e,n,i),s=function(){var e=z(this,ct.extend({},t),o);(r||At.get(this,"finish"))&&e.stop(!0)};return s.finish=s,r||o.queue===!1?this.each(s):this.queue(o.queue,s)},stop:function(t,e,n){var i=function(t){var e=t.stop;delete t.stop,e(n)};return"string"!=typeof t&&(n=e,e=t,t=void 0),e&&t!==!1&&this.queue(t||"fx",[]),this.each(function(){var e=!0,r=null!=t&&t+"queueHooks",o=ct.timers,s=At.get(this);if(r)s[r]&&s[r].stop&&i(s[r]);else for(r in s)s[r]&&s[r].stop&&he.test(r)&&i(s[r]);for(r=o.length;r--;)o[r].elem!==this||null!=t&&o[r].queue!==t||(o[r].anim.stop(n),e=!1,o.splice(r,1));!e&&n||ct.dequeue(this,t)})},finish:function(t){return t!==!1&&(t=t||"fx"),this.each(function(){var e,n=At.get(this),i=n[t+"queue"],r=n[t+"queueHooks"],o=ct.timers,s=i?i.length:0;for(n.finish=!0,ct.queue(this,t,[]),r&&r.stop&&r.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===t&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;e<s;e++)i[e]&&i[e].finish&&i[e].finish.call(this);delete n.finish})}}),ct.each(["toggle","show","hide"],function(t,e){var n=ct.fn[e];ct.fn[e]=function(t,i,r){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(q(e,!0),t,i,r)}}),ct.each({slideDown:q("show"),slideUp:q("hide"),slideToggle:q("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){ct.fn[t]=function(t,n,i){return this.animate(e,t,n,i)}}),ct.timers=[],ct.fx.tick=function(){var t,e=0,n=ct.timers;for(le=ct.now();e<n.length;e++)t=n[e],t()||n[e]!==t||n.splice(e--,1);n.length||ct.fx.stop(),le=void 0},ct.fx.timer=function(t){ct.timers.push(t),t()?ct.fx.start():ct.timers.pop()},ct.fx.interval=13,ct.fx.start=function(){ce||(ce=n.setInterval(ct.fx.tick,ct.fx.interval))},ct.fx.stop=function(){n.clearInterval(ce),ce=null},ct.fx.speeds={slow:600,fast:200,_default:400},ct.fn.delay=function(t,e){return t=ct.fx?ct.fx.speeds[t]||t:t,e=e||"fx",this.queue(e,function(e,i){var r=n.setTimeout(e,t);i.stop=function(){n.clearTimeout(r)}})},function(){var t=K.createElement("input"),e=K.createElement("select"),n=e.appendChild(K.createElement("option"));t.type="checkbox",at.checkOn=""!==t.value,at.optSelected=n.selected,e.disabled=!0,at.optDisabled=!n.disabled,t=K.createElement("input"),t.value="t",t.type="radio",at.radioValue="t"===t.value}();var pe,de=ct.expr.attrHandle;ct.fn.extend({attr:function(t,e){return St(this,ct.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){ct.removeAttr(this,t)})}}),ct.extend({attr:function(t,e,n){var i,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"==typeof t.getAttribute?ct.prop(t,e,n):(1===o&&ct.isXMLDoc(t)||(e=e.toLowerCase(),r=ct.attrHooks[e]||(ct.expr.match.bool.test(e)?pe:void 0)),void 0!==n?null===n?void ct.removeAttr(t,e):r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:(t.setAttribute(e,n+""),n):r&&"get"in r&&null!==(i=r.get(t,e))?i:(i=ct.find.attr(t,e),null==i?void 0:i))},attrHooks:{type:{set:function(t,e){if(!at.radioValue&&"radio"===e&&ct.nodeName(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,i,r=0,o=e&&e.match(Ct);if(o&&1===t.nodeType)for(;n=o[r++];)i=ct.propFix[n]||n,ct.expr.match.bool.test(n)&&(t[i]=!1),t.removeAttribute(n)}}),pe={set:function(t,e,n){return e===!1?ct.removeAttr(t,n):t.setAttribute(n,n),n}},ct.each(ct.expr.match.bool.source.match(/\w+/g),function(t,e){var n=de[e]||ct.find.attr;de[e]=function(t,e,i){var r,o;return i||(o=de[e],de[e]=r,r=null!=n(t,e,i)?e.toLowerCase():null,de[e]=o),r}});var fe=/^(?:input|select|textarea|button)$/i,me=/^(?:a|area)$/i;ct.fn.extend({prop:function(t,e){return St(this,ct.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[ct.propFix[t]||t]})}}),ct.extend({prop:function(t,e,n){var i,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&ct.isXMLDoc(t)||(e=ct.propFix[e]||e,r=ct.propHooks[e]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:t[e]=n:r&&"get"in r&&null!==(i=r.get(t,e))?i:t[e]},propHooks:{tabIndex:{get:function(t){var e=ct.find.attr(t,"tabindex");
61return e?parseInt(e,10):fe.test(t.nodeName)||me.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),at.optSelected||(ct.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),ct.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){ct.propFix[this.toLowerCase()]=this});var ge=/[\t\r\n\f]/g;ct.fn.extend({addClass:function(t){var e,n,i,r,o,s,a,l=0;if(ct.isFunction(t))return this.each(function(e){ct(this).addClass(t.call(this,e,U(this)))});if("string"==typeof t&&t)for(e=t.match(Ct)||[];n=this[l++];)if(r=U(n),i=1===n.nodeType&&(" "+r+" ").replace(ge," ")){for(s=0;o=e[s++];)i.indexOf(" "+o+" ")<0&&(i+=o+" ");a=ct.trim(i),r!==a&&n.setAttribute("class",a)}return this},removeClass:function(t){var e,n,i,r,o,s,a,l=0;if(ct.isFunction(t))return this.each(function(e){ct(this).removeClass(t.call(this,e,U(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof t&&t)for(e=t.match(Ct)||[];n=this[l++];)if(r=U(n),i=1===n.nodeType&&(" "+r+" ").replace(ge," ")){for(s=0;o=e[s++];)for(;i.indexOf(" "+o+" ")>-1;)i=i.replace(" "+o+" "," ");a=ct.trim(i),r!==a&&n.setAttribute("class",a)}return this},toggleClass:function(t,e){var n=typeof t;return"boolean"==typeof e&&"string"===n?e?this.addClass(t):this.removeClass(t):ct.isFunction(t)?this.each(function(n){ct(this).toggleClass(t.call(this,n,U(this),e),e)}):this.each(function(){var e,i,r,o;if("string"===n)for(i=0,r=ct(this),o=t.match(Ct)||[];e=o[i++];)r.hasClass(e)?r.removeClass(e):r.addClass(e);else void 0!==t&&"boolean"!==n||(e=U(this),e&&At.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||t===!1?"":At.get(this,"__className__")||""))})},hasClass:function(t){var e,n,i=0;for(e=" "+t+" ";n=this[i++];)if(1===n.nodeType&&(" "+U(n)+" ").replace(ge," ").indexOf(e)>-1)return!0;return!1}});var ve=/\r/g,ye=/[\x20\t\r\n\f]+/g;ct.fn.extend({val:function(t){var e,n,i,r=this[0];{if(arguments.length)return i=ct.isFunction(t),this.each(function(n){var r;1===this.nodeType&&(r=i?t.call(this,n,ct(this).val()):t,null==r?r="":"number"==typeof r?r+="":ct.isArray(r)&&(r=ct.map(r,function(t){return null==t?"":t+""})),e=ct.valHooks[this.type]||ct.valHooks[this.nodeName.toLowerCase()],e&&"set"in e&&void 0!==e.set(this,r,"value")||(this.value=r))});if(r)return e=ct.valHooks[r.type]||ct.valHooks[r.nodeName.toLowerCase()],e&&"get"in e&&void 0!==(n=e.get(r,"value"))?n:(n=r.value,"string"==typeof n?n.replace(ve,""):null==n?"":n)}}}),ct.extend({valHooks:{option:{get:function(t){var e=ct.find.attr(t,"value");return null!=e?e:ct.trim(ct.text(t)).replace(ye," ")}}
vendor: 4,405 bytes, line 61
61,select:{get:function(t){for(var e,n,i=t.options,r=t.selectedIndex,o="select-one"===t.type||r<0,s=o?null:[],a=o?r+1:i.length,l=r<0?a:o?r:0;l<a;l++)if(n=i[l],(n.selected||l===r)&&(at.optDisabled?!n.disabled:null===n.getAttribute("disabled"))&&(!n.parentNode.disabled||!ct.nodeName(n.parentNode,"optgroup"))){if(e=ct(n).val(),o)return e;s.push(e)}return s},set:function(t,e){for(var n,i,r=t.options,o=ct.makeArray(e),s=r.length;s--;)i=r[s],(i.selected=ct.inArray(ct.valHooks.option.get(i),o)>-1)&&(n=!0);return n||(t.selectedIndex=-1),o}}}}),ct.each(["radio","checkbox"],function(){ct.valHooks[this]={set:function(t,e){if(ct.isArray(e))return t.checked=ct.inArray(ct(t).val(),e)>-1}},at.checkOn||(ct.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})});var be=/^(?:focusinfocus|focusoutblur)$/;ct.extend(ct.event,{trigger:function(t,e,i,r){var o,s,a,l,c,u,h,p=[i||K],d=st.call(t,"type")?t.type:t,f=st.call(t,"namespace")?t.namespace.split("."):[];if(s=a=i=i||K,3!==i.nodeType&&8!==i.nodeType&&!be.test(d+ct.event.triggered)&&(d.indexOf(".")>-1&&(f=d.split("."),d=f.shift(),f.sort()),c=d.indexOf(":")<0&&"on"+d,t=t[ct.expando]?t:new ct.Event(d,"object"==typeof t&&t),t.isTrigger=r?2:3,t.namespace=f.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=i),e=null==e?[t]:ct.makeArray(e,[t]),h=ct.event.special[d]||{},r||!h.trigger||h.trigger.apply(i,e)!==!1)){if(!r&&!h.noBubble&&!ct.isWindow(i)){for(l=h.delegateType||d,be.test(l+d)||(s=s.parentNode);s;s=s.parentNode)p.push(s),a=s;a===(i.ownerDocument||K)&&p.push(a.defaultView||a.parentWindow||n)}for(o=0;(s=p[o++])&&!t.isPropagationStopped();)t.type=o>1?l:h.bindType||d,u=(At.get(s,"events")||{})[t.type]&&At.get(s,"handle"),u&&u.apply(s,e),u=c&&s[c],u&&u.apply&&Et(s)&&(t.result=u.apply(s,e),t.result===!1&&t.preventDefault());return t.type=d,r||t.isDefaultPrevented()||h._default&&h._default.apply(p.pop(),e)!==!1||!Et(i)||c&&ct.isFunction(i[d])&&!ct.isWindow(i)&&(a=i[c],a&&(i[c]=null),ct.event.triggered=d,i[d](),ct.event.triggered=void 0,a&&(i[c]=a)),t.result}},simulate:function(t,e,n){var i=ct.extend(new ct.Event,n,{type:t,isSimulated:!0});ct.event.trigger(i,null,e),i.isDefaultPrevented()&&n.preventDefault()}}),ct.fn.extend({trigger:function(t,e){return this.each(function(){ct.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];if(n)return ct.event.trigger(t,e,n,!0)}}),ct.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(t,e){ct.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}}),ct.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),at.focusin="onfocusin"in n,at.focusin||ct.each({focus:"focusin",blur:"focusout"},function(t,e){var n=function(t){ct.event.simulate(e,t.target,ct.event.fix(t))};ct.event.special[e]={setup:function(){var i=this.ownerDocument||this,r=At.access(i,e);r||i.addEventListener(t,n,!0),At.access(i,e,(r||0)+1)},teardown:function(){var i=this.ownerDocument||this,r=At.access(i,e)-1;r?At.access(i,e,r):(i.removeEventListener(t,n,!0),At.remove(i,e))}}});var we=n.location,_e=ct.now(),xe=/\?/;ct.parseJSON=function(t){return JSON.parse(t+"")},ct.parseXML=function(t){var e;if(!t||"string"!=typeof t)return null;try{e=(new n.DOMParser).parseFromString(t,"text/xml")}catch(t){e=void 0}return e&&!e.getElementsByTagName("parsererror").length||ct.error("Invalid XML: "+t),e};var ke=/#.*$/,Te=/([?&])_=[^&]*/,Ce=/^(.*?):[ \t]*([^\r\n]*)$/gm,$e=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Se=/^(?:GET|HEAD)$/,Ee=/^\/\//,Ae={},Ie={},Me="*/".concat("*"),je=K.createElement("a");je.href=we.href,ct.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:we.href,type:"GET",isLocal:$e.test(we.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Me,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":ct.parseJSON,"text xml":ct.parseXML}
vendor: 3,083 bytes, line 61
61,flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?V(V(t,ct.ajaxSettings),e):V(ct.ajaxSettings,t)},ajaxPrefilter:W(Ae),ajaxTransport:W(Ie),ajax:function(t,e){function i(t,e,i,a){var c,h,y,b,_,k=e;2!==w&&(w=2,l&&n.clearTimeout(l),r=void 0,s=a||"",x.readyState=t>0?4:0,c=t>=200&&t<300||304===t,i&&(b=X(p,x,i)),b=Q(p,b,x,c),c?(p.ifModified&&(_=x.getResponseHeader("Last-Modified"),_&&(ct.lastModified[o]=_),_=x.getResponseHeader("etag"),_&&(ct.etag[o]=_)),204===t||"HEAD"===p.type?k="nocontent":304===t?k="notmodified":(k=b.state,h=b.data,y=b.error,c=!y)):(y=k,!t&&k||(k="error",t<0&&(t=0))),x.status=t,x.statusText=(e||k)+"",c?m.resolveWith(d,[h,k,x]):m.rejectWith(d,[x,k,y]),x.statusCode(v),v=void 0,u&&f.trigger(c?"ajaxSuccess":"ajaxError",[x,p,c?h:y]),g.fireWith(d,[x,k]),u&&(f.trigger("ajaxComplete",[x,p]),--ct.active||ct.event.trigger("ajaxStop")))}"object"==typeof t&&(e=t,t=void 0),e=e||{};var r,o,s,a,l,c,u,h,p=ct.ajaxSetup({},e),d=p.context||p,f=p.context&&(d.nodeType||d.jquery)?ct(d):ct.event,m=ct.Deferred(),g=ct.Callbacks("once memory"),v=p.statusCode||{},y={},b={},w=0,_="canceled",x={readyState:0,getResponseHeader:function(t){var e;if(2===w){if(!a)for(a={};e=Ce.exec(s);)a[e[1].toLowerCase()]=e[2];e=a[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===w?s:null},setRequestHeader:function(t,e){var n=t.toLowerCase();return w||(t=b[n]=b[n]||t,y[t]=e),this},overrideMimeType:function(t){return w||(p.mimeType=t),this},statusCode:function(t){var e;if(t)if(w<2)for(e in t)v[e]=[v[e],t[e]];else x.always(t[x.status]);return this},abort:function(t){var e=t||_;return r&&r.abort(e),i(0,e),this}};if(m.promise(x).complete=g.add,x.success=x.done,x.error=x.fail,p.url=((t||p.url||we.href)+"").replace(ke,"").replace(Ee,we.protocol+"//"),p.type=e.method||e.type||p.method||p.type,p.dataTypes=ct.trim(p.dataType||"*").toLowerCase().match(Ct)||[""],null==p.crossDomain){c=K.createElement("a");try{c.href=p.url,c.href=c.href,p.crossDomain=je.protocol+"//"+je.host!=c.protocol+"//"+c.host}catch(t){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=ct.param(p.data,p.traditional)),G(Ae,p,e,x),2===w)return x;u=ct.event&&p.global,u&&0===ct.active++&&ct.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Se.test(p.type),o=p.url,p.hasContent||(p.data&&(o=p.url+=(xe.test(o)?"&":"?")+p.data,delete p.data),p.cache===!1&&(p.url=Te.test(o)?o.replace(Te,"$1_="+_e++):o+(xe.test(o)?"&":"?")+"_="+_e++)),p.ifModified&&(ct.lastModified[o]&&x.setRequestHeader("If-Modified-Since",ct.lastModified[o]),ct.etag[o]&&x.setRequestHeader("If-None-Match",ct.etag[o])),(p.data&&p.hasContent&&p.contentType!==!1||e.contentType)&&x.setRequestHeader("Content-Type",p.contentType),x.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Me+"; q=0.01":""):p.accepts["*"]);for(h in p.headers)x.setRequestHeader(h,p.headers[h]);if(p.beforeSend&&(p.beforeSend.call(d,x,p)===!1||2===w))return x.abort();_="abort";for(h in{success:1,error:1,complete:1}
vendor: 4,286 bytes, lines 61-62
61)x[h](p[h]);if(r=G(Ie,p,e,x)){if(x.readyState=1,u&&f.trigger("ajaxSend",[x,p]),2===w)return x;p.async&&p.timeout>0&&(l=n.setTimeout(function(){x.abort("timeout")},p.timeout));try{w=1,r.send(y,i)}catch(t){if(!(w<2))throw t;i(-1,t)}}else i(-1,"No Transport");return x},getJSON:function(t,e,n){return ct.get(t,e,n,"json")},getScript:function(t,e){return ct.get(t,void 0,e,"script")}}),ct.each(["get","post"],function(t,e){ct[e]=function(t,n,i,r){return ct.isFunction(n)&&(r=r||i,i=n,n=void 0),ct.ajax(ct.extend({url:t,type:e,dataType:r,data:n,success:i},ct.isPlainObject(t)&&t))}}),ct._evalUrl=function(t){return ct.ajax({url:t,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},ct.fn.extend({wrapAll:function(t){var e;return ct.isFunction(t)?this.each(function(e){ct(this).wrapAll(t.call(this,e))}):(this[0]&&(e=ct(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this)},wrapInner:function(t){return ct.isFunction(t)?this.each(function(e){ct(this).wrapInner(t.call(this,e))}):this.each(function(){var e=ct(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)})},wrap:function(t){var e=ct.isFunction(t);return this.each(function(n){ct(this).wrapAll(e?t.call(this,n):t)})},unwrap:function(){return this.parent().each(function(){ct.nodeName(this,"body")||ct(this).replaceWith(this.childNodes)}).end()}}),ct.expr.filters.hidden=function(t){return!ct.expr.filters.visible(t)},ct.expr.filters.visible=function(t){return t.offsetWidth>0||t.offsetHeight>0||t.getClientRects().length>0};var De=/%20/g,Oe=/\[\]$/,Ne=/\r?\n/g,Le=/^(?:submit|button|image|reset|file)$/i,Pe=/^(?:input|select|textarea|keygen)/i;ct.param=function(t,e){var n,i=[],r=function(t,e){e=ct.isFunction(e)?e():null==e?"":e,i[i.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)};if(void 0===e&&(e=ct.ajaxSettings&&ct.ajaxSettings.traditional),ct.isArray(t)||t.jquery&&!ct.isPlainObject(t))ct.each(t,function(){r(this.name,this.value)});else for(n in t)J(n,t[n],e,r);return i.join("&").replace(De,"+")},ct.fn.extend({serialize:function(){return ct.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=ct.prop(this,"elements");return t?ct.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!ct(this).is(":disabled")&&Pe.test(this.nodeName)&&!Le.test(t)&&(this.checked||!Pt.test(t))}).map(function(t,e){var n=ct(this).val();return null==n?null:ct.isArray(n)?ct.map(n,function(t){return{name:e.name,value:t.replace(Ne,"\r\n")}}):{name:e.name,value:n.replace(Ne,"\r\n")}}).get()}}),ct.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(t){}};var Re={0:200,1223:204},qe=ct.ajaxSettings.xhr();at.cors=!!qe&&"withCredentials"in qe,at.ajax=qe=!!qe,ct.ajaxTransport(function(t){var e,i;if(at.cors||qe&&!t.crossDomain)return{send:function(r,o){var s,a=t.xhr();if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(s in t.xhrFields)a[s]=t.xhrFields[s];t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"); 62for(s in r)a.setRequestHeader(s,r[s]);e=function(t){return function(){e&&(e=i=a.onload=a.onerror=a.onabort=a.onreadystatechange=null,"abort"===t?a.abort():"error"===t?"number"!=typeof a.status?o(0,"error"):o(a.status,a.statusText):o(Re[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=e(),i=a.onerror=e("error"),void 0!==a.onabort?a.onabort=i:a.onreadystatechange=function(){4===a.readyState&&n.setTimeout(function(){e&&i()})},e=e("abort");try{a.send(t.hasContent&&t.data||null)}catch(t){if(e)throw t}},abort:function(){e&&e()}}}),ct.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return ct.globalEval(t),t}}}),ct.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),ct.ajaxTransport("script",function(t){if(t.crossDomain){var e,n;return{send:function(i,r){e=ct("<script>
62").prop({charset:t.scriptCharset,src:t.url}).on("load error",n=function(t){e.remove(),n=null,t&&r("error"===t.type?404:200,t.type)}),K.head.appendChild(e[0])},abort:function(){n&&n()}}}});var Fe=[],He=/(=)\?(?=&|$)|\?\?/;ct.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Fe.pop()||ct.expando+"_"+_e++;return this[t]=!0,t}}),ct.ajaxPrefilter("json jsonp",function(t,e,i){var r,o,s,a=t.jsonp!==!1&&(He.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&He.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return r=t.jsonpCallback=ct.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(He,"$1"+r):t.jsonp!==!1&&(t.url+=(xe.test(t.url)?"&":"?")+t.jsonp+"="+r),t.converters["script json"]=function(){return s||ct.error(r+" was not called"),s[0]},t.dataTypes[0]="json",o=n[r],n[r]=function(){s=arguments},i.always(function(){void 0===o?ct(n).removeProp(r):n[r]=o,t[r]&&(t.jsonpCallback=e.jsonpCallback,Fe.push(r)),s&&ct.isFunction(o)&&o(s[0]),s=o=void 0}),"script"}),ct.parseHTML=function(t,e,n){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&&(n=e,e=!1),e=e||K;var i=yt.exec(t),r=!n&&[];return i?[e.createElement(i[1])]:(i=g([t],e,r),r&&r.length&&ct(r).remove(),ct.merge([],i.childNodes))};var Be=ct.fn.load;ct.fn.load=function(t,e,n){if("string"!=typeof t&&Be)return Be.apply(this,arguments);var i,r,o,s=this,a=t.indexOf(" ");return a>-1&&(i=ct.trim(t.slice(a)),t=t.slice(0,a)),ct.isFunction(e)?(n=e,e=void 0):e&&"object"==typeof e&&(r="POST"),s.length>0&&ct.ajax({url:t,type:r||"GET",dataType:"html",data:e}).done(function(t){o=arguments,s.html(i?ct("<div>").append(ct.parseHTML(t)).find(i):t)}).always(n&&function(t,e){s.each(function(){n.apply(this,o||[t.responseText,e,t])})}),this},ct.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){ct.fn[e]=function(t){return this.on(e,t)}}),ct.expr.filters.animated=function(t){return ct.grep(ct.timers,function(e){return t===e.elem}).length},ct.offset={setOffset:function(t,e,n){var i,r,o,s,a,l,c,u=ct.css(t,"position"),h=ct(t),p={};"static"===u&&(t.style.position="relative"),a=h.offset(),o=ct.css(t,"top"),l=ct.css(t,"left"),c=("absolute"===u||"fixed"===u)&&(o+l).indexOf("auto")>-1,c?(i=h.position(),s=i.top,r=i.left):(s=parseFloat(o)||0,r=parseFloat(l)||0),ct.isFunction(e)&&(e=e.call(t,n,ct.extend({},a))),null!=e.top&&(p.top=e.top-a.top+s),null!=e.left&&(p.left=e.left-a.left+r),"using"in e?e.using.call(t,p):h.css(p)}},ct.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){ct.offset.setOffset(this,t,e)});var e,n,i=this[0],r={top:0,left:0},o=i&&i.ownerDocument;if(o)return e=o.documentElement,ct.contains(e,i)?(r=i.getBoundingClientRect(),n=Z(o),{top:r.top+n.pageYOffset-e.clientTop,left:r.left+n.pageXOffset-e.clientLeft}):r},position:function(){if(this[0]){var t,e,n=this[0],i={top:0,left:0};return"fixed"===ct.css(n,"position")?e=n.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),ct.nodeName(t[0],"html")||(i=t.offset()),i.top+=ct.css(t[0],"borderTopWidth",!0),i.left+=ct.css(t[0],"borderLeftWidth",!0)),{top:e.top-i.top-ct.css(n,"marginTop",!0),left:e.left-i.left-ct.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===ct.css(t,"position");)t=t.offsetParent;return t||ne})}}),ct.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,e){var n="pageYOffset"===e;ct.fn[t]=function(i){return St(this,function(t,i,r){var o=Z(t);return void 0===r?o?o[e]:t[i]:void(o?o.scrollTo(n?o.pageXOffset:r,n?r:o.pageYOffset):t[i]=r)},t,i,arguments.length)}}),ct.each(["top","left"],function(t,e){ct.cssHooks[e]=M(at.pixelPosition,function(t,n){if(n)return n=I(t,e),Kt.test(n)?ct(t).position()[e]+"px":n})}),ct.each({Height:"height",Width:"width"},function(t,e){ct.each({padding:"inner"+t,content:e,"":"outer"+t},function(n,i){ct.fn[i]=function(i,r){var o=arguments.length&&(n||"boolean"!=typeof i),s=n||(i===!0||r===!0?"margin":"border");return St(this,function(e,n,i){var r;return ct.isWindow(e)?e.document.documentElement["client"+t]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+t],r["scroll"+t],e.body["offset"+t],r["offset"+t],r["client"+t])):void 0===i?ct.css(e,n,s):ct.style(e,n,i,s)},e,o?i:void 0,o,null)}})}),ct.fn.extend({bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,i){return this.on(e,t,n,i)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)},size:function(){return this.length}}),ct.fn.andSelf=ct.fn.addBack,i=[],r=function(){return ct}.apply(e,i),!(void 0!==r&&(t.exports=r));var ze=n.jQuery,Ue=n.$;return ct.noConflict=function(t){return n.$===ct&&(n.$=Ue),t&&n.jQuery===ct&&(n.jQuery=ze),ct},o||(n.jQuery=n.$=ct),ct})},function(t,e){/*! 63 * jQuery Migrate - v1.3.0 - 2016-01-13 64 * Copyright jQuery Foundation and other contributors 65 */ 66!function(t,e,n){function i(n){var i=e.console;o[n]||(o[n]=!0,t.migrateWarnings.push(n),i&&i.warn&&!t.migrateMute&&(i.warn("JQMIGRATE: "+n),t.migrateTrace&&i.trace&&i.trace()))}function r(e,n,r,o){if(Object.defineProperty)try{return void Object.defineProperty(e,n,{configurable:!0,enumerable:!0,get:function(){return i(o),r},set:function(t){i(o),r=t}})}catch(t){}t._definePropertyBroken=!0,e[n]=r}t.migrateVersion="1.3.0";var o={};t.migrateWarnings=[],!t.migrateMute&&e.console&&e.console.log&&e.console.log("JQMIGRATE: Logging is active"),t.migrateTrace===n&&(t.migrateTrace=!0),t.migrateReset=function(){o={},t.migrateWarnings.length=0},"BackCompat"===document.compatMode&&i("jQuery is not compatible with Quirks Mode");var s=t("<input/>",{size:1}).attr("size")&&t.attrFn,a=t.attr,l=t.attrHooks.value&&t.attrHooks.value.get||function(){return null},c=t.attrHooks.value&&t.attrHooks.value.set||function(){return n},u=/^(?:input|button)$/i,h=/^[238]$/,p=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,d=/^(?:checked|selected)$/i;r(t,"attrFn",s||{},"jQuery.attrFn is deprecated"),t.attr=function(e,r,o,l){var c=r.toLowerCase(),f=e&&e.nodeType;return l&&(a.length<4&&i("jQuery.fn.attr( props, pass ) is deprecated"),e&&!h.test(f)&&(s?r in s:t.isFunction(t.fn[r])))?t(e)[r](o):("type"===r&&o!==n&&u.test(e.nodeName)&&e.parentNode&&i("Can't change the 'type' of an input or button in IE 6/7/8"),!t.attrHooks[c]&&p.test(c)&&(t.attrHooks[c]={get:function(e,i){var r,o=t.prop(e,i);return o===!0||"boolean"!=typeof o&&(r=e.getAttributeNode(i))&&r.nodeValue!==!1?i.toLowerCase():n}
66,set:function(e,n,i){var r;return n===!1?t.removeAttr(e,i):(r=t.propFix[i]||i,r in e&&(e[r]=!0),e.setAttribute(i,i.toLowerCase())),i}},d.test(c)&&i("jQuery.fn.attr('"+c+"') might use property instead of attribute")),a.call(t,e,r,o))},t.attrHooks.value={get:function(t,e){var n=(t.nodeName||"").toLowerCase();return"button"===n?l.apply(this,arguments):("input"!==n&&"option"!==n&&i("jQuery.fn.attr('value') no longer gets properties"),e in t?t.value:null)},set:function(t,e){var n=(t.nodeName||"").toLowerCase();return"button"===n?c.apply(this,arguments):("input"!==n&&"option"!==n&&i("jQuery.fn.attr('value', val) no longer sets properties"),void(t.value=e))}};var f,m,g=t.fn.init,v=t.parseJSON,y=/^\s*</,b=/^([^<]*)(<[\w\W]+>)([^>]*)$/;t.fn.init=function(e,r,o){var s,a;return e&&"string"==typeof e&&!t.isPlainObject(r)&&(s=b.exec(t.trim(e)))&&s[0]&&(y.test(e)||i("$(html) HTML strings must start with '<' character"),s[3]&&i("$(html) HTML text after last tag is ignored"),"#"===s[0].charAt(0)&&(i("HTML string cannot start with a '#' character"),t.error("JQMIGRATE: Invalid selector string (XSS)")),r&&r.context&&(r=r.context),t.parseHTML)?g.call(this,t.parseHTML(s[2],r&&r.ownerDocument||r||document,!0),r,o):("#"===e&&(i("jQuery( '#' ) is not a valid selector"),e=[]),a=g.apply(this,arguments),e&&e.selector!==n?(a.selector=e.selector,a.context=e.context):(a.selector="string"==typeof e?e:"",e&&(a.context=e.nodeType?e:r||document)),a)},t.fn.init.prototype=t.fn,t.parseJSON=function(t){return t?v.apply(this,arguments):(i("jQuery.parseJSON requires a valid JSON string"),null)},t.uaMatch=function(t){t=t.toLowerCase();var e=/(chrome)[ \/]([\w.]+)/.exec(t)||/(webkit)[ \/]([\w.]+)/.exec(t)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(t)||/(msie) ([\w.]+)/.exec(t)||t.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(t)||[];return{browser:e[1]||"",version:e[2]||"0"}},t.browser||(f=t.uaMatch(navigator.userAgent),m={},f.browser&&(m[f.browser]=!0,m.version=f.version),m.chrome?m.webkit=!0:m.webkit&&(m.safari=!0),t.browser=m),r(t,"browser",t.browser,"jQuery.browser is deprecated"),t.boxModel=t.support.boxModel="CSS1Compat"===document.compatMode,r(t,"boxModel",t.boxModel,"jQuery.boxModel is deprecated"),r(t.support,"boxModel",t.support.boxModel,"jQuery.support.boxModel is deprecated"),t.sub=function(){function e(t,n){return new e.fn.init(t,n)}t.extend(!0,e,this),e.superclass=this,e.fn=e.prototype=this(),e.fn.constructor=e,e.sub=this.sub,e.fn.init=function(i,r){var o=t.fn.init.call(this,i,r,n);return o instanceof e?o:e(o)},e.fn.init.prototype=e.fn;var n=e(document);return i("jQuery.sub() is deprecated"),e},t.fn.size=function(){return i("jQuery.fn.size() is deprecated; use the .length property"),this.length};var w=!1;t.swap&&t.each(["height","width","reliableMarginRight"],function(e,n){var i=t.cssHooks[n]&&t.cssHooks[n].get;i&&(t.cssHooks[n].get=function(){var t;return w=!0,t=i.apply(this,arguments),w=!1,t})}),t.swap=function(t,e,n,r){var o,s,a={};w||i("jQuery.swap() is undocumented and deprecated");for(s in e)a[s]=t.style[s],t.style[s]=e[s];o=n.apply(t,r||[]);for(s in e)t.style[s]=a[s];return o},t.ajaxSetup({converters:{"text json":t.parseJSON}});var _=t.fn.data;t.fn.data=function(e){var r,o,s=this[0];return!s||"events"!==e||1!==arguments.length||(r=t.data(s,e),o=t._data(s,e),r!==n&&r!==o||o===n)?_.apply(this,arguments):(i("Use of jQuery.fn.data('events') is deprecated"),o)};var x=/\/(java|ecma)script/i;t.clean||(t.clean=function(e,n,r,o){n=n||document,n=!n.nodeType&&n[0]||n,n=n.ownerDocument||n,i("jQuery.clean() is deprecated");var s,a,l,c,u=[];if(t.merge(u,t.buildFragment(e,n).childNodes),r)for(l=function(t){if(!t.type||x.test(t.type))return o?o.push(t.parentNode?t.parentNode.removeChild(t):t):r.appendChild(t)},s=0;null!=(a=u[s]);s++)t.nodeName(a,"script")&&l(a)||(r.appendChild(a),"undefined"!=typeof a.getElementsByTagName&&(c=t.grep(t.merge([],a.getElementsByTagName("script")),l),u.splice.apply(u,[s+1,0].concat(c)),s+=c.length));return u});var k=t.event.add,T=t.event.remove,C=t.event.trigger,$=t.fn.toggle,S=t.fn.live,E=t.fn.die,A=t.fn.load,I="ajaxStart|ajaxStop|ajaxSend|ajaxComplete|ajaxError|ajaxSuccess",M=new RegExp("\\b(?:"+I+")\\b"),j=/(?:^|\s)hover(\.\S+|)\b/,D=function(e){return"string"!=typeof e||t.event.special.hover?e:(j.test(e)&&i("'hover' pseudo-event is deprecated, use 'mouseenter mouseleave'"),e&&e.replace(j,"mouseenter$1 mouseleave$1"))};t.event.props&&"attrChange"!==t.event.props[0]&&t.event.props.unshift("attrChange","attrName","relatedNode","srcElement"),t.event.dispatch&&r(t.event,"handle",t.event.dispatch,"jQuery.event.handle is undocumented and deprecated"),t.event.add=function(t,e,n,r,o){t!==document&&M.test(e)&&i("AJAX events should be attached to document: "+e),k.call(this,t,D(e||""),n,r,o)},t.event.remove=function(t,e,n,i,r){T.call(this,t,D(e)||"",n,i,r)},t.each(["load","unload","error"],function(e,n){t.fn[n]=function(){var t=Array.prototype.slice.call(arguments,0);return i("jQuery.fn."+n+"() is deprecated"),"load"===n&&"string"==typeof arguments[0]?A.apply(this,arguments):(t.splice(0,0,n),arguments.length?this.bind.apply(this,t):(this.triggerHandler.apply(this,t),this))}}),t.fn.toggle=function(e,n){if(!t.isFunction(e)||!t.isFunction(n))return $.apply(this,arguments);i("jQuery.fn.toggle(handler, handler...) is deprecated");var r=arguments,o=e.guid||t.guid++,s=0,a=function(n){var i=(t._data(this,"lastToggle"+e.guid)||0)%s;return t._data(this,"lastToggle"+e.guid,i+1),n.preventDefault(),r[
66i].apply(this,arguments)||!1};for(a.guid=o;s<r.length;)r[s++].guid=o;return this.click(a)},t.fn.live=function(e,n,r){return i("jQuery.fn.live() is deprecated"),S?S.apply(this,arguments):(t(this.context).on(e,this.selector,n,r),this)},t.fn.die=function(e,n){return i("jQuery.fn.die() is deprecated"),E?E.apply(this,arguments):(t(this.context).off(e,this.selector||"**",n),this)},t.event.trigger=function(t,e,n,r){return n||M.test(t)||i("Global events are undocumented and deprecated"),C.call(this,t,e,n||document,r)},t.each(I.split("|"),function(e,n){t.event.special[n]={setup:function(){var e=this;return e!==document&&(t.event.add(document,n+"."+t.guid,function(){t.event.trigger(n,Array.prototype.slice.call(arguments,1),e,!0)}),t._data(this,n,t.guid++)),!1},teardown:function(){return this!==document&&t.event.remove(document,n+"."+t._data(this,n)),!1}}}),t.event.special.ready={setup:function(){i("'ready' event is deprecated")}};var O=t.fn.andSelf||t.fn.addBack,N=t.fn.find;if(t.fn.andSelf=function(){return i("jQuery.fn.andSelf() replaced by jQuery.fn.addBack()"),O.apply(this,arguments)},t.fn.find=function(t){var e=N.apply(this,arguments);return e.context=this.context,e.selector=this.selector?this.selector+" "+t:t,e},t.Callbacks){var L=t.Deferred,P=[["resolve","done",t.Callbacks("once memory"),t.Callbacks("once memory"),"resolved"],["reject","fail",t.Callbacks("once memory"),t.Callbacks("once memory"),"rejected"],["notify","progress",t.Callbacks("memory"),t.Callbacks("memory")]];t.Deferred=function(e){var n=L(),r=n.promise();return n.pipe=r.pipe=function(){var e=arguments;return i("deferred.pipe() is deprecated"),t.Deferred(function(i){t.each(P,function(o,s){var a=t.isFunction(e[o])&&e[o];n[s[1]](function(){var e=a&&a.apply(this,arguments);e&&t.isFunction(e.promise)?e.promise().done(i.resolve).fail(i.reject).progress(i.notify):i[s[0]+"With"](this===r?i.promise():this,a?[e]:arguments)})}),e=null}).promise()},n.isResolved=function(){return i("deferred.isResolved is deprecated"),"resolved"===n.state()},n.isRejected=function(){return i("deferred.isRejected is deprecated"),"rejected"===n.state()},e&&e.call(n,n),n}}}(jQuery,window)},,function(t,e){!function(t){function e(){if(t.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)}}t.fn.ajaxSubmit=function(n){function i(){function i(){var e=p.attr("target"),n=p.attr("action");o.setAttribute("target",a),"POST"!=o.getAttribute("method")&&o.setAttribute("method","POST"),o.getAttribute("action")!=s.url&&o.setAttribute("action",s.url),s.skipEncodingOverride||p.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"}),s.timeout&&setTimeout(function(){d=!0,r()},s.timeout);var i=[];try{if(s.extraData)for(var u in s.extraData)i.push(t('<input type="hidden" name="'+u+'" value="'+s.extraData[u]+'" />').appendTo(o)[0]);l.appendTo("body"),c.attachEvent?c.attachEvent("onload",r):c.addEventListener("load",r,!1),o.submit()}finally{o.setAttribute("action",n),e?o.setAttribute("target",e):p.removeAttr("target"),t(i).remove()}}function r(){if(v=c.contentWindow?c.contentWindow.document:c.contentDocument?c.contentDocument:c.document,v&&v.location.href!=s.iframeSrc){c.detachEvent?c.detachEvent("onload",r):c.removeEventListener("load",r,!1);var n=!0;try{if(d)throw"timeout";var i="xml"==s.dataType||v.XMLDocument||t.isXMLDoc(v);if(e("isXml="+i),!i&&window.opera&&(null==v.body||""==v.body.innerHTML)&&--y)return e("requeing onLoad callback, DOM not available"),void setTimeout(r,250);u.responseText=v.body?v.body.innerHTML:v.documentElement?v.documentElement.innerHTML:null,u.responseXML=v.XMLDocument?v.XMLDocument:v,u.getResponseHeader=function(t){var e={"content-type":s.dataType};return e[t]};var o=/(json|script)/.test(s.dataType);if(o||s.textarea){var a=v.getElementsByTagName("textarea")[0];if(a)u.responseText=a.value;else if(o){var p=v.getElementsByTagName("pre")[0],f=v.getElementsByTagName("body")[0];p?u.responseText=p.textContent:f&&(u.responseText=f.innerHTML)}}else"xml"!=s.dataType||u.responseXML||null==u.responseText||(u.responseXML=b(u.responseText));g=_(u,s.dataType,s)}catch(i){e("error caught:",i),n=!1,u.error=i,s.error&&s.error.call(s.context,u,"error",i),h&&t.event.trigger("ajaxError",[u,s,i])}u.aborted&&(e("upload aborted"),n=!1),n&&(s.success&&s.success.call(s.context,g,"success",u),h&&t.event.trigger("ajaxSuccess",[u,s])),h&&t.event.trigger("ajaxComplete",[u,s]),h&&!--t.active&&t.event.trigger("ajaxStop"),s.complete&&s.complete.call(s.context,u,n?"success":"error"),setTimeout(function(){l.removeData("form-plugin-onload"),l.remove(),u.responseXML=null},100)}}var o=p[0];if(t(":input[name=submit],:input[id=submit]",o).length)return void alert('Error: Form elements must not have name or id of "submit".');var s=t.extend(!0,{},t.ajaxSettings,n);s.context=s.context||s;
66var a="jqFormIO"+(new Date).getTime(),l=t('<iframe id="'+a+'" name="'+a+'" src="'+s.iframeSrc+'" />'),c=l[0];l.css({position:"absolute",top:"-1000px",left:"-1000px"});var u={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(){this.aborted=1,l.attr("src",s.iframeSrc)}},h=s.global;if(h&&!t.active++&&t.event.trigger("ajaxStart"),h&&t.event.trigger("ajaxSend",[u,s]),s.beforeSend&&s.beforeSend.call(s.context,u,s)===!1)return void(s.global&&t.active--);if(!u.aborted){var d=0,f=o.clk;if(f){var m=f.name;m&&!f.disabled&&(s.extraData=s.extraData||{},s.extraData[m]=f.value,"image"==f.type&&(s.extraData[m+".x"]=o.clk_x,s.extraData[m+".y"]=o.clk_y))}s.forceSync?i():setTimeout(i,10);var g,v,y=50,b=t.parseXML||function(t,e){return window.ActiveXObject?(e=new ActiveXObject("Microsoft.XMLDOM"),e.async="false",e.loadXML(t)):e=(new DOMParser).parseFromString(t,"text/xml"),e&&e.documentElement&&"parsererror"!=e.documentElement.nodeName?e:null},w=t.parseJSON||function(t){return window.eval("("+t+")")},_=function(e,n,i){var r=e.getResponseHeader("content-type")||"",o="xml"===n||!n&&r.indexOf("xml")>=0,s=o?e.responseXML:e.responseText;return o&&"parsererror"===s.documentElement.nodeName&&t.error&&t.error("parsererror"),i&&i.dataFilter&&(s=i.dataFilter(s,n)),"string"==typeof s&&("json"===n||!n&&r.indexOf("json")>=0?s=w(s):("script"===n||!n&&r.indexOf("javascript")>=0)&&t.globalEval(s)),s}}}if(!this.length)return e("ajaxSubmit: skipping submit process - no element selected"),this;"function"==typeof n&&(n={success:n});var r=this.attr("action"),o="string"==typeof r?t.trim(r):"";o&&(o=(o.match(/^([^#]+)/)||[])[1]),o=o||window.location.href||"",n=t.extend(!0,{url:o,type:this[0].getAttribute("method")||"GET",iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank"},n);var s={};if(this.trigger("form-pre-serialize",[this,n,s]),s.veto)return e("ajaxSubmit: submit vetoed via form-pre-serialize trigger"),this;if(n.beforeSerialize&&n.beforeSerialize(this,n)===!1)return e("ajaxSubmit: submit aborted via beforeSerialize callback"),this;var a,l,c=this.formToArray(n.semantic);if(n.data){n.extraData=n.data;for(a in n.data)if(n.data[a]instanceof Array)for(var u in n.data[a])c.push({name:a,value:n.data[a][u]});else l=n.data[a],l=t.isFunction(l)?l():l,c.push({name:a,value:l})}if(n.beforeSubmit&&n.beforeSubmit(c,this,n)===!1)return e("ajaxSubmit: submit aborted via beforeSubmit callback"),this;if(this.trigger("form-submit-validate",[c,this,n,s]),s.veto)return e("ajaxSubmit: submit vetoed via form-submit-validate trigger"),this;var h=t.param(c);"GET"==n.type.toUpperCase()?(n.url+=(n.url.indexOf("?")>=0?"&":"?")+h,n.data=null):n.data=h;var p=this,d=[];if(n.resetForm&&d.push(function(){p.resetForm()}),n.clearForm&&d.push(function(){p.clearForm()}),!n.dataType&&n.target){var f=n.success||function(){};d.push(function(e){var i=n.replaceTarget?"replaceWith":"html";t(n.target)[i](e).each(f,arguments)})}else n.success&&d.push(n.success);n.success=function(t,e,i){for(var r=n.context||n,o=0,s=d.length;o<s;o++)d[o].apply(r,[t,e,i||p,p])};var m=t("input:file",this).length>0,g="multipart/form-data",v=p.attr("enctype")==g||p.attr("encoding")==g;return n.iframe!==!1&&(m||n.iframe||v)?n.closeKeepAlive?t.get(n.closeKeepAlive,i):i():t.ajax(n),this.trigger("form-submit-notify",[this,n]),this},t.fn.ajaxForm=function(n){if(0===this.length){var i={s:this.selector,c:this.context};return!t.isReady&&i.s?(e("DOM not ready, queuing ajaxForm"),t(function(){t(i.s,i.c).ajaxForm(n)}),this):(e("terminating; zero elements found by selector"+(t.isReady?"":" (DOM not ready)")),this)}return this.ajaxFormUnbind().bind("submit.form-plugin",function(e){e.isDefaultPrevented()||(e.preventDefault(),t(this).ajaxSubmit(n))}).bind("click.form-plugin",function(e){var n=e.target,i=t(n);if(!i.is(":submit,input:image")){var r=i.closest(":submit");if(0==r.length)return;n=r[0]}var o=this;if(o.clk=n,"image"==n.type)if(void 0!=e.offsetX)o.clk_x=e.offsetX,o.clk_y=e.offsetY;else if("function"==typeof t.fn.offset){var s=i.offset();o.clk_x=e.pageX-s.left,o.clk_y=e.pageY-s.top}else o.clk_x=e.pageX-n.offsetLeft,o.clk_y=e.pageY-n.offsetTop;setTimeout(function(){o.clk=o.clk_x=o.clk_y=null},100)})},t.fn.ajaxFormUnbind=function(){return this.unbind("submit.form-plugin click.form-plugin")},t.fn.formToArray=function(e){var n=[];if(0===this.length)return n;var i=this[0],r=e?i.getElementsByTagName("*"):i.elements;if(!r)return n;var o,s,a,l,c,u,h;for(o=0,u=r.length;o<u;o++)if(c=r[o],a=c.name)if(e&&i.clk&&"image"==c.type)c.disabled||i.clk!=c||(n.push({name:a,value:t(c).val()}),n.push({name:a+".x",value:i.clk_x},{name:a+".y",value:i.clk_y}));else if(l=t.fieldValue(c,!0),l&&l.constructor==Array)for(s=0,h=l.length;s<h;s++)n.push({name:a,value:l[s]});else null!==l&&"undefined"!=typeof l&&n.push({name:a,value:l});if(!e&&i.clk){var p=t(i.clk),d=p[0];a=d.name,a&&!d.disabled&&"image"==d.type&&(n.push({name:a,value:p.val()}),n.push({name:a+".x",value:i.clk_x},{name:a+".y",value:i.clk_y}))}return n}
66,t.fn.formSerialize=function(e){return t.param(this.formToArray(e))},t.fn.fieldSerialize=function(e){var n=[];return this.each(function(){var i=this.name;if(i){var r=t.fieldValue(this,e);if(r&&r.constructor==Array)for(var o=0,s=r.length;o<s;o++)n.push({name:i,value:r[o]});else null!==r&&"undefined"!=typeof r&&n.push({name:this.name,value:r})}}),t.param(n)},t.fn.fieldValue=function(e){for(var n=[],i=0,r=this.length;i<r;i++){var o=this[i],s=t.fieldValue(o,e);null===s||"undefined"==typeof s||s.constructor==Array&&!s.length||(s.constructor==Array?t.merge(n,s):n.push(s))}return n},t.fieldValue=function(e,n){var i=e.name,r=e.type,o=e.tagName.toLowerCase();if(void 0===n&&(n=!0),n&&(!i||e.disabled||"reset"==r||"button"==r||("checkbox"==r||"radio"==r)&&!e.checked||("submit"==r||"image"==r)&&e.form&&e.form.clk!=e||"select"==o&&e.selectedIndex==-1))return null;if("select"==o){var s=e.selectedIndex;if(s<0)return null;for(var a=[],l=e.options,c="select-one"==r,u=c?s+1:l.length,h=c?s:0;h<u;h++){var p=l[h];if(p.selected){var d=p.value;if(d||(d=p.attributes&&p.attributes.value&&!p.attributes.value.specified?p.text:p.value),c)return d;a.push(d)}}return a}return t(e).val()},t.fn.clearForm=function(){return this.each(function(){t("input,select,textarea",this).clearFields()})},t.fn.clearFields=t.fn.clearInputs=function(){return this.each(function(){var t=this.type,e=this.tagName.toLowerCase();"text"==t||"password"==t||"textarea"==e?this.value="":"checkbox"==t||"radio"==t?this.checked=!1:"select"==e&&(this.selectedIndex=-1)})},t.fn.resetForm=function(){return this.each(function(){("function"==typeof this.reset||"object"==typeof this.reset&&!this.reset.nodeType)&&this.reset()})},t.fn.enable=function(t){return void 0===t&&(t=!0),this.each(function(){this.disabled=!t})},t.fn.selected=function(e){return void 0===e&&(e=!0),this.each(function(){var n=this.type;if("checkbox"==n||"radio"==n)this.checked=e;else if("option"==this.tagName.toLowerCase()){var i=t(this).parent("select");e&&i[0]&&"select-one"==i[0].type&&i.find("option").selected(!1),this.selected=e}})}}(jQuery)},function(t,e){!function(t){t.jGrowl=function(e,n){0===t("#jGrowl").length&&t('<div id="jGrowl"></div>').addClass(n&&n.position?n.position:t.jGrowl.defaults.position).appendTo(n&&n.appendTo?n.appendTo:t.jGrowl.defaults.appendTo),t("#jGrowl").jGrowl(e,n)},t.fn.jGrowl=function(e,n){if(void 0===n&&t.isPlainObject(e)&&(n=e,e=n.message),t.isFunction(this.each)){var i=arguments;return this.each(function(){void 0===t(this).data("jGrowl.instance")&&(t(this).data("jGrowl.instance",t.extend(new t.fn.jGrowl,{notifications:[],element:null,interval:null})),t(this).data("jGrowl.instance").startup(this)),t.isFunction(t(this).data("jGrowl.instance")[e])?t(this).data("jGrowl.instance")[e].apply(t(this).data("jGrowl.instance"),t.makeArray(i).slice(1)):t(this).data("jGrowl.instance").create(e,n)})}},t.extend(t.fn.jGrowl.prototype,{defaults:{pool:0,header:"",group:"",sticky:!1,position:"top-right",appendTo:"body",glue:"after",theme:"default",themeState:"highlight",corners:"10px",check:250,life:3e3,closeDuration:"normal",openDuration:"normal",easing:"swing",closer:!0,closeTemplate:"×",closerTemplate:"<div>[ close all ]</div>",log:function(){},beforeOpen:function(){},afterOpen:function(){},open:function(){},beforeClose:function(){},close:function(){},click:function(){},animateOpen:{opacity:"show"},animateClose:{opacity:"hide"}},notifications:[],element:null,interval:null,create:function(e,n){var i=t.extend({},this.defaults,n);"undefined"!=typeof i.speed&&(i.openDuration=i.speed,i.closeDuration=i.speed),this.notifications.push({message:e,options:i}),i.log.apply(this.element,[this.element,e,i])},render:function(e){var n=this,i=e.message,r=e.options;r.themeState=""===r.themeState?"":"ui-state-"+r.themeState;var o=t("<div/>").addClass("jGrowl-notification alert "+r.themeState+" ui-corner-all"+(void 0!==r.group&&""!==r.group?" "+r.group:"")).append(t("<button/>").addClass("jGrowl-close").html(r.closeTemplate)).append(t("<div/>").addClass("jGrowl-header").html(r.header)).append(t("<div/>").addClass("jGrowl-message").html(i)).data("jGrowl",r).addClass(r.theme).children(".jGrowl-close").bind("click.jGrowl",function(){return t(this).parent().trigger("jGrowl.beforeClose"),!1}).parent();t(o).bind("mouseover.jGrowl",function(){t(".jGrowl-notification",n.element).data("jGrowl.pause",!0)}).bind("mouseout.jGrowl",function(){t(".jGrowl-notification",n.element).data("jGrowl.pause",!1)}).bind("jGrowl.beforeOpen",function(){r.beforeOpen.apply(o,[o,i,r,n.element])!==!1&&t(this).trigger("jGrowl.open")}).bind("jGrowl.open",function(){r.open.apply(o,[o,i,r,n.element])!==!1&&("after"==r.glue?t(".jGrowl-notification:last",n.element).after(o):t(".jGrowl-notification:first",n.element).before(o),t(this).animate(r.animateOpen,r.openDuration,r.easing,function(){t.support.opacity===!1&&this.style.removeAttribute("filter"),null!==t(this).data("jGrowl")&&"undefined"!=typeof t(this).data("jGrowl")&&(t(this).data("jGrowl").created=new Date),t(this).trigger("jGrowl.afterOpen")}))}).bind("jGrowl.afterOpen",function(){r.afterOpen.apply(o,[o,i,r,n.element])}).bind("click",function(){r.click.apply(o,[o,i,r,n.element])}).bind("jGrowl.beforeClose",function(){r.beforeClose.apply(o,[o,i,r,n.element])!==!1&&t(this).trigger("jGrowl.close")}).bind("jGrowl.close",function(){t(this).data("jGrowl.pause",!0),t(this).animate(r.animateClose,r.closeDuration,r.easing,function(){t.isFunction(r.close)?r.close.apply(o,[o,i,r,n.element])!==!1&&t(this).remove():t(this).remove()})}).trigger("jGrowl.beforeOpen"),""!==r.corners&&void 0!==t.fn.corner&&t(o).corner(r.corners),t(".jGrowl-notification:parent",n.element).length>1&&0===t(".jGrowl-closer",n.element).length&&this.defaults.closer!==!1&&t(this.defaults.closerTemplate).addClass("jGrowl-closer "+this.defaults.themeState+" ui-corner-all").addClass(this.defaults.theme).appendTo(n.element).animate(this.defaults.animateOpen,this.defaults.speed,this.defaults.easing).bind("click.jGrowl",function(){t(this).siblings().trigger("jGrowl.beforeClose"),t.isFunction(n.defaults.closer)&&n.defaults.closer.apply(t(this).parent()[0],[t(this).parent()[0]])})},update:function(){t(this.element).find(".jGrowl-notification:parent").each(function(){void 0!==t(this).data("jGrowl")&&void 0!==t(this).data("jGrowl").created&&t(this).data("jGrowl").created.getTime()+parseInt(t(this).data("jGrowl").life,10)<(new Date).getTime()&&t(this).data("jGrowl").sticky!==!0&&(void 0===t(this).data("jGrowl.pause")||t(this).data("jGrowl.pause")!==!0)&&t(this).trigger("jGrowl.beforeClose")}),this.notifications.length>0&&(0===this.defaults.pool||t(this.element).find(".jGrowl-notification:parent").length<this.defaults.pool)&&this.render(this.notifications.shift()),t(this.element).find(".jGrowl-notification:parent").length<2&&t(this.element).find(".jGrowl-closer").animate(this.defaults.animateClose,this.defaults.speed,this.defaults.easing,function(){t(this).remove()})},startup:function(e){this.element=t(e).addClass("jGrowl").append('<div class="jGrowl-notification"></div>'),this.interval=setInterval(function(){var n=t(e).data("jGrowl.instance");void 0!==n&&n.update()},parseInt(this.defaults.check,10))},shutdown:function(){t(this.element).removeClass("jGrowl").find(".jGrowl-notification").trigger("jGrowl.close").parent().empty(),clearInterval(this.interval)},close:function(){t(this.element).find(".jGrowl-notification").each(function(){t(this).trigger("jGrowl.beforeClose")})}}),t.jGrowl.defaults=t.fn.jGrowl.prototype.defaults}(jQuery)},function(module,exports){!function($){function toIntegersAtLease(t){return t<10?"0"+t:t}Date.prototype.toJSON=function(){return this.getUTCFullYear()+"-"+toIntegersAtLease(this.getUTCMonth())+"-"+toIntegersAtLease(this.getUTCDate())};var escapeable=/["\\\x00-\x1f\x7f-\x9f]/g,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};$.quoteString=function(t){return escapeable.test(t)?'"'+t.replace(escapeable,function(t){var e=meta[t];
66return"string"==typeof e?e:(e=t.charCodeAt(),"\\u00"+Math.floor(e/16).toString(16)+(e%16).toString(16))})+'"':'"'+t+'"'},$.toJSON=function(t,e){var n=typeof t;if("undefined"==n)return"undefined";if("number"==n||"boolean"==n)return t+"";if(null===t)return"null";if("string"==n)return $.quoteString(t);if("object"==n&&"function"==typeof t.toJSON)return t.toJSON(e);if("function"!=n&&"number"==typeof t.length){for(var i=[],r=0;r<t.length;r++)i.push($.toJSON(t[r],e));return e?"["+i.join(",")+"]":"["+i.join(", ")+"]"}if("function"==n)throw new TypeError("Unable to convert object of type 'function' to json.");i=[];for(var o in t){var s;if(n=typeof o,"number"==n)s='"'+o+'"';else{if("string"!=n)continue;s=$.quoteString(o)}var a=$.toJSON(t[o],e);"string"==typeof a&&(e?i.push(s+":"+a):i.push(s+": "+a))}return"{"+i.join(", ")+"}"},$.compactJSON=function(t){return $.toJSON(t,!0)},$.evalJSON=function(src){return eval("("+src+")")},$.secureEvalJSON=function(src){var filtered=src;if(filtered=filtered.replace(/\\["\\\/bfnrtu]/g,"@"),filtered=filtered.replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]"),filtered=filtered.replace(/(?:^|:|,)(?:\s*\[)+/g,""),/^[\],:{}\s]*$/.test(filtered))return eval("("+src+")");throw new SyntaxError("Error parsing JSON, source is not valid.")}}(jQuery)},,function(t,e){/*! 67 * jQuery Templates Plugin 1.0.0pre 68 * http://github.com/jquery/jquery-tmpl 69 * Requires jQuery 1.4.2 70 * 71 * Copyright Software Freedom Conservancy, Inc. 72 * Dual licensed under the MIT or GPL Version 2 licenses. 73 * http://jquery.org/license 74 */ 75!function(t,e){function n(e,n,i,r){var o={data:r||0===r||r===!1?r:n?n.data:{},_wrap:n?n._wrap:null,tmpl:null,parent:n||null,nodes:[],calls:u,nest:h,wrap:p,html:d,update:f};return e&&t.extend(o,e,{nodes:[],parent:n}),i&&(o.tmpl=i,o._ctnt=o._ctnt||o.tmpl(t,o),o.key=++x,(T.length?w:b)[x]=o),o}function i(e,n,o){var s,a=o?t.map(o,function(t){return"string"==typeof t?e.key?t.replace(/(<\w+)(?=[\s>])(?![^>]*_tmplitem)([^>]*)/g,"$1 "+v+'="'+e.key+'" $2'):t:i(t,e,t._ctnt)}):e;return n?a:(a=a.join(""),a.replace(/^\s*([^<\s][^<]*)?(<[\w\W]+>)([^>]*[^>\s])?\s*$/,function(e,n,i,o){s=t(i).get(),c(s),n&&(s=r(n).concat(s)),o&&(s=s.concat(r(o)))}),s?s:r(a))}function r(e){var n=document.createElement("div");return n.innerHTML=e,t.makeArray(n.childNodes)}function o(e){return new Function("jQuery","$item","var $=jQuery,call,__=[],$data=$item.data;with($data){__.push('"+t.trim(e).replace(/([\\'])/g,"\\$1").replace(/[\r\t\n]/g," ").replace(/\$\{([^\}]*)\}/g,"{{= $1}}").replace(/\{\{(\/?)(\w+|.)(?:\(((?:[^\}]|\}(?!\}))*?)?\))?(?:\s+(.*?)?)?(\(((?:[^\}]|\}(?!\}))*?)\))?\s*\}\}/g,function(e,n,i,r,o,s,l){var c,u,h,p=t.tmpl.tag[i];if(!p)throw"Unknown template tag: "+i;return c=p._default||[],s&&!/\w$/.test(o)&&(o+=s,s=""),o?(o=a(o),l=l?","+a(l)+")":s?")":"",u=s?o.indexOf(".")>-1?o+a(s):"("+o+").call($item"+l:o,h=s?u:"(typeof("+o+")==='function'?("+o+").call($item):("+o+"))"):h=u=c.$1||"null",r=a(r),"');"+p[n?"close":"open"].split("$notnull_1").join(o?"typeof("+o+")!=='undefined' && ("+o+")!=null":"true").split("$1a").join(h).split("$1").join(u).split("$2").join(r||c.$2||"")+"__.push('"})+"');}return __;")}function s(e,n){e._wrap=i(e,!0,t.isArray(n)?n:[y.test(n)?n:t(n).html()]).join("")}function a(t){return t?t.replace(/\\'/g,"'").replace(/\\\\/g,"\\"):null}function l(t){var e=document.createElement("div");return e.appendChild(t.cloneNode(!0)),e.innerHTML}function c(e){function i(e){function i(t){t+=c,s=u[t]=u[t]||n(s,b[s.parent.key+c]||s.parent)}var r,o,s,a,l=e;if(a=e.getAttribute(v)){for(;l.parentNode&&1===(l=l.parentNode).nodeType&&!(r=l.getAttribute(v)););r!==a&&(l=l.parentNode?11===l.nodeType?0:l.getAttribute(v)||0:0,(s=b[a])||(s=w[a],s=n(s,b[l]||w[l]),s.key=++x,b[x]=s),k&&i(a)),e.removeAttribute(v)}else k&&(s=t.data(e,"tmplItem"))&&(i(s.key),b[s.key]=s,l=t.data(e.parentNode,"tmplItem"),l=l?l.key:0);if(s){for(o=s;o&&o.key!=l;)o.nodes.push(e),o=o.parent;delete s._ctnt,delete s._wrap,t.data(e,"tmplItem",s)}}var r,o,s,a,l,c="_"+k,u={};for(s=0,a=e.length;s<a;s++)if(1===(r=e[s]).nodeType){for(o=r.getElementsByTagName("*"),l=o.length-1;l>=0;l--)i(o[l]);i(r)}}function u(t,e,n,i){return t?void T.push({_:t,tmpl:e,item:this,data:n,options:i}):T.pop()}function h(e,n,i){return t.tmpl(t.template(e),n,i,this)}function p(e,n){var i=e.options||{};return i.wrapped=n,t.tmpl(t.template(e.tmpl),e.data,i,e.item)}function d(e,n){var i=this._wrap;return t.map(t(t.isArray(i)?i.join(""):i).filter(e||"*"),function(t){return n?t.innerText||t.textContent:t.outerHTML||l(t)})}function f(){var e=this.nodes;t.tmpl(null,null,null,this).insertBefore(e[0]),t(e).remove()}var m,g=t.fn.domManip,v="_tmplitem",y=/^[^<]*(<[\w\W]+>)[^>]*$|\{\{\! /,b={},w={},_={key:0,data:{}},x=0,k=0,T=[];t.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,n){t.fn[e]=function(i){var r,o,s,a,l=[],c=t(i),u=1===this.length&&this[0].parentNode;if(m=b||{},u&&11===u.nodeType&&1===u.childNodes.length&&1===c.length)c[n](this[0]),l=this;else{for(o=0,s=c.length;o<s;o++)k=o,r=(o>0?this.clone(!0):this).get(),t(c[o])[n](r),l=l.concat(r);k=0,l=this.pushStack(l,e,c.selector)}return a=m,m=null,t.tmpl.complete(a),l}}),t.fn.extend({tmpl:function(e,n,i){return t.tmpl(this[0],e,n,i)},tmplItem:function(){return t.tmplItem(this[0])},template:function(e){return t.template(e,this[0])},domManip:function(e,n,i,r){if(e[0]&&t.isArray(e[0])){for(var o,s=t.makeArray(arguments),a=e[0],l=a.length,c=0;c<l&&!(o=t.data(a[c++],"tmplItem")););o&&k&&(s[2]=function(e){t.tmpl.afterManip(this,e,i)}),g.apply(this,s)}else g.apply(this,arguments);return k=0,m||t.tmpl.complete(b),this}}),t.extend({tmpl:function(e,r,o,a){var l,c=!a;if(c)a=_,e=t.template[e]||t.template(null,e),w={};else if(!e)return e=a.tmpl,b[a.key]=a,a.nodes=[],a.wrapped&&s(a,a.wrapped),t(i(a,null,a.tmpl(t,a)));return e?("function"==typeof r&&(r=r.call(a||{})),o&&o.wrapped&&s(o,o.wrapped),l=t.isArray(r)?t.map(r,function(t){return t?n(o,a,e,t):null}):[n(o,a,e,r)],c?t(i(a,null,l)):l):[]},tmplItem:function(e){var n;for(e instanceof t&&(e=e[0]);e&&1===e.nodeType&&!(n=t.data(e,"tmplItem"))&&(e=e.parentNode););return n||_},template:function(e,n){return n?("string"==typeof n?n=o(n):n instanceof t&&(n=n[0]||{}),n.nodeType&&(n=t.data(n,"tmpl")||t.data(n,"tmpl",o(n.innerHTML))),"string"==typeof e?t.template[e]=n:n):e?"string"!=typeof e?t.template(null,e):t.template[e]||t.template(null,y.test(e)?e:t(e)):null},encode:function(t){return(""+t).split("<").join("<").split(">").join(">").split('"').join(""").split("'").join("'")}}),t.extend(t.tmpl,{tag:{tmpl:{_default:{$2:"null"},open:"if($notnull_1){__=__.concat($item.nest($1,$2));}"},wrap:{_default:{$2:"null"},open:"$item.calls(__,$1,$2);__=[];",close:"call=$item.calls();__=call._.concat($item.wrap(call,__));"},each:{_default:{$2:"$index, $value"},open:"if($notnull_1){$.each($1a,function($2){with(this){",close:"}});}"},if:{open:"if(($notnull_1) && $1a){",close:"}"},else:{_default:{$1:"true"},open:"}else if(($notnull_1) && $1a){"},html:{open:"if($notnull_1){__.push($1a);}"},"=":{_default:{$1:"$data"},open:"if($notnull_1){__.push($.encode($1a));}"},"!":{open:""}},complete:function(t){b={}},afterManip:function(e,n,i){var r=11===n.nodeType?t.makeArray(n.childNodes):1===n.nodeType?[n]:[];
75i.call(e,n),c(r),k++}})}(jQuery)},,function(t,e){var n,i,r,o,s,a,l,c,u,h,p,d,f,m,g,v,y="/images/loadingAnimation.gif?2000000000";$(document).ready(function(){tb_init("a.thickbox, area.thickbox, input.thickbox"),n=new Image,n.src=y}),window.tb_init=function(t){$(t).on("click",function(){var t=this.title||this.name||null,e=this.href||this.alt,n=this.rel||!1;return tb_show(t,e,n),this.blur(),!1})},window.autoResize=function(){var t=$($("#TB_ajaxContent").children().get(0));t&&$("#TB_ajaxContent").height(t.height()+10)},window.tb_show=function t(e,f,y){try{var b={};"undefined"==typeof document.body.style.maxHeight?($("body","html").css({height:"100%",width:"100%"}),$("html").css("overflow","hidden"),null===document.getElementById("TB_HideSelect")&&($("body").append("<iframe id='TB_HideSelect'></iframe><div id='TB_overlay'></div><div id='TB_window'></div>"),$("#TB_overlay").click(tb_remove))):null===document.getElementById("TB_overlay")&&($("body").append("<div id='TB_overlay'></div><div id='TB_window'></div>"),$("#TB_overlay").click(tb_remove)),tb_detectMacXFF()?$("#TB_overlay").addClass("TB_overlayMacFFBGHack"):$("#TB_overlay").addClass("TB_overlayBG"),null===e&&(e=""),$("body").append("<div id='TB_load'><img src='"+n.src+"' /></div>"),$("#TB_load").show();var w;w=f.indexOf("?")!==-1?f.substr(0,f.indexOf("?")):f;var _=/\.jpg$|\.jpeg$|\.png$|\.gif$|\.bmp$/,x=w.toLowerCase().match(_);if(".jpg"==x||".jpeg"==x||".png"==x||".gif"==x||".bmp"==x){if(o="",s="",a="",p="",h="",l="",c="",u=!1,y)for(TB_TempArray=$("a[@rel="+y+"]").get(),TB_Counter=0;TB_Counter<TB_TempArray.length&&""===l;TB_Counter++){TB_TempArray[TB_Counter].href.toLowerCase().match(_);TB_TempArray[TB_Counter].href!=f?u?(p=TB_TempArray[TB_Counter].title,h=TB_TempArray[TB_Counter].href,l="<span id='TB_next'> <a href='#'>Next ></a></span>"):(o=TB_TempArray[TB_Counter].title,s=TB_TempArray[TB_Counter].href,a="<span id='TB_prev'> <a href='#'>< Prev</a></span>"):(u=!0,c="Image "+(TB_Counter+1)+" of "+TB_TempArray.length)}d=new Image,d.onload=function(){function n(){return $(document).unbind("click",n)&&$(document).unbind("click",n),$("#TB_window").remove(),$("body").append("<div id='TB_window'></div>"),t(o,s,y),!1}function u(){return $("#TB_window").remove(),$("body").append("<div id='TB_window'></div>"),t(p,h,y),!1}d.onload=null;var m=tb_getPageSize(),g=m[0]-150,b=m[1]-150,w=d.width,_=d.height;w>g?(_*=g/w,w=g,_>b&&(w*=b/_,_=b)):_>b&&(w*=b/_,_=b,w>g&&(_*=g/w,w=g)),i=w+30,r=_+60,$("#TB_window").append("<a href='' id='TB_ImageOff' title='Close'><img id='TB_Image' src='"+f+"' width='"+w+"' height='"+_+"' alt='"+e+"'/></a><div id='TB_caption'>"+e+"<div id='TB_secondLine'>"+c+a+l+"</div></div><div id='TB_closeWindow'><a href='#' id='TB_closeWindowButton' title='Close'><div id='TB_closeImg'></div></a></div>"),$("#TB_closeWindowButton").click(tb_remove),""!==a&&$("#TB_prev").click(n),""!==l&&$("#TB_next").click(u),document.onkeydown=function(t){v=null==t?event.keyCode:t.which,27==v?tb_remove():190==v?""!=l&&(document.onkeydown="",u()):188==v&&""!=a&&(document.onkeydown="",n())},tb_position(),$("#TB_load").remove(),$("#TB_ImageOff").click(tb_remove),$("#TB_window").css({display:"block"})},d.src=f}else{var k=f.replace(/^[^\?]+\??/,""),b=tb_parseQuery(k);i=1*b.width+30||630,r=1*b.height+40||440,g=i-30,m=r-45,f.indexOf("TB_iframe")!=-1?(urlNoQuery=f.split("TB_"),$("#TB_iframeContent").remove(),"true"!=b.modal?$("#TB_window").append("<iframe frameborder='0' hspace='0' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent"+Math.round(1e3*Math.random())+"' onload='tb_showIframe()' style='width:"+(g+29)+"px;height:"+(m+17)+"px;' > </iframe>"):($("#TB_overlay").unbind(),$("#TB_window").append("<iframe frameborder='0' hspace='0' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent"+Math.round(1e3*Math.random())+"' onload='tb_showIframe()' style='width:"+(g+29)+"px;height:"+(m+17)+"px;'> </iframe>"))):"block"!=$("#TB_window").css("display")?"true"==b.modal?($("#TB_overlay").unbind(),$("#TB_window").append("<div id='TB_ajaxContent' class='TB_modal' style='width:"+g+"px;
vendor: 3,526 bytes, lines 75-76
75height:"+m+"px;'></div>")):"true"==b.no_close_on_blur?($("#TB_overlay").unbind(),$("#TB_window").append("<div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton' title='Close'><div id='TB_closeImg'></div></a></div><div id='TB_ajaxContent' style='width:"+g+"px;height:"+m+"px'></div>")):$("#TB_window").append("<div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton' title='Close'><div id='TB_closeImg'></div></a></div><div id='TB_ajaxContent' style='width:"+g+"px;height:"+m+"px'></div>"):($("#TB_ajaxContent")[0].style.width=g+"px",$("#TB_ajaxContent")[0].style.height=m+"px",$("#TB_ajaxContent")[0].scrollTop=0,$("#TB_ajaxWindowTitle").html(e)),$("#TB_closeWindowButton").click(tb_remove),f.indexOf("TB_inline")!=-1?($("#TB_ajaxContent").append($("#"+b.inlineId).children()),$("#TB_window").unload(function(){$("#"+b.inlineId).append($("#TB_ajaxContent").children())}),tb_position(),$("#TB_load").remove(),$("#TB_window").css({display:"block"}),"true"==b.autoresize&&autoResize()):f.indexOf("TB_iframe")!=-1?(tb_position(),$("#TB_load").remove(),$("#TB_window").css({display:"block"}),"true"==b.autoresize&&jutoResize()):$("#TB_ajaxContent").load(f+="&random="+(new Date).getTime(),function(){tb_position(),$("#TB_load").remove(),tb_init("#TB_ajaxContent a.thickbox"),$("#TB_window").css({display:"block"}),"true"==b.autoresize&&autoResize()})}b.modal||(document.onkeyup=function(t){v=null==t?event.keyCode:t.which,27==v&&tb_remove()})}catch(t){console.log("ey!"),console.log(t)}$("body").trigger("tb:show")},window.tb_showIframe=function(){$("#TB_load").remove(),$("#TB_window").css({display:"block"})},window.tb_remove=function(){return $("#TB_imageOff").unbind("click"),$("#TB_closeWindowButton").unbind("click"),$("#TB_window").fadeOut("fast",function(){$("#TB_window,#TB_overlay,#TB_HideSelect").trigger("unload").unbind().remove()}),$("#TB_load").remove(),"undefined"==typeof document.body.style.maxHeight&&($("body","html").css({height:"auto",width:"auto"}),$("html").css("overflow","")),document.onkeydown="",document.onkeyup="",$("body").trigger("tb:remove"),!1},window.tb_position=function(){$("#TB_window").css({marginLeft:"-"+parseInt(i/2,10)+"px",width:i+"px"}),jQuery.browser.msie&&jQuery.browser.version<7||$("#TB_window").css({marginTop:"-"+parseInt(r/2,10)+"px"})},window.tb_parseQuery=function(t){var e={};if(!t)return e;for(var n=t.split(/[;&]/),i=0;i<n.length;i++){var r=n[i].split("=");if(r&&2==r.length){var o=unescape(r[0]),s=unescape(r[1]);s=s.replace(/\+/g," "),e[o]=s}}return e},window.tb_getPageSize=function(){var t=document.documentElement,e=window.innerWidth||self.innerWidth||t&&t.clientWidth||document.body.clientWidth,n=window.innerHeight||self.innerHeight||t&&t.clientHeight||document.body.clientHeight;return f=[e,n]},window.tb_detectMacXFF=function(){var t=navigator.userAgent.toLowerCase();if(t.indexOf("mac")!=-1&&t.indexOf("firefox")!=-1)return!0}},,,,function(t,e,n){var i,i;/*! remarkable 1.5.0 https://github.com//jonschlinkert/remarkable @license MIT */ 76!function(e){t.exports=e()}(function(){var t;return function t(e,n,r){function o(a,l){if(!n[a]){if(!e[a]){var c="function"==typeof i&&i;if(!l&&c)return i(a,!0);if(s)return s(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var h=n[a]={exports:{}};e[a][0].call(h.exports,function(t){var n=e[a][1][t];return o(n?n:t)},h,h.exports,t,e,n,r)}return n[a].exports}for(var s="function"==typeof i&&i,a=0;a<r.length;a++)o(r[a]);return o}({1:[function(t,e){"use strict";e.exports=
vendor: 8,601 bytes, line 76
76{Aacute:"Ã",aacute:"á",Abreve:"Ä",abreve:"Ä",ac:"â¾",acd:"â¿",acE:"â¾Ì³",Acirc:"Ã",acirc:"â",acute:"´",Acy:"Ð",acy:"а",AElig:"Ã",aelig:"æ",af:"â¡",Afr:"ð",afr:"ð",Agrave:"Ã",agrave:"à ",alefsym:"âµ",aleph:"âµ",Alpha:"Î",alpha:"α",Amacr:"Ä",amacr:"Ä",amalg:"⨿",AMP:"&",amp:"&",And:"â©",and:"â§",andand:"â©",andd:"â©",andslope:"â©",andv:"â©",ang:"â ",ange:"⦤",angle:"â ",angmsd:"â¡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"â¦",angmsdag:"⦮",angmsdah:"⦯",angrt:"â",angrtvb:"â¾",angrtvbd:"â¦",angsph:"â¢",angst:"Ã
",angzarr:"â¼",Aogon:"Ä",aogon:"Ä
",Aopf:"ð¸",aopf:"ð",ap:"â",apacir:"⩯",apE:"â©°",ape:"â",apid:"â",apos:"'",ApplyFunction:"â¡",approx:"â",approxeq:"â",Aring:"Ã
",aring:"Ã¥",Ascr:"ð",ascr:"ð¶",Assign:"â",ast:"*",asymp:"â",asympeq:"â",Atilde:"Ã",atilde:"ã",Auml:"Ã",auml:"ä",awconint:"â³",awint:"â¨",backcong:"â",backepsilon:"϶",backprime:"âµ",backsim:"â½",backsimeq:"â",Backslash:"â",Barv:"â«§",barvee:"â½",Barwed:"â",barwed:"â
",barwedge:"â
",bbrk:"âµ",bbrktbrk:"â¶",bcong:"â",Bcy:"Ð",bcy:"б",bdquo:"â",becaus:"âµ",Because:"âµ",because:"âµ",bemptyv:"⦰",bepsi:"϶",bernou:"â¬",Bernoullis:"â¬",Beta:"Î",beta:"β",beth:"â¶",between:"â¬",Bfr:"ð
",bfr:"ð",bigcap:"â",bigcirc:"â¯",bigcup:"â",bigodot:"â¨",bigoplus:"â¨",bigotimes:"â¨",bigsqcup:"â¨",bigstar:"â
",bigtriangledown:"â½",bigtriangleup:"â³",biguplus:"â¨",bigvee:"â",bigwedge:"â",bkarow:"â¤",blacklozenge:"â§«",blacksquare:"âª",blacktriangle:"â´",blacktriangledown:"â¾",blacktriangleleft:"â",blacktriangleright:"â¸",blank:"â£",blk12:"â",blk14:"â",blk34:"â",block:"â",bne:"=â¥",bnequiv:"â¡â¥",bNot:"â«",bnot:"â",Bopf:"ð¹",bopf:"ð",bot:"â¥",bottom:"â¥",bowtie:"â",boxbox:"â§",boxDL:"â",boxDl:"â",boxdL:"â",boxdl:"â",boxDR:"â",boxDr:"â",boxdR:"â",boxdr:"â",boxH:"â",boxh:"â",boxHD:"â¦",boxHd:"â¤",boxhD:"â¥",boxhd:"â¬",boxHU:"â©",boxHu:"â§",boxhU:"â¨",boxhu:"â´",boxminus:"â",boxplus:"â",boxtimes:"â ",boxUL:"â",boxUl:"â",boxuL:"â",boxul:"â",boxUR:"â",boxUr:"â",boxuR:"â",boxur:"â",boxV:"â",boxv:"â",boxVH:"â¬",boxVh:"â«",boxvH:"âª",boxvh:"â¼",boxVL:"â£",boxVl:"â¢",boxvL:"â¡",boxvl:"â¤",boxVR:"â ",boxVr:"â",boxvR:"â",boxvr:"â",bprime:"âµ",Breve:"Ë",breve:"Ë",brvbar:"¦",Bscr:"â¬",bscr:"ð·",bsemi:"â",bsim:"â½",bsime:"â",bsol:"\\",bsolb:"â§
",bsolhsub:"â",bull:"â¢",bullet:"â¢",bump:"â",bumpE:"⪮",bumpe:"â",Bumpeq:"â",bumpeq:"â",Cacute:"Ä",cacute:"Ä",Cap:"â",cap:"â©",capand:"â©",capbrcup:"â©",capcap:"â©",capcup:"â©",capdot:"â©",CapitalDifferentialD:"â
",caps:"â©ï¸",caret:"â",caron:"Ë",Cayleys:"â",ccaps:"â©",Ccaron:"Ä",ccaron:"Ä",Ccedil:"Ã",ccedil:"ç",Ccirc:"Ä",ccirc:"Ä",Cconint:"â°",ccups:"â©",ccupssm:"â©",Cdot:"Ä",cdot:"Ä",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",CenterDot:"·",centerdot:"·",Cfr:"â",cfr:"ð ",CHcy:"Ч",chcy:"Ñ",check:"â",checkmark:"â",Chi:"Χ",chi:"Ï",cir:"â",circ:"Ë",circeq:"â",circlearrowleft:"âº",circlearrowright:"â»",circledast:"â",circledcirc:"â",circleddash:"â",CircleDot:"â",circledR:"®",circledS:"â",CircleMinus:"â",CirclePlus:"â",CircleTimes:"â",cirE:"â§",cire:"â",cirfnint:"â¨",cirmid:"⫯",cirscir:"â§",ClockwiseContourIntegral:"â²",CloseCurlyDoubleQuote:"â",CloseCurlyQuote:"â",clubs:"â£",clubsuit:"â£",Colon:"â·",colon:":",Colone:"â©´",colone:"â",coloneq:"â",comma:",",commat:"@",comp:"â",compfn:"â",complement:"â",complexes:"â",cong:"â
",congdot:"â©",Congruent:"â¡",Conint:"â¯",conint:"â®",ContourIntegral:"â®",Copf:"â",copf:"ð",coprod:"â",Coproduct:"â",COPY:"©",copy:"©",copysr:"â",CounterClockwiseContourIntegral:"â³",crarr:"âµ",Cross:"⨯",cross:"â",Cscr:"ð",cscr:"ð¸",csub:"â«",csube:"â«",csup:"â«",csupe:"â«",ctdot:"â¯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"â",cuesc:"â",cularr:"â¶",cularrp:"⤽",Cup:"â",cup:"âª",cupbrcap:"â©",CupCap:"â",cupcap:"â©",cupcup:"â©",cupdot:"â",cupor:"â©
",cups:"âªï¸",curarr:"â·",curarrm:"⤼",curlyeqprec:"â",curlyeqsucc:"â",curlyvee:"â",curlywedge:"â",curren:"¤",curvearrowleft:"â¶",curvearrowright:"â·",cuvee:"â",cuwed:"â",cwconint:"â²",cwint:"â±",cylcty:"â",Dagger:"â¡",dagger:"â ",daleth:"â¸",Darr:"â¡",dArr:"â",darr:"â",dash:"â",Dashv:"⫤",dashv:"â£",dbkarow:"â¤",dblac:"Ë",Dcaron:"Ä",dcaron:"Ä",Dcy:"Ð",dcy:"д",DD:"â
",dd:"â
",ddagger:"â¡",ddarr:"â",DDotrahd:"â¤",ddotseq:"â©·",deg:"°",Del:"â",Delta:"Î",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"ð",dfr:"ð¡",dHar:"⥥",dharl:"â",dharr:"â",DiacriticalAcute:"´",DiacriticalDot:"Ë",DiacriticalDoubleAcute:"Ë",DiacriticalGrave:"`",DiacriticalTilde:"Ë",diam:"â",Diamond:"â",diamond:"â",diamondsuit:"â¦",diams:"â¦",die:"¨",DifferentialD:"â
",digamma:"Ï",disin:"â²",div:"÷",divide:"÷",divideontimes:"â",divonx:"â",DJcy:"Ð",djcy:"Ñ",dlcorn:"â",dlcrop:"â",dollar:"$",Dopf:"ð»",dopf:"ð",Dot:"¨",dot:"Ë",DotDot:"â",doteq:"â",doteqdot:"â",DotEqual:"â",dotminus:"â¸",dotplus:"â",dotsquare:"â¡",doublebarwedge:"â",DoubleContourIntegral:"â¯",DoubleDot:"¨",DoubleDownArrow:"â",DoubleLeftArrow:"â",DoubleLeftRightArrow:"â",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"â¸",DoubleLongLeftRightArrow:"âº",DoubleLongRightArrow:"â¹",DoubleRightArrow:"â",DoubleRightTee:"â¨",DoubleUpArrow:"â",DoubleUpDownArrow:"â",DoubleVerticalBar:"â¥",DownArrow:"â",Downarrow:"â",downarrow:"â",DownArrowBar:"â¤",DownArrowUpArrow:"âµ",DownBreve:"Ì",downdownarrows:"â",downharpoonleft:"â",downharpoonright:"â",DownLeftRightVector:"â¥",DownLeftTeeVector:"â¥",DownLeftVector:"â½",DownLeftVectorBar:"â¥",DownRightTeeVector:"â¥",DownRightVector:"â",DownRightVectorBar:"â¥",DownTee:"â¤",DownTeeArrow:"â§",drbkarow:"â¤",drcorn:"â",drcrop:"â",Dscr:"ð",dscr:"ð¹",DScy:"Ð
",dscy:"Ñ",dsol:"â§¶",Dstrok:"Ä",dstrok:"Ä",dtdot:"â±",dtri:"â¿",dtrif:"â¾",duarr:"âµ",duhar:"⥯",dwangle:"⦦",DZcy:"Ð",dzcy:"Ñ",dzigrarr:"â¿",Eacute:"Ã",eacute:"é",easter:"â©®",Ecaron:"Ä",ecaron:"Ä",ecir:"â",Ecirc:"Ã",ecirc:"ê",ecolon:"â",Ecy:"Ð",ecy:"Ñ",eDDot:"â©·",Edot:"Ä",eDot:"â",edot:"Ä",ee:"â
",efDot:"â",Efr:"ð",efr:"ð¢",eg:"âª",Egrave:"Ã",egrave:"è",egs:"âª",egsdot:"âª",el:"âª",Element:"â",elinters:"â§",ell:"â",els:"âª",elsdot:"âª",Emacr:"Ä",emacr:"Ä",empty:"â
",emptyset:"â
",EmptySmallSquare:"â»",emptyv:"â
",EmptyVerySmallSquare:"â«",emsp:"â",emsp13:"â",emsp14:"â
",ENG:"Å",eng:"Å",ensp:"â",Eogon:"Ä",eogon:"Ä",Eopf:"ð¼",eopf:"ð",epar:"â",eparsl:"â§£",eplus:"⩱",epsi:"ε",Epsilon:"Î",epsilon:"ε",epsiv:"ϵ",eqcirc:"â",eqcolon:"â",eqsim:"â",eqslantgtr:"âª",eqslantless:"âª",Equal:"⩵",equals:"=",EqualTilde:"â",equest:"â",Equilibrium:"â",equiv:"â¡",equivDD:"⩸",eqvparsl:"â§¥",erarr:"⥱",erDot:"â",Escr:"â°",escr:"â¯",esdot:"â",Esim:"⩳",esim:"â",Eta:"Î",eta:"η",ETH:"Ã",eth:"ð",Euml:"Ã",euml:"ë",euro:"â¬",excl:"!",exist:"â",Exists:"â",expectation:"â°",ExponentialE:"â
",exponentiale:"â
",fallingdotseq:"â",Fcy:"Ф",fcy:"Ñ",female:"â",ffilig:"ï¬",fflig:"ï¬",ffllig:"ï¬",Ffr:"ð",ffr:"ð£",filig:"ï¬",FilledSmallSquare:"â¼",FilledVerySmallSquare:"âª",fjlig:"fj",flat:"â",fllig:"ï¬",fltns:"â±",fnof:"Æ",Fopf:"ð½",fopf:"ð",ForAll:"â",forall:"â",fork:"â",forkv:"â«",Fouriertrf:"â±",fpartint:"â¨",frac12:"½",frac13:"â
",frac14:"¼",frac15:"â
",frac16:"â
",frac18:"â
",frac23:"â
",frac25:"â
",frac34:"¾",frac35:"â
",frac38:"â
",frac45:"â
",frac56:"â
",frac58:"â
",frac78:"â
",frasl:"â",frown:"â¢",Fscr:"â±",fscr:"ð»",gacute:"ǵ",Gamma:"Î",gamma:"γ",Gammad:"Ï",gammad:"Ï",gap:"âª",Gbreve:"Ä",gbreve:"Ä",Gcedil:"Ä¢",Gcirc:"Ä",gcirc:"Ä",Gcy:"Ð",gcy:"г",Gdot:"Ä ",gdot:"Ä¡",gE:"â§",ge:"â¥",gEl:"âª",gel:"â",geq:"â¥",geqq:"â§",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"âª",gesdoto:"âª",gesdotol:"âª",gesl:"âï¸",gesles:"âª",Gfr:"ð",gfr:"ð¤",Gg:"â",gg:"â«",ggg:"â",gimel:"â·",GJcy:"Ð",gjcy:"Ñ",gl:"â·",gla:"⪥",glE:"âª",glj:"⪤",gnap:"âª",gnapprox:"âª",gnE:"â©",gne:"âª",gneq:"âª",gneqq:"â©",gnsim:"â§",Gopf:"ð¾",gopf:"ð",grave:"`",GreaterEqual:"â¥",GreaterEqualLess:"â",GreaterFullEqual:"â§",GreaterGreater:"⪢",GreaterLess:"â·",GreaterSlantEqual:"⩾",GreaterTilde:"â³",Gscr:"ð¢",gscr:"â",gsim:"â³",gsime:"âª",gsiml:"âª",G
76T:">",Gt:"â«",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"â",gtlPar:"â¦",gtquest:"⩼",gtrapprox:"âª",gtrarr:"⥸",gtrdot:"â",gtreqless:"â",gtreqqless:"âª",gtrless:"â·",gtrsim:"â³",gvertneqq:"â©ï¸",gvnE:"â©ï¸",Hacek:"Ë",hairsp:"â",half:"½",hamilt:"â",HARDcy:"Ъ",hardcy:"Ñ",hArr:"â",harr:"â",harrcir:"â¥",harrw:"â",Hat:"^",hbar:"â",Hcirc:"Ĥ",hcirc:"Ä¥",hearts:"â¥",heartsuit:"â¥",hellip:"â¦",hercon:"â¹",Hfr:"â",hfr:"ð¥",HilbertSpace:"â",hksearow:"⤥",hkswarow:"⤦",hoarr:"â¿",homtht:"â»",hookleftarrow:"â©",hookrightarrow:"âª",Hopf:"â",hopf:"ð",horbar:"â",HorizontalLine:"â",Hscr:"â",hscr:"ð½",hslash:"â",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"â",HumpEqual:"â",hybull:"â",hyphen:"â",Iacute:"Ã",iacute:"Ã",ic:"â£",Icirc:"Ã",icirc:"î",Icy:"Ð",icy:"и",Idot:"İ",IEcy:"Ð",iecy:"е",iexcl:"¡",iff:"â",Ifr:"â",ifr:"ð¦",Igrave:"Ã",igrave:"ì",ii:"â
",iiiint:"â¨",iiint:"â",iinfin:"â§",iiota:"â©",IJlig:"IJ",ijlig:"ij",Im:"â",Imacr:"Ī",imacr:"Ä«",image:"â",ImaginaryI:"â
",imagline:"â",imagpart:"â",imath:"ı",imof:"â·",imped:"Ƶ",Implies:"â",in:"â",incare:"â
",infin:"â",infintie:"â§",inodot:"ı",Int:"â¬",int:"â«",intcal:"âº",integers:"â¤",Integral:"â«",intercal:"âº",Intersection:"â",intlarhk:"â¨",intprod:"⨼",InvisibleComma:"â£",InvisibleTimes:"â¢",IOcy:"Ð",iocy:"Ñ",Iogon:"Ä®",iogon:"į",Iopf:"ð",iopf:"ð",Iota:"Î",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"â",iscr:"ð¾",isin:"â",isindot:"âµ",isinE:"â¹",isins:"â´",isinsv:"â³",isinv:"â",it:"â¢",Itilde:"Ĩ",itilde:"Ä©",Iukcy:"Ð",iukcy:"Ñ",Iuml:"Ã",iuml:"ï",Jcirc:"Ä´",jcirc:"ĵ",Jcy:"Ð",jcy:"й",Jfr:"ð",jfr:"ð§",jmath:"È·",Jopf:"ð",jopf:"ð",Jscr:"ð¥",jscr:"ð¿",Jsercy:"Ð",jsercy:"Ñ",Jukcy:"Ð",jukcy:"Ñ",Kappa:"Î",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"Ä·",Kcy:"Ð",kcy:"к",Kfr:"ð",kfr:"ð¨",kgreen:"ĸ",KHcy:"Ð¥",khcy:"Ñ
",KJcy:"Ð",kjcy:"Ñ",Kopf:"ð",kopf:"ð",Kscr:"ð¦",kscr:"ð",lAarr:"â",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"â",Lambda:"Î",lambda:"λ",Lang:"âª",lang:"â¨",langd:"â¦",langle:"â¨",lap:"âª
",Laplacetrf:"â",laquo:"«",Larr:"â",lArr:"â",larr:"â",larrb:"â¤",larrbfs:"â¤",larrfs:"â¤",larrhk:"â©",larrlp:"â«",larrpl:"⤹",larrsim:"⥳",larrtl:"â¢",lat:"⪫",lAtail:"â¤",latail:"â¤",late:"âª",lates:"âªï¸",lBarr:"â¤",lbarr:"â¤",lbbrk:"â²",lbrace:"{",lbrack:"[",lbrke:"â¦",lbrksld:"â¦",lbrkslu:"â¦",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ä»",lcedil:"ļ",lceil:"â",lcub:"{",Lcy:"Ð",lcy:"л",ldca:"⤶",ldquo:"â",ldquor:"â",ldrdhar:"⥧",ldrushar:"â¥",ldsh:"â²",lE:"â¦",le:"â¤",LeftAngleBracket:"â¨",LeftArrow:"â",Leftarrow:"â",leftarrow:"â",LeftArrowBar:"â¤",LeftArrowRightArrow:"â",leftarrowtail:"â¢",LeftCeiling:"â",LeftDoubleBracket:"â¦",LeftDownTeeVector:"⥡",LeftDownVector:"â",LeftDownVectorBar:"â¥",LeftFloor:"â",leftharpoondown:"â½",leftharpoonup:"â¼",leftleftarrows:"â",LeftRightArrow:"â",Leftrightarrow:"â",leftrightarrow:"â",leftrightarrows:"â",leftrightharpoons:"â",leftrightsquigarrow:"â",LeftRightVector:"â¥",LeftTee:"â£",LeftTeeArrow:"â¤",LeftTeeVector:"â¥",leftthreetimes:"â",LeftTriangle:"â²",LeftTriangleBar:"â§",LeftTriangleEqual:"â´",LeftUpDownVector:"â¥",LeftUpTeeVector:"⥠",LeftUpVector:"â¿",LeftUpVectorBar:"â¥",LeftVector:"â¼",LeftVectorBar:"â¥",lEg:"âª",leg:"â",leq:"â¤",leqq:"â¦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"â©¿",lesdoto:"âª",lesdotor:"âª",lesg:"âï¸",lesges:"âª",lessapprox:"âª
",lessdot:"â",lesseqgtr:"â",lesseqqgtr:"âª",LessEqualGreater:"â",LessFullEqual:"â¦",LessGreater:"â¶",lessgtr:"â¶",LessLess:"⪡",lesssim:"â²",LessSlantEqual:"⩽",LessTilde:"â²",lfisht:"⥼",lfloor:"â",Lfr:"ð",lfr:"ð©",lg:"â¶",lgE:"âª",lHar:"⥢",lhard:"â½",lharu:"â¼",lharul:"⥪",lhblk:"â",LJcy:"Ð",ljcy:"Ñ",Ll:"â",ll:"âª",llarr:"â",llcorner:"â",Lleftarrow:"â",llhard:"⥫",lltri:"âº",Lmidot:"Ä¿",lmidot:"Å",lmoust:"â°",lmoustache:"â°",lnap:"âª",lnapprox:"âª",lnE:"â¨",lne:"âª",lneq:"âª",lneqq:"â¨",lnsim:"â¦",loang:"â¬",loarr:"â½",lobrk:"â¦",LongLeftArrow:"âµ",Longleftarrow:"â¸",longleftarrow:"âµ",LongLeftRightArrow:"â·",Longleftrightarrow:"âº",longleftrightarrow:"â·",longmapsto:"â¼",LongRightArrow:"â¶",Longrightarrow:"â¹",longrightarrow:"â¶",looparrowleft:"â«",looparrowright:"â¬",lopar:"â¦
",Lopf:"ð",lopf:"ð",loplus:"â¨",lotimes:"⨴",lowast:"â",lowbar:"_",LowerLeftArrow:"â",LowerRightArrow:"â",loz:"â",lozenge:"â",lozf:"â§«",lpar:"(",lparlt:"â¦",lrarr:"â",lrcorner:"â",lrhar:"â",lrhard:"â¥",lrm:"â",lrtri:"â¿",lsaquo:"â¹",Lscr:"â",lscr:"ð",Lsh:"â°",lsh:"â°",lsim:"â²",lsime:"âª",lsimg:"âª",lsqb:"[",lsquo:"â",lsquor:"â",Lstrok:"Å",lstrok:"Å",LT:"<",Lt:"âª
vendor: 15,278 bytes, line 76
76",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"â",lthree:"â",ltimes:"â",ltlarr:"⥶",ltquest:"â©»",ltri:"â",ltrie:"â´",ltrif:"â",ltrPar:"â¦",lurdshar:"â¥",luruhar:"⥦",lvertneqq:"â¨ï¸",lvnE:"â¨ï¸",macr:"¯",male:"â",malt:"â ",maltese:"â ",Map:"â¤
",map:"â¦",mapsto:"â¦",mapstodown:"â§",mapstoleft:"â¤",mapstoup:"â¥",marker:"â®",mcomma:"⨩",Mcy:"Ð",mcy:"м",mdash:"â",mDDot:"âº",measuredangle:"â¡",MediumSpace:"â",Mellintrf:"â³",Mfr:"ð",mfr:"ðª",mho:"â§",micro:"µ",mid:"â£",midast:"*",midcir:"â«°",middot:"·",minus:"â",minusb:"â",minusd:"â¸",minusdu:"⨪",MinusPlus:"â",mlcp:"â«",mldr:"â¦",mnplus:"â",models:"â§",Mopf:"ð",mopf:"ð",mp:"â",Mscr:"â³",mscr:"ð",mstpos:"â¾",Mu:"Î",mu:"μ",multimap:"â¸",mumap:"â¸",nabla:"â",Nacute:"Å",nacute:"Å",nang:"â â",nap:"â",napE:"⩰̸",napid:"â̸",napos:"Å",napprox:"â",natur:"â®",natural:"â®",naturals:"â",nbsp:" ",nbump:"â̸",nbumpe:"â̸",ncap:"â©",Ncaron:"Å",ncaron:"Å",Ncedil:"Å
",ncedil:"Å",ncong:"â",ncongdot:"â©Ì¸",ncup:"â©",Ncy:"Ð",ncy:"н",ndash:"â",ne:"â ",nearhk:"⤤",neArr:"â",nearr:"â",nearrow:"â",nedot:"â̸",NegativeMediumSpace:"â",NegativeThickSpace:"â",NegativeThinSpace:"â",NegativeVeryThinSpace:"â",nequiv:"â¢",nesear:"⤨",nesim:"â̸",NestedGreaterGreater:"â«",NestedLessLess:"âª",NewLine:"\n",nexist:"â",nexists:"â",Nfr:"ð",nfr:"ð«",ngE:"â§Ì¸",nge:"â±",ngeq:"â±",ngeqq:"â§Ì¸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"â̸",ngsim:"âµ",nGt:"â«â",ngt:"â¯",ngtr:"â¯",nGtv:"â«Ì¸",nhArr:"â",nharr:"â®",nhpar:"⫲",ni:"â",nis:"â¼",nisd:"âº",niv:"â",NJcy:"Ð",njcy:"Ñ",nlArr:"â",nlarr:"â",nldr:"â¥",nlE:"â¦Ì¸",nle:"â°",nLeftarrow:"â",nleftarrow:"â",nLeftrightarrow:"â",nleftrightarrow:"â®",nleq:"â°",nleqq:"â¦Ì¸",nleqslant:"⩽̸",nles:"⩽̸",nless:"â®",nLl:"â̸",nlsim:"â´",nLt:"âªâ",nlt:"â®",nltri:"âª",nltrie:"â¬",nLtv:"âªÌ¸",nmid:"â¤",NoBreak:"â ",NonBreakingSpace:" ",Nopf:"â",nopf:"ð",Not:"⫬",not:"¬",NotCongruent:"â¢",NotCupCap:"â",NotDoubleVerticalBar:"â¦",NotElement:"â",NotEqual:"â ",NotEqualTilde:"â̸",NotExists:"â",NotGreater:"â¯",NotGreaterEqual:"â±",NotGreaterFullEqual:"â§Ì¸",NotGreaterGreater:"â«Ì¸",NotGreaterLess:"â¹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"âµ",NotHumpDownHump:"â̸",NotHumpEqual:"â̸",notin:"â",notindot:"âµÌ¸",notinE:"â¹Ì¸",notinva:"â",notinvb:"â·",notinvc:"â¶",NotLeftTriangle:"âª",NotLeftTriangleBar:"â§Ì¸",NotLeftTriangleEqual:"â¬",NotLess:"â®",NotLessEqual:"â°",NotLessGreater:"â¸",NotLessLess:"âªÌ¸",NotLessSlantEqual:"⩽̸",NotLessTilde:"â´",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"â",notniva:"â",notnivb:"â¾",notnivc:"â½",NotPrecedes:"â",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"â ",NotReverseElement:"â",NotRightTriangle:"â«",NotRightTriangleBar:"â§Ì¸",NotRightTriangleEqual:"â",NotSquareSubset:"â̸",NotSquareSubsetEqual:"â¢",NotSquareSuperset:"â̸",NotSquareSupersetEqual:"â£",NotSubset:"ââ",NotSubsetEqual:"â",NotSucceeds:"â",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"â¡",NotSucceedsTilde:"â¿Ì¸",NotSuperset:"ââ",NotSupersetEqual:"â",NotTilde:"â",NotTildeEqual:"â",NotTildeFullEqual:"â",NotTildeTilde:"â",NotVerticalBar:"â¤",npar:"â¦",nparallel:"â¦",nparsl:"⫽â¥",npart:"â̸",npolint:"â¨",npr:"â",nprcue:"â ",npre:"⪯̸",nprec:"â",npreceq:"⪯̸",nrArr:"â",nrarr:"â",nrarrc:"⤳̸",nrarrw:"â̸",nRightarrow:"â",nrightarrow:"â",nrtri:"â«",nrtrie:"â",nsc:"â",nsccue:"â¡",nsce:"⪰̸",Nscr:"ð©",nscr:"ð",nshortmid:"â¤",nshortparallel:"â¦",nsim:"â",nsime:"â",nsimeq:"â",nsmid:"â¤",nspar:"â¦",nsqsube:"â¢",nsqsupe:"â£",nsub:"â",nsubE:"â«
̸",nsube:"â",nsubset:"ââ",nsubseteq:"â",nsubseteqq:"â«
̸",nsucc:"â",nsucceq:"⪰̸",nsup:"â
",nsupE:"â«Ì¸",nsupe:"â",nsupset:"ââ",nsupseteq:"â",nsupseteqq:"â«Ì¸",ntgl:"â¹",Ntilde:"Ã",ntilde:"ñ",ntlg:"â¸",ntriangleleft:"âª",ntrianglelefteq:"â¬",ntriangleright:"â«",ntrianglerighteq:"â",Nu:"Î",nu:"ν",num:"#",numero:"â",numsp:"â",nvap:"ââ",nVDash:"â¯",nVdash:"â®",nvDash:"â",nvdash:"â¬",nvge:"â¥â",nvgt:">â",nvHarr:"â¤",nvinfin:"â§",nvlArr:"â¤",nvle:"â¤â",nvlt:"<â",nvltrie:"â´â",nvrArr:"â¤",nvrtrie:"âµâ",nvsim:"â¼â",nwarhk:"⤣",nwArr:"â",nwarr:"â",nwarrow:"â",nwnear:"⤧",Oacute:"Ã",oacute:"ó",oast:"â",ocir:"â",Ocirc:"Ã",ocirc:"ô",Ocy:"Ð",ocy:"о",odash:"â",Odblac:"Å",odblac:"Å",odiv:"⨸",odot:"â",odsold:"⦼",OElig:"Å",oelig:"Å",ofcir:"⦿",Ofr:"ð",ofr:"ð¬",ogon:"Ë",Ograve:"Ã",ograve:"ò",ogt:"â§",ohbar:"⦵",ohm:"Ω",oint:"â®",olarr:"âº",olcir:"⦾",olcross:"⦻",oline:"â¾",olt:"â§",Omacr:"Å",omacr:"Å",Omega:"Ω",omega:"Ï",Omicron:"Î",omicron:"ο",omid:"⦶",ominus:"â",Oopf:"ð",oopf:"ð ",opar:"⦷",OpenCurlyDoubleQuote:"â",OpenCurlyQuote:"â",operp:"⦹",oplus:"â",Or:"â©",or:"â¨",orarr:"â»",ord:"â©",order:"â´",orderof:"â´",ordf:"ª",ordm:"º",origof:"â¶",oror:"â©",orslope:"â©",orv:"â©",oS:"â",Oscr:"ðª",oscr:"â´",Oslash:"Ã",oslash:"ø",osol:"â",Otilde:"Ã",otilde:"õ",Otimes:"⨷",otimes:"â",otimesas:"⨶",Ouml:"Ã",ouml:"ö",ovbar:"â½",OverBar:"â¾",OverBrace:"â",OverBracket:"â´",OverParenthesis:"â",par:"â¥",para:"¶",parallel:"â¥",parsim:"⫳",parsl:"⫽",part:"â",PartialD:"â",Pcy:"Ð",pcy:"п",percnt:"%",period:".",permil:"â°",perp:"â¥",pertenk:"â±",Pfr:"ð",pfr:"ð",Phi:"Φ",phi:"Ï",phiv:"Ï",phmmat:"â³",phone:"â",Pi:"Î ",pi:"Ï",pitchfork:"â",piv:"Ï",planck:"â",planckh:"â",plankv:"â",plus:"+",plusacir:"⨣",plusb:"â",pluscir:"⨢",plusdo:"â",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"â",pointint:"â¨",Popf:"â",popf:"ð¡",pound:"£",Pr:"⪻",pr:"âº",prap:"⪷",prcue:"â¼",prE:"⪳",pre:"⪯",prec:"âº",precapprox:"⪷",preccurlyeq:"â¼",Precedes:"âº",PrecedesEqual:"⪯",PrecedesSlantEqual:"â¼",PrecedesTilde:"â¾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"â¨",precsim:"â¾",Prime:"â³",prime:"â²",primes:"â",prnap:"⪹",prnE:"⪵",prnsim:"â¨",prod:"â",Product:"â",profalar:"â®",profline:"â",profsurf:"â",prop:"â",Proportion:"â·",Proportional:"â",propto:"â",prsim:"â¾",prurel:"â°",Pscr:"ð«",pscr:"ð
",Psi:"Ψ",psi:"Ï",puncsp:"â",Qfr:"ð",qfr:"ð®",qint:"â¨",Qopf:"â",qopf:"ð¢",qprime:"â",Qscr:"ð¬",qscr:"ð",quaternions:"â",quatint:"â¨",quest:"?",questeq:"â",QUOT:'"',quot:'"',rAarr:"â",race:"â½Ì±",Racute:"Å",racute:"Å",radic:"â",raemptyv:"⦳",Rang:"â«",rang:"â©",rangd:"â¦",range:"⦥",rangle:"â©",raquo:"»",Rarr:"â ",rArr:"â",rarr:"â",rarrap:"⥵",rarrb:"â¥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"â¤",rarrhk:"âª",rarrlp:"â¬",rarrpl:"â¥
",rarrsim:"⥴",Rarrtl:"â¤",rarrtl:"â£",rarrw:"â",rAtail:"â¤",ratail:"â¤",ratio:"â¶",rationals:"â",RBarr:"â¤",rBarr:"â¤",rbarr:"â¤",rbbrk:"â³",rbrace:"}",rbrack:"]",rbrke:"â¦",rbrksld:"â¦",rbrkslu:"â¦",Rcaron:"Å",rcaron:"Å",Rcedil:"Å",rcedil:"Å",rceil:"â",rcub:"}",Rcy:"Ð ",rcy:"Ñ",rdca:"⤷",rdldhar:"⥩",rdquo:"â",rdquor:"â",rdsh:"â³",Re:"â",real:"â",realine:"â",realpart:"â",reals:"â",rect:"â",REG:"®",reg:"®",ReverseElement:"â",ReverseEquilibrium:"â",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"â",Rfr:"â",rfr:"ð¯",rHar:"⥤",rhard:"â",rharu:"â",rharul:"⥬",Rho:"Ρ",rho:"Ï",rhov:"ϱ",RightAngleBracket:"â©",RightArrow:"â",Rightarrow:"â",rightarrow:"â",RightArrowBar:"â¥",RightArrowLeftArrow:"â",rightarrowtail:"â£",RightCeiling:"â",RightDoubleBracket:"â§",RightDownTeeVector:"â¥",RightDownVector:"â",RightDownVectorBar:"â¥",RightFloor:"â",rightharpoondown:"â",rightharpoonup:"â",rightleftarrows:"â",rightleftharpoons:"â",rightrightarrows:"â",rightsquigarrow:"â",RightTee:"â¢",RightTeeArrow:"â¦",RightTeeVector:"â¥",rightthreetimes:"â",RightTriangle:"â³",RightTriangleBar:"â§",RightTriangleEqual:"âµ",RightUpDownVector:"â¥",RightUpTeeVector:"â¥",RightUpVector:"â¾",RightUpVectorBar:"â¥",RightVector:"â",RightVectorBar:"â¥",ring:"Ë",risingdotseq:"â",rlarr:"â",rlhar:"â",rlm:"â",rmoust:"â±",rmoustache:"â±",rnmid:"â«®",roang:"â",roarr:"â¾",robrk:"â§",ropar:"â¦",Ropf:"â",ropf:"ð£",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"â¦",rppolint:"â¨",rrarr:"â",Rrightarrow:"â",rsaquo:"âº",Rscr:"â",rscr:"ð",Rsh:"â±",rsh:"â±",rsqb:"]",rsquo:"â",rsquor:"â",rthree:"â",rtimes:"â",rtri:"â¹",rtrie:"âµ",rtrif:"â¸",rtriltri:"â§",RuleDelayed:"â§´",ruluhar:"⥨",rx:"â",Sacute:"Å",sacute:"Å",sbquo:"â",Sc:"⪼",sc:"â»",scap:"⪸",Scaron:"Å ",scaron:"Å¡",sccue:"â½",scE:"⪴",sce:"⪰",Scedil:"Å",scedil:"Å",Scirc:"Å",scirc:"Å",scnap:"⪺",scnE:"⪶",scnsim:"â©",scpolint:"â¨",scsim:"â¿",Scy:"С",scy:"Ñ",sdot:"â
",sdotb:"â¡",sdote:"⩦",searhk:"⤥",seArr:"â",searr:"â",searrow:"â",sect:"§",semi:";",seswar:"⤩",setminus:"â",setmn:"â",sext:"â¶",Sfr:"ð",sfr:"ð°",sfrown:"â¢",sharp:"â¯",SHCHcy:"Щ",shchcy:"Ñ",SHcy:"Ш",shcy:"Ñ",ShortDownArrow:"â",ShortLeftArrow:"â",shortmid:"â£",shortparallel:"â¥",ShortRightArrow:"â",ShortUpArrow:"â",shy:"Â",Sigma:"Σ",sigma:"Ï",sigmaf:"Ï",sigmav:"Ï",sim:"â¼",simdot:"⩪",sime:"â",simeq:"â",simg:"âª",simgE:"⪠",siml:"âª",simlE:"âª",simne:"â",simplus:"⨤",simrarr:"⥲",slarr:"â",SmallCircle:"â",smallsetminus:"â",smashp:"⨳",smeparsl:"⧤",smid:"â£",smile:"â£",smt:"⪪",smte:"⪬",smtes:"⪬ï¸",SOFTcy:"Ь",softcy:"Ñ",sol:"/",solb:"â§",solbar:"â¿",Sopf:"ð",sopf:"ð¤",spades:"â ",spadesuit:"â ",spar:"â¥",sqcap:"â",sqcaps:"âï¸",sqcup:"â",sqcups:"âï¸",Sqrt:"â",sqsub:"â",sqsube:"â",sqsubset:"â",sqsubseteq:"â",sqsup:"â",sqsupe:"â",sqsupset:"â",sqsupseteq:"â",squ:"â¡",Square:"â¡",square:"â¡",SquareIntersection:"â",SquareSubset:"â",SquareSubsetEqual:"â",SquareSuperset:"â",SquareSupersetEqual:"â",SquareUnion:"â",squarf:"âª",squf:"âª",srarr:"â",Sscr:"ð®",sscr:"ð",ssetmn:"â",ssmile:"â£",sstarf:"â",Star:"â",star:"â",starf:"â
",straightepsilon:"ϵ",straightphi:"Ï",strns:"¯",Sub:"â",sub:"â",subdot:"⪽",subE:"â«
",sube:"â",subedot:"â«",submult:"â«",subnE:"â«",subne:"â",subplus:"⪿",subrarr:"⥹",Subset:"â",subset:"â",subseteq:"â",subseteqq:"â«
",SubsetEqual:"â",subsetneq:"â",subsetneqq:"â«",subsim:"â«",subsub:"â«",subsup:"â«",succ:"â»",succapprox:"⪸",succcurlyeq:"â½",Succeeds:"â»",SucceedsEqual:"⪰",SucceedsSlantEqual:"â½",SucceedsTilde:"â¿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"â©",succsim:"â¿",SuchThat:"â",Sum:"â",sum:"â",sung:"âª",Sup:"â",sup:"â",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"â«",supE:"â«",supe:"â",supedot:"â«",Superset:"â",SupersetEqual:"â",suphsol:"â",suphsub:"â«",suplarr:"⥻",supmult:"â«",supnE:"â«",supne:"â",supplus:"â«",Supset:"â",supset:"â",supseteq:"â",supseteqq:"â«",supsetneq:"â",supsetneqq:"â«",supsim:"â«",supsub:"â«",supsup:"â«",swarhk:"⤦",swArr:"â",swarr:"â",swarrow:"â",swnwar:"⤪",szlig:"Ã",Tab:"\t",target:"â",Tau:"Τ",tau:"Ï",tbrk:"â´",Tcaron:"Ť",tcaron:"Å¥",Tcedil:"Å¢",tcedil:"Å£",Tcy:"Т",tcy:"Ñ",tdot:"â",telrec:"â",Tfr:"ð",tfr:"ð±",there4:"â´",Therefore:"â´",therefore:"â´",Theta:"Î",theta:"θ",thetasym:"Ï",thetav:"Ï",thickapprox:"â",thicksim:"â¼",ThickSpace:"ââ",thinsp:"â",ThinSpace:"â",thkap:"â",thksim:"â¼",THORN:"Ã",thorn:"þ",Tilde:"â¼",tilde:"Ë",TildeEqual:"â",TildeFullEqual:"â
",TildeTilde:"â",times:"Ã",timesb:"â ",timesbar:"⨱",timesd:"⨰",tint:"â",toea:"⤨",top:"â¤",topbot:"â¶",topcir:"⫱",Topf:"ð",topf:"ð¥",topfork:"â«",tosa:"⤩",tprime:"â´",TRADE:"â¢",trade:"â¢",triangle:"âµ",triangledown:"â¿",triangleleft:"â",trianglelefteq:"â´",triangleq:"â",triangleright:"â¹",trianglerighteq:"âµ",tridot:"â¬",trie:"â",triminus:"⨺",TripleDot:"â",triplus:"⨹",trisb:"â§",tritime:"⨻",trpezium:"â¢",Tscr:"ð¯",tscr:"ð",TScy:"Ц",tscy:"Ñ",TSHcy:"Ð",tshcy:"Ñ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"â¬",twoheadleftarrow:"â",twoheadrightarrow:"â ",Uacute:"Ã",uacute:"ú",Uarr:"â",uArr:"â",uarr:"â",Uarrocir:"â¥",Ubrcy:"Ð",ubrcy:"Ñ",Ubreve:"Ŭ",ubreve:"Å",Ucirc:"Ã",ucirc:"û",Ucy:"У",ucy:"Ñ",udarr:"â
",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"ð",ufr:"ð²",Ugrave:"Ã",ugrave:"ù",uHar:"⥣",uharl:"â¿",uharr:"â¾",uhblk:"â",ulcorn:"â",ulcorner:"â",ulcrop:"â",ultri:"â¸",Umacr:"Ū",umacr:"Å«",uml:"¨",UnderBar:"_",UnderBrace:"â",UnderBracket:"âµ",UnderParenthesis:"â",Union:"â",UnionPlus:"â",Uogon:"Ų",uogon:"ų",Uopf:"ð",uopf:"ð¦",UpArrow:"â",Uparrow:"â",uparrow:"â",UpArrowBar:"â¤",UpArrowDownArrow:"â
",UpDownArrow:"â",Updownarrow:"â",updownarrow:"â",UpEquilibrium:"⥮",upharpoonleft:"â¿",upharpoonright:"â¾",uplus:"â",UpperLeftArrow:"â",UpperRightArrow:"â",Upsi:"Ï",upsi:"Ï
",upsih:"Ï",Upsilon:"Î¥",upsilon:"Ï
",UpTee:"â¥",UpTeeArrow:"â¥",upuparrows:"â",urcorn:"â",urcorner:"â",urcrop:"â",Uring:"Å®",uring:"ů",urtri:"â¹",Uscr:"ð°",uscr:"ð",utdot:"â°",Utilde:"Ũ",utilde:"Å©",utri:"âµ",utrif:"â´",uuarr:"â",Uuml:"Ã",uuml:"ü",uwangle:"⦧",vangrt:"â¦",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"â
",varphi:"Ï",varpi:"Ï",varpropto:"â",vArr:"â",varr:"â",varrho:"ϱ",varsigma:"Ï",varsubsetneq:"âï¸",varsubsetneqq:"â«ï¸",varsupsetneq:"âï¸",varsupsetneqq:"â«ï¸",vartheta:"Ï",vartriangleleft:"â²",vartriangleright:"â³",Vbar:"â««",vBar:"⫨",vBarv:"â«©",Vcy:"Ð",vcy:"в",VDash:"â«",Vdash:"â©",vDash:"â¨",vdash:"â¢",Vdashl:"⫦",Vee:"â",vee:"â¨",veebar:"â»",veeeq:"â",vellip:"â®",Verbar:"â",verbar:"|",Vert:"â",vert:"|",VerticalBar:"â£",VerticalLine:"|",VerticalSeparator:"â",VerticalTilde:"â",VeryThinSpace:"â",Vfr:"ð",vfr:"ð³",vltri:"â²",vnsub:"ââ",vnsup:"ââ",Vopf:"ð",vopf:"ð§",vprop:"â",vrtri:"â³",Vscr:"ð±",vscr:"ð",vsubnE:"â«ï¸",vsubne:"âï¸",vsupnE:"â«ï¸",vsupne:"âï¸",Vvdash:"âª",vzigzag:"â¦",Wcirc:"Å´",wcirc:"ŵ",wedbar:"â©",Wedge:"â",wedge:"â§",wedgeq:"â",weierp:"â",Wfr:"ð",wfr:"ð´",Wopf:"ð",wopf:"ð¨",wp:"â",wr:"â",wreath:"â",Wscr:"ð²",wscr:"ð",xcap:"â",xcirc:"â¯",xcup:"â",xdtri:"â½",Xfr:"ð",xfr:"ðµ",xhArr:"âº",xharr:"â·",Xi:"Î",xi:"ξ",xlArr:"â¸",xlarr:"âµ",xmap:"â¼",xnis:"â»",xodot:"â¨",Xopf:"ð",xopf:"ð©",xoplus:"â¨",xotime:"â¨",xrArr:"â¹",xrarr:"â¶",Xscr:"ð³",xscr:"ð",xsqcup:"â¨",xuplus:"â¨",xutri:"â³",xvee:"â",xwedge:"â",Yacute:"Ã",yacute:"ý",YAcy:"Я",yacy:"Ñ",Ycirc:"Ŷ",ycirc:"Å·",Ycy:"Ы",ycy:"Ñ",yen:"Â¥",Yfr:"ð",yfr:"ð¶",YIcy:"Ð",yicy:"Ñ",Yopf:"ð",yopf:"ðª",Yscr:"ð´",yscr:"ð",YUcy:"Ю",yucy:"Ñ",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"Ð",zcy:"з",Zdot:"Å»",zdot:"ż",zeetrf:"â¨",ZeroWidthSpace:"â",Zeta:"Î",zeta:"ζ",Zfr:"â¨",zfr:"ð·",ZHcy:"Ð",zhcy:"ж",zigrarr:"â",Zopf:"â¤",zopf:"ð«",Zscr:"ðµ",zscr:"ð",zwj:"â",zwnj:"â"}
76},{}],2:[function(t,e){"use strict";var n={};["article","aside","button","blockquote","body","canvas","caption","col","colgroup","dd","div","dl","dt","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","iframe","li","map","object","ol","output","p","pre","progress","script","section","style","table","tbody","td","textarea","tfoot","th","tr","thead","ul","video"].forEach(function(t){n[t]=!0}),e.exports=n},{}],3:[function(t,e){"use strict";function n(t,e){return t=t.source,e=e||"",function n(i,r){return i?(r=r.source||r,t=t.replace(i,r),n):new RegExp(t,e)}}var i=/[a-zA-Z_:][a-zA-Z0-9:._-]*/,r=/[^"'=<>`\x00-\x20]+/,o=/'[^']*'/,s=/"[^"]*"/,a=n(/(?:unquoted|single_quoted|double_quoted)/)("unquoted",r)("single_quoted",o)("double_quoted",s)(),l=n(/(?:\s+attr_name(?:\s*=\s*attr_value)?)/)("attr_name",i)("attr_value",a)(),c=n(/<[A-Za-z][A-Za-z0-9]*attribute*\s*\/?>/)("attribute",l)(),u=/<\/[A-Za-z][A-Za-z0-9]*\s*>/,h=/<!--([^-]+|[-][^-]+)*-->/,p=/<[?].*?[?]>/,d=/<![A-Z]+\s+[^>]*>/,f=/<!\[CDATA\[([^\]]+|\][^\]]|\]\][^>])*\]\]>/,m=n(/^(?:open_tag|close_tag|comment|processing|declaration|cdata)/)("open_tag",c)("close_tag",u)("comment",h)("processing",p)("declaration",d)("cdata",f)();e.exports.HTML_TAG_RE=m},{}],4:[function(t,e){"use strict";e.exports=["coap","doi","javascript","aaa","aaas","about","acap","cap","cid","crid","data","dav","dict","dns","file","ftp","geo","go","gopher","h323","http","https","iax","icap","im","imap","info","ipp","iris","iris.beep","iris.xpc","iris.xpcs","iris.lwz","ldap","mailto","mid","msrp","msrps","mtqp","mupdate","news","nfs","ni","nih","nntp","opaquelocktoken","pop","pres","rtsp","service","session","shttp","sieve","sip","sips","sms","snmp","soap.beep","soap.beeps","tag","tel","telnet","tftp","thismessage","tn3270","tip","tv","urn","vemmi","ws","wss","xcon","xcon-userid","xmlrpc.beep","xmlrpc.beeps","xmpp","z39.50r","z39.50s","adiumxtra","afp","afs","aim","apt","attachment","aw","beshare","bitcoin","bolo","callto","chrome","chrome-extension","com-eventbrite-attendee","content","cvs","dlna-playsingle","dlna-playcontainer","dtn","dvb","ed2k","facetime","feed","finger","fish","gg","git","gizmoproject","gtalk","hcp","icon","ipn","irc","irc6","ircs","itms","jar","jms","keyparc","lastfm","ldaps","magnet","maps","market","message","mms","ms-help","msnim","mumble","mvn","notes","oid","palm","paparazzi","platform","proxy","psyc","query","res","resource","rmi","rsync","rtmp","secondlife","sftp","sgn","skype","smb","soldat","spotify","ssh","steam","svn","teamspeak","things","udp","unreal","ut2004","ventrilo","view-source","webcal","wtai","wyciwyg","xfire","xri","ymsgr"]},{}],5:[function(t,e,n){"use strict";function i(t){return Object.prototype.toString.call(t)}function r(t){return"[object String]"===i(t)}function o(t,e){return!!t&&f.call(t,e)}function s(t){var e=Array.prototype.slice.call(arguments,1);return e.forEach(function(e){if(e){if("object"!=typeof e)throw new TypeError(e+"must be object");Object.keys(e).forEach(function(n){t[n]=e[n]})}}),t}function a(t){return t.indexOf("\\")<0?t:t.replace(m,"$1")}function l(t){return!(t>=55296&&57343>=t)&&(!(t>=64976&&65007>=t)&&(65535!==(65535&t)&&65534!==(65535&t)&&(!(t>=0&&8>=t)&&(11!==t&&(!(t>=14&&31>=t)&&(!(t>=127&&159>=t)&&!(t>1114111)))))))}function c(t){if(t>65535){t-=65536;var e=55296+(t>>10),n=56320+(1023&t);return String.fromCharCode(e,n)}return String.fromCharCode(t)}function u(t,e){var n=0;return o(y,e)?y[e]:35===e.charCodeAt(0)&&v.test(e)&&(n="x"===e[1].toLowerCase()?parseInt(e.slice(2),16):parseInt(e.slice(1),10),l(n))?c(n):t}function h(t){return t.indexOf("&")<0?t:t.replace(g,u)}function p(t){return _[t]}function d(t){return b.test(t)?t.replace(w,p):t}var f=Object.prototype.hasOwnProperty,m=/\\([\\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g,g=/&([a-z#][a-z0-9]{1,31});/gi,v=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,y=t("./entities"),b=/[&<>"]/,w=/[&<>"]/g,_={"&":"&","<":"<",">":">",'"':"""};n.assign=s,n.isString=r,n.has=o,n.unescapeMd=a,n.isValidEntityCode=l,n.fromCodePoint=c,n.replaceEntities=h,n.escapeHtml=d},{"./entities":1}],6:[function(t,e){"use strict";e.exports={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"ââââ",highlight:null,maxNesting:20},components:{core:{rules:["block","inline","references","abbr2"]},block:{rules:["blockquote","code","fences","heading","hr","htmlblock","lheading","list","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","htmltag","links","newline","text"]}}}},{}],7:[function(t,e){"use strict";e.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"ââââ",highlight:null,maxNesting:20},components:{core:{rules:["block","inline","references","replacements","linkify","smartquotes","references","abbr2","footnote_tail"]},block:{rules:["blockquote","code","fences","heading","hr","htmlblock","lheading","list","paragraph","table"]},inline:{rules:["autolink","backticks","del","emphasis","entity","escape","footnote_ref","htmltag","links","newline","text","rwref"]}}}},{}],8:[function(t,e){"use strict";e.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"ââââ",highlight:null,maxNesting:20},components:{core:{},block:{}
76,inline:{}}}},{}],9:[function(t,e){"use strict";var n=t("../common/utils").replaceEntities;e.exports=function(t){var e=n(t);try{e=decodeURI(e)}catch(t){}return encodeURI(e)}},{"../common/utils":5}],10:[function(t,e){"use strict";e.exports=function(t){return t.trim().replace(/\s+/g," ").toUpperCase()}},{}],11:[function(t,e){"use strict";var n=t("./normalize_link"),i=t("../common/utils").unescapeMd;e.exports=function(t,e){var r,o,s,a=e,l=t.posMax;if(60===t.src.charCodeAt(e)){for(e++;l>e;){if(r=t.src.charCodeAt(e),10===r)return!1;if(62===r)return s=n(i(t.src.slice(a+1,e))),!!t.parser.validateLink(s)&&(t.pos=e+1,t.linkContent=s,!0);92===r&&l>e+1?e+=2:e++}return!1}for(o=0;l>e&&(r=t.src.charCodeAt(e),32!==r)&&!(32>r||127===r);)if(92===r&&l>e+1)e+=2;else{if(40===r&&(o++,o>1))break;if(41===r&&(o--,0>o))break;e++}return a!==e&&(s=n(i(t.src.slice(a,e))),!!t.parser.validateLink(s)&&(t.linkContent=s,t.pos=e,!0))}},{"../common/utils":5,"./normalize_link":9}],12:[function(t,e){"use strict";e.exports=function(t,e){var n,i,r,o=-1,s=t.posMax,a=t.pos,l=t.isInLabel;if(t.isInLabel)return-1;if(t.labelUnmatchedScopes)return t.labelUnmatchedScopes--,-1;for(t.pos=e+1,t.isInLabel=!0,n=1;t.pos<s;){if(r=t.src.charCodeAt(t.pos),91===r)n++;else if(93===r&&(n--,0===n)){i=!0;break}t.parser.skipToken(t)}return i?(o=t.pos, 77t.labelUnmatchedScopes=0):t.labelUnmatchedScopes=n-1,t.pos=a,t.isInLabel=l,o}},{}],13:[function(t,e){"use strict";var n=t("../common/utils").unescapeMd;e.exports=function(t,e){var i,r=e,o=t.posMax,s=t.src.charCodeAt(e);if(34!==s&&39!==s&&40!==s)return!1;for(e++,40===s&&(s=41);o>e;){if(i=t.src.charCodeAt(e),i===s)return t.pos=e+1,t.linkContent=n(t.src.slice(r+1,e)),!0;92===i&&o>e+1?e+=2:e++}return!1}},{"../common/utils":5}],14:[function(t,e){"use strict";function n(t,e,n){this.src=e,this.env=n,this.options=t.options,this.tokens=[],this.inlineMode=!1,this.inline=t.inline,this.block=t.block,this.renderer=t.renderer,this.typographer=t.typographer}function i(t,e){e||o(t)||(e=t||{},t="default"),this.inline=new c,this.block=new l,this.core=new a,this.renderer=new s,this.ruler=new u,this.options={},this.configure(h[t]),e&&this.set(e)}var r=t("./common/utils").assign,o=t("./common/utils").isString,s=t("./renderer"),a=t("./parser_core"),l=t("./parser_block"),c=t("./parser_inline"),u=t("./ruler"),h={default:t("./configs/default"),full:t("./configs/full"),commonmark:t("./configs/commonmark")};i.prototype.set=function(t){r(this.options,t)},i.prototype.configure=function(t){var e=this;if(!t)throw new Error("Wrong `remarkable` preset, check name/content");t.options&&e.set(t.options),t.components&&Object.keys(t.components).forEach(function(n){t.components[n].rules&&e[n].ruler.enable(t.components[n].rules,!0)})},i.prototype.use=function(t,e){return t(this,e),this},i.prototype.parse=function(t,e){var i=new n(this,t,e);return this.core.process(i),i.tokens},i.prototype.render=function(t,e){return e=e||{},this.renderer.render(this.parse(t,e),this.options,e)},i.prototype.parseInline=function(t,e){var i=new n(this,t,e);return i.inlineMode=!0,this.core.process(i),i.tokens},i.prototype.renderInline=function(t,e){return e=e||{},this.renderer.render(this.parseInline(t,e),this.options,e)},e.exports=i,e.exports.utils=t("./common/utils")},{"./common/utils":5,"./configs/commonmark":6,"./configs/default":7,"./configs/full":8,"./parser_block":15,"./parser_core":16,"./parser_inline":17,"./renderer":18,"./ruler":19}],15:[function(t,e){"use strict";function n(){this.ruler=new i;for(var t=0;t<o.length;t++)this.ruler.push(o[t][0],o[t][1],{alt:(o[t][2]||[]).slice()})}var i=t("./ruler"),r=t("./rules_block/state_block"),o=[["code",t("./rules_block/code")],["fences",t("./rules_block/fences"),["paragraph","blockquote","list"]],["blockquote",t("./rules_block/blockquote"),["paragraph","blockquote","list"]],["hr",t("./rules_block/hr"),["paragraph","blockquote","list"]],["list",t("./rules_block/list"),["paragraph","blockquote"]],["footnote",t("./rules_block/footnote"),["paragraph"]],["heading",t("./rules_block/heading"),["paragraph","blockquote"]],["lheading",t("./rules_block/lheading")],["htmlblock",t("./rules_block/htmlblock"),["paragraph","blockquote"]],["table",t("./rules_block/table"),["paragraph"]],["deflist",t("./rules_block/deflist"),["paragraph"]],["paragraph",t("./rules_block/paragraph")]];n.prototype.tokenize=function(t,e,n){for(var i,r,o=this.ruler.getRules(""),s=o.length,a=e,l=!1;n>a&&(t.line=a=t.skipEmptyLines(a),!(a>=n))&&!(t.tShift[a]<t.blkIndent);){for(r=0;s>r&&!(i=o[r](t,a,n,!1));r++);if(t.tight=!l,t.isEmpty(t.line-1)&&(l=!0),a=t.line,n>a&&t.isEmpty(a)){if(l=!0,a++,n>a&&"list"===t.parentType&&t.isEmpty(a))break;t.line=a}}};var s=/[\n\t]/g,a=/\r[\n\u0085]|[\u2424\u2028\u0085]/g,l=/\u00a0/g;n.prototype.parse=function(t,e,n,i){var o,c=0,u=0;return t?(t=t.replace(l," "),t=t.replace(a,"\n"),t.indexOf("\t")>=0&&(t=t.replace(s,function(e,n){var i;return 10===t.charCodeAt(n)?(c=n+1,u=0,e):(i=" ".slice((n-c-u)%4),u=n-c+1,i)})),o=new r(t,this,e,n,i),void this.tokenize(o,o.line,o.lineMax)):[]},e.exports=n},{"./ruler":19,"./rules_block/blockquote":20,"./rules_block/code":21,"./rules_block/deflist":22,"./rules_block/fences":23,"./rules_block/footnote":24,"./rules_block/heading":25,"./rules_block/hr":26,"./rules_block/htmlblock":27,"./rules_block/lheading":28,"./rules_block/list":29,"./rules_block/paragraph":30,"./rules_block/state_block":31,"./rules_block/table":32}],16:[function(t,e){"use strict";function n(){this.options={},this.ruler=new i;for(var t=0;t<r.length;t++)this.ruler.push(r[t][0],r[t][1])}var i=t("./ruler"),r=[["block",t("./rules_core/block")],["abbr",t("./rules_core/abbr")],["references",t("./rules_core/references")],["inline",t("./rules_core/inline")],["footnote_tail",t("./rules_core/footnote_tail")],["abbr2",t("./rules_core/abbr2")],["replacements",t("./rules_core/replacements")],["smartquotes",t("./rules_core/smartquotes")],["linkify",t("./rules_core/linkify")]];n.prototype.process=function(t){var e,n,i;for(i=this.ruler.getRules(""),e=0,n=i.length;n>e;e++)i[e](t)},e.exports=n},{"./ruler":19,"./rules_core/abbr":33,"./rules_core/abbr2":34,"./rules_core/block":35,"./rules_core/footnote_tail"
77:36,"./rules_core/inline":37,"./rules_core/linkify":38,"./rules_core/references":39,"./rules_core/replacements":40,"./rules_core/smartquotes":41}],17:[function(t,e){"use strict";function n(t){var e=t.trim().toLowerCase();return e=s(e),!(e.indexOf(":")>=0&&l.indexOf(e.split(":")[0])>=0)}function i(){this.validateLink=n,this.ruler=new r;for(var t=0;t<a.length;t++)this.ruler.push(a[t][0],a[t][1])}var r=t("./ruler"),o=t("./rules_inline/state_inline"),s=t("./common/utils").replaceEntities,a=[["text",t("./rules_inline/text")],["newline",t("./rules_inline/newline")],["escape",t("./rules_inline/escape")],["backticks",t("./rules_inline/backticks")],["del",t("./rules_inline/del")],["ins",t("./rules_inline/ins")],["mark",t("./rules_inline/mark")],["emphasis",t("./rules_inline/emphasis")],["sub",t("./rules_inline/sub")],["sup",t("./rules_inline/sup")],["rwref",t("./rules_inline/rwref")],["links",t("./rules_inline/links")],["footnote_inline",t("./rules_inline/footnote_inline")],["footnote_ref",t("./rules_inline/footnote_ref")],["autolink",t("./rules_inline/autolink")],["htmltag",t("./rules_inline/htmltag")],["entity",t("./rules_inline/entity")]],l=["vbscript","javascript","file"];i.prototype.skipToken=function(t){var e,n,i=t.pos,r=this.ruler.getRules(""),o=r.length;if((n=t.cacheGet(i))>0)return void(t.pos=n);for(e=0;o>e;e++)if(r[e](t,!0))return void t.cacheSet(i,t.pos);t.pos++,t.cacheSet(i,t.pos)},i.prototype.tokenize=function(t){for(var e,n,i=this.ruler.getRules(""),r=i.length,o=t.posMax;t.pos<o;){for(n=0;r>n&&!(e=i[n](t,!1));n++);if(e){if(t.pos>=o)break}else t.pending+=t.src[t.pos++]}t.pending&&t.pushPending()},i.prototype.parse=function(t,e,n,i){var r=new o(t,this,e,n,i);this.tokenize(r)},e.exports=i},{"./common/utils":5,"./ruler":19,"./rules_inline/autolink":42,"./rules_inline/backticks":43,"./rules_inline/del":44,"./rules_inline/emphasis":45,"./rules_inline/entity":46,"./rules_inline/escape":47,"./rules_inline/footnote_inline":48,"./rules_inline/footnote_ref":49,"./rules_inline/htmltag":50,"./rules_inline/ins":51,"./rules_inline/links":52,"./rules_inline/mark":53,"./rules_inline/newline":54,"./rules_inline/rwref":55,"./rules_inline/state_inline":56,"./rules_inline/sub":57,"./rules_inline/sup":58,"./rules_inline/text":59}],18:[function(t,e){"use strict";function n(t,e){return++e>=t.length-2?e:"paragraph_open"===t[e].type&&t[e].tight&&"inline"===t[e+1].type&&0===t[e+1].content.length&&"paragraph_close"===t[e+2].type&&t[e+2].tight?n(t,e+2):e}function i(t,e){return e=n(t,e),e<t.length&&"list_item_close"===t[e].type?"":"\n"}function r(){this.rules=o({},u),this.getBreak=i}var o=t("./common/utils").assign,s=t("./common/utils").has,a=t("./common/utils").unescapeMd,l=t("./common/utils").replaceEntities,c=t("./common/utils").escapeHtml,u={};u.blockquote_open=function(){return"<blockquote>\n"},u.blockquote_close=function(t,e){return"</blockquote>"+i(t,e)},u.code=function(t,e){return t[e].block?"<pre><code>"+c(t[e].content)+"</code></pre>"+i(t,e):"<code>"+c(t[e].content)+"</code>"},u.fence=function(t,e,n,r,o){var u,h,p=t[e],d="",f=n.langPrefix,m="";if(p.params){if(u=p.params.split(/\s+/g)[0],s(o.rules.fence_custom,u))return o.rules.fence_custom[u](t,e,n,r,o);m=c(l(a(u))),d=' class="'+f+m+'"'}return h=n.highlight?n.highlight(p.content,m)||c(p.content):c(p.content),"<pre><code"+d+">"+h+"</code></pre>"+i(t,e)},u.fence_custom={},u.heading_open=function(t,e){return"<h"+t[e].hLevel+">"},u.heading_close=function(t,e){return"</h"+t[e].hLevel+">\n"},u.hr=function(t,e,n){return(n.xhtmlOut?"<hr />":"<hr>")+i(t,e)},u.bullet_list_open=function(){return"<ul>\n"},u.bullet_list_close=function(t,e){return"</ul>"+i(t,e)},u.list_item_open=function(){return"<li>"},u.list_item_close=function(){return"</li>\n"},u.ordered_list_open=function(t,e){var n=t[e];return"<ol"+(n.order>1?' start="'+n.order+'"':"")+">\n"},u.ordered_list_close=function(t,e){return"</ol>"+i(t,e)},u.paragraph_open=function(t,e){return t[e].tight?"":"<p>"},u.paragraph_close=function(t,e){var n=!(t[e].tight&&e&&"inline"===t[e-1].type&&!t[e-1].content);return(t[e].tight?"":"</p>")+(n?i(t,e):"")},u.link_open=function(t,e){var n=t[e].title?' title="'+c(l(t[e].title))+'"':"";return'<a href="'+c(t[e].href)+'"'+n+' target="_blank">'},u.link_close=function(){return"</a>"},u.image=function(t,e,n){var i=' src="'+c(t[e].src)+'"',r=t[e].title?' title="'+c(l(t[e].title))+'"':"",o=' alt="'+(t[e].alt?c(l(t[e].alt)):"")+'"',s=n.xhtmlOut?" /":"";return"<img"+i+o+r+s+">"},u.table_open=function(){return"<table>\n"},u.table_close=function(){return"</table>\n"},u.thead_open=function(){return"<thead>\n"},u.thead_close=function(){return"</thead>\n"},u.tbody_open=function(){return"<tbody>\n"},u.tbody_close=function(){return"</tbody>\n"},u.tr_open=function(){return"<tr>"},u.tr_close=function(){return"</tr>\n"},u.th_open=function(t,e){var n=t[e];return"<th"+(n.align?' style="text-align:'+n.align+'"':"")+">"},u.th_close=function(){return"</th>"},u.td_open=function(t,e){var n=t[e];return"<td"+(n.align?' style="text-align:'+n.align+'"':"")+">"},u.td_close=function(){return"</td>"},u.strong_open=function(){return"<strong>"},u.strong_close=function(){return"</strong>"},u.em_open=function(){return"<em>"},u.em_close=function(){return"</em>"},u.del_open=function(){return"<del>"},u.del_close=function(){return"</del>"},u.ins_open=function(){return"<ins>"},u.ins_close=function(){return"</ins>"},u.mark_open=function(){return"<mark>"},u.mark_close=function(){return"</mark>"},u.sub=function(t,e){return"<sub>"+c(t[e].content)+"</sub>"},u.sup=function(t,e){return"<sup>"+c(t[e].content)+"</sup>"},u.hardbreak=function(t,e,n){return n.xhtmlOut?"<br />\n":"<br>\n"},u.softbreak=function(t,e,n){return n.breaks?n.xhtmlOut?"<br />\n":"<br>\n":"\n"},u.text=function(t,e){return c(t[e].content)},u.htmlblock=function(t,e){return t[e].content},u.htmltag=function(t,e){return t[e].content},u.abbr_open=function(t,e){return'<abbr title="'+c(l(t[e].title))+'">'},u.abbr_close=function(){return"</abbr>"},u.footnote_ref=function(t,e){var n=Number(t[e].id+1).toString(),i="fnref"+n;return t[e].subId>0&&(i+=":"+t[e].subId),'<sup class="footnote-ref"><a href="#fn'+n+'" id="'+i+'">['+n+"]</a></sup>"},u.footnote_block_open=function(t,e,n){return(n.xhtmlOut?'<hr class="footnotes-sep" />\n':'<hr class="footnotes-sep">\n')+'<section class="footnotes">\n<ol class="footnotes-list">\n'},u.footnote_block_close=function(){return"</ol>\n</section>\n"},u.footnote_open=function(t,e){var n=Number(t[e].id+1).toString();return'<li id="fn'+n+'" class="footnote-item">'},u.footnote_close=function(){return"</li>\n"},u.footnote_anchor=function(t,e){var n=Number(t[e].id+1).toString(),i="fnref"+n;return t[e].subId>0&&(i+=":"+t[e].subId),' <a href="#'+i+'" class="footnote-backref">â©</a>'},u.dl_open=function(){return"<dl>\n"},u.dt_open=function(){return"<dt>"},u.dd_open=function(){return"<dd>"},u.dl_close=function(){return"</dl>\n"},u.dt_close=function(){return"</dt>\n"},u.dd_close=function(){return"</dd>\n"},u.rwref_open=function(t,e){return'<a href="javascript:;" class="rwref rwref-'+c(t[e].rwrefType)+'" data-rwref_type="'+c(t[e].rwrefType)+'" data-rwref_id="'+c(t[e].rwrefId)+'">'},u.rwref_close=function(){return"</a>"},r.prototype.renderInline=function(t,e,n){for(var i="",r=this.rules,o=0,s=t.length;s>o;o++)i+=r[t[o].type](t,o,e,n,this);return i},r.prototype.render=function(t,e,n){var i,r,o="",s=this.rules;for(i=0,r=t.length;r>i;i++)o+="inline"===t[i].type?this.renderInline(t[i].children,e,n):s[t[i].type](t,i,e,n,this);return o},e.exports=r},{"./common/utils":5}],19:[function(t,e){"use strict";function n(){this.__rules__=[],this.__cache__=null}n.prototype.__find__=function(t){for(var e=0;e<this.__rules__.length;e++)if(this.__rules__[e].name===t)return e;return-1},n.prototype.__compile__=function(){var t=this,e=[""];t.__rules__.forEach(function(t){t.enabled&&t.alt.forEach(function(t){e.indexOf(t)<0&&e.push(t)})}),t.__cache__={},e.forEach(function(e){t.__cache__[e]=[],t.__rules__.forEach(function(n){n.enabled&&(e&&n.alt.indexOf(e)<0||t.__cache__[e].push(n.fn))})})},n.prototype.at=function(t,e,n){var i=this.__find__(t),r=n||{};if(-1===i)throw new Error("Parser rule not found: "+t);this.__rules__[i].fn=e,this.__rules__[i].alt=r.alt||[],this.__cache__=null},n.prototype.before=function(t,e,n,i){var r=this.__find__(t),o=i||{};if(-1===r)throw new Error("Parser rule not found: "+t);this.__rules__.splice(r,0,{name:e,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null},n.prototype.after=function(t,e,n,i){var r=this.__find__(t),o=i||{};if(-1===r)throw new Error("Parser rule not found: "+t);this.__rules__.splice(r+1,0,{name:e,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null},n.prototype.push=function(t,e,n){var i=n||{};this.__rules__.push({name:t,enabled:!0,fn:e,alt:i.alt||[]}),this.__cache__=null},n.prototype.enable=function(t,e){Array.isArray(t)||(t=[t]),e&&this.__rules__.forEach(function(t){t.enabled=!1}),t.forEach(function(t){var e=this.__find__(t);if(0>e)throw new Error("Rules manager: invalid rule name "+t);this.__rules__[e].enabled=!0},this),this.__cache__=null},n.prototype.disable=function(t){Array.isArray(t)||(t=[t]),t.forEach(function(t){var e=this.__find__(t);if(0>e)throw new Error("Rules manager: invalid rule name "+t);this.__rules__[e].enabled=!1},this),this.__cache__=null},n.prototype.getRules=function(t){return null===this.__cache__&&this.__compile__(),this.__cache__[t]},e.exports=n},{}],20:[function(t,e){"use strict";e.exports=function(t,e,n,i){var r,o,s,a,l,c,u,h,p,d,f,m=t.bMarks[e]+t.tShift[e],g=t.eMarks[e];if(m>g)return!1;
77if(62!==t.src.charCodeAt(m++))return!1;if(t.level>=t.options.maxNesting)return!1;if(i)return!0;for(32===t.src.charCodeAt(m)&&m++,l=t.blkIndent,t.blkIndent=0,a=[t.bMarks[e]],t.bMarks[e]=m,m=g>m?t.skipSpaces(m):m,o=m>=g,s=[t.tShift[e]],t.tShift[e]=m-t.bMarks[e],h=t.parser.ruler.getRules("blockquote"),r=e+1;n>r&&(m=t.bMarks[r]+t.tShift[r],g=t.eMarks[r],!(m>=g));r++)if(62!==t.src.charCodeAt(m++)){if(o)break;for(f=!1,p=0,d=h.length;d>p;p++)if(h[p](t,r,n,!0)){f=!0;break}if(f)break;a.push(t.bMarks[r]),s.push(t.tShift[r]),t.tShift[r]=-1337}else 32===t.src.charCodeAt(m)&&m++,a.push(t.bMarks[r]),t.bMarks[r]=m,m=g>m?t.skipSpaces(m):m,o=m>=g,s.push(t.tShift[r]),t.tShift[r]=m-t.bMarks[r];for(c=t.parentType,t.parentType="blockquote",t.tokens.push({type:"blockquote_open",lines:u=[e,0],level:t.level++}),t.parser.tokenize(t,e,r),t.tokens.push({type:"blockquote_close",level:--t.level}),t.parentType=c,u[1]=t.line,p=0;p<s.length;p++)t.bMarks[p+e]=a[p],t.tShift[p+e]=s[p];return t.blkIndent=l,!0}},{}],21:[function(t,e){"use strict";e.exports=function(t,e,n){var i,r;if(t.tShift[e]-t.blkIndent<4)return!1;for(r=i=e+1;n>i;)if(t.isEmpty(i))i++;else{if(!(t.tShift[i]-t.blkIndent>=4))break;i++,r=i}return t.line=i,t.tokens.push({type:"code",content:t.getLines(e,r,4+t.blkIndent,!0),block:!0,lines:[e,t.line],level:t.level}),!0}},{}],22:[function(t,e){"use strict";function n(t,e){var n,i,r=t.bMarks[e]+t.tShift[e],o=t.eMarks[e];return r>=o?-1:(i=t.src.charCodeAt(r++),126!==i&&58!==i?-1:(n=t.skipSpaces(r),r===n?-1:n>=o?-1:n))}function i(t,e){var n,i,r=t.level+2;for(n=e+2,i=t.tokens.length-2;i>n;n++)t.tokens[n].level===r&&"paragraph_open"===t.tokens[n].type&&(t.tokens[n+2].tight=!0,t.tokens[n].tight=!0,n+=2)}e.exports=function(t,e,r,o){var s,a,l,c,u,h,p,d,f,m,g,v,y,b;if(o)return!(t.ddIndent<0)&&n(t,e)>=0;if(p=e+1,t.isEmpty(p)&&++p>r)return!1;if(t.tShift[p]<t.blkIndent)return!1;if(s=n(t,p),0>s)return!1;if(t.level>=t.options.maxNesting)return!1;h=t.tokens.length,t.tokens.push({type:"dl_open",lines:u=[e,0],level:t.level++}),l=e,a=p;t:for(;;){for(b=!0,y=!1,t.tokens.push({type:"dt_open",lines:[l,l],level:t.level++}),t.tokens.push({type:"inline",content:t.getLines(l,l+1,t.blkIndent,!1).trim(),level:t.level+1,lines:[l,l],children:[]}),t.tokens.push({type:"dt_close",level:--t.level});;){if(t.tokens.push({type:"dd_open",lines:c=[p,0],level:t.level++}),v=t.tight,f=t.ddIndent,d=t.blkIndent,g=t.tShift[a],m=t.parentType,t.blkIndent=t.ddIndent=t.tShift[a]+2,t.tShift[a]=s-t.bMarks[a],t.tight=!0,t.parentType="deflist",t.parser.tokenize(t,a,r,!0),(!t.tight||y)&&(b=!1),y=t.line-a>1&&t.isEmpty(t.line-1),t.tShift[a]=g,t.tight=v,t.parentType=m,t.blkIndent=d,t.ddIndent=f,t.tokens.push({type:"dd_close",level:--t.level}),c[1]=p=t.line,p>=r)break t;if(t.tShift[p]<t.blkIndent)break t;if(s=n(t,p),0>s)break;a=p}if(p>=r)break;if(l=p,t.isEmpty(l))break;if(t.tShift[l]<t.blkIndent)break;if(a=l+1,a>=r)break;if(t.isEmpty(a)&&a++,a>=r)break;if(t.tShift[a]<t.blkIndent)break;if(s=n(t,a),0>s)break}return t.tokens.push({type:"dl_close",level:--t.level}),u[1]=p,t.line=p,b&&i(t,h),!0}},{}],23:[function(t,e){"use strict";e.exports=function(t,e,n,i){var r,o,s,a,l,c=!1,u=t.bMarks[e]+t.tShift[e],h=t.eMarks[e];if(u+3>h)return!1;if(r=t.src.charCodeAt(u),126!==r&&96!==r)return!1;if(l=u,u=t.skipChars(u,r),o=u-l,3>o)return!1;if(s=t.src.slice(u,h).trim(),s.indexOf("`")>=0)return!1;if(i)return!0;for(a=e;a++,!(a>=n||(u=l=t.bMarks[a]+t.tShift[a],h=t.eMarks[a],h>u&&t.tShift[a]<t.blkIndent));)if(t.src.charCodeAt(u)===r&&!(t.tShift[a]-t.blkIndent>=4||(u=t.skipChars(u,r),o>u-l||(u=t.skipSpaces(u),h>u)))){c=!0;break}return o=t.tShift[e],t.line=a+(c?1:0),t.tokens.push({type:"fence",params:s,content:t.getLines(e+1,a,o,!0),lines:[e,t.line],level:t.level}),!0}},{}],24:[function(t,e){"use strict";e.exports=function(t,e,n,i){var r,o,s,a,l,c=t.bMarks[e]+t.tShift[e],u=t.eMarks[e];if(c+4>u)return!1;if(91!==t.src.charCodeAt(c))return!1;if(94!==t.src.charCodeAt(c+1))return!1;if(t.level>=t.options.maxNesting)return!1;for(a=c+2;u>a;a++){if(32===t.src.charCodeAt(a))return!1;if(93===t.src.charCodeAt(a))break}return a!==c+2&&(!(a+1>
77=u||58!==t.src.charCodeAt(++a))&&(!!i||(a++,t.env.footnotes||(t.env.footnotes={}),t.env.footnotes.refs||(t.env.footnotes.refs={}),l=t.src.slice(c+2,a-2),t.env.footnotes.refs[":"+l]=-1,t.tokens.push({type:"footnote_reference_open",label:l,level:t.level++}),r=t.bMarks[e],o=t.tShift[e],s=t.parentType,t.tShift[e]=t.skipSpaces(a)-a,t.bMarks[e]=a,t.blkIndent+=4,t.parentType="footnote",t.tShift[e]<t.blkIndent&&(t.tShift[e]+=t.blkIndent,t.bMarks[e]-=t.blkIndent),t.parser.tokenize(t,e,n,!0),t.parentType=s,t.blkIndent-=4,t.tShift[e]=o,t.bMarks[e]=r,t.tokens.push({type:"footnote_reference_close",level:--t.level}),!0)))}},{}],25:[function(t,e){"use strict";e.exports=function(t,e,n,i){var r,o,s,a=t.bMarks[e]+t.tShift[e],l=t.eMarks[e];if(a>=l)return!1;if(r=t.src.charCodeAt(a),35!==r||a>=l)return!1;for(o=1,r=t.src.charCodeAt(++a);35===r&&l>a&&6>=o;)o++,r=t.src.charCodeAt(++a);return!(o>6||l>a&&32!==r)&&(!!i||(l=t.skipCharsBack(l,32,a),s=t.skipCharsBack(l,35,a),s>a&&32===t.src.charCodeAt(s-1)&&(l=s),t.line=e+1,t.tokens.push({type:"heading_open",hLevel:o,lines:[e,t.line],level:t.level}),l>a&&t.tokens.push({type:"inline",content:t.src.slice(a,l).trim(),level:t.level+1,lines:[e,t.line],children:[]}),t.tokens.push({type:"heading_close",hLevel:o,level:t.level}),!0))}},{}],26:[function(t,e){"use strict";e.exports=function(t,e,n,i){var r,o,s,a=t.bMarks[e],l=t.eMarks[e];if(a+=t.tShift[e],a>l)return!1;if(r=t.src.charCodeAt(a++),42!==r&&45!==r&&95!==r)return!1;for(o=1;l>a;){if(s=t.src.charCodeAt(a++),s!==r&&32!==s)return!1;s===r&&o++}return!(3>o)&&(!!i||(t.line=e+1,t.tokens.push({type:"hr",lines:[e,t.line],level:t.level}),!0))}},{}],27:[function(t,e){"use strict";function n(t){var e=32|t;return e>=97&&122>=e}var i=t("../common/html_blocks"),r=/^<([a-zA-Z]{1,15})[\s\/>]/,o=/^<\/([a-zA-Z]{1,15})[\s>]/;e.exports=function(t,e,s,a){var l,c,u,h=t.bMarks[e],p=t.eMarks[e],d=t.tShift[e];if(h+=d,!t.options.html)return!1;if(d>3||h+2>=p)return!1;if(60!==t.src.charCodeAt(h))return!1;if(l=t.src.charCodeAt(h+1),33===l||63===l){if(a)return!0}else{if(47!==l&&!n(l))return!1;if(47===l){if(c=t.src.slice(h,p).match(o),!c)return!1}else if(c=t.src.slice(h,p).match(r),!c)return!1;if(i[c[1].toLowerCase()]!==!0)return!1;if(a)return!0}for(u=e+1;u<t.lineMax&&!t.isEmpty(u);)u++;return t.line=u,t.tokens.push({type:"htmlblock",level:t.level,lines:[e,t.line],content:t.getLines(e,u,0,!0)}),!0}},{"../common/html_blocks":2}],28:[function(t,e){"use strict";e.exports=function(t,e,n){var i,r,o,s=e+1;return!(s>=n)&&(!(t.tShift[s]<t.blkIndent)&&(!(t.tShift[s]-t.blkIndent>3)&&(r=t.bMarks[s]+t.tShift[s],o=t.eMarks[s],!(r>=o)&&(i=t.src.charCodeAt(r),(45===i||61===i)&&(r=t.skipChars(r,i),r=t.skipSpaces(r),!(o>r)&&(r=t.bMarks[e]+t.tShift[e],t.line=s+1,t.tokens.push({type:"heading_open",hLevel:61===i?1:2,lines:[e,t.line],level:t.level}),t.tokens.push({type:"inline",content:t.src.slice(r,t.eMarks[e]).trim(),level:t.level+1,lines:[e,t.line-1],children:[]}),t.tokens.push({type:"heading_close",hLevel:61===i?1:2,level:t.level}),!0))))))}},{}],29:[function(t,e){"use strict";function n(t,e){var n,i,r;return i=t.bMarks[e]+t.tShift[e],r=t.eMarks[e],i>=r?-1:(n=t.src.charCodeAt(i++),42!==n&&45!==n&&43!==n?-1:r>i&&32!==t.src.charCodeAt(i)?-1:i)}function i(t,e){var n,i=t.bMarks[e]+t.tShift[e],r=t.eMarks[e];if(i+1>=r)return-1;if(n=t.src.charCodeAt(i++),48>n||n>57)return-1;for(;;){if(i>=r)return-1;if(n=t.src.charCodeAt(i++),!(n>=48&&57>=n)){if(41===n||46===n)break;return-1}}return r>i&&32!==t.src.charCodeAt(i)?-1:i}function r(t,e){var n,i,r=t.level+2;for(n=e+2,i=t.tokens.length-2;i>n;n++)t.tokens[n].level===r&&"paragraph_open"===t.tokens[n].type&&(t.tokens[n+2].tight=!0,t.tokens[n].tight=!0,n+=2)}e.exports=function(t,e,o,s){var a,l,c,u,h,p,d,f,m,g,v,y,b,w,_,x,k,T,C,$,S,E,A=!0;if((f=i(t,e))>=0)b=!0;else{if(!((f=n(t,e))>=0))return!1;b=!1}if(t.level>=t.options.maxNesting)return!1;if(y=t.src.charCodeAt(f-1),s)return!0;for(_=t.tokens.length,b?(d=t.bMarks[e]+t.tShift[e],v=Number(t.src.substr(d,f-d-1)),t.tokens.push({type:"ordered_list_open",order:v,lines:k=[e,0],level:t.level++})):t.tokens.push({type:"bullet_list_open",lines:k=[e,0],level:t.level++}),a=e,x=!1,C=t.parser.ruler.getRules("list");!(!(o>a)||(w=t.skipSpaces(f),m=t.eMarks[a],g=w>=m?1:w-f,g>4&&(g=1),1>g&&(g=1),l=f-t.bMarks[a]+g,t.tokens.push({type:"list_item_open",lines:T=[e,0],level:t.level++}),u=t.blkIndent,h=t.tight,c=t.tShift[e],p=t.parentType,t.tShift[e]=w-t.bMarks[e],t.blkIndent=l,t.tight=!0,t.parentType="list",t.parser.tokenize(t,e,o,!0),(!t.tight||x)&&(A=!1),x=t.line-e>1&&t.isEmpty(t.line-1),t.blkIndent=u,t.tShift[e]=c,t.tight=h,t.parentType=p,t.tokens.push({type:"list_item_close",level:--t.level}),a=e=t.line,T[1]=a,w=t.bMarks[e],a>=o)||t.isEmpty(a)||t.tShift[a]<t.blkIndent);){for(E=!1,$=0,S=C.length;S>$;$++)if(C[$](t,a,o,!0)){E=!0;break}if(E)break;if(b){if(f=i(t,a),0>f)break}else if(f=n(t,a),0>f)break;
77if(y!==t.src.charCodeAt(f-1))break}return t.tokens.push({type:b?"ordered_list_close":"bullet_list_close",level:--t.level}),k[1]=a,t.line=a,A&&r(t,_),!0}},{}],30:[function(t,e){"use strict";e.exports=function(t,e){var n,i,r,o,s,a,l=e+1;if(n=t.lineMax,n>l&&!t.isEmpty(l))for(a=t.parser.ruler.getRules("paragraph");n>l&&!t.isEmpty(l);l++)if(!(t.tShift[l]-t.blkIndent>3)){for(r=!1,o=0,s=a.length;s>o;o++)if(a[o](t,l,n,!0)){r=!0;break}if(r)break}return i=t.getLines(e,l,t.blkIndent,!1).trim(),t.line=l,i.length&&(t.tokens.push({type:"paragraph_open",tight:!1,lines:[e,t.line],level:t.level}),t.tokens.push({type:"inline",content:i,level:t.level+1,lines:[e,t.line],children:[]}),t.tokens.push({type:"paragraph_close",tight:!1,level:t.level})),!0}},{}],31:[function(t,e){"use strict";function n(t,e,n,i,r){var o,s,a,l,c,u,h;for(this.src=t,this.parser=e,this.options=n,this.env=i,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.parentType="root",this.ddIndent=-1,this.level=0,this.result="",s=this.src,u=0,h=!1,a=l=u=0,c=s.length;c>l;l++){if(o=s.charCodeAt(l),!h){if(32===o){u++;continue}h=!0}(10===o||l===c-1)&&(10!==o&&l++,this.bMarks.push(a),this.eMarks.push(l),this.tShift.push(u),h=!1,u=0,a=l+1)}this.bMarks.push(s.length),this.eMarks.push(s.length),this.tShift.push(0),this.lineMax=this.bMarks.length-1}n.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]},n.prototype.skipEmptyLines=function(t){for(var e=this.lineMax;e>t&&!(this.bMarks[t]+this.tShift[t]<this.eMarks[t]);t++);return t},n.prototype.skipSpaces=function(t){for(var e=this.src.length;e>t&&32===this.src.charCodeAt(t);t++);return t},n.prototype.skipChars=function(t,e){for(var n=this.src.length;n>t&&this.src.charCodeAt(t)===e;t++);return t},n.prototype.skipCharsBack=function(t,e,n){if(n>=t)return t;for(;t>n;)if(e!==this.src.charCodeAt(--t))return t+1;return t},n.prototype.getLines=function(t,e,n,i){var r,o,s,a,l,c=t;if(t>=e)return"";if(c+1===e)return o=this.bMarks[c]+Math.min(this.tShift[c],n),s=i?this.bMarks[e]:this.eMarks[e-1],this.src.slice(o,s);for(a=new Array(e-t),r=0;e>c;c++,r++)l=this.tShift[c],l>n&&(l=n),0>l&&(l=0),o=this.bMarks[c]+l,s=e>c+1||i?this.eMarks[c]+1:this.eMarks[c],a[r]=this.src.slice(o,s);return a.join("")},e.exports=n},{}],32:[function(t,e){"use strict";function n(t,e){var n=t.bMarks[e]+t.blkIndent,i=t.eMarks[e];return t.src.substr(n,i-n)}e.exports=function(t,e,i,r){var o,s,a,l,c,u,h,p,d,f;if(e+2>i)return!1;if(c=e+1,t.tShift[c]<t.blkIndent)return!1;if(a=t.bMarks[c]+t.tShift[c],a>=t.eMarks[c])return!1;if(o=t.src.charCodeAt(a),124!==o&&45!==o&&58!==o)return!1;if(s=n(t,e+1),!/^[-:| ]+$/.test(s))return!1;if(u=s.split("|"),2>=u)return!1;for(h=[],l=0;l<u.length;l++){if(p=u[l].trim(),!p){if(0===l||l===u.length-1)continue;return!1}if(!/^:?-+:?$/.test(p))return!1;
77h.push(58===p.charCodeAt(p.length-1)?58===p.charCodeAt(0)?"center":"right":58===p.charCodeAt(0)?"left":"")}if(s=n(t,e).trim(),-1===s.indexOf("|"))return!1;if(u=s.replace(/^\||\|$/g,"").split("|"),h.length!==u.length)return!1;if(r)return!0;for(t.tokens.push({type:"table_open",lines:d=[e,0],level:t.level++}),t.tokens.push({type:"thead_open",lines:[e,e+1],level:t.level++}),t.tokens.push({type:"tr_open",lines:[e,e+1],level:t.level++}),l=0;l<u.length;l++)t.tokens.push({type:"th_open",align:h[l],lines:[e,e+1],level:t.level++}),t.tokens.push({type:"inline",content:u[l].trim(),lines:[e,e+1],level:t.level,children:[]}),t.tokens.push({type:"th_close",level:--t.level});for(t.tokens.push({type:"tr_close",level:--t.level}),t.tokens.push({type:"thead_close",level:--t.level}),t.tokens.push({type:"tbody_open",lines:f=[e+2,0],level:t.level++}),c=e+2;i>c&&!(t.tShift[c]<t.blkIndent)&&(s=n(t,c).trim(),-1!==s.indexOf("|"));c++){for(u=s.replace(/^\||\|$/g,"").split("|"),t.tokens.push({type:"tr_open",level:t.level++}),l=0;l<u.length;l++)t.tokens.push({type:"td_open",align:h[l],level:t.level++}),t.tokens.push({type:"inline",content:u[l].replace(/^\|? *| *\|?$/g,""),level:t.level,children:[]}),t.tokens.push({type:"td_close",level:--t.level});t.tokens.push({type:"tr_close",level:--t.level})}return t.tokens.push({type:"tbody_close",level:--t.level}),t.tokens.push({type:"table_close",level:--t.level}),d[1]=f[1]=c,t.line=c,!0}},{}],33:[function(t,e){"use strict";function n(t,e,n,o){var s,a,l,c,u,h;if(42!==t.charCodeAt(0))return-1;if(91!==t.charCodeAt(1))return-1;if(-1===t.indexOf("]:"))return-1;if(s=new i(t,e,n,o,[]),a=r(s,1),0>a||58!==t.charCodeAt(a+1))return-1;for(c=s.posMax,l=a+2;c>l&&10!==s.src.charCodeAt(l);l++);return u=t.slice(2,a),h=t.slice(a+2,l).trim(),0===h.length?-1:(o.abbreviations||(o.abbreviations={}),"undefined"==typeof o.abbreviations[":"+u]&&(o.abbreviations[":"+u]=h),l)}var i=t("../rules_inline/state_inline"),r=t("../helpers/parse_link_label");e.exports=function(t){var e,i,r,o,s=t.tokens;if(!t.inlineMode)for(e=1,i=s.length-1;i>e;e++)if("paragraph_open"===s[e-1].type&&"inline"===s[e].type&&"paragraph_close"===s[e+1].type){for(r=s[e].content;r.length&&(o=n(r,t.inline,t.options,t.env),!(0>o));)r=r.slice(o).trim();s[e].content=r,r.length||(s[e-1].tight=!0,s[e+1].tight=!0)}}},{"../helpers/parse_link_label":12,"../rules_inline/state_inline":56}],34:[function(t,e){"use strict";function n(t){return t.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1")}var i=" \n()[]'\".,!?-";e.exports=function(t){var e,r,o,s,a,l,c,u,h,p,d,f,m=t.tokens;if(t.env.abbreviations)for(t.env.abbrRegExp||(f="(^|["+i.split("").map(n).join("")+"])("+Object.keys(t.env.abbreviations).map(function(t){return t.substr(1)}).sort(function(t,e){return e.length-t.length}).map(n).join("|")+")($|["+i.split("").map(n).join("")+"])",t.env.abbrRegExp=new RegExp(f,"g")),p=t.env.abbrRegExp,r=0,o=m.length;o>r;r++)if("inline"===m[r].type)for(s=m[r].children,e=s.length-1;e>=0;e--)if(a=s[e],"text"===a.type){for(u=0,l=a.content,p.lastIndex=0,h=a.level,c=[];d=p.exec(l);)p.lastIndex>u&&c.push({type:"text",content:l.slice(u,d.index+d[1].length),level:h}),c.push({type:"abbr_open",title:t.env.abbreviations[":"+d[2]],level:h++}),c.push({type:"text",content:d[2],level:h}),c.push({type:"abbr_close",level:--h}),u=p.lastIndex-d[3].length;c.length&&(u<l.length&&c.push({type:"text",content:l.slice(u),level:h}),m[r].children=s=[].concat(s.slice(0,e),c,s.slice(e+1)))}}},{}],35:[function(t,e){"use strict";e.exports=function(t){t.inlineMode?t.tokens.push({type:"inline",content:t.src.replace(/\n/g," ").trim(),level:0,lines:[0,1],children:[]}):t.block.parse(t.src,t.options,t.env,t.tokens)}},{}],36:[function(t,e){"use strict";e.exports=function(t){var e,n,i,r,o,s,a,l,c,u=0,h=!1,p={};if(t.env.footnotes&&(t.tokens=t.tokens.filter(function(t){return"footnote_reference_open"===t.type?(h=!0,l=[],c=t.label,!1):"footnote_reference_close"===t.type?(h=!1,p[":"+c]=l,!1):(h&&l.push(t),!h)}),t.env.footnotes.list)){for(s=t.env.footnotes.list,t.tokens.push({type:"footnote_block_open",level:u++}),e=0,n=s.length;n>e;e++){for(t.tokens.push({type:"footnote_open",id:e,level:u++}),s[e].tokens?(a=[],a.push({type:"paragraph_open",tight:!1,level:u++}),a.push({type:"inline",content:"",level:u,children:s[e].tokens}),a.push({type:"paragraph_close",tight:!1,level:--u})):s[e].label&&(a=p[":"+s[e].label]),t.tokens=t.tokens.concat(a),o="paragraph_close"===t.tokens[t.tokens.length-1].type?t.tokens.pop():null,r=s[e].count>0?s[e].count:1,i=0;r>i;i++)t.tokens.push({type:"footnote_anchor",id:e,subId:i,level:u});o&&t.tokens.push(o),t.tokens.push({type:"footnote_close",level:--u})}t.tokens.push({type:"footnote_block_close",level:--u})}}},{}],37:[function(t,e){"use strict";e.exports=function(t){var e,n,i,r=t.tokens;for(n=0,i=r.length;i>n;n++)e=r[n],"inline"===e.type&&t.inline.parse(e.content,t.options,t.env,e.children)}},{}],38:[function(t,e){"use strict";function n(t){return/^<a[>\s]/i.test(t)}function i(t){return/^<\/a\s*>/i.test(t)}function r(){var t=[],e=new o({stripPrefix:!1,url:!0,email:!0,twitter:!1,replaceFn:function(e,n){switch(n.getType()){case"url":t.push({text:n.matchedText,url:n.getUrl()});break;case"email":t.push({text:n.matchedText,url:"mailto:"+n.getEmail().replace(/^mailto:/i,"")})}return!1}});return{links:t,autolinker:e}}var o=t("autolinker"),s=/www|@|\:\/\//;e.exports=function(t){var e,o,a,l,c,u,h,p,d,f,m,g,v,y=t.tokens,b=null;if(t.options.linkify)for(o=0,a=y.length;a>o;o++)if("inline"===y[o].type)for(l=y[o].children,m=0,e=l.length-1;e>=0;e--)if(c=l[e],"link_close"!==c.type){if("htmltag"===c.type&&(n(c.content)&&m>0&&m--,i(c.content)&&m++),!(m>0)&&"text"===c.type&&s.test(c.content)){if(b||(b=r(),g=b.links,v=b.autolinker),u=c.content,g.length=0,v.link(u),!g.length)continue; 78for(h=[],f=c.level,p=0;p<g.length;p++)t.inline.validateLink(g[p].url)&&(d=u.indexOf(g[p].text),d&&(f=f,h.push({type:"text",content:u.slice(0,d),level:f})),h.push({type:"link_open",href:g[p].url,title:"",level:f++}),h.push({type:"text",content:g[p].text,level:f}),h.push({type:"link_close",level:--f}),u=u.slice(d+g[p].text.length));u.length&&h.push({type:"text",content:u,level:f}),y[o].children=l=[].concat(l.slice(0,e),h,l.slice(e+1))}}else for(e--;l[e].level!==c.level&&"link_open"!==l[e].type;)e--}},{autolinker:60}],39:[function(t,e){"use strict";function n(t,e,n,l){var c,u,h,p,d,f,m,g,v;if(91!==t.charCodeAt(0))return-1;if(-1===t.indexOf("]:"))return-1;if(c=new i(t,e,n,l,[]),u=r(c,0),0>u||58!==t.charCodeAt(u+1))return-1;for(p=c.posMax,h=u+2;p>
78h&&(d=c.src.charCodeAt(h),32===d||10===d);h++);if(!o(c,h))return-1;for(m=c.linkContent,h=c.pos,f=h,h+=1;p>h&&(d=c.src.charCodeAt(h),32===d||10===d);h++);for(p>h&&f!==h&&s(c,h)?(g=c.linkContent,h=c.pos):(g="",h=f);p>h&&32===c.src.charCodeAt(h);)h++;return p>h&&10!==c.src.charCodeAt(h)?-1:(v=a(t.slice(1,u)),"undefined"==typeof l.references[v]&&(l.references[v]={title:g,href:m}),h)}var i=t("../rules_inline/state_inline"),r=t("../helpers/parse_link_label"),o=t("../helpers/parse_link_destination"),s=t("../helpers/parse_link_title"),a=t("../helpers/normalize_reference");e.exports=function(t){var e,i,r,o,s=t.tokens;if(t.env.references=t.env.references||{},!t.inlineMode)for(e=1,i=s.length-1;i>e;e++)if("inline"===s[e].type&&"paragraph_open"===s[e-1].type&&"paragraph_close"===s[e+1].type){for(r=s[e].content;r.length&&(o=n(r,t.inline,t.options,t.env),!(0>o));)r=r.slice(o).trim();s[e].content=r,r.length||(s[e-1].tight=!0,s[e+1].tight=!0)}}},{"../helpers/normalize_reference":10,"../helpers/parse_link_destination":11,"../helpers/parse_link_label":12,"../helpers/parse_link_title":13,"../rules_inline/state_inline":56}],40:[function(t,e){"use strict";function n(t){return t.indexOf("(")<0?t:t.replace(r,function(t,e){return o[e.toLowerCase()]})}var i=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,r=/\((c|tm|r|p)\)/gi,o={c:"©",r:"®",p:"§",tm:"â¢"};e.exports=function(t){var e,r,o,s,a;if(t.options.typographer)for(a=t.tokens.length-1;a>=0;a--)if("inline"===t.tokens[a].type)for(s=t.tokens[a].children,e=s.length-1;e>=0;e--)r=s[e],"text"===r.type&&(o=r.content,o=n(o),i.test(o)&&(o=o.replace(/\+-/g,"±").replace(/\.{2,}/g,"â¦").replace(/([?!])â¦/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---([^-]|$)/gm,"$1â$2").replace(/(^|\s)--(\s|$)/gm,"$1â$2").replace(/(^|[^-\s])--([^-\s]|$)/gm,"$1â$2")),r.content=o)}},{}],41:[function(t,e){"use strict";function n(t,e){return!(0>e||e>=t.length)&&!s.test(t[e])}function i(t,e,n){return t.substr(0,e)+n+t.substr(e+1)}var r=/['"]/,o=/['"]/g,s=/[-\s()\[\]]/,a="â";e.exports=function(t){var e,s,l,c,u,h,p,d,f,m,g,v,y,b,w,_,x;if(t.options.typographer)for(x=[],w=t.tokens.length-1;w>=0;w--)if("inline"===t.tokens[w].type)for(_=t.tokens[w].children,x.length=0,e=0;e<_.length;e++)if(s=_[e],"text"===s.type&&!r.test(s.text)){for(p=_[e].level,y=x.length-1;y>=0&&!(x[y].level<=p);y--);x.length=y+1,l=s.content,u=0,h=l.length;t:for(;h>u&&(o.lastIndex=u,c=o.exec(l));)if(d=!n(l,c.index-1),u=c.index+1,b="'"===c[0],f=!n(l,u),f||d){if(g=!f,v=!d)for(y=x.length-1;y>=0&&(m=x[y],!(x[y].level<p));y--)if(m.single===b&&x[y].level===p){m=x[y],b?(_[m.token].content=i(_[m.token].content,m.pos,t.options.quotes[2]),s.content=i(s.content,c.index,t.options.quotes[3])):(_[m.token].content=i(_[m.token].content,m.pos,t.options.quotes[0]),s.content=i(s.content,c.index,t.options.quotes[1])),x.length=y;continue t}g?x.push({token:e,pos:c.index,single:b,level:p}):v&&b&&(s.content=i(s.content,c.index,a))}else b&&(s.content=i(s.content,c.index,a))}}},{}],42:[function(t,e){"use strict";var n=t("../common/url_schemas"),i=t("../helpers/normalize_link"),r=/^<([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)>/,o=/^<([a-zA-Z.\-]{1,25}):([^<>\x00-\x20]*)>/;e.exports=function(t,e){var s,a,l,c,u,h=t.pos;return 60===t.src.charCodeAt(h)&&(s=t.src.slice(h),!(s.indexOf(">")<0)&&((a=s.match(o))?!(n.indexOf(a[1].toLowerCase())<0)&&(c=a[0].slice(1,-1),u=i(c),!!t.parser.validateLink(c)&&(e||(t.push({type:"link_open",href:u,level:t.level}),t.push({type:"text",content:c,level:t.level+1}),t.push({type:"link_close",level:t.level})),t.pos+=a[0].length,!0)):(l=s.match(r),!!l&&(c=l[0].slice(1,-1),u=i("mailto:"+c),!!t.parser.validateLink(u)&&(e||(t.push({type:"link_open",href:u,level:t.level}),t.push({type:"text",content:c,level:t.level+1}),t.push({type:"link_close",level:t.level})),t.pos+=l[0].length,!0)))))}},{"../common/url_schemas":4,"../helpers/normalize_link":9}],43:[function(t,e){"use strict";e.exports=function(t,e){var n,i,r,o,s,a=t.pos,l=t.src.charCodeAt(a);if(96!==l)return!1;for(n=a,a++,i=t.posMax;i>
78a&&96===t.src.charCodeAt(a);)a++;for(r=t.src.slice(n,a),o=s=a;-1!==(o=t.src.indexOf("`",s));){for(s=o+1;i>s&&96===t.src.charCodeAt(s);)s++;if(s-o===r.length)return e||t.push({type:"code",content:t.src.slice(a,o).replace(/[ \n]+/g," ").trim(),block:!1,level:t.level}),t.pos=s,!0}return e||(t.pending+=r),t.pos+=r.length,!0}},{}],44:[function(t,e){"use strict";e.exports=function(t,e){var n,i,r,o,s,a=t.posMax,l=t.pos;if(126!==t.src.charCodeAt(l))return!1;if(e)return!1;if(l+4>=a)return!1;if(126!==t.src.charCodeAt(l+1))return!1;if(t.level>=t.options.maxNesting)return!1;if(o=l>0?t.src.charCodeAt(l-1):-1,s=t.src.charCodeAt(l+2),126===o)return!1;if(126===s)return!1;if(32===s||10===s)return!1;for(i=l+2;a>i&&126===t.src.charCodeAt(i);)i++;if(i>l+3)return t.pos+=i-l,e||(t.pending+=t.src.slice(l,i)),!0;for(t.pos=l+2,r=1;t.pos+1<a;){if(126===t.src.charCodeAt(t.pos)&&126===t.src.charCodeAt(t.pos+1)&&(o=t.src.charCodeAt(t.pos-1),s=t.pos+2<a?t.src.charCodeAt(t.pos+2):-1,126!==s&&126!==o&&(32!==o&&10!==o?r--:32!==s&&10!==s&&r++,0>=r))){n=!0;break}t.parser.skipToken(t)}return n?(t.posMax=t.pos,t.pos=l+2,e||(t.push({type:"del_open",level:t.level++}),t.parser.tokenize(t),t.push({type:"del_close",level:--t.level})),t.pos=t.posMax+2,t.posMax=a,!0):(t.pos=l,!1)}},{}],45:[function(t,e){"use strict";function n(t){return t>=48&&57>=t||t>=65&&90>=t||t>=97&&122>=t}function i(t,e){var i,r,o,s=e,a=!0,l=!0,c=t.posMax,u=t.src.charCodeAt(e);for(i=e>0?t.src.charCodeAt(e-1):-1;c>s&&t.src.charCodeAt(s)===u;)s++;return s>=c&&(a=!1),o=s-e,o>=4?a=l=!1:(r=c>s?t.src.charCodeAt(s):-1,(32===r||10===r)&&(a=!1),(32===i||10===i)&&(l=!1),95===u&&(n(i)&&(a=!1),n(r)&&(l=!1))),{can_open:a,can_close:l,delims:o}}e.exports=function(t,e){var n,r,o,s,a,l,c,u=t.posMax,h=t.pos,p=t.src.charCodeAt(h);if(95!==p&&42!==p)return!1;if(e)return!1;if(c=i(t,h),n=c.delims,!c.can_open)return t.pos+=n,e||(t.pending+=t.src.slice(h,t.pos)),!0;if(t.level>=t.options.maxNesting)return!1;for(t.pos=h+n,l=[n];t.pos<u;)if(t.src.charCodeAt(t.pos)!==p)t.parser.skipToken(t);else{if(c=i(t,t.pos),r=c.delims,c.can_close){for(s=l.pop(),a=r;s!==a;){if(s>a){l.push(s-a);break}if(a-=s,0===l.length)break;t.pos+=s,s=l.pop()}if(0===l.length){n=s,o=!0;break}t.pos+=r;continue}c.can_open&&l.push(r),t.pos+=r}return o?(t.posMax=t.pos,t.pos=h+n,e||((2===n||3===n)&&t.push({type:"strong_open",level:t.level++}),(1===n||3===n)&&t.push({type:"em_open",level:t.level++}),t.parser.tokenize(t),(1===n||3===n)&&t.push({type:"em_close",level:--t.level}),(2===n||3===n)&&t.push({type:"strong_close",level:--t.level})),t.pos=t.posMax+n,t.posMax=u,!0):(t.pos=h,!1)}},{}],46:[function(t,e){"use strict";var n=t("../common/entities"),i=t("../common/utils").has,r=t("../common/utils").isValidEntityCode,o=t("../common/utils").fromCodePoint,s=/^&#((?:x[a-f0-9]{1,8}|[0-9]{1,8}));/i,a=/^&([a-z][a-z0-9]{1,31});/i;e.exports=function(t,e){var l,c,u,h=t.pos,p=t.posMax;if(38!==t.src.charCodeAt(h))return!1;if(p>h+1)if(l=t.src.charCodeAt(h+1),35===l){if(u=t.src.slice(h).match(s))return e||(c="x"===u[1][0].toLowerCase()?parseInt(u[1].slice(1),16):parseInt(u[1],10),t.pending+=o(r(c)?c:65533)),t.pos+=u[0].length,!0}else if(u=t.src.slice(h).match(a),u&&i(n,u[1]))return e||(t.pending+=n[u[1]]),t.pos+=u[0].length,!0;return e||(t.pending+="&"),t.pos++,!0}},{"../common/entities":1,"../common/utils":5}],47:[function(t,e){"use strict";for(var n=[],i=0;256>i;i++)n.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(t){n[t.charCodeAt(0)]=1}),e.exports=function(t,e){var i,r=t.pos,o=t.posMax;if(92!==t.src.charCodeAt(r))return!1;if(r++,o>r){if(i=t.src.charCodeAt(r),256>i&&0!==n[i])return e||(t.pending+=t.src[r]),t.pos+=2,!0;if(10===i){for(e||t.push({type:"hardbreak",level:t.level}),r++;o>r&&32===t.src.charCodeAt(r);)r++;return t.pos=r,!0}}return e||(t.pending+="\\"),t.pos++,!0}},{}],48:[function(t,e){"use strict";var n=t("../helpers/parse_link_label");e.exports=function(t,e){var i,r,o,s,a=t.posMax,l=t.pos;return!(l+2>=a)&&(94===t.src.charCodeAt(l)&&(91===t.src.charCodeAt(l+1)&&(!(t.level>=t.options.maxNesting)&&(i=l+2,r=n(t,l+1),!(0>r)&&(e||(t.env.footnotes||(t.env.footnotes={}),t.env.footnotes.list||(t.env.footnotes.list=[]),o=t.env.footnotes.list.length,t.pos=i,t.posMax=r,t.push({type:"footnote_ref",id:o,level:t.level}),t.linkLevel++,s=t.tokens.length,t.parser.tokenize(t),t.env.footnotes.list[o]={tokens:t.tokens.splice(s)},t.linkLevel--),t.pos=r+1,t.posMax=a,!0)))))}},{"../helpers/parse_link_label":12}],49:[function(t,e){"use strict";e.exports=function(t,e){var n,i,r,o,s=t.posMax,a=t.pos;if(a+3>s)return!1;if(!t.env.footnotes||!t.env.footnotes.refs)return!1;
78if(91!==t.src.charCodeAt(a))return!1;if(94!==t.src.charCodeAt(a+1))return!1;if(t.level>=t.options.maxNesting)return!1;for(i=a+2;s>i;i++){if(32===t.src.charCodeAt(i))return!1;if(10===t.src.charCodeAt(i))return!1;if(93===t.src.charCodeAt(i))break}return i!==a+2&&(!(i>=s)&&(i++,n=t.src.slice(a+2,i-1),"undefined"!=typeof t.env.footnotes.refs[":"+n]&&(e||(t.env.footnotes.list||(t.env.footnotes.list=[]),t.env.footnotes.refs[":"+n]<0?(r=t.env.footnotes.list.length,t.env.footnotes.list[r]={label:n,count:0},t.env.footnotes.refs[":"+n]=r):r=t.env.footnotes.refs[":"+n],o=t.env.footnotes.list[r].count,t.env.footnotes.list[r].count++,t.push({type:"footnote_ref",id:r,subId:o,level:t.level})),t.pos=i,t.posMax=s,!0)))}},{}],50:[function(t,e){"use strict";function n(t){var e=32|t;return e>=97&&122>=e}var i=t("../common/html_re").HTML_TAG_RE;e.exports=function(t,e){var r,o,s,a=t.pos;return!!t.options.html&&(s=t.posMax,!(60!==t.src.charCodeAt(a)||a+2>=s)&&(r=t.src.charCodeAt(a+1),!(33!==r&&63!==r&&47!==r&&!n(r)||!(o=t.src.slice(a).match(i)))&&(e||t.push({type:"htmltag",content:t.src.slice(a,a+o[0].length),level:t.level}),t.pos+=o[0].length,!0)))}},{"../common/html_re":3}],51:[function(t,e){"use strict";e.exports=function(t,e){var n,i,r,o,s,a=t.posMax,l=t.pos;if(43!==t.src.charCodeAt(l))return!1;if(e)return!1;if(l+4>=a)return!1;if(43!==t.src.charCodeAt(l+1))return!1;if(t.level>=t.options.maxNesting)return!1;if(o=l>0?t.src.charCodeAt(l-1):-1,s=t.src.charCodeAt(l+2),43===o)return!1;if(43===s)return!1;if(32===s||10===s)return!1;for(i=l+2;a>i&&43===t.src.charCodeAt(i);)i++;if(i!==l+2)return t.pos+=i-l,e||(t.pending+=t.src.slice(l,i)),!0;for(t.pos=l+2,r=1;t.pos+1<a;){if(43===t.src.charCodeAt(t.pos)&&43===t.src.charCodeAt(t.pos+1)&&(o=t.src.charCodeAt(t.pos-1),s=t.pos+2<a?t.src.charCodeAt(t.pos+2):-1,43!==s&&43!==o&&(32!==o&&10!==o?r--:32!==s&&10!==s&&r++,0>=r))){n=!0;break}t.parser.skipToken(t)}return n?(t.posMax=t.pos,t.pos=l+2,e||(t.push({type:"ins_open",level:t.level++}),t.parser.tokenize(t),t.push({type:"ins_close",level:--t.level})),t.pos=t.posMax+2,t.posMax=a,!0):(t.pos=l,!1)}},{}],52:[function(t,e){"use strict";var n=t("../helpers/parse_link_label"),i=t("../helpers/parse_link_destination"),r=t("../helpers/parse_link_title"),o=t("../helpers/normalize_reference");e.exports=function(t,e){var s,a,l,c,u,h,p,d,f=!1,m=t.pos,g=t.posMax,v=t.pos,y=t.src.charCodeAt(v);if(33===y&&(f=!0,y=t.src.charCodeAt(++v)),91!==y)return!1;if(t.level>=t.options.maxNesting)return!1;if(s=v+1,a=n(t,v),0>a)return!1;if(h=a+1,g>h&&40===t.src.charCodeAt(h)){for(h++;g>h&&(d=t.src.charCodeAt(h),32===d||10===d);h++);if(h>=g)return!1;for(v=h,i(t,h)?(c=t.linkContent,h=t.pos):c="",v=h;g>h&&(d=t.src.charCodeAt(h),32===d||10===d);h++);if(g>h&&v!==h&&r(t,h))for(u=t.linkContent,h=t.pos;g>h&&(d=t.src.charCodeAt(h),32===d||10===d);h++);else u="";if(h>=g||41!==t.src.charCodeAt(h))return t.pos=m,!1;h++}else{if(t.linkLevel>0)return!1;for(;g>h&&(d=t.src.charCodeAt(h),32===d||10===d);h++);if(g>h&&91===t.src.charCodeAt(h)&&(v=h+1,h=n(t,h),h>=0?l=t.src.slice(v,h++):h=v-1),l||(l=t.src.slice(s,a)),p=t.env.references[o(l)],!p)return t.pos=m,!1;c=p.href,u=p.title}return e||(t.pos=s,t.posMax=a,f?t.push({type:"image",src:c,title:u,alt:t.src.substr(s,a-s),level:t.level}):(t.push({type:"link_open",href:c,title:u,level:t.level++}),t.linkLevel++,t.parser.tokenize(t),t.linkLevel--,t.push({type:"link_close",level:--t.level}))),t.pos=h,t.posMax=g,!0}},{"../helpers/normalize_reference":10,"../helpers/parse_link_destination":11,"../helpers/parse_link_label":12,"../helpers/parse_link_title":13}],53:[function(t,e){"use strict";e.exports=function(t,e){var n,i,r,o,s,a=t.posMax,l=t.pos;if(61!==t.src.charCodeAt(l))return!1;if(e)return!1;if(l+4>=a)return!1;if(61!==t.src.charCodeAt(l+1))return!1;if(t.level>=t.options.maxNesting)return!1;if(o=l>0?t.src.charCodeAt(l-1):-1,s=t.src.charCodeAt(l+2),61===o)return!1;if(61===s)return!1;if(32===s||10===s)return!1;for(i=l+2;a>i&&61===t.src.charCodeAt(i);)i++;if(i!==l+2)return t.pos+=i-l,e||(t.pending+=t.src.slice(l,i)),!0;for(t.pos=l+2,r=1;t.pos+1<a;
78){if(61===t.src.charCodeAt(t.pos)&&61===t.src.charCodeAt(t.pos+1)&&(o=t.src.charCodeAt(t.pos-1),s=t.pos+2<a?t.src.charCodeAt(t.pos+2):-1,61!==s&&61!==o&&(32!==o&&10!==o?r--:32!==s&&10!==s&&r++,0>=r))){n=!0;break}t.parser.skipToken(t)}return n?(t.posMax=t.pos,t.pos=l+2,e||(t.push({type:"mark_open",level:t.level++}),t.parser.tokenize(t),t.push({type:"mark_close",level:--t.level})),t.pos=t.posMax+2,t.posMax=a,!0):(t.pos=l,!1)}},{}],54:[function(t,e){"use strict";e.exports=function(t,e){var n,i,r=t.pos;if(10!==t.src.charCodeAt(r))return!1;for(n=t.pending.length-1,i=t.posMax,e||(n>=0&&32===t.pending.charCodeAt(n)?n>=1&&32===t.pending.charCodeAt(n-1)?(t.pending=t.pending.replace(/ +$/,""),t.push({type:"hardbreak",level:t.level})):(t.pending=t.pending.slice(0,-1),t.push({type:"softbreak",level:t.level})):t.push({type:"softbreak",level:t.level})),r++;i>r&&32===t.src.charCodeAt(r);)r++;return t.pos=r,!0}},{}],55:[function(t,e){"use strict";var n=t("../helpers/parse_link_label"),i=/^[a-z]{3,16}/,r=/^[^)]{0,255}/;e.exports=function(t,e){var o,s,a,l,c,u=t.pos,h=t.pos,p=t.posMax;return 64===t.src.charCodeAt(u++)&&(!!(c=t.src.slice(u).match(i))&&(a=c[0],u+=c[0].length,91===t.src.charCodeAt(u)&&(!(t.level>=t.options.maxNesting)&&(o=u+1,s=n(t,u),!(0>s)&&(u=s+1,!(u>=p||o===s)&&(40===t.src.charCodeAt(u++)&&(!!(c=t.src.slice(u).match(r))&&(l=c[0],u+=c[0].length,u>=p||41!==t.src.charCodeAt(u++)?(t.pos=h,!1):(e||(t.pos=o,t.posMax=s,t.pu
78sh({type:"rwref_open",rwrefType:a,rwrefId:l,level:t.level++}),t.linkLevel++,t.parser.tokenize(t),t.linkLevel--,t.push({type:"rwref_close",level:--t.level})),t.pos=u,t.posMax=p,!0)))))))))}},{"../helpers/parse_link_label":12}],56:[function(t,e){"use strict";function n(t,e,n,i,r){this.src=t,this.env=i,this.options=n,this.parser=e,this.tokens=r,this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache=[],this.isInLabel=!1,this.linkLevel=0,this.linkContent="",this.labelUnmatchedScopes=0}n.prototype.pushPending=function(){this.tokens.push({type:"text",content:this.pending,level:this.pendingLevel}),this.pending=""},n.prototype.push=function(t){this.pending&&this.pushPending(),this.tokens.push(t),this.pendingLevel=this.level},n.prototype.cacheSet=function(t,e){for(var n=this.cache.length;t>=n;n++)this.cache.push(0);this.cache[t]=e},n.prototype.cacheGet=function(t){return t<this.cache.length?this.cache[t]:0},e.exports=n},{}],57:[function(t,e){"use strict";var n=/\\([ \\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;e.exports=function(t,e){var i,r,o=t.posMax,s=t.pos;if(126!==t.src.charCodeAt(s))return!1;if(e)return!1;if(s+2>=o)return!1;if(t.level>=t.options.maxNesting)return!1;for(t.pos=s+1;t.pos<o;){if(126===t.src.charCodeAt(t.pos)){i=!0;break}t.parser.skipToken(t)}return i&&s+1!==t.pos?(r=t.src.slice(s+1,t.pos),r.match(/(^|[^\\])(\\\\)*\s/)?(t.pos=s,!1):(t.posMax=t.pos,t.pos=s+1,e||t.push({type:"sub",level:t.level,content:r.replace(n,"$1")}),t.pos=t.posMax+1,t.posMax=o,!0)):(t.pos=s,!1)}},{}],58:[function(t,e){"use strict";var n=/\\([ \\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;e.exports=function(t,e){var i,r,o=t.posMax,s=t.pos;if(94!==t.src.charCodeAt(s))return!1;if(e)return!1;if(s+2>=o)return!1;if(t.level>=t.options.maxNesting)return!1;for(t.pos=s+1;t.pos<o;){if(94===t.src.charCodeAt(t.pos)){i=!0;break}t.parser.skipToken(t)}return i&&s+1!==t.pos?(r=t.src.slice(s+1,t.pos),r.match(/(^|[^\\])(\\\\)*\s/)?(t.pos=s,!1):(t.posMax=t.pos,t.pos=s+1,e||t.push({type:"sup",level:t.level,content:r.replace(n,"$1")}),t.pos=t.posMax+1,t.posMax=o,!0)):(t.pos=s,!1)}},{}],59:[function(t,e){"use strict";function n(t){switch(t){case 10:case 92:case 96:case 42:case 95:case 94:case 91:case 93:case 33:case 38:case 60:case 62:case 123:case 125:case 36:case 37:case 64:case 126:case 43:case 61:case 58:return!0;default:return!1}}e.exports=function(t,e){for(var i=t.pos;i<t.posMax&&!n(t.src.charCodeAt(i));)i++;
78return i!==t.pos&&(e||(t.pending+=t.src.slice(t.pos,i)),t.pos=i,!0)}},{}],60:[function(e,n,i){!function(e,r){"function"==typeof t&&t.amd?t([],function(){return e.returnExportsGlobal=r()}):"object"==typeof i?n.exports=r():e.Autolinker=r()}(this,function(){var t=function(e){t.Util.assign(this,e),this.matchValidator=new t.MatchValidator};return t.prototype={constructor:t,urls:!0,email:!0,twitter:!0,newWindow:!0,stripPrefix:!0,className:"",htmlCharacterEntitiesRegex:/( | |<|<|>|>)/gi,matcherRegex:function(){var t=/(^|[^\w])@(\w{1,15})/,e=/(?:[\-;:&=\+\$,\w\.]+@)/,n=/(?:[A-Za-z][-.+A-Za-z0-9]+:(?![A-Za-z][-.+A-Za-z0-9]+:\/\/)(?!\d+\/?)(?:\/\/)?)/,i=/(?:www\.)/,r=/[A-Za-z0-9\.\-]*[A-Za-z0-9\-]/,o=/\.(?:international|construction|contractors|enterprises|photography|productions|foundation|immobilien|industries|management|properties|technology|christmas|community|directory|education|equipment|institute|marketing|solutions|vacations|bargains|boutique|builders|catering|cleaning|clothing|computer|democrat|diamonds|graphics|holdings|lighting|partners|plumbing|supplies|training|ventures|academy|careers|company|cruises|domains|exposed|flights|florist|gallery|guitars|holiday|kitchen|neustar|okinawa|recipes|rentals|reviews|shiksha|singles|support|systems|agency|berlin|camera|center|coffee|condos|dating|estate|events|expert|futbol|kaufen|luxury|maison|monash|museum|nagoya|photos|repair|report|social|supply|tattoo|tienda|travel|viajes|villas|vision|voting|voyage|actor|build|cards|cheap|codes|dance|email|glass|house|mango|ninja|parts|photo|shoes|solar|today|tokyo|tools|watch|works|aero|arpa|asia|best|bike|blue|buzz|camp|club|cool|coop|farm|fish|gift|guru|info|jobs|kiwi|kred|land|limo|link|menu|mobi|moda|name|pics|pink|post|qpon|rich|ruhr|sexy|tips|vote|voto|wang|wien|wiki|zone|bar|bid|biz|cab|cat|ceo|com|edu|gov|int|kim|mil|net|onl|org|pro|pub|red|tel|uno|wed|xxx|xyz|ac|ad|ae|af|ag|ai|al|am|an|ao|aq|ar|as|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|cr|cu|cv|cw|cx|cy|cz|de|dj|dk|dm|do|dz|ec|ee|eg|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gi|gl|gm|gn|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|in|io|iq|ir|is|it|je|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|my|mz|na|nc|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|ps|pt|pw|py|qa|re|ro|rs|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|st|su|sv|sx|sy|sz|tc|td|tf|tg|th|tj|tk|tl|tm|tn|to|tp|tr|tt|tv|tw|tz|ua|ug|uk|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|za|zm|zw)\b/,s=/[\-A-Za-z0-9+&@#\/%=~_()|'$*\[\]?!:,.;]*[\-A-Za-z0-9+&@#\/%=~_()|'$*\[\]]/;return new RegExp(["(",t.source,")","|","(",e.source,r.source,o.source,")","|","(","(?:","(",n.source,r.source,")","|","(?:","(.?//)?",i.source,r.source,")","|","(?:","(.?//)?",r.source,o.source,")",")","(?:"+s.source+")?",")"].join(""),"gi")}(),charBeforeProtocolRelMatchRegex:/^(.)?\/\//,link:function(e){var n=this,i=this.getHtmlParser(),r=this.htmlCharacterEntitiesRegex,o=0,s=[];return i.parse(e,{processHtmlNode:function(t,e,n){"a"===e&&(n?o=Math.max(o-1,0):o++),s.push(t)},processTextNode:function(e){if(0===o)for(var i=t.Util.splitAndCapture(e,r),a=0,l=i.length;l>a;a++){var c=i[a],u=n.processTextNode(c);s.push(u)}else s.push(e)}}),s.join("")},getHtmlParser:function(){var e=this.htmlParser;return e||(e=this.htmlParser=new t.HtmlParser),e},getTagBuilder:function(){var e=this.tagBuilder;return e||(e=this.tagBuilder=new t.AnchorTagBuilder({newWindow:this.newWindow,truncate:this.truncate,className:this.className})),e},processTextNode:function(t){var e=this;return t.replace(this.matcherRegex,function(t,n,i,r,o,s,a,l,c){var u=e.processCandidateMatch(t,n,i,r,o,s,a,l,c);if(u){var h=e.createMatchReturnVal(u.match,u.matchStr);return u.prefixStr+h+u.suffixStr}return t})},processCandidateMatch:function(e,n,i,r,o,s,a,l,c){var u,h=l||c,p="",d="";if(n&&!this.twitter||o&&!this.email||s&&!this.urls||!this.matchValidator.isValidMatch(s,a,h))return null;if(this.matchHasUnbalancedClosingParen(e)&&(e=e.substr(0,e.length-1),d=")"),o)u=new t.match.Email({matchedText:e,email:o});else if(n)i&&(p=i,e=e.slice(1)),u=new t.match.Twitter({matchedText:e,twitterHandle:r});else{if(h){var f=h.match(this.charBeforeProtocolRelMatchRegex)[1]||"";f&&(p=f,e=e.slice(1))}u=new t.match.Url({matchedText:e,url:e,protocolUrlMatch:!!a,protocolRelativeMatch:!!h,stripPrefix:this.stripPrefix})}return{prefixStr:p,suffixStr:d,matchStr:e,match:u}},matchHasUnbalancedClosingParen:function(t){var e=t.charAt(t.length-1);if(")"===e){var n=t.match(/\(/g),i=t.match(/\)/g),r=n&&n.length||0,o=i&&i.length||0;if(o>r)return!0}return!1},createMatchReturnVal:function(e,n){var i;if(this.replaceFn&&(i=this.replaceFn.call(this,this,e)),"string"==typeof i)return i;if(i===!1)return n;if(i instanceof t.HtmlTag)return i.toString();var r=this.getTagBuilder(),o=r.build(e);return o.toString()}},t.link=function(e,n){var i=new t(n);return i.link(e)},t.match={},t.Util={abstractMethod:function(){throw"abstract"},assign:function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t},extend:function(e,n){var i=e.prototype,r=function(){};r.prototype=i;var o;o=n.hasOwnProperty("constructor")?n.constructor:function(){i.constructor.apply(this,arguments)};var s=o.prototype=new r;return s.constructor=o,s.superclass=i,delete n.constructor,t.Util.assign(s,n),o},ellipsis:function(t,e,n){return t.length>e&&(n=null==n?"..":n,t=t.substring(0,e-n.length)+n),t},indexOf:function(t,e){if(Array.prototype.indexOf)return t.indexOf(e);for(var n=0,i=t.length;i>n;n++)if(t[n]===e)return n;return-1},splitAndCapture:function(t,e){if(!e.global)throw new Error("`splitRegex` must have the 'g' flag set");for(var n,i=[],r=0;n=e.exec(t);)i.push(t.substring(r,n.index)),i.push(n[0]),r=n.index+n[0].length;return i.push(t.substring(r)),i}},t.HtmlParser=t.Util.extend(Object,{htmlRegex:function(){var t=/[0-9a-zA-Z][0-9a-zA-Z:]*/,e=/[^\s\0"'>\/=\x01-\x1F\x7F]+/,n=/(?:".*?"|'.*?'|[^'"=<>`\s]+)/,i=e.source+"(?:\\s*=\\s*"+n.source+")?";return new RegExp(["(?:","<(!DOCTYPE)","(?:","\\s+","(?:",i,"|",n.source+")",")*",">",")","|","(?:","<(/)?","("+t.source+")","(?:","\\s+",i,")*","\\s*/?",">",")"].join(""),"gi")}(),parse:function(t,e){e=e||{};for(var n,i=e.processHtmlNode||function(){},r=e.processTextNode||function(){},o=this.htmlRegex,s=0;null!==(n=o.exec(t));){var a=n[0],l=n[1]||n[3],c=!!n[2],u=t.substring(s,n.index);u&&r(u),i(a,l.toLowerCase(),c),s=n.index+a.length}if(s<t.length){var h=t.substring(s);h&&r(h)}}}),t.HtmlTag=t.Util.extend(Object,{whitespaceRegex:/\s+/,constructor:function(e){t.Util.assign(this,e),this.innerHtml=this.innerHtml||this.innerHTML},setTagName:function(t){return this.tagName=t,this},getTagName:function(){return this.tagName||""},setAttr:function(t,e){var n=this.getAttrs();return n[t]=e,this},getAttr:function(t){return this.getAttrs()[t]},setAttrs:function(e){var n=this.getAttrs();return t.Util.assign(n,e),this},getAttrs:function(){return this.attrs||(this.attrs={})},setClass:function(t){return this.setAttr("class",t)},addClass:function(e){for(var n,i=this.getClass(),r=this.whitespaceRegex,o=t.Util.indexOf,s=i?i.split(r):[],a=e.split(r);n=a.shift();)-1===o(s,n)&&s.push(n);return this.getAttrs().class=s.join(" "),this},removeClass:function(e){for(var n,i=this.getClass(),r=this.whitespaceRegex,o=t.Util.indexOf,s=i?i.split(r):[],a=e.split(r);s.length&&(n=a.shift());){var l=o(s,n);-1!==l&&s.splice(l,1)}return this.getAttrs().class=s.join(" "),this},getClass:function(){return this.getAttrs().class||""},hasClass:function(t){return-1!==(" "+this.getClass()+" ").indexOf(" "+t+" ")},setInnerHtml:function(t){return this.innerHtml=t,this},getInnerHtml:function(){return this.innerHtml||""},toString:function(){var t=this.getTagName(),e=this.buildAttrsStr();return e=e?" "+e:"",["<",t,e,">",this.getInnerHtml(),"</",t,">"].join("")},buildAttrsStr:function(){if(!this.attrs)return"";var t=this.getAttrs(),e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n+'="'+t[n]+'"');return e.join(" ")}}),t.MatchValidator=t.Util.extend(Object,{invalidProtocolRelMatchRegex:/^[\w]\/\//,hasFullProtocolRegex:/^[A-Za-z][-.+A-Za-z0-9]+:\/\//,uriSchemeRegex:/^[A-Za-z][-.+A-Za-z0-9]+:/,hasWordCharAfterProtocolRegex:/:[^\s]*?[A-Za-z]/,isValidMatch:function(t,e,n){return!(e&&!this.isValidUriScheme(e)||this.urlMatchDoesNotHaveProtocolOrDot(t,e)||this.urlMatchDoesNotHaveAtLeastOneWordChar(t,e)||this.isInvalidProtocolRelativeMatch(n))},isValidUriScheme:function(t){var e=t.match(this.uriSchemeRegex)[0];return"javascript:"!==e&&"vbscript:"!==e},urlMatchDoesNotHaveProtocolOrDot:function(t,e){return!(!t||e&&this.hasFullProtocolRegex.test(e)||-1!==t.indexOf("."))},urlMatchDoesNotHaveAtLeastOneWordChar:function(t,e){return!(!t||!e)&&!this.hasWordCharAfterProtocolRegex.test(t)},isInvalidProtocolRelativeMatch:function(t){return!!t&&this.invalidProtocolRelMatchRegex.test(t)}}),t.AnchorTagBuilder=t.Util.extend(Object,{constructor:function(e){t.Util.assign(this,e)},build:function(e){var n=new t.HtmlTag({tagName:"a",attrs:this.createAttrs(e.getType(),e.getAnchorHref()),innerHtml:this.processAnchorText(e.getAnchorText())});return n},createAttrs:function(t,e){var n={href:e},i=this.createCssClass(t);return i&&(n.class=i),this.newWindow&&(n.target="_blank"),n},createCssClass:function(t){var e=this.className;return e?e+" "+e+"-"+t:""},processAnchorText:function(t){return t=this.doTruncate(t)},doTruncate:function(e){return t.Util.ellipsis(e,this.truncate||Number.POSITIVE_INFINITY)}}),t.match.Match=t.Util.extend(Object,{constructor:function(e){t.Util.assign(this,e)},getType:t.Util.abstractMethod,getMatchedText:function(){return this.matchedText},getAnchorHref:t.Util.abstractMethod,getAnchorText:t.Util.abstractMethod}),t.match.Email=t.Util.extend(t.match.Match,{getType:function(){return"email"},getEmail:function(){return this.email},getAnchorHref:function(){return"mailto:"+this.email},getAnchorText:function(){return this.email}}),t.match.Twitter=t.Util.extend(t.match.Match,{getType:function(){return"twitter"},getTwitterHandle:function(){return this.twitterHandle},getAnchorHref:function(){return"https://twitter.com/"+this.twitterHandle},getAnchorText:function(){return"@"+this.twitterHandle}}),t.match.Url=t.Util.extend(t.match.Match,{urlPrefixRegex:/^(https?:\/\/)?(www\.)?/i,protocolRelativeRegex:/^\/\//,protocolPrepended:!1,getType:function(){return"url"},getUrl:function(){var t=this.url;return this.protocolRelativeMatch||this.protocolUrlMatch||this.protocolPrepended||(t=this.url="http://"+t,this.protocolPrepended=!0),t},getAnchorHref:function(){var t=this.getUrl();return t.replace(/&/g,"&")},getAnchorText:function(){var t=this.getUrl();return this.protocolRelativeMatch&&(t=this.stripProtocolRelativePrefix(t)),this.stripPrefix&&(t=this.stripUrlPrefix(t)),t=this.removeTrailingSlash(t)},stripUrlPrefix:function(t){return t.replace(this.urlPrefixRegex,"")},stripProtocolRelativePrefix:function(t){return t.replace(this.protocolRelativeRegex,"")},removeTrailingSlash:function(t){return"/"===t.charAt(t.length-1)&&(t=t.slice(0,-1)),t}}),t})},{}],"/":[function(t,e){"use strict";e.exports=t("./lib/")},{"./lib/":14}]},{},[])("/")})},function(t,e,n){var i;(function(){var r=this,o=r._,s={},a=Array.prototype,l=Object.prototype,c=Function.prototype,u=a.push,h=a.slice,p=a.concat,d=l.toString,f=l.hasOwnProperty,m=a.forEac
78h,g=a.map,v=a.reduce,y=a.reduceRight,b=a.filter,w=a.every,_=a.some,x=a.indexOf,k=a.lastIndexOf,T=Array.isArray,C=Object.keys,$=c.bind,S=function(t){return t instanceof S?t:this instanceof S?void(this._wrapped=t):new S(t)};"undefined"!=typeof t&&t.exports&&(e=t.exports=S),e._=S,S.VERSION="1.4.4";var E=S.each=S.forEach=function(t,e,n){if(null!=t)if(m&&t.forEach===m)t.forEach(e,n);else if(t.length===+t.length){for(var i=0,r=t.length;i<r;i++)if(e.call(n,t[i],i,t)===s)return}else for(var o in t)if(S.has(t,o)&&e.call(n,t[o],o,t)===s)return};S.map=S.collect=function(t,e,n){var i=[];return null==t?i:g&&t.map===g?t.map(e,n):(E(t,function(t,r,o){i[i.length]=e.call(n,t,r,o)}),i)};var A="Reduce of empty array with no initial value";S.reduce=S.foldl=S.inject=function(t,e,n,i){var r=arguments.length>2;if(null==t&&(t=[]),v&&t.reduce===v)return i&&(e=S.bind(e,i)),r?t.reduce(e,n):t.reduce(e);if(E(t,function(t,o,s){r?n=e.call(i,n,t,o,s):(n=t,r=!0)}),!r)throw new TypeError(A);return n},S.reduceRight=S.foldr=function(t,e,n,i){var r=arguments.length>2;if(null==t&&(t=[]),y&&t.reduceRight===y)return i&&(e=S.bind(e,i)),r?t.reduceRight(e,n):t.reduceRight(e);var o=t.length;if(o!==+o){var s=S.keys(t);o=s.length}if(E(t,function(a,l,c){l=s?s[--o]:--o,r?n=e.call(i,n,t[l],l,c):(n=t[l],r=!0)}),!r)throw new TypeError(A);return n},S.find=S.detect=function(t,e,n){var i;return I(t,function(t,r,o){if(e.call(n,t,r,o))return i=t,!0}),i},S.filter=S.select=function(t,e,n){var i=[];return null==t?i:b&&t.filter===b?t.filter(e,n):(E(t,function(t,r,o){e.call(n,t,r,o)&&(i[i.length]=t)}),i)},S.reject=function(t,e,n){return S.filter(t,function(t,i,r){return!e.call(n,t,i,r)},n)},S.every=S.all=function(t,e,n){e||(e=S.identity);var i=!0;return null==t?i:w&&t.every===w?t.every(e,n):(E(t,function(t,r,o){if(!(i=i&&e.call(n,t,r,o)))return s}),!!i)};var I=S.some=S.any=function(t,e,n){e||(e=S.identity);var i=!1;return null==t?i:_&&t.some===_?t.some(e,n):(E(t,function(t,r,o){if(i||(i=e.call(n,t,r,o)))return s}),!!i)};S.contains=S.include=function(t,e){return null!=t&&(x&&t.indexOf===x?t.indexOf(e)!=-1:I(t,function(t){return t===e}))},S.invoke=function(t,e){var n=h.call(arguments,2),i=S.isFunction(e);return S.map(t,function(t){return(i?e:t[e]).apply(t,n)})},S.pluck=function(t,e){return S.map(t,function(t){return t[e]})},S.where=function(t,e,n){return S.isEmpty(e)?n?null:[]:S[n?"find":"filter"](t,function(t){for(var n in e)if(e[n]!==t[n])return!1;return!0})},S.findWhere=function(t,e){return S.where(t,e,!0)},S.max=function(t,e,n){if(!e&&S.isArray(t)&&t[0]===+t[0]&&t.length<65535)return Math.max.apply(Math,t);if(!e&&S.isEmpty(t))return-(1/0);var i={computed:-(1/0),value:-(1/0)};return E(t,function(t,r,o){var s=e?e.call(n,t,r,o):t;s>=i.computed&&(i={value:t,computed:s})}),i.value},S.min=function(t,e,n){if(!e&&S.isArray(t)&&t[0]===+t[0]&&t.length<65535)return Math.min.apply(Math,t);if(!e&&S.isEmpty(t))return 1/0;var i={computed:1/0,value:1/0};return E(t,function(t,r,o){var s=e?e.call(n,t,r,o):t;s<i.computed&&(i={value:t,computed:s})}),i.value},S.shuffle=function(t){var e,n=0,i=[];return E(t,function(t){e=S.random(n++), 79i[n-1]=i[e],i[e]=t}),i};var M=function(t){return S.isFunction(t)?t:function(e){return e[t]}};S.sortBy=function(t,e,n){var i=M(e);return S.pluck(S.map(t,function(t,e,r){return{value:t,index:e,criteria:i.call(n,t,e,r)}}).sort(function(t,e){var n=t.criteria,i=e.criteria;if(n!==i){if(n>i||void 0===n)return 1;if(n<i||void 0===i)return-1}return t.index<e.index?-1:1}),"value")};var j=function(t,e,n,i){var r={},o=M(e||S.identity);return E(t,function(e,s){var a=o.call(n,e,s,t);i(r,a,e)}),r};S.groupBy=function(t,e,n){return j(t,e,n,function(t,e,n){(S.has(t,e)?t[e]:t[e]=[]).push(n)})},S.countBy=function(t,e,n){return j(t,e,n,function(t,e){S.has(t,e)||(t[e]=0),t[e]++})},S.sortedIndex=function(t,e,n,i){n=null==n?S.identity:M(n);for(var r=n.call(i,e),o=0,s=t.length;o<s;){var a=o+s>>>1;n.call(i,t[a])<r?o=a+1:s=a}return o},S.toArray=function(t){return t?S.isArray(t)?h.call(t):t.length===+t.length?S.map(t,S.identity):S.values(t):[]},S.size=function(t){return null==t?0:t.length===+t.length?t.length:S.keys(t).length},S.first=S.head=S.take=function(t,e,n){if(null!=t)return null==e||n?t[0]:h.call(t,0,e)},S.initial=function(t,e,n){return h.call(t,0,t.length-(null==e||n?1:e))},S.last=function(t,e,n){if(null!=t)return null==e||n?t[t.length-1]:h.call(t,Math.max(t.length-e,0))},S.rest=S.tail=S.drop=function(t,e,n){return h.call(t,null==e||n?1:e)},S.compact=function(t){return S.filter(t,S.identity)};
79var D=function(t,e,n){return E(t,function(t){S.isArray(t)?e?u.apply(n,t):D(t,e,n):n.push(t)}),n};S.flatten=function(t,e){return D(t,e,[])},S.without=function(t){return S.difference(t,h.call(arguments,1))},S.uniq=S.unique=function(t,e,n,i){S.isFunction(e)&&(i=n,n=e,e=!1);var r=n?S.map(t,n,i):t,o=[],s=[];return E(r,function(n,i){(e?i&&s[s.length-1]===n:S.contains(s,n))||(s.push(n),o.push(t[i]))}),o},S.union=function(){return S.uniq(p.apply(a,arguments))},S.intersection=function(t){var e=h.call(arguments,1);return S.filter(S.uniq(t),function(t){return S.every(e,function(e){return S.indexOf(e,t)>=0})})},S.difference=function(t){var e=p.apply(a,h.call(arguments,1));return S.filter(t,function(t){return!S.contains(e,t)})},S.zip=function(){for(var t=h.call(arguments),e=S.max(S.pluck(t,"length")),n=new Array(e),i=0;i<e;i++)n[i]=S.pluck(t,""+i);return n},S.object=function(t,e){if(null==t)return{};for(var n={},i=0,r=t.length;i<r;i++)e?n[t[i]]=e[i]:n[t[i][0]]=t[i][1];return n},S.indexOf=function(t,e,n){if(null==t)return-1;var i=0,r=t.length;if(n){if("number"!=typeof n)return i=S.sortedIndex(t,e),t[i]===e?i:-1;i=n<0?Math.max(0,r+n):n}if(x&&t.indexOf===x)return t.indexOf(e,n);for(;i<r;i++)if(t[i]===e)return i;return-1},S.lastIndexOf=function(t,e,n){if(null==t)return-1;var i=null!=n;if(k&&t.lastIndexOf===k)return i?t.lastIndexOf(e,n):t.lastIndexOf(e);for(var r=i?n:t.length;r--;)if(t[r]===e)return r;return-1},S.range=function(t,e,n){arguments.length<=1&&(e=t||0,t=0),n=arguments[2]||1;for(var i=Math.max(Math.ceil((e-t)/n),0),r=0,o=new Array(i);r<i;)o[r++]=t,t+=n;return o},S.bind=function(t,e){if(t.bind===$&&$)return $.apply(t,h.call(arguments,1));var n=h.call(arguments,2);return function(){return t.apply(e,n.concat(h.call(arguments)))}},S.partial=function(t){var e=h.call(arguments,1);return function(){return t.apply(this,e.concat(h.call(arguments)))}},S.bindAll=function(t){var e=h.call(arguments,1);return 0===e.length&&(e=S.functions(t)),E(e,function(e){t[e]=S.bind(t[e],t)}),t},S.memoize=function(t,e){var n={};return e||(e=S.identity),function(){var i=e.apply(this,arguments);return S.has(n,i)?n[i]:n[i]=t.apply(this,arguments)}},S.delay=function(t,e){var n=h.call(arguments,2);return setTimeout(function(){return t.apply(null,n)},e)},S.defer=function(t){return S.delay.apply(S,[t,1].concat(h.call(arguments,1)))},S.throttle=function(t,e){var n,i,r,o,s=0,a=function(){s=new Date,r=null,o=t.apply(n,i)};return function(){var l=new Date,c=e-(l-s);return n=this,i=arguments,c<=0?(clearTimeout(r),r=null,s=l,o=t.apply(n,i)):r||(r=setTimeout(a,c)),o}},S.debounce=function(t,e,n){var i,r;return function(){var o=this,s=arguments,a=function(){i=null,n||(r=t.apply(o,s))},l=n&&!i;return clearTimeout(i),i=setTimeout(a,e),l&&(r=t.apply(o,s)),r}},S.once=function(t){var e,n=!1;return function(){return n?e:(n=!0,e=t.apply(this,arguments),t=null,e)}},S.wrap=function(t,e){return function(){var n=[t];return u.apply(n,arguments),e.apply(this,n)}},S.compose=function(){var t=arguments;return function(){for(var e=arguments,n=t.length-1;n>=0;n--)e=[t[n].apply(this,e)];return e[0]}},S.after=function(t,e){return t<=0?e():function(){if(--t<1)return e.apply(this,arguments)}},S.keys=C||function(t){if(t!==Object(t))throw new TypeError("Invalid object");var e=[];for(var n in t)S.has(t,n)&&(e[e.length]=n);return e},S.values=function(t){var e=[];for(var n in t)S.has(t,n)&&e.push(t[n]);return e},S.pairs=function(t){var e=[];for(var n in t)S.has(t,n)&&e.push([n,t[n]]);return e},S.invert=function(t){var e={};for(var n in t)S.has(t,n)&&(e[t[n]]=n);return e},S.functions=S.methods=function(t){var e=[];for(var n in t)S.isFunction(t[n])&&e.push(n);return e.sort()},S.extend=function(t){return E(h.call(arguments,1),function(e){if(e)for(var n in e)t[n]=e[n]}),t},S.pick=function(t){var e={},n=p.apply(a,h.call(arguments,1));return E(n,function(n){n in t&&(e[n]=t[n])}),e},S.omit=function(t){var e={},n=p.apply(a,h.call(arguments,1));
79for(var i in t)S.contains(n,i)||(e[i]=t[i]);return e},S.defaults=function(t){return E(h.call(arguments,1),function(e){if(e)for(var n in e)null==t[n]&&(t[n]=e[n])}),t},S.clone=function(t){return S.isObject(t)?S.isArray(t)?t.slice():S.extend({},t):t},S.tap=function(t,e){return e(t),t};var O=function(t,e,n,i){if(t===e)return 0!==t||1/t==1/e;if(null==t||null==e)return t===e;t instanceof S&&(t=t._wrapped),e instanceof S&&(e=e._wrapped);var r=d.call(t);if(r!=d.call(e))return!1;switch(r){case"[object String]":return t==String(e);case"[object Number]":return t!=+t?e!=+e:0==t?1/t==1/e:t==+e;case"[object Date]":case"[object Boolean]":return+t==+e;case"[object RegExp]":return t.source==e.source&&t.global==e.global&&t.multiline==e.multiline&&t.ignoreCase==e.ignoreCase}if("object"!=typeof t||"object"!=typeof e)return!1;for(var o=n.length;o--;)if(n[o]==t)return i[o]==e;n.push(t),i.push(e);var s=0,a=!0;if("[object Array]"==r){if(s=t.length,a=s==e.length)for(;s--&&(a=O(t[s],e[s],n,i)););}else{var l=t.constructor,c=e.constructor;if(l!==c&&!(S.isFunction(l)&&l instanceof l&&S.isFunction(c)&&c instanceof c))return!1;for(var u in t)if(S.has(t,u)&&(s++,!(a=S.has(e,u)&&O(t[u],e[u],n,i))))break;if(a){for(u in e)if(S.has(e,u)&&!s--)break;a=!s}}return n.pop(),i.pop(),a};S.isEqual=function(t,e){return O(t,e,[],[])},S.isEmpty=function(t){if(null==t)return!0;if(S.isArray(t)||S.isString(t))return 0===t.length;for(var e in t)if(S.has(t,e))return!1;return!0},S.isElement=function(t){return!(!t||1!==t.nodeType)},S.isArray=T||function(t){return"[object Array]"==d.call(t)},S.isObject=function(t){return t===Object(t)},E(["Arguments","Function","String","Number","Date","RegExp"],function(t){S["is"+t]=function(e){return d.call(e)=="[object "+t+"]"}}),S.isArguments(arguments)||(S.isArguments=function(t){return!(!t||!S.has(t,"callee"))}),S.isFunction=function(t){return"function"==typeof t},S.isFinite=function(t){return isFinite(t)&&!isNaN(parseFloat(t))},S.isNaN=function(t){return S.isNumber(t)&&t!=+t},S.isBoolean=function(t){return t===!0||t===!1||"[object Boolean]"==d.call(t)},S.isNull=function(t){return null===t},S.isUndefined=function(t){return void 0===t},S.has=function(t,e){return f.call(t,e)},S.noConflict=function(){return r._=o,this},S.identity=function(t){return t},S.times=function(t,e,n){for(var i=Array(t),r=0;r<t;r++)i[r]=e.call(n,r);return i},S.random=function(t,e){return null==e&&(e=t,t=0),t+Math.floor(Math.random()*(e-t+1))};var N={escape:{"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"}};N.unescape=S.invert(N.escape);var L={escape:new RegExp("["+S.keys(N.escape).join("")+"]","g"),unescape:new RegExp("("+S.keys(N.unescape).join("|")+")","g")};S.each(["escape","unescape"],function(t){S[t]=function(e){return null==e?"":(""+e).replace(L[t],function(e){return N[t][e]})}}),S.result=function(t,e){if(null==t)return null;var n=t[e];return S.isFunction(n)?n.call(t):n},S.mixin=function(t){E(S.functions(t),function(e){var n=S[e]=t[e];S.prototype[e]=function(){var t=[this._wrapped];return u.apply(t,arguments),H.call(this,n.apply(S,t))}})};var P=0;S.uniqueId=function(t){var e=++P+"";return t?t+e:e},S.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var R=/(.)^/,q={"'":"'","\\":"\\","\r":"r","\n":"n","\t":"t","\u2028":"u2028","\u2029":"u2029"},F=/\\|'|\r|\n|\t|\u2028|\u2029/g;S.template=function(t,e,n){var i;n=S.defaults({},n,S.templateSettings);var r=new RegExp([(n.escape||R).source,(n.interpolate||R).source,(n.evaluate||R).source].join("|")+"|$","g"),o=0,s="__p+='";t.replace(r,function(e,n,i,r,a){return s+=t.slice(o,a).replace(F,function(t){return"\\"+q[t]}),n&&(s+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'"),i&&(s+="'+\n((__t=("+i+"))==null?'':__t)+\n'"),r&&(s+="';\n"+r+"\n__p+='"),o=a+e.length,e}),s+="';\n",n.variable||(s="with(obj||{}){\n"+s+"}\n"),s="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+s+"return __p;\n";try{i=new Function(n.variable||"obj","_",s)}catch(t){throw t.source=s,t}if(e)return i(e,S);var a=function(t){return i.call(this,t,S)};return a.source="function("+(n.variable||"obj")+"){\n"+s+"}",a},S.chain=function(t){return S(t).chain()};var H=function(t){return this._chain?S(t).chain():t};S.mixin(S),E(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var e=a[t];S.prototype[t]=function(){var n=this._wrapped;return e.apply(n,arguments),"shift"!=t&&"splice"!=t||0!==n.length||delete n[0],H.call(this,n)}}),E(["concat","join","slice"],function(t){var e=a[t];S.prototype[t]=function(){return H.call(this,e.apply(this._wrapped,arguments))}}),S.extend(S.prototype,{chain:function(){return this._chain=!0,this},value:function(){return this._wrapped}}),i=function(){return S}.call(e,n,e,t),!(void 0!==i&&(t.exports=i))}).call(this)},,,function(t,e){t.exports=graph_lib},function(t,e){t.exports=jQuery},function(t,e){t.exports=map_lib}]); 80//# sourceMappingURL=common-a25fa5dfa4bd51a8227e-bundle.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.