wpDataTables Lite - Version 2.0.15

Version Description

  • A minor update with a couple of small bugfixes:
  • BugFix: Plugin is now compatible with jQuery 3.x. BugFix: Fix PHP notices
  • Compatibility with WordPress 5.3 approved.
Download this release

Release Info

Developer wpDataTables
Plugin Icon 128x128 wpDataTables Lite
Version 2.0.15
Comparing to
See all releases

Code changes from version 2.0.14 to 2.0.15

assets/css/admin/addons.css CHANGED
@@ -13,7 +13,72 @@
13
}
14
15
.wdt-addons-find-out-more {
16
- padding: 10px 15px;
17
- position: absolute;
18
bottom: 0;
19
}
13
}
14
15
.wdt-addons-find-out-more {
16
+ padding: 0 15px;
17
bottom: 0;
18
+ }
19
+
20
+ .wdt-addons .wdt-checkout-button {
21
+ float: right;
22
+ }
23
+
24
+ .wdt-addons .caption {
25
+ float: right;
26
+ min-height: 160px;
27
+ }
28
+ .wdt-addons .ribbon {
29
+ position: absolute;
30
+ right: 10px;
31
+ top: -5px;
32
+ z-index: 1;
33
+ overflow: hidden;
34
+ width: 75px;
35
+ height: 75px;
36
+ text-align: right;
37
+ }
38
+
39
+ .wdt-addons .ribbon span {
40
+ font-size: 10px;
41
+ font-weight: 700;
42
+ color: #fff;
43
+ text-transform: uppercase;
44
+ text-align: center;
45
+ line-height: 20px;
46
+ transform: rotate(45deg);
47
+ -webkit-transform: rotate(45deg);
48
+ width: 100px;
49
+ display: block;
50
+ background: #79a70a;
51
+ background: linear-gradient(#2196F3 0, #2196F3 100%);
52
+ box-shadow: 0 3px 10px -5px rgba(0, 0, 0, 1);
53
+ position: absolute;
54
+ top: 19px;
55
+ right: -21px;
56
+ }
57
+
58
+ .wdt-addons .ribbon span::before {
59
+ content: "";
60
+ position: absolute;
61
+ left: 0;
62
+ top: 100%;
63
+ z-index: -1;
64
+ border-left: 3px solid #2196F3;
65
+ border-right: 3px solid transparent;
66
+ border-bottom: 3px solid transparent;
67
+ border-top: 3px solid #2196F3;
68
+ }
69
+
70
+ .wdt-addons .ribbon span::after {
71
+ content: "";
72
+ position: absolute;
73
+ right: 0;
74
+ top: 100%;
75
+ z-index: -1;
76
+ border-left: 3px solid transparent;
77
+ border-right: 3px solid #2196F3;
78
+ border-bottom: 3px solid transparent;
79
+ border-top: 3px solid #2196F3;
80
+ }
81
+
82
+ .wdt-addons p {
83
+ margin-bottom: 0;
84
}
assets/css/admin/admin.css CHANGED
@@ -26,9 +26,9 @@
26
}
27
28
.wdt-rating-button {
29
- font-size: 1rem;
30
line-height: 1.75;
31
- padding: .2rem 1.5rem;
32
border-radius: 28px;
33
box-shadow: 0 2px 6px 0 rgba(122,122,122,.5);
34
text-transform: none;
@@ -50,11 +50,10 @@
50
}
51
52
h1.wdt-rating-heading {
53
- font-size: 23px !important;
54
margin-top: 0 !important;
55
margin-bottom: 0 !important;
56
- font-weight: 400 !important;
57
- padding: 9px 0 4px 0 !important;
58
line-height: 29px !important;
59
color: #23282d !important;
60
}
@@ -84,11 +83,12 @@ a.wdt-other-btn:active
84
line-height: normal;
85
}
86
.wdt-rating-notice .wdt-rating-massage {
87
- font-size: 15px;
88
- margin: 3px 0;
89
}
90
.wdt-icon-rating {
91
- margin-right: 5px;
92
}
93
94
.wdt-dismiss {
26
}
27
28
.wdt-rating-button {
29
+ font-size: .8rem;
30
line-height: 1.75;
31
+ padding: .1rem 1.2rem;
32
border-radius: 28px;
33
box-shadow: 0 2px 6px 0 rgba(122,122,122,.5);
34
text-transform: none;
50
}
51
52
h1.wdt-rating-heading {
53
+ font-size: 20px !important;
54
margin-top: 0 !important;
55
margin-bottom: 0 !important;
56
+ padding: 0 0 4px 0 !important;
57
line-height: 29px !important;
58
color: #23282d !important;
59
}
83
line-height: normal;
84
}
85
.wdt-rating-notice .wdt-rating-massage {
86
+ font-size: 17px;
87
+ margin: 10px 0 0 0;
88
}
89
.wdt-icon-rating {
90
+ margin-right: 10px;
91
+ margin-bottom: 10px;
92
}
93
94
.wdt-dismiss {
assets/css/bootstrap/wpdatatables-bootstrap.css CHANGED
@@ -2223,6 +2223,10 @@
2223
width: 33.33333333%;
2224
}
2225
2226
.wpdt-c .col-sm-3 {
2227
width: 25%;
2228
}
2223
width: 33.33333333%;
2224
}
2225
2226
+ .wpdt-c .wdt-addons .col-sm-3{
2227
+ margin-bottom: 18px;
2228
+ }
2229
+
2230
.wpdt-c .col-sm-3 {
2231
width: 25%;
2232
}
assets/css/wdt.frontend.min.css CHANGED
@@ -1 +1 @@
1
- @font-face{font-weight:400;font-style:normal;font-family:WPDataTablesIcons;src:url(../fonts/wpdatatablesicons-base.eot);src:url(../fonts/wpdatatablesicons-base.eot?#iefix) format('embedded-opentype'),url(../fonts/wpdatatablesicons-base.woff) format('woff'),url(../fonts/wpdatatablesicons-base.ttf) format('truetype'),url(../fonts/wpdatatablesicons-base.svg#wpdatatablesicons-base) format('svg')}.wpDataTables:after,.wpDataTables:before{content:" ";display:table}.wpDataTables:after{clear:both}.wpDataTablesWrapper{margin-bottom:20px}.wpDataTablesWrapper table.wpDataTable{background-color:transparent;border-collapse:collapse;border-spacing:0;clear:both;margin:0 auto;width:100%;table-layout:auto;margin-bottom:10px;overflow:auto}.wpDataTablesWrapper table.wpDataTable>tbody>tr>th,.wpDataTablesWrapper table.wpDataTable>tbody>tr>td{text-align:left}.wpDataTablesWrapper table.wpDataTable>thead>tr>th{-o-transition:.5s;-ms-transition:.5s;-moz-transition:.5s;-webkit-transition:.5s;transition:.5s;font-weight:700;padding:3px 18px 3px 10px;font-weight:700;cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wpDataTablesWrapper table.wpDataTable thead tr:nth-child(2) th{overflow:visible}.wpDataTablesWrapper table.wpDataTable thead th.sorting,.wpDataTablesWrapper table.wpDataTable thead th.sorting_asc,.wpDataTablesWrapper table.wpDataTable thead th.sorting_desc{background-image:none!important}.wpDataTablesWrapper table.wpDataTable td{padding:3px 10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wpDataTablesWrapper table.wpDataTable td.center,.wpDataTablesWrapper table.wpDataTable td.dataTables_empty{text-align:center}.wpDataTablesWrapper table.wpDataTable>tfoot>tr>th{padding:3px 18px 3px 10px;font-weight:700}.wpDataTablesWrapper table.wpDataTable tfoot td{padding-bottom:7px;padding-top:7px;vertical-align:top;white-space:normal;overflow:visible}.wpDataTablesWrapper table.wpDataTable tfoot td input,.wpDataTablesWrapper table.wpDataTable thead th input{display:block;margin:0;width:92%;white-space:nowrap;overflow:hidden!important;text-overflow:ellipsis}.wpDataTablesWrapper table.wpDataTable tfoot td input.date-range-filter,.wpDataTablesWrapper table.wpDataTable tfoot td input.number-range-filter,.wpDataTablesWrapper table.wpDataTable thead th input.number-range-filter,.wpDataTablesWrapper table.wpDataTable thead th input.date-range-filter{display:block;width:100%}.wpDataTablesWrapper table.wpDataTable tfoot td input.date-range-filter:first-child,.wpDataTablesWrapper table.wpDataTable tfoot td input.number-range-filter:first-child,.wpDataTablesWrapper table.wpDataTable thead th input.number-range-filter:first-child,.wpDataTablesWrapper table.wpDataTable thead th input.date-range-filter:first-child{margin-bottom:5px!important}.wpDataTablesWrapper .dataTables_length{float:left}.wpDataTablesWrapper .dataTables_filter{float:right;text-align:right}.wpDataTablesWrapper .dataTables_info{clear:both;float:left}.wpDataTablesWrapper .dataTables_paginate{float:right;text-align:right}.wpDataTablesWrapper .paging_full_numbers{height:22px;line-height:22px}.wpDataTablesWrapper .paging_full_numbers a:active{outline:0}.wpDataTablesWrapper .paging_full_numbers a:hover{text-decoration:none}.wpDataTablesWrapper div.wdtscroll{width:100%;overflow-x:scroll}.wpDataTablesWrapper table.scroll{width:auto!important}.wpDataTablesWrapper .dataTables_info{clear:both;float:left;margin-top:10px;padding:3px 0;font-size:11px}.wpDataTablesWrapper .dataTables_paginate{float:right;text-align:right;margin-top:10px}.wpDataTablesWrapper .dataTables_paginate a{display:inline-block;height:auto;cursor:pointer;padding:2px 7px;vertical-align:middle}.wpDataTablesWrapper .paginate_button:before{font-size:14px;line-height:1em}.wpDataTablesWrapper div.dt-buttons{margin-bottom:20px;margin-left:20px;margin-right:-10px;float:right}.wpDataTablesWrapper a.DTTT_button{height:auto;line-height:18px!important;margin-right:15px;padding:0;font-size:1em;position:relative;float:left;margin-right:3px;padding:5px 8px;cursor:pointer;color:black}.wpDataTablesWrapper .DTTT_button[disabled=disabled]{cursor:default}.wpDataTablesWrapper .DTTT_button:before{font-size:18px;float:none;line-height:18px;margin-right:5px;margin-top:0}.wpDataTablesWrapper .DTTT_button span{vertical-align:middle}.wpDataTablesWrapper .checkbox-filter.btn:before{content:"\e00a"}.wpDataTablesWrapper .DTTT_button.DTTT_button_new:before{content:"\e006"}.wpDataTablesWrapper .DTTT_button.DTTT_button_delete:before{content:"\e00b"}.wpDataTablesWrapper .DTTT_button.DTTT_button_edit:before{content:"\e00c"}.wpDataTablesWrapper .ico-search:before{content:"\e00d"}.wpDataTablesWrapper .ico-cntrl:before{content:"\e00e"}.wpDataTablesWrapper .DTTT_button.DTTT_button_print:before{content:"\e00f"}.wpDataTablesWrapper .DTTT_button.DTTT_button_xls:before{content:"\e010"}.wpDataTablesWrapper .DTTT_button.DTTT_button_pdf:before{content:"\e013"}.wpDataTablesWrapper .DTTT_button.DTTT_button_csv:before{content:"\e014"}.wpDataTablesWrapper .DTTT_button.DTTT_button_copy:before{content:"\e015"}.wpDataTablesWrapper .DTTT_button.DTTT_button_colvis:before{font-family:"dashicons"!important;font-size:24px;content:"\f177"}.wpDataTablesWrapper .DTTT_button.DTTT_button_clear_filters:before{content:"\e817"}button.wdt-clear-filters-button:before,button.wdt-clear-all-filters-button:before{font-family:WPDataTablesIcons;content:"\e817"}.wpDataTablesWrapper .dataTables_length{float:left}.wpDataTablesWrapper .dataTables_length span.filter-option{margin-left:15px}.wpDataTablesWrapper .dataTables_length a{box-shadow:none!important}.wpDataTablesWrapper .dataTables_filter,.wpDataTablesWrapper .dataTables_length{margin-bottom:15px}.wpDataTablesWrapper .dataTables_filter label,.wpDataTablesWrapper .dataTables_length label{font-size:inherit;line-height:inherit;margin-bottom:0}.wpDataTablesWrapper .dataTables_filter input{margin-bottom:0}div.wpDataTablesFilter span.filter_column .date-range-filter:first-child,div.wpDataTablesFilter span.filter_column .date-time-range-filter:first-child,div.wpDataTablesFilter span.filter_column .time-range-filter:first-child,div.wpDataTablesFilter span.filter_column .number-range-filter:first-child{margin-right:8px}.wpDataTablesWrapper .wdtCheckboxModalWrap,.wpDataTablesWrapper .wpDataTablesFilter{overflow:hidden;display:initial}.wpDataTables input[type="search"],.wpDataTables select,.wpDataTables textarea{display:inline-block;margin-bottom:0!important;max-width:100%;padding:3px 6px!important;vertical-align:middle!important;width:206px}.wpDataTables textarea.wpdt-tiny-mce{display:none!important}.wpDataTables .checkbox-filter.btn,.wpDataTables select,.wpDataTables textarea{font-size:inherit!important;line-height:22px!important;padding-bottom:3px!important;padding-top:3px!important;-webkit-box-sizing:border-box!important;-moz-box-sizing:border-box!important;box-sizing:border-box!important;text-transform:inherit}.wpDataTables .checkbox-filter.btn,.wpDataTables input[type=text],.wpDataTables select,.wpdt-c .wpDataTablesWrapper .filter_column button{height:30px!important}.wpDataTables .checkbox-filter.btn{width:100%;white-space:nowrap;overflow:hidden!important;text-overflow:ellipsis;border:1px solid #d7d7d7}.wpDataTablesWrapper .wpDataTableFilterSection{float:left;padding:15px}.wpDataTablesFilter .wpDataTableFilterSection{float:left;margin-bottom:10px;margin-right:15px;min-width:230px;min-height:115px}.wpDataTablesFilter .wpDataTableFilterSection input.form-control{min-height:31px}.wpDataTablesFilter .wpDataTableFilterSection#wdt-clear-filters-button-block{margin-bottom:0;padding-top:35px}span.filter_column.filter_number_range{white-space:normal}.wpDataTablesFilter .number_range_filter:first-child{margin-right:7px}.wdtCheckboxModalWrap{margin-bottom:15px}.wdtCheckboxModalWrap:after,.wdtCheckboxModalWrap:before{content:" ";display:table}.wdtCheckboxModalWrap:after{clear:both}@media(max-width:979px){.wpDataTablesWrapper .dataTables_filter input{width:100px}}@media(max-width:750px){.wpDataTablesWrapper .dataTables_filter input{width:200px}.wpDataTablesWrapper .DTTT_container,.wpDataTablesWrapper .dataTables_filter,.wpDataTablesWrapper .dataTables_length{float:none!important;margin-bottom:10px;text-align:left!important}.wpDataTablesWrapper .DTTT_container{margin-left:0!important}.wpDataTablesWrapper .DTTT_container button{display:none}.wpDataTablesWrapper .DTTT_container button.delete_table_entry,.wpDataTablesWrapper .DTTT_container button.edit_table,.wpDataTablesWrapper .DTTT_container button.new_table_entry{display:inline-block;float:none!important;position:static}}span.media-modal-icon span.screen-reader-text{display:none}.wpDataTablesPopover{position:absolute;width:200px;white-space:normal;line-height:16px;z-index:9}.wpDataTablesPopover:before{position:absolute;left:50%;bottom:-7px;content:'';display:block;margin-left:-7px}.wpDataTablesPopover.editTools{width:auto}.wpDataTablesPopover.editTools a.DTTT_button{color:#ffffff!important}div.dt-button-collection{position:absolute;top:0;left:0;width:auto;min-width:200px;padding:20px;border:solid 1px #ccc;background-color:white;overflow:hidden;z-index:100001;border-radius:5px}.dt-button-collection a.dt-button{background-color:#fdfdfd;border:1px solid;border-color:#ccc;border-color:rgb(204,204,204);color:#333;border-radius:3px!important;-webkit-box-shadow:none!important;-moz-box-shadow:none!important;box-shadow:none!important;font-weight:400;margin:5px 10px 5px 0;align-items:flex-start;text-align:center;cursor:default;padding:2px 6px 3px}div.dt-button-collection button.dt-button,div.dt-button-collection div.dt-button,div.dt-button-collection a.dt-button{position:relative;left:0;right:0;display:block;margin-bottom:4px;margin-right:0}div.dt-button-collection a.dt-button:active:not(.disabled),div.dt-button-collection a.dt-button.active:not(.disabled){background-color:#f5f5f5;border-color:#a1a1a1;-webkit-box-shadow:none!important;-moz-box-shadow:none!important;box-shadow:none!important}@media screen and (max-width:640px){div.dt-buttons{float:none!important;text-align:center}}div.wdtCheckboxModalWrap div.wdt_checkbox_option{width:33%;float:left}div.wdtCheckboxModalWrap div.wdt_checkbox_option{width:33%;float:left;position:relative}div.wdtCheckboxModalWrap>div>div{width:100%}div.wdtCheckboxModalWrap div.wdt_checkbox_option label{white-space:nowrap;width:85%;overflow:hidden;text-overflow:ellipsis;display:inline-block;position:absolute;padding-left:5px}.wdt-sum-cell,.wdt-avg-cell,.wdt-min-cell,.wdt-max-cell{text-align:right!important}.wpdt-c .wdt-edit-dialog-fields-block .btn.dropdown-toggle{text-transform:inherit}.wpdt-c .wdt-edit-dialog-fields-block .fileinput-filename{text-overflow:ellipsis;white-space:nowrap;max-width:200px}.wpdt-c #wdt-frontend-modal #wdt-checkbox-filter-reset:before{font-family:WPDataTablesIcons;content:"\e817";margin-right:5px}.wpdt-c .wpDataTablesWrapper table.has-columns-hidden>tbody>tr.row-detail>td{background-color:transparent}.wpdt-c .wpDataTablesWrapper table.has-columns-hidden>tbody>tr.row-detail>td>ul>li{padding-top:10px}.wpdt-c #wpdatatable-preview-container .wpDataTablesWrapper table.has-columns-hidden>tbody>tr.row-detail>td>ul>li{height:32px}.wpdt-c .wpDataTablesWrapper table{position:relative}.wpdt-c .wpDataTablesWrapper .wdtscroll table{position:static}.wpdt-c .wdt-preload-layer{position:absolute;height:100%;width:100%;background-color:rgba(255,255,255,.7);text-align:center;z-index:100}.wpdt-c .wdt-preload-layer div.preloader{top:50%}.wpdt-c .media-modal .media-frame-title h1{padding:0 16px;font-size:22px;line-height:50px;margin:0}.wpdt-c .media-modal .thumbnail{margin-bottom:initial;background-color:initial;border:initial;line-height:initial;border-radius:initial}.wpdt-c .media-modal h2{position:relative;font-weight:600;text-transform:uppercase;font-size:12px;color:#666;margin:24px 0 8px}.wpdt-c .media-modal input{font-weight:400}.wpdt-c .attachment-filters{min-width:110px}.wpdt-c .responsiveExpander{float:left}.wpdt-c input:focus{background:none!important}.wpdt-c .wpDataTablesWrapper .dataTables_length .bootstrap-select.length_menu{width:80px;padding:0 5px;height:35px}.wpdt-c .wpDataTablesWrapper .dataTables_length .bootstrap-select .dropdown-toggle{height:100%;top:0}.wpdt-c .wpDataTablesWrapper .dataTables_length .bootstrap-select .dropdown-toggle:after{content:''}.wpdt-c .clear{clear:both}.wpdt-c button.checkbox-filter:hover:after,.wpdt-c button.dropdown-toggle:hover:after{width:0}.wpdt-c .modal .modal-header{background:none}.wpdt-c .modal .modal-header button.close{background:none;margin:0;opacity:.5;font-weight:400;color:#000;font-size:19.5px}.wpdt-c .btn-group.bootstrap-select .inner .text{margin-top:inherit;position:inherit;top:inherit;text-align:center;width:inherit}.wpdt-c .modal{width:inherit;margin-left:inherit;background-color:inherit;border:inherit;-webkit-border-radius:inherit;-moz-border-radius:inherit;border-radius:inherit;-webkit-box-shadow:inherit;-moz-box-shadow:inherit;box-shadow:inherit;-webkit-background-clip:inherit;-moz-background-clip:inherit;background-clip:inherit}div.DTTT_container{position:relative;float:right;margin-bottom:1em}button.DTTT_button,div.DTTT_button,a.DTTT_button{position:relative;float:left;margin-right:3px;padding:5px 8px;border:1px solid #999;cursor:pointer;*cursor:hand;font-size:.88em;color:black!important;-webkit-border-radius:2px;-moz-border-radius:2px;-ms-border-radius:2px;-o-border-radius:2px;border-radius:2px;-webkit-box-shadow:1px 1px 3px #ccc;-moz-box-shadow:1px 1px 3px #ccc;-ms-box-shadow:1px 1px 3px #ccc;-o-box-shadow:1px 1px 3px #ccc;box-shadow:1px 1px 3px #ccc;background:#fff;background:-webkit-linear-gradient(top,#ffffff 0%,#f3f3f3 89%,#f9f9f9 100%);background:-moz-linear-gradient(top,#ffffff 0%,#f3f3f3 89%,#f9f9f9 100%);background:-ms-linear-gradient(top,#ffffff 0%,#f3f3f3 89%,#f9f9f9 100%);background:-o-linear-gradient(top,#ffffff 0%,#f3f3f3 89%,#f9f9f9 100%);background:linear-gradient(top,#ffffff 0%,#f3f3f3 89%,#f9f9f9 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff',endColorstr='#f9f9f9',GradientType=0)}button.DTTT_button{height:30px;padding:3px 8px}.DTTT_button embed{outline:none}button.DTTT_button:hover,div.DTTT_button:hover,a.DTTT_button:hover{border:1px solid #666;text-decoration:none!important;-webkit-box-shadow:1px 1px 3px #999;-moz-box-shadow:1px 1px 3px #999;-ms-box-shadow:1px 1px 3px #999;-o-box-shadow:1px 1px 3px #999;box-shadow:1px 1px 3px #999;background:#f3f3f3;background:-webkit-linear-gradient(top,#f3f3f3 0%,#e2e2e2 89%,#f4f4f4 100%);background:-moz-linear-gradient(top,#f3f3f3 0%,#e2e2e2 89%,#f4f4f4 100%);background:-ms-linear-gradient(top,#f3f3f3 0%,#e2e2e2 89%,#f4f4f4 100%);background:-o-linear-gradient(top,#f3f3f3 0%,#e2e2e2 89%,#f4f4f4 100%);background:linear-gradient(top,#f3f3f3 0%,#e2e2e2 89%,#f4f4f4 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#f3f3f3',endColorstr='#f4f4f4',GradientType=0)}button.DTTT_disabled,div.DTTT_disabled,a.DTTT_disabled{color:#999;border:1px solid #d0d0d0;background:#fff;background:-webkit-linear-gradient(top,#ffffff 0%,#f9f9f9 89%,#fafafa 100%);background:-moz-linear-gradient(top,#ffffff 0%,#f9f9f9 89%,#fafafa 100%);background:-ms-linear-gradient(top,#ffffff 0%,#f9f9f9 89%,#fafafa 100%);background:-o-linear-gradient(top,#ffffff 0%,#f9f9f9 89%,#fafafa 100%);background:linear-gradient(top,#ffffff 0%,#f9f9f9 89%,#fafafa 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff',endColorstr='#fafafa',GradientType=0)}button.DTTT_button_collection span{padding-right:17px;background:url(../images/collection.png) no-repeat center right}button.DTTT_button_collection:hover span{padding-right:17px;background:#f0f0f0 url(../images/collection_hover.png) no-repeat center right}table.DTTT_selectable tbody tr{cursor:pointer;*cursor:hand}table.dataTable tr.DTTT_selected.odd{background-color:#9FAFD1}table.dataTable tr.DTTT_selected.odd td.sorting_1{background-color:#9FAFD1}table.dataTable tr.DTTT_selected.odd td.sorting_2{background-color:#9FAFD1}table.dataTable tr.DTTT_selected.odd td.sorting_3{background-color:#9FAFD1}table.dataTable tr.DTTT_selected.even{background-color:#B0BED9}table.dataTable tr.DTTT_selected.even td.sorting_1{background-color:#B0BED9}table.dataTable tr.DTTT_selected.even td.sorting_2{background-color:#B0BED9}table.dataTable tr.DTTT_selected.even td.sorting_3{background-color:#B0BED9}div.DTTT_collection{width:150px;padding:8px 8px 4px 8px;border:1px solid #ccc;border:1px solid rgba(0,0,0,.4);background-color:#f3f3f3;background-color:rgba(255,255,255,.3);overflow:hidden;z-index:2002;-webkit-border-radius:5px;-moz-border-radius:5px;-ms-border-radius:5px;-o-border-radius:5px;border-radius:5px;-webkit-box-shadow:3px 3px 5px rgba(0,0,0,.3);-moz-box-shadow:3px 3px 5px rgba(0,0,0,.3);-ms-box-shadow:3px 3px 5px rgba(0,0,0,.3);-o-box-shadow:3px 3px 5px rgba(0,0,0,.3);box-shadow:3px 3px 5px rgba(0,0,0,.3)}div.DTTT_collection_background{background:transparent url(../images/background.png) repeat top left;z-index:2001}div.DTTT_collection button.DTTT_button,div.DTTT_collection div.DTTT_button,div.DTTT_collection a.DTTT_button{position:relative;left:0;right:0;display:block;float:none;margin-bottom:4px;-webkit-box-shadow:1px 1px 3px #999;-moz-box-shadow:1px 1px 3px #999;-ms-box-shadow:1px 1px 3px #999;-o-box-shadow:1px 1px 3px #999;box-shadow:1px 1px 3px #999}.DTTT_print_info{position:fixed;top:50%;left:50%;width:400px;height:150px;margin-left:-200px;margin-top:-75px;text-align:center;color:#333;padding:10px 30px;background:#fff;background:-webkit-linear-gradient(top,#ffffff 0%,#f3f3f3 89%,#f9f9f9 100%);background:-moz-linear-gradient(top,#ffffff 0%,#f3f3f3 89%,#f9f9f9 100%);background:-ms-linear-gradient(top,#ffffff 0%,#f3f3f3 89%,#f9f9f9 100%);background:-o-linear-gradient(top,#ffffff 0%,#f3f3f3 89%,#f9f9f9 100%);background:linear-gradient(top,#ffffff 0%,#f3f3f3 89%,#f9f9f9 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff',endColorstr='#f9f9f9',GradientType=0);opacity:.95;border:1px solid black;border:1px solid rgba(0,0,0,.5);-webkit-border-radius:6px;-moz-border-radius:6px;-ms-border-radius:6px;-o-border-radius:6px;border-radius:6px;-webkit-box-shadow:0 3px 7px rgba(0,0,0,.5);-moz-box-shadow:0 3px 7px rgba(0,0,0,.5);-ms-box-shadow:0 3px 7px rgba(0,0,0,.5);-o-box-shadow:0 3px 7px rgba(0,0,0,.5);box-shadow:0 3px 7px rgba(0,0,0,.5)}.DTTT_print_info h6{font-weight:400;font-size:28px;line-height:28px;margin:1em}.DTTT_print_info p{font-size:14px;line-height:20px}/Library/WebServer/Documents/lite/wp-content/plugins/wpdatatables/assets/css/datatables.responsive.css
1
+ @font-face{font-weight:400;font-style:normal;font-family:WPDataTablesIcons;src:url(../fonts/wpdatatablesicons-base.eot);src:url(../fonts/wpdatatablesicons-base.eot?#iefix) format('embedded-opentype'),url(../fonts/wpdatatablesicons-base.woff) format('woff'),url(../fonts/wpdatatablesicons-base.ttf) format('truetype'),url(../fonts/wpdatatablesicons-base.svg#wpdatatablesicons-base) format('svg')}.wpDataTables:after,.wpDataTables:before{content:" ";display:table}.wpDataTables:after{clear:both}.wpDataTablesWrapper{margin-bottom:20px}.wpDataTablesWrapper table.wpDataTable{background-color:transparent;border-collapse:collapse;border-spacing:0;clear:both;margin:0 auto;width:100%;table-layout:auto;margin-bottom:10px;overflow:auto}.wpDataTablesWrapper table.wpDataTable>tbody>tr>td>ul{list-style:inherit}.wpDataTablesWrapper table.wpDataTable>tbody>tr>th,.wpDataTablesWrapper table.wpDataTable>tbody>tr>td{text-align:left}.wpDataTablesWrapper table.wpDataTable>thead>tr>th{-o-transition:.5s;-ms-transition:.5s;-moz-transition:.5s;-webkit-transition:.5s;transition:.5s;font-weight:700;padding:3px 18px 3px 10px;font-weight:700;cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wpDataTablesWrapper table.wpDataTable thead tr:nth-child(2) th{overflow:visible}.wpDataTablesWrapper table.wpDataTable thead th.sorting,.wpDataTablesWrapper table.wpDataTable thead th.sorting_asc,.wpDataTablesWrapper table.wpDataTable thead th.sorting_desc{background-image:none!important}.wpDataTablesWrapper table.wpDataTable td{padding:3px 10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wpDataTablesWrapper table.wpDataTable td.center,.wpDataTablesWrapper table.wpDataTable td.dataTables_empty{text-align:center}.wpDataTablesWrapper table.wpDataTable>tfoot>tr>th{padding:3px 18px 3px 10px;font-weight:700}.wpDataTablesWrapper table.wpDataTable tfoot td{padding-bottom:7px;padding-top:7px;vertical-align:top;white-space:normal;overflow:visible}.wpDataTablesWrapper table.wpDataTable tfoot td input,.wpDataTablesWrapper table.wpDataTable thead th input{display:block;margin:0;width:92%;white-space:nowrap;overflow:hidden!important;text-overflow:ellipsis}.wpDataTablesWrapper table.wpDataTable tfoot td input.date-range-filter,.wpDataTablesWrapper table.wpDataTable tfoot td input.number-range-filter,.wpDataTablesWrapper table.wpDataTable thead th input.number-range-filter,.wpDataTablesWrapper table.wpDataTable thead th input.date-range-filter{display:block;width:100%}.wpDataTablesWrapper table.wpDataTable tfoot td input.date-range-filter:first-child,.wpDataTablesWrapper table.wpDataTable tfoot td input.number-range-filter:first-child,.wpDataTablesWrapper table.wpDataTable thead th input.number-range-filter:first-child,.wpDataTablesWrapper table.wpDataTable thead th input.date-range-filter:first-child{margin-bottom:5px!important}.wpDataTablesWrapper .dataTables_length{float:left}.wpDataTablesWrapper .dataTables_filter{float:right;text-align:right}.wpDataTablesWrapper .dataTables_info{clear:both;float:left}.wpDataTablesWrapper .dataTables_paginate{float:right;text-align:right;background-color:transparent}.wpDataTablesWrapper .paging_full_numbers{height:35px;line-height:22px}.wpDataTablesWrapper .paging_full_numbers a:active{outline:0}.wpDataTablesWrapper .paging_full_numbers a:hover{text-decoration:none}.wpDataTablesWrapper div.wdtscroll{width:100%;overflow-x:scroll}.wpDataTablesWrapper table.scroll{width:auto!important}.wpDataTablesWrapper .dataTables_info{clear:both;float:left;margin-top:10px;padding:3px 0;font-size:11px}.wpDataTablesWrapper .dataTables_paginate{float:right;text-align:right;margin-top:5px}.wpDataTablesWrapper .dataTables_paginate a{display:inline-block;height:auto;cursor:pointer;padding:2px 7px;vertical-align:middle}.wpDataTablesWrapper .paginate_button:before{font-size:14px;line-height:1em}.wpDataTablesWrapper div.dt-buttons{margin-bottom:20px;margin-left:20px;margin-right:-10px;float:right}.wpDataTablesWrapper a.DTTT_button{height:auto;line-height:18px!important;margin-right:15px;padding:0;font-size:1em;position:relative;float:left;margin-right:3px;padding:5px 8px;cursor:pointer;color:#000}.wpDataTablesWrapper .DTTT_button[disabled=disabled]{cursor:default}.wpDataTablesWrapper .DTTT_button:before{font-size:18px;float:none;line-height:18px;margin-right:5px;margin-top:0}.wpDataTablesWrapper .DTTT_button span{vertical-align:middle}.wpDataTablesWrapper .wdt-checkbox-filter.btn:before{content:"\e00a"}.wpDataTablesWrapper .DTTT_button.DTTT_button_new:before{content:"\e006"}.wpDataTablesWrapper .DTTT_button.DTTT_button_delete:before{content:"\e00b"}.wpDataTablesWrapper .DTTT_button.DTTT_button_edit:before{content:"\e00c"}.wpDataTablesWrapper .ico-search:before{content:"\e00d"}.wpDataTablesWrapper .ico-cntrl:before{content:"\e00e"}.wpDataTablesWrapper .DTTT_button.DTTT_button_print:before{content:"\e00f"}.wpDataTablesWrapper .DTTT_button.DTTT_button_xls:before{content:"\e010"}.wpDataTablesWrapper .DTTT_button.DTTT_button_pdf:before{content:"\e013"}.wpDataTablesWrapper .DTTT_button.DTTT_button_csv:before{content:"\e014"}.wpDataTablesWrapper .DTTT_button.DTTT_button_copy:before{content:"\e015"}.wpDataTablesWrapper .DTTT_button.DTTT_button_colvis:before{font-family:"dashicons"!important;font-size:24px;content:"\f177"}.wpDataTablesWrapper .DTTT_button.DTTT_button_clear_filters:before{content:"\e817"}button.wdt-clear-filters-button:before,button.wdt-clear-filters-widget-button:before{font-family:WPDataTablesIcons;content:"\e817"}.wpDataTablesWrapper .dataTables_length{float:left}.wpDataTablesWrapper .dataTables_length span.filter-option{margin-left:15px}.wpDataTablesWrapper .dataTables_length a{box-shadow:none!important}.wpDataTablesWrapper .dataTables_filter,.wpDataTablesWrapper .dataTables_length{margin-bottom:15px}.wpDataTablesWrapper .dataTables_filter label,.wpDataTablesWrapper .dataTables_length label{font-size:inherit;line-height:inherit;margin-bottom:0}.wpDataTablesWrapper .dataTables_filter input{margin-bottom:0}div.wpDataTablesFilter span.filter_column .date-range-filter:first-child,div.wpDataTablesFilter span.filter_column .date-time-range-filter:first-child,div.wpDataTablesFilter span.filter_column .time-range-filter:first-child,div.wpDataTablesFilter span.filter_column .number-range-filter:first-child{margin-right:8px}.wpDataTablesWrapper .wdt-checkbox-modal-wrap,.wpDataTablesWrapper .wpDataTablesFilter{overflow:hidden;display:initial}.wpDataTables input[type="search"],.wpDataTables select,.wpDataTables textarea{display:inline-block;margin-bottom:0!important;max-width:100%;padding:3px 6px!important;vertical-align:middle!important;width:206px}.wpDataTables textarea.wpdt-tiny-mce{display:none!important}.wpDataTables .wdt-checkbox-filter.btn,.wpDataTables select,.wpDataTables textarea{font-size:inherit!important;line-height:22px!important;padding-bottom:3px!important;padding-top:3px!important;-webkit-box-sizing:border-box!important;-moz-box-sizing:border-box!important;box-sizing:border-box!important;text-transform:inherit}.wpDataTables .wdt-checkbox-filter.btn,.wpDataTables input[type=text],.wpDataTables select,.wpdt-c .wpDataTablesWrapper .filter_column button{height:30px!important}.wpDataTables .wdt-checkbox-filter.btn{width:100%;white-space:nowrap;overflow:hidden!important;text-overflow:ellipsis;border:1px solid #d7d7d7}.wpDataTablesWrapper .wpDataTableFilterSection{float:left;padding:15px}.wpDataTableFilterBox .wpDataTableFilterSection div:first-child{margin-top:5px}.wpDataTablesFilter .wpDataTableFilterSection:not(#wdt-clear-filters-button-block):not(#wdt-pf-search-filters-button-block){float:left;margin-bottom:10px;margin-right:15px;width:230px;min-height:115px}.sidebar .wpDataTablesFilter .wpDataTableFilterSection:not(#wdt-clear-filters-button-block):not(#wdt-pf-search-filters-button-block){min-height:50px}.wpDataTablesFilter .wpDataTableFilterSection input.form-control{height:30px}.wpDataTablesFilter .wpDataTableFilterSection#wdt-clear-filters-button-block{display:inline-block;margin-bottom:0;padding-top:42px}.wpDataTablesFilter .wpDataTableFilterSection span.filter_column.filter_checkbox .wdt_checkbox_option{width:100%}span.filter_column.wdt-filter-number-range{white-space:normal}.wpDataTablesFilter .number_range_filter:first-child{margin-right:7px}.wdt-checkbox-modal-wrap{margin-bottom:15px}.wdt-checkbox-modal-wrap:after,.wdt-checkbox-modal-wrap:before{content:" ";display:table}.wdt-checkbox-modal-wrap:after{clear:both}@media(max-width:979px){.wpDataTablesWrapper .dataTables_filter input{width:100px}}@media(max-width:750px){.wpDataTablesWrapper .dataTables_filter input{width:200px}.wpDataTablesWrapper .DTTT_container,.wpDataTablesWrapper .dataTables_filter,.wpDataTablesWrapper .dataTables_length{float:none!important;margin-bottom:10px;text-align:left!important}.wpDataTablesWrapper .DTTT_container{margin-left:0!important}.wpDataTablesWrapper .DTTT_container button{display:none}.wpDataTablesWrapper .DTTT_container button.delete_table_entry,.wpDataTablesWrapper .DTTT_container button.edit_table,.wpDataTablesWrapper .DTTT_container button.new_table_entry{display:inline-block;float:none!important;position:static}}span.media-modal-icon span.screen-reader-text{display:none}.wpDataTablesPopover{position:absolute;width:200px;white-space:normal;line-height:16px;z-index:9}.wpDataTablesPopover:before{position:absolute;left:50%;bottom:-7px;content:'';display:block;margin-left:-7px}.wpDataTablesPopover.editTools{width:auto}.wpDataTablesPopover.editTools a.DTTT_button{color:#ffffff!important}div.dt-button-collection{position:absolute;top:0;left:0;width:auto;min-width:200px;padding:20px;border:solid 1px #ccc;background-color:#fff;overflow:hidden;z-index:100001;border-radius:5px}.dt-button-collection a.dt-button{background-color:#fdfdfd;border:1px solid;border-color:#ccc;border-color:rgb(204,204,204);color:#333;border-radius:3px!important;-webkit-box-shadow:none!important;-moz-box-shadow:none!important;box-shadow:none!important;font-weight:400;margin:5px 10px 5px 0;align-items:flex-start;text-align:center;cursor:default;padding:2px 6px 3px}div.dt-button-collection button.dt-button,div.dt-button-collection div.dt-button,div.dt-button-collection a.dt-button{position:relative;left:0;right:0;display:block;margin-bottom:4px;margin-right:0}div.dt-button-collection a.dt-button:active:not(.disabled),div.dt-button-collection a.dt-button.active:not(.disabled){background-color:#f5f5f5;border-color:#a1a1a1;-webkit-box-shadow:none!important;-moz-box-shadow:none!important;box-shadow:none!important}@media screen and (max-width:640px){div.dt-buttons{float:none!important;text-align:center}}div.wdt-checkbox-modal-wrap div.wdt-checkbox-option{width:33%;float:left}div.wdt-checkbox-modal-wrap div.wdt-checkbox-option{width:33%;float:left;position:relative}div.wdt-checkbox-modal-wrap>div>div{width:100%}div.wdt-checkbox-modal-wrap div.wdt-checkbox-option label{white-space:nowrap;width:85%;overflow:hidden;text-overflow:ellipsis;display:inline-block;position:absolute;padding-left:5px}.wdt-sum-cell,.wdt-avg-cell,.wdt-min-cell,.wdt-max-cell{text-align:right!important}.wpdt-c .wdt-edit-dialog-fields-block .btn.dropdown-toggle{text-transform:inherit}.wpdt-c .wdt-edit-dialog-fields-block .fileinput-filename{text-overflow:ellipsis;white-space:nowrap;max-width:200px}.wpdt-c #wdt-frontend-modal #wdt-checkbox-filter-reset:before{font-family:WPDataTablesIcons;content:"\e817";margin-right:5px}.wpdt-c .wpDataTablesWrapper table.has-columns-hidden>tbody>tr.row-detail>td{background-color:transparent}.wpdt-c .wpDataTablesWrapper table.has-columns-hidden>tbody>tr.row-detail>td>ul>li{padding-top:10px}.wpdt-c #wpdatatable-preview-container .wpDataTablesWrapper table.has-columns-hidden>tbody>tr.row-detail>td>ul>li{height:auto}.wpdt-c .wpDataTablesWrapper table{position:relative}.wpdt-c .wpDataTablesWrapper .wdtscroll table{position:static}.wpdt-c .wdt-preload-layer{position:absolute;height:100%;width:100%;background-color:rgba(255,255,255,.7);text-align:center;z-index:100}.wpdt-c .wdt-preload-layer div.preloader{top:50%}.wpdt-c .media-modal .media-frame-title h1{padding:0 16px;font-size:22px;line-height:50px;margin:0}.wpdt-c .media-modal .thumbnail{margin-bottom:initial;background-color:initial;border:initial;line-height:initial;border-radius:initial}.wpdt-c .media-modal h2{position:relative;font-weight:600;text-transform:uppercase;font-size:12px;color:#666;margin:24px 0 8px}.wpdt-c .media-modal input{font-weight:400}.wpdt-c .attachment-filters{min-width:110px}.wpdt-c .responsiveExpander{float:left}.wpdt-c input:focus{background:none!important}.wpdt-c .wpDataTablesWrapper .dataTables_length .bootstrap-select.length_menu{width:80px;padding:0 5px;height:35px}.wpdt-c .wpDataTablesWrapper .dataTables_length .bootstrap-select .dropdown-toggle{height:100%;top:0}.wpdt-c .wpDataTablesWrapper .dataTables_length .bootstrap-select .dropdown-toggle:after{content:''}.wpdt-c .clear{clear:both}.wpdt-c button.wdt-checkbox-filter:hover:after,.wpdt-c button.dropdown-toggle:hover:after{width:0}.wpdt-c .modal .modal-header{background:none}.wpdt-c .modal .modal-header button.close{background:none;margin:0;opacity:.5;font-weight:400;color:#000;font-size:19.5px}.wpdt-c .modal .wdt-columns-container i.zmdi-filter-list-lock,.wpdt-c .modal .wdt-columns-container i.zmdi-sort-asc-lock,.wpdt-c .modal .wdt-columns-container i.zmdi-edit-lock{position:relative}.wpdt-c .modal .wdt-columns-container i.zmdi-filter-list-lock:after,.wpdt-c .modal .wdt-columns-container i.zmdi-sort-asc-lock:after,.wpdt-c .modal .wdt-columns-container i.zmdi-edit-lock:after{content:'\f191';position:absolute;font-size:6px;right:-2px;top:9px;background:#f7f7f7}.wpdt-c .modal .wdt-columns-container i.zmdi-sort-asc:before,.wpdt-c .modal .wdt-columns-container i.zmdi-edit:before,.wpdt-c .modal .wdt-columns-container i.zmdi-filter-list,.wpdt-c .modal .wdt-columns-container i.zmdi-edit-lock:before,.wpdt-c .modal .wdt-columns-container i.zmdi-filter-list-lock:before,.wpdt-c .modal .wdt-columns-container i.zmdi-sort-asc-lock:before{font-size:16px}.wpdt-c .modal .wdt-columns-container i.zmdi-edit-lock:before{content:'\f158'}.wpdt-c .modal .wdt-columns-container i.zmdi-filter-list-lock:before{content:'\f160'}.wpdt-c .modal .wdt-columns-container i.zmdi-sort-asc-lock:before{content:'\f1cf'}.wpdt-c .btn-group.bootstrap-select .inner .text{margin-top:inherit;position:inherit;top:inherit;text-align:center;width:inherit}.wpdt-c .modal{width:inherit;margin-left:inherit;background-color:inherit;border:inherit;-webkit-border-radius:inherit;-moz-border-radius:inherit;border-radius:inherit;-webkit-box-shadow:inherit;-moz-box-shadow:inherit;box-shadow:inherit;-webkit-background-clip:inherit;-moz-background-clip:inherit;background-clip:inherit}.wpdt-c .bootstrap-select .status{background:#F7F7F7;clear:both;color:#999;font-size:13px;font-weight:400;line-height:1;margin-bottom:-5px;padding:13px 20px}.google_candlestick_chart g.google-visualization-tooltip g:nth-child(3) text:first-child,.google_waterfall_chart g.google-visualization-tooltip g:nth-child(3) text:first-child{display:none!important}div.DTTT_container{position:relative;float:right;margin-bottom:1em}button.DTTT_button,div.DTTT_button,a.DTTT_button{position:relative;float:left;margin-right:3px;padding:5px 8px;border:1px solid #999;cursor:pointer;*cursor:hand;font-size:.88em;color:black!important;-webkit-border-radius:2px;-moz-border-radius:2px;-ms-border-radius:2px;-o-border-radius:2px;border-radius:2px;-webkit-box-shadow:1px 1px 3px #ccc;-moz-box-shadow:1px 1px 3px #ccc;-ms-box-shadow:1px 1px 3px #ccc;-o-box-shadow:1px 1px 3px #ccc;box-shadow:1px 1px 3px #ccc;background:#fff;background:-webkit-linear-gradient(top,#ffffff 0%,#f3f3f3 89%,#f9f9f9 100%);background:-moz-linear-gradient(top,#ffffff 0%,#f3f3f3 89%,#f9f9f9 100%);background:-ms-linear-gradient(top,#ffffff 0%,#f3f3f3 89%,#f9f9f9 100%);background:-o-linear-gradient(top,#ffffff 0%,#f3f3f3 89%,#f9f9f9 100%);background:linear-gradient(top,#ffffff 0%,#f3f3f3 89%,#f9f9f9 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff',endColorstr='#f9f9f9',GradientType=0)}button.DTTT_button{height:30px;padding:3px 8px}.DTTT_button embed{outline:none}button.DTTT_button:hover,div.DTTT_button:hover,a.DTTT_button:hover{border:1px solid #666;text-decoration:none!important;-webkit-box-shadow:1px 1px 3px #999;-moz-box-shadow:1px 1px 3px #999;-ms-box-shadow:1px 1px 3px #999;-o-box-shadow:1px 1px 3px #999;box-shadow:1px 1px 3px #999;background:#f3f3f3;background:-webkit-linear-gradient(top,#f3f3f3 0%,#e2e2e2 89%,#f4f4f4 100%);background:-moz-linear-gradient(top,#f3f3f3 0%,#e2e2e2 89%,#f4f4f4 100%);background:-ms-linear-gradient(top,#f3f3f3 0%,#e2e2e2 89%,#f4f4f4 100%);background:-o-linear-gradient(top,#f3f3f3 0%,#e2e2e2 89%,#f4f4f4 100%);background:linear-gradient(top,#f3f3f3 0%,#e2e2e2 89%,#f4f4f4 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#f3f3f3',endColorstr='#f4f4f4',GradientType=0)}button.DTTT_disabled,div.DTTT_disabled,a.DTTT_disabled{color:#999;border:1px solid #d0d0d0;background:#fff;background:-webkit-linear-gradient(top,#ffffff 0%,#f9f9f9 89%,#fafafa 100%);background:-moz-linear-gradient(top,#ffffff 0%,#f9f9f9 89%,#fafafa 100%);background:-ms-linear-gradient(top,#ffffff 0%,#f9f9f9 89%,#fafafa 100%);background:-o-linear-gradient(top,#ffffff 0%,#f9f9f9 89%,#fafafa 100%);background:linear-gradient(top,#ffffff 0%,#f9f9f9 89%,#fafafa 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff',endColorstr='#fafafa',GradientType=0)}button.DTTT_button_collection span{padding-right:17px}button.DTTT_button_collection:hover span{padding-right:17px}table.DTTT_selectable tbody tr{cursor:pointer;*cursor:hand}table.dataTable tr.DTTT_selected.odd{background-color:#9FAFD1}table.dataTable tr.DTTT_selected.odd td.sorting_1{background-color:#9FAFD1}table.dataTable tr.DTTT_selected.odd td.sorting_2{background-color:#9FAFD1}table.dataTable tr.DTTT_selected.odd td.sorting_3{background-color:#9FAFD1}table.dataTable tr.DTTT_selected.even{background-color:#B0BED9}table.dataTable tr.DTTT_selected.even td.sorting_1{background-color:#B0BED9}table.dataTable tr.DTTT_selected.even td.sorting_2{background-color:#B0BED9}table.dataTable tr.DTTT_selected.even td.sorting_3{background-color:#B0BED9}div.DTTT_collection{width:150px;padding:8px 8px 4px 8px;border:1px solid #ccc;border:1px solid rgba(0,0,0,.4);background-color:#f3f3f3;background-color:rgba(255,255,255,.3);overflow:hidden;z-index:2002;-webkit-border-radius:5px;-moz-border-radius:5px;-ms-border-radius:5px;-o-border-radius:5px;border-radius:5px;-webkit-box-shadow:3px 3px 5px rgba(0,0,0,.3);-moz-box-shadow:3px 3px 5px rgba(0,0,0,.3);-ms-box-shadow:3px 3px 5px rgba(0,0,0,.3);-o-box-shadow:3px 3px 5px rgba(0,0,0,.3);box-shadow:3px 3px 5px rgba(0,0,0,.3)}div.DTTT_collection_background{z-index:2001}div.DTTT_collection button.DTTT_button,div.DTTT_collection div.DTTT_button,div.DTTT_collection a.DTTT_button{position:relative;left:0;right:0;display:block;float:none;margin-bottom:4px;-webkit-box-shadow:1px 1px 3px #999;-moz-box-shadow:1px 1px 3px #999;-ms-box-shadow:1px 1px 3px #999;-o-box-shadow:1px 1px 3px #999;box-shadow:1px 1px 3px #999}.DTTT_print_info{position:fixed;top:50%;left:50%;width:400px;height:150px;margin-left:-200px;margin-top:-75px;text-align:center;color:#333;padding:10px 30px;background:#fff;background:-webkit-linear-gradient(top,#ffffff 0%,#f3f3f3 89%,#f9f9f9 100%);background:-moz-linear-gradient(top,#ffffff 0%,#f3f3f3 89%,#f9f9f9 100%);background:-ms-linear-gradient(top,#ffffff 0%,#f3f3f3 89%,#f9f9f9 100%);background:-o-linear-gradient(top,#ffffff 0%,#f3f3f3 89%,#f9f9f9 100%);background:linear-gradient(top,#ffffff 0%,#f3f3f3 89%,#f9f9f9 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff',endColorstr='#f9f9f9',GradientType=0);opacity:.95;border:1px solid #000;border:1px solid rgba(0,0,0,.5);-webkit-border-radius:6px;-moz-border-radius:6px;-ms-border-radius:6px;-o-border-radius:6px;border-radius:6px;-webkit-box-shadow:0 3px 7px rgba(0,0,0,.5);-moz-box-shadow:0 3px 7px rgba(0,0,0,.5);-ms-box-shadow:0 3px 7px rgba(0,0,0,.5);-o-box-shadow:0 3px 7px rgba(0,0,0,.5);box-shadow:0 3px 7px rgba(0,0,0,.5)}.DTTT_print_info h6{font-weight:400;font-size:28px;line-height:28px;margin:1em}.DTTT_print_info p{font-size:14px;line-height:20px}table.has-columns-hidden>tbody>tr>td>span.responsiveExpander,table.has-columns-hidden>tbody>tr.detail-show>td span.responsiveExpander{background-color:#fff;background-image:-webkit-gradient(linear,0 0,0 100%,from(#ffffff),to(#e0e0e0));background-image:-webkit-linear-gradient(top,#ffffff,#e0e0e0);background-image:-o-linear-gradient(top,#ffffff,#e0e0e0);background-image:linear-gradient(to bottom,#ffffff,#e0e0e0);background-image:-moz-linear-gradient(top,#ffffff,#e0e0e0);filter:progid:dximagetransform.microsoft.gradient(startColorstr='#ffffffff',endColorstr='#ffe0e0e0',GradientType=0);border:1px solid #e0e0e0;cursor:pointer;display:inline-block;line-height:0;font-size:0;padding:1px;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;-moz-border-radius:5px;-webkit-border-radius:5px;-o-border-radius:5px;border-radius:5px;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;margin-right:3px}table.has-columns-hidden>tbody>tr>td>span.responsiveExpander:hover,table.has-columns-hidden>tbody>tr.detail-show>td span.responsiveExpander:hover{background-color:#fff;background-image:-webkit-gradient(linear,0 0,0 100%,from(#ffffff),to(#f5f5f5));background-image:-webkit-linear-gradient(top,#ffffff,#f5f5f5);background-image:-o-linear-gradient(top,#ffffff,#f5f5f5);background-image:linear-gradient(to bottom,#ffffff,#f5f5f5);background-image:-moz-linear-gradient(top,#ffffff,#f5f5f5);filter:progid:dximagetransform.microsoft.gradient(startColorstr='#ffffffff',endColorstr='#fff5f5f5',GradientType=0);border-color:#c7d5e1;-webkit-box-shadow:0 0 4px rgba(0,0,0,.25);-moz-box-shadow:0 0 4px rgba(0,0,0,.25);box-shadow:0 0 4px rgba(0,0,0,.25)}table.has-columns-hidden>tbody>tr>td>span.responsiveExpander:after,table.has-columns-hidden>tbody>tr.detail-show>td span.responsiveExpander:after{display:inline-block;line-height:0;content:"";height:11px;width:11px;background-image:url(../img/icons.png);background-repeat:no-repeat;background-position:-3000px -3000px}table.has-columns-hidden>tbody>tr>td>span.responsiveExpander:after{background-position:0 0;cursor:pointer}table.has-columns-hidden>tbody>tr>td>span.responsiveExpander:hover:after{background-position:-12px 0}table.has-columns-hidden>tbody>tr.detail-show>td span.responsiveExpander:after{background-position:-24px 0}table.has-columns-hidden>tbody>tr.detail-show>td span.responsiveExpander:hover:after{background-position:-36px 0}table.has-columns-hidden>tbody>tr.row-detail>td{background:#eee}table.has-columns-hidden>tbody>tr.row-detail>td>ul{list-style:none;margin:0}table.has-columns-hidden>tbody>tr.row-detail>td>ul>li>span.columnTitle{font-weight:700}
assets/img/addons/master-detail.png ADDED
Binary file
assets/js/wpdatatables/admin/common.js CHANGED
@@ -5,6 +5,127 @@
5
* @since 18.10.2016
6
*/
7
8
(function ($) {
9
10
$(function () {
@@ -55,109 +176,6 @@
55
wdtApplyColorPicker(this);
56
});
57
58
- /**
59
- * Extend jQuery to use AnimateCSS
60
- */
61
- $.fn.extend({
62
- animateCss: function (animationName, onEnd) {
63
- var animationEnd = 'webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend';
64
- $(this).addClass('animated ' + animationName).one(animationEnd, function () {
65
- $(this).removeClass('animated ' + animationName);
66
- if (typeof onEnd == 'function') {
67
- onEnd();
68
- }
69
- });
70
- },
71
- fadeInDown: function () {
72
- $(this)
73
- .removeClass('hidden')
74
- .show()
75
- .animateCss('fadeInDown');
76
- },
77
- fadeInRight: function (onEnd) {
78
- $(this)
79
- .removeClass('hidden')
80
- .show()
81
- .animateCss('fadeInRight');
82
- if (typeof onEnd == 'function') {
83
- onEnd();
84
- }
85
- },
86
- fadeOutDown: function () {
87
- var $this = $(this);
88
- $(this).animateCss('fadeOutDown', function () {
89
- $this
90
- .addClass('hidden')
91
- .hide();
92
- });
93
- },
94
- fadeOutRight: function () {
95
- var $this = $(this);
96
- $(this).animateCss('fadeOutRight', function () {
97
- $this
98
- .addClass('hidden')
99
- .hide();
100
- });
101
- },
102
- animateFadeIn: function () {
103
- var $this = $(this);
104
- $(this)
105
- .removeClass('hidden')
106
- .show()
107
- .removeClass('fadeOut')
108
- .animateCss('fadeIn', function () {
109
- $this
110
- .removeClass('fadeIn')
111
- .removeClass('hidden')
112
- .show()
113
- });
114
- },
115
- animateFadeOut: function ( onEnd ) {
116
- var $this = $(this);
117
- $(this)
118
- .removeClass('fadeIn')
119
- .animateCss('fadeOut', function () {
120
- $this
121
- .addClass('hidden')
122
- .removeClass('fadeOut')
123
- .hide();
124
- if( typeof onEnd == 'function' ){
125
- onEnd();
126
- }
127
- });
128
- }
129
- });
130
-
131
- /**
132
- * Helper method to insert at textarea cursor position
133
- */
134
- jQuery.fn.extend({
135
- insertAtCaret: function (myValue) {
136
- return this.each(function (i) {
137
- if (document.selection) {
138
- //For browsers like Internet Explorer
139
- this.focus();
140
- var sel = document.selection.createRange();
141
- sel.text = myValue;
142
- this.focus();
143
- }
144
- else if (this.selectionStart || this.selectionStart == '0') {
145
- //For browsers like Firefox and Webkit based
146
- var startPos = this.selectionStart;
147
- var endPos = this.selectionEnd;
148
- var scrollTop = this.scrollTop;
149
- this.value = this.value.substring(0, startPos) + myValue + this.value.substring(endPos, this.value.length);
150
- this.focus();
151
- this.selectionStart = startPos + myValue.length;
152
- this.selectionEnd = startPos + myValue.length;
153
- this.scrollTop = scrollTop;
154
- } else {
155
- this.value += myValue;
156
- this.focus();
157
- }
158
- });
159
- }
160
- });
161
162
/**
163
* Hide modal dialog on Esc button
@@ -237,7 +255,7 @@
237
/**
238
* Hide preloader on window load
239
*/
240
- jQuery(window).load(function(){
241
jQuery('.wdt-preload-layer').animateFadeOut();
242
});
243
@@ -372,19 +390,3 @@ var wdtColorPickerToInput = function (selecter) {
372
$newEl.val(val).addClass(classes);
373
};
374
375
- /**
376
- * Hide tooltip on button click or on mouseout event
377
- */
378
- var wdtHideTooltip = function () {
379
- jQuery('[data-toggle="tooltip"]').click(function() {
380
- jQuery(this).tooltip('hide');
381
- });
382
-
383
- jQuery('[data-toggle="tooltip"]').mouseout(function(event) {
384
- var e = event.toElement || event.relatedTarget;
385
- if (e != null && (e.parentNode == this || e == this)) {
386
- return;
387
- }
388
- jQuery(this).tooltip('hide');
389
- });
390
- };
5
* @since 18.10.2016
6
*/
7
8
+ /**
9
+ * Hide tooltip on button click or on mouseout event
10
+ */
11
+ var wdtHideTooltip = function () {
12
+ jQuery('[data-toggle="tooltip"]').click(function() {
13
+ jQuery(this).tooltip('hide');
14
+ });
15
+
16
+ jQuery('[data-toggle="tooltip"]').mouseout(function(event) {
17
+ var e = event.toElement || event.relatedTarget;
18
+ if (e != null && (e.parentNode == this || e == this)) {
19
+ return;
20
+ }
21
+ jQuery(this).tooltip('hide');
22
+ });
23
+ };
24
+
25
+ /**
26
+ * Extend jQuery to use AnimateCSS
27
+ */
28
+ jQuery.fn.extend({
29
+ animateCss: function (animationName, onEnd) {
30
+ var animationEnd = 'webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend';
31
+ jQuery(this).addClass('animated ' + animationName).one(animationEnd, function () {
32
+ jQuery(this).removeClass('animated ' + animationName);
33
+ if (typeof onEnd == 'function') {
34
+ onEnd();
35
+ }
36
+ });
37
+ },
38
+ fadeInDown: function () {
39
+ jQuery(this)
40
+ .removeClass('hidden')
41
+ .show()
42
+ .animateCss('fadeInDown');
43
+ },
44
+ fadeInRight: function (onEnd) {
45
+ jQuery(this)
46
+ .removeClass('hidden')
47
+ .show()
48
+ .animateCss('fadeInRight');
49
+ if (typeof onEnd == 'function') {
50
+ onEnd();
51
+ }
52
+ },
53
+ fadeOutDown: function () {
54
+ var $this = jQuery(this);
55
+ jQuery(this).animateCss('fadeOutDown', function () {
56
+ $this
57
+ .addClass('hidden')
58
+ .hide();
59
+ });
60
+ },
61
+ fadeOutRight: function () {
62
+ var $this =jQuery(this);
63
+ jQuery(this).animateCss('fadeOutRight', function () {
64
+ $this
65
+ .addClass('hidden')
66
+ .hide();
67
+ });
68
+ },
69
+ animateFadeIn: function () {
70
+ var $this = jQuery(this);
71
+ jQuery(this)
72
+ .removeClass('hidden')
73
+ .show()
74
+ .removeClass('fadeOut')
75
+ .animateCss('fadeIn', function () {
76
+ $this
77
+ .removeClass('fadeIn')
78
+ .removeClass('hidden')
79
+ .show()
80
+ });
81
+ },
82
+ animateFadeOut: function ( onEnd ) {
83
+ var $this = jQuery(this);
84
+ jQuery(this)
85
+ .removeClass('fadeIn')
86
+ .animateCss('fadeOut', function () {
87
+ $this
88
+ .addClass('hidden')
89
+ .removeClass('fadeOut')
90
+ .hide();
91
+ if( typeof onEnd == 'function' ){
92
+ onEnd();
93
+ }
94
+ });
95
+ }
96
+ });
97
+
98
+ /**
99
+ * Helper method to insert at textarea cursor position
100
+ */
101
+ jQuery.fn.extend({
102
+ insertAtCaret: function (myValue) {
103
+ return this.each(function (i) {
104
+ if (document.selection) {
105
+ //For browsers like Internet Explorer
106
+ this.focus();
107
+ var sel = document.selection.createRange();
108
+ sel.text = myValue;
109
+ this.focus();
110
+ }
111
+ else if (this.selectionStart || this.selectionStart == '0') {
112
+ //For browsers like Firefox and Webkit based
113
+ var startPos = this.selectionStart;
114
+ var endPos = this.selectionEnd;
115
+ var scrollTop = this.scrollTop;
116
+ this.value = this.value.substring(0, startPos) + myValue + this.value.substring(endPos, this.value.length);
117
+ this.focus();
118
+ this.selectionStart = startPos + myValue.length;
119
+ this.selectionEnd = startPos + myValue.length;
120
+ this.scrollTop = scrollTop;
121
+ } else {
122
+ this.value += myValue;
123
+ this.focus();
124
+ }
125
+ });
126
+ }
127
+ });
128
+
129
(function ($) {
130
131
$(function () {
176
wdtApplyColorPicker(this);
177
});
178
179
180
/**
181
* Hide modal dialog on Esc button
255
/**
256
* Hide preloader on window load
257
*/
258
+ jQuery(window).on('load', function(){
259
jQuery('.wdt-preload-layer').animateFadeOut();
260
});
261
390
$newEl.val(val).addClass(classes);
391
};
392
assets/js/wpdatatables/wdt.frontend.min.js CHANGED
@@ -1,145 +1,319 @@
1
- (function(h){"function"===typeof define&&define.amd?define(["jquery"],function(E){return h(E,window,document)}):"object"===typeof exports?module.exports=function(E,H){E||(E=window);H||(H="undefined"!==typeof window?require("jquery"):require("jquery")(E));return h(H,E,E.document)}:h(jQuery,window,document)})(function(h,E,H,k){function Y(a){var b,c,d={};h.each(a,function(e){if((b=e.match(/^([^A-Z]+?)([A-Z])/))&&-1!=="a aa ai ao as b fn i m o s ".indexOf(b[1]+" "))c=e.replace(b[0],b[2].toLowerCase()),d[c]=e,"o"===b[1]&&Y(a[e])});a._hungarianMap=d}function J(a,b,c){a._hungarianMap||Y(a);var d;h.each(b,function(e){d=a._hungarianMap[e];if(d!==k&&(c||b[d]===k))"o"===d.charAt(0)?(b[d]||(b[d]={}),h.extend(!0,b[d],b[e]),J(a[d],b[d],c)):b[d]=b[e]})}function Fa(a){var b=m.defaults.oLanguage,c=a.sZeroRecords;!a.sEmptyTable&&(c&&"No data available in table"===b.sEmptyTable)&&F(a,a,"sZeroRecords","sEmptyTable");!a.sLoadingRecords&&(c&&"Loading..."===b.sLoadingRecords)&&F(a,a,"sZeroRecords","sLoadingRecords");a.sInfoThousands&&(a.sThousands=a.sInfoThousands);(a=a.sDecimal)&&fb(a)}function gb(a){A(a,"ordering","bSort");A(a,"orderMulti","bSortMulti");A(a,"orderClasses","bSortClasses");A(a,"orderCellsTop","bSortCellsTop");A(a,"order","aaSorting");A(a,"orderFixed","aaSortingFixed");A(a,"paging","bPaginate");A(a,"pagingType","sPaginationType");A(a,"pageLength","iDisplayLength");A(a,"searching","bFilter");"boolean"===typeof a.sScrollX&&(a.sScrollX=a.sScrollX?"100%":"");"boolean"===typeof a.scrollX&&(a.scrollX=a.scrollX?"100%":"");if(a=a.aoSearchCols)for(var b=0,c=a.length;b<c;b++)a[b]&&J(m.models.oSearch,a[b])}function hb(a){A(a,"orderable","bSortable");A(a,"orderData","aDataSort");A(a,"orderSequence","asSorting");A(a,"orderDataType","sortDataType");var b=a.aDataSort;"number"===typeof b&&!h.isArray(b)&&(a.aDataSort=[b])}function ib(a){if(!m.__browser){var b={};m.__browser=b;var c=h("<div/>").css({position:"fixed",top:0,left:-1*h(E).scrollLeft(),height:1,width:1,overflow:"hidden"}).append(h("<div/>").css({position:"absolute",top:1,left:1,width:100,overflow:"scroll"}).append(h("<div/>").css({width:"100%",height:10}))).appendTo("body"),d=c.children(),e=d.children();b.barWidth=d[0].offsetWidth-d[0].clientWidth;b.bScrollOversize=100===e[0].offsetWidth&&100!==d[0].clientWidth;b.bScrollbarLeft=1!==Math.round(e.offset().left);b.bBounding=c[0].getBoundingClientRect().width?!0:!1;c.remove()}h.extend(a.oBrowser,m.__browser);a.oScroll.iBarWidth=m.__browser.barWidth}function jb(a,b,c,d,e,f){var g,j=!1;c!==k&&(g=c,j=!0);for(;d!==e;)a.hasOwnProperty(d)&&(g=j?b(g,a[d],d,a):a[d],j=!0,d+=f);return g}function Ga(a,b){var c=m.defaults.column,d=a.aoColumns.length,c=h.extend({},m.models.oColumn,c,{nTh:b?b:H.createElement("th"),sTitle:c.sTitle?c.sTitle:b?b.innerHTML:"",aDataSort:c.aDataSort?c.aDataSort:[d],mData:c.mData?c.mData:d,idx:d});a.aoColumns.push(c);c=a.aoPreSearchCols;c[d]=h.extend({},m.models.oSearch,c[d]);la(a,d,h(b).data())}function la(a,b,c){var b=a.aoColumns[b],d=a.oClasses,e=h(b.nTh);if(!b.sWidthOrig){b.sWidthOrig=e.attr("width")||null;var f=(e.attr("style")||"").match(/width:\s*(\d+[pxem%]+)/);f&&(b.sWidthOrig=f[1])}c!==k&&null!==c&&(hb(c),J(m.defaults.column,c),c.mDataProp!==k&&!c.mData&&(c.mData=c.mDataProp),c.sType&&(b._sManualType=c.sType),c.className&&!c.sClass&&(c.sClass=c.className),h.extend(b,c),F(b,c,"sWidth","sWidthOrig"),c.iDataSort!==k&&(b.aDataSort=[c.iDataSort]),F(b,c,"aDataSort"));var g=b.mData,j=R(g),i=b.mRender?R(b.mRender):null,c=function(a){return"string"===typeof a&&-1!==a.indexOf("@")};b._bAttrSrc=h.isPlainObject(g)&&(c(g.sort)||c(g.type)||c(g.filter));b._setter=null;b.fnGetData=function(a,b,c){var d=j(a,b,k,c);return i&&b?i(d,b,a,c):d};b.fnSetData=function(a,b,c){return S(g)(a,b,c)};"number"!==typeof g&&(a._rowReadObject=!0);a.oFeatures.bSort||(b.bSortable=!1,e.addClass(d.sSortableNone));a=-1!==h.inArray("asc",b.asSorting);c=-1!==h.inArray("desc",b.asSorting);!b.bSortable||!a&&!c?(b.sSortingClass=d.sSortableNone,b.sSortingClassJUI=""):a&&!c?(b.sSortingClass=d.sSortableAsc,b.sSortingClassJUI=d.sSortJUIAscAllowed):!a&&c?(b.sSortingClass=d.sSortableDesc,b.sSortingClassJUI=d.sSortJUIDescAllowed):(b.sSortingClass=d.sSortable,b.sSortingClassJUI=d.sSortJUI)}function Z(a){if(!1!==a.oFeatures.bAutoWidth){var b=a.aoColumns;Ha(a);for(var c=0,d=b.length;c<d;c++)b[c].nTh.style.width=b[c].sWidth}b=a.oScroll;(""!==b.sY||""!==b.sX)&&ma(a);s(a,null,"column-sizing",[a])}function $(a,b){var c=na(a,"bVisible");return"number"===typeof c[b]?c[b]:null}function aa(a,b){var c=na(a,"bVisible"),c=h.inArray(b,c);return-1!==c?c:null}function ba(a){var b=0;h.each(a.aoColumns,function(a,d){d.bVisible&&"none"!==h(d.nTh).css("display")&&b++});return b}function na(a,b){var c=[];h.map(a.aoColumns,function(a,e){a[b]&&c.push(e)});return c}function Ia(a){var b=a.aoColumns,c=a.aoData,d=m.ext.type.detect,e,f,g,j,i,h,l,q,r;e=0;for(f=b.length;e<f;e++)if(l=b[e],r=[],!l.sType&&l._sManualType)l.sType=l._sManualType;else if(!l.sType){g=0;for(j=d.length;g<j;g++){i=0;for(h=c.length;i<h;i++){r[i]===k&&(r[i]=B(a,i,e,"type"));q=d[g](r[i],a);if(!q&&g!==d.length-1)break;if("html"===q)break}if(q){l.sType=q;break}}l.sType||(l.sType="string")}}function kb(a,b,c,d){var e,f,g,j,i,n,l=a.aoColumns;if(b)for(e=b.length-1;0<=e;e--){n=b[e];var q=n.targets!==k?n.targets:n.aTargets;h.isArray(q)||(q=[q]);f=0;for(g=q.length;f<g;f++)if("number"===typeof q[f]&&0<=q[f]){for(;l.length<=q[f];)Ga(a);d(q[f],n)}else if("number"===typeof q[f]&&0>q[f])d(l.length+q[f],n);else if("string"===typeof q[f]){j=0;for(i=l.length;j<i;j++)("_all"==q[f]||h(l[j].nTh).hasClass(q[f]))&&d(j,n)}}if(c){e=0;for(a=c.length;e<a;e++)d(e,c[e])}}function N(a,b,c,d){var e=a.aoData.length,f=h.extend(!0,{},m.models.oRow,{src:c?"dom":"data",idx:e});f._aData=b;a.aoData.push(f);for(var g=a.aoColumns,j=0,i=g.length;j<i;j++)g[j].sType=null;a.aiDisplayMaster.push(e);b=a.rowIdFn(b);b!==k&&(a.aIds[b]=f);(c||!a.oFeatures.bDeferRender)&&Ja(a,e,c,d);return e}function oa(a,b){var c;b instanceof h||(b=h(b));return b.map(function(b,e){c=Ka(a,e);return N(a,c.data,e,c.cells)})}function B(a,b,c,d){var e=a.iDraw,f=a.aoColumns[c],g=a.aoData[b]._aData,j=f.sDefaultContent,i=f.fnGetData(g,d,{settings:a,row:b,col:c});if(i===k)return a.iDrawError!=e&&null===j&&(K(a,0,"Requested unknown parameter "+("function"==typeof f.mData?"{function}":"'"+f.mData+"'")+" for row "+b+", column "+c,4),a.iDrawError=e),j;if((i===g||null===i)&&null!==j&&d!==k)i=j;else if("function"===typeof i)return i.call(g);return null===i&&"display"==d?"":i}function lb(a,b,c,d){a.aoColumns[c].fnSetData(a.aoData[b]._aData,d,{settings:a,row:b,col:c})}
2
- function La(a){return h.map(a.match(/(\\.|[^\.])+/g)||[""],function(a){return a.replace(/\\\./g,".")})}function R(a){if(h.isPlainObject(a)){var b={};h.each(a,function(a,c){c&&(b[a]=R(c))});return function(a,c,f,g){var j=b[c]||b._;return j!==k?j(a,c,f,g):a}}if(null===a)return function(a){return a};if("function"===typeof a)return function(b,c,f,g){return a(b,c,f,g)};if("string"===typeof a&&(-1!==a.indexOf(".")||-1!==a.indexOf("[")||-1!==a.indexOf("("))){var c=function(a,b,f){var g,j;if(""!==f){j=La(f);for(var i=0,n=j.length;i<n;i++){f=j[i].match(ca);g=j[i].match(V);if(f){j[i]=j[i].replace(ca,"");""!==j[i]&&(a=a[j[i]]);g=[];j.splice(0,i+1);j=j.join(".");if(h.isArray(a)){i=0;for(n=a.length;i<n;i++)g.push(c(a[i],b,j))}a=f[0].substring(1,f[0].length-1);a=""===a?g:g.join(a);break}else if(g){j[i]=j[i].replace(V,"");a=a[j[i]]();continue}if(null===a||a[j[i]]===k)return k;a=a[j[i]]}}return a};return function(b,e){return c(b,e,a)}}return function(b){return b[a]}}function S(a){if(h.isPlainObject(a))return S(a._);if(null===a)return function(){};if("function"===typeof a)return function(b,d,e){a(b,"set",d,e)};if("string"===typeof a&&(-1!==a.indexOf(".")||-1!==a.indexOf("[")||-1!==a.indexOf("("))){var b=function(a,d,e){var e=La(e),f;f=e[e.length-1];for(var g,j,i=0,n=e.length-1;i<n;i++){g=e[i].match(ca);j=e[i].match(V);if(g){e[i]=e[i].replace(ca,"");a[e[i]]=[];f=e.slice();f.splice(0,i+1);g=f.join(".");if(h.isArray(d)){j=0;for(n=d.length;j<n;j++)f={},b(f,d[j],g),a[e[i]].push(f)}else a[e[i]]=d;return}j&&(e[i]=e[i].replace(V,""),a=a[e[i]](d));if(null===a[e[i]]||a[e[i]]===k)a[e[i]]={};a=a[e[i]]}if(f.match(V))a[f.replace(V,"")](d);else a[f.replace(ca,"")]=d};return function(c,d){return b(c,d,a)}}return function(b,d){b[a]=d}}function Ma(a){return D(a.aoData,"_aData")}function pa(a){a.aoData.length=0;a.aiDisplayMaster.length=0;a.aiDisplay.length=0;a.aIds={}}function qa(a,b,c){for(var d=-1,e=0,f=a.length;e<f;e++)a[e]==b?d=e:a[e]>b&&a[e]--;-1!=d&&c===k&&a.splice(d,1)}function da(a,b,c,d){var e=a.aoData[b],f,g=function(c,d){for(;c.childNodes.length;)c.removeChild(c.firstChild);c.innerHTML=B(a,b,d,"display")};if("dom"===c||(!c||"auto"===c)&&"dom"===e.src)e._aData=Ka(a,e,d,d===k?k:e._aData).data;else{var j=e.anCells;if(j)if(d!==k)g(j[d],d);else{c=0;for(f=j.length;c<f;c++)g(j[c],c)}}e._aSortData=null;e._aFilterData=null;g=a.aoColumns;if(d!==k)g[d].sType=null;else{c=0;for(f=g.length;c<f;c++)g[c].sType=null;Na(a,e)}}function Ka(a,b,c,d){var e=[],f=b.firstChild,g,j,i=0,n,l=a.aoColumns,q=a._rowReadObject,d=d!==k?d:q?{}:[],r=function(a,b){if("string"===typeof a){var c=a.indexOf("@");-1!==c&&(c=a.substring(c+1),S(a)(d,b.getAttribute(c)))}},m=function(a){if(c===k||c===i)j=l[i],n=h.trim(a.innerHTML),j&&j._bAttrSrc?(S(j.mData._)(d,n),r(j.mData.sort,a),r(j.mData.type,a),r(j.mData.filter,a)):q?(j._setter||(j._setter=S(j.mData)),j._setter(d,n)):d[i]=n;i++};if(f)for(;f;){g=f.nodeName.toUpperCase();if("TD"==g||"TH"==g)m(f),e.push(f);f=f.nextSibling}else{e=b.anCells;f=0;for(g=e.length;f<g;f++)m(e[f])}if(b=b.firstChild?b:b.nTr)(b=b.getAttribute("id"))&&S(a.rowId)(d,b);return{data:d,cells:e}}
3
- function Ja(a,b,c,d){var e=a.aoData[b],f=e._aData,g=[],j,i,n,l,q;if(null===e.nTr){j=c||H.createElement("tr");e.nTr=j;e.anCells=g;j._DT_RowIndex=b;Na(a,e);l=0;for(q=a.aoColumns.length;l<q;l++){n=a.aoColumns[l];i=c?d[l]:H.createElement(n.sCellType);i._DT_CellIndex={row:b,column:l};g.push(i);if((!c||n.mRender||n.mData!==l)&&(!h.isPlainObject(n.mData)||n.mData._!==l+".display"))i.innerHTML=B(a,b,l,"display");n.sClass&&(i.className+=" "+n.sClass);n.bVisible&&!c?j.appendChild(i):!n.bVisible&&c&&i.parentNode.removeChild(i);n.fnCreatedCell&&n.fnCreatedCell.call(a.oInstance,i,B(a,b,l),f,b,l)}s(a,"aoRowCreatedCallback",null,[j,f,b])}e.nTr.setAttribute("role","row")}function Na(a,b){var c=b.nTr,d=b._aData;if(c){var e=a.rowIdFn(d);e&&(c.id=e);d.DT_RowClass&&(e=d.DT_RowClass.split(" "),b.__rowc=b.__rowc?sa(b.__rowc.concat(e)):e,h(c).removeClass(b.__rowc.join(" ")).addClass(d.DT_RowClass));d.DT_RowAttr&&h(c).attr(d.DT_RowAttr);d.DT_RowData&&h(c).data(d.DT_RowData)}}function mb(a){var b,c,d,e,f,g=a.nTHead,j=a.nTFoot,i=0===h("th, td",g).length,n=a.oClasses,l=a.aoColumns;i&&(e=h("<tr/>").appendTo(g));b=0;for(c=l.length;b<c;b++)f=l[b],d=h(f.nTh).addClass(f.sClass),i&&d.appendTo(e),a.oFeatures.bSort&&(d.addClass(f.sSortingClass),!1!==f.bSortable&&(d.attr("tabindex",a.iTabIndex).attr("aria-controls",a.sTableId),Oa(a,f.nTh,b))),f.sTitle!=d[0].innerHTML&&d.html(f.sTitle),Pa(a,"header")(a,d,f,n);i&&ea(a.aoHeader,g);h(g).find(">tr").attr("role","row");h(g).find(">tr>th, >tr>td").addClass(n.sHeaderTH);h(j).find(">tr>th, >tr>td").addClass(n.sFooterTH);if(null!==j){a=a.aoFooter[0];b=0;for(c=a.length;b<c;b++)f=l[b],f.nTf=a[b].cell,f.sClass&&h(f.nTf).addClass(f.sClass)}}function fa(a,b,c){var d,e,f,g=[],j=[],i=a.aoColumns.length,n;if(b){c===k&&(c=!1);d=0;for(e=b.length;d<e;d++){g[d]=b[d].slice();g[d].nTr=b[d].nTr;for(f=i-1;0<=f;f--)!a.aoColumns[f].bVisible&&!c&&g[d].splice(f,1);j.push([])}d=0;for(e=g.length;d<e;d++){if(a=g[d].nTr)for(;f=a.firstChild;)a.removeChild(f);f=0;for(b=g[d].length;f<b;f++)if(n=i=1,j[d][f]===k){a.appendChild(g[d][f].cell);for(j[d][f]=1;g[d+i]!==k&&g[d][f].cell==g[d+i][f].cell;)j[d+i][f]=1,i++;for(;g[d][f+n]!==k&&g[d][f].cell==g[d][f+n].cell;){for(c=0;c<i;c++)j[d+c][f+n]=1;n++}h(g[d][f].cell).attr("rowspan",i).attr("colspan",n)}}}}function O(a){var b=s(a,"aoPreDrawCallback","preDraw",[a]);if(-1!==h.inArray(!1,b))C(a,!1);else{var b=[],c=0,d=a.asStripeClasses,e=d.length,f=a.oLanguage,g=a.iInitDisplayStart,j="ssp"==y(a),i=a.aiDisplay;a.bDrawing=!0;g!==k&&-1!==g&&(a._iDisplayStart=j?g:g>=a.fnRecordsDisplay()?0:g,a.iInitDisplayStart=-1);var g=a._iDisplayStart,n=a.fnDisplayEnd();if(a.bDeferLoading)a.bDeferLoading=!1,a.iDraw++,C(a,!1);else if(j){if(!a.bDestroying&&!nb(a))return}else a.iDraw++;if(0!==i.length){f=j?a.aoData.length:n;for(j=j?0:g;j<f;j++){var l=i[j],q=a.aoData[l];null===q.nTr&&Ja(a,l);l=q.nTr;if(0!==e){var r=d[c%e];q._sRowStripe!=r&&(h(l).removeClass(q._sRowStripe).addClass(r),q._sRowStripe=r)}s(a,"aoRowCallback",null,[l,q._aData,c,j]);b.push(l);c++}}else c=f.sZeroRecords,1==a.iDraw&&"ajax"==y(a)?c=f.sLoadingRecords:f.sEmptyTable&&0===a.fnRecordsTotal()&&(c=f.sEmptyTable),b[0]=h("<tr/>",{"class":e?d[0]:""}).append(h("<td />",{valign:"top",colSpan:ba(a),"class":a.oClasses.sRowEmpty}).html(c))[0];s(a,"aoHeaderCallback","header",[h(a.nTHead).children("tr")[0],Ma(a),g,n,i]);s(a,"aoFooterCallback","footer",[h(a.nTFoot).children("tr")[0],Ma(a),g,n,i]);d=h(a.nTBody);d.children().detach();d.append(h(b));s(a,"aoDrawCallback","draw",[a]);a.bSorted=!1;a.bFiltered=!1;a.bDrawing=!1}}function T(a,b){var c=a.oFeatures,d=c.bFilter;c.bSort&&ob(a);d?ga(a,a.oPreviousSearch):a.aiDisplay=a.aiDisplayMaster.slice();!0!==b&&(a._iDisplayStart=0);a._drawHold=b;O(a);a._drawHold=!1}function pb(a){var b=a.oClasses,c=h(a.nTable),c=h("<div/>").insertBefore(c),d=a.oFeatures,e=h("<div/>",{id:a.sTableId+"_wrapper","class":b.sWrapper+(a.nTFoot?"":" "+b.sNoFooter)});a.nHolding=c[0];a.nTableWrapper=e[0];a.nTableReinsertBefore=a.nTable.nextSibling;for(var f=a.sDom.split(""),g,j,i,n,l,q,k=0;k<f.length;k++){g=null;j=f[k];if("<"==j){i=h("<div/>")[0];n=f[k+1];if("'"==n||'"'==n){l="";for(q=2;f[k+q]!=n;)l+=f[k+q],q++;"H"==l?l=b.sJUIHeader:"F"==l&&(l=b.sJUIFooter);-1!=l.indexOf(".")?(n=l.split("."),i.id=n[0].substr(1,n[0].length-1),i.className=n[1]):"#"==l.charAt(0)?i.id=l.substr(1,l.length-1):i.className=l;k+=q}e.append(i);e=h(i)}else if(">"==j)e=e.parent();else if("l"==j&&d.bPaginate&&d.bLengthChange)g=qb(a);else if("f"==j&&d.bFilter)g=rb(a);else if("r"==j&&d.bProcessing)g=sb(a);else if("t"==j)g=tb(a);else if("i"==j&&d.bInfo)g=ub(a);else if("p"==j&&d.bPaginate)g=vb(a);else if(0!==m.ext.feature.length){i=m.ext.feature;q=0;for(n=i.length;q<n;q++)if(j==i[q].cFeature){g=i[q].fnInit(a);break}}g&&(i=a.aanFeatures,i[j]||(i[j]=[]),i[j].push(g),e.append(g))}c.replaceWith(e);a.nHolding=null}function ea(a,b){var c=h(b).children("tr"),d,e,f,g,j,i,n,l,q,k;a.splice(0,a.length);f=0;for(i=c.length;f<i;f++)a.push([]);f=0;for(i=c.length;f<i;f++){d=c[f];for(e=d.firstChild;e;){if("TD"==e.nodeName.toUpperCase()||"TH"==e.nodeName.toUpperCase()){l=1*e.getAttribute("colspan");q=1*e.getAttribute("rowspan");l=!l||0===l||1===l?1:l;q=!q||0===q||1===q?1:q;g=0;for(j=a[f];j[g];)g++;n=g;k=1===l?!0:!1;for(j=0;j<l;j++)for(g=0;g<q;g++)a[f+g][n+j]={cell:e,unique:k},a[f+g].nTr=d}e=e.nextSibling}}}function ta(a,b,c){var d=[];c||(c=a.aoHeader,b&&(c=[],ea(c,b)));for(var b=0,e=c.length;b<e;b++)for(var f=0,g=c[b].length;f<g;f++)if(c[b][f].unique&&(!d[f]||!a.bSortCellsTop))d[f]=c[b][f].cell;return d}function ua(a,b,c){s(a,"aoServerParams","serverParams",[b]);if(b&&h.isArray(b)){var d={},e=/(.*?)\[\]#x2F;;h.each(b,function(a,b){var c=b.name.match(e);c?(c=c[0],d[c]||(d[c]=[]),d[c].push(b.value)):d[b.name]=b.value});b=d}var f,g=a.ajax,j=a.oInstance,i=function(b){s(a,null,"xhr",[a,b,a.jqXHR]);c(b)};if(h.isPlainObject(g)&&g.data){f=g.data;var n=h.isFunction(f)?f(b,a):f,b=h.isFunction(f)&&n?n:h.extend(!0,b,n);delete g.data}n={data:b,success:function(b){var c=b.error||b.sError;c&&K(a,0,c);a.json=b;i(b)},dataType:"json",cache:!1,type:a.sServerMethod,error:function(b,c){var d=s(a,null,"xhr",[a,null,a.jqXHR]);-1===h.inArray(!0,d)&&("parsererror"==c?K(a,0,"Invalid JSON response",1):4===b.readyState&&K(a,0,"Ajax error",7));C(a,!1)}};a.oAjaxData=b;s(a,null,"preXhr",[a,b]);a.fnServerData?a.fnServerData.call(j,a.sAjaxSource,h.map(b,function(a,b){return{name:b,value:a}}),i,a):a.sAjaxSource||"string"===typeof g?a.jqXHR=h.ajax(h.extend(n,{url:g||a.sAjaxSource})):h.isFunction(g)?a.jqXHR=g.call(j,b,i,a):(a.jqXHR=h.ajax(h.extend(n,g)),g.data=f)}function nb(a){return a.bAjaxDataGet?(a.iDraw++,C(a,!0),ua(a,wb(a),function(b){xb(a,b)}),!1):!0}function wb(a){var b=a.aoColumns,c=b.length,d=a.oFeatures,e=a.oPreviousSearch,f=a.aoPreSearchCols,g,j=[],i,n,l,k=W(a);g=a._iDisplayStart;i=!1!==d.bPaginate?a._iDisplayLength:-1;var r=function(a,b){j.push({name:a,value:b})};r("sEcho",a.iDraw);r("iColumns",c);r("sColumns",D(b,"sName").join(","));r("iDisplayStart",g);r("iDisplayLength",i);var ra={draw:a.iDraw,columns:[],order:[],start:g,length:i,search:{value:e.sSearch,regex:e.bRegex}};for(g=0;g<c;g++)n=b[g],l=f[g],i="function"==typeof n.mData?"function":n.mData,ra.columns.push({data:i,name:n.sName,searchable:n.bSearchable,orderable:n.bSortable,search:{value:l.sSearch,regex:l.bRegex}}),r("mDataProp_"+g,i),d.bFilter&&(r("sSearch_"+g,l.sSearch),r("bRegex_"+g,l.bRegex),r("bSearchable_"+g,n.bSearchable)),d.bSort&&r("bSortable_"+g,n.bSortable);d.bFilter&&(r("sSearch",e.sSearch),r("bRegex",e.bRegex));d.bSort&&(h.each(k,function(a,b){ra.order.push({column:b.col,dir:b.dir});r("iSortCol_"+a,b.col);r("sSortDir_"+a,b.dir)}),r("iSortingCols",k.length));b=m.ext.legacy.ajax;return null===b?a.sAjaxSource?j:ra:b?j:ra}function xb(a,b){var c=va(a,b),d=b.sEcho!==k?b.sEcho:b.draw,e=b.iTotalRecords!==k?b.iTotalRecords:b.recordsTotal,f=b.iTotalDisplayRecords!==k?b.iTotalDisplayRecords:b.recordsFiltered;if(d){if(1*d<a.iDraw)return;a.iDraw=1*d}pa(a);a._iRecordsTotal=parseInt(e,10);a._iRecordsDisplay=parseInt(f,10);d=0;for(e=c.length;d<e;d++)N(a,c[d]);a.aiDisplay=a.aiDisplayMaster.slice();a.bAjaxDataGet=!1;O(a);a._bInitComplete||wa(a,b);a.bAjaxDataGet=!0;C(a,!1)}function va(a,b){var c=h.isPlainObject(a.ajax)&&a.ajax.dataSrc!==k?a.ajax.dataSrc:a.sAjaxDataProp;return"data"===c?b.aaData||b[c]:""!==c?R(c)(b):b}function rb(a){var b=a.oClasses,c=a.sTableId,d=a.oLanguage,e=a.oPreviousSearch,f=a.aanFeatures,g='<input type="search" class="'+b.sFilterInput+'"/>',j=d.sSearch,j=j.match(/_INPUT_/)?j.replace("_INPUT_",g):j+g,b=h("<div/>",{id:!f.f?c+"_filter":null,"class":b.sFilter}).append(h("<label/>").append(j)),f=function(){var b=!this.value?"":this.value;b!=e.sSearch&&(ga(a,{sSearch:b,bRegex:e.bRegex,bSmart:e.bSmart,bCaseInsensitive:e.bCaseInsensitive}),a._iDisplayStart=0,O(a))},g=null!==a.searchDelay?a.searchDelay:"ssp"===y(a)?400:0,i=h("input",b).val(e.sSearch).attr("placeholder",d.sSearchPlaceholder).on("keyup.DT search.DT input.DT paste.DT cut.DT",g?Qa(f,g):f).on("keypress.DT",function(a){if(13==a.keyCode)return!1}).attr("aria-controls",c);h(a.nTable).on("search.dt.DT",function(b,c){if(a===c)try{i[0]!==H.activeElement&&i.val(e.sSearch)}catch(d){}});return b[0]}function ga(a,b,c){var d=a.oPreviousSearch,e=a.aoPreSearchCols,f=function(a){d.sSearch=a.sSearch;d.bRegex=a.bRegex;d.bSmart=a.bSmart;d.bCaseInsensitive=a.bCaseInsensitive};Ia(a);if("ssp"!=y(a)){yb(a,b.sSearch,c,b.bEscapeRegex!==k?!b.bEscapeRegex:b.bRegex,b.bSmart,b.bCaseInsensitive);f(b);for(b=0;b<e.length;b++)zb(a,e[b].sSearch,b,e[b].bEscapeRegex!==k?!e[b].bEscapeRegex:e[b].bRegex,e[b].bSmart,e[b].bCaseInsensitive);Ab(a)}else f(b);a.bFiltered=!0;s(a,null,"search",[a])}function Ab(a){for(var b=m.ext.search,c=a.aiDisplay,d,e,f=0,g=b.length;f<g;f++){for(var j=[],i=0,n=c.length;i<n;i++)e=c[i],d=a.aoData[e],b[f](a,d._aFilterData,e,d._aData,i)&&j.push(e);c.length=0;h.merge(c,j)}}function zb(a,b,c,d,e,f){if(""!==b){for(var g=[],j=a.aiDisplay,d=Ra(b,d,e,f),e=0;e<j.length;e++)b=a.aoData[j[e]]._aFilterData[c],d.test(b)&&g.push(j[e]);a.aiDisplay=g}}function yb(a,b,c,d,e,f){var d=Ra(b,d,e,f),f=a.oPreviousSearch.sSearch,g=a.aiDisplayMaster,j,e=[];0!==m.ext.search.length&&(c=!0);j=Bb(a);if(0>=b.length)a.aiDisplay=g.slice();else{if(j||c||f.length>b.length||0!==b.indexOf(f)||a.bSorted)a.aiDisplay=g.slice();b=a.aiDisplay;for(c=0;c<b.length;c++)d.test(a.aoData[b[c]]._sFilterRow)&&e.push(b[c]);a.aiDisplay=e}}function Ra(a,b,c,d){a=b?a:Sa(a);c&&(a="^(?=.*?"+h.map(a.match(/"[^"]+"|[^ ]+/g)||[""],function(a){if('"'===a.charAt(0))var b=a.match(/^"(.*)"#x2F;),a=b?b[1]:a;return a.replace('"',"")}).join(")(?=.*?")+").*quot;);return RegExp(a,d?"i":"")}function Bb(a){var b=a.aoColumns,c,d,e,f,g,j,i,h,l=m.ext.type.search;c=!1;d=0;for(f=a.aoData.length;d<f;d++)if(h=a.aoData[d],!h._aFilterData){j=[];e=0;for(g=b.length;e<g;e++)c=b[e],c.bSearchable?(i=B(a,d,e,"filter"),l[c.sType]&&(i=l[c.sType](i)),null===i&&(i=""),"string"!==typeof i&&i.toString&&(i=i.toString())):i="",i.indexOf&&-1!==i.indexOf("&")&&(xa.innerHTML=i,i=$b?xa.textContent:xa.innerText),i.replace&&(i=i.replace(/[\r\n]/g,"")),j.push(i);h._aFilterData=j;h._sFilterRow=j.join(" ");c=!0}return c}function Cb(a){return{search:a.sSearch,smart:a.bSmart,regex:a.bRegex,caseInsensitive:a.bCaseInsensitive}}function Db(a){return{sSearch:a.search,bSmart:a.smart,bRegex:a.regex,bCaseInsensitive:a.caseInsensitive}}function ub(a){var b=a.sTableId,c=a.aanFeatures.i,d=h("<div/>",{"class":a.oClasses.sInfo,id:!c?b+"_info":null});c||(a.aoDrawCallback.push({fn:Eb,sName:"information"}),d.attr("role","status").attr("aria-live","polite"),h(a.nTable).attr("aria-describedby",b+"_info"));return d[0]}function Eb(a){var b=a.aanFeatures.i;if(0!==b.length){var c=a.oLanguage,d=a._iDisplayStart+1,e=a.fnDisplayEnd(),f=a.fnRecordsTotal(),g=a.fnRecordsDisplay(),j=g?c.sInfo:c.sInfoEmpty;g!==f&&(j+=" "+c.sInfoFiltered);j+=c.sInfoPostFix;j=Fb(a,j);c=c.fnInfoCallback;null!==c&&(j=c.call(a.oInstance,a,d,e,f,g,j));h(b).html(j)}}function Fb(a,b){var c=a.fnFormatNumber,d=a._iDisplayStart+1,e=a._iDisplayLength,f=a.fnRecordsDisplay(),g=-1===e;return b.replace(/_START_/g,c.call(a,d)).replace(/_END_/g,c.call(a,a.fnDisplayEnd())).replace(/_MAX_/g,c.call(a,a.fnRecordsTotal())).replace(/_TOTAL_/g,c.call(a,f)).replace(/_PAGE_/g,c.call(a,g?1:Math.ceil(d/e))).replace(/_PAGES_/g,c.call(a,g?1:Math.ceil(f/e)))}function ha(a){var b,c,d=a.iInitDisplayStart,e=a.aoColumns,f;c=a.oFeatures;var g=a.bDeferLoading;if(a.bInitialised){pb(a);mb(a);fa(a,a.aoHeader);fa(a,a.aoFooter);C(a,!0);c.bAutoWidth&&Ha(a);b=0;for(c=e.length;b<c;b++)f=e[b],f.sWidth&&(f.nTh.style.width=v(f.sWidth));s(a,null,"preInit",[a]);T(a);e=y(a);if("ssp"!=e||g)"ajax"==e?ua(a,[],function(c){var f=va(a,c);for(b=0;b<f.length;b++)N(a,f[b]);a.iInitDisplayStart=d;T(a);C(a,!1);wa(a,c)},a):(C(a,!1),wa(a))}else setTimeout(function(){ha(a)},200)}function wa(a,b){a._bInitComplete=!0;(b||a.oInit.aaData)&&Z(a);s(a,null,"plugin-init",[a,b]);s(a,"aoInitComplete","init",[a,b])}function Ta(a,b){var c=parseInt(b,10);a._iDisplayLength=c;Ua(a);s(a,null,"length",[a,c])}function qb(a){for(var b=a.oClasses,c=a.sTableId,d=a.aLengthMenu,e=h.isArray(d[0]),f=e?d[0]:d,d=e?d[1]:d,e=h("<select/>",{name:c+"_length","aria-controls":c,"class":b.sLengthSelect}),g=0,j=f.length;g<j;g++)e[0][g]=new Option(d[g],f[g]);var i=h("<div><label/></div>").addClass(b.sLength);a.aanFeatures.l||(i[0].id=c+"_length");i.children().append(a.oLanguage.sLengthMenu.replace("_MENU_",e[0].outerHTML));h("select",i).val(a._iDisplayLength).on("change.DT",function(){Ta(a,h(this).val());O(a)});h(a.nTable).on("length.dt.DT",function(b,c,d){a===c&&h("select",i).val(d)});return i[0]}function vb(a){var b=a.sPaginationType,c=m.ext.pager[b],d="function"===typeof c,e=function(a){O(a)},b=h("<div/>").addClass(a.oClasses.sPaging+b)[0],f=a.aanFeatures;d||c.fnInit(a,b,e);f.p||(b.id=a.sTableId+"_paginate",a.aoDrawCallback.push({fn:function(a){if(d){var b=a._iDisplayStart,i=a._iDisplayLength,h=a.fnRecordsDisplay(),l=-1===i,b=l?0:Math.ceil(b/i),i=l?1:Math.ceil(h/i),h=c(b,i),k,l=0;for(k=f.p.length;l<k;l++)Pa(a,"pageButton")(a,f.p[l],l,h,b,i)}else c.fnUpdate(a,e)},sName:"pagination"}));return b}function Va(a,b,c){var d=a._iDisplayStart,e=a._iDisplayLength,f=a.fnRecordsDisplay();0===f||-1===e?d=0:"number"===typeof b?(d=b*e,d>f&&(d=0)):"first"==b?d=0:"previous"==b?(d=0<=e?d-e:0,0>d&&(d=0)):"next"==b?d+e<f&&(d+=e):"last"==b?d=Math.floor((f-1)/e)*e:K(a,0,"Unknown paging action: "+b,5);b=a._iDisplayStart!==d;a._iDisplayStart=d;b&&(s(a,null,"page",[a]),c&&O(a));return b}function sb(a){return h("<div/>",{id:!a.aanFeatures.r?a.sTableId+"_processing":null,"class":a.oClasses.sProcessing}).html(a.oLanguage.sProcessing).insertBefore(a.nTable)[0]}function C(a,b){a.oFeatures.bProcessing&&h(a.aanFeatures.r).css("display",b?"block":"none");s(a,null,"processing",[a,b])}function tb(a){var b=h(a.nTable);b.attr("role","grid");var c=a.oScroll;if(""===c.sX&&""===c.sY)return a.nTable;var d=c.sX,e=c.sY,f=a.oClasses,g=b.children("caption"),j=g.length?g[0]._captionSide:null,i=h(b[0].cloneNode(!1)),n=h(b[0].cloneNode(!1)),l=b.children("tfoot");l.length||(l=null);i=h("<div/>",{"class":f.sScrollWrapper}).append(h("<div/>",{"class":f.sScrollHead}).css({overflow:"hidden",position:"relative",border:0,width:d?!d?null:v(d):"100%"}).append(h("<div/>",{"class":f.sScrollHeadInner}).css({"box-sizing":"content-box",width:c.sXInner||"100%"}).append(i.removeAttr("id").css("margin-left",0).append("top"===j?g:null).append(b.children("thead"))))).append(h("<div/>",{"class":f.sScrollBody}).css({position:"relative",overflow:"auto",width:!d?null:v(d)}).append(b));l&&i.append(h("<div/>",{"class":f.sScrollFoot}).css({overflow:"hidden",border:0,width:d?!d?null:v(d):"100%"}).append(h("<div/>",{"class":f.sScrollFootInner}).append(n.removeAttr("id").css("margin-left",0).append("bottom"===j?g:null).append(b.children("tfoot")))));var b=i.children(),k=b[0],f=b[1],r=l?b[2]:null;if(d)h(f).on("scroll.DT",function(){var a=this.scrollLeft;k.scrollLeft=a;l&&(r.scrollLeft=a)});h(f).css(e&&c.bCollapse?"max-height":"height",e);a.nScrollHead=k;a.nScrollBody=f;a.nScrollFoot=r;a.aoDrawCallback.push({fn:ma,sName:"scrolling"});return i[0]}function ma(a){var b=a.oScroll,c=b.sX,d=b.sXInner,e=b.sY,b=b.iBarWidth,f=h(a.nScrollHead),g=f[0].style,j=f.children("div"),i=j[0].style,n=j.children("table"),j=a.nScrollBody,l=h(j),q=j.style,r=h(a.nScrollFoot).children("div"),m=r.children("table"),p=h(a.nTHead),o=h(a.nTable),t=o[0],s=t.style,u=a.nTFoot?h(a.nTFoot):null,x=a.oBrowser,U=x.bScrollOversize,ac=D(a.aoColumns,"nTh"),P,L,Q,w,Wa=[],y=[],z=[],A=[],B,C=function(a){a=a.style;a.paddingTop="0";a.paddingBottom="0";a.borderTopWidth="0";a.borderBottomWidth="0";a.height=0};L=j.scrollHeight>j.clientHeight;if(a.scrollBarVis!==L&&a.scrollBarVis!==k)a.scrollBarVis=L,Z(a);else{a.scrollBarVis=L;o.children("thead, tfoot").remove();u&&(Q=u.clone().prependTo(o),P=u.find("tr"),Q=Q.find("tr"));w=p.clone().prependTo(o);p=p.find("tr");L=w.find("tr");w.find("th, td").removeAttr("tabindex");c||(q.width="100%",f[0].style.width="100%");h.each(ta(a,w),function(b,c){B=$(a,b);c.style.width=a.aoColumns[B].sWidth});u&&I(function(a){a.style.width=""},Q);f=o.outerWidth();if(""===c){s.width="100%";if(U&&(o.find("tbody").height()>j.offsetHeight||"scroll"==l.css("overflow-y")))s.width=v(o.outerWidth()-b);f=o.outerWidth()}else""!==d&&(s.width=v(d),f=o.outerWidth());I(C,L);I(function(a){z.push(a.innerHTML);Wa.push(v(h(a).css("width")))},L);I(function(a,b){if(h.inArray(a,ac)!==-1)a.style.width=Wa[b]},p);h(L).height(0);u&&(I(C,Q),I(function(a){A.push(a.innerHTML);y.push(v(h(a).css("width")))},Q),I(function(a,b){a.style.width=y[b]},P),h(Q).height(0));I(function(a,b){a.innerHTML='<div class="dataTables_sizing" style="height:0;overflow:hidden;">'+z[b]+"</div>";a.style.width=Wa[b]},L);u&&I(function(a,b){a.innerHTML='<div class="dataTables_sizing" style="height:0;overflow:hidden;">'+A[b]+"</div>";a.style.width=y[b]},Q);if(o.outerWidth()<f){P=j.scrollHeight>j.offsetHeight||"scroll"==l.css("overflow-y")?f+b:f;if(U&&(j.scrollHeight>j.offsetHeight||"scroll"==l.css("overflow-y")))s.width=v(P-b);(""===c||""!==d)&&K(a,1,"Possible column misalignment",6)}else P="100%";q.width=v(P);g.width=v(P);u&&(a.nScrollFoot.style.width=v(P));!e&&U&&(q.height=v(t.offsetHeight+b));c=o.outerWidth();n[0].style.width=v(c);i.width=v(c);d=o.height()>j.clientHeight||"scroll"==l.css("overflow-y");e="padding"+(x.bScrollbarLeft?"Left":"Right");i[e]=d?b+"px":"0px";u&&(m[0].style.width=v(c),r[0].style.width=v(c),r[0].style[e]=d?b+"px":"0px");o.children("colgroup").insertBefore(o.children("thead"));l.scroll();if((a.bSorted||a.bFiltered)&&!a._drawHold)j.scrollTop=0}}function I(a,b,c){for(var d=0,e=0,f=b.length,g,j;e<f;){g=b[e].firstChild;for(j=c?c[e].firstChild:null;g;)1===g.nodeType&&(c?a(g,j,d):a(g,d),d++),g=g.nextSibling,j=c?j.nextSibling:null;e++}}function Ha(a){var b=a.nTable,c=a.aoColumns,d=a.oScroll,e=d.sY,f=d.sX,g=d.sXInner,j=c.length,i=na(a,"bVisible"),n=h("th",a.nTHead),l=b.getAttribute("width"),k=b.parentNode,r=!1,m,p,o=a.oBrowser,d=o.bScrollOversize;(m=b.style.width)&&-1!==m.indexOf("%")&&(l=m);for(m=0;m<i.length;m++)p=c[i[m]],null!==p.sWidth&&(p.sWidth=Gb(p.sWidthOrig,k),r=!0);if(d||!r&&!f&&!e&&j==ba(a)&&j==n.length)for(m=0;m<j;m++)i=$(a,m),null!==i&&(c[i].sWidth=v(n.eq(m).width()));else{j=h(b).clone().css("visibility","hidden").removeAttr("id");j.find("tbody tr").remove();var t=h("<tr/>").appendTo(j.find("tbody"));j.find("thead, tfoot").remove();j.append(h(a.nTHead).clone()).append(h(a.nTFoot).clone());j.find("tfoot th, tfoot td").css("width","");n=ta(a,j.find("thead")[0]);for(m=0;m<i.length;m++)p=c[i[m]],n[m].style.width=null!==p.sWidthOrig&&""!==p.sWidthOrig?v(p.sWidthOrig):"",p.sWidthOrig&&f&&h(n[m]).append(h("<div/>").css({width:p.sWidthOrig,margin:0,padding:0,border:0,height:1}));if(a.aoData.length)for(m=0;m<i.length;m++)r=i[m],p=c[r],h(Hb(a,r)).clone(!1).append(p.sContentPadding).appendTo(t);h("[name]",j).removeAttr("name");p=h("<div/>").css(f||e?{position:"absolute",top:0,left:0,height:1,right:0,overflow:"hidden"}:{}).append(j).appendTo(k);f&&g?j.width(g):f?(j.css("width","auto"),j.removeAttr("width"),j.width()<k.clientWidth&&l&&j.width(k.clientWidth)):e?j.width(k.clientWidth):l&&j.width(l);for(m=e=0;m<i.length;m++)k=h(n[m]),g=k.outerWidth()-k.width(),k=o.bBounding?Math.ceil(n[m].getBoundingClientRect().width):k.outerWidth(),e+=k,c[i[m]].sWidth=v(k-g);b.style.width=v(e);p.remove()}l&&(b.style.width=v(l));if((l||f)&&!a._reszEvt)b=function(){h(E).on("resize.DT-"+a.sInstance,Qa(function(){Z(a)}))},d?setTimeout(b,1E3):b(),a._reszEvt=!0}function Gb(a,b){if(!a)return 0;var c=h("<div/>").css("width",v(a)).appendTo(b||H.body),d=c[0].offsetWidth;c.remove();return d}function Hb(a,b){var c=Ib(a,b);if(0>c)return null;var d=a.aoData[c];return!d.nTr?h("<td/>").html(B(a,c,b,"display"))[0]:d.anCells[b]}function Ib(a,b){for(var c,d=-1,e=-1,f=0,g=a.aoData.length;f<g;f++)c=B(a,f,b,"display")+"",c=c.replace(bc,""),c=c.replace(/&nbsp;/g," "),c.length>d&&(d=c.length,e=f);return e}function v(a){return null===a?"0px":"number"==typeof a?0>a?"0px":a+"px":a.match(/\d#x2F;)?a+"px":a}function W(a){var b,c,d=[],e=a.aoColumns,f,g,j,i;b=a.aaSortingFixed;c=h.isPlainObject(b);var n=[];f=function(a){a.length&&!h.isArray(a[0])?n.push(a):h.merge(n,a)};h.isArray(b)&&f(b);c&&b.pre&&f(b.pre);f(a.aaSorting);c&&b.post&&f(b.post);for(a=0;a<n.length;a++){i=n[a][0];f=e[i].aDataSort;b=0;for(c=f.length;b<c;b++)g=f[b],j=e[g].sType||"string",n[a]._idx===k&&(n[a]._idx=h.inArray(n[a][1],e[g].asSorting)),d.push({src:i,col:g,dir:n[a][1],index:n[a]._idx,type:j,formatter:m.ext.type.order[j+"-pre"]})}return d}function ob(a){var b,c,d=[],e=m.ext.type.order,f=a.aoData,g=0,j,i=a.aiDisplayMaster,h;Ia(a);h=W(a);b=0;for(c=h.length;b<c;b++)j=h[b],j.formatter&&g++,Jb(a,j.col);if("ssp"!=y(a)&&0!==h.length){b=0;for(c=i.length;b<c;b++)d[i[b]]=b;g===h.length?i.sort(function(a,b){var c,e,g,j,i=h.length,k=f[a]._aSortData,m=f[b]._aSortData;for(g=0;g<i;g++)if(j=h[g],c=k[j.col],e=m[j.col],c=c<e?-1:c>e?1:0,0!==c)return"asc"===j.dir?c:-c;c=d[a];e=d[b];return c<e?-1:c>e?1:0}):i.sort(function(a,b){var c,g,j,i,k=h.length,m=f[a]._aSortData,p=f[b]._aSortData;for(j=0;j<k;j++)if(i=h[j],c=m[i.col],g=p[i.col],i=e[i.type+"-"+i.dir]||e["string-"+i.dir],c=i(c,g),0!==c)return c;c=d[a];g=d[b];return c<g?-1:c>g?1:0})}a.bSorted=!0}function Kb(a){for(var b,c,d=a.aoColumns,e=W(a),a=a.oLanguage.oAria,f=0,g=d.length;f<g;f++){c=d[f];var j=c.asSorting;b=c.sTitle.replace(/<.*?>/g,"");var i=c.nTh;i.removeAttribute("aria-sort");c.bSortable&&(0<e.length&&e[0].col==f?(i.setAttribute("aria-sort","asc"==e[0].dir?"ascending":"descending"),c=j[e[0].index+1]||j[0]):c=j[0],b+="asc"===c?a.sSortAscending:a.sSortDescending);i.setAttribute("aria-label",b)}}function Xa(a,b,c,d){var e=a.aaSorting,f=a.aoColumns[b].asSorting,g=function(a,b){var c=a._idx;c===k&&(c=h.inArray(a[1],f));return c+1<f.length?c+1:b?null:0};"number"===typeof e[0]&&(e=a.aaSorting=[e]);c&&a.oFeatures.bSortMulti?(c=h.inArray(b,D(e,"0")),-1!==c?(b=g(e[c],!0),null===b&&1===e.length&&(b=0),null===b?e.splice(c,1):(e[c][1]=f[b],e[c]._idx=b)):(e.push([b,f[0],0]),e[e.length-1]._idx=0)):e.length&&e[0][0]==b?(b=g(e[0]),e.length=1,e[0][1]=f[b],e[0]._idx=b):(e.length=0,e.push([b,f[0]]),e[0]._idx=0);T(a);"function"==typeof d&&d(a)}function Oa(a,b,c,d){var e=a.aoColumns[c];Ya(b,{},function(b){!1!==e.bSortable&&(a.oFeatures.bProcessing?(C(a,!0),setTimeout(function(){Xa(a,c,b.shiftKey,d);"ssp"!==y(a)&&C(a,!1)},0)):Xa(a,c,b.shiftKey,d))})}
4
- function ya(a){var b=a.aLastSort,c=a.oClasses.sSortColumn,d=W(a),e=a.oFeatures,f,g;if(e.bSort&&e.bSortClasses){e=0;for(f=b.length;e<f;e++)g=b[e].src,h(D(a.aoData,"anCells",g)).removeClass(c+(2>e?e+1:3));e=0;for(f=d.length;e<f;e++)g=d[e].src,h(D(a.aoData,"anCells",g)).addClass(c+(2>e?e+1:3))}a.aLastSort=d}function Jb(a,b){var c=a.aoColumns[b],d=m.ext.order[c.sSortDataType],e;d&&(e=d.call(a.oInstance,a,b,aa(a,b)));for(var f,g=m.ext.type.order[c.sType+"-pre"],j=0,i=a.aoData.length;j<i;j++)if(c=a.aoData[j],c._aSortData||(c._aSortData=[]),!c._aSortData[b]||d)f=d?e[j]:B(a,j,b,"sort"),c._aSortData[b]=g?g(f):f}function za(a){if(a.oFeatures.bStateSave&&!a.bDestroying){var b={time:+new Date,start:a._iDisplayStart,length:a._iDisplayLength,order:h.extend(!0,[],a.aaSorting),search:Cb(a.oPreviousSearch),columns:h.map(a.aoColumns,function(b,d){return{visible:b.bVisible,search:Cb(a.aoPreSearchCols[d])}})};s(a,"aoStateSaveParams","stateSaveParams",[a,b]);a.oSavedState=b;a.fnStateSaveCallback.call(a.oInstance,a,b)}}function Lb(a,b,c){var d,e,f=a.aoColumns,b=function(b){if(b&&b.time){var g=s(a,"aoStateLoadParams","stateLoadParams",[a,b]);if(-1===h.inArray(!1,g)&&(g=a.iStateDuration,!(0<g&&b.time<+new Date-1E3*g)&&!(b.columns&&f.length!==b.columns.length))){a.oLoadedState=h.extend(!0,{},b);b.start!==k&&(a._iDisplayStart=b.start,a.iInitDisplayStart=b.start);b.length!==k&&(a._iDisplayLength=b.length);b.order!==k&&(a.aaSorting=[],h.each(b.order,function(b,c){a.aaSorting.push(c[0]>=f.length?[0,c[1]]:c)}));b.search!==k&&h.extend(a.oPreviousSearch,Db(b.search));if(b.columns){d=0;for(e=b.columns.length;d<e;d++)g=b.columns[d],g.visible!==k&&(f[d].bVisible=g.visible),g.search!==k&&h.extend(a.aoPreSearchCols[d],Db(g.search))}s(a,"aoStateLoaded","stateLoaded",[a,b])}}c()};if(a.oFeatures.bStateSave){var g=a.fnStateLoadCallback.call(a.oInstance,a,b);g!==k&&b(g)}else c()}function Aa(a){var b=m.settings,a=h.inArray(a,D(b,"nTable"));return-1!==a?b[a]:null}function K(a,b,c,d){c="DataTables warning: "+(a?"table id="+a.sTableId+" - ":"")+c;d&&(c+=". For more information about this error, please see http://datatables.net/tn/"+d);if(b)E.console&&console.log&&console.log(c);else if(b=m.ext,b=b.sErrMode||b.errMode,a&&s(a,null,"error",[a,d,c]),"alert"==b)alert(c);else{if("throw"==b)throw Error(c);"function"==typeof b&&b(a,d,c)}}function F(a,b,c,d){h.isArray(c)?h.each(c,function(c,d){h.isArray(d)?F(a,b,d[0],d[1]):F(a,b,d)}):(d===k&&(d=c),b[c]!==k&&(a[d]=b[c]))}function Mb(a,b,c){var d,e;for(e in b)b.hasOwnProperty(e)&&(d=b[e],h.isPlainObject(d)?(h.isPlainObject(a[e])||(a[e]={}),h.extend(!0,a[e],d)):a[e]=c&&"data"!==e&&"aaData"!==e&&h.isArray(d)?d.slice():d);return a}function Ya(a,b,c){h(a).on("click.DT",b,function(b){a.blur();c(b)}).on("keypress.DT",b,function(a){13===a.which&&(a.preventDefault(),c(a))}).on("selectstart.DT",function(){return!1})}function z(a,b,c,d){c&&a[b].push({fn:c,sName:d})}function s(a,b,c,d){var e=[];b&&(e=h.map(a[b].slice().reverse(),function(b){return b.fn.apply(a.oInstance,d)}));null!==c&&(b=h.Event(c+".dt"),h(a.nTable).trigger(b,d),e.push(b.result));return e}function Ua(a){var b=a._iDisplayStart,c=a.fnDisplayEnd(),d=a._iDisplayLength;b>=c&&(b=c-d);b-=b%d;if(-1===d||0>b)b=0;a._iDisplayStart=b}function Pa(a,b){var c=a.renderer,d=m.ext.renderer[b];return h.isPlainObject(c)&&c[b]?d[c[b]]||d._:"string"===typeof c?d[c]||d._:d._}function y(a){return a.oFeatures.bServerSide?"ssp":a.ajax||a.sAjaxSource?"ajax":"dom"}function ia(a,b){var c=[],c=Nb.numbers_length,d=Math.floor(c/2);b<=c?c=X(0,b):a<=d?(c=X(0,c-2),c.push("ellipsis"),c.push(b-1)):(a>=b-1-d?c=X(b-(c-2),b):(c=X(a-d+2,a+d-1),c.push("ellipsis"),c.push(b-1)),c.splice(0,0,"ellipsis"),c.splice(0,0,0));c.DT_el="span";return c}function fb(a){h.each({num:function(b){return Ba(b,a)},"num-fmt":function(b){return Ba(b,a,Za)},"html-num":function(b){return Ba(b,a,Ca)},"html-num-fmt":function(b){return Ba(b,a,Ca,Za)}},function(b,c){x.type.order[b+a+"-pre"]=c;b.match(/^html\-/)&&(x.type.search[b+a]=x.type.search.html)})}function Ob(a){return function(){var b=[Aa(this[m.ext.iApiIndex])].concat(Array.prototype.slice.call(arguments));return m.ext.internal[a].apply(this,b)}}var m=function(a){this.$=function(a,b){return this.api(!0).$(a,b)};this._=function(a,b){return this.api(!0).rows(a,b).data()};this.api=function(a){return a?new t(Aa(this[x.iApiIndex])):new t(this)};this.fnAddData=function(a,b){var c=this.api(!0),d=h.isArray(a)&&(h.isArray(a[0])||h.isPlainObject(a[0]))?c.rows.add(a):c.row.add(a);(b===k||b)&&c.draw();return d.flatten().toArray()};this.fnAdjustColumnSizing=function(a){var b=this.api(!0).columns.adjust(),c=b.settings()[0],d=c.oScroll;a===k||a?b.draw(!1):(""!==d.sX||""!==d.sY)&&ma(c)};this.fnClearTable=function(a){var b=this.api(!0).clear();(a===k||a)&&b.draw()};this.fnClose=function(a){this.api(!0).row(a).child.hide()};this.fnDeleteRow=function(a,b,c){var d=this.api(!0),a=d.rows(a),e=a.settings()[0],h=e.aoData[a[0][0]];a.remove();b&&b.call(this,e,h);(c===k||c)&&d.draw();return h};this.fnDestroy=function(a){this.api(!0).destroy(a)};this.fnDraw=function(a){this.api(!0).draw(a)};this.fnFilter=function(a,b,c,d,e,h){e=this.api(!0);null===b||b===k?e.search(a,c,d,h):e.column(b).search(a,c,d,h);e.draw()};this.fnGetData=function(a,b){var c=this.api(!0);if(a!==k){var d=a.nodeName?a.nodeName.toLowerCase():"";return b!==k||"td"==d||"th"==d?c.cell(a,b).data():c.row(a).data()||null}return c.data().toArray()};this.fnGetNodes=function(a){var b=this.api(!0);return a!==k?b.row(a).node():b.rows().nodes().flatten().toArray()};this.fnGetPosition=function(a){var b=this.api(!0),c=a.nodeName.toUpperCase();return"TR"==c?b.row(a).index():"TD"==c||"TH"==c?(a=b.cell(a).index(),[a.row,a.columnVisible,a.column]):null};this.fnIsOpen=function(a){return this.api(!0).row(a).child.isShown()};this.fnOpen=function(a,b,c){return this.api(!0).row(a).child(b,c).show().child()[0]};this.fnPageChange=function(a,b){var c=this.api(!0).page(a);(b===k||b)&&c.draw(!1)};this.fnSetColumnVis=function(a,b,c){a=this.api(!0).column(a).visible(b);(c===k||c)&&a.columns.adjust().draw()};this.fnSettings=function(){return Aa(this[x.iApiIndex])};this.fnSort=function(a){this.api(!0).order(a).draw()};this.fnSortListener=function(a,b,c){this.api(!0).order.listener(a,b,c)};this.fnUpdate=function(a,b,c,d,e){var h=this.api(!0);c===k||null===c?h.row(b).data(a):h.cell(b,c).data(a);(e===k||e)&&h.columns.adjust();(d===k||d)&&h.draw();return 0};this.fnVersionCheck=x.fnVersionCheck;var b=this,c=a===k,d=this.length;c&&(a={});this.oApi=this.internal=x.internal;for(var e in m.ext.internal)e&&(this[e]=Ob(e));this.each(function(){var e={},g=1<d?Mb(e,a,!0):a,j=0,i,e=this.getAttribute("id"),n=!1,l=m.defaults,q=h(this);if("table"!=this.nodeName.toLowerCase())K(null,0,"Non-table node initialisation ("+this.nodeName+")",2);else{gb(l);hb(l.column);J(l,l,!0);J(l.column,l.column,!0);J(l,h.extend(g,q.data()));var r=m.settings,j=0;for(i=r.length;j<i;j++){var p=r[j];if(p.nTable==this||p.nTHead.parentNode==this||p.nTFoot&&p.nTFoot.parentNode==this){var t=g.bRetrieve!==k?g.bRetrieve:l.bRetrieve;if(c||t)return p.oInstance;if(g.bDestroy!==k?g.bDestroy:l.bDestroy){p.oInstance.fnDestroy();break}else{K(p,0,"Cannot reinitialise DataTable",3);return}}if(p.sTableId==this.id){r.splice(j,1);break}}if(null===e||""===e)this.id=e="DataTables_Table_"+m.ext._unique++;var o=h.extend(!0,{},m.models.oSettings,{sDestroyWidth:q[0].style.width,sInstance:e,sTableId:e});o.nTable=this;o.oApi=b.internal;o.oInit=g;r.push(o);o.oInstance=1===b.length?b:q.dataTable();gb(g);g.oLanguage&&Fa(g.oLanguage);g.aLengthMenu&&!g.iDisplayLength&&(g.iDisplayLength=h.isArray(g.aLengthMenu[0])?g.aLengthMenu[0][0]:g.aLengthMenu[0]);g=Mb(h.extend(!0,{},l),g);F(o.oFeatures,g,"bPaginate bLengthChange bFilter bSort bSortMulti bInfo bProcessing bAutoWidth bSortClasses bServerSide bDeferRender".split(" "));F(o,g,["asStripeClasses","ajax","fnServerData","fnFormatNumber","sServerMethod","aaSorting","aaSortingFixed","aLengthMenu","sPaginationType","sAjaxSource","sAjaxDataProp","iStateDuration","sDom","bSortCellsTop","iTabIndex","fnStateLoadCallback","fnStateSaveCallback","renderer","searchDelay","rowId",["iCookieDuration","iStateDuration"],["oSearch","oPreviousSearch"],["aoSearchCols","aoPreSearchCols"],["iDisplayLength","_iDisplayLength"],["bJQueryUI","bJUI"]]);F(o.oScroll,g,[["sScrollX","sX"],["sScrollXInner","sXInner"],["sScrollY","sY"],["bScrollCollapse","bCollapse"]]);F(o.oLanguage,g,"fnInfoCallback");z(o,"aoDrawCallback",g.fnDrawCallback,"user");z(o,"aoServerParams",g.fnServerParams,"user");z(o,"aoStateSaveParams",g.fnStateSaveParams,"user");z(o,"aoStateLoadParams",g.fnStateLoadParams,"user");z(o,"aoStateLoaded",g.fnStateLoaded,"user");z(o,"aoRowCallback",g.fnRowCallback,"user");z(o,"aoRowCreatedCallback",g.fnCreatedRow,"user");z(o,"aoHeaderCallback",g.fnHeaderCallback,"user");z(o,"aoFooterCallback",g.fnFooterCallback,"user");z(o,"aoInitComplete",g.fnInitComplete,"user");z(o,"aoPreDrawCallback",g.fnPreDrawCallback,"user");o.rowIdFn=R(g.rowId);ib(o);var u=o.oClasses;g.bJQueryUI?(h.extend(u,m.ext.oJUIClasses,g.oClasses),g.sDom===l.sDom&&"lfrtip"===l.sDom&&(o.sDom='<"H"lfr>t<"F"ip>'),o.renderer)?h.isPlainObject(o.renderer)&&!o.renderer.header&&(o.renderer.header="jqueryui"):o.renderer="jqueryui":h.extend(u,m.ext.classes,g.oClasses);q.addClass(u.sTable);o.iInitDisplayStart===k&&(o.iInitDisplayStart=g.iDisplayStart,o._iDisplayStart=g.iDisplayStart);null!==g.iDeferLoading&&(o.bDeferLoading=!0,e=h.isArray(g.iDeferLoading),o._iRecordsDisplay=e?g.iDeferLoading[0]:g.iDeferLoading,o._iRecordsTotal=e?g.iDeferLoading[1]:g.iDeferLoading);var v=o.oLanguage;h.extend(!0,v,g.oLanguage);v.sUrl&&(h.ajax({dataType:"json",url:v.sUrl,success:function(a){Fa(a);J(l.oLanguage,a);h.extend(!0,v,a);ha(o)},error:function(){ha(o)}}),n=!0);null===g.asStripeClasses&&(o.asStripeClasses=[u.sStripeOdd,u.sStripeEven]);var e=o.asStripeClasses,x=q.children("tbody").find("tr").eq(0);-1!==h.inArray(!0,h.map(e,function(a){return x.hasClass(a)}))&&(h("tbody tr",this).removeClass(e.join(" ")),o.asDestroyStripes=e.slice());e=[];r=this.getElementsByTagName("thead");0!==r.length&&(ea(o.aoHeader,r[0]),e=ta(o));if(null===g.aoColumns){r=[];j=0;for(i=e.length;j<i;j++)r.push(null)}else r=g.aoColumns;j=0;for(i=r.length;j<i;j++)Ga(o,e?e[j]:null);kb(o,g.aoColumnDefs,r,function(a,b){la(o,a,b)});if(x.length){var w=function(a,b){return a.getAttribute("data-"+b)!==null?b:null};h(x[0]).children("th, td").each(function(a,b){var c=o.aoColumns[a];if(c.mData===a){var d=w(b,"sort")||w(b,"order"),e=w(b,"filter")||w(b,"search");if(d!==null||e!==null){c.mData={_:a+".display",sort:d!==null?a+".@data-"+d:k,type:d!==null?a+".@data-"+d:k,filter:e!==null?a+".@data-"+e:k};la(o,a)}}})}var U=o.oFeatures,e=function(){if(g.aaSorting===k){var a=o.aaSorting;j=0;for(i=a.length;j<i;j++)a[j][1]=o.aoColumns[j].asSorting[0]}ya(o);U.bSort&&z(o,"aoDrawCallback",function(){if(o.bSorted){var a=W(o),b={};h.each(a,function(a,c){b[c.src]=c.dir});s(o,null,"order",[o,a,b]);Kb(o)}});z(o,"aoDrawCallback",function(){(o.bSorted||y(o)==="ssp"||U.bDeferRender)&&ya(o)},"sc");var a=q.children("caption").each(function(){this._captionSide=h(this).css("caption-side")}),b=q.children("thead");b.length===0&&(b=h("<thead/>").appendTo(q));o.nTHead=b[0];b=q.children("tbody");b.length===0&&(b=h("<tbody/>").appendTo(q));o.nTBody=b[0];b=q.children("tfoot");if(b.length===0&&a.length>0&&(o.oScroll.sX!==""||o.oScroll.sY!==""))b=h("<tfoot/>").appendTo(q);if(b.length===0||b.children().length===0)q.addClass(u.sNoFooter);else if(b.length>0){o.nTFoot=b[0];ea(o.aoFooter,o.nTFoot)}if(g.aaData)for(j=0;j<g.aaData.length;j++)N(o,g.aaData[j]);else(o.bDeferLoading||y(o)=="dom")&&oa(o,h(o.nTBody).children("tr"));o.aiDisplay=o.aiDisplayMaster.slice();o.bInitialised=!0;n===!1&&ha(o)};g.bStateSave?(U.bStateSave=!0,z(o,"aoDrawCallback",za,"state_save"),Lb(o,g,e)):e()}});b=null;return this},x,t,p,u,$a={},Pb=/[\r\n]/g,Ca=/<.*?>/g,cc=/^\d{2,4}[\.\/\-]\d{1,2}[\.\/\-]\d{1,2}([T ]{1}\d{1,2}[:\.]\d{2}([\.:]\d{2})?)?#x2F;,dc=RegExp("(\\/|\\.|\\*|\\+|\\?|\\||\\(|\\)|\\[|\\]|\\{|\\}|\\\\|\\$|\\^|\\-)","g"),Za=/[',$£€¥%\u2009\u202F\u20BD\u20a9\u20BArfk]/gi,M=function(a){return!a||!0===a||"-"===a?!0:!1},Qb=function(a){var b=parseInt(a,10);return!isNaN(b)&&isFinite(a)?b:null},Rb=function(a,b){$a[b]||($a[b]=RegExp(Sa(b),"g"));return"string"===typeof a&&"."!==b?a.replace(/\./g,"").replace($a[b],"."):a},ab=function(a,b,c){var d="string"===typeof a;if(M(a))return!0;b&&d&&(a=Rb(a,b));c&&d&&(a=a.replace(Za,""));return!isNaN(parseFloat(a))&&isFinite(a)},Sb=function(a,b,c){return M(a)?!0:!(M(a)||"string"===typeof a)?null:ab(a.replace(Ca,""),b,c)?!0:null},D=function(a,b,c){var d=[],e=0,f=a.length;if(c!==k)for(;e<f;e++)a[e]&&a[e][b]&&d.push(a[e][b][c]);else for(;e<f;e++)a[e]&&d.push(a[e][b]);return d},ja=function(a,b,c,d){var e=[],f=0,g=b.length;if(d!==k)for(;f<g;f++)a[b[f]][c]&&e.push(a[b[f]][c][d]);else for(;f<g;f++)e.push(a[b[f]][c]);return e},X=function(a,b){var c=[],d;b===k?(b=0,d=a):(d=b,b=a);for(var e=b;e<d;e++)c.push(e);return c},Tb=function(a){for(var b=[],c=0,d=a.length;c<d;c++)a[c]&&b.push(a[c]);return b},sa=function(a){var b;a:{if(!(2>a.length)){b=a.slice().sort();for(var c=b[0],d=1,e=b.length;d<e;d++){if(b[d]===c){b=!1;break a}c=b[d]}}b=!0}if(b)return a.slice();b=[];var e=a.length,f,g=0,d=0;a:for(;d<e;d++){c=a[d];for(f=0;f<g;f++)if(b[f]===c)continue a;b.push(c);g++}return b};m.util={throttle:function(a,b){var c=b!==k?b:200,d,e;return function(){var b=this,g=+new Date,h=arguments;d&&g<d+c?(clearTimeout(e),e=setTimeout(function(){d=k;a.apply(b,h)},c)):(d=g,a.apply(b,h))}},escapeRegex:function(a){return a.replace(dc,"\\$1")}};var A=function(a,b,c){a[b]!==k&&(a[c]=a[b])},ca=/\[.*?\]#x2F;,V=/\(\)#x2F;,Sa=m.util.escapeRegex,xa=h("<div>")[0],$b=xa.textContent!==k,bc=/<.*?>/g,Qa=m.util.throttle,Ub=[],w=Array.prototype,ec=function(a){var b,c,d=m.settings,e=h.map(d,function(a){return a.nTable});if(a){if(a.nTable&&a.oApi)return[a];if(a.nodeName&&"table"===a.nodeName.toLowerCase())return b=h.inArray(a,e),-1!==b?[d[b]]:null;if(a&&"function"===typeof a.settings)return a.settings().toArray();"string"===typeof a?c=h(a):a instanceof h&&(c=a)}else return[];if(c)return c.map(function(){b=h.inArray(this,e);return-1!==b?d[b]:null}).toArray()};t=function(a,b){if(!(this instanceof t))return new t(a,b);var c=[],d=function(a){(a=ec(a))&&(c=c.concat(a))};if(h.isArray(a))for(var e=0,f=a.length;e<f;e++)d(a[e]);else d(a);this.context=sa(c);b&&h.merge(this,b);this.selector={rows:null,cols:null,opts:null};t.extend(this,this,Ub)};m.Api=t;h.extend(t.prototype,{any:function(){return 0!==this.count()},concat:w.concat,context:[],count:function(){return this.flatten().length},each:function(a){for(var b=0,c=this.length;b<c;b++)a.call(this,this[b],b,this);return this},eq:function(a){var b=this.context;return b.length>a?new t(b[a],this[a]):null},filter:function(a){var b=[];if(w.filter)b=w.filter.call(this,a,this);else for(var c=0,d=this.length;c<d;c++)a.call(this,this[c],c,this)&&b.push(this[c]);return new t(this.context,b)},flatten:function(){var a=[];return new t(this.context,a.concat.apply(a,this.toArray()))},join:w.join,indexOf:w.indexOf||function(a,b){for(var c=b||0,d=this.length;c<d;c++)if(this[c]===a)return c;return-1},iterator:function(a,b,c,d){var e=[],f,g,h,i,n,l=this.context,m,p,u=this.selector;"string"===typeof a&&(d=c,c=b,b=a,a=!1);g=0;for(h=l.length;g<h;g++){var s=new t(l[g]);if("table"===b)f=c.call(s,l[g],g),f!==k&&e.push(f);else if("columns"===b||"rows"===b)f=c.call(s,l[g],this[g],g),f!==k&&e.push(f);else if("column"===b||"column-rows"===b||"row"===b||"cell"===b){p=this[g];"column-rows"===b&&(m=Da(l[g],u.opts));i=0;for(n=p.length;i<n;i++)f=p[i],f="cell"===b?c.call(s,l[g],f.row,f.column,g,i):c.call(s,l[g],f,g,i,m),f!==k&&e.push(f)}}return e.length||d?(a=new t(l,a?e.concat.apply([],e):e),b=a.selector,b.rows=u.rows,b.cols=u.cols,b.opts=u.opts,a):this},lastIndexOf:w.lastIndexOf||function(a,b){return this.indexOf.apply(this.toArray.reverse(),arguments)},length:0,map:function(a){var b=[];if(w.map)b=w.map.call(this,a,this);else for(var c=0,d=this.length;c<d;c++)b.push(a.call(this,this[c],c));return new t(this.context,b)},pluck:function(a){return this.map(function(b){return b[a]})},pop:w.pop,push:w.push,reduce:w.reduce||function(a,b){return jb(this,a,b,0,this.length,1)},reduceRight:w.reduceRight||function(a,b){return jb(this,a,b,this.length-1,-1,-1)},reverse:w.reverse,selector:null,shift:w.shift,slice:function(){return new t(this.context,this)},sort:w.sort,splice:w.splice,toArray:function(){return w.slice.call(this)},to$:function(){return h(this)},toJQuery:function(){return h(this)},unique:function(){return new t(this.context,sa(this))},unshift:w.unshift});t.extend=function(a,b,c){if(c.length&&b&&(b instanceof t||b.__dt_wrapper)){var d,e,f,g=function(a,b,c){return function(){var d=b.apply(a,arguments);t.extend(d,d,c.methodExt);return d}};d=0;for(e=c.length;d<e;d++)f=c[d],b[f.name]="function"===typeof f.val?g(a,f.val,f):h.isPlainObject(f.val)?{}:f.val,b[f.name].__dt_wrapper=!0,t.extend(a,b[f.name],f.propExt)}};t.register=p=function(a,b){if(h.isArray(a))for(var c=0,d=a.length;c<d;c++)t.register(a[c],b);else for(var e=a.split("."),f=Ub,g,j,c=0,d=e.length;c<d;c++){g=(j=-1!==e[c].indexOf("()"))?e[c].replace("()",""):e[c];var i;a:{i=0;for(var n=f.length;i<n;i++)if(f[i].name===g){i=f[i];break a}i=null}i||(i={name:g,val:{},methodExt:[],propExt:[]},f.push(i));c===d-1?i.val=b:f=j?i.methodExt:i.propExt}};t.registerPlural=u=function(a,b,c){t.register(a,c);t.register(b,function(){var a=c.apply(this,arguments);return a===this?this:a instanceof t?a.length?h.isArray(a[0])?new t(a.context,a[0]):a[0]:k:a})};p("tables()",function(a){var b;if(a){b=t;var c=this.context;if("number"===typeof a)a=[c[a]];else var d=h.map(c,function(a){return a.nTable}),a=h(d).filter(a).map(function(){var a=h.inArray(this,d);return c[a]}).toArray();b=new b(a)}else b=this;return b});p("table()",function(a){var a=this.tables(a),b=a.context;return b.length?new t(b[0]):a});u("tables().nodes()","table().node()",function(){return this.iterator("table",function(a){return a.nTable},1)});u("tables().body()","table().body()",function(){return this.iterator("table",function(a){return a.nTBody},1)});u("tables().header()","table().header()",function(){return this.iterator("table",function(a){return a.nTHead},1)});u("tables().footer()","table().footer()",function(){return this.iterator("table",function(a){return a.nTFoot},1)});u("tables().containers()","table().container()",function(){return this.iterator("table",function(a){return a.nTableWrapper},1)});p("draw()",function(a){return this.iterator("table",function(b){"page"===a?O(b):("string"===typeof a&&(a="full-hold"===a?!1:!0),T(b,!1===a))})});p("page()",function(a){return a===k?this.page.info().page:this.iterator("table",function(b){Va(b,a)})});p("page.info()",function(){if(0===this.context.length)return k;var a=this.context[0],b=a._iDisplayStart,c=a.oFeatures.bPaginate?a._iDisplayLength:-1,d=a.fnRecordsDisplay(),e=-1===c;return{page:e?0:Math.floor(b/c),pages:e?1:Math.ceil(d/c),start:b,end:a.fnDisplayEnd(),length:c,recordsTotal:a.fnRecordsTotal(),recordsDisplay:d,serverSide:"ssp"===y(a)}});p("page.len()",function(a){return a===k?0!==this.context.length?this.context[0]._iDisplayLength:k:this.iterator("table",function(b){Ta(b,a)})});var Vb=function(a,b,c){if(c){var d=new t(a);d.one("draw",function(){c(d.ajax.json())})}if("ssp"==y(a))T(a,b);else{C(a,!0);var e=a.jqXHR;e&&4!==e.readyState&&e.abort();ua(a,[],function(c){pa(a);for(var c=va(a,c),d=0,e=c.length;d<e;d++)N(a,c[d]);T(a,b);C(a,!1)})}};p("ajax.json()",function(){var a=this.context;if(0<a.length)return a[0].json});p("ajax.params()",function(){var a=this.context;if(0<a.length)return a[0].oAjaxData});p("ajax.reload()",function(a,b){return this.iterator("table",function(c){Vb(c,!1===b,a)})});p("ajax.url()",function(a){var b=this.context;if(a===k){if(0===b.length)return k;b=b[0];return b.ajax?h.isPlainObject(b.ajax)?b.ajax.url:b.ajax:b.sAjaxSource}return this.iterator("table",function(b){h.isPlainObject(b.ajax)?b.ajax.url=a:b.ajax=a})});p("ajax.url().load()",function(a,b){return this.iterator("table",function(c){Vb(c,!1===b,a)})});var bb=function(a,b,c,d,e){var f=[],g,j,i,n,l,m;i=typeof b;if(!b||"string"===i||"function"===i||b.length===k)b=[b];i=0;for(n=b.length;i<n;i++){j=b[i]&&b[i].split&&!b[i].match(/[\[\(:]/)?b[i].split(","):[b[i]];l=0;for(m=j.length;l<m;l++)(g=c("string"===typeof j[l]?h.trim(j[l]):j[l]))&&g.length&&(f=f.concat(g))}a=x.selector[a];if(a.length){i=0;for(n=a.length;i<n;i++)f=a[i](d,e,f)}return sa(f)},cb=function(a){a||(a={});a.filter&&a.search===k&&(a.search=a.filter);return h.extend({search:"none",order:"current",page:"all"},a)},db=function(a){for(var b=0,c=a.length;b<c;b++)if(0<a[b].length)return a[0]=a[b],a[0].length=1,a.length=1,a.context=[a.context[b]],a;a.length=0;return a},Da=function(a,b){var c,d,e,f=[],g=a.aiDisplay;c=a.aiDisplayMaster;var j=b.search;d=b.order;e=b.page;if("ssp"==y(a))return"removed"===j?[]:X(0,c.length);if("current"==e){c=a._iDisplayStart;for(d=a.fnDisplayEnd();c<d;c++)f.push(g[c])}else if("current"==d||"applied"==d)f="none"==j?c.slice():"applied"==j?g.slice():h.map(c,function(a){return-1===h.inArray(a,g)?a:null});else if("index"==d||"original"==d){c=0;for(d=a.aoData.length;c<d;c++)"none"==j?f.push(c):(e=h.inArray(c,g),(-1===e&&"removed"==j||0<=e&&"applied"==j)&&f.push(c))}return f};p("rows()",function(a,b){a===k?a="":h.isPlainObject(a)&&(b=a,a="");var b=cb(b),c=this.iterator("table",function(c){var e=b,f;return bb("row",a,function(a){var b=Qb(a);if(b!==null&&!e)return[b];f||(f=Da(c,e));if(b!==null&&h.inArray(b,f)!==-1)return[b];if(a===null||a===k||a==="")return f;if(typeof a==="function")return h.map(f,function(b){var e=c.aoData[b];return a(b,e._aData,e.nTr)?b:null});b=Tb(ja(c.aoData,f,"nTr"));if(a.nodeName){if(a._DT_RowIndex!==k)return[a._DT_RowIndex];if(a._DT_CellIndex)return[a._DT_CellIndex.row];b=h(a).closest("*[data-dt-row]");return b.length?[b.data("dt-row")]:[]}if(typeof a==="string"&&a.charAt(0)==="#"){var i=c.aIds[a.replace(/^#/,"")];if(i!==k)return[i.idx]}return h(b).filter(a).map(function(){return this._DT_RowIndex}).toArray()},c,e)},1);c.selector.rows=a;c.selector.opts=b;return c});p("rows().nodes()",function(){return this.iterator("row",function(a,b){return a.aoData[b].nTr||k},1)});p("rows().data()",function(){return this.iterator(!0,"rows",function(a,b){return ja(a.aoData,b,"_aData")},1)});u("rows().cache()","row().cache()",function(a){return this.iterator("row",function(b,c){var d=b.aoData[c];return"search"===a?d._aFilterData:d._aSortData},1)});u("rows().invalidate()","row().invalidate()",function(a){return this.iterator("row",function(b,c){da(b,c,a)})});u("rows().indexes()","row().index()",function(){return this.iterator("row",function(a,b){return b},1)});u("rows().ids()","row().id()",function(a){for(var b=[],c=this.context,d=0,e=c.length;d<e;d++)for(var f=0,g=this[d].length;f<g;f++){var h=c[d].rowIdFn(c[d].aoData[this[d][f]]._aData);b.push((!0===a?"#":"")+h)}return new t(c,b)});u("rows().remove()","row().remove()",function(){var a=this;this.iterator("row",function(b,c,d){var e=b.aoData,f=e[c],g,h,i,n,l;e.splice(c,1);g=0;for(h=e.length;g<h;g++)if(i=e[g],l=i.anCells,null!==i.nTr&&(i.nTr._DT_RowIndex=g),null!==l){i=0;for(n=l.length;i<n;i++)l[i]._DT_CellIndex.row=g}qa(b.aiDisplayMaster,c);qa(b.aiDisplay,c);qa(a[d],c,!1);Ua(b);c=b.rowIdFn(f._aData);c!==k&&delete b.aIds[c]});this.iterator("table",function(a){for(var c=0,d=a.aoData.length;c<d;c++)a.aoData[c].idx=c});return this});p("rows.add()",function(a){var b=this.iterator("table",function(b){var c,f,g,h=[];f=0;for(g=a.length;f<g;f++)c=a[f],c.nodeName&&"TR"===c.nodeName.toUpperCase()?h.push(oa(b,c)[0]):h.push(N(b,c));return h},1),c=this.rows(-1);c.pop();h.merge(c,b);return c});p("row()",function(a,b){return db(this.rows(a,b))});p("row().data()",function(a){var b=this.context;if(a===k)return b.length&&this.length?b[0].aoData[this[0]]._aData:k;b[0].aoData[this[0]]._aData=a;da(b[0],this[0],"data");return this});p("row().node()",function(){var a=this.context;return a.length&&this.length?a[0].aoData[this[0]].nTr||null:null});p("row.add()",function(a){a instanceof h&&a.length&&(a=a[0]);var b=this.iterator("table",function(b){return a.nodeName&&"TR"===a.nodeName.toUpperCase()?oa(b,a)[0]:N(b,a)});return this.row(b[0])});var eb=function(a,b){var c=a.context;if(c.length&&(c=c[0].aoData[b!==k?b:a[0]])&&c._details)c._details.remove(),c._detailsShow=k,c._details=k},Wb=function(a,b){var c=a.context;if(c.length&&a.length){var d=c[0].aoData[a[0]];if(d._details){(d._detailsShow=b)?d._details.insertAfter(d.nTr):d._details.detach();var e=c[0],f=new t(e),g=e.aoData;f.off("draw.dt.DT_details column-visibility.dt.DT_details destroy.dt.DT_details");0<D(g,"_details").length&&(f.on("draw.dt.DT_details",function(a,b){e===b&&f.rows({page:"current"}).eq(0).each(function(a){a=g[a];a._detailsShow&&a._details.insertAfter(a.nTr)})}),f.on("column-visibility.dt.DT_details",function(a,b){if(e===b)for(var c,d=ba(b),f=0,h=g.length;f<h;f++)c=g[f],c._details&&c._details.children("td[colspan]").attr("colspan",d)}),f.on("destroy.dt.DT_details",function(a,b){if(e===b)for(var c=0,d=g.length;c<d;c++)g[c]._details&&eb(f,c)}))}}};p("row().child()",function(a,b){var c=this.context;if(a===k)return c.length&&this.length?c[0].aoData[this[0]]._details:k;if(!0===a)this.child.show();else if(!1===a)eb(this);else if(c.length&&this.length){var d=c[0],c=c[0].aoData[this[0]],e=[],f=function(a,b){if(h.isArray(a)||a instanceof h)for(var c=0,k=a.length;c<k;c++)f(a[c],b);else a.nodeName&&"tr"===a.nodeName.toLowerCase()?e.push(a):(c=h("<tr><td/></tr>").addClass(b),h("td",c).addClass(b).html(a)[0].colSpan=ba(d),e.push(c[0]))};f(a,b);c._details&&c._details.detach();c._details=h(e);c._detailsShow&&c._details.insertAfter(c.nTr)}return this});p(["row().child.show()","row().child().show()"],function(){Wb(this,!0);return this});p(["row().child.hide()","row().child().hide()"],function(){Wb(this,!1);return this});p(["row().child.remove()","row().child().remove()"],function(){eb(this);return this});p("row().child.isShown()",function(){var a=this.context;return a.length&&this.length?a[0].aoData[this[0]]._detailsShow||!1:!1});var fc=/^([^:]+):(name|visIdx|visible)#x2F;,Xb=function(a,b,c,d,e){for(var c=[],d=0,f=e.length;d<f;d++)c.push(B(a,e[d],b));return c};p("columns()",function(a,b){a===k?a="":h.isPlainObject(a)&&(b=a,a="");var b=cb(b),c=this.iterator("table",function(c){var e=a,f=b,g=c.aoColumns,j=D(g,"sName"),i=D(g,"nTh");return bb("column",e,function(a){var b=Qb(a);if(a==="")return X(g.length);if(b!==null)return[b>=0?b:g.length+b];if(typeof a==="function"){var e=Da(c,f);return h.map(g,function(b,f){return a(f,Xb(c,f,0,0,e),i[f])?f:null})}var k=typeof a==="string"?a.match(fc):"";if(k)switch(k[2]){case "visIdx":case "visible":b=parseInt(k[1],10);if(b<0){var m=h.map(g,function(a,b){return a.bVisible?b:null});return[m[m.length+b]]}return[$(c,b)];case "name":return h.map(j,function(a,b){return a===k[1]?b:null});default:return[]}if(a.nodeName&&a._DT_CellIndex)return[a._DT_CellIndex.column];b=h(i).filter(a).map(function(){return h.inArray(this,i)}).toArray();if(b.length||!a.nodeName)return b;b=h(a).closest("*[data-dt-column]");return b.length?[b.data("dt-column")]:[]},c,f)},1);c.selector.cols=a;c.selector.opts=b;return c});u("columns().header()","column().header()",function(){return this.iterator("column",function(a,b){return a.aoColumns[b].nTh},1)});u("columns().footer()","column().footer()",function(){return this.iterator("column",function(a,b){return a.aoColumns[b].nTf},1)});u("columns().data()","column().data()",function(){return this.iterator("column-rows",Xb,1)});u("columns().dataSrc()","column().dataSrc()",function(){return this.iterator("column",function(a,b){return a.aoColumns[b].mData},1)});u("columns().cache()","column().cache()",function(a){return this.iterator("column-rows",function(b,c,d,e,f){return ja(b.aoData,f,"search"===a?"_aFilterData":"_aSortData",c)},1)});u("columns().nodes()","column().nodes()",function(){return this.iterator("column-rows",function(a,b,c,d,e){return ja(a.aoData,e,"anCells",b)},1)});u("columns().visible()","column().visible()",function(a,b){var c=this.iterator("column",function(b,c){if(a===k)return b.aoColumns[c].bVisible;var f=b.aoColumns,g=f[c],j=b.aoData,i,n,l;if(a!==k&&g.bVisible!==a){if(a){var m=h.inArray(!0,D(f,"bVisible"),c+1);i=0;for(n=j.length;i<n;i++)l=j[i].nTr,f=j[i].anCells,l&&l.insertBefore(f[c],f[m]||null)}else h(D(b.aoData,"anCells",c)).detach();g.bVisible=a;fa(b,b.aoHeader);fa(b,b.aoFooter);za(b)}});a!==k&&(this.iterator("column",function(c,e){s(c,null,"column-visibility",[c,e,a,b])}),(b===k||b)&&this.columns.adjust());return c});u("columns().indexes()","column().index()",function(a){return this.iterator("column",function(b,c){return"visible"===a?aa(b,c):c},1)});p("columns.adjust()",function(){return this.iterator("table",function(a){Z(a)},1)});p("column.index()",function(a,b){if(0!==this.context.length){var c=this.context[0];if("fromVisible"===a||"toData"===a)return $(c,b);if("fromData"===a||"toVisible"===a)return aa(c,b)}});p("column()",function(a,b){return db(this.columns(a,b))});p("cells()",function(a,b,c){h.isPlainObject(a)&&(a.row===k?(c=a,a=null):(c=b,b=null));h.isPlainObject(b)&&(c=b,b=null);if(null===b||b===k)return this.iterator("table",function(b){var d=a,e=cb(c),f=b.aoData,g=Da(b,e),j=Tb(ja(f,g,"anCells")),i=h([].concat.apply([],j)),l,n=b.aoColumns.length,m,p,u,t,s,v;return bb("cell",d,function(a){var c=typeof a==="function";if(a===null||a===k||c){m=[];p=0;for(u=g.length;p<u;p++){l=g[p];for(t=0;t<n;t++){s={row:l,column:t};if(c){v=f[l];a(s,B(b,l,t),v.anCells?v.anCells[t]:null)&&m.push(s)}else m.push(s)}}return m}if(h.isPlainObject(a))return[a];c=i.filter(a).map(function(a,b){return{row:b._DT_CellIndex.row,column:b._DT_CellIndex.column}}).toArray();if(c.length||!a.nodeName)return c;v=h(a).closest("*[data-dt-row]");return v.length?[{row:v.data("dt-row"),column:v.data("dt-column")}]:[]},b,e)});var d=this.columns(b,c),e=this.rows(a,c),f,g,j,i,n,l=this.iterator("table",function(a,b){f=[];g=0;for(j=e[b].length;g<j;g++){i=0;for(n=d[b].length;i<n;i++)f.push({row:e[b][g],column:d[b][i]})}return f},1);h.extend(l.selector,{cols:b,rows:a,opts:c});return l});u("cells().nodes()","cell().node()",function(){return this.iterator("cell",function(a,b,c){return(a=a.aoData[b])&&a.anCells?a.anCells[c]:k},1)});p("cells().data()",function(){return this.iterator("cell",function(a,b,c){return B(a,b,c)},1)});u("cells().cache()","cell().cache()",function(a){a="search"===a?"_aFilterData":"_aSortData";return this.iterator("cell",function(b,c,d){return b.aoData[c][a][d]},1)});u("cells().render()","cell().render()",function(a){return this.iterator("cell",function(b,c,d){return B(b,c,d,a)},1)});u("cells().indexes()","cell().index()",function(){return this.iterator("cell",function(a,b,c){return{row:b,column:c,columnVisible:aa(a,c)}},1)});u("cells().invalidate()","cell().invalidate()",function(a){return this.iterator("cell",function(b,c,d){da(b,c,a,d)})});p("cell()",function(a,b,c){return db(this.cells(a,b,c))});p("cell().data()",function(a){var b=this.context,c=this[0];if(a===k)return b.length&&c.length?B(b[0],c[0].row,c[0].column):k;lb(b[0],c[0].row,c[0].column,a);da(b[0],c[0].row,"data",c[0].column);return this});p("order()",function(a,b){var c=this.context;if(a===k)return 0!==c.length?c[0].aaSorting:k;"number"===typeof a?a=[[a,b]]:a.length&&!h.isArray(a[0])&&(a=Array.prototype.slice.call(arguments));return this.iterator("table",function(b){b.aaSorting=a.slice()})});p("order.listener()",function(a,b,c){return this.iterator("table",function(d){Oa(d,a,b,c)})});p("order.fixed()",function(a){if(!a){var b=this.context,b=b.length?b[0].aaSortingFixed:k;return h.isArray(b)?{pre:b}:b}return this.iterator("table",function(b){b.aaSortingFixed=h.extend(!0,{},a)})});p(["columns().order()","column().order()"],function(a){var b=this;return this.iterator("table",function(c,d){var e=[];h.each(b[d],function(b,c){e.push([c,a])});c.aaSorting=e})});p("search()",function(a,b,c,d){var e=this.context;return a===k?0!==e.length?e[0].oPreviousSearch.sSearch:k:this.iterator("table",function(e){e.oFeatures.bFilter&&ga(e,h.extend({},e.oPreviousSearch,{sSearch:a+"",bRegex:null===b?!1:b,bSmart:null===c?!0:c,bCaseInsensitive:null===d?!0:d}),1)})});u("columns().search()","column().search()",function(a,b,c,d){return this.iterator("column",function(e,f){var g=e.aoPreSearchCols;if(a===k)return g[f].sSearch;e.oFeatures.bFilter&&(h.extend(g[f],{sSearch:a+"",bRegex:null===b?!1:b,bSmart:null===c?!0:c,bCaseInsensitive:null===d?!0:d}),ga(e,e.oPreviousSearch,1))})});p("state()",function(){return this.context.length?this.context[0].oSavedState:null});p("state.clear()",function(){return this.iterator("table",function(a){a.fnStateSaveCallback.call(a.oInstance,a,{})})});p("state.loaded()",function(){return this.context.length?this.context[0].oLoadedState:null});p("state.save()",function(){return this.iterator("table",function(a){za(a)})});m.versionCheck=m.fnVersionCheck=function(a){for(var b=m.version.split("."),a=a.split("."),c,d,e=0,f=a.length;e<f;e++)if(c=parseInt(b[e],10)||0,d=parseInt(a[e],10)||0,c!==d)return c>d;return!0};m.isDataTable=m.fnIsDataTable=function(a){var b=h(a).get(0),c=!1;if(a instanceof m.Api)return!0;h.each(m.settings,function(a,e){var f=e.nScrollHead?h("table",e.nScrollHead)[0]:null,g=e.nScrollFoot?h("table",e.nScrollFoot)[0]:null;if(e.nTable===b||f===b||g===b)c=!0});return c};m.tables=m.fnTables=function(a){var b=!1;h.isPlainObject(a)&&(b=a.api,a=a.visible);var c=h.map(m.settings,function(b){if(!a||a&&h(b.nTable).is(":visible"))return b.nTable});return b?new t(c):c};m.camelToHungarian=J;p("$()",function(a,b){var c=this.rows(b).nodes(),c=h(c);return h([].concat(c.filter(a).toArray(),c.find(a).toArray()))});h.each(["on","one","off"],function(a,b){p(b+"()",function(){var a=Array.prototype.slice.call(arguments);a[0]=h.map(a[0].split(/\s/),function(a){return!a.match(/\.dt\b/)?a+".dt":a}).join(" ");var d=h(this.tables().nodes());d[b].apply(d,a);return this})});p("clear()",function(){return this.iterator("table",function(a){pa(a)})});p("settings()",function(){return new t(this.context,this.context)});p("init()",function(){var a=this.context;return a.length?a[0].oInit:null});p("data()",function(){return this.iterator("table",function(a){return D(a.aoData,"_aData")}).flatten()});p("destroy()",function(a){a=a||!1;return this.iterator("table",function(b){var c=b.nTableWrapper.parentNode,d=b.oClasses,e=b.nTable,f=b.nTBody,g=b.nTHead,j=b.nTFoot,i=h(e),f=h(f),k=h(b.nTableWrapper),l=h.map(b.aoData,function(a){return a.nTr}),p;b.bDestroying=!0;s(b,"aoDestroyCallback","destroy",[b]);a||(new t(b)).columns().visible(!0);k.off(".DT").find(":not(tbody *)").off(".DT");h(E).off(".DT-"+b.sInstance);e!=g.parentNode&&(i.children("thead").detach(),i.append(g));j&&e!=j.parentNode&&(i.children("tfoot").detach(),i.append(j));b.aaSorting=[];b.aaSortingFixed=[];ya(b);h(l).removeClass(b.asStripeClasses.join(" "));h("th, td",g).removeClass(d.sSortable+" "+d.sSortableAsc+" "+d.sSortableDesc+" "+d.sSortableNone);b.bJUI&&(h("th span."+d.sSortIcon+", td span."+d.sSortIcon,g).detach(),h("th, td",g).each(function(){var a=h("div."+d.sSortJUIWrapper,this);h(this).append(a.contents());a.detach()}));f.children().detach();f.append(l);g=a?"remove":"detach";i[g]();k[g]();!a&&c&&(c.insertBefore(e,b.nTableReinsertBefore),i.css("width",b.sDestroyWidth).removeClass(d.sTable),(p=b.asDestroyStripes.length)&&f.children().each(function(a){h(this).addClass(b.asDestroyStripes[a%p])}));c=h.inArray(b,m.settings);-1!==c&&m.settings.splice(c,1)})});h.each(["column","row","cell"],function(a,b){p(b+"s().every()",function(a){var d=this.selector.opts,e=this;return this.iterator(b,function(f,g,h,i,m){a.call(e[b](g,"cell"===b?h:d,"cell"===b?d:k),g,h,i,m)})})});p("i18n()",function(a,b,c){var d=this.context[0],a=R(a)(d.oLanguage);a===k&&(a=b);c!==k&&h.isPlainObject(a)&&(a=a[c]!==k?a[c]:a._);return a.replace("%d",c)});m.version="1.10.15";m.settings=[];m.models={};m.models.oSearch={bCaseInsensitive:!0,sSearch:"",bRegex:!1,bSmart:!0};m.models.oRow={nTr:null,anCells:null,_aData:[],_aSortData:null,_aFilterData:null,_sFilterRow:null,_sRowStripe:"",src:null,idx:-1};m.models.oColumn={idx:null,aDataSort:null,asSorting:null,bSearchable:null,bSortable:null,bVisible:null,_sManualType:null,_bAttrSrc:!1,fnCreatedCell:null,fnGetData:null,fnSetData:null,mData:null,mRender:null,nTh:null,nTf:null,sClass:null,sContentPadding:null,sDefaultContent:null,sName:null,sSortDataType:"std",sSortingClass:null,sSortingClassJUI:null,sTitle:null,sType:null,sWidth:null,sWidthOrig:null};m.defaults={aaData:null,aaSorting:[[0,"asc"]],aaSortingFixed:[],ajax:null,aLengthMenu:[10,25,50,100],aoColumns:null,aoColumnDefs:null,aoSearchCols:[],asStripeClasses:null,bAutoWidth:!0,bDeferRender:!1,bDestroy:!1,bFilter:!0,bInfo:!0,bJQueryUI:!1,bLengthChange:!0,bPaginate:!0,bProcessing:!1,bRetrieve:!1,bScrollCollapse:!1,bServerSide:!1,bSort:!0,bSortMulti:!0,bSortCellsTop:!1,bSortClasses:!0,bStateSave:!1,fnCreatedRow:null,fnDrawCallback:null,fnFooterCallback:null,fnFormatNumber:function(a){return a.toString().replace(/\B(?=(\d{3})+(?!\d))/g,this.oLanguage.sThousands)},fnHeaderCallback:null,fnInfoCallback:null,fnInitComplete:null,fnPreDrawCallback:null,fnRowCallback:null,fnServerData:null,fnServerParams:null,fnStateLoadCallback:function(a){try{return JSON.parse((-1===a.iStateDuration?sessionStorage:localStorage).getItem("DataTables_"+a.sInstance+"_"+location.pathname))}catch(b){}},fnStateLoadParams:null,fnStateLoaded:null,fnStateSaveCallback:function(a,b){try{(-1===a.iStateDuration?sessionStorage:localStorage).setItem("DataTables_"+a.sInstance+"_"+location.pathname,JSON.stringify(b))}catch(c){}},fnStateSaveParams:null,iStateDuration:7200,iDeferLoading:null,iDisplayLength:10,iDisplayStart:0,iTabIndex:0,oClasses:{},oLanguage:{oAria:{sSortAscending:": activate to sort column ascending",sSortDescending:": activate to sort column descending"},oPaginate:{sFirst:"First",sLast:"Last",sNext:"Next",sPrevious:"Previous"},sEmptyTable:"No data available in table",sInfo:"Showing _START_ to _END_ of _TOTAL_ entries",sInfoEmpty:"Showing 0 to 0 of 0 entries",sInfoFiltered:"(filtered from _MAX_ total entries)",sInfoPostFix:"",sDecimal:"",sThousands:",",sLengthMenu:"Show _MENU_ entries",sLoadingRecords:"Loading...",sProcessing:"Processing...",sSearch:"Search:",sSearchPlaceholder:"",sUrl:"",sZeroRecords:"No matching records found"},oSearch:h.extend({},m.models.oSearch),sAjaxDataProp:"data",sAjaxSource:null,sDom:"lfrtip",searchDelay:null,sPaginationType:"simple_numbers",sScrollX:"",sScrollXInner:"",sScrollY:"",sServerMethod:"GET",renderer:null,rowId:"DT_RowId"};Y(m.defaults);m.defaults.column={aDataSort:null,iDataSort:-1,asSorting:["asc","desc"],bSearchable:!0,bSortable:!0,bVisible:!0,fnCreatedCell:null,mData:null,mRender:null,sCellType:"td",sClass:"",sContentPadding:"",sDefaultContent:null,sName:"",sSortDataType:"std",sTitle:null,sType:null,sWidth:null};Y(m.defaults.column);m.models.oSettings={oFeatures:{bAutoWidth:null,bDeferRender:null,bFilter:null,bInfo:null,bLengthChange:null,bPaginate:null,bProcessing:null,bServerSide:null,bSort:null,bSortMulti:null,bSortClasses:null,bStateSave:null},oScroll:{bCollapse:null,iBarWidth:0,sX:null,sXInner:null,sY:null},oLanguage:{fnInfoCallback:null},oBrowser:{bScrollOversize:!1,bScrollbarLeft:!1,bBounding:!1,barWidth:0},ajax:null,aanFeatures:[],aoData:[],aiDisplay:[],aiDisplayMaster:[],aIds:{},aoColumns:[],aoHeader:[],aoFooter:[],oPreviousSearch:{},aoPreSearchCols:[],aaSorting:null,aaSortingFixed:[],asStripeClasses:null,asDestroyStripes:[],sDestroyWidth:0,aoRowCallback:[],aoHeaderCallback:[],aoFooterCallback:[],aoDrawCallback:[],aoRowCreatedCallback:[],aoPreDrawCallback:[],aoInitComplete:[],aoStateSaveParams:[],aoStateLoadParams:[],aoStateLoaded:[],sTableId:"",nTable:null,nTHead:null,nTFoot:null,nTBody:null,nTableWrapper:null,bDeferLoading:!1,bInitialised:!1,aoOpenRows:[],sDom:null,searchDelay:null,sPaginationType:"two_button",iStateDuration:0,aoStateSave:[],aoStateLoad:[],oSavedState:null,oLoadedState:null,sAjaxSource:null,sAjaxDataProp:null,bAjaxDataGet:!0,jqXHR:null,json:k,oAjaxData:k,fnServerData:null,aoServerParams:[],sServerMethod:null,fnFormatNumber:null,aLengthMenu:null,iDraw:0,bDrawing:!1,iDrawError:-1,_iDisplayLength:10,_iDisplayStart:0,_iRecordsTotal:0,_iRecordsDisplay:0,bJUI:null,oClasses:{},bFiltered:!1,bSorted:!1,bSortCellsTop:null,oInit:null,aoDestroyCallback:[],fnRecordsTotal:function(){return"ssp"==y(this)?1*this._iRecordsTotal:this.aiDisplayMaster.length},fnRecordsDisplay:function(){return"ssp"==y(this)?1*this._iRecordsDisplay:this.aiDisplay.length},fnDisplayEnd:function(){var a=this._iDisplayLength,b=this._iDisplayStart,c=b+a,d=this.aiDisplay.length,e=this.oFeatures,f=e.bPaginate;return e.bServerSide?!1===f||-1===a?b+d:Math.min(b+a,this._iRecordsDisplay):!f||c>d||-1===a?d:c},oInstance:null,sInstance:null,iTabIndex:0,nScrollHead:null,nScrollFoot:null,aLastSort:[],oPlugins:{},rowIdFn:null,rowId:null};m.ext=x={buttons:{},classes:{},builder:"-source-",errMode:"alert",feature:[],search:[],selector:{cell:[],column:[],row:[]},internal:{},legacy:{ajax:null},pager:{},renderer:{pageButton:{},header:{}},order:{},type:{detect:[],search:{},order:{}},_unique:0,fnVersionCheck:m.fnVersionCheck,iApiIndex:0,oJUIClasses:{},sVersion:m.version};h.extend(x,{afnFiltering:x.search,aTypes:x.type.detect,ofnSearch:x.type.search,oSort:x.type.order,afnSortData:x.order,aoFeatures:x.feature,oApi:x.internal,oStdClasses:x.classes,oPagination:x.pager});h.extend(m.ext.classes,{sTable:"dataTable",sNoFooter:"no-footer",sPageButton:"paginate_button",sPageButtonActive:"current",sPageButtonDisabled:"disabled",sStripeOdd:"odd",sStripeEven:"even",sRowEmpty:"dataTables_empty",sWrapper:"dataTables_wrapper",sFilter:"dataTables_filter",sInfo:"dataTables_info",sPaging:"dataTables_paginate paging_",sLength:"dataTables_length",sProcessing:"dataTables_processing",sSortAsc:"sorting_asc",sSortDesc:"sorting_desc",sSortable:"sorting",sSortableAsc:"sorting_asc_disabled",sSortableDesc:"sorting_desc_disabled",sSortableNone:"sorting_disabled",sSortColumn:"sorting_",sFilterInput:"",sLengthSelect:"",sScrollWrapper:"dataTables_scroll",sScrollHead:"dataTables_scrollHead",sScrollHeadInner:"dataTables_scrollHeadInner",sScrollBody:"dataTables_scrollBody",sScrollFoot:"dataTables_scrollFoot",sScrollFootInner:"dataTables_scrollFootInner",sHeaderTH:"",sFooterTH:"",sSortJUIAsc:"",sSortJUIDesc:"",sSortJUI:"",sSortJUIAscAllowed:"",sSortJUIDescAllowed:"",sSortJUIWrapper:"",sSortIcon:"",sJUIHeader:"",sJUIFooter:""});var Ea="",Ea="",G=Ea+"ui-state-default",ka=Ea+"css_right ui-icon ui-icon-",Yb=Ea+"fg-toolbar ui-toolbar ui-widget-header ui-helper-clearfix";h.extend(m.ext.oJUIClasses,m.ext.classes,{sPageButton:"fg-button ui-button "+G,sPageButtonActive:"ui-state-disabled",sPageButtonDisabled:"ui-state-disabled",sPaging:"dataTables_paginate fg-buttonset ui-buttonset fg-buttonset-multi ui-buttonset-multi paging_",sSortAsc:G+" sorting_asc",sSortDesc:G+" sorting_desc",sSortable:G+" sorting",sSortableAsc:G+" sorting_asc_disabled",sSortableDesc:G+" sorting_desc_disabled",sSortableNone:G+" sorting_disabled",sSortJUIAsc:ka+"triangle-1-n",sSortJUIDesc:ka+"triangle-1-s",sSortJUI:ka+"carat-2-n-s",sSortJUIAscAllowed:ka+"carat-1-n",sSortJUIDescAllowed:ka+"carat-1-s",sSortJUIWrapper:"DataTables_sort_wrapper",sSortIcon:"DataTables_sort_icon",sScrollHead:"dataTables_scrollHead "+G,sScrollFoot:"dataTables_scrollFoot "+G,sHeaderTH:G,sFooterTH:G,sJUIHeader:Yb+" ui-corner-tl ui-corner-tr",sJUIFooter:Yb+" ui-corner-bl ui-corner-br"});var Nb=m.ext.pager;h.extend(Nb,{simple:function(){return["previous","next"]},full:function(){return["first","previous","next","last"]},numbers:function(a,b){return[ia(a,b)]},simple_numbers:function(a,b){return["previous",ia(a,b),"next"]},full_numbers:function(a,b){return["first","previous",ia(a,b),"next","last"]},first_last_numbers:function(a,b){return["first",ia(a,b),"last"]},_numbers:ia,numbers_length:7});h.extend(!0,m.ext.renderer,{pageButton:{_:function(a,b,c,d,e,f){var g=a.oClasses,j=a.oLanguage.oPaginate,i=a.oLanguage.oAria.paginate||{},m,l,p=0,r=function(b,d){var k,t,u,s,v=function(b){Va(a,b.data.action,!0)};k=0;for(t=d.length;k<t;k++){s=d[k];if(h.isArray(s)){u=h("<"+(s.DT_el||"div")+"/>").appendTo(b);r(u,s)}else{m=null;l="";switch(s){case "ellipsis":b.append('<span class="ellipsis">&#x2026;</span>');break;case "first":m=j.sFirst;l=s+(e>0?"":" "+g.sPageButtonDisabled);break;case "previous":m=j.sPrevious;l=s+(e>0?"":" "+g.sPageButtonDisabled);break;case "next":m=j.sNext;l=s+(e<f-1?"":" "+g.sPageButtonDisabled);break;case "last":m=j.sLast;l=s+(e<f-1?"":" "+g.sPageButtonDisabled);break;default:m=s+1;l=e===s?g.sPageButtonActive:""}if(m!==null){u=h("<a>",{"class":g.sPageButton+" "+l,"aria-controls":a.sTableId,"aria-label":i[s],"data-dt-idx":p,tabindex:a.iTabIndex,id:c===0&&typeof s==="string"?a.sTableId+"_"+s:null}).html(m).appendTo(b);Ya(u,{action:s},v);p++}}}},t;try{t=h(b).find(H.activeElement).data("dt-idx")}catch(u){}r(h(b).empty(),d);t!==k&&h(b).find("[data-dt-idx="+t+"]").focus()}}});h.extend(m.ext.type.detect,[function(a,b){var c=b.oLanguage.sDecimal;return ab(a,c)?"num"+c:null},function(a){if(a&&!(a instanceof Date)&&!cc.test(a))return null;var b=Date.parse(a);return null!==b&&!isNaN(b)||M(a)?"date":null},function(a,b){var c=b.oLanguage.sDecimal;return ab(a,c,!0)?"num-fmt"+c:null},function(a,b){var c=b.oLanguage.sDecimal;return Sb(a,c)?"html-num"+c:null},function(a,b){var c=b.oLanguage.sDecimal;return Sb(a,c,!0)?"html-num-fmt"+c:null},function(a){return M(a)||"string"===typeof a&&-1!==a.indexOf("<")?"html":null}]);h.extend(m.ext.type.search,{html:function(a){return M(a)?a:"string"===typeof a?a.replace(Pb," ").replace(Ca,""):""},string:function(a){return M(a)?a:"string"===typeof a?a.replace(Pb," "):a}});var Ba=function(a,b,c,d){if(0!==a&&(!a||"-"===a))return-Infinity;b&&(a=Rb(a,b));a.replace&&(c&&(a=a.replace(c,"")),d&&(a=a.replace(d,"")));return 1*a};h.extend(x.type.order,{"date-pre":function(a){return Date.parse(a)||-Infinity},"html-pre":function(a){return M(a)?"":a.replace?a.replace(/<.*?>/g,"").toLowerCase():a+""},"string-pre":function(a){return M(a)?"":"string"===typeof a?a.toLowerCase():!a.toString?"":a.toString()},"string-asc":function(a,b){return a<b?-1:a>b?1:0},"string-desc":function(a,b){return a<b?1:a>b?-1:0}});fb("");h.extend(!0,m.ext.renderer,{header:{_:function(a,b,c,d){h(a.nTable).on("order.dt.DT",function(e,f,g,h){if(a===f){e=c.idx;b.removeClass(c.sSortingClass+" "+d.sSortAsc+" "+d.sSortDesc).addClass(h[e]=="asc"?d.sSortAsc:h[e]=="desc"?d.sSortDesc:c.sSortingClass)}})},jqueryui:function(a,b,c,d){h("<div/>").addClass(d.sSortJUIWrapper).append(b.contents()).append(h("<span/>").addClass(d.sSortIcon+" "+c.sSortingClassJUI)).appendTo(b);h(a.nTable).on("order.dt.DT",function(e,f,g,h){if(a===f){e=c.idx;b.removeClass(d.sSortAsc+" "+d.sSortDesc).addClass(h[e]=="asc"?d.sSortAsc:h[e]=="desc"?d.sSortDesc:c.sSortingClass);b.find("span."+d.sSortIcon).removeClass(d.sSortJUIAsc+" "+d.sSortJUIDesc+" "+d.sSortJUI+" "+d.sSortJUIAscAllowed+" "+d.sSortJUIDescAllowed).addClass(h[e]=="asc"?d.sSortJUIAsc:h[e]=="desc"?d.sSortJUIDesc:c.sSortingClassJUI)}})}}});var Zb=function(a){return"string"===typeof a?a.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"):a};m.render={number:function(a,b,c,d,e){return{display:function(f){if("number"!==typeof f&&"string"!==typeof f)return f;var g=0>f?"-":"",h=parseFloat(f);if(isNaN(h))return Zb(f);h=h.toFixed(c);f=Math.abs(h);h=parseInt(f,10);f=c?b+(f-h).toFixed(c).substring(2):"";return g+(d||"")+h.toString().replace(/\B(?=(\d{3})+(?!\d))/g,a)+f+(e||"")}}},text:function(){return{display:Zb}}};h.extend(m.ext.internal,{_fnExternApiFunc:Ob,_fnBuildAjax:ua,_fnAjaxUpdate:nb,_fnAjaxParameters:wb,_fnAjaxUpdateDraw:xb,_fnAjaxDataSrc:va,_fnAddColumn:Ga,_fnColumnOptions:la,_fnAdjustColumnSizing:Z,_fnVisibleToColumnIndex:$,_fnColumnIndexToVisible:aa,_fnVisbleColumns:ba,_fnGetColumns:na,_fnColumnTypes:Ia,_fnApplyColumnDefs:kb,_fnHungarianMap:Y,_fnCamelToHungarian:J,_fnLanguageCompat:Fa,_fnBrowserDetect:ib,_fnAddData:N,_fnAddTr:oa,_fnNodeToDataIndex:function(a,b){return b._DT_RowIndex!==k?b._DT_RowIndex:null},_fnNodeToColumnIndex:function(a,b,c){return h.inArray(c,a.aoData[b].anCells)},_fnGetCellData:B,_fnSetCellData:lb,_fnSplitObjNotation:La,_fnGetObjectDataFn:R,_fnSetObjectDataFn:S,_fnGetDataMaster:Ma,_fnClearTable:pa,_fnDeleteIndex:qa,_fnInvalidate:da,_fnGetRowElements:Ka,_fnCreateTr:Ja,_fnBuildHead:mb,_fnDrawHead:fa,_fnDraw:O,_fnReDraw:T,_fnAddOptionsHtml:pb,_fnDetectHeader:ea,_fnGetUniqueThs:ta,_fnFeatureHtmlFilter:rb,_fnFilterComplete:ga,_fnFilterCustom:Ab,_fnFilterColumn:zb,_fnFilter:yb,_fnFilterCreateSearch:Ra,_fnEscapeRegex:Sa,_fnFilterData:Bb,_fnFeatureHtmlInfo:ub,_fnUpdateInfo:Eb,_fnInfoMacros:Fb,_fnInitialise:ha,_fnInitComplete:wa,_fnLengthChange:Ta,_fnFeatureHtmlLength:qb,_fnFeatureHtmlPaginate:vb,_fnPageChange:Va,_fnFeatureHtmlProcessing:sb,_fnProcessingDisplay:C,_fnFeatureHtmlTable:tb,_fnScrollDraw:ma,_fnApplyToChildren:I,_fnCalculateColumnWidths:Ha,_fnThrottle:Qa,_fnConvertToWidth:Gb,_fnGetWidestNode:Hb,_fnGetMaxLenString:Ib,_fnStringToCss:v,_fnSortFlatten:W,_fnSort:ob,_fnSortAria:Kb,_fnSortListener:Xa,_fnSortAttachListener:Oa,_fnSortingClasses:ya,_fnSortData:Jb,_fnSaveState:za,_fnLoadState:Lb,_fnSettingsFromNode:Aa,_fnLog:K,_fnMap:F,_fnBindAction:Ya,_fnCallbackReg:z,_fnCallbackFire:s,_fnLengthOverflow:Ua,_fnRenderer:Pa,_fnDataSource:y,_fnRowAttributes:Na,_fnCalculateEnd:function(){}});h.fn.dataTable=m;m.$=h;h.fn.dataTableSettings=m.settings;h.fn.dataTableExt=m.ext;h.fn.DataTable=function(a){return h(this).dataTable(a).api()};h.each(m,function(a,b){h.fn.DataTable[a]=b});return h.fn.dataTable});(function($){"use strict";$.fn.rowGrouping=function(options){function _fnOnGrouped(){}
5
- function _fnOnGroupCreated(oGroup,sGroup,iLevel){}
6
- function _fnOnGroupCompleted(oGroup,sGroup,iLevel){}
7
- function _getMonthName(iMonth){var asMonths=["January","February","March","April","May","June","July","August","September","October","November","December"];return asMonths[iMonth-1]}
8
- var defaults={iGroupingColumnIndex:0,sGroupingColumnSortDirection:"",iGroupingOrderByColumnIndex:-1,sGroupingClass:"group",sGroupItemClass:"group-item",bHideGroupingColumn:!0,bHideGroupingOrderByColumn:!0,sGroupBy:"name",sGroupLabelPrefix:"",fnGroupLabelFormat:function(label){return label},bExpandableGrouping:!1,bExpandSingleGroup:!1,iExpandGroupOffset:100,asExpandedGroups:null,sDateFormat:"dd/MM/yyyy",sEmptyGroupLabel:"-",bSetGroupingClassOnTR:!1,iGroupingColumnIndex2:-1,sGroupingColumnSortDirection2:"",iGroupingOrderByColumnIndex2:-1,sGroupingClass2:"subgroup",sGroupItemClass2:"subgroup-item",bHideGroupingColumn2:!0,bHideGroupingOrderByColumn2:!0,sGroupBy2:"name",sGroupLabelPrefix2:"",fnGroupLabelFormat2:function(label){return label},bExpandableGrouping2:!1,fnOnGrouped:_fnOnGrouped,fnOnGroupCreated:_fnOnGroupCreated,fnOnGroupCompleted:_fnOnGroupCompleted,oHideEffect:null,oShowEffect:null,bUseFilteringForGrouping:!1};return this.each(function(index,elem){var oTable=$(elem).dataTable();var aoGroups=new Array();$(this).dataTableExt.aoGroups=aoGroups;function fnCreateGroupRow(sGroupCleaned,sGroup,iColspan){var nGroup=document.createElement('tr');var nCell=document.createElement('td');nGroup.id="group-id-"+oTable.attr("id")+"_"+sGroupCleaned;var oGroup={id:nGroup.id,key:sGroupCleaned,text:sGroup,level:0,groupItemClass:".group-item-"+sGroupCleaned,dataGroup:sGroupCleaned,aoSubgroups:new Array()};if(properties.bSetGroupingClassOnTR){nGroup.className=properties.sGroupingClass+" "+sGroupCleaned}else{nCell.className=properties.sGroupingClass+" "+sGroupCleaned}
9
- nCell.colSpan=iColspan;nCell.innerHTML=properties.sGroupLabelPrefix+properties.fnGroupLabelFormat(sGroup==""?properties.sEmptyGroupLabel:sGroup,oGroup);if(properties.bExpandableGrouping){if(!_fnIsGroupCollapsed(sGroupCleaned)){nCell.className+=" expanded-group";oGroup.state="expanded"}else{nCell.className+=" collapsed-group";oGroup.state="collapsed"}
10
- nCell.className+=" group-item-expander";$(nCell).attr('data-group',oGroup.dataGroup);$(nCell).attr("data-group-level",oGroup.level);$(nCell).click(_fnOnGroupClick)}
11
- nGroup.appendChild(nCell);aoGroups[sGroupCleaned]=oGroup;oGroup.nGroup=nGroup;properties.fnOnGroupCreated(oGroup,sGroupCleaned,1);return oGroup}
12
- function _fnCreateGroup2Row(sGroup2,sGroupLabel,iColspan,oParentGroup){var nGroup2=document.createElement('tr');nGroup2.id=oParentGroup.id+"_"+sGroup2;var nCell2=document.createElement('td');var dataGroup=oParentGroup.dataGroup+'_'+sGroup2;var oGroup={id:nGroup2.id,key:sGroup2,text:sGroupLabel,level:oParentGroup.level+1,groupItemClass:".group-item-"+dataGroup,dataGroup:dataGroup,aoSubgroups:new Array()};if(properties.bSetGroupingClassOnTR){nGroup2.className=properties.sGroupingClass2+" "+sGroup2}else{nCell2.className=properties.sGroupingClass2+" "+sGroup2}
13
- nCell2.colSpan=iColspan;nCell2.innerHTML=properties.sGroupLabelPrefix2+properties.fnGroupLabelFormat2(sGroupLabel==""?properties.sEmptyGroupLabel:sGroupLabel,oGroup);if(properties.bExpandableGrouping){nGroup2.className+=" group-item-"+oParentGroup.dataGroup}
14
- if(properties.bExpandableGrouping&&properties.bExpandableGrouping2){if(!_fnIsGroupCollapsed(oGroup.dataGroup)){nCell2.className+=" expanded-group";oGroup.state="expanded"}else{nCell2.className+=" collapsed-group";oGroup.state="collapsed"}
15
- nCell2.className+=" group-item-expander";$(nCell2).attr('data-group',oGroup.dataGroup);$(nCell2).attr("data-group-level",oGroup.level);$(nCell2).click(_fnOnGroupClick)}
16
- nGroup2.appendChild(nCell2);oParentGroup.aoSubgroups[oGroup.dataGroup]=oGroup;aoGroups[oGroup.dataGroup]=oGroup;oGroup.nGroup=nGroup2;properties.fnOnGroupCreated(oGroup,sGroup2,2);return oGroup}
17
- function _fnIsGroupCollapsed(sGroup){if(aoGroups[sGroup]!=null)
18
- return(aoGroups[sGroup].state=="collapsed");else if(sGroup.indexOf("_")>-1)
19
- !0;else if(bInitialGrouping&&(asExpandedGroups==null||asExpandedGroups.length==0))
20
- return!1;else return($.inArray(sGroup,asExpandedGroups)==-1)}
21
- function _fnGetYear(x){if(x.length<(iYearIndex+iYearLength))
22
- return x;else return x.substr(iYearIndex,iYearLength)}
23
- function _fnGetGroupByName(x){return x}
24
- function _fnGetGroupByLetter(x){return x.substr(0,1)}
25
- function _fnGetGroupByYear(x){return _fnGetYear(x)}
26
- function _fnGetGroupByYearMonth(x){return x.substr(iYearIndex,iYearLength)+' '+_getMonthName(x.substr(iMonthIndex,iMonthLength))}
27
- function _fnGetCleanedGroup(sGroup){if(typeof sGroup==="undefined"||sGroup==="")return properties.sEmptyGroupLabel;return sGroup.toLowerCase().replace(/[^a-zA-Z0-9\u0080-\uFFFF]+/g,"-")}
28
- function _rowGroupingRowFilter(oSettings,aData,iDataIndex){if(oSettings.nTable.id!==oTable[0].id)return!0;var sColData=aData[properties.iGroupingColumnIndex];if(typeof sColData==="undefined")
29
- sColData=aData[oSettings.aoColumns[properties.iGroupingColumnIndex].mData];if(_fnIsGroupCollapsed(_fnGetCleanedGroup(sColData))){if(oTable.fnIsOpen(oTable.fnGetNodes(iDataIndex)))
30
- {if(properties.fnOnRowClosed!=null){properties.fnOnRowClosed(this)}
31
- oTable.fnClose(oTable.fnGetNodes(iDataIndex))}
32
- return!1};return!0}
33
- function fnExpandGroup(sGroup){aoGroups[sGroup].state="expanded";$("td[data-group='"+sGroup+"']").removeClass("collapsed-group");$("td[data-group='"+sGroup+"']").addClass("expanded-group");if(properties.bUseFilteringForGrouping)
34
- {oTable.fnDraw();return}
35
- if(jQuery.inArray(sGroup,asExpandedGroups)==-1)
36
- asExpandedGroups.push(sGroup);if(properties.oHideEffect!=null)
37
- $(".group-item-"+sGroup,oTable)[properties.oShowEffect.method](properties.oShowEffect.duration,properties.oShowEffect.easing,function(){});else $(".group-item-"+sGroup,oTable).show()}
38
- function fnCollapseGroup(sGroup){aoGroups[sGroup].state="collapsed";$("td[data-group='"+sGroup+"']").removeClass("expanded-group");$("td[data-group='"+sGroup+"']").addClass("collapsed-group");if(properties.bUseFilteringForGrouping)
39
- {oTable.fnDraw();return}
40
- $('.group-item-'+sGroup).each(function(){if(oTable.fnIsOpen(this)){if(properties.fnOnRowClosed!=null){properties.fnOnRowClosed(this)}
41
- oTable.fnClose(this)}});if(properties.oHideEffect!=null)
42
- $(".group-item-"+sGroup,oTable)[properties.oHideEffect.method](properties.oHideEffect.duration,properties.oHideEffect.easing,function(){});else $(".group-item-"+sGroup,oTable).hide()}
43
- function _fnOnGroupClick(e){var sGroup=$(this).attr("data-group");var iGroupLevel=$(this).attr("data-group-level");var bIsExpanded=!_fnIsGroupCollapsed(sGroup);if(properties.bExpandSingleGroup){if(!bIsExpanded){var sCurrentGroup=$("td.expanded-group").attr("data-group");fnCollapseGroup(sCurrentGroup);fnExpandGroup(sGroup);if(properties.iExpandGroupOffset!=-1){var position=$("#group-id-"+oTable.attr("id")+"_"+sGroup).offset().top-properties.iExpandGroupOffset;window.scroll(0,position)}else{var position=oTable.offset().top;window.scroll(0,position)}}}else{if(bIsExpanded){fnCollapseGroup(sGroup)}else{fnExpandGroup(sGroup)}}
44
- e.preventDefault()};function _fnDrawCallBackWithGrouping(oSettings){if(oTable.fnSettings().oFeatures.bServerSide)
45
- bInitialGrouping=!0;var bUseSecondaryGrouping=!1;if(properties.iGroupingColumnIndex2!=-1)
46
- bUseSecondaryGrouping=!0;if(oSettings.aiDisplayMaster.length==0){return}
47
- var nTrs=$('tbody tr',oTable);var iColspan=0;for(var iColIndex=0;iColIndex<oSettings.aoColumns.length;iColIndex++){if(oSettings.aoColumns[iColIndex].bVisible)
48
- iColspan+=1}
49
- var sLastGroup=null;var sLastGroup2=null;if(oSettings.aiDisplay.length>0){for(var i=0;i<nTrs.length;i++){var iDisplayIndex=oSettings._iDisplayStart+i;if(oTable.fnSettings().oFeatures.bServerSide)
50
- iDisplayIndex=i;var sGroupData="";var sGroup=null;var sGroupData2="";var sGroup2=null;sGroupData=this.fnGetData(nTrs[i],properties.iGroupingColumnIndex);var sGroup=sGroupData;if(properties.sGroupBy!="year")
51
- sGroup=fnGetGroup(sGroupData);if(bUseSecondaryGrouping){sGroupData2=oSettings.aoData[oSettings.aiDisplay[iDisplayIndex]]._aData[properties.iGroupingColumnIndex2];if(sGroupData2==undefined)
52
- sGroupData2=oSettings.aoData[oSettings.aiDisplay[iDisplayIndex]]._aData[oSettings.aoColumns[properties.iGroupingColumnIndex2].mData];if(properties.sGroupBy2!="year")
53
- sGroup2=fnGetGroup(sGroupData2)}
54
- if(sLastGroup==null||_fnGetCleanedGroup(sGroup)!=_fnGetCleanedGroup(sLastGroup)){var sGroupCleaned=_fnGetCleanedGroup(sGroup);if(sLastGroup!=null)
55
- {properties.fnOnGroupCompleted(aoGroups[_fnGetCleanedGroup(sLastGroup)])}
56
- if(properties.bAddAllGroupsAsExpanded&&jQuery.inArray(sGroupCleaned,asExpandedGroups)==-1)
57
- asExpandedGroups.push(sGroupCleaned);var oGroup=fnCreateGroupRow(sGroupCleaned,sGroup,iColspan);var nGroup=oGroup.nGroup;if(nTrs[i].parentNode!=null)
58
- nTrs[i].parentNode.insertBefore(nGroup,nTrs[i]);else $(nTrs[i]).before(nGroup);sLastGroup=sGroup;sLastGroup2=null}
59
- $(nTrs[i]).attr("data-group",aoGroups[sGroupCleaned].dataGroup);$(nTrs[i]).addClass(properties.sGroupItemClass);$(nTrs[i]).addClass("group-item-"+sGroupCleaned);if(properties.bExpandableGrouping){if(_fnIsGroupCollapsed(sGroupCleaned)&&!properties.bUseFilteringForGrouping){$(nTrs[i]).hide()}}
60
- if(bUseSecondaryGrouping){if(sLastGroup2==null||_fnGetCleanedGroup(sGroup2)!=_fnGetCleanedGroup(sLastGroup2)){var sGroup2Id=_fnGetCleanedGroup(sGroup)+'-'+_fnGetCleanedGroup(sGroup2);var oGroup2=_fnCreateGroup2Row(sGroup2Id,sGroup2,iColspan,aoGroups[sGroupCleaned])
61
- var nGroup2=oGroup2.nGroup;nTrs[i].parentNode.insertBefore(nGroup2,nTrs[i]);sLastGroup2=sGroup2}
62
- $(nTrs[i]).attr("data-group",oGroup2.dataGroup).addClass(properties.sGroupItemClass2).addClass("group-item-"+oGroup2.dataGroup)}}};if(sLastGroup!=null)
63
- {properties.fnOnGroupCompleted(aoGroups[_fnGetCleanedGroup(sLastGroup)])}
64
- properties.fnOnGrouped(aoGroups);bInitialGrouping=!1};var iYearIndex=6;var iYearLength=4;var asExpandedGroups=new Array();var bInitialGrouping=!0;var properties=$.extend(defaults,options);if(properties.iGroupingOrderByColumnIndex==-1){properties.bCustomColumnOrdering=!1;properties.iGroupingOrderByColumnIndex=properties.iGroupingColumnIndex}else{properties.bCustomColumnOrdering=!0}
65
- if(properties.sGroupingColumnSortDirection==""){if(properties.sGroupBy=="year")
66
- properties.sGroupingColumnSortDirection="desc";else properties.sGroupingColumnSortDirection="asc"}
67
- if(properties.iGroupingOrderByColumnIndex2==-1){properties.bCustomColumnOrdering2=!1;properties.iGroupingOrderByColumnIndex2=properties.iGroupingColumnIndex2}else{properties.bCustomColumnOrdering2=!0}
68
- if(properties.sGroupingColumnSortDirection2==""){if(properties.sGroupBy2=="year")
69
- properties.sGroupingColumnSortDirection2="desc";else properties.sGroupingColumnSortDirection2="asc"}
70
- iYearIndex=properties.sDateFormat.toLowerCase().indexOf('yy');iYearLength=properties.sDateFormat.toLowerCase().lastIndexOf('y')-properties.sDateFormat.toLowerCase().indexOf('y')+1;var iMonthIndex=properties.sDateFormat.toLowerCase().indexOf('mm');var iMonthLength=properties.sDateFormat.toLowerCase().lastIndexOf('m')-properties.sDateFormat.toLowerCase().indexOf('m')+1;var fnGetGroup=_fnGetGroupByName;switch(properties.sGroupBy){case "letter":fnGetGroup=_fnGetGroupByLetter;break;case "year":fnGetGroup=_fnGetGroupByYear;break;case "month":fnGetGroup=_fnGetGroupByYearMonth;break;default:fnGetGroup=_fnGetGroupByName;break}
71
- if(properties.asExpandedGroups!=null){if(properties.asExpandedGroups=="NONE"){properties.asExpandedGroups=[];asExpandedGroups=properties.asExpandedGroups;bInitialGrouping=!1}else if(properties.asExpandedGroups=="ALL"){properties.bAddAllGroupsAsExpanded=!0}else if(properties.asExpandedGroups.constructor==String){var currentGroup=properties.asExpandedGroups;properties.asExpandedGroups=new Array();properties.asExpandedGroups.push(_fnGetCleanedGroup(currentGroup));asExpandedGroups=properties.asExpandedGroups;bInitialGrouping=!1}else if(properties.asExpandedGroups.constructor==Array){for(var i=0;i<properties.asExpandedGroups.length;i++){asExpandedGroups.push(_fnGetCleanedGroup(properties.asExpandedGroups[i]));if(properties.bExpandSingleGroup)
72
- break}
73
- bInitialGrouping=!1}}else{properties.asExpandedGroups=new Array();properties.bAddAllGroupsAsExpanded=!0}
74
- if(properties.bExpandSingleGroup){var nTrs=$('tbody tr',oTable);var sGroupData=oTable.fnGetData(nTrs[0],properties.iGroupingColumnIndex);var sGroup=sGroupData;if(properties.sGroupBy!="year")
75
- sGroup=fnGetGroup(sGroupData);var sGroupCleaned=_fnGetCleanedGroup(sGroup);properties.asExpandedGroups=new Array();properties.asExpandedGroups.push(sGroupCleaned)}
76
- oTable.fnSetColumnVis(properties.iGroupingColumnIndex,!properties.bHideGroupingColumn);if(properties.bCustomColumnOrdering){oTable.fnSetColumnVis(properties.iGroupingOrderByColumnIndex,!properties.bHideGroupingOrderByColumn)}
77
- if(properties.iGroupingColumnIndex2!=-1){oTable.fnSetColumnVis(properties.iGroupingColumnIndex2,!properties.bHideGroupingColumn2)}
78
- if(properties.bCustomColumnOrdering2){oTable.fnSetColumnVis(properties.iGroupingOrderByColumnIndex2,!properties.bHideGroupingOrderByColumn2)}
79
- oTable.fnSettings().aoDrawCallback.push({"fn":_fnDrawCallBackWithGrouping,"sName":"fnRowGrouping"});var aaSortingFixed=new Array();aaSortingFixed.push([properties.iGroupingOrderByColumnIndex,properties.sGroupingColumnSortDirection]);if(properties.iGroupingColumnIndex2!=-1){aaSortingFixed.push([properties.iGroupingOrderByColumnIndex2,properties.sGroupingColumnSortDirection2])}
80
- oTable.fnSettings().aaSortingFixed=aaSortingFixed;switch(properties.sGroupBy){case "name":break;case "letter":oTable.fnSettings().aoColumns[properties.iGroupingOrderByColumnIndex].sSortDataType="rg-letter";$.fn.dataTableExt.afnSortData['rg-letter']=function(oSettings,iColumn){var aData=[];$('td:eq('+iColumn+')',oSettings.oApi._fnGetTrNodes(oSettings)).each(function(){aData.push(_fnGetGroupByLetter(this.innerHTML))});return aData}
81
- break;case "year":oTable.fnSettings().aoColumns[properties.iGroupingOrderByColumnIndex].sSortDataType="rg-date";$.fn.dataTableExt.afnSortData['rg-date']=function(oSettings,iColumn){var aData=[];var nTrs=oSettings.oApi._fnGetTrNodes(oSettings);for(i=0;i<nTrs.length;i++)
82
- {aData.push(_fnGetYear(oTable.fnGetData(nTrs[i],iColumn)))}
83
- return aData}
84
- break;default:break}
85
- if(properties.bUseFilteringForGrouping)
86
- $.fn.dataTableExt.afnFiltering.push(_rowGroupingRowFilter);oTable.fnDraw()})}})(jQuery);(function(d){"function"===typeof define&&define.amd?define(["jquery","datatables.net"],function(n){return d(n,window,document)}):"object"===typeof exports?module.exports=function(n,o){n||(n=window);if(!o||!o.fn.dataTable)o=require("datatables.net")(n,o).$;return d(o,n,n.document)}:d(jQuery,window,document)})(function(d,n,o,l){var i=d.fn.dataTable,u=0,v=0,j=i.ext.buttons,m=function(a,b){"undefined"===typeof b&&(b={});!0===b&&(b={});d.isArray(b)&&(b={buttons:b});this.c=d.extend(!0,{},m.defaults,b);b.buttons&&(this.c.buttons=b.buttons);this.s={dt:new i.Api(a),buttons:[],listenKeys:"",namespace:"dtb"+u++};this.dom={container:d("<"+this.c.dom.container.tag+"/>").addClass(this.c.dom.container.className)};this._constructor()};d.extend(m.prototype,{action:function(a,b){var c=this._nodeToButton(a);if(b===l)return c.conf.action;c.conf.action=b;return this},active:function(a,b){var c=this._nodeToButton(a),e=this.c.dom.button.active,c=d(c.node);if(b===l)return c.hasClass(e);c.toggleClass(e,b===l?!0:b);return this},add:function(a,b){var c=this.s.buttons;if("string"===typeof b){for(var e=b.split("-"),c=this.s,d=0,h=e.length-1;d<h;d++)c=c.buttons[1*e[d]];c=c.buttons;b=1*e[e.length-1]}this._expandButton(c,a,!1,b);this._draw();return this},container:function(){return this.dom.container},disable:function(a){a=this._nodeToButton(a);d(a.node).addClass(this.c.dom.button.disabled);return this},destroy:function(){d("body").off("keyup."+this.s.namespace);var a=this.s.buttons.slice(),b,c;b=0;for(c=a.length;b<c;b++)this.remove(a[b].node);this.dom.container.remove();a=this.s.dt.settings()[0];b=0;for(c=a.length;b<c;b++)if(a.inst===this){a.splice(b,1);break}return this},enable:function(a,b){if(!1===b)return this.disable(a);var c=this._nodeToButton(a);d(c.node).removeClass(this.c.dom.button.disabled);return this},name:function(){return this.c.name},node:function(a){a=this._nodeToButton(a);return d(a.node)},processing:function(a,b){var c=this._nodeToButton(a);if(b===l)return d(c.node).hasClass("processing");d(c.node).toggleClass("processing",b);return this},remove:function(a){var b=this._nodeToButton(a),c=this._nodeToHost(a),e=this.s.dt;if(b.buttons.length)for(var g=b.buttons.length-1;0<=g;g--)this.remove(b.buttons[g].node);b.conf.destroy&&b.conf.destroy.call(e.button(a),e,d(a),b.conf);this._removeKey(b.conf);d(b.node).remove();a=d.inArray(b,c);c.splice(a,1);return this},text:function(a,b){var c=this._nodeToButton(a),e=this.c.dom.collection.buttonLiner,e=c.inCollection&&e&&e.tag?e.tag:this.c.dom.buttonLiner.tag,g=this.s.dt,h=d(c.node),f=function(a){return"function"===typeof a?a(g,h,c.conf):a};if(b===l)return f(c.conf.text);c.conf.text=b;e?h.children(e).html(f(b)):h.html(f(b));return this},_constructor:function(){var a=this,b=this.s.dt,c=b.settings()[0],e=this.c.buttons;c._buttons||(c._buttons=[]);c._buttons.push({inst:this,name:this.c.name});for(var c=0,g=e.length;c<g;c++)this.add(e[c]);b.on("destroy",function(){a.destroy()});d("body").on("keyup."+this.s.namespace,function(b){if(!o.activeElement||o.activeElement===o.body){var c=String.fromCharCode(b.keyCode).toLowerCase();a.s.listenKeys.toLowerCase().indexOf(c)!==-1&&a._keypress(c,b)}})},_addKey:function(a){a.key&&(this.s.listenKeys+=d.isPlainObject(a.key)?a.key.key:a.key)},_draw:function(a,b){a||(a=this.dom.container,b=this.s.buttons);a.children().detach();for(var c=0,e=b.length;c<e;c++)a.append(b[c].inserter),b[c].buttons&&b[c].buttons.length&&this._draw(b[c].collection,b[c].buttons)},_expandButton:function(a,b,c,e){for(var g=this.s.dt,h=0,b=!d.isArray(b)?[b]:b,f=0,r=b.length;f<r;f++){var k=this._resolveExtends(b[f]);if(k)if(d.isArray(k))this._expandButton(a,k,c,e);else{var p=this._buildButton(k,c);if(p){e!==l?(a.splice(e,0,p),e++):a.push(p);if(p.conf.buttons){var s=this.c.dom.collection;p.collection=d("<"+s.tag+"/>").addClass(s.className).attr("role","menu");p.conf._collection=p.collection;this._expandButton(p.buttons,p.conf.buttons,!0,e)}k.init&&k.init.call(g.button(p.node),g,d(p.node),k);h++}}}},_buildButton:function(a,b){var c=this.c.dom.button,e=this.c.dom.buttonLiner,g=this.c.dom.collection,h=this.s.dt,f=function(b){return"function"===typeof b?b(h,k,a):b};b&&g.button&&(c=g.button);b&&g.buttonLiner&&(e=g.buttonLiner);if(a.available&&!a.available(h,a))return!1;var r=function(a,b,c,e){e.action.call(b.button(c),a,b,c,e);d(b.table().node()).triggerHandler("buttons-action.dt",[b.button(c),b,c,e])},k=d("<"+c.tag+"/>").addClass(c.className).attr("tabindex",this.s.dt.settings()[0].iTabIndex).attr("aria-controls",this.s.dt.table().node().id).on("click.dtb",function(b){b.preventDefault();!k.hasClass(c.disabled)&&a.action&&r(b,h,k,a);k.blur()}).on("keyup.dtb",function(b){b.keyCode===13&&!k.hasClass(c.disabled)&&a.action&&r(b,h,k,a)});"a"===c.tag.toLowerCase()&&k.attr("href","#");e.tag?(g=d("<"+e.tag+"/>").html(f(a.text)).addClass(e.className),"a"===e.tag.toLowerCase()&&g.attr("href","#"),k.append(g)):k.html(f(a.text));!1===a.enabled&&k.addClass(c.disabled);a.className&&k.addClass(a.className);a.titleAttr&&k.attr("title",f(a.titleAttr));a.namespace||(a.namespace=".dt-button-"+v++);e=(e=this.c.dom.buttonContainer)&&e.tag?d("<"+e.tag+"/>").addClass(e.className).append(k):k;this._addKey(a);return{conf:a,node:k.get(0),inserter:e,buttons:[],inCollection:b,collection:null}},_nodeToButton:function(a,b){b||(b=this.s.buttons);for(var c=0,e=b.length;c<e;c++){if(b[c].node===a)return b[c];if(b[c].buttons.length){var d=this._nodeToButton(a,b[c].buttons);if(d)return d}}},_nodeToHost:function(a,b){b||(b=this.s.buttons);for(var c=0,e=b.length;c<e;c++){if(b[c].node===a)return b;if(b[c].buttons.length){var d=this._nodeToHost(a,b[c].buttons);if(d)return d}}},_keypress:function(a,b){var c=function(e){for(var g=0,h=e.length;g<h;g++){var f=e[g].conf,r=e[g].node;if(f.key)if(f.key===a)d(r).click();else if(d.isPlainObject(f.key)&&f.key.key===a&&(!f.key.shiftKey||b.shiftKey))if(!f.key.altKey||b.altKey)if(!f.key.ctrlKey||b.ctrlKey)(!f.key.metaKey||b.metaKey)&&d(r).click();e[g].buttons.length&&c(e[g].buttons)}};c(this.s.buttons)},_removeKey:function(a){if(a.key){var b=d.isPlainObject(a.key)?a.key.key:a.key,a=this.s.listenKeys.split(""),b=d.inArray(b,a);a.splice(b,1);this.s.listenKeys=a.join("")}},_resolveExtends:function(a){for(var b=this.s.dt,c,e,g=function(c){for(var e=0;!d.isPlainObject(c)&&!d.isArray(c);){if(c===l)return;if("function"===typeof c){if(c=c(b,a),!c)return!1}else if("string"===typeof c){if(!j[c])throw"Unknown button type: "+c;c=j[c]}e++;if(30<e)throw"Buttons: Too many iterations"}return d.isArray(c)?c:d.extend({},c)},a=g(a);a&&a.extend;){if(!j[a.extend])throw"Cannot extend unknown button type: "+a.extend;var h=g(j[a.extend]);if(d.isArray(h))return h;if(!h)return!1;c=h.className;a=d.extend({},h,a);c&&a.className!==c&&(a.className=c+" "+a.className);var f=a.postfixButtons;if(f){a.buttons||(a.buttons=[]);c=0;for(e=f.length;c<e;c++)a.buttons.push(f[c]);a.postfixButtons=null}if(f=a.prefixButtons){a.buttons||(a.buttons=[]);c=0;for(e=f.length;c<e;c++)a.buttons.splice(c,0,f[c]);a.prefixButtons=null}a.extend=h.extend}return a}});m.background=function(a,b,c){c===l&&(c=400);a?d("<div/>").addClass(b).css("display","none").appendTo("body").fadeIn(c):d("body > div."+b).fadeOut(c,function(){d(this).removeClass(b).remove()})};m.instanceSelector=function(a,b){if(!a)return d.map(b,function(a){return a.inst});var c=[],e=d.map(b,function(a){return a.name}),g=function(a){if(d.isArray(a))for(var f=0,r=a.length;f<r;f++)g(a[f]);else"string"===typeof a?-1!==a.indexOf(",")?g(a.split(",")):(a=d.inArray(d.trim(a),e),-1!==a&&c.push(b[a].inst)):"number"===typeof a&&c.push(b[a].inst)};g(a);return c};m.buttonSelector=function(a,b){for(var c=[],e=function(a,b,c){for(var d,g,f=0,h=b.length;f<h;f++)if(d=b[f])g=c!==l?c+f:f+"",a.push({node:d.node,name:d.conf.name,idx:g}),d.buttons&&e(a,d.buttons,g+"-")},g=function(a,b){var f,h,i=[];e(i,b.s.buttons);f=d.map(i,function(a){return a.node});if(d.isArray(a)||a instanceof d){f=0;for(h=a.length;f<h;f++)g(a[f],b)}else if(null===a||a===l||"*"===a){f=0;for(h=i.length;f<h;f++)c.push({inst:b,node:i[f].node})}else if("number"===typeof a)c.push({inst:b,node:b.s.buttons[a].node});else if("string"===typeof a)if(-1!==a.indexOf(",")){i=a.split(",");f=0;for(h=i.length;f<h;f++)g(d.trim(i[f]),b)}else if(a.match(/^\d+(\-\d+)*#x2F;))f=d.map(i,function(a){return a.idx}),c.push({inst:b,node:i[d.inArray(a,f)].node});else if(-1!==a.indexOf(":name")){var j=a.replace(":name","");f=0;for(h=i.length;f<h;f++)i[f].name===j&&c.push({inst:b,node:i[f].node})}else d(f).filter(a).each(function(){c.push({inst:b,node:this})});else"object"===typeof a&&a.nodeName&&(i=d.inArray(a,f),-1!==i&&c.push({inst:b,node:f[i]}))},h=0,f=a.length;h<f;h++)g(b,a[h]);return c};m.defaults={buttons:["copy","excel","csv","pdf","print"],name:"main",tabIndex:0,dom:{container:{tag:"div",className:"dt-buttons"},collection:{tag:"div",className:"dt-button-collection"},button:{tag:"a",className:"dt-button",active:"active",disabled:"disabled"},buttonLiner:{tag:"span",className:""}}};m.version="1.3.1";d.extend(j,{collection:{text:function(a){return a.i18n("buttons.collection","Collection")},className:"buttons-collection",action:function(a,b,c,e){var a=c.offset(),g=d(b.table().container()),h=!1;d("div.dt-button-background").length&&(h=d(".dt-button-collection").offset(),d("body").trigger("click.dtb-collection"));e._collection.addClass(e.collectionLayout).css("display","none").appendTo("body").fadeIn(e.fade);var f=e._collection.css("position");h&&"absolute"===f?e._collection.css({top:h.top,left:h.left}):"absolute"===f?(e._collection.css({top:a.top+c.outerHeight(),left:a.left}),c=a.left+e._collection.outerWidth(),g=g.offset().left+g.width(),c>g&&e._collection.css("left",a.left-(c-g))):(a=e._collection.height()/2,a>d(n).height()/2&&(a=d(n).height()/2),e._collection.css("marginTop",-1*a));e.background&&m.background(!0,e.backgroundClassName,e.fade);setTimeout(function(){d("div.dt-button-background").on("click.dtb-collection",function(){});d("body").on("click.dtb-collection",function(a){var c=d.fn.addBack?"addBack":"andSelf";if(!d(a.target).parents()[c]().filter(e._collection).length){e._collection.fadeOut(e.fade,function(){e._collection.detach()});d("div.dt-button-background").off("click.dtb-collection");m.background(!1,e.backgroundClassName,e.fade);d("body").off("click.dtb-collection");b.off("buttons-action.b-internal")}})},10);if(e.autoClose)b.on("buttons-action.b-internal",function(){d("div.dt-button-background").click()})},background:!0,collectionLayout:"",backgroundClassName:"dt-button-background",autoClose:!1,fade:400},copy:function(a,b){if(j.copyHtml5)return"copyHtml5";if(j.copyFlash&&j.copyFlash.available(a,b))return"copyFlash"},csv:function(a,b){if(j.csvHtml5&&j.csvHtml5.available(a,b))return"csvHtml5";if(j.csvFlash&&j.csvFlash.available(a,b))return"csvFlash"},excel:function(a,b){if(j.excelHtml5&&j.excelHtml5.available(a,b))return"excelHtml5";if(j.excelFlash&&j.excelFlash.available(a,b))return"excelFlash"},pdf:function(a,b){if(j.pdfHtml5&&j.pdfHtml5.available(a,b))return"pdfHtml5";if(j.pdfFlash&&j.pdfFlash.available(a,b))return"pdfFlash"},pageLength:function(a){var a=a.settings()[0].aLengthMenu,b=d.isArray(a[0])?a[0]:a,c=d.isArray(a[0])?a[1]:a,e=function(a){return a.i18n("buttons.pageLength",{"-1":"Show all rows",_:"Show %d rows"},a.page.len())};return{extend:"collection",text:e,className:"buttons-page-length",autoClose:!0,buttons:d.map(b,function(a,b){return{text:c[b],className:"button-page-length",action:function(b,c){c.page.len(a).draw()},init:function(b,c,d){var e=this,c=function(){e.active(b.page.len()===a)};b.on("length.dt"+d.namespace,c);c()},destroy:function(a,b,c){a.off("length.dt"+c.namespace)}}}),init:function(a,b,c){var d=this;a.on("length.dt"+c.namespace,function(){d.text(e(a))})},destroy:function(a,b,c){a.off("length.dt"+c.namespace)}}}});i.Api.register("buttons()",function(a,b){b===l&&(b=a,a=l);this.selector.buttonGroup=a;var c=this.iterator(!0,"table",function(c){if(c._buttons)return m.buttonSelector(m.instanceSelector(a,c._buttons),b)},!0);c._groupSelector=a;return c});i.Api.register("button()",function(a,b){var c=this.buttons(a,b);1<c.length&&c.splice(1,c.length);return c});i.Api.registerPlural("buttons().active()","button().active()",function(a){return a===l?this.map(function(a){return a.inst.active(a.node)}):this.each(function(b){b.inst.active(b.node,a)})});i.Api.registerPlural("buttons().action()","button().action()",function(a){return a===l?this.map(function(a){return a.inst.action(a.node)}):this.each(function(b){b.inst.action(b.node,a)})});i.Api.register(["buttons().enable()","button().enable()"],function(a){return this.each(function(b){b.inst.enable(b.node,a)})});i.Api.register(["buttons().disable()","button().disable()"],function(){return this.each(function(a){a.inst.disable(a.node)})});i.Api.registerPlural("buttons().nodes()","button().node()",function(){var a=d();d(this.each(function(b){a=a.add(b.inst.node(b.node))}));return a});i.Api.registerPlural("buttons().processing()","button().processing()",function(a){return a===l?this.map(function(a){return a.inst.processing(a.node)}):this.each(function(b){b.inst.processing(b.node,a)})});i.Api.registerPlural("buttons().text()","button().text()",function(a){return a===l?this.map(function(a){return a.inst.text(a.node)}):this.each(function(b){b.inst.text(b.node,a)})});i.Api.registerPlural("buttons().trigger()","button().trigger()",function(){return this.each(function(a){a.inst.node(a.node).trigger("click")})});i.Api.registerPlural("buttons().containers()","buttons().container()",function(){var a=d(),b=this._groupSelector;this.iterator(!0,"table",function(c){if(c._buttons)for(var c=m.instanceSelector(b,c._buttons),d=0,g=c.length;d<g;d++)a=a.add(c[d].container())});return a});i.Api.register("button().add()",function(a,b){var c=this.context;c.length&&(c=m.instanceSelector(this._groupSelector,c[0]._buttons),c.length&&c[0].add(b,a));return this.button(this._groupSelector,a)});i.Api.register("buttons().destroy()",function(){this.pluck("inst").unique().each(function(a){a.destroy()});return this});i.Api.registerPlural("buttons().remove()","buttons().remove()",function(){this.each(function(a){a.inst.remove(a.node)});return this});var q;i.Api.register("buttons.info()",function(a,b,c){var e=this;if(!1===a)return d("#datatables_buttons_info").fadeOut(function(){d(this).remove()}),clearTimeout(q),q=null,this;q&&clearTimeout(q);d("#datatables_buttons_info").length&&d("#datatables_buttons_info").remove();d('<div id="datatables_buttons_info" class="dt-button-info"/>').html(a?"<h2>"+a+"</h2>":"").append(d("<div/>")["string"===typeof b?"html":"append"](b)).css("display","none").appendTo("body").fadeIn();c!==l&&0!==c&&(q=setTimeout(function(){e.buttons.info(!1)},c));return this});i.Api.register("buttons.exportData()",function(a){if(this.context.length){for(var b=new i.Api(this.context[0]),c=d.extend(!0,{},{rows:null,columns:"",modifier:{search:"applied",order:"applied"},orthogonal:"display",stripHtml:!0,stripNewlines:!0,decodeEntities:!0,trim:!0,format:{header:function(a){return e(a)},footer:function(a){return e(a)},body:function(a){return e(a)}}},a),e=function(a){if("string"!==typeof a)return a;a=a.replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,"");c.stripHtml&&(a=a.replace(/<[^>]*>/g,""));c.trim&&(a=a.replace(/^\s+|\s+#x2F;g,""));c.stripNewlines&&(a=a.replace(/\n/g," "));c.decodeEntities&&(t.innerHTML=a,a=t.value);return a},a=b.columns(c.columns).indexes().map(function(a){var d=b.column(a).header();return c.format.header(d.innerHTML,a,d)}).toArray(),g=b.table().footer()?b.columns(c.columns).indexes().map(function(a){var d=b.column(a).footer();return c.format.footer(d?d.innerHTML:"",a,d)}).toArray():null,h=b.rows(c.rows,c.modifier).indexes().toArray(),f=b.cells(h,c.columns),h=f.render(c.orthogonal).toArray(),f=f.nodes().toArray(),j=a.length,k=0<j?h.length/j:0,m=Array(k),l=0,n=0;n<k;n++){for(var o=Array(j),q=0;q<j;q++)o[q]=c.format.body(h[l],n,q,f[l]),l++;m[n]=o}return{header:a,footer:g,body:m}}});var t=d("<textarea/>")[0];d.fn.dataTable.Buttons=m;d.fn.DataTable.Buttons=m;d(o).on("init.dt plugin-init.dt",function(a,b){if("dt"===a.namespace){var c=b.oInit.buttons||i.defaults.buttons;c&&!b._buttons&&(new m(b,c)).container()}});i.ext.feature.push({fnInit:function(a){var a=new i.Api(a),b=a.init().buttons||i.defaults.buttons;return(new m(a,b)).container()},cFeature:"B"});return m});(function(i){"function"===typeof define&&define.amd?define(["jquery","datatables.net","datatables.net-buttons"],function(g){return i(g,window,document)}):"object"===typeof exports?module.exports=function(g,l,r,s){g||(g=window);if(!l||!l.fn.dataTable)l=require("datatables.net")(g,l).$;l.fn.dataTable.Buttons||require("datatables.net-buttons")(g,l);return i(l,g,g.document,r,s)}:i(jQuery,window,document)})(function(i,g,l,r,s,o){function z(a,c){t===o&&(t=-1===x.serializeToString(i.parseXML(A["xl/worksheets/sheet1.xml"])).indexOf("xmlns:r"));i.each(c,function(c,b){if(i.isPlainObject(b)){var e=a.folder(c);z(e,b)}else{if(t){var e=b.childNodes[0],h,f,u=[];for(h=e.attributes.length-1;0<=h;h--){f=e.attributes[h].nodeName;var m=e.attributes[h].nodeValue;-1!==f.indexOf(":")&&(u.push({name:f,value:m}),e.removeAttribute(f))}h=0;for(f=u.length;h<f;h++)m=b.createAttribute(u[h].name.replace(":","_dt_b_namespace_token_")),m.value=u[h].value,e.setAttributeNode(m)}e=x.serializeToString(b);t&&(-1===e.indexOf("<?xml")&&(e='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'+e),e=e.replace(/_dt_b_namespace_token_/g,":"));e=e.replace(/<([^<>]*?) xmlns=""([^<>]*?)>/g,"<$1 $2>");a.file(c,e)}})}function p(a,c,d){var b=a.createElement(c);d&&(d.attr&&i(b).attr(d.attr),d.children&&i.each(d.children,function(a,c){b.appendChild(c)}),d.text&&b.appendChild(a.createTextNode(d.text)));return b}function I(a,c){var d=a.header[c].length,b;a.footer&&a.footer[c].length>d&&(d=a.footer[c].length);for(var e=0,h=a.body.length;e<h;e++)if(b=a.body[e][c],b=null!==b&&b!==o?b.toString():"",-1!==b.indexOf("\n")?(b=b.split("\n"),b.sort(function(a,b){return b.length-a.length}),b=b[0].length):b=b.length,b>d&&(d=b),40<d)return 52;d*=1.3;return 6<d?d:6}var n=i.fn.dataTable,q;var j="undefined"!==typeof self&&self||"undefined"!==typeof g&&g||this.content;if("undefined"===typeof j||"undefined"!==typeof navigator&&/MSIE [1-9]\./.test(navigator.userAgent))q=void 0;else{var v=j.document.createElementNS("http://www.w3.org/1999/xhtml","a"),J="download"in v,K=/constructor/i.test(j.HTMLElement)||j.safari,B=/CriOS\/[\d]+/.test(navigator.userAgent),L=function(a){(j.setImmediate||j.setTimeout)(function(){throw a},0)},C=function(a){setTimeout(function(){"string"===typeof a?(j.URL||j.webkitURL||j).revokeObjectURL(a):a.remove()},4E4)},D=function(a){return/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(a.type)?new Blob([String.fromCharCode(65279),a],{type:a.type}):a},E=function(a,c,d){d||(a=D(a));var b=this,d="application/octet-stream"===a.type,e,h=function(){for(var a=["writestart","progress","write","writeend"],a=[].concat(a),c=a.length;c--;){var d=b["on"+a[c]];if("function"===typeof d)try{d.call(b,b)}catch(e){L(e)}}};b.readyState=b.INIT;if(J)e=(j.URL||j.webkitURL||j).createObjectURL(a),setTimeout(function(){v.href=e;v.download=c;var a=new MouseEvent("click");v.dispatchEvent(a);h();C(e);b.readyState=b.DONE});else if((B||d&&K)&&j.FileReader){var f=new FileReader;f.onloadend=function(){var a=B?f.result:f.result.replace(/^data:[^;]*;/,"data:attachment/file;");j.open(a,"_blank")||(j.location.href=a);b.readyState=b.DONE;h()};f.readAsDataURL(a);b.readyState=b.INIT}else e||(e=(j.URL||j.webkitURL||j).createObjectURL(a)),d?j.location.href=e:j.open(e,"_blank")||(j.location.href=e),b.readyState=b.DONE,h(),C(e)},k=E.prototype;"undefined"!==typeof navigator&&navigator.msSaveOrOpenBlob?q=function(a,c,d){c=c||a.name||"download";d||(a=D(a));return navigator.msSaveOrOpenBlob(a,c)}:(k.abort=function(){},k.readyState=k.INIT=0,k.WRITING=1,k.DONE=2,k.error=k.onwritestart=k.onprogress=k.onwrite=k.onabort=k.onerror=k.onwriteend=null,q=function(a,c,d){return new E(a,c||a.name||"download",d)})}n.fileSave=q;var w=function(a,c){var d="*"===a.filename&&"*"!==a.title&&a.title!==o?a.title:a.filename;"function"===typeof d&&(d=d());-1!==d.indexOf("*")&&(d=i.trim(d.replace("*",i("title").text())));d=d.replace(/[^a-zA-Z0-9_\u00A1-\uFFFF\.,\-_ !\(\)]/g,"");return c===o||!0===c?d+a.extension:d},M=function(a){var c="Sheet1";a.sheetName&&(c=a.sheetName.replace(/[\[\]\*\/\\\?\:]/g,""));return c},N=function(a){a=a.title;"function"===typeof a&&(a=a());return-1!==a.indexOf("*")?a.replace("*",i("title").text()||"Exported data"):a},F=function(a,c){for(var d=c.newline?c.newline:navigator.userAgent.match(/Windows/)?"\r\n":"\n",b=a.buttons.exportData(c.exportOptions),e=c.fieldBoundary,h=c.fieldSeparator,f=RegExp(e,"g"),i=c.escapeChar!==o?c.escapeChar:"\\",m=function(a){for(var b="",c=0,d=a.length;c<d;c++)0<c&&(b+=h),b+=e?e+(""+a[c]).replace(f,i+e)+e:a[c];return b},j=c.header?m(b.header)+d:"",g=c.footer&&b.footer?d+m(b.footer):"",l=[],y=0,O=b.body.length;y<O;y++)l.push(m(b.body[y]));return{str:j+l.join(d)+g,rows:l.length}},G=function(){if(!(-1!==navigator.userAgent.indexOf("Safari")&&-1===navigator.userAgent.indexOf("Chrome")&&-1===navigator.userAgent.indexOf("Opera")))return!1;var a=navigator.userAgent.match(/AppleWebKit\/(\d+\.\d+)/);return a&&1<a.length&&603.1>1*a[1]?!0:!1};try{var x=new XMLSerializer,t}catch(P){}var A={"_rels/.rels":'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="xl/workbook.xml"/></Relationships>',"xl/_rels/workbook.xml.rels":'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Target="worksheets/sheet1.xml"/><Relationship Id="rId2" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Target="styles.xml"/></Relationships>',"[Content_Types].xml":'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types"><Default Extension="xml" ContentType="application/xml" /><Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml" /><Default Extension="jpeg" ContentType="image/jpeg" /><Override PartName="/xl/workbook.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml" /><Override PartName="/xl/worksheets/sheet1.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml" /><Override PartName="/xl/styles.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml" /></Types>',"xl/workbook.xml":'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><workbook xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"><fileVersion appName="xl" lastEdited="5" lowestEdited="5" rupBuild="24816"/><workbookPr showInkAnnotation="0" autoCompressPictures="0"/><bookViews><workbookView xWindow="0" yWindow="0" windowWidth="25600" windowHeight="19020" tabRatio="500"/></bookViews><sheets><sheet name="" sheetId="1" r:id="rId1"/></sheets></workbook>',"xl/worksheets/sheet1.xml":'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x14ac" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac"><sheetData/></worksheet>',"xl/styles.xml":'<?xml version="1.0" encoding="UTF-8"?><styleSheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x14ac" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac"><numFmts count="6"><numFmt numFmtId="164" formatCode="#,##0.00_- [$-45C]"/><numFmt numFmtId="165" formatCode="&quot;£&quot;#,##0.00"/><numFmt numFmtId="166" formatCode="[$€-2] #,##0.00"/><numFmt numFmtId="167" formatCode="0.0%"/><numFmt numFmtId="168" formatCode="#,##0;(#,##0)"/><numFmt numFmtId="169" formatCode="#,##0.00;(#,##0.00)"/></numFmts><fonts count="5" x14ac:knownFonts="1"><font><sz val="11" /><name val="Calibri" /></font><font><sz val="11" /><name val="Calibri" /><color rgb="FFFFFFFF" /></font><font><sz val="11" /><name val="Calibri" /><b /></font><font><sz val="11" /><name val="Calibri" /><i /></font><font><sz val="11" /><name val="Calibri" /><u /></font></fonts><fills count="6"><fill><patternFill patternType="none" /></fill><fill/><fill><patternFill patternType="solid"><fgColor rgb="FFD9D9D9" /><bgColor indexed="64" /></patternFill></fill><fill><patternFill patternType="solid"><fgColor rgb="FFD99795" /><bgColor indexed="64" /></patternFill></fill><fill><patternFill patternType="solid"><fgColor rgb="ffc6efce" /><bgColor indexed="64" /></patternFill></fill><fill><patternFill patternType="solid"><fgColor rgb="ffc6cfef" /><bgColor indexed="64" /></patternFill></fill></fills><borders count="2"><border><left /><right /><top /><bottom /><diagonal /></border><border diagonalUp="false" diagonalDown="false"><left style="thin"><color auto="1" /></left><right style="thin"><color auto="1" /></right><top style="thin"><color auto="1" /></top><bottom style="thin"><color auto="1" /></bottom><diagonal /></border></borders><cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0" /></cellStyleXfs><cellXfs count="67"><xf numFmtId="0" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="2" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="2" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="2" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="2" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="2" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="3" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="3" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="3" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="3" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="3" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="4" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="4" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="4" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="4" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="4" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="5" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="5" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="5" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="5" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="5" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="0" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="0" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="0" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="0" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="0" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="2" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="2" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="2" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="2" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="2" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="3" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="3" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="3" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="3" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="3" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="4" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="4" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="4" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="4" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="4" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="5" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="5" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="5" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="5" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="5" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyAlignment="1"><alignment horizontal="left"/></xf><xf numFmtId="0" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyAlignment="1"><alignment horizontal="center"/></xf><xf numFmtId="0" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyAlignment="1"><alignment horizontal="right"/></xf><xf numFmtId="0" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyAlignment="1"><alignment horizontal="fill"/></xf><xf numFmtId="0" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyAlignment="1"><alignment textRotation="90"/></xf><xf numFmtId="0" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyAlignment="1"><alignment wrapText="1"/></xf><xf numFmtId="9" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="164" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="165" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="166" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="167" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="168" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="169" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="3" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="4" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="1" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="2" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/></cellXfs><cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0" /></cellStyles><dxfs count="0" /><tableStyles count="0" defaultTableStyle="TableStyleMedium9" defaultPivotStyle="PivotStyleMedium4" /></styleSheet>'},H=[{match:/^\-?\d+\.\d%#x2F;,style:60,fmt:function(a){return a/100}},{match:/^\-?\d+\.?\d*%#x2F;,style:56,fmt:function(a){return a/100}},{match:/^\-?\$[\d,]+.?\d*#x2F;,style:57},{match:/^\-?£[\d,]+.?\d*#x2F;,style:58},{match:/^\-?€[\d,]+.?\d*#x2F;,style:59},{match:/^\-?\d+#x2F;,style:65},{match:/^\-?\d+\.\d{2}#x2F;,style:66},{match:/^\([\d,]+\)#x2F;,style:61,fmt:function(a){return-1*a.replace(/[\(\)]/g,"")}},{match:/^\([\d,]+\.\d{2}\)#x2F;,style:62,fmt:function(a){return-1*a.replace(/[\(\)]/g,"")}},{match:/^\-?[\d,]+#x2F;,style:63},{match:/^\-?[\d,]+\.\d{2}#x2F;,style:64}];n.ext.buttons.copyHtml5={className:"buttons-copy buttons-html5",text:function(a){return a.i18n("buttons.copy","Copy")},action:function(a,c,d,b){this.processing(!0);var e=this,a=F(c,b),h=a.str,d=i("<div/>").css({height:1,width:1,overflow:"hidden",position:"fixed",top:0,left:0});b.customize&&(h=b.customize(h,b));b=i("<textarea readonly/>").val(h).appendTo(d);if(l.queryCommandSupported("copy")){d.appendTo(c.table().container());b[0].focus();b[0].select();try{var f=l.execCommand("copy");d.remove();if(f){c.buttons.info(c.i18n("buttons.copyTitle","Copy to clipboard"),c.i18n("buttons.copySuccess",{1:"Copied one row to clipboard",_:"Copied %d rows to clipboard"},a.rows),2E3);this.processing(!1);return}}catch(j){}}f=i("<span>"+c.i18n("buttons.copyKeys","Press <i>ctrl</i> or <i>⌘</i> + <i>C</i> to copy the table data<br>to your system clipboard.<br><br>To cancel, click this message or press escape.")+"</span>").append(d);c.buttons.info(c.i18n("buttons.copyTitle","Copy to clipboard"),f,0);b[0].focus();b[0].select();var m=i(f).closest(".dt-button-info"),g=function(){m.off("click.buttons-copy");i(l).off(".buttons-copy");c.buttons.info(!1)};m.on("click.buttons-copy",g);i(l).on("keydown.buttons-copy",function(a){27===a.keyCode&&(g(),e.processing(!1))}).on("copy.buttons-copy cut.buttons-copy",function(){g();e.processing(!1)})},exportOptions:{},fieldSeparator:"\t",fieldBoundary:"",header:!0,footer:!1};n.ext.buttons.csvHtml5={bom:!1,className:"buttons-csv buttons-html5",available:function(){return g.FileReader!==o&&g.Blob},text:function(a){return a.i18n("buttons.csv","CSV")},action:function(a,c,d,b){this.processing(!0);a=F(c,b).str;c=b.charset;b.customize&&(a=b.customize(a,b));!1!==c?(c||(c=l.characterSet||l.charset),c&&(c=";charset="+c)):c="";b.bom&&(a=""+a);q(new Blob([a],{type:"text/csv"+c}),w(b),!0);this.processing(!1)},filename:"*",extension:".csv",exportOptions:{},fieldSeparator:",",fieldBoundary:'"',escapeChar:'"',charset:null,header:!0,footer:!1};n.ext.buttons.excelHtml5={className:"buttons-excel buttons-html5",available:function(){return g.FileReader!==o&&(r||g.JSZip)!==o&&!G()&&x},text:function(a){return a.i18n("buttons.excel","Excel")},action:function(a,c,d,b){this.processing(!0);var e=this,h=0,a=function(a){return i.parseXML(A[a])},f=a("xl/worksheets/sheet1.xml"),j=f.getElementsByTagName("sheetData")[0],a={_rels:{".rels":a("_rels/.rels")},xl:{_rels:{"workbook.xml.rels":a("xl/_rels/workbook.xml.rels")},"workbook.xml":a("xl/workbook.xml"),"styles.xml":a("xl/styles.xml"),worksheets:{"sheet1.xml":f}},"[Content_Types].xml":a("[Content_Types].xml")},c=c.buttons.exportData(b.exportOptions),m,l,d=function(a){m=h+1;l=p(f,"row",{attr:{r:m}});for(var b=0,c=a.length;b<c;b++){for(var d=b,e="";0<=d;)e=String.fromCharCode(d%26+65)+e,d=Math.floor(d/26)-1;var d=e+""+m,g=null;if(!(null===a[b]||a[b]===o||""===a[b])){a[b]=i.trim(a[b]);for(var k=0,n=H.length;k<n;k++)if(e=H[k],a[b].match&&!a[b].match(/^0\d+/)&&a[b].match(e.match)){g=a[b].replace(/[^\d\.\-]/g,"");e.fmt&&(g=e.fmt(g));g=p(f,"c",{attr:{r:d,s:e.style},children:[p(f,"v",{text:g})]});break}g||("number"===typeof a[b]||a[b].match&&a[b].match(/^-?\d+(\.\d+)?#x2F;)&&!a[b].match(/^0\d+/)?g=p(f,"c",{attr:{t:"n",r:d},children:[p(f,"v",{text:a[b]})]}):(e=!a[b].replace?a[b]:a[b].replace(/[\x00-\x09\x0B\x0C\x0E-\x1F\x7F-\x9F]/g,""),g=p(f,"c",{attr:{t:"inlineStr",r:d},children:{row:p(f,"is",{children:{row:p(f,"t",{text:e})}})}})));l.appendChild(g)}}j.appendChild(l);h++};i("sheets sheet",a.xl["workbook.xml"]).attr("name",M(b));b.customizeData&&b.customizeData(c);b.header&&(d(c.header,h),i("row c",f).attr("s","2"));for(var k=0,n=c.body.length;k<n;k++)d(c.body[k],h);b.footer&&c.footer&&(d(c.footer,h),i("row:last c",f).attr("s","2"));d=p(f,"cols");i("worksheet",f).prepend(d);k=0;for(n=c.header.length;k<n;k++)d.appendChild(p(f,"col",{attr:{min:k+1,max:k+1,width:I(c,k),customWidth:1}}));b.customize&&b.customize(a);c=new(r||g.JSZip);d={type:"blob",mimeType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"};z(c,a);c.generateAsync?c.generateAsync(d).then(function(a){q(a,w(b));e.processing(!1)}):(q(c.generate(d),w(b)),this.processing(!1))},filename:"*",extension:".xlsx",exportOptions:{},header:!0,footer:!1};n.ext.buttons.pdfHtml5={className:"buttons-pdf buttons-html5",available:function(){return g.FileReader!==o&&(s||g.pdfMake)},text:function(a){return a.i18n("buttons.pdf","PDF")},action:function(a,c,d,b){this.processing(!0);var e=this,a=c.buttons.exportData(b.exportOptions),h=[];b.header&&h.push(i.map(a.header,function(a){return{text:"string"===typeof a?a:a+"",style:"tableHeader"}}));for(var f=0,j=a.body.length;f<j;f++)h.push(i.map(a.body[f],function(a){return{text:"string"===typeof a?a:a+"",style:f%2?"tableBodyEven":"tableBodyOdd"}}));b.footer&&a.footer&&h.push(i.map(a.footer,function(a){return{text:"string"===typeof a?a:a+"",style:"tableFooter"}}));a={pageSize:b.pageSize,pageOrientation:b.orientation,content:[{table:{headerRows:1,body:h},layout:"noBorders"}],styles:{tableHeader:{bold:!0,fontSize:11,color:"white",fillColor:"#2d4154",alignment:"center"},tableBodyEven:{},tableBodyOdd:{fillColor:"#f3f3f3"},tableFooter:{bold:!0,fontSize:11,color:"white",fillColor:"#2d4154"},title:{alignment:"center",fontSize:15},message:{}},defaultStyle:{fontSize:10}};b.message&&a.content.unshift({text:"function"==typeof b.message?b.message(c,d,b):b.message,style:"message",margin:[0,0,0,12]});b.title&&a.content.unshift({text:N(b,!1),style:"title",margin:[0,0,0,12]});b.customize&&b.customize(a,b);c=(s||g.pdfMake).createPdf(a);"open"===b.download&&!G()?(c.open(),this.processing(!1)):c.getBuffer(function(a){a=new Blob([a],{type:"application/pdf"});q(a,w(b));e.processing(!1)})},title:"*",filename:"*",extension:".pdf",exportOptions:{},orientation:"portrait",pageSize:"A4",header:!0,footer:!1,message:null,customize:null,download:"download"};return n.Buttons});(function(d){"function"===typeof define&&define.amd?define(["jquery","datatables.net","datatables.net-buttons"],function(f){return d(f,window,document)}):"object"===typeof exports?module.exports=function(f,b){f||(f=window);if(!b||!b.fn.dataTable)b=require("datatables.net")(f,b).$;b.fn.dataTable.Buttons||require("datatables.net-buttons")(f,b);return d(b,f,f.document)}:d(jQuery,window,document)})(function(d,f,b){var i=d.fn.dataTable,h=b.createElement("a"),m=function(a){h.href=a;a=h.host;-1===a.indexOf("/")&&0!==h.pathname.indexOf("/")&&(a+="/");return h.protocol+"//"+a+h.pathname+h.search};i.ext.buttons.print={className:"buttons-print",text:function(a){return a.i18n("buttons.print","Print")},action:function(a,b,h,e){var c=b.buttons.exportData(e.exportOptions),k=function(a,c){for(var b="<tr>",d=0,e=a.length;d<e;d++)b+="<"+c+">"+a[d]+"</"+c+">";return b+"</tr>"},a='<table class="'+b.table().node().className+'">';e.header&&(a+="<thead>"+k(c.header,"th")+"</thead>");for(var a=a+"<tbody>",l=0,i=c.body.length;l<i;l++)a+=k(c.body[l],"td");a+="</tbody>";e.footer&&c.footer&&(a+="<tfoot>"+k(c.footer,"th")+"</tfoot>");var g=f.open("",""),c=e.title;"function"===typeof c&&(c=c());-1!==c.indexOf("*")&&(c=c.replace("*",d("title").text()));g.document.close();var j="<title>"+c+"</title>";d("style, link").each(function(){var a=j,b=d(this).clone()[0];"link"===b.nodeName.toLowerCase()&&(b.href=m(b.href));j=a+b.outerHTML});try{g.document.head.innerHTML=j}catch(n){d(g.document.head).html(j)}g.document.body.innerHTML="<h1>"+c+"</h1><div>"+("function"===typeof e.message?e.message(b,h,e):e.message)+"</div>"+a;d(g.document.body).addClass("dt-print-view");d("img",g.document.body).each(function(a,b){b.setAttribute("src",m(b.getAttribute("src")))});e.customize&&e.customize(g);setTimeout(function(){e.autoPrint&&(g.print(),g.close())},250)},title:"*",message:"",exportOptions:{},header:!0,footer:!1,autoPrint:!0,customize:null};return i.Buttons});(function(g){"function"===typeof define&&define.amd?define(["jquery","datatables.net","datatables.net-buttons"],function(d){return g(d,window,document)}):"object"===typeof exports?module.exports=function(d,e){d||(d=window);if(!e||!e.fn.dataTable)e=require("datatables.net")(d,e).$;e.fn.dataTable.Buttons||require("datatables.net-buttons")(d,e);return g(e,d,d.document)}:g(jQuery,window,document)})(function(g,d,e,h){d=g.fn.dataTable;g.extend(d.ext.buttons,{colvis:function(b,a){return{extend:"collection",text:function(a){return a.i18n("buttons.colvis","Column visibility")},className:"buttons-colvis",buttons:[{extend:"columnsToggle",columns:a.columns,columnText:a.columnText}]}},columnsToggle:function(b,a){return b.columns(a.columns).indexes().map(function(b){return{extend:"columnToggle",columns:b,columnText:a.columnText}}).toArray()},columnToggle:function(b,a){return{extend:"columnVisibility",columns:a.columns,columnText:a.columnText}},columnsVisibility:function(b,a){return b.columns(a.columns).indexes().map(function(b){return{extend:"columnVisibility",columns:b,visibility:a.visibility,columnText:a.columnText}}).toArray()},columnVisibility:{columns:h,text:function(b,a,c){return c._columnText(b,c)},className:"buttons-columnVisibility",action:function(b,a,c,f){b=a.columns(f.columns);a=b.visible();b.visible(f.visibility!==h?f.visibility:!(a.length&&a[0]))},init:function(b,a,c){var f=this;b.on("column-visibility.dt"+c.namespace,function(a,d){d.bDestroying||f.active(b.column(c.columns).visible())}).on("column-reorder.dt"+c.namespace,function(a,d,e){1===b.columns(c.columns).count()&&("number"===typeof c.columns&&(c.columns=e.mapping[c.columns]),a=b.column(c.columns),f.text(c._columnText(b,c)),f.active(a.visible()))});this.active(b.column(c.columns).visible())},destroy:function(b,a,c){b.off("column-visibility.dt"+c.namespace).off("column-reorder.dt"+c.namespace)},_columnText:function(b,a){var c=b.column(a.columns).index(),f=b.settings()[0].aoColumns[c].sTitle.replace(/\n/g," ").replace(/<.*?>/g,"").replace(/^\s+|\s+#x2F;g,"");return a.columnText?a.columnText(b,c,f):f}},colvisRestore:{className:"buttons-colvisRestore",text:function(b){return b.i18n("buttons.colvisRestore","Restore visibility")},init:function(b,a,c){c._visOriginal=b.columns().indexes().map(function(a){return b.column(a).visible()}).toArray()},action:function(b,a,c,d){a.columns().every(function(b){b=a.colReorder&&a.colReorder.transpose?a.colReorder.transpose(b,"toOriginal"):b;this.visible(d._visOriginal[b])})}},colvisGroup:{className:"buttons-colvisGroup",action:function(b,a,c,d){a.columns(d.show).visible(!0,!1);a.columns(d.hide).visible(!1,!1);a.columns.adjust()},show:[],hide:[]}});return d.Buttons});jQuery(document).ready(function($){var wdtDateFormat=getMomentWdtDateFormat();var wdtTimeFormat=getMomentWdtTimeFormat();jQuery('.wdt-preload-layer').animateFadeOut();if(typeof wpdatatables_frontend_strings!=='undefined'){$.fn.DataTable.defaults.oLanguage.sInfo=wpdatatables_frontend_strings.sInfo;$.fn.DataTable.defaults.oLanguage.sSearch=wpdatatables_frontend_strings.sSearch;$.fn.DataTable.defaults.oLanguage.lengthMenu=wpdatatables_frontend_strings.lengthMenu;$.fn.DataTable.defaults.oLanguage.sEmptyTable=wpdatatables_frontend_strings.sEmptyTable;$.fn.DataTable.defaults.oLanguage.sInfoEmpty=wpdatatables_frontend_strings.sInfoEmpty;$.fn.DataTable.defaults.oLanguage.sInfoFiltered=wpdatatables_frontend_strings.sInfoFiltered;$.fn.DataTable.defaults.oLanguage.sInfoPostFix=wpdatatables_frontend_strings.sInfoPostFix;$.fn.DataTable.defaults.oLanguage.sInfoThousands=wpdatatables_frontend_strings.sInfoThousands;$.fn.DataTable.defaults.oLanguage.sLengthMenu=wpdatatables_frontend_strings.sLengthMenu;$.fn.DataTable.defaults.oLanguage.sProcessing=wpdatatables_frontend_strings.sProcessing;$.fn.DataTable.defaults.oLanguage.sZeroRecords=wpdatatables_frontend_strings.sZeroRecords;$.fn.DataTable.defaults.oLanguage.oPaginate=wpdatatables_frontend_strings.oPaginate;$.fn.DataTable.defaults.oLanguage.oAria=wpdatatables_frontend_strings.oAria}
87
- if(typeof($.fn.dataTableExt)!=='undefined'){$.fn.dataTableExt.oApi.fnFilterClear=function(oSettings){oSettings.oPreviousSearch.sSearch="";if(typeof oSettings.aanFeatures.f!='undefined'){var n=oSettings.aanFeatures.f;for(var i=0,iLen=n.length;i<iLen;i++){$('input',n[i]).val('')}}
88
- for(var i=0,iLen=oSettings.aoPreSearchCols.length;i<iLen;i++){oSettings.aoPreSearchCols[i].sSearch=""}
89
- oSettings.oApi._fnReDraw(oSettings)};$.extend($.fn.dataTableExt.oSort,{"formatted-num-pre":function(a){if($(a).text()!=''){a=$(a).text()}
90
- a=(a==="-"||a==="")?0:a.replace(/[^\d\-\.]/g,"");if(a!=-1&&a!=""){while(a.indexOf('.')!=-1){a=a.replace(".","")}
91
- a=a.replace(',','.')}
92
- return parseFloat(a)},"formatted-num-asc":function(a,b){return a-b},"formatted-num-desc":function(a,b){return b-a},"statuscol-pre":function(a){a=$(a).find('div.percents').text();return parseFloat(a)},"statuscol-asc":function(a,b){return a-b},"statuscol-desc":function(a,b){return b-a},"date-custom-pre":function(date){return wdtPrepareDate(date,wdtDateFormat,wdtTimeFormat)},"time-custom-pre":function(time){return wdtPrepareTime(time,wdtTimeFormat)}});$.fn.dataTableExt.oApi.fnGetColumnIndex=function(oSettings,sCol){var cols=oSettings.aoColumns;for(var x=0,xLen=cols.length;x<xLen;x++){if((typeof(cols[x].sTitle)=='string')&&(cols[x].sTitle.toLowerCase()==sCol.toLowerCase())){return x}}
93
- return-1};$.fn.dataTableExt.aTypes.unshift(function(sData){"use strict";if(/^([0-2]?\d|3[0-1])-(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)-\d{4}/i.test(sData)){return 'date-dd-mmm-yyyy'}
94
- return null});$.fn.dataTableExt.oSort['date-dd-mmm-yyyy-asc']=function(a,b){"use strict";var ordA=wdtCustomDateDDMMMYYYYToOrd(a),ordB=wdtCustomDateDDMMMYYYYToOrd(b);return(ordA<ordB)?-1:((ordA>ordB)?1:0)};$.fn.dataTableExt.oSort['date-dd-mmm-yyyy-desc']=function(a,b){"use strict";var ordA=wdtCustomDateDDMMMYYYYToOrd(a),ordB=wdtCustomDateDDMMMYYYYToOrd(b);return(ordA<ordB)?1:((ordA>ordB)?-1:0)}}
95
- $('body').on('focus','.wdt-datepicker',function(){$(this).datetimepicker({format:wdtDateFormat,showClear:!0,keepOpen:!1,useCurrent:!1}).off('dp.show').on('dp.show',function(){$(this).parent().find('div.bootstrap-datetimepicker-widget').addClass('wdt-datetimepicker-modal');wdtAddDatePlaceholders($(this))})});$('body').on('focus','.wdt-timepicker',function(){$(this).datetimepicker({format:wdtTimeFormat,showClear:!0,keepOpen:!0,useCurrent:!1}).off('dp.show').on('dp.show',function(){$(this).parent().find('div.bootstrap-datetimepicker-widget').addClass('wdt-datetimepicker-modal')})});$('body').on('focus','.wdt-datetimepicker',function(){$(this).datetimepicker({format:wdtDateFormat+' '+wdtTimeFormat,showClear:!0,keepOpen:!0,useCurrent:!1}).off('dp.show').on('dp.show',function(){$(this).parent().find('div.bootstrap-datetimepicker-widget').addClass('wdt-datetimepicker-modal');wdtAddDatePlaceholders($(this))})})});var wdtCustomDateDDMMMYYYYToOrd=function(date){"use strict";var dateParts=date.split(/-/);return(dateParts[2]*10000)+(jQuery.inArray(dateParts[1].toUpperCase(),["JAN","FEB","MAR","APR","MAY","JUN","JUL","AUG","SEP","OCT","NOV","DEC"])*100)+dateParts[0]};function wdtValidateURL(textval){var regex=/^([a-z]([a-z]|\d|\+|-|\.)*):(\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\amp;'\(\)\*\+,;=]|:)*@)?((\[(|(v[\da-f]{1,}\.(([a-z]|\d|-|\.|_|~)|[!\amp;'\(\)\*\+,;=]|:)+))\])|((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\amp;'\(\)\*\+,;=])*)(:\d*)?)(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\amp;'\(\)\*\+,;=]|:|@)*)*|(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\amp;'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\amp;'\(\)\*\+,;=]|:|@)*)*)?)|((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\amp;'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\amp;'\(\)\*\+,;=]|:|@)*)*)|((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\amp;'\(\)\*\+,;=]|:|@)){0})(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\amp;'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\amp;'\(\)\*\+,;=]|:|@)|\/|\?)*)?(||.*)?#x2F;i;return regex.test(textval)}
96
function wdtPrepareDate(date,wdtDateFormat,wdtTimeFormat){var format=wdtDateFormat+' '+wdtTimeFormat;return moment(date,format).valueOf()}
97
function wdtPrepareTime(time,wdtTimeFormat){return moment(time,wdtTimeFormat).valueOf()}
98
function wdtValidateEmail(email){var regex=/^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+(||.*)?#x2F;;return regex.test(email)}
99
function wdtRandString(n){if(!n){n=5}
100
- var text='';var possible='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz';for(var i=0;i<n;i++){text+=possible.charAt(Math.floor(Math.random()*possible.length))}
101
- return text}
102
function wdtFormatNumber(n,c,d,t){c=isNaN(c=Math.abs(c))?2:c,d=d==undefined?".":d,t=t==undefined?",":t,s=n<0?"-":"",i=parseInt(n=Math.abs(+n||0).toFixed(c))+"",j=(j=i.length)>3?j%3:0;return s+(j?i.substr(0,j)+t:"")+i.substr(j).replace(/(\d{3})(?=\d)/g,"$1"+t)+(c?d+Math.abs(n-i).toFixed(c).slice(2):"")}
103
function wdtUnformatNumber(number,thousandsSeparator,decimalsSeparator,isFloat){if(typeof isFloat=='undefined'){isFloat=!1}
104
- var return_string=String(number).replace(new RegExp('\\'+thousandsSeparator,'g'),'');if(isFloat&&decimalsSeparator==','){return_string=return_string.replace(new RegExp('\\'+decimalsSeparator),'.')}
105
- return return_string}
106
function wdtCalculateColumnSum(columnData,thousandsSeparator){if(columnData.length>0){if(thousandsSeparator=='.'){var sum=columnData.reduce(function(a,b){return parseFloat(a)+parseFloat(b.replace(/\./g,''))},0)}else{sum=columnData.reduce(function(a,b){return parseFloat(a)+parseFloat(b.replace(/\,/g,''))},0)}}else{sum=0}
107
- return parseFloat(sum)}
108
function wdtCalculateColumnMin(columnData,thousandsSeparator){if(columnData.length>0){if(thousandsSeparator=='.'){var min=columnData.reduce(function(a,b){return parseInt(typeof(a)=='number'?a:a.replace(/\./g,''))<=parseInt(b.replace(/\./g,''))?parseFloat(typeof(a)=='number'?a:a.replace(/\./g,'')):parseFloat(b.replace(/\./g,''))})}else{min=columnData.reduce(function(a,b){return parseInt(typeof(a)=='number'?a:a.replace(/\,/g,''))<=parseInt(b.replace(/\,/g,''))?parseFloat(typeof(a)=='number'?a:a.replace(/\,/g,'')):parseFloat(b.replace(/\,/g,''))})}}else{min=0}
109
- return min}
110
function wdtCalculateColumnMax(columnData,thousandsSeparator){if(columnData.length>0){if(thousandsSeparator=='.'){var max=columnData.reduce(function(a,b){return parseInt(typeof(a)=='number'?a:a.replace(/\./g,''))>=parseInt(b.replace(/\./g,''))?parseFloat(typeof(a)=='number'?a:a.replace(/\./g,'')):parseFloat(b.replace(/\./g,''))})}else{max=columnData.reduce(function(a,b){return parseInt(typeof(a)=='number'?a:a.replace(/\,/g,''))>=parseInt(b.replace(/\,/g,''))?parseFloat(typeof(a)=='number'?a:a.replace(/\,/g,'')):parseFloat(b.replace(/\,/g,''))})}}else{max=0}
111
- return max}
112
function wdtFormatNumberByColumnType(number,columnType,columnDecimalPlaces,generalDecimalPlaces,decimalSeparator,thousandsSeparator){var numStr='';if(columnType=='int'){numStr=wdtFormatNumber(number,0,decimalSeparator,thousandsSeparator)}else{if(columnDecimalPlaces!=-1){numStr=wdtFormatNumber(number,columnDecimalPlaces,decimalSeparator,thousandsSeparator)}else{numStr=wdtFormatNumber(number,generalDecimalPlaces,decimalSeparator,thousandsSeparator)}}
113
- return numStr}
114
function wdtFillPossibleValuesList(distValues){if(jQuery('#wdt-column-values-list').tagsinput('items').length>0){jQuery('#wdt-possible-values-merge-list-modal').modal('show');jQuery('.wdt-merge-possible-values').click(function(e){e.preventDefault();e.stopImmediatePropagation();var oldListValues=jQuery.extend([],jQuery('#wdt-column-values-list').tagsinput('items'));var mergedValues=jQuery.merge(oldListValues,distValues);jQuery('#wdt-column-values-list').tagsinput('removeAll');mergedValues.sort();mergedValues=jQuery.unique(mergedValues);jQuery('#wdt-column-values-list').tagsinput('add',mergedValues.join('|'));jQuery('#wdt-possible-values-merge-list-modal').modal('hide')});jQuery('.wdt-replace-possible-values').click(function(e){e.preventDefault();e.stopImmediatePropagation();jQuery('#wdt-column-values-list').tagsinput('removeAll');distValues.sort();jQuery('#wdt-column-values-list').tagsinput('add',distValues.join('|'));jQuery('#wdt-possible-values-merge-list-modal').modal('hide')})}else{distValues.sort();jQuery('#wdt-column-values-list').tagsinput('add',distValues.join('|'))}}
115
function wdtAddDatePlaceholders(input){if(input.hasClass("formatting-rule-cell-value")){var datePlaceholders='<div class="col-sm-12 text-center p-b-15">'+'<button class="btn btn-primary p-5 btn-xs wdt-date-placeholder wdt-today-placeholder" data-toggle="tooltip" data-placement="top" title="By settings %TODAY% placeholder, cell value will be compared with today\'s date.">%TODAY%</button> '+'<button class="btn btn-primary p-5 btn-xs wdt-date-placeholder wdt-last-week-placeholder" data-toggle="tooltip" data-placement="top" title="By settings %LAST_WEEK% placeholder, cell value will be compared with last week\'s date.">%LAST_WEEK%</button> '+'<button class="btn btn-primary p-5 btn-xs wdt-date-placeholder wdt-this-week-placeholder" data-toggle="tooltip" data-placement="top" title="By settings %THIS_WEEK% placeholder, cell value will be compared with this week\'s date.">%THIS_WEEK%</button> '+'<button class="btn btn-primary p-5 btn-xs wdt-date-placeholder wdt-next-week-placeholder" data-toggle="tooltip" data-placement="top" title="By settings %NEXT_WEEK% placeholder, cell value will be compared with next week\'s date.">%NEXT_WEEK%</button> '+'<button class="btn btn-primary p-5 btn-xs wdt-date-placeholder wdt-last-30-days-placeholder" data-toggle="tooltip" data-placement="top" title="By settings %LAST_30_DAYS% placeholder, cell value will be compared with last 30 days.">%LAST_30_DAYS%</button> '+'<button class="btn btn-primary p-5 btn-xs wdt-date-placeholder wdt-last-month-placeholder" data-toggle="tooltip" data-placement="top" title="By settings %LAST_MONTH% placeholder, cell value will be compared with last month.">%LAST_MONTH%</button> '+'<button class="btn btn-primary p-5 btn-xs wdt-date-placeholder wdt-this-month-placeholder" data-toggle="tooltip" data-placement="top" title="By settings %THIS_MONTH% placeholder, cell value will be compared with this month.">%THIS_MONTH%</button> '+'<button class="btn btn-primary p-5 btn-xs wdt-date-placeholder wdt-next-month-placeholder" data-toggle="tooltip" data-placement="top" title="By settings %NEXT_MONTH% placeholder, cell value will be compared with next month.">%NEXT_MONTH%</button> '+'</div>';jQuery('.datepicker').closest("ul.list-unstyled").append(datePlaceholders);jQuery('.wdt-date-placeholder').tooltip();jQuery('.wdt-today-placeholder').click(function(){jQuery(this).closest('.form-group').find('.formatting-rule-cell-value').val('%TODAY%').data("DateTimePicker").hide()})
116
- jQuery('.wdt-last-week-placeholder').click(function(){jQuery(this).closest('.form-group').find('.formatting-rule-cell-value').val('%LAST_WEEK%').data("DateTimePicker").hide()})
117
- jQuery('.wdt-this-week-placeholder').click(function(){jQuery(this).closest('.form-group').find('.formatting-rule-cell-value').val('%THIS_WEEK%').data("DateTimePicker").hide()})
118
- jQuery('.wdt-next-week-placeholder').click(function(){jQuery(this).closest('.form-group').find('.formatting-rule-cell-value').val('%NEXT_WEEK%').data("DateTimePicker").hide()})
119
- jQuery('.wdt-last-30-days-placeholder').click(function(){jQuery(this).closest('.form-group').find('.formatting-rule-cell-value').val('%LAST_30_DAYS%').data("DateTimePicker").hide()})
120
- jQuery('.wdt-last-month-placeholder').click(function(){jQuery(this).closest('.form-group').find('.formatting-rule-cell-value').val('%LAST_MONTH%').data("DateTimePicker").hide()})
121
- jQuery('.wdt-this-month-placeholder').click(function(){jQuery(this).closest('.form-group').find('.formatting-rule-cell-value').val('%THIS_MONTH%').data("DateTimePicker").hide()});jQuery('.wdt-next-month-placeholder').click(function(){jQuery(this).closest('.form-group').find('.formatting-rule-cell-value').val('%NEXT_MONTH%').data("DateTimePicker").hide()})
122
- jQuery('.formatting-rule-cell-value.wdt-datepicker').on('dp.hide',function(e){e.stopImmediatePropagation();if(jQuery.inArray(jQuery(this).closest('.wdt-conditional-formatting-rule').find('.formatting-rule-cell-value').val(),['%LAST_WEEK%','%THIS_WEEK%','%NEXT_WEEK%','%LAST_30_DAYS%','%LAST_MONTH%','%NEXT_MONTH%','%THIS_MONTH%'])===-1){jQuery(this).closest('.wdt-conditional-formatting-rule').find('.formatting-rule-if-clause').prop('disabled',!1).selectpicker('val','lt')}else{jQuery(this).closest('.wdt-conditional-formatting-rule').find('.formatting-rule-if-clause').prop('disabled',!0).selectpicker('val','')}});jQuery('.formatting-rule-cell-value.wdt-datetimepicker').on('dp.hide',function(e){e.stopImmediatePropagation();if(jQuery.inArray(jQuery(this).closest('.wdt-conditional-formatting-rule').find('.formatting-rule-cell-value').val(),['%LAST_WEEK%','%THIS_WEEK%','%NEXT_WEEK%','%LAST_30_DAYS%','%LAST_MONTH%','%NEXT_MONTH%','%THIS_MONTH%'])===-1){jQuery(this).closest('.wdt-conditional-formatting-rule').find('.formatting-rule-if-clause').prop('disabled',!1).selectpicker('val','lt')}else{jQuery(this).closest('.wdt-conditional-formatting-rule').find('.formatting-rule-if-clause').prop('disabled',!0).selectpicker('val','')}})}}
123
- function getMomentWdtDateFormat(){return wpdatatables_settings.wdtDateFormat.replace('d','DD').replace('M','MMM').replace('m','MM').replace('y','YY')}
124
- function getMomentWdtTimeFormat(){return wpdatatables_settings.wdtTimeFormat.replace('H','HH').replace('i','mm')};var wpDataTables={};var wpDataTablesSelRows={};var wpDataTablesFunctions={};var wpDataTablesUpdatingFlags={};var wpDataTablesResponsiveHelpers={};var wdtBreakpointDefinition={tablet:1024,phone:480};var wdtCustomUploader=null;var wdtRenderDataTable=null;(function($){$(function(){wdtRenderDataTable=function($table,tableDescription){var dataTableOptions=tableDescription.dataTableParams;if($('.wdt-column-sum[data-table-id="'+tableDescription.tableWpId+'"]').length){var sumColumns=[];$('.wdt-column-sum[data-table-id="'+tableDescription.tableWpId+'"]').each(function(){sumColumns.push($(this).data('column-orig-header'))})}
125
- if($('.wdt-column-avg[data-table-id="'+tableDescription.tableWpId+'"]').length){var avgColumns=[];$('.wdt-column-avg[data-table-id="'+tableDescription.tableWpId+'"]').each(function(){avgColumns.push($(this).data('column-orig-header'))})}
126
- if($('.wdt-column-min[data-table-id="'+tableDescription.tableWpId+'"]').length){var minColumns=[];$('.wdt-column-min[data-table-id="'+tableDescription.tableWpId+'"]').each(function(){minColumns.push($(this).data('column-orig-header'))})}
127
- if($('.wdt-column-max[data-table-id="'+tableDescription.tableWpId+'"]').length){var maxColumns=[];$('.wdt-column-max[data-table-id="'+tableDescription.tableWpId+'"]').each(function(){maxColumns.push($(this).data('column-orig-header'))})}
128
- if(tableDescription.serverSide){dataTableOptions.ajax.data=function(data){data.sumColumns=sumColumns;data.avgColumns=avgColumns;data.minColumns=minColumns;data.maxColumns=maxColumns;data.currentUserId=$('#wdt-user-id-placeholder').val();data.currentUserLogin=$('#wdt-user-login-placeholder').val();data.currentPostIdPlaceholder=$('#wdt-post-id-placeholder').val();data.wpdbPlaceholder=$('#wdt-wpdb-placeholder').val()}}
129
- if(tableDescription.hideBeforeLoad){dataTableOptions.fnInitComplete=function(){$(tableDescription.selector).animateFadeIn()}}
130
- wpDataTables[tableDescription.tableId]=$(tableDescription.selector).dataTable(dataTableOptions);if(wpDataTables[tableDescription.tableId].fnSettings()._iDisplayLength>=wpDataTables[tableDescription.tableId].fnSettings().fnRecordsTotal()||dataTableOptions.iDisplayLength===-1){$('.dataTables_paginate').hide()}
131
- wpDataTables[tableDescription.tableId].fnSettings().aoDrawCallback.push({sName:'removePaginate',fn:function(oSettings){var api=oSettings.oInstance.api();if(api.page.len()>=api.page.info().recordsDisplay||api.data().page.len()===-1){$('.dataTables_paginate').hide()}else{$('.dataTables_paginate').show()}}});wpDataTables[tableDescription.tableId].addOnDrawCallback=function(callback){if(typeof callback!=='function'){return}
132
- var index=wpDataTables[tableDescription.tableId].fnSettings().aoDrawCallback.length+1;wpDataTables[tableDescription.tableId].fnSettings().aoDrawCallback.push({sName:'user_callback_'+index,fn:callback})};if((tableDescription.columnsFixed==0)&&(tableDescription.groupingEnabled)){wpDataTables[tableDescription.tableId].rowGrouping({iGroupingColumnIndex:tableDescription.groupingColumnIndex})}
133
- return wpDataTables[tableDescription.tableId]};$('table.wpDataTable').each(function(){var tableDescription=$.parseJSON($('#'+$(this).data('described-by')).val());wdtRenderDataTable($(this),tableDescription)})})})(jQuery);function wdtApplyCellAction($cell,action,setVal){switch(action){case 'setCellColor':$cell.attr('style','background-color: '+setVal+' !important');break;case 'defaultCellColor':$cell.attr('style','background-color: "" !important');break;case 'setCellContent':$cell.html(setVal);break;case 'setCellClass':$cell.addClass(setVal);break;case 'removeCellClass':$cell.removeClass(setVal);break;case 'setRowColor':$cell.closest('tr').find('td').attr('style','background-color: '+setVal+' !important');break;case 'defaultRowColor':$cell.closest('tr').find('td').attr('style','background-color: "" !important');break;case 'setRowClass':$cell.closest('tr').addClass(setVal);break;case 'addColumnClass':var index=$cell.index()+1;$cell.closest('table.wpDataTable').find('tbody td:nth-child('+index+')').addClass(setVal);break;case 'setColumnColor':var index=$cell.index()+1;$cell.closest('table.wpDataTable').find('tbody td:nth-child('+index+')').attr('style','background-color: '+setVal+' !important');break}}
134
function wdtDialog(str,title){var dialogId=Math.floor((Math.random()*1000)+1);var editModal=jQuery('.wdt-frontend-modal').clone();editModal.attr('id','remodal-'+dialogId);editModal.find('.modal-title').html(title);editModal.find('.modal-header').append(str);return editModal}
135
function wdtAddOverlay(table_selector){jQuery(table_selector).addClass('overlayed')}
136
function wdtRemoveOverlay(table_selector){jQuery(table_selector).removeClass('overlayed')}
137
function getPurifiedValue(element,responsive){if(responsive){var cellVal=element.children('.columnValue').html()}else{cellVal=element.clone().children().remove().end().html()}
138
- return cellVal}
139
function wdtCheckConditionalFormatting(conditionalFormattingRules,params,element,responsive){var cellVal='';var ruleVal='';var ruleMatched=!1;if((params.columnType=='int')||(params.columnType=='float')){cellVal=parseFloat(wdtUnformatNumber(getPurifiedValue(element,responsive),params.thousandsSeparator,params.decimalSeparator,!0))
140
- ruleVal=conditionalFormattingRules.cellVal}else if(params.columnType=='date'){cellVal=moment(getPurifiedValue(element,responsive),params.momentDateFormat).toDate();if(conditionalFormattingRules.cellVal=='%TODAY%'){ruleVal=moment().startOf('day').toDate()}else{ruleVal=moment(conditionalFormattingRules.cellVal,params.momentDateFormat).toDate()}}else if(params.columnType=='datetime'){if(conditionalFormattingRules.cellVal=='%TODAY%'){cellVal=moment(getPurifiedValue(element,responsive),params.momentDateFormat+' '+params.momentTimeFormat).startOf('day').toDate();ruleVal=moment().startOf('day').toDate()}else{cellVal=moment(getPurifiedValue(element,responsive),params.momentDateFormat+' '+params.momentTimeFormat).toDate();ruleVal=moment(conditionalFormattingRules.cellVal,params.momentDateFormat+' '+params.momentTimeFormat).toDate()}}else if(params.columnType=='time'){cellVal=moment(getPurifiedValue(element,responsive),params.momentTimeFormat).toDate();ruleVal=moment(conditionalFormattingRules.cellVal,params.momentTimeFormat).toDate()}else{cellVal=getPurifiedValue(element,responsive);ruleVal=conditionalFormattingRules.cellVal}
141
- switch(conditionalFormattingRules.ifClause){case 'lt':ruleMatched=cellVal<ruleVal;break;case 'lteq':ruleMatched=cellVal<=ruleVal;break;case 'eq':if(params.columnType=='date'||params.columnType=='datetime'||params.columnType=='time'){cellVal=cellVal!=null?cellVal.getTime():null;ruleVal=ruleVal!=null?ruleVal.getTime():null}
142
- ruleMatched=cellVal==ruleVal;break;case 'neq':if(params.columnType=='date'||params.columnType=='datetime'){cellVal=cellVal!=null?cellVal.getTime():null;ruleVal=ruleVal!=null?ruleVal.getTime():null}
143
- ruleMatched=cellVal!=ruleVal;break;case 'gteq':ruleMatched=cellVal>=ruleVal;break;case 'gt':ruleMatched=cellVal>ruleVal;break;case 'contains':ruleMatched=cellVal.indexOf(ruleVal)!==-1;break;case 'contains_not':ruleMatched=cellVal.indexOf(ruleVal)==-1;break}
144
- if(ruleMatched){wdtApplyCellAction(element,conditionalFormattingRules.action,conditionalFormattingRules.setVal)}}
145
jQuery.fn.dataTableExt.oStdClasses.sWrapper="wpDataTables wpDataTablesWrapper";jQuery.fn.dataTable.ext.classes.sLengthSelect='selectpicker length_menu';jQuery.fn.dataTable.ext.classes.sFilterInput='form-control'
1
+ /*!
2
+ DataTables 1.10.19
3
+ ©2008-2018 SpryMedia Ltd - datatables.net/license
4
+ */
5
+ (function(h){"function"===typeof define&&define.amd?define(["jquery"],function(E){return h(E,window,document)}):"object"===typeof exports?module.exports=function(E,H){E||(E=window);H||(H="undefined"!==typeof window?require("jquery"):require("jquery")(E));return h(H,E,E.document)}:h(jQuery,window,document)})(function(h,E,H,k){function Z(a){var b,c,d={};h.each(a,function(e){if((b=e.match(/^([^A-Z]+?)([A-Z])/))&&-1!=="a aa ai ao as b fn i m o s ".indexOf(b[1]+" "))c=e.replace(b[0],b[2].toLowerCase()),d[c]=e,"o"===b[1]&&Z(a[e])});a._hungarianMap=d}function J(a,b,c){a._hungarianMap||Z(a);var d;h.each(b,function(e){d=a._hungarianMap[e];if(d!==k&&(c||b[d]===k))"o"===d.charAt(0)?(b[d]||(b[d]={}),h.extend(!0,b[d],b[e]),J(a[d],b[d],c)):b[d]=b[e]})}function Ca(a){var b=n.defaults.oLanguage,c=b.sDecimal;c&&Da(c);if(a){var d=a.sZeroRecords;!a.sEmptyTable&&(d&&"No data available in table"===b.sEmptyTable)&&F(a,a,"sZeroRecords","sEmptyTable");!a.sLoadingRecords&&(d&&"Loading..."===b.sLoadingRecords)&&F(a,a,"sZeroRecords","sLoadingRecords");a.sInfoThousands&&(a.sThousands=a.sInfoThousands);(a=a.sDecimal)&&c!==a&&Da(a)}}function fb(a){A(a,"ordering","bSort");A(a,"orderMulti","bSortMulti");A(a,"orderClasses","bSortClasses");A(a,"orderCellsTop","bSortCellsTop");A(a,"order","aaSorting");A(a,"orderFixed","aaSortingFixed");A(a,"paging","bPaginate");A(a,"pagingType","sPaginationType");A(a,"pageLength","iDisplayLength");A(a,"searching","bFilter");"boolean"===typeof a.sScrollX&&(a.sScrollX=a.sScrollX?"100%":"");"boolean"===typeof a.scrollX&&(a.scrollX=a.scrollX?"100%":"");if(a=a.aoSearchCols)for(var b=0,c=a.length;b<c;b++)a[b]&&J(n.models.oSearch,a[b])}function gb(a){A(a,"orderable","bSortable");A(a,"orderData","aDataSort");A(a,"orderSequence","asSorting");A(a,"orderDataType","sortDataType");var b=a.aDataSort;"number"===typeof b&&!h.isArray(b)&&(a.aDataSort=[b])}function hb(a){if(!n.__browser){var b={};n.__browser=b;var c=h("<div/>").css({position:"fixed",top:0,left:-1*h(E).scrollLeft(),height:1,width:1,overflow:"hidden"}).append(h("<div/>").css({position:"absolute",top:1,left:1,width:100,overflow:"scroll"}).append(h("<div/>").css({width:"100%",height:10}))).appendTo("body"),d=c.children(),e=d.children();b.barWidth=d[0].offsetWidth-d[0].clientWidth;b.bScrollOversize=100===e[0].offsetWidth&&100!==d[0].clientWidth;b.bScrollbarLeft=1!==Math.round(e.offset().left);b.bBounding=c[0].getBoundingClientRect().width?!0:!1;c.remove()}h.extend(a.oBrowser,n.__browser);a.oScroll.iBarWidth=n.__browser.barWidth}
6
+ function ib(a,b,c,d,e,f){var g,j=!1;c!==k&&(g=c,j=!0);for(;d!==e;)a.hasOwnProperty(d)&&(g=j?b(g,a[d],d,a):a[d],j=!0,d+=f);return g}function Ea(a,b){var c=n.defaults.column,d=a.aoColumns.length,c=h.extend({},n.models.oColumn,c,{nTh:b?b:H.createElement("th"),sTitle:c.sTitle?c.sTitle:b?b.innerHTML:"",aDataSort:c.aDataSort?c.aDataSort:[d],mData:c.mData?c.mData:d,idx:d});a.aoColumns.push(c);c=a.aoPreSearchCols;c[d]=h.extend({},n.models.oSearch,c[d]);ka(a,d,h(b).data())}function ka(a,b,c){var b=a.aoColumns[b],d=a.oClasses,e=h(b.nTh);if(!b.sWidthOrig){b.sWidthOrig=e.attr("width")||null;var f=(e.attr("style")||"").match(/width:\s*(\d+[pxem%]+)/);f&&(b.sWidthOrig=f[1])}c!==k&&null!==c&&(gb(c),J(n.defaults.column,c),c.mDataProp!==k&&!c.mData&&(c.mData=c.mDataProp),c.sType&&(b._sManualType=c.sType),c.className&&!c.sClass&&(c.sClass=c.className),c.sClass&&e.addClass(c.sClass),h.extend(b,c),F(b,c,"sWidth","sWidthOrig"),c.iDataSort!==k&&(b.aDataSort=[c.iDataSort]),F(b,c,"aDataSort"));var g=b.mData,j=S(g),i=b.mRender?S(b.mRender):null,c=function(a){return"string"===typeof a&&-1!==a.indexOf("@")};b._bAttrSrc=h.isPlainObject(g)&&(c(g.sort)||c(g.type)||c(g.filter));b._setter=null;b.fnGetData=function(a,b,c){var d=j(a,b,k,c);return i&&b?i(d,b,a,c):d};b.fnSetData=function(a,b,c){return N(g)(a,b,c)};"number"!==typeof g&&(a._rowReadObject=!0);a.oFeatures.bSort||(b.bSortable=!1,e.addClass(d.sSortableNone));a=-1!==h.inArray("asc",b.asSorting);c=-1!==h.inArray("desc",b.asSorting);!b.bSortable||!a&&!c?(b.sSortingClass=d.sSortableNone,b.sSortingClassJUI=""):a&&!c?(b.sSortingClass=d.sSortableAsc,b.sSortingClassJUI=d.sSortJUIAscAllowed):!a&&c?(b.sSortingClass=d.sSortableDesc,b.sSortingClassJUI=d.sSortJUIDescAllowed):(b.sSortingClass=d.sSortable,b.sSortingClassJUI=d.sSortJUI)}function $(a){if(!1!==a.oFeatures.bAutoWidth){var b=a.aoColumns;Fa(a);for(var c=0,d=b.length;c<d;c++)b[c].nTh.style.width=b[c].sWidth}b=a.oScroll;(""!==b.sY||""!==b.sX)&&la(a);r(a,null,"column-sizing",[a])}function aa(a,b){var c=ma(a,"bVisible");return"number"===typeof c[b]?c[b]:null}function ba(a,b){var c=ma(a,"bVisible"),c=h.inArray(b,c);return-1!==c?c:null}function V(a){var b=0;h.each(a.aoColumns,function(a,d){d.bVisible&&"none"!==h(d.nTh).css("display")&&b++});return b}function ma(a,b){var c=[];h.map(a.aoColumns,function(a,e){a[b]&&c.push(e)});return c}function Ga(a){var b=a.aoColumns,c=a.aoData,d=n.ext.type.detect,e,f,g,j,i,h,l,q,t;e=0;for(f=b.length;e<f;e++)if(l=b[e],t=[],!l.sType&&l._sManualType)l.sType=l._sManualType;else if(!l.sType){g=0;for(j=d.length;g<j;g++){i=0;for(h=c.length;i<h;i++){t[i]===k&&(t[i]=B(a,i,e,"type"));q=d[g](t[i],a);if(!q&&g!==d.length-1)break;if("html"===q)break}if(q){l.sType=q;break}}l.sType||(l.sType="string")}}function jb(a,b,c,d){var e,f,g,j,i,m,l=a.aoColumns;if(b)for(e=b.length-1;0<=e;e--){m=b[e];var q=m.targets!==k?m.targets:m.aTargets;h.isArray(q)||(q=[q]);f=0;for(g=q.length;f<g;f++)if("number"===typeof q[f]&&0<=q[f]){for(;l.length<=q[f];)Ea(a);d(q[f],m)}else if("number"===typeof q[f]&&0>q[f])d(l.length+q[f],m);else if("string"===typeof q[f]){j=0;for(i=l.length;j<i;j++)("_all"==q[f]||h(l[j].nTh).hasClass(q[f]))&&d(j,m)}}if(c){e=0;for(a=c.length;e<a;e++)d(e,c[e])}}function O(a,b,c,d){var e=a.aoData.length,f=h.extend(!0,{},n.models.oRow,{src:c?"dom":"data",idx:e});f._aData=b;a.aoData.push(f);for(var g=a.aoColumns,j=0,i=g.length;j<i;j++)g[j].sType=null;a.aiDisplayMaster.push(e);b=a.rowIdFn(b);b!==k&&(a.aIds[b]=f);(c||!a.oFeatures.bDeferRender)&&Ha(a,e,c,d);return e}function na(a,b){var c;b instanceof h||(b=h(b));return b.map(function(b,e){c=Ia(a,e);return O(a,c.data,e,c.cells)})}function B(a,b,c,d){var e=a.iDraw,f=a.aoColumns[c],g=a.aoData[b]._aData,j=f.sDefaultContent,i=f.fnGetData(g,d,{settings:a,row:b,col:c});if(i===k)return a.iDrawError!=e&&null===j&&(K(a,0,"Requested unknown parameter "+("function"==typeof f.mData?"{function}":"'"+f.mData+"'")+" for row "+b+", column "+c,4),a.iDrawError=e),j;if((i===g||null===i)&&null!==j&&d!==k)i=j;else if("function"===typeof i)return i.call(g);return null===i&&"display"==d?"":i}function kb(a,b,c,d){a.aoColumns[c].fnSetData(a.aoData[b]._aData,d,{settings:a,row:b,col:c})}function Ja(a){return h.map(a.match(/(\\.|[^\.])+/g)||[""],function(a){return a.replace(/\\\./g,".")})}function S(a){if(h.isPlainObject(a)){var b={};h.each(a,function(a,c){c&&(b[a]=S(c))});return function(a,c,f,g){var j=b[c]||b._;return j!==k?j(a,c,f,g):a}}if(null===a)return function(a){return a};if("function"===typeof a)return function(b,c,f,g){return a(b,c,f,g)};if("string"===typeof a&&(-1!==a.indexOf(".")||-1!==a.indexOf("[")||-1!==a.indexOf("("))){var c=function(a,b,f){var g,j;if(""!==f){j=Ja(f);for(var i=0,m=j.length;i<m;i++){f=j[i].match(ca);g=j[i].match(W);if(f){j[i]=j[i].replace(ca,"");""!==j[i]&&(a=a[j[i]]);g=[];j.splice(0,i+1);j=j.join(".");if(h.isArray(a)){i=0;for(m=a.length;i<m;i++)g.push(c(a[i],b,j))}a=f[0].substring(1,f[0].length-1);a=""===a?g:g.join(a);break}else if(g){j[i]=j[i].replace(W,"");a=a[j[i]]();continue}if(null===a||a[j[i]]===k)return k;a=a[j[i]]}}return a};return function(b,e){return c(b,e,a)}}return function(b){return b[a]}}
7
+ function N(a){if(h.isPlainObject(a))return N(a._);if(null===a)return function(){};if("function"===typeof a)return function(b,d,e){a(b,"set",d,e)};if("string"===typeof a&&(-1!==a.indexOf(".")||-1!==a.indexOf("[")||-1!==a.indexOf("("))){var b=function(a,d,e){var e=Ja(e),f;f=e[e.length-1];for(var g,j,i=0,m=e.length-1;i<m;i++){g=e[i].match(ca);j=e[i].match(W);if(g){e[i]=e[i].replace(ca,"");a[e[i]]=[];f=e.slice();f.splice(0,i+1);g=f.join(".");if(h.isArray(d)){j=0;for(m=d.length;j<m;j++)f={},b(f,d[j],g),a[e[i]].push(f)}else a[e[i]]=d;return}j&&(e[i]=e[i].replace(W,""),a=a[e[i]](d));if(null===a[e[i]]||a[e[i]]===k)a[e[i]]={};a=a[e[i]]}if(f.match(W))a[f.replace(W,"")](d);else a[f.replace(ca,"")]=d};return function(c,d){return b(c,d,a)}}return function(b,d){b[a]=d}}function Ka(a){return D(a.aoData,"_aData")}function oa(a){a.aoData.length=0;a.aiDisplayMaster.length=0;a.aiDisplay.length=0;a.aIds={}}function pa(a,b,c){for(var d=-1,e=0,f=a.length;e<f;e++)a[e]==b?d=e:a[e]>b&&a[e]--;-1!=d&&c===k&&a.splice(d,1)}function da(a,b,c,d){var e=a.aoData[b],f,g=function(c,d){for(;c.childNodes.length;)c.removeChild(c.firstChild);c.innerHTML=B(a,b,d,"display")};if("dom"===c||(!c||"auto"===c)&&"dom"===e.src)e._aData=Ia(a,e,d,d===k?k:e._aData).data;else{var j=e.anCells;if(j)if(d!==k)g(j[d],d);else{c=0;for(f=j.length;c<f;c++)g(j[c],c)}}e._aSortData=null;e._aFilterData=null;g=a.aoColumns;if(d!==k)g[d].sType=null;else{c=0;for(f=g.length;c<f;c++)g[c].sType=null;La(a,e)}}function Ia(a,b,c,d){var e=[],f=b.firstChild,g,j,i=0,m,l=a.aoColumns,q=a._rowReadObject,d=d!==k?d:q?{}:[],t=function(a,b){if("string"===typeof a){var c=a.indexOf("@");-1!==c&&(c=a.substring(c+1),N(a)(d,b.getAttribute(c)))}},G=function(a){if(c===k||c===i)j=l[i],m=h.trim(a.innerHTML),j&&j._bAttrSrc?(N(j.mData._)(d,m),t(j.mData.sort,a),t(j.mData.type,a),t(j.mData.filter,a)):q?(j._setter||(j._setter=N(j.mData)),j._setter(d,m)):d[i]=m;i++};if(f)for(;f;){g=f.nodeName.toUpperCase();if("TD"==g||"TH"==g)G(f),e.push(f);f=f.nextSibling}else{e=b.anCells;f=0;for(g=e.length;f<g;f++)G(e[f])}if(b=b.firstChild?b:b.nTr)(b=b.getAttribute("id"))&&N(a.rowId)(d,b);return{data:d,cells:e}}function Ha(a,b,c,d){var e=a.aoData[b],f=e._aData,g=[],j,i,m,l,q;if(null===e.nTr){j=c||H.createElement("tr");e.nTr=j;e.anCells=g;j._DT_RowIndex=b;La(a,e);l=0;for(q=a.aoColumns.length;l<q;l++){m=a.aoColumns[l];i=c?d[l]:H.createElement(m.sCellType);i._DT_CellIndex={row:b,column:l};g.push(i);if((!c||m.mRender||m.mData!==l)&&(!h.isPlainObject(m.mData)||m.mData._!==l+".display"))i.innerHTML=B(a,b,l,"display");m.sClass&&(i.className+=" "+m.sClass);m.bVisible&&!c?j.appendChild(i):!m.bVisible&&c&&i.parentNode.removeChild(i);m.fnCreatedCell&&m.fnCreatedCell.call(a.oInstance,i,B(a,b,l),f,b,l)}r(a,"aoRowCreatedCallback",null,[j,f,b,g])}e.nTr.setAttribute("role","row")}function La(a,b){var c=b.nTr,d=b._aData;if(c){var e=a.rowIdFn(d);e&&(c.id=e);d.DT_RowClass&&(e=d.DT_RowClass.split(" "),b.__rowc=b.__rowc?qa(b.__rowc.concat(e)):e,h(c).removeClass(b.__rowc.join(" ")).addClass(d.DT_RowClass));d.DT_RowAttr&&h(c).attr(d.DT_RowAttr);d.DT_RowData&&h(c).data(d.DT_RowData)}}function lb(a){var b,c,d,e,f,g=a.nTHead,j=a.nTFoot,i=0===h("th, td",g).length,m=a.oClasses,l=a.aoColumns;i&&(e=h("<tr/>").appendTo(g));b=0;for(c=l.length;b<c;b++)f=l[b],d=h(f.nTh).addClass(f.sClass),i&&d.appendTo(e),a.oFeatures.bSort&&(d.addClass(f.sSortingClass),!1!==f.bSortable&&(d.attr("tabindex",a.iTabIndex).attr("aria-controls",a.sTableId),Ma(a,f.nTh,b))),f.sTitle!=d[0].innerHTML&&d.html(f.sTitle),Na(a,"header")(a,d,f,m);i&&ea(a.aoHeader,g);h(g).find(">tr").attr("role","row");h(g).find(">tr>th, >tr>td").addClass(m.sHeaderTH);h(j).find(">tr>th, >tr>td").addClass(m.sFooterTH);if(null!==j){a=a.aoFooter[0];b=0;for(c=a.length;b<c;b++)f=l[b],f.nTf=a[b].cell,f.sClass&&h(f.nTf).addClass(f.sClass)}}function fa(a,b,c){var d,e,f,g=[],j=[],i=a.aoColumns.length,m;if(b){c===k&&(c=!1);d=0;for(e=b.length;d<e;d++){g[d]=b[d].slice();g[d].nTr=b[d].nTr;for(f=i-1;0<=f;f--)!a.aoColumns[f].bVisible&&!c&&g[d].splice(f,1);j.push([])}d=0;for(e=g.length;d<e;d++){if(a=g[d].nTr)for(;f=a.firstChild;)a.removeChild(f);f=0;for(b=g[d].length;f<b;f++)if(m=i=1,j[d][f]===k){a.appendChild(g[d][f].cell);for(j[d][f]=1;g[d+i]!==k&&g[d][f].cell==g[d+i][f].cell;)j[d+i][f]=1,i++;for(;g[d][f+m]!==k&&g[d][f].cell==g[d][f+m].cell;){for(c=0;c<i;c++)j[d+c][f+m]=1;m++}h(g[d][f].cell).attr("rowspan",i).attr("colspan",m)}}}}function P(a){var b=r(a,"aoPreDrawCallback","preDraw",[a]);if(-1!==h.inArray(!1,b))C(a,!1);else{var b=[],c=0,d=a.asStripeClasses,e=d.length,f=a.oLanguage,g=a.iInitDisplayStart,j="ssp"==y(a),i=a.aiDisplay;a.bDrawing=!0;g!==k&&-1!==g&&(a._iDisplayStart=j?g:g>=a.fnRecordsDisplay()?0:g,a.iInitDisplayStart=-1);var g=a._iDisplayStart,m=a.fnDisplayEnd();if(a.bDeferLoading)a.bDeferLoading=!1,a.iDraw++,C(a,!1);else if(j){if(!a.bDestroying&&!mb(a))return}else a.iDraw++;if(0!==i.length){f=j?a.aoData.length:m;for(j=j?0:g;j<f;j++){var l=i[j],q=a.aoData[l];null===q.nTr&&Ha(a,l);var t=q.nTr;if(0!==e){var G=d[c%e];q._sRowStripe!=G&&(h(t).removeClass(q._sRowStripe).addClass(G),q._sRowStripe=G)}r(a,"aoRowCallback",null,[t,q._aData,c,j,l]);b.push(t);c++}}else c=f.sZeroRecords,1==a.iDraw&&"ajax"==y(a)?c=f.sLoadingRecords:f.sEmptyTable&&0===a.fnRecordsTotal()&&(c=f.sEmptyTable),b[0]=h("<tr/>",{"class":e?d[0]:""}).append(h("<td />",{valign:"top",colSpan:V(a),"class":a.oClasses.sRowEmpty}).html(c))[0];r(a,"aoHeaderCallback","header",[h(a.nTHead).children("tr")[0],Ka(a),g,m,i]);r(a,"aoFooterCallback","footer",[h(a.nTFoot).children("tr")[0],Ka(a),g,m,i]);d=h(a.nTBody);d.children().detach();d.append(h(b));r(a,"aoDrawCallback","draw",[a]);a.bSorted=!1;a.bFiltered=!1;a.bDrawing=!1}}function T(a,b){var c=a.oFeatures,d=c.bFilter;c.bSort&&nb(a);d?ga(a,a.oPreviousSearch):a.aiDisplay=a.aiDisplayMaster.slice();!0!==b&&(a._iDisplayStart=0);a._drawHold=b;P(a);a._drawHold=!1}function ob(a){var b=a.oClasses,c=h(a.nTable),c=h("<div/>").insertBefore(c),d=a.oFeatures,e=h("<div/>",{id:a.sTableId+"_wrapper","class":b.sWrapper+(a.nTFoot?"":" "+b.sNoFooter)});a.nHolding=c[0];a.nTableWrapper=e[0];a.nTableReinsertBefore=a.nTable.nextSibling;for(var f=a.sDom.split(""),g,j,i,m,l,q,k=0;k<f.length;k++){g=null;j=f[k];if("<"==j){i=h("<div/>")[0];m=f[k+1];if("'"==m||'"'==m){l="";for(q=2;f[k+q]!=m;)l+=f[k+q],q++;"H"==l?l=b.sJUIHeader:"F"==l&&(l=b.sJUIFooter);-1!=l.indexOf(".")?(m=l.split("."),i.id=m[0].substr(1,m[0].length-1),i.className=m[1]):"#"==l.charAt(0)?i.id=l.substr(1,l.length-1):i.className=l;k+=q}e.append(i);e=h(i)}else if(">"==j)e=e.parent();else if("l"==j&&d.bPaginate&&d.bLengthChange)g=pb(a);else if("f"==j&&d.bFilter)g=qb(a);else if("r"==j&&d.bProcessing)g=rb(a);else if("t"==j)g=sb(a);else if("i"==j&&d.bInfo)g=tb(a);else if("p"==j&&d.bPaginate)g=ub(a);else if(0!==n.ext.feature.length){i=n.ext.feature;q=0;for(m=i.length;q<m;q++)if(j==i[q].cFeature){g=i[q].fnInit(a);break}}g&&(i=a.aanFeatures,i[j]||(i[j]=[]),i[j].push(g),e.append(g))}c.replaceWith(e);a.nHolding=null}function ea(a,b){var c=h(b).children("tr"),d,e,f,g,j,i,m,l,q,k;a.splice(0,a.length);f=0;for(i=c.length;f<i;f++)a.push([]);f=0;for(i=c.length;f<i;f++){d=c[f];for(e=d.firstChild;e;){if("TD"==e.nodeName.toUpperCase()||"TH"==e.nodeName.toUpperCase()){l=1*e.getAttribute("colspan");q=1*e.getAttribute("rowspan");l=!l||0===l||1===l?1:l;q=!q||0===q||1===q?1:q;g=0;for(j=a[f];j[g];)g++;m=g;k=1===l?!0:!1;for(j=0;j<l;j++)for(g=0;g<q;g++)a[f+g][m+j]={cell:e,unique:k},a[f+g].nTr=d}e=e.nextSibling}}}function ra(a,b,c){var d=[];c||(c=a.aoHeader,b&&(c=[],ea(c,b)));for(var b=0,e=c.length;b<e;b++)for(var f=0,g=c[b].length;f<g;f++)if(c[b][f].unique&&(!d[f]||!a.bSortCellsTop))d[f]=c[b][f].cell;return d}function sa(a,b,c){r(a,"aoServerParams","serverParams",[b]);if(b&&h.isArray(b)){var d={},e=/(.*?)\[\]#x2F;;h.each(b,function(a,b){var c=b.name.match(e);c?(c=c[0],d[c]||(d[c]=[]),d[c].push(b.value)):d[b.name]=b.value});b=d}var f,g=a.ajax,j=a.oInstance,i=function(b){r(a,null,"xhr",[a,b,a.jqXHR]);c(b)};if(h.isPlainObject(g)&&g.data){f=g.data;var m="function"===typeof f?f(b,a):f,b="function"===typeof f&&m?m:h.extend(!0,b,m);delete g.data}m={data:b,success:function(b){var c=b.error||b.sError;c&&K(a,0,c);a.json=b;i(b)},dataType:"json",cache:!1,type:a.sServerMethod,error:function(b,c){var d=r(a,null,"xhr",[a,null,a.jqXHR]);-1===h.inArray(!0,d)&&("parsererror"==c?K(a,0,"Invalid JSON response",1):4===b.readyState&&K(a,0,"Ajax error",7));C(a,!1)}};a.oAjaxData=b;r(a,null,"preXhr",[a,b]);a.fnServerData?a.fnServerData.call(j,a.sAjaxSource,h.map(b,function(a,b){return{name:b,value:a}}),i,a):a.sAjaxSource||"string"===typeof g?a.jqXHR=h.ajax(h.extend(m,{url:g||a.sAjaxSource})):"function"===typeof g?a.jqXHR=g.call(j,b,i,a):(a.jqXHR=h.ajax(h.extend(m,g)),g.data=f)}function mb(a){return a.bAjaxDataGet?(a.iDraw++,C(a,!0),sa(a,vb(a),function(b){wb(a,b)}),!1):!0}function vb(a){var b=a.aoColumns,c=b.length,d=a.oFeatures,e=a.oPreviousSearch,f=a.aoPreSearchCols,g,j=[],i,m,l,k=X(a);g=a._iDisplayStart;i=!1!==d.bPaginate?a._iDisplayLength:-1;var t=function(a,b){j.push({name:a,value:b})};t("sEcho",a.iDraw);t("iColumns",c);t("sColumns",D(b,"sName").join(","));t("iDisplayStart",g);t("iDisplayLength",i);var G={draw:a.iDraw,columns:[],order:[],start:g,length:i,search:{value:e.sSearch,regex:e.bRegex}};for(g=0;g<c;g++)m=b[g],l=f[g],i="function"==typeof m.mData?"function":m.mData,G.columns.push({data:i,name:m.sName,searchable:m.bSearchable,orderable:m.bSortable,search:{value:l.sSearch,regex:l.bRegex}}),t("mDataProp_"+g,i),d.bFilter&&(t("sSearch_"+g,l.sSearch),t("bRegex_"+g,l.bRegex),t("bSearchable_"+g,m.bSearchable)),d.bSort&&t("bSortable_"+g,m.bSortable);d.bFilter&&(t("sSearch",e.sSearch),t("bRegex",e.bRegex));d.bSort&&(h.each(k,function(a,b){G.order.push({column:b.col,dir:b.dir});t("iSortCol_"+a,b.col);t("sSortDir_"+a,b.dir)}),t("iSortingCols",k.length));b=n.ext.legacy.ajax;return null===b?a.sAjaxSource?j:G:b?j:G}function wb(a,b){var c=ta(a,b),d=b.sEcho!==k?b.sEcho:b.draw,e=b.iTotalRecords!==k?b.iTotalRecords:b.recordsTotal,f=b.iTotalDisplayRecords!==k?b.iTotalDisplayRecords:b.recordsFiltered;if(d){if(1*d<a.iDraw)return;a.iDraw=1*d}oa(a);a._iRecordsTotal=parseInt(e,10);a._iRecordsDisplay=parseInt(f,10);d=0;for(e=c.length;d<e;d++)O(a,c[d]);a.aiDisplay=a.aiDisplayMaster.slice();a.bAjaxDataGet=!1;P(a);a._bInitComplete||ua(a,b);a.bAjaxDataGet=!0;C(a,!1)}function ta(a,b){var c=h.isPlainObject(a.ajax)&&a.ajax.dataSrc!==k?a.ajax.dataSrc:a.sAjaxDataProp;return"data"===c?b.aaData||b[c]:""!==c?S(c)(b):b}function qb(a){var b=a.oClasses,c=a.sTableId,d=a.oLanguage,e=a.oPreviousSearch,f=a.aanFeatures,g='<input type="search" class="'+b.sFilterInput+'"/>',j=d.sSearch,j=j.match(/_INPUT_/)?j.replace("_INPUT_",g):j+g,b=h("<div/>",{id:!f.f?c+"_filter":null,"class":b.sFilter}).append(h("<label/>").append(j)),f=function(){var b=!this.value?"":this.value;b!=e.sSearch&&(ga(a,{sSearch:b,bRegex:e.bRegex,bSmart:e.bSmart,bCaseInsensitive:e.bCaseInsensitive}),a._iDisplayStart=0,P(a))},g=null!==a.searchDelay?a.searchDelay:"ssp"===y(a)?400:0,i=h("input",b).val(e.sSearch).attr("placeholder",d.sSearchPlaceholder).on("keyup.DT search.DT input.DT paste.DT cut.DT",g?Oa(f,g):f).on("keypress.DT",function(a){if(13==a.keyCode)return!1}).attr("aria-controls",c);h(a.nTable).on("search.dt.DT",function(b,c){if(a===c)try{i[0]!==H.activeElement&&i.val(e.sSearch)}catch(d){}});return b[0]}function ga(a,b,c){var d=a.oPreviousSearch,e=a.aoPreSearchCols,f=function(a){d.sSearch=a.sSearch;d.bRegex=a.bRegex;d.bSmart=a.bSmart;d.bCaseInsensitive=a.bCaseInsensitive};Ga(a);if("ssp"!=y(a)){xb(a,b.sSearch,c,b.bEscapeRegex!==k?!b.bEscapeRegex:b.bRegex,b.bSmart,b.bCaseInsensitive);f(b);for(b=0;b<e.length;b++)yb(a,e[b].sSearch,b,e[b].bEscapeRegex!==k?!e[b].bEscapeRegex:e[b].bRegex,e[b].bSmart,e[b].bCaseInsensitive);zb(a)}else f(b);a.bFiltered=!0;r(a,null,"search",[a])}function zb(a){for(var b=n.ext.search,c=a.aiDisplay,d,e,f=0,g=b.length;f<g;f++){for(var j=[],i=0,m=c.length;i<m;i++)e=c[i],d=a.aoData[e],b[f](a,d._aFilterData,e,d._aData,i)&&j.push(e);c.length=0;h.merge(c,j)}}function yb(a,b,c,d,e,f){if(""!==b){for(var g=[],j=a.aiDisplay,d=Pa(b,d,e,f),e=0;e<j.length;e++)b=a.aoData[j[e]]._aFilterData[c],d.test(b)&&g.push(j[e]);a.aiDisplay=g}}function xb(a,b,c,d,e,f){var d=Pa(b,d,e,f),f=a.oPreviousSearch.sSearch,g=a.aiDisplayMaster,j,e=[];0!==n.ext.search.length&&(c=!0);j=Ab(a);if(0>=b.length)a.aiDisplay=g.slice();else{if(j||c||f.length>b.length||0!==b.indexOf(f)||a.bSorted)a.aiDisplay=g.slice();b=a.aiDisplay;for(c=0;c<b.length;c++)d.test(a.aoData[b[c]]._sFilterRow)&&e.push(b[c]);a.aiDisplay=e}}function Pa(a,b,c,d){a=b?a:Qa(a);c&&(a="^(?=.*?"+h.map(a.match(/"[^"]+"|[^ ]+/g)||[""],function(a){if('"'===a.charAt(0))var b=a.match(/^"(.*)"#x2F;),a=b?b[1]:a;return a.replace('"',"")}).join(")(?=.*?")+").*quot;);return RegExp(a,d?"i":"")}function Ab(a){var b=a.aoColumns,c,d,e,f,g,j,i,h,l=n.ext.type.search;c=!1;d=0;for(f=a.aoData.length;d<f;d++)if(h=a.aoData[d],!h._aFilterData){j=[];e=0;for(g=b.length;e<g;e++)c=b[e],c.bSearchable?(i=B(a,d,e,"filter"),l[c.sType]&&(i=l[c.sType](i)),null===i&&(i=""),"string"!==typeof i&&i.toString&&(i=i.toString())):i="",i.indexOf&&-1!==i.indexOf("&")&&(va.innerHTML=i,i=Wb?va.textContent:va.innerText),i.replace&&(i=i.replace(/[\r\n]/g,"")),j.push(i);h._aFilterData=j;h._sFilterRow=j.join(" ");c=!0}return c}function Bb(a){return{search:a.sSearch,smart:a.bSmart,regex:a.bRegex,caseInsensitive:a.bCaseInsensitive}}function Cb(a){return{sSearch:a.search,bSmart:a.smart,bRegex:a.regex,bCaseInsensitive:a.caseInsensitive}}function tb(a){var b=a.sTableId,c=a.aanFeatures.i,d=h("<div/>",{"class":a.oClasses.sInfo,id:!c?b+"_info":null});c||(a.aoDrawCallback.push({fn:Db,sName:"information"}),d.attr("role","status").attr("aria-live","polite"),h(a.nTable).attr("aria-describedby",b+"_info"));return d[0]}function Db(a){var b=a.aanFeatures.i;if(0!==b.length){var c=a.oLanguage,d=a._iDisplayStart+1,e=a.fnDisplayEnd(),f=a.fnRecordsTotal(),g=a.fnRecordsDisplay(),j=g?c.sInfo:c.sInfoEmpty;g!==f&&(j+=" "+c.sInfoFiltered);j+=c.sInfoPostFix;j=Eb(a,j);c=c.fnInfoCallback;null!==c&&(j=c.call(a.oInstance,a,d,e,f,g,j));h(b).html(j)}}function Eb(a,b){var c=a.fnFormatNumber,d=a._iDisplayStart+1,e=a._iDisplayLength,f=a.fnRecordsDisplay(),g=-1===e;return b.replace(/_START_/g,c.call(a,d)).replace(/_END_/g,c.call(a,a.fnDisplayEnd())).replace(/_MAX_/g,c.call(a,a.fnRecordsTotal())).replace(/_TOTAL_/g,c.call(a,f)).replace(/_PAGE_/g,c.call(a,g?1:Math.ceil(d/e))).replace(/_PAGES_/g,c.call(a,g?1:Math.ceil(f/e)))}function ha(a){var b,c,d=a.iInitDisplayStart,e=a.aoColumns,f;c=a.oFeatures;var g=a.bDeferLoading;if(a.bInitialised){ob(a);lb(a);fa(a,a.aoHeader);fa(a,a.aoFooter);C(a,!0);c.bAutoWidth&&Fa(a);b=0;for(c=e.length;b<c;b++)f=e[b],f.sWidth&&(f.nTh.style.width=v(f.sWidth));r(a,null,"preInit",[a]);T(a);e=y(a);if("ssp"!=e||g)"ajax"==e?sa(a,[],function(c){var f=ta(a,c);for(b=0;b<f.length;b++)O(a,f[b]);a.iInitDisplayStart=d;T(a);C(a,!1);ua(a,c)},a):(C(a,!1),ua(a))}else setTimeout(function(){ha(a)},200)}function ua(a,b){a._bInitComplete=!0;(b||a.oInit.aaData)&&$(a);r(a,null,"plugin-init",[a,b]);r(a,"aoInitComplete","init",[a,b])}function Ra(a,b){var c=parseInt(b,10);a._iDisplayLength=c;Sa(a);r(a,null,"length",[a,c])}function pb(a){for(var b=a.oClasses,c=a.sTableId,d=a.aLengthMenu,e=h.isArray(d[0]),f=e?d[0]:d,d=e?d[1]:d,e=h("<select/>",{name:c+"_length","aria-controls":c,"class":b.sLengthSelect}),g=0,j=f.length;g<j;g++)e[0][g]=new Option("number"===typeof d[g]?a.fnFormatNumber(d[g]):d[g],f[g]);var i=h("<div><label/></div>").addClass(b.sLength);a.aanFeatures.l||(i[0].id=c+"_length");i.children().append(a.oLanguage.sLengthMenu.replace("_MENU_",e[0].outerHTML));h("select",i).val(a._iDisplayLength).on("change.DT",function(){Ra(a,h(this).val());P(a)});h(a.nTable).on("length.dt.DT",function(b,c,d){a===c&&h("select",i).val(d)});return i[0]}function ub(a){var b=a.sPaginationType,c=n.ext.pager[b],d="function"===typeof c,e=function(a){P(a)},b=h("<div/>").addClass(a.oClasses.sPaging+b)[0],f=a.aanFeatures;d||c.fnInit(a,b,e);f.p||(b.id=a.sTableId+"_paginate",a.aoDrawCallback.push({fn:function(a){if(d){var b=a._iDisplayStart,i=a._iDisplayLength,h=a.fnRecordsDisplay(),l=-1===i,b=l?0:Math.ceil(b/i),i=l?1:Math.ceil(h/i),h=c(b,i),k,l=0;for(k=f.p.length;l<k;l++)Na(a,"pageButton")(a,f.p[l],l,h,b,i)}else c.fnUpdate(a,e)},sName:"pagination"}));return b}function Ta(a,b,c){var d=a._iDisplayStart,e=a._iDisplayLength,f=a.fnRecordsDisplay();0===f||-1===e?d=0:"number"===typeof b?(d=b*e,d>f&&(d=0)):"first"==b?d=0:"previous"==b?(d=0<=e?d-e:0,0>d&&(d=0)):"next"==b?d+e<f&&(d+=e):"last"==b?d=Math.floor((f-1)/e)*e:K(a,0,"Unknown paging action: "+b,5);b=a._iDisplayStart!==d;a._iDisplayStart=d;b&&(r(a,null,"page",[a]),c&&P(a));return b}function rb(a){return h("<div/>",{id:!a.aanFeatures.r?a.sTableId+"_processing":null,"class":a.oClasses.sProcessing}).html(a.oLanguage.sProcessing).insertBefore(a.nTable)[0]}
8
+ function C(a,b){a.oFeatures.bProcessing&&h(a.aanFeatures.r).css("display",b?"block":"none");r(a,null,"processing",[a,b])}function sb(a){var b=h(a.nTable);b.attr("role","grid");var c=a.oScroll;if(""===c.sX&&""===c.sY)return a.nTable;var d=c.sX,e=c.sY,f=a.oClasses,g=b.children("caption"),j=g.length?g[0]._captionSide:null,i=h(b[0].cloneNode(!1)),m=h(b[0].cloneNode(!1)),l=b.children("tfoot");l.length||(l=null);i=h("<div/>",{"class":f.sScrollWrapper}).append(h("<div/>",{"class":f.sScrollHead}).css({overflow:"hidden",position:"relative",border:0,width:d?!d?null:v(d):"100%"}).append(h("<div/>",{"class":f.sScrollHeadInner}).css({"box-sizing":"content-box",width:c.sXInner||"100%"}).append(i.removeAttr("id").css("margin-left",0).append("top"===j?g:null).append(b.children("thead"))))).append(h("<div/>",{"class":f.sScrollBody}).css({position:"relative",overflow:"auto",width:!d?null:v(d)}).append(b));l&&i.append(h("<div/>",{"class":f.sScrollFoot}).css({overflow:"hidden",border:0,width:d?!d?null:v(d):"100%"}).append(h("<div/>",{"class":f.sScrollFootInner}).append(m.removeAttr("id").css("margin-left",0).append("bottom"===j?g:null).append(b.children("tfoot")))));var b=i.children(),k=b[0],f=b[1],t=l?b[2]:null;if(d)h(f).on("scroll.DT",function(){var a=this.scrollLeft;k.scrollLeft=a;l&&(t.scrollLeft=a)});h(f).css(e&&c.bCollapse?"max-height":"height",e);a.nScrollHead=k;a.nScrollBody=f;a.nScrollFoot=t;a.aoDrawCallback.push({fn:la,sName:"scrolling"});return i[0]}function la(a){var b=a.oScroll,c=b.sX,d=b.sXInner,e=b.sY,b=b.iBarWidth,f=h(a.nScrollHead),g=f[0].style,j=f.children("div"),i=j[0].style,m=j.children("table"),j=a.nScrollBody,l=h(j),q=j.style,t=h(a.nScrollFoot).children("div"),n=t.children("table"),o=h(a.nTHead),p=h(a.nTable),s=p[0],r=s.style,u=a.nTFoot?h(a.nTFoot):null,x=a.oBrowser,U=x.bScrollOversize,Xb=D(a.aoColumns,"nTh"),Q,L,R,w,Ua=[],y=[],z=[],A=[],B,C=function(a){a=a.style;a.paddingTop="0";a.paddingBottom="0";a.borderTopWidth="0";a.borderBottomWidth="0";a.height=0};L=j.scrollHeight>j.clientHeight;if(a.scrollBarVis!==L&&a.scrollBarVis!==k)a.scrollBarVis=L,$(a);else{a.scrollBarVis=L;p.children("thead, tfoot").remove();u&&(R=u.clone().prependTo(p),Q=u.find("tr"),R=R.find("tr"));w=o.clone().prependTo(p);o=o.find("tr");L=w.find("tr");w.find("th, td").removeAttr("tabindex");c||(q.width="100%",f[0].style.width="100%");h.each(ra(a,w),function(b,c){B=aa(a,b);c.style.width=a.aoColumns[B].sWidth});u&&I(function(a){a.style.width=""},R);f=p.outerWidth();if(""===c){r.width="100%";if(U&&(p.find("tbody").height()>j.offsetHeight||"scroll"==l.css("overflow-y")))r.width=v(p.outerWidth()-b);f=p.outerWidth()}else""!==d&&(r.width=v(d),f=p.outerWidth());I(C,L);I(function(a){z.push(a.innerHTML);Ua.push(v(h(a).css("width")))},L);I(function(a,b){if(h.inArray(a,Xb)!==-1)a.style.width=Ua[b]},o);h(L).height(0);u&&(I(C,R),I(function(a){A.push(a.innerHTML);y.push(v(h(a).css("width")))},R),I(function(a,b){a.style.width=y[b]},Q),h(R).height(0));I(function(a,b){a.innerHTML='<div class="dataTables_sizing">'+z[b]+"</div>";a.childNodes[0].style.height="0";a.childNodes[0].style.overflow="hidden";a.style.width=Ua[b]},L);u&&I(function(a,b){a.innerHTML='<div class="dataTables_sizing">'+A[b]+"</div>";a.childNodes[0].style.height="0";a.childNodes[0].style.overflow="hidden";a.style.width=y[b]},R);if(p.outerWidth()<f){Q=j.scrollHeight>j.offsetHeight||"scroll"==l.css("overflow-y")?f+b:f;if(U&&(j.scrollHeight>j.offsetHeight||"scroll"==l.css("overflow-y")))r.width=v(Q-b);(""===c||""!==d)&&K(a,1,"Possible column misalignment",6)}else Q="100%";q.width=v(Q);g.width=v(Q);u&&(a.nScrollFoot.style.width=v(Q));!e&&U&&(q.height=v(s.offsetHeight+b));c=p.outerWidth();m[0].style.width=v(c);i.width=v(c);d=p.height()>j.clientHeight||"scroll"==l.css("overflow-y");e="padding"+(x.bScrollbarLeft?"Left":"Right");i[e]=d?b+"px":"0px";u&&(n[0].style.width=v(c),t[0].style.width=v(c),t[0].style[e]=d?b+"px":"0px");p.children("colgroup").insertBefore(p.children("thead"));l.scroll();if((a.bSorted||a.bFiltered)&&!a._drawHold)j.scrollTop=0}}function I(a,b,c){for(var d=0,e=0,f=b.length,g,j;e<f;){g=b[e].firstChild;for(j=c?c[e].firstChild:null;g;)1===g.nodeType&&(c?a(g,j,d):a(g,d),d++),g=g.nextSibling,j=c?j.nextSibling:null;e++}}function Fa(a){var b=a.nTable,c=a.aoColumns,d=a.oScroll,e=d.sY,f=d.sX,g=d.sXInner,j=c.length,i=ma(a,"bVisible"),m=h("th",a.nTHead),l=b.getAttribute("width"),k=b.parentNode,t=!1,n,o,p=a.oBrowser,d=p.bScrollOversize;(n=b.style.width)&&-1!==n.indexOf("%")&&(l=n);for(n=0;n<i.length;n++)o=c[i[n]],null!==o.sWidth&&(o.sWidth=Fb(o.sWidthOrig,k),t=!0);if(d||!t&&!f&&!e&&j==V(a)&&j==m.length)for(n=0;n<j;n++)i=aa(a,n),null!==i&&(c[i].sWidth=v(m.eq(n).width()));else{j=h(b).clone().css("visibility","hidden").removeAttr("id");j.find("tbody tr").remove();var s=h("<tr/>").appendTo(j.find("tbody"));j.find("thead, tfoot").remove();j.append(h(a.nTHead).clone()).append(h(a.nTFoot).clone());j.find("tfoot th, tfoot td").css("width","");m=ra(a,j.find("thead")[0]);for(n=0;n<i.length;n++)o=c[i[n]],m[n].style.width=null!==o.sWidthOrig&&""!==o.sWidthOrig?v(o.sWidthOrig):"",o.sWidthOrig&&f&&h(m[n]).append(h("<div/>").css({width:o.sWidthOrig,margin:0,padding:0,border:0,height:1}));if(a.aoData.length)for(n=0;n<i.length;n++)t=i[n],o=c[t],h(Gb(a,t)).clone(!1).append(o.sContentPadding).appendTo(s);h("[name]",j).removeAttr("name");o=h("<div/>").css(f||e?{position:"absolute",top:0,left:0,height:1,right:0,overflow:"hidden"}:{}).append(j).appendTo(k);f&&g?j.width(g):f?(j.css("width","auto"),j.removeAttr("width"),j.width()<k.clientWidth&&l&&j.width(k.clientWidth)):e?j.width(k.clientWidth):l&&j.width(l);for(n=e=0;n<i.length;n++)k=h(m[n]),g=k.outerWidth()-k.width(),k=p.bBounding?Math.ceil(m[n].getBoundingClientRect().width):k.outerWidth(),e+=k,c[i[n]].sWidth=v(k-g);b.style.width=v(e);o.remove()}l&&(b.style.width=v(l));if((l||f)&&!a._reszEvt)b=function(){h(E).on("resize.DT-"+a.sInstance,Oa(function(){$(a)}))},d?setTimeout(b,1E3):b(),a._reszEvt=!0}function Fb(a,b){if(!a)return 0;var c=h("<div/>").css("width",v(a)).appendTo(b||H.body),d=c[0].offsetWidth;c.remove();return d}function Gb(a,b){var c=Hb(a,b);if(0>c)return null;var d=a.aoData[c];return!d.nTr?h("<td/>").html(B(a,c,b,"display"))[0]:d.anCells[b]}function Hb(a,b){for(var c,d=-1,e=-1,f=0,g=a.aoData.length;f<g;f++)c=B(a,f,b,"display")+"",c=c.replace(Yb,""),c=c.replace(/&nbsp;/g," "),c.length>d&&(d=c.length,e=f);return e}function v(a){return null===a?"0px":"number"==typeof a?0>a?"0px":a+"px":a.match(/\d#x2F;)?a+"px":a}function X(a){var b,c,d=[],e=a.aoColumns,f,g,j,i;b=a.aaSortingFixed;c=h.isPlainObject(b);var m=[];f=function(a){a.length&&!h.isArray(a[0])?m.push(a):h.merge(m,a)};h.isArray(b)&&f(b);c&&b.pre&&f(b.pre);f(a.aaSorting);c&&b.post&&f(b.post);for(a=0;a<m.length;a++){i=m[a][0];f=e[i].aDataSort;b=0;for(c=f.length;b<c;b++)g=f[b],j=e[g].sType||"string",m[a]._idx===k&&(m[a]._idx=h.inArray(m[a][1],e[g].asSorting)),d.push({src:i,col:g,dir:m[a][1],index:m[a]._idx,type:j,formatter:n.ext.type.order[j+"-pre"]})}return d}function nb(a){var b,c,d=[],e=n.ext.type.order,f=a.aoData,g=0,j,i=a.aiDisplayMaster,h;Ga(a);h=X(a);b=0;for(c=h.length;b<c;b++)j=h[b],j.formatter&&g++,Ib(a,j.col);if("ssp"!=y(a)&&0!==h.length){b=0;for(c=i.length;b<c;b++)d[i[b]]=b;g===h.length?i.sort(function(a,b){var c,e,g,j,i=h.length,k=f[a]._aSortData,n=f[b]._aSortData;for(g=0;g<i;g++)if(j=h[g],c=k[j.col],e=n[j.col],c=c<e?-1:c>e?1:0,0!==c)return"asc"===j.dir?c:-c;c=d[a];e=d[b];return c<e?-1:c>e?1:0}):i.sort(function(a,b){var c,g,j,i,k=h.length,n=f[a]._aSortData,o=f[b]._aSortData;for(j=0;j<k;j++)if(i=h[j],c=n[i.col],g=o[i.col],i=e[i.type+"-"+i.dir]||e["string-"+i.dir],c=i(c,g),0!==c)return c;c=d[a];g=d[b];return c<g?-1:c>g?1:0})}a.bSorted=!0}function Jb(a){for(var b,c,d=a.aoColumns,e=X(a),a=a.oLanguage.oAria,f=0,g=d.length;f<g;f++){c=d[f];var j=c.asSorting;b=c.sTitle.replace(/<.*?>/g,"");var i=c.nTh;i.removeAttribute("aria-sort");c.bSortable&&(0<e.length&&e[0].col==f?(i.setAttribute("aria-sort","asc"==e[0].dir?"ascending":"descending"),c=j[e[0].index+1]||j[0]):c=j[0],b+="asc"===c?a.sSortAscending:a.sSortDescending);i.setAttribute("aria-label",b)}}function Va(a,b,c,d){var e=a.aaSorting,f=a.aoColumns[b].asSorting,g=function(a,b){var c=a._idx;c===k&&(c=h.inArray(a[1],f));return c+1<f.length?c+1:b?null:0};"number"===typeof e[0]&&(e=a.aaSorting=[e]);c&&a.oFeatures.bSortMulti?(c=h.inArray(b,D(e,"0")),-1!==c?(b=g(e[c],!0),null===b&&1===e.length&&(b=0),null===b?e.splice(c,1):(e[c][1]=f[b],e[c]._idx=b)):(e.push([b,f[0],0]),e[e.length-1]._idx=0)):e.length&&e[0][0]==b?(b=g(e[0]),e.length=1,e[0][1]=f[b],e[0]._idx=b):(e.length=0,e.push([b,f[0]]),e[0]._idx=0);T(a);"function"==typeof d&&d(a)}function Ma(a,b,c,d){var e=a.aoColumns[c];Wa(b,{},function(b){!1!==e.bSortable&&(a.oFeatures.bProcessing?(C(a,!0),setTimeout(function(){Va(a,c,b.shiftKey,d);"ssp"!==y(a)&&C(a,!1)},0)):Va(a,c,b.shiftKey,d))})}function wa(a){var b=a.aLastSort,c=a.oClasses.sSortColumn,d=X(a),e=a.oFeatures,f,g;if(e.bSort&&e.bSortClasses){e=0;for(f=b.length;e<f;e++)g=b[e].src,h(D(a.aoData,"anCells",g)).removeClass(c+(2>e?e+1:3));e=0;for(f=d.length;e<f;e++)g=d[e].src,h(D(a.aoData,"anCells",g)).addClass(c+(2>e?e+1:3))}a.aLastSort=d}function Ib(a,b){var c=a.aoColumns[b],d=n.ext.order[c.sSortDataType],e;d&&(e=d.call(a.oInstance,a,b,ba(a,b)));for(var f,g=n.ext.type.order[c.sType+"-pre"],j=0,i=a.aoData.length;j<i;j++)if(c=a.aoData[j],c._aSortData||(c._aSortData=[]),!c._aSortData[b]||d)f=d?e[j]:B(a,j,b,"sort"),c._aSortData[b]=g?g(f):f}function xa(a){if(a.oFeatures.bStateSave&&!a.bDestroying){var b={time:+new Date,start:a._iDisplayStart,length:a._iDisplayLength,order:h.extend(!0,[],a.aaSorting),search:Bb(a.oPreviousSearch),columns:h.map(a.aoColumns,function(b,d){return{visible:b.bVisible,search:Bb(a.aoPreSearchCols[d])}})};r(a,"aoStateSaveParams","stateSaveParams",[a,b]);a.oSavedState=b;a.fnStateSaveCallback.call(a.oInstance,a,b)}}function Kb(a,b,c){var d,e,f=a.aoColumns,b=function(b){if(b&&b.time){var g=r(a,"aoStateLoadParams","stateLoadParams",[a,b]);if(-1===h.inArray(!1,g)&&(g=a.iStateDuration,!(0<g&&b.time<+new Date-1E3*g)&&!(b.columns&&f.length!==b.columns.length))){a.oLoadedState=h.extend(!0,{},b);b.start!==k&&(a._iDisplayStart=b.start,a.iInitDisplayStart=b.start);b.length!==k&&(a._iDisplayLength=b.length);b.order!==k&&(a.aaSorting=[],h.each(b.order,function(b,c){a.aaSorting.push(c[0]>=f.length?[0,c[1]]:c)}));b.search!==k&&h.extend(a.oPreviousSearch,Cb(b.search));if(b.columns){d=0;for(e=b.columns.length;d<e;d++)g=b.columns[d],g.visible!==k&&(f[d].bVisible=g.visible),g.search!==k&&h.extend(a.aoPreSearchCols[d],Cb(g.search))}r(a,"aoStateLoaded","stateLoaded",[a,b])}}c()};if(a.oFeatures.bStateSave){var g=a.fnStateLoadCallback.call(a.oInstance,a,b);g!==k&&b(g)}else c()}function ya(a){var b=n.settings,a=h.inArray(a,D(b,"nTable"));return-1!==a?b[a]:null}function K(a,b,c,d){c="DataTables warning: "+(a?"table id="+a.sTableId+" - ":"")+c;d&&(c+=". For more information about this error, please see http://datatables.net/tn/"+d);if(b)E.console&&console.log&&console.log(c);else if(b=n.ext,b=b.sErrMode||b.errMode,a&&r(a,null,"error",[a,d,c]),"alert"==b)alert(c);else{if("throw"==b)throw Error(c);"function"==typeof b&&b(a,d,c)}}function F(a,b,c,d){h.isArray(c)?h.each(c,function(c,d){h.isArray(d)?F(a,b,d[0],d[1]):F(a,b,d)}):(d===k&&(d=c),b[c]!==k&&(a[d]=b[c]))}function Xa(a,b,c){var d,e;for(e in b)b.hasOwnProperty(e)&&(d=b[e],h.isPlainObject(d)?(h.isPlainObject(a[e])||(a[e]={}),h.extend(!0,a[e],d)):a[e]=c&&"data"!==e&&"aaData"!==e&&h.isArray(d)?d.slice():d);return a}function Wa(a,b,c){h(a).on("click.DT",b,function(b){h(a).blur();c(b)}).on("keypress.DT",b,function(a){13===a.which&&(a.preventDefault(),c(a))}).on("selectstart.DT",function(){return!1})}function z(a,b,c,d){c&&a[b].push({fn:c,sName:d})}function r(a,b,c,d){var e=[];b&&(e=h.map(a[b].slice().reverse(),function(b){return b.fn.apply(a.oInstance,d)}));null!==c&&(b=h.Event(c+".dt"),h(a.nTable).trigger(b,d),e.push(b.result));return e}function Sa(a){var b=a._iDisplayStart,c=a.fnDisplayEnd(),d=a._iDisplayLength;b>=c&&(b=c-d);b-=b%d;if(-1===d||0>b)b=0;a._iDisplayStart=b}function Na(a,b){var c=a.renderer,d=n.ext.renderer[b];return h.isPlainObject(c)&&c[b]?d[c[b]]||d._:"string"===typeof c?d[c]||d._:d._}function y(a){return a.oFeatures.bServerSide?"ssp":a.ajax||a.sAjaxSource?"ajax":"dom"}function ia(a,b){var c=[],c=Lb.numbers_length,d=Math.floor(c/2);b<=c?c=Y(0,b):a<=d?(c=Y(0,c-2),c.push("ellipsis"),c.push(b-1)):(a>=b-1-d?c=Y(b-(c-2),b):(c=Y(a-d+2,a+d-1),c.push("ellipsis"),c.push(b-1)),c.splice(0,0,"ellipsis"),c.splice(0,0,0));c.DT_el="span";return c}function Da(a){h.each({num:function(b){return za(b,a)},"num-fmt":function(b){return za(b,a,Ya)},"html-num":function(b){return za(b,a,Aa)},"html-num-fmt":function(b){return za(b,a,Aa,Ya)}},function(b,c){x.type.order[b+a+"-pre"]=c;b.match(/^html\-/)&&(x.type.search[b+a]=x.type.search.html)})}function Mb(a){return function(){var b=[ya(this[n.ext.iApiIndex])].concat(Array.prototype.slice.call(arguments));return n.ext.internal[a].apply(this,b)}}var n=function(a){this.$=function(a,b){return this.api(!0).$(a,b)};this._=function(a,b){return this.api(!0).rows(a,b).data()};this.api=function(a){return a?new s(ya(this[x.iApiIndex])):new s(this)};this.fnAddData=function(a,b){var c=this.api(!0),d=h.isArray(a)&&(h.isArray(a[0])||h.isPlainObject(a[0]))?c.rows.add(a):c.row.add(a);(b===k||b)&&c.draw();return d.flatten().toArray()};this.fnAdjustColumnSizing=function(a){var b=this.api(!0).columns.adjust(),c=b.settings()[0],d=c.oScroll;a===k||a?b.draw(!1):(""!==d.sX||""!==d.sY)&&la(c)};this.fnClearTable=function(a){var b=this.api(!0).clear();(a===k||a)&&b.draw()};this.fnClose=function(a){this.api(!0).row(a).child.hide()};this.fnDeleteRow=function(a,b,c){var d=this.api(!0),a=d.rows(a),e=a.settings()[0],h=e.aoData[a[0][0]];a.remove();b&&b.call(this,e,h);(c===k||c)&&d.draw();return h};this.fnDestroy=function(a){this.api(!0).destroy(a)};this.fnDraw=function(a){this.api(!0).draw(a)};this.fnFilter=function(a,b,c,d,e,h){e=this.api(!0);null===b||b===k?e.search(a,c,d,h):e.column(b).search(a,c,d,h);e.draw()};this.fnGetData=function(a,b){var c=this.api(!0);if(a!==k){var d=a.nodeName?a.nodeName.toLowerCase():"";return b!==k||"td"==d||"th"==d?c.cell(a,b).data():c.row(a).data()||null}return c.data().toArray()};this.fnGetNodes=function(a){var b=this.api(!0);return a!==k?b.row(a).node():b.rows().nodes().flatten().toArray()};this.fnGetPosition=function(a){var b=this.api(!0),c=a.nodeName.toUpperCase();return"TR"==c?b.row(a).index():"TD"==c||"TH"==c?(a=b.cell(a).index(),[a.row,a.columnVisible,a.column]):null};this.fnIsOpen=function(a){return this.api(!0).row(a).child.isShown()};this.fnOpen=function(a,b,c){return this.api(!0).row(a).child(b,c).show().child()[0]};this.fnPageChange=function(a,b){var c=this.api(!0).page(a);(b===k||b)&&c.draw(!1)};this.fnSetColumnVis=function(a,b,c){a=this.api(!0).column(a).visible(b);(c===k||c)&&a.columns.adjust().draw()};this.fnSettings=function(){return ya(this[x.iApiIndex])};this.fnSort=function(a){this.api(!0).order(a).draw()};this.fnSortListener=function(a,b,c){this.api(!0).order.listener(a,b,c)};this.fnUpdate=function(a,b,c,d,e){var h=this.api(!0);c===k||null===c?h.row(b).data(a):h.cell(b,c).data(a);(e===k||e)&&h.columns.adjust();(d===k||d)&&h.draw();return 0};this.fnVersionCheck=x.fnVersionCheck;var b=this,c=a===k,d=this.length;c&&(a={});this.oApi=this.internal=x.internal;for(var e in n.ext.internal)e&&(this[e]=Mb(e));this.each(function(){var e={},g=1<d?Xa(e,a,!0):a,j=0,i,e=this.getAttribute("id"),m=!1,l=n.defaults,q=h(this);if("table"!=this.nodeName.toLowerCase())K(null,0,"Non-table node initialisation ("+this.nodeName+")",2);else{fb(l);gb(l.column);J(l,l,!0);J(l.column,l.column,!0);J(l,h.extend(g,q.data()));var t=n.settings,j=0;for(i=t.length;j<i;j++){var o=t[j];if(o.nTable==this||o.nTHead&&o.nTHead.parentNode==this||o.nTFoot&&o.nTFoot.parentNode==this){var s=g.bRetrieve!==k?g.bRetrieve:l.bRetrieve;if(c||s)return o.oInstance;if(g.bDestroy!==k?g.bDestroy:l.bDestroy){o.oInstance.fnDestroy();break}else{K(o,0,"Cannot reinitialise DataTable",3);return}}if(o.sTableId==this.id){t.splice(j,1);break}}if(null===e||""===e)this.id=e="DataTables_Table_"+n.ext._unique++;var p=h.extend(!0,{},n.models.oSettings,{sDestroyWidth:q[0].style.width,sInstance:e,sTableId:e});p.nTable=this;p.oApi=b.internal;p.oInit=g;t.push(p);p.oInstance=1===b.length?b:q.dataTable();fb(g);Ca(g.oLanguage);g.aLengthMenu&&!g.iDisplayLength&&(g.iDisplayLength=h.isArray(g.aLengthMenu[0])?g.aLengthMenu[0][0]:g.aLengthMenu[0]);g=Xa(h.extend(!0,{},l),g);F(p.oFeatures,g,"bPaginate bLengthChange bFilter bSort bSortMulti bInfo bProcessing bAutoWidth bSortClasses bServerSide bDeferRender".split(" "));F(p,g,["asStripeClasses","ajax","fnServerData","fnFormatNumber","sServerMethod","aaSorting","aaSortingFixed","aLengthMenu","sPaginationType","sAjaxSource","sAjaxDataProp","iStateDuration","sDom","bSortCellsTop","iTabIndex","fnStateLoadCallback","fnStateSaveCallback","renderer","searchDelay","rowId",["iCookieDuration","iStateDuration"],["oSearch","oPreviousSearch"],["aoSearchCols","aoPreSearchCols"],["iDisplayLength","_iDisplayLength"]]);F(p.oScroll,g,[["sScrollX","sX"],["sScrollXInner","sXInner"],["sScrollY","sY"],["bScrollCollapse","bCollapse"]]);F(p.oLanguage,g,"fnInfoCallback");z(p,"aoDrawCallback",g.fnDrawCallback,"user");z(p,"aoServerParams",g.fnServerParams,"user");z(p,"aoStateSaveParams",g.fnStateSaveParams,"user");z(p,"aoStateLoadParams",g.fnStateLoadParams,"user");z(p,"aoStateLoaded",g.fnStateLoaded,"user");z(p,"aoRowCallback",g.fnRowCallback,"user");z(p,"aoRowCreatedCallback",g.fnCreatedRow,"user");z(p,"aoHeaderCallback",g.fnHeaderCallback,"user");z(p,"aoFooterCallback",g.fnFooterCallback,"user");z(p,"aoInitComplete",g.fnInitComplete,"user");z(p,"aoPreDrawCallback",g.fnPreDrawCallback,"user");p.rowIdFn=S(g.rowId);hb(p);var u=p.oClasses;h.extend(u,n.ext.classes,g.oClasses);q.addClass(u.sTable);p.iInitDisplayStart===k&&(p.iInitDisplayStart=g.iDisplayStart,p._iDisplayStart=g.iDisplayStart);null!==g.iDeferLoading&&(p.bDeferLoading=!0,e=h.isArray(g.iDeferLoading),p._iRecordsDisplay=e?g.iDeferLoading[0]:g.iDeferLoading,p._iRecordsTotal=e?g.iDeferLoading[1]:g.iDeferLoading);var v=p.oLanguage;h.extend(!0,v,g.oLanguage);v.sUrl&&(h.ajax({dataType:"json",url:v.sUrl,success:function(a){Ca(a);J(l.oLanguage,a);h.extend(!0,v,a);ha(p)},error:function(){ha(p)}}),m=!0);null===g.asStripeClasses&&(p.asStripeClasses=[u.sStripeOdd,u.sStripeEven]);var e=p.asStripeClasses,x=q.children("tbody").find("tr").eq(0);-1!==h.inArray(!0,h.map(e,function(a){return x.hasClass(a)}))&&(h("tbody tr",this).removeClass(e.join(" ")),p.asDestroyStripes=e.slice());e=[];t=this.getElementsByTagName("thead");0!==t.length&&(ea(p.aoHeader,t[0]),e=ra(p));if(null===g.aoColumns){t=[];j=0;for(i=e.length;j<i;j++)t.push(null)}else t=g.aoColumns;j=0;for(i=t.length;j<i;j++)Ea(p,e?e[j]:null);jb(p,g.aoColumnDefs,t,function(a,b){ka(p,a,b)});if(x.length){var w=function(a,b){return a.getAttribute("data-"+b)!==null?b:null};h(x[0]).children("th, td").each(function(a,b){var c=p.aoColumns[a];if(c.mData===a){var d=w(b,"sort")||w(b,"order"),e=w(b,"filter")||w(b,"search");if(d!==null||e!==null){c.mData={_:a+".display",sort:d!==null?a+".@data-"+d:k,type:d!==null?a+".@data-"+d:k,filter:e!==null?a+".@data-"+e:k};ka(p,a)}}})}var U=p.oFeatures,e=function(){if(g.aaSorting===k){var a=p.aaSorting;j=0;for(i=a.length;j<i;j++)a[j][1]=p.aoColumns[j].asSorting[0]}wa(p);U.bSort&&z(p,"aoDrawCallback",function(){if(p.bSorted){var a=X(p),b={};h.each(a,function(a,c){b[c.src]=c.dir});r(p,null,"order",[p,a,b]);Jb(p)}});z(p,"aoDrawCallback",function(){(p.bSorted||y(p)==="ssp"||U.bDeferRender)&&wa(p)},"sc");var a=q.children("caption").each(function(){this._captionSide=h(this).css("caption-side")}),b=q.children("thead");b.length===0&&(b=h("<thead/>").appendTo(q));p.nTHead=b[0];b=q.children("tbody");b.length===0&&(b=h("<tbody/>").appendTo(q));p.nTBody=b[0];b=q.children("tfoot");if(b.length===0&&a.length>0&&(p.oScroll.sX!==""||p.oScroll.sY!==""))b=h("<tfoot/>").appendTo(q);if(b.length===0||b.children().length===0)q.addClass(u.sNoFooter);else if(b.length>0){p.nTFoot=b[0];ea(p.aoFooter,p.nTFoot)}if(g.aaData)for(j=0;j<g.aaData.length;j++)O(p,g.aaData[j]);else(p.bDeferLoading||y(p)=="dom")&&na(p,h(p.nTBody).children("tr"));p.aiDisplay=p.aiDisplayMaster.slice();p.bInitialised=!0;m===!1&&ha(p)};g.bStateSave?(U.bStateSave=!0,z(p,"aoDrawCallback",xa,"state_save"),Kb(p,g,e)):e()}});b=null;return this},x,s,o,u,Za={},Nb=/[\r\n]/g,Aa=/<.*?>/g,Zb=/^\d{2,4}[\.\/\-]\d{1,2}[\.\/\-]\d{1,2}([T ]{1}\d{1,2}[:\.]\d{2}([\.:]\d{2})?)?#x2F;,$b=RegExp("(\\/|\\.|\\*|\\+|\\?|\\||\\(|\\)|\\[|\\]|\\{|\\}|\\\\|\\$|\\^|\\-)","g"),Ya=/[',$£€¥%\u2009\u202F\u20BD\u20a9\u20BArfkɃΞ]/gi,M=function(a){return!a||!0===a||"-"===a?!0:!1},Ob=function(a){var b=parseInt(a,10);return!isNaN(b)&&isFinite(a)?b:null},Pb=function(a,b){Za[b]||(Za[b]=RegExp(Qa(b),"g"));return"string"===typeof a&&"."!==b?a.replace(/\./g,"").replace(Za[b],"."):a},$a=function(a,b,c){var d="string"===typeof a;if(M(a))return!0;b&&d&&(a=Pb(a,b));c&&d&&(a=a.replace(Ya,""));return!isNaN(parseFloat(a))&&isFinite(a)},Qb=function(a,b,c){return M(a)?!0:!(M(a)||"string"===typeof a)?null:$a(a.replace(Aa,""),b,c)?!0:null},D=function(a,b,c){var d=[],e=0,f=a.length;if(c!==k)for(;e<f;e++)a[e]&&a[e][b]&&d.push(a[e][b][c]);else for(;e<f;e++)a[e]&&d.push(a[e][b]);return d},ja=function(a,b,c,d){var e=[],f=0,g=b.length;if(d!==k)for(;f<g;f++)a[b[f]][c]&&e.push(a[b[f]][c][d]);else for(;f<g;f++)e.push(a[b[f]][c]);return e},Y=function(a,b){var c=[],d;b===k?(b=0,d=a):(d=b,b=a);for(var e=b;e<d;e++)c.push(e);return c},Rb=function(a){for(var b=[],c=0,d=a.length;c<d;c++)a[c]&&b.push(a[c]);return b},qa=function(a){var b;a:{if(!(2>a.length)){b=a.slice().sort();for(var c=b[0],d=1,e=b.length;d<e;d++){if(b[d]===c){b=!1;break a}c=b[d]}}b=!0}if(b)return a.slice();b=[];var e=a.length,f,g=0,d=0;a:for(;d<e;d++){c=a[d];for(f=0;f<g;f++)if(b[f]===c)continue a;b.push(c);g++}return b};n.util={throttle:function(a,b){var c=b!==k?b:200,d,e;return function(){var b=this,g=+new Date,j=arguments;d&&g<d+c?(clearTimeout(e),e=setTimeout(function(){d=k;a.apply(b,j)},c)):(d=g,a.apply(b,j))}},escapeRegex:function(a){return a.replace($b,"\\$1")}};var A=function(a,b,c){a[b]!==k&&(a[c]=a[b])},ca=/\[.*?\]#x2F;,W=/\(\)#x2F;,Qa=n.util.escapeRegex,va=h("<div>")[0],Wb=va.textContent!==k,Yb=/<.*?>/g,Oa=n.util.throttle,Sb=[],w=Array.prototype,ac=function(a){var b,c,d=n.settings,e=h.map(d,function(a){return a.nTable});if(a){if(a.nTable&&a.oApi)return[a];if(a.nodeName&&"table"===a.nodeName.toLowerCase())return b=h.inArray(a,e),-1!==b?[d[b]]:null;if(a&&"function"===typeof a.settings)return a.settings().toArray();"string"===typeof a?c=h(a):a instanceof h&&(c=a)}else return[];if(c)return c.map(function(){b=h.inArray(this,e);return-1!==b?d[b]:null}).toArray()};s=function(a,b){if(!(this instanceof s))return new s(a,b);var c=[],d=function(a){(a=ac(a))&&(c=c.concat(a))};if(h.isArray(a))for(var e=0,f=a.length;e<f;e++)d(a[e]);else d(a);this.context=qa(c);b&&h.merge(this,b);this.selector={rows:null,cols:null,opts:null};s.extend(this,this,Sb)};n.Api=s;h.extend(s.prototype,{any:function(){return 0!==this.count()},concat:w.concat,context:[],count:function(){return this.flatten().length},each:function(a){for(var b=0,c=this.length;b<c;b++)a.call(this,this[b],b,this);return this},eq:function(a){var b=this.context;return b.length>a?new s(b[a],this[a]):null},filter:function(a){var b=[];if(w.filter)b=w.filter.call(this,a,this);else for(var c=0,d=this.length;c<d;c++)a.call(this,this[c],c,this)&&b.push(this[c]);return new s(this.context,b)},flatten:function(){var a=[];return new s(this.context,a.concat.apply(a,this.toArray()))},join:w.join,indexOf:w.indexOf||function(a,b){for(var c=b||0,d=this.length;c<d;c++)if(this[c]===a)return c;return-1},iterator:function(a,b,c,d){var e=[],f,g,j,h,m,l=this.context,n,o,u=this.selector;"string"===typeof a&&(d=c,c=b,b=a,a=!1);g=0;for(j=l.length;g<j;g++){var r=new s(l[g]);if("table"===b)f=c.call(r,l[g],g),f!==k&&e.push(f);else if("columns"===b||"rows"===b)f=c.call(r,l[g],this[g],g),f!==k&&e.push(f);else if("column"===b||"column-rows"===b||"row"===b||"cell"===b){o=this[g];"column-rows"===b&&(n=Ba(l[g],u.opts));h=0;for(m=o.length;h<m;h++)f=o[h],f="cell"===b?c.call(r,l[g],f.row,f.column,g,h):c.call(r,l[g],f,g,h,n),f!==k&&e.push(f)}}return e.length||d?(a=new s(l,a?e.concat.apply([],e):e),b=a.selector,b.rows=u.rows,b.cols=u.cols,b.opts=u.opts,a):this},lastIndexOf:w.lastIndexOf||function(a,b){return this.indexOf.apply(this.toArray.reverse(),arguments)},length:0,map:function(a){var b=[];if(w.map)b=w.map.call(this,a,this);else for(var c=0,d=this.length;c<d;c++)b.push(a.call(this,this[c],c));return new s(this.context,b)},pluck:function(a){return this.map(function(b){return b[a]})},pop:w.pop,push:w.push,reduce:w.reduce||function(a,b){return ib(this,a,b,0,this.length,1)},reduceRight:w.reduceRight||function(a,b){return ib(this,a,b,this.length-1,-1,-1)},reverse:w.reverse,selector:null,shift:w.shift,slice:function(){return new s(this.context,this)},sort:w.sort,splice:w.splice,toArray:function(){return w.slice.call(this)},to$:function(){return h(this)},toJQuery:function(){return h(this)},unique:function(){return new s(this.context,qa(this))},unshift:w.unshift});s.extend=function(a,b,c){if(c.length&&b&&(b instanceof s||b.__dt_wrapper)){var d,e,f,g=function(a,b,c){return function(){var d=b.apply(a,arguments);s.extend(d,d,c.methodExt);return d}};d=0;for(e=c.length;d<e;d++)f=c[d],b[f.name]="function"===typeof f.val?g(a,f.val,f):h.isPlainObject(f.val)?{}:f.val,b[f.name].__dt_wrapper=!0,s.extend(a,b[f.name],f.propExt)}};s.register=o=function(a,b){if(h.isArray(a))for(var c=0,d=a.length;c<d;c++)s.register(a[c],b);else for(var e=a.split("."),f=Sb,g,j,c=0,d=e.length;c<d;c++){g=(j=-1!==e[c].indexOf("()"))?e[c].replace("()",""):e[c];var i;a:{i=0;for(var m=f.length;i<m;i++)if(f[i].name===g){i=f[i];break a}i=null}i||(i={name:g,val:{},methodExt:[],propExt:[]},f.push(i));c===d-1?i.val=b:f=j?i.methodExt:i.propExt}};s.registerPlural=u=function(a,b,c){s.register(a,c);s.register(b,function(){var a=c.apply(this,arguments);return a===this?this:a instanceof s?a.length?h.isArray(a[0])?new s(a.context,a[0]):a[0]:k:a})};o("tables()",function(a){var b;if(a){b=s;var c=this.context;if("number"===typeof a)a=[c[a]];else var d=h.map(c,function(a){return a.nTable}),a=h(d).filter(a).map(function(){var a=h.inArray(this,d);return c[a]}).toArray();b=new b(a)}else b=this;return b});o("table()",function(a){var a=this.tables(a),b=a.context;return b.length?new s(b[0]):a});u("tables().nodes()","table().node()",function(){return this.iterator("table",function(a){return a.nTable},1)});u("tables().body()","table().body()",function(){return this.iterator("table",function(a){return a.nTBody},1)});u("tables().header()","table().header()",function(){return this.iterator("table",function(a){return a.nTHead},1)});u("tables().footer()","table().footer()",function(){return this.iterator("table",function(a){return a.nTFoot},1)});u("tables().containers()","table().container()",function(){return this.iterator("table",function(a){return a.nTableWrapper},1)});o("draw()",function(a){return this.iterator("table",function(b){"page"===a?P(b):("string"===typeof a&&(a="full-hold"===a?!1:!0),T(b,!1===a))})});o("page()",function(a){return a===k?this.page.info().page:this.iterator("table",function(b){Ta(b,a)})});o("page.info()",function(){if(0===this.context.length)return k;var a=this.context[0],b=a._iDisplayStart,c=a.oFeatures.bPaginate?a._iDisplayLength:-1,d=a.fnRecordsDisplay(),e=-1===c;return{page:e?0:Math.floor(b/c),pages:e?1:Math.ceil(d/c),start:b,end:a.fnDisplayEnd(),length:c,recordsTotal:a.fnRecordsTotal(),recordsDisplay:d,serverSide:"ssp"===y(a)}});o("page.len()",function(a){return a===k?0!==this.context.length?this.context[0]._iDisplayLength:k:this.iterator("table",function(b){Ra(b,a)})});var Tb=function(a,b,c){if(c){var d=new s(a);d.one("draw",function(){c(d.ajax.json())})}if("ssp"==y(a))T(a,b);else{C(a,!0);var e=a.jqXHR;e&&4!==e.readyState&&e.abort();sa(a,[],function(c){oa(a);for(var c=ta(a,c),d=0,e=c.length;d<e;d++)O(a,c[d]);T(a,b);C(a,!1)})}};o("ajax.json()",function(){var a=this.context;if(0<a.length)return a[0].json});o("ajax.params()",function(){var a=this.context;if(0<a.length)return a[0].oAjaxData});o("ajax.reload()",function(a,b){return this.iterator("table",function(c){Tb(c,!1===b,a)})});o("ajax.url()",function(a){var b=this.context;if(a===k){if(0===b.length)return k;b=b[0];return b.ajax?h.isPlainObject(b.ajax)?b.ajax.url:b.ajax:b.sAjaxSource}return this.iterator("table",function(b){h.isPlainObject(b.ajax)?b.ajax.url=a:b.ajax=a})});o("ajax.url().load()",function(a,b){return this.iterator("table",function(c){Tb(c,!1===b,a)})});var ab=function(a,b,c,d,e){var f=[],g,j,i,m,l,n;i=typeof b;if(!b||"string"===i||"function"===i||b.length===k)b=[b];i=0;for(m=b.length;i<m;i++){j=b[i]&&b[i].split&&!b[i].match(/[\[\(:]/)?b[i].split(","):[b[i]];l=0;for(n=j.length;l<n;l++)(g=c("string"===typeof j[l]?h.trim(j[l]):j[l]))&&g.length&&(f=f.concat(g))}a=x.selector[a];if(a.length){i=0;for(m=a.length;i<m;i++)f=a[i](d,e,f)}return qa(f)},bb=function(a){a||(a={});a.filter&&a.search===k&&(a.search=a.filter);return h.extend({search:"none",order:"current",page:"all"},a)},cb=function(a){for(var b=0,c=a.length;b<c;b++)if(0<a[b].length)return a[0]=a[b],a[0].length=1,a.length=1,a.context=[a.context[b]],a;a.length=0;return a},Ba=function(a,b){var c,d,e,f=[],g=a.aiDisplay;e=a.aiDisplayMaster;var j=b.search;c=b.order;d=b.page;if("ssp"==y(a))return"removed"===j?[]:Y(0,e.length);if("current"==d){c=a._iDisplayStart;for(d=a.fnDisplayEnd();c<d;c++)f.push(g[c])}else if("current"==c||"applied"==c)if("none"==j)f=e.slice();else if("applied"==j)f=g.slice();else{if("removed"==j){var i={};c=0;for(d=g.length;c<d;c++)i[g[c]]=null;f=h.map(e,function(a){return!i.hasOwnProperty(a)?a:null})}}else if("index"==c||"original"==c){c=0;for(d=a.aoData.length;c<d;c++)"none"==j?f.push(c):(e=h.inArray(c,g),(-1===e&&"removed"==j||0<=e&&"applied"==j)&&f.push(c))}return f};o("rows()",function(a,b){a===k?a="":h.isPlainObject(a)&&(b=a,a="");var b=bb(b),c=this.iterator("table",function(c){var e=b,f;return ab("row",a,function(a){var b=Ob(a),i=c.aoData;if(b!==null&&!e)return[b];f||(f=Ba(c,e));if(b!==null&&h.inArray(b,f)!==-1)return[b];if(a===null||a===k||a==="")return f;if(typeof a==="function")return h.map(f,function(b){var c=i[b];return a(b,c._aData,c.nTr)?b:null});if(a.nodeName){var b=a._DT_RowIndex,m=a._DT_CellIndex;if(b!==k)return i[b]&&i[b].nTr===a?[b]:[];if(m)return i[m.row]&&i[m.row].nTr===a?[m.row]:[];b=h(a).closest("*[data-dt-row]");return b.length?[b.data("dt-row")]:[]}if(typeof a==="string"&&a.charAt(0)==="#"){b=c.aIds[a.replace(/^#/,"")];if(b!==k)return[b.idx]}b=Rb(ja(c.aoData,f,"nTr"));return h(b).filter(a).map(function(){return this._DT_RowIndex}).toArray()},c,e)},1);c.selector.rows=a;c.selector.opts=b;return c});o("rows().nodes()",function(){return this.iterator("row",function(a,b){return a.aoData[b].nTr||k},1)});o("rows().data()",function(){return this.iterator(!0,"rows",function(a,b){return ja(a.aoData,b,"_aData")},1)});u("rows().cache()","row().cache()",function(a){return this.iterator("row",function(b,c){var d=b.aoData[c];return"search"===a?d._aFilterData:d._aSortData},1)});u("rows().invalidate()","row().invalidate()",function(a){return this.iterator("row",function(b,c){da(b,c,a)})});u("rows().indexes()","row().index()",function(){return this.iterator("row",function(a,b){return b},1)});u("rows().ids()","row().id()",function(a){for(var b=[],c=this.context,d=0,e=c.length;d<e;d++)for(var f=0,g=this[d].length;f<g;f++){var h=c[d].rowIdFn(c[d].aoData[this[d][f]]._aData);b.push((!0===a?"#":"")+h)}return new s(c,b)});u("rows().remove()","row().remove()",function(){var a=this;this.iterator("row",function(b,c,d){var e=b.aoData,f=e[c],g,h,i,m,l;e.splice(c,1);g=0;for(h=e.length;g<h;g++)if(i=e[g],l=i.anCells,null!==i.nTr&&(i.nTr._DT_RowIndex=g),null!==l){i=0;for(m=l.length;i<m;i++)l[i]._DT_CellIndex.row=g}pa(b.aiDisplayMaster,c);pa(b.aiDisplay,c);pa(a[d],c,!1);0<b._iRecordsDisplay&&b._iRecordsDisplay--;Sa(b);c=b.rowIdFn(f._aData);c!==k&&delete b.aIds[c]});this.iterator("table",function(a){for(var c=0,d=a.aoData.length;c<d;c++)a.aoData[c].idx=c});return this});o("rows.add()",function(a){var b=this.iterator("table",function(b){var c,f,g,h=[];f=0;for(g=a.length;f<g;f++)c=a[f],c.nodeName&&"TR"===c.nodeName.toUpperCase()?h.push(na(b,c)[0]):h.push(O(b,c));return h},1),c=this.rows(-1);c.pop();h.merge(c,b);return c});o("row()",function(a,b){return cb(this.rows(a,b))});o("row().data()",function(a){var b=this.context;if(a===k)return b.length&&this.length?b[0].aoData[this[0]]._aData:k;var c=b[0].aoData[this[0]];c._aData=a;h.isArray(a)&&c.nTr.id&&N(b[0].rowId)(a,c.nTr.id);da(b[0],this[0],"data");return this});o("row().node()",function(){var a=this.context;return a.length&&this.length?a[0].aoData[this[0]].nTr||null:null});o("row.add()",function(a){a instanceof h&&a.length&&(a=a[0]);var b=this.iterator("table",function(b){return a.nodeName&&"TR"===a.nodeName.toUpperCase()?na(b,a)[0]:O(b,a)});return this.row(b[0])});var db=function(a,b){var c=a.context;if(c.length&&(c=c[0].aoData[b!==k?b:a[0]])&&c._details)c._details.remove(),c._detailsShow=k,c._details=k},Ub=function(a,b){var c=a.context;if(c.length&&a.length){var d=c[0].aoData[a[0]];if(d._details){(d._detailsShow=b)?d._details.insertAfter(d.nTr):d._details.detach();var e=c[0],f=new s(e),g=e.aoData;f.off("draw.dt.DT_details column-visibility.dt.DT_details destroy.dt.DT_details");0<D(g,"_details").length&&(f.on("draw.dt.DT_details",function(a,b){e===b&&f.rows({page:"current"}).eq(0).each(function(a){a=g[a];a._detailsShow&&a._details.insertAfter(a.nTr)})}),f.on("column-visibility.dt.DT_details",function(a,b){if(e===b)for(var c,d=V(b),f=0,h=g.length;f<h;f++)c=g[f],c._details&&c._details.children("td[colspan]").attr("colspan",d)}),f.on("destroy.dt.DT_details",function(a,b){if(e===b)for(var c=0,d=g.length;c<d;c++)g[c]._details&&db(f,c)}))}}};o("row().child()",function(a,b){var c=this.context;if(a===k)return c.length&&this.length?c[0].aoData[this[0]]._details:k;if(!0===a)this.child.show();else if(!1===a)db(this);else if(c.length&&this.length){var d=c[0],c=c[0].aoData[this[0]],e=[],f=function(a,b){if(h.isArray(a)||a instanceof h)for(var c=0,k=a.length;c<k;c++)f(a[c],b);else a.nodeName&&"tr"===a.nodeName.toLowerCase()?e.push(a):(c=h("<tr><td/></tr>").addClass(b),h("td",c).addClass(b).html(a)[0].colSpan=V(d),e.push(c[0]))};f(a,b);c._details&&c._details.detach();c._details=h(e);c._detailsShow&&c._details.insertAfter(c.nTr)}return this});o(["row().child.show()","row().child().show()"],function(){Ub(this,!0);return this});o(["row().child.hide()","row().child().hide()"],function(){Ub(this,!1);return this});o(["row().child.remove()","row().child().remove()"],function(){db(this);return this});o("row().child.isShown()",function(){var a=this.context;return a.length&&this.length?a[0].aoData[this[0]]._detailsShow||!1:!1});var bc=/^([^:]+):(name|visIdx|visible)#x2F;,Vb=function(a,b,c,d,e){for(var c=[],d=0,f=e.length;d<f;d++)c.push(B(a,e[d],b));return c};o("columns()",function(a,b){a===k?a="":h.isPlainObject(a)&&(b=a,a="");var b=bb(b),c=this.iterator("table",function(c){var e=a,f=b,g=c.aoColumns,j=D(g,"sName"),i=D(g,"nTh");return ab("column",e,function(a){var b=Ob(a);if(a==="")return Y(g.length);if(b!==null)return[b>=0?b:g.length+b];if(typeof a==="function"){var e=Ba(c,f);return h.map(g,function(b,f){return a(f,Vb(c,f,0,0,e),i[f])?f:null})}var k=typeof a==="string"?a.match(bc):"";if(k)switch(k[2]){case "visIdx":case "visible":b=parseInt(k[1],10);if(b<0){var n=h.map(g,function(a,b){return a.bVisible?b:null});return[n[n.length+b]]}return[aa(c,b)];case "name":return h.map(j,function(a,b){return a===k[1]?b:null});default:return[]}if(a.nodeName&&a._DT_CellIndex)return[a._DT_CellIndex.column];b=h(i).filter(a).map(function(){return h.inArray(this,i)}).toArray();if(b.length||!a.nodeName)return b;b=h(a).closest("*[data-dt-column]");return b.length?[b.data("dt-column")]:[]},c,f)},1);c.selector.cols=a;c.selector.opts=b;return c});u("columns().header()","column().header()",function(){return this.iterator("column",function(a,b){return a.aoColumns[b].nTh},1)});u("columns().footer()","column().footer()",function(){return this.iterator("column",function(a,b){return a.aoColumns[b].nTf},1)});u("columns().data()","column().data()",function(){return this.iterator("column-rows",Vb,1)});u("columns().dataSrc()","column().dataSrc()",function(){return this.iterator("column",function(a,b){return a.aoColumns[b].mData},1)});u("columns().cache()","column().cache()",function(a){return this.iterator("column-rows",function(b,c,d,e,f){return ja(b.aoData,f,"search"===a?"_aFilterData":"_aSortData",c)},1)});u("columns().nodes()","column().nodes()",function(){return this.iterator("column-rows",function(a,b,c,d,e){return ja(a.aoData,e,"anCells",b)},1)});u("columns().visible()","column().visible()",function(a,b){var c=this.iterator("column",function(b,c){if(a===k)return b.aoColumns[c].bVisible;var f=b.aoColumns,g=f[c],j=b.aoData,i,m,l;if(a!==k&&g.bVisible!==a){if(a){var n=h.inArray(!0,D(f,"bVisible"),c+1);i=0;for(m=j.length;i<m;i++)l=j[i].nTr,f=j[i].anCells,l&&l.insertBefore(f[c],f[n]||null)}else h(D(b.aoData,"anCells",c)).detach();g.bVisible=a;fa(b,b.aoHeader);fa(b,b.aoFooter);b.aiDisplay.length||h(b.nTBody).find("td[colspan]").attr("colspan",V(b));xa(b)}});a!==k&&(this.iterator("column",function(c,e){r(c,null,"column-visibility",[c,e,a,b])}),(b===k||b)&&this.columns.adjust());return c});u("columns().indexes()","column().index()",function(a){return this.iterator("column",function(b,c){return"visible"===a?ba(b,c):c},1)});o("columns.adjust()",function(){return this.iterator("table",function(a){$(a)},1)});o("column.index()",function(a,b){if(0!==this.context.length){var c=this.context[0];if("fromVisible"===a||"toData"===a)return aa(c,b);if("fromData"===a||"toVisible"===a)return ba(c,b)}});o("column()",function(a,b){return cb(this.columns(a,b))});o("cells()",function(a,b,c){h.isPlainObject(a)&&(a.row===k?(c=a,a=null):(c=b,b=null));h.isPlainObject(b)&&(c=b,b=null);if(null===b||b===k)return this.iterator("table",function(b){var d=a,e=bb(c),f=b.aoData,g=Ba(b,e),j=Rb(ja(f,g,"anCells")),i=h([].concat.apply([],j)),l,m=b.aoColumns.length,n,o,u,s,r,v;return ab("cell",d,function(a){var c=typeof a==="function";if(a===null||a===k||c){n=[];o=0;for(u=g.length;o<u;o++){l=g[o];for(s=0;s<m;s++){r={row:l,column:s};if(c){v=f[l];a(r,B(b,l,s),v.anCells?v.anCells[s]:null)&&n.push(r)}else n.push(r)}}return n}if(h.isPlainObject(a))return a.column!==k&&a.row!==k&&h.inArray(a.row,g)!==-1?[a]:[];c=i.filter(a).map(function(a,b){return{row:b._DT_CellIndex.row,column:b._DT_CellIndex.column}}).toArray();if(c.length||!a.nodeName)return c;v=h(a).closest("*[data-dt-row]");return v.length?[{row:v.data("dt-row"),column:v.data("dt-column")}]:[]},b,e)});var d=this.columns(b),e=this.rows(a),f,g,j,i,m;this.iterator("table",function(a,b){f=[];g=0;for(j=e[b].length;g<j;g++){i=0;for(m=d[b].length;i<m;i++)f.push({row:e[b][g],column:d[b][i]})}},1);var l=this.cells(f,c);h.extend(l.selector,{cols:b,rows:a,opts:c});return l});u("cells().nodes()","cell().node()",function(){return this.iterator("cell",function(a,b,c){return(a=a.aoData[b])&&a.anCells?a.anCells[c]:k},1)});o("cells().data()",function(){return this.iterator("cell",function(a,b,c){return B(a,b,c)},1)});u("cells().cache()","cell().cache()",function(a){a="search"===a?"_aFilterData":"_aSortData";return this.iterator("cell",function(b,c,d){return b.aoData[c][a][d]},1)});u("cells().render()","cell().render()",function(a){return this.iterator("cell",function(b,c,d){return B(b,c,d,a)},1)});u("cells().indexes()","cell().index()",function(){return this.iterator("cell",function(a,b,c){return{row:b,column:c,columnVisible:ba(a,c)}},1)});u("cells().invalidate()","cell().invalidate()",function(a){return this.iterator("cell",function(b,c,d){da(b,c,a,d)})});o("cell()",function(a,b,c){return cb(this.cells(a,b,c))});o("cell().data()",function(a){var b=this.context,c=this[0];if(a===k)return b.length&&c.length?B(b[0],c[0].row,c[0].column):k;kb(b[0],c[0].row,c[0].column,a);da(b[0],c[0].row,"data",c[0].column);return this});o("order()",function(a,b){var c=this.context;if(a===k)return 0!==c.length?c[0].aaSorting:k;"number"===typeof a?a=[[a,b]]:a.length&&!h.isArray(a[0])&&(a=Array.prototype.slice.call(arguments));return this.iterator("table",function(b){b.aaSorting=a.slice()})});o("order.listener()",function(a,b,c){return this.iterator("table",function(d){Ma(d,a,b,c)})});o("order.fixed()",function(a){if(!a){var b=this.context,b=b.length?b[0].aaSortingFixed:k;return h.isArray(b)?{pre:b}:b}return this.iterator("table",function(b){b.aaSortingFixed=h.extend(!0,{},a)})});o(["columns().order()","column().order()"],function(a){var b=this;return this.iterator("table",function(c,d){var e=[];h.each(b[d],function(b,c){e.push([c,a])});c.aaSorting=e})});o("search()",function(a,b,c,d){var e=this.context;return a===k?0!==e.length?e[0].oPreviousSearch.sSearch:k:this.iterator("table",function(e){e.oFeatures.bFilter&&ga(e,h.extend({},e.oPreviousSearch,{sSearch:a+"",bRegex:null===b?!1:b,bSmart:null===c?!0:c,bCaseInsensitive:null===d?!0:d}),1)})});u("columns().search()","column().search()",function(a,b,c,d){return this.iterator("column",function(e,f){var g=e.aoPreSearchCols;if(a===k)return g[f].sSearch;e.oFeatures.bFilter&&(h.extend(g[f],{sSearch:a+"",bRegex:null===b?!1:b,bSmart:null===c?!0:c,bCaseInsensitive:null===d?!0:d}),ga(e,e.oPreviousSearch,1))})});o("state()",function(){return this.context.length?this.context[0].oSavedState:null});o("state.clear()",function(){return this.iterator("table",function(a){a.fnStateSaveCallback.call(a.oInstance,a,{})})});o("state.loaded()",function(){return this.context.length?this.context[0].oLoadedState:null});o("state.save()",function(){return this.iterator("table",function(a){xa(a)})});n.versionCheck=n.fnVersionCheck=function(a){for(var b=n.version.split("."),a=a.split("."),c,d,e=0,f=a.length;e<f;e++)if(c=parseInt(b[e],10)||0,d=parseInt(a[e],10)||0,c!==d)return c>d;return!0};n.isDataTable=n.fnIsDataTable=function(a){var b=h(a).get(0),c=!1;if(a instanceof n.Api)return!0;h.each(n.settings,function(a,e){var f=e.nScrollHead?h("table",e.nScrollHead)[0]:null,g=e.nScrollFoot?h("table",e.nScrollFoot)[0]:null;if(e.nTable===b||f===b||g===b)c=!0});return c};n.tables=n.fnTables=function(a){var b=!1;h.isPlainObject(a)&&(b=a.api,a=a.visible);var c=h.map(n.settings,function(b){if(!a||a&&h(b.nTable).is(":visible"))return b.nTable});return b?new s(c):c};n.camelToHungarian=J;o("$()",function(a,b){var c=this.rows(b).nodes(),c=h(c);return h([].concat(c.filter(a).toArray(),c.find(a).toArray()))});h.each(["on","one","off"],function(a,b){o(b+"()",function(){var a=Array.prototype.slice.call(arguments);a[0]=h.map(a[0].split(/\s/),function(a){return!a.match(/\.dt\b/)?a+".dt":a}).join(" ");var d=h(this.tables().nodes());d[b].apply(d,a);return this})});o("clear()",function(){return this.iterator("table",function(a){oa(a)})});o("settings()",function(){return new s(this.context,this.context)});o("init()",function(){var a=this.context;return a.length?a[0].oInit:null});o("data()",function(){return this.iterator("table",function(a){return D(a.aoData,"_aData")}).flatten()});o("destroy()",function(a){a=a||!1;return this.iterator("table",function(b){var c=b.nTableWrapper.parentNode,d=b.oClasses,e=b.nTable,f=b.nTBody,g=b.nTHead,j=b.nTFoot,i=h(e),f=h(f),k=h(b.nTableWrapper),l=h.map(b.aoData,function(a){return a.nTr}),o;b.bDestroying=!0;r(b,"aoDestroyCallback","destroy",[b]);a||(new s(b)).columns().visible(!0);k.off(".DT").find(":not(tbody *)").off(".DT");h(E).off(".DT-"+b.sInstance);e!=g.parentNode&&(i.children("thead").detach(),i.append(g));j&&e!=j.parentNode&&(i.children("tfoot").detach(),i.append(j));b.aaSorting=[];b.aaSortingFixed=[];wa(b);h(l).removeClass(b.asStripeClasses.join(" "));h("th, td",g).removeClass(d.sSortable+" "+d.sSortableAsc+" "+d.sSortableDesc+" "+d.sSortableNone);f.children().detach();f.append(l);g=a?"remove":"detach";i[g]();k[g]();!a&&c&&(c.insertBefore(e,b.nTableReinsertBefore),i.css("width",b.sDestroyWidth).removeClass(d.sTable),(o=b.asDestroyStripes.length)&&f.children().each(function(a){h(this).addClass(b.asDestroyStripes[a%o])}));c=h.inArray(b,n.settings);-1!==c&&n.settings.splice(c,1)})});h.each(["column","row","cell"],function(a,b){o(b+"s().every()",function(a){var d=this.selector.opts,e=this;return this.iterator(b,function(f,g,h,i,m){a.call(e[b](g,"cell"===b?h:d,"cell"===b?d:k),g,h,i,m)})})});o("i18n()",function(a,b,c){var d=this.context[0],a=S(a)(d.oLanguage);a===k&&(a=b);c!==k&&h.isPlainObject(a)&&(a=a[c]!==k?a[c]:a._);return a.replace("%d",c)});n.version="1.10.19";n.settings=[];n.models={};n.models.oSearch={bCaseInsensitive:!0,sSearch:"",bRegex:!1,bSmart:!0};n.models.oRow={nTr:null,anCells:null,_aData:[],_aSortData:null,_aFilterData:null,_sFilterRow:null,_sRowStripe:"",src:null,idx:-1};n.models.oColumn={idx:null,aDataSort:null,asSorting:null,bSearchable:null,bSortable:null,bVisible:null,_sManualType:null,_bAttrSrc:!1,fnCreatedCell:null,fnGetData:null,fnSetData:null,mData:null,mRender:null,nTh:null,nTf:null,sClass:null,sContentPadding:null,sDefaultContent:null,sName:null,sSortDataType:"std",sSortingClass:null,sSortingClassJUI:null,sTitle:null,sType:null,sWidth:null,sWidthOrig:null};n.defaults={aaData:null,aaSorting:[[0,"asc"]],aaSortingFixed:[],ajax:null,aLengthMenu:[10,25,50,100],aoColumns:null,aoColumnDefs:null,aoSearchCols:[],asStripeClasses:null,bAutoWidth:!0,bDeferRender:!1,bDestroy:!1,bFilter:!0,bInfo:!0,bLengthChange:!0,bPaginate:!0,bProcessing:!1,bRetrieve:!1,bScrollCollapse:!1,bServerSide:!1,bSort:!0,bSortMulti:!0,bSortCellsTop:!1,bSortClasses:!0,bStateSave:!1,fnCreatedRow:null,fnDrawCallback:null,fnFooterCallback:null,fnFormatNumber:function(a){return a.toString().replace(/\B(?=(\d{3})+(?!\d))/g,this.oLanguage.sThousands)},fnHeaderCallback:null,fnInfoCallback:null,fnInitComplete:null,fnPreDrawCallback:null,fnRowCallback:null,fnServerData:null,fnServerParams:null,fnStateLoadCallback:function(a){try{return JSON.parse((-1===a.iStateDuration?sessionStorage:localStorage).getItem("DataTables_"+a.sInstance+"_"+location.pathname))}catch(b){}},fnStateLoadParams:null,fnStateLoaded:null,fnStateSaveCallback:function(a,b){try{(-1===a.iStateDuration?sessionStorage:localStorage).setItem("DataTables_"+a.sInstance+"_"+location.pathname,JSON.stringify(b))}catch(c){}},fnStateSaveParams:null,iStateDuration:7200,iDeferLoading:null,iDisplayLength:10,iDisplayStart:0,iTabIndex:0,oClasses:{},oLanguage:{oAria:{sSortAscending:": activate to sort column ascending",sSortDescending:": activate to sort column descending"},oPaginate:{sFirst:"First",sLast:"Last",sNext:"Next",sPrevious:"Previous"},sEmptyTable:"No data available in table",sInfo:"Showing _START_ to _END_ of _TOTAL_ entries",sInfoEmpty:"Showing 0 to 0 of 0 entries",sInfoFiltered:"(filtered from _MAX_ total entries)",sInfoPostFix:"",sDecimal:"",sThousands:",",sLengthMenu:"Show _MENU_ entries",sLoadingRecords:"Loading...",sProcessing:"Processing...",sSearch:"Search:",sSearchPlaceholder:"",sUrl:"",sZeroRecords:"No matching records found"},oSearch:h.extend({},n.models.oSearch),sAjaxDataProp:"data",sAjaxSource:null,sDom:"lfrtip",searchDelay:null,sPaginationType:"simple_numbers",sScrollX:"",sScrollXInner:"",sScrollY:"",sServerMethod:"GET",renderer:null,rowId:"DT_RowId"};Z(n.defaults);n.defaults.column={aDataSort:null,iDataSort:-1,asSorting:["asc","desc"],bSearchable:!0,bSortable:!0,bVisible:!0,fnCreatedCell:null,mData:null,mRender:null,sCellType:"td",sClass:"",sContentPadding:"",sDefaultContent:null,sName:"",sSortDataType:"std",sTitle:null,sType:null,sWidth:null};Z(n.defaults.column);n.models.oSettings={oFeatures:{bAutoWidth:null,bDeferRender:null,bFilter:null,bInfo:null,bLengthChange:null,bPaginate:null,bProcessing:null,bServerSide:null,bSort:null,bSortMulti:null,bSortClasses:null,bStateSave:null},oScroll:{bCollapse:null,iBarWidth:0,sX:null,sXInner:null,sY:null},oLanguage:{fnInfoCallback:null},oBrowser:{bScrollOversize:!1,bScrollbarLeft:!1,bBounding:!1,barWidth:0},ajax:null,aanFeatures:[],aoData:[],aiDisplay:[],aiDisplayMaster:[],aIds:{},aoColumns:[],aoHeader:[],aoFooter:[],oPreviousSearch:{},aoPreSearchCols:[],aaSorting:null,aaSortingFixed:[],asStripeClasses:null,asDestroyStripes:[],sDestroyWidth:0,aoRowCallback:[],aoHeaderCallback:[],aoFooterCallback:[],aoDrawCallback:[],aoRowCreatedCallback:[],aoPreDrawCallback:[],aoInitComplete:[],aoStateSaveParams:[],aoStateLoadParams:[],aoStateLoaded:[],sTableId:"",nTable:null,nTHead:null,nTFoot:null,nTBody:null,nTableWrapper:null,bDeferLoading:!1,bInitialised:!1,aoOpenRows:[],sDom:null,searchDelay:null,sPaginationType:"two_button",iStateDuration:0,aoStateSave:[],aoStateLoad:[],oSavedState:null,oLoadedState:null,sAjaxSource:null,sAjaxDataProp:null,bAjaxDataGet:!0,jqXHR:null,json:k,oAjaxData:k,fnServerData:null,aoServerParams:[],sServerMethod:null,fnFormatNumber:null,aLengthMenu:null,iDraw:0,bDrawing:!1,iDrawError:-1,_iDisplayLength:10,_iDisplayStart:0,_iRecordsTotal:0,_iRecordsDisplay:0,oClasses:{},bFiltered:!1,bSorted:!1,bSortCellsTop:null,oInit:null,aoDestroyCallback:[],fnRecordsTotal:function(){return"ssp"==y(this)?1*this._iRecordsTotal:this.aiDisplayMaster.length},fnRecordsDisplay:function(){return"ssp"==y(this)?1*this._iRecordsDisplay:this.aiDisplay.length},fnDisplayEnd:function(){var a=this._iDisplayLength,b=this._iDisplayStart,c=b+a,d=this.aiDisplay.length,e=this.oFeatures,f=e.bPaginate;return e.bServerSide?!1===f||-1===a?b+d:Math.min(b+a,this._iRecordsDisplay):!f||c>d||-1===a?d:c},oInstance:null,sInstance:null,iTabIndex:0,nScrollHead:null,nScrollFoot:null,aLastSort:[],oPlugins:{},rowIdFn:null,rowId:null};n.ext=x={buttons:{},classes:{},builder:"-source-",errMode:"alert",feature:[],search:[],selector:{cell:[],column:[],row:[]},internal:{},legacy:{ajax:null},pager:{},renderer:{pageButton:{},header:{}},order:{},type:{detect:[],search:{},order:{}},_unique:0,fnVersionCheck:n.fnVersionCheck,iApiIndex:0,oJUIClasses:{},sVersion:n.version};h.extend(x,{afnFiltering:x.search,aTypes:x.type.detect,ofnSearch:x.type.search,oSort:x.type.order,afnSortData:x.order,aoFeatures:x.feature,oApi:x.internal,oStdClasses:x.classes,oPagination:x.pager});h.extend(n.ext.classes,{sTable:"dataTable",sNoFooter:"no-footer",sPageButton:"paginate_button",sPageButtonActive:"current",sPageButtonDisabled:"disabled",sStripeOdd:"odd",sStripeEven:"even",sRowEmpty:"dataTables_empty",sWrapper:"dataTables_wrapper",sFilter:"dataTables_filter",sInfo:"dataTables_info",sPaging:"dataTables_paginate paging_",sLength:"dataTables_length",sProcessing:"dataTables_processing",sSortAsc:"sorting_asc",sSortDesc:"sorting_desc",sSortable:"sorting",sSortableAsc:"sorting_asc_disabled",sSortableDesc:"sorting_desc_disabled",sSortableNone:"sorting_disabled",sSortColumn:"sorting_",sFilterInput:"",sLengthSelect:"",sScrollWrapper:"dataTables_scroll",sScrollHead:"dataTables_scrollHead",sScrollHeadInner:"dataTables_scrollHeadInner",sScrollBody:"dataTables_scrollBody",sScrollFoot:"dataTables_scrollFoot",sScrollFootInner:"dataTables_scrollFootInner",sHeaderTH:"",sFooterTH:"",sSortJUIAsc:"",sSortJUIDesc:"",sSortJUI:"",sSortJUIAscAllowed:"",sSortJUIDescAllowed:"",sSortJUIWrapper:"",sSortIcon:"",sJUIHeader:"",sJUIFooter:""});var Lb=n.ext.pager;h.extend(Lb,{simple:function(){return["previous","next"]},full:function(){return["first","previous","next","last"]},numbers:function(a,b){return[ia(a,b)]},simple_numbers:function(a,b){return["previous",ia(a,b),"next"]},full_numbers:function(a,b){return["first","previous",ia(a,b),"next","last"]},first_last_numbers:function(a,b){return["first",ia(a,b),"last"]},_numbers:ia,numbers_length:7});h.extend(!0,n.ext.renderer,{pageButton:{_:function(a,b,c,d,e,f){var g=a.oClasses,j=a.oLanguage.oPaginate,i=a.oLanguage.oAria.paginate||{},m,l,n=0,o=function(b,d){var k,s,u,r,v=function(b){Ta(a,b.data.action,!0)};k=0;for(s=d.length;k<s;k++){r=d[k];if(h.isArray(r)){u=h("<"+(r.DT_el||"div")+"/>").appendTo(b);o(u,r)}else{m=null;l="";switch(r){case "ellipsis":b.append('<span class="ellipsis">&#x2026;</span>');break;case "first":m=j.sFirst;l=r+(e>0?"":" "+g.sPageButtonDisabled);break;case "previous":m=j.sPrevious;l=r+(e>0?"":" "+g.sPageButtonDisabled);break;case "next":m=j.sNext;l=r+(e<f-1?"":" "+g.sPageButtonDisabled);break;case "last":m=j.sLast;l=r+(e<f-1?"":" "+g.sPageButtonDisabled);break;default:m=r+1;l=e===r?g.sPageButtonActive:""}if(m!==null){u=h("<a>",{"class":g.sPageButton+" "+l,"aria-controls":a.sTableId,"aria-label":i[r],"data-dt-idx":n,tabindex:a.iTabIndex,id:c===0&&typeof r==="string"?a.sTableId+"_"+r:null}).html(m).appendTo(b);Wa(u,{action:r},v);n++}}}},s;try{s=h(b).find(H.activeElement).data("dt-idx")}catch(u){}o(h(b).empty(),d);s!==k&&h(b).find("[data-dt-idx="+s+"]").focus()}}});h.extend(n.ext.type.detect,[function(a,b){var c=b.oLanguage.sDecimal;return $a(a,c)?"num"+c:null},function(a){if(a&&!(a instanceof Date)&&!Zb.test(a))return null;var b=Date.parse(a);return null!==b&&!isNaN(b)||M(a)?"date":null},function(a,b){var c=b.oLanguage.sDecimal;return $a(a,c,!0)?"num-fmt"+c:null},function(a,b){var c=b.oLanguage.sDecimal;return Qb(a,c)?"html-num"+c:null},function(a,b){var c=b.oLanguage.sDecimal;return Qb(a,c,!0)?"html-num-fmt"+c:null},function(a){return M(a)||"string"===typeof a&&-1!==a.indexOf("<")?"html":null}]);h.extend(n.ext.type.search,{html:function(a){return M(a)?a:"string"===typeof a?a.replace(Nb," ").replace(Aa,""):""},string:function(a){return M(a)?a:"string"===typeof a?a.replace(Nb," "):a}});var za=function(a,b,c,d){if(0!==a&&(!a||"-"===a))return-Infinity;b&&(a=Pb(a,b));a.replace&&(c&&(a=a.replace(c,"")),d&&(a=a.replace(d,"")));return 1*a};h.extend(x.type.order,{"date-pre":function(a){a=Date.parse(a);return isNaN(a)?-Infinity:a},"html-pre":function(a){return M(a)?"":a.replace?a.replace(/<.*?>/g,"").toLowerCase():a+""},"string-pre":function(a){return M(a)?"":"string"===typeof a?a.toLowerCase():!a.toString?"":a.toString()},"string-asc":function(a,b){return a<b?-1:a>b?1:0},"string-desc":function(a,b){return a<b?1:a>b?-1:0}});Da("");h.extend(!0,n.ext.renderer,{header:{_:function(a,b,c,d){h(a.nTable).on("order.dt.DT",function(e,f,g,h){if(a===f){e=c.idx;b.removeClass(c.sSortingClass+" "+d.sSortAsc+" "+d.sSortDesc).addClass(h[e]=="asc"?d.sSortAsc:h[e]=="desc"?d.sSortDesc:c.sSortingClass)}})},jqueryui:function(a,b,c,d){h("<div/>").addClass(d.sSortJUIWrapper).append(b.contents()).append(h("<span/>").addClass(d.sSortIcon+" "+c.sSortingClassJUI)).appendTo(b);h(a.nTable).on("order.dt.DT",function(e,f,g,h){if(a===f){e=c.idx;b.removeClass(d.sSortAsc+" "+d.sSortDesc).addClass(h[e]=="asc"?d.sSortAsc:h[e]=="desc"?d.sSortDesc:c.sSortingClass);b.find("span."+d.sSortIcon).removeClass(d.sSortJUIAsc+" "+d.sSortJUIDesc+" "+d.sSortJUI+" "+d.sSortJUIAscAllowed+" "+d.sSortJUIDescAllowed).addClass(h[e]=="asc"?d.sSortJUIAsc:h[e]=="desc"?d.sSortJUIDesc:c.sSortingClassJUI)}})}}});var eb=function(a){return"string"===typeof a?a.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"):a};n.render={number:function(a,b,c,d,e){return{display:function(f){if("number"!==typeof f&&"string"!==typeof f)return f;var g=0>f?"-":"",h=parseFloat(f);if(isNaN(h))return eb(f);h=h.toFixed(c);f=Math.abs(h);h=parseInt(f,10);f=c?b+(f-h).toFixed(c).substring(2):"";return g+(d||"")+h.toString().replace(/\B(?=(\d{3})+(?!\d))/g,a)+f+(e||"")}}},text:function(){return{display:eb,filter:eb}}};h.extend(n.ext.internal,{_fnExternApiFunc:Mb,_fnBuildAjax:sa,_fnAjaxUpdate:mb,_fnAjaxParameters:vb,_fnAjaxUpdateDraw:wb,_fnAjaxDataSrc:ta,_fnAddColumn:Ea,_fnColumnOptions:ka,_fnAdjustColumnSizing:$,_fnVisibleToColumnIndex:aa,_fnColumnIndexToVisible:ba,_fnVisbleColumns:V,_fnGetColumns:ma,_fnColumnTypes:Ga,_fnApplyColumnDefs:jb,_fnHungarianMap:Z,_fnCamelToHungarian:J,_fnLanguageCompat:Ca,_fnBrowserDetect:hb,_fnAddData:O,_fnAddTr:na,_fnNodeToDataIndex:function(a,b){return b._DT_RowIndex!==k?b._DT_RowIndex:null},_fnNodeToColumnIndex:function(a,b,c){return h.inArray(c,a.aoData[b].anCells)},_fnGetCellData:B,_fnSetCellData:kb,_fnSplitObjNotation:Ja,_fnGetObjectDataFn:S,_fnSetObjectDataFn:N,_fnGetDataMaster:Ka,_fnClearTable:oa,_fnDeleteIndex:pa,_fnInvalidate:da,_fnGetRowElements:Ia,_fnCreateTr:Ha,_fnBuildHead:lb,_fnDrawHead:fa,_fnDraw:P,_fnReDraw:T,_fnAddOptionsHtml:ob,_fnDetectHeader:ea,_fnGetUniqueThs:ra,_fnFeatureHtmlFilter:qb,_fnFilterComplete:ga,_fnFilterCustom:zb,_fnFilterColumn:yb,_fnFilter:xb,_fnFilterCreateSearch:Pa,_fnEscapeRegex:Qa,_fnFilterData:Ab,_fnFeatureHtmlInfo:tb,_fnUpdateInfo:Db,_fnInfoMacros:Eb,_fnInitialise:ha,_fnInitComplete:ua,_fnLengthChange:Ra,_fnFeatureHtmlLength:pb,_fnFeatureHtmlPaginate:ub,_fnPageChange:Ta,_fnFeatureHtmlProcessing:rb,_fnProcessingDisplay:C,_fnFeatureHtmlTable:sb,_fnScrollDraw:la,_fnApplyToChildren:I,_fnCalculateColumnWidths:Fa,_fnThrottle:Oa,_fnConvertToWidth:Fb,_fnGetWidestNode:Gb,_fnGetMaxLenString:Hb,_fnStringToCss:v,_fnSortFlatten:X,_fnSort:nb,_fnSortAria:Jb,_fnSortListener:Va,_fnSortAttachListener:Ma,_fnSortingClasses:wa,_fnSortData:Ib,_fnSaveState:xa,_fnLoadState:Kb,_fnSettingsFromNode:ya,_fnLog:K,_fnMap:F,_fnBindAction:Wa,_fnCallbackReg:z,_fnCallbackFire:r,_fnLengthOverflow:Sa,_fnRenderer:Na,_fnDataSource:y,_fnRowAttributes:La,_fnExtend:Xa,_fnCalculateEnd:function(){}});h.fn.dataTable=n;n.$=h;h.fn.dataTableSettings=n.settings;h.fn.dataTableExt=n.ext;h.fn.DataTable=function(a){return h(this).dataTable(a).api()};h.each(n,function(a,b){h.fn.DataTable[a]=b});return h.fn.dataTable});(function($){"use strict";$.fn.rowGrouping=function(options){function _fnOnGrouped(){}
9
+ function _fnOnGroupCreated(oGroup,sGroup,iLevel){}
10
+ function _fnOnGroupCompleted(oGroup,sGroup,iLevel){}
11
+ function _getMonthName(iMonth){var asMonths=["January","February","March","April","May","June","July","August","September","October","November","December"];return asMonths[iMonth-1]}
12
+ var defaults={iGroupingColumnIndex:0,sGroupingColumnSortDirection:"",iGroupingOrderByColumnIndex:-1,sGroupingClass:"group",sGroupItemClass:"group-item",bHideGroupingColumn:!0,bHideGroupingOrderByColumn:!0,sGroupBy:"name",sGroupLabelPrefix:"",fnGroupLabelFormat:function(label){return label},bExpandableGrouping:!1,bExpandSingleGroup:!1,iExpandGroupOffset:100,asExpandedGroups:null,sDateFormat:"dd/MM/yyyy",sEmptyGroupLabel:"-",bSetGroupingClassOnTR:!1,iGroupingColumnIndex2:-1,sGroupingColumnSortDirection2:"",iGroupingOrderByColumnIndex2:-1,sGroupingClass2:"subgroup",sGroupItemClass2:"subgroup-item",bHideGroupingColumn2:!0,bHideGroupingOrderByColumn2:!0,sGroupBy2:"name",sGroupLabelPrefix2:"",fnGroupLabelFormat2:function(label){return label},bExpandableGrouping2:!1,fnOnGrouped:_fnOnGrouped,fnOnGroupCreated:_fnOnGroupCreated,fnOnGroupCompleted:_fnOnGroupCompleted,oHideEffect:null,oShowEffect:null,bUseFilteringForGrouping:!1};return this.each(function(index,elem){var oTable=$(elem).dataTable();var aoGroups=new Array();$(this).dataTableExt.aoGroups=aoGroups;function fnCreateGroupRow(sGroupCleaned,sGroup,iColspan){var nGroup=document.createElement('tr');var nCell=document.createElement('td');nGroup.id="group-id-"+oTable.attr("id")+"_"+sGroupCleaned;var oGroup={id:nGroup.id,key:sGroupCleaned,text:sGroup,level:0,groupItemClass:".group-item-"+sGroupCleaned,dataGroup:sGroupCleaned,aoSubgroups:new Array()};if(properties.bSetGroupingClassOnTR){nGroup.className=properties.sGroupingClass+" "+sGroupCleaned}else{nCell.className=properties.sGroupingClass+" "+sGroupCleaned}
13
+ nCell.colSpan=iColspan;nCell.innerHTML=properties.sGroupLabelPrefix+properties.fnGroupLabelFormat(sGroup==""?properties.sEmptyGroupLabel:sGroup,oGroup);if(properties.bExpandableGrouping){if(!_fnIsGroupCollapsed(sGroupCleaned)){nCell.className+=" expanded-group";oGroup.state="expanded"}else{nCell.className+=" collapsed-group";oGroup.state="collapsed"}
14
+ nCell.className+=" group-item-expander";$(nCell).attr('data-group',oGroup.dataGroup);$(nCell).attr("data-group-level",oGroup.level);$(nCell).click(_fnOnGroupClick)}
15
+ nGroup.appendChild(nCell);aoGroups[sGroupCleaned]=oGroup;oGroup.nGroup=nGroup;properties.fnOnGroupCreated(oGroup,sGroupCleaned,1);return oGroup}
16
+ function _fnCreateGroup2Row(sGroup2,sGroupLabel,iColspan,oParentGroup){var nGroup2=document.createElement('tr');nGroup2.id=oParentGroup.id+"_"+sGroup2;var nCell2=document.createElement('td');var dataGroup=oParentGroup.dataGroup+'_'+sGroup2;var oGroup={id:nGroup2.id,key:sGroup2,text:sGroupLabel,level:oParentGroup.level+1,groupItemClass:".group-item-"+dataGroup,dataGroup:dataGroup,aoSubgroups:new Array()};if(properties.bSetGroupingClassOnTR){nGroup2.className=properties.sGroupingClass2+" "+sGroup2}else{nCell2.className=properties.sGroupingClass2+" "+sGroup2}
17
+ nCell2.colSpan=iColspan;nCell2.innerHTML=properties.sGroupLabelPrefix2+properties.fnGroupLabelFormat2(sGroupLabel==""?properties.sEmptyGroupLabel:sGroupLabel,oGroup);if(properties.bExpandableGrouping){nGroup2.className+=" group-item-"+oParentGroup.dataGroup}
18
+ if(properties.bExpandableGrouping&&properties.bExpandableGrouping2){if(!_fnIsGroupCollapsed(oGroup.dataGroup)){nCell2.className+=" expanded-group";oGroup.state="expanded"}else{nCell2.className+=" collapsed-group";oGroup.state="collapsed"}
19
+ nCell2.className+=" group-item-expander";$(nCell2).attr('data-group',oGroup.dataGroup);$(nCell2).attr("data-group-level",oGroup.level);$(nCell2).click(_fnOnGroupClick)}
20
+ nGroup2.appendChild(nCell2);oParentGroup.aoSubgroups[oGroup.dataGroup]=oGroup;aoGroups[oGroup.dataGroup]=oGroup;oGroup.nGroup=nGroup2;properties.fnOnGroupCreated(oGroup,sGroup2,2);return oGroup}
21
+ function _fnIsGroupCollapsed(sGroup){if(aoGroups[sGroup]!=null)
22
+ return(aoGroups[sGroup].state=="collapsed");else if(sGroup.indexOf("_")>-1)
23
+ !0;else if(bInitialGrouping&&(asExpandedGroups==null||asExpandedGroups.length==0))
24
+ return!1;else return($.inArray(sGroup,asExpandedGroups)==-1)}
25
+ function _fnGetYear(x){if(x.length<(iYearIndex+iYearLength))
26
+ return x;else return x.substr(iYearIndex,iYearLength)}
27
+ function _fnGetGroupByName(x){return x}
28
+ function _fnGetGroupByLetter(x){return x.substr(0,1)}
29
+ function _fnGetGroupByYear(x){return _fnGetYear(x)}
30
+ function _fnGetGroupByYearMonth(x){return x.substr(iYearIndex,iYearLength)+' '+_getMonthName(x.substr(iMonthIndex,iMonthLength))}
31
+ function _fnGetCleanedGroup(sGroup){if(typeof sGroup==="undefined"||sGroup==="")return properties.sEmptyGroupLabel;return sGroup.toLowerCase().replace(/[^a-zA-Z0-9\u0080-\uFFFF]+/g,"-")}
32
+ function _rowGroupingRowFilter(oSettings,aData,iDataIndex){if(oSettings.nTable.id!==oTable[0].id)return!0;var sColData=aData[properties.iGroupingColumnIndex];if(typeof sColData==="undefined")
33
+ sColData=aData[oSettings.aoColumns[properties.iGroupingColumnIndex].mData];if(_fnIsGroupCollapsed(_fnGetCleanedGroup(sColData))){if(oTable.fnIsOpen(oTable.fnGetNodes(iDataIndex))){if(properties.fnOnRowClosed!=null){properties.fnOnRowClosed(this)}
34
+ oTable.fnClose(oTable.fnGetNodes(iDataIndex))}
35
+ return!1};return!0}
36
+ function fnExpandGroup(sGroup){aoGroups[sGroup].state="expanded";$("td[data-group='"+sGroup+"']").removeClass("collapsed-group");$("td[data-group='"+sGroup+"']").addClass("expanded-group");if(properties.bUseFilteringForGrouping){oTable.fnDraw();return}
37
+ if(jQuery.inArray(sGroup,asExpandedGroups)==-1)
38
+ asExpandedGroups.push(sGroup);if(properties.oHideEffect!=null)
39
+ $(".group-item-"+sGroup,oTable)[properties.oShowEffect.method](properties.oShowEffect.duration,properties.oShowEffect.easing,function(){});else $(".group-item-"+sGroup,oTable).show()}
40
+ function fnCollapseGroup(sGroup){aoGroups[sGroup].state="collapsed";$("td[data-group='"+sGroup+"']").removeClass("expanded-group");$("td[data-group='"+sGroup+"']").addClass("collapsed-group");if(properties.bUseFilteringForGrouping){oTable.fnDraw();return}
41
+ $('.group-item-'+sGroup).each(function(){if(oTable.fnIsOpen(this)){if(properties.fnOnRowClosed!=null){properties.fnOnRowClosed(this)}
42
+ oTable.fnClose(this)}});if(properties.oHideEffect!=null)
43
+ $(".group-item-"+sGroup,oTable)[properties.oHideEffect.method](properties.oHideEffect.duration,properties.oHideEffect.easing,function(){});else $(".group-item-"+sGroup,oTable).hide()}
44
+ function _fnOnGroupClick(e){var sGroup=$(this).attr("data-group");var iGroupLevel=$(this).attr("data-group-level");var bIsExpanded=!_fnIsGroupCollapsed(sGroup);if(properties.bExpandSingleGroup){if(!bIsExpanded){var sCurrentGroup=$("td.expanded-group").attr("data-group");fnCollapseGroup(sCurrentGroup);fnExpandGroup(sGroup);if(properties.iExpandGroupOffset!=-1){var position=$("#group-id-"+oTable.attr("id")+"_"+sGroup).offset().top-properties.iExpandGroupOffset;window.scroll(0,position)}else{var position=oTable.offset().top;window.scroll(0,position)}}}else{if(bIsExpanded){fnCollapseGroup(sGroup)}else{fnExpandGroup(sGroup)}}
45
+ e.preventDefault()};function _fnDrawCallBackWithGrouping(oSettings){if(oTable.fnSettings().oFeatures.bServerSide)
46
+ bInitialGrouping=!0;var bUseSecondaryGrouping=!1;if(properties.iGroupingColumnIndex2!=-1)
47
+ bUseSecondaryGrouping=!0;if(oSettings.aiDisplayMaster.length==0){return}
48
+ var nTrs=$('tbody tr',oTable);var iColspan=0;for(var iColIndex=0;iColIndex<oSettings.aoColumns.length;iColIndex++){if(oSettings.aoColumns[iColIndex].bVisible)
49
+ iColspan+=1}
50
+ var sLastGroup=null;var sLastGroup2=null;if(oSettings.aiDisplay.length>0){for(var i=0;i<nTrs.length;i++){var iDisplayIndex=oSettings._iDisplayStart+i;if(oTable.fnSettings().oFeatures.bServerSide)
51
+ iDisplayIndex=i;var sGroupData="";var sGroup=null;var sGroupData2="";var sGroup2=null;sGroupData=this.fnGetData(nTrs[i],properties.iGroupingColumnIndex);var sGroup=sGroupData;if(properties.sGroupBy!="year")
52
+ sGroup=fnGetGroup(sGroupData);if(bUseSecondaryGrouping){sGroupData2=oSettings.aoData[oSettings.aiDisplay[iDisplayIndex]]._aData[properties.iGroupingColumnIndex2];if(sGroupData2==undefined)
53
+ sGroupData2=oSettings.aoData[oSettings.aiDisplay[iDisplayIndex]]._aData[oSettings.aoColumns[properties.iGroupingColumnIndex2].mData];if(properties.sGroupBy2!="year")
54
+ sGroup2=fnGetGroup(sGroupData2)}
55
+ if(sLastGroup==null||_fnGetCleanedGroup(sGroup)!=_fnGetCleanedGroup(sLastGroup)){var sGroupCleaned=_fnGetCleanedGroup(sGroup);if(sLastGroup!=null){properties.fnOnGroupCompleted(aoGroups[_fnGetCleanedGroup(sLastGroup)])}
56
+ if(properties.bAddAllGroupsAsExpanded&&jQuery.inArray(sGroupCleaned,asExpandedGroups)==-1)
57
+ asExpandedGroups.push(sGroupCleaned);var oGroup=fnCreateGroupRow(sGroupCleaned,sGroup,iColspan);var nGroup=oGroup.nGroup;if(nTrs[i].parentNode!=null)
58
+ nTrs[i].parentNode.insertBefore(nGroup,nTrs[i]);else $(nTrs[i]).before(nGroup);sLastGroup=sGroup;sLastGroup2=null}
59
+ $(nTrs[i]).attr("data-group",aoGroups[sGroupCleaned].dataGroup);$(nTrs[i]).addClass(properties.sGroupItemClass);$(nTrs[i]).addClass("group-item-"+sGroupCleaned);if(properties.bExpandableGrouping){if(_fnIsGroupCollapsed(sGroupCleaned)&&!properties.bUseFilteringForGrouping){$(nTrs[i]).hide()}}
60
+ if(bUseSecondaryGrouping){if(sLastGroup2==null||_fnGetCleanedGroup(sGroup2)!=_fnGetCleanedGroup(sLastGroup2)){var sGroup2Id=_fnGetCleanedGroup(sGroup)+'-'+_fnGetCleanedGroup(sGroup2);var oGroup2=_fnCreateGroup2Row(sGroup2Id,sGroup2,iColspan,aoGroups[sGroupCleaned])
61
+ var nGroup2=oGroup2.nGroup;nTrs[i].parentNode.insertBefore(nGroup2,nTrs[i]);sLastGroup2=sGroup2}
62
+ $(nTrs[i]).attr("data-group",oGroup2.dataGroup).addClass(properties.sGroupItemClass2).addClass("group-item-"+oGroup2.dataGroup)}}};if(sLastGroup!=null){properties.fnOnGroupCompleted(aoGroups[_fnGetCleanedGroup(sLastGroup)])}
63
+ properties.fnOnGrouped(aoGroups);bInitialGrouping=!1};var iYearIndex=6;var iYearLength=4;var asExpandedGroups=new Array();var bInitialGrouping=!0;var properties=$.extend(defaults,options);if(properties.iGroupingOrderByColumnIndex==-1){properties.bCustomColumnOrdering=!1;properties.iGroupingOrderByColumnIndex=properties.iGroupingColumnIndex}else{properties.bCustomColumnOrdering=!0}
64
+ if(properties.sGroupingColumnSortDirection==""){if(properties.sGroupBy=="year")
65
+ properties.sGroupingColumnSortDirection="desc";else properties.sGroupingColumnSortDirection="asc"}
66
+ if(properties.iGroupingOrderByColumnIndex2==-1){properties.bCustomColumnOrdering2=!1;properties.iGroupingOrderByColumnIndex2=properties.iGroupingColumnIndex2}else{properties.bCustomColumnOrdering2=!0}
67
+ if(properties.sGroupingColumnSortDirection2==""){if(properties.sGroupBy2=="year")
68
+ properties.sGroupingColumnSortDirection2="desc";else properties.sGroupingColumnSortDirection2="asc"}
69
+ iYearIndex=properties.sDateFormat.toLowerCase().indexOf('yy');iYearLength=properties.sDateFormat.toLowerCase().lastIndexOf('y')-properties.sDateFormat.toLowerCase().indexOf('y')+1;var iMonthIndex=properties.sDateFormat.toLowerCase().indexOf('mm');var iMonthLength=properties.sDateFormat.toLowerCase().lastIndexOf('m')-properties.sDateFormat.toLowerCase().indexOf('m')+1;var fnGetGroup=_fnGetGroupByName;switch(properties.sGroupBy){case "letter":fnGetGroup=_fnGetGroupByLetter;break;case "year":fnGetGroup=_fnGetGroupByYear;break;case "month":fnGetGroup=_fnGetGroupByYearMonth;break;default:fnGetGroup=_fnGetGroupByName;break}
70
+ if(properties.asExpandedGroups!=null){if(properties.asExpandedGroups=="NONE"){properties.asExpandedGroups=[];asExpandedGroups=properties.asExpandedGroups;bInitialGrouping=!1}else if(properties.asExpandedGroups=="ALL"){properties.bAddAllGroupsAsExpanded=!0}else if(properties.asExpandedGroups.constructor==String){var currentGroup=properties.asExpandedGroups;properties.asExpandedGroups=new Array();properties.asExpandedGroups.push(_fnGetCleanedGroup(currentGroup));asExpandedGroups=properties.asExpandedGroups;bInitialGrouping=!1}else if(properties.asExpandedGroups.constructor==Array){for(var i=0;i<properties.asExpandedGroups.length;i++){asExpandedGroups.push(_fnGetCleanedGroup(properties.asExpandedGroups[i]));if(properties.bExpandSingleGroup)
71
+ break}
72
+ bInitialGrouping=!1}}else{properties.asExpandedGroups=new Array();properties.bAddAllGroupsAsExpanded=!0}
73
+ if(properties.bExpandSingleGroup){var nTrs=$('tbody tr',oTable);var sGroupData=oTable.fnGetData(nTrs[0],properties.iGroupingColumnIndex);var sGroup=sGroupData;if(properties.sGroupBy!="year")
74
+ sGroup=fnGetGroup(sGroupData);var sGroupCleaned=_fnGetCleanedGroup(sGroup);properties.asExpandedGroups=new Array();properties.asExpandedGroups.push(sGroupCleaned)}
75
+ oTable.fnSetColumnVis(properties.iGroupingColumnIndex,!properties.bHideGroupingColumn);if(properties.bCustomColumnOrdering){oTable.fnSetColumnVis(properties.iGroupingOrderByColumnIndex,!properties.bHideGroupingOrderByColumn)}
76
+ if(properties.iGroupingColumnIndex2!=-1){oTable.fnSetColumnVis(properties.iGroupingColumnIndex2,!properties.bHideGroupingColumn2)}
77
+ if(properties.bCustomColumnOrdering2){oTable.fnSetColumnVis(properties.iGroupingOrderByColumnIndex2,!properties.bHideGroupingOrderByColumn2)}
78
+ oTable.fnSettings().aoDrawCallback.push({"fn":_fnDrawCallBackWithGrouping,"sName":"fnRowGrouping"});var aaSortingFixed=new Array();aaSortingFixed.push([properties.iGroupingOrderByColumnIndex,properties.sGroupingColumnSortDirection]);if(properties.iGroupingColumnIndex2!=-1){aaSortingFixed.push([properties.iGroupingOrderByColumnIndex2,properties.sGroupingColumnSortDirection2])}
79
+ oTable.fnSettings().aaSortingFixed=aaSortingFixed;switch(properties.sGroupBy){case "name":break;case "letter":oTable.fnSettings().aoColumns[properties.iGroupingOrderByColumnIndex].sSortDataType="rg-letter";$.fn.dataTableExt.afnSortData['rg-letter']=function(oSettings,iColumn){var aData=[];$('td:eq('+iColumn+')',oSettings.oApi._fnGetTrNodes(oSettings)).each(function(){aData.push(_fnGetGroupByLetter(this.innerHTML))});return aData}
80
+ break;case "year":oTable.fnSettings().aoColumns[properties.iGroupingOrderByColumnIndex].sSortDataType="rg-date";$.fn.dataTableExt.afnSortData['rg-date']=function(oSettings,iColumn){var aData=[];var nTrs=oSettings.oApi._fnGetTrNodes(oSettings);for(i=0;i<nTrs.length;i++){aData.push(_fnGetYear(oTable.fnGetData(nTrs[i],iColumn)))}
81
+ return aData}
82
+ break;default:break}
83
+ if(properties.bUseFilteringForGrouping)
84
+ $.fn.dataTableExt.afnFiltering.push(_rowGroupingRowFilter);oTable.fnDraw()})}})(jQuery);/*!
85
+ Buttons for DataTables 1.3.1
86
+ ©2016 SpryMedia Ltd - datatables.net/license
87
+ */
88
+ (function(d){"function"===typeof define&&define.amd?define(["jquery","datatables.net"],function(n){return d(n,window,document)}):"object"===typeof exports?module.exports=function(n,o){n||(n=window);if(!o||!o.fn.dataTable)o=require("datatables.net")(n,o).$;return d(o,n,n.document)}:d(jQuery,window,document)})(function(d,n,o,l){var i=d.fn.dataTable,u=0,v=0,j=i.ext.buttons,m=function(a,b){"undefined"===typeof b&&(b={});!0===b&&(b={});d.isArray(b)&&(b={buttons:b});this.c=d.extend(!0,{},m.defaults,b);b.buttons&&(this.c.buttons=b.buttons);this.s={dt:new i.Api(a),buttons:[],listenKeys:"",namespace:"dtb"+u++};this.dom={container:d("<"+this.c.dom.container.tag+"/>").addClass(this.c.dom.container.className)};this._constructor()};d.extend(m.prototype,{action:function(a,b){var c=this._nodeToButton(a);if(b===l)return c.conf.action;c.conf.action=b;return this},active:function(a,b){var c=this._nodeToButton(a),e=this.c.dom.button.active,c=d(c.node);if(b===l)return c.hasClass(e);c.toggleClass(e,b===l?!0:b);return this},add:function(a,b){var c=this.s.buttons;if("string"===typeof b){for(var e=b.split("-"),c=this.s,d=0,h=e.length-1;d<h;d++)c=c.buttons[1*e[d]];c=c.buttons;b=1*e[e.length-1]}this._expandButton(c,a,!1,b);this._draw();return this},container:function(){return this.dom.container},disable:function(a){a=this._nodeToButton(a);d(a.node).addClass(this.c.dom.button.disabled);return this},destroy:function(){d("body").off("keyup."+this.s.namespace);var a=this.s.buttons.slice(),b,c;b=0;for(c=a.length;b<c;b++)this.remove(a[b].node);this.dom.container.remove();a=this.s.dt.settings()[0];b=0;for(c=a.length;b<c;b++)if(a.inst===this){a.splice(b,1);break}return this},enable:function(a,b){if(!1===b)return this.disable(a);var c=this._nodeToButton(a);d(c.node).removeClass(this.c.dom.button.disabled);return this},name:function(){return this.c.name},node:function(a){a=this._nodeToButton(a);return d(a.node)},processing:function(a,b){var c=this._nodeToButton(a);if(b===l)return d(c.node).hasClass("processing");d(c.node).toggleClass("processing",b);return this},remove:function(a){var b=this._nodeToButton(a),c=this._nodeToHost(a),e=this.s.dt;if(b.buttons.length)for(var g=b.buttons.length-1;0<=g;g--)this.remove(b.buttons[g].node);b.conf.destroy&&b.conf.destroy.call(e.button(a),e,d(a),b.conf);this._removeKey(b.conf);d(b.node).remove();a=d.inArray(b,c);c.splice(a,1);return this},text:function(a,b){var c=this._nodeToButton(a),e=this.c.dom.collection.buttonLiner,e=c.inCollection&&e&&e.tag?e.tag:this.c.dom.buttonLiner.tag,g=this.s.dt,h=d(c.node),f=function(a){return"function"===typeof a?a(g,h,c.conf):a};if(b===l)return f(c.conf.text);c.conf.text=b;e?h.children(e).html(f(b)):h.html(f(b));return this},_constructor:function(){var a=this,b=this.s.dt,c=b.settings()[0],e=this.c.buttons;c._buttons||(c._buttons=[]);c._buttons.push({inst:this,name:this.c.name});for(var c=0,g=e.length;c<g;c++)this.add(e[c]);b.on("destroy",function(){a.destroy()});d("body").on("keyup."+this.s.namespace,function(b){if(!o.activeElement||o.activeElement===o.body){var c=String.fromCharCode(b.keyCode).toLowerCase();a.s.listenKeys.toLowerCase().indexOf(c)!==-1&&a._keypress(c,b)}})},_addKey:function(a){a.key&&(this.s.listenKeys+=d.isPlainObject(a.key)?a.key.key:a.key)},_draw:function(a,b){a||(a=this.dom.container,b=this.s.buttons);a.children().detach();for(var c=0,e=b.length;c<e;c++)a.append(b[c].inserter),b[c].buttons&&b[c].buttons.length&&this._draw(b[c].collection,b[c].buttons)},_expandButton:function(a,b,c,e){for(var g=this.s.dt,h=0,b=!d.isArray(b)?[b]:b,f=0,r=b.length;f<r;f++){var k=this._resolveExtends(b[f]);if(k)if(d.isArray(k))this._expandButton(a,k,c,e);else{var p=this._buildButton(k,c);if(p){e!==l?(a.splice(e,0,p),e++):a.push(p);if(p.conf.buttons){var s=this.c.dom.collection;p.collection=d("<"+s.tag+"/>").addClass(s.className).attr("role","menu");p.conf._collection=p.collection;this._expandButton(p.buttons,p.conf.buttons,!0,e)}k.init&&k.init.call(g.button(p.node),g,d(p.node),k);h++}}}},_buildButton:function(a,b){var c=this.c.dom.button,e=this.c.dom.buttonLiner,g=this.c.dom.collection,h=this.s.dt,f=function(b){return"function"===typeof b?b(h,k,a):b};b&&g.button&&(c=g.button);b&&g.buttonLiner&&(e=g.buttonLiner);if(a.available&&!a.available(h,a))return!1;var r=function(a,b,c,e){e.action.call(b.button(c),a,b,c,e);d(b.table().node()).triggerHandler("buttons-action.dt",[b.button(c),b,c,e])},k=d("<"+c.tag+"/>").addClass(c.className).attr("tabindex",this.s.dt.settings()[0].iTabIndex).attr("aria-controls",this.s.dt.table().node().id).on("click.dtb",function(b){b.preventDefault();!k.hasClass(c.disabled)&&a.action&&r(b,h,k,a);k.blur()}).on("keyup.dtb",function(b){b.keyCode===13&&!k.hasClass(c.disabled)&&a.action&&r(b,h,k,a)});"a"===c.tag.toLowerCase()&&k.attr("href","#");e.tag?(g=d("<"+e.tag+"/>").html(f(a.text)).addClass(e.className),"a"===e.tag.toLowerCase()&&g.attr("href","#"),k.append(g)):k.html(f(a.text));!1===a.enabled&&k.addClass(c.disabled);a.className&&k.addClass(a.className);a.titleAttr&&k.attr("title",f(a.titleAttr));a.namespace||(a.namespace=".dt-button-"+v++);e=(e=this.c.dom.buttonContainer)&&e.tag?d("<"+e.tag+"/>").addClass(e.className).append(k):k;this._addKey(a);return{conf:a,node:k.get(0),inserter:e,buttons:[],inCollection:b,collection:null}},_nodeToButton:function(a,b){b||(b=this.s.buttons);for(var c=0,e=b.length;c<e;c++){if(b[c].node===a)return b[c];if(b[c].buttons.length){var d=this._nodeToButton(a,b[c].buttons);if(d)return d}}},_nodeToHost:function(a,b){b||(b=this.s.buttons);for(var c=0,e=b.length;c<e;c++){if(b[c].node===a)return b;if(b[c].buttons.length){var d=this._nodeToHost(a,b[c].buttons);if(d)return d}}},_keypress:function(a,b){var c=function(e){for(var g=0,h=e.length;g<h;g++){var f=e[g].conf,r=e[g].node;if(f.key)if(f.key===a)d(r).click();else if(d.isPlainObject(f.key)&&f.key.key===a&&(!f.key.shiftKey||b.shiftKey))if(!f.key.altKey||b.altKey)if(!f.key.ctrlKey||b.ctrlKey)(!f.key.metaKey||b.metaKey)&&d(r).click();e[g].buttons.length&&c(e[g].buttons)}};c(this.s.buttons)},_removeKey:function(a){if(a.key){var b=d.isPlainObject(a.key)?a.key.key:a.key,a=this.s.listenKeys.split(""),b=d.inArray(b,a);a.splice(b,1);this.s.listenKeys=a.join("")}},_resolveExtends:function(a){for(var b=this.s.dt,c,e,g=function(c){for(var e=0;!d.isPlainObject(c)&&!d.isArray(c);){if(c===l)return;if("function"===typeof c){if(c=c(b,a),!c)return!1}else if("string"===typeof c){if(!j[c])throw"Unknown button type: "+c;c=j[c]}e++;if(30<e)throw"Buttons: Too many iterations"}return d.isArray(c)?c:d.extend({},c)},a=g(a);a&&a.extend;){if(!j[a.extend])throw"Cannot extend unknown button type: "+a.extend;var h=g(j[a.extend]);if(d.isArray(h))return h;if(!h)return!1;c=h.className;a=d.extend({},h,a);c&&a.className!==c&&(a.className=c+" "+a.className);var f=a.postfixButtons;if(f){a.buttons||(a.buttons=[]);c=0;for(e=f.length;c<e;c++)a.buttons.push(f[c]);a.postfixButtons=null}if(f=a.prefixButtons){a.buttons||(a.buttons=[]);c=0;for(e=f.length;c<e;c++)a.buttons.splice(c,0,f[c]);a.prefixButtons=null}a.extend=h.extend}return a}});m.background=function(a,b,c){c===l&&(c=400);a?d("<div/>").addClass(b).css("display","none").appendTo("body").fadeIn(c):d("body > div."+b).fadeOut(c,function(){d(this).removeClass(b).remove()})};m.instanceSelector=function(a,b){if(!a)return d.map(b,function(a){return a.inst});var c=[],e=d.map(b,function(a){return a.name}),g=function(a){if(d.isArray(a))for(var f=0,r=a.length;f<r;f++)g(a[f]);else"string"===typeof a?-1!==a.indexOf(",")?g(a.split(",")):(a=d.inArray(d.trim(a),e),-1!==a&&c.push(b[a].inst)):"number"===typeof a&&c.push(b[a].inst)};g(a);return c};m.buttonSelector=function(a,b){for(var c=[],e=function(a,b,c){for(var d,g,f=0,h=b.length;f<h;f++)if(d=b[f])g=c!==l?c+f:f+"",a.push({node:d.node,name:d.conf.name,idx:g}),d.buttons&&e(a,d.buttons,g+"-")},g=function(a,b){var f,h,i=[];e(i,b.s.buttons);f=d.map(i,function(a){return a.node});if(d.isArray(a)||a instanceof d){f=0;for(h=a.length;f<h;f++)g(a[f],b)}else if(null===a||a===l||"*"===a){f=0;for(h=i.length;f<h;f++)c.push({inst:b,node:i[f].node})}else if("number"===typeof a)c.push({inst:b,node:b.s.buttons[a].node});else if("string"===typeof a)if(-1!==a.indexOf(",")){i=a.split(",");f=0;for(h=i.length;f<h;f++)g(d.trim(i[f]),b)}else if(a.match(/^\d+(\-\d+)*#x2F;))f=d.map(i,function(a){return a.idx}),c.push({inst:b,node:i[d.inArray(a,f)].node});else if(-1!==a.indexOf(":name")){var j=a.replace(":name","");f=0;for(h=i.length;f<h;f++)i[f].name===j&&c.push({inst:b,node:i[f].node})}else d(f).filter(a).each(function(){c.push({inst:b,node:this})});else"object"===typeof a&&a.nodeName&&(i=d.inArray(a,f),-1!==i&&c.push({inst:b,node:f[i]}))},h=0,f=a.length;h<f;h++)g(b,a[h]);return c};m.defaults={buttons:["copy","excel","csv","pdf","print"],name:"main",tabIndex:0,dom:{container:{tag:"div",className:"dt-buttons"},collection:{tag:"div",className:"dt-button-collection"},button:{tag:"a",className:"dt-button",active:"active",disabled:"disabled"},buttonLiner:{tag:"span",className:""}}};m.version="1.3.1";d.extend(j,{collection:{text:function(a){return a.i18n("buttons.collection","Collection")},className:"buttons-collection",action:function(a,b,c,e){var a=c.offset(),g=d(b.table().container()),h=!1;d("div.dt-button-background").length&&(h=d(".dt-button-collection").offset(),d("body").trigger("click.dtb-collection"));e._collection.addClass(e.collectionLayout).css("display","none").appendTo("body").fadeIn(e.fade);var f=e._collection.css("position");h&&"absolute"===f?e._collection.css({top:h.top,left:h.left}):"absolute"===f?(e._collection.css({top:a.top+c.outerHeight(),left:a.left}),c=a.left+e._collection.outerWidth(),g=g.offset().left+g.width(),c>g&&e._collection.css("left",a.left-(c-g))):(a=e._collection.height()/2,a>d(n).height()/2&&(a=d(n).height()/2),e._collection.css("marginTop",-1*a));e.background&&m.background(!0,e.backgroundClassName,e.fade);setTimeout(function(){d("div.dt-button-background").on("click.dtb-collection",function(){});d("body").on("click.dtb-collection",function(a){var c=d.fn.addBack?"addBack":"andSelf";if(!d(a.target).parents()[c]().filter(e._collection).length){e._collection.fadeOut(e.fade,function(){e._collection.detach()});d("div.dt-button-background").off("click.dtb-collection");m.background(!1,e.backgroundClassName,e.fade);d("body").off("click.dtb-collection");b.off("buttons-action.b-internal")}})},10);if(e.autoClose)b.on("buttons-action.b-internal",function(){d("div.dt-button-background").click()})},background:!0,collectionLayout:"",backgroundClassName:"dt-button-background",autoClose:!1,fade:400},copy:function(a,b){if(j.copyHtml5)return"copyHtml5";if(j.copyFlash&&j.copyFlash.available(a,b))return"copyFlash"},csv:function(a,b){if(j.csvHtml5&&j.csvHtml5.available(a,b))return"csvHtml5";if(j.csvFlash&&j.csvFlash.available(a,b))return"csvFlash"},excel:function(a,b){if(j.excelHtml5&&j.excelHtml5.available(a,b))return"excelHtml5";if(j.excelFlash&&j.excelFlash.available(a,b))return"excelFlash"},pdf:function(a,b){if(j.pdfHtml5&&j.pdfHtml5.available(a,b))return"pdfHtml5";if(j.pdfFlash&&j.pdfFlash.available(a,b))return"pdfFlash"},pageLength:function(a){var a=a.settings()[0].aLengthMenu,b=d.isArray(a[0])?a[0]:a,c=d.isArray(a[0])?a[1]:a,e=function(a){return a.i18n("buttons.pageLength",{"-1":"Show all rows",_:"Show %d rows"},a.page.len())};return{extend:"collection",text:e,className:"buttons-page-length",autoClose:!0,buttons:d.map(b,function(a,b){return{text:c[b],className:"button-page-length",action:function(b,c){c.page.len(a).draw()},init:function(b,c,d){var e=this,c=function(){e.active(b.page.len()===a)};b.on("length.dt"+d.namespace,c);c()},destroy:function(a,b,c){a.off("length.dt"+c.namespace)}}}),init:function(a,b,c){var d=this;a.on("length.dt"+c.namespace,function(){d.text(e(a))})},destroy:function(a,b,c){a.off("length.dt"+c.namespace)}}}});i.Api.register("buttons()",function(a,b){b===l&&(b=a,a=l);this.selector.buttonGroup=a;var c=this.iterator(!0,"table",function(c){if(c._buttons)return m.buttonSelector(m.instanceSelector(a,c._buttons),b)},!0);c._groupSelector=a;return c});i.Api.register("button()",function(a,b){var c=this.buttons(a,b);1<c.length&&c.splice(1,c.length);return c});i.Api.registerPlural("buttons().active()","button().active()",function(a){return a===l?this.map(function(a){return a.inst.active(a.node)}):this.each(function(b){b.inst.active(b.node,a)})});i.Api.registerPlural("buttons().action()","button().action()",function(a){return a===l?this.map(function(a){return a.inst.action(a.node)}):this.each(function(b){b.inst.action(b.node,a)})});i.Api.register(["buttons().enable()","button().enable()"],function(a){return this.each(function(b){b.inst.enable(b.node,a)})});i.Api.register(["buttons().disable()","button().disable()"],function(){return this.each(function(a){a.inst.disable(a.node)})});i.Api.registerPlural("buttons().nodes()","button().node()",function(){var a=d();d(this.each(function(b){a=a.add(b.inst.node(b.node))}));return a});i.Api.registerPlural("buttons().processing()","button().processing()",function(a){return a===l?this.map(function(a){return a.inst.processing(a.node)}):this.each(function(b){b.inst.processing(b.node,a)})});i.Api.registerPlural("buttons().text()","button().text()",function(a){return a===l?this.map(function(a){return a.inst.text(a.node)}):this.each(function(b){b.inst.text(b.node,a)})});i.Api.registerPlural("buttons().trigger()","button().trigger()",function(){return this.each(function(a){a.inst.node(a.node).trigger("click")})});i.Api.registerPlural("buttons().containers()","buttons().container()",function(){var a=d(),b=this._groupSelector;this.iterator(!0,"table",function(c){if(c._buttons)for(var c=m.instanceSelector(b,c._buttons),d=0,g=c.length;d<g;d++)a=a.add(c[d].container())});return a});i.Api.register("button().add()",function(a,b){var c=this.context;c.length&&(c=m.instanceSelector(this._groupSelector,c[0]._buttons),c.length&&c[0].add(b,a));return this.button(this._groupSelector,a)});i.Api.register("buttons().destroy()",function(){this.pluck("inst").unique().each(function(a){a.destroy()});return this});i.Api.registerPlural("buttons().remove()","buttons().remove()",function(){this.each(function(a){a.inst.remove(a.node)});return this});var q;i.Api.register("buttons.info()",function(a,b,c){var e=this;if(!1===a)return d("#datatables_buttons_info").fadeOut(function(){d(this).remove()}),clearTimeout(q),q=null,this;q&&clearTimeout(q);d("#datatables_buttons_info").length&&d("#datatables_buttons_info").remove();d('<div id="datatables_buttons_info" class="dt-button-info"/>').html(a?"<h2>"+a+"</h2>":"").append(d("<div/>")["string"===typeof b?"html":"append"](b)).css("display","none").appendTo("body").fadeIn();c!==l&&0!==c&&(q=setTimeout(function(){e.buttons.info(!1)},c));return this});i.Api.register("buttons.exportData()",function(a){if(this.context.length){for(var b=new i.Api(this.context[0]),c=d.extend(!0,{},{rows:null,columns:"",modifier:{search:"applied",order:"applied"},orthogonal:"display",stripHtml:!0,stripNewlines:!0,decodeEntities:!0,trim:!0,format:{header:function(a){return e(a)},footer:function(a){return e(a)},body:function(a){return e(a)}}},a),e=function(a){if("string"!==typeof a)return a;a=a.replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,"");c.stripHtml&&(a=a.replace(/<[^>]*>/g,""));c.trim&&(a=a.replace(/^\s+|\s+#x2F;g,""));c.stripNewlines&&(a=a.replace(/\n/g," "));c.decodeEntities&&(t.innerHTML=a,a=t.value);return a},a=b.columns(c.columns).indexes().map(function(a){var d=b.column(a).header();return c.format.header(d.innerHTML,a,d)}).toArray(),g=b.table().footer()?b.columns(c.columns).indexes().map(function(a){var d=b.column(a).footer();return c.format.footer(d?d.innerHTML:"",a,d)}).toArray():null,h=b.rows(c.rows,c.modifier).indexes().toArray(),f=b.cells(h,c.columns),h=f.render(c.orthogonal).toArray(),f=f.nodes().toArray(),j=a.length,k=0<j?h.length/j:0,m=Array(k),l=0,n=0;n<k;n++){for(var o=Array(j),q=0;q<j;q++)o[q]=c.format.body(h[l],n,q,f[l]),l++;m[n]=o}return{header:a,footer:g,body:m}}});var t=d("<textarea/>")[0];d.fn.dataTable.Buttons=m;d.fn.DataTable.Buttons=m;d(o).on("init.dt plugin-init.dt",function(a,b){if("dt"===a.namespace){var c=b.oInit.buttons||i.defaults.buttons;c&&!b._buttons&&(new m(b,c)).container()}});i.ext.feature.push({fnInit:function(a){var a=new i.Api(a),b=a.init().buttons||i.defaults.buttons;return(new m(a,b)).container()},cFeature:"B"});return m});(function(i){"function"===typeof define&&define.amd?define(["jquery","datatables.net","datatables.net-buttons"],function(g){return i(g,window,document)}):"object"===typeof exports?module.exports=function(g,l,r,s){g||(g=window);if(!l||!l.fn.dataTable)l=require("datatables.net")(g,l).$;l.fn.dataTable.Buttons||require("datatables.net-buttons")(g,l);return i(l,g,g.document,r,s)}:i(jQuery,window,document)})(function(i,g,l,r,s,o){function z(a,c){t===o&&(t=-1===x.serializeToString(i.parseXML(A["xl/worksheets/sheet1.xml"])).indexOf("xmlns:r"));i.each(c,function(c,b){if(i.isPlainObject(b)){var e=a.folder(c);z(e,b)}else{if(t){var e=b.childNodes[0],h,f,u=[];for(h=e.attributes.length-1;0<=h;h--){f=e.attributes[h].nodeName;var m=e.attributes[h].nodeValue;-1!==f.indexOf(":")&&(u.push({name:f,value:m}),e.removeAttribute(f))}h=0;for(f=u.length;h<f;h++)m=b.createAttribute(u[h].name.replace(":","_dt_b_namespace_token_")),m.value=u[h].value,e.setAttributeNode(m)}e=x.serializeToString(b);t&&(-1===e.indexOf("<?xml")&&(e='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'+e),e=e.replace(/_dt_b_namespace_token_/g,":"));e=e.replace(/<([^<>]*?) xmlns=""([^<>]*?)>/g,"<$1 $2>");a.file(c,e)}})}function p(a,c,d){var b=a.createElement(c);d&&(d.attr&&i(b).attr(d.attr),d.children&&i.each(d.children,function(a,c){b.appendChild(c)}),d.text&&b.appendChild(a.createTextNode(d.text)));return b}function I(a,c){var d=a.header[c].length,b;a.footer&&a.footer[c].length>d&&(d=a.footer[c].length);for(var e=0,h=a.body.length;e<h;e++)if(b=a.body[e][c],b=null!==b&&b!==o?b.toString():"",-1!==b.indexOf("\n")?(b=b.split("\n"),b.sort(function(a,b){return b.length-a.length}),b=b[0].length):b=b.length,b>d&&(d=b),40<d)return 52;d*=1.3;return 6<d?d:6}var n=i.fn.dataTable,q;var j="undefined"!==typeof self&&self||"undefined"!==typeof g&&g||this.content;if("undefined"===typeof j||"undefined"!==typeof navigator&&/MSIE [1-9]\./.test(navigator.userAgent))q=void 0;else{var v=j.document.createElementNS("http://www.w3.org/1999/xhtml","a"),J="download"in v,K=/constructor/i.test(j.HTMLElement)||j.safari,B=/CriOS\/[\d]+/.test(navigator.userAgent),L=function(a){(j.setImmediate||j.setTimeout)(function(){throw a},0)},C=function(a){setTimeout(function(){"string"===typeof a?(j.URL||j.webkitURL||j).revokeObjectURL(a):a.remove()},4E4)},D=function(a){return/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(a.type)?new Blob([String.fromCharCode(65279),a],{type:a.type}):a},E=function(a,c,d){d||(a=D(a));var b=this,d="application/octet-stream"===a.type,e,h=function(){for(var a=["writestart","progress","write","writeend"],a=[].concat(a),c=a.length;c--;){var d=b["on"+a[c]];if("function"===typeof d)try{d.call(b,b)}catch(e){L(e)}}};b.readyState=b.INIT;if(J)e=(j.URL||j.webkitURL||j).createObjectURL(a),setTimeout(function(){v.href=e;v.download=c;var a=new MouseEvent("click");v.dispatchEvent(a);h();C(e);b.readyState=b.DONE});else if((B||d&&K)&&j.FileReader){var f=new FileReader;f.onloadend=function(){var a=B?f.result:f.result.replace(/^data:[^;]*;/,"data:attachment/file;");j.open(a,"_blank")||(j.location.href=a);b.readyState=b.DONE;h()};f.readAsDataURL(a);b.readyState=b.INIT}else e||(e=(j.URL||j.webkitURL||j).createObjectURL(a)),d?j.location.href=e:j.open(e,"_blank")||(j.location.href=e),b.readyState=b.DONE,h(),C(e)},k=E.prototype;"undefined"!==typeof navigator&&navigator.msSaveOrOpenBlob?q=function(a,c,d){c=c||a.name||"download";d||(a=D(a));return navigator.msSaveOrOpenBlob(a,c)}:(k.abort=function(){},k.readyState=k.INIT=0,k.WRITING=1,k.DONE=2,k.error=k.onwritestart=k.onprogress=k.onwrite=k.onabort=k.onerror=k.onwriteend=null,q=function(a,c,d){return new E(a,c||a.name||"download",d)})}n.fileSave=q;var w=function(a,c){var d="*"===a.filename&&"*"!==a.title&&a.title!==o?a.title:a.filename;"function"===typeof d&&(d=d());-1!==d.indexOf("*")&&(d=i.trim(d.replace("*",i("title").text())));d=d.replace(/[^a-zA-Z0-9_\u00A1-\uFFFF\.,\-_ !\(\)]/g,"");return c===o||!0===c?d+a.extension:d},M=function(a){var c="Sheet1";a.sheetName&&(c=a.sheetName.replace(/[\[\]\*\/\\\?\:]/g,""));return c},N=function(a){a=a.title;"function"===typeof a&&(a=a());return-1!==a.indexOf("*")?a.replace("*",i("title").text()||"Exported data"):a},F=function(a,c){for(var d=c.newline?c.newline:navigator.userAgent.match(/Windows/)?"\r\n":"\n",b=a.buttons.exportData(c.exportOptions),e=c.fieldBoundary,h=c.fieldSeparator,f=RegExp(e,"g"),i=c.escapeChar!==o?c.escapeChar:"\\",m=function(a){for(var b="",c=0,d=a.length;c<d;c++)0<c&&(b+=h),b+=e?e+(""+a[c]).replace(f,i+e)+e:a[c];return b},j=c.header?m(b.header)+d:"",g=c.footer&&b.footer?d+m(b.footer):"",l=[],y=0,O=b.body.length;y<O;y++)l.push(m(b.body[y]));return{str:j+l.join(d)+g,rows:l.length}},G=function(){if(!(-1!==navigator.userAgent.indexOf("Safari")&&-1===navigator.userAgent.indexOf("Chrome")&&-1===navigator.userAgent.indexOf("Opera")))return!1;var a=navigator.userAgent.match(/AppleWebKit\/(\d+\.\d+)/);return a&&1<a.length&&603.1>1*a[1]?!0:!1};try{var x=new XMLSerializer,t}catch(P){}var A={"_rels/.rels":'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="xl/workbook.xml"/></Relationships>',"xl/_rels/workbook.xml.rels":'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Target="worksheets/sheet1.xml"/><Relationship Id="rId2" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Target="styles.xml"/></Relationships>',"[Content_Types].xml":'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types"><Default Extension="xml" ContentType="application/xml" /><Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml" /><Default Extension="jpeg" ContentType="image/jpeg" /><Override PartName="/xl/workbook.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml" /><Override PartName="/xl/worksheets/sheet1.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml" /><Override PartName="/xl/styles.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml" /></Types>',"xl/workbook.xml":'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><workbook xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"><fileVersion appName="xl" lastEdited="5" lowestEdited="5" rupBuild="24816"/><workbookPr showInkAnnotation="0" autoCompressPictures="0"/><bookViews><workbookView xWindow="0" yWindow="0" windowWidth="25600" windowHeight="19020" tabRatio="500"/></bookViews><sheets><sheet name="" sheetId="1" r:id="rId1"/></sheets></workbook>',"xl/worksheets/sheet1.xml":'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x14ac" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac"><sheetData/></worksheet>',"xl/styles.xml":'<?xml version="1.0" encoding="UTF-8"?><styleSheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x14ac" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac"><numFmts count="6"><numFmt numFmtId="164" formatCode="#,##0.00_- [$-45C]"/><numFmt numFmtId="165" formatCode="&quot;£&quot;#,##0.00"/><numFmt numFmtId="166" formatCode="[$€-2] #,##0.00"/><numFmt numFmtId="167" formatCode="0.0%"/><numFmt numFmtId="168" formatCode="#,##0;(#,##0)"/><numFmt numFmtId="169" formatCode="#,##0.00;(#,##0.00)"/></numFmts><fonts count="5" x14ac:knownFonts="1"><font><sz val="11" /><name val="Calibri" /></font><font><sz val="11" /><name val="Calibri" /><color rgb="FFFFFFFF" /></font><font><sz val="11" /><name val="Calibri" /><b /></font><font><sz val="11" /><name val="Calibri" /><i /></font><font><sz val="11" /><name val="Calibri" /><u /></font></fonts><fills count="6"><fill><patternFill patternType="none" /></fill><fill/><fill><patternFill patternType="solid"><fgColor rgb="FFD9D9D9" /><bgColor indexed="64" /></patternFill></fill><fill><patternFill patternType="solid"><fgColor rgb="FFD99795" /><bgColor indexed="64" /></patternFill></fill><fill><patternFill patternType="solid"><fgColor rgb="ffc6efce" /><bgColor indexed="64" /></patternFill></fill><fill><patternFill patternType="solid"><fgColor rgb="ffc6cfef" /><bgColor indexed="64" /></patternFill></fill></fills><borders count="2"><border><left /><right /><top /><bottom /><diagonal /></border><border diagonalUp="false" diagonalDown="false"><left style="thin"><color auto="1" /></left><right style="thin"><color auto="1" /></right><top style="thin"><color auto="1" /></top><bottom style="thin"><color auto="1" /></bottom><diagonal /></border></borders><cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0" /></cellStyleXfs><cellXfs count="67"><xf numFmtId="0" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="2" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="2" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="2" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="2" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="2" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="3" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="3" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="3" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="3" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="3" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="4" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="4" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="4" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="4" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="4" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="5" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="5" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="5" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="5" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="5" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="0" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="0" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="0" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="0" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="0" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="2" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="2" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="2" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="2" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="2" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="3" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="3" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="3" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="3" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="3" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="4" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="4" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="4" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="4" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="4" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="5" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="5" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="5" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="5" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="5" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyAlignment="1"><alignment horizontal="left"/></xf><xf numFmtId="0" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyAlignment="1"><alignment horizontal="center"/></xf><xf numFmtId="0" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyAlignment="1"><alignment horizontal="right"/></xf><xf numFmtId="0" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyAlignment="1"><alignment horizontal="fill"/></xf><xf numFmtId="0" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyAlignment="1"><alignment textRotation="90"/></xf><xf numFmtId="0" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyAlignment="1"><alignment wrapText="1"/></xf><xf numFmtId="9" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="164" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="165" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="166" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="167" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="168" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="169" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="3" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="4" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="1" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="2" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/></cellXfs><cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0" /></cellStyles><dxfs count="0" /><tableStyles count="0" defaultTableStyle="TableStyleMedium9" defaultPivotStyle="PivotStyleMedium4" /></styleSheet>'},H=[{match:/^\-?\d+\.\d%#x2F;,style:60,fmt:function(a){return a/100}},{match:/^\-?\d+\.?\d*%#x2F;,style:56,fmt:function(a){return a/100}},{match:/^\-?\$[\d,]+.?\d*#x2F;,style:57},{match:/^\-?£[\d,]+.?\d*#x2F;,style:58},{match:/^\-?€[\d,]+.?\d*#x2F;,style:59},{match:/^\-?\d+#x2F;,style:65},{match:/^\-?\d+\.\d{2}#x2F;,style:66},{match:/^\([\d,]+\)#x2F;,style:61,fmt:function(a){return-1*a.replace(/[\(\)]/g,"")}},{match:/^\([\d,]+\.\d{2}\)#x2F;,style:62,fmt:function(a){return-1*a.replace(/[\(\)]/g,"")}},{match:/^\-?[\d,]+#x2F;,style:63},{match:/^\-?[\d,]+\.\d{2}#x2F;,style:64}];n.ext.buttons.copyHtml5={className:"buttons-copy buttons-html5",text:function(a){return a.i18n("buttons.copy","Copy")},action:function(a,c,d,b){this.processing(!0);var e=this,a=F(c,b),h=a.str,d=i("<div/>").css({height:1,width:1,overflow:"hidden",position:"fixed",top:0,left:0});b.customize&&(h=b.customize(h,b));b=i("<textarea readonly/>").val(h).appendTo(d);if(l.queryCommandSupported("copy")){d.appendTo(c.table().container());b[0].focus();b[0].select();try{var f=l.execCommand("copy");d.remove();if(f){c.buttons.info(c.i18n("buttons.copyTitle","Copy to clipboard"),c.i18n("buttons.copySuccess",{1:"Copied one row to clipboard",_:"Copied %d rows to clipboard"},a.rows),2E3);this.processing(!1);return}}catch(j){}}f=i("<span>"+c.i18n("buttons.copyKeys","Press <i>ctrl</i> or <i>⌘</i> + <i>C</i> to copy the table data<br>to your system clipboard.<br><br>To cancel, click this message or press escape.")+"</span>").append(d);c.buttons.info(c.i18n("buttons.copyTitle","Copy to clipboard"),f,0);b[0].focus();b[0].select();var m=i(f).closest(".dt-button-info"),g=function(){m.off("click.buttons-copy");i(l).off(".buttons-copy");c.buttons.info(!1)};m.on("click.buttons-copy",g);i(l).on("keydown.buttons-copy",function(a){27===a.keyCode&&(g(),e.processing(!1))}).on("copy.buttons-copy cut.buttons-copy",function(){g();e.processing(!1)})},exportOptions:{},fieldSeparator:"\t",fieldBoundary:"",header:!0,footer:!1};n.ext.buttons.csvHtml5={bom:!1,className:"buttons-csv buttons-html5",available:function(){return g.FileReader!==o&&g.Blob},text:function(a){return a.i18n("buttons.csv","CSV")},action:function(a,c,d,b){this.processing(!0);a=F(c,b).str;c=b.charset;b.customize&&(a=b.customize(a,b));!1!==c?(c||(c=l.characterSet||l.charset),c&&(c=";charset="+c)):c="";b.bom&&(a=""+a);q(new Blob([a],{type:"text/csv"+c}),w(b),!0);this.processing(!1)},filename:"*",extension:".csv",exportOptions:{},fieldSeparator:",",fieldBoundary:'"',escapeChar:'"',charset:null,header:!0,footer:!1};n.ext.buttons.excelHtml5={className:"buttons-excel buttons-html5",available:function(){return g.FileReader!==o&&(r||g.JSZip)!==o&&!G()&&x},text:function(a){return a.i18n("buttons.excel","Excel")},action:function(a,c,d,b){this.processing(!0);var e=this,h=0,a=function(a){return i.parseXML(A[a])},f=a("xl/worksheets/sheet1.xml"),j=f.getElementsByTagName("sheetData")[0],a={_rels:{".rels":a("_rels/.rels")},xl:{_rels:{"workbook.xml.rels":a("xl/_rels/workbook.xml.rels")},"workbook.xml":a("xl/workbook.xml"),"styles.xml":a("xl/styles.xml"),worksheets:{"sheet1.xml":f}},"[Content_Types].xml":a("[Content_Types].xml")},c=c.buttons.exportData(b.exportOptions),m,l,d=function(a){m=h+1;l=p(f,"row",{attr:{r:m}});for(var b=0,c=a.length;b<c;b++){for(var d=b,e="";0<=d;)e=String.fromCharCode(d%26+65)+e,d=Math.floor(d/26)-1;var d=e+""+m,g=null;if(!(null===a[b]||a[b]===o||""===a[b])){a[b]=i.trim(a[b]);for(var k=0,n=H.length;k<n;k++)if(e=H[k],a[b].match&&!a[b].match(/^0\d+/)&&a[b].match(e.match)){g=a[b].replace(/[^\d\.\-]/g,"");e.fmt&&(g=e.fmt(g));g=p(f,"c",{attr:{r:d,s:e.style},children:[p(f,"v",{text:g})]});break}g||("number"===typeof a[b]||a[b].match&&a[b].match(/^-?\d+(\.\d+)?#x2F;)&&!a[b].match(/^0\d+/)?g=p(f,"c",{attr:{t:"n",r:d},children:[p(f,"v",{text:a[b]})]}):(e=!a[b].replace?a[b]:a[b].replace(/[\x00-\x09\x0B\x0C\x0E-\x1F\x7F-\x9F]/g,""),g=p(f,"c",{attr:{t:"inlineStr",r:d},children:{row:p(f,"is",{children:{row:p(f,"t",{text:e})}})}})));l.appendChild(g)}}j.appendChild(l);h++};i("sheets sheet",a.xl["workbook.xml"]).attr("name",M(b));b.customizeData&&b.customizeData(c);b.header&&(d(c.header,h),i("row c",f).attr("s","2"));for(var k=0,n=c.body.length;k<n;k++)d(c.body[k],h);b.footer&&c.footer&&(d(c.footer,h),i("row:last c",f).attr("s","2"));d=p(f,"cols");i("worksheet",f).prepend(d);k=0;for(n=c.header.length;k<n;k++)d.appendChild(p(f,"col",{attr:{min:k+1,max:k+1,width:I(c,k),customWidth:1}}));b.customize&&b.customize(a);c=new(r||g.JSZip);d={type:"blob",mimeType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"};z(c,a);c.generateAsync?c.generateAsync(d).then(function(a){q(a,w(b));e.processing(!1)}):(q(c.generate(d),w(b)),this.processing(!1))},filename:"*",extension:".xlsx",exportOptions:{},header:!0,footer:!1};n.ext.buttons.pdfHtml5={className:"buttons-pdf buttons-html5",available:function(){return g.FileReader!==o&&(s||g.pdfMake)},text:function(a){return a.i18n("buttons.pdf","PDF")},action:function(a,c,d,b){this.processing(!0);var e=this,a=c.buttons.exportData(b.exportOptions),h=[];b.header&&h.push(i.map(a.header,function(a){return{text:"string"===typeof a?a:a+"",style:"tableHeader"}}));for(var f=0,j=a.body.length;f<j;f++)h.push(i.map(a.body[f],function(a){return{text:"string"===typeof a?a:a+"",style:f%2?"tableBodyEven":"tableBodyOdd"}}));b.footer&&a.footer&&h.push(i.map(a.footer,function(a){return{text:"string"===typeof a?a:a+"",style:"tableFooter"}}));a={pageSize:b.pageSize,pageOrientation:b.orientation,content:[{table:{headerRows:1,body:h},layout:"noBorders"}],styles:{tableHeader:{bold:!0,fontSize:11,color:"white",fillColor:"#2d4154",alignment:"center"},tableBodyEven:{},tableBodyOdd:{fillColor:"#f3f3f3"},tableFooter:{bold:!0,fontSize:11,color:"white",fillColor:"#2d4154"},title:{alignment:"center",fontSize:15},message:{}},defaultStyle:{fontSize:10}};b.message&&a.content.unshift({text:"function"==typeof b.message?b.message(c,d,b):b.message,style:"message",margin:[0,0,0,12]});b.title&&a.content.unshift({text:N(b,!1),style:"title",margin:[0,0,0,12]});b.customize&&b.customize(a,b);c=(s||g.pdfMake).createPdf(a);"open"===b.download&&!G()?(c.open(),this.processing(!1)):c.getBuffer(function(a){a=new Blob([a],{type:"application/pdf"});q(a,w(b));e.processing(!1)})},title:"*",filename:"*",extension:".pdf",exportOptions:{},orientation:"portrait",pageSize:"A4",header:!0,footer:!1,message:null,customize:null,download:"download"};return n.Buttons});(function(d){"function"===typeof define&&define.amd?define(["jquery","datatables.net","datatables.net-buttons"],function(f){return d(f,window,document)}):"object"===typeof exports?module.exports=function(f,b){f||(f=window);if(!b||!b.fn.dataTable)b=require("datatables.net")(f,b).$;b.fn.dataTable.Buttons||require("datatables.net-buttons")(f,b);return d(b,f,f.document)}:d(jQuery,window,document)})(function(d,f,b){var i=d.fn.dataTable,h=b.createElement("a"),m=function(a){h.href=a;a=h.host;-1===a.indexOf("/")&&0!==h.pathname.indexOf("/")&&(a+="/");return h.protocol+"//"+a+h.pathname+h.search};i.ext.buttons.print={className:"buttons-print",text:function(a){return a.i18n("buttons.print","Print")},action:function(a,b,h,e){var c=b.buttons.exportData(e.exportOptions),k=function(a,c){for(var b="<tr>",d=0,e=a.length;d<e;d++)b+="<"+c+">"+a[d]+"</"+c+">";return b+"</tr>"},a='<table class="'+b.table().node().className+'">';e.header&&(a+="<thead>"+k(c.header,"th")+"</thead>");for(var a=a+"<tbody>",l=0,i=c.body.length;l<i;l++)a+=k(c.body[l],"td");a+="</tbody>";e.footer&&c.footer&&(a+="<tfoot>"+k(c.footer,"th")+"</tfoot>");var g=f.open("",""),c=e.title;"function"===typeof c&&(c=c());-1!==c.indexOf("*")&&(c=c.replace("*",d("title").text()));g.document.close();var j="<title>"+c+"</title>";d("style, link").each(function(){var a=j,b=d(this).clone()[0];"link"===b.nodeName.toLowerCase()&&(b.href=m(b.href));j=a+b.outerHTML});try{g.document.head.innerHTML=j}catch(n){d(g.document.head).html(j)}g.document.body.innerHTML="<h1>"+c+"</h1><div>"+("function"===typeof e.message?e.message(b,h,e):e.message)+"</div>"+a;d(g.document.body).addClass("dt-print-view");d("img",g.document.body).each(function(a,b){b.setAttribute("src",m(b.getAttribute("src")))});e.customize&&e.customize(g);setTimeout(function(){e.autoPrint&&(g.print(),g.close())},250)},title:"*",message:"",exportOptions:{},header:!0,footer:!1,autoPrint:!0,customize:null};return i.Buttons});(function(g){"function"===typeof define&&define.amd?define(["jquery","datatables.net","datatables.net-buttons"],function(d){return g(d,window,document)}):"object"===typeof exports?module.exports=function(d,e){d||(d=window);if(!e||!e.fn.dataTable)e=require("datatables.net")(d,e).$;e.fn.dataTable.Buttons||require("datatables.net-buttons")(d,e);return g(e,d,d.document)}:g(jQuery,window,document)})(function(g,d,e,h){d=g.fn.dataTable;g.extend(d.ext.buttons,{colvis:function(b,a){return{extend:"collection",text:function(a){return a.i18n("buttons.colvis","Column visibility")},className:"buttons-colvis",buttons:[{extend:"columnsToggle",columns:a.columns,columnText:a.columnText}]}},columnsToggle:function(b,a){return b.columns(a.columns).indexes().map(function(b){return{extend:"columnToggle",columns:b,columnText:a.columnText}}).toArray()},columnToggle:function(b,a){return{extend:"columnVisibility",columns:a.columns,columnText:a.columnText}},columnsVisibility:function(b,a){return b.columns(a.columns).indexes().map(function(b){return{extend:"columnVisibility",columns:b,visibility:a.visibility,columnText:a.columnText}}).toArray()},columnVisibility:{columns:h,text:function(b,a,c){return c._columnText(b,c)},className:"buttons-columnVisibility",action:function(b,a,c,f){b=a.columns(f.columns);a=b.visible();b.visible(f.visibility!==h?f.visibility:!(a.length&&a[0]))},init:function(b,a,c){var f=this;b.on("column-visibility.dt"+c.namespace,function(a,d){d.bDestroying||f.active(b.column(c.columns).visible())}).on("column-reorder.dt"+c.namespace,function(a,d,e){1===b.columns(c.columns).count()&&("number"===typeof c.columns&&(c.columns=e.mapping[c.columns]),a=b.column(c.columns),f.text(c._columnText(b,c)),f.active(a.visible()))});this.active(b.column(c.columns).visible())},destroy:function(b,a,c){b.off("column-visibility.dt"+c.namespace).off("column-reorder.dt"+c.namespace)},_columnText:function(b,a){var c=b.column(a.columns).index(),f=b.settings()[0].aoColumns[c].sTitle.replace(/\n/g," ").replace(/<.*?>/g,"").replace(/^\s+|\s+#x2F;g,"");return a.columnText?a.columnText(b,c,f):f}},colvisRestore:{className:"buttons-colvisRestore",text:function(b){return b.i18n("buttons.colvisRestore","Restore visibility")},init:function(b,a,c){c._visOriginal=b.columns().indexes().map(function(a){return b.column(a).visible()}).toArray()},action:function(b,a,c,d){a.columns().every(function(b){b=a.colReorder&&a.colReorder.transpose?a.colReorder.transpose(b,"toOriginal"):b;this.visible(d._visOriginal[b])})}},colvisGroup:{className:"buttons-colvisGroup",action:function(b,a,c,d){a.columns(d.show).visible(!0,!1);a.columns(d.hide).visible(!1,!1);a.columns.adjust()},show:[],hide:[]}});return d.Buttons});(function($){"use strict";if(!$.browser){$.browser={};$.browser.mozilla=/mozilla/.test(navigator.userAgent.toLowerCase())&&!/webkit/.test(navigator.userAgent.toLowerCase());$.browser.webkit=/webkit/.test(navigator.userAgent.toLowerCase());$.browser.opera=/opera/.test(navigator.userAgent.toLowerCase());$.browser.msie=/msie/.test(navigator.userAgent.toLowerCase())}
89
+ var methods={destroy:function(){$(this).unbind(".maskMoney");if($.browser.msie){this.onpaste=null}
90
+ return this},applyMask:function(value){var $input=$(this);var settings=$input.data("settings");return maskValue(value,settings)},mask:function(value){return this.each(function(){var $this=$(this);if(typeof value==="number"){$this.val(value)}
91
+ return $this.trigger("mask")})},unmasked:function(){return this.map(function(){var value=($(this).val()||"0"),isNegative=value.indexOf("-")!==-1,decimalPart;$(value.split(/\D/).reverse()).each(function(index,element){if(element){decimalPart=element;return!1}});value=value.replace(/\D/g,"");value=value.replace(new RegExp(decimalPart+"quot;),"."+decimalPart);if(isNegative){value="-"+value}
92
+ return parseFloat(value)})},init:function(parameters){parameters=$.extend({prefix:"",suffix:"",affixesStay:!0,thousands:",",decimal:".",precision:2,allowZero:!1,allowNegative:!1,doubleClickSelection:!0,allowEmpty:!1},parameters);return this.each(function(){var $input=$(this),settings,onFocusValue;settings=$.extend({},parameters);settings=$.extend(settings,$input.data());$input.data("settings",settings);function getInputSelection(){var el=$input.get(0),start=0,end=0,normalizedValue,range,textInputRange,len,endRange;if(typeof el.selectionStart==="number"&&typeof el.selectionEnd==="number"){start=el.selectionStart;end=el.selectionEnd}else{range=document.selection.createRange();if(range&&range.parentElement()===el){len=el.value.length;normalizedValue=el.value.replace(/\r\n/g,"\n");textInputRange=el.createTextRange();textInputRange.moveToBookmark(range.getBookmark());endRange=el.createTextRange();endRange.collapse(!1);if(textInputRange.compareEndPoints("StartToEnd",endRange)>-1){start=end=len}else{start=-textInputRange.moveStart("character",-len);start+=normalizedValue.slice(0,start).split("\n").length-1;if(textInputRange.compareEndPoints("EndToEnd",endRange)>-1){end=len}else{end=-textInputRange.moveEnd("character",-len);end+=normalizedValue.slice(0,end).split("\n").length-1}}}}
93
+ return{start:start,end:end}}
94
+ function canInputMoreNumbers(){var haventReachedMaxLength=!($input.val().length>=$input.attr("maxlength")&&$input.attr("maxlength")>=0),selection=getInputSelection(),start=selection.start,end=selection.end,haveNumberSelected=(selection.start!==selection.end&&$input.val().substring(start,end).match(/\d/))?!0:!1,startWithZero=($input.val().substring(0,1)==="0");return haventReachedMaxLength||haveNumberSelected||startWithZero}
95
+ function setCursorPosition(pos){if(!!settings.formatOnBlur){return}
96
+ $input.each(function(index,elem){if(elem.setSelectionRange){elem.focus();elem.setSelectionRange(pos,pos)}else if(elem.createTextRange){var range=elem.createTextRange();range.collapse(!0);range.moveEnd("character",pos);range.moveStart("character",pos);range.select()}})}
97
+ function maskAndPosition(startPos){var originalLen=$input.val().length,newLen;$input.val(maskValue($input.val(),settings));newLen=$input.val().length;if(!settings.reverse){startPos=startPos-(originalLen-newLen)}
98
+ setCursorPosition(startPos)}
99
+ function mask(){var value=$input.val();if(settings.allowEmpty&&value===""){return}
100
+ if(settings.precision>0&&value.indexOf(settings.decimal)<0){value+=settings.decimal+new Array(settings.precision+1).join(0)}
101
+ $input.val(maskValue(value,settings))}
102
+ function changeSign(){var inputValue=$input.val();if(settings.allowNegative){if(inputValue!==""&&inputValue.charAt(0)==="-"){return inputValue.replace("-","")}else{return"-"+inputValue}}else{return inputValue}}
103
+ function preventDefault(e){if(e.preventDefault){e.preventDefault()}else{e.returnValue=!1}}
104
+ function keypressEvent(e){e=e||window.event;var key=e.which||e.charCode||e.keyCode,decimalKeyCode=settings.decimal.charCodeAt(0);if(key===undefined){return!1}
105
+ if((key<48||key>57)&&(key!==decimalKeyCode||!settings.reverse)){return handleAllKeysExceptNumericalDigits(key,e)}else if(!canInputMoreNumbers()){return!1}else{if(key===decimalKeyCode&&shouldPreventDecimalKey()){return!1}
106
+ if(settings.formatOnBlur){return!0}
107
+ preventDefault(e);applyMask(e);return!1}}
108
+ function shouldPreventDecimalKey(){if(isAllTextSelected()){return!1}
109
+ return alreadyContainsDecimal()}
110
+ function isAllTextSelected(){var length=$input.val().length;var selection=getInputSelection();return selection.start===0&&selection.end===length}
111
+ function alreadyContainsDecimal(){return $input.val().indexOf(settings.decimal)>-1}
112
+ function applyMask(e){e=e||window.event;var key=e.which||e.charCode||e.keyCode,keyPressedChar="",selection,startPos,endPos,value;if(key>=48&&key<=57){keyPressedChar=String.fromCharCode(key)}
113
+ selection=getInputSelection();startPos=selection.start;endPos=selection.end;value=$input.val();$input.val(value.substring(0,startPos)+keyPressedChar+value.substring(endPos,value.length));maskAndPosition(startPos+1)}
114
+ function handleAllKeysExceptNumericalDigits(key,e){if(key===45){$input.val(changeSign());return!1}else if(key===43){$input.val($input.val().replace("-",""));return!1}else if(key===13||key===9){return!0}else if($.browser.mozilla&&(key===37||key===39)&&e.charCode===0){return!0}else{preventDefault(e);return!0}}
115
+ function keydownEvent(e){e=e||window.event;var key=e.which||e.charCode||e.keyCode,selection,startPos,endPos,value,lastNumber;if(key===undefined){return!1}
116
+ selection=getInputSelection();startPos=selection.start;endPos=selection.end;if(key===8||key===46||key===63272){preventDefault(e);value=$input.val();if(startPos===endPos){if(key===8){if(settings.suffix===""){startPos-=1}else{lastNumber=value.split("").reverse().join("").search(/\d/);startPos=value.length-lastNumber-1;endPos=startPos+1}}else{endPos+=1}}
117
+ $input.val(value.substring(0,startPos)+value.substring(endPos,value.length));maskAndPosition(startPos);return!1}else if(key===9){return!0}else{return!0}}
118
+ function focusEvent(){onFocusValue=$input.val();mask();var input=$input.get(0),textRange;if(!!settings.selectAllOnFocus){input.select()}else if(input.createTextRange){textRange=input.createTextRange();textRange.collapse(!1);textRange.select()}}
119
+ function cutPasteEvent(){setTimeout(function(){mask()},0)}
120
+ function getDefaultMask(){var n=parseFloat("0")/Math.pow(10,settings.precision);return(n.toFixed(settings.precision)).replace(new RegExp("\\.","g"),settings.decimal)}
121
+ function blurEvent(e){if($.browser.msie){keypressEvent(e)}
122
+ if(!!settings.formatOnBlur&&$input.val()!==onFocusValue){applyMask(e)}
123
+ if($input.val()===""&&settings.allowEmpty){$input.val("")}else if($input.val()===""||$input.val()===setSymbol(getDefaultMask(),settings)){if(!settings.allowZero){$input.val("")}else if(!settings.affixesStay){$input.val(getDefaultMask())}else{$input.val(setSymbol(getDefaultMask(),settings))}}else{if(!settings.affixesStay){var newValue=$input.val().replace(settings.prefix,"").replace(settings.suffix,"");$input.val(newValue)}}
124
+ if($input.val()!==onFocusValue){$input.change()}}
125
+ function clickEvent(){var input=$input.get(0),length;if(!!settings.selectAllOnFocus){return}else if(input.setSelectionRange){length=$input.val().length;input.setSelectionRange(length,length)}else{$input.val($input.val())}}
126
+ function doubleClickEvent(){var input=$input.get(0),start,length;if(input.setSelectionRange){length=$input.val().length;start=settings.doubleClickSelection?0:length;input.setSelectionRange(start,length)}else{$input.val($input.val())}}
127
+ $input.unbind(".maskMoney");$input.bind("keypress.maskMoney",keypressEvent);$input.bind("keydown.maskMoney",keydownEvent);$input.bind("blur.maskMoney",blurEvent);$input.bind("focus.maskMoney",focusEvent);$input.bind("click.maskMoney",clickEvent);$input.bind("dblclick.maskMoney",doubleClickEvent);$input.bind("cut.maskMoney",cutPasteEvent);$input.bind("paste.maskMoney",cutPasteEvent);$input.bind("mask.maskMoney",mask)})}};function setSymbol(value,settings){var operator="";if(value.indexOf("-")>-1){value=value.replace("-","");operator="-"}
128
+ if(value.indexOf(settings.prefix)>-1){value=value.replace(settings.prefix,"")}
129
+ if(value.indexOf(settings.suffix)>-1){value=value.replace(settings.suffix,"")}
130
+ return operator+settings.prefix+value+settings.suffix}
131
+ function maskValue(value,settings){if(settings.allowEmpty&&value===""){return""}
132
+ if(!!settings.reverse){return maskValueReverse(value,settings)}
133
+ return maskValueStandard(value,settings)}
134
+ function maskValueStandard(value,settings){var negative=(value.indexOf("-")>-1&&settings.allowNegative)?"-":"",onlyNumbers=value.replace(/[^0-9]/g,""),integerPart=onlyNumbers.slice(0,onlyNumbers.length-settings.precision),newValue,decimalPart,leadingZeros;newValue=buildIntegerPart(integerPart,negative,settings);if(settings.precision>0){decimalPart=onlyNumbers.slice(onlyNumbers.length-settings.precision);leadingZeros=new Array((settings.precision+1)-decimalPart.length).join(0);newValue+=settings.decimal+leadingZeros+decimalPart}
135
+ return setSymbol(newValue,settings)}
136
+ function maskValueReverse(value,settings){var negative=(value.indexOf("-")>-1&&settings.allowNegative)?"-":"",valueWithoutSymbol=value.replace(settings.prefix,"").replace(settings.suffix,""),integerPart=valueWithoutSymbol.split(settings.decimal)[0],newValue,decimalPart="";if(integerPart===""){integerPart="0"}
137
+ newValue=buildIntegerPart(integerPart,negative,settings);if(settings.precision>0){var arr=valueWithoutSymbol.split(settings.decimal);if(arr.length>1){decimalPart=arr[1]}
138
+ newValue+=settings.decimal+decimalPart;var rounded=Number.parseFloat((integerPart+"."+decimalPart)).toFixed(settings.precision);var roundedDecimalPart=rounded.toString().split(settings.decimal)[1];newValue=newValue.split(settings.decimal)[0]+"."+roundedDecimalPart}
139
+ return setSymbol(newValue,settings)}
140
+ function buildIntegerPart(integerPart,negative,settings){integerPart=integerPart.replace(/^0*/g,"");integerPart=integerPart.replace(/\B(?=(\d{3})+(?!\d))/g,settings.thousands);if(integerPart===""){integerPart="0"}
141
+ return negative+integerPart}
142
+ $.fn.maskMoney=function(method){if(methods[method]){return methods[method].apply(this,Array.prototype.slice.call(arguments,1))}else if(typeof method==="object"||!method){return methods.init.apply(this,arguments)}else{$.error("Method "+method+" does not exist on jQuery.maskMoney")}}})(window.jQuery||window.Zepto);jQuery(document).ready(function($){var wdtDateFormat=getMomentWdtDateFormat();var wdtTimeFormat=getMomentWdtTimeFormat();jQuery('.wdt-preload-layer').animateFadeOut();if(typeof wpdatatables_frontend_strings!=='undefined'){$.fn.DataTable.defaults.oLanguage.sInfo=wpdatatables_frontend_strings.sInfo;$.fn.DataTable.defaults.oLanguage.sSearch=wpdatatables_frontend_strings.sSearch;$.fn.DataTable.defaults.oLanguage.lengthMenu=wpdatatables_frontend_strings.lengthMenu;$.fn.DataTable.defaults.oLanguage.sEmptyTable=wpdatatables_frontend_strings.sEmptyTable;$.fn.DataTable.defaults.oLanguage.sInfoEmpty=wpdatatables_frontend_strings.sInfoEmpty;$.fn.DataTable.defaults.oLanguage.sInfoFiltered=wpdatatables_frontend_strings.sInfoFiltered;$.fn.DataTable.defaults.oLanguage.sInfoPostFix=wpdatatables_frontend_strings.sInfoPostFix;$.fn.DataTable.defaults.oLanguage.sInfoThousands=wpdatatables_frontend_strings.sInfoThousands;$.fn.DataTable.defaults.oLanguage.sLengthMenu=wpdatatables_frontend_strings.sLengthMenu;$.fn.DataTable.defaults.oLanguage.sProcessing=wpdatatables_frontend_strings.sProcessing;$.fn.DataTable.defaults.oLanguage.sZeroRecords=wpdatatables_frontend_strings.sZeroRecords;$.fn.DataTable.defaults.oLanguage.oPaginate=wpdatatables_frontend_strings.oPaginate;$.fn.DataTable.defaults.oLanguage.oAria=wpdatatables_frontend_strings.oAria}
143
+ if(typeof($.fn.dataTableExt)!=='undefined'){$.fn.dataTableExt.oApi.fnFilterClear=function(oSettings){oSettings.oPreviousSearch.sSearch="";if(typeof oSettings.aanFeatures.f!='undefined'){var n=oSettings.aanFeatures.f;for(var i=0,iLen=n.length;i<iLen;i++){$('input',n[i]).val('')}}
144
+ for(var i=0,iLen=oSettings.aoPreSearchCols.length;i<iLen;i++){oSettings.aoPreSearchCols[i].sSearch=""}
145
+ oSettings.oApi._fnReDraw(oSettings)};$.extend($.fn.dataTableExt.oSort,{"formatted-num-pre":function(a){if($(a).text()!=''){a=$(a).text()}
146
+ a=(a==="-"||a==="")?0:a.replace(/[^\d\-\.]/g,"");if(a!=-1&&a!=""){while(a.indexOf('.')!=-1){a=a.replace(".","")}
147
+ a=a.replace(',','.')}
148
+ return parseFloat(a)},"formatted-num-asc":function(a,b){return a-b},"formatted-num-desc":function(a,b){return b-a},"statuscol-pre":function(a){a=$(a).find('div.percents').text();return parseFloat(a)},"statuscol-asc":function(a,b){return a-b},"statuscol-desc":function(a,b){return b-a},"date-custom-pre":function(date){return wdtPrepareDate(date,wdtDateFormat,wdtTimeFormat)},"time-custom-pre":function(time){return wdtPrepareTime(time,wdtTimeFormat)}});$.fn.dataTableExt.oApi.fnGetColumnIndex=function(oSettings,sCol){var cols=oSettings.aoColumns;for(var x=0,xLen=cols.length;x<xLen;x++){if((typeof(cols[x].sTitle)=='string')&&(cols[x].sTitle.toLowerCase()==sCol.toLowerCase())){return x}}
149
+ return-1};$.fn.dataTableExt.aTypes.unshift(function(sData){"use strict";if(/^([0-2]?\d|3[0-1])-(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)-\d{4}/i.test(sData)){return'date-dd-mmm-yyyy'}
150
+ return null});$.fn.dataTableExt.oSort['date-dd-mmm-yyyy-asc']=function(a,b){"use strict";var ordA=wdtCustomDateDDMMMYYYYToOrd(a),ordB=wdtCustomDateDDMMMYYYYToOrd(b);return(ordA<ordB)?-1:((ordA>ordB)?1:0)};$.fn.dataTableExt.oSort['date-dd-mmm-yyyy-desc']=function(a,b){"use strict";var ordA=wdtCustomDateDDMMMYYYYToOrd(a),ordB=wdtCustomDateDDMMMYYYYToOrd(b);return(ordA<ordB)?1:((ordA>ordB)?-1:0)}}
151
+ $('body').on('focus','.wdt-datepicker',function(){$(this).datetimepicker({format:wdtDateFormat,showClear:!0,keepOpen:!0,useCurrent:!1}).off('dp.show').on('dp.show',function(){$(this).parent().find('div.bootstrap-datetimepicker-widget').addClass('wdt-datetimepicker-modal');if(!_.contains(['MM/Y','MMM Y','Y'],wdtDateFormat)){wdtAddDatePlaceholders($(this))}})});$('body').on('focus','.wdt-timepicker',function(){$(this).datetimepicker({format:wdtTimeFormat,showClear:!0,keepOpen:!0,useCurrent:!1}).off('dp.show').on('dp.show',function(){$(this).parent().find('div.bootstrap-datetimepicker-widget').addClass('wdt-datetimepicker-modal')})});$('body').on('focus','.wdt-datetimepicker',function(){$(this).datetimepicker({format:wdtDateFormat+' '+wdtTimeFormat,showClear:!0,keepOpen:!0,useCurrent:!1}).off('dp.show').on('dp.show',function(){$(this).parent().find('div.bootstrap-datetimepicker-widget').addClass('wdt-datetimepicker-modal');if(!_.contains(['MM/Y','MMM Y','Y'],wdtDateFormat)){wdtAddDatePlaceholders($(this))}})})});var wdtCustomDateDDMMMYYYYToOrd=function(date){"use strict";var dateParts=date.split(/-/);return(dateParts[2]*10000)+(jQuery.inArray(dateParts[1].toUpperCase(),["JAN","FEB","MAR","APR","MAY","JUN","JUL","AUG","SEP","OCT","NOV","DEC"])*100)+dateParts[0]};function wdtValidateURL(textval){var regex=/^([a-z]([a-z]|\d|\+|-|\.)*):(\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\amp;'\(\)\*\+,;=]|:)*@)?((\[(|(v[\da-f]{1,}\.(([a-z]|\d|-|\.|_|~)|[!\amp;'\(\)\*\+,;=]|:)+))\])|((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\amp;'\(\)\*\+,;=])*)(:\d*)?)(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\amp;'\(\)\*\+,;=]|:|@)*)*|(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\amp;'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\amp;'\(\)\*\+,;=]|:|@)*)*)?)|((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\amp;'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\amp;'\(\)\*\+,;=]|:|@)*)*)|((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\amp;'\(\)\*\+,;=]|:|@)){0})(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\amp;'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\amp;'\(\)\*\+,;=]|:|@)|\/|\?)*)?(||.*)?#x2F;i;return regex.test(textval)}
152
function wdtPrepareDate(date,wdtDateFormat,wdtTimeFormat){var format=wdtDateFormat+' '+wdtTimeFormat;return moment(date,format).valueOf()}
153
function wdtPrepareTime(time,wdtTimeFormat){return moment(time,wdtTimeFormat).valueOf()}
154
function wdtValidateEmail(email){var regex=/^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+(||.*)?#x2F;;return regex.test(email)}
155
function wdtRandString(n){if(!n){n=5}
156
+ var text='';var possible='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz';for(var i=0;i<n;i++){text+=possible.charAt(Math.floor(Math.random()*possible.length))}
157
+ return text}
158
function wdtFormatNumber(n,c,d,t){c=isNaN(c=Math.abs(c))?2:c,d=d==undefined?".":d,t=t==undefined?",":t,s=n<0?"-":"",i=parseInt(n=Math.abs(+n||0).toFixed(c))+"",j=(j=i.length)>3?j%3:0;return s+(j?i.substr(0,j)+t:"")+i.substr(j).replace(/(\d{3})(?=\d)/g,"$1"+t)+(c?d+Math.abs(n-i).toFixed(c).slice(2):"")}
159
function wdtUnformatNumber(number,thousandsSeparator,decimalsSeparator,isFloat){if(typeof isFloat=='undefined'){isFloat=!1}
160
+ var return_string=String(number).replace(new RegExp('\\'+thousandsSeparator,'g'),'');if(isFloat&&decimalsSeparator==','){return_string=return_string.replace(new RegExp('\\'+decimalsSeparator),'.')}
161
+ return return_string}
162
function wdtCalculateColumnSum(columnData,thousandsSeparator){if(columnData.length>0){if(thousandsSeparator=='.'){var sum=columnData.reduce(function(a,b){return parseFloat(a)+parseFloat(b.replace(/\./g,''))},0)}else{sum=columnData.reduce(function(a,b){return parseFloat(a)+parseFloat(b.replace(/\,/g,''))},0)}}else{sum=0}
163
+ return parseFloat(sum)}
164
function wdtCalculateColumnMin(columnData,thousandsSeparator){if(columnData.length>0){if(thousandsSeparator=='.'){var min=columnData.reduce(function(a,b){return parseInt(typeof(a)=='number'?a:a.replace(/\./g,''))<=parseInt(b.replace(/\./g,''))?parseFloat(typeof(a)=='number'?a:a.replace(/\./g,'')):parseFloat(b.replace(/\./g,''))})}else{min=columnData.reduce(function(a,b){return parseInt(typeof(a)=='number'?a:a.replace(/\,/g,''))<=parseInt(b.replace(/\,/g,''))?parseFloat(typeof(a)=='number'?a:a.replace(/\,/g,'')):parseFloat(b.replace(/\,/g,''))})}}else{min=0}
165
+ return min}
166
function wdtCalculateColumnMax(columnData,thousandsSeparator){if(columnData.length>0){if(thousandsSeparator=='.'){var max=columnData.reduce(function(a,b){return parseInt(typeof(a)=='number'?a:a.replace(/\./g,''))>=parseInt(b.replace(/\./g,''))?parseFloat(typeof(a)=='number'?a:a.replace(/\./g,'')):parseFloat(b.replace(/\./g,''))})}else{max=columnData.reduce(function(a,b){return parseInt(typeof(a)=='number'?a:a.replace(/\,/g,''))>=parseInt(b.replace(/\,/g,''))?parseFloat(typeof(a)=='number'?a:a.replace(/\,/g,'')):parseFloat(b.replace(/\,/g,''))})}}else{max=0}
167
+ return max}
168
function wdtFormatNumberByColumnType(number,columnType,columnDecimalPlaces,generalDecimalPlaces,decimalSeparator,thousandsSeparator){var numStr='';if(columnType=='int'){numStr=wdtFormatNumber(number,0,decimalSeparator,thousandsSeparator)}else{if(columnDecimalPlaces!=-1){numStr=wdtFormatNumber(number,columnDecimalPlaces,decimalSeparator,thousandsSeparator)}else{numStr=wdtFormatNumber(number,generalDecimalPlaces,decimalSeparator,thousandsSeparator)}}
169
+ return numStr}
170
function wdtFillPossibleValuesList(distValues){if(jQuery('#wdt-column-values-list').tagsinput('items').length>0){jQuery('#wdt-possible-values-merge-list-modal').modal('show');jQuery('.wdt-merge-possible-values').click(function(e){e.preventDefault();e.stopImmediatePropagation();var oldListValues=jQuery.extend([],jQuery('#wdt-column-values-list').tagsinput('items'));var mergedValues=jQuery.merge(oldListValues,distValues);jQuery('#wdt-column-values-list').tagsinput('removeAll');mergedValues.sort();mergedValues=jQuery.unique(mergedValues);jQuery('#wdt-column-values-list').tagsinput('add',mergedValues.join('|'));jQuery('#wdt-possible-values-merge-list-modal').modal('hide')});jQuery('.wdt-replace-possible-values').click(function(e){e.preventDefault();e.stopImmediatePropagation();jQuery('#wdt-column-values-list').tagsinput('removeAll');distValues.sort();jQuery('#wdt-column-values-list').tagsinput('add',distValues.join('|'));jQuery('#wdt-possible-values-merge-list-modal').modal('hide')})}else{distValues.sort();jQuery('#wdt-column-values-list').tagsinput('add',distValues.join('|'))}}
171
function wdtAddDatePlaceholders(input){if(input.hasClass("formatting-rule-cell-value")){var datePlaceholders='<div class="col-sm-12 text-center p-b-15">'+'<button class="btn btn-primary p-5 btn-xs wdt-date-placeholder wdt-today-placeholder" data-toggle="tooltip" data-placement="top" title="By settings %TODAY% placeholder, cell value will be compared with today\'s date.">%TODAY%</button> '+'<button class="btn btn-primary p-5 btn-xs wdt-date-placeholder wdt-last-week-placeholder" data-toggle="tooltip" data-placement="top" title="By settings %LAST_WEEK% placeholder, cell value will be compared with last week\'s date.">%LAST_WEEK%</button> '+'<button class="btn btn-primary p-5 btn-xs wdt-date-placeholder wdt-this-week-placeholder" data-toggle="tooltip" data-placement="top" title="By settings %THIS_WEEK% placeholder, cell value will be compared with this week\'s date.">%THIS_WEEK%</button> '+'<button class="btn btn-primary p-5 btn-xs wdt-date-placeholder wdt-next-week-placeholder" data-toggle="tooltip" data-placement="top" title="By settings %NEXT_WEEK% placeholder, cell value will be compared with next week\'s date.">%NEXT_WEEK%</button> '+'<button class="btn btn-primary p-5 btn-xs wdt-date-placeholder wdt-last-30-days-placeholder" data-toggle="tooltip" data-placement="top" title="By settings %LAST_30_DAYS% placeholder, cell value will be compared with last 30 days.">%LAST_30_DAYS%</button> '+'<button class="btn btn-primary p-5 btn-xs wdt-date-placeholder wdt-last-month-placeholder" data-toggle="tooltip" data-placement="top" title="By settings %LAST_MONTH% placeholder, cell value will be compared with last month.">%LAST_MONTH%</button> '+'<button class="btn btn-primary p-5 btn-xs wdt-date-placeholder wdt-this-month-placeholder" data-toggle="tooltip" data-placement="top" title="By settings %THIS_MONTH% placeholder, cell value will be compared with this month.">%THIS_MONTH%</button> '+'<button class="btn btn-primary p-5 btn-xs wdt-date-placeholder wdt-next-month-placeholder" data-toggle="tooltip" data-placement="top" title="By settings %NEXT_MONTH% placeholder, cell value will be compared with next month.">%NEXT_MONTH%</button> '+'</div>';jQuery('.datepicker').closest("ul.list-unstyled").append(datePlaceholders);jQuery('.wdt-date-placeholder').tooltip();jQuery('.wdt-today-placeholder').click(function(){jQuery(this).closest('.form-group').find('.formatting-rule-cell-value').val('%TODAY%').data("DateTimePicker").hide()})
172
+ jQuery('.wdt-last-week-placeholder').click(function(){jQuery(this).closest('.form-group').find('.formatting-rule-cell-value').val('%LAST_WEEK%').data("DateTimePicker").hide()})
173
+ jQuery('.wdt-this-week-placeholder').click(function(){jQuery(this).closest('.form-group').find('.formatting-rule-cell-value').val('%THIS_WEEK%').data("DateTimePicker").hide()})
174
+ jQuery('.wdt-next-week-placeholder').click(function(){jQuery(this).closest('.form-group').find('.formatting-rule-cell-value').val('%NEXT_WEEK%').data("DateTimePicker").hide()})
175
+ jQuery('.wdt-last-30-days-placeholder').click(function(){jQuery(this).closest('.form-group').find('.formatting-rule-cell-value').val('%LAST_30_DAYS%').data("DateTimePicker").hide()})
176
+ jQuery('.wdt-last-month-placeholder').click(function(){jQuery(this).closest('.form-group').find('.formatting-rule-cell-value').val('%LAST_MONTH%').data("DateTimePicker").hide()})
177
+ jQuery('.wdt-this-month-placeholder').click(function(){jQuery(this).closest('.form-group').find('.formatting-rule-cell-value').val('%THIS_MONTH%').data("DateTimePicker").hide()});jQuery('.wdt-next-month-placeholder').click(function(){jQuery(this).closest('.form-group').find('.formatting-rule-cell-value').val('%NEXT_MONTH%').data("DateTimePicker").hide()})
178
+ jQuery('.formatting-rule-cell-value.wdt-datepicker').on('dp.hide',function(e){e.stopImmediatePropagation();if(jQuery.inArray(jQuery(this).closest('.wdt-conditional-formatting-rule').find('.formatting-rule-cell-value').val(),['%LAST_WEEK%','%THIS_WEEK%','%NEXT_WEEK%','%LAST_30_DAYS%','%LAST_MONTH%','%NEXT_MONTH%','%THIS_MONTH%'])===-1){jQuery(this).closest('.wdt-conditional-formatting-rule').find('.formatting-rule-if-clause').prop('disabled',!1).selectpicker('val','lt')}else{jQuery(this).closest('.wdt-conditional-formatting-rule').find('.formatting-rule-if-clause').prop('disabled',!0).selectpicker('val','')}});jQuery('.formatting-rule-cell-value.wdt-datetimepicker').on('dp.hide',function(e){e.stopImmediatePropagation();if(jQuery.inArray(jQuery(this).closest('.wdt-conditional-formatting-rule').find('.formatting-rule-cell-value').val(),['%LAST_WEEK%','%THIS_WEEK%','%NEXT_WEEK%','%LAST_30_DAYS%','%LAST_MONTH%','%NEXT_MONTH%','%THIS_MONTH%'])===-1){jQuery(this).closest('.wdt-conditional-formatting-rule').find('.formatting-rule-if-clause').prop('disabled',!1).selectpicker('val','lt')}else{jQuery(this).closest('.wdt-conditional-formatting-rule').find('.formatting-rule-if-clause').prop('disabled',!0).selectpicker('val','')}})}}
179
+ function getMomentWdtDateFormat(){return wpdatatables_settings.wdtDateFormat.replace('d','DD').replace('M','MMM').replace('m','MM').replace('y','YY').replace('F','MMMM').replace('j','DD')}
180
+ function getMomentWdtTimeFormat(){return wpdatatables_settings.wdtTimeFormat.replace('H','HH').replace('i','mm')}
181
+ function searchQueryString(key){key=key.replace(/[*+?^$.\[\]{}()|\\\/]/g,"\\amp;");var match=location.search.match(new RegExp("[?&]"+key+"=([^&]+)(&|$)"));return match&&decodeURIComponent(match[1].replace(/\+/g," "))}
182
+ function removeURLParameter(url,parameter){let urlParts=url.split('?')
183
+ if(urlParts.length>=2){let prefix=encodeURIComponent(parameter)+'='
184
+ let pars=urlParts[1].split(/[&;]/g)
185
+ for(let i=pars.length;i-->0;){if(pars[i].lastIndexOf(prefix,0)!==-1){pars.splice(i,1)}}
186
+ url=urlParts[0]+(pars.length>0?'?'+pars.join('&'):'')
187
+ return url}else{return url}};var wpDataTables={};var wpDataTablesSelRows={};var wpDataTablesFunctions={};var wpDataTablesUpdatingFlags={};var wpDataTablesResponsiveHelpers={};var wpDataTablesHooks=wpDataTablesHooks||{onRenderFilter:[],onRenderDetails:[]};var wpDataTablesEditors={};var wdtBreakpointDefinition={tablet:1024,phone:480};var wdtCustomUploader=null;var wdtRenderDataTable=null;var singleClick=!1;(function($){$(function(){wdtRenderDataTable=function($table,tableDescription){var dataTableOptions=tableDescription.dataTableParams;if(tableDescription.responsive){wpDataTablesResponsiveHelpers[tableDescription.tableId]=!1;dataTableOptions.preDrawCallback=function(){if(!wpDataTablesResponsiveHelpers[tableDescription.tableId]){if(typeof tableDescription.mobileWidth!=='undefined'){wdtBreakpointDefinition.phone=parseInt(tableDescription.mobileWidth)}
188
+ if(typeof tableDescription.tabletWidth!=='undefined'){wdtBreakpointDefinition.tablet=parseInt(tableDescription.tabletWidth)}
189
+ wpDataTablesResponsiveHelpers[tableDescription.tableId]=new ResponsiveDatatablesHelper($(tableDescription.selector).dataTable(),wdtBreakpointDefinition,{showDetail:function(detailsRow){if(tableDescription.conditional_formatting_columns){var responsive_rows=detailsRow.find('li');var oSettings=wpDataTables[tableDescription.tableId].fnSettings();var params={};params.thousandsSeparator=tableDescription.number_format==1?'.':',';params.decimalSeparator=tableDescription.number_format==1?',':'.';params.dateFormat=tableDescription.datepickFormat;params.momentDateFormat=params.dateFormat.replace('dd','DD').replace('M','MMM').replace('mm','MM');params.momentTimeFormat=tableDescription.timeFormat.replace('H','H').replace('i','mm');for(var i=0;i<tableDescription.conditional_formatting_columns.length;i++){var column=oSettings.oInstance.api().column(tableDescription.conditional_formatting_columns[i]+':name',{search:'applied'});var conditionalFormattingRules=oSettings.aoColumns[column.index()].conditionalFormattingRules;params.columnType=oSettings.aoColumns[column.index()].wdtType;for(var j in conditionalFormattingRules){responsive_rows.each(function(){$(this).find('.columnValue').contents().filter(function(){if(this.nodeType===8){$(this).remove()}});var value_cell=$(this).find('.columnValue').html();var column_index=$(this).data('column');if(column_index==column.index()){wdtCheckConditionalFormatting(conditionalFormattingRules[j],params,$(this),!0)}})}}}}})}
190
+ wdtAddOverlay('#'+tableDescription.tableId)}
191
+ dataTableOptions.fnRowCallback=function(nRow,aData,iDisplayIndex,iDisplayIndexFull){wpDataTablesResponsiveHelpers[tableDescription.tableId].createExpandIcon(nRow)}
192
+ if(!tableDescription.editable){dataTableOptions.fnDrawCallback=function(){wpDataTablesResponsiveHelpers[tableDescription.tableId].respond();wdtRemoveOverlay('#'+tableDescription.tableId)}}}else{dataTableOptions.fnPreDrawCallback=function(){wdtAddOverlay('#'+tableDescription.tableId)}}
193
+ if(tableDescription.editable){if(typeof wpDataTablesFunctions[tableDescription.tableId]==='undefined'){wpDataTablesFunctions[tableDescription.tableId]={}}
194
+ wpDataTablesSelRows[tableDescription.tableId]=-1;dataTableOptions.fnDrawCallback=function(){wdtRemoveOverlay('#'+tableDescription.tableId);if(tableDescription.responsive){wpDataTablesResponsiveHelpers[tableDescription.tableId].respond()}
195
+ $('.edit_table[aria-controls="'+tableDescription.tableId+'"]').addClass('disabled');$('.delete_table_entry[aria-controls="'+tableDescription.tableId+'"]').addClass('disabled');if(wpDataTablesSelRows[tableDescription.tableId]==-2){var sel_row_index=wpDataTables[tableDescription.tableId].fnSettings()._iDisplayLength-1;$(tableDescription.selector+' > tbody > tr').removeClass('selected');wpDataTablesSelRows[tableDescription.tableId]=wpDataTables[tableDescription.tableId].fnGetPosition($(tableDescription.selector+' > tbody > tr:eq('+sel_row_index+')').get(0));$(tableDescription.selector+' > tbody > tr:eq('+sel_row_index+')').addClass('selected')}else if(wpDataTablesSelRows[tableDescription.tableId]==-3){var sel_row_index=0;$(tableDescription.selector+' > tbody > tr').removeClass('selected');wpDataTablesSelRows[tableDescription.tableId]=wpDataTables[tableDescription.tableId].fnGetPosition($(tableDescription.selector+' > tbody > tr:eq('+sel_row_index+')').get(0));$(tableDescription.selector+' > tbody > tr:eq('+sel_row_index+')').addClass('selected')}
196
+ $(tableDescription.selector+'_edit_dialog').parent().removeClass('overlayed');wpDataTablesUpdatingFlags[tableDescription.tableId]=!1};wpDataTablesFunctions[tableDescription.tableId].applyData=function(data){$(data).each(function(index,el){if(el){var val=el.toString()}else{var val=''}
197
+ if(val.indexOf('span')!=-1){val=val.replace(/<span>/g,'').replace(/<\/span>/g,'')}
198
+ if(val.indexOf('<br/>')!=-1||val.indexOf('<br>')!=-1){val=val.replace(/<br\s*[\/]?>/g,"\n")}
199
+ var $inputElement=$('#'+tableDescription.tableId+'_edit_dialog .editDialogInput:not(.bootstrap-select):eq('+index+')');var inputElementType=$inputElement.data('input_type');var columnType=$inputElement.data('column_type');if(inputElementType==='multi-selectbox'||inputElementType==='selectbox'){if($inputElement.hasClass('wdt-possible-values-ajax')){var $selectpickerBlock=$('select#'+tableDescription.tableId+'_'+$inputElement.data('key')).closest('.fg-line').parent();var mandatory=$inputElement.hasClass('mandatory')?'mandatory ':'';var foreignKeyRule=$inputElement.hasClass('wdt-foreign-key-select')?'wdt-foreign-key-select ':'';$selectpickerBlock.html('<div class="fg-line"><select id="'+tableDescription.tableId+'_'+$inputElement.data('key')+'" data-input_type="'+inputElementType+'" data-key="'+$inputElement.data('key')+'" class="form-control editDialogInput selectpicker '+mandatory+'wdt-possible-values-ajax '+foreignKeyRule+'" data-live-search="true" data-live-search-placeholder="'+wpdatatables_frontend_strings.search+'" data-column_header="'+$inputElement.data('column_header')+'"></select></div>');if(inputElementType==='multi-selectbox')
200
+ $selectpickerBlock.find('select').attr('multiple','multiple');if(inputElementType==='multi-selectbox'){var values=val.split(', ');$.each(values,function(index,value){if(value){$selectpickerBlock.find('select').append('<option selected value="'+value+'">'+value+'</option>')}})}else{$selectpickerBlock.find('select').append('<option selected value="'+val+'">'+val+'</option>')}
201
+ $inputElement=$selectpickerBlock.find('select');$inputElement.on('show.bs.select',function(e){jQuery(this).closest('div.editDialogInput').find('.bs-searchbox .form-control').val('').trigger('keyup')});$inputElement.selectpicker('refresh').ajaxSelectPicker({ajax:{url:tableDescription.adminAjaxBaseUrl,method:'POST',data:{wdtNonce:$('#wdtNonce').val(),action:'wpdatatables_get_column_possible_values',tableId:tableDescription.tableWpId,originalHeader:$inputElement.data('key')}},cache:!1,preprocessData:function(data){if($('.editDialogInput.open').find('select').data('input_type')==='selectbox'){data.unshift({value:''})}
202
+ return data},preserveSelected:!0,emptyRequest:!0,preserveSelectedPosition:'before',locale:{emptyTitle:wpdatatables_frontend_strings.nothingSelected,statusSearching:wpdatatables_frontend_strings.sLoadingRecords,currentlySelected:wpdatatables_frontend_strings.currentlySelected,errorText:wpdatatables_frontend_strings.errorText,searchPlaceholder:wpdatatables_frontend_strings.search,statusInitialized:wpdatatables_frontend_strings.statusInitialized,statusNoResults:wpdatatables_frontend_strings.statusNoResults,statusTooShort:wpdatatables_frontend_strings.statusTooShort}})}
203
+ if(inputElementType=='multi-selectbox'){values=val.split(', ');$inputElement.selectpicker();$inputElement.selectpicker('val',values);$inputElement.selectpicker('refresh')}else if(inputElementType=='selectbox'){$inputElement.selectpicker();if($inputElement.hasClass('wdt-foreign-key-select')&&val!=''){val=typeof $inputElement.find('option[data-label="'+val+'"]').val()!=='undefined'?$inputElement.find('option[data-label="'+val+'"]').val():val}
204
+ if(val==''){val='possibleValuesAddEmpty'}
205
+ $inputElement.selectpicker('val',val);$inputElement.selectpicker('refresh')}}else{if(inputElementType=='attachment'||$.inArray(columnType,['icon'])!==-1){columnType=$inputElement.parent().data('column_type');if(val!=''){if($(val).children('img').first().attr('src')!=undefined){val=$(val).children('img').first().attr('src')+'||'+$(val).attr('href')}else if($(val).attr('href')!=undefined){val=$(val).attr('href')}else if($(val).attr('src')!=undefined){val=$(val).attr('src')}
206
+ $inputElement.parent().parent().removeClass('fileinput-new').addClass('fileinput-exists');if(columnType=='icon'){$inputElement.parent().parent().parent().removeClass('fileinput-new').addClass('fileinput-exists');if(val.indexOf('||')!=-1){$inputElement.parent().parent().parent().find('.fileinput-preview').html('<img src='+val.substring(val.indexOf('||')+2,val.length)+'>')}else{$inputElement.parent().parent().parent().find('.fileinput-preview').html('<img src='+val+'>')}}else{$inputElement.parent().parent().find('.fileinput-filename').text(val.split('/').pop())}}else{$inputElement.closest('.fileinput').removeClass('fileinput-exists').addClass('fileinput-new');$inputElement.closest('.fileinput').find('div.fileinput-exists').removeClass('fileinput-exists').addClass('fileinput-new');$inputElement.closest('.fileinput').find('.fileinput-filename').text('');$inputElement.closest('.fileinput').find('.fileinput-preview').html('')}}else{if(val.indexOf('<a ')!=-1){if($.inArray(columnType,['link','email','icon'])!==-1){$link=$(val);if($link.attr('href').indexOf($link.html())===-1){val=$link.attr('href').replace('mailto:','')+'||'+$link.html()}else{val=$link.html()}}}
207
+ if(inputElementType=='mce-editor'){tinymce.execCommand('mceRemoveEditor',!0,$inputElement.attr('id'));tinymce.init({selector:'#'+$inputElement.attr('id'),init_instance_callback:function(editor){editor.setContent(val)},menubar:!1,plugins:'link image media lists hr colorpicker fullscreen textcolor',toolbar:'undo redo formatselect bold italic underline strikethrough subscript superscript | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent blockquote | hr fullscreen | link unlink image | forecolor backcolor removeformat'})}}
208
+ $inputElement.val(val).css('border','')}})};wpDataTablesFunctions[tableDescription.tableId].saveTableData=function(forceRedraw,closeDialog){$(tableDescription.selector+'_edit_dialog').closest('.modal-dialog').find('.wdt-preload-layer').animateFadeIn();wpDataTablesUpdatingFlags[tableDescription.tableId]=!0;var formdata={table_id:tableDescription.tableWpId};var aoData=[];var valid=!0;var validation_message='';if(tableDescription.popoverTools){$('.wpDataTablesPopover.editTools').hide()}
209
+ if(typeof tinymce!='undefined'){tinymce.triggerSave()}
210
+ $(tableDescription.selector+'_edit_dialog .editDialogInput').not('.bootstrap-select').each(function(){if($(this).data('input_type')=='email'){if($(this).val()!=''){var field_valid=wdtValidateEmail($(this).val());if(!field_valid){valid=!1;$(this).addClass('error');validation_message+=wpdatatables_frontend_strings.invalid_email+' <b>'+$(this).data('column_header')+'</b><br>'}else{$(this).removeClass('error')}}}else if($(this).data('input_type')=='link'){if($(this).val()!=''){field_valid=wdtValidateURL($(this).val());if(!field_valid){valid=!1;$(this).addClass('error');validation_message+=wpdatatables_frontend_strings.invalid_link+' <b>'+$(this).data('column_header')+'</b><br>'}else{$(this).removeClass('error')}}}
211
+ if($(this).hasClass('mandatory')){if($(this).val()==''||$(this).val()==null){$(this).addClass('error');valid=!1;validation_message+='<b>'+$(this).data('column_header')+'</b> '+wpdatatables_frontend_strings.cannot_be_empty+'<br>'}else{if(valid){$(this).removeClass('error')}}}
212
+ if($(this).hasClass('datepicker')){formdata[$(this).data('key')]=$.datepicker.formatDate(tableDescription.datepickFormat,$.datepicker.parseDate(tableDescription.datepickFormat,$(this).val()))}else if($(this).data('input_type')=='multi-selectbox'){if($(this).val()){formdata[$(this).data('key')]=$(this).val().join(', ')}else{formdata[$(this).data('key')]=''}}else if($(this).data('column_type')=='int'){formdata[$(this).data('key')]=$(this).val().replace(/,/g,'').replace(/\./g,'')}else{formdata[$(this).data('key')]=$(this).val()}
213
+ aoData.push(formdata[$(this).data('key')])});if(!valid){$(tableDescription.selector+'_edit_dialog').closest('.modal-dialog').find('.wdt-preload-layer').animateFadeOut();wdtNotify(wpdatatables_edit_strings.error,validation_message,'danger');return!1}
214
+ wpDataTablesUpdatingFlags[tableDescription.tableId]=!0;$.ajax({url:tableDescription.adminAjaxBaseUrl,type:'POST',dataType:'json',data:{action:'wdt_save_table_frontend',wdtNonce:$('#wdtNonceFrontendEdit').val(),formdata:formdata},success:function(returnData){$(tableDescription.selector+'_edit_dialog').closest('.modal-dialog').find('.wdt-preload-layer').animateFadeOut();if(returnData.error==''){var insert_id=returnData.success;if(returnData.is_new){forceRedraw=!0}
215
+ if(insert_id){$(tableDescription.selector+'_edit_dialog tr.idRow .editDialogInput').val(insert_id);if(forceRedraw){wpDataTables[tableDescription.tableId].fnDraw(!1);$('.edit_table[aria-controls="'+tableDescription.tableId+'"]').addClass('disabled')}}else{wpDataTables[tableDescription.tableId].fnDraw(!1);$('.edit_table[aria-controls="'+tableDescription.tableId+'"]').addClass('disabled')}
216
+ wdtNotify(wpdatatables_edit_strings.success,wpdatatables_edit_strings.dataSaved,'success');setTimeout(function(){if(closeDialog){$('#wdt-frontend-modal').modal('hide')}else{$(tableDescription.selector+'_edit_dialog .editDialogInput').val('');$(tableDescription.selector+'_edit_dialog .editDialogInput').selectpicker('val','');$(tableDescription.selector+'_edit_dialog .editDialogInput').trigger('change.abs.preserveSelected');$(tableDescription.selector+'_edit_dialog .editDialogInput').selectpicker('refresh');$('.fileinput').removeClass('fileinput-exists').addClass('fileinput-new');$('.fileinput').find('div.fileinput-exists').removeClass('fileinput-exists').addClass('fileinput-new');$('.fileinput').find('.fileinput-filename').text('');$('.fileinput').find('.fileinput-preview').html('');if(tinymce.activeEditor)
217
+ tinymce.activeEditor.setContent('')}},1000);if(!returnData.is_new&&$(tableDescription.selector+' > tbody > tr.selected').length){var cursor=wpDataTables[tableDescription.tableId].fnGetPosition($(tableDescription.selector+' > tbody > tr.selected').get(0));wpDataTables[tableDescription.tableId].fnSettings().aoData[cursor]._aData=aoData}}else{wdtNotify(wpdatatables_edit_strings.error,returnData.error,'danger')}},error:function(){$(tableDescription.selector+'_edit_dialog').closest('.modal-dialog').find('.wdt-preload-layer').animateFadeOut();wdtNotify(wpdatatables_edit_strings.error,wpdatatables_frontend_strings.databaseInsertError,'danger')}});return!0}}
218
+ if(!tableDescription.responsive&&!tableDescription.editable){dataTableOptions.fnDrawCallback=function(){wdtRemoveOverlay('#'+tableDescription.tableId)}}
219
+ if($('.wdt-column-sum[data-table-id="'+tableDescription.tableWpId+'"]').length){var sumColumns=[];$('.wdt-column-sum[data-table-id="'+tableDescription.tableWpId+'"]').each(function(){sumColumns.push($(this).data('column-orig-header'))})}
220
+ if($('.wdt-column-avg[data-table-id="'+tableDescription.tableWpId+'"]').length){var avgColumns=[];$('.wdt-column-avg[data-table-id="'+tableDescription.tableWpId+'"]').each(function(){avgColumns.push($(this).data('column-orig-header'))})}
221
+ if($('.wdt-column-min[data-table-id="'+tableDescription.tableWpId+'"]').length){var minColumns=[];$('.wdt-column-min[data-table-id="'+tableDescription.tableWpId+'"]').each(function(){minColumns.push($(this).data('column-orig-header'))})}
222
+ if($('.wdt-column-max[data-table-id="'+tableDescription.tableWpId+'"]').length){var maxColumns=[];$('.wdt-column-max[data-table-id="'+tableDescription.tableWpId+'"]').each(function(){maxColumns.push($(this).data('column-orig-header'))})}
223
+ if(tableDescription.serverSide){dataTableOptions.ajax.data=function(data){data.sumColumns=sumColumns;data.avgColumns=avgColumns;data.minColumns=minColumns;data.maxColumns=maxColumns;data.currentUserId=$('#wdt-user-id-placeholder').val();data.currentUserLogin=$('#wdt-user-login-placeholder').val();data.currentPostIdPlaceholder=$('#wdt-post-id-placeholder').val();data.currentUserFirstName=$('#wdt-user-first-name-placeholder').val();data.currentUserLastName=$('#wdt-user-last-name-placeholder').val();data.currentDate=$('#wdt-date-placeholder').val();data.currentDateTime=$('#wdt-datetime-placeholder').val();data.currentTime=$('#wdt-time-placeholder').val();data.wpdbPlaceholder=$('#wdt-wpdb-placeholder').val();data.wdtNonce=$('#wdtNonceFrontendEdit').val();data.showAllRows=$('#wdt-show-all-rows').val()}}
224
+ if(tableDescription.hideBeforeLoad){dataTableOptions.fnInitComplete=function(){$(tableDescription.selector).animateFadeIn()}}
225
+ wpDataTables[tableDescription.tableId]=$(tableDescription.selector).dataTable(dataTableOptions);if(wpDataTables[tableDescription.tableId].fnSettings()._iDisplayLength>=wpDataTables[tableDescription.tableId].fnSettings().fnRecordsTotal()||dataTableOptions.iDisplayLength===-1){$('#'+tableDescription.tableId+'_paginate').hide()}
226
+ wpDataTables[tableDescription.tableId].fnSettings().aoDrawCallback.push({sName:'removePaginate',fn:function(oSettings){var api=oSettings.oInstance.api();if(api.page.len()>=api.page.info().recordsDisplay||api.data().page.len()==-1){$('#'+tableDescription.tableId+'_paginate').hide()}else{$('#'+tableDescription.tableId+'_paginate').show()}}});if(tableDescription.serverSide){if(parseInt(tableDescription.autoRefreshInterval)>0){autoRefresh=setInterval(function(){wpDataTables[tableDescription.tableId].fnDraw(!1)},parseInt(tableDescription.autoRefreshInterval)*1000)}else{if(typeof autoRefresh!=="undefined"){clearInterval(autoRefresh)}}}
227
+ wpDataTables[tableDescription.tableId].addOnDrawCallback=function(callback){if(typeof callback!=='function'){return}
228
+ var index=wpDataTables[tableDescription.tableId].fnSettings().aoDrawCallback.length+1;wpDataTables[tableDescription.tableId].fnSettings().aoDrawCallback.push({sName:'user_callback_'+index,fn:callback})};if(tableDescription.hasSumColumns||tableDescription.hasAvgColumns||tableDescription.hasMinColumns||tableDescription.hasMaxColumns||$('.wdt-column-sum').length||$('.wdt-column-avg').length||$('.wdt-column-min').length||$('.wdt-column-max').length){var sumLabel=tableDescription.sumFunctionsLabel?tableDescription.sumFunctionsLabel:'&#8721; = ';var avgLabel=tableDescription.avgFunctionsLabel?tableDescription.avgFunctionsLabel:'Avg = ';var minLabel=tableDescription.minFunctionsLabel?tableDescription.minFunctionsLabel:'Min = ';var maxLabel=tableDescription.maxFunctionsLabel?tableDescription.maxFunctionsLabel:'Max = ';if(tableDescription.serverSide){wpDataTables[tableDescription.tableId].fnSettings().aoDrawCallback.push({sName:'updateFooterFunctions',fn:function(oSettings){var api=oSettings.oInstance.api();for(var columnName in api.ajax.json().sumFooterColumns){if(tableDescription.hasSumColumns){$('#'+tableDescription.tableId+' tfoot tr.wdt-sum-row td.wdt-sum-cell[data-column_header="'+columnName+'"]').html(sumLabel+' '+api.ajax.json().sumColumnsValues[columnName])}}
229
+ for(columnName in api.ajax.json().avgFooterColumns){if(tableDescription.hasAvgColumns){$('#'+tableDescription.tableId+' tfoot tr.wdt-avg-row td.wdt-avg-cell[data-column_header="'+columnName+'"]').html(avgLabel+' '+api.ajax.json().avgColumnsValues[columnName])}}
230
+ for(columnName in api.ajax.json().minFooterColumns){if(tableDescription.hasMinColumns){$('#'+tableDescription.tableId+' tfoot tr.wdt-min-row td.wdt-min-cell[data-column_header="'+columnName+'"]').html(minLabel+' '+api.ajax.json().minColumnsValues[columnName])}}
231
+ for(columnName in api.ajax.json().maxFooterColumns){if(tableDescription.hasMaxColumns){$('#'+tableDescription.tableId+' tfoot tr.wdt-max-row td.wdt-max-cell[data-column_header="'+columnName+'"]').html(maxLabel+' '+api.ajax.json().maxColumnsValues[columnName])}}
232
+ if($('.wdt-column-sum').length){$('.wdt-column-sum[data-table-id="'+tableDescription.tableWpId+'"]').each(function(){$(this).find('.wdt-column-sum-value').text(api.ajax.json().sumColumnsValues[$(this).data('column-orig-header')])})}
233
+ if($('.wdt-column-avg').length){$('.wdt-column-avg[data-table-id="'+tableDescription.tableWpId+'"]').each(function(){$(this).find('.wdt-column-avg-value').text(api.ajax.json().avgColumnsValues[$(this).data('column-orig-header')])})}
234
+ if($('.wdt-column-min').length){$('.wdt-column-min[data-table-id="'+tableDescription.tableWpId+'"]').each(function(){$(this).find('.wdt-column-min-value').text(api.ajax.json().minColumnsValues[$(this).data('column-orig-header')])})}
235
+ if($('.wdt-column-max').length){$('.wdt-column-max[data-table-id="'+tableDescription.tableWpId+'"]').each(function(){$(this).find('.wdt-column-max-value').text(api.ajax.json().maxColumnsValues[$(this).data('column-orig-header')])})}}})}else{wpDataTables[tableDescription.tableId].fnSettings().aoDrawCallback.push({sName:'updateFooterFunctions',fn:function(oSettings){var api=oSettings.oInstance.api();var thousandsSeparator=tableDescription.number_format==1?'.':',';var decimalSeparator=tableDescription.number_format==1?',':'.';for(var i in tableDescription.sumAvgColumns){var columnData=api.column(tableDescription.sumAvgColumns[i]+':name',{search:'applied'}).data();var columnType=oSettings.aoColumns[api.column(tableDescription.sumAvgColumns[i]+':name').index()].wdtType;var sum=wdtCalculateColumnSum(columnData,thousandsSeparator);var sumStr=wdtFormatNumberByColumnType(parseFloat(sum),columnType,tableDescription.columnsDecimalPlaces[tableDescription.sumAvgColumns[i]],tableDescription.decimalPlaces,decimalSeparator,thousandsSeparator);if(_.contains(tableDescription.sumColumns,tableDescription.sumAvgColumns[i])){$('#'+tableDescription.tableId+' tfoot tr.wdt-sum-row td.wdt-sum-cell[data-column_header="'+tableDescription.sumAvgColumns[i]+'"]').html(sumLabel+' '+sumStr)}
236
+ if(_.contains(tableDescription.avgColumns,tableDescription.sumAvgColumns[i])){var avg=sum/api.page.info().recordsDisplay;var avgStr=wdtFormatNumberByColumnType(avg,'float',tableDescription.columnsDecimalPlaces[tableDescription.sumAvgColumns[i]],tableDescription.decimalPlaces,decimalSeparator,thousandsSeparator);$('#'+tableDescription.tableId+' tfoot tr.wdt-avg-row td.wdt-avg-cell[data-column_header="'+tableDescription.sumAvgColumns[i]+'"]').html(avgLabel+' '+avgStr)}}
237
+ for(i in tableDescription.minColumns){columnData=api.column(tableDescription.minColumns[i]+':name',{search:'applied'}).data();columnType=oSettings.aoColumns[api.column(tableDescription.minColumns[i]+':name').index()].wdtType;var min=wdtCalculateColumnMin(columnData,thousandsSeparator);var minStr=wdtFormatNumberByColumnType(parseFloat(min),columnType,tableDescription.columnsDecimalPlaces[tableDescription.minColumns[i]],tableDescription.decimalPlaces,decimalSeparator,thousandsSeparator);$('#'+tableDescription.tableId+' tfoot tr.wdt-min-row td.wdt-min-cell[data-column_header="'+tableDescription.minColumns[i]+'"]').html(minLabel+' '+minStr)}
238
+ for(i in tableDescription.maxColumns){columnData=api.column(tableDescription.maxColumns[i]+':name',{search:'applied'}).data();columnType=oSettings.aoColumns[api.column(tableDescription.maxColumns[i]+':name').index()].wdtType;var max=wdtCalculateColumnMax(columnData,thousandsSeparator);var maxStr=wdtFormatNumberByColumnType(parseFloat(max),columnType,tableDescription.columnsDecimalPlaces[tableDescription.maxColumns[i]],tableDescription.decimalPlaces,decimalSeparator,thousandsSeparator);$('#'+tableDescription.tableId+' tfoot tr.wdt-max-row td.wdt-max-cell[data-column_header="'+tableDescription.maxColumns[i]+'"]').html(maxLabel+' '+maxStr)}
239
+ if($('.wdt-column-sum').length){$('.wdt-column-sum[data-table-id="'+tableDescription.tableWpId+'"]').each(function(){var columnData=api.column($(this).data('column-orig-header')+':name',{search:'applied'}).data();var columnType=oSettings.aoColumns[api.column($(this).data('column-orig-header')+':name').index()].wdtType;var sum=wdtCalculateColumnSum(columnData,thousandsSeparator);var sumStr=wdtFormatNumberByColumnType(parseFloat(sum),columnType,tableDescription.columnsDecimalPlaces[$(this).data('column-orig-header')],tableDescription.decimalPlaces,decimalSeparator,thousandsSeparator);$(this).find('.wdt-column-sum-value').text(sumStr)})}
240
+ if($('.wdt-column-avg').length){$('.wdt-column-avg[data-table-id="'+tableDescription.tableWpId+'"]').each(function(){var columnData=api.column($(this).data('column-orig-header')+':name',{search:'applied'}).data();var avg=wdtCalculateColumnSum(columnData,thousandsSeparator)/api.page.info().recordsDisplay;var avgStr=wdtFormatNumberByColumnType(parseFloat(avg),'float',tableDescription.columnsDecimalPlaces[$(this).data('column-orig-header')],tableDescription.decimalPlaces,decimalSeparator,thousandsSeparator);$(this).find('.wdt-column-avg-value').text(avgStr)})}
241
+ if($('.wdt-column-min').length){$('.wdt-column-min[data-table-id="'+tableDescription.tableWpId+'"]').each(function(){var columnData=api.column($(this).data('column-orig-header')+':name',{search:'applied'}).data();var columnType=oSettings.aoColumns[api.column($(this).data('column-orig-header')+':name').index()].wdtType;var min=wdtCalculateColumnMin(columnData,thousandsSeparator);var minStr=wdtFormatNumberByColumnType(parseFloat(min),columnType,tableDescription.columnsDecimalPlaces[$(this).data('column-orig-header')],tableDescription.decimalPlaces,decimalSeparator,thousandsSeparator);$(this).find('.wdt-column-min-value').text(minStr)})}
242
+ if($('.wdt-column-max').length){$('.wdt-column-max[data-table-id="'+tableDescription.tableWpId+'"]').each(function(){var columnData=api.column($(this).data('column-orig-header')+':name',{search:'applied'}).data();var columnType=oSettings.aoColumns[api.column($(this).data('column-orig-header')+':name').index()].wdtType;var max=wdtCalculateColumnMax(columnData,thousandsSeparator);var maxStr=wdtFormatNumberByColumnType(parseFloat(max),columnType,tableDescription.columnsDecimalPlaces[$(this).data('column-orig-header')],tableDescription.decimalPlaces,decimalSeparator,thousandsSeparator);$(this).find('.wdt-column-max-value').text(maxStr)})}}})}}
243
+ if(tableDescription.conditional_formatting_columns){wpDataTables[tableDescription.tableId].fnSettings().aoDrawCallback.push({sName:'updateConditionalFormatting',fn:function(oSettings){for(var i=0;i<tableDescription.conditional_formatting_columns.length;i++){var params={};var column=oSettings.oInstance.api().column(tableDescription.conditional_formatting_columns[i]+':name',{search:'applied'});var conditionalFormattingRules=oSettings.aoColumns[column.index()].conditionalFormattingRules;params.columnType=oSettings.aoColumns[column.index()].wdtType;params.thousandsSeparator=tableDescription.number_format==1?'.':',';params.decimalSeparator=tableDescription.number_format==1?',':'.';params.dateFormat=tableDescription.datepickFormat;params.momentDateFormat=params.dateFormat.replace('dd','DD').replace('M','MMM').replace('mm','MM').replace('yy','YYYY').replace('y','YY');params.momentTimeFormat=tableDescription.timeFormat.replace('H','H').replace('i','mm');for(var j in conditionalFormattingRules){var nodes=column.nodes();column.nodes().to$().each(function(){wdtCheckConditionalFormatting(conditionalFormattingRules[j],params,$(this))})}}}});if(!tableDescription.serverSide){wpDataTables[tableDescription.tableId].fnDraw()}}
244
+ wpDataTables[tableDescription.tableId].checkSelectedLimits=function(){if(wpDataTablesUpdatingFlags[tableDescription.tableId]){return}
245
+ var sel_row_index=$(tableDescription.selector+' > tbody > tr.selected').index();if(sel_row_index+wpDataTables[tableDescription.tableId].fnSettings()._iDisplayStart==wpDataTables[tableDescription.tableId].fnSettings()._iRecordsDisplay-1){$(tableDescription.selector+'_next_edit_dialog').prop('disabled',!0)}else{$(tableDescription.selector+'_next_edit_dialog').prop('disabled',!1)}
246
+ if((sel_row_index==0&&wpDataTables[tableDescription.tableId].fnSettings()._iDisplayStart==0)||wpDataTables[tableDescription.tableId].fnSettings()._iRecordsDisplay==0){$(tableDescription.selector+'_prev_edit_dialog').prop('disabled',!0)}else{$(tableDescription.selector+'_prev_edit_dialog').prop('disabled',!1)}};if((tableDescription.columnsFixed==0)&&(tableDescription.groupingEnabled)){wpDataTables[tableDescription.tableId].rowGrouping({iGroupingColumnIndex:tableDescription.groupingColumnIndex})}
247
+ if(tableDescription.advancedFilterEnabled){$('#'+tableDescription.tableId).dataTable().columnFilter(tableDescription.advancedFilterOptions);for(var i in wpDataTablesHooks.onRenderFilter){wpDataTablesHooks.onRenderFilter[i](tableDescription)}}
248
+ if(tableDescription.editable){$(document).on('click',tableDescription.selector+'_prev_edit_dialog',function(e){e.preventDefault();var sel_row_index=$(tableDescription.selector+' > tbody > tr.selected').index();if(sel_row_index>0){$(tableDescription.selector+' > tbody > tr.selected').removeClass('selected');$(tableDescription.selector+' > tbody > tr:eq('+(sel_row_index-1)+')').addClass('selected',300);wpDataTablesSelRows[tableDescription.tableId]=wpDataTables[tableDescription.tableId].fnGetPosition($(tableDescription.selector+' > tbody > tr.selected').get(0));var data=wpDataTables[tableDescription.tableId].fnGetData(wpDataTablesSelRows[tableDescription.tableId]);wpDataTablesFunctions[tableDescription.tableId].applyData(data)}else{var cur_page=Math.ceil(wpDataTables[tableDescription.tableId].fnSettings()._iDisplayStart/wpDataTables[tableDescription.tableId].fnSettings()._iDisplayLength)+1;if(cur_page==1)
249
+ return;wpDataTablesSelRows[tableDescription.tableId]=-2;wpDataTablesUpdatingFlags[tableDescription.tableId]=!0;wpDataTables[tableDescription.tableId].fnPageChange('previous')}
250
+ wpDataTables[tableDescription.tableId].checkSelectedLimits()});$(document).on('click',tableDescription.selector+'_next_edit_dialog',function(e){e.preventDefault();if(wpDataTables[tableDescription.tableId].fnSettings()._iDisplayLength==-1){wpDataTables[tableDescription.tableId].fnSettings()._iDisplayLength=wpDataTables[tableDescription.tableId].fnSettings()._iRecordsTotal}
251
+ var sel_row_index=$(tableDescription.selector+' > tbody > tr.selected').index();if(sel_row_index<wpDataTables[tableDescription.tableId].fnSettings()._iDisplayLength-1){$(tableDescription.selector+' > tbody > tr.selected').removeClass('selected');$(tableDescription.selector+' > tbody > tr:eq('+(sel_row_index+1)+')').addClass('selected',300);wpDataTablesSelRows[tableDescription.tableId]=wpDataTables[tableDescription.tableId].fnGetPosition($(tableDescription.selector+' > tbody > tr.selected').get(0));var data=wpDataTables[tableDescription.tableId].fnGetData(wpDataTablesSelRows[tableDescription.tableId]);wpDataTablesFunctions[tableDescription.tableId].applyData(data)}else{var cur_page=Math.ceil(wpDataTables[tableDescription.tableId].fnSettings()._iDisplayStart/wpDataTables[tableDescription.tableId].fnSettings()._iDisplayLength)+1;var total_pages=Math.ceil(wpDataTables[tableDescription.tableId].fnSettings()._iRecordsTotal/wpDataTables[tableDescription.tableId].fnSettings()._iDisplayLength);if(cur_page==total_pages)
252
+ return;wpDataTablesSelRows[tableDescription.tableId]=-3;wpDataTablesUpdatingFlags[tableDescription.tableId]=!0;wpDataTables[tableDescription.tableId].fnPageChange('next');wpDataTables[tableDescription.tableId].fnDraw(!1)}
253
+ wpDataTables[tableDescription.tableId].checkSelectedLimits()});$(document).on('click',tableDescription.selector+'_apply_edit_dialog',function(e){e.preventDefault();e.stopImmediatePropagation();e.preventDefault();wpDataTablesFunctions[tableDescription.tableId].saveTableData(!0,!1)});$(document).on('click',tableDescription.selector+'_ok_edit_dialog',function(e){e.preventDefault();e.stopImmediatePropagation();e.preventDefault();wpDataTablesFunctions[tableDescription.tableId].saveTableData(!0,!0)});$(document).on('keyup',tableDescription.selector+'_edit_dialog input',function(e){if(e.which==13){$(tableDescription.selector+'_ok_edit_dialog').click()}});$(tableDescription.selector+'_edit_dialog input.wdt-maskmoney[data-column_type="float"]').each(function(i){var decimalPlaces=tableDescription.columnsDecimalPlaces[$(this).data('key')]!=-1?tableDescription.columnsDecimalPlaces[$(this).data('key')]:parseInt(tableDescription.decimalPlaces);$(this).maskMoney({thousands:tableDescription.number_format==1?'.':',',decimal:tableDescription.number_format==1?',':'.',precision:decimalPlaces,allowNegative:!0,allowEmpty:!0,allowZero:!0})});$(tableDescription.selector+'_edit_dialog input.wdt-maskmoney[data-column_type="int"]').each(function(i){var thousandsSeparator=tableDescription.number_format==1?'.':',';if(tableDescription.columnsThousandsSeparator[$(this).data('key')]==0){thousandsSeparator=''}
254
+ $(this).maskMoney({thousands:thousandsSeparator,precision:0,allowNegative:!0,allowEmpty:!0,allowZero:!0})});var fileUploadInit=function(selector){if($('.fileupload-'+selector).length){var attachment=null;wdtCustomUploader=wp.media({title:wpdatatables_frontend_strings.select_upload_file,button:{text:wpdatatables_frontend_strings.choose_file},multiple:!1});$('span.fileupload-'+selector).click(function(e){e.preventDefault();var $button=$(this);var $relInput=$('#'+$button.data('rel_input'));$(document).off('focusin.modal');wdtCustomUploader=wp.media({title:wpdatatables_frontend_strings.select_upload_file,button:{text:wpdatatables_frontend_strings.choose_file},multiple:!1,library:{type:$button.data('column_type')=='icon'?'image':''}});if($button.data('column_type')=='icon'){wdtCustomUploader.off('select').on('select',function(){attachment=wdtCustomUploader.state().get('selection').first().toJSON();var val=attachment.url;$relInput.parent().parent().parent().find('.fileinput-preview').html('<img src='+val+'>');$relInput.parent().parent().parent().removeClass('fileinput-new').addClass('fileinput-exists');$relInput.parent().parent().removeClass('fileinput-new').addClass('fileinput-exists');if(attachment.sizes.thumbnail){val=attachment.sizes.thumbnail.url+'||'+val}
255
+ $relInput.val(val)})}else{wdtCustomUploader.off('select').on('select',function(){var attachment=wdtCustomUploader.state().get('selection').first().toJSON();$relInput.val(attachment.url);$relInput.parent().parent().removeClass('fileinput-new').addClass('fileinput-exists');$relInput.parent().parent().find('.fileinput-filename').text(attachment.filename)})}
256
+ wdtCustomUploader.open()})}};fileUploadInit(tableDescription.tableId);$('.edit_table[aria-controls="'+tableDescription.tableId+'"]').click(function(){var modal=$('#wdt-frontend-modal');if($(this).hasClass('disabled'))
257
+ return!1;$('.wpDataTablesPopover.editTools').hide();modal.find('.modal-title').html(wpdatatables_frontend_strings.edit_entry);modal.find('.modal-body').html('');modal.find('.modal-footer').html('');var row=$(tableDescription.selector+' tr.selected').get(0);if(['manual','mysql'].indexOf(tableDescription.tableType)===-1){if(typeof wpDataTablesEditors[tableDescription.tableType].edit=='function'){if(singleClick===!1){singleClick=!0;wpDataTablesEditors[tableDescription.tableType].edit(tableDescription)}}}else{var data=wpDataTables[tableDescription.tableId].fnGetData(row);wpDataTablesFunctions[tableDescription.tableId].applyData(data);wpDataTables[tableDescription.tableId].checkSelectedLimits();modal.find('.modal-body').append($(tableDescription.selector+'_edit_dialog').show());modal.find('.modal-footer').append($(tableDescription.selector+'_edit_dialog_buttons').show());$('#wdt-frontend-modal .editDialogInput').each(function(index){if($(this).data('input_type')=='mce-editor'){if($(this).siblings().length){tinymce.execCommand('mceRemoveEditor',!0,$(this).attr('id'))}
258
+ tinymce.init({selector:'#'+$(this).attr('id'),menubar:!1,plugins:'link image media lists hr colorpicker fullscreen textcolor',toolbar:'undo redo formatselect bold italic underline strikethrough subscript superscript | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent blockquote | hr fullscreen | link unlink image | forecolor backcolor removeformat'})}});modal.modal('show')}
259
+ if(modal.find('.wdt-edit-dialog-fields-block').find('.form-group').length==0)
260
+ $('#wdt-frontend-modal div.wdt-no-editor-inputs-selected-alert').show()});if(tableDescription.inlineEditing){new inlineEditClass(tableDescription,dataTableOptions,$)}
261
+ $('.new_table_entry[aria-controls="'+tableDescription.tableId+'"]').click(function(){var modal=$('#wdt-frontend-modal');$('.wpDataTablesPopover.editTools').hide();modal.find('.modal-title').html(wpdatatables_frontend_strings.add_new_entry);modal.find('.modal-body').html('');modal.find('.modal-footer').html('');if(['manual','mysql'].indexOf(tableDescription.tableType)===-1){if(typeof wpDataTablesEditors[tableDescription.tableType]['new']=='function'){if(singleClick===!1){singleClick=!0;wpDataTablesEditors[tableDescription.tableType]['new'](tableDescription)}}}else{modal.find('.modal-body').append($(tableDescription.selector+'_edit_dialog').show());modal.find('.modal-footer').append($(tableDescription.selector+'_edit_dialog_buttons').show());$('#wdt-frontend-modal .editDialogInput').val('').css('border','');$('#wdt-frontend-modal tr.idRow .editDialogInput').val('0');$('#wdt-frontend-modal .editDialogInput').each(function(index){if($(this).data('input_type')=='mce-editor'){if(tinymce.activeEditor)
262
+ tinymce.activeEditor.setContent('');tinymce.execCommand('mceRemoveEditor',!0,$(this).attr('id'));tinymce.init({selector:'#'+$(this).attr('id'),menubar:!1,plugins:'link image media lists hr colorpicker fullscreen textcolor',toolbar:'undo redo formatselect bold italic underline strikethrough subscript superscript | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent blockquote | hr fullscreen | link unlink image | forecolor backcolor removeformat'})}});wpDataTables[tableDescription.tableId].checkSelectedLimits();$('#wdt-frontend-modal .selectpicker').selectpicker('deselectAll').selectpicker('refresh');for(var i in tableDescription.advancedEditingOptions.aoColumns){var column=tableDescription.advancedEditingOptions.aoColumns[i];if($.inArray(column.editorInputType,['selectbox','multi-selectbox'])!==-1){if(column.possibleValuesAjax!==-1){var $selectpickerBlock=$('select#'+tableDescription.tableId+'_'+column.origHeader).closest('.fg-line').parent();var mandatory=column.mandatory?'mandatory ':'';var possibleValuesAjax=column.possibleValuesAjax?'wdt-possible-values-ajax ':'';var foreignKeyRule=column.foreignKeyRule?'wdt-foreign-key-select ':'';$selectpickerBlock.html('<div class="fg-line"><select id="'+tableDescription.tableId+'_'+column.origHeader+'" data-input_type="'+column.editorInputType+'" data-key="'+column.origHeader+'" class="form-control editDialogInput selectpicker '+mandatory+possibleValuesAjax+foreignKeyRule+'" data-live-search="true" data-live-search-placeholder="'+wpdatatables_frontend_strings.search+'" data-column_header="'+column.displayHeader+'"></select></div>');if(column.editorInputType==='multi-selectbox')
263
+ $selectpickerBlock.find('select').attr('multiple','multiple');if(column.defaultValue){if(column.editorInputType==='multi-selectbox'){var defaultValues=!Array.isArray(column.defaultValue)?column.defaultValue.split('|'):column.defaultValue;$.each(defaultValues,function(index,value){if(value){$selectpickerBlock.find('select').append('<option selected value="'+value+'">'+value+'</option>')}})}else{if(typeof column.defaultValue==='object')
264
+ $selectpickerBlock.find('select').append('<option selected value="'+column.defaultValue.value+'">'+column.defaultValue.text+'</option>');else $selectpickerBlock.find('select').append('<option selected value="'+column.defaultValue+'">'+column.defaultValue+'</option>')}}
265
+ $('select#'+tableDescription.tableId+'_'+column.origHeader).on('show.bs.select',function(e){jQuery(this).closest('div.editDialogInput').find('.bs-searchbox .form-control').val('').trigger('keyup')});$('select#'+tableDescription.tableId+'_'+column.origHeader).selectpicker('refresh').ajaxSelectPicker({ajax:{url:tableDescription.adminAjaxBaseUrl,method:'POST',data:{wdtNonce:$('#wdtNonce').val(),action:'wpdatatables_get_column_possible_values',tableId:tableDescription.tableWpId,originalHeader:column.origHeader}},cache:!1,preprocessData:function(data){if($('.editDialogInput.open').find('select').data('input_type')==='selectbox'){data.unshift({value:''})}
266
+ return data},preserveSelected:!0,emptyRequest:!0,preserveSelectedPosition:'before',locale:{emptyTitle:wpdatatables_frontend_strings.nothingSelected,statusSearching:wpdatatables_frontend_strings.sLoadingRecords,currentlySelected:wpdatatables_frontend_strings.currentlySelected,errorText:wpdatatables_frontend_strings.errorText,searchPlaceholder:wpdatatables_frontend_strings.search,statusInitialized:wpdatatables_frontend_strings.statusInitialized,statusNoResults:wpdatatables_frontend_strings.statusNoResults,statusTooShort:wpdatatables_frontend_strings.statusTooShort}})}}
267
+ if(column.defaultValue){if($.inArray(column.editorInputType,['selectbox','multi-selectbox'])!==-1&&column.possibleValuesAjax===-1){if(typeof column.defaultValue==='object'){column.defaultValue=column.defaultValue.value}else{column.defaultValue=column.editorInputType==='multi-selectbox'&&!Array.isArray(column.defaultValue)?column.defaultValue.split('|'):column.defaultValue}
268
+ $('#wdt-frontend-modal .editDialogInput:not(.bootstrap-select):eq('+i+')').selectpicker('val',column.defaultValue)}else{$('#wdt-frontend-modal .editDialogInput:not(.bootstrap-select):eq('+i+')').val(column.defaultValue)}}}
269
+ if($('.fileupload-'+tableDescription.tableId).length){var $fileUploadEl=$('.fileupload-'+tableDescription.tableId);$($fileUploadEl).each(function(){$(this).parent().find('input.editDialogInput').val('');if($(this).data('column_type')=='icon'){$(this).parent().parent().find('.fileinput-preview').html('');$(this).parent().removeClass('fileinput-exists').addClass('fileinput-new');$(this).parent().parent().removeClass('fileinput-exists').addClass('fileinput-new')}else{$(this).parent().find('.fileinput-filename').text('');$(this).parent().removeClass('fileinput-exists').addClass('fileinput-new')}})}
270
+ if(modal.find('.wdt-edit-dialog-fields-block').find('.form-group').length==0){$('#wdt-frontend-modal div.wdt-no-editor-inputs-selected-alert').show()}
271
+ modal.modal('show')}});$(document).on('keyup','#wdt-frontend-modal',function(e){e.preventDefault();e.stopImmediatePropagation();if(e.which==27){$('#wdt-frontend-modal').modal('hide')}});$('#wdt-frontend-modal').on('hidden.bs.modal',function(e){$(tableDescription.selector+'_wrapper').append($(tableDescription.selector+'_edit_dialog').hide());$(tableDescription.selector+'_wrapper').append($(tableDescription.selector+'_edit_dialog_buttons').hide())});$('.delete_table_entry[aria-controls="'+tableDescription.tableId+'"]').click(function(){if($(this).hasClass('disabled')){return!1}
272
+ $('.wpDataTablesPopover.editTools').hide();$('#wdt-delete-modal').modal('show');$('#wdt-browse-delete-button').click(function(e){e.preventDefault();e.stopImmediatePropagation();if(['manual','mysql'].indexOf(tableDescription.tableType)===-1){if(typeof wpDataTablesEditors[tableDescription.tableType]['delete']=='function'){wpDataTablesEditors[tableDescription.tableType]['delete'](tableDescription)}}else{var row=$(tableDescription.selector+' tr.selected').get(0);var data=wpDataTables[tableDescription.tableId].fnGetData(row);var id_val=data[tableDescription.idColumnIndex];$.ajax({url:tableDescription.adminAjaxBaseUrl,type:'POST',data:{action:'wdt_delete_table_row',id_key:tableDescription.idColumnKey,id_val:id_val,table_id:tableDescription.tableWpId,wdtNonce:$('#wdtNonceFrontendEdit').val()},success:function(){wpDataTables[tableDescription.tableId].fnDraw(!1);$('#wdt-delete-modal').modal('hide');wdtNotify(wpdatatables_edit_strings.success,wpdatatables_edit_strings.rowDeleted,'success')}})}})});if(tableDescription.popoverTools){$(tableDescription.selector+'_wrapper').css('position','relative');$('<div class="wpDataTablesPopover editTools '+tableDescription.tableId+'"></div>').prependTo(tableDescription.selector+'_wrapper').hide();$('.new_table_entry[aria-controls="'+tableDescription.tableId+'"]').prependTo(tableDescription.selector+'_wrapper .wpDataTablesPopover.editTools').css('float','right');$('.edit_table[aria-controls="'+tableDescription.tableId+'"]').prependTo(tableDescription.selector+'_wrapper .wpDataTablesPopover.editTools').css('float','right');$('.delete_table_entry[aria-controls="'+tableDescription.tableId+'"]').prependTo(tableDescription.selector+'_wrapper .wpDataTablesPopover.editTools').css('float','right')}
273
+ var clickEvent=function(e){if(!$(e.target).is('a')&&!$(e.target).is('button')){e.preventDefault();e.stopImmediatePropagation();e.preventDefault()}
274
+ if($(this).hasClass('group')){return!1}
275
+ var popoverVerticalPosition=$(this).offset().top-$(tableDescription.selector+'_wrapper').offset().top-$('.wpDataTablesPopover.editTools').outerHeight()-7;var editedRow=($(this).children('').hasClass('editing'))?!0:!1;if($(this).hasClass('selected')){$(tableDescription.selector+' tbody tr').removeClass('selected');wpDataTablesSelRows[tableDescription.tableId]=-1}else if(!$(this).find('td').hasClass('dataTables_empty')||tableDescription.popoverTools){$(tableDescription.selector+' tbody tr').removeClass('selected');$(this).addClass('selected');wpDataTablesSelRows[tableDescription.tableId]=wpDataTables[tableDescription.tableId].fnGetPosition($(tableDescription.selector+' tbody tr.selected').get(0))}
276
+ if($(tableDescription.selector+' tbody tr.selected').length>0){$('.edit_table[aria-controls="'+tableDescription.tableId+'"]').removeClass('disabled');$('.delete_table_entry[aria-controls="'+tableDescription.tableId+'"]').removeClass('disabled');$('.master_detail[aria-controls="'+tableDescription.tableId+'"]').removeClass('disabled');if(!editedRow){$('.wpDataTablesPopover.editTools.'+tableDescription.tableId+'').show().css('top',popoverVerticalPosition)}else{return!1}}else{$('.edit_table[aria-controls="'+tableDescription.tableId+'"]').addClass('disabled');$('.delete_table_entry[aria-controls="'+tableDescription.tableId+'"]').addClass('disabled');$('.master_detail[aria-controls="'+tableDescription.tableId+'"]').addClass('disabled');$('.wpDataTablesPopover.editTools.'+tableDescription.tableId+'').hide()}};var ua=navigator.userAgent,event=(ua.match(/iPad/i))?"touchstart":"click";$(document).off(event,tableDescription.selector+' tbody tr').on(event,tableDescription.selector+' tbody tr',clickEvent);$(document).on('click',tableDescription.selector+'_edit_dialog a.wdt-detach-attachment-file, a.wdt-detach-attachment-file',function(e){e.preventDefault();e.stopImmediatePropagation();if($(this).parent().find('span.fileupload-'+tableDescription.tableId).data('column_type')=='icon'){$(this).parent().find('input.editDialogInput').val('');$(this).parent().parent().find('.fileinput-preview').html('');$(this).parents('.fileinput-exists').removeClass('fileinput-exists').addClass('fileinput-new')}else{$(this).parent().find('input.editDialogInput').val('');$(this).parent().find('.fileinput-filename').text('');$(this).parent().removeClass('fileinput-exists').addClass('fileinput-new')}})}
277
+ $(document).on('focusin',function(e){if($(e.target).closest(".mce-window").length){e.stopImmediatePropagation()}});if(tableDescription.masterDetail!==undefined&&tableDescription.masterDetail){for(var i in wpDataTablesHooks.onRenderDetails){wpDataTablesHooks.onRenderDetails[i](tableDescription)}}
278
+ if(tableDescription.filterInForm==!0){if($('#wdt-filter-widget').length){$('.wpDataTablesFilter').appendTo('#wdt-filter-widget')}}
279
+ return wpDataTables[tableDescription.tableId]};$('table.wpDataTable').each(function(){var tableDescription=JSON.parse($('#'+$(this).data('described-by')).val());wdtRenderDataTable($(this),tableDescription)})})})(jQuery);function wdtApplyCellAction($cell,action,setVal){switch(action){case 'setCellColor':$cell.attr('style','background-color: '+setVal+' !important');break;case 'defaultCellColor':$cell.attr('style','background-color: "" !important');break;case 'setCellContent':$cell.html(setVal);break;case 'setCellClass':$cell.addClass(setVal);break;case 'removeCellClass':$cell.removeClass(setVal);break;case 'setRowColor':$cell.closest('tr').find('td').attr('style','background-color: '+setVal+' !important');break;case 'defaultRowColor':$cell.closest('tr').find('td').attr('style','background-color: "" !important');break;case 'setRowClass':$cell.closest('tr').addClass(setVal);break;case 'addColumnClass':var index=$cell.index()+1;$cell.closest('table.wpDataTable').find('tbody td:nth-child('+index+')').addClass(setVal);break;case 'setColumnColor':var index=$cell.index()+1;$cell.closest('table.wpDataTable').find('tbody td:nth-child('+index+')').attr('style','background-color: '+setVal+' !important');break}}
280
function wdtDialog(str,title){var dialogId=Math.floor((Math.random()*1000)+1);var editModal=jQuery('.wdt-frontend-modal').clone();editModal.attr('id','remodal-'+dialogId);editModal.find('.modal-title').html(title);editModal.find('.modal-header').append(str);return editModal}
281
function wdtAddOverlay(table_selector){jQuery(table_selector).addClass('overlayed')}
282
function wdtRemoveOverlay(table_selector){jQuery(table_selector).removeClass('overlayed')}
283
function getPurifiedValue(element,responsive){if(responsive){var cellVal=element.children('.columnValue').html()}else{cellVal=element.clone().children().remove().end().html()}
284
+ return cellVal}
285
function wdtCheckConditionalFormatting(conditionalFormattingRules,params,element,responsive){var cellVal='';var ruleVal='';var ruleMatched=!1;if((params.columnType=='int')||(params.columnType=='float')){cellVal=parseFloat(wdtUnformatNumber(getPurifiedValue(element,responsive),params.thousandsSeparator,params.decimalSeparator,!0))
286
+ ruleVal=conditionalFormattingRules.cellVal}else if(params.columnType=='date'){cellVal=moment(getPurifiedValue(element,responsive),params.momentDateFormat).toDate();if(conditionalFormattingRules.cellVal=='%TODAY%'){ruleVal=moment().startOf('day').toDate()}else{ruleVal=moment(conditionalFormattingRules.cellVal,params.momentDateFormat).toDate()}
287
+ if(conditionalFormattingRules.cellVal=='%LAST_WEEK%'){conditionalFormattingRules.ifClause='%LAST_WEEK%'
288
+ ruleVal=[moment().subtract(1,'weeks').startOf('isoWeek').toDate(),moment().subtract(1,'weeks').endOf('isoWeek').toDate()]}
289
+ if(conditionalFormattingRules.cellVal=='%THIS_WEEK%'){conditionalFormattingRules.ifClause='%THIS_WEEK%'
290
+ ruleVal=[moment().startOf('isoweek').toDate(),moment().endOf('isoweek').toDate()]}
291
+ if(conditionalFormattingRules.cellVal=='%NEXT_WEEK%'){conditionalFormattingRules.ifClause='%LAST_WEEK%'
292
+ ruleVal=[moment().add(1,'weeks').startOf('isoWeek').toDate(),moment().add(1,'weeks').endOf('isoWeek').toDate()]}
293
+ if(conditionalFormattingRules.cellVal=='%LAST_30_DAYS%'){conditionalFormattingRules.ifClause='%LAST_30_DAYS%'
294
+ ruleVal=[moment().add(-30,'days').startOf('day').toDate(),moment().toDate()]}
295
+ if(conditionalFormattingRules.cellVal=='%LAST_MONTH%'){conditionalFormattingRules.ifClause='%LAST_MONTH%'
296
+ ruleVal=[moment().add(-1,'months').startOf('months').toDate(),moment().startOf('month').toDate()]}
297
+ if(conditionalFormattingRules.cellVal=='%NEXT_MONTH%'){conditionalFormattingRules.ifClause='%NEXT_MONTH%'
298
+ ruleVal=[moment().add(1,'months').startOf('months').toDate(),moment().add(2,'months').startOf('months').toDate()]}
299
+ if(conditionalFormattingRules.cellVal=='%THIS_MONTH%'){conditionalFormattingRules.ifClause='%THIS_MONTH%'
300
+ ruleVal=[moment().startOf('months').toDate(),moment().endOf('month').toDate()]}}else if(params.columnType=='datetime'){if(conditionalFormattingRules.cellVal=='%TODAY%'){cellVal=moment(getPurifiedValue(element,responsive),params.momentDateFormat+' '+params.momentTimeFormat).startOf('day').toDate();ruleVal=moment().startOf('day').toDate()}else{cellVal=moment(getPurifiedValue(element,responsive),params.momentDateFormat+' '+params.momentTimeFormat).toDate();ruleVal=moment(conditionalFormattingRules.cellVal,params.momentDateFormat+' '+params.momentTimeFormat).toDate()}
301
+ if(conditionalFormattingRules.cellVal=='%LAST_WEEK%'){conditionalFormattingRules.ifClause='%LAST_WEEK%'
302
+ ruleVal=[moment().subtract(1,'weeks').startOf('isoWeek').toDate(),moment().subtract(1,'weeks').endOf('isoWeek').toDate()]}
303
+ if(conditionalFormattingRules.cellVal=='%THIS_WEEK%'){conditionalFormattingRules.ifClause='%THIS_WEEK%'
304
+ ruleVal=[moment().startOf('isoweek').toDate(),moment().endOf('isoweek').toDate()]}
305
+ if(conditionalFormattingRules.cellVal=='%NEXT_WEEK%'){conditionalFormattingRules.ifClause='%LAST_WEEK%'
306
+ ruleVal=[moment().add(1,'weeks').startOf('isoWeek').toDate(),moment().add(1,'weeks').endOf('isoWeek').toDate()]}
307
+ if(conditionalFormattingRules.cellVal=='%LAST_30_DAYS%'){conditionalFormattingRules.ifClause='%LAST_30_DAYS%'
308
+ ruleVal=[moment().add(-30,'days').startOf('day').toDate(),moment().toDate()]}
309
+ if(conditionalFormattingRules.cellVal=='%LAST_MONTH%'){conditionalFormattingRules.ifClause='%LAST_MONTH%'
310
+ ruleVal=[moment().add(-1,'months').startOf('months').toDate(),moment().startOf('month').toDate()]}
311
+ if(conditionalFormattingRules.cellVal=='%NEXT_MONTH%'){conditionalFormattingRules.ifClause='%NEXT_MONTH%'
312
+ ruleVal=[moment().add(1,'months').startOf('months').toDate(),moment().add(2,'months').startOf('months').toDate()]}
313
+ if(conditionalFormattingRules.cellVal=='%THIS_MONTH%'){conditionalFormattingRules.ifClause='%THIS_MONTH%'
314
+ ruleVal=[moment().startOf('months').toDate(),moment().endOf('month').toDate()]}}else if(params.columnType=='time'){cellVal=moment(getPurifiedValue(element,responsive),params.momentTimeFormat).toDate();ruleVal=moment(conditionalFormattingRules.cellVal,params.momentTimeFormat).toDate()}else{cellVal=getPurifiedValue(element,responsive);ruleVal=conditionalFormattingRules.cellVal}
315
+ switch(conditionalFormattingRules.ifClause){case 'lt':ruleMatched=cellVal<ruleVal;break;case 'lteq':ruleMatched=cellVal<=ruleVal;break;case 'eq':if(params.columnType=='date'||params.columnType=='datetime'||params.columnType=='time'){cellVal=cellVal!=null?cellVal.getTime():null;ruleVal=ruleVal!=null?ruleVal.getTime():null}
316
+ ruleMatched=cellVal==ruleVal;break;case 'neq':if(params.columnType=='date'||params.columnType=='datetime'){cellVal=cellVal!=null?cellVal.getTime():null;ruleVal=ruleVal!=null?ruleVal.getTime():null}
317
+ ruleMatched=cellVal!=ruleVal;break;case 'gteq':ruleMatched=cellVal>=ruleVal;break;case 'gt':ruleMatched=cellVal>ruleVal;break;case 'contains':ruleMatched=cellVal.indexOf(ruleVal)!==-1;break;case 'contains_not':ruleMatched=cellVal.indexOf(ruleVal)==-1;break;case '%THIS_WEEK%':ruleMatched=moment(cellVal)>=moment(ruleVal[0])&&moment(cellVal)<=moment(ruleVal[1]);break;case '%LAST_WEEK%':ruleMatched=moment(cellVal)>=moment(ruleVal[0])&&moment(cellVal)<=moment(ruleVal[1]);break;case '%NEXT_WEEK%':ruleMatched=moment(cellVal)>=moment(ruleVal[0])&&moment(cellVal)<=moment(ruleVal[1]);break;case '%LAST_30_DAYS%':ruleMatched=moment(cellVal)>=moment(ruleVal[0])&&moment(cellVal)<=moment(ruleVal[1]);break;case '%LAST_MONTH%':ruleMatched=moment(cellVal)>=moment(ruleVal[0])&&moment(cellVal)<moment(ruleVal[1]);break;case '%NEXT_MONTH%':ruleMatched=moment(cellVal)>=moment(ruleVal[0])&&moment(cellVal)<moment(ruleVal[1]);break;case '%THIS_MONTH%':ruleMatched=moment(cellVal)>=moment(ruleVal[0])&&moment(cellVal)<=moment(ruleVal[1]);break}
318
+ if(ruleMatched){wdtApplyCellAction(element,conditionalFormattingRules.action,conditionalFormattingRules.setVal)}}
319
jQuery.fn.dataTableExt.oStdClasses.sWrapper="wpDataTables wpDataTablesWrapper";jQuery.fn.dataTable.ext.classes.sLengthSelect='selectpicker length_menu';jQuery.fn.dataTable.ext.classes.sFilterInput='form-control'
assets/js/wpdatatables/wpdatatables.js CHANGED
@@ -148,7 +148,7 @@ var wdtRenderDataTable = null;
148
* Loop through all tables on the page and render the wpDataTables elements
149
*/
150
$('table.wpDataTable').each(function () {
151
- var tableDescription = $.parseJSON($('#' + $(this).data('described-by')).val());
152
wdtRenderDataTable($(this), tableDescription);
153
});
154
148
* Loop through all tables on the page and render the wpDataTables elements
149
*/
150
$('table.wpDataTable').each(function () {
151
+ var tableDescription = JSON.parse($('#' + $(this).data('described-by')).val());
152
wdtRenderDataTable($(this), tableDescription);
153
});
154
assets/js/wpdatatables/wpdatatables.min.js CHANGED
@@ -1 +1 @@
1
- function wdtApplyCellAction(a,b,c){switch(b){case"setCellColor":a.css("background-color",c);break;case"defaultCellColor":a.css("background-color","");break;case"setCellContent":a.html(c);break;case"setCellClass":a.addClass(c);break;case"removeCellClass":a.removeClass(c);break;case"setRowColor":a.closest("tr").find("td").css("background-color",c);break;case"defaultRowColor":a.closest("tr").find("td").css("background-color","");break;case"setRowClass":a.closest("tr").addClass(c);break;case"addColumnClass":var d=a.index()+1;a.closest("table.wpDataTable").find("tbody td:nth-child("+d+")").addClass(c);break;case"setColumnColor":var d=a.index()+1;a.closest("table.wpDataTable").find("tbody td:nth-child("+d+")").css("background-color",c)}}function wdtDialog(a,b){var c=Math.floor(1e3*Math.random()+1),d='<div class="remodal wpDataTables wdtRemodal" id="remodal-'+c+'"><h3>'+b+"</h3>";return d+=a,d+="</div>",jQuery(d).remodal({type:"inline",preloader:!1}),jQuery("#remodal-"+c)}function wdtAddOverlay(a){jQuery(a).addClass("overlayed")}function wdtRemoveOverlay(a){jQuery(a).removeClass("overlayed")}var wpDataTables={},wpDataTableDialogs={},wpDataTablesSelRows={},wpDataTablesFunctions={},wpDataTablesUpdatingFlags={},wpDataTablesResponsiveHelpers={},wdtBreakpointDefinition={tablet:1024,phone:480},wdtCustomUploader=null;!function(a){a(function(){a("table.wpDataTable").each(function(){var b=a.parseJSON(a("#"+a(this).data("described-by")).val()),c=b.dataTableParams;if(b.responsive?(wpDataTablesResponsiveHelpers[b.tableId]=!1,c.fnPreDrawCallback=function(){wpDataTablesResponsiveHelpers[b.tableId]||("undefined"!=typeof b.mobileWidth&&(wdtBreakpointDefinition.phone=parseInt(b.mobileWidth)),"undefined"!=typeof b.tabletWidth&&(wdtBreakpointDefinition.tablet=parseInt(b.tabletWidth)),wpDataTablesResponsiveHelpers[b.tableId]=new ResponsiveDatatablesHelper(a(b.selector).dataTable(),wdtBreakpointDefinition)),wdtAddOverlay("#"+b.tableId)},c.fnRowCallback=function(a,c,d,e){wpDataTablesResponsiveHelpers[b.tableId].createExpandIcon(a)},b.editable||(c.fnDrawCallback=function(){wpDataTablesResponsiveHelpers[b.tableId].respond(),wdtRemoveOverlay("#"+b.tableId)})):c.fnPreDrawCallback=function(){wdtAddOverlay("#"+b.tableId)},b.editable&&("undefined"==typeof wpDataTablesFunctions[b.tableId]&&(wpDataTablesFunctions[b.tableId]={}),wpDataTablesSelRows[b.tableId]=-1,c.fnDrawCallback=function(){if(wdtRemoveOverlay("#"+b.tableId),b.responsive&&wpDataTablesResponsiveHelpers[b.tableId].respond(),wpDataTablesSelRows[b.tableId]==-2){var c=wpDataTables[b.tableId].fnSettings()._iDisplayLength-1;a(b.selector+" > tbody > tr").removeClass("selected"),wpDataTablesSelRows[b.tableId]=wpDataTables[b.tableId].fnGetPosition(a(b.selector+" > tbody > tr:eq("+c+")").get(0)),a(b.selector+" > tbody > tr:eq("+c+")").addClass("selected")}else if(wpDataTablesSelRows[b.tableId]==-3){var c=0;a(b.selector+" > tbody > tr").removeClass("selected"),wpDataTablesSelRows[b.tableId]=wpDataTables[b.tableId].fnGetPosition(a(b.selector+" > tbody > tr:eq("+c+")").get(0)),a(b.selector+" > tbody > tr:eq("+c+")").addClass("selected")}if(a(b.selector+"_edit_dialog").is(":visible")){var d=wpDataTables[b.tableId].fnGetData(wpDataTablesSelRows[b.tableId]);wpDataTablesFunctions[b.tableId].applyData(d)}a(b.selector+"_edit_dialog").parent().removeClass("overlayed"),wpDataTablesUpdatingFlags[b.tableId]=!1},wpDataTablesFunctions[b.tableId].applyData=function(c){a(c).each(function(c,d){if(d)var e=d.toString();else var e="";e.indexOf("span")!=-1&&(e=e.replace(/<span>/g,"").replace(/<\/span>/g,"")),e.indexOf("<br/>")!=-1&&(e=e.replace(/<br\/>/g,"\n"));var f=a("#"+b.tableId+"_edit_dialog .editDialogInput:eq("+c+")"),g=f.data("input_type"),h=f.data("column_type");if("multi-selectbox"==g){f.find("option").removeAttr("selected");var i=e.split(", ");f.val(i),f.selecter("refresh")}else"attachment"==g?""!=e?(void 0!=a(e).children("img").first().attr("src")?e=a(e).children("img").first().attr("src")+"||"+a(e).attr("href"):void 0!=a(e).attr("href")&&(e=a(e).attr("href")),f.parent().parent().find("div.files").html("<p>"+e.split("/").pop()+' [<a href="#" data-key="'+f.attr("id")+'" class="wdtdeleteFile">'+wpdatatables_frontend_strings.detach_file+"</a>]</p>")):f.parent().parent().find("div.files").html(""):(e.indexOf("<a ")!=-1&&a.inArray(h,["link","email"])!==-1&&($link=a(e),e=$link.attr("href").indexOf($link.html())===-1?$link.attr("href").replace("mailto:","")+"||"+$link.html():$link.html()),"mce-editor"==g&&(tinymce.execCommand("mceRemoveEditor",!0,f.attr("id")),tinymce.init({selector:"#"+f.attr("id"),init_instance_callback:function(a){a.setContent(e)},menubar:!1}))),"int"==f.data("column_type")&&(e=e.replace(/\,/g,"").replace(/\./g,"")),f.val(e).css("border",""),"selectbox"==g&&(f.val(e),f.selecter("destroy").selecter())})},wpDataTablesFunctions[b.tableId].saveTableData=function(c,d){void 0===typeof c&&(c=!1),void 0===typeof d&&(d=!1),a(b.selector+"_edit_dialog").parent().addClass("overlayed"),wpDataTablesUpdatingFlags[b.tableId]=!0;var e={table_id:b.tableWpId},f=[],g=!0,h="";return b.popoverTools&&a(".wpDataTablesPopover.editTools").hide(),"undefined"!=typeof tinymce&&tinymce.triggerSave(),a(b.selector+"_edit_dialog .editDialogInput").each(function(){if("email"==a(this).data("input_type")){if(""!=a(this).val()){var c=wdtValidateEmail(a(this).val());c?a(this).removeClass("error"):(g=!1,a(this).addClass("error"),h+="<li>"+wpdatatables_frontend_strings.invalid_email+" "+a(this).data("column_header")+"</li>")}}else if("link"==a(this).data("input_type")&&""!=a(this).val()){var c=wdtValidateURL(a(this).val());c?a(this).removeClass("error"):(g=!1,a(this).addClass("error"),h+="<li>"+wpdatatables_frontend_strings.invalid_link+" "+a(this).data("column_header")+"</li>")}a(this).hasClass("mandatory")&&(""==a(this).val()?(a(this).addClass("error"),g=!1,h+="<li>"+a(this).data("column_header")+" "+wpdatatables_frontend_strings.cannot_be_empty+"</li>"):g&&a(this).removeClass("error")),a(this).hasClass("datepicker")?e[a(this).data("key")]=a.datepicker.formatDate(b.datepickFormat,a.datepicker.parseDate(b.datepickFormat,a(this).val())):"multi-selectbox"==a(this).data("input_type")?a(this).val()&&(e[a(this).data("key")]=a(this).val().join(", ")):e[a(this).data("key")]=a(this).val(),f.push(e[a(this).data("key")])}),g?(wpDataTablesUpdatingFlags[b.tableId]=!0,a.ajax({url:b.adminAjaxBaseUrl,type:"POST",dataType:"json",data:{action:"wdt_save_table_frontend",formdata:e},success:function(e){if(a(b.selector+"_edit_dialog").parent().removeClass("overlayed"),""==e.error){var g=e.success;if(e.is_new&&(c=!0),g?(a(b.selector+"_edit_dialog tr.idRow .editDialogInput").val(g),c&&(wpDataTables[b.tableId].fnDraw(!1),a('.edit_table[aria-controls="'+b.tableId+'"]').addClass("disabled"))):(wpDataTables[b.tableId].fnDraw(!1),a('.edit_table[aria-controls="'+b.tableId+'"]').addClass("disabled")),a(b.selector+"_edit_dialog div.data_saved_notify").fadeIn("300"),setTimeout(function(){a(b.selector+"_edit_dialog div.data_saved_notify").fadeOut("300")},5e3),!e.is_new&&a(b.selector+" > tbody > tr.selected").length){var h=wpDataTables[b.tableId].fnGetPosition(a(b.selector+" > tbody > tr.selected").get(0));wpDataTables[b.tableId].fnSettings().aoData[h]._aData=f}d&&a.remodal.lookup[wpDataTableDialogs[b.tableId].data("remodal")].close()}else a(b.selector+"_edit_dialog div.data_validation_notify").html(e.error).fadeIn("300"),setTimeout(function(){a(b.selector+"_edit_dialog div.data_validation_notify").fadeOut("300")},5e3)}}),!0):(a(b.selector+"_edit_dialog").parent().removeClass("overlayed"),a(b.selector+"_edit_dialog div.data_validation_notify").html("<ul>"+h+"</ul>").fadeIn("300"),setTimeout(function(){a(b.selector+"_edit_dialog div.data_validation_notify").fadeOut("300")},5e3),!1)}),b.responsive||b.editable||(c.fnDrawCallback=function(){wdtRemoveOverlay("#"+b.tableId)}),c.fnInitComplete=function(a,c){jQuery("#"+b.tableId+"_length select").selecter()},wpDataTables[b.tableId]=a(b.selector).dataTable(c),b.serverSide&&parseInt(b.autoRefreshInterval)>0&&setInterval(function(){wpDataTables[b.tableId].fnDraw(!1)},1e3*parseInt(b.autoRefreshInterval)),wpDataTables[b.tableId].addOnDrawCallback=function(a){if("function"==typeof a){var c=wpDataTables[b.tableId].fnSettings().aoDrawCallback.length+1;wpDataTables[b.tableId].fnSettings().aoDrawCallback.push({sName:"user_callback_"+c,fn:a})}},b.has_sum_columns&&(b.serverSide?wpDataTables[b.tableId].fnSettings().aoDrawCallback.push({sName:"updateSumRow",fn:function(c){var d=c.oInstance.api();for(var e in d.ajax.json().sum_columns_values)a("#"+b.tableId+' tfoot tr.sum_row td.sum_cell[data-column_header="'+e+'"]').html("&#8721; = "+d.ajax.json().sum_columns_values[e])}}):wpDataTables[b.tableId].fnSettings().aoDrawCallback.push({sName:"updateSumRow",fn:function(c){var d=c.oInstance.api();for(var e in b.sum_columns){var f=d.column(b.sum_columns[e]+":name",{search:"applied"}).data(),g=c.aoColumns[d.column(b.sum_columns[e]+":name").index()].wdtType,h=1==b.number_format?".":",",i=1==b.number_format?",":".";if(f.length>0)if(f.length>1)var j=f.reduce(function(a,b){return"int"==g?parseInt(wdtUnformatNumber(a,h,i,!1))+parseInt(wdtUnformatNumber(b,h,i,!1)):parseFloat(wdtUnformatNumber(a,h,i,!0))+parseFloat(wdtUnformatNumber(b,h,i,!1))});else if("int"==g)var j=parseInt(wdtUnformatNumber(f[0],h,i,!1));else var j=parseFloat(wdtUnformatNumber(f[0],h,i,!0));else j=0;if("int"==g)var k=wdtFormatNumber(j,0,i,h);else var k=wdtFormatNumber(j,b.decimal_places,i,h);a("#"+b.tableId+' tfoot tr.sum_row td.sum_cell[data-column_header="'+b.sum_columns[e]+'"]').html("&#8721; = "+k)}}})),b.conditional_formatting_columns&&(wpDataTables[b.tableId].fnSettings().aoDrawCallback.push({sName:"updateConditionalFormatting",fn:function(c){for(var d=0;d<b.conditional_formatting_columns.length;d++){var e=c.oInstance.api().column(b.conditional_formatting_columns[d]+":name",{search:"applied"}),f=c.aoColumns[e.index()].conditionalFormattingRules,g=c.aoColumns[e.index()].wdtType,h=1==b.number_format?".":",",i=1==b.number_format?",":".",j=b.datepickFormat,k=j.replace("dd","DD").replace("M","MMM").replace("mm","MM"),l=b.timeFormat.replace("H","H").replace("i","mm");for(var m in f){e.nodes();e.nodes().to$().each(function(){var b=!1;if("int"==g||"float"==g)var c=parseFloat(wdtUnformatNumber(a(this).html(),h,i,!0)),d=f[m].cellVal;else if("date"==g)var c=a.datepicker.parseDate(j,a(this).html()),d=a.datepicker.parseDate(j,f[m].cellVal);else if("datetime"==g)var c=moment(a(this).html(),k+" "+l).toDate(),d=moment(f[m].cellVal,k+" "+l).toDate();else if("time"==g)var c=moment(a(this).html(),l).toDate(),d=moment(f[m].cellVal,l).toDate();else var c=a(this).html(),d=f[m].cellVal;switch(f[m].ifClause){case"lt":b=c<d;break;case"lteq":b=c<=d;break;case"eq":"date"!=g&&"datetime"!=g&&"time"!=g||(c=null!=c?c.getTime():null,d=null!=d?d.getTime():null),b=c==d;break;case"neq":"date"!=g&&"datetime"!=g||(c=null!=c?c.getTime():null,d=null!=d?d.getTime():null),b=c!=d;break;case"gteq":b=c>=d;break;case"gt":b=c>d;break;case"contains":b=c.indexOf(d)!==-1;break;case"contains_not":b=c.indexOf(d)==-1}b&&wdtApplyCellAction(a(this),f[m].action,f[m].setVal)})}}}}),b.serverSide||wpDataTables[b.tableId].fnDraw()),wpDataTables[b.tableId].checkSelectedLimits=function(){if(!wpDataTablesUpdatingFlags[b.tableId]){var c=a(b.selector+" > tbody > tr.selected").index();c+wpDataTables[b.tableId].fnSettings()._iDisplayStart==wpDataTables[b.tableId].fnSettings()._iRecordsDisplay-1?a(b.selector+"_next_edit_dialog").prop("disabled",!0):a(b.selector+"_next_edit_dialog").prop("disabled",!1),0==c&&0==wpDataTables[b.tableId].fnSettings()._iDisplayStart?a(b.selector+"_prev_edit_dialog").prop("disabled",!0):a(b.selector+"_prev_edit_dialog").prop("disabled",!1)}},0==b.columnsFixed&&b.groupingEnabled&&wpDataTables[b.tableId].rowGrouping({iGroupingColumnIndex:b.groupingColumnIndex}),b.advancedFilterEnabled&&(a("#"+b.tableId).dataTable().columnFilter(b.advancedFilterOptions),a.datepicker.regional[""].dateFormat=b.datepickFormat,a.datepicker.setDefaults(a.datepicker.regional[""])),b.editable){wpDataTableDialogs[b.tableId]=wdtDialog("","Edit"),wpDataTableDialogs[b.tableId].addClass("wdtEditDialog"),a(b.selector+"_edit_dialog").appendTo(wpDataTableDialogs[b.tableId]).show(),a(b.selector+"_edit_dialog select").selecter(),a(b.selector+"_close_edit_dialog").click(function(c){c.preventDefault(),a.remodal.lookup[wpDataTableDialogs[b.tableId].data("remodal")].close()}),a(b.selector+"_prev_edit_dialog").click(function(c){c.preventDefault();var d=a(b.selector+" > tbody > tr.selected").index();if(d>0){a(b.selector+" > tbody > tr.selected").removeClass("selected"),a(b.selector+" > tbody > tr:eq("+(d-1)+")").addClass("selected",300),wpDataTablesSelRows[b.tableId]=wpDataTables[b.tableId].fnGetPosition(a(b.selector+" > tbody > tr.selected").get(0));var e=wpDataTables[b.tableId].fnGetData(wpDataTablesSelRows[b.tableId]);wpDataTablesFunctions[b.tableId].applyData(e)}else{var f=Math.ceil(wpDataTables[b.tableId].fnSettings()._iDisplayStart/wpDataTables[b.tableId].fnSettings()._iDisplayLength)+1;if(1==f)return;wpDataTablesSelRows[b.tableId]=-2,wpDataTablesUpdatingFlags[b.tableId]=!0,wpDataTables[b.tableId].fnPageChange("previous"),a(b.selector+"_edit_dialog").parent().addClass("overlayed")}wpDataTables[b.tableId].checkSelectedLimits()}),a(b.selector+"_next_edit_dialog").click(function(c){c.preventDefault();var d=a(b.selector+" > tbody > tr.selected").index();if(d<wpDataTables[b.tableId].fnSettings()._iDisplayLength-1){a(b.selector+" > tbody > tr.selected").removeClass("selected"),a(b.selector+" > tbody > tr:eq("+(d+1)+")").addClass("selected",300),wpDataTablesSelRows[b.tableId]=wpDataTables[b.tableId].fnGetPosition(a(b.selector+" > tbody > tr.selected").get(0));var e=wpDataTables[b.tableId].fnGetData(wpDataTablesSelRows[b.tableId]);wpDataTablesFunctions[b.tableId].applyData(e)}else{var f=Math.ceil(wpDataTables[b.tableId].fnSettings()._iDisplayStart/wpDataTables[b.tableId].fnSettings()._iDisplayLength)+1,g=Math.ceil(wpDataTables[b.tableId].fnSettings()._iRecordsTotal/wpDataTables[b.tableId].fnSettings()._iDisplayLength);if(f==g)return;wpDataTablesSelRows[b.tableId]=-3,wpDataTablesUpdatingFlags[b.tableId]=!0,wpDataTables[b.tableId].fnPageChange("next"),wpDataTables[b.tableId].fnDraw(!1),a(b.selector+"_edit_dialog").parent().addClass("overlayed")}wpDataTables[b.tableId].checkSelectedLimits()}),a(b.selector+"_apply_edit_dialog").click(function(a){a.preventDefault(),wpDataTablesFunctions[b.tableId].saveTableData()}),a(b.selector+"_ok_edit_dialog").click(function(a){a.preventDefault(),wpDataTablesFunctions[b.tableId].saveTableData(!0,!0)}),a(b.selector+"_edit_dialog input").keyup(function(c){13==c.which&&a(b.selector+"_ok_edit_dialog").click()}),1==b.number_format?a(b.selector+"_edit_dialog input.maskMoney").maskMoney({thousands:".",decimal:",",precision:parseInt(b.decimal_places),allowNegative:!0}):a(b.selector+"_edit_dialog input.maskMoney").maskMoney({thousands:",",decimal:".",precision:parseInt(b.decimal_places),allowNegative:!0});var d=b.datepickFormat.replace(/y/g,"yy").replace(/Y/g,"yyyy").replace(/M/g,"mmm"),e=function(b,c,e){var f=a(b).pickadate({format:d,formatSubmit:d,selectYears:20,selectMonths:!0,container:".wpDataTablesWrapper",onClose:c,firstDay:1}),g=f.pickadate("picker");"opened"==e&&g.open()};e(b.selector+"_edit_dialog input.datepicker");var f=b.timeFormat,g=parseInt(b.timepickRange)?parseInt(b.timepickRange):5,h=function(b,c,d){var e=a(b).pickatime({interval:g,format:f,container:".wpDataTablesWrapper",onClose:c}).pickatime("picker");"opened"==d&&e.open()};h(b.selector+"_edit_dialog input.timepicker");var i=function(c,e,g){var h=parseInt(b.timepickRange)?parseInt(b.timepickRange):5,i=a(c),j='<div style="display: none" class="dtpick_block">';j+='<input type="text" class="dt_datepick" />',j+='<input type="text" class="dt_timepick" />',j+="</div>",a(j).insertBefore(i);var k=i.parent().find(".dtpick_block input.dt_datepick").pickadate({format:d,formatSubmit:d,selectYears:!0,selectMonths:!0,container:".wpDataTablesWrapper",onSet:function(a){"clear"in a&&i.val(""),"select"in a&&l.open()}}).pickadate("picker"),l=i.parent().find(".dtpick_block input.dt_timepick").pickatime({container:".wpDataTablesWrapper",interval:h,format:f,onRender:function(){a("<button>"+wpdatatables_frontend_strings.back_to_date+"</button>").on("click",function(){l.close(),k.open()}).prependTo(this.$root.find(".picker__box"))},onSet:function(a){"select"in a&&i.val(k.get()+" "+l.get()).change(),"clear"in a&&i.val("")}}).pickatime("picker");i.on("focus",function(){k.open()}).on("click",function(a){a.preventDefault(),a.stopImmediatePropagation(),k.open()}),"opened"==g&&k.open()};i(b.selector+"_edit_dialog input.datetimepicker");var j=function(b){a(".fileupload_"+b).length&&(wdtCustomUploader=wp.media({title:wpdatatables_frontend_strings.select_upload_file,button:{text:wpdatatables_frontend_strings.choose_file},multiple:!1}),a("button.fileupload_"+b).click(function(b){b.preventDefault();var c=a(this),d=a("#"+c.data("rel_input"));"icon"==c.data("column_type")?(wdtCustomUploader=wp.media({title:wpdatatables_frontend_strings.select_upload_file,button:{text:wpdatatables_frontend_strings.choose_file},multiple:!1,library:{type:"image"}}),wdtCustomUploader.off("select").on("select",function(){attachment=wdtCustomUploader.state().get("selection").first().toJSON();var b=attachment.url;attachment.sizes.thumbnail&&(b=attachment.sizes.thumbnail.url+"||"+b),d.val(b),a("#files_"+c.data("rel_input")).html("<p>"+attachment.filename+' [<a href="#" data-key="'+c.data("rel_input")+'" class="wdtdeleteFile">'+wpdatatables_frontend_strings.detach_file+"</a>]</p>")})):wdtCustomUploader.off("select").on("select",function(){attachment=wdtCustomUploader.state().get("selection").first().toJSON(),d.val(attachment.url),a("#files_"+c.data("rel_input")).html("<p>"+attachment.filename+' [<a href="#" data-key="'+c.data("rel_input")+'" class="wdtdeleteFile">'+wpdatatables_frontend_strings.detach_file+"</a>]</p>")}),wdtCustomUploader.open()}))};j(b.tableId),a('.edit_table[aria-controls="'+b.tableId+'"]').click(function(){if(a(this).hasClass("disabled"))return!1;var c=a(b.selector+" tr.selected").get(0),d=wpDataTables[b.tableId].fnGetData(c);wpDataTablesFunctions[b.tableId].applyData(d),wpDataTables[b.tableId].checkSelectedLimits(),a.remodal.lookup[wpDataTableDialogs[b.tableId].data("remodal")].open()}),b.inlineEditing&&new inlineEditClass(b,c,a),a('.new_table_entry[aria-controls="'+b.tableId+'"]').click(function(){if(a(b.selector+"_edit_dialog .editDialogInput").val("").css("border",""),a(b.selector+"_edit_dialog tr.idRow .editDialogInput").val("0"),a("#"+b.tableId+"_edit_dialog .editDialogInput").each(function(b){a(this).is("select")&&(a(this).find("option:first").attr("selected","selected"),a(this).selecter("refresh"))}),b.advancedFilterEnabled)for(var c in b.advancedFilterOptions.aoColumns){var d=b.advancedFilterOptions.aoColumns[c].defaultValue;""!=d&&(a("#"+b.tableId+"_edit_dialog .editDialogInput:eq("+c+")").val(d).change(),a("#"+b.tableId+"_edit_dialog .editDialogInput:eq("+c+")").is("select")&&(a("#"+b.tableId+"_edit_dialog .editDialogInput:eq("+c+")").val(d),a("#"+b.tableId+"_edit_dialog .editDialogInput:eq("+c+")").selecter("refresh")))}if(a.remodal.lookup[wpDataTableDialogs[b.tableId].data("remodal")].open(),a(".fileupload_"+b.tableId).length){a(".fileupload_"+b.tableId),a("#"+b.tableId+"_edit_dialog tr.idRow .editDialogInput").data("key"),a("#"+b.tableId+"_edit_dialog tr.idRow .editDialogInput").val();a("#"+b.tableId+'_edit_dialog input.editDialogInput[data-input_type="attachment"]').val(),a("#"+b.tableId+"_edit_dialog div.files").html("")}}),a('.delete_table_entry[aria-controls="'+b.tableId+'"]').click(function(){if(a(this).hasClass("disabled"))return!1;b.popoverTools&&a(".wpDataTablesPopover.editTools").hide();var c='<div id="delete_dialog_'+b.tableId+'">Delete this entry?</div>';$deleteDialog=wdtDialog(c,"Are you sure?"),$deleteDialog.append('<button class="btn deleteBtn">Delete</button>'),$deleteDialog.append('<button class="btn cancelBtn">Cancel</button>'),$deleteDialog.find(".deleteBtn").click(function(c){c.preventDefault();var d=a(b.selector+" tr.selected").get(0),e=wpDataTables[b.tableId].fnGetData(d),f=e[b.idColumnIndex];a.ajax({url:b.adminAjaxBaseUrl,type:"POST",data:{action:"wdt_delete_table_row",id_key:b.idColumnKey,id_val:f,table_id:b.tableWpId},success:function(){wpDataTables[b.tableId].fnDraw(!1),a.remodal.lookup[$deleteDialog.data("remodal")].close(),$deleteDialog.remove()}})}),$deleteDialog.find(".cancelBtn").click(function(b){a.remodal.lookup[$deleteDialog.data("remodal")].close(),$deleteDialog.remove()}),a.remodal.lookup[$deleteDialog.data("remodal")].open()}),b.popoverTools&&(a(b.selector+"_wrapper").css("position","relative"),a('<div class="wpDataTablesPopover editTools"></div>').prependTo(b.selector+"_wrapper").hide(),a('.new_table_entry[aria-controls="'+b.tableId+'"]').prependTo(b.selector+"_wrapper .wpDataTablesPopover.editTools").css("float","right"),a('.edit_table[aria-controls="'+b.tableId+'"]').prependTo(b.selector+"_wrapper .wpDataTablesPopover.editTools").css("float","right"),a('.delete_table_entry[aria-controls="'+b.tableId+'"]').prependTo(b.selector+"_wrapper .wpDataTablesPopover.editTools").css("float","right"));var k=function(c){var d=a(this).offset().top-a(b.selector+"_wrapper").offset().top-a(".wpDataTablesPopover.editTools").outerHeight()-7,e=!!a(this).children("").hasClass("editing");if(a(this).hasClass("selected")?(a(b.selector+" tbody tr").removeClass("selected"),wpDataTablesSelRows[b.tableId]=-1):(a(b.selector+" tbody tr").removeClass("selected"),a(this).addClass("selected"),wpDataTablesSelRows[b.tableId]=wpDataTables[b.tableId].fnGetPosition(a(b.selector+" tbody tr.selected").get(0))),a(b.selector+" tbody tr.selected").length>0){if(a('.edit_table[aria-controls="'+b.tableId+'"]').removeClass("disabled"),a('.delete_table_entry[aria-controls="'+b.tableId+'"]').removeClass("disabled"),b.popoverTools){if(e)return!1;a(".wpDataTablesPopover.editTools").show().css("top",d)}}else a('.edit_table[aria-controls="'+b.tableId+'"]').addClass("disabled"),a('.delete_table_entry[aria-controls="'+b.tableId+'"]').addClass("disabled"),b.popoverTools&&a(".wpDataTablesPopover.editTools").hide()},l=navigator.userAgent,m=l.match(/iPad/i)?"touchstart":"click";a(document).on(m,b.selector+" tbody tr",k),a(document).on("click",b.selector+"_edit_dialog a.wdtdeleteFile, a.wdtdeleteFile",function(b){b.preventDefault(),b.stopImmediatePropagation(),a("#"+a(this).data("key")).val(""),a(this).closest("div.files").html("")})}1==b.externalFilter&&a("#wdtFilterWidget").length&&a(".wpDataTablesFilter").appendTo("#wdtFilterWidget"),a(window).load(function(){b.hideBeforeLoad&&a(b.selector).show(300)})}),"undefined"!=typeof wpDataTablesCharts&&google.load("visualization","1",{packages:["corechart"],callback:function(){for(var a in wpDataTablesCharts){switch(wpDataTablesCharts[a].type){case"Line":var b=new google.visualization.LineChart(document.getElementById(wpDataTablesCharts[a].container));break;case"Area":var b=new google.visualization.AreaChart(document.getElementById(wpDataTablesCharts[a].container));break;case"Bar":var b=new google.visualization.BarChart(document.getElementById(wpDataTablesCharts[a].container));break;case"Column":var b=new google.visualization.ColumnChart(document.getElementById(wpDataTablesCharts[a].container));break;case"Pie":var b=new google.visualization.PieChart(document.getElementById(wpDataTablesCharts[a].container))}b.draw(google.visualization.arrayToDataTable(wpDataTablesCharts[a].values),wpDataTablesCharts[a].options)}}})}),a("button.wdtClearFilters").click(function(b){b.preventDefault(),a(".filter_column input:text").val(""),a(".filter_column select").val("").selecter("update"),a(".filter_column input:checkbox").removeAttr("checked").iCheck("update"),a(".wdtFilterDialog input:checkbox").removeAttr("checked").iCheck("update");for(var c in wpDataTables)wpDataTables[c].fnFilterClear()})}(jQuery),jQuery.fn.dataTableExt.oStdClasses.sWrapper="wpDataTables wpDataTablesWrapper";
1
+ var wpDataTables={},wpDataTablesSelRows={},wpDataTablesFunctions={},wpDataTablesUpdatingFlags={},wpDataTablesResponsiveHelpers={},wdtBreakpointDefinition={tablet:1024,phone:480},wdtCustomUploader=null,wdtRenderDataTable=null;function wdtApplyCellAction(a,e,t){switch(e){case"setCellColor":a.attr("style","background-color: "+t+" !important");break;case"defaultCellColor":a.attr("style",'background-color: "" !important');break;case"setCellContent":a.html(t);break;case"setCellClass":a.addClass(t);break;case"removeCellClass":a.removeClass(t);break;case"setRowColor":a.closest("tr").find("td").attr("style","background-color: "+t+" !important");break;case"defaultRowColor":a.closest("tr").find("td").attr("style",'background-color: "" !important');break;case"setRowClass":a.closest("tr").addClass(t);break;case"addColumnClass":var l=a.index()+1;a.closest("table.wpDataTable").find("tbody td:nth-child("+l+")").addClass(t);break;case"setColumnColor":l=a.index()+1;a.closest("table.wpDataTable").find("tbody td:nth-child("+l+")").attr("style","background-color: "+t+" !important")}}function wdtDialog(a,e){var t=Math.floor(1e3*Math.random()+1),l=jQuery(".wdt-frontend-modal").clone();return l.attr("id","remodal-"+t),l.find(".modal-title").html(e),l.find(".modal-header").append(a),l}function wdtAddOverlay(a){jQuery(a).addClass("overlayed")}function wdtRemoveOverlay(a){jQuery(a).removeClass("overlayed")}function getPurifiedValue(a,e){if(e)var t=a.children(".columnValue").html();else t=a.clone().children().remove().end().html();return t}function wdtCheckConditionalFormatting(a,e,t,l){var n="",o="",d=!1;switch("int"==e.columnType||"float"==e.columnType?(n=parseFloat(wdtUnformatNumber(getPurifiedValue(t,l),e.thousandsSeparator,e.decimalSeparator,!0)),o=a.cellVal):"date"==e.columnType?(n=moment(getPurifiedValue(t,l),e.momentDateFormat).toDate(),o="%TODAY%"==a.cellVal?moment().startOf("day").toDate():moment(a.cellVal,e.momentDateFormat).toDate()):"datetime"==e.columnType?"%TODAY%"==a.cellVal?(n=moment(getPurifiedValue(t,l),e.momentDateFormat+" "+e.momentTimeFormat).startOf("day").toDate(),o=moment().startOf("day").toDate()):(n=moment(getPurifiedValue(t,l),e.momentDateFormat+" "+e.momentTimeFormat).toDate(),o=moment(a.cellVal,e.momentDateFormat+" "+e.momentTimeFormat).toDate()):"time"==e.columnType?(n=moment(getPurifiedValue(t,l),e.momentTimeFormat).toDate(),o=moment(a.cellVal,e.momentTimeFormat).toDate()):(n=getPurifiedValue(t,l),o=a.cellVal),a.ifClause){case"lt":d=n<o;break;case"lteq":d=n<=o;break;case"eq":"date"!=e.columnType&&"datetime"!=e.columnType&&"time"!=e.columnType||(n=null!=n?n.getTime():null,o=null!=o?o.getTime():null),d=n==o;break;case"neq":"date"!=e.columnType&&"datetime"!=e.columnType||(n=null!=n?n.getTime():null,o=null!=o?o.getTime():null),d=n!=o;break;case"gteq":d=n>=o;break;case"gt":d=n>o;break;case"contains":d=-1!==n.indexOf(o);break;case"contains_not":d=-1==n.indexOf(o)}d&&wdtApplyCellAction(t,a.action,a.setVal)}!function(a){a(function(){wdtRenderDataTable=function(e,t){var l=t.dataTableParams;if(a('.wdt-column-sum[data-table-id="'+t.tableWpId+'"]').length){var n=[];a('.wdt-column-sum[data-table-id="'+t.tableWpId+'"]').each(function(){n.push(a(this).data("column-orig-header"))})}if(a('.wdt-column-avg[data-table-id="'+t.tableWpId+'"]').length){var o=[];a('.wdt-column-avg[data-table-id="'+t.tableWpId+'"]').each(function(){o.push(a(this).data("column-orig-header"))})}if(a('.wdt-column-min[data-table-id="'+t.tableWpId+'"]').length){var d=[];a('.wdt-column-min[data-table-id="'+t.tableWpId+'"]').each(function(){d.push(a(this).data("column-orig-header"))})}if(a('.wdt-column-max[data-table-id="'+t.tableWpId+'"]').length){var r=[];a('.wdt-column-max[data-table-id="'+t.tableWpId+'"]').each(function(){r.push(a(this).data("column-orig-header"))})}return t.serverSide&&(l.ajax.data=function(e){e.sumColumns=n,e.avgColumns=o,e.minColumns=d,e.maxColumns=r,e.currentUserId=a("#wdt-user-id-placeholder").val(),e.currentUserLogin=a("#wdt-user-login-placeholder").val(),e.currentPostIdPlaceholder=a("#wdt-post-id-placeholder").val(),e.wpdbPlaceholder=a("#wdt-wpdb-placeholder").val()}),t.hideBeforeLoad&&(l.fnInitComplete=function(){a(t.selector).animateFadeIn()}),wpDataTables[t.tableId]=a(t.selector).dataTable(l),(wpDataTables[t.tableId].fnSettings()._iDisplayLength>=wpDataTables[t.tableId].fnSettings().fnRecordsTotal()||-1===l.iDisplayLength)&&a(".dataTables_paginate").hide(),wpDataTables[t.tableId].fnSettings().aoDrawCallback.push({sName:"removePaginate",fn:function(e){var t=e.oInstance.api();t.page.len()>=t.page.info().recordsDisplay||-1===t.data().page.len()?a(".dataTables_paginate").hide():a(".dataTables_paginate").show()}}),wpDataTables[t.tableId].addOnDrawCallback=function(a){if("function"==typeof a){var e=wpDataTables[t.tableId].fnSettings().aoDrawCallback.length+1;wpDataTables[t.tableId].fnSettings().aoDrawCallback.push({sName:"user_callback_"+e,fn:a})}},0==t.columnsFixed&&t.groupingEnabled&&wpDataTables[t.tableId].rowGrouping({iGroupingColumnIndex:t.groupingColumnIndex}),wpDataTables[t.tableId]},a("table.wpDataTable").each(function(){var e=JSON.parse(a("#"+a(this).data("described-by")).val());wdtRenderDataTable(a(this),e)})})}(jQuery),jQuery.fn.dataTableExt.oStdClasses.sWrapper="wpDataTables wpDataTablesWrapper",jQuery.fn.dataTable.ext.classes.sLengthSelect="selectpicker length_menu",jQuery.fn.dataTable.ext.classes.sFilterInput="form-control";
config/config.inc.php CHANGED
@@ -9,7 +9,7 @@ defined('ABSPATH') or die("Cannot access pages directly.");
9
10
// Current version
11
12
- define('WDT_CURRENT_VERSION', '2.0.14');
13
14
/**
15
* Regular Expressions
9
10
// Current version
11
12
+ define('WDT_CURRENT_VERSION', '2.0.15');
13
14
/**
15
* Regular Expressions
controllers/wdt_functions.php CHANGED
@@ -209,7 +209,11 @@ function wdtActivationCreateTables() {
209
* Add rating massage on all admin pages after 2 weeks of using
210
*/
211
function wdtAdminRatingMessages() {
212
213
$installDate = get_option( 'wdtInstallDate' );
214
$currentDate = date( 'Y-m-d' );
215
$tempIgnoreDate = get_option( 'wdtTempFutureDate' );
@@ -218,7 +222,8 @@ function wdtAdminRatingMessages() {
218
$datetimeInstallDate = new DateTime( $installDate );
219
$datetimeCurrentDate = new DateTime( $currentDate );
220
$diffIntrval = round( ($datetimeCurrentDate->format( 'U' ) - $datetimeInstallDate->format( 'U' )) / (60 * 60 * 24) );
221
- if( $diffIntrval >= 14 && get_option( 'wdtRatingDiv' ) == "no" && $tempIgnore) {
222
include WDT_TEMPLATE_PATH . 'admin/common/ratingDiv.inc.php';
223
}
224
}
209
* Add rating massage on all admin pages after 2 weeks of using
210
*/
211
function wdtAdminRatingMessages() {
212
+ global $wpdb;
213
+ $query = "SELECT COUNT(*) FROM {$wpdb->prefix}wpdatatables ORDER BY id";
214
215
+ $allTables = $wpdb->get_var($query);
216
+ $wpdtPage = isset($_GET['page']) ? $_GET['page'] : '';
217
$installDate = get_option( 'wdtInstallDate' );
218
$currentDate = date( 'Y-m-d' );
219
$tempIgnoreDate = get_option( 'wdtTempFutureDate' );
222
$datetimeInstallDate = new DateTime( $installDate );
223
$datetimeCurrentDate = new DateTime( $currentDate );
224
$diffIntrval = round( ($datetimeCurrentDate->format( 'U' ) - $datetimeInstallDate->format( 'U' )) / (60 * 60 * 24) );
225
+ if( is_admin() && strpos($wpdtPage,'wpdatatables') !== false &&
226
+ $diffIntrval >= 14 && get_option( 'wdtRatingDiv' ) == "no" && $tempIgnore && isset($allTables) && $allTables > 5) {
227
include WDT_TEMPLATE_PATH . 'admin/common/ratingDiv.inc.php';
228
}
229
}
languages/pl_PL/wpdatatables-pl_PL.mo ADDED
Binary file
languages/pl_PL/wpdatatables-pl_PL.po ADDED
@@ -0,0 +1,5994 @@