{"version":3,"file":"\\js\\app.js","sources":["webpack:////js/app.js"],"sourcesContent":["webpackJsonp([1],{0:function(e,t,i){i(\"F1kH\"),e.exports=i(\"KqWi\")},\"0srj\":function(e,t,i){(function(t){var i=e.exports;i.renderItems=function(){var e=t(\"#items-list\"),n=\"\",o=t(\".item-count\"),r=0;for(var a in i.items)if(r++,!i.items[a].isHidden){var s=t(\"#floor-templates .item-list-item\").clone();s.find(\".item-item\").attr(\"data-item-id\",i.items[a].id);var l=i.items[a].type.icons.blue;\"Firestop Locator\"===app?i.items[a].type.standard_item_fields.includes(\"status\")&&i.items[a].status&&\"Unsealed\"==i.items[a].status.description?l=i.items[a].type.icons.red:i.items[a].inspections.length&&(l=\"Passed\"===i.items[a].inspections[0].status.description?i.items[a].type.icons.green:i.items[a].type.icons.red):l=i.items[a].type.icons.blue;var d,c,f=+new Date;999===i.items[a].latlngs.lat&&-999===i.items[a].latlngs.lng?c=\"Firestop Locator\"===app?(d=stiAssets+\"/images/fslocator/thumbnails/thumb-map-place-item.jpg\")+\" 2x, \"+d+\" 3x\":(d=stiAssets+\"/images/transit-tracker/thumbnails/thumb-map-place-item.jpg\")+\" 2x, \"+d+\" 3x\":(d=stiApi+\"/fsl/items/\"+i.items[a].id,c=(d+=\"/map-thumbnails/download?view=true&size=100\").substr(0,d.length-3)+\"200&_=\"+f+\" 2x, \",c+=d.substr(0,d.length-3)+\"300&_=\"+f+\" 3x\",d+=\"&_=\"+f);var u,p=\"/projects/\"+i.items[a].floor.building.project.id+\"/floors/\";p+=i.items[a].floor.id+\"?item=\"+i.items[a].id,s.find(\".map-thumb-container\").html(''),s.find(\".item-map-thumb-img\").attr(\"data-src\",d).attr(\"data-srcset\",c).addClass(\"lazy\").attr(\"title\",\"Go to item\"),s.find(\".item-stamp-img\").attr(\"src\",\"data:image/svg+xml;base64,\"+btoa(l)),s.find(\".heading-value\").text(i.items[a].type.description);var m=[];for(var h in i.standardFields.item)i.items[a].type.standard_item_fields.includes(h)||m.push(i.standardFields.item[h]);for(var v=0;v1&&(I+=\"s\"),s.find(\".field-inspection_frequency .field-value\").text(I)):s.find(\".field-inspection_frequency\").remove(),i.items[a].type.standard_item_fields.includes(\"system\")&&i.items[a].system)if(\"Firestop Locator\"===app)if(void 0!==i.systems.find(function(e){return e.system_number===i.items[a].system})){var L=\"https://systems.stifirestop.com\";L+=\"?button=search&system_open=true&system_number=\",L+=encodeURIComponent(i.items[a].system),s.find(\".system-value\").text(i.items[a].system),s.find(\".field-system a\").attr(\"href\",L)}else s.find(\".field-system .field-value\").html(\"\").text(i.items[a].system);else if(void 0!==i.systems.find(function(e){return e.system_number===i.items[a].system})&&null!==i.items[a].type_approval){L=\"https://staging-approvals.stimarine.com/approvals/\";L+=encodeURIComponent(i.items[a].type_approval.slug),s.find(\".system-value\").text(i.items[a].system),s.find(\".field-system a\").attr(\"href\",L)}else s.find(\".field-system .field-value\").html(\"\").text(i.items[a].system);else s.find(\".field-system\").remove();i.items[a].type.standard_item_fields.includes(\"sealing_method\")&&i.items[a].method?s.find(\".field-sealing_method .field-value\").text(i.items[a].method):s.find(\".field-sealing_method\").remove(),i.items[a].type.standard_item_fields.includes(\"location_barcode\")&&i.items[a].location_barcode?s.find(\".field-location_barcode .field-value\").text(i.items[a].location_barcode):s.find(\".field-location_barcode\").remove(),i.items[a].type.standard_item_fields.includes(\"room\")&&i.items[a].room?s.find(\".field-room .field-value\").text(i.items[a].room):s.find(\".field-room\").remove(),i.items[a].type.standard_item_fields.includes(\"notes\")&&i.items[a].notes?s.find(\".field-notes .field-value\").html(stiHelper.escapeHtml(i.items[a].notes).replace(/\\r|\\n|\\r\\n/g,\"
\")):s.find(\".field-notes\").remove(),999===i.items[a].latlngs.lat&&-999===i.items[a].latlngs.lng?s.find(\".place-item-btn-row\").show():s.find(\".place-item-btn-row\").hide();for(v=0;v '+stiHelper.escapeHtml(C.value[T])+\"
\");break;case\"date\":$listItemTemplate.find(\".field-value\").text(stiHelper.formatDate(C.value,!1,!0));break;case\"datetime\":$listItemTemplate.find(\".field-value\").text(stiHelper.formatDate(C.value,!0,!0))}$listItemTemplate.find(\".fa\").addClass(stiItemType.icons[C.custom_field.type]),s.find(\".custom-fields-after\").after($listItemTemplate.html())}}$listItemTemplate=t(\"#custom-field-item-list-item-template\").clone(),$listItemTemplate.find(\".title\").text(\"Project\"),$listItemTemplate.find(\".field-value\").html('').find(\"a\").text(i.items[a].floor.building.project.name),$listItemTemplate.find(\".fa\").addClass(\"fa-folder-open\"),s.find(\".custom-fields-after\").after($listItemTemplate.html()),$listItemTemplate=t(\"#custom-field-item-list-item-template\").clone(),$listItemTemplate.find(\".title\").text(\"Floor\"),$listItemTemplate.find(\".field-value\").html('').find(\"a\").text(i.items[a].floor.name),$listItemTemplate.find(\".fa\").addClass(\"fa-map-o\"),s.find(\".custom-fields-after\").after($listItemTemplate.html()),n+=s.html()}0===r&&(n='
',n+=\"You do not have any items.\",n+=\"
\"),o.text(r),e.html(n),new SimpleBar(e[0]),stiHelper.setScrollableHeight(),e.find(\".list-loader\").remove(),stiFloor.lazyLoadImages(),stiGlobal.stickyFooter()},i.bindListeners=function(){t(document).ready(function(){})}}).call(t,i(\"7t+N\"))},\"14de\":function(e,t,i){(function(t){i(\"M4fF\").template;var n=e.exports;n.permit=[],n.loadPermitData=function(e,i,o){i&&i(),t.ajax({url:stiApi+\"/fsl/permits/\"+permitId+\"?load[]=created_by&load[]=updated_by&load[]=status&load[]=assigned_users&load[]=floors&load[]=permit_types&load[]=project.team.members&load[]=project.buildings.floors\"}).done(function(e,t,i){n.permit=e.data,o&&o()}).fail(function(e,t,i){stiHelper.parseAjaxError(e)}).always(function(e,t,i){})},n.renderAssignedUsers=function(e){var i=t(\"#assigned-users-list\"),o=\"\",r=t(\".assigned-user-count\"),a=n.permit.assigned_users.length;for(var s in n.permit.assigned_users){var l=t(\"#permit-templates .assigned-user-list-item\").clone(),d=n.permit.project.team.members.find(function(e){return e.id===n.permit.assigned_users[s].id});l.find(\".heading-value\").text(n.permit.assigned_users[s].first_name+\" \"+n.permit.assigned_users[s].last_name),l.find(\".download-permit-btn\").attr(\"data-assigned-user-id\",n.permit.assigned_users[s].id),l.find(\".email\").text(n.permit.assigned_users[s].email),l.find(\".role\").text(d.roles[0].display_name),l.find(\".assigned-user-item\").attr(\"data-assigned-user-index\",s),o+=l.html()}0===a&&(o='
',o+=\"You do not have any assigned users.\",o+=\"
\"),r.text(a),i.html(o),new SimpleBar(i[0]),stiHelper.setScrollableHeight(),i.find(\".list-loader\").remove()},n.loadPermitLocationCheckBoxes=function(){for(var e,i,o=\"\",r=n.permit.project.buildings,a=n.permit.floors,s=0;s span\").text(r[s].name);for(var l=0;l span\").text(r[s].floors[l].name),e.find(\".floors-list\").append(i)}o+=e.html()}t(\"#edit-permit-modal\").find(\".buildings-list\").html(o)},n.loadPermitTypeCheckBoxes=function(){var e,i=\"\";if(permitTypes.length){for(var o=0;o option\").each(function(e,i){var o=parseInt(i.value),r=n.permit.assigned_users.find(function(e){return e.id===o});r?o===r.id&&t(this).prop(\"disabled\",!0):t(this).prop(\"disabled\",!1)});var e=t(\"#new-assigned-user > option\").length;n.permit.assigned_users.length===e-1?t(\"#new-assigned-user-modal .warning-msg\").removeClass(\"hidden\"):t(\"#new-assigned-user-modal .warning-msg\").addClass(\"hidden\")},n.updateLocationsDropdownList=function(){t(\"#new-location > optgroup > option\").each(function(e,i){var o=parseInt(i.value),r=n.permit.floors.find(function(e){return e.id===o});r?o===r.id&&t(this).prop(\"disabled\",!0):t(this).prop(\"disabled\",!1)});var e=t(\"#new-location > optgroup > option\").length;n.permit.floors.length===e?t(\"#new-location-modal .warning-msg\").removeClass(\"hidden\"):t(\"#new-location-modal .warning-msg\").addClass(\"hidden\")},n.checkMemberRowsNum=function(){var e=t(\".assigned-users-list .form-group\").length;t(\".assigned-users-list .delete-member-row-btn\").attr(\"disabled\",1===e)},n.bindListeners=function(){t(\"#edit-permit-form\").on(\"submit\",function(e){e.stopPropagation(),e.preventDefault();var i=t(this),o=i.find('button[type=\"submit\"]');formFields={project_id:i.find(\"#edit-project-id\").val(),permit_number:\"34\",permit_title:i.find(\"#edit-permit-title\").val(),permit_status_id:parseInt(i.find(\"#edit-permit-status-id\").val()),permit_description:t(\"#edit-permit-description\").val(),work_order_number:i.find(\"#edit-work-order-number\").val(),start_date:i.find(\"#edit-start-date\").val(),end_date:i.find(\"#edit-end-date\").val(),floor_ids:[],user_ids:[],permit_type_ids:[]},t.each(t(\"#edit-permit-form input[name='export-floor-id']:checked\"),function(){formFields.floor_ids.push(t(this).val())}),i.find(\".assigned-users-list .team-member-dropdown\").each(function(e,i){var n=t(i).find(\".new-member\").val();formFields.user_ids.push(n)}),t.each(t(\"#edit-permit-form input[name='permit-type-id']:checked\"),function(){formFields.permit_type_ids.push(t(this).val())}),o.html(stiGlobal.loadingIcon).prop(\"disabled\",!0),t.ajax({url:stiApi+\"/fsl/permits/\"+permitId,method:\"patch\",data:JSON.stringify(formFields)}).done(function(e,i,o){Object.assign(n.permit,e.data),stiGlobal.showPanelLoader(\"#assigned-users-list\"),stiGlobal.showPanelLoader(\"#locations-list\"),n.renderAssignedUsers(),n.updateAssignedUsersDropdownList(),n.updateLocationsDropdownList(),n.loadPermitTypeCheckBoxes(),toastr.success(\"The permit has been updated.\",\"Saved\"),t(\"#edit-permit-modal\").modal(\"hide\")}).fail(function(e,t,i){stiHelper.parseAjaxError(e)}).always(function(e,t,i){o.html(\"Update Permit\").prop(\"disabled\",!1)})}),t(\"#remove-permit-btn\").on(\"click\",function(e){e.stopPropagation(),e.preventDefault();var i=t(this);i.hasClass(\"confirm\")?(i.html(stiGlobal.loadingIcon).prop(\"disabled\",!0),t.ajax({url:stiApi+\"/fsl/permits/\"+permitId,method:\"delete\"}).done(function(e,t,i){toastr.success(\"The permit has been removed. You are being redirected back to the project.\",\"Saved\"),window.location.href=\"/projects/\"+n.permit.project_id}).fail(function(e,t,i){stiHelper.parseAjaxError(e)}).always(function(e,t,n){i.html(\"Remove Project\").prop(\"disabled\",!1).removeClass(\"confirm\")})):(i.addClass(\"confirm\").html(stiGlobal.removeConfirm),setTimeout(function(){i.removeClass(\"confirm\").text(\"Remove Permit\")},5e3))}),t(\"#assigned-users-list\").on(\"click\",\".assigned-user-item\",function(e){e.preventDefault();var i=t(\"#edit-assigned-user-modal\"),o=n.permit.assigned_users[t(this).data(\"assigned-user-index\")];i.attr(\"data-assigned-user-id\",o.id).data(\"assignedUserIds\",o.id),i.find(\".assigned-user-name\").text(o.first_name+\" \"+o.last_name),i.modal(\"show\")}),t(\"#new-assigned-user-form\").on(\"submit\",function(e){e.stopPropagation(),e.preventDefault();var i=t(this),o=i.find('button[type=\"submit\"]'),r=i.find(\"#new-assigned-user\").val();o.html(stiGlobal.loadingIcon).prop(\"disabled\",!0),t.ajax({url:stiApi+\"/fsl/permits/\"+permitId+\"/users/\"+r,method:\"post\"}).done(function(e,o,a){var s=n.permit.project.team.members.find(function(e){return e.id===parseInt(r)});n.permit.assigned_users.push(s),stiGlobal.showPanelLoader(\"#assigned-users-list\"),n.renderAssignedUsers(),n.updateAssignedUsersDropdownList(),i[0].reset(),t(\"#new-assigned-user-modal\").modal(\"hide\")}).fail(function(e,t,i){stiHelper.parseAjaxError(e)}).always(function(e,t,i){o.html(\"Add Assigned User\").prop(\"disabled\",!1)})}),t(\"#remove-assigned-user-btn\").on(\"click\",function(e){e.stopPropagation(),e.preventDefault();var i=t(this);assignedUserId=t(\"#edit-assigned-user-modal\").data(\"assignedUserIds\"),i.hasClass(\"confirm\")?(i.html(stiGlobal.loadingIcon).prop(\"disabled\",!0),t.ajax({url:stiApi+\"/fsl/permits/\"+permitId+\"/users/\"+assignedUserId,method:\"delete\"}).done(function(e,i,o){var r=n.permit.assigned_users.findIndex(function(e){return e.id===assignedUserId});n.permit.assigned_users.splice(r,1),stiGlobal.showPanelLoader(\"#assigned-users-list\"),n.renderAssignedUsers(),n.updateAssignedUsersDropdownList(),t(\"#edit-assigned-user-modal\").modal(\"hide\")}).fail(function(e,t,i){stiHelper.parseAjaxError(e)}).always(function(e,t,n){i.html(\"Remove Assigned User\").prop(\"disabled\",!1).removeClass(\"confirm\")})):(i.addClass(\"confirm\").html(stiGlobal.removeConfirm),setTimeout(function(){i.removeClass(\"confirm\").text(\"Remove Assigned User\")},5e3))}),t(\"#locations-list\").on(\"click\",\".places .edit-place-btn\",function(e){e.stopPropagation(),e.preventDefault();var i=t(\"#edit-place-modal\"),n=t(this).data(\"placeId\"),o=t(this).find(\".heading-value\").text();i.attr(\"data-place-id\",n).data(\"placeId\",n),i.find(\".place-name\").text(o),t(\"#edit-place-modal\").modal(\"show\")}),t(\"#new-location-form\").on(\"submit\",function(e){e.stopPropagation(),e.preventDefault();var i=t(this),o=i.find('button[type=\"submit\"]'),r=i.find(\"#new-location\").val();o.html(stiGlobal.loadingIcon).prop(\"disabled\",!0),t.ajax({url:stiApi+\"/fsl/permits/\"+permitId+\"/floors/\"+r,method:\"post\"}).done(function(e,o,a){n.permit.project.buildings.forEach(function(e){var t=e.floors.find(function(e){return e.id==parseInt(r)});t&&n.permit.floors.push(t)}),stiGlobal.showPanelLoader(\"#locations-list\"),n.updateLocationsDropdownList(),n.loadPermitLocationCheckBoxes(),i[0].reset(),t(\"#new-location-modal\").modal(\"hide\")}).fail(function(e,t,i){stiHelper.parseAjaxError(e)}).always(function(e,t,i){o.html(\"Add Location\").prop(\"disabled\",!1)})}),t(\"#remove-place-btn\").on(\"click\",function(e){e.stopPropagation(),e.preventDefault();var i=t(this);floorId=t(\"#edit-place-modal\").data(\"placeId\"),i.hasClass(\"confirm\")?(i.html(stiGlobal.loadingIcon).prop(\"disabled\",!0),t.ajax({url:stiApi+\"/fsl/permits/\"+permitId+\"/floors/\"+floorId,method:\"delete\"}).done(function(e,i,o){var r=n.permit.floors.findIndex(function(e){return e.id===floorId});n.permit.floors.splice(r,1),stiGlobal.showPanelLoader(\"#locations-list\"),n.updateLocationsDropdownList(),n.loadPermitLocationCheckBoxes(),t(\"#edit-place-modal\").modal(\"hide\")}).fail(function(e,t,i){stiHelper.parseAjaxError(e)}).always(function(e,t,n){i.html(\"Remove Permit Location\").prop(\"disabled\",!1).removeClass(\"confirm\")})):(i.addClass(\"confirm\").html(stiGlobal.removeConfirm),setTimeout(function(){i.removeClass(\"confirm\").text(\"Remove Permit Location\")},5e3))}),t(\"#add-member-row-btn\").on(\"click\",function(){$template=t(\"#permit-templates .team-member-dropdown\").clone(),t(\"#edit-permit-modal .assigned-users-list\").append($template),n.checkMemberRowsNum()}),t(\".assigned-users-list\").on(\"click\",\".delete-member-row-btn\",function(e){t(this).closest(\".team-member-dropdown\").remove(),n.checkMemberRowsNum()}),t(\"#show-new-permit-type-input-btn\").on(\"click\",function(e){\"Add a Permit Type\"==t(this).text()?(t(\".create-new-permit-type-section\").slideDown(),t(this).text(\"Close\")):(t(\".create-new-permit-type-section\").slideUp(),t(this).text(\"Add a Permit Type\"))}),t(\"#create-new-permit-type-btn\").on(\"click\",function(e){e.stopPropagation(),e.preventDefault();var i=t(this);i.html(stiGlobal.loadingIcon).prop(\"disabled\",!0),t.ajax({url:stiApi+\"/fsl/permit-types\",method:\"post\",data:JSON.stringify({project_id:n.permit.project.id,name:t(\"#new-permit-type-input\").val()})}).done(function(e,i,o){permitTypes.push(e.data),n.loadPermitTypeCheckBoxes(),t(\"#new-permit-type-input\").val(\"\"),t(\"#show-new-permit-type-input-btn\").trigger(\"click\")}).fail(function(e,t,i){stiHelper.parseAjaxError(e)}).always(function(e,t,n){i.text(\"Save\").prop(\"disabled\",!1)})}),t(\"#edit-permit-modal .select-all-locations-btn\").on(\"click\",function(){\"select\"===t(this).data(\"action\")?(t(this).data(\"action\",\"clear\").text(\"Clear All\"),t(\"#edit-permit-modal .export-floor-id\").prop(\"checked\",!0).trigger(\"change\"),t(\"#edit-permit-modal .export-building-id\").prop(\"checked\",!0)):(t(this).data(\"action\",\"select\").text(\"Select All\"),t(\"#edit-permit-modal .export-floor-id\").prop(\"checked\",!1).trigger(\"change\"),t(\"#edit-permit-modal .export-building-id\").prop(\"checked\",!1))}),t(\"#edit-permit-modal\").on(\"click\",\".export-building-id\",function(){t(this).parent().next(\".floors-list\").find(\"input[type=checkbox]\").prop(\"checked\",t(this).prop(\"checked\"))}),t(\"#edit-permit-modal\").on(\"click\",\".export-floor-id\",function(){t(this).prop(\"checked\")||t(this).parent().parent().parent().prev(\".building-name\").find(\".export-building-id\").prop(\"checked\",!1)}),t(\"#assigned-users-list\").on(\"click\",\".download-permit-btn\",function(e){e.stopPropagation(),e.preventDefault();var i=t(this).data(\"assignedUserId\"),n=document.createElement(\"a\");n.href=stiApi+\"/fsl/permits/\"+permitId+\"/users/\"+i+\"/download\",n.target=\"_blank\",n.style.display=\"none\",n.click()})}}).call(t,i(\"7t+N\"))},\"21It\":function(e,t,i){\"use strict\";var n=i(\"FtD3\");e.exports=function(e,t,i){var o=i.config.validateStatus;i.status&&o&&!o(i.status)?t(n(\"Request failed with status code \"+i.status,i.config,null,i.request,i)):e(i)}},\"3eNs\":function(e,t,i){var n,o,r;!function(a){\"use strict\";o=[i(\"7t+N\"),i(\"UZ9c\")],void 0===(r=\"function\"==typeof(n=a)?n.apply(t,o):n)||(e.exports=r)}(function(e){\"use strict\";return e.extend(e.expr.pseudos,{data:e.expr.createPseudo?e.expr.createPseudo(function(t){return function(i){return!!e.data(i,t)}}):function(t,i,n){return!!e.data(t,n[3])}})})},\"5VQ+\":function(e,t,i){\"use strict\";var n=i(\"cGG2\");e.exports=function(e,t){n.forEach(e,function(i,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=i,delete e[n])})}},\"6jjk\":function(e,t,i){(function(t){var i=e.exports;i.appName=\"\",i.version=\"\",i.saveIcon='',i.cancelIcon='',i.loadingIcon='',i.removeConfirm=' Click to Confirm',i.auth=!1,i.storagePath=\"storage\",i.fileIcons={pdf:\"file-pdf-o\",png:\"file-image-o\",jpg:\"file-image-o\",jpeg:\"file-image-o\",csv:\"file-excel-o\",xls:\"file-excel-o\",xlsx:\"file-excel-o\",doc:\"file-word-o\",docx:\"file-word-o\",ppt:\"file-powerpoint-o\",pptx:\"file-powerpoint-o\",txt:\"file-text-o\",rtf:\"file-text-o\",zip:\"file-archive-o\"},i.buildingWord=\"Firestop Locator\"===app?\"building\":\"hull\",i.floorWord=\"Firestop Locator\"===app?\"floor\":\"deck\",i.systemWord=\"Firestop Locator\"===app?\"system\":\"type approval\",Dropzone.autoDiscover=!1,toastr.options.progressBar=!1,toastr.options.preventDuplicates=!0,toastr.options.timeOut=8e3,toastr.options.positionClass=\"toast-bottom-right\",t.fn.modal.prototype.constructor.Constructor.DEFAULTS.backdrop=\"static\",t.fn.modal.prototype.constructor.Constructor.DEFAULTS.keyboard=!1,i.nothing=function(){},i.logout=function(){sessionStorage.clear()},i.showPanelLoader=function(e,i){var n=t(e),o=t(\"#templates .list-loader\").clone();n.find(\".simplebar-content\").html(\"\"),n.append(o),i&&i()},i.renderNavProjects=function(){t.ajax({url:stiApi+\"/fsl/projects\"}).done(function(e,i,n){var o=t(\"#project-menu\"),r=\"\";o.html(\"\");for(var a=0;a',r+=' ',r+=stiHelper.escapeHtml(e[a].name)+\"\";o.html(r)}).fail(function(e,t,i){stiHelper.parseAjaxError(e)}).always(function(e,t,i){})},i.updateNotifications=function(){var e=t(\"#notifications-modal\").find(\".notification\").length;0===e&&(t(\"#notifications-modal .modal-body\").html(\"

You have no new notifcations.

\"),t(\".navbar .notification-blip\").remove()),t(\"#total-notifications-badge\").text(e)},i.stickyFooter=function(){t(\".page-footer\").hasClass(\"stick-bottom\")?t(\"body\")[0].scrollHeight>=window.innerHeight-t(\".page-footer\").height()-33&&t(\".page-footer\").removeClass(\"stick-bottom\"):t(\"body\")[0].scrollHeight<=window.innerHeight&&t(\".page-footer\").addClass(\"stick-bottom\")},i.alert=function(e,i,n){var o=t(\"#alert-modal\");o.find(\".title\").html(e),o.find(\".message\").html(i),n&&n(),o.modal(\"show\")},i.showPatchNotes=function(){var e=Cookies.get(\"fsl_v\"),n=Cookies.get(\"fsl_show_patch_notes\");i.auth&&(void 0!==n&&\"false\"==n&&t(\"#show-patch-notes-btn\").prop(\"checked\",!0),void 0===n&&(Cookies.set(\"fsl_show_patch_notes\",\"true\",{expires:3650}),n=\"true\"),void 0!==n&&\"true\"==n&&void 0!==e&&e!=i.version&&t(\"#patch-notes-modal\").modal(\"show\"),Cookies.set(\"fsl_v\",i.version,{expires:3650}))},i.bindListeners=function(){t.ajaxSetup({headers:{Accept:\"application/json\"},contentType:\"application/json\",xhrFields:{withCredentials:!0},cache:!1}),t(document).ready(function(){stiHelper.setScrollableHeight(),stiHelper.getQuery(\"invitation\")&&\"/login\"!=window.location.pathname&&(t(\"#notifications-modal .notification\").each(function(e,i){t(i).data(\"invitationKey\")==stiHelper.getQuery(\"invitation\")&&t(i).addClass(\"fade-highlight\")}),t(\"#notifications-modal\").modal(\"show\")),t.smartbanner({layer:!1,author:\"Specified Technologies Inc.\",inGooglePlay:\"on Google Play\"}),i.showPatchNotes()}),t(window).on(\"resize\",function(){i.stickyFooter()}),t(document).on(\"webkitfullscreenchange mozfullscreenchange fullscreenchange\",function(e){i.stickyFooter()}),t(document).on(\"sti.set-scrollable-height\",function(){stiHelper.setScrollableHeight()}),t(\"#logout-link\").on(\"click\",function(){i.logout()}),t(document).on(\"keyup search\",\".search-item-form\",function(e){\"submit\"==e.type&&e.preventDefault();var i=t(this),n=i.find(\".search-input\").val().toLowerCase(),o=t(i.data(\"listGroup\")),r=t(i.data(\"itemCounter\")).find(\".visible\");o.find(\".no-results\").remove(),t(i.data(\"items\")).each(function(e,i){t(i).find(\".searchable\").text().toLowerCase().indexOf(n)>=0?t(i).show():t(i).hide()});var a=t(i.data(\"items\")+\":visible\").length;r.text(a),0===a&&(\"\"!==n?(o.find(\".no-items\").hide(),o.find(\".simplebar-content\").append('
No Results
')):o.find(\".no-items\").show())}),t(\"#notifications-modal\").on(\"hidden.bs.modal\",function(){t(this).find(\".notification\").removeClass(\"fade-highlight\")}),t(\"#notifications-modal .accept-team-invitation\").on(\"click\",function(){var e=t(this).closest(\".notification\"),n=e.data(\"invitationKey\"),o=e.data(\"teamId\");e.find(\"button\").prop(\"disabled\",!0),t.ajax({url:stiApi+\"/fsl/teams/\"+o+\"/invitations/accept/\"+n,method:\"post\"}).done(function(e,o,r){toastr.success(\"You are now a member of the team.\",\"Welcome to the Team!\"),t(\"#invitation-\"+n).remove(),i.updateNotifications(),\"/dashboard\"==window.location.pathname?stiDashboard.loadTeamData(!0,function(){i.showPanelLoader(\"#projects-list\"),i.showPanelLoader(\"#teams-list\",function(){t(\"#new-project-team\").html('')})},function(){stiDashboard.renderProjects(),stiDashboard.renderTeams()}):window.location.pathname.indexOf(\"/teams\")}).fail(function(e,t,i){stiHelper.parseAjaxError(e)}).always(function(t,i,n){e.find(\"button\").prop(\"disabled\",!1)})}),t(\"#notifications-modal .decline-team-invitation\").on(\"click\",function(){var e=t(this).closest(\".notification\"),n=e.data(\"invitationKey\"),o=e.data(\"teamId\");e.find(\"button\").prop(\"disabled\",!0),t.ajax({url:stiApi+\"/fsl/teams/\"+o+\"/invitations/decline/\"+n,method:\"post\"}).done(function(e,o,r){t(\"#invitation-\"+n).remove(),i.updateNotifications()}).fail(function(e,t,i){stiHelper.parseAjaxError(e)}).always(function(t,i,n){e.find(\"button\").prop(\"disabled\",!1)})}),t(\"#bug-report-form\").on(\"submit\",function(e){e.preventDefault();var n=t(this),o=n.find('button[type=\"submit\"]');o.html(\"Sending \"+i.loadingIcon).prop(\"disabled\",!0),t(\"#bug-report-modal .close-modal-btn\").prop(\"disabled\",!0),t.ajax({url:stiApi+\"/fsl/bug-report\",method:\"post\",data:JSON.stringify({message:n.find(\"#bug-report-message\").val(),user_agent:n.find(\"#bug-report-user-agent\").val(),http_referer:n.find(\"#bug-report-http-referer\").val(),https:n.find(\"#bug-report-https\").val(),request_method:n.find(\"#bug-report-request-method\").val(),http_host:n.find(\"#bug-report-http-host\").val(),server_name:n.find(\"#bug-report-server-name\").val(),request_uri:n.find(\"#bug-report-request-uri\").val(),path_info:n.find(\"#bug-report-path-info\").val(),query_string:n.find(\"#bug-report-query-string\").val(),ip_address:n.find(\"#bug-report-ip-address\").val()})}).done(function(e,i,o){t(\"#bug-report-modal\").modal(\"hide\");var r=\"Thank you for submitting a bug report! \";r+=\"If we have any questions regarding your submission, \",r+=\"we may try to contact your via email.\",toastr.success(r,\"Saved\"),n[0].reset()}).fail(function(e,t,i){stiHelper.parseAjaxError(e)}).always(function(e,i,n){o.text(' Send Bug Report').prop(\"disabled\",!1),t(\"#bug-report-modal .close-modal-btn\").prop(\"disabled\",!1)})}),t(\"#alert-modal\").on(\"hidden.bs.modal\",function(){t(\"#alert-modal\").html(t(\"#templates .default-alert-modal-html\").html())}),t(document).on(\"show.bs.dropdown\",\".dropdown\",function(){t(window).width()>767&&t(this).find(\".dropdown-menu\").first().stop(!0,!0).slideDown(300)}),t(document).on(\"hide.bs.dropdown\",\".dropdown\",function(){if(t(window).width()>767){var e=t(this);e.find(\".dropdown-menu\").first().stop(!0,!0).slideUp(300,function(){e.find(\".dropdown-menu\").css(\"display\",\"\")})}}),t(\"#vimeo-video-modal\").on(\"show.bs.modal\",function(){var e=t(this),i=e.data(\"source\");e.find(\"iframe\").attr(\"src\",i)}),t(\"#vimeo-video-modal\").on(\"hide.bs.modal\",function(){t(this).find(\"iframe\").attr(\"src\",\"\")}),t(\"#patch-notes-modal .version-notes\").on(\"show.bs.collapse\",function(){var e=t(this).attr(\"id\");t(\"#patch-notes-modal .\"+e+\" > i.fa\").removeClass(\"rotate180\")}),t(\"#patch-notes-modal .version-notes\").on(\"hide.bs.collapse\",function(){var e=t(this).attr(\"id\");t(\"#patch-notes-modal .\"+e+\" > i.fa\").addClass(\"rotate180\")}),t(\"#show-patch-notes-btn\").on(\"click\",function(){var e;e=t(this).is(\":checked\")?\"false\":\"true\",Cookies.set(\"fsl_show_patch_notes\",e,{expires:3650})})},i.fileUpload={onAddedFile:function(e,i,n){if(!(i.getQueuedFiles().length>9)){var o=e.find(\".added-file-area\"),r=t(\"#added-file-to-upload-template\");r.find(\".filename\").text(n.name),r.find(\".added-file\").data(\"file-upload-uuid\",n.upload.uuid).attr(\"data-file-upload-uuid\",n.upload.uuid),o.find(\".added-files\").append(r.html()),o.show()}},onRemovedFile:function(e,t,i,n){e.find('.added-file[data-file-upload-uuid=\"'+i.upload.uuid+'\"]').remove(),t.getQueuedFiles().length<=n&&e.find(\".dropzone\").show(),t.getQueuedFiles().length<1&&e.find(\".added-file-area\").hide()},onMaxFilesExceeded:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;toastr.error(\"You can not upload more than \"+e+\" files at a time. Upload these first then add more.\",\"Too many files\")},onMaxFilesReached:function(e){e.find(\".dropzone\").hide()},onSending:function(e,t,n,o){e.find(\".clear-new-upload-btn\").prop(\"disabled\",!0),t.html(\"Uploading \"+i.loadingIcon).prop(\"disabled\",!0),n.prop(\"disabled\",!0),o.show(),o.find(\"label\").hide(),o.find(\"label.status-initial\").show()},onUploadProgress:function(e,t){t>=100?(e.find(\"label.status-uploading\").html(\"Uploading files 100%\"),e.find(\".progress-bar\").css(\"width\",\"100%\"),e.find(\"label\").hide(),e.find(\"label.status-processing\").show()):(e.find(\"label\").hide(),e.find(\"label.status-uploading\").show(),e.find(\"label.status-uploading\").html(\"Uploading files \"+Math.ceil(t)+\"%\"),e.find(\".progress-bar\").css(\"width\",Math.ceil(t)+\"%\"))},onSuccess:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:\"\",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments[2],n=arguments[3],o=arguments[4],r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:function(){};toastr.success(\"The \"+(t?e+\" have\":e+\" has\")+\" been uploaded.\",\"Saved\"),i.find(\".progress-bar\").css(\"width\",\"100%\").removeClass(\"active progress-bar-primary\").addClass(\"progress-bar-success\"),i.find(\"label\").hide(),i.find(\"label.status-complete\").show(),r(),setTimeout(function(){n.removeAllFiles(!0),o.modal(\"hide\"),i.hide(),i.find(\".progress-bar\").css(\"width\",\"0%\").addClass(\"active progress-bar-primary\").removeClass(\"progress-bar-success\"),o.find(\".added-files\").html(\"\"),o.find(\".added-file-area\").hide()},1e3)},onError:function(e,t,i){\"You can not upload any more files.\"!==e&&(t.responseJSON=e,stiHelper.parseAjaxError(t),i.hide(),i.find(\".progress-bar\").css(\"width\",\"0%\").addClass(\"active progress-bar-primary\").removeClass(\"progress-bar-success\"))},onComplete:function(e,t,i){t.prop(\"disabled\",!1),i.html(' Upload').prop(\"disabled\",!1),e.find(\".clear-new-upload-btn\").prop(\"disabled\",!1)},bindUploadBtnListener:function(e,t){e.on(\"click\",\".upload-files-btn\",function(){t.processQueue()})},bindRemoveFileBtnListener:function(e,i){e.on(\"click\",\".clear-new-upload-btn\",function(){var e=t(this).closest(\".added-file\").data(\"fileUploadUuid\"),n=i.getQueuedFiles().find(function(t){return t.upload.uuid===e});i.removeFile(n)})},bindClearFormOnModalCloseListener:function(e,t){e.on(\"hidden.bs.modal\",function(){t.removeAllFiles()})}}}).call(t,i(\"7t+N\"))},\"7GwW\":function(e,t,i){\"use strict\";var n=i(\"cGG2\"),o=i(\"21It\"),r=i(\"DQCr\"),a=i(\"oJlt\"),s=i(\"GHBc\"),l=i(\"FtD3\"),d=\"undefined\"!=typeof window&&window.btoa&&window.btoa.bind(window)||i(\"thJu\");e.exports=function(e){return new Promise(function(t,c){var f=e.data,u=e.headers;n.isFormData(f)&&delete u[\"Content-Type\"];var p=new XMLHttpRequest,m=\"onreadystatechange\",h=!1;if(\"undefined\"==typeof window||!window.XDomainRequest||\"withCredentials\"in p||s(e.url)||(p=new window.XDomainRequest,m=\"onload\",h=!0,p.onprogress=function(){},p.ontimeout=function(){}),e.auth){var v=e.auth.username||\"\",g=e.auth.password||\"\";u.Authorization=\"Basic \"+d(v+\":\"+g)}if(p.open(e.method.toUpperCase(),r(e.url,e.params,e.paramsSerializer),!0),p.timeout=e.timeout,p[m]=function(){if(p&&(4===p.readyState||h)&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf(\"file:\"))){var i=\"getAllResponseHeaders\"in p?a(p.getAllResponseHeaders()):null,n={data:e.responseType&&\"text\"!==e.responseType?p.response:p.responseText,status:1223===p.status?204:p.status,statusText:1223===p.status?\"No Content\":p.statusText,headers:i,config:e,request:p};o(t,c,n),p=null}},p.onerror=function(){c(l(\"Network Error\",e,null,p)),p=null},p.ontimeout=function(){c(l(\"timeout of \"+e.timeout+\"ms exceeded\",e,\"ECONNABORTED\",p)),p=null},n.isStandardBrowserEnv()){var b=i(\"p1b6\"),_=(e.withCredentials||s(e.url))&&e.xsrfCookieName?b.read(e.xsrfCookieName):void 0;_&&(u[e.xsrfHeaderName]=_)}if(\"setRequestHeader\"in p&&n.forEach(u,function(e,t){void 0===f&&\"content-type\"===t.toLowerCase()?delete u[t]:p.setRequestHeader(t,e)}),e.withCredentials&&(p.withCredentials=!0),e.responseType)try{p.responseType=e.responseType}catch(t){if(\"json\"!==e.responseType)throw t}\"function\"==typeof e.onDownloadProgress&&p.addEventListener(\"progress\",e.onDownloadProgress),\"function\"==typeof e.onUploadProgress&&p.upload&&p.upload.addEventListener(\"progress\",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){p&&(p.abort(),c(e),p=null)}),void 0===f&&(f=null),p.send(f)})}},\"9V2q\":function(e,t,i){var n,o,r;!function(a){\"use strict\";o=[i(\"7t+N\"),i(\"zkIY\"),i(\"UZ9c\"),i(\"z1kw\")],void 0===(r=\"function\"==typeof(n=a)?n.apply(t,o):n)||(e.exports=r)}(function(e){\"use strict\";var t=!1;return e(document).on(\"mouseup\",function(){t=!1}),e.widget(\"ui.mouse\",{version:\"1.13.2\",options:{cancel:\"input, textarea, button, select, option\",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.on(\"mousedown.\"+this.widgetName,function(e){return t._mouseDown(e)}).on(\"click.\"+this.widgetName,function(i){if(!0===e.data(i.target,t.widgetName+\".preventClickEvent\"))return e.removeData(i.target,t.widgetName+\".preventClickEvent\"),i.stopImmediatePropagation(),!1}),this.started=!1},_mouseDestroy:function(){this.element.off(\".\"+this.widgetName),this._mouseMoveDelegate&&this.document.off(\"mousemove.\"+this.widgetName,this._mouseMoveDelegate).off(\"mouseup.\"+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(i){if(!t){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(i),this._mouseDownEvent=i;var n=this,o=1===i.which,r=!(\"string\"!=typeof this.options.cancel||!i.target.nodeName)&&e(i.target).closest(this.options.cancel).length;return!(o&&!r&&this._mouseCapture(i))||(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){n.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(i)&&this._mouseDelayMet(i)&&(this._mouseStarted=!1!==this._mouseStart(i),!this._mouseStarted)?(i.preventDefault(),!0):(!0===e.data(i.target,this.widgetName+\".preventClickEvent\")&&e.removeData(i.target,this.widgetName+\".preventClickEvent\"),this._mouseMoveDelegate=function(e){return n._mouseMove(e)},this._mouseUpDelegate=function(e){return n._mouseUp(e)},this.document.on(\"mousemove.\"+this.widgetName,this._mouseMoveDelegate).on(\"mouseup.\"+this.widgetName,this._mouseUpDelegate),i.preventDefault(),t=!0,!0))}},_mouseMove:function(t){if(this._mouseMoved){if(e.ui.ie&&(!document.documentMode||document.documentMode<9)&&!t.button)return this._mouseUp(t);if(!t.which)if(t.originalEvent.altKey||t.originalEvent.ctrlKey||t.originalEvent.metaKey||t.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(t)}return(t.which||t.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(t),t.preventDefault()):(this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,t),this._mouseStarted?this._mouseDrag(t):this._mouseUp(t)),!this._mouseStarted)},_mouseUp:function(i){this.document.off(\"mousemove.\"+this.widgetName,this._mouseMoveDelegate).off(\"mouseup.\"+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,i.target===this._mouseDownEvent.target&&e.data(i.target,this.widgetName+\".preventClickEvent\",!0),this._mouseStop(i)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,t=!1,i.preventDefault()},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})})},\"9qP8\":function(e,t,i){(function(t){var i=e.exports;i.user=null,i.onGracePeriod=0,i.updateCard=function(e){var n=t(\"#billing-info-panel\"),o=t(\"#user-card-brand-fa\"),r=t(\"#user-card-last-four\");n.find(\".loader\").show(),n.find(\".card-data\").hide(),t.ajax({url:stiApi+\"/stripe/update-card\",method:\"post\",data:JSON.stringify({token:e.id})}).done(function(e,t,n){o.attr(\"class\",\"\").addClass(\"fa \"+i.getCardBrandFa(e.brand)),r.text(e.last4),toastr.success(\"Your credit card has been updated.\",\"Saved\")}).fail(function(e,t,i){stiHelper.parseAjaxError(e)}).always(function(e,t,i){n.find(\".loader\").hide(),n.find(\".card-data\").show()})},i.getCardBrandFa=function(e){return\"American Express\"==e?\"fa-cc-amex\":\"Diners Club\"==e?\"fa-cc-diners-club\":\"UnionPay\"==e?\"fa-credit-card-alt\":\"fa-cc-\"+e.toLowerCase()},i.bindListeners=function(){t(\".cancel-sub-btn\").on(\"click\",function(){var e=\"You Can't Do That\",n=\"You are already on the Free tier!\";\"free\"==i.user.fslSubscription.subscription.name?stiGlobal.alert(e,n):i.onGracePeriod?(n=\"

Your subscription was already canceled. It will end on your next billing date.

\",stiGlobal.alert(e,n,function(){t(\"#alert-modal .message\").append('')})):t(\"#cancel-subscription-modal\").modal(\"show\")}),t(\"#cancel-sub-form\").on(\"submit\",function(){t(\"#cancel-sub-btn-final\").prop(\"disabled\",!0).html(\"Canceling \"+stiGlobal.loadingIcon)}),t(document).on(\"click\",\".resume-sub-btn\",function(e){e.preventDefault(),t(this).prop(\"disabled\",!0).html(\"Resuming \"+stiGlobal.loadingIcon),t(\"#resume-sub-form\").submit()}),t(document).on(\"click\",\".cancel-downgrade-btn\",function(e){e.preventDefault(),t(\"#cancel-downgrade-form\").submit()}),t(window).on(\"popstate\",function(){i.stripeHandler.close()}),t(\"#update-card-btn\").on(\"click\",function(e){e.preventDefault(),i.stripeHandler.open({name:\"Specified Technologies Inc.\",description:\"Firestop Locator Subscription\",zipCode:!0,email:i.user.email,panelLabel:\"Update Credit Card\",allowRememberMe:!1,billingAddress:!0})})}}).call(t,i(\"7t+N\"))},AlLi:function(e,t){e.exports},BjPJ:function(e,t,i){(function(t){var i=e.exports;i.team={},i.owner={},i.loadTeamData=function(e,n,o){n&&n(),t.ajax({url:stiApi+\"/fsl/teams/\"+teamId+\"?with-members=true\"}).done(function(e,t,n){i.team=e;for(var r=0;r '+i.team.members[s].roles[0].display_name).show(),o+=l.html()}0===a&&(o='
',o+=\"You do not have any other team members.\",o+=\"
\"),r.text(a),n.html(o),new SimpleBar(n[0]),stiHelper.setScrollableHeight(),n.find(\".list-loader\").remove()},i.renderInvitations=function(e){var n=t(\"#invitations-list\"),o=\"\",r=t(\".invitations-count\"),a=0;for(var s in i.team.invitations)if(\"Accepted\"!==i.team.invitations[s].status.description){var l=t(\"#team-templates .list-group-button-item-template\").clone();l.find(\".item-info-btn\").attr(\"title\",\"Team invitation info\"),l.find(\".delete-item-btn\").attr(\"title\",\"Cancel team invitation\"),l.find(\".download-item-btn\").remove(),l.find(\".heading-icon\").addClass(\"fa-envelope\"),l.find(\".heading-value\").text(i.team.invitations[s].invited_user_email),l.find(\".edit-item-btn\").remove(),l.find(\".add-item-btn\").remove(),\"Pending\"===i.team.invitations[s].status.description?(l.find(\".delete-item-btn\").removeClass(\"delete-item-btn\").addClass(\"cancel-item-btn\"),l.find(\".cancel-item-btn span\").text(\"Cancel\"),l.find(\".cancel-item-btn .fa\").removeClass(\"fa-trash\").addClass(\"fa-ban\")):l.find(\".delete-item-btn\").remove(),l.find(\".list-group-button-item\").attr(\"data-team-invitation-id\",i.team.invitations[s].id).data(\"team-invitationId\",i.team.invitations[s].id),l.find(\".body-area\").addClass(\"searchable\").html(''+i.team.invitations[s].status.description+\"\").show(),o+=l.html(),a++}0===a&&(o='
',o+=\"There are no pending invitations.\",o+=\"
\"),r.text(a),n.html(o),new SimpleBar(n[0]),stiHelper.setScrollableHeight(),n.find(\".list-loader\").remove()},i.bindListeners=function(){t(\"#edit-team-form\").on(\"submit\",function(e){e.stopPropagation(),e.preventDefault();var n=t(this),o=n.find('button[type=\"submit\"]');o.html(\"Saving \"+stiGlobal.loadingIcon).prop(\"disabled\",!0),t(\"#edit-team-modal .modal-close-btn\").prop(\"disabled\",!0),t.ajax({url:stiApi+\"/fsl/teams/\"+i.team.id,method:\"put\",data:JSON.stringify({name:n.find(\"#edit-team-name\").val()})}).done(function(e,n,o){t(\"#edit-team-modal\").modal(\"hide\"),Object.assign(i.team,e),i.renderTeamInfo(),toastr.success(\"The team has been updated.\",\"Saved\")}).fail(function(e,t,i){stiHelper.parseAjaxError(e)}).always(function(e,i,n){o.html(' Save Team').prop(\"disabled\",!1),t(\"#edit-team-modal .modal-close-btn\").prop(\"disabled\",!1)})}),t(\"#members-list\").on(\"click\",\".item-info-btn\",function(){var e=t(\"#info-modal\"),n=e.find(\".modal-body\"),o=parseInt(t(this).closest(\".list-group-button-item\").data(\"teamMemberId\")),r=i.team.members.find(function(e){return e.id===o}),a=i.team.invitations.find(function(e){return e.invited_user_email===r.email});n.html(\"\"),e.find(\".title\").text(\"Team Member Info\");var s=t(\"#team-templates .info-field-section-template\").clone();s.find(\".field-icon\").addClass(\"fa-user\"),s.find(\".field-text\").text(\"Name\"),s.find(\".value-text\").text(r.first_name+\" \"+r.last_name),s.find(\".value .fa\").remove(),n.append(s.html()),(s=t(\"#team-templates .info-field-section-template\").clone()).find(\".field-icon\").addClass(\"fa-envelope\"),s.find(\".field-text\").text(\"Email\"),s.find(\".value-text\").text(r.email),s.find(\".value .fa\").remove(),n.append(s.html()),(s=t(\"#team-templates .info-field-section-template\").clone()).find(\".field-icon\").addClass(\"fa-tags\"),s.find(\".field-text\").text(\"Role\"),s.find(\".value-text\").text(r.roles[0].display_name),s.find(\".value .fa\").remove(),n.append(s.html()),a&&((s=t(\"#team-templates .info-field-section-template\").clone()).find(\".field-icon\").addClass(\"fa-calendar-o\"),s.find(\".field-text\").text(\"Invited On\"),s.find(\".value-text\").text(stiHelper.formatDate(a.created_at,!0)),s.find(\".value .fa\").remove(),n.append(s.html()),(s=t(\"#team-templates .info-field-section-template\").clone()).find(\".field-icon\").addClass(\"fa-user\"),s.find(\".field-text\").text(\"Invited By\"),s.find(\".value-text\").text(a.invited_by_user.first_name+\" \"+a.invited_by_user.last_name),s.find(\".value .fa\").remove(),n.append(s.html()),(s=t(\"#team-templates .info-field-section-template\").clone()).find(\".field-icon\").addClass(\"fa-check\"),s.find(\".field-text\").text(\"Joined Team\"),s.find(\".value-text\").text(stiHelper.formatDate(a.answered_on,!0)),s.find(\".value .fa\").remove(),n.append(s.html())),e.modal(\"show\")}),t(\"#invitations-list\").on(\"click\",\".item-info-btn\",function(){var e=t(\"#info-modal\"),n=e.find(\".modal-body\"),o=parseInt(t(this).closest(\".list-group-button-item\").data(\"teamInvitationId\")),r=i.team.invitations.find(function(e){return e.id===o});n.html(\"\"),e.find(\".title\").text(\"Team Invitation Info\"),$fieldTemplate=t(\"#team-templates .info-field-section-template\").clone(),$fieldTemplate.find(\".field-icon\").addClass(\"fa-envelope\"),$fieldTemplate.find(\".field-text\").text(\"Invited Email\"),$fieldTemplate.find(\".value-text\").text(r.invited_user_email),$fieldTemplate.find(\".value .fa\").remove(),n.append($fieldTemplate.html()),$fieldTemplate=t(\"#team-templates .info-field-section-template\").clone(),$fieldTemplate.find(\".field-icon\").addClass(\"fa-tags\"),$fieldTemplate.find(\".field-text\").text(\"Role\"),$fieldTemplate.find(\".value-text\").text(r.role.display_name),$fieldTemplate.find(\".value .fa\").remove(),n.append($fieldTemplate.html()),$fieldTemplate=t(\"#team-templates .info-field-section-template\").clone(),$fieldTemplate.find(\".field-icon\").addClass(\"fa-paper-plane\"),$fieldTemplate.find(\".field-text\").text(\"Status\"),$fieldTemplate.find(\".value-text\").text(r.status.description).addClass(\"status-value \"+r.status.description.toLowerCase()+\"-status\"),$fieldTemplate.find(\".value .fa\").remove(),n.append($fieldTemplate.html()),$fieldTemplate=t(\"#team-templates .info-field-section-template\").clone(),$fieldTemplate.find(\".field-icon\").addClass(\"fa-calendar-o\"),$fieldTemplate.find(\".field-text\").text(\"Invited On\"),$fieldTemplate.find(\".value-text\").text(stiHelper.formatDate(r.created_at,!0)),$fieldTemplate.find(\".value .fa\").remove(),n.append($fieldTemplate.html()),$fieldTemplate=t(\"#team-templates .info-field-section-template\").clone(),$fieldTemplate.find(\".field-icon\").addClass(\"fa-user\"),$fieldTemplate.find(\".field-text\").text(\"Invited By\"),$fieldTemplate.find(\".value-text\").text(r.invited_by_user.first_name+\" \"+r.invited_by_user.last_name),$fieldTemplate.find(\".value .fa\").remove(),n.append($fieldTemplate.html()),e.modal(\"show\")}),t(\".delete-team-btn\").on(\"click\",function(){t(\"#confirm-delete-modal .message\").html(\"

Are you sure you want to delete this team?

Deleting the team will delete all projects, buildings, floors, items, images, inspections, and documents for for this team.

\"),t(\"#confirm-delete-modal .title\").text(\"Confirm Team Deletion\"),t(\"#confirm-delete-modal .modal-title\").attr(\"title\",\"Confirm Team Deletion\"),t(\"#confirm-delete-btn\").html(' Delete Team'),t(\"#confirm-delete-modal\").data(\"deleteType\",\"team\").attr(\"data-delete-type\",\"team\"),t(\"#confirm-delete-modal .alert\").show(),t(\"#confirm-delete-modal hr\").show(),t(\"#confirm-delete-modal\").modal(\"show\")}),t(document).on(\"click\",'#confirm-delete-modal[data-delete-type=\"team\"] #confirm-delete-btn',function(e){e.stopPropagation(),e.preventDefault();var n=t(this);n.html(\"Deleting \"+stiGlobal.loadingIcon).prop(\"disabled\",!0),t(\"#confirm-delete-modal .modal-close-btn\").prop(\"disabled\",!0),t.ajax({url:stiApi+\"/fsl/teams/\"+i.team.id,method:\"delete\"}).done(function(e,i,n){t(\"#confirm-delete-modal\").modal(\"hide\");var o=\"The team has been deleted. \";o+=\"You are being redirected back to the dashboard.\",toastr.success(o,\"Saved\"),window.location.href=\"/dashboard\"}).fail(function(e,t,i){stiHelper.parseAjaxError(e)}).always(function(e,i,o){n.html(' Delete Team').prop(\"disabled\",!1),t(\"#confirm-delete-modal .modal-close-btn\").prop(\"disabled\",!1)})}),t(\".leave-team-btn\").on(\"click\",function(){t(\"#confirm-delete-modal .message\").html(\"

Are you sure you want to leave this team?

You will lose access to all projects within this team, and you will have to be re-invited if you want to join the team again in the future.

\"),t(\"#confirm-delete-modal .title\").text(\"Confirm Leaving Team\"),t(\"#confirm-delete-modal .modal-title\").attr(\"title\",\"Confirm Leaving Team\"),t(\"#confirm-delete-btn\").html(' Leave Team'),t(\"#confirm-delete-modal\").data(\"deleteType\",\"team-leave\").attr(\"data-delete-type\",\"team-leave\"),t(\"#confirm-delete-modal .alert\").hide(),t(\"#confirm-delete-modal hr\").hide(),t(\"#confirm-delete-modal\").modal(\"show\")}),t(document).on(\"click\",'#confirm-delete-modal[data-delete-type=\"team-leave\"] #confirm-delete-btn',function(e){e.stopPropagation(),e.preventDefault();var n=t(this);n.html(\"Leaving \"+stiGlobal.loadingIcon).prop(\"disabled\",!0),t(\"#confirm-delete-modal .modal-close-btn\").prop(\"disabled\",!0),t.ajax({url:stiApi+\"/fsl/teams/\"+i.team.id+\"/members/\"+stiGlobal.user.id,method:\"delete\"}).done(function(e,t,i){var n=\"You have been removed from the team and are being \";n+=\"brought back to the dashboard.\",toastr.success(n,\"Saved\"),window.location.href=\"/dashboard\"}).fail(function(e,t,i){stiHelper.parseAjaxError(e)}).always(function(e,i,o){n.html(' Leave Team').prop(\"disabled\",!1),t(\"#confirm-delete-modal .modal-close-btn\").prop(\"disabled\",!1)})}),t(\"#edit-member-form\").on(\"submit\",function(e){e.stopPropagation(),e.preventDefault();var n=t(this),o=n.find('button[type=\"submit\"]'),r=parseInt(t(\"#edit-team-member-modal\").data(\"memberId\")),a=n.find(\"#edit-member-role\").val();o.html(\"Saving \"+stiGlobal.loadingIcon).prop(\"disabled\",!0),t(\"#edit-team-member-modal .modal-close-btn\").prop(\"disabled\",!0),t.ajax({url:stiApi+\"/fsl/teams/\"+i.team.id+\"/members/\"+r+\"/roles\",method:\"put\",data:JSON.stringify({role:a})}).done(function(e,o,s){t(\"#edit-team-member-modal\").modal(\"hide\");for(var l=i.roles.find(function(e){return e.name===a}),d=0;d Save Team Member').prop(\"disabled\",!1),t(\"#edit-team-member-modal .modal-close-btn\").prop(\"disabled\",!1)})}),t(\"#members-list\").on(\"click\",\".delete-item-btn\",function(){t(\"#confirm-delete-modal .message\").html(\"

Are you sure you want to remove this team member?

\"),t(\"#confirm-delete-modal .title\").text(\"Confirm Team Member Removal\"),t(\"#confirm-delete-modal .modal-title\").attr(\"title\",\"Confirm Team Member Removal\"),t(\"#confirm-delete-btn\").html(' Remove Team Member'),t(\"#confirm-delete-modal\").data(\"deleteType\",\"team-member\").attr(\"data-delete-type\",\"team-member\"),t(\"#confirm-delete-modal .alert\").hide(),t(\"#confirm-delete-modal hr\").hide(),t(\"#confirm-delete-modal\").data(\"memberId\",t(this).closest(\".list-group-button-item\").data(\"teamMemberId\")).attr(\"data-team-member-id\",t(this).closest(\".list-group-button-item\").data(\"teamMemberId\")),t(\"#confirm-delete-modal\").modal(\"show\")}),t(document).on(\"click\",'#confirm-delete-modal[data-delete-type=\"team-member\"] #confirm-delete-btn',function(e){e.stopPropagation(),e.preventDefault();var n=t(this),o=parseInt(t(\"#confirm-delete-modal\").data(\"teamMemberId\"));n.html(\"Removing \"+stiGlobal.loadingIcon).prop(\"disabled\",!0),t(\"#confirm-delete-modal .modal-close-btn\").prop(\"disabled\",!0),t.ajax({url:stiApi+\"/fsl/teams/\"+i.team.id+\"/members/\"+o,method:\"delete\"}).done(function(e,n,r){t(\"#confirm-delete-modal\").modal(\"hide\");var a=i.team.members.findIndex(function(e){return e.id===o}),s=i.team.invitations.findIndex(function(e){return e.invited_user_email===i.team.members[a].email});i.team.members.splice(a,1),i.team.invitations.splice(s,1),i.renderMembers(),i.renderInvitations(),toastr.success(\"The team member has been removed.\",\"Saved\")}).fail(function(e,t,i){stiHelper.parseAjaxError(e)}).always(function(e,i,o){n.html(' Remove Team Member').prop(\"disabled\",!1),t(\"#confirm-delete-modal .modal-close-btn\").prop(\"disabled\",!1)})}),t(\"#new-member-form\").on(\"submit\",function(e){e.stopPropagation(),e.preventDefault();var n=t(this),o=n.find('button[type=\"submit\"]'),r=n.find(\"#new-member-email\").val();o.html(\"Inviting \"+stiGlobal.loadingIcon).prop(\"disabled\",!0),t(\"#new-team-member-modal .modal-close-btn\").prop(\"disabled\",!0),t.ajax({url:stiApi+\"/fsl/teams/\"+i.team.id+\"/invitations/send\",method:\"post\",data:JSON.stringify({email:r,role:n.find(\"#new-member-role\").val()})}).done(function(e,o,a){t(\"#new-team-member-modal\").modal(\"hide\"),i.team.invitations.push(e),i.renderInvitations(),n[0].reset(),toastr.success(\"A team invitation will been sent to \"+r+\".\",\"Sent\")}).fail(function(e,t,i){stiHelper.parseAjaxError(e)}).always(function(e,i,n){o.html(' Send Invitation').prop(\"disabled\",!1),t(\"#new-team-member-modal .modal-close-btn\").prop(\"disabled\",!1)})}),t(\".list-group-button-items\").on(\"click\",\".edit-item-btn\",function(e){var n=this;e.preventDefault();var o=t(\"#edit-team-member-modal\"),r=i.team.members.find(function(e){return e.id===parseInt(t(n).closest(\".list-group-button-item\").data(\"teamMemberId\"))}),a=i.team.invitations.find(function(e){return e.invited_user_email===r.email});o.attr(\"data-member-id\",r.id).data(\"memberId\",r.id),o.find(\".member-name\").text(r.first_name+\" \"+r.last_name),o.find(\".member-email\").text(r.email),o.find(\"#edit-member-role\").val(r.roles[0].name),a?(o.find(\".invited-metadata\").show(),o.find(\".invited-by\").text(a.invited_by_user.first_name+\" \"+a.invited_by_user.last_name),o.find(\".invited-at\").text(stiHelper.formatDate(a.created_at,!0)),o.find(\".accepted-at\").text(stiHelper.formatDate(a.answered_on,!0))):o.find(\".invited-metadata\").hide(),o.modal(\"show\")}),t(\"#invitations-list\").on(\"click\",\".cancel-item-btn\",function(){t(\"#confirm-delete-modal .message\").html(\"

Are you sure you want to cancel this team invitation?

\"),t(\"#confirm-delete-modal .title\").text(\"Confirm Team Invitation Cancellation\"),t(\"#confirm-delete-modal .modal-title\").attr(\"title\",\"Confirm Team Invitation Cancellation\"),t(\"#confirm-delete-btn\").html(' Cancel Team Invitation'),t(\"#confirm-delete-modal\").data(\"deleteType\",\"team-invitation-cancel\").attr(\"data-delete-type\",\"team-invitation-cancel\"),t(\"#confirm-delete-modal .alert\").hide(),t(\"#confirm-delete-modal hr\").hide(),t(\"#confirm-delete-modal\").data(\"teamInvitationId\",t(this).closest(\".list-group-button-item\").data(\"teamInvitationId\")).attr(\"data-team-invitation-id\",t(this).closest(\".list-group-button-item\").data(\"teamInvitationId\")),t(\"#confirm-delete-modal\").modal(\"show\")}),t(document).on(\"click\",'#confirm-delete-modal[data-delete-type=\"team-invitation-cancel\"] #confirm-delete-btn',function(e){e.preventDefault();var n=t(this),o=t(\"#confirm-delete-modal\"),r=parseInt(o.data(\"teamInvitationId\"));n.html(\"Canceling \"+stiGlobal.loadingIcon).prop(\"disabled\",!0),t(\"#confirm-delete-modal .modal-close-btn\").prop(\"disabled\",!0),t.ajax({url:stiApi+\"/firestop-locator/team-invitations/\"+r,method:\"delete\"}).done(function(e,n,o){t(\"#confirm-delete-modal\").modal(\"hide\");var a=i.team.invitations.findIndex(function(e){return e.id===r});i.team.invitations.splice(a,1),i.renderInvitations(),toastr.success(\"The team invitation was canceled.\",\"Canceled\")}).fail(function(e,t,i){stiHelper.parseAjaxError(e)}).always(function(e,i,o){n.html(' Cancel Team Invitation').prop(\"disabled\",!1),t(\"#confirm-delete-modal .modal-close-btn\").prop(\"disabled\",!1)})})}}).call(t,i(\"7t+N\"))},DQCr:function(e,t,i){\"use strict\";var n=i(\"cGG2\");function o(e){return encodeURIComponent(e).replace(/%40/gi,\"@\").replace(/%3A/gi,\":\").replace(/%24/g,\"$\").replace(/%2C/gi,\",\").replace(/%20/g,\"+\").replace(/%5B/gi,\"[\").replace(/%5D/gi,\"]\")}e.exports=function(e,t,i){if(!t)return e;var r;if(i)r=i(t);else if(n.isURLSearchParams(t))r=t.toString();else{var a=[];n.forEach(t,function(e,t){null!==e&&void 0!==e&&(n.isArray(e)&&(t+=\"[]\"),n.isArray(e)||(e=[e]),n.forEach(e,function(e){n.isDate(e)?e=e.toISOString():n.isObject(e)&&(e=JSON.stringify(e)),a.push(o(t)+\"=\"+o(e))}))}),r=a.join(\"&\")}return r&&(e+=(-1===e.indexOf(\"?\")?\"?\":\"&\")+r),e}},\"Dlg+\":function(e,t,i){(function(e){window._=i(\"M4fF\");try{window.$=i(\"7t+N\"),i(\"jf49\")}catch(e){}window.axios=i(\"mtWM\"),window.axios.defaults.headers.common[\"X-Requested-With\"]=\"XMLHttpRequest\";var t=document.head.querySelector('meta[name=\"csrf-token\"]');t?window.axios.defaults.headers.common[\"X-CSRF-TOKEN\"]=t.content:console.error(\"CSRF token not found: https://laravel.com/docs/csrf#csrf-x-csrf-token\")}).call(t,i(\"7t+N\"))},DuR2:function(e,t){var i;i=function(){return this}();try{i=i||Function(\"return this\")()||(0,eval)(\"this\")}catch(e){\"object\"==typeof window&&(i=window)}e.exports=i},F1kH:function(e,t,i){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,t){var n=i(\"VjV9\"),o=i.n(n),r=i(\"oLnp\"),a=(i.n(r),i(\"JJ2Q\"));i.n(a);i(\"Dlg+\"),t.jQuery=e,t.toastr=i(\"vQJi\"),i(\"nrd6\"),i(\"GMVP\"),i(\"xvwM\"),i(\"kD+0\"),i(\"+1bC\"),t.SimpleBar=o.a,t.moment=i(\"PJh5\"),t.PhotoSwipe=i(\"hLg7\"),t.PhotoSwipeUI_Default=i(\"fzln\"),i(\"7+mv\"),t.Cookies=i(\"lbHh\"),t.stiHelper=i(\"l54L\"),t.stiGlobal=i(\"6jjk\"),t.stiLeaflet=i(\"h13l\"),t.stiDashboard=i(\"riSB\"),t.stiProject=i(\"IWN+\"),t.stiPermit=i(\"14de\"),t.stiFloor=i(\"x5P9\"),t.stiTeam=i(\"BjPJ\"),t.stiAccount=i(\"9qP8\"),t.stiCheckout=i(\"r39l\"),t.stiProduct=i(\"AlLi\"),t.stiItemType=i(\"loOi\"),t.stiItemConflict=i(\"0srj\")}.call(t,i(\"7t+N\"),i(\"DuR2\"))},FtD3:function(e,t,i){\"use strict\";var n=i(\"t8qj\");e.exports=function(e,t,i,o,r){var a=new Error(e);return n(a,t,i,o,r)}},GHBc:function(e,t,i){\"use strict\";var n=i(\"cGG2\");e.exports=n.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),i=document.createElement(\"a\");function o(e){var n=e;return t&&(i.setAttribute(\"href\",n),n=i.href),i.setAttribute(\"href\",n),{href:i.href,protocol:i.protocol?i.protocol.replace(/:$/,\"\"):\"\",host:i.host,search:i.search?i.search.replace(/^\\?/,\"\"):\"\",hash:i.hash?i.hash.replace(/^#/,\"\"):\"\",hostname:i.hostname,port:i.port,pathname:\"/\"===i.pathname.charAt(0)?i.pathname:\"/\"+i.pathname}}return e=o(window.location.href),function(t){var i=n.isString(t)?o(t):t;return i.protocol===e.protocol&&i.host===e.host}}():function(){return!0}},\"IWN+\":function(e,t,i){(function(t){var i=e.exports;i.project=[],i.itemTypes=[],i.permits=[],i.loadProjectData=function(e,n,o){n&&n(),t.ajax({url:stiApi+\"/fsl/projects/\"+projectId+\"/dashboard\"}).done(function(e,t,n){i.project=e,o&&o()}).fail(function(e,t,i){stiHelper.parseAjaxError(e)}).always(function(e,t,i){})},i.loadItemTypeData=function(e,n,o){n&&n(),t.ajax({url:stiApi+\"/fsl/item-types?where[]=project_id|=|\"+projectId+\"&load[]=created_by&load[]=updated_by\"}).done(function(e,t,n){i.itemTypes=e.data,o&&o()}).fail(function(e,t,i){stiHelper.parseAjaxError(e)}).always(function(e,t,i){})},i.loadProjectPermits=function(e,n,o){n&&n(),t.ajax({url:stiApi+\"/fsl/permits?limit=-1&where[]=project_id|=|\"+projectId+\"&load[]=created_by\"}).done(function(e,t,n){i.permits=e.data,o&&o()}).fail(function(e,t,i){stiHelper.parseAjaxError(e)})},i.loadPermitStatuses=function(){t.ajax({url:stiApi+\"/fsl/permits/statuses\"}).done(function(e,i,n){for(var o=t(\"#new-permit-permit-status-id\"),r='',a=0;a'+e[a].description+\"\";o.html(r)}).fail(function(e,t,i){stiHelper.parseAjaxError(e)})},i.renderProjectInfo=function(){t(\".info-panel\");t(\".project-name\").text(i.project.name);var e=stiHelper.escapeHtml(i.project.address_1);i.project.address_2&&(e+=\"
\"+stiHelper.escapeHtml(i.project.address_2)),i.project.address_1&&t(\".street\").html(e);var n=\"\";i.project.city&&(n+=i.project.city),i.project.city&&i.project.state?n+=\", \"+i.project.state:i.project.state&&(n+=i.project.state),i.project.zip&&(n+=\" \"+i.project.zip),t(\".city-state-zip\").text(n),i.project.country&&t(\".country\").text(countriesList[i.project.country].name);var o=\"\";o=\"Active\"==i.project.status.description?\"active-status\":\"Pending\"==i.project.status.description?\"pending-status\":\"closed-status\",t(\".value.status-value\").text(i.project.status.description).removeClass(\"active-status pending-status closed-status\").addClass(o),t(\".project-team .value\").attr(\"href\",\"/teams/\"+i.project.team.id).text(i.project.team.name);var r=i.project.created_by_user?i.project.created_by_user.first_name+\" \"+i.project.created_by_user.last_name:\"\",a=stiHelper.formatDate(i.project.created_at,!0);t(\"#project-created-by\").text(r),t(\"#project-created-at\").text(a);var s=i.project.updated_by_user?i.project.updated_by_user.first_name+\" \"+i.project.updated_by_user.last_name:\"\",l=stiHelper.formatDate(i.project.updated_at,!0);t(\"#project-updated-by\").text(s),t(\"#project-updated-at\").text(l);var d=stiHelper.formatDate(i.project.global_updated_at,!0);t(\"#project-global-updated-at\").text(d),t(\"#edit-project-name\").val(i.project.name),t(\"#edit-project-status\").val(i.project.status.id),t(\"#edit-project-team\").val(i.project.team.id),t(\"#edit-project-address-1\").val(i.project.address_1),t(\"#edit-project-address-2\").val(i.project.address_2),t(\"#edit-project-city\").val(i.project.city),t(\"#edit-project-state\").val(i.project.state),t(\"#edit-project-zip\").val(i.project.zip),t(\"#edit-project-country\").val(i.project.country)},i.renderBuildings=function(){var e=t(\"#buildings-list\"),n=\"\",o=i.project.buildings.length;for(var r in i.project.buildings){var a=t(\"#project-templates .list-group-button-item-template\").clone();for(var s in a.find(\".item-info-btn\").attr(\"title\",\"Building info\"),a.find(\".edit-item-btn\").attr(\"title\",\"Edit building\"),a.find(\".delete-item-btn\").attr(\"title\",\"Delete building\"),a.find(\".add-item-btn\").attr(\"title\",\"Add floor\").find(\"span\").text(\"Add Floor\"),a.find(\".download-item-btn\").remove(),a.find(\".heading-icon\").addClass(\"fa-building-o\"),a.find(\".heading-value\").text(i.project.buildings[r].name),a.find(\".list-group-button-item\").attr(\"data-building-id\",i.project.buildings[r].id).data(\"buildingId\",i.project.buildings[r].id),a.find(\".body-area\").html(''+i.project.buildings[r].floors.length+\" \"+stiGlobal.floorWord+(i.project.buildings[r].floors.length>1?\"s\":\"\")).show(),n+=a.html(),i.project.buildings[r].floors){var l=t(\"#project-templates .list-group-button-item-template\").clone(),d=i.project.buildings[r].floors[s].name;l.find(\".item-info-btn\").remove(),l.find(\".edit-item-btn\").remove(),l.find(\".delete-item-btn\").remove(),l.find(\".add-item-btn\").remove(),l.find(\".download-item-btn .fa\").removeClass(\"fa-cloud-download\").addClass(\"fa-external-link\"),l.find(\".download-item-btn\").attr(\"title\",\"View floor\").attr(\"href\",\"/projects/\"+i.project.id+\"/floors/\"+i.project.buildings[r].floors[s].id).find(\"span\").text(\"View\"),l.find(\".heading-value\").text(d),l.find(\".heading-icon\").addClass(\"fa-map-o\"),0===i.project.buildings[r].floors[s].pdfs.length&&l.find(\".heading-value\").append(' No PDF'),i.project.buildings[r].floors[s].is_disabled&&l.find(\".heading-value\").append(' Disabled'),l.find(\".body-area\").html('
'+i.project.buildings[r].floors[s].items_count+' items
'+i.project.buildings[r].name+\"
\").show(),n+=l.html()}}0===o&&(n='
',n+=\"You do not have any \",n+=stiGlobal.buildingWord+\"s\",n+=\"
\"),t(\".building-count\").text(o),e.html(n),i.buildingsList=new SimpleBar(e[0]),stiHelper.setScrollableHeight(),e.find(\".list-loader\").remove()},i.renderDocuments=function(e){void 0===e&&(e=!1);var n=t(\"#documents-list\"),o=\"\",r=t(\".doc-count\"),a=i.project.documents.length;for(var s in i.project.documents){var l=t(\"#project-templates .list-group-button-item-template\").clone();l.find(\".item-info-btn\").attr(\"title\",\"Document info\"),l.find(\".edit-item-btn\").attr(\"title\",\"Edit document\"),l.find(\".delete-item-btn\").attr(\"title\",\"Delete document\"),l.find(\".add-item-btn\").remove(),l.find(\".download-item-btn\").attr(\"title\",\"Download document\").attr(\"href\",stiApi+\"/fsl/documents/\"+i.project.documents[s].id+\"/download\"),l.find(\".heading-icon\").addClass(\"fa-\"+stiGlobal.fileIcons[i.project.documents[s].extension]),l.find(\".heading-value\").text(i.project.documents[s].filename_original+\".\"+i.project.documents[s].extension),l.find(\".list-group-button-item\").attr(\"data-document-id\",i.project.documents[s].id).data(\"documentId\",i.project.documents[s].id),l.find(\".body-area\").addClass(\"searchable\").html('
'+i.project.documents[s].filesize_readable+'
'+(i.project.documents[s].item_id?\"Item Document\":\"\")+\"
\").show(),o+=l.html()}0===a&&(o='
',o+=\"You do not have any documents.\",o+=\"
\"),r.text(a),n.html(o),new SimpleBar(n[0]),stiHelper.setScrollableHeight(),n.find(\".list-loader\").remove()},i.renderItemTypes=function(){var e=t(\"#item-types-list\"),n=\"\",o=t(\".item-type-count\"),r=i.itemTypes.length;for(var a in i.itemTypes){var s=t(\"#project-templates .list-group-button-item-template\").clone();s.find(\".item-info-btn\").remove(),s.find(\".edit-item-btn\").remove(),s.find(\".delete-item-btn\").remove(),s.find(\".add-item-btn\").remove(),s.find(\".download-item-btn .fa\").removeClass(\"fa-cloud-download\").addClass(\"fa-external-link\"),s.find(\".download-item-btn\").attr(\"title\",\"View item type\").attr(\"href\",\"/projects/\"+i.project.id+\"/item-types/\"+i.itemTypes[a].id).find(\"span\").text(\"View\"),s.find(\".heading-icon\").remove(),s.find(\".heading-value\").html(''+i.itemTypes[a].description),s.find(\".list-group-button-item\").attr(\"data-item-type-id\",i.itemTypes[a].id).data(\"itemTypeId\",i.itemTypes[a].id),s.find(\".body-area\").remove(),n+=s.html()}0===r&&(n='
',n+=\"You do not have any item types.\",n+=\"
\"),o.text(r),e.html(n),new SimpleBar(e[0]),stiHelper.setScrollableHeight(),e.find(\".list-loader\").remove()},i.loadPermitTypeCheckBoxes=function(){var e,i=\"\";if(permitTypes.length){for(var n=0;n Save '+stiHelper.ucFirst(stiGlobal.floorWord))}}),stiGlobal.fileUpload.bindRemoveFileBtnListener(e,i.newFloorDropzone)},i.buildingScrollEvent=function(){i.buildingsList.getScrollElement().addEventListener(\"scroll\",function(){var e=t(\"#buildings-list\").offset().top;t(\".building-item:not(.stickied) .building-heading\").each(function(i,n){e>=t(n).offset().top&&!t(n).parents(\".building-item\").hasClass(\"stickied\")&&(t(\".building-item\").removeClass(\"stickied\"),t(n).parents(\".building-item\").addClass(\"stickied\"))})})},i.disableRemovingMemberDropdown=function(){var e=t(\".team-members-list .team-member-dropdown\").length;t(\".team-members-list .delete-member-row-btn\").attr(\"disabled\",1===e)},i.bindListeners=function(){t(\"#edit-project-form\").on(\"submit\",function(e){e.stopPropagation(),e.preventDefault();var n=t(this),o=n.find('button[type=\"submit\"]');o.html(\"Saving \"+stiGlobal.loadingIcon).prop(\"disabled\",!0),t(\"#edit-project-modal .modal-close-btn\").prop(\"disabled\",!0),t.ajax({url:stiApi+\"/fsl/teams/\"+i.project.team.id+\"/projects/\"+i.project.id,method:\"put\",data:JSON.stringify({name:n.find(\"#edit-project-name\").val(),status_id:n.find(\"#edit-project-status\").val(),address_1:n.find(\"#edit-project-address-1\").val(),address_2:n.find(\"#edit-project-address-2\").val(),city:n.find(\"#edit-project-city\").val(),state:n.find(\"#edit-project-state\").val(),zip:n.find(\"#edit-project-zip\").val(),country:n.find(\"#edit-project-country\").val(),team_id:n.find(\"#edit-project-team\").val()})}).done(function(e,n,o){sessionStorage.removeItem(\"project\"),i.loadProjectData(!0,null,i.renderProjectInfo),stiGlobal.renderNavProjects(),toastr.success(\"The project has been updated.\",\"Saved\"),t(\"#edit-project-modal\").modal(\"hide\")}).fail(function(e,t,i){stiHelper.parseAjaxError(e)}).always(function(e,i,n){o.html(' Save Project').prop(\"disabled\",!1),t(\"#edit-project-modal .modal-close-btn\").prop(\"disabled\",!1)})}),t(\"#select-all-buildings-floors-btn\").on(\"click\",function(){\"select\"===t(this).data(\"action\")?(t(this).data(\"action\",\"clear\").text(\"Clear All\"),t(\"#new-permit-modal .export-floor-id\").prop(\"checked\",!0).trigger(\"change\"),t(\"#new-permit-modal .export-building-id\").prop(\"checked\",!0)):(t(this).data(\"action\",\"select\").text(\"Select All\"),t(\"#new-permit-modal .export-floor-id\").prop(\"checked\",!1).trigger(\"change\"),t(\"#new-permit-modal .export-building-id\").prop(\"checked\",!1))}),t(\"#new-permit-modal\").on(\"click\",\".export-building-id\",function(){t(this).parent().next(\".floors-list\").find(\"input[type=checkbox]\").prop(\"checked\",t(this).prop(\"checked\"))}),t(\"#new-permit-modal\").on(\"click\",\".export-floor-id\",function(){t(this).prop(\"checked\")||t(this).parent().parent().parent().prev(\".building-name\").find(\".export-building-id\").prop(\"checked\",!1)}),t(\"#new-building-form\").on(\"submit\",function(e){e.stopPropagation(),e.preventDefault();var n=t(this),o=n.find('button[type=\"submit\"]');o.html(\"Saving \"+stiGlobal.loadingIcon).prop(\"disabled\",!0),t(\"#new-building-modal .modal-close-btn\").prop(\"disabled\",!0),t.ajax({url:stiApi+\"/fsl/projects/\"+i.project.id+\"/buildings\",method:\"post\",data:JSON.stringify({name:n.find(\"#new-building-name\").val()})}).done(function(e,o,r){sessionStorage.removeItem(\"project\"),e.floors=[],i.project.buildings.push(e),i.project.buildings.sort(stiHelper.naturalSortByName),i.renderBuildings(),stiFloor.renderExportModal(),n[0].reset(),toastr.success(\"The building has been created.\",\"Saved\"),t(\"#new-building-modal\").modal(\"hide\")}).fail(function(e,t,i){stiHelper.parseAjaxError(e)}).always(function(e,i,n){o.html(' Save '+stiHelper.ucFirst(stiGlobal.buildingWord)).prop(\"disabled\",!1),t(\"#new-building-modal .modal-close-btn\").prop(\"disabled\",!1)})}),t(\"#buildings-list\").on(\"click\",\".edit-item-btn\",function(e){e.stopPropagation(),e.preventDefault();var n=parseInt(t(this).closest(\".list-group-button-item\").data(\"buildingId\")),o=i.project.buildings.find(function(e){return e.id===n});t(\"#edit-building-modal\").attr(\"data-building-id\",n).data(\"buildingId\",n),t(\"#edit-building-name\").val(o.name),t(\"#edit-building-modal\").modal(\"show\")}),t(\"#edit-building-form\").on(\"submit\",function(e){e.stopPropagation(),e.preventDefault();var n=t(this),o=n.find('button[type=\"submit\"]'),r=t(\"#edit-building-modal\").data(\"buildingId\");o.html(\"Saving \"+stiGlobal.loadingIcon).prop(\"disabled\",!0),t(\"#edit-building-modal .modal-close-btn\").prop(\"disabled\",!0),t.ajax({url:stiApi+\"/fsl/projects/\"+i.project.id+\"/buildings/\"+r,method:\"put\",data:JSON.stringify({name:n.find(\"#edit-building-name\").val()})}).done(function(e,o,a){sessionStorage.removeItem(\"project\");for(var s=0;s Save '+stiHelper.ucFirst(stiGlobal.buildingWord)).prop(\"disabled\",!1),t(\"#edit-building-modal .modal-close-btn\").prop(\"disabled\",!1)})}),t(\"#documents-list\").on(\"click\",\".edit-item-btn\",function(e){e.preventDefault();var n=t(\"#edit-document-modal\"),o=parseInt(t(this).closest(\".list-group-button-item\").data(\"documentId\")),r=i.project.documents.find(function(e){return e.id===o});\"pdf\"==r.extension?(n.find(\".image\").hide(),n.find(\".file-viewer\").show(),n.find(\".file-viewer object\").attr(\"data\",stiApi+\"/fsl/documents/\"+r.id+\"/download?view=true\").attr(\"type\",r.mime_type)):\"jpg\"==r.extension||\"png\"==r.extension||\"jpeg\"==r.extension?(n.find(\".image\").show(),n.find(\".file-viewer\").hide(),n.find(\"img\").attr(\"src\",stiApi+\"/fsl/documents/\"+r.id+\"/download?view=true\")):(n.find(\".doc-previews\").hide(),n.find(\".image\").hide(),n.find(\".file-viewer\").hide()),n.attr(\"data-document-id\",r.id).data(\"documentId\",r.id),n.attr(\"data-item-id\",r.item_id).data(\"itemId\",r.item_id),n.find(\"#edit-document-name\").attr(\"value\",r.filename_original).siblings(\".input-group-addon\").text(\".\"+r.extension),n.modal(\"show\")}),t(\"#edit-document-modal\").on(\"hidden.bs.modal\",function(){var e=t(\"#edit-document-modal\");e.find(\".file-viewer > object\").remove(),e.find(\".file-viewer\").html('
')}),t(\"#edit-document-form\").on(\"submit\",function(e){e.stopPropagation(),e.preventDefault();var n=t(this),o=n.find('button[type=\"submit\"]'),r=t(\"#edit-document-modal\").data(\"documentId\");o.html(\"Saving \"+stiGlobal.loadingIcon).prop(\"disabled\",!0),t(\"#edit-document-modal .modal-close-btn\").prop(\"disabled\",!0),t.ajax({url:stiApi+\"/fsl/projects/\"+i.project.id+\"/documents/\"+r,method:\"patch\",data:JSON.stringify({filename_original:n.find(\"#edit-document-name\").val(),item_id:t(\"#edit-document-modal\").data(\"itemId\")})}).done(function(e,o,a){t(\"#edit-document-modal\").modal(\"hide\");for(var s=0;s Save Document').prop(\"disabled\",!1),t(\"#edit-document-modal .modal-close-btn\").prop(\"disabled\",!1)})}),t(\"#buildings-list\").on(\"click\",\".add-item-btn\",function(e){e.preventDefault();var i=t(\"#new-floor-modal\"),n=parseInt(t(this).closest(\".list-group-button-item\").data(\"buildingId\"));i.attr(\"data-building-id\",n).data(\"buildingId\",n),i.modal(\"show\")}),t(\"#new-floor-form\").on(\"submit\",function(e){e.stopPropagation(),e.preventDefault();var n=t(this),o=n.find('button[type=\"submit\"]'),r=t(\"#clear-new-floor-upload-btn\"),a=t(\"#new-floor-modal\").data(\"buildingId\");0!==i.newFloorDropzone.files.length?(o.html(\"Saving \"+stiGlobal.loadingIcon).prop(\"disabled\",!0),t(\"#new-floor-modal .modal-close-btn\").prop(\"disabled\",!0),r.prop(\"disabled\",!0),t.ajax({url:stiApi+\"/fsl/buildings/\"+a+\"/floors\",method:\"post\",data:JSON.stringify({name:n.find(\"#new-floor-name\").val()})}).done(function(e,t,n){i.newFloorDropzone.options.url=stiApi+\"/fsl/floors/\"+e.id+\"/pdf\",i.newFloorDropzone.processQueue(),i.newFloorId=e.id}).fail(function(e,i,n){stiHelper.parseAjaxError(e),o.html(' Save '+stiHelper.ucFirst(stiGlobal.floorWord)).prop(\"disabled\",!1),t(\"#new-floor-modal .modal-close-btn\").prop(\"disabled\",!0),r.prop(\"disabled\",!1)}).always(function(e,t,i){})):toastr.error(\"Please add a PDF to upload.\",\"Error\")}),t(\"#new-permit-form\").on(\"submit\",function(e){e.stopPropagation(),e.preventDefault();var i=t(this),n=i.find('button[type=\"submit\"]'),o={project_id:projectId,permit_title:i.find(\"#new-permit-permit-title\").val(),permit_status_id:parseInt(i.find(\"#new-permit-permit-status-id\").val()),work_order_number:i.find(\"#new-permit-work-order-number\").val(),start_date:i.find(\"#new-permit-start-date\").val(),end_date:i.find(\"#new-permit-end-date\").val(),permit_description:i.find(\"#new-permit-permit-description\").val(),floor_ids:[],user_ids:[],permit_type_ids:[]};t.each(t(\"#new-permit-form input[name='export-floor-id']:checked\"),function(){o.floor_ids.push(t(this).val())}),i.find(\".team-member-dropdown\").each(function(e,i){var n=t(i).find(\".new-member\").val();o.user_ids.push(n)}),t.each(t(\"#new-permit-form input[name='permit-type-id']:checked\"),function(){o.permit_type_ids.push(t(this).val())}),n.html(stiGlobal.loadingIcon).prop(\"disabled\",!0),t.ajax({url:stiApi+\"/fsl/permits\",method:\"post\",data:JSON.stringify(o)}).done(function(e,t,i){toastr.success(\"The permit has been created. You are being redirected to the permit.\",\"Saved\"),window.location.href=\"/projects/\"+projectId+\"/permits/\"+e.data.id}).fail(function(e,t,i){stiHelper.parseAjaxError(e)}).always(function(e,t,i){n.html(\"Create Permit\").prop(\"disabled\",!1)})}),t(\"#add-new-member-btn\").on(\"click\",function(){$template=t(\"#project-templates .team-member-dropdown\").clone(),t(\"#new-permit-modal .team-members-list\").append($template),i.disableRemovingMemberDropdown()}),t(\".team-members-list\").on(\"click\",\".delete-member-row-btn\",function(e){t(this).closest(\".team-member-dropdown\").remove(),i.disableRemovingMemberDropdown()}),t(\"#show-new-permit-type-input-btn\").on(\"click\",function(e){\"Add a Permit Type\"==t(this).text()?(t(\".create-new-permit-type-section\").slideDown(),t(this).text(\"Close\")):(t(\".create-new-permit-type-section\").slideUp(),t(this).text(\"Add a Permit Type\"))}),t(\"#create-new-permit-type-btn\").on(\"click\",function(e){e.stopPropagation(),e.preventDefault();var n=t(this);n.html(stiGlobal.loadingIcon).prop(\"disabled\",!0),t.ajax({url:stiApi+\"/fsl/permit-types\",method:\"post\",data:JSON.stringify({project_id:projectId,name:t(\"#new-permit-type-input\").val()})}).done(function(e,n,o){permitTypes.push(e.data),t(\"#new-permit-type-input\").val(\"\"),i.loadPermitTypeCheckBoxes()}).fail(function(e,t,i){stiHelper.parseAjaxError(e)}).always(function(e,t,i){n.text(\"Save\").prop(\"disabled\",!1)})}),t(\"#new-item-type-modal\").on(\"click\",\".choose-standard-fields-area .standard-field-list-item\",function(e){e.preventDefault(),console.log(\"sfsf\");var i=t(this);i.hasClass(\"field-hidden\")?(i.removeClass(\"field-hidden\"),i.find(\".show-hide-field-btn .fa\").removeClass(\"fa-eye-slash\").addClass(\"fa-eye\"),i.attr(\"title\",\"Hide this field\")):(i.addClass(\"field-hidden\"),i.find(\".show-hide-field-btn .fa\").removeClass(\"fa-eye\").addClass(\"fa-eye-slash\"),i.attr(\"title\",\"Show this field\"))}),t(\"#new-item-type-modal-btn\").on(\"click\",function(e){e.preventDefault();var i=t(\"#new-item-type-modal\"),n=\"\";for(var o in stiItemType.allStandardFields.item_fields)\"sub_type\"!==o&&stiItemType.allStandardFields.item_fields[o].togglable&&($fieldListItem=t(\"#project-templates .standard-field-list-item-template\").clone(),$fieldListItem.find(\".standard-field-list-item\").attr(\"title\",\"Hide this field\"),$fieldListItem.find(\".heading-value\").text(stiItemType.allStandardFields.item_fields[o].name),$fieldListItem.find(\".type-icon\").addClass(stiItemType.icons[stiItemType.allStandardFields.item_fields[o].type]),$fieldListItem.find(\".standard-field-list-item\").attr(\"data-field\",o).data(\"field\",o),$fieldListItem.find(\".show-hide-field-btn\").show(),n+=$fieldListItem.html());i.find(\".choose-standard-fields-area .list-group\").html(n),i.modal(\"show\")}),t(\"#new-item-type-form\").on(\"submit\",function(e){e.stopPropagation(),e.preventDefault();var n=t(this),o=n.find('button[type=\"submit\"]'),r=[];o.html(\"Saving \"+stiGlobal.loadingIcon).prop(\"disabled\",!0),t(\"#new-item-type-modal .modal-close-btn\").prop(\"disabled\",!0),n.find(\".choose-standard-fields-area .standard-field-list-item:not(.field-hidden)\").each(function(e,i){r.push(t(i).data(\"field\"))}),t.ajax({url:stiApi+\"/fsl/item-types\",method:\"post\",data:JSON.stringify({description:n.find(\"#new-item-type-name\").val(),letter_code:n.find(\"#new-item-type-letter-code\").val(),project_id:projectId,type:\"stamp\",standard_item_fields:r})}).done(function(e,n,o){t(\"#new-item-type-modal\").modal(\"hide\"),toastr.success(\"The item type has been created. You are being redirected to the item type.\",\"Saved\"),window.location.href=\"/projects/\"+i.project.id+\"/item-types/\"+e.id}).fail(function(e,t,i){stiHelper.parseAjaxError(e)}).always(function(e,i,n){o.html(' Save Item Type').prop(\"disabled\",!1),t(\"#new-item-type-modal .modal-close-btn\").prop(\"disabled\",!1)})}),t(\".delete-project-btn\").on(\"click\",function(){t(\"#confirm-delete-modal .message\").html(\"

Are you sure you want to delete this project?

Deleting the project will delete all buildings, floors, items, images, inspections, and documents for for this project.

\"),t(\"#confirm-delete-modal .title\").text(\"Confirm Project Deletion\"),t(\"#confirm-delete-modal .modal-title\").attr(\"title\",\"Confirm Project Deletion\"),t(\"#confirm-delete-btn\").html(' Delete Project'),t(\"#confirm-delete-modal\").data(\"deleteType\",\"project\").attr(\"data-delete-type\",\"project\"),t(\"#confirm-delete-modal\").modal(\"show\")}),t(document).on(\"click\",'#confirm-delete-modal[data-delete-type=\"project\"] #confirm-delete-btn',function(e){e.stopPropagation(),e.preventDefault();var n=t(this);n.html(\"Deleting \"+stiGlobal.loadingIcon).prop(\"disabled\",!0),t(\"#confirm-delete-modal .modal-close-btn\").prop(\"disabled\",!0),t.ajax({url:stiApi+\"/fsl/projects/\"+i.project.id,method:\"delete\"}).done(function(e,i,n){t(\"#confirm-delete-modal\").modal(\"hide\"),sessionStorage.removeItem(\"project\"),toastr.success(\"The project has been deleted. You are being redirected back to the dashboard.\",\"Saved\"),window.location.href=\"/dashboard\"}).fail(function(e,t,i){stiHelper.parseAjaxError(e)}).always(function(e,i,o){n.html(' Delete Project').prop(\"disabled\",!1),t(\"#confirm-delete-modal .modal-close-btn\").prop(\"disabled\",!1)})}),t(\"#buildings-list\").on(\"click\",\".delete-item-btn\",function(){var e=parseInt(t(this).closest(\".list-group-button-item\").data(\"buildingId\"));t(\"#confirm-delete-modal .message\").html(\"

Are you sure you want to delete this building?

Deleting the building will delete all floors, items, images, inspections, and item documents for for this building.

\"),t(\"#confirm-delete-modal .title\").text(\"Confirm Building Deletion\"),t(\"#confirm-delete-modal .modal-title\").attr(\"title\",\"Confirm Building Deletion\"),t(\"#confirm-delete-btn\").html(' Delete Building'),t(\"#confirm-delete-modal\").data(\"deleteType\",\"building\").attr(\"data-delete-type\",\"building\"),t(\"#confirm-delete-modal\").modal(\"show\"),t(\"#confirm-delete-modal\").attr(\"data-building-id\",e).data(\"buildingId\",e)}),t(document).on(\"click\",'#confirm-delete-modal[data-delete-type=\"building\"] #confirm-delete-btn',function(e){e.stopPropagation(),e.preventDefault();var n=t(this),o=parseInt(t(\"#confirm-delete-modal\").data(\"buildingId\"));n.html(\"Deleting \"+stiGlobal.loadingIcon).prop(\"disabled\",!0),t(\"#confirm-delete-modal .modal-close-btn\").prop(\"disabled\",!0),t.ajax({url:stiApi+\"/fsl/buildings/\"+o,method:\"delete\"}).done(function(e,n,r){t(\"#confirm-delete-modal\").modal(\"hide\");for(var a=0;a Delete Building').prop(\"disabled\",!1),t(\"#confirm-delete-modal .modal-close-btn\").prop(\"disabled\",!1)})}),t(\"#documents-list\").on(\"click\",\".delete-item-btn\",function(){t(\"#confirm-delete-modal .message\").html(\"

Are you sure you want to delete this document?

\"),t(\"#confirm-delete-modal .title\").text(\"Confirm Document Deletion\"),t(\"#confirm-delete-modal .modal-title\").attr(\"title\",\"Confirm Document Deletion\"),t(\"#confirm-delete-btn\").html(' Delete Document'),t(\"#confirm-delete-modal\").data(\"deleteType\",\"document\").attr(\"data-delete-type\",\"document\"),t(\"#confirm-delete-modal\").modal(\"show\"),t(\"#confirm-delete-modal\").data(\"documentId\",t(this).closest(\".list-group-button-item\").data(\"documentId\")).attr(\"data-document-id\",t(this).closest(\".list-group-button-item\").data(\"documentId\")),t(\"#confirm-delete-modal\").modal(\"show\")}),t(document).on(\"click\",'#confirm-delete-modal[data-delete-type=\"document\"] #confirm-delete-btn',function(e){e.stopPropagation(),e.preventDefault();var n=t(this),o=t(\"#confirm-delete-modal\").data(\"documentId\");n.html(\"Deleting \"+stiGlobal.loadingIcon).prop(\"disabled\",!0),t(\"#confirm-delete-modal .modal-close-btn\").prop(\"disabled\",!0),t.ajax({url:stiApi+\"/fsl/documents/\"+o,method:\"delete\"}).done(function(e,n,r){t(\"#confirm-delete-modal\").modal(\"hide\");for(var a=0;a Delete Document').prop(\"disabled\",!1),t(\"#confirm-delete-modal .modal-close-btn\").prop(\"disabled\",!1)})}),t(\"#buildings-list\").on(\"click\",\".item-info-btn\",function(){var e=t(\"#info-modal\"),n=e.find(\".modal-body\"),o=parseInt(t(this).closest(\".list-group-button-item\").data(\"buildingId\")),r=i.project.buildings.find(function(e){return e.id===o});n.html(\"\"),e.find(\".title\").text(\"Building Info\");var a=t(\"#project-templates .info-field-section-template\").clone();a.find(\".field-icon\").addClass(\"fa-tag\"),a.find(\".field-text\").text(\"Name\"),a.find(\".value-text\").text(r.name),a.find(\".value .fa\").remove(),n.append(a.html()),(a=t(\"#project-templates .info-field-section-template\").clone()).find(\".field-icon\").addClass(\"fa-calendar-o\"),a.find(\".field-text\").text(\"Created On\"),a.find(\".value-text\").text(stiHelper.formatDate(r.created_at,!0)),a.find(\".value .fa\").remove(),n.append(a.html()),(a=t(\"#project-templates .info-field-section-template\").clone()).find(\".field-icon\").addClass(\"fa-user\"),a.find(\".field-text\").text(\"Created By\"),a.find(\".value-text\").text(r.created_by_user?r.created_by_user.first_name+\" \"+r.created_by_user.last_name:\"\"),a.find(\".value .fa\").remove(),n.append(a.html()),(a=t(\"#project-templates .info-field-section-template\").clone()).find(\".field-icon\").addClass(\"fa-calendar-o\"),a.find(\".field-text\").text(\"Last Updated On\"),a.find(\".value-text\").text(stiHelper.formatDate(r.updated_at,!0)),a.find(\".value .fa\").remove(),n.append(a.html()),(a=t(\"#project-templates .info-field-section-template\").clone()).find(\".field-icon\").addClass(\"fa-user\"),a.find(\".field-text\").text(\"Last Updated By\"),a.find(\".value-text\").text(r.updated_by_user?r.updated_by_user.first_name+\" \"+r.updated_by_user.last_name:\"\"),a.find(\".value .fa\").remove(),n.append(a.html()),e.modal(\"show\")}),t(\"#documents-list\").on(\"click\",\".item-info-btn\",function(){var e=t(\"#info-modal\"),n=e.find(\".modal-body\"),o=parseInt(t(this).closest(\".list-group-button-item\").data(\"documentId\")),r=i.project.documents.find(function(e){return e.id===o});n.html(\"\"),e.find(\".title\").text(\"Document Info\");var a=t(\"#project-templates .info-field-section-template\").clone();a.find(\".field-icon\").addClass(\"fa-tag\"),a.find(\".field-text\").text(\"Name\"),a.find(\".value-text\").text(r.filename_original+\".\"+r.extension),a.find(\".value .fa\").remove(),n.append(a.html()),(a=t(\"#project-templates .info-field-section-template\").clone()).find(\".field-icon\").addClass(\"fa-\"+stiGlobal.fileIcons[r.extension]),a.find(\".field-text\").text(\"Type\"),a.find(\".value-text\").text(r.extension.toUpperCase()),a.find(\".value .fa\").remove(),n.append(a.html()),(a=t(\"#project-templates .info-field-section-template\").clone()).find(\".field-icon\").addClass(\"fa-database\"),a.find(\".field-text\").text(\"Size\"),a.find(\".value-text\").text(r.filesize_readable),a.find(\".value .fa\").remove(),n.append(a.html()),r.item_id&&((a=t(\"#project-templates .info-field-section-template\").clone()).find(\".field-icon\").addClass(\"fa-circle-o\"),a.find(\".field-text\").text(\"Item\"),a.find(\".value-text\").text(\"Item \"+r.item_id),a.find(\".value .fa\").remove(),n.append(a.html())),(a=t(\"#project-templates .info-field-section-template\").clone()).find(\".field-icon\").addClass(\"fa-calendar-o\"),a.find(\".field-text\").text(\"Uploaded On\"),a.find(\".value-text\").text(stiHelper.formatDate(r.created_at,!0)),a.find(\".value .fa\").remove(),n.append(a.html()),(a=t(\"#project-templates .info-field-section-template\").clone()).find(\".field-icon\").addClass(\"fa-user\"),a.find(\".field-text\").text(\"Uploaded By\"),a.find(\".value-text\").text(r.uploaded_by_user.first_name+\" \"+r.uploaded_by_user.last_name),a.find(\".value .fa\").remove(),n.append(a.html()),(a=t(\"#project-templates .info-field-section-template\").clone()).find(\".field-icon\").addClass(\"fa-calendar-o\"),a.find(\".field-text\").text(\"Last Updated On\"),a.find(\".value-text\").text(stiHelper.formatDate(r.updated_at,!0)),a.find(\".value .fa\").remove(),n.append(a.html()),(a=t(\"#project-templates .info-field-section-template\").clone()).find(\".field-icon\").addClass(\"fa-user\"),a.find(\".field-text\").text(\"Last Updated By\"),a.find(\".value-text\").text(r.updated_by_user.first_name+\" \"+r.updated_by_user.last_name),a.find(\".value .fa\").remove(),n.append(a.html()),e.modal(\"show\")})}}).call(t,i(\"7t+N\"))},JJ2Q:function(e,t,i){var n,o,r;!function(a){\"use strict\";o=[i(\"7t+N\"),i(\"9V2q\"),i(\"3eNs\"),i(\"zkIY\"),i(\"Rl6D\"),i(\"UZ9c\"),i(\"z1kw\")],void 0===(r=\"function\"==typeof(n=a)?n.apply(t,o):n)||(e.exports=r)}(function(e){\"use strict\";return e.widget(\"ui.sortable\",e.ui.mouse,{version:\"1.13.2\",widgetEventPrefix:\"sort\",ready:!1,options:{appendTo:\"parent\",axis:!1,connectWith:!1,containment:!1,cursor:\"auto\",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:\"original\",items:\"> *\",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:\"default\",tolerance:\"intersect\",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(e,t,i){return e>=t&&e=0;e--)this.items[e].item.removeData(this.widgetName+\"-item\");return this},_mouseCapture:function(t,i){var n=null,o=!1,r=this;return!this.reverting&&(!this.options.disabled&&\"static\"!==this.options.type&&(this._refreshItems(t),e(t.target).parents().each(function(){if(e.data(this,r.widgetName+\"-item\")===r)return n=e(this),!1}),e.data(t.target,r.widgetName+\"-item\")===r&&(n=e(t.target)),!!n&&(!(this.options.handle&&!i&&(e(this.options.handle,n).find(\"*\").addBack().each(function(){this===t.target&&(o=!0)}),!o))&&(this.currentItem=n,this._removeCurrentsFromItems(),!0))))},_mouseStart:function(t,i,n){var o,r,a=this.options;if(this.currentContainer=this,this.refreshPositions(),this.appendTo=e(\"parent\"!==a.appendTo?a.appendTo:this.currentItem.parent()),this.helper=this._createHelper(t),this._cacheHelperProportions(),this._cacheMargins(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},e.extend(this.offset,{click:{left:t.pageX-this.offset.left,top:t.pageY-this.offset.top},relative:this._getRelativeOffset()}),this.helper.css(\"position\",\"absolute\"),this.cssPosition=this.helper.css(\"position\"),a.cursorAt&&this._adjustOffsetFromHelper(a.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),this.scrollParent=this.placeholder.scrollParent(),e.extend(this.offset,{parent:this._getParentOffset()}),a.containment&&this._setContainment(),a.cursor&&\"auto\"!==a.cursor&&(r=this.document.find(\"body\"),this.storedCursor=r.css(\"cursor\"),r.css(\"cursor\",a.cursor),this.storedStylesheet=e(\"\").appendTo(r)),a.zIndex&&(this.helper.css(\"zIndex\")&&(this._storedZIndex=this.helper.css(\"zIndex\")),this.helper.css(\"zIndex\",a.zIndex)),a.opacity&&(this.helper.css(\"opacity\")&&(this._storedOpacity=this.helper.css(\"opacity\")),this.helper.css(\"opacity\",a.opacity)),this.scrollParent[0]!==this.document[0]&&\"HTML\"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger(\"start\",t,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!n)for(o=this.containers.length-1;o>=0;o--)this.containers[o]._trigger(\"activate\",t,this._uiHash(this));return e.ui.ddmanager&&(e.ui.ddmanager.current=this),e.ui.ddmanager&&!a.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t),this.dragging=!0,this._addClass(this.helper,\"ui-sortable-helper\"),this.helper.parent().is(this.appendTo)||(this.helper.detach().appendTo(this.appendTo),this.offset.parent=this._getParentOffset()),this.position=this.originalPosition=this._generatePosition(t),this.originalPageX=t.pageX,this.originalPageY=t.pageY,this.lastPositionAbs=this.positionAbs=this._convertPositionTo(\"absolute\"),this._mouseDrag(t),!0},_scroll:function(e){var t=this.options,i=!1;return this.scrollParent[0]!==this.document[0]&&\"HTML\"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-e.pageY=0;i--)if(o=(n=this.items[i]).item[0],(r=this._intersectsWithPointer(n))&&n.instance===this.currentContainer&&!(o===this.currentItem[0]||this.placeholder[1===r?\"next\":\"prev\"]()[0]===o||e.contains(this.placeholder[0],o)||\"semi-dynamic\"===this.options.type&&e.contains(this.element[0],o))){if(this.direction=1===r?\"down\":\"up\",\"pointer\"!==this.options.tolerance&&!this._intersectsWithSides(n))break;this._rearrange(t,n),this._trigger(\"change\",t,this._uiHash());break}return this._contactContainers(t),e.ui.ddmanager&&e.ui.ddmanager.drag(this,t),this._trigger(\"sort\",t,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(t,i){if(t){if(e.ui.ddmanager&&!this.options.dropBehaviour&&e.ui.ddmanager.drop(this,t),this.options.revert){var n=this,o=this.placeholder.offset(),r=this.options.axis,a={};r&&\"x\"!==r||(a.left=o.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),r&&\"y\"!==r||(a.top=o.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,e(this.helper).animate(a,parseInt(this.options.revert,10)||500,function(){n._clear(t)})}else this._clear(t,i);return!1}},cancel:function(){if(this.dragging){this._mouseUp(new e.Event(\"mouseup\",{target:null})),\"original\"===this.options.helper?(this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,\"ui-sortable-helper\")):this.currentItem.show();for(var t=this.containers.length-1;t>=0;t--)this.containers[t]._trigger(\"deactivate\",null,this._uiHash(this)),this.containers[t].containerCache.over&&(this.containers[t]._trigger(\"out\",null,this._uiHash(this)),this.containers[t].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),\"original\"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),e.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?e(this.domPosition.prev).after(this.currentItem):e(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(t){var i=this._getItemsAsjQuery(t&&t.connected),n=[];return t=t||{},e(i).each(function(){var i=(e(t.item||this).attr(t.attribute||\"id\")||\"\").match(t.expression||/(.+)[\\-=_](.+)/);i&&n.push((t.key||i[1]+\"[]\")+\"=\"+(t.key&&t.expression?i[1]:i[2]))}),!n.length&&t.key&&n.push(t.key+\"=\"),n.join(\"&\")},toArray:function(t){var i=this._getItemsAsjQuery(t&&t.connected),n=[];return t=t||{},i.each(function(){n.push(e(t.item||this).attr(t.attribute||\"id\")||\"\")}),n},_intersectsWith:function(e){var t=this.positionAbs.left,i=t+this.helperProportions.width,n=this.positionAbs.top,o=n+this.helperProportions.height,r=e.left,a=r+e.width,s=e.top,l=s+e.height,d=this.offset.click.top,c=this.offset.click.left,f=\"x\"===this.options.axis||n+d>s&&n+dr&&t+ce[this.floating?\"width\":\"height\"]?p:r0?\"down\":\"up\")},_getDragHorizontalDirection:function(){var e=this.positionAbs.left-this.lastPositionAbs.left;return 0!==e&&(e>0?\"right\":\"left\")},refresh:function(e){return this._refreshItems(e),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var e=this.options;return e.connectWith.constructor===String?[e.connectWith]:e.connectWith},_getItemsAsjQuery:function(t){var i,n,o,r,a=[],s=[],l=this._connectWith();if(l&&t)for(i=l.length-1;i>=0;i--)for(n=(o=e(l[i],this.document[0])).length-1;n>=0;n--)(r=e.data(o[n],this.widgetFullName))&&r!==this&&!r.options.disabled&&s.push([\"function\"==typeof r.options.items?r.options.items.call(r.element):e(r.options.items,r.element).not(\".ui-sortable-helper\").not(\".ui-sortable-placeholder\"),r]);function d(){a.push(this)}for(s.push([\"function\"==typeof this.options.items?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):e(this.options.items,this.element).not(\".ui-sortable-helper\").not(\".ui-sortable-placeholder\"),this]),i=s.length-1;i>=0;i--)s[i][0].each(d);return e(a)},_removeCurrentsFromItems:function(){var t=this.currentItem.find(\":data(\"+this.widgetName+\"-item)\");this.items=e.grep(this.items,function(e){for(var i=0;i=0;i--)for(n=(o=e(u[i],this.document[0])).length-1;n>=0;n--)(r=e.data(o[n],this.widgetFullName))&&r!==this&&!r.options.disabled&&(f.push([\"function\"==typeof r.options.items?r.options.items.call(r.element[0],t,{item:this.currentItem}):e(r.options.items,r.element),r]),this.containers.push(r));for(i=f.length-1;i>=0;i--)for(a=f[i][1],n=0,d=(s=f[i][0]).length;n=0;i--)n=this.items[i],this.currentContainer&&n.instance!==this.currentContainer&&n.item[0]!==this.currentItem[0]||(o=this.options.toleranceElement?e(this.options.toleranceElement,n.item):n.item,t||(n.width=o.outerWidth(),n.height=o.outerHeight()),r=o.offset(),n.left=r.left,n.top=r.top)},refreshPositions:function(e){var t,i;if(this.floating=!!this.items.length&&(\"x\"===this.options.axis||this._isFloating(this.items[0].item)),this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset()),this._refreshItemPositions(e),this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(t=this.containers.length-1;t>=0;t--)i=this.containers[t].element.offset(),this.containers[t].containerCache.left=i.left,this.containers[t].containerCache.top=i.top,this.containers[t].containerCache.width=this.containers[t].element.outerWidth(),this.containers[t].containerCache.height=this.containers[t].element.outerHeight();return this},_createPlaceholder:function(t){var i,n,o=(t=t||this).options;o.placeholder&&o.placeholder.constructor!==String||(i=o.placeholder,n=t.currentItem[0].nodeName.toLowerCase(),o.placeholder={element:function(){var o=e(\"<\"+n+\">\",t.document[0]);return t._addClass(o,\"ui-sortable-placeholder\",i||t.currentItem[0].className)._removeClass(o,\"ui-sortable-helper\"),\"tbody\"===n?t._createTrPlaceholder(t.currentItem.find(\"tr\").eq(0),e(\"\",t.document[0]).appendTo(o)):\"tr\"===n?t._createTrPlaceholder(t.currentItem,o):\"img\"===n&&o.attr(\"src\",t.currentItem.attr(\"src\")),i||o.css(\"visibility\",\"hidden\"),o},update:function(e,r){i&&!o.forcePlaceholderSize||(r.height()&&(!o.forcePlaceholderSize||\"tbody\"!==n&&\"tr\"!==n)||r.height(t.currentItem.innerHeight()-parseInt(t.currentItem.css(\"paddingTop\")||0,10)-parseInt(t.currentItem.css(\"paddingBottom\")||0,10)),r.width()||r.width(t.currentItem.innerWidth()-parseInt(t.currentItem.css(\"paddingLeft\")||0,10)-parseInt(t.currentItem.css(\"paddingRight\")||0,10)))}}),t.placeholder=e(o.placeholder.element.call(t.element,t.currentItem)),t.currentItem.after(t.placeholder),o.placeholder.update(t,t.placeholder)},_createTrPlaceholder:function(t,i){var n=this;t.children().each(function(){e(\" \",n.document[0]).attr(\"colspan\",e(this).attr(\"colspan\")||1).appendTo(i)})},_contactContainers:function(t){var i,n,o,r,a,s,l,d,c,f,u=null,p=null;for(i=this.containers.length-1;i>=0;i--)if(!e.contains(this.currentItem[0],this.containers[i].element[0]))if(this._intersectsWith(this.containers[i].containerCache)){if(u&&e.contains(this.containers[i].element[0],u.element[0]))continue;u=this.containers[i],p=i}else this.containers[i].containerCache.over&&(this.containers[i]._trigger(\"out\",t,this._uiHash(this)),this.containers[i].containerCache.over=0);if(u)if(1===this.containers.length)this.containers[p].containerCache.over||(this.containers[p]._trigger(\"over\",t,this._uiHash(this)),this.containers[p].containerCache.over=1);else{for(o=1e4,r=null,a=(c=u.floating||this._isFloating(this.currentItem))?\"left\":\"top\",s=c?\"width\":\"height\",f=c?\"pageX\":\"pageY\",n=this.items.length-1;n>=0;n--)e.contains(this.containers[p].element[0],this.items[n].item[0])&&this.items[n].item[0]!==this.currentItem[0]&&(l=this.items[n].item.offset()[a],d=!1,t[f]-l>this.items[n][s]/2&&(d=!0),Math.abs(t[f]-l)this.containment[2]&&(r=this.containment[2]+this.offset.click.left),t.pageY-this.offset.click.top>this.containment[3]&&(a=this.containment[3]+this.offset.click.top)),o.grid&&(i=this.originalPageY+Math.round((a-this.originalPageY)/o.grid[1])*o.grid[1],a=this.containment?i-this.offset.click.top>=this.containment[1]&&i-this.offset.click.top<=this.containment[3]?i:i-this.offset.click.top>=this.containment[1]?i-o.grid[1]:i+o.grid[1]:i,n=this.originalPageX+Math.round((r-this.originalPageX)/o.grid[0])*o.grid[0],r=this.containment?n-this.offset.click.left>=this.containment[0]&&n-this.offset.click.left<=this.containment[2]?n:n-this.offset.click.left>=this.containment[0]?n-o.grid[0]:n+o.grid[0]:n)),{top:a-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(\"fixed\"===this.cssPosition?-this.scrollParent.scrollTop():l?0:s.scrollTop()),left:r-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(\"fixed\"===this.cssPosition?-this.scrollParent.scrollLeft():l?0:s.scrollLeft())}},_rearrange:function(e,t,i,n){i?i[0].appendChild(this.placeholder[0]):t.item[0].parentNode.insertBefore(this.placeholder[0],\"down\"===this.direction?t.item[0]:t.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var o=this.counter;this._delay(function(){o===this.counter&&this.refreshPositions(!n)})},_clear:function(e,t){this.reverting=!1;var i,n=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(i in this._storedCSS)\"auto\"!==this._storedCSS[i]&&\"static\"!==this._storedCSS[i]||(this._storedCSS[i]=\"\");this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,\"ui-sortable-helper\")}else this.currentItem.show();function o(e,t,i){return function(n){i._trigger(e,n,t._uiHash(t))}}for(this.fromOutside&&!t&&n.push(function(e){this._trigger(\"receive\",e,this._uiHash(this.fromOutside))}),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(\".ui-sortable-helper\")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||t||n.push(function(e){this._trigger(\"update\",e,this._uiHash())}),this!==this.currentContainer&&(t||(n.push(function(e){this._trigger(\"remove\",e,this._uiHash())}),n.push(function(e){return function(t){e._trigger(\"receive\",t,this._uiHash(this))}}.call(this,this.currentContainer)),n.push(function(e){return function(t){e._trigger(\"update\",t,this._uiHash(this))}}.call(this,this.currentContainer)))),i=this.containers.length-1;i>=0;i--)t||n.push(o(\"deactivate\",this,this.containers[i])),this.containers[i].containerCache.over&&(n.push(o(\"out\",this,this.containers[i])),this.containers[i].containerCache.over=0);if(this.storedCursor&&(this.document.find(\"body\").css(\"cursor\",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css(\"opacity\",this._storedOpacity),this._storedZIndex&&this.helper.css(\"zIndex\",\"auto\"===this._storedZIndex?\"\":this._storedZIndex),this.dragging=!1,t||this._trigger(\"beforeStop\",e,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!t){for(i=0;i=200&&e<300}};l.headers={common:{Accept:\"application/json, text/plain, */*\"}},n.forEach([\"delete\",\"get\",\"head\"],function(e){l.headers[e]={}}),n.forEach([\"post\",\"put\",\"patch\"],function(e){l.headers[e]=n.merge(r)}),e.exports=l}).call(t,i(\"W2nU\"))},KqWi:function(e,t){},M4fF:function(e,t,i){(function(e,n){var o;(function(){var r,a=200,s=\"Unsupported core-js use. Try https://npms.io/search?q=ponyfill.\",l=\"Expected a function\",d=\"Invalid `variable` option passed into `_.template`\",c=\"__lodash_hash_undefined__\",f=500,u=\"__lodash_placeholder__\",p=1,m=2,h=4,v=1,g=2,b=1,_=2,y=4,w=8,x=16,I=32,L=64,C=128,T=256,k=512,D=30,j=\"...\",S=800,F=16,P=1,A=2,E=1/0,H=9007199254740991,M=1.7976931348623157e308,O=NaN,U=4294967295,G=U-1,z=U>>>1,N=[[\"ary\",C],[\"bind\",b],[\"bindKey\",_],[\"curry\",w],[\"curryRight\",x],[\"flip\",k],[\"partial\",I],[\"partialRight\",L],[\"rearg\",T]],R=\"[object Arguments]\",B=\"[object Array]\",W=\"[object AsyncFunction]\",q=\"[object Boolean]\",$=\"[object Date]\",Y=\"[object DOMException]\",J=\"[object Error]\",Z=\"[object Function]\",K=\"[object GeneratorFunction]\",V=\"[object Map]\",X=\"[object Number]\",Q=\"[object Null]\",ee=\"[object Object]\",te=\"[object Proxy]\",ie=\"[object RegExp]\",ne=\"[object Set]\",oe=\"[object String]\",re=\"[object Symbol]\",ae=\"[object Undefined]\",se=\"[object WeakMap]\",le=\"[object WeakSet]\",de=\"[object ArrayBuffer]\",ce=\"[object DataView]\",fe=\"[object Float32Array]\",ue=\"[object Float64Array]\",pe=\"[object Int8Array]\",me=\"[object Int16Array]\",he=\"[object Int32Array]\",ve=\"[object Uint8Array]\",ge=\"[object Uint8ClampedArray]\",be=\"[object Uint16Array]\",_e=\"[object Uint32Array]\",ye=/\\b__p \\+= '';/g,we=/\\b(__p \\+=) '' \\+/g,xe=/(__e\\(.*?\\)|\\b__t\\)) \\+\\n'';/g,Ie=/&(?:amp|lt|gt|quot|#39);/g,Le=/[&<>\"']/g,Ce=RegExp(Ie.source),Te=RegExp(Le.source),ke=/<%-([\\s\\S]+?)%>/g,De=/<%([\\s\\S]+?)%>/g,je=/<%=([\\s\\S]+?)%>/g,Se=/\\.|\\[(?:[^[\\]]*|([\"'])(?:(?!\\1)[^\\\\]|\\\\.)*?\\1)\\]/,Fe=/^\\w*$/,Pe=/[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))/g,Ae=/[\\\\^$.*+?()[\\]{}|]/g,Ee=RegExp(Ae.source),He=/^\\s+/,Me=/\\s/,Oe=/\\{(?:\\n\\/\\* \\[wrapped with .+\\] \\*\\/)?\\n?/,Ue=/\\{\\n\\/\\* \\[wrapped with (.+)\\] \\*/,Ge=/,? & /,ze=/[^\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\x7f]+/g,Ne=/[()=,{}\\[\\]\\/\\s]/,Re=/\\\\(\\\\)?/g,Be=/\\$\\{([^\\\\}]*(?:\\\\.[^\\\\}]*)*)\\}/g,We=/\\w*$/,qe=/^[-+]0x[0-9a-f]+$/i,$e=/^0b[01]+$/i,Ye=/^\\[object .+?Constructor\\]$/,Je=/^0o[0-7]+$/i,Ze=/^(?:0|[1-9]\\d*)$/,Ke=/[\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\xff\\u0100-\\u017f]/g,Ve=/($^)/,Xe=/['\\n\\r\\u2028\\u2029\\\\]/g,Qe=\"\\\\u0300-\\\\u036f\\\\ufe20-\\\\ufe2f\\\\u20d0-\\\\u20ff\",et=\"\\\\xac\\\\xb1\\\\xd7\\\\xf7\\\\x00-\\\\x2f\\\\x3a-\\\\x40\\\\x5b-\\\\x60\\\\x7b-\\\\xbf\\\\u2000-\\\\u206f \\\\t\\\\x0b\\\\f\\\\xa0\\\\ufeff\\\\n\\\\r\\\\u2028\\\\u2029\\\\u1680\\\\u180e\\\\u2000\\\\u2001\\\\u2002\\\\u2003\\\\u2004\\\\u2005\\\\u2006\\\\u2007\\\\u2008\\\\u2009\\\\u200a\\\\u202f\\\\u205f\\\\u3000\",tt=\"[\\\\ud800-\\\\udfff]\",it=\"[\"+et+\"]\",nt=\"[\"+Qe+\"]\",ot=\"\\\\d+\",rt=\"[\\\\u2700-\\\\u27bf]\",at=\"[a-z\\\\xdf-\\\\xf6\\\\xf8-\\\\xff]\",st=\"[^\\\\ud800-\\\\udfff\"+et+ot+\"\\\\u2700-\\\\u27bfa-z\\\\xdf-\\\\xf6\\\\xf8-\\\\xffA-Z\\\\xc0-\\\\xd6\\\\xd8-\\\\xde]\",lt=\"\\\\ud83c[\\\\udffb-\\\\udfff]\",dt=\"[^\\\\ud800-\\\\udfff]\",ct=\"(?:\\\\ud83c[\\\\udde6-\\\\uddff]){2}\",ft=\"[\\\\ud800-\\\\udbff][\\\\udc00-\\\\udfff]\",ut=\"[A-Z\\\\xc0-\\\\xd6\\\\xd8-\\\\xde]\",pt=\"(?:\"+at+\"|\"+st+\")\",mt=\"(?:\"+ut+\"|\"+st+\")\",ht=\"(?:\"+nt+\"|\"+lt+\")\"+\"?\",vt=\"[\\\\ufe0e\\\\ufe0f]?\"+ht+(\"(?:\\\\u200d(?:\"+[dt,ct,ft].join(\"|\")+\")[\\\\ufe0e\\\\ufe0f]?\"+ht+\")*\"),gt=\"(?:\"+[rt,ct,ft].join(\"|\")+\")\"+vt,bt=\"(?:\"+[dt+nt+\"?\",nt,ct,ft,tt].join(\"|\")+\")\",_t=RegExp(\"['’]\",\"g\"),yt=RegExp(nt,\"g\"),wt=RegExp(lt+\"(?=\"+lt+\")|\"+bt+vt,\"g\"),xt=RegExp([ut+\"?\"+at+\"+(?:['’](?:d|ll|m|re|s|t|ve))?(?=\"+[it,ut,\"$\"].join(\"|\")+\")\",mt+\"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=\"+[it,ut+pt,\"$\"].join(\"|\")+\")\",ut+\"?\"+pt+\"+(?:['’](?:d|ll|m|re|s|t|ve))?\",ut+\"+(?:['’](?:D|LL|M|RE|S|T|VE))?\",\"\\\\d*(?:1ST|2ND|3RD|(?![123])\\\\dTH)(?=\\\\b|[a-z_])\",\"\\\\d*(?:1st|2nd|3rd|(?![123])\\\\dth)(?=\\\\b|[A-Z_])\",ot,gt].join(\"|\"),\"g\"),It=RegExp(\"[\\\\u200d\\\\ud800-\\\\udfff\"+Qe+\"\\\\ufe0e\\\\ufe0f]\"),Lt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ct=[\"Array\",\"Buffer\",\"DataView\",\"Date\",\"Error\",\"Float32Array\",\"Float64Array\",\"Function\",\"Int8Array\",\"Int16Array\",\"Int32Array\",\"Map\",\"Math\",\"Object\",\"Promise\",\"RegExp\",\"Set\",\"String\",\"Symbol\",\"TypeError\",\"Uint8Array\",\"Uint8ClampedArray\",\"Uint16Array\",\"Uint32Array\",\"WeakMap\",\"_\",\"clearTimeout\",\"isFinite\",\"parseInt\",\"setTimeout\"],Tt=-1,kt={};kt[fe]=kt[ue]=kt[pe]=kt[me]=kt[he]=kt[ve]=kt[ge]=kt[be]=kt[_e]=!0,kt[R]=kt[B]=kt[de]=kt[q]=kt[ce]=kt[$]=kt[J]=kt[Z]=kt[V]=kt[X]=kt[ee]=kt[ie]=kt[ne]=kt[oe]=kt[se]=!1;var Dt={};Dt[R]=Dt[B]=Dt[de]=Dt[ce]=Dt[q]=Dt[$]=Dt[fe]=Dt[ue]=Dt[pe]=Dt[me]=Dt[he]=Dt[V]=Dt[X]=Dt[ee]=Dt[ie]=Dt[ne]=Dt[oe]=Dt[re]=Dt[ve]=Dt[ge]=Dt[be]=Dt[_e]=!0,Dt[J]=Dt[Z]=Dt[se]=!1;var jt={\"\\\\\":\"\\\\\",\"'\":\"'\",\"\\n\":\"n\",\"\\r\":\"r\",\"\\u2028\":\"u2028\",\"\\u2029\":\"u2029\"},St=parseFloat,Ft=parseInt,Pt=\"object\"==typeof e&&e&&e.Object===Object&&e,At=\"object\"==typeof self&&self&&self.Object===Object&&self,Et=Pt||At||Function(\"return this\")(),Ht=\"object\"==typeof t&&t&&!t.nodeType&&t,Mt=Ht&&\"object\"==typeof n&&n&&!n.nodeType&&n,Ot=Mt&&Mt.exports===Ht,Ut=Ot&&Pt.process,Gt=function(){try{var e=Mt&&Mt.require&&Mt.require(\"util\").types;return e||Ut&&Ut.binding&&Ut.binding(\"util\")}catch(e){}}(),zt=Gt&&Gt.isArrayBuffer,Nt=Gt&&Gt.isDate,Rt=Gt&&Gt.isMap,Bt=Gt&&Gt.isRegExp,Wt=Gt&&Gt.isSet,qt=Gt&&Gt.isTypedArray;function $t(e,t,i){switch(i.length){case 0:return e.call(t);case 1:return e.call(t,i[0]);case 2:return e.call(t,i[0],i[1]);case 3:return e.call(t,i[0],i[1],i[2])}return e.apply(t,i)}function Yt(e,t,i,n){for(var o=-1,r=null==e?0:e.length;++o-1}function Qt(e,t,i){for(var n=-1,o=null==e?0:e.length;++n-1;);return i}function xi(e,t){for(var i=e.length;i--&&li(t,e[i],0)>-1;);return i}var Ii=pi({\"À\":\"A\",\"Á\":\"A\",\"Â\":\"A\",\"Ã\":\"A\",\"Ä\":\"A\",\"Å\":\"A\",\"à\":\"a\",\"á\":\"a\",\"â\":\"a\",\"ã\":\"a\",\"ä\":\"a\",\"å\":\"a\",\"Ç\":\"C\",\"ç\":\"c\",\"Ð\":\"D\",\"ð\":\"d\",\"È\":\"E\",\"É\":\"E\",\"Ê\":\"E\",\"Ë\":\"E\",\"è\":\"e\",\"é\":\"e\",\"ê\":\"e\",\"ë\":\"e\",\"Ì\":\"I\",\"Í\":\"I\",\"Î\":\"I\",\"Ï\":\"I\",\"ì\":\"i\",\"í\":\"i\",\"î\":\"i\",\"ï\":\"i\",\"Ñ\":\"N\",\"ñ\":\"n\",\"Ò\":\"O\",\"Ó\":\"O\",\"Ô\":\"O\",\"Õ\":\"O\",\"Ö\":\"O\",\"Ø\":\"O\",\"ò\":\"o\",\"ó\":\"o\",\"ô\":\"o\",\"õ\":\"o\",\"ö\":\"o\",\"ø\":\"o\",\"Ù\":\"U\",\"Ú\":\"U\",\"Û\":\"U\",\"Ü\":\"U\",\"ù\":\"u\",\"ú\":\"u\",\"û\":\"u\",\"ü\":\"u\",\"Ý\":\"Y\",\"ý\":\"y\",\"ÿ\":\"y\",\"Æ\":\"Ae\",\"æ\":\"ae\",\"Þ\":\"Th\",\"þ\":\"th\",\"ß\":\"ss\",\"Ā\":\"A\",\"Ă\":\"A\",\"Ą\":\"A\",\"ā\":\"a\",\"ă\":\"a\",\"ą\":\"a\",\"Ć\":\"C\",\"Ĉ\":\"C\",\"Ċ\":\"C\",\"Č\":\"C\",\"ć\":\"c\",\"ĉ\":\"c\",\"ċ\":\"c\",\"č\":\"c\",\"Ď\":\"D\",\"Đ\":\"D\",\"ď\":\"d\",\"đ\":\"d\",\"Ē\":\"E\",\"Ĕ\":\"E\",\"Ė\":\"E\",\"Ę\":\"E\",\"Ě\":\"E\",\"ē\":\"e\",\"ĕ\":\"e\",\"ė\":\"e\",\"ę\":\"e\",\"ě\":\"e\",\"Ĝ\":\"G\",\"Ğ\":\"G\",\"Ġ\":\"G\",\"Ģ\":\"G\",\"ĝ\":\"g\",\"ğ\":\"g\",\"ġ\":\"g\",\"ģ\":\"g\",\"Ĥ\":\"H\",\"Ħ\":\"H\",\"ĥ\":\"h\",\"ħ\":\"h\",\"Ĩ\":\"I\",\"Ī\":\"I\",\"Ĭ\":\"I\",\"Į\":\"I\",\"İ\":\"I\",\"ĩ\":\"i\",\"ī\":\"i\",\"ĭ\":\"i\",\"į\":\"i\",\"ı\":\"i\",\"Ĵ\":\"J\",\"ĵ\":\"j\",\"Ķ\":\"K\",\"ķ\":\"k\",\"ĸ\":\"k\",\"Ĺ\":\"L\",\"Ļ\":\"L\",\"Ľ\":\"L\",\"Ŀ\":\"L\",\"Ł\":\"L\",\"ĺ\":\"l\",\"ļ\":\"l\",\"ľ\":\"l\",\"ŀ\":\"l\",\"ł\":\"l\",\"Ń\":\"N\",\"Ņ\":\"N\",\"Ň\":\"N\",\"Ŋ\":\"N\",\"ń\":\"n\",\"ņ\":\"n\",\"ň\":\"n\",\"ŋ\":\"n\",\"Ō\":\"O\",\"Ŏ\":\"O\",\"Ő\":\"O\",\"ō\":\"o\",\"ŏ\":\"o\",\"ő\":\"o\",\"Ŕ\":\"R\",\"Ŗ\":\"R\",\"Ř\":\"R\",\"ŕ\":\"r\",\"ŗ\":\"r\",\"ř\":\"r\",\"Ś\":\"S\",\"Ŝ\":\"S\",\"Ş\":\"S\",\"Š\":\"S\",\"ś\":\"s\",\"ŝ\":\"s\",\"ş\":\"s\",\"š\":\"s\",\"Ţ\":\"T\",\"Ť\":\"T\",\"Ŧ\":\"T\",\"ţ\":\"t\",\"ť\":\"t\",\"ŧ\":\"t\",\"Ũ\":\"U\",\"Ū\":\"U\",\"Ŭ\":\"U\",\"Ů\":\"U\",\"Ű\":\"U\",\"Ų\":\"U\",\"ũ\":\"u\",\"ū\":\"u\",\"ŭ\":\"u\",\"ů\":\"u\",\"ű\":\"u\",\"ų\":\"u\",\"Ŵ\":\"W\",\"ŵ\":\"w\",\"Ŷ\":\"Y\",\"ŷ\":\"y\",\"Ÿ\":\"Y\",\"Ź\":\"Z\",\"Ż\":\"Z\",\"Ž\":\"Z\",\"ź\":\"z\",\"ż\":\"z\",\"ž\":\"z\",\"IJ\":\"IJ\",\"ij\":\"ij\",\"Œ\":\"Oe\",\"œ\":\"oe\",\"ʼn\":\"'n\",\"ſ\":\"s\"}),Li=pi({\"&\":\"&\",\"<\":\"<\",\">\":\">\",'\"':\""\",\"'\":\"'\"});function Ci(e){return\"\\\\\"+jt[e]}function Ti(e){return It.test(e)}function ki(e){var t=-1,i=Array(e.size);return e.forEach(function(e,n){i[++t]=[n,e]}),i}function Di(e,t){return function(i){return e(t(i))}}function ji(e,t){for(var i=-1,n=e.length,o=0,r=[];++i\",\""\":'\"',\"'\":\"'\"});var Mi=function e(t){var i,n=(t=null==t?Et:Mi.defaults(Et.Object(),t,Mi.pick(Et,Ct))).Array,o=t.Date,Me=t.Error,Qe=t.Function,et=t.Math,tt=t.Object,it=t.RegExp,nt=t.String,ot=t.TypeError,rt=n.prototype,at=Qe.prototype,st=tt.prototype,lt=t[\"__core-js_shared__\"],dt=at.toString,ct=st.hasOwnProperty,ft=0,ut=(i=/[^.]+$/.exec(lt&<.keys&<.keys.IE_PROTO||\"\"))?\"Symbol(src)_1.\"+i:\"\",pt=st.toString,mt=dt.call(tt),ht=Et._,vt=it(\"^\"+dt.call(ct).replace(Ae,\"\\\\$&\").replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g,\"$1.*?\")+\"$\"),gt=Ot?t.Buffer:r,bt=t.Symbol,wt=t.Uint8Array,It=gt?gt.allocUnsafe:r,jt=Di(tt.getPrototypeOf,tt),Pt=tt.create,At=st.propertyIsEnumerable,Ht=rt.splice,Mt=bt?bt.isConcatSpreadable:r,Ut=bt?bt.iterator:r,Gt=bt?bt.toStringTag:r,ri=function(){try{var e=Nr(tt,\"defineProperty\");return e({},\"\",{}),e}catch(e){}}(),pi=t.clearTimeout!==Et.clearTimeout&&t.clearTimeout,Oi=o&&o.now!==Et.Date.now&&o.now,Ui=t.setTimeout!==Et.setTimeout&&t.setTimeout,Gi=et.ceil,zi=et.floor,Ni=tt.getOwnPropertySymbols,Ri=gt?gt.isBuffer:r,Bi=t.isFinite,Wi=rt.join,qi=Di(tt.keys,tt),$i=et.max,Yi=et.min,Ji=o.now,Zi=t.parseInt,Ki=et.random,Vi=rt.reverse,Xi=Nr(t,\"DataView\"),Qi=Nr(t,\"Map\"),en=Nr(t,\"Promise\"),tn=Nr(t,\"Set\"),nn=Nr(t,\"WeakMap\"),on=Nr(tt,\"create\"),rn=nn&&new nn,an={},sn=pa(Xi),ln=pa(Qi),dn=pa(en),cn=pa(tn),fn=pa(nn),un=bt?bt.prototype:r,pn=un?un.valueOf:r,mn=un?un.toString:r;function hn(e){if(Ss(e)&&!_s(e)&&!(e instanceof _n)){if(e instanceof bn)return e;if(ct.call(e,\"__wrapped__\"))return ma(e)}return new bn(e)}var vn=function(){function e(){}return function(t){if(!js(t))return{};if(Pt)return Pt(t);e.prototype=t;var i=new e;return e.prototype=r,i}}();function gn(){}function bn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=r}function _n(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=U,this.__views__=[]}function yn(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function On(e,t,i,n,o,a){var s,l=t&p,d=t&m,c=t&h;if(i&&(s=o?i(e,n,o,a):i(e)),s!==r)return s;if(!js(e))return e;var f=_s(e);if(f){if(s=function(e){var t=e.length,i=new e.constructor(t);return t&&\"string\"==typeof e[0]&&ct.call(e,\"index\")&&(i.index=e.index,i.input=e.input),i}(e),!l)return rr(e,s)}else{var u=Wr(e),v=u==Z||u==K;if(Is(e))return Qo(e,l);if(u==ee||u==R||v&&!o){if(s=d||v?{}:$r(e),!l)return d?function(e,t){return ar(e,Br(e),t)}(e,function(e,t){return e&&ar(t,sl(t),e)}(s,e)):function(e,t){return ar(e,Rr(e),t)}(e,An(s,e))}else{if(!Dt[u])return o?e:{};s=function(e,t,i){var n,o,r,a=e.constructor;switch(t){case de:return er(e);case q:case $:return new a(+e);case ce:return function(e,t){var i=t?er(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.byteLength)}(e,i);case fe:case ue:case pe:case me:case he:case ve:case ge:case be:case _e:return tr(e,i);case V:return new a;case X:case oe:return new a(e);case ie:return(r=new(o=e).constructor(o.source,We.exec(o))).lastIndex=o.lastIndex,r;case ne:return new a;case re:return n=e,pn?tt(pn.call(n)):{}}}(e,u,l)}}a||(a=new Ln);var g=a.get(e);if(g)return g;a.set(e,s),Hs(e)?e.forEach(function(n){s.add(On(n,t,i,n,e,a))}):Fs(e)&&e.forEach(function(n,o){s.set(o,On(n,t,i,o,e,a))});var b=f?r:(c?d?Er:Ar:d?sl:al)(e);return Jt(b||e,function(n,o){b&&(n=e[o=n]),Sn(s,o,On(n,t,i,o,e,a))}),s}function Un(e,t,i){var n=i.length;if(null==e)return!n;for(e=tt(e);n--;){var o=i[n],a=t[o],s=e[o];if(s===r&&!(o in e)||!a(s))return!1}return!0}function Gn(e,t,i){if(\"function\"!=typeof e)throw new ot(l);return aa(function(){e.apply(r,i)},t)}function zn(e,t,i,n){var o=-1,r=Xt,s=!0,l=e.length,d=[],c=t.length;if(!l)return d;i&&(t=ei(t,bi(i))),n?(r=Qt,s=!1):t.length>=a&&(r=yi,s=!1,t=new In(t));e:for(;++o-1},wn.prototype.set=function(e,t){var i=this.__data__,n=Fn(i,e);return n<0?(++this.size,i.push([e,t])):i[n][1]=t,this},xn.prototype.clear=function(){this.size=0,this.__data__={hash:new yn,map:new(Qi||wn),string:new yn}},xn.prototype.delete=function(e){var t=Gr(this,e).delete(e);return this.size-=t?1:0,t},xn.prototype.get=function(e){return Gr(this,e).get(e)},xn.prototype.has=function(e){return Gr(this,e).has(e)},xn.prototype.set=function(e,t){var i=Gr(this,e),n=i.size;return i.set(e,t),this.size+=i.size==n?0:1,this},In.prototype.add=In.prototype.push=function(e){return this.__data__.set(e,c),this},In.prototype.has=function(e){return this.__data__.has(e)},Ln.prototype.clear=function(){this.__data__=new wn,this.size=0},Ln.prototype.delete=function(e){var t=this.__data__,i=t.delete(e);return this.size=t.size,i},Ln.prototype.get=function(e){return this.__data__.get(e)},Ln.prototype.has=function(e){return this.__data__.has(e)},Ln.prototype.set=function(e,t){var i=this.__data__;if(i instanceof wn){var n=i.__data__;if(!Qi||n.length0&&i(s)?t>1?$n(s,t-1,i,n,o):ti(o,s):n||(o[o.length]=s)}return o}var Yn=cr(),Jn=cr(!0);function Zn(e,t){return e&&Yn(e,t,al)}function Kn(e,t){return e&&Jn(e,t,al)}function Vn(e,t){return Vt(t,function(t){return Ts(e[t])})}function Xn(e,t){for(var i=0,n=(t=Zo(t,e)).length;null!=e&&it}function io(e,t){return null!=e&&ct.call(e,t)}function no(e,t){return null!=e&&t in tt(e)}function oo(e,t,i){for(var o=i?Qt:Xt,a=e[0].length,s=e.length,l=s,d=n(s),c=1/0,f=[];l--;){var u=e[l];l&&t&&(u=ei(u,bi(t))),c=Yi(u.length,c),d[l]=!i&&(t||a>=120&&u.length>=120)?new In(l&&u):r}u=e[0];var p=-1,m=d[0];e:for(;++p=s)return l;var d=i[n];return l*(\"desc\"==d?-1:1)}}return e.index-t.index}(e,t,i)})}function wo(e,t,i){for(var n=-1,o=t.length,r={};++n-1;)s!==e&&Ht.call(s,l,1),Ht.call(e,l,1);return e}function Io(e,t){for(var i=e?t.length:0,n=i-1;i--;){var o=t[i];if(i==n||o!==r){var r=o;Jr(o)?Ht.call(e,o,1):No(e,o)}}return e}function Lo(e,t){return e+zi(Ki()*(t-e+1))}function Co(e,t){var i=\"\";if(!e||t<1||t>H)return i;do{t%2&&(i+=e),(t=zi(t/2))&&(e+=e)}while(t);return i}function To(e,t){return sa(ia(e,t,Pl),e+\"\")}function ko(e){return Tn(hl(e))}function Do(e,t){var i=hl(e);return ca(i,Mn(t,0,i.length))}function jo(e,t,i,n){if(!js(e))return e;for(var o=-1,a=(t=Zo(t,e)).length,s=a-1,l=e;null!=l&&++or?0:r+t),(i=i>r?r:i)<0&&(i+=r),r=t>i?0:i-t>>>0,t>>>=0;for(var a=n(r);++o>>1,a=e[r];null!==a&&!Os(a)&&(i?a<=t:a=a){var c=t?null:Cr(e);if(c)return Si(c);s=!1,o=yi,d=new In}else d=t?[]:l;e:for(;++n=n?e:Ao(e,t,i)}var Xo=pi||function(e){return Et.clearTimeout(e)};function Qo(e,t){if(t)return e.slice();var i=e.length,n=It?It(i):new e.constructor(i);return e.copy(n),n}function er(e){var t=new e.constructor(e.byteLength);return new wt(t).set(new wt(e)),t}function tr(e,t){var i=t?er(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.length)}function ir(e,t){if(e!==t){var i=e!==r,n=null===e,o=e==e,a=Os(e),s=t!==r,l=null===t,d=t==t,c=Os(t);if(!l&&!c&&!a&&e>t||a&&s&&d&&!l&&!c||n&&s&&d||!i&&d||!o)return 1;if(!n&&!a&&!c&&e1?i[o-1]:r,s=o>2?i[2]:r;for(a=e.length>3&&\"function\"==typeof a?(o--,a):r,s&&Zr(i[0],i[1],s)&&(a=o<3?r:a,o=1),t=tt(t);++n-1?o[a?t[s]:s]:r}}function hr(e){return Pr(function(t){var i=t.length,n=i,o=bn.prototype.thru;for(e&&t.reverse();n--;){var a=t[n];if(\"function\"!=typeof a)throw new ot(l);if(o&&!s&&\"wrapper\"==Mr(a))var s=new bn([],!0)}for(n=s?n:i;++n1&&y.reverse(),u&&c<_&&(y.length=c),this&&this!==Et&&this instanceof b&&(T=g||pr(T)),T.apply(C,y)}}function gr(e,t){return function(i,n){return function(e,t,i,n){return Zn(e,function(e,o,r){t(n,i(e),o,r)}),n}(i,e,t(n),{})}}function br(e,t){return function(i,n){var o;if(i===r&&n===r)return t;if(i!==r&&(o=i),n!==r){if(o===r)return n;\"string\"==typeof i||\"string\"==typeof n?(i=Go(i),n=Go(n)):(i=Uo(i),n=Uo(n)),o=e(i,n)}return o}}function _r(e){return Pr(function(t){return t=ei(t,bi(Ur())),To(function(i){var n=this;return e(t,function(e){return $t(e,n,i)})})})}function yr(e,t){var i=(t=t===r?\" \":Go(t)).length;if(i<2)return i?Co(t,e):t;var n=Co(t,Gi(e/Pi(t)));return Ti(t)?Vo(Ai(n),0,e).join(\"\"):n.slice(0,e)}function wr(e){return function(t,i,o){return o&&\"number\"!=typeof o&&Zr(t,i,o)&&(i=o=r),t=Rs(t),i===r?(i=t,t=0):i=Rs(i),function(e,t,i,o){for(var r=-1,a=$i(Gi((t-e)/(i||1)),0),s=n(a);a--;)s[o?a:++r]=e,e+=i;return s}(t,i,o=o===r?tl))return!1;var c=a.get(e),f=a.get(t);if(c&&f)return c==t&&f==e;var u=-1,p=!0,m=i&g?new In:r;for(a.set(e,t),a.set(t,e);++u-1&&e%1==0&&e1?\"& \":\"\")+t[n],t=t.join(i>2?\", \":\" \"),e.replace(Oe,\"{\\n/* [wrapped with \"+t+\"] */\\n\")}(n,function(e,t){return Jt(N,function(i){var n=\"_.\"+i[0];t&i[1]&&!Xt(e,n)&&e.push(n)}),e.sort()}(function(e){var t=e.match(Ue);return t?t[1].split(Ge):[]}(n),i)))}function da(e){var t=0,i=0;return function(){var n=Ji(),o=F-(n-i);if(i=n,o>0){if(++t>=S)return arguments[0]}else t=0;return e.apply(r,arguments)}}function ca(e,t){var i=-1,n=e.length,o=n-1;for(t=t===r?n:t;++i1?e[t-1]:r;return Ea(e,i=\"function\"==typeof i?(e.pop(),i):r)});function Na(e){var t=hn(e);return t.__chain__=!0,t}function Ra(e,t){return t(e)}var Ba=Pr(function(e){var t=e.length,i=t?e[0]:0,n=this.__wrapped__,o=function(t){return Hn(t,e)};return!(t>1||this.__actions__.length)&&n instanceof _n&&Jr(i)?((n=n.slice(i,+i+(t?1:0))).__actions__.push({func:Ra,args:[o],thisArg:r}),new bn(n,this.__chain__).thru(function(e){return t&&!e.length&&e.push(r),e})):this.thru(o)});var Wa=sr(function(e,t,i){ct.call(e,i)?++e[i]:En(e,i,1)});var qa=mr(ba),$a=mr(_a);function Ya(e,t){return(_s(e)?Jt:Nn)(e,Ur(t,3))}function Ja(e,t){return(_s(e)?Zt:Rn)(e,Ur(t,3))}var Za=sr(function(e,t,i){ct.call(e,i)?e[i].push(t):En(e,i,[t])});var Ka=To(function(e,t,i){var o=-1,r=\"function\"==typeof t,a=ws(e)?n(e.length):[];return Nn(e,function(e){a[++o]=r?$t(t,e,i):ro(e,t,i)}),a}),Va=sr(function(e,t,i){En(e,i,t)});function Xa(e,t){return(_s(e)?ei:ho)(e,Ur(t,3))}var Qa=sr(function(e,t,i){e[i?0:1].push(t)},function(){return[[],[]]});var es=To(function(e,t){if(null==e)return[];var i=t.length;return i>1&&Zr(e,t[0],t[1])?t=[]:i>2&&Zr(t[0],t[1],t[2])&&(t=[t[0]]),yo(e,$n(t,1),[])}),ts=Oi||function(){return Et.Date.now()};function is(e,t,i){return t=i?r:t,t=e&&null==t?e.length:t,kr(e,C,r,r,r,r,t)}function ns(e,t){var i;if(\"function\"!=typeof t)throw new ot(l);return e=Bs(e),function(){return--e>0&&(i=t.apply(this,arguments)),e<=1&&(t=r),i}}var os=To(function(e,t,i){var n=b;if(i.length){var o=ji(i,Or(os));n|=I}return kr(e,n,t,i,o)}),rs=To(function(e,t,i){var n=b|_;if(i.length){var o=ji(i,Or(rs));n|=I}return kr(t,n,e,i,o)});function as(e,t,i){var n,o,a,s,d,c,f=0,u=!1,p=!1,m=!0;if(\"function\"!=typeof e)throw new ot(l);function h(t){var i=n,a=o;return n=o=r,f=t,s=e.apply(a,i)}function v(e){var i=e-c;return c===r||i>=t||i<0||p&&e-f>=a}function g(){var e=ts();if(v(e))return b(e);d=aa(g,function(e){var i=t-(e-c);return p?Yi(i,a-(e-f)):i}(e))}function b(e){return d=r,m&&n?h(e):(n=o=r,s)}function _(){var e=ts(),i=v(e);if(n=arguments,o=this,c=e,i){if(d===r)return function(e){return f=e,d=aa(g,t),u?h(e):s}(c);if(p)return Xo(d),d=aa(g,t),h(c)}return d===r&&(d=aa(g,t)),s}return t=qs(t)||0,js(i)&&(u=!!i.leading,a=(p=\"maxWait\"in i)?$i(qs(i.maxWait)||0,t):a,m=\"trailing\"in i?!!i.trailing:m),_.cancel=function(){d!==r&&Xo(d),f=0,n=c=o=d=r},_.flush=function(){return d===r?s:b(ts())},_}var ss=To(function(e,t){return Gn(e,1,t)}),ls=To(function(e,t,i){return Gn(e,qs(t)||0,i)});function ds(e,t){if(\"function\"!=typeof e||null!=t&&\"function\"!=typeof t)throw new ot(l);var i=function(){var n=arguments,o=t?t.apply(this,n):n[0],r=i.cache;if(r.has(o))return r.get(o);var a=e.apply(this,n);return i.cache=r.set(o,a)||r,a};return i.cache=new(ds.Cache||xn),i}function cs(e){if(\"function\"!=typeof e)throw new ot(l);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}ds.Cache=xn;var fs=Ko(function(e,t){var i=(t=1==t.length&&_s(t[0])?ei(t[0],bi(Ur())):ei($n(t,1),bi(Ur()))).length;return To(function(n){for(var o=-1,r=Yi(n.length,i);++o=t}),bs=ao(function(){return arguments}())?ao:function(e){return Ss(e)&&ct.call(e,\"callee\")&&!At.call(e,\"callee\")},_s=n.isArray,ys=zt?bi(zt):function(e){return Ss(e)&&eo(e)==de};function ws(e){return null!=e&&Ds(e.length)&&!Ts(e)}function xs(e){return Ss(e)&&ws(e)}var Is=Ri||ql,Ls=Nt?bi(Nt):function(e){return Ss(e)&&eo(e)==$};function Cs(e){if(!Ss(e))return!1;var t=eo(e);return t==J||t==Y||\"string\"==typeof e.message&&\"string\"==typeof e.name&&!As(e)}function Ts(e){if(!js(e))return!1;var t=eo(e);return t==Z||t==K||t==W||t==te}function ks(e){return\"number\"==typeof e&&e==Bs(e)}function Ds(e){return\"number\"==typeof e&&e>-1&&e%1==0&&e<=H}function js(e){var t=typeof e;return null!=e&&(\"object\"==t||\"function\"==t)}function Ss(e){return null!=e&&\"object\"==typeof e}var Fs=Rt?bi(Rt):function(e){return Ss(e)&&Wr(e)==V};function Ps(e){return\"number\"==typeof e||Ss(e)&&eo(e)==X}function As(e){if(!Ss(e)||eo(e)!=ee)return!1;var t=jt(e);if(null===t)return!0;var i=ct.call(t,\"constructor\")&&t.constructor;return\"function\"==typeof i&&i instanceof i&&dt.call(i)==mt}var Es=Bt?bi(Bt):function(e){return Ss(e)&&eo(e)==ie};var Hs=Wt?bi(Wt):function(e){return Ss(e)&&Wr(e)==ne};function Ms(e){return\"string\"==typeof e||!_s(e)&&Ss(e)&&eo(e)==oe}function Os(e){return\"symbol\"==typeof e||Ss(e)&&eo(e)==re}var Us=qt?bi(qt):function(e){return Ss(e)&&Ds(e.length)&&!!kt[eo(e)]};var Gs=xr(mo),zs=xr(function(e,t){return e<=t});function Ns(e){if(!e)return[];if(ws(e))return Ms(e)?Ai(e):rr(e);if(Ut&&e[Ut])return function(e){for(var t,i=[];!(t=e.next()).done;)i.push(t.value);return i}(e[Ut]());var t=Wr(e);return(t==V?ki:t==ne?Si:hl)(e)}function Rs(e){return e?(e=qs(e))===E||e===-E?(e<0?-1:1)*M:e==e?e:0:0===e?e:0}function Bs(e){var t=Rs(e),i=t%1;return t==t?i?t-i:t:0}function Ws(e){return e?Mn(Bs(e),0,U):0}function qs(e){if(\"number\"==typeof e)return e;if(Os(e))return O;if(js(e)){var t=\"function\"==typeof e.valueOf?e.valueOf():e;e=js(t)?t+\"\":t}if(\"string\"!=typeof e)return 0===e?e:+e;e=gi(e);var i=$e.test(e);return i||Je.test(e)?Ft(e.slice(2),i?2:8):qe.test(e)?O:+e}function $s(e){return ar(e,sl(e))}function Ys(e){return null==e?\"\":Go(e)}var Js=lr(function(e,t){if(Qr(t)||ws(t))ar(t,al(t),e);else for(var i in t)ct.call(t,i)&&Sn(e,i,t[i])}),Zs=lr(function(e,t){ar(t,sl(t),e)}),Ks=lr(function(e,t,i,n){ar(t,sl(t),e,n)}),Vs=lr(function(e,t,i,n){ar(t,al(t),e,n)}),Xs=Pr(Hn);var Qs=To(function(e,t){e=tt(e);var i=-1,n=t.length,o=n>2?t[2]:r;for(o&&Zr(t[0],t[1],o)&&(n=1);++i1),t}),ar(e,Er(e),i),n&&(i=On(i,p|m|h,Sr));for(var o=t.length;o--;)No(i,t[o]);return i});var fl=Pr(function(e,t){return null==e?{}:function(e,t){return wo(e,t,function(t,i){return il(e,i)})}(e,t)});function ul(e,t){if(null==e)return{};var i=ei(Er(e),function(e){return[e]});return t=Ur(t),wo(e,i,function(e,i){return t(e,i[0])})}var pl=Tr(al),ml=Tr(sl);function hl(e){return null==e?[]:_i(e,al(e))}var vl=ur(function(e,t,i){return t=t.toLowerCase(),e+(i?gl(t):t)});function gl(e){return Cl(Ys(e).toLowerCase())}function bl(e){return(e=Ys(e))&&e.replace(Ke,Ii).replace(yt,\"\")}var _l=ur(function(e,t,i){return e+(i?\"-\":\"\")+t.toLowerCase()}),yl=ur(function(e,t,i){return e+(i?\" \":\"\")+t.toLowerCase()}),wl=fr(\"toLowerCase\");var xl=ur(function(e,t,i){return e+(i?\"_\":\"\")+t.toLowerCase()});var Il=ur(function(e,t,i){return e+(i?\" \":\"\")+Cl(t)});var Ll=ur(function(e,t,i){return e+(i?\" \":\"\")+t.toUpperCase()}),Cl=fr(\"toUpperCase\");function Tl(e,t,i){return e=Ys(e),(t=i?r:t)===r?function(e){return Lt.test(e)}(e)?function(e){return e.match(xt)||[]}(e):function(e){return e.match(ze)||[]}(e):e.match(t)||[]}var kl=To(function(e,t){try{return $t(e,r,t)}catch(e){return Cs(e)?e:new Me(e)}}),Dl=Pr(function(e,t){return Jt(t,function(t){t=ua(t),En(e,t,os(e[t],e))}),e});function jl(e){return function(){return e}}var Sl=hr(),Fl=hr(!0);function Pl(e){return e}function Al(e){return fo(\"function\"==typeof e?e:On(e,p))}var El=To(function(e,t){return function(i){return ro(i,e,t)}}),Hl=To(function(e,t){return function(i){return ro(e,i,t)}});function Ml(e,t,i){var n=al(t),o=Vn(t,n);null!=i||js(t)&&(o.length||!n.length)||(i=t,t=e,e=this,o=Vn(t,al(t)));var r=!(js(i)&&\"chain\"in i&&!i.chain),a=Ts(e);return Jt(o,function(i){var n=t[i];e[i]=n,a&&(e.prototype[i]=function(){var t=this.__chain__;if(r||t){var i=e(this.__wrapped__);return(i.__actions__=rr(this.__actions__)).push({func:n,args:arguments,thisArg:e}),i.__chain__=t,i}return n.apply(e,ti([this.value()],arguments))})}),e}function Ol(){}var Ul=_r(ei),Gl=_r(Kt),zl=_r(oi);function Nl(e){return Kr(e)?ui(ua(e)):function(e){return function(t){return Xn(t,e)}}(e)}var Rl=wr(),Bl=wr(!0);function Wl(){return[]}function ql(){return!1}var $l=br(function(e,t){return e+t},0),Yl=Lr(\"ceil\"),Jl=br(function(e,t){return e/t},1),Zl=Lr(\"floor\");var Kl,Vl=br(function(e,t){return e*t},1),Xl=Lr(\"round\"),Ql=br(function(e,t){return e-t},0);return hn.after=function(e,t){if(\"function\"!=typeof t)throw new ot(l);return e=Bs(e),function(){if(--e<1)return t.apply(this,arguments)}},hn.ary=is,hn.assign=Js,hn.assignIn=Zs,hn.assignInWith=Ks,hn.assignWith=Vs,hn.at=Xs,hn.before=ns,hn.bind=os,hn.bindAll=Dl,hn.bindKey=rs,hn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return _s(e)?e:[e]},hn.chain=Na,hn.chunk=function(e,t,i){t=(i?Zr(e,t,i):t===r)?1:$i(Bs(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var a=0,s=0,l=n(Gi(o/t));ao?0:o+i),(n=n===r||n>o?o:Bs(n))<0&&(n+=o),n=i>n?0:Ws(n);i>>0)?(e=Ys(e))&&(\"string\"==typeof t||null!=t&&!Es(t))&&!(t=Go(t))&&Ti(e)?Vo(Ai(e),0,i):e.split(t,i):[]},hn.spread=function(e,t){if(\"function\"!=typeof e)throw new ot(l);return t=null==t?0:$i(Bs(t),0),To(function(i){var n=i[t],o=Vo(i,0,t);return n&&ti(o,n),$t(e,this,o)})},hn.tail=function(e){var t=null==e?0:e.length;return t?Ao(e,1,t):[]},hn.take=function(e,t,i){return e&&e.length?Ao(e,0,(t=i||t===r?1:Bs(t))<0?0:t):[]},hn.takeRight=function(e,t,i){var n=null==e?0:e.length;return n?Ao(e,(t=n-(t=i||t===r?1:Bs(t)))<0?0:t,n):[]},hn.takeRightWhile=function(e,t){return e&&e.length?Bo(e,Ur(t,3),!1,!0):[]},hn.takeWhile=function(e,t){return e&&e.length?Bo(e,Ur(t,3)):[]},hn.tap=function(e,t){return t(e),e},hn.throttle=function(e,t,i){var n=!0,o=!0;if(\"function\"!=typeof e)throw new ot(l);return js(i)&&(n=\"leading\"in i?!!i.leading:n,o=\"trailing\"in i?!!i.trailing:o),as(e,t,{leading:n,maxWait:t,trailing:o})},hn.thru=Ra,hn.toArray=Ns,hn.toPairs=pl,hn.toPairsIn=ml,hn.toPath=function(e){return _s(e)?ei(e,ua):Os(e)?[e]:rr(fa(Ys(e)))},hn.toPlainObject=$s,hn.transform=function(e,t,i){var n=_s(e),o=n||Is(e)||Us(e);if(t=Ur(t,4),null==i){var r=e&&e.constructor;i=o?n?new r:[]:js(e)&&Ts(r)?vn(jt(e)):{}}return(o?Jt:Zn)(e,function(e,n,o){return t(i,e,n,o)}),i},hn.unary=function(e){return is(e,1)},hn.union=Sa,hn.unionBy=Fa,hn.unionWith=Pa,hn.uniq=function(e){return e&&e.length?zo(e):[]},hn.uniqBy=function(e,t){return e&&e.length?zo(e,Ur(t,2)):[]},hn.uniqWith=function(e,t){return t=\"function\"==typeof t?t:r,e&&e.length?zo(e,r,t):[]},hn.unset=function(e,t){return null==e||No(e,t)},hn.unzip=Aa,hn.unzipWith=Ea,hn.update=function(e,t,i){return null==e?e:Ro(e,t,Jo(i))},hn.updateWith=function(e,t,i,n){return n=\"function\"==typeof n?n:r,null==e?e:Ro(e,t,Jo(i),n)},hn.values=hl,hn.valuesIn=function(e){return null==e?[]:_i(e,sl(e))},hn.without=Ha,hn.words=Tl,hn.wrap=function(e,t){return us(Jo(t),e)},hn.xor=Ma,hn.xorBy=Oa,hn.xorWith=Ua,hn.zip=Ga,hn.zipObject=function(e,t){return $o(e||[],t||[],Sn)},hn.zipObjectDeep=function(e,t){return $o(e||[],t||[],jo)},hn.zipWith=za,hn.entries=pl,hn.entriesIn=ml,hn.extend=Zs,hn.extendWith=Ks,Ml(hn,hn),hn.add=$l,hn.attempt=kl,hn.camelCase=vl,hn.capitalize=gl,hn.ceil=Yl,hn.clamp=function(e,t,i){return i===r&&(i=t,t=r),i!==r&&(i=(i=qs(i))==i?i:0),t!==r&&(t=(t=qs(t))==t?t:0),Mn(qs(e),t,i)},hn.clone=function(e){return On(e,h)},hn.cloneDeep=function(e){return On(e,p|h)},hn.cloneDeepWith=function(e,t){return On(e,p|h,t=\"function\"==typeof t?t:r)},hn.cloneWith=function(e,t){return On(e,h,t=\"function\"==typeof t?t:r)},hn.conformsTo=function(e,t){return null==t||Un(e,t,al(t))},hn.deburr=bl,hn.defaultTo=function(e,t){return null==e||e!=e?t:e},hn.divide=Jl,hn.endsWith=function(e,t,i){e=Ys(e),t=Go(t);var n=e.length,o=i=i===r?n:Mn(Bs(i),0,n);return(i-=t.length)>=0&&e.slice(i,o)==t},hn.eq=hs,hn.escape=function(e){return(e=Ys(e))&&Te.test(e)?e.replace(Le,Li):e},hn.escapeRegExp=function(e){return(e=Ys(e))&&Ee.test(e)?e.replace(Ae,\"\\\\$&\"):e},hn.every=function(e,t,i){var n=_s(e)?Kt:Bn;return i&&Zr(e,t,i)&&(t=r),n(e,Ur(t,3))},hn.find=qa,hn.findIndex=ba,hn.findKey=function(e,t){return ai(e,Ur(t,3),Zn)},hn.findLast=$a,hn.findLastIndex=_a,hn.findLastKey=function(e,t){return ai(e,Ur(t,3),Kn)},hn.floor=Zl,hn.forEach=Ya,hn.forEachRight=Ja,hn.forIn=function(e,t){return null==e?e:Yn(e,Ur(t,3),sl)},hn.forInRight=function(e,t){return null==e?e:Jn(e,Ur(t,3),sl)},hn.forOwn=function(e,t){return e&&Zn(e,Ur(t,3))},hn.forOwnRight=function(e,t){return e&&Kn(e,Ur(t,3))},hn.get=tl,hn.gt=vs,hn.gte=gs,hn.has=function(e,t){return null!=e&&qr(e,t,io)},hn.hasIn=il,hn.head=wa,hn.identity=Pl,hn.includes=function(e,t,i,n){e=ws(e)?e:hl(e),i=i&&!n?Bs(i):0;var o=e.length;return i<0&&(i=$i(o+i,0)),Ms(e)?i<=o&&e.indexOf(t,i)>-1:!!o&&li(e,t,i)>-1},hn.indexOf=function(e,t,i){var n=null==e?0:e.length;if(!n)return-1;var o=null==i?0:Bs(i);return o<0&&(o=$i(n+o,0)),li(e,t,o)},hn.inRange=function(e,t,i){return t=Rs(t),i===r?(i=t,t=0):i=Rs(i),function(e,t,i){return e>=Yi(t,i)&&e<$i(t,i)}(e=qs(e),t,i)},hn.invoke=rl,hn.isArguments=bs,hn.isArray=_s,hn.isArrayBuffer=ys,hn.isArrayLike=ws,hn.isArrayLikeObject=xs,hn.isBoolean=function(e){return!0===e||!1===e||Ss(e)&&eo(e)==q},hn.isBuffer=Is,hn.isDate=Ls,hn.isElement=function(e){return Ss(e)&&1===e.nodeType&&!As(e)},hn.isEmpty=function(e){if(null==e)return!0;if(ws(e)&&(_s(e)||\"string\"==typeof e||\"function\"==typeof e.splice||Is(e)||Us(e)||bs(e)))return!e.length;var t=Wr(e);if(t==V||t==ne)return!e.size;if(Qr(e))return!uo(e).length;for(var i in e)if(ct.call(e,i))return!1;return!0},hn.isEqual=function(e,t){return so(e,t)},hn.isEqualWith=function(e,t,i){var n=(i=\"function\"==typeof i?i:r)?i(e,t):r;return n===r?so(e,t,r,i):!!n},hn.isError=Cs,hn.isFinite=function(e){return\"number\"==typeof e&&Bi(e)},hn.isFunction=Ts,hn.isInteger=ks,hn.isLength=Ds,hn.isMap=Fs,hn.isMatch=function(e,t){return e===t||lo(e,t,zr(t))},hn.isMatchWith=function(e,t,i){return i=\"function\"==typeof i?i:r,lo(e,t,zr(t),i)},hn.isNaN=function(e){return Ps(e)&&e!=+e},hn.isNative=function(e){if(Xr(e))throw new Me(s);return co(e)},hn.isNil=function(e){return null==e},hn.isNull=function(e){return null===e},hn.isNumber=Ps,hn.isObject=js,hn.isObjectLike=Ss,hn.isPlainObject=As,hn.isRegExp=Es,hn.isSafeInteger=function(e){return ks(e)&&e>=-H&&e<=H},hn.isSet=Hs,hn.isString=Ms,hn.isSymbol=Os,hn.isTypedArray=Us,hn.isUndefined=function(e){return e===r},hn.isWeakMap=function(e){return Ss(e)&&Wr(e)==se},hn.isWeakSet=function(e){return Ss(e)&&eo(e)==le},hn.join=function(e,t){return null==e?\"\":Wi.call(e,t)},hn.kebabCase=_l,hn.last=Ca,hn.lastIndexOf=function(e,t,i){var n=null==e?0:e.length;if(!n)return-1;var o=n;return i!==r&&(o=(o=Bs(i))<0?$i(n+o,0):Yi(o,n-1)),t==t?function(e,t,i){for(var n=i+1;n--;)if(e[n]===t)return n;return n}(e,t,o):si(e,ci,o,!0)},hn.lowerCase=yl,hn.lowerFirst=wl,hn.lt=Gs,hn.lte=zs,hn.max=function(e){return e&&e.length?Wn(e,Pl,to):r},hn.maxBy=function(e,t){return e&&e.length?Wn(e,Ur(t,2),to):r},hn.mean=function(e){return fi(e,Pl)},hn.meanBy=function(e,t){return fi(e,Ur(t,2))},hn.min=function(e){return e&&e.length?Wn(e,Pl,mo):r},hn.minBy=function(e,t){return e&&e.length?Wn(e,Ur(t,2),mo):r},hn.stubArray=Wl,hn.stubFalse=ql,hn.stubObject=function(){return{}},hn.stubString=function(){return\"\"},hn.stubTrue=function(){return!0},hn.multiply=Vl,hn.nth=function(e,t){return e&&e.length?_o(e,Bs(t)):r},hn.noConflict=function(){return Et._===this&&(Et._=ht),this},hn.noop=Ol,hn.now=ts,hn.pad=function(e,t,i){e=Ys(e);var n=(t=Bs(t))?Pi(e):0;if(!t||n>=t)return e;var o=(t-n)/2;return yr(zi(o),i)+e+yr(Gi(o),i)},hn.padEnd=function(e,t,i){e=Ys(e);var n=(t=Bs(t))?Pi(e):0;return t&&nt){var n=e;e=t,t=n}if(i||e%1||t%1){var o=Ki();return Yi(e+o*(t-e+St(\"1e-\"+((o+\"\").length-1))),t)}return Lo(e,t)},hn.reduce=function(e,t,i){var n=_s(e)?ii:mi,o=arguments.length<3;return n(e,Ur(t,4),i,o,Nn)},hn.reduceRight=function(e,t,i){var n=_s(e)?ni:mi,o=arguments.length<3;return n(e,Ur(t,4),i,o,Rn)},hn.repeat=function(e,t,i){return t=(i?Zr(e,t,i):t===r)?1:Bs(t),Co(Ys(e),t)},hn.replace=function(){var e=arguments,t=Ys(e[0]);return e.length<3?t:t.replace(e[1],e[2])},hn.result=function(e,t,i){var n=-1,o=(t=Zo(t,e)).length;for(o||(o=1,e=r);++nH)return[];var i=U,n=Yi(e,U);t=Ur(t),e-=U;for(var o=vi(n,t);++i=a)return e;var l=i-Pi(n);if(l<1)return n;var d=s?Vo(s,0,l).join(\"\"):e.slice(0,l);if(o===r)return d+n;if(s&&(l+=d.length-l),Es(o)){if(e.slice(l).search(o)){var c,f=d;for(o.global||(o=it(o.source,Ys(We.exec(o))+\"g\")),o.lastIndex=0;c=o.exec(f);)var u=c.index;d=d.slice(0,u===r?l:u)}}else if(e.indexOf(Go(o),l)!=l){var p=d.lastIndexOf(o);p>-1&&(d=d.slice(0,p))}return d+n},hn.unescape=function(e){return(e=Ys(e))&&Ce.test(e)?e.replace(Ie,Hi):e},hn.uniqueId=function(e){var t=++ft;return Ys(e)+t},hn.upperCase=Ll,hn.upperFirst=Cl,hn.each=Ya,hn.eachRight=Ja,hn.first=wa,Ml(hn,(Kl={},Zn(hn,function(e,t){ct.call(hn.prototype,t)||(Kl[t]=e)}),Kl),{chain:!1}),hn.VERSION=\"4.17.21\",Jt([\"bind\",\"bindKey\",\"curry\",\"curryRight\",\"partial\",\"partialRight\"],function(e){hn[e].placeholder=hn}),Jt([\"drop\",\"take\"],function(e,t){_n.prototype[e]=function(i){i=i===r?1:$i(Bs(i),0);var n=this.__filtered__&&!t?new _n(this):this.clone();return n.__filtered__?n.__takeCount__=Yi(i,n.__takeCount__):n.__views__.push({size:Yi(i,U),type:e+(n.__dir__<0?\"Right\":\"\")}),n},_n.prototype[e+\"Right\"]=function(t){return this.reverse()[e](t).reverse()}}),Jt([\"filter\",\"map\",\"takeWhile\"],function(e,t){var i=t+1,n=i==P||3==i;_n.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Ur(e,3),type:i}),t.__filtered__=t.__filtered__||n,t}}),Jt([\"head\",\"last\"],function(e,t){var i=\"take\"+(t?\"Right\":\"\");_n.prototype[e]=function(){return this[i](1).value()[0]}}),Jt([\"initial\",\"tail\"],function(e,t){var i=\"drop\"+(t?\"\":\"Right\");_n.prototype[e]=function(){return this.__filtered__?new _n(this):this[i](1)}}),_n.prototype.compact=function(){return this.filter(Pl)},_n.prototype.find=function(e){return this.filter(e).head()},_n.prototype.findLast=function(e){return this.reverse().find(e)},_n.prototype.invokeMap=To(function(e,t){return\"function\"==typeof e?new _n(this):this.map(function(i){return ro(i,e,t)})}),_n.prototype.reject=function(e){return this.filter(cs(Ur(e)))},_n.prototype.slice=function(e,t){e=Bs(e);var i=this;return i.__filtered__&&(e>0||t<0)?new _n(i):(e<0?i=i.takeRight(-e):e&&(i=i.drop(e)),t!==r&&(i=(t=Bs(t))<0?i.dropRight(-t):i.take(t-e)),i)},_n.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},_n.prototype.toArray=function(){return this.take(U)},Zn(_n.prototype,function(e,t){var i=/^(?:filter|find|map|reject)|While$/.test(t),n=/^(?:head|last)$/.test(t),o=hn[n?\"take\"+(\"last\"==t?\"Right\":\"\"):t],a=n||/^find/.test(t);o&&(hn.prototype[t]=function(){var t=this.__wrapped__,s=n?[1]:arguments,l=t instanceof _n,d=s[0],c=l||_s(t),f=function(e){var t=o.apply(hn,ti([e],s));return n&&u?t[0]:t};c&&i&&\"function\"==typeof d&&1!=d.length&&(l=c=!1);var u=this.__chain__,p=!!this.__actions__.length,m=a&&!u,h=l&&!p;if(!a&&c){t=h?t:new _n(this);var v=e.apply(t,s);return v.__actions__.push({func:Ra,args:[f],thisArg:r}),new bn(v,u)}return m&&h?e.apply(this,s):(v=this.thru(f),m?n?v.value()[0]:v.value():v)})}),Jt([\"pop\",\"push\",\"shift\",\"sort\",\"splice\",\"unshift\"],function(e){var t=rt[e],i=/^(?:push|sort|unshift)$/.test(e)?\"tap\":\"thru\",n=/^(?:pop|shift)$/.test(e);hn.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var o=this.value();return t.apply(_s(o)?o:[],e)}return this[i](function(i){return t.apply(_s(i)?i:[],e)})}}),Zn(_n.prototype,function(e,t){var i=hn[t];if(i){var n=i.name+\"\";ct.call(an,n)||(an[n]=[]),an[n].push({name:t,func:i})}}),an[vr(r,_).name]=[{name:\"wrapper\",func:r}],_n.prototype.clone=function(){var e=new _n(this.__wrapped__);return e.__actions__=rr(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=rr(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=rr(this.__views__),e},_n.prototype.reverse=function(){if(this.__filtered__){var e=new _n(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},_n.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,i=_s(e),n=t<0,o=i?e.length:0,r=function(e,t,i){for(var n=-1,o=i.length;++n=this.__values__.length;return{done:e,value:e?r:this.__values__[this.__index__++]}},hn.prototype.plant=function(e){for(var t,i=this;i instanceof gn;){var n=ma(i);n.__index__=0,n.__values__=r,t?o.__wrapped__=n:t=n;var o=n;i=i.__wrapped__}return o.__wrapped__=e,t},hn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof _n){var t=e;return this.__actions__.length&&(t=new _n(this)),(t=t.reverse()).__actions__.push({func:Ra,args:[ja],thisArg:r}),new bn(t,this.__chain__)}return this.thru(ja)},hn.prototype.toJSON=hn.prototype.valueOf=hn.prototype.value=function(){return Wo(this.__wrapped__,this.__actions__)},hn.prototype.first=hn.prototype.head,Ut&&(hn.prototype[Ut]=function(){return this}),hn}();Et._=Mi,(o=function(){return Mi}.call(t,i,t,n))===r||(n.exports=o)}).call(this)}).call(t,i(\"DuR2\"),i(\"3IRH\")(e))},Re3r:function(e,t){function i(e){return!!e.constructor&&\"function\"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}e.exports=function(e){return null!=e&&(i(e)||function(e){return\"function\"==typeof e.readFloatLE&&\"function\"==typeof e.slice&&i(e.slice(0,0))}(e)||!!e._isBuffer)}},Rl6D:function(e,t,i){var n,o,r;!function(a){\"use strict\";o=[i(\"7t+N\"),i(\"UZ9c\")],void 0===(r=\"function\"==typeof(n=a)?n.apply(t,o):n)||(e.exports=r)}(function(e){\"use strict\";return e.fn.scrollParent=function(t){var i=this.css(\"position\"),n=\"absolute\"===i,o=t?/(auto|scroll|hidden)/:/(auto|scroll)/,r=this.parents().filter(function(){var t=e(this);return(!n||\"static\"!==t.css(\"position\"))&&o.test(t.css(\"overflow\")+t.css(\"overflow-y\")+t.css(\"overflow-x\"))}).eq(0);return\"fixed\"!==i&&r.length?r:e(this[0].ownerDocument||document)}})},TNV1:function(e,t,i){\"use strict\";var n=i(\"cGG2\");e.exports=function(e,t,i){return n.forEach(i,function(i){e=i(e,t)}),e}},W2nU:function(e,t){var i,n,o=e.exports={};function r(){throw new Error(\"setTimeout has not been defined\")}function a(){throw new Error(\"clearTimeout has not been defined\")}function s(e){if(i===setTimeout)return setTimeout(e,0);if((i===r||!i)&&setTimeout)return i=setTimeout,setTimeout(e,0);try{return i(e,0)}catch(t){try{return i.call(null,e,0)}catch(t){return i.call(this,e,0)}}}!function(){try{i=\"function\"==typeof setTimeout?setTimeout:r}catch(e){i=r}try{n=\"function\"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var l,d=[],c=!1,f=-1;function u(){c&&l&&(c=!1,l.length?d=l.concat(d):f=-1,d.length&&p())}function p(){if(!c){var e=s(u);c=!0;for(var t=d.length;t;){for(l=d,d=[];++f1)for(var i=1;i';for(c=0;c'+o[u].fields[c].label+\"\";f+=\"\"}return f}function o(e){for(var t=e.systems,n=e.itemStatuses,o=e.inspectionStatuses,r=e.sealingMethods,a=e.itemTypes,s=\"\",l=[],d={system:[],item_status:[],inspection_status:[],sealing_method:[],sub_type:[],item_type:[]},c=0;c';for(var y=0;y';s+=\"\"}return s}function r(){var e=\"\";return function t(i){for(var n in i)\"logic_group\"===i[n].filter_type&&(e+=\"( \",t(i[n].group),e+=\") \"),\"field_filter\"===i[n].filter_type&&(e+=\"[\"+i[n].field_display_name.replace(/\\(/g,\"\\\\(\").replace(/\\)/g,\"\\\\)\")+\"] \",[\"text\",\"multiline\",\"dropdown\",\"checkbox\"].includes(i[n].field_type)?e+=i[n].display_operator+' \"'+i[n].search.replace(/\\(/g,\"\\\\(\").replace(/\\)/g,\"\\\\)\")+'\"':[\"numeric\",\"decimal\"].includes(i[n].field_type)?e+=i[n].display_operator+\" \"+i[n].search.replace(/\\(/g,\"\\\\(\").replace(/\\)/g,\"\\\\)\"):\"date\"===i[n].field_type?e+=\"is between \"+moment(i[n].search_start).local().format(\"MM/DD/YYYY\")+\" and \"+moment(i[n].search_end).local().format(\"MM/DD/YYYY\"):\"datetime\"===i[n].field_type&&(\"custom_item_field\"===i[n].field_category||\"custom_inspection_field\"===i[n].field_category?e+=\"is between \"+moment(i[n].search_start).utc().format(\"MM/DD/YYYY h:mm A\")+\" and \"+moment(i[n].search_end).utc().format(\"MM/DD/YYYY h:mm A\"):e+=\"is between \"+moment(i[n].search_start).local().format(\"MM/DD/YYYY h:mm A\")+\" and \"+moment(i[n].search_end).local().format(\"MM/DD/YYYY h:mm A\"))),\"logic_operator\"===i[n].filter_type&&(e+=i[n].operator+\" \")}(u()),e}function a(){for(var e=r(),t=\"\",i=0,n=0;n .sortable-item\")),r.each(function(n,o){var r=e(o);if(r.hasClass(\"field-filter-row\")){if(s[t]={filter_type:\"field_filter\",field_type:r.find(\".field-options option:selected\").data(\"fieldType\"),field_category:r.find(\".field-options option:selected\").data(\"fieldCategory\"),field_name:r.find(\".field-options\").val(),field_display_name:r.find(\".field-options option:selected\").text()},\"date\"===s[t].field_type)s[t].search_start=r.find(\".\"+s[t].field_type+\"-type-search-start\").val(),s[t].search_end=r.find(\".\"+s[t].field_type+\"-type-search-end\").val();else if(\"datetime\"===s[t].field_type){var a=moment(r.find(\".\"+s[t].field_type+\"-type-search-start-date\").val()+\"T\"+r.find(\".\"+s[t].field_type+\"-type-search-start-time\").val()),l=moment(r.find(\".\"+s[t].field_type+\"-type-search-end-date\").val()+\"T\"+r.find(\".\"+s[t].field_type+\"-type-search-end-time\").val());\"custom_item_field\"===s[t].field_category||\"custom_inspection_field\"===s[t].field_category?(s[t].search_start=a.utcOffset(0,!0).format(),s[t].search_end=l.utcOffset(0,!0).format()):(s[t].search_start=a.format(),s[t].search_end=l.format())}else s[t].operator=r.find(\"select.field-operator\").val(),s[t].display_operator=r.find(\"select.field-operator option:selected\").text(),s[t].search=r.find(\".\"+s[t].field_type+\"-type-search\").val();t++}r.hasClass(\"field-filter-logic-group\")?s[t]={filter_type:\"logic_group\",group:{}}:r.children(\".logic-operator-section:visible\").length>0&&(s[t]={filter_type:\"logic_operator\",operator:r.children(\".logic-operator-section:visible\").find(\".logic-operator:visible\").val()},t++),e(o).hasClass(\"field-filter-logic-group\")&&(i({group:s[t++].group,$selector:e(o).find(\".sortable-section\").first().children(\".sortable-item\")}),r.children(\".logic-operator-section:visible\").length>0&&(s[t]={filter_type:\"logic_operator\",operator:r.children(\".logic-operator-section:visible\").find(\".logic-operator:visible\").val()},t++))})}({group:i}),i}function m(){for(var t={},i=0,n=0,o=[\"item_type\",\"sealing_method\",\"item_status\",\"inspection_status\"],r=e(\"#filter-items-modal .filter-checkbox.checked\").length,a=0,s=function(s){if(e(\"#filter-items-modal .filter-checkbox.checked.\"+o[s].replace(\"_\",\"-\")).length<1)return\"continue\";var l=e(\"#filter-items-modal .filter-checkbox.checked.\"+o[s].replace(\"_\",\"-\")).length;t[n]=l>1?{filter_type:\"logic_group\",group:{}}:{},e(\"#filter-items-modal .filter-checkbox.checked.\"+o[s].replace(\"_\",\"-\")).each(function(o){var r=e(this),s={filter_type:\"field_filter\",operator:\"equals\",display_operator:\"equals\",field_category:r.closest(\".list-group\").data(\"fieldCategory\"),field_type:\"text\",field_name:r.closest(\".list-group\").data(\"fieldName\"),field_display_name:r.closest(\".list-group\").data(\"fieldDisplayName\"),search:r.find(\".value\").text()};l>1?(t[n].group[i]=s,i++):t[n]=s,a++,l>1&&o .sortable-item\"));o.each(function(i,n){a(i,n),e(n).hasClass(\"field-filter-logic-group\")&&t({$selector:e(n).find(\".sortable-section\").first().children(\".sortable-item\"),before:a,after:l}),l(i,n)})},t.getItemFilterLogicStr=r,t.getFormattedItemFilterLogicStr=a,t.updateItemFilterLogicStrPanel=s,t.enableSortableItemFilter=l,t.renderItemFilters=function(t){for(var i=e(\"#filter-items-modal\"),r=e(\"#floor-templates .field-filter-row\"),a=\"\",s=0;s Apply Filters').prop(\"disabled\",!1)})},t.getItemFilterObject=u,t.buildAdvancedItemFilterObject=p,t.buildSimpleItemFilterObject=m,t.addItemFilterLogicGroup=function(t){var i=e(\"#floor-templates #field-filter-logic-group-template\").clone(),n=\"sortable-\"+(new Date).getTime();e(\"#filter-items-modal .field-filter-empty\").hide(),e(\"#filter-items-modal .field-filters\").show(),e(\"#filter-items-modal .logic-string-area\").show(),i.find(\".field-filter-logic-group\").attr(\"id\",n),t.hasClass(\"logic-group-btn\")?t.closest(\".well\").find(\".sortable-section\").first().append(i.html()):e(\"#filter-items-modal .field-filters\").append(i.html());l(\"#\"+n+\" .sortable-section\"),d(),s()},t.removeItemFilter=function(t){t.closest(\".deletable\").remove(),d(),s(),0===e(\"#filter-items-modal .field-filters\").children().length&&(e(\"#filter-items-modal .field-filter-empty\").show(),e(\"#filter-items-modal .field-filters\").hide(),e(\"#filter-items-modal .logic-string-area\").hide())},t.addItemFilter=function(t){var i=e(\"#floor-templates #field-filter-row-template\").clone();e(\"#filter-items-modal .field-filter-empty\").hide(),e(\"#filter-items-modal .field-filters\").show(),e(\"#filter-items-modal .logic-string-area\").show(),t.hasClass(\"logic-group-btn\")?t.closest(\".well\").find(\".sortable-section\").first().append(i.html()):e(\"#filter-items-modal .field-filters\").append(i.html());d(),s()}}.call(t,i(\"7t+N\"))},fuGk:function(e,t,i){\"use strict\";var n=i(\"cGG2\");function o(){this.handlers=[]}o.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){n.forEach(this.handlers,function(t){null!==t&&e(t)})},e.exports=o},fzln:function(e,t,i){var n,o;void 0===(o=\"function\"==typeof(n=function(){\"use strict\";return function(e,t){var i,n,o,r,a,s,l,d,c,f,u,p,m,h,v,g,b,_,y=this,w=!1,x=!0,I=!0,L={barsSize:{top:44,bottom:\"auto\"},closeElClasses:[\"item\",\"caption\",\"zoom-wrap\",\"ui\",\"top-bar\"],timeToIdle:4e3,timeToIdleOutside:1e3,loadingIndicatorDelay:1e3,addCaptionHTMLFn:function(e,t){return e.title?(t.children[0].innerHTML=e.title,!0):(t.children[0].innerHTML=\"\",!1)},closeEl:!0,captionEl:!0,fullscreenEl:!0,zoomEl:!0,shareEl:!0,counterEl:!0,arrowEl:!0,preloaderEl:!0,tapToClose:!1,tapToToggleControls:!0,clickToCloseNonZoomable:!0,shareButtons:[{id:\"facebook\",label:\"Share on Facebook\",url:\"https://www.facebook.com/sharer/sharer.php?u={{url}}\"},{id:\"twitter\",label:\"Tweet\",url:\"https://twitter.com/intent/tweet?text={{text}}&url={{url}}\"},{id:\"pinterest\",label:\"Pin it\",url:\"http://www.pinterest.com/pin/create/button/?url={{url}}&media={{image_url}}&description={{text}}\"},{id:\"download\",label:\"Download image\",url:\"{{raw_image_url}}\",download:!0}],getImageURLForShare:function(){return e.currItem.src||\"\"},getPageURLForShare:function(){return window.location.href},getTextForShare:function(){return e.currItem.title||\"\"},indexIndicatorSep:\" / \",fitControlsWidth:1200},C=function(e){if(g)return!0;e=e||window.event,v.timeToIdle&&v.mouseUsed&&!c&&E();for(var i,n,o=(e.target||e.srcElement).getAttribute(\"class\")||\"\",r=0;r-1&&(i.onTap(),n=!0);if(n){e.stopPropagation&&e.stopPropagation(),g=!0;var a=t.features.isOldAndroid?600:30;setTimeout(function(){g=!1},a)}},T=function(e,i,n){t[(n?\"add\":\"remove\")+\"Class\"](e,\"pswp__\"+i)},k=function(){var e=1===v.getNumItemsFn();e!==h&&(T(n,\"ui--one-slide\",e),h=e)},D=function(){T(l,\"share-modal--hidden\",I)},j=function(){return(I=!I)?(t.removeClass(l,\"pswp__share-modal--fade-in\"),setTimeout(function(){I&&D()},300)):(D(),setTimeout(function(){I||t.addClass(l,\"pswp__share-modal--fade-in\")},30)),I||F(),!1},S=function(t){var i=(t=t||window.event).target||t.srcElement;return e.shout(\"shareLinkClick\",t,i),!(!i.href||!i.hasAttribute(\"download\")&&(window.open(i.href,\"pswp_share\",\"scrollbars=yes,resizable=yes,toolbar=no,location=yes,width=550,height=420,top=100,left=\"+(window.screen?Math.round(screen.width/2-275):100)),I||j(),1))},F=function(){for(var e,t,i,n,o=\"\",r=0;r