var Url,selectedDataItemId,dataItemKey,dataItemDescription;(function(n){function i(n,t){for(var i=window,r=(n||"").split(".");i&&r.length;)i=i[r.shift()];return typeof i=="function"?i:(t.push(n),Function.constructor.apply(null,t))}function u(n){return n==="GET"||n==="POST"}function o(n,t){u(t)||n.setRequestHeader("X-HTTP-Method-Override",t)}function s(t,i,r){var u;r.indexOf("application/x-javascript")===-1&&(u=(t.getAttribute("data-ajax-mode")||"").toUpperCase(),n(t.getAttribute("data-ajax-update")).each(function(t,r){switch(u){case"BEFORE":n(r).prepend(i);break;case"AFTER":n(r).append(i);break;case"REPLACE-WITH":n(r).replaceWith(i);break;default:n(r).html(i)}}))}function f(t,r){var c,l,f,a,e,h;(c=t.getAttribute("data-ajax-confirm"),!c||window.confirm(c))&&(l=n(t.getAttribute("data-ajax-loading")),a=parseInt(t.getAttribute("data-ajax-loading-duration"),10)||0,n.extend(r,{type:t.getAttribute("data-ajax-method")||undefined,url:t.getAttribute("data-ajax-url")||undefined,cache:(t.getAttribute("data-ajax-cache")||"").toLowerCase()==="true",beforeSend:function(n){var r;return o(n,f),r=i(t.getAttribute("data-ajax-begin"),["xhr"]).apply(t,arguments),r!==!1&&l.show(a),r},complete:function(){l.hide(a);i(t.getAttribute("data-ajax-complete"),["xhr","status"]).apply(t,arguments)},success:function(n,r,u){s(t,n,u.getResponseHeader("Content-Type")||"text/html");i(t.getAttribute("data-ajax-success"),["data","status","xhr"]).apply(t,arguments)},error:function(){i(t.getAttribute("data-ajax-failure"),["xhr","status","error"]).apply(t,arguments)}}),r.data.push({name:"X-Requested-With",value:"XMLHttpRequest"}),f=r.type.toUpperCase(),u(f)||(r.type="POST",r.data.push({name:"X-HTTP-Method-Override",value:f})),e=n(t),e.is("form")&&e.attr("enctype")=="multipart/form-data"&&(h=new FormData,n.each(r.data,function(n,t){h.append(t.name,t.value)}),n("input[type=file]",e).each(function(){var t=this;n.each(t.files,function(n,i){h.append(t.name,i)})}),n.extend(r,{processData:!1,contentType:!1,data:h})),n.ajax(r))}function h(t){var i=n(t).data(e);return!i||!i.validate||i.validate()}var t="unobtrusiveAjaxClick",r="unobtrusiveAjaxClickTarget",e="unobtrusiveValidation";n(document).on("click","a[data-ajax=true]",function(n){n.preventDefault();f(this,{url:this.href,type:"GET",data:[]})});n(document).on("click","form[data-ajax=true] input[type=image]",function(i){var r=i.target.name,u=n(i.target),f=n(u.parents("form")[0]),e=u.offset();f.data(t,[{name:r+".x",value:Math.round(i.pageX-e.left)},{name:r+".y",value:Math.round(i.pageY-e.top)}]);setTimeout(function(){f.removeData(t)},0)});n(document).on("click","form[data-ajax=true] :submit",function(i){var f=i.currentTarget.name,e=n(i.target),u=n(e.parents("form")[0]);u.data(t,f?[{name:f,value:i.currentTarget.value}]:[]);u.data(r,e);setTimeout(function(){u.removeData(t);u.removeData(r)},0)});n(document).on("submit","form[data-ajax=true]",function(i){var e=n(this).data(t)||[],u=n(this).data(r),o=u&&(u.hasClass("cancel")||u.attr("formnovalidate")!==undefined);(i.preventDefault(),o||h(this))&&f(this,{url:this.action,type:this.method||"GET",data:e.concat(n(this).serializeArray())})})})(jQuery);Url=function(){"use strict";var n={protocol:"protocol",host:"hostname",port:"port",path:"pathname",query:"search",hash:"hash"},t={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443},i=function(i,r){var e=document,c=e.createElement("a"),r=r||e.location.href,l=r.match(/\/\/(.*?)(?::(.*?))?@/)||[],f;c.href=r;for(f in n)i[f]=c[n[f]]||"";if(i.protocol=i.protocol.replace(/:$/,""),i.query=i.query.replace(/^\?/,""),i.hash=i.hash.replace(/^#/,""),i.user=l[1]||"",i.pass=l[2]||"",i.port=t[i.protocol]==i.port||i.port==0?"":i.port,i.protocol||/^([a-z]+:)?\/\//.test(r))i.path=i.path.replace(/^\/?/,"/");else{var a=new Url(e.location.href.match(/(.*\/)/)[0]),o=a.path.split("/"),s=i.path.split("/");o.pop();for(var f=0,h=["protocol","user","pass","host","port"],v=h.length;f<v;f++)i[h[f]]=a[h[f]];while(s[0]=="..")o.pop(),s.shift();i.path=(r.substring(0,1)!="/"?o.join("/"):"")+"/"+s.join("/")}u(i)},r=function(n){return n=n.replace(/\+/g," "),n=n.replace(/%([ef][0-9a-f])%([89ab][0-9a-f])%([89ab][0-9a-f])/gi,function(n,t,i,r){var f=parseInt(t,16)-224,e=parseInt(i,16)-128,o,u;return f==0&&e<32?n:(o=parseInt(r,16)-128,u=(f<<12)+(e<<6)+o,u>65535)?n:String.fromCharCode(u)}),n=n.replace(/%([cd][0-9a-f])%([89ab][0-9a-f])/gi,function(n,t,i){var r=parseInt(t,16)-192,u;return r<2?n:(u=parseInt(i,16)-128,String.fromCharCode((r<<6)+u))}),n.replace(/%([0-7][0-9a-f])/gi,function(n,t){return String.fromCharCode(parseInt(t,16))})},u=function(n){var t=n.query;n.query=new function(n){for(var f=/([^=&]+)(=([^&]*))?/g,i,t,u;i=f.exec(n);)t=decodeURIComponent(i[1].replace(/\+/g," ")),u=i[3]?r(i[3]):"",this[t]!=null?(this[t]instanceof Array||(this[t]=[this[t]]),this[t].push(u)):this[t]=u;this.clear=function(){for(t in this)this[t]instanceof Function||delete this[t]};this.toString=function(){var n="",i=encodeURIComponent,t,u,r;for(t in this)if(!(this[t]instanceof Function))if(this[t]instanceof Array)if(u=this[t].length,u)for(r=0;r<u;r++)n+=n?"&":"",n+=i(t)+"="+i(this[t][r]);else n+=(n?"&":"")+i(t)+"=";else n+=n?"&":"",n+=i(t)+"="+i(this[t]);return n}}(t)};return function(n){this.toString=function(){return(this.protocol&&this.protocol+"://")+(this.user&&this.user+(this.pass&&":"+this.pass)+"@")+(this.host&&this.host)+(this.port&&":"+this.port)+(this.path&&this.path)+(this.query.toString()&&"?"+this.query)+(this.hash&&"#"+this.hash)};i(this,n)}}();typeof JSON!="object"&&(JSON={}),function(){"use strict";function i(n){return n<10?"0"+n:n}function o(n){return e.lastIndex=0,e.test(n)?'"'+n.replace(e,function(n){var t=s[n];return typeof t=="string"?t:"\\u"+("0000"+n.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+n+'"'}function u(i,f){var s,l,h,a,v=n,c,e=f[i];e&&typeof e=="object"&&typeof e.toJSON=="function"&&(e=e.toJSON(i));typeof t=="function"&&(e=t.call(f,i,e));switch(typeof e){case"string":return o(e);case"number":return isFinite(e)?String(e):"null";case"boolean":case"null":return String(e);case"object":if(!e)return"null";if(n+=r,c=[],Object.prototype.toString.apply(e)==="[object Array]"){for(a=e.length,s=0;s<a;s+=1)c[s]=u(s,e)||"null";return h=c.length===0?"[]":n?"[\n"+n+c.join(",\n"+n)+"\n"+v+"]":"["+c.join(",")+"]",n=v,h}if(t&&typeof t=="object")for(a=t.length,s=0;s<a;s+=1)typeof t[s]=="string"&&(l=t[s],h=u(l,e),h&&c.push(o(l)+(n?": ":":")+h));else for(l in e)Object.prototype.hasOwnProperty.call(e,l)&&(h=u(l,e),h&&c.push(o(l)+(n?": ":":")+h));return h=c.length===0?"{}":n?"{\n"+n+c.join(",\n"+n)+"\n"+v+"}":"{"+c.join(",")+"}",n=v,h}}typeof Date.prototype.toJSON!="function"&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+i(this.getUTCMonth()+1)+"-"+i(this.getUTCDate())+"T"+i(this.getUTCHours())+":"+i(this.getUTCMinutes())+":"+i(this.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()});var f=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,e=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,n,r,s={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},t;typeof JSON.stringify!="function"&&(JSON.stringify=function(i,f,e){var o;if(n="",r="",typeof e=="number")for(o=0;o<e;o+=1)r+=" ";else typeof e=="string"&&(r=e);if(t=f,f&&typeof f!="function"&&(typeof f!="object"||typeof f.length!="number"))throw new Error("JSON.stringify");return u("",{"":i})});typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){function walk(n,t){var r,u,i=n[t];if(i&&typeof i=="object")for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(u=walk(i,r),u!==undefined?i[r]=u:delete i[r]);return reviver.call(n,t,i)}var j;if(text=String(text),f.lastIndex=0,f.test(text)&&(text=text.replace(f,function(n){return"\\u"+("0000"+n.charCodeAt(0).toString(16)).slice(-4)})),/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return j=eval("("+text+")"),typeof reviver=="function"?walk({"":j},""):j;throw new SyntaxError("JSON.parse");})}(),function(n,t){"use strict";var i=n.History=n.History||{},r=n.jQuery;if(typeof i.Adapter!="undefined")throw new Error("History.js Adapter has already been loaded...");i.Adapter={bind:function(n,t,i){r(n).bind(t,i)},trigger:function(n,t,i){r(n).trigger(t,i)},extractEventData:function(n,i,r){return i&&i.originalEvent&&i.originalEvent[n]||r&&r[n]||t},onDomLoad:function(n){r(n)}};typeof i.init!="undefined"&&i.init()}(window),function(n){"use strict";var i=n.document,u=n.setTimeout||u,f=n.clearTimeout||f,r=n.setInterval||r,t=n.History=n.History||{};if(typeof t.initHtml4!="undefined")throw new Error("History.js HTML4 Support has already been loaded...");t.initHtml4=function(){if(typeof t.initHtml4.initialized!="undefined")return!1;if(t.initHtml4.initialized=!0,t.enabled=!0,t.savedHashes=[],t.isLastHash=function(n){var i=t.getHashByIndex();return n===i},t.isHashEqual=function(n,t){return n=encodeURIComponent(n).replace(/%25/g,"%"),t=encodeURIComponent(t).replace(/%25/g,"%"),n===t},t.saveHash=function(n){return t.isLastHash(n)?!1:(t.savedHashes.push(n),!0)},t.getHashByIndex=function(n){return typeof n=="undefined"?t.savedHashes[t.savedHashes.length-1]:n<0?t.savedHashes[t.savedHashes.length+n]:t.savedHashes[n]},t.discardedHashes={},t.discardedStates={},t.discardState=function(n,i,r){var f=t.getHashByState(n),u;return u={discardedState:n,backState:r,forwardState:i},t.discardedStates[f]=u,!0},t.discardHash=function(n,i,r){var u={discardedHash:n,backState:r,forwardState:i};return t.discardedHashes[n]=u,!0},t.discardedState=function(n){var i=t.getHashByState(n);return t.discardedStates[i]||!1},t.discardedHash=function(n){return t.discardedHashes[n]||!1},t.recycleState=function(n){var i=t.getHashByState(n);return t.discardedState(n)&&delete t.discardedStates[i],!0},t.emulated.hashChange){t.hashChangeInit=function(){t.checkerFunction=null;var f="",s,u,e,o,h=Boolean(t.getHash());return t.isInternetExplorer()?(s="historyjs-iframe",u=i.createElement("iframe"),u.setAttribute("id",s),u.setAttribute("src","#"),u.style.display="none",i.body.appendChild(u),u.contentWindow.document.open(),u.contentWindow.document.close(),e="",o=!1,t.checkerFunction=function(){if(o)return!1;o=!0;var r=t.getHash(),i=t.getHash(u.contentWindow.document);return r!==f?(f=r,i!==r&&(e=i=r,u.contentWindow.document.open(),u.contentWindow.document.close(),u.contentWindow.document.location.hash=t.escapeHash(r)),t.Adapter.trigger(n,"hashchange")):i!==e&&(e=i,h&&i===""?t.back():t.setHash(i,!1)),o=!1,!0}):t.checkerFunction=function(){var i=t.getHash()||"";return i!==f&&(f=i,t.Adapter.trigger(n,"hashchange")),!0},t.intervalList.push(r(t.checkerFunction,t.options.hashChangeInterval)),!0};t.Adapter.onDomLoad(t.hashChangeInit)}if(t.emulated.pushState&&(t.onHashChange=function(i){var e=i&&i.newURL||t.getLocationHref(),u=t.getHashByUrl(e),r=null,o=null,f;return t.isLastHash(u)?(t.busy(!1),!1):(t.doubleCheckComplete(),t.saveHash(u),u&&t.isTraditionalAnchor(u))?(t.Adapter.trigger(n,"anchorchange"),t.busy(!1),!1):(r=t.extractState(t.getFullUrl(u||t.getLocationHref()),!0),t.isLastSavedState(r))?(t.busy(!1),!1):(o=t.getHashByState(r),f=t.discardedState(r),f)?(t.getHashByIndex(-2)===t.getHashByState(f.forwardState)?t.back(!1):t.forward(!1),!1):(t.pushState(r.data,r.title,encodeURI(r.url),!1),!0)},t.Adapter.bind(n,"hashchange",t.onHashChange),t.pushState=function(i,r,u,f){if(u=encodeURI(u).replace(/%25/g,"%"),t.getHashByUrl(u))throw new Error("History.js does not support states with fragment-identifiers (hashes/anchors).");if(f!==!1&&t.busy())return t.pushQueue({scope:t,callback:t.pushState,args:arguments,queue:f}),!1;t.busy(!0);var e=t.createStateObject(i,r,u),o=t.getHashByState(e),s=t.getState(!1),h=t.getHashByState(s),c=t.getHash(),l=t.expectedStateId==e.id;return(t.storeState(e),t.expectedStateId=e.id,t.recycleState(e),t.setTitle(e),o===h)?(t.busy(!1),!1):(t.saveState(e),l||t.Adapter.trigger(n,"statechange"),t.isHashEqual(o,c)||t.isHashEqual(o,t.getShortUrl(t.getLocationHref()))||t.setHash(o,!1),t.busy(!1),!0)},t.replaceState=function(i,r,u,f){if(u=encodeURI(u).replace(/%25/g,"%"),t.getHashByUrl(u))throw new Error("History.js does not support states with fragment-identifiers (hashes/anchors).");if(f!==!1&&t.busy())return t.pushQueue({scope:t,callback:t.replaceState,args:arguments,queue:f}),!1;t.busy(!0);var e=t.createStateObject(i,r,u),s=t.getHashByState(e),o=t.getState(!1),h=t.getHashByState(o),c=t.getStateByIndex(-2);return t.discardState(o,e,c),s===h?(t.storeState(e),t.expectedStateId=e.id,t.recycleState(e),t.setTitle(e),t.saveState(e),t.Adapter.trigger(n,"statechange"),t.busy(!1)):t.pushState(e.data,e.title,e.url,!1),!0}),t.emulated.pushState&&t.getHash()&&!t.emulated.hashChange)t.Adapter.onDomLoad(function(){t.Adapter.trigger(n,"hashchange")})};typeof t.init!="undefined"&&t.init()}(window),function(n,t){"use strict";var e=n.console||t,r=n.document,o=n.navigator,f=!1,h=n.setTimeout,c=n.clearTimeout,l=n.setInterval,a=n.clearInterval,u=n.JSON,v=n.alert,i=n.History=n.History||{},s=n.history;try{f=n.sessionStorage;f.setItem("TEST","1");f.removeItem("TEST")}catch(y){f=!1}if(u.stringify=u.stringify||u.encode,u.parse=u.parse||u.decode,typeof i.init!="undefined")throw new Error("History.js Core has already been loaded...");i.init=function(){return typeof i.Adapter=="undefined"?!1:(typeof i.initCore!="undefined"&&i.initCore(),typeof i.initHtml4!="undefined"&&i.initHtml4(),!0)};i.initCore=function(){if(typeof i.initCore.initialized!="undefined")return!1;if(i.initCore.initialized=!0,i.options=i.options||{},i.options.hashChangeInterval=i.options.hashChangeInterval||100,i.options.safariPollInterval=i.options.safariPollInterval||500,i.options.doubleCheckInterval=i.options.doubleCheckInterval||500,i.options.disableSuid=i.options.disableSuid||!1,i.options.storeInterval=i.options.storeInterval||1e3,i.options.busyDelay=i.options.busyDelay||250,i.options.debug=i.options.debug||!1,i.options.initialTitle=i.options.initialTitle||r.title,i.options.html4Mode=i.options.html4Mode||!1,i.options.delayInit=i.options.delayInit||!1,i.intervalList=[],i.clearAllIntervals=function(){var n,t=i.intervalList;if(typeof t!="undefined"&&t!==null){for(n=0;n<t.length;n++)a(t[n]);i.intervalList=null}},i.debug=function(){(i.options.debug||!1)&&i.log.apply(i,arguments)},i.log=function(){var s=!(typeof e=="undefined"||typeof e.log=="undefined"||typeof e.log.apply=="undefined"),t=r.getElementById("log"),n,f,h,o,i;for(s?(o=Array.prototype.slice.call(arguments),n=o.shift(),typeof e.debug!="undefined"?e.debug.apply(e,[n,o]):e.log.apply(e,[n,o])):n="\n"+arguments[0]+"\n",f=1,h=arguments.length;f<h;++f){if(i=arguments[f],typeof i=="object"&&typeof u!="undefined")try{i=u.stringify(i)}catch(c){}n+="\n"+i+"\n"}return t?(t.value+=n+"\n-----\n",t.scrollTop=t.scrollHeight-t.clientHeight):s||v(n),!0},i.getInternetExplorerMajorVersion=function(){return i.getInternetExplorerMajorVersion.cached=typeof i.getInternetExplorerMajorVersion.cached!="undefined"?i.getInternetExplorerMajorVersion.cached:function(){for(var n=3,t=r.createElement("div"),i=t.getElementsByTagName("i");(t.innerHTML="<!--[if gt IE "+ ++n+"]><i><\/i><![endif]-->")&&i[0];);return n>4?n:!1}()},i.isInternetExplorer=function(){return i.isInternetExplorer.cached=typeof i.isInternetExplorer.cached!="undefined"?i.isInternetExplorer.cached:Boolean(i.getInternetExplorerMajorVersion())},i.emulated=i.options.html4Mode?{pushState:!0,hashChange:!0}:{pushState:!Boolean(n.history&&n.history.pushState&&n.history.replaceState&&!(/ Mobile\/([1-7][a-z]|(8([abcde]|f(1[0-8]))))/i.test(o.userAgent)||/AppleWebKit\/5([0-2]|3[0-2])/i.test(o.userAgent))),hashChange:Boolean(!("onhashchange"in n||"onhashchange"in r)||i.isInternetExplorer()&&i.getInternetExplorerMajorVersion()<8)},i.enabled=!i.emulated.pushState,i.bugs={setHash:Boolean(!i.emulated.pushState&&o.vendor==="Apple Computer, Inc."&&/AppleWebKit\/5([0-2]|3[0-3])/.test(o.userAgent)),safariPoll:Boolean(!i.emulated.pushState&&o.vendor==="Apple Computer, Inc."&&/AppleWebKit\/5([0-2]|3[0-3])/.test(o.userAgent)),ieDoubleCheck:Boolean(i.isInternetExplorer()&&i.getInternetExplorerMajorVersion()<8),hashEscape:Boolean(i.isInternetExplorer()&&i.getInternetExplorerMajorVersion()<7)},i.isEmptyObject=function(n){for(var t in n)if(n.hasOwnProperty(t))return!1;return!0},i.cloneObject=function(n){var i,t;return n?(i=u.stringify(n),t=u.parse(i)):t={},t},i.getRootUrl=function(){var n=r.location.protocol+"//"+(r.location.hostname||r.location.host);return(r.location.port||!1)&&(n+=":"+r.location.port),n+"/"},i.getBaseHref=function(){var t=r.getElementsByTagName("base"),i=null,n="";return t.length===1&&(i=t[0],n=i.href.replace(/[^\/]+$/,"")),n=n.replace(/\/+$/,""),n&&(n+="/"),n},i.getBaseUrl=function(){return i.getBaseHref()||i.getBasePageUrl()||i.getRootUrl()},i.getPageUrl=function(){var n=i.getState(!1,!1),t=(n||{}).url||i.getLocationHref();return t.replace(/\/+$/,"").replace(/[^\/]+$/,function(n){return/\./.test(n)?n:n+"/"})},i.getBasePageUrl=function(){return i.getLocationHref().replace(/[#\?].*/,"").replace(/[^\/]+$/,function(n){return/[^\/]$/.test(n)?"":n}).replace(/\/+$/,"")+"/"},i.getFullUrl=function(n,t){var u=n,r=n.substring(0,1);return t=typeof t=="undefined"?!0:t,/[a-z]+\:\/\//.test(n)||(u=r==="/"?i.getRootUrl()+n.replace(/^\/+/,""):r==="#"?i.getPageUrl().replace(/#.*/,"")+n:r==="?"?i.getPageUrl().replace(/[\?#].*/,"")+n:t?i.getBaseUrl()+n.replace(/^(\.\/)+/,""):i.getBasePageUrl()+n.replace(/^(\.\/)+/,"")),u.replace(/\#$/,"")},i.getShortUrl=function(n){var t=n,r=i.getBaseUrl(),u=i.getRootUrl();return i.emulated.pushState&&(t=t.replace(r,"")),t=t.replace(u,"/"),i.isTraditionalAnchor(t)&&(t="./"+t),t.replace(/^(\.\/)+/g,"./").replace(/\#$/,"")},i.getLocationHref=function(n){return(n=n||r,n.URL===n.location.href)?n.location.href:n.location.href===decodeURIComponent(n.URL)?n.URL:n.location.hash&&decodeURIComponent(n.location.href.replace(/^[^#]+/,""))===n.location.hash?n.location.href:n.URL.indexOf("#")==-1&&n.location.href.indexOf("#")!=-1?n.location.href:n.URL||n.location.href},i.store={},i.idToState=i.idToState||{},i.stateToId=i.stateToId||{},i.urlToId=i.urlToId||{},i.storedStates=i.storedStates||[],i.savedStates=i.savedStates||[],i.normalizeStore=function(){i.store.idToState=i.store.idToState||{};i.store.urlToId=i.store.urlToId||{};i.store.stateToId=i.store.stateToId||{}},i.getState=function(n,t){typeof n=="undefined"&&(n=!0);typeof t=="undefined"&&(t=!0);var r=i.getLastSavedState();return!r&&t&&(r=i.createStateObject()),n&&(r=i.cloneObject(r),r.url=r.cleanUrl||r.url),r},i.getIdByState=function(n){var t=i.extractId(n.url),r;if(!t)if(r=i.getStateString(n),typeof i.stateToId[r]!="undefined")t=i.stateToId[r];else if(typeof i.store.stateToId[r]!="undefined")t=i.store.stateToId[r];else{for(;;)if(t=(new Date).getTime()+String(Math.random()).replace(/\D/g,""),typeof i.idToState[t]=="undefined"&&typeof i.store.idToState[t]=="undefined")break;i.stateToId[r]=t;i.idToState[t]=n}return t},i.normalizeState=function(n){var t,r;return(n&&typeof n=="object"||(n={}),typeof n.normalized!="undefined")?n:(n.data&&typeof n.data=="object"||(n.data={}),t={},t.normalized=!0,t.title=n.title||"",t.url=i.getFullUrl(n.url?n.url:i.getLocationHref()),t.hash=i.getShortUrl(t.url),t.data=i.cloneObject(n.data),t.id=i.getIdByState(t),t.cleanUrl=t.url.replace(/\??\&_suid.*/,""),t.url=t.cleanUrl,r=!i.isEmptyObject(t.data),(t.title||r)&&i.options.disableSuid!==!0&&(t.hash=i.getShortUrl(t.url).replace(/\??\&_suid.*/,""),/\?/.test(t.hash)||(t.hash+="?"),t.hash+="&_suid="+t.id),t.hashedUrl=i.getFullUrl(t.hash),(i.emulated.pushState||i.bugs.safariPoll)&&i.hasUrlDuplicate(t)&&(t.url=t.hashedUrl),t)},i.createStateObject=function(n,t,r){var u={data:n,title:t,url:r};return i.normalizeState(u)},i.getStateById=function(n){n=String(n);return i.idToState[n]||i.store.idToState[n]||t},i.getStateString=function(n){var t,r;return t=i.normalizeState(n),r={data:t.data,title:n.title,url:n.url},u.stringify(r)},i.getStateId=function(n){var t;return t=i.normalizeState(n),t.id},i.getHashByState=function(n){var t;return t=i.normalizeState(n),t.hash},i.extractId=function(n){var i,t,u,r;return r=n.indexOf("#")!=-1?n.split("#")[0]:n,t=/(.*)\&_suid=([0-9]+)$/.exec(r),u=t?t[1]||n:n,i=t?String(t[2]||""):"",i||!1},i.isTraditionalAnchor=function(n){return!/[\/\?\.]/.test(n)},i.extractState=function(n,t){var r=null,u,f;return t=t||!1,u=i.extractId(n),u&&(r=i.getStateById(u)),r||(f=i.getFullUrl(n),u=i.getIdByUrl(f)||!1,u&&(r=i.getStateById(u)),r||!t||i.isTraditionalAnchor(n)||(r=i.createStateObject(null,null,f))),r},i.getIdByUrl=function(n){return i.urlToId[n]||i.store.urlToId[n]||t},i.getLastSavedState=function(){return i.savedStates[i.savedStates.length-1]||t},i.getLastStoredState=function(){return i.storedStates[i.storedStates.length-1]||t},i.hasUrlDuplicate=function(n){var t;return t=i.extractState(n.url),t&&t.id!==n.id},i.storeState=function(n){return i.urlToId[n.url]=n.id,i.storedStates.push(i.cloneObject(n)),n},i.isLastSavedState=function(n){var t=!1,r,u,f;return i.savedStates.length&&(r=n.id,u=i.getLastSavedState(),f=u.id,t=r===f),t},i.saveState=function(n){return i.isLastSavedState(n)?!1:(i.savedStates.push(i.cloneObject(n)),!0)},i.getStateByIndex=function(n){return typeof n=="undefined"?i.savedStates[i.savedStates.length-1]:n<0?i.savedStates[i.savedStates.length+n]:i.savedStates[n]},i.getCurrentIndex=function(){return i.savedStates.length<1?0:i.savedStates.length-1},i.getHash=function(n){var t=i.getLocationHref(n);return i.getHashByUrl(t)},i.unescapeHash=function(n){var t=i.normalizeHash(n);return decodeURIComponent(t)},i.normalizeHash=function(n){return n.replace(/[^#]*#/,"").replace(/#.*/,"")},i.setHash=function(n,t){var u,f;return t!==!1&&i.busy()?(i.pushQueue({scope:i,callback:i.setHash,args:arguments,queue:t}),!1):(i.busy(!0),u=i.extractState(n,!0),u&&!i.emulated.pushState?i.pushState(u.data,u.title,u.url,!1):i.getHash()!==n&&(i.bugs.setHash?(f=i.getPageUrl(),i.pushState(null,null,f+"#"+n,!1)):r.location.hash=n),i)},i.escapeHash=function(t){var r=i.normalizeHash(t);return r=n.encodeURIComponent(r),i.bugs.hashEscape||(r=r.replace(/\%21/g,"!").replace(/\%26/g,"&").replace(/\%3D/g,"=").replace(/\%3F/g,"?")),r},i.getHashByUrl=function(n){var t=String(n).replace(/([^#]*)#?([^#]*)#?(.*)/,"$2");return i.unescapeHash(t)},i.setTitle=function(n){var t=n.title,u;t||(u=i.getStateByIndex(0),u&&u.url===n.url&&(t=u.title||i.options.initialTitle));try{r.getElementsByTagName("title")[0].innerHTML=t.replace("<","&lt;").replace(">","&gt;").replace(" & "," &amp; ")}catch(f){}return r.title=t,i},i.queues=[],i.busy=function(n){if(typeof n!="undefined"?i.busy.flag=n:typeof i.busy.flag=="undefined"&&(i.busy.flag=!1),!i.busy.flag){c(i.busy.timeout);var t=function(){var n,r,u;if(!i.busy.flag)for(n=i.queues.length-1;n>=0;--n)(r=i.queues[n],r.length!==0)&&(u=r.shift(),i.fireQueueItem(u),i.busy.timeout=h(t,i.options.busyDelay))};i.busy.timeout=h(t,i.options.busyDelay)}return i.busy.flag},i.busy.flag=!1,i.fireQueueItem=function(n){return n.callback.apply(n.scope||i,n.args||[])},i.pushQueue=function(n){return i.queues[n.queue||0]=i.queues[n.queue||0]||[],i.queues[n.queue||0].push(n),i},i.queue=function(n,t){return typeof n=="function"&&(n={callback:n}),typeof t!="undefined"&&(n.queue=t),i.busy()?i.pushQueue(n):i.fireQueueItem(n),i},i.clearQueue=function(){return i.busy.flag=!1,i.queues=[],i},i.stateChanged=!1,i.doubleChecker=!1,i.doubleCheckComplete=function(){return i.stateChanged=!0,i.doubleCheckClear(),i},i.doubleCheckClear=function(){return i.doubleChecker&&(c(i.doubleChecker),i.doubleChecker=!1),i},i.doubleCheck=function(n){return i.stateChanged=!1,i.doubleCheckClear(),i.bugs.ieDoubleCheck&&(i.doubleChecker=h(function(){return i.doubleCheckClear(),i.stateChanged||n(),!0},i.options.doubleCheckInterval)),i},i.safariStatePoll=function(){var r=i.extractState(i.getLocationHref()),t;if(!i.isLastSavedState(r))return t=r,t||(t=i.createStateObject()),i.Adapter.trigger(n,"popstate"),i},i.back=function(n){return n!==!1&&i.busy()?(i.pushQueue({scope:i,callback:i.back,args:arguments,queue:n}),!1):(i.busy(!0),i.doubleCheck(function(){i.back(!1)}),s.go(-1),!0)},i.forward=function(n){return n!==!1&&i.busy()?(i.pushQueue({scope:i,callback:i.forward,args:arguments,queue:n}),!1):(i.busy(!0),i.doubleCheck(function(){i.forward(!1)}),s.go(1),!0)},i.go=function(n,t){var r;if(n>0)for(r=1;r<=n;++r)i.forward(t);else if(n<0)for(r=-1;r>=n;--r)i.back(t);else throw new Error("History.go: History.go requires a positive or negative integer passed.");return i},i.emulated.pushState){var y=function(){};i.pushState=i.pushState||y;i.replaceState=i.replaceState||y}else i.onPopState=function(t,r){var e=!1,u=!1,o,f;return(i.doubleCheckComplete(),o=i.getHash(),o)?(f=i.extractState(o||i.getLocationHref(),!0),f?i.replaceState(f.data,f.title,f.url,!1):(i.Adapter.trigger(n,"anchorchange"),i.busy(!1)),i.expectedStateId=!1,!1):(e=i.Adapter.extractEventData("state",t,r)||!1,u=e?i.getStateById(e):i.expectedStateId?i.getStateById(i.expectedStateId):i.extractState(i.getLocationHref()),u||(u=i.createStateObject(null,null,i.getLocationHref())),i.expectedStateId=!1,i.isLastSavedState(u))?(i.busy(!1),!1):(i.storeState(u),i.saveState(u),i.setTitle(u),i.Adapter.trigger(n,"statechange"),i.busy(!1),!0)},i.Adapter.bind(n,"popstate",i.onPopState),i.pushState=function(t,r,u,f){if(i.getHashByUrl(u)&&i.emulated.pushState)throw new Error("History.js does not support states with fragement-identifiers (hashes/anchors).");if(f!==!1&&i.busy())return i.pushQueue({scope:i,callback:i.pushState,args:arguments,queue:f}),!1;i.busy(!0);var e=i.createStateObject(t,r,u);return i.isLastSavedState(e)?i.busy(!1):(i.storeState(e),i.expectedStateId=e.id,s.pushState(e.id,e.title,e.url),i.Adapter.trigger(n,"popstate")),!0},i.replaceState=function(t,r,u,f){if(i.getHashByUrl(u)&&i.emulated.pushState)throw new Error("History.js does not support states with fragement-identifiers (hashes/anchors).");if(f!==!1&&i.busy())return i.pushQueue({scope:i,callback:i.replaceState,args:arguments,queue:f}),!1;i.busy(!0);var e=i.createStateObject(t,r,u);return i.isLastSavedState(e)?i.busy(!1):(i.storeState(e),i.expectedStateId=e.id,s.replaceState(e.id,e.title,e.url),i.Adapter.trigger(n,"popstate")),!0};if(f){try{i.store=u.parse(f.getItem("History.store"))||{}}catch(p){i.store={}}i.normalizeStore()}else i.store={},i.normalizeStore();if(i.Adapter.bind(n,"unload",i.clearAllIntervals),i.saveState(i.storeState(i.extractState(i.getLocationHref(),!0))),f&&(i.onUnload=function(){var n,t,r;try{n=u.parse(f.getItem("History.store"))||{}}catch(o){n={}}n.idToState=n.idToState||{};n.urlToId=n.urlToId||{};n.stateToId=n.stateToId||{};for(t in i.idToState)i.idToState.hasOwnProperty(t)&&(n.idToState[t]=i.idToState[t]);for(t in i.urlToId)i.urlToId.hasOwnProperty(t)&&(n.urlToId[t]=i.urlToId[t]);for(t in i.stateToId)i.stateToId.hasOwnProperty(t)&&(n.stateToId[t]=i.stateToId[t]);i.store=n;i.normalizeStore();r=u.stringify(n);try{f.setItem("History.store",r)}catch(e){if(e.code===DOMException.QUOTA_EXCEEDED_ERR)f.length&&(f.removeItem("History.store"),f.setItem("History.store",r));else throw e;}},i.intervalList.push(l(i.onUnload,i.options.storeInterval)),i.Adapter.bind(n,"beforeunload",i.onUnload),i.Adapter.bind(n,"unload",i.onUnload)),!i.emulated.pushState&&(i.bugs.safariPoll&&i.intervalList.push(l(i.safariStatePoll,i.options.safariPollInterval)),(o.vendor==="Apple Computer, Inc."||(o.appCodeName||"")==="Mozilla")&&(i.Adapter.bind(n,"hashchange",function(){i.Adapter.trigger(n,"popstate")}),i.getHash())))i.Adapter.onDomLoad(function(){i.Adapter.trigger(n,"hashchange")})};i.options&&i.options.delayInit||i.init()}(window),function(n){typeof define=="function"&&define.amd?define(["jquery"],n):typeof exports=="object"?n(require("jquery")):n(jQuery)}(function(n){function i(n){return t.raw?n:encodeURIComponent(n)}function f(n){return t.raw?n:decodeURIComponent(n)}function e(n){return i(t.json?JSON.stringify(n):String(n))}function o(n){n.indexOf('"')===0&&(n=n.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return n=decodeURIComponent(n.replace(u," ")),t.json?JSON.parse(n):n}catch(i){}}function r(i,r){var u=t.raw?i:o(i);return n.isFunction(r)?r(u):u}var u=/\+/g,t=n.cookie=function(u,o,s){var y,a,h,v,c,p;if(o!==undefined&&!n.isFunction(o))return s=n.extend({},t.defaults,s),typeof s.expires=="number"&&(y=s.expires,a=s.expires=new Date,a.setTime(+a+y*864e5)),document.cookie=[i(u),"=",e(o),s.expires?"; expires="+s.expires.toUTCString():"",s.path?"; path="+s.path:"",s.domain?"; domain="+s.domain:"",s.secure?"; secure":""].join("");for(h=u?undefined:{},v=document.cookie?document.cookie.split("; "):[],c=0,p=v.length;c<p;c++){var w=v[c].split("="),b=f(w.shift()),l=w.join("=");if(u&&u===b){h=r(l,o);break}u||(l=r(l))===undefined||(h[b]=l)}return h};t.defaults={};n.removeCookie=function(t,i){return n.cookie(t)===undefined?!1:(n.cookie(t,"",n.extend({},i,{expires:-1})),!n.cookie(t))}});window.console=window.console||{};window.console.log=window.console.log||function(){};String.prototype.format||(String.prototype.format=function(){var n=arguments;return this.replace(/{(\d+)}/g,function(t,i){return typeof n[i]!="undefined"?n[i]:t})});$(function(){$.fn.hasOverflow=function(){return this[0].scrollHeight>this[0].clientHeight||this[0].scrollWidth>this[0].clientWidth}});var homePage,billPage,bdrPage,budgetPage,committeePage,meetingPage,billHome,bdrHome,budgetHome,committeeHome,floorSessionPage,selectingNewDate,meetingDates=[],meetingDatesCancelledNotScheduled=[],daysToHighlight=[],daysToHighlightCancelledNotScheduled=[];homePage=billPage=bdrPage=budgetPage=committeePage=meetingPage=billHome=bdrHome=budgetHome=committeeHome=floorSessionPage=!1;$(document).ready(function(){$.ajaxSetup({cache:!1});$(document).ajaxError(function(n,t){t.status===401&&confirm('Your connection has timed out.  Press "Cancel" to remain on this page or press "OK" to go to the "Sign In" page.')&&(window.location.href=$("body").data("sign-in-link")+"?returnUrl="+encodeURI(window.location.href))});Nelis.showPDF();Nelis.Spinner.init()});Nelis={showPDF:function(){$("#main-content").on("click",".text-revision-link",function(){var n,i,r,t;billPage?n=$("#divText").attr("data-url"):meetingPage||floorSessionPage?n=$("#bill-revisions").attr("data-url"):alert("PDF viewer error; illegal Page");t=$(this).attr("id");i={billDocumentKey:t};r="#BillTextPDFViewer";$.ajax({type:"GET",url:n,async:!1,dataType:"html",data:i,success:function(n){$(r).empty().html(n);$("#bill-revisions").length>0&&($("#bill-revisions").find("a").removeClass("revision-selected"),$("#"+t).addClass("revision-selected"))}})})},showDocumentNotFound:function(){alert("This document is not yet available.")},documentNotFound:function(n){return n==="undefined"&&(n="document"),alert("This "+n+" is not yet available."),!1},log:function(){for(var n=0;n<arguments.length;n++)console.log(n+1+">>  typeOf: "+typeof arguments[n]+", value: "+arguments[n])},DeclareDatePicker:function(){var t=!1,n;$("#datepicker").length!==0&&($("#datepicker").kendoDatePicker({Animation:!1,footer:"Today - #: kendo.toString(data, 'd') #",open:function(){t||($("[data-role=calendar]").data("kendoCalendar").bind("navigate",Nelis.highlightDates),t=!0);Nelis.highlightDates()}}),n=$("#datepicker").data("kendoDatePicker"),n.bind("change",function(){var t,i;window.homePage?(t=n.value(),Nelis.UpdateMeetingList(t)):window.meetingPage&&(selectingNewDate=!0,t=n.value(),i=t.getFullYear()+"/"+t.getMonth()+"/"+t.getDate(),meetingDates.indexOf(i)>-1||meetingDatesCancelledNotScheduled.indexOf(i)>-1?($(".invalid-meeting-date").hasClass("hidden")===!1&&$(".invalid-meeting-date").toggleClass("hidden"),Nelis.processMeetingDateSelection(t)):$(".invalid-meeting-date").hasClass("hidden")===!0&&$(".invalid-meeting-date").toggleClass("hidden"))}))},clickDatePickerButtonHookup:function(){$(".date-actions .left").on("click",function(){var n;window.homePage?(n=Nelis.UpdateDatePicker(-1),Nelis.UpdateMeetingList(n)):window.meetingPage?(selectingNewDate=!0,$("#previousMeetingDateTime").val()!==""?(n=Nelis.SetDatePicker($("#previousMeetingDateTime").val()),Nelis.processMeetingDateSelection(n)):alert("There are no scheduled meetings prior to this date.")):window.PLTHome&&(n=Nelis.UpdateDatePicker(-1))});$(".date-actions .right").on("click",function(){var n;window.homePage?(n=Nelis.UpdateDatePicker(1),Nelis.UpdateMeetingList(n)):window.meetingPage?(selectingNewDate=!0,$("#nextMeetingDateTime").val()!==""?(n=Nelis.SetDatePicker($("#nextMeetingDateTime").val()),Nelis.processMeetingDateSelection(n)):alert("There are no scheduled meetings after this date.")):window.PLTHome&&(n=Nelis.UpdateDatePicker(1))})},processMeetingDateSelection:function(n){try{var i=$("#datepicker").data("get-meeting-url"),t={};t.committeeKey=$("#datepicker").data("committee-key");t.meetingDate=n.getFullYear()+"/"+(n.getMonth()+1)+"/"+n.getDate();$.ajax({dataType:"json",url:i,data:t,success:function(n){n.URL&&(window.location.href=n.URL)}})}catch(r){alert("The entered date must be formatted as 'month/day/year'.")}},SetDatePicker:function(n){var t=$("#datepicker").data("kendoDatePicker");return t.value(n),t.value()},UpdateDatePicker:function(n){var t=$("#datepicker").data("kendoDatePicker"),i=t.value();return i.setDate(i.getDate()+n),t.value(i),t.trigger("change"),t.value()},UpdateMeetingList:function(n){try{var t=n.getMonth()+1+"/"+n.getDate()+"/"+n.getFullYear(),i=$("#showMyMeetings").is(":checked");$.ajax({type:"GET",url:$("#datepicker").attr("data-url"),data:{dateIn:t,checkboxIsChecked:i},async:!1,success:function(n){$("#meetingsListHome").empty().html(n);$(".daily-schedule-header").empty().text("Daily Schedule for "+$("#DateSelectedText").val())}})}catch(r){alert("The entered date must be formatted as 'month/day/year'.")}},UpdateMeetingInfo:function(){try{selectingNewDate=!1;var t=$("#meetingCombo").data("kendoDropDownList"),i=t.value(),n=$("#datepicker").attr("data-url");n=n.substring(0,n.lastIndexOf("/"))+"/"+i;window.location.href=n}catch(r){alert("The entered date must be formatted as 'month/day/year'.")}},compareDates:function(n,t){var r=new Date(n),u=new Date(t),i=!0;return r.getMonth()!==u.getMonth()&&(i=!1),r.getDate()!==u.getDate()&&(i=!1),r.getYear()!==u.getYear()&&(i=!1),i},formatDate:function(n){return n=n===undefined?new Date:new Date(n),n.getMonth()+1+"/"+n.getDate()+"/"+n.getFullYear()},declareComboBox:function(){var i=$("#datepicker").data("get-day-meetings-url"),n=new kendo.data.DataSource({transport:{read:{url:i,dataType:"json"}}}),t;$("#meetingCombo").kendoDropDownList({dataSource:n,dataTextField:"MeetingDisplayInfo",dataValueField:"MeetingKey"});t=$("#meetingCombo").data("kendoDropDownList");n.bind("change",function(){var r=n.data().length,i;selectingNewDate?(t.select(0),Nelis.UpdateMeetingInfo()):(i=Number($("#dayMeetingComboBoxIndex").val()),t.select(i))})},changeComboBoxHookup:function(){$("#body-container").on("change",".meetingCombo",function(){var n=$("#meetingCombo").data("kendoDropDownList");Nelis.UpdateMeetingInfo()})},setDatePickerDaysToHighlight:function(){var t,i,n;if(!window.homePage&&window.meetingPage){for(t=$("#meetingDateList").val(),meetingDates=t.split(","),i=0;i<meetingDates.length;i++)daysToHighlight.push(meetingDates[i]);for(t=$("#MeetingDateListCancelledNotScheduled").val(),meetingDatesCancelledNotScheduled=t.split(","),n=0;n<meetingDatesCancelledNotScheduled.length;n++)meetingDates.indexOf(meetingDatesCancelledNotScheduled[n])===-1&&daysToHighlightCancelledNotScheduled.push(meetingDatesCancelledNotScheduled[n])}},highlightDates:function(){for(var t,n="",i=0;i<daysToHighlight.length;i++)n=daysToHighlight[i],$("[data-value='"+n+"']").parent().addClass("calendar-highlight");for(t=0;t<daysToHighlightCancelledNotScheduled.length;t++)n=daysToHighlightCancelledNotScheduled[t],$("[data-value='"+n+"']").parent().addClass("calendar-highlight-cancelledNotScheduled")},isDetailPage:function(){return $("body").data("pagetype")==="Item Detail"},getContext:function(){return $("body").data("context")},getPageType:function(){return $("body").data("pagetype")},getItemKey:function(){if(Nelis.getPageType()==="Item Detail"){if(Nelis.getContext()==="Bill")return $("#billKey").val();if(Nelis.getContext()==="Budget")return $("#budgetKey").val();if(Nelis.getContext()==="BudgetPPBB")return $("#budgetPpbbKey").val();if(Nelis.getContext()==="Committee")return $("#committeeKey").val();if(Nelis.getContext()==="Meeting")return $("#meetingAgendaId").val();if(Nelis.getContext()==="FloorSession")return $("#floorSessionKey").val()}},setBreadcrumb:function(n){$("#page-name").text(n)}};Bill={Votes:{init:function(){Bill.Votes.initTier1()},initTier1:function(){$(".panels-tier-1").kendoPanelBar({expandMode:"multiple",contentLoad:Bill.Votes.initTier2Panel});$(".panels-tier-1 li").length===1&&$(".panels-tier-1").data("kendoPanelBar").expand($(".panels-tier-1 li:first"))},initTier2Panel:function(n){$(n.contentElement).find(".panel-tier-2").kendoPanelBar({expandMode:"multiple"})}},reloadOverview:function(){Nelis.getContext()==="Bill"?Nelis.Routing.TabStrip.reload():(Nelis.getContext()==="Meeting"||Nelis.getContext()==="FloorSession")&&Nelis.Routing.TreeView.reload()}};MeetingExhibit={moreExhibitsClick:function(){$("#body-container").on("click",".moreExhibitsClick",function(){var n=$(this).find(".exhibitInput").attr("data-key")+"-Exhibit";$("."+n).toggleClass("notVisible")})}};Nelis.Spinner={init:function(){$(document).ajaxStart(Nelis.Spinner.show);$(document).ajaxStop(Nelis.Spinner.hide)},show:function(){document.body.style.cursor="progress !important"},hide:function(){setTimeout(function(){document.body.style.cursor="auto"},500)}};Helpers={setIntervalX:function(n,t,i,r){i>0?setTimeout(function(){n.apply(arguments.callee);Helpers.setIntervalX(n,t,--i,r)},t):r&&r.apply(this)},doWhen:function(n,t,i,r){t()===!0?n.apply(arguments.callee):setTimeout(function(){Helpers.doWhen(n,t,i,--r)},i)}};Nelis.TabStrip={initialize:function(){Nelis.TabStrip.getElement().kendoTabStrip();Nelis.TabStrip.getElement().trigger("KendoTabStripLoad")},getElement:function(){return $("#tabstrip")},getObject:function(){return Nelis.TabStrip.getElement().data("kendoTabStrip")},getSelectedTab:function(){return Nelis.TabStrip.getObject().select()},getSelectedTabIndex:function(){return Nelis.TabStrip.getObject().select().index()},getSelectedTabName:function(){return Nelis.TabStrip.getSelectedTab().data("tabname")},getSelectedTabTitle:function(){return Nelis.TabStrip.getSelectedTab().data("tabtitle")},getTabByIndex:function(n){return $(".k-tabstrip .k-item")[n]},getTabByName:function(n){var t=$(".k-tabstrip .k-item").filter(function(){return new RegExp("tab"+n,"ig").test($(this).attr("id"))});return t.length>0?t:null},getContentElement:function(){return Nelis.TabStrip.getObject().contentElement(Nelis.TabStrip.getSelectedTabIndex())},activateTabByName:function(n){Nelis.TabStrip.getObject().activateTab(Nelis.TabStrip.getTabByName(n))},selectTabByName:function(n){Nelis.TabStrip.getObject().select(Nelis.TabStrip.getTabByName(n))},onceLoaded:function(n){if(typeof Nelis.TabStrip.getObject()!="undefined")n();else Nelis.TabStrip.getElement().one("KendoTabStripLoad",function(t){n(t)})},contentAlreadyLoaded:function(n){return $(Nelis.TabStrip.getObject().contentElement(n.index())).find(".content").html().length>0}};dataItemKey=-100;dataItemDescription="";Nelis.NavTree={initialize:function(n,t){(typeof t=="undefined"||t===null)&&(t=$(".treeview"));$(t).on("KendoTreeViewLoad",Nelis.NavTree.performDefaultExpansion);t.kendoTreeView({dataSource:n,dataBound:function(n){switch(Nelis.getPageType()){case"Home":n.sender.element.trigger("KendoTreeViewLoad");break;case"Item Detail":n.sender.select().length===0?Nelis.NavTree.performNodeSelection(n.sender,n.node):(Nelis.NavTree.scrollToSelection({node:n.sender.select()}),n.sender.element.trigger("KendoTreeViewLoad"))}},select:function(n){Nelis.NavTree.persistSelectedNodePath(n.sender,n.node);Nelis.NavTree.scrollToSelection(n);var t=n.sender.dataItem(n.node);typeof t.isNavigable=="undefined"||t.isNavigable||(n.preventDefault(),typeof t.hasChildren!="undefined"&&t.hasChildren&&n.sender.expand(n.node));dataItemKey=t.id}})},getNodeCssClass:function(n){return typeof n=="undefined"||n===null||typeof n.IsPLTSubscriber=="undefined"||typeof n.HasNote=="undefined"||typeof n.HasItemSubscription=="undefined"?"":n.IsPLTSubscriber&&n.HasItemSubscription?"fas fa-bookmark":""},getPageDetailKey:function(){return $("#billKey, #budgetKey, #committeeKey, #meetingKey").first().val()},getElement:function(n){return typeof n=="undefined"?$(".treeview"):$(n)},getIDByDepth:function(n,t,i){for(var r=0;r<=i;r++){if(r===i)return n.dataItem(t).id;if(t=$(t).parents("li[role='treeitem']:first"),t.length===0)return null}return null},getNodePath:function(n,t){return $(t).parents("li[role='treeitem']").add($(t)).children(":first-child").get().map(function(t){return n.dataItem($(t)).id}).join(",")},getObject:function(n){return typeof n=="undefined"?Nelis.NavTree.getElement().data("kendoTreeView"):Nelis.NavTree.getElement(n).data("kendoTreeView")},getSelectedNode:function(){return $(Nelis.NavTree.getObject().select()[0])},getSelectedNodeData:function(){return Nelis.NavTree.getObject().dataItem(Nelis.NavTree.getSelectedNode())},getSelectedNodeText:function(){return Nelis.NavTree.getSelectedNodeData().text},getNodeTopPositionRelativeToTreeview:function(n){return n.offset().top-Nelis.NavTree.getElement().offset().top},getBestScrollPosition:function(n){return Nelis.NavTree.getNodeTopPositionRelativeToTreeview(n)+Nelis.NavTree.getElement().scrollTop()},getNodeKeysFromURL:function(){var n=new Url;return typeof n.query.p!="undefined"?[].concat(n.query.p):[]},getLastNodeKeyFromURL:function(){return Nelis.NavTree.getNodeKeysFromURL().length>0?Nelis.NavTree.getNodeKeysFromURL()[Nelis.NavTree.getNodeKeysFromURL().length-1]:null},isNodeVisible:function(n){return((typeof n=="undefined"||n===null)&&(n=Nelis.NavTree.getObject().select()),Nelis.NavTree.getNodeTopPositionRelativeToTreeview(n)>Nelis.NavTree.getElement().height())?!1:!0},hasSelection:function(){return Nelis.NavTree.getObject().select().length>0},scrollToSelection:function(n){if((typeof n=="undefined"||n===null)&&(n={node:Nelis.NavTree.getObject().select()}),Nelis.getPageType()==="Item Detail"){Nelis.NavTree.isNodeVisible($(n.node))||Nelis.NavTree.getElement().scrollTop(Nelis.NavTree.getBestScrollPosition($(n.node)));$("body").one("splitterContentResized",function(){Nelis.NavTree.isNodeVisible($(n.node))||Nelis.NavTree.getElement().scrollTop(Nelis.NavTree.getBestScrollPosition($(n.node)))})}},onceLoaded:function(n,t){if(typeof Nelis.NavTree.getObject(n)!="undefined")switch(Nelis.getPageType()){case"Home":t();return;case"Item Detail":if(Nelis.NavTree.getObject(n).select().length>0){t();return}}Nelis.NavTree.getElement(n).one("KendoTreeViewLoad",function(){t()})},persistSelectedNodePath:function(n,t){var i=n.element.get(0).id;Modernizr.sessionstorage&&(sessionStorage.setItem(i+".selectedNodePath",Nelis.NavTree.getNodePath(n,t)),sessionStorage.setItem(i+".selectedNodeKey",n.dataItem(t).id))},performNodeSelection:function(n,t){var i=Nelis.NavTree.getLastNodeKeyFromURL()||Nelis.getItemKey(),u=t||n.element,r;if(Modernizr.sessionstorage){var f=n.element.get(0).id,e=(sessionStorage.getItem(f+".selectedNodePath")||"").split(","),o=sessionStorage.getItem(f+".selectedNodeKey");o===i?(r=!1,u.find(".k-item").each(function(t,u){var f=n.dataItem($(u));String(f.id)===i&&(n.select($(u)),Nelis.NavTree.scrollToSelection({node:$(u)}),n.element.trigger("KendoTreeViewLoad"),r=!0)}),r||n.expandPath(e)):u.find(".k-item").each(function(t,r){var u=n.dataItem($(r));return String(u.id)===i?(n.select($(r)),Nelis.NavTree.scrollToSelection({node:$(r)}),n.element.trigger("KendoTreeViewLoad"),!1):u.hasKey?(n.expand($(this)),!1):!0})}},performDefaultExpansion:function(n){var t=Nelis.NavTree.getObject("#"+n.currentTarget.id);switch(n.currentTarget.id){case"CommitteeNavTree":$(n.currentTarget).find(".k-item").each(function(){var n=t.dataItem($(this)).id;(n===1e3||n===2e3)&&t.expand($(this))});break;case"MeetingNavTree":$(n.currentTarget).find(".k-item").each(function(){var n=t.dataItem($(this));(String(n.text).indexOf("Bills (")>-1||String(n.text).indexOf("Budgets (")>-1)&&n.hasChildren&&t.expand($(this))})}},previouslyScrolledToSelection:!1};$(document).ready(function(){Nelis.Routing.initialize()});Nelis.Routing={initialize:function(){var n,t,i;if(History.Adapter.bind(window,"statechange",Nelis.Routing.onLocationChanged),n=new Url,t=new Url(n.hash.replace("./","")),t.path.length>0&&n.path!==t.path){i=new Url(n.toString());i.path=t.path;i.hash="";window.location.replace(i.toString());return}switch(Nelis.getPageType()){case"Home":$.when(Nelis.Routing.TreeView.initialize()).done(function(){Nelis.NavTree.getObject("#BillNavTree").bind("select",Nelis.Routing.TreeView.onSelected);$("#BudgetNavTree").length>0&&Nelis.NavTree.getObject("#BudgetNavTree").bind("select",Nelis.Routing.TreeView.onSelected);Nelis.NavTree.getObject("#CommitteeNavTree").bind("select",Nelis.Routing.TreeView.onSelected)});break;case"Item Detail":switch(Nelis.getContext()){case"Bill":case"Budget":case"Committee":$.when(Nelis.Routing.TreeView.initialize(),Nelis.Routing.TabStrip.initialize()).done(function(){Nelis.NavTree.getObject().bind("select",Nelis.Routing.TreeView.onSelected);Nelis.Routing.TabStrip.selectTabAndBindEvents($("#selectedTab").val(),!0)});break;case"Meeting":case"FloorSession":$.when(Nelis.Routing.TreeView.initialize()).done(function(){Nelis.NavTree.getObject().bind("select",Nelis.Routing.TreeView.onSelected);var n={url:new Url,data:{treeViewSelectedNodePath:String(Nelis.NavTree.getSelectedNodeData().id)},title:document.title};n.url.hash="";Nelis.Routing.TreeView.onSelected({sender:Nelis.NavTree.getObject(),node:Nelis.NavTree.getSelectedNode(),replaceState:!0})})}break;case"Item Home":$.when(Nelis.Routing.TabStrip.initialize()).done(function(){Nelis.Routing.TabStrip.selectTabAndBindEvents($("#selectedTab").val(),!0)})}},hasTabStrip:function(){return $("#tabstrip").length>0},hasTreeView:function(){return $(".treeview").length>0},TreeView:{initialize:function(){var n=new $.Deferred;switch(Nelis.getPageType()){case"Home":var i=new $.Deferred,t=new $.Deferred,r=new $.Deferred;Nelis.NavTree.onceLoaded("#BillNavTree",function(){i.resolve()});if($("#BudgetNavTree").length>0)Nelis.NavTree.onceLoaded("#BudgetNavTree",function(){t.resolve()});else t.resolve();Nelis.NavTree.onceLoaded("#CommitteeNavTree",function(){r.resolve()});$.when(i.promise(),t.promise(),r.promise()).done(function(){n.resolve()});break;case"Item Detail":Nelis.NavTree.onceLoaded(".treeview",function(){n.resolve()})}return n.promise()},getLoadTarget:function(){return $(Nelis.NavTree.getElement().data("target"))},onSelected:function(n){var t,i,r=n.sender.dataItem(n.node),u;if(typeof r.isNavigable=="undefined"||r.isNavigable)switch(Nelis.getPageType()){case"Home":u="{0}?strItemType={1}&itemId={2}".format(n.sender.element.data("urlprocess"),n.sender.element.data("itemtype"),Nelis.NavTree.getIDByDepth(n.sender,n.node,0));window.location.href=u;break;case"Item Detail":t={target:$(n.sender.element.data("target"))};switch(Nelis.getContext()){case"Bill":case"Budget":case"Committee":t.url=n.sender.element.data("urldetail");t.data={strItemType:n.sender.element.data("itemtype"),itemKey:Nelis.NavTree.getIDByDepth(n.sender,n.node,0)};t.selectedTabName=Nelis.TabStrip.getSelectedTabName();$.ajax({url:t.url,data:t.data,success:function(n){t.target.css("visibility","hidden");t.target.html(n);Nelis.TabStrip.initialize();Nelis.Routing.TabStrip.selectTabAndBindEvents(t.selectedTabName,!1);t.target.css("visibility","")}});break;case"FloorSession":i={url:new Url,data:{treeViewSelectedNodePath:Nelis.NavTree.getNodePath(n.sender,n.node)},title:document.title};i.url.hash="";i.url.query.p=Nelis.NavTree.getNodePath(n.sender,n.node).split(",");t.url=n.sender.element.data("urlselection");t.data={selectedDataItemId:n.sender.dataItem(n.node).id,houseID:r.houseID,legislativeDayKey:r.legislativeDayKey};$.ajax({url:t.url,data:t.data,success:function(r){t.target.html(r);n.replaceState?Nelis.Routing.replaceState(i):Nelis.Routing.pushState(i)}});break;case"Meeting":i={url:new Url,data:{treeViewSelectedNodePath:Nelis.NavTree.getNodePath(n.sender,n.node)},title:document.title};i.url.hash="";i.url.query.p=Nelis.NavTree.getNodePath(n.sender,n.node).split(",");t.url=n.sender.element.data("urlselection");t.data={selectedDataItemId:n.sender.dataItem(n.node).id};$.ajax({url:t.url,data:t.data,success:function(r){t.target.html(r);n.replaceState?Nelis.Routing.replaceState(i):Nelis.Routing.pushState(i)}})}}},reload:function(){Nelis.Routing.TreeView.onSelected({sender:Nelis.NavTree.getObject(),node:Nelis.NavTree.getSelectedNode()})}},TabStrip:{initialize:function(){var n=$.Deferred();Nelis.TabStrip.onceLoaded(function(){n.resolve()});return n.promise()},onSelected:function(n){var t={data:{selectedTab:$(n.item).data("tabname")},target:$(n.contentElement).find(".content"),breadcrumb:""},i={data:{tabID:n.item.id},title:null};switch(Nelis.getPageType()){case"Item Detail":t.url=Nelis.TabStrip.getElement().data("urlprocess");i.data.treeViewSelectedNodePath=Nelis.NavTree.getNodePath(Nelis.NavTree.getObject(),Nelis.NavTree.getSelectedNode());var u=Nelis.NavTree.getSelectedNodeData(),r=u.id,f=u.text;switch(Nelis.getContext()){case"Bill":t.data.billKey=r;t.data.selectedTab==="Text"&&window.docKey!==null&&(t.data.docKey=window.docKey,window.docKey=null);i.url=new Url(String(window.location.href).replace(/^(.*?\/Bill).*$/ig,"$1/"+r+"/"+t.data.selectedTab));break;case"Budget":t.data.budgetKey=r;i.url=new Url(String(window.location.href).replace(/^(.*?\/Budget).*$/ig,"$1/"+r+"/"+t.data.selectedTab));break;case"Committee":t.data.committeeOrSubCommitteeKey=r;i.url=new Url(String(window.location.href).replace(/^(.*?\/Committee).*$/ig,"$1/"+r+"/"+t.data.selectedTab))}i.title=f+" "+t.data.selectedTab;t.breadcrumb=(Nelis.getContext()==="Budget"?"Budget ":"")+Nelis.NavTree.getSelectedNodeText().replace(/\s\-.*/g,"")+" "+$(n.item).data("tabtitle");$.ajax({url:t.url,data:t.data,success:function(r){t.target.html(r);Nelis.setBreadcrumb(t.breadcrumb);Nelis.NavTree.scrollToSelection();n.replaceState?Nelis.Routing.replaceState(i):Nelis.Routing.pushState(i)}});break;case"Item Home":t.url=$(n.item).data("url");t.breadcrumb=$(n.item).data("tabtitle");i.title=$(n.item).data("tabtitle");i.url=new Url(String(window.location.href).replace(/^(.*\/(Bdrs|Bills|Budgets|Committees))(.*)$/ig,"$1/"+$(n.item).data("tabname")));$.ajax({url:t.url,data:t.data,success:function(r){t.target.html(r);Nelis.setBreadcrumb(t.breadcrumb);n.replaceState?Nelis.Routing.replaceState(i):Nelis.Routing.pushState(i)}})}},selectTabAndBindEvents:function(n,t){Nelis.TabStrip.getObject().bind("select",Nelis.Routing.TabStrip.onSelected);var i=Nelis.TabStrip.getTabByName(n)||Nelis.TabStrip.getTabByIndex(0);Nelis.TabStrip.getObject().activateTab(i);Nelis.Routing.TabStrip.onSelected({contentElement:Nelis.TabStrip.getObject().contentElement(Nelis.TabStrip.getObject().select().index()),item:Nelis.TabStrip.getObject().select()[0],sender:Nelis.TabStrip.getObject(),replaceState:t})},reload:function(){var n=Nelis.TabStrip.getObject();Nelis.Routing.TabStrip.onSelected({contentElement:n.contentElement(n.select().index()),item:n.select()[0],sender:n})}},pushState:function(n){var t=new Url,i=new Url(n.url.toString());t.path!==i.path||t.query.toString()!==i.query.toString()?History.pushState(n.data,n.title,n.url.toString()):History.replaceState(n.data,n.title,n.url.toString())},replaceState:function(n){History.replaceState(n.data,n.title,n.url.toString())},onLocationChanged:function(){var t=History.getState(),i,r,n;if(Nelis.Routing.hasTreeView()&&t.data.treeViewSelectedNodePath&&t.data.treeViewSelectedNodePath!==Nelis.NavTree.getNodePath(Nelis.NavTree.getObject(),Nelis.NavTree.getSelectedNode())){i=t.data.treeViewSelectedNodePath.split(",");r=i[i.length-1];Nelis.NavTree.getElement().find("li[role='treeitem']").each(function(){return String(Nelis.NavTree.getObject().dataItem($(this)).id)===r?(Nelis.NavTree.getObject().select($(this)),Nelis.NavTree.getObject().trigger("select",{sender:Nelis.NavTree.getObject(),node:$(this),replaceState:!0}),!1):!0});return}Nelis.Routing.hasTabStrip()&&(n=$("#"+t.data.tabID),n[0]!==Nelis.TabStrip.getObject().select()[0]&&(Nelis.TabStrip.contentAlreadyLoaded(n)?Nelis.TabStrip.getObject().activateTab(n):Nelis.TabStrip.getObject().select(n)))}};Nelis.GlobalHelpers={init:function(n,t){n.outerHeight()===t.outerHeight()&&(n.hide(),t.show())},toggleShowHide:function(n){$(n).find(".hide-icon").is(":visible")?($(n).css("display","block"),$(n).find(".show-func").css("display","inline"),$(n).find(".show-icon").show(),$(n).nextAll(".hide-func").hide(),$(n).find(".hide-icon").hide()):($(n).css("display","inline"),$(n).find(".show-func").hide(),$(n).find(".show-icon").hide(),$(n).nextAll(".hide-func").css("display","inline"),$(n).find(".hide-icon").show())}};!function(n,t,i,r){"use strict";function hi(n,t,i){return setTimeout(ci(n,i),t)}function rt(n,t,i){return Array.isArray(n)?(v(n,i[t],i),!0):!1}function v(n,t,i){var u;if(n)if(n.forEach)n.forEach(t,i);else if(n.length!==r)for(u=0;u<n.length;)t.call(i,n[u],u,n),u++;else for(u in n)n.hasOwnProperty(u)&&t.call(i,n[u],u,n)}function fr(t,i,r){var u="DEPRECATED METHOD: "+i+"\n"+r+" AT \n";return function(){var i=new Error("get-stack-trace"),f=i&&i.stack?i.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",r=n.console&&(n.console.warn||n.console.log);return r&&r.call(n.console,u,f),t.apply(this,arguments)}}function o(n,t,i){var r,u=t.prototype;r=n.prototype=Object.create(u);r.constructor=n;r._super=u;i&&w(r,i)}function ci(n,t){return function(){return n.apply(t,arguments)}}function li(n,t){return typeof n==cf?n.apply(t?t[0]||r:r,t):n}function er(n,t){return n===r?t:n}function pt(n,t,i){v(bt(t),function(t){n.addEventListener(t,i,!1)})}function wt(n,t,i){v(bt(t),function(t){n.removeEventListener(t,i,!1)})}function or(n,t){for(;n;){if(n==t)return!0;n=n.parentNode}return!1}function d(n,t){return n.indexOf(t)>-1}function bt(n){return n.trim().split(/\s+/g)}function ut(n,t,i){if(n.indexOf&&!i)return n.indexOf(t);for(var r=0;r<n.length;){if(i&&n[r][i]==t||!i&&n[r]===t)return r;r++}return-1}function kt(n){return Array.prototype.slice.call(n,0)}function sr(n,t,i){for(var f,u=[],e=[],r=0;r<n.length;)f=t?n[r][t]:n[r],ut(e,f)<0&&u.push(n[r]),e[r]=f,r++;return i&&(u=t?u.sort(function(n,i){return n[t]>i[t]}):u.sort()),u}function dt(n,t){for(var i,u,e=t[0].toUpperCase()+t.slice(1),f=0;f<dr.length;){if(i=dr[f],u=i?i+e:t,u in n)return u;f++}return r}function yu(){return af++}function hr(t){var i=t.ownerDocument||t;return i.defaultView||i.parentWindow||n}function s(n,t){var i=this;this.manager=n;this.callback=t;this.element=n.element;this.target=n.options.inputTarget;this.domHandler=function(t){li(n.options.enable,[n])&&i.handler(t)};this.init()}function pu(n){var i,t=n.options.inputClass;return new(i=t?t:vf?vi:yf?ti:nu?yi:ni)(n,wu)}function wu(n,t,i){var r=i.pointers.length,o=i.changedPointers.length,s=t&f&&r-o==0,h=t&(u|e)&&r-o==0;i.isFirst=!!s;i.isFinal=!!h;s&&(n.session={});i.eventType=t;bu(n,i);n.emit("hammer.input",i);n.recognize(i);n.session.prevInput=i}function bu(n,t){var i=n.session,f=t.pointers,o=f.length,r,e;i.firstInput||(i.firstInput=cr(t));o>1&&!i.firstMultiple?i.firstMultiple=cr(t):1===o&&(i.firstMultiple=!1);var s=i.firstInput,u=i.firstMultiple,h=u?u.center:s.center,c=t.center=lr(f);t.timeStamp=nr();t.deltaTime=t.timeStamp-s.timeStamp;t.angle=ai(h,c);t.distance=gt(h,c);ku(i,t);t.offsetDirection=vr(t.deltaX,t.deltaY);r=ar(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=r.x;t.overallVelocityY=r.y;t.overallVelocity=g(r.x)>g(r.y)?r.x:r.y;t.scale=u?nf(u.pointers,f):1;t.rotation=u?gu(u.pointers,f):0;t.maxPointers=i.prevInput?t.pointers.length>i.prevInput.maxPointers?t.pointers.length:i.prevInput.maxPointers:t.pointers.length;du(i,t);e=n.element;or(t.srcEvent.target,e)&&(e=t.srcEvent.target);t.target=e}function ku(n,t){var i=t.center,r=n.offsetDelta||{},e=n.prevDelta||{},o=n.prevInput||{};t.eventType!==f&&o.eventType!==u||(e=n.prevDelta={x:o.deltaX||0,y:o.deltaY||0},r=n.offsetDelta={x:i.x,y:i.y});t.deltaX=e.x+(i.x-r.x);t.deltaY=e.y+(i.y-r.y)}function du(n,t){var f,o,s,h,i=n.lastInterval||t,c=t.timeStamp-i.timeStamp;if(t.eventType!=e&&(c>pf||i.velocity===r)){var l=t.deltaX-i.deltaX,a=t.deltaY-i.deltaY,u=ar(c,l,a);o=u.x;s=u.y;f=g(u.x)>g(u.y)?u.x:u.y;h=vr(l,a);n.lastInterval=t}else f=i.velocity,o=i.velocityX,s=i.velocityY,h=i.direction;t.velocity=f;t.velocityX=o;t.velocityY=s;t.direction=h}function cr(n){for(var i=[],t=0;t<n.pointers.length;)i[t]={clientX:ft(n.pointers[t].clientX),clientY:ft(n.pointers[t].clientY)},t++;return{timeStamp:nr(),pointers:i,center:lr(i),deltaX:n.deltaX,deltaY:n.deltaY}}function lr(n){var t=n.length;if(1===t)return{x:ft(n[0].clientX),y:ft(n[0].clientY)};for(var r=0,u=0,i=0;t>i;)r+=n[i].clientX,u+=n[i].clientY,i++;return{x:ft(r/t),y:ft(u/t)}}function ar(n,t,i){return{x:t/n||0,y:i/n||0}}function vr(n,t){return n===t?fi:g(n)>=g(t)?0>n?st:ht:0>t?ct:lt}function gt(n,t,i){i||(i=iu);var r=t[i[0]]-n[i[0]],u=t[i[1]]-n[i[1]];return Math.sqrt(r*r+u*u)}function ai(n,t,i){i||(i=iu);var r=t[i[0]]-n[i[0]],u=t[i[1]]-n[i[1]];return 180*Math.atan2(u,r)/Math.PI}function gu(n,t){return ai(t[1],t[0],ei)+ai(n[1],n[0],ei)}function nf(n,t){return gt(t[0],t[1],ei)/gt(n[0],n[1],ei)}function ni(){this.evEl=bf;this.evWin=kf;this.pressed=!1;s.apply(this,arguments)}function vi(){this.evEl=ru;this.evWin=uu;s.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}function yr(){this.evTarget=te;this.evWin=ie;this.started=!1;s.apply(this,arguments)}function tf(n,t){var i=kt(n.touches),r=kt(n.changedTouches);return t&(u|e)&&(i=sr(i.concat(r),"identifier",!0)),[i,r]}function ti(){this.evTarget=eu;this.targetIds={};s.apply(this,arguments)}function rf(n,t){var r=kt(n.touches),o=this.targetIds;if(t&(f|nt)&&1===r.length)return o[r[0].identifier]=!0,[r,r];var i,s,h=kt(n.changedTouches),c=[],l=this.target;if(s=r.filter(function(n){return or(n.target,l)}),t===f)for(i=0;i<s.length;)o[s[i].identifier]=!0,i++;for(i=0;i<h.length;)o[h[i].identifier]&&c.push(h[i]),t&(u|e)&&delete o[h[i].identifier],i++;if(c.length)return[sr(s.concat(c),"identifier",!0),c]}function yi(){s.apply(this,arguments);var n=ci(this.handler,this);this.touch=new ti(this.manager,n);this.mouse=new ni(this.manager,n);this.primaryTouch=null;this.lastTouches=[]}function uf(n,t){n&f?(this.primaryTouch=t.changedPointers[0].identifier,pr.call(this,t)):n&(u|e)&&pr.call(this,t)}function pr(n){var t=n.changedPointers[0],i,r,u;t.identifier===this.primaryTouch&&(i={x:t.clientX,y:t.clientY},this.lastTouches.push(i),r=this.lastTouches,u=function(){var n=r.indexOf(i);n>-1&&r.splice(n,1)},setTimeout(u,ou))}function ff(n){for(var r=n.srcEvent.clientX,u=n.srcEvent.clientY,t=0;t<this.lastTouches.length;t++){var i=this.lastTouches[t],f=Math.abs(r-i.x),e=Math.abs(u-i.y);if(ir>=f&&ir>=e)return!0}return!1}function pi(n,t){this.manager=n;this.set(t)}function ef(n){if(d(n,it))return it;var t=d(n,at),i=d(n,vt);return t&&i?it:t||i?t?at:vt:d(n,rr)?rr:lu}function of(){if(!hu)return!1;var t={},i=n.CSS&&n.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(r){t[r]=i?n.CSS.supports("touch-action",r):!0}),t}function y(n){this.options=w({},this.defaults,n||{});this.id=yu();this.manager=null;this.options.enable=er(this.options.enable,!0);this.state=si;this.simultaneous={};this.requireFail=[]}function wr(n){return n&yt?"cancel":n&k?"end":n&et?"move":n&h?"start":""}function br(n){return n==lt?"down":n==ct?"up":n==st?"left":n==ht?"right":""}function ii(n,t){var i=t.manager;return i?i.get(n):n}function c(){y.apply(this,arguments)}function ri(){c.apply(this,arguments);this.pX=null;this.pY=null}function wi(){c.apply(this,arguments)}function bi(){y.apply(this,arguments);this._timer=null;this._input=null}function ki(){c.apply(this,arguments)}function di(){c.apply(this,arguments)}function ui(){y.apply(this,arguments);this.pTime=!1;this.pCenter=!1;this._timer=null;this._input=null;this.count=0}function p(n,t){return t=t||{},t.recognizers=er(t.recognizers,p.defaults.preset),new gi(n,t)}function gi(n,t){this.options=w({},p.defaults,t||{});this.options.inputTarget=this.options.inputTarget||n;this.handlers={};this.session={};this.recognizers=[];this.oldCssProps={};this.element=n;this.input=pu(this);this.touchAction=new pi(this,this.options.touchAction);kr(this,!0);v(this.options.recognizers,function(n){var t=this.add(new n[0](n[1]));n[2]&&t.recognizeWith(n[2]);n[3]&&t.requireFailure(n[3])},this)}function kr(n,t){var r=n.element,i;r.style&&(v(n.options.cssProps,function(u,f){i=dt(r.style,f);t?(n.oldCssProps[i]=r.style[i],r.style[i]=u):r.style[i]=n.oldCssProps[i]||""}),t||(n.oldCssProps={}))}function sf(n,i){var r=t.createEvent("Event");r.initEvent(n,!0,!0);r.gesture=i;i.target.dispatchEvent(r)}var w,dr=["","webkit","Moz","MS","ms","o"],hf=t.createElement("div"),cf="function",ft=Math.round,g=Math.abs,nr=Date.now,fu,eu,ou,ir,au,ur,vu;w="function"!=typeof Object.assign?function(n){var f,i,t,u;if(n===r||null===n)throw new TypeError("Cannot convert undefined or null to object");for(f=Object(n),i=1;i<arguments.length;i++)if(t=arguments[i],t!==r&&null!==t)for(u in t)t.hasOwnProperty(u)&&(f[u]=t[u]);return f}:Object.assign;var gr=fr(function(n,t,i){for(var f=Object.keys(t),u=0;u<f.length;)(!i||i&&n[f[u]]===r)&&(n[f[u]]=t[f[u]]),u++;return n},"extend","Use `assign`."),lf=fr(function(n,t){return gr(n,t,!0)},"merge","Use `assign`."),af=1,nu="ontouchstart"in n,vf=dt(n,"PointerEvent")!==r,yf=nu&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),ot="touch",tr="mouse",pf=25,f=1,nt=2,u=4,e=8,fi=1,st=2,ht=4,ct=8,lt=16,l=st|ht,tt=ct|lt,tu=l|tt,iu=["x","y"],ei=["clientX","clientY"];s.prototype={handler:function(){},init:function(){this.evEl&&pt(this.element,this.evEl,this.domHandler);this.evTarget&&pt(this.target,this.evTarget,this.domHandler);this.evWin&&pt(hr(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&wt(this.element,this.evEl,this.domHandler);this.evTarget&&wt(this.target,this.evTarget,this.domHandler);this.evWin&&wt(hr(this.element),this.evWin,this.domHandler)}};var wf={mousedown:f,mousemove:nt,mouseup:u},bf="mousedown",kf="mousemove mouseup";o(ni,s,{handler:function(n){var t=wf[n.type];t&f&&0===n.button&&(this.pressed=!0);t&nt&&1!==n.which&&(t=u);this.pressed&&(t&u&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[n],changedPointers:[n],pointerType:tr,srcEvent:n}))}});var df={pointerdown:f,pointermove:nt,pointerup:u,pointercancel:e,pointerout:e},gf={2:ot,3:"pen",4:tr,5:"kinect"},ru="pointerdown",uu="pointermove pointerup pointercancel";n.MSPointerEvent&&!n.PointerEvent&&(ru="MSPointerDown",uu="MSPointerMove MSPointerUp MSPointerCancel");o(vi,s,{handler:function(n){var t=this.store,o=!1,h=n.type.toLowerCase().replace("ms",""),r=df[h],s=gf[n.pointerType]||n.pointerType,c=s==ot,i=ut(t,n.pointerId,"pointerId");r&f&&(0===n.button||c)?0>i&&(t.push(n),i=t.length-1):r&(u|e)&&(o=!0);0>i||(t[i]=n,this.callback(this.manager,r,{pointers:t,changedPointers:[n],pointerType:s,srcEvent:n}),o&&t.splice(i,1))}});var ne={touchstart:f,touchmove:nt,touchend:u,touchcancel:e},te="touchstart",ie="touchstart touchmove touchend touchcancel";o(yr,s,{handler:function(n){var i=ne[n.type],t;(i===f&&(this.started=!0),this.started)&&(t=tf.call(this,n,i),i&(u|e)&&t[0].length-t[1].length==0&&(this.started=!1),this.callback(this.manager,i,{pointers:t[0],changedPointers:t[1],pointerType:ot,srcEvent:n}))}});fu={touchstart:f,touchmove:nt,touchend:u,touchcancel:e};eu="touchstart touchmove touchend touchcancel";o(ti,s,{handler:function(n){var i=fu[n.type],t=rf.call(this,n,i);t&&this.callback(this.manager,i,{pointers:t[0],changedPointers:t[1],pointerType:ot,srcEvent:n})}});ou=2500;ir=25;o(yi,s,{handler:function(n,t,i){var u=i.pointerType==ot,r=i.pointerType==tr;if(!(r&&i.sourceCapabilities&&i.sourceCapabilities.firesTouchEvents)){if(u)uf.call(this,t,i);else if(r&&ff.call(this,i))return;this.callback(n,t,i)}},destroy:function(){this.touch.destroy();this.mouse.destroy()}});var su=dt(hf.style,"touchAction"),hu=su!==r,cu="compute",lu="auto",rr="manipulation",it="none",at="pan-x",vt="pan-y",oi=of();pi.prototype={set:function(n){n==cu&&(n=this.compute());hu&&this.manager.element.style&&oi[n]&&(this.manager.element.style[su]=n);this.actions=n.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var n=[];return v(this.manager.recognizers,function(t){li(t.options.enable,[t])&&(n=n.concat(t.getTouchAction()))}),ef(n.join(" "))},preventDefaults:function(n){var i=n.srcEvent,r=n.offsetDirection;if(this.manager.session.prevented)return void i.preventDefault();var t=this.actions,u=d(t,it)&&!oi[it],f=d(t,vt)&&!oi[vt],e=d(t,at)&&!oi[at];if(u){var o=1===n.pointers.length,s=n.distance<2,h=n.deltaTime<250;if(o&&s&&h)return}if(!e||!f)return u||f&&r&l||e&&r&tt?this.preventSrc(i):void 0},preventSrc:function(n){this.manager.session.prevented=!0;n.preventDefault()}};var si=1,h=2,et=4,k=8,b=k,yt=16,a=32;y.prototype={defaults:{},set:function(n){return w(this.options,n),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(n){if(rt(n,"recognizeWith",this))return this;var t=this.simultaneous;return n=ii(n,this),t[n.id]||(t[n.id]=n,n.recognizeWith(this)),this},dropRecognizeWith:function(n){return rt(n,"dropRecognizeWith",this)?this:(n=ii(n,this),delete this.simultaneous[n.id],this)},requireFailure:function(n){if(rt(n,"requireFailure",this))return this;var t=this.requireFail;return n=ii(n,this),-1===ut(t,n)&&(t.push(n),n.requireFailure(this)),this},dropRequireFailure:function(n){if(rt(n,"dropRequireFailure",this))return this;n=ii(n,this);var t=ut(this.requireFail,n);return t>-1&&this.requireFail.splice(t,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(n){return!!this.simultaneous[n.id]},emit:function(n){function t(t){i.manager.emit(t,n)}var i=this,r=this.state;k>r&&t(i.options.event+wr(r));t(i.options.event);n.additionalEvent&&t(n.additionalEvent);r>=k&&t(i.options.event+wr(r))},tryEmit:function(n){return this.canEmit()?this.emit(n):void(this.state=a)},canEmit:function(){for(var n=0;n<this.requireFail.length;){if(!(this.requireFail[n].state&(a|si)))return!1;n++}return!0},recognize:function(n){var t=w({},n);return li(this.options.enable,[this,t])?(this.state&(b|yt|a)&&(this.state=si),this.state=this.process(t),void(this.state&(h|et|k|yt)&&this.tryEmit(t))):(this.reset(),void(this.state=a))},process:function(){},getTouchAction:function(){},reset:function(){}};o(c,y,{defaults:{pointers:1},attrTest:function(n){var t=this.options.pointers;return 0===t||n.pointers.length===t},process:function(n){var t=this.state,i=n.eventType,r=t&(h|et),f=this.attrTest(n);return r&&(i&e||!f)?t|yt:r||f?i&u?t|k:t&h?t|et:h:a}});o(ri,c,{defaults:{event:"pan",threshold:10,pointers:1,direction:tu},getTouchAction:function(){var t=this.options.direction,n=[];return t&l&&n.push(vt),t&tt&&n.push(at),n},directionTest:function(n){var i=this.options,r=!0,u=n.distance,t=n.direction,f=n.deltaX,e=n.deltaY;return t&i.direction||(i.direction&l?(t=0===f?fi:0>f?st:ht,r=f!=this.pX,u=Math.abs(n.deltaX)):(t=0===e?fi:0>e?ct:lt,r=e!=this.pY,u=Math.abs(n.deltaY))),n.direction=t,r&&u>i.threshold&&t&i.direction},attrTest:function(n){return c.prototype.attrTest.call(this,n)&&(this.state&h||!(this.state&h)&&this.directionTest(n))},emit:function(n){this.pX=n.deltaX;this.pY=n.deltaY;var t=br(n.direction);t&&(n.additionalEvent=this.options.event+t);this._super.emit.call(this,n)}});o(wi,c,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[it]},attrTest:function(n){return this._super.attrTest.call(this,n)&&(Math.abs(n.scale-1)>this.options.threshold||this.state&h)},emit:function(n){if(1!==n.scale){var t=n.scale<1?"in":"out";n.additionalEvent=this.options.event+t}this._super.emit.call(this,n)}});o(bi,y,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[lu]},process:function(n){var t=this.options,i=n.pointers.length===t.pointers,r=n.distance<t.threshold,o=n.deltaTime>t.time;if(this._input=n,!r||!i||n.eventType&(u|e)&&!o)this.reset();else if(n.eventType&f)this.reset(),this._timer=hi(function(){this.state=b;this.tryEmit()},t.time,this);else if(n.eventType&u)return b;return a},reset:function(){clearTimeout(this._timer)},emit:function(n){this.state===b&&(n&&n.eventType&u?this.manager.emit(this.options.event+"up",n):(this._input.timeStamp=nr(),this.manager.emit(this.options.event,this._input)))}});o(ki,c,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[it]},attrTest:function(n){return this._super.attrTest.call(this,n)&&(Math.abs(n.rotation)>this.options.threshold||this.state&h)}});o(di,c,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:l|tt,pointers:1},getTouchAction:function(){return ri.prototype.getTouchAction.call(this)},attrTest:function(n){var t,i=this.options.direction;return i&(l|tt)?t=n.overallVelocity:i&l?t=n.overallVelocityX:i&tt&&(t=n.overallVelocityY),this._super.attrTest.call(this,n)&&i&n.offsetDirection&&n.distance>this.options.threshold&&n.maxPointers==this.options.pointers&&g(t)>this.options.velocity&&n.eventType&u},emit:function(n){var t=br(n.offsetDirection);t&&this.manager.emit(this.options.event+t,n);this.manager.emit(this.options.event,n)}});o(ui,y,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[rr]},process:function(n){var t=this.options,o=n.pointers.length===t.pointers,s=n.distance<t.threshold,c=n.deltaTime<t.time,i,r,e;if(this.reset(),n.eventType&f&&0===this.count)return this.failTimeout();if(s&&c&&o){if(n.eventType!=u)return this.failTimeout();if(i=this.pTime?n.timeStamp-this.pTime<t.interval:!0,r=!this.pCenter||gt(this.pCenter,n.center)<t.posThreshold,this.pTime=n.timeStamp,this.pCenter=n.center,r&&i?this.count+=1:this.count=1,this._input=n,e=this.count%t.taps,0===e)return this.hasRequireFailures()?(this._timer=hi(function(){this.state=b;this.tryEmit()},t.interval,this),h):b}return a},failTimeout:function(){return this._timer=hi(function(){this.state=a},this.options.interval,this),a},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==b&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}});p.VERSION="2.0.7";p.defaults={domEvents:!1,touchAction:cu,enable:!0,inputTarget:null,inputClass:null,preset:[[ki,{enable:!1}],[wi,{enable:!1},["rotate"]],[di,{direction:l}],[ri,{direction:l},["swipe"]],[ui],[ui,{event:"doubletap",taps:2},["tap"]],[bi]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};au=1;ur=2;gi.prototype={set:function(n){return w(this.options,n),n.touchAction&&this.touchAction.update(),n.inputTarget&&(this.input.destroy(),this.input.target=n.inputTarget,this.input.init()),this},stop:function(n){this.session.stopped=n?ur:au},recognize:function(n){var r=this.session,i,f,t,u;if(!r.stopped)for(this.touchAction.preventDefaults(n),f=this.recognizers,t=r.curRecognizer,(!t||t&&t.state&b)&&(t=r.curRecognizer=null),u=0;u<f.length;)i=f[u],r.stopped===ur||t&&i!=t&&!i.canRecognizeWith(t)?i.reset():i.recognize(n),!t&&i.state&(h|et|k)&&(t=r.curRecognizer=i),u++},get:function(n){if(n instanceof y)return n;for(var i=this.recognizers,t=0;t<i.length;t++)if(i[t].options.event==n)return i[t];return null},add:function(n){if(rt(n,"add",this))return this;var t=this.get(n.options.event);return t&&this.remove(t),this.recognizers.push(n),n.manager=this,this.touchAction.update(),n},remove:function(n){if(rt(n,"remove",this))return this;if(n=this.get(n)){var t=this.recognizers,i=ut(t,n);-1!==i&&(t.splice(i,1),this.touchAction.update())}return this},on:function(n,t){if(n!==r&&t!==r){var i=this.handlers;return v(bt(n),function(n){i[n]=i[n]||[];i[n].push(t)}),this}},off:function(n,t){if(n!==r){var i=this.handlers;return v(bt(n),function(n){t?i[n]&&i[n].splice(ut(i[n],t),1):delete i[n]}),this}},emit:function(n,t){var i,r;if(this.options.domEvents&&sf(n,t),i=this.handlers[n]&&this.handlers[n].slice(),i&&i.length)for(t.type=n,t.preventDefault=function(){t.srcEvent.preventDefault()},r=0;r<i.length;)i[r](t),r++},destroy:function(){this.element&&kr(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};w(p,{INPUT_START:f,INPUT_MOVE:nt,INPUT_END:u,INPUT_CANCEL:e,STATE_POSSIBLE:si,STATE_BEGAN:h,STATE_CHANGED:et,STATE_ENDED:k,STATE_RECOGNIZED:b,STATE_CANCELLED:yt,STATE_FAILED:a,DIRECTION_NONE:fi,DIRECTION_LEFT:st,DIRECTION_RIGHT:ht,DIRECTION_UP:ct,DIRECTION_DOWN:lt,DIRECTION_HORIZONTAL:l,DIRECTION_VERTICAL:tt,DIRECTION_ALL:tu,Manager:gi,Input:s,TouchAction:pi,TouchInput:ti,MouseInput:ni,PointerEventInput:vi,TouchMouseInput:yi,SingleTouchInput:yr,Recognizer:y,AttrRecognizer:c,Tap:ui,Pan:ri,Swipe:di,Pinch:wi,Rotate:ki,Press:bi,on:pt,off:wt,each:v,merge:lf,extend:gr,assign:w,inherit:o,bindFn:ci,prefixed:dt});vu="undefined"!=typeof n?n:"undefined"!=typeof self?self:{};vu.Hammer=p;"function"==typeof define&&define.amd?define(function(){return p}):"undefined"!=typeof module&&module.exports?module.exports=p:n[i]=p}(window,document,"Hammer"),function(n){typeof define=="function"&&define.amd?define(["jquery","hammerjs"],n):typeof exports=="object"?n(require("jquery"),require("hammerjs")):n(jQuery,Hammer)}(function(n,t){function i(i,r){var u=n(i);u.data("hammer")||u.data("hammer",new t(u[0],r))}n.fn.hammer=function(n){return this.each(function(){i(this,n)})};t.Manager.prototype.emit=function(t){return function(i,r){t.call(this,i,r);n(this.element).trigger({type:i,gesture:r})}}(t.Manager.prototype.emit)});var mqMedium=768,$mainMenu=$("#mainMenu"),$nelisMenu=$("#nelisMenu"),$nelisMenuContents=$("#nelisMain");$(function(){function r(){var t=n.width();t<mqMedium?($mainMenu.addClass("fixed-top"),$nelisMenu.removeClass("sticky-top"),$nelisMenuContents.addClass("nav-overlay"),$(".fa-user-circle").addClass("d-none"),$(".mobile-buttons").addClass("btn-group-vertical").removeClass("btn-group"),$(".meeting-toolbar").removeClass("btn-toolbar"),$(".meeting-treeview-collapser").removeClass("d-none"),$("#meeting-treeview").removeClass("show"),$("#go-to-item").removeClass("show"),$("#submitRegistration").addClass("btn-lg btn-block"),$(".announcement").length&&$("#main-content").css({"margin-top":"147px"})):($mainMenu.removeClass("fixed-top"),$nelisMenu.addClass("sticky-top"),$nelisMenuContents.removeClass("nav-overlay"),$(".fa-user-circle").removeClass("d-none"),$(".mobile-buttons").addClass("btn-group").removeClass("btn-group-vertical"),$(".meeting-toolbar").addClass("btn-toolbar"),$(".meeting-treeview-collapser").addClass("d-none"),$("#meeting-treeview").addClass("show"),$("#go-to-item").addClass("show"),$("#submitRegistration").removeClass("btn-lg btn-block"))}var n=$(window),t,u,i,f;r();$(window).resize(r);$(window).scroll(function(){n.width()>=mqMedium&&($(window).scrollTop()>=100?$nelisMenu.addClass("shrink"):$nelisMenu.removeClass("shrink"))});$("#toggleNvLeg").on("click",function(){$(".nav-overlay").hasClass("show")&&($(".nav-overlay").removeClass("show"),$(".tap-target").removeClass("active"))});$("#toggleNelisMain").on("click",function(){$(".tap-target").toggleClass("active")});$("#nelisMain > .navbar-nav > .nav-item.dropdown > .dropdown-toggle").on("click",function(){n.width()>=mqMedium&&$("#main-content").toggleClass("main-overlay")});if(typeof Hammer!="undefined"){if(t=document.querySelector(".drag-target"),$(t).length>0){u=new Hammer(t);u.on("swiperight",function(){$(".nav-overlay").hasClass("show")||($(".nav-overlay").addClass("show"),$(".tap-target").addClass("active"))})}if(i=document.querySelector(".tap-target"),$(i).length>0){f=new Hammer(i);f.on("tap",function(){$(".nav-overlay").hasClass("show")&&($(".nav-overlay").removeClass("show"),$(".tap-target").removeClass("active"))})}setTimeout(function(){var n=document.getElementById("nelisMain"),t;if($(n).length>0){t=new Hammer(n);t.on("swipeleft",function(){$(".nav-overlay").hasClass("show")&&($(".nav-overlay").removeClass("show"),$(".tap-target").removeClass("active"))})}},300)}})