{"size": 980349, "ext": "js", "max_stars_repo_path": "node_modules/unity-editor-home/dist/assets/unity-editor-home.js", "max_stars_repo_name": "jeffogata/unity-setup", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "node_modules/unity-editor-home/dist/assets/unity-editor-home.js", "max_issues_repo_name": "jeffogata/unity-setup", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "node_modules/unity-editor-home/dist/assets/unity-editor-home.js", "max_forks_repo_name": "jeffogata/unity-setup", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 25798.6578947368, "max_line_length": 36022, "alphanum_fraction": 0.6720453634}
/**
 * unity-editor-home - v0.1.35 - 2016-09-30
 * 
 *
 * Copyright (c) 2016 Paolo Gavazzi - Unity
 * Licensed MIT <https://raw.github.com/UnityTech/unityeditor-launcher/master/LICENSE>
 */
function utButtonDirective(){function a(a){return angular.isDefined(a.href)||angular.isDefined(a.ngHref)||angular.isDefined(a.ngLink)||angular.isDefined(a.uiSref)}function b(a,b,c){}function c(b,c){return a(c)?'<a class="ut-button" ng-transclude></a>':'<button class="ut-button" ng-transclude></button>'}return{restrict:"EA",replace:!0,transclude:!0,template:c,link:b}}function utClickOnceDirective(a){function b(a){return _.isObject(a)&&_.isFunction(a.then)}function c(c,d,e){c.__clickOnce=function(a){var e=$(d).parent().find("[click-once-id='"+a+"']");if(!e.attr("click-locked")){var f=e.attr("click-once-expr"),g=c.$eval(f);return b(g)&&(e.attr("click-locked",!0),g.final(function(){e.removeAttr("click-locked")})),g}};var f=Math.floor(1e5*Math.random()),g=e.ngClickOnce,h="__clickOnce("+f+")";e.$set("clickOnceExpr",g),e.$set("clickOnceId",f),e.$set("ngTransclude"),e.$set("ngClickOnce"),e.$set("ngClick",h),a(d)(c)}return{restrict:"A",link:c}}function utCheckboxDirective(a){return{replace:!0,templateUrl:"../unityeditor-components/src/components/checkbox/checkbox.tpl.html",scope:{utCheckboxLabel:"@",utCheckboxModel:"="}}}function utProgressDirective(){return{templateUrl:"../unityeditor-components/src/components/progress/progress.tpl.html",scope:{utProgressLabel:"@"}}}function utSwitchDirective(a){return{templateUrl:"../unityeditor-components/src/components/switch/switch.tpl.html",scope:{value:"=ngModel",toggle:"=?"},link:function(b,c,d,e){function f(a,b){b(null,!a)}b.isDisabled=function(){return b.stealthDisabled||b.inProgress||$(c).attr("disabled")},b.toggle=b.toggle||f,b.toggleValue=function(){if(!b.isDisabled()){b.checked=!b.checked,b.stealthDisabled=!0;var c=300,d=a(function(){b.inProgress=!0},c);b.toggle(b.value,function(c,e){a(function(){b.value=e,b.checked=e,b.inProgress=!1,b.stealthDisabled=!1,a.cancel(d)})})}},b.$watch("value",function(a,c){b.checked=a})}}}function X2JS(a){"use strict";function b(){void 0===a.escapeMode&&(a.escapeMode=!0),a.attributePrefix=a.attributePrefix||"_",a.arrayAccessForm=a.arrayAccessForm||"none",a.emptyNodeForm=a.emptyNodeForm||"text",void 0===a.enableToStringFunc&&(a.enableToStringFunc=!0),a.arrayAccessFormPaths=a.arrayAccessFormPaths||[],void 0===a.skipEmptyTextNodesForObj&&(a.skipEmptyTextNodesForObj=!0),void 0===a.stripWhitespaces&&(a.stripWhitespaces=!0),a.datetimeAccessFormPaths=a.datetimeAccessFormPaths||[],void 0===a.useDoubleQuotes&&(a.useDoubleQuotes=!1)}function c(){function a(a){var b=String(a);return 1===b.length&&(b="0"+b),b}"function"!=typeof String.prototype.trim&&(String.prototype.trim=function(){return this.replace(/^\s+|^\n+|(\s|\n)+$/g,"")}),"function"!=typeof Date.prototype.toISOString&&(Date.prototype.toISOString=function(){return this.getUTCFullYear()+"-"+a(this.getUTCMonth()+1)+"-"+a(this.getUTCDate())+"T"+a(this.getUTCHours())+":"+a(this.getUTCMinutes())+":"+a(this.getUTCSeconds())+"."+String((this.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"})}function d(a){var b=a.localName;return null==b&&(b=a.baseName),null!=b&&""!=b||(b=a.nodeName),b}function e(a){return a.prefix}function f(a){return"string"==typeof a?a.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;"):a}function g(b,c,d){switch(a.arrayAccessForm){case"property":b[c]instanceof Array?b[c+"_asArray"]=b[c]:b[c+"_asArray"]=[b[c]]}if(!(b[c]instanceof Array)&&a.arrayAccessFormPaths.length>0){for(var e=0;e<a.arrayAccessFormPaths.length;e++){var f=a.arrayAccessFormPaths[e];if("string"==typeof f){if(f==d)break}else if(f instanceof RegExp){if(f.test(d))break}else if("function"==typeof f&&f(b,c,d))break}e!=a.arrayAccessFormPaths.length&&(b[c]=[b[c]])}}function h(a){var b=a.split(/[-T:+Z]/g),c=new Date(b[0],b[1]-1,b[2]),d=b[5].split(".");if(c.setHours(b[3],b[4],d[0]),d.length>1&&c.setMilliseconds(d[1]),b[6]&&b[7]){var e=60*b[6]+Number(b[7]),f=/\d\d-\d\d:\d\d$/.test(a)?"-":"+";e=0+("-"==f?-1*e:e),c.setMinutes(c.getMinutes()-e-c.getTimezoneOffset())}else a.indexOf("Z",a.length-1)!==-1&&(c=new Date(Date.UTC(c.getFullYear(),c.getMonth(),c.getDate(),c.getHours(),c.getMinutes(),c.getSeconds(),c.getMilliseconds())));return c}function i(b,c,d){if(a.datetimeAccessFormPaths.length>0){for(var e=d.split(".#")[0],f=0;f<a.datetimeAccessFormPaths.length;f++){var g=a.datetimeAccessFormPaths[f];if("string"==typeof g){if(g==e)break}else if(g instanceof RegExp){if(g.test(e))break}else if("function"==typeof g&&g(obj,c,e))break}return f!=a.datetimeAccessFormPaths.length?h(b):b}return b}function j(b,c){if(b.nodeType==v.DOCUMENT_NODE){for(var f=new Object,h=b.childNodes,k=0;k<h.length;k++){var l=h.item(k);if(l.nodeType==v.ELEMENT_NODE){var m=d(l);f[m]=j(l,m)}}return f}if(b.nodeType==v.ELEMENT_NODE){var f=new Object;f.__cnt=0;for(var h=b.childNodes,k=0;k<h.length;k++){var l=h.item(k),m=d(l);l.nodeType!=v.COMMENT_NODE&&(f.__cnt++,null==f[m]?(f[m]=j(l,c+"."+m),g(f,m,c+"."+m)):(null!=f[m]&&(f[m]instanceof Array||(f[m]=[f[m]],g(f,m,c+"."+m))),f[m][f[m].length]=j(l,c+"."+m)))}for(var n=0;n<b.attributes.length;n++){var o=b.attributes.item(n);f.__cnt++,f[a.attributePrefix+o.name]=o.value}var p=e(b);return null!=p&&""!=p&&(f.__cnt++,f.__prefix=p),null!=f["#text"]&&(f.__text=f["#text"],f.__text instanceof Array&&(f.__text=f.__text.join("\n")),a.stripWhitespaces&&(f.__text=f.__text.trim()),delete f["#text"],"property"==a.arrayAccessForm&&delete f["#text_asArray"],f.__text=i(f.__text,m,c+"."+m)),null!=f["#cdata-section"]&&(f.__cdata=f["#cdata-section"],delete f["#cdata-section"],"property"==a.arrayAccessForm&&delete f["#cdata-section_asArray"]),1==f.__cnt&&null!=f.__text?f=f.__text:0==f.__cnt&&"text"==a.emptyNodeForm?f="":f.__cnt>1&&null!=f.__text&&a.skipEmptyTextNodesForObj&&(a.stripWhitespaces&&""==f.__text||""==f.__text.trim())&&delete f.__text,delete f.__cnt,!a.enableToStringFunc||null==f.__text&&null==f.__cdata||(f.toString=function(){return(null!=this.__text?this.__text:"")+(null!=this.__cdata?this.__cdata:"")}),f}if(b.nodeType==v.TEXT_NODE||b.nodeType==v.CDATA_SECTION_NODE)return b.nodeValue}function k(b,c,d,e){var g="<"+(null!=b&&null!=b.__prefix?b.__prefix+":":"")+c;if(null!=d)for(var h=0;h<d.length;h++){var i=d[h],j=b[i];a.escapeMode&&(j=f(j)),g+=" "+i.substr(a.attributePrefix.length)+"=",g+=a.useDoubleQuotes?'"'+j+'"':"'"+j+"'"}return g+=e?"/>":">"}function l(a,b){return"</"+(null!=a.__prefix?a.__prefix+":":"")+b+">"}function m(a,b){return a.indexOf(b,a.length-b.length)!==-1}function n(b,c){return!!("property"==a.arrayAccessForm&&m(c.toString(),"_asArray")||0==c.toString().indexOf(a.attributePrefix)||0==c.toString().indexOf("__")||b[c]instanceof Function)}function o(a){var b=0;if(a instanceof Object)for(var c in a)n(a,c)||b++;return b}function p(b){var c=[];if(b instanceof Object)for(var d in b)d.toString().indexOf("__")==-1&&0==d.toString().indexOf(a.attributePrefix)&&c.push(d);return c}function q(b){var c="";return null!=b.__cdata&&(c+="<![CDATA["+b.__cdata+"]]>"),null!=b.__text&&(c+=a.escapeMode?f(b.__text):b.__text),c}function r(b){var c="";return b instanceof Object?c+=q(b):null!=b&&(c+=a.escapeMode?f(b):b),c}function s(a,b,c){var d="";if(0==a.length)d+=k(a,b,c,!0);else for(var e=0;e<a.length;e++)d+=k(a[e],b,p(a[e]),!1),d+=t(a[e]),d+=l(a[e],b);return d}function t(a){var b="",c=o(a);if(c>0)for(var d in a)if(!n(a,d)){var e=a[d],f=p(e);if(null==e||void 0==e)b+=k(e,d,f,!0);else if(e instanceof Object)if(e instanceof Array)b+=s(e,d,f);else if(e instanceof Date)b+=k(e,d,f,!1),b+=e.toISOString(),b+=l(e,d);else{var g=o(e);g>0||null!=e.__text||null!=e.__cdata?(b+=k(e,d,f,!1),b+=t(e),b+=l(e,d)):b+=k(e,d,f,!0)}else b+=k(e,d,f,!1),b+=r(e),b+=l(e,d)}return b+=r(a)}var u="1.1.7";a=a||{},b(),c();var v={ELEMENT_NODE:1,TEXT_NODE:3,CDATA_SECTION_NODE:4,COMMENT_NODE:8,DOCUMENT_NODE:9};this.parseXmlString=function(a){var b=window.ActiveXObject||"ActiveXObject"in window;if(void 0===a)return null;var c;if(window.DOMParser){var d=new window.DOMParser,e=null;if(!b)try{e=d.parseFromString("INVALID","text/xml").childNodes[0].namespaceURI}catch(f){e=null}try{c=d.parseFromString(a,"text/xml"),null!=e&&c.getElementsByTagNameNS(e,"parsererror").length>0&&(c=null)}catch(f){c=null}}else 0==a.indexOf("<?")&&(a=a.substr(a.indexOf("?>")+2)),c=new ActiveXObject("Microsoft.XMLDOM"),c.async="false",c.loadXML(a);return c},this.asArray=function(a){return void 0===a||null==a?[]:a instanceof Array?a:[a]},this.toXmlDateTime=function(a){return a instanceof Date?a.toISOString():"number"==typeof a?new Date(a).toISOString():null},this.asDateTime=function(a){return"string"==typeof a?h(a):a},this.xml2json=function(a){return j(a)},this.xml_str2json=function(a){var b=this.parseXmlString(a);return null!=b?this.xml2json(b):null},this.json2xml_str=function(a){return t(a)},this.json2xml=function(a){var b=this.json2xml_str(a);return this.parseXmlString(b)},this.getVersion=function(){return u}}if(function(a,b){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){"use strict";function c(a,b){b=b||ba;var c=b.createElement("script");c.text=a,b.head.appendChild(c).parentNode.removeChild(c)}function d(a){var b=!!a&&"length"in a&&a.length,c=oa.type(a);return"function"!==c&&!oa.isWindow(a)&&("array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a)}function e(a,b,c){return oa.isFunction(b)?oa.grep(a,function(a,d){return!!b.call(a,d,a)!==c}):b.nodeType?oa.grep(a,function(a){return a===b!==c}):"string"!=typeof b?oa.grep(a,function(a){return ga.call(b,a)>-1!==c}):ya.test(b)?oa.filter(b,a,c):(b=oa.filter(b,a),oa.grep(a,function(a){return ga.call(b,a)>-1!==c&&1===a.nodeType}))}function f(a,b){for(;(a=a[b])&&1!==a.nodeType;);return a}function g(a){var b={};return oa.each(a.match(Ea)||[],function(a,c){b[c]=!0}),b}function h(a){return a}function i(a){throw a}function j(a,b,c){var d;try{a&&oa.isFunction(d=a.promise)?d.call(a).done(b).fail(c):a&&oa.isFunction(d=a.then)?d.call(a,b,c):b.call(void 0,a)}catch(a){c.call(void 0,a)}}function k(){ba.removeEventListener("DOMContentLoaded",k),a.removeEventListener("load",k),oa.ready()}function l(){this.expando=oa.expando+l.uid++}function m(a){return"true"===a||"false"!==a&&("null"===a?null:a===+a+""?+a:La.test(a)?JSON.parse(a):a)}function n(a,b,c){var d;if(void 0===c&&1===a.nodeType)if(d="data-"+b.replace(Ma,"-$&").toLowerCase(),c=a.getAttribute(d),"string"==typeof c){try{c=m(c)}catch(e){}Ka.set(a,b,c)}else c=void 0;return c}function o(a,b,c,d){var e,f=1,g=20,h=d?function(){return d.cur()}:function(){return oa.css(a,b,"")},i=h(),j=c&&c[3]||(oa.cssNumber[b]?"":"px"),k=(oa.cssNumber[b]||"px"!==j&&+i)&&Oa.exec(oa.css(a,b));if(k&&k[3]!==j){j=j||k[3],c=c||[],k=+i||1;do f=f||".5",k/=f,oa.style(a,b,k+j);while(f!==(f=h()/i)&&1!==f&&--g)}return c&&(k=+k||+i||0,e=c[1]?k+(c[1]+1)*c[2]:+c[2],d&&(d.unit=j,d.start=k,d.end=e)),e}function p(a){var b,c=a.ownerDocument,d=a.nodeName,e=Sa[d];return e?e:(b=c.body.appendChild(c.createElement(d)),e=oa.css(b,"display"),b.parentNode.removeChild(b),"none"===e&&(e="block"),Sa[d]=e,e)}function q(a,b){for(var c,d,e=[],f=0,g=a.length;f<g;f++)d=a[f],d.style&&(c=d.style.display,b?("none"===c&&(e[f]=Ja.get(d,"display")||null,e[f]||(d.style.display="")),""===d.style.display&&Qa(d)&&(e[f]=p(d))):"none"!==c&&(e[f]="none",Ja.set(d,"display",c)));for(f=0;f<g;f++)null!=e[f]&&(a[f].style.display=e[f]);return a}function r(a,b){var c;return c="undefined"!=typeof a.getElementsByTagName?a.getElementsByTagName(b||"*"):"undefined"!=typeof a.querySelectorAll?a.querySelectorAll(b||"*"):[],void 0===b||b&&oa.nodeName(a,b)?oa.merge([a],c):c}function s(a,b){for(var c=0,d=a.length;c<d;c++)Ja.set(a[c],"globalEval",!b||Ja.get(b[c],"globalEval"))}function t(a,b,c,d,e){for(var f,g,h,i,j,k,l=b.createDocumentFragment(),m=[],n=0,o=a.length;n<o;n++)if(f=a[n],f||0===f)if("object"===oa.type(f))oa.merge(m,f.nodeType?[f]:f);else if(Xa.test(f)){for(g=g||l.appendChild(b.createElement("div")),h=(Ua.exec(f)||["",""])[1].toLowerCase(),i=Wa[h]||Wa._default,g.innerHTML=i[1]+oa.htmlPrefilter(f)+i[2],k=i[0];k--;)g=g.lastChild;oa.merge(m,g.childNodes),g=l.firstChild,g.textContent=""}else m.push(b.createTextNode(f));for(l.textContent="",n=0;f=m[n++];)if(d&&oa.inArray(f,d)>-1)e&&e.push(f);else if(j=oa.contains(f.ownerDocument,f),g=r(l.appendChild(f),"script"),j&&s(g),c)for(k=0;f=g[k++];)Va.test(f.type||"")&&c.push(f);return l}function u(){return!0}function v(){return!1}function w(){try{return ba.activeElement}catch(a){}}function x(a,b,c,d,e,f){var g,h;if("object"==typeof b){"string"!=typeof c&&(d=d||c,c=void 0);for(h in b)x(a,h,c,d,b[h],f);return a}if(null==d&&null==e?(e=c,d=c=void 0):null==e&&("string"==typeof c?(e=d,d=void 0):(e=d,d=c,c=void 0)),e===!1)e=v;else if(!e)return a;return 1===f&&(g=e,e=function(a){return oa().off(a),g.apply(this,arguments)},e.guid=g.guid||(g.guid=oa.guid++)),a.each(function(){oa.event.add(this,b,e,d,c)})}function y(a,b){return oa.nodeName(a,"table")&&oa.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a:a}function z(a){return a.type=(null!==a.getAttribute("type"))+"/"+a.type,a}function A(a){var b=db.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function B(a,b){var c,d,e,f,g,h,i,j;if(1===b.nodeType){if(Ja.hasData(a)&&(f=Ja.access(a),g=Ja.set(b,f),j=f.events)){delete g.handle,g.events={};for(e in j)for(c=0,d=j[e].length;c<d;c++)oa.event.add(b,e,j[e][c])}Ka.hasData(a)&&(h=Ka.access(a),i=oa.extend({},h),Ka.set(b,i))}}function C(a,b){var c=b.nodeName.toLowerCase();"input"===c&&Ta.test(a.type)?b.checked=a.checked:"input"!==c&&"textarea"!==c||(b.defaultValue=a.defaultValue)}function D(a,b,d,e){b=ea.apply([],b);var f,g,h,i,j,k,l=0,m=a.length,n=m-1,o=b[0],p=oa.isFunction(o);if(p||m>1&&"string"==typeof o&&!ma.checkClone&&cb.test(o))return a.each(function(c){var f=a.eq(c);p&&(b[0]=o.call(this,c,f.html())),D(f,b,d,e)});if(m&&(f=t(b,a[0].ownerDocument,!1,a,e),g=f.firstChild,1===f.childNodes.length&&(f=g),g||e)){for(h=oa.map(r(f,"script"),z),i=h.length;l<m;l++)j=f,l!==n&&(j=oa.clone(j,!0,!0),i&&oa.merge(h,r(j,"script"))),d.call(a[l],j,l);if(i)for(k=h[h.length-1].ownerDocument,oa.map(h,A),l=0;l<i;l++)j=h[l],Va.test(j.type||"")&&!Ja.access(j,"globalEval")&&oa.contains(k,j)&&(j.src?oa._evalUrl&&oa._evalUrl(j.src):c(j.textContent.replace(eb,""),k))}return a}function E(a,b,c){for(var d,e=b?oa.filter(b,a):a,f=0;null!=(d=e[f]);f++)c||1!==d.nodeType||oa.cleanData(r(d)),d.parentNode&&(c&&oa.contains(d.ownerDocument,d)&&s(r(d,"script")),d.parentNode.removeChild(d));return a}function F(a,b,c){var d,e,f,g,h=a.style;return c=c||hb(a),c&&(g=c.getPropertyValue(b)||c[b],""!==g||oa.contains(a.ownerDocument,a)||(g=oa.style(a,b)),!ma.pixelMarginRight()&&gb.test(g)&&fb.test(b)&&(d=h.width,e=h.minWidth,f=h.maxWidth,h.minWidth=h.maxWidth=h.width=g,g=c.width,h.width=d,h.minWidth=e,h.maxWidth=f)),void 0!==g?g+"":g}function G(a,b){return{get:function(){return a()?void delete this.get:(this.get=b).apply(this,arguments)}}}function H(a){if(a in mb)return a;for(var b=a[0].toUpperCase()+a.slice(1),c=lb.length;c--;)if(a=lb[c]+b,a in mb)return a}function I(a,b,c){var d=Oa.exec(b);return d?Math.max(0,d[2]-(c||0))+(d[3]||"px"):b}function J(a,b,c,d,e){var f,g=0;for(f=c===(d?"border":"content")?4:"width"===b?1:0;f<4;f+=2)"margin"===c&&(g+=oa.css(a,c+Pa[f],!0,e)),d?("content"===c&&(g-=oa.css(a,"padding"+Pa[f],!0,e)),"margin"!==c&&(g-=oa.css(a,"border"+Pa[f]+"Width",!0,e))):(g+=oa.css(a,"padding"+Pa[f],!0,e),"padding"!==c&&(g+=oa.css(a,"border"+Pa[f]+"Width",!0,e)));return g}function K(a,b,c){var d,e=!0,f=hb(a),g="border-box"===oa.css(a,"boxSizing",!1,f);if(a.getClientRects().length&&(d=a.getBoundingClientRect()[b]),d<=0||null==d){if(d=F(a,b,f),(d<0||null==d)&&(d=a.style[b]),gb.test(d))return d;e=g&&(ma.boxSizingReliable()||d===a.style[b]),d=parseFloat(d)||0}return d+J(a,b,c||(g?"border":"content"),e,f)+"px"}function L(a,b,c,d,e){return new L.prototype.init(a,b,c,d,e)}function M(){ob&&(a.requestAnimationFrame(M),oa.fx.tick())}function N(){return a.setTimeout(function(){nb=void 0}),nb=oa.now()}function O(a,b){var c,d=0,e={height:a};for(b=b?1:0;d<4;d+=2-b)c=Pa[d],e["margin"+c]=e["padding"+c]=a;return b&&(e.opacity=e.width=a),e}function P(a,b,c){for(var d,e=(S.tweeners[b]||[]).concat(S.tweeners["*"]),f=0,g=e.length;f<g;f++)if(d=e[f].call(c,b,a))return d}function Q(a,b,c){var d,e,f,g,h,i,j,k,l="width"in b||"height"in b,m=this,n={},o=a.style,p=a.nodeType&&Qa(a),r=Ja.get(a,"fxshow");c.queue||(g=oa._queueHooks(a,"fx"),null==g.unqueued&&(g.unqueued=0,h=g.empty.fire,g.empty.fire=function(){g.unqueued||h()}),g.unqueued++,m.always(function(){m.always(function(){g.unqueued--,oa.queue(a,"fx").length||g.empty.fire()})}));for(d in b)if(e=b[d],pb.test(e)){if(delete b[d],f=f||"toggle"===e,e===(p?"hide":"show")){if("show"!==e||!r||void 0===r[d])continue;p=!0}n[d]=r&&r[d]||oa.style(a,d)}if(i=!oa.isEmptyObject(b),i||!oa.isEmptyObject(n)){l&&1===a.nodeType&&(c.overflow=[o.overflow,o.overflowX,o.overflowY],j=r&&r.display,null==j&&(j=Ja.get(a,"display")),k=oa.css(a,"display"),"none"===k&&(j?k=j:(q([a],!0),j=a.style.display||j,k=oa.css(a,"display"),q([a]))),("inline"===k||"inline-block"===k&&null!=j)&&"none"===oa.css(a,"float")&&(i||(m.done(function(){o.display=j}),null==j&&(k=o.display,j="none"===k?"":k)),o.display="inline-block")),c.overflow&&(o.overflow="hidden",m.always(function(){o.overflow=c.overflow[0],o.overflowX=c.overflow[1],o.overflowY=c.overflow[2]})),i=!1;for(d in n)i||(r?"hidden"in r&&(p=r.hidden):r=Ja.access(a,"fxshow",{display:j}),f&&(r.hidden=!p),p&&q([a],!0),m.done(function(){p||q([a]),Ja.remove(a,"fxshow");for(d in n)oa.style(a,d,n[d])})),i=P(p?r[d]:0,d,m),d in r||(r[d]=i.start,p&&(i.end=i.start,i.start=0))}}function R(a,b){var c,d,e,f,g;for(c in a)if(d=oa.camelCase(c),e=b[d],f=a[c],oa.isArray(f)&&(e=f[1],f=a[c]=f[0]),c!==d&&(a[d]=f,delete a[c]),g=oa.cssHooks[d],g&&"expand"in g){f=g.expand(f),delete a[d];for(c in f)c in a||(a[c]=f[c],b[c]=e)}else b[d]=e}function S(a,b,c){var d,e,f=0,g=S.prefilters.length,h=oa.Deferred().always(function(){delete i.elem}),i=function(){if(e)return!1;for(var b=nb||N(),c=Math.max(0,j.startTime+j.duration-b),d=c/j.duration||0,f=1-d,g=0,i=j.tweens.length;g<i;g++)j.tweens[g].run(f);return h.notifyWith(a,[j,f,c]),f<1&&i?c:(h.resolveWith(a,[j]),!1)},j=h.promise({elem:a,props:oa.extend({},b),opts:oa.extend(!0,{specialEasing:{},easing:oa.easing._default},c),originalProperties:b,originalOptions:c,startTime:nb||N(),duration:c.duration,tweens:[],createTween:function(b,c){var d=oa.Tween(a,j.opts,b,c,j.opts.specialEasing[b]||j.opts.easing);return j.tweens.push(d),d},stop:function(b){var c=0,d=b?j.tweens.length:0;if(e)return this;for(e=!0;c<d;c++)j.tweens[c].run(1);return b?(h.notifyWith(a,[j,1,0]),h.resolveWith(a,[j,b])):h.rejectWith(a,[j,b]),this}}),k=j.props;for(R(k,j.opts.specialEasing);f<g;f++)if(d=S.prefilters[f].call(j,a,k,j.opts))return oa.isFunction(d.stop)&&(oa._queueHooks(j.elem,j.opts.queue).stop=oa.proxy(d.stop,d)),d;return oa.map(k,P,j),oa.isFunction(j.opts.start)&&j.opts.start.call(a,j),oa.fx.timer(oa.extend(i,{elem:a,anim:j,queue:j.opts.queue})),j.progress(j.opts.progress).done(j.opts.done,j.opts.complete).fail(j.opts.fail).always(j.opts.always)}function T(a){var b=a.match(Ea)||[];return b.join(" ")}function U(a){return a.getAttribute&&a.getAttribute("class")||""}function V(a,b,c,d){var e;if(oa.isArray(b))oa.each(b,function(b,e){c||Ab.test(a)?d(a,e):V(a+"["+("object"==typeof e&&null!=e?b:"")+"]",e,c,d)});else if(c||"object"!==oa.type(b))d(a,b);else for(e in b)V(a+"["+e+"]",b[e],c,d)}function W(a){return function(b,c){"string"!=typeof b&&(c=b,b="*");var d,e=0,f=b.toLowerCase().match(Ea)||[];if(oa.isFunction(c))for(;d=f[e++];)"+"===d[0]?(d=d.slice(1)||"*",(a[d]=a[d]||[]).unshift(c)):(a[d]=a[d]||[]).push(c)}}function X(a,b,c,d){function e(h){var i;return f[h]=!0,oa.each(a[h]||[],function(a,h){var j=h(b,c,d);return"string"!=typeof j||g||f[j]?g?!(i=j):void 0:(b.dataTypes.unshift(j),e(j),!1)}),i}var f={},g=a===Mb;return e(b.dataTypes[0])||!f["*"]&&e("*")}function Y(a,b){var c,d,e=oa.ajaxSettings.flatOptions||{};for(c in b)void 0!==b[c]&&((e[c]?a:d||(d={}))[c]=b[c]);return d&&oa.extend(!0,a,d),a}function Z(a,b,c){for(var d,e,f,g,h=a.contents,i=a.dataTypes;"*"===i[0];)i.shift(),void 0===d&&(d=a.mimeType||b.getResponseHeader("Content-Type"));if(d)for(e in h)if(h[e]&&h[e].test(d)){i.unshift(e);break}if(i[0]in c)f=i[0];else{for(e in c){if(!i[0]||a.converters[e+" "+i[0]]){f=e;break}g||(g=e)}f=f||g}if(f)return f!==i[0]&&i.unshift(f),c[f]}function $(a,b,c,d){var e,f,g,h,i,j={},k=a.dataTypes.slice();if(k[1])for(g in a.converters)j[g.toLowerCase()]=a.converters[g];for(f=k.shift();f;)if(a.responseFields[f]&&(c[a.responseFields[f]]=b),!i&&d&&a.dataFilter&&(b=a.dataFilter(b,a.dataType)),i=f,f=k.shift())if("*"===f)f=i;else if("*"!==i&&i!==f){if(g=j[i+" "+f]||j["* "+f],!g)for(e in j)if(h=e.split(" "),h[1]===f&&(g=j[i+" "+h[0]]||j["* "+h[0]])){g===!0?g=j[e]:j[e]!==!0&&(f=h[0],k.unshift(h[1]));break}if(g!==!0)if(g&&a.throws)b=g(b);else try{b=g(b)}catch(l){return{state:"parsererror",error:g?l:"No conversion from "+i+" to "+f}}}return{state:"success",data:b}}function _(a){return oa.isWindow(a)?a:9===a.nodeType&&a.defaultView}var aa=[],ba=a.document,ca=Object.getPrototypeOf,da=aa.slice,ea=aa.concat,fa=aa.push,ga=aa.indexOf,ha={},ia=ha.toString,ja=ha.hasOwnProperty,ka=ja.toString,la=ka.call(Object),ma={},na="3.1.1",oa=function(a,b){return new oa.fn.init(a,b)},pa=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,qa=/^-ms-/,ra=/-([a-z])/g,sa=function(a,b){return b.toUpperCase()};oa.fn=oa.prototype={jquery:na,constructor:oa,length:0,toArray:function(){return da.call(this)},get:function(a){return null==a?da.call(this):a<0?this[a+this.length]:this[a]},pushStack:function(a){var b=oa.merge(this.constructor(),a);return b.prevObject=this,b},each:function(a){return oa.each(this,a)},map:function(a){return this.pushStack(oa.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(da.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(a<0?b:0);return this.pushStack(c>=0&&c<b?[this[c]]:[])},end:function(){return this.prevObject||this.constructor()},push:fa,sort:aa.sort,splice:aa.splice},oa.extend=oa.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||oa.isFunction(g)||(g={}),h===i&&(g=this,h--);h<i;h++)if(null!=(a=arguments[h]))for(b in a)c=g[b],d=a[b],g!==d&&(j&&d&&(oa.isPlainObject(d)||(e=oa.isArray(d)))?(e?(e=!1,f=c&&oa.isArray(c)?c:[]):f=c&&oa.isPlainObject(c)?c:{},g[b]=oa.extend(j,f,d)):void 0!==d&&(g[b]=d));return g},oa.extend({expando:"jQuery"+(na+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===oa.type(a)},isArray:Array.isArray,isWindow:function(a){return null!=a&&a===a.window},isNumeric:function(a){var b=oa.type(a);return("number"===b||"string"===b)&&!isNaN(a-parseFloat(a))},isPlainObject:function(a){var b,c;return!(!a||"[object Object]"!==ia.call(a))&&(!(b=ca(a))||(c=ja.call(b,"constructor")&&b.constructor,"function"==typeof c&&ka.call(c)===la))},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?ha[ia.call(a)]||"object":typeof a},globalEval:function(a){c(a)},camelCase:function(a){return a.replace(qa,"ms-").replace(ra,sa)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b){var c,e=0;if(d(a))for(c=a.length;e<c&&b.call(a[e],e,a[e])!==!1;e++);else for(e in a)if(b.call(a[e],e,a[e])===!1)break;return a},trim:function(a){return null==a?"":(a+"").replace(pa,"")},makeArray:function(a,b){var c=b||[];return null!=a&&(d(Object(a))?oa.merge(c,"string"==typeof a?[a]:a):fa.call(c,a)),c},inArray:function(a,b,c){return null==b?-1:ga.call(b,a,c)},merge:function(a,b){for(var c=+b.length,d=0,e=a.length;d<c;d++)a[e++]=b[d];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;f<g;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e},map:function(a,b,c){var e,f,g=0,h=[];if(d(a))for(e=a.length;g<e;g++)f=b(a[g],g,c),null!=f&&h.push(f);else for(g in a)f=b(a[g],g,c),null!=f&&h.push(f);return ea.apply([],h)},guid:1,proxy:function(a,b){var c,d,e;if("string"==typeof b&&(c=a[b],b=a,a=c),oa.isFunction(a))return d=da.call(arguments,2),e=function(){return a.apply(b||this,d.concat(da.call(arguments)))},e.guid=a.guid=a.guid||oa.guid++,e},now:Date.now,support:ma}),"function"==typeof Symbol&&(oa.fn[Symbol.iterator]=aa[Symbol.iterator]),oa.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(a,b){ha["[object "+b+"]"]=b.toLowerCase()});var ta=function(a){function b(a,b,c,d){var e,f,g,h,i,j,k,m=b&&b.ownerDocument,o=b?b.nodeType:9;if(c=c||[],"string"!=typeof a||!a||1!==o&&9!==o&&11!==o)return c;if(!d&&((b?b.ownerDocument||b:P)!==H&&G(b),b=b||H,J)){if(11!==o&&(i=ra.exec(a)))if(e=i[1]){if(9===o){if(!(g=b.getElementById(e)))return c;if(g.id===e)return c.push(g),c}else if(m&&(g=m.getElementById(e))&&N(b,g)&&g.id===e)return c.push(g),c}else{if(i[2])return $.apply(c,b.getElementsByTagName(a)),c;if((e=i[3])&&w.getElementsByClassName&&b.getElementsByClassName)return $.apply(c,b.getElementsByClassName(e)),c}if(w.qsa&&!U[a+" "]&&(!K||!K.test(a))){if(1!==o)m=b,k=a;else if("object"!==b.nodeName.toLowerCase()){for((h=b.getAttribute("id"))?h=h.replace(va,wa):b.setAttribute("id",h=O),j=A(a),f=j.length;f--;)j[f]="#"+h+" "+n(j[f]);k=j.join(","),m=sa.test(a)&&l(b.parentNode)||b}if(k)try{return $.apply(c,m.querySelectorAll(k)),c}catch(p){}finally{h===O&&b.removeAttribute("id")}}}return C(a.replace(ha,"$1"),b,c,d)}function c(){function a(c,d){return b.push(c+" ")>x.cacheLength&&delete a[b.shift()],a[c+" "]=d}var b=[];return a}function d(a){return a[O]=!0,a}function e(a){var b=H.createElement("fieldset");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function f(a,b){for(var c=a.split("|"),d=c.length;d--;)x.attrHandle[c[d]]=b}function g(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&a.sourceIndex-b.sourceIndex;if(d)return d;if(c)for(;c=c.nextSibling;)if(c===b)return-1;return a?1:-1}function h(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function i(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function j(a){return function(b){return"form"in b?b.parentNode&&b.disabled===!1?"label"in b?"label"in b.parentNode?b.parentNode.disabled===a:b.disabled===a:b.isDisabled===a||b.isDisabled!==!a&&ya(b)===a:b.disabled===a:"label"in b&&b.disabled===a}}function k(a){return d(function(b){return b=+b,d(function(c,d){for(var e,f=a([],c.length,b),g=f.length;g--;)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function l(a){return a&&"undefined"!=typeof a.getElementsByTagName&&a}function m(){}function n(a){for(var b=0,c=a.length,d="";b<c;b++)d+=a[b].value;return d}function o(a,b,c){var d=b.dir,e=b.next,f=e||d,g=c&&"parentNode"===f,h=R++;return b.first?function(b,c,e){for(;b=b[d];)if(1===b.nodeType||g)return a(b,c,e);return!1}:function(b,c,i){var j,k,l,m=[Q,h];if(i){for(;b=b[d];)if((1===b.nodeType||g)&&a(b,c,i))return!0}else for(;b=b[d];)if(1===b.nodeType||g)if(l=b[O]||(b[O]={}),k=l[b.uniqueID]||(l[b.uniqueID]={}),e&&e===b.nodeName.toLowerCase())b=b[d]||b;else{if((j=k[f])&&j[0]===Q&&j[1]===h)return m[2]=j[2];if(k[f]=m,m[2]=a(b,c,i))return!0}return!1}}function p(a){return a.length>1?function(b,c,d){for(var e=a.length;e--;)if(!a[e](b,c,d))return!1;return!0}:a[0]}function q(a,c,d){for(var e=0,f=c.length;e<f;e++)b(a,c[e],d);return d}function r(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;h<i;h++)(f=a[h])&&(c&&!c(f,d,e)||(g.push(f),j&&b.push(h)));return g}function s(a,b,c,e,f,g){return e&&!e[O]&&(e=s(e)),f&&!f[O]&&(f=s(f,g)),d(function(d,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=d||q(b||"*",h.nodeType?[h]:h,[]),s=!a||!d&&b?p:r(p,m,a,h,i),t=c?f||(d?a:o||e)?[]:g:s;if(c&&c(s,t,h,i),e)for(j=r(t,n),e(j,[],h,i),k=j.length;k--;)(l=j[k])&&(t[n[k]]=!(s[n[k]]=l));if(d){if(f||a){if(f){for(j=[],k=t.length;k--;)(l=t[k])&&j.push(s[k]=l);f(null,t=[],j,i)}for(k=t.length;k--;)(l=t[k])&&(j=f?aa(d,l):m[k])>-1&&(d[j]=!(g[j]=l))}}else t=r(t===g?t.splice(o,t.length):t),f?f(null,g,t,i):$.apply(g,t)})}function t(a){for(var b,c,d,e=a.length,f=x.relative[a[0].type],g=f||x.relative[" "],h=f?1:0,i=o(function(a){return a===b},g,!0),j=o(function(a){return aa(b,a)>-1},g,!0),k=[function(a,c,d){var e=!f&&(d||c!==D)||((b=c).nodeType?i(a,c,d):j(a,c,d));return b=null,e}];h<e;h++)if(c=x.relative[a[h].type])k=[o(p(k),c)];else{if(c=x.filter[a[h].type].apply(null,a[h].matches),c[O]){for(d=++h;d<e&&!x.relative[a[d].type];d++);return s(h>1&&p(k),h>1&&n(a.slice(0,h-1).concat({value:" "===a[h-2].type?"*":""})).replace(ha,"$1"),c,h<d&&t(a.slice(h,d)),d<e&&t(a=a.slice(d)),d<e&&n(a))}k.push(c)}return p(k)}function u(a,c){var e=c.length>0,f=a.length>0,g=function(d,g,h,i,j){var k,l,m,n=0,o="0",p=d&&[],q=[],s=D,t=d||f&&x.find.TAG("*",j),u=Q+=null==s?1:Math.random()||.1,v=t.length;for(j&&(D=g===H||g||j);o!==v&&null!=(k=t[o]);o++){if(f&&k){for(l=0,g||k.ownerDocument===H||(G(k),h=!J);m=a[l++];)if(m(k,g||H,h)){i.push(k);break}j&&(Q=u)}e&&((k=!m&&k)&&n--,d&&p.push(k))}if(n+=o,e&&o!==n){for(l=0;m=c[l++];)m(p,q,g,h);if(d){if(n>0)for(;o--;)p[o]||q[o]||(q[o]=Y.call(i));q=r(q)}$.apply(i,q),j&&!d&&q.length>0&&n+c.length>1&&b.uniqueSort(i)}return j&&(Q=u,D=s),p};return e?d(g):g}var v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O="sizzle"+1*new Date,P=a.document,Q=0,R=0,S=c(),T=c(),U=c(),V=function(a,b){return a===b&&(F=!0),0},W={}.hasOwnProperty,X=[],Y=X.pop,Z=X.push,$=X.push,_=X.slice,aa=function(a,b){for(var c=0,d=a.length;c<d;c++)if(a[c]===b)return c;return-1},ba="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",ca="[\\x20\\t\\r\\n\\f]",da="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",ea="\\["+ca+"*("+da+")(?:"+ca+"*([*^$|!~]?=)"+ca+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+da+"))|)"+ca+"*\\]",fa=":("+da+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+ea+")*)|.*)\\)|)",ga=new RegExp(ca+"+","g"),ha=new RegExp("^"+ca+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ca+"+$","g"),ia=new RegExp("^"+ca+"*,"+ca+"*"),ja=new RegExp("^"+ca+"*([>+~]|"+ca+")"+ca+"*"),ka=new RegExp("="+ca+"*([^\\]'\"]*?)"+ca+"*\\]","g"),la=new RegExp(fa),ma=new RegExp("^"+da+"$"),na={ID:new RegExp("^#("+da+")"),CLASS:new RegExp("^\\.("+da+")"),TAG:new RegExp("^("+da+"|[*])"),ATTR:new RegExp("^"+ea),PSEUDO:new RegExp("^"+fa),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ca+"*(even|odd|(([+-]|)(\\d*)n|)"+ca+"*(?:([+-]|)"+ca+"*(\\d+)|))"+ca+"*\\)|)","i"),bool:new RegExp("^(?:"+ba+")$","i"),needsContext:new RegExp("^"+ca+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ca+"*((?:-\\d)?\\d*)"+ca+"*\\)|)(?=[^-]|$)","i")},oa=/^(?:input|select|textarea|button)$/i,pa=/^h\d$/i,qa=/^[^{]+\{\s*\[native \w/,ra=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,sa=/[+~]/,ta=new RegExp("\\\\([\\da-f]{1,6}"+ca+"?|("+ca+")|.)","ig"),ua=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:d<0?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)},va=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,wa=function(a,b){return b?"\0"===a?"�":a.slice(0,-1)+"\\"+a.charCodeAt(a.length-1).toString(16)+" ":"\\"+a},xa=function(){G()},ya=o(function(a){return a.disabled===!0&&("form"in a||"label"in a)},{dir:"parentNode",next:"legend"});try{$.apply(X=_.call(P.childNodes),P.childNodes),X[P.childNodes.length].nodeType}catch(za){$={apply:X.length?function(a,b){Z.apply(a,_.call(b))}:function(a,b){for(var c=a.length,d=0;a[c++]=b[d++];);a.length=c-1}}}w=b.support={},z=b.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;
return!!b&&"HTML"!==b.nodeName},G=b.setDocument=function(a){var b,c,d=a?a.ownerDocument||a:P;return d!==H&&9===d.nodeType&&d.documentElement?(H=d,I=H.documentElement,J=!z(H),P!==H&&(c=H.defaultView)&&c.top!==c&&(c.addEventListener?c.addEventListener("unload",xa,!1):c.attachEvent&&c.attachEvent("onunload",xa)),w.attributes=e(function(a){return a.className="i",!a.getAttribute("className")}),w.getElementsByTagName=e(function(a){return a.appendChild(H.createComment("")),!a.getElementsByTagName("*").length}),w.getElementsByClassName=qa.test(H.getElementsByClassName),w.getById=e(function(a){return I.appendChild(a).id=O,!H.getElementsByName||!H.getElementsByName(O).length}),w.getById?(x.filter.ID=function(a){var b=a.replace(ta,ua);return function(a){return a.getAttribute("id")===b}},x.find.ID=function(a,b){if("undefined"!=typeof b.getElementById&&J){var c=b.getElementById(a);return c?[c]:[]}}):(x.filter.ID=function(a){var b=a.replace(ta,ua);return function(a){var c="undefined"!=typeof a.getAttributeNode&&a.getAttributeNode("id");return c&&c.value===b}},x.find.ID=function(a,b){if("undefined"!=typeof b.getElementById&&J){var c,d,e,f=b.getElementById(a);if(f){if(c=f.getAttributeNode("id"),c&&c.value===a)return[f];for(e=b.getElementsByName(a),d=0;f=e[d++];)if(c=f.getAttributeNode("id"),c&&c.value===a)return[f]}return[]}}),x.find.TAG=w.getElementsByTagName?function(a,b){return"undefined"!=typeof b.getElementsByTagName?b.getElementsByTagName(a):w.qsa?b.querySelectorAll(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){for(;c=f[e++];)1===c.nodeType&&d.push(c);return d}return f},x.find.CLASS=w.getElementsByClassName&&function(a,b){if("undefined"!=typeof b.getElementsByClassName&&J)return b.getElementsByClassName(a)},L=[],K=[],(w.qsa=qa.test(H.querySelectorAll))&&(e(function(a){I.appendChild(a).innerHTML="<a id='"+O+"'></a><select id='"+O+"-\r\\' msallowcapture=''><option selected=''></option></select>",a.querySelectorAll("[msallowcapture^='']").length&&K.push("[*^$]="+ca+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||K.push("\\["+ca+"*(?:value|"+ba+")"),a.querySelectorAll("[id~="+O+"-]").length||K.push("~="),a.querySelectorAll(":checked").length||K.push(":checked"),a.querySelectorAll("a#"+O+"+*").length||K.push(".#.+[+~]")}),e(function(a){a.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var b=H.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&K.push("name"+ca+"*[*^$|!~]?="),2!==a.querySelectorAll(":enabled").length&&K.push(":enabled",":disabled"),I.appendChild(a).disabled=!0,2!==a.querySelectorAll(":disabled").length&&K.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),K.push(",.*:")})),(w.matchesSelector=qa.test(M=I.matches||I.webkitMatchesSelector||I.mozMatchesSelector||I.oMatchesSelector||I.msMatchesSelector))&&e(function(a){w.disconnectedMatch=M.call(a,"*"),M.call(a,"[s!='']:x"),L.push("!=",fa)}),K=K.length&&new RegExp(K.join("|")),L=L.length&&new RegExp(L.join("|")),b=qa.test(I.compareDocumentPosition),N=b||qa.test(I.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)for(;b=b.parentNode;)if(b===a)return!0;return!1},V=b?function(a,b){if(a===b)return F=!0,0;var c=!a.compareDocumentPosition-!b.compareDocumentPosition;return c?c:(c=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&c||!w.sortDetached&&b.compareDocumentPosition(a)===c?a===H||a.ownerDocument===P&&N(P,a)?-1:b===H||b.ownerDocument===P&&N(P,b)?1:E?aa(E,a)-aa(E,b):0:4&c?-1:1)}:function(a,b){if(a===b)return F=!0,0;var c,d=0,e=a.parentNode,f=b.parentNode,h=[a],i=[b];if(!e||!f)return a===H?-1:b===H?1:e?-1:f?1:E?aa(E,a)-aa(E,b):0;if(e===f)return g(a,b);for(c=a;c=c.parentNode;)h.unshift(c);for(c=b;c=c.parentNode;)i.unshift(c);for(;h[d]===i[d];)d++;return d?g(h[d],i[d]):h[d]===P?-1:i[d]===P?1:0},H):H},b.matches=function(a,c){return b(a,null,null,c)},b.matchesSelector=function(a,c){if((a.ownerDocument||a)!==H&&G(a),c=c.replace(ka,"='$1']"),w.matchesSelector&&J&&!U[c+" "]&&(!L||!L.test(c))&&(!K||!K.test(c)))try{var d=M.call(a,c);if(d||w.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return b(c,H,null,[a]).length>0},b.contains=function(a,b){return(a.ownerDocument||a)!==H&&G(a),N(a,b)},b.attr=function(a,b){(a.ownerDocument||a)!==H&&G(a);var c=x.attrHandle[b.toLowerCase()],d=c&&W.call(x.attrHandle,b.toLowerCase())?c(a,b,!J):void 0;return void 0!==d?d:w.attributes||!J?a.getAttribute(b):(d=a.getAttributeNode(b))&&d.specified?d.value:null},b.escape=function(a){return(a+"").replace(va,wa)},b.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},b.uniqueSort=function(a){var b,c=[],d=0,e=0;if(F=!w.detectDuplicates,E=!w.sortStable&&a.slice(0),a.sort(V),F){for(;b=a[e++];)b===a[e]&&(d=c.push(e));for(;d--;)a.splice(c[d],1)}return E=null,a},y=b.getText=function(a){var b,c="",d=0,e=a.nodeType;if(e){if(1===e||9===e||11===e){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=y(a)}else if(3===e||4===e)return a.nodeValue}else for(;b=a[d++];)c+=y(b);return c},x=b.selectors={cacheLength:50,createPseudo:d,match:na,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(ta,ua),a[3]=(a[3]||a[4]||a[5]||"").replace(ta,ua),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||b.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&b.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return na.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&la.test(c)&&(b=A(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(ta,ua).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=S[a+" "];return b||(b=new RegExp("(^|"+ca+")"+a+"("+ca+"|$)"))&&S(a,function(a){return b.test("string"==typeof a.className&&a.className||"undefined"!=typeof a.getAttribute&&a.getAttribute("class")||"")})},ATTR:function(a,c,d){return function(e){var f=b.attr(e,a);return null==f?"!="===c:!c||(f+="","="===c?f===d:"!="===c?f!==d:"^="===c?d&&0===f.indexOf(d):"*="===c?d&&f.indexOf(d)>-1:"$="===c?d&&f.slice(-d.length)===d:"~="===c?(" "+f.replace(ga," ")+" ").indexOf(d)>-1:"|="===c&&(f===d||f.slice(0,d.length+1)===d+"-"))}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),s=!i&&!h,t=!1;if(q){if(f){for(;p;){for(m=b;m=m[p];)if(h?m.nodeName.toLowerCase()===r:1===m.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&s){for(m=q,l=m[O]||(m[O]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===Q&&j[1],t=n&&j[2],m=n&&q.childNodes[n];m=++n&&m&&m[p]||(t=n=0)||o.pop();)if(1===m.nodeType&&++t&&m===b){k[a]=[Q,n,t];break}}else if(s&&(m=b,l=m[O]||(m[O]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===Q&&j[1],t=n),t===!1)for(;(m=++n&&m&&m[p]||(t=n=0)||o.pop())&&((h?m.nodeName.toLowerCase()!==r:1!==m.nodeType)||!++t||(s&&(l=m[O]||(m[O]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),k[a]=[Q,t]),m!==b)););return t-=e,t===d||t%d===0&&t/d>=0}}},PSEUDO:function(a,c){var e,f=x.pseudos[a]||x.setFilters[a.toLowerCase()]||b.error("unsupported pseudo: "+a);return f[O]?f(c):f.length>1?(e=[a,a,"",c],x.setFilters.hasOwnProperty(a.toLowerCase())?d(function(a,b){for(var d,e=f(a,c),g=e.length;g--;)d=aa(a,e[g]),a[d]=!(b[d]=e[g])}):function(a){return f(a,0,e)}):f}},pseudos:{not:d(function(a){var b=[],c=[],e=B(a.replace(ha,"$1"));return e[O]?d(function(a,b,c,d){for(var f,g=e(a,null,d,[]),h=a.length;h--;)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,d,f){return b[0]=a,e(b,null,f,c),b[0]=null,!c.pop()}}),has:d(function(a){return function(c){return b(a,c).length>0}}),contains:d(function(a){return a=a.replace(ta,ua),function(b){return(b.textContent||b.innerText||y(b)).indexOf(a)>-1}}),lang:d(function(a){return ma.test(a||"")||b.error("unsupported lang: "+a),a=a.replace(ta,ua).toLowerCase(),function(b){var c;do if(c=J?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===I},focus:function(a){return a===H.activeElement&&(!H.hasFocus||H.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:j(!1),disabled:j(!0),checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!x.pseudos.empty(a)},header:function(a){return pa.test(a.nodeName)},input:function(a){return oa.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:k(function(){return[0]}),last:k(function(a,b){return[b-1]}),eq:k(function(a,b,c){return[c<0?c+b:c]}),even:k(function(a,b){for(var c=0;c<b;c+=2)a.push(c);return a}),odd:k(function(a,b){for(var c=1;c<b;c+=2)a.push(c);return a}),lt:k(function(a,b,c){for(var d=c<0?c+b:c;--d>=0;)a.push(d);return a}),gt:k(function(a,b,c){for(var d=c<0?c+b:c;++d<b;)a.push(d);return a})}},x.pseudos.nth=x.pseudos.eq;for(v in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})x.pseudos[v]=h(v);for(v in{submit:!0,reset:!0})x.pseudos[v]=i(v);return m.prototype=x.filters=x.pseudos,x.setFilters=new m,A=b.tokenize=function(a,c){var d,e,f,g,h,i,j,k=T[a+" "];if(k)return c?0:k.slice(0);for(h=a,i=[],j=x.preFilter;h;){d&&!(e=ia.exec(h))||(e&&(h=h.slice(e[0].length)||h),i.push(f=[])),d=!1,(e=ja.exec(h))&&(d=e.shift(),f.push({value:d,type:e[0].replace(ha," ")}),h=h.slice(d.length));for(g in x.filter)!(e=na[g].exec(h))||j[g]&&!(e=j[g](e))||(d=e.shift(),f.push({value:d,type:g,matches:e}),h=h.slice(d.length));if(!d)break}return c?h.length:h?b.error(a):T(a,i).slice(0)},B=b.compile=function(a,b){var c,d=[],e=[],f=U[a+" "];if(!f){for(b||(b=A(a)),c=b.length;c--;)f=t(b[c]),f[O]?d.push(f):e.push(f);f=U(a,u(e,d)),f.selector=a}return f},C=b.select=function(a,b,c,d){var e,f,g,h,i,j="function"==typeof a&&a,k=!d&&A(a=j.selector||a);if(c=c||[],1===k.length){if(f=k[0]=k[0].slice(0),f.length>2&&"ID"===(g=f[0]).type&&9===b.nodeType&&J&&x.relative[f[1].type]){if(b=(x.find.ID(g.matches[0].replace(ta,ua),b)||[])[0],!b)return c;j&&(b=b.parentNode),a=a.slice(f.shift().value.length)}for(e=na.needsContext.test(a)?0:f.length;e--&&(g=f[e],!x.relative[h=g.type]);)if((i=x.find[h])&&(d=i(g.matches[0].replace(ta,ua),sa.test(f[0].type)&&l(b.parentNode)||b))){if(f.splice(e,1),a=d.length&&n(f),!a)return $.apply(c,d),c;break}}return(j||B(a,k))(d,b,!J,c,!b||sa.test(a)&&l(b.parentNode)||b),c},w.sortStable=O.split("").sort(V).join("")===O,w.detectDuplicates=!!F,G(),w.sortDetached=e(function(a){return 1&a.compareDocumentPosition(H.createElement("fieldset"))}),e(function(a){return a.innerHTML="<a href='#'></a>","#"===a.firstChild.getAttribute("href")})||f("type|href|height|width",function(a,b,c){if(!c)return a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),w.attributes&&e(function(a){return a.innerHTML="<input/>",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||f("value",function(a,b,c){if(!c&&"input"===a.nodeName.toLowerCase())return a.defaultValue}),e(function(a){return null==a.getAttribute("disabled")})||f(ba,function(a,b,c){var d;if(!c)return a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),b}(a);oa.find=ta,oa.expr=ta.selectors,oa.expr[":"]=oa.expr.pseudos,oa.uniqueSort=oa.unique=ta.uniqueSort,oa.text=ta.getText,oa.isXMLDoc=ta.isXML,oa.contains=ta.contains,oa.escapeSelector=ta.escape;var ua=function(a,b,c){for(var d=[],e=void 0!==c;(a=a[b])&&9!==a.nodeType;)if(1===a.nodeType){if(e&&oa(a).is(c))break;d.push(a)}return d},va=function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c},wa=oa.expr.match.needsContext,xa=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i,ya=/^.[^:#\[\.,]*$/;oa.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?oa.find.matchesSelector(d,a)?[d]:[]:oa.find.matches(a,oa.grep(b,function(a){return 1===a.nodeType}))},oa.fn.extend({find:function(a){var b,c,d=this.length,e=this;if("string"!=typeof a)return this.pushStack(oa(a).filter(function(){for(b=0;b<d;b++)if(oa.contains(e[b],this))return!0}));for(c=this.pushStack([]),b=0;b<d;b++)oa.find(a,e[b],c);return d>1?oa.uniqueSort(c):c},filter:function(a){return this.pushStack(e(this,a||[],!1))},not:function(a){return this.pushStack(e(this,a||[],!0))},is:function(a){return!!e(this,"string"==typeof a&&wa.test(a)?oa(a):a||[],!1).length}});var za,Aa=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,Ba=oa.fn.init=function(a,b,c){var d,e;if(!a)return this;if(c=c||za,"string"==typeof a){if(d="<"===a[0]&&">"===a[a.length-1]&&a.length>=3?[null,a,null]:Aa.exec(a),!d||!d[1]&&b)return!b||b.jquery?(b||c).find(a):this.constructor(b).find(a);if(d[1]){if(b=b instanceof oa?b[0]:b,oa.merge(this,oa.parseHTML(d[1],b&&b.nodeType?b.ownerDocument||b:ba,!0)),xa.test(d[1])&&oa.isPlainObject(b))for(d in b)oa.isFunction(this[d])?this[d](b[d]):this.attr(d,b[d]);return this}return e=ba.getElementById(d[2]),e&&(this[0]=e,this.length=1),this}return a.nodeType?(this[0]=a,this.length=1,this):oa.isFunction(a)?void 0!==c.ready?c.ready(a):a(oa):oa.makeArray(a,this)};Ba.prototype=oa.fn,za=oa(ba);var Ca=/^(?:parents|prev(?:Until|All))/,Da={children:!0,contents:!0,next:!0,prev:!0};oa.fn.extend({has:function(a){var b=oa(a,this),c=b.length;return this.filter(function(){for(var a=0;a<c;a++)if(oa.contains(this,b[a]))return!0})},closest:function(a,b){var c,d=0,e=this.length,f=[],g="string"!=typeof a&&oa(a);if(!wa.test(a))for(;d<e;d++)for(c=this[d];c&&c!==b;c=c.parentNode)if(c.nodeType<11&&(g?g.index(c)>-1:1===c.nodeType&&oa.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?oa.uniqueSort(f):f)},index:function(a){return a?"string"==typeof a?ga.call(oa(a),this[0]):ga.call(this,a.jquery?a[0]:a):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(oa.uniqueSort(oa.merge(this.get(),oa(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}}),oa.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return ua(a,"parentNode")},parentsUntil:function(a,b,c){return ua(a,"parentNode",c)},next:function(a){return f(a,"nextSibling")},prev:function(a){return f(a,"previousSibling")},nextAll:function(a){return ua(a,"nextSibling")},prevAll:function(a){return ua(a,"previousSibling")},nextUntil:function(a,b,c){return ua(a,"nextSibling",c)},prevUntil:function(a,b,c){return ua(a,"previousSibling",c)},siblings:function(a){return va((a.parentNode||{}).firstChild,a)},children:function(a){return va(a.firstChild)},contents:function(a){return a.contentDocument||oa.merge([],a.childNodes)}},function(a,b){oa.fn[a]=function(c,d){var e=oa.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=oa.filter(d,e)),this.length>1&&(Da[a]||oa.uniqueSort(e),Ca.test(a)&&e.reverse()),this.pushStack(e)}});var Ea=/[^\x20\t\r\n\f]+/g;oa.Callbacks=function(a){a="string"==typeof a?g(a):oa.extend({},a);var b,c,d,e,f=[],h=[],i=-1,j=function(){for(e=a.once,d=b=!0;h.length;i=-1)for(c=h.shift();++i<f.length;)f[i].apply(c[0],c[1])===!1&&a.stopOnFalse&&(i=f.length,c=!1);a.memory||(c=!1),b=!1,e&&(f=c?[]:"")},k={add:function(){return f&&(c&&!b&&(i=f.length-1,h.push(c)),function b(c){oa.each(c,function(c,d){oa.isFunction(d)?a.unique&&k.has(d)||f.push(d):d&&d.length&&"string"!==oa.type(d)&&b(d)})}(arguments),c&&!b&&j()),this},remove:function(){return oa.each(arguments,function(a,b){for(var c;(c=oa.inArray(b,f,c))>-1;)f.splice(c,1),c<=i&&i--}),this},has:function(a){return a?oa.inArray(a,f)>-1:f.length>0},empty:function(){return f&&(f=[]),this},disable:function(){return e=h=[],f=c="",this},disabled:function(){return!f},lock:function(){return e=h=[],c||b||(f=c=""),this},locked:function(){return!!e},fireWith:function(a,c){return e||(c=c||[],c=[a,c.slice?c.slice():c],h.push(c),b||j()),this},fire:function(){return k.fireWith(this,arguments),this},fired:function(){return!!d}};return k},oa.extend({Deferred:function(b){var c=[["notify","progress",oa.Callbacks("memory"),oa.Callbacks("memory"),2],["resolve","done",oa.Callbacks("once memory"),oa.Callbacks("once memory"),0,"resolved"],["reject","fail",oa.Callbacks("once memory"),oa.Callbacks("once memory"),1,"rejected"]],d="pending",e={state:function(){return d},always:function(){return f.done(arguments).fail(arguments),this},catch:function(a){return e.then(null,a)},pipe:function(){var a=arguments;return oa.Deferred(function(b){oa.each(c,function(c,d){var e=oa.isFunction(a[d[4]])&&a[d[4]];f[d[1]](function(){var a=e&&e.apply(this,arguments);a&&oa.isFunction(a.promise)?a.promise().progress(b.notify).done(b.resolve).fail(b.reject):b[d[0]+"With"](this,e?[a]:arguments)})}),a=null}).promise()},then:function(b,d,e){function f(b,c,d,e){return function(){var j=this,k=arguments,l=function(){var a,l;if(!(b<g)){if(a=d.apply(j,k),a===c.promise())throw new TypeError("Thenable self-resolution");l=a&&("object"==typeof a||"function"==typeof a)&&a.then,oa.isFunction(l)?e?l.call(a,f(g,c,h,e),f(g,c,i,e)):(g++,l.call(a,f(g,c,h,e),f(g,c,i,e),f(g,c,h,c.notifyWith))):(d!==h&&(j=void 0,k=[a]),(e||c.resolveWith)(j,k))}},m=e?l:function(){try{l()}catch(a){oa.Deferred.exceptionHook&&oa.Deferred.exceptionHook(a,m.stackTrace),b+1>=g&&(d!==i&&(j=void 0,k=[a]),c.rejectWith(j,k))}};b?m():(oa.Deferred.getStackHook&&(m.stackTrace=oa.Deferred.getStackHook()),a.setTimeout(m))}}var g=0;return oa.Deferred(function(a){c[0][3].add(f(0,a,oa.isFunction(e)?e:h,a.notifyWith)),c[1][3].add(f(0,a,oa.isFunction(b)?b:h)),c[2][3].add(f(0,a,oa.isFunction(d)?d:i))}).promise()},promise:function(a){return null!=a?oa.extend(a,e):e}},f={};return oa.each(c,function(a,b){var g=b[2],h=b[5];e[b[1]]=g.add,h&&g.add(function(){d=h},c[3-a][2].disable,c[0][2].lock),g.add(b[3].fire),f[b[0]]=function(){return f[b[0]+"With"](this===f?void 0:this,arguments),this},f[b[0]+"With"]=g.fireWith}),e.promise(f),b&&b.call(f,f),f},when:function(a){var b=arguments.length,c=b,d=Array(c),e=da.call(arguments),f=oa.Deferred(),g=function(a){return function(c){d[a]=this,e[a]=arguments.length>1?da.call(arguments):c,--b||f.resolveWith(d,e)}};if(b<=1&&(j(a,f.done(g(c)).resolve,f.reject),"pending"===f.state()||oa.isFunction(e[c]&&e[c].then)))return f.then();for(;c--;)j(e[c],g(c),f.reject);return f.promise()}});var Fa=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;oa.Deferred.exceptionHook=function(b,c){a.console&&a.console.warn&&b&&Fa.test(b.name)&&a.console.warn("jQuery.Deferred exception: "+b.message,b.stack,c)},oa.readyException=function(b){a.setTimeout(function(){throw b})};var Ga=oa.Deferred();oa.fn.ready=function(a){return Ga.then(a).catch(function(a){oa.readyException(a)}),this},oa.extend({isReady:!1,readyWait:1,holdReady:function(a){a?oa.readyWait++:oa.ready(!0)},ready:function(a){(a===!0?--oa.readyWait:oa.isReady)||(oa.isReady=!0,a!==!0&&--oa.readyWait>0||Ga.resolveWith(ba,[oa]))}}),oa.ready.then=Ga.then,"complete"===ba.readyState||"loading"!==ba.readyState&&!ba.documentElement.doScroll?a.setTimeout(oa.ready):(ba.addEventListener("DOMContentLoaded",k),a.addEventListener("load",k));var Ha=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if("object"===oa.type(c)){e=!0;for(h in c)Ha(a,b,h,c[h],!0,f,g)}else if(void 0!==d&&(e=!0,oa.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(oa(a),c)})),b))for(;h<i;h++)b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)));return e?a:j?b.call(a):i?b(a[0],c):f},Ia=function(a){return 1===a.nodeType||9===a.nodeType||!+a.nodeType};l.uid=1,l.prototype={cache:function(a){var b=a[this.expando];return b||(b={},Ia(a)&&(a.nodeType?a[this.expando]=b:Object.defineProperty(a,this.expando,{value:b,configurable:!0}))),b},set:function(a,b,c){var d,e=this.cache(a);if("string"==typeof b)e[oa.camelCase(b)]=c;else for(d in b)e[oa.camelCase(d)]=b[d];return e},get:function(a,b){return void 0===b?this.cache(a):a[this.expando]&&a[this.expando][oa.camelCase(b)]},access:function(a,b,c){return void 0===b||b&&"string"==typeof b&&void 0===c?this.get(a,b):(this.set(a,b,c),void 0!==c?c:b)},remove:function(a,b){var c,d=a[this.expando];if(void 0!==d){if(void 0!==b){oa.isArray(b)?b=b.map(oa.camelCase):(b=oa.camelCase(b),b=b in d?[b]:b.match(Ea)||[]),c=b.length;for(;c--;)delete d[b[c]]}(void 0===b||oa.isEmptyObject(d))&&(a.nodeType?a[this.expando]=void 0:delete a[this.expando])}},hasData:function(a){var b=a[this.expando];return void 0!==b&&!oa.isEmptyObject(b)}};var Ja=new l,Ka=new l,La=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Ma=/[A-Z]/g;oa.extend({hasData:function(a){return Ka.hasData(a)||Ja.hasData(a)},data:function(a,b,c){return Ka.access(a,b,c)},removeData:function(a,b){Ka.remove(a,b)},_data:function(a,b,c){return Ja.access(a,b,c)},_removeData:function(a,b){Ja.remove(a,b)}}),oa.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=Ka.get(f),1===f.nodeType&&!Ja.get(f,"hasDataAttrs"))){for(c=g.length;c--;)g[c]&&(d=g[c].name,0===d.indexOf("data-")&&(d=oa.camelCase(d.slice(5)),n(f,d,e[d])));Ja.set(f,"hasDataAttrs",!0)}return e}return"object"==typeof a?this.each(function(){Ka.set(this,a)}):Ha(this,function(b){var c;if(f&&void 0===b){if(c=Ka.get(f,a),void 0!==c)return c;if(c=n(f,a),void 0!==c)return c}else this.each(function(){Ka.set(this,a,b)})},null,b,arguments.length>1,null,!0)},removeData:function(a){return this.each(function(){Ka.remove(this,a)})}}),oa.extend({queue:function(a,b,c){var d;if(a)return b=(b||"fx")+"queue",d=Ja.get(a,b),c&&(!d||oa.isArray(c)?d=Ja.access(a,b,oa.makeArray(c)):d.push(c)),d||[]},dequeue:function(a,b){b=b||"fx";var c=oa.queue(a,b),d=c.length,e=c.shift(),f=oa._queueHooks(a,b),g=function(){oa.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return Ja.get(a,c)||Ja.access(a,c,{empty:oa.Callbacks("once memory").add(function(){Ja.remove(a,[b+"queue",c])})})}}),oa.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.length<c?oa.queue(this[0],a):void 0===b?this:this.each(function(){var c=oa.queue(this,a,b);oa._queueHooks(this,a),"fx"===a&&"inprogress"!==c[0]&&oa.dequeue(this,a)})},dequeue:function(a){return this.each(function(){oa.dequeue(this,a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,b){var c,d=1,e=oa.Deferred(),f=this,g=this.length,h=function(){--d||e.resolveWith(f,[f])};for("string"!=typeof a&&(b=a,a=void 0),a=a||"fx";g--;)c=Ja.get(f[g],a+"queueHooks"),c&&c.empty&&(d++,c.empty.add(h));return h(),e.promise(b)}});var Na=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Oa=new RegExp("^(?:([+-])=|)("+Na+")([a-z%]*)$","i"),Pa=["Top","Right","Bottom","Left"],Qa=function(a,b){return a=b||a,"none"===a.style.display||""===a.style.display&&oa.contains(a.ownerDocument,a)&&"none"===oa.css(a,"display")},Ra=function(a,b,c,d){var e,f,g={};for(f in b)g[f]=a.style[f],a.style[f]=b[f];e=c.apply(a,d||[]);for(f in b)a.style[f]=g[f];return e},Sa={};oa.fn.extend({show:function(){return q(this,!0)},hide:function(){return q(this)},toggle:function(a){return"boolean"==typeof a?a?this.show():this.hide():this.each(function(){Qa(this)?oa(this).show():oa(this).hide()})}});var Ta=/^(?:checkbox|radio)$/i,Ua=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,Va=/^$|\/(?:java|ecma)script/i,Wa={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};Wa.optgroup=Wa.option,Wa.tbody=Wa.tfoot=Wa.colgroup=Wa.caption=Wa.thead,Wa.th=Wa.td;var Xa=/<|&#?\w+;/;!function(){var a=ba.createDocumentFragment(),b=a.appendChild(ba.createElement("div")),c=ba.createElement("input");c.setAttribute("type","radio"),c.setAttribute("checked","checked"),c.setAttribute("name","t"),b.appendChild(c),ma.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked,b.innerHTML="<textarea>x</textarea>",ma.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue}();var Ya=ba.documentElement,Za=/^key/,$a=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,_a=/^([^.]*)(?:\.(.+)|)/;oa.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,n,o,p,q=Ja.get(a);if(q)for(c.handler&&(f=c,c=f.handler,e=f.selector),e&&oa.find.matchesSelector(Ya,e),c.guid||(c.guid=oa.guid++),(i=q.events)||(i=q.events={}),(g=q.handle)||(g=q.handle=function(b){return"undefined"!=typeof oa&&oa.event.triggered!==b.type?oa.event.dispatch.apply(a,arguments):void 0}),b=(b||"").match(Ea)||[""],j=b.length;j--;)h=_a.exec(b[j])||[],n=p=h[1],o=(h[2]||"").split(".").sort(),n&&(l=oa.event.special[n]||{},n=(e?l.delegateType:l.bindType)||n,l=oa.event.special[n]||{},k=oa.extend({type:n,origType:p,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&oa.expr.match.needsContext.test(e),namespace:o.join(".")},f),(m=i[n])||(m=i[n]=[],m.delegateCount=0,l.setup&&l.setup.call(a,d,o,g)!==!1||a.addEventListener&&a.addEventListener(n,g)),l.add&&(l.add.call(a,k),k.handler.guid||(k.handler.guid=c.guid)),e?m.splice(m.delegateCount++,0,k):m.push(k),oa.event.global[n]=!0)},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,n,o,p,q=Ja.hasData(a)&&Ja.get(a);if(q&&(i=q.events)){for(b=(b||"").match(Ea)||[""],j=b.length;j--;)if(h=_a.exec(b[j])||[],n=p=h[1],o=(h[2]||"").split(".").sort(),n){for(l=oa.event.special[n]||{},n=(d?l.delegateType:l.bindType)||n,m=i[n]||[],h=h[2]&&new RegExp("(^|\\.)"+o.join("\\.(?:.*\\.|)")+"(\\.|$)"),g=f=m.length;f--;)k=m[f],!e&&p!==k.origType||c&&c.guid!==k.guid||h&&!h.test(k.namespace)||d&&d!==k.selector&&("**"!==d||!k.selector)||(m.splice(f,1),k.selector&&m.delegateCount--,l.remove&&l.remove.call(a,k));g&&!m.length&&(l.teardown&&l.teardown.call(a,o,q.handle)!==!1||oa.removeEvent(a,n,q.handle),delete i[n])}else for(n in i)oa.event.remove(a,n+b[j],c,d,!0);oa.isEmptyObject(i)&&Ja.remove(a,"handle events")}},dispatch:function(a){var b,c,d,e,f,g,h=oa.event.fix(a),i=new Array(arguments.length),j=(Ja.get(this,"events")||{})[h.type]||[],k=oa.event.special[h.type]||{};for(i[0]=h,b=1;b<arguments.length;b++)i[b]=arguments[b];if(h.delegateTarget=this,!k.preDispatch||k.preDispatch.call(this,h)!==!1){for(g=oa.event.handlers.call(this,h,j),b=0;(e=g[b++])&&!h.isPropagationStopped();)for(h.currentTarget=e.elem,c=0;(f=e.handlers[c++])&&!h.isImmediatePropagationStopped();)h.rnamespace&&!h.rnamespace.test(f.namespace)||(h.handleObj=f,h.data=f.data,d=((oa.event.special[f.origType]||{}).handle||f.handler).apply(e.elem,i),void 0!==d&&(h.result=d)===!1&&(h.preventDefault(),h.stopPropagation()));return k.postDispatch&&k.postDispatch.call(this,h),h.result}},handlers:function(a,b){var c,d,e,f,g,h=[],i=b.delegateCount,j=a.target;if(i&&j.nodeType&&!("click"===a.type&&a.button>=1))for(;j!==this;j=j.parentNode||this)if(1===j.nodeType&&("click"!==a.type||j.disabled!==!0)){for(f=[],g={},c=0;c<i;c++)d=b[c],e=d.selector+" ",void 0===g[e]&&(g[e]=d.needsContext?oa(e,this).index(j)>-1:oa.find(e,this,null,[j]).length),g[e]&&f.push(d);f.length&&h.push({elem:j,handlers:f})}return j=this,i<b.length&&h.push({elem:j,handlers:b.slice(i)}),h},addProp:function(a,b){Object.defineProperty(oa.Event.prototype,a,{enumerable:!0,configurable:!0,get:oa.isFunction(b)?function(){if(this.originalEvent)return b(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[a]},set:function(b){Object.defineProperty(this,a,{enumerable:!0,configurable:!0,writable:!0,value:b})}})},fix:function(a){return a[oa.expando]?a:new oa.Event(a)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==w()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===w()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&oa.nodeName(this,"input"))return this.click(),!1},_default:function(a){return oa.nodeName(a.target,"a")}},beforeunload:{postDispatch:function(a){void 0!==a.result&&a.originalEvent&&(a.originalEvent.returnValue=a.result)}}}},oa.removeEvent=function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c)},oa.Event=function(a,b){return this instanceof oa.Event?(a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||void 0===a.defaultPrevented&&a.returnValue===!1?u:v,this.target=a.target&&3===a.target.nodeType?a.target.parentNode:a.target,this.currentTarget=a.currentTarget,this.relatedTarget=a.relatedTarget):this.type=a,b&&oa.extend(this,b),this.timeStamp=a&&a.timeStamp||oa.now(),void(this[oa.expando]=!0)):new oa.Event(a,b)},oa.Event.prototype={constructor:oa.Event,isDefaultPrevented:v,isPropagationStopped:v,isImmediatePropagationStopped:v,isSimulated:!1,preventDefault:function(){var a=this.originalEvent;this.isDefaultPrevented=u,a&&!this.isSimulated&&a.preventDefault()},stopPropagation:function(){var a=this.originalEvent;this.isPropagationStopped=u,a&&!this.isSimulated&&a.stopPropagation()},stopImmediatePropagation:function(){var a=this.originalEvent;this.isImmediatePropagationStopped=u,a&&!this.isSimulated&&a.stopImmediatePropagation(),this.stopPropagation()}},oa.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(a){var b=a.button;return null==a.which&&Za.test(a.type)?null!=a.charCode?a.charCode:a.keyCode:!a.which&&void 0!==b&&$a.test(a.type)?1&b?1:2&b?3:4&b?2:0:a.which}},oa.event.addProp),oa.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(a,b){oa.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c,d=this,e=a.relatedTarget,f=a.handleObj;return e&&(e===d||oa.contains(d,e))||(a.type=f.origType,c=f.handler.apply(this,arguments),a.type=b),c}}}),oa.fn.extend({on:function(a,b,c,d){return x(this,a,b,c,d)},one:function(a,b,c,d){return x(this,a,b,c,d,1)},off:function(a,b,c){var d,e;if(a&&a.preventDefault&&a.handleObj)return d=a.handleObj,oa(a.delegateTarget).off(d.namespace?d.origType+"."+d.namespace:d.origType,d.selector,d.handler),this;if("object"==typeof a){for(e in a)this.off(e,b,a[e]);return this}return b!==!1&&"function"!=typeof b||(c=b,b=void 0),c===!1&&(c=v),this.each(function(){oa.event.remove(this,a,c,b)})}});var ab=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,bb=/<script|<style|<link/i,cb=/checked\s*(?:[^=]|=\s*.checked.)/i,db=/^true\/(.*)/,eb=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;oa.extend({htmlPrefilter:function(a){return a.replace(ab,"<$1></$2>");
},clone:function(a,b,c){var d,e,f,g,h=a.cloneNode(!0),i=oa.contains(a.ownerDocument,a);if(!(ma.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||oa.isXMLDoc(a)))for(g=r(h),f=r(a),d=0,e=f.length;d<e;d++)C(f[d],g[d]);if(b)if(c)for(f=f||r(a),g=g||r(h),d=0,e=f.length;d<e;d++)B(f[d],g[d]);else B(a,h);return g=r(h,"script"),g.length>0&&s(g,!i&&r(a,"script")),h},cleanData:function(a){for(var b,c,d,e=oa.event.special,f=0;void 0!==(c=a[f]);f++)if(Ia(c)){if(b=c[Ja.expando]){if(b.events)for(d in b.events)e[d]?oa.event.remove(c,d):oa.removeEvent(c,d,b.handle);c[Ja.expando]=void 0}c[Ka.expando]&&(c[Ka.expando]=void 0)}}}),oa.fn.extend({detach:function(a){return E(this,a,!0)},remove:function(a){return E(this,a)},text:function(a){return Ha(this,function(a){return void 0===a?oa.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=a)})},null,a,arguments.length)},append:function(){return D(this,arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=y(this,a);b.appendChild(a)}})},prepend:function(){return D(this,arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=y(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return D(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return D(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},empty:function(){for(var a,b=0;null!=(a=this[b]);b++)1===a.nodeType&&(oa.cleanData(r(a,!1)),a.textContent="");return this},clone:function(a,b){return a=null!=a&&a,b=null==b?a:b,this.map(function(){return oa.clone(this,a,b)})},html:function(a){return Ha(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a&&1===b.nodeType)return b.innerHTML;if("string"==typeof a&&!bb.test(a)&&!Wa[(Ua.exec(a)||["",""])[1].toLowerCase()]){a=oa.htmlPrefilter(a);try{for(;c<d;c++)b=this[c]||{},1===b.nodeType&&(oa.cleanData(r(b,!1)),b.innerHTML=a);b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=[];return D(this,arguments,function(b){var c=this.parentNode;oa.inArray(this,a)<0&&(oa.cleanData(r(this)),c&&c.replaceChild(b,this))},a)}}),oa.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){oa.fn[a]=function(a){for(var c,d=[],e=oa(a),f=e.length-1,g=0;g<=f;g++)c=g===f?this:this.clone(!0),oa(e[g])[b](c),fa.apply(d,c.get());return this.pushStack(d)}});var fb=/^margin/,gb=new RegExp("^("+Na+")(?!px)[a-z%]+$","i"),hb=function(b){var c=b.ownerDocument.defaultView;return c&&c.opener||(c=a),c.getComputedStyle(b)};!function(){function b(){if(h){h.style.cssText="box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",h.innerHTML="",Ya.appendChild(g);var b=a.getComputedStyle(h);c="1%"!==b.top,f="2px"===b.marginLeft,d="4px"===b.width,h.style.marginRight="50%",e="4px"===b.marginRight,Ya.removeChild(g),h=null}}var c,d,e,f,g=ba.createElement("div"),h=ba.createElement("div");h.style&&(h.style.backgroundClip="content-box",h.cloneNode(!0).style.backgroundClip="",ma.clearCloneStyle="content-box"===h.style.backgroundClip,g.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",g.appendChild(h),oa.extend(ma,{pixelPosition:function(){return b(),c},boxSizingReliable:function(){return b(),d},pixelMarginRight:function(){return b(),e},reliableMarginLeft:function(){return b(),f}}))}();var ib=/^(none|table(?!-c[ea]).+)/,jb={position:"absolute",visibility:"hidden",display:"block"},kb={letterSpacing:"0",fontWeight:"400"},lb=["Webkit","Moz","ms"],mb=ba.createElement("div").style;oa.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=F(a,"opacity");return""===c?"1":c}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:"cssFloat"},style:function(a,b,c,d){if(a&&3!==a.nodeType&&8!==a.nodeType&&a.style){var e,f,g,h=oa.camelCase(b),i=a.style;return b=oa.cssProps[h]||(oa.cssProps[h]=H(h)||h),g=oa.cssHooks[b]||oa.cssHooks[h],void 0===c?g&&"get"in g&&void 0!==(e=g.get(a,!1,d))?e:i[b]:(f=typeof c,"string"===f&&(e=Oa.exec(c))&&e[1]&&(c=o(a,b,e),f="number"),null!=c&&c===c&&("number"===f&&(c+=e&&e[3]||(oa.cssNumber[h]?"":"px")),ma.clearCloneStyle||""!==c||0!==b.indexOf("background")||(i[b]="inherit"),g&&"set"in g&&void 0===(c=g.set(a,c,d))||(i[b]=c)),void 0)}},css:function(a,b,c,d){var e,f,g,h=oa.camelCase(b);return b=oa.cssProps[h]||(oa.cssProps[h]=H(h)||h),g=oa.cssHooks[b]||oa.cssHooks[h],g&&"get"in g&&(e=g.get(a,!0,c)),void 0===e&&(e=F(a,b,d)),"normal"===e&&b in kb&&(e=kb[b]),""===c||c?(f=parseFloat(e),c===!0||isFinite(f)?f||0:e):e}}),oa.each(["height","width"],function(a,b){oa.cssHooks[b]={get:function(a,c,d){if(c)return!ib.test(oa.css(a,"display"))||a.getClientRects().length&&a.getBoundingClientRect().width?K(a,b,d):Ra(a,jb,function(){return K(a,b,d)})},set:function(a,c,d){var e,f=d&&hb(a),g=d&&J(a,b,d,"border-box"===oa.css(a,"boxSizing",!1,f),f);return g&&(e=Oa.exec(c))&&"px"!==(e[3]||"px")&&(a.style[b]=c,c=oa.css(a,b)),I(a,c,g)}}}),oa.cssHooks.marginLeft=G(ma.reliableMarginLeft,function(a,b){if(b)return(parseFloat(F(a,"marginLeft"))||a.getBoundingClientRect().left-Ra(a,{marginLeft:0},function(){return a.getBoundingClientRect().left}))+"px"}),oa.each({margin:"",padding:"",border:"Width"},function(a,b){oa.cssHooks[a+b]={expand:function(c){for(var d=0,e={},f="string"==typeof c?c.split(" "):[c];d<4;d++)e[a+Pa[d]+b]=f[d]||f[d-2]||f[0];return e}},fb.test(a)||(oa.cssHooks[a+b].set=I)}),oa.fn.extend({css:function(a,b){return Ha(this,function(a,b,c){var d,e,f={},g=0;if(oa.isArray(b)){for(d=hb(a),e=b.length;g<e;g++)f[b[g]]=oa.css(a,b[g],!1,d);return f}return void 0!==c?oa.style(a,b,c):oa.css(a,b)},a,b,arguments.length>1)}}),oa.Tween=L,L.prototype={constructor:L,init:function(a,b,c,d,e,f){this.elem=a,this.prop=c,this.easing=e||oa.easing._default,this.options=b,this.start=this.now=this.cur(),this.end=d,this.unit=f||(oa.cssNumber[c]?"":"px")},cur:function(){var a=L.propHooks[this.prop];return a&&a.get?a.get(this):L.propHooks._default.get(this)},run:function(a){var b,c=L.propHooks[this.prop];return this.options.duration?this.pos=b=oa.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):this.pos=b=a,this.now=(this.end-this.start)*b+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),c&&c.set?c.set(this):L.propHooks._default.set(this),this}},L.prototype.init.prototype=L.prototype,L.propHooks={_default:{get:function(a){var b;return 1!==a.elem.nodeType||null!=a.elem[a.prop]&&null==a.elem.style[a.prop]?a.elem[a.prop]:(b=oa.css(a.elem,a.prop,""),b&&"auto"!==b?b:0)},set:function(a){oa.fx.step[a.prop]?oa.fx.step[a.prop](a):1!==a.elem.nodeType||null==a.elem.style[oa.cssProps[a.prop]]&&!oa.cssHooks[a.prop]?a.elem[a.prop]=a.now:oa.style(a.elem,a.prop,a.now+a.unit)}}},L.propHooks.scrollTop=L.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}},oa.easing={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2},_default:"swing"},oa.fx=L.prototype.init,oa.fx.step={};var nb,ob,pb=/^(?:toggle|show|hide)$/,qb=/queueHooks$/;oa.Animation=oa.extend(S,{tweeners:{"*":[function(a,b){var c=this.createTween(a,b);return o(c.elem,a,Oa.exec(b),c),c}]},tweener:function(a,b){oa.isFunction(a)?(b=a,a=["*"]):a=a.match(Ea);for(var c,d=0,e=a.length;d<e;d++)c=a[d],S.tweeners[c]=S.tweeners[c]||[],S.tweeners[c].unshift(b)},prefilters:[Q],prefilter:function(a,b){b?S.prefilters.unshift(a):S.prefilters.push(a)}}),oa.speed=function(a,b,c){var d=a&&"object"==typeof a?oa.extend({},a):{complete:c||!c&&b||oa.isFunction(a)&&a,duration:a,easing:c&&b||b&&!oa.isFunction(b)&&b};return oa.fx.off||ba.hidden?d.duration=0:"number"!=typeof d.duration&&(d.duration in oa.fx.speeds?d.duration=oa.fx.speeds[d.duration]:d.duration=oa.fx.speeds._default),null!=d.queue&&d.queue!==!0||(d.queue="fx"),d.old=d.complete,d.complete=function(){oa.isFunction(d.old)&&d.old.call(this),d.queue&&oa.dequeue(this,d.queue)},d},oa.fn.extend({fadeTo:function(a,b,c,d){return this.filter(Qa).css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){var e=oa.isEmptyObject(a),f=oa.speed(b,c,d),g=function(){var b=S(this,oa.extend({},a),f);(e||Ja.get(this,"finish"))&&b.stop(!0)};return g.finish=g,e||f.queue===!1?this.each(g):this.queue(f.queue,g)},stop:function(a,b,c){var d=function(a){var b=a.stop;delete a.stop,b(c)};return"string"!=typeof a&&(c=b,b=a,a=void 0),b&&a!==!1&&this.queue(a||"fx",[]),this.each(function(){var b=!0,e=null!=a&&a+"queueHooks",f=oa.timers,g=Ja.get(this);if(e)g[e]&&g[e].stop&&d(g[e]);else for(e in g)g[e]&&g[e].stop&&qb.test(e)&&d(g[e]);for(e=f.length;e--;)f[e].elem!==this||null!=a&&f[e].queue!==a||(f[e].anim.stop(c),b=!1,f.splice(e,1));!b&&c||oa.dequeue(this,a)})},finish:function(a){return a!==!1&&(a=a||"fx"),this.each(function(){var b,c=Ja.get(this),d=c[a+"queue"],e=c[a+"queueHooks"],f=oa.timers,g=d?d.length:0;for(c.finish=!0,oa.queue(this,a,[]),e&&e.stop&&e.stop.call(this,!0),b=f.length;b--;)f[b].elem===this&&f[b].queue===a&&(f[b].anim.stop(!0),f.splice(b,1));for(b=0;b<g;b++)d[b]&&d[b].finish&&d[b].finish.call(this);delete c.finish})}}),oa.each(["toggle","show","hide"],function(a,b){var c=oa.fn[b];oa.fn[b]=function(a,d,e){return null==a||"boolean"==typeof a?c.apply(this,arguments):this.animate(O(b,!0),a,d,e)}}),oa.each({slideDown:O("show"),slideUp:O("hide"),slideToggle:O("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){oa.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),oa.timers=[],oa.fx.tick=function(){var a,b=0,c=oa.timers;for(nb=oa.now();b<c.length;b++)a=c[b],a()||c[b]!==a||c.splice(b--,1);c.length||oa.fx.stop(),nb=void 0},oa.fx.timer=function(a){oa.timers.push(a),a()?oa.fx.start():oa.timers.pop()},oa.fx.interval=13,oa.fx.start=function(){ob||(ob=a.requestAnimationFrame?a.requestAnimationFrame(M):a.setInterval(oa.fx.tick,oa.fx.interval))},oa.fx.stop=function(){a.cancelAnimationFrame?a.cancelAnimationFrame(ob):a.clearInterval(ob),ob=null},oa.fx.speeds={slow:600,fast:200,_default:400},oa.fn.delay=function(b,c){return b=oa.fx?oa.fx.speeds[b]||b:b,c=c||"fx",this.queue(c,function(c,d){var e=a.setTimeout(c,b);d.stop=function(){a.clearTimeout(e)}})},function(){var a=ba.createElement("input"),b=ba.createElement("select"),c=b.appendChild(ba.createElement("option"));a.type="checkbox",ma.checkOn=""!==a.value,ma.optSelected=c.selected,a=ba.createElement("input"),a.value="t",a.type="radio",ma.radioValue="t"===a.value}();var rb,sb=oa.expr.attrHandle;oa.fn.extend({attr:function(a,b){return Ha(this,oa.attr,a,b,arguments.length>1)},removeAttr:function(a){return this.each(function(){oa.removeAttr(this,a)})}}),oa.extend({attr:function(a,b,c){var d,e,f=a.nodeType;if(3!==f&&8!==f&&2!==f)return"undefined"==typeof a.getAttribute?oa.prop(a,b,c):(1===f&&oa.isXMLDoc(a)||(e=oa.attrHooks[b.toLowerCase()]||(oa.expr.match.bool.test(b)?rb:void 0)),void 0!==c?null===c?void oa.removeAttr(a,b):e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:(a.setAttribute(b,c+""),c):e&&"get"in e&&null!==(d=e.get(a,b))?d:(d=oa.find.attr(a,b),null==d?void 0:d))},attrHooks:{type:{set:function(a,b){if(!ma.radioValue&&"radio"===b&&oa.nodeName(a,"input")){var c=a.value;return a.setAttribute("type",b),c&&(a.value=c),b}}}},removeAttr:function(a,b){var c,d=0,e=b&&b.match(Ea);if(e&&1===a.nodeType)for(;c=e[d++];)a.removeAttribute(c)}}),rb={set:function(a,b,c){return b===!1?oa.removeAttr(a,c):a.setAttribute(c,c),c}},oa.each(oa.expr.match.bool.source.match(/\w+/g),function(a,b){var c=sb[b]||oa.find.attr;sb[b]=function(a,b,d){var e,f,g=b.toLowerCase();return d||(f=sb[g],sb[g]=e,e=null!=c(a,b,d)?g:null,sb[g]=f),e}});var tb=/^(?:input|select|textarea|button)$/i,ub=/^(?:a|area)$/i;oa.fn.extend({prop:function(a,b){return Ha(this,oa.prop,a,b,arguments.length>1)},removeProp:function(a){return this.each(function(){delete this[oa.propFix[a]||a]})}}),oa.extend({prop:function(a,b,c){var d,e,f=a.nodeType;if(3!==f&&8!==f&&2!==f)return 1===f&&oa.isXMLDoc(a)||(b=oa.propFix[b]||b,e=oa.propHooks[b]),void 0!==c?e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:a[b]=c:e&&"get"in e&&null!==(d=e.get(a,b))?d:a[b]},propHooks:{tabIndex:{get:function(a){var b=oa.find.attr(a,"tabindex");return b?parseInt(b,10):tb.test(a.nodeName)||ub.test(a.nodeName)&&a.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),ma.optSelected||(oa.propHooks.selected={get:function(a){var b=a.parentNode;return b&&b.parentNode&&b.parentNode.selectedIndex,null},set:function(a){var b=a.parentNode;b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex)}}),oa.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){oa.propFix[this.toLowerCase()]=this}),oa.fn.extend({addClass:function(a){var b,c,d,e,f,g,h,i=0;if(oa.isFunction(a))return this.each(function(b){oa(this).addClass(a.call(this,b,U(this)))});if("string"==typeof a&&a)for(b=a.match(Ea)||[];c=this[i++];)if(e=U(c),d=1===c.nodeType&&" "+T(e)+" "){for(g=0;f=b[g++];)d.indexOf(" "+f+" ")<0&&(d+=f+" ");h=T(d),e!==h&&c.setAttribute("class",h)}return this},removeClass:function(a){var b,c,d,e,f,g,h,i=0;if(oa.isFunction(a))return this.each(function(b){oa(this).removeClass(a.call(this,b,U(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof a&&a)for(b=a.match(Ea)||[];c=this[i++];)if(e=U(c),d=1===c.nodeType&&" "+T(e)+" "){for(g=0;f=b[g++];)for(;d.indexOf(" "+f+" ")>-1;)d=d.replace(" "+f+" "," ");h=T(d),e!==h&&c.setAttribute("class",h)}return this},toggleClass:function(a,b){var c=typeof a;return"boolean"==typeof b&&"string"===c?b?this.addClass(a):this.removeClass(a):oa.isFunction(a)?this.each(function(c){oa(this).toggleClass(a.call(this,c,U(this),b),b)}):this.each(function(){var b,d,e,f;if("string"===c)for(d=0,e=oa(this),f=a.match(Ea)||[];b=f[d++];)e.hasClass(b)?e.removeClass(b):e.addClass(b);else void 0!==a&&"boolean"!==c||(b=U(this),b&&Ja.set(this,"__className__",b),this.setAttribute&&this.setAttribute("class",b||a===!1?"":Ja.get(this,"__className__")||""))})},hasClass:function(a){var b,c,d=0;for(b=" "+a+" ";c=this[d++];)if(1===c.nodeType&&(" "+T(U(c))+" ").indexOf(b)>-1)return!0;return!1}});var vb=/\r/g;oa.fn.extend({val:function(a){var b,c,d,e=this[0];{if(arguments.length)return d=oa.isFunction(a),this.each(function(c){var e;1===this.nodeType&&(e=d?a.call(this,c,oa(this).val()):a,null==e?e="":"number"==typeof e?e+="":oa.isArray(e)&&(e=oa.map(e,function(a){return null==a?"":a+""})),b=oa.valHooks[this.type]||oa.valHooks[this.nodeName.toLowerCase()],b&&"set"in b&&void 0!==b.set(this,e,"value")||(this.value=e))});if(e)return b=oa.valHooks[e.type]||oa.valHooks[e.nodeName.toLowerCase()],b&&"get"in b&&void 0!==(c=b.get(e,"value"))?c:(c=e.value,"string"==typeof c?c.replace(vb,""):null==c?"":c)}}}),oa.extend({valHooks:{option:{get:function(a){var b=oa.find.attr(a,"value");return null!=b?b:T(oa.text(a))}},select:{get:function(a){var b,c,d,e=a.options,f=a.selectedIndex,g="select-one"===a.type,h=g?null:[],i=g?f+1:e.length;for(d=f<0?i:g?f:0;d<i;d++)if(c=e[d],(c.selected||d===f)&&!c.disabled&&(!c.parentNode.disabled||!oa.nodeName(c.parentNode,"optgroup"))){if(b=oa(c).val(),g)return b;h.push(b)}return h},set:function(a,b){for(var c,d,e=a.options,f=oa.makeArray(b),g=e.length;g--;)d=e[g],(d.selected=oa.inArray(oa.valHooks.option.get(d),f)>-1)&&(c=!0);return c||(a.selectedIndex=-1),f}}}}),oa.each(["radio","checkbox"],function(){oa.valHooks[this]={set:function(a,b){if(oa.isArray(b))return a.checked=oa.inArray(oa(a).val(),b)>-1}},ma.checkOn||(oa.valHooks[this].get=function(a){return null===a.getAttribute("value")?"on":a.value})});var wb=/^(?:focusinfocus|focusoutblur)$/;oa.extend(oa.event,{trigger:function(b,c,d,e){var f,g,h,i,j,k,l,m=[d||ba],n=ja.call(b,"type")?b.type:b,o=ja.call(b,"namespace")?b.namespace.split("."):[];if(g=h=d=d||ba,3!==d.nodeType&&8!==d.nodeType&&!wb.test(n+oa.event.triggered)&&(n.indexOf(".")>-1&&(o=n.split("."),n=o.shift(),o.sort()),j=n.indexOf(":")<0&&"on"+n,b=b[oa.expando]?b:new oa.Event(n,"object"==typeof b&&b),b.isTrigger=e?2:3,b.namespace=o.join("."),b.rnamespace=b.namespace?new RegExp("(^|\\.)"+o.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=d),c=null==c?[b]:oa.makeArray(c,[b]),l=oa.event.special[n]||{},e||!l.trigger||l.trigger.apply(d,c)!==!1)){if(!e&&!l.noBubble&&!oa.isWindow(d)){for(i=l.delegateType||n,wb.test(i+n)||(g=g.parentNode);g;g=g.parentNode)m.push(g),h=g;h===(d.ownerDocument||ba)&&m.push(h.defaultView||h.parentWindow||a)}for(f=0;(g=m[f++])&&!b.isPropagationStopped();)b.type=f>1?i:l.bindType||n,k=(Ja.get(g,"events")||{})[b.type]&&Ja.get(g,"handle"),k&&k.apply(g,c),k=j&&g[j],k&&k.apply&&Ia(g)&&(b.result=k.apply(g,c),b.result===!1&&b.preventDefault());return b.type=n,e||b.isDefaultPrevented()||l._default&&l._default.apply(m.pop(),c)!==!1||!Ia(d)||j&&oa.isFunction(d[n])&&!oa.isWindow(d)&&(h=d[j],h&&(d[j]=null),oa.event.triggered=n,d[n](),oa.event.triggered=void 0,h&&(d[j]=h)),b.result}},simulate:function(a,b,c){var d=oa.extend(new oa.Event,c,{type:a,isSimulated:!0});oa.event.trigger(d,null,b)}}),oa.fn.extend({trigger:function(a,b){return this.each(function(){oa.event.trigger(a,b,this)})},triggerHandler:function(a,b){var c=this[0];if(c)return oa.event.trigger(a,b,c,!0)}}),oa.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(a,b){oa.fn[b]=function(a,c){return arguments.length>0?this.on(b,null,a,c):this.trigger(b)}}),oa.fn.extend({hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}}),ma.focusin="onfocusin"in a,ma.focusin||oa.each({focus:"focusin",blur:"focusout"},function(a,b){var c=function(a){oa.event.simulate(b,a.target,oa.event.fix(a))};oa.event.special[b]={setup:function(){var d=this.ownerDocument||this,e=Ja.access(d,b);e||d.addEventListener(a,c,!0),Ja.access(d,b,(e||0)+1)},teardown:function(){var d=this.ownerDocument||this,e=Ja.access(d,b)-1;e?Ja.access(d,b,e):(d.removeEventListener(a,c,!0),Ja.remove(d,b))}}});var xb=a.location,yb=oa.now(),zb=/\?/;oa.parseXML=function(b){var c;if(!b||"string"!=typeof b)return null;try{c=(new a.DOMParser).parseFromString(b,"text/xml")}catch(d){c=void 0}return c&&!c.getElementsByTagName("parsererror").length||oa.error("Invalid XML: "+b),c};var Ab=/\[\]$/,Bb=/\r?\n/g,Cb=/^(?:submit|button|image|reset|file)$/i,Db=/^(?:input|select|textarea|keygen)/i;oa.param=function(a,b){var c,d=[],e=function(a,b){var c=oa.isFunction(b)?b():b;d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(null==c?"":c)};if(oa.isArray(a)||a.jquery&&!oa.isPlainObject(a))oa.each(a,function(){e(this.name,this.value)});else for(c in a)V(c,a[c],b,e);return d.join("&")},oa.fn.extend({serialize:function(){return oa.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=oa.prop(this,"elements");return a?oa.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!oa(this).is(":disabled")&&Db.test(this.nodeName)&&!Cb.test(a)&&(this.checked||!Ta.test(a))}).map(function(a,b){var c=oa(this).val();return null==c?null:oa.isArray(c)?oa.map(c,function(a){return{name:b.name,value:a.replace(Bb,"\r\n")}}):{name:b.name,value:c.replace(Bb,"\r\n")}}).get()}});var Eb=/%20/g,Fb=/#.*$/,Gb=/([?&])_=[^&]*/,Hb=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ib=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Jb=/^(?:GET|HEAD)$/,Kb=/^\/\//,Lb={},Mb={},Nb="*/".concat("*"),Ob=ba.createElement("a");Ob.href=xb.href,oa.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:xb.href,type:"GET",isLocal:Ib.test(xb.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Nb,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":oa.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,b){return b?Y(Y(a,oa.ajaxSettings),b):Y(oa.ajaxSettings,a)},ajaxPrefilter:W(Lb),ajaxTransport:W(Mb),ajax:function(b,c){function d(b,c,d,h){var j,m,n,u,v,w=c;k||(k=!0,i&&a.clearTimeout(i),e=void 0,g=h||"",x.readyState=b>0?4:0,j=b>=200&&b<300||304===b,d&&(u=Z(o,x,d)),u=$(o,u,x,j),j?(o.ifModified&&(v=x.getResponseHeader("Last-Modified"),v&&(oa.lastModified[f]=v),v=x.getResponseHeader("etag"),v&&(oa.etag[f]=v)),204===b||"HEAD"===o.type?w="nocontent":304===b?w="notmodified":(w=u.state,m=u.data,n=u.error,j=!n)):(n=w,!b&&w||(w="error",b<0&&(b=0))),x.status=b,x.statusText=(c||w)+"",j?r.resolveWith(p,[m,w,x]):r.rejectWith(p,[x,w,n]),x.statusCode(t),t=void 0,l&&q.trigger(j?"ajaxSuccess":"ajaxError",[x,o,j?m:n]),s.fireWith(p,[x,w]),l&&(q.trigger("ajaxComplete",[x,o]),--oa.active||oa.event.trigger("ajaxStop")))}"object"==typeof b&&(c=b,b=void 0),c=c||{};var e,f,g,h,i,j,k,l,m,n,o=oa.ajaxSetup({},c),p=o.context||o,q=o.context&&(p.nodeType||p.jquery)?oa(p):oa.event,r=oa.Deferred(),s=oa.Callbacks("once memory"),t=o.statusCode||{},u={},v={},w="canceled",x={readyState:0,getResponseHeader:function(a){var b;if(k){if(!h)for(h={};b=Hb.exec(g);)h[b[1].toLowerCase()]=b[2];b=h[a.toLowerCase()]}return null==b?null:b},getAllResponseHeaders:function(){return k?g:null},setRequestHeader:function(a,b){return null==k&&(a=v[a.toLowerCase()]=v[a.toLowerCase()]||a,u[a]=b),this},overrideMimeType:function(a){return null==k&&(o.mimeType=a),this},statusCode:function(a){var b;if(a)if(k)x.always(a[x.status]);else for(b in a)t[b]=[t[b],a[b]];return this},abort:function(a){var b=a||w;return e&&e.abort(b),d(0,b),this}};if(r.promise(x),o.url=((b||o.url||xb.href)+"").replace(Kb,xb.protocol+"//"),o.type=c.method||c.type||o.method||o.type,o.dataTypes=(o.dataType||"*").toLowerCase().match(Ea)||[""],null==o.crossDomain){j=ba.createElement("a");try{j.href=o.url,j.href=j.href,o.crossDomain=Ob.protocol+"//"+Ob.host!=j.protocol+"//"+j.host}catch(y){o.crossDomain=!0}}if(o.data&&o.processData&&"string"!=typeof o.data&&(o.data=oa.param(o.data,o.traditional)),X(Lb,o,c,x),k)return x;l=oa.event&&o.global,l&&0===oa.active++&&oa.event.trigger("ajaxStart"),o.type=o.type.toUpperCase(),o.hasContent=!Jb.test(o.type),f=o.url.replace(Fb,""),o.hasContent?o.data&&o.processData&&0===(o.contentType||"").indexOf("application/x-www-form-urlencoded")&&(o.data=o.data.replace(Eb,"+")):(n=o.url.slice(f.length),o.data&&(f+=(zb.test(f)?"&":"?")+o.data,delete o.data),o.cache===!1&&(f=f.replace(Gb,"$1"),n=(zb.test(f)?"&":"?")+"_="+yb++ +n),o.url=f+n),o.ifModified&&(oa.lastModified[f]&&x.setRequestHeader("If-Modified-Since",oa.lastModified[f]),oa.etag[f]&&x.setRequestHeader("If-None-Match",oa.etag[f])),(o.data&&o.hasContent&&o.contentType!==!1||c.contentType)&&x.setRequestHeader("Content-Type",o.contentType),x.setRequestHeader("Accept",o.dataTypes[0]&&o.accepts[o.dataTypes[0]]?o.accepts[o.dataTypes[0]]+("*"!==o.dataTypes[0]?", "+Nb+"; q=0.01":""):o.accepts["*"]);for(m in o.headers)x.setRequestHeader(m,o.headers[m]);if(o.beforeSend&&(o.beforeSend.call(p,x,o)===!1||k))return x.abort();if(w="abort",s.add(o.complete),x.done(o.success),x.fail(o.error),e=X(Mb,o,c,x)){if(x.readyState=1,l&&q.trigger("ajaxSend",[x,o]),k)return x;o.async&&o.timeout>0&&(i=a.setTimeout(function(){x.abort("timeout")},o.timeout));try{k=!1,e.send(u,d)}catch(y){if(k)throw y;d(-1,y)}}else d(-1,"No Transport");return x},getJSON:function(a,b,c){return oa.get(a,b,c,"json")},getScript:function(a,b){return oa.get(a,void 0,b,"script")}}),oa.each(["get","post"],function(a,b){oa[b]=function(a,c,d,e){return oa.isFunction(c)&&(e=e||d,d=c,c=void 0),oa.ajax(oa.extend({url:a,type:b,dataType:e,data:c,success:d},oa.isPlainObject(a)&&a))}}),oa._evalUrl=function(a){return oa.ajax({url:a,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},oa.fn.extend({wrapAll:function(a){var b;return this[0]&&(oa.isFunction(a)&&(a=a.call(this[0])),b=oa(a,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){for(var a=this;a.firstElementChild;)a=a.firstElementChild;return a}).append(this)),this},wrapInner:function(a){return oa.isFunction(a)?this.each(function(b){oa(this).wrapInner(a.call(this,b))}):this.each(function(){var b=oa(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=oa.isFunction(a);return this.each(function(c){oa(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(a){return this.parent(a).not("body").each(function(){oa(this).replaceWith(this.childNodes)}),this}}),oa.expr.pseudos.hidden=function(a){return!oa.expr.pseudos.visible(a)},oa.expr.pseudos.visible=function(a){return!!(a.offsetWidth||a.offsetHeight||a.getClientRects().length)},oa.ajaxSettings.xhr=function(){try{return new a.XMLHttpRequest}catch(b){}};var Pb={0:200,1223:204},Qb=oa.ajaxSettings.xhr();ma.cors=!!Qb&&"withCredentials"in Qb,ma.ajax=Qb=!!Qb,oa.ajaxTransport(function(b){var c,d;if(ma.cors||Qb&&!b.crossDomain)return{send:function(e,f){var g,h=b.xhr();if(h.open(b.type,b.url,b.async,b.username,b.password),b.xhrFields)for(g in b.xhrFields)h[g]=b.xhrFields[g];b.mimeType&&h.overrideMimeType&&h.overrideMimeType(b.mimeType),b.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest");for(g in e)h.setRequestHeader(g,e[g]);c=function(a){return function(){c&&(c=d=h.onload=h.onerror=h.onabort=h.onreadystatechange=null,"abort"===a?h.abort():"error"===a?"number"!=typeof h.status?f(0,"error"):f(h.status,h.statusText):f(Pb[h.status]||h.status,h.statusText,"text"!==(h.responseType||"text")||"string"!=typeof h.responseText?{binary:h.response}:{text:h.responseText},h.getAllResponseHeaders()))}},h.onload=c(),d=h.onerror=c("error"),void 0!==h.onabort?h.onabort=d:h.onreadystatechange=function(){4===h.readyState&&a.setTimeout(function(){c&&d()})},c=c("abort");try{h.send(b.hasContent&&b.data||null)}catch(i){if(c)throw i}},abort:function(){c&&c()}}}),oa.ajaxPrefilter(function(a){a.crossDomain&&(a.contents.script=!1)}),oa.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(a){return oa.globalEval(a),a}}}),oa.ajaxPrefilter("script",function(a){void 0===a.cache&&(a.cache=!1),a.crossDomain&&(a.type="GET")}),oa.ajaxTransport("script",function(a){if(a.crossDomain){var b,c;return{send:function(d,e){b=oa("<script>").prop({charset:a.scriptCharset,src:a.url}).on("load error",c=function(a){b.remove(),c=null,a&&e("error"===a.type?404:200,a.type)}),ba.head.appendChild(b[0])},abort:function(){c&&c()}}}});var Rb=[],Sb=/(=)\?(?=&|$)|\?\?/;oa.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=Rb.pop()||oa.expando+"_"+yb++;return this[a]=!0,a}}),oa.ajaxPrefilter("json jsonp",function(b,c,d){var e,f,g,h=b.jsonp!==!1&&(Sb.test(b.url)?"url":"string"==typeof b.data&&0===(b.contentType||"").indexOf("application/x-www-form-urlencoded")&&Sb.test(b.data)&&"data");if(h||"jsonp"===b.dataTypes[0])return e=b.jsonpCallback=oa.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,h?b[h]=b[h].replace(Sb,"$1"+e):b.jsonp!==!1&&(b.url+=(zb.test(b.url)?"&":"?")+b.jsonp+"="+e),b.converters["script json"]=function(){return g||oa.error(e+" was not called"),g[0]},b.dataTypes[0]="json",f=a[e],a[e]=function(){g=arguments},d.always(function(){void 0===f?oa(a).removeProp(e):a[e]=f,b[e]&&(b.jsonpCallback=c.jsonpCallback,Rb.push(e)),g&&oa.isFunction(f)&&f(g[0]),g=f=void 0}),"script"}),ma.createHTMLDocument=function(){var a=ba.implementation.createHTMLDocument("").body;return a.innerHTML="<form></form><form></form>",2===a.childNodes.length}(),oa.parseHTML=function(a,b,c){if("string"!=typeof a)return[];"boolean"==typeof b&&(c=b,b=!1);var d,e,f;return b||(ma.createHTMLDocument?(b=ba.implementation.createHTMLDocument(""),d=b.createElement("base"),d.href=ba.location.href,b.head.appendChild(d)):b=ba),e=xa.exec(a),f=!c&&[],e?[b.createElement(e[1])]:(e=t([a],b,f),f&&f.length&&oa(f).remove(),oa.merge([],e.childNodes))},oa.fn.load=function(a,b,c){var d,e,f,g=this,h=a.indexOf(" ");return h>-1&&(d=T(a.slice(h)),a=a.slice(0,h)),oa.isFunction(b)?(c=b,b=void 0):b&&"object"==typeof b&&(e="POST"),g.length>0&&oa.ajax({url:a,type:e||"GET",dataType:"html",data:b}).done(function(a){f=arguments,g.html(d?oa("<div>").append(oa.parseHTML(a)).find(d):a)}).always(c&&function(a,b){g.each(function(){c.apply(this,f||[a.responseText,b,a])})}),this},oa.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(a,b){oa.fn[b]=function(a){return this.on(b,a)}}),oa.expr.pseudos.animated=function(a){return oa.grep(oa.timers,function(b){return a===b.elem}).length},oa.offset={setOffset:function(a,b,c){var d,e,f,g,h,i,j,k=oa.css(a,"position"),l=oa(a),m={};"static"===k&&(a.style.position="relative"),h=l.offset(),f=oa.css(a,"top"),i=oa.css(a,"left"),j=("absolute"===k||"fixed"===k)&&(f+i).indexOf("auto")>-1,j?(d=l.position(),g=d.top,e=d.left):(g=parseFloat(f)||0,e=parseFloat(i)||0),oa.isFunction(b)&&(b=b.call(a,c,oa.extend({},h))),null!=b.top&&(m.top=b.top-h.top+g),null!=b.left&&(m.left=b.left-h.left+e),"using"in b?b.using.call(a,m):l.css(m)}},oa.fn.extend({offset:function(a){if(arguments.length)return void 0===a?this:this.each(function(b){oa.offset.setOffset(this,a,b)});var b,c,d,e,f=this[0];if(f)return f.getClientRects().length?(d=f.getBoundingClientRect(),d.width||d.height?(e=f.ownerDocument,c=_(e),b=e.documentElement,{top:d.top+c.pageYOffset-b.clientTop,left:d.left+c.pageXOffset-b.clientLeft}):d):{top:0,left:0}},position:function(){if(this[0]){var a,b,c=this[0],d={top:0,left:0};return"fixed"===oa.css(c,"position")?b=c.getBoundingClientRect():(a=this.offsetParent(),b=this.offset(),oa.nodeName(a[0],"html")||(d=a.offset()),d={top:d.top+oa.css(a[0],"borderTopWidth",!0),left:d.left+oa.css(a[0],"borderLeftWidth",!0)}),{top:b.top-d.top-oa.css(c,"marginTop",!0),left:b.left-d.left-oa.css(c,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent;a&&"static"===oa.css(a,"position");)a=a.offsetParent;return a||Ya})}}),oa.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,b){var c="pageYOffset"===b;oa.fn[a]=function(d){return Ha(this,function(a,d,e){var f=_(a);return void 0===e?f?f[b]:a[d]:void(f?f.scrollTo(c?f.pageXOffset:e,c?e:f.pageYOffset):a[d]=e)},a,d,arguments.length)}}),oa.each(["top","left"],function(a,b){oa.cssHooks[b]=G(ma.pixelPosition,function(a,c){if(c)return c=F(a,b),gb.test(c)?oa(a).position()[b]+"px":c})}),oa.each({Height:"height",Width:"width"},function(a,b){oa.each({padding:"inner"+a,content:b,"":"outer"+a},function(c,d){oa.fn[d]=function(e,f){var g=arguments.length&&(c||"boolean"!=typeof e),h=c||(e===!0||f===!0?"margin":"border");return Ha(this,function(b,c,e){var f;return oa.isWindow(b)?0===d.indexOf("outer")?b["inner"+a]:b.document.documentElement["client"+a]:9===b.nodeType?(f=b.documentElement,Math.max(b.body["scroll"+a],f["scroll"+a],b.body["offset"+a],f["offset"+a],f["client"+a])):void 0===e?oa.css(b,c,h):oa.style(b,c,e,h)},b,g?e:void 0,g)}})}),oa.fn.extend({bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return 1===arguments.length?this.off(a,"**"):this.off(b,a||"**",c)}}),oa.parseJSON=JSON.parse,"function"==typeof define&&define.amd&&define("jquery",[],function(){return oa});var Tb=a.jQuery,Ub=a.$;return oa.noConflict=function(b){return a.$===oa&&(a.$=Ub),b&&a.jQuery===oa&&(a.jQuery=Tb),oa},b||(a.jQuery=a.$=oa),
oa}),"undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(a){"use strict";var b=a.fn.jquery.split(" ")[0].split(".");if(b[0]<2&&b[1]<9||1==b[0]&&9==b[1]&&b[2]<1)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher")}(jQuery),+function(a){"use strict";function b(){var a=document.createElement("bootstrap"),b={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var c in b)if(void 0!==a.style[c])return{end:b[c]};return!1}a.fn.emulateTransitionEnd=function(b){var c=!1,d=this;a(this).one("bsTransitionEnd",function(){c=!0});var e=function(){c||a(d).trigger(a.support.transition.end)};return setTimeout(e,b),this},a(function(){a.support.transition=b(),a.support.transition&&(a.event.special.bsTransitionEnd={bindType:a.support.transition.end,delegateType:a.support.transition.end,handle:function(b){if(a(b.target).is(this))return b.handleObj.handler.apply(this,arguments)}})})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var c=a(this),e=c.data("bs.alert");e||c.data("bs.alert",e=new d(this)),"string"==typeof b&&e[b].call(c)})}var c='[data-dismiss="alert"]',d=function(b){a(b).on("click",c,this.close)};d.VERSION="3.3.4",d.TRANSITION_DURATION=150,d.prototype.close=function(b){function c(){g.detach().trigger("closed.bs.alert").remove()}var e=a(this),f=e.attr("data-target");f||(f=e.attr("href"),f=f&&f.replace(/.*(?=#[^\s]*$)/,""));var g=a(f);b&&b.preventDefault(),g.length||(g=e.closest(".alert")),g.trigger(b=a.Event("close.bs.alert")),b.isDefaultPrevented()||(g.removeClass("in"),a.support.transition&&g.hasClass("fade")?g.one("bsTransitionEnd",c).emulateTransitionEnd(d.TRANSITION_DURATION):c())};var e=a.fn.alert;a.fn.alert=b,a.fn.alert.Constructor=d,a.fn.alert.noConflict=function(){return a.fn.alert=e,this},a(document).on("click.bs.alert.data-api",c,d.prototype.close)}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.button"),f="object"==typeof b&&b;e||d.data("bs.button",e=new c(this,f)),"toggle"==b?e.toggle():b&&e.setState(b)})}var c=function(b,d){this.$element=a(b),this.options=a.extend({},c.DEFAULTS,d),this.isLoading=!1};c.VERSION="3.3.4",c.DEFAULTS={loadingText:"loading..."},c.prototype.setState=function(b){var c="disabled",d=this.$element,e=d.is("input")?"val":"html",f=d.data();b+="Text",null==f.resetText&&d.data("resetText",d[e]()),setTimeout(a.proxy(function(){d[e](null==f[b]?this.options[b]:f[b]),"loadingText"==b?(this.isLoading=!0,d.addClass(c).attr(c,c)):this.isLoading&&(this.isLoading=!1,d.removeClass(c).removeAttr(c))},this),0)},c.prototype.toggle=function(){var a=!0,b=this.$element.closest('[data-toggle="buttons"]');if(b.length){var c=this.$element.find("input");"radio"==c.prop("type")&&(c.prop("checked")&&this.$element.hasClass("active")?a=!1:b.find(".active").removeClass("active")),a&&c.prop("checked",!this.$element.hasClass("active")).trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active"));a&&this.$element.toggleClass("active")};var d=a.fn.button;a.fn.button=b,a.fn.button.Constructor=c,a.fn.button.noConflict=function(){return a.fn.button=d,this},a(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(c){var d=a(c.target);d.hasClass("btn")||(d=d.closest(".btn")),b.call(d,"toggle"),c.preventDefault()}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(b){a(b.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(b.type))})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.carousel"),f=a.extend({},c.DEFAULTS,d.data(),"object"==typeof b&&b),g="string"==typeof b?b:f.slide;e||d.data("bs.carousel",e=new c(this,f)),"number"==typeof b?e.to(b):g?e[g]():f.interval&&e.pause().cycle()})}var c=function(b,c){this.$element=a(b),this.$indicators=this.$element.find(".carousel-indicators"),this.options=c,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",a.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",a.proxy(this.pause,this)).on("mouseleave.bs.carousel",a.proxy(this.cycle,this))};c.VERSION="3.3.4",c.TRANSITION_DURATION=600,c.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},c.prototype.keydown=function(a){if(!/input|textarea/i.test(a.target.tagName)){switch(a.which){case 37:this.prev();break;case 39:this.next();break;default:return}a.preventDefault()}},c.prototype.cycle=function(b){return b||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(a.proxy(this.next,this),this.options.interval)),this},c.prototype.getItemIndex=function(a){return this.$items=a.parent().children(".item"),this.$items.index(a||this.$active)},c.prototype.getItemForDirection=function(a,b){var c=this.getItemIndex(b),d="prev"==a&&0===c||"next"==a&&c==this.$items.length-1;if(d&&!this.options.wrap)return b;var e="prev"==a?-1:1,f=(c+e)%this.$items.length;return this.$items.eq(f)},c.prototype.to=function(a){var b=this,c=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(a>this.$items.length-1||a<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){b.to(a)}):c==a?this.pause().cycle():this.slide(a>c?"next":"prev",this.$items.eq(a))},c.prototype.pause=function(b){return b||(this.paused=!0),this.$element.find(".next, .prev").length&&a.support.transition&&(this.$element.trigger(a.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},c.prototype.next=function(){if(!this.sliding)return this.slide("next")},c.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},c.prototype.slide=function(b,d){var e=this.$element.find(".item.active"),f=d||this.getItemForDirection(b,e),g=this.interval,h="next"==b?"left":"right",i=this;if(f.hasClass("active"))return this.sliding=!1;var j=f[0],k=a.Event("slide.bs.carousel",{relatedTarget:j,direction:h});if(this.$element.trigger(k),!k.isDefaultPrevented()){if(this.sliding=!0,g&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var l=a(this.$indicators.children()[this.getItemIndex(f)]);l&&l.addClass("active")}var m=a.Event("slid.bs.carousel",{relatedTarget:j,direction:h});return a.support.transition&&this.$element.hasClass("slide")?(f.addClass(b),f[0].offsetWidth,e.addClass(h),f.addClass(h),e.one("bsTransitionEnd",function(){f.removeClass([b,h].join(" ")).addClass("active"),e.removeClass(["active",h].join(" ")),i.sliding=!1,setTimeout(function(){i.$element.trigger(m)},0)}).emulateTransitionEnd(c.TRANSITION_DURATION)):(e.removeClass("active"),f.addClass("active"),this.sliding=!1,this.$element.trigger(m)),g&&this.cycle(),this}};var d=a.fn.carousel;a.fn.carousel=b,a.fn.carousel.Constructor=c,a.fn.carousel.noConflict=function(){return a.fn.carousel=d,this};var e=function(c){var d,e=a(this),f=a(e.attr("data-target")||(d=e.attr("href"))&&d.replace(/.*(?=#[^\s]+$)/,""));if(f.hasClass("carousel")){var g=a.extend({},f.data(),e.data()),h=e.attr("data-slide-to");h&&(g.interval=!1),b.call(f,g),h&&f.data("bs.carousel").to(h),c.preventDefault()}};a(document).on("click.bs.carousel.data-api","[data-slide]",e).on("click.bs.carousel.data-api","[data-slide-to]",e),a(window).on("load",function(){a('[data-ride="carousel"]').each(function(){var c=a(this);b.call(c,c.data())})})}(jQuery),+function(a){"use strict";function b(b){var c,d=b.attr("data-target")||(c=b.attr("href"))&&c.replace(/.*(?=#[^\s]+$)/,"");return a(d)}function c(b){return this.each(function(){var c=a(this),e=c.data("bs.collapse"),f=a.extend({},d.DEFAULTS,c.data(),"object"==typeof b&&b);!e&&f.toggle&&/show|hide/.test(b)&&(f.toggle=!1),e||c.data("bs.collapse",e=new d(this,f)),"string"==typeof b&&e[b]()})}var d=function(b,c){this.$element=a(b),this.options=a.extend({},d.DEFAULTS,c),this.$trigger=a('[data-toggle="collapse"][href="#'+b.id+'"],[data-toggle="collapse"][data-target="#'+b.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};d.VERSION="3.3.4",d.TRANSITION_DURATION=350,d.DEFAULTS={toggle:!0},d.prototype.dimension=function(){var a=this.$element.hasClass("width");return a?"width":"height"},d.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var b,e=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(e&&e.length&&(b=e.data("bs.collapse"),b&&b.transitioning))){var f=a.Event("show.bs.collapse");if(this.$element.trigger(f),!f.isDefaultPrevented()){e&&e.length&&(c.call(e,"hide"),b||e.data("bs.collapse",null));var g=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[g](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var h=function(){this.$element.removeClass("collapsing").addClass("collapse in")[g](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!a.support.transition)return h.call(this);var i=a.camelCase(["scroll",g].join("-"));this.$element.one("bsTransitionEnd",a.proxy(h,this)).emulateTransitionEnd(d.TRANSITION_DURATION)[g](this.$element[0][i])}}}},d.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var b=a.Event("hide.bs.collapse");if(this.$element.trigger(b),!b.isDefaultPrevented()){var c=this.dimension();this.$element[c](this.$element[c]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var e=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};return a.support.transition?void this.$element[c](0).one("bsTransitionEnd",a.proxy(e,this)).emulateTransitionEnd(d.TRANSITION_DURATION):e.call(this)}}},d.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},d.prototype.getParent=function(){return a(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(a.proxy(function(c,d){var e=a(d);this.addAriaAndCollapsedClass(b(e),e)},this)).end()},d.prototype.addAriaAndCollapsedClass=function(a,b){var c=a.hasClass("in");a.attr("aria-expanded",c),b.toggleClass("collapsed",!c).attr("aria-expanded",c)};var e=a.fn.collapse;a.fn.collapse=c,a.fn.collapse.Constructor=d,a.fn.collapse.noConflict=function(){return a.fn.collapse=e,this},a(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(d){var e=a(this);e.attr("data-target")||d.preventDefault();var f=b(e),g=f.data("bs.collapse"),h=g?"toggle":e.data();c.call(f,h)})}(jQuery),+function(a){"use strict";function b(b){b&&3===b.which||(a(e).remove(),a(f).each(function(){var d=a(this),e=c(d),f={relatedTarget:this};e.hasClass("open")&&(e.trigger(b=a.Event("hide.bs.dropdown",f)),b.isDefaultPrevented()||(d.attr("aria-expanded","false"),e.removeClass("open").trigger("hidden.bs.dropdown",f)))}))}function c(b){var c=b.attr("data-target");c||(c=b.attr("href"),c=c&&/#[A-Za-z]/.test(c)&&c.replace(/.*(?=#[^\s]*$)/,""));var d=c&&a(c);return d&&d.length?d:b.parent()}function d(b){return this.each(function(){var c=a(this),d=c.data("bs.dropdown");d||c.data("bs.dropdown",d=new g(this)),"string"==typeof b&&d[b].call(c)})}var e=".dropdown-backdrop",f='[data-toggle="dropdown"]',g=function(b){a(b).on("click.bs.dropdown",this.toggle)};g.VERSION="3.3.4",g.prototype.toggle=function(d){var e=a(this);if(!e.is(".disabled, :disabled")){var f=c(e),g=f.hasClass("open");if(b(),!g){"ontouchstart"in document.documentElement&&!f.closest(".navbar-nav").length&&a('<div class="dropdown-backdrop"/>').insertAfter(a(this)).on("click",b);var h={relatedTarget:this};if(f.trigger(d=a.Event("show.bs.dropdown",h)),d.isDefaultPrevented())return;e.trigger("focus").attr("aria-expanded","true"),f.toggleClass("open").trigger("shown.bs.dropdown",h)}return!1}},g.prototype.keydown=function(b){if(/(38|40|27|32)/.test(b.which)&&!/input|textarea/i.test(b.target.tagName)){var d=a(this);if(b.preventDefault(),b.stopPropagation(),!d.is(".disabled, :disabled")){var e=c(d),g=e.hasClass("open");if(!g&&27!=b.which||g&&27==b.which)return 27==b.which&&e.find(f).trigger("focus"),d.trigger("click");var h=" li:not(.disabled):visible a",i=e.find('[role="menu"]'+h+', [role="listbox"]'+h);if(i.length){var j=i.index(b.target);38==b.which&&j>0&&j--,40==b.which&&j<i.length-1&&j++,~j||(j=0),i.eq(j).trigger("focus")}}}};var h=a.fn.dropdown;a.fn.dropdown=d,a.fn.dropdown.Constructor=g,a.fn.dropdown.noConflict=function(){return a.fn.dropdown=h,this},a(document).on("click.bs.dropdown.data-api",b).on("click.bs.dropdown.data-api",".dropdown form",function(a){a.stopPropagation()}).on("click.bs.dropdown.data-api",f,g.prototype.toggle).on("keydown.bs.dropdown.data-api",f,g.prototype.keydown).on("keydown.bs.dropdown.data-api",'[role="menu"]',g.prototype.keydown).on("keydown.bs.dropdown.data-api",'[role="listbox"]',g.prototype.keydown)}(jQuery),+function(a){"use strict";function b(b,d){return this.each(function(){var e=a(this),f=e.data("bs.modal"),g=a.extend({},c.DEFAULTS,e.data(),"object"==typeof b&&b);f||e.data("bs.modal",f=new c(this,g)),"string"==typeof b?f[b](d):g.show&&f.show(d)})}var c=function(b,c){this.options=c,this.$body=a(document.body),this.$element=a(b),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,a.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};c.VERSION="3.3.4",c.TRANSITION_DURATION=300,c.BACKDROP_TRANSITION_DURATION=150,c.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},c.prototype.toggle=function(a){return this.isShown?this.hide():this.show(a)},c.prototype.show=function(b){var d=this,e=a.Event("show.bs.modal",{relatedTarget:b});this.$element.trigger(e),this.isShown||e.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',a.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){d.$element.one("mouseup.dismiss.bs.modal",function(b){a(b.target).is(d.$element)&&(d.ignoreBackdropClick=!0)})}),this.backdrop(function(){var e=a.support.transition&&d.$element.hasClass("fade");d.$element.parent().length||d.$element.appendTo(d.$body),d.$element.show().scrollTop(0),d.adjustDialog(),e&&d.$element[0].offsetWidth,d.$element.addClass("in").attr("aria-hidden",!1),d.enforceFocus();var f=a.Event("shown.bs.modal",{relatedTarget:b});e?d.$dialog.one("bsTransitionEnd",function(){d.$element.trigger("focus").trigger(f)}).emulateTransitionEnd(c.TRANSITION_DURATION):d.$element.trigger("focus").trigger(f)}))},c.prototype.hide=function(b){b&&b.preventDefault(),b=a.Event("hide.bs.modal"),this.$element.trigger(b),this.isShown&&!b.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),a(document).off("focusin.bs.modal"),this.$element.removeClass("in").attr("aria-hidden",!0).off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),a.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",a.proxy(this.hideModal,this)).emulateTransitionEnd(c.TRANSITION_DURATION):this.hideModal())},c.prototype.enforceFocus=function(){a(document).off("focusin.bs.modal").on("focusin.bs.modal",a.proxy(function(a){this.$element[0]===a.target||this.$element.has(a.target).length||this.$element.trigger("focus")},this))},c.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",a.proxy(function(a){27==a.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},c.prototype.resize=function(){this.isShown?a(window).on("resize.bs.modal",a.proxy(this.handleUpdate,this)):a(window).off("resize.bs.modal")},c.prototype.hideModal=function(){var a=this;this.$element.hide(),this.backdrop(function(){a.$body.removeClass("modal-open"),a.resetAdjustments(),a.resetScrollbar(),a.$element.trigger("hidden.bs.modal")})},c.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},c.prototype.backdrop=function(b){var d=this,e=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var f=a.support.transition&&e;if(this.$backdrop=a('<div class="modal-backdrop '+e+'" />').appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",a.proxy(function(a){return this.ignoreBackdropClick?void(this.ignoreBackdropClick=!1):void(a.target===a.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide()))},this)),f&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!b)return;f?this.$backdrop.one("bsTransitionEnd",b).emulateTransitionEnd(c.BACKDROP_TRANSITION_DURATION):b()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var g=function(){d.removeBackdrop(),b&&b()};a.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",g).emulateTransitionEnd(c.BACKDROP_TRANSITION_DURATION):g()}else b&&b()},c.prototype.handleUpdate=function(){this.adjustDialog()},c.prototype.adjustDialog=function(){var a=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&a?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!a?this.scrollbarWidth:""})},c.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},c.prototype.checkScrollbar=function(){var a=window.innerWidth;if(!a){var b=document.documentElement.getBoundingClientRect();a=b.right-Math.abs(b.left)}this.bodyIsOverflowing=document.body.clientWidth<a,this.scrollbarWidth=this.measureScrollbar()},c.prototype.setScrollbar=function(){var a=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"",this.bodyIsOverflowing&&this.$body.css("padding-right",a+this.scrollbarWidth)},c.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)},c.prototype.measureScrollbar=function(){var a=document.createElement("div");a.className="modal-scrollbar-measure",this.$body.append(a);var b=a.offsetWidth-a.clientWidth;return this.$body[0].removeChild(a),b};var d=a.fn.modal;a.fn.modal=b,a.fn.modal.Constructor=c,a.fn.modal.noConflict=function(){return a.fn.modal=d,this},a(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(c){var d=a(this),e=d.attr("href"),f=a(d.attr("data-target")||e&&e.replace(/.*(?=#[^\s]+$)/,"")),g=f.data("bs.modal")?"toggle":a.extend({remote:!/#/.test(e)&&e},f.data(),d.data());d.is("a")&&c.preventDefault(),f.one("show.bs.modal",function(a){a.isDefaultPrevented()||f.one("hidden.bs.modal",function(){d.is(":visible")&&d.trigger("focus")})}),b.call(f,g,this)})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.tooltip"),f="object"==typeof b&&b;!e&&/destroy|hide/.test(b)||(e||d.data("bs.tooltip",e=new c(this,f)),"string"==typeof b&&e[b]())})}var c=function(a,b){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.init("tooltip",a,b)};c.VERSION="3.3.4",c.TRANSITION_DURATION=150,c.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},c.prototype.init=function(b,c,d){if(this.enabled=!0,this.type=b,this.$element=a(c),this.options=this.getOptions(d),this.$viewport=this.options.viewport&&a(this.options.viewport.selector||this.options.viewport),this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var e=this.options.trigger.split(" "),f=e.length;f--;){var g=e[f];if("click"==g)this.$element.on("click."+this.type,this.options.selector,a.proxy(this.toggle,this));else if("manual"!=g){var h="hover"==g?"mouseenter":"focusin",i="hover"==g?"mouseleave":"focusout";this.$element.on(h+"."+this.type,this.options.selector,a.proxy(this.enter,this)),this.$element.on(i+"."+this.type,this.options.selector,a.proxy(this.leave,this))}}this.options.selector?this._options=a.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},c.prototype.getDefaults=function(){return c.DEFAULTS},c.prototype.getOptions=function(b){return b=a.extend({},this.getDefaults(),this.$element.data(),b),b.delay&&"number"==typeof b.delay&&(b.delay={show:b.delay,hide:b.delay}),b},c.prototype.getDelegateOptions=function(){var b={},c=this.getDefaults();return this._options&&a.each(this._options,function(a,d){c[a]!=d&&(b[a]=d)}),b},c.prototype.enter=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget).data("bs."+this.type);return c&&c.$tip&&c.$tip.is(":visible")?void(c.hoverState="in"):(c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c)),clearTimeout(c.timeout),c.hoverState="in",c.options.delay&&c.options.delay.show?void(c.timeout=setTimeout(function(){"in"==c.hoverState&&c.show()},c.options.delay.show)):c.show())},c.prototype.leave=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget).data("bs."+this.type);return c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c)),clearTimeout(c.timeout),c.hoverState="out",c.options.delay&&c.options.delay.hide?void(c.timeout=setTimeout(function(){"out"==c.hoverState&&c.hide()},c.options.delay.hide)):c.hide()},c.prototype.show=function(){var b=a.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(b);var d=a.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(b.isDefaultPrevented()||!d)return;var e=this,f=this.tip(),g=this.getUID(this.type);this.setContent(),f.attr("id",g),this.$element.attr("aria-describedby",g),this.options.animation&&f.addClass("fade");var h="function"==typeof this.options.placement?this.options.placement.call(this,f[0],this.$element[0]):this.options.placement,i=/\s?auto?\s?/i,j=i.test(h);j&&(h=h.replace(i,"")||"top"),f.detach().css({top:0,left:0,display:"block"}).addClass(h).data("bs."+this.type,this),this.options.container?f.appendTo(this.options.container):f.insertAfter(this.$element);var k=this.getPosition(),l=f[0].offsetWidth,m=f[0].offsetHeight;if(j){var n=h,o=this.options.container?a(this.options.container):this.$element.parent(),p=this.getPosition(o);h="bottom"==h&&k.bottom+m>p.bottom?"top":"top"==h&&k.top-m<p.top?"bottom":"right"==h&&k.right+l>p.width?"left":"left"==h&&k.left-l<p.left?"right":h,f.removeClass(n).addClass(h)}var q=this.getCalculatedOffset(h,k,l,m);this.applyPlacement(q,h);var r=function(){var a=e.hoverState;e.$element.trigger("shown.bs."+e.type),e.hoverState=null,"out"==a&&e.leave(e)};a.support.transition&&this.$tip.hasClass("fade")?f.one("bsTransitionEnd",r).emulateTransitionEnd(c.TRANSITION_DURATION):r()}},c.prototype.applyPlacement=function(b,c){var d=this.tip(),e=d[0].offsetWidth,f=d[0].offsetHeight,g=parseInt(d.css("margin-top"),10),h=parseInt(d.css("margin-left"),10);isNaN(g)&&(g=0),isNaN(h)&&(h=0),b.top=b.top+g,b.left=b.left+h,a.offset.setOffset(d[0],a.extend({using:function(a){d.css({top:Math.round(a.top),left:Math.round(a.left)})}},b),0),d.addClass("in");var i=d[0].offsetWidth,j=d[0].offsetHeight;"top"==c&&j!=f&&(b.top=b.top+f-j);var k=this.getViewportAdjustedDelta(c,b,i,j);k.left?b.left+=k.left:b.top+=k.top;var l=/top|bottom/.test(c),m=l?2*k.left-e+i:2*k.top-f+j,n=l?"offsetWidth":"offsetHeight";d.offset(b),this.replaceArrow(m,d[0][n],l)},c.prototype.replaceArrow=function(a,b,c){this.arrow().css(c?"left":"top",50*(1-a/b)+"%").css(c?"top":"left","")},c.prototype.setContent=function(){var a=this.tip(),b=this.getTitle();a.find(".tooltip-inner")[this.options.html?"html":"text"](b),a.removeClass("fade in top bottom left right")},c.prototype.hide=function(b){function d(){"in"!=e.hoverState&&f.detach(),e.$element.removeAttr("aria-describedby").trigger("hidden.bs."+e.type),b&&b()}var e=this,f=a(this.$tip),g=a.Event("hide.bs."+this.type);if(this.$element.trigger(g),!g.isDefaultPrevented())return f.removeClass("in"),a.support.transition&&f.hasClass("fade")?f.one("bsTransitionEnd",d).emulateTransitionEnd(c.TRANSITION_DURATION):d(),this.hoverState=null,this},c.prototype.fixTitle=function(){var a=this.$element;(a.attr("title")||"string"!=typeof a.attr("data-original-title"))&&a.attr("data-original-title",a.attr("title")||"").attr("title","")},c.prototype.hasContent=function(){return this.getTitle()},c.prototype.getPosition=function(b){b=b||this.$element;var c=b[0],d="BODY"==c.tagName,e=c.getBoundingClientRect();null==e.width&&(e=a.extend({},e,{width:e.right-e.left,height:e.bottom-e.top}));var f=d?{top:0,left:0}:b.offset(),g={scroll:d?document.documentElement.scrollTop||document.body.scrollTop:b.scrollTop()},h=d?{width:a(window).width(),height:a(window).height()}:null;return a.extend({},e,g,h,f)},c.prototype.getCalculatedOffset=function(a,b,c,d){return"bottom"==a?{top:b.top+b.height,left:b.left+b.width/2-c/2}:"top"==a?{top:b.top-d,left:b.left+b.width/2-c/2}:"left"==a?{top:b.top+b.height/2-d/2,left:b.left-c}:{top:b.top+b.height/2-d/2,left:b.left+b.width}},c.prototype.getViewportAdjustedDelta=function(a,b,c,d){var e={top:0,left:0};if(!this.$viewport)return e;var f=this.options.viewport&&this.options.viewport.padding||0,g=this.getPosition(this.$viewport);if(/right|left/.test(a)){var h=b.top-f-g.scroll,i=b.top+f-g.scroll+d;h<g.top?e.top=g.top-h:i>g.top+g.height&&(e.top=g.top+g.height-i)}else{var j=b.left-f,k=b.left+f+c;j<g.left?e.left=g.left-j:k>g.width&&(e.left=g.left+g.width-k)}return e},c.prototype.getTitle=function(){var a,b=this.$element,c=this.options;return a=b.attr("data-original-title")||("function"==typeof c.title?c.title.call(b[0]):c.title)},c.prototype.getUID=function(a){do a+=~~(1e6*Math.random());while(document.getElementById(a));return a},c.prototype.tip=function(){return this.$tip=this.$tip||a(this.options.template)},c.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},c.prototype.enable=function(){this.enabled=!0},c.prototype.disable=function(){this.enabled=!1},c.prototype.toggleEnabled=function(){this.enabled=!this.enabled},c.prototype.toggle=function(b){var c=this;b&&(c=a(b.currentTarget).data("bs."+this.type),c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c))),c.tip().hasClass("in")?c.leave(c):c.enter(c)},c.prototype.destroy=function(){var a=this;clearTimeout(this.timeout),this.hide(function(){a.$element.off("."+a.type).removeData("bs."+a.type)})};var d=a.fn.tooltip;a.fn.tooltip=b,a.fn.tooltip.Constructor=c,a.fn.tooltip.noConflict=function(){return a.fn.tooltip=d,this}}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.popover"),f="object"==typeof b&&b;!e&&/destroy|hide/.test(b)||(e||d.data("bs.popover",e=new c(this,f)),"string"==typeof b&&e[b]())})}var c=function(a,b){this.init("popover",a,b)};if(!a.fn.tooltip)throw new Error("Popover requires tooltip.js");c.VERSION="3.3.4",c.DEFAULTS=a.extend({},a.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),c.prototype=a.extend({},a.fn.tooltip.Constructor.prototype),c.prototype.constructor=c,c.prototype.getDefaults=function(){return c.DEFAULTS},c.prototype.setContent=function(){var a=this.tip(),b=this.getTitle(),c=this.getContent();a.find(".popover-title")[this.options.html?"html":"text"](b),a.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof c?"html":"append":"text"](c),a.removeClass("fade top bottom left right in"),a.find(".popover-title").html()||a.find(".popover-title").hide()},c.prototype.hasContent=function(){return this.getTitle()||this.getContent()},c.prototype.getContent=function(){var a=this.$element,b=this.options;return a.attr("data-content")||("function"==typeof b.content?b.content.call(a[0]):b.content)},c.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var d=a.fn.popover;a.fn.popover=b,a.fn.popover.Constructor=c,a.fn.popover.noConflict=function(){return a.fn.popover=d,this}}(jQuery),+function(a){"use strict";function b(c,d){this.$body=a(document.body),this.$scrollElement=a(a(c).is(document.body)?window:c),this.options=a.extend({},b.DEFAULTS,d),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",a.proxy(this.process,this)),this.refresh(),this.process()}function c(c){return this.each(function(){var d=a(this),e=d.data("bs.scrollspy"),f="object"==typeof c&&c;e||d.data("bs.scrollspy",e=new b(this,f)),"string"==typeof c&&e[c]()})}b.VERSION="3.3.4",b.DEFAULTS={offset:10},b.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},b.prototype.refresh=function(){var b=this,c="offset",d=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),a.isWindow(this.$scrollElement[0])||(c="position",d=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var b=a(this),e=b.data("target")||b.attr("href"),f=/^#./.test(e)&&a(e);return f&&f.length&&f.is(":visible")&&[[f[c]().top+d,e]]||null}).sort(function(a,b){return a[0]-b[0]}).each(function(){b.offsets.push(this[0]),b.targets.push(this[1])})},b.prototype.process=function(){var a,b=this.$scrollElement.scrollTop()+this.options.offset,c=this.getScrollHeight(),d=this.options.offset+c-this.$scrollElement.height(),e=this.offsets,f=this.targets,g=this.activeTarget;if(this.scrollHeight!=c&&this.refresh(),b>=d)return g!=(a=f[f.length-1])&&this.activate(a);if(g&&b<e[0])return this.activeTarget=null,this.clear();for(a=e.length;a--;)g!=f[a]&&b>=e[a]&&(void 0===e[a+1]||b<e[a+1])&&this.activate(f[a])},b.prototype.activate=function(b){this.activeTarget=b,this.clear();var c=this.selector+'[data-target="'+b+'"],'+this.selector+'[href="'+b+'"]',d=a(c).parents("li").addClass("active");d.parent(".dropdown-menu").length&&(d=d.closest("li.dropdown").addClass("active")),d.trigger("activate.bs.scrollspy")},b.prototype.clear=function(){a(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var d=a.fn.scrollspy;a.fn.scrollspy=c,a.fn.scrollspy.Constructor=b,a.fn.scrollspy.noConflict=function(){return a.fn.scrollspy=d,this},a(window).on("load.bs.scrollspy.data-api",function(){a('[data-spy="scroll"]').each(function(){var b=a(this);c.call(b,b.data())})})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.tab");e||d.data("bs.tab",e=new c(this)),"string"==typeof b&&e[b]()})}var c=function(b){this.element=a(b)};c.VERSION="3.3.4",c.TRANSITION_DURATION=150,c.prototype.show=function(){var b=this.element,c=b.closest("ul:not(.dropdown-menu)"),d=b.data("target");if(d||(d=b.attr("href"),d=d&&d.replace(/.*(?=#[^\s]*$)/,"")),!b.parent("li").hasClass("active")){
var e=c.find(".active:last a"),f=a.Event("hide.bs.tab",{relatedTarget:b[0]}),g=a.Event("show.bs.tab",{relatedTarget:e[0]});if(e.trigger(f),b.trigger(g),!g.isDefaultPrevented()&&!f.isDefaultPrevented()){var h=a(d);this.activate(b.closest("li"),c),this.activate(h,h.parent(),function(){e.trigger({type:"hidden.bs.tab",relatedTarget:b[0]}),b.trigger({type:"shown.bs.tab",relatedTarget:e[0]})})}}},c.prototype.activate=function(b,d,e){function f(){g.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),b.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),h?(b[0].offsetWidth,b.addClass("in")):b.removeClass("fade"),b.parent(".dropdown-menu").length&&b.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),e&&e()}var g=d.find("> .active"),h=e&&a.support.transition&&(g.length&&g.hasClass("fade")||!!d.find("> .fade").length);g.length&&h?g.one("bsTransitionEnd",f).emulateTransitionEnd(c.TRANSITION_DURATION):f(),g.removeClass("in")};var d=a.fn.tab;a.fn.tab=b,a.fn.tab.Constructor=c,a.fn.tab.noConflict=function(){return a.fn.tab=d,this};var e=function(c){c.preventDefault(),b.call(a(this),"show")};a(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',e).on("click.bs.tab.data-api",'[data-toggle="pill"]',e)}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.affix"),f="object"==typeof b&&b;e||d.data("bs.affix",e=new c(this,f)),"string"==typeof b&&e[b]()})}var c=function(b,d){this.options=a.extend({},c.DEFAULTS,d),this.$target=a(this.options.target).on("scroll.bs.affix.data-api",a.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",a.proxy(this.checkPositionWithEventLoop,this)),this.$element=a(b),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};c.VERSION="3.3.4",c.RESET="affix affix-top affix-bottom",c.DEFAULTS={offset:0,target:window},c.prototype.getState=function(a,b,c,d){var e=this.$target.scrollTop(),f=this.$element.offset(),g=this.$target.height();if(null!=c&&"top"==this.affixed)return e<c&&"top";if("bottom"==this.affixed)return null!=c?!(e+this.unpin<=f.top)&&"bottom":!(e+g<=a-d)&&"bottom";var h=null==this.affixed,i=h?e:f.top,j=h?g:b;return null!=c&&e<=c?"top":null!=d&&i+j>=a-d&&"bottom"},c.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(c.RESET).addClass("affix");var a=this.$target.scrollTop(),b=this.$element.offset();return this.pinnedOffset=b.top-a},c.prototype.checkPositionWithEventLoop=function(){setTimeout(a.proxy(this.checkPosition,this),1)},c.prototype.checkPosition=function(){if(this.$element.is(":visible")){var b=this.$element.height(),d=this.options.offset,e=d.top,f=d.bottom,g=a(document.body).height();"object"!=typeof d&&(f=e=d),"function"==typeof e&&(e=d.top(this.$element)),"function"==typeof f&&(f=d.bottom(this.$element));var h=this.getState(g,b,e,f);if(this.affixed!=h){null!=this.unpin&&this.$element.css("top","");var i="affix"+(h?"-"+h:""),j=a.Event(i+".bs.affix");if(this.$element.trigger(j),j.isDefaultPrevented())return;this.affixed=h,this.unpin="bottom"==h?this.getPinnedOffset():null,this.$element.removeClass(c.RESET).addClass(i).trigger(i.replace("affix","affixed")+".bs.affix")}"bottom"==h&&this.$element.offset({top:g-b-f})}};var d=a.fn.affix;a.fn.affix=b,a.fn.affix.Constructor=c,a.fn.affix.noConflict=function(){return a.fn.affix=d,this},a(window).on("load",function(){a('[data-spy="affix"]').each(function(){var c=a(this),d=c.data();d.offset=d.offset||{},null!=d.offsetBottom&&(d.offset.bottom=d.offsetBottom),null!=d.offsetTop&&(d.offset.top=d.offsetTop),b.call(c,d)})})}(jQuery),function(a,b,c){"use strict";function d(a,b){return b=b||Error,function(){var c,d,e=2,f=arguments,g=f[0],h="["+(a?a+":":"")+g+"] ",i=f[1];for(h+=i.replace(/\{\d+\}/g,function(a){var b=+a.slice(1,-1),c=b+e;return c<f.length?sa(f[c]):a}),h+="\nhttp://errors.angularjs.org/1.4.0/"+(a?a+"/":"")+g,d=e,c="?";d<f.length;d++,c="&")h+=c+"p"+(d-e)+"="+encodeURIComponent(sa(f[d]));return new b(h)}}function e(a){if(null==a||B(a))return!1;var b="length"in Object(a)&&a.length;return!(a.nodeType!==Ud||!b)||(w(a)||Ld(a)||0===b||"number"==typeof b&&b>0&&b-1 in a)}function f(a,b,c){var d,g;if(a)if(z(a))for(d in a)"prototype"==d||"length"==d||"name"==d||a.hasOwnProperty&&!a.hasOwnProperty(d)||b.call(c,a[d],d,a);else if(Ld(a)||e(a)){var h="object"!=typeof a;for(d=0,g=a.length;d<g;d++)(h||d in a)&&b.call(c,a[d],d,a)}else if(a.forEach&&a.forEach!==f)a.forEach(b,c,a);else if(v(a))for(d in a)b.call(c,a[d],d,a);else if("function"==typeof a.hasOwnProperty)for(d in a)a.hasOwnProperty(d)&&b.call(c,a[d],d,a);else for(d in a)ud.call(a,d)&&b.call(c,a[d],d,a);return a}function g(a,b,c){for(var d=Object.keys(a).sort(),e=0;e<d.length;e++)b.call(c,a[d[e]],d[e]);return d}function h(a){return function(b,c){a(c,b)}}function i(){return++Jd}function j(a,b){b?a.$$hashKey=b:delete a.$$hashKey}function k(a,b,c){for(var d=a.$$hashKey,e=0,f=b.length;e<f;++e){var g=b[e];if(u(g)||z(g))for(var h=Object.keys(g),i=0,l=h.length;i<l;i++){var m=h[i],n=g[m];c&&u(n)?(u(a[m])||(a[m]=Ld(n)?[]:{}),k(a[m],[n],!0)):a[m]=n}}return j(a,d),a}function l(a){return k(a,Cd.call(arguments,1),!1)}function m(a){return k(a,Cd.call(arguments,1),!0)}function n(a){return parseInt(a,10)}function o(a,b){return l(Object.create(a),b)}function p(){}function q(a){return a}function r(a){return function(){return a}}function s(a){return"undefined"==typeof a}function t(a){return"undefined"!=typeof a}function u(a){return null!==a&&"object"==typeof a}function v(a){return null!==a&&"object"==typeof a&&!Gd(a)}function w(a){return"string"==typeof a}function x(a){return"number"==typeof a}function y(a){return"[object Date]"===Fd.call(a)}function z(a){return"function"==typeof a}function A(a){return"[object RegExp]"===Fd.call(a)}function B(a){return a&&a.window===a}function C(a){return a&&a.$evalAsync&&a.$watch}function D(a){return"[object File]"===Fd.call(a)}function E(a){return"[object FormData]"===Fd.call(a)}function F(a){return"[object Blob]"===Fd.call(a)}function G(a){return"boolean"==typeof a}function H(a){return a&&z(a.then)}function I(a){return Md.test(Fd.call(a))}function J(a){return!(!a||!(a.nodeName||a.prop&&a.attr&&a.find))}function K(a){var b,c={},d=a.split(",");for(b=0;b<d.length;b++)c[d[b]]=!0;return c}function L(a){return td(a.nodeName||a[0]&&a[0].nodeName)}function M(a,b){var c=a.indexOf(b);return c>=0&&a.splice(c,1),c}function N(a,b,c,d){function e(a,b,c,d,e){var f=N(b,null,d,e);u(b)&&(d.push(b),e.push(f)),c[a]=f}if(B(a)||C(a))throw Hd("cpws","Can't copy! Making copies of Window or Scope instances is not supported.");if(I(b))throw Hd("cpta","Can't copy! TypedArray destination cannot be mutated.");if(b){if(a===b)throw Hd("cpi","Can't copy! Source and destination are identical.");if(c=c||[],d=d||[],u(a)){var g=c.indexOf(a);if(g!==-1)return d[g];c.push(a),d.push(b)}var h,i;if(Ld(a)){b.length=0;for(var k=0;k<a.length;k++)h=N(a[k],null,c,d),u(a[k])&&(c.push(a[k]),d.push(h)),b.push(h)}else{var l=b.$$hashKey;if(Ld(b)?b.length=0:f(b,function(a,c){delete b[c]}),v(a))for(i in a)e(i,a[i],b,c,d);else if(a&&"function"==typeof a.hasOwnProperty)for(i in a)a.hasOwnProperty(i)&&e(i,a[i],b,c,d);else for(i in a)ud.call(a,i)&&e(i,a[i],b,c,d);j(b,l)}}else if(b=a,a)if(Ld(a))b=N(a,[],c,d);else if(I(a))b=new a.constructor(a);else if(y(a))b=new Date(a.getTime());else if(A(a))b=new RegExp(a.source,a.toString().match(/[^\/]*$/)[0]),b.lastIndex=a.lastIndex;else if(u(a)){var m=Object.create(Gd(a));b=N(a,m,c,d)}return b}function O(a,b){if(Ld(a)){b=b||[];for(var c=0,d=a.length;c<d;c++)b[c]=a[c]}else if(u(a)){b=b||{};for(var e in a)"$"===e.charAt(0)&&"$"===e.charAt(1)||(b[e]=a[e])}return b||a}function P(a,b){if(a===b)return!0;if(null===a||null===b)return!1;if(a!==a&&b!==b)return!0;var d,e,f,g=typeof a,h=typeof b;if(g==h&&"object"==g){if(!Ld(a)){if(y(a))return!!y(b)&&P(a.getTime(),b.getTime());if(A(a))return!!A(b)&&a.toString()==b.toString();if(C(a)||C(b)||B(a)||B(b)||Ld(b)||y(b)||A(b))return!1;f=pa();for(e in a)if("$"!==e.charAt(0)&&!z(a[e])){if(!P(a[e],b[e]))return!1;f[e]=!0}for(e in b)if(!(e in f||"$"===e.charAt(0)||b[e]===c||z(b[e])))return!1;return!0}if(!Ld(b))return!1;if((d=a.length)==b.length){for(e=0;e<d;e++)if(!P(a[e],b[e]))return!1;return!0}}return!1}function Q(a,b,c){return a.concat(Cd.call(b,c))}function R(a,b){return Cd.call(a,b||0)}function S(a,b){var c=arguments.length>2?R(arguments,2):[];return!z(b)||b instanceof RegExp?b:c.length?function(){return arguments.length?b.apply(a,Q(c,arguments,0)):b.apply(a,c)}:function(){return arguments.length?b.apply(a,arguments):b.call(a)}}function T(a,d){var e=d;return"string"==typeof a&&"$"===a.charAt(0)&&"$"===a.charAt(1)?e=c:B(d)?e="$WINDOW":d&&b===d?e="$DOCUMENT":C(d)&&(e="$SCOPE"),e}function U(a,b){return"undefined"==typeof a?c:(x(b)||(b=b?2:null),JSON.stringify(a,T,b))}function V(a){return w(a)?JSON.parse(a):a}function W(a,b){var c=Date.parse("Jan 01, 1970 00:00:00 "+a)/6e4;return isNaN(c)?b:c}function X(a,b){return a=new Date(a.getTime()),a.setMinutes(a.getMinutes()+b),a}function Y(a,b,c){c=c?-1:1;var d=W(b,a.getTimezoneOffset());return X(a,c*(d-a.getTimezoneOffset()))}function Z(a){a=zd(a).clone();try{a.empty()}catch(b){}var c=zd("<div>").append(a).html();try{return a[0].nodeType===Wd?td(c):c.match(/^(<[^>]+>)/)[1].replace(/^<([\w\-]+)/,function(a,b){return"<"+td(b)})}catch(b){return td(c)}}function $(a){try{return decodeURIComponent(a)}catch(b){}}function _(a){var b,c,d={};return f((a||"").split("&"),function(a){if(a&&(b=a.replace(/\+/g,"%20").split("="),c=$(b[0]),t(c))){var e=!t(b[1])||$(b[1]);ud.call(d,c)?Ld(d[c])?d[c].push(e):d[c]=[d[c],e]:d[c]=e}}),d}function aa(a){var b=[];return f(a,function(a,c){Ld(a)?f(a,function(a){b.push(ca(c,!0)+(a===!0?"":"="+ca(a,!0)))}):b.push(ca(c,!0)+(a===!0?"":"="+ca(a,!0)))}),b.length?b.join("&"):""}function ba(a){return ca(a,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function ca(a,b){return encodeURIComponent(a).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,b?"%20":"+")}function da(a,b){var c,d,e=Rd.length;for(d=0;d<e;++d)if(c=Rd[d]+b,w(c=a.getAttribute(c)))return c;return null}function ea(a,b){var c,d,e={};f(Rd,function(b){var e=b+"app";!c&&a.hasAttribute&&a.hasAttribute(e)&&(c=a,d=a.getAttribute(e))}),f(Rd,function(b){var e,f=b+"app";!c&&(e=a.querySelector("["+f.replace(":","\\:")+"]"))&&(c=e,d=e.getAttribute(f))}),c&&(e.strictDi=null!==da(c,"strict-di"),b(c,d?[d]:[],e))}function fa(c,d,e){u(e)||(e={});var g={strictDi:!1};e=l(g,e);var h=function(){if(c=zd(c),c.injector()){var a=c[0]===b?"document":Z(c);throw Hd("btstrpd","App Already Bootstrapped with this Element '{0}'",a.replace(/</,"&lt;").replace(/>/,"&gt;"))}d=d||[],d.unshift(["$provide",function(a){a.value("$rootElement",c)}]),e.debugInfoEnabled&&d.push(["$compileProvider",function(a){a.debugInfoEnabled(!0)}]),d.unshift("ng");var f=Ya(d,e.strictDi);return f.invoke(["$rootScope","$rootElement","$compile","$injector",function(a,b,c,d){a.$apply(function(){b.data("$injector",d),c(b)(a)})}]),f},i=/^NG_ENABLE_DEBUG_INFO!/,j=/^NG_DEFER_BOOTSTRAP!/;return a&&i.test(a.name)&&(e.debugInfoEnabled=!0,a.name=a.name.replace(i,"")),a&&!j.test(a.name)?h():(a.name=a.name.replace(j,""),Id.resumeBootstrap=function(a){return f(a,function(a){d.push(a)}),h()},void(z(Id.resumeDeferredBootstrap)&&Id.resumeDeferredBootstrap()))}function ga(){a.name="NG_ENABLE_DEBUG_INFO!"+a.name,a.location.reload()}function ha(a){var b=Id.element(a).injector();if(!b)throw Hd("test","no injector found for element argument to getTestability");return b.get("$$testability")}function ia(a,b){return b=b||"_",a.replace(Sd,function(a,c){return(c?b:"")+a.toLowerCase()})}function ja(){var b;if(!Td){var d=Qd();Ad=a.jQuery,t(d)&&(Ad=null===d?c:a[d]),Ad&&Ad.fn.on?(zd=Ad,l(Ad.fn,{scope:me.scope,isolateScope:me.isolateScope,controller:me.controller,injector:me.injector,inheritedData:me.inheritedData}),b=Ad.cleanData,Ad.cleanData=function(a){var c;if(Kd)Kd=!1;else for(var d,e=0;null!=(d=a[e]);e++)c=Ad._data(d,"events"),c&&c.$destroy&&Ad(d).triggerHandler("$destroy");b(a)}):zd=Aa,Id.element=zd,Td=!0}}function ka(a,b,c){if(!a)throw Hd("areq","Argument '{0}' is {1}",b||"?",c||"required");return a}function la(a,b,c){return c&&Ld(a)&&(a=a[a.length-1]),ka(z(a),b,"not a function, got "+(a&&"object"==typeof a?a.constructor.name||"Object":typeof a)),a}function ma(a,b){if("hasOwnProperty"===a)throw Hd("badname","hasOwnProperty is not a valid {0} name",b)}function na(a,b,c){if(!b)return a;for(var d,e=b.split("."),f=a,g=e.length,h=0;h<g;h++)d=e[h],a&&(a=(f=a)[d]);return!c&&z(a)?S(f,a):a}function oa(a){var b=a[0],c=a[a.length-1],d=[b];do{if(b=b.nextSibling,!b)break;d.push(b)}while(b!==c);return zd(d)}function pa(){return Object.create(null)}function qa(a){function b(a,b,c){return a[b]||(a[b]=c())}var c=d("$injector"),e=d("ng"),f=b(a,"angular",Object);return f.$$minErr=f.$$minErr||d,b(f,"module",function(){var a={};return function(d,f,g){var h=function(a,b){if("hasOwnProperty"===a)throw e("badname","hasOwnProperty is not a valid {0} name",b)};return h(d,"module"),f&&a.hasOwnProperty(d)&&(a[d]=null),b(a,d,function(){function a(a,c,d,e){return e||(e=b),function(){return e[d||"push"]([a,c,arguments]),j}}if(!f)throw c("nomod","Module '{0}' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.",d);var b=[],e=[],h=[],i=a("$injector","invoke","push",e),j={_invokeQueue:b,_configBlocks:e,_runBlocks:h,requires:f,name:d,provider:a("$provide","provider"),factory:a("$provide","factory"),service:a("$provide","service"),value:a("$provide","value"),constant:a("$provide","constant","unshift"),decorator:a("$provide","decorator"),animation:a("$animateProvider","register"),filter:a("$filterProvider","register"),controller:a("$controllerProvider","register"),directive:a("$compileProvider","directive"),config:i,run:function(a){return h.push(a),this}};return g&&i(g),j})}})}function ra(a){var b=[];return JSON.stringify(a,function(a,c){if(c=T(a,c),u(c)){if(b.indexOf(c)>=0)return"<<already seen>>";b.push(c)}return c})}function sa(a){return"function"==typeof a?a.toString().replace(/ \{[\s\S]*$/,""):"undefined"==typeof a?"undefined":"string"!=typeof a?ra(a):a}function ta(b){l(b,{bootstrap:fa,copy:N,extend:l,merge:m,equals:P,element:zd,forEach:f,injector:Ya,noop:p,bind:S,toJson:U,fromJson:V,identity:q,isUndefined:s,isDefined:t,isString:w,isFunction:z,isObject:u,isNumber:x,isElement:J,isArray:Ld,version:$d,isDate:y,lowercase:td,uppercase:vd,callbacks:{counter:0},getTestability:ha,$$minErr:d,$$csp:Pd,reloadWithDebugInfo:ga}),Bd=qa(a);try{Bd("ngLocale")}catch(c){Bd("ngLocale",[]).provider("$locale",Eb)}Bd("ng",["ngLocale"],["$provide",function(a){a.provider({$$sanitizeUri:pc}),a.provider("$compile",hb).directive({a:jf,input:Af,textarea:Af,form:of,script:sg,select:vg,style:xg,option:wg,ngBind:Df,ngBindHtml:Ff,ngBindTemplate:Ef,ngClass:Hf,ngClassEven:Jf,ngClassOdd:If,ngCloak:Kf,ngController:Lf,ngForm:pf,ngHide:mg,ngIf:Of,ngInclude:Pf,ngInit:Rf,ngNonBindable:dg,ngPluralize:hg,ngRepeat:ig,ngShow:lg,ngStyle:ng,ngSwitch:og,ngSwitchWhen:pg,ngSwitchDefault:qg,ngOptions:gg,ngTransclude:rg,ngModel:ag,ngList:Sf,ngChange:Gf,pattern:zg,ngPattern:zg,required:yg,ngRequired:yg,minlength:Bg,ngMinlength:Bg,maxlength:Ag,ngMaxlength:Ag,ngValue:Cf,ngModelOptions:cg}).directive({ngInclude:Qf}).directive(kf).directive(Mf),a.provider({$anchorScroll:Za,$animate:Be,$$animateQueue:Ae,$$AnimateRunner:ze,$browser:eb,$cacheFactory:fb,$controller:mb,$document:nb,$exceptionHandler:ob,$filter:Dc,$interpolate:Cb,$interval:Db,$http:yb,$httpParamSerializer:qb,$httpParamSerializerJQLike:rb,$httpBackend:Ab,$location:Sb,$log:Tb,$parse:jc,$rootScope:oc,$q:kc,$$q:lc,$sce:tc,$sceDelegate:sc,$sniffer:uc,$templateCache:gb,$templateRequest:vc,$$testability:wc,$timeout:xc,$window:Ac,$$rAF:nc,$$asyncCallback:cb,$$jqLite:Ta,$$HashMap:qe,$$cookieReader:Cc})}])}function ua(){return++ae}function va(a){return a.replace(de,function(a,b,c,d){return d?c.toUpperCase():c}).replace(ee,"Moz$1")}function wa(a){return!ie.test(a)}function xa(a){var b=a.nodeType;return b===Ud||!b||b===Yd}function ya(a,b){var c,d,e,g,h=b.createDocumentFragment(),i=[];if(wa(a))i.push(b.createTextNode(a));else{for(c=c||h.appendChild(b.createElement("div")),d=(je.exec(a)||["",""])[1].toLowerCase(),e=le[d]||le._default,c.innerHTML=e[1]+a.replace(ke,"<$1></$2>")+e[2],g=e[0];g--;)c=c.lastChild;i=Q(i,c.childNodes),c=h.firstChild,c.textContent=""}return h.textContent="",h.innerHTML="",f(i,function(a){h.appendChild(a)}),h}function za(a,c){c=c||b;var d;return(d=he.exec(a))?[c.createElement(d[1])]:(d=ya(a,c))?d.childNodes:[]}function Aa(a){if(a instanceof Aa)return a;var b;if(w(a)&&(a=Nd(a),b=!0),!(this instanceof Aa)){if(b&&"<"!=a.charAt(0))throw ge("nosel","Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element");return new Aa(a)}b?Ka(this,za(a)):Ka(this,a)}function Ba(a){return a.cloneNode(!0)}function Ca(a,b){if(b||Ea(a),a.querySelectorAll)for(var c=a.querySelectorAll("*"),d=0,e=c.length;d<e;d++)Ea(c[d])}function Da(a,b,c,d){if(t(d))throw ge("offargs","jqLite#off() does not support the `selector` argument");var e=Fa(a),g=e&&e.events,h=e&&e.handle;if(h)if(b)f(b.split(" "),function(b){if(t(c)){var d=g[b];if(M(d||[],c),d&&d.length>0)return}ce(a,b,h),delete g[b]});else for(b in g)"$destroy"!==b&&ce(a,b,h),delete g[b]}function Ea(a,b){var d=a.ng339,e=d&&_d[d];if(e){if(b)return void delete e.data[b];e.handle&&(e.events.$destroy&&e.handle({},"$destroy"),Da(a)),delete _d[d],a.ng339=c}}function Fa(a,b){var d=a.ng339,e=d&&_d[d];return b&&!e&&(a.ng339=d=ua(),e=_d[d]={events:{},data:{},handle:c}),e}function Ga(a,b,c){if(xa(a)){var d=t(c),e=!d&&b&&!u(b),f=!b,g=Fa(a,!e),h=g&&g.data;if(d)h[b]=c;else{if(f)return h;if(e)return h&&h[b];l(h,b)}}}function Ha(a,b){return!!a.getAttribute&&(" "+(a.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+b+" ")>-1}function Ia(a,b){b&&a.setAttribute&&f(b.split(" "),function(b){a.setAttribute("class",Nd((" "+(a.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").replace(" "+Nd(b)+" "," ")))})}function Ja(a,b){if(b&&a.setAttribute){var c=(" "+(a.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ");f(b.split(" "),function(a){a=Nd(a),c.indexOf(" "+a+" ")===-1&&(c+=a+" ")}),a.setAttribute("class",Nd(c))}}function Ka(a,b){if(b)if(b.nodeType)a[a.length++]=b;else{var c=b.length;if("number"==typeof c&&b.window!==b){if(c)for(var d=0;d<c;d++)a[a.length++]=b[d]}else a[a.length++]=b}}function La(a,b){return Ma(a,"$"+(b||"ngController")+"Controller")}function Ma(a,b,d){a.nodeType==Yd&&(a=a.documentElement);for(var e=Ld(b)?b:[b];a;){for(var f=0,g=e.length;f<g;f++)if((d=zd.data(a,e[f]))!==c)return d;a=a.parentNode||a.nodeType===Zd&&a.host}}function Na(a){for(Ca(a,!0);a.firstChild;)a.removeChild(a.firstChild)}function Oa(a,b){b||Ca(a);var c=a.parentNode;c&&c.removeChild(a)}function Pa(b,c){c=c||a,"complete"===c.document.readyState?c.setTimeout(b):zd(c).on("load",b)}function Qa(a,b){var c=ne[b.toLowerCase()];return c&&oe[L(a)]&&c}function Ra(a,b){var c=a.nodeName;return("INPUT"===c||"TEXTAREA"===c)&&pe[b]}function Sa(a,b){var c=function(c,d){c.isDefaultPrevented=function(){return c.defaultPrevented};var e=b[d||c.type],f=e?e.length:0;if(f){if(s(c.immediatePropagationStopped)){var g=c.stopImmediatePropagation;c.stopImmediatePropagation=function(){c.immediatePropagationStopped=!0,c.stopPropagation&&c.stopPropagation(),g&&g.call(c)}}c.isImmediatePropagationStopped=function(){return c.immediatePropagationStopped===!0},f>1&&(e=O(e));for(var h=0;h<f;h++)c.isImmediatePropagationStopped()||e[h].call(a,c)}};return c.elem=a,c}function Ta(){this.$get=function(){return l(Aa,{hasClass:function(a,b){return a.attr&&(a=a[0]),Ha(a,b)},addClass:function(a,b){return a.attr&&(a=a[0]),Ja(a,b)},removeClass:function(a,b){return a.attr&&(a=a[0]),Ia(a,b)}})}}function Ua(a,b){var c=a&&a.$$hashKey;if(c)return"function"==typeof c&&(c=a.$$hashKey()),c;var d=typeof a;return c="function"==d||"object"==d&&null!==a?a.$$hashKey=d+":"+(b||i)():d+":"+a}function Va(a,b){if(b){var c=0;this.nextUid=function(){return++c}}f(a,this.put,this)}function Wa(a){var b=a.toString().replace(ue,""),c=b.match(re);return c?"function("+(c[1]||"").replace(/[\s\r\n]+/," ")+")":"fn"}function Xa(a,b,c){var d,e,g,h;if("function"==typeof a){if(!(d=a.$inject)){if(d=[],a.length){if(b)throw w(c)&&c||(c=a.name||Wa(a)),ve("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",c);e=a.toString().replace(ue,""),g=e.match(re),f(g[1].split(se),function(a){a.replace(te,function(a,b,c){d.push(c)})})}a.$inject=d}}else Ld(a)?(h=a.length-1,la(a[h],"fn"),d=a.slice(0,h)):la(a,"fn",!0);return d}function Ya(a,b){function d(a){return function(b,c){return u(b)?void f(b,h(a)):a(b,c)}}function e(a,b){if(ma(a,"service"),(z(b)||Ld(b))&&(b=A.instantiate(b)),!b.$get)throw ve("pget","Provider '{0}' must define $get factory method.",a);return y[a+t]=b}function g(a,b){return function(){var c=C.invoke(b,this);if(s(c))throw ve("undef","Provider '{0}' must return a value from $get factory method.",a);return c}}function i(a,b,c){return e(a,{$get:c!==!1?g(a,b):b})}function j(a,b){return i(a,["$injector",function(a){return a.instantiate(b)}])}function k(a,b){return i(a,r(b),!1)}function l(a,b){ma(a,"constant"),y[a]=b,B[a]=b}function m(a,b){var c=A.get(a+t),d=c.$get;c.$get=function(){var a=C.invoke(d,c);return C.invoke(b,null,{$delegate:a})}}function n(a){var b,c=[];return f(a,function(a){function d(a){var b,c;for(b=0,c=a.length;b<c;b++){var d=a[b],e=A.get(d[0]);e[d[1]].apply(e,d[2])}}if(!x.get(a)){x.put(a,!0);try{w(a)?(b=Bd(a),c=c.concat(n(b.requires)).concat(b._runBlocks),d(b._invokeQueue),d(b._configBlocks)):z(a)?c.push(A.invoke(a)):Ld(a)?c.push(A.invoke(a)):la(a,"module")}catch(e){throw Ld(a)&&(a=a[a.length-1]),e.message&&e.stack&&e.stack.indexOf(e.message)==-1&&(e=e.message+"\n"+e.stack),ve("modulerr","Failed to instantiate module {0} due to:\n{1}",a,e.stack||e.message||e)}}}),c}function o(a,c){function d(b,d){if(a.hasOwnProperty(b)){if(a[b]===q)throw ve("cdep","Circular dependency found: {0}",b+" <- "+v.join(" <- "));return a[b]}try{return v.unshift(b),a[b]=q,a[b]=c(b,d)}catch(e){throw a[b]===q&&delete a[b],e}finally{v.shift()}}function e(a,c,e,f){"string"==typeof e&&(f=e,e=null);var g,h,i,j=[],k=Ya.$$annotate(a,b,f);for(h=0,g=k.length;h<g;h++){if(i=k[h],"string"!=typeof i)throw ve("itkn","Incorrect injection token! Expected service name as string, got {0}",i);j.push(e&&e.hasOwnProperty(i)?e[i]:d(i,f))}return Ld(a)&&(a=a[g]),a.apply(c,j)}function f(a,b,c){var d=Object.create((Ld(a)?a[a.length-1]:a).prototype||null),f=e(a,d,b,c);return u(f)||z(f)?f:d}return{invoke:e,instantiate:f,get:d,annotate:Ya.$$annotate,has:function(b){return y.hasOwnProperty(b+t)||a.hasOwnProperty(b)}}}b=b===!0;var q={},t="Provider",v=[],x=new Va([],!0),y={$provide:{provider:d(e),factory:d(i),service:d(j),value:d(k),constant:d(l),decorator:m}},A=y.$injector=o(y,function(a,b){throw Id.isString(b)&&v.push(b),ve("unpr","Unknown provider: {0}",v.join(" <- "))}),B={},C=B.$injector=o(B,function(a,b){var d=A.get(a+t,b);return C.invoke(d.$get,d,c,a)});return f(n(a),function(a){C.invoke(a||p)}),C}function Za(){var a=!0;this.disableAutoScrolling=function(){a=!1},this.$get=["$window","$location","$rootScope",function(b,c,d){function e(a){var b=null;return Array.prototype.some.call(a,function(a){if("a"===L(a))return b=a,!0}),b}function f(){var a=h.yOffset;if(z(a))a=a();else if(J(a)){var c=a[0],d=b.getComputedStyle(c);a="fixed"!==d.position?0:c.getBoundingClientRect().bottom}else x(a)||(a=0);return a}function g(a){if(a){a.scrollIntoView();var c=f();if(c){var d=a.getBoundingClientRect().top;b.scrollBy(0,d-c)}}else b.scrollTo(0,0)}function h(a){a=w(a)?a:c.hash();var b;a?(b=i.getElementById(a))?g(b):(b=e(i.getElementsByName(a)))?g(b):"top"===a&&g(null):g(null)}var i=b.document;return a&&d.$watch(function(){return c.hash()},function(a,b){a===b&&""===a||Pa(function(){d.$evalAsync(h)})}),h}]}function $a(a,b){return a||b?a?b?(Ld(a)&&(a=a.join(" ")),Ld(b)&&(b=b.join(" ")),a+" "+b):a:b:""}function _a(a){for(var b=0;b<a.length;b++){var c=a[b];if(c.nodeType===xe)return c}}function ab(a){w(a)&&(a=a.split(" "));var b=pa();return f(a,function(a){a.length&&(b[a]=!0)}),b}function bb(a){return u(a)?a:{}}function cb(){this.$get=["$$rAF","$timeout",function(a,b){return a.supported?function(b){return a(b)}:function(a){return b(a,0,!1)}}]}function db(a,b,c,d){function e(a){try{a.apply(null,R(arguments,1))}finally{if(t--,0===t)for(;u.length;)try{u.pop()()}catch(b){c.error(b)}}}function g(a){var b=a.indexOf("#");return b===-1?"":a.substr(b+1)}function h(){j(),k()}function i(){try{return n.state}catch(a){}}function j(){v=i(),v=s(v)?null:v,P(v,C)&&(v=C),C=v}function k(){x===l.url()&&w===v||(x=l.url(),w=v,f(A,function(a){a(l.url(),v)}))}var l=this,m=(b[0],a.location),n=a.history,o=a.setTimeout,q=a.clearTimeout,r={};l.isMock=!1;var t=0,u=[];l.$$completeOutstandingRequest=e,l.$$incOutstandingRequestCount=function(){t++},l.notifyWhenNoOutstandingRequests=function(a){0===t?a():u.push(a)};var v,w,x=m.href,y=b.find("base"),z=null;j(),w=v,l.url=function(b,c,e){if(s(e)&&(e=null),m!==a.location&&(m=a.location),n!==a.history&&(n=a.history),b){var f=w===e;if(x===b&&(!d.history||f))return l;var h=x&&Jb(x)===Jb(b);return x=b,w=e,!d.history||h&&f?(h||(z=b),c?m.replace(b):h?m.hash=g(b):m.href=b):(n[c?"replaceState":"pushState"](e,"",b),j(),w=v),l}return z||m.href.replace(/%27/g,"'")},l.state=function(){return v};var A=[],B=!1,C=null;l.onUrlChange=function(b){return B||(d.history&&zd(a).on("popstate",h),zd(a).on("hashchange",h),B=!0),A.push(b),b},l.$$applicationDestroyed=function(){zd(a).off("hashchange popstate",h)},l.$$checkUrlChange=k,l.baseHref=function(){var a=y.attr("href");return a?a.replace(/^(https?\:)?\/\/[^\/]*/,""):""},l.defer=function(a,b){var c;return t++,c=o(function(){delete r[c],e(a)},b||0),r[c]=!0,c},l.defer.cancel=function(a){return!!r[a]&&(delete r[a],q(a),e(p),!0)}}function eb(){this.$get=["$window","$log","$sniffer","$document",function(a,b,c,d){return new db(a,d,b,c)}]}function fb(){this.$get=function(){function a(a,c){function e(a){a!=m&&(n?n==a&&(n=a.n):n=a,f(a.n,a.p),f(a,m),m=a,m.n=null)}function f(a,b){a!=b&&(a&&(a.p=b),b&&(b.n=a))}if(a in b)throw d("$cacheFactory")("iid","CacheId '{0}' is already taken!",a);var g=0,h=l({},c,{id:a}),i={},j=c&&c.capacity||Number.MAX_VALUE,k={},m=null,n=null;return b[a]={put:function(a,b){if(!s(b)){if(j<Number.MAX_VALUE){var c=k[a]||(k[a]={key:a});e(c)}return a in i||g++,i[a]=b,g>j&&this.remove(n.key),b}},get:function(a){if(j<Number.MAX_VALUE){var b=k[a];if(!b)return;e(b)}return i[a]},remove:function(a){if(j<Number.MAX_VALUE){var b=k[a];if(!b)return;b==m&&(m=b.p),b==n&&(n=b.n),f(b.n,b.p),delete k[a]}delete i[a],g--},removeAll:function(){i={},g=0,k={},m=n=null},destroy:function(){i=null,h=null,k=null,delete b[a]},info:function(){return l({},h,{size:g})}}}var b={};return a.info=function(){var a={};return f(b,function(b,c){a[c]=b.info()}),a},a.get=function(a){return b[a]},a}}function gb(){this.$get=["$cacheFactory",function(a){return a("templates")}]}function hb(a,d){function e(a,b,c){var d=/^\s*([@&]|=(\*?))(\??)\s*(\w*)\s*$/,e={};return f(a,function(a,f){var g=a.match(d);if(!g)throw Ce("iscp","Invalid {3} for directive '{0}'. Definition: {... {1}: '{2}' ...}",b,f,a,c?"controller bindings definition":"isolate scope definition");e[f]={mode:g[1][0],collection:"*"===g[2],optional:"?"===g[3],attrName:g[4]||f}}),e}function g(a,b){var c={isolateScope:null,bindToController:null};if(u(a.scope)&&(a.bindToController===!0?(c.bindToController=e(a.scope,b,!0),c.isolateScope={}):c.isolateScope=e(a.scope,b,!1)),u(a.bindToController)&&(c.bindToController=e(a.bindToController,b,!0)),u(c.bindToController)){var d=a.controller,f=a.controllerAs;if(!d)throw Ce("noctrl","Cannot bind to controller without directive '{0}'s controller.",b);if(!lb(d,f))throw Ce("noident","Cannot bind to controller without identifier for directive '{0}'.",b)}return c}function i(a){var b=a.charAt(0);if(!b||b!==td(b))throw Ce("baddir","Directive name '{0}' is invalid. The first character must be a lowercase letter",a);if(a!==a.trim())throw Ce("baddir","Directive name '{0}' is invalid. The name should not contain leading or trailing whitespaces",a)}var j={},k="Directive",m=/^\s*directive\:\s*([\w\-]+)\s+(.*)$/,n=/(([\w\-]+)(?:\:([^;]+))?;?)/,s=K("ngSrc,ngSrcset,src,srcset"),v=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,x=/^(on[a-z]+|formaction)$/;this.directive=function b(c,d){return ma(c,"directive"),w(c)?(i(c),ka(d,"directiveFactory"),j.hasOwnProperty(c)||(j[c]=[],a.factory(c+k,["$injector","$exceptionHandler",function(a,b){var d=[];return f(j[c],function(e,f){try{var h=a.invoke(e);z(h)?h={compile:r(h)}:!h.compile&&h.link&&(h.compile=r(h.link)),h.priority=h.priority||0,h.index=f,h.name=h.name||c,h.require=h.require||h.controller&&h.name,h.restrict=h.restrict||"EA";var i=h.$$bindings=g(h,h.name);u(i.isolateScope)&&(h.$$isolateBindings=i.isolateScope),d.push(h)}catch(j){b(j)}}),d}])),j[c].push(d)):f(c,h(b)),this},this.aHrefSanitizationWhitelist=function(a){return t(a)?(d.aHrefSanitizationWhitelist(a),this):d.aHrefSanitizationWhitelist()},this.imgSrcSanitizationWhitelist=function(a){return t(a)?(d.imgSrcSanitizationWhitelist(a),this):d.imgSrcSanitizationWhitelist()};var y=!0;this.debugInfoEnabled=function(a){return t(a)?(y=a,this):y},this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$document","$sce","$animate","$$sanitizeUri",function(a,d,e,g,h,i,r,t,A,B,D){function E(a,b){try{a.addClass(b)}catch(c){}}function F(a,b,c,d,e){a instanceof zd||(a=zd(a)),f(a,function(b,c){b.nodeType==Wd&&b.nodeValue.match(/\S+/)&&(a[c]=zd(b).wrap("<span></span>").parent()[0])});var g=H(a,b,a,c,d,e);F.$$addScopeClass(a);var h=null;return function(b,c,d){ka(b,"scope"),d=d||{};var e=d.parentBoundTranscludeFn,f=d.transcludeControllers,i=d.futureParentElement;e&&e.$$boundTransclude&&(e=e.$$boundTransclude),h||(h=G(i));var j;if(j="html"!==h?zd($(h,zd("<div>").append(a).html())):c?me.clone.call(a):a,f)for(var k in f)j.data("$"+k+"Controller",f[k].instance);return F.$$addScopeInfo(j,b),c&&c(j,b),g&&g(b,j,j,e),j}}function G(a){var b=a&&a[0];return b&&"foreignobject"!==L(b)&&b.toString().match(/SVG/)?"svg":"html"}function H(a,b,d,e,f,g){function h(a,d,e,f){var g,h,i,j,k,l,m,n,q;if(o){var r=d.length;for(q=new Array(r),k=0;k<p.length;k+=3)m=p[k],q[m]=d[m]}else q=d;for(k=0,l=p.length;k<l;)if(i=q[p[k++]],g=p[k++],h=p[k++],g){if(g.scope){j=a.$new(),F.$$addScopeInfo(zd(i),j);var s=g.$$destroyBindings;s&&(g.$$destroyBindings=null,j.$on("$destroyed",s))}else j=a;n=g.transcludeOnThisElement?I(a,g.transclude,f,g.elementTranscludeOnThisElement):!g.templateOnThisElement&&f?f:!f&&b?I(a,b):null,g(h,j,i,e,n,g)}else h&&h(a,i.childNodes,c,f)}for(var i,j,k,l,m,n,o,p=[],q=0;q<a.length;q++)i=new fa,j=J(a[q],[],i,0===q?e:c,f),k=j.length?O(j,a[q],i,b,d,null,[],[],g):null,k&&k.scope&&F.$$addScopeClass(i.$$element),m=k&&k.terminal||!(l=a[q].childNodes)||!l.length?null:H(l,k?(k.transcludeOnThisElement||!k.templateOnThisElement)&&k.transclude:b),(k||m)&&(p.push(q,k,m),n=!0,o=o||k),g=null;return n?h:null}function I(a,b,c,d){var e=function(d,e,f,g,h){return d||(d=a.$new(!1,h),d.$$transcluded=!0),b(d,e,{parentBoundTranscludeFn:c,transcludeControllers:f,futureParentElement:g})};return e}function J(a,b,c,d,e){var f,g,h=a.nodeType,i=c.$attr;switch(h){case Ud:S(b,ib(L(a)),"E",d,e);for(var j,k,l,o,p,q,r=a.attributes,s=0,t=r&&r.length;s<t;s++){var v=!1,x=!1;j=r[s],k=j.name,p=Nd(j.value),o=ib(k),(q=la.test(o))&&(k=k.replace(De,"").substr(8).replace(/_(.)/g,function(a,b){return b.toUpperCase()}));var y=o.replace(/(Start|End)$/,"");
T(y)&&o===y+"Start"&&(v=k,x=k.substr(0,k.length-5)+"end",k=k.substr(0,k.length-6)),l=ib(k.toLowerCase()),i[l]=k,!q&&c.hasOwnProperty(l)||(c[l]=p,Qa(a,l)&&(c[l]=!0)),aa(a,b,p,l,q),S(b,l,"A",d,e,v,x)}if(g=a.className,u(g)&&(g=g.animVal),w(g)&&""!==g)for(;f=n.exec(g);)l=ib(f[2]),S(b,l,"C",d,e)&&(c[l]=Nd(f[3])),g=g.substr(f.index+f[0].length);break;case Wd:Y(b,a.nodeValue);break;case Xd:try{f=m.exec(a.nodeValue),f&&(l=ib(f[1]),S(b,l,"M",d,e)&&(c[l]=Nd(f[2])))}catch(z){}}return b.sort(W),b}function K(a,b,c){var d=[],e=0;if(b&&a.hasAttribute&&a.hasAttribute(b)){do{if(!a)throw Ce("uterdir","Unterminated attribute, found '{0}' but no matching '{1}' found.",b,c);a.nodeType==Ud&&(a.hasAttribute(b)&&e++,a.hasAttribute(c)&&e--),d.push(a),a=a.nextSibling}while(e>0)}else d.push(a);return zd(d)}function N(a,b,c){return function(d,e,f,g,h){return e=K(e[0],b,c),a(d,e,f,g,h)}}function O(a,d,f,g,h,j,k,l,m){function n(a,b,c,d){a&&(c&&(a=N(a,c,d)),a.require=s.require,a.directiveName=t,(E===s||s.$$isolateScope)&&(a=ca(a,{isolateScope:!0})),k.push(a)),b&&(c&&(b=N(b,c,d)),b.require=s.require,b.directiveName=t,(E===s||s.$$isolateScope)&&(b=ca(b,{isolateScope:!0})),l.push(b))}function o(a,b,c,d){var e;if(w(b)){var f=b.match(v),g=b.substring(f[0].length),h=f[1]||f[3],i="?"===f[2];if("^^"===h?c=c.parent():(e=d&&d[g],e=e&&e.instance),!e){var j="$"+g+"Controller";e=h?c.inheritedData(j):c.data(j)}if(!e&&!i)throw Ce("ctreq","Controller '{0}', required by directive '{1}', can't be found!",g,a)}else if(Ld(b)){e=[];for(var k=0,l=b.length;k<l;k++)e[k]=o(a,b[k],c,d)}return e||null}function p(a,b,c,d,e,f){var g=pa();for(var h in d){var j=d[h],k={$scope:j===E||j.$$isolateScope?e:f,$element:a,$attrs:b,$transclude:c},l=j.controller;"@"==l&&(l=b[j.name]);var m=i(l,k,!0,j.controllerAs);g[j.name]=m,M||a.data("$"+j.name+"Controller",m.instance)}return g}function q(a,b,e,g,h,i){function j(a,b,d){var e;return C(a)||(d=b,b=a,a=c),M&&(e=v),d||(d=M?x.parent():x),h(a,b,e,d,I)}var m,n,q,t,u,v,w,x,y;if(d===e?(y=f,x=f.$$element):(x=zd(e),y=new fa(x,f)),E&&(u=b.$new(!0)),h&&(w=j,w.$$boundTransclude=h),D&&(v=p(x,y,w,D,u,b)),E&&(F.$$addScopeInfo(x,u,!0,!(G&&(G===E||G===E.$$originalDirective))),F.$$addScopeClass(x,!0),u.$$isolateBindings=E.$$isolateBindings,ea(b,y,u,u.$$isolateBindings,E,u)),v){var z,A,B=E||r;B&&v[B.name]&&(z=B.$$bindings.bindToController,t=v[B.name],t&&t.identifier&&z&&(A=t,i.$$destroyBindings=ea(b,y,t.instance,z,B)));for(m in v){t=v[m];var H=t();H!==t.instance&&(t.instance=H,x.data("$"+s.name+"Controller",H),t===A&&(i.$$destroyBindings(),i.$$destroyBindings=ea(b,y,H,z,B)))}}for(m=0,n=k.length;m<n;m++)q=k[m],da(q,q.isolateScope?u:b,x,y,q.require&&o(q.directiveName,q.require,x,v),w);var I=b;for(E&&(E.template||null===E.templateUrl)&&(I=u),a&&a(I,e.childNodes,c,h),m=l.length-1;m>=0;m--)q=l[m],da(q,q.isolateScope?u:b,x,y,q.require&&o(q.directiveName,q.require,x,v),w)}m=m||{};for(var r,s,t,x,y,A,B=-Number.MAX_VALUE,D=m.controllerDirectives,E=m.newIsolateScopeDirective,G=m.templateDirective,H=m.nonTlbTranscludeDirective,I=!1,L=!1,M=m.hasElementTranscludeDirective,O=f.$$element=zd(d),P=j,S=g,T=0,W=a.length;T<W;T++){s=a[T];var Y=s.$$start,_=s.$$end;if(Y&&(O=K(d,Y,_)),x=c,B>s.priority)break;if((A=s.scope)&&(s.templateUrl||(u(A)?(X("new/isolated scope",E||r,s,O),E=s):X("new/isolated scope",E,s,O)),r=r||s),t=s.name,!s.templateUrl&&s.controller&&(A=s.controller,D=D||pa(),X("'"+t+"' controller",D[t],s,O),D[t]=s),(A=s.transclude)&&(I=!0,s.$$tlb||(X("transclusion",H,s,O),H=s),"element"==A?(M=!0,B=s.priority,x=O,O=f.$$element=zd(b.createComment(" "+t+": "+f[t]+" ")),d=O[0],ba(h,R(x),d),S=F(x,g,B,P&&P.name,{nonTlbTranscludeDirective:H})):(x=zd(Ba(d)).contents(),O.empty(),S=F(x,g))),s.template)if(L=!0,X("template",G,s,O),G=s,A=z(s.template)?s.template(O,f):s.template,A=ja(A),s.replace){if(P=s,x=wa(A)?[]:kb($(s.templateNamespace,Nd(A))),d=x[0],1!=x.length||d.nodeType!==Ud)throw Ce("tplrt","Template for directive '{0}' must have exactly one root element. {1}",t,"");ba(h,O,d);var aa={$attr:{}},ga=J(d,[],aa),ha=a.splice(T+1,a.length-(T+1));E&&Q(ga),a=a.concat(ga).concat(ha),U(f,aa),W=a.length}else O.html(A);if(s.templateUrl)L=!0,X("template",G,s,O),G=s,s.replace&&(P=s),q=V(a.splice(T,a.length-T),O,f,h,I&&S,k,l,{controllerDirectives:D,newIsolateScopeDirective:E,templateDirective:G,nonTlbTranscludeDirective:H}),W=a.length;else if(s.compile)try{y=s.compile(O,f,S),z(y)?n(null,y,Y,_):y&&n(y.pre,y.post,Y,_)}catch(ia){e(ia,Z(O))}s.terminal&&(q.terminal=!0,B=Math.max(B,s.priority))}return q.scope=r&&r.scope===!0,q.transcludeOnThisElement=I,q.elementTranscludeOnThisElement=M,q.templateOnThisElement=L,q.transclude=S,m.hasElementTranscludeDirective=M,q}function Q(a){for(var b=0,c=a.length;b<c;b++)a[b]=o(a[b],{$$isolateScope:!0})}function S(b,d,f,g,h,i,l){if(d===h)return null;var m=null;if(j.hasOwnProperty(d))for(var n,p=a.get(d+k),q=0,r=p.length;q<r;q++)try{n=p[q],(g===c||g>n.priority)&&n.restrict.indexOf(f)!=-1&&(i&&(n=o(n,{$$start:i,$$end:l})),b.push(n),m=n)}catch(s){e(s)}return m}function T(b){if(j.hasOwnProperty(b))for(var c,d=a.get(b+k),e=0,f=d.length;e<f;e++)if(c=d[e],c.multiElement)return!0;return!1}function U(a,b){var c=b.$attr,d=a.$attr,e=a.$$element;f(a,function(d,e){"$"!=e.charAt(0)&&(b[e]&&b[e]!==d&&(d+=("style"===e?";":" ")+b[e]),a.$set(e,d,!0,c[e]))}),f(b,function(b,f){"class"==f?(E(e,b),a.class=(a.class?a.class+" ":"")+b):"style"==f?(e.attr("style",e.attr("style")+";"+b),a.style=(a.style?a.style+";":"")+b):"$"==f.charAt(0)||a.hasOwnProperty(f)||(a[f]=b,d[f]=c[f])})}function V(a,b,c,d,e,h,i,j){var k,l,m=[],n=b[0],p=a.shift(),q=o(p,{templateUrl:null,transclude:null,replace:null,$$originalDirective:p}),r=z(p.templateUrl)?p.templateUrl(b,c):p.templateUrl,s=p.templateNamespace;return b.empty(),g(A.getTrustedResourceUrl(r)).then(function(g){var o,t,v,w;if(g=ja(g),p.replace){if(v=wa(g)?[]:kb($(s,Nd(g))),o=v[0],1!=v.length||o.nodeType!==Ud)throw Ce("tplrt","Template for directive '{0}' must have exactly one root element. {1}",p.name,r);t={$attr:{}},ba(d,b,o);var x=J(o,[],t);u(p.scope)&&Q(x),a=x.concat(a),U(c,t)}else o=n,b.html(g);for(a.unshift(q),k=O(a,o,c,e,b,p,h,i,j),f(d,function(a,c){a==o&&(d[c]=b[0])}),l=H(b[0].childNodes,e);m.length;){var y=m.shift(),z=m.shift(),A=m.shift(),B=m.shift(),C=b[0];if(!y.$$destroyed){if(z!==n){var D=z.className;j.hasElementTranscludeDirective&&p.replace||(C=Ba(o)),ba(A,zd(z),C),E(zd(C),D)}w=k.transcludeOnThisElement?I(y,k.transclude,B):B,k(l,y,C,d,w,k)}}m=null}),function(a,b,c,d,e){var f=e;b.$$destroyed||(m?m.push(b,c,d,f):(k.transcludeOnThisElement&&(f=I(b,k.transclude,e)),k(l,b,c,d,f,k)))}}function W(a,b){var c=b.priority-a.priority;return 0!==c?c:a.name!==b.name?a.name<b.name?-1:1:a.index-b.index}function X(a,b,c,d){if(b)throw Ce("multidir","Multiple directives [{0}, {1}] asking for {2} on: {3}",b.name,c.name,a,Z(d))}function Y(a,b){var c=d(b,!0);c&&a.push({priority:0,compile:function(a){var b=a.parent(),d=!!b.length;return d&&F.$$addBindingClass(b),function(a,b){var e=b.parent();d||F.$$addBindingClass(e),F.$$addBindingInfo(e,c.expressions),a.$watch(c,function(a){b[0].nodeValue=a})}}})}function $(a,c){switch(a=td(a||"html")){case"svg":case"math":var d=b.createElement("div");return d.innerHTML="<"+a+">"+c+"</"+a+">",d.childNodes[0].childNodes;default:return c}}function _(a,b){if("srcdoc"==b)return A.HTML;var c=L(a);return"xlinkHref"==b||"form"==c&&"action"==b||"img"!=c&&("src"==b||"ngSrc"==b)?A.RESOURCE_URL:void 0}function aa(a,b,c,e,f){var g=_(a,e);f=s[e]||f;var h=d(c,!0,g,f);if(h){if("multiple"===e&&"select"===L(a))throw Ce("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",Z(a));b.push({priority:100,compile:function(){return{pre:function(a,b,i){var j=i.$$observers||(i.$$observers={});if(x.test(e))throw Ce("nodomevents","Interpolations for HTML DOM event attributes are disallowed.  Please use the ng- versions (such as ng-click instead of onclick) instead.");var k=i[e];k!==c&&(h=k&&d(k,!0,g,f),c=k),h&&(i[e]=h(a),(j[e]||(j[e]=[])).$$inter=!0,(i.$$observers&&i.$$observers[e].$$scope||a).$watch(h,function(a,b){"class"===e&&a!=b?i.$updateClass(a,b):i.$set(e,a)}))}}}})}}function ba(a,c,d){var e,f,g=c[0],h=c.length,i=g.parentNode;if(a)for(e=0,f=a.length;e<f;e++)if(a[e]==g){a[e++]=d;for(var j=e,k=j+h-1,l=a.length;j<l;j++,k++)k<l?a[j]=a[k]:delete a[j];a.length-=h-1,a.context===g&&(a.context=d);break}i&&i.replaceChild(d,g);var m=b.createDocumentFragment();m.appendChild(g),zd(d).data(zd(g).data()),Ad?(Kd=!0,Ad.cleanData([g])):delete zd.cache[g[zd.expando]];for(var n=1,o=c.length;n<o;n++){var p=c[n];zd(p).remove(),m.appendChild(p),delete c[n]}c[0]=d,c.length=1}function ca(a,b){return l(function(){return a.apply(null,arguments)},a,b)}function da(a,b,c,d,f,g){try{a(b,c,d,f,g)}catch(h){e(h,Z(c))}}function ea(a,b,c,e,g,i){var j;f(e,function(e,f){var i,k,l,m,n=e.attrName,o=e.optional,q=e.mode;switch(q){case"@":b.$observe(n,function(a){c[f]=a}),b.$$observers[n].$$scope=a,b[n]&&(c[f]=d(b[n])(a));break;case"=":if(o&&!b[n])return;k=h(b[n]),m=k.literal?P:function(a,b){return a===b||a!==a&&b!==b},l=k.assign||function(){throw i=c[f]=k(a),Ce("nonassign","Expression '{0}' used with directive '{1}' is non-assignable!",b[n],g.name)},i=c[f]=k(a);var r=function(b){return m(b,c[f])||(m(b,i)?l(a,b=c[f]):c[f]=b),i=b};r.$stateful=!0;var s;s=e.collection?a.$watchCollection(b[n],r):a.$watch(h(b[n],r),null,k.literal),j=j||[],j.push(s);break;case"&":if(!b.hasOwnProperty(n)&&o)break;if(k=h(b[n]),k===p&&o)break;c[f]=function(b){return k(a,b)}}});var k=j?function(){for(var a=0,b=j.length;a<b;++a)j[a]()}:p;return i&&k!==p?(i.$on("$destroy",k),p):k}var fa=function(a,b){if(b){var c,d,e,f=Object.keys(b);for(c=0,d=f.length;c<d;c++)e=f[c],this[e]=b[e]}else this.$attr={};this.$$element=a};fa.prototype={$normalize:ib,$addClass:function(a){a&&a.length>0&&B.addClass(this.$$element,a)},$removeClass:function(a){a&&a.length>0&&B.removeClass(this.$$element,a)},$updateClass:function(a,b){var c=jb(a,b);c&&c.length&&B.addClass(this.$$element,c);var d=jb(b,a);d&&d.length&&B.removeClass(this.$$element,d)},$set:function(a,b,d,g){var h,i=this.$$element[0],j=Qa(i,a),k=Ra(i,a),l=a;if(j?(this.$$element.prop(a,b),g=j):k&&(this[k]=b,l=k),this[a]=b,g?this.$attr[a]=g:(g=this.$attr[a],g||(this.$attr[a]=g=ia(a,"-"))),h=L(this.$$element),"a"===h&&"href"===a||"img"===h&&"src"===a)this[a]=b=D(b,"src"===a);else if("img"===h&&"srcset"===a){for(var m="",n=Nd(b),o=/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/,p=/\s/.test(n)?o:/(,)/,q=n.split(p),r=Math.floor(q.length/2),s=0;s<r;s++){var t=2*s;m+=D(Nd(q[t]),!0),m+=" "+Nd(q[t+1])}var u=Nd(q[2*s]).split(/\s/);m+=D(Nd(u[0]),!0),2===u.length&&(m+=" "+Nd(u[1])),this[a]=b=m}d!==!1&&(null===b||b===c?this.$$element.removeAttr(g):this.$$element.attr(g,b));var v=this.$$observers;v&&f(v[l],function(a){try{a(b)}catch(c){e(c)}})},$observe:function(a,b){var c=this,d=c.$$observers||(c.$$observers=pa()),e=d[a]||(d[a]=[]);return e.push(b),r.$evalAsync(function(){!e.$$inter&&c.hasOwnProperty(a)&&b(c[a])}),function(){M(e,b)}}};var ga=d.startSymbol(),ha=d.endSymbol(),ja="{{"==ga||"}}"==ha?q:function(a){return a.replace(/\{\{/g,ga).replace(/}}/g,ha)},la=/^ngAttr[A-Z]/;return F.$$addBindingInfo=y?function(a,b){var c=a.data("$binding")||[];Ld(b)?c=c.concat(b):c.push(b),a.data("$binding",c)}:p,F.$$addBindingClass=y?function(a){E(a,"ng-binding")}:p,F.$$addScopeInfo=y?function(a,b,c,d){var e=c?d?"$isolateScopeNoTemplate":"$isolateScope":"$scope";a.data(e,b)}:p,F.$$addScopeClass=y?function(a,b){E(a,b?"ng-isolate-scope":"ng-scope")}:p,F}]}function ib(a){return va(a.replace(De,""))}function jb(a,b){var c="",d=a.split(/\s+/),e=b.split(/\s+/);a:for(var f=0;f<d.length;f++){for(var g=d[f],h=0;h<e.length;h++)if(g==e[h])continue a;c+=(c.length>0?" ":"")+g}return c}function kb(a){a=zd(a);var b=a.length;if(b<=1)return a;for(;b--;){var c=a[b];c.nodeType===Xd&&Dd.call(a,b,1)}return a}function lb(a,b){if(b&&w(b))return b;if(w(a)){var c=Fe.exec(a);if(c)return c[3]}}function mb(){var a={},b=!1;this.register=function(b,c){ma(b,"controller"),u(b)?l(a,b):a[b]=c},this.allowGlobals=function(){b=!0},this.$get=["$injector","$window",function(e,f){function g(a,b,c,e){if(!a||!u(a.$scope))throw d("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",e,b);a.$scope[b]=c}return function(d,h,i,j){var k,m,n,o;if(i=i===!0,j&&w(j)&&(o=j),w(d)){if(m=d.match(Fe),!m)throw Ee("ctrlfmt","Badly formed controller string '{0}'. Must match `__name__ as __id__` or `__name__`.",d);n=m[1],o=o||m[3],d=a.hasOwnProperty(n)?a[n]:na(h.$scope,n,!0)||(b?na(f,n,!0):c),la(d,n,!0)}if(i){var p=(Ld(d)?d[d.length-1]:d).prototype;k=Object.create(p||null),o&&g(h,o,k,n||d.name);var q;return q=l(function(){var a=e.invoke(d,k,h,n);return a!==k&&(u(a)||z(a))&&(k=a,o&&g(h,o,k,n||d.name)),k},{instance:k,identifier:o})}return k=e.instantiate(d,h,n),o&&g(h,o,k,n||d.name),k}}]}function nb(){this.$get=["$window",function(a){return zd(a.document)}]}function ob(){this.$get=["$log",function(a){return function(b,c){a.error.apply(a,arguments)}}]}function pb(a){return u(a)?y(a)?a.toISOString():U(a):a}function qb(){this.$get=function(){return function(a){if(!a)return"";var b=[];return g(a,function(a,c){null===a||s(a)||(Ld(a)?f(a,function(a,d){b.push(ca(c)+"="+ca(pb(a)))}):b.push(ca(c)+"="+ca(pb(a))))}),b.join("&")}}}function rb(){this.$get=function(){return function(a){function b(a,d,e){null===a||s(a)||(Ld(a)?f(a,function(a){b(a,d+"[]")}):u(a)&&!y(a)?g(a,function(a,c){b(a,d+(e?"":"[")+c+(e?"":"]"))}):c.push(ca(d)+"="+ca(pb(a))))}if(!a)return"";var c=[];return b(a,"",!0),c.join("&")}}}function sb(a,b){if(w(a)){var c=a.replace(Ke,"").trim();if(c){var d=b("Content-Type");(d&&0===d.indexOf(Ge)||tb(c))&&(a=V(c))}}return a}function tb(a){var b=a.match(Ie);return b&&Je[b[0]].test(a)}function ub(a){function b(a,b){a&&(d[a]=d[a]?d[a]+", "+b:b)}var c,d=pa();return w(a)?f(a.split("\n"),function(a){c=a.indexOf(":"),b(td(Nd(a.substr(0,c))),Nd(a.substr(c+1)))}):u(a)&&f(a,function(a,c){b(td(c),Nd(a))}),d}function vb(a){var b;return function(c){if(b||(b=ub(a)),c){var d=b[td(c)];return void 0===d&&(d=null),d}return b}}function wb(a,b,c,d){return z(d)?d(a,b,c):(f(d,function(d){a=d(a,b,c)}),a)}function xb(a){return 200<=a&&a<300}function yb(){var a=this.defaults={transformResponse:[sb],transformRequest:[function(a){return!u(a)||D(a)||F(a)||E(a)?a:U(a)}],headers:{common:{Accept:"application/json, text/plain, */*"},post:O(He),put:O(He),patch:O(He)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer"},b=!1;this.useApplyAsync=function(a){return t(a)?(b=!!a,this):b};var e=this.interceptors=[];this.$get=["$httpBackend","$$cookieReader","$cacheFactory","$rootScope","$q","$injector",function(g,h,i,j,k,m){function n(b){function e(a){var b=l({},a);return a.data?b.data=wb(a.data,a.headers,a.status,i.transformResponse):b.data=a.data,xb(a.status)?b:k.reject(b)}function g(a,b){var c,d={};return f(a,function(a,e){z(a)?(c=a(b),null!=c&&(d[e]=c)):d[e]=a}),d}function h(b){var c,d,e,f=a.headers,h=l({},b.headers);f=l({},f.common,f[td(b.method)]);a:for(c in f){d=td(c);for(e in h)if(td(e)===d)continue a;h[c]=f[c]}return g(h,O(b))}if(!Id.isObject(b))throw d("$http")("badreq","Http request configuration must be an object.  Received: {0}",b);var i=l({method:"get",transformRequest:a.transformRequest,transformResponse:a.transformResponse,paramSerializer:a.paramSerializer},b);i.headers=h(b),i.method=vd(i.method),i.paramSerializer=w(i.paramSerializer)?m.get(i.paramSerializer):i.paramSerializer;var j=function(b){var d=b.headers,g=wb(b.data,vb(d),c,b.transformRequest);return s(g)&&f(d,function(a,b){"content-type"===td(b)&&delete d[b]}),s(b.withCredentials)&&!s(a.withCredentials)&&(b.withCredentials=a.withCredentials),q(b,g).then(e,e)},n=[j,c],o=k.when(i);for(f(x,function(a){(a.request||a.requestError)&&n.unshift(a.request,a.requestError),(a.response||a.responseError)&&n.push(a.response,a.responseError)});n.length;){var p=n.shift(),r=n.shift();o=o.then(p,r)}return o.success=function(a){return la(a,"fn"),o.then(function(b){a(b.data,b.status,b.headers,i)}),o},o.error=function(a){return la(a,"fn"),o.then(null,function(b){a(b.data,b.status,b.headers,i)}),o},o}function o(a){f(arguments,function(a){n[a]=function(b,c){return n(l({},c||{},{method:a,url:b}))}})}function p(a){f(arguments,function(a){n[a]=function(b,c,d){return n(l({},d||{},{method:a,url:b,data:c}))}})}function q(d,e){function f(a,c,d,e){function f(){i(c,a,d,e)}o&&(xb(a)?o.put(y,[a,c,ub(d),e]):o.remove(y)),b?j.$applyAsync(f):(f(),j.$$phase||j.$apply())}function i(a,b,c,e){b=Math.max(b,0),(xb(b)?q.resolve:q.reject)({data:a,status:b,headers:vb(c),config:d,statusText:e})}function l(a){i(a.data,a.status,O(a.headers()),a.statusText)}function m(){var a=n.pendingRequests.indexOf(d);a!==-1&&n.pendingRequests.splice(a,1)}var o,p,q=k.defer(),w=q.promise,x=d.headers,y=r(d.url,d.paramSerializer(d.params));if(n.pendingRequests.push(d),w.then(m,m),!d.cache&&!a.cache||d.cache===!1||"GET"!==d.method&&"JSONP"!==d.method||(o=u(d.cache)?d.cache:u(a.cache)?a.cache:v),o&&(p=o.get(y),t(p)?H(p)?p.then(l,l):Ld(p)?i(p[1],p[0],O(p[2]),p[3]):i(p,200,{},"OK"):o.put(y,w)),s(p)){var z=zc(d.url)?h()[d.xsrfCookieName||a.xsrfCookieName]:c;z&&(x[d.xsrfHeaderName||a.xsrfHeaderName]=z),g(d.method,y,e,f,x,d.timeout,d.withCredentials,d.responseType)}return w}function r(a,b){return b.length>0&&(a+=(a.indexOf("?")==-1?"?":"&")+b),a}var v=i("$http");a.paramSerializer=w(a.paramSerializer)?m.get(a.paramSerializer):a.paramSerializer;var x=[];return f(e,function(a){x.unshift(w(a)?m.get(a):m.invoke(a))}),n.pendingRequests=[],o("get","delete","head","jsonp"),p("post","put","patch"),n.defaults=a,n}]}function zb(){return new a.XMLHttpRequest}function Ab(){this.$get=["$browser","$window","$document",function(a,b,c){return Bb(a,zb,a.defer,b.angular.callbacks,c[0])}]}function Bb(a,b,d,e,g){function h(a,b,c){var d=g.createElement("script"),f=null;return d.type="text/javascript",d.src=a,d.async=!0,f=function(a){ce(d,"load",f),ce(d,"error",f),g.body.removeChild(d),d=null;var h=-1,i="unknown";a&&("load"!==a.type||e[b].called||(a={type:"error"}),i=a.type,h="error"===a.type?404:200),c&&c(h,i)},be(d,"load",f),be(d,"error",f),g.body.appendChild(d),f}return function(g,i,j,k,l,m,n,o){function q(){u&&u(),v&&v.abort()}function r(b,e,f,g,h){y!==c&&d.cancel(y),u=v=null,b(e,f,g,h),a.$$completeOutstandingRequest(p)}if(a.$$incOutstandingRequestCount(),i=i||a.url(),"jsonp"==td(g)){var s="_"+(e.counter++).toString(36);e[s]=function(a){e[s].data=a,e[s].called=!0};var u=h(i.replace("JSON_CALLBACK","angular.callbacks."+s),s,function(a,b){r(k,a,e[s].data,"",b),e[s]=p})}else{var v=b();v.open(g,i,!0),f(l,function(a,b){t(a)&&v.setRequestHeader(b,a)}),v.onload=function(){var a=v.statusText||"",b="response"in v?v.response:v.responseText,c=1223===v.status?204:v.status;0===c&&(c=b?200:"file"==yc(i).protocol?404:0),r(k,c,b,v.getAllResponseHeaders(),a)};var w=function(){r(k,-1,null,null,"")};if(v.onerror=w,v.onabort=w,n&&(v.withCredentials=!0),o)try{v.responseType=o}catch(x){if("json"!==o)throw x}v.send(j)}if(m>0)var y=d(q,m);else H(m)&&m.then(q)}}function Cb(){var a="{{",b="}}";this.startSymbol=function(b){return b?(a=b,this):a},this.endSymbol=function(a){return a?(b=a,this):b},this.$get=["$parse","$exceptionHandler","$sce",function(c,d,e){function f(a){return"\\\\\\"+a}function g(c){return c.replace(m,a).replace(n,b)}function h(a){if(null==a)return"";switch(typeof a){case"string":break;case"number":a=""+a;break;default:a=U(a)}return a}function i(f,i,m,n){function o(a){try{return a=C(a),n&&!t(a)?a:h(a)}catch(b){d(Le.interr(f,b))}}n=!!n;for(var p,q,r,u=0,v=[],w=[],x=f.length,y=[],A=[];u<x;){if((p=f.indexOf(a,u))==-1||(q=f.indexOf(b,p+j))==-1){u!==x&&y.push(g(f.substring(u)));break}u!==p&&y.push(g(f.substring(u,p))),r=f.substring(p+j,q),v.push(r),w.push(c(r,o)),u=q+k,A.push(y.length),y.push("")}if(m&&y.length>1&&Le.throwNoconcat(f),!i||v.length){var B=function(a){for(var b=0,c=v.length;b<c;b++){if(n&&s(a[b]))return;y[A[b]]=a[b]}return y.join("")},C=function(a){return m?e.getTrusted(m,a):e.valueOf(a)};return l(function(a){var b=0,c=v.length,e=new Array(c);try{for(;b<c;b++)e[b]=w[b](a);return B(e)}catch(g){d(Le.interr(f,g))}},{exp:f,expressions:v,$$watchDelegate:function(a,b){var c;return a.$watchGroup(w,function(d,e){var f=B(d);z(b)&&b.call(this,f,d!==e?c:f,a),c=f})}})}}var j=a.length,k=b.length,m=new RegExp(a.replace(/./g,f),"g"),n=new RegExp(b.replace(/./g,f),"g");return i.startSymbol=function(){return a},i.endSymbol=function(){return b},i}]}function Db(){this.$get=["$rootScope","$window","$q","$$q",function(a,b,c,d){function e(e,g,h,i){var j=arguments.length>4,k=j?R(arguments,4):[],l=b.setInterval,m=b.clearInterval,n=0,o=t(i)&&!i,p=(o?d:c).defer(),q=p.promise;return h=t(h)?h:0,q.then(null,null,j?function(){e.apply(null,k)}:e),q.$$intervalId=l(function(){p.notify(n++),h>0&&n>=h&&(p.resolve(n),m(q.$$intervalId),delete f[q.$$intervalId]),o||a.$apply()},g),f[q.$$intervalId]=p,q}var f={};return e.cancel=function(a){return!!(a&&a.$$intervalId in f)&&(f[a.$$intervalId].reject("canceled"),b.clearInterval(a.$$intervalId),delete f[a.$$intervalId],!0)},e}]}function Eb(){this.$get=function(){return{id:"en-us",NUMBER_FORMATS:{DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{minInt:1,minFrac:0,maxFrac:3,posPre:"",posSuf:"",negPre:"-",negSuf:"",gSize:3,lgSize:3},{minInt:1,minFrac:2,maxFrac:2,posPre:"¤",posSuf:"",negPre:"(¤",negSuf:")",gSize:3,lgSize:3}],CURRENCY_SYM:"$"},DATETIME_FORMATS:{MONTH:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),SHORTMONTH:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),DAY:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),SHORTDAY:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(","),AMPMS:["AM","PM"],medium:"MMM d, y h:mm:ss a",short:"M/d/yy h:mm a",fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",mediumDate:"MMM d, y",shortDate:"M/d/yy",mediumTime:"h:mm:ss a",shortTime:"h:mm a",ERANAMES:["Before Christ","Anno Domini"],ERAS:["BC","AD"]},pluralCat:function(a){return 1===a?"one":"other"}}}}function Fb(a){for(var b=a.split("/"),c=b.length;c--;)b[c]=ba(b[c]);return b.join("/")}function Gb(a,b){var c=yc(a);b.$$protocol=c.protocol,b.$$host=c.hostname,b.$$port=n(c.port)||Ne[c.protocol]||null}function Hb(a,b){var c="/"!==a.charAt(0);c&&(a="/"+a);var d=yc(a);b.$$path=decodeURIComponent(c&&"/"===d.pathname.charAt(0)?d.pathname.substring(1):d.pathname),b.$$search=_(d.search),b.$$hash=decodeURIComponent(d.hash),b.$$path&&"/"!=b.$$path.charAt(0)&&(b.$$path="/"+b.$$path)}function Ib(a,b){if(0===b.indexOf(a))return b.substr(a.length)}function Jb(a){var b=a.indexOf("#");return b==-1?a:a.substr(0,b)}function Kb(a){return a.replace(/(#.+)|#$/,"$1")}function Lb(a){return a.substr(0,Jb(a).lastIndexOf("/")+1)}function Mb(a){return a.substring(0,a.indexOf("/",a.indexOf("//")+2))}function Nb(a,b){this.$$html5=!0,b=b||"";var d=Lb(a);Gb(a,this),this.$$parse=function(a){var b=Ib(d,a);if(!w(b))throw Oe("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',a,d);Hb(b,this),this.$$path||(this.$$path="/"),this.$$compose()},this.$$compose=function(){var a=aa(this.$$search),b=this.$$hash?"#"+ba(this.$$hash):"";this.$$url=Fb(this.$$path)+(a?"?"+a:"")+b,this.$$absUrl=d+this.$$url.substr(1)},this.$$parseLinkUrl=function(e,f){if(f&&"#"===f[0])return this.hash(f.slice(1)),!0;var g,h,i;return(g=Ib(a,e))!==c?(h=g,i=(g=Ib(b,g))!==c?d+(Ib("/",g)||g):a+h):(g=Ib(d,e))!==c?i=d+g:d==e+"/"&&(i=d),i&&this.$$parse(i),!!i}}function Ob(a,b){var c=Lb(a);Gb(a,this),this.$$parse=function(d){function e(a,b,c){var d,e=/^\/[A-Z]:(\/.*)/;return 0===b.indexOf(c)&&(b=b.replace(c,"")),e.exec(b)?a:(d=e.exec(a),d?d[1]:a)}var f,g=Ib(a,d)||Ib(c,d);"#"===g.charAt(0)?(f=Ib(b,g),s(f)&&(f=g)):f=this.$$html5?g:"",Hb(f,this),this.$$path=e(this.$$path,f,a),this.$$compose()},this.$$compose=function(){var c=aa(this.$$search),d=this.$$hash?"#"+ba(this.$$hash):"";this.$$url=Fb(this.$$path)+(c?"?"+c:"")+d,this.$$absUrl=a+(this.$$url?b+this.$$url:"")},this.$$parseLinkUrl=function(b,c){return Jb(a)==Jb(b)&&(this.$$parse(b),!0)}}function Pb(a,b){this.$$html5=!0,Ob.apply(this,arguments);var c=Lb(a);this.$$parseLinkUrl=function(d,e){if(e&&"#"===e[0])return this.hash(e.slice(1)),!0;var f,g;return a==Jb(d)?f=d:(g=Ib(c,d))?f=a+b+g:c===d+"/"&&(f=c),f&&this.$$parse(f),!!f},this.$$compose=function(){var c=aa(this.$$search),d=this.$$hash?"#"+ba(this.$$hash):"";this.$$url=Fb(this.$$path)+(c?"?"+c:"")+d,this.$$absUrl=a+b+this.$$url}}function Qb(a){return function(){return this[a]}}function Rb(a,b){return function(c){return s(c)?this[a]:(this[a]=b(c),this.$$compose(),this)}}function Sb(){var a="",b={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(b){return t(b)?(a=b,this):a},this.html5Mode=function(a){return G(a)?(b.enabled=a,this):u(a)?(G(a.enabled)&&(b.enabled=a.enabled),G(a.requireBase)&&(b.requireBase=a.requireBase),G(a.rewriteLinks)&&(b.rewriteLinks=a.rewriteLinks),this):b},this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(c,d,e,f,g){function h(a,b,c){var e=j.url(),f=j.$$state;try{d.url(a,b,c),j.$$state=d.state()}catch(g){throw j.url(e),j.$$state=f,g}}function i(a,b){c.$broadcast("$locationChangeSuccess",j.absUrl(),a,j.$$state,b)}var j,k,l,m=d.baseHref(),n=d.url();if(b.enabled){if(!m&&b.requireBase)throw Oe("nobase","$location in HTML5 mode requires a <base> tag to be present!");l=Mb(n)+(m||"/"),k=e.history?Nb:Pb}else l=Jb(n),k=Ob;j=new k(l,"#"+a),j.$$parseLinkUrl(n,n),j.$$state=d.state();var o=/^\s*(javascript|mailto):/i;f.on("click",function(a){if(b.rewriteLinks&&!a.ctrlKey&&!a.metaKey&&!a.shiftKey&&2!=a.which&&2!=a.button){for(var e=zd(a.target);"a"!==L(e[0]);)if(e[0]===f[0]||!(e=e.parent())[0])return;var h=e.prop("href"),i=e.attr("href")||e.attr("xlink:href");u(h)&&"[object SVGAnimatedString]"===h.toString()&&(h=yc(h.animVal).href),o.test(h)||!h||e.attr("target")||a.isDefaultPrevented()||j.$$parseLinkUrl(h,i)&&(a.preventDefault(),j.absUrl()!=d.url()&&(c.$apply(),g.angular["ff-684208-preventDefault"]=!0))}}),Kb(j.absUrl())!=Kb(n)&&d.url(j.absUrl(),!0);var p=!0;return d.onUrlChange(function(a,b){c.$evalAsync(function(){var d,e=j.absUrl(),f=j.$$state;j.$$parse(a),j.$$state=b,d=c.$broadcast("$locationChangeStart",a,e,b,f).defaultPrevented,j.absUrl()===a&&(d?(j.$$parse(e),j.$$state=f,h(e,!1,f)):(p=!1,i(e,f)))}),c.$$phase||c.$digest()}),c.$watch(function(){var a=Kb(d.url()),b=Kb(j.absUrl()),f=d.state(),g=j.$$replace,k=a!==b||j.$$html5&&e.history&&f!==j.$$state;(p||k)&&(p=!1,c.$evalAsync(function(){var b=j.absUrl(),d=c.$broadcast("$locationChangeStart",b,a,j.$$state,f).defaultPrevented;j.absUrl()===b&&(d?(j.$$parse(a),j.$$state=f):(k&&h(b,g,f===j.$$state?null:j.$$state),i(a,f)))})),j.$$replace=!1}),j}]}function Tb(){var a=!0,b=this;this.debugEnabled=function(b){return t(b)?(a=b,this):a},this.$get=["$window",function(c){function d(a){return a instanceof Error&&(a.stack?a=a.message&&a.stack.indexOf(a.message)===-1?"Error: "+a.message+"\n"+a.stack:a.stack:a.sourceURL&&(a=a.message+"\n"+a.sourceURL+":"+a.line)),a}function e(a){var b=c.console||{},e=b[a]||b.log||p,g=!1;try{g=!!e.apply}catch(h){}return g?function(){var a=[];return f(arguments,function(b){a.push(d(b))}),e.apply(b,a)}:function(a,b){e(a,null==b?"":b)}}return{log:e("log"),info:e("info"),warn:e("warn"),error:e("error"),debug:function(){var c=e("debug");return function(){a&&c.apply(b,arguments)}}()}}]}function Ub(a,b){if("__defineGetter__"===a||"__defineSetter__"===a||"__lookupGetter__"===a||"__lookupSetter__"===a||"__proto__"===a)throw Qe("isecfld","Attempting to access a disallowed field in Angular expressions! Expression: {0}",b);return a}function Vb(a,b){if(a){if(a.constructor===a)throw Qe("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",b);if(a.window===a)throw Qe("isecwindow","Referencing the Window in Angular expressions is disallowed! Expression: {0}",b);if(a.children&&(a.nodeName||a.prop&&a.attr&&a.find))throw Qe("isecdom","Referencing DOM nodes in Angular expressions is disallowed! Expression: {0}",b);if(a===Object)throw Qe("isecobj","Referencing Object in Angular expressions is disallowed! Expression: {0}",b)}return a}function Wb(a,b){if(a){if(a.constructor===a)throw Qe("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",b);if(a===Re||a===Se||a===Te)throw Qe("isecff","Referencing call, apply or bind in Angular expressions is disallowed! Expression: {0}",b)}}function Xb(a,b){return"undefined"!=typeof a?a:b}function Yb(a,b){return"undefined"==typeof a?b:"undefined"==typeof b?a:a+b}function Zb(a,b){var c=a(b);return!c.$stateful}function $b(a,b){var c,d;switch(a.type){case Xe.Program:c=!0,f(a.body,function(a){$b(a.expression,b),c=c&&a.expression.constant}),a.constant=c;break;case Xe.Literal:a.constant=!0,a.toWatch=[];break;case Xe.UnaryExpression:$b(a.argument,b),a.constant=a.argument.constant,a.toWatch=a.argument.toWatch;break;case Xe.BinaryExpression:$b(a.left,b),$b(a.right,b),a.constant=a.left.constant&&a.right.constant,a.toWatch=a.left.toWatch.concat(a.right.toWatch);break;case Xe.LogicalExpression:$b(a.left,b),$b(a.right,b),a.constant=a.left.constant&&a.right.constant,a.toWatch=a.constant?[]:[a];break;case Xe.ConditionalExpression:$b(a.test,b),$b(a.alternate,b),$b(a.consequent,b),a.constant=a.test.constant&&a.alternate.constant&&a.consequent.constant,a.toWatch=a.constant?[]:[a];break;case Xe.Identifier:a.constant=!1,a.toWatch=[a];break;case Xe.MemberExpression:$b(a.object,b),a.computed&&$b(a.property,b),a.constant=a.object.constant&&(!a.computed||a.property.constant),a.toWatch=[a];break;case Xe.CallExpression:c=!!a.filter&&Zb(b,a.callee.name),d=[],f(a.arguments,function(a){$b(a,b),c=c&&a.constant,a.constant||d.push.apply(d,a.toWatch)}),a.constant=c,a.toWatch=a.filter&&Zb(b,a.callee.name)?d:[a];break;case Xe.AssignmentExpression:$b(a.left,b),$b(a.right,b),a.constant=a.left.constant&&a.right.constant,a.toWatch=[a];break;case Xe.ArrayExpression:c=!0,d=[],f(a.elements,function(a){$b(a,b),c=c&&a.constant,a.constant||d.push.apply(d,a.toWatch)}),a.constant=c,a.toWatch=d;break;case Xe.ObjectExpression:c=!0,d=[],f(a.properties,function(a){$b(a.value,b),c=c&&a.value.constant,a.value.constant||d.push.apply(d,a.value.toWatch)}),a.constant=c,a.toWatch=d;break;case Xe.ThisExpression:a.constant=!1,a.toWatch=[]}}function _b(a){if(1==a.length){var b=a[0].expression,d=b.toWatch;return 1!==d.length?d:d[0]!==b?d:c}}function ac(a){return a.type===Xe.Identifier||a.type===Xe.MemberExpression}function bc(a){if(1===a.body.length&&ac(a.body[0].expression))return{type:Xe.AssignmentExpression,left:a.body[0].expression,right:{type:Xe.NGValueParameter},operator:"="}}function cc(a){return 0===a.body.length||1===a.body.length&&(a.body[0].expression.type===Xe.Literal||a.body[0].expression.type===Xe.ArrayExpression||a.body[0].expression.type===Xe.ObjectExpression)}function dc(a){return a.constant}function ec(a,b){this.astBuilder=a,this.$filter=b}function fc(a,b){this.astBuilder=a,this.$filter=b}function gc(a,b,c,d){Vb(a,d);for(var e,f=b.split("."),g=0;f.length>1;g++){e=Ub(f.shift(),d);var h=Vb(a[e],d);h||(h={},a[e]=h),a=h}return e=Ub(f.shift(),d),Vb(a[e],d),a[e]=c,c}function hc(a){return"constructor"==a}function ic(a){return z(a.valueOf)?a.valueOf():Ze.call(a)}function jc(){var a=pa(),b=pa();this.$get=["$filter","$sniffer",function(d,e){function g(a,b){return null==a||null==b?a===b:("object"!=typeof a||(a=ic(a),"object"!=typeof a))&&(a===b||a!==a&&b!==b)}function h(a,b,d,e,f){var h,i=e.inputs;if(1===i.length){var j=g;return i=i[0],a.$watch(function(a){var b=i(a);return g(b,j)||(h=e(a,c,c,[b]),j=b&&ic(b)),h},b,d,f)}for(var k=[],l=[],m=0,n=i.length;m<n;m++)k[m]=g,l[m]=null;return a.$watch(function(a){for(var b=!1,d=0,f=i.length;d<f;d++){var j=i[d](a);(b||(b=!g(j,k[d])))&&(l[d]=j,k[d]=j&&ic(j))}return b&&(h=e(a,c,c,l)),h},b,d,f)}function i(a,b,c,d){var e,f;return e=a.$watch(function(a){return d(a)},function(a,c,d){f=a,z(b)&&b.apply(this,arguments),t(a)&&d.$$postDigest(function(){
t(f)&&e()})},c)}function j(a,b,c,d){function e(a){var b=!0;return f(a,function(a){t(a)||(b=!1)}),b}var g,h;return g=a.$watch(function(a){return d(a)},function(a,c,d){h=a,z(b)&&b.call(this,a,c,d),e(a)&&d.$$postDigest(function(){e(h)&&g()})},c)}function k(a,b,c,d){var e;return e=a.$watch(function(a){return d(a)},function(a,c,d){z(b)&&b.apply(this,arguments),e()},c)}function l(a,b){if(!b)return a;var c=a.$$watchDelegate,d=c!==j&&c!==i,e=d?function(c,d,e,f){var g=a(c,d,e,f);return b(g,c,d)}:function(c,d,e,f){var g=a(c,d,e,f),h=b(g,c,d);return t(g)?h:g};return a.$$watchDelegate&&a.$$watchDelegate!==h?e.$$watchDelegate=a.$$watchDelegate:b.$stateful||(e.$$watchDelegate=h,e.inputs=a.inputs?a.inputs:[a]),e}var m={csp:e.csp,expensiveChecks:!1},n={csp:e.csp,expensiveChecks:!0};return function(c,e,f){var g,o,q;switch(typeof c){case"string":c=c.trim(),q=c;var r=f?b:a;if(g=r[q],!g){":"===c.charAt(0)&&":"===c.charAt(1)&&(o=!0,c=c.substring(2));var s=f?n:m,t=new We(s),u=new Ye(t,d,s);g=u.parse(c),g.constant?g.$$watchDelegate=k:o?g.$$watchDelegate=g.literal?j:i:g.inputs&&(g.$$watchDelegate=h),r[q]=g}return l(g,e);case"function":return l(c,e);default:return p}}}]}function kc(){this.$get=["$rootScope","$exceptionHandler",function(a,b){return mc(function(b){a.$evalAsync(b)},b)}]}function lc(){this.$get=["$browser","$exceptionHandler",function(a,b){return mc(function(b){a.defer(b)},b)}]}function mc(a,b){function e(a,b,c){function d(b){return function(c){e||(e=!0,b.call(a,c))}}var e=!1;return[d(b),d(c)]}function g(){this.$$state={status:0}}function h(a,b){return function(c){b.call(a,c)}}function i(a){var d,e,f;f=a.pending,a.processScheduled=!1,a.pending=c;for(var g=0,h=f.length;g<h;++g){e=f[g][0],d=f[g][a.status];try{z(d)?e.resolve(d(a.value)):1===a.status?e.resolve(a.value):e.reject(a.value)}catch(i){e.reject(i),b(i)}}}function j(b){!b.processScheduled&&b.pending&&(b.processScheduled=!0,a(function(){i(b)}))}function k(){this.promise=new g,this.resolve=h(this,this.resolve),this.reject=h(this,this.reject),this.notify=h(this,this.notify)}function l(a){var b=new k,c=0,d=Ld(a)?[]:{};return f(a,function(a,e){c++,r(a).then(function(a){d.hasOwnProperty(e)||(d[e]=a,--c||b.resolve(d))},function(a){d.hasOwnProperty(e)||b.reject(a)})}),0===c&&b.resolve(d),b.promise}var m=d("$q",TypeError),n=function(){return new k};g.prototype={then:function(a,b,c){var d=new k;return this.$$state.pending=this.$$state.pending||[],this.$$state.pending.push([d,a,b,c]),this.$$state.status>0&&j(this.$$state),d.promise},catch:function(a){return this.then(null,a)},finally:function(a,b){return this.then(function(b){return q(b,!0,a)},function(b){return q(b,!1,a)},b)}},k.prototype={resolve:function(a){this.promise.$$state.status||(a===this.promise?this.$$reject(m("qcycle","Expected promise to be resolved with value other than itself '{0}'",a)):this.$$resolve(a))},$$resolve:function(a){var c,d;d=e(this,this.$$resolve,this.$$reject);try{(u(a)||z(a))&&(c=a&&a.then),z(c)?(this.promise.$$state.status=-1,c.call(a,d[0],d[1],this.notify)):(this.promise.$$state.value=a,this.promise.$$state.status=1,j(this.promise.$$state))}catch(f){d[1](f),b(f)}},reject:function(a){this.promise.$$state.status||this.$$reject(a)},$$reject:function(a){this.promise.$$state.value=a,this.promise.$$state.status=2,j(this.promise.$$state)},notify:function(c){var d=this.promise.$$state.pending;this.promise.$$state.status<=0&&d&&d.length&&a(function(){for(var a,e,f=0,g=d.length;f<g;f++){e=d[f][0],a=d[f][3];try{e.notify(z(a)?a(c):c)}catch(h){b(h)}}})}};var o=function(a){var b=new k;return b.reject(a),b.promise},p=function(a,b){var c=new k;return b?c.resolve(a):c.reject(a),c.promise},q=function(a,b,c){var d=null;try{z(c)&&(d=c())}catch(e){return p(e,!1)}return H(d)?d.then(function(){return p(a,b)},function(a){return p(a,!1)}):p(a,b)},r=function(a,b,c,d){var e=new k;return e.resolve(a),e.promise.then(b,c,d)},s=function a(b){function c(a){e.resolve(a)}function d(a){e.reject(a)}if(!z(b))throw m("norslvr","Expected resolverFn, got '{0}'",b);if(!(this instanceof a))return new a(b);var e=new k;return b(c,d),e.promise};return s.defer=n,s.reject=o,s.when=r,s.all=l,s}function nc(){this.$get=["$window","$timeout",function(a,b){function c(){for(var a=0;a<k.length;a++){var b=k[a];b&&(k[a]=null,b())}j=k.length=0}function d(a){var b=k.length;return j++,k.push(a),0===b&&(i=h(c)),function(){b>=0&&(k[b]=null,b=null,0===--j&&i&&(i(),i=null,k.length=0))}}var e=a.requestAnimationFrame||a.webkitRequestAnimationFrame,f=a.cancelAnimationFrame||a.webkitCancelAnimationFrame||a.webkitCancelRequestAnimationFrame,g=!!e,h=g?function(a){var b=e(a);return function(){f(b)}}:function(a){var c=b(a,16.66,!1);return function(){b.cancel(c)}};d.supported=g;var i,j=0,k=[];return d}]}function oc(){function a(a){function b(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$id=i(),this.$$ChildScope=null}return b.prototype=a,b}var b=10,c=d("$rootScope"),g=null,h=null;this.digestTtl=function(a){return arguments.length&&(b=a),b},this.$get=["$injector","$exceptionHandler","$parse","$browser",function(d,j,k,l){function m(a){a.currentScope.$$destroyed=!0}function n(){this.$id=i(),this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null,this.$root=this,this.$$destroyed=!1,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$$isolateBindings=null}function o(a){if(y.$$phase)throw c("inprog","{0} already in progress",y.$$phase);y.$$phase=a}function q(){y.$$phase=null}function r(a,b){do a.$$watchersCount+=b;while(a=a.$parent)}function t(a,b,c){do a.$$listenerCount[c]-=b,0===a.$$listenerCount[c]&&delete a.$$listenerCount[c];while(a=a.$parent)}function v(){}function w(){for(;C.length;)try{C.shift()()}catch(a){j(a)}h=null}function x(){null===h&&(h=l.defer(function(){y.$apply(w)}))}n.prototype={constructor:n,$new:function(b,c){var d;return c=c||this,b?(d=new n,d.$root=this.$root):(this.$$ChildScope||(this.$$ChildScope=a(this)),d=new this.$$ChildScope),d.$parent=c,d.$$prevSibling=c.$$childTail,c.$$childHead?(c.$$childTail.$$nextSibling=d,c.$$childTail=d):c.$$childHead=c.$$childTail=d,(b||c!=this)&&d.$on("$destroy",m),d},$watch:function(a,b,c,d){var e=k(a);if(e.$$watchDelegate)return e.$$watchDelegate(this,b,c,e,a);var f=this,h=f.$$watchers,i={fn:b,last:v,get:e,exp:d||a,eq:!!c};return g=null,z(b)||(i.fn=p),h||(h=f.$$watchers=[]),h.unshift(i),r(this,1),function(){M(h,i)>=0&&r(f,-1),g=null}},$watchGroup:function(a,b){function c(){i=!1,j?(j=!1,b(e,e,h)):b(e,d,h)}var d=new Array(a.length),e=new Array(a.length),g=[],h=this,i=!1,j=!0;if(!a.length){var k=!0;return h.$evalAsync(function(){k&&b(e,e,h)}),function(){k=!1}}return 1===a.length?this.$watch(a[0],function(a,c,f){e[0]=a,d[0]=c,b(e,a===c?e:d,f)}):(f(a,function(a,b){var f=h.$watch(a,function(a,f){e[b]=a,d[b]=f,i||(i=!0,h.$evalAsync(c))});g.push(f)}),function(){for(;g.length;)g.shift()()})},$watchCollection:function(a,b){function c(a){f=a;var b,c,d,h,i;if(!s(f)){if(u(f))if(e(f)){g!==n&&(g=n,q=g.length=0,l++),b=f.length,q!==b&&(l++,g.length=q=b);for(var j=0;j<b;j++)i=g[j],h=f[j],d=i!==i&&h!==h,d||i===h||(l++,g[j]=h)}else{g!==o&&(g=o={},q=0,l++),b=0;for(c in f)f.hasOwnProperty(c)&&(b++,h=f[c],i=g[c],c in g?(d=i!==i&&h!==h,d||i===h||(l++,g[c]=h)):(q++,g[c]=h,l++));if(q>b){l++;for(c in g)f.hasOwnProperty(c)||(q--,delete g[c])}}else g!==f&&(g=f,l++);return l}}function d(){if(p?(p=!1,b(f,f,i)):b(f,h,i),j)if(u(f))if(e(f)){h=new Array(f.length);for(var a=0;a<f.length;a++)h[a]=f[a]}else{h={};for(var c in f)ud.call(f,c)&&(h[c]=f[c])}else h=f}c.$stateful=!0;var f,g,h,i=this,j=b.length>1,l=0,m=k(a,c),n=[],o={},p=!0,q=0;return this.$watch(m,d)},$digest:function(){var a,d,e,f,i,k,m,n,p,r,s=b,t=this,u=[];o("$digest"),l.$$checkUrlChange(),this===y&&null!==h&&(l.defer.cancel(h),w()),g=null;do{for(k=!1,n=t;A.length;){try{r=A.shift(),r.scope.$eval(r.expression,r.locals)}catch(x){j(x)}g=null}a:do{if(f=n.$$watchers)for(i=f.length;i--;)try{if(a=f[i])if((d=a.get(n))===(e=a.last)||(a.eq?P(d,e):"number"==typeof d&&"number"==typeof e&&isNaN(d)&&isNaN(e))){if(a===g){k=!1;break a}}else k=!0,g=a,a.last=a.eq?N(d,null):d,a.fn(d,e===v?d:e,n),s<5&&(p=4-s,u[p]||(u[p]=[]),u[p].push({msg:z(a.exp)?"fn: "+(a.exp.name||a.exp.toString()):a.exp,newVal:d,oldVal:e}))}catch(x){j(x)}if(!(m=n.$$watchersCount&&n.$$childHead||n!==t&&n.$$nextSibling))for(;n!==t&&!(m=n.$$nextSibling);)n=n.$parent}while(n=m);if((k||A.length)&&!s--)throw q(),c("infdig","{0} $digest() iterations reached. Aborting!\nWatchers fired in the last 5 iterations: {1}",b,u)}while(k||A.length);for(q();B.length;)try{B.shift()()}catch(x){j(x)}},$destroy:function(){if(!this.$$destroyed){var a=this.$parent;this.$broadcast("$destroy"),this.$$destroyed=!0,this===y&&l.$$applicationDestroyed(),r(this,-this.$$watchersCount);for(var b in this.$$listenerCount)t(this,this.$$listenerCount[b],b);a&&a.$$childHead==this&&(a.$$childHead=this.$$nextSibling),a&&a.$$childTail==this&&(a.$$childTail=this.$$prevSibling),this.$$prevSibling&&(this.$$prevSibling.$$nextSibling=this.$$nextSibling),this.$$nextSibling&&(this.$$nextSibling.$$prevSibling=this.$$prevSibling),this.$destroy=this.$digest=this.$apply=this.$evalAsync=this.$applyAsync=p,this.$on=this.$watch=this.$watchGroup=function(){return p},this.$$listeners={},this.$parent=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=this.$root=this.$$watchers=null}},$eval:function(a,b){return k(a)(this,b)},$evalAsync:function(a,b){y.$$phase||A.length||l.defer(function(){A.length&&y.$digest()}),A.push({scope:this,expression:a,locals:b})},$$postDigest:function(a){B.push(a)},$apply:function(a){try{return o("$apply"),this.$eval(a)}catch(b){j(b)}finally{q();try{y.$digest()}catch(b){throw j(b),b}}},$applyAsync:function(a){function b(){c.$eval(a)}var c=this;a&&C.push(b),x()},$on:function(a,b){var c=this.$$listeners[a];c||(this.$$listeners[a]=c=[]),c.push(b);var d=this;do d.$$listenerCount[a]||(d.$$listenerCount[a]=0),d.$$listenerCount[a]++;while(d=d.$parent);var e=this;return function(){var d=c.indexOf(b);d!==-1&&(c[d]=null,t(e,1,a))}},$emit:function(a,b){var c,d,e,f=[],g=this,h=!1,i={name:a,targetScope:g,stopPropagation:function(){h=!0},preventDefault:function(){i.defaultPrevented=!0},defaultPrevented:!1},k=Q([i],arguments,1);do{for(c=g.$$listeners[a]||f,i.currentScope=g,d=0,e=c.length;d<e;d++)if(c[d])try{c[d].apply(null,k)}catch(l){j(l)}else c.splice(d,1),d--,e--;if(h)return i.currentScope=null,i;g=g.$parent}while(g);return i.currentScope=null,i},$broadcast:function(a,b){var c=this,d=c,e=c,f={name:a,targetScope:c,preventDefault:function(){f.defaultPrevented=!0},defaultPrevented:!1};if(!c.$$listenerCount[a])return f;for(var g,h,i,k=Q([f],arguments,1);d=e;){for(f.currentScope=d,g=d.$$listeners[a]||[],h=0,i=g.length;h<i;h++)if(g[h])try{g[h].apply(null,k)}catch(l){j(l)}else g.splice(h,1),h--,i--;if(!(e=d.$$listenerCount[a]&&d.$$childHead||d!==c&&d.$$nextSibling))for(;d!==c&&!(e=d.$$nextSibling);)d=d.$parent}return f.currentScope=null,f}};var y=new n,A=y.$$asyncQueue=[],B=y.$$postDigestQueue=[],C=y.$$applyAsyncQueue=[];return y}]}function pc(){var a=/^\s*(https?|ftp|mailto|tel|file):/,b=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationWhitelist=function(b){return t(b)?(a=b,this):a},this.imgSrcSanitizationWhitelist=function(a){return t(a)?(b=a,this):b},this.$get=function(){return function(c,d){var e,f=d?b:a;return e=yc(c).href,""===e||e.match(f)?c:"unsafe:"+e}}}function qc(a){if("self"===a)return a;if(w(a)){if(a.indexOf("***")>-1)throw $e("iwcard","Illegal sequence *** in string matcher.  String: {0}",a);return a=Od(a).replace("\\*\\*",".*").replace("\\*","[^:/.?&;]*"),new RegExp("^"+a+"$")}if(A(a))return new RegExp("^"+a.source+"$");throw $e("imatcher",'Matchers may only be "self", string patterns or RegExp objects')}function rc(a){var b=[];return t(a)&&f(a,function(a){b.push(qc(a))}),b}function sc(){this.SCE_CONTEXTS=_e;var a=["self"],b=[];this.resourceUrlWhitelist=function(b){return arguments.length&&(a=rc(b)),a},this.resourceUrlBlacklist=function(a){return arguments.length&&(b=rc(a)),b},this.$get=["$injector",function(d){function e(a,b){return"self"===a?zc(b):!!a.exec(b.href)}function f(c){var d,f,g=yc(c.toString()),h=!1;for(d=0,f=a.length;d<f;d++)if(e(a[d],g)){h=!0;break}if(h)for(d=0,f=b.length;d<f;d++)if(e(b[d],g)){h=!1;break}return h}function g(a){var b=function(a){this.$$unwrapTrustedValue=function(){return a}};return a&&(b.prototype=new a),b.prototype.valueOf=function(){return this.$$unwrapTrustedValue()},b.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()},b}function h(a,b){var d=m.hasOwnProperty(a)?m[a]:null;if(!d)throw $e("icontext","Attempted to trust a value in invalid context. Context: {0}; Value: {1}",a,b);if(null===b||b===c||""===b)return b;if("string"!=typeof b)throw $e("itype","Attempted to trust a non-string value in a content requiring a string: Context: {0}",a);return new d(b)}function i(a){return a instanceof l?a.$$unwrapTrustedValue():a}function j(a,b){if(null===b||b===c||""===b)return b;var d=m.hasOwnProperty(a)?m[a]:null;if(d&&b instanceof d)return b.$$unwrapTrustedValue();if(a===_e.RESOURCE_URL){if(f(b))return b;throw $e("insecurl","Blocked loading resource from url not allowed by $sceDelegate policy.  URL: {0}",b.toString())}if(a===_e.HTML)return k(b);throw $e("unsafe","Attempting to use an unsafe value in a safe context.")}var k=function(a){throw $e("unsafe","Attempting to use an unsafe value in a safe context.")};d.has("$sanitize")&&(k=d.get("$sanitize"));var l=g(),m={};return m[_e.HTML]=g(l),m[_e.CSS]=g(l),m[_e.URL]=g(l),m[_e.JS]=g(l),m[_e.RESOURCE_URL]=g(m[_e.URL]),{trustAs:h,getTrusted:j,valueOf:i}}]}function tc(){var a=!0;this.enabled=function(b){return arguments.length&&(a=!!b),a},this.$get=["$parse","$sceDelegate",function(b,c){if(a&&yd<8)throw $e("iequirks","Strict Contextual Escaping does not support Internet Explorer version < 11 in quirks mode.  You can fix this by adding the text <!doctype html> to the top of your HTML document.  See http://docs.angularjs.org/api/ng.$sce for more information.");var d=O(_e);d.isEnabled=function(){return a},d.trustAs=c.trustAs,d.getTrusted=c.getTrusted,d.valueOf=c.valueOf,a||(d.trustAs=d.getTrusted=function(a,b){return b},d.valueOf=q),d.parseAs=function(a,c){var e=b(c);return e.literal&&e.constant?e:b(c,function(b){return d.getTrusted(a,b)})};var e=d.parseAs,g=d.getTrusted,h=d.trustAs;return f(_e,function(a,b){var c=td(b);d[va("parse_as_"+c)]=function(b){return e(a,b)},d[va("get_trusted_"+c)]=function(b){return g(a,b)},d[va("trust_as_"+c)]=function(b){return h(a,b)}}),d}]}function uc(){this.$get=["$window","$document",function(a,b){var c,d,e={},f=n((/android (\d+)/.exec(td((a.navigator||{}).userAgent))||[])[1]),g=/Boxee/i.test((a.navigator||{}).userAgent),h=b[0]||{},i=/^(Moz|webkit|ms)(?=[A-Z])/,j=h.body&&h.body.style,k=!1,l=!1;if(j){for(var m in j)if(d=i.exec(m)){c=d[0],c=c.substr(0,1).toUpperCase()+c.substr(1);break}c||(c="WebkitOpacity"in j&&"webkit"),k=!!("transition"in j||c+"Transition"in j),l=!!("animation"in j||c+"Animation"in j),!f||k&&l||(k=w(j.webkitTransition),l=w(j.webkitAnimation))}return{history:!(!a.history||!a.history.pushState||f<4||g),hasEvent:function(a){if("input"===a&&yd<=11)return!1;if(s(e[a])){var b=h.createElement("div");e[a]="on"+a in b}return e[a]},csp:Pd(),vendorPrefix:c,transitions:k,animations:l,android:f}}]}function vc(){this.$get=["$templateCache","$http","$q",function(a,b,c){function d(e,f){function g(a){if(!f)throw Ce("tpload","Failed to load template: {0} (HTTP status: {1} {2})",e,a.status,a.statusText);return c.reject(a)}d.totalPendingRequests++;var h=b.defaults&&b.defaults.transformResponse;Ld(h)?h=h.filter(function(a){return a!==sb}):h===sb&&(h=null);var i={cache:a,transformResponse:h};return b.get(e,i).finally(function(){d.totalPendingRequests--}).then(function(b){return a.put(e,b.data),b.data},g)}return d.totalPendingRequests=0,d}]}function wc(){this.$get=["$rootScope","$browser","$location",function(a,b,c){var d={};return d.findBindings=function(a,b,c){var d=a.getElementsByClassName("ng-binding"),e=[];return f(d,function(a){var d=Id.element(a).data("$binding");d&&f(d,function(d){if(c){var f=new RegExp("(^|\\s)"+Od(b)+"(\\s|\\||$)");f.test(d)&&e.push(a)}else d.indexOf(b)!=-1&&e.push(a)})}),e},d.findModels=function(a,b,c){for(var d=["ng-","data-ng-","ng\\:"],e=0;e<d.length;++e){var f=c?"=":"*=",g="["+d[e]+"model"+f+'"'+b+'"]',h=a.querySelectorAll(g);if(h.length)return h}},d.getLocation=function(){return c.url()},d.setLocation=function(b){b!==c.url()&&(c.url(b),a.$digest())},d.whenStable=function(a){b.notifyWhenNoOutstandingRequests(a)},d}]}function xc(){this.$get=["$rootScope","$browser","$q","$$q","$exceptionHandler",function(a,b,c,d,e){function f(f,h,i){z(f)||(i=h,h=f,f=p);var j,k=R(arguments,3),l=t(i)&&!i,m=(l?d:c).defer(),n=m.promise;return j=b.defer(function(){try{m.resolve(f.apply(null,k))}catch(b){m.reject(b),e(b)}finally{delete g[n.$$timeoutId]}l||a.$apply()},h),n.$$timeoutId=j,g[j]=m,n}var g={};return f.cancel=function(a){return!!(a&&a.$$timeoutId in g)&&(g[a.$$timeoutId].reject("canceled"),delete g[a.$$timeoutId],b.defer.cancel(a.$$timeoutId))},f}]}function yc(a){var b=a;return yd&&(af.setAttribute("href",b),b=af.href),af.setAttribute("href",b),{href:af.href,protocol:af.protocol?af.protocol.replace(/:$/,""):"",host:af.host,search:af.search?af.search.replace(/^\?/,""):"",hash:af.hash?af.hash.replace(/^#/,""):"",hostname:af.hostname,port:af.port,pathname:"/"===af.pathname.charAt(0)?af.pathname:"/"+af.pathname}}function zc(a){var b=w(a)?yc(a):a;return b.protocol===bf.protocol&&b.host===bf.host}function Ac(){this.$get=r(a)}function Bc(a){function b(a){try{return decodeURIComponent(a)}catch(b){return a}}var d=a[0]||{},e={},f="";return function(){var a,g,h,i,j,k=d.cookie||"";if(k!==f)for(f=k,a=f.split("; "),e={},h=0;h<a.length;h++)g=a[h],i=g.indexOf("="),i>0&&(j=b(g.substring(0,i)),e[j]===c&&(e[j]=b(g.substring(i+1))));return e}}function Cc(){this.$get=Bc}function Dc(a){function b(d,e){if(u(d)){var g={};return f(d,function(a,c){g[c]=b(c,a)}),g}return a.factory(d+c,e)}var c="Filter";this.register=b,this.$get=["$injector",function(a){return function(b){return a.get(b+c)}}],b("currency",Jc),b("date",Wc),b("filter",Ec),b("json",Xc),b("limitTo",Yc),b("lowercase",gf),b("number",Kc),b("orderBy",Zc),b("uppercase",hf)}function Ec(){return function(a,b,c){if(!e(a)){if(null==a)return a;throw d("filter")("notarray","Expected array but received: {0}",a)}var f,g,h=Ic(b);switch(h){case"function":f=b;break;case"boolean":case"null":case"number":case"string":g=!0;case"object":f=Gc(b,c,g);break;default:return a}return Array.prototype.filter.call(a,f)}}function Fc(a){return z(a.toString)&&a.toString!==Object.prototype.toString}function Gc(a,b,c){var d,e=u(a)&&"$"in a;return b===!0?b=P:z(b)||(b=function(a,b){return!s(a)&&(null===a||null===b?a===b:!(u(b)||u(a)&&!Fc(a))&&(a=td(""+a),b=td(""+b),a.indexOf(b)!==-1))}),d=function(d){return e&&!u(d)?Hc(d,a.$,b,!1):Hc(d,a,b,c)}}function Hc(a,b,c,d,e){var f=Ic(a),g=Ic(b);if("string"===g&&"!"===b.charAt(0))return!Hc(a,b.substring(1),c,d);if(Ld(a))return a.some(function(a){return Hc(a,b,c,d)});switch(f){case"object":var h;if(d){for(h in a)if("$"!==h.charAt(0)&&Hc(a[h],b,c,!0))return!0;return!e&&Hc(a,b,c,!1)}if("object"===g){for(h in b){var i=b[h];if(!z(i)&&!s(i)){var j="$"===h,k=j?a:a[h];if(!Hc(k,i,c,j,j))return!1}}return!0}return c(a,b);case"function":return!1;default:return c(a,b)}}function Ic(a){return null===a?"null":typeof a}function Jc(a){var b=a.NUMBER_FORMATS;return function(a,c,d){return s(c)&&(c=b.CURRENCY_SYM),s(d)&&(d=b.PATTERNS[1].maxFrac),null==a?a:Lc(a,b.PATTERNS[1],b.GROUP_SEP,b.DECIMAL_SEP,d).replace(/\u00A4/g,c)}}function Kc(a){var b=a.NUMBER_FORMATS;return function(a,c){return null==a?a:Lc(a,b.PATTERNS[0],b.GROUP_SEP,b.DECIMAL_SEP,c)}}function Lc(a,b,c,d,e){if(u(a))return"";var f=a<0;a=Math.abs(a);var g=a===1/0;if(!g&&!isFinite(a))return"";var h=a+"",i="",j=!1,k=[];if(g&&(i="∞"),!g&&h.indexOf("e")!==-1){var l=h.match(/([\d\.]+)e(-?)(\d+)/);l&&"-"==l[2]&&l[3]>e+1?a=0:(i=h,j=!0)}if(g||j)e>0&&a<1&&(i=a.toFixed(e),a=parseFloat(i));else{var m=(h.split(cf)[1]||"").length;s(e)&&(e=Math.min(Math.max(b.minFrac,m),b.maxFrac)),a=+(Math.round(+(a.toString()+"e"+e)).toString()+"e"+-e);var n=(""+a).split(cf),o=n[0];n=n[1]||"";var p,q=0,r=b.lgSize,t=b.gSize;if(o.length>=r+t)for(q=o.length-r,p=0;p<q;p++)(q-p)%t===0&&0!==p&&(i+=c),i+=o.charAt(p);for(p=q;p<o.length;p++)(o.length-p)%r===0&&0!==p&&(i+=c),i+=o.charAt(p);for(;n.length<e;)n+="0";e&&"0"!==e&&(i+=d+n.substr(0,e))}return 0===a&&(f=!1),k.push(f?b.negPre:b.posPre,i,f?b.negSuf:b.posSuf),k.join("")}function Mc(a,b,c){var d="";for(a<0&&(d="-",a=-a),a=""+a;a.length<b;)a="0"+a;return c&&(a=a.substr(a.length-b)),d+a}function Nc(a,b,c,d){return c=c||0,function(e){var f=e["get"+a]();return(c>0||f>-c)&&(f+=c),0===f&&c==-12&&(f=12),Mc(f,b,d)}}function Oc(a,b){return function(c,d){var e=c["get"+a](),f=vd(b?"SHORT"+a:a);return d[f][e]}}function Pc(a,b,c){var d=-1*c,e=d>=0?"+":"";return e+=Mc(Math[d>0?"floor":"ceil"](d/60),2)+Mc(Math.abs(d%60),2)}function Qc(a){var b=new Date(a,0,1).getDay();return new Date(a,0,(b<=4?5:12)-b)}function Rc(a){return new Date(a.getFullYear(),a.getMonth(),a.getDate()+(4-a.getDay()))}function Sc(a){return function(b){var c=Qc(b.getFullYear()),d=Rc(b),e=+d-+c,f=1+Math.round(e/6048e5);return Mc(f,a)}}function Tc(a,b){return a.getHours()<12?b.AMPMS[0]:b.AMPMS[1]}function Uc(a,b){return a.getFullYear()<=0?b.ERAS[0]:b.ERAS[1]}function Vc(a,b){return a.getFullYear()<=0?b.ERANAMES[0]:b.ERANAMES[1]}function Wc(a){function b(a){var b;if(b=a.match(c)){var d=new Date(0),e=0,f=0,g=b[8]?d.setUTCFullYear:d.setFullYear,h=b[8]?d.setUTCHours:d.setHours;b[9]&&(e=n(b[9]+b[10]),f=n(b[9]+b[11])),g.call(d,n(b[1]),n(b[2])-1,n(b[3]));var i=n(b[4]||0)-e,j=n(b[5]||0)-f,k=n(b[6]||0),l=Math.round(1e3*parseFloat("0."+(b[7]||0)));return h.call(d,i,j,k,l),d}return a}var c=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(c,d,e){var g,h,i="",j=[];if(d=d||"mediumDate",d=a.DATETIME_FORMATS[d]||d,w(c)&&(c=ff.test(c)?n(c):b(c)),x(c)&&(c=new Date(c)),!y(c)||!isFinite(c.getTime()))return c;for(;d;)h=ef.exec(d),h?(j=Q(j,h,1),d=j.pop()):(j.push(d),d=null);var k=c.getTimezoneOffset();return e&&(k=W(e,c.getTimezoneOffset()),c=Y(c,e,!0)),f(j,function(b){g=df[b],i+=g?g(c,a.DATETIME_FORMATS,k):b.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),i}}function Xc(){return function(a,b){return s(b)&&(b=2),U(a,b)}}function Yc(){return function(a,b,c){return b=Math.abs(Number(b))===1/0?Number(b):n(b),isNaN(b)?a:(x(a)&&(a=a.toString()),Ld(a)||w(a)?(c=!c||isNaN(c)?0:n(c),c=c<0&&c>=-a.length?a.length+c:c,b>=0?a.slice(c,c+b):0===c?a.slice(b,a.length):a.slice(Math.max(0,c+b),c)):a)}}function Zc(a){return function(b,c,d){function f(a,b){for(var d=0;d<c.length;d++){var e=c[d](a,b);if(0!==e)return e}return 0}function g(a,b){return b?function(b,c){return a(c,b)}:a}function h(a){switch(typeof a){case"number":case"boolean":case"string":return!0;default:return!1}}function i(a){return null===a?"null":"function"==typeof a.valueOf&&(a=a.valueOf(),h(a))?a:"function"==typeof a.toString&&(a=a.toString(),h(a))?a:""}function j(a,b){var c=typeof a,d=typeof b;return c===d&&"object"===c&&(a=i(a),b=i(b)),c===d?("string"===c&&(a=a.toLowerCase(),b=b.toLowerCase()),a===b?0:a<b?-1:1):c<d?-1:1}return e(b)?(c=Ld(c)?c:[c],0===c.length&&(c=["+"]),c=c.map(function(b){var c=!1,d=b||q;if(w(b)){if("+"!=b.charAt(0)&&"-"!=b.charAt(0)||(c="-"==b.charAt(0),b=b.substring(1)),""===b)return g(j,c);if(d=a(b),d.constant){var e=d();return g(function(a,b){return j(a[e],b[e])},c)}}return g(function(a,b){return j(d(a),d(b))},c)}),Cd.call(b).sort(g(f,d))):b}}function $c(a){return z(a)&&(a={link:a}),a.restrict=a.restrict||"AC",r(a)}function _c(a,b){a.$name=b}function ad(a,b,d,e,g){var h=this,i=[],j=h.$$parentForm=a.parent().controller("form")||lf;h.$error={},h.$$success={},h.$pending=c,h.$name=g(b.name||b.ngForm||"")(d),h.$dirty=!1,h.$pristine=!0,h.$valid=!0,h.$invalid=!1,h.$submitted=!1,j.$addControl(h),h.$rollbackViewValue=function(){f(i,function(a){a.$rollbackViewValue()})},h.$commitViewValue=function(){f(i,function(a){a.$commitViewValue()})},h.$addControl=function(a){ma(a.$name,"input"),i.push(a),a.$name&&(h[a.$name]=a)},h.$$renameControl=function(a,b){var c=a.$name;h[c]===a&&delete h[c],h[b]=a,a.$name=b},h.$removeControl=function(a){a.$name&&h[a.$name]===a&&delete h[a.$name],f(h.$pending,function(b,c){h.$setValidity(c,null,a)}),f(h.$error,function(b,c){h.$setValidity(c,null,a)}),f(h.$$success,function(b,c){h.$setValidity(c,null,a)}),M(i,a)},pd({ctrl:this,$element:a,set:function(a,b,c){var d=a[b];if(d){var e=d.indexOf(c);e===-1&&d.push(c)}else a[b]=[c]},unset:function(a,b,c){var d=a[b];d&&(M(d,c),0===d.length&&delete a[b])},parentForm:j,$animate:e}),h.$setDirty=function(){e.removeClass(a,Vf),e.addClass(a,Wf),h.$dirty=!0,h.$pristine=!1,j.$setDirty()},h.$setPristine=function(){e.setClass(a,Vf,Wf+" "+mf),h.$dirty=!1,h.$pristine=!0,h.$submitted=!1,f(i,function(a){a.$setPristine()})},h.$setUntouched=function(){f(i,function(a){a.$setUntouched()})},h.$setSubmitted=function(){e.addClass(a,mf),h.$submitted=!0,j.$setSubmitted()}}function bd(a){a.$formatters.push(function(b){return a.$isEmpty(b)?b:b.toString()})}function cd(a,b,c,d,e,f){dd(a,b,c,d,e,f),bd(d)}function dd(a,b,c,d,e,f){var g=td(b[0].type);if(!e.android){var h=!1;b.on("compositionstart",function(a){h=!0}),b.on("compositionend",function(){h=!1,i()})}var i=function(a){if(j&&(f.defer.cancel(j),j=null),!h){var e=b.val(),i=a&&a.type;"password"===g||c.ngTrim&&"false"===c.ngTrim||(e=Nd(e)),(d.$viewValue!==e||""===e&&d.$$hasNativeValidators)&&d.$setViewValue(e,i)}};if(e.hasEvent("input"))b.on("input",i);else{var j,k=function(a,b,c){j||(j=f.defer(function(){j=null,b&&b.value===c||i(a)}))};b.on("keydown",function(a){var b=a.keyCode;91===b||15<b&&b<19||37<=b&&b<=40||k(a,this,this.value)}),e.hasEvent("paste")&&b.on("paste cut",k)}b.on("change",i),d.$render=function(){b.val(d.$isEmpty(d.$viewValue)?"":d.$viewValue)}}function ed(a,b){if(y(a))return a;if(w(a)){wf.lastIndex=0;var c=wf.exec(a);if(c){var d=+c[1],e=+c[2],f=0,g=0,h=0,i=0,j=Qc(d),k=7*(e-1);return b&&(f=b.getHours(),g=b.getMinutes(),h=b.getSeconds(),i=b.getMilliseconds()),new Date(d,0,j.getDate()+k,f,g,h,i)}}return NaN}function fd(a,b){return function(c,d){var e,g;if(y(c))return c;if(w(c)){if('"'==c.charAt(0)&&'"'==c.charAt(c.length-1)&&(c=c.substring(1,c.length-1)),qf.test(c))return new Date(c);if(a.lastIndex=0,e=a.exec(c))return e.shift(),g=d?{yyyy:d.getFullYear(),MM:d.getMonth()+1,dd:d.getDate(),HH:d.getHours(),mm:d.getMinutes(),ss:d.getSeconds(),sss:d.getMilliseconds()/1e3}:{yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0},f(e,function(a,c){c<b.length&&(g[b[c]]=+a)}),new Date(g.yyyy,g.MM-1,g.dd,g.HH,g.mm,g.ss||0,1e3*g.sss||0)}return NaN}}function gd(a,b,d,e){return function(f,g,h,i,j,k,l){function m(a){return a&&!(a.getTime&&a.getTime()!==a.getTime())}function n(a){return t(a)?y(a)?a:d(a):c}hd(f,g,h,i),dd(f,g,h,i,j,k);var o,p=i&&i.$options&&i.$options.timezone;if(i.$$parserName=a,i.$parsers.push(function(a){if(i.$isEmpty(a))return null;if(b.test(a)){var e=d(a,o);return p&&(e=Y(e,p)),e}return c}),i.$formatters.push(function(a){if(a&&!y(a))throw $f("datefmt","Expected `{0}` to be a date",a);return m(a)?(o=a,o&&p&&(o=Y(o,p,!0)),l("date")(a,e,p)):(o=null,"")}),t(h.min)||h.ngMin){var q;i.$validators.min=function(a){return!m(a)||s(q)||d(a)>=q},h.$observe("min",function(a){q=n(a),i.$validate()})}if(t(h.max)||h.ngMax){var r;i.$validators.max=function(a){return!m(a)||s(r)||d(a)<=r},h.$observe("max",function(a){r=n(a),i.$validate()})}}}function hd(a,b,d,e){var f=b[0],g=e.$$hasNativeValidators=u(f.validity);g&&e.$parsers.push(function(a){var d=b.prop(sd)||{};return d.badInput&&!d.typeMismatch?c:a})}function id(a,b,d,e,f,g){if(hd(a,b,d,e),dd(a,b,d,e,f,g),e.$$parserName="number",e.$parsers.push(function(a){return e.$isEmpty(a)?null:tf.test(a)?parseFloat(a):c}),e.$formatters.push(function(a){if(!e.$isEmpty(a)){if(!x(a))throw $f("numfmt","Expected `{0}` to be a number",a);a=a.toString()}return a}),t(d.min)||d.ngMin){var h;e.$validators.min=function(a){return e.$isEmpty(a)||s(h)||a>=h},d.$observe("min",function(a){t(a)&&!x(a)&&(a=parseFloat(a,10)),h=x(a)&&!isNaN(a)?a:c,e.$validate()})}if(t(d.max)||d.ngMax){var i;e.$validators.max=function(a){return e.$isEmpty(a)||s(i)||a<=i},d.$observe("max",function(a){t(a)&&!x(a)&&(a=parseFloat(a,10)),i=x(a)&&!isNaN(a)?a:c,e.$validate()})}}function jd(a,b,c,d,e,f){dd(a,b,c,d,e,f),bd(d),d.$$parserName="url",d.$validators.url=function(a,b){var c=a||b;return d.$isEmpty(c)||rf.test(c)}}function kd(a,b,c,d,e,f){dd(a,b,c,d,e,f),bd(d),d.$$parserName="email",d.$validators.email=function(a,b){var c=a||b;return d.$isEmpty(c)||sf.test(c)}}function ld(a,b,c,d){s(c.name)&&b.attr("name",i());var e=function(a){b[0].checked&&d.$setViewValue(c.value,a&&a.type)};b.on("click",e),d.$render=function(){var a=c.value;b[0].checked=a==d.$viewValue},c.$observe("value",d.$render)}function md(a,b,c,e,f){var g;if(t(e)){if(g=a(e),!g.constant)throw d("ngModel")("constexpr","Expected constant expression for `{0}`, but saw `{1}`.",c,e);return g(b)}return f}function nd(a,b,c,d,e,f,g,h){var i=md(h,a,"ngTrueValue",c.ngTrueValue,!0),j=md(h,a,"ngFalseValue",c.ngFalseValue,!1),k=function(a){d.$setViewValue(b[0].checked,a&&a.type)};b.on("click",k),d.$render=function(){b[0].checked=d.$viewValue},d.$isEmpty=function(a){return a===!1},d.$formatters.push(function(a){return P(a,i)}),d.$parsers.push(function(a){return a?i:j})}function od(a,b){return a="ngClass"+a,["$animate",function(c){function d(a,b){var c=[];a:for(var d=0;d<a.length;d++){for(var e=a[d],f=0;f<b.length;f++)if(e==b[f])continue a;c.push(e)}return c}function e(a){var b=[];return Ld(a)?(f(a,function(a){b=b.concat(e(a))}),b):w(a)?a.split(" "):u(a)?(f(a,function(a,c){a&&(b=b.concat(c.split(" ")))}),b):a}return{restrict:"AC",link:function(g,h,i){function j(a){var b=l(a,1);i.$addClass(b)}function k(a){var b=l(a,-1);i.$removeClass(b)}function l(a,b){var c=h.data("$classCounts")||pa(),d=[];return f(a,function(a){(b>0||c[a])&&(c[a]=(c[a]||0)+b,c[a]===+(b>0)&&d.push(a))}),h.data("$classCounts",c),d.join(" ")}function m(a,b){var e=d(b,a),f=d(a,b);e=l(e,1),f=l(f,-1),e&&e.length&&c.addClass(h,e),f&&f.length&&c.removeClass(h,f)}function n(a){if(b===!0||g.$index%2===b){var c=e(a||[]);if(o){if(!P(a,o)){var d=e(o);m(d,c)}}else j(c)}o=O(a)}var o;g.$watch(i[a],n,!0),i.$observe("class",function(b){n(g.$eval(i[a]))}),"ngClass"!==a&&g.$watch("$index",function(c,d){var f=1&c;if(f!==(1&d)){var h=e(g.$eval(i[a]));f===b?j(h):k(h)}})}}}]}function pd(a){function b(a,b,i){b===c?d("$pending",a,i):e("$pending",a,i),G(b)?b?(l(h.$error,a,i),k(h.$$success,a,i)):(k(h.$error,a,i),l(h.$$success,a,i)):(l(h.$error,a,i),l(h.$$success,a,i)),h.$pending?(f(Zf,!0),h.$valid=h.$invalid=c,g("",null)):(f(Zf,!1),h.$valid=qd(h.$error),h.$invalid=!h.$valid,g("",h.$valid));var j;j=h.$pending&&h.$pending[a]?c:!h.$error[a]&&(!!h.$$success[a]||null),g(a,j),m.$setValidity(a,j,h)}function d(a,b,c){h[a]||(h[a]={}),k(h[a],b,c)}function e(a,b,d){h[a]&&l(h[a],b,d),qd(h[a])&&(h[a]=c)}function f(a,b){b&&!j[a]?(n.addClass(i,a),j[a]=!0):!b&&j[a]&&(n.removeClass(i,a),j[a]=!1)}function g(a,b){a=a?"-"+ia(a,"-"):"",f(Tf+a,b===!0),f(Uf+a,b===!1)}var h=a.ctrl,i=a.$element,j={},k=a.set,l=a.unset,m=a.parentForm,n=a.$animate;j[Uf]=!(j[Tf]=i.hasClass(Tf)),h.$setValidity=b}function qd(a){if(a)for(var b in a)return!1;return!0}var rd=/^\/(.+)\/([a-z]*)$/,sd="validity",td=function(a){return w(a)?a.toLowerCase():a},ud=Object.prototype.hasOwnProperty,vd=function(a){return w(a)?a.toUpperCase():a},wd=function(a){return w(a)?a.replace(/[A-Z]/g,function(a){return String.fromCharCode(32|a.charCodeAt(0))}):a},xd=function(a){return w(a)?a.replace(/[a-z]/g,function(a){return String.fromCharCode(a.charCodeAt(0)&-33);
}):a};"i"!=="I".toLowerCase()&&(td=wd,vd=xd);var yd,zd,Ad,Bd,Cd=[].slice,Dd=[].splice,Ed=[].push,Fd=Object.prototype.toString,Gd=Object.getPrototypeOf,Hd=d("ng"),Id=a.angular||(a.angular={}),Jd=0;yd=b.documentMode,p.$inject=[],q.$inject=[];var Kd,Ld=Array.isArray,Md=/^\[object (Uint8(Clamped)?)|(Uint16)|(Uint32)|(Int8)|(Int16)|(Int32)|(Float(32)|(64))Array\]$/,Nd=function(a){return w(a)?a.trim():a},Od=function(a){return a.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")},Pd=function(){if(t(Pd.isActive_))return Pd.isActive_;var a=!(!b.querySelector("[ng-csp]")&&!b.querySelector("[data-ng-csp]"));if(!a)try{new Function("")}catch(c){a=!0}return Pd.isActive_=a},Qd=function(){if(t(Qd.name_))return Qd.name_;var a,c,d,e,f=Rd.length;for(c=0;c<f;++c)if(d=Rd[c],a=b.querySelector("["+d.replace(":","\\:")+"jq]")){e=a.getAttribute(d+"jq");break}return Qd.name_=e},Rd=["ng-","data-ng-","ng:","x-ng-"],Sd=/[A-Z]/g,Td=!1,Ud=1,Vd=2,Wd=3,Xd=8,Yd=9,Zd=11,$d={full:"1.4.0",major:1,minor:4,dot:0,codeName:"jaracimrman-existence"};Aa.expando="ng339";var _d=Aa.cache={},ae=1,be=function(a,b,c){a.addEventListener(b,c,!1)},ce=function(a,b,c){a.removeEventListener(b,c,!1)};Aa._data=function(a){return this.cache[a[this.expando]]||{}};var de=/([\:\-\_]+(.))/g,ee=/^moz([A-Z])/,fe={mouseleave:"mouseout",mouseenter:"mouseover"},ge=d("jqLite"),he=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,ie=/<|&#?\w+;/,je=/<([\w:]+)/,ke=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,le={option:[1,'<select multiple="multiple">',"</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};le.optgroup=le.option,le.tbody=le.tfoot=le.colgroup=le.caption=le.thead,le.th=le.td;var me=Aa.prototype={ready:function(c){function d(){e||(e=!0,c())}var e=!1;"complete"===b.readyState?setTimeout(d):(this.on("DOMContentLoaded",d),Aa(a).on("load",d))},toString:function(){var a=[];return f(this,function(b){a.push(""+b)}),"["+a.join(", ")+"]"},eq:function(a){return zd(a>=0?this[a]:this[this.length+a])},length:0,push:Ed,sort:[].sort,splice:[].splice},ne={};f("multiple,selected,checked,disabled,readOnly,required,open".split(","),function(a){ne[td(a)]=a});var oe={};f("input,select,option,textarea,button,form,details".split(","),function(a){oe[a]=!0});var pe={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern"};f({data:Ga,removeData:Ea},function(a,b){Aa[b]=a}),f({data:Ga,inheritedData:Ma,scope:function(a){return zd.data(a,"$scope")||Ma(a.parentNode||a,["$isolateScope","$scope"])},isolateScope:function(a){return zd.data(a,"$isolateScope")||zd.data(a,"$isolateScopeNoTemplate")},controller:La,injector:function(a){return Ma(a,"$injector")},removeAttr:function(a,b){a.removeAttribute(b)},hasClass:Ha,css:function(a,b,c){return b=va(b),t(c)?void(a.style[b]=c):a.style[b]},attr:function(a,b,d){var e=a.nodeType;if(e!==Wd&&e!==Vd&&e!==Xd){var f=td(b);if(ne[f]){if(!t(d))return a[b]||(a.attributes.getNamedItem(b)||p).specified?f:c;d?(a[b]=!0,a.setAttribute(b,f)):(a[b]=!1,a.removeAttribute(f))}else if(t(d))a.setAttribute(b,d);else if(a.getAttribute){var g=a.getAttribute(b,2);return null===g?c:g}}},prop:function(a,b,c){return t(c)?void(a[b]=c):a[b]},text:function(){function a(a,b){if(s(b)){var c=a.nodeType;return c===Ud||c===Wd?a.textContent:""}a.textContent=b}return a.$dv="",a}(),val:function(a,b){if(s(b)){if(a.multiple&&"select"===L(a)){var c=[];return f(a.options,function(a){a.selected&&c.push(a.value||a.text)}),0===c.length?null:c}return a.value}a.value=b},html:function(a,b){return s(b)?a.innerHTML:(Ca(a,!0),void(a.innerHTML=b))},empty:Na},function(a,b){Aa.prototype[b]=function(b,d){var e,f,g=this.length;if(a!==Na&&(2==a.length&&a!==Ha&&a!==La?b:d)===c){if(u(b)){for(e=0;e<g;e++)if(a===Ga)a(this[e],b);else for(f in b)a(this[e],f,b[f]);return this}for(var h=a.$dv,i=h===c?Math.min(g,1):g,j=0;j<i;j++){var k=a(this[j],b,d);h=h?h+k:k}return h}for(e=0;e<g;e++)a(this[e],b,d);return this}}),f({removeData:Ea,on:function a(b,c,d,e){if(t(e))throw ge("onargs","jqLite#on() does not support the `selector` or `eventData` parameters");if(xa(b)){var f=Fa(b,!0),g=f.events,h=f.handle;h||(h=f.handle=Sa(b,g));for(var i=c.indexOf(" ")>=0?c.split(" "):[c],j=i.length;j--;){c=i[j];var k=g[c];k||(g[c]=[],"mouseenter"===c||"mouseleave"===c?a(b,fe[c],function(a){var b=this,d=a.relatedTarget;d&&(d===b||b.contains(d))||h(a,c)}):"$destroy"!==c&&be(b,c,h),k=g[c]),k.push(d)}}},off:Da,one:function(a,b,c){a=zd(a),a.on(b,function d(){a.off(b,c),a.off(b,d)}),a.on(b,c)},replaceWith:function(a,b){var c,d=a.parentNode;Ca(a),f(new Aa(b),function(b){c?d.insertBefore(b,c.nextSibling):d.replaceChild(b,a),c=b})},children:function(a){var b=[];return f(a.childNodes,function(a){a.nodeType===Ud&&b.push(a)}),b},contents:function(a){return a.contentDocument||a.childNodes||[]},append:function(a,b){var c=a.nodeType;if(c===Ud||c===Zd){b=new Aa(b);for(var d=0,e=b.length;d<e;d++){var f=b[d];a.appendChild(f)}}},prepend:function(a,b){if(a.nodeType===Ud){var c=a.firstChild;f(new Aa(b),function(b){a.insertBefore(b,c)})}},wrap:function(a,b){b=zd(b).eq(0).clone()[0];var c=a.parentNode;c&&c.replaceChild(b,a),b.appendChild(a)},remove:Oa,detach:function(a){Oa(a,!0)},after:function(a,b){var c=a,d=a.parentNode;b=new Aa(b);for(var e=0,f=b.length;e<f;e++){var g=b[e];d.insertBefore(g,c.nextSibling),c=g}},addClass:Ja,removeClass:Ia,toggleClass:function(a,b,c){b&&f(b.split(" "),function(b){var d=c;s(d)&&(d=!Ha(a,b)),(d?Ja:Ia)(a,b)})},parent:function(a){var b=a.parentNode;return b&&b.nodeType!==Zd?b:null},next:function(a){return a.nextElementSibling},find:function(a,b){return a.getElementsByTagName?a.getElementsByTagName(b):[]},clone:Ba,triggerHandler:function(a,b,c){var d,e,g,h=b.type||b,i=Fa(a),j=i&&i.events,k=j&&j[h];k&&(d={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return this.defaultPrevented===!0},stopImmediatePropagation:function(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped:function(){return this.immediatePropagationStopped===!0},stopPropagation:p,type:h,target:a},b.type&&(d=l(d,b)),e=O(k),g=c?[d].concat(c):[d],f(e,function(b){d.isImmediatePropagationStopped()||b.apply(a,g)}))}},function(a,b){Aa.prototype[b]=function(b,c,d){for(var e,f=0,g=this.length;f<g;f++)s(e)?(e=a(this[f],b,c,d),t(e)&&(e=zd(e))):Ka(e,a(this[f],b,c,d));return t(e)?e:this},Aa.prototype.bind=Aa.prototype.on,Aa.prototype.unbind=Aa.prototype.off}),Va.prototype={put:function(a,b){this[Ua(a,this.nextUid)]=b},get:function(a){return this[Ua(a,this.nextUid)]},remove:function(a){var b=this[a=Ua(a,this.nextUid)];return delete this[a],b}};var qe=[function(){this.$get=[function(){return Va}]}],re=/^function\s*[^\(]*\(\s*([^\)]*)\)/m,se=/,/,te=/^\s*(_?)(\S+?)\1\s*$/,ue=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,ve=d("$injector");Ya.$$annotate=Xa;var we=d("$animate"),xe=1,ye="ng-animate",ze=function(){this.$get=["$q","$$rAF",function(a,b){function c(){}return c.all=p,c.chain=p,c.prototype={end:p,cancel:p,resume:p,pause:p,complete:p,then:function(c,d){return a(function(a){b(function(){a()})}).then(c,d)}},c}]},Ae=function(){var a=new Va,b=[];this.$get=["$$AnimateRunner","$rootScope",function(c,d){function e(c,e,g){var h=a.get(c);h||(a.put(c,h={}),b.push(c)),e&&f(e.split(" "),function(a){a&&(h[a]=!0)}),g&&f(g.split(" "),function(a){a&&(h[a]=!1)}),b.length>1||d.$$postDigest(function(){f(b,function(b){var c=a.get(b);if(c){var d=ab(b.attr("class")),e="",g="";f(c,function(a,b){var c=!!d[b];a!==c&&(a?e+=(e.length?" ":"")+b:g+=(g.length?" ":"")+b)}),f(b,function(a){e&&Ja(a,e),g&&Ia(a,g)}),a.remove(b)}}),b.length=0})}return{enabled:p,on:p,off:p,pin:p,push:function(a,b,d,f){return f&&f(),d=d||{},d.from&&a.css(d.from),d.to&&a.css(d.to),(d.addClass||d.removeClass)&&e(a,d.addClass,d.removeClass),new c}}}]},Be=["$provide",function(a){var b=this;this.$$registeredAnimations=Object.create(null),this.register=function(c,d){if(c&&"."!==c.charAt(0))throw we("notcsel","Expecting class selector starting with '.' got '{0}'.",c);var e=c+"-animation";b.$$registeredAnimations[c.substr(1)]=e,a.factory(e,d)},this.classNameFilter=function(a){if(1===arguments.length&&(this.$$classNameFilter=a instanceof RegExp?a:null,this.$$classNameFilter)){var b=new RegExp("(\\s+|\\/)"+ye+"(\\s+|\\/)");if(b.test(this.$$classNameFilter.toString()))throw we("nongcls",'$animateProvider.classNameFilter(regex) prohibits accepting a regex value which matches/contains the "{0}" CSS class.',ye)}return this.$$classNameFilter},this.$get=["$$animateQueue",function(a){function b(a,b,c){if(c){var d=_a(c);!d||d.parentNode||d.previousElementSibling||(c=null)}c?c.after(a):b.prepend(a)}return{on:a.on,off:a.off,pin:a.pin,enabled:a.enabled,cancel:function(a){a.end&&a.end()},enter:function(c,d,e,f){return d=d&&zd(d),e=e&&zd(e),d=d||e.parent(),b(c,d,e),a.push(c,"enter",bb(f))},move:function(c,d,e,f){return d=d&&zd(d),e=e&&zd(e),d=d||e.parent(),b(c,d,e),a.push(c,"move",bb(f))},leave:function(b,c){return a.push(b,"leave",bb(c),function(){b.remove()})},addClass:function(b,c,d){return d=bb(d),d.addClass=$a(d.addclass,c),a.push(b,"addClass",d)},removeClass:function(b,c,d){return d=bb(d),d.removeClass=$a(d.removeClass,c),a.push(b,"removeClass",d)},setClass:function(b,c,d,e){return e=bb(e),e.addClass=$a(e.addClass,c),e.removeClass=$a(e.removeClass,d),a.push(b,"setClass",e)},animate:function(b,c,d,e,f){return f=bb(f),f.from=f.from?l(f.from,c):c,f.to=f.to?l(f.to,d):d,e=e||"ng-inline-animate",f.tempClasses=$a(f.tempClasses,e),a.push(b,"animate",f)}}}]}],Ce=d("$compile");hb.$inject=["$provide","$$sanitizeUriProvider"];var De=/^((?:x|data)[\:\-_])/i,Ee=d("$controller"),Fe=/^(\S+)(\s+as\s+(\w+))?$/,Ge="application/json",He={"Content-Type":Ge+";charset=utf-8"},Ie=/^\[|^\{(?!\{)/,Je={"[":/]$/,"{":/}$/},Ke=/^\)\]\}',?\n/,Le=Id.$interpolateMinErr=d("$interpolate");Le.throwNoconcat=function(a){throw Le("noconcat","Error while interpolating: {0}\nStrict Contextual Escaping disallows interpolations that concatenate multiple expressions when a trusted value is required.  See http://docs.angularjs.org/api/ng.$sce",a)},Le.interr=function(a,b){return Le("interr","Can't interpolate: {0}\n{1}",a,b.toString())};var Me=/^([^\?#]*)(\?([^#]*))?(#(.*))?$/,Ne={http:80,https:443,ftp:21},Oe=d("$location"),Pe={$$html5:!1,$$replace:!1,absUrl:Qb("$$absUrl"),url:function(a){if(s(a))return this.$$url;var b=Me.exec(a);return(b[1]||""===a)&&this.path(decodeURIComponent(b[1])),(b[2]||b[1]||""===a)&&this.search(b[3]||""),this.hash(b[5]||""),this},protocol:Qb("$$protocol"),host:Qb("$$host"),port:Qb("$$port"),path:Rb("$$path",function(a){return a=null!==a?a.toString():"","/"==a.charAt(0)?a:"/"+a}),search:function(a,b){switch(arguments.length){case 0:return this.$$search;case 1:if(w(a)||x(a))a=a.toString(),this.$$search=_(a);else{if(!u(a))throw Oe("isrcharg","The first argument of the `$location#search()` call must be a string or an object.");a=N(a,{}),f(a,function(b,c){null==b&&delete a[c]}),this.$$search=a}break;default:s(b)||null===b?delete this.$$search[a]:this.$$search[a]=b}return this.$$compose(),this},hash:Rb("$$hash",function(a){return null!==a?a.toString():""}),replace:function(){return this.$$replace=!0,this}};f([Pb,Ob,Nb],function(a){a.prototype=Object.create(Pe),a.prototype.state=function(b){if(!arguments.length)return this.$$state;if(a!==Nb||!this.$$html5)throw Oe("nostate","History API state support is available only in HTML5 mode and only in browsers supporting HTML5 History API");return this.$$state=s(b)?null:b,this}});var Qe=d("$parse"),Re=Function.prototype.call,Se=Function.prototype.apply,Te=Function.prototype.bind,Ue=pa();f("+ - * / % === !== == != < > <= >= && || ! = |".split(" "),function(a){Ue[a]=!0});var Ve={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'},We=function(a){this.options=a};We.prototype={constructor:We,lex:function(a){for(this.text=a,this.index=0,this.tokens=[];this.index<this.text.length;){var b=this.text.charAt(this.index);if('"'===b||"'"===b)this.readString(b);else if(this.isNumber(b)||"."===b&&this.isNumber(this.peek()))this.readNumber();else if(this.isIdent(b))this.readIdent();else if(this.is(b,"(){}[].,;:?"))this.tokens.push({index:this.index,text:b}),this.index++;else if(this.isWhitespace(b))this.index++;else{var c=b+this.peek(),d=c+this.peek(2),e=Ue[b],f=Ue[c],g=Ue[d];if(e||f||g){var h=g?d:f?c:b;this.tokens.push({index:this.index,text:h,operator:!0}),this.index+=h.length}else this.throwError("Unexpected next character ",this.index,this.index+1)}}return this.tokens},is:function(a,b){return b.indexOf(a)!==-1},peek:function(a){var b=a||1;return this.index+b<this.text.length&&this.text.charAt(this.index+b)},isNumber:function(a){return"0"<=a&&a<="9"&&"string"==typeof a},isWhitespace:function(a){return" "===a||"\r"===a||"\t"===a||"\n"===a||"\v"===a||" "===a},isIdent:function(a){return"a"<=a&&a<="z"||"A"<=a&&a<="Z"||"_"===a||"$"===a},isExpOperator:function(a){return"-"===a||"+"===a||this.isNumber(a)},throwError:function(a,b,c){c=c||this.index;var d=t(b)?"s "+b+"-"+this.index+" ["+this.text.substring(b,c)+"]":" "+c;throw Qe("lexerr","Lexer Error: {0} at column{1} in expression [{2}].",a,d,this.text)},readNumber:function(){for(var a="",b=this.index;this.index<this.text.length;){var c=td(this.text.charAt(this.index));if("."==c||this.isNumber(c))a+=c;else{var d=this.peek();if("e"==c&&this.isExpOperator(d))a+=c;else if(this.isExpOperator(c)&&d&&this.isNumber(d)&&"e"==a.charAt(a.length-1))a+=c;else{if(!this.isExpOperator(c)||d&&this.isNumber(d)||"e"!=a.charAt(a.length-1))break;this.throwError("Invalid exponent")}}this.index++}this.tokens.push({index:b,text:a,constant:!0,value:Number(a)})},readIdent:function(){for(var a=this.index;this.index<this.text.length;){var b=this.text.charAt(this.index);if(!this.isIdent(b)&&!this.isNumber(b))break;this.index++}this.tokens.push({index:a,text:this.text.slice(a,this.index),identifier:!0})},readString:function(a){var b=this.index;this.index++;for(var c="",d=a,e=!1;this.index<this.text.length;){var f=this.text.charAt(this.index);if(d+=f,e){if("u"===f){var g=this.text.substring(this.index+1,this.index+5);g.match(/[\da-f]{4}/i)||this.throwError("Invalid unicode escape [\\u"+g+"]"),this.index+=4,c+=String.fromCharCode(parseInt(g,16))}else{var h=Ve[f];c+=h||f}e=!1}else if("\\"===f)e=!0;else{if(f===a)return this.index++,void this.tokens.push({index:b,text:d,constant:!0,value:c});c+=f}this.index++}this.throwError("Unterminated quote",b)}};var Xe=function(a,b){this.lexer=a,this.options=b};Xe.Program="Program",Xe.ExpressionStatement="ExpressionStatement",Xe.AssignmentExpression="AssignmentExpression",Xe.ConditionalExpression="ConditionalExpression",Xe.LogicalExpression="LogicalExpression",Xe.BinaryExpression="BinaryExpression",Xe.UnaryExpression="UnaryExpression",Xe.CallExpression="CallExpression",Xe.MemberExpression="MemberExpression",Xe.Identifier="Identifier",Xe.Literal="Literal",Xe.ArrayExpression="ArrayExpression",Xe.Property="Property",Xe.ObjectExpression="ObjectExpression",Xe.ThisExpression="ThisExpression",Xe.NGValueParameter="NGValueParameter",Xe.prototype={ast:function(a){this.text=a,this.tokens=this.lexer.lex(a);var b=this.program();return 0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]),b},program:function(){for(var a=[];;)if(this.tokens.length>0&&!this.peek("}",")",";","]")&&a.push(this.expressionStatement()),!this.expect(";"))return{type:Xe.Program,body:a}},expressionStatement:function(){return{type:Xe.ExpressionStatement,expression:this.filterChain()}},filterChain:function(){for(var a,b=this.expression();a=this.expect("|");)b=this.filter(b);return b},expression:function(){return this.assignment()},assignment:function(){var a=this.ternary();return this.expect("=")&&(a={type:Xe.AssignmentExpression,left:a,right:this.assignment(),operator:"="}),a},ternary:function(){var a,b,c=this.logicalOR();return this.expect("?")&&(a=this.expression(),this.consume(":"))?(b=this.expression(),{type:Xe.ConditionalExpression,test:c,alternate:a,consequent:b}):c},logicalOR:function(){for(var a=this.logicalAND();this.expect("||");)a={type:Xe.LogicalExpression,operator:"||",left:a,right:this.logicalAND()};return a},logicalAND:function(){for(var a=this.equality();this.expect("&&");)a={type:Xe.LogicalExpression,operator:"&&",left:a,right:this.equality()};return a},equality:function(){for(var a,b=this.relational();a=this.expect("==","!=","===","!==");)b={type:Xe.BinaryExpression,operator:a.text,left:b,right:this.relational()};return b},relational:function(){for(var a,b=this.additive();a=this.expect("<",">","<=",">=");)b={type:Xe.BinaryExpression,operator:a.text,left:b,right:this.additive()};return b},additive:function(){for(var a,b=this.multiplicative();a=this.expect("+","-");)b={type:Xe.BinaryExpression,operator:a.text,left:b,right:this.multiplicative()};return b},multiplicative:function(){for(var a,b=this.unary();a=this.expect("*","/","%");)b={type:Xe.BinaryExpression,operator:a.text,left:b,right:this.unary()};return b},unary:function(){var a;return(a=this.expect("+","-","!"))?{type:Xe.UnaryExpression,operator:a.text,prefix:!0,argument:this.unary()}:this.primary()},primary:function(){var a;this.expect("(")?(a=this.filterChain(),this.consume(")")):this.expect("[")?a=this.arrayDeclaration():this.expect("{")?a=this.object():this.constants.hasOwnProperty(this.peek().text)?a=N(this.constants[this.consume().text]):this.peek().identifier?a=this.identifier():this.peek().constant?a=this.constant():this.throwError("not a primary expression",this.peek());for(var b;b=this.expect("(","[",".");)"("===b.text?(a={type:Xe.CallExpression,callee:a,arguments:this.parseArguments()},this.consume(")")):"["===b.text?(a={type:Xe.MemberExpression,object:a,property:this.expression(),computed:!0},this.consume("]")):"."===b.text?a={type:Xe.MemberExpression,object:a,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return a},filter:function(a){for(var b=[a],c={type:Xe.CallExpression,callee:this.identifier(),arguments:b,filter:!0};this.expect(":");)b.push(this.expression());return c},parseArguments:function(){var a=[];if(")"!==this.peekToken().text)do a.push(this.expression());while(this.expect(","));return a},identifier:function(){var a=this.consume();return a.identifier||this.throwError("is not a valid identifier",a),{type:Xe.Identifier,name:a.text}},constant:function(){return{type:Xe.Literal,value:this.consume().value}},arrayDeclaration:function(){var a=[];if("]"!==this.peekToken().text)do{if(this.peek("]"))break;a.push(this.expression())}while(this.expect(","));return this.consume("]"),{type:Xe.ArrayExpression,elements:a}},object:function(){var a,b=[];if("}"!==this.peekToken().text)do{if(this.peek("}"))break;a={type:Xe.Property,kind:"init"},this.peek().constant?a.key=this.constant():this.peek().identifier?a.key=this.identifier():this.throwError("invalid key",this.peek()),this.consume(":"),a.value=this.expression(),b.push(a)}while(this.expect(","));return this.consume("}"),{type:Xe.ObjectExpression,properties:b}},throwError:function(a,b){throw Qe("syntax","Syntax Error: Token '{0}' {1} at column {2} of the expression [{3}] starting at [{4}].",b.text,a,b.index+1,this.text,this.text.substring(b.index))},consume:function(a){if(0===this.tokens.length)throw Qe("ueoe","Unexpected end of expression: {0}",this.text);var b=this.expect(a);return b||this.throwError("is unexpected, expecting ["+a+"]",this.peek()),b},peekToken:function(){if(0===this.tokens.length)throw Qe("ueoe","Unexpected end of expression: {0}",this.text);return this.tokens[0]},peek:function(a,b,c,d){return this.peekAhead(0,a,b,c,d)},peekAhead:function(a,b,c,d,e){if(this.tokens.length>a){var f=this.tokens[a],g=f.text;if(g===b||g===c||g===d||g===e||!b&&!c&&!d&&!e)return f}return!1},expect:function(a,b,c,d){var e=this.peek(a,b,c,d);return!!e&&(this.tokens.shift(),e)},constants:{true:{type:Xe.Literal,value:!0},false:{type:Xe.Literal,value:!1},null:{type:Xe.Literal,value:null},undefined:{type:Xe.Literal,value:c},this:{type:Xe.ThisExpression}}},ec.prototype={compile:function(a,b){var d=this,e=this.astBuilder.ast(a);this.state={nextId:0,filters:{},expensiveChecks:b,fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]},$b(e,d.$filter);var g,h="";if(this.stage="assign",g=bc(e)){this.state.computing="assign";var i=this.nextId();this.recurse(g,i),h="fn.assign="+this.generateFunction("assign","s,v,l")}var j=_b(e.body);d.stage="inputs",f(j,function(a,b){var c="fn"+b;d.state[c]={vars:[],body:[],own:{}},d.state.computing=c;var e=d.nextId();d.recurse(a,e),d.return_(e),d.state.inputs.push(c),a.watchId=b}),this.state.computing="fn",this.stage="main",this.recurse(e);var k='"'+this.USE+" "+this.STRICT+'";\n'+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+h+this.watchFns()+"return fn;",l=new Function("$filter","ensureSafeMemberName","ensureSafeObject","ensureSafeFunction","ifDefined","plus","text",k)(this.$filter,Ub,Vb,Wb,Xb,Yb,a);return this.state=this.stage=c,l.literal=cc(e),l.constant=dc(e),l},USE:"use",STRICT:"strict",watchFns:function(){var a=[],b=this.state.inputs,c=this;return f(b,function(b){a.push("var "+b+"="+c.generateFunction(b,"s"))}),b.length&&a.push("fn.inputs=["+b.join(",")+"];"),a.join("")},generateFunction:function(a,b){return"function("+b+"){"+this.varsPrefix(a)+this.body(a)+"};"},filterPrefix:function(){var a=[],b=this;return f(this.state.filters,function(c,d){a.push(c+"=$filter("+b.escape(d)+")")}),a.length?"var "+a.join(",")+";":""},varsPrefix:function(a){return this.state[a].vars.length?"var "+this.state[a].vars.join(",")+";":""},body:function(a){return this.state[a].body.join("")},recurse:function(a,b,d,e,g,h){var i,j,k,l,m=this;if(e=e||p,!h&&t(a.watchId))return b=b||this.nextId(),void this.if_("i",this.lazyAssign(b,this.computedMember("i",a.watchId)),this.lazyRecurse(a,b,d,e,g,!0));switch(a.type){case Xe.Program:f(a.body,function(b,d){m.recurse(b.expression,c,c,function(a){j=a}),d!==a.body.length-1?m.current().body.push(j,";"):m.return_(j)});break;case Xe.Literal:l=this.escape(a.value),this.assign(b,l),e(l);break;case Xe.UnaryExpression:this.recurse(a.argument,c,c,function(a){j=a}),l=a.operator+"("+this.ifDefined(j,0)+")",this.assign(b,l),e(l);break;case Xe.BinaryExpression:this.recurse(a.left,c,c,function(a){i=a}),this.recurse(a.right,c,c,function(a){j=a}),l="+"===a.operator?this.plus(i,j):"-"===a.operator?this.ifDefined(i,0)+a.operator+this.ifDefined(j,0):"("+i+")"+a.operator+"("+j+")",this.assign(b,l),e(l);break;case Xe.LogicalExpression:b=b||this.nextId(),m.recurse(a.left,b),m.if_("&&"===a.operator?b:m.not(b),m.lazyRecurse(a.right,b)),e(b);break;case Xe.ConditionalExpression:b=b||this.nextId(),m.recurse(a.test,b),m.if_(b,m.lazyRecurse(a.alternate,b),m.lazyRecurse(a.consequent,b)),e(b);break;case Xe.Identifier:b=b||this.nextId(),d&&(d.context="inputs"===m.stage?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",a.name)+"?l:s"),d.computed=!1,d.name=a.name),Ub(a.name),m.if_("inputs"===m.stage||m.not(m.getHasOwnProperty("l",a.name)),function(){m.if_("inputs"===m.stage||"s",function(){g&&1!==g&&m.if_(m.not(m.nonComputedMember("s",a.name)),m.lazyAssign(m.nonComputedMember("s",a.name),"{}")),m.assign(b,m.nonComputedMember("s",a.name))})},b&&m.lazyAssign(b,m.nonComputedMember("l",a.name))),(m.state.expensiveChecks||hc(a.name))&&m.addEnsureSafeObject(b),e(b);break;case Xe.MemberExpression:i=d&&(d.context=this.nextId())||this.nextId(),b=b||this.nextId(),m.recurse(a.object,i,c,function(){m.if_(m.notNull(i),function(){a.computed?(j=m.nextId(),m.recurse(a.property,j),m.addEnsureSafeMemberName(j),g&&1!==g&&m.if_(m.not(m.computedMember(i,j)),m.lazyAssign(m.computedMember(i,j),"{}")),l=m.ensureSafeObject(m.computedMember(i,j)),m.assign(b,l),d&&(d.computed=!0,d.name=j)):(Ub(a.property.name),g&&1!==g&&m.if_(m.not(m.nonComputedMember(i,a.property.name)),m.lazyAssign(m.nonComputedMember(i,a.property.name),"{}")),l=m.nonComputedMember(i,a.property.name),(m.state.expensiveChecks||hc(a.property.name))&&(l=m.ensureSafeObject(l)),m.assign(b,l),d&&(d.computed=!1,d.name=a.property.name)),e(b)})},!!g);break;case Xe.CallExpression:b=b||this.nextId(),a.filter?(j=m.filter(a.callee.name),k=[],f(a.arguments,function(a){var b=m.nextId();m.recurse(a,b),k.push(b)}),l=j+"("+k.join(",")+")",m.assign(b,l),e(b)):(j=m.nextId(),i={},k=[],m.recurse(a.callee,j,i,function(){m.if_(m.notNull(j),function(){m.addEnsureSafeFunction(j),f(a.arguments,function(a){m.recurse(a,m.nextId(),c,function(a){k.push(m.ensureSafeObject(a))})}),i.name?(m.state.expensiveChecks||m.addEnsureSafeObject(i.context),l=m.member(i.context,i.name,i.computed)+"("+k.join(",")+")"):l=j+"("+k.join(",")+")",l=m.ensureSafeObject(l),m.assign(b,l),e(b)})}));break;case Xe.AssignmentExpression:if(j=this.nextId(),i={},!ac(a.left))throw Qe("lval","Trying to assing a value to a non l-value");this.recurse(a.left,c,i,function(){m.if_(m.notNull(i.context),function(){m.recurse(a.right,j),m.addEnsureSafeObject(m.member(i.context,i.name,i.computed)),l=m.member(i.context,i.name,i.computed)+a.operator+j,m.assign(b,l),e(b||l)})},1);break;case Xe.ArrayExpression:k=[],f(a.elements,function(a){m.recurse(a,m.nextId(),c,function(a){k.push(a)})}),l="["+k.join(",")+"]",this.assign(b,l),e(l);break;case Xe.ObjectExpression:k=[],f(a.properties,function(a){m.recurse(a.value,m.nextId(),c,function(b){k.push(m.escape(a.key.type===Xe.Identifier?a.key.name:""+a.key.value)+":"+b)})}),l="{"+k.join(",")+"}",this.assign(b,l),e(l);break;case Xe.ThisExpression:this.assign(b,"s"),e("s");break;case Xe.NGValueParameter:this.assign(b,"v"),e("v")}},getHasOwnProperty:function(a,b){var c=a+"."+b,d=this.current().own;return d.hasOwnProperty(c)||(d[c]=this.nextId(!1,a+"&&("+this.escape(b)+" in "+a+")")),d[c]},assign:function(a,b){if(a)return this.current().body.push(a,"=",b,";"),a},filter:function(a){return this.state.filters.hasOwnProperty(a)||(this.state.filters[a]=this.nextId(!0)),this.state.filters[a]},ifDefined:function(a,b){return"ifDefined("+a+","+this.escape(b)+")"},plus:function(a,b){return"plus("+a+","+b+")"},return_:function(a){this.current().body.push("return ",a,";")},if_:function(a,b,c){if(a===!0)b();else{var d=this.current().body;d.push("if(",a,"){"),b(),d.push("}"),c&&(d.push("else{"),c(),d.push("}"))}},not:function(a){return"!("+a+")"},notNull:function(a){return a+"!=null"},nonComputedMember:function(a,b){return a+"."+b},computedMember:function(a,b){return a+"["+b+"]"},member:function(a,b,c){return c?this.computedMember(a,b):this.nonComputedMember(a,b)},addEnsureSafeObject:function(a){this.current().body.push(this.ensureSafeObject(a),";")},addEnsureSafeMemberName:function(a){this.current().body.push(this.ensureSafeMemberName(a),";")},addEnsureSafeFunction:function(a){this.current().body.push(this.ensureSafeFunction(a),";")},ensureSafeObject:function(a){return"ensureSafeObject("+a+",text)"},ensureSafeMemberName:function(a){return"ensureSafeMemberName("+a+",text)"},ensureSafeFunction:function(a){return"ensureSafeFunction("+a+",text)"},lazyRecurse:function(a,b,c,d,e,f){var g=this;return function(){g.recurse(a,b,c,d,e,f)}},lazyAssign:function(a,b){var c=this;return function(){c.assign(a,b)}},stringEscapeRegex:/[^ a-zA-Z0-9]/g,stringEscapeFn:function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)},escape:function(a){if(w(a))return"'"+a.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if(x(a))return a.toString();if(a===!0)return"true";if(a===!1)return"false";if(null===a)return"null";if("undefined"==typeof a)return"undefined";throw Qe("esc","IMPOSSIBLE")},nextId:function(a,b){var c="v"+this.state.nextId++;return a||this.current().vars.push(c+(b?"="+b:"")),c},current:function(){return this.state[this.state.computing]}},fc.prototype={compile:function(a,b){var c=this,d=this.astBuilder.ast(a);this.expression=a,this.expensiveChecks=b,$b(d,c.$filter);var e,g;(e=bc(d))&&(g=this.recurse(e));var h,i=_b(d.body);i&&(h=[],f(i,function(a,b){var d=c.recurse(a);a.input=d,h.push(d),a.watchId=b}));var j=[];f(d.body,function(a){j.push(c.recurse(a.expression))});var k=0===d.body.length?function(){}:1===d.body.length?j[0]:function(a,b){var c;return f(j,function(d){c=d(a,b)}),c};return g&&(k.assign=function(a,b,c){return g(a,c,b)}),h&&(k.inputs=h),k.literal=cc(d),k.constant=dc(d),k},recurse:function(a,b,d){var e,g,h,i=this;if(a.input)return this.inputs(a.input,a.watchId);switch(a.type){case Xe.Literal:return this.value(a.value,b);case Xe.UnaryExpression:return g=this.recurse(a.argument),this["unary"+a.operator](g,b);case Xe.BinaryExpression:return e=this.recurse(a.left),g=this.recurse(a.right),this["binary"+a.operator](e,g,b);case Xe.LogicalExpression:return e=this.recurse(a.left),g=this.recurse(a.right),this["binary"+a.operator](e,g,b);case Xe.ConditionalExpression:return this["ternary?:"](this.recurse(a.test),this.recurse(a.alternate),this.recurse(a.consequent),b);case Xe.Identifier:return Ub(a.name,i.expression),i.identifier(a.name,i.expensiveChecks||hc(a.name),b,d,i.expression);case Xe.MemberExpression:return e=this.recurse(a.object,!1,!!d),a.computed||(Ub(a.property.name,i.expression),g=a.property.name),a.computed&&(g=this.recurse(a.property)),a.computed?this.computedMember(e,g,b,d,i.expression):this.nonComputedMember(e,g,i.expensiveChecks,b,d,i.expression);case Xe.CallExpression:return h=[],f(a.arguments,function(a){h.push(i.recurse(a))}),a.filter&&(g=this.$filter(a.callee.name)),a.filter||(g=this.recurse(a.callee,!0)),a.filter?function(a,d,e,f){for(var i=[],j=0;j<h.length;++j)i.push(h[j](a,d,e,f));var k=g.apply(c,i,f);return b?{context:c,name:c,value:k}:k}:function(a,c,d,e){var f,j=g(a,c,d,e);if(null!=j.value){Vb(j.context,i.expression),Wb(j.value,i.expression);for(var k=[],l=0;l<h.length;++l)k.push(Vb(h[l](a,c,d,e),i.expression));f=Vb(j.value.apply(j.context,k),i.expression)}return b?{value:f}:f};case Xe.AssignmentExpression:return e=this.recurse(a.left,!0,1),g=this.recurse(a.right),function(a,c,d,f){var h=e(a,c,d,f),j=g(a,c,d,f);return Vb(h.value,i.expression),h.context[h.name]=j,b?{value:j}:j};case Xe.ArrayExpression:return h=[],f(a.elements,function(a){h.push(i.recurse(a))}),function(a,c,d,e){for(var f=[],g=0;g<h.length;++g)f.push(h[g](a,c,d,e));return b?{value:f}:f};case Xe.ObjectExpression:return h=[],f(a.properties,function(a){h.push({key:a.key.type===Xe.Identifier?a.key.name:""+a.key.value,value:i.recurse(a.value)})}),function(a,c,d,e){for(var f={},g=0;g<h.length;++g)f[h[g].key]=h[g].value(a,c,d,e);return b?{value:f}:f};case Xe.ThisExpression:return function(a){return b?{value:a}:a};case Xe.NGValueParameter:return function(a,c,d,e){return b?{value:d}:d}}},"unary+":function(a,b){return function(c,d,e,f){var g=a(c,d,e,f);return g=t(g)?+g:0,b?{value:g}:g}},"unary-":function(a,b){return function(c,d,e,f){var g=a(c,d,e,f);return g=t(g)?-g:0,b?{value:g}:g}},"unary!":function(a,b){return function(c,d,e,f){var g=!a(c,d,e,f);return b?{value:g}:g}},"binary+":function(a,b,c){return function(d,e,f,g){var h=a(d,e,f,g),i=b(d,e,f,g),j=Yb(h,i);return c?{value:j}:j}},"binary-":function(a,b,c){return function(d,e,f,g){var h=a(d,e,f,g),i=b(d,e,f,g),j=(t(h)?h:0)-(t(i)?i:0);return c?{value:j}:j}},"binary*":function(a,b,c){return function(d,e,f,g){var h=a(d,e,f,g)*b(d,e,f,g);return c?{value:h}:h}},"binary/":function(a,b,c){return function(d,e,f,g){var h=a(d,e,f,g)/b(d,e,f,g);return c?{value:h}:h}},"binary%":function(a,b,c){return function(d,e,f,g){var h=a(d,e,f,g)%b(d,e,f,g);return c?{value:h}:h}},"binary===":function(a,b,c){return function(d,e,f,g){var h=a(d,e,f,g)===b(d,e,f,g);return c?{value:h}:h}},"binary!==":function(a,b,c){return function(d,e,f,g){var h=a(d,e,f,g)!==b(d,e,f,g);return c?{value:h}:h}},"binary==":function(a,b,c){return function(d,e,f,g){var h=a(d,e,f,g)==b(d,e,f,g);return c?{value:h}:h}},"binary!=":function(a,b,c){return function(d,e,f,g){var h=a(d,e,f,g)!=b(d,e,f,g);return c?{value:h}:h}},"binary<":function(a,b,c){return function(d,e,f,g){
var h=a(d,e,f,g)<b(d,e,f,g);return c?{value:h}:h}},"binary>":function(a,b,c){return function(d,e,f,g){var h=a(d,e,f,g)>b(d,e,f,g);return c?{value:h}:h}},"binary<=":function(a,b,c){return function(d,e,f,g){var h=a(d,e,f,g)<=b(d,e,f,g);return c?{value:h}:h}},"binary>=":function(a,b,c){return function(d,e,f,g){var h=a(d,e,f,g)>=b(d,e,f,g);return c?{value:h}:h}},"binary&&":function(a,b,c){return function(d,e,f,g){var h=a(d,e,f,g)&&b(d,e,f,g);return c?{value:h}:h}},"binary||":function(a,b,c){return function(d,e,f,g){var h=a(d,e,f,g)||b(d,e,f,g);return c?{value:h}:h}},"ternary?:":function(a,b,c,d){return function(e,f,g,h){var i=a(e,f,g,h)?b(e,f,g,h):c(e,f,g,h);return d?{value:i}:i}},value:function(a,b){return function(){return b?{context:c,name:c,value:a}:a}},identifier:function(a,b,d,e,f){return function(g,h,i,j){var k=h&&a in h?h:g;e&&1!==e&&k&&!k[a]&&(k[a]={});var l=k?k[a]:c;return b&&Vb(l,f),d?{context:k,name:a,value:l}:l}},computedMember:function(a,b,c,d,e){return function(f,g,h,i){var j,k,l=a(f,g,h,i);return null!=l&&(j=b(f,g,h,i),Ub(j,e),d&&1!==d&&l&&!l[j]&&(l[j]={}),k=l[j],Vb(k,e)),c?{context:l,name:j,value:k}:k}},nonComputedMember:function(a,b,d,e,f,g){return function(h,i,j,k){var l=a(h,i,j,k);f&&1!==f&&l&&!l[b]&&(l[b]={});var m=null!=l?l[b]:c;return(d||hc(b))&&Vb(m,g),e?{context:l,name:b,value:m}:m}},inputs:function(a,b){return function(c,d,e,f){return f?f[b]:a(c,d,e)}}};var Ye=function(a,b,c){this.lexer=a,this.$filter=b,this.options=c,this.ast=new Xe(this.lexer),this.astCompiler=c.csp?new fc(this.ast,b):new ec(this.ast,b)};Ye.prototype={constructor:Ye,parse:function(a){return this.astCompiler.compile(a,this.options.expensiveChecks)}};var Ze=(pa(),pa(),Object.prototype.valueOf),$e=d("$sce"),_e={HTML:"html",CSS:"css",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},Ce=d("$compile"),af=b.createElement("a"),bf=yc(a.location.href);Bc.$inject=["$document"],Dc.$inject=["$provide"],Jc.$inject=["$locale"],Kc.$inject=["$locale"];var cf=".",df={yyyy:Nc("FullYear",4),yy:Nc("FullYear",2,0,!0),y:Nc("FullYear",1),MMMM:Oc("Month"),MMM:Oc("Month",!0),MM:Nc("Month",2,1),M:Nc("Month",1,1),dd:Nc("Date",2),d:Nc("Date",1),HH:Nc("Hours",2),H:Nc("Hours",1),hh:Nc("Hours",2,-12),h:Nc("Hours",1,-12),mm:Nc("Minutes",2),m:Nc("Minutes",1),ss:Nc("Seconds",2),s:Nc("Seconds",1),sss:Nc("Milliseconds",3),EEEE:Oc("Day"),EEE:Oc("Day",!0),a:Tc,Z:Pc,ww:Sc(2),w:Sc(1),G:Uc,GG:Uc,GGG:Uc,GGGG:Vc},ef=/((?:[^yMdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|d+|H+|h+|m+|s+|a|Z|G+|w+))(.*)/,ff=/^\-?\d+$/;Wc.$inject=["$locale"];var gf=r(td),hf=r(vd);Zc.$inject=["$parse"];var jf=r({restrict:"E",compile:function(a,b){if(!b.href&&!b.xlinkHref)return function(a,b){if("a"===b[0].nodeName.toLowerCase()){var c="[object SVGAnimatedString]"===Fd.call(b.prop("href"))?"xlink:href":"href";b.on("click",function(a){b.attr(c)||a.preventDefault()})}}}}),kf={};f(ne,function(a,b){function c(a,c,e){a.$watch(e[d],function(a){e.$set(b,!!a)})}if("multiple"!=a){var d=ib("ng-"+b),e=c;"checked"===a&&(e=function(a,b,e){e.ngModel!==e[d]&&c(a,b,e)}),kf[d]=function(){return{restrict:"A",priority:100,link:e}}}}),f(pe,function(a,b){kf[b]=function(){return{priority:100,link:function(a,c,d){if("ngPattern"===b&&"/"==d.ngPattern.charAt(0)){var e=d.ngPattern.match(rd);if(e)return void d.$set("ngPattern",new RegExp(e[1],e[2]))}a.$watch(d[b],function(a){d.$set(b,a)})}}}}),f(["src","srcset","href"],function(a){var b=ib("ng-"+a);kf[b]=function(){return{priority:99,link:function(c,d,e){var f=a,g=a;"href"===a&&"[object SVGAnimatedString]"===Fd.call(d.prop("href"))&&(g="xlinkHref",e.$attr[g]="xlink:href",f=null),e.$observe(b,function(b){return b?(e.$set(g,b),void(yd&&f&&d.prop(f,e[g]))):void("href"===a&&e.$set(g,null))})}}}});var lf={$addControl:p,$$renameControl:_c,$removeControl:p,$setValidity:p,$setDirty:p,$setPristine:p,$setSubmitted:p},mf="ng-submitted";ad.$inject=["$element","$attrs","$scope","$animate","$interpolate"];var nf=function(a){return["$timeout",function(b){var d={name:"form",restrict:a?"EAC":"E",controller:ad,compile:function(d,e){d.addClass(Vf).addClass(Tf);var f=e.name?"name":!(!a||!e.ngForm)&&"ngForm";return{pre:function(a,d,e,g){if(!("action"in e)){var h=function(b){a.$apply(function(){g.$commitViewValue(),g.$setSubmitted()}),b.preventDefault()};be(d[0],"submit",h),d.on("$destroy",function(){b(function(){ce(d[0],"submit",h)},0,!1)})}var i=g.$$parentForm;f&&(gc(a,g.$name,g,g.$name),e.$observe(f,function(b){g.$name!==b&&(gc(a,g.$name,c,g.$name),i.$$renameControl(g,b),gc(a,g.$name,g,g.$name))})),d.on("$destroy",function(){i.$removeControl(g),f&&gc(a,e[f],c,g.$name),l(g,lf)})}}}};return d}]},of=nf(),pf=nf(!0),qf=/\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z)/,rf=/^(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?$/,sf=/^[a-z0-9!#$%&'*+\/=?^_`{|}~.-]+@[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$/i,tf=/^\s*(\-|\+)?(\d+|(\d*(\.\d*)))\s*$/,uf=/^(\d{4})-(\d{2})-(\d{2})$/,vf=/^(\d{4})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,wf=/^(\d{4})-W(\d\d)$/,xf=/^(\d{4})-(\d\d)$/,yf=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,zf={text:cd,date:gd("date",uf,fd(uf,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":gd("datetimelocal",vf,fd(vf,["yyyy","MM","dd","HH","mm","ss","sss"]),"yyyy-MM-ddTHH:mm:ss.sss"),time:gd("time",yf,fd(yf,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:gd("week",wf,ed,"yyyy-Www"),month:gd("month",xf,fd(xf,["yyyy","MM"]),"yyyy-MM"),number:id,url:jd,email:kd,radio:ld,checkbox:nd,hidden:p,button:p,submit:p,reset:p,file:p},Af=["$browser","$sniffer","$filter","$parse",function(a,b,c,d){return{restrict:"E",require:["?ngModel"],link:{pre:function(e,f,g,h){h[0]&&(zf[td(g.type)]||zf.text)(e,f,g,h[0],b,a,c,d)}}}}],Bf=/^(true|false|\d+)$/,Cf=function(){return{restrict:"A",priority:100,compile:function(a,b){return Bf.test(b.ngValue)?function(a,b,c){c.$set("value",a.$eval(c.ngValue))}:function(a,b,c){a.$watch(c.ngValue,function(a){c.$set("value",a)})}}}},Df=["$compile",function(a){return{restrict:"AC",compile:function(b){return a.$$addBindingClass(b),function(b,d,e){a.$$addBindingInfo(d,e.ngBind),d=d[0],b.$watch(e.ngBind,function(a){d.textContent=a===c?"":a})}}}}],Ef=["$interpolate","$compile",function(a,b){return{compile:function(d){return b.$$addBindingClass(d),function(d,e,f){var g=a(e.attr(f.$attr.ngBindTemplate));b.$$addBindingInfo(e,g.expressions),e=e[0],f.$observe("ngBindTemplate",function(a){e.textContent=a===c?"":a})}}}}],Ff=["$sce","$parse","$compile",function(a,b,c){return{restrict:"A",compile:function(d,e){var f=b(e.ngBindHtml),g=b(e.ngBindHtml,function(a){return(a||"").toString()});return c.$$addBindingClass(d),function(b,d,e){c.$$addBindingInfo(d,e.ngBindHtml),b.$watch(g,function(){d.html(a.getTrustedHtml(f(b))||"")})}}}}],Gf=r({restrict:"A",require:"ngModel",link:function(a,b,c,d){d.$viewChangeListeners.push(function(){a.$eval(c.ngChange)})}}),Hf=od("",!0),If=od("Odd",0),Jf=od("Even",1),Kf=$c({compile:function(a,b){b.$set("ngCloak",c),a.removeClass("ng-cloak")}}),Lf=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],Mf={},Nf={blur:!0,focus:!0};f("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),function(a){var b=ib("ng-"+a);Mf[b]=["$parse","$rootScope",function(c,d){return{restrict:"A",compile:function(e,f){var g=c(f[b],null,!0);return function(b,c){c.on(a,function(c){var e=function(){g(b,{$event:c})};Nf[a]&&d.$$phase?b.$evalAsync(e):b.$apply(e)})}}}}]});var Of=["$animate",function(a){return{multiElement:!0,transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(c,d,e,f,g){var h,i,j;c.$watch(e.ngIf,function(c){c?i||g(function(c,f){i=f,c[c.length++]=b.createComment(" end ngIf: "+e.ngIf+" "),h={clone:c},a.enter(c,d.parent(),d)}):(j&&(j.remove(),j=null),i&&(i.$destroy(),i=null),h&&(j=oa(h.clone),a.leave(j).then(function(){j=null}),h=null))})}}}],Pf=["$templateRequest","$anchorScroll","$animate","$sce",function(a,b,c,d){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:Id.noop,compile:function(e,f){var g=f.ngInclude||f.src,h=f.onload||"",i=f.autoscroll;return function(e,f,j,k,l){var m,n,o,p=0,q=function(){n&&(n.remove(),n=null),m&&(m.$destroy(),m=null),o&&(c.leave(o).then(function(){n=null}),n=o,o=null)};e.$watch(d.parseAsResourceUrl(g),function(d){var g=function(){!t(i)||i&&!e.$eval(i)||b()},j=++p;d?(a(d,!0).then(function(a){if(j===p){var b=e.$new();k.template=a;var i=l(b,function(a){q(),c.enter(a,null,f).then(g)});m=b,o=i,m.$emit("$includeContentLoaded",d),e.$eval(h)}},function(){j===p&&(q(),e.$emit("$includeContentError",d))}),e.$emit("$includeContentRequested",d)):(q(),k.template=null)})}}}}],Qf=["$compile",function(a){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(c,d,e,f){return/SVG/.test(d[0].toString())?(d.empty(),void a(ya(f.template,b).childNodes)(c,function(a){d.append(a)},{futureParentElement:d})):(d.html(f.template),void a(d.contents())(c))}}}],Rf=$c({priority:450,compile:function(){return{pre:function(a,b,c){a.$eval(c.ngInit)}}}}),Sf=function(){return{restrict:"A",priority:100,require:"ngModel",link:function(a,b,d,e){var g=b.attr(d.$attr.ngList)||", ",h="false"!==d.ngTrim,i=h?Nd(g):g,j=function(a){if(!s(a)){var b=[];return a&&f(a.split(i),function(a){a&&b.push(h?Nd(a):a)}),b}};e.$parsers.push(j),e.$formatters.push(function(a){return Ld(a)?a.join(g):c}),e.$isEmpty=function(a){return!a||!a.length}}}},Tf="ng-valid",Uf="ng-invalid",Vf="ng-pristine",Wf="ng-dirty",Xf="ng-untouched",Yf="ng-touched",Zf="ng-pending",$f=new d("ngModel"),_f=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$rootScope","$q","$interpolate",function(a,b,d,e,g,h,i,j,k,l){this.$viewValue=Number.NaN,this.$modelValue=Number.NaN,this.$$rawModelValue=c,this.$validators={},this.$asyncValidators={},this.$parsers=[],this.$formatters=[],this.$viewChangeListeners=[],this.$untouched=!0,this.$touched=!1,this.$pristine=!0,this.$dirty=!1,this.$valid=!0,this.$invalid=!1,this.$error={},this.$$success={},this.$pending=c,this.$name=l(d.name||"",!1)(a);var m,n=g(d.ngModel),o=n.assign,q=n,r=o,u=null,v=this;this.$$setOptions=function(a){if(v.$options=a,a&&a.getterSetter){var b=g(d.ngModel+"()"),c=g(d.ngModel+"($$$p)");q=function(a){var c=n(a);return z(c)&&(c=b(a)),c},r=function(a,b){z(n(a))?c(a,{$$$p:v.$modelValue}):o(a,v.$modelValue)}}else if(!n.assign)throw $f("nonassign","Expression '{0}' is non-assignable. Element: {1}",d.ngModel,Z(e))},this.$render=p,this.$isEmpty=function(a){return s(a)||""===a||null===a||a!==a};var w=e.inheritedData("$formController")||lf,y=0;pd({ctrl:this,$element:e,set:function(a,b){a[b]=!0},unset:function(a,b){delete a[b]},parentForm:w,$animate:h}),this.$setPristine=function(){v.$dirty=!1,v.$pristine=!0,h.removeClass(e,Wf),h.addClass(e,Vf)},this.$setDirty=function(){v.$dirty=!0,v.$pristine=!1,h.removeClass(e,Vf),h.addClass(e,Wf),w.$setDirty()},this.$setUntouched=function(){v.$touched=!1,v.$untouched=!0,h.setClass(e,Xf,Yf)},this.$setTouched=function(){v.$touched=!0,v.$untouched=!1,h.setClass(e,Yf,Xf)},this.$rollbackViewValue=function(){i.cancel(u),v.$viewValue=v.$$lastCommittedViewValue,v.$render()},this.$validate=function(){if(!x(v.$modelValue)||!isNaN(v.$modelValue)){var a=v.$$lastCommittedViewValue,b=v.$$rawModelValue,d=v.$valid,e=v.$modelValue,f=v.$options&&v.$options.allowInvalid;v.$$runValidators(b,a,function(a){f||d===a||(v.$modelValue=a?b:c,v.$modelValue!==e&&v.$$writeModelToScope())})}},this.$$runValidators=function(a,b,d){function e(){var a=v.$$parserName||"parse";return m!==c?(m||(f(v.$validators,function(a,b){i(b,null)}),f(v.$asyncValidators,function(a,b){i(b,null)})),i(a,m),m):(i(a,null),!0)}function g(){var c=!0;return f(v.$validators,function(d,e){var f=d(a,b);c=c&&f,i(e,f)}),!!c||(f(v.$asyncValidators,function(a,b){i(b,null)}),!1)}function h(){var d=[],e=!0;f(v.$asyncValidators,function(f,g){var h=f(a,b);if(!H(h))throw $f("$asyncValidators","Expected asynchronous validator to return a promise but got '{0}' instead.",h);i(g,c),d.push(h.then(function(){i(g,!0)},function(a){e=!1,i(g,!1)}))}),d.length?k.all(d).then(function(){j(e)},p):j(!0)}function i(a,b){l===y&&v.$setValidity(a,b)}function j(a){l===y&&d(a)}y++;var l=y;return e()&&g()?void h():void j(!1)},this.$commitViewValue=function(){var a=v.$viewValue;i.cancel(u),(v.$$lastCommittedViewValue!==a||""===a&&v.$$hasNativeValidators)&&(v.$$lastCommittedViewValue=a,v.$pristine&&this.$setDirty(),this.$$parseAndValidate())},this.$$parseAndValidate=function(){function b(){v.$modelValue!==g&&v.$$writeModelToScope()}var d=v.$$lastCommittedViewValue,e=d;if(m=!s(e)||c)for(var f=0;f<v.$parsers.length;f++)if(e=v.$parsers[f](e),s(e)){m=!1;break}x(v.$modelValue)&&isNaN(v.$modelValue)&&(v.$modelValue=q(a));var g=v.$modelValue,h=v.$options&&v.$options.allowInvalid;v.$$rawModelValue=e,h&&(v.$modelValue=e,b()),v.$$runValidators(e,v.$$lastCommittedViewValue,function(a){h||(v.$modelValue=a?e:c,b())})},this.$$writeModelToScope=function(){r(a,v.$modelValue),f(v.$viewChangeListeners,function(a){try{a()}catch(c){b(c)}})},this.$setViewValue=function(a,b){v.$viewValue=a,v.$options&&!v.$options.updateOnDefault||v.$$debounceViewValueCommit(b)},this.$$debounceViewValueCommit=function(b){var c,d=0,e=v.$options;e&&t(e.debounce)&&(c=e.debounce,x(c)?d=c:x(c[b])?d=c[b]:x(c.default)&&(d=c.default)),i.cancel(u),d?u=i(function(){v.$commitViewValue()},d):j.$$phase?v.$commitViewValue():a.$apply(function(){v.$commitViewValue()})},a.$watch(function(){var b=q(a);if(b!==v.$modelValue&&(v.$modelValue===v.$modelValue||b===b)){v.$modelValue=v.$$rawModelValue=b,m=c;for(var d=v.$formatters,e=d.length,f=b;e--;)f=d[e](f);v.$viewValue!==f&&(v.$viewValue=v.$$lastCommittedViewValue=f,v.$render(),v.$$runValidators(b,f,p))}return b})}],ag=["$rootScope",function(a){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:_f,priority:1,compile:function(b){return b.addClass(Vf).addClass(Xf).addClass(Tf),{pre:function(a,b,c,d){var e=d[0],f=d[1]||lf;e.$$setOptions(d[2]&&d[2].$options),f.$addControl(e),c.$observe("name",function(a){e.$name!==a&&f.$$renameControl(e,a)}),a.$on("$destroy",function(){f.$removeControl(e)})},post:function(b,c,d,e){var f=e[0];f.$options&&f.$options.updateOn&&c.on(f.$options.updateOn,function(a){f.$$debounceViewValueCommit(a&&a.type)}),c.on("blur",function(c){f.$touched||(a.$$phase?b.$evalAsync(f.$setTouched):b.$apply(f.$setTouched))})}}}}}],bg=/(\s+|^)default(\s+|$)/,cg=function(){return{restrict:"A",controller:["$scope","$attrs",function(a,b){var d=this;this.$options=N(a.$eval(b.ngModelOptions)),this.$options.updateOn!==c?(this.$options.updateOnDefault=!1,this.$options.updateOn=Nd(this.$options.updateOn.replace(bg,function(){return d.$options.updateOnDefault=!0," "}))):this.$options.updateOnDefault=!0}]}},dg=$c({terminal:!0,priority:1e3}),eg=d("ngOptions"),fg=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\s+([\s\S]+?))?(?:\s+disable\s+when\s+([\s\S]+?))?\s+for\s+(?:([\$\w][\$\w]*)|(?:\(\s*([\$\w][\$\w]*)\s*,\s*([\$\w][\$\w]*)\s*\)))\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?$/,gg=["$compile","$parse",function(a,c){function d(a,b,d){function f(a,b,c,d,e){this.selectValue=a,this.viewValue=b,this.label=c,this.group=d,this.disabled=e}var g=a.match(fg);if(!g)throw eg("iexp","Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}",a,Z(b));var h=g[5]||g[7],i=g[6],j=/ as /.test(g[0])&&g[1],k=g[9],l=c(g[2]?g[1]:h),m=j&&c(j),n=m||l,o=k&&c(k),p=k?function(a,b){return o(d,b)}:function(a){return Ua(a)},q=function(a,b){return p(a,w(a,b))},r=c(g[2]||g[1]),s=c(g[3]||""),t=c(g[4]||""),u=c(g[8]),v={},w=i?function(a,b){return v[i]=b,v[h]=a,v}:function(a){return v[h]=a,v};return{trackBy:k,getTrackByValue:q,getWatchables:c(u,function(a){var b=[];return a=a||[],Object.keys(a).forEach(function(c){var e=w(a[c],c),f=p(a[c],e);if(b.push(f),g[2]||g[1]){var h=r(d,e);b.push(h)}if(g[4]){var i=t(d,e);b.push(i)}}),b}),getOptions:function(){var a,b=[],c={},g=u(d)||[];if(!i&&e(g))a=g;else{a=[];for(var h in g)g.hasOwnProperty(h)&&"$"!==h.charAt(0)&&a.push(h)}for(var j=a.length,l=0;l<j;l++){var m=g===a?l:a[l],o=g[m],v=w(o,m),x=n(d,v),y=p(x,v),z=r(d,v),A=s(d,v),B=t(d,v),C=new f(y,x,z,A,B);b.push(C),c[y]=C}return{items:b,selectValueMap:c,getOptionFromViewValue:function(a){return c[q(a)]},getViewValueFromOption:function(a){return k?Id.copy(a.viewValue):a.viewValue}}}}}var g=b.createElement("option"),h=b.createElement("optgroup");return{restrict:"A",terminal:!0,require:["select","?ngModel"],link:function(b,c,e,i){function j(a,b){a.element=b,b.disabled=a.disabled,a.value!==b.value&&(b.value=a.selectValue),a.label!==b.label&&(b.label=a.label,b.textContent=a.label)}function k(a,b,c,d){var e;return b&&td(b.nodeName)===c?e=b:(e=d.cloneNode(!1),b?a.insertBefore(e,b):a.appendChild(e)),e}function l(a){for(var b;a;)b=a.nextSibling,Oa(a),a=b}function m(a){var b=p&&p[0],c=w&&w[0];if(b||c)for(;a&&(a===b||a===c);)a=a.nextSibling;return a}function n(){var a=x&&q.readValue();x=y.getOptions();var b={},d=c[0].firstChild;if(v&&c.prepend(p),d=m(d),x.items.forEach(function(a){var e,f,i;a.group?(e=b[a.group],e||(f=k(c[0],d,"optgroup",h),d=f.nextSibling,f.label=a.group,e=b[a.group]={groupElement:f,currentOptionElement:f.firstChild}),i=k(e.groupElement,e.currentOptionElement,"option",g),j(a,i),e.currentOptionElement=i.nextSibling):(i=k(c[0],d,"option",g),j(a,i),d=i.nextSibling)}),Object.keys(b).forEach(function(a){l(b[a].currentOptionElement)}),l(d),o.$render(),!o.$isEmpty(a)){var e=q.readValue();(y.trackBy&&!P(a,e)||a!==e)&&(o.$setViewValue(e),o.$render())}}var o=i[1];if(o){for(var p,q=i[0],r=e.multiple,s=0,t=c.children(),u=t.length;s<u;s++)if(""===t[s].value){p=t.eq(s);break}var v=!!p,w=zd(g.cloneNode(!1));w.val("?");var x,y=d(e.ngOptions,c,b),z=function(){v||c.prepend(p),c.val(""),p.prop("selected",!0),p.attr("selected",!0)},A=function(){v||p.remove()},B=function(){c.prepend(w),c.val("?"),w.prop("selected",!0),w.attr("selected",!0)},C=function(){w.remove()};r?(o.$isEmpty=function(a){return!a||0===a.length},q.writeValue=function(a){x.items.forEach(function(a){a.element.selected=!1}),a&&a.forEach(function(a){var b=x.getOptionFromViewValue(a);b&&!b.disabled&&(b.element.selected=!0)})},q.readValue=function(){var a=c.val()||[],b=[];return f(a,function(a){var c=x.selectValueMap[a];c.disabled||b.push(x.getViewValueFromOption(c))}),b},y.trackBy&&b.$watchCollection(function(){if(Ld(o.$viewValue))return o.$viewValue.map(function(a){return y.getTrackByValue(a)})},function(){o.$render()})):(q.writeValue=function(a){var b=x.getOptionFromViewValue(a);b&&!b.disabled?c[0].value!==b.selectValue&&(C(),A(),c[0].value=b.selectValue,b.element.selected=!0,b.element.setAttribute("selected","selected")):null===a||v?(C(),z()):(A(),B())},q.readValue=function(){var a=x.selectValueMap[c.val()];return a&&!a.disabled?(A(),C(),x.getViewValueFromOption(a)):null},y.trackBy&&b.$watch(function(){return y.getTrackByValue(o.$viewValue)},function(){o.$render()})),v?(p.remove(),a(p)(b),p.removeClass("ng-scope")):p=zd(g.cloneNode(!1)),n(),b.$watchCollection(y.getWatchables,n)}}}}],hg=["$locale","$interpolate","$log",function(a,b,c){var d=/{}/g,e=/^when(Minus)?(.+)$/;return{link:function(g,h,i){function j(a){h.text(a||"")}var k,l=i.count,m=i.$attr.when&&h.attr(i.$attr.when),n=i.offset||0,o=g.$eval(m)||{},q={},r=b.startSymbol(),t=b.endSymbol(),u=r+l+"-"+n+t,v=Id.noop;f(i,function(a,b){var c=e.exec(b);if(c){var d=(c[1]?"-":"")+td(c[2]);o[d]=h.attr(i.$attr[b])}}),f(o,function(a,c){q[c]=b(a.replace(d,u))}),g.$watch(l,function(b){var d=parseFloat(b),e=isNaN(d);if(e||d in o||(d=a.pluralCat(d-n)),d!==k&&!(e&&x(k)&&isNaN(k))){v();var f=q[d];s(f)?(null!=b&&c.debug("ngPluralize: no rule defined for '"+d+"' in "+m),v=p,j()):v=g.$watch(f,j),k=d}})}}}],ig=["$parse","$animate",function(a,g){var h="$$NG_REMOVED",i=d("ngRepeat"),j=function(a,b,c,d,e,f,g){a[c]=d,e&&(a[e]=f),a.$index=b,a.$first=0===b,a.$last=b===g-1,a.$middle=!(a.$first||a.$last),a.$odd=!(a.$even=0===(1&b))},k=function(a){return a.clone[0]},l=function(a){return a.clone[a.clone.length-1]};return{restrict:"A",multiElement:!0,transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,compile:function(d,m){var n=m.ngRepeat,o=b.createComment(" end ngRepeat: "+n+" "),p=n.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!p)throw i("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",n);var q=p[1],r=p[2],s=p[3],t=p[4];if(p=q.match(/^(?:(\s*[\$\w]+)|\(\s*([\$\w]+)\s*,\s*([\$\w]+)\s*\))$/),!p)throw i("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",q);var u=p[3]||p[1],v=p[2];if(s&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(s)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(s)))throw i("badident","alias '{0}' is invalid --- must be a valid JS identifier which is not a reserved name.",s);var w,x,y,z,A={$id:Ua};return t?w=a(t):(y=function(a,b){return Ua(b)},z=function(a){return a}),function(a,b,d,m,p){w&&(x=function(b,c,d){return v&&(A[v]=b),A[u]=c,A.$index=d,w(a,A)});var q=pa();a.$watchCollection(r,function(d){var m,r,t,w,A,B,C,D,E,F,G,H,I=b[0],J=pa();if(s&&(a[s]=d),e(d))E=d,D=x||y;else{D=x||z,E=[];for(var K in d)d.hasOwnProperty(K)&&"$"!==K.charAt(0)&&E.push(K)}for(w=E.length,G=new Array(w),m=0;m<w;m++)if(A=d===E?m:E[m],B=d[A],C=D(A,B,m),q[C])F=q[C],delete q[C],J[C]=F,G[m]=F;else{if(J[C])throw f(G,function(a){a&&a.scope&&(q[a.id]=a)}),i("dupes","Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: {0}, Duplicate key: {1}, Duplicate value: {2}",n,C,B);G[m]={id:C,scope:c,clone:c},J[C]=!0}for(var L in q){if(F=q[L],H=oa(F.clone),g.leave(H),H[0].parentNode)for(m=0,r=H.length;m<r;m++)H[m][h]=!0;F.scope.$destroy()}for(m=0;m<w;m++)if(A=d===E?m:E[m],B=d[A],F=G[m],F.scope){t=I;do t=t.nextSibling;while(t&&t[h]);k(F)!=t&&g.move(oa(F.clone),null,zd(I)),I=l(F),j(F.scope,m,u,B,v,A,w)}else p(function(a,b){F.scope=b;var c=o.cloneNode(!1);a[a.length++]=c,g.enter(a,null,zd(I)),I=c,F.clone=a,J[F.id]=F,j(F.scope,m,u,B,v,A,w)});q=J})}}}}],jg="ng-hide",kg="ng-hide-animate",lg=["$animate",function(a){return{restrict:"A",multiElement:!0,link:function(b,c,d){b.$watch(d.ngShow,function(b){a[b?"removeClass":"addClass"](c,jg,{tempClasses:kg})})}}}],mg=["$animate",function(a){return{restrict:"A",multiElement:!0,link:function(b,c,d){b.$watch(d.ngHide,function(b){a[b?"addClass":"removeClass"](c,jg,{tempClasses:kg})})}}}],ng=$c(function(a,b,c){a.$watch(c.ngStyle,function(a,c){c&&a!==c&&f(c,function(a,c){b.css(c,"")}),a&&b.css(a)},!0)}),og=["$animate",function(a){return{require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(c,d,e,g){var h=e.ngSwitch||e.on,i=[],j=[],k=[],l=[],m=function(a,b){return function(){a.splice(b,1)}};c.$watch(h,function(c){var d,e;for(d=0,e=k.length;d<e;++d)a.cancel(k[d]);for(k.length=0,d=0,e=l.length;d<e;++d){var h=oa(j[d].clone);l[d].$destroy();var n=k[d]=a.leave(h);n.then(m(k,d))}j.length=0,l.length=0,(i=g.cases["!"+c]||g.cases["?"])&&f(i,function(c){c.transclude(function(d,e){l.push(e);var f=c.element;d[d.length++]=b.createComment(" end ngSwitchWhen: ");var g={clone:d};j.push(g),a.enter(d,f.parent(),f)})})})}}}],pg=$c({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(a,b,c,d,e){d.cases["!"+c.ngSwitchWhen]=d.cases["!"+c.ngSwitchWhen]||[],d.cases["!"+c.ngSwitchWhen].push({transclude:e,element:b})}}),qg=$c({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(a,b,c,d,e){d.cases["?"]=d.cases["?"]||[],d.cases["?"].push({transclude:e,element:b})}}),rg=$c({restrict:"EAC",link:function(a,b,c,e,f){if(!f)throw d("ngTransclude")("orphan","Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found. Element: {0}",Z(b));f(function(a){b.empty(),b.append(a)})}}),sg=["$templateCache",function(a){return{restrict:"E",terminal:!0,compile:function(b,c){if("text/ng-template"==c.type){var d=c.id,e=b[0].text;a.put(d,e)}}}}],tg={$setViewValue:p,$render:p},ug=["$element","$scope","$attrs",function(a,d,e){var f=this,g=new Va;f.ngModelCtrl=tg,f.unknownOption=zd(b.createElement("option")),f.renderUnknownOption=function(b){var c="? "+Ua(b)+" ?";f.unknownOption.val(c),a.prepend(f.unknownOption),a.val(c)},d.$on("$destroy",function(){f.renderUnknownOption=p}),f.removeUnknownOption=function(){f.unknownOption.parent()&&f.unknownOption.remove()},f.readValue=function(){return f.removeUnknownOption(),a.val()},f.writeValue=function(b){f.hasOption(b)?(f.removeUnknownOption(),a.val(b),""===b&&f.emptyOption.prop("selected",!0)):null==b&&f.emptyOption?(f.removeUnknownOption(),a.val("")):f.renderUnknownOption(b)},f.addOption=function(a,b){ma(a,'"option value"'),""===a&&(f.emptyOption=b);var c=g.get(a)||0;g.put(a,c+1)},f.removeOption=function(a){var b=g.get(a);b&&(1===b?(g.remove(a),""===a&&(f.emptyOption=c)):g.put(a,b-1))},f.hasOption=function(a){return!!g.get(a)}}],vg=function(){return{restrict:"E",require:["select","?ngModel"],controller:ug,link:function(a,b,c,d){var e=d[1];if(e){var g=d[0];if(g.ngModelCtrl=e,e.$render=function(){g.writeValue(e.$viewValue)},b.on("change",function(){a.$apply(function(){e.$setViewValue(g.readValue())})}),c.multiple){g.readValue=function(){var a=[];return f(b.find("option"),function(b){b.selected&&a.push(b.value)}),a},g.writeValue=function(a){var c=new Va(a);f(b.find("option"),function(a){a.selected=t(c.get(a.value))})};var h,i=NaN;a.$watch(function(){i!==e.$viewValue||P(h,e.$viewValue)||(h=O(e.$viewValue),e.$render()),i=e.$viewValue}),e.$isEmpty=function(a){return!a||0===a.length}}}}}},wg=["$interpolate",function(a){function b(a){a[0].hasAttribute("selected")&&(a[0].selected=!0)}return{restrict:"E",priority:100,compile:function(c,d){if(s(d.value)){var e=a(c.text(),!0);e||d.$set("value",c.text())}return function(a,c,d){var f="$selectController",g=c.parent(),h=g.data(f)||g.parent().data(f);h&&h.ngModelCtrl&&(e?a.$watch(e,function(a,e){d.$set("value",a),e!==a&&h.removeOption(e),h.addOption(a,c),h.ngModelCtrl.$render(),b(c)}):(h.addOption(d.value,c),h.ngModelCtrl.$render(),b(c)),c.on("$destroy",function(){h.removeOption(d.value),h.ngModelCtrl.$render()}))}}}}],xg=r({restrict:"E",terminal:!1}),yg=function(){return{restrict:"A",require:"?ngModel",link:function(a,b,c,d){d&&(c.required=!0,d.$validators.required=function(a,b){return!c.required||!d.$isEmpty(b)},c.$observe("required",function(){d.$validate()}))}}},zg=function(){return{restrict:"A",require:"?ngModel",link:function(a,b,e,f){if(f){var g,h=e.ngPattern||e.pattern;e.$observe("pattern",function(a){if(w(a)&&a.length>0&&(a=new RegExp("^"+a+"$")),a&&!a.test)throw d("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",h,a,Z(b));g=a||c,f.$validate()}),f.$validators.pattern=function(a){return f.$isEmpty(a)||s(g)||g.test(a)}}}}},Ag=function(){return{restrict:"A",require:"?ngModel",link:function(a,b,c,d){if(d){var e=-1;c.$observe("maxlength",function(a){var b=n(a);e=isNaN(b)?-1:b,d.$validate()}),d.$validators.maxlength=function(a,b){return e<0||d.$isEmpty(b)||b.length<=e}}}}},Bg=function(){return{restrict:"A",require:"?ngModel",link:function(a,b,c,d){if(d){var e=0;c.$observe("minlength",function(a){e=n(a)||0,d.$validate()}),d.$validators.minlength=function(a,b){return d.$isEmpty(b)||b.length>=e}}}}};return a.angular.bootstrap?void console.log("WARNING: Tried to load angular more than once."):(ja(),ta(Id),void zd(b).ready(function(){ea(b,fa)}))}(window,document),!window.angular.$$csp()&&window.angular.element(document).find("head").prepend('<style type="text/css">@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide:not(.ng-hide-animate){display:none !important;}ng\\:form{display:block;}.ng-animate-shim{visibility:hidden;}.ng-anchor{position:absolute;}</style>'),function(a,b,c){"use strict";function d(a){return D(a)?a:Object.keys(a).map(function(b){return a[b]})}function e(a){return null===a}function f(a,b){var d=Object.keys(a);return d.map(function(d){return b[d]!==c&&b[d]==a[d]}).indexOf(!1)==-1}function g(a,b){if(""===b)return a;var c=a.indexOf(b.charAt(0));return c!==-1&&g(a.substr(c+1),b.substr(1))}function h(a,b,c){var d=0;return a.filter(function(a){var e=x(c)?d<b&&c(a):d<b;return d=e?d+1:d,e})}function i(a,b,c){return c.round(a*c.pow(10,b))/c.pow(10,b)}function j(a,b,c){b=b||[];var d=Object.keys(a);return d.forEach(function(d){if(C(a[d])&&!D(a[d])){var e=c?c+"."+d:c;j(a[d],b,e||d)}else{var f=c?c+"."+d:d;b.push(f)}}),b}function k(a){return a&&a.$evalAsync&&a.$watch}function l(){return function(a,b){return a>b}}function m(){return function(a,b){return a>=b}}function n(){return function(a,b){return a<b}}function o(){return function(a,b){return a<=b}}function p(){return function(a,b){return a==b}}function q(){return function(a,b){return a!=b}}function r(){return function(a,b){return a===b}}function s(){return function(a,b){return a!==b}}function t(a){return function(b,c){return b=C(b)?d(b):b,!(!D(b)||y(c))&&b.some(function(b){return C(b)||z(c)?a(c)(b):b===c})}}function u(a,b){return b=b||0,b>=a.length?a:D(a[b])?u(a.slice(0,b).concat(a[b],a.slice(b+1)),b):u(a,b+1)}function v(a){return function(b,c){function e(a,b){return!y(b)&&a.some(function(a){return H(a,b)})}if(b=C(b)?d(b):b,!D(b))return b;var f=[],g=a(c);return y(c)?b.filter(function(a,b,c){return c.indexOf(a)===b}):b.filter(function(a){var b=g(a);return!e(f,b)&&(f.push(b),!0)})}}function w(a,b,c){return b?a+c+w(a,--b,c):a}var x=b.isDefined,y=b.isUndefined,z=b.isFunction,A=b.isString,B=b.isNumber,C=b.isObject,D=b.isArray,E=b.forEach,F=b.extend,G=b.copy,H=b.equals;String.prototype.contains||(String.prototype.contains=function(){return String.prototype.indexOf.apply(this,arguments)!==-1}),b.module("a8m.angular",[]).filter("isUndefined",function(){return function(a){return b.isUndefined(a)}}).filter("isDefined",function(){return function(a){return b.isDefined(a)}}).filter("isFunction",function(){return function(a){return b.isFunction(a)}}).filter("isString",function(){return function(a){return b.isString(a)}}).filter("isNumber",function(){return function(a){return b.isNumber(a)}}).filter("isArray",function(){return function(a){return b.isArray(a)}}).filter("isObject",function(){return function(a){return b.isObject(a)}}).filter("isEqual",function(){return function(a,c){return b.equals(a,c)}}),b.module("a8m.conditions",[]).filter({isGreaterThan:l,">":l,isGreaterThanOrEqualTo:m,">=":m,isLessThan:n,"<":n,isLessThanOrEqualTo:o,"<=":o,isEqualTo:p,"==":p,isNotEqualTo:q,"!=":q,isIdenticalTo:r,"===":r,isNotIdenticalTo:s,"!==":s}),b.module("a8m.is-null",[]).filter("isNull",function(){return function(a){return e(a)}}),b.module("a8m.after-where",[]).filter("afterWhere",function(){return function(a,b){if(a=C(a)?d(a):a,!D(a)||y(b))return a;var c=a.map(function(a){return f(b,a)}).indexOf(!0);return a.slice(c===-1?0:c)}}),b.module("a8m.after",[]).filter("after",function(){return function(a,b){return a=C(a)?d(a):a,D(a)?a.slice(b):a}}),b.module("a8m.before-where",[]).filter("beforeWhere",function(){return function(a,b){if(a=C(a)?d(a):a,!D(a)||y(b))return a;var c=a.map(function(a){return f(b,a)}).indexOf(!0);return a.slice(0,c===-1?a.length:++c)}}),b.module("a8m.before",[]).filter("before",function(){return function(a,b){return a=C(a)?d(a):a,D(a)?a.slice(0,b?--b:b):a}}),b.module("a8m.concat",[]).filter("concat",[function(){return function(a,b){if(y(b))return a;if(D(a))return C(b)?a.concat(d(b)):a.concat(b);if(C(a)){var c=d(a);return C(b)?c.concat(d(b)):c.concat(b)}return a}}]),b.module("a8m.contains",[]).filter({contains:["$parse",t],some:["$parse",t]}),b.module("a8m.count-by",[]).filter("countBy",["$parse",function(a){return function(b,c){var e,f={},g=a(c);
return b=C(b)?d(b):b,!D(b)||y(c)?b:(b.forEach(function(a){e=g(a),f[e]||(f[e]=0),f[e]++}),f)}}]),b.module("a8m.defaults",[]).filter("defaults",["$parse",function(a){return function(b,c){if(b=C(b)?d(b):b,!D(b)||!C(c))return b;var e=j(c);return b.forEach(function(b){e.forEach(function(d){var e=a(d),f=e.assign;y(e(b))&&f(b,e(c))})}),b}}]),b.module("a8m.every",[]).filter("every",["$parse",function(a){return function(b,c){return b=C(b)?d(b):b,!(D(b)&&!y(c))||b.every(function(b){return C(b)||z(c)?a(c)(b):b===c})}}]),b.module("a8m.filter-by",[]).filter("filterBy",["$parse",function(a){return function(b,e,f){var g;return f=A(f)||B(f)?String(f).toLowerCase():c,b=C(b)?d(b):b,!D(b)||y(f)?b:b.filter(function(b){return e.some(function(c){if(~c.indexOf("+")){var d=c.replace(new RegExp("\\s","g"),"").split("+");g=d.reduce(function(c,d,e){return 1===e?a(c)(b)+" "+a(d)(b):c+" "+a(d)(b)})}else g=a(c)(b);return!(!A(g)&&!B(g))&&String(g).toLowerCase().contains(f)})})}}]),b.module("a8m.first",[]).filter("first",["$parse",function(a){return function(b){var e,f,g;return b=C(b)?d(b):b,D(b)?(g=Array.prototype.slice.call(arguments,1),e=B(g[0])?g[0]:1,f=B(g[0])?B(g[1])?c:g[1]:g[0],g.length?h(b,e,f?a(f):f):b[0]):b}}]),b.module("a8m.flatten",[]).filter("flatten",function(){return function(a,b){return b=b||!1,a=C(a)?d(a):a,D(a)?b?[].concat.apply([],a):u(a,0):a}}),b.module("a8m.fuzzy-by",[]).filter("fuzzyBy",["$parse",function(a){return function(b,c,e,f){var h,i,j=f||!1;return b=C(b)?d(b):b,!D(b)||y(c)||y(e)?b:(i=a(c),b.filter(function(a){return h=i(a),!!A(h)&&(h=j?h:h.toLowerCase(),e=j?e:e.toLowerCase(),g(h,e)!==!1)}))}}]),b.module("a8m.fuzzy",[]).filter("fuzzy",function(){return function(a,b,c){function e(a,b){var c,d,e=Object.keys(a);return 0<e.filter(function(e){return c=a[e],!!d||!!A(c)&&(c=f?c:c.toLowerCase(),d=g(c,b)!==!1)}).length}var f=c||!1;return a=C(a)?d(a):a,!D(a)||y(b)?a:(b=f?b:b.toLowerCase(),a.filter(function(a){return A(a)?(a=f?a:a.toLowerCase(),g(a,b)!==!1):!!C(a)&&e(a,b)}))}}),b.module("a8m.group-by",["a8m.filter-watcher"]).filter("groupBy",["$parse","filterWatcher",function(a,b){return function(c,d){function e(a,b){var c,d={};return E(a,function(a){c=b(a),d[c]||(d[c]=[]),d[c].push(a)}),d}if(!C(c)||y(d))return c;var f=a(d);return b.isMemoized("groupBy",arguments)||b.memoize("groupBy",arguments,this,e(c,f))}}]),b.module("a8m.is-empty",[]).filter("isEmpty",function(){return function(a){return C(a)?!d(a).length:!a.length}}),b.module("a8m.join",[]).filter("join",function(){return function(a,b){return y(a)||!D(a)?a:(y(b)&&(b=" "),a.join(b))}}),b.module("a8m.last",[]).filter("last",["$parse",function(a){return function(b){var e,f,g,i=G(b);return i=C(i)?d(i):i,D(i)?(g=Array.prototype.slice.call(arguments,1),e=B(g[0])?g[0]:1,f=B(g[0])?B(g[1])?c:g[1]:g[0],g.length?h(i.reverse(),e,f?a(f):f).reverse():i[i.length-1]):i}}]),b.module("a8m.map",[]).filter("map",["$parse",function(a){return function(b,c){return b=C(b)?d(b):b,!D(b)||y(c)?b:b.map(function(b){return a(c)(b)})}}]),b.module("a8m.omit",[]).filter("omit",["$parse",function(a){return function(b,c){return b=C(b)?d(b):b,!D(b)||y(c)?b:b.filter(function(b){return!a(c)(b)})}}]),b.module("a8m.pick",[]).filter("pick",["$parse",function(a){return function(b,c){return b=C(b)?d(b):b,!D(b)||y(c)?b:b.filter(function(b){return a(c)(b)})}}]),b.module("a8m.remove-with",[]).filter("removeWith",function(){return function(a,b){return y(b)?a:(a=C(a)?d(a):a,a.filter(function(a){return!f(b,a)}))}}),b.module("a8m.remove",[]).filter("remove",function(){return function(a){a=C(a)?d(a):a;var b=Array.prototype.slice.call(arguments,1);return D(a)?a.filter(function(a){return!b.some(function(b){return H(b,a)})}):a}}),b.module("a8m.reverse",[]).filter("reverse",[function(){return function(a){return a=C(a)?d(a):a,A(a)?a.split("").reverse().join(""):D(a)?a.slice().reverse():a}}]),b.module("a8m.search-field",[]).filter("searchField",["$parse",function(a){return function(b){var c,e;b=C(b)?d(b):b;var f=Array.prototype.slice.call(arguments,1);return D(b)&&f.length?b.map(function(b){return e=f.map(function(d){return(c=a(d))(b)}).join(" "),F(b,{searchField:e})}):b}}]),b.module("a8m.to-array",[]).filter("toArray",function(){return function(a,b){return C(a)?b?Object.keys(a).map(function(b){return F(a[b],{$key:b})}):d(a):a}}),b.module("a8m.unique",[]).filter({unique:["$parse",v],uniq:["$parse",v]}),b.module("a8m.where",[]).filter("where",function(){return function(a,b){return y(b)?a:(a=C(a)?d(a):a,a.filter(function(a){return f(b,a)}))}}),b.module("a8m.xor",[]).filter("xor",["$parse",function(a){return function(b,c,e){function f(b,c){var d=a(e);return c.some(function(a){return e?H(d(a),d(b)):H(a,b)})}return e=e||!1,b=C(b)?d(b):b,c=C(c)?d(c):c,D(b)&&D(c)?b.concat(c).filter(function(a){return!(f(a,b)&&f(a,c))}):b}}]),b.module("a8m.math.byteFmt",["a8m.math"]).filter("byteFmt",["$math",function(a){return function(b,c){return B(c)&&isFinite(c)&&c%1===0&&c>=0&&B(b)&&isFinite(b)?b<1024?i(b,c,a)+" B":b<1048576?i(b/1024,c,a)+" KB":b<1073741824?i(b/1048576,c,a)+" MB":i(b/1073741824,c,a)+" GB":"NaN"}}]),b.module("a8m.math.degrees",["a8m.math"]).filter("degrees",["$math",function(a){return function(b,c){if(B(c)&&isFinite(c)&&c%1===0&&c>=0&&B(b)&&isFinite(b)){var d=180*b/a.PI;return a.round(d*a.pow(10,c))/a.pow(10,c)}return"NaN"}}]),b.module("a8m.math.kbFmt",["a8m.math"]).filter("kbFmt",["$math",function(a){return function(b,c){return B(c)&&isFinite(c)&&c%1===0&&c>=0&&B(b)&&isFinite(b)?b<1024?i(b,c,a)+" KB":b<1048576?i(b/1024,c,a)+" MB":i(b/1048576,c,a)+" GB":"NaN"}}]),b.module("a8m.math",[]).factory("$math",["$window",function(a){return a.Math}]),b.module("a8m.math.max",["a8m.math"]).filter("max",["$math","$parse",function(a,b){function c(c,d){var e=c.map(function(a){return b(d)(a)});return e.indexOf(a.max.apply(a,e))}return function(b,d){return D(b)?y(d)?a.max.apply(a,b):b[c(b,d)]:b}}]),b.module("a8m.math.min",["a8m.math"]).filter("min",["$math","$parse",function(a,b){function c(c,d){var e=c.map(function(a){return b(d)(a)});return e.indexOf(a.min.apply(a,e))}return function(b,d){return D(b)?y(d)?a.min.apply(a,b):b[c(b,d)]:b}}]),b.module("a8m.math.percent",["a8m.math"]).filter("percent",["$math","$window",function(a,b){return function(c,d,e){var f=A(c)?b.Number(c):c;return d=d||100,e=e||!1,!B(f)||b.isNaN(f)?c:e?a.round(f/d*100):f/d*100}}]),b.module("a8m.math.radians",["a8m.math"]).filter("radians",["$math",function(a){return function(b,c){if(B(c)&&isFinite(c)&&c%1===0&&c>=0&&B(b)&&isFinite(b)){var d=3.14159265359*b/180;return a.round(d*a.pow(10,c))/a.pow(10,c)}return"NaN"}}]),b.module("a8m.math.radix",[]).filter("radix",function(){return function(a,b){var c=/^[2-9]$|^[1-2]\d$|^3[0-6]$/;return B(a)&&c.test(b)?a.toString(b).toUpperCase():a}}),b.module("a8m.math.shortFmt",["a8m.math"]).filter("shortFmt",["$math",function(a){return function(b,c){return B(c)&&isFinite(c)&&c%1===0&&c>=0&&B(b)&&isFinite(b)?b<1e3?b:b<1e6?i(b/1e3,c,a)+" K":b<1e9?i(b/1e6,c,a)+" M":i(b/1e9,c,a)+" B":"NaN"}}]),b.module("a8m.math.sum",[]).filter("sum",function(){return function(a,b){return D(a)?a.reduce(function(a,b){return a+b},b||0):a}}),b.module("a8m.ends-with",[]).filter("endsWith",function(){return function(a,b,c){var d,e=c||!1;return!A(a)||y(b)?a:(a=e?a:a.toLowerCase(),d=a.length-b.length,a.indexOf(e?b:b.toLowerCase(),d)!==-1)}}),b.module("a8m.latinize",[]).filter("latinize",[function(){function a(a){return a.replace(/[^\u0000-\u007E]/g,function(a){return c[a]||a})}for(var b=[{base:"A",letters:"AⒶＡÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷＢḂḄḆɃƂƁ"},{base:"C",letters:"CⒸＣĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹＤḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"ǱǄ"},{base:"Dz",letters:"ǲǅ"},{base:"E",letters:"EⒺＥÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻＦḞƑꝻ"},{base:"G",letters:"GⒼＧǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽＨĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾＩÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿＪĴɈ"},{base:"K",letters:"KⓀＫḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁＬĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"Ǉ"},{base:"Lj",letters:"ǈ"},{base:"M",letters:"MⓂＭḾṀṂⱮƜ"},{base:"N",letters:"NⓃＮǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"Ǌ"},{base:"Nj",letters:"ǋ"},{base:"O",letters:"OⓄＯÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"OE",letters:"Œ"},{base:"oe",letters:"œ"},{base:"P",letters:"PⓅＰṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆＱꝖꝘɊ"},{base:"R",letters:"RⓇＲŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈＳẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉＴṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊＵÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋＶṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌＷẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍＸẊẌ"},{base:"Y",letters:"YⓎＹỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏＺŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐａẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑｂḃḅḇƀƃɓ"},{base:"c",letters:"cⓒｃćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓｄḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"ǳǆ"},{base:"e",letters:"eⓔｅèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕｆḟƒꝼ"},{base:"g",letters:"gⓖｇǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗｈĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘｉìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙｊĵǰɉ"},{base:"k",letters:"kⓚｋḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛｌŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"ǉ"},{base:"m",letters:"mⓜｍḿṁṃɱɯ"},{base:"n",letters:"nⓝｎǹńñṅňṇņṋṉƞɲŉꞑꞥ"},{base:"nj",letters:"ǌ"},{base:"o",letters:"oⓞｏòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟｐṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠｑɋꝗꝙ"},{base:"r",letters:"rⓡｒŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢｓßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣｔṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤｕùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥｖṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦｗẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧｘẋẍ"},{base:"y",letters:"yⓨｙỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩｚźẑżžẓẕƶȥɀⱬꝣ"}],c={},d=0;d<b.length;d++)for(var e=b[d].letters.split(""),f=0;f<e.length;f++)c[e[f]]=b[d].base;return function(b){return A(b)?a(b):b}}]),b.module("a8m.ltrim",[]).filter("ltrim",function(){return function(a,b){var c=b||"\\s";return A(a)?a.replace(new RegExp("^"+c+"+"),""):a}}),b.module("a8m.repeat",[]).filter("repeat",[function(){return function(a,b,c){var d=~~b;return A(a)&&d?w(a,--b,c||""):a}}]),b.module("a8m.rtrim",[]).filter("rtrim",function(){return function(a,b){var c=b||"\\s";return A(a)?a.replace(new RegExp(c+"+$"),""):a}}),b.module("a8m.slugify",[]).filter("slugify",[function(){return function(a,b){var c=y(b)?"-":b;return A(a)?a.toLowerCase().replace(/\s+/g,c):a}}]),b.module("a8m.starts-with",[]).filter("startsWith",function(){return function(a,b,c){var d=c||!1;return!A(a)||y(b)?a:(a=d?a:a.toLowerCase(),!a.indexOf(d?b:b.toLowerCase()))}}),b.module("a8m.stringular",[]).filter("stringular",function(){return function(a){var b=Array.prototype.slice.call(arguments,1);return a.replace(/{(\d+)}/g,function(a,c){return y(b[c])?a:b[c]})}}),b.module("a8m.strip-tags",[]).filter("stripTags",function(){return function(a){return A(a)?a.replace(/<\S[^><]*>/g,""):a}}),b.module("a8m.trim",[]).filter("trim",function(){return function(a,b){var c=b||"\\s";return A(a)?a.replace(new RegExp("^"+c+"+|"+c+"+$","g"),""):a}}),b.module("a8m.truncate",[]).filter("truncate",function(){return function(a,b,c,d){return b=y(b)?a.length:b,d=d||!1,c=c||"",!A(a)||a.length<=b?a:a.substring(0,d?a.indexOf(" ",b)===-1?a.length:a.indexOf(" ",b):b)+c}}),b.module("a8m.ucfirst",[]).filter("ucfirst",[function(){return function(a){return A(a)?a.split(" ").map(function(a){return a.charAt(0).toUpperCase()+a.substring(1)}).join(" "):a}}]),b.module("a8m.uri-component-encode",[]).filter("uriComponentEncode",["$window",function(a){return function(b){return A(b)?a.encodeURIComponent(b):b}}]),b.module("a8m.uri-encode",[]).filter("uriEncode",["$window",function(a){return function(b){return A(b)?a.encodeURI(b):b}}]),b.module("a8m.wrap",[]).filter("wrap",function(){return function(a,b,c){return A(a)&&x(b)?[b,a,c||b].join(""):a}}),b.module("a8m.filter-watcher",[]).provider("filterWatcher",function(){this.$get=["$window","$rootScope",function(a,c){function d(a,c){return[a,b.toJson(c)].join("#").replace(/"/g,"")}function e(a){var b=a.targetScope.$id;E(l[b],function(a){delete j[a]}),delete l[b]}function f(){m(function(){c.$$phase||(j={})})}function g(a,b){var c=a.$id;return y(l[c])&&(a.$on("$destroy",e),l[c]=[]),l[c].push(b)}function h(a,b){var c=d(a,b);return j[c]}function i(a,b,c,e){var h=d(a,b);return j[h]=e,k(c)?g(c,h):f(),e}var j={},l={},m=a.setTimeout;return{isMemoized:h,memoize:i}}]}),b.module("angular.filter",["a8m.ucfirst","a8m.uri-encode","a8m.uri-component-encode","a8m.slugify","a8m.latinize","a8m.strip-tags","a8m.stringular","a8m.truncate","a8m.starts-with","a8m.ends-with","a8m.wrap","a8m.trim","a8m.ltrim","a8m.rtrim","a8m.repeat","a8m.to-array","a8m.concat","a8m.contains","a8m.unique","a8m.is-empty","a8m.after","a8m.after-where","a8m.before","a8m.before-where","a8m.defaults","a8m.where","a8m.reverse","a8m.remove","a8m.remove-with","a8m.group-by","a8m.count-by","a8m.search-field","a8m.fuzzy-by","a8m.fuzzy","a8m.omit","a8m.pick","a8m.every","a8m.filter-by","a8m.xor","a8m.map","a8m.first","a8m.last","a8m.flatten","a8m.join","a8m.math","a8m.math.max","a8m.math.min","a8m.math.percent","a8m.math.radix","a8m.math.sum","a8m.math.degrees","a8m.math.radians","a8m.math.byteFmt","a8m.math.kbFmt","a8m.math.shortFmt","a8m.angular","a8m.conditions","a8m.is-null","a8m.filter-watcher"])}(window,window.angular),angular.module("ui.bootstrap",["ui.bootstrap.tpls","ui.bootstrap.transition","ui.bootstrap.collapse","ui.bootstrap.accordion","ui.bootstrap.alert","ui.bootstrap.bindHtml","ui.bootstrap.buttons","ui.bootstrap.carousel","ui.bootstrap.dateparser","ui.bootstrap.position","ui.bootstrap.datepicker","ui.bootstrap.dropdown","ui.bootstrap.modal","ui.bootstrap.pagination","ui.bootstrap.tooltip","ui.bootstrap.popover","ui.bootstrap.progressbar","ui.bootstrap.rating","ui.bootstrap.tabs","ui.bootstrap.timepicker","ui.bootstrap.typeahead"]),angular.module("ui.bootstrap.tpls",["template/accordion/accordion-group.html","template/accordion/accordion.html","template/alert/alert.html","template/carousel/carousel.html","template/carousel/slide.html","template/datepicker/datepicker.html","template/datepicker/day.html","template/datepicker/month.html","template/datepicker/popup.html","template/datepicker/year.html","template/modal/backdrop.html","template/modal/window.html","template/pagination/pager.html","template/pagination/pagination.html","template/tooltip/tooltip-html-unsafe-popup.html","template/tooltip/tooltip-popup.html","template/popover/popover.html","template/progressbar/bar.html","template/progressbar/progress.html","template/progressbar/progressbar.html","template/rating/rating.html","template/tabs/tab.html","template/tabs/tabset.html","template/timepicker/timepicker.html","template/typeahead/typeahead-match.html","template/typeahead/typeahead-popup.html"]),angular.module("ui.bootstrap.transition",[]).factory("$transition",["$q","$timeout","$rootScope",function(a,b,c){function d(a){for(var b in a)if(void 0!==f.style[b])return a[b]}var e=function(d,f,g){g=g||{};var h=a.defer(),i=e[g.animation?"animationEndEventName":"transitionEndEventName"],j=function(a){c.$apply(function(){d.unbind(i,j),h.resolve(d)})};return i&&d.bind(i,j),b(function(){angular.isString(f)?d.addClass(f):angular.isFunction(f)?f(d):angular.isObject(f)&&d.css(f),i||h.resolve(d)}),h.promise.cancel=function(){i&&d.unbind(i,j),h.reject("Transition cancelled")},h.promise},f=document.createElement("trans"),g={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"},h={WebkitTransition:"webkitAnimationEnd",MozTransition:"animationend",OTransition:"oAnimationEnd",transition:"animationend"};return e.transitionEndEventName=d(g),e.animationEndEventName=d(h),e}]),angular.module("ui.bootstrap.collapse",["ui.bootstrap.transition"]).directive("collapse",["$transition",function(a){return{link:function(b,c,d){function e(b){function d(){j===e&&(j=void 0)}var e=a(c,b);return j&&j.cancel(),j=e,e.then(d,d),e}function f(){k?(k=!1,g()):(c.removeClass("collapse").addClass("collapsing"),e({height:c[0].scrollHeight+"px"}).then(g))}function g(){c.removeClass("collapsing"),c.addClass("collapse in"),c.css({height:"auto"})}function h(){if(k)k=!1,i(),c.css({height:0});else{c.css({height:c[0].scrollHeight+"px"});c[0].offsetWidth;c.removeClass("collapse in").addClass("collapsing"),e({height:0}).then(i)}}function i(){c.removeClass("collapsing"),c.addClass("collapse")}var j,k=!0;b.$watch(d.collapse,function(a){a?h():f()})}}}]),angular.module("ui.bootstrap.accordion",["ui.bootstrap.collapse"]).constant("accordionConfig",{closeOthers:!0}).controller("AccordionController",["$scope","$attrs","accordionConfig",function(a,b,c){this.groups=[],this.closeOthers=function(d){var e=angular.isDefined(b.closeOthers)?a.$eval(b.closeOthers):c.closeOthers;e&&angular.forEach(this.groups,function(a){a!==d&&(a.isOpen=!1)})},this.addGroup=function(a){var b=this;this.groups.push(a),a.$on("$destroy",function(c){b.removeGroup(a)})},this.removeGroup=function(a){var b=this.groups.indexOf(a);b!==-1&&this.groups.splice(b,1)}}]).directive("accordion",function(){return{restrict:"EA",controller:"AccordionController",transclude:!0,replace:!1,templateUrl:"template/accordion/accordion.html"}}).directive("accordionGroup",function(){return{require:"^accordion",restrict:"EA",transclude:!0,replace:!0,templateUrl:"template/accordion/accordion-group.html",scope:{heading:"@",isOpen:"=?",isDisabled:"=?"},controller:function(){this.setHeading=function(a){this.heading=a}},link:function(a,b,c,d){d.addGroup(a),a.$watch("isOpen",function(b){b&&d.closeOthers(a)}),a.toggleOpen=function(){a.isDisabled||(a.isOpen=!a.isOpen)}}}}).directive("accordionHeading",function(){return{restrict:"EA",transclude:!0,template:"",replace:!0,require:"^accordionGroup",link:function(a,b,c,d,e){d.setHeading(e(a,function(){}))}}}).directive("accordionTransclude",function(){return{require:"^accordionGroup",link:function(a,b,c,d){a.$watch(function(){return d[c.accordionTransclude]},function(a){a&&(b.html(""),b.append(a))})}}}),angular.module("ui.bootstrap.alert",[]).controller("AlertController",["$scope","$attrs",function(a,b){a.closeable="close"in b,this.close=a.close}]).directive("alert",function(){return{restrict:"EA",controller:"AlertController",templateUrl:"template/alert/alert.html",transclude:!0,replace:!0,scope:{type:"@",close:"&"}}}).directive("dismissOnTimeout",["$timeout",function(a){return{require:"alert",link:function(b,c,d,e){a(function(){e.close()},parseInt(d.dismissOnTimeout,10))}}}]),angular.module("ui.bootstrap.bindHtml",[]).directive("bindHtmlUnsafe",function(){return function(a,b,c){b.addClass("ng-binding").data("$binding",c.bindHtmlUnsafe),a.$watch(c.bindHtmlUnsafe,function(a){b.html(a||"")})}}),angular.module("ui.bootstrap.buttons",[]).constant("buttonConfig",{activeClass:"active",toggleEvent:"click"}).controller("ButtonsController",["buttonConfig",function(a){this.activeClass=a.activeClass||"active",this.toggleEvent=a.toggleEvent||"click"}]).directive("btnRadio",function(){return{require:["btnRadio","ngModel"],controller:"ButtonsController",link:function(a,b,c,d){var e=d[0],f=d[1];f.$render=function(){b.toggleClass(e.activeClass,angular.equals(f.$modelValue,a.$eval(c.btnRadio)))},b.bind(e.toggleEvent,function(){var d=b.hasClass(e.activeClass);d&&!angular.isDefined(c.uncheckable)||a.$apply(function(){f.$setViewValue(d?null:a.$eval(c.btnRadio)),f.$render()})})}}}).directive("btnCheckbox",function(){return{require:["btnCheckbox","ngModel"],controller:"ButtonsController",link:function(a,b,c,d){function e(){return g(c.btnCheckboxTrue,!0)}function f(){return g(c.btnCheckboxFalse,!1)}function g(b,c){var d=a.$eval(b);return angular.isDefined(d)?d:c}var h=d[0],i=d[1];i.$render=function(){b.toggleClass(h.activeClass,angular.equals(i.$modelValue,e()))},b.bind(h.toggleEvent,function(){a.$apply(function(){i.$setViewValue(b.hasClass(h.activeClass)?f():e()),i.$render()})})}}}),angular.module("ui.bootstrap.carousel",["ui.bootstrap.transition"]).controller("CarouselController",["$scope","$timeout","$interval","$transition",function(a,b,c,d){function e(){f();var b=+a.interval;!isNaN(b)&&b>0&&(h=c(g,b))}function f(){h&&(c.cancel(h),h=null)}function g(){var b=+a.interval;i&&!isNaN(b)&&b>0?a.next():a.pause()}var h,i,j=this,k=j.slides=a.slides=[],l=-1;j.currentSlide=null;var m=!1;j.select=a.select=function(c,f){function g(){if(!m){if(j.currentSlide&&angular.isString(f)&&!a.noTransition&&c.$element){c.$element.addClass(f);c.$element[0].offsetWidth;angular.forEach(k,function(a){angular.extend(a,{direction:"",entering:!1,leaving:!1,active:!1})}),angular.extend(c,{direction:f,active:!0,entering:!0}),angular.extend(j.currentSlide||{},{direction:f,leaving:!0}),a.$currentTransition=d(c.$element,{}),function(b,c){a.$currentTransition.then(function(){h(b,c)},function(){h(b,c)})}(c,j.currentSlide)}else h(c,j.currentSlide);j.currentSlide=c,l=i,e()}}function h(b,c){angular.extend(b,{direction:"",active:!0,leaving:!1,entering:!1}),angular.extend(c||{},{direction:"",active:!1,leaving:!1,entering:!1}),a.$currentTransition=null}var i=k.indexOf(c);void 0===f&&(f=i>l?"next":"prev"),c&&c!==j.currentSlide&&(a.$currentTransition?(a.$currentTransition.cancel(),b(g)):g())},a.$on("$destroy",function(){m=!0}),j.indexOfSlide=function(a){return k.indexOf(a)},a.next=function(){var b=(l+1)%k.length;if(!a.$currentTransition)return j.select(k[b],"next")},a.prev=function(){var b=l-1<0?k.length-1:l-1;if(!a.$currentTransition)return j.select(k[b],"prev")},a.isActive=function(a){return j.currentSlide===a},a.$watch("interval",e),a.$on("$destroy",f),a.play=function(){i||(i=!0,e())},a.pause=function(){a.noPause||(i=!1,f())},j.addSlide=function(b,c){b.$element=c,k.push(b),1===k.length||b.active?(j.select(k[k.length-1]),1==k.length&&a.play()):b.active=!1},j.removeSlide=function(a){var b=k.indexOf(a);k.splice(b,1),k.length>0&&a.active?b>=k.length?j.select(k[b-1]):j.select(k[b]):l>b&&l--}}]).directive("carousel",[function(){return{restrict:"EA",transclude:!0,replace:!0,controller:"CarouselController",require:"carousel",templateUrl:"template/carousel/carousel.html",scope:{interval:"=",noTransition:"=",noPause:"="}}}]).directive("slide",function(){return{require:"^carousel",restrict:"EA",transclude:!0,replace:!0,templateUrl:"template/carousel/slide.html",scope:{active:"=?"},link:function(a,b,c,d){d.addSlide(a,b),a.$on("$destroy",function(){d.removeSlide(a)}),a.$watch("active",function(b){b&&d.select(a)})}}}),angular.module("ui.bootstrap.dateparser",[]).service("dateParser",["$locale","orderByFilter",function(a,b){function c(a){var c=[],d=a.split("");return angular.forEach(e,function(b,e){var f=a.indexOf(e);if(f>-1){a=a.split(""),d[f]="("+b.regex+")",a[f]="$";for(var g=f+1,h=f+e.length;g<h;g++)d[g]="",a[g]="$";a=a.join(""),c.push({index:f,apply:b.apply})}}),{regex:new RegExp("^"+d.join("")+"$"),map:b(c,"index")}}function d(a,b,c){return 1===b&&c>28?29===c&&(a%4===0&&a%100!==0||a%400===0):3!==b&&5!==b&&8!==b&&10!==b||c<31}this.parsers={};var e={yyyy:{regex:"\\d{4}",apply:function(a){this.year=+a}},yy:{regex:"\\d{2}",apply:function(a){this.year=+a+2e3}},y:{regex:"\\d{1,4}",apply:function(a){this.year=+a}},MMMM:{regex:a.DATETIME_FORMATS.MONTH.join("|"),apply:function(b){this.month=a.DATETIME_FORMATS.MONTH.indexOf(b)}},MMM:{regex:a.DATETIME_FORMATS.SHORTMONTH.join("|"),apply:function(b){this.month=a.DATETIME_FORMATS.SHORTMONTH.indexOf(b)}},MM:{regex:"0[1-9]|1[0-2]",apply:function(a){this.month=a-1}},M:{regex:"[1-9]|1[0-2]",apply:function(a){this.month=a-1}},dd:{regex:"[0-2][0-9]{1}|3[0-1]{1}",apply:function(a){this.date=+a}},d:{regex:"[1-2]?[0-9]{1}|3[0-1]{1}",apply:function(a){this.date=+a}},EEEE:{regex:a.DATETIME_FORMATS.DAY.join("|")},EEE:{regex:a.DATETIME_FORMATS.SHORTDAY.join("|")}};this.parse=function(b,e){if(!angular.isString(b)||!e)return b;e=a.DATETIME_FORMATS[e]||e,this.parsers[e]||(this.parsers[e]=c(e));var f=this.parsers[e],g=f.regex,h=f.map,i=b.match(g);if(i&&i.length){for(var j,k={year:1900,month:0,date:1,hours:0},l=1,m=i.length;l<m;l++){var n=h[l-1];n.apply&&n.apply.call(k,i[l])}return d(k.year,k.month,k.date)&&(j=new Date(k.year,k.month,k.date,k.hours)),j}}}]),angular.module("ui.bootstrap.position",[]).factory("$position",["$document","$window",function(a,b){function c(a,c){return a.currentStyle?a.currentStyle[c]:b.getComputedStyle?b.getComputedStyle(a)[c]:a.style[c]}function d(a){return"static"===(c(a,"position")||"static")}var e=function(b){for(var c=a[0],e=b.offsetParent||c;e&&e!==c&&d(e);)e=e.offsetParent;return e||c};return{position:function(b){var c=this.offset(b),d={top:0,left:0},f=e(b[0]);f!=a[0]&&(d=this.offset(angular.element(f)),d.top+=f.clientTop-f.scrollTop,d.left+=f.clientLeft-f.scrollLeft);var g=b[0].getBoundingClientRect();return{width:g.width||b.prop("offsetWidth"),height:g.height||b.prop("offsetHeight"),top:c.top-d.top,left:c.left-d.left}},offset:function(c){var d=c[0].getBoundingClientRect();return{width:d.width||c.prop("offsetWidth"),height:d.height||c.prop("offsetHeight"),top:d.top+(b.pageYOffset||a[0].documentElement.scrollTop),left:d.left+(b.pageXOffset||a[0].documentElement.scrollLeft)}},positionElements:function(a,b,c,d){var e,f,g,h,i=c.split("-"),j=i[0],k=i[1]||"center";e=d?this.offset(a):this.position(a),f=b.prop("offsetWidth"),g=b.prop("offsetHeight");var l={center:function(){return e.left+e.width/2-f/2},left:function(){return e.left},right:function(){return e.left+e.width}},m={center:function(){return e.top+e.height/2-g/2},top:function(){return e.top},bottom:function(){return e.top+e.height}};switch(j){case"right":h={top:m[k](),left:l[j]()};break;case"left":h={top:m[k](),left:e.left-f};break;case"bottom":h={top:m[j](),left:l[k]()};break;default:h={top:e.top-g,left:l[k]()}}return h}}}]),angular.module("ui.bootstrap.datepicker",["ui.bootstrap.dateparser","ui.bootstrap.position"]).constant("datepickerConfig",{formatDay:"dd",formatMonth:"MMMM",formatYear:"yyyy",formatDayHeader:"EEE",formatDayTitle:"MMMM yyyy",formatMonthTitle:"yyyy",datepickerMode:"day",minMode:"day",maxMode:"year",showWeeks:!0,startingDay:0,yearRange:20,minDate:null,maxDate:null}).controller("DatepickerController",["$scope","$attrs","$parse","$interpolate","$timeout","$log","dateFilter","datepickerConfig",function(a,b,c,d,e,f,g,h){var i=this,j={$setViewValue:angular.noop};this.modes=["day","month","year"],angular.forEach(["formatDay","formatMonth","formatYear","formatDayHeader","formatDayTitle","formatMonthTitle","minMode","maxMode","showWeeks","startingDay","yearRange"],function(c,e){i[c]=angular.isDefined(b[c])?e<8?d(b[c])(a.$parent):a.$parent.$eval(b[c]):h[c]}),angular.forEach(["minDate","maxDate"],function(d){b[d]?a.$parent.$watch(c(b[d]),function(a){i[d]=a?new Date(a):null,i.refreshView()}):i[d]=h[d]?new Date(h[d]):null}),a.datepickerMode=a.datepickerMode||h.datepickerMode,a.uniqueId="datepicker-"+a.$id+"-"+Math.floor(1e4*Math.random()),this.activeDate=angular.isDefined(b.initDate)?a.$parent.$eval(b.initDate):new Date,a.isActive=function(b){return 0===i.compare(b.date,i.activeDate)&&(a.activeDateId=b.uid,!0)},this.init=function(a){j=a,j.$render=function(){i.render()}},this.render=function(){if(j.$modelValue){var a=new Date(j.$modelValue),b=!isNaN(a);b?this.activeDate=a:f.error('Datepicker directive: "ng-model" value must be a Date object, a number of milliseconds since 01.01.1970 or a string representing an RFC2822 or ISO 8601 date.'),j.$setValidity("date",b)}this.refreshView()},this.refreshView=function(){if(this.element){this._refreshView();var a=j.$modelValue?new Date(j.$modelValue):null;j.$setValidity("date-disabled",!a||this.element&&!this.isDisabled(a))}},this.createDateObject=function(a,b){var c=j.$modelValue?new Date(j.$modelValue):null;return{date:a,label:g(a,b),selected:c&&0===this.compare(a,c),disabled:this.isDisabled(a),current:0===this.compare(a,new Date)}},this.isDisabled=function(c){return this.minDate&&this.compare(c,this.minDate)<0||this.maxDate&&this.compare(c,this.maxDate)>0||b.dateDisabled&&a.dateDisabled({date:c,mode:a.datepickerMode})},this.split=function(a,b){for(var c=[];a.length>0;)c.push(a.splice(0,b));return c},a.select=function(b){if(a.datepickerMode===i.minMode){var c=j.$modelValue?new Date(j.$modelValue):new Date(0,0,0,0,0,0,0);c.setFullYear(b.getFullYear(),b.getMonth(),b.getDate()),j.$setViewValue(c),j.$render()}else i.activeDate=b,a.datepickerMode=i.modes[i.modes.indexOf(a.datepickerMode)-1]},a.move=function(a){var b=i.activeDate.getFullYear()+a*(i.step.years||0),c=i.activeDate.getMonth()+a*(i.step.months||0);i.activeDate.setFullYear(b,c,1),i.refreshView()},a.toggleMode=function(b){b=b||1,a.datepickerMode===i.maxMode&&1===b||a.datepickerMode===i.minMode&&b===-1||(a.datepickerMode=i.modes[i.modes.indexOf(a.datepickerMode)+b])},a.keys={13:"enter",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down"};var k=function(){e(function(){i.element[0].focus()},0,!1)};a.$on("datepicker.focus",k),a.keydown=function(b){var c=a.keys[b.which];if(c&&!b.shiftKey&&!b.altKey)if(b.preventDefault(),b.stopPropagation(),"enter"===c||"space"===c){if(i.isDisabled(i.activeDate))return;a.select(i.activeDate),k()}else!b.ctrlKey||"up"!==c&&"down"!==c?(i.handleKeyDown(c,b),i.refreshView()):(a.toggleMode("up"===c?1:-1),k())}}]).directive("datepicker",function(){return{restrict:"EA",replace:!0,templateUrl:"template/datepicker/datepicker.html",scope:{datepickerMode:"=?",dateDisabled:"&"},require:["datepicker","?^ngModel"],controller:"DatepickerController",link:function(a,b,c,d){var e=d[0],f=d[1];f&&e.init(f)}}}).directive("daypicker",["dateFilter",function(a){return{restrict:"EA",replace:!0,templateUrl:"template/datepicker/day.html",require:"^datepicker",link:function(b,c,d,e){function f(a,b){return 1!==b||a%4!==0||a%100===0&&a%400!==0?i[b]:29}function g(a,b){var c=new Array(b),d=new Date(a),e=0;for(d.setHours(12);e<b;)c[e++]=new Date(d),d.setDate(d.getDate()+1);return c}function h(a){var b=new Date(a);b.setDate(b.getDate()+4-(b.getDay()||7));var c=b.getTime();return b.setMonth(0),b.setDate(1),Math.floor(Math.round((c-b)/864e5)/7)+1}b.showWeeks=e.showWeeks,e.step={months:1},e.element=c;var i=[31,28,31,30,31,30,31,31,30,31,30,31];e._refreshView=function(){var c=e.activeDate.getFullYear(),d=e.activeDate.getMonth(),f=new Date(c,d,1),i=e.startingDay-f.getDay(),j=i>0?7-i:-i,k=new Date(f);j>0&&k.setDate(-j+1);for(var l=g(k,42),m=0;m<42;m++)l[m]=angular.extend(e.createDateObject(l[m],e.formatDay),{secondary:l[m].getMonth()!==d,uid:b.uniqueId+"-"+m});b.labels=new Array(7);for(var n=0;n<7;n++)b.labels[n]={abbr:a(l[n].date,e.formatDayHeader),full:a(l[n].date,"EEEE")};if(b.title=a(e.activeDate,e.formatDayTitle),b.rows=e.split(l,7),b.showWeeks){b.weekNumbers=[];for(var o=h(b.rows[0][0].date),p=b.rows.length;b.weekNumbers.push(o++)<p;);}},e.compare=function(a,b){return new Date(a.getFullYear(),a.getMonth(),a.getDate())-new Date(b.getFullYear(),b.getMonth(),b.getDate())},e.handleKeyDown=function(a,b){var c=e.activeDate.getDate();if("left"===a)c-=1;else if("up"===a)c-=7;else if("right"===a)c+=1;else if("down"===a)c+=7;else if("pageup"===a||"pagedown"===a){var d=e.activeDate.getMonth()+("pageup"===a?-1:1);e.activeDate.setMonth(d,1),c=Math.min(f(e.activeDate.getFullYear(),e.activeDate.getMonth()),c)}else"home"===a?c=1:"end"===a&&(c=f(e.activeDate.getFullYear(),e.activeDate.getMonth()));e.activeDate.setDate(c)},e.refreshView()}}}]).directive("monthpicker",["dateFilter",function(a){
return{restrict:"EA",replace:!0,templateUrl:"template/datepicker/month.html",require:"^datepicker",link:function(b,c,d,e){e.step={years:1},e.element=c,e._refreshView=function(){for(var c=new Array(12),d=e.activeDate.getFullYear(),f=0;f<12;f++)c[f]=angular.extend(e.createDateObject(new Date(d,f,1),e.formatMonth),{uid:b.uniqueId+"-"+f});b.title=a(e.activeDate,e.formatMonthTitle),b.rows=e.split(c,3)},e.compare=function(a,b){return new Date(a.getFullYear(),a.getMonth())-new Date(b.getFullYear(),b.getMonth())},e.handleKeyDown=function(a,b){var c=e.activeDate.getMonth();if("left"===a)c-=1;else if("up"===a)c-=3;else if("right"===a)c+=1;else if("down"===a)c+=3;else if("pageup"===a||"pagedown"===a){var d=e.activeDate.getFullYear()+("pageup"===a?-1:1);e.activeDate.setFullYear(d)}else"home"===a?c=0:"end"===a&&(c=11);e.activeDate.setMonth(c)},e.refreshView()}}}]).directive("yearpicker",["dateFilter",function(a){return{restrict:"EA",replace:!0,templateUrl:"template/datepicker/year.html",require:"^datepicker",link:function(a,b,c,d){function e(a){return parseInt((a-1)/f,10)*f+1}var f=d.yearRange;d.step={years:f},d.element=b,d._refreshView=function(){for(var b=new Array(f),c=0,g=e(d.activeDate.getFullYear());c<f;c++)b[c]=angular.extend(d.createDateObject(new Date(g+c,0,1),d.formatYear),{uid:a.uniqueId+"-"+c});a.title=[b[0].label,b[f-1].label].join(" - "),a.rows=d.split(b,5)},d.compare=function(a,b){return a.getFullYear()-b.getFullYear()},d.handleKeyDown=function(a,b){var c=d.activeDate.getFullYear();"left"===a?c-=1:"up"===a?c-=5:"right"===a?c+=1:"down"===a?c+=5:"pageup"===a||"pagedown"===a?c+=("pageup"===a?-1:1)*d.step.years:"home"===a?c=e(d.activeDate.getFullYear()):"end"===a&&(c=e(d.activeDate.getFullYear())+f-1),d.activeDate.setFullYear(c)},d.refreshView()}}}]).constant("datepickerPopupConfig",{datepickerPopup:"yyyy-MM-dd",currentText:"Today",clearText:"Clear",closeText:"Done",closeOnDateSelection:!0,appendToBody:!1,showButtonBar:!0}).directive("datepickerPopup",["$compile","$parse","$document","$position","dateFilter","dateParser","datepickerPopupConfig",function(a,b,c,d,e,f,g){return{restrict:"EA",require:"ngModel",scope:{isOpen:"=?",currentText:"@",clearText:"@",closeText:"@",dateDisabled:"&"},link:function(h,i,j,k){function l(a){return a.replace(/([A-Z])/g,function(a){return"-"+a.toLowerCase()})}function m(a){if(a){if(angular.isDate(a)&&!isNaN(a))return k.$setValidity("date",!0),a;if(angular.isString(a)){var b=f.parse(a,n)||new Date(a);return isNaN(b)?void k.$setValidity("date",!1):(k.$setValidity("date",!0),b)}return void k.$setValidity("date",!1)}return k.$setValidity("date",!0),null}var n,o=angular.isDefined(j.closeOnDateSelection)?h.$parent.$eval(j.closeOnDateSelection):g.closeOnDateSelection,p=angular.isDefined(j.datepickerAppendToBody)?h.$parent.$eval(j.datepickerAppendToBody):g.appendToBody;h.showButtonBar=angular.isDefined(j.showButtonBar)?h.$parent.$eval(j.showButtonBar):g.showButtonBar,h.getText=function(a){return h[a+"Text"]||g[a+"Text"]},j.$observe("datepickerPopup",function(a){n=a||g.datepickerPopup,k.$render()});var q=angular.element("<div datepicker-popup-wrap><div datepicker></div></div>");q.attr({"ng-model":"date","ng-change":"dateSelection()"});var r=angular.element(q.children()[0]);j.datepickerOptions&&angular.forEach(h.$parent.$eval(j.datepickerOptions),function(a,b){r.attr(l(b),a)}),h.watchData={},angular.forEach(["minDate","maxDate","datepickerMode"],function(a){if(j[a]){var c=b(j[a]);if(h.$parent.$watch(c,function(b){h.watchData[a]=b}),r.attr(l(a),"watchData."+a),"datepickerMode"===a){var d=c.assign;h.$watch("watchData."+a,function(a,b){a!==b&&d(h.$parent,a)})}}}),j.dateDisabled&&r.attr("date-disabled","dateDisabled({ date: date, mode: mode })"),k.$parsers.unshift(m),h.dateSelection=function(a){angular.isDefined(a)&&(h.date=a),k.$setViewValue(h.date),k.$render(),o&&(h.isOpen=!1,i[0].focus())},i.bind("input change keyup",function(){h.$apply(function(){h.date=k.$modelValue})}),k.$render=function(){var a=k.$viewValue?e(k.$viewValue,n):"";i.val(a),h.date=m(k.$modelValue)};var s=function(a){h.isOpen&&a.target!==i[0]&&h.$apply(function(){h.isOpen=!1})},t=function(a,b){h.keydown(a)};i.bind("keydown",t),h.keydown=function(a){27===a.which?(a.preventDefault(),a.stopPropagation(),h.close()):40!==a.which||h.isOpen||(h.isOpen=!0)},h.$watch("isOpen",function(a){a?(h.$broadcast("datepicker.focus"),h.position=p?d.offset(i):d.position(i),h.position.top=h.position.top+i.prop("offsetHeight"),c.bind("click",s)):c.unbind("click",s)}),h.select=function(a){if("today"===a){var b=new Date;angular.isDate(k.$modelValue)?(a=new Date(k.$modelValue),a.setFullYear(b.getFullYear(),b.getMonth(),b.getDate())):a=new Date(b.setHours(0,0,0,0))}h.dateSelection(a)},h.close=function(){h.isOpen=!1,i[0].focus()};var u=a(q)(h);q.remove(),p?c.find("body").append(u):i.after(u),h.$on("$destroy",function(){u.remove(),i.unbind("keydown",t),c.unbind("click",s)})}}}]).directive("datepickerPopupWrap",function(){return{restrict:"EA",replace:!0,transclude:!0,templateUrl:"template/datepicker/popup.html",link:function(a,b,c){b.bind("click",function(a){a.preventDefault(),a.stopPropagation()})}}}),angular.module("ui.bootstrap.dropdown",[]).constant("dropdownConfig",{openClass:"open"}).service("dropdownService",["$document",function(a){var b=null;this.open=function(e){b||(a.bind("click",c),a.bind("keydown",d)),b&&b!==e&&(b.isOpen=!1),b=e},this.close=function(e){b===e&&(b=null,a.unbind("click",c),a.unbind("keydown",d))};var c=function(a){if(b){var c=b.getToggleElement();a&&c&&c[0].contains(a.target)||b.$apply(function(){b.isOpen=!1})}},d=function(a){27===a.which&&(b.focusToggleElement(),c())}}]).controller("DropdownController",["$scope","$attrs","$parse","dropdownConfig","dropdownService","$animate",function(a,b,c,d,e,f){var g,h=this,i=a.$new(),j=d.openClass,k=angular.noop,l=b.onToggle?c(b.onToggle):angular.noop;this.init=function(d){h.$element=d,b.isOpen&&(g=c(b.isOpen),k=g.assign,a.$watch(g,function(a){i.isOpen=!!a}))},this.toggle=function(a){return i.isOpen=arguments.length?!!a:!i.isOpen},this.isOpen=function(){return i.isOpen},i.getToggleElement=function(){return h.toggleElement},i.focusToggleElement=function(){h.toggleElement&&h.toggleElement[0].focus()},i.$watch("isOpen",function(b,c){f[b?"addClass":"removeClass"](h.$element,j),b?(i.focusToggleElement(),e.open(i)):e.close(i),k(a,b),angular.isDefined(b)&&b!==c&&l(a,{open:!!b})}),a.$on("$locationChangeSuccess",function(){i.isOpen=!1}),a.$on("$destroy",function(){i.$destroy()})}]).directive("dropdown",function(){return{controller:"DropdownController",link:function(a,b,c,d){d.init(b)}}}).directive("dropdownToggle",function(){return{require:"?^dropdown",link:function(a,b,c,d){if(d){d.toggleElement=b;var e=function(e){e.preventDefault(),b.hasClass("disabled")||c.disabled||a.$apply(function(){d.toggle()})};b.bind("click",e),b.attr({"aria-haspopup":!0,"aria-expanded":!1}),a.$watch(d.isOpen,function(a){b.attr("aria-expanded",!!a)}),a.$on("$destroy",function(){b.unbind("click",e)})}}}}),angular.module("ui.bootstrap.modal",["ui.bootstrap.transition"]).factory("$$stackedMap",function(){return{createNew:function(){var a=[];return{add:function(b,c){a.push({key:b,value:c})},get:function(b){for(var c=0;c<a.length;c++)if(b==a[c].key)return a[c]},keys:function(){for(var b=[],c=0;c<a.length;c++)b.push(a[c].key);return b},top:function(){return a[a.length-1]},remove:function(b){for(var c=-1,d=0;d<a.length;d++)if(b==a[d].key){c=d;break}return a.splice(c,1)[0]},removeTop:function(){return a.splice(a.length-1,1)[0]},length:function(){return a.length}}}}}).directive("modalBackdrop",["$timeout",function(a){return{restrict:"EA",replace:!0,templateUrl:"template/modal/backdrop.html",link:function(b,c,d){b.backdropClass=d.backdropClass||"",b.animate=!1,a(function(){b.animate=!0})}}}]).directive("modalWindow",["$modalStack","$timeout",function(a,b){return{restrict:"EA",scope:{index:"@",animate:"="},replace:!0,transclude:!0,templateUrl:function(a,b){return b.templateUrl||"template/modal/window.html"},link:function(c,d,e){d.addClass(e.windowClass||""),c.size=e.size,b(function(){c.animate=!0,d[0].querySelectorAll("[autofocus]").length||d[0].focus()}),c.close=function(b){var c=a.getTop();c&&c.value.backdrop&&"static"!=c.value.backdrop&&b.target===b.currentTarget&&(b.preventDefault(),b.stopPropagation(),a.dismiss(c.key,"backdrop click"))}}}}]).directive("modalTransclude",function(){return{link:function(a,b,c,d,e){e(a.$parent,function(a){b.empty(),b.append(a)})}}}).factory("$modalStack",["$transition","$timeout","$document","$compile","$rootScope","$$stackedMap",function(a,b,c,d,e,f){function g(){for(var a=-1,b=n.keys(),c=0;c<b.length;c++)n.get(b[c]).value.backdrop&&(a=c);return a}function h(a){var b=c.find("body").eq(0),d=n.get(a).value;n.remove(a),j(d.modalDomEl,d.modalScope,300,function(){d.modalScope.$destroy(),b.toggleClass(m,n.length()>0),i()})}function i(){if(k&&g()==-1){var a=l;j(k,l,150,function(){a.$destroy(),a=null}),k=void 0,l=void 0}}function j(c,d,e,f){function g(){g.done||(g.done=!0,c.remove(),f&&f())}d.animate=!1;var h=a.transitionEndEventName;if(h){var i=b(g,e);c.bind(h,function(){b.cancel(i),g(),d.$apply()})}else b(g)}var k,l,m="modal-open",n=f.createNew(),o={};return e.$watch(g,function(a){l&&(l.index=a)}),c.bind("keydown",function(a){var b;27===a.which&&(b=n.top(),b&&b.value.keyboard&&(a.preventDefault(),e.$apply(function(){o.dismiss(b.key,"escape key press")})))}),o.open=function(a,b){n.add(a,{deferred:b.deferred,modalScope:b.scope,backdrop:b.backdrop,keyboard:b.keyboard});var f=c.find("body").eq(0),h=g();if(h>=0&&!k){l=e.$new(!0),l.index=h;var i=angular.element("<div modal-backdrop></div>");i.attr("backdrop-class",b.backdropClass),k=d(i)(l),f.append(k)}var j=angular.element("<div modal-window></div>");j.attr({"template-url":b.windowTemplateUrl,"window-class":b.windowClass,size:b.size,index:n.length()-1,animate:"animate"}).html(b.content);var o=d(j)(b.scope);n.top().value.modalDomEl=o,f.append(o),f.addClass(m)},o.close=function(a,b){var c=n.get(a);c&&(c.value.deferred.resolve(b),h(a))},o.dismiss=function(a,b){var c=n.get(a);c&&(c.value.deferred.reject(b),h(a))},o.dismissAll=function(a){for(var b=this.getTop();b;)this.dismiss(b.key,a),b=this.getTop()},o.getTop=function(){return n.top()},o}]).provider("$modal",function(){var a={options:{backdrop:!0,keyboard:!0},$get:["$injector","$rootScope","$q","$http","$templateCache","$controller","$modalStack",function(b,c,d,e,f,g,h){function i(a){return a.template?d.when(a.template):e.get(angular.isFunction(a.templateUrl)?a.templateUrl():a.templateUrl,{cache:f}).then(function(a){return a.data})}function j(a){var c=[];return angular.forEach(a,function(a){(angular.isFunction(a)||angular.isArray(a))&&c.push(d.when(b.invoke(a)))}),c}var k={};return k.open=function(b){var e=d.defer(),f=d.defer(),k={result:e.promise,opened:f.promise,close:function(a){h.close(k,a)},dismiss:function(a){h.dismiss(k,a)}};if(b=angular.extend({},a.options,b),b.resolve=b.resolve||{},!b.template&&!b.templateUrl)throw new Error("One of template or templateUrl options is required.");var l=d.all([i(b)].concat(j(b.resolve)));return l.then(function(a){var d=(b.scope||c).$new();d.$close=k.close,d.$dismiss=k.dismiss;var f,i={},j=1;b.controller&&(i.$scope=d,i.$modalInstance=k,angular.forEach(b.resolve,function(b,c){i[c]=a[j++]}),f=g(b.controller,i),b.controllerAs&&(d[b.controllerAs]=f)),h.open(k,{scope:d,deferred:e,content:a[0],backdrop:b.backdrop,keyboard:b.keyboard,backdropClass:b.backdropClass,windowClass:b.windowClass,windowTemplateUrl:b.windowTemplateUrl,size:b.size})},function(a){e.reject(a)}),l.then(function(){f.resolve(!0)},function(){f.reject(!1)}),k},k}]};return a}),angular.module("ui.bootstrap.pagination",[]).controller("PaginationController",["$scope","$attrs","$parse",function(a,b,c){var d=this,e={$setViewValue:angular.noop},f=b.numPages?c(b.numPages).assign:angular.noop;this.init=function(f,g){e=f,this.config=g,e.$render=function(){d.render()},b.itemsPerPage?a.$parent.$watch(c(b.itemsPerPage),function(b){d.itemsPerPage=parseInt(b,10),a.totalPages=d.calculateTotalPages()}):this.itemsPerPage=g.itemsPerPage},this.calculateTotalPages=function(){var b=this.itemsPerPage<1?1:Math.ceil(a.totalItems/this.itemsPerPage);return Math.max(b||0,1)},this.render=function(){a.page=parseInt(e.$viewValue,10)||1},a.selectPage=function(b){a.page!==b&&b>0&&b<=a.totalPages&&(e.$setViewValue(b),e.$render())},a.getText=function(b){return a[b+"Text"]||d.config[b+"Text"]},a.noPrevious=function(){return 1===a.page},a.noNext=function(){return a.page===a.totalPages},a.$watch("totalItems",function(){a.totalPages=d.calculateTotalPages()}),a.$watch("totalPages",function(b){f(a.$parent,b),a.page>b?a.selectPage(b):e.$render()})}]).constant("paginationConfig",{itemsPerPage:10,boundaryLinks:!1,directionLinks:!0,firstText:"First",previousText:"Previous",nextText:"Next",lastText:"Last",rotate:!0}).directive("pagination",["$parse","paginationConfig",function(a,b){return{restrict:"EA",scope:{totalItems:"=",firstText:"@",previousText:"@",nextText:"@",lastText:"@"},require:["pagination","?ngModel"],controller:"PaginationController",templateUrl:"template/pagination/pagination.html",replace:!0,link:function(c,d,e,f){function g(a,b,c){return{number:a,text:b,active:c}}function h(a,b){var c=[],d=1,e=b,f=angular.isDefined(k)&&k<b;f&&(l?(d=Math.max(a-Math.floor(k/2),1),e=d+k-1,e>b&&(e=b,d=e-k+1)):(d=(Math.ceil(a/k)-1)*k+1,e=Math.min(d+k-1,b)));for(var h=d;h<=e;h++){var i=g(h,h,h===a);c.push(i)}if(f&&!l){if(d>1){var j=g(d-1,"...",!1);c.unshift(j)}if(e<b){var m=g(e+1,"...",!1);c.push(m)}}return c}var i=f[0],j=f[1];if(j){var k=angular.isDefined(e.maxSize)?c.$parent.$eval(e.maxSize):b.maxSize,l=angular.isDefined(e.rotate)?c.$parent.$eval(e.rotate):b.rotate;c.boundaryLinks=angular.isDefined(e.boundaryLinks)?c.$parent.$eval(e.boundaryLinks):b.boundaryLinks,c.directionLinks=angular.isDefined(e.directionLinks)?c.$parent.$eval(e.directionLinks):b.directionLinks,i.init(j,b),e.maxSize&&c.$parent.$watch(a(e.maxSize),function(a){k=parseInt(a,10),i.render()});var m=i.render;i.render=function(){m(),c.page>0&&c.page<=c.totalPages&&(c.pages=h(c.page,c.totalPages))}}}}}]).constant("pagerConfig",{itemsPerPage:10,previousText:"« Previous",nextText:"Next »",align:!0}).directive("pager",["pagerConfig",function(a){return{restrict:"EA",scope:{totalItems:"=",previousText:"@",nextText:"@"},require:["pager","?ngModel"],controller:"PaginationController",templateUrl:"template/pagination/pager.html",replace:!0,link:function(b,c,d,e){var f=e[0],g=e[1];g&&(b.align=angular.isDefined(d.align)?b.$parent.$eval(d.align):a.align,f.init(g,a))}}}]),angular.module("ui.bootstrap.tooltip",["ui.bootstrap.position","ui.bootstrap.bindHtml"]).provider("$tooltip",function(){function a(a){var b=/[A-Z]/g,c="-";return a.replace(b,function(a,b){return(b?c:"")+a.toLowerCase()})}var b={placement:"top",animation:!0,popupDelay:0},c={mouseenter:"mouseleave",click:"click",focus:"blur"},d={};this.options=function(a){angular.extend(d,a)},this.setTriggers=function(a){angular.extend(c,a)},this.$get=["$window","$compile","$timeout","$document","$position","$interpolate",function(e,f,g,h,i,j){return function(e,k,l){function m(a){var b=a||n.trigger||l,d=c[b]||b;return{show:b,hide:d}}var n=angular.extend({},b,d),o=a(e),p=j.startSymbol(),q=j.endSymbol(),r="<div "+o+'-popup title="'+p+"title"+q+'" content="'+p+"content"+q+'" placement="'+p+"placement"+q+'" animation="animation" is-open="isOpen"></div>';return{restrict:"EA",compile:function(a,b){var c=f(r);return function(a,b,d){function f(){D.isOpen?l():j()}function j(){C&&!a.$eval(d[k+"Enable"])||(s(),D.popupDelay?z||(z=g(o,D.popupDelay,!1),z.then(function(a){a()})):o()())}function l(){a.$apply(function(){p()})}function o(){return z=null,y&&(g.cancel(y),y=null),D.content?(q(),w.css({top:0,left:0,display:"block"}),D.$digest(),E(),D.isOpen=!0,D.$digest(),E):angular.noop}function p(){D.isOpen=!1,g.cancel(z),z=null,D.animation?y||(y=g(r,500)):r()}function q(){w&&r(),x=D.$new(),w=c(x,function(a){A?h.find("body").append(a):b.after(a)})}function r(){y=null,w&&(w.remove(),w=null),x&&(x.$destroy(),x=null)}function s(){t(),u()}function t(){var a=d[k+"Placement"];D.placement=angular.isDefined(a)?a:n.placement}function u(){var a=d[k+"PopupDelay"],b=parseInt(a,10);D.popupDelay=isNaN(b)?n.popupDelay:b}function v(){var a=d[k+"Trigger"];F(),B=m(a),B.show===B.hide?b.bind(B.show,f):(b.bind(B.show,j),b.bind(B.hide,l))}var w,x,y,z,A=!!angular.isDefined(n.appendToBody)&&n.appendToBody,B=m(void 0),C=angular.isDefined(d[k+"Enable"]),D=a.$new(!0),E=function(){var a=i.positionElements(b,w,D.placement,A);a.top+="px",a.left+="px",w.css(a)};D.isOpen=!1,d.$observe(e,function(a){D.content=a,!a&&D.isOpen&&p()}),d.$observe(k+"Title",function(a){D.title=a});var F=function(){b.unbind(B.show,j),b.unbind(B.hide,l)};v();var G=a.$eval(d[k+"Animation"]);D.animation=angular.isDefined(G)?!!G:n.animation;var H=a.$eval(d[k+"AppendToBody"]);A=angular.isDefined(H)?H:A,A&&a.$on("$locationChangeSuccess",function(){D.isOpen&&p()}),a.$on("$destroy",function(){g.cancel(y),g.cancel(z),F(),r(),D=null})}}}}}]}).directive("tooltipPopup",function(){return{restrict:"EA",replace:!0,scope:{content:"@",placement:"@",animation:"&",isOpen:"&"},templateUrl:"template/tooltip/tooltip-popup.html"}}).directive("tooltip",["$tooltip",function(a){return a("tooltip","tooltip","mouseenter")}]).directive("tooltipHtmlUnsafePopup",function(){return{restrict:"EA",replace:!0,scope:{content:"@",placement:"@",animation:"&",isOpen:"&"},templateUrl:"template/tooltip/tooltip-html-unsafe-popup.html"}}).directive("tooltipHtmlUnsafe",["$tooltip",function(a){return a("tooltipHtmlUnsafe","tooltip","mouseenter")}]),angular.module("ui.bootstrap.popover",["ui.bootstrap.tooltip"]).directive("popoverPopup",function(){return{restrict:"EA",replace:!0,scope:{title:"@",content:"@",placement:"@",animation:"&",isOpen:"&"},templateUrl:"template/popover/popover.html"}}).directive("popover",["$tooltip",function(a){return a("popover","popover","click")}]),angular.module("ui.bootstrap.progressbar",[]).constant("progressConfig",{animate:!0,max:100}).controller("ProgressController",["$scope","$attrs","progressConfig",function(a,b,c){var d=this,e=angular.isDefined(b.animate)?a.$parent.$eval(b.animate):c.animate;this.bars=[],a.max=angular.isDefined(b.max)?a.$parent.$eval(b.max):c.max,this.addBar=function(b,c){e||c.css({transition:"none"}),this.bars.push(b),b.$watch("value",function(c){b.percent=+(100*c/a.max).toFixed(2)}),b.$on("$destroy",function(){c=null,d.removeBar(b)})},this.removeBar=function(a){this.bars.splice(this.bars.indexOf(a),1)}}]).directive("progress",function(){return{restrict:"EA",replace:!0,transclude:!0,controller:"ProgressController",require:"progress",scope:{},templateUrl:"template/progressbar/progress.html"}}).directive("bar",function(){return{restrict:"EA",replace:!0,transclude:!0,require:"^progress",scope:{value:"=",type:"@"},templateUrl:"template/progressbar/bar.html",link:function(a,b,c,d){d.addBar(a,b)}}}).directive("progressbar",function(){return{restrict:"EA",replace:!0,transclude:!0,controller:"ProgressController",scope:{value:"=",type:"@"},templateUrl:"template/progressbar/progressbar.html",link:function(a,b,c,d){d.addBar(a,angular.element(b.children()[0]))}}}),angular.module("ui.bootstrap.rating",[]).constant("ratingConfig",{max:5,stateOn:null,stateOff:null}).controller("RatingController",["$scope","$attrs","ratingConfig",function(a,b,c){var d={$setViewValue:angular.noop};this.init=function(e){d=e,d.$render=this.render,this.stateOn=angular.isDefined(b.stateOn)?a.$parent.$eval(b.stateOn):c.stateOn,this.stateOff=angular.isDefined(b.stateOff)?a.$parent.$eval(b.stateOff):c.stateOff;var f=angular.isDefined(b.ratingStates)?a.$parent.$eval(b.ratingStates):new Array(angular.isDefined(b.max)?a.$parent.$eval(b.max):c.max);a.range=this.buildTemplateObjects(f)},this.buildTemplateObjects=function(a){for(var b=0,c=a.length;b<c;b++)a[b]=angular.extend({index:b},{stateOn:this.stateOn,stateOff:this.stateOff},a[b]);return a},a.rate=function(b){!a.readonly&&b>=0&&b<=a.range.length&&(d.$setViewValue(b),d.$render())},a.enter=function(b){a.readonly||(a.value=b),a.onHover({value:b})},a.reset=function(){a.value=d.$viewValue,a.onLeave()},a.onKeydown=function(b){/(37|38|39|40)/.test(b.which)&&(b.preventDefault(),b.stopPropagation(),a.rate(a.value+(38===b.which||39===b.which?1:-1)))},this.render=function(){a.value=d.$viewValue}}]).directive("rating",function(){return{restrict:"EA",require:["rating","ngModel"],scope:{readonly:"=?",onHover:"&",onLeave:"&"},controller:"RatingController",templateUrl:"template/rating/rating.html",replace:!0,link:function(a,b,c,d){var e=d[0],f=d[1];f&&e.init(f)}}}),angular.module("ui.bootstrap.tabs",[]).controller("TabsetController",["$scope",function(a){var b=this,c=b.tabs=a.tabs=[];b.select=function(a){angular.forEach(c,function(b){b.active&&b!==a&&(b.active=!1,b.onDeselect())}),a.active=!0,a.onSelect()},b.addTab=function(a){c.push(a),1===c.length?a.active=!0:a.active&&b.select(a)},b.removeTab=function(a){var e=c.indexOf(a);if(a.active&&c.length>1&&!d){var f=e==c.length-1?e-1:e+1;b.select(c[f])}c.splice(e,1)};var d;a.$on("$destroy",function(){d=!0})}]).directive("tabset",function(){return{restrict:"EA",transclude:!0,replace:!0,scope:{type:"@"},controller:"TabsetController",templateUrl:"template/tabs/tabset.html",link:function(a,b,c){a.vertical=!!angular.isDefined(c.vertical)&&a.$parent.$eval(c.vertical),a.justified=!!angular.isDefined(c.justified)&&a.$parent.$eval(c.justified)}}}).directive("tab",["$parse",function(a){return{require:"^tabset",restrict:"EA",replace:!0,templateUrl:"template/tabs/tab.html",transclude:!0,scope:{active:"=?",heading:"@",onSelect:"&select",onDeselect:"&deselect"},controller:function(){},compile:function(b,c,d){return function(b,c,e,f){b.$watch("active",function(a){a&&f.select(b)}),b.disabled=!1,e.disabled&&b.$parent.$watch(a(e.disabled),function(a){b.disabled=!!a}),b.select=function(){b.disabled||(b.active=!0)},f.addTab(b),b.$on("$destroy",function(){f.removeTab(b)}),b.$transcludeFn=d}}}}]).directive("tabHeadingTransclude",[function(){return{restrict:"A",require:"^tab",link:function(a,b,c,d){a.$watch("headingElement",function(a){a&&(b.html(""),b.append(a))})}}}]).directive("tabContentTransclude",function(){function a(a){return a.tagName&&(a.hasAttribute("tab-heading")||a.hasAttribute("data-tab-heading")||"tab-heading"===a.tagName.toLowerCase()||"data-tab-heading"===a.tagName.toLowerCase())}return{restrict:"A",require:"^tabset",link:function(b,c,d){var e=b.$eval(d.tabContentTransclude);e.$transcludeFn(e.$parent,function(b){angular.forEach(b,function(b){a(b)?e.headingElement=b:c.append(b)})})}}}),angular.module("ui.bootstrap.timepicker",[]).constant("timepickerConfig",{hourStep:1,minuteStep:1,showMeridian:!0,meridians:null,readonlyInput:!1,mousewheel:!0}).controller("TimepickerController",["$scope","$attrs","$parse","$log","$locale","timepickerConfig",function(a,b,c,d,e,f){function g(){var b=parseInt(a.hours,10),c=a.showMeridian?b>0&&b<13:b>=0&&b<24;if(c)return a.showMeridian&&(12===b&&(b=0),a.meridian===p[1]&&(b+=12)),b}function h(){var b=parseInt(a.minutes,10);return b>=0&&b<60?b:void 0}function i(a){return angular.isDefined(a)&&a.toString().length<2?"0"+a:a}function j(a){k(),o.$setViewValue(new Date(n)),l(a)}function k(){o.$setValidity("time",!0),a.invalidHours=!1,a.invalidMinutes=!1}function l(b){var c=n.getHours(),d=n.getMinutes();a.showMeridian&&(c=0===c||12===c?12:c%12),a.hours="h"===b?c:i(c),a.minutes="m"===b?d:i(d),a.meridian=n.getHours()<12?p[0]:p[1]}function m(a){var b=new Date(n.getTime()+6e4*a);n.setHours(b.getHours(),b.getMinutes()),j()}var n=new Date,o={$setViewValue:angular.noop},p=angular.isDefined(b.meridians)?a.$parent.$eval(b.meridians):f.meridians||e.DATETIME_FORMATS.AMPMS;this.init=function(c,d){o=c,o.$render=this.render;var e=d.eq(0),g=d.eq(1),h=angular.isDefined(b.mousewheel)?a.$parent.$eval(b.mousewheel):f.mousewheel;h&&this.setupMousewheelEvents(e,g),a.readonlyInput=angular.isDefined(b.readonlyInput)?a.$parent.$eval(b.readonlyInput):f.readonlyInput,this.setupInputEvents(e,g)};var q=f.hourStep;b.hourStep&&a.$parent.$watch(c(b.hourStep),function(a){q=parseInt(a,10)});var r=f.minuteStep;b.minuteStep&&a.$parent.$watch(c(b.minuteStep),function(a){r=parseInt(a,10)}),a.showMeridian=f.showMeridian,b.showMeridian&&a.$parent.$watch(c(b.showMeridian),function(b){if(a.showMeridian=!!b,o.$error.time){var c=g(),d=h();angular.isDefined(c)&&angular.isDefined(d)&&(n.setHours(c),j())}else l()}),this.setupMousewheelEvents=function(b,c){var d=function(a){a.originalEvent&&(a=a.originalEvent);var b=a.wheelDelta?a.wheelDelta:-a.deltaY;return a.detail||b>0};b.bind("mousewheel wheel",function(b){a.$apply(d(b)?a.incrementHours():a.decrementHours()),b.preventDefault()}),c.bind("mousewheel wheel",function(b){a.$apply(d(b)?a.incrementMinutes():a.decrementMinutes()),b.preventDefault()})},this.setupInputEvents=function(b,c){if(a.readonlyInput)return a.updateHours=angular.noop,void(a.updateMinutes=angular.noop);var d=function(b,c){o.$setViewValue(null),o.$setValidity("time",!1),angular.isDefined(b)&&(a.invalidHours=b),angular.isDefined(c)&&(a.invalidMinutes=c)};a.updateHours=function(){var a=g();angular.isDefined(a)?(n.setHours(a),j("h")):d(!0)},b.bind("blur",function(b){!a.invalidHours&&a.hours<10&&a.$apply(function(){a.hours=i(a.hours)})}),a.updateMinutes=function(){var a=h();angular.isDefined(a)?(n.setMinutes(a),j("m")):d(void 0,!0)},c.bind("blur",function(b){!a.invalidMinutes&&a.minutes<10&&a.$apply(function(){a.minutes=i(a.minutes)})})},this.render=function(){var a=o.$modelValue?new Date(o.$modelValue):null;isNaN(a)?(o.$setValidity("time",!1),d.error('Timepicker directive: "ng-model" value must be a Date object, a number of milliseconds since 01.01.1970 or a string representing an RFC2822 or ISO 8601 date.')):(a&&(n=a),k(),l())},a.incrementHours=function(){m(60*q)},a.decrementHours=function(){m(60*-q)},a.incrementMinutes=function(){m(r)},a.decrementMinutes=function(){m(-r)},a.toggleMeridian=function(){m(720*(n.getHours()<12?1:-1))}}]).directive("timepicker",function(){return{restrict:"EA",require:["timepicker","?^ngModel"],controller:"TimepickerController",replace:!0,scope:{},templateUrl:"template/timepicker/timepicker.html",link:function(a,b,c,d){var e=d[0],f=d[1];f&&e.init(f,b.find("input"))}}}),angular.module("ui.bootstrap.typeahead",["ui.bootstrap.position","ui.bootstrap.bindHtml"]).factory("typeaheadParser",["$parse",function(a){var b=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?\s+for\s+(?:([\$\w][\$\w\d]*))\s+in\s+([\s\S]+?)$/;return{parse:function(c){var d=c.match(b);if(!d)throw new Error('Expected typeahead specification in form of "_modelValue_ (as _label_)? for _item_ in _collection_" but got "'+c+'".');return{itemName:d[3],source:a(d[4]),viewMapper:a(d[2]||d[1]),modelMapper:a(d[1])}}}}]).directive("typeahead",["$compile","$parse","$q","$timeout","$document","$position","typeaheadParser",function(a,b,c,d,e,f,g){var h=[9,13,27,38,40];return{require:"ngModel",link:function(i,j,k,l){var m,n=i.$eval(k.typeaheadMinLength)||1,o=i.$eval(k.typeaheadWaitMs)||0,p=i.$eval(k.typeaheadEditable)!==!1,q=b(k.typeaheadLoading).assign||angular.noop,r=b(k.typeaheadOnSelect),s=k.typeaheadInputFormatter?b(k.typeaheadInputFormatter):void 0,t=!!k.typeaheadAppendToBody&&i.$eval(k.typeaheadAppendToBody),u=i.$eval(k.typeaheadFocusFirst)!==!1,v=b(k.ngModel).assign,w=g.parse(k.typeahead),x=i.$new();i.$on("$destroy",function(){x.$destroy()});var y="typeahead-"+x.$id+"-"+Math.floor(1e4*Math.random());j.attr({"aria-autocomplete":"list","aria-expanded":!1,"aria-owns":y});var z=angular.element("<div typeahead-popup></div>");z.attr({id:y,matches:"matches",active:"activeIdx",select:"select(activeIdx)",query:"query",position:"position"}),angular.isDefined(k.typeaheadTemplateUrl)&&z.attr("template-url",k.typeaheadTemplateUrl);var A=function(){x.matches=[],x.activeIdx=-1,j.attr("aria-expanded",!1)},B=function(a){return y+"-option-"+a};x.$watch("activeIdx",function(a){a<0?j.removeAttr("aria-activedescendant"):j.attr("aria-activedescendant",B(a))});var C=function(a){var b={$viewValue:a};q(i,!0),c.when(w.source(i,b)).then(function(c){var d=a===l.$viewValue;if(d&&m)if(c.length>0){x.activeIdx=u?0:-1,x.matches.length=0;for(var e=0;e<c.length;e++)b[w.itemName]=c[e],x.matches.push({id:B(e),label:w.viewMapper(x,b),model:c[e]});x.query=a,x.position=t?f.offset(j):f.position(j),x.position.top=x.position.top+j.prop("offsetHeight"),j.attr("aria-expanded",!0)}else A();d&&q(i,!1)},function(){A(),q(i,!1)})};A(),x.query=void 0;var D,E=function(a){D=d(function(){C(a)},o)},F=function(){D&&d.cancel(D)};l.$parsers.unshift(function(a){return m=!0,a&&a.length>=n?o>0?(F(),E(a)):C(a):(q(i,!1),F(),A()),p?a:a?void l.$setValidity("editable",!1):(l.$setValidity("editable",!0),a)}),l.$formatters.push(function(a){var b,c,d={};return s?(d.$model=a,s(i,d)):(d[w.itemName]=a,b=w.viewMapper(i,d),d[w.itemName]=void 0,c=w.viewMapper(i,d),b!==c?b:a)}),x.select=function(a){var b,c,e={};e[w.itemName]=c=x.matches[a].model,b=w.modelMapper(i,e),v(i,b),l.$setValidity("editable",!0),r(i,{$item:c,$model:b,$label:w.viewMapper(i,e)}),A(),d(function(){j[0].focus()},0,!1)},j.bind("keydown",function(a){0!==x.matches.length&&h.indexOf(a.which)!==-1&&(x.activeIdx!=-1||13!==a.which&&9!==a.which)&&(a.preventDefault(),40===a.which?(x.activeIdx=(x.activeIdx+1)%x.matches.length,x.$digest()):38===a.which?(x.activeIdx=(x.activeIdx>0?x.activeIdx:x.matches.length)-1,x.$digest()):13===a.which||9===a.which?x.$apply(function(){x.select(x.activeIdx)}):27===a.which&&(a.stopPropagation(),A(),x.$digest()))}),j.bind("blur",function(a){m=!1});var G=function(a){j[0]!==a.target&&(A(),x.$digest())};e.bind("click",G),i.$on("$destroy",function(){e.unbind("click",G),t&&H.remove()});var H=a(z)(x);t?e.find("body").append(H):j.after(H)}}}]).directive("typeaheadPopup",function(){return{restrict:"EA",scope:{matches:"=",query:"=",active:"=",position:"=",select:"&"},replace:!0,templateUrl:"template/typeahead/typeahead-popup.html",link:function(a,b,c){a.templateUrl=c.templateUrl,a.isOpen=function(){return a.matches.length>0},a.isActive=function(b){return a.active==b},a.selectActive=function(b){a.active=b},a.selectMatch=function(b){a.select({activeIdx:b})}}}}).directive("typeaheadMatch",["$http","$templateCache","$compile","$parse",function(a,b,c,d){return{restrict:"EA",scope:{index:"=",match:"=",query:"="},link:function(e,f,g){var h=d(g.templateUrl)(e.$parent)||"template/typeahead/typeahead-match.html";a.get(h,{cache:b}).success(function(a){f.replaceWith(c(a.trim())(e))})}}}]).filter("typeaheadHighlight",function(){function a(a){return a.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")}return function(b,c){return c?(""+b).replace(new RegExp(a(c),"gi"),"<strong>$&</strong>"):b}}),angular.module("template/accordion/accordion-group.html",[]).run(["$templateCache",function(a){a.put("template/accordion/accordion-group.html",'<div class="panel panel-default">\n  <div class="panel-heading">\n    <h4 class="panel-title">\n      <a href class="accordion-toggle" ng-click="toggleOpen()" accordion-transclude="heading"><span ng-class="{\'text-muted\': isDisabled}">{{heading}}</span></a>\n    </h4>\n  </div>\n  <div class="panel-collapse" collapse="!isOpen">\n\t  <div class="panel-body" ng-transclude></div>\n  </div>\n</div>\n')}]),angular.module("template/accordion/accordion.html",[]).run(["$templateCache",function(a){a.put("template/accordion/accordion.html",'<div class="panel-group" ng-transclude></div>')}]),angular.module("template/alert/alert.html",[]).run(["$templateCache",function(a){a.put("template/alert/alert.html",'<div class="alert" ng-class="[\'alert-\' + (type || \'warning\'), closeable ? \'alert-dismissable\' : null]" role="alert">\n    <button ng-show="closeable" type="button" class="close" ng-click="close()">\n        <span aria-hidden="true">&times;</span>\n        <span class="sr-only">Close</span>\n    </button>\n    <div ng-transclude></div>\n</div>\n');
}]),angular.module("template/carousel/carousel.html",[]).run(["$templateCache",function(a){a.put("template/carousel/carousel.html",'<div ng-mouseenter="pause()" ng-mouseleave="play()" class="carousel" ng-swipe-right="prev()" ng-swipe-left="next()">\n    <ol class="carousel-indicators" ng-show="slides.length > 1">\n        <li ng-repeat="slide in slides track by $index" ng-class="{active: isActive(slide)}" ng-click="select(slide)"></li>\n    </ol>\n    <div class="carousel-inner" ng-transclude></div>\n    <a class="left carousel-control" ng-click="prev()" ng-show="slides.length > 1"><span class="glyphicon glyphicon-chevron-left"></span></a>\n    <a class="right carousel-control" ng-click="next()" ng-show="slides.length > 1"><span class="glyphicon glyphicon-chevron-right"></span></a>\n</div>\n')}]),angular.module("template/carousel/slide.html",[]).run(["$templateCache",function(a){a.put("template/carousel/slide.html","<div ng-class=\"{\n    'active': leaving || (active && !entering),\n    'prev': (next || active) && direction=='prev',\n    'next': (next || active) && direction=='next',\n    'right': direction=='prev',\n    'left': direction=='next'\n  }\" class=\"item text-center\" ng-transclude></div>\n")}]),angular.module("template/datepicker/datepicker.html",[]).run(["$templateCache",function(a){a.put("template/datepicker/datepicker.html",'<div ng-switch="datepickerMode" role="application" ng-keydown="keydown($event)">\n  <daypicker ng-switch-when="day" tabindex="0"></daypicker>\n  <monthpicker ng-switch-when="month" tabindex="0"></monthpicker>\n  <yearpicker ng-switch-when="year" tabindex="0"></yearpicker>\n</div>')}]),angular.module("template/datepicker/day.html",[]).run(["$templateCache",function(a){a.put("template/datepicker/day.html",'<table role="grid" aria-labelledby="{{uniqueId}}-title" aria-activedescendant="{{activeDateId}}">\n  <thead>\n    <tr>\n      <th><button type="button" class="btn btn-default btn-sm pull-left" ng-click="move(-1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-left"></i></button></th>\n      <th colspan="{{5 + showWeeks}}"><button id="{{uniqueId}}-title" role="heading" aria-live="assertive" aria-atomic="true" type="button" class="btn btn-default btn-sm" ng-click="toggleMode()" tabindex="-1" style="width:100%;"><strong>{{title}}</strong></button></th>\n      <th><button type="button" class="btn btn-default btn-sm pull-right" ng-click="move(1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-right"></i></button></th>\n    </tr>\n    <tr>\n      <th ng-show="showWeeks" class="text-center"></th>\n      <th ng-repeat="label in labels track by $index" class="text-center"><small aria-label="{{label.full}}">{{label.abbr}}</small></th>\n    </tr>\n  </thead>\n  <tbody>\n    <tr ng-repeat="row in rows track by $index">\n      <td ng-show="showWeeks" class="text-center h6"><em>{{ weekNumbers[$index] }}</em></td>\n      <td ng-repeat="dt in row track by dt.date" class="text-center" role="gridcell" id="{{dt.uid}}" aria-disabled="{{!!dt.disabled}}">\n        <button type="button" style="width:100%;" class="btn btn-default btn-sm" ng-class="{\'btn-info\': dt.selected, active: isActive(dt)}" ng-click="select(dt.date)" ng-disabled="dt.disabled" tabindex="-1"><span ng-class="{\'text-muted\': dt.secondary, \'text-info\': dt.current}">{{dt.label}}</span></button>\n      </td>\n    </tr>\n  </tbody>\n</table>\n')}]),angular.module("template/datepicker/month.html",[]).run(["$templateCache",function(a){a.put("template/datepicker/month.html",'<table role="grid" aria-labelledby="{{uniqueId}}-title" aria-activedescendant="{{activeDateId}}">\n  <thead>\n    <tr>\n      <th><button type="button" class="btn btn-default btn-sm pull-left" ng-click="move(-1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-left"></i></button></th>\n      <th><button id="{{uniqueId}}-title" role="heading" aria-live="assertive" aria-atomic="true" type="button" class="btn btn-default btn-sm" ng-click="toggleMode()" tabindex="-1" style="width:100%;"><strong>{{title}}</strong></button></th>\n      <th><button type="button" class="btn btn-default btn-sm pull-right" ng-click="move(1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-right"></i></button></th>\n    </tr>\n  </thead>\n  <tbody>\n    <tr ng-repeat="row in rows track by $index">\n      <td ng-repeat="dt in row track by dt.date" class="text-center" role="gridcell" id="{{dt.uid}}" aria-disabled="{{!!dt.disabled}}">\n        <button type="button" style="width:100%;" class="btn btn-default" ng-class="{\'btn-info\': dt.selected, active: isActive(dt)}" ng-click="select(dt.date)" ng-disabled="dt.disabled" tabindex="-1"><span ng-class="{\'text-info\': dt.current}">{{dt.label}}</span></button>\n      </td>\n    </tr>\n  </tbody>\n</table>\n')}]),angular.module("template/datepicker/popup.html",[]).run(["$templateCache",function(a){a.put("template/datepicker/popup.html",'<ul class="dropdown-menu" ng-style="{display: (isOpen && \'block\') || \'none\', top: position.top+\'px\', left: position.left+\'px\'}" ng-keydown="keydown($event)">\n\t<li ng-transclude></li>\n\t<li ng-if="showButtonBar" style="padding:10px 9px 2px">\n\t\t<span class="btn-group pull-left">\n\t\t\t<button type="button" class="btn btn-sm btn-info" ng-click="select(\'today\')">{{ getText(\'current\') }}</button>\n\t\t\t<button type="button" class="btn btn-sm btn-danger" ng-click="select(null)">{{ getText(\'clear\') }}</button>\n\t\t</span>\n\t\t<button type="button" class="btn btn-sm btn-success pull-right" ng-click="close()">{{ getText(\'close\') }}</button>\n\t</li>\n</ul>\n')}]),angular.module("template/datepicker/year.html",[]).run(["$templateCache",function(a){a.put("template/datepicker/year.html",'<table role="grid" aria-labelledby="{{uniqueId}}-title" aria-activedescendant="{{activeDateId}}">\n  <thead>\n    <tr>\n      <th><button type="button" class="btn btn-default btn-sm pull-left" ng-click="move(-1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-left"></i></button></th>\n      <th colspan="3"><button id="{{uniqueId}}-title" role="heading" aria-live="assertive" aria-atomic="true" type="button" class="btn btn-default btn-sm" ng-click="toggleMode()" tabindex="-1" style="width:100%;"><strong>{{title}}</strong></button></th>\n      <th><button type="button" class="btn btn-default btn-sm pull-right" ng-click="move(1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-right"></i></button></th>\n    </tr>\n  </thead>\n  <tbody>\n    <tr ng-repeat="row in rows track by $index">\n      <td ng-repeat="dt in row track by dt.date" class="text-center" role="gridcell" id="{{dt.uid}}" aria-disabled="{{!!dt.disabled}}">\n        <button type="button" style="width:100%;" class="btn btn-default" ng-class="{\'btn-info\': dt.selected, active: isActive(dt)}" ng-click="select(dt.date)" ng-disabled="dt.disabled" tabindex="-1"><span ng-class="{\'text-info\': dt.current}">{{dt.label}}</span></button>\n      </td>\n    </tr>\n  </tbody>\n</table>\n')}]),angular.module("template/modal/backdrop.html",[]).run(["$templateCache",function(a){a.put("template/modal/backdrop.html",'<div class="modal-backdrop fade {{ backdropClass }}"\n     ng-class="{in: animate}"\n     ng-style="{\'z-index\': 1040 + (index && 1 || 0) + index*10}"\n></div>\n')}]),angular.module("template/modal/window.html",[]).run(["$templateCache",function(a){a.put("template/modal/window.html",'<div tabindex="-1" role="dialog" class="modal fade" ng-class="{in: animate}" ng-style="{\'z-index\': 1050 + index*10, display: \'block\'}" ng-click="close($event)">\n    <div class="modal-dialog" ng-class="{\'modal-sm\': size == \'sm\', \'modal-lg\': size == \'lg\'}"><div class="modal-content" modal-transclude></div></div>\n</div>')}]),angular.module("template/pagination/pager.html",[]).run(["$templateCache",function(a){a.put("template/pagination/pager.html",'<ul class="pager">\n  <li ng-class="{disabled: noPrevious(), previous: align}"><a href ng-click="selectPage(page - 1)">{{getText(\'previous\')}}</a></li>\n  <li ng-class="{disabled: noNext(), next: align}"><a href ng-click="selectPage(page + 1)">{{getText(\'next\')}}</a></li>\n</ul>')}]),angular.module("template/pagination/pagination.html",[]).run(["$templateCache",function(a){a.put("template/pagination/pagination.html",'<ul class="pagination">\n  <li ng-if="boundaryLinks" ng-class="{disabled: noPrevious()}"><a href ng-click="selectPage(1)">{{getText(\'first\')}}</a></li>\n  <li ng-if="directionLinks" ng-class="{disabled: noPrevious()}"><a href ng-click="selectPage(page - 1)">{{getText(\'previous\')}}</a></li>\n  <li ng-repeat="page in pages track by $index" ng-class="{active: page.active}"><a href ng-click="selectPage(page.number)">{{page.text}}</a></li>\n  <li ng-if="directionLinks" ng-class="{disabled: noNext()}"><a href ng-click="selectPage(page + 1)">{{getText(\'next\')}}</a></li>\n  <li ng-if="boundaryLinks" ng-class="{disabled: noNext()}"><a href ng-click="selectPage(totalPages)">{{getText(\'last\')}}</a></li>\n</ul>')}]),angular.module("template/tooltip/tooltip-html-unsafe-popup.html",[]).run(["$templateCache",function(a){a.put("template/tooltip/tooltip-html-unsafe-popup.html",'<div class="tooltip {{placement}}" ng-class="{ in: isOpen(), fade: animation() }">\n  <div class="tooltip-arrow"></div>\n  <div class="tooltip-inner" bind-html-unsafe="content"></div>\n</div>\n')}]),angular.module("template/tooltip/tooltip-popup.html",[]).run(["$templateCache",function(a){a.put("template/tooltip/tooltip-popup.html",'<div class="tooltip {{placement}}" ng-class="{ in: isOpen(), fade: animation() }">\n  <div class="tooltip-arrow"></div>\n  <div class="tooltip-inner" ng-bind="content"></div>\n</div>\n')}]),angular.module("template/popover/popover.html",[]).run(["$templateCache",function(a){a.put("template/popover/popover.html",'<div class="popover {{placement}}" ng-class="{ in: isOpen(), fade: animation() }">\n  <div class="arrow"></div>\n\n  <div class="popover-inner">\n      <h3 class="popover-title" ng-bind="title" ng-show="title"></h3>\n      <div class="popover-content" ng-bind="content"></div>\n  </div>\n</div>\n')}]),angular.module("template/progressbar/bar.html",[]).run(["$templateCache",function(a){a.put("template/progressbar/bar.html",'<div class="progress-bar" ng-class="type && \'progress-bar-\' + type" role="progressbar" aria-valuenow="{{value}}" aria-valuemin="0" aria-valuemax="{{max}}" ng-style="{width: percent + \'%\'}" aria-valuetext="{{percent | number:0}}%" ng-transclude></div>')}]),angular.module("template/progressbar/progress.html",[]).run(["$templateCache",function(a){a.put("template/progressbar/progress.html",'<div class="progress" ng-transclude></div>')}]),angular.module("template/progressbar/progressbar.html",[]).run(["$templateCache",function(a){a.put("template/progressbar/progressbar.html",'<div class="progress">\n  <div class="progress-bar" ng-class="type && \'progress-bar-\' + type" role="progressbar" aria-valuenow="{{value}}" aria-valuemin="0" aria-valuemax="{{max}}" ng-style="{width: percent + \'%\'}" aria-valuetext="{{percent | number:0}}%" ng-transclude></div>\n</div>')}]),angular.module("template/rating/rating.html",[]).run(["$templateCache",function(a){a.put("template/rating/rating.html",'<span ng-mouseleave="reset()" ng-keydown="onKeydown($event)" tabindex="0" role="slider" aria-valuemin="0" aria-valuemax="{{range.length}}" aria-valuenow="{{value}}">\n    <i ng-repeat="r in range track by $index" ng-mouseenter="enter($index + 1)" ng-click="rate($index + 1)" class="glyphicon" ng-class="$index < value && (r.stateOn || \'glyphicon-star\') || (r.stateOff || \'glyphicon-star-empty\')">\n        <span class="sr-only">({{ $index < value ? \'*\' : \' \' }})</span>\n    </i>\n</span>')}]),angular.module("template/tabs/tab.html",[]).run(["$templateCache",function(a){a.put("template/tabs/tab.html",'<li ng-class="{active: active, disabled: disabled}">\n  <a href ng-click="select()" tab-heading-transclude>{{heading}}</a>\n</li>\n')}]),angular.module("template/tabs/tabset.html",[]).run(["$templateCache",function(a){a.put("template/tabs/tabset.html",'<div>\n  <ul class="nav nav-{{type || \'tabs\'}}" ng-class="{\'nav-stacked\': vertical, \'nav-justified\': justified}" ng-transclude></ul>\n  <div class="tab-content">\n    <div class="tab-pane" \n         ng-repeat="tab in tabs" \n         ng-class="{active: tab.active}"\n         tab-content-transclude="tab">\n    </div>\n  </div>\n</div>\n')}]),angular.module("template/timepicker/timepicker.html",[]).run(["$templateCache",function(a){a.put("template/timepicker/timepicker.html",'<table>\n\t<tbody>\n\t\t<tr class="text-center">\n\t\t\t<td><a ng-click="incrementHours()" class="btn btn-link"><span class="glyphicon glyphicon-chevron-up"></span></a></td>\n\t\t\t<td>&nbsp;</td>\n\t\t\t<td><a ng-click="incrementMinutes()" class="btn btn-link"><span class="glyphicon glyphicon-chevron-up"></span></a></td>\n\t\t\t<td ng-show="showMeridian"></td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td style="width:50px;" class="form-group" ng-class="{\'has-error\': invalidHours}">\n\t\t\t\t<input type="text" ng-model="hours" ng-change="updateHours()" class="form-control text-center" ng-mousewheel="incrementHours()" ng-readonly="readonlyInput" maxlength="2">\n\t\t\t</td>\n\t\t\t<td>:</td>\n\t\t\t<td style="width:50px;" class="form-group" ng-class="{\'has-error\': invalidMinutes}">\n\t\t\t\t<input type="text" ng-model="minutes" ng-change="updateMinutes()" class="form-control text-center" ng-readonly="readonlyInput" maxlength="2">\n\t\t\t</td>\n\t\t\t<td ng-show="showMeridian"><button type="button" class="btn btn-default text-center" ng-click="toggleMeridian()">{{meridian}}</button></td>\n\t\t</tr>\n\t\t<tr class="text-center">\n\t\t\t<td><a ng-click="decrementHours()" class="btn btn-link"><span class="glyphicon glyphicon-chevron-down"></span></a></td>\n\t\t\t<td>&nbsp;</td>\n\t\t\t<td><a ng-click="decrementMinutes()" class="btn btn-link"><span class="glyphicon glyphicon-chevron-down"></span></a></td>\n\t\t\t<td ng-show="showMeridian"></td>\n\t\t</tr>\n\t</tbody>\n</table>\n')}]),angular.module("template/typeahead/typeahead-match.html",[]).run(["$templateCache",function(a){a.put("template/typeahead/typeahead-match.html",'<a tabindex="-1" bind-html-unsafe="match.label | typeaheadHighlight:query"></a>')}]),angular.module("template/typeahead/typeahead-popup.html",[]).run(["$templateCache",function(a){a.put("template/typeahead/typeahead-popup.html",'<ul class="dropdown-menu" ng-show="isOpen()" ng-style="{top: position.top+\'px\', left: position.left+\'px\'}" style="display: block;" role="listbox" aria-hidden="{{!isOpen()}}">\n    <li ng-repeat="match in matches track by $index" ng-class="{active: isActive($index) }" ng-mouseenter="selectActive($index)" ng-click="selectMatch($index)" role="option" id="{{match.id}}">\n        <div typeahead-match index="$index" match="match" query="query" template-url="templateUrl"></div>\n    </li>\n</ul>\n')}]),"undefined"!=typeof module&&"undefined"!=typeof exports&&module.exports===exports&&(module.exports="ui.router"),function(a,b,c){"use strict";function d(a,b){return N(new(N(function(){},{prototype:a})),b)}function e(a){return M(arguments,function(b){b!==a&&M(b,function(b,c){a.hasOwnProperty(c)||(a[c]=b)})}),a}function f(a,b){var c=[];for(var d in a.path){if(a.path[d]!==b.path[d])break;c.push(a.path[d])}return c}function g(a){if(Object.keys)return Object.keys(a);var b=[];return M(a,function(a,c){b.push(c)}),b}function h(a,b){if(Array.prototype.indexOf)return a.indexOf(b,Number(arguments[2])||0);var c=a.length>>>0,d=Number(arguments[2])||0;for(d=d<0?Math.ceil(d):Math.floor(d),d<0&&(d+=c);d<c;d++)if(d in a&&a[d]===b)return d;return-1}function i(a,b,c,d){var e,i=f(c,d),j={},k=[];for(var l in i)if(i[l].params&&(e=g(i[l].params),e.length))for(var m in e)h(k,e[m])>=0||(k.push(e[m]),j[e[m]]=a[e[m]]);return N({},j,b)}function j(a,b,c){if(!c){c=[];for(var d in a)c.push(d)}for(var e=0;e<c.length;e++){var f=c[e];if(a[f]!=b[f])return!1}return!0}function k(a,b){var c={};return M(a,function(a){c[a]=b[a]}),c}function l(a){var b={},c=Array.prototype.concat.apply(Array.prototype,Array.prototype.slice.call(arguments,1));return M(c,function(c){c in a&&(b[c]=a[c])}),b}function m(a){var b={},c=Array.prototype.concat.apply(Array.prototype,Array.prototype.slice.call(arguments,1));for(var d in a)h(c,d)==-1&&(b[d]=a[d]);return b}function n(a,b){var c=L(a),d=c?[]:{};return M(a,function(a,e){b(a,e)&&(d[c?d.length:e]=a)}),d}function o(a,b){var c=L(a)?[]:{};return M(a,function(a,d){c[d]=b(a,d)}),c}function p(a,b){var d=1,f=2,i={},j=[],k=i,l=N(a.when(i),{$$promises:i,$$values:i});this.study=function(i){function n(a,c){if(s[c]!==f){if(r.push(c),s[c]===d)throw r.splice(0,h(r,c)),new Error("Cyclic dependency: "+r.join(" -> "));if(s[c]=d,J(a))q.push(c,[function(){return b.get(a)}],j);else{var e=b.annotate(a);M(e,function(a){a!==c&&i.hasOwnProperty(a)&&n(i[a],a)}),q.push(c,a,e)}r.pop(),s[c]=f}}function o(a){return K(a)&&a.then&&a.$$promises}if(!K(i))throw new Error("'invocables' must be an object");var p=g(i||{}),q=[],r=[],s={};return M(i,n),i=r=s=null,function(d,f,g){function h(){--u||(v||e(t,f.$$values),r.$$values=t,r.$$promises=r.$$promises||!0,delete r.$$inheritedValues,n.resolve(t))}function i(a){r.$$failure=a,n.reject(a)}function j(c,e,f){function j(a){l.reject(a),i(a)}function k(){if(!H(r.$$failure))try{l.resolve(b.invoke(e,g,t)),l.promise.then(function(a){t[c]=a,h()},j)}catch(a){j(a)}}var l=a.defer(),m=0;M(f,function(a){s.hasOwnProperty(a)&&!d.hasOwnProperty(a)&&(m++,s[a].then(function(b){t[a]=b,--m||k()},j))}),m||k(),s[c]=l.promise}if(o(d)&&g===c&&(g=f,f=d,d=null),d){if(!K(d))throw new Error("'locals' must be an object")}else d=k;if(f){if(!o(f))throw new Error("'parent' must be a promise returned by $resolve.resolve()")}else f=l;var n=a.defer(),r=n.promise,s=r.$$promises={},t=N({},d),u=1+q.length/3,v=!1;if(H(f.$$failure))return i(f.$$failure),r;f.$$inheritedValues&&e(t,m(f.$$inheritedValues,p)),N(s,f.$$promises),f.$$values?(v=e(t,m(f.$$values,p)),r.$$inheritedValues=m(f.$$values,p),h()):(f.$$inheritedValues&&(r.$$inheritedValues=m(f.$$inheritedValues,p)),f.then(h,i));for(var w=0,x=q.length;w<x;w+=3)d.hasOwnProperty(q[w])?h():j(q[w],q[w+1],q[w+2]);return r}},this.resolve=function(a,b,c,d){return this.study(a)(b,c,d)}}function q(a,b,c){this.fromConfig=function(a,b,c){return H(a.template)?this.fromString(a.template,b):H(a.templateUrl)?this.fromUrl(a.templateUrl,b):H(a.templateProvider)?this.fromProvider(a.templateProvider,b,c):null},this.fromString=function(a,b){return I(a)?a(b):a},this.fromUrl=function(c,d){return I(c)&&(c=c(d)),null==c?null:a.get(c,{cache:b,headers:{Accept:"text/html"}}).then(function(a){return a.data})},this.fromProvider=function(a,b,d){return c.invoke(a,null,d||{params:b})}}function r(a,b,e){function f(b,c,d,e){if(q.push(b),o[b])return o[b];if(!/^\w+(-+\w+)*(?:\[\])?$/.test(b))throw new Error("Invalid parameter name '"+b+"' in pattern '"+a+"'");if(p[b])throw new Error("Duplicate parameter name '"+b+"' in pattern '"+a+"'");return p[b]=new P.Param(b,c,d,e),p[b]}function g(a,b,c,d){var e=["",""],f=a.replace(/[\\\[\]\^$*+?.()|{}]/g,"\\$&");if(!b)return f;switch(c){case!1:e=["(",")"+(d?"?":"")];break;case!0:e=["?(",")?"];break;default:e=["("+c+"|",")?"]}return f+e[0]+b+e[1]}function h(e,f){var g,h,i,j,k;return g=e[2]||e[3],k=b.params[g],i=a.substring(m,e.index),h=f?e[4]:e[4]||("*"==e[1]?".*":null),j=P.type(h||"string")||d(P.type("string"),{pattern:new RegExp(h,b.caseInsensitive?"i":c)}),{id:g,regexp:h,segment:i,type:j,cfg:k}}b=N({params:{}},K(b)?b:{});var i,j=/([:*])([\w\[\]]+)|\{([\w\[\]]+)(?:\:((?:[^{}\\]+|\\.|\{(?:[^{}\\]+|\\.)*\})+))?\}/g,k=/([:]?)([\w\[\]-]+)|\{([\w\[\]-]+)(?:\:((?:[^{}\\]+|\\.|\{(?:[^{}\\]+|\\.)*\})+))?\}/g,l="^",m=0,n=this.segments=[],o=e?e.params:{},p=this.params=e?e.params.$$new():new P.ParamSet,q=[];this.source=a;for(var r,s,t;(i=j.exec(a))&&(r=h(i,!1),!(r.segment.indexOf("?")>=0));)s=f(r.id,r.type,r.cfg,"path"),l+=g(r.segment,s.type.pattern.source,s.squash,s.isOptional),n.push(r.segment),m=j.lastIndex;t=a.substring(m);var u=t.indexOf("?");if(u>=0){var v=this.sourceSearch=t.substring(u);if(t=t.substring(0,u),this.sourcePath=a.substring(0,m+u),v.length>0)for(m=0;i=k.exec(v);)r=h(i,!0),s=f(r.id,r.type,r.cfg,"search"),m=j.lastIndex}else this.sourcePath=a,this.sourceSearch="";l+=g(t)+(b.strict===!1?"/?":"")+"$",n.push(t),this.regexp=new RegExp(l,b.caseInsensitive?"i":c),this.prefix=n[0],this.$$paramNames=q}function s(a){N(this,a)}function t(){function a(a){return null!=a?a.toString().replace(/\//g,"%2F"):a}function e(a){return null!=a?a.toString().replace(/%2F/g,"/"):a}function f(){return{strict:p,caseInsensitive:m}}function i(a){return I(a)||L(a)&&I(a[a.length-1])}function j(){for(;w.length;){var a=w.shift();if(a.pattern)throw new Error("You cannot override a type's .pattern at runtime.");b.extend(u[a.name],l.invoke(a.def))}}function k(a){N(this,a||{})}P=this;var l,m=!1,p=!0,q=!1,u={},v=!0,w=[],x={string:{encode:a,decode:e,is:function(a){return null==a||!H(a)||"string"==typeof a},pattern:/[^/]*/},int:{encode:a,decode:function(a){return parseInt(a,10)},is:function(a){return H(a)&&this.decode(a.toString())===a},pattern:/\d+/},bool:{encode:function(a){return a?1:0},decode:function(a){return 0!==parseInt(a,10)},is:function(a){return a===!0||a===!1},pattern:/0|1/},date:{encode:function(a){return this.is(a)?[a.getFullYear(),("0"+(a.getMonth()+1)).slice(-2),("0"+a.getDate()).slice(-2)].join("-"):c},decode:function(a){if(this.is(a))return a;var b=this.capture.exec(a);return b?new Date(b[1],b[2]-1,b[3]):c},is:function(a){return a instanceof Date&&!isNaN(a.valueOf())},equals:function(a,b){return this.is(a)&&this.is(b)&&a.toISOString()===b.toISOString()},pattern:/[0-9]{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[1-2][0-9]|3[0-1])/,capture:/([0-9]{4})-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])/},json:{encode:b.toJson,decode:b.fromJson,is:b.isObject,equals:b.equals,pattern:/[^/]*/},any:{encode:b.identity,decode:b.identity,equals:b.equals,pattern:/.*/}};t.$$getDefaultValue=function(a){if(!i(a.value))return a.value;if(!l)throw new Error("Injectable functions cannot be called at configuration time");return l.invoke(a.value)},this.caseInsensitive=function(a){return H(a)&&(m=a),m},this.strictMode=function(a){return H(a)&&(p=a),p},this.defaultSquashPolicy=function(a){if(!H(a))return q;if(a!==!0&&a!==!1&&!J(a))throw new Error("Invalid squash policy: "+a+". Valid policies: false, true, arbitrary-string");return q=a,a},this.compile=function(a,b){return new r(a,N(f(),b))},this.isMatcher=function(a){if(!K(a))return!1;var b=!0;return M(r.prototype,function(c,d){I(c)&&(b=b&&H(a[d])&&I(a[d]))}),b},this.type=function(a,b,c){if(!H(b))return u[a];if(u.hasOwnProperty(a))throw new Error("A type named '"+a+"' has already been defined.");return u[a]=new s(N({name:a},b)),c&&(w.push({name:a,def:c}),v||j()),this},M(x,function(a,b){u[b]=new s(N({name:b},a))}),u=d(u,{}),this.$get=["$injector",function(a){return l=a,v=!1,j(),M(x,function(a,b){u[b]||(u[b]=new s(a))}),this}],this.Param=function(a,b,d,e){function f(a){var b=K(a)?g(a):[],c=h(b,"value")===-1&&h(b,"type")===-1&&h(b,"squash")===-1&&h(b,"array")===-1;return c&&(a={value:a}),a.$$fn=i(a.value)?a.value:function(){return a.value},a}function j(b,c,d){if(b.type&&c)throw new Error("Param '"+a+"' has two type configurations.");return c?c:b.type?b.type instanceof s?b.type:new s(b.type):"config"===d?u.any:u.string}function k(){var b={array:"search"===e&&"auto"},c=a.match(/\[\]$/)?{array:!0}:{};return N(b,c,d).array}function m(a,b){var c=a.squash;if(!b||c===!1)return!1;if(!H(c)||null==c)return q;if(c===!0||J(c))return c;throw new Error("Invalid squash policy: '"+c+"'. Valid policies: false, true, or arbitrary string")}function p(a,b,d,e){var f,g,i=[{from:"",to:d||b?c:""},{from:null,to:d||b?c:""}];return f=L(a.replace)?a.replace:[],J(e)&&f.push({from:e,to:c}),g=o(f,function(a){return a.from}),n(i,function(a){return h(g,a.from)===-1}).concat(f)}function r(){if(!l)throw new Error("Injectable functions cannot be called at configuration time");var a=l.invoke(d.$$fn);if(null!==a&&a!==c&&!w.type.is(a))throw new Error("Default value ("+a+") for parameter '"+w.id+"' is not an instance of Type ("+w.type.name+")");return a}function t(a){function b(a){return function(b){return b.from===a}}function c(a){var c=o(n(w.replace,b(a)),function(a){return a.to});return c.length?c[0]:a}return a=c(a),H(a)?w.type.$normalize(a):r()}function v(){return"{Param:"+a+" "+b+" squash: '"+z+"' optional: "+y+"}"}var w=this;d=f(d),b=j(d,b,e);var x=k();b=x?b.$asArray(x,"search"===e):b,"string"!==b.name||x||"path"!==e||d.value!==c||(d.value="");var y=d.value!==c,z=m(d,y),A=p(d,x,y,z);N(this,{id:a,type:b,location:e,array:x,squash:z,replace:A,isOptional:y,value:t,dynamic:c,config:d,toString:v})},k.prototype={$$new:function(){return d(this,N(new k,{$$parent:this}))},$$keys:function(){for(var a=[],b=[],c=this,d=g(k.prototype);c;)b.push(c),c=c.$$parent;return b.reverse(),M(b,function(b){M(g(b),function(b){h(a,b)===-1&&h(d,b)===-1&&a.push(b)})}),a},$$values:function(a){var b={},c=this;return M(c.$$keys(),function(d){b[d]=c[d].value(a&&a[d])}),b},$$equals:function(a,b){var c=!0,d=this;return M(d.$$keys(),function(e){var f=a&&a[e],g=b&&b[e];d[e].type.equals(f,g)||(c=!1)}),c},$$validates:function(a){var d,e,f,g,h,i=this.$$keys();for(d=0;d<i.length&&(e=this[i[d]],f=a[i[d]],f!==c&&null!==f||!e.isOptional);d++){if(g=e.type.$normalize(f),!e.type.is(g))return!1;if(h=e.type.encode(g),b.isString(h)&&!e.type.pattern.exec(h))return!1}return!0},$$parent:c},this.ParamSet=k}function u(a,d){function e(a){var b=/^\^((?:\\[^a-zA-Z0-9]|[^\\\[\]\^$*+?.()|{}]+)*)/.exec(a.source);return null!=b?b[1].replace(/\\(.)/g,"$1"):""}function f(a,b){return a.replace(/\$(\$|\d{1,2})/,function(a,c){return b["$"===c?0:Number(c)]})}function g(a,b,c){if(!c)return!1;var d=a.invoke(b,b,{$match:c});return!H(d)||d}function h(d,e,f,g){function h(a,b,c){return"/"===p?a:b?p.slice(0,-1)+a:c?p.slice(1)+a:a}function m(a){function b(a){var b=a(f,d);return!!b&&(J(b)&&d.replace().url(b),!0)}if(!a||!a.defaultPrevented){o&&d.url()===o;o=c;var e,g=j.length;for(e=0;e<g;e++)if(b(j[e]))return;k&&b(k)}}function n(){return i=i||e.$on("$locationChangeSuccess",m)}var o,p=g.baseHref(),q=d.url();return l||n(),{sync:function(){m()},listen:function(){return n()},update:function(a){return a?void(q=d.url()):void(d.url()!==q&&(d.url(q),d.replace()))},push:function(a,b,e){var f=a.format(b||{});null!==f&&b&&b["#"]&&(f+="#"+b["#"]),d.url(f),o=e&&e.$$avoidResync?d.url():c,e&&e.replace&&d.replace()},href:function(c,e,f){if(!c.validates(e))return null;var g=a.html5Mode();b.isObject(g)&&(g=g.enabled);var i=c.format(e);if(f=f||{},g||null===i||(i="#"+a.hashPrefix()+i),null!==i&&e&&e["#"]&&(i+="#"+e["#"]),i=h(i,g,f.absolute),!f.absolute||!i)return i;var j=!g&&i?"/":"",k=d.port();return k=80===k||443===k?"":":"+k,[d.protocol(),"://",d.host(),k,j,i].join("")}}}var i,j=[],k=null,l=!1;this.rule=function(a){if(!I(a))throw new Error("'rule' must be a function");return j.push(a),this},this.otherwise=function(a){if(J(a)){var b=a;a=function(){return b}}else if(!I(a))throw new Error("'rule' must be a function");return k=a,this},this.when=function(a,b){var c,h=J(b);if(J(a)&&(a=d.compile(a)),!h&&!I(b)&&!L(b))throw new Error("invalid 'handler' in when()");var i={matcher:function(a,b){return h&&(c=d.compile(b),b=["$match",function(a){return c.format(a)}]),N(function(c,d){return g(c,b,a.exec(d.path(),d.search()))},{prefix:J(a.prefix)?a.prefix:""})},regex:function(a,b){if(a.global||a.sticky)throw new Error("when() RegExp must not be global or sticky");return h&&(c=b,b=["$match",function(a){return f(c,a)}]),N(function(c,d){return g(c,b,a.exec(d.path()))},{prefix:e(a)})}},j={matcher:d.isMatcher(a),regex:a instanceof RegExp};for(var k in j)if(j[k])return this.rule(i[k](a,b));throw new Error("invalid 'what' in when()")},this.deferIntercept=function(a){a===c&&(a=!0),l=a},this.$get=h,h.$inject=["$location","$rootScope","$injector","$browser"]}function v(a,e){function f(a){return 0===a.indexOf(".")||0===a.indexOf("^")}function m(a,b){if(!a)return c;var d=J(a),e=d?a:a.name,g=f(e);if(g){if(!b)throw new Error("No reference point given for path '"+e+"'");b=m(b);for(var h=e.split("."),i=0,j=h.length,k=b;i<j;i++)if(""!==h[i]||0!==i){if("^"!==h[i])break;if(!k.parent)throw new Error("Path '"+e+"' not valid for state '"+b.name+"'");k=k.parent}else k=b;h=h.slice(i).join("."),e=k.name+(k.name&&h?".":"")+h}var l=z[e];return!l||!d&&(d||l!==a&&l.self!==a)?c:l}function n(a,b){A[a]||(A[a]=[]),A[a].push(b)}function p(a){for(var b=A[a]||[];b.length;)q(b.shift())}function q(b){b=d(b,{self:b,resolve:b.resolve||{},toString:function(){return this.name}});var c=b.name;if(!J(c)||c.indexOf("@")>=0)throw new Error("State must have a valid name");if(z.hasOwnProperty(c))throw new Error("State '"+c+"'' is already defined");var e=c.indexOf(".")!==-1?c.substring(0,c.lastIndexOf(".")):J(b.parent)?b.parent:K(b.parent)&&J(b.parent.name)?b.parent.name:"";if(e&&!z[e])return n(e,b.self);for(var f in C)I(C[f])&&(b[f]=C[f](b,C.$delegates[f]));return z[c]=b,!b[B]&&b.url&&a.when(b.url,["$match","$stateParams",function(a,c){y.$current.navigable==b&&j(a,c)||y.transitionTo(b,a,{inherit:!0,location:!1})}]),p(c),b}function r(a){return a.indexOf("*")>-1}function s(a){for(var b=a.split("."),c=y.$current.name.split("."),d=0,e=b.length;d<e;d++)"*"===b[d]&&(c[d]="*");return"**"===b[0]&&(c=c.slice(h(c,b[1])),c.unshift("**")),"**"===b[b.length-1]&&(c.splice(h(c,b[b.length-2])+1,Number.MAX_VALUE),c.push("**")),b.length==c.length&&c.join("")===b.join("")}function t(a,b){return J(a)&&!H(b)?C[a]:I(b)&&J(a)?(C[a]&&!C.$delegates[a]&&(C.$delegates[a]=C[a]),C[a]=b,this):this}function u(a,b){return K(a)?b=a:b.name=a,q(b),this}function v(a,e,f,h,l,n,p,q,t){function u(b,c,d,f){var g=a.$broadcast("$stateNotFound",b,c,d);if(g.defaultPrevented)return p.update(),D;if(!g.retry)return null;if(f.$retry)return p.update(),E;var h=y.transition=e.when(g.retry);return h.then(function(){return h!==y.transition?A:(b.options.$retry=!0,y.transitionTo(b.to,b.toParams,b.options))},function(){return D}),p.update(),h}function v(a,c,d,g,i,j){function m(){var c=[];return M(a.views,function(d,e){var g=d.resolve&&d.resolve!==a.resolve?d.resolve:{};g.$template=[function(){return f.load(e,{view:d,locals:i.globals,params:n,notify:j.notify})||""}],c.push(l.resolve(g,i.globals,i.resolve,a).then(function(c){if(I(d.controllerProvider)||L(d.controllerProvider)){var f=b.extend({},g,i.globals);c.$$controller=h.invoke(d.controllerProvider,null,f)}else c.$$controller=d.controller;c.$$state=a,c.$$controllerAs=d.controllerAs,i[e]=c}))}),e.all(c).then(function(){return i.globals})}var n=d?c:k(a.params.$$keys(),c),o={$stateParams:n};i.resolve=l.resolve(a.resolve,o,i.resolve,a);var p=[i.resolve.then(function(a){i.globals=a})];return g&&p.push(g),e.all(p).then(m).then(function(a){return i})}var A=e.reject(new Error("transition superseded")),C=e.reject(new Error("transition prevented")),D=e.reject(new Error("transition aborted")),E=e.reject(new Error("transition failed"));return x.locals={resolve:null,globals:{$stateParams:{}}},y={params:{},current:x.self,$current:x,transition:null},y.reload=function(a){return y.transitionTo(y.current,n,{reload:a||!0,inherit:!1,notify:!0})},y.go=function(a,b,c){return y.transitionTo(a,b,N({inherit:!0,relative:y.$current},c))},y.transitionTo=function(b,c,f){c=c||{},f=N({location:!0,inherit:!1,relative:null,notify:!0,reload:!1,$retry:!1},f||{});var g,j=y.$current,l=y.params,o=j.path,q=m(b,f.relative),r=c["#"];if(!H(q)){var s={to:b,toParams:c,options:f},t=u(s,j.self,l,f);if(t)return t;if(b=s.to,c=s.toParams,f=s.options,q=m(b,f.relative),!H(q)){if(!f.relative)throw new Error("No such state '"+b+"'");throw new Error("Could not resolve '"+b+"' from state '"+f.relative+"'")}}if(q[B])throw new Error("Cannot transition to abstract state '"+b+"'");if(f.inherit&&(c=i(n,c||{},y.$current,q)),!q.params.$$validates(c))return E;c=q.params.$$values(c),
b=q;var z=b.path,D=0,F=z[D],G=x.locals,I=[];if(f.reload){if(J(f.reload)||K(f.reload)){if(K(f.reload)&&!f.reload.name)throw new Error("Invalid reload state object");var L=f.reload===!0?o[0]:m(f.reload);if(f.reload&&!L)throw new Error("No such reload state '"+(J(f.reload)?f.reload:f.reload.name)+"'");for(;F&&F===o[D]&&F!==L;)G=I[D]=F.locals,D++,F=z[D]}}else for(;F&&F===o[D]&&F.ownParams.$$equals(c,l);)G=I[D]=F.locals,D++,F=z[D];if(w(b,c,j,l,G,f))return r&&(c["#"]=r),y.params=c,O(y.params,n),f.location&&b.navigable&&b.navigable.url&&(p.push(b.navigable.url,c,{$$avoidResync:!0,replace:"replace"===f.location}),p.update(!0)),y.transition=null,e.when(y.current);if(c=k(b.params.$$keys(),c||{}),f.notify&&a.$broadcast("$stateChangeStart",b.self,c,j.self,l).defaultPrevented)return a.$broadcast("$stateChangeCancel",b.self,c,j.self,l),p.update(),C;for(var M=e.when(G),P=D;P<z.length;P++,F=z[P])G=I[P]=d(G),M=v(F,c,F===b,M,G,f);var Q=y.transition=M.then(function(){var d,e,g;if(y.transition!==Q)return A;for(d=o.length-1;d>=D;d--)g=o[d],g.self.onExit&&h.invoke(g.self.onExit,g.self,g.locals.globals),g.locals=null;for(d=D;d<z.length;d++)e=z[d],e.locals=I[d],e.self.onEnter&&h.invoke(e.self.onEnter,e.self,e.locals.globals);return r&&(c["#"]=r),y.transition!==Q?A:(y.$current=b,y.current=b.self,y.params=c,O(y.params,n),y.transition=null,f.location&&b.navigable&&p.push(b.navigable.url,b.navigable.locals.globals.$stateParams,{$$avoidResync:!0,replace:"replace"===f.location}),f.notify&&a.$broadcast("$stateChangeSuccess",b.self,c,j.self,l),p.update(!0),y.current)},function(d){return y.transition!==Q?A:(y.transition=null,g=a.$broadcast("$stateChangeError",b.self,c,j.self,l,d),g.defaultPrevented||p.update(),e.reject(d))});return Q},y.is=function(a,b,d){d=N({relative:y.$current},d||{});var e=m(a,d.relative);return H(e)?y.$current===e&&(!b||j(e.params.$$values(b),n)):c},y.includes=function(a,b,d){if(d=N({relative:y.$current},d||{}),J(a)&&r(a)){if(!s(a))return!1;a=y.$current.name}var e=m(a,d.relative);return H(e)?!!H(y.$current.includes[e.name])&&(!b||j(e.params.$$values(b),n,g(b))):c},y.href=function(a,b,d){d=N({lossy:!0,inherit:!0,absolute:!1,relative:y.$current},d||{});var e=m(a,d.relative);if(!H(e))return null;d.inherit&&(b=i(n,b||{},y.$current,e));var f=e&&d.lossy?e.navigable:e;return f&&f.url!==c&&null!==f.url?p.href(f.url,k(e.params.$$keys().concat("#"),b||{}),{absolute:d.absolute}):null},y.get=function(a,b){if(0===arguments.length)return o(g(z),function(a){return z[a].self});var c=m(a,b||y.$current);return c&&c.self?c.self:null},y}function w(a,b,c,d,e,f){function g(a,b,c){function d(b){return"search"!=a.params[b].location}var e=a.params.$$keys().filter(d),f=l.apply({},[a.params].concat(e)),g=new P.ParamSet(f);return g.$$equals(b,c)}if(!f.reload&&a===c&&(e===c.locals||a.self.reloadOnSearch===!1&&g(c,d,b)))return!0}var x,y,z={},A={},B="abstract",C={parent:function(a){if(H(a.parent)&&a.parent)return m(a.parent);var b=/^(.+)\.[^.]+$/.exec(a.name);return b?m(b[1]):x},data:function(a){return a.parent&&a.parent.data&&(a.data=a.self.data=N({},a.parent.data,a.data)),a.data},url:function(a){var b=a.url,c={params:a.params||{}};if(J(b))return"^"==b.charAt(0)?e.compile(b.substring(1),c):(a.parent.navigable||x).url.concat(b,c);if(!b||e.isMatcher(b))return b;throw new Error("Invalid url '"+b+"' in state '"+a+"'")},navigable:function(a){return a.url?a:a.parent?a.parent.navigable:null},ownParams:function(a){var b=a.url&&a.url.params||new P.ParamSet;return M(a.params||{},function(a,c){b[c]||(b[c]=new P.Param(c,null,a,"config"))}),b},params:function(a){return a.parent&&a.parent.params?N(a.parent.params.$$new(),a.ownParams):new P.ParamSet},views:function(a){var b={};return M(H(a.views)?a.views:{"":a},function(c,d){d.indexOf("@")<0&&(d+="@"+a.parent.name),b[d]=c}),b},path:function(a){return a.parent?a.parent.path.concat(a):[]},includes:function(a){var b=a.parent?N({},a.parent.includes):{};return b[a.name]=!0,b},$delegates:{}};x=q({name:"",url:"^",views:null,abstract:!0}),x.navigable=null,this.decorator=t,this.state=u,this.$get=v,v.$inject=["$rootScope","$q","$view","$injector","$resolve","$stateParams","$urlRouter","$location","$urlMatcherFactory"]}function w(){function a(a,b){return{load:function(c,d){var e,f={template:null,controller:null,view:null,locals:null,notify:!0,async:!0,params:{}};return d=N(f,d),d.view&&(e=b.fromConfig(d.view,d.params,d.locals)),e&&d.notify&&a.$broadcast("$viewContentLoading",d),e}}}this.$get=a,a.$inject=["$rootScope","$templateFactory"]}function x(){var a=!1;this.useAnchorScroll=function(){a=!0},this.$get=["$anchorScroll","$timeout",function(b,c){return a?b:function(a){return c(function(){a[0].scrollIntoView()},0,!1)}}]}function y(a,c,d,e){function f(){return c.has?function(a){return c.has(a)?c.get(a):null}:function(a){try{return c.get(a)}catch(b){return null}}}function g(a,b){var c=function(){return{enter:function(a,b,c){b.after(a),c()},leave:function(a,b){a.remove(),b()}}};if(j)return{enter:function(a,b,c){var d=j.enter(a,null,b,c);d&&d.then&&d.then(c)},leave:function(a,b){var c=j.leave(a,b);c&&c.then&&c.then(b)}};if(i){var d=i&&i(b,a);return{enter:function(a,b,c){d.enter(a,null,b),c()},leave:function(a,b){d.leave(a),b()}}}return c()}var h=f(),i=h("$animator"),j=h("$animate"),k={restrict:"ECA",terminal:!0,priority:400,transclude:"element",compile:function(c,f,h){return function(c,f,i){function j(){l&&(l.remove(),l=null),n&&(n.$destroy(),n=null),m&&(r.leave(m,function(){l=null}),l=m,m=null)}function k(g){var k,l=A(c,i,f,e),s=l&&a.$current&&a.$current.locals[l];if(g||s!==o){k=c.$new(),o=a.$current.locals[l];var t=h(k,function(a){r.enter(a,f,function(){n&&n.$emit("$viewContentAnimationEnded"),(b.isDefined(q)&&!q||c.$eval(q))&&d(a)}),j()});m=t,n=k,n.$emit("$viewContentLoaded"),n.$eval(p)}}var l,m,n,o,p=i.onload||"",q=i.autoscroll,r=g(i,c);c.$on("$stateChangeSuccess",function(){k(!1)}),c.$on("$viewContentLoading",function(){k(!1)}),k(!0)}}};return k}function z(a,b,c,d){return{restrict:"ECA",priority:-400,compile:function(e){var f=e.html();return function(e,g,h){var i=c.$current,j=A(e,h,g,d),k=i&&i.locals[j];if(k){g.data("$uiView",{name:j,state:k.$$state}),g.html(k.$template?k.$template:f);var l=a(g.contents());if(k.$$controller){k.$scope=e,k.$element=g;var m=b(k.$$controller,k);k.$$controllerAs&&(e[k.$$controllerAs]=m),g.data("$ngControllerController",m),g.children().data("$ngControllerController",m)}l(e)}}}}}function A(a,b,c,d){var e=d(b.uiView||b.name||"")(a),f=c.inheritedData("$uiView");return e.indexOf("@")>=0?e:e+"@"+(f?f.state.name:"")}function B(a,b){var c,d=a.match(/^\s*({[^}]*})\s*$/);if(d&&(a=b+"("+d[1]+")"),c=a.replace(/\n/g," ").match(/^([^(]+?)\s*(\((.*)\))?$/),!c||4!==c.length)throw new Error("Invalid state ref '"+a+"'");return{state:c[1],paramExpr:c[3]||null}}function C(a){var b=a.parent().inheritedData("$uiView");if(b&&b.state&&b.state.name)return b.state}function D(a,c){var d=["location","inherit","reload","absolute"];return{restrict:"A",require:["?^uiSrefActive","?^uiSrefActiveEq"],link:function(e,f,g,h){var i=B(g.uiSref,a.current.name),j=null,k=C(f)||a.$current,l="[object SVGAnimatedString]"===Object.prototype.toString.call(f.prop("href"))?"xlink:href":"href",m=null,n="A"===f.prop("tagName").toUpperCase(),o="FORM"===f[0].nodeName,p=o?"action":l,q=!0,r={relative:k,inherit:!0},s=e.$eval(g.uiSrefOpts)||{};b.forEach(d,function(a){a in s&&(r[a]=s[a])});var t=function(c){if(c&&(j=b.copy(c)),q){m=a.href(i.state,j,r);var d=h[1]||h[0];return d&&d.$$addStateInfo(i.state,j),null===m?(q=!1,!1):void g.$set(p,m)}};i.paramExpr&&(e.$watch(i.paramExpr,function(a,b){a!==j&&t(a)},!0),j=b.copy(e.$eval(i.paramExpr))),t(),o||f.bind("click",function(b){var d=b.which||b.button;if(!(d>1||b.ctrlKey||b.metaKey||b.shiftKey||f.attr("target"))){var e=c(function(){a.go(i.state,j,r)});b.preventDefault();var g=n&&!m?1:0;b.preventDefault=function(){g--<=0&&c.cancel(e)}}})}}}function E(a,b,c){return{restrict:"A",controller:["$scope","$element","$attrs",function(b,d,e){function f(){g()?d.addClass(i):d.removeClass(i)}function g(){for(var a=0;a<j.length;a++)if(h(j[a].state,j[a].params))return!0;return!1}function h(b,c){return"undefined"!=typeof e.uiSrefActiveEq?a.is(b.name,c):a.includes(b.name,c)}var i,j=[];i=c(e.uiSrefActiveEq||e.uiSrefActive||"",!1)(b),this.$$addStateInfo=function(b,c){var e=a.get(b,C(d));j.push({state:e||{name:b},params:c}),f()},b.$on("$stateChangeSuccess",f)}]}}function F(a){var b=function(b){return a.is(b)};return b.$stateful=!0,b}function G(a){var b=function(b){return a.includes(b)};return b.$stateful=!0,b}var H=b.isDefined,I=b.isFunction,J=b.isString,K=b.isObject,L=b.isArray,M=b.forEach,N=b.extend,O=b.copy;b.module("ui.router.util",["ng"]),b.module("ui.router.router",["ui.router.util"]),b.module("ui.router.state",["ui.router.router","ui.router.util"]),b.module("ui.router",["ui.router.state"]),b.module("ui.router.compat",["ui.router"]),p.$inject=["$q","$injector"],b.module("ui.router.util").service("$resolve",p),q.$inject=["$http","$templateCache","$injector"],b.module("ui.router.util").service("$templateFactory",q);var P;r.prototype.concat=function(a,b){var c={caseInsensitive:P.caseInsensitive(),strict:P.strictMode(),squash:P.defaultSquashPolicy()};return new r(this.sourcePath+a+this.sourceSearch,N(c,b),this)},r.prototype.toString=function(){return this.source},r.prototype.exec=function(a,b){function c(a){function b(a){return a.split("").reverse().join("")}function c(a){return a.replace(/\\-/g,"-")}var d=b(a).split(/-(?!\\)/),e=o(d,b);return o(e,c).reverse()}var d=this.regexp.exec(a);if(!d)return null;b=b||{};var e,f,g,h=this.parameters(),i=h.length,j=this.segments.length-1,k={};if(j!==d.length-1)throw new Error("Unbalanced capture group in route '"+this.source+"'");for(e=0;e<j;e++){g=h[e];var l=this.params[g],m=d[e+1];for(f=0;f<l.replace;f++)l.replace[f].from===m&&(m=l.replace[f].to);m&&l.array===!0&&(m=c(m)),k[g]=l.value(m)}for(;e<i;e++)g=h[e],k[g]=this.params[g].value(b[g]);return k},r.prototype.parameters=function(a){return H(a)?this.params[a]||null:this.$$paramNames},r.prototype.validates=function(a){return this.params.$$validates(a)},r.prototype.format=function(a){function b(a){return encodeURIComponent(a).replace(/-/g,function(a){return"%5C%"+a.charCodeAt(0).toString(16).toUpperCase()})}a=a||{};var c=this.segments,d=this.parameters(),e=this.params;if(!this.validates(a))return null;var f,g=!1,h=c.length-1,i=d.length,j=c[0];for(f=0;f<i;f++){var k=f<h,l=d[f],m=e[l],n=m.value(a[l]),p=m.isOptional&&m.type.equals(m.value(),n),q=!!p&&m.squash,r=m.type.encode(n);if(k){var s=c[f+1];if(q===!1)null!=r&&(j+=L(r)?o(r,b).join("-"):encodeURIComponent(r)),j+=s;else if(q===!0){var t=j.match(/\/$/)?/\/?(.*)/:/(.*)/;j+=s.match(t)[1]}else J(q)&&(j+=q+s)}else{if(null==r||p&&q!==!1)continue;L(r)||(r=[r]),r=o(r,encodeURIComponent).join("&"+l+"="),j+=(g?"&":"?")+(l+"="+r),g=!0}}return j},s.prototype.is=function(a,b){return!0},s.prototype.encode=function(a,b){return a},s.prototype.decode=function(a,b){return a},s.prototype.equals=function(a,b){return a==b},s.prototype.$subPattern=function(){var a=this.pattern.toString();return a.substr(1,a.length-2)},s.prototype.pattern=/.*/,s.prototype.toString=function(){return"{Type:"+this.name+"}"},s.prototype.$normalize=function(a){return this.is(a)?a:this.decode(a)},s.prototype.$asArray=function(a,b){function d(a,b){function d(a,b){return function(){return a[b].apply(a,arguments)}}function e(a){return L(a)?a:H(a)?[a]:[]}function f(a){switch(a.length){case 0:return c;case 1:return"auto"===b?a[0]:a;default:return a}}function g(a){return!a}function h(a,b){return function(c){c=e(c);var d=o(c,a);return b===!0?0===n(d,g).length:f(d)}}function i(a){return function(b,c){var d=e(b),f=e(c);if(d.length!==f.length)return!1;for(var g=0;g<d.length;g++)if(!a(d[g],f[g]))return!1;return!0}}this.encode=h(d(a,"encode")),this.decode=h(d(a,"decode")),this.is=h(d(a,"is"),!0),this.equals=i(d(a,"equals")),this.pattern=a.pattern,this.$normalize=h(d(a,"$normalize")),this.name=a.name,this.$arrayMode=b}if(!a)return this;if("auto"===a&&!b)throw new Error("'auto' array mode is for query parameters only");return new d(this,a)},b.module("ui.router.util").provider("$urlMatcherFactory",t),b.module("ui.router.util").run(["$urlMatcherFactory",function(a){}]),u.$inject=["$locationProvider","$urlMatcherFactoryProvider"],b.module("ui.router.router").provider("$urlRouter",u),v.$inject=["$urlRouterProvider","$urlMatcherFactoryProvider"],b.module("ui.router.state").value("$stateParams",{}).provider("$state",v),w.$inject=[],b.module("ui.router.state").provider("$view",w),b.module("ui.router.state").provider("$uiViewScroll",x),y.$inject=["$state","$injector","$uiViewScroll","$interpolate"],z.$inject=["$compile","$controller","$state","$interpolate"],b.module("ui.router.state").directive("uiView",y),b.module("ui.router.state").directive("uiView",z),D.$inject=["$state","$timeout"],E.$inject=["$state","$stateParams","$interpolate"],b.module("ui.router.state").directive("uiSref",D).directive("uiSrefActive",E).directive("uiSrefActiveEq",E),F.$inject=["$state"],G.$inject=["$state"],b.module("ui.router.state").filter("isState",F).filter("includedByState",G)}(window,window.angular),function(a,b,c){"use strict";function d(a,b,c){if(!a)throw ngMinErr("areq","Argument '{0}' is {1}",b||"?",c||"required");return a}function e(a,b){return a||b?a?b?(M(a)&&(a=a.join(" ")),M(b)&&(b=b.join(" ")),a+" "+b):a:b:""}function f(a){var b={};return a&&(a.to||a.from)&&(b.to=a.to,b.from=a.from),b}function g(a,b,c){var d="";return a=M(a)?a:a&&N(a)&&a.length?a.split(/\s+/):[],L(a,function(a,e){a&&a.length>0&&(d+=e>0?" ":"",d+=c?b+a:a+b)}),d}function h(a,b){var c=a.indexOf(b);b>=0&&a.splice(c,1)}function i(a){if(a instanceof K)switch(a.length){case 0:return[];case 1:if(a[0].nodeType===T)return a;break;default:return K(j(a))}if(a.nodeType===T)return K(a)}function j(a){if(!a[0])return a;for(var b=0;b<a.length;b++){var c=a[b];if(c.nodeType==T)return c}}function k(a,b,c){L(b,function(b){a.addClass(b,c)})}function l(a,b,c){L(b,function(b){a.removeClass(b,c)})}function m(a){return function(b,c){c.addClass&&(k(a,b,c.addClass),c.addClass=null),c.removeClass&&(l(a,b,c.removeClass),c.removeClass=null)}}function n(a){if(a=a||{},!a.$$prepared){var b=a.domOperation||I;a.domOperation=function(){a.$$domOperationFired=!0,b(),b=I},a.$$prepared=!0}return a}function o(a,b){p(a,b),q(a,b)}function p(a,b){b.from&&(a.css(b.from),b.from=null)}function q(a,b){b.to&&(a.css(b.to),b.to=null)}function r(a,b,c){var d=(b.addClass||"")+" "+(c.addClass||""),e=(b.removeClass||"")+" "+(c.removeClass||""),f=s(a.attr("class"),d,e);return J(b,c),f.addClass?b.addClass=f.addClass:b.addClass=null,f.removeClass?b.removeClass=f.removeClass:b.removeClass=null,b}function s(a,b,c){function d(a){N(a)&&(a=a.split(" "));var b={};return L(a,function(a){a.length&&(b[a]=!0)}),b}var e=1,f=-1,g={};a=d(a),b=d(b),L(b,function(a,b){g[b]=e}),c=d(c),L(c,function(a,b){g[b]=g[b]===e?null:f});var h={addClass:"",removeClass:""};return L(g,function(b,c){var d,g;b===e?(d="addClass",g=!a[c]):b===f&&(d="removeClass",g=a[c]),g&&(h[d].length&&(h[d]+=" "),h[d]+=c)}),h}function t(a){return a instanceof b.element?a[0]:a}function u(a,b,c){var d=Object.create(null),e=a.getComputedStyle(b)||{};return L(c,function(a,b){var c=e[a];if(c){var f=c.charAt(0);("-"===f||"+"===f||f>=0)&&(c=v(c)),0===c&&(c=null),d[b]=c}}),d}function v(a){var b=0,c=a.split(/\s*,\s*/);return L(c,function(a){"s"==a.charAt(a.length-1)&&(a=a.substring(0,a.length-1)),a=parseFloat(a)||0,b=b?Math.max(a,b):a}),b}function w(a){return 0===a||null!=a}function x(a,b){var c=E,d=a+"s";return b?c+=Z:d+=" linear all",[c,d]}function y(a){return[ia,a+"s"]}function z(a,b){var c=b?ha:ja;return[c,a+"s"]}function A(a,b){var c=b?"-"+b+"s":"";return C(a,[ja,c]),[ja,c]}function B(a,b){var c=b?"paused":"",d=G+ca;return C(a,[d,c]),[d,c]}function C(a,b){var c=b[0],d=b[1];a.style[c]=d}function D(){var a=Object.create(null);return{flush:function(){a=Object.create(null)},count:function(b){var c=a[b];return c?c.total:0},get:function(b){var c=a[b];return c&&c.value},put:function(b,c){a[b]?a[b].total++:a[b]={total:1,value:c}}}}var E,F,G,H,I=b.noop,J=b.extend,K=b.element,L=b.forEach,M=b.isArray,N=b.isString,O=b.isObject,P=b.isUndefined,Q=b.isDefined,R=b.isFunction,S=b.isElement,T=1,U="ng-animate",V="$$ngAnimateChildren",W=["$$rAF",function(a){function b(a){f.push([].concat(a)),c()}function c(){if(f.length){for(var b=[],g=0;g<f.length;g++){var h=f[g];d(h),h.length&&b.push(h)}f=b,e||a(function(){e||c()})}}function d(a){var b=a.shift();b()}var e,f=[];return b.waitUntilQuiet=function(b){e&&e(),e=a(function(){e=null,b(),c()})},b}],X=[function(){return function(a,c,d){var e=d.ngAnimateChildren;b.isString(e)&&0===e.length?c.data(V,!0):d.$observe("ngAnimateChildren",function(a){a="on"===a||"true"===a,c.data(V,a)})}}],Y="";a.ontransitionend===c&&a.onwebkittransitionend!==c?(Y="-webkit-",E="WebkitTransition",F="webkitTransitionEnd transitionend"):(E="transition",F="transitionend"),a.onanimationend===c&&a.onwebkitanimationend!==c?(Y="-webkit-",G="WebkitAnimation",H="webkitAnimationEnd animationend"):(G="animation",H="animationend");var Z="Duration",$="Property",_="Delay",aa="TimingFunction",ba="IterationCount",ca="PlayState",da=3,ea=1.5,fa=1e3,ga=9999,ha=G+_,ia=G+Z,ja=E+_,ka=E+Z,la={transitionDuration:ka,transitionDelay:ja,transitionProperty:E+$,animationDuration:ia,animationDelay:ha,animationIterationCount:G+ba},ma={transitionDuration:ka,transitionDelay:ja,animationDuration:ia,animationDelay:ha},na=["$animateProvider",function(a){var b=D(),c=D();this.$get=["$window","$$jqLite","$$AnimateRunner","$timeout","$document","$sniffer","$$rAFScheduler",function(a,d,e,i,j,k,l){function r(a,b){var c="$$ngAnimateParentKey",d=a.parentNode,e=d[c]||(d[c]=++N);return e+"-"+a.getAttribute("class")+"-"+b}function s(c,d,e,f){var g=b.get(e);return g||(g=u(a,c,f),"infinite"===g.animationIterationCount&&(g.animationIterationCount=1)),b.put(e,g),g}function v(e,f,h,i){var j;if(b.count(h)>0&&(j=c.get(h),!j)){var k=g(f,"-stagger");d.addClass(e,k),j=u(a,e,i),j.animationDuration=Math.max(j.animationDuration,0),j.transitionDuration=Math.max(j.transitionDuration,0),d.removeClass(e,k),c.put(h,j)}return j||{}}function D(a){P.push(a),l.waitUntilQuiet(function(){b.flush(),c.flush();for(var a=O.offsetWidth+1,d=0;d<P.length;d++)P[d](a);P.length=0})}function I(a,b,c){var d=s(a,b,c,la),e=d.animationDelay,f=d.transitionDelay;return d.maxDelay=e&&f?Math.max(e,f):e||f,d.maxDuration=Math.max(d.animationDuration*d.animationIterationCount,d.transitionDuration),d}function J(a,c){function j(){m()}function l(){m(!0)}function m(b){O||Q&&P||(O=!0,P=!1,d.removeClass(a,ia),d.removeClass(a,ka),B(N,!1),A(N,!1),L(X,function(a){N.style[a[0]]=""}),K(a,c),o(a,c),c.onDone&&c.onDone(),R&&R.complete(!b))}function s(a){ya.blockTransition&&A(N,a),ya.blockKeyframeAnimation&&B(N,!!a)}function u(){return R=new e({end:j,cancel:l}),m(),{$$willAnimate:!1,start:function(){return R},end:j}}function J(){function b(){if(!O){if(s(!1),L(X,function(a){var b=a[0],c=a[1];N.style[b]=c}),K(a,c),d.addClass(a,ka),ya.recalculateTimingStyles){if(ja=N.className+" "+ia,na=r(N,ja),wa=I(N,ja,na),xa=wa.maxDelay,T=Math.max(xa,0),V=wa.maxDuration,0===V)return void m();ya.hasTransitions=wa.transitionDuration>0,ya.hasAnimations=wa.animationDuration>0}if(ya.applyTransitionDelay||ya.applyAnimationDelay){xa="boolean"!=typeof c.delay&&w(c.delay)?parseFloat(c.delay):xa,T=Math.max(xa,0);var b;ya.applyTransitionDelay&&(wa.transitionDelay=xa,b=z(xa),X.push(b),N.style[b[0]]=b[1]),ya.applyAnimationDelay&&(wa.animationDelay=xa,b=z(xa,!0),X.push(b),N.style[b[0]]=b[1])}if(U=T*fa,W=V*fa,c.easing){var h,k=c.easing;ya.hasTransitions&&(h=E+aa,X.push([h,k]),N.style[h]=k),ya.hasAnimations&&(h=G+aa,X.push([h,k]),N.style[h]=k)}wa.transitionDuration&&j.push(F),wa.animationDuration&&j.push(H),g=Date.now(),a.on(j.join(" "),f),i(e,U+ea*W),q(a,c)}}function e(){m()}function f(a){a.stopPropagation();var b=a.originalEvent||a,c=b.$manualTimeStamp||b.timeStamp||Date.now(),d=parseFloat(b.elapsedTime.toFixed(da));Math.max(c-g,0)>=U&&d>=V&&(Q=!0,m())}if(!O){var g,j=[],k=function(a){if(Q)P&&a&&(P=!1,m());else if(P=!a,wa.animationDuration){var b=B(N,P);P?X.push(b):h(X,b)}},l=ua>0&&(wa.transitionDuration&&0===oa.transitionDuration||wa.animationDuration&&0===oa.animationDuration)&&Math.max(oa.animationDelay,oa.transitionDelay);l?i(b,Math.floor(l*ua*fa),!1):b(),S.resume=function(){k(!0)},S.pause=function(){k(!1)}}}var N=t(a);c=n(c);var O,P,Q,R,S,T,U,V,W,X=[],Y=a.attr("class"),Z=f(c);if(0===c.duration||!k.animations&&!k.transitions)return u();var _=c.event&&M(c.event)?c.event.join(" "):c.event,ba=_&&c.structural,ca="",ha="";ba?ca=g(_,"ng-",!0):_&&(ca=_),c.addClass&&(ha+=g(c.addClass,"-add")),c.removeClass&&(ha.length&&(ha+=" "),ha+=g(c.removeClass,"-remove")),c.applyClassesEarly&&ha.length&&(K(a,c),ha="");var ia=[ca,ha].join(" ").trim(),ja=Y+" "+ia,ka=g(ia,"-active"),la=Z.to&&Object.keys(Z.to).length>0;if(!la&&!ia)return u();var na,oa;if(c.stagger>0){var pa=parseFloat(c.stagger);oa={transitionDelay:pa,animationDelay:pa,transitionDuration:0,animationDuration:0}}else na=r(N,ja),oa=v(N,ia,na,ma);d.addClass(a,ia);var qa;if(c.transitionStyle){var ra=[E,c.transitionStyle];C(N,ra),X.push(ra)}if(c.duration>=0){qa=N.style[E].length>0;var sa=x(c.duration,qa);C(N,sa),X.push(sa)}if(c.keyframeStyle){var ta=[G,c.keyframeStyle];C(N,ta),X.push(ta)}var ua=oa?c.staggerIndex>=0?c.staggerIndex:b.count(na):0,va=0===ua;va&&A(N,ga);var wa=I(N,ja,na),xa=wa.maxDelay;T=Math.max(xa,0),V=wa.maxDuration;var ya={};return ya.hasTransitions=wa.transitionDuration>0,ya.hasAnimations=wa.animationDuration>0,ya.hasTransitionAll=ya.hasTransitions&&"all"==wa.transitionProperty,ya.applyTransitionDuration=la&&(ya.hasTransitions&&!ya.hasTransitionAll||ya.hasAnimations&&!ya.hasTransitions),ya.applyAnimationDuration=c.duration&&ya.hasAnimations,ya.applyTransitionDelay=w(c.delay)&&(ya.applyTransitionDuration||ya.hasTransitions),ya.applyAnimationDelay=w(c.delay)&&ya.hasAnimations,ya.recalculateTimingStyles=ha.length>0,(ya.applyTransitionDuration||ya.applyAnimationDuration)&&(V=c.duration?parseFloat(c.duration):V,ya.applyTransitionDuration&&(ya.hasTransitions=!0,wa.transitionDuration=V,qa=N.style[E+$].length>0,X.push(x(V,qa))),ya.applyAnimationDuration&&(ya.hasAnimations=!0,wa.animationDuration=V,X.push(y(V)))),0!==V||ya.recalculateTimingStyles?(null==c.duration&&wa.transitionDuration>0&&(ya.recalculateTimingStyles=ya.recalculateTimingStyles||va),U=T*fa,W=V*fa,c.skipBlocking||(ya.blockTransition=wa.transitionDuration>0,ya.blockKeyframeAnimation=wa.animationDuration>0&&oa.animationDelay>0&&0===oa.animationDuration),p(a,c),ya.blockTransition||A(N,!1),s(V),{$$willAnimate:!0,end:j,start:function(){if(!O)return S={end:j,cancel:l,resume:null,pause:null},R=new e(S),D(J),R}}):u()}var K=m(d),N=0,O=t(j).body,P=[];return J}]}],oa=["$$animationProvider",function(a){a.drivers.push("$$animateCssDriver");var b="ng-animate-shim",c="ng-anchor",d="ng-anchor-out",e="ng-anchor-in";this.$get=["$animateCss","$rootScope","$$AnimateRunner","$rootElement","$document","$sniffer",function(a,f,g,h,i,j){function k(a){return a.replace(/\bng-\S+\b/g,"")}function l(a,b){return N(a)&&(a=a.split(" ")),N(b)&&(b=b.split(" ")),a.filter(function(a){return b.indexOf(a)===-1}).join(" ")}function m(f,h,i){function j(a){var b={},c=t(a).getBoundingClientRect();return L(["width","height","top","left"],function(a){var d=c[a];switch(a){case"top":d+=p.scrollTop;break;case"left":d+=p.scrollLeft}b[a]=Math.floor(d)+"px"}),b}function m(){var b=a(s,{addClass:d,delay:!0,from:j(h)});return b.$$willAnimate?b:null}function n(a){return a.attr("class")||""}function o(){var b=k(n(i)),c=l(b,u),f=l(u,b),g=a(s,{to:j(i),addClass:e+" "+c,removeClass:d+" "+f,delay:!0});return g.$$willAnimate?g:null}function q(){s.remove(),h.removeClass(b),i.removeClass(b)}var s=K(t(h).cloneNode(!0)),u=k(n(s));h.addClass(b),i.addClass(b),s.addClass(c),r.append(s);var v,w=m();if(!w&&(v=o(),!v))return q();var x=w||v;return{start:function(){function a(){c&&c.end()}var b,c=x.start();return c.done(function(){return c=null,!v&&(v=o())?(c=v.start(),c.done(function(){c=null,q(),b.complete()}),c):(q(),void b.complete())}),b=new g({end:a,cancel:a})}}}function n(a,b,c,d){var e=o(a),f=o(b),h=[];if(L(d,function(a){var b=a.out,d=a.in,e=m(c,b,d);e&&h.push(e)}),e||f||0!==h.length)return{start:function(){function a(){L(b,function(a){a.end()})}var b=[];e&&b.push(e.start()),f&&b.push(f.start()),L(h,function(a){b.push(a.start())});var c=new g({end:a,cancel:a});return g.all(b,function(a){c.complete(a)}),c}}}function o(b){var c=b.element,d=b.options||{};b.structural?(d.structural=d.applyClassesEarly=!0,d.event=b.event,"leave"===d.event&&(d.onDone=d.domOperation)):d.event=null;var e=a(c,d);return e.$$willAnimate?e:null}if(!j.animations&&!j.transitions)return I;var p=t(i).body,q=t(h),r=K(p.parentNode===q?p:q);return function(a){return a.from&&a.to?n(a.from,a.to,a.classes,a.anchors):o(a)}}]}],pa=["$animateProvider",function(a){this.$get=["$injector","$$AnimateRunner","$$rAFMutex","$$jqLite",function(b,c,d,e){function f(c){c=M(c)?c:c.split(" ");for(var d=[],e={},f=0;f<c.length;f++){var g=c[f],h=a.$$registeredAnimations[g];h&&!e[g]&&(d.push(b.get(h)),e[g]=!0)}return d}var g=m(e);return function(a,b,d,e){function h(){e.domOperation(),g(a,e)}function i(a,b,d,e,f){var g;switch(d){case"animate":g=[b,e.from,e.to,f];break;case"setClass":g=[b,p,q,f];break;case"addClass":g=[b,p,f];break;case"removeClass":g=[b,q,f];break;default:g=[b,f]}g.push(e);var h=a.apply(a,g);if(h)if(R(h.start)&&(h=h.start()),h instanceof c)h.done(f);else if(R(h))return h;return I}function j(a,b,d,e,f){var g=[];return L(e,function(e){var h=e[f];h&&g.push(function(){var e,f,g=!1,j=function(a){g||(g=!0,(f||I)(a),e.complete(!a))};return e=new c({end:function(){j()},cancel:function(){j(!0)}}),f=i(h,a,b,d,function(a){var b=a===!1;j(b)}),e})}),g}function k(a,b,d,e,f){var g=j(a,b,d,e,f);if(0===g.length){var h,i;"beforeSetClass"===f?(h=j(a,"removeClass",d,e,"beforeRemoveClass"),i=j(a,"addClass",d,e,"beforeAddClass")):"setClass"===f&&(h=j(a,"removeClass",d,e,"removeClass"),i=j(a,"addClass",d,e,"addClass")),h&&(g=g.concat(h)),i&&(g=g.concat(i))}if(0!==g.length)return function(a){var b=[];return g.length&&L(g,function(a){b.push(a())}),b.length?c.all(b,a):a(),function(a){L(b,function(b){a?b.cancel():b.end()})}}}3===arguments.length&&O(d)&&(e=d,d=null),e=n(e),d||(d=a.attr("class")||"",e.addClass&&(d+=" "+e.addClass),e.removeClass&&(d+=" "+e.removeClass));var l,m,p=e.addClass,q=e.removeClass,r=f(d);if(r.length){var s,t;"leave"==b?(t="leave",s="afterLeave"):(t="before"+b.charAt(0).toUpperCase()+b.substr(1),s=b),"enter"!==b&&"move"!==b&&(l=k(a,b,e,r,t)),m=k(a,b,e,r,s)}if(l||m)return{start:function(){function b(b){i=!0,h(),o(a,e),j.complete(b)}function d(a){i||((f||I)(a),b(a))}var f,g=[];l&&g.push(function(a){f=l(a)}),g.length?g.push(function(a){h(),a(!0)}):h(),m&&g.push(function(a){f=m(a)});var i=!1,j=new c({end:function(){d()},cancel:function(){d(!0)}});return c.chain(g,b),j}}}}]}],qa=["$$animationProvider",function(a){a.drivers.push("$$animateJsDriver"),this.$get=["$$animateJs","$$AnimateRunner",function(a,b){function c(b){var c=b.element,d=b.event,e=b.options,f=b.classes;return a(c,d,f,e)}return function(a){if(a.from&&a.to){var d=c(a.from),e=c(a.to);if(!d&&!e)return;return{start:function(){function a(){return function(){L(f,function(a){a.end()})}}function c(a){g.complete(a)}var f=[];d&&f.push(d.start()),e&&f.push(e.start()),b.all(f,c);var g=new b({end:a(),cancel:a()});return g}}}return c(a)}}]}],ra="data-ng-animate",sa="$ngAnimatePin",ta=["$animateProvider",function(a){function b(a,b,c,d){return g[a].some(function(a){return a(b,c,d)})}function c(a,b){a=a||{};var c=(a.addClass||"").length>0,d=(a.removeClass||"").length>0;return b?c&&d:c||d}var e=1,f=2,g=this.rules={skip:[],cancel:[],join:[]};g.join.push(function(a,b,d){return!b.structural&&c(b.options)}),g.skip.push(function(a,b,d){return!b.structural&&!c(b.options)}),g.skip.push(function(a,b,c){return"leave"==c.event&&b.structural}),g.skip.push(function(a,b,c){return c.structural&&!b.structural}),g.cancel.push(function(a,b,c){return c.structural&&b.structural}),g.cancel.push(function(a,b,c){return c.state===f&&b.structural}),g.cancel.push(function(a,b,c){var d=b.options,e=c.options;return d.addClass&&d.addClass===e.removeClass||d.removeClass&&d.removeClass===e.addClass}),this.$get=["$$rAF","$rootScope","$rootElement","$document","$$HashMap","$$animation","$$AnimateRunner","$templateRequest","$$jqLite",function(g,h,k,l,p,q,s,u,v){function w(a,b){return r(a,b,{})}function x(a,b){var c=t(a),d=[],e=U[b];return e&&L(e,function(a){a.node.contains(c)&&d.push(a.callback)}),d}function y(a,b,c,d){g(function(){L(x(b,a),function(a){a(b,c,d)})})}function z(a,d,g){function j(b,c,d,e){y(c,a,d,e),b.progress(c,d,e)}function k(b){Y(a,g),o(a,g),g.domOperation(),p.complete(!b)}var l,m;a=i(a),a&&(l=t(a),m=a.parent()),g=n(g);var p=new s;if(!l)return k(),p;M(g.addClass)&&(g.addClass=g.addClass.join(" ")),M(g.removeClass)&&(g.removeClass=g.removeClass.join(" ")),g.from&&!O(g.from)&&(g.from=null),g.to&&!O(g.to)&&(g.to=null);var u=[l.className,g.addClass,g.removeClass].join(" ");if(!X(u))return k(),p;var v=["enter","move","leave"].indexOf(d)>=0,x=!I||H.get(l),z=!x&&G.get(l)||{},C=!!z.state;if(x||C&&z.state==e||(x=!E(a,m,d)),x)return k(),p;v&&A(a);var J={structural:v,element:a,event:d,close:k,options:g,runner:p};if(C){var K=b("skip",a,J,z);if(K)return z.state===f?(k(),p):(r(a,z.options,g),z.runner);var L=b("cancel",a,J,z);if(L)z.state===f?z.runner.end():z.structural?z.close():r(a,J.options,z.options);else{var N=b("join",a,J,z);if(N){if(z.state!==f)return d=J.event=z.event,g=r(a,z.options,J.options),p;w(a,g)}}}else w(a,g);var P=J.structural;if(P||(P="animate"===J.event&&Object.keys(J.options.to||{}).length>0||c(J.options)),!P)return k(),B(a),p;v&&D(m);var Q=(z.counter||0)+1;return J.counter=Q,F(a,e,J),h.$$postDigest(function(){var b=G.get(l),e=!b;b=b||{};var h=a.parent()||[],i=h.length>0&&("animate"===b.event||b.structural||c(b.options));if(e||b.counter!==Q||!i)return e&&(Y(a,g),o(a,g)),(e||v&&b.event!==d)&&(g.domOperation(),p.end()),void(i||B(a));d=!b.structural&&c(b.options,!0)?"setClass":b.event,b.structural&&D(h),F(a,f);var m=q(a,d,b.options);m.done(function(b){k(!b);var c=G.get(l);c&&c.counter===Q&&B(t(a)),j(p,d,"close",{})}),p.setHost(m),j(p,d,"start",{})}),p}function A(a){var b=t(a),c=b.querySelectorAll("["+ra+"]");L(c,function(a){var b=parseInt(a.getAttribute(ra)),c=G.get(a);switch(b){case f:c.runner.end();case e:c&&G.remove(a)}})}function B(a){var b=t(a);b.removeAttribute(ra),G.remove(b)}function C(a,b){return t(a)===t(b)}function D(a){function b(a,b){!b.structural&&c(b.options)&&(b.state===f&&b.runner.end(),B(a))}for(var d=t(a);;){if(!d||d.nodeType!==T)break;var e=G.get(d);e&&b(d,e),d=d.parentNode}}function E(a,b,c){var d,e=!1,f=!1,g=!1,h=a.data(sa);for(h&&(b=h);b&&b.length;){f||(f=C(b,k));var i=b[0];if(i.nodeType!==T)break;var j=G.get(i)||{};if(g||(g=j.structural||H.get(i)),P(d)||d===!0){var l=b.data(V);Q(l)&&(d=l)}if(g&&d===!1)break;f||(f=C(b,k),f||(h=b.data(sa),h&&(b=h))),e||(e=C(b,R)),b=b.parent()}var m=!g||d;return m&&f&&e}function F(a,b,c){c=c||{},c.state=b;var d=t(a);d.setAttribute(ra,b);var e=G.get(d),f=e?J(e,c):c;G.put(d,f)}var G=new p,H=new p,I=null,N=h.$watch(function(){return 0===u.totalPendingRequests},function(a){a&&(N(),h.$$postDigest(function(){h.$$postDigest(function(){null===I&&(I=!0)})}))}),R=K(l[0].body),U={},W=a.classNameFilter(),X=W?function(a){return W.test(a)}:function(){return!0},Y=m(v);return{on:function(a,b,c){var d=j(b);U[a]=U[a]||[],U[a].push({node:d,callback:c})},off:function(a,b,c){function d(a,b,c){var d=j(b);return a.filter(function(a){var b=a.node===d&&(!c||a.callback===c);return!b})}var e=U[a];e&&(U[a]=1===arguments.length?null:d(e,b,c))},pin:function(a,b){d(S(a),"element","not an element"),d(S(b),"parentElement","not an element"),a.data(sa,b)},push:function(a,b,c,d){
return c=c||{},c.domOperation=d,z(a,b,c)},enabled:function(a,b){var c=arguments.length;if(0===c)b=!!I;else{var d=S(a);if(d){var e=t(a),f=H.get(e);1===c?b=!f:(b=!!b,b?f&&H.remove(e):H.put(e,!0))}else b=I=!!a}return b}}}]}],ua=["$$rAF",function(a){return function(){var b=!1;return a(function(){b=!0}),function(c){b?c():a(c)}}}],va=["$q","$$rAFMutex",function(a,b){function c(a){this.setHost(a),this._doneCallbacks=[],this._runInAnimationFrame=b(),this._state=0}var d=0,e=1,f=2;return c.chain=function(a,b){function c(){return d===a.length?void b(!0):void a[d](function(a){return a===!1?void b(!1):(d++,void c())})}var d=0;c()},c.all=function(a,b){function c(c){e=e&&c,++d===a.length&&b(e)}var d=0,e=!0;L(a,function(a){a.done(c)})},c.prototype={setHost:function(a){this.host=a||{}},done:function(a){this._state===f?a():this._doneCallbacks.push(a)},progress:I,getPromise:function(){if(!this.promise){var b=this;this.promise=a(function(a,c){b.done(function(b){b===!1?c():a()})})}return this.promise},then:function(a,b){return this.getPromise().then(a,b)},catch:function(a){return this.getPromise().catch(a)},finally:function(a){return this.getPromise().finally(a)},pause:function(){this.host.pause&&this.host.pause()},resume:function(){this.host.resume&&this.host.resume()},end:function(){this.host.end&&this.host.end(),this._resolve(!0)},cancel:function(){this.host.cancel&&this.host.cancel(),this._resolve(!1)},complete:function(a){var b=this;b._state===d&&(b._state=e,b._runInAnimationFrame(function(){b._resolve(a)}))},_resolve:function(a){this._state!==f&&(L(this._doneCallbacks,function(b){b(a)}),this._doneCallbacks.length=0,this._state=f)}},c}],wa=["$animateProvider",function(a){function b(a,b){a.data(h,b)}function c(a){a.removeData(h)}function d(a){return a.data(h)}var f="ng-animate-ref",g=this.drivers=[],h="$$animationRunner";this.$get=["$$jqLite","$rootScope","$injector","$$AnimateRunner","$$rAFScheduler",function(a,h,i,j,k){var l=[],p=m(a),q=0,r=0,s=[];return function(m,u,v){function w(a){var b="["+f+"]",c=a.hasAttribute(f)?[a]:a.querySelectorAll(b),d=[];return L(c,function(a){var b=a.getAttribute(f);b&&b.length&&d.push(a)}),d}function x(a){var b=[],c={};L(a,function(a,d){var e=a.element,g=t(e),h=a.event,i=["enter","move"].indexOf(h)>=0,j=a.structural?w(g):[];if(j.length){var k=i?"to":"from";L(j,function(a){var b=a.getAttribute(f);c[b]=c[b]||{},c[b][k]={animationID:d,element:K(a)}})}else b.push(a)});var d={},e={};return L(c,function(c,f){var g=c.from,h=c.to;if(!g||!h){var i=g?g.animationID:h.animationID,j=i.toString();return void(d[j]||(d[j]=!0,b.push(a[i])))}var k=a[g.animationID],l=a[h.animationID],m=g.animationID.toString();if(!e[m]){var n=e[m]={structural:!0,beforeStart:function(){k.beforeStart(),l.beforeStart()},close:function(){k.close(),l.close()},classes:y(k.classes,l.classes),from:k,to:l,anchors:[]};n.classes.length?b.push(n):(b.push(k),b.push(l))}e[m].anchors.push({out:g.element,in:h.element})}),b}function y(a,b){a=a.split(" "),b=b.split(" ");for(var c=[],d=0;d<a.length;d++){var e=a[d];if("ng-"!==e.substring(0,3))for(var f=0;f<b.length;f++)if(e===b[f]){c.push(e);break}}return c.join(" ")}function z(a){for(var b=g.length-1;b>=0;b--){var c=g[b];if(i.has(c)){var d=i.get(c),e=d(a);if(e)return e}}}function A(){m.addClass(U),H&&a.addClass(m,H)}function B(a,b){function c(a){d(a).setHost(b)}a.from&&a.to?(c(a.from.element),c(a.to.element)):c(a.element)}function C(){var a=d(m);!a||"leave"===u&&v.$$domOperationFired||a.end()}function D(b){m.off("$destroy",C),c(m),p(m,v),o(m,v),v.domOperation(),H&&a.removeClass(m,H),m.removeClass(U),F.complete(!b)}v=n(v);var E=["enter","move","leave"].indexOf(u)>=0,F=new j({end:function(){D()},cancel:function(){D(!0)}});if(!g.length)return D(),F;b(m,F);var G=e(m.attr("class"),e(v.addClass,v.removeClass)),H=v.tempClasses;H&&(G+=" "+H,v.tempClasses=null);var I;return E||(I=q,q+=1),l.push({element:m,classes:G,event:u,classBasedIndex:I,structural:E,options:v,beforeStart:A,close:D}),m.on("$destroy",C),l.length>1?F:(h.$$postDigest(function(){r=q,q=0,s.length=0;var a=[];L(l,function(b){d(b.element)&&a.push(b)}),l.length=0,L(x(a),function(a){function b(){a.beforeStart();var b,c=a.close,e=a.anchors?a.from.element||a.to.element:a.element;if(d(e)){var f=z(a);f&&(b=f.start)}if(b){var g=b();g.done(function(a){c(!a)}),B(a,g)}else c()}a.structural?b():(s.push({node:t(a.element),fn:b}),a.classBasedIndex===r-1&&(s=s.sort(function(a,b){return b.node.contains(a.node)}).map(function(a){return a.fn}),k(s)))})}),F)}}]}];b.module("ngAnimate",[]).directive("ngAnimateChildren",X).factory("$$rAFMutex",ua).factory("$$rAFScheduler",W).factory("$$AnimateRunner",va).provider("$$animateQueue",ta).provider("$$animation",wa).provider("$animateCss",na).provider("$$animateCssDriver",oa).provider("$$animateJs",pa).provider("$$animateJsDriver",qa)}(window,window.angular),function(a,b,c){"use strict";function d(){this.$get=["$$sanitizeUri",function(a){return function(b){var c=[];return g(b,j(c,function(b,c){return!/^unsafe/.test(a(b,c))})),c.join("")}}]}function e(a){var c=[],d=j(c,b.noop);return d.chars(a),c.join("")}function f(a,c){var d,e={},f=a.split(",");for(d=0;d<f.length;d++)e[c?b.lowercase(f[d]):f[d]]=!0;return e}function g(a,c){function d(a,d,f,g){if(d=b.lowercase(d),z[d])for(;t.last()&&A[t.last()];)e("",t.last());y[d]&&t.last()==d&&e("",d),g=v[d]||!!g,g||t.push(d);var i={};f.replace(n,function(a,b,c,d,e){var f=c||d||e||"";i[b]=h(f)}),c.start&&c.start(d,i,g)}function e(a,d){var e,f=0;if(d=b.lowercase(d))for(f=t.length-1;f>=0&&t[f]!=d;f--);if(f>=0){for(e=t.length-1;e>=f;e--)c.end&&c.end(t[e]);t.length=f}}"string"!=typeof a&&(a=null===a||"undefined"==typeof a?"":""+a);var f,g,i,j,t=[],u=a;for(t.last=function(){return t[t.length-1]};a;){if(j="",g=!0,t.last()&&C[t.last()]?(a=a.replace(new RegExp("([\\W\\w]*)<\\s*\\/\\s*"+t.last()+"[^>]*>","i"),function(a,b){return b=b.replace(q,"$1").replace(s,"$1"),c.chars&&c.chars(h(b)),""}),e("",t.last())):(0===a.indexOf("<!--")?(f=a.indexOf("--",4),f>=0&&a.lastIndexOf("-->",f)===f&&(c.comment&&c.comment(a.substring(4,f)),a=a.substring(f+3),g=!1)):r.test(a)?(i=a.match(r),i&&(a=a.replace(i[0],""),g=!1)):p.test(a)?(i=a.match(m),i&&(a=a.substring(i[0].length),i[0].replace(m,e),g=!1)):o.test(a)&&(i=a.match(l),i?(i[4]&&(a=a.substring(i[0].length),i[0].replace(l,d)),g=!1):(j+="<",a=a.substring(1))),g&&(f=a.indexOf("<"),j+=f<0?a:a.substring(0,f),a=f<0?"":a.substring(f),c.chars&&c.chars(h(j)))),a==u)throw k("badparse","The sanitizer was unable to parse the following block of html: {0}",a);u=a}e()}function h(a){return a?(I.innerHTML=a.replace(/</g,"&lt;"),I.textContent):""}function i(a){return a.replace(/&/g,"&amp;").replace(t,function(a){var b=a.charCodeAt(0),c=a.charCodeAt(1);return"&#"+(1024*(b-55296)+(c-56320)+65536)+";"}).replace(u,function(a){return"&#"+a.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function j(a,c){var d=!1,e=b.bind(a,a.push);return{start:function(a,f,g){a=b.lowercase(a),!d&&C[a]&&(d=a),d||D[a]!==!0||(e("<"),e(a),b.forEach(f,function(d,f){var g=b.lowercase(f),h="img"===a&&"src"===g||"background"===g;H[g]!==!0||E[g]===!0&&!c(d,h)||(e(" "),e(f),e('="'),e(i(d)),e('"'))}),e(g?"/>":">"))},end:function(a){a=b.lowercase(a),d||D[a]!==!0||(e("</"),e(a),e(">")),a==d&&(d=!1)},chars:function(a){d||e(i(a))}}}var k=b.$$minErr("$sanitize"),l=/^<((?:[a-zA-Z])[\w:-]*)((?:\s+[\w:-]+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)\s*(>?)/,m=/^<\/\s*([\w:-]+)[^>]*>/,n=/([\w:-]+)(?:\s*=\s*(?:(?:"((?:[^"])*)")|(?:'((?:[^'])*)')|([^>\s]+)))?/g,o=/^</,p=/^<\//,q=/<!--(.*?)-->/g,r=/<!DOCTYPE([^>]*?)>/i,s=/<!\[CDATA\[(.*?)]]>/g,t=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=/([^\#-~| |!])/g,v=f("area,br,col,hr,img,wbr"),w=f("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),x=f("rp,rt"),y=b.extend({},x,w),z=b.extend({},w,f("address,article,aside,blockquote,caption,center,del,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,map,menu,nav,ol,pre,script,section,table,ul")),A=b.extend({},x,f("a,abbr,acronym,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,q,ruby,rp,rt,s,samp,small,span,strike,strong,sub,sup,time,tt,u,var")),B=f("circle,defs,desc,ellipse,font-face,font-face-name,font-face-src,g,glyph,hkern,image,linearGradient,line,marker,metadata,missing-glyph,mpath,path,polygon,polyline,radialGradient,rect,stop,svg,switch,text,title,tspan,use"),C=f("script,style"),D=b.extend({},v,z,A,y,B),E=f("background,cite,href,longdesc,src,usemap,xlink:href"),F=f("abbr,align,alt,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,coords,dir,face,headers,height,hreflang,hspace,ismap,lang,language,nohref,nowrap,rel,rev,rows,rowspan,rules,scope,scrolling,shape,size,span,start,summary,target,title,type,valign,value,vspace,width"),G=f("accent-height,accumulate,additive,alphabetic,arabic-form,ascent,baseProfile,bbox,begin,by,calcMode,cap-height,class,color,color-rendering,content,cx,cy,d,dx,dy,descent,display,dur,end,fill,fill-rule,font-family,font-size,font-stretch,font-style,font-variant,font-weight,from,fx,fy,g1,g2,glyph-name,gradientUnits,hanging,height,horiz-adv-x,horiz-origin-x,ideographic,k,keyPoints,keySplines,keyTimes,lang,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mathematical,max,min,offset,opacity,orient,origin,overline-position,overline-thickness,panose-1,path,pathLength,points,preserveAspectRatio,r,refX,refY,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,rotate,rx,ry,slope,stemh,stemv,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,systemLanguage,target,text-anchor,to,transform,type,u1,u2,underline-position,underline-thickness,unicode,unicode-range,units-per-em,values,version,viewBox,visibility,width,widths,x,x-height,x1,x2,xlink:actuate,xlink:arcrole,xlink:role,xlink:show,xlink:title,xlink:type,xml:base,xml:lang,xml:space,xmlns,xmlns:xlink,y,y1,y2,zoomAndPan",!0),H=b.extend({},E,G,F),I=document.createElement("pre");b.module("ngSanitize",[]).provider("$sanitize",d),b.module("ngSanitize").filter("linky",["$sanitize",function(a){var c=/((ftp|https?):\/\/|(www\.)|(mailto:)?[A-Za-z0-9._%+-]+@)\S*[^\s.;,(){}<>"”’]/,d=/^mailto:/;return function(f,g){function h(a){a&&n.push(e(a))}function i(a,c){n.push("<a "),b.isDefined(g)&&n.push('target="',g,'" '),n.push('href="',a.replace(/"/g,"&quot;"),'">'),h(c),n.push("</a>")}if(!f)return f;for(var j,k,l,m=f,n=[];j=m.match(c);)k=j[0],j[2]||j[4]||(k=(j[3]?"http://":"mailto:")+k),l=j.index,h(m.substr(0,l)),i(k,j[0].replace(d,"")),m=m.substring(l+j[0].length);return h(m),a(n.join(""))}}])}(window,window.angular),function(a,b,c){"use strict";function d(a){return null!=a&&""!==a&&"hasOwnProperty"!==a&&h.test("."+a)}function e(a,b){if(!d(b))throw g("badmember",'Dotted member path "@{0}" is invalid.',b);for(var e=b.split("."),f=0,h=e.length;f<h&&a!==c;f++){var i=e[f];a=null!==a?a[i]:c}return a}function f(a,c){c=c||{},b.forEach(c,function(a,b){delete c[b]});for(var d in a)!a.hasOwnProperty(d)||"$"===d.charAt(0)&&"$"===d.charAt(1)||(c[d]=a[d]);return c}var g=b.$$minErr("$resource"),h=/^(\.[a-zA-Z_$@][0-9a-zA-Z_$@]*)+$/;b.module("ngResource",["ng"]).provider("$resource",function(){var a=this;this.defaults={stripTrailingSlashes:!0,actions:{get:{method:"GET"},save:{method:"POST"},query:{method:"GET",isArray:!0},remove:{method:"DELETE"},delete:{method:"DELETE"}}},this.$get=["$http","$q",function(d,h){function i(a){return j(a,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function j(a,b){return encodeURIComponent(a).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,b?"%20":"+")}function k(b,c){this.template=b,this.defaults=o({},a.defaults,c),this.urlParams={}}function l(i,j,r,s){function t(a,b){var c={};return b=o({},j,b),n(b,function(b,d){q(b)&&(b=b()),c[d]=b&&b.charAt&&"@"==b.charAt(0)?e(a,b.substr(1)):b}),c}function u(a){return a.resource}function v(a){f(a||{},this)}var w=new k(i,s);return r=o({},a.defaults.actions,r),v.prototype.toJSON=function(){var a=o({},this);return delete a.$promise,delete a.$resolved,a},n(r,function(a,e){var i=/^(POST|PUT|PATCH)$/i.test(a.method);v[e]=function(j,k,l,r){var s,x,y,z={};switch(arguments.length){case 4:y=r,x=l;case 3:case 2:if(!q(k)){z=j,s=k,x=l;break}if(q(j)){x=j,y=k;break}x=k,y=l;case 1:q(j)?x=j:i?s=j:z=j;break;case 0:break;default:throw g("badargs","Expected up to 4 arguments [params, data, success, error], got {0} arguments",arguments.length)}var A=this instanceof v,B=A?s:a.isArray?[]:new v(s),C={},D=a.interceptor&&a.interceptor.response||u,E=a.interceptor&&a.interceptor.responseError||c;n(a,function(a,b){"params"!=b&&"isArray"!=b&&"interceptor"!=b&&(C[b]=p(a))}),i&&(C.data=s),w.setUrlParams(C,o({},t(s,a.params||{}),z),a.url);var F=d(C).then(function(c){var d=c.data,h=B.$promise;if(d){if(b.isArray(d)!==!!a.isArray)throw g("badcfg","Error in resource configuration for action `{0}`. Expected response to contain an {1} but got an {2} (Request: {3} {4})",e,a.isArray?"array":"object",b.isArray(d)?"array":"object",C.method,C.url);a.isArray?(B.length=0,n(d,function(a){"object"==typeof a?B.push(new v(a)):B.push(a)})):(f(d,B),B.$promise=h)}return B.$resolved=!0,c.resource=B,c},function(a){return B.$resolved=!0,(y||m)(a),h.reject(a)});return F=F.then(function(a){var b=D(a);return(x||m)(b,a.headers),b},E),A?F:(B.$promise=F,B.$resolved=!1,B)},v.prototype["$"+e]=function(a,b,c){q(a)&&(c=b,b=a,a={});var d=v[e].call(this,a,this,b,c);return d.$promise||d}}),v.bind=function(a){return l(i,o({},j,a),r)},v}var m=b.noop,n=b.forEach,o=b.extend,p=b.copy,q=b.isFunction;return k.prototype={setUrlParams:function(a,c,d){var e,f,h=this,j=d||h.template,k=h.urlParams={};n(j.split(/\W/),function(a){if("hasOwnProperty"===a)throw g("badname","hasOwnProperty is not a valid parameter name.");!new RegExp("^\\d+$").test(a)&&a&&new RegExp("(^|[^\\\\]):"+a+"(\\W|$)").test(j)&&(k[a]=!0)}),j=j.replace(/\\:/g,":"),c=c||{},n(h.urlParams,function(a,d){e=c.hasOwnProperty(d)?c[d]:h.defaults[d],b.isDefined(e)&&null!==e?(f=i(e),j=j.replace(new RegExp(":"+d+"(\\W|$)","g"),function(a,b){return f+b})):j=j.replace(new RegExp("(/?):"+d+"(\\W|$)","g"),function(a,b,c){return"/"==c.charAt(0)?c:b+c})}),h.defaults.stripTrailingSlashes&&(j=j.replace(/\/+$/,"")||"/"),j=j.replace(/\/\.(?=\w+($|\?))/,"."),a.url=j.replace(/\/\\\./,"/."),n(c,function(b,c){h.urlParams[c]||(a.params=a.params||{},a.params[c]=b)})}},l}]})}(window,window.angular),function(){"use strict";var a={TAB:9,ENTER:13,ESC:27,SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40,SHIFT:16,CTRL:17,ALT:18,PAGE_UP:33,PAGE_DOWN:34,HOME:36,END:35,BACKSPACE:8,DELETE:46,COMMAND:91,MAP:{91:"COMMAND",8:"BACKSPACE",9:"TAB",13:"ENTER",16:"SHIFT",17:"CTRL",18:"ALT",19:"PAUSEBREAK",20:"CAPSLOCK",27:"ESC",32:"SPACE",33:"PAGE_UP",34:"PAGE_DOWN",35:"END",36:"HOME",37:"LEFT",38:"UP",39:"RIGHT",40:"DOWN",43:"+",44:"PRINTSCREEN",45:"INSERT",46:"DELETE",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",61:"=",65:"A",66:"B",67:"C",68:"D",69:"E",70:"F",71:"G",72:"H",73:"I",74:"J",75:"K",76:"L",77:"M",78:"N",79:"O",80:"P",81:"Q",82:"R",83:"S",84:"T",85:"U",86:"V",87:"W",88:"X",89:"Y",90:"Z",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",106:"*",107:"+",109:"-",110:".",111:"/",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NUMLOCK",145:"SCROLLLOCK",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},isControl:function(b){var c=b.which;switch(c){case a.COMMAND:case a.SHIFT:case a.CTRL:case a.ALT:return!0}return!!b.metaKey},isFunctionKey:function(a){return a=a.which?a.which:a,a>=112&&a<=123},isVerticalMovement:function(b){return~[a.UP,a.DOWN].indexOf(b)},isHorizontalMovement:function(b){return~[a.LEFT,a.RIGHT,a.BACKSPACE,a.DELETE].indexOf(b)}};void 0===angular.element.prototype.querySelectorAll&&(angular.element.prototype.querySelectorAll=function(a){return angular.element(this[0].querySelectorAll(a))}),void 0===angular.element.prototype.closest&&(angular.element.prototype.closest=function(a){for(var b=this[0],c=b.matches||b.webkitMatchesSelector||b.mozMatchesSelector||b.msMatchesSelector;b;){if(c.bind(b)(a))return b;b=b.parentElement}return!1});var b=0,c=angular.module("ui.select",[]).constant("uiSelectConfig",{theme:"bootstrap",searchEnabled:!0,sortable:!1,placeholder:"",refreshDelay:1e3,closeOnSelect:!0,generateId:function(){return b++},appendToBody:!1}).service("uiSelectMinErr",function(){var a=angular.$$minErr("ui.select");return function(){var b=a.apply(this,arguments),c=b.message.replace(new RegExp("\nhttp://errors.angularjs.org/.*"),"");return new Error(c)}}).directive("uisTranscludeAppend",function(){return{link:function(a,b,c,d,e){e(a,function(a){b.append(a)})}}}).filter("highlight",function(){function a(a){return a.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")}return function(b,c){return c&&b?b.replace(new RegExp(a(c),"gi"),'<span class="ui-select-highlight">$&</span>'):b}}).factory("uisOffset",["$document","$window",function(a,b){return function(c){var d=c[0].getBoundingClientRect();return{width:d.width||c.prop("offsetWidth"),height:d.height||c.prop("offsetHeight"),top:d.top+(b.pageYOffset||a[0].documentElement.scrollTop),left:d.left+(b.pageXOffset||a[0].documentElement.scrollLeft)}}}]);c.directive("uiSelectChoices",["uiSelectConfig","uisRepeatParser","uiSelectMinErr","$compile",function(a,b,c,d){return{restrict:"EA",require:"^uiSelect",replace:!0,transclude:!0,templateUrl:function(b){var c=b.parent().attr("theme")||a.theme;return c+"/choices.tpl.html"},compile:function(e,f){if(!f.repeat)throw c("repeat","Expected 'repeat' expression.");return function(e,f,g,h,i){var j=g.groupBy;if(h.parseRepeatAttr(g.repeat,j),h.disableChoiceExpression=g.uiDisableChoice,h.onHighlightCallback=g.onHighlight,j){var k=f.querySelectorAll(".ui-select-choices-group");if(1!==k.length)throw c("rows","Expected 1 .ui-select-choices-group but got '{0}'.",k.length);k.attr("ng-repeat",b.getGroupNgRepeatExpression())}var l=f.querySelectorAll(".ui-select-choices-row");if(1!==l.length)throw c("rows","Expected 1 .ui-select-choices-row but got '{0}'.",l.length);l.attr("ng-repeat",b.getNgRepeatExpression(h.parserResult.itemName,"$select.items",h.parserResult.trackByExp,j)).attr("ng-if","$select.open").attr("ng-mouseenter","$select.setActiveItem("+h.parserResult.itemName+")").attr("ng-click","$select.select("+h.parserResult.itemName+",false,$event)");var m=f.querySelectorAll(".ui-select-choices-row-inner");if(1!==m.length)throw c("rows","Expected 1 .ui-select-choices-row-inner but got '{0}'.",m.length);m.attr("uis-transclude-append",""),d(f,i)(e),e.$watch("$select.search",function(a){a&&!h.open&&h.multiple&&h.activate(!1,!0),h.activeIndex=h.tagging.isActivated?-1:0,h.refresh(g.refresh)}),g.$observe("refreshDelay",function(){var b=e.$eval(g.refreshDelay);h.refreshDelay=void 0!==b?b:a.refreshDelay})}}}}]),c.controller("uiSelectCtrl",["$scope","$element","$timeout","$filter","uisRepeatParser","uiSelectMinErr","uiSelectConfig",function(b,c,d,e,f,g,h){function i(){(l.resetSearchInput||void 0===l.resetSearchInput&&h.resetSearchInput)&&(l.search=m,l.selected&&l.items.length&&!l.multiple&&(l.activeIndex=l.items.indexOf(l.selected)))}function j(b){var c=!0;switch(b){case a.DOWN:!l.open&&l.multiple?l.activate(!1,!0):l.activeIndex<l.items.length-1&&l.activeIndex++;break;case a.UP:!l.open&&l.multiple?l.activate(!1,!0):(l.activeIndex>0||0===l.search.length&&l.tagging.isActivated&&l.activeIndex>-1)&&l.activeIndex--;break;case a.TAB:l.multiple&&!l.open||l.select(l.items[l.activeIndex],!0);break;case a.ENTER:l.open&&l.activeIndex>=0?l.select(l.items[l.activeIndex]):l.activate(!1,!0);break;case a.ESC:l.close();break;default:c=!1}return c}function k(){var a=c.querySelectorAll(".ui-select-choices-content"),b=a.querySelectorAll(".ui-select-choices-row");if(b.length<1)throw g("choices","Expected multiple .ui-select-choices-row but got '{0}'.",b.length);if(!(l.activeIndex<0)){var d=b[l.activeIndex],e=d.offsetTop+d.clientHeight-a[0].scrollTop,f=a[0].offsetHeight;e>f?a[0].scrollTop+=e-f:e<d.clientHeight&&(l.isGrouped&&0===l.activeIndex?a[0].scrollTop=0:a[0].scrollTop-=d.clientHeight-e)}}var l=this,m="";if(l.placeholder=h.placeholder,l.searchEnabled=h.searchEnabled,l.sortable=h.sortable,l.refreshDelay=h.refreshDelay,l.removeSelected=!1,l.closeOnSelect=!0,l.search=m,l.activeIndex=0,l.items=[],l.open=!1,l.focus=!1,l.disabled=!1,l.selected=void 0,l.focusser=void 0,l.resetSearchInput=!0,l.multiple=void 0,l.disableChoiceExpression=void 0,l.tagging={isActivated:!1,fct:void 0},l.taggingTokens={isActivated:!1,tokens:void 0},l.lockChoiceExpression=void 0,l.clickTriggeredSelect=!1,l.$filter=e,l.searchInput=c.querySelectorAll("input.ui-select-search"),1!==l.searchInput.length)throw g("searchInput","Expected 1 input.ui-select-search but got '{0}'.",l.searchInput.length);l.isEmpty=function(){return angular.isUndefined(l.selected)||null===l.selected||""===l.selected},l.activate=function(a,c){l.disabled||l.open||(c||i(),b.$broadcast("uis:activate"),l.open=!0,l.activeIndex=l.activeIndex>=l.items.length?0:l.activeIndex,l.activeIndex===-1&&l.taggingLabel!==!1&&(l.activeIndex=0),d(function(){l.search=a||l.search,l.searchInput[0].focus()}))},l.findGroupByName=function(a){return l.groups&&l.groups.filter(function(b){return b.name===a})[0]},l.parseRepeatAttr=function(a,c){function d(a){l.groups=[],angular.forEach(a,function(a){var d=b.$eval(c),e=angular.isFunction(d)?d(a):a[d],f=l.findGroupByName(e);f?f.items.push(a):l.groups.push({name:e,items:[a]})}),l.items=[],l.groups.forEach(function(a){l.items=l.items.concat(a.items)})}function e(a){l.items=a}l.setItemsFn=c?d:e,l.parserResult=f.parse(a),l.isGrouped=!!c,l.itemProperty=l.parserResult.itemName,l.refreshItems=function(a){a=a||l.parserResult.source(b);var c=l.selected;if(angular.isArray(c)&&!c.length||!l.removeSelected)l.setItemsFn(a);else if(void 0!==a){var d=a.filter(function(a){return c.indexOf(a)<0});l.setItemsFn(d)}},b.$watchCollection(l.parserResult.source,function(a){if(void 0===a||null===a)l.items=[];else{if(!angular.isArray(a))throw g("items","Expected an array but got '{0}'.",a);l.refreshItems(a),l.ngModel.$modelValue=null}})};var n;l.refresh=function(a){void 0!==a&&(n&&d.cancel(n),n=d(function(){b.$eval(a)},l.refreshDelay))},l.setActiveItem=function(a){l.activeIndex=l.items.indexOf(a)},l.isActive=function(a){if(!l.open)return!1;var b=l.items.indexOf(a[l.itemProperty]),c=b===l.activeIndex;return!(!c||b<0&&l.taggingLabel!==!1||b<0&&l.taggingLabel===!1)&&(c&&!angular.isUndefined(l.onHighlightCallback)&&a.$eval(l.onHighlightCallback),c)},l.isDisabled=function(a){if(l.open){var b,c=l.items.indexOf(a[l.itemProperty]),d=!1;return c>=0&&!angular.isUndefined(l.disableChoiceExpression)&&(b=l.items[c],d=!!a.$eval(l.disableChoiceExpression),b._uiSelectChoiceDisabled=d),d}},l.select=function(a,c,e){if(void 0===a||!a._uiSelectChoiceDisabled){if(!l.items&&!l.search)return;if(!a||!a._uiSelectChoiceDisabled){if(l.tagging.isActivated){if(l.taggingLabel===!1)if(l.activeIndex<0){if(a=void 0!==l.tagging.fct?l.tagging.fct(l.search):l.search,!a||angular.equals(l.items[0],a))return}else a=l.items[l.activeIndex];else if(0===l.activeIndex){if(void 0===a)return;if(void 0!==l.tagging.fct&&"string"==typeof a){if(a=l.tagging.fct(l.search),!a)return}else"string"==typeof a&&(a=a.replace(l.taggingLabel,"").trim())}if(l.selected&&angular.isArray(l.selected)&&l.selected.filter(function(b){return angular.equals(b,a)}).length>0)return void l.close(c)}b.$broadcast("uis:select",a);var f={};f[l.parserResult.itemName]=a,d(function(){l.onSelectCallback(b,{$item:a,$model:l.parserResult.modelMapper(b,f)})}),l.closeOnSelect&&l.close(c),e&&"click"===e.type&&(l.clickTriggeredSelect=!0)}}},l.close=function(a){l.open&&(l.ngModel&&l.ngModel.$setTouched&&l.ngModel.$setTouched(),i(),l.open=!1,b.$broadcast("uis:close",a))},l.setFocus=function(){l.focus||l.focusInput[0].focus()},l.clear=function(a){l.select(void 0),a.stopPropagation(),l.focusser[0].focus()},l.toggle=function(a){l.open?(l.close(),a.preventDefault(),a.stopPropagation()):l.activate()},l.isLocked=function(a,b){var c,d=l.selected[b];return d&&!angular.isUndefined(l.lockChoiceExpression)&&(c=!!a.$eval(l.lockChoiceExpression),d._uiSelectChoiceLocked=c),c};var o=null;l.sizeSearchInput=function(){var a=l.searchInput[0],c=l.searchInput.parent().parent()[0],e=function(){return c.clientWidth*!!a.offsetParent},f=function(b){if(0===b)return!1;var c=b-a.offsetLeft-10;return c<50&&(c=b),l.searchInput.css("width",c+"px"),!0};l.searchInput.css("width","10px"),d(function(){null!==o||f(e())||(o=b.$watch(e,function(a){f(a)&&(o(),o=null)}))})},l.searchInput.on("keydown",function(c){var e=c.which;b.$apply(function(){var b=!1;if((l.items.length>0||l.tagging.isActivated)&&(j(e),l.taggingTokens.isActivated)){for(var f=0;f<l.taggingTokens.tokens.length;f++)l.taggingTokens.tokens[f]===a.MAP[c.keyCode]&&l.search.length>0&&(b=!0);b&&d(function(){l.searchInput.triggerHandler("tagged");var b=l.search.replace(a.MAP[c.keyCode],"").trim();l.tagging.fct&&(b=l.tagging.fct(b)),b&&l.select(b,!0)})}}),a.isVerticalMovement(e)&&l.items.length>0&&k()}),l.searchInput.on("paste",function(a){var b=a.originalEvent.clipboardData.getData("text/plain");if(b&&b.length>0&&l.taggingTokens.isActivated&&l.tagging.fct){var c=b.split(l.taggingTokens.tokens[0]);c&&c.length>0&&(angular.forEach(c,function(a){var b=l.tagging.fct(a);b&&l.select(b,!0)}),a.preventDefault(),a.stopPropagation())}}),l.searchInput.on("tagged",function(){d(function(){i()})}),b.$on("$destroy",function(){l.searchInput.off("keyup keydown tagged blur paste")})}]),c.directive("uiSelect",["$document","uiSelectConfig","uiSelectMinErr","uisOffset","$compile","$parse","$timeout",function(a,b,c,d,e,f,g){return{restrict:"EA",templateUrl:function(a,c){var d=c.theme||b.theme;return d+(angular.isDefined(c.multiple)?"/select-multiple.tpl.html":"/select.tpl.html")},replace:!0,transclude:!0,require:["uiSelect","^ngModel"],scope:!0,controller:"uiSelectCtrl",controllerAs:"$select",compile:function(e,h){return angular.isDefined(h.multiple)?e.append("<ui-select-multiple/>").removeAttr("multiple"):e.append("<ui-select-single/>"),function(e,h,i,j,k){function l(a){if(o.open){var b=!1;if(b=window.jQuery?window.jQuery.contains(h[0],a.target):h[0].contains(a.target),!b&&!o.clickTriggeredSelect){var c=["input","button","textarea"],d=angular.element(a.target).scope(),f=d&&d.$select&&d.$select!==o;f||(f=~c.indexOf(a.target.tagName.toLowerCase())),o.close(f),e.$digest()}o.clickTriggeredSelect=!1}}function m(){var b=d(h);r=angular.element('<div class="ui-select-placeholder"></div>'),r[0].style.width=b.width+"px",r[0].style.height=b.height+"px",h.after(r),s=h[0].style.width,a.find("body").append(h),h[0].style.position="absolute",h[0].style.left=b.left+"px",h[0].style.top=b.top+"px",h[0].style.width=b.width+"px"}function n(){null!==r&&(r.replaceWith(h),r=null,h[0].style.position="",h[0].style.left="",h[0].style.top="",h[0].style.width=s)}var o=j[0],p=j[1];o.generatedId=b.generateId(),o.baseTitle=i.title||"Select box",o.focusserTitle=o.baseTitle+" focus",o.focusserId="focusser-"+o.generatedId,o.closeOnSelect=function(){return angular.isDefined(i.closeOnSelect)?f(i.closeOnSelect)():b.closeOnSelect}(),o.onSelectCallback=f(i.onSelect),o.onRemoveCallback=f(i.onRemove),o.ngModel=p,o.choiceGrouped=function(a){return o.isGrouped&&a&&a.name},i.tabindex&&i.$observe("tabindex",function(a){o.focusInput.attr("tabindex",a),h.removeAttr("tabindex")}),e.$watch("searchEnabled",function(){var a=e.$eval(i.searchEnabled);o.searchEnabled=void 0!==a?a:b.searchEnabled}),e.$watch("sortable",function(){var a=e.$eval(i.sortable);o.sortable=void 0!==a?a:b.sortable}),i.$observe("disabled",function(){o.disabled=void 0!==i.disabled&&i.disabled}),i.$observe("resetSearchInput",function(){var a=e.$eval(i.resetSearchInput);o.resetSearchInput=void 0===a||a}),i.$observe("tagging",function(){if(void 0!==i.tagging){var a=e.$eval(i.tagging);o.tagging={isActivated:!0,fct:a!==!0?a:void 0}}else o.tagging={isActivated:!1,fct:void 0}}),i.$observe("taggingLabel",function(){void 0!==i.tagging&&("false"===i.taggingLabel?o.taggingLabel=!1:o.taggingLabel=void 0!==i.taggingLabel?i.taggingLabel:"(new)")}),i.$observe("taggingTokens",function(){if(void 0!==i.tagging){var a=void 0!==i.taggingTokens?i.taggingTokens.split("|"):[",","ENTER"];o.taggingTokens={isActivated:!0,tokens:a}}}),angular.isDefined(i.autofocus)&&g(function(){o.setFocus()}),angular.isDefined(i.focusOn)&&e.$on(i.focusOn,function(){g(function(){o.setFocus()})}),a.on("click",l),e.$on("$destroy",function(){a.off("click",l)}),k(e,function(a){var b=angular.element("<div>").append(a),d=b.querySelectorAll(".ui-select-match");if(d.removeAttr("ui-select-match"),d.removeAttr("data-ui-select-match"),1!==d.length)throw c("transcluded","Expected 1 .ui-select-match but got '{0}'.",d.length);h.querySelectorAll(".ui-select-match").replaceWith(d);var e=b.querySelectorAll(".ui-select-choices");if(e.removeAttr("ui-select-choices"),e.removeAttr("data-ui-select-choices"),1!==e.length)throw c("transcluded","Expected 1 .ui-select-choices but got '{0}'.",e.length);h.querySelectorAll(".ui-select-choices").replaceWith(e)});var q=e.$eval(i.appendToBody);(void 0!==q?q:b.appendToBody)&&(e.$watch("$select.open",function(a){a?m():n()}),e.$on("$destroy",function(){n()}));var r=null,s=""}}}}]),c.directive("uiSelectMatch",["uiSelectConfig",function(a){return{restrict:"EA",require:"^uiSelect",replace:!0,transclude:!0,templateUrl:function(b){var c=b.parent().attr("theme")||a.theme,d=b.parent().attr("multiple");return c+(d?"/match-multiple.tpl.html":"/match.tpl.html")},link:function(b,c,d,e){function f(a){e.allowClear=!!angular.isDefined(a)&&(""===a||"true"===a.toLowerCase())}e.lockChoiceExpression=d.uiLockChoice,d.$observe("placeholder",function(b){e.placeholder=void 0!==b?b:a.placeholder}),d.$observe("allowClear",f),f(d.allowClear),e.multiple&&e.sizeSearchInput()}}}]),c.directive("uiSelectMultiple",["uiSelectMinErr","$timeout",function(b,c){return{restrict:"EA",require:["^uiSelect","^ngModel"],controller:["$scope","$timeout",function(a,b){var c,d=this,e=a.$select;a.$evalAsync(function(){c=a.ngModel}),d.activeMatchIndex=-1,d.updateModel=function(){c.$setViewValue(Date.now()),d.refreshComponent()},d.refreshComponent=function(){e.refreshItems(),e.sizeSearchInput()},d.removeChoice=function(c){var f=e.selected[c];if(!f._uiSelectChoiceLocked){var g={};g[e.parserResult.itemName]=f,e.selected.splice(c,1),d.activeMatchIndex=-1,e.sizeSearchInput(),b(function(){e.onRemoveCallback(a,{$item:f,$model:e.parserResult.modelMapper(a,g)})}),d.updateModel()}},d.getPlaceholder=function(){if(!e.selected.length)return e.placeholder}}],controllerAs:"$selectMultiple",link:function(d,e,f,g){function h(a){return angular.isNumber(a.selectionStart)?a.selectionStart:a.value.length}function i(b){function c(){switch(b){case a.LEFT:return~n.activeMatchIndex?k:g;case a.RIGHT:return~n.activeMatchIndex&&i!==g?j:(l.activate(),!1);case a.BACKSPACE:return~n.activeMatchIndex?(n.removeChoice(i),k):g;case a.DELETE:return!!~n.activeMatchIndex&&(n.removeChoice(n.activeMatchIndex),i)}}var d=h(l.searchInput[0]),e=l.selected.length,f=0,g=e-1,i=n.activeMatchIndex,j=n.activeMatchIndex+1,k=n.activeMatchIndex-1,m=i;return!(d>0||l.search.length&&b==a.RIGHT)&&(l.close(),m=c(),l.selected.length&&m!==!1?n.activeMatchIndex=Math.min(g,Math.max(f,m)):n.activeMatchIndex=-1,!0)}function j(a){if(void 0===a||void 0===l.search)return!1;var b=a.filter(function(a){return void 0!==l.search.toUpperCase()&&void 0!==a&&a.toUpperCase()===l.search.toUpperCase()}).length>0;return b}function k(a,b){var c=-1;if(angular.isArray(a))for(var d=angular.copy(a),e=0;e<d.length;e++)if(void 0===l.tagging.fct)d[e]+" "+l.taggingLabel===b&&(c=e);else{var f=d[e];f.isTag=!0,
angular.equals(f,b)&&(c=e)}return c}var l=g[0],m=d.ngModel=g[1],n=d.$selectMultiple;l.multiple=!0,l.removeSelected=!0,l.focusInput=l.searchInput,m.$parsers.unshift(function(){for(var a,b={},c=[],e=l.selected.length-1;e>=0;e--)b={},b[l.parserResult.itemName]=l.selected[e],a=l.parserResult.modelMapper(d,b),c.unshift(a);return c}),m.$formatters.unshift(function(a){var b,c=l.parserResult.source(d,{$select:{search:""}}),e={};if(!c)return a;var f=[],g=function(a,c){if(a&&a.length){for(var g=a.length-1;g>=0;g--){if(e[l.parserResult.itemName]=a[g],b=l.parserResult.modelMapper(d,e),l.parserResult.trackByExp){var h=/\.(.+)/.exec(l.parserResult.trackByExp);if(h.length>0&&b[h[1]]==c[h[1]])return f.unshift(a[g]),!0}if(angular.equals(b,c))return f.unshift(a[g]),!0}return!1}};if(!a)return f;for(var h=a.length-1;h>=0;h--)g(l.selected,a[h])||g(c,a[h])||f.unshift(a[h]);return f}),d.$watchCollection(function(){return m.$modelValue},function(a,b){b!=a&&(m.$modelValue=null,n.refreshComponent())}),m.$render=function(){if(!angular.isArray(m.$viewValue)){if(!angular.isUndefined(m.$viewValue)&&null!==m.$viewValue)throw b("multiarr","Expected model value to be array but got '{0}'",m.$viewValue);l.selected=[]}l.selected=m.$viewValue,d.$evalAsync()},d.$on("uis:select",function(a,b){l.selected.push(b),n.updateModel()}),d.$on("uis:activate",function(){n.activeMatchIndex=-1}),d.$watch("$select.disabled",function(a,b){b&&!a&&l.sizeSearchInput()}),l.searchInput.on("keydown",function(b){var c=b.which;d.$apply(function(){var d=!1;a.isHorizontalMovement(c)&&(d=i(c)),d&&c!=a.TAB&&(b.preventDefault(),b.stopPropagation())})}),l.searchInput.on("keyup",function(b){if(a.isVerticalMovement(b.which)||d.$evalAsync(function(){l.activeIndex=l.taggingLabel===!1?-1:0}),l.tagging.isActivated&&l.search.length>0){if(b.which===a.TAB||a.isControl(b)||a.isFunctionKey(b)||b.which===a.ESC||a.isVerticalMovement(b.which))return;if(l.activeIndex=l.taggingLabel===!1?-1:0,l.taggingLabel===!1)return;var c,e,f,g,h=angular.copy(l.items),i=angular.copy(l.items),m=!1,n=-1;if(void 0!==l.tagging.fct){if(f=l.$filter("filter")(h,{isTag:!0}),f.length>0&&(g=f[0]),h.length>0&&g&&(m=!0,h=h.slice(1,h.length),i=i.slice(1,i.length)),c=l.tagging.fct(l.search),c.isTag=!0,i.filter(function(a){return angular.equals(a,l.tagging.fct(l.search))}).length>0)return;c.isTag=!0}else{if(f=l.$filter("filter")(h,function(a){return a.match(l.taggingLabel)}),f.length>0&&(g=f[0]),e=h[0],void 0!==e&&h.length>0&&g&&(m=!0,h=h.slice(1,h.length),i=i.slice(1,i.length)),c=l.search+" "+l.taggingLabel,k(l.selected,l.search)>-1)return;if(j(i.concat(l.selected)))return void(m&&(h=i,d.$evalAsync(function(){l.activeIndex=0,l.items=h})));if(j(i))return void(m&&(l.items=i.slice(1,i.length)))}m&&(n=k(l.selected,c)),n>-1?h=h.slice(n+1,h.length-1):(h=[],h.push(c),h=h.concat(i)),d.$evalAsync(function(){l.activeIndex=0,l.items=h})}}),l.searchInput.on("blur",function(){c(function(){n.activeMatchIndex=-1})})}}}]),c.directive("uiSelectSingle",["$timeout","$compile",function(b,c){return{restrict:"EA",require:["^uiSelect","^ngModel"],link:function(d,e,f,g){var h=g[0],i=g[1];i.$parsers.unshift(function(a){var b,c={};return c[h.parserResult.itemName]=a,b=h.parserResult.modelMapper(d,c)}),i.$formatters.unshift(function(a){var b,c=h.parserResult.source(d,{$select:{search:""}}),e={};if(c){var f=function(c){return e[h.parserResult.itemName]=c,b=h.parserResult.modelMapper(d,e),b==a};if(h.selected&&f(h.selected))return h.selected;for(var g=c.length-1;g>=0;g--)if(f(c[g]))return c[g]}return a}),d.$watch("$select.selected",function(a){i.$viewValue!==a&&i.$setViewValue(a)}),i.$render=function(){h.selected=i.$viewValue},d.$on("uis:select",function(a,b){h.selected=b}),d.$on("uis:close",function(a,c){b(function(){h.focusser.prop("disabled",!1),c||h.focusser[0].focus()},0,!1)}),d.$on("uis:activate",function(){j.prop("disabled",!0)});var j=angular.element("<input ng-disabled='$select.disabled' class='ui-select-focusser ui-select-offscreen' type='text' id='{{ $select.focusserId }}' aria-label='{{ $select.focusserTitle }}' aria-haspopup='true' role='button' />");c(j)(d),h.focusser=j,h.focusInput=j,e.parent().append(j),j.bind("focus",function(){d.$evalAsync(function(){h.focus=!0})}),j.bind("blur",function(){d.$evalAsync(function(){h.focus=!1})}),j.bind("keydown",function(b){return b.which===a.BACKSPACE?(b.preventDefault(),b.stopPropagation(),h.select(void 0),void d.$apply()):void(b.which===a.TAB||a.isControl(b)||a.isFunctionKey(b)||b.which===a.ESC||(b.which!=a.DOWN&&b.which!=a.UP&&b.which!=a.ENTER&&b.which!=a.SPACE||(b.preventDefault(),b.stopPropagation(),h.activate()),d.$digest()))}),j.bind("keyup input",function(b){b.which===a.TAB||a.isControl(b)||a.isFunctionKey(b)||b.which===a.ESC||b.which==a.ENTER||b.which===a.BACKSPACE||(h.activate(j.val()),j.val(""),d.$digest())})}}}]),c.directive("uiSelectSort",["$timeout","uiSelectConfig","uiSelectMinErr",function(a,b,c){return{require:"^uiSelect",link:function(b,d,e,f){if(null===b[e.uiSelectSort])throw c("sort","Expected a list to sort");var g=angular.extend({axis:"horizontal"},b.$eval(e.uiSelectSortOptions)),h=g.axis,i="dragging",j="dropping",k="dropping-before",l="dropping-after";b.$watch(function(){return f.sortable},function(a){a?d.attr("draggable",!0):d.removeAttr("draggable")}),d.on("dragstart",function(a){d.addClass(i),(a.dataTransfer||a.originalEvent.dataTransfer).setData("text/plain",b.$index)}),d.on("dragend",function(){d.removeClass(i)});var m,n=function(a,b){this.splice(b,0,this.splice(a,1)[0])},o=function(a){a.preventDefault();var b="vertical"===h?a.offsetY||a.layerY||(a.originalEvent?a.originalEvent.offsetY:0):a.offsetX||a.layerX||(a.originalEvent?a.originalEvent.offsetX:0);b<this["vertical"===h?"offsetHeight":"offsetWidth"]/2?(d.removeClass(l),d.addClass(k)):(d.removeClass(k),d.addClass(l))},p=function(b){b.preventDefault();var c=parseInt((b.dataTransfer||b.originalEvent.dataTransfer).getData("text/plain"),10);a.cancel(m),m=a(function(){q(c)},20)},q=function(a){var c=b.$eval(e.uiSelectSort),f=c[a],g=null;g=d.hasClass(k)?a<b.$index?b.$index-1:b.$index:a<b.$index?b.$index:b.$index+1,n.apply(c,[a,g]),b.$apply(function(){b.$emit("uiSelectSort:change",{array:c,item:f,from:a,to:g})}),d.removeClass(j),d.removeClass(k),d.removeClass(l),d.off("drop",p)};d.on("dragenter",function(){d.hasClass(i)||(d.addClass(j),d.on("dragover",o),d.on("drop",p))}),d.on("dragleave",function(a){a.target==d&&(d.removeClass(j),d.removeClass(k),d.removeClass(l),d.off("dragover",o),d.off("drop",p))})}}}]),c.service("uisRepeatParser",["uiSelectMinErr","$parse",function(a,b){var c=this;c.parse=function(c){var d=c.match(/^\s*(?:([\s\S]+?)\s+as\s+)?([\S]+?)\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!d)throw a("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",c);return{itemName:d[2],source:b(d[3]),trackByExp:d[4],modelMapper:b(d[1]||d[2])}},c.getGroupNgRepeatExpression=function(){return"$group in $select.groups"},c.getNgRepeatExpression=function(a,b,c,d){var e=a+" in "+(d?"$group.items":b);return c&&(e+=" track by "+c),e}}])}(),angular.module("ui.select").run(["$templateCache",function(a){a.put("bootstrap/choices.tpl.html",'<ul class="ui-select-choices ui-select-choices-content dropdown-menu" role="listbox" ng-show="$select.items.length > 0"><li class="ui-select-choices-group" id="ui-select-choices-{{ $select.generatedId }}"><div class="divider" ng-show="$select.isGrouped && $index > 0"></div><div ng-show="$select.isGrouped" class="ui-select-choices-group-label dropdown-header" ng-bind="$group.name"></div><div id="ui-select-choices-row-{{ $select.generatedId }}-{{$index}}" class="ui-select-choices-row" ng-class="{active: $select.isActive(this), disabled: $select.isDisabled(this)}" role="option"><a href="javascript:void(0)" class="ui-select-choices-row-inner"></a></div></li></ul>'),a.put("bootstrap/match-multiple.tpl.html",'<span class="ui-select-match"><span ng-repeat="$item in $select.selected"><span class="ui-select-match-item btn btn-default btn-xs" tabindex="-1" type="button" ng-disabled="$select.disabled" ng-click="$selectMultiple.activeMatchIndex = $index;" ng-class="{\'btn-primary\':$selectMultiple.activeMatchIndex === $index, \'select-locked\':$select.isLocked(this, $index)}" ui-select-sort="$select.selected"><span class="close ui-select-match-close" ng-hide="$select.disabled" ng-click="$selectMultiple.removeChoice($index)">&nbsp;&times;</span> <span uis-transclude-append=""></span></span></span></span>'),a.put("bootstrap/match.tpl.html",'<div class="ui-select-match" ng-hide="$select.open" ng-disabled="$select.disabled" ng-class="{\'btn-default-focus\':$select.focus}"><span tabindex="-1" class="btn btn-default form-control ui-select-toggle" aria-label="{{ $select.baseTitle }} activate" ng-disabled="$select.disabled" ng-click="$select.activate()" style="outline: 0;"><span ng-show="$select.isEmpty()" class="ui-select-placeholder text-muted">{{$select.placeholder}}</span> <span ng-hide="$select.isEmpty()" class="ui-select-match-text pull-left" ng-class="{\'ui-select-allow-clear\': $select.allowClear && !$select.isEmpty()}" ng-transclude=""></span> <i class="caret pull-right" ng-click="$select.toggle($event)"></i> <a ng-show="$select.allowClear && !$select.isEmpty()" aria-label="{{ $select.baseTitle }} clear" style="margin-right: 10px" ng-click="$select.clear($event)" class="btn btn-xs btn-link pull-right"><i class="glyphicon glyphicon-remove" aria-hidden="true"></i></a></span></div>'),a.put("bootstrap/select-multiple.tpl.html",'<div class="ui-select-container ui-select-multiple ui-select-bootstrap dropdown form-control" ng-class="{open: $select.open}"><div><div class="ui-select-match"></div><input type="text" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" class="ui-select-search input-xs" placeholder="{{$selectMultiple.getPlaceholder()}}" ng-disabled="$select.disabled" ng-hide="$select.disabled" ng-click="$select.activate()" ng-model="$select.search" role="combobox" aria-label="{{ $select.baseTitle }}" ondrop="return false;"></div><div class="ui-select-choices"></div></div>'),a.put("bootstrap/select.tpl.html",'<div class="ui-select-container ui-select-bootstrap dropdown" ng-class="{open: $select.open}"><div class="ui-select-match"></div><input type="text" autocomplete="off" tabindex="-1" aria-expanded="true" aria-label="{{ $select.baseTitle }}" aria-owns="ui-select-choices-{{ $select.generatedId }}" aria-activedescendant="ui-select-choices-row-{{ $select.generatedId }}-{{ $select.activeIndex }}" class="form-control ui-select-search" placeholder="{{$select.placeholder}}" ng-model="$select.search" ng-show="$select.searchEnabled && $select.open"><div class="ui-select-choices"></div></div>'),a.put("select2/choices.tpl.html",'<ul class="ui-select-choices ui-select-choices-content select2-results"><li class="ui-select-choices-group" ng-class="{\'select2-result-with-children\': $select.choiceGrouped($group) }"><div ng-show="$select.choiceGrouped($group)" class="ui-select-choices-group-label select2-result-label" ng-bind="$group.name"></div><ul role="listbox" id="ui-select-choices-{{ $select.generatedId }}" ng-class="{\'select2-result-sub\': $select.choiceGrouped($group), \'select2-result-single\': !$select.choiceGrouped($group) }"><li role="option" id="ui-select-choices-row-{{ $select.generatedId }}-{{$index}}" class="ui-select-choices-row" ng-class="{\'select2-highlighted\': $select.isActive(this), \'select2-disabled\': $select.isDisabled(this)}"><div class="select2-result-label ui-select-choices-row-inner"></div></li></ul></li></ul>'),a.put("select2/match-multiple.tpl.html",'<span class="ui-select-match"><li class="ui-select-match-item select2-search-choice" ng-repeat="$item in $select.selected" ng-class="{\'select2-search-choice-focus\':$selectMultiple.activeMatchIndex === $index, \'select2-locked\':$select.isLocked(this, $index)}" ui-select-sort="$select.selected"><span uis-transclude-append=""></span> <a href="javascript:;" class="ui-select-match-close select2-search-choice-close" ng-click="$selectMultiple.removeChoice($index)" tabindex="-1"></a></li></span>'),a.put("select2/match.tpl.html",'<a class="select2-choice ui-select-match" ng-class="{\'select2-default\': $select.isEmpty()}" ng-click="$select.toggle($event)" aria-label="{{ $select.baseTitle }} select"><span ng-show="$select.isEmpty()" class="select2-chosen">{{$select.placeholder}}</span> <span ng-hide="$select.isEmpty()" class="select2-chosen" ng-transclude=""></span> <abbr ng-if="$select.allowClear && !$select.isEmpty()" class="select2-search-choice-close" ng-click="$select.clear($event)"></abbr> <span class="select2-arrow ui-select-toggle"><b></b></span></a>'),a.put("select2/select-multiple.tpl.html",'<div class="ui-select-container ui-select-multiple select2 select2-container select2-container-multi" ng-class="{\'select2-container-active select2-dropdown-open open\': $select.open, \'select2-container-disabled\': $select.disabled}"><ul class="select2-choices"><span class="ui-select-match"></span><li class="select2-search-field"><input type="text" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="combobox" aria-expanded="true" aria-owns="ui-select-choices-{{ $select.generatedId }}" aria-label="{{ $select.baseTitle }}" aria-activedescendant="ui-select-choices-row-{{ $select.generatedId }}-{{ $select.activeIndex }}" class="select2-input ui-select-search" placeholder="{{$selectMultiple.getPlaceholder()}}" ng-disabled="$select.disabled" ng-hide="$select.disabled" ng-model="$select.search" ng-click="$select.activate()" style="width: 34px;" ondrop="return false;"></li></ul><div class="select2-drop select2-with-searchbox select2-drop-active" ng-class="{\'select2-display-none\': !$select.open}"><div class="ui-select-choices"></div></div></div>'),a.put("select2/select.tpl.html",'<div class="ui-select-container select2 select2-container" ng-class="{\'select2-container-active select2-dropdown-open open\': $select.open, \'select2-container-disabled\': $select.disabled, \'select2-container-active\': $select.focus, \'select2-allowclear\': $select.allowClear && !$select.isEmpty()}"><div class="ui-select-match"></div><div class="select2-drop select2-with-searchbox select2-drop-active" ng-class="{\'select2-display-none\': !$select.open}"><div class="select2-search" ng-show="$select.searchEnabled"><input type="text" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="combobox" aria-expanded="true" aria-owns="ui-select-choices-{{ $select.generatedId }}" aria-label="{{ $select.baseTitle }}" aria-activedescendant="ui-select-choices-row-{{ $select.generatedId }}-{{ $select.activeIndex }}" class="ui-select-search select2-input" ng-model="$select.search"></div><div class="ui-select-choices"></div></div></div>'),a.put("selectize/choices.tpl.html",'<div ng-show="$select.open" class="ui-select-choices selectize-dropdown single"><div class="ui-select-choices-content selectize-dropdown-content"><div class="ui-select-choices-group optgroup" role="listbox"><div ng-show="$select.isGrouped" class="ui-select-choices-group-label optgroup-header" ng-bind="$group.name"></div><div role="option" class="ui-select-choices-row" ng-class="{active: $select.isActive(this), disabled: $select.isDisabled(this)}"><div class="option ui-select-choices-row-inner" data-selectable=""></div></div></div></div></div>'),a.put("selectize/match.tpl.html",'<div ng-hide="($select.open || $select.isEmpty())" class="ui-select-match" ng-transclude=""></div>'),a.put("selectize/select.tpl.html",'<div class="ui-select-container selectize-control single" ng-class="{\'open\': $select.open}"><div class="selectize-input" ng-class="{\'focus\': $select.open, \'disabled\': $select.disabled, \'selectize-focus\' : $select.focus}" ng-click="$select.activate()"><div class="ui-select-match"></div><input type="text" autocomplete="off" tabindex="-1" class="ui-select-search ui-select-toggle" ng-click="$select.toggle($event)" placeholder="{{$select.placeholder}}" ng-model="$select.search" ng-hide="!$select.searchEnabled || ($select.selected && !$select.open)" ng-disabled="$select.disabled" aria-label="{{ $select.baseTitle }}"></div><div class="ui-select-choices"></div></div>')}]),function(){function a(a,b){if(a!==b){var c=a===a,d=b===b;if(a>b||!c||a===w&&d)return 1;if(a<b||!d||b===w&&c)return-1}return 0}function b(a,b,c){for(var d=a.length,e=c?d:-1;c?e--:++e<d;)if(b(a[e],e,a))return e;return-1}function c(a,b,c){if(b!==b)return n(a,c);for(var d=c-1,e=a.length;++d<e;)if(a[d]===b)return d;return-1}function d(a){return"function"==typeof a||!1}function e(a){return"string"==typeof a?a:null==a?"":a+""}function f(a){return a.charCodeAt(0)}function g(a,b){for(var c=-1,d=a.length;++c<d&&b.indexOf(a.charAt(c))>-1;);return c}function h(a,b){for(var c=a.length;c--&&b.indexOf(a.charAt(c))>-1;);return c}function i(b,c){return a(b.criteria,c.criteria)||b.index-c.index}function j(b,c,d){for(var e=-1,f=b.criteria,g=c.criteria,h=f.length,i=d.length;++e<h;){var j=a(f[e],g[e]);if(j)return e>=i?j:j*(d[e]?1:-1)}return b.index-c.index}function k(a){return Qa[a]}function l(a){return Ra[a]}function m(a){return"\\"+Ua[a]}function n(a,b,c){for(var d=a.length,e=b+(c?0:-1);c?e--:++e<d;){var f=a[e];if(f!==f)return e}return-1}function o(a){return!!a&&"object"==typeof a}function p(a){return a<=160&&a>=9&&a<=13||32==a||160==a||5760==a||6158==a||a>=8192&&(a<=8202||8232==a||8233==a||8239==a||8287==a||12288==a||65279==a)}function q(a,b){for(var c=-1,d=a.length,e=-1,f=[];++c<d;)a[c]===b&&(a[c]=P,f[++e]=c);return f}function r(a,b){for(var c,d=-1,e=a.length,f=-1,g=[];++d<e;){var h=a[d],i=b?b(h,d,a):h;d&&c===i||(c=i,g[++f]=h)}return g}function s(a){for(var b=-1,c=a.length;++b<c&&p(a.charCodeAt(b)););return b}function t(a){for(var b=a.length;b--&&p(a.charCodeAt(b)););return b}function u(a){return Sa[a]}function v(p){function W(a){if(o(a)&&!zh(a)&&!(a instanceof Qa)){if(a instanceof aa)return a;if(Qf.call(a,"__chain__")&&Qf.call(a,"__wrapped__"))return fd(a)}return new aa(a)}function $(){}function aa(a,b,c){this.__wrapped__=a,this.__actions__=c||[],this.__chain__=!!b}function Qa(a){this.__wrapped__=a,this.__actions__=null,this.__dir__=1,this.__dropCount__=0,this.__filtered__=!1,this.__iteratees__=null,this.__takeCount__=vg,this.__views__=null}function Ra(){var a=this.__actions__,b=this.__iteratees__,c=this.__views__,d=new Qa(this.__wrapped__);return d.__actions__=a?cb(a):null,d.__dir__=this.__dir__,d.__filtered__=this.__filtered__,d.__iteratees__=b?cb(b):null,d.__takeCount__=this.__takeCount__,d.__views__=c?cb(c):null,d}function Sa(){if(this.__filtered__){var a=new Qa(this);a.__dir__=-1,a.__filtered__=!0}else a=this.clone(),a.__dir__*=-1;return a}function Ta(){var a=this.__wrapped__.value();if(!zh(a))return ac(a,this.__actions__);var b=this.__dir__,c=b<0,d=Mc(0,a.length,this.__views__),e=d.start,f=d.end,g=f-e,h=c?f:e-1,i=pg(g,this.__takeCount__),j=this.__iteratees__,k=j?j.length:0,l=0,m=[];a:for(;g--&&l<i;){h+=b;for(var n=-1,o=a[h];++n<k;){var p=j[n],q=p.iteratee,r=p.type;if(r==L){if(p.done&&(c?h>p.index:h<p.index)&&(p.count=0,p.done=!1),p.index=h,!p.done){var s=p.limit;if(!(p.done=s>-1?p.count++>=s:!q(o)))continue a}}else{var t=q(o);if(r==N)o=t;else if(!t){if(r==M)continue a;break a}}}m[l++]=o}return m}function Ua(){this.__data__={}}function Va(a){return this.has(a)&&delete this.__data__[a]}function Wa(a){return"__proto__"==a?w:this.__data__[a]}function Xa(a){return"__proto__"!=a&&Qf.call(this.__data__,a)}function Ya(a,b){return"__proto__"!=a&&(this.__data__[a]=b),this}function Za(a){var b=a?a.length:0;for(this.data={hash:lg(null),set:new dg};b--;)this.push(a[b])}function $a(a,b){var c=a.data,d="string"==typeof b||xe(b)?c.set.has(b):c.hash[b];return d?0:-1}function bb(a){var b=this.data;"string"==typeof a||xe(a)?b.set.add(a):b.hash[a]=!0}function cb(a,b){var c=-1,d=a.length;for(b||(b=Bf(d));++c<d;)b[c]=a[c];return b}function db(a,b){for(var c=-1,d=a.length;++c<d&&b(a[c],c,a)!==!1;);return a}function eb(a,b){for(var c=a.length;c--&&b(a[c],c,a)!==!1;);return a}function fb(a,b){for(var c=-1,d=a.length;++c<d;)if(!b(a[c],c,a))return!1;return!0}function gb(a,b){for(var c=-1,d=a.length,e=-1,f=[];++c<d;){var g=a[c];b(g,c,a)&&(f[++e]=g)}return f}function hb(a,b){for(var c=-1,d=a.length,e=Bf(d);++c<d;)e[c]=b(a[c],c,a);return e}function ib(a){for(var b=-1,c=a.length,d=ug;++b<c;){var e=a[b];e>d&&(d=e)}return d}function jb(a){for(var b=-1,c=a.length,d=vg;++b<c;){var e=a[b];e<d&&(d=e)}return d}function kb(a,b,c,d){var e=-1,f=a.length;for(d&&f&&(c=a[++e]);++e<f;)c=b(c,a[e],e,a);return c}function lb(a,b,c,d){var e=a.length;for(d&&e&&(c=a[--e]);e--;)c=b(c,a[e],e,a);return c}function mb(a,b){for(var c=-1,d=a.length;++c<d;)if(b(a[c],c,a))return!0;return!1}function nb(a){for(var b=a.length,c=0;b--;)c+=+a[b]||0;return c}function ob(a,b){return a===w?b:a}function pb(a,b,c,d){return a!==w&&Qf.call(d,c)?a:b}function qb(a,b,c){var d=Lh(b);ag.apply(d,Pg(b));for(var e=-1,f=d.length;++e<f;){var g=d[e],h=a[g],i=c(h,b[g],g,a,b);(i===i?i===h:h!==h)&&(h!==w||g in a)||(a[g]=i)}return a}function rb(a,b){for(var c=-1,d=null==a,e=!d&&Rc(a),f=e&&a.length,g=b.length,h=Bf(g);++c<g;){var i=b[c];e?h[c]=Sc(i,f)?a[i]:w:h[c]=d?w:a[i]}return h}function sb(a,b,c){c||(c={});for(var d=-1,e=b.length;++d<e;){var f=b[d];c[f]=a[f]}return c}function tb(a,b,c){var d=typeof a;return"function"==d?b===w?a:dc(a,b,c):null==a?of:"object"==d?Lb(a):b===w?uf(a):Mb(a,b)}function ub(a,b,c,d,e,f,g){var h;if(c&&(h=e?c(a,d,e):c(a)),h!==w)return h;if(!xe(a))return a;var i=zh(a);if(i){if(h=Nc(a),!b)return cb(a,h)}else{var j=Sf.call(a),k=j==V;if(j!=Y&&j!=Q&&(!k||e))return Oa[j]?Pc(a,j,b):e?a:{};if(h=Oc(k?{}:a),!b)return Eg(h,a)}f||(f=[]),g||(g=[]);for(var l=f.length;l--;)if(f[l]==a)return g[l];return f.push(a),g.push(h),(i?db:Db)(a,function(d,e){h[e]=ub(d,b,c,e,a,f,g)}),h}function vb(a,b,c){if("function"!=typeof a)throw new Kf(O);return eg(function(){a.apply(w,c)},b)}function wb(a,b){var d=a?a.length:0,e=[];if(!d)return e;var f=-1,g=Lc(),h=g==c,i=h&&b.length>=200?Lg(b):null,j=b.length;i&&(g=$a,h=!1,b=i);a:for(;++f<d;){var k=a[f];if(h&&k===k){for(var l=j;l--;)if(b[l]===k)continue a;e.push(k)}else g(b,k,0)<0&&e.push(k)}return e}function xb(a,b){var c=!0;return Gg(a,function(a,d,e){return c=!!b(a,d,e)}),c}function yb(a,b,c,d){var e=a.length;for(c=null==c?0:+c||0,c<0&&(c=-c>e?0:e+c),d=d===w||d>e?e:+d||0,d<0&&(d+=e),e=c>d?0:d>>>0,c>>>=0;c<e;)a[c++]=b;return a}function zb(a,b){var c=[];return Gg(a,function(a,d,e){b(a,d,e)&&c.push(a)}),c}function Ab(a,b,c,d){var e;return c(a,function(a,c,f){if(b(a,c,f))return e=d?c:a,!1}),e}function Bb(a,b,c){for(var d=-1,e=a.length,f=-1,g=[];++d<e;){var h=a[d];if(o(h)&&Rc(h)&&(c||zh(h)||qe(h))){b&&(h=Bb(h,b,c));for(var i=-1,j=h.length;++i<j;)g[++f]=h[i]}else c||(g[++f]=h)}return g}function Cb(a,b){return Ig(a,b,Oe)}function Db(a,b){return Ig(a,b,Lh)}function Eb(a,b){return Jg(a,b,Lh)}function Fb(a,b){for(var c=-1,d=b.length,e=-1,f=[];++c<d;){var g=b[c];Bh(a[g])&&(f[++e]=g)}return f}function Gb(a,b,c){if(null!=a){c!==w&&c in dd(a)&&(b=[c]);for(var d=-1,e=b.length;null!=a&&++d<e;)a=a[b[d]];return d&&d==e?a:w}}function Hb(a,b,c,d,e,f){if(a===b)return!0;var g=typeof a,h=typeof b;return"function"!=g&&"object"!=g&&"function"!=h&&"object"!=h||null==a||null==b?a!==a&&b!==b:Ib(a,b,Hb,c,d,e,f)}function Ib(a,b,c,d,e,f,g){var h=zh(a),i=zh(b),j=R,k=R;h||(j=Sf.call(a),j==Q?j=Y:j!=Y&&(h=Fe(a))),i||(k=Sf.call(b),k==Q?k=Y:k!=Y&&(i=Fe(b)));var l=j==Y,m=k==Y,n=j==k;if(n&&!h&&!l)return Hc(a,b,j);if(!e){var o=l&&Qf.call(a,"__wrapped__"),p=m&&Qf.call(b,"__wrapped__");if(o||p)return c(o?a.value():a,p?b.value():b,d,e,f,g)}if(!n)return!1;f||(f=[]),g||(g=[]);for(var q=f.length;q--;)if(f[q]==a)return g[q]==b;f.push(a),g.push(b);var r=(h?Gc:Ic)(a,b,c,d,e,f,g);return f.pop(),g.pop(),r}function Jb(a,b,c,d,e){for(var f=-1,g=b.length,h=!e;++f<g;)if(h&&d[f]?c[f]!==a[b[f]]:!(b[f]in a))return!1;for(f=-1;++f<g;){var i=b[f],j=a[i],k=c[f];if(h&&d[f])var l=j!==w||i in a;else l=e?e(j,k,i):w,l===w&&(l=Hb(k,j,e,!0));if(!l)return!1}return!0}function Kb(a,b){var c=-1,d=Rc(a)?Bf(a.length):[];return Gg(a,function(a,e,f){d[++c]=b(a,e,f)}),d}function Lb(a){var b=Lh(a),c=b.length;if(!c)return nf(!0);if(1==c){var d=b[0],e=a[d];if(Xc(e))return function(a){return null!=a&&(a[d]===e&&(e!==w||d in dd(a)))}}for(var f=Bf(c),g=Bf(c);c--;)e=a[b[c]],f[c]=e,g[c]=Xc(e);return function(a){return null!=a&&Jb(dd(a),b,f,g)}}function Mb(a,b){var c=zh(a),d=Uc(a)&&Xc(b),e=a+"";return a=ed(a),function(f){if(null==f)return!1;var g=e;if(f=dd(f),(c||!d)&&!(g in f)){if(f=1==a.length?f:Gb(f,Ub(a,0,-1)),null==f)return!1;g=td(a),f=dd(f)}return f[g]===b?b!==w||g in f:Hb(b,f[g],null,!0)}}function Nb(a,b,c,d,e){if(!xe(a))return a;var f=Rc(b)&&(zh(b)||Fe(b));if(!f){var g=Lh(b);ag.apply(g,Pg(b))}return db(g||b,function(h,i){if(g&&(i=h,h=b[i]),o(h))d||(d=[]),e||(e=[]),Ob(a,b,i,Nb,c,d,e);else{var j=a[i],k=c?c(j,h,i,a,b):w,l=k===w;l&&(k=h),!f&&k===w||!l&&(k===k?k===j:j!==j)||(a[i]=k)}}),a}function Ob(a,b,c,d,e,f,g){for(var h=f.length,i=b[c];h--;)if(f[h]==i)return void(a[c]=g[h]);var j=a[c],k=e?e(j,i,c,a,b):w,l=k===w;l&&(k=i,Rc(i)&&(zh(i)||Fe(i))?k=zh(j)?j:Rc(j)?cb(j):[]:Ch(i)||qe(i)?k=qe(j)?Ie(j):Ch(j)?j:{}:l=!1),f.push(i),g.push(k),l?a[c]=d(k,i,e,f,g):(k===k?k!==j:j===j)&&(a[c]=k)}function Pb(a){return function(b){return null==b?w:b[a]}}function Qb(a){var b=a+"";return a=ed(a),function(c){return Gb(c,a,b)}}function Rb(a,b){for(var c=a?b.length:0;c--;){var d=parseFloat(b[c]);if(d!=e&&Sc(d)){var e=d;fg.call(a,d,1)}}return a}function Sb(a,b){return a+Zf(tg()*(b-a+1))}function Tb(a,b,c,d,e){return e(a,function(a,e,f){c=d?(d=!1,a):b(c,a,e,f)}),c}function Ub(a,b,c){var d=-1,e=a.length;b=null==b?0:+b||0,b<0&&(b=-b>e?0:e+b),c=c===w||c>e?e:+c||0,c<0&&(c+=e),e=b>c?0:c-b>>>0,b>>>=0;for(var f=Bf(e);++d<e;)f[d]=a[d+b];return f}function Vb(a,b){var c;return Gg(a,function(a,d,e){return c=b(a,d,e),!c}),!!c}function Wb(a,b){var c=a.length;for(a.sort(b);c--;)a[c]=a[c].value;return a}function Xb(a,b,c){var d=Kc(),e=-1;b=hb(b,function(a){return d(a)});var f=Kb(a,function(a){var c=hb(b,function(b){return b(a)});return{criteria:c,index:++e,value:a}});return Wb(f,function(a,b){return j(a,b,c)})}function Yb(a,b){var c=0;return Gg(a,function(a,d,e){c+=+b(a,d,e)||0}),c}function Zb(a,b){var d=-1,e=Lc(),f=a.length,g=e==c,h=g&&f>=200,i=h?Lg():null,j=[];i?(e=$a,g=!1):(h=!1,i=b?[]:j);a:for(;++d<f;){var k=a[d],l=b?b(k,d,a):k;if(g&&k===k){for(var m=i.length;m--;)if(i[m]===l)continue a;b&&i.push(l),j.push(k)}else e(i,l,0)<0&&((b||h)&&i.push(l),j.push(k))}return j}function $b(a,b){for(var c=-1,d=b.length,e=Bf(d);++c<d;)e[c]=a[b[c]];return e}function _b(a,b,c,d){for(var e=a.length,f=d?e:-1;(d?f--:++f<e)&&b(a[f],f,a););return c?Ub(a,d?0:f,d?f+1:e):Ub(a,d?f+1:0,d?e:f)}function ac(a,b){var c=a;c instanceof Qa&&(c=c.value());for(var d=-1,e=b.length;++d<e;){var f=[c],g=b[d];ag.apply(f,g.args),c=g.func.apply(g.thisArg,f)}return c}function bc(a,b,c){var d=0,e=a?a.length:d;if("number"==typeof b&&b===b&&e<=yg){for(;d<e;){var f=d+e>>>1,g=a[f];(c?g<=b:g<b)?d=f+1:e=f}return e}return cc(a,b,of,c)}function cc(a,b,c,d){b=c(b);for(var e=0,f=a?a.length:0,g=b!==b,h=b===w;e<f;){var i=Zf((e+f)/2),j=c(a[i]),k=j===j;if(g)var l=k||d;else l=h?k&&(d||j!==w):d?j<=b:j<b;l?e=i+1:f=i}return pg(f,xg)}function dc(a,b,c){if("function"!=typeof a)return of;if(b===w)return a;switch(c){case 1:return function(c){return a.call(b,c)};case 3:return function(c,d,e){return a.call(b,c,d,e)};case 4:return function(c,d,e,f){return a.call(b,c,d,e,f)};case 5:return function(c,d,e,f,g){return a.call(b,c,d,e,f,g)}}return function(){return a.apply(b,arguments)}}function ec(a){return Wf.call(a,0)}function fc(a,b,c){for(var d=c.length,e=-1,f=og(a.length-d,0),g=-1,h=b.length,i=Bf(f+h);++g<h;)i[g]=b[g];for(;++e<d;)i[c[e]]=a[e];for(;f--;)i[g++]=a[e++];return i}function gc(a,b,c){for(var d=-1,e=c.length,f=-1,g=og(a.length-e,0),h=-1,i=b.length,j=Bf(g+i);++f<g;)j[f]=a[f];for(var k=f;++h<i;)j[k+h]=b[h];for(;++d<e;)j[k+c[d]]=a[f++];return j}function hc(a,b){return function(c,d,e){var f=b?b():{};if(d=Kc(d,e,3),zh(c))for(var g=-1,h=c.length;++g<h;){var i=c[g];a(f,i,d(i,g,c),c)}else Gg(c,function(b,c,e){a(f,b,d(b,c,e),e)});return f}}function ic(a){return ke(function(b,c){var d=-1,e=null==b?0:c.length,f=e>2&&c[e-2],g=e>2&&c[2],h=e>1&&c[e-1];for("function"==typeof f?(f=dc(f,h,5),e-=2):(f="function"==typeof h?h:null,e-=f?1:0),g&&Tc(c[0],c[1],g)&&(f=e<3?null:f,e=1);++d<e;){var i=c[d];i&&a(b,i,f)}return b})}function jc(a,b){return function(c,d){var e=c?Og(c):0;if(!Wc(e))return a(c,d);for(var f=b?e:-1,g=dd(c);(b?f--:++f<e)&&d(g[f],f,g)!==!1;);return c}}function kc(a){return function(b,c,d){for(var e=dd(b),f=d(b),g=f.length,h=a?g:-1;a?h--:++h<g;){var i=f[h];if(c(e[i],i,e)===!1)break}return b}}function lc(a,b){function c(){var e=this&&this!==_a&&this instanceof c?d:a;return e.apply(b,arguments)}var d=nc(a);return c}function mc(a){return function(b){for(var c=-1,d=lf(Ye(b)),e=d.length,f="";++c<e;)f=a(f,d[c],c);return f}}function nc(a){return function(){var b=Fg(a.prototype),c=a.apply(b,arguments);return xe(c)?c:b}}function oc(a){function b(c,d,e){e&&Tc(c,d,e)&&(d=null);var f=Fc(c,a,null,null,null,null,null,d);return f.placeholder=b.placeholder,f}return b}function pc(a,b){return function(c,d,e){e&&Tc(c,d,e)&&(d=null);var g=Kc(),h=null==d;if(g===tb&&h||(h=!1,d=g(d,e,3)),h){var i=zh(c);if(i||!Ee(c))return a(i?c:cd(c));d=f}return Jc(c,d,b)}}function qc(a,c){return function(d,e,f){if(e=Kc(e,f,3),zh(d)){var g=b(d,e,c);return g>-1?d[g]:w}return Ab(d,e,a)}}function rc(a){return function(c,d,e){return c&&c.length?(d=Kc(d,e,3),b(c,d,a)):-1}}function sc(a){return function(b,c,d){return c=Kc(c,d,3),Ab(b,c,a,!0)}}function tc(a){return function(){var b=arguments.length;if(!b)return function(){return arguments[0]};for(var c,d=a?b:-1,e=0,f=Bf(b);a?d--:++d<b;){var g=f[e++]=arguments[d];if("function"!=typeof g)throw new Kf(O);var h=c?"":Ng(g);c="wrapper"==h?new aa([]):c}for(d=c?-1:b;++d<b;){g=f[d],h=Ng(g);var i="wrapper"==h?Mg(g):null;c=i&&Vc(i[0])&&i[1]==(F|B|D|G)&&!i[4].length&&1==i[9]?c[Ng(i[0])].apply(c,i[3]):1==g.length&&Vc(g)?c[h]():c.thru(g)}return function(){var a=arguments;if(c&&1==a.length&&zh(a[0]))return c.plant(a[0]).value();for(var d=0,e=f[d].apply(this,a);++d<b;)e=f[d].call(this,e);return e}}}function uc(a,b){return function(c,d,e){return"function"==typeof d&&e===w&&zh(c)?a(c,d):b(c,dc(d,e,3))}}function vc(a){return function(b,c,d){return"function"==typeof c&&d===w||(c=dc(c,d,3)),a(b,c,Oe)}}function wc(a){return function(b,c,d){return"function"==typeof c&&d===w||(c=dc(c,d,3)),a(b,c)}}function xc(a){return function(b,c,d){var e={};return c=Kc(c,d,3),Db(b,function(b,d,f){var g=c(b,d,f);d=a?g:d,b=a?b:g,e[d]=b}),e}}function yc(a){return function(b,c,d){return b=e(b),(a?b:"")+Cc(b,c,d)+(a?"":b)}}function zc(a){var b=ke(function(c,d){var e=q(d,b.placeholder);return Fc(c,a,null,d,e)});return b}function Ac(a,b){return function(c,d,e,f){var g=arguments.length<3;return"function"==typeof d&&f===w&&zh(c)?a(c,d,e,g):Tb(c,Kc(d,f,4),e,g,b)}}function Bc(a,b,c,d,e,f,g,h,i,j){function k(){for(var u=arguments.length,v=u,x=Bf(u);v--;)x[v]=arguments[v];if(d&&(x=fc(x,d,e)),f&&(x=gc(x,f,g)),o||r){var A=k.placeholder,B=q(x,A);if(u-=B.length,u<j){var C=h?cb(h):null,F=og(j-u,0),G=o?B:null,H=o?null:B,I=o?x:null,J=o?null:x;b|=o?D:E,b&=~(o?E:D),p||(b&=~(y|z));var K=[a,b,c,I,G,J,H,C,i,F],L=Bc.apply(w,K);return Vc(a)&&Qg(L,K),L.placeholder=A,L}}var M=m?c:this;n&&(a=M[t]),h&&(x=_c(x,h)),l&&i<x.length&&(x.length=i);var N=this&&this!==_a&&this instanceof k?s||nc(a):a;return N.apply(M,x)}var l=b&F,m=b&y,n=b&z,o=b&B,p=b&A,r=b&C,s=!n&&nc(a),t=a;return k}function Cc(a,b,c){var d=a.length;if(b=+b,d>=b||!mg(b))return"";var e=b-d;return c=null==c?" ":c+"",cf(c,Xf(e/c.length)).slice(0,e)}function Dc(a,b,c,d){function e(){for(var b=-1,h=arguments.length,i=-1,j=d.length,k=Bf(h+j);++i<j;)k[i]=d[i];for(;h--;)k[i++]=arguments[++b];var l=this&&this!==_a&&this instanceof e?g:a;return l.apply(f?c:this,k);
}var f=b&y,g=nc(a);return e}function Ec(a){return function(b,c,d,e){var f=Kc(d);return f===tb&&null==d?bc(b,c,a):cc(b,c,f(d,e,1),a)}}function Fc(a,b,c,d,e,f,g,h){var i=b&z;if(!i&&"function"!=typeof a)throw new Kf(O);var j=d?d.length:0;if(j||(b&=~(D|E),d=e=null),j-=e?e.length:0,b&E){var k=d,l=e;d=e=null}var m=i?null:Mg(a),n=[a,b,c,d,e,k,l,f,g,h];if(m&&(Yc(n,m),b=n[1],h=n[9]),n[9]=null==h?i?0:a.length:og(h-j,0)||0,b==y)var o=lc(n[0],n[2]);else o=b!=D&&b!=(y|D)||n[4].length?Bc.apply(w,n):Dc.apply(w,n);var p=m?Kg:Qg;return p(o,n)}function Gc(a,b,c,d,e,f,g){var h=-1,i=a.length,j=b.length,k=!0;if(i!=j&&!(e&&j>i))return!1;for(;k&&++h<i;){var l=a[h],m=b[h];if(k=w,d&&(k=e?d(m,l,h):d(l,m,h)),k===w)if(e)for(var n=j;n--&&(m=b[n],!(k=l&&l===m||c(l,m,d,e,f,g))););else k=l&&l===m||c(l,m,d,e,f,g)}return!!k}function Hc(a,b,c){switch(c){case S:case T:return+a==+b;case U:return a.name==b.name&&a.message==b.message;case X:return a!=+a?b!=+b:a==+b;case Z:case _:return a==b+""}return!1}function Ic(a,b,c,d,e,f,g){var h=Lh(a),i=h.length,j=Lh(b),k=j.length;if(i!=k&&!e)return!1;for(var l=e,m=-1;++m<i;){var n=h[m],o=e?n in b:Qf.call(b,n);if(o){var p=a[n],q=b[n];o=w,d&&(o=e?d(q,p,n):d(p,q,n)),o===w&&(o=p&&p===q||c(p,q,d,e,f,g))}if(!o)return!1;l||(l="constructor"==n)}if(!l){var r=a.constructor,s=b.constructor;if(r!=s&&"constructor"in a&&"constructor"in b&&!("function"==typeof r&&r instanceof r&&"function"==typeof s&&s instanceof s))return!1}return!0}function Jc(a,b,c){var d=c?vg:ug,e=d,f=e;return Gg(a,function(a,g,h){var i=b(a,g,h);((c?i<e:i>e)||i===d&&i===f)&&(e=i,f=a)}),f}function Kc(a,b,c){var d=W.callback||mf;return d=d===mf?tb:d,c?d(a,b,c):d}function Lc(a,b,d){var e=W.indexOf||qd;return e=e===qd?c:e,a?e(a,b,d):e}function Mc(a,b,c){for(var d=-1,e=c?c.length:0;++d<e;){var f=c[d],g=f.size;switch(f.type){case"drop":a+=g;break;case"dropRight":b-=g;break;case"take":b=pg(b,a+g);break;case"takeRight":a=og(a,b-g)}}return{start:a,end:b}}function Nc(a){var b=a.length,c=new a.constructor(b);return b&&"string"==typeof a[0]&&Qf.call(a,"index")&&(c.index=a.index,c.input=a.input),c}function Oc(a){var b=a.constructor;return"function"==typeof b&&b instanceof b||(b=Hf),new b}function Pc(a,b,c){var d=a.constructor;switch(b){case ba:return ec(a);case S:case T:return new d(+a);case ca:case da:case ea:case fa:case ga:case ha:case ia:case ja:case ka:var e=a.buffer;return new d(c?ec(e):e,a.byteOffset,a.length);case X:case _:return new d(a);case Z:var f=new d(a.source,Da.exec(a));f.lastIndex=a.lastIndex}return f}function Qc(a,b,c){null==a||Uc(b,a)||(b=ed(b),a=1==b.length?a:Gb(a,Ub(b,0,-1)),b=td(b));var d=null==a?a:a[b];return null==d?w:d.apply(a,c)}function Rc(a){return null!=a&&Wc(Og(a))}function Sc(a,b){return a=+a,b=null==b?Ag:b,a>-1&&a%1==0&&a<b}function Tc(a,b,c){if(!xe(c))return!1;var d=typeof b;if("number"==d?Rc(c)&&Sc(b,c.length):"string"==d&&b in c){var e=c[b];return a===a?a===e:e!==e}return!1}function Uc(a,b){var c=typeof a;if("string"==c&&wa.test(a)||"number"==c)return!0;if(zh(a))return!1;var d=!va.test(a);return d||null!=b&&a in dd(b)}function Vc(a){var b=Ng(a);return!!b&&a===W[b]&&b in Qa.prototype}function Wc(a){return"number"==typeof a&&a>-1&&a%1==0&&a<=Ag}function Xc(a){return a===a&&!xe(a)}function Yc(a,b){var c=a[1],d=b[1],e=c|d,f=e<F,g=d==F&&c==B||d==F&&c==G&&a[7].length<=b[8]||d==(F|G)&&c==B;if(!f&&!g)return a;d&y&&(a[2]=b[2],e|=c&y?0:A);var h=b[3];if(h){var i=a[3];a[3]=i?fc(i,h,b[4]):cb(h),a[4]=i?q(a[3],P):cb(b[4])}return h=b[5],h&&(i=a[5],a[5]=i?gc(i,h,b[6]):cb(h),a[6]=i?q(a[5],P):cb(b[6])),h=b[7],h&&(a[7]=cb(h)),d&F&&(a[8]=null==a[8]?b[8]:pg(a[8],b[8])),null==a[9]&&(a[9]=b[9]),a[0]=b[0],a[1]=e,a}function Zc(a,b){a=dd(a);for(var c=-1,d=b.length,e={};++c<d;){var f=b[c];f in a&&(e[f]=a[f])}return e}function $c(a,b){var c={};return Cb(a,function(a,d,e){b(a,d,e)&&(c[d]=a)}),c}function _c(a,b){for(var c=a.length,d=pg(b.length,c),e=cb(a);d--;){var f=b[d];a[d]=Sc(f,c)?e[f]:w}return a}function ad(a){var b;W.support;if(!o(a)||Sf.call(a)!=Y||!Qf.call(a,"constructor")&&(b=a.constructor,"function"==typeof b&&!(b instanceof b)))return!1;var c;return Cb(a,function(a,b){c=b}),c===w||Qf.call(a,c)}function bd(a){for(var b=Oe(a),c=b.length,d=c&&a.length,e=W.support,f=d&&Wc(d)&&(zh(a)||e.nonEnumArgs&&qe(a)),g=-1,h=[];++g<c;){var i=b[g];(f&&Sc(i,d)||Qf.call(a,i))&&h.push(i)}return h}function cd(a){return null==a?[]:Rc(a)?xe(a)?a:Hf(a):Te(a)}function dd(a){return xe(a)?a:Hf(a)}function ed(a){if(zh(a))return a;var b=[];return e(a).replace(xa,function(a,c,d,e){b.push(d?e.replace(Ba,"$1"):c||a)}),b}function fd(a){return a instanceof Qa?a.clone():new aa(a.__wrapped__,a.__chain__,cb(a.__actions__))}function gd(a,b,c){b=(c?Tc(a,b,c):null==b)?1:og(+b||1,1);for(var d=0,e=a?a.length:0,f=-1,g=Bf(Xf(e/b));d<e;)g[++f]=Ub(a,d,d+=b);return g}function hd(a){for(var b=-1,c=a?a.length:0,d=-1,e=[];++b<c;){var f=a[b];f&&(e[++d]=f)}return e}function id(a,b,c){var d=a?a.length:0;return d?((c?Tc(a,b,c):null==b)&&(b=1),Ub(a,b<0?0:b)):[]}function jd(a,b,c){var d=a?a.length:0;return d?((c?Tc(a,b,c):null==b)&&(b=1),b=d-(+b||0),Ub(a,0,b<0?0:b)):[]}function kd(a,b,c){return a&&a.length?_b(a,Kc(b,c,3),!0,!0):[]}function ld(a,b,c){return a&&a.length?_b(a,Kc(b,c,3),!0):[]}function md(a,b,c,d){var e=a?a.length:0;return e?(c&&"number"!=typeof c&&Tc(a,b,c)&&(c=0,d=e),yb(a,b,c,d)):[]}function nd(a){return a?a[0]:w}function od(a,b,c){var d=a?a.length:0;return c&&Tc(a,b,c)&&(b=!1),d?Bb(a,b):[]}function pd(a){var b=a?a.length:0;return b?Bb(a,!0):[]}function qd(a,b,d){var e=a?a.length:0;if(!e)return-1;if("number"==typeof d)d=d<0?og(e+d,0):d;else if(d){var f=bc(a,b),g=a[f];return(b===b?b===g:g!==g)?f:-1}return c(a,b,d||0)}function rd(a){return jd(a,1)}function sd(){for(var a=[],b=-1,d=arguments.length,e=[],f=Lc(),g=f==c,h=[];++b<d;){var i=arguments[b];Rc(i)&&(a.push(i),e.push(g&&i.length>=120?Lg(b&&i):null))}if(d=a.length,d<2)return h;var j=a[0],k=-1,l=j?j.length:0,m=e[0];a:for(;++k<l;)if(i=j[k],(m?$a(m,i):f(h,i,0))<0){for(b=d;--b;){var n=e[b];if((n?$a(n,i):f(a[b],i,0))<0)continue a}m&&m.push(i),h.push(i)}return h}function td(a){var b=a?a.length:0;return b?a[b-1]:w}function ud(a,b,c){var d=a?a.length:0;if(!d)return-1;var e=d;if("number"==typeof c)e=(c<0?og(d+c,0):pg(c||0,d-1))+1;else if(c){e=bc(a,b,!0)-1;var f=a[e];return(b===b?b===f:f!==f)?e:-1}if(b!==b)return n(a,e,!0);for(;e--;)if(a[e]===b)return e;return-1}function vd(){var a=arguments,b=a[0];if(!b||!b.length)return b;for(var c=0,d=Lc(),e=a.length;++c<e;)for(var f=0,g=a[c];(f=d(b,g,f))>-1;)fg.call(b,f,1);return b}function wd(a,b,c){var d=[];if(!a||!a.length)return d;var e=-1,f=[],g=a.length;for(b=Kc(b,c,3);++e<g;){var h=a[e];b(h,e,a)&&(d.push(h),f.push(e))}return Rb(a,f),d}function xd(a){return id(a,1)}function yd(a,b,c){var d=a?a.length:0;return d?(c&&"number"!=typeof c&&Tc(a,b,c)&&(b=0,c=d),Ub(a,b,c)):[]}function zd(a,b,c){var d=a?a.length:0;return d?((c?Tc(a,b,c):null==b)&&(b=1),Ub(a,0,b<0?0:b)):[]}function Ad(a,b,c){var d=a?a.length:0;return d?((c?Tc(a,b,c):null==b)&&(b=1),b=d-(+b||0),Ub(a,b<0?0:b)):[]}function Bd(a,b,c){return a&&a.length?_b(a,Kc(b,c,3),!1,!0):[]}function Cd(a,b,c){return a&&a.length?_b(a,Kc(b,c,3)):[]}function Dd(a,b,d,e){var f=a?a.length:0;if(!f)return[];null!=b&&"boolean"!=typeof b&&(e=d,d=Tc(a,b,e)?null:b,b=!1);var g=Kc();return g===tb&&null==d||(d=g(d,e,3)),b&&Lc()==c?r(a,d):Zb(a,d)}function Ed(a){if(!a||!a.length)return[];var b=-1,c=0;a=gb(a,function(a){if(Rc(a))return c=og(a.length,c),!0});for(var d=Bf(c);++b<c;)d[b]=hb(a,Pb(b));return d}function Fd(a,b,c){var d=a?a.length:0;if(!d)return[];var e=Ed(a);return null==b?e:(b=dc(b,c,4),hb(e,function(a){return kb(a,b,w,!0)}))}function Gd(){for(var a=-1,b=arguments.length;++a<b;){var c=arguments[a];if(Rc(c))var d=d?wb(d,c).concat(wb(c,d)):c}return d?Zb(d):[]}function Hd(a,b){var c=-1,d=a?a.length:0,e={};for(!d||b||zh(a[0])||(b=[]);++c<d;){var f=a[c];b?e[f]=b[c]:f&&(e[f[0]]=f[1])}return e}function Id(a){var b=W(a);return b.__chain__=!0,b}function Jd(a,b,c){return b.call(c,a),a}function Kd(a,b,c){return b.call(c,a)}function Ld(){return Id(this)}function Md(){return new aa(this.value(),this.__chain__)}function Nd(a){for(var b,c=this;c instanceof $;){var d=fd(c);b?e.__wrapped__=d:b=d;var e=d;c=c.__wrapped__}return e.__wrapped__=a,b}function Od(){var a=this.__wrapped__;return a instanceof Qa?(this.__actions__.length&&(a=new Qa(this)),new aa(a.reverse(),this.__chain__)):this.thru(function(a){return a.reverse()})}function Pd(){return this.value()+""}function Qd(){return ac(this.__wrapped__,this.__actions__)}function Rd(a,b,c){var d=zh(a)?fb:xb;return c&&Tc(a,b,c)&&(b=null),"function"==typeof b&&c===w||(b=Kc(b,c,3)),d(a,b)}function Sd(a,b,c){var d=zh(a)?gb:zb;return b=Kc(b,c,3),d(a,b)}function Td(a,b){return bh(a,Lb(b))}function Ud(a,b,c,d){var e=a?Og(a):0;return Wc(e)||(a=Te(a),e=a.length),!!e&&(c="number"!=typeof c||d&&Tc(b,c,d)?0:c<0?og(e+c,0):c||0,"string"==typeof a||!zh(a)&&Ee(a)?c<e&&a.indexOf(b,c)>-1:Lc(a,b,c)>-1)}function Vd(a,b,c){var d=zh(a)?hb:Kb;return b=Kc(b,c,3),d(a,b)}function Wd(a,b){return Vd(a,uf(b))}function Xd(a,b,c){var d=zh(a)?gb:zb;return b=Kc(b,c,3),d(a,function(a,c,d){return!b(a,c,d)})}function Yd(a,b,c){if(c?Tc(a,b,c):null==b){a=cd(a);var d=a.length;return d>0?a[Sb(0,d-1)]:w}var e=Zd(a);return e.length=pg(b<0?0:+b||0,e.length),e}function Zd(a){a=cd(a);for(var b=-1,c=a.length,d=Bf(c);++b<c;){var e=Sb(0,b);b!=e&&(d[b]=d[e]),d[e]=a[b]}return d}function $d(a){var b=a?Og(a):0;return Wc(b)?b:Lh(a).length}function _d(a,b,c){var d=zh(a)?mb:Vb;return c&&Tc(a,b,c)&&(b=null),"function"==typeof b&&c===w||(b=Kc(b,c,3)),d(a,b)}function ae(a,b,c){if(null==a)return[];c&&Tc(a,b,c)&&(b=null);var d=-1;b=Kc(b,c,3);var e=Kb(a,function(a,c,e){return{criteria:b(a,c,e),index:++d,value:a}});return Wb(e,i)}function be(a,b,c,d){return null==a?[]:(d&&Tc(b,c,d)&&(c=null),zh(b)||(b=null==b?[]:[b]),zh(c)||(c=null==c?[]:[c]),Xb(a,b,c))}function ce(a,b){return Sd(a,Lb(b))}function de(a,b){if("function"!=typeof b){if("function"!=typeof a)throw new Kf(O);var c=a;a=b,b=c}return a=mg(a=+a)?a:0,function(){if(--a<1)return b.apply(this,arguments)}}function ee(a,b,c){return c&&Tc(a,b,c)&&(b=null),b=a&&null==b?a.length:og(+b||0,0),Fc(a,F,null,null,null,null,b)}function fe(a,b){var c;if("function"!=typeof b){if("function"!=typeof a)throw new Kf(O);var d=a;a=b,b=d}return function(){return--a>0&&(c=b.apply(this,arguments)),a<=1&&(b=null),c}}function ge(a,b,c){function d(){m&&Yf(m),i&&Yf(i),i=m=n=w}function e(){var c=b-(mh()-k);if(c<=0||c>b){i&&Yf(i);var d=n;i=m=n=w,d&&(o=mh(),j=a.apply(l,h),m||i||(h=l=null))}else m=eg(e,c)}function f(){m&&Yf(m),i=m=n=w,(q||p!==b)&&(o=mh(),j=a.apply(l,h),m||i||(h=l=null))}function g(){if(h=arguments,k=mh(),l=this,n=q&&(m||!r),p===!1)var c=r&&!m;else{i||r||(o=k);var d=p-(k-o),g=d<=0||d>p;g?(i&&(i=Yf(i)),o=k,j=a.apply(l,h)):i||(i=eg(f,d))}return g&&m?m=Yf(m):m||b===p||(m=eg(e,b)),c&&(g=!0,j=a.apply(l,h)),!g||m||i||(h=l=null),j}var h,i,j,k,l,m,n,o=0,p=!1,q=!0;if("function"!=typeof a)throw new Kf(O);if(b=b<0?0:+b||0,c===!0){var r=!0;q=!1}else xe(c)&&(r=c.leading,p="maxWait"in c&&og(+c.maxWait||0,b),q="trailing"in c?c.trailing:q);return g.cancel=d,g}function he(a,b){if("function"!=typeof a||b&&"function"!=typeof b)throw new Kf(O);var c=function(){var d=arguments,e=c.cache,f=b?b.apply(this,d):d[0];if(e.has(f))return e.get(f);var g=a.apply(this,d);return e.set(f,g),g};return c.cache=new he.Cache,c}function ie(a){if("function"!=typeof a)throw new Kf(O);return function(){return!a.apply(this,arguments)}}function je(a){return fe(2,a)}function ke(a,b){if("function"!=typeof a)throw new Kf(O);return b=og(b===w?a.length-1:+b||0,0),function(){for(var c=arguments,d=-1,e=og(c.length-b,0),f=Bf(e);++d<e;)f[d]=c[b+d];switch(b){case 0:return a.call(this,f);case 1:return a.call(this,c[0],f);case 2:return a.call(this,c[0],c[1],f)}var g=Bf(b+1);for(d=-1;++d<b;)g[d]=c[d];return g[b]=f,a.apply(this,g)}}function le(a){if("function"!=typeof a)throw new Kf(O);return function(b){return a.apply(this,b)}}function me(a,b,c){var d=!0,e=!0;if("function"!=typeof a)throw new Kf(O);return c===!1?d=!1:xe(c)&&(d="leading"in c?!!c.leading:d,e="trailing"in c?!!c.trailing:e),Pa.leading=d,Pa.maxWait=+b,Pa.trailing=e,ge(a,b,Pa)}function ne(a,b){return b=null==b?of:b,Fc(b,D,null,[a],[])}function oe(a,b,c,d){return b&&"boolean"!=typeof b&&Tc(a,b,c)?b=!1:"function"==typeof b&&(d=c,c=b,b=!1),c="function"==typeof c&&dc(c,d,1),ub(a,b,c)}function pe(a,b,c){return b="function"==typeof b&&dc(b,c,1),ub(a,!0,b)}function qe(a){return o(a)&&Rc(a)&&Sf.call(a)==Q}function re(a){return a===!0||a===!1||o(a)&&Sf.call(a)==S}function se(a){return o(a)&&Sf.call(a)==T}function te(a){return!!a&&1===a.nodeType&&o(a)&&Sf.call(a).indexOf("Element")>-1}function ue(a){return null==a||(Rc(a)&&(zh(a)||Ee(a)||qe(a)||o(a)&&Bh(a.splice))?!a.length:!Lh(a).length)}function ve(a,b,c,d){if(c="function"==typeof c&&dc(c,d,3),!c&&Xc(a)&&Xc(b))return a===b;var e=c?c(a,b):w;return e===w?Hb(a,b,c):!!e}function we(a){return o(a)&&"string"==typeof a.message&&Sf.call(a)==U}function xe(a){var b=typeof a;return"function"==b||!!a&&"object"==b}function ye(a,b,c,d){var e=Lh(b),f=e.length;if(!f)return!0;if(null==a)return!1;if(c="function"==typeof c&&dc(c,d,3),a=dd(a),!c&&1==f){var g=e[0],h=b[g];if(Xc(h))return h===a[g]&&(h!==w||g in a)}for(var i=Bf(f),j=Bf(f);f--;)h=i[f]=b[e[f]],j[f]=Xc(h);return Jb(a,e,i,j,c)}function ze(a){return Ce(a)&&a!=+a}function Ae(a){return null!=a&&(Sf.call(a)==V?Uf.test(Pf.call(a)):o(a)&&Fa.test(a))}function Be(a){return null===a}function Ce(a){return"number"==typeof a||o(a)&&Sf.call(a)==X}function De(a){return o(a)&&Sf.call(a)==Z}function Ee(a){return"string"==typeof a||o(a)&&Sf.call(a)==_}function Fe(a){return o(a)&&Wc(a.length)&&!!Na[Sf.call(a)]}function Ge(a){return a===w}function He(a){var b=a?Og(a):0;return Wc(b)?b?cb(a):[]:Te(a)}function Ie(a){return sb(a,Oe(a))}function Je(a,b,c){var d=Fg(a);return c&&Tc(a,b,c)&&(b=null),b?Eg(d,b):d}function Ke(a){return Fb(a,Oe(a))}function Le(a,b,c){var d=null==a?w:Gb(a,ed(b),b+"");return d===w?c:d}function Me(a,b){if(null==a)return!1;var c=Qf.call(a,b);return c||Uc(b)||(b=ed(b),a=1==b.length?a:Gb(a,Ub(b,0,-1)),b=td(b),c=null!=a&&Qf.call(a,b)),c}function Ne(a,b,c){c&&Tc(a,b,c)&&(b=null);for(var d=-1,e=Lh(a),f=e.length,g={};++d<f;){var h=e[d],i=a[h];b?Qf.call(g,i)?g[i].push(h):g[i]=[h]:g[i]=h}return g}function Oe(a){if(null==a)return[];xe(a)||(a=Hf(a));var b=a.length;b=b&&Wc(b)&&(zh(a)||Dg.nonEnumArgs&&qe(a))&&b||0;for(var c=a.constructor,d=-1,e="function"==typeof c&&c.prototype===a,f=Bf(b),g=b>0;++d<b;)f[d]=d+"";for(var h in a)g&&Sc(h,b)||"constructor"==h&&(e||!Qf.call(a,h))||f.push(h);return f}function Pe(a){for(var b=-1,c=Lh(a),d=c.length,e=Bf(d);++b<d;){var f=c[b];e[b]=[f,a[f]]}return e}function Qe(a,b,c){var d=null==a?w:a[b];return d===w&&(null==a||Uc(b,a)||(b=ed(b),a=1==b.length?a:Gb(a,Ub(b,0,-1)),d=null==a?w:a[td(b)]),d=d===w?c:d),Bh(d)?d.call(a):d}function Re(a,b,c){if(null==a)return a;var d=b+"";b=null!=a[d]||Uc(b,a)?[d]:ed(b);for(var e=-1,f=b.length,g=f-1,h=a;null!=h&&++e<f;){var i=b[e];xe(h)&&(e==g?h[i]=c:null==h[i]&&(h[i]=Sc(b[e+1])?[]:{})),h=h[i]}return a}function Se(a,b,c,d){var e=zh(a)||Fe(a);if(b=Kc(b,d,4),null==c)if(e||xe(a)){var f=a.constructor;c=e?zh(a)?new f:[]:Fg(Bh(f)&&f.prototype)}else c={};return(e?db:Db)(a,function(a,d,e){return b(c,a,d,e)}),c}function Te(a){return $b(a,Lh(a))}function Ue(a){return $b(a,Oe(a))}function Ve(a,b,c){return b=+b||0,"undefined"==typeof c?(c=b,b=0):c=+c||0,a>=pg(b,c)&&a<og(b,c)}function We(a,b,c){c&&Tc(a,b,c)&&(b=c=null);var d=null==a,e=null==b;if(null==c&&(e&&"boolean"==typeof a?(c=a,a=1):"boolean"==typeof b&&(c=b,e=!0)),d&&e&&(b=1,e=!1),a=+a||0,e?(b=a,a=0):b=+b||0,c||a%1||b%1){var f=tg();return pg(a+f*(b-a+parseFloat("1e-"+((f+"").length-1))),b)}return Sb(a,b)}function Xe(a){return a=e(a),a&&a.charAt(0).toUpperCase()+a.slice(1)}function Ye(a){return a=e(a),a&&a.replace(Ga,k).replace(Aa,"")}function Ze(a,b,c){a=e(a),b+="";var d=a.length;return c=c===w?d:pg(c<0?0:+c||0,d),c-=b.length,c>=0&&a.indexOf(b,c)==c}function $e(a){return a=e(a),a&&ra.test(a)?a.replace(pa,l):a}function _e(a){return a=e(a),a&&za.test(a)?a.replace(ya,"\\$&"):a}function af(a,b,c){a=e(a),b=+b;var d=a.length;if(d>=b||!mg(b))return a;var f=(b-d)/2,g=Zf(f),h=Xf(f);return c=Cc("",h,c),c.slice(0,g)+a+c}function bf(a,b,c){return c&&Tc(a,b,c)&&(b=0),sg(a,b)}function cf(a,b){var c="";if(a=e(a),b=+b,b<1||!a||!mg(b))return c;do b%2&&(c+=a),b=Zf(b/2),a+=a;while(b);return c}function df(a,b,c){return a=e(a),c=null==c?0:pg(c<0?0:+c||0,a.length),a.lastIndexOf(b,c)==c}function ef(a,b,c){var d=W.templateSettings;c&&Tc(a,b,c)&&(b=c=null),a=e(a),b=qb(Eg({},c||b),d,pb);var f,g,h=qb(Eg({},b.imports),d.imports,pb),i=Lh(h),j=$b(h,i),k=0,l=b.interpolate||Ha,n="__p += '",o=If((b.escape||Ha).source+"|"+l.source+"|"+(l===ua?Ca:Ha).source+"|"+(b.evaluate||Ha).source+"|$","g"),p="//# sourceURL="+("sourceURL"in b?b.sourceURL:"lodash.templateSources["+ ++Ma+"]")+"\n";a.replace(o,function(b,c,d,e,h,i){return d||(d=e),n+=a.slice(k,i).replace(Ia,m),c&&(f=!0,n+="' +\n__e("+c+") +\n'"),h&&(g=!0,n+="';\n"+h+";\n__p += '"),d&&(n+="' +\n((__t = ("+d+")) == null ? '' : __t) +\n'"),k=i+b.length,b}),n+="';\n";var q=b.variable;q||(n="with (obj) {\n"+n+"\n}\n"),n=(g?n.replace(la,""):n).replace(ma,"$1").replace(na,"$1;"),n="function("+(q||"obj")+") {\n"+(q?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(f?", __e = _.escape":"")+(g?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+n+"return __p\n}";var r=Xh(function(){return Ef(i,p+"return "+n).apply(w,j)});if(r.source=n,we(r))throw r;return r}function ff(a,b,c){var d=a;return(a=e(a))?(c?Tc(d,b,c):null==b)?a.slice(s(a),t(a)+1):(b+="",a.slice(g(a,b),h(a,b)+1)):a}function gf(a,b,c){var d=a;return a=e(a),a?(c?Tc(d,b,c):null==b)?a.slice(s(a)):a.slice(g(a,b+"")):a}function hf(a,b,c){var d=a;return a=e(a),a?(c?Tc(d,b,c):null==b)?a.slice(0,t(a)+1):a.slice(0,h(a,b+"")+1):a}function jf(a,b,c){c&&Tc(a,b,c)&&(b=null);var d=H,f=I;if(null!=b)if(xe(b)){var g="separator"in b?b.separator:g;d="length"in b?+b.length||0:d,f="omission"in b?e(b.omission):f}else d=+b||0;if(a=e(a),d>=a.length)return a;var h=d-f.length;if(h<1)return f;var i=a.slice(0,h);if(null==g)return i+f;if(De(g)){if(a.slice(h).search(g)){var j,k,l=a.slice(0,h);for(g.global||(g=If(g.source,(Da.exec(g)||"")+"g")),g.lastIndex=0;j=g.exec(l);)k=j.index;i=i.slice(0,null==k?h:k)}}else if(a.indexOf(g,h)!=h){var m=i.lastIndexOf(g);m>-1&&(i=i.slice(0,m))}return i+f}function kf(a){return a=e(a),a&&qa.test(a)?a.replace(oa,u):a}function lf(a,b,c){return c&&Tc(a,b,c)&&(b=null),a=e(a),a.match(b||Ja)||[]}function mf(a,b,c){return c&&Tc(a,b,c)&&(b=null),o(a)?pf(a):tb(a,b)}function nf(a){return function(){return a}}function of(a){return a}function pf(a){return Lb(ub(a,!0))}function qf(a,b){return Mb(a,ub(b,!0))}function rf(a,b,c){if(null==c){var d=xe(b),e=d&&Lh(b),f=e&&e.length&&Fb(b,e);(f?f.length:d)||(f=!1,c=b,b=a,a=this)}f||(f=Fb(b,Lh(b)));var g=!0,h=-1,i=Bh(a),j=f.length;c===!1?g=!1:xe(c)&&"chain"in c&&(g=c.chain);for(;++h<j;){var k=f[h],l=b[k];a[k]=l,i&&(a.prototype[k]=function(b){return function(){var c=this.__chain__;if(g||c){var d=a(this.__wrapped__),e=d.__actions__=cb(this.__actions__);return e.push({func:b,args:arguments,thisArg:a}),d.__chain__=c,d}var f=[this.value()];return ag.apply(f,arguments),b.apply(a,f)}}(l))}return a}function sf(){return p._=Tf,this}function tf(){}function uf(a){return Uc(a)?Pb(a):Qb(a)}function vf(a){return function(b){return Gb(a,ed(b),b+"")}}function wf(a,b,c){c&&Tc(a,b,c)&&(b=c=null),a=+a||0,c=null==c?1:+c||0,null==b?(b=a,a=0):b=+b||0;for(var d=-1,e=og(Xf((b-a)/(c||1)),0),f=Bf(e);++d<e;)f[d]=a,a+=c;return f}function xf(a,b,c){if(a=Zf(a),a<1||!mg(a))return[];var d=-1,e=Bf(pg(a,wg));for(b=dc(b,c,1);++d<a;)d<wg?e[d]=b(d):b(d);return e}function yf(a){var b=++Rf;return e(a)+b}function zf(a,b){return(+a||0)+(+b||0)}function Af(a,b,c){c&&Tc(a,b,c)&&(b=null);var d=Kc(),e=null==b;return d===tb&&e||(e=!1,b=d(b,c,3)),e?nb(zh(a)?a:cd(a)):Yb(a,b)}p=p?ab.defaults(_a.Object(),p,ab.pick(_a,La)):_a;var Bf=p.Array,Cf=p.Date,Df=p.Error,Ef=p.Function,Ff=p.Math,Gf=p.Number,Hf=p.Object,If=p.RegExp,Jf=p.String,Kf=p.TypeError,Lf=Bf.prototype,Mf=Hf.prototype,Nf=Jf.prototype,Of=(Of=p.window)&&Of.document,Pf=Ef.prototype.toString,Qf=Mf.hasOwnProperty,Rf=0,Sf=Mf.toString,Tf=p._,Uf=If("^"+_e(Sf).replace(/toString|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Vf=Ae(Vf=p.ArrayBuffer)&&Vf,Wf=Ae(Wf=Vf&&new Vf(0).slice)&&Wf,Xf=Ff.ceil,Yf=p.clearTimeout,Zf=Ff.floor,$f=Ae($f=Hf.getOwnPropertySymbols)&&$f,_f=Ae(_f=Hf.getPrototypeOf)&&_f,ag=Lf.push,bg=Ae(bg=Hf.preventExtensions)&&bg,cg=Mf.propertyIsEnumerable,dg=Ae(dg=p.Set)&&dg,eg=p.setTimeout,fg=Lf.splice,gg=Ae(gg=p.Uint8Array)&&gg,hg=Ae(hg=p.WeakMap)&&hg,ig=function(){try{var a=Ae(a=p.Float64Array)&&a,b=new a(new Vf(10),0,1)&&a}catch(c){}return b}(),jg=function(){var a=bg&&Ae(a=Hf.assign)&&a;try{if(a){var b=bg({1:0});b[0]=1}}catch(c){try{a(b,"xo")}catch(c){}return!b[1]&&a}return!1}(),kg=Ae(kg=Bf.isArray)&&kg,lg=Ae(lg=Hf.create)&&lg,mg=p.isFinite,ng=Ae(ng=Hf.keys)&&ng,og=Ff.max,pg=Ff.min,qg=Ae(qg=Cf.now)&&qg,rg=Ae(rg=Gf.isFinite)&&rg,sg=p.parseInt,tg=Ff.random,ug=Gf.NEGATIVE_INFINITY,vg=Gf.POSITIVE_INFINITY,wg=Ff.pow(2,32)-1,xg=wg-1,yg=wg>>>1,zg=ig?ig.BYTES_PER_ELEMENT:0,Ag=Ff.pow(2,53)-1,Bg=hg&&new hg,Cg={},Dg=W.support={};!function(a){var b=function(){this.x=a},c=arguments,d=[];b.prototype={valueOf:a,y:a};for(var e in new b)d.push(e);Dg.funcDecomp=/\bthis\b/.test(function(){return this}),Dg.funcNames="string"==typeof Ef.name;try{Dg.dom=11===Of.createDocumentFragment().nodeType}catch(f){Dg.dom=!1}try{Dg.nonEnumArgs=!cg.call(c,1)}catch(f){Dg.nonEnumArgs=!0}}(1,0),W.templateSettings={escape:sa,evaluate:ta,interpolate:ua,variable:"",imports:{_:W}};var Eg=jg||function(a,b){return null==b?a:sb(b,Pg(b),sb(b,Lh(b),a))},Fg=function(){function a(){}return function(b){if(xe(b)){a.prototype=b;var c=new a;a.prototype=null}return c||p.Object()}}(),Gg=jc(Db),Hg=jc(Eb,!0),Ig=kc(),Jg=kc(!0),Kg=Bg?function(a,b){return Bg.set(a,b),a}:of;Wf||(ec=Vf&&gg?function(a){var b=a.byteLength,c=ig?Zf(b/zg):0,d=c*zg,e=new Vf(b);if(c){var f=new ig(e,0,c);f.set(new ig(a,0,c))}return b!=d&&(f=new gg(e,d),f.set(new gg(a,d))),e}:nf(null));var Lg=lg&&dg?function(a){return new Za(a)}:nf(null),Mg=Bg?function(a){return Bg.get(a)}:tf,Ng=function(){return Dg.funcNames?"constant"==nf.name?Pb("name"):function(a){for(var b=a.name,c=Cg[b],d=c?c.length:0;d--;){var e=c[d],f=e.func;if(null==f||f==a)return e.name}return b}:nf("")}(),Og=Pb("length"),Pg=$f?function(a){return $f(dd(a))}:nf([]),Qg=function(){var a=0,b=0;return function(c,d){var e=mh(),f=K-(e-b);if(b=e,f>0){if(++a>=J)return c}else a=0;return Kg(c,d)}}(),Rg=ke(function(a,b){return Rc(a)?wb(a,Bb(b,!1,!0)):[]}),Sg=rc(),Tg=rc(!0),Ug=ke(function(b,c){c=Bb(c);var d=rb(b,c);return Rb(b,c.sort(a)),d}),Vg=Ec(),Wg=Ec(!0),Xg=ke(function(a){return Zb(Bb(a,!1,!0))}),Yg=ke(function(a,b){return Rc(a)?wb(a,b):[]}),Zg=ke(Ed),$g=ke(function(a){var b=a.length,c=a[b-2],d=a[b-1];return b>2&&"function"==typeof c?b-=2:(c=b>1&&"function"==typeof d?(--b,d):w,d=w),a.length=b,Fd(a,c,d)}),_g=ke(function(a,b){return rb(a,Bb(b))}),ah=hc(function(a,b,c){Qf.call(a,c)?++a[c]:a[c]=1}),bh=qc(Gg),ch=qc(Hg,!0),dh=uc(db,Gg),eh=uc(eb,Hg),fh=hc(function(a,b,c){Qf.call(a,c)?a[c].push(b):a[c]=[b]}),gh=hc(function(a,b,c){a[c]=b}),hh=ke(function(a,b,c){var d=-1,e="function"==typeof b,f=Uc(b),g=Rc(a)?Bf(a.length):[];return Gg(a,function(a){var h=e?b:f&&null!=a&&a[b];g[++d]=h?h.apply(a,c):Qc(a,b,c)}),g}),ih=hc(function(a,b,c){a[c?0:1].push(b)},function(){return[[],[]]}),jh=Ac(kb,Gg),kh=Ac(lb,Hg),lh=ke(function(a,b){if(null==a)return[];var c=b[2];return c&&Tc(b[0],b[1],c)&&(b.length=1),Xb(a,Bb(b),[])}),mh=qg||function(){return(new Cf).getTime()},nh=ke(function(a,b,c){var d=y;if(c.length){var e=q(c,nh.placeholder);d|=D}return Fc(a,d,b,c,e)}),oh=ke(function(a,b){b=b.length?Bb(b):Ke(a);for(var c=-1,d=b.length;++c<d;){var e=b[c];a[e]=Fc(a[e],y,a)}return a}),ph=ke(function(a,b,c){var d=y|z;if(c.length){var e=q(c,ph.placeholder);d|=D}return Fc(b,d,a,c,e)}),qh=oc(B),rh=oc(C),sh=ke(function(a,b){return vb(a,1,b)}),th=ke(function(a,b,c){return vb(a,b,c)}),uh=tc(),vh=tc(!0),wh=zc(D),xh=zc(E),yh=ke(function(a,b){return Fc(a,G,null,null,null,Bb(b))}),zh=kg||function(a){return o(a)&&Wc(a.length)&&Sf.call(a)==R};Dg.dom||(te=function(a){return!!a&&1===a.nodeType&&o(a)&&!Ch(a)});var Ah=rg||function(a){return"number"==typeof a&&mg(a)},Bh=d(/x/)||gg&&!d(gg)?function(a){return Sf.call(a)==V}:d,Ch=_f?function(a){if(!a||Sf.call(a)!=Y)return!1;var b=a.valueOf,c=Ae(b)&&(c=_f(b))&&_f(c);return c?a==c||_f(a)==c:ad(a)}:ad,Dh=ic(function(a,b,c){return c?qb(a,b,c):Eg(a,b)}),Eh=ke(function(a){var b=a[0];return null==b?b:(a.push(ob),Dh.apply(w,a))}),Fh=sc(Db),Gh=sc(Eb),Hh=vc(Ig),Ih=vc(Jg),Jh=wc(Db),Kh=wc(Eb),Lh=ng?function(a){var b=null!=a&&a.constructor;return"function"==typeof b&&b.prototype===a||"function"!=typeof a&&Rc(a)?bd(a):xe(a)?ng(a):[]}:bd,Mh=xc(!0),Nh=xc(),Oh=ic(Nb),Ph=ke(function(a,b){if(null==a)return{};if("function"!=typeof b[0]){var b=hb(Bb(b),Jf);return Zc(a,wb(Oe(a),b))}var c=dc(b[0],b[1],3);return $c(a,function(a,b,d){return!c(a,b,d)})}),Qh=ke(function(a,b){return null==a?{}:"function"==typeof b[0]?$c(a,dc(b[0],b[1],3)):Zc(a,Bb(b))}),Rh=mc(function(a,b,c){return b=b.toLowerCase(),a+(c?b.charAt(0).toUpperCase()+b.slice(1):b)}),Sh=mc(function(a,b,c){return a+(c?"-":"")+b.toLowerCase()}),Th=yc(),Uh=yc(!0);8!=sg(Ka+"08")&&(bf=function(a,b,c){return(c?Tc(a,b,c):null==b)?b=0:b&&(b=+b),a=ff(a),sg(a,b||(Ea.test(a)?16:10))});var Vh=mc(function(a,b,c){return a+(c?"_":"")+b.toLowerCase()}),Wh=mc(function(a,b,c){return a+(c?" ":"")+(b.charAt(0).toUpperCase()+b.slice(1))}),Xh=ke(function(a,b){try{return a.apply(w,b)}catch(c){return we(c)?c:new Df(c)}}),Yh=ke(function(a,b){return function(c){return Qc(c,a,b)}}),Zh=ke(function(a,b){return function(c){return Qc(a,c,b)}}),$h=pc(ib),_h=pc(jb,!0);return W.prototype=$.prototype,aa.prototype=Fg($.prototype),aa.prototype.constructor=aa,Qa.prototype=Fg($.prototype),Qa.prototype.constructor=Qa,Ua.prototype.delete=Va,Ua.prototype.get=Wa,Ua.prototype.has=Xa,Ua.prototype.set=Ya,Za.prototype.push=bb,he.Cache=Ua,W.after=de,W.ary=ee,W.assign=Dh,W.at=_g,W.before=fe,W.bind=nh,W.bindAll=oh,W.bindKey=ph,W.callback=mf,W.chain=Id,W.chunk=gd,W.compact=hd,W.constant=nf,W.countBy=ah,W.create=Je,W.curry=qh,W.curryRight=rh,W.debounce=ge,W.defaults=Eh,W.defer=sh,W.delay=th,W.difference=Rg,W.drop=id,W.dropRight=jd,W.dropRightWhile=kd,W.dropWhile=ld,W.fill=md,W.filter=Sd,W.flatten=od,W.flattenDeep=pd,W.flow=uh,W.flowRight=vh,W.forEach=dh,W.forEachRight=eh,W.forIn=Hh,W.forInRight=Ih,W.forOwn=Jh,W.forOwnRight=Kh,W.functions=Ke,W.groupBy=fh,W.indexBy=gh,W.initial=rd,W.intersection=sd,W.invert=Ne,W.invoke=hh,W.keys=Lh,W.keysIn=Oe,W.map=Vd,W.mapKeys=Mh,W.mapValues=Nh,W.matches=pf,W.matchesProperty=qf,W.memoize=he,W.merge=Oh,W.method=Yh,W.methodOf=Zh,W.mixin=rf,W.negate=ie,W.omit=Ph,W.once=je,W.pairs=Pe,W.partial=wh,W.partialRight=xh,W.partition=ih,W.pick=Qh,W.pluck=Wd,W.property=uf,W.propertyOf=vf,W.pull=vd,W.pullAt=Ug,W.range=wf,W.rearg=yh,W.reject=Xd,W.remove=wd,W.rest=xd,W.restParam=ke,W.set=Re,W.shuffle=Zd,W.slice=yd,W.sortBy=ae,W.sortByAll=lh,W.sortByOrder=be,W.spread=le,W.take=zd,W.takeRight=Ad,W.takeRightWhile=Bd,W.takeWhile=Cd,W.tap=Jd,W.throttle=me,W.thru=Kd,W.times=xf,W.toArray=He,W.toPlainObject=Ie,W.transform=Se,W.union=Xg,W.uniq=Dd,W.unzip=Ed,W.unzipWith=Fd,W.values=Te,W.valuesIn=Ue,W.where=ce,W.without=Yg,W.wrap=ne,W.xor=Gd,W.zip=Zg,W.zipObject=Hd,W.zipWith=$g,W.backflow=vh,W.collect=Vd,W.compose=vh,W.each=dh,W.eachRight=eh,W.extend=Dh,W.iteratee=mf,W.methods=Ke,W.object=Hd,W.select=Sd,W.tail=xd,W.unique=Dd,rf(W,W),W.add=zf,W.attempt=Xh,W.camelCase=Rh,W.capitalize=Xe,W.clone=oe,W.cloneDeep=pe,W.deburr=Ye,W.endsWith=Ze,W.escape=$e,W.escapeRegExp=_e,W.every=Rd,W.find=bh,W.findIndex=Sg,W.findKey=Fh,W.findLast=ch,W.findLastIndex=Tg,W.findLastKey=Gh,W.findWhere=Td,W.first=nd,W.get=Le,W.has=Me,W.identity=of,W.includes=Ud,W.indexOf=qd,W.inRange=Ve,W.isArguments=qe,W.isArray=zh,W.isBoolean=re,W.isDate=se,W.isElement=te,W.isEmpty=ue,W.isEqual=ve,W.isError=we,W.isFinite=Ah,W.isFunction=Bh,W.isMatch=ye,W.isNaN=ze,W.isNative=Ae,W.isNull=Be,W.isNumber=Ce,W.isObject=xe,W.isPlainObject=Ch,W.isRegExp=De,W.isString=Ee,W.isTypedArray=Fe,W.isUndefined=Ge,W.kebabCase=Sh,W.last=td,W.lastIndexOf=ud,W.max=$h,W.min=_h,W.noConflict=sf,W.noop=tf,W.now=mh,W.pad=af,W.padLeft=Th,W.padRight=Uh,W.parseInt=bf,W.random=We,W.reduce=jh,W.reduceRight=kh,W.repeat=cf,W.result=Qe,W.runInContext=v,W.size=$d,W.snakeCase=Vh,W.some=_d,W.sortedIndex=Vg,W.sortedLastIndex=Wg,W.startCase=Wh,W.startsWith=df,W.sum=Af,W.template=ef,W.trim=ff,W.trimLeft=gf,W.trimRight=hf,W.trunc=jf,W.unescape=kf,W.uniqueId=yf,W.words=lf,W.all=Rd,W.any=_d,W.contains=Ud,W.detect=bh,W.foldl=jh,W.foldr=kh,W.head=nd,W.include=Ud,W.inject=jh,rf(W,function(){var a={};return Db(W,function(b,c){W.prototype[c]||(a[c]=b)}),a}(),!1),W.sample=Yd,W.prototype.sample=function(a){return this.__chain__||null!=a?this.thru(function(b){return Yd(b,a)}):Yd(this.value())},W.VERSION=x,db(["bind","bindKey","curry","curryRight","partial","partialRight"],function(a){W[a].placeholder=W}),db(["dropWhile","filter","map","takeWhile"],function(a,b){var c=b!=N,d=b==L;Qa.prototype[a]=function(a,e){var f=this.__filtered__,g=f&&d?new Qa(this):this.clone(),h=g.__iteratees__||(g.__iteratees__=[]);return h.push({done:!1,count:0,index:0,iteratee:Kc(a,e,1),limit:-1,type:b}),g.__filtered__=f||c,g}}),db(["drop","take"],function(a,b){var c=a+"While";Qa.prototype[a]=function(c){var d=this.__filtered__,e=d&&!b?this.dropWhile():this.clone();if(c=null==c?1:og(Zf(c)||0,0),d)b?e.__takeCount__=pg(e.__takeCount__,c):td(e.__iteratees__).limit=c;else{var f=e.__views__||(e.__views__=[]);f.push({size:c,type:a+(e.__dir__<0?"Right":"")})}return e},Qa.prototype[a+"Right"]=function(b){return this.reverse()[a](b).reverse()},Qa.prototype[a+"RightWhile"]=function(a,b){return this.reverse()[c](a,b).reverse()}}),db(["first","last"],function(a,b){var c="take"+(b?"Right":"");Qa.prototype[a]=function(){return this[c](1).value()[0]}}),db(["initial","rest"],function(a,b){var c="drop"+(b?"":"Right");Qa.prototype[a]=function(){return this[c](1)}}),db(["pluck","where"],function(a,b){var c=b?"filter":"map",d=b?Lb:uf;Qa.prototype[a]=function(a){return this[c](d(a))}}),Qa.prototype.compact=function(){return this.filter(of)},Qa.prototype.reject=function(a,b){return a=Kc(a,b,1),this.filter(function(b){return!a(b)})},Qa.prototype.slice=function(a,b){a=null==a?0:+a||0;var c=this;return a<0?c=this.takeRight(-a):a&&(c=this.drop(a)),b!==w&&(b=+b||0,c=b<0?c.dropRight(-b):c.take(b-a)),c},Qa.prototype.toArray=function(){return this.drop(0)},Db(Qa.prototype,function(a,b){var c=W[b];if(c){var d=/^(?:filter|map|reject)|While$/.test(b),e=/^(?:first|last)$/.test(b);W.prototype[b]=function(){var b=arguments,f=this.__chain__,g=this.__wrapped__,h=!!this.__actions__.length,i=g instanceof Qa,j=b[0],k=i||zh(g);k&&d&&"function"==typeof j&&1!=j.length&&(i=k=!1);var l=i&&!h;if(e&&!f)return l?a.call(g):c.call(W,this.value());var m=function(a){var d=[a];return ag.apply(d,b),c.apply(W,d)};if(k){var n=l?g:new Qa(this),o=a.apply(n,b);if(!e&&(h||o.__actions__)){var p=o.__actions__||(o.__actions__=[]);p.push({func:Kd,args:[m],thisArg:W})}return new aa(o,f)}return this.thru(m)}}}),db(["concat","join","pop","push","replace","shift","sort","splice","split","unshift"],function(a){var b=(/^(?:replace|split)$/.test(a)?Nf:Lf)[a],c=/^(?:push|sort|unshift)$/.test(a)?"tap":"thru",d=/^(?:join|pop|replace|shift)$/.test(a);W.prototype[a]=function(){var a=arguments;return d&&!this.__chain__?b.apply(this.value(),a):this[c](function(c){return b.apply(c,a)})}}),Db(Qa.prototype,function(a,b){var c=W[b];if(c){var d=c.name,e=Cg[d]||(Cg[d]=[]);e.push({name:b,func:c})}}),Cg[Bc(null,z).name]=[{name:"wrapper",func:null}],Qa.prototype.clone=Ra,Qa.prototype.reverse=Sa,Qa.prototype.value=Ta,W.prototype.chain=Ld,W.prototype.commit=Md,
W.prototype.plant=Nd,W.prototype.reverse=Od,W.prototype.toString=Pd,W.prototype.run=W.prototype.toJSON=W.prototype.valueOf=W.prototype.value=Qd,W.prototype.collect=W.prototype.map,W.prototype.head=W.prototype.first,W.prototype.select=W.prototype.filter,W.prototype.tail=W.prototype.rest,W}var w,x="3.8.0",y=1,z=2,A=4,B=8,C=16,D=32,E=64,F=128,G=256,H=30,I="...",J=150,K=16,L=0,M=1,N=2,O="Expected a function",P="__lodash_placeholder__",Q="[object Arguments]",R="[object Array]",S="[object Boolean]",T="[object Date]",U="[object Error]",V="[object Function]",W="[object Map]",X="[object Number]",Y="[object Object]",Z="[object RegExp]",$="[object Set]",_="[object String]",aa="[object WeakMap]",ba="[object ArrayBuffer]",ca="[object Float32Array]",da="[object Float64Array]",ea="[object Int8Array]",fa="[object Int16Array]",ga="[object Int32Array]",ha="[object Uint8Array]",ia="[object Uint8ClampedArray]",ja="[object Uint16Array]",ka="[object Uint32Array]",la=/\b__p \+= '';/g,ma=/\b(__p \+=) '' \+/g,na=/(__e\(.*?\)|\b__t\)) \+\n'';/g,oa=/&(?:amp|lt|gt|quot|#39|#96);/g,pa=/[&<>"'`]/g,qa=RegExp(oa.source),ra=RegExp(pa.source),sa=/<%-([\s\S]+?)%>/g,ta=/<%([\s\S]+?)%>/g,ua=/<%=([\s\S]+?)%>/g,va=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\n\\]|\\.)*?\1)\]/,wa=/^\w*$/,xa=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\n\\]|\\.)*?)\2)\]/g,ya=/[.*+?^${}()|[\]\/\\]/g,za=RegExp(ya.source),Aa=/[\u0300-\u036f\ufe20-\ufe23]/g,Ba=/\\(\\)?/g,Ca=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Da=/\w*$/,Ea=/^0[xX]/,Fa=/^\[object .+?Constructor\]$/,Ga=/[\xc0-\xd6\xd8-\xde\xdf-\xf6\xf8-\xff]/g,Ha=/($^)/,Ia=/['\n\r\u2028\u2029\\]/g,Ja=function(){var a="[A-Z\\xc0-\\xd6\\xd8-\\xde]",b="[a-z\\xdf-\\xf6\\xf8-\\xff]+";return RegExp(a+"+(?="+a+b+")|"+a+"?"+b+"|"+a+"+|[0-9]+","g")}(),Ka=" \t\v\f \ufeff\n\r\u2028\u2029 ᠎             　",La=["Array","ArrayBuffer","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Math","Number","Object","RegExp","Set","String","_","clearTimeout","document","isFinite","parseInt","setTimeout","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","window"],Ma=-1,Na={};Na[ca]=Na[da]=Na[ea]=Na[fa]=Na[ga]=Na[ha]=Na[ia]=Na[ja]=Na[ka]=!0,Na[Q]=Na[R]=Na[ba]=Na[S]=Na[T]=Na[U]=Na[V]=Na[W]=Na[X]=Na[Y]=Na[Z]=Na[$]=Na[_]=Na[aa]=!1;var Oa={};Oa[Q]=Oa[R]=Oa[ba]=Oa[S]=Oa[T]=Oa[ca]=Oa[da]=Oa[ea]=Oa[fa]=Oa[ga]=Oa[X]=Oa[Y]=Oa[Z]=Oa[_]=Oa[ha]=Oa[ia]=Oa[ja]=Oa[ka]=!0,Oa[U]=Oa[V]=Oa[W]=Oa[$]=Oa[aa]=!1;var Pa={leading:!1,maxWait:0,trailing:!1},Qa={"À":"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"},Ra={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","`":"&#96;"},Sa={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'","&#96;":"`"},Ta={function:!0,object:!0},Ua={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Va=Ta[typeof exports]&&exports&&!exports.nodeType&&exports,Wa=Ta[typeof module]&&module&&!module.nodeType&&module,Xa=Va&&Wa&&"object"==typeof global&&global&&global.Object&&global,Ya=Ta[typeof self]&&self&&self.Object&&self,Za=Ta[typeof window]&&window&&window.Object&&window,$a=Wa&&Wa.exports===Va&&Va,_a=Xa||Za!==(this&&this.window)&&Za||Ya||this,ab=v();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(_a._=ab,define(function(){return ab})):Va&&Wa?$a?(Wa.exports=ab)._=ab:Va._=ab:_a._=ab}.call(this),function(a,b){"object"==typeof exports?module.exports=b():"function"==typeof define&&define.amd?define(b):a.Spinner=b()}(this,function(){"use strict";function a(a,b){var c,d=document.createElement(a||"div");for(c in b)d[c]=b[c];return d}function b(a){for(var b=1,c=arguments.length;b<c;b++)a.appendChild(arguments[b]);return a}function c(a,b,c,d){var e=["opacity",b,~~(100*a),c,d].join("-"),f=.01+c/d*100,g=Math.max(1-(1-a)/b*(100-f),a),h=j.substring(0,j.indexOf("Animation")).toLowerCase(),i=h&&"-"+h+"-"||"";return l[e]||(m.insertRule("@"+i+"keyframes "+e+"{0%{opacity:"+g+"}"+f+"%{opacity:"+a+"}"+(f+.01)+"%{opacity:1}"+(f+b)%100+"%{opacity:"+a+"}100%{opacity:"+g+"}}",m.cssRules.length),l[e]=1),e}function d(a,b){var c,d,e=a.style;for(b=b.charAt(0).toUpperCase()+b.slice(1),d=0;d<k.length;d++)if(c=k[d]+b,void 0!==e[c])return c;if(void 0!==e[b])return b}function e(a,b){for(var c in b)a.style[d(a,c)||c]=b[c];return a}function f(a){for(var b=1;b<arguments.length;b++){var c=arguments[b];for(var d in c)void 0===a[d]&&(a[d]=c[d])}return a}function g(a,b){return"string"==typeof a?a:a[b%a.length]}function h(a){this.opts=f(a||{},h.defaults,n)}function i(){function c(b,c){return a("<"+b+' xmlns="urn:schemas-microsoft.com:vml" class="spin-vml">',c)}m.addRule(".spin-vml","behavior:url(#default#VML)"),h.prototype.lines=function(a,d){function f(){return e(c("group",{coordsize:k+" "+k,coordorigin:-j+" "+-j}),{width:k,height:k})}function h(a,h,i){b(m,b(e(f(),{rotation:360/d.lines*a+"deg",left:~~h}),b(e(c("roundrect",{arcsize:d.corners}),{width:j,height:d.width,left:d.radius,top:-d.width>>1,filter:i}),c("fill",{color:g(d.color,a),opacity:d.opacity}),c("stroke",{opacity:0}))))}var i,j=d.length+d.width,k=2*j,l=2*-(d.width+d.length)+"px",m=e(f(),{position:"absolute",top:l,left:l});if(d.shadow)for(i=1;i<=d.lines;i++)h(i,-2,"progid:DXImageTransform.Microsoft.Blur(pixelradius=2,makeshadow=1,shadowopacity=.3)");for(i=1;i<=d.lines;i++)h(i);return b(a,m)},h.prototype.opacity=function(a,b,c,d){var e=a.firstChild;d=d.shadow&&d.lines||0,e&&b+d<e.childNodes.length&&(e=e.childNodes[b+d],e=e&&e.firstChild,e=e&&e.firstChild,e&&(e.opacity=c))}}var j,k=["webkit","Moz","ms","O"],l={},m=function(){var c=a("style",{type:"text/css"});return b(document.getElementsByTagName("head")[0],c),c.sheet||c.styleSheet}(),n={lines:12,length:7,width:5,radius:10,rotate:0,corners:1,color:"#000",direction:1,speed:1,trail:100,opacity:.25,fps:20,zIndex:2e9,className:"spinner",top:"50%",left:"50%",position:"absolute"};h.defaults={},f(h.prototype,{spin:function(b){this.stop();var c=this,d=c.opts,f=c.el=e(a(0,{className:d.className}),{position:d.position,width:0,zIndex:d.zIndex});if(e(f,{left:d.left,top:d.top}),b&&b.insertBefore(f,b.firstChild||null),f.setAttribute("role","progressbar"),c.lines(f,c.opts),!j){var g,h=0,i=(d.lines-1)*(1-d.direction)/2,k=d.fps,l=k/d.speed,m=(1-d.opacity)/(l*d.trail/100),n=l/d.lines;!function a(){h++;for(var b=0;b<d.lines;b++)g=Math.max(1-(h+(d.lines-b)*n)%l*m,d.opacity),c.opacity(f,b*d.direction+i,g,d);c.timeout=c.el&&setTimeout(a,~~(1e3/k))}()}return c},stop:function(){var a=this.el;return a&&(clearTimeout(this.timeout),a.parentNode&&a.parentNode.removeChild(a),this.el=void 0),this},lines:function(d,f){function h(b,c){return e(a(),{position:"absolute",width:f.length+f.width+"px",height:f.width+"px",background:b,boxShadow:c,transformOrigin:"left",transform:"rotate("+~~(360/f.lines*k+f.rotate)+"deg) translate("+f.radius+"px,0)",borderRadius:(f.corners*f.width>>1)+"px"})}for(var i,k=0,l=(f.lines-1)*(1-f.direction)/2;k<f.lines;k++)i=e(a(),{position:"absolute",top:1+~(f.width/2)+"px",transform:f.hwaccel?"translate3d(0,0,0)":"",opacity:f.opacity,animation:j&&c(f.opacity,f.trail,l+k*f.direction,f.lines)+" "+1/f.speed+"s linear infinite"}),f.shadow&&b(i,e(h("#000","0 0 4px #000"),{top:"2px"})),b(d,b(i,h(g(f.color,k),"0 0 1px rgba(0,0,0,.1)")));return d},opacity:function(a,b,c){b<a.childNodes.length&&(a.childNodes[b].style.opacity=c)}});var o=e(a("group"),{behavior:"url(#default#VML)"});return!d(o,"transform")&&o.adj?i():j=d(o,"animation"),h}),function(a,b){"object"==typeof exports?module.exports=b():"function"==typeof define&&define.amd?define(["spin"],b):a.Ladda=b(a.Spinner)}(this,function(a){"use strict";function b(a){if("undefined"==typeof a)return void console.warn("Ladda button target must be defined.");a.querySelector(".ladda-label")||(a.innerHTML='<span class="ladda-label">'+a.innerHTML+"</span>");var b=e(a),c=document.createElement("span");c.className="ladda-spinner",a.appendChild(c);var d,f={start:function(){return a.setAttribute("disabled",""),a.setAttribute("data-loading",""),clearTimeout(d),b.spin(c),this.setProgress(0),this},startAfter:function(a){return clearTimeout(d),d=setTimeout(function(){f.start()},a),this},stop:function(){return a.removeAttribute("disabled"),a.removeAttribute("data-loading"),clearTimeout(d),d=setTimeout(function(){b.stop()},1e3),this},toggle:function(){return this.isLoading()?this.stop():this.start(),this},setProgress:function(b){b=Math.max(Math.min(b,1),0);var c=a.querySelector(".ladda-progress");0===b&&c&&c.parentNode?c.parentNode.removeChild(c):(c||(c=document.createElement("div"),c.className="ladda-progress",a.appendChild(c)),c.style.width=(b||0)*a.offsetWidth+"px")},enable:function(){return this.stop(),this},disable:function(){return this.stop(),a.setAttribute("disabled",""),this},isLoading:function(){return a.hasAttribute("data-loading")}};return g.push(f),f}function c(a,c){c=c||{};var d=[];"string"==typeof a?d=f(document.querySelectorAll(a)):"object"==typeof a&&"string"==typeof a.nodeName&&(d=[a]);for(var e=0,g=d.length;e<g;e++)!function(){var a=d[e];if("function"==typeof a.addEventListener){var f=b(a),g=-1;a.addEventListener("click",function(){f.startAfter(1),"number"==typeof c.timeout&&(clearTimeout(g),g=setTimeout(f.stop,c.timeout)),"function"==typeof c.callback&&c.callback.apply(null,[f])},!1)}}()}function d(){for(var a=0,b=g.length;a<b;a++)g[a].stop()}function e(b){var c,d=b.offsetHeight;d>32&&(d*=.8),b.hasAttribute("data-spinner-size")&&(d=parseInt(b.getAttribute("data-spinner-size"),10)),b.hasAttribute("data-spinner-color")&&(c=b.getAttribute("data-spinner-color"));var e=12,f=.2*d,g=.6*f,h=f<7?2:3;return new a({color:c||"#fff",lines:e,radius:f,length:g,width:h,zIndex:"auto",top:"auto",left:"auto",className:""})}function f(a){for(var b=[],c=0;c<a.length;c++)b.push(a[c]);return b}var g=[];return{bind:c,create:b,stopAll:d}}),function(a){"use strict";function b(a,b){return a.module("angularSpinner",[]).provider("usSpinnerConfig",function(){var a={};return{setDefaults:function(b){a=b||a},$get:function(){return{config:a}}}}).factory("usSpinnerService",["$rootScope",function(a){var b={};return b.spin=function(b){a.$broadcast("us-spinner:spin",b)},b.stop=function(b){a.$broadcast("us-spinner:stop",b)},b}]).directive("usSpinner",["$window","usSpinnerConfig",function(c,d){return{scope:!0,link:function(e,f,g){function h(){e.spinner&&e.spinner.stop()}var i=b||c.Spinner;e.spinner=null,e.key=!!a.isDefined(g.spinnerKey)&&g.spinnerKey,e.startActive=a.isDefined(g.spinnerStartActive)?e.$eval(g.spinnerStartActive):!e.key,e.spin=function(){e.spinner&&e.spinner.spin(f[0])},e.stop=function(){e.startActive=!1,h()},e.$watch(g.usSpinner,function(a){h(),a=a||{};for(var b in d.config)void 0===a[b]&&(a[b]=d.config[b]);e.spinner=new i(a),e.key&&!e.startActive||e.spinner.spin(f[0])},!0),e.$on("us-spinner:spin",function(a,b){b===e.key&&e.spin()}),e.$on("us-spinner:stop",function(a,b){b===e.key&&e.stop()}),e.$on("$destroy",function(){e.stop(),e.spinner=null})}}}])}"function"==typeof define&&define.amd?define(["angular","spin"],b):b(a.angular)}(window),function(){"use strict";angular.module("angular-loading-bar",["cfp.loadingBarInterceptor"]),angular.module("chieffancypants.loadingBar",["cfp.loadingBarInterceptor"]),angular.module("cfp.loadingBarInterceptor",["cfp.loadingBar"]).config(["$httpProvider",function(a){var b=["$q","$cacheFactory","$timeout","$rootScope","$log","cfpLoadingBar",function(b,c,d,e,f,g){function h(){d.cancel(j),g.complete(),l=0,k=0}function i(b){var d,e=c.get("$http"),f=a.defaults;!b.cache&&!f.cache||b.cache===!1||"GET"!==b.method&&"JSONP"!==b.method||(d=angular.isObject(b.cache)?b.cache:angular.isObject(f.cache)?f.cache:e);var g=void 0!==d&&void 0!==d.get(b.url);return void 0!==b.cached&&g!==b.cached?b.cached:(b.cached=g,g)}var j,k=0,l=0,m=g.latencyThreshold;return{request:function(a){return a.ignoreLoadingBar||i(a)||(e.$broadcast("cfpLoadingBar:loading",{url:a.url}),0===k&&(j=d(function(){g.start()},m)),k++,g.set(l/k)),a},response:function(a){return a&&a.config?(a.config.ignoreLoadingBar||i(a.config)||(l++,e.$broadcast("cfpLoadingBar:loaded",{url:a.config.url,result:a}),l>=k?h():g.set(l/k)),a):(f.error("Broken interceptor detected: Config object not supplied in response:\n https://github.com/chieffancypants/angular-loading-bar/pull/50"),a)},responseError:function(a){return a&&a.config?(a.config.ignoreLoadingBar||i(a.config)||(l++,e.$broadcast("cfpLoadingBar:loaded",{url:a.config.url,result:a}),l>=k?h():g.set(l/k)),b.reject(a)):(f.error("Broken interceptor detected: Config object not supplied in rejection:\n https://github.com/chieffancypants/angular-loading-bar/pull/50"),b.reject(a))}}}];a.interceptors.push(b)}]),angular.module("cfp.loadingBar",[]).provider("cfpLoadingBar",function(){this.includeSpinner=!0,this.includeBar=!0,this.latencyThreshold=100,this.startSize=.02,this.parentSelector="body",this.spinnerTemplate='<div id="loading-bar-spinner"><div class="spinner-icon"></div></div>',this.loadingBarTemplate='<div id="loading-bar"><div class="bar"><div class="peg"></div></div></div>',this.$get=["$injector","$document","$timeout","$rootScope",function(a,b,c,d){function e(){k||(k=a.get("$animate"));var e=b.find(n).eq(0);c.cancel(m),r||(d.$broadcast("cfpLoadingBar:started"),r=!0,u&&k.enter(o,e,angular.element(e[0].lastChild)),t&&k.enter(q,e,angular.element(e[0].lastChild)),f(v))}function f(a){if(r){var b=100*a+"%";p.css("width",b),s=a,c.cancel(l),l=c(function(){g()},250)}}function g(){if(!(h()>=1)){var a=0,b=h();a=b>=0&&b<.25?(3*Math.random()+3)/100:b>=.25&&b<.65?3*Math.random()/100:b>=.65&&b<.9?2*Math.random()/100:b>=.9&&b<.99?.005:0;var c=h()+a;f(c)}}function h(){return s}function i(){s=0,r=!1}function j(){k||(k=a.get("$animate")),d.$broadcast("cfpLoadingBar:completed"),f(1),c.cancel(m),m=c(function(){var a=k.leave(o,i);a&&a.then&&a.then(i),k.leave(q)},500)}var k,l,m,n=this.parentSelector,o=angular.element(this.loadingBarTemplate),p=o.find("div").eq(0),q=angular.element(this.spinnerTemplate),r=!1,s=0,t=this.includeSpinner,u=this.includeBar,v=this.startSize;return{start:e,set:f,status:h,inc:g,complete:j,includeSpinner:this.includeSpinner,latencyThreshold:this.latencyThreshold,parentSelector:this.parentSelector,startSize:this.startSize}}]})}(),function(a,b,c){"use strict";function d(a,d,e){function f(a,e,f){var h,i;f=f||{},i=f.expires,h=b.isDefined(f.path)?f.path:g,e===c&&(i="Thu, 01 Jan 1970 00:00:00 GMT",e=""),b.isString(i)&&(i=new Date(i));var j=encodeURIComponent(a)+"="+encodeURIComponent(e);j+=h?";path="+h:"",j+=f.domain?";domain="+f.domain:"",j+=i?";expires="+i.toUTCString():"",j+=f.secure?";secure":"";var k=j.length+1;return k>4096&&d.warn("Cookie '"+a+"' possibly not set or overflowed because it was too large ("+k+" > 4096 bytes)!"),j}var g=e.baseHref(),h=a[0];return function(a,b,c){h.cookie=f(a,b,c)}}b.module("ngCookies",["ng"]).provider("$cookies",[function(){function a(a){return a?b.extend({},d,a):d}var d=this.defaults={};this.$get=["$$cookieReader","$$cookieWriter",function(d,e){return{get:function(a){return d()[a]},getObject:function(a){var c=this.get(a);return c?b.fromJson(c):c},getAll:function(){return d()},put:function(b,c,d){e(b,c,a(d))},putObject:function(a,c,d){this.put(a,b.toJson(c),d)},remove:function(b,d){e(b,c,a(d))}}}]}]),b.module("ngCookies").factory("$cookieStore",["$cookies",function(a){return{get:function(b){return a.getObject(b)},put:function(b,c){a.putObject(b,c)},remove:function(b){a.remove(b)}}}]),d.$inject=["$document","$log","$browser"],b.module("ngCookies").provider("$$cookieWriter",function(){this.$get=d})}(window,window.angular),function(a,b){"use strict";"function"==typeof define&&define.amd?define(["angular"],b):a.hasOwnProperty("angular")?b(a.angular):"object"==typeof exports&&(module.exports=b(require("angular")))}(this,function(a){"use strict";function b(a,b){var c;try{c=a[b]}catch(d){c=!1}if(c){var e="__"+Math.round(1e7*Math.random());try{a[b].setItem(e,e),a[b].removeItem(e,e)}catch(d){c=!1}}return c}function c(c){var d=b(window,c);return function(){var e="ngStorage-";this.setKeyPrefix=function(a){if("string"!=typeof a)throw new TypeError("[ngStorage] - "+c+"Provider.setKeyPrefix() expects a String.");e=a};var f=a.toJson,g=a.fromJson;this.setSerializer=function(a){if("function"!=typeof a)throw new TypeError("[ngStorage] - "+c+"Provider.setSerializer expects a function.");f=a},this.setDeserializer=function(a){if("function"!=typeof a)throw new TypeError("[ngStorage] - "+c+"Provider.setDeserializer expects a function.");g=a},this.supported=function(){return!!d},this.get=function(a){return d&&g(d.getItem(e+a))},this.set=function(a,b){return d&&d.setItem(e+a,f(b))},this.remove=function(a){d&&d.removeItem(e+a)},this.$get=["$rootScope","$window","$log","$timeout","$document",function(d,h,i,j,k){var l,m,n=e.length,o=b(h,c),p=o||(i.warn("This browser does not support Web Storage!"),{setItem:a.noop,getItem:a.noop,removeItem:a.noop}),q={$default:function(b){for(var c in b)a.isDefined(q[c])||(q[c]=a.copy(b[c]));return q.$sync(),q},$reset:function(a){for(var b in q)"$"===b[0]||delete q[b]&&p.removeItem(e+b);return q.$default(a)},$sync:function(){for(var a,b=0,c=p.length;b<c;b++)(a=p.key(b))&&e===a.slice(0,n)&&(q[a.slice(n)]=g(p.getItem(a)))},$apply:function(){var b;if(m=null,!a.equals(q,l)){b=a.copy(l),a.forEach(q,function(c,d){a.isDefined(c)&&"$"!==d[0]&&(p.setItem(e+d,f(c)),delete b[d])});for(var c in b)p.removeItem(e+c);l=a.copy(q)}},$supported:function(){return!!o}};return q.$sync(),l=a.copy(q),d.$watch(function(){m||(m=j(q.$apply,100,!1))}),h.addEventListener&&h.addEventListener("storage",function(b){if(b.key){var c=k[0];c.hasFocus&&c.hasFocus()||e!==b.key.slice(0,n)||(b.newValue?q[b.key.slice(n)]=g(b.newValue):delete q[b.key.slice(n)],l=a.copy(q),d.$apply())}}),h.addEventListener&&h.addEventListener("beforeunload",function(){q.$apply()}),q}]}}return a=a&&a.module?a:window.angular,a.module("ngStorage",[]).provider("$localStorage",c("localStorage")).provider("$sessionStorage",c("sessionStorage"))}),angular.module("ut.alert",["ngSanitize"]).directive("utAlert",["utAlert","$timeout",function(a,b){return{restrict:"EAC",templateUrl:"../unityeditor-components/src/components/alert/alert.tpl.html",controller:["$scope",function(b){b.$watch(function(){return a},function(a){b.alertText=a.alertText,b.alertType=a.alertType,b.linkPreText=a.linkPreText,b.linkText=a.linkText,b.linkSuffixText=a.linkSuffixText},!0),b.resetAlert=function(){a.clearAlert()},b.getShowMoreinfo=function(){return a.showMoreInfo&&null!==a.linkHandler&&null!==a.linkUrl},b.linkClickHandler=function(){a.linkHandler(a.linkUrl)}}]}}]),angular.module("ut.alert").factory("utAlert",["$q",function(a){var b={alertText:"",alertType:"",alertCode:0,showMoreInfo:!1,linkHandler:null,linkPreText:"For more information, please click",linkText:"here",linkSuffixText:".",linkUrl:"",clearHandler:null};return b.setOptions=function(a){null!=a&&(this.showMoreInfo=a.showMoreInfo,null!=a.linkHandler&&(this.linkHandler=a.linkHandler,null!=a.linkPreText&&null!=a.linkText&&null!=a.linkSuffixText&&(this.linkPreText=a.linkPreText,this.linkText=a.linkText,this.linkSuffixText=a.linkSuffixText)),null!=a.linkUrl&&(this.linkUrl=a.linkUrl),null!=a.clearHandler&&"function"==typeof a.clearHandler&&(this.clearHandler=a.clearHandler))},b.setError=function(a,b,c){this.alertText=a,this.alertCode=b,this.alertType="danger",this.setOptions(c)},b.setWarning=function(a,b,c){this.alertText=a,this.alertCode=b,this.alertType="warning",this.setOptions(c)},b.setInfo=function(a,b,c){this.alertText=a,this.alertCode=b,this.alertType="info",this.setOptions(c)},b.setSuccess=function(a,b,c){this.alertText=a,this.alertCode=b,this.alertType="success",this.setOptions(c)},b.clearAlert=function(){this.alertText="",this.alertType="",this.alertCode=0,this.showMoreInfo=!1,this.clearHandler&&this.clearHandler()},b.setConfig=function(a){this.linkHandler=a.linkHandler,this.linkUrl=a.linkUrl},b}]),utClickOnceDirective.$inject=["$compile"],angular.module("ut.button",["ut.core"]).directive("utButton",utButtonDirective).directive("ngClickOnce",utClickOnceDirective),utCheckboxDirective.$inject=["$timeout"],angular.module("ut.checkbox",["ut.core"]).directive("utCheckbox",utCheckboxDirective),angular.module("ut.cloudbuild",["ut.cloudbuild.history","ut.cloudbuild.setup","ut.cloudbuild.setup.scm"]),angular.module("ut.cloudbuild.constants",[]).constant("buildConstants",function(){var a={platforms:[{name:"Please choose a platform target",value:"",icon:"",hidden:!0},{name:"iOS",value:"ios",icon:"unityicon unityicon-os-ios",editor:"iOS"},{name:"Android",value:"android",icon:"unityicon unityicon-os-android",editor:"Android"},{name:"Web Player",value:"webplayer",icon:"unityicon unityicon-os-webplayer",editor:"WebPlayer"},{name:"WebGL",value:"webgl",icon:"unityicon unityicon-os-webgl",editor:"WebGL"},{name:"Mac desktop 32-bit",value:"standaloneosxintel",icon:"unityicon unityicon-os-osx-32",editor:"StandaloneOSXIntel"},{name:"Mac desktop 64-bit",value:"standaloneosxintel64",icon:"unityicon unityicon-os-osx-64",editor:"StandaloneOSXIntel64"},{name:"Mac desktop Universal",value:"standaloneosxuniversal",icon:"unityicon unityicon-os-osx-U",editor:"StandaloneOSXUniversal"},{name:"Windows desktop 32-bit",value:"standalonewindows",icon:"unityicon unityicon-os-win-32",editor:"StandaloneWindows"},{name:"Windows desktop 64-bit",value:"standalonewindows64",icon:"unityicon unityicon-os-win-64",editor:"StandaloneWindows64"},{name:"Linux desktop 32-bit",value:"standalonelinux",icon:"unityicon unityicon-os-linux-32",editor:"StandaloneLinux"},{name:"Linux desktop 64-bit",value:"standalonelinux64",icon:"unityicon unityicon-os-linux-64",editor:"StandaloneLinux64"},{name:"Linux desktop Universal",value:"standalonelinuxuniversal",icon:"unityicon unityicon-os-linux-U",editor:"StandaloneLinuxUniversal"}],cachingStrategies:[{name:"Off",value:"none"},{name:"Cache Library Directory",value:"library"},{name:"Cache Entire Project",value:"workspace"}],status:[{name:"Queued",value:"queued",class:"queued",icon:"unityicon-pending"},{name:"Queued",value:"sendToBuilder",class:"queued",icon:"unityicon-pending"},{name:"Building",value:"started",class:"building",icon:"logoicon logoloader"},{name:"Succeeded",value:"success",class:"success",icon:"unityicon-check-circle"},{name:"Failed",value:"failure",class:"failed",icon:"unityicon-delete-circle"},{name:"Canceled",value:"canceled",class:"canceled",icon:"unityicon-ban-circle"},{name:"Restarted",value:"restarted",class:"canceled",icon:"unityicon-warning-circle"},{name:"Unknown",value:"unknown",class:"failed",icon:"unityicon-warning-circle"}],platformName:function(b){var c=_.find(a.platforms,{value:b});return c?c.name:"Unknown Platform"},platformFromEditorName:function(b){var c=_.find(a.platforms,{editor:b});return c?c.value:""}};return a}()),angular.module("ut.cloudbuild.history",["ut.cloudbuild.constants"]).filter("platformIcon",["buildConstants",function(a){return function(b){var c=_.find(a.platforms,{value:b});return c?c.icon:"unityicon unityicon-os-globe"}}]).filter("platformName",["buildConstants",function(a){return function(b){return a.platformName(b)}}]).filter("statusLabel",["buildConstants",function(a){return function(b){var c=_.find(a.status,{value:b});return c?c.name:"Queued"}}]).filter("statusClass",["buildConstants",function(a){return function(b){var c=_.find(a.status,{value:b});return c?c.class:"queued"}}]).filter("isFinishedBuilding",["buildConstants",function(a){return function(b){var c=_.find(a.status,{value:b});return!c||"building"!==c.class&&"queued"!==c.class}}]),angular.module("ut.cloudbuild.setup",["ut.services.cloudbuild","ut.cloudbuild.constants","ui.router","ngSanitize","ut.alert"]).config(["$stateProvider",function(a){function b(a,b,c){return a.current.name?{name:a.current.name,params:a.params,url:a.href(a.current.name,a.params)}:{name:c,params:b,url:a.href(c,b)}}a.state("project.setup",{meta:{title:"Project Setup",linkable:!1},url:"/setup",abstract:!0,templateUrl:"setup.html",controller:"ProjectSetupCtrl"}).state("project.setup.basic",{url:"/basic/",templateUrl:"project/basic.html",controller:"ProjectSetupBasicCtrl"}).state("project.setup.start",{meta:{title:"Start"},url:"/start/",templateUrl:"start.html"}).state("project.setup.scm",{meta:{title:"Source Code Location",step:1},url:"/scm/",templateUrl:"scm/step01.html",controller:"ProjectSetupStep01Ctrl"}).state("project.setup.scm_access",{meta:{title:"Source Code Access",step:2},url:"/scm/access/",templateUrl:"scm/step02.html",controller:"ProjectSetupStep02Ctrl"}).state("project.setup.platform_select",{meta:{title:"Platform Selection",step:3},url:"/platform/",templateUrl:"target/platform_select.html",controller:"ProjectSetupPlatformSelectCtrl"}).state("project.setup.new_target",{meta:{title:"{{platformName}} Target Setup",step:4},url:"/newtarget/?platform",templateUrl:"target/basic.html",controller:"ProjectSetupTargetBasicCtrl"}).state("project.setup.target",{meta:{title:"Build Target Setup: {{targetName}}",step:4},url:"/buildtarget/:targetId",abstract:!0,templateUrl:"target/target_edit.html",controller:"ProjectSetupTargetEditCtrl"}).state("project.setup.target.basic",{meta:{title:"Basic Info",step:4},url:"/basic/",templateUrl:"target/basic.html",controller:"ProjectSetupTargetBasicCtrl"}).state("project.setup.target.advanced",{meta:{title:"Advanced Info",step:4},url:"/advanced/",templateUrl:"target/advanced.html",controller:"ProjectSetupTargetAdvancedCtrl"}).state("project.setup.target.asset_bundles",{url:"/assetbundles/",templateUrl:"target/assetbundles.html",controller:"ProjectSetupTargetAssetBundlesCtrl"}).state("project.setup.target.tests",{url:"/tests/",templateUrl:"target/tests.html",controller:"ProjectSetupTargetTestsCtrl"}).state("project.setup.target.credentials",{meta:{title:"Credentials",step:5},url:"/credentials/?new",template:"<div ui-view></div>",controller:"ProjectSetupCredentialsBaseCtrl",resolve:{previousState:["$state","$stateParams",function(a,c){return b(a,c,"project.setup.target.basic")}]}}).state("project.setup.target.credentials.ios",{meta:{title:"iOS"},url:"ios/",templateUrl:"credentials/credentials_ios.html",controller:"ProjectSetupCredentialsIosCtrl"}).state("project.setup.target.credentials.android",{meta:{title:"Android"},url:"android/",templateUrl:"credentials/credentials_android.html",controller:"ProjectSetupCredentialsAndroidCtrl"})}]).controller("ProjectSetupCtrl",["$state","$stateParams","$scope","utAlert","modals","cloudBuildService",function(a,b,c,d,e,f){c.ui=c.ui||{},c.ui.pageName="Setup",c.showError=function(a,b){console.log(a);var c=a.message||a.data||a;d.setWarning(c)},c.clearError=function(){c.error=null},c.updateBuildTargetInScope=function(a,b){if(!a)return void c.buildTargets.push(b);var d=_.findIndex(c.buildTargets,{buildtargetid:a});c.buildTargets[d]=b},c.needsProjectSetup=function(){return!c.project||_.isEmpty(c.project.settings.scm)},c.isEditing=!c.needsProjectSetup(),c.startBuilds=function(a,b){var d=e.progress("Starting builds...");f.projects.startBuilds(c.orgId,c.projectId,a,b).then(function(){c.$broadcast("time_to_poll"),c.goToHistory()}).catch(function(a){e.error("Unable to build project")}).finally(function(){d.close()})},c.isProcessing=!1,c.setProcessing=function(a){c.isProcessing=a}}]),angular.module("ut.cloudbuild.setup").controller("ProjectSetupCredentialsAndroidCtrl",["$stateParams","$scope","$state","$timeout","$q","$controller","modals","cloudBuildService",function(a,b,c,d,e,f,g,h){return"android"!==b.target.platform?void c.go("project.targets"):(b.form={},b.target.settings.platform=b.target.settings.platform||{},b.canContinueToNextStep=function(){if(!b.form.android.$valid)return!1;var a=b.target.credentials.signing.credentialid;return!!a&&("__addnew__"!==a||b.form.newcreds.$valid&&b.newCredentials.file)},void(b.nextStep=function(){var c=e.when(b.selectedCredentialInfo),d=b.target.credentials.signing.credentialid;"__addnew__"===d&&(c=h.projects.uploadCredentials(b.orgId,b.projectId,"android",b.newCredentials));var f=g.progress("Saving...");c.then(function(a){return b.updateBuildTargetSettings(b.target,a)}).then(function(c){b.updateBuildTargetInScope(a.targetId,c),b.nextState()}).catch(function(a){if("cancel"!==a){a=_.isObject(a)?a.data.error:a;var b="Failed to update credentials! "+a;g.error(b)}}).finally(function(){f.close()})}))}]),angular.module("ut.cloudbuild.setup").controller("ProjectSetupCredentialsBaseCtrl",["$stateParams","$scope","$state","modals","cloudBuildService","previousState",function(a,b,c,d,e,f){function g(a){b.selectedCredentialInfo={},a&&b.credentials&&"__addnew__"!==a&&(b.selectedCredentialInfo=_.find(b.credentials,{credentialid:a})||{})}var h=b.target.platform;c.go("project.setup.target.credentials."+h,{targetId:a.targetId}),b.previousState=f,b.target.credentials.signing.credentialid=b.target.credentials.signing.credentialid||"",b.newCredentials={},b.credOptions=[{credentialid:"",label:"Select",disabled:!0},{credentialid:"__addnew__",label:"Add new provisioning credentials"},{credentialid:"__disabled__",label:"------------------",disabled:!0}],e.projects.listCredentials(b.orgId,b.projectId,h).then(function(a){a=_.sortBy(a,function(a){return a.keystore&&a.keystore.debug?"_":a.label.toLowerCase()}),b.credentials=a,b.credOptions=b.credOptions.concat(a),g(b.target.credentials.signing.credentialid)}).catch(function(a){b.credentials=[],d.error("Failed to list credentials for project!")}),b.$watch("target.credentials.signing.credentialid",function(a,b){g(a)}),b.isEditing=!a.new,b.nextState=function(){b.isEditing?c.go("project.targets"):b.startBuilds(b.target.buildtargetid,!1)},b.updateBuildTargetSettings=function(c,d){var f={settings:{platform:c.settings.platform},credentials:{signing:{credentialid:d.credentialid}}};return e.projects.updateBuildTarget(b.orgId,b.projectId,a.targetId,f)}}]),angular.module("ut.cloudbuild.setup").controller("ProjectSetupCredentialsIosCtrl",["$stateParams","$scope","$state","$q","$controller","modals","utilsService","cloudBuildService",function(a,b,c,d,e,f,g,h){function i(){var a="App Store provisioning profile detected. You will not be able to test builds of this project on your device.";return f.confirm("Warning",a).result}return"ios"!==b.target.platform?void c.go("project.targets"):(b.form={},b.target.settings.platform=b.target.settings.platform||{},b.target.settings.platform.xcodeVersion=b.target.settings.platform.xcodeVersion||"latest",b.xcodeVersionCompatible=function(){return!b.availableXcodeVersions||_.contains(b.availableXcodeVersions,b.target.settings.platform.xcodeVersion)},g.waitForScopeValueToLoad(b,"xcodeVersions",500).then(function(){b.availableXcodeVersions=_.pluck(b.xcodeVersions,"value");var a=_.find(b.unityVersions,{value:b.target.settings.unityVersion});a&&(b.availableXcodeVersions=a.xcode_versions||[])}),b.canContinueToNextStep=function(){if(!b.form.ios.$valid)return!1;var a=b.target.credentials.signing.credentialid;return!!a&&("__addnew__"!==a||b.newCredentials.label&&b.newCredentials.fileProvisioningProfile&&b.newCredentials.fileCertificate)},void(b.nextStep=function(){var c=d.when(b.selectedCredentialInfo),e=b.target.credentials.signing.credentialid;"__addnew__"===e&&(c=h.projects.uploadCredentials(b.orgId,b.projectId,"ios",b.newCredentials));var g=f.progress("Saving..."),j=null;c.then(function(a){return j=a,j.provisioningProfile&&"appstore"===j.provisioningProfile.type?i():d.when(j)}).then(function(){return b.updateBuildTargetSettings(b.target,j)}).then(function(c){b.updateBuildTargetInScope(a.targetId,c),b.nextState()}).catch(function(a){if("cancel"!==a){
a=_.isObject(a)?a.data.error:a;var b="Failed to update credentials! "+a;f.error(b)}}).finally(function(){g.close()})}))}]),angular.module("ut.cloudbuild.setup").directive("validatebundleidandroid",function(){return{restrict:"A",require:"ngModel",link:function(a,b,c,d){function e(a){d.$setValidity("bundleIdPeriod",!0),d.$setValidity("bundleIdDoublePeriod",!0),d.$setValidity("bundleIdCharacters",!0),d.$setValidity("bundleIdStartPeriod",!0),d.$setValidity("bundleIdEndPeriod",!0),d.$setValidity("bundleIdStartUnderscore",!0),d.$setValidity("bundleIdDash",!0),d.$setValidity("bundleIdPeriodNonLetter",!0),d.$setValidity("bundleIdBeginNonLetter",!0);var c=b.val();c&&0!==c.length&&(c.match(/\./)?c.match(/\.\./)?d.$setValidity("bundleIdDoublePeriod",!1):0===c.indexOf(".")?d.$setValidity("bundleIdStartPeriod",!1):"."===c.substring(c.length-1,c.length)?d.$setValidity("bundleIdEndPeriod",!1):0===c.indexOf("_")?d.$setValidity("bundleIdStartUnderscore",!1):c.indexOf("-")!==-1?d.$setValidity("bundleIdDash",!1):c.match(/[^A-Za-z0-9_.]/)?d.$setValidity("bundleIdCharacters",!1):c.match(/^[^A-Za-z]/)?d.$setValidity("bundleIdBeginNonLetter",!1):c.match(/\.[^A-Za-z]/)&&d.$setValidity("bundleIdPeriodNonLetter",!1):d.$setValidity("bundleIdPeriod",!1))}e(d.$viewValue),a.$watch(function(){return d.$viewValue},e)}}}),angular.module("ut.cloudbuild.setup").directive("validatebundleidios",function(){return{restrict:"A",require:"ngModel",link:function(a,b,c,d){function e(a){d.$setValidity("bundleIdPeriod",!0),d.$setValidity("bundleIdDoublePeriod",!0),d.$setValidity("bundleIdCharacters",!0),d.$setValidity("bundleIdStartPeriod",!0),d.$setValidity("bundleIdEndPeriod",!0),d.$setValidity("bundleIdStartUnderscore",!0);var c=b.val();c&&0!==c.length&&(c.match(/\./)?c.match(/\.\./)?d.$setValidity("bundleIdDoublePeriod",!1):0===c.indexOf(".")?d.$setValidity("bundleIdStartPeriod",!1):"."===c.substring(c.length-1,c.length)?d.$setValidity("bundleIdEndPeriod",!1):0===c.indexOf("_")?d.$setValidity("bundleIdStartUnderscore",!1):c.match(/[^A-Za-z0-9.\-]/)&&d.$setValidity("bundleIdCharacters",!1):d.$setValidity("bundleIdPeriod",!1))}e(d.$viewValue),a.$watch(function(){return d.$viewValue},e)}}}),angular.module("ut.cloudbuild.setup").controller("ProjectSetupBasicCtrl",["$stateParams","$scope","$state","$timeout","modals","setupConstants","cloudBuildService",function(a,b,c,d,e,f,g){function h(a){c.go("project.targets")}b.isEditing=!0,b.initialRemoteCacheStrategy=b.project.settings.remoteCacheStrategy,b.nextStep=function(){var a={name:b.project.name,settings:{remoteCacheStrategy:b.project.settings.remoteCacheStrategy}},c=g.projects.edit(b.project.orgid,b.project.projectid,a),d=e.progress("Saving...");c.then(function(a){b.project=a,h(a)}).catch(function(a){e.error("Failed to update project settings: "+a.data.error)}).finally(function(){d.close()})}}]),angular.module("ut.cloudbuild.setup.scm",[]).directive("validatescmurl",["$timeout","$parse",function(a,b){return{restrict:"A",require:"ngModel",link:function(a,c,d,e){function f(c){e.$setValidity("scmValidProtocol",!0);var f=b(d.validatescmurl)(a);"hg"===f&&0!==c.indexOf("http://")&&c.indexOf("https://")&&e.$setValidity("scmValidProtocol",!1)}f(e.$viewValue),a.$watch(function(){return e.$viewValue},f),a.$watch(function(){return b(d.validatescmurl)(a)},f)}}}]),angular.module("ut.cloudbuild.setup.scm").service("scmUtils",["cloudBuildService",function(a){var b={repoTypes:[{name:"GIT",value:"git"},{name:"SVN",value:"svn"},{name:"Perforce",value:"p4"},{name:"Mercurial",value:"hg"}],repoHosts:[{name:"GitHub"},{name:"BitBucket"},{name:"Beanstalk"},{name:"Assembla"},{name:"Other"}]},c={data:function(){return b},detectScmType:function(a){return a?(a=a.toLowerCase(),a.indexOf("git@")!==-1||a.indexOf(".git")!==-1||a.indexOf("git://")!==-1||a.indexOf("github.com")!==-1?"git":a.indexOf("svn://")!==-1||a.indexOf("/svn")!==-1?"svn":a.indexOf("p4.")!==-1||a.indexOf("perforce.")!==-1||a.indexOf(":1666")!==-1?"p4":null):null},detectScmHost:function(a){return a=a||"",a=a.toLowerCase(),a.indexOf("github")!==-1?"GitHub":a.indexOf("bitbucket")!==-1?"BitBucket":a.indexOf("beanstalk")!==-1?"Beanstalk":a.indexOf("assembla")!==-1?"Assembla":"Other"},getScmTypeNameFromType:function(a){var c=b.repoTypes,d=null;return c.forEach(function(b){b.value===a&&(d=b.name)}),d||c[0].name},getScmBranches:function(b){"git"===b.project.settings.scm.type?a.projects.scm.gitListBranches(b.project.orgid,b.project.projectid).then(function(a){a&&0!==a.length?b.branches=a:b.showError("This appears to be an empty Git repo without any branches. Add project files to this repo to proceed.")}).catch(function(a){b.showError(a.message)}):"p4"===b.project.settings.scm.type&&a.projects.scm.p4ListClients(b.project.orgid,b.project.projectid).then(function(a){a&&0!==a.length?b.clients=a:b.showError("This appears to be a p4 repo without any clients. Add at least one client to this repo to proceed.")}).catch(function(a){b.showError(a.message)})}};return c}]),angular.module("ut.cloudbuild.setup").controller("ProjectSetupScmBaseCtrl",["$stateParams","$scope","$state","cloudBuildService",function(a,b,c,d){b.saveScmSettings=function(){var a={settings:{scm:b.project.newSettings.scm}},e=b.isEditing;d.projects.edit(b.orgId,b.projectId,a).then(function(a){b.project.settings=a.settings,e?c.go("project.targets"):c.go("project.setup.platform_select")}).catch(function(a){b.showError("An error occurred while saving the project settings.")}).finally(function(){b.setProcessing(!1)})}}]),angular.module("ut.cloudbuild.setup").controller("ProjectSetupStep01Ctrl",["$stateParams","$scope","$state","$controller","scmUtils","cloudBuildService",function(a,b,c,d,e,f){d("ProjectSetupScmBaseCtrl",{$scope:b}),b.project.newSettings||(b.project.newSettings={},b.project.newSettings.scm=_.merge({},b.project.settings.scm)),b.repoTypes=_.clone(e.data().repoTypes),b.repoHosts=e.data().repoHosts,b.$watch("project.newSettings.scm.url",function(a,c){var d=e.detectScmType(a);d&&(b.project.newSettings.scm.type=d)}),b.$watch("project.newSettings.scm.type",function(a,c){"collab"===a&&(b.project.newSettings.scm.url="Unity Collab")}),b.canContinueToNextStep=function(){if(!b.reposetup.$valid)return!1;var a=b.project.newSettings.scm;return a.url&&a.type},b.nextStep=function(){b.setProcessing(!0),b.clearError();var a=[];b.plan&&b.plan.effective&&(a=b.plan.effective.scmTypes||[]);var d=b.project.newSettings.scm.type;if(a&&a.length>0&&a.indexOf(d)===-1){var g=e.getScmTypeNameFromType(d);return void b.showError(g+" is not supported in your current Billing Plan. <a ui-sref='plans'>Please upgrade</a> your plan to continue.")}var h={type:b.project.newSettings.scm.type,url:b.project.newSettings.scm.url,user:"",pass:""};f.projects.scm.checkUrl(b.project.orgid,b.project.projectid,h).then(function(a){b.project.newSettings.scm.url=a.normalizedUrl,a.isAccessible?b.saveScmSettings():(b.setProcessing(!1),c.go("project.setup.scm_access"))},function(a){b.setProcessing(!1);var c=a.data&&a.data.error?a.data.error:"We were not able to connect to your URL.";b.showError(c)})},b.project.serviceFlags.collab?b.project.newSettings.scm.type||(b.project.newSettings.scm.type="collab",b.project.newSettings.scm.url="Unity Collab",b.nextStep()):b.repoTypes=_.reject(b.repoTypes,{value:"collab"})}]),angular.module("ut.cloudbuild.setup").controller("ProjectSetupStep02Ctrl",["$stateParams","$scope","$state","$controller","scmUtils","cloudBuildService",function(a,b,c,d,e,f){return b.project.newSettings&&b.project.newSettings.scm&&b.project.newSettings.scm.type?(b.initialPass=b.project.newSettings.scm.pass,d("ProjectSetupScmBaseCtrl",{$scope:b}),b.repoTypeName=e.getScmTypeNameFromType(b.project.newSettings.scm.type),b.repoHost=e.detectScmHost(b.project.newSettings.scm.url),b.sshPublicKey="Loading...",f.projects.sshkey(b.project.orgid,b.project.projectid).then(function(a){b.sshPublicKey=a.publickey},function(a){b.sshPublicKey="Error loading SSH Key!"}),b.canContinueToNextStep=function(){var a=b.project.newSettings.scm;return"git"===a.type||a.user&&a.pass},void(b.nextStep=function(){b.setProcessing(!0),b.clearError();var a=_.merge({},b.project.newSettings.scm);a.pass===b.initialPass&&delete a.pass;var c="Repo is not accessible. Please check your URL and repo settings.";f.projects.scm.checkUrl(b.project.orgid,b.project.projectid,a).then(function(a){a.isAccessible?b.saveScmSettings():(b.setProcessing(!1),b.showError(c,a.errorMessages))},function(a){b.setProcessing(!1),b.showError(c)})})):void c.go("project.setup.scm")}]),angular.module("ut.cloudbuild.setup").controller("ProjectSetupTargetAdvancedCtrl",["$stateParams","$scope","$state","$timeout","modals","setupConstants","cloudBuildService","ENV",function(a,b,c,d,e,f,g,h){b.constants=_.merge({},f),b.ENV=h,b.isEditing=!0,b.form={},b.getValueFromPath=function(a,c,d){var e=!1;return c.split(".").reduce(function(a,c){return!e&&a.hasOwnProperty(c)?(b.hasCustomConfig=!0,a[c]):(e=!0,d)},a)},b.saveBuildTarget=function(a){var d=b.target.buildtargetid,f=g.projects.updateBuildTarget(b.project.orgid,b.project.projectid,d,a),h=e.progress("Saving...");f.then(function(a){b.updateBuildTargetInScope(d,a),c.go("project.targets")}).catch(function(a){e.error("Failed to update build target: "+a.data.error)}).finally(function(){h.close()})},b.executableName=b.target.settings.executablename;var i=b.target.settings.advanced||{};b.preExportMethod=b.getValueFromPath(i,"unity.preExportMethod",""),b.postExportMethod=b.getValueFromPath(i,"unity.postExportMethod",""),b.postBuildScript=b.getValueFromPath(i,"unity.postBuildScript",""),b.scenes=b.getValueFromPath(i,"unity.playerExporter.sceneList",[]),b.buildOptions=b.getValueFromPath(i,"unity.playerExporter.buildOptions",[]),b.buildForDebug=b.buildOptions.indexOf("Development")!==-1,b.splitBinaryBuild=b.getValueFromPath(i,"unity.playerSettings.Android.useAPKExpansionFiles",!1),b.hadSplitBinaryBuild=b.splitBinaryBuild;var j=b.getValueFromPath(i,"unity.scriptingDefineSymbols",""),k=j.length>0?j.split(";"):[];b.customDefines=[];for(var l=0;l<k.length;l++){var m=k[l].trim();m&&b.customDefines.indexOf(m)===-1&&b.customDefines.push(m)}b.$watch("buildForDebug",function(a,c){if(a)b.buildOptions.indexOf("Development")===-1&&(b.buildOptions.push("Development"),b.buildOptions.push("AllowDebugging"));else{var d=b.buildOptions.indexOf("Development");d!==-1&&b.buildOptions.splice(d,1);var e=b.buildOptions.indexOf("AllowDebugging");e!==-1&&b.buildOptions.splice(e,1)}}),b.addCustomDefine=function(){var a=b.customDefinesText||"";a=a.replace(/;/g,""),a=a.trim(),a&&b.customDefines.indexOf(a)===-1&&b.customDefines.push(a),b.customDefinesText=""},b.removeCustomDefine=function(a){b.customDefines.splice(a,1)},b.addScene=function(){var a=b.scenesText||"";"/"===a.substr(0,1)&&(a=a.substr(1,a.length-1)),a=a.trim(),a&&("Assets/"!==a.substr(0,7)&&(a="Assets/"+a),a.indexOf(".unity")===-1&&(a+=".unity"),a&&b.scenes.indexOf(a)===-1&&b.scenes.push(a),b.scenesText="")},b.removeScene=function(a){b.scenes.splice(a,1)},b.canContinueToNextStep=function(){return!0},b.nextStep=function(){var a=b.customDefines.join("; "),c={settings:{advanced:{unity:{preExportMethod:b.preExportMethod,postExportMethod:b.postExportMethod,postBuildScript:b.postBuildScript,scriptingDefineSymbols:a,playerExporter:{sceneList:b.scenes,buildOptions:b.buildOptions}}}}};b.executableName&&(c.settings.executablename=b.executableName),(b.splitBinaryBuild||b.hadSplitBinaryBuild)&&(c.settings.advanced.unity.playerSettings={Android:{useAPKExpansionFiles:b.splitBinaryBuild}}),b.saveBuildTarget(c)}}]),angular.module("ut.cloudbuild.setup").controller("ProjectSetupTargetAssetBundlesCtrl",["$scope","$controller",function(a,b){b("ProjectSetupTargetAdvancedCtrl",{$scope:a});var c=a.target.settings.advanced||{};a.buildAssetBundles=a.getValueFromPath(c,"unity.assetBundles.buildBundles",!1),a.bundlesBasePath=a.getValueFromPath(c,"unity.assetBundles.basePath",""),a.copyToStreamingAssets=a.getValueFromPath(c,"unity.assetBundles.copyToStreamingAssets",!1),a.copyBundlePatterns=a.getValueFromPath(c,"unity.assetBundles.copyBundlePatterns",[]),a.addFilePattern=function(){var b=a.copyFilePatternText||"";b.replace(/[\n]+/g,""),a.copyBundlePatterns.indexOf(b)<0&&a.copyBundlePatterns.push(b),a.copyFilePatternText=""},a.removeFilePattern=function(b){a.copyBundlePatterns.splice(b,1)},a.nextStep=function(){var b=a.bundlesBasePath||"";b=b.replace(/^\/+/,"");var c={settings:{advanced:{unity:{assetBundles:{buildBundles:a.buildAssetBundles,copyToStreamingAssets:a.copyToStreamingAssets,copyBundlePatterns:a.copyBundlePatterns,basePath:b}}}}};a.saveBuildTarget(c)}}]),angular.module("ut.cloudbuild.setup").controller("ProjectSetupTargetBasicCtrl",["$stateParams","$scope","$state","$timeout","modals","setupConstants","cloudBuildService","breadcrumbFactory","buildConstants","scmUtils",function(a,b,c,d,e,f,g,h,i,j){function k(a){b.needsCredentials()?c.go("project.setup.target.credentials",{targetId:a.buildtargetid,new:!0}):b.isEditing?c.go("project.targets"):b.startBuilds(a.buildtargetid,!1)}b.constants=_.merge({},f);var l=a.targetId;if(l)b.isEditing=!0;else if(b.isEditing=!1,b.target={platform:"",name:"",enabled:!0,settings:{autoBuild:!0,remoteCacheStrategy:"library",unityVersion:"latest5",scm:{}}},a.platform){b.target.platform=a.platform,h.update("project.setup.new_target",{platformName:i.platformName(b.target.platform)});var m=_.find(f.platforms,{value:a.platform}),n=m?m.name:a.platform;b.target.name="Default "+n}"hg"===b.project.settings.scm.type?b.target.settings.scm.branch=b.target.settings.scm.branch||"default":j.getScmBranches(b),b.gitBranchModal=function(){e.gitBranchSelect(b.project,b.target).result.then(function(a){b.target.settings.scm.branch=a})},b.svnFolderModal=function(){e.svnFolderSelect(b.project,b.target).result.then(function(a){b.target.settings.scm.branch=a})},b.p4ClientModal=function(){e.p4ClientSelect(b.project,b.target).result.then(function(a){b.target.settings.scm.client=a})},b.needsCredentials=function(){var a=b.target;return("android"===a.platform||"ios"===a.platform)&&(!b.isEditing||(!a.credentials||!a.credentials.signing||!a.credentials.signing.credentialid))},b.WebGlSupportCheck=function(){return"webgl"!==b.target.platform||!b.target.settings.unityVersion.match(/^4_/)&&"latest"!==b.target.settings.unityVersion},b.canContinueToNextStep=function(){var a=!1;if("p4"!==b.project.settings.scm.type&&"collab"!==b.project.settings.scm.type&&(a=!b.target.settings.scm.branch),"p4"===b.project.settings.scm.type){if(!b.target.settings.scm.client)return!1}else if(a||!b.WebGlSupportCheck())return!1;return b.target.platform&&b.target.name},b.nextStep=function(){var a=null;a=b.isEditing?g.projects.updateBuildTarget(b.project.orgid,b.project.projectid,b.target.buildtargetid,b.target):g.projects.createBuildTarget(b.project.orgid,b.project.projectid,b.target);var c=e.progress("Saving...");a.then(function(a){b.updateBuildTargetInScope(l,a),k(a)}).catch(function(a){e.error("Failed to update build target: "+a.data.error)}).finally(function(){c.close()})}}]),angular.module("ut.cloudbuild.setup").controller("ProjectSetupPlatformSelectCtrl",["$stateParams","$scope","setupConstants",function(a,b,c){b.platforms=_.filter(c.platforms,function(a){return!a.hidden})}]),angular.module("ut.cloudbuild.setup").directive("svnpath",["$q","$timeout","cloudBuildService",function(a,b,c){return{require:"ngModel",link:function(b,d,e,f){f.$asyncValidators.svnpath=function(d,e){var f=a.defer();return c.projects.scm.svnListFolders(b.project.orgid,b.project.projectid,e).then(function(a){f.resolve()}).catch(function(a){f.reject()}),f.promise}}}}]),angular.module("ut.cloudbuild.setup").controller("ProjectSetupTargetEditCtrl",["$stateParams","$scope","$state","$timeout","modals",function(a,b,c,d,e){var f=a.targetId,g=_.find(b.buildTargets,{buildtargetid:f});g?b.target=_.merge({},g):e.error("Build target '"+f+"' does not exist!").result.then(function(){c.go("project.targets")})}]),angular.module("ut.cloudbuild.setup").controller("ProjectSetupTargetTestsCtrl",["$stateParams","$scope","$controller",function(a,b,c){c("ProjectSetupTargetAdvancedCtrl",{$scope:b});var d=b.target.settings.advanced||{};b.runUnitTests=b.getValueFromPath(d,"unity.runUnitTests",!1),b.unitTestMethod=b.getValueFromPath(d,"unity.unitTestMethod","UnityTest.Batch.RunUnitTests"),b.failedUnitTestFailsBuild=b.getValueFromPath(d,"unity.failedUnitTestFailsBuild",!1),b.nextStep=function(){var a={settings:{advanced:{unity:{runUnitTests:b.runUnitTests,unitTestMethod:b.unitTestMethod,failedUnitTestFailsBuild:b.failedUnitTestFailsBuild}}}};b.saveBuildTarget(a)}}]),angular.module("ut.cloudbuild.setup").directive("validatesubdirectory",function(){return{restrict:"A",require:"ngModel",link:function(a,b,c,d){function e(a){d.$setValidity("subdirectoryNewline",!0),d.$setValidity("subdirectoryCharacters",!0),d.$setValidity("subdirectoryParent",!0),d.$setValidity("subdirectorySource",!0);var c=b.val();c&&0!==c.length&&(/[\r\n\f]/.test(c)?d.$setValidity("subdirectoryNewline",!1):/[$`\\!"*@#]/.test(c)?d.$setValidity("subdirectoryCharacters",!1):/(?:^|\/)\.\.\//.test(c)?d.$setValidity("subdirectoryParent",!1):/(?:^|\/)\.\//.test(c)&&d.$setValidity("subdirectorySource",!1))}e(d.$viewValue),a.$watch(function(){return d.$viewValue},e)}}}),angular.module("ut.cloudbuild.setup").directive("fileModel",["$parse",function(a){return{restrict:"A",link:function(b,c,d){var e=a(d.fileModel),f=e.assign;c.bind("change",function(){b.$apply(function(){f(b,c[0].files[0])})})}}}]),angular.module("ut.cloudbuild.setup").constant("setupConstants",{platforms:[{name:"Please choose a platform target",value:"",icon:"",hidden:!0},{name:"iOS",value:"ios",icon:"unityicon unityicon-os-ios"},{name:"Android",value:"android",icon:"unityicon unityicon-os-android"},{name:"Web Player",value:"webplayer",icon:"unityicon unityicon-os-webplayer"},{name:"WebGL",value:"webgl",icon:"unityicon unityicon-os-webgl"},{name:"Mac desktop 32-bit",value:"standaloneosxintel",icon:"unityicon unityicon-os-osx-32"},{name:"Mac desktop 64-bit",value:"standaloneosxintel64",icon:"unityicon unityicon-os-osx-64"},{name:"Mac desktop Universal",value:"standaloneosxuniversal",icon:"unityicon unityicon-os-osx-U"},{name:"Windows desktop 32-bit",value:"standalonewindows",icon:"unityicon unityicon-os-win-32"},{name:"Windows desktop 64-bit",value:"standalonewindows64",icon:"unityicon unityicon-os-win-64"},{name:"Linux desktop 32-bit",value:"standalonelinux",icon:"unityicon unityicon-os-linux-32"},{name:"Linux desktop 64-bit",value:"standalonelinux64",icon:"unityicon unityicon-os-linux-64"},{name:"Linux desktop Universal",value:"standalonelinuxuniversal",icon:"unityicon unityicon-os-linux-U"}],cachingStrategies:[{name:"Off",value:"none"},{name:"Cache Library Directory",value:"library"},{name:"Cache Entire Project",value:"workspace"}]}),angular.module("ut.cloudbuild.setup").provider("utilsService",function(){this.$get=["$q","$timeout",function(a,b){function c(a,d,e,f){if(a[d])f.resolve();else{var g=c.bind(null,a,d,e,f);b(g,e)}}var d={};return d.waitForScopeValueToLoad=function(b,d,e){var f=a.defer();return c(b,d,e||500,f),f.promise},d}]}).directive("utTooltipToggle",function(){return{restrict:"E",replace:!0,template:'<a class="tooltip-toggle">?</a>',link:function(a,b,c){b.bind("click",function(){$(this).parents(".form-group").find(".tooltip").toggleClass("tooltip-visible")})}}}),angular.module("ut.progress",["ut.core"]).directive("utProgress",utProgressDirective),utSwitchDirective.$inject=["$timeout"],angular.module("ut.switch",["ut.core"]).directive("utSwitch",utSwitchDirective),angular.module("ut.wizard-progress",["ut.core"]).directive("utWizardProgress",function(){return{restrict:"E",templateUrl:"../unityeditor-components/src/components/wizard-progress/wizard-progress.tpl.html",scope:{utStep:"@",utTotal:"@"},link:function(a,b,c){var d;for(a.utSteps=[],d=0;d<a.utTotal;d++)a.utSteps.push(d+1)}}}),angular.module("ut.core",[]),angular.module("ut.components",["ut.alert","ut.button","ut.checkbox","ut.cloudbuild","ut.switch","ut.wizard-progress"]).run(function(){}),angular.module("ut.services.cloudbuild",["ngResource","ut.unityeditor-components.cloud-config"]).provider("cloudBuildService",function(){var a="";this.serviceUrl=function(b){a=b},this.$get=["$resource","$location","$q","$http","coreConfigService",function(b,c,d,e,f){function g(){var a=d.defer(),c=b(k.userSelfUrl+"?include=orgs,lastAcceptedEulaVersion,permissions",{});return c.get().$promise.then(function(a){return h(a)}).then(function(b){m=b,a.resolve(b)},function(b){a.reject(b)}),a.promise}function h(a){var b=d.defer();return a?b.resolve(a):b.reject(i("User not found.")),b.promise}function i(a){var b=new Error(a);return b.authError=!0,b}function j(){return{save:{method:"POST",transformRequest:function(a){var b=new FormData;return angular.forEach(a,function(a,c){b.append(c,a)}),b},headers:{"Content-Type":void 0,enctype:"multipart/form-data"}}}}var k={},l=this;f.getConfigUrl("build_api_url").then(function(b){l.serviceUrl(b);var c=a+"/api/v1/";k.baseUrl=c,k.userSelfUrl=c+"users/me",k.projectsUrl=c+"projects",k.orgsUrl=c+"orgs",k.versionsUrl=c+"versions",k.oauthUrl=c+"oauth"});var m={},n={currentUser:{get:function(a){var b=d.defer();if(_.isEmpty(m)){if(a)return g();b.reject(i("User not found."))}else b.resolve(m);return b.promise},clear:function(){m={}}},users:{},projects:{},orgs:{}};return n.projects.listUsers=function(a){return b(k.projectsUrl+"/"+a+"/users").query().$promise},n.users.listProjects=function(){return b(k.projectsUrl+"?include=settings,serviceFlags").query().$promise},n.orgs.listProjects=function(a){return b(k.orgsUrl+"/"+a+"/projects").query().$promise},n.orgs.getBillingUser=function(a){return b(k.orgsUrl+"/"+a+"/billinguser").get().$promise},n.projects.details=function(a,c){return b(k.orgsUrl+"/"+a+"/projects/"+c+"?include=serviceFlags").get().$promise},n.projects.guid=function(a){return b(k.projectsUrl+"/"+a).get().$promise},n.projects.recordPageView=function(a,c){return b(k.projectsUrl+"/"+a+"/events",{},{}).save({type:"page.view",data:c}).$promise},n.projects.create=function(a,c){return b(k.orgsUrl+"/"+a+"/projects").save({name:c}).$promise},n.projects.edit=function(a,c,d){return b(k.orgsUrl+"/"+a+"/projects/"+c,{},{update:{method:"PUT"}}).update(d).$promise},n.projects.disable=function(a,c){return b(k.orgsUrl+"/"+a+"/projects/"+c,{}).delete().$promise},n.projects.listCredentials=function(a,c,d){return b(k.orgsUrl+"/"+a+"/projects/"+c+"/credentials/signing/"+d).query().$promise},n.projects.uploadCredentials=function(a,c,d,e){var f=j();return b(k.orgsUrl+"/"+a+"/projects/"+c+"/credentials/signing/"+d,{},f).save(e).$promise},n.projects.scm={},n.projects.scm.checkUrl=function(a,c,d){return b(k.orgsUrl+"/"+a+"/projects/"+c+"/scm/checkurl").save(d).$promise},n.projects.scm.gitListBranches=function(a,c){return b(k.orgsUrl+"/"+a+"/projects/"+c+"/scm/git/branches").query().$promise},n.projects.scm.svnListFolders=function(a,c,d){return b(k.orgsUrl+"/"+a+"/projects/"+c+"/scm/svn/folders",{},{post:{method:"POST",isArray:!0}}).post({subfolder:d}).$promise},n.projects.scm.p4ListClients=function(a,c){return b(k.orgsUrl+"/"+a+"/projects/"+c+"/scm/p4/clients").query().$promise},n.projects.hooks={},n.projects.hooks.list=function(a,c){return b(k.orgsUrl+"/"+a+"/projects/"+c+"/hooks/").query().$promise},n.projects.hooks.create=function(a,c,d){return b(k.orgsUrl+"/"+a+"/projects/"+c+"/hooks/").save(d).$promise},n.projects.hooks.get=function(a,c,d){return b(k.orgsUrl+"/"+a+"/projects/"+c+"/hooks/"+d).get().$promise},n.projects.hooks.update=function(a,c,d,e){return b(k.orgsUrl+"/"+a+"/projects/"+c+"/hooks/"+d,{},{update:{method:"PUT"}}).update(e).$promise},n.projects.hooks.delete=function(a,c,d){return b(k.orgsUrl+"/"+a+"/projects/"+c+"/hooks/"+d).delete().$promise},n.projects.hooks.ping=function(a,c,d){return b(k.orgsUrl+"/"+a+"/projects/"+c+"/hooks/"+d+"/ping").save({}).$promise},n.projects.getBuilds=function(a,b,c,f,g,h,i,j){var l=h?"&buildStatus="+h:"",m=i?"&platform="+i:"",n=d.defer();return e.get(k.orgsUrl+"/"+a+"/projects/"+b+"/buildtargets/"+c+"/builds?per_page="+f+"&page="+g+l+m,{cache:!1,timeout:n.promise}).then(function(a){if(a.data){var b=a.headers("content-range");b=b.split("/");var c={total_count:b[1],data:a.data};j(null,c)}else j("Server returned an error")},function(a){j(a)}),n},n.projects.getAuditlog=function(a,c,d,e){return b(k.orgsUrl+"/"+a+"/projects/"+c+"/auditlog/?per_page="+d+"&page="+e,{},{query:{method:"GET",transformResponse:function(a,b){var c={};c.data=a,"string"==typeof a&&(c.data=angular.fromJson(a));var d=b("content-range");return d=d.split("/"),c.total_count=d[1],c}}}).query().$promise},n.projects.getBuild=function(a,c,d,e){return b(k.orgsUrl+"/"+a+"/projects/"+c+"/buildtargets/"+d+"/builds/"+e).get().$promise},n.projects.getBuildWithTestData=function(a,c,d,e){return b(k.orgsUrl+"/"+a+"/projects/"+c+"/buildtargets/"+d+"/builds/"+e+"?include=testResults").get().$promise},n.projects.cancelBuild=function(a,c,d,e){return b(k.orgsUrl+"/"+a+"/projects/"+c+"/buildtargets/"+d+"/builds/"+e).delete().$promise},n.projects.startBuilds=function(a,c,d,e,f){return d||(d="_all"),e||(e=!1),b(k.orgsUrl+"/"+a+"/projects/"+c+"/buildtargets/"+d+"/builds",{},{post:{method:"POST",isArray:!0}}).post({clean:e}).$promise},n.projects.getBuildTargets=function(a,c){return b(k.orgsUrl+"/"+a+"/projects/"+c+"/buildtargets/?include=settings,credentials").query().$promise},n.projects.getBuildTargetsAndLastSuccess=function(a,c){return b(k.orgsUrl+"/"+a+"/projects/"+c+"/buildtargets/?include_last_success=true").query().$promise},n.projects.createBuildTarget=function(a,c,d){return b(k.orgsUrl+"/"+a+"/projects/"+c+"/buildtargets/").save(d).$promise},n.projects.updateBuildTarget=function(a,c,d,e){return b(k.orgsUrl+"/"+a+"/projects/"+c+"/buildtargets/"+d,{},{update:{method:"PUT"}}).update(e).$promise},n.projects.deleteBuildTarget=function(a,c,d){return b(k.orgsUrl+"/"+a+"/projects/"+c+"/buildtargets/"+d).delete().$promise},n.projects.getBuildLog=function(a,b,c,d,f,g,h){f||(f="false"),g||(g=0),e.get(k.orgsUrl+"/"+a+"/projects/"+b+"/buildtargets/"+c+"/builds/"+d+"/log?compact="+f+"&offsetlines="+g+"&withHtml=true&linenumbers=true").then(function(a){200!==a.status?h("Server returned an error"):(a.data||(a.data="No logs for this build"),h(null,a.data))},function(a){h("Server returned an error")})},n.projects.getRawBuildLog=function(a,b,c,d,f){e.get(k.baseUrl+"admin/orgs/"+a+"/projects/"+b+"/buildtargets/"+c+"/builds/"+d+"/rawlog").then(function(a){200!==a.status?f("Server returned an error"):(a.data||(a.data="No logs for this build"),f(null,a.data))},function(a){f("Server returned an error")})},n.projects.getBuildAuditlog=function(a,c,d,e,f,g){return b(k.orgsUrl+"/"+a+"/projects/"+c+"/buildtargets/"+d+"/builds/"+e+"/auditlog/?per_page="+f+"&page="+g,{},{query:{method:"GET",transformResponse:function(a,b){var c={};c.data=a,"string"==typeof a&&(c.data=angular.fromJson(a));var d=b("content-range");return d=d.split("/"),c.total_count=d[1],c}}}).query().$promise},n.projects.sshkey=function(a,c){return b(k.orgsUrl+"/"+a+"/projects/"+c+"/sshkey").get().$promise},n.projects.collabs=function(a,c){return b(k.orgsUrl+"/"+a+"/projects/"+c+"/users").query().$promise},n.projects.addCollab=function(a,b,c,d){e.post(k.orgsUrl+"/"+a+"/projects/"+b+"/users",c).success(function(a,b,c,e){a?d(null,a):d("error")})},n.projects.removeCollab=function(a,c,d,e){return b(k.orgsUrl+"/"+a+"/projects/"+c+"/users/"+d).delete().$promise},n.projects.stats=function(a,c){return b(k.orgsUrl+"/"+a+"/projects/"+c+"/stats").get().$promise},n.projects.plan=function(a,c){return b(k.orgsUrl+"/"+a+"/projects/"+c+"/billingplan").get().$promise},n.projects.getOwningUser=function(a){return b(k.projectsUrl+"/"+a+"/owninguser").get().$promise},n.projects.getShareID=function(a,c,d,e){return b(k.orgsUrl+"/"+a+"/projects/"+c+"/buildtargets/"+d+"/builds/"+e+"/share").get().$promise},n.projects.deleteShareID=function(a,c,d,e){return b(k.orgsUrl+"/"+a+"/projects/"+c+"/buildtargets/"+d+"/builds/"+e+"/share").delete().$promise},n.projects.createShare=function(a,c,d,e){return b(k.orgsUrl+"/"+a+"/projects/"+c+"/buildtargets/"+d+"/builds/"+e+"/share").save({}).$promise},n.projects.transferProjectToOrg=function(a,c){return b(k.projectsUrl+"/"+a+"/transfer",{},{put:{method:"PUT"}}).put({orgid:c}).$promise},n.users.edit=function(a){return console.dir(a),b(k.userSelfUrl,{},{put:{method:"PUT"}}).put(a).$promise},n.users.apikey=function(){var a={};return b(k.userSelfUrl+"/apikey",{},{post:{method:"POST"}}).post(a).$promise},n.users.devices={},n.users.devices.list=function(){return b(k.userSelfUrl+"/devices").query().$promise},n.users.devices.create=function(a,c){return b(k.userSelfUrl+"/devices").save(a).$promise},n.users.recordPageView=function(a){return b(k.userSelfUrl+"/events",{},{}).save({type:"page.view",data:a}).$promise},n.getUrl=function(c,d){return d?b(a+c).query().$promise:b(a+c).get().$promise},n.versions={},n.versions.get=function(a){return b(k.versionsUrl+"/"+a).query().$promise},n.oauth={},n.oauth.get_authorize_url=function(a,b){return k.oauthUrl+"/"+a+"/authorize"+b},n.oauth.access_token=function(a,c){return b(k.oauthUrl+"/"+a+"/access_token").save(c).$promise},n}]}),angular.module("ut.unityeditor-components.cloud-config",[]).factory("coreConfigService",["$q",function(a){return{getConfigUrl:function(b){return a.when("")},getConfigUrls:function(){return a.when({})}}}]),angular.module("ut.services.notification",[]).service("notifications",["$q","$interval",function(a,b){var c,d=this,e=30;this.pubnub=null,this.PUBNUB_DISCONNECTED=0,this.PUBNUB_CONNECTING=1,this.PUBNUB_CONNECTED=2,this.pubnubStatus=this.PUBNUB_DISCONNECTED,this.USER_CHANNEL="user",this.COMMIT_CHANNEL="commits",this.SOFTLOCK_CHANNEL="softlocks",this.pubnubErrorCallBack=function(a){d.pubnubStatus=d.PUBNUB_DISCONNECTED,d.pubnub&&(d.pubnub.unsubscribe({channel:c.channels[d.channel]}),delete d.pubnub)},this.probePubnub=function(){d.channel&&d.pubnubStatus==d.PUBNUB_DISCONNECTED&&(d.pubnubStatus=d.PUBNUB_CONNECTING,d.refreshChannelAccess().then(function(a){c=a,d.pubnub=PUBNUB.init({subscribe_key:c.subscribe_key,auth_key:c.access_key,ssl:!0}),d.pubnub.subscribe({channel:c.channels[d.channel],connect:d.messageCallback,message:d.messageCallback,error:d.pubnubErrorCallBack}),d.pubnubStatus=d.PUBNUB_CONNECTED},function(a){d.pubnubStatus=d.PUBNUB_DISCONNECTED,console.error("Failed to refresh channel access",a)}))};var f=angular.bind(this,this.probePubnub);b(f,1e3*e),this.subscribe=function(a,b){d.channel=a,d.messageCallback=b},this.refreshChannelAccess=function(){var b=a.defer();return b.reject("refreshChannelAccess unset! Please set this to the correct function."),b.promise}}]),!function(a,b){"use strict";var c=window.angulartics||(window.angulartics={});c.waitForVendorCount=0,c.waitForVendorApi=function(a,b,d,e,f){f||c.waitForVendorCount++,e||(e=d,d=void 0),!Object.prototype.hasOwnProperty.call(window,a)||void 0!==d&&void 0===window[a][d]?setTimeout(function(){c.waitForVendorApi(a,b,d,e,!0)},b):(c.waitForVendorCount--,e(window[a]))},a.module("angulartics",[]).provider("$analytics",function(){var b={pageTracking:{autoTrackFirstPage:!0,autoTrackVirtualPages:!0,trackRelativePath:!1,autoBasePath:!1,basePath:""},eventTracking:{},bufferFlushDelay:1e3,developerMode:!1},d=["pageTrack","eventTrack","setAlias","setUsername","setUserProperties","setUserPropertiesOnce","setSuperProperties","setSuperPropertiesOnce"],e={},f={},g=function(a){return function(){c.waitForVendorCount&&(e[a]||(e[a]=[]),e[a].push(arguments))}},h=function(b,c){return f[b]||(f[b]=[]),f[b].push(c),function(){var c=arguments;a.forEach(f[b],function(a){a.apply(this,c)},this)}},i={settings:b},j=function(a,b){b?setTimeout(a,b):a()},k={$get:function(){return i},api:i,settings:b,virtualPageviews:function(a){this.settings.pageTracking.autoTrackVirtualPages=a},firstPageview:function(a){this.settings.pageTracking.autoTrackFirstPage=a;
},withBase:function(b){this.settings.pageTracking.basePath=b?a.element(document).find("base").attr("href"):""},withAutoBase:function(a){this.settings.pageTracking.autoBasePath=a},developerMode:function(a){this.settings.developerMode=a}},l=function(c,d){i[c]=h(c,d);var f=b[c],g=f?f.bufferFlushDelay:null,k=null!==g?g:b.bufferFlushDelay;a.forEach(e[c],function(a,b){j(function(){d.apply(this,a)},b*k)})},m=function(a){return a.replace(/^./,function(a){return a.toUpperCase()})},n=function(a){var b="register"+m(a);k[b]=function(b){l(a,b)},i[a]=h(a,g(a))};return a.forEach(d,n),k}).run(["$rootScope","$window","$analytics","$injector",function(b,c,d,e){d.settings.pageTracking.autoTrackFirstPage&&e.invoke(["$location",function(a){var b=!0;if(e.has("$route")){var f=e.get("$route");for(var g in f.routes){b=!1;break}}else if(e.has("$state")){var h=e.get("$state");for(var i in h.get()){b=!1;break}}if(b)if(d.settings.pageTracking.autoBasePath&&(d.settings.pageTracking.basePath=c.location.pathname),d.settings.pageTracking.trackRelativePath){var j=d.settings.pageTracking.basePath+a.url();d.pageTrack(j,a)}else d.pageTrack(a.absUrl(),a)}]),d.settings.pageTracking.autoTrackVirtualPages&&e.invoke(["$location",function(a){d.settings.pageTracking.autoBasePath&&(d.settings.pageTracking.basePath=c.location.pathname+"#"),e.has("$route")&&b.$on("$routeChangeSuccess",function(b,c){if(!c||!(c.$$route||c).redirectTo){var e=d.settings.pageTracking.basePath+a.url();d.pageTrack(e,a)}}),e.has("$state")&&b.$on("$stateChangeSuccess",function(b,c){var e=d.settings.pageTracking.basePath+a.url();d.pageTrack(e,a)})}]),d.settings.developerMode&&a.forEach(d,function(a,b){"function"==typeof a&&(d[b]=function(){})})}]).directive("analyticsOn",["$analytics",function(b){function c(a){return["a:","button:","button:button","button:submit","input:button","input:submit"].indexOf(a.tagName.toLowerCase()+":"+(a.type||""))>=0}function d(a){return c(a),"click"}function e(a){return c(a)?a.innerText||a.value:a.id||a.name||a.tagName}function f(a){return"analytics"===a.substr(0,9)&&-1===["On","Event","If","Properties","EventType"].indexOf(a.substr(9))}function g(a){var b=a.slice(9);return"undefined"!=typeof b&&null!==b&&b.length>0?b.substring(0,1).toLowerCase()+b.substring(1):b}return{restrict:"A",link:function(c,h,i){var j=i.analyticsOn||d(h[0]),k={};a.forEach(i.$attr,function(a,b){f(b)&&(k[g(b)]=i[b],i.$observe(b,function(a){k[g(b)]=a}))}),a.element(h[0]).bind(j,function(d){var f=i.analyticsEvent||e(h[0]);k.eventType=d.type,(!i.analyticsIf||c.$eval(i.analyticsIf))&&(i.analyticsProperties&&a.extend(k,c.$eval(i.analyticsProperties)),b.eventTrack(f,k))})}}}])}(angular),!function(a){"use strict";a.module("angulartics.google.analytics",["angulartics"]).config(["$analyticsProvider",function(b){b.settings.trackRelativePath=!0,b.settings.ga={additionalAccountNames:void 0,userId:null},b.registerPageTrack(function(c){window._gaq&&(_gaq.push(["_trackPageview",c]),a.forEach(b.settings.ga.additionalAccountNames,function(a){_gaq.push([a+"._trackPageview",c])})),window.ga&&(b.settings.ga.userId&&ga("set","&uid",b.settings.ga.userId),ga("send","pageview",c),a.forEach(b.settings.ga.additionalAccountNames,function(a){ga(a+".send","pageview",c)}))}),b.registerEventTrack(function(c,d){if(d&&d.category||(d=d||{},d.category="Event"),d.value){var e=parseInt(d.value,10);d.value=isNaN(e)?0:e}if(window.ga){for(var f={eventCategory:d.category,eventAction:c,eventLabel:d.label,eventValue:d.value,nonInteraction:d.noninteraction,page:d.page||window.location.hash.substring(1),userId:b.settings.ga.userId},g=1;20>=g;g++)d["dimension"+g.toString()]&&(f["dimension"+g.toString()]=d["dimension"+g.toString()]),d["metric"+g.toString()]&&(f["metric"+g.toString()]=d["metric"+g.toString()]);ga("send","event",f),a.forEach(b.settings.ga.additionalAccountNames,function(a){ga(a+".send","event",f)})}else window._gaq&&_gaq.push(["_trackEvent",d.category,c,d.label,d.value,d.noninteraction])}),b.registerSetUsername(function(a){b.settings.ga.userId=a})}])}(angular),function(a){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=a();else if("function"==typeof define&&define.amd)define([],a);else{var b;b="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,(b.airbrakeJs||(b.airbrakeJs={})).Client=a()}}(function(){return function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g<d.length;g++)e(d[g]);return e}({1:[function(a,b,c){(function(c){var d,e,f;a("./internal/compat"),f=a("./internal/merge"),e=a("./internal/promise"),d=function(){function b(b){var d;null==b&&(b={}),this._projectId=b.projectId||0,this._projectKey=b.projectKey||"",this._host="https://api.airbrake.io",this._context={},this._params={},this._env={},this._session={},this._processor=null,this._reporters=[],this._filters=[],void 0!==b.processor?this._processor=b.processor:this._processor=a("./processors/stack"),void 0!==b.reporter?this.addReporter(b.reporter):(d=a("withCredentials"in new c.XMLHttpRequest?"./reporters/xhr":"./reporters/jsonp"),this.addReporter(d))}return b.prototype.setProject=function(a,b){return this._projectId=a,this._projectKey=b},b.prototype.setHost=function(a){return this._host=a},b.prototype.addContext=function(a){return f(this._context,a)},b.prototype.setEnvironmentName=function(a){return this._context.environment=a},b.prototype.addParams=function(a){return f(this._params,a)},b.prototype.addEnvironment=function(a){return f(this._env,a)},b.prototype.addSession=function(a){return f(this._session,a)},b.prototype.addReporter=function(a){return this._reporters.push(a)},b.prototype.addFilter=function(a){return this._filters.push(a)},b.prototype.push=function(a){var b,d,g;return b={language:"JavaScript",sourceMapEnabled:!0},(null!=(g=c.navigator)?g.userAgent:void 0)&&(b.userAgent=c.navigator.userAgent),c.location&&(b.url=String(c.location)),d=new e,this._processor(a.error||a,function(c){return function(e,g){var h,i,j,k,l,m,n,o,p,q;for(m={notifier:{name:"airbrake-js-"+e,version:"0.5.1",url:"https://github.com/airbrake/airbrake-js"},errors:[g],context:f(b,c._context,a.context),params:f({},c._params,a.params),environment:f({},c._env,a.environment),session:f({},c._session,a.session)},o=c._filters,i=0,k=o.length;i<k;i++)if(h=o[i],!h(m))return;for(n={projectId:c._projectId,projectKey:c._projectKey,host:c._host},p=c._reporters,j=0,l=p.length;j<l;j++)(q=p[j])(m,n,d)}}(this)),d},b.prototype._wrapArguments=function(a){var b,c,d,e;for(c=d=0,e=a.length;d<e;c=++d)b=a[c],"function"==typeof b&&(a[c]=this.wrap(b));return a},b.prototype.wrap=function(a){var b,c,d;if(a.__airbrake__)return a;d=this,b=function(){var b,c;b=d._wrapArguments(arguments);try{return a.apply(this,b)}catch(e){return c=e,b=Array.prototype.slice.call(arguments),d.push({error:c,params:{arguments:b}}),null}};for(c in a)a.hasOwnProperty(c)&&(b[c]=a[c]);return b.__airbrake__=!0,b.__inner__=a,b},b}(),b.exports=d}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./internal/compat":2,"./internal/merge":4,"./internal/promise":5,"./processors/stack":7,"./reporters/jsonp":8,"./reporters/xhr":9}],2:[function(a,b,c){var d;null==(d=Array.prototype).indexOf&&(d.indexOf=function(a,b){var c,d,e,f;for(b=b||0,c=d=e=b,f=this.length;e<=f?d<f:d>f;c=e<=f?++d:--d)if(this[c]===a)return c;return-1})},{}],3:[function(a,b,c){var d,e,f;e=a("./truncate"),f=function(a,b){var c,d;null==b&&(b=1e3),c={};for(d in a)c[d]=e(a[d],b=b);return c},d=function(a,b,c){var d,e;for(null==b&&(b=1e3),null==c&&(c=64e3);;){if(a.params=f(a.params,b=b),a.environment=f(a.environment,b=b),a.session=f(a.session,b=b),e=JSON.stringify(a),e.length<c)return e;if(0===b)break;b=Math.floor(b/2)}throw d=new Error("airbrake-js: cannot jsonify notice (length="+e.length+" maxLength="+c+")"),d.params={json:e.slice(0,+Math.floor(b/2)+1||9e9)+"..."},d},b.exports=d},{"./truncate":6}],4:[function(a,b,c){var d;d=function(){var a,b,c,d,e,f;for(f=Array.prototype.slice.call(arguments),a=f.shift()||{},b=0,d=f.length;b<d;b++){e=f[b];for(c in e)Object.prototype.hasOwnProperty.call(e,c)&&(a[c]=e[c])}return a},b.exports=d},{}],5:[function(a,b,c){var d;d=function(){function a(a){var b,c;this._onResolved=[],this._onRejected=[],c=function(a){return function(){return a.resolve.apply(a,arguments)}}(this),b=function(a){return function(){return a.reject.apply(a,arguments)}}(this),null!=a&&a(c,b)}return a.prototype.then=function(a,b){return a&&(null!=this._resolvedWith&&a(this._resolvedWith),this._onResolved.push(a)),b&&(null!=this._rejectedWith&&b(this._resolvedWith),this._onRejected.push(b)),this},a.prototype.catch=function(a){return null!=this._rejectedWith&&a(this._rejectedWith),this._onRejected.push(a),this},a.prototype.resolve=function(){var a,b,c,d;for(this._resolvedWith=arguments,d=this._onResolved,b=0,c=d.length;b<c;b++)a=d[b],a.apply(this,this._resolvedWith);return this},a.prototype.reject=function(){var a,b,c,d;for(this._rejectedWith=arguments,d=this._onRejected,b=0,c=d.length;b<c;b++)a=d[b],a.apply(this,this._rejectedWith);return this},a}(),b.exports=d},{}],6:[function(a,b,c){var d,e;d=function(a,b){var c;try{return a[b]}catch(d){return void(c=d)}},e=function(a,b,c){var e,f,g,h,i;return null==b&&(b=1e3),null==c&&(c=5),h=0,g=[],i=[],f=function(a){var b,c,e,f,h;for(c=i.indexOf(a),f=[g[c]],b=e=h=c;h<=0?e<=0:e>=0;b=h<=0?++e:--e)i[b]&&d(i[b],f[0])===a&&(a=i[b],f.unshift(g[b]));return"~"+f.join(".")},(e=function(a,j,k){var l,m,n,o,p,q;if(null==j&&(j=""),null==k&&(k=0),h++,h>b)return"[Truncated]";if(null===a||void 0===a)return a;switch(typeof a){case"boolean":case"number":case"string":case"function":return a;case"object":break;default:return String(a)}if(a instanceof Boolean||a instanceof Number||a instanceof String||a instanceof Date||a instanceof RegExp)return a;if(i.indexOf(a)>=0)return"[Circular "+f(a)+"]";if(k++,k>c)return"[Truncated]";if(g.push(j),i.push(a),h--,"[object Array]"===Object.prototype.toString.apply(a)){for(l=[],n=o=0,p=a.length;o<p&&(m=a[n],h++,!(h>=b));n=++o)l.push(e(m,j=n,k));return l}l={};for(j in a)if(Object.prototype.hasOwnProperty.call(a,j)){if(h++,h>=b)break;q=d(a,j),void 0!==q&&(l[j]=e(q,j=j,k))}return l})(a)},b.exports=e},{}],7:[function(a,b,c){var d,e,f;e=[{name:"v8",re:/^\s*at\s(.+?)\s\((?:(?:(.+):(\d+):(\d+))|(.+))\)$/,fn:function(a){return{function:a[1],file:a[2]||a[5],line:a[3]&&parseInt(a[3],10)||0,column:a[4]&&parseInt(a[4],10)||0}}},{name:"firefox30",re:/^(.*)@(.+):(\d+):(\d+)$/,fn:function(a){var b,c,d,e;return d=a[1],c=a[2],b=/^(\S+)\s(line\s\d+\s>\seval.*)$/,(e=c.match(b))&&(d=d.length>0?d+" "+e[2]:e[2],c=e[1]),{function:d,file:c,line:parseInt(a[3],10),column:parseInt(a[4],10)}}},{name:"firefox14",re:/^(.*)@(.+):(\d+)$/,fn:function(a,b,c){var d;return d=0===b?c.columnNumber||0:0,{function:a[1],file:a[2],line:parseInt(a[3],10),column:d}}},{name:"v8-short",re:/^\s*at\s(.+):(\d+):(\d+)$/,fn:function(a){return{function:"",file:a[1],line:parseInt(a[2],10),column:parseInt(a[3],10)}}},{name:"phantomjs",re:/^\s*at\s(.+):(\d+)$/,fn:function(a){return{function:"",file:a[1],line:parseInt(a[2],10),column:0}}},{name:"default",re:/.+/,fn:function(a){return{function:a[0],file:"",line:0,column:0}}}],f=/^\S+:\s.+$/,d=function(a,b){var c,d,g,h,i,j,k,l,m,n,o,p,q,r,s;for(o="nostack",q=a.stack||"",l=q.split("\n"),c=[],d=g=0,i=l.length;g<i;d=++g)if(k=l[d],""!==k)for(h=0,j=e.length;h<j;h++)if(p=e[h],m=k.match(p.re)){o=p.name,c.push(p.fn(m,d,a));break}return("v8"===o||"v8-short"===o)&&c.length>0&&c[0].function.match(f)&&(c=c.slice(1)),0!==c.length||null==a.fileName&&null==a.lineNumber&&null==a.columnNumber||c.push({function:"",file:a.fileName||"",line:parseInt(a.lineNumber,10)||0,column:parseInt(a.columnNumber,10)||0}),0!==c.length||null==a.filename&&null==a.lineno&&null==a.column&&null==a.colno||c.push({function:"",file:a.filename||"",line:parseInt(a.lineno,10)||0,column:parseInt(a.column||a.colno,10)||0}),n=null!=a.message?a.message:String(a),null!=a.name&&""!==a.name?(r=a.name,n=r+": "+n):(s=/^Uncaught\s(.+?):\s.+$/,m=n.match(s),r=m?m[1]:""),b(o,{type:r,message:n,backtrace:c})},b.exports=d},{}],8:[function(a,b,c){(function(c){var d,e,f;e=a("../internal/jsonify_notice"),d=0,f=function(a,b,f){var g,h,i,j,k,l,m;return d++,g="airbrakeCb"+String(d),c[g]=function(b){var d;a.id=b.id,f.resolve(a);try{return delete c[g]}catch(e){return d=e,c[g]=void 0}},j=encodeURIComponent(e(a)),m=b.host+"/api/v3/projects/"+b.projectId+"/create-notice?key="+b.projectKey+"&callback="+g+"&body="+j,h=c.document,i=h.getElementsByTagName("head")[0],l=h.createElement("script"),l.src=m,k=function(){return i.removeChild(l)},l.onload=k,l.onerror=k,i.appendChild(l)},b.exports=f}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../internal/jsonify_notice":3}],9:[function(a,b,c){(function(c){var d,e;d=a("../internal/jsonify_notice"),e=function(a,b,e){var f,g,h;return h=b.host+"/api/v3/projects/"+b.projectId+"/create-notice?key="+b.projectKey,f=d(a),g=new c.XMLHttpRequest,g.open("POST",h,!0),g.send(f),g.onreadystatechange=function(){var b;if(4===g.readyState&&200===g.status)return b=JSON.parse(g.responseText),a.id=b.id,e.resolve(a)}},b.exports=e}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../internal/jsonify_notice":3}]},{},[1])(1)}),function(){var a={BD:{name:"Bangladesh",sub:{"BD-E":{type:"division",name:"Rajshahi"},"BD-D":{type:"division",name:"Khulna"},"BD-G":{type:"division",name:"Sylhet"},"BD-41":{type:"District",name:"Netrakona"},"BD-A":{type:"division",name:"Barisal"},"BD-C":{type:"division",name:"Dhaka"},"BD-B":{type:"division",name:"Chittagong"},"BD-46":{type:"District",name:"Nilphamari"},"BD-59":{type:"District",name:"Sirajganj"},"BD-55":{type:"District",name:"Rangpur"},"BD-47":{type:"District",name:"Noakhali"},"BD-60":{type:"District",name:"Sylhet"},"BD-49":{type:"District",name:"Pabna"},"BD-62":{type:"District",name:"Shariatpur"},"BD-F":{type:"division",name:"Rangpur"},"BD-64":{type:"District",name:"Thakurgaon"},"BD-22":{type:"District",name:"Jessore"},"BD-36":{type:"District",name:"Madaripur"},"BD-61":{type:"District",name:"Sunamganj"},"BD-23":{type:"District",name:"Jhenaidah"},"BD-06":{type:"District",name:"Barisal"},"BD-07":{type:"District",name:"Bhola"},"BD-04":{type:"District",name:"Brahmanbaria"},"BD-05":{type:"District",name:"Bagerhat"},"BD-02":{type:"District",name:"Barguna"},"BD-03":{type:"District",name:"Bogra"},"BD-01":{type:"District",name:"Bandarban"},"BD-24":{type:"District",name:"Jaipurhat"},"BD-25":{type:"District",name:"Jhalakati"},"BD-26":{type:"District",name:"Kishoreganj"},"BD-27":{type:"District",name:"Khulna"},"BD-20":{type:"District",name:"Habiganj"},"BD-21":{type:"District",name:"Jamalpur"},"BD-08":{type:"District",name:"Comilla"},"BD-09":{type:"District",name:"Chandpur"},"BD-35":{type:"District",name:"Munshiganj"},"BD-54":{type:"District",name:"Rajshahi"},"BD-33":{type:"District",name:"Manikganj"},"BD-58":{type:"District",name:"Satkhira"},"BD-32":{type:"District",name:"Lalmonirhat"},"BD-45":{type:"District",name:"Nawabganj"},"BD-31":{type:"District",name:"Lakshmipur"},"BD-34":{type:"District",name:"Mymensingh"},"BD-53":{type:"District",name:"Rajbari"},"BD-30":{type:"District",name:"Kushtia"},"BD-63":{type:"District",name:"Tangail"},"BD-28":{type:"District",name:"Kurigram"},"BD-44":{type:"District",name:"Natore"},"BD-29":{type:"District",name:"Khagrachari"},"BD-15":{type:"District",name:"Faridpur"},"BD-14":{type:"District",name:"Dinajpur"},"BD-17":{type:"District",name:"Gopalganj"},"BD-16":{type:"District",name:"Feni"},"BD-11":{type:"District",name:"Cox's Bazar"},"BD-10":{type:"District",name:"Chittagong"},"BD-13":{type:"District",name:"Dhaka"},"BD-12":{type:"District",name:"Chuadanga"},"BD-51":{type:"District",name:"Patuakhali"},"BD-50":{type:"District",name:"Pirojpur"},"BD-39":{type:"District",name:"Meherpur"},"BD-38":{type:"District",name:"Moulvibazar"},"BD-19":{type:"District",name:"Gaibandha"},"BD-18":{type:"District",name:"Gazipur"},"BD-57":{type:"District",name:"Sherpur"},"BD-52":{type:"District",name:"Panchagarh"},"BD-42":{type:"District",name:"Narsingdi"},"BD-48":{type:"District",name:"Naogaon"},"BD-43":{type:"District",name:"Narail"},"BD-37":{type:"District",name:"Magura"},"BD-40":{type:"District",name:"Narayanganj"},"BD-56":{type:"District",name:"Rangamati   Parbattya Chattagram"}}},BE:{name:"Belgium",sub:{"BE-VWV":{type:"Province",name:"West-Vlaanderen"},"BE-VAN":{type:"Province",name:"Antwerpen"},"BE-VLG":{type:"region",name:"Flemish Region"},"BE-VLI":{type:"Province",name:"Limburg"},"BE-WBR":{type:"Province",name:"Brabant Wallon"},"BE-VBR":{type:"Province",name:"Vlaams Brabant"},"BE-VOV":{type:"Province",name:"Oost-Vlaanderen"},"BE-WLG":{type:"Province",name:"Liège"},"BE-WLX":{type:"Province",name:"Luxembourg"},"BE-WHT":{type:"Province",name:"Hainaut"},"BE-WNA":{type:"Province",name:"Namur"},"BE-BRU":{type:"Capital Region",name:"Brussels"},"BE-WAL":{type:"region",name:"Wallonia"}}},BF:{name:"Burkina Faso",sub:{"BF-SEN":{type:"Province",name:"Séno"},"BF-KEN":{type:"Province",name:"Kénédougou"},"BF-BLK":{type:"Province",name:"Boulkiemdé"},"BF-NAM":{type:"Province",name:"Namentenga"},"BF-NAO":{type:"Province",name:"Nahouri"},"BF-BLG":{type:"Province",name:"Boulgou"},"BF-10":{type:"region",name:"Nord"},"BF-KAD":{type:"Province",name:"Kadiogo"},"BF-01":{type:"region",name:"Boucle du Mouhoun"},"BF-02":{type:"region",name:"Cascades"},"BF-03":{type:"region",name:"Centre"},"BF-04":{type:"region",name:"Centre-Est"},"BF-05":{type:"region",name:"Centre-Nord"},"BF-06":{type:"region",name:"Centre-Ouest"},"BF-07":{type:"region",name:"Centre-Sud"},"BF-08":{type:"region",name:"Est"},"BF-09":{type:"region",name:"Hauts-Bassins"},"BF-YAT":{type:"Province",name:"Yatenga"},"BF-PAS":{type:"Province",name:"Passoré"},"BF-YAG":{type:"Province",name:"Yagha"},"BF-IOB":{type:"Province",name:"Ioba"},"BF-GNA":{type:"Province",name:"Gnagna"},"BF-PON":{type:"Province",name:"Poni"},"BF-HOU":{type:"Province",name:"Houet"},"BF-LER":{type:"Province",name:"Léraba"},"BF-KMD":{type:"Province",name:"Komondjari"},"BF-SMT":{type:"Province",name:"Sanmatenga"},"BF-ZON":{type:"Province",name:"Zondoma"},"BF-MOU":{type:"Province",name:"Mouhoun"},"BF-COM":{type:"Province",name:"Comoé"},"BF-TUI":{type:"Province",name:"Tui"},"BF-SIS":{type:"Province",name:"Sissili"},"BF-GAN":{type:"Province",name:"Ganzourgou"},"BF-BGR":{type:"Province",name:"Bougouriba"},"BF-SOR":{type:"Province",name:"Sourou"},"BF-ZIR":{type:"Province",name:"Ziro"},"BF-KOW":{type:"Province",name:"Kourwéogo"},"BF-SOM":{type:"Province",name:"Soum"},"BF-KOT":{type:"Province",name:"Kouritenga"},"BF-KOS":{type:"Province",name:"Kossi"},"BF-12":{type:"region",name:"Sahel"},"BF-11":{type:"region",name:"Plateau-Central"},"BF-KOP":{type:"Province",name:"Koulpélogo"},"BF-ZOU":{type:"Province",name:"Zoundwéogo"},"BF-13":{type:"region",name:"Sud-Ouest"},"BF-LOR":{type:"Province",name:"Loroum"},"BF-BAL":{type:"Province",name:"Balé"},"BF-BAM":{type:"Province",name:"Bam"},"BF-BAN":{type:"Province",name:"Banwa"},"BF-OUB":{type:"Province",name:"Oubritenga"},"BF-OUD":{type:"Province",name:"Oudalan"},"BF-NAY":{type:"Province",name:"Nayala"},"BF-NOU":{type:"Province",name:"Noumbiel"},"BF-TAP":{type:"Province",name:"Tapoa"},"BF-BAZ":{type:"Province",name:"Bazèga"},"BF-SNG":{type:"Province",name:"Sanguié"},"BF-KMP":{type:"Province",name:"Kompienga"},"BF-GOU":{type:"Province",name:"Gourma"}}},BG:{name:"Bulgaria",sub:{"BG-14":{type:"Region",name:"Pernik"},"BG-15":{type:"Region",name:"Pleven"},"BG-16":{type:"Region",name:"Plovdiv"},"BG-17":{type:"Region",name:"Razgrad"},"BG-10":{type:"Region",name:"Kjustendil"},"BG-11":{type:"Region",name:"Lovech"},"BG-12":{type:"Region",name:"Montana"},"BG-13":{type:"Region",name:"Pazardzhik"},"BG-18":{type:"Region",name:"Ruse"},"BG-19":{type:"Region",name:"Silistra"},"BG-03":{type:"Region",name:"Varna"},"BG-02":{type:"Region",name:"Burgas"},"BG-27":{type:"Region",name:"Šumen"},"BG-07":{type:"Region",name:"Gabrovo"},"BG-06":{type:"Region",name:"Vratsa"},"BG-05":{type:"Region",name:"Vidin"},"BG-04":{type:"Region",name:"Veliko Tarnovo"},"BG-09":{type:"Region",name:"Kardzhali"},"BG-08":{type:"Region",name:"Dobrich"},"BG-28":{type:"Region",name:"Yambol"},"BG-25":{type:"Region",name:"Targovishte"},"BG-24":{type:"Region",name:"Stara Zagora"},"BG-01":{type:"Region",name:"Blagoevgrad"},"BG-26":{type:"Region",name:"Haskovo"},"BG-21":{type:"Region",name:"Smolyan"},"BG-20":{type:"Region",name:"Sliven"},"BG-23":{type:"Region",name:"Sofia"},"BG-22":{type:"Region",name:"Sofia-Grad"}}},BA:{name:"Bosnia and Herzegovina",sub:{"BA-BRC":{type:"District",name:"Brčko distrikt"},"BA-06":{type:"canton",name:"Srednjobosanski kanton"},"BA-08":{type:"canton",name:"Zapadnohercegova?ki kanton"},"BA-BIH":{type:"Entity",name:"Federacija Bosna i Hercegovina"},"BA-09":{type:"canton",name:"Kanton Sarajevo"},"BA-03":{type:"canton",name:"Tuzlanski kanton"},"BA-05":{type:"canton",name:"Bosansko-podrinjski kanton"},"BA-04":{type:"canton",name:"Zeni?ko-dobojski kanton"},"BA-07":{type:"canton",name:"Hercegova?ko-neretvanski kanton"},"BA-SRP":{type:"Entity",name:"Republika Srpska"},"BA-01":{type:"canton",name:"Unsko-sanski kanton"},"BA-10":{type:"canton",name:"Kanton br. 10 (Livanjski kanton)"},"BA-02":{type:"canton",name:"Posavski kanton"}}},BB:{name:"Barbados",sub:{"BB-11":{type:"Parish",name:"Saint Thomas"},"BB-10":{type:"Parish",name:"Saint Philip"},"BB-08":{type:"Parish",name:"Saint Michael"},"BB-09":{type:"Parish",name:"Saint Peter"},"BB-04":{type:"Parish",name:"Saint James"},"BB-05":{type:"Parish",name:"Saint John"},"BB-06":{type:"Parish",name:"Saint Joseph"},"BB-07":{type:"Parish",name:"Saint Lucy"},"BB-01":{type:"Parish",name:"Christ Church"},"BB-02":{type:"Parish",name:"Saint Andrew"},"BB-03":{type:"Parish",name:"Saint George"}}},BM:{name:"Bermuda",sub:{"BM-HA":{type:"Municipality",name:"Hamilton municipality"},"BM-PEM":{type:"Parish",name:"Pembroke"},"BM-HAM":{type:"Parish",name:"Hamilton"},"BM-SGE":{type:"Parish",name:"Saint George"},"BM-SG":{type:"Municipality",name:"Saint George municipality"},"BM-SOU":{type:"Parish",name:"Southampton"},"BM-PAG":{type:"Parish",name:"Paget"},"BM-SMI":{type:"Parish",name:"Smiths"},"BM-SAN":{type:"Parish",name:"Sandys"},"BM-WAR":{type:"Parish",name:"Warwick"},"BM-DEV":{type:"Parish",name:"Devonshire"}}},BN:{name:"Brunei Darussalam",sub:{"BN-TE":{type:"District",name:"Temburong"},"BN-BM":{type:"District",name:"Brunei-Muara"},"BN-TU":{type:"District",name:"Tutong"},"BN-BE":{type:"District",name:"Belait"}}},BO:{name:"Bolivia",sub:{"BO-B":{type:"Department",name:"El Beni"},"BO-C":{type:"Department",name:"Cochabamba"},"BO-N":{type:"Department",name:"Pando"},"BO-O":{type:"Department",name:"Oruro"},"BO-L":{type:"Department",name:"La Paz"},"BO-H":{type:"Department",name:"Chuquisaca"},"BO-T":{type:"Department",name:"Tarija"},"BO-S":{type:"Department",name:"Santa Cruz"},"BO-P":{type:"Department",name:"Potosí"}}},BH:{name:"Bahrain",sub:{"BH-13":{type:"Governorate",name:"Al Manamah (Al ‘Asimah)"},"BH-15":{type:"Governorate",name:"Al Muharraq"},"BH-14":{type:"Governorate",name:"Al Janubiyah"},"BH-17":{type:"Governorate",name:"Ash Shamaliyah"},"BH-16":{type:"Governorate",name:"Al Wustá"}}},BI:{name:"Burundi",sub:{"BI-BB":{type:"Province",name:"Bubanza"},"BI-MA":{type:"Province",name:"Makamba"},"BI-CI":{type:"Province",name:"Cibitoke"},"BI-RT":{type:"Province",name:"Rutana"},"BI-NG":{type:"Province",name:"Ngozi"},"BI-RY":{type:"Province",name:"Ruyigi"},"BI-CA":{type:"Province",name:"Cankuzo"},"BI-BM":{type:"Province",name:"Bujumbura Mairie"},"BI-BL":{type:"Province",name:"Bujumbura Rural"},"BI-BR":{type:"Province",name:"Bururi"},"BI-KI":{type:"Province",name:"Kirundo"},"BI-MW":{type:"Province",name:"Mwaro"},"BI-KR":{type:"Province",name:"Karuzi"},"BI-MU":{type:"Province",name:"Muramvya"},"BI-GI":{type:"Province",name:"Gitega"},"BI-MY":{type:"Province",name:"Muyinga"},"BI-KY":{type:"Province",name:"Kayanza"}}},BJ:{name:"Benin",sub:{"BJ-AK":{type:"Department",name:"Atakora"},"BJ-BO":{type:"Department",name:"Borgou"},"BJ-CO":{type:"Department",name:"Collines"},"BJ-AL":{type:"Department",name:"Alibori"},"BJ-MO":{type:"Department",name:"Mono"},"BJ-LI":{type:"Department",name:"Littoral"},"BJ-ZO":{type:"Department",name:"Zou"},"BJ-OU":{type:"Department",name:"Ouémé"},"BJ-PL":{type:"Department",name:"Plateau"},"BJ-DO":{type:"Department",name:"Donga"},"BJ-AQ":{type:"Department",name:"Atlantique"},"BJ-KO":{type:"Department",name:"Kouffo"}}},BT:{name:"Bhutan",sub:{"BT-15":{type:"District",name:"Thimphu"},"BT-41":{type:"District",name:"Trashigang"},"BT-GA":{type:"District",name:"Gasa"},"BT-32":{type:"District",name:"Trongsa"},"BT-34":{type:"District",name:"Zhemgang"},"BT-33":{type:"District",name:"Bumthang"},"BT-14":{type:"District",name:"Samtse"},"BT-31":{type:"District",name:"Sarpang"},"BT-TY":{type:"District",name:"Trashi Yangtse"},"BT-11":{type:"District",name:"Paro"},"BT-22":{type:"District",name:"Dagana"},"BT-13":{type:"District",name:"Ha"},"BT-12":{type:"District",name:"Chhukha"},"BT-42":{type:"District",name:"Monggar"},"BT-43":{type:"District",name:"Pemagatshel"},"BT-24":{type:"District",name:"Wangdue Phodrang"},"BT-45":{type:"District",name:"Samdrup Jongkha"},"BT-21":{type:"District",name:"Tsirang"},"BT-44":{type:"District",name:"Lhuentse"},"BT-23":{type:"District",name:"Punakha"}}},JM:{name:"Jamaica",sub:{"JM-12":{type:"Parish",name:"Manchester"},"JM-07":{type:"Parish",name:"Trelawny"},"JM-11":{type:"Parish",name:"Saint Elizabeth"},"JM-10":{type:"Parish",name:"Westmoreland"},"JM-01":{type:"Parish",name:"Kingston"},"JM-13":{type:"Parish",name:"Clarendon"},"JM-03":{type:"Parish",name:"Saint Thomas"},"JM-02":{type:"Parish",name:"Saint Andrew"},"JM-05":{type:"Parish",name:"Saint Mary"},"JM-04":{type:"Parish",name:"Portland"},"JM-14":{type:"Parish",name:"Saint Catherine"},"JM-06":{type:"Parish",name:"Saint Ann"},"JM-09":{type:"Parish",name:"Hanover"},"JM-08":{type:"Parish",name:"Saint James"}}},BW:{name:"Botswana",sub:{"BW-KW":{type:"District",name:"Kweneng"},"BW-SO":{type:"District",name:"Southern"},"BW-CE":{type:"District",name:"Central"},"BW-NW":{type:"District",name:"North-West"},"BW-KG":{type:"District",name:"Kgalagadi"},"BW-GH":{type:"District",name:"Ghanzi"},"BW-SE":{type:"District",name:"South-East"},"BW-NE":{type:"District",name:"North-East"},"BW-KL":{type:"District",name:"Kgatleng"}}},WS:{name:"Samoa",sub:{"WS-AA":{type:"District",name:"A'ana"},"WS-VF":{type:"District",name:"Va'a-o-Fonoti"},"WS-SA":{type:"District",name:"Satupa'itea"},"WS-FA":{type:"District",name:"Fa'asaleleaga"},"WS-VS":{type:"District",name:"Vaisigano"},"WS-AL":{type:"District",name:"Aiga-i-le-Tai"},"WS-GI":{type:"District",name:"Gagaifomauga"},"WS-PA":{type:"District",name:"Palauli"},"WS-AT":{type:"District",name:"Atua"},"WS-TU":{type:"District",name:"Tuamasaga"},"WS-GE":{type:"District",name:"Gaga'emauga"}}},BQ:{name:"Bonaire, Sint Eustatius and Saba",sub:{"BQ-SE":{type:"municipality",name:"Sint Eustatius"},"BQ-BO":{type:"municipality",name:"Bonaire"},"BQ-SA":{type:"municipality",name:"Saba"}}},BR:{name:"Brazil",sub:{"BR-RJ":{type:"state",name:"Rio de Janeiro"},"BR-BA":{type:"state",name:"Bahia"},"BR-SE":{type:"state",name:"Sergipe"},"BR-DF":{type:"federal district",name:"Distrito Federal"},"BR-SP":{type:"state",name:"São Paulo"},"BR-SC":{type:"state",name:"Santa Catarina"},"BR-RR":{type:"state",name:"Roraima"},"BR-RS":{type:"state",name:"Rio Grande do Sul"},"BR-AP":{type:"state",name:"Amapá"},"BR-CE":{type:"state",name:"Ceará"},"BR-GO":{type:"state",name:"Goiás"},"BR-AM":{type:"state",name:"Amazonas"},"BR-AL":{type:"state",name:"Alagoas"},"BR-AC":{type:"state",name:"Acre"},"BR-PI":{type:"state",name:"Piauí"},"BR-RN":{type:"state",name:"Rio Grande do Norte"},"BR-RO":{type:"state",name:"Rondônia"},"BR-MT":{type:"state",name:"Mato Grosso"},"BR-MS":{type:"state",name:"Mato Grosso do Sul"},"BR-PA":{type:"state",name:"Pará"},"BR-PB":{type:"state",name:"Paraíba"},"BR-ES":{type:"state",name:"Espírito Santo"},"BR-MA":{type:"state",name:"Maranhão"},"BR-PE":{type:"state",name:"Pernambuco"},"BR-MG":{type:"state",name:"Minas Gerais"},"BR-PR":{type:"state",name:"Paraná"},"BR-TO":{type:"state",name:"Tocantins"}}},BS:{name:"Bahamas",sub:{"BS-GT":{type:"District",name:"Green Turtle Cay"},"BS-SA":{type:"district",name:"South Andros"},"BS-EX":{type:"District",name:"Exuma"},"BS-CS":{type:"district",name:"Central Andros"},"BS-CK":{type:"district",name:"Crooked Island and Long Cay"},"BS-CI":{type:"District",name:"Cat Island"},"BS-GC":{type:"District",name:"Grand Cay"},"BS-EG":{type:"district",name:"East Grand Bahama"},"BS-CE":{type:"district",name:"Central Eleuthera"},"BS-RI":{type:"District",name:"Ragged Island"},"BS-RC":{type:"district",name:"Rum Cay"},"BS-AK":{type:"District",name:"Acklins  Islands"},"BS-MG":{type:"District",name:"Mayaguana"},"BS-IN":{type:"District",name:"Inagua"},"BS-MC":{type:"district",name:"Mangrove Cay"},"BS-MI":{type:"district",name:"Moore’s Island"},"BS-BY":{type:"district",name:"Berry Islands"},"BS-FP":{type:"district",name:"City of Freeport"},"BS-BP":{type:"district",name:"Black Point"},"BS-LI":{type:"District",name:"Long Island"},"BS-BI":{type:"District",name:"Bimini and Cat Cay"},"BS-WG":{type:"district",name:"West Grand Bahama"},"BS-NO":{type:"district",name:"North Abaco"},"BS-SO":{type:"district",name:"South Abaco"},"BS-NE":{type:"district",name:"North Eleuthera"},"BS-HT":{type:"district",name:"Hope Town"},"BS-SE":{type:"district",name:"South Eleuthera"},"BS-HI":{type:"District",name:"Harbour Island"},"BS-SS":{type:"district",name:"San Salvador"},"BS-SW":{type:"district",name:"Spanish Wells"},"BS-NS":{type:"district",name:"North Andros"},"BS-CO":{type:"district",name:"Central Abaco"}}},BY:{name:"Belarus",sub:{"BY-HM":{type:"city",name:"Horad Minsk"},"BY-BR":{type:"Region",name:"Brestskaya voblasts"},"BY-HO":{type:"Region",name:"Homyel'skaya voblasts"},"BY-MA":{type:"Region",name:"Mahilyowskaya voblasts"},"BY-MI":{type:"Region",name:"Minskaya voblasts"},"BY-VI":{type:"Region",name:"Vitsyebskaya voblasts"},"BY-HR":{type:"Region",name:"Hrodzenskaya voblasts"}}},BZ:{name:"Belize",sub:{"BZ-CY":{type:"District",name:"Cayo"},"BZ-CZL":{type:"District",name:"Corozal"},"BZ-SC":{type:"District",name:"Stann Creek"},"BZ-BZ":{type:"District",name:"Belize"},"BZ-TOL":{type:"District",name:"Toledo"},"BZ-OW":{type:"District",name:"Orange Walk"}}},RU:{name:"Russia",sub:{"RU-PNZ":{type:"administrative region",name:"Penzenskaya oblast'"},"RU-KRS":{type:"administrative region",name:"Kurskaya oblast'"},"RU-ULY":{type:"administrative region",name:"Ul'yanovskaya oblast'"},"RU-BEL":{type:"administrative region",name:"Belgorodskaya oblast'"},"RU-SAK":{type:"administrative region",name:"Sakhalinskaya oblast'"},"RU-KYA":{type:"administrative territory",name:"Krasnoyarskiy kray"},"RU-SAR":{type:"administrative region",name:"Saratovskaya oblast'"},"RU-IVA":{type:"administrative region",name:"Ivanovskaya oblast'"},"RU-LIP":{type:"administrative region",name:"Lipetskaya oblast'"},"RU-AST":{type:"administrative region",name:"Astrakhanskaya oblast'"},"RU-CE":{type:"republic",name:"Chechenskaya Respublika"},"RU-KHA":{type:"administrative territory",name:"Khabarovskiy kray"},"RU-ORE":{type:"administrative region",name:"Orenburgskaya oblast'"},"RU-VLG":{type:"administrative region",name:"Vologodskaya oblast'"},"RU-YAR":{type:"administrative region",name:"Yaroslavskaya oblast'"},"RU-NGR":{type:"administrative region",name:"Novgorodskaya oblast'"},"RU-KLU":{type:"administrative region",name:"Kaluzhskaya oblast'"},"RU-OMS":{type:"administrative region",
name:"Omskaya oblast'"},"RU-IRK":{type:"administrative region",name:"Irkutskaya oblast'"},"RU-ORL":{type:"administrative region",name:"Orlovskaya oblast'"},"RU-DA":{type:"republic",name:"Dagestan, Respublika"},"RU-PRI":{type:"administrative territory",name:"Primorskiy kray"},"RU-SAM":{type:"administrative region",name:"Samarskaya oblast'"},"RU-SVE":{type:"administrative region",name:"Sverdlovskaya oblast'"},"RU-KOS":{type:"administrative region",name:"Kostromskaya oblast'"},"RU-SPE":{type:"autonomous city",name:"Sankt-Peterburg"},"RU-NIZ":{type:"administrative region",name:"Nizhegorodskaya oblast'"},"RU-SA":{type:"republic",name:"Sakha, Respublika"},"RU-KHM":{type:"autonomous district",name:"Khanty-Mansiyskiy avtonomnyy okrug"},"RU-LEN":{type:"administrative region",name:"Leningradskaya oblast'"},"RU-CHE":{type:"administrative region",name:"Chelyabinskaya oblast'"},"RU-YAN":{type:"autonomous district",name:"Yamalo-Nenetskiy avtonomnyy okrug"},"RU-BA":{type:"republic",name:"Bashkortostan, Respublika"},"RU-SE":{type:"republic",name:"Severnaya Osetiya, Respublika"},"RU-MOS":{type:"administrative region",name:"Moskovskaya oblast'"},"RU-TOM":{type:"administrative region",name:"Tomskaya oblast'"},"RU-KGD":{type:"administrative region",name:"Kaliningradskaya oblast'"},"RU-MOW":{type:"autonomous city",name:"Moskva"},"RU-KAM":{type:"administrative territory",name:"Kamchatskaya oblast'"},"RU-ARK":{type:"administrative region",name:"Arkhangel'skaya oblast'"},"RU-BU":{type:"republic",name:"Buryatiya, Respublika"},"RU-KEM":{type:"administrative region",name:"Kemerovskaya oblast'"},"RU-CHU":{type:"autonomous district",name:"Chukotskiy avtonomnyy okrug"},"RU-UD":{type:"republic",name:"Udmurtskaya Respublika"},"RU-KGN":{type:"administrative region",name:"Kurganskaya oblast'"},"RU-TUL":{type:"administrative region",name:"Tul'skaya oblast'"},"RU-KIR":{type:"administrative region",name:"Kirovskaya oblast'"},"RU-KR":{type:"republic",name:"Kareliya, Respublika"},"RU-ME":{type:"republic",name:"Mariy El, Respublika"},"RU-IN":{type:"republic",name:"Ingushskaya Respublika"},"RU-MAG":{type:"administrative region",name:"Magadanskaya oblast'"},"RU-MO":{type:"republic",name:"Mordoviya, Respublika"},"RU-TA":{type:"republic",name:"Tatarstan, Respublika"},"RU-ZAB":{type:"administrative territory",name:"Zabajkal'skij kraj"},"RU-RYA":{type:"administrative region",name:"Ryazanskaya oblast'"},"RU-NEN":{type:"autonomous district",name:"Nenetskiy avtonomnyy okrug"},"RU-KB":{type:"republic",name:"Kabardino-Balkarskaya Respublika"},"RU-ALT":{type:"administrative territory",name:"Altayskiy kray"},"RU-STA":{type:"administrative territory",name:"Stavropol'skiy kray"},"RU-MUR":{type:"administrative region",name:"Murmanskaya oblast'"},"RU-VOR":{type:"administrative region",name:"Voronezhskaya oblast'"},"RU-PSK":{type:"administrative region",name:"Pskovskaya oblast'"},"RU-TVE":{type:"administrative region",name:"Tverskaya oblast'"},"RU-VGG":{type:"administrative region",name:"Volgogradskaya oblast'"},"RU-KK":{type:"republic",name:"Khakasiya, Respublika"},"RU-KL":{type:"republic",name:"Kalmykiya, Respublika"},"RU-X1~":{type:"",name:"Komi-Permyak"},"RU-KO":{type:"republic",name:"Komi, Respublika"},"RU-TYU":{type:"administrative region",name:"Tyumenskaya oblast'"},"RU-TAM":{type:"administrative region",name:"Tambovskaya oblast'"},"RU-TY":{type:"republic",name:"Tyva, Respublika"},"RU-NVS":{type:"administrative region",name:"Novosibirskaya oblast'"},"RU-AD":{type:"republic",name:"Adygeya, Respublika"},"RU-PER":{type:"administrative territory",name:"Perm"},"RU-ROS":{type:"administrative region",name:"Rostovskaya oblast'"},"RU-AMU":{type:"administrative region",name:"Amurskaya oblast'"},"RU-AL":{type:"republic",name:"Altay, Respublika"},"RU-KC":{type:"republic",name:"Karachayevo-Cherkesskaya Respublika"},"RU-KDA":{type:"administrative territory",name:"Krasnodarskiy kray"},"RU-YEV":{type:"autonomous region",name:"Yevreyskaya avtonomnaya oblast'"},"RU-VLA":{type:"administrative region",name:"Vladimirskaya oblast'"},"RU-BRY":{type:"administrative region",name:"Bryanskaya oblast'"},"RU-SMO":{type:"administrative region",name:"Smolenskaya oblast'"},"RU-CU":{type:"republic",name:"Chuvashskaya Respublika"}}},RW:{name:"Rwanda",sub:{"RW-03":{type:"province",name:"Nord"},"RW-02":{type:"province",name:"Est"},"RW-01":{type:"province",name:"Ville de Kigali"},"RW-05":{type:"province",name:"Sud"},"RW-04":{type:"province",name:"Ouest"}}},RS:{name:"Serbia",sub:{"RS-07":{type:"district",name:"Sremski okrug"},"RS-06":{type:"district",name:"Južnobanatski okrug"},"RS-05":{type:"district",name:"Zapadnobaèki okrug"},"RS-04":{type:"district",name:"Južnobanatski okrug"},"RS-03":{type:"district",name:"Severnobanatski okrug"},"RS-02":{type:"district",name:"Srednjebanatski okrug"},"RS-01":{type:"district",name:"Severnobački okrug"},"RS-00":{type:"city",name:"Belgrade"},"RS-09":{type:"district",name:"Kolubarski okrug"},"RS-08":{type:"district",name:"Mačvanski okrug"},"RS-29":{type:"district",name:"Kosovsko-Pomoravski okrug"},"RS-28":{type:"district",name:"Kosovsko-Mitrovački okrug"},"RS-21":{type:"district",name:"Toplièki okrug"},"RS-20":{type:"district",name:"Nišavski okrug"},"RS-23":{type:"district",name:"Jablanički okrug"},"RS-22":{type:"district",name:"Pirotski okrug"},"RS-25":{type:"district",name:"Kosovski okrug"},"RS-24":{type:"district",name:"Pčinjski okrug"},"RS-27":{type:"district",name:"Prizrenski okrug"},"RS-26":{type:"district",name:"Pećki okrug"},"RS-10":{type:"district",name:"Podunavski okrug"},"RS-11":{type:"district",name:"Braničevski okrug"},"RS-12":{type:"district",name:"Šumadijski okrug"},"RS-13":{type:"district",name:"Pomoravski okrug"},"RS-14":{type:"district",name:"Borski okrug"},"RS-15":{type:"district",name:"Zajeèarski okrug"},"RS-16":{type:"district",name:"Zlatiborski okrug"},"RS-17":{type:"district",name:"Moravički okrug"},"RS-18":{type:"district",name:"Raška okrug"},"RS-19":{type:"district",name:"Rasinski okrug"}}},TL:{name:"Timor-Leste",sub:{"TL-ER":{type:"District",name:"Ermera"},"TL-LA":{type:"District",name:"Lautem"},"TL-OE":{type:"District",name:"Oecussi"},"TL-AN":{type:"District",name:"Ainaro"},"TL-AL":{type:"District",name:"Aileu"},"TL-MF":{type:"District",name:"Manufahi"},"TL-MT":{type:"District",name:"Manatuto"},"TL-VI":{type:"District",name:"Viqueque"},"TL-BO":{type:"District",name:"Bobonaro"},"TL-CO":{type:"District",name:"Cova Lima"},"TL-BA":{type:"District",name:"Baucau"},"TL-LI":{type:"District",name:"Liquiça"},"TL-DI":{type:"District",name:"Díli"}}},TM:{name:"Turkmenistan",sub:{"TM-S":{type:"City",name:""},"TM-L":{type:"region",name:"Lebap"},"TM-M":{type:"region",name:"Mary"},"TM-D":{type:"region",name:"Dasoguz"},"TM-B":{type:"region",name:"Balkan"},"TM-A":{type:"region",name:"Ahal"}}},TJ:{name:"Tajikistan",sub:{"TJ-GB":{type:"autonomous region",name:"Gorno-Badakhshan"},"TJ-SU":{type:"region",name:"Sughd"},"TJ-KT":{type:"region",name:"Khatlon"},"Tj-X1~":{type:"city",name:""}}},RO:{name:"Romania",sub:{"RO-SB":{type:"County",name:"Sibiu"},"RO-DB":{type:"County",name:"Dâmbovita"},"RO-SM":{type:"County",name:"Satu Mare"},"RO-SJ":{type:"County",name:"Salaj"},"RO-DJ":{type:"County",name:"Dolj"},"RO-HD":{type:"County",name:"Hunedoara"},"RO-SV":{type:"County",name:"Suceava"},"RO-B":{type:"City",name:"Bucuresti"},"RO-HR":{type:"County",name:"Harghita"},"RO-VS":{type:"County",name:"Vaslui"},"RO-NT":{type:"County",name:"Neamt"},"RO-CV":{type:"County",name:"Covasna"},"RO-CT":{type:"County",name:"Constanta"},"RO-CS":{type:"County",name:"Caras-Severin"},"RO-GR":{type:"County",name:"Giurgiu"},"RO-VN":{type:"County",name:"Vrancea"},"RO-AR":{type:"County",name:"Arad"},"RO-GJ":{type:"County",name:"Gorj"},"RO-GL":{type:"County",name:"Galati"},"RO-CL":{type:"County",name:"Calarasi"},"RO-AG":{type:"County",name:"Arges"},"RO-CJ":{type:"County",name:"Cluj"},"RO-AB":{type:"County",name:"Alba"},"RO-PH":{type:"County",name:"Prahova"},"RO-TR":{type:"County",name:"Teleorman"},"RO-OT":{type:"County",name:"Olt"},"RO-IS":{type:"County",name:"Iasi"},"RO-VL":{type:"County",name:"Vâlcea"},"RO-MS":{type:"County",name:"Mures"},"RO-MH":{type:"County",name:"Mehedinti"},"RO-IF":{type:"County",name:"Ilfov"},"RO-MM":{type:"County",name:"Maramures"},"RO-IL":{type:"County",name:"Ialomita"},"RO-TM":{type:"County",name:"Timis"},"RO-TL":{type:"County",name:"Tulcea"},"RO-BT":{type:"County",name:"Botosani"},"RO-BV":{type:"County",name:"Brasov"},"RO-BR":{type:"County",name:"Braila"},"RO-BZ":{type:"County",name:"Buzau"},"RO-BC":{type:"County",name:"Bacau"},"RO-BN":{type:"County",name:"Bistrita-Nasaud"},"RO-BH":{type:"County",name:"Bihor"}}},GW:{name:"Guinea-Bissau",sub:{"GW-BL":{type:"region",name:"Bolama"},"GW-BM":{type:"region",name:"Biombo"},"GW-CA":{type:"region",name:"Cacheu"},"GW-QU":{type:"region",name:"Quinara"},"GW-S":{type:"province",name:"Sul"},"GW-OI":{type:"region",name:"Oio"},"GW-L":{type:"province",name:"Leste"},"GW-N":{type:"province",name:"Norte"},"GW-BA":{type:"region",name:"Bafatá"},"GW-TO":{type:"region",name:"Tombali"},"GW-GA":{type:"region",name:"Gabú"},"GW-BS":{type:"autonomous sector",name:"Bissau"}}},GT:{name:"Guatemala",sub:{"GT-SO":{type:"Department",name:"Sololá"},"GT-SM":{type:"Department",name:"San Marcos"},"GT-JA":{type:"Department",name:"Jalapa"},"GT-BV":{type:"Department",name:"Baja Verapaz"},"GT-QZ":{type:"Department",name:"Quetzaltenango"},"GT-SA":{type:"Department",name:"Sacatepéquez"},"GT-JU":{type:"Department",name:"Jutiapa"},"GT-HU":{type:"Department",name:"Huehuetenango"},"GT-QC":{type:"Department",name:"Quiché"},"GT-SU":{type:"Department",name:"Suchitepéquez"},"GT-SR":{type:"Department",name:"Santa Rosa"},"GT-ZA":{type:"Department",name:"Zacapa"},"GT-RE":{type:"Department",name:"Retalhuleu"},"GT-PE":{type:"Department",name:"Petén"},"GT-CQ":{type:"Department",name:"Chiquimula"},"GT-TO":{type:"Department",name:"Totonicapán"},"GT-CM":{type:"Department",name:"Chimaltenango"},"GT-IZ":{type:"Department",name:"Izabal"},"GT-PR":{type:"Department",name:"El Progreso"},"GT-AV":{type:"Department",name:"Alta Verapaz"},"GT-GU":{type:"Department",name:"Guatemala"},"GT-ES":{type:"Department",name:"Escuintla"}}},GR:{name:"Greece",sub:{"GR-85":{type:"department",name:"Chios"},"GR-84":{type:"department",name:"Samos"},"GR-64":{type:"department",name:"Chalkidiki"},"GR-81":{type:"department",name:"Dodekanisos"},"GR-83":{type:"department",name:"Lesvos"},"GR-82":{type:"department",name:"Kyklades"},"GR-72":{type:"department",name:"Xanthi"},"GR-54":{type:"department",name:"Thessaloniki"},"GR-62":{type:"department",name:"Serres"},"GR-61":{type:"department",name:"Pieria"},"GR-73":{type:"department",name:"Rodopi"},"GR-44":{type:"department",name:"Trikala"},"GR-52":{type:"department",name:"Drama"},"GR-53":{type:"department",name:"Imathia"},"GR-51":{type:"department",name:"Grevena"},"GR-56":{type:"department",name:"Kastoria"},"GR-31":{type:"department",name:"Arta"},"GR-32":{type:"department",name:"Thesprotia"},"GR-33":{type:"department",name:"Ioannina"},"GR-71":{type:"department",name:"Evros"},"GR-58":{type:"department",name:"Kozani"},"GR-59":{type:"department",name:"Pella"},"GR-34":{type:"department",name:"Preveza"},"GR-16":{type:"department",name:"Lakonia"},"GR-17":{type:"department",name:"Messinia"},"GR-14":{type:"department",name:"Ileia"},"GR-15":{type:"department",name:"Korinthia"},"GR-12":{type:"department",name:"Arkadia"},"GR-13":{type:"department",name:"Achaïa"},"GR-11":{type:"department",name:"Argolida"},"GR-L":{type:"administrative regions",name:"Notio Aigaio"},"GR-94":{type:"department",name:"Chania"},"GR-92":{type:"department",name:"Lasithi"},"GR-93":{type:"department",name:"Rethymno"},"GR-91":{type:"department",name:"Irakleio"},"GR-A1":{type:"department",name:"Attiki"},"GR-23":{type:"department",name:"Kefallonia"},"GR-55":{type:"department",name:"Kavala"},"GR-22":{type:"department",name:"Kerkyra"},"GR-21":{type:"department",name:"Zakynthos"},"GR-57":{type:"department",name:"Kilkis"},"GR-41":{type:"department",name:"Karditsa"},"GR-M":{type:"administrative regions",name:"Kriti"},"GR-43":{type:"department",name:"Magnisia"},"GR-42":{type:"department",name:"Larisa"},"GR-H":{type:"administrative regions",name:"Sterea Ellada"},"GR-I":{type:"administrative regions",name:"Attiki"},"GR-69":{type:"self-governed part",name:"Agio Oros"},"GR-K":{type:"administrative regions",name:"Voreio Aigaio"},"GR-D":{type:"administrative regions",name:"Ipeiros"},"GR-E":{type:"administrative regions",name:"Thessalia"},"GR-F":{type:"administrative regions",name:"Ionia Nisia"},"GR-G":{type:"administrative regions",name:"Dytiki Ellada"},"GR-63":{type:"department",name:"Florina"},"GR-A":{type:"administrative regions",name:"Anatoliki Makedonia kai Thraki"},"GR-B":{type:"administrative regions",name:"Kentriki Makedonia"},"GR-C":{type:"administrative regions",name:"Dytiki Makedonia"},"GR-05":{type:"department",name:"Evrytania"},"GR-04":{type:"department",name:"Evvoia"},"GR-07":{type:"department",name:"Fokida"},"GR-06":{type:"department",name:"Fthiotida"},"GR-01":{type:"department",name:"Aitolia kai Akarnania"},"GR-J":{type:"administrative regions",name:"Peloponnisos"},"GR-03":{type:"department",name:"Voiotia"},"GR-24":{type:"department",name:"Lefkada"}}},GQ:{name:"Equatorial Guinea",sub:{"GQ-LI":{type:"province",name:"Litoral"},"GQ-C":{type:"region",name:"Región Continental"},"GQ-BN":{type:"province",name:"Bioko Norte"},"GQ-AN":{type:"province",name:"Annobón"},"GQ-I":{type:"region",name:"Región Insular"},"GQ-KN":{type:"province",name:"Kie-Ntem"},"GQ-BS":{type:"province",name:"Bioko Sur"},"GQ-CS":{type:"province",name:"Centro Sur"},"GQ-WN":{type:"province",name:"Wele-Nzás"}}},JP:{name:"Japan",sub:{"JP-37":{type:"Perfecture",name:"Kagawa"},"JP-36":{type:"Perfecture",name:"Tokusima"},"JP-35":{type:"Perfecture",name:"Yamaguti"},"JP-34":{type:"Perfecture",name:"Hirosima"},"JP-33":{type:"Perfecture",name:"Okayama"},"JP-32":{type:"Perfecture",name:"Simane"},"JP-31":{type:"Perfecture",name:"Tottori"},"JP-30":{type:"Perfecture",name:"Wakayama"},"JP-39":{type:"Perfecture",name:"Kôti"},"JP-38":{type:"Perfecture",name:"Ehime"},"JP-19":{type:"Perfecture",name:"Yamanasi"},"JP-18":{type:"Perfecture",name:"Hukui"},"JP-11":{type:"Perfecture",name:"Saitama"},"JP-10":{type:"Perfecture",name:"Gunma"},"JP-13":{type:"Metropolis",name:"Tôkyô"},"JP-12":{type:"Perfecture",name:"Tiba"},"JP-15":{type:"Perfecture",name:"Niigata"},"JP-14":{type:"Perfecture",name:"Kanagawa"},"JP-17":{type:"Perfecture",name:"Isikawa"},"JP-16":{type:"Perfecture",name:"Toyama"},"JP-20":{type:"Perfecture",name:"Nagano"},"JP-21":{type:"Perfecture",name:"Gihu"},"JP-22":{type:"Perfecture",name:"Sizuoka"},"JP-23":{type:"Perfecture",name:"Aiti"},"JP-24":{type:"Perfecture",name:"Mie"},"JP-25":{type:"Perfecture",name:"Siga"},"JP-26":{type:"Urban Perfecture",name:"Kyôto"},"JP-27":{type:"Urban Perfecture",name:"Ôsaka"},"JP-28":{type:"Perfecture",name:"Hyôgo"},"JP-29":{type:"Perfecture",name:"Nara"},"JP-46":{type:"Perfecture",name:"Kagosima"},"JP-47":{type:"Perfecture",name:"Okinawa"},"JP-08":{type:"Perfecture",name:"Ibaraki"},"JP-45":{type:"Perfecture",name:"Miyazaki"},"JP-42":{type:"Perfecture",name:"Nagasaki"},"JP-43":{type:"Perfecture",name:"Kumamoto"},"JP-40":{type:"Perfecture",name:"Hukuoka"},"JP-41":{type:"Perfecture",name:"Saga"},"JP-02":{type:"Perfecture",name:"Aomori"},"JP-03":{type:"Perfecture",name:"Iwate"},"JP-01":{type:"Territory",name:"Hokkaidô"},"JP-06":{type:"Perfecture",name:"Yamagata"},"JP-07":{type:"Perfecture",name:"Hukusima"},"JP-04":{type:"Perfecture",name:"Miyagi"},"JP-05":{type:"Perfecture",name:"Akita"},"JP-44":{type:"Perfecture",name:"Ôita"},"JP-09":{type:"Perfecture",name:"Totigi"}}},GY:{name:"Guyana",sub:{"GY-UT":{type:"Region",name:"Upper Takutu-Upper Essequibo"},"GY-MA":{type:"Region",name:"Mahaica-Berbice"},"GY-PM":{type:"Region",name:"Pomeroon-Supenaam"},"GY-UD":{type:"Region",name:"Upper Demerara-Berbice"},"GY-ES":{type:"Region",name:"Essequibo Islands-West Demerara"},"GY-EB":{type:"Region",name:"East Berbice-Corentyne"},"GY-PT":{type:"Region",name:"Potaro-Siparuni"},"GY-CU":{type:"Region",name:"Cuyuni-Mazaruni"},"GY-BA":{type:"Region",name:"Barima-Waini"},"GY-DE":{type:"Region",name:"Demerara-Mahaica"}}},GE:{name:"Georgia",sub:{"GE-GU":{type:"region",name:"Guria"},"GE-SK":{type:"region",name:"Shida Kartli"},"GE-SJ":{type:"region",name:"Samtskhe-Javakheti"},"GE-AB":{type:"autonomous republic",name:"Abkhazia"},"GE-MM":{type:"region",name:"Mtskheta-Mtianeti"},"GE-AJ":{type:"autonomous republic",name:"Ajaria"},"GE-TB":{type:"city",name:"Tbilisi"},"GE-KA":{type:"region",name:"Kakheti"},"GE-IM":{type:"region",name:"Imereti"},"GE-SZ":{type:"region",name:"Samegrelo-Zemo Svaneti"},"GE-KK":{type:"region",name:"Kvemo Kartli"},"GE-RL":{type:"region",name:"Racha-Lechkhumi  Kvemo Svaneti"}}},GD:{name:"Grenada",sub:{"GD-03":{type:"Parish",name:"Saint George"},"GD-02":{type:"Parish",name:"Saint David"},"GD-01":{type:"Parish",name:"Saint Andrew"},"GD-06":{type:"Parish",name:"Saint Patrick"},"GD-05":{type:"Parish",name:"Saint Mark"},"GD-04":{type:"Parish",name:"Saint John"},"GD-10":{type:"Dependency",name:"Southern Grenadine Islands"}}},GB:{name:"United Kingdom",sub:{"GB-TRF":{type:"metropolitan district",name:"Trafford"},"GB-WRX":{type:"unitary authority (Wales)",name:"Wrexham"},"GB-BEN":{type:"borough",name:"Brent"},"GB-HRW":{type:"borough",name:"Harrow"},"GB-WRT":{type:"unitary authority",name:"Warrington"},"GB-LBH":{type:"borough",name:"Lambeth"},"GB-DAL":{type:"unitary authority",name:"Darlington"},"GB-WRL":{type:"metropolitan district",name:"Wirral"},"GB-MYL":{type:"district council area (Northern Ireland)",name:"Moyle"},"GB-BEX":{type:"borough",name:"Bexley"},"GB-BUR":{type:"metropolitan district",name:"Bury"},"GB-FER":{type:"district council area (Northern Ireland)",name:"Fermanagh"},"GB-NBL":{type:"unitary authority",name:"Northumberland"},"GB-DRY":{type:"district council area (Northern Ireland)",name:"Derry"},"GB-CKF":{type:"district council area (Northern Ireland)",name:"Carrickfergus"},"GB-ERY":{type:"unitary authority",name:"East Riding of Yorkshire"},"GB-HCK":{type:"borough",name:"Hackney"},"GB-CRY":{type:"borough",name:"Croydon"},"GB-ABE":{type:"council area (Scotland)",name:"Aberdeen City"},"GB-ABD":{type:"council area (Scotland)",name:"Aberdeenshire"},"GB-CKT":{type:"district council area (Northern Ireland)",name:"Cookstown"},"GB-ERW":{type:"council area (Scotland)",name:"East Renfrewshire"},"GB-HIL":{type:"borough",name:"Hillingdon"},"GB-NLN":{type:"unitary authority",name:"North Lincolnshire"},"GB-WSX":{type:"two-tier county",name:"West Sussex"},"GB-BIR":{type:"metropolitan district",name:"Birmingham"},"GB-WBK":{type:"unitary authority",name:"West Berkshire"},"GB-EDU":{type:"council area (Scotland)",name:"East Dunbartonshire"},"GB-WSM":{type:"borough",name:"Westminster"},"GB-STS":{type:"two-tier county",name:"Staffordshire"},"GB-HRT":{type:"two-tier county",name:"Hertfordshire"},"GB-LSB":{type:"district council area (Northern Ireland)",name:"Lisburn"},"GB-EDH":{type:"council area (Scotland)",name:"Edinburgh, City of"},"GB-HRY":{type:"borough",name:"Haringey"},"GB-LAN":{type:"two-tier county",name:"Lancashire"},"GB-RIC":{type:"borough",name:"Richmond upon Thames"},"GB-LRN":{type:"district council area (Northern Ireland)",name:"Larne"},"GB-ZET":{type:"council area (Scotland)",name:"Shetland Islands"},"GB-ELS":{type:"council area (Scotland)",name:"Eilean Siar"},"GB-NTA":{type:"district council area (Northern Ireland)",name:"Newtownabbey"},"GB-SRY":{type:"two-tier county",name:"Surrey"},"GB-BMH":{type:"unitary authority",name:"Bournemouth"},"GB-NTL":{type:"unitary authority (Wales)",name:"Neath Port Talbot"},"GB-FLN":{type:"unitary authority (Wales)",name:"Flintshire"},"GB-NET":{type:"metropolitan district",name:"Newcastle upon Tyne"},"GB-NTH":{type:"two-tier county",name:"Northamptonshire"},"GB-NTT":{type:"two-tier county",name:"Nottinghamshire"},"GB-ESX":{type:"two-tier county",name:"East Sussex"},"GB-MRT":{type:"borough",name:"Merton"},"GB-OXF":{type:"two-tier county",name:"Oxfordshire"},"GB-MRY":{type:"council area (Scotland)",name:"Moray"},"GB-ESS":{type:"two-tier county",name:"Essex"},"GB-SOS":{type:"unitary authority",name:"Southend-on-Sea"},"GB-PEM":{type:"unitary authority (Wales)",name:"Pembrokeshire"},"GB-NTY":{type:"metropolitan district",name:"North Tyneside"},"GB-CHS":{type:"",name:"Cheshire"},"GB-NEL":{type:"unitary authority",name:"North East Lincolnshire"},"GB-HAL":{type:"unitary authority",name:"Halton"},"GB-RFW":{type:"council area (Scotland)",name:"Renfrewshire"},"GB-LUT":{type:"unitary authority",name:"Luton"},"GB-WOK":{type:"unitary authority",name:"Wokingham"},"GB-WOR":{type:"two-tier county",name:"Worcestershire"},"GB-HLD":{type:"council area (Scotland)",name:"Highland"},"GB-MFT":{type:"district council area (Northern Ireland)",name:"Magherafelt"},"GB-NSM":{type:"unitary authority",name:"North Somerset"},"GB-LDS":{type:"metropolitan district",name:"Leeds"},"GB-KWL":{type:"metropolitan district",name:"Knowsley"},"GB-SOM":{type:"two-tier county",name:"Somerset"},"GB-AGY":{type:"unitary authority (Wales)",name:"Isle of Anglesey"},"GB-BST":{type:"unitary authority",name:"Bristol, City of"},"GB-EAL":{type:"borough",name:"Ealing"},"GB-RDB":{type:"borough",name:"Redbridge"},"GB-CSR":{type:"district council area (Northern Ireland)",name:"Castlereagh"},"GB-RDG":{type:"unitary authority",name:"Reading"},"GB-CMA":{type:"two-tier county",name:"Cumbria"},"GB-CMD":{type:"borough",name:"Camden"},"GB-MON":{type:"unitary authority (Wales)",name:"Monmouthshire"},"GB-OLD":{type:"metropolitan district",name:"Oldham"},"GB-CON":{type:"unitary authority",name:"Cornwall"},"GB-CMN":{type:"unitary authority (Wales)",name:"Carmarthenshire"},"GB-EAY":{type:"council area (Scotland)",name:"East Ayrshire"},"GB-HEF":{type:"unitary authority",name:"Herefordshire, County of"},"GB-ROT":{type:"metropolitan district",name:"Rotherham"},"GB-NAY":{type:"council area (Scotland)",name:"North Ayrshire"},"GB-BBD":{type:"unitary authority",name:"Blackburn with Darwen"},"GB-TOF":{type:"unitary authority (Wales)",name:"Torfaen"},"GB-WDU":{type:"council area (Scotland)",name:"West Dunbartonshire"},"GB-WLL":{type:"metropolitan district",name:"Walsall"},"GB-WLN":{type:"council area (Scotland)",name:"West Lothian"},"GB-GRE":{type:"borough",name:"Greenwich"},"GB-MIK":{type:"unitary authority",name:"Milton Keynes"},"GB-KEC":{type:"borough",name:"Kensington and Chelsea"},"GB-MAN":{type:"metropolitan district",name:"Manchester"},"GB-WLV":{type:"metropolitan district",name:"Wolverhampton"},"GB-WLS":{type:"principality",name:"Wales"},"GB-ELN":{type:"council area (Scotland)",name:"East Lothian"},"GB-KIR":{type:"metropolitan district",name:"Kirklees"},"GB-STH":{type:"unitary authority",name:"Southampton"},"GB-KEN":{type:"two-tier county",name:"Kent"},"GB-STY":{type:"metropolitan district",name:"South Tyneside"},"GB-LCE":{type:"unitary authority",name:"Leicester"},"GB-ARM":{type:"district council area (Northern Ireland)",name:"Armagh"},"GB-BKM":{type:"two-tier county",name:"Buckinghamshire"},"GB-SLG":{type:"unitary authority",name:"Slough"},"GB-SLF":{type:"metropolitan district",name:"Salford"},"GB-ORK":{type:"council area (Scotland)",name:"Orkney Islands"},"GB-ARD":{type:"district council area (Northern Ireland)",name:"Ards"},"GB-SLK":{type:"council area (Scotland)",name:"South Lanarkshire"},"GB-BRY":{type:"borough",name:"Bromley"},"GB-STT":{type:"unitary authority",name:"Stockton-on-Tees"},"GB-POL":{type:"unitary authority",name:"Poole"},"GB-BRC":{type:"unitary authority",name:"Bracknell Forest"},"GB-SHN":{type:"metropolitan district",name:"St. Helens"},"GB-POW":{type:"unitary authority (Wales)",name:"Powys"},"GB-KTT":{type:"borough",name:"Kingston upon Thames"},"GB-BRD":{type:"metropolitan district",name:"Bradford"},"GB-CRF":{type:"unitary authority (Wales)",name:"Cardiff"},"GB-STB":{type:"district council area (Northern Ireland)",name:"Strabane"},"GB-STE":{type:"unitary authority",name:"Stoke-on-Trent"},"GB-DBY":{type:"two-tier county",name:"Derbyshire"},"GB-STG":{type:"council area (Scotland)",name:"Stirling"},"GB-AGB":{type:"council area (Scotland)",name:"Argyll and Bute"},"GB-DEV":{type:"two-tier county",name:"Devon"},"GB-WIL":{type:"unitary authority",name:"Wiltshire"},"GB-DER":{type:"unitary authority",name:"Derby"},"GB-HNS":{type:"borough",name:"Hounslow"},"GB-SAW":{type:"metropolitan district",name:"Sandwell"},"GB-PLY":{type:"unitary authority",name:"Plymouth"},"GB-NIR":{type:"province",name:"Northern Ireland"},"GB-THR":{type:"unitary authority",name:"Thurrock"},"GB-BAS":{type:"unitary authority",name:"Bath and North East Somerset"},"GB-FIF":{type:"council area (Scotland)",name:"Fife"},"GB-DEN":{type:"unitary authority (Wales)",name:"Denbighshire"},"GB-SAY":{type:"council area (Scotland)",name:"South Ayrshire"},"GB-NFK":{type:"two-tier county",name:"Norfolk"},"GB-TFW":{type:"unitary authority",name:"Telford and Wrekin"},"GB-BNE":{type:"borough",name:"Barnet"},"GB-BNB":{type:"district council area (Northern Ireland)",name:"Banbridge"},"GB-TOB":{type:"unitary authority",name:"Torbay"},"GB-CGN":{type:"unitary authority (Wales)",name:"Ceredigion"},"GB-BFS":{type:"district council area (Northern Ireland)",name:"Belfast"},"GB-BNH":{type:"unitary authority",name:"Brighton and Hove"},"GB-WAR":{type:"two-tier county",name:"Warwickshire"},"GB-CGV":{type:"district council area (Northern Ireland)",name:"Craigavon"},"GB-BNS":{type:"metropolitan district",name:"Barnsley"},"GB-TWH":{type:"borough",name:"Tower Hamlets"},"GB-ANS":{type:"council area (Scotland)",name:"Angus"},"GB-FAL":{type:"council area (Scotland)",name:"Falkirk"},"GB-NYK":{type:"two-tier county",name:"North Yorkshire"},"GB-ANT":{type:"district council area (Northern Ireland)",name:"Antrim"},"GB-SWD":{type:"unitary authority",name:"Swindon"},"GB-IOS":{type:"",name:"Isles of Scilly"},"GB-WNM":{type:"unitary authority",name:"Windsor and Maidenhead"},"GB-IOW":{type:"unitary authority",name:"Isle of Wight"},"GB-GLS":{type:"two-tier county",name:"Gloucestershire"},"GB-SFT":{type:"metropolitan district",name:"Sefton"},"GB-IVC":{type:"council area (Scotland)",name:"Inverclyde"},"GB-WND":{type:"borough",name:"Wandsworth"},"GB-LEC":{type:"two-tier county",name:"Leicestershire"},"GB-SWK":{type:"borough",name:"Southwark"},"GB-YOR":{type:"unitary authority",name:"York"},"GB-GLG":{type:"council area (Scotland)",name:"Glasgow City"},"GB-RUT":{type:"unitary authority",name:"Rutland"},"GB-HMF":{type:"borough",name:"Hammersmith and Fulham"},"GB-SFK":{type:"two-tier county",name:"Suffolk"},"GB-LEW":{type:"borough",name:"Lewisham"},"GB-NYM":{type:"district council area (Northern Ireland)",name:"Newry and Mourne"},"GB-DUD":{type:"metropolitan district",name:"Dudley"},"GB-CLR":{type:"district council area (Northern Ireland)",name:"Coleraine"},"GB-CWY":{type:"unitary authority (Wales)",name:"Conwy"},"GB-SND":{type:"metropolitan district",name:"Sunderland"},"GB-BPL":{type:"unitary authority",name:"Blackpool"},"GB-VGL":{type:"unitary authority (Wales)",name:"Vale of Glamorgan, The"},"GB-WFT":{type:"borough",name:"Waltham Forest"},"GB-LND":{type:"city corporation",name:"London, City of"},"GB-CLD":{type:"metropolitan district",name:"Calderdale"},"GB-GWN":{type:"unitary authority (Wales)",name:"Gwynedd"},"GB-DUR":{type:"unitary authority",name:"Durham"},"GB-SCT":{type:"country",name:"Scotland"},"GB-CLK":{type:"council area (Scotland)",name:"Clackmannanshire"},"GB-ENG":{type:"country",name:"England"},"GB-MDW":{type:"unitary authority",name:"Medway"},"GB-SCB":{type:"council area (Scotland)",name:"Scottish Borders, The"},"GB-DNC":{type:"metropolitan district",name:"Doncaster"},"GB-TAM":{type:"metropolitan district",name:"Tameside"},"GB-WGN":{type:"metropolitan district",name:"Wigan"},"GB-DGY":{type:"council area (Scotland)",name:"Dumfries and Galloway"},"GB-PTE":{type:"unitary authority",name:"Peterborough"},"GB-SKP":{type:"metropolitan district",name:"Stockport"},"GB-NWP":{type:"unitary authority (Wales)",name:"Newport"},"GB-ISL":{type:"borough",name:"Islington"},"GB-SGC":{type:"unitary authority",name:"South Gloucestershire"},"GB-CAY":{type:"unitary authority (Wales)",name:"Caerphilly"},"GB-DGN":{type:"district council area (Northern Ireland)",name:"Dungannon and South Tyrone"},"GB-WKF":{type:"metropolitan district",name:"Wakefield"},"GB-NWM":{type:"borough",name:"Newham"},"GB-MDB":{type:"unitary authority",name:"Middlesbrough"},"GB-CAM":{type:"two-tier county",name:"Cambridgeshire"},"GB-SWA":{type:"unitary authority (Wales)",name:"Swansea"},"GB-DOW":{type:"district council area (Northern Ireland)",name:"Down"},"GB-BLA":{type:"district council area (Northern Ireland)",name:"Ballymena"},"GB-HAV":{type:"borough",name:"Havering"},"GB-DOR":{type:"two-tier county",name:"Dorset"},"GB-GAT":{type:"metropolitan district",name:"Gateshead"},"GB-POR":{type:"unitary authority",name:"Portsmouth"},"GB-NLK":{type:"council area (Scotland)",name:"North Lanarkshire"},"GB-LIV":{type:"metropolitan district",name:"Liverpool"},"GB-LIN":{type:"two-tier county",name:"Lincolnshire"},"GB-HAM":{type:"two-tier county",name:"Hampshire"},"GB-BLY":{type:"district council area (Northern Ireland)",name:"Ballymoney"},"GB-NDN":{type:"district council area (Northern Ireland)",name:"North Down"},"GB-BDF":{type:"unitary authority",name:"Bedfordshire"},"GB-BDG":{type:"borough",name:"Barking and Dagenham"},"GB-SOL":{type:"metropolitan district",name:"Solihull"},"GB-OMH":{type:"district council area (Northern Ireland)",name:"Omagh"},"GB-HPL":{type:"unitary authority",name:"Hartlepool"},"GB-COV":{type:"metropolitan district",name:"Coventry"},"GB-SHR":{type:"unitary authority",name:"Shropshire"},"GB-PKN":{type:"council area (Scotland)",name:"Perth and Kinross"},"GB-LMV":{type:"district council area (Northern Ireland)",name:"Limavady"},"GB-RCH":{type:"metropolitan district",name:"Rochdale"},"GB-SHF":{type:"metropolitan district",name:"Sheffield"},"GB-NGM":{type:"unitary authority",name:"Nottingham"},"GB-RCT":{type:"unitary authority (Wales)",name:"Rhondda, Cynon, Taff"},"GB-BOL":{type:"metropolitan district",name:"Bolton"},"GB-BGW":{type:"unitary authority (Wales)",name:"Blaenau Gwent"},"GB-ENF":{type:"borough",name:"Enfield"},"GB-DND":{type:"council area (Scotland)",name:"Dundee City"},"GB-STN":{type:"borough",name:"Sutton"},"GB-MLN":{type:"council area (Scotland)",name:"Midlothian"},"GB-RCC":{type:"unitary authority",name:"Redcar and Cleveland"},"GB-BGE":{type:"unitary authority (Wales)",name:"Bridgend"},"GB-KHL":{type:"unitary authority",name:"Kingston upon Hull, City of"},"GB-MTY":{type:"unitary authority (Wales)",name:"Merthyr Tydfil"}}},GA:{name:"Gabon",sub:{"GA-7":{type:"Province",name:"Ogooué-Lolo"},"GA-6":{type:"Province",name:"Ogooué-Ivindo"},"GA-5":{type:"Province",name:"Nyanga"},"GA-4":{type:"Province",name:"Ngounié"},"GA-3":{type:"Province",name:"Moyen-Ogooué"},"GA-2":{type:"Province",name:"Haut-Ogooué"},"GA-1":{type:"Province",name:"Estuaire"},"GA-9":{type:"Province",name:"Woleu-Ntem"},"GA-8":{type:"Province",name:"Ogooué-Maritime"}}},GN:{name:"Guinea",sub:{"GN-GU":{type:"Perfecture",name:"Guékédou"},"GN-YO":{type:"Perfecture",name:"Yomou"},"GN-TE":{type:"Perfecture",name:"Télimélé"},"GN-GA":{type:"Perfecture",name:"Gaoual"},"GN-PI":{type:"Perfecture",name:"Pita"},"GN-ML":{type:"Perfecture",name:"Mali"},"GN-MM":{type:"Perfecture",name:"Mamou"},"GN-DI":{type:"Perfecture",name:"Dinguiraye"},"GN-MD":{type:"Perfecture",name:"Mandiana"},"GN-KS":{type:"Perfecture",name:"Kissidougou"},"GN-MC":{type:"Perfecture",name:"Macenta"},"GN-CO":{type:"Perfecture",name:"Coyah"},"GN-LA":{type:"Perfecture",name:"Labé"},"GN-B":{type:"governorates",name:"Boké"},"GN-C":{type:"special zone.",name:"Conakry"},"GN-D":{type:"governorates",name:"Kindia"},"GN-F":{type:"governorates",name:"faranah"},"GN-KO":{type:"Perfecture",name:"Kouroussa"},"GN-KA":{type:"Perfecture",name:"Kankan"},"GN-KB":{type:"Perfecture",name:"Koubia"},"GN-K":{type:"governorates",name:"Kankan"},
"GN-KD":{type:"Perfecture",name:"Kindia"},"GN-KE":{type:"Perfecture",name:"Kérouané"},"GN-N":{type:"governorates",name:"Nzérékoré"},"GN-DU":{type:"Perfecture",name:"Dubréka"},"GN-FR":{type:"Perfecture",name:"Fria"},"GN-KN":{type:"Perfecture",name:"Koundara"},"GN-LO":{type:"Perfecture",name:"Lola"},"GN-FA":{type:"Perfecture",name:"Faranah"},"GN-DB":{type:"Perfecture",name:"Dabola"},"GN-DL":{type:"Perfecture",name:"Dalaba"},"GN-FO":{type:"Perfecture",name:"Forécariah"},"GN-BF":{type:"Perfecture",name:"Boffa"},"GN-BE":{type:"Perfecture",name:"Beyla"},"GN-LE":{type:"Perfecture",name:"Lélouma"},"GN-L":{type:"governorates",name:"Labé"},"GN-BK":{type:"Perfecture",name:"Boké"},"GN-M":{type:"governorates",name:"Mamou"},"GN-NZ":{type:"Perfecture",name:"Nzérékoré"},"GN-SI":{type:"Perfecture",name:"Siguiri"},"GN-TO":{type:"Perfecture",name:"Tougué"}}},GM:{name:"Gambia",sub:{"GM-N":{type:"division",name:"North Bank"},"GM-M":{type:"division",name:"MacCarthy Island"},"GM-L":{type:"division",name:"Lower River"},"GM-B":{type:"city",name:"Banjul"},"GM-W":{type:"division",name:"Western"},"GM-U":{type:"division",name:"Upper River"}}},GL:{name:"Greenland",sub:{"GL-QE":{type:"municipality",name:"Qeqqata Kommunia (kl)"},"GL-KU":{type:"municipality",name:"Kommune Kujalleq (kl)"},"GL-SM":{type:"municipality",name:"Kommuneqarfik Sermersooq (kl)"},"GL-QA":{type:"municipality",name:"Qaasuitsup Kommunia (kl)"}}},GH:{name:"Ghana",sub:{"GH-AH":{type:"Region",name:"Ashanti"},"GH-BA":{type:"Region",name:"Brong-Ahafo"},"GH-UW":{type:"Region",name:"Upper West"},"GH-AA":{type:"Region",name:"Greater Accra"},"GH-UE":{type:"Region",name:"Upper East"},"GH-CP":{type:"Region",name:"Central"},"GH-EP":{type:"Region",name:"Eastern"},"GH-NP":{type:"Region",name:"Northern"},"GH-TV":{type:"Region",name:"Volta"},"GH-WP":{type:"Region",name:"Western"}}},OM:{name:"Oman",sub:{"OM-WU":{type:"Region",name:"Al Wustá"},"OM-ZU":{type:"governorate",name:"Z̧ufār"},"OM-BA":{type:"Region",name:"Al Batinah"},"OM-DA":{type:"Region",name:"Ad Dakhiliyah"},"OM-MU":{type:"Governorate",name:"Musandam"},"OM-SH":{type:"Region",name:"Ash Sharqiyah"},"OM-ZA":{type:"Region",name:"Az̧ Z̧āhirah"},"OM-MA":{type:"Governorate",name:"Masqat"},"OM-BU":{type:"Governorate",name:"Al Buraymi"}}},TN:{name:"Tunisia",sub:{"TN-61":{type:"Governorate",name:"Sfax"},"TN-32":{type:"Governorate",name:"Jendouba"},"TN-82":{type:"Governorate",name:"Medenine"},"TN-83":{type:"Governorate",name:"Tataouine"},"TN-81":{type:"Governorate",name:"Gabès"},"TN-42":{type:"Governorate",name:"Kasserine"},"TN-43":{type:"Governorate",name:"Sidi Bouzid"},"TN-41":{type:"Governorate",name:"Kairouan"},"TN-21":{type:"Governorate",name:"Nabeul"},"TN-22":{type:"Governorate",name:"Zaghouan"},"TN-23":{type:"Governorate",name:"Bizerte"},"TN-12":{type:"Governorate",name:"Ariana"},"TN-73":{type:"Governorate",name:"Kebili"},"TN-72":{type:"Governorate",name:"Tozeur"},"TN-71":{type:"Governorate",name:"Gafsa"},"TN-33":{type:"Governorate",name:"Le Kef"},"TN-14":{type:"Governorate",name:"La Manouba"},"TN-31":{type:"Governorate",name:"Béja"},"TN-11":{type:"Governorate",name:"Tunis"},"TN-13":{type:"Governorate",name:"Ben Arous"},"TN-34":{type:"Governorate",name:"Siliana"},"TN-51":{type:"Governorate",name:"Sousse"},"TN-53":{type:"Governorate",name:"Mahdia"},"TN-52":{type:"Governorate",name:"Monastir"}}},JO:{name:"Jordan",sub:{"JO-AT":{type:"Province",name:"At Tafilah"},"JO-MA":{type:"Province",name:"Al Mafraq"},"JO-MD":{type:"Province",name:"Mādabā"},"JO-AQ":{type:"Province",name:"Al ‘Aqabah"},"JO-MN":{type:"Province",name:"Ma`an"},"JO-BA":{type:"Province",name:"Al Balqa'"},"JO-AZ":{type:"Province",name:"Az Zarqā'"},"JO-JA":{type:"Province",name:"Jarash"},"JO-IR":{type:"Province",name:"Irbid"},"JO-KA":{type:"Province",name:"Al Karak"},"JO-AM":{type:"Province",name:"‘Ammān (Al ‘A̅ şimah)"},"JO-AJ":{type:"Province",name:"‘Ajlūn"}}},HR:{name:"Croatia",sub:{"HR-16":{type:"county",name:"Vukovarsko-srijemska županija"},"HR-19":{type:"county",name:"Dubrovacko-neretvanska županija"},"HR-18":{type:"county",name:"Istarska županija"},"HR-08":{type:"county",name:"Primorsko-goranska županija"},"HR-09":{type:"county",name:"Licko-senjska županija"},"HR-06":{type:"county",name:"Koprivnicko-križevacka županija"},"HR-07":{type:"county",name:"Bjelovarsko-bilogorska županija"},"HR-04":{type:"county",name:"Karlovacka županija"},"HR-05":{type:"county",name:"Varaždinska županija"},"HR-02":{type:"county",name:"Krapinsko-zagorska županija"},"HR-03":{type:"county",name:"Sisacko-moslavacka županija"},"HR-13":{type:"county",name:"Zadarska županija"},"HR-12":{type:"county",name:"Brodsko-posavska županija"},"HR-15":{type:"county",name:"Šibensko-kninska županija"},"HR-20":{type:"county",name:"Medimurska županija"},"HR-21":{type:"city",name:"Grad Zagreb"},"HR-14":{type:"county",name:"Osjecko-baranjska županija"},"HR-01":{type:"county",name:"Zagrebacka županija"},"HR-10":{type:"county",name:"Viroviticko-podravska županija"},"HR-17":{type:"county",name:"Splitsko-dalmatinska županija"},"HR-11":{type:"county",name:"Požeško-slavonska županija"}}},HT:{name:"Haiti",sub:{"HT-CE":{type:"Department",name:"Centre"},"HT-OU":{type:"Department",name:"Ouest"},"HT-GA":{type:"Department",name:"Grande-Anse"},"HT-NI":{type:"Department",name:"Nippes"},"HT-NO":{type:"Department",name:"Nord-Ouest"},"HT-SD":{type:"Department",name:"Sud"},"HT-SE":{type:"Department",name:"Sud-Est"},"HT-AR":{type:"Department",name:"Artibonite"},"HT-ND":{type:"Department",name:"Nord"},"HT-NE":{type:"Department",name:"Nord-Est"}}},HU:{name:"Hungary",sub:{"HU-HE":{type:"county",name:"Heves"},"HU-BU":{type:"capital city",name:"Budapest"},"HU-HB":{type:"county",name:"Hajdú-Bihar"},"HU-FE":{type:"county",name:"Fejér"},"HU-SN":{type:"city of county right",name:"Sopron"},"HU-BZ":{type:"county",name:"Borsod-Abaúj-Zemplén"},"HU-DE":{type:"city of county right",name:"Debrecen"},"HU-BA":{type:"county",name:"Baranya"},"HU-HV":{type:"city of county right",name:"Hódmezovásárhely"},"HU-BC":{type:"city of county right",name:"Békéscsaba"},"HU-BE":{type:"county",name:"Békés"},"HU-BK":{type:"county",name:"Bács-Kiskun"},"HU-DU":{type:"city of county right",name:"Dunaújváros"},"HU-SF":{type:"city of county right",name:"Székesfehérvár"},"HU-SD":{type:"city of county right",name:"Szeged"},"HU-SK":{type:"city of county right",name:"Szolnok"},"HU-SH":{type:"city of county right",name:"Szombathely"},"HU-KV":{type:"city of county right",name:"Kaposvár"},"HU-SO":{type:"county",name:"Somogy"},"HU-SS":{type:"city of county right",name:"Szekszárd"},"HU-MI":{type:"city of county right",name:"Miskolc"},"HU-ST":{type:"city of county right",name:"Salgótarján"},"HU-KM":{type:"city of county right",name:"Kecskemét"},"HU-SZ":{type:"county",name:"Szabolcs-Szatmár-Bereg"},"HU-KE":{type:"county",name:"Komárom-Esztergom"},"HU-CS":{type:"county",name:"Csongrád"},"HU-ER":{type:"County",name:"Erd"},"HU-ZA":{type:"county",name:"Zala"},"HU-ZE":{type:"city of county right",name:"Zalaegerszeg"},"HU-VM":{type:"city of county right",name:"Veszprém City"},"HU-EG":{type:"city of county right",name:"Eger"},"HU-TO":{type:"county",name:"Tolna"},"HU-GY":{type:"city of county right",name:"Gyor"},"HU-VE":{type:"county",name:"Veszprém"},"HU-TB":{type:"city of county right",name:"Tatabánya"},"HU-VA":{type:"county",name:"Vas"},"HU-GS":{type:"county",name:"Gyor-Moson-Sopron"},"HU-PE":{type:"county",name:"Pest"},"HU-NY":{type:"city of county right",name:"Nyíregyháza"},"HU-JN":{type:"county",name:"Jász-Nagykun-Szolnok"},"HU-NO":{type:"county",name:"Nógrád"},"HU-PS":{type:"city of county right",name:"Pécs"},"HU-NK":{type:"city of county right",name:"Nagykanizsa"}}},HN:{name:"Honduras",sub:{"HN-OC":{type:"Department",name:"Ocotepeque"},"HN-CM":{type:"Department",name:"Comayagua"},"HN-CL":{type:"Department",name:"Colón"},"HN-YO":{type:"Department",name:"Yoro"},"HN-CH":{type:"Department",name:"Choluteca"},"HN-FM":{type:"Department",name:"Francisco Morazán"},"HN-IN":{type:"Department",name:"Intibucá"},"HN-IB":{type:"Department",name:"Islas de la Bahía"},"HN-EP":{type:"Department",name:"El Paraíso"},"HN-OL":{type:"Department",name:"Olancho"},"HN-LE":{type:"Department",name:"Lempira"},"HN-AT":{type:"Department",name:"Atlántida"},"HN-LP":{type:"Department",name:"La Paz"},"HN-VA":{type:"Department",name:"Valle"},"HN-SB":{type:"Department",name:"Santa Bárbara"},"HN-GD":{type:"Department",name:"Gracias a Dios"},"HN-CR":{type:"Department",name:"Cortés"},"HN-CP":{type:"Department",name:"Copán"}}},VE:{name:"Venezuela",sub:{"VE-L":{type:"state",name:"Mérida"},"VE-M":{type:"state",name:"Miranda"},"VE-N":{type:"state",name:"Monagas"},"VE-O":{type:"state",name:"Nueva Esparta"},"VE-H":{type:"state",name:"Cojedes"},"VE-I":{type:"state",name:"Falcón"},"VE-J":{type:"state",name:"Guárico"},"VE-K":{type:"state",name:"Lara"},"VE-D":{type:"state",name:"Aragua"},"VE-E":{type:"state",name:"Barinas"},"VE-F":{type:"state",name:"Bolívar"},"VE-G":{type:"state",name:"Carabobo"},"VE-A":{type:"federal district",name:"Distrito Federal"},"VE-B":{type:"state",name:"Anzoátegui"},"VE-C":{type:"state",name:"Apure"},"VE-X":{type:"state",name:"Vargas"},"VE-Y":{type:"state",name:"Delta Amacuro"},"VE-Z":{type:"state",name:"Amazonas"},"VE-T":{type:"state",name:"Trujillo"},"VE-U":{type:"state",name:"Yaracuy"},"VE-V":{type:"state",name:"Zulia"},"VE-W":{type:"federal dependency",name:"Dependencias Federales"},"VE-P":{type:"state",name:"Portuguesa"},"VE-R":{type:"state",name:"Sucre"},"VE-S":{type:"state",name:"Táchira"}}},PS:{name:"Palestine",sub:{"PS-SLT":{type:"governorates",name:"Salfit Salfīt"},"PS-HBN":{type:"governorates",name:"Hebron Al Khalīl"},"PS-RBH":{type:"governorates",name:"Ramallah Rām Allāh wa al Bīrah"},"PS-QQA":{type:"governorates",name:"Qalqilya Qalqīlyah"},"PS-TBS":{type:"governorates",name:"Tubas Ţūbās"},"PS-JEN":{type:"governorates",name:"Jenin Janīn"},"PS-JRH":{type:"governorates",name:"Jericho – Al Aghwar Arīḩā wa al Aghwār"},"PS-KYS":{type:"governorates",name:"Khan Yunis Khān Yūnis"},"PS-DEB":{type:"governorates",name:"Deir El Balah Dayr al Balaḩ"},"PS-BTH":{type:"governorates",name:"Bethlehem Bayt Laḩm"},"PS-JEM":{type:"governorates",name:"Jerusalem Al Quds"},"PS-GZA":{type:"governorates",name:"Gaza Ghazzah"},"PS-NBS":{type:"governorates",name:"Nablus Nāblus"},"PS-RFH":{type:"governorates",name:"Rafah Rafaḩ"},"PS-TKM":{type:"governorates",name:"Tulkarm Ţūlkarm"},"PS-NGZ":{type:"governorates",name:"North Gaza Shamāl Ghazzah"}}},PW:{name:"Palau",sub:{"PW-222":{type:"State",name:"Ngardmau"},"PW-050":{type:"State",name:"Hatobohei"},"PW-218":{type:"State",name:"Ngarchelong"},"PW-226":{type:"State",name:"Ngchesar"},"PW-227":{type:"State",name:"Ngeremlengui"},"PW-224":{type:"State",name:"Ngatpang"},"PW-100":{type:"State",name:"Kayangel"},"PW-212":{type:"State",name:"Melekeok"},"PW-228":{type:"State",name:"Ngiwal"},"PW-150":{type:"State",name:"Koror"},"PW-214":{type:"State",name:"Ngaraard"},"PW-370":{type:"State",name:"Sonsorol"},"PW-004":{type:"State",name:"Airai"},"PW-002":{type:"State",name:"Aimeliik"},"PW-010":{type:"State",name:"Angaur"},"PW-350":{type:"State",name:"Peleliu"}}},PT:{name:"Portugal",sub:{"PT-13":{type:"district",name:"Porto"},"PT-12":{type:"district",name:"Portalegre"},"PT-11":{type:"district",name:"Lisboa"},"PT-10":{type:"district",name:"Leiria"},"PT-08":{type:"district",name:"Faro"},"PT-09":{type:"district",name:"Guarda"},"PT-20":{type:"autonomous region",name:"Região Autónoma dos Açores"},"PT-14":{type:"district",name:"Santarém"},"PT-04":{type:"district",name:"Bragança"},"PT-05":{type:"district",name:"Castelo Branco"},"PT-06":{type:"district",name:"Coimbra"},"PT-17":{type:"district",name:"Vila Real"},"PT-01":{type:"district",name:"Aveiro"},"PT-02":{type:"district",name:"Beja"},"PT-03":{type:"district",name:"Braga"},"PT-15":{type:"district",name:"Setúbal"},"PT-16":{type:"district",name:"Viana do Castelo"},"PT-18":{type:"district",name:"Viseu"},"PT-07":{type:"district",name:"Évora"},"PT-30":{type:"autonomous region",name:"Região Autónoma da Madeira"}}},KN:{name:"Saint Kitts And Nevis",sub:{"KN-05":{type:"Parish",name:"Saint James Windward"},"KN-04":{type:"Parish",name:"Saint George Gingerland"},"KN-07":{type:"Parish",name:"Saint John Figtree"},"KN-06":{type:"Parish",name:"Saint John Capisterre"},"KN-01":{type:"Parish",name:"Christ Church Nichola Town"},"KN-10":{type:"Parish",name:"Saint Paul Charlestown"},"KN-03":{type:"Parish",name:"Saint George Basseterre"},"KN-02":{type:"Parish",name:"Saint Anne Sandy Point"},"KN-N":{type:"state",name:"Nevis"},"KN-11":{type:"Parish",name:"Saint Peter Basseterre"},"KN-09":{type:"Parish",name:"Saint Paul Capisterre"},"KN-08":{type:"Parish",name:"Saint Mary Cayon"},"KN-K":{type:"state",name:"Saint Kitts"},"KN-15":{type:"Parish",name:"Trinity Palmetto Point"},"KN-12":{type:"Parish",name:"Saint Thomas Lowland"},"KN-13":{type:"Parish",name:"Saint Thomas Middle Island"}}},PY:{name:"Paraguay",sub:{"PY-19":{type:"department",name:"Boquerón"},"PY-14":{type:"department",name:"Canindeyú"},"PY-15":{type:"department",name:"Presidente Hayes"},"PY-16":{type:"department",name:"Alto Paraguay"},"PY-10":{type:"department",name:"Alto Paraná"},"PY-11":{type:"department",name:"Central"},"PY-12":{type:"department",name:"Ñeembucú"},"PY-13":{type:"department",name:"Amambay"},"PY-6":{type:"department",name:"Caazapá"},"PY-7":{type:"department",name:"Itapúa"},"PY-4":{type:"department",name:"Guairá"},"PY-5":{type:"department",name:"Caaguazú"},"PY-2":{type:"department",name:"San Pedro"},"PY-3":{type:"department",name:"Cordillera"},"PY-1":{type:"department",name:"Concepción"},"PY-ASU":{type:"capital",name:"Asunción"},"PY-8":{type:"department",name:"Misiones"},"PY-9":{type:"department",name:"Paraguarí"}}},PA:{name:"Panama",sub:{"PA-KY":{type:"indigenous region",name:"Kuna Yala"},"PA-8":{type:"province",name:"Panamá"},"PA-9":{type:"province",name:"Veraguas"},"PA-6":{type:"province",name:"Herrera"},"PA-7":{type:"province",name:"Los Santos"},"PA-4":{type:"province",name:"Chiriquí"},"PA-5":{type:"province",name:"Darién"},"PA-2":{type:"province",name:"Coclé"},"PA-3":{type:"province",name:"Colón"},"PA-1":{type:"province",name:"Bocas del Toro"},"PA-EM":{type:"indigenous region",name:"Emberá"},"PA-NB":{type:"indigenous region",name:"Ngöbe-Buglé"}}},PG:{name:"Papua New Guinea",sub:{"PG-NPP":{type:"province",name:"Northern"},"PG-NCD":{type:"district",name:"National Capital District (Port Moresby)"},"PG-EPW":{type:"province",name:"Enga"},"PG-MPM":{type:"province",name:"Madang"},"PG-MPL":{type:"province",name:"Morobe"},"PG-CPM":{type:"province",name:"Central"},"PG-GPK":{type:"province",name:"Gulf"},"PG-EBR":{type:"province",name:"East New Britain"},"PG-NIK":{type:"province",name:"New Ireland"},"PG-MRL":{type:"province",name:"Manus"},"PG-CPK":{type:"province",name:"Chimbu"},"PG-MBA":{type:"province",name:"Milne Bay"},"PG-SAN":{type:"province",name:"Sandaun"},"PG-WBK":{type:"province",name:"West New Britain"},"PG-WPD":{type:"province",name:"Western"},"PG-NSB":{type:"autonomous region",name:"Bougainville"},"PG-WHM":{type:"province",name:"Western Highlands"},"PG-SHM":{type:"province",name:"Southern Highlands"},"PG-EHG":{type:"province",name:"Eastern Highlands"},"PG-ESW":{type:"province",name:"East Sepik"}}},PE:{name:"Peru",sub:{"PE-PIU":{type:"department",name:"Piura"},"PE-ARE":{type:"department",name:"Arequipa"},"PE-APU":{type:"department",name:"Apurímac"},"PE-JUN":{type:"department",name:"Junín"},"PE-LMA":{type:"municipality",name:"Municipalidad Metropolitana de Lima"},"PE-LOR":{type:"department",name:"Loreto"},"PE-LIM":{type:"department",name:"Lima"},"PE-AMA":{type:"department",name:"Amazonas"},"PE-LAM":{type:"department",name:"Lambayeque"},"PE-LAL":{type:"department",name:"La Libertad"},"PE-HUC":{type:"department",name:"Huánuco"},"PE-CUS":{type:"department",name:"Cusco"},"PE-PUN":{type:"department",name:"Puno"},"PE-HUV":{type:"department",name:"Huancavelica"},"PE-MOQ":{type:"department",name:"Moquegua"},"PE-TAC":{type:"department",name:"Tacna"},"PE-AYA":{type:"department",name:"Ayacucho"},"PE-UCA":{type:"department",name:"Ucayali"},"PE-ICA":{type:"department",name:"Ica"},"PE-SAM":{type:"department",name:"San Martín"},"PE-ANC":{type:"department",name:"Ancash"},"PE-PAS":{type:"department",name:"Pasco"},"PE-CAL":{type:"constitutional province",name:"El Callao"},"PE-TUM":{type:"department",name:"Tumbes"},"PE-CAJ":{type:"department",name:"Cajamarca"},"PE-MDD":{type:"department",name:"Madre de Dios"}}},PK:{name:"Pakistan",sub:{"PK-IS":{type:"federal capital territory",name:"Islamabad"},"PK-TA":{type:"territory",name:"Federally Administered Tribal Areas"},"PK-BA":{type:"province",name:"Baluchistan (en)"},"PK-KP":{type:"province",name:"Khyber Pakhtunkhwa"},"PK-PB":{type:"province",name:"Punjab"},"PK-JK":{type:"Pakistan administered area",name:"Azad Kashmir"},"PK-SD":{type:"province",name:"Sindh"},"PK-GB":{type:"administered areas",name:"Gilgit-Baltistan"}}},PH:{name:"Philippines",sub:{"PH-08":{type:"region",name:"Eastern Visayas (Region VIII)"},"PH-09":{type:"region",name:"Zamboanga Peninsula (Region IX)"},"PH-00":{type:"region",name:"National Capital Region"},"PH-01":{type:"region",name:"Ilocos (Region I)"},"PH-02":{type:"region",name:"Cagayan Valley (Region II)"},"PH-03":{type:"region",name:"Central Luzon (Region III)"},"PH-05":{type:"region",name:"Bicol (Region V)"},"PH-SUK":{type:"province",name:"Sultan Kudarat"},"PH-07":{type:"region",name:"Central Visayas (Region VII)"},"PH-SUR":{type:"province",name:"Surigao del Sur"},"PH-SLU":{type:"province",name:"Sulu"},"PH-DAV":{type:"province",name:"Davao del Norte"},"PH-CAM":{type:"province",name:"Camiguin"},"PH-CAN":{type:"province",name:"Camarines Norte"},"PH-BUL":{type:"province",name:"Bulacan"},"PH-CAG":{type:"province",name:"Cagayan"},"PH-BOH":{type:"province",name:"Bohol"},"PH-CAP":{type:"province",name:"Capiz"},"PH-CAS":{type:"province",name:"Camarines Sur"},"PH-CAT":{type:"province",name:"Catanduanes"},"PH-CAV":{type:"province",name:"Cavite"},"PH-BIL":{type:"province",name:"Biliran"},"PH-SLE":{type:"province",name:"Southern Leyte"},"PH-RIZ":{type:"province",name:"Rizal"},"PH-COM":{type:"province",name:"Compostela Valley"},"PH-SCO":{type:"province",name:"South Cotabato"},"PH-ZSI":{type:"province",name:"Zamboanga Sibuguey"},"PH-ILS":{type:"province",name:"Ilocos Sur"},"PH-AGS":{type:"province",name:"Agusan del Sur"},"PH-ILI":{type:"province",name:"Iloilo"},"PH-WSA":{type:"province",name:"Western Samar"},"PH-PLW":{type:"province",name:"Palawan"},"PH-KAL":{type:"province",name:"Kalinga"},"PH-ZAS":{type:"province",name:"Zamboanga del Sur"},"PH-ZAN":{type:"province",name:"Zamboanga del Norte"},"PH-ALB":{type:"province",name:"Albay"},"PH-NUE":{type:"province",name:"Nueva Ecija"},"PH-NUV":{type:"province",name:"Nueva Vizcaya"},"PH-TAW":{type:"province",name:"Tawi-Tawi"},"PH-TAR":{type:"province",name:"Tarlac"},"PH-AKL":{type:"province",name:"Aklan"},"PH-BEN":{type:"province",name:"Benguet"},"PH-DIN":{type:"province",name:"Dinagat Islands"},"PH-DAS":{type:"province",name:"Davao del Sur"},"PH-ROM":{type:"province",name:"Romblon"},"PH-ISA":{type:"province",name:"Isabela"},"PH-NER":{type:"province",name:"Negros Oriental"},"PH-LAS":{type:"province",name:"Lanao del Sur"},"PH-LAN":{type:"province",name:"Lanao del Norte"},"PH-NEC":{type:"province",name:"Negros Occidental"},"PH-LAG":{type:"province",name:"Laguna"},"PH-SUN":{type:"province",name:"Surigao del Norte"},"PH-AUR":{type:"province",name:"Aurora"},"PH-MSR":{type:"province",name:"Misamis Oriental"},"PH-ABR":{type:"province",name:"Abra"},"PH-MSC":{type:"province",name:"Misamis Occidental"},"PH-40":{type:"region",name:"CALABARZON (Region IV-A)"},"PH-41":{type:"region",name:"MIMAROPA (Region IV-B)"},"PH-EAS":{type:"province",name:"Eastern Samar"},"PH-BTN":{type:"province",name:"Batanes"},"PH-BTG":{type:"province",name:"Batangas"},"PH-X2~":{type:"",name:"Shariff Kabunsuan"},"PH-QUI":{type:"province",name:"Quirino"},"PH-CEB":{type:"province",name:"Cebu"},"PH-APA":{type:"province",name:"Apayao"},"PH-SAR":{type:"province",name:"Sarangani"},"PH-QUE":{type:"province",name:"Quezon"},"PH-IFU":{type:"province",name:"Ifugao"},"PH-MAS":{type:"province",name:"Masbate"},"PH-SOR":{type:"province",name:"Sorsogon"},"PH-NCO":{type:"province",name:"Cotabato"},"PH-ZMB":{type:"province",name:"Zambales"},"PH-MAG":{type:"province",name:"Maguindanao"},"PH-MAD":{type:"province",name:"Marinduque"},"PH-BUK":{type:"province",name:"Bukidnon"},"PH-PAN":{type:"province",name:"Pangasinan"},"PH-PAM":{type:"province",name:"Pampanga"},"PH-GUI":{type:"province",name:"Guimaras"},"PH-NSA":{type:"province",name:"Northern Samar"},"PH-MDC":{type:"province",name:"Mindoro Occidental"},"PH-MDR":{type:"province",name:"Mindoro Oriental"},"PH-LUN":{type:"province",name:"La Union"},"PH-BAS":{type:"province",name:"Basilan"},"PH-BAN":{type:"province",name:"Bataan"},"PH-MOU":{type:"province",name:"Mountain Province"},"PH-15":{type:"region",name:"Cordillera Administrative Region (CAR)"},"PH-14":{type:"region",name:"Autonomous Region in Muslim Mindanao (ARMM)"},"PH-13":{type:"region",name:"Caraga (Region XIII)"},"PH-12":{type:"region",name:"Soccsksargen (Region XII)"},"PH-11":{type:"region",name:"Davao (Region XI)"},"PH-10":{type:"region",name:"Northern Mindanao (Region X)"},"PH-SIG":{type:"province",name:"Siquijor"},"PH-AGN":{type:"province",name:"Agusan del Norte"},"PH-ILN":{type:"province",name:"Ilocos Norte"},"PH-DAO":{type:"province",name:"Davao Oriental"},"PH-06":{type:"region",name:"Western Visayas (Region VI)"},"PH-LEY":{type:"province",name:"Leyte"},"PH-ANT":{type:"province",name:"Antique"}}},PL:{name:"Poland",sub:{"PL-SL":{type:"Voivodship",name:"Slaskie"},"PL-LU":{type:"Voivodship",name:"Lubelskie"},"PL-SK":{type:"Voivodship",name:"Swietokrzyskie"},"PL-WP":{type:"Voivodship",name:"Wielkopolskie"},"PL-ZP":{type:"Voivodship",name:"Zachodniopomorskie"},"PL-MZ":{type:"Voivodship",name:"Mazowieckie"},"PL-PD":{type:"Voivodship",name:"Podlaskie"},"PL-LB":{type:"Voivodship",name:"Lubuskie"},"PL-LD":{type:"Voivodship",name:"Lódzkie"},"PL-KP":{type:"Voivodship",name:"Kujawsko-pomorskie"},"PL-MA":{type:"Voivodship",name:"Malopolskie"},"PL-PM":{type:"Voivodship",name:"Pomorskie"},"PL-OP":{type:"Voivodship",name:"Opolskie"},"PL-DS":{type:"Voivodship",name:"Dolnoslaskie"},"PL-WN":{type:"Voivodship",name:"Warminsko-mazurskie"},"PL-PK":{type:"Voivodship",name:"Podkarpackie"}}},ZM:{name:"Zambia",sub:{"ZM-01":{type:"Province",name:"Western"},"ZM-03":{type:"Province",name:"Eastern"},"ZM-02":{type:"Province",name:"Central"},"ZM-05":{type:"Province",name:"Northern"},"ZM-04":{type:"Province",name:"Luapula"},"ZM-07":{type:"Province",name:"Southern"},"ZM-06":{type:"Province",name:"North-Western"},"ZM-09":{type:"Province",name:"Lusaka"},"ZM-08":{type:"Province",name:"Copperbelt"}}},EH:{name:"Western Sahara",sub:{"EH-LAA":{type:"Province",name:"Laayoune"},"EH-BOD":{type:"Province",name:"Boujdour"},"EH-OUD":{type:"Province",name:"Oued el Dahab"},"EH-ESM":{type:"Province",name:"Es Semara"}}},EE:{name:"Estonia",sub:{"EE-86":{type:"County",name:"Võrumaa"},"EE-39":{type:"County",name:"Hiiumaa"},"EE-74":{type:"County",name:"Saaremaa"},"EE-57":{type:"County",name:"Läänemaa"},"EE-70":{type:"County",name:"Raplamaa"},"EE-37":{type:"County",name:"Harjumaa"},"EE-51":{type:"County",name:"Järvamaa"},"EE-84":{type:"County",name:"Viljandimaa"},"EE-82":{type:"County",name:"Valgamaa"},"EE-44":{type:"County",name:"Ida-Virumaa"},"EE-78":{type:"County",name:"Tartumaa"},"EE-59":{type:"County",name:"Lääne-Virumaa"},"EE-49":{type:"County",name:"Jõgevamaa"},"EE-65":{type:"County",name:"Põlvamaa"},"EE-67":{type:"County",name:"Pärnumaa"}}},EG:{name:"Egypt",sub:{"EG-DT":{type:"Governorate",name:"Dumyat"},"EG-SUZ":{type:"Governorate",name:"As Suways"},"EG-BA":{type:"Governorate",name:"Al Bahr al Ahmar"},"EG-HU":{type:"governorate",name:"Ḩulwān"},"EG-BH":{type:"Governorate",name:"Al Buhayrah"},"EG-DK":{type:"Governorate",name:"Ad Daqahliyah"},"EG-SHG":{type:"Governorate",name:"Suhaj"},"EG-MT":{type:"Governorate",name:"Matrūh"},"EG-SU":{type:"governorate",name:"As Sādis min Uktūbar"},"EG-AST":{type:"Governorate",name:"Asyut"},"EG-KB":{type:"Governorate",name:"Al Qalyubiyah"},"EG-MN":{type:"Governorate",name:"Al Minya"},"EG-GH":{type:"Governorate",name:"Al Gharbiyah"},"EG-WAD":{type:"Governorate",name:"Al Wadi al Jadid"},"EG-KN":{type:"Governorate",name:"Qina"},"EG-SHR":{type:"Governorate",name:"Ash Sharqiyah"},"EG-ASN":{type:"Governorate",name:"Aswan"},"EG-IS":{type:"Governorate",name:"Al Ismā`īlīyah"},"EG-GZ":{type:"Governorate",name:"Al Jizah"},"EG-C":{type:"Governorate",name:"Al Qahirah"},"EG-SIN":{type:"Governorate",name:"Shamal Sina'"},"EG-ALX":{type:"Governorate",name:"Al Iskandariyah"},"EG-BNS":{type:"Governorate",name:"Bani Suwayf"},"EG-LX":{type:"Governorate",name:"al-Uqsur"},"EG-MNF":{type:"Governorate",name:"Al Minufiyah"},"EG-JS":{type:"Governorate",name:"Janub Sina'"},"EG-KFS":{type:"Governorate",name:"Kafr ash Shaykh"},"EG-FYM":{type:"Governorate",name:"Al Fayyum"},"EG-PTS":{type:"Governorate",name:"Būr Sa`īd"}}},ZA:{name:"South Africa",sub:{"ZA-NL":{type:"Province",name:"Kwazulu-Natal"},"ZA-GT":{type:"Province",name:"Gauteng"},"ZA-EC":{type:"Province",name:"Eastern Cape"},"ZA-NC":{type:"Province",name:"Northern Cape"},"ZA-LP":{type:"Province",name:"Limpopo"},"ZA-MP":{type:"Province",name:"Mpumalanga"},"ZA-WC":{type:"Province",name:"Western Cape"},"ZA-NW":{type:"Province",name:"North-West"},"ZA-FS":{type:"Province",name:"Free State"}}},EC:{name:"Ecuador",sub:{"EC-SE":{type:"Province",name:"Santa Elena"},"EC-SD":{type:"Province",name:"Santo Domingo de los Tsachilas"},"EC-Z":{type:"Province",name:"Zamora-Chinchipe"},"EC-Y":{type:"Province",name:"Pastaza"},"EC-X":{type:"Province",name:"Cotopaxi"},"EC-W":{type:"Province",name:"Galápagos"},"EC-U":{type:"Province",name:"Sucumbíos"},"EC-T":{type:"Province",name:"Tungurahua"},"EC-S":{type:"Province",name:"Morona-Santiago"},"EC-R":{type:"Province",name:"Los Ríos"},"EC-P":{type:"Province",name:"Pichincha"},"EC-O":{type:"Province",name:"El Oro"},"EC-N":{type:"Province",name:"Napo"},"EC-M":{type:"Province",name:"Manabí"},"EC-L":{type:"Province",name:"Loja"},"EC-I":{type:"Province",name:"Imbabura"},"EC-H":{type:"Province",name:"Chimborazo"},"EC-G":{type:"Province",name:"Guayas"},"EC-F":{type:"Province",name:"Cañar"},"EC-E":{type:"Province",name:"Esmeraldas"},"EC-D":{type:"Province",name:"Orellana"},"EC-C":{type:"Province",name:"Carchi"},"EC-B":{type:"Province",name:"Bolívar"},"EC-A":{type:"Province",name:"Azuay"}}},IT:{name:"Italy",sub:{"IT-BA":{type:"Province",name:"Bari"},"IT-TR":{type:"Province",name:"Terni"},"IT-BG":{type:"Province",name:"Bergamo"},"IT-BI":{type:"Province",name:"Biella"},"IT-BO":{type:"Province",name:"Bologna"},"IT-BN":{type:"Province",name:"Benevento"},"IT-BL":{type:"Province",name:"Belluno"},"IT-BS":{type:"Province",name:"Brescia"},"IT-BR":{type:"Province",name:"Brindisi"},"IT-BT":{type:"Province",name:"Barletta-Andria-Trani"},"IT-BZ":{type:"Province",name:"Bolzano"},"IT-23":{type:"region",name:"Valle d'Aosta"},"IT-21":{type:"region",name:"Piemonte"},"IT-25":{type:"region",name:"Lombardia"},"IT-RC":{type:"Province",name:"Reggio Calabria"},"IT-RA":{type:"Province",name:"Ravenna"},"IT-RG":{type:"Province",name:"Ragusa"},"IT-RE":{type:"Province",name:"Reggio Emilia"},"IT-RI":{type:"Province",name:"Rieti"},"IT-RO":{type:"Province",name:"Rovigo"},"IT-RN":{type:"Province",name:"Rimini"},"IT-RM":{type:"Province",name:"Roma"},"IT-AG":{type:"Province",name:"Agrigento"},"IT-AN":{type:"Province",name:"Ancona"},"IT-AO":{type:"Province",name:"Aosta"},"IT-AL":{type:"Province",name:"Alessandria"},"IT-IS":{type:"Province",name:"Isernia"},"IT-AV":{type:"Province",name:"Avellino"},"IT-AT":{type:"Province",name:"Asti"},"IT-IM":{type:"Province",name:"Imperia"},"IT-AR":{type:"Province",name:"Arezzo"},"IT-AP":{type:"Province",name:"Ascoli Piceno"},"IT-AQ":{type:"Province",name:"L'Aquila"},"IT-67":{type:"region",name:"Molise"},"IT-34":{type:"region",name:"Veneto"},"IT-36":{type:"region",name:"Friuli-Venezia Giulia"},"IT-FE":{type:"Province",name:"Ferrara"},"IT-32":{type:"region",name:"Trentino-Alto Adige"},"IT-VE":{type:"Province",name:"Venezia"},"IT-LC":{type:"Province",name:"Lecco"},"IT-LE":{type:"Province",name:"Lecce"},"IT-LI":{type:"Province",name:"Livorno"},"IT-TP":{type:"Province",name:"Trapani"},"IT-TS":{type:"Province",name:"Trieste"},"IT-42":{type:"region",name:"Liguria"},"IT-45":{type:"region",name:"Emilia-Romagna"},"IT-LO":{type:"Province",name:"Lodi"},"IT-TV":{type:"Province",name:"Treviso"},"IT-LU":{type:"Province",name:"Lucca"},"IT-LT":{type:"Province",name:"Latina"},"IT-TO":{type:"Province",name:"Torino"},"IT-TN":{type:"Province",name:"Trento"},"IT-TA":{type:"Province",name:"Taranto"},"IT-TE":{type:"Province",name:"Teramo"},"IT-CL":{type:"Province",name:"Caltanissetta"},"IT-CN":{type:"Province",name:"Cuneo"},"IT-CO":{type:"Province",name:"Como"},"IT-CH":{type:"Province",name:"Chieti"},"IT-CI":{type:"Province",name:"Carbonia-Iglesias"},"IT-CE":{type:"Province",name:"Caserta"},"IT-CA":{type:"Province",name:"Cagliari"},"IT-CB":{type:"Province",name:"Campobasso"},"IT-CZ":{type:"Province",name:"Catanzaro"},"IT-CT":{type:"Province",name:"Catania"},"IT-CR":{type:"Province",name:"Cremona"},"IT-CS":{type:"Province",name:"Cosenza"},"IT-52":{type:"region",name:"Toscana"},"IT-SV":{type:"Province",name:"Savona"},"IT-SP":{type:"Province",name:"La Spezia"},"IT-57":{type:"region",name:"Marche"},"IT-SR":{type:"Province",name:"Siracusa"},"IT-SS":{type:"Province",name:"Sassari"},"IT-SO":{type:"Province",name:"Sondrio"},"IT-SI":{type:"Province",name:"Siena"},"IT-KR":{type:"Province",name:"Crotone"},"IT-SA":{type:"Province",name:"Salerno"},"IT-VR":{type:"Province",name:"Verona"},"IT-FR":{type:"Province",name:"Frosinone"},"IT-FG":{type:"Province",name:"Foggia"},"IT-65":{type:"region",name:"Abruzzo"},"IT-FC":{type:"Province",name:"Forli-Cesena"},"IT-62":{type:"region",name:"Lazio"},"IT-FM":{type:"Province",name:"Fermo"},"IT-FI":{type:"Province",name:"Firenze"},"IT-NO":{type:"Province",name:"Novara"},"IT-NA":{type:"Province",name:"Napoli"},"IT-NU":{type:"Province",name:"Nuoro"},"IT-EN":{type:"Province",name:"Enna"},"IT-72":{type:"region",name:"Campania"},"IT-75":{type:"region",name:"Puglia"},"IT-77":{type:"region",name:"Basilicata"},"IT-78":{type:"region",name:"Calabria"},"IT-MB":{type:"Province",name:"Monza e Brianza"},"IT-MC":{type:"Province",name:"Macerata"},"IT-ME":{type:"Province",name:"Messina"},"IT-MI":{type:"Province",name:"Milano"},"IT-MN":{type:"Province",name:"Mantova"},"IT-MO":{type:"Province",name:"Modena"},"IT-MS":{type:"Province",name:"Massa-Carrara"},"IT-MT":{type:"Province",name:"Matera"},"IT-UD":{type:"Province",name:"Udine"},"IT-88":{type:"region",name:"Sardegna"},"IT-55":{type:"region",name:"Umbria"},"IT-82":{type:"region",name:"Sicilia"},"IT-PU":{type:"Province",name:"Pesaro e Urbino"},"IT-PT":{type:"Province",name:"Pistoia"},"IT-PV":{type:"Province",name:"Pavia"},"IT-PR":{type:"Province",name:"Parma"},"IT-PZ":{type:"Province",name:"Potenza"},"IT-PE":{type:"Province",name:"Pescara"},"IT-PD":{type:"Province",name:"Padova"},"IT-PG":{type:"Province",name:"Perugia"},"IT-PA":{type:"Province",name:"Palermo"},"IT-PC":{type:"Province",name:"Piacenza"},"IT-PO":{type:"Province",name:"Prato"},"IT-PN":{type:"Province",name:"Pordenone"},"IT-PI":{type:"Province",name:"Pisa"},"IT-GR":{type:"Province",name:"Grosseto"},"IT-VC":{type:"Province",name:"Vercelli"},"IT-VB":{type:"Province",name:"Verbano-Cusio-Ossola"},"IT-VA":{type:"Province",name:"Varese"},"IT-VI":{type:"Province",name:"Vicenza"},"IT-VV":{type:"Province",name:"Vibo Valentia"},"IT-VT":{type:"Province",name:"Viterbo"},"IT-VS":{type:"Province",name:"Medio Campidano"},"IT-GE":{type:"Province",name:"Genova"},"IT-GO":{type:"Province",name:"Gorizia"},"IT-OG":{type:"Province",name:"Ogliastra"},"IT-OR":{type:"Province",name:"Oristano"},"IT-OT":{type:"Province",name:"Olbia-Tempio"}}},VN:{name:"Viet Nam",sub:{"VN-28":{type:"Province",name:"Kon Tum"},"VN-29":{type:"Province",name:"Quang Ngai"
},"VN-26":{type:"Province",name:"Thua Thien-Hue"},"VN-27":{type:"Province",name:"Quang Nam"},"VN-24":{type:"Province",name:"Quang Binh"},"VN-25":{type:"Province",name:"Quang Tri"},"VN-22":{type:"Province",name:"Nghe An"},"VN-23":{type:"Province",name:"Ha Tinh"},"VN-20":{type:"Province",name:"Thai Binh"},"VN-21":{type:"Province",name:"Thanh Hoa"},"VN-18":{type:"Province",name:"Ninh Binh"},"VN-DN":{type:"municipality",name:"Da Nang"},"VN-SG":{type:"municipality",name:"Ho Chi Minh"},"VN-49":{type:"Province",name:"Vinh Long"},"VN-07":{type:"Province",name:"Tuyen Quang"},"VN-05":{type:"Province",name:"Son La"},"VN-06":{type:"Province",name:"Yen Bai"},"VN-70":{type:"Province",name:"Vinh Phuc"},"VN-71":{type:"Province",name:"Dien Bien"},"VN-13":{type:"Province",name:"Quang Ninh"},"VN-73":{type:"Province",name:"Hau Giang"},"VN-72":{type:"Province",name:"Dak Nong"},"VN-59":{type:"Province",name:"Ca Mau"},"VN-58":{type:"Province",name:"Binh Phuoc"},"VN-57":{type:"Province",name:"Binh Duong"},"VN-56":{type:"Province",name:"Bac Ninh"},"VN-55":{type:"Province",name:"Bac Lieu"},"VN-54":{type:"Province",name:"Bac Giang"},"VN-53":{type:"Province",name:"Bac Can"},"VN-52":{type:"Province",name:"Soc Trang"},"VN-51":{type:"Province",name:"Tra Vinh"},"VN-50":{type:"Province",name:"Ben Tre"},"VN-67":{type:"Province",name:"Nam Dinh"},"VN-39":{type:"Province",name:"Dong Nai"},"VN-35":{type:"Province",name:"Lam Dong"},"VN-34":{type:"Province",name:"Khanh Hoa"},"VN-37":{type:"Province",name:"Tay Ninh"},"VN-36":{type:"Province",name:"Ninh Thuan"},"VN-31":{type:"Province",name:"Binh Dinh"},"VN-30":{type:"Province",name:"Gia Lai"},"VN-33":{type:"Province",name:"Dac Lac"},"VN-14":{type:"Province",name:"Hoa Binh"},"VN-15":{type:"Province",name:"Ha Tay"},"VN-CT":{type:"municipality",name:"Can Tho"},"VN-32":{type:"Province",name:"Phu Yen"},"VN-69":{type:"Province",name:"Thai Nguyen"},"VN-HP":{type:"municipality",name:"Hai Phong"},"VN-09":{type:"Province",name:"Lang Son"},"VN-04":{type:"Province",name:"Cao Bang"},"VN-63":{type:"Province",name:"Ha Nam"},"VN-HN":{type:"municipality",name:"Ha Noi"},"VN-61":{type:"Province",name:"Hai Duong"},"VN-66":{type:"Province",name:"Hung Yen"},"VN-01":{type:"Province",name:"Lai Chau"},"VN-02":{type:"Province",name:"Lao Cai"},"VN-03":{type:"Province",name:"Ha Giang"},"VN-40":{type:"Province",name:"Binh Thuan"},"VN-41":{type:"Province",name:"Long An"},"VN-68":{type:"Province",name:"Phu Tho"},"VN-43":{type:"Province",name:"Ba Ria-Vung Tau"},"VN-44":{type:"Province",name:"An Giang"},"VN-45":{type:"Province",name:"Dong Thap"},"VN-46":{type:"Province",name:"Tien Giang"},"VN-47":{type:"Province",name:"Kien Giang"}}},SB:{name:"Solomon Islands",sub:{"SB-TE":{type:"province",name:"Temotu"},"SB-IS":{type:"province",name:"Isabel"},"SB-ML":{type:"province",name:"Malaita"},"SB-MK":{type:"province",name:"Makira"},"SB-CH":{type:"province",name:"Choiseul"},"SB-GU":{type:"province",name:"Guadalcanal"},"SB-CT":{type:"capital territory",name:"Capital Territory (Honiara)"},"SB-RB":{type:"province",name:"Rennell and Bellona"},"SB-WE":{type:"province",name:"Western"},"SB-CE":{type:"province",name:"Central"}}},ET:{name:"Ethiopia",sub:{"ET-BE":{type:"state",name:"Binshangul Gumuz"},"ET-OR":{type:"state",name:"Oromiya"},"ET-TI":{type:"state",name:"Tigray"},"ET-HA":{type:"state",name:"Hareri Hizb"},"ET-DD":{type:"administration",name:"Dire Dawa"},"ET-AM":{type:"state",name:"Amara"},"ET-AA":{type:"administration",name:"Adis Abeba"},"ET-AF":{type:"state",name:"Afar"},"ET-GA":{type:"state",name:"Gambela Hizboch"},"ET-SN":{type:"state",name:"YeDebub Biheroch Bihereseboch na Hizboch"},"ET-SO":{type:"state",name:"Sumale"}}},SO:{name:"Somalia",sub:{"SO-SO":{type:"Region",name:"Sool"},"SO-BK":{type:"Region",name:"Bakool"},"SO-WO":{type:"Region",name:"Woqooyi Galbeed"},"SO-BN":{type:"Region",name:"Banaadir"},"SO-TO":{type:"Region",name:"Togdheer"},"SO-MU":{type:"Region",name:"Mudug"},"SO-BY":{type:"Region",name:"Bay"},"SO-HI":{type:"Region",name:"Hiiraan"},"SO-JD":{type:"Region",name:"Jubbada Dhexe"},"SO-SA":{type:"Region",name:"Sanaag"},"SO-AW":{type:"Region",name:"Awdal"},"SO-SH":{type:"Region",name:"Shabeellaha Hoose"},"SO-JH":{type:"Region",name:"Jubbada Hoose"},"SO-NU":{type:"Region",name:"Nugaal"},"SO-GA":{type:"Region",name:"Galguduud"},"SO-SD":{type:"Region",name:"Shabeellaha Dhexe"},"SO-BR":{type:"Region",name:"Bari"},"SO-GE":{type:"Region",name:"Gedo"}}},ZW:{name:"Zimbabwe",sub:{"ZW-BU":{type:"City",name:"Bulawayo"},"ZW-HA":{type:"City",name:"Harare"},"ZW-MS":{type:"Province",name:"Matabeleland South"},"ZW-MV":{type:"Province",name:"Masvingo"},"ZW-MW":{type:"Province",name:"Mashonaland West"},"ZW-MI":{type:"Province",name:"Midlands"},"ZW-MN":{type:"Province",name:"Matabeleland North"},"ZW-MA":{type:"Province",name:"Manicaland"},"ZW-MC":{type:"Province",name:"Mashonaland Central"},"ZW-ME":{type:"Province",name:"Mashonaland East"}}},SA:{name:"Saudi Arabia",sub:{"SA-08":{type:"Region",name:"Al Ḩudūd ash Shamālīyah"},"SA-09":{type:"Region",name:"Jizan"},"SA-14":{type:"Region",name:"?Asir"},"SA-07":{type:"Region",name:"Tabuk"},"SA-01":{type:"Region",name:"Ar Riyāḑ"},"SA-02":{type:"Region",name:"Makkah"},"SA-03":{type:"Region",name:"Al Madinah"},"SA-04":{type:"Region",name:"Ash Sharqiyah"},"SA-05":{type:"Region",name:"Al Qasim"},"SA-11":{type:"Region",name:"Al Bāḩah"},"SA-12":{type:"Region",name:"Al Jawf"},"SA-06":{type:"Region",name:"?a'il"},"SA-10":{type:"Region",name:"Najran"}}},ES:{name:"Spain",sub:{"ES-NA":{type:"province",name:"Navarra"},"ES-BI":{type:"province",name:"Vizcaya"},"ES-TF":{type:"province",name:"Santa Cruz de Tenerife"},"ES-EX":{type:"autonomous community",name:"Extremadura"},"ES-VA":{type:"province",name:"Valladolid"},"ES-A":{type:"province",name:"Alicante"},"ES-ZA":{type:"province",name:"Zamora"},"ES-VI":{type:"province",name:"Álava"},"ES-Z":{type:"province",name:"Zaragoza"},"ES-O":{type:"province",name:"Asturias"},"ES-IB":{type:"autonomous community",name:"Illes Balears"},"ES-M":{type:"province",name:"Madrid"},"ES-L":{type:"province",name:"Lleida"},"ES-J":{type:"province",name:"Jaén"},"ES-H":{type:"province",name:"Huelva"},"ES-AS":{type:"autonomous community",name:"Asturias, Principado de"},"ES-CT":{type:"autonomous community",name:"Catalunya"},"ES-C":{type:"province",name:"A Coruña"},"ES-B":{type:"province",name:"Barcelona"},"ES-CS":{type:"province",name:"Castellón"},"ES-CR":{type:"province",name:"Ciudad Real"},"ES-CM":{type:"autonomous community",name:"Castilla-La Mancha"},"ES-CL":{type:"autonomous community",name:"Castilla y León"},"ES-CO":{type:"province",name:"Córdoba"},"ES-CN":{type:"",name:"Canarias"},"ES-MC":{type:"autonomous community",name:"Murcia, Región de"},"ES-AN":{type:"",name:"Andalucía"},"ES-MA":{type:"province",name:"Málaga"},"ES-AL":{type:"province",name:"Almería"},"ES-CE":{type:"Autonomous city",name:"Ceuta"},"ES-PM":{type:"province",name:"Baleares"},"ES-T":{type:"province",name:"Tarragona"},"ES-ML":{type:"Autonomous city",name:"Melilla"},"ES-S":{type:"province",name:"Cantabria"},"ES-TE":{type:"province",name:"Teruel"},"ES-CC":{type:"province",name:"Cáceres"},"ES-CB":{type:"autonomous community",name:"Cantabria"},"ES-GA":{type:"autonomous community",name:"Galicia"},"ES-PO":{type:"province",name:"Pontevedra"},"ES-GC":{type:"province",name:"Las Palmas"},"ES-RI":{type:"autonomous community",name:""},"ES-GI":{type:"province",name:"Girona"},"ES-TO":{type:"province",name:"Toledo"},"ES-MU":{type:"province",name:"Murcia"},"ES-GR":{type:"province",name:"Granada"},"ES-GU":{type:"province",name:"Guadalajara"},"ES-MD":{type:"autonomous community",name:"Madrid, Comunidad de"},"ES-AB":{type:"province",name:"Albacete"},"ES-PV":{type:"autonomous community",name:"País Vasco"},"ES-AR":{type:"",name:""},"ES-VC":{type:"autonomous community",name:"Valenciana, Comunidad"},"ES-SO":{type:"province",name:"Soria"},"ES-OR":{type:"province",name:"Ourense"},"ES-LU":{type:"province",name:"Lugo"},"ES-AV":{type:"province",name:"Ávila"},"ES-SE":{type:"province",name:"Sevilla"},"ES-CA":{type:"province",name:"Cádiz"},"ES-SG":{type:"province",name:"Segovia"},"ES-BU":{type:"province",name:"Burgos"},"ES-SA":{type:"province",name:"Salamanca"},"ES-V":{type:"province",name:"Valencia"},"ES-CU":{type:"province",name:"Cuenca"},"ES-P":{type:"province",name:"Palencia"},"ES-LE":{type:"province",name:"León"},"ES-NC":{type:"autonomous community",name:"Navarra, Comunidad Foral de"},"ES-HU":{type:"province",name:"Huesca"},"ES-LO":{type:"province",name:"La Rioja"},"ES-SS":{type:"province",name:"Guipúzcoa"},"ES-BA":{type:"province",name:"Badajoz"}}},ER:{name:"Eritrea",sub:{"ER-AN":{type:"Region",name:"Anseba"},"ER-MA":{type:"Region",name:"Ma’ĭkel"},"ER-DU":{type:"Region",name:"Debub"},"ER-DK":{type:"Region",name:"Debubawi K’eyyĭḥ Baḥri"},"ER-SK":{type:"Region",name:"Semienawi K’eyyĭḥ Baḥri"},"ER-GB":{type:"Region",name:"Gash-Barka"}}},ME:{name:"Montenegro",sub:{"ME-06":{type:"Commune",name:"Cetinje"},"ME-07":{type:"Commune",name:"Danilovgrad"},"ME-04":{type:"Commune",name:"Bijelo Polje"},"ME-05":{type:"Commune",name:"Budva"},"ME-02":{type:"Commune",name:"Bar"},"ME-03":{type:"Commune",name:"Berane"},"ME-13":{type:"Commune",name:"Plav"},"ME-01":{type:"Commune",name:"Andrijevica"},"ME-20":{type:"Commune",name:"Ulcinj"},"ME-12":{type:"Commune",name:"Nikšic´"},"ME-19":{type:"Commune",name:"Tivat"},"ME-17":{type:"Commune",name:"Rožaje"},"ME-08":{type:"Commune",name:"Herceg-Novi"},"ME-09":{type:"Commune",name:"Kolašin"},"ME-15":{type:"Commune",name:"Plužine"},"ME-14":{type:"Commune",name:"Pljevlja"},"ME-16":{type:"Commune",name:"Podgorica"},"ME-18":{type:"Commune",name:"Šavnik"},"ME-11":{type:"Commune",name:"Mojkovac"},"ME-21":{type:"Commune",name:"Žabljak"},"ME-10":{type:"Commune",name:"Kotor"}}},MD:{name:"Moldova",sub:{"MD-LE":{type:"district",name:"Leova"},"MD-SN":{type:"territorial unit",name:"Stînga Nistrului, unitatea teritoriala din"},"MD-TE":{type:"district",name:"Teleneşti"},"MD-IA":{type:"district",name:"Ialoveni"},"MD-TA":{type:"district",name:"Taraclia"},"MD-OC":{type:"district",name:"Ocniţa"},"MD-RI":{type:"district",name:"Rîşcani"},"MD-ED":{type:"district",name:"Edinet"},"MD-RE":{type:"district",name:"Rezina"},"MD-OR":{type:"district",name:"Orhei"},"MD-CL":{type:"district",name:"Călăraşi"},"MD-CM":{type:"district",name:"Cimişlia"},"MD-GL":{type:"district",name:"Glodeni"},"MD-CA":{type:"district",name:"Cahul"},"MD-AN":{type:"district",name:"Anenii Noi"},"MD-UN":{type:"district",name:"Ungheni"},"MD-CR":{type:"district",name:"Criuleni"},"MD-CS":{type:"district",name:"Căuşeni"},"MD-CT":{type:"district",name:"Cantemir"},"MD-CU":{type:"city",name:"Chisinau"},"MD-HI":{type:"district",name:"Hînceşti"},"MD-DU":{type:"district",name:"Dubăsari"},"MD-NI":{type:"district",name:"Nisporeni"},"MD-ST":{type:"district",name:"Străşeni"},"MD-SV":{type:"district",name:"Ştefan Vodă"},"MD-DR":{type:"district",name:"Drochia"},"MD-SI":{type:"district",name:"Sîngerei"},"MD-DO":{type:"district",name:"Donduşeni"},"MD-SO":{type:"district",name:"Soroca"},"MD-FL":{type:"district",name:"Floreşti"},"MD-FA":{type:"district",name:"Făleşti"},"MD-SD":{type:"district",name:"Şoldăneşti"},"MD-GA":{type:"autonomous territorial unit",name:"Gagauzia, Unitatea teritoriala autonoma (UTAG)"},"MD-BD":{type:"city",name:"Tighina"},"MD-BA":{type:"city",name:"Bălţi"},"MD-BS":{type:"district",name:"Basarabeasca"},"MD-BR":{type:"district",name:"Briceni"}}},MG:{name:"Madagascar",sub:{"MG-A":{type:"Province",name:"Toamasina"},"MG-F":{type:"Province",name:"Fianarantsoa"},"MG-D":{type:"Province",name:"Antsiranana"},"MG-M":{type:"Province",name:"Mahajanga"},"MG-U":{type:"Province",name:"Toliara"},"MG-T":{type:"Province",name:"Antananarivo"}}},MA:{name:"Morocco",sub:{"MA-RAB":{type:"prefecture",name:"Rabat"},"MA-MMD":{type:"prefecture",name:"Marrakech-Medina"},"MA-AOU":{type:"prefecture",name:"Aousserd"},"MA-BEM":{type:"province",name:"Beni Mellal"},"MA-CAS":{type:"prefecture",name:"Casablanca *"},"MA-SAF":{type:"province",name:"Safi"},"MA-FIG":{type:"province",name:"Figuig"},"MA-SAL":{type:"prefecture",name:"Connaught Salé"},"MA-JDI":{type:"province",name:"El Jadida"},"MA-LAR":{type:"province",name:"Larache"},"MA-SKH":{type:"prefecture",name:"Skhirate-Témara"},"MA-LAA":{type:"province",name:"Laâyoune*"},"MA-GUE":{type:"province",name:"Guelmim"},"MA-HOC":{type:"province",name:"Al Hoceïma"},"MA-KHN":{type:"province",name:"Khenifra"},"MA-KHO":{type:"province",name:"Khouribga"},"MA-TAR":{type:"province",name:"Taroudant"},"MA-ESM":{type:"province",name:"Es Smara (EH)"},"MA-BER":{type:"province",name:"Berkane"},"MA-BES":{type:"province",name:"Ben Slimane"},"MA-ESI":{type:"province",name:"Essaouira"},"MA-SET":{type:"province",name:"Settat"},"MA-CHT":{type:"",name:"Chtouka-Ait Baha"},"MA-AZI":{type:"province",name:"Azilal"},"MA-NOU":{type:"province",name:"Nouaceur"},"MA-MOH":{type:"prefecture",name:"Mohammadia"},"MA-TAO":{type:"province",name:"Taounate"},"MA-12":{type:"Region",name:"Tadla-Azilal"},"MA-MOU":{type:"",name:"Moulay Yacoub"},"MA-KHE":{type:"province",name:"Khemisset"},"MA-11":{type:"Region",name:"Marrakech-Tensift-Al Haouz"},"MA-10":{type:"Region",name:"Doukkala-Abda"},"MA-13":{type:"Region",name:"Souss-Massa-Draa"},"MA-HAO":{type:"province",name:"Al Haouz"},"MA-15":{type:"Region",name:"Laayoune-Boujdour-Sakia El Hamra"},"MA-CHE":{type:"province",name:"Chefchaouen"},"MA-HAJ":{type:"province",name:"El Hajeb"},"MA-16":{type:"Region",name:"Oued ed Dahab-Lagouira"},"MA-CHI":{type:"province",name:"Chichaoua"},"MA-SYB":{type:"prefecture",name:"Sidi Youssef Ben Ali"},"MA-TNT":{type:"province",name:"Tan-Tan"},"MA-14":{type:"Region",name:"Guelmim-Es Smar"},"MA-KES":{type:"province",name:"Kelaat es Sraghna"},"MA-TAI":{type:"province",name:"Taourirt"},"MA-JRA":{type:"province",name:"Jrada"},"MA-MED":{type:"province",name:"Mediouna"},"MA-06":{type:"Region",name:"Meknes-Tafilalet"},"MA-ASZ":{type:"province",name:"Assa-Zag"},"MA-TNG":{type:"prefecture",name:"Tanger-Assilah"},"MA-SEF":{type:"",name:"Sefrou"},"MA-MMN":{type:"prefecture",name:"Marrakech-Menara"},"MA-TAZ":{type:"province",name:"Taza"},"MA-INE":{type:"prefecture",name:"Inezgane-Ait Melloul"},"MA-NAD":{type:"province",name:"Nador"},"MA-ERR":{type:"province",name:"Errachidia"},"MA-TAT":{type:"province",name:"Tata"},"MA-IFR":{type:"province",name:"Ifrane"},"MA-KEN":{type:"province",name:"Kénitra"},"MA-AGD":{type:"prefecture",name:"Agadir-Ida-Outanane"},"MA-SIK":{type:"province",name:"Sidi Kacem"},"MA-OUJ":{type:"prefecture",name:"Oujda*"},"MA-FES":{type:"prefecture",name:"Fès-Dar-Dbibegh"},"MA-OUD":{type:"province",name:"Oued ed Dahab (EH)"},"MA-MEK":{type:"prefecture",name:"Meknès"},"MA-OUA":{type:"province",name:"Ouarzazate"},"MA-ZAG":{type:"province",name:"Zagora"},"MA-02":{type:"Region",name:"Gharb-Chrarda-Beni Hssen"},"MA-03":{type:"Region",name:"Taza-Al Hoceima-Taounate"},"MA-01":{type:"Region",name:"Tanger-Tetouan"},"MA-BOD":{type:"province",name:"Boujdour (EH)"},"MA-07":{type:"Region",name:"Rabat-Salé-Zemmour-Zaer"},"MA-04":{type:"Rerion",name:"L'Oriental"},"MA-05":{type:"Region",name:"Fes-Boulemane"},"MA-08":{type:"Region",name:"Grand Casablanca"},"MA-09":{type:"Region",name:"Chaouia-Ouardigh"},"MA-BOM":{type:"province",name:"Boulemane"},"MA-FAH":{type:"prefecture",name:"Fahs-Beni Makada"},"MA-TIZ":{type:"province",name:"Tiznit"}}},MC:{name:"Monaco",sub:{"MC-MO":{type:"quarter",name:"Monaco-Ville"},"MC-VR":{type:"quarter",name:"Vallon de la Rousse"},"MC-FO":{type:"quarter",name:"Fontvieille"},"MC-SR":{type:"quarter",name:"Saint-Roman"},"MC-GA":{type:"quarter",name:"La Gare"},"MC-CL":{type:"quarter",name:"La Colle"},"MC-CO":{type:"quarter",name:"La Condamine"},"MC-MC":{type:"quarter",name:"Monte-Carlo"},"MC-MA":{type:"quarter",name:"Malbousquet"},"MC-MG":{type:"quarter",name:"Moneghetti"},"MC-SD":{type:"quarter",name:"Sainte-Dévote"},"MC-PH":{type:"quarter",name:"Port-Hercule"},"MC-LA":{type:"quarter",name:"Larvotto"},"MC-SO":{type:"quarter",name:"La Source"},"MC-JE":{type:"quarter",name:"Jardin Exotique"},"MC-MU":{type:"quarter",name:"Moulins"},"MC-SP":{type:"quarter",name:"Spélugues"}}},UZ:{name:"Uzbekistan",sub:{"UZ-QA":{type:"region",name:"Qashqadaryo"},"UZ-FA":{type:"region",name:"Farg‘ona"},"UZ-JI":{type:"region",name:"Jizzax"},"UZ-TO":{type:"region",name:"Toshkent"},"UZ-NW":{type:"region",name:"Navoiy"},"UZ-SU":{type:"region",name:"Surxondaryo"},"UZ-XO":{type:"region",name:"Xorazm"},"UZ-QR":{type:"republic",name:"Qoraqalpog‘iston Respublikasi"},"UZ-SI":{type:"region",name:"Sirdaryo"},"UZ-TK":{type:"city",name:"Toshkent City"},"UZ-NG":{type:"region",name:"Namangan"},"UZ-SA":{type:"region",name:"Samarqand"},"UZ-BU":{type:"region",name:"Buxoro"},"UZ-AN":{type:"region",name:"Andijon"}}},MM:{name:"Myanmar",sub:{"MM-05":{type:"division",name:"Tanintharyi"},"MM-15":{type:"state",name:"Mon"},"MM-07":{type:"division",name:"Ayeyarwady"},"MM-04":{type:"division",name:"Mandalay"},"MM-16":{type:"state",name:"Rakhine"},"MM-11":{type:"state",name:"Kachin"},"MM-03":{type:"division",name:"Magway"},"MM-13":{type:"state",name:"Kayin"},"MM-12":{type:"state",name:"Kayah"},"MM-06":{type:"division",name:"Yangon"},"MM-01":{type:"division",name:"Sagaing"},"MM-14":{type:"state",name:"Chin"},"MM-02":{type:"division",name:"Bago"},"MM-17":{type:"state",name:"Shan"}}},ML:{name:"Mali",sub:{"ML-BKO":{type:"district",name:"Bamako"},"ML-1":{type:"region",name:"Kayes"},"ML-2":{type:"region",name:"Koulikoro"},"ML-3":{type:"region",name:"Sikasso"},"ML-4":{type:"region",name:"Ségou"},"ML-5":{type:"region",name:"Mopti"},"ML-6":{type:"region",name:"Tombouctou"},"ML-7":{type:"region",name:"Gao"},"ML-8":{type:"region",name:"Kidal"}}},MO:{name:"Macao",sub:{"MO-I":{type:"",name:"Ilhas"},"MO-M":{type:"",name:"Macau"}}},MN:{name:"Mongolia",sub:{"MN-073":{type:"province",name:"Arhangay"},"MN-061":{type:"province",name:"Dornod"},"MN-039":{type:"province",name:"Hentiy"},"MN-071":{type:"province",name:"Bayan-Ölgiy"},"MN-059":{type:"province",name:"Dundgovi"},"MN-057":{type:"province",name:"Dzavhan"},"MN-055":{type:"province",name:"Övörhangay"},"MN-053":{type:"province",name:"Ömnögovi"},"MN-051":{type:"province",name:"Sühbaatar"},"MN-035":{type:"municipality",name:"Orhon"},"MN-037":{type:"municipality",name:"Darhan uul"},"MN-1":{type:"municipality",name:"Ulaanbaatar"},"MN-041":{type:"province",name:"Hövsgöl"},"MN-064":{type:"municipality",name:"Govi-Sümber"},"MN-043":{type:"province",name:"Hovd"},"MN-063":{type:"province",name:"Dornogovi"},"MN-046":{type:"province",name:"Uvs"},"MN-047":{type:"province",name:"Töv"},"MN-049":{type:"province",name:"Selenge"},"MN-069":{type:"province",name:"Bayanhongor"},"MN-067":{type:"province",name:"Bulgan"},"MN-065":{type:"province",name:"Govi-Altay"}}},MH:{name:"Marshall Islands",sub:{"MH-RON":{type:"Municipality",name:"Rongelap"},"MH-KWA":{type:"Municipality",name:"Kwajalein"},"MH-MAL":{type:"Municipality",name:"Maloelap"},"MH-WTH":{type:"Municipality",name:"Wotho"},"MH-WTJ":{type:"Municipality",name:"Wotje"},"MH-L":{type:"Chain of Islands",name:"Ralik chain"},"MH-ENI":{type:"Municipality",name:"Enewetak"},"MH-UTI":{type:"Municipality",name:"Utirik"},"MH-T":{type:"Chain of Islands",name:"Ratak chain"},"MH-AUR":{type:"Municipality",name:"Aur"},"MH-JAL":{type:"Municipality",name:"Jaluit"},"MH-UJA":{type:"Municipality",name:"Ujae"},"MH-JAB":{type:"Municipality",name:"Jabat"},"MH-ALK":{type:"Municipality",name:"Ailuk"},"MH-NMU":{type:"Municipality",name:"Namu"},"MH-ALL":{type:"Municipality",name:"Ailinglaplap"},"MH-MEJ":{type:"Municipality",name:"Mejit"},"MH-LAE":{type:"Municipality",name:"Lae"},"MH-EBO":{type:"Municipality",name:"Ebon"},"MH-KIL":{type:"Municipality",name:"Kili"},"MH-NMK":{type:"Municipality",name:"Namdrik"},"MH-ARN":{type:"Municipality",name:"Arno"},"MH-MAJ":{type:"Municipality",name:"Majuro"},"MH-MIL":{type:"Municipality",name:"Mili"},"MH-LIB":{type:"Municipality",name:"Lib"},"MH-LIK":{type:"Municipality",name:"Likiep"}}},MK:{name:"Macedonia, the Former Yugoslav Republic Of",sub:{"MK-32":{type:"municipality",name:"Zelenikovo"},"MK-10":{type:"municipality",name:"Valandovo"},"MK-45":{type:"municipality",name:"Krivogaštani"},"MK-59":{type:"municipality",name:"Petrovec"},"MK-68":{type:"municipality",name:"Saraj"},"MK-31":{type:"municipality",name:"Zajas"},"MK-65":{type:"municipality",name:"Rankovce"},"MK-64":{type:"municipality",name:"Radoviš"},"MK-16":{type:"municipality",name:"Vrapčište"},"MK-04":{type:"municipality",name:"Bitola"},"MK-05":{type:"municipality",name:"Bogdanci"},"MK-06":{type:"municipality",name:"Bogovinje"},"MK-07":{type:"municipality",name:"Bosilovo"},"MK-66":{type:"municipality",name:"Resen"},"MK-01":{type:"municipality",name:"Aerodrom"},"MK-02":{type:"municipality",name:"Aračinovo"},"MK-03":{type:"municipality",name:"Berovo"},"MK-40":{type:"municipality",name:"Kičevo"},"MK-41":{type:"municipality",name:"Konče"},"MK-42":{type:"municipality",name:"Kočani"},"MK-43":{type:"municipality",name:"Kratovo"},"MK-08":{type:"municipality",name:"Brvenica"},"MK-09":{type:"municipality",name:"Butel"},"MK-46":{type:"municipality",name:"Kruševo"},"MK-47":{type:"municipality",name:"Kumanovo"},"MK-69":{type:"municipality",name:"Sveti Nikole"},"MK-33":{type:"municipality",name:"Zrnovci"},"MK-28":{type:"municipality",name:"Drugovo"},"MK-29":{type:"municipality",name:"Gjorče Petrov"},"MK-26":{type:"municipality",name:"Dojran"},"MK-27":{type:"municipality",name:"Dolneni"},"MK-24":{type:"municipality",name:"Demir Kapija"},"MK-25":{type:"municipality",name:"Demir Hisar"},"MK-22":{type:"municipality",name:"Debarca"},"MK-23":{type:"municipality",name:"Delčevo"},"MK-20":{type:"municipality",name:"Gradsko"},"MK-21":{type:"municipality",name:"Debar"},"MK-62":{type:"municipality",name:"Prilep"},"MK-30":{type:"municipality",name:"Želino"},"MK-79":{type:"municipality",name:"Čair"},"MK-80":{type:"municipality",name:"Čaška"},"MK-81":{type:"municipality",name:"Češinovo-Obleševo"},"MK-82":{type:"municipality",name:"Čučer Sandevo"},"MK-83":{type:"municipality",name:"Štip"},"MK-71":{type:"municipality",name:"Staro Nagoričane"},"MK-70":{type:"municipality",name:"Sopište"},"MK-73":{type:"municipality",name:"Strumica"},"MK-72":{type:"municipality",name:"Struga"},"MK-75":{type:"municipality",name:"Tearce"},"MK-74":{type:"municipality",name:"Studeničani"},"MK-77":{type:"municipality",name:"Centar"},"MK-58":{type:"municipality",name:"Ohrid"},"MK-57":{type:"municipality",name:"Oslomej"},"MK-78":{type:"municipality",name:"Centar Župa"},"MK-55":{type:"municipality",name:"Novaci"},"MK-54":{type:"municipality",name:"Negotino"},"MK-53":{type:"municipality",name:"Mogila"},"MK-52":{type:"municipality",name:"Makedonski Brod"},"MK-51":{type:"municipality",name:"Makedonska Kamenica"},"MK-50":{type:"municipality",name:"Mavrovo i Rostuša"},"MK-48":{type:"municipality",name:"Lipkovo"},"MK-19":{type:"municipality",name:"Gostivar"},"MK-18":{type:"municipality",name:"Gevgelija"},"MK-39":{type:"municipality",name:"Kisela Voda"},"MK-38":{type:"municipality",name:"Karpoš"},"MK-44":{type:"municipality",name:"Kriva Palanka"},"MK-49":{type:"municipality",name:"Lozovo"},"MK-35":{type:"municipality",name:"Jegunovce"},"MK-34":{type:"municipality",name:"Ilinden"},"MK-37":{type:"municipality",name:"Karbinci"},"MK-36":{type:"municipality",name:"Kavadarci"},"MK-17":{type:"municipality",name:"Gazi Baba"},"MK-60":{type:"municipality",name:"Pehčevo"},"MK-15":{type:"municipality",name:"Vraneštica"},"MK-14":{type:"municipality",name:"Vinica"},"MK-13":{type:"municipality",name:"Veles"},"MK-84":{type:"municipality",name:"Šuto Orizari"},"MK-61":{type:"municipality",name:"Plasnica"},"MK-12":{type:"municipality",name:"Vevčani"},"MK-63":{type:"municipality",name:"Probištip"},"MK-56":{type:"municipality",name:"Novo Selo"},"MK-76":{type:"municipality",name:"Tetovo"},"MK-11":{type:"municipality",name:"Vasilevo"},"MK-67":{type:"municipality",name:"Rosoman"}}},MU:{name:"Mauritius",sub:{"MU-VP":{type:"city",name:"Vacoas-Phoenix"},"MU-CC":{type:"dependency",name:"Cargados Carajos Shoals"},"MU-SA":{type:"district",name:"Savanne"},"MU-RO":{type:"dependency",name:"Rodrigues Island"},"MU-CU":{type:"city",name:"Curepipe"},"MU-PA":{type:"district",name:"Pamplemousses"},"MU-PL":{type:"district",name:"Port Louis City"},"MU-QB":{type:"city",name:"Quatre Bornes"},"MU-FL":{type:"district",name:"Flacq"},"MU-BR":{type:"city",name:"Beau Bassin-Rose Hill"},"MU-BL":{type:"district",name:"Black River"},"MU-PW":{type:"district",name:"Plaines Wilhems"},"MU-AG":{type:"dependency",name:"Agalega Islands"},"MU-PU":{type:"city",name:"Port Louis District"},"MU-RR":{type:"district",name:"Rivière du Rempart"},"MU-GP":{type:"district",name:"Grand Port"},"MU-MO":{type:"district",name:"Moka"}}},MT:{name:"Malta",sub:{"MT-58":{type:"council",name:"Ta’ Xbiex"},"MT-59":{type:"council",name:"Tarxien"},"MT-56":{type:"council",name:"Sliema"},"MT-57":{type:"council",name:"Swieqi"},"MT-54":{type:"council",name:"Santa Venera"},"MT-55":{type:"council",name:"Siġġiewi"},"MT-52":{type:"council",name:"Sannat"},"MT-53":{type:"council",name:"Santa Luċija"},"MT-50":{type:"council",name:"San Lawrenz"},"MT-51":{type:"council",name:"San Pawl il-Baħar"},"MT-68":{type:"council",name:"Żurrieq"},"MT-60":{type:"council",name:"Valletta"},"MT-48":{type:"council",name:"San Ġiljan"},"MT-38":{type:"council",name:"Naxxar"},"MT-67":{type:"council",name:"Żejtun"},"MT-39":{type:"council",name:"Paola"},"MT-01":{type:"council",name:"Attard"},"MT-63":{type:"council",name:"Xgħajra"},"MT-03":{type:"council",name:"Birgu"},"MT-02":{type:"council",name:"Balzan"},"MT-05":{type:"council",name:"Birżebbuġa"},"MT-04":{type:"council",name:"Birkirkara"},"MT-07":{type:"council",name:"Dingli"},"MT-06":{type:"council",name:"Bormla"},"MT-09":{type:"council",name:"Floriana"},"MT-08":{type:"council",name:"Fgura"},"MT-25":{type:"council",name:"Luqa"},"MT-24":{type:"council",name:"Lija"},"MT-23":{type:"council",name:"Kirkop"},"MT-22":{type:"council",name:"Kerċem"},"MT-21":{type:"council",name:"Kalkara"},"MT-20":{type:"council",name:"Isla"},"MT-46":{type:"council",name:"Rabat Malta"},"MT-49":{type:"council",name:"San Ġwann"},"MT-29":{type:"council",name:"Mdina"},"MT-45":{type:"council",name:"Rabat Għawdex(mt)"},"MT-44":{type:"council",name:"Qrendi"},"MT-47":{type:"council",name:"Safi"},"MT-28":{type:"council",name:"Marsaxlokk"},"MT-41":{type:"council",name:"Pietà"},"MT-40":{type:"council",name:"Pembroke"},"MT-43":{type:"council",name:"Qormi"},"MT-42":{type:"council",name:"Qala"},"MT-27":{type:"council",name:"Marsaskala"},"MT-66":{type:"council",name:"Żebbuġ Malta"},"MT-65":{type:"council",name:"Żebbuġ Għawdex"},"MT-26":{type:"council",name:"Marsa"},"MT-61":{type:"council",name:"Xagħra"},"MT-62":{type:"council",name:"Xewkija"},"MT-64":{type:"council",name:"Żabbar"},"MT-18":{type:"council",name:"Ħamrun"},"MT-33":{type:"council",name:"Mqabba"},"MT-12":{type:"council",name:"Gżira"},"MT-13":{type:"council",name:"Għajnsielem"},"MT-10":{type:"council",name:"Fontana"},"MT-11":{type:"council",name:"Gudja"},"MT-16":{type:"council",name:"Għasri"},"MT-17":{type:"council",name:"Għaxaq"},"MT-14":{type:"council",name:"Għarb"},"MT-15":{type:"council",name:"Għargħur"},"MT-30":{type:"council",name:"Mellieħa"},"MT-31":{type:"council",name:"Mġarr"},"MT-32":{type:"council",name:"Mosta"},"MT-19":{type:"council",name:"Iklin"},"MT-34":{type:"council",name:"Msida"},"MT-35":{type:"council",name:"Mtarfa"},"MT-36":{type:"council",name:"Munxar"},"MT-37":{type:"council",name:"Nadur"}}},MW:{name:"Malawi",sub:{"MW-CR":{type:"District",name:"Chiradzulu"},"MW-CT":{type:"District",name:"Chitipa"},"MW-CK":{type:"District",name:"Chikwawa"},"MW-KS":{type:"District",name:"Kasungu"},"MW-KR":{type:"District",name:"Karonga"},"MW-TH":{type:"District",name:"Thyolo"},"MW-NS":{type:"District",name:"Nsanje"},"MW-MC":{type:"District",name:"Mchinji"},"MW-MG":{type:"District",name:"Mangochi"},"MW-LI":{type:"District",name:"Lilongwe"},"MW-MZ":{type:"District",name:"Mzimba"},"MW-PH":{type:"District",name:"Phalombe"},"MW-MW":{type:"District",name:"Mwanza"},"MW-MU":{type:"District",name:"Mulanje"},"MW-RU":{type:"District",name:"Rumphi"},"MW-ZO":{type:"District",name:"Zomba"},"MW-DO":{type:"District",name:"Dowa"},"MW-BL":{type:"District",name:"Blantyre"},"MW-DE":{type:"District",name:"Dedza"},"MW-BA":{type:"District",name:"Balaka"},"MW-S":{type:"region",name:"Southern Region"},"MW-NK":{type:"District",name:"Nkhotakota"},"MW-NI":{type:"District",name:"Ntchisi"},"MW-SA":{type:"District",name:"Salima"},"MW-NE":{type:"district",name:"Neno"},"MW-NB":{type:"District",name:"Nkhata Bay"},"MW-N":{type:"region",name:"Northern Region"},"MW-C":{type:"region",name:"Central Region"},"MW-NU":{type:"District",name:"Ntcheu"},"MW-MH":{type:"District",name:"Machinga"},"MW-LK":{type:"District",name:"Likoma"}}},MV:{name:"Maldives",sub:{"MV-26":{type:"administrative atoll",name:"Kaafu"},"MV-05":{type:"administrative atoll",name:"Laamu"},"MV-NO":{type:"Province",name:"North"},"MV-NC":{type:"Province",name:"North Central"},"MV-SU":{type:"Province",name:"South"},"MV-08":{type:"administrative atoll",name:"Thaa"},"MV-29":{type:"administrative atoll",name:"Gnaviyani"},"MV-28":{type:"administrative atoll",name:"Gaafu Dhaalu"},"MV-03":{type:"administrative atoll",name:"Lhaviyani"},"MV-02":{type:"administrative atoll",name:"Alif"},"MV-27":{type:"administrative atoll",name:"Gaaf Alif"},"MV-00":{type:"",name:"Alif Dhaal"},"MV-07":{type:"administrative atoll",name:"Haa Alif"},"MV-20":{type:"administrative atoll",name:"Baa"},"MV-23":{type:"administrative atoll",name:"Haa Dhaalu"},"MV-04":{type:"administrative atoll",name:"Vaavu"},"MV-MLE":{type:"capital",name:"Male"},"MV-SC":{type:"Province",name:"South Central"},"MV-UN":{type:"Province",name:"Upper North"},"MV-14":{type:"administrative atoll",name:"Faafu"},"MV-17":{type:"administrative atoll",name:"Dhaalu"},"MV-12":{type:"administrative atoll",name:"Meemu"},"MV-13":{type:"administrative atoll",name:"Raa"},"MV-US":{type:"Province",name:"Upper South"},"MV-CE":{type:"Province",name:"Central"},"MV-25":{type:"administrative atoll",name:"Noonu"},"MV-24":{type:"administrative atoll",name:"Shaviyani"},"MV-01":{type:"administrative atoll",name:"Seenu"}}},MR:{name:"Mauritania",sub:{"MR-07":{type:"region",name:"Adrar"},"MR-10":{type:"region",name:"Guidimaka"},"MR-05":{type:"region",name:"Brakna"},"MR-04":{type:"region",name:"Gorgol"},"MR-03":{type:"region",name:"Assaba"},"MR-02":{type:"region",name:"Hodh el Gharbi"},"MR-01":{type:"region",name:"Hodh ech Chargui"},"MR-11":{type:"region",name:"Tiris Zemmour"},"MR-NKC":{type:"district",name:"Nouakchott"},"MR-12":{type:"region",name:"Inchiri"},"MR-09":{type:"region",name:"Tagant"},"MR-08":{type:"region",name:"Dakhlet Nouâdhibou"},"MR-06":{type:"region",name:"Trarza"}}},UG:{name:"Uganda",sub:{"UG-215":{type:"District",name:"Sironko"},"UG-208":{type:"District",name:"Kumi"},"UG-418":{type:"District",name:"Kiruhura"},"UG-110":{type:"District",name:"Rakai"},"UG-212":{type:"District",name:"Tororo"},"UG-222":{type:"District",name:"Namutumba"},"UG-221":{type:"District",name:"Manafwa"},"UG-308":{type:"District",name:"Moroto"},"UG-203":{type:"District",name:"Iganga"},"UG-202":{type:"District",name:"Busia"},"UG-201":{type:"District",name:"Bugiri"},"UG-207":{type:"District",name:"Katakwi"},"UG-206":{type:"District",name:"Kapchorwa"},"UG-205":{type:"District",name:"Kamuli"},"UG-417":{type:"District",name:"Isingiro"},"UG-101":{type:"District",name:"Kalangala"},"UG-102":{type:"District",name:"Kampala"},"UG-103":{type:"District",name:"Kiboga"},"UG-104":{type:"District",name:"Luwero"},"UG-105":{type:"District",name:"Masaka"},"UG-106":{type:"District",name:"Mpigi"},"UG-107":{type:"District",name:"Mubende"},"UG-405":{type:"District",name:"Kabarole"},"UG-404":{type:"District",name:"Kabale"},"UG-407":{type:"District",name:"Kibaale"},"UG-406":{type:"District",name:"Kasese"},"UG-401":{type:"District",name:"Bundibugyo"},"UG-403":{type:"District",name:"Hoima"},"UG-402":{type:"District",name:"Bushenyi"},"UG-302":{type:"District",name:"Apac"},"UG-303":{type:"District",name:"Arua"},"UG-223":{type:"District",
name:"Bududa"},"UG-301":{type:"District",name:"Adjumani"},"UG-306":{type:"District",name:"Kotido"},"UG-224":{type:"District",name:"Bukedea"},"UG-304":{type:"District",name:"Gulu"},"UG-305":{type:"District",name:"Kitgum"},"UG-108":{type:"District",name:"Mukono"},"UG-N":{type:"geographic regions",name:"Northern"},"UG-109":{type:"District",name:"Nakasongola"},"UG-C":{type:"geographic regions",name:"Central"},"UG-312":{type:"District",name:"Pader"},"UG-E":{type:"geographic regions",name:"Eastern"},"UG-116":{type:"District",name:"Lyantonde"},"UG-115":{type:"District",name:"Nakaseke"},"UG-114":{type:"District",name:"Mityana"},"UG-113":{type:"District",name:"Wakiso"},"UG-112":{type:"District",name:"Kayunga"},"UG-111":{type:"District",name:"Sembabule"},"UG-220":{type:"District",name:"Kaliro"},"UG-211":{type:"District",name:"Soroti"},"UG-320":{type:"District",name:"Maracha"},"UG-W":{type:"geographic regions",name:"Western"},"UG-209":{type:"District",name:"Mbale"},"UG-321":{type:"District",name:"Oyam"},"UG-214":{type:"District",name:"Mayuge"},"UG-416":{type:"District",name:"Ibanda"},"UG-216":{type:"District",name:"Amuria"},"UG-217":{type:"District",name:"Budaka"},"UG-210":{type:"District",name:"Pallisa"},"UG-307":{type:"District",name:"Lira"},"UG-309":{type:"District",name:"Moyo"},"UG-213":{type:"District",name:"Kaberamaido"},"UG-409":{type:"District",name:"Masindi"},"UG-204":{type:"District",name:"Jinja"},"UG-218":{type:"District",name:"Bukwa"},"UG-219":{type:"District",name:"Butaleja"},"UG-408":{type:"District",name:"Kisoro"},"UG-319":{type:"District",name:"Amuru"},"UG-318":{type:"District",name:"Dokolo"},"UG-414":{type:"District",name:"Kanungu"},"UG-415":{type:"District",name:"Kyenjojo"},"UG-412":{type:"District",name:"Rukungiri"},"UG-413":{type:"District",name:"Kamwenge"},"UG-410":{type:"District",name:"Mbarara"},"UG-411":{type:"District",name:"Ntungamo"},"UG-311":{type:"District",name:"Nakapiripirit"},"UG-310":{type:"District",name:"Nebbi"},"UG-313":{type:"District",name:"Yumbe"},"UG-316":{type:"District",name:"Koboko"},"UG-315":{type:"District",name:"Kaabong"},"UG-314":{type:"District",name:"Amolatar"},"UG-317":{type:"District",name:"Abim"},"UG-419":{type:"District",name:"Buliisa"}}},MY:{name:"Malaysia",sub:{"MY-08":{type:"state",name:"Perak"},"MY-09":{type:"state",name:"Perlis"},"MY-02":{type:"state",name:"Kedah"},"MY-03":{type:"state",name:"Kelantan"},"MY-13":{type:"state",name:"Sarawak"},"MY-01":{type:"state",name:"Johor"},"MY-06":{type:"state",name:"Pahang"},"MY-07":{type:"state",name:"Pulau Pinang"},"MY-04":{type:"state",name:"Melaka"},"MY-05":{type:"state",name:"Negeri Sembilan"},"MY-11":{type:"state",name:"Terengganu"},"MY-10":{type:"state",name:"Selangor"},"MY-14":{type:"federal territory",name:"Wilayah Persekutuan Kuala Lumpur"},"MY-16":{type:"federal territory",name:"Wilayah Persekutuan Putrajaya"},"MY-15":{type:"federal territory",name:"Wilayah Persekutuan Labuan"},"MY-12":{type:"state",name:"Sabah"}}},MX:{name:"Mexico",sub:{"MX-JAL":{type:"state",name:"Jalisco"},"MX-MEX":{type:"state",name:"México"},"MX-DUR":{type:"state",name:"Durango"},"MX-TAB":{type:"state",name:"Tabasco"},"MX-GUA":{type:"state",name:"Guanajuato"},"MX-SIN":{type:"state",name:"Sinaloa"},"MX-BCS":{type:"state",name:"Baja California Sur"},"MX-NAY":{type:"state",name:"Nayarit"},"MX-AGU":{type:"state",name:"Aguascalientes"},"MX-ROO":{type:"state",name:"Quintana Roo"},"MX-NLE":{type:"state",name:"Nuevo León"},"MX-BCN":{type:"state",name:"Baja California"},"MX-SON":{type:"state",name:"Sonora"},"MX-MOR":{type:"state",name:"Morelos"},"MX-MIC":{type:"state",name:"Michoacán"},"MX-CAM":{type:"state",name:"Campeche"},"MX-COA":{type:"state",name:"Coahuila"},"MX-QUE":{type:"state",name:"Querétaro"},"MX-COL":{type:"state",name:"Colima"},"MX-TAM":{type:"state",name:"Tamaulipas"},"MX-YUC":{type:"state",name:"Yucatán"},"MX-PUE":{type:"state",name:"Puebla"},"MX-HID":{type:"state",name:"Hidalgo"},"MX-CHP":{type:"state",name:"Chiapas"},"MX-TLA":{type:"state",name:"Tlaxcala"},"MX-GRO":{type:"state",name:"Guerrero"},"MX-CHH":{type:"state",name:"Chihuahua"},"MX-VER":{type:"state",name:"Veracruz"},"MX-ZAC":{type:"state",name:"Zacatecas"},"MX-SLP":{type:"state",name:"San Luis Potosí"},"MX-DIF":{type:"federal district",name:"Distrito Federal"},"MX-OAX":{type:"state",name:"Oaxaca"}}},IL:{name:"Israel",sub:{"IL-TA":{type:"District",name:"Tel-Aviv"},"IL-Z":{type:"District",name:"HaZafon"},"IL-M":{type:"District",name:"HaMerkaz"},"IL-HA":{type:"District",name:"Haifa"},"IL-D":{type:"District",name:"HaDarom"},"IL-JM":{type:"District",name:"Yerushalayim"}}},FR:{name:"France",sub:{"FR-28":{type:"metropolitan department",name:"Eure-et-Loir"},"FR-29":{type:"metropolitan department",name:"Finistère"},"FR-22":{type:"metropolitan department",name:"Côtes-d'Armor"},"FR-23":{type:"metropolitan department",name:"Creuse"},"FR-21":{type:"metropolitan department",name:"Côte-d'Or"},"FR-26":{type:"metropolitan department",name:"Drôme"},"FR-27":{type:"metropolitan department",name:"Eure"},"FR-24":{type:"metropolitan department",name:"Dordogne"},"FR-25":{type:"metropolitan department",name:"Doubs"},"FR-TF":{type:"overseas territory",name:"Terres Australes Françaises (see also separate entry under TF)"},"FR-MQ":{type:"overseas regions",name:"Martinique (see also separate entry under MQ)"},"FR-94":{type:"metropolitan department",name:"Val-de-Marne"},"FR-93":{type:"metropolitan department",name:"Seine-Saint-Denis"},"FR-92":{type:"metropolitan department",name:"Hauts-de-Seine"},"FR-91":{type:"metropolitan department",name:"Essonne"},"FR-90":{type:"metropolitan department",name:"Territoire de Belfort"},"FR-17":{type:"metropolitan department",name:"Charente-Maritime"},"FR-16":{type:"metropolitan department",name:"Charente"},"FR-15":{type:"metropolitan department",name:"Cantal"},"FR-14":{type:"metropolitan department",name:"Calvados"},"FR-13":{type:"metropolitan department",name:"Bouches-du-Rhône"},"FR-12":{type:"metropolitan department",name:"Aveyron"},"FR-11":{type:"metropolitan department",name:"Aude"},"FR-10":{type:"metropolitan department",name:"Aube"},"FR-2B":{type:"metropolitan department",name:"Haute-Corse"},"FR-2A":{type:"metropolitan department",name:"Corse-du-Sud"},"FR-MF":{type:"Overseas territorial collectivity",name:"Saint-Martin (see also separate entry under MF)"},"FR-19":{type:"metropolitan department",name:"Corrèze"},"FR-18":{type:"metropolitan department",name:"Cher"},"FR-C":{type:"Metropolitan regions",name:"Auvergne"},"FR-B":{type:"Metropolitan regions",name:"Aquitaine"},"FR-A":{type:"Metropolitan regions",name:"Alsace"},"FR-G":{type:"Metropolitan regions",name:"Champagne-Ardenne"},"FR-F":{type:"Metropolitan regions",name:"Centre"},"FR-E":{type:"Metropolitan regions",name:"Bretagne"},"FR-D":{type:"Metropolitan regions",name:"Bourgogne"},"FR-K":{type:"Metropolitan regions",name:"Languedoc-Roussillon"},"FR-81":{type:"metropolitan department",name:"Tarn"},"FR-I":{type:"Metropolitan regions",name:"Franche-Comté"},"FR-H":{type:"Metropolitan regions",name:"Corse"},"FR-O":{type:"Metropolitan regions",name:"Nord-Pas-de-Calais"},"FR-N":{type:"Metropolitan regions",name:"Midi-Pyrénées"},"FR-M":{type:"Metropolitan regions",name:"Lorraine"},"FR-87":{type:"metropolitan department",name:"Haute-Vienne"},"FR-S":{type:"Metropolitan regions",name:"Picardie"},"FR-01":{type:"metropolitan department",name:"Ain"},"FR-02":{type:"metropolitan department",name:"Aisne"},"FR-P":{type:"Metropolitan regions",name:"Basse-Normandie"},"FR-04":{type:"metropolitan department",name:"Alpes-de-Haute-Provence"},"FR-05":{type:"metropolitan department",name:"Hautes-Alpes"},"FR-06":{type:"metropolitan department",name:"Alpes-Maritimes"},"FR-07":{type:"metropolitan department",name:"Ardèche"},"FR-08":{type:"metropolitan department",name:"Ardennes"},"FR-09":{type:"metropolitan department",name:"Ariège"},"FR-BL":{type:"Overseas territorial collectivity",name:"Saint-Barthélemy (see also separate entry under BL)"},"FR-RE":{type:"overseas regions",name:"La Réunion (see also separate entry under RE)"},"FR-CP":{type:"Dependency",name:"Clipperton"},"FR-75":{type:"metropolitan department",name:"Paris"},"FR-74":{type:"metropolitan department",name:"Haute-Savoie"},"FR-77":{type:"metropolitan department",name:"Seine-et-Marne"},"FR-76":{type:"metropolitan department",name:"Seine-Maritime"},"FR-71":{type:"metropolitan department",name:"Saône-et-Loire"},"FR-70":{type:"metropolitan department",name:"Haute-Saône"},"FR-73":{type:"metropolitan department",name:"Savoie"},"FR-72":{type:"metropolitan department",name:"Sarthe"},"FR-79":{type:"metropolitan department",name:"Deux-Sèvres"},"FR-78":{type:"metropolitan department",name:"Yvelines"},"FR-88":{type:"metropolitan department",name:"Vosges"},"FR-89":{type:"metropolitan department",name:"Yonne"},"FR-YT":{type:"territorial collectivity",name:"Mayotte (see also separate entry under YT)"},"FR-66":{type:"metropolitan department",name:"Pyrénées-Orientales"},"FR-67":{type:"metropolitan department",name:"Bas-Rhin"},"FR-64":{type:"metropolitan department",name:"Pyrénées-Atlantiques"},"FR-65":{type:"metropolitan department",name:"Hautes-Pyrénées"},"FR-62":{type:"metropolitan department",name:"Pas-de-Calais"},"FR-63":{type:"metropolitan department",name:"Puy-de-Dôme"},"FR-60":{type:"metropolitan department",name:"Oise"},"FR-61":{type:"metropolitan department",name:"Orne"},"FR-68":{type:"metropolitan department",name:"Haut-Rhin"},"FR-69":{type:"metropolitan department",name:"Rhône"},"FR-80":{type:"metropolitan department",name:"Somme"},"FR-J":{type:"Metropolitan regions",name:"Île-de-France"},"FR-R":{type:"Metropolitan regions",name:"Pays-de-la-Loire"},"FR-82":{type:"metropolitan department",name:"Tarn-et-Garonne"},"FR-83":{type:"metropolitan department",name:"Var"},"FR-84":{type:"metropolitan department",name:"Vaucluse"},"FR-85":{type:"metropolitan department",name:"Vendée"},"FR-86":{type:"metropolitan department",name:"Vienne"},"FR-L":{type:"Metropolitan regions",name:"Limousin"},"FR-53":{type:"metropolitan department",name:"Mayenne"},"FR-52":{type:"metropolitan department",name:"Haute-Marne"},"FR-51":{type:"metropolitan department",name:"Marne"},"FR-50":{type:"metropolitan department",name:"Manche"},"FR-57":{type:"metropolitan department",name:"Moselle"},"FR-56":{type:"metropolitan department",name:"Morbihan"},"FR-55":{type:"metropolitan department",name:"Meuse"},"FR-54":{type:"metropolitan department",name:"Meurthe-et-Moselle"},"FR-59":{type:"metropolitan department",name:"Nord"},"FR-58":{type:"metropolitan department",name:"Nièvre"},"FR-Q":{type:"Metropolitan regions",name:"Haute-Normandie"},"FR-03":{type:"metropolitan department",name:"Allier"},"FR-V":{type:"Metropolitan regions",name:"Rhône-Alpes"},"FR-U":{type:"Metropolitan regions",name:"Provence-Alpes-Côte-d'Azur"},"FR-T":{type:"Metropolitan regions",name:"Poitou-Charentes"},"FR-NC":{type:"overseas territory",name:"Nouvelle-Calédonie (see also separate entry under NC)"},"FR-48":{type:"metropolitan department",name:"Lozère"},"FR-49":{type:"metropolitan department",name:"Maine-et-Loire"},"FR-44":{type:"metropolitan department",name:"Loire-Atlantique"},"FR-45":{type:"metropolitan department",name:"Loiret"},"FR-46":{type:"metropolitan department",name:"Lot"},"FR-47":{type:"metropolitan department",name:"Lot-et-Garonne"},"FR-40":{type:"metropolitan department",name:"Landes"},"FR-41":{type:"metropolitan department",name:"Loir-et-Cher"},"FR-42":{type:"metropolitan department",name:"Loire"},"FR-43":{type:"metropolitan department",name:"Haute-Loire"},"FR-95":{type:"metropolitan department",name:"Val-d'Oise"},"FR-GF":{type:"overseas regions",name:"Guyane (française) (see also separate entry under GF)"},"FR-PF":{type:"overseas territory",name:"Polynésie française (see also separate entry under PF)"},"FR-PM":{type:"territorial collectivity",name:"Saint-Pierre-et-Miquelon (see also separate entry under PM)"},"FR-GP":{type:"overseas regions",name:"Guadeloupe (see also separate entry under GP)"},"FR-39":{type:"metropolitan department",name:"Jura"},"FR-38":{type:"metropolitan department",name:"Isère"},"FR-31":{type:"metropolitan department",name:"Haute-Garonne"},"FR-30":{type:"metropolitan department",name:"Gard"},"FR-33":{type:"metropolitan department",name:"Gironde"},"FR-32":{type:"metropolitan department",name:"Gers"},"FR-35":{type:"metropolitan department",name:"Ille-et-Vilaine"},"FR-34":{type:"metropolitan department",name:"Hérault"},"FR-37":{type:"metropolitan department",name:"Indre-et-Loire"},"FR-36":{type:"metropolitan department",name:"Indre"},"FR-WF":{type:"overseas territory",name:"Wallis et Futuna (see also separate entry under WF)"}}},SH:{name:"Saint Helena, Ascension and Tristan Da Cunha",sub:{"SH-HL":{type:"geographical entities",name:"Saint Helena"},"SH-TA":{type:"geographical entities",name:"Tristan da Cunha"},"SH-SH":{type:"administrative area",name:"Saint Helena"},"SH-AC":{type:"geographical entities",name:"Ascension"}}},FI:{name:"Finland",sub:{"FI-10":{type:"region",name:"Lappi"},"FI-11":{type:"region",name:"Pirkanmaa"},"FI-12":{type:"region",name:"Pohjanmaa"},"FI-16":{type:"region",name:"Päijät-Häme"},"FI-17":{type:"region",name:"Satakunta"},"FI-09":{type:"region",name:"Kymenlaakso"},"FI-08":{type:"region",name:"Keski-Suomi"},"FI-18":{type:"region",name:"Uusimaa"},"FI-19":{type:"region",name:"Varsinais-Suomi"},"FI-14":{type:"region",name:"Pohjois-Pohjanmaa"},"FI-15":{type:"region",name:"Pohjois-Savo"},"FI-01":{type:"region",name:"Ahvenanmaan maakunta"},"FI-13":{type:"region",name:"Pohjois-Karjala"},"FI-03":{type:"region",name:"Etelä-Pohjanmaa"},"FI-02":{type:"region",name:"Etelä-Karjala"},"FI-05":{type:"region",name:"Kainuu"},"FI-04":{type:"region",name:"Etelä-Savo"},"FI-07":{type:"region",name:"Keski-Pohjanmaa"},"FI-06":{type:"region",name:"Kanta-Häme"}}},FJ:{name:"Fiji",sub:{"FJ-C":{type:"division",name:"Central"},"FJ-R":{type:"dependency",name:"Rotuma"},"FJ-W":{type:"division",name:"Western"},"FJ-N":{type:"division",name:"Northern"},"FJ-E":{type:"division",name:"Eastern"}}},FM:{name:"Micronesia, Federated States Of",sub:{"FM-YAP":{type:"State",name:"Yap"},"FM-KSA":{type:"State",name:"Kosrae"},"FM-PNI":{type:"State",name:"Pohnpei"},"FM-TRK":{type:"State",name:"Chuuk"}}},NI:{name:"Nicaragua",sub:{"NI-BO":{type:"department",name:"Boaco"},"NI-CI":{type:"department",name:"Chinandega"},"NI-LE":{type:"department",name:"León"},"NI-RI":{type:"department",name:"Rivas"},"NI-CO":{type:"department",name:"Chontales"},"NI-MN":{type:"department",name:"Managua"},"NI-CA":{type:"department",name:"Carazo"},"NI-AN":{type:"autonomous region",name:"Atlántico Norte*"},"NI-ES":{type:"department",name:"Estelí"},"NI-SJ":{type:"department",name:"Río San Juan"},"NI-NS":{type:"department",name:"Nueva Segovia"},"NI-AS":{type:"autonomous region",name:"Atlántico Sur*"},"NI-MT":{type:"department",name:"Matagalpa"},"NI-MD":{type:"department",name:"Madriz"},"NI-MS":{type:"department",name:"Masaya"},"NI-GR":{type:"department",name:"Granada"},"NI-JI":{type:"department",name:"Jinotega"}}},NL:{name:"Netherlands",sub:{"NL-ZH":{type:"Province",name:"Zuid-Holland"},"NL-AW":{type:"country",name:"Aruba (see also separate entry under AW)"},"NL-FR":{type:"Province",name:"Friesland"},"NL-CW":{type:"country",name:"Curaçao (see also separate entry under CW)"},"NL-UT":{type:"Province",name:"Utrecht"},"NL-OV":{type:"Province",name:"Overijssel"},"NL-GE":{type:"Province",name:"Gelderland"},"NL-BQ2":{type:"Special municipality",name:"Saba (see also separate entry under BQ)"},"NL-BQ3":{type:"Special municipality",name:"Sint Eustatius (see also separate entry under BQ)"},"NL-BQ1":{type:"Special municipality",name:"Bonaire (see also separate entry under BQ)"},"NL-NH":{type:"Province",name:"Noord-Holland"},"NL-ZE":{type:"Province",name:"Zeeland"},"NL-SX":{type:"country",name:"Sint Maarten (see also separate entry under SX)"},"NL-FL":{type:"Province",name:"Flevoland"},"NL-GR":{type:"Province",name:"Groningen"},"NL-DR":{type:"Province",name:"Drenthe"},"NL-NB":{type:"Province",name:"Noord-Brabant"},"NL-LI":{type:"Province",name:"Limburg"}}},NO:{name:"Norway",sub:{"NO-07":{type:"County",name:"Vestfold"},"NO-01":{type:"County",name:"Østfold"},"NO-19":{type:"County",name:"Troms"},"NO-11":{type:"County",name:"Rogaland"},"NO-21":{type:"",name:"Svalbard (Arctic Region) (See also country code SJ)"},"NO-20":{type:"County",name:"Finnmark"},"NO-22":{type:"",name:"Jan Mayen (Arctic Region) (See also country code SJ)"},"NO-05":{type:"County",name:"Oppland"},"NO-10":{type:"County",name:"Vest-Agder"},"NO-06":{type:"County",name:"Buskerud"},"NO-12":{type:"County",name:"Hordaland"},"NO-04":{type:"County",name:"Hedmark"},"NO-03":{type:"County",name:"Oslo"},"NO-02":{type:"County",name:"Akershus"},"NO-16":{type:"County",name:"Sør-Trøndelag"},"NO-17":{type:"County",name:"Nord-Trøndelag"},"NO-18":{type:"County",name:"Nordland"},"NO-14":{type:"County",name:"Sogn og Fjordane"},"NO-08":{type:"County",name:"Telemark"},"NO-09":{type:"County",name:"Aust-Agder"},"NO-15":{type:"County",name:"Møre og Romsdal"}}},NA:{name:"Namibia",sub:{"NA-HA":{type:"Region",name:"Hardap"},"NA-KH":{type:"Region",name:"Khomas"},"NA-KA":{type:"Region",name:"Karas"},"NA-ON":{type:"Region",name:"Oshana"},"NA-OH":{type:"Region",name:"Omaheke"},"NA-OK":{type:"Region",name:"Okavango"},"NA-OT":{type:"Region",name:"Oshikoto"},"NA-CA":{type:"Region",name:"Caprivi"},"NA-OW":{type:"Region",name:"Ohangwena"},"NA-ER":{type:"Region",name:"Erongo"},"NA-OS":{type:"Region",name:"Omusati"},"NA-OD":{type:"Region",name:"Otjozondjupa"},"NA-KU":{type:"Region",name:"Kunene"}}},VU:{name:"Vanuatu",sub:{"VU-PAM":{type:"Province",name:"Pénama"},"VU-TOB":{type:"Province",name:"Torba"},"VU-MAP":{type:"Province",name:"Malampa"},"VU-SAM":{type:"Province",name:"Sanma"},"VU-TAE":{type:"Province",name:"Taféa"},"VU-SEE":{type:"Province",name:"Shéfa"}}},NE:{name:"Niger",sub:{"NE-4":{type:"Region",name:"Maradi"},"NE-5":{type:"Region",name:"Tahoua"},"NE-6":{type:"Region",name:"Tillabéri"},"NE-7":{type:"Region",name:"Zinder"},"NE-1":{type:"Region",name:"Agadez"},"NE-2":{type:"Region",name:"Diffa"},"NE-3":{type:"Region",name:"Dosso"},"NE-8":{type:"Capital District",name:"Niamey"}}},NG:{name:"Nigeria",sub:{"NG-PL":{type:"state",name:"Plateau"},"NG-RI":{type:"state",name:"Rivers"},"NG-JI":{type:"state",name:"Jigawa"},"NG-LA":{type:"state",name:"Lagos"},"NG-NA":{type:"state",name:"Nassarawa"},"NG-DE":{type:"state",name:"Delta"},"NG-NI":{type:"state",name:"Niger"},"NG-OS":{type:"state",name:"Osun"},"NG-BY":{type:"state",name:"Bayelsa"},"NG-FC":{type:"capital territory",name:"Abuja Federal Capital Territory"},"NG-BA":{type:"state",name:"Bauchi"},"NG-BE":{type:"state",name:"Benue"},"NG-BO":{type:"state",name:"Borno"},"NG-YO":{type:"state",name:"Yobe"},"NG-AN":{type:"state",name:"Anambra"},"NG-KW":{type:"state",name:"Kwara"},"NG-KT":{type:"state",name:"Katsina"},"NG-OY":{type:"state",name:"Oyo"},"NG-OG":{type:"state",name:"Ogun"},"NG-KN":{type:"state",name:"Kano"},"NG-KO":{type:"state",name:"Kogi"},"NG-ON":{type:"state",name:"Ondo"},"NG-EN":{type:"state",name:"Enugu"},"NG-KD":{type:"state",name:"Kaduna"},"NG-KE":{type:"state",name:"Kebbi"},"NG-CR":{type:"state",name:"Cross River"},"NG-GO":{type:"state",name:"Gombe"},"NG-ZA":{type:"state",name:"Zamfara"},"NG-SO":{type:"state",name:"Sokoto"},"NG-IM":{type:"state",name:"Imo"},"NG-ED":{type:"state",name:"Edo"},"NG-AK":{type:"state",name:"Akwa Ibom"},"NG-EB":{type:"state",name:"Ebonyi"},"NG-TA":{type:"state",name:"Taraba"},"NG-AB":{type:"state",name:"Abia"},"NG-AD":{type:"state",name:"Adamawa"},"NG-EK":{type:"state",name:"Ekiti"}}},NZ:{name:"New Zealand",sub:{"NZ-NSN":{type:"Unitary Authority",name:"Nelson City"},"NZ-S":{type:"island",name:"South Island"},"NZ-STL":{type:"Regional Council",name:"Southland"},"NZ-BOP":{type:"Regional Council",name:"Bay of Plenty"},"NZ-HKB":{type:"Regional Council",name:"Hawkes's Bay"},"NZ-AUK":{type:"Regional Council",name:"Auckland"},"NZ-TKI":{type:"Regional Council",name:"Taranaki"},"NZ-MBH":{type:"Unitary Authority",name:"Marlborough District"},"NZ-CIT":{type:"Special Island Authority",name:"Chatham  Islands Territory"},"NZ-WGN":{type:"Regional Council",name:"Wellington"},"NZ-TAS":{type:"Unitary Authority",name:"Tasman District"},"NZ-WKO":{type:"Regional Council",name:"Waikato"},"NZ-WTC":{type:"Regional Council",name:"West Coast"},"NZ-OTA":{type:"Regional Council",name:"Otago"},"NZ-NTL":{type:"Regional Council",name:"Northland"},"NZ-MWT":{type:"Regional Council",name:"Manawatu-Wanganui"},"NZ-N":{type:"island",name:"North Island"},"NZ-GIS":{type:"Unitary Authority",name:"Gisborne District"},"NZ-CAN":{type:"Regional Council",name:"Canterbury"}}},NP:{name:"Nepal",sub:{"NP-KA":{type:"zone",name:"Karnali"},"NP-BA":{type:"zone",name:"Bagmati"},"NP-MA":{type:"zone",name:"Mahakali"},"NP-KO":{type:"zone",name:"Kosi"},"NP-DH":{type:"zone",name:"Dhawalagiri"},"NP-BH":{type:"zone",name:"Bheri"},"NP-JA":{type:"zone",name:"Janakpur"},"NP-GA":{type:"zone",name:"Gandaki"},"NP-NA":{type:"zone",name:"Narayani"},"NP-ME":{type:"zone",name:"Mechi"},"NP-RA":{type:"zone",name:"Rapti"},"NP-5":{type:"development regions",name:"Sudur Pashchimanchal"},"NP-4":{type:"development regions",name:"Purwanchal"},"NP-SE":{type:"zone",name:"Seti"},"NP-2":{type:"development regions",name:"Madhya Pashchimanchal"},"NP-1":{type:"development regions",name:"Madhyamanchal"},"NP-SA":{type:"zone",name:"Sagarmatha"},"NP-3":{type:"development regions",name:"Pashchimanchal"},"NP-LU":{type:"zone",name:"Lumbini"}}},NR:{name:"Nauru",sub:{"NR-08":{type:"District",name:"Denigomodu"},"NR-09":{type:"District",name:"Ewa"},"NR-14":{type:"District",name:"Yaren"},"NR-01":{type:"District",name:"Aiwo"},"NR-02":{type:"District",name:"Anabar"},"NR-03":{type:"District",name:"Anetan"},"NR-04":{type:"District",name:"Anibare"},"NR-05":{type:"District",name:"Baiti"},"NR-06":{type:"District",name:"Boe"},"NR-07":{type:"District",name:"Buada"},"NR-11":{type:"District",name:"Meneng"},"NR-12":{type:"District",name:"Nibok"},"NR-13":{type:"District",name:"Uaboe"},"NR-10":{type:"District",name:"Ijuw"}}},CI:{name:"Côte D'Ivoire",sub:{"CI-11":{type:"Region",name:"Nzi-Comoé (Région)"},"CI-05":{type:"Region",name:"Moyen-Comoé (Région du)"},"CI-01":{type:"Region",name:"Lagunes (Région des)"},"CI-14":{type:"Region",name:"Worodougou (Région du)"},"CI-07":{type:"Region",name:"Lacs (Région des)"},"CI-15":{type:"Region",name:"Sud-Bandama (Région du)"},"CI-08":{type:"Region",name:"Zanzan (Région du)"},"CI-17":{type:"Region",name:"Bafing (Région du)"},"CI-16":{type:"Region",name:"Agnébi (Région de l')"},"CI-02":{type:"Region",name:"Haut-Sassandra (Région du)"},"CI-03":{type:"Region",name:"Savanes (Région des)"},"CI-13":{type:"Region",name:"Sud-Comoé (Région du)"},"CI-12":{type:"Region",name:"Marahoué (Région de la)"},"CI-06":{type:"Region",name:"18 Montagnes (Région des)"},"CI-10":{type:"Region",name:"Denguélé (Région du)"},"CI-04":{type:"Region",name:"Vallée du Bandama (Région de la)"},"CI-09":{type:"Region",name:"Bas-Sassandra (Région du)"},"CI-19":{type:"Region",name:"Moyen-Cavally (Région du)"},"CI-18":{type:"Region",name:"Fromager (Région du)"}}},CH:{name:"Switzerland",sub:{"CH-SO":{type:"Canton",name:"Solothurn (de)"},"CH-LU":{type:"Canton",name:"Luzern (de)"},"CH-SH":{type:"Canton",name:"Schaffhausen (de)"},"CH-SG":{type:"Canton",name:"Sankt Gallen (de)"},"CH-UR":{type:"Canton",name:"Uri (de)"},"CH-NE":{type:"Canton",name:"Neuchâtel (fr)"},"CH-BS":{type:"Canton",name:"Basel-Stadt (de)"},"CH-JU":{type:"Canton",name:"Jura (fr)"},"CH-BL":{type:"Canton",name:"Basel-Landschaft (de)"},"CH-SZ":{type:"Canton",name:"Schwyz (de)"},"CH-BE":{type:"Canton",name:"Bern (de)"},"CH-NW":{type:"Canton",name:"Nidwalden (de)"},"CH-ZG":{type:"Canton",name:"Zug (de)"},"CH-FR":{type:"Canton",name:"Fribourg (fr)"},"CH-ZH":{type:"Canton",name:"Zürich (de)"},"CH-VS":{type:"Canton",name:"Valais (fr)"},"CH-VD":{type:"Canton",name:"Vaud (fr)"},"CH-TI":{type:"Canton",name:"Ticino (it)"},"CH-TG":{type:"Canton",name:"Thurgau (de)"},"CH-OW":{type:"Canton",name:"Obwalden (de)"},"CH-AG":{type:"Canton",name:"Aargau (de)"},"CH-GE":{type:"Canton",name:"Genève (fr)"},"CH-AI":{type:"Canton",name:"Appenzell Innerrhoden (de)"},"CH-GL":{type:"Canton",name:"Glarus (de)"},"CH-GR":{type:"Canton",name:"Graubünden (de)"},"CH-AR":{type:"Canton",name:"Appenzell Ausserrhoden (de)"}}},CO:{name:"Colombia",sub:{"CO-CUN":{type:"department",name:"Cundinamarca"},"CO-BOY":{type:"department",name:"Boyacá"},"CO-COR":{type:"department",name:"Córdoba"},"CO-HUI":{type:"department",name:"Huila"},"CO-VAU":{type:"department",name:"Vaupés"},"CO-RIS":{type:"department",name:"Risaralda"},"CO-NSA":{type:"department",name:"Norte de Santander"},"CO-VID":{type:"department",name:"Vichada"},"CO-BOL":{type:"department",name:"Bolívar"},"CO-VAC":{type:"department",name:"Valle del Cauca"},"CO-GUV":{type:"department",name:"Guaviare"},"CO-CAU":{type:"department",name:"Cauca"},"CO-CAS":{type:"department",name:"Casanare"},"CO-CAQ":{type:"department",name:"Caquetá"},"CO-CES":{type:"department",name:"Cesar"},"CO-SAN":{type:"department",name:"Santander"},"CO-ATL":{type:"department",name:"Atlántico"},"CO-AMA":{type:"department",name:"Amazonas"},"CO-MET":{type:"department",name:"Meta"},"CO-MAG":{type:"department",name:"Magdalena"},"CO-ARA":{type:"department",name:"Arauca"},"CO-GUA":{type:"department",name:"Guainía"},"CO-LAG":{type:"department",name:"La Guajira"},"CO-CAL":{type:"department",name:"Caldas"},"CO-QUI":{type:"department",name:"Quindío"},"CO-SAP":{type:"department",name:"San Andrés, Providencia y Santa Catalina"},"CO-TOL":{type:"department",name:"Tolima"},"CO-SUC":{type:"department",name:"Sucre"},"CO-PUT":{type:"department",name:"Putumayo"},"CO-NAR":{type:"department",name:"Nariño"},"CO-CHO":{type:"department",name:"Chocó"},"CO-DC":{type:"capital district",name:"Distrito Capital de Bogotá"},"CO-ANT":{type:"department",name:"Antioquia"}}},CN:{name:"China",sub:{"CN-54":{type:"autonomous region",name:"Xizang"},"CN-34":{type:"province",name:"Anhui"},"CN-35":{type:"province",name:"Fujian"},"CN-50":{type:"municipality",name:"Chongqing"},"CN-37":{type:"province",name:"Shandong"},"CN-31":{type:"municipality",name:"Shanghai"},"CN-32":{type:"province",name:"Jiangsu"},"CN-33":{type:"province",name:"Zhejiang"},"CN-71":{type:"province",name:"Taiwan *"},"CN-14":{type:"province",name:"Shanxi"},"CN-15":{type:"autonomous region",name:"Nei Mongol (mn)"},"CN-12":{type:"municipality",name:"Tianjin"},"CN-13":{type:"province",name:"Hebei"},"CN-11":{type:"municipality",name:"Beijing"},"CN-52":{type:"province",name:"Guizhou"},"CN-92":{type:"special administrative region",name:"Aomen (zh) ***"},"CN-91":{type:"special administrative region",name:"Xianggang (zh) **"},"CN-36":{type:"province",name:"Jiangxi"},"CN-51":{type:"province",name:"Sichuan"},"CN-41":{type:"province",name:"Henan"},"CN-43":{type:"province",name:"Hunan"},"CN-42":{type:"province",name:"Hubei"},"CN-45":{type:"autonomous region",name:"Guangxi"},"CN-44":{type:"province",name:"Guangdong"},"CN-46":{type:"province",name:"Hainan"},"CN-65":{type:"autonomous region",name:"Xinjiang"},"CN-64":{type:"autonomous region",name:"Ningxia"},"CN-63":{type:"province",name:"Qinghai"},"CN-62":{type:"province",name:"Gansu"},"CN-61":{type:"province",name:"Shaanxi"},"CN-23":{type:"province",name:"Heilongjiang"},"CN-22":{type:"province",name:"Jilin"},"CN-21":{type:"province",name:"Liaoning"},"CN-53":{type:"province",name:"Yunnan"}}},CM:{name:"Cameroon",sub:{"CM-CE":{type:"Region",name:"Centre"},"CM-SU":{type:"Region",name:"South"},"CM-SW":{type:"Region",name:"South-West"},"CM-ES":{type:"Region",name:"East"},"CM-AD":{type:"Region",name:"Adamaoua"},"CM-NO":{type:"Region",name:"North"},"CM-OU":{type:"Region",name:"West"},"CM-NW":{type:"Region",name:"North-West"},"CM-EN":{type:"Region",name:"Far North"},"CM-LT":{type:"Region",name:"Littoral"}}},CL:{name:"Chile",sub:{"CL-AP":{type:"Region",name:"Arica y Parinacota"},"CL-BI":{type:"Region",name:"Bío-Bío"},"CL-AR":{type:"Region",name:"Araucanía"},"CL-AT":{type:"Region",name:"Atacama"},"CL-CO":{type:"Region",name:"Coquimbo"},"CL-VS":{type:"Region",name:"Valparaíso"},"CL-ML":{type:"Region",name:"Maule"},"CL-LR":{type:"Region",name:"Los Ríos"},"CL-TA":{type:"Region",name:"Tarapacá"},"CL-LI":{type:"Region",name:"Libertador General Bernardo O'Higgins"},"CL-RM":{type:"Region",name:"Región Metropolitana de Santiago"},"CL-LL":{type:"Region",name:"Los Lagos"},"CL-AI":{type:"Region",name:"Aisén del General Carlos Ibáñez del Campo"},"CL-AN":{type:"Region",name:"Antofagasta"},"CL-MA":{type:"Region",name:"Magallanes"}}},CA:{name:"Canada",sub:{"CA-NT":{type:"territory",name:"Northwest Territories"},"CA-NU":{type:"territory",name:"Nunavut"},"CA-NS":{type:"province",name:"Nova Scotia"},"CA-MB":{type:"province",name:"Manitoba"},"CA-SK":{type:"province",name:"Saskatchewan"},"CA-QC":{type:"province",name:"Quebec"},"CA-PE":{type:"province",name:"Prince Edward Island"},"CA-BC":{type:"province",name:"British Columbia"},"CA-YT":{type:"territory",name:"Yukon Territory"},"CA-NB":{type:"province",name:"New Brunswick"},"CA-NL":{type:"province",name:"Newfoundland and Labrador"},"CA-ON":{type:"province",name:"Ontario"},"CA-AB":{type:"province",name:"Alberta"}}},CG:{name:"Congo",sub:{"CG-2":{type:"Department",name:"Lékoumou"},"CG-5":{type:"Department",name:"Kouilou"},"CG-7":{type:"Department",name:"Likouala"},"CG-9":{type:"Department",name:"Niari"},"CG-8":{type:"Department",name:"Cuvette"},"CG-BZV":{type:"Commune",name:"Brazzaville"},"CG-11":{type:"Department",name:"Bouenza"},"CG-13":{type:"Department",name:"Sangha"},"CG-12":{type:"Department",name:"Pool"},"CG-15":{type:"Department",name:"Cuvette-Ouest"},"CG-14":{type:"Department",name:"Plateaux"}}},CF:{name:"Central African Republic",sub:{"CF-MB":{type:"prefecture",name:"Mbomou"},"CF-BB":{type:"prefecture",name:"Bamingui-Bangoran"},"CF-NM":{type:"prefecture",name:"Nana-Mambéré"},"CF-BGF":{type:"commune",name:"Bangui"},"CF-AC":{type:"prefecture",name:"Ouham"},"CF-KB":{type:"economic prefecture",name:"Gribingui"},"CF-BK":{type:"prefecture",name:"Basse-Kotto"},"CF-LB":{type:"prefecture",name:"Lobaye"},"CF-VK":{type:"prefecture",name:"Vakaga"},"CF-HS":{type:"prefecture",name:"Haute-Sangha / Mambéré-Kadéï"},"CF-HM":{type:"prefecture",name:"Haut-Mbomou"},"CF-UK":{type:"prefecture",name:"Ouaka"},"CF-MP":{type:"prefecture",name:"Ombella-Mpoko"},"CF-KG":{type:"prefecture",name:"Kémo-Gribingui"},"CF-HK":{type:"prefecture",name:"Haute-Kotto"},"CF-OP":{type:"prefecture",name:"Ouham-Pendé"},"CF-SE":{type:"economic prefecture",name:"Sangha"}}},CD:{name:"Congo, The Democratic Republic Of The",sub:{"CD-OR":{type:"province",name:"Orientale"},"CD-EQ":{type:"province",name:"Équateur"},"CD-SK":{type:"province",name:"Sud-Kivu"},"CD-KW":{type:"province",name:"Kasai-Occidental"},"CD-BN":{type:"province",name:"Bandundu"},"CD-BC":{type:"province",name:"Bas-Congo"},"CD-KN":{type:"city",name:"Kinshasa"},"CD-KA":{type:"province",name:"Katanga"},"CD-MA":{type:"province",name:"Maniema"},"CD-NK":{type:"province",name:"Nord-Kivu"},"CD-KE":{type:"province",name:"Kasai-Oriental"}}},CZ:{name:"Czech Republic",sub:{"CZ-10C":{type:"district",name:"Praha 12"},"CZ-10B":{type:"district",name:"Praha 11"},"CZ-10A":{type:"district",name:"Praha 10"},"CZ-10F":{type:"district",name:"Praha 15"},"CZ-10E":{type:"district",name:"Praha 14"},"CZ-10D":{type:"district",name:"Praha 13"},"CZ-511":{type:"district",name:"Česká Lípa"},"CZ-512":{type:"district",name:"Jablonec nad Nisou"},"CZ-513":{type:"district",name:"Liberec"},"CZ-514":{type:"district",name:"Semily"},"CZ-723":{type:"district",name:"Vsetín"},"CZ-JC":{type:"Region",name:"Jihoceský kraj"},"CZ-JM":{type:"Region",name:"Jihomoravský kraj"},"CZ-722":{type:"district",name:"Uherské Hradištĕ"},"CZ-103":{type:"district",name:"Praha 3"},"CZ-102":{type:"district",name:"Praha 2"},"CZ-101":{type:"district",name:"Praha 1"},"CZ-107":{type:"district",name:"Praha 7"},"CZ-106":{type:"district",name:"Praha 6"},"CZ-105":{type:"district",name:"Praha 5"},"CZ-104":{
type:"district",name:"Praha 4"},"CZ-613":{type:"district",name:"Pelhřimov"},"CZ-612":{type:"district",name:"Jihlava"},"CZ-109":{type:"district",name:"Praha 9"},"CZ-108":{type:"district",name:"Praha 8"},"CZ-615":{type:"district",name:"Žd’ár nad Sázavou"},"CZ-614":{type:"district",name:"Třebíč"},"CZ-LI":{type:"Region",name:"Liberecký kraj"},"CZ-US":{type:"Region",name:"Ústecký kraj"},"CZ-714":{type:"district",name:"Přerov"},"CZ-715":{type:"district",name:"Šumperk"},"CZ-712":{type:"district",name:"Olomouc"},"CZ-713":{type:"district",name:"Prostĕjov"},"CZ-711":{type:"district",name:"Jeseník"},"CZ-ST":{type:"Region",name:"Stredoceský kraj"},"CZ-611":{type:"district",name:"Havlíčkův Brod"},"CZ-KA":{type:"Region",name:"Karlovarský kraj"},"CZ-ZL":{type:"Region",name:"Zlínský kraj"},"CZ-KR":{type:"Region",name:"Královéhradecký kraj"},"CZ-802":{type:"district",name:"Frýdek Místek"},"CZ-803":{type:"district",name:"Karviná"},"CZ-801":{type:"district",name:"Bruntál"},"CZ-806":{type:"district",name:"Ostrava město"},"CZ-804":{type:"district",name:"Nový Jičín"},"CZ-805":{type:"district",name:"Opava"},"CZ-411":{type:"district",name:"Cheb"},"CZ-413":{type:"district",name:"Sokolov"},"CZ-412":{type:"district",name:"Karlovy Vary"},"CZ-312":{type:"district",name:"Český Krumlov"},"CZ-313":{type:"district",name:"Jindřichův Hradec"},"CZ-311":{type:"district",name:"České Budějovice"},"CZ-316":{type:"district",name:"Strakonice"},"CZ-317":{type:"district",name:"Tábor"},"CZ-314":{type:"district",name:"Písek"},"CZ-315":{type:"district",name:"Prachatice"},"CZ-534":{type:"district",name:"Ústí nad Orlicí"},"CZ-724":{type:"district",name:"Zlín"},"CZ-421":{type:"district",name:"Děčín"},"CZ-422":{type:"district",name:"Chomutov"},"CZ-423":{type:"district",name:"Litoměřice"},"CZ-424":{type:"district",name:"Louny"},"CZ-425":{type:"district",name:"Most"},"CZ-426":{type:"district",name:"Teplice"},"CZ-533":{type:"district",name:"Svitavy"},"CZ-MO":{type:"Region",name:"Moravskoslezský kraj"},"CZ-VY":{type:"Region",name:"Vysocina"},"CZ-PA":{type:"Region",name:"Pardubický kraj"},"CZ-20A":{type:"district",name:"Praha západ"},"CZ-20B":{type:"district",name:"Příbram"},"CZ-20C":{type:"district",name:"Rakovník"},"CZ-532":{type:"district",name:"Pardubice"},"CZ-PL":{type:"Region",name:"Plzenský kraj"},"CZ-721":{type:"district",name:"Kromĕříž"},"CZ-531":{type:"district",name:"Chrudim"},"CZ-PR":{type:"Region",name:"Praha, hlavní mesto"},"CZ-622":{type:"district",name:"Brno-město"},"CZ-623":{type:"district",name:"Brno-venkov"},"CZ-621":{type:"district",name:"Blansko"},"CZ-626":{type:"district",name:"Vyškov"},"CZ-627":{type:"district",name:"Znojmo"},"CZ-624":{type:"district",name:"Břeclav"},"CZ-625":{type:"district",name:"Hodonín"},"CZ-525":{type:"district",name:"Trutnov"},"CZ-524":{type:"district",name:"Rychnov nad Kněžnou"},"CZ-521":{type:"district",name:"Hradec Králové"},"CZ-523":{type:"district",name:"Náchod"},"CZ-522":{type:"district",name:"Jičín"},"CZ-OL":{type:"Region",name:"Olomoucký kraj"},"CZ-427":{type:"district",name:"Ústí nad Labem"},"CZ-323":{type:"district",name:"Plzeň město"},"CZ-322":{type:"district",name:"Klatovy"},"CZ-321":{type:"district",name:"Domažlice"},"CZ-327":{type:"district",name:"Tachov"},"CZ-326":{type:"district",name:"Rokycany"},"CZ-325":{type:"district",name:"Plzeň sever"},"CZ-324":{type:"district",name:"Plzeň jih"},"CZ-208":{type:"district",name:"Nymburk"},"CZ-209":{type:"district",name:"Praha východ"},"CZ-201":{type:"district",name:"Benešov"},"CZ-202":{type:"district",name:"Beroun"},"CZ-203":{type:"district",name:"Kladno"},"CZ-204":{type:"district",name:"Kolín"},"CZ-205":{type:"district",name:"Kutná Hora"},"CZ-206":{type:"district",name:"Mělník"},"CZ-207":{type:"district",name:"Mladá Boleslav"}}},CY:{name:"Cyprus",sub:{"CY-01":{type:"District",name:"Lefkosia"},"CY-02":{type:"District",name:"Lemesos"},"CY-03":{type:"District",name:"Larnaka"},"CY-04":{type:"District",name:"Ammochostos"},"CY-05":{type:"District",name:"Pafos"},"CY-06":{type:"District",name:"Keryneia"}}},CR:{name:"Costa Rica",sub:{"CR-P":{type:"Province",name:"Puntarenas"},"CR-A":{type:"Province",name:"Alajuela"},"CR-C":{type:"Province",name:"Cartago"},"CR-G":{type:"Province",name:"Guanacaste"},"CR-H":{type:"Province",name:"Heredia"},"CR-SJ":{type:"Province",name:"San José"},"CR-L":{type:"Province",name:"Limón"}}},CV:{name:"Cape Verde",sub:{"CV-SL":{type:"municipality",name:"Sal"},"CV-SM":{type:"municipality",name:"São Miguel"},"CV-SO":{type:"municipality",name:"São Lourenço dos Órgãos"},"CV-S":{type:"geographical region",name:"Ilhas de Sotavento"},"CV-SD":{type:"municipality",name:"São Domingos"},"CV-SF":{type:"municipality",name:"São Filipe"},"CV-B":{type:"geographical region",name:"Ilhas de Barlavento"},"CV-RG":{type:"municipality",name:"Ribeira Grande"},"CV-SV":{type:"municipality",name:"São Vicente"},"CV-SS":{type:"municipality",name:"São Salvador do Mundo"},"CV-CR":{type:"municipality",name:"Santa Cruz"},"CV-CF":{type:"municipality",name:"Santa Catarina do Fogo"},"CV-CA":{type:"municipality",name:"Santa Catarina"},"CV-RB":{type:"municipality",name:"Ribeira Brava"},"CV-PA":{type:"municipality",name:"Paul"},"CV-TA":{type:"municipality",name:"Tarrafal"},"CV-PN":{type:"municipality",name:"Porto Novo"},"CV-RS":{type:"municipality",name:"Ribeira Grande de Santiago"},"CV-MA":{type:"municipality",name:"Maio"},"CV-PR":{type:"municipality",name:"Praia"},"CV-TS":{type:"municipality",name:"Tarrafal de São Nicolau"},"CV-MO":{type:"municipality",name:"Mosteiros"},"CV-BR":{type:"municipality",name:"Brava"},"CV-BV":{type:"municipality",name:"Boa Vista"}}},CU:{name:"Cuba",sub:{"CU-04":{type:"province",name:"Matanzas"},"CU-05":{type:"province",name:"Villa Clara"},"CU-06":{type:"province",name:"Cienfuegos"},"CU-07":{type:"province",name:"Sancti Spíritus"},"CU-01":{type:"province",name:"Pinar del Río"},"CU-02":{type:"province",name:"La Habana"},"CU-03":{type:"province",name:"Ciudad de La Habana"},"CU-99":{type:"special municipality",name:"Isla de la Juventud"},"CU-08":{type:"province",name:"Ciego de Ávila"},"CU-09":{type:"province",name:"Camagüey"},"CU-13":{type:"province",name:"Santiago de Cuba"},"CU-12":{type:"province",name:"Granma"},"CU-11":{type:"province",name:"Holguín"},"CU-10":{type:"province",name:"Las Tunas"},"CU-14":{type:"province",name:"Guantánamo"}}},SZ:{name:"Swaziland",sub:{"SZ-LU":{type:"District",name:"Lubombo"},"SZ-HH":{type:"District",name:"Hhohho"},"SZ-SH":{type:"District",name:"Shiselweni"},"SZ-MA":{type:"District",name:"Manzini"}}},SY:{name:"Syria",sub:{"SY-HI":{type:"Province",name:"?ims"},"SY-HL":{type:"Province",name:"?alab"},"SY-HM":{type:"Province",name:"?amah"},"SY-HA":{type:"Province",name:"Al ?asakah"},"SY-ID":{type:"Province",name:"Idlib"},"SY-SU":{type:"Province",name:"As Suwayda'"},"SY-DI":{type:"Province",name:"Dimashq"},"SY-QU":{type:"Province",name:"Al Qunaytirah"},"SY-DY":{type:"Province",name:"Dayr az Zawr"},"SY-RA":{type:"Province",name:"Ar Raqqah"},"SY-TA":{type:"Province",name:"Tartus"},"SY-RD":{type:"Province",name:"Rif Dimashq"},"SY-DR":{type:"Province",name:"Dar?a"},"SY-LA":{type:"Province",name:"Al Ladhiqiyah"}}},KG:{name:"Kyrgyzstan",sub:{"KG-Y":{type:"region",name:"Ysyk-Köl"},"KG-GB":{type:"city",name:"Bishkek"},"KG-T":{type:"region",name:"Talas"},"KG-J":{type:"region",name:"Jalal-Abad"},"KG-O":{type:"region",name:"Osh"},"KG-N":{type:"region",name:"Naryn"},"KG-C":{type:"region",name:"Chü"},"KG-B":{type:"region",name:"Batken"}}},KE:{name:"Kenya",sub:{"KE-500":{type:"province",name:"North-Eastern"},"KE-110":{type:"province",name:"Nairobi"},"KE-400":{type:"province",name:"Eastern"},"KE-700":{type:"province",name:"Rift Valley"},"KE-800":{type:"province",name:"Western"},"KE-300":{type:"province",name:"Coast"},"KE-600":{type:"province",name:"Nyanza"},"KE-200":{type:"province",name:"Central"}}},SS:{name:"South Sudan",sub:{"SS-BW":{type:"states",name:"Western Bahr el-Ghazal"},"SS-EW":{type:"states",name:"Western Equatoria"},"SS-LK":{type:"states",name:"Lakes"},"SS-EC":{type:"states",name:"Central Equatoria"},"SS-EE":{type:"states",name:"Eastern Equatoria"},"SS-NU":{type:"states",name:"Upper Nile"},"SS-UY":{type:"states",name:"Unity"},"SS-BN":{type:"states",name:"Northern Bahr el-Ghazal"},"SS-JG":{type:"states",name:"Jonglei"},"SS-WR":{type:"states",name:"Warrap"}}},SR:{name:"Suriname",sub:{"SR-SA":{type:"District",name:"Saramacca"},"SR-CR":{type:"District",name:"Coronie"},"SR-BR":{type:"District",name:"Brokopondo"},"SR-SI":{type:"District",name:"Sipaliwini"},"SR-PR":{type:"District",name:"Para"},"SR-WA":{type:"District",name:"Wanica"},"SR-NI":{type:"District",name:"Nickerie"},"SR-PM":{type:"District",name:"Paramaribo"},"SR-CM":{type:"District",name:"Commewijne"},"SR-MA":{type:"District",name:"Marowijne"}}},KI:{name:"Kiribati",sub:{"KI-P":{type:"Island group",name:"Phoenix Islands"},"KI-G":{type:"Island group",name:"Gilbert Islands"},"KI-L":{type:"Island group",name:"Line Islands"}}},KH:{name:"Cambodia",sub:{"KH-24":{type:"autonomous municipality",name:"Krong Pailin"},"KH-21":{type:"province",name:"Taakaev"},"KH-20":{type:"province",name:"Svaay Rieng"},"KH-23":{type:"autonomous municipality",name:"Krong Kaeb"},"KH-22":{type:"province",name:"Otdar Mean Chey"},"KH-6":{type:"province",name:"Kampong Thum"},"KH-7":{type:"province",name:"Kampot"},"KH-4":{type:"province",name:"Kampong Chhnang"},"KH-5":{type:"province",name:"Kampong Spueu"},"KH-2":{type:"province",name:"Baat Dambang"},"KH-3":{type:"province",name:"Kampong Chaam"},"KH-1":{type:"province",name:"Banteay Mean Chey"},"KH-8":{type:"province",name:"Kandaal"},"KH-9":{type:"province",name:"Kaoh Kong"},"KH-18":{type:"autonomous municipality",name:"Krong Preah Sihanouk"},"KH-19":{type:"province",name:"Stueng Traeng"},"KH-14":{type:"province",name:"Prey Veaeng"},"KH-15":{type:"province",name:"Pousaat"},"KH-16":{type:"province",name:"Rotanak Kiri"},"KH-17":{type:"province",name:"Siem Reab"},"KH-10":{type:"province",name:"Kracheh"},"KH-11":{type:"province",name:"Mondol Kiri"},"KH-12":{type:"autonomous municipality",name:"Phnom Penh"},"KH-13":{type:"province",name:"Preah Vihear"}}},SV:{name:"El Salvador",sub:{"SV-CH":{type:"Department",name:"Chalatenango"},"SV-SA":{type:"Department",name:"Santa Ana"},"SV-LI":{type:"Department",name:"La Libertad"},"SV-US":{type:"Department",name:"Usulután"},"SV-UN":{type:"Department",name:"La Unión"},"SV-CA":{type:"Department",name:"Cabañas"},"SV-AH":{type:"Department",name:"Ahuachapán"},"SV-MO":{type:"Department",name:"Morazán"},"SV-SM":{type:"Department",name:"San Miguel"},"SV-SO":{type:"Department",name:"Sonsonate"},"SV-PA":{type:"Department",name:"La Paz"},"SV-CU":{type:"Department",name:"Cuscatlán"},"SV-SS":{type:"Department",name:"San Salvador"},"SV-SV":{type:"Department",name:"San Vicente"}}},KM:{name:"Comoros",sub:{"KM-G":{type:"island",name:"Andjazîdja"},"KM-M":{type:"island",name:"Moûhîlî (Mūhīlī)"},"KM-A":{type:"island",name:"Andjouân (Anjwān)"}}},ST:{name:"Sao Tome and Principe",sub:{"ST-S":{type:"Municipality",name:"São Tomé"},"ST-P":{type:"Municipality",name:"Príncipe"}}},SK:{name:"Slovakia",sub:{"SK-PV":{type:"Region",name:"Prešovský kraj"},"SK-KI":{type:"Region",name:"Košický kraj"},"SK-TC":{type:"Region",name:"Trenciansky kraj"},"SK-TA":{type:"Region",name:"Trnavský kraj"},"SK-ZI":{type:"Region",name:"Žilinský kraj"},"SK-BL":{type:"Region",name:"Bratislavský kraj"},"SK-NI":{type:"Region",name:"Nitriansky kraj"},"SK-BC":{type:"Region",name:"Banskobystrický kraj"}}},KR:{name:"Korea, Republic of",sub:{"KR-31":{type:"metropolitan city",name:"Ulsan Gwang'yeogsi"},"KR-49":{type:"province",name:"Jejudo"},"KR-48":{type:"province",name:"Gyeongsangnamdo"},"KR-45":{type:"province",name:"Jeonrabugdo"},"KR-44":{type:"province",name:"Chungcheongnamdo"},"KR-47":{type:"province",name:"Gyeongsangbugdo"},"KR-46":{type:"province",name:"Jeonranamdo"},"KR-41":{type:"province",name:"Gyeonggido"},"KR-43":{type:"province",name:"Chungcheongbugdo"},"KR-42":{type:"province",name:"Gang'weondo"},"KR-30":{type:"metropolitan city",name:"Daejeon Gwang'yeogsi"},"KR-11":{type:"capital metropolitan city",name:"Seoul Teugbyeolsi"},"KR-29":{type:"metropolitan city",name:"Gwangju Gwang'yeogsi"},"KR-28":{type:"metropolitan city",name:"Incheon Gwang'yeogsi"},"KR-27":{type:"metropolitan city",name:"Daegu Gwang'yeogsi"},"KR-26":{type:"metropolitan city",name:"Busan Gwang'yeogsi"}}},SI:{name:"Slovenia",sub:{"SI-056":{type:"",name:"Kuzma"},"SI-057":{type:"",name:"Laško"},"SI-054":{type:"",name:"Krško"},"SI-055":{type:"",name:"Kungota"},"SI-052":{type:"",name:"Kranj"},"SI-053":{type:"",name:"Kranjska Gora"},"SI-050":{type:"",name:"Koper/Capodistria"},"SI-051":{type:"",name:"Kozje"},"SI-117":{type:"",name:"Šencur"},"SI-116":{type:"",name:"Sveti Jurij"},"SI-115":{type:"",name:"Starše"},"SI-114":{type:"",name:"Slovenske Konjice"},"SI-113":{type:"",name:"Slovenska Bistrica"},"SI-112":{type:"",name:"Slovenj Gradec"},"SI-058":{type:"",name:"Lenart"},"SI-059":{type:"",name:"Lendava/Lendva"},"SI-049":{type:"",name:"Komen"},"SI-167":{type:"",name:"Lovrenc na Pohorju"},"SI-128":{type:"",name:"Tolmin"},"SI-129":{type:"",name:"Trbovlje"},"SI-210":{type:"commune",name:"Sveti Jurij v Slovenskih Goricah"},"SI-211":{type:"commune",name:"Šentrupert"},"SI-045":{type:"",name:"Kidricevo"},"SI-044":{type:"",name:"Kanal"},"SI-047":{type:"",name:"Kobilje"},"SI-046":{type:"",name:"Kobarid"},"SI-041":{type:"",name:"Jesenice"},"SI-040":{type:"",name:"Izola/Isola"},"SI-043":{type:"",name:"Kamnik"},"SI-042":{type:"",name:"Juršinci"},"SI-162":{type:"",name:"Horjul"},"SI-163":{type:"",name:"Jezersko"},"SI-160":{type:"",name:"Hoce-Slivnica"},"SI-161":{type:"",name:"Hodoš/Hodos"},"SI-166":{type:"",name:"Križevci"},"SI-048":{type:"",name:"Kocevje"},"SI-164":{type:"",name:"Komenda"},"SI-165":{type:"",name:"Kostel"},"SI-118":{type:"",name:"Šentilj"},"SI-197":{type:"commune",name:"Cirkulane"},"SI-196":{type:"commune",name:"Kosanjevica na Krki"},"SI-195":{type:"commune",name:"Apače"},"SI-194":{type:"",name:"Šmartno pri Litiji"},"SI-193":{type:"",name:"Žužemberk"},"SI-192":{type:"",name:"Žirovnica"},"SI-191":{type:"",name:"Žetale"},"SI-190":{type:"",name:"Žalec"},"SI-199":{type:"commune",name:"Mokronog-Trebelno"},"SI-198":{type:"commune",name:"Makole"},"SI-188":{type:"",name:"Veržej"},"SI-209":{type:"commune",name:"Rečica ob Savinji"},"SI-208":{type:"commune",name:"Log-Dragomer"},"SI-119":{type:"",name:"Šentjernej"},"SI-189":{type:"",name:"Vransko"},"SI-203":{type:"commune",name:"Straža"},"SI-202":{type:"commune",name:"Središče ob Dravi"},"SI-201":{type:"commune",name:"Renče-Vogrsko"},"SI-200":{type:"commune",name:"Poljčane"},"SI-207":{type:"commune",name:"Gorje"},"SI-206":{type:"commune",name:"Šmarješke Toplice"},"SI-205":{type:"commune",name:"Sveti Tomaž"},"SI-204":{type:"commune",name:"Sveta Trojica v Slovenskih Goricah"},"SI-070":{type:"",name:"Maribor"},"SI-071":{type:"",name:"Medvode"},"SI-072":{type:"",name:"Mengeš"},"SI-073":{type:"",name:"Metlika"},"SI-074":{type:"",name:"Mežica"},"SI-075":{type:"",name:"Miren-Kostanjevica"},"SI-076":{type:"",name:"Mislinja"},"SI-077":{type:"",name:"Moravce"},"SI-078":{type:"",name:"Moravske Toplice"},"SI-170":{type:"",name:"Mirna Pec"},"SI-173":{type:"",name:"Polzela"},"SI-172":{type:"",name:"Podlehnik"},"SI-175":{type:"",name:"Prevalje"},"SI-174":{type:"",name:"Prebold"},"SI-177":{type:"",name:"Ribnica na Pohorju"},"SI-176":{type:"",name:"Razkrižje"},"SI-111":{type:"",name:"Sežana"},"SI-110":{type:"",name:"Sevnica"},"SI-182":{type:"",name:"Sveti Andraž v Slovenskih goricah"},"SI-144":{type:"",name:"Zrece"},"SI-146":{type:"",name:"Železniki"},"SI-183":{type:"",name:"Šempeter-Vrtojba"},"SI-140":{type:"",name:"Vrhnika"},"SI-141":{type:"",name:"Vuzenica"},"SI-142":{type:"",name:"Zagorje ob Savi"},"SI-143":{type:"",name:"Zavrc"},"SI-148":{type:"",name:"Benedikt"},"SI-149":{type:"",name:"Bistrica ob Sotli"},"SI-069":{type:"",name:"Majšperk"},"SI-068":{type:"",name:"Lukovica"},"SI-067":{type:"",name:"Luce"},"SI-066":{type:"",name:"Loški Potok"},"SI-065":{type:"",name:"Loška dolina"},"SI-064":{type:"",name:"Logatec"},"SI-063":{type:"",name:"Ljutomer"},"SI-062":{type:"",name:"Ljubno"},"SI-061":{type:"",name:"Ljubljana"},"SI-060":{type:"",name:"Litija"},"SI-147":{type:"",name:"Žiri"},"SI-153":{type:"",name:"Cerkvenjak"},"SI-152":{type:"",name:"Cankova"},"SI-151":{type:"",name:"Braslovce"},"SI-150":{type:"",name:"Bloke"},"SI-157":{type:"",name:"Dolenjske Toplice"},"SI-156":{type:"",name:"Dobrovnik/Dobronak"},"SI-155":{type:"",name:"Dobrna"},"SI-154":{type:"",name:"Dobje"},"SI-159":{type:"",name:"Hajdina"},"SI-158":{type:"",name:"Grad"},"SI-018":{type:"",name:"Destrnik"},"SI-019":{type:"",name:"Divaca"},"SI-012":{type:"",name:"Cerklje na Gorenjskem"},"SI-013":{type:"",name:"Cerknica"},"SI-010":{type:"",name:"Tišina"},"SI-011":{type:"",name:"Celje"},"SI-016":{type:"",name:"Crna na Koroškem"},"SI-017":{type:"",name:"Crnomelj"},"SI-014":{type:"",name:"Cerkno"},"SI-015":{type:"",name:"Crenšovci"},"SI-009":{type:"",name:"Brežice"},"SI-008":{type:"",name:"Brezovica"},"SI-124":{type:"",name:"Šmarje pri Jelšah"},"SI-125":{type:"",name:"Šmartno ob Paki"},"SI-122":{type:"",name:"Škofja Loka"},"SI-123":{type:"",name:"Škofljica"},"SI-120":{type:"",name:"Šentjur pri Celju"},"SI-121":{type:"",name:"Škocjan"},"SI-001":{type:"",name:"Ajdovšcina"},"SI-003":{type:"",name:"Bled"},"SI-002":{type:"",name:"Beltinci"},"SI-005":{type:"",name:"Borovnica"},"SI-004":{type:"",name:"Bohinj"},"SI-007":{type:"",name:"Brda"},"SI-006":{type:"",name:"Bovec"},"SI-179":{type:"",name:"Sodražica"},"SI-178":{type:"",name:"Selnica ob Dravi"},"SI-092":{type:"",name:"Podcetrtek"},"SI-093":{type:"",name:"Podvelka"},"SI-090":{type:"",name:"Piran/Pirano"},"SI-091":{type:"",name:"Pivka"},"SI-096":{type:"",name:"Ptuj"},"SI-097":{type:"",name:"Puconci"},"SI-094":{type:"",name:"Postojna"},"SI-095":{type:"",name:"Preddvor"},"SI-098":{type:"",name:"Race-Fram"},"SI-099":{type:"",name:"Radece"},"SI-034":{type:"",name:"Hrastnik"},"SI-035":{type:"",name:"Hrpelje-Kozina"},"SI-036":{type:"",name:"Idrija"},"SI-037":{type:"",name:"Ig"},"SI-030":{type:"",name:"Gornji Grad"},"SI-031":{type:"",name:"Gornji Petrovci"},"SI-032":{type:"",name:"Grosuplje"},"SI-033":{type:"",name:"Šalovci"},"SI-132":{type:"",name:"Turnišce"},"SI-038":{type:"",name:"Ilirska Bistrica"},"SI-039":{type:"",name:"Ivancna Gorica"},"SI-135":{type:"",name:"Videm"},"SI-171":{type:"",name:"Oplotnica"},"SI-137":{type:"",name:"Vitanje"},"SI-136":{type:"",name:"Vipava"},"SI-131":{type:"",name:"Tržic"},"SI-130":{type:"",name:"Trebnje"},"SI-133":{type:"",name:"Velenje"},"SI-079":{type:"",name:"Mozirje"},"SI-139":{type:"",name:"Vojnik"},"SI-138":{type:"",name:"Vodice"},"SI-134":{type:"",name:"Velike Lašce"},"SI-081":{type:"",name:"Muta"},"SI-080":{type:"",name:"Murska Sobota"},"SI-083":{type:"",name:"Nazarje"},"SI-082":{type:"",name:"Naklo"},"SI-085":{type:"",name:"Novo mesto"},"SI-084":{type:"",name:"Nova Gorica"},"SI-087":{type:"",name:"Ormož"},"SI-086":{type:"",name:"Odranci"},"SI-089":{type:"",name:"Pesnica"},"SI-088":{type:"",name:"Osilnica"},"SI-023":{type:"",name:"Domžale"},"SI-022":{type:"",name:"Dol pri Ljubljani"},"SI-021":{type:"",name:"Dobrova-Polhov Gradec"},"SI-020":{type:"",name:"Dobrepolje"},"SI-027":{type:"",name:"Gorenja vas-Poljane"},"SI-026":{type:"",name:"Duplek"},"SI-025":{type:"",name:"Dravograd"},"SI-024":{type:"",name:"Dornava"},"SI-180":{type:"",name:"Solcava"},"SI-181":{type:"",name:"Sveta Ana"},"SI-029":{type:"",name:"Gornja Radgona"},"SI-028":{type:"",name:"Gorišnica"},"SI-184":{type:"",name:"Tabor"},"SI-185":{type:"",name:"Trnovska vas"},"SI-186":{type:"",name:"Trzin"},"SI-187":{type:"",name:"Velika Polana"},"SI-100":{type:"",name:"Radenci"},"SI-101":{type:"",name:"Radlje ob Dravi"},"SI-102":{type:"",name:"Radovljica"},"SI-103":{type:"",name:"Ravne na Koroškem"},"SI-104":{type:"",name:"Ribnica"},"SI-105":{type:"",name:"Rogašovci"},"SI-106":{type:"",name:"Rogaška Slatina"},"SI-107":{type:"",name:"Rogatec"},"SI-108":{type:"",name:"Ruše"},"SI-109":{type:"",name:"Semic"},"SI-126":{type:"",name:"Šoštanj"},"SI-127":{type:"",name:"Štore"},"SI-168":{type:"",name:"Markovci"},"SI-169":{type:"",name:"Miklavž na Dravskem polju"}}},KP:{name:"Korea, Democratic People's Republic Of",sub:{"KP-09":{type:"province",name:"Hamgyong-bukdo"},"KP-08":{type:"province",name:"Hamgyong-namdo"},"KP-03":{type:"province",name:"Pyongan-bukdo"},"KP-02":{type:"province",name:"Pyongan-namdo"},"KP-01":{type:"Capital City",name:"Pyongyang"},"KP-07":{type:"province",name:"Kangwon-do"},"KP-06":{type:"province",name:"Hwanghae-bukto"},"KP-05":{type:"province",name:"Hwanghae-namdo"},"KP-04":{type:"province",name:"Chagang-do"},"KP-10":{type:"province",name:"Yanggang-do"},"KP-13":{type:"Special City",name:"Nason"}}},KW:{name:"Kuwait",sub:{"KW-KU":{type:"Governorate",name:"Al Kuwayt (Al ‘Āşimah)"},"KW-FA":{type:"Governorate",name:"Al Farwaniyah"},"KW-AH":{type:"Governorate",name:"Al Ahmadi"},"KW-HA":{type:"Governorate",name:"Hawalli"},"KW-MU":{type:"Governorate",name:"Mubarak al-Kabir"},"KW-JA":{type:"Governorate",name:"Al Jahrah"}}},SN:{name:"Senegal",sub:{"SN-SE":{type:"region",name:"Sédhiou"},"SN-TC":{type:"region",name:"Tambacounda"},"SN-ZG":{type:"region",name:"Ziguinchor"},"SN-SL":{type:"region",name:"Saint-Louis"},"SN-TH":{type:"region",name:"Thiès"},"SN-MT":{type:"region",name:"Matam"},"SN-KL":{type:"region",name:"Kaolack"},"SN-DB":{type:"region",name:"Diourbel"},"SN-FK":{type:"region",name:"Fatick"},"SN-KD":{type:"region",name:"Kolda"},"SN-KE":{type:"region",name:"Kédougou"},"SN-DK":{type:"region",name:"Dakar"},"SN-KA":{type:"region",name:"Kaffrine"},"SN-LG":{type:"region",name:"Louga"}}},SM:{name:"San Marino",sub:{"SM-08":{type:"Municipality",name:"Montegiardino"},"SM-09":{type:"Municipality",name:"Serravalle"},"SM-04":{type:"Municipality",name:"Faetano"},"SM-05":{type:"Municipality",name:"Fiorentino"},"SM-06":{type:"Municipality",name:"Borgo Maggiore"},"SM-07":{type:"Municipality",name:"San Marino"},"SM-01":{type:"Municipality",name:"Acquaviva"},"SM-02":{type:"Municipality",name:"Chiesanuova"},"SM-03":{type:"Municipality",name:"Domagnano"}}},SL:{name:"Sierra Leone",sub:{"SL-S":{type:"province",name:"Southern"},"SL-N":{type:"province",name:"Northern"},"SL-W":{type:"area",name:"Western Area (Freetown)"},"SL-E":{type:"province",name:"Eastern"}}},SC:{name:"Seychelles",sub:{"SC-19":{type:"District",name:"Plaisance"},"SC-18":{type:"District",name:"Mont Fleuri"},"SC-15":{type:"District",name:"La Digue"},"SC-14":{type:"District",name:"Grand Anse Praslin"},"SC-17":{type:"District",name:"Mont Buxton"},"SC-16":{type:"District",name:"English River"},"SC-11":{type:"District",name:"Cascade"},"SC-10":{type:"District",name:"Bel Ombre"},"SC-13":{type:"District",name:"Grand Anse Mahe"},"SC-12":{type:"District",name:"Glacis"},"SC-24":{type:"District",name:"Les Mamelles"},"SC-25":{type:"District",name:"Roche Caiman"},"SC-20":{type:"District",name:"Pointe La Rue"},"SC-21":{type:"District",name:"Port Glaud"},"SC-22":{type:"District",name:"Saint Louis"},"SC-23":{type:"District",name:"Takamaka"},"SC-08":{type:"District",name:"Beau Vallon"},"SC-09":{type:"District",name:"Bel Air"},"SC-06":{type:"District",name:"Baie Lazare"},"SC-07":{type:"District",name:"Baie Sainte Anne"},"SC-04":{type:"District",name:"Au Cap"},"SC-05":{type:"District",name:"Anse Royale"},"SC-02":{type:"District",name:"Anse Boileau"},"SC-03":{type:"District",name:"Anse Étoile"},"SC-01":{type:"District",name:"Anse aux Pins"}}},KZ:{name:"Kazakhstan",sub:{"KZ-KAR":{type:"region",name:"Qaraghandy oblysy"},"KZ-SEV":{type:"region",name:"Soltüstik Qazaqstan oblysy"},"KZ-PAV":{type:"region",name:"Pavlodar oblysy"},"KZ-BAY":{type:"city",name:"Bayqongyr"},"KZ-VOS":{type:"region",name:"Shyghys Qazaqstan oblysy"},"KZ-YUZ":{type:"region",name:"Ongtüstik Qazaqstan oblysy"},"KZ-ZAP":{type:"region",name:"Batys Qazaqstan oblysy"},"KZ-KUS":{type:"region",name:"Qostanay oblysy"},"KZ-AKT":{type:"region",name:"Aqtöbe oblysy"},"KZ-MAN":{type:"region",name:"Mangghystau oblysy"},"KZ-ALM":{type:"region",name:"Almaty oblysy"},"KZ-ALA":{type:"city",name:"Almaty"},"KZ-AST":{type:"city",name:"Astana"},"KZ-AKM":{type:"region",name:"Aqmola oblysy"},"KZ-ZHA":{type:"region",name:"Zhambyl oblysy"},"KZ-KZY":{type:"region",name:"Qyzylorda oblysy"},"KZ-ATY":{type:"region",name:"Atyrau oblysy"}}},KY:{name:"Cayman Islands",sub:{"Ky-05~":{type:"District",name:"Little Cayman"},"KY-04~":{type:"District",name:"George Town"},"KY-07~":{type:"District",name:"West Bay"},"KY-03~":{type:"District",name:"East End"},"KY-02~":{type:"District",name:"Cayman Brac"},"KY-06~":{type:"District",name:"North Side"},"KY-01~":{type:"District",name:"Bodden Town"}}},SG:{name:"Singapore",sub:{"SG-02":{type:"District",name:"North East"},"SG-03":{type:"District",name:"North West"},"SG-X1~":{type:"",name:"Singapore - No State"},"SG-01":{type:"District",name:"Central Singapore"},"SG-04":{type:"District",name:"South East"},"SG-05":{type:"District",name:"South West"}}},SE:{name:"Sweden",sub:{"SE-O":{type:"County",name:"Västra Götalands län"},"SE-N":{type:"County",name:"Hallands län"},"SE-M":{type:"County",name:"Skåne län"},"SE-K":{type:"County",name:"Blekinge län"},"SE-I":{type:"County",name:"Gotlands län"},"SE-H":{type:"County",name:"Kalmar län"},"SE-G":{type:"County",name:"Kronobergs län"},"SE-F":{type:"County",name:"Jönköpings län"},"SE-E":{type:"County",name:"Östergötlands län"},"SE-D":{type:"County",name:"Södermanlands län"},"SE-C":{type:"County",name:"Uppsala län"},"SE-AC":{type:"County",name:"Västerbottens län"},"SE-Z":{type:"County",name:"Jämtlands län"},"SE-Y":{type:"County",name:"Västernorrlands län"},"SE-X":{type:"County",name:"Gävleborgs län"},"SE-W":{type:"County",name:"Dalarnas län"},"SE-AB":{type:"County",name:"Stockholms län"},"SE-BD":{type:"County",name:"Norrbottens län"},"SE-T":{type:"County",name:"Örebro län"},"SE-S":{type:"County",name:"Värmlands län"},"SE-U":{type:"County",name:"Västmanlands län"}}},SD:{name:"Sudan",sub:{"SD-RS":{type:"State",name:"Al Bah¸r al Ah¸mar"},"SD-GZ":{type:"State",name:"Al Jazirah"},"SD-NB":{type:"State",name:"An Nil al Azraq"},"SD-10":{type:"",name:"Gharb Kurdufan"},"SD-NO":{type:"State",name:"Ash Shamaliyah"},"SD-KA":{type:"State",name:"Kassala"},"SD-DW":{type:"State",name:"Gharb Darfur"},"SD-KH":{type:"State",name:"Al Khartum"},"SD-DS":{type:"State",name:"Janub Darfur"},"SD-NW":{type:"State",name:"An Nīl al Abyaḑ"},"SD-DC":{type:"",name:"Zalingei"},"SD-DN":{type:"State",name:"Shamal Darfur"},"SD-NR":{type:"State",name:"An Nil"},"SD-DE":{type:"",name:"Sharq Dārfūr"},"SD-KS":{type:"State",name:"Janub Kurdufan"},"SD-GD":{type:"State",name:"Al Qaḑārif"},"SD-SI":{type:"State",name:"Sinnar"},"SD-KN":{type:"State",name:"Shamal Kurdufan"}}},DO:{name:"Dominican Republic",sub:{"DO-24":{type:"province",name:"Sánchez Ramírez"},"DO-12":{type:"province",name:"La Romana"},"DO-13":{type:"province",name:"La Vega"},"DO-10":{type:"province",name:"Independencia"},"DO-11":{type:"province",name:"La Altagracia"},"DO-16":{type:"province",name:"Pedernales"},"DO-17":{type:"province",name:"Peravia"},"DO-14":{type:"province",name:"María Trinidad Sánchez"},"DO-15":{type:"province",name:"Monte Cristi"},"DO-30":{type:"province",name:"Hato Mayor"},"DO-31":{type:"province",name:"San Jose de Ocoa"},"DO-18":{type:"province",name:"Puerto Plata"},"DO-19":{type:"province",name:"Salcedo"},"DO-29":{type:"province",name:"Monte Plata"},"DO-01":{type:"province",name:"Distrito Nacional (Santo Domingo)"},"DO-03":{type:"province",name:"Bahoruco"},"DO-02":{type:"province",name:"Azua"},"DO-05":{type:"province",name:"Dajabón"},"DO-04":{type:"province",name:"Barahona"},"DO-07":{type:"province",name:"La Estrelleta"},"DO-06":{type:"province",name:"Duarte"},"DO-09":{type:"province",name:"Espaillat"},"DO-08":{type:"province",name:"El Seybo"},"DO-25":{type:"province",name:"Santiago"},"DO-28":{type:"province",name:"Monseñor Nouel"},"DO-23":{type:"province",name:"San Pedro de Macorís"},"DO-22":{type:"province",name:"San Juan"},"DO-21":{type:"province",name:"San Cristóbal"},"DO-20":{type:"province",name:"Samaná"},"DO-27":{type:"province",name:"Valverde"},"DO-26":{type:"province",name:"Santiago Rodríguez"},"DO-32":{type:"",name:"Santo Domingo"}}},DM:{name:"Dominica",sub:{"DM-10":{type:"Parish",name:"Saint Paul"},"DM-11":{type:"Parish",name:"Saint Peter"},"DM-09":{type:"Parish",name:"Saint Patrick"},"DM-08":{type:"Parish",name:"Saint Mark"},"DM-03":{type:"Parish",name:"Saint David"},"DM-02":{type:"Parish",name:"Saint Andrew"},"DM-07":{type:"Parish",name:"Saint Luke"},"DM-06":{type:"Parish",name:"Saint Joseph"},"DM-05":{type:"Parish",name:"Saint John"},"DM-04":{type:"Parish",name:"Saint George"}}},DJ:{name:"Djibouti",sub:{"DJ-AS":{type:"Region",name:"Ali Sabieh"},"DJ-AR":{type:"Region",name:"Arta"},"DJ-DJ":{type:"City",name:"Djibouti"},"DJ-DI":{type:"Region",name:"Dikhil"},"DJ-OB":{type:"Region",name:"Obock"},"DJ-TA":{type:"Region",name:"Tadjourah"}}},DK:{name:"Denmark",sub:{"DK-85":{type:"Region",name:"Zeeland"},"DK-84":{type:"Region",name:"Capital"},"DK-81":{type:"Region",name:"North Jutland"},"DK-83":{type:"Region",name:"South Denmark"},"DK-82":{type:"Region",name:"Central Jutland"}}},DE:{name:"Germany",sub:{"DE-BE":{type:"State",name:"Berlin"},"DE-ST":{type:"State",name:"Sachsen-Anhalt"},"DE-RP":{type:"State",name:"Rheinland-Pfalz"},"DE-BB":{type:"State",name:"Brandenburg"},"DE-NI":{type:"State",name:"Niedersachsen"},"DE-SH":{type:"State",name:"Schleswig-Holstein"},"DE-TH":{type:"State",name:"Thüringen"},"DE-BW":{type:"State",name:"Baden-Württemberg"},"DE-HH":{type:"State",name:"Hamburg"},"DE-MV":{type:"State",name:"Mecklenburg-Vorpommern"},"DE-NW":{type:"State",name:"Nordrhein-Westfalen"},"DE-SN":{type:"State",name:"Sachsen"},"DE-HB":{type:"State",name:"Bremen"},"DE-SL":{type:"State",name:"Saarland"},"DE-BY":{type:"State",name:"Bayern"},"DE-HE":{type:"State",name:"Hessen"}}},YE:{name:"Yemen",sub:{"YE-BA":{type:"Governorate",name:"Al Bay?a'"},"YE-SD":{type:"Governorate",name:"Sa`dah"},"YE-SA":{type:"municipality",name:"Şan‘ā"},"YE-HU":{type:"Governorate",name:"Al ?udaydah"},"YE-SN":{type:"Governorate",name:"Sanʿā"},"YE-SH":{type:"Governorate",name:"Shabwah"},"YE-TA":{type:"Governorate",name:"Taʿizz"},"YE-MA":{type:"Governorate",name:"Ma'rib"},"YE-LA":{type:"Governorate",name:"La?ij"},"YE-RA":{type:"Governorate",name:"Raymah"},"YE-IB":{type:"Governorate",name:"Ibb"},"YE-AM":{type:"Governorate",name:"'Amran"},"YE-HD":{type:"Governorate",name:"Hadramawt"},"YE-DA":{type:"Governorate",name:"Ad Dāli‘"},"YE-HJ":{type:"Governorate",name:"Hajjah"},"YE-JA":{type:"Governorate",name:"Al Jawf"},"YE-MW":{type:"Governorate",name:"Al Mahwit"},"YE-AB":{type:"Governorate",name:"Abyan"},"YE-AD":{type:"Governorate",name:"ʿAdan"},"YE-DH":{type:"Governorate",name:"Dhamar"},"YE-MR":{type:"Governorate",name:"Al Mahrah"}}},DZ:{name:"Algeria",sub:{"DZ-11":{type:"Province",name:"Tamanghasset"},"DZ-10":{type:"Province",name:"Bouira"},"DZ-13":{type:"Province",name:"Tlemcen"},"DZ-12":{type:"Province",name:"Tébessa"},"DZ-15":{type:"Province",name:"Tizi Ouzou"},"DZ-14":{type:"Province",name:"Tiaret"},"DZ-39":{type:"Province",name:"El Oued"},"DZ-16":{type:"Province",name:"Alger"},"DZ-19":{type:"Province",name:"Sétif"},"DZ-36":{type:"Province",name:"El Tarf"},"DZ-35":{type:"Province",name:"Boumerdès"},"DZ-34":{type:"Province",name:"Bordj Bou Arréridj"},"DZ-33":{type:"Province",name:"Illizi"},"DZ-32":{type:"Province",name:"El Bayadh"},"DZ-31":{type:"Province",name:"Oran"},"DZ-30":{type:"Province",name:"Ouargla"},"DZ-28":{type:"Province",name:"Msila"},"DZ-17":{type:"Province",name:"Djelfa"},"DZ-38":{type:"Province",name:"Tissemsilt"},"DZ-37":{type:"Province",name:"Tindouf"},"DZ-18":{type:"Province",name:"Jijel"},"DZ-22":{type:"Province",name:"Sidi Bel Abbès"},"DZ-29":{type:"Province",name:"Mascara"},"DZ-02":{type:"Province",name:"Chlef"},"DZ-03":{type:"Province",name:"Laghouat"},"DZ-01":{type:"Province",name:"Adrar"},"DZ-06":{type:"Province",name:"Béjaïa"},"DZ-07":{type:"Province",name:"Biskra"},"DZ-04":{type:"Province",name:"Oum el Bouaghi"
},"DZ-05":{type:"Province",name:"Batna"},"DZ-20":{type:"Province",name:"Saïda"},"DZ-21":{type:"Province",name:"Skikda"},"DZ-08":{type:"Province",name:"Béchar"},"DZ-09":{type:"Province",name:"Blida"},"DZ-24":{type:"Province",name:"Guelma"},"DZ-25":{type:"Province",name:"Constantine"},"DZ-26":{type:"Province",name:"Médéa"},"DZ-27":{type:"Province",name:"Mostaganem"},"DZ-48":{type:"Province",name:"Relizane"},"DZ-46":{type:"Province",name:"Aïn Témouchent"},"DZ-47":{type:"Province",name:"Ghardaïa"},"DZ-44":{type:"Province",name:"Aïn Defla"},"DZ-45":{type:"Province",name:"Naama"},"DZ-42":{type:"Province",name:"Tipaza"},"DZ-43":{type:"Province",name:"Mila"},"DZ-40":{type:"Province",name:"Khenchela"},"DZ-41":{type:"Province",name:"Souk Ahras"},"DZ-23":{type:"Province",name:"Annaba"}}},US:{name:"United States",sub:{"US-NY":{type:"state",name:"New York"},"US-PA":{type:"state",name:"Pennsylvania"},"US-TN":{type:"state",name:"Tennessee"},"US-VI":{type:"outlying area",name:"Virgin Islands, U.S. (see also separate entry under VI)"},"US-NV":{type:"state",name:"Nevada"},"US-NJ":{type:"state",name:"New Jersey"},"US-NH":{type:"state",name:"New Hampshire"},"US-VA":{type:"state",name:"Virginia"},"US-HI":{type:"state",name:"Hawaii"},"US-PR":{type:"outlying area",name:"Puerto Rico (see also separate entry under PR)"},"US-NM":{type:"state",name:"New Mexico"},"US-NC":{type:"state",name:"North Carolina"},"US-ND":{type:"state",name:"North Dakota"},"US-NE":{type:"state",name:"Nebraska"},"US-LA":{type:"state",name:"Louisiana"},"US-UT":{type:"state",name:"Utah"},"US-SD":{type:"state",name:"South Dakota"},"US-DC":{type:"district",name:"District of Columbia"},"US-DE":{type:"state",name:"Delaware"},"US-FL":{type:"state",name:"Florida"},"US-WA":{type:"state",name:"Washington"},"US-UM":{type:"outlying area",name:"United States Minor Outlying Islands (see also separate entry under UM)"},"US-KS":{type:"state",name:"Kansas"},"US-WI":{type:"state",name:"Wisconsin"},"US-OR":{type:"state",name:"Oregon"},"US-KY":{type:"state",name:"Kentucky"},"US-ME":{type:"state",name:"Maine"},"US-OH":{type:"state",name:"Ohio"},"US-IA":{type:"state",name:"Iowa"},"US-MD":{type:"state",name:"Maryland"},"US-ID":{type:"state",name:"Idaho"},"US-WY":{type:"state",name:"Wyoming"},"US-VT":{type:"state",name:"Vermont"},"US-RI":{type:"state",name:"Rhode Island"},"US-IN":{type:"state",name:"Indiana"},"US-IL":{type:"state",name:"Illinois"},"US-AK":{type:"state",name:"Alaska"},"US-TX":{type:"state",name:"Texas"},"US-CO":{type:"state",name:"Colorado"},"US-AR":{type:"state",name:"Arkansas"},"US-GU":{type:"outlying area",name:"Guam (see also separate entry under GU)"},"US-MA":{type:"state",name:"Massachusetts"},"US-AL":{type:"state",name:"Alabama"},"US-MO":{type:"state",name:"Missouri"},"US-MN":{type:"state",name:"Minnesota"},"US-WV":{type:"state",name:"West Virginia"},"US-CA":{type:"state",name:"California"},"US-OK":{type:"state",name:"Oklahoma"},"US-MI":{type:"state",name:"Michigan"},"US-GA":{type:"state",name:"Georgia"},"US-AZ":{type:"state",name:"Arizona"},"US-MT":{type:"state",name:"Montana"},"US-MS":{type:"state",name:"Mississippi"},"US-SC":{type:"state",name:"South Carolina"},"US-MP":{type:"outlying area",name:"Northern Mariana Islands (see also separate entry under MP)"},"US-AS":{type:"outlying area",name:"American Samoa (see also separate entry under AS)"},"US-CT":{type:"state",name:"Connecticut"}}},UY:{name:"Uruguay",sub:{"UY-SO":{type:"Department",name:"Soriano"},"UY-X1~":{type:"Department",name:""},"UY-AR":{type:"Department",name:"Artigas"},"UY-SJ":{type:"Department",name:"San José"},"UY-RN":{type:"Department",name:"Río Negro"},"UY-FS":{type:"Department",name:"Flores"},"UY-TT":{type:"Department",name:"Treinta y Tres"},"UY-RO":{type:"Department",name:"Rocha"},"UY-X3~":{type:"Department",name:""},"UY-SA":{type:"Department",name:"Salto"},"UY-X2~":{type:"Department",name:""},"UY-FD":{type:"Department",name:"Florida"},"UY-PA":{type:"Department",name:"Paysandú"},"UY-MA":{type:"Department",name:"Maldonado"},"UY-LA":{type:"Department",name:"Lavalleja"},"UY-MO":{type:"Department",name:"Montevideo"},"UY-DU":{type:"Department",name:"Durazno"},"UY-RV":{type:"Department",name:"Rivera"},"UY-TA":{type:"Department",name:"Tacuarembó"}}},UM:{name:"United States Minor Outlying Islands",sub:{"UM-76":{type:"Territory",name:"Navassa Island"},"UM-71":{type:"Territory",name:"Midway Islands"},"UM-67":{type:"Territory",name:"Johnston Atoll"},"UM-86":{type:"Territory",name:"Jarvis Island"},"UM-84":{type:"Territory",name:"Howland Island"},"UM-89":{type:"Territory",name:"Kingman Reef"},"UM-79":{type:"Territory",name:"Wake Island"},"UM-81":{type:"Territory",name:"Baker Island"},"UM-95":{type:"Territory",name:"Palmyra Atoll"}}},LB:{name:"Lebanon",sub:{"LB-JA":{type:"Province",name:"Loubnâne ej Jnoûbi"},"LB-AS":{type:"Province",name:"Loubnâne ech Chemâli"},"LB-JL":{type:"Province",name:"Jabal Loubnâne"},"LB-BH":{type:"Province",name:"Baalbek-Hermel"},"LB-BI":{type:"Province",name:"El Béqaa"},"LB-BA":{type:"Province",name:"Beirut"},"LB-AK":{type:"Province",name:"Aakkar"},"LB-NA":{type:"Province",name:"Nabatîyé"}}},LC:{name:"Saint Lucia",sub:{"LC-11":{type:"District",name:"Vieux Fort"},"LC-10":{type:"District",name:"Soufrière"},"LC-09":{type:"",name:"Praslin"},"LC-08":{type:"District",name:"Micoud"},"LC-05":{type:"District",name:"Dennery"},"LC-04":{type:"",name:"Dauphin"},"LC-07":{type:"District",name:"Laborie"},"LC-06":{type:"District",name:"Gros Inlet"},"LC-01":{type:"District",name:"Anse-la-Raye"},"LC-03":{type:"District",name:"Choiseul"},"LC-02":{type:"District",name:"Castries"}}},LA:{name:"Laos",sub:{"LA-HO":{type:"province",name:"Houaphan"},"LA-VT":{type:"prefecture",name:"Vientiane Prefecture"},"LA-CH":{type:"province",name:"Champasak"},"LA-OU":{type:"province",name:"Oudômxai"},"LA-AT":{type:"province",name:"Attapu"},"LA-BL":{type:"province",name:"Bolikhamxai"},"LA-SL":{type:"province",name:"Salavan"},"LA-KH":{type:"province",name:"Khammouan"},"LA-LP":{type:"province",name:"Louangphabang"},"LA-SV":{type:"province",name:"Savannakhét"},"LA-BK":{type:"province",name:"Bokèo"},"LA-PH":{type:"province",name:"Phôngsali"},"LA-XN":{type:"special zone",name:"Xaisômboun"},"LA-LM":{type:"province",name:"Louang Namtha"},"LA-XE":{type:"province",name:"Xékong"},"LA-VI":{type:"province",name:"Vientiane"},"LA-XI":{type:"province",name:"Xiangkhoang"},"LA-XA":{type:"province",name:"Xaignabouli"}}},TV:{name:"Tuvalu",sub:{"TV-NKL":{type:"Island Council",name:"Nukulaelae"},"TV-NKF":{type:"Island Council",name:"Nukufetau"},"TV-VAI":{type:"Island Council",name:"Vaitupu"},"TV-FUN":{type:"Island Council",name:"Funafuti"},"TV-NIT":{type:"Island Council",name:"Niutao"},"TV-NIU":{type:"Island Council",name:"Nui"},"TV-NMG":{type:"Island Council",name:"Nanumanga"},"TV-NMA":{type:"Island Council",name:"Nanumea"}}},TW:{name:"Taiwan",sub:{"TW-ILA":{type:"district",name:"Ilan"},"TW-YUN":{type:"district",name:"Yunlin"},"TW-NAN":{type:"district",name:"Nantou"},"TW-TNQ":{type:"district",name:"Tainan"},"TW-TNN":{type:"municipality",name:"Tainan Municipality"},"TW-KEE":{type:"municipality",name:"Keelung Municipality"},"TW-CHA":{type:"district",name:"Changhua"},"TW-TPE":{type:"special municipality",name:"Taipei Special Municipality"},"TW-HUA":{type:"district",name:"Hualien"},"TW-HSZ":{type:"municipality",name:"Hsinchu Municipality"},"TW-TAO":{type:"district",name:"Taoyuan"},"TW-PIF":{type:"district",name:"Pingtung"},"TW-KHH":{type:"special municipality",name:"Kaohsiung Special Municipality"},"TW-PEN":{type:"district",name:"Penghu"},"TW-CYI":{type:"municipality",name:"Chiayi Municipality"},"TW-TXQ":{type:"district",name:"Taichung"},"TW-MIA":{type:"district",name:"Miaoli"},"TW-HSQ":{type:"district",name:"Hsinchu"},"TW-CYQ":{type:"district",name:"Chiayi"},"TW-TPQ":{type:"district",name:"Taipei"},"TW-KHQ":{type:"district",name:"Kaohsiung"},"TW-TXG":{type:"municipality",name:"Taichung Municipality"},"TW-TTT":{type:"district",name:"Taitung"}}},TT:{name:"Trinidad and Tobago",sub:{"TT-SJL":{type:"region",name:"San Juan-Laventille"},"TT-ETO":{type:"region",name:"Eastern Tobago"},"TT-SGE":{type:"region",name:"Sangre Grande"},"TT-PTF":{type:"municipality",name:"Point Fortin"},"TT-RCM":{type:"region",name:"Rio Claro-Mayaro"},"TT-WTO":{type:"region",name:"Western Tobago"},"TT-PRT":{type:"region",name:"Princes Town"},"TT-POS":{type:"municipality",name:"Port of Spain"},"TT-CTT":{type:"region",name:"Couva-Tabaquite-Talparo"},"TT-CHA":{type:"municipality",name:"Chaguanas"},"TT-ARI":{type:"municipality",name:"Arima"},"TT-SIP":{type:"region",name:"Siparia"},"TT-PED":{type:"region",name:"Penal-Debe"},"TT-SFO":{type:"municipality",name:"San Fernando"},"TT-DMN":{type:"region",name:"Diego Martin"},"TT-TUP":{type:"region",name:"Tunapuna-Piarco"}}},TR:{name:"Turkey",sub:{"TR-61":{type:"Province",name:"Trabzon"},"TR-42":{type:"Province",name:"Konya"},"TR-60":{type:"Province",name:"Tokat"},"TR-57":{type:"Province",name:"Sinop"},"TR-50":{type:"Province",name:"Nevsehir"},"TR-62":{type:"Province",name:"Tunceli"},"TR-77":{type:"Province",name:"Yalova"},"TR-54":{type:"Province",name:"Sakarya"},"TR-73":{type:"Province",name:"Sirnak"},"TR-37":{type:"Province",name:"Kastamonu"},"TR-36":{type:"Province",name:"Kars"},"TR-35":{type:"Province",name:"Izmir"},"TR-34":{type:"Province",name:"Istanbul"},"TR-33":{type:"Province",name:"Mersin"},"TR-32":{type:"Province",name:"Isparta"},"TR-31":{type:"Province",name:"Hatay"},"TR-30":{type:"Province",name:"Hakkâri"},"TR-65":{type:"Province",name:"Van"},"TR-78":{type:"Province",name:"Karabük"},"TR-63":{type:"Province",name:"Sanliurfa"},"TR-44":{type:"Province",name:"Malatya"},"TR-39":{type:"Province",name:"Kirklareli"},"TR-38":{type:"Province",name:"Kayseri"},"TR-55":{type:"Province",name:"Samsun"},"TR-72":{type:"Province",name:"Batman"},"TR-71":{type:"Province",name:"Kirikkale"},"TR-70":{type:"Province",name:"Karaman"},"TR-51":{type:"Province",name:"Nigde"},"TR-76":{type:"Province",name:"Igdir"},"TR-75":{type:"Province",name:"Ardahan"},"TR-74":{type:"Province",name:"Bartin"},"TR-11":{type:"Province",name:"Bilecik"},"TR-10":{type:"Province",name:"Balikesir"},"TR-13":{type:"Province",name:"Bitlis"},"TR-12":{type:"Province",name:"Bingöl"},"TR-15":{type:"Province",name:"Burdur"},"TR-14":{type:"Province",name:"Bolu"},"TR-17":{type:"Province",name:"Çanakkale"},"TR-16":{type:"Province",name:"Bursa"},"TR-48":{type:"Province",name:"Mugla"},"TR-19":{type:"Province",name:"Çorum"},"TR-53":{type:"Province",name:"Rize"},"TR-43":{type:"Province",name:"Kütahya"},"TR-52":{type:"Province",name:"Ordu"},"TR-45":{type:"Province",name:"Manisa"},"TR-64":{type:"Province",name:"Usak"},"TR-80":{type:"Province",name:"Osmaniye"},"TR-81":{type:"Province",name:"Düzce"},"TR-67":{type:"Province",name:"Zonguldak"},"TR-56":{type:"Province",name:"Siirt"},"TR-49":{type:"Province",name:"Mus"},"TR-79":{type:"Province",name:"Kilis"},"TR-18":{type:"Province",name:"Çankiri"},"TR-20":{type:"Province",name:"Denizli"},"TR-21":{type:"Province",name:"Diyarbakir"},"TR-22":{type:"Province",name:"Edirne"},"TR-23":{type:"Province",name:"Elazig"},"TR-24":{type:"Province",name:"Erzincan"},"TR-25":{type:"Province",name:"Erzurum"},"TR-26":{type:"Province",name:"Eskisehir"},"TR-27":{type:"Province",name:"Gaziantep"},"TR-28":{type:"Province",name:"Giresun"},"TR-29":{type:"Province",name:"Gümüshane"},"TR-59":{type:"Province",name:"Tekirdag"},"TR-58":{type:"Province",name:"Sivas"},"TR-46":{type:"Province",name:"Kahramanmaras"},"TR-47":{type:"Province",name:"Mardin"},"TR-08":{type:"Province",name:"Artvin"},"TR-09":{type:"Province",name:"Aydin"},"TR-68":{type:"Province",name:"Aksaray"},"TR-69":{type:"Province",name:"Bayburt"},"TR-40":{type:"Province",name:"Kirsehir"},"TR-41":{type:"Province",name:"Kocaeli"},"TR-02":{type:"Province",name:"Adiyaman"},"TR-03":{type:"Province",name:"Afyonkarahisar"},"TR-66":{type:"Province",name:"Yozgat"},"TR-01":{type:"Province",name:"Adana"},"TR-06":{type:"Province",name:"Ankara"},"TR-07":{type:"Province",name:"Antalya"},"TR-04":{type:"Province",name:"Agri"},"TR-05":{type:"Province",name:"Amasya"}}},LK:{name:"Sri Lanka",sub:{"LK-23":{type:"district",name:"Nuvara Ĕliya"},"LK-22":{type:"district",name:"Mātale"},"LK-21":{type:"district",name:"Mahanuvara"},"LK-41":{type:"district",name:"Yāpanaya"},"LK-43":{type:"district",name:"Mannārama"},"LK-42":{type:"district",name:"Kilinŏchchi"},"LK-45":{type:"district",name:"Mulativ"},"LK-44":{type:"district",name:"Vavuniyāva"},"LK-4":{type:"province",name:"Uturu paḷāta"},"LK-5":{type:"province",name:"Mattiya mākāṇam"},"LK-6":{type:"province",name:"Vayamba paḷāta"},"LK-7":{type:"province",name:"Uturumæ̆da paḷāta"},"LK-1":{type:"province",name:"Basnāhira paḷāta"},"LK-2":{type:"province",name:"Madhyama paḷāta"},"LK-3":{type:"province",name:"Dakuṇu paḷāta"},"LK-8":{type:"province",name:"Ūva paḷāta"},"LK-9":{type:"province",name:"Sabaragamuva paḷāta"},"LK-71":{type:"district",name:"Anurādhapura"},"LK-72":{type:"district",name:"Pŏḷŏnnaruva"},"LK-92":{type:"district",name:"Kegalla"},"LK-91":{type:"district",name:"Ratnapura"},"LK-12":{type:"district",name:"Gampaha"},"LK-13":{type:"district",name:"Kalutara"},"LK-11":{type:"district",name:"Kŏḷamba"},"LK-52":{type:"district",name:"Ampāra"},"LK-53":{type:"district",name:"Trikuṇāmalaya"},"LK-51":{type:"district",name:"Madakalapuva"},"LK-31":{type:"district",name:"Gālla"},"LK-32":{type:"district",name:"Mātara"},"LK-33":{type:"district",name:"Hambantŏṭa"},"LK-62":{type:"district",name:"Puttalama"},"LK-61":{type:"district",name:"Kuruṇægala"},"LK-81":{type:"district",name:"Badulla"},"LK-82":{type:"district",name:"Mŏṇarāgala"}}},LI:{name:"Liechtenstein",sub:{"LI-11":{type:"Commune",name:"Vaduz"},"LI-10":{type:"Commune",name:"Triesenberg"},"LI-09":{type:"Commune",name:"Triesen"},"LI-08":{type:"Commune",name:"Schellenberg"},"LI-07":{type:"Commune",name:"Schaan"},"LI-06":{type:"Commune",name:"Ruggell"},"LI-05":{type:"Commune",name:"Planken"},"LI-04":{type:"Commune",name:"Mauren"},"LI-03":{type:"Commune",name:"Gamprin"},"LI-02":{type:"Commune",name:"Eschen"},"LI-01":{type:"Commune",name:"Balzers"}}},LV:{name:"Latvia",sub:{"LV-DGV":{type:"city",name:"Daugavpils"},"LV-078":{type:"District",name:"Riebiņu novads (Riebiņi)"},"LV-079":{type:"District",name:"Rojas novads (Roja)"},"LV-072":{type:"District",name:"Pļaviņu novads (Pļaviņas)"},"LV-073":{type:"District",name:"Preiļu novads (Preiļi)"},"LV-070":{type:"District",name:"Pārgaujas novads (Pārgauja)"},"LV-071":{type:"District",name:"Pāvilostas novads (Pāvilosta)"},"LV-076":{type:"District",name:"Raunas novads (Rauna)"},"LV-077":{type:"District",name:"Rēzeknes novads (Rēzekne)"},"LV-074":{type:"District",name:"Priekules novads (Priekule)"},"LV-075":{type:"District",name:"Priekuļu novads (Priekuļi)"},"LV-106":{type:"District",name:"Ventspils novads (Ventspils)"},"LV-107":{type:"District",name:"Viesītes novads (Viesīte)"},"LV-JEL":{type:"city",name:"Jelgava"},"LV-069":{type:"District",name:"Ozolnieku novads (Ozolnieki)"},"LV-068":{type:"District",name:"Olaines novads (Olaine)"},"LV-104":{type:"District",name:"Vecpiebalgas novads (Vecpiebalga)"},"LV-105":{type:"District",name:"Vecumnieku novads (Vecumnieki)"},"LV-102":{type:"District",name:"Varakļānu novads (Varakļāni)"},"LV-103":{type:"District",name:"Vārkavas novads (Vārkava)"},"LV-100":{type:"District",name:"Vaiņodes novads (Vaiņode)"},"LV-101":{type:"District",name:"Valkas novads (Valka)"},"LV-061":{type:"District",name:"Mālpils novads (Mālpils)"},"LV-060":{type:"District",name:"Mazsalacas novads (Mazsalaca)"},"LV-063":{type:"District",name:"Mērsraga novads"},"LV-LPX":{type:"city",name:"Liepaja"},"LV-065":{type:"District",name:"Neretas novads (Nereta)"},"LV-064":{type:"District",name:"Naukšēnu novads (Naukšēni)"},"LV-067":{type:"District",name:"Ogres novads (Ogre)"},"LV-066":{type:"District",name:"Nīcas novads (Nīca)"},"LV-062":{type:"District",name:"Mārupes novads (Mārupe)"},"LV-VEN":{type:"city",name:"Ventspils"},"LV-054":{type:"District",name:"Limbažu novads (Limbaži)"},"LV-055":{type:"District",name:"Līgatnes novads (Līgatne)"},"LV-056":{type:"District",name:"Līvānu novads (Līvāni)"},"LV-057":{type:"District",name:"Lubānas novads (Lubāna)"},"LV-050":{type:"District",name:"Kuldīgas novads (Kuldīga)"},"LV-108":{type:"District",name:"Viļakas novads (Viļaka)"},"LV-052":{type:"District",name:"Ķekavas novads (Ķekava)"},"LV-053":{type:"District",name:"Lielvārdes novads (Lielvārde)"},"LV-REZ":{type:"city",name:"Rezekne"},"LV-109":{type:"District",name:"Viļānu novads (Viļāni)"},"LV-058":{type:"District",name:"Ludzas novads (Ludza)"},"LV-059":{type:"District",name:"Madonas novads (Madona)"},"LV-110":{type:"District",name:"Zilupes novads (Zilupe)"},"LV-VMR":{type:"city",name:"Valmiera"},"LV-043":{type:"District",name:"Kandavas novads (Kandava)"},"LV-042":{type:"District",name:"Jēkabpils novads (Jēkabpils)"},"LV-041":{type:"District",name:"Jelgavas novads (Jelgava)"},"LV-040":{type:"District",name:"Jaunpils novads (Jaunpils)"},"LV-047":{type:"District",name:"Krāslavas novads (Krāslava)"},"LV-046":{type:"District",name:"Kokneses novads (Koknese)"},"LV-045":{type:"District",name:"Kocēnu novads"},"LV-044":{type:"District",name:"Kārsavas novads (Kārsava)"},"LV-049":{type:"District",name:"Krustpils novads (Krustpils)"},"LV-048":{type:"District",name:"Krimuldas novads (Krimulda)"},"LV-036":{type:"District",name:"Ilūkstes novads (Ilūkste)"},"LV-037":{type:"District",name:"Inčukalna novads (Inčukalns)"},"LV-034":{type:"District",name:"Iecavas novads (Iecava)"},"LV-035":{type:"District",name:"Ikšķiles novads (Ikšķile)"},"LV-032":{type:"District",name:"Grobiņas novads (Grobiņa)"},"LV-033":{type:"District",name:"Gulbenes novads (Gulbene)"},"LV-030":{type:"District",name:"Ērgļu novads (Ērgļi)"},"LV-031":{type:"District",name:"Garkalnes novads (Garkalne)"},"LV-038":{type:"District",name:"Jaunjelgavas novads (Jaunjelgava)"},"LV-039":{type:"District",name:"Jaunpiebalgas novads (Jaunpiebalga)"},"LV-025":{type:"District",name:"Daugavpils novads (Daugavpils)"},"LV-024":{type:"District",name:"Dagdas novads (Dagda)"},"LV-027":{type:"District",name:"Dundagas novads (Dundaga)"},"LV-026":{type:"District",name:"Dobeles novads (Dobele)"},"LV-021":{type:"District",name:"Cesvaines novads (Cesvaine)"},"LV-020":{type:"District",name:"Carnikavas novads (Carnikava)"},"LV-023":{type:"District",name:"Ciblas novads (Cibla)"},"LV-022":{type:"District",name:"Cēsu novads (Cēsis)"},"LV-029":{type:"District",name:"Engures novads (Engure)"},"LV-028":{type:"District",name:"Durbes novads (Durbe)"},"LV-JKB":{type:"City",name:"Jēkabpils"},"LV-051":{type:"District",name:"Ķeguma novads (Ķegums)"},"LV-098":{type:"District",name:"Tērvetes novads (Tērvete)"},"LV-099":{type:"District",name:"Tukuma novads (Tukums)"},"LV-090":{type:"District",name:"Sējas novads (Sēja)"},"LV-091":{type:"District",name:"Siguldas novads (Sigulda)"},"LV-092":{type:"District",name:"Skrīveru novads (Skrīveri)"},"LV-093":{type:"District",name:"Skrundas novads (Skrunda)"},"LV-094":{type:"District",name:"Smiltenes novads (Smiltene)"},"LV-095":{type:"District",name:"Stopiņu novads (Stopiņi)"},"LV-096":{type:"District",name:"Strenču novads (Strenči)"},"LV-097":{type:"District",name:"Talsu novads (Talsi)"},"LV-010":{type:"District",name:"Auces novads (Auce)"},"LV-011":{type:"District",name:"Ādažu novads (Ādaži)"},"LV-012":{type:"District",name:"Babītes novads (Babīte)"},"LV-013":{type:"District",name:"Baldones novads (Baldone)"},"LV-014":{type:"District",name:"Baltinavas novads (Baltinava)"},"LV-015":{type:"District",name:"Balvu novads (Balvi)"},"LV-016":{type:"District",name:"Bauskas novads (Bauska)"},"LV-017":{type:"District",name:"Beverīnas novads (Beverīna)"},"LV-018":{type:"District",name:"Brocēnu novads (Brocēni)"},"LV-019":{type:"District",name:"Burtnieku novads (Burtnieki)"},"LV-JUR":{type:"city",name:"Jurmala"},"LV-087":{type:"District",name:"Salaspils novads (Salaspils)"},"LV-086":{type:"District",name:"Salacgrīvas novads (Salacgrīva)"},"LV-085":{type:"District",name:"Salas novads (Sala)"},"LV-084":{type:"District",name:"Rūjienas novads (Rūjiena)"},"LV-083":{type:"District",name:"Rundāles novads (Rundāle)"},"LV-082":{type:"District",name:"Rugāju novads (Rugāji)"},"LV-081":{type:"District",name:"Rucavas novads (Rucava)"},"LV-080":{type:"District",name:"Ropažu novads (Ropaži)"},"LV-089":{type:"District",name:"Saulkrastu novads (Saulkrasti)"},"LV-088":{type:"District",name:"Saldus novads (Saldus)"},"LV-009":{type:"District",name:"Apes novads (Ape)"},"LV-008":{type:"District",name:"Amatas novads (Amata)"},"LV-007":{type:"District",name:"Alūksnes novads (Alūksne)"},"LV-006":{type:"District",name:"Alsungas novads (Alsunga)"},"LV-005":{type:"District",name:"Alojas novads (Aloja)"},"LV-004":{type:"District",name:"Aknīstes novads (Aknīste)"},"LV-003":{type:"District",name:"Aizputes novads (Aizpute)"},"LV-002":{type:"District",name:"Aizkraukles novads (Aizkraukle)"},"LV-001":{type:"District",name:"Aglonas novads (Aglona)"},"LV-RIX":{type:"city",name:"Riga"}}},TO:{name:"Tonga",sub:{"TO-01":{type:"Island group",name:"'Eua"},"TO-03":{type:"Island group",name:"Niuas"},"TO-02":{type:"Island group",name:"Ha'apai"},"TO-05":{type:"Island group",name:"Vava'u"},"TO-04":{type:"Island group",name:"Tongatapu"}}},LT:{name:"Lithuania",sub:{"LT-KU":{type:"County",name:"Kauno Apskritis"},"LT-SA":{type:"County",name:"Šiauliu Apskritis"},"LT-TE":{type:"County",name:"Telšiu Apskritis"},"LT-VL":{type:"County",name:"Vilniaus Apskritis"},"LT-AL":{type:"County",name:"Alytaus Apskritis"},"LT-TA":{type:"County",name:"Taurages Apskritis"},"LT-UT":{type:"County",name:"Utenos Apskritis"},"LT-MR":{type:"County",name:"Marijampoles Apskritis"},"LT-KL":{type:"County",name:"Klaipedos Apskritis"},"LT-PN":{type:"County",name:"Panevežio Apskritis"}}},LU:{name:"Luxembourg",sub:{"LU-G":{type:"District",name:"Grevenmacher"},"LU-D":{type:"District",name:"Diekirch"},"LU-L":{type:"District",name:"Luxembourg (fr)"}}},LR:{name:"Liberia",sub:{"LR-CM":{type:"County",name:"Grand Cape Mount"},"LR-BM":{type:"County",name:"Bomi"},"LR-MY":{type:"County",name:"Maryland"},"LR-LO":{type:"County",name:"Lofa"},"LR-MO":{type:"County",name:"Montserrado"},"LR-MG":{type:"County",name:"Margibi"},"LR-BG":{type:"County",name:"Bong"},"LR-GK":{type:"County",name:"Grand Kru"},"LR-RI":{type:"County",name:"Rivercess"},"LR-X1~":{type:"County",name:"Gbarpolu"},"LR-SI":{type:"County",name:"Sinoe"},"LR-GB":{type:"County",name:"Grand Bassa"},"LR-X2~":{type:"County",name:"River Gee"},"LR-GG":{type:"County",name:"Grand Gedeh"},"LR-NI":{type:"County",name:"Nimba"}}},LS:{name:"Lesotho",sub:{"LS-H":{type:"District",name:"Qacha's Nek"},"LS-J":{type:"District",name:"Mokhotlong"},"LS-K":{type:"District",name:"Thaba-Tseka"},"LS-D":{type:"District",name:"Berea"},"LS-E":{type:"District",name:"Mafeteng"},"LS-F":{type:"District",name:"Mohale's Hoek"},"LS-G":{type:"District",name:"Quthing"},"LS-A":{type:"District",name:"Maseru"},"LS-B":{type:"District",name:"Butha-Buthe"},"LS-C":{type:"District",name:"Leribe"}}},TH:{name:"Thailand",sub:{"TH-57":{type:"province",name:"Chiang Rai"},"TH-56":{type:"province",name:"Phayao"},"TH-55":{type:"province",name:"Nan"},"TH-54":{type:"province",name:"Phrae"},"TH-S":{type:"special administrative city",name:"Phatthaya"},"TH-52":{type:"province",name:"Lampang"},"TH-51":{type:"province",name:"Lamphun"},"TH-50":{type:"province",name:"Chiang Mai"},"TH-93":{type:"province",name:"Phatthalung"},"TH-92":{type:"province",name:"Trang"},"TH-91":{type:"province",name:"Satun"},"TH-90":{type:"province",name:"Songkhla"},"TH-96":{type:"province",name:"Narathiwat"},"TH-61":{type:"province",name:"Uthai Thani"},"TH-58":{type:"province",name:"Mae Hong Son"},"TH-13":{type:"province",name:"Pathum Thani"},"TH-12":{type:"province",name:"Nonthaburi"},"TH-37":{type:"province",name:"Amnat Charoen"},"TH-10":{type:"metropolitan administration",name:"Krung Thep Maha Nakhon"},"TH-31":{type:"province",name:"Buri Ram"},"TH-16":{type:"province",name:"Lop Buri"},"TH-15":{type:"province",name:"Ang Thong"},"TH-14":{type:"province",name:"Phra Nakhon Si Ayutthaya"},"TH-71":{type:"province",name:"Kanchanaburi"},"TH-70":{type:"province",name:"Ratchaburi"},"TH-73":{type:"province",name:"Nakhon Pathom"},"TH-18":{type:"province",name:"Chai Nat"},"TH-39":{type:"province",name:"Nong Bua Lam Phu"},"TH-74":{type:"province",name:"Samut Sakhon"},"TH-77":{type:"province",name:"Prachuap Khiri Khan"},"TH-76":{type:"province",name:"Phetchaburi"},"TH-72":{type:"province",name:"Suphan Buri"},"TH-75":{type:"province",name:"Samut Songkhram"},"TH-84":{type:"province",name:"Surat Thani"},"TH-85":{type:"province",name:"Ranong"},"TH-86":{type:"province",name:"Chumphon"},"TH-80":{type:"province",name:"Nakhon Si Thammarat"},"TH-81":{type:"province",name:"Krabi"},"TH-82":{type:"province",name:"Phangnga"},"TH-83":{type:"province",name:"Phuket"},"TH-19":{type:"province",name:"Saraburi"},"TH-32":{type:"province",name:"Surin"},"TH-40":{type:"province",name:"Khon Kaen"},"TH-41":{type:"province",name:"Udon Thani"},"TH-42":{type:"province",name:"Loei"},"TH-43":{type:"province",name:"Nong Khai"},"TH-44":{type:"province",name:"Maha Sarakham"},"TH-45":{type:"province",name:"Roi Et"},"TH-46":{type:"province",name:"Kalasin"},"TH-47":{type:"province",name:"Sakon Nakhon"},"TH-48":{type:"province",name:"Nakhon Phanom"},"TH-49":{type:"province",name:"Mukdahan"},"TH-26":{type:"province",name:"Nakhon Nayok"},"TH-27":{type:"province",name:"Sa Kaeo"},"TH-24":{type:"province",name:"Chachoengsao"},"TH-25":{type:"province",name:"Prachin Buri"},"TH-22":{type:"province",name:"Chanthaburi"},"TH-23":{type:"province",name:"Trat"},"TH-20":{type:"province",name:"Chon Buri"},"TH-21":{type:"province",name:"Rayong"},"TH-62":{type:"province",name:"Kamphaeng Phet"},"TH-63":{type:"province",name:"Tak"},"TH-60":{type:"province",name:"Nakhon Sawan"},"TH-94":{type:"province",name:"Pattani"},"TH-66":{type:"province",name:"Phichit"},"TH-67":{type:"province",name:"Phetchabun"},"TH-64":{type:"province",name:"Sukhothai"},"TH-65":{type:"province",name:"Phitsanulok"},"TH-35":{type:"province",name:"Yasothon"},"TH-95":{type:"province",name:"Yala"},"TH-34":{type:"province",name:"Ubon Ratchathani"},"TH-11":{type:"province",name:"Samut Prakan"},"TH-53":{type:"province",name:"Uttaradit"},"TH-33":{type:"province",name:"Si Sa Ket"},"TH-36":{type:"province",name:"Chaiyaphum"},"TH-17":{type:"province",name:"Sing Buri"},"TH-30":{type:"province",name:"Nakhon Ratchasima"}}},TF:{name:"French Southern Territories",sub:{"TF-X3~":{type:"district",name:"Kerguelen"},"TF-X2~":{type:"district",name:"Crozet Islands"},"TF-X4~":{type:"district",name:"Iles Eparses"},"TF-X1~":{type:"district",name:"Ile Saint-Paul et Ile Amsterdam"}}},TG:{name:"Togo",sub:{"TG-P":{type:"Region",name:"Plateaux"},"TG-S":{type:"Region",name:"Savannes"},"TG-C":{type:"Region",name:"Centre"},"TG-M":{type:"Region",name:"Maritime (Région)"},"TG-K":{type:"Region",name:"Kara"}}},TD:{name:"Chad",sub:{"TD-ND":{type:"Region",name:"Madīnat Injamīnā"},"TD-LO":{type:"Region",name:"Lūqūn al Gharbī"},"TD-WF":{type:"Region",name:"Wādī Fīrā"},"TD-LC":{type:"Region",name:"Al Buḩayrah"},"TD-SA":{type:"Region",name:"Salāmāt"},"TD-SI":{type:"region",name:"Sīlā"},"TD-HL":{type:"Region",name:"Ḥajjar Lamīs"},"TD-LR":{type:"Region",name:"Lūqūn ash Sharqī"},"TD-BA":{type:"Region",name:"Al Baṭḩah"},"TD-BG":{type:"region",name:"Baḩr al Ghazāl"},"TD-BO":{type:"region",name:"Būrkū"},"TD-MC":{type:"Region",name:"Shārī al Awsaṭ"},"TD-OD":{type:"Region",name:"Waddāy"},"TD-MA":{type:"Region",name:"Māndūl"},"TD-ME":{type:"Region",name:"Māyū Kībbī ash Sharqī"},"TD-KA":{type:"Region",name:"Kānim"},"TD-MO":{type:"Region",name:"Māyū Kībbī al Gharbī"},"TD-GR":{type:"Region",name:"Qīrā"},"TD-EN":{type:"region",name:"Innīdī"},"TD-TI":{type:"region",name:"Tibastī"},"TD-CB":{type:"Region",name:"Shārī Bāqirmī"},"TD-TA":{type:"Region",name:"Tānjilī"}}},LY:{name:"Libya",sub:{"LY-JI":{type:"popularate",name:"Al Jifarah"},"LY-SR":{type:"popularate",name:"Surt"},"LY-JA":{type:"popularate",name:"Al Jabal al Akh?ar"},"LY-DR":{type:"popularate",name:"Darnah"},"LY-WD":{type:"popularate",name:"Wadi al ?ayat"},"LY-JG":{type:"popularate",name:"Al Jabal al Gharbī"},"LY-WA":{type:"popularate",name:"Al Wāḩāt"},"LY-SB":{type:"popularate",name:"Sabha"},"LY-NQ":{type:"popularate",name:"An Nuqat al Khams"},"LY-JU":{type:"popularate",name:"Al Jufrah"},"LY-WS":{type:"popularate",name:"Wādī ash Shāţiʾ"},"LY-BA":{type:"popularate",name:"Banghazi"},"LY-BU":{type:"popularate",name:"Al Butnan"},"LY-NL":{type:"popularate",name:"Nalut"},"LY-ZA":{type:"popularate",name:"Az Zawiyah"},"LY-MI":{type:"popularate",name:"Misratah"},"LY-MJ":{type:"popularate",name:"Al Marj"},"LY-TB":{type:"popularate",name:"Tarabulus"},"LY-GT":{type:"popularate",name:"Ghat"},"LY-KF":{type:"popularate",name:"Al Kufrah"},"LY-MB":{type:"popularate",name:"Al Marqab"},"LY-MQ":{type:"popularate",name:"Murzuq"}}},VC:{name:"Saint Vincent And The Grenadines",sub:{"VC-03":{type:"Parish",name:"Saint David"},"VC-02":{type:"Parish",name:"Saint Andrew"},"VC-01":{type:"Parish",name:"Charlotte"},"VC-06":{type:"Parish",name:"Grenadines"},"VC-05":{type:"Parish",name:"Saint Patrick"},"VC-04":{type:"Parish",name:"Saint George"}}},AE:{name:"United Arab Emirates",sub:{"AE-FU":{type:"Emirate",name:"Al Fujayrah"},"AE-AJ":{type:"Emirate",name:"Ajman"},"AE-SH":{type:"Emirate",name:"Ash Shariqah"},"AE-AZ":{type:"Emirate",name:"Abu Z¸aby"},"AE-UQ":{type:"Emirate",name:"Umm al Qaywayn"},"AE-RK":{type:"Emirate",name:"Ra’s al Khaymah"},"AE-DU":{type:"Emirate",name:"Dubayy"}}},AD:{name:"Andorra",sub:{"AD-08":{type:"Parish",name:"Escaldes-Engordany"},"AD-05":{type:"Parish",name:"Ordino"},"AD-04":{type:"Parish",name:"La Massana"},"AD-07":{type:"Parish",name:"Andorra la Vella"},"AD-06":{type:"Parish",name:"Sant Julià de Lòria"},"AD-03":{type:"Parish",name:"Encamp"},"AD-02":{type:"Parish",name:"Canillo"}}},AG:{name:"Antigua and Barbuda",sub:{"AG-11":{type:"Dependency",name:"Redonda"},"AG-10":{type:"Dependency",name:"Barbuda"},"AG-08":{type:"Parish",name:"Saint Philip"},"AG-04":{type:"Parish",name:"Saint John’s"},"AG-05":{type:"Parish",name:"Saint Mary"},"AG-06":{type:"Parish",name:"Saint Paul"},"AG-07":{type:"Parish",name:"Saint Peter"},"AG-03":{type:"Parish",name:"Saint George"}}},AF:{name:"Afghanistan",sub:{"AF-TAK":{type:"Province",name:"Takhar"},"AF-BGL":{type:"Province",name:"Baghlān"},"AF-BAM":{type:"Province",name:"Bāmyān"},"AF-BAL":{type:"Province",name:"Balkh"},"AF-SAR":{type:"Province",name:"Sar-e Pul"},"AF-KNR":{type:"Province",name:"Kunar"},"AF-SAM":{type:"Province",name:"Samangan"},"AF-LOG":{type:"Province",name:"Lōgar"},"AF-NUR":{type:"Province",name:"Nūristān"},"AF-KDZ":{type:"Province",name:"Kunduz"},"AF-NIM":{type:"Province",name:"Nīmrōz"},"AF-PAN":{type:"Province",name:"Panjshayr"},"AF-NAN":{type:"Province",name:"Nangarhār"},"AF-KHO":{type:"Province",name:"Khōst"},"AF-PIA":{type:"Province",name:"Paktia"},"AF-BDS":{type:"Province",name:"Badakhshān"},"AF-FYB":{type:"Province",name:"Fāryāb"},"AF-URU":{type:"Province",name:"Uruzgān"},"AF-BDG":{type:"Province",name:"Bādghīs"},"AF-LAG":{type:"Province",name:"Laghmān"},"AF-PAR":{type:"Province",name:"Parwān"},"AF-KAP":{type:"Province",name:"Kāpīsā"},"AF-GHA":{type:"Province",name:"Ghaznī"},"AF-GHO":{type:"Province",name:"Ghōr"},"AF-FRA":{type:"Province",name:"Farāh"},"AF-KAB":{type:"Province",name:"Kābul"},"AF-KAN":{type:"Province",name:"Kandahār"},"AF-ZAB":{type:"Province",name:"Zābul"},"AF-WAR":{type:"Province",name:"Wardak"},"AF-HEL":{type:"Province",name:"Helmand"},"AF-PKA":{type:"Province",name:"Paktika"},"AF-DAY":{type:"Province",name:"Dāykundī"},"AF-JOW":{type:"Province",name:"Jowzjān"},"AF-HER":{type:"Province",name:"Herāt"}}},IQ:{name:"Iraq",sub:{"IQ-NA":{type:"Province",name:"An Najaf"},"IQ-DQ":{type:"Province",name:"Dhi Qar"},"IQ-AN":{type:"Province",name:"Al Anbar"},"IQ-WA":{type:"Province",name:"Wasit"},"IQ-SD":{type:"Province",name:"Salah ad Din"},"IQ-NI":{type:"Province",name:"Ninawá"},"IQ-MU":{type:"Province",name:"Al Muthanná"
},"IQ-SU":{type:"Province",name:"As Sulaymaniyah"},"IQ-TS":{type:"Province",name:"At Ta'mim"},"IQ-KA":{type:"Province",name:"Karbala'"},"IQ-BG":{type:"Province",name:"Baghdad"},"IQ-BA":{type:"Province",name:"Al Basrah"},"IQ-BB":{type:"Province",name:"Babil"},"IQ-DA":{type:"Province",name:"Dahuk"},"IQ-MA":{type:"Province",name:"Maysan"},"IQ-DI":{type:"Province",name:"Diyalá"},"IQ-QA":{type:"Province",name:"Al Qadisiyah"},"IQ-AR":{type:"Province",name:"Arbil"}}},IS:{name:"Iceland",sub:{"IS-8":{type:"Region",name:"Suðurland"},"IS-3":{type:"Region",name:"Vesturland"},"IS-2":{type:"Region",name:"Suðurnes"},"IS-1":{type:"Region",name:"Höfuðborgarsvæði utan Reykjavíkur"},"IS-0":{type:"City",name:"Reykjavík"},"IS-7":{type:"Region",name:"Austurland"},"IS-6":{type:"Region",name:"Norðurland eystra"},"IS-5":{type:"Region",name:"Norðurland vestra"},"IS-4":{type:"Region",name:"Vestfirðir"}}},IR:{name:"Iran",sub:{"IR-03":{type:"Province",name:"Ardabil"},"IR-02":{type:"Province",name:"Az¯arbayjan-e Gharbi"},"IR-01":{type:"Province",name:"Az¯arbayjan-e Sharqi"},"IR-26":{type:"Province",name:"Qom"},"IR-21":{type:"Province",name:"Mazandaran"},"IR-06":{type:"Province",name:"Bushehr"},"IR-23":{type:"Province",name:"Hormozgan"},"IR-04":{type:"Province",name:"Esfahan"},"IR-09":{type:"",name:"Khorasan"},"IR-08":{type:"Province",name:"Chahar Mah¸all va Bakhtiari"},"IR-29":{type:"Province",name:"Khorasan-e Janubi"},"IR-27":{type:"Province",name:"Golestan"},"IR-07":{type:"Province",name:"Tehran"},"IR-20":{type:"Province",name:"Lorestan"},"IR-05":{type:"Province",name:"Ilam"},"IR-22":{type:"Province",name:"Markazi"},"IR-18":{type:"Province",name:"Kohkiluyeh va Buyer Ahmad"},"IR-19":{type:"Province",name:"Gilan"},"IR-30":{type:"Province",name:"Khorasan-e Razavi"},"IR-31":{type:"Province",name:"Khorasan-e Shemali"},"IR-14":{type:"Province",name:"Fars"},"IR-15":{type:"Province",name:"Kerman"},"IR-16":{type:"Province",name:"Kordestan"},"IR-17":{type:"Province",name:"Kermanshah"},"IR-10":{type:"Province",name:"Khuzestan"},"IR-11":{type:"Province",name:"Zanjan"},"IR-12":{type:"Province",name:"Semnan"},"IR-28":{type:"Province",name:"Qazvin"},"IR-24":{type:"Province",name:"Hamadan"},"IR-13":{type:"Province",name:"Sistan va Baluchestan"},"IR-25":{type:"Province",name:"Yazd"}}},AM:{name:"Armenia",sub:{"AM-GR":{type:"Province",name:"Gegark'unik'"},"AM-SU":{type:"Province",name:"Syunik'"},"AM-AR":{type:"Province",name:"Ararat"},"AM-ER":{type:"city",name:"Erevan"},"AM-VD":{type:"Province",name:"Vayoc Jor"},"AM-KT":{type:"Province",name:"Kotayk'"},"AM-LO":{type:"Province",name:"Lo?y"},"AM-AV":{type:"Province",name:"Armavir"},"AM-TV":{type:"Province",name:"Tavuš"},"AM-AG":{type:"Province",name:"Aragac?otn"},"AM-SH":{type:"Province",name:"Širak"}}},AL:{name:"Albania",sub:{"AL-DI":{type:"District",name:"Dibër"},"AL-DL":{type:"District",name:"Delvinë"},"AL-BR":{type:"District",name:"Berat"},"AL-BU":{type:"District",name:"Bulqizë"},"AL-11":{type:"county",name:"Tiranë"},"AL-DR":{type:"District",name:"Durrës"},"AL-HA":{type:"District",name:"Has"},"AL-FR":{type:"District",name:"Fier"},"AL-05":{type:"county",name:"Gjirokastër"},"AL-04":{type:"county",name:"Fier"},"AL-07":{type:"county",name:"Kukës"},"AL-06":{type:"county",name:"Korçë"},"AL-01":{type:"county",name:"Berat"},"AL-03":{type:"county",name:"Elbasan"},"AL-02":{type:"county",name:"Durrës"},"AL-TP":{type:"District",name:"Tropojë"},"AL-TR":{type:"District",name:"Tiranë"},"AL-09":{type:"county",name:"Dibër"},"AL-08":{type:"county",name:"Lezhë"},"AL-PG":{type:"District",name:"Pogradec"},"AL-LU":{type:"District",name:"Lushnjë"},"AL-PR":{type:"District",name:"Përmet"},"AL-DV":{type:"District",name:"Devoll"},"AL-TE":{type:"District",name:"Tepelenë"},"AL-PU":{type:"District",name:"Pukë"},"AL-GR":{type:"District",name:"Gramsh"},"AL-MT":{type:"District",name:"Mat"},"AL-EL":{type:"District",name:"Elbasan"},"AL-VL":{type:"District",name:"Vlorë"},"AL-LB":{type:"District",name:"Librazhd"},"AL-ER":{type:"District",name:"Kolonjë"},"AL-LE":{type:"District",name:"Lezhë"},"AL-GJ":{type:"District",name:"Gjirokastër"},"AL-12":{type:"county",name:"Vlorë"},"AL-KA":{type:"District",name:"Kavajë"},"AL-KB":{type:"District",name:"Kurbin"},"AL-KC":{type:"District",name:"Kuçovë"},"AL-MK":{type:"District",name:"Mallakastër"},"AL-KO":{type:"District",name:"Korçë"},"AL-SR":{type:"District",name:"Sarandë"},"AL-MM":{type:"District",name:"Malësi e Madhe"},"AL-MR":{type:"District",name:"Mirditë"},"AL-KU":{type:"District",name:"Kukës"},"AL-SH":{type:"District",name:"Shkodër"},"AL-PQ":{type:"District",name:"Peqin"},"AL-KR":{type:"District",name:"Krujë"},"AL-SK":{type:"District",name:"Skrapar"},"AL-10":{type:"county",name:"Shkodër"}}},AO:{name:"Angola",sub:{"AO-CUS":{type:"Province",name:"Cuanza Sul"},"AO-HUA":{type:"Province",name:"Huambo"},"AO-BIE":{type:"Province",name:"Bié"},"AO-NAM":{type:"Province",name:"Namibe"},"AO-LNO":{type:"Province",name:"Lunda Norte"},"AO-UIG":{type:"Province",name:"Uíge"},"AO-HUI":{type:"Province",name:"Huíla"},"AO-BGO":{type:"Province",name:"Bengo"},"AO-LUA":{type:"Province",name:"Luanda"},"AO-LSU":{type:"Province",name:"Lunda Sul"},"AO-CCU":{type:"Province",name:"Cuando-Cubango"},"AO-MAL":{type:"Province",name:"Malange"},"AO-BGU":{type:"Province",name:"Benguela"},"AO-MOX":{type:"Province",name:"Moxico"},"AO-CNN":{type:"Province",name:"Cunene"},"AO-CNO":{type:"Province",name:"Cuanza Norte"},"AO-ZAI":{type:"Province",name:"Zaire"},"AO-CAB":{type:"Province",name:"Cabinda"}}},AR:{name:"Argentina",sub:{"AR-Z":{type:"province",name:"Santa Cruz"},"AR-X":{type:"province",name:"Córdoba"},"AR-Y":{type:"province",name:"Jujuy"},"AR-V":{type:"province",name:"Tierra del Fuego"},"AR-W":{type:"province",name:"Corrientes"},"AR-T":{type:"province",name:"Tucumán"},"AR-U":{type:"province",name:"Chubut"},"AR-R":{type:"province",name:"Río Negro"},"AR-S":{type:"province",name:"Santa Fe"},"AR-P":{type:"province",name:"Formosa"},"AR-Q":{type:"province",name:"Neuquén"},"AR-N":{type:"province",name:"Misiones"},"AR-L":{type:"province",name:"La Pampa"},"AR-M":{type:"province",name:"Mendoza"},"AR-J":{type:"province",name:"San Juan"},"AR-K":{type:"province",name:"Catamarca"},"AR-H":{type:"province",name:"Chaco"},"AR-F":{type:"province",name:"La Rioja"},"AR-G":{type:"province",name:"Santiago del Estero"},"AR-D":{type:"province",name:"San Luis"},"AR-E":{type:"province",name:"Entre Ríos"},"AR-B":{type:"province",name:"Buenos Aires"},"AR-C":{type:"federal district",name:"Ciudad Autónoma de Buenos Aires"},"AR-A":{type:"province",name:"Salta"}}},AU:{name:"Australia",sub:{"AU-ACT":{type:"territory",name:"Australian Capital Territory"},"AU-QLD":{type:"state",name:"Queensland"},"AU-TAS":{type:"state",name:"Tasmania"},"AU-VIC":{type:"state",name:"Victoria"},"AU-NT":{type:"territory",name:"Northern Territory"},"AU-WA":{type:"state",name:"Western Australia"},"AU-SA":{type:"state",name:"South Australia"},"AU-NSW":{type:"state",name:"New South Wales"}}},AT:{name:"Austria",sub:{"AT-8":{type:"State",name:"Vorarlberg"},"AT-9":{type:"State",name:"Wien"},"AT-4":{type:"State",name:"Oberösterreich"},"AT-5":{type:"State",name:"Salzburg"},"AT-6":{type:"State",name:"Steiermark"},"AT-7":{type:"State",name:"Tirol"},"AT-1":{type:"State",name:"Burgenland"},"AT-2":{type:"State",name:"Kärnten"},"AT-3":{type:"State",name:"Niederösterreich"}}},IN:{name:"India",sub:{"IN-BR":{type:"state",name:"Bihar"},"IN-MZ":{type:"state",name:"Mizoram"},"IN-DD":{type:"union territory",name:"Daman and Diu"},"IN-HP":{type:"state",name:"Himachal Pradesh"},"IN-DN":{type:"union territory",name:"Dadra and Nagar Haveli"},"IN-DL":{type:"union territory",name:"Delhi"},"IN-NL":{type:"state",name:"Nagaland"},"IN-WB":{type:"state",name:"West Bengal"},"IN-HR":{type:"state",name:"Haryana"},"IN-LD":{type:"union territory",name:"Lakshadweep"},"IN-AS":{type:"state",name:"Assam"},"IN-UT":{type:"state",name:"Uttaranchal"},"IN-JH":{type:"state",name:"Jharkhand"},"IN-JK":{type:"state",name:"Jammu and Kashmir"},"IN-UP":{type:"state",name:"Uttar Pradesh"},"IN-SK":{type:"state",name:"Sikkim"},"IN-CT":{type:"state",name:"Chhattisgarh"},"IN-PY":{type:"union territory",name:"Pondicherry"},"IN-CH":{type:"union territory",name:"Chandigarh"},"IN-GA":{type:"state",name:"Goa"},"IN-GJ":{type:"state",name:"Gujarat"},"IN-RJ":{type:"state",name:"Rajasthan"},"IN-MP":{type:"state",name:"Madhya Pradesh"},"IN-OR":{type:"state",name:"Orissa"},"IN-TN":{type:"state",name:"Tamil Nadu"},"IN-AN":{type:"union territory",name:"Andaman and Nicobar Islands"},"IN-AP":{type:"state",name:"Andhra Pradesh"},"IN-TR":{type:"state",name:"Tripura"},"IN-AR":{type:"state",name:"Arunachal Pradesh"},"IN-KA":{type:"state",name:"Karnataka"},"IN-PB":{type:"state",name:"Punjab"},"IN-ML":{type:"state",name:"Meghalaya"},"IN-MN":{type:"state",name:"Manipur"},"IN-MH":{type:"state",name:"Maharashtra"},"IN-KL":{type:"state",name:"Kerala"}}},TZ:{name:"Tanzania",sub:{"TZ-02":{type:"Region",name:"Dar es Salaam"},"TZ-03":{type:"Region",name:"Dodoma"},"TZ-01":{type:"Region",name:"Arusha"},"TZ-06":{type:"Region",name:"Kaskazini Pemba"},"TZ-07":{type:"Region",name:"Kaskazini Unguja"},"TZ-04":{type:"Region",name:"Iringa"},"TZ-05":{type:"Region",name:"Kagera"},"TZ-20":{type:"Region",name:"Rukwa"},"TZ-21":{type:"Region",name:"Ruvuma"},"TZ-08":{type:"Region",name:"Kigoma"},"TZ-09":{type:"Region",name:"Kilimanjaro"},"TZ-24":{type:"Region",name:"Tabora"},"TZ-25":{type:"Region",name:"Tanga"},"TZ-26":{type:"Region",name:"Manyara"},"TZ-22":{type:"Region",name:"Shinyanga"},"TZ-23":{type:"Region",name:"Singida"},"TZ-11":{type:"Region",name:"Kusini Unguja"},"TZ-10":{type:"Region",name:"Kusini Pemba"},"TZ-13":{type:"Region",name:"Mara"},"TZ-12":{type:"Region",name:"Lindi"},"TZ-15":{type:"Region",name:"Mjini Magharibi"},"TZ-14":{type:"Region",name:"Mbeya"},"TZ-17":{type:"Region",name:"Mtwara"},"TZ-16":{type:"Region",name:"Morogoro"},"TZ-19":{type:"Region",name:"Pwani"},"TZ-18":{type:"Region",name:"Mwanza"}}},AZ:{name:"Azerbaijan",sub:{"AZ-SBN":{type:"District",name:"Şabran"},"AZ-OGU":{type:"District",name:"Oguz"},"AZ-ABS":{type:"District",name:"Abseron"},"AZ-QBA":{type:"District",name:"Quba"},"AZ-FUZ":{type:"District",name:"Füzuli"},"AZ-HAC":{type:"District",name:"Haciqabul"},"AZ-SKR":{type:"District",name:"Sämkir"},"AZ-AST":{type:"District",name:"Astara"},"AZ-ZAQ":{type:"District",name:"Zaqatala"},"AZ-QBI":{type:"District",name:"Qubadli"},"AZ-XCI":{type:"District",name:"Xocali"},"AZ-GYG":{type:"District",name:"Göygöl"},"AZ-BA":{type:"municipality",name:"Baki"},"AZ-CUL":{type:"District",name:"Culfa"},"AZ-YEV":{type:"District",name:"Yevlax"},"AZ-ZAN":{type:"District",name:"Zängilan"},"AZ-BEY":{type:"District",name:"Beyläqan"},"AZ-MAS":{type:"District",name:"Masalli"},"AZ-SAB":{type:"District",name:"Sabirabad"},"AZ-GOR":{type:"District",name:"Goranboy"},"AZ-QAX":{type:"District",name:"Qax"},"AZ-BAR":{type:"District",name:"Bärdä"},"AZ-SAH":{type:"District",name:"Sahbuz"},"AZ-LER":{type:"District",name:"Lerik"},"AZ-SM":{type:"municipality",name:"Sumqayıt"},"AZ-SAL":{type:"District",name:"Salyan"},"AZ-ORD":{type:"District",name:"Ordubad"},"AZ-KUR":{type:"District",name:"Kürdämir"},"AZ-GOY":{type:"District",name:"Göyçay"},"AZ-NA":{type:"municipality",name:"Naftalan"},"AZ-CAB":{type:"District",name:"Cäbrayil"},"AZ-LAC":{type:"District",name:"Laçin"},"AZ-QOB":{type:"District",name:"Qobustan"},"AZ-BAB":{type:"District",name:"Babäk"},"AZ-BAL":{type:"District",name:"Balakän"},"AZ-IMI":{type:"District",name:"Imisli"},"AZ-CAL":{type:"District",name:"Cälilabab"},"AZ-LA":{type:"municipality",name:"Lənkəran"},"AZ-BIL":{type:"District",name:"Biläsuvar"},"AZ-SMI":{type:"District",name:"Samaxi"},"AZ-SIY":{type:"District",name:"Siyäzän"},"AZ-AGU":{type:"District",name:"Agsu"},"AZ-SUS":{type:"District",name:"Susa"},"AZ-TAR":{type:"District",name:"Tärtär"},"AZ-AGS":{type:"District",name:"Agdas"},"AZ-AGM":{type:"District",name:"Agdam"},"AZ-YAR":{type:"District",name:"Yardimli"},"AZ-SMX":{type:"District",name:"Samux"},"AZ-SA":{type:"municipality",name:"Şəki"},"AZ-LAN":{type:"District",name:"Länkäran"},"AZ-GAD":{type:"District",name:"Gädäbäy"},"AZ-QAZ":{type:"District",name:"Qazax"},"AZ-GA":{type:"municipality",name:"Gəncə"},"AZ-AGA":{type:"District",name:"Agstafa"},"AZ-SAT":{type:"District",name:"Saatli"},"AZ-AGC":{type:"District",name:"Agcabädi"},"AZ-QUS":{type:"District",name:"Qusar"},"AZ-UCA":{type:"District",name:"Ucar"},"AZ-SAK":{type:"District",name:"Säki"},"AZ-TOV":{type:"District",name:"Tovuz"},"AZ-QAB":{type:"District",name:"Qäbälä"},"AZ-NV":{type:"municipality",name:"Naxçıvan"},"AZ-ISM":{type:"District",name:"Ismayilli"},"AZ-SAR":{type:"District",name:"Särur"},"AZ-SR":{type:"municipality",name:"Şirvan"},"AZ-XVD":{type:"District",name:"Xocavänd"},"AZ-MI":{type:"municipality",name:"Mingəçevir"},"AZ-NEF":{type:"District",name:"Neftçala"},"AZ-KAL":{type:"District",name:"Kälbäcär"},"AZ-KAN":{type:"District",name:"Kǝngǝrli"},"AZ-NX":{type:"autonomous republic",name:"Naxçivan"},"AZ-XAC":{type:"District",name:"Xaçmaz"},"AZ-XIZ":{type:"District",name:"Xizi"},"AZ-XA":{type:"municipality",name:"Xankəndi"},"AZ-YE":{type:"municipality",name:"Yevlax City"},"AZ-DAS":{type:"District",name:"Daskäsän"},"AZ-SAD":{type:"District",name:"Sädäräk"},"AZ-ZAR":{type:"District",name:"Zärdab"}}},IE:{name:"Ireland",sub:{"IE-TA":{type:"County",name:"Tipperary"},"IE-WW":{type:"County",name:"Wicklow"},"IE-CW":{type:"County",name:"Carlow"},"IE-C":{type:"province",name:"Connaught"},"IE-D":{type:"County",name:"Dublin"},"IE-G":{type:"County",name:"Galway"},"IE-M":{type:"province",name:"Munster"},"IE-L":{type:"province",name:"Leinster"},"IE-RN":{type:"County",name:"Roscommon"},"IE-CE":{type:"County",name:"Clare"},"IE-MN":{type:"County",name:"Monaghan"},"IE-U":{type:"province",name:"Ulster"},"IE-MH":{type:"County",name:"Meath"},"IE-CO":{type:"County",name:"Cork"},"IE-CN":{type:"County",name:"Cavan"},"IE-KK":{type:"County",name:"Kilkenny"},"IE-KE":{type:"County",name:"Kildare"},"IE-WX":{type:"County",name:"Wexford"},"IE-OY":{type:"County",name:"Offaly"},"IE-KY":{type:"County",name:"Kerry"},"IE-WD":{type:"County",name:"Waterford"},"IE-WH":{type:"County",name:"Westmeath"},"IE-SO":{type:"County",name:"Sligo"},"IE-DL":{type:"County",name:"Donegal"},"IE-LS":{type:"County",name:"Laois"},"IE-LM":{type:"County",name:"Leitrim"},"IE-LK":{type:"County",name:"Limerick"},"IE-LH":{type:"County",name:"Louth"},"IE-LD":{type:"County",name:"Longford"},"IE-MO":{type:"County",name:"Mayo"}}},ID:{name:"Indonesia",sub:{"ID-JK":{type:"special district",name:"Jakarta Raya"},"ID-SL":{type:"geographic units",name:"Sulawesi"},"ID-JI":{type:"province",name:"Jawa Timur"},"ID-SM":{type:"geographic units",name:"Sumatera"},"ID-JB":{type:"province",name:"Jawa Barat"},"ID-JA":{type:"province",name:"Jambi"},"ID-NT":{type:"province",name:"Nusa Tenggara Timur"},"ID-SN":{type:"province",name:"Sulawesi Selatan"},"ID-SB":{type:"province",name:"Sumatera Barat"},"ID-LA":{type:"province",name:"Lampung"},"ID-YO":{type:"special region",name:"Yogyakarta"},"ID-SU":{type:"province",name:"Sumatera Utara"},"ID-ST":{type:"province",name:"Sulawesi Tengah"},"ID-PA":{type:"province",name:"Papua"},"ID-JW":{type:"geographic units",name:"Jawa"},"ID-NB":{type:"province",name:"Nusa Tenggara Barat"},"ID-SR":{type:"province",name:"Sulawesi Barat"},"ID-JT":{type:"province",name:"Jawa Tengah"},"ID-KS":{type:"province",name:"Kalimantan Selatan"},"ID-SA":{type:"province",name:"Sulawesi Utara"},"ID-AC":{type:"autonomous province",name:"Aceh"},"ID-SS":{type:"province",name:"Sumatera Selatan"},"ID-NU":{type:"geographic units",name:"Nusa Tenggara"},"ID-KT":{type:"province",name:"Kalimantan Tengah"},"ID-SG":{type:"province",name:"Sulawesi Tenggara"},"ID-IJ":{type:"geographic units",name:"Papua"},"ID-KR":{type:"province",name:"Kepulauan Riau"},"ID-MU":{type:"province",name:"Maluku Utara"},"ID-RI":{type:"province",name:"Riau"},"ID-PB":{type:"province",name:"Papua Barat"},"ID-GO":{type:"province",name:"Gorontalo"},"ID-MA":{type:"province",name:"Maluku"},"ID-KA":{type:"geographic units",name:"Kalimantan"},"ID-KB":{type:"province",name:"Kalimantan Barat"},"ID-KI":{type:"province",name:"Kalimantan Timur"},"ID-ML":{type:"geographic units",name:"Maluku"},"ID-BT":{type:"province",name:"Banten"},"ID-BB":{type:"province",name:"Bangka Belitung"},"ID-BA":{type:"province",name:"Bali"},"ID-BE":{type:"province",name:"Bengkulu"}}},UA:{name:"Ukraine",sub:{"UA-07":{type:"region",name:"Volyns'ka Oblast'"},"UA-21":{type:"region",name:"Zakarpats'ka Oblast'"},"UA-23":{type:"region",name:"Zaporiz'ka Oblast'"},"UA-26":{type:"region",name:"Ivano-Frankivs'ka Oblast'"},"UA-05":{type:"region",name:"Vinnyts'ka Oblast'"},"UA-46":{type:"region",name:"L'vivs'ka Oblast'"},"UA-09":{type:"region",name:"Luhans'ka Oblast'"},"UA-68":{type:"region",name:"Khmel'nyts'ka Oblast'"},"UA-43":{type:"Autonomous Republic",name:"Respublika Krym"},"UA-40":{type:"region",name:"Sevastopol'"},"UA-65":{type:"region",name:"Khersons'ka Oblast'"},"UA-61":{type:"region",name:"Ternopil's'ka Oblast'"},"UA-48":{type:"region",name:"Mykolaïvs'ka Oblast'"},"UA-63":{type:"region",name:"Kharkivs'ka Oblast'"},"UA-35":{type:"region",name:"Kirovohrads'ka Oblast'"},"UA-32":{type:"region",name:"Kyïvs'ka Oblast'"},"UA-30":{type:"region",name:"Kyïv"},"UA-51":{type:"region",name:"Odes'ka Oblast'"},"UA-18":{type:"region",name:"Zhytomyrs'ka Oblast'"},"UA-71":{type:"region",name:"Cherkas'ka Oblast'"},"UA-56":{type:"region",name:"Rivnens'ka Oblast'"},"UA-77":{type:"region",name:"Chernivets'ka Oblast'"},"UA-53":{type:"region",name:"Poltavs'ka Oblast'"},"UA-74":{type:"region",name:"Chernihivs'ka Oblast'"},"UA-12":{type:"region",name:"Dnipropetrovs'ka Oblast'"},"UA-59":{type:"region",name:"Sums'ka Oblast'"},"UA-14":{type:"region",name:"Donets'ka Oblast'"}}},QA:{name:"Qatar",sub:{"QA-MS":{type:"Municipality",name:"Madinat ash Shamal"},"QA-KH":{type:"Municipality",name:"Al Khawr wa adh Dhakhīrah"},"QA-ZA":{type:"Municipality",name:"Az̧ Z̧a‘āyin"},"QA-X1~":{type:"Municipality",name:"Umm Sa'id"},"QA-RA":{type:"Municipality",name:"Ar Rayyan"},"QA-WA":{type:"Municipality",name:"Al Wakrah"},"QA-US":{type:"Municipality",name:"Umm Salal"},"QA-DA":{type:"Municipality",name:"Ad Dawhah"}}},MZ:{name:"Mozambique",sub:{"MZ-MPM":{type:"city",name:"Maputo City"},"MZ-I":{type:"province",name:"Inhambane"},"MZ-N":{type:"province",name:"Nampula"},"MZ-L":{type:"province",name:"Maputo"},"MZ-B":{type:"province",name:"Manica"},"MZ-A":{type:"province",name:"Niassa"},"MZ-G":{type:"province",name:"Gaza"},"MZ-S":{type:"province",name:"Sofala"},"MZ-P":{type:"province",name:"Cabo Delgado"},"MZ-Q":{type:"province",name:"Zambézia"},"MZ-T":{type:"province",name:"Tete"}}}},b={AGO:"AO",DZA:"DZ",EGY:"EG",BGD:"BD",NER:"NE",LIE:"LI",NAM:"NA",BGR:"BG",BOL:"BO",GHA:"GH",CCK:"CC",PAK:"PK",CPV:"CV",JOR:"JO",LBR:"LR",LBY:"LY",MYS:"MY",DOM:"DO",PRI:"PR",MYT:"YT",PRK:"KP",TZA:"TZ",BWA:"BW",KHM:"KH",UMI:"UM",TTO:"TT",ETH:"ET",PRY:"PY",HKG:"HK",SAU:"SA",LBN:"LB",SVN:"SI",BFA:"BF",CHE:"CH",MRT:"MR",HRV:"HR",CHL:"CL",CHN:"CN",KNA:"KN",SLE:"SL",JAM:"JM",SMR:"SM",GIB:"GI",DJI:"DJ",GIN:"GN",FIN:"FI",URY:"UY",THA:"TH",SYC:"SC",NPL:"NP",CXR:"CX",LAO:"LA",YEM:"YE",BVT:"BV",ZAF:"ZA",KIR:"KI",PHL:"PH",ROU:"RO",VIR:"VI",SYR:"SY",MAC:"MO",NIC:"NI",MLT:"MT",KAZ:"KZ",TCA:"TC",PYF:"PF",NIU:"NU",DMA:"DM",BEN:"BJ",GUF:"GF",BEL:"BE",TGO:"TG",DEU:"DE",GUM:"GU",LKA:"LK",FLK:"FK",GBR:"GB",GUY:"GY",CRI:"CR",CMR:"CM",MAR:"MA",MNP:"MP",LSO:"LS",HUN:"HU",TKM:"TM",SUR:"SR",NLD:"NL",BMU:"BM",HMD:"HM",TCD:"TD",GEO:"GE",MNE:"ME",MNG:"MN",MHL:"MH",MTQ:"MQ",BLZ:"BZ",NFK:"NF",MMR:"MM",AFG:"AF",BDI:"BI",VGB:"VG",BLR:"BY",GRD:"GD",TKL:"TK",GRC:"GR",RUS:"RU",GRL:"GL",SHN:"SH",AND:"AD",MOZ:"MZ",TJK:"TJ",HTI:"HT",MEX:"MX",ANT:"AN",ZWE:"ZW",LCA:"LC",IND:"IN",LVA:"LV",BTN:"BT",VCT:"VC",VNM:"VN",NOR:"NO",CZE:"CZ",ATF:"TF",ATG:"AG",FJI:"FJ",IOT:"IO",HND:"HN",MUS:"MU",ATA:"AQ",LUX:"LU",ISR:"IL",FSM:"FM",PER:"PE",REU:"RE",IDN:"ID",VUT:"VU",MKD:"MK",COD:"CD",COG:"CG",ISL:"IS",GLP:"GP",COK:"CK",COM:"KM",COL:"CO",NGA:"NG",TWN:"TW",PRT:"PT",MDA:"MD",STP:"ST",MDG:"MG",ECU:"EC",SEN:"SN",NZL:"NZ",MDV:"MV",ASM:"AS",SPM:"PM",SRB:"RS",FRA:"FR",LTU:"LT",RWA:"RW",ZMB:"ZM",GMB:"GM",WLF:"WF",SSD:"SS",FRO:"FO",GTM:"GT",DNK:"DK",MSR:"MS",AUS:"AU",AUT:"AT",SJM:"SJ",VEN:"VE",PLW:"PW",KEN:"KE",WSM:"WS",TUR:"TR",ALB:"AL",OMN:"OM",TUV:"TV",ITA:"IT",BRN:"BN",TUN:"TN",PCN:"PN",BRB:"BB",BRA:"BR",CIV:"CI",GNQ:"GQ",USA:"US",QAT:"QA",SWE:"SE",AZE:"AZ",GNB:"GW",SWZ:"SZ",TON:"TO",CAN:"CA",UKR:"UA",KOR:"KR",AIA:"AI",CAF:"CF",SVK:"SK",CYP:"CY",BIH:"BA",SGP:"SG",SGS:"GS",SOM:"SO",TMP:"TP",ERI:"ER",POL:"PL",KWT:"KW",GAB:"GA",CYM:"KY",VAT:"VA",EST:"EE",FXX:"FX",MWI:"MW",ESP:"ES",IRQ:"IQ",SLV:"SV",MLI:"ML",IRL:"IE",IRN:"IR",ABW:"AW",PNG:"PG",PAN:"PA",SDN:"SD",SLB:"SB",ESH:"EH",MCO:"MC",UZB:"UZ",JPN:"JP",KGZ:"KG",UGA:"UG",NCL:"NC",ARE:"AE",ARG:"AR",BHS:"BS",BHR:"BH",ARM:"AM",NRU:"NR",CUB:"CU"},c={subdivision:function(c,d){if("undefined"==typeof d){d=c.trim().toUpperCase();var e=d.split("-");if(2!==e.length)return{};c=e[0],d=e[1]}3===c.length&&(c=b[c]);var f=c+"-"+d;if(!(c in a))return{};var g=a[c].sub,h=g[f];if("undefined"==typeof h){for(var i in g)if(g.hasOwnProperty(i)&&g[i].name.toUpperCase()===d.toUpperCase()){h=g[i],f=i;break}if("undefined"==typeof h)return{}}return h.countryName=a[c].name,h.countryCode=c,h.code=f,h.regionCode=2===f.split("-").length?f.split("-")[1]:"",h},country:function(c){if(c=c.trim().toUpperCase(),3===c.length&&(c=b[c]),!(c in a))return{};var d=a[c];return d.code=c,d},data:a,codes:b};"object"==typeof module&&null!==module?module.exports=c:window.iso3166=c}(),function(a,b,c){"use strict";function d(a){var b;if(b=a.match(j)){var c=new Date(0),d=0,f=0;return b[9]&&(d=e(b[9]+b[10]),f=e(b[9]+b[11])),c.setUTCFullYear(e(b[1]),e(b[2])-1,e(b[3])),c.setUTCHours(e(b[4]||0)-d,e(b[5]||0)-f,e(b[6]||0),e(b[7]||0)),c}return a}function e(a){return parseInt(a,10)}function f(a,b,c){var d="";for(a<0&&(d="-",a=-a),a=""+a;a.length<b;)a="0"+a;return c&&(a=a.substr(a.length-b)),d+a}function g(a,d,e,f){function g(a,c,d,e){return b.isFunction(a)?a:function(){return b.isNumber(a)?[a,c,d,e]:[200,a,c,d]}}function j(a,g,h,j,k,q,r){function s(a){return b.isString(a)||b.isFunction(a)||a instanceof RegExp?a:b.toJson(a)}function t(b){function e(){var c=b.response(a,g,h,k);u.$$respHeaders=c[2],j(p(c[0]),p(c[1]),u.getAllResponseHeaders(),p(c[3]||""))}function i(){for(var a=0,b=n.length;a<b;a++)if(n[a]===e){n.splice(a,1),j(-1,c,"");break}}return!f&&q&&(q.then?q.then(i):d(i,q)),e}var u=new i,v=m[0],w=!1;if(v&&v.match(a,g)){if(!v.matchData(h))throw new Error("Expected "+v+" with different data\nEXPECTED: "+s(v.data)+"\nGOT:      "+h);if(!v.matchHeaders(k))throw new Error("Expected "+v+" with different headers\nEXPECTED: "+s(v.headers)+"\nGOT:      "+s(k));if(m.shift(),v.response)return void n.push(t(v));w=!0}for(var x,y=-1;x=l[++y];)if(x.match(a,g,h,k||{})){if(x.response)(f?f.defer:o)(t(x));else{if(!x.passThrough)throw new Error("No response defined !");e(a,g,h,j,k,q,r)}return}throw w?new Error("No response defined !"):new Error("Unexpected request: "+a+" "+g+"\n"+(v?"Expected "+v:"No more request expected"))}function k(a){b.forEach(["GET","DELETE","JSONP","HEAD"],function(b){j[a+b]=function(d,e){return j[a](b,d,c,e)}}),b.forEach(["PUT","POST","PATCH"],function(b){j[a+b]=function(c,d,e){return j[a](b,c,d,e)}})}var l=[],m=[],n=[],o=b.bind(n,n.push),p=b.copy;return j.when=function(a,b,d,e){var i=new h(a,b,d,e),j={respond:function(a,b,d,e){return i.passThrough=c,i.response=g(a,b,d,e),j}};return f&&(j.passThrough=function(){return i.response=c,i.passThrough=!0,j}),l.push(i),j},k("when"),j.expect=function(a,b,c,d){var e=new h(a,b,c,d),f={respond:function(a,b,c,d){return e.response=g(a,b,c,d),f}};return m.push(e),f},k("expect"),j.flush=function(c,d){if(d!==!1&&a.$digest(),!n.length)throw new Error("No pending request to flush !");if(b.isDefined(c)&&null!==c)for(;c--;){if(!n.length)throw new Error("No more pending request to flush !");n.shift()()}else for(;n.length;)n.shift()();j.verifyNoOutstandingExpectation(d)},j.verifyNoOutstandingExpectation=function(b){if(b!==!1&&a.$digest(),m.length)throw new Error("Unsatisfied requests: "+m.join(", "))},j.verifyNoOutstandingRequest=function(){if(n.length)throw new Error("Unflushed requests: "+n.length)},j.resetExpectations=function(){m.length=0,n.length=0},j}function h(a,c,d,e){this.data=d,this.headers=e,this.match=function(c,d,e,f){return a==c&&(!!this.matchUrl(d)&&(!(b.isDefined(e)&&!this.matchData(e))&&!(b.isDefined(f)&&!this.matchHeaders(f))))},this.matchUrl=function(a){return!c||(b.isFunction(c.test)?c.test(a):b.isFunction(c)?c(a):c==a)},this.matchHeaders=function(a){return!!b.isUndefined(e)||(b.isFunction(e)?e(a):b.equals(e,a))},this.matchData=function(a){return!!b.isUndefined(d)||(d&&b.isFunction(d.test)?d.test(a):d&&b.isFunction(d)?d(a):d&&!b.isString(d)?b.equals(b.fromJson(b.toJson(d)),b.fromJson(a)):d==a)},this.toString=function(){return a+" "+c}}function i(){i.$$lastInstance=this,this.open=function(a,b,c){this.$$method=a,this.$$url=b,this.$$async=c,this.$$reqHeaders={},this.$$respHeaders={}},this.send=function(a){this.$$data=a},this.setRequestHeader=function(a,b){this.$$reqHeaders[a]=b},this.getResponseHeader=function(a){var d=this.$$respHeaders[a];return d?d:(a=b.lowercase(a),(d=this.$$respHeaders[a])?d:(d=c,b.forEach(this.$$respHeaders,function(c,e){d||b.lowercase(e)!=a||(d=c)}),d))},this.getAllResponseHeaders=function(){var a=[];return b.forEach(this.$$respHeaders,function(b,c){a.push(c+": "+b)}),a.join("\n")},this.abort=b.noop}b.mock={},b.mock.$BrowserProvider=function(){this.$get=function(){return new b.mock.$Browser}},b.mock.$Browser=function(){var a=this;this.isMock=!0,a.$$url="http://server/",a.$$lastUrl=a.$$url,a.pollFns=[],a.$$completeOutstandingRequest=b.noop,a.$$incOutstandingRequestCount=b.noop,a.onUrlChange=function(b){return a.pollFns.push(function(){a.$$lastUrl===a.$$url&&a.$$state===a.$$lastState||(a.$$lastUrl=a.$$url,a.$$lastState=a.$$state,b(a.$$url,a.$$state))}),b},a.$$applicationDestroyed=b.noop,a.$$checkUrlChange=b.noop,a.deferredFns=[],a.deferredNextId=0,a.defer=function(b,c){return c=c||0,a.deferredFns.push({time:a.defer.now+c,fn:b,id:a.deferredNextId}),a.deferredFns.sort(function(a,b){return a.time-b.time}),a.deferredNextId++},a.defer.now=0,a.defer.cancel=function(d){var e;return b.forEach(a.deferredFns,function(a,b){a.id===d&&(e=b)}),e!==c&&(a.deferredFns.splice(e,1),!0)},a.defer.flush=function(c){if(b.isDefined(c))a.defer.now+=c;else{if(!a.deferredFns.length)throw new Error("No deferred tasks to be flushed");a.defer.now=a.deferredFns[a.deferredFns.length-1].time}for(;a.deferredFns.length&&a.deferredFns[0].time<=a.defer.now;)a.deferredFns.shift().fn()},a.$$baseHref="/",a.baseHref=function(){return this.$$baseHref}},b.mock.$Browser.prototype={poll:function(){b.forEach(this.pollFns,function(a){a()})},url:function(a,c,d){return b.isUndefined(d)&&(d=null),a?(this.$$url=a,this.$$state=b.copy(d),this):this.$$url},state:function(){return this.$$state},notifyWhenNoOutstandingRequests:function(a){a()}},b.mock.$ExceptionHandlerProvider=function(){var a;this.mode=function(b){switch(b){case"log":case"rethrow":var c=[];a=function(a){if(1==arguments.length?c.push(a):c.push([].slice.call(arguments,0)),"rethrow"===b)throw a},a.errors=c;break;default:throw new Error("Unknown mode '"+b+"', only 'log'/'rethrow' modes are allowed!")}},this.$get=function(){return a},this.mode("rethrow")},b.mock.$LogProvider=function(){function a(a,b,c){return a.concat(Array.prototype.slice.call(b,c))}var c=!0;this.debugEnabled=function(a){return b.isDefined(a)?(c=a,this):c},this.$get=function(){var d={log:function(){d.log.logs.push(a([],arguments,0))},warn:function(){d.warn.logs.push(a([],arguments,0))},info:function(){d.info.logs.push(a([],arguments,0))},error:function(){d.error.logs.push(a([],arguments,0))},debug:function(){c&&d.debug.logs.push(a([],arguments,0))}};return d.reset=function(){d.log.logs=[],d.info.logs=[],d.warn.logs=[],d.error.logs=[],d.debug.logs=[]},d.assertEmpty=function(){var a=[];if(b.forEach(["error","warn","info","log","debug"],function(c){b.forEach(d[c].logs,function(d){b.forEach(d,function(b){a.push("MOCK $log ("+c+"): "+String(b)+"\n"+(b.stack||""))})})}),a.length)throw a.unshift("Expected $log to be empty! Either a message was logged unexpectedly, or an expected log message was not checked and removed:"),a.push(""),new Error(a.join("\n---------\n"))},d.reset(),d}},b.mock.$IntervalProvider=function(){this.$get=["$browser","$rootScope","$q","$$q",function(a,d,e,f){var g=[],h=0,i=0,j=function(j,k,l,m){function n(){if(s.notify(q++),l>0&&q>=l){var e;s.resolve(q),b.forEach(g,function(a,b){a.id===t.$$intervalId&&(e=b)}),e!==c&&g.splice(e,1)}r?a.defer.flush():d.$apply()}var o=arguments.length>4,p=o?Array.prototype.slice.call(arguments,4):[],q=0,r=b.isDefined(m)&&!m,s=(r?f:e).defer(),t=s.promise;return l=b.isDefined(l)?l:0,t.then(null,null,o?function(){j.apply(null,p)}:j),t.$$intervalId=h,g.push({nextTime:i+k,delay:k,fn:n,id:h,deferred:s}),g.sort(function(a,b){return a.nextTime-b.nextTime}),h++,t};return j.cancel=function(a){if(!a)return!1;var d;return b.forEach(g,function(b,c){b.id===a.$$intervalId&&(d=c)}),d!==c&&(g[d].deferred.reject("canceled"),g.splice(d,1),!0)},j.flush=function(a){for(i+=a;g.length&&g[0].nextTime<=i;){var b=g[0];b.fn(),b.nextTime+=b.delay,g.sort(function(a,b){return a.nextTime-b.nextTime})}return a},j}]};var j=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?:\:?(\d\d)(?:\:?(\d\d)(?:\.(\d{3}))?)?)?(Z|([+-])(\d\d):?(\d\d)))?$/;if(b.mock.TzDate=function(a,c){var e=new Date(0);if(b.isString(c)){var g=c;if(e.origDate=d(c),c=e.origDate.getTime(),isNaN(c))throw{name:"Illegal Argument",message:"Arg '"+g+"' passed into TzDate constructor is not a valid date string"}}else e.origDate=new Date(c);var h=new Date(c).getTimezoneOffset();e.offsetDiff=60*h*1e3-1e3*a*60*60,e.date=new Date(c+e.offsetDiff),e.getTime=function(){return e.date.getTime()-e.offsetDiff},e.toLocaleDateString=function(){return e.date.toLocaleDateString()},e.getFullYear=function(){return e.date.getFullYear()},e.getMonth=function(){return e.date.getMonth()},e.getDate=function(){return e.date.getDate()},e.getHours=function(){return e.date.getHours()},e.getMinutes=function(){return e.date.getMinutes()},e.getSeconds=function(){return e.date.getSeconds()},e.getMilliseconds=function(){return e.date.getMilliseconds()},e.getTimezoneOffset=function(){return 60*a},e.getUTCFullYear=function(){return e.origDate.getUTCFullYear()},e.getUTCMonth=function(){return e.origDate.getUTCMonth()},e.getUTCDate=function(){return e.origDate.getUTCDate()},e.getUTCHours=function(){return e.origDate.getUTCHours()},e.getUTCMinutes=function(){return e.origDate.getUTCMinutes()},e.getUTCSeconds=function(){return e.origDate.getUTCSeconds()},e.getUTCMilliseconds=function(){return e.origDate.getUTCMilliseconds()},e.getDay=function(){return e.date.getDay()},e.toISOString&&(e.toISOString=function(){return f(e.origDate.getUTCFullYear(),4)+"-"+f(e.origDate.getUTCMonth()+1,2)+"-"+f(e.origDate.getUTCDate(),2)+"T"+f(e.origDate.getUTCHours(),2)+":"+f(e.origDate.getUTCMinutes(),2)+":"+f(e.origDate.getUTCSeconds(),2)+"."+f(e.origDate.getUTCMilliseconds(),3)+"Z"});var i=["getUTCDay","getYear","setDate","setFullYear","setHours","setMilliseconds","setMinutes","setMonth","setSeconds","setTime","setUTCDate","setUTCFullYear","setUTCHours","setUTCMilliseconds","setUTCMinutes","setUTCMonth","setUTCSeconds","setYear","toDateString","toGMTString","toJSON","toLocaleFormat","toLocaleString","toLocaleTimeString","toSource","toString","toTimeString","toUTCString","valueOf"];return b.forEach(i,function(a){e[a]=function(){throw new Error("Method '"+a+"' is not implemented in the TzDate mock")}}),e},b.mock.TzDate.prototype=Date.prototype,b.mock.animate=b.module("ngAnimateMock",["ng"]).config(["$provide",function(a){var c=[];a.value("$$animateReflow",function(a){var b=c.length;return c.push(a),function(){c.splice(b,1)}}),a.decorator("$animate",["$delegate","$$asyncCallback","$timeout","$browser","$$rAF",function(a,d,e,f,g){var h={
queue:[],cancel:a.cancel,enabled:a.enabled,triggerCallbackEvents:function(){g.flush(),d.flush()},triggerCallbackPromise:function(){e.flush(0)},triggerCallbacks:function(){this.triggerCallbackEvents(),this.triggerCallbackPromise()},triggerReflow:function(){b.forEach(c,function(a){a()}),c=[]}};return b.forEach(["animate","enter","leave","move","addClass","removeClass","setClass"],function(b){h[b]=function(){return h.queue.push({event:b,element:arguments[0],options:arguments[arguments.length-1],args:arguments}),a[b].apply(a,arguments)}}),h}])}]),b.mock.dump=function(a){function c(a){var e;return b.isElement(a)?(a=b.element(a),e=b.element("<div></div>"),b.forEach(a,function(a){e.append(b.element(a).clone())}),e=e.html()):b.isArray(a)?(e=[],b.forEach(a,function(a){e.push(c(a))}),e="[ "+e.join(", ")+" ]"):e=b.isObject(a)?b.isFunction(a.$eval)&&b.isFunction(a.$apply)?d(a):a instanceof Error?a.stack||""+a.name+": "+a.message:b.toJson(a,!0):String(a),e}function d(a,c){c=c||"  ";var e=[c+"Scope("+a.$id+"): {"];for(var f in a)Object.prototype.hasOwnProperty.call(a,f)&&!f.match(/^(\$|this)/)&&e.push("  "+f+": "+b.toJson(a[f]));for(var g=a.$$childHead;g;)e.push(d(g,c+"  ")),g=g.$$nextSibling;return e.push("}"),e.join("\n"+c)}return c(a)},b.mock.$HttpBackendProvider=function(){this.$get=["$rootScope","$timeout",g]},b.mock.$TimeoutDecorator=["$delegate","$browser",function(a,c){function d(a){var c=[];return b.forEach(a,function(a){c.push("{id: "+a.id+", time: "+a.time+"}")}),c.join(", ")}return a.flush=function(a){c.defer.flush(a)},a.verifyNoPendingTasks=function(){if(c.deferredFns.length)throw new Error("Deferred tasks to flush ("+c.deferredFns.length+"): "+d(c.deferredFns))},a}],b.mock.$RAFDecorator=["$delegate",function(a){var b=[],c=function(a){var c=b.length;return b.push(a),function(){b.splice(c,1)}};return c.supported=a.supported,c.flush=function(){if(0===b.length)throw new Error("No rAF callbacks present");for(var a=b.length,c=0;c<a;c++)b[c]();b=b.slice(c)},c}],b.mock.$AsyncCallbackDecorator=["$delegate",function(a){var c=[],d=function(a){c.push(a)};return d.flush=function(){b.forEach(c,function(a){a()}),c=[]},d}],b.mock.$RootElementProvider=function(){this.$get=function(){return b.element("<div ng-app></div>")}},b.mock.$ControllerDecorator=["$delegate",function(a){return function(c,d,e,f){if(e&&"object"==typeof e){var g=a(c,d,!0,f);return b.extend(g.instance,e),g()}return a(c,d,e,f)}}],b.module("ngMock",["ng"]).provider({$browser:b.mock.$BrowserProvider,$exceptionHandler:b.mock.$ExceptionHandlerProvider,$log:b.mock.$LogProvider,$interval:b.mock.$IntervalProvider,$httpBackend:b.mock.$HttpBackendProvider,$rootElement:b.mock.$RootElementProvider}).config(["$provide",function(a){a.decorator("$timeout",b.mock.$TimeoutDecorator),a.decorator("$$rAF",b.mock.$RAFDecorator),a.decorator("$$asyncCallback",b.mock.$AsyncCallbackDecorator),a.decorator("$rootScope",b.mock.$RootScopeDecorator),a.decorator("$controller",b.mock.$ControllerDecorator)}]),b.module("ngMockE2E",["ng"]).config(["$provide",function(a){a.decorator("$httpBackend",b.mock.e2e.$httpBackendDecorator)}]),b.mock.e2e={},b.mock.e2e.$httpBackendDecorator=["$rootScope","$timeout","$delegate","$browser",g],b.mock.$RootScopeDecorator=["$delegate",function(a){function b(){for(var a,b=0,c=[this.$$childHead];c.length;)for(a=c.shift();a;)b+=1,c.push(a.$$childHead),a=a.$$nextSibling;return b}function c(){for(var a,b=this.$$watchers?this.$$watchers.length:0,c=[this.$$childHead];c.length;)for(a=c.shift();a;)b+=a.$$watchers?a.$$watchers.length:0,c.push(a.$$childHead),a=a.$$nextSibling;return b}var d=Object.getPrototypeOf(a);return d.$countChildScopes=b,d.$countWatchers=c,a}],a.jasmine||a.mocha){var k=null,l=[],m=function(){return!!k};b.mock.$$annotate=b.injector.$$annotate,b.injector.$$annotate=function(a){return"function"!=typeof a||a.$inject||l.push(a),b.mock.$$annotate.apply(this,arguments)},(a.beforeEach||a.setup)(function(){l=[],k=this}),(a.afterEach||a.teardown)(function(){var a=k.$injector;l.forEach(function(a){delete a.$inject}),b.forEach(k.$modules,function(a){a&&a.$$hashKey&&(a.$$hashKey=c)}),k.$injector=null,k.$modules=null,k=null,a&&a.get("$rootElement").off(),b.forEach(b.element.fragments,function(a,c){delete b.element.fragments[c]}),i.$$lastInstance=null,b.forEach(b.callbacks,function(a,c){delete b.callbacks[c]}),b.callbacks.counter=0}),a.module=b.mock.module=function(){function a(){if(k.$injector)throw new Error("Injector already created, can not register a module!");var a=k.$modules||(k.$modules=[]);b.forEach(c,function(c){b.isObject(c)&&!b.isArray(c)?a.push(function(a){b.forEach(c,function(b,c){a.value(c,b)})}):a.push(c)})}var c=Array.prototype.slice.call(arguments,0);return m()?a():a};var n=function(a,b){this.message=a.message,this.name=a.name,a.line&&(this.line=a.line),a.sourceId&&(this.sourceId=a.sourceId),a.stack&&b&&(this.stack=a.stack+"\n"+b.stack),a.stackArray&&(this.stackArray=a.stackArray)};n.prototype.toString=Error.prototype.toString,a.inject=b.mock.inject=function(){function a(){var a=k.$modules||[],e=!!k.$injectorStrict;a.unshift("ngMock"),a.unshift("ng");var f=k.$injector;f||(e&&b.forEach(a,function(a){"function"==typeof a&&b.injector.$$annotate(a)}),f=k.$injector=b.injector(a,e),k.$injectorStrict=e);for(var g=0,h=c.length;g<h;g++){k.$injectorStrict&&f.annotate(c[g]);try{f.invoke(c[g]||b.noop,this)}catch(i){if(i.stack&&d)throw new n(i,d);throw i}finally{d=null}}}var c=Array.prototype.slice.call(arguments,0),d=new Error("Declaration Location");return m()?a.call(k):a},b.mock.inject.strictDi=function(a){function b(){if(a!==k.$injectorStrict){if(k.$injector)throw new Error("Injector already created, can not modify strict annotations");k.$injectorStrict=a}}return a=!arguments.length||!!a,m()?b():b}}}(window,window.angular),angular.module("gettext",[]),angular.module("gettext").constant("gettext",function(a){return a}),angular.module("gettext").factory("gettextCatalog",["gettextPlurals","$http","$cacheFactory","$interpolate","$rootScope",function(a,b,c,d,e){function f(){e.$broadcast("gettextLanguageChanged")}var g,h="$$noContext",i='<span id="test" title="test" class="tested">test</span>',j=angular.element("<span>"+i+"</span>").html()!==i,k=function(a){return g.debug&&g.currentLanguage!==g.baseLanguage?g.debugPrefix+a:a},l=function(a){return g.showTranslatedMarkers?g.translatedMarkerPrefix+a+g.translatedMarkerSuffix:a};return g={debug:!1,debugPrefix:"[MISSING]: ",showTranslatedMarkers:!1,translatedMarkerPrefix:"[",translatedMarkerSuffix:"]",strings:{},baseLanguage:"en",currentLanguage:"en",cache:c("strings"),setCurrentLanguage:function(a){this.currentLanguage=a,f()},getCurrentLanguage:function(){return this.currentLanguage},setStrings:function(a,b){this.strings[a]||(this.strings[a]={});for(var c in b){var d=b[c];if(j&&(c=angular.element("<span>"+c+"</span>").html()),angular.isString(d)||angular.isArray(d)){var e={};e[h]=d,d=e}for(var g in d){var i=d[g];d[g]=angular.isArray(i)?i:[i]}this.strings[a][c]=d}f()},getStringForm:function(a,b,c){var d=this.strings[this.currentLanguage]||{},e=d[a]||{},f=e[c||h]||[];return f[b]},getString:function(a,b,c){return a=this.getStringForm(a,0,c)||k(a),a=b?d(a)(b):a,l(a)},getPlural:function(b,c,e,f,g){var h=a(this.currentLanguage,b);return c=this.getStringForm(c,h,g)||k(1===b?c:e),f&&(f.$count=b,c=d(c)(f)),l(c)},loadRemote:function(a){return b({method:"GET",url:a,cache:g.cache}).then(function(a){var b=a.data;for(var c in b)g.setStrings(c,b[c]);return a})}}}]),angular.module("gettext").directive("translate",["gettextCatalog","$parse","$animate","$compile","$window",function(a,b,c,d,e){function f(a,b,c){if(!a)throw new Error("You should add a "+b+" attribute whenever you add a "+c+" attribute.")}var g=function(){return String.prototype.trim?function(a){return"string"==typeof a?a.trim():a}:function(a){return"string"==typeof a?a.replace(/^\s*/,"").replace(/\s*$/,""):a}}(),h=parseInt((/msie (\d+)/.exec(angular.lowercase(e.navigator.userAgent))||[])[1],10);return{restrict:"AE",terminal:!0,compile:function(e,i){f(!i.translatePlural||i.translateN,"translate-n","translate-plural"),f(!i.translateN||i.translatePlural,"translate-plural","translate-n");var j=g(e.html()),k=i.translatePlural,l=i.translateContext;return 8>=h&&"<!--IE fix-->"===j.slice(-13)&&(j=j.slice(0,-13)),{post:function(e,f,h){function i(){var b;k?(e=n||(n=e.$new()),e.$count=m(e),b=a.getPlural(e.$count,j,k,null,l)):b=a.getString(j,null,l);var h=f.contents();if(0!==h.length){if(b===g(h.html()))return void(o&&d(h)(e));var i=angular.element("<span>"+b+"</span>");d(i.contents())(e);var p=i.contents();c.enter(p,f),c.leave(h)}}var m=b(h.translateN),n=null,o=!0;h.translateN&&e.$watch(h.translateN,i),e.$on("gettextLanguageChanged",i),i(),o=!1}}}}}]),angular.module("gettext").filter("translate",["gettextCatalog",function(a){function b(b,c){return a.getString(b,null,c)}return b.$stateful=!0,b}]),angular.module("gettext").factory("gettextPlurals",function(){return function(a,b){switch(a){case"ay":case"bo":case"cgg":case"dz":case"fa":case"id":case"ja":case"jbo":case"ka":case"kk":case"km":case"ko":case"ky":case"lo":case"ms":case"my":case"sah":case"su":case"th":case"tt":case"ug":case"vi":case"wo":case"zh":return 0;case"is":return b%10!=1||b%100==11?1:0;case"jv":return 0!=b?1:0;case"mk":return 1==b||b%10==1?0:1;case"ach":case"ak":case"am":case"arn":case"br":case"fil":case"fr":case"gun":case"ln":case"mfe":case"mg":case"mi":case"oc":case"pt_BR":case"tg":case"ti":case"tr":case"uz":case"wa":case"zh":return b>1?1:0;case"lv":return b%10==1&&b%100!=11?0:0!=b?1:2;case"lt":return b%10==1&&b%100!=11?0:b%10>=2&&(10>b%100||b%100>=20)?1:2;case"be":case"bs":case"hr":case"ru":case"sr":case"uk":return b%10==1&&b%100!=11?0:b%10>=2&&4>=b%10&&(10>b%100||b%100>=20)?1:2;case"mnk":return 0==b?0:1==b?1:2;case"ro":return 1==b?0:0==b||b%100>0&&20>b%100?1:2;case"pl":return 1==b?0:b%10>=2&&4>=b%10&&(10>b%100||b%100>=20)?1:2;case"cs":case"sk":return 1==b?0:b>=2&&4>=b?1:2;case"sl":return b%100==1?1:b%100==2?2:b%100==3||b%100==4?3:0;case"mt":return 1==b?0:0==b||b%100>1&&11>b%100?1:b%100>10&&20>b%100?2:3;case"gd":return 1==b||11==b?0:2==b||12==b?1:b>2&&20>b?2:3;case"cy":return 1==b?0:2==b?1:8!=b&&11!=b?2:3;case"kw":return 1==b?0:2==b?1:3==b?2:3;case"ga":return 1==b?0:2==b?1:7>b?2:11>b?3:4;case"ar":return 0==b?0:1==b?1:2==b?2:b%100>=3&&10>=b%100?3:b%100>=11?4:5;default:return 1!=b?1:0}}}),function(a,b,c){function d(a){var b=0;return _.each(a,function(a){a.selected&&b++}),b}function e(a){var b=x.getFileName(a);return b.substring(0,b.lastIndexOf("."))}function f(){a.unity?_.each(unityEmulator,function(b,c){a.unity[c]||(a.unity[c]=unityEmulator[c])}):a.unity=unityEmulator}b.module("unityApp",["templates-app","templates-common","ui.bootstrap","ui.router","unity.directives","ngSanitize","ui.select","angularSpinner","angular-loading-bar","unity.services.http","unity.services.auth","unity.services.editorlicense","unity.services.url","unity.services.collab","unity.services.cloudlicense","unity.pn-header","unity.pn-status","unity.pn-recentProjects","unity.pn-newProject","unity.pn-login","unity.pn-license","unity.pn-survey","unity.pn-footer","unity.pn-packagePicker","unity.pn-eula","unity.pn-gettingstarted","angulartics","angulartics.google.analytics","gettext"]).run(["getScopeSvc",function(b){$(a).keydown(function(a){var c=b.getContentScope();c&&"function"==typeof c.handleKeyDown&&c.handleKeyDown(a)})}]).service("getScopeSvc",function(){this.getContentScope=function(){return b.element($(".current-content > .content")).scope()}}).controller("AppCtrl",["$scope","$state","$http","$timeout","authSvc","editorlicense","$localStorage",function(b,d,e,h,i,j,k){f(),b.showOpenOtherDialog=function(){a.unityApi.showOpenOtherDialog(function(a){})},b.checkVisibility=function(){if(d.includes("manual"))return!0;if(b.connectInfo===c||b.licenseInfo===c)return!0;if(b.connectInfo.ready&&b.licenseInfo.ready){if(!b.connectInfo.online&&!b.connectInfo.workOffline)return!0}else if(!b.connectInfo.showLoginWindow)return!0;return!1},b.blur="",b.auth=c,b.license=c,b.devbuild=x.hasParameterByName("devbuild"),b.cloudEnabled=g,g&&(b.$watch(function(){return i.getConnectInfo()},function(a){a&&(b.connectInfo=a,b.checkVisibility()?b.blur="blur":b.blur="")},!0),b.$watch(function(){return j.getLicenseInfo()},function(a){a&&(b.licenseInfo=a,b.checkVisibility()?b.blur="blur":b.blur="")},!0),b.$watch(function(){return d.current},function(c){c&&a.unityApi.getUserDefault(function(){b.isLaunching="true"===a.unity.userDefault.isLaunching}),b.checkVisibility()?b.blur="blur":b.blur=""},!0))}]).config(["$stateProvider","$urlRouterProvider","$provide",function(a,b,c){c.decorator("$q",["$delegate",function(a){var b=a.defer;return a.defer=function(){var a=b();return a.promise.success=function(b){return a.promise.then(b),a.promise},a.promise.error=function(b){return a.promise.then(null,b),a.promise},a},a}])}]).config(["cfpLoadingBarProvider",function(a){a.includeSpinner=!1}]).config(["$httpProvider",function(a){a.interceptors.push("httpSvc")}]).factory("airbrake",function(){var a=new airbrakeJs.Client({projectId:1,projectKey:"fc6233818bebb011f1bb4bee7315d814"});return a}).config(["$provide",function(a){a.decorator("$exceptionHandler",["$log","$delegate","airbrake",function(a,b,c){return function(a,d){a.message+=' (caused by "'+d+'")',u||c.push({message:a.message,stack:a.stack}),b(a,d)}}])}]).run(["$rootScope","$location","$timeout","$state","$window","$interval","$compile","$log","authSvc","editorlicense","airbrake","gettextCatalog","$localStorage",function(b,c,d,e,f,h,i,j,k,l,m,n,o){n.setCurrentLanguage((navigator.browserLanguage||navigator.language||navigator.userLanguage).substr(0,2)),b.$on("$stateChangeSuccess",function(a,b,c,e,f){"newProject"===b.name&&d(function(){$("#projectName").select()},50)}),b.$on("$stateChangeError",function(a,b,d,h,i,j){if(g){if(j.licenseError===!0)return void e.go("error",null,{location:!1});if(j.authenticated===!1)return f.unityApi.showLogin(),o.urlBeforeLogin=c.url(),void e.go("login");if(j.licensed===!1)return void e.go("license")}}),a.onerror=function(a,b,c){return m.push({message:a,url:b,lineNumber:c}),!1}}]),b.module("unity.directives",["unity.services.url"]).directive("backImg",function(){return function(a,b,c){c.$observe("backImg",function(a){var d="cover";if(c.backSize&&(d=c.backSize),b.css("background-image",'url("'+encodeURI(a).replace("#","%23")+'")'),b.css("background-size",d),b.css("background-repeat","no-repeat"),c.postload){var e=$("<img>");e.attr("src",c.postload),e.load(function(a){e.processed||(e.processed=!0,b.fadeOut(200,function(){b.css("background-image","url("+c.postload+")"),b.fadeIn(500)}))})}})}}).directive("flexcroll",["$timeout",function(a){return{restrict:"A",link:function(a,b,c){function d(){return e.height()+x.pixToNumber(e.css("padding-top"))+x.pixToNumber(e.css("padding-bottom"))}var e=(b.height(),b.children(":eq(0)"));a.safeApply=function(a){var b=this.$root.$$phase;"$apply"==b||"$digest"==b?a&&"function"==typeof a&&a():this.$apply(a)},a.$watch(d,function(e,f){if("dynamic"==c.flexcroll){var g=parseInt(b.css("max-height")),h=d();h>g?b.css({height:g+"px"}):b.css({height:h+5+"px"})}setTimeout(function(){a.safeApply(fleXenv.fleXcrollMain(b[0]))},200)}),b[0]&&(b[0].addEventListener(navigator.userAgent.indexOf("Firefox")>-1?"DOMMouseScroll":"mousewheel",function(a){a.stopPropagation()},!1),b[0].addEventListener("touchmove",function(a){a.preventDefault(),a.stopPropagation()},!1))}}}]).directive("ladda",function(){return{restrict:"A",link:function(a,b,d){if(b&&b[0]){var e=Ladda.create(b[0]);a.$watch(d.ladda,function(a,b){a!==c&&(a?e.start():e.stop())})}}}}).directive("status",["$rootScope","$animate","$interpolate","$interval",function(a,b,c,d){var e;return{link:function(b,c,f){a.$on("$stateChangeStart",function(a,b,c,f,g){e=d(function(){},100)}),a.$on("$stateChangeSuccess",function(){d.cancel(e)}),a.$on("$stateChangeError",function(){d.cancel(e)})},templateUrl:"pn-status/status.tpl.html",controller:"status.controller"}}]).directive("validSerial",["$http","$timeout",function(a,b){var d;return{restrict:"A",require:["^form","ngModel"],link:function(a,e,f,g){var h=g[0],i=g[1],j=e.parent().children("span")[0],k=Ladda.create(j);a.$watch(f.ngModel,function(e){d&&(clearTimeout(d),delete h.serialNumber.$error.validSerial,delete h.serialNumber.$error.invalidSerial,delete h.serialNumber.$error.networkIssue),null!==e&&""!==e&&(d=setTimeout(function(){k.start(),a.cloudlicense.ValidateSerial(e,a.editorlicense.getLicenseInfo()).success(function(c){b(function(){i.$setValidity("validSerial",!c.isValid),i.$setValidity("invalidSerial",c.isValid),c.isValid||a.$parent.showValidationPopover("#serial-number","Serial Number Format is Invalid."),a.$parent.closeAlert()},1e3)}).error(function(d){b(function(){i.$setValidity("validSerial",!0),i.$setValidity("invalidSerial",!1),d.status>=500||0===d.status?(i.$setValidity("network",!1),a.$parent.setError("Service not available, please try again later. ",500)):d.msg!==c&&a.$parent.setError(d.msg,d.status)},1e3)}).finally(function(){k.stop()})},1e3))})}}}]).directive("ucSignInUser",["collabSvc","urlSvc",function(a,b){return{restrict:"E",replace:!0,templateUrl:"directives/signin-user.tpl.html",link:function(c){c.urlSvc=b,c.userInfo=a.userInfo}}}]).directive("onFinishRender",["$timeout",function(a){return{restrict:"A",link:function(a,b,c){a.$last===!0&&a.$evalAsync(c.onFinishRender)}}}]),b.module("unity.directives").directive("pnLink",["$window",function(a){return{restrict:"EA",templateUrl:"directives/link/link.tpl.html",transclude:!0,scope:{href:"="},controller:["$scope",function(b){b.open=function(){a.unityApi.launchBrowser(b.href)}}]}}]),b.module("unity.directives").directive("utToggle",function(){return{restrict:"E",templateUrl:"directives/toggle.tpl.html",scope:{toggle:"=",rightLabel:"@",leftLabel:"@"}}}),b.module("homeFilters",[]).filter("ensurePlatformPathSeparators",function(){return function(b){var c=a.unity.userDefault.platformPathNameSeparator;return"/"!=c?b.split("/").join(c):b}}).filter("ensureUnityPathSeparators",function(){return function(b){var c=a.unity.userDefault.platformPathNameSeparator;return b.split(c).join("/")}}).filter("formatVersion",function(){return function(a){var b=a.match(/([0-9\.a-eg-zA-EG-Z])*/);return b&&b.length?b[0]:a}});var g=1,h=1,i=1,j=38,k=40,l=13,m=27,n=0,o=3;b.module("unity.pn-call2action",["ngAnimate"]).controller("call2action.controller",["$scope","$http","$location","$timeout",function(b,c,d,e){a.unityApi.getHasDismissed50WelcomeAlert(function(a,c){b.hideAlert=c,b.$apply()}),b.dismissAlert=function(){b.hideAlert=!0,a.unityApi.setHasDismissed50WelcomeAlert(!0)},b.launchBrowserWithUrl=function(b){a.unityApi.launchBrowser(b)}}]),b.module("unity.pn-eula",[]).controller("eula.controller",["$scope","$http","$location","$timeout","$modalInstance",function(b,c,d,e,f){b.ok=function(){f.close(b.personalOption.name)},b.optionSelected=function(){return b.personalOption&&b.personalOption.name.length>0},b.launchBrowserWithUrl=function(b){a.unityApi.launchBrowser(b)}}]),g?b.module("unity.pn-footer",[]).controller("footer.controller",["$scope","$location","$timeout","$state","$window","authSvc","editorlicense","$localStorage",function(b,c,d,e,f,g,h,i){b.paneName="footer",b.$state=e,b.login=function(){f.unityApi.showLogin(),i.urlBeforeLogin=c.url(),c.path("/login")},b.logout=function(){f.sessionStorage.removeItem("cloudProjects"),g.logout(),b.login()},b.launchBrowserWithUrl=function(b){a.unityApi.launchBrowser(b)},b.$watch(function(){return g.getConnectInfo()},function(a,c){a&&(b.connectInfo=a)},!0),b.$watch(function(){return g.getUserInfo()},function(a,c){a&&(b.userInfo=a)},!0),b.$watch(function(){return h.getLicenseInfo()},function(a,c){a&&(b.licenseInfo=a)},!0)}]):b.module("unity.pn-footer",[]).controller("footer.controller",["$scope","$location","$timeout","$state","editorlicense",function(a,b,c,d,e){a.paneName="footer",a.$state=d}]),b.module("unity.pn-gettingstarted",["ui.router","homeFilters"]).config(["$stateProvider",function(a){a.state("gettingStarted",{url:"/gettingStarted",views:{"":{templateUrl:"pn-gettingstarted/gettingstarted.tpl.html",controller:"gettingstarted.controller"},header:{templateUrl:"pn-header/header.tpl.html",controller:"header.controller"},footer:{templateUrl:"pn-footer/footer.tpl.html",controller:"footer.controller"}},resolve:{auth:["$q","authSvc",function(a,b){var c=b.ready().then(function(a){return a},function(a){return{authenticated:!1}});return c.promise}],license:["$q","editorlicense",function(a,b){var c=b.ready().then(function(a){return a},function(a){return{licensed:!1}});return c.promise}]}})}]).controller("gettingstarted.controller",["$scope","$filter","$window",function(b,c,d){d.unityApi.getUserDefault(function(a){b.welcomeVideoPath=c("ensurePlatformPathSeparators")(d.unity.userDefault.editorResourcesDirectory)+"/welcome.ogv"}),b.handleKeyDown=function(b){if(b.keyCode===m)return void a.unityApi.closeHomeWindow()}}]),b.module("unity.pn-header",[]).controller("header.controller",["$scope","$http","$location","$timeout","$state","$window","authSvc","editorlicense","configSvc","$localStorage",function(a,b,c,d,e,f,g,i,j,k){a.hideOpenButton=!1,a.showProjectActive=!1,a.showTabs=!1,a.showLogo=!1,a.showSignIn=!1,a.$state=e,a.accountUrl="https://id.unity.com",a.manageUrl="https://id.unity.com/organizations",a.max=3,a.dynamic=1,a.projectIdEnabled=1==h,a.login=function(){f.unityApi.showLogin(),k.urlBeforeLogin=c.url(),c.path("/login")},a.logout=function(){f.sessionStorage.removeItem("cloudProjects"),g.logout(),a.login()},a.inLicenseFlow=function(){return!a.licenseInfo.activated&&!e.includes("error")&&!a.licenseInfo.error||a.licenseInfo.activated&&e.includes("license")&&!e.includes("manage")},a.launchBrowserWithUrl=function(a){f.unityApi.launchBrowser(a)},a.$watch(function(){return g.getUserInfo()},function(b,c){b&&(a.userInfo=b)},!0),a.$watch(function(){return i.getLicenseInfo()},function(b,c){b&&(a.licenseInfo=b,a.licenseInfo.survey&&a.licenseInfo.survey.answered&&(a.max=2))},!0),a.updateShowFlags=function(){var b=e.includes("project.recent")||e.includes("project.new");a.showOpenButton=(b||e.includes("gettingStarted"))&&(a.connectInfo.online||a.connectInfo.workOffline),a.showProjectActive=e.includes("project.recent")&&(a.connectInfo.online||a.connectInfo.workOffline),a.showTabs=(e.includes("project")||e.includes("gettingStarted"))&&(a.connectInfo.online||a.connectInfo.workOffline),a.showLogo=!a.inLicenseFlow()&&!(e.includes("manage")||e.includes("manual"))&&(e.includes("login")||!a.connectInfo.online&&!a.connectInfo.workOffline),a.showSignIn=!a.connectInfo.loggedIn&&(a.connectInfo.online||a.connectInfo.workOffline),a.disableOpenButton=e.includes("project.new")},a.$watch(function(){return g.getConnectInfo()},function(b,c){b&&(a.connectInfo=b,a.updateShowFlags(),j.getConfigUrl(t).success(function(b){a.accountUrl=b,a.manageUrl=b+"/organizations"}).error(function(b){a.accountUrl="https://id.unity.com",a.manageUrl="https://id.unity.com/organizations"}))},!0),a.$watch(function(){return e.current},function(b,c){b&&(a.updateShowFlags(),e.includes("login")?a.dynamic=0:e.includes("license")&&(a.dynamic=1,e.includes("license.survey")?a.dynamic=2:e.includes("license.finalize")&&(a.dynamic=3)))},!0)}]),g&&b.module("unity.pn-license",["homeFilters","ut.components"]).config(["$stateProvider",function(a){a.state("license",{url:"/license?defaultOption",views:{"":{templateUrl:"pn-license/license.tpl.html",controller:"license.controller"},header:{templateUrl:"pn-header/header.tpl.html",controller:"header.controller"},footer:{templateUrl:"pn-footer/footer.tpl.html",controller:"footer.controller"}},resolve:{auth:["$q","authSvc",function(a,b){var c=b.ready(),d=c.then(function(b){return b.loggedIn?b:a.reject({authenticated:!1})},function(b){return a.reject({authenticated:!1})});return d}],license:["$q","editorlicense",function(a,b){var c=b.GetTransactionId(),d=c.then(function(a){return a},function(b){return a.reject({licenseError:!0})});return d}]}}).state("license.finalize",{url:"/finalize",views:{"@":{templateUrl:"pn-license/finalize.tpl.html",controller:"license.controller"}},resolve:{license:["$q","editorlicense",function(a,b){var c=b.WaitForActivation(),d=c.then(function(b){return b.activated?b:a.reject({activated:!1})},function(b){return a.reject({activated:!1})});return d}]}}).state("license.failure",{url:"/failure",views:{"@":{templateUrl:"pn-license/failure.tpl.html",controller:"license.controller"}}}).state("manage",{url:"/manage",views:{"":{templateUrl:"pn-license/manage.tpl.html",controller:"license.controller"},header:{templateUrl:"pn-header/header.tpl.html",controller:"header.controller"}},resolve:{license:["$q","editorlicense",function(a,b){var c=b.IsActivated(),d=c.then(function(b){return b.activated?b:a.reject({activated:!1})},function(b){return a.reject({activated:!1})});return d}]}}).state("manage.return",{url:"/return",views:{"@":{templateUrl:"pn-license/return.tpl.html",controller:"license.controller"}},resolve:{license:["$q","editorlicense",function(a,b){var c=b.IsActivated(),d=c.then(function(b){return b.activated?b:a.reject({activated:!1})},function(b){return a.reject({activated:!1})});return d}]}}).state("error",{url:"/error",views:{"":{templateUrl:"pn-license/error.tpl.html",controller:"license.controller"},header:{templateUrl:"pn-header/header.tpl.html",controller:"header.controller"}},resolve:{license:["$q","editorlicense",function(a,b){var c=b.ready(),d=c.then(function(a){return a},function(a){return a});return d}]}}).state("manual",{url:"/manual",views:{"":{templateUrl:"pn-license/manual.tpl.html",controller:"license.controller"},header:{templateUrl:"pn-header/header.tpl.html",controller:"header.controller"}},resolve:{license:["$q","editorlicense",function(a,b){var c=b.ready(),d=c.then(function(a){return a},function(a){return a});return d}]}}).state("manual.finalize",{url:"/finalize",views:{"@":{templateUrl:"pn-license/finalize.tpl.html",controller:"license.controller"}},resolve:{license:["$q","editorlicense",function(a,b){var c=b.WaitForActivation(),d=c.then(function(b){return b.activated?b:a.reject({activated:!1})},function(b){return a.reject({activated:!1})});return d}]}}).state("manual.returned",{url:"/returned",views:{"@":{templateUrl:"pn-license/returned.tpl.html",controller:"license.controller"}}}).state("license.alert",{url:"/impossible",views:{"@":{templateUrl:"pn-license/licenses/impossible.tpl.html",controller:"license.controller"}}})}]).controller("license.controller",["$scope","$filter","$http","$location","$timeout","$window","$modal","$state","$sce","editorlicense","cloudlicense","license","cfpLoadingBar","utAlert","$stateParams",function(b,d,e,f,g,h,i,j,k,p,q,r,s,t,u){b.license={selectedOption:"serial",serialNumber:""},null!=u&&null!=u.defaultOption&&(b.license.selectedOption=u.defaultOption),b.types=[{name:"serial",url:"pn-license/licenses/serial.tpl.html"},{name:"personal",url:"pn-license/licenses/personal.tpl.html"}],b.categoryCode="default",b.categories={default:"pn-license/finalize/default.tpl.html",pro:"pn-license/finalize/pro.tpl.html",free:"pn-license/finalize/free.tpl.html"},b.editorlicense=p,b.cloudlicense=q,b.validSerial=!1,b.isValidatingFlow=!1,b.isManagingLicense=!1,b.eulaConfirmed=!1,b.licenseUrl="http://unity3d.com/unity/err/license",b.isFreeAllowed=function(){return!0},b.hideEula=function(){b.eulaVisible=!1},b.showImpossibleAlert=function(){j.go("license.alert")},b.showEula=function(a){var c=i.open({templateUrl:"pn-eula/eula.tpl.html",controller:"eula.controller",size:a});c.result.then(function(a){"above1hk"==a?b.showImpossibleAlert():(b.eulaConfirmed=!0,b.submitSerial())},function(){})},b.goBack2License=function(){j.go("license",{defaultOption:"personal"})},b.go2FillLicense=function(){j.go("license",{defaultOption:"serial"})},b.closeAlert=function(a){t.clearAlert()},b.setError=function(a,b){b||(b=400),b<500?t.setError(k.trustAsHtml(a),b):t.setError(k.trustAsHtml(a),b,{showMoreInfo:!0,linkUrl:"http://status.cloud.unity3d.com",linkHandler:h.unityApi.launchBrowser})},b.submitSerial=function(){return"serial"!=b.license.selectedOption||b.createNew.serialNumber.$error.validSerial?"personal"==b.license.selectedOption&&b.eulaConfirmed===!1?void b.showEula():(b.isValidatingFlow=!0,t.clearAlert(),b.licenseInfo.ready=!1,b.licenseInfo.message="Updating License",b.licenseInfo.debounce=!1,void q.ValidateLicense(b.license.selectedOption,b.license.serialNumber,p.getLicenseInfo()).success(function(a,c){if(b.licenseInfo.survey.answered){var d=[];q.SubmitSurvey(d,p.getLicenseInfo()).success(function(a,b){f.path("/license/finalize")}).error(function(a){console.error("status:",a),f.path("/license/failure")})}else f.path("/license/survey");b.licenseInfo.ready=!0}).error(function(a){console.error("status:",a),f.path("/license/failure")}).finally(function(){b.isValidatingFlow=!1})):void b.showValidationPopover("#serial-number","Please enter a valid serial and try again.")},b.showValidationPopover=function(a,b){$(a).popover({placement:"bottom",trigger:"focus",content:b});var c=function(){$(a).off("hidden.bs.popover",c),$(a).popover("destroy")};$(a).on("hidden.bs.popover",c),$(a).popover("show")},b.launchBrowserWithUrl=function(b){a.unityApi.launchBrowser(b)},b.startUnity=function(){b.licenseInfo.renew?h.unityApi.closeHomeWindow(n):f.path("/project/recent")},b.quit=function(){h.unityApi.closeHomeWindow(n)},b.returnAndQuit=function(){h.unityApi.closeHomeWindow(o)},b.cancel=function(){1==h.history.length?h.unityApi.closeHomeWindow():h.history.back()},b.reportABug=function(){h.unityApi.closeHomeWindow(n)},b.go=function(a){f.path(a)},b.clearSerial=function(){b.license.serialNumber=""},b.revalidation=function(){t.clearAlert();var a=b.license.serialNumber;b.license.serialNumber="",b.$apply(),b.license.serialNumber=a},b.refreshLicense=function(){b.isManagingLicense||(b.isManagingLicense=!0,p.RefreshLicense().success(function(){p.WaitForUpdatedLicense().success(function(a){t.setSuccess("License has been updated.",200)}).error(function(a){t.setError(a.lastErrorMsg,400)}).finally(function(){b.isManagingLicense=!1})}).error(function(){console.error("failed to refresh license"),f.path("/license/failure"),b.isManagingLicense=!1}))},b.activateNewLicense=function(){b.isManagingLicense||(p.ActivateNewLicense(),f.path("/license"))},b.returnLicense=function(){b.isManagingLicense||(b.isManagingLicense=!0,s.start(),p.MustExitOnClose(!0),p.ReturnLicense().success(function(){p.WaitForReturnedLicense().success(function(a){t.setSuccess("Unity License returned.",200),g(function(){f.path("/manual/returned"),s.complete()},2e3)}).error(function(a){t.setError(a.lastErrorMsg,400)}).finally(function(){b.isManagingLicense=!1,b.onLicenseReturned()})}).error(function(){console.error("failed to return license"),f.path("/license/failure")}))},b.onLicenseReturned=function(){},b.reactivateLicense=function(){b.isManagingLicense||(b.isManagingLicense=!0,s.start(),p.MustExitOnClose(!0),p.ClearErrors().success(function(){p.ReturnLicense().success(function(){p.WaitForReturnedLicense().success(function(a){t.setSuccess("Unity License returned.",200),g(function(){f.path("/license"),s.complete()},2e3)}).error(function(a){t.setError(a.lastErrorMsg,400)}).finally(function(){p.MustExitOnClose(!1),b.isManagingLicense=!1})}).error(function(){console.error("failed to return license"),f.path("/license/failure")})}).error(function(){console.error("failed to reactivate license"),f.path("/license/failure")}))},b.loadLicense=function(){p.LoadLicense().success(function(a){a?(t.setSuccess("License file loaded successfully. ",200),s.start(),g(function(){h.unity.userDefault.isLaunching?f.path("/manual/finalize"):h.unityApi.closeHomeWindow(n),s.complete()},2e3)):t.setError("License file was not loaded. ",400)}).error(function(){f.path("/license/failure")})},b.saveLicense=function(){p.SaveLicense().success(function(a){a?t.setSuccess("License request file saved successfully. ",200):t.setError("License request file was not saved. ",400);
}).error(function(){f.path("/license/failure")})},b.newActivation=function(){return b.licenseInfo.mustReactivate?void b.reactivateLicense():void(b.isManagingLicense||(b.isManagingLicense=!0,p.ClearErrors().success(function(){p.NewActivation().success(function(){j.go("license")}).error(function(){console.error("failed to start a new activation"),f.path("/license/failure")}).finally(function(){b.isManagingLicense=!1})}).error(function(){console.error("failed to start a new activation"),f.path("/license/failure")})))},b.flowValidated=function(){return"serial"==b.license.selectedOption?b.createNew.serialNumber!==c&&b.createNew.serialNumber.$error.validSerial:b.isFreeAllowed()},b.handleKeyDown=function(a){switch(a.keyCode){case l:a.preventDefault();break;case m:a.preventDefault()}},b.$watch(function(){return p.getLicenseInfo()},function(a,c){a&&(b.licenseInfo=a)},!0),b.isLicensingAvailable=function(){return!b.isManagingLicense&&(!(b.connectInfo&&!b.connectInfo.loggedIn)&&(!b.licenseInfo||!b.licenseInfo.maintenance))};var v="You are currently not connected to a network. Some options will be unavailable.",w="You are currently not signed in. Some options will be unavailable.",x="The license activation system is temporarily unavailable while we perform scheduled maintenance on our servers. Some Options will be unavailable.";b.$watch("connectInfo.loggedIn",function(a,b){a?b||t.clearAlert():t.setWarning(w)}),b.$watch("connectInfo.online",function(a,b){a||t.setWarning(v)}),b.$watch("licenseInfo.maintenance",function(a,b){a&&t.setWarning(x)})}]),g&&b.module("unity.pn-login",["ui.router","homeFilters","ut.components"]).config(["$stateProvider",function(a){a.state("login",{url:"/login",views:{"":{templateUrl:"pn-login/login.tpl.html",controller:"login.controller"},header:{templateUrl:"pn-header/header.tpl.html",controller:"header.controller"}},resolve:{auth:function(){return{loggedIn:!1}},license:["$q","editorlicense","$state",function(a,b,c){var d=b.IsActivated(),e=d.then(function(a){return a},function(b){return c.includes("error")?b:a.reject({licenseError:!0,authenticated:!1})});return e}]}})}]).controller("login.controller",["$scope","$filter","$window","$http","$location","$timeout","authSvc","configSvc","editorlicense","license","utAlert","$localStorage",function(a,b,c,d,e,f,g,h,i,j,k,n){a.isSigningIn=!1,a.remember=!0,a.mockEmail="username@domain.com",a.signUpUrl="https://id.unity.com/account/new",a.forgotPasswordUrl="https://id.unity.com/password/new",a.confirmationUrl="https://id.unity.com/confirmation/resend",a.activated=!0,a.licenseInfo=j,a.username="",a.password="",a.loginTimes=0,a.moreInfoSetting={showMoreInfo:!0,linkUrl:"https://id.unity.com/password/new",linkHandler:c.unityApi.launchBrowser,linkPreText:"",linkText:"Click here",linkSuffixText:"&nbsp;if you want to reset it."},a.signIn=function(){if(!a.isSigningIn){if(!a.signInForm.username.$valid||!x.validateEmailAddress(a.signInForm.username.$viewValue))return void a.showValidationPopover("#username","Please enter a valid email and try again.");if(!a.signInForm.password.$valid)return void a.showValidationPopover("#password","You must enter a password.");a.isSigningIn=!0,g.login(a.signInForm.username.$viewValue,a.signInForm.password.$viewValue,a.remember).success(function(){if(null==n.urlBeforeLogin)c.unityApi.closeHomeWindow();else{var a=n.urlBeforeLogin;n.urlBeforeLogin=null,e.url(a)}}).error(function(b){401==b.code?null!=b.error&&"132.182"==b.error.code?k.setError("User is blocked due to continuous failures. Have you forgotten your password?",b.code,a.moreInfoSetting):(a.loginTimes<3?k.setError("Invalid email or password.",b.code,{showMoreInfo:!1}):k.setError("Invalid email or password. Have you forgotten your password?",b.code,a.moreInfoSetting),a.loginTimes=a.loginTimes+1):"invalid primary_org"==b?k.setError("Invalid user account primary organization. You can work offline for now. Please contact support@unity3d.com."):(console.error("Service not available, please try again later. ",b.code),k.setError("Service not available, please try again later.",b.code,{showMoreInfo:!0,linkUrl:"http://status.cloud.unity3d.com",linkHandler:c.unityApi.launchBrowser}))}).finally(function(){a.isSigningIn=!1})}},a.showValidationPopover=function(a,b){$(a).popover({placement:"bottom",trigger:"focus",content:b});var c=function(){$(a).off("hidden.bs.popover",c),$(a).popover("destroy")};$(a).on("hidden.bs.popover",c),$(a).popover("show"),$("input"+a).select()},a.skipLogin=function(){g.workOffline(),1==c.history.length?c.unityApi.closeHomeWindow():c.history.back()},a.launchBrowserWithUrl=function(a){c.unityApi.launchBrowser(a)},a.handleKeyDown=function(b){switch(b.keyCode){case l:a.isSigningIn===!1&&a.signIn(),b.preventDefault();break;case m:a.isSigningIn===!1&&a.skipLogin(),b.preventDefault()}},a.$watch(function(){return g.getConnectInfo()},function(b,c){b&&(a.connectInfo=b,a.connectInfo.online&&a.connectInfo.ready&&h.getConfigUrl(t).success(function(b){a.signUpUrl=b+"/account/new",a.forgotPasswordUrl=b+"/password/new",a.confirmationUrl=b+"/confirmation/resend"}).error(function(b){a.signUpUrl="https://id.unity.com/account/new",a.forgotPasswordUrl="https://id.unity.com/password/new",a.confirmationUrl="https://id.unity.com/confirmation/resend"}))},!0),a.$watch(function(){return i.getLicenseInfo()},function(b,c){b&&(a.licenseInfo=b)},!0)}]);var p="assets/templates";b.module("unity.pn-newProject",["homeFilters","unity.services.url","ngStorage"]).config(["$stateProvider",function(a){a.state("project.new",{url:"/new",resolve:{enableServices:["$q","$state","authSvc",function(a,b,c){var d=a.defer();return c.ready().then(function(){var a,e=c.getConnectInfo();a=e.online&&e.loggedIn&&g?"project.new.enableServices":"project.new.disableServices",b.current!==a&&(b.go(a),b.current=a),d.resolve()}),d.promise}],organizations:["$q","authSvc",function(a,b){if(g){var c=b.ready(),d=a.defer();return c.then(function(){b.getOrganizations().then(function(a){var b=_.filter(a,function(a){return"owner"===a.role||"manager"===a.role});return d.resolve(b)},function(){return d.resolve([])})}),d.promise}return[]}],packages:["$q","$window",function(a,b){var c=a.defer();return b.unityApi.getPackageList(function(a,b){return c.resolve(b)}),c.promise}]}}).state("project.new.enableServices",{url:"/new/enable-services",views:{"@":{templateUrl:"pn-newProject/newProjectServices.tpl.html",controller:"newProject.controller"},"packagePicker@project.new.enableServices":{templateUrl:"pn-packagePicker/packagePicker.tpl.html",controller:"packagePicker.controller"}}}).state("project.new.disableServices",{url:"/new/disable-services",views:{"@":{templateUrl:"pn-newProject/newProject.tpl.html",controller:"newProject.controller"},"packagePicker@project.new.disableServices":{templateUrl:"pn-packagePicker/packagePicker.tpl.html",controller:"packagePicker.controller"}}})}]).controller("newProject.controller",["$scope","$filter","$http","$location","$timeout","$window","authSvc","organizations","packages","urlSvc","$document","$localStorage","utAlert",function(b,c,d,e,f,i,j,k,n,o,q,r,s){b.moreInfoVisible=!1,b.allowEnableCloudProject=!1,b.termsofserviceUrl="http://analytics.cloud.unity3d.com/terms_of_service",b.enable2D="false2D",r&&null!=r.analyticsServiceToggle?b.enableServiceToggle=r.analyticsServiceToggle:b.enableServiceToggle=!0,b.templates=[],b.nonClickableTemplates=[],b.urlSvc=o,q.on("keydown",function(a){8===a.which&&"INPUT"!==a.target.nodeName&&"SELECT"!==a.target.nodeName&&(i.history.go(-2),a.preventDefault())}),b.packagePickerVisible=!1,b.packages=n,b.organization={},b.organizations=k,b.organizations.length>0&&(b.organization.selected=b.organizations[0]),b.projectIdEnabled=1==h,i.unityApi.getUserDefault(function(d){b.projectDirectoryWithPlatformPathSeparators=c("ensurePlatformPathSeparators")(i.unity.userDefault.projectDirectory),b.showBackButton=a.unity.userDefault.showBackButtons,b.projectName=a.unity.userDefault.defaultProjectName});var t=function(a){var b=p+"/"+a,c=b+"/package.json",e=this.processedList;d.get(c).success(function(a,c){a.icon=b+"/"+a.icon,a.unityPackage&&(a.unityPackagePath=i.unity.userDefault.homeRootDirectory+"/"+b+"/"+a.unityPackage),e.push(a)}).error(function(a,b){})};_.each(b.templateList,t,{processedList:b.templates}),b.hidePicker=function(){b.packagePickerVisible=!1},b.showPicker=function(){b.packagePickerVisible=!0},b.selectProjectDirectory=function(){i.unityApi.chooseDirectory(function(a,d){b.projectDirectoryWithPlatformPathSeparators=c("ensurePlatformPathSeparators")(d),b.$apply()})},b.createProject=function(){var d=[],e=j.getUserInfo().primaryOrg;_.each(b.packages,function(a){a.selected&&d.push(a.path)});var f="true2D"===b.enable2D?"2D":"3D",k=c("ensureUnityPathSeparators")(b.projectDirectoryWithPlatformPathSeparators),l="";if(g&&h){var m={};b.enableServiceToggle&&b.organization.selected&&"__none__"!=b.organization.selected.id?(i.unityApi.setOrganizationId(b.organization.selected.id,function(a){}),m.organization=b.organization.selected.id):b.enableServiceToggle&&0===b.organizations.length?(i.unityApi.setOrganizationId(e,function(a){}),m.organization=e):i.unityApi.setOrganizationId("",function(a){}),ga("send","event","Launcher","Enable Analytics","Analytics Information On New Project",b.enableServiceToggle,m)}r.analyticsServiceToggle=b.enableServiceToggle,i.unityApi.createProject(b.projectName,k,f,d,l,function(c){if(c)switch(c.errorCode){case a.unity.createProjectResultCodes.missingProjectName:b.showInputFieldProblemPopover("#projectName","You need to enter a name for the new project");break;case a.unity.createProjectResultCodes.invalidProjectName:b.showInputFieldProblemPopover("#projectName","Project name is invalid - make sure you are not using invalid characters");break;case a.unity.createProjectResultCodes.missingPath:b.showInputFieldProblemPopover("#projectLocation","You need to select a location for the new project");break;case a.unity.createProjectResultCodes.invalidPath:b.showInputFieldProblemPopover("#projectLocation","Project path is invalid - make sure you are not using invalid characters");break;case a.unity.createProjectResultCodes.folderNotEmpty:b.showInputFieldProblemPopover("#projectName","A folder with that name already exists at that location. Please choose a different project name or location.")}})},b.orgSelected=function(a){b.organization.selected=a,b.organizations=[a].concat(_.without(k,a))},b.closeDialog=function(){a.unity.dismissDialog()},b.launchBrowserWithUrl=function(a){i.unityApi.launchBrowser(a)},b.showInputFieldProblemPopover=function(a,b){$(a).popover({placement:"bottom",trigger:"focus",content:b});var c=function(){$(a).off("hidden.bs.popover",c),$(a).popover("destroy")};$(a).on("hidden.bs.popover",c),$(a).popover("show"),$("input"+a).select()},b.handleKeyDown=function(a){switch(a.keyCode){case l:b.createProject();break;case m:i.unityApi.closeHomeWindow()}},b.toggleMoreInfo=function(){b.moreInfoVisible=!b.moreInfoVisible},b.OnItemClick=function(a){b.organization=a},b.showMissingOrgsAlert=function(){s.setWarning("Failed to load your organizations from the server. The new project will be linked to your default organization  <strong>"+j.getUserInfo().primaryOrg+"</strong>.")}}]),b.module("unity.pn-packagePicker",[]).controller("packagePicker.controller",["$scope","$http","$location","$timeout",function(a,b,c,f){a.packages.sort(function(a,b){return e(a.path)>e(b.path)?1:-1}),a.selectVerb=function(){return d(a.packages)?"deselect all":"select all"},a.toggleSelectAll=function(){var b=0===d(a.packages);_.each(a.packages,function(a){a.selected=b})}}]).filter("packageName",function(){return e}).filter("numSelected",function(){return d}),b.module("unity.pn-recentProjects",["ui.router","homeFilters"]).config(["$stateProvider",function(a){a.state("project",{url:"/project",views:{"":{templateUrl:"pn-recentProjects/recentProjects.tpl.html",controller:"recentProjects.controller"},header:{templateUrl:"pn-header/header.tpl.html",controller:"header.controller"},footer:{templateUrl:"pn-footer/footer.tpl.html",controller:"footer.controller"}},resolve:{license:["$q","editorlicense",function(a,b){var c=b.IsActivated(),d=c.then(function(b){return b.activated?b:a.reject({licensed:!1})},function(b){return a.reject({licensed:!1})});return d}]}}).state("project.recent",{url:"/recent",views:{"@":{templateUrl:"pn-recentProjects/recentProjects.tpl.html",controller:"recentProjects.controller"},"call2action@recentProjects":{templateUrl:"pn-call2action/call2action.tpl.html",controller:"call2action.controller"}},resolve:{projects:["$q","$window",function(a,b){var c=a.defer();return b.unityApi.getRecentProjects(function(a,b){var d=_.map(b,function(a){var b=a.path,c=x.getFileName(b);return{path:b,title:c,containingFolderPath:x.getContainingFolderPath(b),version:a.version,cloudEnabled:Number(a.cloudEnabled),cloudProjectId:a.cloudProjectId,organizationId:a.organizationId,projectName:a.projectName,icon_url:""}});c.resolve(d)}),c.promise}]}})}]).controller("recentProjects.controller",["$scope","$rootScope","$http","$location","$timeout","projects","authSvc","$state","collabSvc","$q","$window","$localStorage",function(b,c,d,e,f,g,h,n,o,p,q,r){function s(){return _.filter(b.cloudProjects,function(a){return!a.localProjectEntry}).length}a.unityApi.getUserDefault(function(c){b.showNewProjectButton=a.unity.userDefault.ShowNewProjectButton}),b.auth=null,b.projectFilter="",b.whitelisted=!1,b.recentProjects=g,b.cloudProjects=[],b.hoverEnabled=!0,b.selectedProjectIndex=0;var t=h.ready();t.then(function(a){if(a.workOffline||!a.online)return a;a.loggedIn||(q.unityApi.showLogin(),r.urlBeforeLogin=e.url(),n.go("login"));var d=h.getUserInfo();b.auth=a,b.whitelisted=d.valid&&d.whitelisted&&1==i,c.$on("auth.userInfo.changed",function(a,c){c.valid&&(b.whitelisted=c.whitelisted&&1==i)});var f=o.ready();f.then(function(a){var c=o.getProjects();c.then(function(a){b.cloudProjects=o.filterCloudProjects(a,g),b.cloudOnlyProjectsCount=s()},function(a){})})},function(a){q.unityApi.showLogin(),r.urlBeforeLogin=e.url(),n.go("login")});b.selectItem=function(a){b.selectedProjectIndex=a},b.changeSelection=function(a){b.hoverEnabled=!1,f(function(){b.hoverEnabled=!0},500);var c=b.selectedProjectIndex+a;b.$apply(function(){b.selectedProjectIndex=c});var d=$(".project-list"),e=$(".project-list-frame").height(),g=$(".main-content").scrollTop(),h=g+e,i=$("li:nth-child("+(c+1)+")",d),j=i.position().top,k=j+i.outerHeight(!0),l=-1;j<g?l=j:k>h&&(l=k-e),l!=-1&&$(".main-content").scrollTop(l)},b.openProject=function(b){a.unityApi.openProject(b,function(a){a&&n.go(n.current,{},{reload:!0})})},b.openDragOverProject=function(b){a.unityApi.openDragOverProject()},b.openCloudProject=function(b,c,d){a.unityApi.openCloudProject(b,c,d)},b.openRecentProjectWithIndex=function(c){a.unityApi.openProject(b.recentProjects[c].path,function(a){if(a){var b=$("#recentProject"+c);b.popover({placement:"left",trigger:"focus",container:"body",content:"Error: Project not found"}),b.popover("show"),setTimeout(function(){b.popover("destroy")},2e3)}})},b.handleKeyDown=function(c){if(c.keyCode===m)return void a.unityApi.closeHomeWindow();var d=b.recentProjects.length;if(0!==d)switch(c.keyCode){case j:b.selectedProjectIndex>0&&b.changeSelection(-1);break;case k:b.selectedProjectIndex<d-1&&b.changeSelection(1);break;case l:b.openRecentProjectWithIndex(b.selectedProjectIndex)}},b.$on("$viewContentLoaded",function(){$("project-list").select()})}]),g?b.module("unity.pn-status",[]).controller("status.controller",["$scope","$http","$location","$timeout","$window","$state","authSvc","editorlicense",function(a,b,d,e,f,g,h,i){function j(){a.show=a.checkVisibility(),a.message="",a.showConnectionMessage()||a.showLicenseMessage()||a.showMaintenanceMessage()}a.authSvc=h,a.message="Trying to connect",a.spinner=!0,a.description="",a.showWorkOffline=!1,a.showCancel=!0,a.showMoreInfo=!1,a.debounce=!0,a.show=!1,a.getShowMoreinfo=function(){return a.showMoreInfo},a.checkVisibility=function(){if(g.includes("manual")||g.includes("manage")||g.includes("license.failure")||g.includes("license.finalize"))return!1;if(a.connectInfo===c)return!0;if(!a.connectInfo.online&&!a.connectInfo.workOffline)return!0;if(g.includes("project"))return!1;if(a.licenseInfo===c)return!0;if(a.licenseInfo.error)return!1;if(a.connectInfo.ready&&a.licenseInfo.ready){if(a.licenseInfo.maintenance)return!0;if(a.connectInfo.showLoginWindow&&a.connectInfo.online)return!1;if(!a.licenseInfo.initialized||!a.licenseInfo.activated&&!a.licenseInfo.valid)return!0;if(a.connectInfo.online||a.connectInfo.workOffline)return!1}return!0},a.workOffline=function(){h.workOffline(),f.history.back()},a.go=function(a){d.path(a)},a.quit=function(){f.unityApi.closeHomeWindow(n)},a.launchBrowserWithUrl=function(a){f.unityApi.launchBrowser(a)},a.showConnectionMessage=function(){return a.connectInfo&&!a.connectInfo.ready?(a.debounce=!0,e(function(){a.debounce=!1},1e3),a.spinner=!0,a.message="Connecting",a.description=a.connectInfo.description,a.showMoreInfo=!0,a.showCancel=!0,a.showWorkOffline=!1,!0):(a.debounce=!1,a.spinner=!1,!(!a.connectInfo||a.connectInfo.online!==!1)&&(a.message="No network connection",a.description="Not to worry, you can work offline!",a.showMoreInfo=!1,a.showCancel=!1,a.showWorkOffline=!0,!0))},a.showLicenseMessage=function(){return!(!a.licenseInfo||a.licenseInfo.ready&&a.licenseInfo.initialized&&a.licenseInfo.valid||!a.connectInfo||!a.connectInfo.loggedIn)&&(a.debounce=a.licenseInfo.debounce,a.debounce&&e(function(){a.debounce=!1},1e3),a.spinner=!0,a.message=a.licenseInfo.message,a.description=a.licenseInfo.description,a.showMoreInfo=!1,a.showCancel=!0,!0)},a.showMaintenanceMessage=function(){return!(!a.licenseInfo||!a.licenseInfo.maintenance)&&(a.debounce=!0,e(function(){a.debounce=!1},1e3),a.spinner=!0,a.message="Down for maintenance",a.description="The license activation system is temporarily unavailable while we perform scheduled maintenance on our servers. We apologize for any inconvenience this necessary maintenance might cause you! The license activation system should be available again in a few minutes. Thank you for your patience.",a.showMoreInfo=!0,a.showCancel=!0,!0)},a.$watch(function(){return h.getConnectInfo()},function(b,c){b&&(a.connectInfo=b,j())},!0),a.$watch(function(){return i.getLicenseInfo()},function(b,c){b&&(a.licenseInfo=b,j())},!0),a.$watch(function(){return g.current},function(b,c){a.show=a.checkVisibility()},!0)}]):b.module("unity.pn-status",[]).controller("status.controller",["$scope","$http","$location","$timeout","authSvc",function(a,b,c,d,e){}]),b.module("unity.pn-survey",["homeFilters"]).config(["$stateProvider",function(a){a.state("license.survey",{url:"/survey",views:{"@":{templateUrl:"pn-survey/survey.tpl.html",controller:"survey.controller"}},resolve:{questions:["$q","cloudlicense","editorlicense",function(a,b,c){var d=b.GetSurveyQuestions(c.getLicenseInfo()),e=d.then(function(a){return a},function(a){return[]});return e}]}})}]).controller("survey.controller",["$scope","$filter","$http","$location","$timeout","editorlicense","cloudlicense","questions","utAlert","$sce",function(a,b,d,e,f,g,h,i,j,k){a.isSubmitting=!1,a.questions=i,a.responses=new Array(a.questions.length),a.buttons=!1;for(var n=0;n<a.questions.length;n++)a.responses[n]={};a.getWidgetUrl=function(a){return"pn-survey/widgets/"+a+".tpl.html"},a.getByIndex=function(a,b){return a[parseInt(b,10)]},a.getByName=function(a,b){return _.find(a,function(a){return a.label==b})},a.selectedOptions={},a.hasRequisites=function(b){var c=b.required_options.some(function(b){return a.selectedOptions[b]}),d=!b.required_options.length;return c||d},a.optionChanged=function(b,d,e){var f=parseInt(e)||c;f&&delete a.selectedOptions[f],a.selectedOptions[d]=b},a.closeAlert=function(a){j.clearAlert()},a.setError=function(a,b){b||(b=400),b<500?j.setError(k.trustAsHtml(a),b):j.setError(k.trustAsHtml(a),b,{showMoreInfo:!0,linkUrl:"http://status.cloud.unity3d.com",linkHandler:$window.unityApi.launchBrowser})},a.submitSurvey=function(b){a.isSubmitting=!0,a.closeAlert();var c=b?[]:a.compoundSurveyAnswers();h.SubmitSurvey(c,g.getLicenseInfo()).success(function(a,b){e.path("/license/finalize")}).error(function(b){a.setError("Survey was not accepted. Reason: "+b.msg,{showMoreInfo:!0,linkUrl:"http://status.cloud.unity3d.com",linkHandler:$window.unityApi.launchBrowser}),f(function(){e.path("/license/failure")},2e3)}).finally(function(){a.isSubmitting=!1})},a.compoundSurveyAnswers=function(){var b={};return _.each(a.questions,function(c){var d=a.getQuestionAnswer(c);d&&(b[c.id]=d)}),b},a.getQuestionAnswer=function(a){if("checkbox"==a.widget){var b={},c=!1;return _.each(a.options,function(a){a.checked&&(a.value&&(b.freetext=a.value),b[a.id]=a.id.toString(),c=!0)}),c?b:null}if("country"==a.widget){var d=_.find(a.options,function(b){return b.id==a.selected}),e={country:"",state:"",province:"",cn_province:""};return d&&(e.country=d.label),e}if("number"==a.widget||"string"==a.widget||"select"==a.widget)return a.value;if("radio"==a.widget&&a.selected){var f={0:a.selected.toString()};return a.value&&(f.freetext=a.value),f}return null},a.countrySelected=function(a,b){1==a.regions.length?b.selected=a.regions[0].id:b.selected&&delete b.selected},a.regionSelected=function(a,b){b.selected=a.id},a.handleKeyDown=function(a){switch(a.keyCode){case l:a.preventDefault();break;case m:a.preventDefault()}},a.showButtons=function(){f(function(){a.buttons=!0},100)},a.getRegionPrompt=function(a){if(!a.regionTypes||0===a.regionTypes.length)return"region";var b=a.regionTypes[0];a.regionTypes.length>1&&(b=b+" or "+a.regionTypes[1]);for(var c=2;c<a.regionTypes.length;c++)b=a.regionTypes[c]+", "+b;return b},a.$watch(function(){return g.getLicenseInfo()},function(b,c){b&&(a.licenseInfo=b)},!0)}]),g?b.module("unity.services.auth",["unity.services.config","unity.services.cookie","angular-loading-bar"]).factory("authSvc",["$http","$q","$window","$location","$interval","$rootScope","configSvc","cookieSvc","cfpLoadingBar",function(b,c,d,e,f,g,h,i,j){function k(d,e,f){var g=c.defer();return h.getConfigUrl(q).success(function(h){var i=h+"/api/login",j={grant_type:"password",username:d,password:e},k={headers:{"Content-Type":"application/json"}};b.post(i,j,k).success(function(e,j,k,l){var m=e.refresh_token,n=e.access_token,o=e.expires_in;l={headers:{AUTHORIZATION:"Bearer "+n,"Content-Type":"application/json"}},i=h+"/api/users/me",b.get(i,l).success(function(b,e,h,i){var j=b.name,k=b.foreign_key,l=b.primary_org;return l?(a.unityApi.loginSuccess(k,d,m,n,o,f,j,l),y=!1,x=c.defer(),void g.resolve()):void g.reject("invalid primary_org")}).error(function(a,b,c,d){g.reject(b)})}).error(function(a,b,c,d){g.reject({code:b,error:a})})}).error(function(a){g.reject(a)}),g.promise}function l(){var a=c.defer();return v.loggedIn||a.reject(403),i.getCookie("organizationsWithRoles").success(function(b){var c=JSON.parse(decodeURIComponent(b));a.resolve(c)}).error(function(c){h.getConfigUrl(q).success(function(c){var d=c+"/api/users/me?include=orgs",e={headers:{AUTHORIZATION:"Bearer "+u.accessToken,"Content-Type":"application/json"}};b.get(d,e).success(function(b,c,d,e){w=b.orgs;var f=new Date;f.setFullYear(f.getDate()+1),i.addCookie("organizationsWithRoles",w,f),a.resolve(w)}).error(function(b,c,d,e){a.reject(c)})}).error(function(b){a.reject(b)})}),a.promise}function m(){var a=c.defer();return v.loggedIn||a.reject(403),h.getConfigUrl(q).success(function(c){var d=c+"/api/orgs",e={headers:{AUTHORIZATION:"Bearer "+u.accessToken,"Content-Type":"application/json"}};b.get(d,e).success(function(b,c,d,e){w=b.orgs;var f=new Date;f.setFullYear(f.getFullYear()+1),i.addCookie("organizationsWithRoles",w,f),a.resolve(w)}).error(function(b,c,d,e){a.reject(c)})}).error(function(b){a.reject(b)}),a.promise}function n(){a.unityApi.logout(),y=!1,x=c.defer()}function o(){a.unityApi.workOffline(),y=!1,x=c.defer()}function p(){return u}function r(){return v}function s(){d.unityApi.getConnectInfo(function(a,b){var c=JSON.parse(b);v!=c&&(v=c,d.unityApi.getUserInfo(function(a,b){var c=JSON.stringify(u)!==b;u=JSON.parse(b),c&&g.$broadcast("auth.userInfo.changed",u)}))})}function t(){var a=0,b=0;if(y)return c.when(v);var e=function(){j.start(),b=3*Math.random()/100,a+=b,j.set(a),d.unityApi.getConnectInfo(function(b,c){v=JSON.parse(c),j.complete(),v.ready&&(j.start(),j.set(a),f.cancel(h),d.unityApi.getUserInfo(function(a,b){j.complete();var c=JSON.stringify(u)!==b;u=JSON.parse(b),c&&g.$broadcast("auth.userInfo.changed",u),y=!0,x.resolve(v),f(s,100)}))})},h=f(e,50);return e(),x.promise}var u,v,w,x=c.defer(),y=!1,z="Trying to connect";return t(),{message:z,ready:t,login:k,logout:n,workOffline:o,getUserInfo:p,getConnectInfo:r,getOrganizations:l,refreshOrganizations:m}}]):b.module("unity.services.auth",["unity.services.config"]).factory("authSvc",["$http","$q","$window","$location","configSvc","$interval",function(a,b,c,d,e,f){}]),b.module("unity.services.cloudlicense",[]).factory("cloudlicense",["$q","$window","$http","authSvc","configSvc",function(a,b,d,e,f){function g(b){var c=a.defer();return b.ready=!1,b.message="Retrieving Survey",f.getConfigUrl(s).success(function(a){d.get(a+"/api/surveys/current").success(function(a,b,d,e){j(a.questions),c.resolve(a.questions)}).error(function(a,b,d,e){c.reject(b)}).finally(function(){b.ready=!0})}),c.promise}function h(a){var b=iso3166.country(a).name;return b===c&&(b=iso3166.subdivision(a).countryName),b}function i(a){return iso3166.subdivision(a).name}function j(a){_.each(a,function(a){if("country"==a.widget){var b={};a.countries=[],_.each(a.options,function(d){var e=h(d.label);if(b[e]===c)b[e]=a.countries.length,a.countries.push({name:e,regions:[],regionTypes:[]});else{var f=iso3166.subdivision(d.label).type;a.countries[b[e]].regionTypes.indexOf(f)==-1&&a.countries[b[e]].regionTypes.push(f)}var g=i(d.label);a.countries[b[e]].regions.push({id:d.id,name:g})})}})}function k(c,g,h){var i,j=a.defer();"serial"==c?i={transaction:{serial:{type:"serial_number",serial_number:g}}}:"personal"==c&&(i={transaction:{serial:{type:"personal"}}});var k=e.getUserInfo(),l={headers:{AUTHORIZATION:"Bearer "+k.accessToken,"Content-Type":"application/json"}};return f.getConfigUrl(s).success(function(a){d.put(a+"/api/transactions/"+h.transactionId,i,l).success(function(a,b,d,e){h.type=c,h.serial=g,h.survey=a.transaction.survey,j.resolve({isValid:!0},b)}).error(function(a,c,d,e){console.error("ValidateLicense transaction error:",a,c,d,JSON.stringify(e)),b.unityApi.refreshLicense(),j.reject(c)})}),j.promise}function l(b,c){var g=a.defer();if(n.test(b)===!1)g.resolve({isValid:!1},400);else{var h={transaction:{serial:{type:"serial_number",serial_number:b}}},i=e.getUserInfo(),j={headers:{AUTHORIZATION:"Bearer "+i.accessToken,"Content-Type":"application/json"}};f.getConfigUrl(s).success(function(a){d.put(a+"/api/transactions/"+c.transactionId,h,j).success(function(a,b,c,d){g.resolve({isValid:!0},200)}).error(function(a,b,c,d){a&&a.full_messages?g.reject({status:b,msg:a.full_messages+". Please contact support@unity3d.com for more information."}):422==b?g.reject({status:b,msg:"Your serial number is not valid. Please contact support@unity3d.com for more information."}):g.reject({status:b,msg:"License server return unknown error. Please contact support@unity3d.com for more information."})})})}return g.promise}function m(g,h){var i,j=!g||0===g.length,k=a.defer();"serial"==h.type?i={transaction:{serial:{type:"serial_number",serial_number:h.serial}}}:"personal"==h.type&&(i={transaction:{serial:{type:"personal"}}}),j?i.transaction.survey_answer={skipped:!0}:i.transaction.survey_answer={skipped:j,answers:g};var l=e.getUserInfo(),m={headers:{AUTHORIZATION:"Bearer "+l.accessToken,"Content-Type":"application/json"}};return f.getConfigUrl(s).success(function(a){d.put(a+"/api/transactions/"+h.transactionId,i,m).success(function(a,d,e,f){return h.answers=g,a.transaction.rx===c?(console.error("submit survey put transaction response missing rx_id:",JSON.stringify(a),d,e,f),void k.reject({status:d,msg:"Something went wrong, please contact support@unity3d.com."})):(h.rx=a.transaction.rx,h.survey=a.transaction.survey,void b.unityApi.setActivationId(h.rx,function(){k.resolve({isValid:!0},d)}))}).error(function(a,b,c,d){console.error("SubmitSurvey transaction error:",a,b,c,JSON.stringify(d)),b>0&&b<500?k.reject({status:b,msg:a.errors.survey_answer[0]}):k.reject({status:b,msg:"Service unavailable, please try again later."})})}),k.promise}var n=/^[a-z0-9]{2}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{4}$/i;return{GetSurveyQuestions:g,ValidateLicense:k,ValidateSerial:l,SubmitSurvey:m}}]),b.module("unity.services.cloudlicense").factory("httpErrorConfigs",["defaultHttpErrors","unityAlertService",function(a,b){return{GetProjectMembers:a.extendClone({400:"You do not have permissions for this project.",403:"You do not have permissions for this project."}),SetMemberRole:a.extendClone({422:"Could not change member role. Role already set.",404:"Could not change member role. Member no longer exists.","500-599":"Unable to change member role."}),InviteMember:a.extendClone({403:"You do not have permissions to invite members to this project.",422:"Could not invite member. User already exists.",404:"Unable to invite member. User may not be registered.","400-499":"Unable to invite member. User may not be registered.","500-599":"Unable to invite member. User may not be registered."}),RemoveProjectMember:a.extendClone({400:"You do not have permissions to remove members from this project.",403:"You do not have permissions to remove members from this project.",404:"Could not remove user. User no longer exists.","400-499":"Unable to remove user.","500-599":"Unable to remove user."}),RenameProject:a.extendClone({400:"You do not have permissions to modify project settings.",403:"You do not have permissions to modify project settings.",422:"Project name already taken.","400-499":"Unable to rename project.","500-599":"Unable to rename project."}),MoveProject:a.extendClone({400:"You do not have permissions to modify project settings.",403:"You do not have permissions to modify project settings.",422:"Project name already taken in new organization.","400-499":"Unable to move project.",500:{message:"",handler:function(a,c){var d="Service unavailable. Internal server error.";a.data&&a.data.detail&&a.data.detail.match(/duplicate/i).length&&(d="Project name already exists in new organization."),b.setError(d)}},"500-599":"Unable to move project."}),EnableProject:a.extendClone({403:"You do not have permissions to create projects in this organization.",unknown:{message:"",handler:function(a,c){var d=a.message;d?b.setError("Project enabling failed with error: ["+d+"] while enabling organization."):b.setError("Project enabling failed with status: "+a.status)}}})}}]).factory("errorHandlerInterface",["$q","unityAlertService","defaultHttpErrors","MessageGroup","toArray","httpErrorConfigs",function(a,d,e,f,g,h){function i(a,c,d){c=c||new f;var e=c.getErrorConfig(a)||d.getErrorConfig(a);e.handler=e.handler||b.noop,e.handler=g(e.handler);var h=c.all||d.all;return h&&e.handler.push(h.handler),e}return function(b,f){var g=h[b.method]||e;return{handleErrors:function(e){return f.error(function(f){var h;f&&f.status!==c&&(h=f.status||f);var j=i(h,e,g);return j&&(j.message&&d.setError(j.message),j.handler.forEach(function(a){a(f,b)})),a.reject(f)})}}}}]),b.module("unity.services.cloudlicense").factory("cloudlicenseUi",["errorHandlerInterface","cloudcore","ucPromise",function(a,b,c){var d={},e=_.keys(b);e.map(function(e){var f=b[e];d[e]=function(){var d=f.apply(b,arguments);d=c.decoratePromise(a.bind(this,{method:e}),d);var g=d.handleErrors();return g}});return d}]),g?b.module("unity.services.collab",["unity.services.config","unity.services.auth"]).factory("collabSvc",["$http","$q","$window","$interval","configSvc","authSvc",function(a,b,c,d,e,f){function g(){var d=b.defer(),f=!1;
if(k.loggedIn||(console.log("not logged in:",l),d.reject(403),f=!0),c.sessionStorage.cloudProjects)try{j=JSON.parse(c.sessionStorage.cloudProjects),j&&(d.resolve(j),f=!0)}catch(g){c.sessionStorage.cloudProjects=null}return f||e.getConfigUrl(q).success(function(b){var e=b+"/api/projects",f={headers:{AUTHORIZATION:"Bearer "+l.accessToken,"Content-Type":"application/json"}};a.get(e,f).success(function(a,b,e,f){j=a.projects,c.sessionStorage.cloudProjects=JSON.stringify(j),d.resolve(j)}).error(function(a,b,c,e){d.reject(b)}).finally(function(){})}).error(function(a){d.reject(a)}),d.promise}function h(a,b){var c=[];return _.each(a,function(a){if(!a.archived&&a.active&&a.service_flags.hasOwnProperty("collab")&&a.service_flags.collab){var d=_.find(b,function(b){return b.cloudProjectId==a.guid}),e=a.name;c.push({path:"",title:e,containingFolderPath:"",version:"",cloudEnabled:1,cloudProjectId:a.guid,organizationId:a.org_id,org_foreign_key:a.org_foreign_key,projectId:a.id,projectName:a.name,icon_url:a.icon_url,localProjectEntry:d})}}),c}function i(){var a=f.ready(),c=a.then(function(a){return k=a,!k.workOffline&&k.online&&k.loggedIn?(l=f.getUserInfo(),{ready:!0}):b.reject({authenticated:!1})},function(a){return b.reject({authenticated:!1})});return c}var j,k,l;return i(),{ready:i,getProjects:g,filterCloudProjects:h}}]):b.module("unity.services.collab",["unity.services.config"]).factory("collabSvc",["$http","$q","$window","$interval","configSvc",function(a,b,c,d,e){}]);var q=0,r=1,s=4,t=7;g?b.module("unity.services.config",[]).factory("configSvc",["$q","$window",function(a,b){function c(){var c=a.defer();return b.unityApi.getLoginURL(function(a,b){a?c.reject(404):c.resolve(b)}),c.promise}function d(c){var d=a.defer();return b.unityApi.getConfigUrl(c,function(a,b){b?d.resolve(b):d.reject(a)}),d.promise}function e(){var c=a.defer();return b.unityApi.getEnvironment(function(a,b){a?c.reject(a):c.resolve(b)}),c.promise}return g?{getLoginURL:c,getConfigUrl:d,getEnvironment:e}:{}}]):b.module("unity.services.config",[]).factory("configSvc",["$q",function(a){}]),g?b.module("unity.services.cookie",[]).factory("cookieSvc",["$q","$window",function(a,b){function c(a,c,d){var e=d.getFullYear()+"/"+(d.getMonth()+1)+"/"+d.getDate();"string"==typeof c||c instanceof String?b.unityApi.addCookie(a,encodeURIComponent(c),e):b.unityApi.addCookie(a,encodeURIComponent(JSON.stringify(c)),e)}function d(c){var d=a.defer();return b.unityApi.getCookie(c,function(a,b){b?d.resolve(b):d.reject(a)}),d.promise}return g?{addCookie:c,getCookie:d}:{}}]):b.module("unity.services.cookie",[]).factory("cookieSvc",["$q",function(a){}]),g?b.module("unity.services.editorlicense",[]).factory("editorlicense",["$q","$window","$location","$timeout","$interval","$log","authSvc","configSvc","cfpLoadingBar",function(a,b,d,e,f,g,h,i,j){function k(){return A}function l(){C&&b.unityApi.getLicenseInfo(function(a,c){var d=JSON.parse(c);jQuery.extend(!0,A,d),b.sessionStorage.licenseInfo=JSON.stringify(A)})}function m(){if(C)return a.when(A);var c=function(){A.ready=!1,b.unityApi.getLicenseInfo(function(a,b){var c=JSON.parse(b);jQuery.extend(!0,A,c),A.floating?(A.message="Renewing floating license",A.description="Unity is renewing your license authorization – stay tuned!"):(A.message="Checking license",A.description="Unity is checking your license authorization – stay tuned!"),A.initialized&&(f.cancel(d),A.ready=!0,A.error?B.reject({licenseError:!0}):(B.resolve(A),C===!1&&(C=!0,f(l,500))))})},d=f(c,50);return c(),B.promise}function n(){var c=0,d=0;if(A.activated)return a.when(A);A.message="Activation",A.description="Almost there!";var g=e(function(){k&&f.cancel(k),D.reject({licenseError:!0})},2e4),i=function(){j.start(),d=3*Math.random()/100,c+=d,j.set(c);var a=h.getConnectInfo();a&&a.online===!1?(f.cancel(k),e.cancel(g),j.complete(),D.resolve(A)):b.unityApi.getLicenseInfo(function(a,b){var c=JSON.parse(b);jQuery.extend(!0,A,c),A.activated&&A.valid&&(f.cancel(k),e.cancel(g),A.ready=!0,j.complete(),D.resolve(A))})};i();var k=f(i,50);return D.promise}function o(){var c=0,d=0,g=a.defer(),i=e(function(){l&&f.cancel(l),g.reject({licenseError:!0,lastErrorMsg:"Failed to connect to license server, License server request timeout."})},2e4),k=function(){j.start(),d=3*Math.random()/100,c+=d,j.set(c);var a=h.getConnectInfo();a&&a.online===!1?(f.cancel(l),e.cancel(i),j.complete(),g.resolve(A)):b.unityApi.getLicenseInfo(function(a,b){var c=JSON.parse(b);jQuery.extend(!0,A,c),A.updated&&A.valid?(f.cancel(l),e.cancel(i),j.complete(),g.resolve(A)):A.error&&(f.cancel(l),e.cancel(i),j.complete(),g.reject(A))})};k();var l=f(k,50);return g.promise}function p(){var c=0,d=0,g=a.defer(),i=e(function(){l&&f.cancel(l),g.reject({licenseError:!0})},2e4),k=function(){j.start(),d=3*Math.random()/100,c+=d,j.set(c);var a=h.getConnectInfo();a&&a.online===!1?(A.ready=!0,f.cancel(l),e.cancel(i),j.complete(),g.resolve(A)):b.unityApi.getLicenseInfo(function(a,b){var c=JSON.parse(b);jQuery.extend(!0,A,c),A.returned&&A.valid?(f.cancel(l),e.cancel(i),j.complete(),g.resolve(A)):A.error&&(f.cancel(l),e.cancel(i),j.complete(),g.reject(A))})};k();var l=f(k,50);return g.promise}function q(){var c=0,d=0,g=a.defer();if(A.initialized&&!A.error)return a.when(A);var h=e(function(){i&&f.cancel(i),g.reject({licenseError:!0})},2e4),i=f(function(){A.floating&&(A.message="Requesting floating license",A.description="Unity is requesting your license authorization – stay tuned!",j.start(),d=Math.random()/100,c+=d,j.set(c)),b.unityApi.getLicenseInfo(function(a,b){var c=JSON.parse(b);jQuery.extend(!0,A,c),A.floating?A.error?(f.cancel(i),e.cancel(h),j.complete(),g.reject({licenseError:!0})):A.activated&&A.initialized&&(f.cancel(i),e.cancel(h),j.complete(),g.resolve(A)):(A.initialized||A.maintenance||A.error)&&(f.cancel(i),e.cancel(h),A.error?g.reject({licenseError:!0}):g.resolve(A))})},50);return g.promise}function r(){var c=.5,d=0,g=a.defer();A.message="Checking license",A.description="Unity is checking your license authorization – stay tuned!";var h=e(function(){k&&f.cancel(k),g.reject({licenseError:!0})},2e4),i=function(){j.start(),d=4*Math.random()/100,c+=d,j.set(c),b.unityApi.getLicenseInfo(function(a,b){var c=JSON.parse(b);jQuery.extend(!0,A,c),(A.valid||A.maintenance||A.error)&&(f.cancel(k),e.cancel(h),j.complete(),A.error?g.reject({licenseError:!0}):g.resolve(A))})},k=f(i,200);return i(),g.promise}function s(){A.renew=!0,b.unityApi.activateNewLicense()}function t(){var d=a.defer();return A.ready=!1,A.message="Updating license",A.description="",b.unityApi.refreshLicense(function(a,b){a===c?(A.ready=!0,d.resolve(b)):d.reject(a)}),d.promise}function u(){var c=a.defer();A.ready=!1,A.message="Returning license",A.description="",b.unityApi.returnLicense();var d=f(function(){b.unityApi.getLicenseInfo(function(a,b){var e=JSON.parse(b);jQuery.extend(!0,A,e),A.activated?(null!=a||A.error)&&(f.cancel(d),c.reject(a)):(A.ready=!0,f.cancel(d),c.resolve(A))})},50);return c.promise}function v(){var d=a.defer();return A.ready=!1,A.message="Loading license",A.description="",b.unityApi.loadLicense(function(a,b){a===c?(A.ready=!0,d.resolve(b)):d.reject(a)}),d.promise}function w(){var d=a.defer();return A.ready=!1,A.message="Saving offline license request",A.description="",b.unityApi.saveLicense(function(a,b){a===c?(A.ready=!0,d.resolve(b)):d.reject(a)}),d.promise}function x(){var c=a.defer();return b.unityApi.newActivation(function(a,b){c.resolve()}),c.promise}function y(){var c=a.defer();return b.unityApi.clearErrors(function(){c.resolve()}),c.promise}function z(c){var d=a.defer();return b.unityApi.mustExitOnClose(c,function(){d.resolve()}),d.promise}var A={renew:!1,debounce:!0},B=(new X2JS,a.defer()),C=!1,D=a.defer();return m(),{ready:m,IsActivated:q,getLicenseInfo:k,WaitForActivation:n,ActivateNewLicense:s,RefreshLicense:t,ReturnLicense:u,LoadLicense:v,SaveLicense:w,NewActivation:x,ClearErrors:y,WaitForUpdatedLicense:o,WaitForReturnedLicense:p,MustExitOnClose:z,GetTransactionId:r}}]):b.module("unity.services.editorlicense",[]).factory("editorlicense",["$q","$window","$location","authSvc",function(a,b,c,d){return{}}]),g?b.module("unity.services.http",[]).factory("httpSvc",["$rootScope","$q",function(a,b){return{request:function(a){return a.timeout=2e4,a}}}]):b.module("unity.services.http",[]).factory("httpSvc",["$rootScope","$q",function(a,b){return{}}]),g?b.module("unity.services.url",["unity.services.config","unity.services.auth"]).factory("urlSvc",["$q","$window","configSvc","authSvc",function(a,b,c,d){function e(b){var e,f=a.defer(),g=function(a){if("object"==typeof b){var c=b;b=c.production,c.hasOwnProperty(a)&&(b=c[a])}if(!b)return"";b=b.replace(/%%ENV%%/g,a);var e=d.getUserInfo();b=b.replace(/%%ACCESS_TOKEN%%/g,e.accessToken),b=b.replace(/%%USER_NAME%%/g,e.userName),f.resolve(b)};return c.getEnvironment().success(function(a){e=a,g(e)}).error(function(a){f.reject(a)}),f.promise}function f(c){var d=a.defer();return e(c).success(function(a){b.unityApi.launchBrowserWithAuthorizedUrl(a),d.resolve()}).error(function(a){d.reject(a)}),d.promise}return g?{openBrowser:f,replaceUrlTokens:e}:{}}]):b.module("unity.services.url",[]).factory("urlSvc",["$q",function(a){}]),g?b.module("unity.services.whitelist",["unity.services.config","unity.services.auth"]).factory("whitelistSvc",["$http","$q","configSvc","authSvc",function(a,b,c,d){function e(e){var f=b.defer();if(!e||0===e.length)return f.resolve([]),f.promise;var g=d.getConnectInfo();if(!g.loggedIn)return f.reject(403),f.promise;orglist="",_.each(e,function(a){0!==orglist.length&&(orglist+=","),orglist+=a});var h=d.getUserInfo();return c.getConfigUrl(r).success(function(b){var c=b+"/api/whitelist/collab/"+orglist,d={headers:{AUTHORIZATION:"Bearer "+h.accessToken,"Content-Type":"application/json"}};a.get(c,d).success(function(a,b,c,d){f.resolve(a.allowed)}).error(function(a,b,c,d){f.reject(b)})}),f.promise}return{areWhitelisted:e}}]):b.module("unity.services.whitelist",["unity.services.config","unity.services.auth"]).factory("whitelistSvc",["$http","$q","configSvc","authSvc",function(a,b,c,d){}]);var u=!0,v=!1,w=navigator.userAgent;a.unity===c&&(a.unity={},v=w.indexOf("rv:20.0) Gecko/20.0a1/")==-1),a.unity.userDefault={},a.unityApi={},a.unityApi.getUserDefault=function(b){v?a.unityAsync({className:"HomeWindow",funcName:"getUserDefault",onSuccess:function(d){var e=decodeURIComponent(d);fixBackslash=e.replace(/\\/g,"\\\\"),a.unity.userDefault=JSON.parse(fixBackslash),b!==c&&b(c,a.unity.userDefault)},onFailure:function(a,c){b&&b(a,c)}}):(a.unity.userDefault=a.unity.getUserDefault(),b!==c&&b(c,a.unity.userDefault))},a.unityApi.getUserDefault(),a.unityApi.getPackageList=function(b){v?a.unityAsync({className:"HomeWindow",funcName:"packageList",onSuccess:function(a){b!==c&&b(c,JSON.parse(a))},onFailure:function(a,c){b&&b(a,c)}}):b!==c&&b(c,a.unity.packageList)},a.unityApi.chooseDirectory=function(b){v?a.unityAsync({className:"HomeWindow",funcName:"chooseDirectory",onSuccess:function(a){a&&b!==c&&b(c,a)},onFailure:function(a,c){b&&b(a,c)}}):b!==c&&b(c,a.unity.chooseDirectory())},a.unityApi.createProject=function(b,d,e,f,g,h){if(v)a.unityAsync({className:"HomeWindow",funcName:"createProject",funcArgs:[b,d,e,f,g],onSuccess:function(a){h!==c&&h(c)},onFailure:function(a,b){h&&h({errorCode:a,message:b})}});else{var i=a.unity.createProject(b,d,e,f,g);h!==c&&h(i?c:"error")}},a.unityApi.getRecentProjects=function(b){v?a.unityAsync({className:"HomeWindow",funcName:"getRecentProjects",onSuccess:function(a){var d=JSON.parse(a);b!==c&&b(c,d)},onFailure:function(a,c){b&&b(a,c)}}):b&&b(c,a.unity.recentProjects)},a.unityApi.openDragOverProject=function(b){v?a.unityAsync({className:"HomeWindow",funcName:"openDragOverProject",onSuccess:function(a){var d=JSON.parse(a);b!==c&&b(c,d)},onFailure:function(a,c){b&&b(a,c)}}):(a.unity.openDragOverProject(),b&&b(c))},a.unityApi.showOpenOtherDialog=function(b,d){v?a.unityAsync({className:"HomeWindow",funcName:"showOpenOtherDialog",onSuccess:function(a){d&&d(c,a)},onFailure:function(a,b){d&&d(a,b)}}):(a.unity.showOpenOtherDialog(),d!==c&&d(c))},a.unityApi.openProject=function(b,d){v?a.unityAsync({className:"HomeWindow",funcName:"openProject",funcArgs:[b],onSuccess:function(a){d&&d(c,a)},onFailure:function(a,b){d&&d(a,b)}}):(a.unity.openProject(a_projectPath),d&&d(c))},a.unityApi.openCloudProject=function(b,d,e,f){v?a.unityAsync({className:"HomeWindow",funcName:"openCloudProject",funcArgs:[b,d,e],onSuccess:function(a){f&&f(c,a)},onFailure:function(a,b){f&&f(a,b)}}):f&&f("1","function openCloudProject exist only when running CEF")},a.unityApi.setHasDismissed50WelcomeAlert=function(b,d){v?a.unityAsync({className:"HomeWindow",funcName:"setHasDismissed50WelcomeAlert",funcArgs:[b],onSuccess:function(a){d!==c&&d(c,a)},onFailure:function(a,b){d&&d(a,b)}}):(a.unity.setHasDismissed50WelcomeAlert(!0),d!==c&&d(c))},a.unityApi.getHasDismissed50WelcomeAlert=function(b){v?a.unityAsync({className:"HomeWindow",funcName:"getHasDismissed50WelcomeAlert",onSuccess:function(a){b!==c&&b(c,"true"==a)},onFailure:function(a,c){b&&b(a,c)}}):b&&b(c,a.unity.getHasDismissed50WelcomeAlert())},a.unityApi.launchBrowser=function(b,d){v?a.unityAsync({className:"HomeWindow",funcName:"launchBrowserWithUrl",funcArgs:[b],onSuccess:function(a){d!==c&&d(c,a)},onFailure:function(a,b){d&&d(a,b)}}):(a.unity.launchBrowser(b),d!==c&&d(c))},g&&(a.unityApi.loginSuccess=function(b,d,e,f,g,h,i,j,k){v?a.unityAsync({className:"HomeWindow",funcName:"loginSuccess",funcArgs:[b,d,e,f,g,h,i,j],onSuccess:function(a){k!==c&&k(c,a)},onFailure:function(a,b){k&&k(a,b)}}):(a.unity.loginSuccess(b,d,e,f,g,h,i,j),k!==c&&k(c))},a.unityApi.getLoginURL=function(b){v?a.unityAsync({className:"HomeWindow",funcName:"getLoginURL",funcArgs:[],onSuccess:function(a){b!==c&&b(c,a)},onFailure:function(a,c){b&&b(a,c)}}):b!==c&&b(c,a.unity.getLoginURL())},a.unityApi.getEnvironment=function(b){v?a.unityAsync({className:"HomeWindow",funcName:"getEnvironment",funcArgs:[],onSuccess:function(a){b!==c&&b(c,a)},onFailure:function(a,c){b&&b(a,c)}}):b!==c&&b(c,a.unity.getEnvironment())},a.unityApi.launchBrowserWithAuthorizedUrl=function(b,d){v?a.unityAsync({className:"HomeWindow",funcName:"launchBrowserWithAuthorizedUrl",funcArgs:[b],onSuccess:function(a){d!==c&&d(c,a)},onFailure:function(a,b){d&&d(a,b)}}):d!==c&&d(c,a.unity.launchBrowserWithAuthorizedUrl(b))}),a.unityApi.closeHomeWindow=function(b,d){v?a.unityAsync({className:"HomeWindow",funcName:"closeHomeWindow",funcArgs:[b],onSuccess:function(a){d!==c&&d(c,a)},onFailure:function(a,b){d&&d(a,b)}}):(a.unity.close(),d!==c&&d(c))},a.unityApi.mustExitOnClose=function(b,d){v?a.unityAsync({className:"HomeWindow",funcName:"mustExitOnClose",funcArgs:[b],onSuccess:function(a){d!==c&&d(c,a)},onFailure:function(a,b){d&&d(a,b)}}):(a.unity.mustExitOnclose(b),d!==c&&d(c))},g&&(a.unityApi.online=function(b){v?a.unityAsync({className:"UnityConnect",funcName:"online",funcArgs:[],onSuccess:function(a){b!==c&&b(c,JSON.parse(a))},onFailure:function(a,c){b&&b(a,c)}}):b!==c&&b(c,a.unity.online())},a.unityApi.getConfigUrl=function(b,d){v?a.unityAsync({className:"UnityConnect",funcName:"getConfigUrl",funcArgs:[b],onSuccess:function(a){d!==c&&d(c,a)},onFailure:function(a,b){d&&d(a,b)}}):d!==c&&d(c,a.unity.getConfigUrl())},a.unityApi.logout=function(b){v?a.unityAsync({className:"UnityConnect",funcName:"logout",funcArgs:[],onSuccess:function(d){b!==c&&(b(c,JSON.parse(d)),a.sessionStorage.cloudProjects=c)},onFailure:function(a,c){b&&b(a,c)}}):b!==c&&(b(c,a.unity.logout()),a.sessionStorage.cloudProjects=c)},a.unityApi.loggedIn=function(b){v?a.unityAsync({className:"UnityConnect",funcName:"loggedIn",funcArgs:[],onSuccess:function(a){b!==c&&b(c,JSON.parse(a))},onFailure:function(a,c){b&&b(a,c)}}):b!==c&&b(c,a.unity.loggedIn())},a.unityApi.getUserName=function(b){v?a.unityAsync({className:"UnityConnect",funcName:"getUserName",funcArgs:[],onSuccess:function(a){b!==c&&b(c,a)},onFailure:function(a,c){b&&b(a,c)}}):b!==c&&b(c,a.unity.getUserName())},a.unityApi.getAccessToken=function(b){v?a.unityAsync({className:"UnityConnect",funcName:"getAccessToken",funcArgs:[],onSuccess:function(a){b!==c&&b(c,a)},onFailure:function(a,c){b&&b(a,c)}}):b!==c&&b(c,a.unity.getAccessToken())},a.unityApi.workOffline=function(b){v?a.unityAsync({className:"UnityConnect",funcName:"workOffline",funcArgs:[],onSuccess:function(a){b!==c&&b(c)},onFailure:function(a,c){b&&b(a,c)}}):b!==c&&b(c,a.unity.workOffline())},a.unityApi.requestProject=function(b,d,e,f){v?a.unityAsync({className:"UnityConnect",funcName:"requestProject",funcArgs:[b,d,e],onSuccess:function(a){f!==c&&f(c,a)},onFailure:function(a,b){f&&f(a,b)}}):f!==c&&f(c,a.unity.requestProject(b,d,e))},a.unityApi.projectValid=function(b){v?a.unityAsync({className:"UnityConnect",funcName:"projectValid",funcArgs:[],onSuccess:function(a){b!==c&&b(c,JSON.parse(a))},onFailure:function(a,c){b&&b(a,c)}}):b!==c&&b(c,a.unity.projectValid())},a.unityApi.getProjectId=function(b){v?a.unityAsync({className:"UnityConnect",funcName:"getProjectId",funcArgs:[],onSuccess:function(a){b!==c&&b(c,a)},onFailure:function(a,c){b&&b(a,c)}}):b!==c&&b(c,a.unity.getProjectId())},a.unityApi.getOrganizationId=function(b){v?a.unityAsync({className:"UnityConnect",funcName:"getOrganizationId",funcArgs:[],onSuccess:function(a){b!==c&&b(c,a)},onFailure:function(a,c){b&&b(a,c)}}):b!==c&&b(c,a.unity.getOrganizationId())},a.unityApi.setOrganizationId=function(b,d){v?a.unityAsync({className:"UnityConnect",funcName:"setOrganizationId",funcArgs:[b],onSuccess:function(a){d!==c&&d(c,a)},onFailure:function(a,b){d&&d(a,b)}}):d!==c&&d(c,a.unity.setOrganizationId(b))},a.unityApi.getUserInfo=function(b){if(v)a.unityAsync({className:"UnityConnect",funcName:"getUserInfo",onSuccess:function(a){b&&b(c,a)},onFailure:function(a,c){b&&b(a,c)}});else{var d=a.unity.getUserInfo();b!==c&&b(c,d)}},a.unityApi.getConnectInfo=function(b){if(v)a.unityAsync({className:"UnityConnect",funcName:"getConnectInfo",onSuccess:function(a){b&&b(c,a)},onFailure:function(a,c){b&&b(a,c)}});else{var d=a.unity.getConnectInfo();b!==c&&b(c,d)}},a.unityApi.showLogin=function(b){if(v)a.unityAsync({className:"UnityConnect",funcName:"showLogin",onSuccess:function(a){b&&b(c,a)},onFailure:function(a,c){b&&b(a,c)}});else{var d=a.unity.showLogin();b!==c&&b(c,d)}},a.unityApi.addCookie=function(b,d,e,f){if(v)a.unityAsync({className:"UnityConnect",funcName:"addCookie",funcArgs:[b,d,e],onSuccess:function(a){f&&f(c,a)},onFailure:function(a,b){f&&f(a,b)}});else{var g=a.unity.addCookie(b,d,e);f!==c&&f(c,g)}},a.unityApi.getCookie=function(b,d){if(v)a.unityAsync({className:"UnityConnect",funcName:"getCookie",funcArgs:[b],onSuccess:function(a){d&&d(c,a)},onFailure:function(a,b){d&&d(a,b)}});else{var e=a.unity.getCookie(b);d!==c&&d(c,e)}}),a.unityApi.getLicenseInfo=function(b){if(v)a.unityAsync({className:"LicenseManager",funcName:"getLicenseInfo",onSuccess:function(a){b&&b(c,a)},onFailure:function(a,c){b&&b(a,c)}});else{var d=a.unity.getLicenseInfo();b!==c&&b(c,d)}},a.unityApi.setActivationId=function(b,d){v?a.unityAsync({className:"LicenseManager",funcName:"setActivationId",funcArgs:[b],onSuccess:function(a){d!==c&&d(c,a)},onFailure:function(a,b){d&&d(a,b)}}):d!==c&&d(c,a.unity.setActivationId(b))},a.unityApi.activateNewLicense=function(b){v?a.unityAsync({className:"LicenseManager",funcName:"activateNewLicense",funcArgs:[],onSuccess:function(a){b!==c&&b(c,a)},onFailure:function(a,c){b&&b(a,c)}}):b!==c&&b(c,a.unity.activateNewLicense())},a.unityApi.returnLicense=function(b){v?a.unityAsync({className:"LicenseManager",funcName:"returnLicense",funcArgs:[],onSuccess:function(a){b!==c&&b(c,a)},onFailure:function(a,c){b&&b(a,c)}}):b!==c&&b(c,a.unity.returnLicense())},a.unityApi.loadLicense=function(b){v?a.unityAsync({className:"LicenseManager",funcName:"loadLicense",funcArgs:[],onSuccess:function(a){b!==c&&b(c,JSON.parse(a))},onFailure:function(a,c){b&&b(a,c)}}):b!==c&&b(c,a.unity.loadLicense())},a.unityApi.saveLicense=function(b){v?a.unityAsync({className:"LicenseManager",funcName:"saveLicense",funcArgs:[],onSuccess:function(a){b!==c&&b(c,JSON.parse(a))},onFailure:function(a,c){b&&b(a,c)}}):b!==c&&b(c,a.unity.saveLicense())},a.unityApi.refreshLicense=function(b){v?a.unityAsync({className:"LicenseManager",funcName:"refreshLicense",funcArgs:[],onSuccess:function(a){b!==c&&b(c,a)},onFailure:function(a,c){b&&b(a,c)}}):b!==c&&b(c,a.unity.refreshLicense())},a.unityApi.clearErrors=function(b){v?a.unityAsync({className:"LicenseManager",funcName:"clearErrors",funcArgs:[],onSuccess:function(a){b!==c&&b(c,a)},onFailure:function(a,c){b&&b(a,c)}}):b!==c&&b(c,a.unity.clearErrors())},a.unityApi.newActivation=function(b){v?a.unityAsync({className:"LicenseManager",funcName:"newActivation",funcArgs:[],onSuccess:function(a){b!==c&&b(c,a)},onFailure:function(a,c){b&&b(a,c)}}):b!==c&&b(c,a.unity.newActivation())},unityEmulator={recentProjects:[{path:"Users/JaneDoe/Documents/projects/unity/tests/Recent project with super long name that wont fit in the current window if it stays that long without being shrtened with ellipsis",version:"5.001b"},{path:"Users/JaneDoe/Documents/projects/unity/tests/OtherRecent",version:"5.1.0.3b"},{path:"Users/JaneDoe/Documents/projects/unity/tests/OlderThing",version:"5.10"},{path:"Users/JaneDoe/Documents/projects/unity/tests/Recent",version:"15.01"},{path:"Users/JaneDoe/Documents/projects/unity/tests/OtherRecent",version:"1"},{path:"Users/JaneDoe/Documents/projects/unity/tests/OlderThing",version:"5.0"},{path:"Users/JaneDoe/Documents/projects/unity/tests/Recent",version:"12.2"},{path:"Users/JaneDoe/Documents/projects/unity/tests/OtherRecent",version:""},{path:"Users/JaneDoe/Documents/projects/unity/tests/OlderThing",version:""},{path:"Users/JaneDoe/Documents/projects/unity/tests/Recent",version:""},{path:"Users/JaneDoe/Documents/projects/unity/tests/OtherRecent",version:""},{path:"Users/JaneDoe/Documents/projects/unity/tests/OlderThing",version:""},{path:"Users/JaneDoe/Documents/projects/unity/tests/Recent",version:"5.0"},{path:"Users/JaneDoe/Documents/projects/unity/tests/OtherRecent",version:""},{path:"Users/JaneDoe/Documents/projects/unity/tests/OlderThing",version:"5.0"},{path:"Users/JaneDoe/Documents/projects/unity/tests/Recent",version:""},{path:"Users/JaneDoe/Documents/projects/unity/tests/OtherRecent",version:""},{path:"Users/JaneDoe/Documents/projects/unity/tests/OlderThing",version:""},{path:"Users/JaneDoe/Documents/projects/unity/tests/Recent",version:""},{path:"Users/JaneDoe/Documents/projects/unity/tests/OtherRecent",version:""},{path:"Users/JaneDoe/Documents/projects/unity/tests/OlderThing",version:""}],packageList:[{path:"Lorem Ipsum Dolor Ullamcorper Euismod Ispum.package"},{path:"Bibendum/Parturient/Ligula Sem.package"},{path:"Condimentum/Mattis Pellentesque.package"},{path:"Fusce/Tellus/Adipiscing/Ullamcorper/Ullamcorper Euismod.package"},{path:"Ullamcorper Euismod.package"},{path:"Dolor/Ullamcorper/Euismod Ispum.package"},{path:"Bibendum/Parturient/Ligula Sem.package"},{path:"Condimentum/Mattis Pellentesque.package"},{path:"Fusce/Tellus/Adipiscing/Ullamcorper/Ullamcorper Euismod.package"},{path:"Ullamcorper Euismod.package"},{path:"Dolor/Ullamcorper/Euismod Ispum.package"},{path:"Bibendum/Parturient/Ligula Sem.package"},{path:"Condimentum/Mattis Pellentesque.package"},{path:"Fusce/Tellus/Adipiscing/Ullamcorper/Ullamcorper Euismod.package"},{path:"Ullamcorper Euismod.package"}],userDefault:{projectDirectory:"/Users/USER_NAME",projectType:"2D",defaultProjectName:"New Unity Project",homeRootDirectory:"blablabla/Resources/Home",isLaunching:!0,platformPathNameSeparator:"\\"},createProjectResultCodes:{success:0,missingProjectName:1,invalidProjectName:2,missingPath:3,invalidPath:4,folderNotEmpty:5},hasDismissed50WelcomeAlert:!1,getHasDismissed50WelcomeAlert:function(){return this.hasDismissed50WelcomeAlert},setHasDismissed50WelcomeAlert:function(a){this.hasDismissed50WelcomeAlert=a},getRecentProjects:function(){return this.recentProjects},getPackageList:function(){return this.packageList},getUserDefault:function(){return this.userDefault},chooseDirectory:function(){return alert("Showing choose directory dialog...."),"/Pharetra/Adipiscing/Vehicula"},openProject:function(a){return alert("Opening "+a),!1},showOpenOtherDialog:function(){alert("Showing open other dialog...")},createProject:function(a,b,c,d,e){var f=a.match(/\*/);return f&&f.length?this.createProjectResultCodes.missingProjectName:(alert("creating "+a+" at "+b+" of type "+c+" with packages "+d+" and default scene "+e),this.createProjectResultCodes.success)},launchBrowser:function(b){a.open(b)},loginSuccess:function(a,b,c,d,e,f,g){},skipLogin:function(){},getLoginURL:function(){return console.log("getLoginURL"),"https://andy-core.cloud.unity3d.com"},getEnvironment:function(){return console.log("getEnvironment"),"test-env"},isLaunching:!0};var x={pixToNumber:function(a){var b=a.match(/-?[0-9]+/);return b&&b.length?Number(b[0]):0},getFileName:function(a){var b=a.lastIndexOf("/");return b==-1?a:a.substr(b+1)},getContainingFolderPath:function(a){var b=a.lastIndexOf("/");return b==-1?"":a.substr(0,b)},getParameterByName:function(a){a=a.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var b=new RegExp("[\\?&]"+a+"=([^&#]*)"),c=b.exec(location.search);return null===c?"":decodeURIComponent(c[1].replace(/\+/g," "))},hasParameterByName:function(a){a=a.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var b=new RegExp("[\\?&]"+a),c=b.exec(location.search);return null!==c},validateEmailAddress:function(a){if(a===c)return!1;var b=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;if(!b.test(a))return!1;var d=a.trim();return d.length<255}};b.module("templates-app",["directives/link/link.tpl.html","directives/signin-user.tpl.html","directives/toggle.tpl.html","pn-call2action/call2action.tpl.html","pn-eula/eula.tpl.html","pn-footer/footer.tpl.html","pn-gettingstarted/gettingstarted.tpl.html","pn-header/header.tpl.html","pn-license/error.tpl.html","pn-license/failure.tpl.html","pn-license/finalize.tpl.html","pn-license/finalize/default.tpl.html","pn-license/finalize/free.tpl.html","pn-license/finalize/pro.tpl.html","pn-license/finalize/trial.tpl.html","pn-license/license.tpl.html","pn-license/licenses/free.tpl.html","pn-license/licenses/impossible.tpl.html","pn-license/licenses/personal.tpl.html","pn-license/licenses/serial.tpl.html","pn-license/manage.tpl.html","pn-license/manual.tpl.html","pn-license/return.tpl.html","pn-license/returned.tpl.html","pn-login/login.tpl.html","pn-newProject/newProject.tpl.html","pn-newProject/newProjectServices.tpl.html","pn-packagePicker/packagePicker.tpl.html","pn-recentProjects/recentProjects.tpl.html","pn-status/status.tpl.html","pn-survey/survey.tpl.html","pn-survey/widgets/checkbox.tpl.html","pn-survey/widgets/country.tpl.html","pn-survey/widgets/number.tpl.html","pn-survey/widgets/radio.tpl.html","pn-survey/widgets/select.tpl.html","pn-survey/widgets/string.tpl.html"]),b.module("directives/link/link.tpl.html",[]).run(["$templateCache",function(a){a.put("directives/link/link.tpl.html",'<span class="pn-link" ng-click="open()"><ng-transclude></ng-transclude></span>')}]),b.module("directives/signin-user.tpl.html",[]).run(["$templateCache",function(a){a.put("directives/signin-user.tpl.html",'<div class="section-user">\n    <ut-button ng-if="!$state.is(\'login\')" class="outline signin" ng-click="login()" ng-show="showSignIn" translate>Sign in</ut-button>\n    <div class="btn-group" ng-show="connectInfo.loggedIn">\n        <span dropdown>\n            <a href dropdown-toggle class="nav-button signin" aria-haspopup="true" aria-expanded="false">\n                <span class="dropdown-block">\n                    <i class="icon-user-inv"></i><div class="display-name truncate translate">My Account</div>\n                </span>\n            </a>\n            <ul class="dropdown-menu pull-right" dropdown-menu>\n                <li>\n                    <span class="user-logout disabled" ng-if="!connectInfo.loggedIn" translate>Go to account</span>\n                    <a ng-click="urlSvc.openBrowser(accountUrl)" ng-if="connectInfo.loggedIn" translate>Go to account</a>\n                </li>\n                <li ng-if="projectIdEnabled">\n                    <span class="user-logout disabled" ng-if="!connectInfo.loggedIn" translate>Manage organizations</span>\n                    <a ng-click="urlSvc.openBrowser(manageUrl)" ng-if="connectInfo.loggedIn" translate>Manage organizations</a>\n                </li>\n                <li ng-show="licenseInfo.flow != \'Unity Pro\'">\n                    <a ng-click="launchBrowserWithUrl(\'https://store.unity3d.com/?utm_source=unity&utm_medium=license&utm_campaign=serial\')" translate>Upgrade license</a>\n                </li>\n                <li><a ng-click="launchBrowserWithUrl(\'http://docs.unity3d.com/Manual/index.html\')" translate>Help</a></li>\n                <li class="divider" ng-if="!$state.is(\'login\')"></li>\n                <li ng-if="!$state.is(\'login\')">\n                    <a ng-click="logout()" ng-if="connectInfo.loggedIn" class="truncate" translate>Sign out {{userInfo.displayName}}</a>\n                </li>\n            </ul>\n        </span>\n    </div>\n</div>\n')}]),b.module("directives/toggle.tpl.html",[]).run(["$templateCache",function(a){a.put("directives/toggle.tpl.html",'<label class="ut-toggle">\n    <input type="checkbox" ng-model="toggle"/>\n    <span class="switcher">{{(toggle) ? rightLabel : leftLabel}}</span>\n    <span class="shadow">{{(toggle) ? leftLabel : rightLabel}}</span>\n</label>')}]),b.module("pn-call2action/call2action.tpl.html",[]).run(["$templateCache",function(a){a.put("pn-call2action/call2action.tpl.html",'<div class="alert" ng-hide="hideAlert">\n    <div class="title" translate>\n        Welcome to Unity 5.0\n    </div>\n    <div class="actions clearfix">\n        <div class="link" ng-click="launchBrowserWithUrl(\'http://unity3d.com/unity/whats-new/unity-5.0\')" translate>What\'s new in Unity 5.0?</div>\n        <div class="link" ng-click="launchBrowserWithUrl(\'http://unity3d.com/learn\')" translate>Tutorials and learning resources</div>\n    </div>\n    <button type="button" class="close" ng-click="dismissAlert()" aria-hidden="true"><i class="icon-close"></i></button>\n</div>\n')}]),b.module("pn-eula/eula.tpl.html",[]).run(["$templateCache",function(a){a.put("pn-eula/eula.tpl.html",'<div class="modal-header">\n    <div class="modal-title" translate>License agreement</div>\n</div>\n\t<div class="personal-license-options">\n\t\t<div class="detail" translate>Please select one of the options below</div>\n\t\t<div>\n\t\t\t<input type="radio" ng-model="personalOption.name" value="above1hk" id="above1hk">\n\t\t\t<label class="input-option-label" for="above1hk"><span class="option-radio"></span><div translate>The company or organization I represent earned <b>more than</b> $100,000 in gross revenue in the previous fiscal year.</div></label>\n\t\t</div>\n\t\t<div>\n\t\t\t<input type="radio" ng-model="personalOption.name" value="less1hk" id="less1hk">\n\t\t\t<label class="input-option-label" for="less1hk"><span class="option-radio"></span><div translate>The company or organization I represent earned <b>less than</b> $100,000 in gross revenue in the previous fiscal year.</div></label>\n\t\t</div>\n\t\t<div>\n\t\t\t<input type="radio" ng-model="personalOption.name" value="none" id="none">\n\t\t\t<label class="input-option-label" for="none"><span class="option-radio"></span><div translate>I don\'t use Unity in a professional capacity.</div></label>\n\t\t</div>\n\t</div>\n    <div class="modal-footer">\n\t\t<div class="license-buttons">\n\t\t\t<button class="license-btn ok" type="submit" ng-click="ok()" ng-disabled="!optionSelected()" translate>Next</button><div class="link" ng-click="launchBrowserWithUrl(\'http://unity3d.com/unity/activation/personal\')" translate>Why does Unity need to know this?</div>\n\t\t</div>\n\t\t\n    </div>\n</div>');
}]),b.module("pn-footer/footer.tpl.html",[]).run(["$templateCache",function(a){a.put("pn-footer/footer.tpl.html",'<div class="footer">\n\t<div class="logo"><i class="icon-uni-logo"></i></div>\n\t\n\t<ul class="footer-links" ng-if="cloudEnabled">\n\t\t<li class="greeting" ng-if="connectInfo.loggedIn" translate>Hello {{userInfo.displayName}}!\n\t\t</li>\n\n\t\t<li class="link" ng-if="!connectInfo.loggedIn" translate>\n\t\t\tYou are not signed in\n\t\t</li>\n\n\t\t<div class="dash" ng-if="(connectInfo.workOffline || connectInfo.online) && !$state.includes(\'login\')">-</div>\n\n\t\t<li class="link" ng-if="(connectInfo.workOffline || (connectInfo.online && !connectInfo.loggedIn)) && !$state.includes(\'login\')">\n\t\t\t<a href="" ng-click="login()" translate>Sign in...</a>\n\t\t</li>\n\n\t\t<li class="link" ng-if="connectInfo.online && connectInfo.loggedIn">\n\t\t\t<a href=""  ng-click="logout()" translate>Sign out</a>\n\t\t</li>\n\n\t\t<div class="dash" ng-if="licenseInfo.activated && licenseInfo.flow != \'Unity Pro\'">-</div>\n\n\t\t<li class="link" ng-if="licenseInfo.activated && licenseInfo.flow != \'Unity Pro\'">\n\t\t\t<a ng-click="launchBrowserWithUrl(\'https://store.unity3d.com/account/licenses\')" translate>Upgrade to Unity Plus or Pro </a>\n\t\t</li>\n\t</ul>\n\n</div>')}]),b.module("pn-gettingstarted/gettingstarted.tpl.html",[]).run(["$templateCache",function(a){a.put("pn-gettingstarted/gettingstarted.tpl.html",'<div class="content gettingstarted">\n\n\t<div class="start-video" style="margin-left: -40px;">\n\t\t<video width="1000" height="420" controls src="{{welcomeVideoPath}}">\n\t\t\tYour browser does not support the video tag.\n\t\t</video>\n\t</div>\n</div>\n')}]),b.module("pn-header/header.tpl.html",[]).run(["$templateCache",function(a){a.put("pn-header/header.tpl.html",'<div class="content">\n\n    <div class="section-title" ng-show="inLicenseFlow()">\n        <div class="logo"><i class="icon-uni-logo"></i></div>\n        <p translate>Welcome to Unity</p>\n    </div>\n\n    <div class="section-title" ng-show="showLogo">\n        <div class="logo"><i class="icon-uni-logo"></i></div>\n        <p translate>Hello<span ng-if="connectInfo.loggedIn">&nbsp;{{userInfo.displayName}}</span>!</p>\n    </div>\n\n    <div class="section-title" ng-show="!inLicenseFlow()&&($state.includes(\'manage\')||$state.includes(\'manual\'))">\n        <div class="logo"><i class="icon-uni-logo"></i></div>\n        <p translate>License Management</p>\n    </div>\n\n    <div class="section-title" ng-show="!inLicenseFlow()&&$state.includes(\'error\')">\n        <div class="logo"><i class="icon-uni-logo"></i></div>\n        <p translate>License Error</p>\n    </div>\n\n    <div class="section-nav" ng-show="showTabs">\n        <a class="nav-section" ng-class="{active: showProjectActive}" href="#/project/recent" translate>Projects</a>\n        <a class="nav-section" ng-class="{active: $state.includes(\'gettingStarted\')}" href="#/gettingStarted" translate>Getting started</a>\n    </div>\n\n    <div class="section-tools">\n\n        <div class="project-buttons" ng-show="showOpenButton">\n            <a class="nav-button new" ng-class="{disabled: disableOpenButton}" ng-href="{{disableOpenButton ? \'\' : \'#/project/new\'}}">\n                <i class="icon-newproject"></i><translate>New</translate>\n            </a>\n            <a class="nav-button open" ng-click="showOpenOtherDialog()">\n                <i class="icon-openother"></i><translate>Open</translate>\n            </a>\n        </div>\n\n        <div class="section-wizard" ng-show="inLicenseFlow()&&!$state.includes(\'manual\')">\n            <progressbar max="100" value="( dynamic * 100 ) / max" ng-class="{survey: !licenseInfo.survey.answered}"><span><span></progressbar>\n            <span class="pill-nav" ng-class="{\'active\':$state.includes(\'login\')}">\n                <div class="pill">\n                    <span class="outer-pill"></span>\n                    <span class="inner-pill" ng-class="{active: connectInfo.loggedIn}"></span>\n                </div>\n                <translate>Sign in</translate>\n            </span>\n            <span class="pill-nav" ng-class="{ active: $state.is(\'license\') }">\n                <div class="pill">\n                    <span class="outer-pill"></span>\n                    <span class="inner-pill" ng-class="{active: $state.includes(\'license\')}"></span>\n                </div>\n                <translate>License</translate>\n            </span>\n            <span class="pill-nav" ng-class="{ active: $state.is(\'license.survey\') }" ng-if="!licenseInfo.survey.answered">\n                <div class="pill">\n                    <span class="outer-pill"></span>\n                    <span class="inner-pill" ng-class="{active: $state.is(\'license.survey\') ||  $state.is(\'license.finalize\') }"></span>\n                </div>\n                <translate>Survey</translate>\n            </span>\n            <span class="pill-nav" ng-class="{ active: $state.is(\'license.finalize\') }" >\n                <div class="pill">\n                    <span class="outer-pill"></span>\n                    <span class="inner-pill" ng-class="{active: $state.is(\'license.finalize\') }"></span>\n                </div>\n                <translate>Thank you</translate>\n            </span>\n        </div>\n\n        <uc-sign-in-user></uc-sign-in-user>\n    </div>\n</div>\n')}]),b.module("pn-license/error.tpl.html",[]).run(["$templateCache",function(a){a.put("pn-license/error.tpl.html",'<div class="content license-overlay">\n\t<div class="manage">\n\n\t\t<ut-alert></ut-alert>\n\n\t\t<div class="container-manage">\n\t\t<div class="static-manage"> \n\t\t\t<ul class="license-detail">\n\t\t\t\t<li>\n\t\t\t\t\t<div class="title">{{licenseInfo.lastErrorMsg}}</div>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<div class="detail">\n\t\t\t\t\t\tFor more information see <span class="link" ng-click="launchBrowserWithUrl(licenseUrl)">online help</span>. <br>\n\t\t\t\t\t\tFor assistance contact support@unity3d.com.\n\t\t\t\t\t</div>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\t\t<div class="license-buttons">\n\t\t\t<button class="license-btn new" ng-disabled="!isLicensingAvailable()" ng-click="newActivation()">Re-Activate</button>\n\t\t\t<button class="license-btn ok" ng-click="quit()">Quit</button>\n\t\t</div>\n\t\t<div class="license-links">\n\t\t\t\t<ul>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<span ng-if="licenseInfo.activated && licenseInfo.flow != \'Unity Pro\'">\n\t\t\t\t\t\t\t<div class="link" ng-click="launchBrowserWithUrl(\'https://store.unity3d.com/?utm_source=unity&utm_medium=license&utm_campaign=serial\')">Buy Profesional Edition </div> -\n\t\t\t\t\t\t</span>\n\t\t\t\t\t\t<div class="link" ng-click="launchBrowserWithUrl(\'http://unity3d.com/unity/activation\')">Help</div> -\n\t\t\t\t\t\t<div class="link" ng-click="launchBrowserWithUrl(\'http://unity3d.com/unity/faq\')">FAQ</div>\n\n\t\t\t\t\t</li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>    ')}]),b.module("pn-license/failure.tpl.html",[]).run(["$templateCache",function(a){a.put("pn-license/failure.tpl.html",'<div class="content license-overlay">\n\t<div class="license failure">\n\n\t\t<ut-alert></ut-alert>\n\t\t<div class="static-license">\n\t\t\t<ul class="license-detail">\n\t\t\t\t<li>\n\t\t\t\t\t<div class="title">Something went wrong.</div>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<div class="detail">\n\t\t\t\t\t\tNot to worry, you can activate your license offline!\n\t\t\t\t\t</div>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\t\t<div class="license-buttons failure">\n\t\t\t<button class="license-btn manual" ng-click="go(\'/manual\')">Manual Activation</button>\n\t\t\t<button class="license-btn ok" ng-click="quit()">Quit</button>\n\t\t</div>\n\t\t<div class="license-links failure">\n\t\t\t<ul>\n\t\t\t\t<li>\n\t\t\t\t\t<div class="link" ng-click="launchBrowserWithUrl(\'http://unity3d.com/unity/licenses\')">Report an issue</div>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\t</div>\n</div>\n')}]),b.module("pn-license/finalize.tpl.html",[]).run(["$templateCache",function(a){a.put("pn-license/finalize.tpl.html",'<div class="content license-overlay">\n\n    <div class="watermark finalize">\n\t\t<svg version="1.1"\n\t\t\t x="0px" y="0px" width="547.9px" height="431.6px" viewBox="0 0 547.9 431.6" enable-background="new 0 0 547.9 431.6"\n\t\t\t xml:space="preserve">\n\t\t<defs>\n\t\t</defs>\n\t\t<g opacity="5.000000e-02">\n\t\t\t<polygon fill="#808080" points="431.6,0 431.6,0 547.9,431.6 314.5,431.6 \t"/>\n\t\t\t<polygon fill="#1A1A1A" points="314.5,431.6 0,431.6 0,115.3 431.6,0 \t"/>\n\t\t</g>\n\t\t</svg>\n\t</div>\n\n    <div class="license finalize">\n\n        <ut-alert></ut-alert>\n        <div class="static-license" ng-include="categories[categoryCode]">\n        </div>\n        <div class="license-buttons finalize">\n            <button class="license-btn ok" ng-click="startUnity()">Start Using Unity</button>\n        </div>\n    </div>\n</div>    ')}]),b.module("pn-license/finalize/default.tpl.html",[]).run(["$templateCache",function(a){a.put("pn-license/finalize/default.tpl.html",'<ul class="license-detail finalize">\n\t<li>\n\t\t<div class="title finalize">Thank you!&nbsp;&nbsp;:)</div>\n\t</li>\n</ul>\n')}]),b.module("pn-license/finalize/free.tpl.html",[]).run(["$templateCache",function(a){a.put("pn-license/finalize/free.tpl.html",'<ul class="license-detail">\n    <li>\n        <div class="title">Thank you for downloading Unity.</div>\n    </li>\n    <li>\n        <div class="detail">\n            With our basic version of Unity you will learn all about the flexible and superbly efficient Unity workflow. The free version of Unity provides some great features to build simple, yet high-quality content with solid performance.\n        </div>\n    </li>\n</ul>')}]),b.module("pn-license/finalize/pro.tpl.html",[]).run(["$templateCache",function(a){a.put("pn-license/finalize/pro.tpl.html",'<ul class="license-detail">\n    <li>\n        <div class="title">Welcome to Unity.</div>\n    </li>\n    <li>\n        <div class="detail">\n           Get ready to create your games and interactive content with all the power, performance and polish of Unity. Unity has all the professional rendering power, enhanced lightmapping, audio and special effects, unparalleled animation tools, performance optimizations and incredibly flexible workflows for total creative control.\n        </div>\n    </li>\n</ul>')}]),b.module("pn-license/finalize/trial.tpl.html",[]).run(["$templateCache",function(a){a.put("pn-license/finalize/trial.tpl.html",'<ul class="license-detail">\n    <li>\n        <div class="title">Welcome to your free 30-day Unity trial.</div>\n    </li>\n    <li>\n        <div class="detail">\n           For the next 30 days you get to create your interactive content with all the power, performance and polish of Unity. Unity has all the professional rendering power, enhanced lightmapping, audio and special effects, unparalleled animation tools, performance optimizations and incredibly flexible workflows for total creative control.\n        </div>\n    </li>\n</ul>')}]),b.module("pn-license/license.tpl.html",[]).run(["$templateCache",function(a){a.put("pn-license/license.tpl.html",'<div class="content license-overlay">\n    <div class="watermark">\n        <svg version="1.1"\n             x="0px" y="0px" width="585.1px" height="450px" viewBox="0 0 585.1 450" enable-background="new 0 0 585.1 450"\n             xml:space="preserve">\n        <defs>\n        </defs>\n        <g opacity="5.000000e-02">\n            <polygon fill="#808080" points="253.5,0 0,0 121.3,450 131.5,450     "/>\n            <polygon fill="#1A1A1A" points="253.5,0 131.5,450 196.7,450 585.1,346.3 585.1,0     "/>\n        </g>\n        </svg>\n    </div>\n    <div class="license">\n        <ut-alert></ut-alert>\n        <div class="static-license">\n            <ul class="license-detail">\n                <li>\n                    <div class="title">License management</div>\n                </li>\n                <li>\n                    <div class="detail">\n                        Please select one of the following license options.\n                    </div>\n                </li>\n            </ul>\n        </div>\n\n        <form name="createNew" novalidate ng-submit="submitSerial()">\n            <div class="license-option" ng-repeat="type in types">\n                <div ng-include="type.url"></div>\n            </div>\n            <div class="license-links">\n                <ul>\n                    <li>\n                        <span ng-if="licenseInfo.activated && licenseInfo.flow != \'Unity Pro\'">\n                            <div class="link" ng-click="launchBrowserWithUrl(\'https://store.unity3d.com/?utm_source=unity&utm_medium=license&utm_campaign=serial\')">Buy Unity Plus or Pro</div> -\n                        </span>\n                        <div class="link" ng-click="launchBrowserWithUrl(\'http://unity3d.com/unity/faq\')">FAQ</div> -\n                        <div class="link" ng-click="launchBrowserWithUrl(\'http://unity3d.com/unity/activation\')">Help</div>\n                    </li>\n                </ul>\n            </div>\n            <div class="license-buttons">\n                <button class="license-btn ok" ng-disabled="!flowValidated()" type="submit" >Next</button>\n            </div>\n        </form>\n    </div>\n</div>\n')}]),b.module("pn-license/licenses/free.tpl.html",[]).run(["$templateCache",function(a){a.put("pn-license/licenses/free.tpl.html",'<span ng-if="!isFreeAllowed">\n\t<div class="header">\n\t\t<input type="radio" ng-value="type.name" id="{{type.name}}" ng-model="license.selectedOption">\n\t\t<label class="input-label" for="{{type.name}}"><span></span>Unity FREE</label>\n\t</div>\n\t<!--\n\t<div class="field-description" ng-show="license.selectedOption==type.name">\n\t  <p>You can start using your free version immediately. Projects you make with the free version are fully compatible with Unity Pro if you ever wish to upgrade later to Unity Pro for advanced features and increased productivity.</p>\n\t  <p class="link" ng-click="launchBrowserWithUrl(\'https://store.unity3d.com/products/subscription?utm_source=unity&utm_medium=license&utm_campaign=subscription\')">Subscribe to Unity Pro for $75 / month</p>\n\t</div>\n\t-->\n</span>\n<span ng-if="isFreeAllowed">\n\t<div class="header disabled">\n\t\t<input type="radio" ng-value="type.name" id="{{type.name}}" ng-model="license.selectedOption" disabled>\n\t\t<label class="input-label disabled" for="{{type.name}}"><span></span>(Disabled) Unity FREE</label>\n\t\t<div class="clear"></div>\n\t</div>\n</span>')}]),b.module("pn-license/licenses/impossible.tpl.html",[]).run(["$templateCache",function(a){a.put("pn-license/licenses/impossible.tpl.html",'<div class="content license-overlay">\n\t<div class="license">\n\t\t<div class="static-license">\n\t\t\t<ul class="license-detail">\n\t\t\t\t<li>\n\t\t\t\t\t<h1 class="title">Please Upgrade to Unity Plus or Pro</h1>\n\t\t\t\t</li>\n\t\t\t\t<li style="width:90%">\n\t\t\t\t\t<div class="alert-detail">\n\t\t\t\t\t\tYou are currently activating Unity Personal. Unity Personal is not available to <br/>companies or organizations that earned more than USD100,000 in the previous fiscal year. Please <div class="link" ng-click="launchBrowserWithUrl(\'https://store.unity3d.com/?utm_source=unity&utm_medium=license&utm_campaign=serial\')">purchase the Unity Plus or Unity Pro</div> of our software.\n\t\t\t\t\t\t\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="alert-detail">\n\t\t\t\t\t\tIf you\'ve already purchased the Plus or Pro version of our software, you can activate Unity by <div class="link" ng-click="go2FillLicense()">entering your serial key here</div>.\n\t\t\t\t\t</div>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t\t<div class=".license-back-buttons">\n\t\t\t<button class="license-btn ok" ng-click="goBack2License()" >Go back</button>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div> \n')}]),b.module("pn-license/licenses/personal.tpl.html",[]).run(["$templateCache",function(a){a.put("pn-license/licenses/personal.tpl.html",'<span ng-if="isFreeAllowed()">\n\t<div class="header">\n\t\t<input type="radio" ng-value="type.name" id="{{type.name}}" ng-model="license.selectedOption">\n\t\t<label class="input-label" for="{{type.name}}"><span></span><div class="brand-bold">Unity</div><div class="brand-edition">Personal</div></label>\n\t</div>\n</span>\n<span ng-if="!isFreeAllowed()">\n\t<div class="header disabled">\n\t\t<input type="radio" ng-value="type.name" id="{{type.name}}" ng-model="license.selectedOption" disabled>\n\t\t<label class="input-label disabled" for="{{type.name}}"><span></span>(Disabled) Unity Personal</label>\n\t\t<div class="clear"></div>\n\t</div>\n</span>\n')}]),b.module("pn-license/licenses/serial.tpl.html",[]).run(["$templateCache",function(a){a.put("pn-license/licenses/serial.tpl.html",'<div class="header header-first">\n    <input type="radio" ng-value="type.name" id="{{type.name}}" ng-model="license.selectedOption"/>\n    <label class="input-label" for="{{type.name}}"><span></span><div class="brand-bold">Unity</div><div class="brand-edition">Plus or Pro</div>\n</div></label>\n    \n<div class="styled-input field-description" ng-style="{opacity : ((license.selectedOption==\'serial\') && \'1\') || \'0\'}">\n\t<div class="styled-input dynamic-validation">\n    \t<input class="styled-input" type="text" maxlength="32" name="serialNumber" id="serial-number" ng-model="license.serialNumber" placeholder="Enter your serial number" required valid-serial />\n    \t<span class="spinner" data-spinner-color="#00CCCC"></span>\n    \t<i class="icon-check" ng-show="!!license.serialNumber && !!createNew.serialNumber.$error.validSerial"></i>\n    \t<i class="icon-close" ng-show="!!license.serialNumber && !!createNew.serialNumber.$error.invalidSerial && !!!createNew.serialNumber.$error.network" ng-click="clearSerial()"></i>\n        <i class="icon-refresh" ng-show="!!license.serialNumber && !!createNew.serialNumber.$error.invalidSerial && !!createNew.serialNumber.$error.network" ng-click="revalidation()"></i>\n    \t<!--<label class="serial-detail">Enter your serial number here.</label>-->\n    </div>\n</div>')}]),b.module("pn-license/manage.tpl.html",[]).run(["$templateCache",function(a){a.put("pn-license/manage.tpl.html",'<div class="content license-overlay">\n    <div class="manage">\n        <ut-alert></ut-alert>\n        <div class="static-manage">\n            <ul class="license-detail">\n                <li>\n                    <div class="title">Your options</div>\n                </li>\n                <li>\n                    <div class="detail">\n                        Please select one of the following license management options.\n                    </div>\n                </li>\n            </ul>\n        </div>\n            \n        <div class="manage-buttons">\n            <ul>\n                <li>\n                    <button class="manage-btn" ng-disabled="!isLicensingAvailable()" ng-click="refreshLicense()">\n                        Check for updates\n                    </button>\n                    <p>\n                        Checks for updates to the currently installed license. If you have purchased addons you can install them by pressing this button (Internet access required)\n                    </p>\n                </li>\n                <li>\n                    <button class="manage-btn" ng-disabled="!isLicensingAvailable()" ng-click="activateNewLicense()">\n                        Activate New License\n                    </button>\n                    <p>\n                        Activate Unity with a different serial number or switch edition (Internet access required).\n                    </p>\n                </li>\n                <li>\n                    <button class="manage-btn" ng-disabled="!isLicensingAvailable()" ng-click="go(\'/manage/return\')">\n                        Return License\n                    </button>\n                    <p>\n                        Return this license and free an activation for the serial it is using. You can then reuse the activation on another machine (Internet access required).\n                    </p>\n                </li>\n                <li>\n                    <button class="manage-btn" ng-disabled="isManagingLicense" ng-click="go(\'/manual\')">\n                        Manual Activation\n                    </button>\n                    <p>\n                        Start the manual activation process, you can save this machines license activation request file or deploy a license file you have already activated manually.\n                    </p>\n                </li>\n            </ul>\n        </div>\n\n        <div class="license-links">\n            <ul>\n                <li>\n                    <span ng-if="licenseInfo.activated && licenseInfo.flow != \'Unity Pro\'">\n                        <div class="link" ng-click="launchBrowserWithUrl(\'https://store.unity3d.com/?utm_source=unity&utm_medium=license&utm_campaign=serial\')"> Buy Profesional Edition</div> - \n                    </span>\n                    <div class="link" ng-click="launchBrowserWithUrl(\'http://unity3d.com/unity/activation\')">Help</div> -\n                    <div class="link" ng-click="launchBrowserWithUrl(\'http://unity3d.com/unity/faq\')">FAQ</div>\n\n                </li>\n            </ul>\n        </div>\n\n    </div>\n</div>    ')}]),b.module("pn-license/manual.tpl.html",[]).run(["$templateCache",function(a){a.put("pn-license/manual.tpl.html",'<div class="content license-overlay">\n\t<div class="manage">\n\n        <ut-alert></ut-alert>\n\t\t<div class="container-manage">\n\t\t\t<div class="static-manage">\n\t\t\t\t<ul class="license-detail">\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<div class="title">Manual Activation.</div>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<div class="detail">\n\t\t\t\t\t\t\tWould you like to save your license to a file and manually submit it? <br>\n\t\t\t\t\t\t\tActivation URL: <span class="link-selectable" ng-click="launchBrowserWithUrl(\'https://license.unity3d.com/manual\')">https://license.unity3d.com/manual</span><br>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\t\t\t<div class="manage-buttons">\n\t\t\t\t<ul>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<button class="manage-btn" ng-click="loadLicense()">Load License</button><p>Load a license key to this machine.</p>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<button class="manage-btn" ng-click="saveLicense()">Save License Request</button><p>Save your license request key to use on the above.</p>\n\t\t\t\t\t</li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\t\t</div>\n\n\t\t<div class="confirm-buttons">\n\t\t\t<button class="manage-btn cancel" ng-click="cancel()">Cancel</button>\n\t\t</div>\n\n\t\t<div class="license-links">\n\t\t\t<ul>\n\t\t\t\t<li>\n\t\t\t\t\t<span ng-if="licenseInfo.activated && licenseInfo.flow != \'Unity Pro\'">\n\t\t\t\t\t\t<div class="link" ng-click="launchBrowserWithUrl(\'https://store.unity3d.com/?utm_source=unity&utm_medium=license&utm_campaign=serial\')">Buy Profesional Edition</div> -\n\t\t\t\t\t</span>\n\t\t\t\t\t<div class="link" ng-click="launchBrowserWithUrl(\'http://unity3d.com/unity/activation\')">Help</div> -\n\t\t\t\t\t<div class="link" ng-click="launchBrowserWithUrl(\'http://unity3d.com/unity/faq\')">FAQ</div>\n\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\t</div>\n</div>\n')}]),b.module("pn-license/return.tpl.html",[]).run(["$templateCache",function(a){a.put("pn-license/return.tpl.html",'<div class="content license-overlay">\n\t<div class="manage">\n\n        <ut-alert></ut-alert>\n\t\t<div class="container-manage">\n\t\t\t<div class="static-manage">\n\t\t\t\t<ul class="license-detail">\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<div class="title">Returning License</div>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<div class="detail">\n\t\t\t\t\t\t\tPlease confirm that you wish to return this license and free an activation for the serial it is using. You can then reuse the activation on another machine.\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\t\t</div>\n\n\t\t<div class="button-group">\n\t\t\t<div class="confirm-buttons">\n\t\t\t\t<button class="manage-btn cancel" ng-disabled="isManagingLicense" ng-click="cancel()">Cancel</button>\n\t\t\t\t<button class="license-btn ok" ng-disabled="isManagingLicense" ng-click="returnLicense()">Confirm</button>\n\t\t\t</div>\n\t\t</div>\n\n\t\t<div class="license-links">\n            <ul>\n                <li>\n                \t<span ng-if="licenseInfo.activated && licenseInfo.flow != \'Unity Pro\'">\n                    \t<div class="link" ng-click="launchBrowserWithUrl(\'https://store.unity3d.com/?utm_source=unity&utm_medium=license&utm_campaign=serial\')">Buy Profesional Edition</div> -\n                    </span>\n                    <div class="link" ng-click="launchBrowserWithUrl(\'http://unity3d.com/unity/activation\')">Help</div> -\n                    <div class="link" ng-click="launchBrowserWithUrl(\'http://unity3d.com/unity/faq\')">FAQ</div>\n\n                </li>\n            </ul>\n        </div>\n\t</div>\n</div>    ')}]),b.module("pn-license/returned.tpl.html",[]).run(["$templateCache",function(a){a.put("pn-license/returned.tpl.html",'<div class="content license-overlay">\n\n    <div class="license finalize">\n\n\t\t<ul class="license-detail finalize">\n\t\t\t<li>\n\t\t\t\t<div class="title finalize">Thank you!&nbsp;&nbsp;:)</div>\n\t\t\t</li>\n\t\t</ul>\n\n        <div class="license-buttons finalize">\n            <button class="license-btn ok" ng-click="returnAndQuit()">Quit Unity</button>\n        </div>\n    </div>\n</div>    ')}]),b.module("pn-login/login.tpl.html",[]).run(["$templateCache",function(a){a.put("pn-login/login.tpl.html",'<div class="content login-overlay" ng-if="cloudEnabled">\n\n    <div class="watermark" ng-if="!licenseInfo.activated">\n        <svg version="1.1"\n             x="0px" y="0px" width="431.6px" height="449px" viewBox="0 0 431.6 449" enable-background="new 0 0 431.6 449"\n             xml:space="preserve">\n        <defs>\n        </defs>\n        <g opacity="5.000000e-02">\n            <polygon fill="#808080" points="431.6,81.7 128.4,0 0,0 0,198.8  "/>\n            <polygon fill="#1A1A1A" points="0,198.8 0,449 320.6,449 431.6,81.7  "/>\n        </g>\n        </svg>\n    </div>\n\n    <div class="login">\n        <ut-alert></ut-alert>\n        <div class="login-detail">\n            <div class="title">Sign into your Unity Account</div>\n            <div class="detail">\n                If you don\'t have a Unity Account, please&nbsp;<pn-link href="signUpUrl">create one</pn-link>&nbsp;to access Unity services and resources.\n            </div>\n        </div>\n\n        <form name="$parent.signInForm" novalidate>\n            <div class="form-inputs">\n                <div class="styled-input email">\n                    <div>\n                        <label class="input-label" for="username">Email</label>\n                        <span class="error">*</span>\n                    </div>\n                    <input type="text" name="username" id="username" ng-model="username" placeholder="{{mockEmail}}" required tabindex="2" autofocus/>\n                </div>\n                <div class="styled-input password">\n                    <div>\n                        <label class="input-label" for="password">Password</label>\n                        <span class="error">*</span>\n                    </div>\n                    <input type="password" name="password" id="password" ng-model="password" placeholder="{{mockPassword}}" required tabindex="3"/>\n                </div>\n            </div>\n            <div class="form-footer">\n                 <div class="login-links">\n                     <div pn-link href="forgotPasswordUrl">Forgot your password?</div>\n                     <div pn-link href="confirmationUrl">Can\'t find your confirmation email?</div>\n                </div>\n                <div class="remember">\n                    <input class="checkbox" name="remember" id="remember" ng-model="$parent.remember" type="checkbox" tabindex="4"/>\n                    <label class="remember-label" for="remember">Remember me&nbsp;&nbsp;<span><i class="icon-check"></i></span>\n                    </label>\n                </div>\n                <div class="login-buttons">\n                    <button class="login-btn skip" ng-click="skipLogin()" ng-show="licenseInfo.activated" tabindex="6">Work offline</button>\n                    <button class="login-btn signin" ng-disabled="isSigningIn" type="submit" ng-click="signIn()" tabindex="5">Sign In</button>\n                </div>\n            </div>\n        </form>\n    </div>\n</div>\n')}]),b.module("pn-newProject/newProject.tpl.html",[]).run(["$templateCache",function(a){a.put("pn-newProject/newProject.tpl.html",'<div class="content newProject">\n\n    <div ui-view="packagePicker" ng-class="{visible: packagePickerVisible}"></div>\n\n    <div class="project-desc">\n        <div class="new-fields">\n            <div class="styled-input name">\n                <div class="input-label">Project name*</div>\n                <input type="text" name="project-name" id="projectName" ng-model="projectName" placeholder="Project name" maxlength="512"/>\n\n            </div>\n            <div class="styled-input path with-action">\n                <div class="input-label">Location*</div>\n                <input type="text" name="project-location" id="projectLocation" ng-model="projectDirectoryWithPlatformPathSeparators" placeholder="Location"/>\n                <div class="action" ng-click="selectProjectDirectory()">...</div>\n            </div>\n        </div>\n\n\t\t<div class="dimension-options">\n\t\t\t<div>\n\t\t\t\t<input type="radio" ng-model="enable2D" value="false2D" id="false2D">\n\t\t\t\t<label class="input-option-label" for="false2D"><span class="option-radio"></span><div translate>3D</div></label>\n\t\t\t</div>\n\t\t\t<div>\n\t\t\t\t<input type="radio" ng-model="enable2D" value="true2D" id="true2D">\n\t\t\t\t<label class="input-option-label" for="true2D"><span class="option-radio"></span><div translate>2D</div></label>\n\t\t\t</div>\n\t\t</div>\n        <div ng-click="showPicker()" class="show-packages asset-package-button mleft">\n            <div class="package-button pull-left" translate>Add Asset Package</div>\n            <div ng-show="packages |numSelected" class="count pull-left">{{packages |numSelected}}</div>\n        </div>\n        <div class="clearfix"></div>\n\n        <div class="bottom-tools">\n            <div class="nav pull-right">\n                <a class="pull-right default" ng-click="createProject()" translate>Create project</a>\n                <a class="pull-right" ng-show="isLaunching" href="#/project/recent" translate>Cancel</a>\n            </div>\n        </div>\n\n    </div>\n\n</div>\n')}]),b.module("pn-newProject/newProjectServices.tpl.html",[]).run(["$templateCache",function(a){a.put("pn-newProject/newProjectServices.tpl.html",'<div class="content newProject">\n\n    <ut-alert></ut-alert>\n\n    <div ui-view="packagePicker" ng-class="{visible: packagePickerVisible}"></div>\n    <div class="more-info-container" ng-class="{\'more-info-visible\': moreInfoVisible}">\n        <div class="more-info-dialog">\n            <div class="dialog-close-x" ng-click="toggleMoreInfo()">\n            </div>\n            <div class="dialog-title">\n                What does this mean?\n            </div>\n            <p class="dialog-text">\n                By enabling Unity Analytics, project data will be collected to provide you project metrics, benchmarks against similar projects, and insights into player behavior.\n\n                No additional SDK integrations are required to get started.\n            </p>\n            <div pn-link href="termsofserviceUrl" ng-if="connectInfo.loggedIn">Terms of Service</div>\n            <a class="dialog-close-button" ng-click="toggleMoreInfo()">\n                Got it!\n            </a>\n        </div>\n    </div>\n    <div class="project-desc wide">\n        <div class="form-wrapper">\n            <div class="new-fields">\n                <div class="styled-input name">\n                    <div class="input-label">Project name*</div>\n                    <input type="text" name="project-name" id="projectName" ng-model="projectName" placeholder="Project name" maxlength="512"/>\n                </div>\n                <div class="styled-input path with-action">\n                    <div class="input-label">Location*</div>\n                    <input type="text" name="project-location" id="projectLocation" ng-model="projectDirectoryWithPlatformPathSeparators" placeholder="Location"/>\n                    <div class="action" ng-click="selectProjectDirectory()">...</div>\n                </div>\n                <div ng-style="{\'visibility\': enableServiceToggle ? \'visible\' : \'hidden\'}" class="styled-input btn-group btn-input org-list clearfix">\n                    <div class="input-label">Organization*</div>\n                    <ui-select ng-disabled="organizations.length === 0" ng-model="organization.selected" theme="bootstrap" on-select="orgSelected($item, $model)" search-enabled="false">\n                        <ui-select-match placeholder="{{\'Select organization\'}}">{{$select.selected.name}}</ui-select-match>\n                        <ui-select-choices repeat="org in organizations track by $index" ui-disable-choice="org.id === \'__divider__\'">\n                            <div class="divider" ng-if="org.id==\'__divider__\'"></div>\n                            <div ng-bind-html="org.name" ng-if="org.id!=\'__divider__\'"></div>\n                        </ui-select-choices>\n                    </ui-select>\n                    <i ng-hide="organizations.length > 0" ng-click="showMissingOrgsAlert()" class="pull-right icon-attention"></i>\n\n                </div>\n            </div>\n\n            <div class="side-tools">\n                <div class="dimension-options">\n\t\t\t\t\t<div>\n\t\t\t\t\t\t<input type="radio" ng-model="enable2D" value="false2D" id="false2D">\n\t\t\t\t\t\t<label class="input-option-label" for="false2D"><span class="option-radio"></span><div translate>3D</div></label>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div>\n\t\t\t\t\t\t<input type="radio" ng-model="enable2D" value="true2D" id="true2D">\n\t\t\t\t\t\t<label class="input-option-label" for="true2D"><span class="option-radio"></span><div translate>2D</div></label>\n\t\t\t\t\t</div>\n                </div>\n                <div ng-click="showPicker()" class="show-packages asset-package-button clearfix">\n                    <div class="package-button pull-left">Add Asset Package</div>\n                    <div ng-show="packages |numSelected" class="count pull-left">{{packages |numSelected}}</div>\n                </div>\n                <div class="clearfix"></div>\n                <div class="enable-services">\n                    <ut-toggle ng-class="{enabled: enableServiceToggle}" toggle="enableServiceToggle" right-label="Off" left-label="On" class="round pull-left"></ut-toggle>\n                    <p class="pull-left">Enable Unity Analytics</p>\n                    <i class="pull-left trigger-more-info" ng-click="toggleMoreInfo()"></i>\n                </div>\n            </div>\n            <div class="clearfix"></div>\n        </div>\n        <div class="bottom-tools">\n            <div class="nav pull-right">\n                <a class="pull-right default" ng-click="createProject()">Create project</a>\n                <a class="pull-right" ng-show="isLaunching" href="#/project/recent">Cancel</a>\n            </div>\n        </div>\n        <div class="clearfix"></div>\n    </div>\n</div>\n');
}]),b.module("pn-packagePicker/packagePicker.tpl.html",[]).run(["$templateCache",function(a){a.put("pn-packagePicker/packagePicker.tpl.html",'<div class="packages" ng-class="{\'picker-visible\':$parent.packagePickerVisible}">\n    <div ng-click="$parent.hidePicker()" class="overlay">\n    </div>\n    <div class="picker">\n        <div class="title" translate>Asset packages</div>\n        <div  class="list-frame">\n            <ul class="pack-selectable-list">\n                <li ng-repeat="package in packages" class="clearfix" ng-click="package.selected = !package.selected">\n                    <div class="package-checkbox">\n                        <input type="checkbox" value="None" id="squaredCheck-{{$index}}" ng-model="package.selected" name="check"/>\n                        <label for="squaredCheck-{{$index}}"></label>\n                    </div>\n                    <div class="info">\n                        <div class="title">{{package.path | packageName}}</div>\n                    </div>\n                </li>\n            </ul>\n        </div>\n\n        <div class="tools">\n             <a class="selectAll pull-left" ng-show="packages.length > 0" ng-click="toggleSelectAll()">{{selectVerb()}}</a>\n            <div class="done pull-right" ng-click="$parent.hidePicker()" translate>Done</div>\n        </div>\n    </div>\n</div>')}]),b.module("pn-recentProjects/recentProjects.tpl.html",[]).run(["$templateCache",function(a){a.put("pn-recentProjects/recentProjects.tpl.html",'<div class="clearfix"></div>\n<div class="content recentProjects">\n\t\t<div ng-show="whitelisted" class="sidebar-content">\n\t\t\t<div class="sidebar-item">\n\t\t\t\t<a ng-click="showCloud = false" ng-class="{\'active\': !showCloud}" translate>\n\t\t\t\t\tOn Disk\n\t\t\t\t</a>\n\t\t\t</div>\n\t\t\t<div class="sidebar-item">\n\t\t\t\t<a ng-click="showCloud = true" ng-class="{\'active\': showCloud}" translate>\n\t\t\t\t\tIn The Cloud\n\t\t\t\t</a>\n\t\t\t\t<span ng-class="{empty: cloudOnlyProjectsCount === 0}" class="badge"\n\t\t\t\t\t  ng-if="cloudOnlyProjectsCount"\n\t\t\t\t\t  ng-bind="cloudOnlyProjectsCount">\n\t\t\t\t\t10\n\t\t\t\t</span>\n\t\t\t</div>\n\t\t</div>\n\t\t<div class="main-content" ng-class="{\'with-collab\': whitelisted}">\n\t\t\t<div class="list-frame project-list-frame">\n\t\t\t\t\t<div class="no-projects" ng-if="recentProjects.length == 0 && cloudProjects.length == 0">\n\t\t\t\t\t\t\t<ul>\n\t\t\t\t\t\t\t\t\t<li translate>\n\t\t\t\t\t\t\t\t\t\t\tCreate a project\n\t\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t\t\t\t\t<a class="btn new" href="#/project/new" translate>New project</a>\n\t\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t</div>\n\t\t\t\t\t<ul class="project-list selectable-list" ng-class="{launching: isLaunching}" ng-if="recentProjects.length > 0 && !showCloud">\n\t\t\t\t\t\t\t<li ng-repeat="project in recentProjects | filter:projectFilter" ng-click="openProject(project.path)" ng-class="{selected:selectedProjectIndex==$index}">\n\t\t\t\t\t\t\t\t\t<div class="info">\n\t\t\t\t\t\t\t\t\t\t\t<div class="title">{{project.title}}</div>\n\t\t\t\t\t\t\t\t\t\t\t<div class="detail" translate>Path: {{project.containingFolderPath | ensurePlatformPathSeparators}} | Unity version: {{project.version | formatVersion}} <span ng-if="project.organizationId">| {{project.organizationId}}</span></div>\n\n                                    </div>\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t</ul>\n\t\t\t\t\t<ul class="project-list selectable-list" ng-class="{launching: isLaunching}" ng-if="showCloud">\n\t\t\t\t\t\t\t<div ng-if="whitelisted">\n\t\t\t\t\t\t\t\t<li class="cloud-projects-item" ng-repeat="project in cloudProjects | filter:projectFilter | orderBy:\'-localProjectEntry\'"\n\t\t\t\t\t\t\t\t\tng-click="openCloudProject(project.organizationId, project.projectId, project.projectName)"\n\t\t\t\t\t\t\t\t\tng-class="{selected:selectedProjectIndex==$index}"\n\t\t\t\t\t\t\t\t\tng-if="cloudProjects.length">\n\t\t\t\t\t\t\t\t\t<div class="info">\n\t\t\t\t\t\t\t\t\t\t<div class="title" ng-class="{emphasis: !project.localProjectEntry, used: project.localProjectEntry}">{{project.title}}</div>\n\t\t\t\t\t\t\t\t\t\t<div class="detail">{{project.organizationId}}</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<i class="icon-cloud" ng-if="!project.localProjectEntry"></i>\n\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t\t<div class="no-cloud-projects" ng-if="!cloudProjects.length">\n\t\t\t\t\t\t\t\t\t<div class="title" translate>No project to download</div>\n\t\t\t\t\t\t\t\t\t<div class="detail" translate>\n\t\t\t\t\t\t\t\t\t\tYour Collab Projects will appear here, invite members\n\t\t\t\t\t\t\t\t\t\tto your project to get started!\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t</ul>\n\t\t\t</div>\n\t\t</div>\n</div>\n')}]),b.module("pn-status/status.tpl.html",[]).run(["$templateCache",function(a){a.put("pn-status/status.tpl.html",'<div class="status" ng-if="cloudEnabled&&show">\n    <ul class="status-detail" ng-if="!debounce">\n        <li>\n            <div class="title">{{message}}</div>\n        </li>\n        <li>\n            <div class="detail">\n                {{description}} <div ng-show="getShowMoreinfo()" translate>For more information, please click <div class="link" ng-click="launchBrowserWithUrl(\'http://status.cloud.unity3d.com\')">here</div>.</div>\n            </div>\n        </li>\n        <li>\n            <div class="status-buttons down" ng-if="licenseInfo.activated">\n                <button class="status-btn skip" ng-click="workOffline()" ng-show="showWorkOffline" translate>Work offline</button>\n            </div>\n            <div class="status-buttons manual" ng-if="!connectInfo.online&&licenseInfo.ready&&licenseInfo.initialized&&connectInfo.ready&&!licenseInfo.activated">\n                <button class="status-btn skip" ng-click="quit()" translate>Quit</button>\n                <button class="status-btn manual" ng-click="go(\'/manual\')" translate>Manual Activation</button>\n            </div>\n        </li>\n    </ul>\n</div>    ')}]),b.module("pn-survey/survey.tpl.html",[]).run(["$templateCache",function(a){a.put("pn-survey/survey.tpl.html",'<div class="content survey-overlay">\n\n    <div class="watermark">\n        <svg version="1.1"\n             x="0px" y="0px" width="433.7px" height="450px" viewBox="0 0 433.7 450" enable-background="new 0 0 433.7 450"\n             xml:space="preserve">\n        <defs>\n        </defs>\n        <g opacity="5.000000e-02">\n            <polygon fill="#808080" points="433.7,196.5 433.7,0 292.6,0 0,78.9  "/>\n            <polygon fill="#1A1A1A" points="433.7,196.5 0,78.9 99.1,450 433.7,450   "/>\n        </g>\n        </svg>\n    </div>\n    \n    <div class="survey" ng-cloak>\n        <ut-alert></ut-alert>\n        <form name="surveyForm" novalidate>\n            \n            <div class="static-survey">\n                <ul class="survey-detail">\n                    <li>\n                        <div class="title" translate>Quick and easy survey ;)</div>\n                    </li>\n                    <li>\n                        <div class="detail" translate>\n                            Take a couple of milliseconds to help us improve the Unity engine!\n                        </div>\n                    </li>\n                    <li>\n                        <div ng-repeat="question in questions" on-finish-render="showButtons()" ng-if="hasRequisites(question)">\n                    \t\t<div ng-include="getWidgetUrl(question.widget)"></div>\n                \t\t</div>\n                    </li>\n                </ul>\n            </div>\n\n           \n            <div class="survey-buttons" ng-if="buttons">\n                <button class="survey-btn skip" ng-click="submitSurvey(true)" ng-disabled="isSubmitting" ng-if="!licenseInfo.survey.required" translate>Skip</button>\n                <button class="survey-btn ok" ng-click="submitSurvey()" ng-disabled="isSubmitting" type="submit" translate>OK</button>\n            </div>\n        </form>\n\n    </div>\n</div>    ')}]),b.module("pn-survey/widgets/checkbox.tpl.html",[]).run(["$templateCache",function(a){a.put("pn-survey/widgets/checkbox.tpl.html",'<div class="survey-block">\n\t<div class="survey-question">\n\t\t{{question.label}}\n\t</div>\n\t<div ng-repeat="option in question.options">\n\t\t<span ng-if="option.visibility==\'visible\'">\n\t\t\t<input type="checkbox" ng-value="option.id" id="{{option.id}}" ng-model="option.checked"/>\n\t\t\t<label class="answer" for="{{option.id}}"><span><i class="icon-check"></i></span>{{option.label}}</label>\n\t\t\t<span ng-if="option.type==\'freetext\'">\n\t\t\t\t<input type="text" id="{{option.id}}" ng-model="option.value" placeholder="specify"/>\n\t\t\t</span>\n\t\t</span>\n\t</div>\n</div>\n')}]),b.module("pn-survey/widgets/country.tpl.html",[]).run(["$templateCache",function(a){a.put("pn-survey/widgets/country.tpl.html",'<div class="survey-block">\n\t{{question.label}}\n\t<div>\n\t\t\n\t\t<ui-select ng-model="question.selectedCountry" theme="bootstrap" on-select="countrySelected($item, question)">\n            <ui-select-match placeholder="Select or search a country...">{{$select.selected.name}}</ui-select-match>\n            <ui-select-choices repeat="country in question.countries | orderBy: \'name\' | filter: $select.search">\n            \t<div ng-bind-html="country.name | highlight: $select.search"></div>\n            </ui-select-choices>\n        </ui-select>\n\n        <div class="region-frame" ng-if="question.selectedCountry && (question.selectedCountry.regions.length > 1)">\n\t\t\t<ui-select ng-model="question.selectedCountry.selectedRegion" theme="bootstrap" on-select="regionSelected($item, question)">\n\t            <ui-select-match placeholder="{{\'Select or search \'+ getRegionPrompt(question.selectedCountry) +\'...\'}}">{{$select.selected.name}}</ui-select-match>\n\t            <ui-select-choices repeat="region in question.selectedCountry.regions | orderBy: \'name\' | filter: $select.search">\n\t            \t<div ng-bind-html="region.name | highlight: $select.search"></div>\n\t            </ui-select-choices>\n       \t\t</ui-select>\n\t\t</div>\n\t</div>\n</div>')}]),b.module("pn-survey/widgets/number.tpl.html",[]).run(["$templateCache",function(a){a.put("pn-survey/widgets/number.tpl.html",'<div class="survey-block">\n\t<div class="survey-question">\n\t\t{{question.label}}\n\t</div>\n\t<div>\n\t\t<input type="text" class="input-string" placeholder="Enter Text"  id="{{question.id}}" ng-model="question.value"/>\n\t</div>\n</div>')}]),b.module("pn-survey/widgets/radio.tpl.html",[]).run(["$templateCache",function(a){a.put("pn-survey/widgets/radio.tpl.html",'<div class="survey-block">\n\t<div class="survey-question">\n\t\t{{question.label}}\n\t</div>\n\t<div ng-repeat="option in question.options">\n\t\t<span ng-if="option.visibility==\'visible\'">\n\t\t\t<input type="radio" ng-value="option.id" id="{{option.id}}" ng-model="question.selected" ng-change="optionChanged(option, question.selected, \'{{question.selected}}\')"/>\n\t\t\t<label class="answer" for="{{option.id}}"><span/>{{option.label}}</label>\n\t\t\t<span ng-if="option.type==\'freetext\'">\n\t\t\t\t<input type="text" id="{{option.id}}" ng-model="question.value" placeholder="specify" />\n\t\t\t</span>\n\t\t</span>\n\t</div>\n</div>\n')}]),b.module("pn-survey/widgets/select.tpl.html",[]).run(["$templateCache",function(a){a.put("pn-survey/widgets/select.tpl.html",'<div class="survey-block">\n\t<div class="survey-question">\n\t\t{{question.label}}\n\t</div>\n\t<div>\n\t\t<input type="text" class="input-string" placeholder="Enter Text"  id="{{question.id}}" ng-model="question.value"/>\n\t</div>\n</div>')}]),b.module("pn-survey/widgets/string.tpl.html",[]).run(["$templateCache",function(a){a.put("pn-survey/widgets/string.tpl.html",'<div class="survey-block">\n\t<div class="survey-question">\n\t\t{{question.label}}\n\t</div>\n\t<div>\n\t\t<input type="text" class="input-string" placeholder="Enter Text"  id="{{question.id}}" ng-model="question.value"/>\n\t</div>\n</div>')}]),b.module("templates-common",["../unityeditor-components/src/components/alert/alert.tpl.html","../unityeditor-components/src/components/checkbox/checkbox.tpl.html","../unityeditor-components/src/components/progress/progress.tpl.html","../unityeditor-components/src/components/switch/switch.tpl.html","../unityeditor-components/src/components/wizard-progress/wizard-progress.tpl.html"]),b.module("../unityeditor-components/src/components/alert/alert.tpl.html",[]).run(["$templateCache",function(a){a.put("../unityeditor-components/src/components/alert/alert.tpl.html",'<alert class="alert" ng-show="alertText" type="{{alertType}}" ng-click="resetAlert()" close>\n\t<div ng-bind-html="alertText"></div>\n\t<div class="more-info" ng-show="getShowMoreinfo()">\n\t\t<span ng-bind-html="linkPreText"></span>&nbsp;<span class="alertlink" ng-click="linkClickHandler()" ng-bind-html="linkText"></span><span ng-bind-html="linkSuffixText"></span>\n\t</div>\n</alert>\n')}]),b.module("../unityeditor-components/src/components/checkbox/checkbox.tpl.html",[]).run(["$templateCache",function(a){a.put("../unityeditor-components/src/components/checkbox/checkbox.tpl.html",'<label class="ut-checkbox toggleswitch toggleswitch-green" style="margin-top:3px;">\n  <input type="checkbox" ng-model="utCheckboxModel" name="checkbox{{$id}}" id="checkbox{{$id}}" class="toggleswitch-input">\n  <span for="checkbox{{$id}}" class="ut-checkmark toggleswitch-label" data-on="On" data-off="Off"></span>\n  <span for="checkbox{{$id}}" class="ut-checkbox-label toggleswitch-handle"></span>\n</label>')}]),b.module("../unityeditor-components/src/components/progress/progress.tpl.html",[]).run(["$templateCache",function(a){a.put("../unityeditor-components/src/components/progress/progress.tpl.html",'<div class="ut-progress-container">\n  <span class="ut-progress-label" ng-if="utProgressLabel" ng-bind="utProgressLabel">\n  </span>\n\n  <div class="spinner" ng-include="\'assets/icons/svg/spinner.svg\'"></div>\n</div>\n')}]),b.module("../unityeditor-components/src/components/switch/switch.tpl.html",[]).run(["$templateCache",function(a){a.put("../unityeditor-components/src/components/switch/switch.tpl.html",'<div class="slider" ng-click="toggleValue()" ng-class="{checked: checked, enabled: value}">\n\t<div class="circle"></div>\n\t<div class="ut-bar-in-progress" ng-if="inProgress"></div>\n</div>\n')}]),b.module("../unityeditor-components/src/components/wizard-progress/wizard-progress.tpl.html",[]).run(["$templateCache",function(a){a.put("../unityeditor-components/src/components/wizard-progress/wizard-progress.tpl.html","<ul ng-if=\"utStep\" class=\"wizard-progress\">\n    <li ng-repeat=\"steps in utSteps track by $index\">\n        <div class=\"line {{$first ? 'first' : ''}} {{$index + 1 > utStep ? 'incomplete' : 'complete'}}\">\n        </div>\n\n        <div ng-if=\"$index + 1 == utStep\" class=\"dot surround\">\n        </div>\n\n        <div class=\"dot {{$index + 1 > utStep ? 'incomplete' : 'complete'}}\">\n        </div>\n\n        <div class=\"line {{$last ? 'last' : ''}} {{$index + 1 >= utStep ? 'incomplete' : 'complete'}}\">\n        </div>\n    </li>\n</ul>")}])}(window,window.angular),angular.module("gettext").run(["gettextCatalog",function(a){a.setStrings("ja",{"Getting started":"はじめに",New:"新規",Open:"開く",Projects:"プロジェクト","Sign in":"サインイン","Welcome to Unity":"Unityへようこそ"})}]);