Event Organiser - Version 3.6.0

Version Description

25th November 2017

  • added: Ability to specify multiple event authors (organiser) in the fullcalendar author/author_name attribute by using a comma seperate lised e.g: [eo_fullcalendar author="1,2"]
  • bugfix: The "organiser" full calendar filter only displays users included in the author/author_name attribute if supplied.
  • bugfix: Occurrences which have changed time still appear in the include/excludes datepicker
  • bugfix: iCal feed will display correct DSTART & DTEND values even when the initial occurrence is excluded from the query driving the feed.
  • changed: The admin calendar week/day views display 15-minute intervals. If dragging of occurrences is enabled this can be done in 5 minute intervals.
Download this release

Release Info

Developer jenkinspress
Plugin Icon 128x128 Event Organiser
Version 3.6.0
Comparing to
See all releases

Code changes from version 3.5.1 to 3.6.0

Files changed (105) hide show
  1. event-organiser-edit.php +8 -5
  2. event-organiser.php +2 -2
  3. includes/event-organiser-ajax.php +1 -1
  4. includes/event-organiser-event-functions.php +11 -1
  5. js/admin-calendar.js +2 -0
  6. js/admin-calendar.min.js +2 -2
  7. js/edit-event-controller.min.js +1 -1
  8. js/event-manager.min.js +1 -1
  9. js/event.js +111 -105
  10. js/event.min.js +2 -2
  11. js/frontend.js +7 -4
  12. js/frontend.min.js +2 -2
  13. js/fullcalendar.min.js +1 -1
  14. js/jquery-ui-eo-timepicker.min.js +1 -1
  15. js/moment.min.js +1 -1
  16. js/time-picker.min.js +1 -1
  17. js/venue-admin.min.js +1 -1
  18. js/venue-util.min.js +1 -1
  19. languages/eventorganiser-af.mo +0 -0
  20. languages/eventorganiser-af.po +5 -5
  21. languages/eventorganiser-ar.mo +0 -0
  22. languages/eventorganiser-ar.po +5 -5
  23. languages/eventorganiser-bg_BG.mo +0 -0
  24. languages/eventorganiser-bg_BG.po +5 -5
  25. languages/eventorganiser-ca.mo +0 -0
  26. languages/eventorganiser-ca.po +5 -5
  27. languages/eventorganiser-cs_CZ.mo +0 -0
  28. languages/eventorganiser-cs_CZ.po +5 -5
  29. languages/eventorganiser-da_DK.mo +0 -0
  30. languages/eventorganiser-da_DK.po +5 -5
  31. languages/eventorganiser-de_DE.mo +0 -0
  32. languages/eventorganiser-de_DE.po +5 -5
  33. languages/eventorganiser-el.mo +0 -0
  34. languages/eventorganiser-el.po +5 -5
  35. languages/eventorganiser-en_CA.mo +0 -0
  36. languages/eventorganiser-en_CA.po +5 -5
  37. languages/eventorganiser-en_GB.mo +0 -0
  38. languages/eventorganiser-en_GB.po +5 -5
  39. languages/eventorganiser-es_ES.mo +0 -0
  40. languages/eventorganiser-es_ES.po +5 -5
  41. languages/eventorganiser-es_PE.mo +0 -0
  42. languages/eventorganiser-es_PE.po +5 -5
  43. languages/eventorganiser-et.mo +0 -0
  44. languages/eventorganiser-et.po +5 -5
  45. languages/eventorganiser-fa_IR.mo +0 -0
  46. languages/eventorganiser-fa_IR.po +5 -5
  47. languages/eventorganiser-fi.mo +0 -0
  48. languages/eventorganiser-fi.po +5 -5
  49. languages/eventorganiser-fr_FR.mo +0 -0
  50. languages/eventorganiser-fr_FR.po +5 -5
  51. languages/eventorganiser-he_IL.mo +0 -0
  52. languages/eventorganiser-he_IL.po +5 -5
  53. languages/eventorganiser-hi_IN.mo +0 -0
  54. languages/eventorganiser-hi_IN.po +5 -5
  55. languages/eventorganiser-hr.mo +0 -0
  56. languages/eventorganiser-hr.po +5 -5
  57. languages/eventorganiser-hu_HU.mo +0 -0
  58. languages/eventorganiser-hu_HU.po +5 -5
  59. languages/eventorganiser-id_ID.mo +0 -0
  60. languages/eventorganiser-id_ID.po +5 -5
  61. languages/eventorganiser-is_IS.mo +0 -0
  62. languages/eventorganiser-is_IS.po +5 -5
  63. languages/eventorganiser-it_IT.mo +0 -0
  64. languages/eventorganiser-it_IT.po +5 -5
  65. languages/eventorganiser-ja.mo +0 -0
  66. languages/eventorganiser-ja.po +5 -5
  67. languages/eventorganiser-lt_LT.mo +0 -0
  68. languages/eventorganiser-lt_LT.po +5 -5
  69. languages/eventorganiser-lv.mo +0 -0
  70. languages/eventorganiser-lv.po +5 -5
  71. languages/eventorganiser-mk_MK.mo +0 -0
  72. languages/eventorganiser-mk_MK.po +5 -5
  73. languages/eventorganiser-nb_NO.mo +0 -0
  74. languages/eventorganiser-nb_NO.po +5 -5
  75. languages/eventorganiser-nl_NL.mo +0 -0
  76. languages/eventorganiser-nl_NL.po +5 -5
  77. languages/eventorganiser-nn_NO.mo +0 -0
  78. languages/eventorganiser-nn_NO.po +5 -5
  79. languages/eventorganiser-pl_PL.mo +0 -0
  80. languages/eventorganiser-pl_PL.po +5 -5
  81. languages/eventorganiser-pt_BR.mo +0 -0
  82. languages/eventorganiser-pt_BR.po +5 -5
  83. languages/eventorganiser-pt_PT.mo +0 -0
  84. languages/eventorganiser-pt_PT.po +5 -5
  85. languages/eventorganiser-ro_RO.mo +0 -0
  86. languages/eventorganiser-ro_RO.po +5 -5
  87. languages/eventorganiser-ru_RU.mo +0 -0
  88. languages/eventorganiser-ru_RU.po +5 -5
  89. languages/eventorganiser-sk_SK.mo +0 -0
  90. languages/eventorganiser-sk_SK.po +5 -5
  91. languages/eventorganiser-sl_SI.mo +0 -0
  92. languages/eventorganiser-sl_SI.po +5 -5
  93. languages/eventorganiser-sv_SE.mo +0 -0
  94. languages/eventorganiser-sv_SE.po +5 -5
  95. languages/eventorganiser-th.mo +0 -0
  96. languages/eventorganiser-th.po +5 -5
  97. languages/eventorganiser-uk.mo +0 -0
  98. languages/eventorganiser-uk.po +5 -5
  99. languages/eventorganiser-zh_CN.mo +0 -0
  100. languages/eventorganiser-zh_CN.po +5 -5
  101. languages/eventorganiser-zh_HK.mo +0 -0
  102. languages/eventorganiser-zh_HK.po +5 -5
  103. languages/eventorganiser.pot +5 -5
  104. readme.txt +14 -2
  105. templates/ical.php +3 -3
event-organiser-edit.php CHANGED
@@ -448,6 +448,7 @@ function eventorganiser_details_save( $post_id ) {
448
 
449
  //Parse included and exclude dates
450
  $in_ex = array();
 
451
  foreach ( array( 'include', 'exclude' ) as $key ) :
452
 
453
  $in_ex[$key] = array();
@@ -462,11 +463,13 @@ function eventorganiser_details_save( $post_id ) {
462
  }
463
  }
464
 
465
- /* see https://github.com/stephenharris/Event-Organiser/issues/260
466
- if( $orig = array_uintersect( $orig_schedule[$key], $in_ex[$key], '_eventorganiser_compare_dates' ) ){
467
- $in_ex[$key] = array_merge( $orig, $in_ex[$key] );
468
- $in_ex[$key] = _eventorganiser_remove_duplicates( $in_ex[$key] );
469
- }*/
 
 
470
  }
471
  endforeach;
472
 
448
 
449
  //Parse included and exclude dates
450
  $in_ex = array();
451
+ $orig_schedule = eo_get_event_schedule( $post_id );
452
  foreach ( array( 'include', 'exclude' ) as $key ) :
453
 
454
  $in_ex[$key] = array();
463
  }
464
  }
465
 
466
+ //see https://github.com/stephenharris/Event-Organiser/issues/260
467
+ if ( $start == $orig_schedule['start'] && $end == $orig_schedule['end'] ) {
468
+ if( $orig = array_uintersect( $orig_schedule[$key], $in_ex[$key], '_eventorganiser_compare_dates' ) ){
469
+ $in_ex[$key] = array_merge( $orig, array_udiff( $in_ex[$key], $orig_schedule[$key], '_eventorganiser_compare_dates' ) );
470
+ $in_ex[$key] = _eventorganiser_remove_duplicates( $in_ex[$key] );
471
+ }
472
+ }
473
  }
474
  endforeach;
475
 
event-organiser.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: Event Organiser
4
  Plugin URI: http://www.wp-event-organiser.com
5
- Version: 3.5.1
6
  Description: Creates a custom post type 'events' with features such as recurring events, venues, Google Maps, calendar views and events and venue pages
7
  Author: Stephen Harris
8
  Author URI: http://www.stephenharris.info
@@ -38,7 +38,7 @@ Domain Path: /languages
38
  /**
39
  * Set the plug-in database version
40
  */
41
- define( 'EVENT_ORGANISER_VER', '3.5.1' );
42
 
43
  add_action( 'after_setup_theme', '_eventorganiser_set_constants' );
44
  function _eventorganiser_set_constants() {
2
  /*
3
  Plugin Name: Event Organiser
4
  Plugin URI: http://www.wp-event-organiser.com
5
+ Version: 3.6.0
6
  Description: Creates a custom post type 'events' with features such as recurring events, venues, Google Maps, calendar views and events and venue pages
7
  Author: Stephen Harris
8
  Author URI: http://www.stephenharris.info
38
  /**
39
  * Set the plug-in database version
40
  */
41
+ define( 'EVENT_ORGANISER_VER', '3.6.0' );
42
 
43
  add_action( 'after_setup_theme', '_eventorganiser_set_constants' );
44
  function _eventorganiser_set_constants() {
includes/event-organiser-ajax.php CHANGED
@@ -44,7 +44,7 @@ function eventorganiser_public_fullcalendar() {
44
  }
45
 
46
  if ( ! empty( $_GET['organiser'] ) ) {
47
- $request['author'] = (int) $_GET['organiser'];
48
  }
49
 
50
  if ( ! empty( $_GET['users_events'] ) && 'false' != $_GET['users_events'] ) {
44
  }
45
 
46
  if ( ! empty( $_GET['organiser'] ) ) {
47
+ $request['author__in'] = is_array( $_GET['organiser'] ) ? array_map( 'intval', $_GET['organiser'] ) : array( (int) $_GET['organiser'] );
48
  }
49
 
50
  if ( ! empty( $_GET['users_events'] ) && 'false' != $_GET['users_events'] ) {
includes/event-organiser-event-functions.php CHANGED
@@ -1430,7 +1430,17 @@ function eo_get_event_fullcalendar( $args = array() ) {
1430
  $args['event_tag'] = is_array( $args['event-tag'] ) ? implode( ',', $args['event-tag'] ) : $args['event-tag'];
1431
 
1432
  //Get author ID from author/author_name
1433
- $args['event_organiser'] = ( $args['author'] ? (int) $args['author'] : eo_get_user_id_by( 'slug', $args['author_name'] ) );
 
 
 
 
 
 
 
 
 
 
1434
 
1435
  //max/min time MUST be hh:mm format
1436
  $times = array( 'mintime', 'maxtime' );
1430
  $args['event_tag'] = is_array( $args['event-tag'] ) ? implode( ',', $args['event-tag'] ) : $args['event-tag'];
1431
 
1432
  //Get author ID from author/author_name
1433
+ if ( $args['author'] ) {
1434
+ $args['event_organiser'] = array_map( 'intval', explode( ',', $args['author'] ) );
1435
+ } else {
1436
+ $args['event_organiser'] = array();
1437
+ $authors = explode( ',', $args['author_name'] );
1438
+ foreach( $authors as $index => $author_name ) {
1439
+ $args['event_organiser'][] = eo_get_user_id_by( 'slug', $author_name );
1440
+ }
1441
+ }
1442
+
1443
+ $args['event_organiser'] = array_filter( $args['event_organiser'] );
1444
 
1445
  //max/min time MUST be hh:mm format
1446
  $times = array( 'mintime', 'maxtime' );
js/admin-calendar.js CHANGED
@@ -72,6 +72,8 @@ eventorganiser.versionCompare = function(left, right) {
72
  eventDurationEditable: false,
73
  eventStartEditable: EO_Ajax.edit_time,
74
  durationEditable: false,
 
 
75
  eventDrop: function( event, dayDelta, revertFunc, jsEvent, ui, view ) {
76
 
77
  if ( ! event.end ) {
72
  eventDurationEditable: false,
73
  eventStartEditable: EO_Ajax.edit_time,
74
  durationEditable: false,
75
+ snapDuration:'00:05:00',
76
+ slotDuration:'00:15:00',
77
  eventDrop: function( event, dayDelta, revertFunc, jsEvent, ui, view ) {
78
 
79
  if ( ! event.end ) {
js/admin-calendar.min.js CHANGED
@@ -1,2 +1,2 @@
1
- /*! event-organiser 3.5.1-0-g786a5d5 2017-11-14 21:45 */
2
- var eventorganiser=eventorganiser||{};eventorganiser.versionCompare=function(a,b){if(typeof a+typeof b!="stringstring")return!1;for(var c=a.split("."),d=b.split("."),e=0,f=Math.max(c.length,d.length);f>e;e++){if(c[e]&&!d[e]&&parseInt(c[e],10)>0||parseInt(c[e],10)>parseInt(d[e],10))return 1;if(d[e]&&!c[e]&&parseInt(d[e],10)>0||parseInt(c[e],10)<parseInt(d[e],10))return-1}return 0},function(a){a(document).ready(function(){function b(){var b=a("<span class='fc-header-goto'><input type='hidden' id='miniCalendar'/></span>");return b}function c(b){a(".view-button").removeClass("nav-tab-active"),g.fullCalendar("changeView",b),a("#"+b).addClass("nav-tab-active")}function d(b){var c=b.categories;if(c){var d="<select class='eo-cal-filter' id='eo-event-cat'>";d+="<option value=''>"+b.buttonText.cat+"</option>";for(var e=0;e<c.length;e++)d+="<option class='cat-slug-"+c[e].slug+" cat' value='"+c[e].slug+"'>"+c[e].name+"</option>";return d+="</select>",a("<span class='fc-header-dropdown filter-category'></span>").append(d)}}function e(b){var c=b.venues;if(c){var d="<select class='eo-cal-filter' id='eo-event-venue'>";d+="<option value=''>"+b.buttonText.venue+"</option>";for(var e=0;e<c.length;e++)d+="<option value='"+c[e].term_id+"'>"+c[e].name+"</option>";return d+="</select>",a("<span class='fc-header-dropdown filter-venue'></span>").append(d)}}a("#eo-dialog-tabs").tabs(),a(".eo-dialog").dialog({autoOpen:!1,dialogClass:"eo-admin-calendar-dialog",width:527,modal:!0,closeText:"Close modal",draggable:!1,open:function(b,c){a(this).parent(".eo-admin-calendar-dialog").focus()}}),a(".eo-dialog").parent().find(".ui-dialog-titlebar-close").addClass("eo-ui-button"),a("#events-meta").parent().find(".ui-dialog-titlebar-close").appendTo(".ui-tabs-nav").closest(".ui-dialog").children(".ui-dialog-titlebar").remove();var f=a("#eofc_time_format").is(":checked")?"HH:mm":"h:mma",g=jQuery("#eo_admin_calendar").fullCalendar({firstDay:parseInt(EO_Ajax.startday,10),defaultDate:moment(a.cookie("eo_admin_cal_last_viewed_date")),defaultView:a.cookie("eo_admin_cal_last_view")?a.cookie("eo_admin_cal_last_view"):"month",editable:EO_Ajax.perm_edit,eventDurationEditable:!1,eventStartEditable:EO_Ajax.edit_time,durationEditable:!1,eventDrop:function(b,c,d,e,f,g){return b.end?void a.ajax({type:"POST",url:EO_Ajax.ajaxurl,data:{action:"eofc-edit-date",start:b.start.format("YYYY-MM-DD HH:mm:ss"),end:b.end.format("YYYY-MM-DD HH:mm:ss"),event_id:b.event_id,occurrence_id:b.occurrence_id,_wpnonce:EO_Ajax.edit_nonce},dataType:"json"}).done(function(a){a.success!==!0&&(alert(a.data.message),d())}).fail(function(a,b,c){alert("Error: "+c),d()}):(alert("Changing the event duration is not supported"),void d())},lazyFetching:"true",eventColor:"#21759B",theme:!1,customButtons:{category:d,venue:""!==EO_Ajax.venues?e:null,"goto":b},buttonText:{today:EO_Ajax.locale.today,month:EO_Ajax.locale.month,week:EO_Ajax.locale.week,day:EO_Ajax.locale.day,cat:EO_Ajax.locale.cat,venue:EO_Ajax.locale.venue,prev:"<",next:">"},monthNames:EO_Ajax.locale.monthNames,monthNamesShort:EO_Ajax.locale.monthAbbrev,dayNames:EO_Ajax.locale.dayNames,dayNamesShort:EO_Ajax.locale.dayAbbrev,isRTL:EO_Ajax.locale.isrtl,header:{left:"title",center:"category venue",right:"prev goto today next"},buttonIcons:!1,buttonui:!0,events:function(a,b,c,d){jQuery.ajax({url:EO_Ajax.ajaxurl+"?action=event-admin-cal",dataType:"JSON",data:{start:a.format("YYYY-MM-DD"),end:b.format("YYYY-MM-DD")},success:d})},categories:EO_Ajax.categories,venues:EO_Ajax.venues,selectable:!0,selectHelper:!0,eventRender:function(a,b){var c=jQuery(".filter-category .eo-cal-filter").val(),d=jQuery(".filter-venue .eo-cal-filter").val();return"undefined"!=typeof c&&""!==c&&jQuery.inArray(c,a.category)<0?"<div></div>":"undefined"!=typeof d&&""!==d&&d!=a.venue?"<div></div>":void 0},viewRender:function(b,c){var d=b.intervalStart.format("YYYY-MM-DD"),e=new Date;e=new Date(e.getTime()+6e5),a.cookie("eo_admin_cal_last_viewed_date",d,{expires:e}),a.cookie("eo_admin_cal_last_view",b.name,{expires:e})},weekMode:"variable",loading:function(a){a?jQuery("#loading").show():jQuery("#loading").hide()},timeFormat:f,axisFormat:f,eventClick:function(b,c,d){c.preventDefault(),a("#eo-dialog-tabs ul li").each(function(){var c=a(this).attr("id").substring(14);a("#eo-dialog-tabs #"+a(this).attr("id")+"-content").html(b[c])}),a("#events-meta").dialog("open")},select:function(b,c,d,e){if(EO_Ajax.perm_edit){d.preventDefault();var g=(jQuery(this)[0].calendar.options,b.format("YYYY-MM-DD")),h=b.format("HH:mm");b.hasTime()?(f="ddd, Do MMMM h:mma",allDay=0):(c.subtract(1,"minute"),f="ddd, Do MMMM",allDay=1);var i=c.format("YYYY-MM-DD"),j=c.format("HH:mm"),k=a.fullCalendar.formatRange(b,c,f);a("#eo_event_create_cal input[name='eo_event[event_title]']").val(""),a("#eo_event_create_cal input.ui-autocomplete-input").val(""),a("#eo_event_create_cal textarea[name='eo_event[event_content]']").val(""),a("#eo_event_create_cal input[name='eo_event[StartDate]']").val(g),a("#eo_event_create_cal input[name='eo_event[StartTime]']").val(h),a("#eo_event_create_cal input[name='eo_event[EndDate]']").val(i),a("#eo_event_create_cal input[name='eo_event[FinishTime]']").val(j),a("#eo_event_create_cal input[name='eo_event[allday]']").val(allDay),a("#eo_event_create_cal td#date").html(k),a("#eo_event_create_cal").dialog("open"),a("form.eo_cal input[type='submit']").removeAttr("disabled"),a("form.eo_cal input#reset").click(function(b){a("#eo_event_create_cal").dialog("close")})}}});a("#eofc_time_format").change(function(){f=a("#eofc_time_format").is(":checked")?"HH:mm":"h:mmtt",g.fullCalendar("option","timeFormat",f),a.post(ajaxurl,{action:"eofc-format-time",is24:a("#eofc_time_format").is(":checked")})}),a(".view-button").click(function(b){b.preventDefault(),c(a(this).attr("id"))}),a(window).on("keypress",function(b){if(!(a(b.target).closest(".ui-dialog").length>0)){switch(b.which){case 49:case 109:case 77:c("month");break;case 50:case 119:case 87:c("agendaWeek");break;case 51:case 100:case 68:c("agendaDay");break;case 116:case 84:g.fullCalendar("today");break;case 103:case 71:break;case 110:case 78:case 106:case 74:g.fullCalendar("next");break;case 107:case 75:case 112:case 80:g.fullCalendar("prev");break;case 63:a("#eo-keyboard-shortcuts").dialog("open");break;default:return}b.preventDefault()}}),a("#eo-keyboard-shortcuts").dialog({autoOpen:!1,dialogClass:"eo-admin-calendar-dialog",title:"Keyboard shortcuts",closeText:"Close modal",draggable:!1,modal:!0,open:function(b,c){a(this).parent(".eo-admin-calendar-dialog").focus()}}),a("#eo-keyboard-sr-shortcut").on("click",function(b){b.preventDefault(),a("#eo-keyboard-shortcuts").dialog("open")});var h=a("#adminmenumain .screen-reader-shortcut");h.length>0&&a("#eo-keyboard-sr-shortcut").insertAfter(h.last()),a("#miniCalendar").datepicker({dateFormat:"DD, d MM, yy",firstDay:parseInt(EO_Ajax.startday,10),changeMonth:!0,monthNamesShort:EO_Ajax.locale.monthAbbrev,dayNamesMin:EO_Ajax.locale.dayAbbrev,changeYear:!0,showOn:"button",buttonText:EO_Ajax.locale.gotodate,onSelect:function(a,b){g.fullCalendar("gotoDate",new Date(Date.parse(a)))}}),a("button.ui-datepicker-trigger").button().addClass("fc-button"),a.widget("ui.combobox",{_create:function(){var b=this.element.hide(),c=b.attr("id"),d=b.children(":selected"),e=d.val()?d.text():"",f=a("<span>").addClass("ui-combobox eo-venue-input").insertAfter(b),g=a('<input type="hidden" name="'+b.attr("name")+'" value="'+e+'"/>'),h=a("<input>").attr("id",c).appendTo(f).val(e).addClass("ui-combobox-input"),i={delay:0,minLength:0,source:function(b,c){h.addClass("eo-waiting"),a.getJSON(EO_Ajax.ajaxurl+"?action=eo-search-venue",b,function(b){var d=a.map(b,function(a){return a.label=a.name,a});c(d),h.removeClass("eo-waiting")})},select:function(a,b){g.val(b.item.term_id)}};h.autocomplete(i).addClass("ui-widget-content ui-corner-left"),this.element.replaceWith(g);var j=a.ui?a.ui.version||0:-1,k=eventorganiser.versionCompare(j,"1.10")>=0?"ui-autocomplete":"autocomplete";h.data(k)._renderItem=function(b,c){if(0===c.term_id)return a("<li></li>").data(k+"-item",c).append("<a>"+c.label+"</a>").appendTo(b);var d=[c.venue_address,c.venue_city,c.venue_state,c.venue_postcode,c.venue_country],e=a.grep(d,function(a){return a}).join(", "),f=eventorganiser.versionCompare(j,"1.10")>=0?"ui-autocomplete-item":"item.autocomplete";return a("<li></li>").data(f,c).append("<a>"+c.label+"</br> <span style='font-size: 0.8em'><em>"+e+"</span></em></a>").appendTo(b)};var l=a("<span>").addClass("eo-venue-combobox-buttons").appendTo(f);a("<a href='#' style='vertical-align: top;margin: 0px -1px;padding: 0px;height:26px;'>").attr("title","Show All Venues").appendTo(l).button({icons:{primary:"ui-icon-triangle-1-s"},text:!1}).removeClass("ui-corner-all").addClass("eo-ui-button ui-corner-right ui-combobox-toggle ui-combobox-button").mousedown(function(){wasOpen=h.autocomplete("widget").is(":visible")}).click(function(b){b.preventDefault(),wasOpen||(a(this).blur(),h.autocomplete("search","").focus())})}}),a("#venue_select").combobox(),a(".eo-cal-filter").change(function(){g.fullCalendar("rerenderEvents")}),a(".filter-venue .eo-cal-filter").selectmenu({wrapperElement:"<span class='fc-header-filter'></span>"}),a(".filter-category .eo-cal-filter").selectmenu({wrapperElement:"<span class='fc-header-filter'></span>",icons:[{find:".cat"}]});var i=a("#eo-event-venue-button").width()+30;a("#eo-event-venue-button").width(i+"px"),a("#eo-event-venue-menu").width(i+"px");var j=a("#eo-event-cat-button").width()+30;a("#eo-event-cat-button").width(j+"px"),a("#eo-event-cat-menu").width(j+"px")})}(jQuery),function(a){a.widget("ui.selectmenu",{options:{appendTo:"body",typeAhead:1e3,style:"dropdown",positionOptions:null,width:null,menuWidth:null,handleWidth:26,maxHeight:null,icons:null,format:null,escapeHtml:!1,bgImage:function(){}},_create:function(){var b=this,c=this.options,d=a.ui?a.ui.version||0:-1,e=eventorganiser.versionCompare(d,"1.9")>=0?this.element.uniqueId().attr("id"):this.element.attr("id")||"ui-selectmenu-"+Math.random().toString(16).slice(2,10);this.ids=[e,e+"-button",e+"-menu"],this._safemouseup=!0,this.isOpen=!1,this.newelement=a("<a />",{"class":"ui-selectmenu ui-widget ui-state-default ui-corner-all",id:this.ids[1],role:"button",href:"#nogo",tabindex:this.element.attr("disabled")?1:0,"aria-haspopup":!0,"aria-owns":this.ids[2]}),this.newelementWrap=a("<span />").append(this.newelement).insertAfter(this.element);var f=this.element.attr("tabindex");f&&this.newelement.attr("tabindex",f),this.newelement.data("selectelement",this.element),this.selectmenuIcon=a('<span class="ui-selectmenu-icon ui-icon"></span>').prependTo(this.newelement),this.newelement.prepend('<span class="ui-selectmenu-status" />'),this.element.bind({"click.selectmenu":function(a){b.newelement.focus(),a.preventDefault()}}),this.newelement.bind("mousedown.selectmenu",function(a){b._toggle(a,!0),"popup"==c.style&&(b._safemouseup=!1,setTimeout(function(){b._safemouseup=!0},300)),a.preventDefault()}).bind("click.selectmenu",function(a){a.preventDefault()}).bind("keydown.selectmenu",function(c){var d=!1;switch(c.keyCode){case a.ui.keyCode.ENTER:d=!0;break;case a.ui.keyCode.SPACE:b._toggle(c);break;case a.ui.keyCode.UP:c.altKey?b.open(c):b._moveSelection(-1);break;case a.ui.keyCode.DOWN:c.altKey?b.open(c):b._moveSelection(1);break;case a.ui.keyCode.LEFT:b._moveSelection(-1);break;case a.ui.keyCode.RIGHT:b._moveSelection(1);break;case a.ui.keyCode.TAB:d=!0;break;case a.ui.keyCode.PAGE_UP:case a.ui.keyCode.HOME:b.index(0);break;case a.ui.keyCode.PAGE_DOWN:case a.ui.keyCode.END:b.index(b._optionLis.length);break;default:d=!0}return d}).bind("keypress.selectmenu",function(a){return a.which>0&&b._typeAhead(a.which,"mouseup"),!0}).bind("mouseover.selectmenu",function(){c.disabled||a(this).addClass("ui-state-hover")}).bind("mouseout.selectmenu",function(){c.disabled||a(this).removeClass("ui-state-hover")}).bind("focus.selectmenu",function(){c.disabled||a(this).addClass("ui-state-focus")}).bind("blur.selectmenu",function(){c.disabled||a(this).removeClass("ui-state-focus")}),a(document).bind("mousedown.selectmenu-"+this.ids[0],function(c){b.isOpen&&!a(c.target).closest("#"+b.ids[1]).length&&b.close(c)}),this.element.bind("click.selectmenu",function(){b._refreshValue()}).bind("focus.selectmenu",function(){b.newelement&&b.newelement[0].focus()}),c.width||(c.width=this.element.outerWidth()),this.newelement.width(c.width),this.element.hide(),this.list=a("<ul />",{"class":"ui-widget ui-widget-content","aria-hidden":!0,role:"listbox","aria-labelledby":this.ids[1],id:this.ids[2]}),this.listWrap=a("<div />",{"class":"ui-selectmenu-menu"}).append(this.list).appendTo(c.appendTo),this.list.bind("keydown.selectmenu",function(c){var d=!1;switch(c.keyCode){case a.ui.keyCode.UP:c.altKey?b.close(c,!0):b._moveFocus(-1);break;case a.ui.keyCode.DOWN:c.altKey?b.close(c,!0):b._moveFocus(1);break;case a.ui.keyCode.LEFT:b._moveFocus(-1);break;case a.ui.keyCode.RIGHT:b._moveFocus(1);break;case a.ui.keyCode.HOME:b._moveFocus(":first");break;case a.ui.keyCode.PAGE_UP:b._scrollPage("up");break;case a.ui.keyCode.PAGE_DOWN:b._scrollPage("down");break;case a.ui.keyCode.END:b._moveFocus(":last");break;case a.ui.keyCode.ENTER:case a.ui.keyCode.SPACE:b.close(c,!0),a(c.target).parents("li:eq(0)").trigger("mouseup");break;case a.ui.keyCode.TAB:d=!0,b.close(c,!0),a(c.target).parents("li:eq(0)").trigger("mouseup");break;case a.ui.keyCode.ESCAPE:b.close(c,!0);break;default:d=!0}return d}).bind("keypress.selectmenu",function(a){return a.which>0&&b._typeAhead(a.which,"focus"),!0}).bind("mousedown.selectmenu mouseup.selectmenu",function(){return!1}),a(window).bind("resize.selectmenu-"+this.ids[0],a.proxy(b.close,this))},_init:function(){var b=this,c=this.options,d=[];this.element.find("option").each(function(){var e=a(this);d.push({value:e.attr("value"),text:b._formatText(e.text(),e),selected:e.attr("selected"),disabled:e.attr("disabled"),classes:e.attr("class"),typeahead:e.attr("typeahead"),parentOptGroup:e.parent("optgroup"),bgImage:c.bgImage.call(e)})});var e="popup"==b.options.style?" ui-state-active":"";if(this.list.html(""),d.length)for(var f=0;f<d.length;f++){var g={role:"presentation"};d[f].disabled&&(g["class"]="ui-state-disabled");var h={html:d[f].text||"&nbsp;",href:"#nogo",tabindex:-1,role:"option","aria-selected":!1};d[f].disabled&&(h["aria-disabled"]=d[f].disabled),d[f].typeahead&&(h.typeahead=d[f].typeahead);var i=a("<a/>",h).bind("focus.selectmenu",function(){a(this).parent().mouseover()}).bind("blur.selectmenu",function(){a(this).parent().mouseout()}),j=a("<li/>",g).append(i).data("index",f).addClass(d[f].classes).data("optionClasses",d[f].classes||"").bind("mouseup.selectmenu",function(c){return!b._safemouseup||b._disabled(c.currentTarget)||b._disabled(a(c.currentTarget).parents("ul > li.ui-selectmenu-group "))||(b.index(a(this).data("index")),b.select(c),b.close(c,!0)),!1}).bind("click.selectmenu",function(){return!1}).bind("mouseover.selectmenu",function(c){a(this).hasClass("ui-state-disabled")||a(this).parent("ul").parent("li").hasClass("ui-state-disabled")||(c.optionValue=b.element[0].options[a(this).data("index")].value,b._trigger("hover",c,b._uiHash()),b._selectedOptionLi().addClass(e),b._focusedOptionLi().removeClass("ui-selectmenu-item-focus ui-state-hover"),a(this).removeClass("ui-state-active").addClass("ui-selectmenu-item-focus ui-state-hover"))}).bind("mouseout.selectmenu",function(c){a(this).is(b._selectedOptionLi())&&a(this).addClass(e),c.optionValue=b.element[0].options[a(this).data("index")].value,b._trigger("blur",c,b._uiHash()),a(this).removeClass("ui-selectmenu-item-focus ui-state-hover")});if(d[f].parentOptGroup.length){var k="ui-selectmenu-group-"+this.element.find("optgroup").index(d[f].parentOptGroup);this.list.find("li."+k).length?this.list.find("li."+k+":last ul").append(j):a('<li role="presentation" class="ui-selectmenu-group '+k+(d[f].parentOptGroup.attr("disabled")?' ui-state-disabled" aria-disabled="true"':'"')+'><span class="ui-selectmenu-group-label">'+d[f].parentOptGroup.attr("label")+"</span><ul></ul></li>").appendTo(this.list).find("ul").append(j)}else j.appendTo(this.list);if(c.icons)for(var l in c.icons)if(j.is(c.icons[l].find)){j.data("optionClasses",d[f].classes+" ui-selectmenu-hasIcon").addClass("ui-selectmenu-hasIcon");var m=c.icons[l].icon||"";j.find("a:eq(0)").prepend('<span class="ui-selectmenu-item-icon ui-icon '+m+'"></span>'),d[f].bgImage&&j.find("span").css("background-image",d[f].bgImage)}}else a(' <li role="presentation"><a href="#nogo" tabindex="-1" role="option"></a></li>').appendTo(this.list);var n="dropdown"==c.style;this.newelement.toggleClass("ui-selectmenu-dropdown",n).toggleClass("ui-selectmenu-popup",!n),this.list.toggleClass("ui-selectmenu-menu-dropdown ui-corner-bottom",n).toggleClass("ui-selectmenu-menu-popup ui-corner-all",!n).find("li:first").toggleClass("ui-corner-top",!n).end().find("li:last").addClass("ui-corner-bottom"),this.selectmenuIcon.toggleClass("ui-icon-triangle-1-s",n).toggleClass("ui-icon-triangle-2-n-s",!n),"dropdown"==c.style?this.list.width(c.menuWidth?c.menuWidth:c.width):this.list.width(c.menuWidth?c.menuWidth:c.width-c.handleWidth),this.list.css("height","auto");var o=this.listWrap.height(),p=a(window).height(),q=c.maxHeight?Math.min(c.maxHeight,p):p/3;o>q&&this.list.height(q),this._optionLis=this.list.find("li:not(.ui-selectmenu-group)"),this.element.attr("disabled")?this.disable():this.enable(),this._refreshValue(),this._selectedOptionLi().addClass("ui-selectmenu-item-focus"),clearTimeout(this.refreshTimeout),this.refreshTimeout=window.setTimeout(function(){b._refreshPosition()},200)},destroy:function(){this.element.removeData(this.widgetName).removeClass("ui-selectmenu-disabled ui-state-disabled").removeAttr("aria-disabled").unbind(".selectmenu"),a(window).unbind(".selectmenu-"+this.ids[0]),a(document).unbind(".selectmenu-"+this.ids[0]),this.newelementWrap.remove(),this.listWrap.remove(),this.element.unbind(".selectmenu").show(),a.Widget.prototype.destroy.apply(this,arguments)},_typeAhead:function(a,b){var c=this,d=String.fromCharCode(a).toLowerCase(),e=null,f=null;c._typeAhead_timer&&(window.clearTimeout(c._typeAhead_timer),c._typeAhead_timer=void 0),c._typeAhead_chars=(void 0===c._typeAhead_chars?"":c._typeAhead_chars).concat(d),c._typeAhead_chars.length<2||c._typeAhead_chars.substr(-2,1)===d&&c._typeAhead_cycling?(c._typeAhead_cycling=!0,e=d):(c._typeAhead_cycling=!1,e=c._typeAhead_chars);for(var g=("focus"!==b?this._selectedOptionLi().data("index"):this._focusedOptionLi().data("index"))||0,h=0;h<this._optionLis.length;h++){var i=this._optionLis.eq(h).text().substr(0,e.length).toLowerCase();if(i===e)if(c._typeAhead_cycling){if(null===f&&(f=h),h>g){f=h;break}}else f=h}null!==f&&this._optionLis.eq(f).find("a").trigger(b),c._typeAhead_timer=window.setTimeout(function(){c._typeAhead_timer=void 0,c._typeAhead_chars=void 0,c._typeAhead_cycling=void 0},c.options.typeAhead)},_uiHash:function(){var b=this.index();return{index:b,option:a("option",this.element).get(b),value:this.element[0].value}},open:function(a){if("true"!=this.newelement.attr("aria-disabled")){var b=this,c=this.options,d=this._selectedOptionLi(),e=d.find("a");b._closeOthers(a),b.newelement.addClass("ui-state-active"),b.list.attr("aria-hidden",!1),b.listWrap.addClass("ui-selectmenu-open"),"dropdown"==c.style?b.newelement.removeClass("ui-corner-all").addClass("ui-corner-top"):this.list.css("left",-5e3).scrollTop(this.list.scrollTop()+d.position().top-this.list.outerHeight()/2+d.outerHeight()/2).css("left","auto"),b._refreshPosition(),e.length&&e[0].focus(),b.isOpen=!0,b._trigger("open",a,b._uiHash())}},close:function(a,b){this.newelement.is(".ui-state-active")&&(this.newelement.removeClass("ui-state-active"),this.listWrap.removeClass("ui-selectmenu-open"),this.list.attr("aria-hidden",!0),"dropdown"==this.options.style&&this.newelement.removeClass("ui-corner-top").addClass("ui-corner-all"),b&&this.newelement.focus(),this.isOpen=!1,this._trigger("close",a,this._uiHash()))},change:function(a){this.element.trigger("change"),this._trigger("change",a,this._uiHash())},select:function(a){return this._disabled(a.currentTarget)?!1:void this._trigger("select",a,this._uiHash())},widget:function(){return this.listWrap.add(this.newelementWrap)},_closeOthers:function(b){a(".ui-selectmenu.ui-state-active").not(this.newelement).each(function(){a(this).data("selectelement").selectmenu("close",b)}),a(".ui-selectmenu.ui-state-hover").trigger("mouseout")},_toggle:function(a,b){this.isOpen?this.close(a,b):this.open(a)},_formatText:function(b,c){return this.options.format?b=this.options.format(b,c):this.options.escapeHtml&&(b=a("<div />").text(b).html()),b},_selectedIndex:function(){return this.element[0].selectedIndex},_selectedOptionLi:function(){return this._optionLis.eq(this._selectedIndex())},_focusedOptionLi:function(){return this.list.find(".ui-selectmenu-item-focus")},_moveSelection:function(a,b){if(!this.options.disabled){var c=parseInt(this._selectedOptionLi().data("index")||0,10),d=c+a;if(0>d&&(d=0),d>this._optionLis.size()-1&&(d=this._optionLis.size()-1),d===b)return!1;this._optionLis.eq(d).hasClass("ui-state-disabled")?(a>0?++a:--a,this._moveSelection(a,d)):this._optionLis.eq(d).trigger("mouseover").trigger("mouseup")}},_moveFocus:function(a,b){var c;if(isNaN(a))c=parseInt(this._optionLis.filter(a).data("index"),10);else{var d=parseInt(this._focusedOptionLi().data("index")||0,10);c=d+a}if(0>c&&(c=0),c>this._optionLis.size()-1&&(c=this._optionLis.size()-1),c===b)return!1;var e="ui-selectmenu-item-"+Math.round(1e3*Math.random());this._focusedOptionLi().find("a:eq(0)").attr("id",""),this._optionLis.eq(c).hasClass("ui-state-disabled")?(a>0?++a:--a,this._moveFocus(a,c)):this._optionLis.eq(c).find("a:eq(0)").attr("id",e).focus(),this.list.attr("aria-activedescendant",e)},_scrollPage:function(a){var b=Math.floor(this.list.outerHeight()/this._optionLis.first().outerHeight());b="up"==a?-b:b,this._moveFocus(b)},_setOption:function(a,b){this.options[a]=b,"disabled"==a&&(b&&this.close(),this.element.add(this.newelement).add(this.list)[b?"addClass":"removeClass"]("ui-selectmenu-disabled ui-state-disabled").attr("aria-disabled",b))},disable:function(a,b){"undefined"==typeof a?this._setOption("disabled",!0):"optgroup"==b?this._toggleOptgroup(a,!1):this._toggleOption(a,!1)},enable:function(a,b){"undefined"==typeof a?this._setOption("disabled",!1):"optgroup"==b?this._toggleOptgroup(a,!0):this._toggleOption(a,!0)},_disabled:function(b){return a(b).hasClass("ui-state-disabled")},_toggleOption:function(a,b){var c=this._optionLis.eq(a);c&&(c.toggleClass("ui-state-disabled",b).find("a").attr("aria-disabled",!b),b?this.element.find("option").eq(a).attr("disabled","disabled"):this.element.find("option").eq(a).removeAttr("disabled"))},_toggleOptgroup:function(a,b){var c=this.list.find("li.ui-selectmenu-group-"+a);c&&(c.toggleClass("ui-state-disabled",b).attr("aria-disabled",!b),b?this.element.find("optgroup").eq(a).attr("disabled","disabled"):this.element.find("optgroup").eq(a).removeAttr("disabled"))},index:function(b){return arguments.length?this._disabled(a(this._optionLis[b]))||b==this._selectedIndex()?!1:(this.element[0].selectedIndex=b,this._refreshValue(),this.change(),void 0):this._selectedIndex()},value:function(a){return arguments.length&&a!=this.element[0].value?(this.element[0].value=a,this._refreshValue(),this.change(),void 0):this.element[0].value},_refreshValue:function(){var a="popup"==this.options.style?" ui-state-active":"",b="ui-selectmenu-item-"+Math.round(1e3*Math.random());this.list.find(".ui-selectmenu-item-selected").removeClass("ui-selectmenu-item-selected"+a).find("a").attr("aria-selected","false").attr("id",""),this._selectedOptionLi().addClass("ui-selectmenu-item-selected"+a).find("a").attr("aria-selected","true").attr("id",b);var c=this.newelement.data("optionClasses")?this.newelement.data("optionClasses"):"",d=this._selectedOptionLi().data("optionClasses")?this._selectedOptionLi().data("optionClasses"):"";this.newelement.removeClass(c).data("optionClasses",d).addClass(d).find(".ui-selectmenu-status").html(this._selectedOptionLi().find("a:eq(0)").html()),this.list.attr("aria-activedescendant",b)},_refreshPosition:function(){var b=this.options,c={of:this.newelement,my:"left top",at:"left bottom",collision:"flip"};if("popup"==b.style){var d=this._selectedOptionLi();c.my="left top"+(this.list.offset().top-d.offset().top-(this.newelement.outerHeight()+d.outerHeight())/2),c.collision="fit"}this.listWrap.removeAttr("style").zIndex(this.element.zIndex()+2).position(a.extend(c,b.positionOptions))}})}(jQuery),function(a){var b;"function"==typeof b&&b.amd?b(["jquery"],a):a(jQuery)}(function(a){function b(a){return a}function c(a){return decodeURIComponent(a.replace(e," "))}function d(a){0===a.indexOf('"')&&(a=a.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return f.json?JSON.parse(a):a}catch(b){}}var e=/\+/g,f=a.cookie=function(e,g,h){if(void 0!==g){if(h=a.extend({},f.defaults,h),"number"==typeof h.expires){var i=h.expires,j=h.expires=new Date;j.setDate(j.getDate()+i)}return g=f.json?JSON.stringify(g):String(g),document.cookie=[f.raw?e:encodeURIComponent(e),"=",f.raw?g:encodeURIComponent(g),h.expires?"; expires="+h.expires.toUTCString():"",h.path?"; path="+h.path:"",h.domain?"; domain="+h.domain:"",h.secure?"; secure":""].join(""),document}for(var k=f.raw?b:c,l=document.cookie.split("; "),m=e?void 0:{},n=0,o=l.length;o>n;n++){var p=l[n].split("="),q=k(p.shift()),r=k(p.join("="));if(e&&e===q){m=d(r);break}e||(m[q]=d(r))}return m};f.defaults={},a.removeCookie=function(b,c){return void 0!==a.cookie(b)?(a.cookie(b,"",a.extend({},c,{expires:-1})),!0):!1}});
1
+ /*! event-organiser 3.6.0-0-g619ade6 2017-11-25 22:52 */
2
+ var eventorganiser=eventorganiser||{};eventorganiser.versionCompare=function(a,b){if(typeof a+typeof b!="stringstring")return!1;for(var c=a.split("."),d=b.split("."),e=0,f=Math.max(c.length,d.length);f>e;e++){if(c[e]&&!d[e]&&parseInt(c[e],10)>0||parseInt(c[e],10)>parseInt(d[e],10))return 1;if(d[e]&&!c[e]&&parseInt(d[e],10)>0||parseInt(c[e],10)<parseInt(d[e],10))return-1}return 0},function(a){a(document).ready(function(){function b(){var b=a("<span class='fc-header-goto'><input type='hidden' id='miniCalendar'/></span>");return b}function c(b){a(".view-button").removeClass("nav-tab-active"),g.fullCalendar("changeView",b),a("#"+b).addClass("nav-tab-active")}function d(b){var c=b.categories;if(c){var d="<select class='eo-cal-filter' id='eo-event-cat'>";d+="<option value=''>"+b.buttonText.cat+"</option>";for(var e=0;e<c.length;e++)d+="<option class='cat-slug-"+c[e].slug+" cat' value='"+c[e].slug+"'>"+c[e].name+"</option>";return d+="</select>",a("<span class='fc-header-dropdown filter-category'></span>").append(d)}}function e(b){var c=b.venues;if(c){var d="<select class='eo-cal-filter' id='eo-event-venue'>";d+="<option value=''>"+b.buttonText.venue+"</option>";for(var e=0;e<c.length;e++)d+="<option value='"+c[e].term_id+"'>"+c[e].name+"</option>";return d+="</select>",a("<span class='fc-header-dropdown filter-venue'></span>").append(d)}}a("#eo-dialog-tabs").tabs(),a(".eo-dialog").dialog({autoOpen:!1,dialogClass:"eo-admin-calendar-dialog",width:527,modal:!0,closeText:"Close modal",draggable:!1,open:function(b,c){a(this).parent(".eo-admin-calendar-dialog").focus()}}),a(".eo-dialog").parent().find(".ui-dialog-titlebar-close").addClass("eo-ui-button"),a("#events-meta").parent().find(".ui-dialog-titlebar-close").appendTo(".ui-tabs-nav").closest(".ui-dialog").children(".ui-dialog-titlebar").remove();var f=a("#eofc_time_format").is(":checked")?"HH:mm":"h:mma",g=jQuery("#eo_admin_calendar").fullCalendar({firstDay:parseInt(EO_Ajax.startday,10),defaultDate:moment(a.cookie("eo_admin_cal_last_viewed_date")),defaultView:a.cookie("eo_admin_cal_last_view")?a.cookie("eo_admin_cal_last_view"):"month",editable:EO_Ajax.perm_edit,eventDurationEditable:!1,eventStartEditable:EO_Ajax.edit_time,durationEditable:!1,snapDuration:"00:05:00",slotDuration:"00:15:00",eventDrop:function(b,c,d,e,f,g){return b.end?void a.ajax({type:"POST",url:EO_Ajax.ajaxurl,data:{action:"eofc-edit-date",start:b.start.format("YYYY-MM-DD HH:mm:ss"),end:b.end.format("YYYY-MM-DD HH:mm:ss"),event_id:b.event_id,occurrence_id:b.occurrence_id,_wpnonce:EO_Ajax.edit_nonce},dataType:"json"}).done(function(a){a.success!==!0&&(alert(a.data.message),d())}).fail(function(a,b,c){alert("Error: "+c),d()}):(alert("Changing the event duration is not supported"),void d())},lazyFetching:"true",eventColor:"#21759B",theme:!1,customButtons:{category:d,venue:""!==EO_Ajax.venues?e:null,"goto":b},buttonText:{today:EO_Ajax.locale.today,month:EO_Ajax.locale.month,week:EO_Ajax.locale.week,day:EO_Ajax.locale.day,cat:EO_Ajax.locale.cat,venue:EO_Ajax.locale.venue,prev:"<",next:">"},monthNames:EO_Ajax.locale.monthNames,monthNamesShort:EO_Ajax.locale.monthAbbrev,dayNames:EO_Ajax.locale.dayNames,dayNamesShort:EO_Ajax.locale.dayAbbrev,isRTL:EO_Ajax.locale.isrtl,header:{left:"title",center:"category venue",right:"prev goto today next"},buttonIcons:!1,buttonui:!0,events:function(a,b,c,d){jQuery.ajax({url:EO_Ajax.ajaxurl+"?action=event-admin-cal",dataType:"JSON",data:{start:a.format("YYYY-MM-DD"),end:b.format("YYYY-MM-DD")},success:d})},categories:EO_Ajax.categories,venues:EO_Ajax.venues,selectable:!0,selectHelper:!0,eventRender:function(a,b){var c=jQuery(".filter-category .eo-cal-filter").val(),d=jQuery(".filter-venue .eo-cal-filter").val();return"undefined"!=typeof c&&""!==c&&jQuery.inArray(c,a.category)<0?"<div></div>":"undefined"!=typeof d&&""!==d&&d!=a.venue?"<div></div>":void 0},viewRender:function(b,c){var d=b.intervalStart.format("YYYY-MM-DD"),e=new Date;e=new Date(e.getTime()+6e5),a.cookie("eo_admin_cal_last_viewed_date",d,{expires:e}),a.cookie("eo_admin_cal_last_view",b.name,{expires:e})},weekMode:"variable",loading:function(a){a?jQuery("#loading").show():jQuery("#loading").hide()},timeFormat:f,axisFormat:f,eventClick:function(b,c,d){c.preventDefault(),a("#eo-dialog-tabs ul li").each(function(){var c=a(this).attr("id").substring(14);a("#eo-dialog-tabs #"+a(this).attr("id")+"-content").html(b[c])}),a("#events-meta").dialog("open")},select:function(b,c,d,e){if(EO_Ajax.perm_edit){d.preventDefault();var g=(jQuery(this)[0].calendar.options,b.format("YYYY-MM-DD")),h=b.format("HH:mm");b.hasTime()?(f="ddd, Do MMMM h:mma",allDay=0):(c.subtract(1,"minute"),f="ddd, Do MMMM",allDay=1);var i=c.format("YYYY-MM-DD"),j=c.format("HH:mm"),k=a.fullCalendar.formatRange(b,c,f);a("#eo_event_create_cal input[name='eo_event[event_title]']").val(""),a("#eo_event_create_cal input.ui-autocomplete-input").val(""),a("#eo_event_create_cal textarea[name='eo_event[event_content]']").val(""),a("#eo_event_create_cal input[name='eo_event[StartDate]']").val(g),a("#eo_event_create_cal input[name='eo_event[StartTime]']").val(h),a("#eo_event_create_cal input[name='eo_event[EndDate]']").val(i),a("#eo_event_create_cal input[name='eo_event[FinishTime]']").val(j),a("#eo_event_create_cal input[name='eo_event[allday]']").val(allDay),a("#eo_event_create_cal td#date").html(k),a("#eo_event_create_cal").dialog("open"),a("form.eo_cal input[type='submit']").removeAttr("disabled"),a("form.eo_cal input#reset").click(function(b){a("#eo_event_create_cal").dialog("close")})}}});a("#eofc_time_format").change(function(){f=a("#eofc_time_format").is(":checked")?"HH:mm":"h:mmtt",g.fullCalendar("option","timeFormat",f),a.post(ajaxurl,{action:"eofc-format-time",is24:a("#eofc_time_format").is(":checked")})}),a(".view-button").click(function(b){b.preventDefault(),c(a(this).attr("id"))}),a(window).on("keypress",function(b){if(!(a(b.target).closest(".ui-dialog").length>0)){switch(b.which){case 49:case 109:case 77:c("month");break;case 50:case 119:case 87:c("agendaWeek");break;case 51:case 100:case 68:c("agendaDay");break;case 116:case 84:g.fullCalendar("today");break;case 103:case 71:break;case 110:case 78:case 106:case 74:g.fullCalendar("next");break;case 107:case 75:case 112:case 80:g.fullCalendar("prev");break;case 63:a("#eo-keyboard-shortcuts").dialog("open");break;default:return}b.preventDefault()}}),a("#eo-keyboard-shortcuts").dialog({autoOpen:!1,dialogClass:"eo-admin-calendar-dialog",title:"Keyboard shortcuts",closeText:"Close modal",draggable:!1,modal:!0,open:function(b,c){a(this).parent(".eo-admin-calendar-dialog").focus()}}),a("#eo-keyboard-sr-shortcut").on("click",function(b){b.preventDefault(),a("#eo-keyboard-shortcuts").dialog("open")});var h=a("#adminmenumain .screen-reader-shortcut");h.length>0&&a("#eo-keyboard-sr-shortcut").insertAfter(h.last()),a("#miniCalendar").datepicker({dateFormat:"DD, d MM, yy",firstDay:parseInt(EO_Ajax.startday,10),changeMonth:!0,monthNamesShort:EO_Ajax.locale.monthAbbrev,dayNamesMin:EO_Ajax.locale.dayAbbrev,changeYear:!0,showOn:"button",buttonText:EO_Ajax.locale.gotodate,onSelect:function(a,b){g.fullCalendar("gotoDate",new Date(Date.parse(a)))}}),a("button.ui-datepicker-trigger").button().addClass("fc-button"),a.widget("ui.combobox",{_create:function(){var b=this.element.hide(),c=b.attr("id"),d=b.children(":selected"),e=d.val()?d.text():"",f=a("<span>").addClass("ui-combobox eo-venue-input").insertAfter(b),g=a('<input type="hidden" name="'+b.attr("name")+'" value="'+e+'"/>'),h=a("<input>").attr("id",c).appendTo(f).val(e).addClass("ui-combobox-input"),i={delay:0,minLength:0,source:function(b,c){h.addClass("eo-waiting"),a.getJSON(EO_Ajax.ajaxurl+"?action=eo-search-venue",b,function(b){var d=a.map(b,function(a){return a.label=a.name,a});c(d),h.removeClass("eo-waiting")})},select:function(a,b){g.val(b.item.term_id)}};h.autocomplete(i).addClass("ui-widget-content ui-corner-left"),this.element.replaceWith(g);var j=a.ui?a.ui.version||0:-1,k=eventorganiser.versionCompare(j,"1.10")>=0?"ui-autocomplete":"autocomplete";h.data(k)._renderItem=function(b,c){if(0===c.term_id)return a("<li></li>").data(k+"-item",c).append("<a>"+c.label+"</a>").appendTo(b);var d=[c.venue_address,c.venue_city,c.venue_state,c.venue_postcode,c.venue_country],e=a.grep(d,function(a){return a}).join(", "),f=eventorganiser.versionCompare(j,"1.10")>=0?"ui-autocomplete-item":"item.autocomplete";return a("<li></li>").data(f,c).append("<a>"+c.label+"</br> <span style='font-size: 0.8em'><em>"+e+"</span></em></a>").appendTo(b)};var l=a("<span>").addClass("eo-venue-combobox-buttons").appendTo(f);a("<a href='#' style='vertical-align: top;margin: 0px -1px;padding: 0px;height:26px;'>").attr("title","Show All Venues").appendTo(l).button({icons:{primary:"ui-icon-triangle-1-s"},text:!1}).removeClass("ui-corner-all").addClass("eo-ui-button ui-corner-right ui-combobox-toggle ui-combobox-button").mousedown(function(){wasOpen=h.autocomplete("widget").is(":visible")}).click(function(b){b.preventDefault(),wasOpen||(a(this).blur(),h.autocomplete("search","").focus())})}}),a("#venue_select").combobox(),a(".eo-cal-filter").change(function(){g.fullCalendar("rerenderEvents")}),a(".filter-venue .eo-cal-filter").selectmenu({wrapperElement:"<span class='fc-header-filter'></span>"}),a(".filter-category .eo-cal-filter").selectmenu({wrapperElement:"<span class='fc-header-filter'></span>",icons:[{find:".cat"}]});var i=a("#eo-event-venue-button").width()+30;a("#eo-event-venue-button").width(i+"px"),a("#eo-event-venue-menu").width(i+"px");var j=a("#eo-event-cat-button").width()+30;a("#eo-event-cat-button").width(j+"px"),a("#eo-event-cat-menu").width(j+"px")})}(jQuery),function(a){a.widget("ui.selectmenu",{options:{appendTo:"body",typeAhead:1e3,style:"dropdown",positionOptions:null,width:null,menuWidth:null,handleWidth:26,maxHeight:null,icons:null,format:null,escapeHtml:!1,bgImage:function(){}},_create:function(){var b=this,c=this.options,d=a.ui?a.ui.version||0:-1,e=eventorganiser.versionCompare(d,"1.9")>=0?this.element.uniqueId().attr("id"):this.element.attr("id")||"ui-selectmenu-"+Math.random().toString(16).slice(2,10);this.ids=[e,e+"-button",e+"-menu"],this._safemouseup=!0,this.isOpen=!1,this.newelement=a("<a />",{"class":"ui-selectmenu ui-widget ui-state-default ui-corner-all",id:this.ids[1],role:"button",href:"#nogo",tabindex:this.element.attr("disabled")?1:0,"aria-haspopup":!0,"aria-owns":this.ids[2]}),this.newelementWrap=a("<span />").append(this.newelement).insertAfter(this.element);var f=this.element.attr("tabindex");f&&this.newelement.attr("tabindex",f),this.newelement.data("selectelement",this.element),this.selectmenuIcon=a('<span class="ui-selectmenu-icon ui-icon"></span>').prependTo(this.newelement),this.newelement.prepend('<span class="ui-selectmenu-status" />'),this.element.bind({"click.selectmenu":function(a){b.newelement.focus(),a.preventDefault()}}),this.newelement.bind("mousedown.selectmenu",function(a){b._toggle(a,!0),"popup"==c.style&&(b._safemouseup=!1,setTimeout(function(){b._safemouseup=!0},300)),a.preventDefault()}).bind("click.selectmenu",function(a){a.preventDefault()}).bind("keydown.selectmenu",function(c){var d=!1;switch(c.keyCode){case a.ui.keyCode.ENTER:d=!0;break;case a.ui.keyCode.SPACE:b._toggle(c);break;case a.ui.keyCode.UP:c.altKey?b.open(c):b._moveSelection(-1);break;case a.ui.keyCode.DOWN:c.altKey?b.open(c):b._moveSelection(1);break;case a.ui.keyCode.LEFT:b._moveSelection(-1);break;case a.ui.keyCode.RIGHT:b._moveSelection(1);break;case a.ui.keyCode.TAB:d=!0;break;case a.ui.keyCode.PAGE_UP:case a.ui.keyCode.HOME:b.index(0);break;case a.ui.keyCode.PAGE_DOWN:case a.ui.keyCode.END:b.index(b._optionLis.length);break;default:d=!0}return d}).bind("keypress.selectmenu",function(a){return a.which>0&&b._typeAhead(a.which,"mouseup"),!0}).bind("mouseover.selectmenu",function(){c.disabled||a(this).addClass("ui-state-hover")}).bind("mouseout.selectmenu",function(){c.disabled||a(this).removeClass("ui-state-hover")}).bind("focus.selectmenu",function(){c.disabled||a(this).addClass("ui-state-focus")}).bind("blur.selectmenu",function(){c.disabled||a(this).removeClass("ui-state-focus")}),a(document).bind("mousedown.selectmenu-"+this.ids[0],function(c){b.isOpen&&!a(c.target).closest("#"+b.ids[1]).length&&b.close(c)}),this.element.bind("click.selectmenu",function(){b._refreshValue()}).bind("focus.selectmenu",function(){b.newelement&&b.newelement[0].focus()}),c.width||(c.width=this.element.outerWidth()),this.newelement.width(c.width),this.element.hide(),this.list=a("<ul />",{"class":"ui-widget ui-widget-content","aria-hidden":!0,role:"listbox","aria-labelledby":this.ids[1],id:this.ids[2]}),this.listWrap=a("<div />",{"class":"ui-selectmenu-menu"}).append(this.list).appendTo(c.appendTo),this.list.bind("keydown.selectmenu",function(c){var d=!1;switch(c.keyCode){case a.ui.keyCode.UP:c.altKey?b.close(c,!0):b._moveFocus(-1);break;case a.ui.keyCode.DOWN:c.altKey?b.close(c,!0):b._moveFocus(1);break;case a.ui.keyCode.LEFT:b._moveFocus(-1);break;case a.ui.keyCode.RIGHT:b._moveFocus(1);break;case a.ui.keyCode.HOME:b._moveFocus(":first");break;case a.ui.keyCode.PAGE_UP:b._scrollPage("up");break;case a.ui.keyCode.PAGE_DOWN:b._scrollPage("down");break;case a.ui.keyCode.END:b._moveFocus(":last");break;case a.ui.keyCode.ENTER:case a.ui.keyCode.SPACE:b.close(c,!0),a(c.target).parents("li:eq(0)").trigger("mouseup");break;case a.ui.keyCode.TAB:d=!0,b.close(c,!0),a(c.target).parents("li:eq(0)").trigger("mouseup");break;case a.ui.keyCode.ESCAPE:b.close(c,!0);break;default:d=!0}return d}).bind("keypress.selectmenu",function(a){return a.which>0&&b._typeAhead(a.which,"focus"),!0}).bind("mousedown.selectmenu mouseup.selectmenu",function(){return!1}),a(window).bind("resize.selectmenu-"+this.ids[0],a.proxy(b.close,this))},_init:function(){var b=this,c=this.options,d=[];this.element.find("option").each(function(){var e=a(this);d.push({value:e.attr("value"),text:b._formatText(e.text(),e),selected:e.attr("selected"),disabled:e.attr("disabled"),classes:e.attr("class"),typeahead:e.attr("typeahead"),parentOptGroup:e.parent("optgroup"),bgImage:c.bgImage.call(e)})});var e="popup"==b.options.style?" ui-state-active":"";if(this.list.html(""),d.length)for(var f=0;f<d.length;f++){var g={role:"presentation"};d[f].disabled&&(g["class"]="ui-state-disabled");var h={html:d[f].text||"&nbsp;",href:"#nogo",tabindex:-1,role:"option","aria-selected":!1};d[f].disabled&&(h["aria-disabled"]=d[f].disabled),d[f].typeahead&&(h.typeahead=d[f].typeahead);var i=a("<a/>",h).bind("focus.selectmenu",function(){a(this).parent().mouseover()}).bind("blur.selectmenu",function(){a(this).parent().mouseout()}),j=a("<li/>",g).append(i).data("index",f).addClass(d[f].classes).data("optionClasses",d[f].classes||"").bind("mouseup.selectmenu",function(c){return!b._safemouseup||b._disabled(c.currentTarget)||b._disabled(a(c.currentTarget).parents("ul > li.ui-selectmenu-group "))||(b.index(a(this).data("index")),b.select(c),b.close(c,!0)),!1}).bind("click.selectmenu",function(){return!1}).bind("mouseover.selectmenu",function(c){a(this).hasClass("ui-state-disabled")||a(this).parent("ul").parent("li").hasClass("ui-state-disabled")||(c.optionValue=b.element[0].options[a(this).data("index")].value,b._trigger("hover",c,b._uiHash()),b._selectedOptionLi().addClass(e),b._focusedOptionLi().removeClass("ui-selectmenu-item-focus ui-state-hover"),a(this).removeClass("ui-state-active").addClass("ui-selectmenu-item-focus ui-state-hover"))}).bind("mouseout.selectmenu",function(c){a(this).is(b._selectedOptionLi())&&a(this).addClass(e),c.optionValue=b.element[0].options[a(this).data("index")].value,b._trigger("blur",c,b._uiHash()),a(this).removeClass("ui-selectmenu-item-focus ui-state-hover")});if(d[f].parentOptGroup.length){var k="ui-selectmenu-group-"+this.element.find("optgroup").index(d[f].parentOptGroup);this.list.find("li."+k).length?this.list.find("li."+k+":last ul").append(j):a('<li role="presentation" class="ui-selectmenu-group '+k+(d[f].parentOptGroup.attr("disabled")?' ui-state-disabled" aria-disabled="true"':'"')+'><span class="ui-selectmenu-group-label">'+d[f].parentOptGroup.attr("label")+"</span><ul></ul></li>").appendTo(this.list).find("ul").append(j)}else j.appendTo(this.list);if(c.icons)for(var l in c.icons)if(j.is(c.icons[l].find)){j.data("optionClasses",d[f].classes+" ui-selectmenu-hasIcon").addClass("ui-selectmenu-hasIcon");var m=c.icons[l].icon||"";j.find("a:eq(0)").prepend('<span class="ui-selectmenu-item-icon ui-icon '+m+'"></span>'),d[f].bgImage&&j.find("span").css("background-image",d[f].bgImage)}}else a(' <li role="presentation"><a href="#nogo" tabindex="-1" role="option"></a></li>').appendTo(this.list);var n="dropdown"==c.style;this.newelement.toggleClass("ui-selectmenu-dropdown",n).toggleClass("ui-selectmenu-popup",!n),this.list.toggleClass("ui-selectmenu-menu-dropdown ui-corner-bottom",n).toggleClass("ui-selectmenu-menu-popup ui-corner-all",!n).find("li:first").toggleClass("ui-corner-top",!n).end().find("li:last").addClass("ui-corner-bottom"),this.selectmenuIcon.toggleClass("ui-icon-triangle-1-s",n).toggleClass("ui-icon-triangle-2-n-s",!n),"dropdown"==c.style?this.list.width(c.menuWidth?c.menuWidth:c.width):this.list.width(c.menuWidth?c.menuWidth:c.width-c.handleWidth),this.list.css("height","auto");var o=this.listWrap.height(),p=a(window).height(),q=c.maxHeight?Math.min(c.maxHeight,p):p/3;o>q&&this.list.height(q),this._optionLis=this.list.find("li:not(.ui-selectmenu-group)"),this.element.attr("disabled")?this.disable():this.enable(),this._refreshValue(),this._selectedOptionLi().addClass("ui-selectmenu-item-focus"),clearTimeout(this.refreshTimeout),this.refreshTimeout=window.setTimeout(function(){b._refreshPosition()},200)},destroy:function(){this.element.removeData(this.widgetName).removeClass("ui-selectmenu-disabled ui-state-disabled").removeAttr("aria-disabled").unbind(".selectmenu"),a(window).unbind(".selectmenu-"+this.ids[0]),a(document).unbind(".selectmenu-"+this.ids[0]),this.newelementWrap.remove(),this.listWrap.remove(),this.element.unbind(".selectmenu").show(),a.Widget.prototype.destroy.apply(this,arguments)},_typeAhead:function(a,b){var c=this,d=String.fromCharCode(a).toLowerCase(),e=null,f=null;c._typeAhead_timer&&(window.clearTimeout(c._typeAhead_timer),c._typeAhead_timer=void 0),c._typeAhead_chars=(void 0===c._typeAhead_chars?"":c._typeAhead_chars).concat(d),c._typeAhead_chars.length<2||c._typeAhead_chars.substr(-2,1)===d&&c._typeAhead_cycling?(c._typeAhead_cycling=!0,e=d):(c._typeAhead_cycling=!1,e=c._typeAhead_chars);for(var g=("focus"!==b?this._selectedOptionLi().data("index"):this._focusedOptionLi().data("index"))||0,h=0;h<this._optionLis.length;h++){var i=this._optionLis.eq(h).text().substr(0,e.length).toLowerCase();if(i===e)if(c._typeAhead_cycling){if(null===f&&(f=h),h>g){f=h;break}}else f=h}null!==f&&this._optionLis.eq(f).find("a").trigger(b),c._typeAhead_timer=window.setTimeout(function(){c._typeAhead_timer=void 0,c._typeAhead_chars=void 0,c._typeAhead_cycling=void 0},c.options.typeAhead)},_uiHash:function(){var b=this.index();return{index:b,option:a("option",this.element).get(b),value:this.element[0].value}},open:function(a){if("true"!=this.newelement.attr("aria-disabled")){var b=this,c=this.options,d=this._selectedOptionLi(),e=d.find("a");b._closeOthers(a),b.newelement.addClass("ui-state-active"),b.list.attr("aria-hidden",!1),b.listWrap.addClass("ui-selectmenu-open"),"dropdown"==c.style?b.newelement.removeClass("ui-corner-all").addClass("ui-corner-top"):this.list.css("left",-5e3).scrollTop(this.list.scrollTop()+d.position().top-this.list.outerHeight()/2+d.outerHeight()/2).css("left","auto"),b._refreshPosition(),e.length&&e[0].focus(),b.isOpen=!0,b._trigger("open",a,b._uiHash())}},close:function(a,b){this.newelement.is(".ui-state-active")&&(this.newelement.removeClass("ui-state-active"),this.listWrap.removeClass("ui-selectmenu-open"),this.list.attr("aria-hidden",!0),"dropdown"==this.options.style&&this.newelement.removeClass("ui-corner-top").addClass("ui-corner-all"),b&&this.newelement.focus(),this.isOpen=!1,this._trigger("close",a,this._uiHash()))},change:function(a){this.element.trigger("change"),this._trigger("change",a,this._uiHash())},select:function(a){return this._disabled(a.currentTarget)?!1:void this._trigger("select",a,this._uiHash())},widget:function(){return this.listWrap.add(this.newelementWrap)},_closeOthers:function(b){a(".ui-selectmenu.ui-state-active").not(this.newelement).each(function(){a(this).data("selectelement").selectmenu("close",b)}),a(".ui-selectmenu.ui-state-hover").trigger("mouseout")},_toggle:function(a,b){this.isOpen?this.close(a,b):this.open(a)},_formatText:function(b,c){return this.options.format?b=this.options.format(b,c):this.options.escapeHtml&&(b=a("<div />").text(b).html()),b},_selectedIndex:function(){return this.element[0].selectedIndex},_selectedOptionLi:function(){return this._optionLis.eq(this._selectedIndex())},_focusedOptionLi:function(){return this.list.find(".ui-selectmenu-item-focus")},_moveSelection:function(a,b){if(!this.options.disabled){var c=parseInt(this._selectedOptionLi().data("index")||0,10),d=c+a;if(0>d&&(d=0),d>this._optionLis.size()-1&&(d=this._optionLis.size()-1),d===b)return!1;this._optionLis.eq(d).hasClass("ui-state-disabled")?(a>0?++a:--a,this._moveSelection(a,d)):this._optionLis.eq(d).trigger("mouseover").trigger("mouseup")}},_moveFocus:function(a,b){var c;if(isNaN(a))c=parseInt(this._optionLis.filter(a).data("index"),10);else{var d=parseInt(this._focusedOptionLi().data("index")||0,10);c=d+a}if(0>c&&(c=0),c>this._optionLis.size()-1&&(c=this._optionLis.size()-1),c===b)return!1;var e="ui-selectmenu-item-"+Math.round(1e3*Math.random());this._focusedOptionLi().find("a:eq(0)").attr("id",""),this._optionLis.eq(c).hasClass("ui-state-disabled")?(a>0?++a:--a,this._moveFocus(a,c)):this._optionLis.eq(c).find("a:eq(0)").attr("id",e).focus(),this.list.attr("aria-activedescendant",e)},_scrollPage:function(a){var b=Math.floor(this.list.outerHeight()/this._optionLis.first().outerHeight());b="up"==a?-b:b,this._moveFocus(b)},_setOption:function(a,b){this.options[a]=b,"disabled"==a&&(b&&this.close(),this.element.add(this.newelement).add(this.list)[b?"addClass":"removeClass"]("ui-selectmenu-disabled ui-state-disabled").attr("aria-disabled",b))},disable:function(a,b){"undefined"==typeof a?this._setOption("disabled",!0):"optgroup"==b?this._toggleOptgroup(a,!1):this._toggleOption(a,!1)},enable:function(a,b){"undefined"==typeof a?this._setOption("disabled",!1):"optgroup"==b?this._toggleOptgroup(a,!0):this._toggleOption(a,!0)},_disabled:function(b){return a(b).hasClass("ui-state-disabled")},_toggleOption:function(a,b){var c=this._optionLis.eq(a);c&&(c.toggleClass("ui-state-disabled",b).find("a").attr("aria-disabled",!b),b?this.element.find("option").eq(a).attr("disabled","disabled"):this.element.find("option").eq(a).removeAttr("disabled"))},_toggleOptgroup:function(a,b){var c=this.list.find("li.ui-selectmenu-group-"+a);c&&(c.toggleClass("ui-state-disabled",b).attr("aria-disabled",!b),b?this.element.find("optgroup").eq(a).attr("disabled","disabled"):this.element.find("optgroup").eq(a).removeAttr("disabled"))},index:function(b){return arguments.length?this._disabled(a(this._optionLis[b]))||b==this._selectedIndex()?!1:(this.element[0].selectedIndex=b,this._refreshValue(),this.change(),void 0):this._selectedIndex()},value:function(a){return arguments.length&&a!=this.element[0].value?(this.element[0].value=a,this._refreshValue(),this.change(),void 0):this.element[0].value},_refreshValue:function(){var a="popup"==this.options.style?" ui-state-active":"",b="ui-selectmenu-item-"+Math.round(1e3*Math.random());this.list.find(".ui-selectmenu-item-selected").removeClass("ui-selectmenu-item-selected"+a).find("a").attr("aria-selected","false").attr("id",""),this._selectedOptionLi().addClass("ui-selectmenu-item-selected"+a).find("a").attr("aria-selected","true").attr("id",b);var c=this.newelement.data("optionClasses")?this.newelement.data("optionClasses"):"",d=this._selectedOptionLi().data("optionClasses")?this._selectedOptionLi().data("optionClasses"):"";this.newelement.removeClass(c).data("optionClasses",d).addClass(d).find(".ui-selectmenu-status").html(this._selectedOptionLi().find("a:eq(0)").html()),this.list.attr("aria-activedescendant",b)},_refreshPosition:function(){var b=this.options,c={of:this.newelement,my:"left top",at:"left bottom",collision:"flip"};if("popup"==b.style){var d=this._selectedOptionLi();c.my="left top"+(this.list.offset().top-d.offset().top-(this.newelement.outerHeight()+d.outerHeight())/2),c.collision="fit"}this.listWrap.removeAttr("style").zIndex(this.element.zIndex()+2).position(a.extend(c,b.positionOptions))}})}(jQuery),function(a){var b;"function"==typeof b&&b.amd?b(["jquery"],a):a(jQuery)}(function(a){function b(a){return a}function c(a){return decodeURIComponent(a.replace(e," "))}function d(a){0===a.indexOf('"')&&(a=a.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return f.json?JSON.parse(a):a}catch(b){}}var e=/\+/g,f=a.cookie=function(e,g,h){if(void 0!==g){if(h=a.extend({},f.defaults,h),"number"==typeof h.expires){var i=h.expires,j=h.expires=new Date;j.setDate(j.getDate()+i)}return g=f.json?JSON.stringify(g):String(g),document.cookie=[f.raw?e:encodeURIComponent(e),"=",f.raw?g:encodeURIComponent(g),h.expires?"; expires="+h.expires.toUTCString():"",h.path?"; path="+h.path:"",h.domain?"; domain="+h.domain:"",h.secure?"; secure":""].join(""),document}for(var k=f.raw?b:c,l=document.cookie.split("; "),m=e?void 0:{},n=0,o=l.length;o>n;n++){var p=l[n].split("="),q=k(p.shift()),r=k(p.join("="));if(e&&e===q){m=d(r);break}e||(m[q]=d(r))}return m};f.defaults={},a.removeCookie=function(b,c){return void 0!==a.cookie(b)?(a.cookie(b,"",a.extend({},c,{expires:-1})),!0):!1}});
js/edit-event-controller.min.js CHANGED
@@ -1,2 +1,2 @@
1
- /*! event-organiser 3.5.1-0-g786a5d5 2017-11-14 21:45 */
2
  var eventorganiser=eventorganiser||{};eventorganiser.versionCompare=function(a,b){if(typeof a+typeof b!="stringstring")return!1;for(var c=a.split("."),d=b.split("."),e=Math.max(c.length,d.length),f=0;e>f;f++){if(c[f]&&!d[f]&&parseInt(c[f],10)>0||parseInt(c[f],10)>parseInt(d[f],10))return 1;if(d[f]&&!c[f]&&parseInt(d[f],10)>0||parseInt(c[f],10)<parseInt(d[f],10))return-1}return 0},jQuery(document).ready(function(a){var b;eventOrganiserSchedulePicker.init({views:{start_date:"#eo-start-date",start_time:"#eo-start-time",end_date:"#eo-end-date",end_time:"#eo-end-time",occurrence_picker:"#eo-occurrence-datepicker",occurrence_picker_toggle:".eo_occurrence_toggle",schedule_last_date:"#eo-schedule-last-date",schedule:"#eo-event-recurrence",is_all_day:"#eo-all-day",frequency:"#eo-recurrence-frequency",week_repeat:"#eo-day-of-week-repeat",month_repeat:"#eo-day-of-month-repeat",recurrence_section:".reocurrence_row",include:"#eo-occurrence-includes",exclude:"#eo-occurrence-excludes",schedule_span:"#eo-recurrence-schedule-label",summary:"#eo-event-summary"},format:EO_Ajax_Event.format,is24hour:Boolean(EO_Ajax_Event.is24hour),startday:EO_Ajax_Event.startday,schedule:window.eventOrganiserSchedule,locale:EO_Ajax_Event.locale,editable:"once"==a("#eo-event-recurrence").val()}),a("#eo-event-recurrring-notice").click(function(){window.eventOrganiserSchedulePicker.options.editable=a("#eo-event-recurrring-notice").is(":checked"),window.eventOrganiserSchedulePicker.update_form()}),eovenue.init_map("venuemap",{lat:a("#eo_venue_Lat").val(),lng:a("#eo_venue_Lng").val(),draggable:!1,onPositionchanged:function(){var a=this.getPosition();jQuery("#eo_venue_Lat").val(a.lat().toFixed(6)),jQuery("#eo_venue_Lng").val(a.lng().toFixed(6)),this.getMap().setCenter(a),google.maps.event.trigger(eovenue.get_map("venuemap").map,"resize"),this.getMap().setZoom(15)}}),a.widget("ui.combobox",{_create:function(){var c=this.element.hide(),d=c.attr("id"),e=c.children(":selected"),f=e.val()?e.text():"",g=a("<span>").addClass("ui-combobox eo-venue-input").insertAfter(c),h=a('<input type="hidden" name="'+c.attr("name")+'" value="'+e.val()+'"/>'),i=a("<input>").attr("id",d).appendTo(g).val(f).addClass("ui-combobox-input"),j={delay:0,minLength:0,source:function(b,c){i.addClass("eo-waiting"),a.getJSON(EO_Ajax_Event.ajaxurl+"?action=eo-search-venue",b,function(b){var d=a.map(b,function(a){return a.label=a.name,a});c(d),i.removeClass("eo-waiting")})},select:function(b,c){if(a(".venue_row").length>0){0===parseInt(c.item.term_id,10)?(a(".venue_row").hide(),a("#eventorganiser_detail .eo-add-new-venue").hide()):(a(".venue_row").show(),a("#eventorganiser_detail .eo-add-new-venue").hide());var d=new google.maps.LatLng(c.item.venue_lat,c.item.venue_lng);eovenue.get_map("venuemap").marker[0].setPosition(d)}h.val(c.item.term_id)}};i.autocomplete(j).addClass("ui-widget-content ui-corner-left"),this.element.replaceWith(h);var k=a.ui?a.ui.version||0:-1,l=eventorganiser.versionCompare(k,"1.10")>=0?"ui-autocomplete":"autocomplete";i.data(l)._renderItem=function(b,c){if(0===parseInt(c.term_id,10))return a("<li></li>").data(l+"-item",c).append("<a>"+c.label+"</a>").appendTo(b);var d=[c.venue_address,c.venue_city,c.venue_state,c.venue_postcode,c.venue_country],e=a.grep(d,function(a){return a}).join(", "),f=eventorganiser.versionCompare(k,"1.10")>=0?"ui-autocomplete-item":"item.autocomplete";return a("<li></li>").data(f,c).append("<a>"+c.label+"</br> <span style='font-size: 0.8em'><em>"+e+"</span></em></a>").appendTo(b)};var m=a("<span>").addClass("eo-venue-combobox-buttons").appendTo(g);a("<a href='#' style='vertical-align: top;margin: 0px -1px;padding: 0px;height:27px;'>").attr("title","Show All Venues").appendTo(m).button({icons:{primary:"ui-icon-triangle-1-s"},text:!1}).removeClass("ui-corner-all").addClass("eo-ui-button ui-corner-right ui-combobox-toggle ui-combobox-button").mousedown(function(){wasOpen=i.autocomplete("widget").is(":visible")}).click(function(b){b.preventDefault(),wasOpen||(a(this).blur(),i.autocomplete("search","").focus())}),EO_Ajax_Event.current_user_can.manage_venues&&a("<a href='#' style='vertical-align: top;margin: 0px -1px;padding: 0px;height:27px;'>").attr("title","Create New Venue").appendTo(m).button({icons:{primary:"ui-icon-plus"},text:!1}).removeClass("ui-corner-all").addClass("eo-ui-button ui-corner-right add-new-venue ui-combobox-button").click(function(c){c.preventDefault(),a("#eventorganiser_detail .eo-add-new-venue").show(),a(".venue_row").show(),b={id:a("[name='eo_input[event-venue]']").val(),label:a(".eo-venue-input input").val(),lat:a("#eo_venue_Lat").val(),lng:a("#eo_venue_Lng").val()},a("[name='eo_input[event-venue]']").val(0),a(".eo-venue-combobox-select").hide(),a(".eo-venue-input input").val("");var d=EO_Ajax_Event.location;if(d)d=d.split("/"),eovenue.geocode(d[d.length-1],function(a){a&&eovenue.get_map("venuemap").marker[0].setPosition(a)});else{var e=new google.maps.LatLng(0,0);eovenue.get_map("venuemap").marker[0].setPosition(e),eovenue.get_map("venuemap").map.setZoom(1)}a("#eventorganiser_detail .eo-add-new-venue input").first().focus()})}}),a("#venue_select").combobox(),a(".eo_addressInput").change(function(){var b=[];a(".eo_addressInput").each(function(){b.push(jQuery(this).val())}),eovenue.geocode(b.join(", "),function(a){a&&eovenue.get_map("venuemap").marker[0].setPosition(a)})}),a(".eo-add-new-venue-cancel").click(function(c){c.preventDefault(),a(".eo-venue-combobox-select").show().find("input:visible").first().focus(),a(".eo-add-new-venue input").val("");var d=new google.maps.LatLng(b.lat,b.lng);eovenue.get_map("venuemap").marker[0].setPosition(d),a("[name='eo_input[event-venue]']").val(b.id),a(".eo-venue-input input").val(b.label),a("#eventorganiser_detail .eo-add-new-venue").hide()})});
1
+ /*! event-organiser 3.6.0-0-g619ade6 2017-11-25 22:52 */
2
  var eventorganiser=eventorganiser||{};eventorganiser.versionCompare=function(a,b){if(typeof a+typeof b!="stringstring")return!1;for(var c=a.split("."),d=b.split("."),e=Math.max(c.length,d.length),f=0;e>f;f++){if(c[f]&&!d[f]&&parseInt(c[f],10)>0||parseInt(c[f],10)>parseInt(d[f],10))return 1;if(d[f]&&!c[f]&&parseInt(d[f],10)>0||parseInt(c[f],10)<parseInt(d[f],10))return-1}return 0},jQuery(document).ready(function(a){var b;eventOrganiserSchedulePicker.init({views:{start_date:"#eo-start-date",start_time:"#eo-start-time",end_date:"#eo-end-date",end_time:"#eo-end-time",occurrence_picker:"#eo-occurrence-datepicker",occurrence_picker_toggle:".eo_occurrence_toggle",schedule_last_date:"#eo-schedule-last-date",schedule:"#eo-event-recurrence",is_all_day:"#eo-all-day",frequency:"#eo-recurrence-frequency",week_repeat:"#eo-day-of-week-repeat",month_repeat:"#eo-day-of-month-repeat",recurrence_section:".reocurrence_row",include:"#eo-occurrence-includes",exclude:"#eo-occurrence-excludes",schedule_span:"#eo-recurrence-schedule-label",summary:"#eo-event-summary"},format:EO_Ajax_Event.format,is24hour:Boolean(EO_Ajax_Event.is24hour),startday:EO_Ajax_Event.startday,schedule:window.eventOrganiserSchedule,locale:EO_Ajax_Event.locale,editable:"once"==a("#eo-event-recurrence").val()}),a("#eo-event-recurrring-notice").click(function(){window.eventOrganiserSchedulePicker.options.editable=a("#eo-event-recurrring-notice").is(":checked"),window.eventOrganiserSchedulePicker.update_form()}),eovenue.init_map("venuemap",{lat:a("#eo_venue_Lat").val(),lng:a("#eo_venue_Lng").val(),draggable:!1,onPositionchanged:function(){var a=this.getPosition();jQuery("#eo_venue_Lat").val(a.lat().toFixed(6)),jQuery("#eo_venue_Lng").val(a.lng().toFixed(6)),this.getMap().setCenter(a),google.maps.event.trigger(eovenue.get_map("venuemap").map,"resize"),this.getMap().setZoom(15)}}),a.widget("ui.combobox",{_create:function(){var c=this.element.hide(),d=c.attr("id"),e=c.children(":selected"),f=e.val()?e.text():"",g=a("<span>").addClass("ui-combobox eo-venue-input").insertAfter(c),h=a('<input type="hidden" name="'+c.attr("name")+'" value="'+e.val()+'"/>'),i=a("<input>").attr("id",d).appendTo(g).val(f).addClass("ui-combobox-input"),j={delay:0,minLength:0,source:function(b,c){i.addClass("eo-waiting"),a.getJSON(EO_Ajax_Event.ajaxurl+"?action=eo-search-venue",b,function(b){var d=a.map(b,function(a){return a.label=a.name,a});c(d),i.removeClass("eo-waiting")})},select:function(b,c){if(a(".venue_row").length>0){0===parseInt(c.item.term_id,10)?(a(".venue_row").hide(),a("#eventorganiser_detail .eo-add-new-venue").hide()):(a(".venue_row").show(),a("#eventorganiser_detail .eo-add-new-venue").hide());var d=new google.maps.LatLng(c.item.venue_lat,c.item.venue_lng);eovenue.get_map("venuemap").marker[0].setPosition(d)}h.val(c.item.term_id)}};i.autocomplete(j).addClass("ui-widget-content ui-corner-left"),this.element.replaceWith(h);var k=a.ui?a.ui.version||0:-1,l=eventorganiser.versionCompare(k,"1.10")>=0?"ui-autocomplete":"autocomplete";i.data(l)._renderItem=function(b,c){if(0===parseInt(c.term_id,10))return a("<li></li>").data(l+"-item",c).append("<a>"+c.label+"</a>").appendTo(b);var d=[c.venue_address,c.venue_city,c.venue_state,c.venue_postcode,c.venue_country],e=a.grep(d,function(a){return a}).join(", "),f=eventorganiser.versionCompare(k,"1.10")>=0?"ui-autocomplete-item":"item.autocomplete";return a("<li></li>").data(f,c).append("<a>"+c.label+"</br> <span style='font-size: 0.8em'><em>"+e+"</span></em></a>").appendTo(b)};var m=a("<span>").addClass("eo-venue-combobox-buttons").appendTo(g);a("<a href='#' style='vertical-align: top;margin: 0px -1px;padding: 0px;height:27px;'>").attr("title","Show All Venues").appendTo(m).button({icons:{primary:"ui-icon-triangle-1-s"},text:!1}).removeClass("ui-corner-all").addClass("eo-ui-button ui-corner-right ui-combobox-toggle ui-combobox-button").mousedown(function(){wasOpen=i.autocomplete("widget").is(":visible")}).click(function(b){b.preventDefault(),wasOpen||(a(this).blur(),i.autocomplete("search","").focus())}),EO_Ajax_Event.current_user_can.manage_venues&&a("<a href='#' style='vertical-align: top;margin: 0px -1px;padding: 0px;height:27px;'>").attr("title","Create New Venue").appendTo(m).button({icons:{primary:"ui-icon-plus"},text:!1}).removeClass("ui-corner-all").addClass("eo-ui-button ui-corner-right add-new-venue ui-combobox-button").click(function(c){c.preventDefault(),a("#eventorganiser_detail .eo-add-new-venue").show(),a(".venue_row").show(),b={id:a("[name='eo_input[event-venue]']").val(),label:a(".eo-venue-input input").val(),lat:a("#eo_venue_Lat").val(),lng:a("#eo_venue_Lng").val()},a("[name='eo_input[event-venue]']").val(0),a(".eo-venue-combobox-select").hide(),a(".eo-venue-input input").val("");var d=EO_Ajax_Event.location;if(d)d=d.split("/"),eovenue.geocode(d[d.length-1],function(a){a&&eovenue.get_map("venuemap").marker[0].setPosition(a)});else{var e=new google.maps.LatLng(0,0);eovenue.get_map("venuemap").marker[0].setPosition(e),eovenue.get_map("venuemap").map.setZoom(1)}a("#eventorganiser_detail .eo-add-new-venue input").first().focus()})}}),a("#venue_select").combobox(),a(".eo_addressInput").change(function(){var b=[];a(".eo_addressInput").each(function(){b.push(jQuery(this).val())}),eovenue.geocode(b.join(", "),function(a){a&&eovenue.get_map("venuemap").marker[0].setPosition(a)})}),a(".eo-add-new-venue-cancel").click(function(c){c.preventDefault(),a(".eo-venue-combobox-select").show().find("input:visible").first().focus(),a(".eo-add-new-venue input").val("");var d=new google.maps.LatLng(b.lat,b.lng);eovenue.get_map("venuemap").marker[0].setPosition(d),a("[name='eo_input[event-venue]']").val(b.id),a(".eo-venue-input input").val(b.label),a("#eventorganiser_detail .eo-add-new-venue").hide()})});
js/event-manager.min.js CHANGED
@@ -1,2 +1,2 @@
1
- /*! event-organiser 3.5.1-0-g786a5d5 2017-11-14 21:45 */
2
  !function(a,b){"use strict";if("undefined"==typeof a.wp||"undefined"==typeof a.wp.hooks){var c=function(){function a(a,b,c,d){return"string"==typeof a&&"function"==typeof b&&(c=parseInt(c||10,10),h("actions",a,b,c,d)),k}function b(){var a=Array.prototype.slice.call(arguments),b=a.shift();return"string"==typeof b&&j("actions",b,a),k}function c(a,b){return"string"==typeof a&&g("actions",a,b),k}function d(a,b,c,d){return"string"==typeof a&&"function"==typeof b&&(c=parseInt(c||10,10),h("filters",a,b,c)),k}function e(){var a=Array.prototype.slice.call(arguments),b=a.shift();return"string"==typeof b?j("filters",b,a):k}function f(a,b){return"string"==typeof a&&g("filters",a,b),k}function g(a,b,c,d){if(l[a][b])if(c){var e,f=l[a][b];if(d)for(e=f.length;e--;){var g=f[e];g.callback===c&&g.context===d&&f.splice(e,1)}else for(e=f.length;e--;)f[e].callback===c&&f.splice(e,1)}else l[a][b]=[]}function h(a,b,c,d,e){var f={callback:c,priority:d,context:e},g=l[a][b];g?(g.push(f),g=i(g)):g=[f],l[a][b]=g}function i(a){for(var b,c,d,e=1,f=a.length;f>e;e++){for(b=a[e],c=e;(d=a[c-1])&&d.priority>b.priority;)a[c]=a[c-1],--c;a[c]=b}return a}function j(a,b,c){var d=l[a][b];if(!d)return"filters"===a?c[0]:!1;var e=0,f=d.length;if("filters"===a)for(;f>e;e++)c[0]=d[e].callback.apply(d[e].context,c);else for(;f>e;e++)d[e].callback.apply(d[e].context,c);return"filters"===a?c[0]:!0}var k={removeFilter:f,applyFilters:e,applyFilter:e,addFilter:d,removeAction:c,doAction:b,addAction:a},l={actions:{},filters:{}};return k};a.wp=a.wp||{},a.wp.hooks=new c}}(window);
1
+ /*! event-organiser 3.6.0-0-g619ade6 2017-11-25 22:52 */
2
  !function(a,b){"use strict";if("undefined"==typeof a.wp||"undefined"==typeof a.wp.hooks){var c=function(){function a(a,b,c,d){return"string"==typeof a&&"function"==typeof b&&(c=parseInt(c||10,10),h("actions",a,b,c,d)),k}function b(){var a=Array.prototype.slice.call(arguments),b=a.shift();return"string"==typeof b&&j("actions",b,a),k}function c(a,b){return"string"==typeof a&&g("actions",a,b),k}function d(a,b,c,d){return"string"==typeof a&&"function"==typeof b&&(c=parseInt(c||10,10),h("filters",a,b,c)),k}function e(){var a=Array.prototype.slice.call(arguments),b=a.shift();return"string"==typeof b?j("filters",b,a):k}function f(a,b){return"string"==typeof a&&g("filters",a,b),k}function g(a,b,c,d){if(l[a][b])if(c){var e,f=l[a][b];if(d)for(e=f.length;e--;){var g=f[e];g.callback===c&&g.context===d&&f.splice(e,1)}else for(e=f.length;e--;)f[e].callback===c&&f.splice(e,1)}else l[a][b]=[]}function h(a,b,c,d,e){var f={callback:c,priority:d,context:e},g=l[a][b];g?(g.push(f),g=i(g)):g=[f],l[a][b]=g}function i(a){for(var b,c,d,e=1,f=a.length;f>e;e++){for(b=a[e],c=e;(d=a[c-1])&&d.priority>b.priority;)a[c]=a[c-1],--c;a[c]=b}return a}function j(a,b,c){var d=l[a][b];if(!d)return"filters"===a?c[0]:!1;var e=0,f=d.length;if("filters"===a)for(;f>e;e++)c[0]=d[e].callback.apply(d[e].context,c);else for(;f>e;e++)d[e].callback.apply(d[e].context,c);return"filters"===a?c[0]:!0}var k={removeFilter:f,applyFilters:e,applyFilter:e,addFilter:d,removeAction:c,doAction:b,addAction:a},l={actions:{},filters:{}};return k};a.wp=a.wp||{},a.wp.hooks=new c}}(window);
js/event.js CHANGED
@@ -2,7 +2,7 @@ var eo_include_dates;
2
  var eo_exclude_dates;
3
  var eo_viewing_month;
4
  (function($) {
5
-
6
  //Workaround for indexOf in IE 7&8
7
  if (!Array.prototype.indexOf){
8
  Array.prototype.indexOf = function(elt /*, from*/){
@@ -47,12 +47,12 @@ Date.prototype.eoGetOrdinal = function () {
47
  * the dates which occur by rule in that month.
48
  */
49
  function eo_generate_dates_by_schedule_rule( rule, month_start,month_end ){
50
-
51
  //Helper array
52
  var ical_weekdays = new Array("SU", "MO", "TU", "WE", "TH", "FR", "SA"),
53
  eo_occurrences_by_rule = [],
54
  count_days, pointer = false;
55
-
56
  //If event starts in previous month - how many days from start to first occurrence in current month?
57
  // Depends on occurrence (and 'stream' for weekly events.
58
  switch (rule.schedule) {
@@ -62,7 +62,7 @@ function eo_generate_dates_by_schedule_rule( rule, month_start,month_end ){
62
  eo_occurrences_by_rule.push(formateddate);
63
  return eo_occurrences_by_rule;
64
  /*break;*/
65
-
66
  case 'daily':
67
  if ( rule.start < month_start ) {
68
  count_days = Math.abs((month_start - rule.start) / (1000 * 60 * 60 * 24)) - 1;
@@ -79,7 +79,7 @@ function eo_generate_dates_by_schedule_rule( rule, month_start,month_end ){
79
 
80
  case 'weekly':
81
  var month_start_day = month_start.getDay();
82
-
83
  streams = [];
84
  $.each(rule.schedule_meta, function(index, value ) {
85
  index = ical_weekdays.indexOf(value);
@@ -101,7 +101,7 @@ function eo_generate_dates_by_schedule_rule( rule, month_start,month_end ){
101
  if (month_difference % rule.frequency !== 0) {
102
  return;
103
  }
104
-
105
  if ( rule.schedule_meta.match(/BYMONTHDAY=(\d+)/) ) {
106
  var day = rule.start.getDate();
107
  var daysinmonth = month_end.getDate();
@@ -113,15 +113,15 @@ function eo_generate_dates_by_schedule_rule( rule, month_start,month_end ){
113
  } else {
114
  //e.g. 3rd friday of month:
115
  var matches = rule.schedule_meta.match(/BYDAY=(\d+)(MO|TU|WE|TH|FR|SA|SU)/);
116
- var n = parseInt( matches[1], 10 ) -1; //0=>first,1=>second,...,4=>last
117
  var occurrence_day = rule.start.getDay(), occurence_date;
118
-
119
  if (n >= 4) {
120
  //Last day
121
  var month_end_day = month_end.getDay();
122
  occurence_date = month_end.getDate() + (occurrence_day - month_end_day - 7) % 7;
123
  } else {
124
- //Want date of (n+1)th X of month.
125
  month_start_day = month_start.getDay();//0=sun,..
126
  var offset = (occurrence_day - month_start_day + 7) % 7;//How many days till first X of the month
127
  occurence_date = offset + n * 7 + 1;
@@ -129,7 +129,7 @@ function eo_generate_dates_by_schedule_rule( rule, month_start,month_end ){
129
  pointer = new Date(month_start);
130
  pointer.setDate(occurence_date);
131
  }
132
-
133
  if ( pointer && pointer <= rule.schedule_last ) {
134
  //If before end
135
  formateddate = $.datepicker.formatDate('yy-mm-dd', pointer);
@@ -186,12 +186,12 @@ window.eventOrganiserSchedulePicker = {
186
  */
187
  init: function( options ){
188
  var self = this;
189
-
190
  this.options = options;
191
  this.schedule = options.schedule;
192
  this.set_up_datepickers();
193
  this.set_up_timepickers();
194
-
195
  //On input, update form
196
  $(".event-date :input, .eo-all-day-toggle").change(function(o) {
197
  self.update_schedule();
@@ -202,11 +202,11 @@ window.eventOrganiserSchedulePicker = {
202
  self.update_occurrencepicker_rules();
203
  }
204
  });
205
-
206
  //Initiate form
207
  this.update_schedule();
208
  this.update_form();
209
-
210
  var now = new Date();
211
  eo_viewing_month = [ now.getFullYear(), now.getMonth() + 1 ];
212
  this.schedule.generate_dates_by_rule(now.getFullYear(), now.getMonth() + 1, {});
@@ -214,15 +214,15 @@ window.eventOrganiserSchedulePicker = {
214
 
215
  set_up_datepickers: function(){
216
  var self = this;
217
-
218
  var views = this.options.views;
219
  var locale = this.options.locale;
220
-
221
  //Init data
222
  var start = $(views.start_date).data('eo-datepicker','start');
223
  var end = $(views.end_date).data('eo-datepicker','end');
224
  $(views.is_all_day).addClass('eo-all-day-toggle');
225
-
226
  //Date pickers
227
  //Schedule last
228
  if( $(views.schedule_last_date) ){
@@ -246,8 +246,8 @@ window.eventOrganiserSchedulePicker = {
246
  },
247
  })
248
  .data('eo-datepicker','schedule_last');
249
- }
250
-
251
  //Start & End
252
  var dates = $( views.start_date + ', ' + views.end_date).datepicker({
253
  dateFormat: this.options.format,
@@ -268,14 +268,14 @@ window.eventOrganiserSchedulePicker = {
268
  //If updating start date, ensure recurrence end falls after this
269
  schedule_last.datepicker("option", "minDate", date);
270
  }
271
-
272
  var startDate = $( views.start_date ).datepicker( 'getDate' );
273
  var endDate = $( views.end_date ).datepicker( 'getDate' );
274
  if( startDate.getTime() != endDate.getTime() ){
275
  var time = { hour: null, minute: null };
276
  $( views.start_time + ", " + views.end_time ).eotimepicker('option', { maxTime: time, minTime: time });
277
  }
278
-
279
  //Replace with do_action
280
  self.update_schedule();
281
  self.update_occurrencepicker_rules();
@@ -289,7 +289,7 @@ window.eventOrganiserSchedulePicker = {
289
  }
290
  },
291
  });
292
-
293
  //Occurrence picker
294
  var dp = $(views.occurrence_picker);
295
  if (dp.length > 0) {
@@ -305,7 +305,7 @@ window.eventOrganiserSchedulePicker = {
305
  onSelect: function( date ){
306
  eventOrganiserSchedule.add_or_remove_date( date );
307
  $( eventOrganiserSchedulePicker.options.views.include ).val(eventOrganiserSchedule.include.join(',\r\n'));
308
- $( eventOrganiserSchedulePicker.options.views.exclude ).val(eventOrganiserSchedule.exclude.join(',\r\n'));
309
  },
310
  beforeShowDay: function (date) {
311
  var date_str = $.datepicker.formatDate('yy-mm-dd', date);
@@ -331,7 +331,7 @@ window.eventOrganiserSchedulePicker = {
331
  if (e.stopPropagation)
332
  e.stopPropagation();
333
  });
334
-
335
  $('html').click(function() {
336
  dp.hide();
337
  $(views.occurrence_picker_toggle).val(locale.showDates);
@@ -352,9 +352,9 @@ window.eventOrganiserSchedulePicker = {
352
 
353
  });
354
 
355
-
356
  },
357
-
358
  //When rule changes, wipe include/exclude dates clean
359
  update_occurrencepicker_rules: function() {
360
  eo_exclude_dates = [];
@@ -363,10 +363,10 @@ window.eventOrganiserSchedulePicker = {
363
  this.schedule.generate_dates_by_rule(eo_viewing_month[0], eo_viewing_month[1], {});
364
  $(this.options.views.occurrence_picker).datepicker("refresh");
365
  },
366
-
367
  set_up_timepickers: function(){
368
-
369
-
370
  var options = this.options;
371
  var views = this.options.views;
372
  //Time pickers
@@ -387,16 +387,16 @@ window.eventOrganiserSchedulePicker = {
387
 
388
  //If dates are the same update timepicker...
389
  if( startDate.getTime() == endDate.getTime() ){
390
-
391
  var time = {
392
  hour: timePickerInst.hours,
393
  minute: timePickerInst.minutes,
394
  };
395
-
396
  if( 'start-time' == $( timePickerInst.input ).data( 'eo-event-data' ) ){
397
  //We have selected start time, update end time
398
  $( views.end_time ).eotimepicker('option', { minTime: time });
399
-
400
  /*
401
  var endTime = {
402
  hour: $( views.end_time ).eotimepicker( 'getHour' ),
@@ -407,7 +407,7 @@ window.eventOrganiserSchedulePicker = {
407
  var newEndTime = new Date('2012-11-24 ' + endTime.hour +":"+endTime.minute );
408
  $( views.end_time ).eotimepicker( 'setTime', newEndTime );
409
  }*/
410
-
411
  }else{
412
  $( views.start_time ).eotimepicker('option', { maxTime: time });
413
  /*
@@ -415,7 +415,7 @@ window.eventOrganiserSchedulePicker = {
415
  hour: $( views.end_time ).eotimepicker( 'getHour' ),
416
  minute: $( views.end_time ).eotimepicker( 'getMinute' ),
417
  };
418
-
419
  if( time.hour < startTime.hour || ( ( time.hour = startTime.hour ) && time.minute < startTime.minute ) ){
420
  console.log( 'end before start!');
421
  //Correct start:
@@ -424,21 +424,21 @@ window.eventOrganiserSchedulePicker = {
424
  }
425
  */
426
  }
427
-
428
  }
429
-
430
  }
431
  }).addClass('eo-time-picker');
432
  },
433
-
434
  /**
435
  * @this;
436
  */
437
  update_schedule: function(){
438
-
439
  var c = new Array("SU", "MO", "TU", "WE", "TH", "FR", "SA");
440
  var views = this.options.views;
441
-
442
  var schedule ={
443
  schedule: $(views.schedule).val(),
444
  frequency: parseInt( $(views.frequency).val(), 10 ),
@@ -459,7 +459,7 @@ window.eventOrganiserSchedulePicker = {
459
  $(views.week_repeat+" :checkbox:checked").each(function() {
460
  schedule.schedule_meta.push( $(this).val() );
461
  });
462
-
463
  }else if( schedule.schedule == 'monthly' ){
464
  if( $(views.month_repeat+" :radio:checked").val() == "BYMONTHDAY=" ){
465
  schedule.schedule_meta = "BYMONTHDAY=" + schedule.start.getDate();
@@ -469,30 +469,30 @@ window.eventOrganiserSchedulePicker = {
469
  schedule.schedule_meta = "BYDAY=" + (n+1) + c[dayInt];
470
  }
471
  }
472
-
473
  this.schedule = eventOrganiserSchedule.init(schedule);
474
-
475
  //Backwards compat:
476
  eo_exclude_dates = schedule.exclude;
477
  eo_include_dates = schedule.include;
478
 
479
  },
480
-
481
-
482
  update_form: function(){
483
-
484
  var view = this.options.views;
485
  var locale = this.options.locale;
486
  var schedule = this.schedule;
487
  var speed = 700;
488
-
489
  $(".event-date :input").attr("disabled", !this.options.editable).toggleClass("ui-state-disabled", !this.options.editable);
490
  $("label[for=eo-all-day]").toggleClass("ui-state-disabled", !this.options.editable);
491
-
492
  if( this.options.editable ){
493
  $(view.start_time+', '+view.end_time).attr("disabled", schedule.is_all_day ).toggleClass("ui-state-disabled", schedule.is_all_day );
494
  }
495
-
496
  if( schedule.schedule == 'once' || schedule.schedule == 'custom' ){
497
  $(view.recurrence_section+" :input").attr("disabled", true );
498
  $(view.recurrence_section).hide();
@@ -500,41 +500,41 @@ window.eventOrganiserSchedulePicker = {
500
  $(view.recurrence_section+" :input").attr("disabled", false );
501
  $(view.recurrence_section).fadeIn(speed);
502
  }
503
-
504
  switch ( schedule.schedule ) {
505
  case "once":
506
  case "custom":
507
  $(schedule.frequency).val("1");
508
  $(view.month_repeat+', '+view.week_repeat).show();
509
  break;
510
-
511
  case "weekly":
512
  if ( schedule.frequency > 1) {
513
  $(view.schedule_span).text(locale.weeks);
514
  } else {
515
  $(view.schedule_span).text(locale.week);
516
  }
517
-
518
  $(view.week_repeat).fadeIn(speed);
519
  $(view.week_repeat+" :input").attr("disabled", false);
520
  $(view.month_repeat).hide();
521
  $(view.month_repeat+" :input").attr("disabled", true );
522
-
523
  break;
524
-
525
  case "monthly":
526
  if ( schedule.frequency > 1 ) {
527
  $(view.schedule_span).text(locale.months);
528
  } else {
529
  $(view.schedule_span).text(locale.month);
530
  }
531
-
532
  $(view.month_repeat).fadeIn(speed);
533
  $(view.month_repeat+" :input").attr("disabled", false);
534
  $(view.week_repeat).hide();
535
  $(view.week_repeat+" :input").attr("disabled", true );
536
  break;
537
-
538
  case "daily":
539
  if ( schedule.frequency > 1 ) {
540
  $(view.schedule_span).text(locale.days);
@@ -544,7 +544,7 @@ window.eventOrganiserSchedulePicker = {
544
  $(view.week_repeat + ', ' + view.month_repeat).hide();
545
  $(view.week_repeat + ' :input, ' + view.month_repeat+" :input").attr("disabled", true );
546
  break;
547
-
548
  case "yearly":
549
  if ( schedule.frequency > 1 ) {
550
  $(view.schedule_span).text(locale.years);
@@ -555,15 +555,15 @@ window.eventOrganiserSchedulePicker = {
555
  $(view.week_repeat + ' :input, ' + view.month_repeat+" :input").attr("disabled", true );
556
  break;
557
  }
558
-
559
  if ($("#venue_select").val() === null) {
560
  $(".venue_row").hide();
561
  }
562
-
563
  //Generate summary
564
  $(view.summary).html( schedule.generate_summary( locale ) );
565
  }
566
-
567
  };
568
 
569
 
@@ -574,9 +574,9 @@ eventOrganiserSchedule = {
574
  * @this element
575
  */
576
  init: function ( schedule ) {
577
-
578
  var self = this;
579
-
580
  var defaults = {
581
  schedule: 'once',
582
  frequency: 1,
@@ -587,7 +587,7 @@ eventOrganiserSchedule = {
587
  dates_by_rule: []
588
  };
589
  schedule = $.extend({}, defaults, schedule);
590
-
591
  for(var prop in schedule) {
592
  this[prop] = schedule[prop];
593
  }
@@ -598,32 +598,32 @@ eventOrganiserSchedule = {
598
  * @this element
599
  */
600
  generate_dates_by_rule: function(year,month,inst){
601
-
602
  //month is 1-12.
603
  var eo_occurrences_by_rule = [], eo_viewing_month = [year, month];
604
-
605
  //Get month start/end dates. Date expects month 0-11.
606
  var month_start = new Date(year, month-1, 1);
607
  var nxt_mon = new Date(year, month, 1);
608
  var month_end = new Date(nxt_mon - 1);
609
-
610
  if ( eventOrganiserSchedule.schedule_last < month_start || eventOrganiserSchedule.start > month_end) {
611
  return;
612
  }
613
-
614
  eventOrganiserSchedule.dates_by_rule = eo_generate_dates_by_schedule_rule( eventOrganiserSchedule, month_start,month_end );
615
  },
616
-
617
  /**
618
  * Given an event schedule returns a string summary describing it.
619
  * Schedule is an object with similar properties as those accepted by
620
- * eo_insert_event() (in php).
621
- *
622
  * @this element
623
  */
624
  generate_summary: function( locale ){
625
  //Locale
626
-
627
  var b = locale.weekDay;
628
  var summary = locale.summary + " ";
629
  var options = {
@@ -632,16 +632,16 @@ eventOrganiserSchedule = {
632
  monthNames: locale.monthNames
633
  };
634
  var schedule = this.schedule;
635
-
636
  //Helper array
637
  var c = new Array("SU", "MO", "TU", "WE", "TH", "FR", "SA");
638
-
639
  switch ( schedule ) {
640
-
641
  case "once":
642
  return "This event will be a one-time event";
643
  /*break;*/
644
-
645
  case "custom":
646
  case "daily":
647
  if ( this.frequency > 1) {
@@ -650,7 +650,7 @@ eventOrganiserSchedule = {
650
  summary += locale.daySingle;
651
  }
652
  break;
653
-
654
  case "weekly":
655
  if ( this.frequency > 1 ) {
656
  summary += sprintf( locale.weekPlural, this.frequency );
@@ -660,7 +660,7 @@ eventOrganiserSchedule = {
660
  var days = $.map( this.schedule_meta, function(value, index){ return b[c.indexOf(value)]; } );
661
  summary += " " + days.join(', ');
662
  break;
663
-
664
  case "monthly":
665
  if ( this.frequency > 1 ) {
666
  summary += sprintf(locale.monthPlural, this.frequency);
@@ -675,7 +675,7 @@ eventOrganiserSchedule = {
675
  summary = summary + " " + locale.occurrence[n] + " " + b[c.indexOf(matches[2])];
676
  }
677
  break;
678
-
679
  case "yearly":
680
  if (this.frequency > 1) {
681
  summary += sprintf(locale.yearPlural, this.frequency);
@@ -685,36 +685,42 @@ eventOrganiserSchedule = {
685
  summary = summary + " " + $.datepicker.formatDate("MM d", this.start, options) + this.start.eoGetOrdinal();
686
  break;
687
  }
688
-
689
  if ( this.schedule_last !== null ) {
690
  summary = summary + " " + locale.until + " " + $.datepicker.formatDate("MM d'" + this.schedule_last.eoGetOrdinal() + "' yy", this.schedule_last, options);
691
  }
692
-
693
  return summary;
694
  },
695
-
696
-
697
  //Is given date an occurrence of the event?
698
  is_date_eventful: function(date) {
699
- var index = $.inArray(date, eventOrganiserSchedule.dates_by_rule);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
700
 
701
- if (index > -1) {
702
- //Occurs by rule - is it excluded manually?
703
- var excluded = $.inArray(date, eventOrganiserSchedule.exclude);
704
- if (excluded > -1) {
705
- return [false, excluded];
706
- } else {
707
- return [true, -1];
708
- }
709
- } else {
710
- //Doesn't occurs by rule - is it included manually?
711
- var included = $.inArray(date, eventOrganiserSchedule.include);
712
- if (included > -1) {
713
- return [true, included];
714
- } else {
715
- return [false, -1];
716
- }
717
- }
718
  },
719
 
720
  //When a date is selected, add or remove it based on current state
@@ -726,13 +732,13 @@ eventOrganiserSchedule = {
726
  if ( index > -1 ) {
727
  //Date was manually included
728
  eventOrganiserSchedule.include.splice(index, 1);
729
-
730
  } else {
731
  //Date was eventful by rule
732
  if ( $.inArray( date, eventOrganiserSchedule.exclude ) < 0)
733
  eventOrganiserSchedule.exclude.push(date);
734
  }
735
-
736
  } else {
737
  //Date is not eventful. Add date
738
  index = isEventful[1];
@@ -748,8 +754,8 @@ eventOrganiserSchedule = {
748
  //Backwards compat:
749
  eo_exclude_dates = eventOrganiserSchedule.exclude;
750
  eo_include_dates = eventOrganiserSchedule.include;
751
-
752
-
753
  }
754
  };
755
 
@@ -757,8 +763,8 @@ eventOrganiserSchedule = {
757
 
758
 
759
 
760
- /*!
761
- * sprintf.js | Copyright (c) 2007-2013 Alexandru Marasteanu <hello at alexei dot ro> | 3 clause BSD license
762
  * https://github.com/alexei/sprintf.js
763
  * */
764
  (function(ctx) {
2
  var eo_exclude_dates;
3
  var eo_viewing_month;
4
  (function($) {
5
+
6
  //Workaround for indexOf in IE 7&8
7
  if (!Array.prototype.indexOf){
8
  Array.prototype.indexOf = function(elt /*, from*/){
47
  * the dates which occur by rule in that month.
48
  */
49
  function eo_generate_dates_by_schedule_rule( rule, month_start,month_end ){
50
+
51
  //Helper array
52
  var ical_weekdays = new Array("SU", "MO", "TU", "WE", "TH", "FR", "SA"),
53
  eo_occurrences_by_rule = [],
54
  count_days, pointer = false;
55
+
56
  //If event starts in previous month - how many days from start to first occurrence in current month?
57
  // Depends on occurrence (and 'stream' for weekly events.
58
  switch (rule.schedule) {
62
  eo_occurrences_by_rule.push(formateddate);
63
  return eo_occurrences_by_rule;
64
  /*break;*/
65
+
66
  case 'daily':
67
  if ( rule.start < month_start ) {
68
  count_days = Math.abs((month_start - rule.start) / (1000 * 60 * 60 * 24)) - 1;
79
 
80
  case 'weekly':
81
  var month_start_day = month_start.getDay();
82
+
83
  streams = [];
84
  $.each(rule.schedule_meta, function(index, value ) {
85
  index = ical_weekdays.indexOf(value);
101
  if (month_difference % rule.frequency !== 0) {
102
  return;
103
  }
104
+
105
  if ( rule.schedule_meta.match(/BYMONTHDAY=(\d+)/) ) {
106
  var day = rule.start.getDate();
107
  var daysinmonth = month_end.getDate();
113
  } else {
114
  //e.g. 3rd friday of month:
115
  var matches = rule.schedule_meta.match(/BYDAY=(\d+)(MO|TU|WE|TH|FR|SA|SU)/);
116
+ var n = parseInt( matches[1], 10 ) -1; //0=>first,1=>second,...,4=>last
117
  var occurrence_day = rule.start.getDay(), occurence_date;
118
+
119
  if (n >= 4) {
120
  //Last day
121
  var month_end_day = month_end.getDay();
122
  occurence_date = month_end.getDate() + (occurrence_day - month_end_day - 7) % 7;
123
  } else {
124
+ //Want date of (n+1)th X of month.
125
  month_start_day = month_start.getDay();//0=sun,..
126
  var offset = (occurrence_day - month_start_day + 7) % 7;//How many days till first X of the month
127
  occurence_date = offset + n * 7 + 1;
129
  pointer = new Date(month_start);
130
  pointer.setDate(occurence_date);
131
  }
132
+
133
  if ( pointer && pointer <= rule.schedule_last ) {
134
  //If before end
135
  formateddate = $.datepicker.formatDate('yy-mm-dd', pointer);
186
  */
187
  init: function( options ){
188
  var self = this;
189
+
190
  this.options = options;
191
  this.schedule = options.schedule;
192
  this.set_up_datepickers();
193
  this.set_up_timepickers();
194
+
195
  //On input, update form
196
  $(".event-date :input, .eo-all-day-toggle").change(function(o) {
197
  self.update_schedule();
202
  self.update_occurrencepicker_rules();
203
  }
204
  });
205
+
206
  //Initiate form
207
  this.update_schedule();
208
  this.update_form();
209
+
210
  var now = new Date();
211
  eo_viewing_month = [ now.getFullYear(), now.getMonth() + 1 ];
212
  this.schedule.generate_dates_by_rule(now.getFullYear(), now.getMonth() + 1, {});
214
 
215
  set_up_datepickers: function(){
216
  var self = this;
217
+
218
  var views = this.options.views;
219
  var locale = this.options.locale;
220
+
221
  //Init data
222
  var start = $(views.start_date).data('eo-datepicker','start');
223
  var end = $(views.end_date).data('eo-datepicker','end');
224
  $(views.is_all_day).addClass('eo-all-day-toggle');
225
+
226
  //Date pickers
227
  //Schedule last
228
  if( $(views.schedule_last_date) ){
246
  },
247
  })
248
  .data('eo-datepicker','schedule_last');
249
+ }
250
+
251
  //Start & End
252
  var dates = $( views.start_date + ', ' + views.end_date).datepicker({
253
  dateFormat: this.options.format,
268
  //If updating start date, ensure recurrence end falls after this
269
  schedule_last.datepicker("option", "minDate", date);
270
  }
271
+
272
  var startDate = $( views.start_date ).datepicker( 'getDate' );
273
  var endDate = $( views.end_date ).datepicker( 'getDate' );
274
  if( startDate.getTime() != endDate.getTime() ){
275
  var time = { hour: null, minute: null };
276
  $( views.start_time + ", " + views.end_time ).eotimepicker('option', { maxTime: time, minTime: time });
277
  }
278
+
279
  //Replace with do_action
280
  self.update_schedule();
281
  self.update_occurrencepicker_rules();
289
  }
290
  },
291
  });
292
+
293
  //Occurrence picker
294
  var dp = $(views.occurrence_picker);
295
  if (dp.length > 0) {
305
  onSelect: function( date ){
306
  eventOrganiserSchedule.add_or_remove_date( date );
307
  $( eventOrganiserSchedulePicker.options.views.include ).val(eventOrganiserSchedule.include.join(',\r\n'));
308
+ $( eventOrganiserSchedulePicker.options.views.exclude ).val(eventOrganiserSchedule.exclude.join(',\r\n'));
309
  },
310
  beforeShowDay: function (date) {
311
  var date_str = $.datepicker.formatDate('yy-mm-dd', date);
331
  if (e.stopPropagation)
332
  e.stopPropagation();
333
  });
334
+
335
  $('html').click(function() {
336
  dp.hide();
337
  $(views.occurrence_picker_toggle).val(locale.showDates);
352
 
353
  });
354
 
355
+
356
  },
357
+
358
  //When rule changes, wipe include/exclude dates clean
359
  update_occurrencepicker_rules: function() {
360
  eo_exclude_dates = [];
363
  this.schedule.generate_dates_by_rule(eo_viewing_month[0], eo_viewing_month[1], {});
364
  $(this.options.views.occurrence_picker).datepicker("refresh");
365
  },
366
+
367
  set_up_timepickers: function(){
368
+
369
+
370
  var options = this.options;
371
  var views = this.options.views;
372
  //Time pickers
387
 
388
  //If dates are the same update timepicker...
389
  if( startDate.getTime() == endDate.getTime() ){
390
+
391
  var time = {
392
  hour: timePickerInst.hours,
393
  minute: timePickerInst.minutes,
394
  };
395
+
396
  if( 'start-time' == $( timePickerInst.input ).data( 'eo-event-data' ) ){
397
  //We have selected start time, update end time
398
  $( views.end_time ).eotimepicker('option', { minTime: time });
399
+
400
  /*
401
  var endTime = {
402
  hour: $( views.end_time ).eotimepicker( 'getHour' ),
407
  var newEndTime = new Date('2012-11-24 ' + endTime.hour +":"+endTime.minute );
408
  $( views.end_time ).eotimepicker( 'setTime', newEndTime );
409
  }*/
410
+
411
  }else{
412
  $( views.start_time ).eotimepicker('option', { maxTime: time });
413
  /*
415
  hour: $( views.end_time ).eotimepicker( 'getHour' ),
416
  minute: $( views.end_time ).eotimepicker( 'getMinute' ),
417
  };
418
+
419
  if( time.hour < startTime.hour || ( ( time.hour = startTime.hour ) && time.minute < startTime.minute ) ){
420
  console.log( 'end before start!');
421
  //Correct start:
424
  }
425
  */
426
  }
427
+
428
  }
429
+
430
  }
431
  }).addClass('eo-time-picker');
432
  },
433
+
434
  /**
435
  * @this;
436
  */
437
  update_schedule: function(){
438
+
439
  var c = new Array("SU", "MO", "TU", "WE", "TH", "FR", "SA");
440
  var views = this.options.views;
441
+
442
  var schedule ={
443
  schedule: $(views.schedule).val(),
444
  frequency: parseInt( $(views.frequency).val(), 10 ),
459
  $(views.week_repeat+" :checkbox:checked").each(function() {
460
  schedule.schedule_meta.push( $(this).val() );
461
  });
462
+
463
  }else if( schedule.schedule == 'monthly' ){
464
  if( $(views.month_repeat+" :radio:checked").val() == "BYMONTHDAY=" ){
465
  schedule.schedule_meta = "BYMONTHDAY=" + schedule.start.getDate();
469
  schedule.schedule_meta = "BYDAY=" + (n+1) + c[dayInt];
470
  }
471
  }
472
+
473
  this.schedule = eventOrganiserSchedule.init(schedule);
474
+
475
  //Backwards compat:
476
  eo_exclude_dates = schedule.exclude;
477
  eo_include_dates = schedule.include;
478
 
479
  },
480
+
481
+
482
  update_form: function(){
483
+
484
  var view = this.options.views;
485
  var locale = this.options.locale;
486
  var schedule = this.schedule;
487
  var speed = 700;
488
+
489
  $(".event-date :input").attr("disabled", !this.options.editable).toggleClass("ui-state-disabled", !this.options.editable);
490
  $("label[for=eo-all-day]").toggleClass("ui-state-disabled", !this.options.editable);
491
+
492
  if( this.options.editable ){
493
  $(view.start_time+', '+view.end_time).attr("disabled", schedule.is_all_day ).toggleClass("ui-state-disabled", schedule.is_all_day );
494
  }
495
+
496
  if( schedule.schedule == 'once' || schedule.schedule == 'custom' ){
497
  $(view.recurrence_section+" :input").attr("disabled", true );
498
  $(view.recurrence_section).hide();
500
  $(view.recurrence_section+" :input").attr("disabled", false );
501
  $(view.recurrence_section).fadeIn(speed);
502
  }
503
+
504
  switch ( schedule.schedule ) {
505
  case "once":
506
  case "custom":
507
  $(schedule.frequency).val("1");
508
  $(view.month_repeat+', '+view.week_repeat).show();
509
  break;
510
+
511
  case "weekly":
512
  if ( schedule.frequency > 1) {
513
  $(view.schedule_span).text(locale.weeks);
514
  } else {
515
  $(view.schedule_span).text(locale.week);
516
  }
517
+
518
  $(view.week_repeat).fadeIn(speed);
519
  $(view.week_repeat+" :input").attr("disabled", false);
520
  $(view.month_repeat).hide();
521
  $(view.month_repeat+" :input").attr("disabled", true );
522
+
523
  break;
524
+
525
  case "monthly":
526
  if ( schedule.frequency > 1 ) {
527
  $(view.schedule_span).text(locale.months);
528
  } else {
529
  $(view.schedule_span).text(locale.month);
530
  }
531
+
532
  $(view.month_repeat).fadeIn(speed);
533
  $(view.month_repeat+" :input").attr("disabled", false);
534
  $(view.week_repeat).hide();
535
  $(view.week_repeat+" :input").attr("disabled", true );
536
  break;
537
+
538
  case "daily":
539
  if ( schedule.frequency > 1 ) {
540
  $(view.schedule_span).text(locale.days);
544
  $(view.week_repeat + ', ' + view.month_repeat).hide();
545
  $(view.week_repeat + ' :input, ' + view.month_repeat+" :input").attr("disabled", true );
546
  break;
547
+
548
  case "yearly":
549
  if ( schedule.frequency > 1 ) {
550
  $(view.schedule_span).text(locale.years);
555
  $(view.week_repeat + ' :input, ' + view.month_repeat+" :input").attr("disabled", true );
556
  break;
557
  }
558
+
559
  if ($("#venue_select").val() === null) {
560
  $(".venue_row").hide();
561
  }
562
+
563
  //Generate summary
564
  $(view.summary).html( schedule.generate_summary( locale ) );
565
  }
566
+
567
  };
568
 
569
 
574
  * @this element
575
  */
576
  init: function ( schedule ) {
577
+
578
  var self = this;
579
+
580
  var defaults = {
581
  schedule: 'once',
582
  frequency: 1,
587
  dates_by_rule: []
588
  };
589
  schedule = $.extend({}, defaults, schedule);
590
+
591
  for(var prop in schedule) {
592
  this[prop] = schedule[prop];
593
  }
598
  * @this element
599
  */
600
  generate_dates_by_rule: function(year,month,inst){
601
+
602
  //month is 1-12.
603
  var eo_occurrences_by_rule = [], eo_viewing_month = [year, month];
604
+
605
  //Get month start/end dates. Date expects month 0-11.
606
  var month_start = new Date(year, month-1, 1);
607
  var nxt_mon = new Date(year, month, 1);
608
  var month_end = new Date(nxt_mon - 1);
609
+
610
  if ( eventOrganiserSchedule.schedule_last < month_start || eventOrganiserSchedule.start > month_end) {
611
  return;
612
  }
613
+
614
  eventOrganiserSchedule.dates_by_rule = eo_generate_dates_by_schedule_rule( eventOrganiserSchedule, month_start,month_end );
615
  },
616
+
617
  /**
618
  * Given an event schedule returns a string summary describing it.
619
  * Schedule is an object with similar properties as those accepted by
620
+ * eo_insert_event() (in php).
621
+ *
622
  * @this element
623
  */
624
  generate_summary: function( locale ){
625
  //Locale
626
+
627
  var b = locale.weekDay;
628
  var summary = locale.summary + " ";
629
  var options = {
632
  monthNames: locale.monthNames
633
  };
634
  var schedule = this.schedule;
635
+
636
  //Helper array
637
  var c = new Array("SU", "MO", "TU", "WE", "TH", "FR", "SA");
638
+
639
  switch ( schedule ) {
640
+
641
  case "once":
642
  return "This event will be a one-time event";
643
  /*break;*/
644
+
645
  case "custom":
646
  case "daily":
647
  if ( this.frequency > 1) {
650
  summary += locale.daySingle;
651
  }
652
  break;
653
+
654
  case "weekly":
655
  if ( this.frequency > 1 ) {
656
  summary += sprintf( locale.weekPlural, this.frequency );
660
  var days = $.map( this.schedule_meta, function(value, index){ return b[c.indexOf(value)]; } );
661
  summary += " " + days.join(', ');
662
  break;
663
+
664
  case "monthly":
665
  if ( this.frequency > 1 ) {
666
  summary += sprintf(locale.monthPlural, this.frequency);
675
  summary = summary + " " + locale.occurrence[n] + " " + b[c.indexOf(matches[2])];
676
  }
677
  break;
678
+
679
  case "yearly":
680
  if (this.frequency > 1) {
681
  summary += sprintf(locale.yearPlural, this.frequency);
685
  summary = summary + " " + $.datepicker.formatDate("MM d", this.start, options) + this.start.eoGetOrdinal();
686
  break;
687
  }
688
+
689
  if ( this.schedule_last !== null ) {
690
  summary = summary + " " + locale.until + " " + $.datepicker.formatDate("MM d'" + this.schedule_last.eoGetOrdinal() + "' yy", this.schedule_last, options);
691
  }
692
+
693
  return summary;
694
  },
695
+
696
+
697
  //Is given date an occurrence of the event?
698
  is_date_eventful: function(date) {
699
+ var index = $.inArray(date, eventOrganiserSchedule.dates_by_rule);
700
+ var excludedIndex = $.inArray(date, eventOrganiserSchedule.exclude);
701
+ var includedIndex = $.inArray(date, eventOrganiserSchedule.include);
702
+
703
+ if (index > -1) {
704
+ // This date occurs by recurrence rule, but might be excluded manually.
705
+ // However, it might also be included manually as well, in the case that
706
+ // the occurrence has moved time within the same day
707
+ if ( excludedIndex > -1 && includedIndex == -1 ) {
708
+ //Excluded
709
+ return [false, excludedIndex];
710
+ } else if ( excludedIndex > -1 && includedIndex > -1 ) {
711
+ // Occurrence has moved time within same date
712
+ return [true, includedIndex];
713
+ }
714
 
715
+ // Not excluded manually
716
+ return [true, -1];
717
+ } else {
718
+ //Doesn't occurs by rule - is it included manually?
719
+ if (includedIndex > -1) {
720
+ return [true, includedIndex];
721
+ }
722
+ return [false, -1];
723
+ }
 
 
 
 
 
 
 
 
724
  },
725
 
726
  //When a date is selected, add or remove it based on current state
732
  if ( index > -1 ) {
733
  //Date was manually included
734
  eventOrganiserSchedule.include.splice(index, 1);
735
+
736
  } else {
737
  //Date was eventful by rule
738
  if ( $.inArray( date, eventOrganiserSchedule.exclude ) < 0)
739
  eventOrganiserSchedule.exclude.push(date);
740
  }
741
+
742
  } else {
743
  //Date is not eventful. Add date
744
  index = isEventful[1];
754
  //Backwards compat:
755
  eo_exclude_dates = eventOrganiserSchedule.exclude;
756
  eo_include_dates = eventOrganiserSchedule.include;
757
+
758
+
759
  }
760
  };
761
 
763
 
764
 
765
 
766
+ /*!
767
+ * sprintf.js | Copyright (c) 2007-2013 Alexandru Marasteanu <hello at alexei dot ro> | 3 clause BSD license
768
  * https://github.com/alexei/sprintf.js
769
  * */
770
  (function(ctx) {
js/event.min.js CHANGED
@@ -1,2 +1,2 @@
1
- /*! event-organiser 3.5.1-0-g786a5d5 2017-11-14 21:45 */
2
- var eo_include_dates,eo_exclude_dates,eo_viewing_month;!function(a){function b(b,c,d){var e,f=new Array("SU","MO","TU","WE","TH","FR","SA"),g=[],h=!1;switch(b.schedule){case"once":case"custom":var i=a.datepicker.formatDate("yy-mm-dd",b.start);return g.push(i),g;case"daily":b.start<c?(e=Math.abs((c-b.start)/864e5)-1,e%=b.frequency):e=parseInt(b.start.getDate(),10);var j=b.frequency,k=[],l=new Date(c);l.setDate(c.getDate()+(e-1)),k.push(l);break;case"weekly":var m=c.getDay();k=[],a.each(b.schedule_meta,function(a,d){a=f.indexOf(d),l=new Date(b.start),l.setDate(b.start.getDate()+(a-b.start.getDay()+7)%7),c>l&&(e=Math.abs((c-b.start)/864e5),e-=e%(7*b.frequency),l.setDate(l.getDate()+e)),k.push(l)}),j=7*b.frequency;break;case"monthly":var n=12*(c.getFullYear()-b.start.getFullYear())+(c.getMonth()-b.start.getMonth());if(n%b.frequency!==0)return;if(b.schedule_meta.match(/BYMONTHDAY=(\d+)/)){var o=b.start.getDate(),p=d.getDate();p>=o&&(h=new Date(c.getFullYear(),c.getMonth(),o))}else{var q,r=b.schedule_meta.match(/BYDAY=(\d+)(MO|TU|WE|TH|FR|SA|SU)/),s=parseInt(r[1],10)-1,t=b.start.getDay();if(s>=4){var u=d.getDay();q=d.getDate()+(t-u-7)%7}else{m=c.getDay();var v=(t-m+7)%7;q=v+7*s+1}h=new Date(c),h.setDate(q)}return h&&h<=b.schedule_last&&(i=a.datepicker.formatDate("yy-mm-dd",h),g.push(i)),g;case"yearly":var w=c.getFullYear()-b.start.getFullYear();if(w%b.frequency!==0)return g;var x=new Date(c.getFullYear(),b.start.getMonth(),b.start.getDate());return c.getMonth()==b.start.getMonth()&&x.getMonth()==b.start.getMonth()&&(h=new Date(b.start),h.setYear(c.getFullYear()),h<=b.schedule_last&&(i=a.datepicker.formatDate("yy-mm-dd",h),g.push(i))),g;default:return g}for(var y in k)for(h=new Date(k[y]);d>=h&&h<=b.schedule_last;)i=a.datepicker.formatDate("yy-mm-dd",h),g.push(i),h.setDate(h.getDate()+j);return g}Array.prototype.indexOf||(Array.prototype.indexOf=function(a){var b=this.length,c=Number(arguments[1])||0;for(c=0>c?Math.ceil(c):Math.floor(c),0>c&&(c+=b);b>c;c++)if(c in this&&this[c]===a)return c;return-1}),Date.prototype.eoGetOrdinal=function(){var a=this.getDate();switch(a){case 1:case 21:case 31:return"st";case 2:case 22:return"nd";case 3:case 23:return"rd";default:return"th"}},window.eventOrganiserSchedulePicker={init:function(b){var c=this;this.options=b,this.schedule=b.schedule,this.set_up_datepickers(),this.set_up_timepickers(),a(".event-date :input, .eo-all-day-toggle").change(function(b){c.update_schedule(),c.update_form(),a(this).hasClass("eo-all-day-toggle")||c.update_occurrencepicker_rules()}),this.update_schedule(),this.update_form();var d=new Date;eo_viewing_month=[d.getFullYear(),d.getMonth()+1],this.schedule.generate_dates_by_rule(d.getFullYear(),d.getMonth()+1,{})},set_up_datepickers:function(){var b=this,c=this.options.views,d=this.options.locale;a(c.start_date).data("eo-datepicker","start"),a(c.end_date).data("eo-datepicker","end");if(a(c.is_all_day).addClass("eo-all-day-toggle"),a(c.schedule_last_date))var e=a(c.schedule_last_date).datepicker({nextText:">",prevText:"<",dateFormat:this.options.format,changeMonth:!0,changeYear:!0,monthNamesShort:d.monthAbbrev,dayNamesMin:d.dayAbbrev,isRTL:d.isrtl,firstDay:parseInt(this.options.startday,10),beforeShow:function(b,c){c.hasOwnProperty("dpDiv")?c.dpDiv.addClass("eo-datepicker"):a("#ui-datepicker-div").addClass("eo-datepicker")}}).data("eo-datepicker","schedule_last");var f=a(c.start_date+", "+c.end_date).datepicker({dateFormat:this.options.format,nextText:">",prevText:"<",changeMonth:!0,changeYear:!0,monthNamesShort:d.monthAbbrev,dayNamesMin:d.dayAbbrev,firstDay:parseInt(this.options.startday,10),onSelect:function(d){var g="start"==a(this).data("eo-datepicker")?"minDate":"maxDate",h=a(this).data("datepicker"),i=a.datepicker.parseDate(h.settings.dateFormat||a.datepicker._defaults.dateFormat,d,h.settings);f.not(this).datepicker("option",g,i),"from_date"==this.id&&e.datepicker("option","minDate",i);var j=a(c.start_date).datepicker("getDate"),k=a(c.end_date).datepicker("getDate");if(j.getTime()!=k.getTime()){var l={hour:null,minute:null};a(c.start_time+", "+c.end_time).eotimepicker("option",{maxTime:l,minTime:l})}b.update_schedule(),b.update_occurrencepicker_rules(),b.update_form()},beforeShow:function(b,c){c.hasOwnProperty("dpDiv")?c.dpDiv.addClass("eo-datepicker"):a("#ui-datepicker-div").addClass("eo-datepicker")}}),g=a(c.occurrence_picker);g.length>0&&(g.datepicker({dateFormat:"yy-mm-dd",nextText:">",prevText:"<",changeMonth:!0,changeYear:!0,monthNamesShort:d.monthAbbrev,dayNamesMin:d.dayAbbrev,firstDay:parseInt(this.options.startday,10),onSelect:function(b){eventOrganiserSchedule.add_or_remove_date(b),a(eventOrganiserSchedulePicker.options.views.include).val(eventOrganiserSchedule.include.join(",\r\n")),a(eventOrganiserSchedulePicker.options.views.exclude).val(eventOrganiserSchedule.exclude.join(",\r\n"))},beforeShowDay:function(b){var c=a.datepicker.formatDate("yy-mm-dd",b),d=eventOrganiserSchedule.is_date_eventful(c);return d[0]?[!0,"eo-op-date-selected",""]:[!0,"eo-op-date-not-selected",""]},beforeShow:function(b,c){c.hasOwnProperty("dpDiv")?c.dpDiv.addClass("eo-datepicker"):a("#ui-datepicker-div").addClass("eo-datepicker")},onChangeMonthYear:eventOrganiserSchedule.generate_dates_by_rule}).hide().find(".ui-datepicker-inline").click(function(a){a||(a=window.event),a.cancelBubble=!0,a.stopPropagation&&a.stopPropagation()}),a("html").click(function(){g.hide(),a(c.occurrence_picker_toggle).val(d.showDates)})),a(c.occurrence_picker_toggle).click(function(b){b.preventDefault(),b.stopPropagation(),g.toggle(),g.is(":visible")?(a(this).val(d.hideDates),a(c.occurrence_picker).datepicker("refresh")):a(this).val(d.showDates)})},update_occurrencepicker_rules:function(){eo_exclude_dates=[],eo_include_dates=[],this.schedule.generate_dates_by_rule(eo_viewing_month[0],eo_viewing_month[1],{}),a(this.options.views.occurrence_picker).datepicker("refresh")},set_up_timepickers:function(){var b=this.options,c=this.options.views;a(c.start_time).data("eo-event-data","start-time"),a(c.end_time).data("eo-event-data","end-time"),a(c.start_time+", "+c.end_time).eotimepicker({showPeriodLabels:!b.is24hour,showPeriod:!this.options.is24hour,showLeadingZero:b.is24hour,periodSeparator:"",amPmText:b.locale.meridian,hourText:b.locale.hour,minuteText:b.locale.minute,isRTL:b.locale.isrtl,onSelect:function(b,d){var e=a(c.start_date).datepicker("getDate"),f=a(c.end_date).datepicker("getDate");if(e.getTime()==f.getTime()){var g={hour:d.hours,minute:d.minutes};"start-time"==a(d.input).data("eo-event-data")?a(c.end_time).eotimepicker("option",{minTime:g}):a(c.start_time).eotimepicker("option",{maxTime:g})}}}).addClass("eo-time-picker")},update_schedule:function(){var b=new Array("SU","MO","TU","WE","TH","FR","SA"),c=this.options.views,d={schedule:a(c.schedule).val(),frequency:parseInt(a(c.frequency).val(),10),schedule_last:a(c.schedule_last_date).datepicker("getDate"),start:a(c.start_date).datepicker("getDate"),end:a(c.end_date).datepicker("getDate"),is_all_day:a(c.is_all_day).attr("checked"),include:a(c.include).length>0?a(c.include).val().split(","):[],exclude:a(c.exclude).length>0?a(c.exclude).val().split(","):[]};if("weekly"==d.schedule){if(d.schedule_meta=[],0===a(c.week_repeat+" :checkbox:checked").length){var e=d.start.getDay();a(c.week_repeat+" :checkbox[value='"+b[e]+"']").attr("checked",!0)}a(c.week_repeat+" :checkbox:checked").each(function(){d.schedule_meta.push(a(this).val())})}else if("monthly"==d.schedule)if("BYMONTHDAY="==a(c.month_repeat+" :radio:checked").val())d.schedule_meta="BYMONTHDAY="+d.start.getDate();else{var f=d.start.getDay()%7,g=parseInt(Math.floor((d.start.getDate()-1)/7),10);d.schedule_meta="BYDAY="+(g+1)+b[f]}this.schedule=eventOrganiserSchedule.init(d),eo_exclude_dates=d.exclude,eo_include_dates=d.include},update_form:function(){var b=this.options.views,c=this.options.locale,d=this.schedule,e=700;switch(a(".event-date :input").attr("disabled",!this.options.editable).toggleClass("ui-state-disabled",!this.options.editable),a("label[for=eo-all-day]").toggleClass("ui-state-disabled",!this.options.editable),this.options.editable&&a(b.start_time+", "+b.end_time).attr("disabled",d.is_all_day).toggleClass("ui-state-disabled",d.is_all_day),"once"==d.schedule||"custom"==d.schedule?(a(b.recurrence_section+" :input").attr("disabled",!0),a(b.recurrence_section).hide()):(a(b.recurrence_section+" :input").attr("disabled",!1),a(b.recurrence_section).fadeIn(e)),d.schedule){case"once":case"custom":a(d.frequency).val("1"),a(b.month_repeat+", "+b.week_repeat).show();break;case"weekly":d.frequency>1?a(b.schedule_span).text(c.weeks):a(b.schedule_span).text(c.week),a(b.week_repeat).fadeIn(e),a(b.week_repeat+" :input").attr("disabled",!1),a(b.month_repeat).hide(),a(b.month_repeat+" :input").attr("disabled",!0);break;case"monthly":d.frequency>1?a(b.schedule_span).text(c.months):a(b.schedule_span).text(c.month),a(b.month_repeat).fadeIn(e),a(b.month_repeat+" :input").attr("disabled",!1),a(b.week_repeat).hide(),a(b.week_repeat+" :input").attr("disabled",!0);break;case"daily":d.frequency>1?a(b.schedule_span).text(c.days):a(b.schedule_span).text(c.day),a(b.week_repeat+", "+b.month_repeat).hide(),a(b.week_repeat+" :input, "+b.month_repeat+" :input").attr("disabled",!0);break;case"yearly":d.frequency>1?a(b.schedule_span).text(c.years):a(b.schedule_span).text(c.year),a(b.week_repeat+", "+b.month_repeat).hide(),a(b.week_repeat+" :input, "+b.month_repeat+" :input").attr("disabled",!0)}null===a("#venue_select").val()&&a(".venue_row").hide(),a(b.summary).html(d.generate_summary(c))}},eventOrganiserSchedule={self:this,init:function(b){var c={schedule:"once",frequency:1,schedule_last:new Date,start:new Date,end:new Date,is_all_day:!1,dates_by_rule:[]};b=a.extend({},c,b);for(var d in b)this[d]=b[d];return this},generate_dates_by_rule:function(a,c,d){var e=new Date(a,c-1,1),f=new Date(a,c,1),g=new Date(f-1);eventOrganiserSchedule.schedule_last<e||eventOrganiserSchedule.start>g||(eventOrganiserSchedule.dates_by_rule=b(eventOrganiserSchedule,e,g))},generate_summary:function(b){var c=b.weekDay,d=b.summary+" ",e={monthNamesShort:b.monthAbbrev,dayNamesMin:b.dayAbbrev,monthNames:b.monthNames},f=this.schedule,g=new Array("SU","MO","TU","WE","TH","FR","SA");switch(f){case"once":return"This event will be a one-time event";case"custom":case"daily":d+=this.frequency>1?sprintf(b.dayPlural,this.frequency):b.daySingle;break;case"weekly":d+=this.frequency>1?sprintf(b.weekPlural,this.frequency):b.weekSingle;var h=a.map(this.schedule_meta,function(a,b){return c[g.indexOf(a)]});d+=" "+h.join(", ");break;case"monthly":if(d+=this.frequency>1?sprintf(b.monthPlural,this.frequency):b.monthSingle,this.schedule_meta.match(/BYMONTHDAY=(\d+)/))d=d+" "+this.start.getDate()+this.start.eoGetOrdinal();else{var i=this.schedule_meta.match(/BYDAY=(\d+)(MO|TU|WE|TH|FR|SA|SU)/),j=parseInt(i[1],10)-1;d=d+" "+b.occurrence[j]+" "+c[g.indexOf(i[2])]}break;case"yearly":d+=this.frequency>1?sprintf(b.yearPlural,this.frequency):b.yearSingle,d=d+" "+a.datepicker.formatDate("MM d",this.start,e)+this.start.eoGetOrdinal()}return null!==this.schedule_last&&(d=d+" "+b.until+" "+a.datepicker.formatDate("MM d'"+this.schedule_last.eoGetOrdinal()+"' yy",this.schedule_last,e)),d},is_date_eventful:function(b){var c=a.inArray(b,eventOrganiserSchedule.dates_by_rule);if(c>-1){var d=a.inArray(b,eventOrganiserSchedule.exclude);return d>-1?[!1,d]:[!0,-1]}var e=a.inArray(b,eventOrganiserSchedule.include);return e>-1?[!0,e]:[!1,-1]},add_or_remove_date:function(b,c){var d,e=eventOrganiserSchedule.is_date_eventful(b);e[0]?(d=e[1],d>-1?eventOrganiserSchedule.include.splice(d,1):a.inArray(b,eventOrganiserSchedule.exclude)<0&&eventOrganiserSchedule.exclude.push(b)):(d=e[1],d>-1?eventOrganiserSchedule.exclude.splice(d,1):a.inArray(b,eventOrganiserSchedule.include)<0&&eventOrganiserSchedule.include.push(b)),eo_exclude_dates=eventOrganiserSchedule.exclude,eo_include_dates=eventOrganiserSchedule.include}}}(jQuery),function(a){function b(a){return Object.prototype.toString.call(a).slice(8,-1).toLowerCase()}function c(a,b){for(var c=[];b>0;c[--b]=a);return c.join("")}var d=function(){return d.cache.hasOwnProperty(arguments[0])||(d.cache[arguments[0]]=d.parse(arguments[0])),d.format.call(null,d.cache[arguments[0]],arguments)};d.format=function(a,e){var f,g,h,i,j,k,l,m=1,n=a.length,o="",p=[];for(g=0;n>g;g++)if(o=b(a[g]),"string"===o)p.push(a[g]);else if("array"===o){if(i=a[g],i[2])for(f=e[m],h=0;h<i[2].length;h++){if(!f.hasOwnProperty(i[2][h]))throw d('[sprintf] property "%s" does not exist',i[2][h]);f=f[i[2][h]]}else f=i[1]?e[i[1]]:e[m++];if(/[^s]/.test(i[8])&&"number"!=b(f))throw d("[sprintf] expecting number but found %s",b(f));switch(i[8]){case"b":f=f.toString(2);break;case"c":f=String.fromCharCode(f);break;case"d":f=parseInt(f,10);break;case"e":f=i[7]?f.toExponential(i[7]):f.toExponential();break;case"f":f=i[7]?parseFloat(f).toFixed(i[7]):parseFloat(f);break;case"o":f=f.toString(8);break;case"s":f=(f=String(f))&&i[7]?f.substring(0,i[7]):f;break;case"u":f>>>=0;break;case"x":f=f.toString(16);break;case"X":f=f.toString(16).toUpperCase()}f=/[def]/.test(i[8])&&i[3]&&f>=0?"+"+f:f,k=i[4]?"0"==i[4]?"0":i[4].charAt(1):" ",l=i[6]-String(f).length,j=i[6]?c(k,l):"",p.push(i[5]?f+j:j+f)}return p.join("")},d.cache={},d.parse=function(a){for(var b=a,c=[],d=[],e=0;b;){if(null!==(c=/^[^\x25]+/.exec(b)))d.push(c[0]);else if(null!==(c=/^\x25{2}/.exec(b)))d.push("%");else{if(null===(c=/^\x25(?:([1-9]\d*)\$|\(([^\)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-fosuxX])/.exec(b)))throw"[sprintf] huh?";if(c[2]){e|=1;var f=[],g=c[2],h=[];if(null===(h=/^([a-z_][a-z_\d]*)/i.exec(g)))throw"[sprintf] huh?";for(f.push(h[1]);""!==(g=g.substring(h[0].length));)if(null!==(h=/^\.([a-z_][a-z_\d]*)/i.exec(g)))f.push(h[1]);else{if(null===(h=/^\[(\d+)\]/.exec(g)))throw"[sprintf] huh?";f.push(h[1])}c[2]=f}else e|=2;if(3===e)throw"[sprintf] mixing positional and named placeholders is not (yet) supported";d.push(c)}b=b.substring(c[0].length)}return d};var e=function(a,b,c){return c=b.slice(0),c.splice(0,0,a),d.apply(null,c)};a.sprintf=d,a.vsprintf=e}("undefined"!=typeof exports?exports:window);
1
+ /*! event-organiser 3.6.0-0-g619ade6 2017-11-25 22:52 */
2
+ var eo_include_dates,eo_exclude_dates,eo_viewing_month;!function(a){function b(b,c,d){var e,f=new Array("SU","MO","TU","WE","TH","FR","SA"),g=[],h=!1;switch(b.schedule){case"once":case"custom":var i=a.datepicker.formatDate("yy-mm-dd",b.start);return g.push(i),g;case"daily":b.start<c?(e=Math.abs((c-b.start)/864e5)-1,e%=b.frequency):e=parseInt(b.start.getDate(),10);var j=b.frequency,k=[],l=new Date(c);l.setDate(c.getDate()+(e-1)),k.push(l);break;case"weekly":var m=c.getDay();k=[],a.each(b.schedule_meta,function(a,d){a=f.indexOf(d),l=new Date(b.start),l.setDate(b.start.getDate()+(a-b.start.getDay()+7)%7),c>l&&(e=Math.abs((c-b.start)/864e5),e-=e%(7*b.frequency),l.setDate(l.getDate()+e)),k.push(l)}),j=7*b.frequency;break;case"monthly":var n=12*(c.getFullYear()-b.start.getFullYear())+(c.getMonth()-b.start.getMonth());if(n%b.frequency!==0)return;if(b.schedule_meta.match(/BYMONTHDAY=(\d+)/)){var o=b.start.getDate(),p=d.getDate();p>=o&&(h=new Date(c.getFullYear(),c.getMonth(),o))}else{var q,r=b.schedule_meta.match(/BYDAY=(\d+)(MO|TU|WE|TH|FR|SA|SU)/),s=parseInt(r[1],10)-1,t=b.start.getDay();if(s>=4){var u=d.getDay();q=d.getDate()+(t-u-7)%7}else{m=c.getDay();var v=(t-m+7)%7;q=v+7*s+1}h=new Date(c),h.setDate(q)}return h&&h<=b.schedule_last&&(i=a.datepicker.formatDate("yy-mm-dd",h),g.push(i)),g;case"yearly":var w=c.getFullYear()-b.start.getFullYear();if(w%b.frequency!==0)return g;var x=new Date(c.getFullYear(),b.start.getMonth(),b.start.getDate());return c.getMonth()==b.start.getMonth()&&x.getMonth()==b.start.getMonth()&&(h=new Date(b.start),h.setYear(c.getFullYear()),h<=b.schedule_last&&(i=a.datepicker.formatDate("yy-mm-dd",h),g.push(i))),g;default:return g}for(var y in k)for(h=new Date(k[y]);d>=h&&h<=b.schedule_last;)i=a.datepicker.formatDate("yy-mm-dd",h),g.push(i),h.setDate(h.getDate()+j);return g}Array.prototype.indexOf||(Array.prototype.indexOf=function(a){var b=this.length,c=Number(arguments[1])||0;for(c=0>c?Math.ceil(c):Math.floor(c),0>c&&(c+=b);b>c;c++)if(c in this&&this[c]===a)return c;return-1}),Date.prototype.eoGetOrdinal=function(){var a=this.getDate();switch(a){case 1:case 21:case 31:return"st";case 2:case 22:return"nd";case 3:case 23:return"rd";default:return"th"}},window.eventOrganiserSchedulePicker={init:function(b){var c=this;this.options=b,this.schedule=b.schedule,this.set_up_datepickers(),this.set_up_timepickers(),a(".event-date :input, .eo-all-day-toggle").change(function(b){c.update_schedule(),c.update_form(),a(this).hasClass("eo-all-day-toggle")||c.update_occurrencepicker_rules()}),this.update_schedule(),this.update_form();var d=new Date;eo_viewing_month=[d.getFullYear(),d.getMonth()+1],this.schedule.generate_dates_by_rule(d.getFullYear(),d.getMonth()+1,{})},set_up_datepickers:function(){var b=this,c=this.options.views,d=this.options.locale;a(c.start_date).data("eo-datepicker","start"),a(c.end_date).data("eo-datepicker","end");if(a(c.is_all_day).addClass("eo-all-day-toggle"),a(c.schedule_last_date))var e=a(c.schedule_last_date).datepicker({nextText:">",prevText:"<",dateFormat:this.options.format,changeMonth:!0,changeYear:!0,monthNamesShort:d.monthAbbrev,dayNamesMin:d.dayAbbrev,isRTL:d.isrtl,firstDay:parseInt(this.options.startday,10),beforeShow:function(b,c){c.hasOwnProperty("dpDiv")?c.dpDiv.addClass("eo-datepicker"):a("#ui-datepicker-div").addClass("eo-datepicker")}}).data("eo-datepicker","schedule_last");var f=a(c.start_date+", "+c.end_date).datepicker({dateFormat:this.options.format,nextText:">",prevText:"<",changeMonth:!0,changeYear:!0,monthNamesShort:d.monthAbbrev,dayNamesMin:d.dayAbbrev,firstDay:parseInt(this.options.startday,10),onSelect:function(d){var g="start"==a(this).data("eo-datepicker")?"minDate":"maxDate",h=a(this).data("datepicker"),i=a.datepicker.parseDate(h.settings.dateFormat||a.datepicker._defaults.dateFormat,d,h.settings);f.not(this).datepicker("option",g,i),"from_date"==this.id&&e.datepicker("option","minDate",i);var j=a(c.start_date).datepicker("getDate"),k=a(c.end_date).datepicker("getDate");if(j.getTime()!=k.getTime()){var l={hour:null,minute:null};a(c.start_time+", "+c.end_time).eotimepicker("option",{maxTime:l,minTime:l})}b.update_schedule(),b.update_occurrencepicker_rules(),b.update_form()},beforeShow:function(b,c){c.hasOwnProperty("dpDiv")?c.dpDiv.addClass("eo-datepicker"):a("#ui-datepicker-div").addClass("eo-datepicker")}}),g=a(c.occurrence_picker);g.length>0&&(g.datepicker({dateFormat:"yy-mm-dd",nextText:">",prevText:"<",changeMonth:!0,changeYear:!0,monthNamesShort:d.monthAbbrev,dayNamesMin:d.dayAbbrev,firstDay:parseInt(this.options.startday,10),onSelect:function(b){eventOrganiserSchedule.add_or_remove_date(b),a(eventOrganiserSchedulePicker.options.views.include).val(eventOrganiserSchedule.include.join(",\r\n")),a(eventOrganiserSchedulePicker.options.views.exclude).val(eventOrganiserSchedule.exclude.join(",\r\n"))},beforeShowDay:function(b){var c=a.datepicker.formatDate("yy-mm-dd",b),d=eventOrganiserSchedule.is_date_eventful(c);return d[0]?[!0,"eo-op-date-selected",""]:[!0,"eo-op-date-not-selected",""]},beforeShow:function(b,c){c.hasOwnProperty("dpDiv")?c.dpDiv.addClass("eo-datepicker"):a("#ui-datepicker-div").addClass("eo-datepicker")},onChangeMonthYear:eventOrganiserSchedule.generate_dates_by_rule}).hide().find(".ui-datepicker-inline").click(function(a){a||(a=window.event),a.cancelBubble=!0,a.stopPropagation&&a.stopPropagation()}),a("html").click(function(){g.hide(),a(c.occurrence_picker_toggle).val(d.showDates)})),a(c.occurrence_picker_toggle).click(function(b){b.preventDefault(),b.stopPropagation(),g.toggle(),g.is(":visible")?(a(this).val(d.hideDates),a(c.occurrence_picker).datepicker("refresh")):a(this).val(d.showDates)})},update_occurrencepicker_rules:function(){eo_exclude_dates=[],eo_include_dates=[],this.schedule.generate_dates_by_rule(eo_viewing_month[0],eo_viewing_month[1],{}),a(this.options.views.occurrence_picker).datepicker("refresh")},set_up_timepickers:function(){var b=this.options,c=this.options.views;a(c.start_time).data("eo-event-data","start-time"),a(c.end_time).data("eo-event-data","end-time"),a(c.start_time+", "+c.end_time).eotimepicker({showPeriodLabels:!b.is24hour,showPeriod:!this.options.is24hour,showLeadingZero:b.is24hour,periodSeparator:"",amPmText:b.locale.meridian,hourText:b.locale.hour,minuteText:b.locale.minute,isRTL:b.locale.isrtl,onSelect:function(b,d){var e=a(c.start_date).datepicker("getDate"),f=a(c.end_date).datepicker("getDate");if(e.getTime()==f.getTime()){var g={hour:d.hours,minute:d.minutes};"start-time"==a(d.input).data("eo-event-data")?a(c.end_time).eotimepicker("option",{minTime:g}):a(c.start_time).eotimepicker("option",{maxTime:g})}}}).addClass("eo-time-picker")},update_schedule:function(){var b=new Array("SU","MO","TU","WE","TH","FR","SA"),c=this.options.views,d={schedule:a(c.schedule).val(),frequency:parseInt(a(c.frequency).val(),10),schedule_last:a(c.schedule_last_date).datepicker("getDate"),start:a(c.start_date).datepicker("getDate"),end:a(c.end_date).datepicker("getDate"),is_all_day:a(c.is_all_day).attr("checked"),include:a(c.include).length>0?a(c.include).val().split(","):[],exclude:a(c.exclude).length>0?a(c.exclude).val().split(","):[]};if("weekly"==d.schedule){if(d.schedule_meta=[],0===a(c.week_repeat+" :checkbox:checked").length){var e=d.start.getDay();a(c.week_repeat+" :checkbox[value='"+b[e]+"']").attr("checked",!0)}a(c.week_repeat+" :checkbox:checked").each(function(){d.schedule_meta.push(a(this).val())})}else if("monthly"==d.schedule)if("BYMONTHDAY="==a(c.month_repeat+" :radio:checked").val())d.schedule_meta="BYMONTHDAY="+d.start.getDate();else{var f=d.start.getDay()%7,g=parseInt(Math.floor((d.start.getDate()-1)/7),10);d.schedule_meta="BYDAY="+(g+1)+b[f]}this.schedule=eventOrganiserSchedule.init(d),eo_exclude_dates=d.exclude,eo_include_dates=d.include},update_form:function(){var b=this.options.views,c=this.options.locale,d=this.schedule,e=700;switch(a(".event-date :input").attr("disabled",!this.options.editable).toggleClass("ui-state-disabled",!this.options.editable),a("label[for=eo-all-day]").toggleClass("ui-state-disabled",!this.options.editable),this.options.editable&&a(b.start_time+", "+b.end_time).attr("disabled",d.is_all_day).toggleClass("ui-state-disabled",d.is_all_day),"once"==d.schedule||"custom"==d.schedule?(a(b.recurrence_section+" :input").attr("disabled",!0),a(b.recurrence_section).hide()):(a(b.recurrence_section+" :input").attr("disabled",!1),a(b.recurrence_section).fadeIn(e)),d.schedule){case"once":case"custom":a(d.frequency).val("1"),a(b.month_repeat+", "+b.week_repeat).show();break;case"weekly":d.frequency>1?a(b.schedule_span).text(c.weeks):a(b.schedule_span).text(c.week),a(b.week_repeat).fadeIn(e),a(b.week_repeat+" :input").attr("disabled",!1),a(b.month_repeat).hide(),a(b.month_repeat+" :input").attr("disabled",!0);break;case"monthly":d.frequency>1?a(b.schedule_span).text(c.months):a(b.schedule_span).text(c.month),a(b.month_repeat).fadeIn(e),a(b.month_repeat+" :input").attr("disabled",!1),a(b.week_repeat).hide(),a(b.week_repeat+" :input").attr("disabled",!0);break;case"daily":d.frequency>1?a(b.schedule_span).text(c.days):a(b.schedule_span).text(c.day),a(b.week_repeat+", "+b.month_repeat).hide(),a(b.week_repeat+" :input, "+b.month_repeat+" :input").attr("disabled",!0);break;case"yearly":d.frequency>1?a(b.schedule_span).text(c.years):a(b.schedule_span).text(c.year),a(b.week_repeat+", "+b.month_repeat).hide(),a(b.week_repeat+" :input, "+b.month_repeat+" :input").attr("disabled",!0)}null===a("#venue_select").val()&&a(".venue_row").hide(),a(b.summary).html(d.generate_summary(c))}},eventOrganiserSchedule={self:this,init:function(b){var c={schedule:"once",frequency:1,schedule_last:new Date,start:new Date,end:new Date,is_all_day:!1,dates_by_rule:[]};b=a.extend({},c,b);for(var d in b)this[d]=b[d];return this},generate_dates_by_rule:function(a,c,d){var e=new Date(a,c-1,1),f=new Date(a,c,1),g=new Date(f-1);eventOrganiserSchedule.schedule_last<e||eventOrganiserSchedule.start>g||(eventOrganiserSchedule.dates_by_rule=b(eventOrganiserSchedule,e,g))},generate_summary:function(b){var c=b.weekDay,d=b.summary+" ",e={monthNamesShort:b.monthAbbrev,dayNamesMin:b.dayAbbrev,monthNames:b.monthNames},f=this.schedule,g=new Array("SU","MO","TU","WE","TH","FR","SA");switch(f){case"once":return"This event will be a one-time event";case"custom":case"daily":d+=this.frequency>1?sprintf(b.dayPlural,this.frequency):b.daySingle;break;case"weekly":d+=this.frequency>1?sprintf(b.weekPlural,this.frequency):b.weekSingle;var h=a.map(this.schedule_meta,function(a,b){return c[g.indexOf(a)]});d+=" "+h.join(", ");break;case"monthly":if(d+=this.frequency>1?sprintf(b.monthPlural,this.frequency):b.monthSingle,this.schedule_meta.match(/BYMONTHDAY=(\d+)/))d=d+" "+this.start.getDate()+this.start.eoGetOrdinal();else{var i=this.schedule_meta.match(/BYDAY=(\d+)(MO|TU|WE|TH|FR|SA|SU)/),j=parseInt(i[1],10)-1;d=d+" "+b.occurrence[j]+" "+c[g.indexOf(i[2])]}break;case"yearly":d+=this.frequency>1?sprintf(b.yearPlural,this.frequency):b.yearSingle,d=d+" "+a.datepicker.formatDate("MM d",this.start,e)+this.start.eoGetOrdinal()}return null!==this.schedule_last&&(d=d+" "+b.until+" "+a.datepicker.formatDate("MM d'"+this.schedule_last.eoGetOrdinal()+"' yy",this.schedule_last,e)),d},is_date_eventful:function(b){var c=a.inArray(b,eventOrganiserSchedule.dates_by_rule),d=a.inArray(b,eventOrganiserSchedule.exclude),e=a.inArray(b,eventOrganiserSchedule.include);return c>-1?d>-1&&-1==e?[!1,d]:d>-1&&e>-1?[!0,e]:[!0,-1]:e>-1?[!0,e]:[!1,-1]},add_or_remove_date:function(b,c){var d,e=eventOrganiserSchedule.is_date_eventful(b);e[0]?(d=e[1],d>-1?eventOrganiserSchedule.include.splice(d,1):a.inArray(b,eventOrganiserSchedule.exclude)<0&&eventOrganiserSchedule.exclude.push(b)):(d=e[1],d>-1?eventOrganiserSchedule.exclude.splice(d,1):a.inArray(b,eventOrganiserSchedule.include)<0&&eventOrganiserSchedule.include.push(b)),eo_exclude_dates=eventOrganiserSchedule.exclude,eo_include_dates=eventOrganiserSchedule.include}}}(jQuery),function(a){function b(a){return Object.prototype.toString.call(a).slice(8,-1).toLowerCase()}function c(a,b){for(var c=[];b>0;c[--b]=a);return c.join("")}var d=function(){return d.cache.hasOwnProperty(arguments[0])||(d.cache[arguments[0]]=d.parse(arguments[0])),d.format.call(null,d.cache[arguments[0]],arguments)};d.format=function(a,e){var f,g,h,i,j,k,l,m=1,n=a.length,o="",p=[];for(g=0;n>g;g++)if(o=b(a[g]),"string"===o)p.push(a[g]);else if("array"===o){if(i=a[g],i[2])for(f=e[m],h=0;h<i[2].length;h++){if(!f.hasOwnProperty(i[2][h]))throw d('[sprintf] property "%s" does not exist',i[2][h]);f=f[i[2][h]]}else f=i[1]?e[i[1]]:e[m++];if(/[^s]/.test(i[8])&&"number"!=b(f))throw d("[sprintf] expecting number but found %s",b(f));switch(i[8]){case"b":f=f.toString(2);break;case"c":f=String.fromCharCode(f);break;case"d":f=parseInt(f,10);break;case"e":f=i[7]?f.toExponential(i[7]):f.toExponential();break;case"f":f=i[7]?parseFloat(f).toFixed(i[7]):parseFloat(f);break;case"o":f=f.toString(8);break;case"s":f=(f=String(f))&&i[7]?f.substring(0,i[7]):f;break;case"u":f>>>=0;break;case"x":f=f.toString(16);break;case"X":f=f.toString(16).toUpperCase()}f=/[def]/.test(i[8])&&i[3]&&f>=0?"+"+f:f,k=i[4]?"0"==i[4]?"0":i[4].charAt(1):" ",l=i[6]-String(f).length,j=i[6]?c(k,l):"",p.push(i[5]?f+j:j+f)}return p.join("")},d.cache={},d.parse=function(a){for(var b=a,c=[],d=[],e=0;b;){if(null!==(c=/^[^\x25]+/.exec(b)))d.push(c[0]);else if(null!==(c=/^\x25{2}/.exec(b)))d.push("%");else{if(null===(c=/^\x25(?:([1-9]\d*)\$|\(([^\)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-fosuxX])/.exec(b)))throw"[sprintf] huh?";if(c[2]){e|=1;var f=[],g=c[2],h=[];if(null===(h=/^([a-z_][a-z_\d]*)/i.exec(g)))throw"[sprintf] huh?";for(f.push(h[1]);""!==(g=g.substring(h[0].length));)if(null!==(h=/^\.([a-z_][a-z_\d]*)/i.exec(g)))f.push(h[1]);else{if(null===(h=/^\[(\d+)\]/.exec(g)))throw"[sprintf] huh?";f.push(h[1])}c[2]=f}else e|=2;if(3===e)throw"[sprintf] mixing positional and named placeholders is not (yet) supported";d.push(c)}b=b.substring(c[0].length)}return d};var e=function(a,b,c){return c=b.slice(0),c.splice(0,0,a),d.apply(null,c)};a.sprintf=d,a.vsprintf=e}("undefined"!=typeof exports?exports:window);
js/frontend.js CHANGED
@@ -62,13 +62,16 @@ jQuery(document).ready(function () {
62
  }
63
 
64
  function eventorganiser_organiser_filter_markup( options ){
65
- console.log(options);
66
  var html="<select class='eo-fc-filter eo-fc-filter-organiser' data-filter-type='organiser'>";
67
  html+="<option value=''>"+options.select_none+"</option>";
68
 
69
  var display_name;
70
  for ( var user_id in options.users ){
71
  display_name = options.users[user_id];
 
 
 
72
  html+= "<option value='"+user_id+"'>"+display_name+"</option>";
73
  }
74
  html+="</select>";
@@ -149,7 +152,8 @@ jQuery(document).ready(function () {
149
  organiser: function(){
150
  return eventorganiser_organiser_filter_markup( {
151
  users: eventorganiser.fullcal.users,
152
- select_none: EOAjaxFront.locale.view_all_organisers
 
153
  });
154
  },
155
  'goto': eventorganiser_mini_calendar
@@ -212,8 +216,7 @@ jQuery(document).ready(function () {
212
  if (typeof tag !== "undefined" && tag !== "" && $.inArray(tag, event.tags) < 0 ) {
213
  render = false;
214
  }
215
-
216
- if (typeof organiser !== "undefined" && organiser !== "" && organiser != event.organiser) {
217
  render = false;
218
  }
219
 
62
  }
63
 
64
  function eventorganiser_organiser_filter_markup( options ){
65
+ var whitelist = ( typeof options.whitelist !== "undefined" && options.whitelist.length > 0 ? options.whitelist : false );
66
  var html="<select class='eo-fc-filter eo-fc-filter-organiser' data-filter-type='organiser'>";
67
  html+="<option value=''>"+options.select_none+"</option>";
68
 
69
  var display_name;
70
  for ( var user_id in options.users ){
71
  display_name = options.users[user_id];
72
+ if ( whitelist && $.inArray( parseInt(user_id,10), whitelist ) == -1 ) {
73
+ continue;
74
+ }
75
  html+= "<option value='"+user_id+"'>"+display_name+"</option>";
76
  }
77
  html+="</select>";
152
  organiser: function(){
153
  return eventorganiser_organiser_filter_markup( {
154
  users: eventorganiser.fullcal.users,
155
+ select_none: EOAjaxFront.locale.view_all_organisers,
156
+ whitelist: calendars[i].event_organiser,
157
  });
158
  },
159
  'goto': eventorganiser_mini_calendar
216
  if (typeof tag !== "undefined" && tag !== "" && $.inArray(tag, event.tags) < 0 ) {
217
  render = false;
218
  }
219
+ if (typeof organiser !== "undefined" && organiser !== "" && parseInt(organiser,10) !== event.organiser) {
 
220
  render = false;
221
  }
222
 
js/frontend.min.js CHANGED
@@ -1,2 +1,2 @@
1
- /*! event-organiser 3.5.1-0-g786a5d5 2017-11-14 21:45 */
2
- function eveorg_getParameterByName(a,b){a=a.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var c="[\\?&]"+a+"=([^&#]*)",d=new RegExp(c),e=d.exec(b);return null===e?"":decodeURIComponent(e[1].replace(/\+/g," "))}var eventorganiser=eventorganiser||{};!function(a){jQuery(document).ready(function(){function b(a,b,c){var d;for(d in a)if(a[b]==c)return d;return!1}function c(c){var d="undefined"!=typeof c.whitelist&&c.whitelist?c.whitelist.split(","):!1,e="<select class='eo-fc-filter eo-fc-filter-"+c.type+"' data-filter-type='"+c.type+"'>";e+="<option value=''>"+c.select_none+"</option>";var f;for(var g in c.terms){if(f=c.terms[g],d){var h=!1;-1!==a.inArray(f.slug,d)&&(h=!0);for(var i=f;!h&&i.parent>0;)i=b(c.terms,"term_id",i.parent),-1!==a.inArray(i.slug,d)&&(h=!0);if(!h)continue}e+="<option value='"+f.slug+"'>"+f.name+"</option>"}e+="</select>";var j=a("<span class='fc-header-dropdown filter-"+c.type+"'></span>");return j.append(e),j}function d(b){console.log(b);var c="<select class='eo-fc-filter eo-fc-filter-organiser' data-filter-type='organiser'>";c+="<option value=''>"+b.select_none+"</option>";var d;for(var e in b.users)d=b.users[e],c+="<option value='"+e+"'>"+d+"</option>";c+="</select>";var f=a("<span class='fc-header-dropdown filter-organiser'></span>");return f.append(c),f}function e(){return a("<span class='fc-header-goto'><input type='hidden' class='eo-mini-calendar'/></span>")}if(a(".eo-fullcalendar").on("change",".eo-fc-filter",function(){a(".eo-fullcalendar").fullCalendar("rerenderEvents")}),a(".eo-fullcalendar").length>0){var f,g,h=eventorganiser.calendars;g={agendaDay:"listDay",basicDay:"listDay",listDay:"listDay",agendaWeek:"listWeek",basicWeek:"listWeek",listWeek:"listWeek",month:"listMonth",listMonth:"listMonth"};for(var i=0;i<h.length;i++){var j="#eo_fullcalendar_"+(i+1);"undefined"==typeof h[i].category&&(h[i].category=""),"undefined"==typeof h[i].venue&&(h[i].venue="");var k={id:j,defaultDate:h[i].defaultdate?h[i].defaultdate:void 0,category:h[i].event_category,venue:h[i].event_venue,tag:h[i].event_tag,organiser:h[i].event_organiser,event_series:h[i].event_series,customButtons:{category:function(){return c({terms:eventorganiser.fullcal.categories,select_none:EOAjaxFront.locale.cat,whitelist:h[i].event_category,type:"category"})},venue:function(){return c({terms:eventorganiser.fullcal.venues,select_none:EOAjaxFront.locale.venue,whitelist:h[i].event_venue,type:"venue"})},tag:function(){return c({terms:eventorganiser.fullcal.tags,select_none:EOAjaxFront.locale.tag,whitelist:"",type:"tag"})},organiser:function(){return d({users:eventorganiser.fullcal.users,select_none:EOAjaxFront.locale.view_all_organisers})},"goto":e},theme:h[i].theme,isRTL:h[i].isrtl,editable:!1,selectable:!1,weekMode:"variable",tooltip:h[i].tooltip,firstDay:parseInt(eventorganiser.fullcal.firstDay,10),weekends:h[i].weekends,hiddenDays:h[i].hiddendays,slotDuration:h[i].slotduration,allDaySlot:h[i].alldayslot,allDayText:h[i].alldaytext,axisFormat:h[i].axisformat,minTime:h[i].mintime,maxTime:h[i].maxtime,weekNumbers:h[i].weeknumbers,weekNumbersWithinDays:h[i].weeknumberswithindays,eventColor:"#1e8cbe",timeFormatphp:h[i].timeformatphp,timeFormat:h[i].timeformat,columnFormat:{month:h[i].columnformatmonth,week:h[i].columnformatweek,day:h[i].columnformatday},titleFormat:{month:h[i].titleformatmonth,week:h[i].titleformatweek,day:h[i].titleformatday},header:{left:h[i].headerleft,center:h[i].headercenter,right:h[i].headerright},eventRender:function(b,c,d){var e=a(d.calendar.options.id).find(".eo-fc-filter-category").val(),f=a(d.calendar.options.id).find(".eo-fc-filter-venue").val(),g=a(d.calendar.options.id).find(".eo-fc-filter-tag").val(),h=a(d.calendar.options.id).find(".eo-fc-filter-organiser").val(),i=!0;return"undefined"!=typeof e&&""!==e&&a.inArray(e,b.category)<0&&(i=!1),"undefined"!=typeof f&&""!==f&&f!==b.venue_slug&&(i=!1),"undefined"!=typeof g&&""!==g&&a.inArray(g,b.tags)<0&&(i=!1),"undefined"!=typeof h&&""!==h&&h!=b.organiser&&(i=!1),(i=wp.hooks.applyFilters("eventorganiser.fullcalendar_render_event",i,b,c,d))?void(d.calendar.options.tooltip&&a(c).qtip({content:{text:b.description,button:!1,title:b.title},position:{my:"top center",at:"bottom center",viewport:a(window),adjust:{method:"shift none"}},hide:{fixed:!0,delay:500,effect:function(b){a(this).fadeOut("50")}},border:{radius:4,width:3},style:{classes:"eo-event-toolip qtip-eo",tip:"topMiddle"}})):!1},buttonText:{today:EOAjaxFront.locale.today,month:EOAjaxFront.locale.month,week:EOAjaxFront.locale.week,day:EOAjaxFront.locale.day},monthNames:EOAjaxFront.locale.monthNames,monthNamesShort:EOAjaxFront.locale.monthAbbrev,dayNames:EOAjaxFront.locale.dayNames,dayNamesShort:EOAjaxFront.locale.dayAbbrev,height:h[i].aspectratio?!1:"auto",aspectRatio:h[i].aspectratio?h[i].aspectratio:!1,responsive:h[i].responsive,responsiveBreakpoint:h[i].responsivebreakpoint,defaultView:a(window).width()<514&&h[i].responsive?g[h[i].defaultview]:h[i].defaultview,previousView:h[i].defaultview,nextDayThreshold:h[i].nextdaythreshold,windowResize:function(b){b.calendar.options.responsive&&a(window).width()<b.calendar.options.responsiveBreakpoint?a(this).fullCalendar("changeView",g[b.calendar.options.previousView]):a(this).fullCalendar("changeView",b.calendar.options.previousView)},lazyFetching:"true",events:function(b,c,d,e){var f=this.options,g={start:b.format("YYYY-MM-DD"),end:c.format("YYYY-MM-DD"),timeformat:f.timeFormatphp,users_events:0};"undefined"!=typeof f.category&&""!==f.category&&(g.category=f.category),"undefined"!=typeof f.venue&&""!==f.venue&&(g.venue=f.venue),"undefined"!=typeof f.tag&&""!==f.tag&&(g.tag=f.tag),"undefined"!=typeof f.organiser&&0!==f.organiser&&(g.organiser=f.organiser),f.event_series&&(g.event_series=f.event_series),g=wp.hooks.applyFilters("eventorganiser.fullcalendar_request",g,b,c,d,f),a.ajax({url:eventorganiser.ajaxurl+"?action=eventorganiser-fullcal",dataType:"JSON",data:g,complete:function(a,b){},success:e})},loading:function(b){var c=a("#"+a(this).attr("id")+"_loading");b?(window.clearTimeout(f),f=window.setTimeout(function(){c.show()},1e3)):(window.clearTimeout(f),c.hide())}};k=wp.hooks.applyFilters("eventorganiser.fullcalendar_options",k,h[i]),a(j).fullCalendar(k)}}"undefined"!=typeof eventorganiser.fullcal&&a(".eo-mini-calendar").datepicker({dateFormat:"DD, d MM, yy",changeMonth:!0,changeYear:!0,firstDay:parseInt(eventorganiser.fullcal.firstDay,10),buttonText:EOAjaxFront.locale.gotodate,monthNamesShort:EOAjaxFront.locale.monthAbbrev,dayNamesMin:EOAjaxFront.locale.dayAbbrev,nextText:EOAjaxFront.locale.nextText,prevText:EOAjaxFront.locale.prevText,showOn:"button",beforeShow:function(b,c){c.hasOwnProperty("dpDiv")?c.dpDiv.addClass("eo-datepicker eo-fc-mini-calendar eo-fc-datepicker"):a("#ui-datepicker-div").addClass("eo-datepicker eo-fc-mini-calendar eo-fc-datepicker")},onSelect:function(b,c){var d=a(this).parents("div.eo-fullcalendar").attr("id");a("#"+d).fullCalendar("gotoDate",new Date(Date.parse(b)))}}),a("#eo-upcoming-dates, .eo-upcoming-dates").each(function(b,c){var d={el:a(this)};if(d.el.find("li:gt(4)").length>0){var e=5,f={more:EOAjaxFront.locale.ShowMore,less:EOAjaxFront.locale.ShowLess};d.less=a('<a class="eo-upcoming-dates-show-less" href="#"></a>').text(f.less),d.pipe=a('<span class="eo-upcoming-dates-pipe">|</span>'),d.more=a('<a class="eo-upcoming-dates-show-more" href="#"></a>').text(f.more),d.el.find("li:gt("+(e-1)+")").hide().end().after(d.less,d.pipe,d.more),d.pipe.hide(),d.less.hide().click(function(a){a.preventDefault();var b=Math.floor((d.el.find("li:visible").length-1)/e)*e-1;d.el.find("li:gt("+b+")").hide(),d.more.show(),d.pipe.show(),d.el.find("li:visible").length<=e&&(d.less.hide(),d.pipe.hide())}),d.more.click(function(b){b.preventDefault(),d.less.show(),d.pipe.show(),d.el.find("li:hidden:lt("+e+")").show();var c=d.pipe.offset();a("html, body").animate({scrollTop:Math.max(c.top+40-a(window).height(),a(window).scrollTop())}),0===d.el.find("li:hidden").length&&(d.more.hide(),d.pipe.hide())})}}),a(".eo-widget-cal-wrap").length>0&&a(".eo-widget-cal-wrap").on("click","tfoot a",function(b){if(b.preventDefault(),!a(this).data("eo-widget-cal-disabled")){var c=a(this).closest(".eo-widget-cal-wrap"),d=c.data("eo-widget-cal-id");c.find("tfoot a").data("eo-widget-cal-disabled",1);var e={showpastevents:1,"show-long":0,"link-to-single":0};"undefined"!=typeof eventorganiser.widget_calendars&&"undefined"!=typeof eventorganiser.widget_calendars[d]&&(e=eventorganiser.widget_calendars[d]),"undefined"!=typeof eo_widget_cal&&"undefined"!=typeof eo_widget_cal[d]&&(e=eo_widget_cal[d]),e.eo_month=eveorg_getParameterByName("eo_month",a(this).attr("href")),c.addClass("eo-widget-cal-loading"),a("#"+d+"_overlay").remove(),a("#"+d+"_content").prepend('<div class="eo-widget-cal-overlay" id="'+d+'_overlay"><div class="eo-widget-cal-spinner"/></div>'),a.getJSON(eventorganiser.add_query_arg("action","eo_widget_cal",EOAjaxFront.adminajax),e,function(b){a("#"+d+"_content").html(b),c.removeClass("eo-widget-cal-loading")})}})}),eventorganiser.add_query_arg=function(a,b,c){var d=new RegExp("([?&])"+a+"=.*?(&|$)","i"),e=-1!==c.indexOf("?")?"&":"?";return c.match(d)?c.replace(d,"$1"+a+"="+b+"$2"):c+e+a+"="+b},eventorganiser.template=function(b,c,d){var e=/\\|'|\r|\n|\t|\u2028|\u2029/g;d="undefined"!=typeof d?d:{},d=a.extend(!0,{evaluate:/<#([\s\S]+?)#>/g,interpolate:/\{\{\{([\s\S]+?)\}\}\}/g,escape:/\{\{([^\}]+?)\}\}(?!\})/g},d);var f,g={"'":"'","\\":"\\","\r":"r","\n":"n"," ":"t","\u2028":"u2028","\u2029":"u2029"},h=new RegExp([d.escape.source,d.interpolate.source,d.evaluate.source].join("|")+"|$","g"),i=0,j="__p+='";b.replace(h,function(a,c,d,f,h){return j+=b.slice(i,h).replace(e,function(a){return"\\"+g[a]}),c&&(j+="'+\n((__t=("+c+"))==null?'':_.escape(__t))+\n'"),d&&(j+="'+\n((__t=("+d+"))==null?'':__t)+\n'"),f&&(j+="';\n"+f+"\n__p+='"),i=h+a.length,a}),j+="';\n",d.variable||(j="with(obj||{}){\n"+j+"}\n"),j="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+j+"return __p;\n";try{f=new Function(d.variable||"obj","_",j)}catch(k){throw k.source=j,k}if(c)return f(c);var l=function(a){return f.call(this,a)};return l},eventorganiser.agenda_widget=function(b){this.param=b,moment.locale(EOAjaxFront.locale.locale,{months:EOAjaxFront.locale.monthNames,monthsShort:EOAjaxFront.locale.monthAbbrev,weekdays:EOAjaxFront.locale.dayNames,weekdaysShort:EOAjaxFront.locale.dayAbbrev,weekdaysMin:EOAjaxFront.locale.dayInitial}),this.start=moment().add(-1,"days"),this.end=moment().add(-1,"days"),this.$el=a("#"+this.param.id+"_container"),this.direction=1,this.eventTemplate=eventorganiser.template(a("#eo-tmpl-agenda-widget-item").html(),null,{variable:"event"}),this.groupTemplate=eventorganiser.template(a("#eo-tmpl-agenda-widget-group").html(),null,{variable:"group"})},eventorganiser.agenda_widget.prototype.group_change=function(a,b){return a===!1?!0:"day"!==this.param.mode?!1:a.format("YYYY-MM-DD")!==b.format("YYYY-MM-DD")},eventorganiser.agenda_widget.prototype.init=function(){this.$el.html(eventorganiser.template(a("#eo-tmpl-agenda-widget").html(),{},{variable:"data"})),this.$datesEl=this.$el.find(".dates"),this.load_events(),this.param.add_to_google&&this.$el.on("click",".event",function(){a(this).find(".meta").toggle("400")});var b=this;this.$el.on("click",".eo-agenda-widget-nav-prev,.eo-agenda-widget-nav-next",function(){a(this).hasClass("eo-agenda-widget-nav-prev")?b.direction=-1:b.direction=1,b.load_events()})},eventorganiser.agenda_widget.prototype.load_events=function(){var b=this;a.ajax({url:EOAjaxFront.adminajax,dataType:"JSON",data:{action:"eo_widget_agenda",instance_number:this.param.number,direction:this.direction,start:this.start.format("YYYY-MM-DD"),end:this.end.format("YYYY-MM-DD")},success:function(a){var c=a.length;if(0!==c){for(var d=0;c>d;d++)a[d].start=moment(a[d].start),a[d].end=moment(a[d].end);b.start=a[0].start,b.end=a[c-1].start,b.insert_events(a)}}})},eventorganiser.agenda_widget.prototype.insert_events=function(b){this.$datesEl.html("");for(var c=b.length,d=!1,e=!1,f=!1,g=0;c>g;g++){if(this.group_change(d,b[g].start)){this.$datesEl.append(e);var h={start:b[g].start};e=a(this.groupTemplate(h)),f=e.find(".a-date")}f.append(this.eventTemplate(b[g])),d=b[g].start}this.$datesEl.append(e)},jQuery(document).ready(function(a){if(a(".eo-agenda-widget").length>0)for(var b in eo_widget_agenda)agendaWidget=new eventorganiser.agenda_widget(eo_widget_agenda[b]),agendaWidget.init()})}(jQuery),eventorganiser.google_map=function(a){this.param=a,this.markers={},this.map=null},eventorganiser.google_map.prototype.load=function(){var a={zoom:this.param.zoom,scrollwheel:this.param.scrollwheel,zoomControl:this.param.zoomcontrol,rotateControl:this.param.rotatecontrol,panControl:this.param.pancontrol,overviewMapControl:this.param.overviewmapcontrol,streetViewControl:this.param.streetviewcontrol,draggable:this.param.draggable,mapTypeControl:this.param.maptypecontrol,mapTypeId:google.maps.MapTypeId[this.param.maptypeid],styles:this.param.styles,minZoom:this.param.minzoom,maxZoom:this.param.maxzoom};a=wp.hooks.applyFilters("eventorganiser.google_map_options",a,this.param),this.map=new google.maps.Map(document.getElementById(this.param.id),a);for(var b=new google.maps.LatLngBounds,c=[],d=0;d<this.param.locations.length;d++){var e=this.param.locations[d].lat,f=this.param.locations[d].lng;if(void 0!==e&&void 0!==f){c.push(new google.maps.LatLng(e,f)),b.extend(c[d]);var g=wp.hooks.applyFilters("eventorganiser.venue_marker_options",{venue_id:this.param.locations[d].venue_id,position:c[d],map:this.map,content:this.param.locations[d].tooltipContent,icon:this.param.locations[d].icon}),h=new google.maps.Marker(g);this.markers[this.param.locations[d].venue_id]=h,this.param.tooltip&&google.maps.event.addListener(h,"click",this.tooltip)}}this.param.locations.length>1?this.map.fitBounds(b):this.map.setCenter(c[0]),wp.hooks.doAction("eventorganiser.google_map_loaded",this)},eventorganiser.google_map.prototype.tooltip=function(){var a=this.getMap(),b=this.getMap().getProjection().fromLatLngToPoint(this.position),c=a.getProjection().fromLatLngToPoint(a.getBounds().getNorthEast()),d=a.getProjection().fromLatLngToPoint(a.getBounds().getSouthWest()),e=Math.pow(2,a.getZoom());b=new google.maps.Point((b.x-d.x)*e,(b.y-c.y)*e),wp.hooks.doAction("eventorganiser.venue_marker_clicked",this);var f=[b.x,b.y];return this.tooltip?(this.tooltip.qtip("api").set("position.target",f),void this.tooltip.qtip("show")):(jQuery(this.getMap().getDiv()).css({overflow:"visible"}),void(this.tooltip=jQuery("<div />").qtip({content:{text:this.content},border:{radius:4,width:3},style:{classes:"qtip-eo ui-tooltip-shadow",widget:!0},position:{at:"right center",my:"top center",target:f,container:jQuery(this.getMap().getDiv())},show:{ready:!0,event:!1,solo:!0},hide:{event:"mouseleave unfocus"}})))},jQuery(document).ready(function(){if("map"in eventorganiser)for(var a=eventorganiser.map,b=0;b<a.length;b++)if(null!==document.getElementById("eo_venue_map-"+(b+1))){var c=a[b];c.id="eo_venue_map-"+(b+1);var d=new eventorganiser.google_map(c);d.load(),eventorganiser.map[b].markers=d.markers}});
1
+ /*! event-organiser 3.6.0-0-g619ade6 2017-11-25 22:52 */
2
+ function eveorg_getParameterByName(a,b){a=a.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var c="[\\?&]"+a+"=([^&#]*)",d=new RegExp(c),e=d.exec(b);return null===e?"":decodeURIComponent(e[1].replace(/\+/g," "))}var eventorganiser=eventorganiser||{};!function(a){jQuery(document).ready(function(){function b(a,b,c){var d;for(d in a)if(a[b]==c)return d;return!1}function c(c){var d="undefined"!=typeof c.whitelist&&c.whitelist?c.whitelist.split(","):!1,e="<select class='eo-fc-filter eo-fc-filter-"+c.type+"' data-filter-type='"+c.type+"'>";e+="<option value=''>"+c.select_none+"</option>";var f;for(var g in c.terms){if(f=c.terms[g],d){var h=!1;-1!==a.inArray(f.slug,d)&&(h=!0);for(var i=f;!h&&i.parent>0;)i=b(c.terms,"term_id",i.parent),-1!==a.inArray(i.slug,d)&&(h=!0);if(!h)continue}e+="<option value='"+f.slug+"'>"+f.name+"</option>"}e+="</select>";var j=a("<span class='fc-header-dropdown filter-"+c.type+"'></span>");return j.append(e),j}function d(b){var c="undefined"!=typeof b.whitelist&&b.whitelist.length>0?b.whitelist:!1,d="<select class='eo-fc-filter eo-fc-filter-organiser' data-filter-type='organiser'>";d+="<option value=''>"+b.select_none+"</option>";var e;for(var f in b.users)e=b.users[f],c&&-1==a.inArray(parseInt(f,10),c)||(d+="<option value='"+f+"'>"+e+"</option>");d+="</select>";var g=a("<span class='fc-header-dropdown filter-organiser'></span>");return g.append(d),g}function e(){return a("<span class='fc-header-goto'><input type='hidden' class='eo-mini-calendar'/></span>")}if(a(".eo-fullcalendar").on("change",".eo-fc-filter",function(){a(".eo-fullcalendar").fullCalendar("rerenderEvents")}),a(".eo-fullcalendar").length>0){var f,g,h=eventorganiser.calendars;g={agendaDay:"listDay",basicDay:"listDay",listDay:"listDay",agendaWeek:"listWeek",basicWeek:"listWeek",listWeek:"listWeek",month:"listMonth",listMonth:"listMonth"};for(var i=0;i<h.length;i++){var j="#eo_fullcalendar_"+(i+1);"undefined"==typeof h[i].category&&(h[i].category=""),"undefined"==typeof h[i].venue&&(h[i].venue="");var k={id:j,defaultDate:h[i].defaultdate?h[i].defaultdate:void 0,category:h[i].event_category,venue:h[i].event_venue,tag:h[i].event_tag,organiser:h[i].event_organiser,event_series:h[i].event_series,customButtons:{category:function(){return c({terms:eventorganiser.fullcal.categories,select_none:EOAjaxFront.locale.cat,whitelist:h[i].event_category,type:"category"})},venue:function(){return c({terms:eventorganiser.fullcal.venues,select_none:EOAjaxFront.locale.venue,whitelist:h[i].event_venue,type:"venue"})},tag:function(){return c({terms:eventorganiser.fullcal.tags,select_none:EOAjaxFront.locale.tag,whitelist:"",type:"tag"})},organiser:function(){return d({users:eventorganiser.fullcal.users,select_none:EOAjaxFront.locale.view_all_organisers,whitelist:h[i].event_organiser})},"goto":e},theme:h[i].theme,isRTL:h[i].isrtl,editable:!1,selectable:!1,weekMode:"variable",tooltip:h[i].tooltip,firstDay:parseInt(eventorganiser.fullcal.firstDay,10),weekends:h[i].weekends,hiddenDays:h[i].hiddendays,slotDuration:h[i].slotduration,allDaySlot:h[i].alldayslot,allDayText:h[i].alldaytext,axisFormat:h[i].axisformat,minTime:h[i].mintime,maxTime:h[i].maxtime,weekNumbers:h[i].weeknumbers,weekNumbersWithinDays:h[i].weeknumberswithindays,eventColor:"#1e8cbe",timeFormatphp:h[i].timeformatphp,timeFormat:h[i].timeformat,columnFormat:{month:h[i].columnformatmonth,week:h[i].columnformatweek,day:h[i].columnformatday},titleFormat:{month:h[i].titleformatmonth,week:h[i].titleformatweek,day:h[i].titleformatday},header:{left:h[i].headerleft,center:h[i].headercenter,right:h[i].headerright},eventRender:function(b,c,d){var e=a(d.calendar.options.id).find(".eo-fc-filter-category").val(),f=a(d.calendar.options.id).find(".eo-fc-filter-venue").val(),g=a(d.calendar.options.id).find(".eo-fc-filter-tag").val(),h=a(d.calendar.options.id).find(".eo-fc-filter-organiser").val(),i=!0;return"undefined"!=typeof e&&""!==e&&a.inArray(e,b.category)<0&&(i=!1),"undefined"!=typeof f&&""!==f&&f!==b.venue_slug&&(i=!1),"undefined"!=typeof g&&""!==g&&a.inArray(g,b.tags)<0&&(i=!1),"undefined"!=typeof h&&""!==h&&parseInt(h,10)!==b.organiser&&(i=!1),(i=wp.hooks.applyFilters("eventorganiser.fullcalendar_render_event",i,b,c,d))?void(d.calendar.options.tooltip&&a(c).qtip({content:{text:b.description,button:!1,title:b.title},position:{my:"top center",at:"bottom center",viewport:a(window),adjust:{method:"shift none"}},hide:{fixed:!0,delay:500,effect:function(b){a(this).fadeOut("50")}},border:{radius:4,width:3},style:{classes:"eo-event-toolip qtip-eo",tip:"topMiddle"}})):!1},buttonText:{today:EOAjaxFront.locale.today,month:EOAjaxFront.locale.month,week:EOAjaxFront.locale.week,day:EOAjaxFront.locale.day},monthNames:EOAjaxFront.locale.monthNames,monthNamesShort:EOAjaxFront.locale.monthAbbrev,dayNames:EOAjaxFront.locale.dayNames,dayNamesShort:EOAjaxFront.locale.dayAbbrev,height:h[i].aspectratio?!1:"auto",aspectRatio:h[i].aspectratio?h[i].aspectratio:!1,responsive:h[i].responsive,responsiveBreakpoint:h[i].responsivebreakpoint,defaultView:a(window).width()<514&&h[i].responsive?g[h[i].defaultview]:h[i].defaultview,previousView:h[i].defaultview,nextDayThreshold:h[i].nextdaythreshold,windowResize:function(b){b.calendar.options.responsive&&a(window).width()<b.calendar.options.responsiveBreakpoint?a(this).fullCalendar("changeView",g[b.calendar.options.previousView]):a(this).fullCalendar("changeView",b.calendar.options.previousView)},lazyFetching:"true",events:function(b,c,d,e){var f=this.options,g={start:b.format("YYYY-MM-DD"),end:c.format("YYYY-MM-DD"),timeformat:f.timeFormatphp,users_events:0};"undefined"!=typeof f.category&&""!==f.category&&(g.category=f.category),"undefined"!=typeof f.venue&&""!==f.venue&&(g.venue=f.venue),"undefined"!=typeof f.tag&&""!==f.tag&&(g.tag=f.tag),"undefined"!=typeof f.organiser&&0!==f.organiser&&(g.organiser=f.organiser),f.event_series&&(g.event_series=f.event_series),g=wp.hooks.applyFilters("eventorganiser.fullcalendar_request",g,b,c,d,f),a.ajax({url:eventorganiser.ajaxurl+"?action=eventorganiser-fullcal",dataType:"JSON",data:g,complete:function(a,b){},success:e})},loading:function(b){var c=a("#"+a(this).attr("id")+"_loading");b?(window.clearTimeout(f),f=window.setTimeout(function(){c.show()},1e3)):(window.clearTimeout(f),c.hide())}};k=wp.hooks.applyFilters("eventorganiser.fullcalendar_options",k,h[i]),a(j).fullCalendar(k)}}"undefined"!=typeof eventorganiser.fullcal&&a(".eo-mini-calendar").datepicker({dateFormat:"DD, d MM, yy",changeMonth:!0,changeYear:!0,firstDay:parseInt(eventorganiser.fullcal.firstDay,10),buttonText:EOAjaxFront.locale.gotodate,monthNamesShort:EOAjaxFront.locale.monthAbbrev,dayNamesMin:EOAjaxFront.locale.dayAbbrev,nextText:EOAjaxFront.locale.nextText,prevText:EOAjaxFront.locale.prevText,showOn:"button",beforeShow:function(b,c){c.hasOwnProperty("dpDiv")?c.dpDiv.addClass("eo-datepicker eo-fc-mini-calendar eo-fc-datepicker"):a("#ui-datepicker-div").addClass("eo-datepicker eo-fc-mini-calendar eo-fc-datepicker")},onSelect:function(b,c){var d=a(this).parents("div.eo-fullcalendar").attr("id");a("#"+d).fullCalendar("gotoDate",new Date(Date.parse(b)))}}),a("#eo-upcoming-dates, .eo-upcoming-dates").each(function(b,c){var d={el:a(this)};if(d.el.find("li:gt(4)").length>0){var e=5,f={more:EOAjaxFront.locale.ShowMore,less:EOAjaxFront.locale.ShowLess};d.less=a('<a class="eo-upcoming-dates-show-less" href="#"></a>').text(f.less),d.pipe=a('<span class="eo-upcoming-dates-pipe">|</span>'),d.more=a('<a class="eo-upcoming-dates-show-more" href="#"></a>').text(f.more),d.el.find("li:gt("+(e-1)+")").hide().end().after(d.less,d.pipe,d.more),d.pipe.hide(),d.less.hide().click(function(a){a.preventDefault();var b=Math.floor((d.el.find("li:visible").length-1)/e)*e-1;d.el.find("li:gt("+b+")").hide(),d.more.show(),d.pipe.show(),d.el.find("li:visible").length<=e&&(d.less.hide(),d.pipe.hide())}),d.more.click(function(b){b.preventDefault(),d.less.show(),d.pipe.show(),d.el.find("li:hidden:lt("+e+")").show();var c=d.pipe.offset();a("html, body").animate({scrollTop:Math.max(c.top+40-a(window).height(),a(window).scrollTop())}),0===d.el.find("li:hidden").length&&(d.more.hide(),d.pipe.hide())})}}),a(".eo-widget-cal-wrap").length>0&&a(".eo-widget-cal-wrap").on("click","tfoot a",function(b){if(b.preventDefault(),!a(this).data("eo-widget-cal-disabled")){var c=a(this).closest(".eo-widget-cal-wrap"),d=c.data("eo-widget-cal-id");c.find("tfoot a").data("eo-widget-cal-disabled",1);var e={showpastevents:1,"show-long":0,"link-to-single":0};"undefined"!=typeof eventorganiser.widget_calendars&&"undefined"!=typeof eventorganiser.widget_calendars[d]&&(e=eventorganiser.widget_calendars[d]),"undefined"!=typeof eo_widget_cal&&"undefined"!=typeof eo_widget_cal[d]&&(e=eo_widget_cal[d]),e.eo_month=eveorg_getParameterByName("eo_month",a(this).attr("href")),c.addClass("eo-widget-cal-loading"),a("#"+d+"_overlay").remove(),a("#"+d+"_content").prepend('<div class="eo-widget-cal-overlay" id="'+d+'_overlay"><div class="eo-widget-cal-spinner"/></div>'),a.getJSON(eventorganiser.add_query_arg("action","eo_widget_cal",EOAjaxFront.adminajax),e,function(b){a("#"+d+"_content").html(b),c.removeClass("eo-widget-cal-loading")})}})}),eventorganiser.add_query_arg=function(a,b,c){var d=new RegExp("([?&])"+a+"=.*?(&|$)","i"),e=-1!==c.indexOf("?")?"&":"?";return c.match(d)?c.replace(d,"$1"+a+"="+b+"$2"):c+e+a+"="+b},eventorganiser.template=function(b,c,d){var e=/\\|'|\r|\n|\t|\u2028|\u2029/g;d="undefined"!=typeof d?d:{},d=a.extend(!0,{evaluate:/<#([\s\S]+?)#>/g,interpolate:/\{\{\{([\s\S]+?)\}\}\}/g,escape:/\{\{([^\}]+?)\}\}(?!\})/g},d);var f,g={"'":"'","\\":"\\","\r":"r","\n":"n"," ":"t","\u2028":"u2028","\u2029":"u2029"},h=new RegExp([d.escape.source,d.interpolate.source,d.evaluate.source].join("|")+"|$","g"),i=0,j="__p+='";b.replace(h,function(a,c,d,f,h){return j+=b.slice(i,h).replace(e,function(a){return"\\"+g[a]}),c&&(j+="'+\n((__t=("+c+"))==null?'':_.escape(__t))+\n'"),d&&(j+="'+\n((__t=("+d+"))==null?'':__t)+\n'"),f&&(j+="';\n"+f+"\n__p+='"),i=h+a.length,a}),j+="';\n",d.variable||(j="with(obj||{}){\n"+j+"}\n"),j="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+j+"return __p;\n";try{f=new Function(d.variable||"obj","_",j)}catch(k){throw k.source=j,k}if(c)return f(c);var l=function(a){return f.call(this,a)};return l},eventorganiser.agenda_widget=function(b){this.param=b,moment.locale(EOAjaxFront.locale.locale,{months:EOAjaxFront.locale.monthNames,monthsShort:EOAjaxFront.locale.monthAbbrev,weekdays:EOAjaxFront.locale.dayNames,weekdaysShort:EOAjaxFront.locale.dayAbbrev,weekdaysMin:EOAjaxFront.locale.dayInitial}),this.start=moment().add(-1,"days"),this.end=moment().add(-1,"days"),this.$el=a("#"+this.param.id+"_container"),this.direction=1,this.eventTemplate=eventorganiser.template(a("#eo-tmpl-agenda-widget-item").html(),null,{variable:"event"}),this.groupTemplate=eventorganiser.template(a("#eo-tmpl-agenda-widget-group").html(),null,{variable:"group"})},eventorganiser.agenda_widget.prototype.group_change=function(a,b){return a===!1?!0:"day"!==this.param.mode?!1:a.format("YYYY-MM-DD")!==b.format("YYYY-MM-DD")},eventorganiser.agenda_widget.prototype.init=function(){this.$el.html(eventorganiser.template(a("#eo-tmpl-agenda-widget").html(),{},{variable:"data"})),this.$datesEl=this.$el.find(".dates"),this.load_events(),this.param.add_to_google&&this.$el.on("click",".event",function(){a(this).find(".meta").toggle("400")});var b=this;this.$el.on("click",".eo-agenda-widget-nav-prev,.eo-agenda-widget-nav-next",function(){a(this).hasClass("eo-agenda-widget-nav-prev")?b.direction=-1:b.direction=1,b.load_events()})},eventorganiser.agenda_widget.prototype.load_events=function(){var b=this;a.ajax({url:EOAjaxFront.adminajax,dataType:"JSON",data:{action:"eo_widget_agenda",instance_number:this.param.number,direction:this.direction,start:this.start.format("YYYY-MM-DD"),end:this.end.format("YYYY-MM-DD")},success:function(a){var c=a.length;if(0!==c){for(var d=0;c>d;d++)a[d].start=moment(a[d].start),a[d].end=moment(a[d].end);b.start=a[0].start,b.end=a[c-1].start,b.insert_events(a)}}})},eventorganiser.agenda_widget.prototype.insert_events=function(b){this.$datesEl.html("");for(var c=b.length,d=!1,e=!1,f=!1,g=0;c>g;g++){if(this.group_change(d,b[g].start)){this.$datesEl.append(e);var h={start:b[g].start};e=a(this.groupTemplate(h)),f=e.find(".a-date")}f.append(this.eventTemplate(b[g])),d=b[g].start}this.$datesEl.append(e)},jQuery(document).ready(function(a){if(a(".eo-agenda-widget").length>0)for(var b in eo_widget_agenda)agendaWidget=new eventorganiser.agenda_widget(eo_widget_agenda[b]),agendaWidget.init()})}(jQuery),eventorganiser.google_map=function(a){this.param=a,this.markers={},this.map=null},eventorganiser.google_map.prototype.load=function(){var a={zoom:this.param.zoom,scrollwheel:this.param.scrollwheel,zoomControl:this.param.zoomcontrol,rotateControl:this.param.rotatecontrol,panControl:this.param.pancontrol,overviewMapControl:this.param.overviewmapcontrol,streetViewControl:this.param.streetviewcontrol,draggable:this.param.draggable,mapTypeControl:this.param.maptypecontrol,mapTypeId:google.maps.MapTypeId[this.param.maptypeid],styles:this.param.styles,minZoom:this.param.minzoom,maxZoom:this.param.maxzoom};a=wp.hooks.applyFilters("eventorganiser.google_map_options",a,this.param),this.map=new google.maps.Map(document.getElementById(this.param.id),a);for(var b=new google.maps.LatLngBounds,c=[],d=0;d<this.param.locations.length;d++){var e=this.param.locations[d].lat,f=this.param.locations[d].lng;if(void 0!==e&&void 0!==f){c.push(new google.maps.LatLng(e,f)),b.extend(c[d]);var g=wp.hooks.applyFilters("eventorganiser.venue_marker_options",{venue_id:this.param.locations[d].venue_id,position:c[d],map:this.map,content:this.param.locations[d].tooltipContent,icon:this.param.locations[d].icon}),h=new google.maps.Marker(g);this.markers[this.param.locations[d].venue_id]=h,this.param.tooltip&&google.maps.event.addListener(h,"click",this.tooltip)}}this.param.locations.length>1?this.map.fitBounds(b):this.map.setCenter(c[0]),wp.hooks.doAction("eventorganiser.google_map_loaded",this)},eventorganiser.google_map.prototype.tooltip=function(){var a=this.getMap(),b=this.getMap().getProjection().fromLatLngToPoint(this.position),c=a.getProjection().fromLatLngToPoint(a.getBounds().getNorthEast()),d=a.getProjection().fromLatLngToPoint(a.getBounds().getSouthWest()),e=Math.pow(2,a.getZoom());b=new google.maps.Point((b.x-d.x)*e,(b.y-c.y)*e),wp.hooks.doAction("eventorganiser.venue_marker_clicked",this);var f=[b.x,b.y];return this.tooltip?(this.tooltip.qtip("api").set("position.target",f),void this.tooltip.qtip("show")):(jQuery(this.getMap().getDiv()).css({overflow:"visible"}),void(this.tooltip=jQuery("<div />").qtip({content:{text:this.content},border:{radius:4,width:3},style:{classes:"qtip-eo ui-tooltip-shadow",widget:!0},position:{at:"right center",my:"top center",target:f,container:jQuery(this.getMap().getDiv())},show:{ready:!0,event:!1,solo:!0},hide:{event:"mouseleave unfocus"}})))},jQuery(document).ready(function(){if("map"in eventorganiser)for(var a=eventorganiser.map,b=0;b<a.length;b++)if(null!==document.getElementById("eo_venue_map-"+(b+1))){var c=a[b];c.id="eo_venue_map-"+(b+1);var d=new eventorganiser.google_map(c);d.load(),eventorganiser.map[b].markers=d.markers}});
js/fullcalendar.min.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! event-organiser 3.5.1-0-g786a5d5 2017-11-14 21:45 */
2
  !function(a){"function"==typeof define&&define.amd?define(["jquery","moment"],a):a(jQuery,moment)}(function(a,b){function c(a){d(za,a)}function d(b){function c(c,f){a.isPlainObject(f)&&a.isPlainObject(b[c])&&!e(c)?b[c]=d({},b[c],f):void 0!==f&&(b[c]=f)}for(var f=1;f<arguments.length;f++)a.each(arguments[f],c);return b}function e(a){return/(Time|Duration)$/.test(a)}function f(a){var c=b.localeData||b.langData;return c.call(b,a)||c.call(b,"en")}function g(a,b){b.left&&a.css({"border-left-width":1,"margin-left":b.left-1}),b.right&&a.css({"border-right-width":1,"margin-right":b.right-1})}function h(a){a.css({"margin-left":"","margin-right":"","border-left-width":"","border-right-width":""})}function i(){a("body").addClass("fc-not-allowed")}function j(){a("body").removeClass("fc-not-allowed")}function k(a){return"pointerdown"==a.type||"pointerup"==a.type||"pointermove"==a.type?"touch"===a.originalEvent.pointerType?!0:!1:"touchstart"==a.type||"touchmove"==a.type||"touchend"==a.type||"touchcancel"==a.type?!0:!1}function l(a){var b={x:0,y:0};if("pointerdown"==a.type||"pointerup"==a.type||"pointermove"==a.type||"mousedown"==a.type||"mouseup"==a.type||"mousemove"==a.type||"mouseover"==a.type||"mouseout"==a.type||"mouseenter"==a.type||"mouseleave"==a.type)b.x=a.pageX,b.y=a.pageY;else if(k(a)){var c=a.originalEvent.touches[0]||a.originalEvent.changedTouches[0];b.x=c.pageX,b.y=c.pageY}return b}function m(){return window.navigator.msPointerEnabled?"pointerdown":!Ka&&"ontouchstart"in document.documentElement?"touchstart":"mousedown"}function n(){return window.navigator.msPointerEnabled?"pointerup":!Ka&&"ontouchstart"in document.documentElement?"touchend":"mouseup"}function o(){return window.navigator.msPointerEnabled?"pointermove":!Ka&&"ontouchstart"in document.documentElement?"touchmove":"mousemove"}function p(b,c,d){var e=Math.floor(c/b.length),f=Math.floor(c-e*(b.length-1)),g=[],h=[],i=[],j=0;q(b),b.each(function(c,d){var k=c===b.length-1?f:e,l=a(d).outerHeight(!0);k>l?(g.push(d),h.push(l),i.push(a(d).height())):j+=l}),d&&(c-=j,e=Math.floor(c/g.length),f=Math.floor(c-e*(g.length-1))),a(g).each(function(b,c){var d=b===g.length-1?f:e,j=h[b],k=i[b],l=d-(j-k);d>j&&a(c).height(l)})}function q(a){a.height("")}function r(b){var c=0;return b.find("> *").each(function(b,d){var e=a(d).outerWidth();e>c&&(c=e)}),c++,b.width(c),c}function s(a,b){return a.height(b).addClass("fc-scroller"),a[0].scrollHeight-1>a[0].clientHeight?!0:(t(a),!1)}function t(a){a.height("").removeClass("fc-scroller")}function u(b){var c=b.css("position"),d=b.parents().filter(function(){var b=a(this);return/(auto|scroll)/.test(b.css("overflow")+b.css("overflow-y")+b.css("overflow-x"))}).eq(0);return"fixed"!==c&&d.length?d:a(b[0].ownerDocument||document)}function v(a){var b=a.offset().left,c=b+a.width(),d=a.children(),e=d.offset().left,f=e+d.outerWidth();return{left:e-b,right:c-f}}function w(a){return k(a)?!0:1==a.which&&!a.ctrlKey}function x(a,b){var c,d,e,f,g=a.start,h=a.end,i=b.start,j=b.end;return h>i&&j>g?(g>=i?(c=g.clone(),e=!0):(c=i.clone(),e=!1),j>=h?(d=h.clone(),f=!0):(d=j.clone(),f=!1),{start:c,end:d,isStart:e,isEnd:f}):void 0}function y(a,b){if(a=a||{},void 0!==a[b])return a[b];for(var c,d=b.split(/(?=[A-Z])/),e=d.length-1;e>=0;e--)if(c=a[d[e].toLowerCase()],void 0!==c)return c;return a["default"]}function z(a,c){return b.duration({days:a.clone().stripTime().diff(c.clone().stripTime(),"days"),ms:a.time()-c.time()})}function A(a,c){return b.duration({days:a.clone().stripTime().diff(c.clone().stripTime(),"days")})}function B(a,b){var c,d,e;for(c=0;c<Na.length&&(d=Na[c],e=C(d,a,b),!(e>=1&&P(e)));c++);return d}function C(a,c,d){return null!=d?d.diff(c,a,!0):b.isDuration(c)?c.as(a):c.end.diff(c.start,a,!0)}function D(a){return"[object Date]"===Object.prototype.toString.call(a)||a instanceof Date}function E(a){return/^\d+\:\d+(?:\:\d+\.?(?:\d{3})?)?$/.test(a)}function F(a){var b=function(){};return b.prototype=a,new b}function G(a,b){for(var c in a)H(a,c)&&(b[c]=a[c])}function H(a,b){return Oa.call(a,b)}function I(b){return/undefined|null|boolean|number|string/.test(a.type(b))}function J(b,c,d){if(a.isFunction(b)&&(b=[b]),b){var e,f;for(e=0;e<b.length;e++)f=b[e].apply(c,d)||f;return f}}function K(){for(var a=0;a<arguments.length;a++)if(void 0!==arguments[a])return arguments[a]}function L(a){return(a+"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/'/g,"&#039;").replace(/"/g,"&quot;").replace(/\n/g,"<br />")}function M(a){return a.replace(/&.*?;/g,"")}function N(a){return a.charAt(0).toUpperCase()+a.slice(1)}function O(a,b){return a-b}function P(a){return a%1===0}function Q(a,b){var c,d,e,f,g=function(){var h=+new Date-f;b>h&&h>0?c=setTimeout(g,b-h):(c=null,a.apply(e,d),c||(e=d=null))};return function(){e=this,d=arguments,f=+new Date,c||(c=setTimeout(g,b))}}function R(c,d,e){var f,g,h,i,j=c[0],k=1==c.length&&"string"==typeof j;return b.isMoment(j)?(i=b.apply(null,c),T(j,i)):D(j)||void 0===j?i=b.apply(null,c):(f=!1,g=!1,k?Pa.test(j)?(j+="-01",c=[j],f=!0,g=!0):(h=Qa.exec(j))&&(f=!h[5],g=!0):a.isArray(j)&&(g=!0),i=d||f?b.utc.apply(b,c):b.apply(null,c),f?(i._ambigTime=!0,i._ambigZone=!0):e&&(g?i._ambigZone=!0:k&&i.zone(j))),i._fullCalendar=!0,i}function S(a,c){var d,e,f=!1,g=!1,h=a.length,i=[];for(d=0;h>d;d++)e=a[d],b.isMoment(e)||(e=Ca.moment.parseZone(e)),f=f||e._ambigTime,g=g||e._ambigZone,i.push(e);for(d=0;h>d;d++)e=i[d],c||!f||e._ambigTime?g&&!e._ambigZone&&(i[d]=e.clone().stripZone()):i[d]=e.clone().stripTime();return i}function T(a,b){a._ambigTime?b._ambigTime=!0:b._ambigTime&&(b._ambigTime=!1),a._ambigZone?b._ambigZone=!0:b._ambigZone&&(b._ambigZone=!1)}function U(a,b){a.year(b[0]||0).month(b[1]||0).date(b[2]||0).hours(b[3]||0).minutes(b[4]||0).seconds(b[5]||0).milliseconds(b[6]||0)}function V(a,b){return Sa.format.call(a,b)}function W(a,b){return X(a,aa(b))}function X(a,b){var c,d="";for(c=0;c<b.length;c++)d+=Y(a,b[c]);return d}function Y(a,b){var c,d;return"string"==typeof b?b:(c=b.token)?Ta[c]?Ta[c](a):V(a,c):b.maybe&&(d=X(a,b.maybe),d.match(/[1-9]/))?d:""}function Z(a,b,c,d,e){var f;return a=Ca.moment.parseZone(a),b=Ca.moment.parseZone(b),f=(a.localeData||a.lang).call(a),c=f.longDateFormat(c)||c,d=d||" - ",$(a,b,aa(c),d,e)}function $(a,b,c,d,e){var f,g,h,i,j="",k="",l="",m="",n="";for(g=0;g<c.length&&(f=_(a,b,c[g]),f!==!1);g++)j+=f;for(h=c.length-1;h>g&&(f=_(a,b,c[h]),f!==!1);h--)k=f+k;for(i=g;h>=i;i++)l+=Y(a,c[i]),m+=Y(b,c[i]);return(l||m)&&(n=e?m+d+l:l+d+m),j+n+k}function _(a,b,c){var d,e;return"string"==typeof c?c:(d=c.token)&&(e=Ua[d.charAt(0)],e&&a.isSame(b,e))?V(a,d):!1}function aa(a){return a in Va?Va[a]:Va[a]=ba(a)}function ba(a){for(var b,c=[],d=/\[([^\]]*)\]|\(([^\)]*)\)|(LT|(\w)\4*o?)|([^\w\[\(]+)/g;b=d.exec(a);)b[1]?c.push(b[1]):b[2]?c.push({maybe:ba(b[2])}):b[3]?c.push({token:b[3]}):b[5]&&c.push(b[5]);return c}function ca(){}function da(a,b){return a||b?a&&b?a.grid===b.grid&&a.row===b.row&&a.col===b.col:!1:!0}function ea(a){var b=ga(a);return"background"===b||"inverse-background"===b}function fa(a){return"inverse-background"===ga(a)}function ga(a){return K((a.source||{}).rendering,a.rendering)}function ha(a){var b,c,d={};for(b=0;b<a.length;b++)c=a[b],(d[c._id]||(d[c._id]=[])).push(c);return d}function ia(a,b){return a.eventStartMS-b.eventStartMS}function ja(a,b){return a.eventStartMS-b.eventStartMS||b.eventDurationMS-a.eventDurationMS||b.event.allDay-a.event.allDay||(a.event.title||"").localeCompare(b.event.title)}function ka(c){var d,e,f,g,h=Ca.dataAttrPrefix;return h&&(h+="-"),d=c.data(h+"event")||null,d&&(d="object"==typeof d?a.extend({},d):{},e=d.start,null==e&&(e=d.time),f=d.duration,g=d.stick,delete d.start,delete d.time,delete d.duration,delete d.stick),null==e&&(e=c.data(h+"start")),null==e&&(e=c.data(h+"time")),null==f&&(f=c.data(h+"duration")),null==g&&(g=c.data(h+"stick")),e=null!=e?b.duration(e):null,f=null!=f?b.duration(f):null,g=Boolean(g),{eventProps:d,startTime:e,duration:f,stick:g}}function la(a,b){var c,d;for(c=0;c<b.length;c++)if(d=b[c],d.leftCol<=a.rightCol&&d.rightCol>=a.leftCol)return!0;return!1}function ma(a,b){return a.leftCol-b.leftCol}function na(a){var b,c,d;if(a.sort(ja),b=oa(a),pa(b),c=b[0]){for(d=0;d<c.length;d++)qa(c[d]);for(d=0;d<c.length;d++)ra(c[d],0,0)}}function oa(a){var b,c,d,e=[];for(b=0;b<a.length;b++){for(c=a[b],d=0;d<e.length&&sa(c,e[d]).length;d++);c.level=d,(e[d]||(e[d]=[])).push(c)}return e}function pa(a){var b,c,d,e,f;for(b=0;b<a.length;b++)for(c=a[b],d=0;d<c.length;d++)for(e=c[d],e.forwardSegs=[],f=b+1;f<a.length;f++)sa(e,a[f],e.forwardSegs)}function qa(a){var b,c,d=a.forwardSegs,e=0;if(void 0===a.forwardPressure){for(b=0;b<d.length;b++)c=d[b],qa(c),e=Math.max(e,1+c.forwardPressure);a.forwardPressure=e}}function ra(a,b,c){var d,e=a.forwardSegs;if(void 0===a.forwardCoord)for(e.length?(e.sort(ua),ra(e[0],b+1,c),a.forwardCoord=e[0].backwardCoord):a.forwardCoord=1,a.backwardCoord=a.forwardCoord-(a.forwardCoord-c)/(b+1),d=0;d<e.length;d++)ra(e[d],0,a.forwardCoord)}function sa(a,b,c){c=c||[];for(var d=0;d<b.length;d++)ta(a,b[d])&&c.push(b[d]);return c}function ta(a,b){return a.bottom>b.top&&a.top<b.bottom}function ua(a,b){return b.forwardPressure-a.forwardPressure||(a.backwardCoord||0)-(b.backwardCoord||0)||ja(a,b)}function va(c,e){function g(a){return(a.locale||a.lang).call(a,$.lang).humanize()}function h(a){da?k()&&(r(),l(a)):i()}function i(){ea=$.theme?"ui":"fc",c.addClass("fc"),$.isRTL?c.addClass("fc-rtl"):c.addClass("fc-ltr"),$.theme?c.addClass("ui-widget"):c.addClass("fc-unthemed"),da=a("<div class='fc-view-container'/>").prependTo(c),ba=new wa(Y,$),ca=ba.render(),ca&&c.prepend(ca),l($.defaultView),$.handleWindowResize&&(ha=Q(t,$.windowResizeDelay),a(window).resize(ha))}function j(){fa&&fa.destroyView(),ba.destroy(),da.remove(),c.removeClass("fc fc-ltr fc-rtl fc-unthemed ui-widget"),a(window).unbind("resize",ha)}function k(){return c.is(":visible")}function l(b){na++,fa&&b&&fa.type!==b&&(ba.deactivateButton(fa.type),S(),fa.start&&fa.destroyView(),fa.el.remove(),fa=null),!fa&&b&&(fa=m(b),fa.el=a("<div class='fc-view fc-"+b+"-view' />").appendTo(da),ba.activateButton(b)),fa&&(ia=fa.massageCurrentDate(ia),fa.start&&ia.isWithin(fa.intervalStart,fa.intervalEnd)||k()&&(S(),fa.start&&fa.destroyView(),fa.setDate(ia),fa.renderView(),T(),C(),D(),x())),T(),na--}function m(a){var b=n(a);return new b["class"](Y,b.options,a)}function n(c){function d(b){"function"==typeof b?f=b:"object"==typeof b&&a.extend(e,b)}var e,f,h,i,j,k=$.defaultButtonText||{},l=$.buttonText||{},m=$.views||{},n=c,o=[],p=!1;if(ma[c])return ma[c];for(;n&&!f;)e={},d(Da[n]),d(m[n]),o.unshift(e),n=e.type;return o.unshift({}),e=a.extend.apply(a,o),f?(h=e.duration||f.duration,h&&(h=b.duration(h),i=B(h),p=1===h.as(i)),p&&m[i]&&(e=a.extend({},m[i],e)),j=l[c]||(p?l[i]:null)||k[c]||(p?k[i]:null)||e.buttonText||f.buttonText||(h?g(h):null)||c,ma[c]={"class":f,options:e,buttonText:j}):void 0}function o(a){return Boolean(n(a))}function p(a){var b=n(a);return b?b.buttonText:void 0}function q(a){return k()?(a&&s(),na++,fa.updateSize(!0),na--,!0):void 0}function r(){k()&&s()}function s(){ga="number"==typeof $.contentHeight?$.contentHeight:"number"==typeof $.height?$.height-(ca?ca.outerHeight(!0):0):"undefined"!=typeof $.height&&"parent"===$.height?a(la).parent().height()-(ca?ca.outerHeight(!0):0):Math.round(da.width()/Math.max($.aspectRatio,.5))}function t(a){!na&&a.target===window&&fa.start&&q(!0)&&fa.trigger("windowResize",la)}function u(){w(),y()}function v(){k()&&(S(),fa.destroyViewEvents(),fa.renderViewEvents(oa),T())}function w(){S(),fa.destroyViewEvents(),T()}function x(){!$.lazyFetching||ja(fa.start,fa.end)?y():v()}function y(){ka(fa.start,fa.end)}function z(a){oa=a,v()}function A(){v()}function C(){ba.updateTitle(fa.title)}function D(){var a=Y.getNow();a.isWithin(fa.intervalStart,fa.intervalEnd)?ba.disableButton("today"):ba.enableButton("today")}function E(a,b){a=Y.moment(a),b=b?Y.moment(b):a.hasTime()?a.clone().add(Y.defaultTimedEventDuration):a.clone().add(Y.defaultAllDayEventDuration),fa.select({start:a,end:b})}function G(){fa&&fa.unselect()}function H(){ia=fa.computePrevDate(ia),l()}function I(){ia=fa.computeNextDate(ia),l()}function J(){ia.add(-1,"years"),l()}function K(){ia.add(1,"years"),l()}function L(){ia=Y.getNow(),l()}function M(a){ia=Y.moment(a),l()}function O(a){ia.add(b.duration(a)),l()}function P(a,b){var c,d;b&&o(b)||(b=b||"day",c=ba.getViewsWithButtons().join(" "),d=c.match(new RegExp("\\w+"+N(b))),d||(d=c.match(/\w+Day/)),b=d?d[0]:"agendaDay"),ia=a,l(b)}function R(){return ia.clone()}function S(){da.css({width:"100%",height:da.height(),overflow:"hidden"})}function T(){da.css({width:"",height:"",overflow:""})}function U(){return Y}function V(){return fa}function W(a,b){return void 0===b?$[a]:void(("height"==a||"contentHeight"==a||"aspectRatio"==a)&&($[a]=b,q(!0)))}function X(a,b){return $[a]?$[a].apply(b||la,Array.prototype.slice.call(arguments,2)):void 0}var Y=this;e=e||{};var Z,$=d({},za,e);Z=$.lang in Ea?Ea[$.lang]:Ea[za.lang],Z&&($=d({},za,Z,e)),$.isRTL&&($=d({},za,Ba,Z||{},e)),Y.options=$,Y.render=h,Y.destroy=j,Y.refetchEvents=u,Y.reportEvents=z,Y.reportEventChange=A,Y.rerenderEvents=v,Y.changeView=l,Y.select=E,Y.unselect=G,Y.prev=H,Y.next=I,Y.prevYear=J,Y.nextYear=K,Y.today=L,Y.gotoDate=M,Y.incrementDate=O,Y.zoomTo=P,Y.getDate=R,Y.getCalendar=U,Y.getView=V,Y.option=W,Y.trigger=X,Y.isValidViewType=o,Y.getViewButtonText=p;var _=F(f($.lang));if($.monthNames&&(_._months=$.monthNames),$.monthNamesShort&&(_._monthsShort=$.monthNamesShort),$.dayNames&&(_._weekdays=$.dayNames),$.dayNamesShort&&(_._weekdaysShort=$.dayNamesShort),null!=$.firstDay){var aa=F(_._week);aa.dow=$.firstDay,_._week=aa}Y.defaultAllDayEventDuration=b.duration($.defaultAllDayEventDuration),Y.defaultTimedEventDuration=b.duration($.defaultTimedEventDuration),Y.moment=function(){var a;return"local"===$.timezone?(a=Ca.moment.apply(null,arguments),a.hasTime()&&a.local()):a="UTC"===$.timezone?Ca.moment.utc.apply(null,arguments):Ca.moment.parseZone.apply(null,arguments),"_locale"in a?a._locale=_:a._lang=_,a},Y.getIsAmbigTimezone=function(){return"local"!==$.timezone&&"UTC"!==$.timezone},Y.rezoneDate=function(a){return Y.moment(a.toArray())},Y.getNow=function(){var a=$.now;return"function"==typeof a&&(a=a()),Y.moment(a)},Y.calculateWeekNumber=function(a){var b=$.weekNumberCalculation;return"function"==typeof b?b(a):"local"===b?a.week():"ISO"===b.toUpperCase()?a.isoWeek():void 0},Y.getEventEnd=function(a){return a.end?a.end.clone():Y.getDefaultEventEnd(a.allDay,a.start)},Y.getDefaultEventEnd=function(a,b){var c=b.clone();return a?c.stripTime().add(Y.defaultAllDayEventDuration):c.add(Y.defaultTimedEventDuration),Y.getIsAmbigTimezone()&&c.stripZone(),c},xa.call(Y,$);var ba,ca,da,ea,fa,ga,ha,ia,ja=Y.isFetchNeeded,ka=Y.fetchEvents,la=c[0],ma={},na=0,oa=[];ia=null!=$.defaultDate?Y.moment($.defaultDate):Y.getNow(),Y.getSuggestedViewHeight=function(){return void 0===ga&&r(),ga},Y.isHeightAuto=function(){return"auto"===$.contentHeight||"auto"===$.height}}function wa(b,c){function d(){var b=c.header;return n=c.theme?"ui":"fc",b?o=a("<div class='fc-toolbar'/>").append(f("left")).append(f("right")).append(f("center")).append('<div class="fc-clear"/>'):void 0}function e(){o.remove()}function f(d){var e=a('<div class="fc-'+d+'"/>'),f=c.header[d];return f&&a.each(f.split(" "),function(d){var f,g=a(),h=!0;a.each(this.split(","),function(d,e){var f,i,j,k,l,m,o,q,r;if("title"==e)g=g.add(a('<h2 aria-live="polite">&nbsp;</h2>')),h=!1;else if(a.isFunction(c.customButtons[e])){var s=a(c.customButtons[e](c));g=g.add(s)}else b[e]?f=function(){b[e]()}:b.isValidViewType(e)&&(f=function(){b.changeView(e)},p.push(e),l=b.getViewButtonText(e)),f&&(i=y(c.themeButtonIcons,e),j=y(c.buttonIcons,e),k=y(c.defaultButtonText,e),m=y(c.buttonText,e),o=l||m?L(l||m):i&&c.theme?"<span class='ui-icon ui-icon-"+i+"'></span>":j&&!c.theme?"<span class='fc-icon fc-icon-"+j+"'></span>":L(k||e),q=["fc-"+e+"-button",n+"-button",n+"-state-default"],r=a('<button type="button" class="'+q.join(" ")+'">'+o+"</button>").click(function(){r.hasClass(n+"-state-disabled")||(f(),(r.hasClass(n+"-state-active")||r.hasClass(n+"-state-disabled"))&&r.removeClass(n+"-state-hover"))}).mousedown(function(){r.not("."+n+"-state-active").not("."+n+"-state-disabled").addClass(n+"-state-down")}).mouseup(function(){r.removeClass(n+"-state-down")}).hover(function(){r.not("."+n+"-state-active").not("."+n+"-state-disabled").addClass(n+"-state-hover")},function(){r.removeClass(n+"-state-hover").removeClass(n+"-state-down")}),g=g.add(r))}),h&&g.first().addClass(n+"-corner-left").end().last().addClass(n+"-corner-right").end(),g.length>1||h?(f=a("<div/>"),h&&f.addClass("fc-button-group"),f.append(g),e.append(f)):e.append(g)}),e}function g(a){o.find("h2").text(a)}function h(a){o.find(".fc-"+a+"-button").addClass(n+"-state-active")}function i(a){o.find(".fc-"+a+"-button").removeClass(n+"-state-active")}function j(a){o.find(".fc-"+a+"-button").attr("disabled","disabled").addClass(n+"-state-disabled")}function k(a){o.find(".fc-"+a+"-button").removeAttr("disabled").removeClass(n+"-state-disabled")}function l(){return p}var m=this;m.render=d,m.destroy=e,m.updateTitle=g,m.activateButton=h,m.deactivateButton=i,m.disableButton=j,m.enableButton=k,m.getViewsWithButtons=l;var n,o=a(),p=[]}function xa(c){function d(a,b){return!Q||a.clone().stripZone()<Q.clone().stripZone()||b.clone().stripZone()>R.clone().stripZone()}function e(a,b){Q=a,R=b,$=[];var c=++X,d=W.length;Y=d;for(var e=0;d>e;e++)f(W[e],c)}function f(b,c){g(b,function(d){var e,f,g,h=a.isArray(b.events);if(c==X){if(d)for(e=0;e<d.length;e++)f=d[e],g=h?f:u(f,b),g&&$.push.apply($,y(g));Y--,Y||U($)}})}function g(b,d){var e,f,h=Ca.sourceFetchers;for(e=0;e<h.length;e++){if(f=h[e].call(P,b,Q.clone(),R.clone(),c.timezone,d),f===!0)return;if("object"==typeof f)return void g(f,d)}var i=b.events;if(i)a.isFunction(i)?(s(),i.call(P,Q.clone(),R.clone(),c.timezone,function(a){d(a),t()})):a.isArray(i)?d(i):d();else{var j=b.url;if(j){var k,l=b.success,m=b.error,n=b.complete;k=a.isFunction(b.data)?b.data():b.data;var o=a.extend({},k||{}),p=K(b.startParam,c.startParam),q=K(b.endParam,c.endParam),r=K(b.timezoneParam,c.timezoneParam);p&&(o[p]=Q.format()),q&&(o[q]=R.format()),c.timezone&&"local"!=c.timezone&&(o[r]=c.timezone),s(),a.ajax(a.extend({},eb,b,{data:o,success:function(b){b=b||[];var c=J(l,this,arguments);a.isArray(c)&&(b=c),d(b)},error:function(){J(m,this,arguments),d()},complete:function(){J(n,this,arguments),t()}}))}else d()}}function h(a){var b=i(a);b&&(W.push(b),Y++,f(b,X))}function i(b){var c,d,e=Ca.sourceNormalizers;if(a.isFunction(b)||a.isArray(b)?c={events:b}:"string"==typeof b?c={url:b}:"object"==typeof b&&(c=a.extend({},b)),c){for(c.className?"string"==typeof c.className&&(c.className=c.className.split(/\s+/)):c.className=[],a.isArray(c.events)&&(c.origArray=c.events,c.events=a.map(c.events,function(a){return u(a,c)})),d=0;d<e.length;d++)e[d].call(P,c);return c}}function j(b){W=a.grep(W,function(a){return!k(a,b)}),$=a.grep($,function(a){return!k(a.source,b)}),U($)}function k(a,b){return a&&b&&l(a)==l(b)}function l(a){return("object"==typeof a?a.origArray||a.googleCalendarId||a.url||a.events:null)||a}function m(a){a.start=P.moment(a.start),a.end?a.end=P.moment(a.end):a.end=null,B(a,n(a)),U($)}function n(b){var c={};return a.each(b,function(a,b){o(a)&&void 0!==b&&I(b)&&(c[a]=b)}),c}function o(a){return!/^_|^(id|allDay|start|end)$/.test(a)}function p(a,b){var c,d,e,f=u(a);if(f){for(c=y(f),d=0;d<c.length;d++)e=c[d],e.source||(b&&(V.events.push(e),e.source=V),$.push(e));return U($),c}return[]}function q(b){var c,d;for(null==b?b=function(){return!0}:a.isFunction(b)||(c=b+"",b=function(a){return a._id==c}),$=a.grep($,b,!0),d=0;d<W.length;d++)a.isArray(W[d].events)&&(W[d].events=a.grep(W[d].events,b,!0));U($)}function r(b){return a.isFunction(b)?a.grep($,b):null!=b?(b+="",a.grep($,function(a){return a._id==b})):$}function s(){Z++||S("loading",null,!0,T())}function t(){--Z||S("loading",null,!1,T())}function u(d,e){var f,g,h,i={};if(c.eventDataTransform&&(d=c.eventDataTransform(d)),e&&e.eventDataTransform&&(d=e.eventDataTransform(d)),a.extend(i,d),e&&(i.source=e),i._id=d._id||(void 0===d.id?"_fc"+fb++:d.id+""),d.className?"string"==typeof d.className?i.className=d.className.split(/\s+/):i.className=d.className:i.className=[],f=d.start||d.date,g=d.end,E(f)&&(f=b.duration(f)),E(g)&&(g=b.duration(g)),d.dow||b.isDuration(f)||b.isDuration(g))i.start=f?b.duration(f):null,i.end=g?b.duration(g):null,i._recurring=!0;else{if(f&&(f=P.moment(f),!f.isValid()))return!1;g&&(g=P.moment(g),g.isValid()||(g=null)),h=d.allDay,void 0===h&&(h=K(e?e.allDayDefault:void 0,c.allDayDefault)),v(f,g,h,i)}return i}function v(a,b,c,d){d.start=a,d.end=b,d.allDay=c,w(d),ya(d)}function w(a){null==a.allDay&&(a.allDay=!(a.start.hasTime()||a.end&&a.end.hasTime())),a.allDay?(a.start.stripTime(),a.end&&a.end.stripTime()):(a.start.hasTime()||(a.start=P.rezoneDate(a.start)),a.end&&!a.end.hasTime()&&(a.end=P.rezoneDate(a.end))),a.end&&!a.end.isAfter(a.start)&&(a.end=null),a.end||(c.forceEventDuration?a.end=P.getDefaultEventEnd(a.allDay,a.start):a.end=null)}function x(a){var b;return a.end||(b=a.allDay,null==b&&(b=!a.start.hasTime()),a={start:a.start,end:P.getDefaultEventEnd(b,a.start)}),a}function y(b,c,d){var e,f,g,h,i,j,k,l,m,n=[];if(c=c||Q,d=d||R,b)if(b._recurring){if(f=b.dow)for(e={},g=0;g<f.length;g++)e[f[g]]=!0;for(h=c.clone().stripTime();h.isBefore(d);)(!e||e[h.day()])&&(i=b.start,j=b.end,k=h.clone(),l=null,i&&(k=k.time(i)),j&&(l=h.clone().time(j)),m=a.extend({},b),v(k,l,!i&&!j,m),n.push(m)),h.add(1,"days")}else n.push(b);return n}function B(b,c){var d,e,f,g,h={};return c=c||{},c.start||(c.start=b.start.clone()),void 0===c.end&&(c.end=b.end?b.end.clone():null),null==c.allDay&&(c.allDay=b.allDay),w(c),d=null!==b._end&&null===c.end,e=c.allDay?A(c.start,b._start):z(c.start,b._start),!d&&c.end&&(f=z(c.end,c.start).subtract(z(b._end||P.getDefaultEventEnd(b._allDay,b._start),b._start))),a.each(c,function(a,b){o(a)&&void 0!==b&&(h[a]=b)}),g=C(r(b._id),d,c.allDay,e,f,h),{dateDelta:e,durationDelta:f,undo:g}}function C(b,c,d,e,f,g){var h=P.getIsAmbigTimezone(),i=[];return e&&!e.valueOf()&&(e=null),f&&!f.valueOf()&&(f=null),a.each(b,function(b,j){var k,l;k={start:j.start.clone(),end:j.end?j.end.clone():null,allDay:j.allDay},a.each(g,function(a){k[a]=j[a]}),l={start:j._start,end:j._end,allDay:j._allDay},c&&(l.end=null),l.allDay=d,w(l),e&&(l.start.add(e),l.end&&l.end.add(e)),f&&(l.end||(l.end=P.getDefaultEventEnd(l.allDay,l.start)),l.end.add(f)),h&&!l.allDay&&(e||f)&&(l.start.stripZone(),l.end&&l.end.stripZone()),a.extend(j,g,l),ya(j),i.push(function(){a.extend(j,k),ya(j)})}),function(){for(var a=0;a<i.length;a++)i[a]()}}function D(){var b,d=c.businessHours,e={className:"fc-nonbusiness",start:"09:00",end:"17:00",dow:[1,2,3,4,5],rendering:"inverse-background"},f=P.getView();return d&&(b="object"==typeof d?a.extend({},e,d):e),b?y(u(b),f.start,f.end):[]}function F(a,b){var d=b.source||{},e=K(b.constraint,d.constraint,c.eventConstraint),f=K(b.overlap,d.overlap,c.eventOverlap);return a=x(a),L(a,e,f,b)}function G(a){return L(a,c.selectConstraint,c.selectOverlap)}function H(b,c){var d,e;return c&&(d=a.extend({},c,b),e=y(u(d))[0]),e?F(b,e):(b=x(b),G(b))}function L(a,b,c,d){var e,f,g,h,i;if(a={start:a.start.clone().stripZone(),end:a.end.clone().stripZone()},null!=b){for(e=M(b),f=!1,g=0;g<e.length;g++)if(N(e[g],a)){f=!0;break}if(!f)return!1}for(g=0;g<$.length;g++)if(h=$[g],(!d||d._id!==h._id)&&O(h,a)){if(c===!1)return!1;if("function"==typeof c&&!c(h,d))return!1;if(d){if(i=K(h.overlap,(h.source||{}).overlap),i===!1)return!1;if("function"==typeof i&&!i(d,h))return!1}}return!0}function M(a){return"businessHours"===a?D():"object"==typeof a?y(u(a)):r(a)}function N(a,b){var c=a.start.clone().stripZone(),d=P.getEventEnd(a).stripZone();return b.start>=c&&b.end<=d}function O(a,b){var c=a.start.clone().stripZone(),d=P.getEventEnd(a).stripZone();return b.start<d&&b.end>c}var P=this;P.isFetchNeeded=d,P.fetchEvents=e,P.addEventSource=h,P.removeEventSource=j,P.updateEvent=m,P.renderEvent=p,P.removeEvents=q,P.clientEvents=r,P.mutateEvent=B,P.normalizeEventDateProps=w,P.ensureVisibleEventRange=x;var Q,R,S=P.trigger,T=P.getView,U=P.reportEvents,V={events:[]},W=[V],X=0,Y=0,Z=0,$=[];a.each((c.events?[c.events]:[]).concat(c.eventSources||[]),function(a,b){var c=i(b);c&&W.push(c)}),P.getBusinessHoursEvents=D,P.isEventRangeAllowed=F,P.isSelectionRangeAllowed=G,P.isExternalDropRangeAllowed=H}function ya(a){a._allDay=a.allDay,a._start=a.start.clone(),a._end=a.end?a.end.clone():null}var za={titleRangeSeparator:" — ",monthYearFormat:"MMMM YYYY",defaultTimedEventDuration:"02:00:00",defaultAllDayEventDuration:{days:1},forceEventDuration:!1,nextDayThreshold:"09:00:00",defaultView:"month",aspectRatio:1.35,header:{left:"title",center:"",right:"today prev,next"},weekends:!0,weekNumbers:!1,weekNumberTitle:"W",weekNumberCalculation:"local",lazyFetching:!0,startParam:"start",endParam:"end",timezoneParam:"timezone",timezone:!1,isRTL:!1,defaultButtonText:{prev:"prev",next:"next",prevYear:"prev year",nextYear:"next year",today:"today",month:"month",week:"week",day:"day"},buttonIcons:{prev:"left-single-arrow",next:"right-single-arrow",prevYear:"left-double-arrow",nextYear:"right-double-arrow"},theme:!1,themeButtonIcons:{prev:"circle-triangle-w",next:"circle-triangle-e",prevYear:"seek-prev",nextYear:"seek-next"},dragOpacity:.75,dragRevertDuration:500,dragScroll:!0,unselectAuto:!0,dropAccept:"*",eventLimit:!1,eventLimitText:"more",eventLimitClick:"popover",dayPopoverFormat:"LL",handleWindowResize:!0,windowResizeDelay:200},Aa={dayPopoverFormat:"dddd, MMMM D"},Ba={header:{left:"next,prev today",center:"",right:"title"},buttonIcons:{prev:"right-single-arrow",next:"left-single-arrow",prevYear:"right-double-arrow",nextYear:"left-double-arrow"},themeButtonIcons:{prev:"circle-triangle-e",next:"circle-triangle-w",nextYear:"seek-prev",prevYear:"seek-next"}},Ca=a.fullCalendar={version:"2.2.7"},Da=Ca.views={};a.fn.fullCalendar=function(b){var c=Array.prototype.slice.call(arguments,1),d=this;return this.each(function(e,f){var g,h=a(f),i=h.data("fullCalendar");"string"==typeof b?i&&a.isFunction(i[b])&&(g=i[b].apply(i,c),e||(d=g),"destroy"===b&&h.removeData("fullCalendar")):i||(i=new va(h,b),h.data("fullCalendar",i),i.render())}),d};var Ea=Ca.langs={};Ca.datepickerLang=function(b,c,d){var e=Ea[b]||(Ea[b]={});e.isRTL=d.isRTL,e.weekNumberTitle=d.weekHeader,a.each(Fa,function(a,b){e[a]=b(d)}),a.datepicker&&(a.datepicker.regional[c]=a.datepicker.regional[b]=d,a.datepicker.regional.en=a.datepicker.regional[""],a.datepicker.setDefaults(d))},Ca.lang=function(b,c){var e,g;e=Ea[b]||(Ea[b]={}),c&&d(e,c),g=f(b),a.each(Ga,function(a,b){void 0===e[a]&&(e[a]=b(g,e))}),za.lang=b};var Fa={defaultButtonText:function(a){return{prev:M(a.prevText),next:M(a.nextText),today:M(a.currentText)}},monthYearFormat:function(a){return a.showMonthAfterYear?"YYYY["+a.yearSuffix+"] MMMM":"MMMM YYYY["+a.yearSuffix+"]"}},Ga={dayOfMonthFormat:function(a,b){var c=a.longDateFormat("l");return c=c.replace(/^Y+[^\w\s]*|[^\w\s]*Y+$/g,""),b.isRTL?c+=" ddd":c="ddd "+c,c},smallTimeFormat:function(a){return a.longDateFormat("LT").replace(":mm","(:mm)").replace(/(\Wmm)$/,"($1)").replace(/\s*a$/i,"a")},extraSmallTimeFormat:function(a){return a.longDateFormat("LT").replace(":mm","(:mm)").replace(/(\Wmm)$/,"($1)").replace(/\s*a$/i,"t")},noMeridiemTimeFormat:function(a){return a.longDateFormat("LT").replace(/\s*a$/i,"")}};Ca.lang("en",Aa),Ca.intersectionToSeg=x,Ca.applyAll=J,Ca.debounce=Q;var Ha,Ia,Ja,Ka=-1!==navigator.userAgent.toLowerCase().indexOf("phantom"),La=!1,Ma=["sun","mon","tue","wed","thu","fri","sat"],Na=["year","month","week","day","hour","minute","second","millisecond"],Oa={}.hasOwnProperty,Pa=/^\s*\d{4}-\d\d$/,Qa=/^\s*\d{4}-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?)?$/,Ra=b.fn,Sa=a.extend({},Ra);Ca.moment=function(){return R(arguments)},Ca.moment.utc=function(){var a=R(arguments,!0);return a.hasTime()&&a.utc(),a},Ca.moment.parseZone=function(){return R(arguments,!0,!0)},Ra.clone=function(){var a=Sa.clone.apply(this,arguments);return T(this,a),this._fullCalendar&&(a._fullCalendar=!0),a},Ra.time=function(a){if(!this._fullCalendar)return Sa.time.apply(this,arguments);if(null==a)return b.duration({hours:this.hours(),minutes:this.minutes(),seconds:this.seconds(),milliseconds:this.milliseconds()});this._ambigTime=!1,b.isDuration(a)||b.isMoment(a)||(a=b.duration(a));var c=0;return b.isDuration(a)&&(c=24*Math.floor(a.asDays())),this.hours(c+a.hours()).minutes(a.minutes()).seconds(a.seconds()).milliseconds(a.milliseconds())},Ra.stripTime=function(){var a;return this._ambigTime||(a=this.toArray(),this.utc(),Ia(this,a.slice(0,3)),this._ambigTime=!0,this._ambigZone=!0),this},Ra.hasTime=function(){return!this._ambigTime},Ra.stripZone=function(){var a,b;return this._ambigZone||(a=this.toArray(),b=this._ambigTime,this.utc(),Ia(this,a),this._ambigTime=b||!1,this._ambigZone=!0),this},Ra.hasZone=function(){return!this._ambigZone},Ra.local=function(){var a=this.toArray(),b=this._ambigZone;return Sa.local.apply(this,arguments),this._ambigTime=!1,this._ambigZone=!1,b&&Ja(this,a),this},Ra.utc=function(){return Sa.utc.apply(this,arguments),this._ambigTime=!1,this._ambigZone=!1,this},a.each(["zone","utcOffset"],function(a,b){Sa[b]&&(Ra[b]=function(a){return null!=a&&(this._ambigTime=!1,this._ambigZone=!1),Sa[b].apply(this,arguments)})}),Ra.format=function(){return this._fullCalendar&&arguments[0]?W(this,arguments[0]):this._ambigTime?V(this,"YYYY-MM-DD"):this._ambigZone?V(this,"YYYY-MM-DD[T]HH:mm:ss"):Sa.format.apply(this,arguments)},Ra.toISOString=function(){return this._ambigTime?V(this,"YYYY-MM-DD"):this._ambigZone?V(this,"YYYY-MM-DD[T]HH:mm:ss"):Sa.toISOString.apply(this,arguments)},Ra.isWithin=function(a,b){var c=S([this,a,b]);return c[0]>=c[1]&&c[0]<c[2]},Ra.isSame=function(a,b){var c;return this._fullCalendar?b?(c=S([this,a],!0),Sa.isSame.call(c[0],c[1],b)):(a=Ca.moment.parseZone(a),Sa.isSame.call(this,a)&&Boolean(this._ambigTime)===Boolean(a._ambigTime)&&Boolean(this._ambigZone)===Boolean(a._ambigZone)):Sa.isSame.apply(this,arguments)},a.each(["isBefore","isAfter"],function(a,b){Ra[b]=function(a,c){var d;return this._fullCalendar?(d=S([this,a]),Sa[b].call(d[0],d[1],c)):Sa[b].apply(this,arguments)}}),Ha="_d"in b()&&"updateOffset"in b,Ia=Ha?function(a,c){a._d.setTime(Date.UTC.apply(Date,c)),b.updateOffset(a,!1)}:U,Ja=Ha?function(a,c){a._d.setTime(+new Date(c[0]||0,c[1]||0,c[2]||0,c[3]||0,c[4]||0,c[5]||0,c[6]||0)),b.updateOffset(a,!1)}:U;var Ta={t:function(a){return V(a,"a").charAt(0)},T:function(a){return V(a,"A").charAt(0)}};Ca.formatRange=Z;var Ua={Y:"year",M:"month",D:"day",d:"day",A:"second",a:"second",T:"second",t:"second",H:"second",h:"second",m:"second",s:"second"},Va={};Ca.Class=ca,ca.extend=function(a){var b,c=this;return a=a||{},H(a,"constructor")&&(b=a.constructor),"function"!=typeof b&&(b=a.constructor=function(){c.apply(this,arguments)}),b.prototype=F(c.prototype),G(a,b.prototype),G(c,b),b},ca.mixin=function(a){G(a.prototype||a,this.prototype)};var Wa=ca.extend({isHidden:!0,options:null,el:null,documentMousedownProxy:null,margin:10,constructor:function(a){this.options=a||{}},show:function(){this.isHidden&&(this.el||this.render(),this.el.show(),this.position(),this.isHidden=!1,this.trigger("show"))},hide:function(){this.isHidden||(this.el.hide(),this.isHidden=!0,this.trigger("hide"))},render:function(){var b=this,c=this.options;this.el=a('<div class="fc-popover"/>').addClass(c.className||"").css({top:0,left:0}).append(c.content).appendTo(c.parentEl),this.el.on("click",".fc-close",function(){b.hide()}),c.autoHide&&a(document).on(m(),this.documentMousedownProxy=a.proxy(this,"documentMousedown"))},documentMousedown:function(b){this.el&&!a(b.target).closest(this.el).length&&(this.hide(),b.stopPropagation())},destroy:function(){this.hide(),this.el&&(this.el.remove(),this.el=null),
3
  a(document).off(m(),this.documentMousedownProxy)},position:function(){var b,c,d,e,f,g=this.options,h=this.el.offsetParent().offset(),i=this.el.outerWidth(),j=this.el.outerHeight(),k=a(window),l=u(this.el);e=g.top||0,f=void 0!==g.left?g.left:void 0!==g.right?g.right-i:0,l.is(window)||l.is(document)?(l=k,b=0,c=0):(d=l.offset(),b=d.top,c=d.left),b+=k.scrollTop(),c+=k.scrollLeft(),g.viewportConstrain!==!1&&(e=Math.min(e,b+l.outerHeight()-j-this.margin),e=Math.max(e,b+this.margin),f=Math.min(f,c+l.outerWidth()-i-this.margin),f=Math.max(f,c+this.margin)),this.el.css({top:e-h.top,left:f-h.left})},trigger:function(a){this.options[a]&&this.options[a].apply(this,Array.prototype.slice.call(arguments,1))}}),Xa=ca.extend({grid:null,rowCoords:null,colCoords:null,containerEl:null,minX:null,maxX:null,minY:null,maxY:null,constructor:function(a){this.grid=a},build:function(){this.rowCoords=this.grid.computeRowCoords(),this.colCoords=this.grid.computeColCoords(),this.computeBounds()},clear:function(){this.rowCoords=null,this.colCoords=null},getCell:function(a,b){var c,d,e,f=this.rowCoords,g=this.colCoords,h=null,i=null;if(this.inBounds(a,b)){for(c=0;c<f.length;c++)if(d=f[c],b>=d.top&&b<d.bottom){h=c;break}for(c=0;c<g.length;c++)if(d=g[c],a>=d.left&&a<d.right){i=c;break}if(null!==h&&null!==i)return e=this.grid.getCell(h,i),e.grid=this.grid,e}return null},computeBounds:function(){var a;this.containerEl&&(a=this.containerEl.offset(),this.minX=a.left,this.maxX=a.left+this.containerEl.outerWidth(),this.minY=a.top,this.maxY=a.top+this.containerEl.outerHeight())},inBounds:function(a,b){return this.containerEl?a>=this.minX&&a<this.maxX&&b>=this.minY&&b<this.maxY:!0}}),Ya=ca.extend({coordMaps:null,constructor:function(a){this.coordMaps=a},build:function(){var a,b=this.coordMaps;for(a=0;a<b.length;a++)b[a].build()},getCell:function(a,b){var c,d=this.coordMaps,e=null;for(c=0;c<d.length&&!e;c++)e=d[c].getCell(a,b);return e},clear:function(){var a,b=this.coordMaps;for(a=0;a<b.length;a++)b[a].clear()}}),Za=ca.extend({coordMap:null,options:null,isListening:!1,isDragging:!1,origCell:null,cell:null,mouseX0:null,mouseY0:null,mousemoveProxy:null,mouseupProxy:null,scrollEl:null,scrollBounds:null,scrollTopVel:null,scrollLeftVel:null,scrollIntervalId:null,scrollHandlerProxy:null,scrollSensitivity:30,scrollSpeed:200,scrollIntervalMs:50,constructor:function(a,b){this.coordMap=a,this.options=b||{}},mousedown:function(a){w(a)&&(k(a)||a.preventDefault(),this.startListening(a),this.options.distance||this.startDrag(a))},startListening:function(b){var c,d;this.isListening||(b&&this.options.scroll&&(c=u(a(b.target)),c.is(window)||c.is(document)||(this.scrollEl=c,this.scrollHandlerProxy=Q(a.proxy(this,"scrollHandler"),100),this.scrollEl.on("scroll",this.scrollHandlerProxy))),this.computeCoords(),b&&(d=this.getCell(b),this.origCell=d,this.mouseX0=l(b).x,this.mouseY0=l(b).y),a(document).on(o(),this.mousemoveProxy=a.proxy(this,"mousemove")).on(n(),this.mouseupProxy=a.proxy(this,"mouseup")).on("selectstart",this.preventDefault),this.isListening=!0,this.trigger("listenStart",b))},computeCoords:function(){this.coordMap.build(),this.computeScrollBounds()},mousemove:function(a){var b,c;this.isDragging||(b=this.options.distance||1,c=Math.pow(l(a).x-this.mouseX0,2)+Math.pow(l(a).y-this.mouseY0,2),c>=b*b&&this.startDrag(a)),this.isDragging&&this.drag(a)},startDrag:function(a){var b;this.isListening||this.startListening(),this.isDragging||(this.isDragging=!0,this.trigger("dragStart",a),b=this.getCell(a),b&&this.cellOver(b))},drag:function(a){var b;this.isDragging&&(b=this.getCell(a),da(b,this.cell)||(this.cell&&this.cellOut(),!b||k(a)&&!La||this.cellOver(b)),this.dragScroll(a))},cellOver:function(a){this.cell=a,this.trigger("cellOver",a,da(a,this.origCell))},cellOut:function(){this.cell&&(this.trigger("cellOut",this.cell),this.cell=null)},mouseup:function(a){this.stopDrag(a),this.stopListening(a)},stopDrag:function(a){this.isDragging&&(this.stopScrolling(),this.trigger("dragStop",a),this.isDragging=!1)},stopListening:function(b){this.isListening&&(this.scrollEl&&(this.scrollEl.off("scroll",this.scrollHandlerProxy),this.scrollHandlerProxy=null),a(document).off(o(),this.mousemoveProxy).off(n(),this.mouseupProxy).off("selectstart",this.preventDefault),this.mousemoveProxy=null,this.mouseupProxy=null,this.isListening=!1,this.trigger("listenStop",b),this.origCell=this.cell=null,this.coordMap.clear())},getCell:function(a){return this.coordMap.getCell(l(a).x,l(a).y)},trigger:function(a){this.options[a]&&this.options[a].apply(this,Array.prototype.slice.call(arguments,1))},preventDefault:function(a){a.preventDefault()},computeScrollBounds:function(){var a,b=this.scrollEl;b&&(a=b.offset(),this.scrollBounds={top:a.top,left:a.left,bottom:a.top+b.outerHeight(),right:a.left+b.outerWidth()})},dragScroll:function(a){var b,c,d,e,f=this.scrollSensitivity,g=this.scrollBounds,h=0,i=0;g&&(b=(f-(l(a).y-g.top))/f,c=(f-(g.bottom-l(a).y))/f,d=(f-(l(a).x-g.left))/f,e=(f-(g.right-l(a).x))/f,b>=0&&1>=b?h=b*this.scrollSpeed*-1:c>=0&&1>=c&&(h=c*this.scrollSpeed),d>=0&&1>=d?i=d*this.scrollSpeed*-1:e>=0&&1>=e&&(i=e*this.scrollSpeed)),this.setScrollVel(h,i)},setScrollVel:function(b,c){this.scrollTopVel=b,this.scrollLeftVel=c,this.constrainScrollVel(),!this.scrollTopVel&&!this.scrollLeftVel||this.scrollIntervalId||(this.scrollIntervalId=setInterval(a.proxy(this,"scrollIntervalFunc"),this.scrollIntervalMs))},constrainScrollVel:function(){var a=this.scrollEl;this.scrollTopVel<0?a.scrollTop()<=0&&(this.scrollTopVel=0):this.scrollTopVel>0&&a.scrollTop()+a[0].clientHeight>=a[0].scrollHeight&&(this.scrollTopVel=0),this.scrollLeftVel<0?a.scrollLeft()<=0&&(this.scrollLeftVel=0):this.scrollLeftVel>0&&a.scrollLeft()+a[0].clientWidth>=a[0].scrollWidth&&(this.scrollLeftVel=0)},scrollIntervalFunc:function(){var a=this.scrollEl,b=this.scrollIntervalMs/1e3;this.scrollTopVel&&a.scrollTop(a.scrollTop()+this.scrollTopVel*b),this.scrollLeftVel&&a.scrollLeft(a.scrollLeft()+this.scrollLeftVel*b),this.constrainScrollVel(),this.scrollTopVel||this.scrollLeftVel||this.stopScrolling()},stopScrolling:function(){this.scrollIntervalId&&(clearInterval(this.scrollIntervalId),this.scrollIntervalId=null,this.computeCoords())},scrollHandler:function(){this.scrollIntervalId||this.computeCoords()}}),$a=ca.extend({options:null,sourceEl:null,el:null,parentEl:null,top0:null,left0:null,mouseY0:null,mouseX0:null,topDelta:null,leftDelta:null,mousemoveProxy:null,isFollowing:!1,isHidden:!1,isAnimating:!1,constructor:function(b,c){this.options=c=c||{},this.sourceEl=b,this.parentEl=c.parentEl?a(c.parentEl):b.parent()},start:function(b){this.isFollowing||(this.isFollowing=!0,this.mouseY0=l(b).y,this.mouseX0=l(b).x,this.topDelta=0,this.leftDelta=0,this.isHidden||this.updatePosition(),a(document).on(o(),this.mousemoveProxy=a.proxy(this,"mousemove")))},stop:function(b,c){function d(){this.isAnimating=!1,e.destroyEl(),this.top0=this.left0=null,c&&c()}var e=this,f=this.options.revertDuration;this.isFollowing&&!this.isAnimating&&(this.isFollowing=!1,a(document).off(o(),this.mousemoveProxy),b&&f&&!this.isHidden?(this.isAnimating=!0,this.el.animate({top:this.top0,left:this.left0},{duration:f,complete:d})):d())},getEl:function(){var a=this.el;return a||(this.sourceEl.width(),a=this.el=this.sourceEl.clone().css({position:"absolute",visibility:"",display:this.isHidden?"none":"",margin:0,right:"auto",bottom:"auto",width:this.sourceEl.width(),height:this.sourceEl.height(),opacity:this.options.opacity||"",zIndex:this.options.zIndex}).appendTo(this.parentEl)),a},destroyEl:function(){this.el&&(this.el.remove(),this.el=null)},updatePosition:function(){var a,b;this.getEl(),null===this.top0&&(this.sourceEl.width(),a=this.sourceEl.offset(),b=this.el.offsetParent().offset(),this.top0=a.top-b.top,this.left0=a.left-b.left),this.el.css({top:this.top0+this.topDelta,left:this.left0+this.leftDelta})},mousemove:function(a){this.topDelta=l(a).y-this.mouseY0,this.leftDelta=l(a).x-this.mouseX0,this.isHidden||this.updatePosition()},hide:function(){this.isHidden||(this.isHidden=!0,this.el&&this.el.hide())},show:function(){this.isHidden&&(this.isHidden=!1,this.updatePosition(),this.getEl().show())}}),_a=ca.extend({view:null,isRTL:null,cellHtml:"<td/>",constructor:function(a){this.view=a,this.isRTL=a.opt("isRTL")},rowHtml:function(a,b){var c,d,e=this.getHtmlRenderer("cell",a),f="";for(b=b||0,c=0;c<this.colCnt;c++)d=this.getCell(b,c),f+=e(d);return f=this.bookendCells(f,a,b),"<tr>"+f+"</tr>"},bookendCells:function(a,b,c){var d=this.getHtmlRenderer("intro",b)(c||0),e=this.getHtmlRenderer("outro",b)(c||0),f=this.isRTL?e:d,g=this.isRTL?d:e;return"string"==typeof a?f+a+g:a.prepend(f).append(g)},getHtmlRenderer:function(a,b){var c,d,e,f,g=this.view;return c=a+"Html",b&&(d=b+N(a)+"Html"),d&&(f=g[d])?e=g:d&&(f=this[d])?e=this:(f=g[c])?e=g:(f=this[c])&&(e=this),"function"==typeof f?function(){return f.apply(e,arguments)||""}:function(){return f||""}}}),ab=Ca.Grid=_a.extend({start:null,end:null,rowCnt:0,colCnt:0,rowData:null,colData:null,el:null,coordMap:null,elsByFill:null,documentDragStartProxy:null,colHeadFormat:null,eventTimeFormat:null,displayEventEnd:null,constructor:function(){_a.apply(this,arguments),this.coordMap=new Xa(this),this.elsByFill={},this.documentDragStartProxy=a.proxy(this,"documentDragStart")},render:function(){this.bindHandlers()},destroy:function(){this.unbindHandlers()},computeColHeadFormat:function(){},computeEventTimeFormat:function(){return this.view.opt("smallTimeFormat")},computeDisplayEventEnd:function(){return!1},setRange:function(a){var b=this.view;this.start=a.start.clone(),this.end=a.end.clone(),this.rowData=[],this.colData=[],this.updateCells(),this.colHeadFormat=b.opt("columnFormat")||this.computeColHeadFormat(),this.eventTimeFormat=b.opt("timeFormat")||this.computeEventTimeFormat(),this.displayEventEnd=b.opt("displayEventEnd"),null==this.displayEventEnd&&(this.displayEventEnd=this.computeDisplayEventEnd())},updateCells:function(){},rangeToSegs:function(a){},getCell:function(b,c){var d;return null==c&&("number"==typeof b?(c=b%this.colCnt,b=Math.floor(b/this.colCnt)):(c=b.col,b=b.row)),d={row:b,col:c},a.extend(d,this.getRowData(b),this.getColData(c)),a.extend(d,this.computeCellRange(d)),d},computeCellRange:function(a){},getRowData:function(a){return this.rowData[a]||{}},getColData:function(a){return this.colData[a]||{}},getRowEl:function(a){},getColEl:function(a){},getCellDayEl:function(a){return this.getColEl(a.col)||this.getRowEl(a.row)},computeRowCoords:function(){var a,b,c,d=[];for(a=0;a<this.rowCnt;a++)b=this.getRowEl(a),c={top:b.offset().top},a>0&&(d[a-1].bottom=c.top),d.push(c);return c.bottom=c.top+b.outerHeight(),d},computeColCoords:function(){var a,b,c,d=[];for(a=0;a<this.colCnt;a++)b=this.getColEl(a),c={left:b.offset().left},a>0&&(d[a-1].right=c.left),d.push(c);return c.right=c.left+b.outerWidth(),d},bindHandlers:function(){var b=this;this.el.on(m(),function(c){a(c.target).is(".fc-event-container *, .fc-more")||b.view.el.find(".fc-popover").length||a(c.target).closest(".fc-popover").length||b.dayMousedown(c)}),this.bindSegHandlers(),a(document).on("dragstart",this.documentDragStartProxy)},unbindHandlers:function(){a(document).off("dragstart",this.documentDragStartProxy)},dayMousedown:function(a){var b,c,d=this,e=this.view,f=e.opt("selectable"),g=new Za(this.coordMap,{scroll:e.opt("dragScroll"),dragStart:function(){e.unselect()},cellOver:function(a,e){var h=g.origCell;h&&(b=e?a:null,f&&(c=d.computeSelection(h,a),c?d.renderSelection(c):i()))},cellOut:function(a){b=null,c=null,d.destroySelection(),j()},listenStop:function(a){b&&(a.preventDefault(),e.trigger("dayClick",d.getCellDayEl(b),b.start,a)),c&&e.reportSelection(c,a),j()}});g.mousedown(a)},renderRangeHelper:function(a,b){var c;c=b?F(b.event):{},c.start=a.start.clone(),c.end=a.end?a.end.clone():null,c.allDay=null,this.view.calendar.normalizeEventDateProps(c),c.className=(c.className||[]).concat("fc-helper"),b||(c.editable=!1),this.renderHelper(c,b)},renderHelper:function(a,b){},destroyHelper:function(){},renderSelection:function(a){this.renderHighlight(a)},destroySelection:function(){this.destroyHighlight()},computeSelection:function(a,b){var c,d=[a.start,a.end,b.start,b.end];return d.sort(O),c={start:d[0].clone(),end:d[3].clone()},this.view.calendar.isSelectionRangeAllowed(c)?c:null},renderHighlight:function(a){this.renderFill("highlight",this.rangeToSegs(a))},destroyHighlight:function(){this.destroyFill("highlight")},highlightSegClasses:function(){return["fc-highlight"]},renderFill:function(a,b){},destroyFill:function(a){var b=this.elsByFill[a];b&&(b.remove(),delete this.elsByFill[a])},renderFillSegEls:function(b,c){var d,e=this,f=this[b+"SegEl"],g="",h=[];if(c.length){for(d=0;d<c.length;d++)g+=this.fillSegHtml(b,c[d]);a(g).each(function(b,d){var g=c[b],i=a(d);f&&(i=f.call(e,g,i)),i&&(i=a(i),i.is(e.fillSegTag)&&(g.el=i,h.push(g)))})}return h},fillSegTag:"div",fillSegHtml:function(a,b){var c=this[a+"SegClasses"],d=this[a+"SegStyles"],e=c?c.call(this,b):[],f=d?d.call(this,b):"";return"<"+this.fillSegTag+(e.length?' class="'+e.join(" ")+'"':"")+(f?' style="'+f+'"':"")+" />"},headHtml:function(){return'<div class="fc-row '+this.view.widgetHeaderClass+'"><table><thead>'+this.rowHtml("head")+"</thead></table></div>"},headCellHtml:function(a){var b=this.view,c=a.start;return'<th class="fc-day-header '+b.widgetHeaderClass+" fc-"+Ma[c.day()]+'">'+L(c.format(this.colHeadFormat))+"</th>"},bgCellHtml:function(a){var b=this.view,c=a.start,d=this.getDayClasses(c);return d.unshift("fc-day",b.widgetContentClass),'<td class="'+d.join(" ")+'" data-date="'+c.format("YYYY-MM-DD")+'"></td>'},getDayClasses:function(a){var b=this.view,c=b.calendar.getNow().stripTime(),d=["fc-"+Ma[a.day()]];return"month"===b.name&&a.month()!=b.intervalStart.month()&&d.push("fc-other-month"),a.isSame(c,"day")?d.push("fc-today",b.highlightStateClass):c>a?d.push("fc-past"):d.push("fc-future"),d}});ab.mixin({mousedOverSeg:null,isDraggingSeg:!1,isResizingSeg:!1,segs:null,renderEvents:function(a){var b,c,d=this.eventsToSegs(a),e=[],f=[];for(b=0;b<d.length;b++)c=d[b],ea(c.event)?e.push(c):f.push(c);e=this.renderBgSegs(e)||e,f=this.renderFgSegs(f)||f,this.segs=e.concat(f)},destroyEvents:function(){this.triggerSegMouseout(),this.destroyFgSegs(),this.destroyBgSegs(),this.segs=null},getEventSegs:function(){return this.segs||[]},renderFgSegs:function(a){},destroyFgSegs:function(){},renderFgSegEls:function(b,c){var d,e=this.view,f="",g=[];if(b.length){for(d=0;d<b.length;d++)f+=this.fgSegHtml(b[d],c);a(f).each(function(c,d){var f=b[c],h=e.resolveEventEl(f.event,a(d));h&&(h.data("fc-seg",f),f.el=h,g.push(f))})}return g},fgSegHtml:function(a,b){},renderBgSegs:function(a){return this.renderFill("bgEvent",a)},destroyBgSegs:function(){this.destroyFill("bgEvent")},bgEventSegEl:function(a,b){return this.view.resolveEventEl(a.event,b)},bgEventSegClasses:function(a){var b=a.event,c=b.source||{};return["fc-bgevent"].concat(b.className,c.className||[])},bgEventSegStyles:function(a){var b=this.view,c=a.event,d=c.source||{},e=c.color,f=d.color,g=b.opt("eventColor"),h=c.backgroundColor||e||d.backgroundColor||f||b.opt("eventBackgroundColor")||g;return h?"background-color:"+h:""},businessHoursSegClasses:function(a){return["fc-nonbusiness","fc-bgevent"]},bindSegHandlers:function(){var b=this,c=this.view,d={};d.mouseenter=function(a,c){b.triggerSegMouseover(a,c)},d.mouseleave=function(a,c){b.triggerSegMouseout(a,c)},d.click=function(a,b){return c.trigger("eventClick",this,a.event,b)},d[m()]=function(d,e){a(e.target).is(".fc-resizer")&&c.isEventResizable(d.event)?b.segResizeMousedown(d,e):!c.isEventDraggable(d.event)||k(e)&&!La||b.segDragMousedown(d,e)},a.each(d,function(c,d){b.el.on(c,".fc-event-container > *",function(c){var e=a(this).data("fc-seg");return!e||b.isDraggingSeg||b.isResizingSeg?void 0:d.call(this,e,c)})})},triggerSegMouseover:function(a,b){this.mousedOverSeg||(this.mousedOverSeg=a,this.view.trigger("eventMouseover",a.el[0],a.event,b))},triggerSegMouseout:function(a,b){b=b||{},this.mousedOverSeg&&(a=a||this.mousedOverSeg,this.mousedOverSeg=null,this.view.trigger("eventMouseout",a.el[0],a.event,b))},segDragMousedown:function(a,b){var c,d=this,e=this.view,f=a.el,g=a.event,h=new $a(a.el,{parentEl:e.el,opacity:e.opt("dragOpacity"),revertDuration:e.opt("dragRevertDuration"),zIndex:2}),k=new Za(e.coordMap,{distance:5,scroll:e.opt("dragScroll"),listenStart:function(a){h.hide(),h.start(a)},dragStart:function(b){d.triggerSegMouseout(a,b),d.isDraggingSeg=!0,e.hideEvent(g),e.trigger("eventDragStart",f[0],g,b,{})},cellOver:function(b,f){var j=a.cell||k.origCell;c=d.computeEventDrop(j,b,g),c?(e.renderDrag(c,a)?h.hide():h.show(),f&&(c=null)):(h.show(),i())},cellOut:function(){c=null,e.destroyDrag(),h.show(),j()},dragStop:function(a){h.stop(!c,function(){d.isDraggingSeg=!1,e.destroyDrag(),e.showEvent(g),e.trigger("eventDragStop",f[0],g,a,{}),c&&e.reportEventDrop(g,c,f,a)}),j()},listenStop:function(){h.stop()}});k.mousedown(b)},computeEventDrop:function(a,b,c){var d,e,f,g,h,i=a.start,j=b.start;return i.hasTime()===j.hasTime()?(d=z(j,i),e=c.start.clone().add(d),f=null===c.end?null:c.end.clone().add(d),g=c.allDay):(e=j.clone(),f=null,g=!j.hasTime()),h={start:e,end:f,allDay:g},this.view.calendar.isEventRangeAllowed(h,c)?h:null},documentDragStart:function(b,c){var d,e,f=this.view;f.opt("droppable")&&(d=a(b.target),e=f.opt("dropAccept"),(a.isFunction(e)?e.call(d[0],d):d.is(e))&&this.startExternalDrag(d,b,c))},startExternalDrag:function(b,c,d){var e,f,g=this,h=ka(b);e=new Za(this.coordMap,{cellOver:function(a){f=g.computeExternalDrop(a,h),f?g.renderDrag(f):i()},cellOut:function(){f=null,g.destroyDrag(),j()}}),a(document).one("dragstop",function(a,c){g.destroyDrag(),j(),f&&g.view.reportExternalDrop(h,f,b,a,c)}),e.startDrag(c)},computeExternalDrop:function(a,b){var c={start:a.start.clone(),end:null};return b.startTime&&!c.start.hasTime()&&c.start.time(b.startTime),b.duration&&(c.end=c.start.clone().add(b.duration)),this.view.calendar.isExternalDropRangeAllowed(c,b.eventProps)?c:null},renderDrag:function(a,b){},destroyDrag:function(){},segResizeMousedown:function(a,b){function c(){f.destroyEventResize(),g.showEvent(l),j()}var d,e,f=this,g=this.view,h=g.calendar,k=a.el,l=a.event,m=l.start,n=h.getEventEnd(l);e=new Za(this.coordMap,{distance:5,scroll:g.opt("dragScroll"),dragStart:function(b){f.triggerSegMouseout(a,b),f.isResizingSeg=!0,g.trigger("eventResizeStart",k[0],l,b,{})},cellOver:function(b){d=b.end,d.isAfter(m)||(d=m.clone().add(z(b.end,b.start))),d.isSame(n)?d=null:h.isEventRangeAllowed({start:m,end:d},l)?(f.renderEventResize({start:m,end:d},a),g.hideEvent(l)):(d=null,i())},cellOut:function(){d=null,c()},dragStop:function(a){f.isResizingSeg=!1,c(),g.trigger("eventResizeStop",k[0],l,a,{}),d&&g.reportEventResize(l,d,k,a)}}),e.mousedown(b)},renderEventResize:function(a,b){},destroyEventResize:function(){},getEventTimeText:function(a,b){return b=b||this.eventTimeFormat,a.end&&this.displayEventEnd?this.view.formatRange(a,b):a.start.format(b)},getSegClasses:function(a,b,c){var d=a.event,e=["fc-event",a.isStart?"fc-start":"fc-not-start",a.isEnd?"fc-end":"fc-not-end"].concat(d.className,d.source?d.source.className:[]);return b&&e.push("fc-draggable"),c&&e.push("fc-resizable"),e},getEventSkinCss:function(a){var b=this.view,c=a.source||{},d=a.color,e=c.color,f=b.opt("eventColor"),g=a.backgroundColor||d||c.backgroundColor||e||b.opt("eventBackgroundColor")||f,h=a.borderColor||d||c.borderColor||e||b.opt("eventBorderColor")||f,i=a.textColor||c.textColor||b.opt("eventTextColor"),j=[];return g&&j.push("background-color:"+g),h&&j.push("border-color:"+h),i&&j.push("color:"+i),j.join(";")},eventsToSegs:function(a,b){var c,d=this.eventsToRanges(a),e=[];for(c=0;c<d.length;c++)e.push.apply(e,this.eventRangeToSegs(d[c],b));return e},eventsToRanges:function(b){var c=this,d=ha(b),e=[];return a.each(d,function(a,b){b.length&&e.push.apply(e,fa(b[0])?c.eventsToInverseRanges(b):c.eventsToNormalRanges(b))}),e},eventsToNormalRanges:function(a){var b,c,d,e,f=this.view.calendar,g=[];for(b=0;b<a.length;b++)c=a[b],d=c.start.clone().stripZone(),e=f.getEventEnd(c).stripZone(),g.push({event:c,start:d,end:e,eventStartMS:+d,eventDurationMS:e-d});return g},eventsToInverseRanges:function(a){var b,c,d=this.view,e=d.start.clone().stripZone(),f=d.end.clone().stripZone(),g=this.eventsToNormalRanges(a),h=[],i=a[0],j=e;for(g.sort(ia),b=0;b<g.length;b++)c=g[b],c.start>j&&h.push({event:i,start:j,end:c.start}),j=c.end;return f>j&&h.push({event:i,start:j,end:f}),h},eventRangeToSegs:function(a,b){var c,d,e;for(c=b?b(a):this.rangeToSegs(a),d=0;d<c.length;d++)e=c[d],e.event=a.event,e.eventStartMS=a.eventStartMS,e.eventDurationMS=a.eventDurationMS;return c}}),Ca.compareSegs=ja,Ca.dataAttrPrefix="";var bb=ab.extend({numbersVisible:!1,bottomCoordPadding:0,breakOnWeeks:null,cellDates:null,dayToCellOffsets:null,rowEls:null,dayEls:null,helperEls:null,render:function(a){var b,c,d,e=this.view,f=this.rowCnt,g=this.colCnt,h=f*g,i="";for(b=0;f>b;b++)i+=this.dayRowHtml(b,a);for(this.el.html(i),this.rowEls=this.el.find(".fc-row"),this.dayEls=this.el.find(".fc-day"),c=0;h>c;c++)d=this.getCell(c),e.trigger("dayRender",null,d.start,this.dayEls.eq(c));ab.prototype.render.call(this)},destroy:function(){this.destroySegPopover(),ab.prototype.destroy.call(this)},dayRowHtml:function(a,b){var c=this.view,d=["fc-row","fc-week",c.widgetContentClass];return b&&d.push("fc-rigid"),'<div class="'+d.join(" ")+'"><div class="fc-bg"><table>'+this.rowHtml("day",a)+'</table></div><div class="fc-content-skeleton"><table>'+(this.numbersVisible?"<thead>"+this.rowHtml("number",a)+"</thead>":"")+"</table></div></div>"},dayCellHtml:function(a){return this.bgCellHtml(a)},computeColHeadFormat:function(){return this.rowCnt>1?"ddd":this.colCnt>1?this.view.opt("dayOfMonthFormat"):"dddd"},computeEventTimeFormat:function(){return this.view.opt("extraSmallTimeFormat")},computeDisplayEventEnd:function(){return 1==this.colCnt},updateCells:function(){var a,b,c,d;if(this.updateCellDates(),a=this.cellDates,this.breakOnWeeks){for(b=a[0].day(),d=1;d<a.length&&a[d].day()!=b;d++);c=Math.ceil(a.length/d)}else c=1,d=a.length;this.rowCnt=c,this.colCnt=d},updateCellDates:function(){for(var a=this.view,b=this.start.clone(),c=[],d=-1,e=[];b.isBefore(this.end);)a.isHiddenDay(b)?e.push(d+.5):(d++,e.push(d),c.push(b.clone())),b.add(1,"days");this.cellDates=c,this.dayToCellOffsets=e},computeCellRange:function(a){var b=this.colCnt,c=a.row*b+(this.isRTL?b-a.col-1:a.col),d=this.cellDates[c].clone(),e=d.clone().add(1,"day");return{start:d,end:e}},getRowEl:function(a){return this.rowEls.eq(a)},getColEl:function(a){return this.dayEls.eq(a)},getCellDayEl:function(a){return this.dayEls.eq(a.row*this.colCnt+a.col)},computeRowCoords:function(){var a=ab.prototype.computeRowCoords.call(this);return a[a.length-1].bottom+=this.bottomCoordPadding,a},rangeToSegs:function(a){var b,c,d,e,f,g,h,i,j,k,l=this.isRTL,m=this.rowCnt,n=this.colCnt,o=[];for(a=this.view.computeDayRange(a),b=this.dateToCellOffset(a.start),c=this.dateToCellOffset(a.end.subtract(1,"days")),d=0;m>d;d++)e=d*n,f=e+n-1,i=Math.max(e,b),j=Math.min(f,c),i=Math.ceil(i),j=Math.floor(j),j>=i&&(g=i===b,h=j===c,i-=e,j-=e,k={row:d,isStart:g,isEnd:h},l?(k.leftCol=n-j-1,k.rightCol=n-i-1):(k.leftCol=i,k.rightCol=j),o.push(k));return o},dateToCellOffset:function(a){var b=this.dayToCellOffsets,c=a.diff(this.start,"days");return 0>c?b[0]-1:c>=b.length?b[b.length-1]+1:b[c]},renderDrag:function(a,b){var c;return this.renderHighlight(this.view.calendar.ensureVisibleEventRange(a)),b&&!b.el.closest(this.el).length?(this.renderRangeHelper(a,b),c=this.view.opt("dragOpacity"),void 0!==c&&this.helperEls.css("opacity",c),!0):void 0},destroyDrag:function(){this.destroyHighlight(),this.destroyHelper()},renderEventResize:function(a,b){this.renderHighlight(a),this.renderRangeHelper(a,b)},destroyEventResize:function(){this.destroyHighlight(),this.destroyHelper()},renderHelper:function(b,c){var d,e=[],f=this.eventsToSegs([b]);f=this.renderFgSegEls(f),d=this.renderSegRows(f),this.rowEls.each(function(b,f){var g,h=a(f),i=a('<div class="fc-helper-skeleton"><table/></div>');g=c&&c.row===b?c.el.position().top:h.find(".fc-content-skeleton tbody").position().top,i.css("top",g).find("table").append(d[b].tbodyEl),h.append(i),e.push(i[0])}),this.helperEls=a(e)},destroyHelper:function(){this.helperEls&&(this.helperEls.remove(),this.helperEls=null)},fillSegTag:"td",renderFill:function(b,c){var d,e,f,g=[];for(c=this.renderFillSegEls(b,c),d=0;d<c.length;d++)e=c[d],f=this.renderFillRow(b,e),this.rowEls.eq(e.row).append(f),g.push(f[0]);return this.elsByFill[b]=a(g),c},renderFillRow:function(b,c){var d,e,f=this.colCnt,g=c.leftCol,h=c.rightCol+1;return d=a('<div class="fc-'+b.toLowerCase()+'-skeleton"><table><tr/></table></div>'),e=d.find("tr"),g>0&&e.append('<td colspan="'+g+'"/>'),e.append(c.el.attr("colspan",h-g)),f>h&&e.append('<td colspan="'+(f-h)+'"/>'),this.bookendCells(e,b),d}});bb.mixin({rowStructs:null,destroyEvents:function(){this.destroySegPopover(),ab.prototype.destroyEvents.apply(this,arguments)},getEventSegs:function(){return ab.prototype.getEventSegs.call(this).concat(this.popoverSegs||[])},renderBgSegs:function(b){var c=a.grep(b,function(a){return a.event.allDay});return ab.prototype.renderBgSegs.call(this,c)},renderFgSegs:function(b){var c;return b=this.renderFgSegEls(b),c=this.rowStructs=this.renderSegRows(b),this.rowEls.each(function(b,d){a(d).find(".fc-content-skeleton > table").append(c[b].tbodyEl)}),b},destroyFgSegs:function(){for(var a,b=this.rowStructs||[];a=b.pop();)a.tbodyEl.remove();this.rowStructs=null},renderSegRows:function(a){var b,c,d=[];for(b=this.groupSegRows(a),c=0;c<b.length;c++)d.push(this.renderSegRow(c,b[c]));return d},fgSegHtml:function(a,b){var c,d=this.view,e=a.event,f=d.isEventDraggable(e),g=!b&&e.allDay&&a.isEnd&&d.isEventResizable(e),h=this.getSegClasses(a,f,g),i=this.getEventSkinCss(e),j="";h.unshift("fc-day-grid-event"),!e.allDay&&a.isStart&&(j='<span class="fc-time">'+L(this.getEventTimeText(e))+"</span>");var k='<span class="eo-fullcalendar-screen-reader-text screen-reader-text"> '+L(this.getEventTimeText(e,"dddd, MMMM Do YYYY"))+" </span>";return c='<span class="fc-title">'+(L(e.title||"")||"&nbsp;")+"</span>",'<a class="'+h.join(" ")+'"'+(e.url?' href="'+L(e.url)+'"':"")+(i?' style="'+i+'"':"")+'><div class="fc-content">'+(this.isRTL?c+" "+j+k:k+j+" "+c)+"</div>"+(g?'<div class="fc-resizer"/>':"")+"</a>"},renderSegRow:function(b,c){function d(b){for(;b>g;)k=(r[e-1]||[])[g],k?k.attr("rowspan",parseInt(k.attr("rowspan")||1,10)+1):(k=a("<td/>"),h.append(k)),q[e][g]=k,r[e][g]=k,g++}var e,f,g,h,i,j,k,l=this.colCnt,m=this.buildSegLevels(c),n=Math.max(1,m.length),o=a("<tbody/>"),p=[],q=[],r=[];for(e=0;n>e;e++){if(f=m[e],g=0,h=a("<tr/>"),p.push([]),q.push([]),r.push([]),f)for(i=0;i<f.length;i++){for(j=f[i],d(j.leftCol),k=a('<td class="fc-event-container"/>').append(j.el),j.leftCol!=j.rightCol?k.attr("colspan",j.rightCol-j.leftCol+1):r[e][g]=k;g<=j.rightCol;)q[e][g]=k,p[e][g]=j,g++;h.append(k)}d(l),this.bookendCells(h,"eventSkeleton"),o.append(h)}return{row:b,tbodyEl:o,cellMatrix:q,segMatrix:p,segLevels:m,segs:c}},buildSegLevels:function(a){var b,c,d,e=[];for(a.sort(ja),b=0;b<a.length;b++){for(c=a[b],d=0;d<e.length&&la(c,e[d]);d++);c.level=d,(e[d]||(e[d]=[])).push(c)}for(d=0;d<e.length;d++)e[d].sort(ma);return e},groupSegRows:function(a){var b,c=[];for(b=0;b<this.rowCnt;b++)c.push([]);for(b=0;b<a.length;b++)c[a[b].row].push(a[b]);return c}}),bb.mixin({segPopover:null,popoverSegs:null,destroySegPopover:function(){this.segPopover&&this.segPopover.hide()},limitRows:function(a){var b,c,d=this.rowStructs||[];for(b=0;b<d.length;b++)this.unlimitRow(b),c=a?"number"==typeof a?a:this.computeRowLevelLimit(b):!1,c!==!1&&this.limitRow(b,c)},computeRowLevelLimit:function(a){var b,c,d=this.rowEls.eq(a),e=d.height(),f=this.rowStructs[a].tbodyEl.children();for(b=0;b<f.length;b++)if(c=f.eq(b).removeClass("fc-limited"),c.position().top+c.outerHeight()>e)return b;return!1},limitRow:function(b,c){function d(d){for(;d>x;)e=u.getCell(b,x),k=u.getCellSegs(e,c),k.length&&(n=g[c-1][x],t=u.renderMoreLink(e,k),s=a("<div/>").append(t),n.append(s),w.push(s[0])),x++}var e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u=this,v=this.rowStructs[b],w=[],x=0;if(c&&c<v.segLevels.length){for(f=v.segLevels[c-1],g=v.cellMatrix,h=v.tbodyEl.children().slice(c).addClass("fc-limited").get(),i=0;i<f.length;i++){for(j=f[i],d(j.leftCol),m=[],l=0;x<=j.rightCol;)e=this.getCell(b,x),k=this.getCellSegs(e,c),m.push(k),l+=k.length,x++;if(l){for(n=g[c-1][j.leftCol],o=n.attr("rowspan")||1,p=[],q=0;q<m.length;q++)r=a('<td class="fc-more-cell"/>').attr("rowspan",o),k=m[q],e=this.getCell(b,j.leftCol+q),t=this.renderMoreLink(e,[j].concat(k)),s=a("<div/>").append(t),r.append(s),p.push(r[0]),w.push(r[0]);n.addClass("fc-limited").after(a(p)),h.push(n[0])}}d(this.colCnt),v.moreEls=a(w),v.limitedEls=a(h)}},unlimitRow:function(a){var b=this.rowStructs[a];b.moreEls&&(b.moreEls.remove(),b.moreEls=null),b.limitedEls&&(b.limitedEls.removeClass("fc-limited"),b.limitedEls=null)},renderMoreLink:function(b,c){var d=this,e=this.view;return a('<a class="fc-more"/>').text(this.getMoreLinkText(c.length)).on("click",function(f){var g=e.opt("eventLimitClick"),h=b.start,i=a(this),j=d.getCellDayEl(b),k=d.getCellSegs(b),l=d.resliceDaySegs(k,h),m=d.resliceDaySegs(c,h);"function"==typeof g&&(g=e.trigger("eventLimitClick",null,{date:h,dayEl:j,moreEl:i,segs:l,hiddenSegs:m},f)),"popover"===g?d.showSegPopover(b,i,l):"string"==typeof g&&e.calendar.zoomTo(h,g)})},showSegPopover:function(a,b,c){var d,e,f=this,g=this.view,h=b.parent();d=1==this.rowCnt?g.el:this.rowEls.eq(a.row),e={className:"fc-more-popover",content:this.renderSegPopoverContent(a,c),parentEl:this.el,top:d.offset().top,autoHide:!0,viewportConstrain:g.opt("popoverViewportConstrain"),hide:function(){f.segPopover.destroy(),f.segPopover=null,f.popoverSegs=null}},this.isRTL?e.right=h.offset().left+h.outerWidth()+1:e.left=h.offset().left-1,this.segPopover=new Wa(e),this.segPopover.show()},renderSegPopoverContent:function(b,c){var d,e=this.view,f=e.opt("theme"),g=b.start.format(e.opt("dayPopoverFormat")),h=a('<div class="fc-header '+e.widgetHeaderClass+'"><span class="fc-close '+(f?"ui-icon ui-icon-closethick":"fc-icon fc-icon-x")+'"></span><span class="fc-title">'+L(g)+'</span><div class="fc-clear"/></div><div class="fc-body '+e.widgetContentClass+'"><div class="fc-event-container"></div></div>'),i=h.find(".fc-event-container");for(c=this.renderFgSegEls(c,!0),this.popoverSegs=c,d=0;d<c.length;d++)c[d].cell=b,i.append(c[d].el);return h},resliceDaySegs:function(b,c){var d=a.map(b,function(a){return a.event}),e=c.clone().stripTime(),f=e.clone().add(1,"days"),g={start:e,end:f};return this.eventsToSegs(d,function(a){var b=x(a,g);return b?[b]:[]})},getMoreLinkText:function(a){var b=this.view.opt("eventLimitText");return"function"==typeof b?b(a):"+"+a+" "+b},getCellSegs:function(a,b){for(var c,d=this.rowStructs[a.row].segMatrix,e=b||0,f=[];e<d.length;)c=d[e][a.col],c&&f.push(c),e++;return f}});var cb=ab.extend({slotDuration:null,snapDuration:null,minTime:null,maxTime:null,axisFormat:null,dayEls:null,slatEls:null,slatTops:null,helperEl:null,businessHourSegs:null,constructor:function(){ab.apply(this,arguments),this.processOptions()},render:function(){this.el.html(this.renderHtml()),this.dayEls=this.el.find(".fc-day"),this.slatEls=this.el.find(".fc-slats tr"),this.computeSlatTops(),this.renderBusinessHours(),ab.prototype.render.call(this)},renderBusinessHours:function(){var a=this.view.calendar.getBusinessHoursEvents();this.businessHourSegs=this.renderFill("businessHours",this.eventsToSegs(a),"bgevent")},renderHtml:function(){return'<div class="fc-bg"><table>'+this.rowHtml("slotBg")+'</table></div><div class="fc-slats"><table>'+this.slatRowHtml()+"</table></div>"},slotBgCellHtml:function(a){return this.bgCellHtml(a)},slatRowHtml:function(){for(var a,c,d,e=this.view,f=this.isRTL,g="",h=this.slotDuration.asMinutes()%15===0,i=b.duration(+this.minTime);i<this.maxTime;)a=this.start.clone().time(i),
4
  c=a.minutes(),d='<td class="fc-axis fc-time '+e.widgetContentClass+'" '+e.axisStyleAttr()+">"+(h&&c?"":"<span>"+L(a.format(this.axisFormat))+"</span>")+"</td>",g+="<tr "+(c?'class="fc-minor"':"")+">"+(f?"":d)+'<td class="'+e.widgetContentClass+'"/>'+(f?d:"")+"</tr>",i.add(this.slotDuration);return g},processOptions:function(){var a=this.view,c=a.opt("slotDuration"),d=a.opt("snapDuration");c=b.duration(c),d=d?b.duration(d):c,this.slotDuration=c,this.snapDuration=d,this.minTime=b.duration(a.opt("minTime")),this.maxTime=b.duration(a.opt("maxTime")),this.axisFormat=a.opt("axisFormat")||a.opt("smallTimeFormat")},computeColHeadFormat:function(){return this.colCnt>1?this.view.opt("dayOfMonthFormat"):"dddd"},computeEventTimeFormat:function(){return this.view.opt("noMeridiemTimeFormat")},computeDisplayEventEnd:function(){return!0},updateCells:function(){var a,b=this.view,c=[];for(a=this.start.clone();a.isBefore(this.end);)c.push({day:a.clone()}),a.add(1,"day"),a=b.skipHiddenDays(a);this.isRTL&&c.reverse(),this.colData=c,this.colCnt=c.length,this.rowCnt=Math.ceil((this.maxTime-this.minTime)/this.snapDuration)},computeCellRange:function(a){var b=this.computeSnapTime(a.row),c=this.view.calendar.rezoneDate(a.day).time(b),d=c.clone().add(this.snapDuration);return{start:c,end:d}},getColEl:function(a){return this.dayEls.eq(a)},computeSnapTime:function(a){return b.duration(this.minTime+this.snapDuration*a)},rangeToSegs:function(a){var b,c,d,e,f=this.colCnt,g=[];for(a={start:a.start.clone().stripZone(),end:a.end.clone().stripZone()},c=0;f>c;c++)d=this.colData[c].day,e={start:d.clone().time(this.minTime),end:d.clone().time(this.maxTime)},b=x(a,e),b&&(b.col=c,g.push(b));return g},resize:function(){this.computeSlatTops(),this.updateSegVerticals()},computeRowCoords:function(){var a,b,c=this.el.offset().top,d=[];for(a=0;a<this.rowCnt;a++)b={top:c+this.computeTimeTop(this.computeSnapTime(a))},a>0&&(d[a-1].bottom=b.top),d.push(b);return b.bottom=b.top+this.computeTimeTop(this.computeSnapTime(a)),d},computeDateTop:function(a,c){return this.computeTimeTop(b.duration(a.clone().stripZone()-c.clone().stripTime()))},computeTimeTop:function(a){var b,c,d,e,f=(a-this.minTime)/this.slotDuration;return f=Math.max(0,f),f=Math.min(this.slatEls.length,f),b=Math.floor(f),c=f-b,d=this.slatTops[b],c?(e=this.slatTops[b+1],d+(e-d)*c):d},computeSlatTops:function(){var b,c=[];this.slatEls.each(function(d,e){b=a(e).position().top,c.push(b)}),c.push(b+this.slatEls.last().outerHeight()),this.slatTops=c},renderDrag:function(a,b){var c;return b?(this.renderRangeHelper(a,b),c=this.view.opt("dragOpacity"),void 0!==c&&this.helperEl.css("opacity",c),!0):void this.renderHighlight(this.view.calendar.ensureVisibleEventRange(a))},destroyDrag:function(){this.destroyHelper(),this.destroyHighlight()},renderEventResize:function(a,b){this.renderRangeHelper(a,b)},destroyEventResize:function(){this.destroyHelper()},renderHelper:function(b,c){var d,e,f,g,h=this.eventsToSegs([b]);for(h=this.renderFgSegEls(h),d=this.renderSegTable(h),e=0;e<h.length;e++)f=h[e],c&&c.col===f.col&&(g=c.el,f.el.css({left:g.css("left"),right:g.css("right"),"margin-left":g.css("margin-left"),"margin-right":g.css("margin-right")}));this.helperEl=a('<div class="fc-helper-skeleton"/>').append(d).appendTo(this.el)},destroyHelper:function(){this.helperEl&&(this.helperEl.remove(),this.helperEl=null)},renderSelection:function(a){this.view.opt("selectHelper")?this.renderRangeHelper(a):this.renderHighlight(a)},destroySelection:function(){this.destroyHelper(),this.destroyHighlight()},renderFill:function(b,c,d){var e,f,g,h,i,j,k,l,m,n;if(c.length){for(c=this.renderFillSegEls(b,c),e=this.groupSegCols(c),d=d||b.toLowerCase(),f=a('<div class="fc-'+d+'-skeleton"><table><tr/></table></div>'),g=f.find("tr"),h=0;h<e.length;h++)if(i=e[h],j=a("<td/>").appendTo(g),i.length)for(k=a('<div class="fc-'+d+'-container"/>').appendTo(j),l=this.colData[h].day,m=0;m<i.length;m++)n=i[m],k.append(n.el.css({top:this.computeDateTop(n.start,l),bottom:-this.computeDateTop(n.end,l)}));this.bookendCells(g,b),this.el.append(f),this.elsByFill[b]=f}return c}});cb.mixin({eventSkeletonEl:null,renderFgSegs:function(b){return b=this.renderFgSegEls(b),this.el.append(this.eventSkeletonEl=a('<div class="fc-content-skeleton"/>').append(this.renderSegTable(b))),b},destroyFgSegs:function(a){this.eventSkeletonEl&&(this.eventSkeletonEl.remove(),this.eventSkeletonEl=null)},renderSegTable:function(b){var c,d,e,f,g,h,i=a("<table><tr/></table>"),j=i.find("tr");for(c=this.groupSegCols(b),this.computeSegVerticals(b),f=0;f<c.length;f++){for(g=c[f],na(g),h=a('<div class="fc-event-container"/>'),d=0;d<g.length;d++)e=g[d],e.el.css(this.generateSegPositionCss(e)),e.bottom-e.top<30&&e.el.addClass("fc-short"),h.append(e.el);j.append(a("<td/>").append(h))}return this.bookendCells(j,"eventSkeleton"),i},updateSegVerticals:function(){var a,b=(this.segs||[]).concat(this.businessHourSegs||[]);for(this.computeSegVerticals(b),a=0;a<b.length;a++)b[a].el.css(this.generateSegVerticalCss(b[a]))},computeSegVerticals:function(a){var b,c;for(b=0;b<a.length;b++)c=a[b],c.top=this.computeDateTop(c.start,c.start),c.bottom=this.computeDateTop(c.end,c.start)},fgSegHtml:function(a,b){var c,d,e,f=this.view,g=a.event,h=f.isEventDraggable(g),i=!b&&a.isEnd&&f.isEventResizable(g),j=this.getSegClasses(a,h,i),k=this.getEventSkinCss(g);return j.unshift("fc-time-grid-event"),f.isMultiDayEvent(g)?(a.isStart||a.isEnd)&&(c=this.getEventTimeText(a),d=this.getEventTimeText(a,"LT"),e=this.getEventTimeText({start:a.start})):(c=this.getEventTimeText(g),d=this.getEventTimeText(g,"LT"),e=this.getEventTimeText({start:g.start})),'<a class="'+j.join(" ")+'"'+(g.url?' href="'+L(g.url)+'"':"")+(k?' style="'+k+'"':"")+'><div class="fc-content">'+(c?'<div class="fc-time" data-start="'+L(e)+'" data-full="'+L(d)+'"><span>'+L(c)+"</span></div>":"")+(g.title?'<div class="fc-title">'+L(g.title)+"</div>":"")+'</div><div class="fc-bg"/>'+(i?'<div class="fc-resizer"/>':"")+"</a>"},generateSegPositionCss:function(a){var b,c,d=this.view.opt("slotEventOverlap"),e=a.backwardCoord,f=a.forwardCoord,g=this.generateSegVerticalCss(a);return d&&(f=Math.min(1,e+2*(f-e))),this.isRTL?(b=1-f,c=e):(b=e,c=1-f),g.zIndex=a.level+1,g.left=100*b+"%",g.right=100*c+"%",d&&a.forwardPressure&&(g[this.isRTL?"marginLeft":"marginRight"]=20),g},generateSegVerticalCss:function(a){return{top:a.top,bottom:-a.bottom}},groupSegCols:function(a){var b,c=[];for(b=0;b<this.colCnt;b++)c.push([]);for(b=0;b<a.length;b++)c[a[b].col].push(a[b]);return c}});var db=Ca.View=ca.extend({type:null,name:null,title:null,calendar:null,options:null,coordMap:null,el:null,start:null,end:null,intervalStart:null,intervalEnd:null,intervalDuration:null,intervalUnit:null,isSelected:!1,scrollerEl:null,scrollTop:null,widgetHeaderClass:null,widgetContentClass:null,highlightStateClass:null,nextDayThreshold:null,isHiddenDayHash:null,documentMousedownProxy:null,constructor:function(c,d,e){this.calendar=c,this.options=d,this.type=this.name=e,this.nextDayThreshold=b.duration(this.opt("nextDayThreshold")),this.initTheming(),this.initHiddenDays(),this.documentMousedownProxy=a.proxy(this,"documentMousedown"),this.initialize()},initialize:function(){},opt:function(b){var c;return c=this.options[b],void 0!==c?c:(c=this.calendar.options[b],a.isPlainObject(c)&&!e(b)?y(c,this.type):c)},trigger:function(a,b){var c=this.calendar;return c.trigger.apply(c,[a,b||this].concat(Array.prototype.slice.call(arguments,2),[this]))},setDate:function(a){this.setRange(this.computeRange(a))},setRange:function(b){a.extend(this,b),this.updateTitle()},computeRange:function(a){var c,d,e=b.duration(this.opt("duration")||this.constructor.duration||{days:1}),f=B(e),g=a.clone().startOf(f),h=g.clone().add(e);return/year|month|week|day/.test(f)?(g.stripTime(),h.stripTime()):(g.hasTime()||(g=this.calendar.rezoneDate(g)),h.hasTime()||(h=this.calendar.rezoneDate(h))),c=g.clone(),c=this.skipHiddenDays(c),d=h.clone(),d=this.skipHiddenDays(d,-1,!0),{intervalDuration:e,intervalUnit:f,intervalStart:g,intervalEnd:h,start:c,end:d}},computePrevDate:function(a){return this.massageCurrentDate(a.clone().startOf(this.intervalUnit).subtract(this.intervalDuration),-1)},computeNextDate:function(a){return this.massageCurrentDate(a.clone().startOf(this.intervalUnit).add(this.intervalDuration))},massageCurrentDate:function(a,c){return this.intervalDuration<=b.duration({days:1})&&this.isHiddenDay(a)&&(a=this.skipHiddenDays(a,c),a.startOf("day")),a},updateTitle:function(){this.title=this.computeTitle()},computeTitle:function(){return this.formatRange({start:this.intervalStart,end:this.intervalEnd},this.opt("titleFormat")||this.computeTitleFormat(),this.opt("titleRangeSeparator"))},computeTitleFormat:function(){return"year"==this.intervalUnit?"YYYY":"month"==this.intervalUnit?this.opt("monthYearFormat"):this.intervalDuration.as("days")>1?"ll":"LL"},formatRange:function(a,b,c){var d=a.end;return d.hasTime()||(d=d.clone().subtract(1)),Z(a.start,d,b,c,this.opt("isRTL"))},renderView:function(){this.render(),this.updateSize(),this.initializeScroll(),this.trigger("viewRender",this,this,this.el),a(document).on(m(),this.documentMousedownProxy)},render:function(){},destroyView:function(){this.unselect(),this.destroyViewEvents(),this.destroy(),this.trigger("viewDestroy",this,this,this.el),a(document).off(m(),this.documentMousedownProxy)},destroy:function(){this.el.empty()},initTheming:function(){var a=this.opt("theme")?"ui":"fc";this.widgetHeaderClass=a+"-widget-header",this.widgetContentClass=a+"-widget-content",this.highlightStateClass=a+"-state-highlight"},updateSize:function(a){a&&this.recordScroll(),this.updateHeight(),this.updateWidth()},updateWidth:function(){},updateHeight:function(){var a=this.calendar;this.setHeight(a.getSuggestedViewHeight(),a.isHeightAuto())},setHeight:function(a,b){},computeScrollerHeight:function(a,b){var c,d;return b=b||this.scrollerEl,c=this.el.add(b),c.css({position:"relative",left:-1}),d=this.el.outerHeight()-b.height(),c.css({position:"",left:""}),a-d},initializeScroll:function(){},recordScroll:function(){this.scrollerEl&&(this.scrollTop=this.scrollerEl.scrollTop())},restoreScroll:function(){null!==this.scrollTop&&this.scrollerEl.scrollTop(this.scrollTop)},renderViewEvents:function(a){this.renderEvents(a),this.eventSegEach(function(a){this.trigger("eventAfterRender",a.event,a.event,a.el)}),this.trigger("eventAfterAllRender")},renderEvents:function(){},destroyViewEvents:function(){this.eventSegEach(function(a){this.trigger("eventDestroy",a.event,a.event,a.el)}),this.destroyEvents()},destroyEvents:function(){},resolveEventEl:function(b,c){var d=this.trigger("eventRender",b,b,c);return d===!1?c=null:d&&d!==!0&&(c=a(d)),c},showEvent:function(a){this.eventSegEach(function(a){a.el.css("visibility","")},a)},hideEvent:function(a){this.eventSegEach(function(a){a.el.css("visibility","hidden")},a)},eventSegEach:function(a,b){var c,d=this.getEventSegs();for(c=0;c<d.length;c++)b&&d[c].event._id!==b._id||a.call(this,d[c])},getEventSegs:function(){return[]},isEventDraggable:function(a){var b=a.source||{};return K(a.startEditable,b.startEditable,this.opt("eventStartEditable"),a.editable,b.editable,this.opt("editable"))},reportEventDrop:function(a,b,c,d){var e=this.calendar,f=e.mutateEvent(a,b),g=function(){f.undo(),e.reportEventChange()};this.triggerEventDrop(a,f.dateDelta,g,c,d),e.reportEventChange()},triggerEventDrop:function(a,b,c,d,e){this.trigger("eventDrop",d[0],a,b,c,e,{})},reportExternalDrop:function(b,c,d,e,f){var g,h,i=b.eventProps;i&&(g=a.extend({},i,c),h=this.calendar.renderEvent(g,b.stick)[0]),this.triggerExternalDrop(h,c,d,e,f)},triggerExternalDrop:function(a,b,c,d,e){this.trigger("drop",c[0],b.start,d,e),a&&this.trigger("eventReceive",null,a)},renderDrag:function(a,b){},destroyDrag:function(){},isEventResizable:function(a){var b=a.source||{};return K(a.durationEditable,b.durationEditable,this.opt("eventDurationEditable"),a.editable,b.editable,this.opt("editable"))},reportEventResize:function(a,b,c,d){var e=this.calendar,f=e.mutateEvent(a,{end:b}),g=function(){f.undo(),e.reportEventChange()};this.triggerEventResize(a,f.durationDelta,g,c,d),e.reportEventChange()},triggerEventResize:function(a,b,c,d,e){this.trigger("eventResize",d[0],a,b,c,e,{})},select:function(a,b){this.unselect(b),this.renderSelection(a),this.reportSelection(a,b)},renderSelection:function(a){},reportSelection:function(a,b){this.isSelected=!0,this.trigger("select",null,a.start,a.end,b)},unselect:function(a){this.isSelected&&(this.isSelected=!1,this.destroySelection(),this.trigger("unselect",null,a))},destroySelection:function(){},documentMousedown:function(b){var c;this.isSelected&&this.opt("unselectAuto")&&w(b)&&(c=this.opt("unselectCancel"),c&&a(b.target).closest(c).length||this.unselect(b))},initHiddenDays:function(){var b,c=this.opt("hiddenDays")||[],d=[],e=0;for(this.opt("weekends")===!1&&c.push(0,6),b=0;7>b;b++)(d[b]=-1!==a.inArray(b,c))||e++;if(!e)throw"invalid hiddenDays";this.isHiddenDayHash=d},isHiddenDay:function(a){return b.isMoment(a)&&(a=a.day()),this.isHiddenDayHash[a]},skipHiddenDays:function(a,b,c){var d=a.clone();for(b=b||1;this.isHiddenDayHash[(d.day()+(c?b:0)+7)%7];)d.add(b,"days");return d},computeDayRange:function(a){var b,c=a.start.clone().stripTime(),d=a.end,e=null;return d&&(e=d.clone().stripTime(),b=+d.time(),b&&b>=this.nextDayThreshold&&e.add(1,"days")),(!d||c>=e)&&(e=c.clone().add(1,"days")),{start:c,end:e}},isMultiDayEvent:function(a){var b=this.computeDayRange(a);return b.end.diff(b.start,"days")>1}});Ca.sourceNormalizers=[],Ca.sourceFetchers=[];var eb={dataType:"json",cache:!1},fb=1,gb=Da.basic=db.extend({dayGrid:null,dayNumbersVisible:!1,weekNumbersVisible:!1,weekNumberWidth:null,headRowEl:null,initialize:function(){this.dayGrid=new bb(this),this.coordMap=this.dayGrid.coordMap},setRange:function(a){db.prototype.setRange.call(this,a),this.dayGrid.breakOnWeeks=/year|month|week/.test(this.intervalUnit),this.dayGrid.setRange(a)},computeRange:function(a){var b=db.prototype.computeRange.call(this,a);return/year|month/.test(b.intervalUnit)&&(b.start.startOf("week"),b.start=this.skipHiddenDays(b.start),b.end.weekday()&&(b.end.add(1,"week").startOf("week"),b.end=this.skipHiddenDays(b.end,-1,!0))),b},render:function(){this.dayNumbersVisible=this.dayGrid.rowCnt>1,this.weekNumbersVisible=this.opt("weekNumbers"),this.dayGrid.numbersVisible=this.dayNumbersVisible||this.weekNumbersVisible,this.el.addClass("fc-basic-view").html(this.renderHtml()),this.headRowEl=this.el.find("thead .fc-row"),this.scrollerEl=this.el.find(".fc-day-grid-container"),this.dayGrid.coordMap.containerEl=this.scrollerEl,this.dayGrid.el=this.el.find(".fc-day-grid"),this.dayGrid.render(this.hasRigidRows())},destroy:function(){this.dayGrid.destroy(),db.prototype.destroy.call(this)},renderHtml:function(){return'<table><thead><tr><td class="'+this.widgetHeaderClass+'">'+this.dayGrid.headHtml()+'</td></tr></thead><tbody><tr><td class="'+this.widgetContentClass+'"><div class="fc-day-grid-container"><div class="fc-day-grid"/></div></td></tr></tbody></table>'},headIntroHtml:function(){return this.weekNumbersVisible?'<th class="fc-week-number '+this.widgetHeaderClass+'" '+this.weekNumberStyleAttr()+"><span>"+L(this.opt("weekNumberTitle"))+"</span></th>":void 0},numberIntroHtml:function(a){return this.weekNumbersVisible?'<td class="fc-week-number" '+this.weekNumberStyleAttr()+"><span>"+this.calendar.calculateWeekNumber(this.dayGrid.getCell(a,0).start)+"</span></td>":void 0},dayIntroHtml:function(){return this.weekNumbersVisible?'<td class="fc-week-number '+this.widgetContentClass+'" '+this.weekNumberStyleAttr()+"></td>":void 0},introHtml:function(){return this.weekNumbersVisible?'<td class="fc-week-number" '+this.weekNumberStyleAttr()+"></td>":void 0},numberCellHtml:function(a){var b,c=a.start;return this.dayNumbersVisible?(b=this.dayGrid.getDayClasses(c),b.unshift("fc-day-number"),'<td class="'+b.join(" ")+'" data-date="'+c.format()+'">'+c.date()+"</td>"):"<td/>"},weekNumberStyleAttr:function(){return null!==this.weekNumberWidth?'style="width:'+this.weekNumberWidth+'px"':""},hasRigidRows:function(){var a=this.opt("eventLimit");return a&&"number"!=typeof a},updateWidth:function(){this.weekNumbersVisible&&(this.weekNumberWidth=r(this.el.find(".fc-week-number")))},setHeight:function(a,b){var c,d=this.opt("eventLimit");t(this.scrollerEl),h(this.headRowEl),this.dayGrid.destroySegPopover(),d&&"number"==typeof d&&this.dayGrid.limitRows(d),c=this.computeScrollerHeight(a),this.setGridHeight(c,b),d&&"number"!=typeof d&&this.dayGrid.limitRows(d),!b&&s(this.scrollerEl,c)&&(g(this.headRowEl,v(this.scrollerEl)),c=this.computeScrollerHeight(a),this.scrollerEl.height(c),this.restoreScroll())},setGridHeight:function(a,b){b?q(this.dayGrid.rowEls):p(this.dayGrid.rowEls,a,!0)},renderEvents:function(a){this.dayGrid.renderEvents(a),this.updateHeight()},getEventSegs:function(){return this.dayGrid.getEventSegs()},destroyEvents:function(){this.recordScroll(),this.dayGrid.destroyEvents()},renderDrag:function(a,b){return this.dayGrid.renderDrag(a,b)},destroyDrag:function(){this.dayGrid.destroyDrag()},renderSelection:function(a){this.dayGrid.renderSelection(a)},destroySelection:function(){this.dayGrid.destroySelection()}});c({fixedWeekCount:!0});var hb=Da.month=gb.extend({computeRange:function(a){var b,c=gb.prototype.computeRange.call(this,a);return this.isFixedWeeks()&&(b=Math.ceil(c.end.diff(c.start,"weeks",!0)),c.end.add(6-b,"weeks")),c},setGridHeight:function(a,b){b=b||"variable"===this.opt("weekMode"),b&&(a*=this.rowCnt/6),p(this.dayGrid.rowEls,a,!b)},isFixedWeeks:function(){var a=this.opt("weekMode");return a?"fixed"===a:this.opt("fixedWeekCount")}});hb.duration={months:1},Da.basicWeek={type:"basic",duration:{weeks:1}},Da.basicDay={type:"basic",duration:{days:1}},c({allDaySlot:!0,allDayText:"all-day",scrollTime:"06:00:00",slotDuration:"00:30:00",minTime:"00:00:00",maxTime:"24:00:00",slotEventOverlap:!0});var ib=5;Da.agenda=db.extend({timeGrid:null,dayGrid:null,axisWidth:null,noScrollRowEls:null,bottomRuleEl:null,bottomRuleHeight:null,initialize:function(){this.timeGrid=new cb(this),this.opt("allDaySlot")?(this.dayGrid=new bb(this),this.coordMap=new Ya([this.dayGrid.coordMap,this.timeGrid.coordMap])):this.coordMap=this.timeGrid.coordMap},setRange:function(a){db.prototype.setRange.call(this,a),this.timeGrid.setRange(a),this.dayGrid&&this.dayGrid.setRange(a)},render:function(){this.el.addClass("fc-agenda-view").html(this.renderHtml()),this.scrollerEl=this.el.find(".fc-time-grid-container"),this.timeGrid.coordMap.containerEl=this.scrollerEl,this.timeGrid.el=this.el.find(".fc-time-grid"),this.timeGrid.render(),this.bottomRuleEl=a('<hr class="'+this.widgetHeaderClass+'"/>').appendTo(this.timeGrid.el),this.dayGrid&&(this.dayGrid.el=this.el.find(".fc-day-grid"),this.dayGrid.render(),this.dayGrid.bottomCoordPadding=this.dayGrid.el.next("hr").outerHeight()),this.noScrollRowEls=this.el.find(".fc-row:not(.fc-scroller *)")},destroy:function(){this.timeGrid.destroy(),this.dayGrid&&this.dayGrid.destroy(),db.prototype.destroy.call(this)},renderHtml:function(){return'<table><thead><tr><td class="'+this.widgetHeaderClass+'">'+this.timeGrid.headHtml()+'</td></tr></thead><tbody><tr><td class="'+this.widgetContentClass+'">'+(this.dayGrid?'<div class="fc-day-grid"/><hr class="'+this.widgetHeaderClass+'"/>':"")+'<div class="fc-time-grid-container"><div class="fc-time-grid"/></div></td></tr></tbody></table>'},headIntroHtml:function(){var a,b,c,d;return this.opt("weekNumbers")?(a=this.timeGrid.getCell(0).start,b=this.calendar.calculateWeekNumber(a),c=this.opt("weekNumberTitle"),d=this.opt("isRTL")?b+c:c+b,'<th class="fc-axis fc-week-number '+this.widgetHeaderClass+'" '+this.axisStyleAttr()+"><span>"+L(d)+"</span></th>"):'<th class="fc-axis '+this.widgetHeaderClass+'" '+this.axisStyleAttr()+"></th>"},dayIntroHtml:function(){return'<td class="fc-axis '+this.widgetContentClass+'" '+this.axisStyleAttr()+"><span>"+(this.opt("allDayHtml")||L(this.opt("allDayText")))+"</span></td>"},slotBgIntroHtml:function(){return'<td class="fc-axis '+this.widgetContentClass+'" '+this.axisStyleAttr()+"></td>"},introHtml:function(){return'<td class="fc-axis" '+this.axisStyleAttr()+"></td>"},axisStyleAttr:function(){return null!==this.axisWidth?'style="width:'+this.axisWidth+'px"':""},updateSize:function(a){a&&this.timeGrid.resize(),db.prototype.updateSize.call(this,a)},updateWidth:function(){this.axisWidth=r(this.el.find(".fc-axis"))},setHeight:function(a,b){var c,d;null===this.bottomRuleHeight&&(this.bottomRuleHeight=this.bottomRuleEl.outerHeight()),this.bottomRuleEl.hide(),this.scrollerEl.css("overflow",""),t(this.scrollerEl),h(this.noScrollRowEls),this.dayGrid&&(this.dayGrid.destroySegPopover(),c=this.opt("eventLimit"),c&&"number"!=typeof c&&(c=ib),c&&this.dayGrid.limitRows(c)),b||(d=this.computeScrollerHeight(a),s(this.scrollerEl,d)?(g(this.noScrollRowEls,v(this.scrollerEl)),d=this.computeScrollerHeight(a),this.scrollerEl.height(d),this.restoreScroll()):(this.scrollerEl.height(d).css("overflow","hidden"),this.bottomRuleEl.show()))},initializeScroll:function(){function a(){c.scrollerEl.scrollTop(e)}var c=this,d=b.duration(this.opt("scrollTime")),e=this.timeGrid.computeTimeTop(d);e=Math.ceil(e),e&&e++,a(),setTimeout(a,0)},renderEvents:function(a){var b,c,d=[],e=[],f=[];for(c=0;c<a.length;c++)a[c].allDay?d.push(a[c]):e.push(a[c]);b=this.timeGrid.renderEvents(e),this.dayGrid&&(f=this.dayGrid.renderEvents(d)),this.updateHeight()},getEventSegs:function(){return this.timeGrid.getEventSegs().concat(this.dayGrid?this.dayGrid.getEventSegs():[])},destroyEvents:function(){this.recordScroll(),this.timeGrid.destroyEvents(),this.dayGrid&&this.dayGrid.destroyEvents()},renderDrag:function(a,b){return a.start.hasTime()?this.timeGrid.renderDrag(a,b):this.dayGrid?this.dayGrid.renderDrag(a,b):void 0},destroyDrag:function(){this.timeGrid.destroyDrag(),this.dayGrid&&this.dayGrid.destroyDrag()},renderSelection:function(a){a.start.hasTime()||a.end.hasTime()?this.timeGrid.renderSelection(a):this.dayGrid&&this.dayGrid.renderSelection(a)},destroySelection:function(){this.timeGrid.destroySelection(),this.dayGrid&&this.dayGrid.destroySelection()}}),Da.agendaWeek={type:"agenda",duration:{weeks:1}},Da.agendaDay={type:"agenda",duration:{days:1}};var jb=Da.list=db.extend({dayGrid:null,weekNumberWidth:null,headRowEl:null,defultEventLimit:5,viewDateOnLeft:!1,initialize:function(){this.dayGrid=new bb(this),this.coordMap=this.dayGrid.coordMap},setRange:function(a){db.prototype.setRange.call(this,a),this.dayGrid.breakOnWeeks=/year|month|week/.test(this.intervalUnit),this.dayGrid.setRange(a)},render:function(){this.dayGrid.colCnt=1,this.dayGrid.rowCnt=this.dayGrid.cellDates.length,this.dayGrid.numbersVisible=!0,this.opt("viewDateOnLeft")?(this.viewDateOnLeft=this.opt("viewDateOnLeft"),this.el.removeClass("fc-display-date-above")):this.el.addClass("fc-display-date-above"),this.el.addClass("fc-basic-view").html(this.renderHtml()),this.headRowEl=this.el.find("thead .fc-row"),this.scrollerEl=this.el.find(".fc-day-grid-container"),this.dayGrid.coordMap.containerEl=this.scrollerEl,this.dayGrid.el=this.el.find(".fc-day-grid"),this.dayGrid.render(this.hasRigidRows()),db.prototype.render.call(this)},destroy:function(){this.dayGrid.destroy(),db.prototype.destroy.call(this)},renderHtml:function(){return'<table><tbody><tr><td class="'+this.widgetContentClass+'"><div class="fc-day-grid-container"><div class="fc-day-grid"/></div></td></tr></tbody></table>'},headIntroHtml:function(){return this.viewDateOnLeft===!0?'<th class="fc-week-number '+this.widgetHeaderClass+'" '+this.weekNumberStyleAttr()+"><span></span></th>":""},numberIntroHtml:function(a){return this.viewDateOnLeft===!0?'<td class="fc-week-number" '+this.weekNumberStyleAttr()+"><span>"+this.dayGrid.getCell(a,0).start.format("ddd MMM D, YYYY")+"</span></td>":""},dayIntroHtml:function(){return this.viewDateOnLeft===!0?'<td class="fc-week-number '+this.widgetContentClass+'" '+this.weekNumberStyleAttr()+"></td>":""},introHtml:function(){return this.viewDateOnLeft===!0?'<td class="fc-week-number" '+this.weekNumberStyleAttr()+"></td>":""},numberCellHtml:function(a){if(this.viewDateOnLeft===!0)return"<td/>";var b,c=a.start;return b=this.dayGrid.getDayClasses(c),b.unshift("fc-day-number"),'<td class="'+b.join(" ")+'" data-date="'+c.format()+'"><span class="fc-list-header-left">'+c.format("dddd")+'</span><span class="fc-list-header-right">'+c.format("MMM D")+"</span></td>"},weekNumberStyleAttr:function(){return null!==this.weekNumberWidth?'style="width:'+this.weekNumberWidth+'px"':""},hasRigidRows:function(){var a=this.opt("eventLimit");return a===!0&&(a=this.defultEventLimit),a&&"number"!=typeof a},updateWidth:function(){this.weekNumberWidth=r(this.el.find(".fc-week-number"))},setHeight:function(a,b){var c=this.opt("eventLimit");c===!0&&(c=this.defultEventLimit);var d;t(this.scrollerEl),h(this.headRowEl),this.dayGrid.destroySegPopover(),c&&"number"==typeof c&&this.dayGrid.limitRows(c),d=this.computeScrollerHeight(a),this.setGridHeight(d,b),c&&"number"!=typeof c&&this.dayGrid.limitRows(c),!b&&s(this.scrollerEl,d)&&(g(this.headRowEl,v(this.scrollerEl)),d=this.computeScrollerHeight(a),this.scrollerEl.height(d),this.restoreScroll())},setGridHeight:function(a,b){b?q(this.dayGrid.rowEls):p(this.dayGrid.rowEls,a,!0)},renderEvents:function(a){this.dayGrid.renderEvents(a),this.updateHeight(),db.prototype.renderEvents.call(this,a)},getSegs:function(){return this.dayGrid.getSegs()},destroyEvents:function(){db.prototype.destroyEvents.call(this),this.recordScroll(),this.dayGrid.destroyEvents()},renderDrag:function(a,b,c){return this.dayGrid.renderDrag(a,b,c)},destroyDrag:function(){this.dayGrid.destroyDrag()},renderSelection:function(a,b){this.dayGrid.renderSelection(a,b)},destroySelection:function(){this.dayGrid.destroySelection()}});jb.duration={months:1},Da.listMonth={type:"list",duration:{months:1}},Da.listWeek={type:"list",duration:{weeks:1}},Da.listDay={type:"list",duration:{days:1}}});
1
+ /*! event-organiser 3.6.0-0-g619ade6 2017-11-25 22:52 */
2
  !function(a){"function"==typeof define&&define.amd?define(["jquery","moment"],a):a(jQuery,moment)}(function(a,b){function c(a){d(za,a)}function d(b){function c(c,f){a.isPlainObject(f)&&a.isPlainObject(b[c])&&!e(c)?b[c]=d({},b[c],f):void 0!==f&&(b[c]=f)}for(var f=1;f<arguments.length;f++)a.each(arguments[f],c);return b}function e(a){return/(Time|Duration)$/.test(a)}function f(a){var c=b.localeData||b.langData;return c.call(b,a)||c.call(b,"en")}function g(a,b){b.left&&a.css({"border-left-width":1,"margin-left":b.left-1}),b.right&&a.css({"border-right-width":1,"margin-right":b.right-1})}function h(a){a.css({"margin-left":"","margin-right":"","border-left-width":"","border-right-width":""})}function i(){a("body").addClass("fc-not-allowed")}function j(){a("body").removeClass("fc-not-allowed")}function k(a){return"pointerdown"==a.type||"pointerup"==a.type||"pointermove"==a.type?"touch"===a.originalEvent.pointerType?!0:!1:"touchstart"==a.type||"touchmove"==a.type||"touchend"==a.type||"touchcancel"==a.type?!0:!1}function l(a){var b={x:0,y:0};if("pointerdown"==a.type||"pointerup"==a.type||"pointermove"==a.type||"mousedown"==a.type||"mouseup"==a.type||"mousemove"==a.type||"mouseover"==a.type||"mouseout"==a.type||"mouseenter"==a.type||"mouseleave"==a.type)b.x=a.pageX,b.y=a.pageY;else if(k(a)){var c=a.originalEvent.touches[0]||a.originalEvent.changedTouches[0];b.x=c.pageX,b.y=c.pageY}return b}function m(){return window.navigator.msPointerEnabled?"pointerdown":!Ka&&"ontouchstart"in document.documentElement?"touchstart":"mousedown"}function n(){return window.navigator.msPointerEnabled?"pointerup":!Ka&&"ontouchstart"in document.documentElement?"touchend":"mouseup"}function o(){return window.navigator.msPointerEnabled?"pointermove":!Ka&&"ontouchstart"in document.documentElement?"touchmove":"mousemove"}function p(b,c,d){var e=Math.floor(c/b.length),f=Math.floor(c-e*(b.length-1)),g=[],h=[],i=[],j=0;q(b),b.each(function(c,d){var k=c===b.length-1?f:e,l=a(d).outerHeight(!0);k>l?(g.push(d),h.push(l),i.push(a(d).height())):j+=l}),d&&(c-=j,e=Math.floor(c/g.length),f=Math.floor(c-e*(g.length-1))),a(g).each(function(b,c){var d=b===g.length-1?f:e,j=h[b],k=i[b],l=d-(j-k);d>j&&a(c).height(l)})}function q(a){a.height("")}function r(b){var c=0;return b.find("> *").each(function(b,d){var e=a(d).outerWidth();e>c&&(c=e)}),c++,b.width(c),c}function s(a,b){return a.height(b).addClass("fc-scroller"),a[0].scrollHeight-1>a[0].clientHeight?!0:(t(a),!1)}function t(a){a.height("").removeClass("fc-scroller")}function u(b){var c=b.css("position"),d=b.parents().filter(function(){var b=a(this);return/(auto|scroll)/.test(b.css("overflow")+b.css("overflow-y")+b.css("overflow-x"))}).eq(0);return"fixed"!==c&&d.length?d:a(b[0].ownerDocument||document)}function v(a){var b=a.offset().left,c=b+a.width(),d=a.children(),e=d.offset().left,f=e+d.outerWidth();return{left:e-b,right:c-f}}function w(a){return k(a)?!0:1==a.which&&!a.ctrlKey}function x(a,b){var c,d,e,f,g=a.start,h=a.end,i=b.start,j=b.end;return h>i&&j>g?(g>=i?(c=g.clone(),e=!0):(c=i.clone(),e=!1),j>=h?(d=h.clone(),f=!0):(d=j.clone(),f=!1),{start:c,end:d,isStart:e,isEnd:f}):void 0}function y(a,b){if(a=a||{},void 0!==a[b])return a[b];for(var c,d=b.split(/(?=[A-Z])/),e=d.length-1;e>=0;e--)if(c=a[d[e].toLowerCase()],void 0!==c)return c;return a["default"]}function z(a,c){return b.duration({days:a.clone().stripTime().diff(c.clone().stripTime(),"days"),ms:a.time()-c.time()})}function A(a,c){return b.duration({days:a.clone().stripTime().diff(c.clone().stripTime(),"days")})}function B(a,b){var c,d,e;for(c=0;c<Na.length&&(d=Na[c],e=C(d,a,b),!(e>=1&&P(e)));c++);return d}function C(a,c,d){return null!=d?d.diff(c,a,!0):b.isDuration(c)?c.as(a):c.end.diff(c.start,a,!0)}function D(a){return"[object Date]"===Object.prototype.toString.call(a)||a instanceof Date}function E(a){return/^\d+\:\d+(?:\:\d+\.?(?:\d{3})?)?$/.test(a)}function F(a){var b=function(){};return b.prototype=a,new b}function G(a,b){for(var c in a)H(a,c)&&(b[c]=a[c])}function H(a,b){return Oa.call(a,b)}function I(b){return/undefined|null|boolean|number|string/.test(a.type(b))}function J(b,c,d){if(a.isFunction(b)&&(b=[b]),b){var e,f;for(e=0;e<b.length;e++)f=b[e].apply(c,d)||f;return f}}function K(){for(var a=0;a<arguments.length;a++)if(void 0!==arguments[a])return arguments[a]}function L(a){return(a+"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/'/g,"&#039;").replace(/"/g,"&quot;").replace(/\n/g,"<br />")}function M(a){return a.replace(/&.*?;/g,"")}function N(a){return a.charAt(0).toUpperCase()+a.slice(1)}function O(a,b){return a-b}function P(a){return a%1===0}function Q(a,b){var c,d,e,f,g=function(){var h=+new Date-f;b>h&&h>0?c=setTimeout(g,b-h):(c=null,a.apply(e,d),c||(e=d=null))};return function(){e=this,d=arguments,f=+new Date,c||(c=setTimeout(g,b))}}function R(c,d,e){var f,g,h,i,j=c[0],k=1==c.length&&"string"==typeof j;return b.isMoment(j)?(i=b.apply(null,c),T(j,i)):D(j)||void 0===j?i=b.apply(null,c):(f=!1,g=!1,k?Pa.test(j)?(j+="-01",c=[j],f=!0,g=!0):(h=Qa.exec(j))&&(f=!h[5],g=!0):a.isArray(j)&&(g=!0),i=d||f?b.utc.apply(b,c):b.apply(null,c),f?(i._ambigTime=!0,i._ambigZone=!0):e&&(g?i._ambigZone=!0:k&&i.zone(j))),i._fullCalendar=!0,i}function S(a,c){var d,e,f=!1,g=!1,h=a.length,i=[];for(d=0;h>d;d++)e=a[d],b.isMoment(e)||(e=Ca.moment.parseZone(e)),f=f||e._ambigTime,g=g||e._ambigZone,i.push(e);for(d=0;h>d;d++)e=i[d],c||!f||e._ambigTime?g&&!e._ambigZone&&(i[d]=e.clone().stripZone()):i[d]=e.clone().stripTime();return i}function T(a,b){a._ambigTime?b._ambigTime=!0:b._ambigTime&&(b._ambigTime=!1),a._ambigZone?b._ambigZone=!0:b._ambigZone&&(b._ambigZone=!1)}function U(a,b){a.year(b[0]||0).month(b[1]||0).date(b[2]||0).hours(b[3]||0).minutes(b[4]||0).seconds(b[5]||0).milliseconds(b[6]||0)}function V(a,b){return Sa.format.call(a,b)}function W(a,b){return X(a,aa(b))}function X(a,b){var c,d="";for(c=0;c<b.length;c++)d+=Y(a,b[c]);return d}function Y(a,b){var c,d;return"string"==typeof b?b:(c=b.token)?Ta[c]?Ta[c](a):V(a,c):b.maybe&&(d=X(a,b.maybe),d.match(/[1-9]/))?d:""}function Z(a,b,c,d,e){var f;return a=Ca.moment.parseZone(a),b=Ca.moment.parseZone(b),f=(a.localeData||a.lang).call(a),c=f.longDateFormat(c)||c,d=d||" - ",$(a,b,aa(c),d,e)}function $(a,b,c,d,e){var f,g,h,i,j="",k="",l="",m="",n="";for(g=0;g<c.length&&(f=_(a,b,c[g]),f!==!1);g++)j+=f;for(h=c.length-1;h>g&&(f=_(a,b,c[h]),f!==!1);h--)k=f+k;for(i=g;h>=i;i++)l+=Y(a,c[i]),m+=Y(b,c[i]);return(l||m)&&(n=e?m+d+l:l+d+m),j+n+k}function _(a,b,c){var d,e;return"string"==typeof c?c:(d=c.token)&&(e=Ua[d.charAt(0)],e&&a.isSame(b,e))?V(a,d):!1}function aa(a){return a in Va?Va[a]:Va[a]=ba(a)}function ba(a){for(var b,c=[],d=/\[([^\]]*)\]|\(([^\)]*)\)|(LT|(\w)\4*o?)|([^\w\[\(]+)/g;b=d.exec(a);)b[1]?c.push(b[1]):b[2]?c.push({maybe:ba(b[2])}):b[3]?c.push({token:b[3]}):b[5]&&c.push(b[5]);return c}function ca(){}function da(a,b){return a||b?a&&b?a.grid===b.grid&&a.row===b.row&&a.col===b.col:!1:!0}function ea(a){var b=ga(a);return"background"===b||"inverse-background"===b}function fa(a){return"inverse-background"===ga(a)}function ga(a){return K((a.source||{}).rendering,a.rendering)}function ha(a){var b,c,d={};for(b=0;b<a.length;b++)c=a[b],(d[c._id]||(d[c._id]=[])).push(c);return d}function ia(a,b){return a.eventStartMS-b.eventStartMS}function ja(a,b){return a.eventStartMS-b.eventStartMS||b.eventDurationMS-a.eventDurationMS||b.event.allDay-a.event.allDay||(a.event.title||"").localeCompare(b.event.title)}function ka(c){var d,e,f,g,h=Ca.dataAttrPrefix;return h&&(h+="-"),d=c.data(h+"event")||null,d&&(d="object"==typeof d?a.extend({},d):{},e=d.start,null==e&&(e=d.time),f=d.duration,g=d.stick,delete d.start,delete d.time,delete d.duration,delete d.stick),null==e&&(e=c.data(h+"start")),null==e&&(e=c.data(h+"time")),null==f&&(f=c.data(h+"duration")),null==g&&(g=c.data(h+"stick")),e=null!=e?b.duration(e):null,f=null!=f?b.duration(f):null,g=Boolean(g),{eventProps:d,startTime:e,duration:f,stick:g}}function la(a,b){var c,d;for(c=0;c<b.length;c++)if(d=b[c],d.leftCol<=a.rightCol&&d.rightCol>=a.leftCol)return!0;return!1}function ma(a,b){return a.leftCol-b.leftCol}function na(a){var b,c,d;if(a.sort(ja),b=oa(a),pa(b),c=b[0]){for(d=0;d<c.length;d++)qa(c[d]);for(d=0;d<c.length;d++)ra(c[d],0,0)}}function oa(a){var b,c,d,e=[];for(b=0;b<a.length;b++){for(c=a[b],d=0;d<e.length&&sa(c,e[d]).length;d++);c.level=d,(e[d]||(e[d]=[])).push(c)}return e}function pa(a){var b,c,d,e,f;for(b=0;b<a.length;b++)for(c=a[b],d=0;d<c.length;d++)for(e=c[d],e.forwardSegs=[],f=b+1;f<a.length;f++)sa(e,a[f],e.forwardSegs)}function qa(a){var b,c,d=a.forwardSegs,e=0;if(void 0===a.forwardPressure){for(b=0;b<d.length;b++)c=d[b],qa(c),e=Math.max(e,1+c.forwardPressure);a.forwardPressure=e}}function ra(a,b,c){var d,e=a.forwardSegs;if(void 0===a.forwardCoord)for(e.length?(e.sort(ua),ra(e[0],b+1,c),a.forwardCoord=e[0].backwardCoord):a.forwardCoord=1,a.backwardCoord=a.forwardCoord-(a.forwardCoord-c)/(b+1),d=0;d<e.length;d++)ra(e[d],0,a.forwardCoord)}function sa(a,b,c){c=c||[];for(var d=0;d<b.length;d++)ta(a,b[d])&&c.push(b[d]);return c}function ta(a,b){return a.bottom>b.top&&a.top<b.bottom}function ua(a,b){return b.forwardPressure-a.forwardPressure||(a.backwardCoord||0)-(b.backwardCoord||0)||ja(a,b)}function va(c,e){function g(a){return(a.locale||a.lang).call(a,$.lang).humanize()}function h(a){da?k()&&(r(),l(a)):i()}function i(){ea=$.theme?"ui":"fc",c.addClass("fc"),$.isRTL?c.addClass("fc-rtl"):c.addClass("fc-ltr"),$.theme?c.addClass("ui-widget"):c.addClass("fc-unthemed"),da=a("<div class='fc-view-container'/>").prependTo(c),ba=new wa(Y,$),ca=ba.render(),ca&&c.prepend(ca),l($.defaultView),$.handleWindowResize&&(ha=Q(t,$.windowResizeDelay),a(window).resize(ha))}function j(){fa&&fa.destroyView(),ba.destroy(),da.remove(),c.removeClass("fc fc-ltr fc-rtl fc-unthemed ui-widget"),a(window).unbind("resize",ha)}function k(){return c.is(":visible")}function l(b){na++,fa&&b&&fa.type!==b&&(ba.deactivateButton(fa.type),S(),fa.start&&fa.destroyView(),fa.el.remove(),fa=null),!fa&&b&&(fa=m(b),fa.el=a("<div class='fc-view fc-"+b+"-view' />").appendTo(da),ba.activateButton(b)),fa&&(ia=fa.massageCurrentDate(ia),fa.start&&ia.isWithin(fa.intervalStart,fa.intervalEnd)||k()&&(S(),fa.start&&fa.destroyView(),fa.setDate(ia),fa.renderView(),T(),C(),D(),x())),T(),na--}function m(a){var b=n(a);return new b["class"](Y,b.options,a)}function n(c){function d(b){"function"==typeof b?f=b:"object"==typeof b&&a.extend(e,b)}var e,f,h,i,j,k=$.defaultButtonText||{},l=$.buttonText||{},m=$.views||{},n=c,o=[],p=!1;if(ma[c])return ma[c];for(;n&&!f;)e={},d(Da[n]),d(m[n]),o.unshift(e),n=e.type;return o.unshift({}),e=a.extend.apply(a,o),f?(h=e.duration||f.duration,h&&(h=b.duration(h),i=B(h),p=1===h.as(i)),p&&m[i]&&(e=a.extend({},m[i],e)),j=l[c]||(p?l[i]:null)||k[c]||(p?k[i]:null)||e.buttonText||f.buttonText||(h?g(h):null)||c,ma[c]={"class":f,options:e,buttonText:j}):void 0}function o(a){return Boolean(n(a))}function p(a){var b=n(a);return b?b.buttonText:void 0}function q(a){return k()?(a&&s(),na++,fa.updateSize(!0),na--,!0):void 0}function r(){k()&&s()}function s(){ga="number"==typeof $.contentHeight?$.contentHeight:"number"==typeof $.height?$.height-(ca?ca.outerHeight(!0):0):"undefined"!=typeof $.height&&"parent"===$.height?a(la).parent().height()-(ca?ca.outerHeight(!0):0):Math.round(da.width()/Math.max($.aspectRatio,.5))}function t(a){!na&&a.target===window&&fa.start&&q(!0)&&fa.trigger("windowResize",la)}function u(){w(),y()}function v(){k()&&(S(),fa.destroyViewEvents(),fa.renderViewEvents(oa),T())}function w(){S(),fa.destroyViewEvents(),T()}function x(){!$.lazyFetching||ja(fa.start,fa.end)?y():v()}function y(){ka(fa.start,fa.end)}function z(a){oa=a,v()}function A(){v()}function C(){ba.updateTitle(fa.title)}function D(){var a=Y.getNow();a.isWithin(fa.intervalStart,fa.intervalEnd)?ba.disableButton("today"):ba.enableButton("today")}function E(a,b){a=Y.moment(a),b=b?Y.moment(b):a.hasTime()?a.clone().add(Y.defaultTimedEventDuration):a.clone().add(Y.defaultAllDayEventDuration),fa.select({start:a,end:b})}function G(){fa&&fa.unselect()}function H(){ia=fa.computePrevDate(ia),l()}function I(){ia=fa.computeNextDate(ia),l()}function J(){ia.add(-1,"years"),l()}function K(){ia.add(1,"years"),l()}function L(){ia=Y.getNow(),l()}function M(a){ia=Y.moment(a),l()}function O(a){ia.add(b.duration(a)),l()}function P(a,b){var c,d;b&&o(b)||(b=b||"day",c=ba.getViewsWithButtons().join(" "),d=c.match(new RegExp("\\w+"+N(b))),d||(d=c.match(/\w+Day/)),b=d?d[0]:"agendaDay"),ia=a,l(b)}function R(){return ia.clone()}function S(){da.css({width:"100%",height:da.height(),overflow:"hidden"})}function T(){da.css({width:"",height:"",overflow:""})}function U(){return Y}function V(){return fa}function W(a,b){return void 0===b?$[a]:void(("height"==a||"contentHeight"==a||"aspectRatio"==a)&&($[a]=b,q(!0)))}function X(a,b){return $[a]?$[a].apply(b||la,Array.prototype.slice.call(arguments,2)):void 0}var Y=this;e=e||{};var Z,$=d({},za,e);Z=$.lang in Ea?Ea[$.lang]:Ea[za.lang],Z&&($=d({},za,Z,e)),$.isRTL&&($=d({},za,Ba,Z||{},e)),Y.options=$,Y.render=h,Y.destroy=j,Y.refetchEvents=u,Y.reportEvents=z,Y.reportEventChange=A,Y.rerenderEvents=v,Y.changeView=l,Y.select=E,Y.unselect=G,Y.prev=H,Y.next=I,Y.prevYear=J,Y.nextYear=K,Y.today=L,Y.gotoDate=M,Y.incrementDate=O,Y.zoomTo=P,Y.getDate=R,Y.getCalendar=U,Y.getView=V,Y.option=W,Y.trigger=X,Y.isValidViewType=o,Y.getViewButtonText=p;var _=F(f($.lang));if($.monthNames&&(_._months=$.monthNames),$.monthNamesShort&&(_._monthsShort=$.monthNamesShort),$.dayNames&&(_._weekdays=$.dayNames),$.dayNamesShort&&(_._weekdaysShort=$.dayNamesShort),null!=$.firstDay){var aa=F(_._week);aa.dow=$.firstDay,_._week=aa}Y.defaultAllDayEventDuration=b.duration($.defaultAllDayEventDuration),Y.defaultTimedEventDuration=b.duration($.defaultTimedEventDuration),Y.moment=function(){var a;return"local"===$.timezone?(a=Ca.moment.apply(null,arguments),a.hasTime()&&a.local()):a="UTC"===$.timezone?Ca.moment.utc.apply(null,arguments):Ca.moment.parseZone.apply(null,arguments),"_locale"in a?a._locale=_:a._lang=_,a},Y.getIsAmbigTimezone=function(){return"local"!==$.timezone&&"UTC"!==$.timezone},Y.rezoneDate=function(a){return Y.moment(a.toArray())},Y.getNow=function(){var a=$.now;return"function"==typeof a&&(a=a()),Y.moment(a)},Y.calculateWeekNumber=function(a){var b=$.weekNumberCalculation;return"function"==typeof b?b(a):"local"===b?a.week():"ISO"===b.toUpperCase()?a.isoWeek():void 0},Y.getEventEnd=function(a){return a.end?a.end.clone():Y.getDefaultEventEnd(a.allDay,a.start)},Y.getDefaultEventEnd=function(a,b){var c=b.clone();return a?c.stripTime().add(Y.defaultAllDayEventDuration):c.add(Y.defaultTimedEventDuration),Y.getIsAmbigTimezone()&&c.stripZone(),c},xa.call(Y,$);var ba,ca,da,ea,fa,ga,ha,ia,ja=Y.isFetchNeeded,ka=Y.fetchEvents,la=c[0],ma={},na=0,oa=[];ia=null!=$.defaultDate?Y.moment($.defaultDate):Y.getNow(),Y.getSuggestedViewHeight=function(){return void 0===ga&&r(),ga},Y.isHeightAuto=function(){return"auto"===$.contentHeight||"auto"===$.height}}function wa(b,c){function d(){var b=c.header;return n=c.theme?"ui":"fc",b?o=a("<div class='fc-toolbar'/>").append(f("left")).append(f("right")).append(f("center")).append('<div class="fc-clear"/>'):void 0}function e(){o.remove()}function f(d){var e=a('<div class="fc-'+d+'"/>'),f=c.header[d];return f&&a.each(f.split(" "),function(d){var f,g=a(),h=!0;a.each(this.split(","),function(d,e){var f,i,j,k,l,m,o,q,r;if("title"==e)g=g.add(a('<h2 aria-live="polite">&nbsp;</h2>')),h=!1;else if(a.isFunction(c.customButtons[e])){var s=a(c.customButtons[e](c));g=g.add(s)}else b[e]?f=function(){b[e]()}:b.isValidViewType(e)&&(f=function(){b.changeView(e)},p.push(e),l=b.getViewButtonText(e)),f&&(i=y(c.themeButtonIcons,e),j=y(c.buttonIcons,e),k=y(c.defaultButtonText,e),m=y(c.buttonText,e),o=l||m?L(l||m):i&&c.theme?"<span class='ui-icon ui-icon-"+i+"'></span>":j&&!c.theme?"<span class='fc-icon fc-icon-"+j+"'></span>":L(k||e),q=["fc-"+e+"-button",n+"-button",n+"-state-default"],r=a('<button type="button" class="'+q.join(" ")+'">'+o+"</button>").click(function(){r.hasClass(n+"-state-disabled")||(f(),(r.hasClass(n+"-state-active")||r.hasClass(n+"-state-disabled"))&&r.removeClass(n+"-state-hover"))}).mousedown(function(){r.not("."+n+"-state-active").not("."+n+"-state-disabled").addClass(n+"-state-down")}).mouseup(function(){r.removeClass(n+"-state-down")}).hover(function(){r.not("."+n+"-state-active").not("."+n+"-state-disabled").addClass(n+"-state-hover")},function(){r.removeClass(n+"-state-hover").removeClass(n+"-state-down")}),g=g.add(r))}),h&&g.first().addClass(n+"-corner-left").end().last().addClass(n+"-corner-right").end(),g.length>1||h?(f=a("<div/>"),h&&f.addClass("fc-button-group"),f.append(g),e.append(f)):e.append(g)}),e}function g(a){o.find("h2").text(a)}function h(a){o.find(".fc-"+a+"-button").addClass(n+"-state-active")}function i(a){o.find(".fc-"+a+"-button").removeClass(n+"-state-active")}function j(a){o.find(".fc-"+a+"-button").attr("disabled","disabled").addClass(n+"-state-disabled")}function k(a){o.find(".fc-"+a+"-button").removeAttr("disabled").removeClass(n+"-state-disabled")}function l(){return p}var m=this;m.render=d,m.destroy=e,m.updateTitle=g,m.activateButton=h,m.deactivateButton=i,m.disableButton=j,m.enableButton=k,m.getViewsWithButtons=l;var n,o=a(),p=[]}function xa(c){function d(a,b){return!Q||a.clone().stripZone()<Q.clone().stripZone()||b.clone().stripZone()>R.clone().stripZone()}function e(a,b){Q=a,R=b,$=[];var c=++X,d=W.length;Y=d;for(var e=0;d>e;e++)f(W[e],c)}function f(b,c){g(b,function(d){var e,f,g,h=a.isArray(b.events);if(c==X){if(d)for(e=0;e<d.length;e++)f=d[e],g=h?f:u(f,b),g&&$.push.apply($,y(g));Y--,Y||U($)}})}function g(b,d){var e,f,h=Ca.sourceFetchers;for(e=0;e<h.length;e++){if(f=h[e].call(P,b,Q.clone(),R.clone(),c.timezone,d),f===!0)return;if("object"==typeof f)return void g(f,d)}var i=b.events;if(i)a.isFunction(i)?(s(),i.call(P,Q.clone(),R.clone(),c.timezone,function(a){d(a),t()})):a.isArray(i)?d(i):d();else{var j=b.url;if(j){var k,l=b.success,m=b.error,n=b.complete;k=a.isFunction(b.data)?b.data():b.data;var o=a.extend({},k||{}),p=K(b.startParam,c.startParam),q=K(b.endParam,c.endParam),r=K(b.timezoneParam,c.timezoneParam);p&&(o[p]=Q.format()),q&&(o[q]=R.format()),c.timezone&&"local"!=c.timezone&&(o[r]=c.timezone),s(),a.ajax(a.extend({},eb,b,{data:o,success:function(b){b=b||[];var c=J(l,this,arguments);a.isArray(c)&&(b=c),d(b)},error:function(){J(m,this,arguments),d()},complete:function(){J(n,this,arguments),t()}}))}else d()}}function h(a){var b=i(a);b&&(W.push(b),Y++,f(b,X))}function i(b){var c,d,e=Ca.sourceNormalizers;if(a.isFunction(b)||a.isArray(b)?c={events:b}:"string"==typeof b?c={url:b}:"object"==typeof b&&(c=a.extend({},b)),c){for(c.className?"string"==typeof c.className&&(c.className=c.className.split(/\s+/)):c.className=[],a.isArray(c.events)&&(c.origArray=c.events,c.events=a.map(c.events,function(a){return u(a,c)})),d=0;d<e.length;d++)e[d].call(P,c);return c}}function j(b){W=a.grep(W,function(a){return!k(a,b)}),$=a.grep($,function(a){return!k(a.source,b)}),U($)}function k(a,b){return a&&b&&l(a)==l(b)}function l(a){return("object"==typeof a?a.origArray||a.googleCalendarId||a.url||a.events:null)||a}function m(a){a.start=P.moment(a.start),a.end?a.end=P.moment(a.end):a.end=null,B(a,n(a)),U($)}function n(b){var c={};return a.each(b,function(a,b){o(a)&&void 0!==b&&I(b)&&(c[a]=b)}),c}function o(a){return!/^_|^(id|allDay|start|end)$/.test(a)}function p(a,b){var c,d,e,f=u(a);if(f){for(c=y(f),d=0;d<c.length;d++)e=c[d],e.source||(b&&(V.events.push(e),e.source=V),$.push(e));return U($),c}return[]}function q(b){var c,d;for(null==b?b=function(){return!0}:a.isFunction(b)||(c=b+"",b=function(a){return a._id==c}),$=a.grep($,b,!0),d=0;d<W.length;d++)a.isArray(W[d].events)&&(W[d].events=a.grep(W[d].events,b,!0));U($)}function r(b){return a.isFunction(b)?a.grep($,b):null!=b?(b+="",a.grep($,function(a){return a._id==b})):$}function s(){Z++||S("loading",null,!0,T())}function t(){--Z||S("loading",null,!1,T())}function u(d,e){var f,g,h,i={};if(c.eventDataTransform&&(d=c.eventDataTransform(d)),e&&e.eventDataTransform&&(d=e.eventDataTransform(d)),a.extend(i,d),e&&(i.source=e),i._id=d._id||(void 0===d.id?"_fc"+fb++:d.id+""),d.className?"string"==typeof d.className?i.className=d.className.split(/\s+/):i.className=d.className:i.className=[],f=d.start||d.date,g=d.end,E(f)&&(f=b.duration(f)),E(g)&&(g=b.duration(g)),d.dow||b.isDuration(f)||b.isDuration(g))i.start=f?b.duration(f):null,i.end=g?b.duration(g):null,i._recurring=!0;else{if(f&&(f=P.moment(f),!f.isValid()))return!1;g&&(g=P.moment(g),g.isValid()||(g=null)),h=d.allDay,void 0===h&&(h=K(e?e.allDayDefault:void 0,c.allDayDefault)),v(f,g,h,i)}return i}function v(a,b,c,d){d.start=a,d.end=b,d.allDay=c,w(d),ya(d)}function w(a){null==a.allDay&&(a.allDay=!(a.start.hasTime()||a.end&&a.end.hasTime())),a.allDay?(a.start.stripTime(),a.end&&a.end.stripTime()):(a.start.hasTime()||(a.start=P.rezoneDate(a.start)),a.end&&!a.end.hasTime()&&(a.end=P.rezoneDate(a.end))),a.end&&!a.end.isAfter(a.start)&&(a.end=null),a.end||(c.forceEventDuration?a.end=P.getDefaultEventEnd(a.allDay,a.start):a.end=null)}function x(a){var b;return a.end||(b=a.allDay,null==b&&(b=!a.start.hasTime()),a={start:a.start,end:P.getDefaultEventEnd(b,a.start)}),a}function y(b,c,d){var e,f,g,h,i,j,k,l,m,n=[];if(c=c||Q,d=d||R,b)if(b._recurring){if(f=b.dow)for(e={},g=0;g<f.length;g++)e[f[g]]=!0;for(h=c.clone().stripTime();h.isBefore(d);)(!e||e[h.day()])&&(i=b.start,j=b.end,k=h.clone(),l=null,i&&(k=k.time(i)),j&&(l=h.clone().time(j)),m=a.extend({},b),v(k,l,!i&&!j,m),n.push(m)),h.add(1,"days")}else n.push(b);return n}function B(b,c){var d,e,f,g,h={};return c=c||{},c.start||(c.start=b.start.clone()),void 0===c.end&&(c.end=b.end?b.end.clone():null),null==c.allDay&&(c.allDay=b.allDay),w(c),d=null!==b._end&&null===c.end,e=c.allDay?A(c.start,b._start):z(c.start,b._start),!d&&c.end&&(f=z(c.end,c.start).subtract(z(b._end||P.getDefaultEventEnd(b._allDay,b._start),b._start))),a.each(c,function(a,b){o(a)&&void 0!==b&&(h[a]=b)}),g=C(r(b._id),d,c.allDay,e,f,h),{dateDelta:e,durationDelta:f,undo:g}}function C(b,c,d,e,f,g){var h=P.getIsAmbigTimezone(),i=[];return e&&!e.valueOf()&&(e=null),f&&!f.valueOf()&&(f=null),a.each(b,function(b,j){var k,l;k={start:j.start.clone(),end:j.end?j.end.clone():null,allDay:j.allDay},a.each(g,function(a){k[a]=j[a]}),l={start:j._start,end:j._end,allDay:j._allDay},c&&(l.end=null),l.allDay=d,w(l),e&&(l.start.add(e),l.end&&l.end.add(e)),f&&(l.end||(l.end=P.getDefaultEventEnd(l.allDay,l.start)),l.end.add(f)),h&&!l.allDay&&(e||f)&&(l.start.stripZone(),l.end&&l.end.stripZone()),a.extend(j,g,l),ya(j),i.push(function(){a.extend(j,k),ya(j)})}),function(){for(var a=0;a<i.length;a++)i[a]()}}function D(){var b,d=c.businessHours,e={className:"fc-nonbusiness",start:"09:00",end:"17:00",dow:[1,2,3,4,5],rendering:"inverse-background"},f=P.getView();return d&&(b="object"==typeof d?a.extend({},e,d):e),b?y(u(b),f.start,f.end):[]}function F(a,b){var d=b.source||{},e=K(b.constraint,d.constraint,c.eventConstraint),f=K(b.overlap,d.overlap,c.eventOverlap);return a=x(a),L(a,e,f,b)}function G(a){return L(a,c.selectConstraint,c.selectOverlap)}function H(b,c){var d,e;return c&&(d=a.extend({},c,b),e=y(u(d))[0]),e?F(b,e):(b=x(b),G(b))}function L(a,b,c,d){var e,f,g,h,i;if(a={start:a.start.clone().stripZone(),end:a.end.clone().stripZone()},null!=b){for(e=M(b),f=!1,g=0;g<e.length;g++)if(N(e[g],a)){f=!0;break}if(!f)return!1}for(g=0;g<$.length;g++)if(h=$[g],(!d||d._id!==h._id)&&O(h,a)){if(c===!1)return!1;if("function"==typeof c&&!c(h,d))return!1;if(d){if(i=K(h.overlap,(h.source||{}).overlap),i===!1)return!1;if("function"==typeof i&&!i(d,h))return!1}}return!0}function M(a){return"businessHours"===a?D():"object"==typeof a?y(u(a)):r(a)}function N(a,b){var c=a.start.clone().stripZone(),d=P.getEventEnd(a).stripZone();return b.start>=c&&b.end<=d}function O(a,b){var c=a.start.clone().stripZone(),d=P.getEventEnd(a).stripZone();return b.start<d&&b.end>c}var P=this;P.isFetchNeeded=d,P.fetchEvents=e,P.addEventSource=h,P.removeEventSource=j,P.updateEvent=m,P.renderEvent=p,P.removeEvents=q,P.clientEvents=r,P.mutateEvent=B,P.normalizeEventDateProps=w,P.ensureVisibleEventRange=x;var Q,R,S=P.trigger,T=P.getView,U=P.reportEvents,V={events:[]},W=[V],X=0,Y=0,Z=0,$=[];a.each((c.events?[c.events]:[]).concat(c.eventSources||[]),function(a,b){var c=i(b);c&&W.push(c)}),P.getBusinessHoursEvents=D,P.isEventRangeAllowed=F,P.isSelectionRangeAllowed=G,P.isExternalDropRangeAllowed=H}function ya(a){a._allDay=a.allDay,a._start=a.start.clone(),a._end=a.end?a.end.clone():null}var za={titleRangeSeparator:" — ",monthYearFormat:"MMMM YYYY",defaultTimedEventDuration:"02:00:00",defaultAllDayEventDuration:{days:1},forceEventDuration:!1,nextDayThreshold:"09:00:00",defaultView:"month",aspectRatio:1.35,header:{left:"title",center:"",right:"today prev,next"},weekends:!0,weekNumbers:!1,weekNumberTitle:"W",weekNumberCalculation:"local",lazyFetching:!0,startParam:"start",endParam:"end",timezoneParam:"timezone",timezone:!1,isRTL:!1,defaultButtonText:{prev:"prev",next:"next",prevYear:"prev year",nextYear:"next year",today:"today",month:"month",week:"week",day:"day"},buttonIcons:{prev:"left-single-arrow",next:"right-single-arrow",prevYear:"left-double-arrow",nextYear:"right-double-arrow"},theme:!1,themeButtonIcons:{prev:"circle-triangle-w",next:"circle-triangle-e",prevYear:"seek-prev",nextYear:"seek-next"},dragOpacity:.75,dragRevertDuration:500,dragScroll:!0,unselectAuto:!0,dropAccept:"*",eventLimit:!1,eventLimitText:"more",eventLimitClick:"popover",dayPopoverFormat:"LL",handleWindowResize:!0,windowResizeDelay:200},Aa={dayPopoverFormat:"dddd, MMMM D"},Ba={header:{left:"next,prev today",center:"",right:"title"},buttonIcons:{prev:"right-single-arrow",next:"left-single-arrow",prevYear:"right-double-arrow",nextYear:"left-double-arrow"},themeButtonIcons:{prev:"circle-triangle-e",next:"circle-triangle-w",nextYear:"seek-prev",prevYear:"seek-next"}},Ca=a.fullCalendar={version:"2.2.7"},Da=Ca.views={};a.fn.fullCalendar=function(b){var c=Array.prototype.slice.call(arguments,1),d=this;return this.each(function(e,f){var g,h=a(f),i=h.data("fullCalendar");"string"==typeof b?i&&a.isFunction(i[b])&&(g=i[b].apply(i,c),e||(d=g),"destroy"===b&&h.removeData("fullCalendar")):i||(i=new va(h,b),h.data("fullCalendar",i),i.render())}),d};var Ea=Ca.langs={};Ca.datepickerLang=function(b,c,d){var e=Ea[b]||(Ea[b]={});e.isRTL=d.isRTL,e.weekNumberTitle=d.weekHeader,a.each(Fa,function(a,b){e[a]=b(d)}),a.datepicker&&(a.datepicker.regional[c]=a.datepicker.regional[b]=d,a.datepicker.regional.en=a.datepicker.regional[""],a.datepicker.setDefaults(d))},Ca.lang=function(b,c){var e,g;e=Ea[b]||(Ea[b]={}),c&&d(e,c),g=f(b),a.each(Ga,function(a,b){void 0===e[a]&&(e[a]=b(g,e))}),za.lang=b};var Fa={defaultButtonText:function(a){return{prev:M(a.prevText),next:M(a.nextText),today:M(a.currentText)}},monthYearFormat:function(a){return a.showMonthAfterYear?"YYYY["+a.yearSuffix+"] MMMM":"MMMM YYYY["+a.yearSuffix+"]"}},Ga={dayOfMonthFormat:function(a,b){var c=a.longDateFormat("l");return c=c.replace(/^Y+[^\w\s]*|[^\w\s]*Y+$/g,""),b.isRTL?c+=" ddd":c="ddd "+c,c},smallTimeFormat:function(a){return a.longDateFormat("LT").replace(":mm","(:mm)").replace(/(\Wmm)$/,"($1)").replace(/\s*a$/i,"a")},extraSmallTimeFormat:function(a){return a.longDateFormat("LT").replace(":mm","(:mm)").replace(/(\Wmm)$/,"($1)").replace(/\s*a$/i,"t")},noMeridiemTimeFormat:function(a){return a.longDateFormat("LT").replace(/\s*a$/i,"")}};Ca.lang("en",Aa),Ca.intersectionToSeg=x,Ca.applyAll=J,Ca.debounce=Q;var Ha,Ia,Ja,Ka=-1!==navigator.userAgent.toLowerCase().indexOf("phantom"),La=!1,Ma=["sun","mon","tue","wed","thu","fri","sat"],Na=["year","month","week","day","hour","minute","second","millisecond"],Oa={}.hasOwnProperty,Pa=/^\s*\d{4}-\d\d$/,Qa=/^\s*\d{4}-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?)?$/,Ra=b.fn,Sa=a.extend({},Ra);Ca.moment=function(){return R(arguments)},Ca.moment.utc=function(){var a=R(arguments,!0);return a.hasTime()&&a.utc(),a},Ca.moment.parseZone=function(){return R(arguments,!0,!0)},Ra.clone=function(){var a=Sa.clone.apply(this,arguments);return T(this,a),this._fullCalendar&&(a._fullCalendar=!0),a},Ra.time=function(a){if(!this._fullCalendar)return Sa.time.apply(this,arguments);if(null==a)return b.duration({hours:this.hours(),minutes:this.minutes(),seconds:this.seconds(),milliseconds:this.milliseconds()});this._ambigTime=!1,b.isDuration(a)||b.isMoment(a)||(a=b.duration(a));var c=0;return b.isDuration(a)&&(c=24*Math.floor(a.asDays())),this.hours(c+a.hours()).minutes(a.minutes()).seconds(a.seconds()).milliseconds(a.milliseconds())},Ra.stripTime=function(){var a;return this._ambigTime||(a=this.toArray(),this.utc(),Ia(this,a.slice(0,3)),this._ambigTime=!0,this._ambigZone=!0),this},Ra.hasTime=function(){return!this._ambigTime},Ra.stripZone=function(){var a,b;return this._ambigZone||(a=this.toArray(),b=this._ambigTime,this.utc(),Ia(this,a),this._ambigTime=b||!1,this._ambigZone=!0),this},Ra.hasZone=function(){return!this._ambigZone},Ra.local=function(){var a=this.toArray(),b=this._ambigZone;return Sa.local.apply(this,arguments),this._ambigTime=!1,this._ambigZone=!1,b&&Ja(this,a),this},Ra.utc=function(){return Sa.utc.apply(this,arguments),this._ambigTime=!1,this._ambigZone=!1,this},a.each(["zone","utcOffset"],function(a,b){Sa[b]&&(Ra[b]=function(a){return null!=a&&(this._ambigTime=!1,this._ambigZone=!1),Sa[b].apply(this,arguments)})}),Ra.format=function(){return this._fullCalendar&&arguments[0]?W(this,arguments[0]):this._ambigTime?V(this,"YYYY-MM-DD"):this._ambigZone?V(this,"YYYY-MM-DD[T]HH:mm:ss"):Sa.format.apply(this,arguments)},Ra.toISOString=function(){return this._ambigTime?V(this,"YYYY-MM-DD"):this._ambigZone?V(this,"YYYY-MM-DD[T]HH:mm:ss"):Sa.toISOString.apply(this,arguments)},Ra.isWithin=function(a,b){var c=S([this,a,b]);return c[0]>=c[1]&&c[0]<c[2]},Ra.isSame=function(a,b){var c;return this._fullCalendar?b?(c=S([this,a],!0),Sa.isSame.call(c[0],c[1],b)):(a=Ca.moment.parseZone(a),Sa.isSame.call(this,a)&&Boolean(this._ambigTime)===Boolean(a._ambigTime)&&Boolean(this._ambigZone)===Boolean(a._ambigZone)):Sa.isSame.apply(this,arguments)},a.each(["isBefore","isAfter"],function(a,b){Ra[b]=function(a,c){var d;return this._fullCalendar?(d=S([this,a]),Sa[b].call(d[0],d[1],c)):Sa[b].apply(this,arguments)}}),Ha="_d"in b()&&"updateOffset"in b,Ia=Ha?function(a,c){a._d.setTime(Date.UTC.apply(Date,c)),b.updateOffset(a,!1)}:U,Ja=Ha?function(a,c){a._d.setTime(+new Date(c[0]||0,c[1]||0,c[2]||0,c[3]||0,c[4]||0,c[5]||0,c[6]||0)),b.updateOffset(a,!1)}:U;var Ta={t:function(a){return V(a,"a").charAt(0)},T:function(a){return V(a,"A").charAt(0)}};Ca.formatRange=Z;var Ua={Y:"year",M:"month",D:"day",d:"day",A:"second",a:"second",T:"second",t:"second",H:"second",h:"second",m:"second",s:"second"},Va={};Ca.Class=ca,ca.extend=function(a){var b,c=this;return a=a||{},H(a,"constructor")&&(b=a.constructor),"function"!=typeof b&&(b=a.constructor=function(){c.apply(this,arguments)}),b.prototype=F(c.prototype),G(a,b.prototype),G(c,b),b},ca.mixin=function(a){G(a.prototype||a,this.prototype)};var Wa=ca.extend({isHidden:!0,options:null,el:null,documentMousedownProxy:null,margin:10,constructor:function(a){this.options=a||{}},show:function(){this.isHidden&&(this.el||this.render(),this.el.show(),this.position(),this.isHidden=!1,this.trigger("show"))},hide:function(){this.isHidden||(this.el.hide(),this.isHidden=!0,this.trigger("hide"))},render:function(){var b=this,c=this.options;this.el=a('<div class="fc-popover"/>').addClass(c.className||"").css({top:0,left:0}).append(c.content).appendTo(c.parentEl),this.el.on("click",".fc-close",function(){b.hide()}),c.autoHide&&a(document).on(m(),this.documentMousedownProxy=a.proxy(this,"documentMousedown"))},documentMousedown:function(b){this.el&&!a(b.target).closest(this.el).length&&(this.hide(),b.stopPropagation())},destroy:function(){this.hide(),this.el&&(this.el.remove(),this.el=null),
3
  a(document).off(m(),this.documentMousedownProxy)},position:function(){var b,c,d,e,f,g=this.options,h=this.el.offsetParent().offset(),i=this.el.outerWidth(),j=this.el.outerHeight(),k=a(window),l=u(this.el);e=g.top||0,f=void 0!==g.left?g.left:void 0!==g.right?g.right-i:0,l.is(window)||l.is(document)?(l=k,b=0,c=0):(d=l.offset(),b=d.top,c=d.left),b+=k.scrollTop(),c+=k.scrollLeft(),g.viewportConstrain!==!1&&(e=Math.min(e,b+l.outerHeight()-j-this.margin),e=Math.max(e,b+this.margin),f=Math.min(f,c+l.outerWidth()-i-this.margin),f=Math.max(f,c+this.margin)),this.el.css({top:e-h.top,left:f-h.left})},trigger:function(a){this.options[a]&&this.options[a].apply(this,Array.prototype.slice.call(arguments,1))}}),Xa=ca.extend({grid:null,rowCoords:null,colCoords:null,containerEl:null,minX:null,maxX:null,minY:null,maxY:null,constructor:function(a){this.grid=a},build:function(){this.rowCoords=this.grid.computeRowCoords(),this.colCoords=this.grid.computeColCoords(),this.computeBounds()},clear:function(){this.rowCoords=null,this.colCoords=null},getCell:function(a,b){var c,d,e,f=this.rowCoords,g=this.colCoords,h=null,i=null;if(this.inBounds(a,b)){for(c=0;c<f.length;c++)if(d=f[c],b>=d.top&&b<d.bottom){h=c;break}for(c=0;c<g.length;c++)if(d=g[c],a>=d.left&&a<d.right){i=c;break}if(null!==h&&null!==i)return e=this.grid.getCell(h,i),e.grid=this.grid,e}return null},computeBounds:function(){var a;this.containerEl&&(a=this.containerEl.offset(),this.minX=a.left,this.maxX=a.left+this.containerEl.outerWidth(),this.minY=a.top,this.maxY=a.top+this.containerEl.outerHeight())},inBounds:function(a,b){return this.containerEl?a>=this.minX&&a<this.maxX&&b>=this.minY&&b<this.maxY:!0}}),Ya=ca.extend({coordMaps:null,constructor:function(a){this.coordMaps=a},build:function(){var a,b=this.coordMaps;for(a=0;a<b.length;a++)b[a].build()},getCell:function(a,b){var c,d=this.coordMaps,e=null;for(c=0;c<d.length&&!e;c++)e=d[c].getCell(a,b);return e},clear:function(){var a,b=this.coordMaps;for(a=0;a<b.length;a++)b[a].clear()}}),Za=ca.extend({coordMap:null,options:null,isListening:!1,isDragging:!1,origCell:null,cell:null,mouseX0:null,mouseY0:null,mousemoveProxy:null,mouseupProxy:null,scrollEl:null,scrollBounds:null,scrollTopVel:null,scrollLeftVel:null,scrollIntervalId:null,scrollHandlerProxy:null,scrollSensitivity:30,scrollSpeed:200,scrollIntervalMs:50,constructor:function(a,b){this.coordMap=a,this.options=b||{}},mousedown:function(a){w(a)&&(k(a)||a.preventDefault(),this.startListening(a),this.options.distance||this.startDrag(a))},startListening:function(b){var c,d;this.isListening||(b&&this.options.scroll&&(c=u(a(b.target)),c.is(window)||c.is(document)||(this.scrollEl=c,this.scrollHandlerProxy=Q(a.proxy(this,"scrollHandler"),100),this.scrollEl.on("scroll",this.scrollHandlerProxy))),this.computeCoords(),b&&(d=this.getCell(b),this.origCell=d,this.mouseX0=l(b).x,this.mouseY0=l(b).y),a(document).on(o(),this.mousemoveProxy=a.proxy(this,"mousemove")).on(n(),this.mouseupProxy=a.proxy(this,"mouseup")).on("selectstart",this.preventDefault),this.isListening=!0,this.trigger("listenStart",b))},computeCoords:function(){this.coordMap.build(),this.computeScrollBounds()},mousemove:function(a){var b,c;this.isDragging||(b=this.options.distance||1,c=Math.pow(l(a).x-this.mouseX0,2)+Math.pow(l(a).y-this.mouseY0,2),c>=b*b&&this.startDrag(a)),this.isDragging&&this.drag(a)},startDrag:function(a){var b;this.isListening||this.startListening(),this.isDragging||(this.isDragging=!0,this.trigger("dragStart",a),b=this.getCell(a),b&&this.cellOver(b))},drag:function(a){var b;this.isDragging&&(b=this.getCell(a),da(b,this.cell)||(this.cell&&this.cellOut(),!b||k(a)&&!La||this.cellOver(b)),this.dragScroll(a))},cellOver:function(a){this.cell=a,this.trigger("cellOver",a,da(a,this.origCell))},cellOut:function(){this.cell&&(this.trigger("cellOut",this.cell),this.cell=null)},mouseup:function(a){this.stopDrag(a),this.stopListening(a)},stopDrag:function(a){this.isDragging&&(this.stopScrolling(),this.trigger("dragStop",a),this.isDragging=!1)},stopListening:function(b){this.isListening&&(this.scrollEl&&(this.scrollEl.off("scroll",this.scrollHandlerProxy),this.scrollHandlerProxy=null),a(document).off(o(),this.mousemoveProxy).off(n(),this.mouseupProxy).off("selectstart",this.preventDefault),this.mousemoveProxy=null,this.mouseupProxy=null,this.isListening=!1,this.trigger("listenStop",b),this.origCell=this.cell=null,this.coordMap.clear())},getCell:function(a){return this.coordMap.getCell(l(a).x,l(a).y)},trigger:function(a){this.options[a]&&this.options[a].apply(this,Array.prototype.slice.call(arguments,1))},preventDefault:function(a){a.preventDefault()},computeScrollBounds:function(){var a,b=this.scrollEl;b&&(a=b.offset(),this.scrollBounds={top:a.top,left:a.left,bottom:a.top+b.outerHeight(),right:a.left+b.outerWidth()})},dragScroll:function(a){var b,c,d,e,f=this.scrollSensitivity,g=this.scrollBounds,h=0,i=0;g&&(b=(f-(l(a).y-g.top))/f,c=(f-(g.bottom-l(a).y))/f,d=(f-(l(a).x-g.left))/f,e=(f-(g.right-l(a).x))/f,b>=0&&1>=b?h=b*this.scrollSpeed*-1:c>=0&&1>=c&&(h=c*this.scrollSpeed),d>=0&&1>=d?i=d*this.scrollSpeed*-1:e>=0&&1>=e&&(i=e*this.scrollSpeed)),this.setScrollVel(h,i)},setScrollVel:function(b,c){this.scrollTopVel=b,this.scrollLeftVel=c,this.constrainScrollVel(),!this.scrollTopVel&&!this.scrollLeftVel||this.scrollIntervalId||(this.scrollIntervalId=setInterval(a.proxy(this,"scrollIntervalFunc"),this.scrollIntervalMs))},constrainScrollVel:function(){var a=this.scrollEl;this.scrollTopVel<0?a.scrollTop()<=0&&(this.scrollTopVel=0):this.scrollTopVel>0&&a.scrollTop()+a[0].clientHeight>=a[0].scrollHeight&&(this.scrollTopVel=0),this.scrollLeftVel<0?a.scrollLeft()<=0&&(this.scrollLeftVel=0):this.scrollLeftVel>0&&a.scrollLeft()+a[0].clientWidth>=a[0].scrollWidth&&(this.scrollLeftVel=0)},scrollIntervalFunc:function(){var a=this.scrollEl,b=this.scrollIntervalMs/1e3;this.scrollTopVel&&a.scrollTop(a.scrollTop()+this.scrollTopVel*b),this.scrollLeftVel&&a.scrollLeft(a.scrollLeft()+this.scrollLeftVel*b),this.constrainScrollVel(),this.scrollTopVel||this.scrollLeftVel||this.stopScrolling()},stopScrolling:function(){this.scrollIntervalId&&(clearInterval(this.scrollIntervalId),this.scrollIntervalId=null,this.computeCoords())},scrollHandler:function(){this.scrollIntervalId||this.computeCoords()}}),$a=ca.extend({options:null,sourceEl:null,el:null,parentEl:null,top0:null,left0:null,mouseY0:null,mouseX0:null,topDelta:null,leftDelta:null,mousemoveProxy:null,isFollowing:!1,isHidden:!1,isAnimating:!1,constructor:function(b,c){this.options=c=c||{},this.sourceEl=b,this.parentEl=c.parentEl?a(c.parentEl):b.parent()},start:function(b){this.isFollowing||(this.isFollowing=!0,this.mouseY0=l(b).y,this.mouseX0=l(b).x,this.topDelta=0,this.leftDelta=0,this.isHidden||this.updatePosition(),a(document).on(o(),this.mousemoveProxy=a.proxy(this,"mousemove")))},stop:function(b,c){function d(){this.isAnimating=!1,e.destroyEl(),this.top0=this.left0=null,c&&c()}var e=this,f=this.options.revertDuration;this.isFollowing&&!this.isAnimating&&(this.isFollowing=!1,a(document).off(o(),this.mousemoveProxy),b&&f&&!this.isHidden?(this.isAnimating=!0,this.el.animate({top:this.top0,left:this.left0},{duration:f,complete:d})):d())},getEl:function(){var a=this.el;return a||(this.sourceEl.width(),a=this.el=this.sourceEl.clone().css({position:"absolute",visibility:"",display:this.isHidden?"none":"",margin:0,right:"auto",bottom:"auto",width:this.sourceEl.width(),height:this.sourceEl.height(),opacity:this.options.opacity||"",zIndex:this.options.zIndex}).appendTo(this.parentEl)),a},destroyEl:function(){this.el&&(this.el.remove(),this.el=null)},updatePosition:function(){var a,b;this.getEl(),null===this.top0&&(this.sourceEl.width(),a=this.sourceEl.offset(),b=this.el.offsetParent().offset(),this.top0=a.top-b.top,this.left0=a.left-b.left),this.el.css({top:this.top0+this.topDelta,left:this.left0+this.leftDelta})},mousemove:function(a){this.topDelta=l(a).y-this.mouseY0,this.leftDelta=l(a).x-this.mouseX0,this.isHidden||this.updatePosition()},hide:function(){this.isHidden||(this.isHidden=!0,this.el&&this.el.hide())},show:function(){this.isHidden&&(this.isHidden=!1,this.updatePosition(),this.getEl().show())}}),_a=ca.extend({view:null,isRTL:null,cellHtml:"<td/>",constructor:function(a){this.view=a,this.isRTL=a.opt("isRTL")},rowHtml:function(a,b){var c,d,e=this.getHtmlRenderer("cell",a),f="";for(b=b||0,c=0;c<this.colCnt;c++)d=this.getCell(b,c),f+=e(d);return f=this.bookendCells(f,a,b),"<tr>"+f+"</tr>"},bookendCells:function(a,b,c){var d=this.getHtmlRenderer("intro",b)(c||0),e=this.getHtmlRenderer("outro",b)(c||0),f=this.isRTL?e:d,g=this.isRTL?d:e;return"string"==typeof a?f+a+g:a.prepend(f).append(g)},getHtmlRenderer:function(a,b){var c,d,e,f,g=this.view;return c=a+"Html",b&&(d=b+N(a)+"Html"),d&&(f=g[d])?e=g:d&&(f=this[d])?e=this:(f=g[c])?e=g:(f=this[c])&&(e=this),"function"==typeof f?function(){return f.apply(e,arguments)||""}:function(){return f||""}}}),ab=Ca.Grid=_a.extend({start:null,end:null,rowCnt:0,colCnt:0,rowData:null,colData:null,el:null,coordMap:null,elsByFill:null,documentDragStartProxy:null,colHeadFormat:null,eventTimeFormat:null,displayEventEnd:null,constructor:function(){_a.apply(this,arguments),this.coordMap=new Xa(this),this.elsByFill={},this.documentDragStartProxy=a.proxy(this,"documentDragStart")},render:function(){this.bindHandlers()},destroy:function(){this.unbindHandlers()},computeColHeadFormat:function(){},computeEventTimeFormat:function(){return this.view.opt("smallTimeFormat")},computeDisplayEventEnd:function(){return!1},setRange:function(a){var b=this.view;this.start=a.start.clone(),this.end=a.end.clone(),this.rowData=[],this.colData=[],this.updateCells(),this.colHeadFormat=b.opt("columnFormat")||this.computeColHeadFormat(),this.eventTimeFormat=b.opt("timeFormat")||this.computeEventTimeFormat(),this.displayEventEnd=b.opt("displayEventEnd"),null==this.displayEventEnd&&(this.displayEventEnd=this.computeDisplayEventEnd())},updateCells:function(){},rangeToSegs:function(a){},getCell:function(b,c){var d;return null==c&&("number"==typeof b?(c=b%this.colCnt,b=Math.floor(b/this.colCnt)):(c=b.col,b=b.row)),d={row:b,col:c},a.extend(d,this.getRowData(b),this.getColData(c)),a.extend(d,this.computeCellRange(d)),d},computeCellRange:function(a){},getRowData:function(a){return this.rowData[a]||{}},getColData:function(a){return this.colData[a]||{}},getRowEl:function(a){},getColEl:function(a){},getCellDayEl:function(a){return this.getColEl(a.col)||this.getRowEl(a.row)},computeRowCoords:function(){var a,b,c,d=[];for(a=0;a<this.rowCnt;a++)b=this.getRowEl(a),c={top:b.offset().top},a>0&&(d[a-1].bottom=c.top),d.push(c);return c.bottom=c.top+b.outerHeight(),d},computeColCoords:function(){var a,b,c,d=[];for(a=0;a<this.colCnt;a++)b=this.getColEl(a),c={left:b.offset().left},a>0&&(d[a-1].right=c.left),d.push(c);return c.right=c.left+b.outerWidth(),d},bindHandlers:function(){var b=this;this.el.on(m(),function(c){a(c.target).is(".fc-event-container *, .fc-more")||b.view.el.find(".fc-popover").length||a(c.target).closest(".fc-popover").length||b.dayMousedown(c)}),this.bindSegHandlers(),a(document).on("dragstart",this.documentDragStartProxy)},unbindHandlers:function(){a(document).off("dragstart",this.documentDragStartProxy)},dayMousedown:function(a){var b,c,d=this,e=this.view,f=e.opt("selectable"),g=new Za(this.coordMap,{scroll:e.opt("dragScroll"),dragStart:function(){e.unselect()},cellOver:function(a,e){var h=g.origCell;h&&(b=e?a:null,f&&(c=d.computeSelection(h,a),c?d.renderSelection(c):i()))},cellOut:function(a){b=null,c=null,d.destroySelection(),j()},listenStop:function(a){b&&(a.preventDefault(),e.trigger("dayClick",d.getCellDayEl(b),b.start,a)),c&&e.reportSelection(c,a),j()}});g.mousedown(a)},renderRangeHelper:function(a,b){var c;c=b?F(b.event):{},c.start=a.start.clone(),c.end=a.end?a.end.clone():null,c.allDay=null,this.view.calendar.normalizeEventDateProps(c),c.className=(c.className||[]).concat("fc-helper"),b||(c.editable=!1),this.renderHelper(c,b)},renderHelper:function(a,b){},destroyHelper:function(){},renderSelection:function(a){this.renderHighlight(a)},destroySelection:function(){this.destroyHighlight()},computeSelection:function(a,b){var c,d=[a.start,a.end,b.start,b.end];return d.sort(O),c={start:d[0].clone(),end:d[3].clone()},this.view.calendar.isSelectionRangeAllowed(c)?c:null},renderHighlight:function(a){this.renderFill("highlight",this.rangeToSegs(a))},destroyHighlight:function(){this.destroyFill("highlight")},highlightSegClasses:function(){return["fc-highlight"]},renderFill:function(a,b){},destroyFill:function(a){var b=this.elsByFill[a];b&&(b.remove(),delete this.elsByFill[a])},renderFillSegEls:function(b,c){var d,e=this,f=this[b+"SegEl"],g="",h=[];if(c.length){for(d=0;d<c.length;d++)g+=this.fillSegHtml(b,c[d]);a(g).each(function(b,d){var g=c[b],i=a(d);f&&(i=f.call(e,g,i)),i&&(i=a(i),i.is(e.fillSegTag)&&(g.el=i,h.push(g)))})}return h},fillSegTag:"div",fillSegHtml:function(a,b){var c=this[a+"SegClasses"],d=this[a+"SegStyles"],e=c?c.call(this,b):[],f=d?d.call(this,b):"";return"<"+this.fillSegTag+(e.length?' class="'+e.join(" ")+'"':"")+(f?' style="'+f+'"':"")+" />"},headHtml:function(){return'<div class="fc-row '+this.view.widgetHeaderClass+'"><table><thead>'+this.rowHtml("head")+"</thead></table></div>"},headCellHtml:function(a){var b=this.view,c=a.start;return'<th class="fc-day-header '+b.widgetHeaderClass+" fc-"+Ma[c.day()]+'">'+L(c.format(this.colHeadFormat))+"</th>"},bgCellHtml:function(a){var b=this.view,c=a.start,d=this.getDayClasses(c);return d.unshift("fc-day",b.widgetContentClass),'<td class="'+d.join(" ")+'" data-date="'+c.format("YYYY-MM-DD")+'"></td>'},getDayClasses:function(a){var b=this.view,c=b.calendar.getNow().stripTime(),d=["fc-"+Ma[a.day()]];return"month"===b.name&&a.month()!=b.intervalStart.month()&&d.push("fc-other-month"),a.isSame(c,"day")?d.push("fc-today",b.highlightStateClass):c>a?d.push("fc-past"):d.push("fc-future"),d}});ab.mixin({mousedOverSeg:null,isDraggingSeg:!1,isResizingSeg:!1,segs:null,renderEvents:function(a){var b,c,d=this.eventsToSegs(a),e=[],f=[];for(b=0;b<d.length;b++)c=d[b],ea(c.event)?e.push(c):f.push(c);e=this.renderBgSegs(e)||e,f=this.renderFgSegs(f)||f,this.segs=e.concat(f)},destroyEvents:function(){this.triggerSegMouseout(),this.destroyFgSegs(),this.destroyBgSegs(),this.segs=null},getEventSegs:function(){return this.segs||[]},renderFgSegs:function(a){},destroyFgSegs:function(){},renderFgSegEls:function(b,c){var d,e=this.view,f="",g=[];if(b.length){for(d=0;d<b.length;d++)f+=this.fgSegHtml(b[d],c);a(f).each(function(c,d){var f=b[c],h=e.resolveEventEl(f.event,a(d));h&&(h.data("fc-seg",f),f.el=h,g.push(f))})}return g},fgSegHtml:function(a,b){},renderBgSegs:function(a){return this.renderFill("bgEvent",a)},destroyBgSegs:function(){this.destroyFill("bgEvent")},bgEventSegEl:function(a,b){return this.view.resolveEventEl(a.event,b)},bgEventSegClasses:function(a){var b=a.event,c=b.source||{};return["fc-bgevent"].concat(b.className,c.className||[])},bgEventSegStyles:function(a){var b=this.view,c=a.event,d=c.source||{},e=c.color,f=d.color,g=b.opt("eventColor"),h=c.backgroundColor||e||d.backgroundColor||f||b.opt("eventBackgroundColor")||g;return h?"background-color:"+h:""},businessHoursSegClasses:function(a){return["fc-nonbusiness","fc-bgevent"]},bindSegHandlers:function(){var b=this,c=this.view,d={};d.mouseenter=function(a,c){b.triggerSegMouseover(a,c)},d.mouseleave=function(a,c){b.triggerSegMouseout(a,c)},d.click=function(a,b){return c.trigger("eventClick",this,a.event,b)},d[m()]=function(d,e){a(e.target).is(".fc-resizer")&&c.isEventResizable(d.event)?b.segResizeMousedown(d,e):!c.isEventDraggable(d.event)||k(e)&&!La||b.segDragMousedown(d,e)},a.each(d,function(c,d){b.el.on(c,".fc-event-container > *",function(c){var e=a(this).data("fc-seg");return!e||b.isDraggingSeg||b.isResizingSeg?void 0:d.call(this,e,c)})})},triggerSegMouseover:function(a,b){this.mousedOverSeg||(this.mousedOverSeg=a,this.view.trigger("eventMouseover",a.el[0],a.event,b))},triggerSegMouseout:function(a,b){b=b||{},this.mousedOverSeg&&(a=a||this.mousedOverSeg,this.mousedOverSeg=null,this.view.trigger("eventMouseout",a.el[0],a.event,b))},segDragMousedown:function(a,b){var c,d=this,e=this.view,f=a.el,g=a.event,h=new $a(a.el,{parentEl:e.el,opacity:e.opt("dragOpacity"),revertDuration:e.opt("dragRevertDuration"),zIndex:2}),k=new Za(e.coordMap,{distance:5,scroll:e.opt("dragScroll"),listenStart:function(a){h.hide(),h.start(a)},dragStart:function(b){d.triggerSegMouseout(a,b),d.isDraggingSeg=!0,e.hideEvent(g),e.trigger("eventDragStart",f[0],g,b,{})},cellOver:function(b,f){var j=a.cell||k.origCell;c=d.computeEventDrop(j,b,g),c?(e.renderDrag(c,a)?h.hide():h.show(),f&&(c=null)):(h.show(),i())},cellOut:function(){c=null,e.destroyDrag(),h.show(),j()},dragStop:function(a){h.stop(!c,function(){d.isDraggingSeg=!1,e.destroyDrag(),e.showEvent(g),e.trigger("eventDragStop",f[0],g,a,{}),c&&e.reportEventDrop(g,c,f,a)}),j()},listenStop:function(){h.stop()}});k.mousedown(b)},computeEventDrop:function(a,b,c){var d,e,f,g,h,i=a.start,j=b.start;return i.hasTime()===j.hasTime()?(d=z(j,i),e=c.start.clone().add(d),f=null===c.end?null:c.end.clone().add(d),g=c.allDay):(e=j.clone(),f=null,g=!j.hasTime()),h={start:e,end:f,allDay:g},this.view.calendar.isEventRangeAllowed(h,c)?h:null},documentDragStart:function(b,c){var d,e,f=this.view;f.opt("droppable")&&(d=a(b.target),e=f.opt("dropAccept"),(a.isFunction(e)?e.call(d[0],d):d.is(e))&&this.startExternalDrag(d,b,c))},startExternalDrag:function(b,c,d){var e,f,g=this,h=ka(b);e=new Za(this.coordMap,{cellOver:function(a){f=g.computeExternalDrop(a,h),f?g.renderDrag(f):i()},cellOut:function(){f=null,g.destroyDrag(),j()}}),a(document).one("dragstop",function(a,c){g.destroyDrag(),j(),f&&g.view.reportExternalDrop(h,f,b,a,c)}),e.startDrag(c)},computeExternalDrop:function(a,b){var c={start:a.start.clone(),end:null};return b.startTime&&!c.start.hasTime()&&c.start.time(b.startTime),b.duration&&(c.end=c.start.clone().add(b.duration)),this.view.calendar.isExternalDropRangeAllowed(c,b.eventProps)?c:null},renderDrag:function(a,b){},destroyDrag:function(){},segResizeMousedown:function(a,b){function c(){f.destroyEventResize(),g.showEvent(l),j()}var d,e,f=this,g=this.view,h=g.calendar,k=a.el,l=a.event,m=l.start,n=h.getEventEnd(l);e=new Za(this.coordMap,{distance:5,scroll:g.opt("dragScroll"),dragStart:function(b){f.triggerSegMouseout(a,b),f.isResizingSeg=!0,g.trigger("eventResizeStart",k[0],l,b,{})},cellOver:function(b){d=b.end,d.isAfter(m)||(d=m.clone().add(z(b.end,b.start))),d.isSame(n)?d=null:h.isEventRangeAllowed({start:m,end:d},l)?(f.renderEventResize({start:m,end:d},a),g.hideEvent(l)):(d=null,i())},cellOut:function(){d=null,c()},dragStop:function(a){f.isResizingSeg=!1,c(),g.trigger("eventResizeStop",k[0],l,a,{}),d&&g.reportEventResize(l,d,k,a)}}),e.mousedown(b)},renderEventResize:function(a,b){},destroyEventResize:function(){},getEventTimeText:function(a,b){return b=b||this.eventTimeFormat,a.end&&this.displayEventEnd?this.view.formatRange(a,b):a.start.format(b)},getSegClasses:function(a,b,c){var d=a.event,e=["fc-event",a.isStart?"fc-start":"fc-not-start",a.isEnd?"fc-end":"fc-not-end"].concat(d.className,d.source?d.source.className:[]);return b&&e.push("fc-draggable"),c&&e.push("fc-resizable"),e},getEventSkinCss:function(a){var b=this.view,c=a.source||{},d=a.color,e=c.color,f=b.opt("eventColor"),g=a.backgroundColor||d||c.backgroundColor||e||b.opt("eventBackgroundColor")||f,h=a.borderColor||d||c.borderColor||e||b.opt("eventBorderColor")||f,i=a.textColor||c.textColor||b.opt("eventTextColor"),j=[];return g&&j.push("background-color:"+g),h&&j.push("border-color:"+h),i&&j.push("color:"+i),j.join(";")},eventsToSegs:function(a,b){var c,d=this.eventsToRanges(a),e=[];for(c=0;c<d.length;c++)e.push.apply(e,this.eventRangeToSegs(d[c],b));return e},eventsToRanges:function(b){var c=this,d=ha(b),e=[];return a.each(d,function(a,b){b.length&&e.push.apply(e,fa(b[0])?c.eventsToInverseRanges(b):c.eventsToNormalRanges(b))}),e},eventsToNormalRanges:function(a){var b,c,d,e,f=this.view.calendar,g=[];for(b=0;b<a.length;b++)c=a[b],d=c.start.clone().stripZone(),e=f.getEventEnd(c).stripZone(),g.push({event:c,start:d,end:e,eventStartMS:+d,eventDurationMS:e-d});return g},eventsToInverseRanges:function(a){var b,c,d=this.view,e=d.start.clone().stripZone(),f=d.end.clone().stripZone(),g=this.eventsToNormalRanges(a),h=[],i=a[0],j=e;for(g.sort(ia),b=0;b<g.length;b++)c=g[b],c.start>j&&h.push({event:i,start:j,end:c.start}),j=c.end;return f>j&&h.push({event:i,start:j,end:f}),h},eventRangeToSegs:function(a,b){var c,d,e;for(c=b?b(a):this.rangeToSegs(a),d=0;d<c.length;d++)e=c[d],e.event=a.event,e.eventStartMS=a.eventStartMS,e.eventDurationMS=a.eventDurationMS;return c}}),Ca.compareSegs=ja,Ca.dataAttrPrefix="";var bb=ab.extend({numbersVisible:!1,bottomCoordPadding:0,breakOnWeeks:null,cellDates:null,dayToCellOffsets:null,rowEls:null,dayEls:null,helperEls:null,render:function(a){var b,c,d,e=this.view,f=this.rowCnt,g=this.colCnt,h=f*g,i="";for(b=0;f>b;b++)i+=this.dayRowHtml(b,a);for(this.el.html(i),this.rowEls=this.el.find(".fc-row"),this.dayEls=this.el.find(".fc-day"),c=0;h>c;c++)d=this.getCell(c),e.trigger("dayRender",null,d.start,this.dayEls.eq(c));ab.prototype.render.call(this)},destroy:function(){this.destroySegPopover(),ab.prototype.destroy.call(this)},dayRowHtml:function(a,b){var c=this.view,d=["fc-row","fc-week",c.widgetContentClass];return b&&d.push("fc-rigid"),'<div class="'+d.join(" ")+'"><div class="fc-bg"><table>'+this.rowHtml("day",a)+'</table></div><div class="fc-content-skeleton"><table>'+(this.numbersVisible?"<thead>"+this.rowHtml("number",a)+"</thead>":"")+"</table></div></div>"},dayCellHtml:function(a){return this.bgCellHtml(a)},computeColHeadFormat:function(){return this.rowCnt>1?"ddd":this.colCnt>1?this.view.opt("dayOfMonthFormat"):"dddd"},computeEventTimeFormat:function(){return this.view.opt("extraSmallTimeFormat")},computeDisplayEventEnd:function(){return 1==this.colCnt},updateCells:function(){var a,b,c,d;if(this.updateCellDates(),a=this.cellDates,this.breakOnWeeks){for(b=a[0].day(),d=1;d<a.length&&a[d].day()!=b;d++);c=Math.ceil(a.length/d)}else c=1,d=a.length;this.rowCnt=c,this.colCnt=d},updateCellDates:function(){for(var a=this.view,b=this.start.clone(),c=[],d=-1,e=[];b.isBefore(this.end);)a.isHiddenDay(b)?e.push(d+.5):(d++,e.push(d),c.push(b.clone())),b.add(1,"days");this.cellDates=c,this.dayToCellOffsets=e},computeCellRange:function(a){var b=this.colCnt,c=a.row*b+(this.isRTL?b-a.col-1:a.col),d=this.cellDates[c].clone(),e=d.clone().add(1,"day");return{start:d,end:e}},getRowEl:function(a){return this.rowEls.eq(a)},getColEl:function(a){return this.dayEls.eq(a)},getCellDayEl:function(a){return this.dayEls.eq(a.row*this.colCnt+a.col)},computeRowCoords:function(){var a=ab.prototype.computeRowCoords.call(this);return a[a.length-1].bottom+=this.bottomCoordPadding,a},rangeToSegs:function(a){var b,c,d,e,f,g,h,i,j,k,l=this.isRTL,m=this.rowCnt,n=this.colCnt,o=[];for(a=this.view.computeDayRange(a),b=this.dateToCellOffset(a.start),c=this.dateToCellOffset(a.end.subtract(1,"days")),d=0;m>d;d++)e=d*n,f=e+n-1,i=Math.max(e,b),j=Math.min(f,c),i=Math.ceil(i),j=Math.floor(j),j>=i&&(g=i===b,h=j===c,i-=e,j-=e,k={row:d,isStart:g,isEnd:h},l?(k.leftCol=n-j-1,k.rightCol=n-i-1):(k.leftCol=i,k.rightCol=j),o.push(k));return o},dateToCellOffset:function(a){var b=this.dayToCellOffsets,c=a.diff(this.start,"days");return 0>c?b[0]-1:c>=b.length?b[b.length-1]+1:b[c]},renderDrag:function(a,b){var c;return this.renderHighlight(this.view.calendar.ensureVisibleEventRange(a)),b&&!b.el.closest(this.el).length?(this.renderRangeHelper(a,b),c=this.view.opt("dragOpacity"),void 0!==c&&this.helperEls.css("opacity",c),!0):void 0},destroyDrag:function(){this.destroyHighlight(),this.destroyHelper()},renderEventResize:function(a,b){this.renderHighlight(a),this.renderRangeHelper(a,b)},destroyEventResize:function(){this.destroyHighlight(),this.destroyHelper()},renderHelper:function(b,c){var d,e=[],f=this.eventsToSegs([b]);f=this.renderFgSegEls(f),d=this.renderSegRows(f),this.rowEls.each(function(b,f){var g,h=a(f),i=a('<div class="fc-helper-skeleton"><table/></div>');g=c&&c.row===b?c.el.position().top:h.find(".fc-content-skeleton tbody").position().top,i.css("top",g).find("table").append(d[b].tbodyEl),h.append(i),e.push(i[0])}),this.helperEls=a(e)},destroyHelper:function(){this.helperEls&&(this.helperEls.remove(),this.helperEls=null)},fillSegTag:"td",renderFill:function(b,c){var d,e,f,g=[];for(c=this.renderFillSegEls(b,c),d=0;d<c.length;d++)e=c[d],f=this.renderFillRow(b,e),this.rowEls.eq(e.row).append(f),g.push(f[0]);return this.elsByFill[b]=a(g),c},renderFillRow:function(b,c){var d,e,f=this.colCnt,g=c.leftCol,h=c.rightCol+1;return d=a('<div class="fc-'+b.toLowerCase()+'-skeleton"><table><tr/></table></div>'),e=d.find("tr"),g>0&&e.append('<td colspan="'+g+'"/>'),e.append(c.el.attr("colspan",h-g)),f>h&&e.append('<td colspan="'+(f-h)+'"/>'),this.bookendCells(e,b),d}});bb.mixin({rowStructs:null,destroyEvents:function(){this.destroySegPopover(),ab.prototype.destroyEvents.apply(this,arguments)},getEventSegs:function(){return ab.prototype.getEventSegs.call(this).concat(this.popoverSegs||[])},renderBgSegs:function(b){var c=a.grep(b,function(a){return a.event.allDay});return ab.prototype.renderBgSegs.call(this,c)},renderFgSegs:function(b){var c;return b=this.renderFgSegEls(b),c=this.rowStructs=this.renderSegRows(b),this.rowEls.each(function(b,d){a(d).find(".fc-content-skeleton > table").append(c[b].tbodyEl)}),b},destroyFgSegs:function(){for(var a,b=this.rowStructs||[];a=b.pop();)a.tbodyEl.remove();this.rowStructs=null},renderSegRows:function(a){var b,c,d=[];for(b=this.groupSegRows(a),c=0;c<b.length;c++)d.push(this.renderSegRow(c,b[c]));return d},fgSegHtml:function(a,b){var c,d=this.view,e=a.event,f=d.isEventDraggable(e),g=!b&&e.allDay&&a.isEnd&&d.isEventResizable(e),h=this.getSegClasses(a,f,g),i=this.getEventSkinCss(e),j="";h.unshift("fc-day-grid-event"),!e.allDay&&a.isStart&&(j='<span class="fc-time">'+L(this.getEventTimeText(e))+"</span>");var k='<span class="eo-fullcalendar-screen-reader-text screen-reader-text"> '+L(this.getEventTimeText(e,"dddd, MMMM Do YYYY"))+" </span>";return c='<span class="fc-title">'+(L(e.title||"")||"&nbsp;")+"</span>",'<a class="'+h.join(" ")+'"'+(e.url?' href="'+L(e.url)+'"':"")+(i?' style="'+i+'"':"")+'><div class="fc-content">'+(this.isRTL?c+" "+j+k:k+j+" "+c)+"</div>"+(g?'<div class="fc-resizer"/>':"")+"</a>"},renderSegRow:function(b,c){function d(b){for(;b>g;)k=(r[e-1]||[])[g],k?k.attr("rowspan",parseInt(k.attr("rowspan")||1,10)+1):(k=a("<td/>"),h.append(k)),q[e][g]=k,r[e][g]=k,g++}var e,f,g,h,i,j,k,l=this.colCnt,m=this.buildSegLevels(c),n=Math.max(1,m.length),o=a("<tbody/>"),p=[],q=[],r=[];for(e=0;n>e;e++){if(f=m[e],g=0,h=a("<tr/>"),p.push([]),q.push([]),r.push([]),f)for(i=0;i<f.length;i++){for(j=f[i],d(j.leftCol),k=a('<td class="fc-event-container"/>').append(j.el),j.leftCol!=j.rightCol?k.attr("colspan",j.rightCol-j.leftCol+1):r[e][g]=k;g<=j.rightCol;)q[e][g]=k,p[e][g]=j,g++;h.append(k)}d(l),this.bookendCells(h,"eventSkeleton"),o.append(h)}return{row:b,tbodyEl:o,cellMatrix:q,segMatrix:p,segLevels:m,segs:c}},buildSegLevels:function(a){var b,c,d,e=[];for(a.sort(ja),b=0;b<a.length;b++){for(c=a[b],d=0;d<e.length&&la(c,e[d]);d++);c.level=d,(e[d]||(e[d]=[])).push(c)}for(d=0;d<e.length;d++)e[d].sort(ma);return e},groupSegRows:function(a){var b,c=[];for(b=0;b<this.rowCnt;b++)c.push([]);for(b=0;b<a.length;b++)c[a[b].row].push(a[b]);return c}}),bb.mixin({segPopover:null,popoverSegs:null,destroySegPopover:function(){this.segPopover&&this.segPopover.hide()},limitRows:function(a){var b,c,d=this.rowStructs||[];for(b=0;b<d.length;b++)this.unlimitRow(b),c=a?"number"==typeof a?a:this.computeRowLevelLimit(b):!1,c!==!1&&this.limitRow(b,c)},computeRowLevelLimit:function(a){var b,c,d=this.rowEls.eq(a),e=d.height(),f=this.rowStructs[a].tbodyEl.children();for(b=0;b<f.length;b++)if(c=f.eq(b).removeClass("fc-limited"),c.position().top+c.outerHeight()>e)return b;return!1},limitRow:function(b,c){function d(d){for(;d>x;)e=u.getCell(b,x),k=u.getCellSegs(e,c),k.length&&(n=g[c-1][x],t=u.renderMoreLink(e,k),s=a("<div/>").append(t),n.append(s),w.push(s[0])),x++}var e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u=this,v=this.rowStructs[b],w=[],x=0;if(c&&c<v.segLevels.length){for(f=v.segLevels[c-1],g=v.cellMatrix,h=v.tbodyEl.children().slice(c).addClass("fc-limited").get(),i=0;i<f.length;i++){for(j=f[i],d(j.leftCol),m=[],l=0;x<=j.rightCol;)e=this.getCell(b,x),k=this.getCellSegs(e,c),m.push(k),l+=k.length,x++;if(l){for(n=g[c-1][j.leftCol],o=n.attr("rowspan")||1,p=[],q=0;q<m.length;q++)r=a('<td class="fc-more-cell"/>').attr("rowspan",o),k=m[q],e=this.getCell(b,j.leftCol+q),t=this.renderMoreLink(e,[j].concat(k)),s=a("<div/>").append(t),r.append(s),p.push(r[0]),w.push(r[0]);n.addClass("fc-limited").after(a(p)),h.push(n[0])}}d(this.colCnt),v.moreEls=a(w),v.limitedEls=a(h)}},unlimitRow:function(a){var b=this.rowStructs[a];b.moreEls&&(b.moreEls.remove(),b.moreEls=null),b.limitedEls&&(b.limitedEls.removeClass("fc-limited"),b.limitedEls=null)},renderMoreLink:function(b,c){var d=this,e=this.view;return a('<a class="fc-more"/>').text(this.getMoreLinkText(c.length)).on("click",function(f){var g=e.opt("eventLimitClick"),h=b.start,i=a(this),j=d.getCellDayEl(b),k=d.getCellSegs(b),l=d.resliceDaySegs(k,h),m=d.resliceDaySegs(c,h);"function"==typeof g&&(g=e.trigger("eventLimitClick",null,{date:h,dayEl:j,moreEl:i,segs:l,hiddenSegs:m},f)),"popover"===g?d.showSegPopover(b,i,l):"string"==typeof g&&e.calendar.zoomTo(h,g)})},showSegPopover:function(a,b,c){var d,e,f=this,g=this.view,h=b.parent();d=1==this.rowCnt?g.el:this.rowEls.eq(a.row),e={className:"fc-more-popover",content:this.renderSegPopoverContent(a,c),parentEl:this.el,top:d.offset().top,autoHide:!0,viewportConstrain:g.opt("popoverViewportConstrain"),hide:function(){f.segPopover.destroy(),f.segPopover=null,f.popoverSegs=null}},this.isRTL?e.right=h.offset().left+h.outerWidth()+1:e.left=h.offset().left-1,this.segPopover=new Wa(e),this.segPopover.show()},renderSegPopoverContent:function(b,c){var d,e=this.view,f=e.opt("theme"),g=b.start.format(e.opt("dayPopoverFormat")),h=a('<div class="fc-header '+e.widgetHeaderClass+'"><span class="fc-close '+(f?"ui-icon ui-icon-closethick":"fc-icon fc-icon-x")+'"></span><span class="fc-title">'+L(g)+'</span><div class="fc-clear"/></div><div class="fc-body '+e.widgetContentClass+'"><div class="fc-event-container"></div></div>'),i=h.find(".fc-event-container");for(c=this.renderFgSegEls(c,!0),this.popoverSegs=c,d=0;d<c.length;d++)c[d].cell=b,i.append(c[d].el);return h},resliceDaySegs:function(b,c){var d=a.map(b,function(a){return a.event}),e=c.clone().stripTime(),f=e.clone().add(1,"days"),g={start:e,end:f};return this.eventsToSegs(d,function(a){var b=x(a,g);return b?[b]:[]})},getMoreLinkText:function(a){var b=this.view.opt("eventLimitText");return"function"==typeof b?b(a):"+"+a+" "+b},getCellSegs:function(a,b){for(var c,d=this.rowStructs[a.row].segMatrix,e=b||0,f=[];e<d.length;)c=d[e][a.col],c&&f.push(c),e++;return f}});var cb=ab.extend({slotDuration:null,snapDuration:null,minTime:null,maxTime:null,axisFormat:null,dayEls:null,slatEls:null,slatTops:null,helperEl:null,businessHourSegs:null,constructor:function(){ab.apply(this,arguments),this.processOptions()},render:function(){this.el.html(this.renderHtml()),this.dayEls=this.el.find(".fc-day"),this.slatEls=this.el.find(".fc-slats tr"),this.computeSlatTops(),this.renderBusinessHours(),ab.prototype.render.call(this)},renderBusinessHours:function(){var a=this.view.calendar.getBusinessHoursEvents();this.businessHourSegs=this.renderFill("businessHours",this.eventsToSegs(a),"bgevent")},renderHtml:function(){return'<div class="fc-bg"><table>'+this.rowHtml("slotBg")+'</table></div><div class="fc-slats"><table>'+this.slatRowHtml()+"</table></div>"},slotBgCellHtml:function(a){return this.bgCellHtml(a)},slatRowHtml:function(){for(var a,c,d,e=this.view,f=this.isRTL,g="",h=this.slotDuration.asMinutes()%15===0,i=b.duration(+this.minTime);i<this.maxTime;)a=this.start.clone().time(i),
4
  c=a.minutes(),d='<td class="fc-axis fc-time '+e.widgetContentClass+'" '+e.axisStyleAttr()+">"+(h&&c?"":"<span>"+L(a.format(this.axisFormat))+"</span>")+"</td>",g+="<tr "+(c?'class="fc-minor"':"")+">"+(f?"":d)+'<td class="'+e.widgetContentClass+'"/>'+(f?d:"")+"</tr>",i.add(this.slotDuration);return g},processOptions:function(){var a=this.view,c=a.opt("slotDuration"),d=a.opt("snapDuration");c=b.duration(c),d=d?b.duration(d):c,this.slotDuration=c,this.snapDuration=d,this.minTime=b.duration(a.opt("minTime")),this.maxTime=b.duration(a.opt("maxTime")),this.axisFormat=a.opt("axisFormat")||a.opt("smallTimeFormat")},computeColHeadFormat:function(){return this.colCnt>1?this.view.opt("dayOfMonthFormat"):"dddd"},computeEventTimeFormat:function(){return this.view.opt("noMeridiemTimeFormat")},computeDisplayEventEnd:function(){return!0},updateCells:function(){var a,b=this.view,c=[];for(a=this.start.clone();a.isBefore(this.end);)c.push({day:a.clone()}),a.add(1,"day"),a=b.skipHiddenDays(a);this.isRTL&&c.reverse(),this.colData=c,this.colCnt=c.length,this.rowCnt=Math.ceil((this.maxTime-this.minTime)/this.snapDuration)},computeCellRange:function(a){var b=this.computeSnapTime(a.row),c=this.view.calendar.rezoneDate(a.day).time(b),d=c.clone().add(this.snapDuration);return{start:c,end:d}},getColEl:function(a){return this.dayEls.eq(a)},computeSnapTime:function(a){return b.duration(this.minTime+this.snapDuration*a)},rangeToSegs:function(a){var b,c,d,e,f=this.colCnt,g=[];for(a={start:a.start.clone().stripZone(),end:a.end.clone().stripZone()},c=0;f>c;c++)d=this.colData[c].day,e={start:d.clone().time(this.minTime),end:d.clone().time(this.maxTime)},b=x(a,e),b&&(b.col=c,g.push(b));return g},resize:function(){this.computeSlatTops(),this.updateSegVerticals()},computeRowCoords:function(){var a,b,c=this.el.offset().top,d=[];for(a=0;a<this.rowCnt;a++)b={top:c+this.computeTimeTop(this.computeSnapTime(a))},a>0&&(d[a-1].bottom=b.top),d.push(b);return b.bottom=b.top+this.computeTimeTop(this.computeSnapTime(a)),d},computeDateTop:function(a,c){return this.computeTimeTop(b.duration(a.clone().stripZone()-c.clone().stripTime()))},computeTimeTop:function(a){var b,c,d,e,f=(a-this.minTime)/this.slotDuration;return f=Math.max(0,f),f=Math.min(this.slatEls.length,f),b=Math.floor(f),c=f-b,d=this.slatTops[b],c?(e=this.slatTops[b+1],d+(e-d)*c):d},computeSlatTops:function(){var b,c=[];this.slatEls.each(function(d,e){b=a(e).position().top,c.push(b)}),c.push(b+this.slatEls.last().outerHeight()),this.slatTops=c},renderDrag:function(a,b){var c;return b?(this.renderRangeHelper(a,b),c=this.view.opt("dragOpacity"),void 0!==c&&this.helperEl.css("opacity",c),!0):void this.renderHighlight(this.view.calendar.ensureVisibleEventRange(a))},destroyDrag:function(){this.destroyHelper(),this.destroyHighlight()},renderEventResize:function(a,b){this.renderRangeHelper(a,b)},destroyEventResize:function(){this.destroyHelper()},renderHelper:function(b,c){var d,e,f,g,h=this.eventsToSegs([b]);for(h=this.renderFgSegEls(h),d=this.renderSegTable(h),e=0;e<h.length;e++)f=h[e],c&&c.col===f.col&&(g=c.el,f.el.css({left:g.css("left"),right:g.css("right"),"margin-left":g.css("margin-left"),"margin-right":g.css("margin-right")}));this.helperEl=a('<div class="fc-helper-skeleton"/>').append(d).appendTo(this.el)},destroyHelper:function(){this.helperEl&&(this.helperEl.remove(),this.helperEl=null)},renderSelection:function(a){this.view.opt("selectHelper")?this.renderRangeHelper(a):this.renderHighlight(a)},destroySelection:function(){this.destroyHelper(),this.destroyHighlight()},renderFill:function(b,c,d){var e,f,g,h,i,j,k,l,m,n;if(c.length){for(c=this.renderFillSegEls(b,c),e=this.groupSegCols(c),d=d||b.toLowerCase(),f=a('<div class="fc-'+d+'-skeleton"><table><tr/></table></div>'),g=f.find("tr"),h=0;h<e.length;h++)if(i=e[h],j=a("<td/>").appendTo(g),i.length)for(k=a('<div class="fc-'+d+'-container"/>').appendTo(j),l=this.colData[h].day,m=0;m<i.length;m++)n=i[m],k.append(n.el.css({top:this.computeDateTop(n.start,l),bottom:-this.computeDateTop(n.end,l)}));this.bookendCells(g,b),this.el.append(f),this.elsByFill[b]=f}return c}});cb.mixin({eventSkeletonEl:null,renderFgSegs:function(b){return b=this.renderFgSegEls(b),this.el.append(this.eventSkeletonEl=a('<div class="fc-content-skeleton"/>').append(this.renderSegTable(b))),b},destroyFgSegs:function(a){this.eventSkeletonEl&&(this.eventSkeletonEl.remove(),this.eventSkeletonEl=null)},renderSegTable:function(b){var c,d,e,f,g,h,i=a("<table><tr/></table>"),j=i.find("tr");for(c=this.groupSegCols(b),this.computeSegVerticals(b),f=0;f<c.length;f++){for(g=c[f],na(g),h=a('<div class="fc-event-container"/>'),d=0;d<g.length;d++)e=g[d],e.el.css(this.generateSegPositionCss(e)),e.bottom-e.top<30&&e.el.addClass("fc-short"),h.append(e.el);j.append(a("<td/>").append(h))}return this.bookendCells(j,"eventSkeleton"),i},updateSegVerticals:function(){var a,b=(this.segs||[]).concat(this.businessHourSegs||[]);for(this.computeSegVerticals(b),a=0;a<b.length;a++)b[a].el.css(this.generateSegVerticalCss(b[a]))},computeSegVerticals:function(a){var b,c;for(b=0;b<a.length;b++)c=a[b],c.top=this.computeDateTop(c.start,c.start),c.bottom=this.computeDateTop(c.end,c.start)},fgSegHtml:function(a,b){var c,d,e,f=this.view,g=a.event,h=f.isEventDraggable(g),i=!b&&a.isEnd&&f.isEventResizable(g),j=this.getSegClasses(a,h,i),k=this.getEventSkinCss(g);return j.unshift("fc-time-grid-event"),f.isMultiDayEvent(g)?(a.isStart||a.isEnd)&&(c=this.getEventTimeText(a),d=this.getEventTimeText(a,"LT"),e=this.getEventTimeText({start:a.start})):(c=this.getEventTimeText(g),d=this.getEventTimeText(g,"LT"),e=this.getEventTimeText({start:g.start})),'<a class="'+j.join(" ")+'"'+(g.url?' href="'+L(g.url)+'"':"")+(k?' style="'+k+'"':"")+'><div class="fc-content">'+(c?'<div class="fc-time" data-start="'+L(e)+'" data-full="'+L(d)+'"><span>'+L(c)+"</span></div>":"")+(g.title?'<div class="fc-title">'+L(g.title)+"</div>":"")+'</div><div class="fc-bg"/>'+(i?'<div class="fc-resizer"/>':"")+"</a>"},generateSegPositionCss:function(a){var b,c,d=this.view.opt("slotEventOverlap"),e=a.backwardCoord,f=a.forwardCoord,g=this.generateSegVerticalCss(a);return d&&(f=Math.min(1,e+2*(f-e))),this.isRTL?(b=1-f,c=e):(b=e,c=1-f),g.zIndex=a.level+1,g.left=100*b+"%",g.right=100*c+"%",d&&a.forwardPressure&&(g[this.isRTL?"marginLeft":"marginRight"]=20),g},generateSegVerticalCss:function(a){return{top:a.top,bottom:-a.bottom}},groupSegCols:function(a){var b,c=[];for(b=0;b<this.colCnt;b++)c.push([]);for(b=0;b<a.length;b++)c[a[b].col].push(a[b]);return c}});var db=Ca.View=ca.extend({type:null,name:null,title:null,calendar:null,options:null,coordMap:null,el:null,start:null,end:null,intervalStart:null,intervalEnd:null,intervalDuration:null,intervalUnit:null,isSelected:!1,scrollerEl:null,scrollTop:null,widgetHeaderClass:null,widgetContentClass:null,highlightStateClass:null,nextDayThreshold:null,isHiddenDayHash:null,documentMousedownProxy:null,constructor:function(c,d,e){this.calendar=c,this.options=d,this.type=this.name=e,this.nextDayThreshold=b.duration(this.opt("nextDayThreshold")),this.initTheming(),this.initHiddenDays(),this.documentMousedownProxy=a.proxy(this,"documentMousedown"),this.initialize()},initialize:function(){},opt:function(b){var c;return c=this.options[b],void 0!==c?c:(c=this.calendar.options[b],a.isPlainObject(c)&&!e(b)?y(c,this.type):c)},trigger:function(a,b){var c=this.calendar;return c.trigger.apply(c,[a,b||this].concat(Array.prototype.slice.call(arguments,2),[this]))},setDate:function(a){this.setRange(this.computeRange(a))},setRange:function(b){a.extend(this,b),this.updateTitle()},computeRange:function(a){var c,d,e=b.duration(this.opt("duration")||this.constructor.duration||{days:1}),f=B(e),g=a.clone().startOf(f),h=g.clone().add(e);return/year|month|week|day/.test(f)?(g.stripTime(),h.stripTime()):(g.hasTime()||(g=this.calendar.rezoneDate(g)),h.hasTime()||(h=this.calendar.rezoneDate(h))),c=g.clone(),c=this.skipHiddenDays(c),d=h.clone(),d=this.skipHiddenDays(d,-1,!0),{intervalDuration:e,intervalUnit:f,intervalStart:g,intervalEnd:h,start:c,end:d}},computePrevDate:function(a){return this.massageCurrentDate(a.clone().startOf(this.intervalUnit).subtract(this.intervalDuration),-1)},computeNextDate:function(a){return this.massageCurrentDate(a.clone().startOf(this.intervalUnit).add(this.intervalDuration))},massageCurrentDate:function(a,c){return this.intervalDuration<=b.duration({days:1})&&this.isHiddenDay(a)&&(a=this.skipHiddenDays(a,c),a.startOf("day")),a},updateTitle:function(){this.title=this.computeTitle()},computeTitle:function(){return this.formatRange({start:this.intervalStart,end:this.intervalEnd},this.opt("titleFormat")||this.computeTitleFormat(),this.opt("titleRangeSeparator"))},computeTitleFormat:function(){return"year"==this.intervalUnit?"YYYY":"month"==this.intervalUnit?this.opt("monthYearFormat"):this.intervalDuration.as("days")>1?"ll":"LL"},formatRange:function(a,b,c){var d=a.end;return d.hasTime()||(d=d.clone().subtract(1)),Z(a.start,d,b,c,this.opt("isRTL"))},renderView:function(){this.render(),this.updateSize(),this.initializeScroll(),this.trigger("viewRender",this,this,this.el),a(document).on(m(),this.documentMousedownProxy)},render:function(){},destroyView:function(){this.unselect(),this.destroyViewEvents(),this.destroy(),this.trigger("viewDestroy",this,this,this.el),a(document).off(m(),this.documentMousedownProxy)},destroy:function(){this.el.empty()},initTheming:function(){var a=this.opt("theme")?"ui":"fc";this.widgetHeaderClass=a+"-widget-header",this.widgetContentClass=a+"-widget-content",this.highlightStateClass=a+"-state-highlight"},updateSize:function(a){a&&this.recordScroll(),this.updateHeight(),this.updateWidth()},updateWidth:function(){},updateHeight:function(){var a=this.calendar;this.setHeight(a.getSuggestedViewHeight(),a.isHeightAuto())},setHeight:function(a,b){},computeScrollerHeight:function(a,b){var c,d;return b=b||this.scrollerEl,c=this.el.add(b),c.css({position:"relative",left:-1}),d=this.el.outerHeight()-b.height(),c.css({position:"",left:""}),a-d},initializeScroll:function(){},recordScroll:function(){this.scrollerEl&&(this.scrollTop=this.scrollerEl.scrollTop())},restoreScroll:function(){null!==this.scrollTop&&this.scrollerEl.scrollTop(this.scrollTop)},renderViewEvents:function(a){this.renderEvents(a),this.eventSegEach(function(a){this.trigger("eventAfterRender",a.event,a.event,a.el)}),this.trigger("eventAfterAllRender")},renderEvents:function(){},destroyViewEvents:function(){this.eventSegEach(function(a){this.trigger("eventDestroy",a.event,a.event,a.el)}),this.destroyEvents()},destroyEvents:function(){},resolveEventEl:function(b,c){var d=this.trigger("eventRender",b,b,c);return d===!1?c=null:d&&d!==!0&&(c=a(d)),c},showEvent:function(a){this.eventSegEach(function(a){a.el.css("visibility","")},a)},hideEvent:function(a){this.eventSegEach(function(a){a.el.css("visibility","hidden")},a)},eventSegEach:function(a,b){var c,d=this.getEventSegs();for(c=0;c<d.length;c++)b&&d[c].event._id!==b._id||a.call(this,d[c])},getEventSegs:function(){return[]},isEventDraggable:function(a){var b=a.source||{};return K(a.startEditable,b.startEditable,this.opt("eventStartEditable"),a.editable,b.editable,this.opt("editable"))},reportEventDrop:function(a,b,c,d){var e=this.calendar,f=e.mutateEvent(a,b),g=function(){f.undo(),e.reportEventChange()};this.triggerEventDrop(a,f.dateDelta,g,c,d),e.reportEventChange()},triggerEventDrop:function(a,b,c,d,e){this.trigger("eventDrop",d[0],a,b,c,e,{})},reportExternalDrop:function(b,c,d,e,f){var g,h,i=b.eventProps;i&&(g=a.extend({},i,c),h=this.calendar.renderEvent(g,b.stick)[0]),this.triggerExternalDrop(h,c,d,e,f)},triggerExternalDrop:function(a,b,c,d,e){this.trigger("drop",c[0],b.start,d,e),a&&this.trigger("eventReceive",null,a)},renderDrag:function(a,b){},destroyDrag:function(){},isEventResizable:function(a){var b=a.source||{};return K(a.durationEditable,b.durationEditable,this.opt("eventDurationEditable"),a.editable,b.editable,this.opt("editable"))},reportEventResize:function(a,b,c,d){var e=this.calendar,f=e.mutateEvent(a,{end:b}),g=function(){f.undo(),e.reportEventChange()};this.triggerEventResize(a,f.durationDelta,g,c,d),e.reportEventChange()},triggerEventResize:function(a,b,c,d,e){this.trigger("eventResize",d[0],a,b,c,e,{})},select:function(a,b){this.unselect(b),this.renderSelection(a),this.reportSelection(a,b)},renderSelection:function(a){},reportSelection:function(a,b){this.isSelected=!0,this.trigger("select",null,a.start,a.end,b)},unselect:function(a){this.isSelected&&(this.isSelected=!1,this.destroySelection(),this.trigger("unselect",null,a))},destroySelection:function(){},documentMousedown:function(b){var c;this.isSelected&&this.opt("unselectAuto")&&w(b)&&(c=this.opt("unselectCancel"),c&&a(b.target).closest(c).length||this.unselect(b))},initHiddenDays:function(){var b,c=this.opt("hiddenDays")||[],d=[],e=0;for(this.opt("weekends")===!1&&c.push(0,6),b=0;7>b;b++)(d[b]=-1!==a.inArray(b,c))||e++;if(!e)throw"invalid hiddenDays";this.isHiddenDayHash=d},isHiddenDay:function(a){return b.isMoment(a)&&(a=a.day()),this.isHiddenDayHash[a]},skipHiddenDays:function(a,b,c){var d=a.clone();for(b=b||1;this.isHiddenDayHash[(d.day()+(c?b:0)+7)%7];)d.add(b,"days");return d},computeDayRange:function(a){var b,c=a.start.clone().stripTime(),d=a.end,e=null;return d&&(e=d.clone().stripTime(),b=+d.time(),b&&b>=this.nextDayThreshold&&e.add(1,"days")),(!d||c>=e)&&(e=c.clone().add(1,"days")),{start:c,end:e}},isMultiDayEvent:function(a){var b=this.computeDayRange(a);return b.end.diff(b.start,"days")>1}});Ca.sourceNormalizers=[],Ca.sourceFetchers=[];var eb={dataType:"json",cache:!1},fb=1,gb=Da.basic=db.extend({dayGrid:null,dayNumbersVisible:!1,weekNumbersVisible:!1,weekNumberWidth:null,headRowEl:null,initialize:function(){this.dayGrid=new bb(this),this.coordMap=this.dayGrid.coordMap},setRange:function(a){db.prototype.setRange.call(this,a),this.dayGrid.breakOnWeeks=/year|month|week/.test(this.intervalUnit),this.dayGrid.setRange(a)},computeRange:function(a){var b=db.prototype.computeRange.call(this,a);return/year|month/.test(b.intervalUnit)&&(b.start.startOf("week"),b.start=this.skipHiddenDays(b.start),b.end.weekday()&&(b.end.add(1,"week").startOf("week"),b.end=this.skipHiddenDays(b.end,-1,!0))),b},render:function(){this.dayNumbersVisible=this.dayGrid.rowCnt>1,this.weekNumbersVisible=this.opt("weekNumbers"),this.dayGrid.numbersVisible=this.dayNumbersVisible||this.weekNumbersVisible,this.el.addClass("fc-basic-view").html(this.renderHtml()),this.headRowEl=this.el.find("thead .fc-row"),this.scrollerEl=this.el.find(".fc-day-grid-container"),this.dayGrid.coordMap.containerEl=this.scrollerEl,this.dayGrid.el=this.el.find(".fc-day-grid"),this.dayGrid.render(this.hasRigidRows())},destroy:function(){this.dayGrid.destroy(),db.prototype.destroy.call(this)},renderHtml:function(){return'<table><thead><tr><td class="'+this.widgetHeaderClass+'">'+this.dayGrid.headHtml()+'</td></tr></thead><tbody><tr><td class="'+this.widgetContentClass+'"><div class="fc-day-grid-container"><div class="fc-day-grid"/></div></td></tr></tbody></table>'},headIntroHtml:function(){return this.weekNumbersVisible?'<th class="fc-week-number '+this.widgetHeaderClass+'" '+this.weekNumberStyleAttr()+"><span>"+L(this.opt("weekNumberTitle"))+"</span></th>":void 0},numberIntroHtml:function(a){return this.weekNumbersVisible?'<td class="fc-week-number" '+this.weekNumberStyleAttr()+"><span>"+this.calendar.calculateWeekNumber(this.dayGrid.getCell(a,0).start)+"</span></td>":void 0},dayIntroHtml:function(){return this.weekNumbersVisible?'<td class="fc-week-number '+this.widgetContentClass+'" '+this.weekNumberStyleAttr()+"></td>":void 0},introHtml:function(){return this.weekNumbersVisible?'<td class="fc-week-number" '+this.weekNumberStyleAttr()+"></td>":void 0},numberCellHtml:function(a){var b,c=a.start;return this.dayNumbersVisible?(b=this.dayGrid.getDayClasses(c),b.unshift("fc-day-number"),'<td class="'+b.join(" ")+'" data-date="'+c.format()+'">'+c.date()+"</td>"):"<td/>"},weekNumberStyleAttr:function(){return null!==this.weekNumberWidth?'style="width:'+this.weekNumberWidth+'px"':""},hasRigidRows:function(){var a=this.opt("eventLimit");return a&&"number"!=typeof a},updateWidth:function(){this.weekNumbersVisible&&(this.weekNumberWidth=r(this.el.find(".fc-week-number")))},setHeight:function(a,b){var c,d=this.opt("eventLimit");t(this.scrollerEl),h(this.headRowEl),this.dayGrid.destroySegPopover(),d&&"number"==typeof d&&this.dayGrid.limitRows(d),c=this.computeScrollerHeight(a),this.setGridHeight(c,b),d&&"number"!=typeof d&&this.dayGrid.limitRows(d),!b&&s(this.scrollerEl,c)&&(g(this.headRowEl,v(this.scrollerEl)),c=this.computeScrollerHeight(a),this.scrollerEl.height(c),this.restoreScroll())},setGridHeight:function(a,b){b?q(this.dayGrid.rowEls):p(this.dayGrid.rowEls,a,!0)},renderEvents:function(a){this.dayGrid.renderEvents(a),this.updateHeight()},getEventSegs:function(){return this.dayGrid.getEventSegs()},destroyEvents:function(){this.recordScroll(),this.dayGrid.destroyEvents()},renderDrag:function(a,b){return this.dayGrid.renderDrag(a,b)},destroyDrag:function(){this.dayGrid.destroyDrag()},renderSelection:function(a){this.dayGrid.renderSelection(a)},destroySelection:function(){this.dayGrid.destroySelection()}});c({fixedWeekCount:!0});var hb=Da.month=gb.extend({computeRange:function(a){var b,c=gb.prototype.computeRange.call(this,a);return this.isFixedWeeks()&&(b=Math.ceil(c.end.diff(c.start,"weeks",!0)),c.end.add(6-b,"weeks")),c},setGridHeight:function(a,b){b=b||"variable"===this.opt("weekMode"),b&&(a*=this.rowCnt/6),p(this.dayGrid.rowEls,a,!b)},isFixedWeeks:function(){var a=this.opt("weekMode");return a?"fixed"===a:this.opt("fixedWeekCount")}});hb.duration={months:1},Da.basicWeek={type:"basic",duration:{weeks:1}},Da.basicDay={type:"basic",duration:{days:1}},c({allDaySlot:!0,allDayText:"all-day",scrollTime:"06:00:00",slotDuration:"00:30:00",minTime:"00:00:00",maxTime:"24:00:00",slotEventOverlap:!0});var ib=5;Da.agenda=db.extend({timeGrid:null,dayGrid:null,axisWidth:null,noScrollRowEls:null,bottomRuleEl:null,bottomRuleHeight:null,initialize:function(){this.timeGrid=new cb(this),this.opt("allDaySlot")?(this.dayGrid=new bb(this),this.coordMap=new Ya([this.dayGrid.coordMap,this.timeGrid.coordMap])):this.coordMap=this.timeGrid.coordMap},setRange:function(a){db.prototype.setRange.call(this,a),this.timeGrid.setRange(a),this.dayGrid&&this.dayGrid.setRange(a)},render:function(){this.el.addClass("fc-agenda-view").html(this.renderHtml()),this.scrollerEl=this.el.find(".fc-time-grid-container"),this.timeGrid.coordMap.containerEl=this.scrollerEl,this.timeGrid.el=this.el.find(".fc-time-grid"),this.timeGrid.render(),this.bottomRuleEl=a('<hr class="'+this.widgetHeaderClass+'"/>').appendTo(this.timeGrid.el),this.dayGrid&&(this.dayGrid.el=this.el.find(".fc-day-grid"),this.dayGrid.render(),this.dayGrid.bottomCoordPadding=this.dayGrid.el.next("hr").outerHeight()),this.noScrollRowEls=this.el.find(".fc-row:not(.fc-scroller *)")},destroy:function(){this.timeGrid.destroy(),this.dayGrid&&this.dayGrid.destroy(),db.prototype.destroy.call(this)},renderHtml:function(){return'<table><thead><tr><td class="'+this.widgetHeaderClass+'">'+this.timeGrid.headHtml()+'</td></tr></thead><tbody><tr><td class="'+this.widgetContentClass+'">'+(this.dayGrid?'<div class="fc-day-grid"/><hr class="'+this.widgetHeaderClass+'"/>':"")+'<div class="fc-time-grid-container"><div class="fc-time-grid"/></div></td></tr></tbody></table>'},headIntroHtml:function(){var a,b,c,d;return this.opt("weekNumbers")?(a=this.timeGrid.getCell(0).start,b=this.calendar.calculateWeekNumber(a),c=this.opt("weekNumberTitle"),d=this.opt("isRTL")?b+c:c+b,'<th class="fc-axis fc-week-number '+this.widgetHeaderClass+'" '+this.axisStyleAttr()+"><span>"+L(d)+"</span></th>"):'<th class="fc-axis '+this.widgetHeaderClass+'" '+this.axisStyleAttr()+"></th>"},dayIntroHtml:function(){return'<td class="fc-axis '+this.widgetContentClass+'" '+this.axisStyleAttr()+"><span>"+(this.opt("allDayHtml")||L(this.opt("allDayText")))+"</span></td>"},slotBgIntroHtml:function(){return'<td class="fc-axis '+this.widgetContentClass+'" '+this.axisStyleAttr()+"></td>"},introHtml:function(){return'<td class="fc-axis" '+this.axisStyleAttr()+"></td>"},axisStyleAttr:function(){return null!==this.axisWidth?'style="width:'+this.axisWidth+'px"':""},updateSize:function(a){a&&this.timeGrid.resize(),db.prototype.updateSize.call(this,a)},updateWidth:function(){this.axisWidth=r(this.el.find(".fc-axis"))},setHeight:function(a,b){var c,d;null===this.bottomRuleHeight&&(this.bottomRuleHeight=this.bottomRuleEl.outerHeight()),this.bottomRuleEl.hide(),this.scrollerEl.css("overflow",""),t(this.scrollerEl),h(this.noScrollRowEls),this.dayGrid&&(this.dayGrid.destroySegPopover(),c=this.opt("eventLimit"),c&&"number"!=typeof c&&(c=ib),c&&this.dayGrid.limitRows(c)),b||(d=this.computeScrollerHeight(a),s(this.scrollerEl,d)?(g(this.noScrollRowEls,v(this.scrollerEl)),d=this.computeScrollerHeight(a),this.scrollerEl.height(d),this.restoreScroll()):(this.scrollerEl.height(d).css("overflow","hidden"),this.bottomRuleEl.show()))},initializeScroll:function(){function a(){c.scrollerEl.scrollTop(e)}var c=this,d=b.duration(this.opt("scrollTime")),e=this.timeGrid.computeTimeTop(d);e=Math.ceil(e),e&&e++,a(),setTimeout(a,0)},renderEvents:function(a){var b,c,d=[],e=[],f=[];for(c=0;c<a.length;c++)a[c].allDay?d.push(a[c]):e.push(a[c]);b=this.timeGrid.renderEvents(e),this.dayGrid&&(f=this.dayGrid.renderEvents(d)),this.updateHeight()},getEventSegs:function(){return this.timeGrid.getEventSegs().concat(this.dayGrid?this.dayGrid.getEventSegs():[])},destroyEvents:function(){this.recordScroll(),this.timeGrid.destroyEvents(),this.dayGrid&&this.dayGrid.destroyEvents()},renderDrag:function(a,b){return a.start.hasTime()?this.timeGrid.renderDrag(a,b):this.dayGrid?this.dayGrid.renderDrag(a,b):void 0},destroyDrag:function(){this.timeGrid.destroyDrag(),this.dayGrid&&this.dayGrid.destroyDrag()},renderSelection:function(a){a.start.hasTime()||a.end.hasTime()?this.timeGrid.renderSelection(a):this.dayGrid&&this.dayGrid.renderSelection(a)},destroySelection:function(){this.timeGrid.destroySelection(),this.dayGrid&&this.dayGrid.destroySelection()}}),Da.agendaWeek={type:"agenda",duration:{weeks:1}},Da.agendaDay={type:"agenda",duration:{days:1}};var jb=Da.list=db.extend({dayGrid:null,weekNumberWidth:null,headRowEl:null,defultEventLimit:5,viewDateOnLeft:!1,initialize:function(){this.dayGrid=new bb(this),this.coordMap=this.dayGrid.coordMap},setRange:function(a){db.prototype.setRange.call(this,a),this.dayGrid.breakOnWeeks=/year|month|week/.test(this.intervalUnit),this.dayGrid.setRange(a)},render:function(){this.dayGrid.colCnt=1,this.dayGrid.rowCnt=this.dayGrid.cellDates.length,this.dayGrid.numbersVisible=!0,this.opt("viewDateOnLeft")?(this.viewDateOnLeft=this.opt("viewDateOnLeft"),this.el.removeClass("fc-display-date-above")):this.el.addClass("fc-display-date-above"),this.el.addClass("fc-basic-view").html(this.renderHtml()),this.headRowEl=this.el.find("thead .fc-row"),this.scrollerEl=this.el.find(".fc-day-grid-container"),this.dayGrid.coordMap.containerEl=this.scrollerEl,this.dayGrid.el=this.el.find(".fc-day-grid"),this.dayGrid.render(this.hasRigidRows()),db.prototype.render.call(this)},destroy:function(){this.dayGrid.destroy(),db.prototype.destroy.call(this)},renderHtml:function(){return'<table><tbody><tr><td class="'+this.widgetContentClass+'"><div class="fc-day-grid-container"><div class="fc-day-grid"/></div></td></tr></tbody></table>'},headIntroHtml:function(){return this.viewDateOnLeft===!0?'<th class="fc-week-number '+this.widgetHeaderClass+'" '+this.weekNumberStyleAttr()+"><span></span></th>":""},numberIntroHtml:function(a){return this.viewDateOnLeft===!0?'<td class="fc-week-number" '+this.weekNumberStyleAttr()+"><span>"+this.dayGrid.getCell(a,0).start.format("ddd MMM D, YYYY")+"</span></td>":""},dayIntroHtml:function(){return this.viewDateOnLeft===!0?'<td class="fc-week-number '+this.widgetContentClass+'" '+this.weekNumberStyleAttr()+"></td>":""},introHtml:function(){return this.viewDateOnLeft===!0?'<td class="fc-week-number" '+this.weekNumberStyleAttr()+"></td>":""},numberCellHtml:function(a){if(this.viewDateOnLeft===!0)return"<td/>";var b,c=a.start;return b=this.dayGrid.getDayClasses(c),b.unshift("fc-day-number"),'<td class="'+b.join(" ")+'" data-date="'+c.format()+'"><span class="fc-list-header-left">'+c.format("dddd")+'</span><span class="fc-list-header-right">'+c.format("MMM D")+"</span></td>"},weekNumberStyleAttr:function(){return null!==this.weekNumberWidth?'style="width:'+this.weekNumberWidth+'px"':""},hasRigidRows:function(){var a=this.opt("eventLimit");return a===!0&&(a=this.defultEventLimit),a&&"number"!=typeof a},updateWidth:function(){this.weekNumberWidth=r(this.el.find(".fc-week-number"))},setHeight:function(a,b){var c=this.opt("eventLimit");c===!0&&(c=this.defultEventLimit);var d;t(this.scrollerEl),h(this.headRowEl),this.dayGrid.destroySegPopover(),c&&"number"==typeof c&&this.dayGrid.limitRows(c),d=this.computeScrollerHeight(a),this.setGridHeight(d,b),c&&"number"!=typeof c&&this.dayGrid.limitRows(c),!b&&s(this.scrollerEl,d)&&(g(this.headRowEl,v(this.scrollerEl)),d=this.computeScrollerHeight(a),this.scrollerEl.height(d),this.restoreScroll())},setGridHeight:function(a,b){b?q(this.dayGrid.rowEls):p(this.dayGrid.rowEls,a,!0)},renderEvents:function(a){this.dayGrid.renderEvents(a),this.updateHeight(),db.prototype.renderEvents.call(this,a)},getSegs:function(){return this.dayGrid.getSegs()},destroyEvents:function(){db.prototype.destroyEvents.call(this),this.recordScroll(),this.dayGrid.destroyEvents()},renderDrag:function(a,b,c){return this.dayGrid.renderDrag(a,b,c)},destroyDrag:function(){this.dayGrid.destroyDrag()},renderSelection:function(a,b){this.dayGrid.renderSelection(a,b)},destroySelection:function(){this.dayGrid.destroySelection()}});jb.duration={months:1},Da.listMonth={type:"list",duration:{months:1}},Da.listWeek={type:"list",duration:{weeks:1}},Da.listDay={type:"list",duration:{days:1}}});
js/jquery-ui-eo-timepicker.min.js CHANGED
@@ -1,2 +1,2 @@
1
- /*! event-organiser 3.5.1-0-g786a5d5 2017-11-14 21:45 */
2
  !function($){function eoTimepicker(){this.debug=!0,this._curInst=null,this._disabledInputs=[],this._timepickerShowing=!1,this._inDialog=!1,this._dialogClass="ui-timepicker-dialog",this._mainDivId="ui-timepicker-div",this._inlineClass="ui-timepicker-inline",this._currentClass="ui-timepicker-current",this._dayOverClass="ui-timepicker-days-cell-over",this.regional=[],this.regional[""]={hourText:"Hour",minuteText:"Minute",amPmText:["AM","PM"],closeButtonText:"Done",nowButtonText:"Now",deselectButtonText:"Deselect"},this._defaults={showOn:"focus",button:null,showAnim:"fadeIn",showOptions:{},appendText:"",beforeShow:null,onSelect:null,onClose:null,timeSeparator:":",periodSeparator:" ",showPeriod:!1,showPeriodLabels:!0,showLeadingZero:!0,showMinutesLeadingZero:!0,altField:"",defaultTime:"now",myPosition:"left top",atPosition:"left bottom",onHourShow:null,onMinuteShow:null,hours:{starts:0,ends:23},minutes:{starts:0,ends:55,interval:5,manual:[]},rows:4,showHours:!0,showMinutes:!0,optionalMinutes:!1,showCloseButton:!1,showNowButton:!1,showDeselectButton:!1,maxTime:{hour:null,minute:null},minTime:{hour:null,minute:null}},$.extend(this._defaults,this.regional[""]),this.tpDiv=$('<div id="'+this._mainDivId+'" class="ui-timepicker ui-widget ui-helper-clearfix ui-corner-all " style="display: none"></div>')}function extendRemove(a,b){$.extend(a,b);for(var c in b)(null==b[c]||void 0==b[c])&&(a[c]=b[c]);return a}$.extend($.ui,{eotimepicker:{version:"0.3.3"}});var PROP_NAME="eotimepicker",tpuuid=(new Date).getTime();$.extend(eoTimepicker.prototype,{markerClassName:"hasTimepicker",log:function(){this.debug&&console.log.apply("",arguments)},_widgetTimepicker:function(){return this.tpDiv},setDefaults:function(a){return extendRemove(this._defaults,a||{}),this},_attachTimepicker:function(target,settings){var inlineSettings=null;for(var attrName in this._defaults){var attrValue=target.getAttribute("time:"+attrName);if(attrValue){inlineSettings=inlineSettings||{};try{inlineSettings[attrName]=eval(attrValue)}catch(err){inlineSettings[attrName]=attrValue}}}var nodeName=target.nodeName.toLowerCase(),inline="div"==nodeName||"span"==nodeName;target.id||(this.uuid+=1,target.id="tp"+this.uuid);var inst=this._newInst($(target),inline);inst.settings=$.extend({},settings||{},inlineSettings||{}),"input"==nodeName?(this._connectTimepicker(target,inst),this._setTimeFromField(inst)):inline&&this._inlineTimepicker(target,inst)},_newInst:function(a,b){var c=a[0].id.replace(/([^A-Za-z0-9_-])/g,"\\\\$1");return{id:c,input:a,inline:b,tpDiv:b?$('<div class="'+this._inlineClass+' ui-timepicker ui-widget ui-helper-clearfix"></div>'):this.tpDiv}},_connectTimepicker:function(a,b){var c=$(a);b.append=$([]),b.trigger=$([]),c.hasClass(this.markerClassName)||(this._attachments(c,b),c.addClass(this.markerClassName).keydown(this._doKeyDown).keyup(this._doKeyUp).bind("setData.eotimepicker",function(a,c,d){b.settings[c]=d}).bind("getData.eotimepicker",function(a,c){return this._get(b,c)}),$.data(a,PROP_NAME,b))},_getHours:function(a){var b=Array(),c=this._get(a,"hours");for(h=c.starts;h<=c.ends;h++)b.push(h);return b},_getMinutes:function(a){var b=this._get(a,"minutes"),c=Array();for(b.starts||(b.starts=0),b.ends||(b.ends=59),b.manual||(b.manual=[]),m=b.starts;m<=b.ends;m+=b.interval)c.push(m);for(i=0;i<b.manual.length;i++){var d=b.manual[i];"number"!=typeof d||0>d||d>59||$.inArray(d,c)>=0||c.push(d)}return c.sort(function(a,b){return a-b}),c},_modulo:function(a,b){return(a%b+b)%b},_doKeyDown:function(a){var b=$.eotimepicker._getInst(a.target),c=!0;if(b._keyEvent=!0,$.eotimepicker._timepickerShowing){var d=a.ctrlKey||a.metaKey,e=a.shiftKey,f=$.eotimepicker._getHours(b),g=$.eotimepicker._getMinutes(b),h=$.eotimepicker._get(b,"rows"),i=Math.ceil(f.length/h),j=Math.round(g.length/h+.49);switch(a.keyCode){case 9:$.eotimepicker._hideTimepicker(),c=!1;break;case 13:return b.hours=b.hlHours,b.minutes=b.hlMinutes,$.eotimepicker._updateSelectedValue(b),$.eotimepicker._hideTimepicker(),!1;case 27:$.eotimepicker._hideTimepicker();break;case 37:c=d||e,e?$.eotimepicker._moveHighlight(b,-1,"minute"):d&&$.eotimepicker._moveHighlight(b,-1,"hour");break;case 38:c=d||e,e?$.eotimepicker._moveHighlight(b,-j,"minute"):d&&$.eotimepicker._moveHighlight(b,-i,"hour");break;case 39:c=d||e,e?$.eotimepicker._moveHighlight(b,1,"minute"):d&&$.eotimepicker._moveHighlight(b,1,"hour");break;case 40:c=d||e,e?$.eotimepicker._moveHighlight(b,j,"minute"):d&&$.eotimepicker._moveHighlight(b,i,"hour");break;default:c=!1}}else 36==a.keyCode&&a.ctrlKey?$.eotimepicker._showTimepicker(this):c=!1;c&&(a.preventDefault(),a.stopPropagation())},_moveHighlight:function(a,b,c){var d=this._getMinutes(a),e=this._getHours(a),f=this._get(a,"maxTime"),g=this._get(a,"minTime");if("hour"==c.toLowerCase()){var h=$.inArray(a.hlHours,e);a.hlHours=e[this._modulo(h+b,e.length)]}else{var h=$.inArray(a.hlMinutes,d);a.hlMinutes=d[this._modulo(h+b,d.length)]}g.hour&&(a.hlHours=Math.max(a.hlHours,g.hour)),f.hour&&(a.hlHours=Math.min(a.hlHours,f.hour)),g.minute&&a.hlHours<=g.hour&&(a.hlMinutes=Math.max(a.hlMinutes,g.minute)),f.minute&&a.hlHours>=f.hour&&(a.hlMinutes=Math.min(a.hlMinutes,f.minute))},_doKeyUp:function(a){var b=$.eotimepicker._getInst(a.target);$.eotimepicker._setTimeFromField(b),$.eotimepicker._updateTimepicker(b)},_attachments:function(a,b){var c=this._get(b,"appendText"),d=this._get(b,"isRTL");b.append&&b.append.remove(),c&&(b.append=$('<span class="'+this._appendClass+'">'+c+"</span>"),a[d?"before":"after"](b.append)),a.unbind("focus.eotimepicker",this._showTimepicker),a.unbind("click.eotimepicker",this._adjustZIndex),b.trigger&&b.trigger.remove();var e=this._get(b,"showOn");if(("focus"==e||"both"==e)&&(a.bind("focus.eotimepicker",this._showTimepicker),a.bind("click.eotimepicker",this._adjustZIndex)),"button"==e||"both"==e){var f=this._get(b,"button");null==f&&(f=$('<button class="ui-timepicker-trigger" type="button">...</button>'),a.after(f)),$(f).bind("click.eotimepicker",function(){return $.eotimepicker._timepickerShowing&&$.eotimepicker._lastInput==a[0]?$.eotimepicker._hideTimepicker():b.input.is(":disabled")||$.eotimepicker._showTimepicker(a[0]),!1})}},_inlineTimepicker:function(a,b){var c=$(a);c.hasClass(this.markerClassName)||(c.addClass(this.markerClassName).append(b.tpDiv).bind("setData.eotimepicker",function(a,c,d){b.settings[c]=d}).bind("getData.eotimepicker",function(a,c){return this._get(b,c)}),$.data(a,PROP_NAME,b),this._setTimeFromField(b),this._updateTimepicker(b),b.tpDiv.show())},_adjustZIndex:function(a){a=a.target||a;var b=$.eotimepicker._getInst(a);b.tpDiv.css("zIndex",$.eotimepicker._getZIndex(a)+1)},_showTimepicker:function(a){if(a=a.target||a,"input"!=a.nodeName.toLowerCase()&&(a=$("input",a.parentNode)[0]),!$.eotimepicker._isDisabledTimepicker(a)&&$.eotimepicker._lastInput!=a){$.eotimepicker._hideTimepicker();var b=$.eotimepicker._getInst(a);$.eotimepicker._curInst&&$.eotimepicker._curInst!=b&&$.eotimepicker._curInst.tpDiv.stop(!0,!0);var c=$.eotimepicker._get(b,"beforeShow");extendRemove(b.settings,c?c.apply(a,[a,b]):{}),b.lastVal=null,$.eotimepicker._lastInput=a,$.eotimepicker._setTimeFromField(b),b.hlMinutes=b.minutes,b.hlHours=b.hours,$.eotimepicker._inDialog&&(a.value=""),$.eotimepicker._pos||($.eotimepicker._pos=$.eotimepicker._findPos(a),$.eotimepicker._pos[1]+=a.offsetHeight);var d=!1;$(a).parents().each(function(){return d|="fixed"==$(this).css("position"),!d});var e={left:$.eotimepicker._pos[0],top:$.eotimepicker._pos[1]};if($.eotimepicker._pos=null,b.tpDiv.css({position:"absolute",display:"block",top:"-1000px"}),$.eotimepicker._updateTimepicker(b),!b.inline&&"object"==typeof $.ui.position){b.tpDiv.position({of:b.input,my:$.eotimepicker._get(b,"myPosition"),at:$.eotimepicker._get(b,"atPosition"),collision:"flip"});var e=b.tpDiv.offset();$.eotimepicker._pos=[e.top,e.left]}if(b._hoursClicked=!1,b._minutesClicked=!1,e=$.eotimepicker._checkOffset(b,e,d),b.tpDiv.css({position:$.eotimepicker._inDialog&&$.blockUI?"static":d?"fixed":"absolute",display:"none",left:e.left+"px",top:e.top+"px"}),!b.inline){var f=$.eotimepicker._get(b,"showAnim"),g=$.eotimepicker._get(b,"duration"),h=function(){$.eotimepicker._timepickerShowing=!0;var a=$.eotimepicker._getBorders(b.tpDiv);b.tpDiv.find("iframe.ui-timepicker-cover").css({left:-a[0],top:-a[1],width:b.tpDiv.outerWidth(),height:b.tpDiv.outerHeight()})};$.eotimepicker._adjustZIndex(a),$.effects&&$.effects[f]?b.tpDiv.show(f,$.eotimepicker._get(b,"showOptions"),g,h):b.tpDiv.show(f?g:null,h),f&&g||h(),b.input.is(":visible")&&!b.input.is(":disabled")&&b.input.focus(),$.eotimepicker._curInst=b}}},_getZIndex:function(a){for(var b,c,d=$(a),e=0;d.length&&d[0]!==document;)b=d.css("position"),("absolute"===b||"relative"===b||"fixed"===b)&&(c=parseInt(d.css("zIndex"),10),isNaN(c)||0===c||c>e&&(e=c)),d=d.parent();return e},_refreshTimepicker:function(a){var b=this._getInst(a);b&&this._updateTimepicker(b)},_updateTimepicker:function(a){a.tpDiv.empty().append(this._generateHTML(a)),this._rebindDialogEvents(a)},_rebindDialogEvents:function(a){var b=$.eotimepicker._getBorders(a.tpDiv),c=this;a.tpDiv.find("iframe.ui-timepicker-cover").css({left:-b[0],top:-b[1],width:a.tpDiv.outerWidth(),height:a.tpDiv.outerHeight()}).end().find(".ui-timepicker-minute-cell").unbind().bind("click",{fromDoubleClick:!1},$.proxy($.eotimepicker.selectMinutes,this)).bind("dblclick",{fromDoubleClick:!0},$.proxy($.eotimepicker.selectMinutes,this)).end().find(".ui-timepicker-hour-cell").unbind().bind("click",{fromDoubleClick:!1},$.proxy($.eotimepicker.selectHours,this)).bind("dblclick",{fromDoubleClick:!0},$.proxy($.eotimepicker.selectHours,this)).end().find(".ui-timepicker td a").unbind().bind("mouseout",function(){$(this).removeClass("ui-state-hover"),-1!=this.className.indexOf("ui-timepicker-prev")&&$(this).removeClass("ui-timepicker-prev-hover"),-1!=this.className.indexOf("ui-timepicker-next")&&$(this).removeClass("ui-timepicker-next-hover")}).bind("mouseover",function(){c._isDisabledTimepicker(a.inline?a.tpDiv.parent()[0]:a.input[0])||($(this).parents(".ui-timepicker-calendar").find("a").removeClass("ui-state-hover"),$(this).addClass("ui-state-hover"),-1!=this.className.indexOf("ui-timepicker-prev")&&$(this).addClass("ui-timepicker-prev-hover"),-1!=this.className.indexOf("ui-timepicker-next")&&$(this).addClass("ui-timepicker-next-hover"))}).end().find("."+this._dayOverClass+" a").trigger("mouseover").end().find(".ui-timepicker-now").bind("click",function(a){$.eotimepicker.selectNow(a)}).end().find(".ui-timepicker-deselect").bind("click",function(a){$.eotimepicker.deselectTime(a)}).end().find(".ui-timepicker-close").bind("click",function(a){$.eotimepicker._hideTimepicker()}).end()},_generateHTML:function(a){var b,c,d,e=1==this._get(a,"showPeriod"),f=1==this._get(a,"showPeriodLabels"),g=1==this._get(a,"showLeadingZero"),h=1==this._get(a,"showHours"),i=1==this._get(a,"showMinutes"),j=this._get(a,"amPmText"),k=this._get(a,"rows"),l=0,m=0,n=0,o=0,p=0,q=0,r=Array(),s=null,t=0,u=this._get(a,"hourText"),v=this._get(a,"showCloseButton"),w=this._get(a,"closeButtonText"),x=this._get(a,"showNowButton"),y=this._get(a,"nowButtonText"),z=this._get(a,"showDeselectButton"),A=this._get(a,"deselectButtonText"),B=v||x||z;if(r=this._getHours(a),s=Math.ceil(r.length/k),f){for(t=0;t<r.length;t++)r[t]<12?n++:o++;t=0,l=Math.floor(n/r.length*k),m=Math.floor(o/r.length*k),k!=l+m&&(n&&(!o||!l||m&&n/l>=o/m)?l++:m++),p=Math.min(l,1),q=l+1,s=0==l?Math.ceil(o/m):0==m?Math.ceil(n/l):Math.ceil(Math.max(n/l,o/m))}if(d='<table class="ui-timepicker-table ui-widget-content ui-corner-all"><tr>',h){for(d+='<td class="ui-timepicker-hours"><div class="ui-timepicker-title ui-widget-header ui-helper-clearfix ui-corner-all">'+u+'</div><table class="ui-timepicker">',b=1;k>=b;b++){for(d+="<tr>",b==p&&f&&(d+='<th rowspan="'+l.toString()+'" class="periods" scope="row">'+j[0]+"</th>"),b==q&&f&&(d+='<th rowspan="'+m.toString()+'" class="periods" scope="row">'+j[1]+"</th>"),c=1;s>=c;c++)f&&q>b&&r[t]>=12?d+=this._generateHTMLHourCell(a,void 0,e,g):(d+=this._generateHTMLHourCell(a,r[t],e,g),t++);d+="</tr>"}d+="</table></td>"}if(i&&(d+='<td class="ui-timepicker-minutes">',d+=this._generateHTMLMinutes(a),d+="</td>"),d+="</tr>",B){var C='<tr><td colspan="3"><div class="ui-timepicker-buttonpane ui-widget-content">';x&&(C+='<button type="button" class="ui-timepicker-now ui-state-default ui-corner-all" data-timepicker-instance-id="#'+a.id.replace(/\\\\/g,"\\")+'" >'+y+"</button>"),z&&(C+='<button type="button" class="ui-timepicker-deselect ui-state-default ui-corner-all" data-timepicker-instance-id="#'+a.id.replace(/\\\\/g,"\\")+'" >'+A+"</button>"),v&&(C+='<button type="button" class="ui-timepicker-close ui-state-default ui-corner-all" data-timepicker-instance-id="#'+a.id.replace(/\\\\/g,"\\")+'" >'+w+"</button>"),d+=C+"</div></td></tr>"}return d+="</table>"},_updateMinuteDisplay:function(a){var b=this._generateHTMLMinutes(a);a.tpDiv.find("td.ui-timepicker-minutes").html(b),this._rebindDialogEvents(a)},_generateHTMLMinutes:function(a){var b,c,d="",e=this._get(a,"rows"),f=Array(),g=null,h=0,i=1==this._get(a,"showMinutesLeadingZero"),j=this._get(a,"onMinuteShow"),k=this._get(a,"minuteText");if(f=this._getMinutes(a),g=Math.round(f.length/e+.49),j&&0==j.apply(a.input?a.input[0]:null,[a.hours,a.minutes]))for(h=0;h<f.length;h+=1)if(b=f[h],j.apply(a.input?a.input[0]:null,[a.hours,b])){a.minutes=b;break}for(d+='<div class="ui-timepicker-title ui-widget-header ui-helper-clearfix ui-corner-all">'+k+'</div><table class="ui-timepicker">',h=0,c=1;e>=c;c++){for(d+="<tr>";c*g>h;){var b=f[h],l="";void 0!==b&&(l=10>b&&i?"0"+b.toString():b.toString()),d+=this._generateHTMLMinuteCell(a,b,l),h++}d+="</tr>"}return d+="</table>"},_generateHTMLHourCell:function(a,b,c,d){var e=b;b>12&&c&&(e=b-12),0==e&&c&&(e=12),10>e&&d&&(e="0"+e);var f="",g=!0,h=this._get(a,"onHourShow"),i=this._get(a,"maxTime"),j=this._get(a,"minTime");return void 0==b?f='<td><span class="ui-state-default ui-state-disabled">&nbsp;</span></td>':(h&&(g=h.apply(a.input?a.input[0]:null,[b])),g&&(!isNaN(parseInt(i.hour))&&b>i.hour&&(g=!1),!isNaN(parseInt(j.hour))&&b<j.hour&&(g=!1)),f=g?'<td class="ui-timepicker-hour-cell" data-timepicker-instance-id="#'+a.id.replace(/\\\\/g,"\\")+'" data-hour="'+b.toString()+'"><a href="#" class="ui-state-default '+(b==a.hours?"ui-state-active":"")+" "+(b==a.hlHours?"ui-state-hover":"")+'">'+e.toString()+"</a></td>":'<td><span class="ui-state-default ui-state-disabled '+(b==a.hours?" ui-state-active ":" ")+'">'+e.toString()+"</span></td>")},_generateHTMLMinuteCell:function(a,b,c){var d="",e=!0,f=a.hlHours,g=this._get(a,"onMinuteShow"),h=this._get(a,"maxTime"),i=this._get(a,"minTime");return g&&(e=g.apply(a.input?a.input[0]:null,[a.hours,b])),void 0==b?d='<td><span class="ui-state-default ui-state-disabled">&nbsp;</span></td>':(e&&null!==f&&(!isNaN(parseInt(h.hour))&&!isNaN(parseInt(h.minute))&&f>=h.hour&&b>h.minute&&(e=!1),!isNaN(parseInt(i.hour))&&!isNaN(parseInt(i.minute))&&f<=i.hour&&b<i.minute&&(e=!1)),d=e?'<td class="ui-timepicker-minute-cell" data-timepicker-instance-id="#'+a.id.replace(/\\\\/g,"\\")+'" data-minute="'+b.toString()+'" ><a href="#" class="ui-state-default '+(b==a.minutes?"ui-state-active":"")+" "+(b==a.hlMinutes?"ui-state-hover":"")+'" >'+c+"</a></td>":'<td><span class="ui-state-default ui-state-disabled" >'+c+"</span></td>")},_destroyTimepicker:function(a){var b=$(a),c=$.data(a,PROP_NAME);if(b.hasClass(this.markerClassName)){var d=a.nodeName.toLowerCase();$.removeData(a,PROP_NAME),"input"==d?(c.append.remove(),c.trigger.remove(),b.removeClass(this.markerClassName).unbind("focus.eotimepicker",this._showTimepicker).unbind("click.eotimepicker",this._adjustZIndex)):("div"==d||"span"==d)&&b.removeClass(this.markerClassName).empty()}},_enableTimepicker:function(a){var b=$(a),c=b.attr("id"),d=$.data(a,PROP_NAME);if(b.hasClass(this.markerClassName)){var e=a.nodeName.toLowerCase();if("input"==e){a.disabled=!1;var f=this._get(d,"button");$(f).removeClass("ui-state-disabled").disabled=!1,d.trigger.filter("button").each(function(){this.disabled=!1}).end()}else if("div"==e||"span"==e){var g=b.children("."+this._inlineClass);g.children().removeClass("ui-state-disabled"),g.find("button").each(function(){this.disabled=!1})}this._disabledInputs=$.map(this._disabledInputs,function(a){return a==c?null:a})}},_disableTimepicker:function(a){var b=$(a),c=$.data(a,PROP_NAME);if(b.hasClass(this.markerClassName)){var d=a.nodeName.toLowerCase();if("input"==d){var e=this._get(c,"button");$(e).addClass("ui-state-disabled").disabled=!0,a.disabled=!0,c.trigger.filter("button").each(function(){this.disabled=!0}).end()}else if("div"==d||"span"==d){var f=b.children("."+this._inlineClass);f.children().addClass("ui-state-disabled"),f.find("button").each(function(){this.disabled=!0})}this._disabledInputs=$.map(this._disabledInputs,function(b){return b==a?null:b}),this._disabledInputs[this._disabledInputs.length]=b.attr("id")}},_isDisabledTimepicker:function(a){if(!a)return!1;for(var b=0;b<this._disabledInputs.length;b++)if(this._disabledInputs[b]==a)return!0;return!1},_checkOffset:function(a,b,c){var d=a.tpDiv.outerWidth(),e=a.tpDiv.outerHeight(),f=a.input?a.input.outerWidth():0,g=a.input?a.input.outerHeight():0,h=document.documentElement.clientWidth+$(document).scrollLeft(),i=document.documentElement.clientHeight+$(document).scrollTop();return b.left-=this._get(a,"isRTL")?d-f:0,b.left-=c&&b.left==a.input.offset().left?$(document).scrollLeft():0,b.top-=c&&b.top==a.input.offset().top+g?$(document).scrollTop():0,b.left-=Math.min(b.left,b.left+d>h&&h>d?Math.abs(b.left+d-h):0),b.top-=Math.min(b.top,b.top+e>i&&i>e?Math.abs(e+g):0),b},_findPos:function(a){for(var b=this._getInst(a),c=this._get(b,"isRTL");a&&("hidden"==a.type||1!=a.nodeType);)a=a[c?"previousSibling":"nextSibling"];var d=$(a).offset();return[d.left,d.top]},_getBorders:function(a){var b=function(a){return{thin:1,medium:2,thick:3}[a]||a};return[parseFloat(b(a.css("border-left-width"))),parseFloat(b(a.css("border-top-width")))]},_checkExternalClick:function(a){if($.eotimepicker._curInst){var b=$(a.target);b[0].id==$.eotimepicker._mainDivId||0!=b.parents("#"+$.eotimepicker._mainDivId).length||b.hasClass($.eotimepicker.markerClassName)||b.hasClass($.eotimepicker._triggerClass)||!$.eotimepicker._timepickerShowing||$.eotimepicker._inDialog&&$.blockUI||$.eotimepicker._hideTimepicker()}},_hideTimepicker:function(a){var b=this._curInst;if(b&&(!a||b==$.data(a,PROP_NAME))&&this._timepickerShowing){var c=this._get(b,"showAnim"),d=this._get(b,"duration"),e=function(){$.eotimepicker._tidyDialog(b),this._curInst=null};$.effects&&$.effects[c]?b.tpDiv.hide(c,$.eotimepicker._get(b,"showOptions"),d,e):b.tpDiv["slideDown"==c?"slideUp":"fadeIn"==c?"fadeOut":"hide"](c?d:null,e),c||e(),this._timepickerShowing=!1,this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),$.blockUI&&($.unblockUI(),$("body").append(this.tpDiv))),this._inDialog=!1;var f=this._get(b,"onClose");f&&f.apply(b.input?b.input[0]:null,[b.input?b.input.val():"",b])}},_tidyDialog:function(a){a.tpDiv.removeClass(this._dialogClass).unbind(".ui-timepicker")},_getInst:function(a){try{return $.data(a,PROP_NAME)}catch(b){throw"Missing instance data for this timepicker"}},_get:function(a,b){return void 0!==a.settings[b]?a.settings[b]:this._defaults[b]},_setTimeFromField:function(a){if(a.input.val()!=a.lastVal){var b=this._get(a,"defaultTime"),c="now"==b?this._getCurrentTimeRounded(a):b;if(0==a.inline&&""!=a.input.val()&&(c=a.input.val()),c instanceof Date)a.hours=c.getHours(),a.minutes=c.getMinutes();else{var d=a.lastVal=c;if(""==c)a.hours=-1,a.minutes=-1;else{var e=this.parseTime(a,d);a.hours=e.hours,a.minutes=e.minutes}}$.eotimepicker._updateTimepicker(a)}},_optionTimepicker:function(a,b,c){var d=this._getInst(a);if(2==arguments.length&&"string"==typeof b)return"defaults"==b?$.extend({},$.eotimepicker._defaults):d?"all"==b?$.extend({},d.settings):this._get(d,b):null;var e=b||{};"string"==typeof b&&(e={},e[b]=c),d&&(extendRemove(d.settings,e),this._curInst==d&&(this._hideTimepicker(),this._updateTimepicker(d)),d.inline&&this._updateTimepicker(d))},_setTimeTimepicker:function(a,b){var c=this._getInst(a);c&&(this._setTime(c,b),this._updateTimepicker(c),this._updateAlternate(c,b))},_setTime:function(a,b,c){var d=a.hours,e=a.minutes;if(b instanceof Date)a.hours=b.getHours(),a.minutes=b.getMinutes();else{var b=this.parseTime(a,b);a.hours=b.hours,a.minutes=b.minutes}d==a.hours&&e==a.minutes||c||a.input.trigger("change"),this._updateTimepicker(a),this._updateSelectedValue(a)},_getCurrentTimeRounded:function(a){var b=new Date,c=b.getMinutes(),d=this._get(a,"minutes"),e=Math.round(c/d.interval)*d.interval;return b.setMinutes(e),b},parseTime:function(a,b){var c=new Object;if(c.hours=-1,c.minutes=-1,!b)return"";var d=this._get(a,"timeSeparator"),e=this._get(a,"amPmText"),f=this._get(a,"showHours"),g=this._get(a,"showMinutes"),h=this._get(a,"optionalMinutes"),i=1==this._get(a,"showPeriod"),j=b.indexOf(d);if(-1!=j?(c.hours=parseInt(b.substr(0,j),10),c.minutes=parseInt(b.substr(j+1),10)):!f||g&&!h?!f&&g&&(c.minutes=parseInt(b,10)):c.hours=parseInt(b,10),f){var k=b.toUpperCase();c.hours<12&&i&&-1!=k.indexOf(e[1].toUpperCase())&&(c.hours+=12),12==c.hours&&i&&-1!=k.indexOf(e[0].toUpperCase())&&(c.hours=0)}return c},selectNow:function(a){var b=$(a.target).attr("data-timepicker-instance-id"),c=$(b),d=this._getInst(c[0]),e=new Date;d.hours=e.getHours(),d.minutes=e.getMinutes(),this._updateSelectedValue(d),this._updateTimepicker(d),this._hideTimepicker()},deselectTime:function(a){var b=$(a.target).attr("data-timepicker-instance-id"),c=$(b),d=this._getInst(c[0]);d.hours=-1,d.minutes=-1,this._updateSelectedValue(d),this._hideTimepicker()},selectHours:function(a){var b=$(a.currentTarget),c=b.attr("data-timepicker-instance-id"),d=parseInt(b.attr("data-hour")),e=a.data.fromDoubleClick,f=$(c),g=this._getInst(f[0]),h=1==this._get(g,"showMinutes");if($.eotimepicker._isDisabledTimepicker(f.attr("id")))return!1;b.parents(".ui-timepicker-hours:first").find("a").removeClass("ui-state-active"),b.children("a").addClass("ui-state-active"),g.hours=d;var i=this._get(g,"onMinuteShow"),j=this._get(g,"maxTime"),k=this._get(g,"minTime");return(i||j.minute||k.minute)&&this._updateMinuteDisplay(g),this._updateSelectedValue(g),g._hoursClicked=!0,(g._minutesClicked||e||0==h)&&$.eotimepicker._hideTimepicker(),!1},selectMinutes:function(a){var b=$(a.currentTarget),c=b.attr("data-timepicker-instance-id"),d=parseInt(b.attr("data-minute")),e=a.data.fromDoubleClick,f=$(c),g=this._getInst(f[0]),h=1==this._get(g,"showHours");return $.eotimepicker._isDisabledTimepicker(f.attr("id"))?!1:(b.parents(".ui-timepicker-minutes:first").find("a").removeClass("ui-state-active"),b.children("a").addClass("ui-state-active"),g.minutes=d,this._updateSelectedValue(g),g._minutesClicked=!0,g._hoursClicked||e||0==h?($.eotimepicker._hideTimepicker(),!1):!1)},_updateSelectedValue:function(a){var b=this._getParsedTime(a);a.input&&(a.input.val(b),a.input.trigger("change"));var c=this._get(a,"onSelect");return c&&c.apply(a.input?a.input[0]:null,[b,a]),this._updateAlternate(a,b),b},_getParsedTime:function(a){if(-1==a.hours&&-1==a.minutes)return"";(a.hours<a.hours.starts||a.hours>a.hours.ends)&&(a.hours=0),(a.minutes<a.minutes.starts||a.minutes>a.minutes.ends)&&(a.minutes=0);var b="",c=1==this._get(a,"showPeriod"),d=1==this._get(a,"showLeadingZero"),e=1==this._get(a,"showHours"),f=1==this._get(a,"showMinutes"),g=1==this._get(a,"optionalMinutes"),h=this._get(a,"amPmText"),i=a.hours?a.hours:0,j=a.minutes?a.minutes:0,k=i?i:0,l="";-1==k&&(k=0),-1==j&&(j=0),c&&(0==a.hours&&(k=12),a.hours<12?b=h[0]:(b=h[1],k>12&&(k-=12)));var m=k.toString();d&&10>k&&(m="0"+m);var n=j.toString();return 10>j&&(n="0"+n),e&&(l+=m),!e||!f||g&&0==n||(l+=this._get(a,"timeSeparator")),!f||g&&0==n||(l+=n),e&&b.length>0&&(l+=this._get(a,"periodSeparator")+b),l},_updateAlternate:function(a,b){var c=this._get(a,"altField");c&&$(c).each(function(a,c){$(c).val(b)})},_getTimeAsDateTimepicker:function(a){var b=this._getInst(a);return-1==b.hours&&-1==b.minutes?"":((b.hours<b.hours.starts||b.hours>b.hours.ends)&&(b.hours=0),(b.minutes<b.minutes.starts||b.minutes>b.minutes.ends)&&(b.minutes=0),new Date(0,0,0,b.hours,b.minutes,0))},_getTimeTimepicker:function(a){var b=this._getInst(a);return this._getParsedTime(b)},_getHourTimepicker:function(a){var b=this._getInst(a);return void 0==b?-1:b.hours},_getMinuteTimepicker:function(a){var b=this._getInst(a);return void 0==b?-1:b.minutes}}),$.fn.eotimepicker=function(a){$.eotimepicker.initialized||($(document).mousedown($.eotimepicker._checkExternalClick),$.eotimepicker.initialized=!0),0===$("#"+$.eotimepicker._mainDivId).length&&$("body").append($.eotimepicker.tpDiv);var b=Array.prototype.slice.call(arguments,1);return"string"!=typeof a||"getTime"!=a&&"getTimeAsDate"!=a&&"getHour"!=a&&"getMinute"!=a?"option"==a&&2==arguments.length&&"string"==typeof arguments[1]?$.eotimepicker["_"+a+"Timepicker"].apply($.eotimepicker,[this[0]].concat(b)):this.each(function(){"string"==typeof a?$.eotimepicker["_"+a+"Timepicker"].apply($.eotimepicker,[this].concat(b)):$.eotimepicker._attachTimepicker(this,a)}):$.eotimepicker["_"+a+"Timepicker"].apply($.eotimepicker,[this[0]].concat(b))},$.eotimepicker=new eoTimepicker,$.eotimepicker.initialized=!1,$.eotimepicker.uuid=(new Date).getTime(),$.eotimepicker.version="0.3.3",window["TP_jQuery_"+tpuuid]=$}(jQuery);
1
+ /*! event-organiser 3.6.0-0-g619ade6 2017-11-25 22:52 */
2
  !function($){function eoTimepicker(){this.debug=!0,this._curInst=null,this._disabledInputs=[],this._timepickerShowing=!1,this._inDialog=!1,this._dialogClass="ui-timepicker-dialog",this._mainDivId="ui-timepicker-div",this._inlineClass="ui-timepicker-inline",this._currentClass="ui-timepicker-current",this._dayOverClass="ui-timepicker-days-cell-over",this.regional=[],this.regional[""]={hourText:"Hour",minuteText:"Minute",amPmText:["AM","PM"],closeButtonText:"Done",nowButtonText:"Now",deselectButtonText:"Deselect"},this._defaults={showOn:"focus",button:null,showAnim:"fadeIn",showOptions:{},appendText:"",beforeShow:null,onSelect:null,onClose:null,timeSeparator:":",periodSeparator:" ",showPeriod:!1,showPeriodLabels:!0,showLeadingZero:!0,showMinutesLeadingZero:!0,altField:"",defaultTime:"now",myPosition:"left top",atPosition:"left bottom",onHourShow:null,onMinuteShow:null,hours:{starts:0,ends:23},minutes:{starts:0,ends:55,interval:5,manual:[]},rows:4,showHours:!0,showMinutes:!0,optionalMinutes:!1,showCloseButton:!1,showNowButton:!1,showDeselectButton:!1,maxTime:{hour:null,minute:null},minTime:{hour:null,minute:null}},$.extend(this._defaults,this.regional[""]),this.tpDiv=$('<div id="'+this._mainDivId+'" class="ui-timepicker ui-widget ui-helper-clearfix ui-corner-all " style="display: none"></div>')}function extendRemove(a,b){$.extend(a,b);for(var c in b)(null==b[c]||void 0==b[c])&&(a[c]=b[c]);return a}$.extend($.ui,{eotimepicker:{version:"0.3.3"}});var PROP_NAME="eotimepicker",tpuuid=(new Date).getTime();$.extend(eoTimepicker.prototype,{markerClassName:"hasTimepicker",log:function(){this.debug&&console.log.apply("",arguments)},_widgetTimepicker:function(){return this.tpDiv},setDefaults:function(a){return extendRemove(this._defaults,a||{}),this},_attachTimepicker:function(target,settings){var inlineSettings=null;for(var attrName in this._defaults){var attrValue=target.getAttribute("time:"+attrName);if(attrValue){inlineSettings=inlineSettings||{};try{inlineSettings[attrName]=eval(attrValue)}catch(err){inlineSettings[attrName]=attrValue}}}var nodeName=target.nodeName.toLowerCase(),inline="div"==nodeName||"span"==nodeName;target.id||(this.uuid+=1,target.id="tp"+this.uuid);var inst=this._newInst($(target),inline);inst.settings=$.extend({},settings||{},inlineSettings||{}),"input"==nodeName?(this._connectTimepicker(target,inst),this._setTimeFromField(inst)):inline&&this._inlineTimepicker(target,inst)},_newInst:function(a,b){var c=a[0].id.replace(/([^A-Za-z0-9_-])/g,"\\\\$1");return{id:c,input:a,inline:b,tpDiv:b?$('<div class="'+this._inlineClass+' ui-timepicker ui-widget ui-helper-clearfix"></div>'):this.tpDiv}},_connectTimepicker:function(a,b){var c=$(a);b.append=$([]),b.trigger=$([]),c.hasClass(this.markerClassName)||(this._attachments(c,b),c.addClass(this.markerClassName).keydown(this._doKeyDown).keyup(this._doKeyUp).bind("setData.eotimepicker",function(a,c,d){b.settings[c]=d}).bind("getData.eotimepicker",function(a,c){return this._get(b,c)}),$.data(a,PROP_NAME,b))},_getHours:function(a){var b=Array(),c=this._get(a,"hours");for(h=c.starts;h<=c.ends;h++)b.push(h);return b},_getMinutes:function(a){var b=this._get(a,"minutes"),c=Array();for(b.starts||(b.starts=0),b.ends||(b.ends=59),b.manual||(b.manual=[]),m=b.starts;m<=b.ends;m+=b.interval)c.push(m);for(i=0;i<b.manual.length;i++){var d=b.manual[i];"number"!=typeof d||0>d||d>59||$.inArray(d,c)>=0||c.push(d)}return c.sort(function(a,b){return a-b}),c},_modulo:function(a,b){return(a%b+b)%b},_doKeyDown:function(a){var b=$.eotimepicker._getInst(a.target),c=!0;if(b._keyEvent=!0,$.eotimepicker._timepickerShowing){var d=a.ctrlKey||a.metaKey,e=a.shiftKey,f=$.eotimepicker._getHours(b),g=$.eotimepicker._getMinutes(b),h=$.eotimepicker._get(b,"rows"),i=Math.ceil(f.length/h),j=Math.round(g.length/h+.49);switch(a.keyCode){case 9:$.eotimepicker._hideTimepicker(),c=!1;break;case 13:return b.hours=b.hlHours,b.minutes=b.hlMinutes,$.eotimepicker._updateSelectedValue(b),$.eotimepicker._hideTimepicker(),!1;case 27:$.eotimepicker._hideTimepicker();break;case 37:c=d||e,e?$.eotimepicker._moveHighlight(b,-1,"minute"):d&&$.eotimepicker._moveHighlight(b,-1,"hour");break;case 38:c=d||e,e?$.eotimepicker._moveHighlight(b,-j,"minute"):d&&$.eotimepicker._moveHighlight(b,-i,"hour");break;case 39:c=d||e,e?$.eotimepicker._moveHighlight(b,1,"minute"):d&&$.eotimepicker._moveHighlight(b,1,"hour");break;case 40:c=d||e,e?$.eotimepicker._moveHighlight(b,j,"minute"):d&&$.eotimepicker._moveHighlight(b,i,"hour");break;default:c=!1}}else 36==a.keyCode&&a.ctrlKey?$.eotimepicker._showTimepicker(this):c=!1;c&&(a.preventDefault(),a.stopPropagation())},_moveHighlight:function(a,b,c){var d=this._getMinutes(a),e=this._getHours(a),f=this._get(a,"maxTime"),g=this._get(a,"minTime");if("hour"==c.toLowerCase()){var h=$.inArray(a.hlHours,e);a.hlHours=e[this._modulo(h+b,e.length)]}else{var h=$.inArray(a.hlMinutes,d);a.hlMinutes=d[this._modulo(h+b,d.length)]}g.hour&&(a.hlHours=Math.max(a.hlHours,g.hour)),f.hour&&(a.hlHours=Math.min(a.hlHours,f.hour)),g.minute&&a.hlHours<=g.hour&&(a.hlMinutes=Math.max(a.hlMinutes,g.minute)),f.minute&&a.hlHours>=f.hour&&(a.hlMinutes=Math.min(a.hlMinutes,f.minute))},_doKeyUp:function(a){var b=$.eotimepicker._getInst(a.target);$.eotimepicker._setTimeFromField(b),$.eotimepicker._updateTimepicker(b)},_attachments:function(a,b){var c=this._get(b,"appendText"),d=this._get(b,"isRTL");b.append&&b.append.remove(),c&&(b.append=$('<span class="'+this._appendClass+'">'+c+"</span>"),a[d?"before":"after"](b.append)),a.unbind("focus.eotimepicker",this._showTimepicker),a.unbind("click.eotimepicker",this._adjustZIndex),b.trigger&&b.trigger.remove();var e=this._get(b,"showOn");if(("focus"==e||"both"==e)&&(a.bind("focus.eotimepicker",this._showTimepicker),a.bind("click.eotimepicker",this._adjustZIndex)),"button"==e||"both"==e){var f=this._get(b,"button");null==f&&(f=$('<button class="ui-timepicker-trigger" type="button">...</button>'),a.after(f)),$(f).bind("click.eotimepicker",function(){return $.eotimepicker._timepickerShowing&&$.eotimepicker._lastInput==a[0]?$.eotimepicker._hideTimepicker():b.input.is(":disabled")||$.eotimepicker._showTimepicker(a[0]),!1})}},_inlineTimepicker:function(a,b){var c=$(a);c.hasClass(this.markerClassName)||(c.addClass(this.markerClassName).append(b.tpDiv).bind("setData.eotimepicker",function(a,c,d){b.settings[c]=d}).bind("getData.eotimepicker",function(a,c){return this._get(b,c)}),$.data(a,PROP_NAME,b),this._setTimeFromField(b),this._updateTimepicker(b),b.tpDiv.show())},_adjustZIndex:function(a){a=a.target||a;var b=$.eotimepicker._getInst(a);b.tpDiv.css("zIndex",$.eotimepicker._getZIndex(a)+1)},_showTimepicker:function(a){if(a=a.target||a,"input"!=a.nodeName.toLowerCase()&&(a=$("input",a.parentNode)[0]),!$.eotimepicker._isDisabledTimepicker(a)&&$.eotimepicker._lastInput!=a){$.eotimepicker._hideTimepicker();var b=$.eotimepicker._getInst(a);$.eotimepicker._curInst&&$.eotimepicker._curInst!=b&&$.eotimepicker._curInst.tpDiv.stop(!0,!0);var c=$.eotimepicker._get(b,"beforeShow");extendRemove(b.settings,c?c.apply(a,[a,b]):{}),b.lastVal=null,$.eotimepicker._lastInput=a,$.eotimepicker._setTimeFromField(b),b.hlMinutes=b.minutes,b.hlHours=b.hours,$.eotimepicker._inDialog&&(a.value=""),$.eotimepicker._pos||($.eotimepicker._pos=$.eotimepicker._findPos(a),$.eotimepicker._pos[1]+=a.offsetHeight);var d=!1;$(a).parents().each(function(){return d|="fixed"==$(this).css("position"),!d});var e={left:$.eotimepicker._pos[0],top:$.eotimepicker._pos[1]};if($.eotimepicker._pos=null,b.tpDiv.css({position:"absolute",display:"block",top:"-1000px"}),$.eotimepicker._updateTimepicker(b),!b.inline&&"object"==typeof $.ui.position){b.tpDiv.position({of:b.input,my:$.eotimepicker._get(b,"myPosition"),at:$.eotimepicker._get(b,"atPosition"),collision:"flip"});var e=b.tpDiv.offset();$.eotimepicker._pos=[e.top,e.left]}if(b._hoursClicked=!1,b._minutesClicked=!1,e=$.eotimepicker._checkOffset(b,e,d),b.tpDiv.css({position:$.eotimepicker._inDialog&&$.blockUI?"static":d?"fixed":"absolute",display:"none",left:e.left+"px",top:e.top+"px"}),!b.inline){var f=$.eotimepicker._get(b,"showAnim"),g=$.eotimepicker._get(b,"duration"),h=function(){$.eotimepicker._timepickerShowing=!0;var a=$.eotimepicker._getBorders(b.tpDiv);b.tpDiv.find("iframe.ui-timepicker-cover").css({left:-a[0],top:-a[1],width:b.tpDiv.outerWidth(),height:b.tpDiv.outerHeight()})};$.eotimepicker._adjustZIndex(a),$.effects&&$.effects[f]?b.tpDiv.show(f,$.eotimepicker._get(b,"showOptions"),g,h):b.tpDiv.show(f?g:null,h),f&&g||h(),b.input.is(":visible")&&!b.input.is(":disabled")&&b.input.focus(),$.eotimepicker._curInst=b}}},_getZIndex:function(a){for(var b,c,d=$(a),e=0;d.length&&d[0]!==document;)b=d.css("position"),("absolute"===b||"relative"===b||"fixed"===b)&&(c=parseInt(d.css("zIndex"),10),isNaN(c)||0===c||c>e&&(e=c)),d=d.parent();return e},_refreshTimepicker:function(a){var b=this._getInst(a);b&&this._updateTimepicker(b)},_updateTimepicker:function(a){a.tpDiv.empty().append(this._generateHTML(a)),this._rebindDialogEvents(a)},_rebindDialogEvents:function(a){var b=$.eotimepicker._getBorders(a.tpDiv),c=this;a.tpDiv.find("iframe.ui-timepicker-cover").css({left:-b[0],top:-b[1],width:a.tpDiv.outerWidth(),height:a.tpDiv.outerHeight()}).end().find(".ui-timepicker-minute-cell").unbind().bind("click",{fromDoubleClick:!1},$.proxy($.eotimepicker.selectMinutes,this)).bind("dblclick",{fromDoubleClick:!0},$.proxy($.eotimepicker.selectMinutes,this)).end().find(".ui-timepicker-hour-cell").unbind().bind("click",{fromDoubleClick:!1},$.proxy($.eotimepicker.selectHours,this)).bind("dblclick",{fromDoubleClick:!0},$.proxy($.eotimepicker.selectHours,this)).end().find(".ui-timepicker td a").unbind().bind("mouseout",function(){$(this).removeClass("ui-state-hover"),-1!=this.className.indexOf("ui-timepicker-prev")&&$(this).removeClass("ui-timepicker-prev-hover"),-1!=this.className.indexOf("ui-timepicker-next")&&$(this).removeClass("ui-timepicker-next-hover")}).bind("mouseover",function(){c._isDisabledTimepicker(a.inline?a.tpDiv.parent()[0]:a.input[0])||($(this).parents(".ui-timepicker-calendar").find("a").removeClass("ui-state-hover"),$(this).addClass("ui-state-hover"),-1!=this.className.indexOf("ui-timepicker-prev")&&$(this).addClass("ui-timepicker-prev-hover"),-1!=this.className.indexOf("ui-timepicker-next")&&$(this).addClass("ui-timepicker-next-hover"))}).end().find("."+this._dayOverClass+" a").trigger("mouseover").end().find(".ui-timepicker-now").bind("click",function(a){$.eotimepicker.selectNow(a)}).end().find(".ui-timepicker-deselect").bind("click",function(a){$.eotimepicker.deselectTime(a)}).end().find(".ui-timepicker-close").bind("click",function(a){$.eotimepicker._hideTimepicker()}).end()},_generateHTML:function(a){var b,c,d,e=1==this._get(a,"showPeriod"),f=1==this._get(a,"showPeriodLabels"),g=1==this._get(a,"showLeadingZero"),h=1==this._get(a,"showHours"),i=1==this._get(a,"showMinutes"),j=this._get(a,"amPmText"),k=this._get(a,"rows"),l=0,m=0,n=0,o=0,p=0,q=0,r=Array(),s=null,t=0,u=this._get(a,"hourText"),v=this._get(a,"showCloseButton"),w=this._get(a,"closeButtonText"),x=this._get(a,"showNowButton"),y=this._get(a,"nowButtonText"),z=this._get(a,"showDeselectButton"),A=this._get(a,"deselectButtonText"),B=v||x||z;if(r=this._getHours(a),s=Math.ceil(r.length/k),f){for(t=0;t<r.length;t++)r[t]<12?n++:o++;t=0,l=Math.floor(n/r.length*k),m=Math.floor(o/r.length*k),k!=l+m&&(n&&(!o||!l||m&&n/l>=o/m)?l++:m++),p=Math.min(l,1),q=l+1,s=0==l?Math.ceil(o/m):0==m?Math.ceil(n/l):Math.ceil(Math.max(n/l,o/m))}if(d='<table class="ui-timepicker-table ui-widget-content ui-corner-all"><tr>',h){for(d+='<td class="ui-timepicker-hours"><div class="ui-timepicker-title ui-widget-header ui-helper-clearfix ui-corner-all">'+u+'</div><table class="ui-timepicker">',b=1;k>=b;b++){for(d+="<tr>",b==p&&f&&(d+='<th rowspan="'+l.toString()+'" class="periods" scope="row">'+j[0]+"</th>"),b==q&&f&&(d+='<th rowspan="'+m.toString()+'" class="periods" scope="row">'+j[1]+"</th>"),c=1;s>=c;c++)f&&q>b&&r[t]>=12?d+=this._generateHTMLHourCell(a,void 0,e,g):(d+=this._generateHTMLHourCell(a,r[t],e,g),t++);d+="</tr>"}d+="</table></td>"}if(i&&(d+='<td class="ui-timepicker-minutes">',d+=this._generateHTMLMinutes(a),d+="</td>"),d+="</tr>",B){var C='<tr><td colspan="3"><div class="ui-timepicker-buttonpane ui-widget-content">';x&&(C+='<button type="button" class="ui-timepicker-now ui-state-default ui-corner-all" data-timepicker-instance-id="#'+a.id.replace(/\\\\/g,"\\")+'" >'+y+"</button>"),z&&(C+='<button type="button" class="ui-timepicker-deselect ui-state-default ui-corner-all" data-timepicker-instance-id="#'+a.id.replace(/\\\\/g,"\\")+'" >'+A+"</button>"),v&&(C+='<button type="button" class="ui-timepicker-close ui-state-default ui-corner-all" data-timepicker-instance-id="#'+a.id.replace(/\\\\/g,"\\")+'" >'+w+"</button>"),d+=C+"</div></td></tr>"}return d+="</table>"},_updateMinuteDisplay:function(a){var b=this._generateHTMLMinutes(a);a.tpDiv.find("td.ui-timepicker-minutes").html(b),this._rebindDialogEvents(a)},_generateHTMLMinutes:function(a){var b,c,d="",e=this._get(a,"rows"),f=Array(),g=null,h=0,i=1==this._get(a,"showMinutesLeadingZero"),j=this._get(a,"onMinuteShow"),k=this._get(a,"minuteText");if(f=this._getMinutes(a),g=Math.round(f.length/e+.49),j&&0==j.apply(a.input?a.input[0]:null,[a.hours,a.minutes]))for(h=0;h<f.length;h+=1)if(b=f[h],j.apply(a.input?a.input[0]:null,[a.hours,b])){a.minutes=b;break}for(d+='<div class="ui-timepicker-title ui-widget-header ui-helper-clearfix ui-corner-all">'+k+'</div><table class="ui-timepicker">',h=0,c=1;e>=c;c++){for(d+="<tr>";c*g>h;){var b=f[h],l="";void 0!==b&&(l=10>b&&i?"0"+b.toString():b.toString()),d+=this._generateHTMLMinuteCell(a,b,l),h++}d+="</tr>"}return d+="</table>"},_generateHTMLHourCell:function(a,b,c,d){var e=b;b>12&&c&&(e=b-12),0==e&&c&&(e=12),10>e&&d&&(e="0"+e);var f="",g=!0,h=this._get(a,"onHourShow"),i=this._get(a,"maxTime"),j=this._get(a,"minTime");return void 0==b?f='<td><span class="ui-state-default ui-state-disabled">&nbsp;</span></td>':(h&&(g=h.apply(a.input?a.input[0]:null,[b])),g&&(!isNaN(parseInt(i.hour))&&b>i.hour&&(g=!1),!isNaN(parseInt(j.hour))&&b<j.hour&&(g=!1)),f=g?'<td class="ui-timepicker-hour-cell" data-timepicker-instance-id="#'+a.id.replace(/\\\\/g,"\\")+'" data-hour="'+b.toString()+'"><a href="#" class="ui-state-default '+(b==a.hours?"ui-state-active":"")+" "+(b==a.hlHours?"ui-state-hover":"")+'">'+e.toString()+"</a></td>":'<td><span class="ui-state-default ui-state-disabled '+(b==a.hours?" ui-state-active ":" ")+'">'+e.toString()+"</span></td>")},_generateHTMLMinuteCell:function(a,b,c){var d="",e=!0,f=a.hlHours,g=this._get(a,"onMinuteShow"),h=this._get(a,"maxTime"),i=this._get(a,"minTime");return g&&(e=g.apply(a.input?a.input[0]:null,[a.hours,b])),void 0==b?d='<td><span class="ui-state-default ui-state-disabled">&nbsp;</span></td>':(e&&null!==f&&(!isNaN(parseInt(h.hour))&&!isNaN(parseInt(h.minute))&&f>=h.hour&&b>h.minute&&(e=!1),!isNaN(parseInt(i.hour))&&!isNaN(parseInt(i.minute))&&f<=i.hour&&b<i.minute&&(e=!1)),d=e?'<td class="ui-timepicker-minute-cell" data-timepicker-instance-id="#'+a.id.replace(/\\\\/g,"\\")+'" data-minute="'+b.toString()+'" ><a href="#" class="ui-state-default '+(b==a.minutes?"ui-state-active":"")+" "+(b==a.hlMinutes?"ui-state-hover":"")+'" >'+c+"</a></td>":'<td><span class="ui-state-default ui-state-disabled" >'+c+"</span></td>")},_destroyTimepicker:function(a){var b=$(a),c=$.data(a,PROP_NAME);if(b.hasClass(this.markerClassName)){var d=a.nodeName.toLowerCase();$.removeData(a,PROP_NAME),"input"==d?(c.append.remove(),c.trigger.remove(),b.removeClass(this.markerClassName).unbind("focus.eotimepicker",this._showTimepicker).unbind("click.eotimepicker",this._adjustZIndex)):("div"==d||"span"==d)&&b.removeClass(this.markerClassName).empty()}},_enableTimepicker:function(a){var b=$(a),c=b.attr("id"),d=$.data(a,PROP_NAME);if(b.hasClass(this.markerClassName)){var e=a.nodeName.toLowerCase();if("input"==e){a.disabled=!1;var f=this._get(d,"button");$(f).removeClass("ui-state-disabled").disabled=!1,d.trigger.filter("button").each(function(){this.disabled=!1}).end()}else if("div"==e||"span"==e){var g=b.children("."+this._inlineClass);g.children().removeClass("ui-state-disabled"),g.find("button").each(function(){this.disabled=!1})}this._disabledInputs=$.map(this._disabledInputs,function(a){return a==c?null:a})}},_disableTimepicker:function(a){var b=$(a),c=$.data(a,PROP_NAME);if(b.hasClass(this.markerClassName)){var d=a.nodeName.toLowerCase();if("input"==d){var e=this._get(c,"button");$(e).addClass("ui-state-disabled").disabled=!0,a.disabled=!0,c.trigger.filter("button").each(function(){this.disabled=!0}).end()}else if("div"==d||"span"==d){var f=b.children("."+this._inlineClass);f.children().addClass("ui-state-disabled"),f.find("button").each(function(){this.disabled=!0})}this._disabledInputs=$.map(this._disabledInputs,function(b){return b==a?null:b}),this._disabledInputs[this._disabledInputs.length]=b.attr("id")}},_isDisabledTimepicker:function(a){if(!a)return!1;for(var b=0;b<this._disabledInputs.length;b++)if(this._disabledInputs[b]==a)return!0;return!1},_checkOffset:function(a,b,c){var d=a.tpDiv.outerWidth(),e=a.tpDiv.outerHeight(),f=a.input?a.input.outerWidth():0,g=a.input?a.input.outerHeight():0,h=document.documentElement.clientWidth+$(document).scrollLeft(),i=document.documentElement.clientHeight+$(document).scrollTop();return b.left-=this._get(a,"isRTL")?d-f:0,b.left-=c&&b.left==a.input.offset().left?$(document).scrollLeft():0,b.top-=c&&b.top==a.input.offset().top+g?$(document).scrollTop():0,b.left-=Math.min(b.left,b.left+d>h&&h>d?Math.abs(b.left+d-h):0),b.top-=Math.min(b.top,b.top+e>i&&i>e?Math.abs(e+g):0),b},_findPos:function(a){for(var b=this._getInst(a),c=this._get(b,"isRTL");a&&("hidden"==a.type||1!=a.nodeType);)a=a[c?"previousSibling":"nextSibling"];var d=$(a).offset();return[d.left,d.top]},_getBorders:function(a){var b=function(a){return{thin:1,medium:2,thick:3}[a]||a};return[parseFloat(b(a.css("border-left-width"))),parseFloat(b(a.css("border-top-width")))]},_checkExternalClick:function(a){if($.eotimepicker._curInst){var b=$(a.target);b[0].id==$.eotimepicker._mainDivId||0!=b.parents("#"+$.eotimepicker._mainDivId).length||b.hasClass($.eotimepicker.markerClassName)||b.hasClass($.eotimepicker._triggerClass)||!$.eotimepicker._timepickerShowing||$.eotimepicker._inDialog&&$.blockUI||$.eotimepicker._hideTimepicker()}},_hideTimepicker:function(a){var b=this._curInst;if(b&&(!a||b==$.data(a,PROP_NAME))&&this._timepickerShowing){var c=this._get(b,"showAnim"),d=this._get(b,"duration"),e=function(){$.eotimepicker._tidyDialog(b),this._curInst=null};$.effects&&$.effects[c]?b.tpDiv.hide(c,$.eotimepicker._get(b,"showOptions"),d,e):b.tpDiv["slideDown"==c?"slideUp":"fadeIn"==c?"fadeOut":"hide"](c?d:null,e),c||e(),this._timepickerShowing=!1,this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),$.blockUI&&($.unblockUI(),$("body").append(this.tpDiv))),this._inDialog=!1;var f=this._get(b,"onClose");f&&f.apply(b.input?b.input[0]:null,[b.input?b.input.val():"",b])}},_tidyDialog:function(a){a.tpDiv.removeClass(this._dialogClass).unbind(".ui-timepicker")},_getInst:function(a){try{return $.data(a,PROP_NAME)}catch(b){throw"Missing instance data for this timepicker"}},_get:function(a,b){return void 0!==a.settings[b]?a.settings[b]:this._defaults[b]},_setTimeFromField:function(a){if(a.input.val()!=a.lastVal){var b=this._get(a,"defaultTime"),c="now"==b?this._getCurrentTimeRounded(a):b;if(0==a.inline&&""!=a.input.val()&&(c=a.input.val()),c instanceof Date)a.hours=c.getHours(),a.minutes=c.getMinutes();else{var d=a.lastVal=c;if(""==c)a.hours=-1,a.minutes=-1;else{var e=this.parseTime(a,d);a.hours=e.hours,a.minutes=e.minutes}}$.eotimepicker._updateTimepicker(a)}},_optionTimepicker:function(a,b,c){var d=this._getInst(a);if(2==arguments.length&&"string"==typeof b)return"defaults"==b?$.extend({},$.eotimepicker._defaults):d?"all"==b?$.extend({},d.settings):this._get(d,b):null;var e=b||{};"string"==typeof b&&(e={},e[b]=c),d&&(extendRemove(d.settings,e),this._curInst==d&&(this._hideTimepicker(),this._updateTimepicker(d)),d.inline&&this._updateTimepicker(d))},_setTimeTimepicker:function(a,b){var c=this._getInst(a);c&&(this._setTime(c,b),this._updateTimepicker(c),this._updateAlternate(c,b))},_setTime:function(a,b,c){var d=a.hours,e=a.minutes;if(b instanceof Date)a.hours=b.getHours(),a.minutes=b.getMinutes();else{var b=this.parseTime(a,b);a.hours=b.hours,a.minutes=b.minutes}d==a.hours&&e==a.minutes||c||a.input.trigger("change"),this._updateTimepicker(a),this._updateSelectedValue(a)},_getCurrentTimeRounded:function(a){var b=new Date,c=b.getMinutes(),d=this._get(a,"minutes"),e=Math.round(c/d.interval)*d.interval;return b.setMinutes(e),b},parseTime:function(a,b){var c=new Object;if(c.hours=-1,c.minutes=-1,!b)return"";var d=this._get(a,"timeSeparator"),e=this._get(a,"amPmText"),f=this._get(a,"showHours"),g=this._get(a,"showMinutes"),h=this._get(a,"optionalMinutes"),i=1==this._get(a,"showPeriod"),j=b.indexOf(d);if(-1!=j?(c.hours=parseInt(b.substr(0,j),10),c.minutes=parseInt(b.substr(j+1),10)):!f||g&&!h?!f&&g&&(c.minutes=parseInt(b,10)):c.hours=parseInt(b,10),f){var k=b.toUpperCase();c.hours<12&&i&&-1!=k.indexOf(e[1].toUpperCase())&&(c.hours+=12),12==c.hours&&i&&-1!=k.indexOf(e[0].toUpperCase())&&(c.hours=0)}return c},selectNow:function(a){var b=$(a.target).attr("data-timepicker-instance-id"),c=$(b),d=this._getInst(c[0]),e=new Date;d.hours=e.getHours(),d.minutes=e.getMinutes(),this._updateSelectedValue(d),this._updateTimepicker(d),this._hideTimepicker()},deselectTime:function(a){var b=$(a.target).attr("data-timepicker-instance-id"),c=$(b),d=this._getInst(c[0]);d.hours=-1,d.minutes=-1,this._updateSelectedValue(d),this._hideTimepicker()},selectHours:function(a){var b=$(a.currentTarget),c=b.attr("data-timepicker-instance-id"),d=parseInt(b.attr("data-hour")),e=a.data.fromDoubleClick,f=$(c),g=this._getInst(f[0]),h=1==this._get(g,"showMinutes");if($.eotimepicker._isDisabledTimepicker(f.attr("id")))return!1;b.parents(".ui-timepicker-hours:first").find("a").removeClass("ui-state-active"),b.children("a").addClass("ui-state-active"),g.hours=d;var i=this._get(g,"onMinuteShow"),j=this._get(g,"maxTime"),k=this._get(g,"minTime");return(i||j.minute||k.minute)&&this._updateMinuteDisplay(g),this._updateSelectedValue(g),g._hoursClicked=!0,(g._minutesClicked||e||0==h)&&$.eotimepicker._hideTimepicker(),!1},selectMinutes:function(a){var b=$(a.currentTarget),c=b.attr("data-timepicker-instance-id"),d=parseInt(b.attr("data-minute")),e=a.data.fromDoubleClick,f=$(c),g=this._getInst(f[0]),h=1==this._get(g,"showHours");return $.eotimepicker._isDisabledTimepicker(f.attr("id"))?!1:(b.parents(".ui-timepicker-minutes:first").find("a").removeClass("ui-state-active"),b.children("a").addClass("ui-state-active"),g.minutes=d,this._updateSelectedValue(g),g._minutesClicked=!0,g._hoursClicked||e||0==h?($.eotimepicker._hideTimepicker(),!1):!1)},_updateSelectedValue:function(a){var b=this._getParsedTime(a);a.input&&(a.input.val(b),a.input.trigger("change"));var c=this._get(a,"onSelect");return c&&c.apply(a.input?a.input[0]:null,[b,a]),this._updateAlternate(a,b),b},_getParsedTime:function(a){if(-1==a.hours&&-1==a.minutes)return"";(a.hours<a.hours.starts||a.hours>a.hours.ends)&&(a.hours=0),(a.minutes<a.minutes.starts||a.minutes>a.minutes.ends)&&(a.minutes=0);var b="",c=1==this._get(a,"showPeriod"),d=1==this._get(a,"showLeadingZero"),e=1==this._get(a,"showHours"),f=1==this._get(a,"showMinutes"),g=1==this._get(a,"optionalMinutes"),h=this._get(a,"amPmText"),i=a.hours?a.hours:0,j=a.minutes?a.minutes:0,k=i?i:0,l="";-1==k&&(k=0),-1==j&&(j=0),c&&(0==a.hours&&(k=12),a.hours<12?b=h[0]:(b=h[1],k>12&&(k-=12)));var m=k.toString();d&&10>k&&(m="0"+m);var n=j.toString();return 10>j&&(n="0"+n),e&&(l+=m),!e||!f||g&&0==n||(l+=this._get(a,"timeSeparator")),!f||g&&0==n||(l+=n),e&&b.length>0&&(l+=this._get(a,"periodSeparator")+b),l},_updateAlternate:function(a,b){var c=this._get(a,"altField");c&&$(c).each(function(a,c){$(c).val(b)})},_getTimeAsDateTimepicker:function(a){var b=this._getInst(a);return-1==b.hours&&-1==b.minutes?"":((b.hours<b.hours.starts||b.hours>b.hours.ends)&&(b.hours=0),(b.minutes<b.minutes.starts||b.minutes>b.minutes.ends)&&(b.minutes=0),new Date(0,0,0,b.hours,b.minutes,0))},_getTimeTimepicker:function(a){var b=this._getInst(a);return this._getParsedTime(b)},_getHourTimepicker:function(a){var b=this._getInst(a);return void 0==b?-1:b.hours},_getMinuteTimepicker:function(a){var b=this._getInst(a);return void 0==b?-1:b.minutes}}),$.fn.eotimepicker=function(a){$.eotimepicker.initialized||($(document).mousedown($.eotimepicker._checkExternalClick),$.eotimepicker.initialized=!0),0===$("#"+$.eotimepicker._mainDivId).length&&$("body").append($.eotimepicker.tpDiv);var b=Array.prototype.slice.call(arguments,1);return"string"!=typeof a||"getTime"!=a&&"getTimeAsDate"!=a&&"getHour"!=a&&"getMinute"!=a?"option"==a&&2==arguments.length&&"string"==typeof arguments[1]?$.eotimepicker["_"+a+"Timepicker"].apply($.eotimepicker,[this[0]].concat(b)):this.each(function(){"string"==typeof a?$.eotimepicker["_"+a+"Timepicker"].apply($.eotimepicker,[this].concat(b)):$.eotimepicker._attachTimepicker(this,a)}):$.eotimepicker["_"+a+"Timepicker"].apply($.eotimepicker,[this[0]].concat(b))},$.eotimepicker=new eoTimepicker,$.eotimepicker.initialized=!1,$.eotimepicker.uuid=(new Date).getTime(),$.eotimepicker.version="0.3.3",window["TP_jQuery_"+tpuuid]=$}(jQuery);
js/moment.min.js CHANGED
@@ -1,3 +1,3 @@
1
- /*! event-organiser 3.5.1-0-g786a5d5 2017-11-14 21:45 */
2
  (function(a){function b(a,b,c){switch(arguments.length){case 2:return null!=a?a:b;case 3:return null!=a?a:null!=b?b:c;default:throw new Error("Implement me")}}function c(a,b){return Ba.call(a,b)}function d(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1}}function e(a){va.suppressDeprecationWarnings===!1&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+a)}function f(a,b){var c=!0;return o(function(){return c&&(e(a),c=!1),b.apply(this,arguments)},b)}function g(a,b){sb[a]||(e(b),sb[a]=!0)}function h(a,b){return function(c){return r(a.call(this,c),b)}}function i(a,b){return function(c){return this.localeData().ordinal(a.call(this,c),b)}}function j(a,b){var c,d,e=12*(b.year()-a.year())+(b.month()-a.month()),f=a.clone().add(e,"months");return 0>b-f?(c=a.clone().add(e-1,"months"),d=(b-f)/(f-c)):(c=a.clone().add(e+1,"months"),d=(b-f)/(c-f)),-(e+d)}function k(a,b,c){var d;return null==c?b:null!=a.meridiemHour?a.meridiemHour(b,c):null!=a.isPM?(d=a.isPM(c),d&&12>b&&(b+=12),d||12!==b||(b=0),b):b}function l(){}function m(a,b){b!==!1&&H(a),p(this,a),this._d=new Date(+a._d),ub===!1&&(ub=!0,va.updateOffset(this),ub=!1)}function n(a){var b=A(a),c=b.year||0,d=b.quarter||0,e=b.month||0,f=b.week||0,g=b.day||0,h=b.hour||0,i=b.minute||0,j=b.second||0,k=b.millisecond||0;this._milliseconds=+k+1e3*j+6e4*i+36e5*h,this._days=+g+7*f,this._months=+e+3*d+12*c,this._data={},this._locale=va.localeData(),this._bubble()}function o(a,b){for(var d in b)c(b,d)&&(a[d]=b[d]);return c(b,"toString")&&(a.toString=b.toString),c(b,"valueOf")&&(a.valueOf=b.valueOf),a}function p(a,b){var c,d,e;if("undefined"!=typeof b._isAMomentObject&&(a._isAMomentObject=b._isAMomentObject),"undefined"!=typeof b._i&&(a._i=b._i),"undefined"!=typeof b._f&&(a._f=b._f),"undefined"!=typeof b._l&&(a._l=b._l),"undefined"!=typeof b._strict&&(a._strict=b._strict),"undefined"!=typeof b._tzm&&(a._tzm=b._tzm),"undefined"!=typeof b._isUTC&&(a._isUTC=b._isUTC),"undefined"!=typeof b._offset&&(a._offset=b._offset),"undefined"!=typeof b._pf&&(a._pf=b._pf),"undefined"!=typeof b._locale&&(a._locale=b._locale),Ka.length>0)for(c in Ka)d=Ka[c],e=b[d],"undefined"!=typeof e&&(a[d]=e);return a}function q(a){return 0>a?Math.ceil(a):Math.floor(a)}function r(a,b,c){for(var d=""+Math.abs(a),e=a>=0;d.length<b;)d="0"+d;return(e?c?"+":"":"-")+d}function s(a,b){var c={milliseconds:0,months:0};return c.months=b.month()-a.month()+12*(b.year()-a.year()),a.clone().add(c.months,"M").isAfter(b)&&--c.months,c.milliseconds=+b-+a.clone().add(c.months,"M"),c}function t(a,b){var c;return b=M(b,a),a.isBefore(b)?c=s(a,b):(c=s(b,a),c.milliseconds=-c.milliseconds,c.months=-c.months),c}function u(a,b){return function(c,d){var e,f;return null===d||isNaN(+d)||(g(b,"moment()."+b+"(period, number) is deprecated. Please use moment()."+b+"(number, period)."),f=c,c=d,d=f),c="string"==typeof c?+c:c,e=va.duration(c,d),v(this,e,a),this}}function v(a,b,c,d){var e=b._milliseconds,f=b._days,g=b._months;d=null==d?!0:d,e&&a._d.setTime(+a._d+e*c),f&&pa(a,"Date",oa(a,"Date")+f*c),g&&na(a,oa(a,"Month")+g*c),d&&va.updateOffset(a,f||g)}function w(a){return"[object Array]"===Object.prototype.toString.call(a)}function x(a){return"[object Date]"===Object.prototype.toString.call(a)||a instanceof Date}function y(a,b,c){var d,e=Math.min(a.length,b.length),f=Math.abs(a.length-b.length),g=0;for(d=0;e>d;d++)(c&&a[d]!==b[d]||!c&&C(a[d])!==C(b[d]))&&g++;return g+f}function z(a){if(a){var b=a.toLowerCase().replace(/(.)s$/,"$1");a=lb[a]||mb[b]||b}return a}function A(a){var b,d,e={};for(d in a)c(a,d)&&(b=z(d),b&&(e[b]=a[d]));return e}function B(b){var c,d;if(0===b.indexOf("week"))c=7,d="day";else{if(0!==b.indexOf("month"))return;c=12,d="month"}va[b]=function(e,f){var g,h,i=va._locale[b],j=[];if("number"==typeof e&&(f=e,e=a),h=function(a){var b=va().utc().set(d,a);return i.call(va._locale,b,e||"")},null!=f)return h(f);for(g=0;c>g;g++)j.push(h(g));return j}}function C(a){var b=+a,c=0;return 0!==b&&isFinite(b)&&(c=b>=0?Math.floor(b):Math.ceil(b)),c}function D(a,b){return new Date(Date.UTC(a,b+1,0)).getUTCDate()}function E(a,b,c){return ja(va([a,11,31+b-c]),b,c).week}function F(a){return G(a)?366:365}function G(a){return a%4===0&&a%100!==0||a%400===0}function H(a){var b;a._a&&-2===a._pf.overflow&&(b=a._a[Da]<0||a._a[Da]>11?Da:a._a[Ea]<1||a._a[Ea]>D(a._a[Ca],a._a[Da])?Ea:a._a[Fa]<0||a._a[Fa]>24||24===a._a[Fa]&&(0!==a._a[Ga]||0!==a._a[Ha]||0!==a._a[Ia])?Fa:a._a[Ga]<0||a._a[Ga]>59?Ga:a._a[Ha]<0||a._a[Ha]>59?Ha:a._a[Ia]<0||a._a[Ia]>999?Ia:-1,a._pf._overflowDayOfYear&&(Ca>b||b>Ea)&&(b=Ea),a._pf.overflow=b)}function I(b){return null==b._isValid&&(b._isValid=!isNaN(b._d.getTime())&&b._pf.overflow<0&&!b._pf.empty&&!b._pf.invalidMonth&&!b._pf.nullInput&&!b._pf.invalidFormat&&!b._pf.userInvalidated,b._strict&&(b._isValid=b._isValid&&0===b._pf.charsLeftOver&&0===b._pf.unusedTokens.length&&b._pf.bigHour===a)),b._isValid}function J(a){return a?a.toLowerCase().replace("_","-"):a}function K(a){for(var b,c,d,e,f=0;f<a.length;){for(e=J(a[f]).split("-"),b=e.length,c=J(a[f+1]),c=c?c.split("-"):null;b>0;){if(d=L(e.slice(0,b).join("-")))return d;if(c&&c.length>=b&&y(e,c,!0)>=b-1)break;b--}f++}return null}function L(a){var b=null;if(!Ja[a]&&La)try{b=va.locale(),require("./locale/"+a),va.locale(b)}catch(c){}return Ja[a]}function M(a,b){var c,d;return b._isUTC?(c=b.clone(),d=(va.isMoment(a)||x(a)?+a:+va(a))-+c,c._d.setTime(+c._d+d),va.updateOffset(c,!1),c):va(a).local()}function N(a){return a.match(/\[[\s\S]/)?a.replace(/^\[|\]$/g,""):a.replace(/\\/g,"")}function O(a){var b,c,d=a.match(Pa);for(b=0,c=d.length;c>b;b++)rb[d[b]]?d[b]=rb[d[b]]:d[b]=N(d[b]);return function(e){var f="";for(b=0;c>b;b++)f+=d[b]instanceof Function?d[b].call(e,a):d[b];return f}}function P(a,b){return a.isValid()?(b=Q(b,a.localeData()),nb[b]||(nb[b]=O(b)),nb[b](a)):a.localeData().invalidDate()}function Q(a,b){function c(a){return b.longDateFormat(a)||a}var d=5;for(Qa.lastIndex=0;d>=0&&Qa.test(a);)a=a.replace(Qa,c),Qa.lastIndex=0,d-=1;return a}function R(a,b){var c,d=b._strict;switch(a){case"Q":return _a;case"DDDD":return bb;case"YYYY":case"GGGG":case"gggg":return d?cb:Ta;case"Y":case"G":case"g":return eb;case"YYYYYY":case"YYYYY":case"GGGGG":case"ggggg":return d?db:Ua;case"S":if(d)return _a;case"SS":if(d)return ab;case"SSS":if(d)return bb;case"DDD":return Sa;case"MMM":case"MMMM":case"dd":case"ddd":case"dddd":return Wa;case"a":case"A":return b._locale._meridiemParse;case"x":return Za;case"X":return $a;case"Z":case"ZZ":return Xa;case"T":return Ya;case"SSSS":return Va;case"MM":case"DD":case"YY":case"GG":case"gg":case"HH":case"hh":case"mm":case"ss":case"ww":case"WW":return d?ab:Ra;case"M":case"D":case"d":case"H":case"h":case"m":case"s":case"w":case"W":case"e":case"E":return Ra;case"Do":return d?b._locale._ordinalParse:b._locale._ordinalParseLenient;default:return c=new RegExp($(Z(a.replace("\\","")),"i"))}}function S(a){a=a||"";var b=a.match(Xa)||[],c=b[b.length-1]||[],d=(c+"").match(jb)||["-",0,0],e=+(60*d[1])+C(d[2]);return"+"===d[0]?e:-e}function T(a,b,c){var d,e=c._a;switch(a){case"Q":null!=b&&(e[Da]=3*(C(b)-1));break;case"M":case"MM":null!=b&&(e[Da]=C(b)-1);break;case"MMM":case"MMMM":d=c._locale.monthsParse(b,a,c._strict),null!=d?e[Da]=d:c._pf.invalidMonth=b;break;case"D":case"DD":null!=b&&(e[Ea]=C(b));break;case"Do":null!=b&&(e[Ea]=C(parseInt(b.match(/\d{1,2}/)[0],10)));break;case"DDD":case"DDDD":null!=b&&(c._dayOfYear=C(b));break;case"YY":e[Ca]=va.parseTwoDigitYear(b);break;case"YYYY":case"YYYYY":case"YYYYYY":e[Ca]=C(b);break;case"a":case"A":c._meridiem=b;break;case"h":case"hh":c._pf.bigHour=!0;case"H":case"HH":e[Fa]=C(b);break;case"m":case"mm":e[Ga]=C(b);break;case"s":case"ss":e[Ha]=C(b);break;case"S":case"SS":case"SSS":case"SSSS":e[Ia]=C(1e3*("0."+b));break;case"x":c._d=new Date(C(b));break;case"X":c._d=new Date(1e3*parseFloat(b));break;case"Z":case"ZZ":c._useUTC=!0,c._tzm=S(b);break;case"dd":case"ddd":case"dddd":d=c._locale.weekdaysParse(b),null!=d?(c._w=c._w||{},c._w.d=d):c._pf.invalidWeekday=b;break;case"w":case"ww":case"W":case"WW":case"d":case"e":case"E":a=a.substr(0,1);case"gggg":case"GGGG":case"GGGGG":a=a.substr(0,2),b&&(c._w=c._w||{},c._w[a]=C(b));break;case"gg":case"GG":c._w=c._w||{},c._w[a]=va.parseTwoDigitYear(b)}}function U(a){var c,d,e,f,g,h,i;c=a._w,null!=c.GG||null!=c.W||null!=c.E?(g=1,h=4,d=b(c.GG,a._a[Ca],ja(va(),1,4).year),e=b(c.W,1),f=b(c.E,1)):(g=a._locale._week.dow,h=a._locale._week.doy,d=b(c.gg,a._a[Ca],ja(va(),g,h).year),e=b(c.w,1),null!=c.d?(f=c.d,g>f&&++e):f=null!=c.e?c.e+g:g),i=ka(d,e,f,h,g),a._a[Ca]=i.year,a._dayOfYear=i.dayOfYear}function V(a){var c,d,e,f,g=[];if(!a._d){for(e=X(a),a._w&&null==a._a[Ea]&&null==a._a[Da]&&U(a),a._dayOfYear&&(f=b(a._a[Ca],e[Ca]),a._dayOfYear>F(f)&&(a._pf._overflowDayOfYear=!0),d=fa(f,0,a._dayOfYear),a._a[Da]=d.getUTCMonth(),a._a[Ea]=d.getUTCDate()),c=0;3>c&&null==a._a[c];++c)a._a[c]=g[c]=e[c];for(;7>c;c++)a._a[c]=g[c]=null==a._a[c]?2===c?1:0:a._a[c];24===a._a[Fa]&&0===a._a[Ga]&&0===a._a[Ha]&&0===a._a[Ia]&&(a._nextDay=!0,a._a[Fa]=0),a._d=(a._useUTC?fa:ea).apply(null,g),null!=a._tzm&&a._d.setUTCMinutes(a._d.getUTCMinutes()-a._tzm),a._nextDay&&(a._a[Fa]=24)}}function W(a){var b;a._d||(b=A(a._i),a._a=[b.year,b.month,b.day||b.date,b.hour,b.minute,b.second,b.millisecond],V(a))}function X(a){var b=new Date;return a._useUTC?[b.getUTCFullYear(),b.getUTCMonth(),b.getUTCDate()]:[b.getFullYear(),b.getMonth(),b.getDate()]}function Y(b){if(b._f===va.ISO_8601)return void aa(b);b._a=[],b._pf.empty=!0;var c,d,e,f,g,h=""+b._i,i=h.length,j=0;for(e=Q(b._f,b._locale).match(Pa)||[],c=0;c<e.length;c++)f=e[c],d=(h.match(R(f,b))||[])[0],d&&(g=h.substr(0,h.indexOf(d)),g.length>0&&b._pf.unusedInput.push(g),h=h.slice(h.indexOf(d)+d.length),j+=d.length),rb[f]?(d?b._pf.empty=!1:b._pf.unusedTokens.push(f),T(f,d,b)):b._strict&&!d&&b._pf.unusedTokens.push(f);b._pf.charsLeftOver=i-j,h.length>0&&b._pf.unusedInput.push(h),b._pf.bigHour===!0&&b._a[Fa]<=12&&(b._pf.bigHour=a),b._a[Fa]=k(b._locale,b._a[Fa],b._meridiem),V(b),H(b)}function Z(a){return a.replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(a,b,c,d,e){return b||c||d||e})}function $(a){return a.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function _(a){var b,c,e,f,g;if(0===a._f.length)return a._pf.invalidFormat=!0,void(a._d=new Date(NaN));for(f=0;f<a._f.length;f++)g=0,b=p({},a),null!=a._useUTC&&(b._useUTC=a._useUTC),b._pf=d(),b._f=a._f[f],Y(b),I(b)&&(g+=b._pf.charsLeftOver,g+=10*b._pf.unusedTokens.length,b._pf.score=g,(null==e||e>g)&&(e=g,c=b));o(a,c||b)}function aa(a){var b,c,d=a._i,e=fb.exec(d);if(e){for(a._pf.iso=!0,b=0,c=hb.length;c>b;b++)if(hb[b][1].exec(d)){a._f=hb[b][0]+(e[6]||" ");break}for(b=0,c=ib.length;c>b;b++)if(ib[b][1].exec(d)){a._f+=ib[b][0];break}d.match(Xa)&&(a._f+="Z"),Y(a)}else a._isValid=!1}function ba(a){aa(a),a._isValid===!1&&(delete a._isValid,va.createFromInputFallback(a))}function ca(a,b){var c,d=[];for(c=0;c<a.length;++c)d.push(b(a[c],c));return d}function da(b){var c,d=b._i;d===a?b._d=new Date:x(d)?b._d=new Date(+d):null!==(c=Ma.exec(d))?b._d=new Date(+c[1]):"string"==typeof d?ba(b):w(d)?(b._a=ca(d.slice(0),function(a){return parseInt(a,10)}),V(b)):"object"==typeof d?W(b):"number"==typeof d?b._d=new Date(d):va.createFromInputFallback(b)}function ea(a,b,c,d,e,f,g){var h=new Date(a,b,c,d,e,f,g);return 1970>a&&h.setFullYear(a),h}function fa(a){var b=new Date(Date.UTC.apply(null,arguments));return 1970>a&&b.setUTCFullYear(a),b}function ga(a,b){if("string"==typeof a)if(isNaN(a)){if(a=b.weekdaysParse(a),"number"!=typeof a)return null}else a=parseInt(a,10);return a}function ha(a,b,c,d,e){return e.relativeTime(b||1,!!c,a,d)}function ia(a,b,c){var d=va.duration(a).abs(),e=Aa(d.as("s")),f=Aa(d.as("m")),g=Aa(d.as("h")),h=Aa(d.as("d")),i=Aa(d.as("M")),j=Aa(d.as("y")),k=e<ob.s&&["s",e]||1===f&&["m"]||f<ob.m&&["mm",f]||1===g&&["h"]||g<ob.h&&["hh",g]||1===h&&["d"]||h<ob.d&&["dd",h]||1===i&&["M"]||i<ob.M&&["MM",i]||1===j&&["y"]||["yy",j];return k[2]=b,k[3]=+a>0,k[4]=c,ha.apply({},k)}function ja(a,b,c){var d,e=c-b,f=c-a.day();return f>e&&(f-=7),e-7>f&&(f+=7),d=va(a).add(f,"d"),{week:Math.ceil(d.dayOfYear()/7),year:d.year()}}function ka(a,b,c,d,e){var f,g,h=fa(a,0,1).getUTCDay();return h=0===h?7:h,c=null!=c?c:e,f=e-h+(h>d?7:0)-(e>h?7:0),g=7*(b-1)+(c-e)+f+1,{year:g>0?a:a-1,dayOfYear:g>0?g:F(a-1)+g}}function la(b){var c,d=b._i,e=b._f;return b._locale=b._locale||va.localeData(b._l),null===d||e===a&&""===d?va.invalid({nullInput:!0}):("string"==typeof d&&(b._i=d=b._locale.preparse(d)),va.isMoment(d)?new m(d,!0):(e?w(e)?_(b):Y(b):da(b),c=new m(b),c._nextDay&&(c.add(1,"d"),c._nextDay=a),c))}function ma(a,b){var c,d;if(1===b.length&&w(b[0])&&(b=b[0]),!b.length)return va();for(c=b[0],d=1;d<b.length;++d)b[d][a](c)&&(c=b[d]);return c}function na(a,b){var c;return"string"==typeof b&&(b=a.localeData().monthsParse(b),"number"!=typeof b)?a:(c=Math.min(a.date(),D(a.year(),b)),a._d["set"+(a._isUTC?"UTC":"")+"Month"](b,c),a)}function oa(a,b){return a._d["get"+(a._isUTC?"UTC":"")+b]()}function pa(a,b,c){return"Month"===b?na(a,c):a._d["set"+(a._isUTC?"UTC":"")+b](c)}function qa(a,b){return function(c){return null!=c?(pa(this,a,c),va.updateOffset(this,b),this):oa(this,a)}}function ra(a){return 400*a/146097}function sa(a){return 146097*a/400}function ta(a){va.duration.fn[a]=function(){return this._data[a]}}function ua(a){"undefined"==typeof ender&&(wa=za.moment,a?za.moment=f("Accessing Moment through the global scope is deprecated, and will be removed in an upcoming release.",va):za.moment=va)}for(var va,wa,xa,ya="2.9.0",za="undefined"==typeof global||"undefined"!=typeof window&&window!==global.window?this:global,Aa=Math.round,Ba=Object.prototype.hasOwnProperty,Ca=0,Da=1,Ea=2,Fa=3,Ga=4,Ha=5,Ia=6,Ja={},Ka=[],La="undefined"!=typeof module&&module&&module.exports,Ma=/^\/?Date\((\-?\d+)/i,Na=/(\-)?(?:(\d*)\.)?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?)?/,Oa=/^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/,Pa=/(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Q|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,4}|x|X|zz?|ZZ?|.)/g,Qa=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Ra=/\d\d?/,Sa=/\d{1,3}/,Ta=/\d{1,4}/,Ua=/[+\-]?\d{1,6}/,Va=/\d+/,Wa=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,Xa=/Z|[\+\-]\d\d:?\d\d/gi,Ya=/T/i,Za=/[\+\-]?\d+/,$a=/[\+\-]?\d+(\.\d{1,3})?/,_a=/\d/,ab=/\d\d/,bb=/\d{3}/,cb=/\d{4}/,db=/[+-]?\d{6}/,eb=/[+-]?\d+/,fb=/^\s*(?:[+-]\d{6}|\d{4})-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,gb="YYYY-MM-DDTHH:mm:ssZ",hb=[["YYYYYY-MM-DD",/[+-]\d{6}-\d{2}-\d{2}/],["YYYY-MM-DD",/\d{4}-\d{2}-\d{2}/],["GGGG-[W]WW-E",/\d{4}-W\d{2}-\d/],["GGGG-[W]WW",/\d{4}-W\d{2}/],["YYYY-DDD",/\d{4}-\d{3}/]],ib=[["HH:mm:ss.SSSS",/(T| )\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss",/(T| )\d\d:\d\d:\d\d/],["HH:mm",/(T| )\d\d:\d\d/],["HH",/(T| )\d\d/]],jb=/([\+\-]|\d\d)/gi,kb=("Date|Hours|Minutes|Seconds|Milliseconds".split("|"),{Milliseconds:1,Seconds:1e3,Minutes:6e4,Hours:36e5,Days:864e5,Months:2592e6,Years:31536e6}),lb={ms:"millisecond",s:"second",m:"minute",h:"hour",d:"day",D:"date",w:"week",W:"isoWeek",M:"month",Q:"quarter",y:"year",DDD:"dayOfYear",e:"weekday",E:"isoWeekday",gg:"weekYear",GG:"isoWeekYear"},mb={dayofyear:"dayOfYear",isoweekday:"isoWeekday",isoweek:"isoWeek",weekyear:"weekYear",isoweekyear:"isoWeekYear"},nb={},ob={s:45,m:45,h:22,d:26,M:11},pb="DDD w W M D d".split(" "),qb="M D H h m s w W".split(" "),rb={M:function(){return this.month()+1},MMM:function(a){return this.localeData().monthsShort(this,a)},MMMM:function(a){return this.localeData().months(this,a)},D:function(){return this.date()},DDD:function(){return this.dayOfYear()},d:function(){return this.day()},dd:function(a){return this.localeData().weekdaysMin(this,a)},ddd:function(a){return this.localeData().weekdaysShort(this,a)},dddd:function(a){return this.localeData().weekdays(this,a)},w:function(){return this.week()},W:function(){return this.isoWeek()},YY:function(){return r(this.year()%100,2)},YYYY:function(){return r(this.year(),4)},YYYYY:function(){return r(this.year(),5)},YYYYYY:function(){var a=this.year(),b=a>=0?"+":"-";return b+r(Math.abs(a),6)},gg:function(){return r(this.weekYear()%100,2)},gggg:function(){return r(this.weekYear(),4)},ggggg:function(){return r(this.weekYear(),5)},GG:function(){return r(this.isoWeekYear()%100,2)},GGGG:function(){return r(this.isoWeekYear(),4)},GGGGG:function(){return r(this.isoWeekYear(),5)},e:function(){return this.weekday()},E:function(){return this.isoWeekday()},a:function(){return this.localeData().meridiem(this.hours(),this.minutes(),!0)},A:function(){return this.localeData().meridiem(this.hours(),this.minutes(),!1)},H:function(){return this.hours()},h:function(){return this.hours()%12||12},m:function(){return this.minutes()},s:function(){return this.seconds()},S:function(){return C(this.milliseconds()/100)},SS:function(){return r(C(this.milliseconds()/10),2)},SSS:function(){return r(this.milliseconds(),3)},SSSS:function(){return r(this.milliseconds(),3)},Z:function(){var a=this.utcOffset(),b="+";return 0>a&&(a=-a,b="-"),b+r(C(a/60),2)+":"+r(C(a)%60,2)},ZZ:function(){var a=this.utcOffset(),b="+";return 0>a&&(a=-a,b="-"),b+r(C(a/60),2)+r(C(a)%60,2)},z:function(){return this.zoneAbbr()},zz:function(){return this.zoneName()},x:function(){return this.valueOf()},X:function(){return this.unix()},Q:function(){return this.quarter()}},sb={},tb=["months","monthsShort","weekdays","weekdaysShort","weekdaysMin"],ub=!1;pb.length;)xa=pb.pop(),rb[xa+"o"]=i(rb[xa],xa);for(;qb.length;)xa=qb.pop(),rb[xa+xa]=h(rb[xa],2);rb.DDDD=h(rb.DDD,3),o(l.prototype,{set:function(a){var b,c;for(c in a)b=a[c],"function"==typeof b?this[c]=b:this["_"+c]=b;this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)},_months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),months:function(a){return this._months[a.month()]},_monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),monthsShort:function(a){return this._monthsShort[a.month()]},monthsParse:function(a,b,c){var d,e,f;for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),d=0;12>d;d++){if(e=va.utc([2e3,d]),c&&!this._longMonthsParse[d]&&(this._longMonthsParse[d]=new RegExp("^"+this.months(e,"").replace(".","")+"$","i"),this._shortMonthsParse[d]=new RegExp("^"+this.monthsShort(e,"").replace(".","")+"$","i")),c||this._monthsParse[d]||(f="^"+this.months(e,"")+"|^"+this.monthsShort(e,""),this._monthsParse[d]=new RegExp(f.replace(".",""),"i")),c&&"MMMM"===b&&this._longMonthsParse[d].test(a))return d;if(c&&"MMM"===b&&this._shortMonthsParse[d].test(a))return d;if(!c&&this._monthsParse[d].test(a))return d}},_weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdays:function(a){return this._weekdays[a.day()]},_weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysShort:function(a){return this._weekdaysShort[a.day()]},_weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),weekdaysMin:function(a){return this._weekdaysMin[a.day()]},weekdaysParse:function(a){var b,c,d;for(this._weekdaysParse||(this._weekdaysParse=[]),b=0;7>b;b++)if(this._weekdaysParse[b]||(c=va([2e3,1]).day(b),d="^"+this.weekdays(c,"")+"|^"+this.weekdaysShort(c,"")+"|^"+this.weekdaysMin(c,""),this._weekdaysParse[b]=new RegExp(d.replace(".",""),"i")),this._weekdaysParse[b].test(a))return b},_longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY LT",LLLL:"dddd, MMMM D, YYYY LT"},longDateFormat:function(a){var b=this._longDateFormat[a];return!b&&this._longDateFormat[a.toUpperCase()]&&(b=this._longDateFormat[a.toUpperCase()].replace(/MMMM|MM|DD|dddd/g,function(a){return a.slice(1)}),this._longDateFormat[a]=b),b},isPM:function(a){return"p"===(a+"").toLowerCase().charAt(0)},_meridiemParse:/[ap]\.?m?\.?/i,meridiem:function(a,b,c){return a>11?c?"pm":"PM":c?"am":"AM"},_calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},calendar:function(a,b,c){var d=this._calendar[a];return"function"==typeof d?d.apply(b,[c]):d},_relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},relativeTime:function(a,b,c,d){var e=this._relativeTime[c];return"function"==typeof e?e(a,b,c,d):e.replace(/%d/i,a)},pastFuture:function(a,b){var c=this._relativeTime[a>0?"future":"past"];return"function"==typeof c?c(b):c.replace(/%s/i,b)},ordinal:function(a){return this._ordinal.replace("%d",a)},_ordinal:"%d",_ordinalParse:/\d{1,2}/,preparse:function(a){return a},postformat:function(a){return a},week:function(a){return ja(a,this._week.dow,this._week.doy).week},_week:{dow:0,doy:6},firstDayOfWeek:function(){return this._week.dow},firstDayOfYear:function(){return this._week.doy},_invalidDate:"Invalid date",invalidDate:function(){return this._invalidDate}}),va=function(b,c,e,f){var g;return"boolean"==typeof e&&(f=e,e=a),g={},g._isAMomentObject=!0,g._i=b,g._f=c,g._l=e,g._strict=f,g._isUTC=!1,g._pf=d(),la(g)},va.suppressDeprecationWarnings=!1,va.createFromInputFallback=f("moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to https://github.com/moment/moment/issues/1407 for more info.",function(a){a._d=new Date(a._i+(a._useUTC?" UTC":""))}),va.min=function(){var a=[].slice.call(arguments,0);return ma("isBefore",a)},va.max=function(){var a=[].slice.call(arguments,0);return ma("isAfter",a)},va.utc=function(b,c,e,f){var g;return"boolean"==typeof e&&(f=e,e=a),g={},g._isAMomentObject=!0,g._useUTC=!0,g._isUTC=!0,g._l=e,g._i=b,g._f=c,g._strict=f,g._pf=d(),la(g).utc()},va.unix=function(a){return va(1e3*a)},va.duration=function(a,b){var d,e,f,g,h=a,i=null;return va.isDuration(a)?h={ms:a._milliseconds,d:a._days,M:a._months}:"number"==typeof a?(h={},b?h[b]=a:h.milliseconds=a):(i=Na.exec(a))?(d="-"===i[1]?-1:1,h={y:0,d:C(i[Ea])*d,h:C(i[Fa])*d,m:C(i[Ga])*d,s:C(i[Ha])*d,ms:C(i[Ia])*d}):(i=Oa.exec(a))?(d="-"===i[1]?-1:1,f=function(a){var b=a&&parseFloat(a.replace(",","."));return(isNaN(b)?0:b)*d},h={y:f(i[2]),M:f(i[3]),d:f(i[4]),h:f(i[5]),m:f(i[6]),s:f(i[7]),w:f(i[8])}):null==h?h={}:"object"==typeof h&&("from"in h||"to"in h)&&(g=t(va(h.from),va(h.to)),h={},h.ms=g.milliseconds,h.M=g.months),e=new n(h),va.isDuration(a)&&c(a,"_locale")&&(e._locale=a._locale),e},va.version=ya,va.defaultFormat=gb,va.ISO_8601=function(){},va.momentProperties=Ka,va.updateOffset=function(){},va.relativeTimeThreshold=function(b,c){return ob[b]===a?!1:c===a?ob[b]:(ob[b]=c,!0)},va.lang=f("moment.lang is deprecated. Use moment.locale instead.",function(a,b){return va.locale(a,b)}),va.locale=function(a,b){var c;return a&&(c="undefined"!=typeof b?va.defineLocale(a,b):va.localeData(a),c&&(va.duration._locale=va._locale=c)),va._locale._abbr},va.defineLocale=function(a,b){return null!==b?(b.abbr=a,Ja[a]||(Ja[a]=new l),Ja[a].set(b),va.locale(a),Ja[a]):(delete Ja[a],null)},va.langData=f("moment.langData is deprecated. Use moment.localeData instead.",function(a){return va.localeData(a)}),va.localeData=function(a){var b;if(a&&a._locale&&a._locale._abbr&&(a=a._locale._abbr),!a)return va._locale;if(!w(a)){if(b=L(a))return b;a=[a]}return K(a)},va.isMoment=function(a){return a instanceof m||null!=a&&c(a,"_isAMomentObject")},va.isDuration=function(a){return a instanceof n};for(xa=tb.length-1;xa>=0;--xa)B(tb[xa]);va.normalizeUnits=function(a){return z(a)},va.invalid=function(a){var b=va.utc(NaN);return null!=a?o(b._pf,a):b._pf.userInvalidated=!0,b},va.parseZone=function(){return va.apply(null,arguments).parseZone()},va.parseTwoDigitYear=function(a){return C(a)+(C(a)>68?1900:2e3)},va.isDate=x,o(va.fn=m.prototype,{clone:function(){return va(this)},valueOf:function(){return+this._d-6e4*(this._offset||0)},unix:function(){return Math.floor(+this/1e3)},toString:function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},toDate:function(){return this._offset?new Date(+this):this._d},toISOString:function(){var a=va(this).utc();return 0<a.year()&&a.year()<=9999?"function"==typeof Date.prototype.toISOString?this.toDate().toISOString():P(a,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):P(a,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")},toArray:function(){var a=this;return[a.year(),a.month(),a.date(),a.hours(),a.minutes(),a.seconds(),a.milliseconds()]},isValid:function(){return I(this)},isDSTShifted:function(){return this._a?this.isValid()&&y(this._a,(this._isUTC?va.utc(this._a):va(this._a)).toArray())>0:!1},parsingFlags:function(){return o({},this._pf)},invalidAt:function(){return this._pf.overflow},utc:function(a){return this.utcOffset(0,a)},local:function(a){return this._isUTC&&(this.utcOffset(0,a),this._isUTC=!1,a&&this.subtract(this._dateUtcOffset(),"m")),this},format:function(a){var b=P(this,a||va.defaultFormat);return this.localeData().postformat(b)},add:u(1,"add"),subtract:u(-1,"subtract"),diff:function(a,b,c){var d,e,f=M(a,this),g=6e4*(f.utcOffset()-this.utcOffset());return b=z(b),"year"===b||"month"===b||"quarter"===b?(e=j(this,f),"quarter"===b?e/=3:"year"===b&&(e/=12)):(d=this-f,e="second"===b?d/1e3:"minute"===b?d/6e4:"hour"===b?d/36e5:"day"===b?(d-g)/864e5:"week"===b?(d-g)/6048e5:d),c?e:q(e)},from:function(a,b){return va.duration({to:this,from:a}).locale(this.locale()).humanize(!b)},fromNow:function(a){return this.from(va(),a)},calendar:function(a){var b=a||va(),c=M(b,this).startOf("day"),d=this.diff(c,"days",!0),e=-6>d?"sameElse":-1>d?"lastWeek":0>d?"lastDay":1>d?"sameDay":2>d?"nextDay":7>d?"nextWeek":"sameElse";return this.format(this.localeData().calendar(e,this,va(b)))},isLeapYear:function(){return G(this.year())},isDST:function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},day:function(a){var b=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=a?(a=ga(a,this.localeData()),this.add(a-b,"d")):b},month:qa("Month",!0),startOf:function(a){switch(a=z(a)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===a?this.weekday(0):"isoWeek"===a&&this.isoWeekday(1),"quarter"===a&&this.month(3*Math.floor(this.month()/3)),this},endOf:function(b){return b=z(b),b===a||"millisecond"===b?this:this.startOf(b).add(1,"isoWeek"===b?"week":b).subtract(1,"ms")},isAfter:function(a,b){var c;return b=z("undefined"!=typeof b?b:"millisecond"),"millisecond"===b?(a=va.isMoment(a)?a:va(a),+this>+a):(c=va.isMoment(a)?+a:+va(a),c<+this.clone().startOf(b))},isBefore:function(a,b){var c;return b=z("undefined"!=typeof b?b:"millisecond"),"millisecond"===b?(a=va.isMoment(a)?a:va(a),+a>+this):(c=va.isMoment(a)?+a:+va(a),+this.clone().endOf(b)<c)},isBetween:function(a,b,c){return this.isAfter(a,c)&&this.isBefore(b,c)},isSame:function(a,b){var c;return b=z(b||"millisecond"),"millisecond"===b?(a=va.isMoment(a)?a:va(a),+this===+a):(c=+va(a),+this.clone().startOf(b)<=c&&c<=+this.clone().endOf(b))},min:f("moment().min is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548",function(a){return a=va.apply(null,arguments),this>a?this:a}),max:f("moment().max is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548",function(a){return a=va.apply(null,arguments),a>this?this:a}),zone:f("moment().zone is deprecated, use moment().utcOffset instead. https://github.com/moment/moment/issues/1779",function(a,b){return null!=a?("string"!=typeof a&&(a=-a),this.utcOffset(a,b),this):-this.utcOffset()}),utcOffset:function(a,b){var c,d=this._offset||0;return null!=a?("string"==typeof a&&(a=S(a)),Math.abs(a)<16&&(a=60*a),!this._isUTC&&b&&(c=this._dateUtcOffset()),this._offset=a,this._isUTC=!0,null!=c&&this.add(c,"m"),d!==a&&(!b||this._changeInProgress?v(this,va.duration(a-d,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,va.updateOffset(this,!0),this._changeInProgress=null)),this):this._isUTC?d:this._dateUtcOffset()},isLocal:function(){return!this._isUTC},isUtcOffset:function(){return this._isUTC},isUtc:function(){return this._isUTC&&0===this._offset},zoneAbbr:function(){return this._isUTC?"UTC":""},zoneName:function(){return this._isUTC?"Coordinated Universal Time":""},parseZone:function(){return this._tzm?this.utcOffset(this._tzm):"string"==typeof this._i&&this.utcOffset(S(this._i)),this},hasAlignedHourOffset:function(a){return a=a?va(a).utcOffset():0,(this.utcOffset()-a)%60===0},daysInMonth:function(){return D(this.year(),this.month())},dayOfYear:function(a){var b=Aa((va(this).startOf("day")-va(this).startOf("year"))/864e5)+1;return null==a?b:this.add(a-b,"d")},quarter:function(a){return null==a?Math.ceil((this.month()+1)/3):this.month(3*(a-1)+this.month()%3)},weekYear:function(a){var b=ja(this,this.localeData()._week.dow,this.localeData()._week.doy).year;return null==a?b:this.add(a-b,"y")},isoWeekYear:function(a){var b=ja(this,1,4).year;return null==a?b:this.add(a-b,"y")},week:function(a){var b=this.localeData().week(this);return null==a?b:this.add(7*(a-b),"d")},isoWeek:function(a){var b=ja(this,1,4).week;return null==a?b:this.add(7*(a-b),"d")},weekday:function(a){var b=(this.day()+7-this.localeData()._week.dow)%7;return null==a?b:this.add(a-b,"d")},isoWeekday:function(a){return null==a?this.day()||7:this.day(this.day()%7?a:a-7)},isoWeeksInYear:function(){return E(this.year(),1,4)},weeksInYear:function(){var a=this.localeData()._week;return E(this.year(),a.dow,a.doy)},get:function(a){return a=z(a),this[a]()},set:function(a,b){var c;if("object"==typeof a)for(c in a)this.set(c,a[c]);else a=z(a),"function"==typeof this[a]&&this[a](b);return this},locale:function(b){var c;return b===a?this._locale._abbr:(c=va.localeData(b),null!=c&&(this._locale=c),this)},lang:f("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(b){return b===a?this.localeData():this.locale(b)}),localeData:function(){return this._locale},_dateUtcOffset:function(){return 15*-Math.round(this._d.getTimezoneOffset()/15)}}),va.fn.millisecond=va.fn.milliseconds=qa("Milliseconds",!1),va.fn.second=va.fn.seconds=qa("Seconds",!1),va.fn.minute=va.fn.minutes=qa("Minutes",!1),va.fn.hour=va.fn.hours=qa("Hours",!0),va.fn.date=qa("Date",!0),va.fn.dates=f("dates accessor is deprecated. Use date instead.",qa("Date",!0)),va.fn.year=qa("FullYear",!0),va.fn.years=f("years accessor is deprecated. Use year instead.",qa("FullYear",!0)),va.fn.days=va.fn.day,va.fn.months=va.fn.month,va.fn.weeks=va.fn.week,va.fn.isoWeeks=va.fn.isoWeek,va.fn.quarters=va.fn.quarter,va.fn.toJSON=va.fn.toISOString,va.fn.isUTC=va.fn.isUtc,o(va.duration.fn=n.prototype,{_bubble:function(){var a,b,c,d=this._milliseconds,e=this._days,f=this._months,g=this._data,h=0;g.milliseconds=d%1e3,a=q(d/1e3),g.seconds=a%60,b=q(a/60),g.minutes=b%60,c=q(b/60),g.hours=c%24,e+=q(c/24),h=q(ra(e)),e-=q(sa(h)),f+=q(e/30),e%=30,h+=q(f/12),f%=12,g.days=e,g.months=f,g.years=h},abs:function(){return this._milliseconds=Math.abs(this._milliseconds),this._days=Math.abs(this._days),this._months=Math.abs(this._months),this._data.milliseconds=Math.abs(this._data.milliseconds),this._data.seconds=Math.abs(this._data.seconds),this._data.minutes=Math.abs(this._data.minutes),this._data.hours=Math.abs(this._data.hours),this._data.months=Math.abs(this._data.months),this._data.years=Math.abs(this._data.years),this},weeks:function(){return q(this.days()/7)},valueOf:function(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*C(this._months/12);
3
  },humanize:function(a){var b=ia(this,!a,this.localeData());return a&&(b=this.localeData().pastFuture(+this,b)),this.localeData().postformat(b)},add:function(a,b){var c=va.duration(a,b);return this._milliseconds+=c._milliseconds,this._days+=c._days,this._months+=c._months,this._bubble(),this},subtract:function(a,b){var c=va.duration(a,b);return this._milliseconds-=c._milliseconds,this._days-=c._days,this._months-=c._months,this._bubble(),this},get:function(a){return a=z(a),this[a.toLowerCase()+"s"]()},as:function(a){var b,c;if(a=z(a),"month"===a||"year"===a)return b=this._days+this._milliseconds/864e5,c=this._months+12*ra(b),"month"===a?c:c/12;switch(b=this._days+Math.round(sa(this._months/12)),a){case"week":return b/7+this._milliseconds/6048e5;case"day":return b+this._milliseconds/864e5;case"hour":return 24*b+this._milliseconds/36e5;case"minute":return 24*b*60+this._milliseconds/6e4;case"second":return 24*b*60*60+this._milliseconds/1e3;case"millisecond":return Math.floor(24*b*60*60*1e3)+this._milliseconds;default:throw new Error("Unknown unit "+a)}},lang:va.fn.lang,locale:va.fn.locale,toIsoString:f("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",function(){return this.toISOString()}),toISOString:function(){var a=Math.abs(this.years()),b=Math.abs(this.months()),c=Math.abs(this.days()),d=Math.abs(this.hours()),e=Math.abs(this.minutes()),f=Math.abs(this.seconds()+this.milliseconds()/1e3);return this.asSeconds()?(this.asSeconds()<0?"-":"")+"P"+(a?a+"Y":"")+(b?b+"M":"")+(c?c+"D":"")+(d||e||f?"T":"")+(d?d+"H":"")+(e?e+"M":"")+(f?f+"S":""):"P0D"},localeData:function(){return this._locale},toJSON:function(){return this.toISOString()}}),va.duration.fn.toString=va.duration.fn.toISOString;for(xa in kb)c(kb,xa)&&ta(xa.toLowerCase());va.duration.fn.asMilliseconds=function(){return this.as("ms")},va.duration.fn.asSeconds=function(){return this.as("s")},va.duration.fn.asMinutes=function(){return this.as("m")},va.duration.fn.asHours=function(){return this.as("h")},va.duration.fn.asDays=function(){return this.as("d")},va.duration.fn.asWeeks=function(){return this.as("weeks")},va.duration.fn.asMonths=function(){return this.as("M")},va.duration.fn.asYears=function(){return this.as("y")},va.locale("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(a){var b=a%10,c=1===C(a%100/10)?"th":1===b?"st":2===b?"nd":3===b?"rd":"th";return a+c}}),La?module.exports=va:"function"==typeof define&&define.amd?(define(function(a,b,c){return c.config&&c.config()&&c.config().noGlobal===!0&&(za.moment=wa),va}),ua(!0)):ua()}).call(this);
1
+ /*! event-organiser 3.6.0-0-g619ade6 2017-11-25 22:52 */
2
  (function(a){function b(a,b,c){switch(arguments.length){case 2:return null!=a?a:b;case 3:return null!=a?a:null!=b?b:c;default:throw new Error("Implement me")}}function c(a,b){return Ba.call(a,b)}function d(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1}}function e(a){va.suppressDeprecationWarnings===!1&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+a)}function f(a,b){var c=!0;return o(function(){return c&&(e(a),c=!1),b.apply(this,arguments)},b)}function g(a,b){sb[a]||(e(b),sb[a]=!0)}function h(a,b){return function(c){return r(a.call(this,c),b)}}function i(a,b){return function(c){return this.localeData().ordinal(a.call(this,c),b)}}function j(a,b){var c,d,e=12*(b.year()-a.year())+(b.month()-a.month()),f=a.clone().add(e,"months");return 0>b-f?(c=a.clone().add(e-1,"months"),d=(b-f)/(f-c)):(c=a.clone().add(e+1,"months"),d=(b-f)/(c-f)),-(e+d)}function k(a,b,c){var d;return null==c?b:null!=a.meridiemHour?a.meridiemHour(b,c):null!=a.isPM?(d=a.isPM(c),d&&12>b&&(b+=12),d||12!==b||(b=0),b):b}function l(){}function m(a,b){b!==!1&&H(a),p(this,a),this._d=new Date(+a._d),ub===!1&&(ub=!0,va.updateOffset(this),ub=!1)}function n(a){var b=A(a),c=b.year||0,d=b.quarter||0,e=b.month||0,f=b.week||0,g=b.day||0,h=b.hour||0,i=b.minute||0,j=b.second||0,k=b.millisecond||0;this._milliseconds=+k+1e3*j+6e4*i+36e5*h,this._days=+g+7*f,this._months=+e+3*d+12*c,this._data={},this._locale=va.localeData(),this._bubble()}function o(a,b){for(var d in b)c(b,d)&&(a[d]=b[d]);return c(b,"toString")&&(a.toString=b.toString),c(b,"valueOf")&&(a.valueOf=b.valueOf),a}function p(a,b){var c,d,e;if("undefined"!=typeof b._isAMomentObject&&(a._isAMomentObject=b._isAMomentObject),"undefined"!=typeof b._i&&(a._i=b._i),"undefined"!=typeof b._f&&(a._f=b._f),"undefined"!=typeof b._l&&(a._l=b._l),"undefined"!=typeof b._strict&&(a._strict=b._strict),"undefined"!=typeof b._tzm&&(a._tzm=b._tzm),"undefined"!=typeof b._isUTC&&(a._isUTC=b._isUTC),"undefined"!=typeof b._offset&&(a._offset=b._offset),"undefined"!=typeof b._pf&&(a._pf=b._pf),"undefined"!=typeof b._locale&&(a._locale=b._locale),Ka.length>0)for(c in Ka)d=Ka[c],e=b[d],"undefined"!=typeof e&&(a[d]=e);return a}function q(a){return 0>a?Math.ceil(a):Math.floor(a)}function r(a,b,c){for(var d=""+Math.abs(a),e=a>=0;d.length<b;)d="0"+d;return(e?c?"+":"":"-")+d}function s(a,b){var c={milliseconds:0,months:0};return c.months=b.month()-a.month()+12*(b.year()-a.year()),a.clone().add(c.months,"M").isAfter(b)&&--c.months,c.milliseconds=+b-+a.clone().add(c.months,"M"),c}function t(a,b){var c;return b=M(b,a),a.isBefore(b)?c=s(a,b):(c=s(b,a),c.milliseconds=-c.milliseconds,c.months=-c.months),c}function u(a,b){return function(c,d){var e,f;return null===d||isNaN(+d)||(g(b,"moment()."+b+"(period, number) is deprecated. Please use moment()."+b+"(number, period)."),f=c,c=d,d=f),c="string"==typeof c?+c:c,e=va.duration(c,d),v(this,e,a),this}}function v(a,b,c,d){var e=b._milliseconds,f=b._days,g=b._months;d=null==d?!0:d,e&&a._d.setTime(+a._d+e*c),f&&pa(a,"Date",oa(a,"Date")+f*c),g&&na(a,oa(a,"Month")+g*c),d&&va.updateOffset(a,f||g)}function w(a){return"[object Array]"===Object.prototype.toString.call(a)}function x(a){return"[object Date]"===Object.prototype.toString.call(a)||a instanceof Date}function y(a,b,c){var d,e=Math.min(a.length,b.length),f=Math.abs(a.length-b.length),g=0;for(d=0;e>d;d++)(c&&a[d]!==b[d]||!c&&C(a[d])!==C(b[d]))&&g++;return g+f}function z(a){if(a){var b=a.toLowerCase().replace(/(.)s$/,"$1");a=lb[a]||mb[b]||b}return a}function A(a){var b,d,e={};for(d in a)c(a,d)&&(b=z(d),b&&(e[b]=a[d]));return e}function B(b){var c,d;if(0===b.indexOf("week"))c=7,d="day";else{if(0!==b.indexOf("month"))return;c=12,d="month"}va[b]=function(e,f){var g,h,i=va._locale[b],j=[];if("number"==typeof e&&(f=e,e=a),h=function(a){var b=va().utc().set(d,a);return i.call(va._locale,b,e||"")},null!=f)return h(f);for(g=0;c>g;g++)j.push(h(g));return j}}function C(a){var b=+a,c=0;return 0!==b&&isFinite(b)&&(c=b>=0?Math.floor(b):Math.ceil(b)),c}function D(a,b){return new Date(Date.UTC(a,b+1,0)).getUTCDate()}function E(a,b,c){return ja(va([a,11,31+b-c]),b,c).week}function F(a){return G(a)?366:365}function G(a){return a%4===0&&a%100!==0||a%400===0}function H(a){var b;a._a&&-2===a._pf.overflow&&(b=a._a[Da]<0||a._a[Da]>11?Da:a._a[Ea]<1||a._a[Ea]>D(a._a[Ca],a._a[Da])?Ea:a._a[Fa]<0||a._a[Fa]>24||24===a._a[Fa]&&(0!==a._a[Ga]||0!==a._a[Ha]||0!==a._a[Ia])?Fa:a._a[Ga]<0||a._a[Ga]>59?Ga:a._a[Ha]<0||a._a[Ha]>59?Ha:a._a[Ia]<0||a._a[Ia]>999?Ia:-1,a._pf._overflowDayOfYear&&(Ca>b||b>Ea)&&(b=Ea),a._pf.overflow=b)}function I(b){return null==b._isValid&&(b._isValid=!isNaN(b._d.getTime())&&b._pf.overflow<0&&!b._pf.empty&&!b._pf.invalidMonth&&!b._pf.nullInput&&!b._pf.invalidFormat&&!b._pf.userInvalidated,b._strict&&(b._isValid=b._isValid&&0===b._pf.charsLeftOver&&0===b._pf.unusedTokens.length&&b._pf.bigHour===a)),b._isValid}function J(a){return a?a.toLowerCase().replace("_","-"):a}function K(a){for(var b,c,d,e,f=0;f<a.length;){for(e=J(a[f]).split("-"),b=e.length,c=J(a[f+1]),c=c?c.split("-"):null;b>0;){if(d=L(e.slice(0,b).join("-")))return d;if(c&&c.length>=b&&y(e,c,!0)>=b-1)break;b--}f++}return null}function L(a){var b=null;if(!Ja[a]&&La)try{b=va.locale(),require("./locale/"+a),va.locale(b)}catch(c){}return Ja[a]}function M(a,b){var c,d;return b._isUTC?(c=b.clone(),d=(va.isMoment(a)||x(a)?+a:+va(a))-+c,c._d.setTime(+c._d+d),va.updateOffset(c,!1),c):va(a).local()}function N(a){return a.match(/\[[\s\S]/)?a.replace(/^\[|\]$/g,""):a.replace(/\\/g,"")}function O(a){var b,c,d=a.match(Pa);for(b=0,c=d.length;c>b;b++)rb[d[b]]?d[b]=rb[d[b]]:d[b]=N(d[b]);return function(e){var f="";for(b=0;c>b;b++)f+=d[b]instanceof Function?d[b].call(e,a):d[b];return f}}function P(a,b){return a.isValid()?(b=Q(b,a.localeData()),nb[b]||(nb[b]=O(b)),nb[b](a)):a.localeData().invalidDate()}function Q(a,b){function c(a){return b.longDateFormat(a)||a}var d=5;for(Qa.lastIndex=0;d>=0&&Qa.test(a);)a=a.replace(Qa,c),Qa.lastIndex=0,d-=1;return a}function R(a,b){var c,d=b._strict;switch(a){case"Q":return _a;case"DDDD":return bb;case"YYYY":case"GGGG":case"gggg":return d?cb:Ta;case"Y":case"G":case"g":return eb;case"YYYYYY":case"YYYYY":case"GGGGG":case"ggggg":return d?db:Ua;case"S":if(d)return _a;case"SS":if(d)return ab;case"SSS":if(d)return bb;case"DDD":return Sa;case"MMM":case"MMMM":case"dd":case"ddd":case"dddd":return Wa;case"a":case"A":return b._locale._meridiemParse;case"x":return Za;case"X":return $a;case"Z":case"ZZ":return Xa;case"T":return Ya;case"SSSS":return Va;case"MM":case"DD":case"YY":case"GG":case"gg":case"HH":case"hh":case"mm":case"ss":case"ww":case"WW":return d?ab:Ra;case"M":case"D":case"d":case"H":case"h":case"m":case"s":case"w":case"W":case"e":case"E":return Ra;case"Do":return d?b._locale._ordinalParse:b._locale._ordinalParseLenient;default:return c=new RegExp($(Z(a.replace("\\","")),"i"))}}function S(a){a=a||"";var b=a.match(Xa)||[],c=b[b.length-1]||[],d=(c+"").match(jb)||["-",0,0],e=+(60*d[1])+C(d[2]);return"+"===d[0]?e:-e}function T(a,b,c){var d,e=c._a;switch(a){case"Q":null!=b&&(e[Da]=3*(C(b)-1));break;case"M":case"MM":null!=b&&(e[Da]=C(b)-1);break;case"MMM":case"MMMM":d=c._locale.monthsParse(b,a,c._strict),null!=d?e[Da]=d:c._pf.invalidMonth=b;break;case"D":case"DD":null!=b&&(e[Ea]=C(b));break;case"Do":null!=b&&(e[Ea]=C(parseInt(b.match(/\d{1,2}/)[0],10)));break;case"DDD":case"DDDD":null!=b&&(c._dayOfYear=C(b));break;case"YY":e[Ca]=va.parseTwoDigitYear(b);break;case"YYYY":case"YYYYY":case"YYYYYY":e[Ca]=C(b);break;case"a":case"A":c._meridiem=b;break;case"h":case"hh":c._pf.bigHour=!0;case"H":case"HH":e[Fa]=C(b);break;case"m":case"mm":e[Ga]=C(b);break;case"s":case"ss":e[Ha]=C(b);break;case"S":case"SS":case"SSS":case"SSSS":e[Ia]=C(1e3*("0."+b));break;case"x":c._d=new Date(C(b));break;case"X":c._d=new Date(1e3*parseFloat(b));break;case"Z":case"ZZ":c._useUTC=!0,c._tzm=S(b);break;case"dd":case"ddd":case"dddd":d=c._locale.weekdaysParse(b),null!=d?(c._w=c._w||{},c._w.d=d):c._pf.invalidWeekday=b;break;case"w":case"ww":case"W":case"WW":case"d":case"e":case"E":a=a.substr(0,1);case"gggg":case"GGGG":case"GGGGG":a=a.substr(0,2),b&&(c._w=c._w||{},c._w[a]=C(b));break;case"gg":case"GG":c._w=c._w||{},c._w[a]=va.parseTwoDigitYear(b)}}function U(a){var c,d,e,f,g,h,i;c=a._w,null!=c.GG||null!=c.W||null!=c.E?(g=1,h=4,d=b(c.GG,a._a[Ca],ja(va(),1,4).year),e=b(c.W,1),f=b(c.E,1)):(g=a._locale._week.dow,h=a._locale._week.doy,d=b(c.gg,a._a[Ca],ja(va(),g,h).year),e=b(c.w,1),null!=c.d?(f=c.d,g>f&&++e):f=null!=c.e?c.e+g:g),i=ka(d,e,f,h,g),a._a[Ca]=i.year,a._dayOfYear=i.dayOfYear}function V(a){var c,d,e,f,g=[];if(!a._d){for(e=X(a),a._w&&null==a._a[Ea]&&null==a._a[Da]&&U(a),a._dayOfYear&&(f=b(a._a[Ca],e[Ca]),a._dayOfYear>F(f)&&(a._pf._overflowDayOfYear=!0),d=fa(f,0,a._dayOfYear),a._a[Da]=d.getUTCMonth(),a._a[Ea]=d.getUTCDate()),c=0;3>c&&null==a._a[c];++c)a._a[c]=g[c]=e[c];for(;7>c;c++)a._a[c]=g[c]=null==a._a[c]?2===c?1:0:a._a[c];24===a._a[Fa]&&0===a._a[Ga]&&0===a._a[Ha]&&0===a._a[Ia]&&(a._nextDay=!0,a._a[Fa]=0),a._d=(a._useUTC?fa:ea).apply(null,g),null!=a._tzm&&a._d.setUTCMinutes(a._d.getUTCMinutes()-a._tzm),a._nextDay&&(a._a[Fa]=24)}}function W(a){var b;a._d||(b=A(a._i),a._a=[b.year,b.month,b.day||b.date,b.hour,b.minute,b.second,b.millisecond],V(a))}function X(a){var b=new Date;return a._useUTC?[b.getUTCFullYear(),b.getUTCMonth(),b.getUTCDate()]:[b.getFullYear(),b.getMonth(),b.getDate()]}function Y(b){if(b._f===va.ISO_8601)return void aa(b);b._a=[],b._pf.empty=!0;var c,d,e,f,g,h=""+b._i,i=h.length,j=0;for(e=Q(b._f,b._locale).match(Pa)||[],c=0;c<e.length;c++)f=e[c],d=(h.match(R(f,b))||[])[0],d&&(g=h.substr(0,h.indexOf(d)),g.length>0&&b._pf.unusedInput.push(g),h=h.slice(h.indexOf(d)+d.length),j+=d.length),rb[f]?(d?b._pf.empty=!1:b._pf.unusedTokens.push(f),T(f,d,b)):b._strict&&!d&&b._pf.unusedTokens.push(f);b._pf.charsLeftOver=i-j,h.length>0&&b._pf.unusedInput.push(h),b._pf.bigHour===!0&&b._a[Fa]<=12&&(b._pf.bigHour=a),b._a[Fa]=k(b._locale,b._a[Fa],b._meridiem),V(b),H(b)}function Z(a){return a.replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(a,b,c,d,e){return b||c||d||e})}function $(a){return a.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function _(a){var b,c,e,f,g;if(0===a._f.length)return a._pf.invalidFormat=!0,void(a._d=new Date(NaN));for(f=0;f<a._f.length;f++)g=0,b=p({},a),null!=a._useUTC&&(b._useUTC=a._useUTC),b._pf=d(),b._f=a._f[f],Y(b),I(b)&&(g+=b._pf.charsLeftOver,g+=10*b._pf.unusedTokens.length,b._pf.score=g,(null==e||e>g)&&(e=g,c=b));o(a,c||b)}function aa(a){var b,c,d=a._i,e=fb.exec(d);if(e){for(a._pf.iso=!0,b=0,c=hb.length;c>b;b++)if(hb[b][1].exec(d)){a._f=hb[b][0]+(e[6]||" ");break}for(b=0,c=ib.length;c>b;b++)if(ib[b][1].exec(d)){a._f+=ib[b][0];break}d.match(Xa)&&(a._f+="Z"),Y(a)}else a._isValid=!1}function ba(a){aa(a),a._isValid===!1&&(delete a._isValid,va.createFromInputFallback(a))}function ca(a,b){var c,d=[];for(c=0;c<a.length;++c)d.push(b(a[c],c));return d}function da(b){var c,d=b._i;d===a?b._d=new Date:x(d)?b._d=new Date(+d):null!==(c=Ma.exec(d))?b._d=new Date(+c[1]):"string"==typeof d?ba(b):w(d)?(b._a=ca(d.slice(0),function(a){return parseInt(a,10)}),V(b)):"object"==typeof d?W(b):"number"==typeof d?b._d=new Date(d):va.createFromInputFallback(b)}function ea(a,b,c,d,e,f,g){var h=new Date(a,b,c,d,e,f,g);return 1970>a&&h.setFullYear(a),h}function fa(a){var b=new Date(Date.UTC.apply(null,arguments));return 1970>a&&b.setUTCFullYear(a),b}function ga(a,b){if("string"==typeof a)if(isNaN(a)){if(a=b.weekdaysParse(a),"number"!=typeof a)return null}else a=parseInt(a,10);return a}function ha(a,b,c,d,e){return e.relativeTime(b||1,!!c,a,d)}function ia(a,b,c){var d=va.duration(a).abs(),e=Aa(d.as("s")),f=Aa(d.as("m")),g=Aa(d.as("h")),h=Aa(d.as("d")),i=Aa(d.as("M")),j=Aa(d.as("y")),k=e<ob.s&&["s",e]||1===f&&["m"]||f<ob.m&&["mm",f]||1===g&&["h"]||g<ob.h&&["hh",g]||1===h&&["d"]||h<ob.d&&["dd",h]||1===i&&["M"]||i<ob.M&&["MM",i]||1===j&&["y"]||["yy",j];return k[2]=b,k[3]=+a>0,k[4]=c,ha.apply({},k)}function ja(a,b,c){var d,e=c-b,f=c-a.day();return f>e&&(f-=7),e-7>f&&(f+=7),d=va(a).add(f,"d"),{week:Math.ceil(d.dayOfYear()/7),year:d.year()}}function ka(a,b,c,d,e){var f,g,h=fa(a,0,1).getUTCDay();return h=0===h?7:h,c=null!=c?c:e,f=e-h+(h>d?7:0)-(e>h?7:0),g=7*(b-1)+(c-e)+f+1,{year:g>0?a:a-1,dayOfYear:g>0?g:F(a-1)+g}}function la(b){var c,d=b._i,e=b._f;return b._locale=b._locale||va.localeData(b._l),null===d||e===a&&""===d?va.invalid({nullInput:!0}):("string"==typeof d&&(b._i=d=b._locale.preparse(d)),va.isMoment(d)?new m(d,!0):(e?w(e)?_(b):Y(b):da(b),c=new m(b),c._nextDay&&(c.add(1,"d"),c._nextDay=a),c))}function ma(a,b){var c,d;if(1===b.length&&w(b[0])&&(b=b[0]),!b.length)return va();for(c=b[0],d=1;d<b.length;++d)b[d][a](c)&&(c=b[d]);return c}function na(a,b){var c;return"string"==typeof b&&(b=a.localeData().monthsParse(b),"number"!=typeof b)?a:(c=Math.min(a.date(),D(a.year(),b)),a._d["set"+(a._isUTC?"UTC":"")+"Month"](b,c),a)}function oa(a,b){return a._d["get"+(a._isUTC?"UTC":"")+b]()}function pa(a,b,c){return"Month"===b?na(a,c):a._d["set"+(a._isUTC?"UTC":"")+b](c)}function qa(a,b){return function(c){return null!=c?(pa(this,a,c),va.updateOffset(this,b),this):oa(this,a)}}function ra(a){return 400*a/146097}function sa(a){return 146097*a/400}function ta(a){va.duration.fn[a]=function(){return this._data[a]}}function ua(a){"undefined"==typeof ender&&(wa=za.moment,a?za.moment=f("Accessing Moment through the global scope is deprecated, and will be removed in an upcoming release.",va):za.moment=va)}for(var va,wa,xa,ya="2.9.0",za="undefined"==typeof global||"undefined"!=typeof window&&window!==global.window?this:global,Aa=Math.round,Ba=Object.prototype.hasOwnProperty,Ca=0,Da=1,Ea=2,Fa=3,Ga=4,Ha=5,Ia=6,Ja={},Ka=[],La="undefined"!=typeof module&&module&&module.exports,Ma=/^\/?Date\((\-?\d+)/i,Na=/(\-)?(?:(\d*)\.)?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?)?/,Oa=/^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/,Pa=/(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Q|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,4}|x|X|zz?|ZZ?|.)/g,Qa=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Ra=/\d\d?/,Sa=/\d{1,3}/,Ta=/\d{1,4}/,Ua=/[+\-]?\d{1,6}/,Va=/\d+/,Wa=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,Xa=/Z|[\+\-]\d\d:?\d\d/gi,Ya=/T/i,Za=/[\+\-]?\d+/,$a=/[\+\-]?\d+(\.\d{1,3})?/,_a=/\d/,ab=/\d\d/,bb=/\d{3}/,cb=/\d{4}/,db=/[+-]?\d{6}/,eb=/[+-]?\d+/,fb=/^\s*(?:[+-]\d{6}|\d{4})-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,gb="YYYY-MM-DDTHH:mm:ssZ",hb=[["YYYYYY-MM-DD",/[+-]\d{6}-\d{2}-\d{2}/],["YYYY-MM-DD",/\d{4}-\d{2}-\d{2}/],["GGGG-[W]WW-E",/\d{4}-W\d{2}-\d/],["GGGG-[W]WW",/\d{4}-W\d{2}/],["YYYY-DDD",/\d{4}-\d{3}/]],ib=[["HH:mm:ss.SSSS",/(T| )\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss",/(T| )\d\d:\d\d:\d\d/],["HH:mm",/(T| )\d\d:\d\d/],["HH",/(T| )\d\d/]],jb=/([\+\-]|\d\d)/gi,kb=("Date|Hours|Minutes|Seconds|Milliseconds".split("|"),{Milliseconds:1,Seconds:1e3,Minutes:6e4,Hours:36e5,Days:864e5,Months:2592e6,Years:31536e6}),lb={ms:"millisecond",s:"second",m:"minute",h:"hour",d:"day",D:"date",w:"week",W:"isoWeek",M:"month",Q:"quarter",y:"year",DDD:"dayOfYear",e:"weekday",E:"isoWeekday",gg:"weekYear",GG:"isoWeekYear"},mb={dayofyear:"dayOfYear",isoweekday:"isoWeekday",isoweek:"isoWeek",weekyear:"weekYear",isoweekyear:"isoWeekYear"},nb={},ob={s:45,m:45,h:22,d:26,M:11},pb="DDD w W M D d".split(" "),qb="M D H h m s w W".split(" "),rb={M:function(){return this.month()+1},MMM:function(a){return this.localeData().monthsShort(this,a)},MMMM:function(a){return this.localeData().months(this,a)},D:function(){return this.date()},DDD:function(){return this.dayOfYear()},d:function(){return this.day()},dd:function(a){return this.localeData().weekdaysMin(this,a)},ddd:function(a){return this.localeData().weekdaysShort(this,a)},dddd:function(a){return this.localeData().weekdays(this,a)},w:function(){return this.week()},W:function(){return this.isoWeek()},YY:function(){return r(this.year()%100,2)},YYYY:function(){return r(this.year(),4)},YYYYY:function(){return r(this.year(),5)},YYYYYY:function(){var a=this.year(),b=a>=0?"+":"-";return b+r(Math.abs(a),6)},gg:function(){return r(this.weekYear()%100,2)},gggg:function(){return r(this.weekYear(),4)},ggggg:function(){return r(this.weekYear(),5)},GG:function(){return r(this.isoWeekYear()%100,2)},GGGG:function(){return r(this.isoWeekYear(),4)},GGGGG:function(){return r(this.isoWeekYear(),5)},e:function(){return this.weekday()},E:function(){return this.isoWeekday()},a:function(){return this.localeData().meridiem(this.hours(),this.minutes(),!0)},A:function(){return this.localeData().meridiem(this.hours(),this.minutes(),!1)},H:function(){return this.hours()},h:function(){return this.hours()%12||12},m:function(){return this.minutes()},s:function(){return this.seconds()},S:function(){return C(this.milliseconds()/100)},SS:function(){return r(C(this.milliseconds()/10),2)},SSS:function(){return r(this.milliseconds(),3)},SSSS:function(){return r(this.milliseconds(),3)},Z:function(){var a=this.utcOffset(),b="+";return 0>a&&(a=-a,b="-"),b+r(C(a/60),2)+":"+r(C(a)%60,2)},ZZ:function(){var a=this.utcOffset(),b="+";return 0>a&&(a=-a,b="-"),b+r(C(a/60),2)+r(C(a)%60,2)},z:function(){return this.zoneAbbr()},zz:function(){return this.zoneName()},x:function(){return this.valueOf()},X:function(){return this.unix()},Q:function(){return this.quarter()}},sb={},tb=["months","monthsShort","weekdays","weekdaysShort","weekdaysMin"],ub=!1;pb.length;)xa=pb.pop(),rb[xa+"o"]=i(rb[xa],xa);for(;qb.length;)xa=qb.pop(),rb[xa+xa]=h(rb[xa],2);rb.DDDD=h(rb.DDD,3),o(l.prototype,{set:function(a){var b,c;for(c in a)b=a[c],"function"==typeof b?this[c]=b:this["_"+c]=b;this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)},_months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),months:function(a){return this._months[a.month()]},_monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),monthsShort:function(a){return this._monthsShort[a.month()]},monthsParse:function(a,b,c){var d,e,f;for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),d=0;12>d;d++){if(e=va.utc([2e3,d]),c&&!this._longMonthsParse[d]&&(this._longMonthsParse[d]=new RegExp("^"+this.months(e,"").replace(".","")+"$","i"),this._shortMonthsParse[d]=new RegExp("^"+this.monthsShort(e,"").replace(".","")+"$","i")),c||this._monthsParse[d]||(f="^"+this.months(e,"")+"|^"+this.monthsShort(e,""),this._monthsParse[d]=new RegExp(f.replace(".",""),"i")),c&&"MMMM"===b&&this._longMonthsParse[d].test(a))return d;if(c&&"MMM"===b&&this._shortMonthsParse[d].test(a))return d;if(!c&&this._monthsParse[d].test(a))return d}},_weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdays:function(a){return this._weekdays[a.day()]},_weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysShort:function(a){return this._weekdaysShort[a.day()]},_weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),weekdaysMin:function(a){return this._weekdaysMin[a.day()]},weekdaysParse:function(a){var b,c,d;for(this._weekdaysParse||(this._weekdaysParse=[]),b=0;7>b;b++)if(this._weekdaysParse[b]||(c=va([2e3,1]).day(b),d="^"+this.weekdays(c,"")+"|^"+this.weekdaysShort(c,"")+"|^"+this.weekdaysMin(c,""),this._weekdaysParse[b]=new RegExp(d.replace(".",""),"i")),this._weekdaysParse[b].test(a))return b},_longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY LT",LLLL:"dddd, MMMM D, YYYY LT"},longDateFormat:function(a){var b=this._longDateFormat[a];return!b&&this._longDateFormat[a.toUpperCase()]&&(b=this._longDateFormat[a.toUpperCase()].replace(/MMMM|MM|DD|dddd/g,function(a){return a.slice(1)}),this._longDateFormat[a]=b),b},isPM:function(a){return"p"===(a+"").toLowerCase().charAt(0)},_meridiemParse:/[ap]\.?m?\.?/i,meridiem:function(a,b,c){return a>11?c?"pm":"PM":c?"am":"AM"},_calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},calendar:function(a,b,c){var d=this._calendar[a];return"function"==typeof d?d.apply(b,[c]):d},_relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},relativeTime:function(a,b,c,d){var e=this._relativeTime[c];return"function"==typeof e?e(a,b,c,d):e.replace(/%d/i,a)},pastFuture:function(a,b){var c=this._relativeTime[a>0?"future":"past"];return"function"==typeof c?c(b):c.replace(/%s/i,b)},ordinal:function(a){return this._ordinal.replace("%d",a)},_ordinal:"%d",_ordinalParse:/\d{1,2}/,preparse:function(a){return a},postformat:function(a){return a},week:function(a){return ja(a,this._week.dow,this._week.doy).week},_week:{dow:0,doy:6},firstDayOfWeek:function(){return this._week.dow},firstDayOfYear:function(){return this._week.doy},_invalidDate:"Invalid date",invalidDate:function(){return this._invalidDate}}),va=function(b,c,e,f){var g;return"boolean"==typeof e&&(f=e,e=a),g={},g._isAMomentObject=!0,g._i=b,g._f=c,g._l=e,g._strict=f,g._isUTC=!1,g._pf=d(),la(g)},va.suppressDeprecationWarnings=!1,va.createFromInputFallback=f("moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to https://github.com/moment/moment/issues/1407 for more info.",function(a){a._d=new Date(a._i+(a._useUTC?" UTC":""))}),va.min=function(){var a=[].slice.call(arguments,0);return ma("isBefore",a)},va.max=function(){var a=[].slice.call(arguments,0);return ma("isAfter",a)},va.utc=function(b,c,e,f){var g;return"boolean"==typeof e&&(f=e,e=a),g={},g._isAMomentObject=!0,g._useUTC=!0,g._isUTC=!0,g._l=e,g._i=b,g._f=c,g._strict=f,g._pf=d(),la(g).utc()},va.unix=function(a){return va(1e3*a)},va.duration=function(a,b){var d,e,f,g,h=a,i=null;return va.isDuration(a)?h={ms:a._milliseconds,d:a._days,M:a._months}:"number"==typeof a?(h={},b?h[b]=a:h.milliseconds=a):(i=Na.exec(a))?(d="-"===i[1]?-1:1,h={y:0,d:C(i[Ea])*d,h:C(i[Fa])*d,m:C(i[Ga])*d,s:C(i[Ha])*d,ms:C(i[Ia])*d}):(i=Oa.exec(a))?(d="-"===i[1]?-1:1,f=function(a){var b=a&&parseFloat(a.replace(",","."));return(isNaN(b)?0:b)*d},h={y:f(i[2]),M:f(i[3]),d:f(i[4]),h:f(i[5]),m:f(i[6]),s:f(i[7]),w:f(i[8])}):null==h?h={}:"object"==typeof h&&("from"in h||"to"in h)&&(g=t(va(h.from),va(h.to)),h={},h.ms=g.milliseconds,h.M=g.months),e=new n(h),va.isDuration(a)&&c(a,"_locale")&&(e._locale=a._locale),e},va.version=ya,va.defaultFormat=gb,va.ISO_8601=function(){},va.momentProperties=Ka,va.updateOffset=function(){},va.relativeTimeThreshold=function(b,c){return ob[b]===a?!1:c===a?ob[b]:(ob[b]=c,!0)},va.lang=f("moment.lang is deprecated. Use moment.locale instead.",function(a,b){return va.locale(a,b)}),va.locale=function(a,b){var c;return a&&(c="undefined"!=typeof b?va.defineLocale(a,b):va.localeData(a),c&&(va.duration._locale=va._locale=c)),va._locale._abbr},va.defineLocale=function(a,b){return null!==b?(b.abbr=a,Ja[a]||(Ja[a]=new l),Ja[a].set(b),va.locale(a),Ja[a]):(delete Ja[a],null)},va.langData=f("moment.langData is deprecated. Use moment.localeData instead.",function(a){return va.localeData(a)}),va.localeData=function(a){var b;if(a&&a._locale&&a._locale._abbr&&(a=a._locale._abbr),!a)return va._locale;if(!w(a)){if(b=L(a))return b;a=[a]}return K(a)},va.isMoment=function(a){return a instanceof m||null!=a&&c(a,"_isAMomentObject")},va.isDuration=function(a){return a instanceof n};for(xa=tb.length-1;xa>=0;--xa)B(tb[xa]);va.normalizeUnits=function(a){return z(a)},va.invalid=function(a){var b=va.utc(NaN);return null!=a?o(b._pf,a):b._pf.userInvalidated=!0,b},va.parseZone=function(){return va.apply(null,arguments).parseZone()},va.parseTwoDigitYear=function(a){return C(a)+(C(a)>68?1900:2e3)},va.isDate=x,o(va.fn=m.prototype,{clone:function(){return va(this)},valueOf:function(){return+this._d-6e4*(this._offset||0)},unix:function(){return Math.floor(+this/1e3)},toString:function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},toDate:function(){return this._offset?new Date(+this):this._d},toISOString:function(){var a=va(this).utc();return 0<a.year()&&a.year()<=9999?"function"==typeof Date.prototype.toISOString?this.toDate().toISOString():P(a,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):P(a,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")},toArray:function(){var a=this;return[a.year(),a.month(),a.date(),a.hours(),a.minutes(),a.seconds(),a.milliseconds()]},isValid:function(){return I(this)},isDSTShifted:function(){return this._a?this.isValid()&&y(this._a,(this._isUTC?va.utc(this._a):va(this._a)).toArray())>0:!1},parsingFlags:function(){return o({},this._pf)},invalidAt:function(){return this._pf.overflow},utc:function(a){return this.utcOffset(0,a)},local:function(a){return this._isUTC&&(this.utcOffset(0,a),this._isUTC=!1,a&&this.subtract(this._dateUtcOffset(),"m")),this},format:function(a){var b=P(this,a||va.defaultFormat);return this.localeData().postformat(b)},add:u(1,"add"),subtract:u(-1,"subtract"),diff:function(a,b,c){var d,e,f=M(a,this),g=6e4*(f.utcOffset()-this.utcOffset());return b=z(b),"year"===b||"month"===b||"quarter"===b?(e=j(this,f),"quarter"===b?e/=3:"year"===b&&(e/=12)):(d=this-f,e="second"===b?d/1e3:"minute"===b?d/6e4:"hour"===b?d/36e5:"day"===b?(d-g)/864e5:"week"===b?(d-g)/6048e5:d),c?e:q(e)},from:function(a,b){return va.duration({to:this,from:a}).locale(this.locale()).humanize(!b)},fromNow:function(a){return this.from(va(),a)},calendar:function(a){var b=a||va(),c=M(b,this).startOf("day"),d=this.diff(c,"days",!0),e=-6>d?"sameElse":-1>d?"lastWeek":0>d?"lastDay":1>d?"sameDay":2>d?"nextDay":7>d?"nextWeek":"sameElse";return this.format(this.localeData().calendar(e,this,va(b)))},isLeapYear:function(){return G(this.year())},isDST:function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},day:function(a){var b=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=a?(a=ga(a,this.localeData()),this.add(a-b,"d")):b},month:qa("Month",!0),startOf:function(a){switch(a=z(a)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===a?this.weekday(0):"isoWeek"===a&&this.isoWeekday(1),"quarter"===a&&this.month(3*Math.floor(this.month()/3)),this},endOf:function(b){return b=z(b),b===a||"millisecond"===b?this:this.startOf(b).add(1,"isoWeek"===b?"week":b).subtract(1,"ms")},isAfter:function(a,b){var c;return b=z("undefined"!=typeof b?b:"millisecond"),"millisecond"===b?(a=va.isMoment(a)?a:va(a),+this>+a):(c=va.isMoment(a)?+a:+va(a),c<+this.clone().startOf(b))},isBefore:function(a,b){var c;return b=z("undefined"!=typeof b?b:"millisecond"),"millisecond"===b?(a=va.isMoment(a)?a:va(a),+a>+this):(c=va.isMoment(a)?+a:+va(a),+this.clone().endOf(b)<c)},isBetween:function(a,b,c){return this.isAfter(a,c)&&this.isBefore(b,c)},isSame:function(a,b){var c;return b=z(b||"millisecond"),"millisecond"===b?(a=va.isMoment(a)?a:va(a),+this===+a):(c=+va(a),+this.clone().startOf(b)<=c&&c<=+this.clone().endOf(b))},min:f("moment().min is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548",function(a){return a=va.apply(null,arguments),this>a?this:a}),max:f("moment().max is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548",function(a){return a=va.apply(null,arguments),a>this?this:a}),zone:f("moment().zone is deprecated, use moment().utcOffset instead. https://github.com/moment/moment/issues/1779",function(a,b){return null!=a?("string"!=typeof a&&(a=-a),this.utcOffset(a,b),this):-this.utcOffset()}),utcOffset:function(a,b){var c,d=this._offset||0;return null!=a?("string"==typeof a&&(a=S(a)),Math.abs(a)<16&&(a=60*a),!this._isUTC&&b&&(c=this._dateUtcOffset()),this._offset=a,this._isUTC=!0,null!=c&&this.add(c,"m"),d!==a&&(!b||this._changeInProgress?v(this,va.duration(a-d,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,va.updateOffset(this,!0),this._changeInProgress=null)),this):this._isUTC?d:this._dateUtcOffset()},isLocal:function(){return!this._isUTC},isUtcOffset:function(){return this._isUTC},isUtc:function(){return this._isUTC&&0===this._offset},zoneAbbr:function(){return this._isUTC?"UTC":""},zoneName:function(){return this._isUTC?"Coordinated Universal Time":""},parseZone:function(){return this._tzm?this.utcOffset(this._tzm):"string"==typeof this._i&&this.utcOffset(S(this._i)),this},hasAlignedHourOffset:function(a){return a=a?va(a).utcOffset():0,(this.utcOffset()-a)%60===0},daysInMonth:function(){return D(this.year(),this.month())},dayOfYear:function(a){var b=Aa((va(this).startOf("day")-va(this).startOf("year"))/864e5)+1;return null==a?b:this.add(a-b,"d")},quarter:function(a){return null==a?Math.ceil((this.month()+1)/3):this.month(3*(a-1)+this.month()%3)},weekYear:function(a){var b=ja(this,this.localeData()._week.dow,this.localeData()._week.doy).year;return null==a?b:this.add(a-b,"y")},isoWeekYear:function(a){var b=ja(this,1,4).year;return null==a?b:this.add(a-b,"y")},week:function(a){var b=this.localeData().week(this);return null==a?b:this.add(7*(a-b),"d")},isoWeek:function(a){var b=ja(this,1,4).week;return null==a?b:this.add(7*(a-b),"d")},weekday:function(a){var b=(this.day()+7-this.localeData()._week.dow)%7;return null==a?b:this.add(a-b,"d")},isoWeekday:function(a){return null==a?this.day()||7:this.day(this.day()%7?a:a-7)},isoWeeksInYear:function(){return E(this.year(),1,4)},weeksInYear:function(){var a=this.localeData()._week;return E(this.year(),a.dow,a.doy)},get:function(a){return a=z(a),this[a]()},set:function(a,b){var c;if("object"==typeof a)for(c in a)this.set(c,a[c]);else a=z(a),"function"==typeof this[a]&&this[a](b);return this},locale:function(b){var c;return b===a?this._locale._abbr:(c=va.localeData(b),null!=c&&(this._locale=c),this)},lang:f("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(b){return b===a?this.localeData():this.locale(b)}),localeData:function(){return this._locale},_dateUtcOffset:function(){return 15*-Math.round(this._d.getTimezoneOffset()/15)}}),va.fn.millisecond=va.fn.milliseconds=qa("Milliseconds",!1),va.fn.second=va.fn.seconds=qa("Seconds",!1),va.fn.minute=va.fn.minutes=qa("Minutes",!1),va.fn.hour=va.fn.hours=qa("Hours",!0),va.fn.date=qa("Date",!0),va.fn.dates=f("dates accessor is deprecated. Use date instead.",qa("Date",!0)),va.fn.year=qa("FullYear",!0),va.fn.years=f("years accessor is deprecated. Use year instead.",qa("FullYear",!0)),va.fn.days=va.fn.day,va.fn.months=va.fn.month,va.fn.weeks=va.fn.week,va.fn.isoWeeks=va.fn.isoWeek,va.fn.quarters=va.fn.quarter,va.fn.toJSON=va.fn.toISOString,va.fn.isUTC=va.fn.isUtc,o(va.duration.fn=n.prototype,{_bubble:function(){var a,b,c,d=this._milliseconds,e=this._days,f=this._months,g=this._data,h=0;g.milliseconds=d%1e3,a=q(d/1e3),g.seconds=a%60,b=q(a/60),g.minutes=b%60,c=q(b/60),g.hours=c%24,e+=q(c/24),h=q(ra(e)),e-=q(sa(h)),f+=q(e/30),e%=30,h+=q(f/12),f%=12,g.days=e,g.months=f,g.years=h},abs:function(){return this._milliseconds=Math.abs(this._milliseconds),this._days=Math.abs(this._days),this._months=Math.abs(this._months),this._data.milliseconds=Math.abs(this._data.milliseconds),this._data.seconds=Math.abs(this._data.seconds),this._data.minutes=Math.abs(this._data.minutes),this._data.hours=Math.abs(this._data.hours),this._data.months=Math.abs(this._data.months),this._data.years=Math.abs(this._data.years),this},weeks:function(){return q(this.days()/7)},valueOf:function(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*C(this._months/12);
3
  },humanize:function(a){var b=ia(this,!a,this.localeData());return a&&(b=this.localeData().pastFuture(+this,b)),this.localeData().postformat(b)},add:function(a,b){var c=va.duration(a,b);return this._milliseconds+=c._milliseconds,this._days+=c._days,this._months+=c._months,this._bubble(),this},subtract:function(a,b){var c=va.duration(a,b);return this._milliseconds-=c._milliseconds,this._days-=c._days,this._months-=c._months,this._bubble(),this},get:function(a){return a=z(a),this[a.toLowerCase()+"s"]()},as:function(a){var b,c;if(a=z(a),"month"===a||"year"===a)return b=this._days+this._milliseconds/864e5,c=this._months+12*ra(b),"month"===a?c:c/12;switch(b=this._days+Math.round(sa(this._months/12)),a){case"week":return b/7+this._milliseconds/6048e5;case"day":return b+this._milliseconds/864e5;case"hour":return 24*b+this._milliseconds/36e5;case"minute":return 24*b*60+this._milliseconds/6e4;case"second":return 24*b*60*60+this._milliseconds/1e3;case"millisecond":return Math.floor(24*b*60*60*1e3)+this._milliseconds;default:throw new Error("Unknown unit "+a)}},lang:va.fn.lang,locale:va.fn.locale,toIsoString:f("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",function(){return this.toISOString()}),toISOString:function(){var a=Math.abs(this.years()),b=Math.abs(this.months()),c=Math.abs(this.days()),d=Math.abs(this.hours()),e=Math.abs(this.minutes()),f=Math.abs(this.seconds()+this.milliseconds()/1e3);return this.asSeconds()?(this.asSeconds()<0?"-":"")+"P"+(a?a+"Y":"")+(b?b+"M":"")+(c?c+"D":"")+(d||e||f?"T":"")+(d?d+"H":"")+(e?e+"M":"")+(f?f+"S":""):"P0D"},localeData:function(){return this._locale},toJSON:function(){return this.toISOString()}}),va.duration.fn.toString=va.duration.fn.toISOString;for(xa in kb)c(kb,xa)&&ta(xa.toLowerCase());va.duration.fn.asMilliseconds=function(){return this.as("ms")},va.duration.fn.asSeconds=function(){return this.as("s")},va.duration.fn.asMinutes=function(){return this.as("m")},va.duration.fn.asHours=function(){return this.as("h")},va.duration.fn.asDays=function(){return this.as("d")},va.duration.fn.asWeeks=function(){return this.as("weeks")},va.duration.fn.asMonths=function(){return this.as("M")},va.duration.fn.asYears=function(){return this.as("y")},va.locale("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(a){var b=a%10,c=1===C(a%100/10)?"th":1===b?"st":2===b?"nd":3===b?"rd":"th";return a+c}}),La?module.exports=va:"function"==typeof define&&define.amd?(define(function(a,b,c){return c.config&&c.config()&&c.config().noGlobal===!0&&(za.moment=wa),va}),ua(!0)):ua()}).call(this);
js/time-picker.min.js CHANGED
@@ -1,2 +1,2 @@
1
- /*! event-organiser 3.5.1-0-g786a5d5 2017-11-14 21:45 */
2
  !function($){function Timepicker(){this._curInst=null,this._disabledInputs=[],this._timepickerShowing=!1,this._inDialog=!1,this._dialogClass="ui-timepicker-dialog",this._mainDivId="ui-timepicker-div",this._inlineClass="ui-timepicker-inline",this._currentClass="ui-timepicker-current",this._dayOverClass="ui-timepicker-days-cell-over",this.regional=[],this.regional[""]={hourText:"Hour",minuteText:"Minute",amPmText:["AM","PM"],closeButtonText:"Done",nowButtonText:"Now",deselectButtonText:"Deselect"},this._defaults={showOn:"focus",button:null,showAnim:"fadeIn",showOptions:{},appendText:"",beforeShow:null,onSelect:null,onClose:null,timeSeparator:":",periodSeparator:" ",showPeriod:!1,showPeriodLabels:!0,showLeadingZero:!0,showMinutesLeadingZero:!0,altField:"",defaultTime:"now",myPosition:"left top",atPosition:"left bottom",onHourShow:null,onMinuteShow:null,hours:{starts:0,ends:23},minutes:{starts:0,ends:55,interval:5},rows:4,showHours:!0,showMinutes:!0,optionalMinutes:!1,showCloseButton:!1,showNowButton:!1,showDeselectButton:!1},$.extend(this._defaults,this.regional[""]),this.tpDiv=$('<div id="'+this._mainDivId+'" class="ui-timepicker ui-widget ui-helper-clearfix ui-corner-all " style="display: none"></div>')}function extendRemove(a,b){$.extend(a,b);for(var c in b)(null==b[c]||void 0==b[c])&&(a[c]=b[c]);return a}$.extend($.ui,{timepicker:{version:"0.3.1"}});var PROP_NAME="timepicker",tpuuid=(new Date).getTime();$.extend(Timepicker.prototype,{markerClassName:"hasTimepicker",log:function(){},_widgetTimepicker:function(){return this.tpDiv},setDefaults:function(a){return extendRemove(this._defaults,a||{}),this},_attachTimepicker:function(target,settings){var inlineSettings=null;for(var attrName in this._defaults){var attrValue=target.getAttribute("time:"+attrName);if(attrValue){inlineSettings=inlineSettings||{};try{inlineSettings[attrName]=eval(attrValue)}catch(err){inlineSettings[attrName]=attrValue}}}var nodeName=target.nodeName.toLowerCase(),inline="div"==nodeName||"span"==nodeName;target.id||(this.uuid+=1,target.id="tp"+this.uuid);var inst=this._newInst($(target),inline);inst.settings=$.extend({},settings||{},inlineSettings||{}),"input"==nodeName?(this._connectTimepicker(target,inst),this._setTimeFromField(inst)):inline&&this._inlineTimepicker(target,inst)},_newInst:function(a,b){var c=a[0].id.replace(/([^A-Za-z0-9_-])/g,"\\\\$1");return{id:c,input:a,inline:b,tpDiv:b?$('<div class="'+this._inlineClass+' ui-timepicker ui-widget ui-helper-clearfix"></div>'):this.tpDiv}},_connectTimepicker:function(a,b){var c=$(a);b.append=$([]),b.trigger=$([]),c.hasClass(this.markerClassName)||(this._attachments(c,b),c.addClass(this.markerClassName).keydown(this._doKeyDown).keyup(this._doKeyUp).bind("setData.timepicker",function(a,c,d){b.settings[c]=d}).bind("getData.timepicker",function(a,c){return this._get(b,c)}),$.data(a,PROP_NAME,b))},_doKeyDown:function(a){var b=$.timepicker._getInst(a.target),c=!0;if(b._keyEvent=!0,$.timepicker._timepickerShowing)switch(a.keyCode){case 9:$.timepicker._hideTimepicker(),c=!1;break;case 13:return $.timepicker._updateSelectedValue(b),$.timepicker._hideTimepicker(),!1;case 27:$.timepicker._hideTimepicker();break;default:c=!1}else 36==a.keyCode&&a.ctrlKey?$.timepicker._showTimepicker(this):c=!1;c&&(a.preventDefault(),a.stopPropagation())},_doKeyUp:function(a){var b=$.timepicker._getInst(a.target);$.timepicker._setTimeFromField(b),$.timepicker._updateTimepicker(b)},_attachments:function(a,b){var c=this._get(b,"appendText"),d=this._get(b,"isRTL");b.append&&b.append.remove(),c&&(b.append=$('<span class="'+this._appendClass+'">'+c+"</span>"),a[d?"before":"after"](b.append)),a.unbind("focus.timepicker",this._showTimepicker),a.unbind("click.timepicker",this._adjustZIndex),b.trigger&&b.trigger.remove();var e=this._get(b,"showOn");if(("focus"==e||"both"==e)&&(a.bind("focus.timepicker",this._showTimepicker),a.bind("click.timepicker",this._adjustZIndex)),"button"==e||"both"==e){var f=this._get(b,"button");$(f).bind("click.timepicker",function(){return $.timepicker._timepickerShowing&&$.timepicker._lastInput==a[0]?$.timepicker._hideTimepicker():b.input.is(":disabled")||$.timepicker._showTimepicker(a[0]),!1})}},_inlineTimepicker:function(a,b){var c=$(a);c.hasClass(this.markerClassName)||(c.addClass(this.markerClassName).append(b.tpDiv).bind("setData.timepicker",function(a,c,d){b.settings[c]=d}).bind("getData.timepicker",function(a,c){return this._get(b,c)}),$.data(a,PROP_NAME,b),this._setTimeFromField(b),this._updateTimepicker(b),b.tpDiv.show())},_adjustZIndex:function(a){a=a.target||a;var b=$.timepicker._getInst(a);b.tpDiv.css("zIndex",$.timepicker._getZIndex(a)+1)},_showTimepicker:function(a){if(a=a.target||a,"input"!=a.nodeName.toLowerCase()&&(a=$("input",a.parentNode)[0]),!$.timepicker._isDisabledTimepicker(a)&&$.timepicker._lastInput!=a){$.timepicker._hideTimepicker();var b=$.timepicker._getInst(a);$.timepicker._curInst&&$.timepicker._curInst!=b&&$.timepicker._curInst.tpDiv.stop(!0,!0);var c=$.timepicker._get(b,"beforeShow");extendRemove(b.settings,c?c.apply(a,[a,b]):{}),b.lastVal=null,$.timepicker._lastInput=a,$.timepicker._setTimeFromField(b),$.timepicker._inDialog&&(a.value=""),$.timepicker._pos||($.timepicker._pos=$.timepicker._findPos(a),$.timepicker._pos[1]+=a.offsetHeight);var d=!1;$(a).parents().each(function(){return d|="fixed"==$(this).css("position"),!d}),d&&$.browser.opera&&($.timepicker._pos[0]-=document.documentElement.scrollLeft,$.timepicker._pos[1]-=document.documentElement.scrollTop);var e={left:$.timepicker._pos[0],top:$.timepicker._pos[1]};if($.timepicker._pos=null,b.tpDiv.css({position:"absolute",display:"block",top:"-1000px"}),$.timepicker._updateTimepicker(b),b.inline||"object"!=typeof $.ui.position||(b.tpDiv.position({of:b.input,my:$.timepicker._get(b,"myPosition"),at:$.timepicker._get(b,"atPosition"),collision:"flip"}),e=b.tpDiv.offset(),$.timepicker._pos=[e.top,e.left]),b._hoursClicked=!1,b._minutesClicked=!1,e=$.timepicker._checkOffset(b,e,d),b.tpDiv.css({position:$.timepicker._inDialog&&$.blockUI?"static":d?"fixed":"absolute",display:"none",left:e.left+"px",top:e.top+"px"}),!b.inline){var f=$.timepicker._get(b,"showAnim"),g=$.timepicker._get(b,"duration"),h=function(){$.timepicker._timepickerShowing=!0;var a=$.timepicker._getBorders(b.tpDiv);b.tpDiv.find("iframe.ui-timepicker-cover").css({left:-a[0],top:-a[1],width:b.tpDiv.outerWidth(),height:b.tpDiv.outerHeight()})};$.timepicker._adjustZIndex(a),$.effects&&$.effects[f]?b.tpDiv.show(f,$.timepicker._get(b,"showOptions"),g,h):b.tpDiv[f||"show"](f?g:null,h),f&&g||h(),b.input.is(":visible")&&!b.input.is(":disabled")&&b.input.focus(),$.timepicker._curInst=b}}},_getZIndex:function(a){for(var b,c,d=$(a);d.length&&d[0]!==document;){if(b=d.css("position"),("absolute"===b||"relative"===b||"fixed"===b)&&(c=parseInt(d.css("zIndex"),10),!isNaN(c)&&0!==c))return c;d=d.parent()}},_refreshTimepicker:function(a){var b=this._getInst(a);b&&this._updateTimepicker(b)},_updateTimepicker:function(a){a.tpDiv.empty().append(this._generateHTML(a)),this._rebindDialogEvents(a)},_rebindDialogEvents:function(a){var b=$.timepicker._getBorders(a.tpDiv),c=this;a.tpDiv.find("iframe.ui-timepicker-cover").css({left:-b[0],top:-b[1],width:a.tpDiv.outerWidth(),height:a.tpDiv.outerHeight()}).end().find(".ui-timepicker-minute-cell").unbind().bind("click",{fromDoubleClick:!1},$.proxy($.timepicker.selectMinutes,this)).bind("dblclick",{fromDoubleClick:!0},$.proxy($.timepicker.selectMinutes,this)).end().find(".ui-timepicker-hour-cell").unbind().bind("click",{fromDoubleClick:!1},$.proxy($.timepicker.selectHours,this)).bind("dblclick",{fromDoubleClick:!0},$.proxy($.timepicker.selectHours,this)).end().find(".ui-timepicker td a").unbind().bind("mouseout",function(){$(this).removeClass("ui-state-hover"),-1!=this.className.indexOf("ui-timepicker-prev")&&$(this).removeClass("ui-timepicker-prev-hover"),-1!=this.className.indexOf("ui-timepicker-next")&&$(this).removeClass("ui-timepicker-next-hover")}).bind("mouseover",function(){c._isDisabledTimepicker(a.inline?a.tpDiv.parent()[0]:a.input[0])||($(this).parents(".ui-timepicker-calendar").find("a").removeClass("ui-state-hover"),$(this).addClass("ui-state-hover"),-1!=this.className.indexOf("ui-timepicker-prev")&&$(this).addClass("ui-timepicker-prev-hover"),-1!=this.className.indexOf("ui-timepicker-next")&&$(this).addClass("ui-timepicker-next-hover"))}).end().find("."+this._dayOverClass+" a").trigger("mouseover").end().find(".ui-timepicker-now").bind("click",function(a){$.timepicker.selectNow(a)}).end().find(".ui-timepicker-deselect").bind("click",function(a){$.timepicker.deselectTime(a)}).end().find(".ui-timepicker-close").bind("click",function(a){$.timepicker._hideTimepicker()}).end()},_generateHTML:function(a){var b,c,d,e,f=1==this._get(a,"showPeriod"),g=1==this._get(a,"showPeriodLabels"),h=1==this._get(a,"showLeadingZero"),i=1==this._get(a,"showHours"),j=1==this._get(a,"showMinutes"),k=this._get(a,"amPmText"),l=this._get(a,"rows"),m=0,n=0,o=0,p=0,q=0,r=0,s=Array(),t=this._get(a,"hours"),u=null,v=0,w=this._get(a,"hourText"),x=this._get(a,"showCloseButton"),y=this._get(a,"closeButtonText"),z=this._get(a,"showNowButton"),A=this._get(a,"nowButtonText"),B=this._get(a,"showDeselectButton"),C=this._get(a,"deselectButtonText"),D=x||z||B;for(b=t.starts;b<=t.ends;b++)s.push(b);if(u=Math.ceil(s.length/l),g){for(v=0;v<s.length;v++)s[v]<12?o++:p++;v=0,m=Math.floor(o/s.length*l),n=Math.floor(p/s.length*l),l!=m+n&&(o&&(!p||!m||n&&o/m>=p/n)?m++:n++),q=Math.min(m,1),r=m+1,u=Math.ceil(Math.max(o/m,p/n))}if(e='<table class="ui-timepicker-table ui-widget-content ui-corner-all"><tr>',i){for(e+='<td class="ui-timepicker-hours"><div class="ui-timepicker-title ui-widget-header ui-helper-clearfix ui-corner-all">'+w+'</div><table class="ui-timepicker">',c=1;l>=c;c++){for(e+="<tr>",c==q&&g&&(e+='<th rowspan="'+m.toString()+'" class="periods" scope="row">'+k[0]+"</th>"),c==r&&g&&(e+='<th rowspan="'+n.toString()+'" class="periods" scope="row">'+k[1]+"</th>"),d=1;u>=d;d++)g&&r>c&&s[v]>=12?e+=this._generateHTMLHourCell(a,void 0,f,h):(e+=this._generateHTMLHourCell(a,s[v],f,h),v++);e+="</tr>"}e+="</tr></table></td>"}if(j&&(e+='<td class="ui-timepicker-minutes">',e+=this._generateHTMLMinutes(a),e+="</td>"),e+="</tr>",D){var E='<tr><td colspan="3"><div class="ui-timepicker-buttonpane ui-widget-content">';z&&(E+='<button type="button" class="ui-timepicker-now ui-state-default ui-corner-all" data-timepicker-instance-id="#'+a.id.replace(/\\\\/g,"\\")+'" >'+A+"</button>"),B&&(E+='<button type="button" class="ui-timepicker-deselect ui-state-default ui-corner-all" data-timepicker-instance-id="#'+a.id.replace(/\\\\/g,"\\")+'" >'+C+"</button>"),x&&(E+='<button type="button" class="ui-timepicker-close ui-state-default ui-corner-all" data-timepicker-instance-id="#'+a.id.replace(/\\\\/g,"\\")+'" >'+y+"</button>"),e+=E+"</div></td></tr>"}return e+="</table>",e+=$.browser.msie&&parseInt($.browser.version,10)<7&&!a.inline?'<iframe src="javascript:false;" class="ui-timepicker-cover" frameborder="0"></iframe>':""},_updateMinuteDisplay:function(a){var b=this._generateHTMLMinutes(a);a.tpDiv.find("td.ui-timepicker-minutes").html(b),this._rebindDialogEvents(a)},_generateHTMLMinutes:function(a){var b,c,d="",e=this._get(a,"rows"),f=Array(),g=this._get(a,"minutes"),h=null,i=0,j=1==this._get(a,"showMinutesLeadingZero"),k=this._get(a,"onMinuteShow"),l=this._get(a,"minuteText");for(g.starts||(g.starts=0),g.ends||(g.ends=59),b=g.starts;b<=g.ends;b+=g.interval)f.push(b);if(h=Math.round(f.length/e+.49),k&&0==k.apply(a.input?a.input[0]:null,[a.hours,a.minutes]))for(i=0;i<f.length;i+=1)if(b=f[i],k.apply(a.input?a.input[0]:null,[a.hours,b])){a.minutes=b;break}for(d+='<div class="ui-timepicker-title ui-widget-header ui-helper-clearfix ui-corner-all">'+l+'</div><table class="ui-timepicker">',i=0,c=1;e>=c;c++){for(d+="<tr>";c*h>i;){b=f[i];var m="";void 0!==b&&(m=10>b&&j?"0"+b.toString():b.toString()),d+=this._generateHTMLMinuteCell(a,b,m),i++}d+="</tr>"}return d+="</table>"},_generateHTMLHourCell:function(a,b,c,d){var e=b;b>12&&c&&(e=b-12),0==e&&c&&(e=12),10>e&&d&&(e="0"+e);var f="",g=!0,h=this._get(a,"onHourShow");return void 0==b?f='<td><span class="ui-state-default ui-state-disabled">&nbsp;</span></td>':(h&&(g=h.apply(a.input?a.input[0]:null,[b])),f=g?'<td class="ui-timepicker-hour-cell" data-timepicker-instance-id="#'+a.id.replace(/\\\\/g,"\\")+'" data-hour="'+b.toString()+'"><a class="ui-state-default '+(b==a.hours?"ui-state-active":"")+'">'+e.toString()+"</a></td>":'<td><span class="ui-state-default ui-state-disabled '+(b==a.hours?" ui-state-active ":" ")+'">'+e.toString()+"</span></td>")},_generateHTMLMinuteCell:function(a,b,c){var d="",e=!0,f=this._get(a,"onMinuteShow");return f&&(e=f.apply(a.input?a.input[0]:null,[a.hours,b])),d=void 0==b?'<td><span class="ui-state-default ui-state-disabled">&nbsp;</span></td>':e?'<td class="ui-timepicker-minute-cell" data-timepicker-instance-id="#'+a.id.replace(/\\\\/g,"\\")+'" data-minute="'+b.toString()+'" ><a class="ui-state-default '+(b==a.minutes?"ui-state-active":"")+'" >'+c+"</a></td>":'<td><span class="ui-state-default ui-state-disabled" >'+c+"</span></td>"},_destroyTimepicker:function(a){var b=$(a),c=$.data(a,PROP_NAME);if(b.hasClass(this.markerClassName)){var d=a.nodeName.toLowerCase();$.removeData(a,PROP_NAME),"input"==d?(c.append.remove(),c.trigger.remove(),b.removeClass(this.markerClassName).unbind("focus.timepicker",this._showTimepicker).unbind("click.timepicker",this._adjustZIndex)):("div"==d||"span"==d)&&b.removeClass(this.markerClassName).empty()}},_enableTimepicker:function(a){var b=$(a),c=b.attr("id"),d=$.data(a,PROP_NAME);if(b.hasClass(this.markerClassName)){var e=a.nodeName.toLowerCase();if("input"==e){a.disabled=!1;var f=this._get(d,"button");$(f).removeClass("ui-state-disabled").disabled=!1,d.trigger.filter("button").each(function(){this.disabled=!1}).end()}else if("div"==e||"span"==e){var g=b.children("."+this._inlineClass);g.children().removeClass("ui-state-disabled"),g.find("button").each(function(){this.disabled=!1})}this._disabledInputs=$.map(this._disabledInputs,function(a){return a==c?null:a})}},_disableTimepicker:function(a){var b=$(a),c=$.data(a,PROP_NAME);if(b.hasClass(this.markerClassName)){var d=a.nodeName.toLowerCase();if("input"==d){var e=this._get(c,"button");$(e).addClass("ui-state-disabled").disabled=!0,a.disabled=!0,c.trigger.filter("button").each(function(){this.disabled=!0}).end()}else if("div"==d||"span"==d){var f=b.children("."+this._inlineClass);f.children().addClass("ui-state-disabled"),f.find("button").each(function(){this.disabled=!0})}this._disabledInputs=$.map(this._disabledInputs,function(b){return b==a?null:b}),this._disabledInputs[this._disabledInputs.length]=b.attr("id")}},_isDisabledTimepicker:function(a){if(!a)return!1;for(var b=0;b<this._disabledInputs.length;b++)if(this._disabledInputs[b]==a)return!0;return!1},_checkOffset:function(a,b,c){var d=a.tpDiv.outerWidth(),e=a.tpDiv.outerHeight(),f=a.input?a.input.outerWidth():0,g=a.input?a.input.outerHeight():0,h=document.documentElement.clientWidth+$(document).scrollLeft(),i=document.documentElement.clientHeight+$(document).scrollTop();return b.left-=this._get(a,"isRTL")?d-f:0,b.left-=c&&b.left==a.input.offset().left?$(document).scrollLeft():0,b.top-=c&&b.top==a.input.offset().top+g?$(document).scrollTop():0,b.left-=Math.min(b.left,b.left+d>h&&h>d?Math.abs(b.left+d-h):0),b.top-=Math.min(b.top,b.top+e>i&&i>e?Math.abs(e+g):0),b},_findPos:function(a){for(var b=this._getInst(a),c=this._get(b,"isRTL");a&&("hidden"==a.type||1!=a.nodeType);)a=a[c?"previousSibling":"nextSibling"];var d=$(a).offset();return[d.left,d.top]},_getBorders:function(a){var b=function(a){return{thin:1,medium:2,thick:3}[a]||a};return[parseFloat(b(a.css("border-left-width"))),parseFloat(b(a.css("border-top-width")))]},_checkExternalClick:function(a){if($.timepicker._curInst){var b=$(a.target);b[0].id==$.timepicker._mainDivId||0!=b.parents("#"+$.timepicker._mainDivId).length||b.hasClass($.timepicker.markerClassName)||b.hasClass($.timepicker._triggerClass)||!$.timepicker._timepickerShowing||$.timepicker._inDialog&&$.blockUI||$.timepicker._hideTimepicker()}},_hideTimepicker:function(a){var b=this._curInst;if(b&&(!a||b==$.data(a,PROP_NAME))&&this._timepickerShowing){var c=this._get(b,"showAnim"),d=this._get(b,"duration"),e=function(){$.timepicker._tidyDialog(b),this._curInst=null};$.effects&&$.effects[c]?b.tpDiv.hide(c,$.timepicker._get(b,"showOptions"),d,e):b.tpDiv["slideDown"==c?"slideUp":"fadeIn"==c?"fadeOut":"hide"](c?d:null,e),c||e(),this._timepickerShowing=!1,this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),$.blockUI&&($.unblockUI(),$("body").append(this.tpDiv))),this._inDialog=!1;var f=this._get(b,"onClose");f&&f.apply(b.input?b.input[0]:null,[b.input?b.input.val():"",b])}},_tidyDialog:function(a){a.tpDiv.removeClass(this._dialogClass).unbind(".ui-timepicker")},_getInst:function(a){try{return $.data(a,PROP_NAME)}catch(b){throw"Missing instance data for this timepicker"}},_get:function(a,b){return void 0!==a.settings[b]?a.settings[b]:this._defaults[b]},_setTimeFromField:function(a){if(a.input.val()!=a.lastVal){var b=this._get(a,"defaultTime"),c="now"==b?this._getCurrentTimeRounded(a):b;if(0==a.inline&&""!=a.input.val()&&(c=a.input.val()),c instanceof Date)a.hours=c.getHours(),a.minutes=c.getMinutes();else{var d=a.lastVal=c;if(""==c)a.hours=-1,a.minutes=-1;else{var e=this.parseTime(a,d);a.hours=e.hours,a.minutes=e.minutes}}$.timepicker._updateTimepicker(a)}},_optionTimepicker:function(a,b,c){var d=this._getInst(a);if(2==arguments.length&&"string"==typeof b)return"defaults"==b?$.extend({},$.timepicker._defaults):d?"all"==b?$.extend({},d.settings):this._get(d,b):null;var e=b||{};"string"==typeof b&&(e={},e[b]=c),d&&(this._curInst==d&&this._hideTimepicker(),extendRemove(d.settings,e),this._updateTimepicker(d))},_setTimeTimepicker:function(a,b){var c=this._getInst(a);c&&(this._setTime(c,b),this._updateTimepicker(c),this._updateAlternate(c,b))},_setTime:function(a,b,c){var d=a.hours,e=a.minutes;b=this.parseTime(a,b),a.hours=b.hours,a.minutes=b.minutes,d==a.hours&&e==a.minuts||c||a.input.trigger("change"),this._updateTimepicker(a),this._updateSelectedValue(a)},_getCurrentTimeRounded:function(a){var b=new Date,c=b.getMinutes(),d=5*Math.round(c/5);return b.setMinutes(d),b},parseTime:function(a,b){var c=new Object;c.hours=-1,c.minutes=-1;var d=this._get(a,"timeSeparator"),e=this._get(a,"amPmText"),f=this._get(a,"showHours"),g=this._get(a,"showMinutes"),h=this._get(a,"optionalMinutes"),i=1==this._get(a,"showPeriod"),j=b.indexOf(d);if(-1!=j?(c.hours=parseInt(b.substr(0,j),10),c.minutes=parseInt(b.substr(j+1),10)):!f||g&&!h?!f&&g&&(c.minutes=parseInt(b,10)):c.hours=parseInt(b,10),f){var k=b.toUpperCase();c.hours<12&&i&&-1!=k.indexOf(e[1].toUpperCase())&&(c.hours+=12),12==c.hours&&i&&-1!=k.indexOf(e[0].toUpperCase())&&(c.hours=0)}return c},selectNow:function(a){var b=$(a.target).attr("data-timepicker-instance-id"),c=$(b),d=this._getInst(c[0]),e=new Date;d.hours=e.getHours(),d.minutes=e.getMinutes(),this._updateSelectedValue(d),this._updateTimepicker(d),this._hideTimepicker()},deselectTime:function(a){var b=$(a.target).attr("data-timepicker-instance-id"),c=$(b),d=this._getInst(c[0]);d.hours=-1,d.minutes=-1,this._updateSelectedValue(d),this._hideTimepicker()},selectHours:function(a){var b=$(a.currentTarget),c=b.attr("data-timepicker-instance-id"),d=parseInt(b.attr("data-hour")),e=a.data.fromDoubleClick,f=$(c),g=this._getInst(f[0]),h=1==this._get(g,"showMinutes");if($.timepicker._isDisabledTimepicker(f.attr("id")))return!1;b.parents(".ui-timepicker-hours:first").find("a").removeClass("ui-state-active"),b.children("a").addClass("ui-state-active"),g.hours=d;var i=this._get(g,"onMinuteShow");return i&&this._updateMinuteDisplay(g),this._updateSelectedValue(g),g._hoursClicked=!0,(g._minutesClicked||e||0==h)&&$.timepicker._hideTimepicker(),!1},selectMinutes:function(a){var b=$(a.currentTarget),c=b.attr("data-timepicker-instance-id"),d=parseInt(b.attr("data-minute")),e=a.data.fromDoubleClick,f=$(c),g=this._getInst(f[0]),h=1==this._get(g,"showHours");return $.timepicker._isDisabledTimepicker(f.attr("id"))?!1:(b.parents(".ui-timepicker-minutes:first").find("a").removeClass("ui-state-active"),b.children("a").addClass("ui-state-active"),g.minutes=d,this._updateSelectedValue(g),g._minutesClicked=!0,g._hoursClicked||e||0==h?($.timepicker._hideTimepicker(),!1):!1)},_updateSelectedValue:function(a){var b=this._getParsedTime(a);a.input&&(a.input.val(b),a.input.trigger("change"));var c=this._get(a,"onSelect");return c&&c.apply(a.input?a.input[0]:null,[b,a]),this._updateAlternate(a,b),b},_getParsedTime:function(a){if(-1==a.hours&&-1==a.minutes)return"";(a.hours<a.hours.starts||a.hours>a.hours.ends)&&(a.hours=0),(a.minutes<a.minutes.starts||a.minutes>a.minutes.ends)&&(a.minutes=0);var b="",c=1==this._get(a,"showPeriod"),d=1==this._get(a,"showLeadingZero"),e=1==this._get(a,"showHours"),f=1==this._get(a,"showMinutes"),g=1==this._get(a,"optionalMinutes"),h=this._get(a,"amPmText"),i=a.hours?a.hours:0,j=a.minutes?a.minutes:0,k=i?i:0,l="";c&&(0==a.hours&&(k=12),a.hours<12?b=h[0]:(b=h[1],k>12&&(k-=12)));var m=k.toString();d&&10>k&&(m="0"+m);var n=j.toString();return 10>j&&(n="0"+n),e&&(l+=m),!e||!f||g&&0==n||(l+=this._get(a,"timeSeparator")),!f||g&&0==n||(l+=n),e&&b.length>0&&(l+=this._get(a,"periodSeparator")+b),l},_updateAlternate:function(a,b){var c=this._get(a,"altField");c&&$(c).each(function(a,c){$(c).val(b)})},_getTimeTimepicker:function(a){var b=this._getInst(a);return this._getParsedTime(b)},_getHourTimepicker:function(a){var b=this._getInst(a);return void 0==b?-1:b.hours},_getMinuteTimepicker:function(a){var b=this._getInst(a);return void 0==b?-1:b.minutes}}),$.fn.timepicker=function(a){$.timepicker.initialized||($(document).mousedown($.timepicker._checkExternalClick).find("body").append($.timepicker.tpDiv),$.timepicker.initialized=!0);var b=Array.prototype.slice.call(arguments,1);return"string"!=typeof a||"getTime"!=a&&"getHour"!=a&&"getMinute"!=a?"option"==a&&2==arguments.length&&"string"==typeof arguments[1]?$.timepicker["_"+a+"Timepicker"].apply($.timepicker,[this[0]].concat(b)):this.each(function(){"string"==typeof a?$.timepicker["_"+a+"Timepicker"].apply($.timepicker,[this].concat(b)):$.timepicker._attachTimepicker(this,a)}):$.timepicker["_"+a+"Timepicker"].apply($.timepicker,[this[0]].concat(b))},$.timepicker=new Timepicker,$.timepicker.initialized=!1,$.timepicker.uuid=(new Date).getTime(),$.timepicker.version="0.3.1",window["TP_jQuery_"+tpuuid]=$}(jQuery);
1
+ /*! event-organiser 3.6.0-0-g619ade6 2017-11-25 22:52 */
2
  !function($){function Timepicker(){this._curInst=null,this._disabledInputs=[],this._timepickerShowing=!1,this._inDialog=!1,this._dialogClass="ui-timepicker-dialog",this._mainDivId="ui-timepicker-div",this._inlineClass="ui-timepicker-inline",this._currentClass="ui-timepicker-current",this._dayOverClass="ui-timepicker-days-cell-over",this.regional=[],this.regional[""]={hourText:"Hour",minuteText:"Minute",amPmText:["AM","PM"],closeButtonText:"Done",nowButtonText:"Now",deselectButtonText:"Deselect"},this._defaults={showOn:"focus",button:null,showAnim:"fadeIn",showOptions:{},appendText:"",beforeShow:null,onSelect:null,onClose:null,timeSeparator:":",periodSeparator:" ",showPeriod:!1,showPeriodLabels:!0,showLeadingZero:!0,showMinutesLeadingZero:!0,altField:"",defaultTime:"now",myPosition:"left top",atPosition:"left bottom",onHourShow:null,onMinuteShow:null,hours:{starts:0,ends:23},minutes:{starts:0,ends:55,interval:5},rows:4,showHours:!0,showMinutes:!0,optionalMinutes:!1,showCloseButton:!1,showNowButton:!1,showDeselectButton:!1},$.extend(this._defaults,this.regional[""]),this.tpDiv=$('<div id="'+this._mainDivId+'" class="ui-timepicker ui-widget ui-helper-clearfix ui-corner-all " style="display: none"></div>')}function extendRemove(a,b){$.extend(a,b);for(var c in b)(null==b[c]||void 0==b[c])&&(a[c]=b[c]);return a}$.extend($.ui,{timepicker:{version:"0.3.1"}});var PROP_NAME="timepicker",tpuuid=(new Date).getTime();$.extend(Timepicker.prototype,{markerClassName:"hasTimepicker",log:function(){},_widgetTimepicker:function(){return this.tpDiv},setDefaults:function(a){return extendRemove(this._defaults,a||{}),this},_attachTimepicker:function(target,settings){var inlineSettings=null;for(var attrName in this._defaults){var attrValue=target.getAttribute("time:"+attrName);if(attrValue){inlineSettings=inlineSettings||{};try{inlineSettings[attrName]=eval(attrValue)}catch(err){inlineSettings[attrName]=attrValue}}}var nodeName=target.nodeName.toLowerCase(),inline="div"==nodeName||"span"==nodeName;target.id||(this.uuid+=1,target.id="tp"+this.uuid);var inst=this._newInst($(target),inline);inst.settings=$.extend({},settings||{},inlineSettings||{}),"input"==nodeName?(this._connectTimepicker(target,inst),this._setTimeFromField(inst)):inline&&this._inlineTimepicker(target,inst)},_newInst:function(a,b){var c=a[0].id.replace(/([^A-Za-z0-9_-])/g,"\\\\$1");return{id:c,input:a,inline:b,tpDiv:b?$('<div class="'+this._inlineClass+' ui-timepicker ui-widget ui-helper-clearfix"></div>'):this.tpDiv}},_connectTimepicker:function(a,b){var c=$(a);b.append=$([]),b.trigger=$([]),c.hasClass(this.markerClassName)||(this._attachments(c,b),c.addClass(this.markerClassName).keydown(this._doKeyDown).keyup(this._doKeyUp).bind("setData.timepicker",function(a,c,d){b.settings[c]=d}).bind("getData.timepicker",function(a,c){return this._get(b,c)}),$.data(a,PROP_NAME,b))},_doKeyDown:function(a){var b=$.timepicker._getInst(a.target),c=!0;if(b._keyEvent=!0,$.timepicker._timepickerShowing)switch(a.keyCode){case 9:$.timepicker._hideTimepicker(),c=!1;break;case 13:return $.timepicker._updateSelectedValue(b),$.timepicker._hideTimepicker(),!1;case 27:$.timepicker._hideTimepicker();break;default:c=!1}else 36==a.keyCode&&a.ctrlKey?$.timepicker._showTimepicker(this):c=!1;c&&(a.preventDefault(),a.stopPropagation())},_doKeyUp:function(a){var b=$.timepicker._getInst(a.target);$.timepicker._setTimeFromField(b),$.timepicker._updateTimepicker(b)},_attachments:function(a,b){var c=this._get(b,"appendText"),d=this._get(b,"isRTL");b.append&&b.append.remove(),c&&(b.append=$('<span class="'+this._appendClass+'">'+c+"</span>"),a[d?"before":"after"](b.append)),a.unbind("focus.timepicker",this._showTimepicker),a.unbind("click.timepicker",this._adjustZIndex),b.trigger&&b.trigger.remove();var e=this._get(b,"showOn");if(("focus"==e||"both"==e)&&(a.bind("focus.timepicker",this._showTimepicker),a.bind("click.timepicker",this._adjustZIndex)),"button"==e||"both"==e){var f=this._get(b,"button");$(f).bind("click.timepicker",function(){return $.timepicker._timepickerShowing&&$.timepicker._lastInput==a[0]?$.timepicker._hideTimepicker():b.input.is(":disabled")||$.timepicker._showTimepicker(a[0]),!1})}},_inlineTimepicker:function(a,b){var c=$(a);c.hasClass(this.markerClassName)||(c.addClass(this.markerClassName).append(b.tpDiv).bind("setData.timepicker",function(a,c,d){b.settings[c]=d}).bind("getData.timepicker",function(a,c){return this._get(b,c)}),$.data(a,PROP_NAME,b),this._setTimeFromField(b),this._updateTimepicker(b),b.tpDiv.show())},_adjustZIndex:function(a){a=a.target||a;var b=$.timepicker._getInst(a);b.tpDiv.css("zIndex",$.timepicker._getZIndex(a)+1)},_showTimepicker:function(a){if(a=a.target||a,"input"!=a.nodeName.toLowerCase()&&(a=$("input",a.parentNode)[0]),!$.timepicker._isDisabledTimepicker(a)&&$.timepicker._lastInput!=a){$.timepicker._hideTimepicker();var b=$.timepicker._getInst(a);$.timepicker._curInst&&$.timepicker._curInst!=b&&$.timepicker._curInst.tpDiv.stop(!0,!0);var c=$.timepicker._get(b,"beforeShow");extendRemove(b.settings,c?c.apply(a,[a,b]):{}),b.lastVal=null,$.timepicker._lastInput=a,$.timepicker._setTimeFromField(b),$.timepicker._inDialog&&(a.value=""),$.timepicker._pos||($.timepicker._pos=$.timepicker._findPos(a),$.timepicker._pos[1]+=a.offsetHeight);var d=!1;$(a).parents().each(function(){return d|="fixed"==$(this).css("position"),!d}),d&&$.browser.opera&&($.timepicker._pos[0]-=document.documentElement.scrollLeft,$.timepicker._pos[1]-=document.documentElement.scrollTop);var e={left:$.timepicker._pos[0],top:$.timepicker._pos[1]};if($.timepicker._pos=null,b.tpDiv.css({position:"absolute",display:"block",top:"-1000px"}),$.timepicker._updateTimepicker(b),b.inline||"object"!=typeof $.ui.position||(b.tpDiv.position({of:b.input,my:$.timepicker._get(b,"myPosition"),at:$.timepicker._get(b,"atPosition"),collision:"flip"}),e=b.tpDiv.offset(),$.timepicker._pos=[e.top,e.left]),b._hoursClicked=!1,b._minutesClicked=!1,e=$.timepicker._checkOffset(b,e,d),b.tpDiv.css({position:$.timepicker._inDialog&&$.blockUI?"static":d?"fixed":"absolute",display:"none",left:e.left+"px",top:e.top+"px"}),!b.inline){var f=$.timepicker._get(b,"showAnim"),g=$.timepicker._get(b,"duration"),h=function(){$.timepicker._timepickerShowing=!0;var a=$.timepicker._getBorders(b.tpDiv);b.tpDiv.find("iframe.ui-timepicker-cover").css({left:-a[0],top:-a[1],width:b.tpDiv.outerWidth(),height:b.tpDiv.outerHeight()})};$.timepicker._adjustZIndex(a),$.effects&&$.effects[f]?b.tpDiv.show(f,$.timepicker._get(b,"showOptions"),g,h):b.tpDiv[f||"show"](f?g:null,h),f&&g||h(),b.input.is(":visible")&&!b.input.is(":disabled")&&b.input.focus(),$.timepicker._curInst=b}}},_getZIndex:function(a){for(var b,c,d=$(a);d.length&&d[0]!==document;){if(b=d.css("position"),("absolute"===b||"relative"===b||"fixed"===b)&&(c=parseInt(d.css("zIndex"),10),!isNaN(c)&&0!==c))return c;d=d.parent()}},_refreshTimepicker:function(a){var b=this._getInst(a);b&&this._updateTimepicker(b)},_updateTimepicker:function(a){a.tpDiv.empty().append(this._generateHTML(a)),this._rebindDialogEvents(a)},_rebindDialogEvents:function(a){var b=$.timepicker._getBorders(a.tpDiv),c=this;a.tpDiv.find("iframe.ui-timepicker-cover").css({left:-b[0],top:-b[1],width:a.tpDiv.outerWidth(),height:a.tpDiv.outerHeight()}).end().find(".ui-timepicker-minute-cell").unbind().bind("click",{fromDoubleClick:!1},$.proxy($.timepicker.selectMinutes,this)).bind("dblclick",{fromDoubleClick:!0},$.proxy($.timepicker.selectMinutes,this)).end().find(".ui-timepicker-hour-cell").unbind().bind("click",{fromDoubleClick:!1},$.proxy($.timepicker.selectHours,this)).bind("dblclick",{fromDoubleClick:!0},$.proxy($.timepicker.selectHours,this)).end().find(".ui-timepicker td a").unbind().bind("mouseout",function(){$(this).removeClass("ui-state-hover"),-1!=this.className.indexOf("ui-timepicker-prev")&&$(this).removeClass("ui-timepicker-prev-hover"),-1!=this.className.indexOf("ui-timepicker-next")&&$(this).removeClass("ui-timepicker-next-hover")}).bind("mouseover",function(){c._isDisabledTimepicker(a.inline?a.tpDiv.parent()[0]:a.input[0])||($(this).parents(".ui-timepicker-calendar").find("a").removeClass("ui-state-hover"),$(this).addClass("ui-state-hover"),-1!=this.className.indexOf("ui-timepicker-prev")&&$(this).addClass("ui-timepicker-prev-hover"),-1!=this.className.indexOf("ui-timepicker-next")&&$(this).addClass("ui-timepicker-next-hover"))}).end().find("."+this._dayOverClass+" a").trigger("mouseover").end().find(".ui-timepicker-now").bind("click",function(a){$.timepicker.selectNow(a)}).end().find(".ui-timepicker-deselect").bind("click",function(a){$.timepicker.deselectTime(a)}).end().find(".ui-timepicker-close").bind("click",function(a){$.timepicker._hideTimepicker()}).end()},_generateHTML:function(a){var b,c,d,e,f=1==this._get(a,"showPeriod"),g=1==this._get(a,"showPeriodLabels"),h=1==this._get(a,"showLeadingZero"),i=1==this._get(a,"showHours"),j=1==this._get(a,"showMinutes"),k=this._get(a,"amPmText"),l=this._get(a,"rows"),m=0,n=0,o=0,p=0,q=0,r=0,s=Array(),t=this._get(a,"hours"),u=null,v=0,w=this._get(a,"hourText"),x=this._get(a,"showCloseButton"),y=this._get(a,"closeButtonText"),z=this._get(a,"showNowButton"),A=this._get(a,"nowButtonText"),B=this._get(a,"showDeselectButton"),C=this._get(a,"deselectButtonText"),D=x||z||B;for(b=t.starts;b<=t.ends;b++)s.push(b);if(u=Math.ceil(s.length/l),g){for(v=0;v<s.length;v++)s[v]<12?o++:p++;v=0,m=Math.floor(o/s.length*l),n=Math.floor(p/s.length*l),l!=m+n&&(o&&(!p||!m||n&&o/m>=p/n)?m++:n++),q=Math.min(m,1),r=m+1,u=Math.ceil(Math.max(o/m,p/n))}if(e='<table class="ui-timepicker-table ui-widget-content ui-corner-all"><tr>',i){for(e+='<td class="ui-timepicker-hours"><div class="ui-timepicker-title ui-widget-header ui-helper-clearfix ui-corner-all">'+w+'</div><table class="ui-timepicker">',c=1;l>=c;c++){for(e+="<tr>",c==q&&g&&(e+='<th rowspan="'+m.toString()+'" class="periods" scope="row">'+k[0]+"</th>"),c==r&&g&&(e+='<th rowspan="'+n.toString()+'" class="periods" scope="row">'+k[1]+"</th>"),d=1;u>=d;d++)g&&r>c&&s[v]>=12?e+=this._generateHTMLHourCell(a,void 0,f,h):(e+=this._generateHTMLHourCell(a,s[v],f,h),v++);e+="</tr>"}e+="</tr></table></td>"}if(j&&(e+='<td class="ui-timepicker-minutes">',e+=this._generateHTMLMinutes(a),e+="</td>"),e+="</tr>",D){var E='<tr><td colspan="3"><div class="ui-timepicker-buttonpane ui-widget-content">';z&&(E+='<button type="button" class="ui-timepicker-now ui-state-default ui-corner-all" data-timepicker-instance-id="#'+a.id.replace(/\\\\/g,"\\")+'" >'+A+"</button>"),B&&(E+='<button type="button" class="ui-timepicker-deselect ui-state-default ui-corner-all" data-timepicker-instance-id="#'+a.id.replace(/\\\\/g,"\\")+'" >'+C+"</button>"),x&&(E+='<button type="button" class="ui-timepicker-close ui-state-default ui-corner-all" data-timepicker-instance-id="#'+a.id.replace(/\\\\/g,"\\")+'" >'+y+"</button>"),e+=E+"</div></td></tr>"}return e+="</table>",e+=$.browser.msie&&parseInt($.browser.version,10)<7&&!a.inline?'<iframe src="javascript:false;" class="ui-timepicker-cover" frameborder="0"></iframe>':""},_updateMinuteDisplay:function(a){var b=this._generateHTMLMinutes(a);a.tpDiv.find("td.ui-timepicker-minutes").html(b),this._rebindDialogEvents(a)},_generateHTMLMinutes:function(a){var b,c,d="",e=this._get(a,"rows"),f=Array(),g=this._get(a,"minutes"),h=null,i=0,j=1==this._get(a,"showMinutesLeadingZero"),k=this._get(a,"onMinuteShow"),l=this._get(a,"minuteText");for(g.starts||(g.starts=0),g.ends||(g.ends=59),b=g.starts;b<=g.ends;b+=g.interval)f.push(b);if(h=Math.round(f.length/e+.49),k&&0==k.apply(a.input?a.input[0]:null,[a.hours,a.minutes]))for(i=0;i<f.length;i+=1)if(b=f[i],k.apply(a.input?a.input[0]:null,[a.hours,b])){a.minutes=b;break}for(d+='<div class="ui-timepicker-title ui-widget-header ui-helper-clearfix ui-corner-all">'+l+'</div><table class="ui-timepicker">',i=0,c=1;e>=c;c++){for(d+="<tr>";c*h>i;){b=f[i];var m="";void 0!==b&&(m=10>b&&j?"0"+b.toString():b.toString()),d+=this._generateHTMLMinuteCell(a,b,m),i++}d+="</tr>"}return d+="</table>"},_generateHTMLHourCell:function(a,b,c,d){var e=b;b>12&&c&&(e=b-12),0==e&&c&&(e=12),10>e&&d&&(e="0"+e);var f="",g=!0,h=this._get(a,"onHourShow");return void 0==b?f='<td><span class="ui-state-default ui-state-disabled">&nbsp;</span></td>':(h&&(g=h.apply(a.input?a.input[0]:null,[b])),f=g?'<td class="ui-timepicker-hour-cell" data-timepicker-instance-id="#'+a.id.replace(/\\\\/g,"\\")+'" data-hour="'+b.toString()+'"><a class="ui-state-default '+(b==a.hours?"ui-state-active":"")+'">'+e.toString()+"</a></td>":'<td><span class="ui-state-default ui-state-disabled '+(b==a.hours?" ui-state-active ":" ")+'">'+e.toString()+"</span></td>")},_generateHTMLMinuteCell:function(a,b,c){var d="",e=!0,f=this._get(a,"onMinuteShow");return f&&(e=f.apply(a.input?a.input[0]:null,[a.hours,b])),d=void 0==b?'<td><span class="ui-state-default ui-state-disabled">&nbsp;</span></td>':e?'<td class="ui-timepicker-minute-cell" data-timepicker-instance-id="#'+a.id.replace(/\\\\/g,"\\")+'" data-minute="'+b.toString()+'" ><a class="ui-state-default '+(b==a.minutes?"ui-state-active":"")+'" >'+c+"</a></td>":'<td><span class="ui-state-default ui-state-disabled" >'+c+"</span></td>"},_destroyTimepicker:function(a){var b=$(a),c=$.data(a,PROP_NAME);if(b.hasClass(this.markerClassName)){var d=a.nodeName.toLowerCase();$.removeData(a,PROP_NAME),"input"==d?(c.append.remove(),c.trigger.remove(),b.removeClass(this.markerClassName).unbind("focus.timepicker",this._showTimepicker).unbind("click.timepicker",this._adjustZIndex)):("div"==d||"span"==d)&&b.removeClass(this.markerClassName).empty()}},_enableTimepicker:function(a){var b=$(a),c=b.attr("id"),d=$.data(a,PROP_NAME);if(b.hasClass(this.markerClassName)){var e=a.nodeName.toLowerCase();if("input"==e){a.disabled=!1;var f=this._get(d,"button");$(f).removeClass("ui-state-disabled").disabled=!1,d.trigger.filter("button").each(function(){this.disabled=!1}).end()}else if("div"==e||"span"==e){var g=b.children("."+this._inlineClass);g.children().removeClass("ui-state-disabled"),g.find("button").each(function(){this.disabled=!1})}this._disabledInputs=$.map(this._disabledInputs,function(a){return a==c?null:a})}},_disableTimepicker:function(a){var b=$(a),c=$.data(a,PROP_NAME);if(b.hasClass(this.markerClassName)){var d=a.nodeName.toLowerCase();if("input"==d){var e=this._get(c,"button");$(e).addClass("ui-state-disabled").disabled=!0,a.disabled=!0,c.trigger.filter("button").each(function(){this.disabled=!0}).end()}else if("div"==d||"span"==d){var f=b.children("."+this._inlineClass);f.children().addClass("ui-state-disabled"),f.find("button").each(function(){this.disabled=!0})}this._disabledInputs=$.map(this._disabledInputs,function(b){return b==a?null:b}),this._disabledInputs[this._disabledInputs.length]=b.attr("id")}},_isDisabledTimepicker:function(a){if(!a)return!1;for(var b=0;b<this._disabledInputs.length;b++)if(this._disabledInputs[b]==a)return!0;return!1},_checkOffset:function(a,b,c){var d=a.tpDiv.outerWidth(),e=a.tpDiv.outerHeight(),f=a.input?a.input.outerWidth():0,g=a.input?a.input.outerHeight():0,h=document.documentElement.clientWidth+$(document).scrollLeft(),i=document.documentElement.clientHeight+$(document).scrollTop();return b.left-=this._get(a,"isRTL")?d-f:0,b.left-=c&&b.left==a.input.offset().left?$(document).scrollLeft():0,b.top-=c&&b.top==a.input.offset().top+g?$(document).scrollTop():0,b.left-=Math.min(b.left,b.left+d>h&&h>d?Math.abs(b.left+d-h):0),b.top-=Math.min(b.top,b.top+e>i&&i>e?Math.abs(e+g):0),b},_findPos:function(a){for(var b=this._getInst(a),c=this._get(b,"isRTL");a&&("hidden"==a.type||1!=a.nodeType);)a=a[c?"previousSibling":"nextSibling"];var d=$(a).offset();return[d.left,d.top]},_getBorders:function(a){var b=function(a){return{thin:1,medium:2,thick:3}[a]||a};return[parseFloat(b(a.css("border-left-width"))),parseFloat(b(a.css("border-top-width")))]},_checkExternalClick:function(a){if($.timepicker._curInst){var b=$(a.target);b[0].id==$.timepicker._mainDivId||0!=b.parents("#"+$.timepicker._mainDivId).length||b.hasClass($.timepicker.markerClassName)||b.hasClass($.timepicker._triggerClass)||!$.timepicker._timepickerShowing||$.timepicker._inDialog&&$.blockUI||$.timepicker._hideTimepicker()}},_hideTimepicker:function(a){var b=this._curInst;if(b&&(!a||b==$.data(a,PROP_NAME))&&this._timepickerShowing){var c=this._get(b,"showAnim"),d=this._get(b,"duration"),e=function(){$.timepicker._tidyDialog(b),this._curInst=null};$.effects&&$.effects[c]?b.tpDiv.hide(c,$.timepicker._get(b,"showOptions"),d,e):b.tpDiv["slideDown"==c?"slideUp":"fadeIn"==c?"fadeOut":"hide"](c?d:null,e),c||e(),this._timepickerShowing=!1,this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),$.blockUI&&($.unblockUI(),$("body").append(this.tpDiv))),this._inDialog=!1;var f=this._get(b,"onClose");f&&f.apply(b.input?b.input[0]:null,[b.input?b.input.val():"",b])}},_tidyDialog:function(a){a.tpDiv.removeClass(this._dialogClass).unbind(".ui-timepicker")},_getInst:function(a){try{return $.data(a,PROP_NAME)}catch(b){throw"Missing instance data for this timepicker"}},_get:function(a,b){return void 0!==a.settings[b]?a.settings[b]:this._defaults[b]},_setTimeFromField:function(a){if(a.input.val()!=a.lastVal){var b=this._get(a,"defaultTime"),c="now"==b?this._getCurrentTimeRounded(a):b;if(0==a.inline&&""!=a.input.val()&&(c=a.input.val()),c instanceof Date)a.hours=c.getHours(),a.minutes=c.getMinutes();else{var d=a.lastVal=c;if(""==c)a.hours=-1,a.minutes=-1;else{var e=this.parseTime(a,d);a.hours=e.hours,a.minutes=e.minutes}}$.timepicker._updateTimepicker(a)}},_optionTimepicker:function(a,b,c){var d=this._getInst(a);if(2==arguments.length&&"string"==typeof b)return"defaults"==b?$.extend({},$.timepicker._defaults):d?"all"==b?$.extend({},d.settings):this._get(d,b):null;var e=b||{};"string"==typeof b&&(e={},e[b]=c),d&&(this._curInst==d&&this._hideTimepicker(),extendRemove(d.settings,e),this._updateTimepicker(d))},_setTimeTimepicker:function(a,b){var c=this._getInst(a);c&&(this._setTime(c,b),this._updateTimepicker(c),this._updateAlternate(c,b))},_setTime:function(a,b,c){var d=a.hours,e=a.minutes;b=this.parseTime(a,b),a.hours=b.hours,a.minutes=b.minutes,d==a.hours&&e==a.minuts||c||a.input.trigger("change"),this._updateTimepicker(a),this._updateSelectedValue(a)},_getCurrentTimeRounded:function(a){var b=new Date,c=b.getMinutes(),d=5*Math.round(c/5);return b.setMinutes(d),b},parseTime:function(a,b){var c=new Object;c.hours=-1,c.minutes=-1;var d=this._get(a,"timeSeparator"),e=this._get(a,"amPmText"),f=this._get(a,"showHours"),g=this._get(a,"showMinutes"),h=this._get(a,"optionalMinutes"),i=1==this._get(a,"showPeriod"),j=b.indexOf(d);if(-1!=j?(c.hours=parseInt(b.substr(0,j),10),c.minutes=parseInt(b.substr(j+1),10)):!f||g&&!h?!f&&g&&(c.minutes=parseInt(b,10)):c.hours=parseInt(b,10),f){var k=b.toUpperCase();c.hours<12&&i&&-1!=k.indexOf(e[1].toUpperCase())&&(c.hours+=12),12==c.hours&&i&&-1!=k.indexOf(e[0].toUpperCase())&&(c.hours=0)}return c},selectNow:function(a){var b=$(a.target).attr("data-timepicker-instance-id"),c=$(b),d=this._getInst(c[0]),e=new Date;d.hours=e.getHours(),d.minutes=e.getMinutes(),this._updateSelectedValue(d),this._updateTimepicker(d),this._hideTimepicker()},deselectTime:function(a){var b=$(a.target).attr("data-timepicker-instance-id"),c=$(b),d=this._getInst(c[0]);d.hours=-1,d.minutes=-1,this._updateSelectedValue(d),this._hideTimepicker()},selectHours:function(a){var b=$(a.currentTarget),c=b.attr("data-timepicker-instance-id"),d=parseInt(b.attr("data-hour")),e=a.data.fromDoubleClick,f=$(c),g=this._getInst(f[0]),h=1==this._get(g,"showMinutes");if($.timepicker._isDisabledTimepicker(f.attr("id")))return!1;b.parents(".ui-timepicker-hours:first").find("a").removeClass("ui-state-active"),b.children("a").addClass("ui-state-active"),g.hours=d;var i=this._get(g,"onMinuteShow");return i&&this._updateMinuteDisplay(g),this._updateSelectedValue(g),g._hoursClicked=!0,(g._minutesClicked||e||0==h)&&$.timepicker._hideTimepicker(),!1},selectMinutes:function(a){var b=$(a.currentTarget),c=b.attr("data-timepicker-instance-id"),d=parseInt(b.attr("data-minute")),e=a.data.fromDoubleClick,f=$(c),g=this._getInst(f[0]),h=1==this._get(g,"showHours");return $.timepicker._isDisabledTimepicker(f.attr("id"))?!1:(b.parents(".ui-timepicker-minutes:first").find("a").removeClass("ui-state-active"),b.children("a").addClass("ui-state-active"),g.minutes=d,this._updateSelectedValue(g),g._minutesClicked=!0,g._hoursClicked||e||0==h?($.timepicker._hideTimepicker(),!1):!1)},_updateSelectedValue:function(a){var b=this._getParsedTime(a);a.input&&(a.input.val(b),a.input.trigger("change"));var c=this._get(a,"onSelect");return c&&c.apply(a.input?a.input[0]:null,[b,a]),this._updateAlternate(a,b),b},_getParsedTime:function(a){if(-1==a.hours&&-1==a.minutes)return"";(a.hours<a.hours.starts||a.hours>a.hours.ends)&&(a.hours=0),(a.minutes<a.minutes.starts||a.minutes>a.minutes.ends)&&(a.minutes=0);var b="",c=1==this._get(a,"showPeriod"),d=1==this._get(a,"showLeadingZero"),e=1==this._get(a,"showHours"),f=1==this._get(a,"showMinutes"),g=1==this._get(a,"optionalMinutes"),h=this._get(a,"amPmText"),i=a.hours?a.hours:0,j=a.minutes?a.minutes:0,k=i?i:0,l="";c&&(0==a.hours&&(k=12),a.hours<12?b=h[0]:(b=h[1],k>12&&(k-=12)));var m=k.toString();d&&10>k&&(m="0"+m);var n=j.toString();return 10>j&&(n="0"+n),e&&(l+=m),!e||!f||g&&0==n||(l+=this._get(a,"timeSeparator")),!f||g&&0==n||(l+=n),e&&b.length>0&&(l+=this._get(a,"periodSeparator")+b),l},_updateAlternate:function(a,b){var c=this._get(a,"altField");c&&$(c).each(function(a,c){$(c).val(b)})},_getTimeTimepicker:function(a){var b=this._getInst(a);return this._getParsedTime(b)},_getHourTimepicker:function(a){var b=this._getInst(a);return void 0==b?-1:b.hours},_getMinuteTimepicker:function(a){var b=this._getInst(a);return void 0==b?-1:b.minutes}}),$.fn.timepicker=function(a){$.timepicker.initialized||($(document).mousedown($.timepicker._checkExternalClick).find("body").append($.timepicker.tpDiv),$.timepicker.initialized=!0);var b=Array.prototype.slice.call(arguments,1);return"string"!=typeof a||"getTime"!=a&&"getHour"!=a&&"getMinute"!=a?"option"==a&&2==arguments.length&&"string"==typeof arguments[1]?$.timepicker["_"+a+"Timepicker"].apply($.timepicker,[this[0]].concat(b)):this.each(function(){"string"==typeof a?$.timepicker["_"+a+"Timepicker"].apply($.timepicker,[this].concat(b)):$.timepicker._attachTimepicker(this,a)}):$.timepicker["_"+a+"Timepicker"].apply($.timepicker,[this[0]].concat(b))},$.timepicker=new Timepicker,$.timepicker.initialized=!1,$.timepicker.uuid=(new Date).getTime(),$.timepicker.version="0.3.1",window["TP_jQuery_"+tpuuid]=$}(jQuery);
js/venue-admin.min.js CHANGED
@@ -1,2 +1,2 @@
1
- /*! event-organiser 3.5.1-0-g786a5d5 2017-11-14 21:45 */
2
  var eo_venue=eo_venue||{marker:!1};jQuery(document).ready(function(a){postboxes.add_postbox_toggles(pagenow);var b=a("#eo_venue_Lat").val(),c=a("#eo_venue_Lng").val(),d=15;if(0===b&&0===c){var e=[];a(".eo_addressInput").each(function(){e.push(a(this).val())}),e.join("")||(d=1)}eovenue.init_map("venuemap",{lat:b,lng:c,zoom:d,draggable:!0,onDrag:function(b){this.dragging=!0;var c=b.latLng.lat().toFixed(6)+", "+b.latLng.lng().toFixed(6);a("#eo-venue-latllng-text").text(c)},onDragend:function(a){this.dragging=!1,this.setPosition(this.position)},onPositionchanged:function(){if(!this.dragging){var b=this.getPosition(),c=b.lat().toFixed(6)+", "+b.lng().toFixed(6);a("#eo_venue_Lat").val(b.lat().toFixed(6)),a("#eo_venue_Lng").val(b.lng().toFixed(6)),a("#eo-venue-latllng-text").text(c),this.getMap().setCenter(b),this.getMap().setZoom(15)}}}),a(".eo_addressInput").change(function(){var b=[];a(".eo_addressInput").each(function(){b.push(a(this).val())}),eovenue.geocode(b.join(", "),function(a){a&&eovenue.get_map("venuemap").marker[0].setPosition(a)})}),a("#eo-venue-latllng-text").blur(function(){var b=a(this).text().trim().replace(/ /g,""),c=b.match(/^(-?[0-9]{1,3}\.[0-9]+),(-?[0-9]{1,3}\.[0-9]+)$/),d=a(this).data("eo-lat"),e=a(this).data("eo-lng");if(c){var f=c[1],g=c[2];if(f!=d||g!=e){a(this).data("eo-lat",f),a(this).data("eo-lng",g);var h=new google.maps.LatLng(f,g);eovenue.get_map("venuemap").marker[0].setPosition(h)}}else a(this).text(d+", "+e)}),a("#eo-venue-latllng-text").keydown(function(b){13===b.which&&a(this).blur()})});
1
+ /*! event-organiser 3.6.0-0-g619ade6 2017-11-25 22:52 */
2
  var eo_venue=eo_venue||{marker:!1};jQuery(document).ready(function(a){postboxes.add_postbox_toggles(pagenow);var b=a("#eo_venue_Lat").val(),c=a("#eo_venue_Lng").val(),d=15;if(0===b&&0===c){var e=[];a(".eo_addressInput").each(function(){e.push(a(this).val())}),e.join("")||(d=1)}eovenue.init_map("venuemap",{lat:b,lng:c,zoom:d,draggable:!0,onDrag:function(b){this.dragging=!0;var c=b.latLng.lat().toFixed(6)+", "+b.latLng.lng().toFixed(6);a("#eo-venue-latllng-text").text(c)},onDragend:function(a){this.dragging=!1,this.setPosition(this.position)},onPositionchanged:function(){if(!this.dragging){var b=this.getPosition(),c=b.lat().toFixed(6)+", "+b.lng().toFixed(6);a("#eo_venue_Lat").val(b.lat().toFixed(6)),a("#eo_venue_Lng").val(b.lng().toFixed(6)),a("#eo-venue-latllng-text").text(c),this.getMap().setCenter(b),this.getMap().setZoom(15)}}}),a(".eo_addressInput").change(function(){var b=[];a(".eo_addressInput").each(function(){b.push(a(this).val())}),eovenue.geocode(b.join(", "),function(a){a&&eovenue.get_map("venuemap").marker[0].setPosition(a)})}),a("#eo-venue-latllng-text").blur(function(){var b=a(this).text().trim().replace(/ /g,""),c=b.match(/^(-?[0-9]{1,3}\.[0-9]+),(-?[0-9]{1,3}\.[0-9]+)$/),d=a(this).data("eo-lat"),e=a(this).data("eo-lng");if(c){var f=c[1],g=c[2];if(f!=d||g!=e){a(this).data("eo-lat",f),a(this).data("eo-lng",g);var h=new google.maps.LatLng(f,g);eovenue.get_map("venuemap").marker[0].setPosition(h)}}else a(this).text(d+", "+e)}),a("#eo-venue-latllng-text").keydown(function(b){13===b.which&&a(this).blur()})});
js/venue-util.min.js CHANGED
@@ -1,2 +1,2 @@
1
- /*! event-organiser 3.5.1-0-g786a5d5 2017-11-14 21:45 */
2
  !function(a){eovenue={maps:{},init_map:function(a,b){if("undefined"!=typeof google){var c=b.hasOwnProperty("fieldID")?b.fieldID:a,d=b.hasOwnProperty("draggable")?b.draggable:!1,e=b.hasOwnProperty("markerIcon")?b.markerIcon:null,f=b.hasOwnProperty("lat")?b.lat:0,g=b.hasOwnProperty("lng")?b.lng:0,h=new google.maps.LatLng(f,g),i={zoom:b.hasOwnProperty("zoom")?b.zoom:15,center:h,mapTypeId:google.maps.MapTypeId.ROADMAP},j=new google.maps.Map(document.getElementById(c),i),k=new google.maps.Marker({position:h,map:j,draggable:d,icon:e});this.maps[a]={map:j,marker:[k]},b.hasOwnProperty("onDrag")&&b.onDrag&&google.maps.event.addListener(k,"drag",b.onDrag),b.hasOwnProperty("onDragend")&&b.onDragend&&google.maps.event.addListener(k,"dragend",b.onDragend),b.hasOwnProperty("onPositionchanged")&&b.onPositionchanged&&google.maps.event.addListener(k,"position_changed",b.onPositionchanged)}},geocode:function(a,b){if("undefined"!=typeof google){var c=new google.maps.Geocoder;c.geocode({address:a},function(a,c){return c!=google.maps.GeocoderStatus.OK?b.call(this,!1):void b.call(this,a[0].geometry.location)})}},get_map:function(a){return this.maps[a]}}}(jQuery);
1
+ /*! event-organiser 3.6.0-0-g619ade6 2017-11-25 22:52 */
2
  !function(a){eovenue={maps:{},init_map:function(a,b){if("undefined"!=typeof google){var c=b.hasOwnProperty("fieldID")?b.fieldID:a,d=b.hasOwnProperty("draggable")?b.draggable:!1,e=b.hasOwnProperty("markerIcon")?b.markerIcon:null,f=b.hasOwnProperty("lat")?b.lat:0,g=b.hasOwnProperty("lng")?b.lng:0,h=new google.maps.LatLng(f,g),i={zoom:b.hasOwnProperty("zoom")?b.zoom:15,center:h,mapTypeId:google.maps.MapTypeId.ROADMAP},j=new google.maps.Map(document.getElementById(c),i),k=new google.maps.Marker({position:h,map:j,draggable:d,icon:e});this.maps[a]={map:j,marker:[k]},b.hasOwnProperty("onDrag")&&b.onDrag&&google.maps.event.addListener(k,"drag",b.onDrag),b.hasOwnProperty("onDragend")&&b.onDragend&&google.maps.event.addListener(k,"dragend",b.onDragend),b.hasOwnProperty("onPositionchanged")&&b.onPositionchanged&&google.maps.event.addListener(k,"position_changed",b.onPositionchanged)}},geocode:function(a,b){if("undefined"!=typeof google){var c=new google.maps.Geocoder;c.geocode({address:a},function(a,c){return c!=google.maps.GeocoderStatus.OK?b.call(this,!1):void b.call(this,a[0].geometry.location)})}},get_map:function(a){return this.maps[a]}}}(jQuery);
languages/eventorganiser-af.mo CHANGED
Binary file
languages/eventorganiser-af.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2017-11-14 21:46+0000\n"
6
  "PO-Revision-Date: 2017-04-16T23:10:48+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
@@ -275,7 +275,7 @@ msgstr "Gebeurtenis Kategorieë"
275
 
276
  #: classes/class-eo-widget-categories.php:25
277
  #: includes/event-organiser-cpt.php:94 includes/event-organiser-cpt.php:105
278
- #: includes/event-organiser-event-functions.php:1553
279
  #: templates/event-meta-event-single.php:62
280
  #, fuzzy
281
  msgid "Categories"
@@ -408,7 +408,7 @@ msgid "24 hour time"
408
  msgstr "24 uur tyd"
409
 
410
  #: event-organiser-calendar.php:256
411
- #: includes/event-organiser-event-functions.php:1490
412
  msgid "Loading&#8230;"
413
  msgstr ""
414
 
@@ -713,7 +713,7 @@ msgid ""
713
  "maps on your site, %1$splease enter your key%2$s."
714
  msgstr ""
715
 
716
- #: event-organiser-edit.php:492
717
  #, fuzzy
718
  msgid "Event dates were not saved."
719
  msgstr "Datums van gebeure was nie gestoor nie"
@@ -1701,7 +1701,7 @@ msgid "Choose from the most used tags"
1701
  msgstr ""
1702
 
1703
  #: includes/event-organiser-cpt.php:162
1704
- #: includes/event-organiser-event-functions.php:1561
1705
  #: templates/event-meta-event-single.php:66
1706
  msgid "Tags"
1707
  msgstr ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2017-11-25 22:52+0000\n"
6
  "PO-Revision-Date: 2017-04-16T23:10:48+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
275
 
276
  #: classes/class-eo-widget-categories.php:25
277
  #: includes/event-organiser-cpt.php:94 includes/event-organiser-cpt.php:105
278
+ #: includes/event-organiser-event-functions.php:1563
279
  #: templates/event-meta-event-single.php:62
280
  #, fuzzy
281
  msgid "Categories"
408
  msgstr "24 uur tyd"
409
 
410
  #: event-organiser-calendar.php:256
411
+ #: includes/event-organiser-event-functions.php:1500
412
  msgid "Loading&#8230;"
413
  msgstr ""
414
 
713
  "maps on your site, %1$splease enter your key%2$s."
714
  msgstr ""
715
 
716
+ #: event-organiser-edit.php:495
717
  #, fuzzy
718
  msgid "Event dates were not saved."
719
  msgstr "Datums van gebeure was nie gestoor nie"
1701
  msgstr ""
1702
 
1703
  #: includes/event-organiser-cpt.php:162
1704
+ #: includes/event-organiser-event-functions.php:1571
1705
  #: templates/event-meta-event-single.php:66
1706
  msgid "Tags"
1707
  msgstr ""
languages/eventorganiser-ar.mo CHANGED
Binary file
languages/eventorganiser-ar.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2017-11-14 21:46+0000\n"
6
  "PO-Revision-Date: 2016-11-27T01:17:42+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
@@ -250,7 +250,7 @@ msgstr "تصنيفات الأحداث"
250
 
251
  #: classes/class-eo-widget-categories.php:25
252
  #: includes/event-organiser-cpt.php:94 includes/event-organiser-cpt.php:105
253
- #: includes/event-organiser-event-functions.php:1553
254
  #: templates/event-meta-event-single.php:62
255
  msgid "Categories"
256
  msgstr "تصنيفات"
@@ -372,7 +372,7 @@ msgid "24 hour time"
372
  msgstr "24 ساعة"
373
 
374
  #: event-organiser-calendar.php:256
375
- #: includes/event-organiser-event-functions.php:1490
376
  msgid "Loading&#8230;"
377
  msgstr "جاري التحميل"
378
 
@@ -658,7 +658,7 @@ msgid ""
658
  "maps on your site, %1$splease enter your key%2$s."
659
  msgstr ""
660
 
661
- #: event-organiser-edit.php:492
662
  msgid "Event dates were not saved."
663
  msgstr "تاريخ الحدث لم يتم حفظها"
664
 
@@ -1586,7 +1586,7 @@ msgid "Choose from the most used tags"
1586
  msgstr ""
1587
 
1588
  #: includes/event-organiser-cpt.php:162
1589
- #: includes/event-organiser-event-functions.php:1561
1590
  #: templates/event-meta-event-single.php:66
1591
  msgid "Tags"
1592
  msgstr ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2017-11-25 22:52+0000\n"
6
  "PO-Revision-Date: 2016-11-27T01:17:42+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
250
 
251
  #: classes/class-eo-widget-categories.php:25
252
  #: includes/event-organiser-cpt.php:94 includes/event-organiser-cpt.php:105
253
+ #: includes/event-organiser-event-functions.php:1563
254
  #: templates/event-meta-event-single.php:62
255
  msgid "Categories"
256
  msgstr "تصنيفات"
372
  msgstr "24 ساعة"
373
 
374
  #: event-organiser-calendar.php:256
375
+ #: includes/event-organiser-event-functions.php:1500
376
  msgid "Loading&#8230;"
377
  msgstr "جاري التحميل"
378
 
658
  "maps on your site, %1$splease enter your key%2$s."
659
  msgstr ""
660
 
661
+ #: event-organiser-edit.php:495
662
  msgid "Event dates were not saved."
663
  msgstr "تاريخ الحدث لم يتم حفظها"
664
 
1586
  msgstr ""
1587
 
1588
  #: includes/event-organiser-cpt.php:162
1589
+ #: includes/event-organiser-event-functions.php:1571
1590
  #: templates/event-meta-event-single.php:66
1591
  msgid "Tags"
1592
  msgstr ""
languages/eventorganiser-bg_BG.mo CHANGED
Binary file
languages/eventorganiser-bg_BG.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2017-11-14 21:46+0000\n"
6
  "PO-Revision-Date: 2016-11-27T01:17:38+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
@@ -248,7 +248,7 @@ msgstr ""
248
 
249
  #: classes/class-eo-widget-categories.php:25
250
  #: includes/event-organiser-cpt.php:94 includes/event-organiser-cpt.php:105
251
- #: includes/event-organiser-event-functions.php:1553
252
  #: templates/event-meta-event-single.php:62
253
  msgid "Categories"
254
  msgstr ""
@@ -370,7 +370,7 @@ msgid "24 hour time"
370
  msgstr "24 часово време"
371
 
372
  #: event-organiser-calendar.php:256
373
- #: includes/event-organiser-event-functions.php:1490
374
  msgid "Loading&#8230;"
375
  msgstr "Зареждане..."
376
 
@@ -658,7 +658,7 @@ msgid ""
658
  "maps on your site, %1$splease enter your key%2$s."
659
  msgstr ""
660
 
661
- #: event-organiser-edit.php:492
662
  msgid "Event dates were not saved."
663
  msgstr ""
664
 
@@ -1599,7 +1599,7 @@ msgid "Choose from the most used tags"
1599
  msgstr "Избери измежду най-ползваните тагоее"
1600
 
1601
  #: includes/event-organiser-cpt.php:162
1602
- #: includes/event-organiser-event-functions.php:1561
1603
  #: templates/event-meta-event-single.php:66
1604
  msgid "Tags"
1605
  msgstr "Тагове"
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2017-11-25 22:52+0000\n"
6
  "PO-Revision-Date: 2016-11-27T01:17:38+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
248
 
249
  #: classes/class-eo-widget-categories.php:25
250
  #: includes/event-organiser-cpt.php:94 includes/event-organiser-cpt.php:105
251
+ #: includes/event-organiser-event-functions.php:1563
252
  #: templates/event-meta-event-single.php:62
253
  msgid "Categories"
254
  msgstr ""
370
  msgstr "24 часово време"
371
 
372
  #: event-organiser-calendar.php:256
373
+ #: includes/event-organiser-event-functions.php:1500
374
  msgid "Loading&#8230;"
375
  msgstr "Зареждане..."
376
 
658
  "maps on your site, %1$splease enter your key%2$s."
659
  msgstr ""
660
 
661
+ #: event-organiser-edit.php:495
662
  msgid "Event dates were not saved."
663
  msgstr ""
664
 
1599
  msgstr "Избери измежду най-ползваните тагоее"
1600
 
1601
  #: includes/event-organiser-cpt.php:162
1602
+ #: includes/event-organiser-event-functions.php:1571
1603
  #: templates/event-meta-event-single.php:66
1604
  msgid "Tags"
1605
  msgstr "Тагове"
languages/eventorganiser-ca.mo CHANGED
Binary file
languages/eventorganiser-ca.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2017-11-14 21:46+0000\n"
6
  "PO-Revision-Date: 2017-04-16T23:21:14+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
@@ -252,7 +252,7 @@ msgstr "Categories Esdeveniment"
252
 
253
  #: classes/class-eo-widget-categories.php:25
254
  #: includes/event-organiser-cpt.php:94 includes/event-organiser-cpt.php:105
255
- #: includes/event-organiser-event-functions.php:1553
256
  #: templates/event-meta-event-single.php:62
257
  msgid "Categories"
258
  msgstr "Categoríes"
@@ -376,7 +376,7 @@ msgid "24 hour time"
376
  msgstr "De 24 hores"
377
 
378
  #: event-organiser-calendar.php:256
379
- #: includes/event-organiser-event-functions.php:1490
380
  msgid "Loading&#8230;"
381
  msgstr "Carregant..."
382
 
@@ -664,7 +664,7 @@ msgid ""
664
  "maps on your site, %1$splease enter your key%2$s."
665
  msgstr ""
666
 
667
- #: event-organiser-edit.php:492
668
  msgid "Event dates were not saved."
669
  msgstr "Les dates de l'esdeveniment no s'han guardat"
670
 
@@ -1636,7 +1636,7 @@ msgid "Choose from the most used tags"
1636
  msgstr "Trieu entre les etiquetes més utilitzades"
1637
 
1638
  #: includes/event-organiser-cpt.php:162
1639
- #: includes/event-organiser-event-functions.php:1561
1640
  #: templates/event-meta-event-single.php:66
1641
  msgid "Tags"
1642
  msgstr "Etiquetes"
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2017-11-25 22:52+0000\n"
6
  "PO-Revision-Date: 2017-04-16T23:21:14+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
252
 
253
  #: classes/class-eo-widget-categories.php:25
254
  #: includes/event-organiser-cpt.php:94 includes/event-organiser-cpt.php:105
255
+ #: includes/event-organiser-event-functions.php:1563
256
  #: templates/event-meta-event-single.php:62
257
  msgid "Categories"
258
  msgstr "Categoríes"
376
  msgstr "De 24 hores"
377
 
378
  #: event-organiser-calendar.php:256
379
+ #: includes/event-organiser-event-functions.php:1500
380
  msgid "Loading&#8230;"
381
  msgstr "Carregant..."
382
 
664
  "maps on your site, %1$splease enter your key%2$s."
665
  msgstr ""
666
 
667
+ #: event-organiser-edit.php:495
668
  msgid "Event dates were not saved."
669
  msgstr "Les dates de l'esdeveniment no s'han guardat"
670
 
1636
  msgstr "Trieu entre les etiquetes més utilitzades"
1637
 
1638
  #: includes/event-organiser-cpt.php:162
1639
+ #: includes/event-organiser-event-functions.php:1571
1640
  #: templates/event-meta-event-single.php:66
1641
  msgid "Tags"
1642
  msgstr "Etiquetes"
languages/eventorganiser-cs_CZ.mo CHANGED
Binary file
languages/eventorganiser-cs_CZ.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2017-11-14 21:46+0000\n"
6
  "PO-Revision-Date: 2017-10-09T20:46:49+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
@@ -252,7 +252,7 @@ msgstr "Kategorie události"
252
 
253
  #: classes/class-eo-widget-categories.php:25
254
  #: includes/event-organiser-cpt.php:94 includes/event-organiser-cpt.php:105
255
- #: includes/event-organiser-event-functions.php:1553
256
  #: templates/event-meta-event-single.php:62
257
  msgid "Categories"
258
  msgstr "Kategorie"
@@ -377,7 +377,7 @@ msgid "24 hour time"
377
  msgstr "24 hodinový čas"
378
 
379
  #: event-organiser-calendar.php:256
380
- #: includes/event-organiser-event-functions.php:1490
381
  msgid "Loading&#8230;"
382
  msgstr "Načítám..."
383
 
@@ -666,7 +666,7 @@ msgid ""
666
  "maps on your site, %1$splease enter your key%2$s."
667
  msgstr ""
668
 
669
- #: event-organiser-edit.php:492
670
  msgid "Event dates were not saved."
671
  msgstr "Data události nebyla uložena"
672
 
@@ -1647,7 +1647,7 @@ msgid "Choose from the most used tags"
1647
  msgstr "Vyberte z nejpoužívanějších štítků"
1648
 
1649
  #: includes/event-organiser-cpt.php:162
1650
- #: includes/event-organiser-event-functions.php:1561
1651
  #: templates/event-meta-event-single.php:66
1652
  msgid "Tags"
1653
  msgstr "Štítky"
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2017-11-25 22:52+0000\n"
6
  "PO-Revision-Date: 2017-10-09T20:46:49+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
252
 
253
  #: classes/class-eo-widget-categories.php:25
254
  #: includes/event-organiser-cpt.php:94 includes/event-organiser-cpt.php:105
255
+ #: includes/event-organiser-event-functions.php:1563
256
  #: templates/event-meta-event-single.php:62
257
  msgid "Categories"
258
  msgstr "Kategorie"
377
  msgstr "24 hodinový čas"
378
 
379
  #: event-organiser-calendar.php:256
380
+ #: includes/event-organiser-event-functions.php:1500
381
  msgid "Loading&#8230;"
382
  msgstr "Načítám..."
383
 
666
  "maps on your site, %1$splease enter your key%2$s."
667
  msgstr ""
668
 
669
+ #: event-organiser-edit.php:495
670
  msgid "Event dates were not saved."
671
  msgstr "Data události nebyla uložena"
672
 
1647
  msgstr "Vyberte z nejpoužívanějších štítků"
1648
 
1649
  #: includes/event-organiser-cpt.php:162
1650
+ #: includes/event-organiser-event-functions.php:1571
1651
  #: templates/event-meta-event-single.php:66
1652
  msgid "Tags"
1653
  msgstr "Štítky"
languages/eventorganiser-da_DK.mo CHANGED
Binary file
languages/eventorganiser-da_DK.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2017-11-14 21:46+0000\n"
6
  "PO-Revision-Date: 2017-04-14T23:27:45+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
@@ -252,7 +252,7 @@ msgstr "Begivenhedskategorier"
252
 
253
  #: classes/class-eo-widget-categories.php:25
254
  #: includes/event-organiser-cpt.php:94 includes/event-organiser-cpt.php:105
255
- #: includes/event-organiser-event-functions.php:1553
256
  #: templates/event-meta-event-single.php:62
257
  msgid "Categories"
258
  msgstr "Kategorier"
@@ -376,7 +376,7 @@ msgid "24 hour time"
376
  msgstr "24 timers klokkeslæt"
377
 
378
  #: event-organiser-calendar.php:256
379
- #: includes/event-organiser-event-functions.php:1490
380
  msgid "Loading&#8230;"
381
  msgstr "Indlæser&#8230;"
382
 
@@ -664,7 +664,7 @@ msgid ""
664
  "maps on your site, %1$splease enter your key%2$s."
665
  msgstr ""
666
 
667
- #: event-organiser-edit.php:492
668
  msgid "Event dates were not saved."
669
  msgstr "Eventdatoer blev ikke gemt"
670
 
@@ -1631,7 +1631,7 @@ msgid "Choose from the most used tags"
1631
  msgstr "Vælg fra de mest brugte tags"
1632
 
1633
  #: includes/event-organiser-cpt.php:162
1634
- #: includes/event-organiser-event-functions.php:1561
1635
  #: templates/event-meta-event-single.php:66
1636
  msgid "Tags"
1637
  msgstr "Tags"
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2017-11-25 22:52+0000\n"
6
  "PO-Revision-Date: 2017-04-14T23:27:45+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
252
 
253
  #: classes/class-eo-widget-categories.php:25
254
  #: includes/event-organiser-cpt.php:94 includes/event-organiser-cpt.php:105
255
+ #: includes/event-organiser-event-functions.php:1563
256
  #: templates/event-meta-event-single.php:62
257
  msgid "Categories"
258
  msgstr "Kategorier"
376
  msgstr "24 timers klokkeslæt"
377
 
378
  #: event-organiser-calendar.php:256
379
+ #: includes/event-organiser-event-functions.php:1500
380
  msgid "Loading&#8230;"
381
  msgstr "Indlæser&#8230;"
382
 
664
  "maps on your site, %1$splease enter your key%2$s."
665
  msgstr ""
666
 
667
+ #: event-organiser-edit.php:495
668
  msgid "Event dates were not saved."
669
  msgstr "Eventdatoer blev ikke gemt"
670
 
1631
  msgstr "Vælg fra de mest brugte tags"
1632
 
1633
  #: includes/event-organiser-cpt.php:162
1634
+ #: includes/event-organiser-event-functions.php:1571
1635
  #: templates/event-meta-event-single.php:66
1636
  msgid "Tags"
1637
  msgstr "Tags"
languages/eventorganiser-de_DE.mo CHANGED
Binary file
languages/eventorganiser-de_DE.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2017-11-14 21:46+0000\n"
6
  "PO-Revision-Date: 2017-04-14T23:01:46+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
@@ -253,7 +253,7 @@ msgstr "Terminkategorien"
253
 
254
  #: classes/class-eo-widget-categories.php:25
255
  #: includes/event-organiser-cpt.php:94 includes/event-organiser-cpt.php:105
256
- #: includes/event-organiser-event-functions.php:1553
257
  #: templates/event-meta-event-single.php:62
258
  msgid "Categories"
259
  msgstr "Terminkategorien"
@@ -382,7 +382,7 @@ msgid "24 hour time"
382
  msgstr "24-Stunden-Zeit"
383
 
384
  #: event-organiser-calendar.php:256
385
- #: includes/event-organiser-event-functions.php:1490
386
  msgid "Loading&#8230;"
387
  msgstr "Laden&#8230;"
388
 
@@ -682,7 +682,7 @@ msgid ""
682
  "maps on your site, %1$splease enter your key%2$s."
683
  msgstr ""
684
 
685
- #: event-organiser-edit.php:492
686
  msgid "Event dates were not saved."
687
  msgstr "Die Termindaten wurden nicht gespeichert."
688
 
@@ -1663,7 +1663,7 @@ msgid "Choose from the most used tags"
1663
  msgstr "Aus den meist verwendeten Terminschlagworten auswählen"
1664
 
1665
  #: includes/event-organiser-cpt.php:162
1666
- #: includes/event-organiser-event-functions.php:1561
1667
  #: templates/event-meta-event-single.php:66
1668
  msgid "Tags"
1669
  msgstr "Terminschlagworte"
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2017-11-25 22:52+0000\n"
6
  "PO-Revision-Date: 2017-04-14T23:01:46+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
253
 
254
  #: classes/class-eo-widget-categories.php:25
255
  #: includes/event-organiser-cpt.php:94 includes/event-organiser-cpt.php:105
256
+ #: includes/event-organiser-event-functions.php:1563
257
  #: templates/event-meta-event-single.php:62
258
  msgid "Categories"
259
  msgstr "Terminkategorien"
382
  msgstr "24-Stunden-Zeit"
383
 
384
  #: event-organiser-calendar.php:256
385
+ #: includes/event-organiser-event-functions.php:1500
386
  msgid "Loading&#8230;"
387
  msgstr "Laden&#8230;"
388
 
682
  "maps on your site, %1$splease enter your key%2$s."
683
  msgstr ""
684
 
685
+ #: event-organiser-edit.php:495
686
  msgid "Event dates were not saved."
687
  msgstr "Die Termindaten wurden nicht gespeichert."
688
 
1663
  msgstr "Aus den meist verwendeten Terminschlagworten auswählen"
1664
 
1665
  #: includes/event-organiser-cpt.php:162
1666
+ #: includes/event-organiser-event-functions.php:1571
1667
  #: templates/event-meta-event-single.php:66
1668
  msgid "Tags"
1669
  msgstr "Terminschlagworte"
languages/eventorganiser-el.mo CHANGED
Binary file
languages/eventorganiser-el.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2017-11-14 21:46+0000\n"
6
  "PO-Revision-Date: 2017-04-14T23:02:23+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
@@ -251,7 +251,7 @@ msgstr "Κατηγορίες Event"
251
 
252
  #: classes/class-eo-widget-categories.php:25
253
  #: includes/event-organiser-cpt.php:94 includes/event-organiser-cpt.php:105
254
- #: includes/event-organiser-event-functions.php:1553
255
  #: templates/event-meta-event-single.php:62
256
  msgid "Categories"
257
  msgstr "Κατηγορίες"
@@ -375,7 +375,7 @@ msgid "24 hour time"
375
  msgstr "24 ώρες"
376
 
377
  #: event-organiser-calendar.php:256
378
- #: includes/event-organiser-event-functions.php:1490
379
  msgid "Loading&#8230;"
380
  msgstr "Φόρτωση ..."
381
 
@@ -664,7 +664,7 @@ msgid ""
664
  "maps on your site, %1$splease enter your key%2$s."
665
  msgstr ""
666
 
667
- #: event-organiser-edit.php:492
668
  msgid "Event dates were not saved."
669
  msgstr "Ημερομηνίες γεγονότων δεν σώθηκαν."
670
 
@@ -1634,7 +1634,7 @@ msgid "Choose from the most used tags"
1634
  msgstr "Επιλέξτε απο τις πιο δημοφιλής ετικέτες"
1635
 
1636
  #: includes/event-organiser-cpt.php:162
1637
- #: includes/event-organiser-event-functions.php:1561
1638
  #: templates/event-meta-event-single.php:66
1639
  msgid "Tags"
1640
  msgstr "Ετικέτες"
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2017-11-25 22:52+0000\n"
6
  "PO-Revision-Date: 2017-04-14T23:02:23+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
251
 
252
  #: classes/class-eo-widget-categories.php:25
253
  #: includes/event-organiser-cpt.php:94 includes/event-organiser-cpt.php:105
254
+ #: includes/event-organiser-event-functions.php:1563
255
  #: templates/event-meta-event-single.php:62
256
  msgid "Categories"
257
  msgstr "Κατηγορίες"
375
  msgstr "24 ώρες"
376
 
377
  #: event-organiser-calendar.php:256
378
+ #: includes/event-organiser-event-functions.php:1500
379
  msgid "Loading&#8230;"
380
  msgstr "Φόρτωση ..."
381
 
664
  "maps on your site, %1$splease enter your key%2$s."
665
  msgstr ""
666
 
667
+ #: event-organiser-edit.php:495
668
  msgid "Event dates were not saved."
669
  msgstr "Ημερομηνίες γεγονότων δεν σώθηκαν."
670
 
1634
  msgstr "Επιλέξτε απο τις πιο δημοφιλής ετικέτες"
1635
 
1636
  #: includes/event-organiser-cpt.php:162
1637
+ #: includes/event-organiser-event-functions.php:1571
1638
  #: templates/event-meta-event-single.php:66
1639
  msgid "Tags"
1640
  msgstr "Ετικέτες"
languages/eventorganiser-en_CA.mo CHANGED
Binary file
languages/eventorganiser-en_CA.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2017-11-14 21:46+0000\n"
6
  "PO-Revision-Date: 2016-11-27T01:17:15+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
@@ -248,7 +248,7 @@ msgstr "Event Categories"
248
 
249
  #: classes/class-eo-widget-categories.php:25
250
  #: includes/event-organiser-cpt.php:94 includes/event-organiser-cpt.php:105
251
- #: includes/event-organiser-event-functions.php:1553
252
  #: templates/event-meta-event-single.php:62
253
  msgid "Categories"
254
  msgstr ""
@@ -370,7 +370,7 @@ msgid "24 hour time"
370
  msgstr ""
371
 
372
  #: event-organiser-calendar.php:256
373
- #: includes/event-organiser-event-functions.php:1490
374
  msgid "Loading&#8230;"
375
  msgstr ""
376
 
@@ -658,7 +658,7 @@ msgid ""
658
  "maps on your site, %1$splease enter your key%2$s."
659
  msgstr ""
660
 
661
- #: event-organiser-edit.php:492
662
  msgid "Event dates were not saved."
663
  msgstr "Event dates were not saved."
664
 
@@ -1603,7 +1603,7 @@ msgid "Choose from the most used tags"
1603
  msgstr ""
1604
 
1605
  #: includes/event-organiser-cpt.php:162
1606
- #: includes/event-organiser-event-functions.php:1561
1607
  #: templates/event-meta-event-single.php:66
1608
  msgid "Tags"
1609
  msgstr ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2017-11-25 22:52+0000\n"
6
  "PO-Revision-Date: 2016-11-27T01:17:15+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
248
 
249
  #: classes/class-eo-widget-categories.php:25
250
  #: includes/event-organiser-cpt.php:94 includes/event-organiser-cpt.php:105
251
+ #: includes/event-organiser-event-functions.php:1563
252
  #: templates/event-meta-event-single.php:62
253
  msgid "Categories"
254
  msgstr ""
370
  msgstr ""
371
 
372
  #: event-organiser-calendar.php:256
373
+ #: includes/event-organiser-event-functions.php:1500
374
  msgid "Loading&#8230;"
375
  msgstr ""
376
 
658
  "maps on your site, %1$splease enter your key%2$s."
659
  msgstr ""
660
 
661
+ #: event-organiser-edit.php:495
662
  msgid "Event dates were not saved."
663
  msgstr "Event dates were not saved."
664
 
1603
  msgstr ""
1604
 
1605
  #: includes/event-organiser-cpt.php:162
1606
+ #: includes/event-organiser-event-functions.php:1571
1607
  #: templates/event-meta-event-single.php:66
1608
  msgid "Tags"
1609
  msgstr ""
languages/eventorganiser-en_GB.mo CHANGED
Binary file
languages/eventorganiser-en_GB.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2017-11-14 21:46+0000\n"
6
  "PO-Revision-Date: 2016-11-26T14:51:57+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
@@ -248,7 +248,7 @@ msgstr ""
248
 
249
  #: classes/class-eo-widget-categories.php:25
250
  #: includes/event-organiser-cpt.php:94 includes/event-organiser-cpt.php:105
251
- #: includes/event-organiser-event-functions.php:1553
252
  #: templates/event-meta-event-single.php:62
253
  msgid "Categories"
254
  msgstr ""
@@ -370,7 +370,7 @@ msgid "24 hour time"
370
  msgstr ""
371
 
372
  #: event-organiser-calendar.php:256
373
- #: includes/event-organiser-event-functions.php:1490
374
  msgid "Loading&#8230;"
375
  msgstr ""
376
 
@@ -656,7 +656,7 @@ msgid ""
656
  "maps on your site, %1$splease enter your key%2$s."
657
  msgstr ""
658
 
659
- #: event-organiser-edit.php:492
660
  msgid "Event dates were not saved."
661
  msgstr ""
662
 
@@ -1584,7 +1584,7 @@ msgid "Choose from the most used tags"
1584
  msgstr ""
1585
 
1586
  #: includes/event-organiser-cpt.php:162
1587
- #: includes/event-organiser-event-functions.php:1561
1588
  #: templates/event-meta-event-single.php:66
1589
  msgid "Tags"
1590
  msgstr ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2017-11-25 22:52+0000\n"
6
  "PO-Revision-Date: 2016-11-26T14:51:57+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
248
 
249
  #: classes/class-eo-widget-categories.php:25
250
  #: includes/event-organiser-cpt.php:94 includes/event-organiser-cpt.php:105
251
+ #: includes/event-organiser-event-functions.php:1563
252
  #: templates/event-meta-event-single.php:62
253
  msgid "Categories"
254
  msgstr ""
370
  msgstr ""
371
 
372
  #: event-organiser-calendar.php:256
373
+ #: includes/event-organiser-event-functions.php:1500
374
  msgid "Loading&#8230;"
375
  msgstr ""
376
 
656
  "maps on your site, %1$splease enter your key%2$s."
657
  msgstr ""
658
 
659
+ #: event-organiser-edit.php:495
660
  msgid "Event dates were not saved."
661
  msgstr ""
662
 
1584
  msgstr ""
1585
 
1586
  #: includes/event-organiser-cpt.php:162
1587
+ #: includes/event-organiser-event-functions.php:1571
1588
  #: templates/event-meta-event-single.php:66
1589
  msgid "Tags"
1590
  msgstr ""
languages/eventorganiser-es_ES.mo CHANGED
Binary file
languages/eventorganiser-es_ES.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2017-11-14 21:46+0000\n"
6
  "PO-Revision-Date: 2017-04-14T23:01:00+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
@@ -252,7 +252,7 @@ msgstr "Categorías de evento"
252
 
253
  #: classes/class-eo-widget-categories.php:25
254
  #: includes/event-organiser-cpt.php:94 includes/event-organiser-cpt.php:105
255
- #: includes/event-organiser-event-functions.php:1553
256
  #: templates/event-meta-event-single.php:62
257
  msgid "Categories"
258
  msgstr "Categorías"
@@ -376,7 +376,7 @@ msgid "24 hour time"
376
  msgstr "Tiempo de 24 horas"
377
 
378
  #: event-organiser-calendar.php:256
379
- #: includes/event-organiser-event-functions.php:1490
380
  msgid "Loading&#8230;"
381
  msgstr "Cargando&#8230; "
382
 
@@ -664,7 +664,7 @@ msgid ""
664
  "maps on your site, %1$splease enter your key%2$s."
665
  msgstr ""
666
 
667
- #: event-organiser-edit.php:492
668
  msgid "Event dates were not saved."
669
  msgstr "Las fechas del evento no fueron salvadas."
670
 
@@ -1635,7 +1635,7 @@ msgid "Choose from the most used tags"
1635
  msgstr "Escoger de las etiquetas más usadas"
1636
 
1637
  #: includes/event-organiser-cpt.php:162
1638
- #: includes/event-organiser-event-functions.php:1561
1639
  #: templates/event-meta-event-single.php:66
1640
  msgid "Tags"
1641
  msgstr "Etiquetas"
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2017-11-25 22:52+0000\n"
6
  "PO-Revision-Date: 2017-04-14T23:01:00+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
252
 
253
  #: classes/class-eo-widget-categories.php:25
254
  #: includes/event-organiser-cpt.php:94 includes/event-organiser-cpt.php:105
255
+ #: includes/event-organiser-event-functions.php:1563
256
  #: templates/event-meta-event-single.php:62
257
  msgid "Categories"
258
  msgstr "Categorías"
376
  msgstr "Tiempo de 24 horas"
377
 
378
  #: event-organiser-calendar.php:256
379
+ #: includes/event-organiser-event-functions.php:1500
380
  msgid "Loading&#8230;"
381
  msgstr "Cargando&#8230; "
382
 
664
  "maps on your site, %1$splease enter your key%2$s."
665
  msgstr ""
666
 
667
+ #: event-organiser-edit.php:495
668
  msgid "Event dates were not saved."
669
  msgstr "Las fechas del evento no fueron salvadas."
670
 
1635
  msgstr "Escoger de las etiquetas más usadas"
1636
 
1637
  #: includes/event-organiser-cpt.php:162
1638
+ #: includes/event-organiser-event-functions.php:1571
1639
  #: templates/event-meta-event-single.php:66
1640
  msgid "Tags"
1641
  msgstr "Etiquetas"
languages/eventorganiser-es_PE.mo CHANGED
Binary file
languages/eventorganiser-es_PE.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2017-11-14 21:46+0000\n"
6
  "PO-Revision-Date: 2017-09-11T22:37:13+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
@@ -248,7 +248,7 @@ msgstr ""
248
 
249
  #: classes/class-eo-widget-categories.php:25
250
  #: includes/event-organiser-cpt.php:94 includes/event-organiser-cpt.php:105
251
- #: includes/event-organiser-event-functions.php:1553
252
  #: templates/event-meta-event-single.php:62
253
  msgid "Categories"
254
  msgstr ""
@@ -370,7 +370,7 @@ msgid "24 hour time"
370
  msgstr ""
371
 
372
  #: event-organiser-calendar.php:256
373
- #: includes/event-organiser-event-functions.php:1490
374
  msgid "Loading&#8230;"
375
  msgstr ""
376
 
@@ -658,7 +658,7 @@ msgid ""
658
  "maps on your site, %1$splease enter your key%2$s."
659
  msgstr ""
660
 
661
- #: event-organiser-edit.php:492
662
  msgid "Event dates were not saved."
663
  msgstr ""
664
 
@@ -1586,7 +1586,7 @@ msgid "Choose from the most used tags"
1586
  msgstr ""
1587
 
1588
  #: includes/event-organiser-cpt.php:162
1589
- #: includes/event-organiser-event-functions.php:1561
1590
  #: templates/event-meta-event-single.php:66
1591
  msgid "Tags"
1592
  msgstr ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2017-11-25 22:52+0000\n"
6
  "PO-Revision-Date: 2017-09-11T22:37:13+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
248
 
249
  #: classes/class-eo-widget-categories.php:25
250
  #: includes/event-organiser-cpt.php:94 includes/event-organiser-cpt.php:105
251
+ #: includes/event-organiser-event-functions.php:1563
252
  #: templates/event-meta-event-single.php:62
253
  msgid "Categories"
254
  msgstr ""
370
  msgstr ""
371
 
372
  #: event-organiser-calendar.php:256
373
+ #: includes/event-organiser-event-functions.php:1500
374
  msgid "Loading&#8230;"
375
  msgstr ""
376
 
658
  "maps on your site, %1$splease enter your key%2$s."
659
  msgstr ""
660
 
661
+ #: event-organiser-edit.php:495
662
  msgid "Event dates were not saved."
663
  msgstr ""
664
 
1586
  msgstr ""
1587
 
1588
  #: includes/event-organiser-cpt.php:162
1589
+ #: includes/event-organiser-event-functions.php:1571
1590
  #: templates/event-meta-event-single.php:66
1591
  msgid "Tags"
1592
  msgstr ""
languages/eventorganiser-et.mo CHANGED
Binary file
languages/eventorganiser-et.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2017-11-14 21:46+0000\n"
6
  "PO-Revision-Date: 2016-11-27T01:17:05+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
@@ -249,7 +249,7 @@ msgstr "Sündmuse rubriigid"
249
 
250
  #: classes/class-eo-widget-categories.php:25
251
  #: includes/event-organiser-cpt.php:94 includes/event-organiser-cpt.php:105
252
- #: includes/event-organiser-event-functions.php:1553
253
  #: templates/event-meta-event-single.php:62
254
  msgid "Categories"
255
  msgstr "Rubriigid"
@@ -371,7 +371,7 @@ msgid "24 hour time"
371
  msgstr "24 tunni aeg"
372
 
373
  #: event-organiser-calendar.php:256
374
- #: includes/event-organiser-event-functions.php:1490
375
  msgid "Loading&#8230;"
376
  msgstr "Laen&#8230;"
377
 
@@ -657,7 +657,7 @@ msgid ""
657
  "maps on your site, %1$splease enter your key%2$s."
658
  msgstr ""
659
 
660
- #: event-organiser-edit.php:492
661
  msgid "Event dates were not saved."
662
  msgstr "Sündmuse kuupäevi ei salvestatud."
663
 
@@ -1608,7 +1608,7 @@ msgid "Choose from the most used tags"
1608
  msgstr "Vali enimkasutatud siltide hulgast"
1609
 
1610
  #: includes/event-organiser-cpt.php:162
1611
- #: includes/event-organiser-event-functions.php:1561
1612
  #: templates/event-meta-event-single.php:66
1613
  msgid "Tags"
1614
  msgstr "Sildid"
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2017-11-25 22:52+0000\n"
6
  "PO-Revision-Date: 2016-11-27T01:17:05+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
249
 
250
  #: classes/class-eo-widget-categories.php:25
251
  #: includes/event-organiser-cpt.php:94 includes/event-organiser-cpt.php:105
252
+ #: includes/event-organiser-event-functions.php:1563
253
  #: templates/event-meta-event-single.php:62
254
  msgid "Categories"
255
  msgstr "Rubriigid"
371
  msgstr "24 tunni aeg"
372
 
373
  #: event-organiser-calendar.php:256
374
+ #: includes/event-organiser-event-functions.php:1500
375
  msgid "Loading&#8230;"
376
  msgstr "Laen&#8230;"
377
 
657
  "maps on your site, %1$splease enter your key%2$s."
658
  msgstr ""
659
 
660
+ #: event-organiser-edit.php:495
661
  msgid "Event dates were not saved."
662
  msgstr "Sündmuse kuupäevi ei salvestatud."
663
 
1608
  msgstr "Vali enimkasutatud siltide hulgast"
1609
 
1610
  #: includes/event-organiser-cpt.php:162
1611
+ #: includes/event-organiser-event-functions.php:1571
1612
  #: templates/event-meta-event-single.php:66
1613
  msgid "Tags"
1614
  msgstr "Sildid"
languages/eventorganiser-fa_IR.mo CHANGED
Binary file
languages/eventorganiser-fa_IR.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2017-11-14 21:46+0000\n"
6
  "PO-Revision-Date: 2016-11-27T01:17:02+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
@@ -248,7 +248,7 @@ msgstr "دسته‌های رویداد"
248
 
249
  #: classes/class-eo-widget-categories.php:25
250
  #: includes/event-organiser-cpt.php:94 includes/event-organiser-cpt.php:105
251
- #: includes/event-organiser-event-functions.php:1553
252
  #: templates/event-meta-event-single.php:62
253
  msgid "Categories"
254
  msgstr "دسته‌بندی‌ها"
@@ -370,7 +370,7 @@ msgid "24 hour time"
370
  msgstr "ساعت برمبنای 24"
371
 
372
  #: event-organiser-calendar.php:256
373
- #: includes/event-organiser-event-functions.php:1490
374
  msgid "Loading&#8230;"
375
  msgstr "درحال بارگذاری..."
376
 
@@ -657,7 +657,7 @@ msgid ""
657
  "maps on your site, %1$splease enter your key%2$s."
658
  msgstr ""
659
 
660
- #: event-organiser-edit.php:492
661
  msgid "Event dates were not saved."
662
  msgstr "تاریخ‌های رویداد ذخیره نگردید"
663
 
@@ -1585,7 +1585,7 @@ msgid "Choose from the most used tags"
1585
  msgstr "از میان برچسبهایی که بیشتر استفاده شده اند ، انتخاب کنید"
1586
 
1587
  #: includes/event-organiser-cpt.php:162
1588
- #: includes/event-organiser-event-functions.php:1561
1589
  #: templates/event-meta-event-single.php:66
1590
  msgid "Tags"
1591
  msgstr "برچسب‌ها"
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2017-11-25 22:52+0000\n"
6
  "PO-Revision-Date: 2016-11-27T01:17:02+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
248
 
249
  #: classes/class-eo-widget-categories.php:25
250
  #: includes/event-organiser-cpt.php:94 includes/event-organiser-cpt.php:105
251
+ #: includes/event-organiser-event-functions.php:1563
252
  #: templates/event-meta-event-single.php:62
253
  msgid "Categories"
254
  msgstr "دسته‌بندی‌ها"
370
  msgstr "ساعت برمبنای 24"
371
 
372
  #: event-organiser-calendar.php:256
373
+ #: includes/event-organiser-event-functions.php:1500
374
  msgid "Loading&#8230;"
375
  msgstr "درحال بارگذاری..."
376
 
657
  "maps on your site, %1$splease enter your key%2$s."
658
  msgstr ""
659
 
660
+ #: event-organiser-edit.php:495
661
  msgid "Event dates were not saved."
662
  msgstr "تاریخ‌های رویداد ذخیره نگردید"
663
 
1585
  msgstr "از میان برچسبهایی که بیشتر استفاده شده اند ، انتخاب کنید"
1586
 
1587
  #: includes/event-organiser-cpt.php:162
1588
+ #: includes/event-organiser-event-functions.php:1571
1589
  #: templates/event-meta-event-single.php:66
1590
  msgid "Tags"
1591
  msgstr "برچسب‌ها"
languages/eventorganiser-fi.mo CHANGED
Binary file
languages/eventorganiser-fi.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2017-11-14 21:46+0000\n"
6
  "PO-Revision-Date: 2017-08-31T14:17:32+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
@@ -253,7 +253,7 @@ msgstr "Tapahtumakategoriat"
253
 
254
  #: classes/class-eo-widget-categories.php:25
255
  #: includes/event-organiser-cpt.php:94 includes/event-organiser-cpt.php:105
256
- #: includes/event-organiser-event-functions.php:1553
257
  #: templates/event-meta-event-single.php:62
258
  msgid "Categories"
259
  msgstr "Kategoriat"
@@ -375,7 +375,7 @@ msgid "24 hour time"
375
  msgstr "24 tunnin aika"
376
 
377
  #: event-organiser-calendar.php:256
378
- #: includes/event-organiser-event-functions.php:1490
379
  msgid "Loading&#8230;"
380
  msgstr "Lataa&#8230;"
381
 
@@ -661,7 +661,7 @@ msgid ""
661
  "maps on your site, %1$splease enter your key%2$s."
662
  msgstr ""
663
 
664
- #: event-organiser-edit.php:492
665
  msgid "Event dates were not saved."
666
  msgstr "Tapahtuman päiviä ei tallennettu."
667
 
@@ -1611,7 +1611,7 @@ msgid "Choose from the most used tags"
1611
  msgstr "Valitse eniten käytetyistä avainsanoista"
1612
 
1613
  #: includes/event-organiser-cpt.php:162
1614
- #: includes/event-organiser-event-functions.php:1561
1615
  #: templates/event-meta-event-single.php:66
1616
  msgid "Tags"
1617
  msgstr "Avainsanat"
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2017-11-25 22:52+0000\n"
6
  "PO-Revision-Date: 2017-08-31T14:17:32+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
253
 
254
  #: classes/class-eo-widget-categories.php:25
255
  #: includes/event-organiser-cpt.php:94 includes/event-organiser-cpt.php:105
256
+ #: includes/event-organiser-event-functions.php:1563
257
  #: templates/event-meta-event-single.php:62
258
  msgid "Categories"
259
  msgstr "Kategoriat"
375
  msgstr "24 tunnin aika"
376
 
377
  #: event-organiser-calendar.php:256
378
+ #: includes/event-organiser-event-functions.php:1500
379
  msgid "Loading&#8230;"
380
  msgstr "Lataa&#8230;"
381
 
661
  "maps on your site, %1$splease enter your key%2$s."
662
  msgstr ""
663
 
664
+ #: event-organiser-edit.php:495
665
  msgid "Event dates were not saved."
666
  msgstr "Tapahtuman päiviä ei tallennettu."
667
 
1611
  msgstr "Valitse eniten käytetyistä avainsanoista"
1612
 
1613
  #: includes/event-organiser-cpt.php:162
1614
+ #: includes/event-organiser-event-functions.php:1571
1615
  #: templates/event-meta-event-single.php:66
1616
  msgid "Tags"
1617
  msgstr "Avainsanat"
languages/eventorganiser-fr_FR.mo CHANGED
Binary file
languages/eventorganiser-fr_FR.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2017-11-14 21:46+0000\n"
6
  "PO-Revision-Date: 2017-10-31T18:44:38+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
@@ -254,7 +254,7 @@ msgstr "Catégories des événements"
254
 
255
  #: classes/class-eo-widget-categories.php:25
256
  #: includes/event-organiser-cpt.php:94 includes/event-organiser-cpt.php:105
257
- #: includes/event-organiser-event-functions.php:1553
258
  #: templates/event-meta-event-single.php:62
259
  msgid "Categories"
260
  msgstr "Catégories"
@@ -380,7 +380,7 @@ msgid "24 hour time"
380
  msgstr "heure au format 24h"
381
 
382
  #: event-organiser-calendar.php:256
383
- #: includes/event-organiser-event-functions.php:1490
384
  msgid "Loading&#8230;"
385
  msgstr "Chargement&#8230;"
386
 
@@ -682,7 +682,7 @@ msgstr ""
682
  "Google Maps exige désormais que vous enregistriez une clé API. Si vous "
683
  "souhaitez utiliser des cartes sur votre site, %1$s entrez svp votre clé%2$s."
684
 
685
- #: event-organiser-edit.php:492
686
  msgid "Event dates were not saved."
687
  msgstr "Les dates de l'événement n'ont pas été sauvegardées"
688
 
@@ -1677,7 +1677,7 @@ msgid "Choose from the most used tags"
1677
  msgstr "Choisir parmi les mots-clefs les plus utilisés"
1678
 
1679
  #: includes/event-organiser-cpt.php:162
1680
- #: includes/event-organiser-event-functions.php:1561
1681
  #: templates/event-meta-event-single.php:66
1682
  msgid "Tags"
1683
  msgstr "Mots-clefs"
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2017-11-25 22:52+0000\n"
6
  "PO-Revision-Date: 2017-10-31T18:44:38+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
254
 
255
  #: classes/class-eo-widget-categories.php:25
256
  #: includes/event-organiser-cpt.php:94 includes/event-organiser-cpt.php:105
257
+ #: includes/event-organiser-event-functions.php:1563
258
  #: templates/event-meta-event-single.php:62
259
  msgid "Categories"
260
  msgstr "Catégories"
380
  msgstr "heure au format 24h"
381
 
382
  #: event-organiser-calendar.php:256
383
+ #: includes/event-organiser-event-functions.php:1500
384
  msgid "Loading&#8230;"
385
  msgstr "Chargement&#8230;"
386
 
682
  "Google Maps exige désormais que vous enregistriez une clé API. Si vous "
683
  "souhaitez utiliser des cartes sur votre site, %1$s entrez svp votre clé%2$s."
684
 
685
+ #: event-organiser-edit.php:495
686
  msgid "Event dates were not saved."
687
  msgstr "Les dates de l'événement n'ont pas été sauvegardées"
688
 
1677
  msgstr "Choisir parmi les mots-clefs les plus utilisés"
1678
 
1679
  #: includes/event-organiser-cpt.php:162
1680
+ #: includes/event-organiser-event-functions.php:1571
1681
  #: templates/event-meta-event-single.php:66
1682
  msgid "Tags"
1683
  msgstr "Mots-clefs"
languages/eventorganiser-he_IL.mo CHANGED
Binary file
languages/eventorganiser-he_IL.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2017-11-14 21:46+0000\n"
6
  "PO-Revision-Date: 2016-11-27T01:16:48+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
@@ -251,7 +251,7 @@ msgstr "קטגוריות אירוע"
251
 
252
  #: classes/class-eo-widget-categories.php:25
253
  #: includes/event-organiser-cpt.php:94 includes/event-organiser-cpt.php:105
254
- #: includes/event-organiser-event-functions.php:1553
255
  #: templates/event-meta-event-single.php:62
256
  msgid "Categories"
257
  msgstr "קטגוריות"
@@ -373,7 +373,7 @@ msgid "24 hour time"
373
  msgstr "שעון 24"
374
 
375
  #: event-organiser-calendar.php:256
376
- #: includes/event-organiser-event-functions.php:1490
377
  msgid "Loading&#8230;"
378
  msgstr "בטעינה...."
379
 
@@ -661,7 +661,7 @@ msgid ""
661
  "maps on your site, %1$splease enter your key%2$s."
662
  msgstr ""
663
 
664
- #: event-organiser-edit.php:492
665
  msgid "Event dates were not saved."
666
  msgstr "תאריכי אירוע לא נשמרו."
667
 
@@ -1615,7 +1615,7 @@ msgid "Choose from the most used tags"
1615
  msgstr ""
1616
 
1617
  #: includes/event-organiser-cpt.php:162
1618
- #: includes/event-organiser-event-functions.php:1561
1619
  #: templates/event-meta-event-single.php:66
1620
  msgid "Tags"
1621
  msgstr "תגיות"
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2017-11-25 22:52+0000\n"
6
  "PO-Revision-Date: 2016-11-27T01:16:48+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
251
 
252
  #: classes/class-eo-widget-categories.php:25
253
  #: includes/event-organiser-cpt.php:94 includes/event-organiser-cpt.php:105
254
+ #: includes/event-organiser-event-functions.php:1563
255
  #: templates/event-meta-event-single.php:62
256
  msgid "Categories"
257
  msgstr "קטגוריות"
373
  msgstr "שעון 24"
374
 
375
  #: event-organiser-calendar.php:256
376
+ #: includes/event-organiser-event-functions.php:1500
377
  msgid "Loading&#8230;"
378
  msgstr "בטעינה...."
379
 
661
  "maps on your site, %1$splease enter your key%2$s."
662
  msgstr ""
663
 
664
+ #: event-organiser-edit.php:495
665
  msgid "Event dates were not saved."
666
  msgstr "תאריכי אירוע לא נשמרו."
667
 
1615
  msgstr ""
1616
 
1617
  #: includes/event-organiser-cpt.php:162
1618
+ #: includes/event-organiser-event-functions.php:1571
1619
  #: templates/event-meta-event-single.php:66
1620
  msgid "Tags"
1621
  msgstr "תגיות"
languages/eventorganiser-hi_IN.mo CHANGED
Binary file
languages/eventorganiser-hi_IN.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2017-11-14 21:46+0000\n"
6
  "PO-Revision-Date: 2016-11-27T01:16:43+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
@@ -248,7 +248,7 @@ msgstr ""
248
 
249
  #: classes/class-eo-widget-categories.php:25
250
  #: includes/event-organiser-cpt.php:94 includes/event-organiser-cpt.php:105
251
- #: includes/event-organiser-event-functions.php:1553
252
  #: templates/event-meta-event-single.php:62
253
  msgid "Categories"
254
  msgstr ""
@@ -370,7 +370,7 @@ msgid "24 hour time"
370
  msgstr ""
371
 
372
  #: event-organiser-calendar.php:256
373
- #: includes/event-organiser-event-functions.php:1490
374
  msgid "Loading&#8230;"
375
  msgstr ""
376
 
@@ -656,7 +656,7 @@ msgid ""
656
  "maps on your site, %1$splease enter your key%2$s."
657
  msgstr ""
658
 
659
- #: event-organiser-edit.php:492
660
  msgid "Event dates were not saved."
661
  msgstr ""
662
 
@@ -1585,7 +1585,7 @@ msgid "Choose from the most used tags"
1585
  msgstr ""
1586
 
1587
  #: includes/event-organiser-cpt.php:162
1588
- #: includes/event-organiser-event-functions.php:1561
1589
  #: templates/event-meta-event-single.php:66
1590
  msgid "Tags"
1591
  msgstr ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2017-11-25 22:52+0000\n"
6
  "PO-Revision-Date: 2016-11-27T01:16:43+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
248
 
249
  #: classes/class-eo-widget-categories.php:25
250
  #: includes/event-organiser-cpt.php:94 includes/event-organiser-cpt.php:105
251
+ #: includes/event-organiser-event-functions.php:1563
252
  #: templates/event-meta-event-single.php:62
253
  msgid "Categories"
254
  msgstr ""
370
  msgstr ""
371
 
372
  #: event-organiser-calendar.php:256
373
+ #: includes/event-organiser-event-functions.php:1500
374
  msgid "Loading&#8230;"
375
  msgstr ""
376
 
656
  "maps on your site, %1$splease enter your key%2$s."
657
  msgstr ""
658
 
659
+ #: event-organiser-edit.php:495
660
  msgid "Event dates were not saved."
661
  msgstr ""
662
 
1585
  msgstr ""
1586
 
1587
  #: includes/event-organiser-cpt.php:162
1588
+ #: includes/event-organiser-event-functions.php:1571
1589
  #: templates/event-meta-event-single.php:66
1590
  msgid "Tags"
1591
  msgstr ""
languages/eventorganiser-hr.mo CHANGED
Binary file
languages/eventorganiser-hr.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2017-11-14 21:46+0000\n"
6
  "PO-Revision-Date: 2017-04-14T22:58:58+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
@@ -252,7 +252,7 @@ msgstr "Kategorije događaja"
252
 
253
  #: classes/class-eo-widget-categories.php:25
254
  #: includes/event-organiser-cpt.php:94 includes/event-organiser-cpt.php:105
255
- #: includes/event-organiser-event-functions.php:1553
256
  #: templates/event-meta-event-single.php:62
257
  msgid "Categories"
258
  msgstr "Kategorije"
@@ -374,7 +374,7 @@ msgid "24 hour time"
374
  msgstr "24 satno"
375
 
376
  #: event-organiser-calendar.php:256
377
- #: includes/event-organiser-event-functions.php:1490
378
  msgid "Loading&#8230;"
379
  msgstr "Učitavam...."
380
 
@@ -662,7 +662,7 @@ msgid ""
662
  "maps on your site, %1$splease enter your key%2$s."
663
  msgstr ""
664
 
665
- #: event-organiser-edit.php:492
666
  msgid "Event dates were not saved."
667
  msgstr "Datum događanja nije spremljen."
668
 
@@ -1612,7 +1612,7 @@ msgid "Choose from the most used tags"
1612
  msgstr "Izaberi između najkorištenijih oznaka"
1613
 
1614
  #: includes/event-organiser-cpt.php:162
1615
- #: includes/event-organiser-event-functions.php:1561
1616
  #: templates/event-meta-event-single.php:66
1617
  msgid "Tags"
1618
  msgstr "Oznake"
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2017-11-25 22:52+0000\n"
6
  "PO-Revision-Date: 2017-04-14T22:58:58+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
252
 
253
  #: classes/class-eo-widget-categories.php:25
254
  #: includes/event-organiser-cpt.php:94 includes/event-organiser-cpt.php:105
255
+ #: includes/event-organiser-event-functions.php:1563
256
  #: templates/event-meta-event-single.php:62
257
  msgid "Categories"
258
  msgstr "Kategorije"
374
  msgstr "24 satno"
375
 
376
  #: event-organiser-calendar.php:256
377
+ #: includes/event-organiser-event-functions.php:1500
378
  msgid "Loading&#8230;"
379
  msgstr "Učitavam...."
380
 
662
  "maps on your site, %1$splease enter your key%2$s."
663
  msgstr ""
664
 
665
+ #: event-organiser-edit.php:495
666
  msgid "Event dates were not saved."
667
  msgstr "Datum događanja nije spremljen."
668
 
1612
  msgstr "Izaberi između najkorištenijih oznaka"
1613
 
1614
  #: includes/event-organiser-cpt.php:162
1615
+ #: includes/event-organiser-event-functions.php:1571
1616
  #: templates/event-meta-event-single.php:66
1617
  msgid "Tags"
1618
  msgstr "Oznake"
languages/eventorganiser-hu_HU.mo CHANGED
Binary file
languages/eventorganiser-hu_HU.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2017-11-14 21:46+0000\n"
6
  "PO-Revision-Date: 2017-04-17T13:13:03+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
@@ -248,7 +248,7 @@ msgstr "Esemény kategóriák"
248
 
249
  #: classes/class-eo-widget-categories.php:25
250
  #: includes/event-organiser-cpt.php:94 includes/event-organiser-cpt.php:105
251
- #: includes/event-organiser-event-functions.php:1553
252
  #: templates/event-meta-event-single.php:62
253
  msgid "Categories"
254
  msgstr "Kategóriák"
@@ -370,7 +370,7 @@ msgid "24 hour time"
370
  msgstr "24 órás időformátum"
371
 
372
  #: event-organiser-calendar.php:256
373
- #: includes/event-organiser-event-functions.php:1490
374
  msgid "Loading&#8230;"
375
  msgstr "Betöltés&#8230;"
376
 
@@ -657,7 +657,7 @@ msgid ""
657
  "maps on your site, %1$splease enter your key%2$s."
658
  msgstr ""
659
 
660
- #: event-organiser-edit.php:492
661
  msgid "Event dates were not saved."
662
  msgstr "Esemény dátumok nem lettek elmentve."
663
 
@@ -1608,7 +1608,7 @@ msgid "Choose from the most used tags"
1608
  msgstr "Választás a leggyakrabban előforduló címkék közül"
1609
 
1610
  #: includes/event-organiser-cpt.php:162
1611
- #: includes/event-organiser-event-functions.php:1561
1612
  #: templates/event-meta-event-single.php:66
1613
  msgid "Tags"
1614
  msgstr "Címkék"
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2017-11-25 22:52+0000\n"
6
  "PO-Revision-Date: 2017-04-17T13:13:03+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
248
 
249
  #: classes/class-eo-widget-categories.php:25
250
  #: includes/event-organiser-cpt.php:94 includes/event-organiser-cpt.php:105
251
+ #: includes/event-organiser-event-functions.php:1563
252
  #: templates/event-meta-event-single.php:62
253
  msgid "Categories"
254
  msgstr "Kategóriák"
370
  msgstr "24 órás időformátum"
371
 
372
  #: event-organiser-calendar.php:256
373
+ #: includes/event-organiser-event-functions.php:1500
374
  msgid "Loading&#8230;"
375
  msgstr "Betöltés&#8230;"
376
 
657
  "maps on your site, %1$splease enter your key%2$s."
658
  msgstr ""
659
 
660
+ #: event-organiser-edit.php:495
661
  msgid "Event dates were not saved."
662
  msgstr "Esemény dátumok nem lettek elmentve."
663
 
1608
  msgstr "Választás a leggyakrabban előforduló címkék közül"
1609
 
1610
  #: includes/event-organiser-cpt.php:162
1611
+ #: includes/event-organiser-event-functions.php:1571
1612
  #: templates/event-meta-event-single.php:66
1613
  msgid "Tags"
1614
  msgstr "Címkék"
languages/eventorganiser-id_ID.mo CHANGED
Binary file
languages/eventorganiser-id_ID.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2017-11-14 21:46+0000\n"
6
  "PO-Revision-Date: 2017-08-19T03:46:46+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
@@ -248,7 +248,7 @@ msgstr ""
248
 
249
  #: classes/class-eo-widget-categories.php:25
250
  #: includes/event-organiser-cpt.php:94 includes/event-organiser-cpt.php:105
251
- #: includes/event-organiser-event-functions.php:1553
252
  #: templates/event-meta-event-single.php:62
253
  msgid "Categories"
254
  msgstr ""
@@ -370,7 +370,7 @@ msgid "24 hour time"
370
  msgstr ""
371
 
372
  #: event-organiser-calendar.php:256
373
- #: includes/event-organiser-event-functions.php:1490
374
  msgid "Loading&#8230;"
375
  msgstr ""
376
 
@@ -656,7 +656,7 @@ msgid ""
656
  "maps on your site, %1$splease enter your key%2$s."
657
  msgstr ""
658
 
659
- #: event-organiser-edit.php:492
660
  msgid "Event dates were not saved."
661
  msgstr ""
662
 
@@ -1584,7 +1584,7 @@ msgid "Choose from the most used tags"
1584
  msgstr "Pilih kata-kata kunci yang sering digunakan"
1585
 
1586
  #: includes/event-organiser-cpt.php:162
1587
- #: includes/event-organiser-event-functions.php:1561
1588
  #: templates/event-meta-event-single.php:66
1589
  msgid "Tags"
1590
  msgstr ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2017-11-25 22:52+0000\n"
6
  "PO-Revision-Date: 2017-08-19T03:46:46+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
248
 
249
  #: classes/class-eo-widget-categories.php:25
250
  #: includes/event-organiser-cpt.php:94 includes/event-organiser-cpt.php:105
251
+ #: includes/event-organiser-event-functions.php:1563
252
  #: templates/event-meta-event-single.php:62
253
  msgid "Categories"
254
  msgstr ""
370
  msgstr ""
371
 
372
  #: event-organiser-calendar.php:256
373
+ #: includes/event-organiser-event-functions.php:1500
374
  msgid "Loading&#8230;"
375
  msgstr ""
376
 
656
  "maps on your site, %1$splease enter your key%2$s."
657
  msgstr ""
658
 
659
+ #: event-organiser-edit.php:495
660
  msgid "Event dates were not saved."
661
  msgstr ""
662
 
1584
  msgstr "Pilih kata-kata kunci yang sering digunakan"
1585
 
1586
  #: includes/event-organiser-cpt.php:162
1587
+ #: includes/event-organiser-event-functions.php:1571
1588
  #: templates/event-meta-event-single.php:66
1589
  msgid "Tags"
1590
  msgstr ""
languages/eventorganiser-is_IS.mo CHANGED
Binary file
languages/eventorganiser-is_IS.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2017-11-14 21:46+0000\n"
6
  "PO-Revision-Date: 2016-12-06T20:43:36+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
@@ -258,7 +258,7 @@ msgstr "Flokkar viðburða"
258
 
259
  #: classes/class-eo-widget-categories.php:25
260
  #: includes/event-organiser-cpt.php:94 includes/event-organiser-cpt.php:105
261
- #: includes/event-organiser-event-functions.php:1553
262
  #: templates/event-meta-event-single.php:62
263
  msgid "Categories"
264
  msgstr "Flokkar"
@@ -383,7 +383,7 @@ msgid "24 hour time"
383
  msgstr "24 tíma klukka"
384
 
385
  #: event-organiser-calendar.php:256
386
- #: includes/event-organiser-event-functions.php:1490
387
  msgid "Loading&#8230;"
388
  msgstr "Hleður inn..."
389
 
@@ -674,7 +674,7 @@ msgid ""
674
  "maps on your site, %1$splease enter your key%2$s."
675
  msgstr ""
676
 
677
- #: event-organiser-edit.php:492
678
  msgid "Event dates were not saved."
679
  msgstr "Dagsetningar viðburðar ekki vistaðar."
680
 
@@ -1645,7 +1645,7 @@ msgid "Choose from the most used tags"
1645
  msgstr "Veljið úr vinsælustu tögunum"
1646
 
1647
  #: includes/event-organiser-cpt.php:162
1648
- #: includes/event-organiser-event-functions.php:1561
1649
  #: templates/event-meta-event-single.php:66
1650
  msgid "Tags"
1651
  msgstr "Tög"
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2017-11-25 22:52+0000\n"
6
  "PO-Revision-Date: 2016-12-06T20:43:36+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
258
 
259
  #: classes/class-eo-widget-categories.php:25
260
  #: includes/event-organiser-cpt.php:94 includes/event-organiser-cpt.php:105
261
+ #: includes/event-organiser-event-functions.php:1563
262
  #: templates/event-meta-event-single.php:62
263
  msgid "Categories"
264
  msgstr "Flokkar"
383
  msgstr "24 tíma klukka"
384
 
385
  #: event-organiser-calendar.php:256
386
+ #: includes/event-organiser-event-functions.php:1500
387
  msgid "Loading&#8230;"
388
  msgstr "Hleður inn..."
389
 
674
  "maps on your site, %1$splease enter your key%2$s."
675
  msgstr ""
676
 
677
+ #: event-organiser-edit.php:495
678
  msgid "Event dates were not saved."
679
  msgstr "Dagsetningar viðburðar ekki vistaðar."
680
 
1645
  msgstr "Veljið úr vinsælustu tögunum"
1646
 
1647
  #: includes/event-organiser-cpt.php:162
1648
+ #: includes/event-organiser-event-functions.php:1571
1649
  #: templates/event-meta-event-single.php:66
1650
  msgid "Tags"
1651
  msgstr "Tög"
languages/eventorganiser-it_IT.mo CHANGED
Binary file
languages/eventorganiser-it_IT.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2017-11-14 21:46+0000\n"
6
  "PO-Revision-Date: 2017-08-23T05:39:57+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
@@ -254,7 +254,7 @@ msgstr "Categorie degli eventi"
254
 
255
  #: classes/class-eo-widget-categories.php:25
256
  #: includes/event-organiser-cpt.php:94 includes/event-organiser-cpt.php:105
257
- #: includes/event-organiser-event-functions.php:1553
258
  #: templates/event-meta-event-single.php:62
259
  msgid "Categories"
260
  msgstr "Categorie"
@@ -378,7 +378,7 @@ msgid "24 hour time"
378
  msgstr "24 ore"
379
 
380
  #: event-organiser-calendar.php:256
381
- #: includes/event-organiser-event-functions.php:1490
382
  msgid "Loading&#8230;"
383
  msgstr "Caricamento&#8230;"
384
 
@@ -692,7 +692,7 @@ msgstr ""
692
  "Google Maps ora richiede la registrazione di una API key. Se si desidera "
693
  "usare le mappe nel sito, %1$sinserire la propria chiave%2$s."
694
 
695
- #: event-organiser-edit.php:492
696
  msgid "Event dates were not saved."
697
  msgstr "Le date dell'evento non sono state salvate"
698
 
@@ -1696,7 +1696,7 @@ msgid "Choose from the most used tags"
1696
  msgstr "Scegli fra i tag pi&ugrave; utilizzati"
1697
 
1698
  #: includes/event-organiser-cpt.php:162
1699
- #: includes/event-organiser-event-functions.php:1561
1700
  #: templates/event-meta-event-single.php:66
1701
  msgid "Tags"
1702
  msgstr "Tag"
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2017-11-25 22:52+0000\n"
6
  "PO-Revision-Date: 2017-08-23T05:39:57+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
254
 
255
  #: classes/class-eo-widget-categories.php:25
256
  #: includes/event-organiser-cpt.php:94 includes/event-organiser-cpt.php:105
257
+ #: includes/event-organiser-event-functions.php:1563
258
  #: templates/event-meta-event-single.php:62
259
  msgid "Categories"
260
  msgstr "Categorie"
378
  msgstr "24 ore"
379
 
380
  #: event-organiser-calendar.php:256
381
+ #: includes/event-organiser-event-functions.php:1500
382
  msgid "Loading&#8230;"
383
  msgstr "Caricamento&#8230;"
384
 
692
  "Google Maps ora richiede la registrazione di una API key. Se si desidera "
693
  "usare le mappe nel sito, %1$sinserire la propria chiave%2$s."
694
 
695
+ #: event-organiser-edit.php:495
696
  msgid "Event dates were not saved."
697
  msgstr "Le date dell'evento non sono state salvate"
698
 
1696
  msgstr "Scegli fra i tag pi&ugrave; utilizzati"
1697
 
1698
  #: includes/event-organiser-cpt.php:162
1699
+ #: includes/event-organiser-event-functions.php:1571
1700
  #: templates/event-meta-event-single.php:66
1701
  msgid "Tags"
1702
  msgstr "Tag"
languages/eventorganiser-ja.mo CHANGED
Binary file
languages/eventorganiser-ja.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2017-11-14 21:46+0000\n"
6
  "PO-Revision-Date: 2017-05-02T14:20:11+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
@@ -252,7 +252,7 @@ msgstr "イベントカテゴリ"
252
 
253
  #: classes/class-eo-widget-categories.php:25
254
  #: includes/event-organiser-cpt.php:94 includes/event-organiser-cpt.php:105
255
- #: includes/event-organiser-event-functions.php:1553
256
  #: templates/event-meta-event-single.php:62
257
  msgid "Categories"
258
  msgstr "カテゴリ"
@@ -374,7 +374,7 @@ msgid "24 hour time"
374
  msgstr "24時間表示"
375
 
376
  #: event-organiser-calendar.php:256
377
- #: includes/event-organiser-event-functions.php:1490
378
  msgid "Loading&#8230;"
379
  msgstr "読み込み中..."
380
 
@@ -673,7 +673,7 @@ msgstr ""
673
  "Googleマップの使用にはAPIキーの登録が必要です。あなたのサイト%1$sでGoogleマッ"
674
  "プを使用する場合は、 %2$s キーを入力してください。"
675
 
676
- #: event-organiser-edit.php:492
677
  msgid "Event dates were not saved."
678
  msgstr "イベント日程は保存されませんでした。"
679
 
@@ -1648,7 +1648,7 @@ msgid "Choose from the most used tags"
1648
  msgstr "よく使うタグから選ぶ"
1649
 
1650
  #: includes/event-organiser-cpt.php:162
1651
- #: includes/event-organiser-event-functions.php:1561
1652
  #: templates/event-meta-event-single.php:66
1653
  msgid "Tags"
1654
  msgstr "タグ"
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2017-11-25 22:52+0000\n"
6
  "PO-Revision-Date: 2017-05-02T14:20:11+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
252
 
253
  #: classes/class-eo-widget-categories.php:25
254
  #: includes/event-organiser-cpt.php:94 includes/event-organiser-cpt.php:105
255
+ #: includes/event-organiser-event-functions.php:1563
256
  #: templates/event-meta-event-single.php:62
257
  msgid "Categories"
258
  msgstr "カテゴリ"
374
  msgstr "24時間表示"
375
 
376
  #: event-organiser-calendar.php:256
377
+ #: includes/event-organiser-event-functions.php:1500
378
  msgid "Loading&#8230;"
379
  msgstr "読み込み中..."
380
 
673
  "Googleマップの使用にはAPIキーの登録が必要です。あなたのサイト%1$sでGoogleマッ"
674
  "プを使用する場合は、 %2$s キーを入力してください。"
675
 
676
+ #: event-organiser-edit.php:495
677
  msgid "Event dates were not saved."
678
  msgstr "イベント日程は保存されませんでした。"
679
 
1648
  msgstr "よく使うタグから選ぶ"
1649
 
1650
  #: includes/event-organiser-cpt.php:162
1651
+ #: includes/event-organiser-event-functions.php:1571
1652
  #: templates/event-meta-event-single.php:66
1653
  msgid "Tags"
1654
  msgstr "タグ"
languages/eventorganiser-lt_LT.mo CHANGED
Binary file
languages/eventorganiser-lt_LT.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2017-11-14 21:46+0000\n"
6
  "PO-Revision-Date: 2016-11-27T01:16:11+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
@@ -256,7 +256,7 @@ msgstr "Renginių kategorijos"
256
 
257
  #: classes/class-eo-widget-categories.php:25
258
  #: includes/event-organiser-cpt.php:94 includes/event-organiser-cpt.php:105
259
- #: includes/event-organiser-event-functions.php:1553
260
  #: templates/event-meta-event-single.php:62
261
  msgid "Categories"
262
  msgstr "Kategorijos"
@@ -380,7 +380,7 @@ msgid "24 hour time"
380
  msgstr "24 valandų laikas"
381
 
382
  #: event-organiser-calendar.php:256
383
- #: includes/event-organiser-event-functions.php:1490
384
  msgid "Loading&#8230;"
385
  msgstr "Loading&#8230"
386
 
@@ -668,7 +668,7 @@ msgid ""
668
  "maps on your site, %1$splease enter your key%2$s."
669
  msgstr ""
670
 
671
- #: event-organiser-edit.php:492
672
  msgid "Event dates were not saved."
673
  msgstr "Renginio datos nebuvo išsaugotos"
674
 
@@ -1639,7 +1639,7 @@ msgid "Choose from the most used tags"
1639
  msgstr "Pasirinkti iš labiausiai naudojamų žymų"
1640
 
1641
  #: includes/event-organiser-cpt.php:162
1642
- #: includes/event-organiser-event-functions.php:1561
1643
  #: templates/event-meta-event-single.php:66
1644
  msgid "Tags"
1645
  msgstr "Žymos"
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2017-11-25 22:52+0000\n"
6
  "PO-Revision-Date: 2016-11-27T01:16:11+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
256
 
257
  #: classes/class-eo-widget-categories.php:25
258
  #: includes/event-organiser-cpt.php:94 includes/event-organiser-cpt.php:105
259
+ #: includes/event-organiser-event-functions.php:1563
260
  #: templates/event-meta-event-single.php:62
261
  msgid "Categories"
262
  msgstr "Kategorijos"
380
  msgstr "24 valandų laikas"
381
 
382
  #: event-organiser-calendar.php:256
383
+ #: includes/event-organiser-event-functions.php:1500
384
  msgid "Loading&#8230;"
385
  msgstr "Loading&#8230"
386
 
668
  "maps on your site, %1$splease enter your key%2$s."
669
  msgstr ""
670
 
671
+ #: event-organiser-edit.php:495
672
  msgid "Event dates were not saved."
673
  msgstr "Renginio datos nebuvo išsaugotos"
674
 
1639
  msgstr "Pasirinkti iš labiausiai naudojamų žymų"
1640
 
1641
  #: includes/event-organiser-cpt.php:162
1642
+ #: includes/event-organiser-event-functions.php:1571
1643
  #: templates/event-meta-event-single.php:66
1644
  msgid "Tags"
1645
  msgstr "Žymos"
languages/eventorganiser-lv.mo CHANGED
Binary file
languages/eventorganiser-lv.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2017-11-14 21:46+0000\n"
6
  "PO-Revision-Date: 2017-04-16T23:21:46+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
@@ -249,7 +249,7 @@ msgstr "Pasākumu Kategorijas"
249
 
250
  #: classes/class-eo-widget-categories.php:25
251
  #: includes/event-organiser-cpt.php:94 includes/event-organiser-cpt.php:105
252
- #: includes/event-organiser-event-functions.php:1553
253
  #: templates/event-meta-event-single.php:62
254
  msgid "Categories"
255
  msgstr "Kategorijas"
@@ -371,7 +371,7 @@ msgid "24 hour time"
371
  msgstr "24h laiks"
372
 
373
  #: event-organiser-calendar.php:256
374
- #: includes/event-organiser-event-functions.php:1490
375
  msgid "Loading&#8230;"
376
  msgstr "Ielāde&#8230;"
377
 
@@ -659,7 +659,7 @@ msgid ""
659
  "maps on your site, %1$splease enter your key%2$s."
660
  msgstr ""
661
 
662
- #: event-organiser-edit.php:492
663
  msgid "Event dates were not saved."
664
  msgstr ""
665
 
@@ -1587,7 +1587,7 @@ msgid "Choose from the most used tags"
1587
  msgstr "Izvēlies no biežāk lietotajiem tagiem"
1588
 
1589
  #: includes/event-organiser-cpt.php:162
1590
- #: includes/event-organiser-event-functions.php:1561
1591
  #: templates/event-meta-event-single.php:66
1592
  msgid "Tags"
1593
  msgstr "Tagi"
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2017-11-25 22:52+0000\n"
6
  "PO-Revision-Date: 2017-04-16T23:21:46+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
249
 
250
  #: classes/class-eo-widget-categories.php:25
251
  #: includes/event-organiser-cpt.php:94 includes/event-organiser-cpt.php:105
252
+ #: includes/event-organiser-event-functions.php:1563
253
  #: templates/event-meta-event-single.php:62
254
  msgid "Categories"
255
  msgstr "Kategorijas"
371
  msgstr "24h laiks"
372
 
373
  #: event-organiser-calendar.php:256
374
+ #: includes/event-organiser-event-functions.php:1500
375
  msgid "Loading&#8230;"
376
  msgstr "Ielāde&#8230;"
377
 
659
  "maps on your site, %1$splease enter your key%2$s."
660
  msgstr ""
661
 
662
+ #: event-organiser-edit.php:495
663
  msgid "Event dates were not saved."
664
  msgstr ""
665
 
1587
  msgstr "Izvēlies no biežāk lietotajiem tagiem"
1588
 
1589
  #: includes/event-organiser-cpt.php:162
1590
+ #: includes/event-organiser-event-functions.php:1571
1591
  #: templates/event-meta-event-single.php:66
1592
  msgid "Tags"
1593
  msgstr "Tagi"
languages/eventorganiser-mk_MK.mo CHANGED
Binary file
languages/eventorganiser-mk_MK.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2017-11-14 21:46+0000\n"
6
  "PO-Revision-Date: 2016-11-27T01:16:03+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
@@ -248,7 +248,7 @@ msgstr ""
248
 
249
  #: classes/class-eo-widget-categories.php:25
250
  #: includes/event-organiser-cpt.php:94 includes/event-organiser-cpt.php:105
251
- #: includes/event-organiser-event-functions.php:1553
252
  #: templates/event-meta-event-single.php:62
253
  msgid "Categories"
254
  msgstr "Категории"
@@ -370,7 +370,7 @@ msgid "24 hour time"
370
  msgstr "24 часа"
371
 
372
  #: event-organiser-calendar.php:256
373
- #: includes/event-organiser-event-functions.php:1490
374
  msgid "Loading&#8230;"
375
  msgstr "Вчитување&#8230;"
376
 
@@ -657,7 +657,7 @@ msgid ""
657
  "maps on your site, %1$splease enter your key%2$s."
658
  msgstr ""
659
 
660
- #: event-organiser-edit.php:492
661
  msgid "Event dates were not saved."
662
  msgstr ""
663
 
@@ -1586,7 +1586,7 @@ msgid "Choose from the most used tags"
1586
  msgstr ""
1587
 
1588
  #: includes/event-organiser-cpt.php:162
1589
- #: includes/event-organiser-event-functions.php:1561
1590
  #: templates/event-meta-event-single.php:66
1591
  msgid "Tags"
1592
  msgstr ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2017-11-25 22:52+0000\n"
6
  "PO-Revision-Date: 2016-11-27T01:16:03+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
248
 
249
  #: classes/class-eo-widget-categories.php:25
250
  #: includes/event-organiser-cpt.php:94 includes/event-organiser-cpt.php:105
251
+ #: includes/event-organiser-event-functions.php:1563
252
  #: templates/event-meta-event-single.php:62
253
  msgid "Categories"
254
  msgstr "Категории"
370
  msgstr "24 часа"
371
 
372
  #: event-organiser-calendar.php:256
373
+ #: includes/event-organiser-event-functions.php:1500
374
  msgid "Loading&#8230;"
375
  msgstr "Вчитување&#8230;"
376
 
657
  "maps on your site, %1$splease enter your key%2$s."
658
  msgstr ""
659
 
660
+ #: event-organiser-edit.php:495
661
  msgid "Event dates were not saved."
662
  msgstr ""
663
 
1586
  msgstr ""
1587
 
1588
  #: includes/event-organiser-cpt.php:162
1589
+ #: includes/event-organiser-event-functions.php:1571
1590
  #: templates/event-meta-event-single.php:66
1591
  msgid "Tags"
1592
  msgstr ""
languages/eventorganiser-nb_NO.mo CHANGED
Binary file
languages/eventorganiser-nb_NO.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2017-11-14 21:46+0000\n"
6
  "PO-Revision-Date: 2016-11-27T01:16:00+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
@@ -248,7 +248,7 @@ msgstr "Arrangementkategorier"
248
 
249
  #: classes/class-eo-widget-categories.php:25
250
  #: includes/event-organiser-cpt.php:94 includes/event-organiser-cpt.php:105
251
- #: includes/event-organiser-event-functions.php:1553
252
  #: templates/event-meta-event-single.php:62
253
  msgid "Categories"
254
  msgstr "Kategorier"
@@ -370,7 +370,7 @@ msgid "24 hour time"
370
  msgstr ""
371
 
372
  #: event-organiser-calendar.php:256
373
- #: includes/event-organiser-event-functions.php:1490
374
  msgid "Loading&#8230;"
375
  msgstr "Laster&#8230;"
376
 
@@ -656,7 +656,7 @@ msgid ""
656
  "maps on your site, %1$splease enter your key%2$s."
657
  msgstr ""
658
 
659
- #: event-organiser-edit.php:492
660
  msgid "Event dates were not saved."
661
  msgstr ""
662
 
@@ -1600,7 +1600,7 @@ msgid "Choose from the most used tags"
1600
  msgstr "Velg blant de mest brukte stikkordene"
1601
 
1602
  #: includes/event-organiser-cpt.php:162
1603
- #: includes/event-organiser-event-functions.php:1561
1604
  #: templates/event-meta-event-single.php:66
1605
  msgid "Tags"
1606
  msgstr "Stikkord"
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2017-11-25 22:52+0000\n"
6
  "PO-Revision-Date: 2016-11-27T01:16:00+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
248
 
249
  #: classes/class-eo-widget-categories.php:25
250
  #: includes/event-organiser-cpt.php:94 includes/event-organiser-cpt.php:105
251
+ #: includes/event-organiser-event-functions.php:1563
252
  #: templates/event-meta-event-single.php:62
253
  msgid "Categories"
254
  msgstr "Kategorier"
370
  msgstr ""
371
 
372
  #: event-organiser-calendar.php:256
373
+ #: includes/event-organiser-event-functions.php:1500
374
  msgid "Loading&#8230;"
375
  msgstr "Laster&#8230;"
376
 
656
  "maps on your site, %1$splease enter your key%2$s."
657
  msgstr ""
658
 
659
+ #: event-organiser-edit.php:495
660
  msgid "Event dates were not saved."
661
  msgstr ""
662
 
1600
  msgstr "Velg blant de mest brukte stikkordene"
1601
 
1602
  #: includes/event-organiser-cpt.php:162
1603
+ #: includes/event-organiser-event-functions.php:1571
1604
  #: templates/event-meta-event-single.php:66
1605
  msgid "Tags"
1606
  msgstr "Stikkord"
languages/eventorganiser-nl_NL.mo CHANGED
Binary file
languages/eventorganiser-nl_NL.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2017-11-14 21:46+0000\n"
6
  "PO-Revision-Date: 2017-11-03T23:42:56+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
@@ -252,7 +252,7 @@ msgstr "Evenementencategorieën"
252
 
253
  #: classes/class-eo-widget-categories.php:25
254
  #: includes/event-organiser-cpt.php:94 includes/event-organiser-cpt.php:105
255
- #: includes/event-organiser-event-functions.php:1553
256
  #: templates/event-meta-event-single.php:62
257
  msgid "Categories"
258
  msgstr "Categorie&#235;n"
@@ -376,7 +376,7 @@ msgid "24 hour time"
376
  msgstr "24-uurs tijd"
377
 
378
  #: event-organiser-calendar.php:256
379
- #: includes/event-organiser-event-functions.php:1490
380
  msgid "Loading&#8230;"
381
  msgstr "Laden&#8230;"
382
 
@@ -670,7 +670,7 @@ msgstr ""
670
  "Google Maps vereist dat je een API-sleutel aanvraagt. Als je Google Maps wil "
671
  "gebruiken op je site, %1$sgeef je sleutel in a.u.b.%2$s."
672
 
673
- #: event-organiser-edit.php:492
674
  msgid "Event dates were not saved."
675
  msgstr "Gegevens zijn niet opgeslagen"
676
 
@@ -1654,7 +1654,7 @@ msgid "Choose from the most used tags"
1654
  msgstr "Kies uit de meest gebruikte zoekwoorden"
1655
 
1656
  #: includes/event-organiser-cpt.php:162
1657
- #: includes/event-organiser-event-functions.php:1561
1658
  #: templates/event-meta-event-single.php:66
1659
  msgid "Tags"
1660
  msgstr "Zoekwoorden"
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2017-11-25 22:52+0000\n"
6
  "PO-Revision-Date: 2017-11-03T23:42:56+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
252
 
253
  #: classes/class-eo-widget-categories.php:25
254
  #: includes/event-organiser-cpt.php:94 includes/event-organiser-cpt.php:105
255
+ #: includes/event-organiser-event-functions.php:1563
256
  #: templates/event-meta-event-single.php:62
257
  msgid "Categories"
258
  msgstr "Categorie&#235;n"
376
  msgstr "24-uurs tijd"
377
 
378
  #: event-organiser-calendar.php:256
379
+ #: includes/event-organiser-event-functions.php:1500
380
  msgid "Loading&#8230;"
381
  msgstr "Laden&#8230;"
382
 
670
  "Google Maps vereist dat je een API-sleutel aanvraagt. Als je Google Maps wil "
671
  "gebruiken op je site, %1$sgeef je sleutel in a.u.b.%2$s."
672
 
673
+ #: event-organiser-edit.php:495
674
  msgid "Event dates were not saved."
675
  msgstr "Gegevens zijn niet opgeslagen"
676
 
1654
  msgstr "Kies uit de meest gebruikte zoekwoorden"
1655
 
1656
  #: includes/event-organiser-cpt.php:162
1657
+ #: includes/event-organiser-event-functions.php:1571
1658
  #: templates/event-meta-event-single.php:66
1659
  msgid "Tags"
1660
  msgstr "Zoekwoorden"
languages/eventorganiser-nn_NO.mo CHANGED
Binary file
languages/eventorganiser-nn_NO.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2017-11-14 21:46+0000\n"
6
  "PO-Revision-Date: 2017-04-19T20:43:50+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
@@ -249,7 +249,7 @@ msgstr "Arrangementkategorier"
249
 
250
  #: classes/class-eo-widget-categories.php:25
251
  #: includes/event-organiser-cpt.php:94 includes/event-organiser-cpt.php:105
252
- #: includes/event-organiser-event-functions.php:1553
253
  #: templates/event-meta-event-single.php:62
254
  msgid "Categories"
255
  msgstr "Kategorier"
@@ -372,7 +372,7 @@ msgid "24 hour time"
372
  msgstr ""
373
 
374
  #: event-organiser-calendar.php:256
375
- #: includes/event-organiser-event-functions.php:1490
376
  msgid "Loading&#8230;"
377
  msgstr "Laster&#8230;"
378
 
@@ -659,7 +659,7 @@ msgid ""
659
  "maps on your site, %1$splease enter your key%2$s."
660
  msgstr ""
661
 
662
- #: event-organiser-edit.php:492
663
  msgid "Event dates were not saved."
664
  msgstr ""
665
 
@@ -1610,7 +1610,7 @@ msgid "Choose from the most used tags"
1610
  msgstr "Velg blant de mest brukte stikkordene"
1611
 
1612
  #: includes/event-organiser-cpt.php:162
1613
- #: includes/event-organiser-event-functions.php:1561
1614
  #: templates/event-meta-event-single.php:66
1615
  msgid "Tags"
1616
  msgstr "Stikkord"
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2017-11-25 22:52+0000\n"
6
  "PO-Revision-Date: 2017-04-19T20:43:50+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
249
 
250
  #: classes/class-eo-widget-categories.php:25
251
  #: includes/event-organiser-cpt.php:94 includes/event-organiser-cpt.php:105
252
+ #: includes/event-organiser-event-functions.php:1563
253
  #: templates/event-meta-event-single.php:62
254
  msgid "Categories"
255
  msgstr "Kategorier"
372
  msgstr ""
373
 
374
  #: event-organiser-calendar.php:256
375
+ #: includes/event-organiser-event-functions.php:1500
376
  msgid "Loading&#8230;"
377
  msgstr "Laster&#8230;"
378
 
659
  "maps on your site, %1$splease enter your key%2$s."
660
  msgstr ""
661
 
662
+ #: event-organiser-edit.php:495
663
  msgid "Event dates were not saved."
664
  msgstr ""
665
 
1610
  msgstr "Velg blant de mest brukte stikkordene"
1611
 
1612
  #: includes/event-organiser-cpt.php:162
1613
+ #: includes/event-organiser-event-functions.php:1571
1614
  #: templates/event-meta-event-single.php:66
1615
  msgid "Tags"
1616
  msgstr "Stikkord"
languages/eventorganiser-pl_PL.mo CHANGED
Binary file
languages/eventorganiser-pl_PL.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2017-11-14 21:46+0000\n"
6
  "PO-Revision-Date: 2016-11-27T01:15:47+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
@@ -251,7 +251,7 @@ msgstr "Kategorie wydarzeń"
251
 
252
  #: classes/class-eo-widget-categories.php:25
253
  #: includes/event-organiser-cpt.php:94 includes/event-organiser-cpt.php:105
254
- #: includes/event-organiser-event-functions.php:1553
255
  #: templates/event-meta-event-single.php:62
256
  msgid "Categories"
257
  msgstr "Kategorie"
@@ -373,7 +373,7 @@ msgid "24 hour time"
373
  msgstr "Czas 24 godzinny"
374
 
375
  #: event-organiser-calendar.php:256
376
- #: includes/event-organiser-event-functions.php:1490
377
  msgid "Loading&#8230;"
378
  msgstr "Ładuję&#8230;"
379
 
@@ -659,7 +659,7 @@ msgid ""
659
  "maps on your site, %1$splease enter your key%2$s."
660
  msgstr ""
661
 
662
- #: event-organiser-edit.php:492
663
  msgid "Event dates were not saved."
664
  msgstr "Daty wydarzeń nie zostały zapisane."
665
 
@@ -1608,7 +1608,7 @@ msgid "Choose from the most used tags"
1608
  msgstr "Wybierz spośród najpopularniejszych tagów"
1609
 
1610
  #: includes/event-organiser-cpt.php:162
1611
- #: includes/event-organiser-event-functions.php:1561
1612
  #: templates/event-meta-event-single.php:66
1613
  msgid "Tags"
1614
  msgstr "Tagi"
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2017-11-25 22:52+0000\n"
6
  "PO-Revision-Date: 2016-11-27T01:15:47+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
251
 
252
  #: classes/class-eo-widget-categories.php:25
253
  #: includes/event-organiser-cpt.php:94 includes/event-organiser-cpt.php:105
254
+ #: includes/event-organiser-event-functions.php:1563
255
  #: templates/event-meta-event-single.php:62
256
  msgid "Categories"
257
  msgstr "Kategorie"
373
  msgstr "Czas 24 godzinny"
374
 
375
  #: event-organiser-calendar.php:256
376
+ #: includes/event-organiser-event-functions.php:1500
377
  msgid "Loading&#8230;"
378
  msgstr "Ładuję&#8230;"
379
 
659
  "maps on your site, %1$splease enter your key%2$s."
660
  msgstr ""
661
 
662
+ #: event-organiser-edit.php:495
663
  msgid "Event dates were not saved."
664
  msgstr "Daty wydarzeń nie zostały zapisane."
665
 
1608
  msgstr "Wybierz spośród najpopularniejszych tagów"
1609
 
1610
  #: includes/event-organiser-cpt.php:162
1611
+ #: includes/event-organiser-event-functions.php:1571
1612
  #: templates/event-meta-event-single.php:66
1613
  msgid "Tags"
1614
  msgstr "Tagi"
languages/eventorganiser-pt_BR.mo CHANGED
Binary file
languages/eventorganiser-pt_BR.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2017-11-14 21:46+0000\n"
6
  "PO-Revision-Date: 2017-05-20T02:33:43+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
@@ -252,7 +252,7 @@ msgstr "Categorias do Evento"
252
 
253
  #: classes/class-eo-widget-categories.php:25
254
  #: includes/event-organiser-cpt.php:94 includes/event-organiser-cpt.php:105
255
- #: includes/event-organiser-event-functions.php:1553
256
  #: templates/event-meta-event-single.php:62
257
  msgid "Categories"
258
  msgstr "Categorias"
@@ -376,7 +376,7 @@ msgid "24 hour time"
376
  msgstr "Formato 24 horas"
377
 
378
  #: event-organiser-calendar.php:256
379
- #: includes/event-organiser-event-functions.php:1490
380
  msgid "Loading&#8230;"
381
  msgstr "Carregando&#8230;"
382
 
@@ -677,7 +677,7 @@ msgstr ""
677
  "Agora o Google Maps requer que você se cadastre para obter uma chave de API. "
678
  "Se você deseja usar mapas no seu site, %1$spor favor, informe sua chave%2$s."
679
 
680
- #: event-organiser-edit.php:492
681
  msgid "Event dates were not saved."
682
  msgstr "As datas do evento não foram salvas."
683
 
@@ -1660,7 +1660,7 @@ msgid "Choose from the most used tags"
1660
  msgstr "Escolha entre as tags mais usadas"
1661
 
1662
  #: includes/event-organiser-cpt.php:162
1663
- #: includes/event-organiser-event-functions.php:1561
1664
  #: templates/event-meta-event-single.php:66
1665
  msgid "Tags"
1666
  msgstr "Tags"
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2017-11-25 22:52+0000\n"
6
  "PO-Revision-Date: 2017-05-20T02:33:43+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
252
 
253
  #: classes/class-eo-widget-categories.php:25
254
  #: includes/event-organiser-cpt.php:94 includes/event-organiser-cpt.php:105
255
+ #: includes/event-organiser-event-functions.php:1563
256
  #: templates/event-meta-event-single.php:62
257
  msgid "Categories"
258
  msgstr "Categorias"
376
  msgstr "Formato 24 horas"
377
 
378
  #: event-organiser-calendar.php:256
379
+ #: includes/event-organiser-event-functions.php:1500
380
  msgid "Loading&#8230;"
381
  msgstr "Carregando&#8230;"
382
 
677
  "Agora o Google Maps requer que você se cadastre para obter uma chave de API. "
678
  "Se você deseja usar mapas no seu site, %1$spor favor, informe sua chave%2$s."
679
 
680
+ #: event-organiser-edit.php:495
681
  msgid "Event dates were not saved."
682
  msgstr "As datas do evento não foram salvas."
683
 
1660
  msgstr "Escolha entre as tags mais usadas"
1661
 
1662
  #: includes/event-organiser-cpt.php:162
1663
+ #: includes/event-organiser-event-functions.php:1571
1664
  #: templates/event-meta-event-single.php:66
1665
  msgid "Tags"
1666
  msgstr "Tags"
languages/eventorganiser-pt_PT.mo CHANGED
Binary file
languages/eventorganiser-pt_PT.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2017-11-14 21:46+0000\n"
6
  "PO-Revision-Date: 2017-04-16T22:56:42+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
@@ -251,7 +251,7 @@ msgstr "Categorias de eventos"
251
 
252
  #: classes/class-eo-widget-categories.php:25
253
  #: includes/event-organiser-cpt.php:94 includes/event-organiser-cpt.php:105
254
- #: includes/event-organiser-event-functions.php:1553
255
  #: templates/event-meta-event-single.php:62
256
  msgid "Categories"
257
  msgstr "Categorias"
@@ -373,7 +373,7 @@ msgid "24 hour time"
373
  msgstr "24 horas tempo"
374
 
375
  #: event-organiser-calendar.php:256
376
- #: includes/event-organiser-event-functions.php:1490
377
  msgid "Loading&#8230;"
378
  msgstr "carregando"
379
 
@@ -661,7 +661,7 @@ msgid ""
661
  "maps on your site, %1$splease enter your key%2$s."
662
  msgstr ""
663
 
664
- #: event-organiser-edit.php:492
665
  msgid "Event dates were not saved."
666
  msgstr "Datas de eventos que não foram guardadas"
667
 
@@ -1614,7 +1614,7 @@ msgid "Choose from the most used tags"
1614
  msgstr "Escolher entre as tags mais utilizadas"
1615
 
1616
  #: includes/event-organiser-cpt.php:162
1617
- #: includes/event-organiser-event-functions.php:1561
1618
  #: templates/event-meta-event-single.php:66
1619
  msgid "Tags"
1620
  msgstr "Tags"
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2017-11-25 22:52+0000\n"
6
  "PO-Revision-Date: 2017-04-16T22:56:42+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
251
 
252
  #: classes/class-eo-widget-categories.php:25
253
  #: includes/event-organiser-cpt.php:94 includes/event-organiser-cpt.php:105
254
+ #: includes/event-organiser-event-functions.php:1563
255
  #: templates/event-meta-event-single.php:62
256
  msgid "Categories"
257
  msgstr "Categorias"
373
  msgstr "24 horas tempo"
374
 
375
  #: event-organiser-calendar.php:256
376
+ #: includes/event-organiser-event-functions.php:1500
377
  msgid "Loading&#8230;"
378
  msgstr "carregando"
379
 
661
  "maps on your site, %1$splease enter your key%2$s."
662
  msgstr ""
663
 
664
+ #: event-organiser-edit.php:495
665
  msgid "Event dates were not saved."
666
  msgstr "Datas de eventos que não foram guardadas"
667
 
1614
  msgstr "Escolher entre as tags mais utilizadas"
1615
 
1616
  #: includes/event-organiser-cpt.php:162
1617
+ #: includes/event-organiser-event-functions.php:1571
1618
  #: templates/event-meta-event-single.php:66
1619
  msgid "Tags"
1620
  msgstr "Tags"
languages/eventorganiser-ro_RO.mo CHANGED
Binary file
languages/eventorganiser-ro_RO.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2017-11-14 21:46+0000\n"
6
  "PO-Revision-Date: 2016-11-27T01:15:34+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
@@ -250,7 +250,7 @@ msgstr ""
250
 
251
  #: classes/class-eo-widget-categories.php:25
252
  #: includes/event-organiser-cpt.php:94 includes/event-organiser-cpt.php:105
253
- #: includes/event-organiser-event-functions.php:1553
254
  #: templates/event-meta-event-single.php:62
255
  msgid "Categories"
256
  msgstr ""
@@ -372,7 +372,7 @@ msgid "24 hour time"
372
  msgstr ""
373
 
374
  #: event-organiser-calendar.php:256
375
- #: includes/event-organiser-event-functions.php:1490
376
  msgid "Loading&#8230;"
377
  msgstr ""
378
 
@@ -661,7 +661,7 @@ msgid ""
661
  "maps on your site, %1$splease enter your key%2$s."
662
  msgstr ""
663
 
664
- #: event-organiser-edit.php:492
665
  msgid "Event dates were not saved."
666
  msgstr ""
667
 
@@ -1589,7 +1589,7 @@ msgid "Choose from the most used tags"
1589
  msgstr ""
1590
 
1591
  #: includes/event-organiser-cpt.php:162
1592
- #: includes/event-organiser-event-functions.php:1561
1593
  #: templates/event-meta-event-single.php:66
1594
  msgid "Tags"
1595
  msgstr ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2017-11-25 22:52+0000\n"
6
  "PO-Revision-Date: 2016-11-27T01:15:34+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
250
 
251
  #: classes/class-eo-widget-categories.php:25
252
  #: includes/event-organiser-cpt.php:94 includes/event-organiser-cpt.php:105
253
+ #: includes/event-organiser-event-functions.php:1563
254
  #: templates/event-meta-event-single.php:62
255
  msgid "Categories"
256
  msgstr ""
372
  msgstr ""
373
 
374
  #: event-organiser-calendar.php:256
375
+ #: includes/event-organiser-event-functions.php:1500
376
  msgid "Loading&#8230;"
377
  msgstr ""
378
 
661
  "maps on your site, %1$splease enter your key%2$s."
662
  msgstr ""
663
 
664
+ #: event-organiser-edit.php:495
665
  msgid "Event dates were not saved."
666
  msgstr ""
667
 
1589
  msgstr ""
1590
 
1591
  #: includes/event-organiser-cpt.php:162
1592
+ #: includes/event-organiser-event-functions.php:1571
1593
  #: templates/event-meta-event-single.php:66
1594
  msgid "Tags"
1595
  msgstr ""
languages/eventorganiser-ru_RU.mo CHANGED
Binary file
languages/eventorganiser-ru_RU.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2017-11-14 21:46+0000\n"
6
  "PO-Revision-Date: 2017-04-16T23:29:26+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
@@ -254,7 +254,7 @@ msgstr "Категории событий"
254
 
255
  #: classes/class-eo-widget-categories.php:25
256
  #: includes/event-organiser-cpt.php:94 includes/event-organiser-cpt.php:105
257
- #: includes/event-organiser-event-functions.php:1553
258
  #: templates/event-meta-event-single.php:62
259
  msgid "Categories"
260
  msgstr "Категории"
@@ -378,7 +378,7 @@ msgid "24 hour time"
378
  msgstr "24 часа"
379
 
380
  #: event-organiser-calendar.php:256
381
- #: includes/event-organiser-event-functions.php:1490
382
  msgid "Loading&#8230;"
383
  msgstr "Загрузка&#8230;"
384
 
@@ -667,7 +667,7 @@ msgid ""
667
  "maps on your site, %1$splease enter your key%2$s."
668
  msgstr ""
669
 
670
- #: event-organiser-edit.php:492
671
  msgid "Event dates were not saved."
672
  msgstr "Даты события не сохранены"
673
 
@@ -1628,7 +1628,7 @@ msgid "Choose from the most used tags"
1628
  msgstr "Выбрать из наиболее используемых ярлыков"
1629
 
1630
  #: includes/event-organiser-cpt.php:162
1631
- #: includes/event-organiser-event-functions.php:1561
1632
  #: templates/event-meta-event-single.php:66
1633
  msgid "Tags"
1634
  msgstr "Ярлыки"
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2017-11-25 22:52+0000\n"
6
  "PO-Revision-Date: 2017-04-16T23:29:26+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
254
 
255
  #: classes/class-eo-widget-categories.php:25
256
  #: includes/event-organiser-cpt.php:94 includes/event-organiser-cpt.php:105
257
+ #: includes/event-organiser-event-functions.php:1563
258
  #: templates/event-meta-event-single.php:62
259
  msgid "Categories"
260
  msgstr "Категории"
378
  msgstr "24 часа"
379
 
380
  #: event-organiser-calendar.php:256
381
+ #: includes/event-organiser-event-functions.php:1500
382
  msgid "Loading&#8230;"
383
  msgstr "Загрузка&#8230;"
384
 
667
  "maps on your site, %1$splease enter your key%2$s."
668
  msgstr ""
669
 
670
+ #: event-organiser-edit.php:495
671
  msgid "Event dates were not saved."
672
  msgstr "Даты события не сохранены"
673
 
1628
  msgstr "Выбрать из наиболее используемых ярлыков"
1629
 
1630
  #: includes/event-organiser-cpt.php:162
1631
+ #: includes/event-organiser-event-functions.php:1571
1632
  #: templates/event-meta-event-single.php:66
1633
  msgid "Tags"
1634
  msgstr "Ярлыки"
languages/eventorganiser-sk_SK.mo CHANGED
Binary file
languages/eventorganiser-sk_SK.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2017-11-14 21:46+0000\n"
6
  "PO-Revision-Date: 2016-11-27T01:15:26+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
@@ -249,7 +249,7 @@ msgstr ""
249
 
250
  #: classes/class-eo-widget-categories.php:25
251
  #: includes/event-organiser-cpt.php:94 includes/event-organiser-cpt.php:105
252
- #: includes/event-organiser-event-functions.php:1553
253
  #: templates/event-meta-event-single.php:62
254
  msgid "Categories"
255
  msgstr ""
@@ -371,7 +371,7 @@ msgid "24 hour time"
371
  msgstr ""
372
 
373
  #: event-organiser-calendar.php:256
374
- #: includes/event-organiser-event-functions.php:1490
375
  msgid "Loading&#8230;"
376
  msgstr ""
377
 
@@ -659,7 +659,7 @@ msgid ""
659
  "maps on your site, %1$splease enter your key%2$s."
660
  msgstr ""
661
 
662
- #: event-organiser-edit.php:492
663
  msgid "Event dates were not saved."
664
  msgstr ""
665
 
@@ -1589,7 +1589,7 @@ msgid "Choose from the most used tags"
1589
  msgstr ""
1590
 
1591
  #: includes/event-organiser-cpt.php:162
1592
- #: includes/event-organiser-event-functions.php:1561
1593
  #: templates/event-meta-event-single.php:66
1594
  msgid "Tags"
1595
  msgstr ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2017-11-25 22:52+0000\n"
6
  "PO-Revision-Date: 2016-11-27T01:15:26+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
249
 
250
  #: classes/class-eo-widget-categories.php:25
251
  #: includes/event-organiser-cpt.php:94 includes/event-organiser-cpt.php:105
252
+ #: includes/event-organiser-event-functions.php:1563
253
  #: templates/event-meta-event-single.php:62
254
  msgid "Categories"
255
  msgstr ""
371
  msgstr ""
372
 
373
  #: event-organiser-calendar.php:256
374
+ #: includes/event-organiser-event-functions.php:1500
375
  msgid "Loading&#8230;"
376
  msgstr ""
377
 
659
  "maps on your site, %1$splease enter your key%2$s."
660
  msgstr ""
661
 
662
+ #: event-organiser-edit.php:495
663
  msgid "Event dates were not saved."
664
  msgstr ""
665
 
1589
  msgstr ""
1590
 
1591
  #: includes/event-organiser-cpt.php:162
1592
+ #: includes/event-organiser-event-functions.php:1571
1593
  #: templates/event-meta-event-single.php:66
1594
  msgid "Tags"
1595
  msgstr ""
languages/eventorganiser-sl_SI.mo CHANGED
Binary file
languages/eventorganiser-sl_SI.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2017-11-14 21:46+0000\n"
6
  "PO-Revision-Date: 2017-06-24T09:29:56+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
@@ -249,7 +249,7 @@ msgstr ""
249
 
250
  #: classes/class-eo-widget-categories.php:25
251
  #: includes/event-organiser-cpt.php:94 includes/event-organiser-cpt.php:105
252
- #: includes/event-organiser-event-functions.php:1553
253
  #: templates/event-meta-event-single.php:62
254
  msgid "Categories"
255
  msgstr "Kategorije"
@@ -371,7 +371,7 @@ msgid "24 hour time"
371
  msgstr ""
372
 
373
  #: event-organiser-calendar.php:256
374
- #: includes/event-organiser-event-functions.php:1490
375
  msgid "Loading&#8230;"
376
  msgstr "Nalaganje..."
377
 
@@ -657,7 +657,7 @@ msgid ""
657
  "maps on your site, %1$splease enter your key%2$s."
658
  msgstr ""
659
 
660
- #: event-organiser-edit.php:492
661
  msgid "Event dates were not saved."
662
  msgstr "Datumi dogodka niso bili shranjeni."
663
 
@@ -1586,7 +1586,7 @@ msgid "Choose from the most used tags"
1586
  msgstr "Izberi izmed najbolj uporabljenih oznak"
1587
 
1588
  #: includes/event-organiser-cpt.php:162
1589
- #: includes/event-organiser-event-functions.php:1561
1590
  #: templates/event-meta-event-single.php:66
1591
  msgid "Tags"
1592
  msgstr "Oznake"
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2017-11-25 22:52+0000\n"
6
  "PO-Revision-Date: 2017-06-24T09:29:56+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
249
 
250
  #: classes/class-eo-widget-categories.php:25
251
  #: includes/event-organiser-cpt.php:94 includes/event-organiser-cpt.php:105
252
+ #: includes/event-organiser-event-functions.php:1563
253
  #: templates/event-meta-event-single.php:62
254
  msgid "Categories"
255
  msgstr "Kategorije"
371
  msgstr ""
372
 
373
  #: event-organiser-calendar.php:256
374
+ #: includes/event-organiser-event-functions.php:1500
375
  msgid "Loading&#8230;"
376
  msgstr "Nalaganje..."
377
 
657
  "maps on your site, %1$splease enter your key%2$s."
658
  msgstr ""
659
 
660
+ #: event-organiser-edit.php:495
661
  msgid "Event dates were not saved."
662
  msgstr "Datumi dogodka niso bili shranjeni."
663
 
1586
  msgstr "Izberi izmed najbolj uporabljenih oznak"
1587
 
1588
  #: includes/event-organiser-cpt.php:162
1589
+ #: includes/event-organiser-event-functions.php:1571
1590
  #: templates/event-meta-event-single.php:66
1591
  msgid "Tags"
1592
  msgstr "Oznake"
languages/eventorganiser-sv_SE.mo CHANGED
Binary file
languages/eventorganiser-sv_SE.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2017-11-14 21:46+0000\n"
6
  "PO-Revision-Date: 2017-07-05T19:32:07+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
@@ -251,7 +251,7 @@ msgstr "Evenemangskategorier"
251
 
252
  #: classes/class-eo-widget-categories.php:25
253
  #: includes/event-organiser-cpt.php:94 includes/event-organiser-cpt.php:105
254
- #: includes/event-organiser-event-functions.php:1553
255
  #: templates/event-meta-event-single.php:62
256
  msgid "Categories"
257
  msgstr "Kategorier"
@@ -375,7 +375,7 @@ msgid "24 hour time"
375
  msgstr "24-timmars tid"
376
 
377
  #: event-organiser-calendar.php:256
378
- #: includes/event-organiser-event-functions.php:1490
379
  msgid "Loading&#8230;"
380
  msgstr "Laddar&#8230;"
381
 
@@ -673,7 +673,7 @@ msgstr ""
673
  "Google Maps kräver nu att då måste registrera dig för en API-nyckel. Om du "
674
  "önskar använda kartor på din sida, %1$sskriv in din nyckel%2$s."
675
 
676
- #: event-organiser-edit.php:492
677
  msgid "Event dates were not saved."
678
  msgstr "Evenemangsdatum sparades inte."
679
 
@@ -1653,7 +1653,7 @@ msgid "Choose from the most used tags"
1653
  msgstr "Välj bland de vanligaste etiketterna"
1654
 
1655
  #: includes/event-organiser-cpt.php:162
1656
- #: includes/event-organiser-event-functions.php:1561
1657
  #: templates/event-meta-event-single.php:66
1658
  msgid "Tags"
1659
  msgstr "Etiketter"
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2017-11-25 22:52+0000\n"
6
  "PO-Revision-Date: 2017-07-05T19:32:07+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
251
 
252
  #: classes/class-eo-widget-categories.php:25
253
  #: includes/event-organiser-cpt.php:94 includes/event-organiser-cpt.php:105
254
+ #: includes/event-organiser-event-functions.php:1563
255
  #: templates/event-meta-event-single.php:62
256
  msgid "Categories"
257
  msgstr "Kategorier"
375
  msgstr "24-timmars tid"
376
 
377
  #: event-organiser-calendar.php:256
378
+ #: includes/event-organiser-event-functions.php:1500
379
  msgid "Loading&#8230;"
380
  msgstr "Laddar&#8230;"
381
 
673
  "Google Maps kräver nu att då måste registrera dig för en API-nyckel. Om du "
674
  "önskar använda kartor på din sida, %1$sskriv in din nyckel%2$s."
675
 
676
+ #: event-organiser-edit.php:495
677
  msgid "Event dates were not saved."
678
  msgstr "Evenemangsdatum sparades inte."
679
 
1653
  msgstr "Välj bland de vanligaste etiketterna"
1654
 
1655
  #: includes/event-organiser-cpt.php:162
1656
+ #: includes/event-organiser-event-functions.php:1571
1657
  #: templates/event-meta-event-single.php:66
1658
  msgid "Tags"
1659
  msgstr "Etiketter"
languages/eventorganiser-th.mo CHANGED
Binary file
languages/eventorganiser-th.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2017-11-14 21:46+0000\n"
6
  "PO-Revision-Date: 2016-11-27T01:15:15+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
@@ -248,7 +248,7 @@ msgstr "หมวดหมู่กิจกรรม"
248
 
249
  #: classes/class-eo-widget-categories.php:25
250
  #: includes/event-organiser-cpt.php:94 includes/event-organiser-cpt.php:105
251
- #: includes/event-organiser-event-functions.php:1553
252
  #: templates/event-meta-event-single.php:62
253
  msgid "Categories"
254
  msgstr "หมวดหมู่"
@@ -370,7 +370,7 @@ msgid "24 hour time"
370
  msgstr "เวลา 24 ชั่วโมง"
371
 
372
  #: event-organiser-calendar.php:256
373
- #: includes/event-organiser-event-functions.php:1490
374
  msgid "Loading&#8230;"
375
  msgstr "กำลังโหลด..."
376
 
@@ -656,7 +656,7 @@ msgid ""
656
  "maps on your site, %1$splease enter your key%2$s."
657
  msgstr ""
658
 
659
- #: event-organiser-edit.php:492
660
  msgid "Event dates were not saved."
661
  msgstr "เวลาสำหรับกิจกรรมไม่ถูกบันทึก"
662
 
@@ -1584,7 +1584,7 @@ msgid "Choose from the most used tags"
1584
  msgstr "เลือกจากป้ายกำกับที่ใช้บ่อยที่สุด"
1585
 
1586
  #: includes/event-organiser-cpt.php:162
1587
- #: includes/event-organiser-event-functions.php:1561
1588
  #: templates/event-meta-event-single.php:66
1589
  msgid "Tags"
1590
  msgstr "ป้ายกำกับ"
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2017-11-25 22:52+0000\n"
6
  "PO-Revision-Date: 2016-11-27T01:15:15+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
248
 
249
  #: classes/class-eo-widget-categories.php:25
250
  #: includes/event-organiser-cpt.php:94 includes/event-organiser-cpt.php:105
251
+ #: includes/event-organiser-event-functions.php:1563
252
  #: templates/event-meta-event-single.php:62
253
  msgid "Categories"
254
  msgstr "หมวดหมู่"
370
  msgstr "เวลา 24 ชั่วโมง"
371
 
372
  #: event-organiser-calendar.php:256
373
+ #: includes/event-organiser-event-functions.php:1500
374
  msgid "Loading&#8230;"
375
  msgstr "กำลังโหลด..."
376
 
656
  "maps on your site, %1$splease enter your key%2$s."
657
  msgstr ""
658
 
659
+ #: event-organiser-edit.php:495
660
  msgid "Event dates were not saved."
661
  msgstr "เวลาสำหรับกิจกรรมไม่ถูกบันทึก"
662
 
1584
  msgstr "เลือกจากป้ายกำกับที่ใช้บ่อยที่สุด"
1585
 
1586
  #: includes/event-organiser-cpt.php:162
1587
+ #: includes/event-organiser-event-functions.php:1571
1588
  #: templates/event-meta-event-single.php:66
1589
  msgid "Tags"
1590
  msgstr "ป้ายกำกับ"
languages/eventorganiser-uk.mo CHANGED
Binary file
languages/eventorganiser-uk.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2017-11-14 21:46+0000\n"
6
  "PO-Revision-Date: 2016-11-27T01:15:05+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
@@ -254,7 +254,7 @@ msgstr "Категорії подій"
254
 
255
  #: classes/class-eo-widget-categories.php:25
256
  #: includes/event-organiser-cpt.php:94 includes/event-organiser-cpt.php:105
257
- #: includes/event-organiser-event-functions.php:1553
258
  #: templates/event-meta-event-single.php:62
259
  msgid "Categories"
260
  msgstr "Категорії"
@@ -376,7 +376,7 @@ msgid "24 hour time"
376
  msgstr "Години у форматі 24"
377
 
378
  #: event-organiser-calendar.php:256
379
- #: includes/event-organiser-event-functions.php:1490
380
  msgid "Loading&#8230;"
381
  msgstr "Завантаження&#8230;"
382
 
@@ -664,7 +664,7 @@ msgid ""
664
  "maps on your site, %1$splease enter your key%2$s."
665
  msgstr ""
666
 
667
- #: event-organiser-edit.php:492
668
  msgid "Event dates were not saved."
669
  msgstr "Дати подій не було збережено"
670
 
@@ -1618,7 +1618,7 @@ msgid "Choose from the most used tags"
1618
  msgstr "Оберіть теґи серед найбільш популярних"
1619
 
1620
  #: includes/event-organiser-cpt.php:162
1621
- #: includes/event-organiser-event-functions.php:1561
1622
  #: templates/event-meta-event-single.php:66
1623
  msgid "Tags"
1624
  msgstr "Теґи"
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2017-11-25 22:52+0000\n"
6
  "PO-Revision-Date: 2016-11-27T01:15:05+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
254
 
255
  #: classes/class-eo-widget-categories.php:25
256
  #: includes/event-organiser-cpt.php:94 includes/event-organiser-cpt.php:105
257
+ #: includes/event-organiser-event-functions.php:1563
258
  #: templates/event-meta-event-single.php:62
259
  msgid "Categories"
260
  msgstr "Категорії"
376
  msgstr "Години у форматі 24"
377
 
378
  #: event-organiser-calendar.php:256
379
+ #: includes/event-organiser-event-functions.php:1500
380
  msgid "Loading&#8230;"
381
  msgstr "Завантаження&#8230;"
382
 
664
  "maps on your site, %1$splease enter your key%2$s."
665
  msgstr ""
666
 
667
+ #: event-organiser-edit.php:495
668
  msgid "Event dates were not saved."
669
  msgstr "Дати подій не було збережено"
670
 
1618
  msgstr "Оберіть теґи серед найбільш популярних"
1619
 
1620
  #: includes/event-organiser-cpt.php:162
1621
+ #: includes/event-organiser-event-functions.php:1571
1622
  #: templates/event-meta-event-single.php:66
1623
  msgid "Tags"
1624
  msgstr "Теґи"
languages/eventorganiser-zh_CN.mo CHANGED
Binary file
languages/eventorganiser-zh_CN.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2017-11-14 21:46+0000\n"
6
  "PO-Revision-Date: 2016-11-27T01:15:02+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
@@ -248,7 +248,7 @@ msgstr "活动分类"
248
 
249
  #: classes/class-eo-widget-categories.php:25
250
  #: includes/event-organiser-cpt.php:94 includes/event-organiser-cpt.php:105
251
- #: includes/event-organiser-event-functions.php:1553
252
  #: templates/event-meta-event-single.php:62
253
  msgid "Categories"
254
  msgstr "分类"
@@ -370,7 +370,7 @@ msgid "24 hour time"
370
  msgstr "24小时"
371
 
372
  #: event-organiser-calendar.php:256
373
- #: includes/event-organiser-event-functions.php:1490
374
  msgid "Loading&#8230;"
375
  msgstr "加载中..."
376
 
@@ -657,7 +657,7 @@ msgid ""
657
  "maps on your site, %1$splease enter your key%2$s."
658
  msgstr ""
659
 
660
- #: event-organiser-edit.php:492
661
  msgid "Event dates were not saved."
662
  msgstr "活动日期没有被保存"
663
 
@@ -1585,7 +1585,7 @@ msgid "Choose from the most used tags"
1585
  msgstr "从最常用的标签中选择"
1586
 
1587
  #: includes/event-organiser-cpt.php:162
1588
- #: includes/event-organiser-event-functions.php:1561
1589
  #: templates/event-meta-event-single.php:66
1590
  msgid "Tags"
1591
  msgstr "标签"
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2017-11-25 22:52+0000\n"
6
  "PO-Revision-Date: 2016-11-27T01:15:02+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
248
 
249
  #: classes/class-eo-widget-categories.php:25
250
  #: includes/event-organiser-cpt.php:94 includes/event-organiser-cpt.php:105
251
+ #: includes/event-organiser-event-functions.php:1563
252
  #: templates/event-meta-event-single.php:62
253
  msgid "Categories"
254
  msgstr "分类"
370
  msgstr "24小时"
371
 
372
  #: event-organiser-calendar.php:256
373
+ #: includes/event-organiser-event-functions.php:1500
374
  msgid "Loading&#8230;"
375
  msgstr "加载中..."
376
 
657
  "maps on your site, %1$splease enter your key%2$s."
658
  msgstr ""
659
 
660
+ #: event-organiser-edit.php:495
661
  msgid "Event dates were not saved."
662
  msgstr "活动日期没有被保存"
663
 
1585
  msgstr "从最常用的标签中选择"
1586
 
1587
  #: includes/event-organiser-cpt.php:162
1588
+ #: includes/event-organiser-event-functions.php:1571
1589
  #: templates/event-meta-event-single.php:66
1590
  msgid "Tags"
1591
  msgstr "标签"
languages/eventorganiser-zh_HK.mo CHANGED
Binary file
languages/eventorganiser-zh_HK.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2017-11-14 21:46+0000\n"
6
  "PO-Revision-Date: 2016-11-27T01:14:57+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
@@ -248,7 +248,7 @@ msgstr ""
248
 
249
  #: classes/class-eo-widget-categories.php:25
250
  #: includes/event-organiser-cpt.php:94 includes/event-organiser-cpt.php:105
251
- #: includes/event-organiser-event-functions.php:1553
252
  #: templates/event-meta-event-single.php:62
253
  msgid "Categories"
254
  msgstr ""
@@ -370,7 +370,7 @@ msgid "24 hour time"
370
  msgstr ""
371
 
372
  #: event-organiser-calendar.php:256
373
- #: includes/event-organiser-event-functions.php:1490
374
  msgid "Loading&#8230;"
375
  msgstr ""
376
 
@@ -657,7 +657,7 @@ msgid ""
657
  "maps on your site, %1$splease enter your key%2$s."
658
  msgstr ""
659
 
660
- #: event-organiser-edit.php:492
661
  msgid "Event dates were not saved."
662
  msgstr ""
663
 
@@ -1585,7 +1585,7 @@ msgid "Choose from the most used tags"
1585
  msgstr ""
1586
 
1587
  #: includes/event-organiser-cpt.php:162
1588
- #: includes/event-organiser-event-functions.php:1561
1589
  #: templates/event-meta-event-single.php:66
1590
  msgid "Tags"
1591
  msgstr ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2017-11-25 22:52+0000\n"
6
  "PO-Revision-Date: 2016-11-27T01:14:57+00:00\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
248
 
249
  #: classes/class-eo-widget-categories.php:25
250
  #: includes/event-organiser-cpt.php:94 includes/event-organiser-cpt.php:105
251
+ #: includes/event-organiser-event-functions.php:1563
252
  #: templates/event-meta-event-single.php:62
253
  msgid "Categories"
254
  msgstr ""
370
  msgstr ""
371
 
372
  #: event-organiser-calendar.php:256
373
+ #: includes/event-organiser-event-functions.php:1500
374
  msgid "Loading&#8230;"
375
  msgstr ""
376
 
657
  "maps on your site, %1$splease enter your key%2$s."
658
  msgstr ""
659
 
660
+ #: event-organiser-edit.php:495
661
  msgid "Event dates were not saved."
662
  msgstr ""
663
 
1585
  msgstr ""
1586
 
1587
  #: includes/event-organiser-cpt.php:162
1588
+ #: includes/event-organiser-event-functions.php:1571
1589
  #: templates/event-meta-event-single.php:66
1590
  msgid "Tags"
1591
  msgstr ""
languages/eventorganiser.pot CHANGED
@@ -8,7 +8,7 @@ msgid ""
8
  msgstr ""
9
  "Project-Id-Version: event-organiser\n"
10
  "Report-Msgid-Bugs-To: \n"
11
- "POT-Creation-Date: 2017-11-14 21:46+0000\n"
12
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -253,7 +253,7 @@ msgstr ""
253
 
254
  #: classes/class-eo-widget-categories.php:25
255
  #: includes/event-organiser-cpt.php:94 includes/event-organiser-cpt.php:105
256
- #: includes/event-organiser-event-functions.php:1553
257
  #: templates/event-meta-event-single.php:62
258
  msgid "Categories"
259
  msgstr ""
@@ -375,7 +375,7 @@ msgid "24 hour time"
375
  msgstr ""
376
 
377
  #: event-organiser-calendar.php:256
378
- #: includes/event-organiser-event-functions.php:1490
379
  msgid "Loading&#8230;"
380
  msgstr ""
381
 
@@ -661,7 +661,7 @@ msgid ""
661
  "maps on your site, %1$splease enter your key%2$s."
662
  msgstr ""
663
 
664
- #: event-organiser-edit.php:492
665
  msgid "Event dates were not saved."
666
  msgstr ""
667
 
@@ -1589,7 +1589,7 @@ msgid "Choose from the most used tags"
1589
  msgstr ""
1590
 
1591
  #: includes/event-organiser-cpt.php:162
1592
- #: includes/event-organiser-event-functions.php:1561
1593
  #: templates/event-meta-event-single.php:66
1594
  msgid "Tags"
1595
  msgstr ""
8
  msgstr ""
9
  "Project-Id-Version: event-organiser\n"
10
  "Report-Msgid-Bugs-To: \n"
11
+ "POT-Creation-Date: 2017-11-25 22:52+0000\n"
12
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
253
 
254
  #: classes/class-eo-widget-categories.php:25
255
  #: includes/event-organiser-cpt.php:94 includes/event-organiser-cpt.php:105
256
+ #: includes/event-organiser-event-functions.php:1563
257
  #: templates/event-meta-event-single.php:62
258
  msgid "Categories"
259
  msgstr ""
375
  msgstr ""
376
 
377
  #: event-organiser-calendar.php:256
378
+ #: includes/event-organiser-event-functions.php:1500
379
  msgid "Loading&#8230;"
380
  msgstr ""
381
 
661
  "maps on your site, %1$splease enter your key%2$s."
662
  msgstr ""
663
 
664
+ #: event-organiser-edit.php:495
665
  msgid "Event dates were not saved."
666
  msgstr ""
667
 
1589
  msgstr ""
1590
 
1591
  #: includes/event-organiser-cpt.php:162
1592
+ #: includes/event-organiser-event-functions.php:1571
1593
  #: templates/event-meta-event-single.php:66
1594
  msgid "Tags"
1595
  msgstr ""
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: stephenharris
3
  Donate link: http://www.wp-event-organiser.com/donate
4
  Tags: events, event, event categories, event organizer, events calendar, event management, ical, locations, google map, widget, venues, maps, gigs, shows,
5
  Requires at least: 3.8.0
6
- Tested up to: 4.9.0-beta-4
7
- Stable tag: 3.5.1
8
  License: GPLv3
9
 
10
  Create and maintain events, including complex reoccurring patterns, venue management (with Google maps), calendars and customisable event lists
@@ -222,6 +222,18 @@ More information on shortcodes is [available here](http://wp-event-organiser.com
222
 
223
  == Changelog ==
224
 
 
 
 
 
 
 
 
 
 
 
 
 
225
  = 3.5.1 14th November 2017
226
 
227
  * Fix bug where multiple filters are used in fullcalendar shortcode, seperated by a comma
3
  Donate link: http://www.wp-event-organiser.com/donate
4
  Tags: events, event, event categories, event organizer, events calendar, event management, ical, locations, google map, widget, venues, maps, gigs, shows,
5
  Requires at least: 3.8.0
6
+ Tested up to: 4.9.0
7
+ Stable tag: 3.6.0
8
  License: GPLv3
9
 
10
  Create and maintain events, including complex reoccurring patterns, venue management (with Google maps), calendars and customisable event lists
222
 
223
  == Changelog ==
224
 
225
+ = 3.6.0 25th November 2017
226
+
227
+ * added: Ability to specify multiple event authors (organiser) in the fullcalendar author/author_name attribute
228
+ by using a comma seperate lised e.g: [eo_fullcalendar author="1,2"]
229
+ * bugfix: The "organiser" full calendar filter only displays users included in the author/author_name attribute
230
+ if supplied.
231
+ * bugfix: Occurrences which have changed time still appear in the include/excludes datepicker
232
+ * bugfix: iCal feed will display correct DSTART & DTEND values even when the initial occurrence is excluded from
233
+ the query driving the feed.
234
+ * changed: The admin calendar week/day views display 15-minute intervals. If dragging of occurrences is enabled
235
+ this can be done in 5 minute intervals.
236
+
237
  = 3.5.1 14th November 2017
238
 
239
  * Fix bug where multiple filters are used in fullcalendar shortcode, seperated by a comma
templates/ical.php CHANGED
@@ -32,11 +32,11 @@ if ( have_posts() ) :
32
  continue;
33
  }
34
 
35
- $start = eo_get_the_start( DATETIMEOBJ );
36
- $end = eo_get_the_end( DATETIMEOBJ );
 
37
  $created_date = get_post_time( 'Ymd\THis\Z',true );
38
  $modified_date = get_post_modified_time( 'Ymd\THis\Z',true );
39
- $schedule_data = eo_get_event_schedule();
40
 
41
  if ( $timezone ) {
42
  $earliest_date = $earliest_date ? min( eo_get_schedule_start( DATETIMEOBJ ), $earliest_date ) : eo_get_schedule_start( DATETIMEOBJ );
32
  continue;
33
  }
34
 
35
+ $schedule_data = eo_get_event_schedule();
36
+ $start = $schedule_data['start'];
37
+ $end = $schedule_data['end'];
38
  $created_date = get_post_time( 'Ymd\THis\Z',true );
39
  $modified_date = get_post_modified_time( 'Ymd\THis\Z',true );
 
40
 
41
  if ( $timezone ) {
42
  $earliest_date = $earliest_date ? min( eo_get_schedule_start( DATETIMEOBJ ), $earliest_date ) : eo_get_schedule_start( DATETIMEOBJ );