|
|
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.default=e():t.default=e()}(window,(function(){return function(t){function e(e){for(var n,i,o=e[0],s=e[1],a=0,c=[];a<o.length;a++)i=o[a],Object.prototype.hasOwnProperty.call(r,i)&&r[i]&&c.push(r[i][0]),r[i]=0;for(n in s)Object.prototype.hasOwnProperty.call(s,n)&&(t[n]=s[n]);for(u&&u(e);c.length;)c.shift()()}var n={},r={0:0};function i(e){if(n[e])return n[e].exports;var r=n[e]={i:e,l:!1,exports:{}};return t[e].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.e=function(){return Promise.resolve()},i.m=t,i.c=n,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)i.d(n,r,function(e){return t[e]}.bind(null,r));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i.oe=function(t){throw console.error(t),t};var o=window.webpackJsonpdefault=window.webpackJsonpdefault||[],s=o.push.bind(o);o.push=e,o=o.slice();for(var a=0;a<o.length;a++)e(o[a]);var u=s;return i(i.s=108)}({0:function(t,e,n){var r=n(4),i=n(24),o=n(13),s=n(12),a=n(19),u=function(t,e,n){var c,l,f,h,p=t&u.F,d=t&u.G,g=t&u.S,v=t&u.P,m=t&u.B,y=d?r:g?r[e]||(r[e]={}):(r[e]||{}).prototype,b=d?i:i[e]||(i[e]={}),w=b.prototype||(b.prototype={});for(c in d&&(n=e),n)f=((l=!p&&y&&void 0!==y[c])?y:n)[c],h=m&&l?a(f,r):v&&"function"==typeof f?a(Function.call,f):f,y&&s(y,c,f,t&u.U),b[c]!=f&&o(b,c,h),v&&w[c]!=f&&(w[c]=f)};r.core=i,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},1:function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},10:function(t,e,n){var r=n(0),i=n(1),o=n(27),s=/"/g,a=function(t,e,n,r){var i=String(o(t)),a="<"+e;return""!==n&&(a+=" "+n+'="'+String(r).replace(s,""")+'"'),a+">"+i+"</"+e+">"};t.exports=function(t,e){var n={};n[t]=e(a),r(r.P+r.F*i((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3})),"String",n)}},100:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},101:function(t,e,n){"use strict";var r=n(76);n(0)({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},102:function(t,e,n){n(8)&&"g"!=/./g.flags&&n(6).f(RegExp.prototype,"flags",{configurable:!0,get:n(50)})},103:function(t,e,n){var r,i,o,s=n(19),a=n(87),u=n(62),c=n(57),l=n(4),f=l.process,h=l.setImmediate,p=l.clearImmediate,d=l.MessageChannel,g=l.Dispatch,v=0,m={},y=function(){var t=+this;if(m.hasOwnProperty(t)){var e=m[t];delete m[t],e()}},b=function(t){y.call(t.data)};h&&p||(h=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return m[++v]=function(){a("function"==typeof t?t:Function(t),e)},r(v),v},p=function(t){delete m[t]},"process"==n(21)(f)?r=function(t){f.nextTick(s(y,t,1))}:g&&g.now?r=function(t){g.now(s(y,t,1))}:d?(o=(i=new d).port2,i.port1.onmessage=b,r=s(o.postMessage,o,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(r=function(t){l.postMessage(t+"","*")},l.addEventListener("message",b,!1)):r="onreadystatechange"in c("script")?function(t){u.appendChild(c("script")).onreadystatechange=function(){u.removeChild(this),y.call(t)}}:function(t){setTimeout(s(y,t,1),0)}),t.exports={set:h,clear:p}},104:function(t,e,n){"use strict";var r=n(20);function i(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)}t.exports.f=function(t){return new i(t)}},105:function(t,e,n){"use strict";var r=n(6).f,i=n(32),o=n(39),s=n(19),a=n(38),u=n(54),c=n(69),l=n(100),f=n(37),h=n(8),p=n(26).fastKey,d=n(35),g=h?"_s":"size",v=function(t,e){var n,r=p(e);if("F"!==r)return t._i[r];for(n=t._f;n;n=n.n)if(n.k==e)return n};t.exports={getConstructor:function(t,e,n,c){var l=t((function(t,r){a(t,l,e,"_i"),t._t=e,t._i=i(null),t._f=void 0,t._l=void 0,t[g]=0,null!=r&&u(r,n,t[c],t)}));return o(l.prototype,{clear:function(){for(var t=d(this,e),n=t._i,r=t._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];t._f=t._l=void 0,t[g]=0},delete:function(t){var n=d(this,e),r=v(n,t);if(r){var i=r.n,o=r.p;delete n._i[r.i],r.r=!0,o&&(o.n=i),i&&(i.p=o),n._f==r&&(n._f=i),n._l==r&&(n._l=o),n[g]--}return!!r},forEach:function(t){d(this,e);for(var n,r=s(t,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(t){return!!v(d(this,e),t)}}),h&&r(l.prototype,"size",{get:function(){return d(this,e)[g]}}),l},def:function(t,e,n){var r,i,o=v(t,e);return o?o.v=n:(t._l=o={i:i=p(e,!0),k:e,v:n,p:r=t._l,n:void 0,r:!1},t._f||(t._f=o),r&&(r.n=o),t[g]++,"F"!==i&&(t._i[i]=o)),t},getEntry:v,setStrong:function(t,e,n){c(t,e,(function(t,n){this._t=d(t,e),this._k=n,this._l=void 0}),(function(){for(var t=this._k,e=this._l;e&&e.r;)e=e.p;return this._t&&(this._l=e=e?e.n:this._t._f)?l(0,"keys"==t?e.k:"values"==t?e.v:[e.k,e.v]):(this._t=void 0,l(1))}),n?"entries":"values",!n,!0),f(e)}}},106:function(t,e,n){"use strict";var r=n(39),i=n(26).getWeak,o=n(2),s=n(3),a=n(38),u=n(54),c=n(18),l=n(11),f=n(35),h=c(5),p=c(6),d=0,g=function(t){return t._l||(t._l=new v)},v=function(){this.a=[]},m=function(t,e){return h(t.a,(function(t){return t[0]===e}))};v.prototype={get:function(t){var e=m(this,t);if(e)return e[1]},has:function(t){return!!m(this,t)},set:function(t,e){var n=m(this,t);n?n[1]=e:this.a.push([t,e])},delete:function(t){var e=p(this.a,(function(e){return e[0]===t}));return~e&&this.a.splice(e,1),!!~e}},t.exports={getConstructor:function(t,e,n,o){var c=t((function(t,r){a(t,c,e,"_i"),t._t=e,t._i=d++,t._l=void 0,null!=r&&u(r,n,t[o],t)}));return r(c.prototype,{delete:function(t){if(!s(t))return!1;var n=i(t);return!0===n?g(f(this,e)).delete(t):n&&l(n,this._i)&&delete n[this._i]},has:function(t){if(!s(t))return!1;var n=i(t);return!0===n?g(f(this,e)).has(t):n&&l(n,this._i)}}),c},def:function(t,e,n){var r=i(o(e),!0);return!0===r?g(t).set(e,n):r[t._i]=n,t},ufstore:g}},107:function(t,e,n){var r=n(16),i=n(7);t.exports=function(t){if(void 0===t)return 0;var e=r(t),n=i(e);if(e!==n)throw RangeError("Wrong length!");return n}},108:function(t,e,n){"use strict";n.r(e);var r=n("splunkjs/mvc/messages"),i=n.n(r);n.d(e,"MVCMessages",(function(){return i.a}));var o=n("views/search/title/SearchName"),s=n.n(o);n.d(e,"SearchName",(function(){return s.a}));var a=n("shim/splunk.util"),u=n.n(a);n.d(e,"SplunkUtil",(function(){return u.a}))},109:function(t,e){(function(){var t;void 0!==(t=this).Splunk&&t.Splunk||(t.Splunk={}),t.Splunk.namespace=function(t){for(var e=t.split("."),n=Splunk,r="Splunk"==e[0]?1:0;r<e.length;r+=1)n[e[r]]=n[e[r]]||{},n=n[e[r]];return n}}).call(window)},11:function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},110:function(t,e){t.exports=function(){var t=/%%|%(\d+\$)?(\([^)]+\))?([-+#0 ]*)(\*\d+\$|\*|\d+)?(\.(\*\d+\$|\*|\d+))?([scboxXuidfegEG])/g,e=arguments,n=0,r=e[n++],i=function(t,e,n,r){var i=t.length>=e?"":Array(1+e-t.length>>>0).join(n);return r?t+i:i+t},o=function(t,e,n,r,o){var s=r-t.length;return s>0&&(t=n||!o?i(t,r," ",n):t.slice(0,e.length)+i("",s,"0",!0)+t.slice(e.length)),t},s=function(t,e,n,r,s,a,u){var c=t>>>0;return t=(n=n&&c&&{2:"0b",8:"0",16:"0x"}[e]||"")+i(c.toString(e),a||0,"0",!1),o(t,n,r,s,u)},a=function(t,e,n,r,i){return null!=r&&(t=t.slice(0,r)),o(t,"",e,n,i)},u=function(t,r,u,c,l,f,h,p){if("%%"==t)return"%";for(var d=!1,g="",v=!1,m=!1,y=c.length,b=0;c&&b<y;b++)switch(c.charAt(b)){case" ":g=" ";break;case"+":g="+";break;case"-":d=!0;break;case"0":v=!0;break;case"#":m=!0}if((l=l?"*"==l?+e[n++]:"*"==l.charAt(0)?+e[l.slice(1,-1)]:+l:0)<0&&(l=-l,d=!0),!isFinite(l))throw new Error("sprintf: (minimum-)width must be finite");if(h=h?"*"==h?+e[n++]:"*"==h.charAt(0)?+e[h.slice(1,-1)]:+h:"fFeE".indexOf(p)>-1?6:"d"==p?0:void 0,u){u=u.substr(1,u.length-2);var w=e[1][u]}else w=r?e[r.slice(0,-1)]:e[n++];switch(p){case"s":return a(String(w),d,l,h,v);case"c":return a(String.fromCharCode(+w),d,l,h,v);case"b":return s(w,2,m,d,l,h,v);case"o":return s(w,8,m,d,l,h,v);case"x":return s(w,16,m,d,l,h,v);case"X":return s(w,16,m,d,l,h,v).toUpperCase();case"u":return s(w,10,m,d,l,h,v);case"i":case"d":return w=(x=(_=parseInt(+w))<0?"-":g)+i(String(Math.abs(_)),h,"0",!1),o(w,x,d,l,v);case"e":case"E":case"f":case"F":case"g":case"G":var _,x=(_=+w)<0?"-":g,E=["toExponential","toFixed","toPrecision"]["efg".indexOf(p.toLowerCase())],S=["toString","toUpperCase"]["eEfFgG".indexOf(p)%2];return w=x+Math.abs(_)[E](h),o(w,x,d,l,v)[S]();default:return t}};return r.replace(t,u)}},111:function(t,e,n){var r;
|
|
|
/*!
|
|
|
* jQuery JavaScript Library v3.5.0
|
|
|
* https://jquery.com/
|
|
|
*
|
|
|
* Includes Sizzle.js
|
|
|
* https://sizzlejs.com/
|
|
|
*
|
|
|
* Copyright JS Foundation and other contributors
|
|
|
* Released under the MIT license
|
|
|
* https://jquery.org/license
|
|
|
*
|
|
|
* Date: 2020-04-10T15:07Z
|
|
|
*/!function(e,n){"use strict";"object"==typeof t.exports?t.exports=e.document?n(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return n(t)}:n(e)}("undefined"!=typeof window?window:this,(function(n,i){"use strict";var o=[],s=Object.getPrototypeOf,a=o.slice,u=o.flat?function(t){return o.flat.call(t)}:function(t){return o.concat.apply([],t)},c=o.push,l=o.indexOf,f={},h=f.toString,p=f.hasOwnProperty,d=p.toString,g=d.call(Object),v={},m=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType},y=function(t){return null!=t&&t===t.window},b=n.document,w={type:!0,src:!0,nonce:!0,noModule:!0};function _(t,e,n){var r,i,o=(n=n||b).createElement("script");if(o.text=t,e)for(r in w)(i=e[r]||e.getAttribute&&e.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function x(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?f[h.call(t)]||"object":typeof t}var E=function(t,e){return new E.fn.init(t,e)};function S(t){var e=!!t&&"length"in t&&t.length,n=x(t);return!m(t)&&!y(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}E.fn=E.prototype={jquery:"3.5.0",constructor:E,length:0,toArray:function(){return a.call(this)},get:function(t){return null==t?a.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=E.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return E.each(this,t)},map:function(t){return this.pushStack(E.map(this,(function(e,n){return t.call(e,n,e)})))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(E.grep(this,(function(t,e){return(e+1)%2})))},odd:function(){return this.pushStack(E.grep(this,(function(t,e){return e%2})))},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n<e?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:c,sort:o.sort,splice:o.splice},E.extend=E.fn.extend=function(){var t,e,n,r,i,o,s=arguments[0]||{},a=1,u=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[a]||{},a++),"object"==typeof s||m(s)||(s={}),a===u&&(s=this,a--);a<u;a++)if(null!=(t=arguments[a]))for(e in t)r=t[e],"__proto__"!==e&&s!==r&&(c&&r&&(E.isPlainObject(r)||(i=Array.isArray(r)))?(n=s[e],o=i&&!Array.isArray(n)?[]:i||E.isPlainObject(n)?n:{},i=!1,s[e]=E.extend(c,o,r)):void 0!==r&&(s[e]=r));return s},E.extend({expando:"jQuery"+("3.5.0"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){var e,n;return!(!t||"[object Object]"!==h.call(t))&&(!(e=s(t))||"function"==typeof(n=p.call(e,"constructor")&&e.constructor)&&d.call(n)===g)},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},globalEval:function(t,e,n){_(t,{nonce:e&&e.nonce},n)},each:function(t,e){var n,r=0;if(S(t))for(n=t.length;r<n&&!1!==e.call(t[r],r,t[r]);r++);else for(r in t)if(!1===e.call(t[r],r,t[r]))break;return t},makeArray:function(t,e){var n=e||[];return null!=t&&(S(Object(t))?E.merge(n,"string"==typeof t?[t]:t):c.call(n,t)),n},inArray:function(t,e,n){return null==e?-1:l.call(e,t,n)},merge:function(t,e){for(var n=+e.length,r=0,i=t.length;r<n;r++)t[i++]=e[r];return t.length=i,t},grep:function(t,e,n){for(var r=[],i=0,o=t.length,s=!n;i<o;i++)!e(t[i],i)!==s&&r.push(t[i]);return r},map:function(t,e,n){var r,i,o=0,s=[];if(S(t))for(r=t.length;o<r;o++)null!=(i=e(t[o],o,n))&&s.push(i);else for(o in t)null!=(i=e(t[o],o,n))&&s.push(i);return u(s)},guid:1,support:v}),"function"==typeof Symbol&&(E.fn[Symbol.iterator]=o[Symbol.iterator]),E.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(t,e){f["[object "+e+"]"]=e.toLowerCase()}));var T=
|
|
|
/*!
|
|
|
* Sizzle CSS Selector Engine v2.3.5
|
|
|
* https://sizzlejs.com/
|
|
|
*
|
|
|
* Copyright JS Foundation and other contributors
|
|
|
* Released under the MIT license
|
|
|
* https://js.foundation/
|
|
|
*
|
|
|
* Date: 2020-03-14
|
|
|
*/
|
|
|
function(t){var e,n,r,i,o,s,a,u,c,l,f,h,p,d,g,v,m,y,b,w="sizzle"+1*new Date,_=t.document,x=0,E=0,S=ut(),T=ut(),A=ut(),k=ut(),O=function(t,e){return t===e&&(f=!0),0},N={}.hasOwnProperty,C=[],F=C.pop,j=C.push,I=C.push,D=C.slice,R=function(t,e){for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1},M="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",P="[\\x20\\t\\r\\n\\f]",L="(?:\\\\[\\da-fA-F]{1,6}"+P+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",U="\\["+P+"*("+L+")(?:"+P+"*([*^$|!~]?=)"+P+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+L+"))|)"+P+"*\\]",B=":("+L+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+U+")*)|.*)\\)|)",q=new RegExp(P+"+","g"),V=new RegExp("^"+P+"+|((?:^|[^\\\\])(?:\\\\.)*)"+P+"+$","g"),$=new RegExp("^"+P+"*,"+P+"*"),H=new RegExp("^"+P+"*([>+~]|"+P+")"+P+"*"),W=new RegExp(P+"|>"),z=new RegExp(B),G=new RegExp("^"+L+"$"),Y={ID:new RegExp("^#("+L+")"),CLASS:new RegExp("^\\.("+L+")"),TAG:new RegExp("^("+L+"|[*])"),ATTR:new RegExp("^"+U),PSEUDO:new RegExp("^"+B),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+P+"*(even|odd|(([+-]|)(\\d*)n|)"+P+"*(?:([+-]|)"+P+"*(\\d+)|))"+P+"*\\)|)","i"),bool:new RegExp("^(?:"+M+")$","i"),needsContext:new RegExp("^"+P+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+P+"*((?:-\\d)?\\d*)"+P+"*\\)|)(?=[^-]|$)","i")},X=/HTML$/i,J=/^(?:input|select|textarea|button)$/i,Q=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,tt=/[+~]/,et=new RegExp("\\\\[\\da-fA-F]{1,6}"+P+"?|\\\\([^\\r\\n\\f])","g"),nt=function(t,e){var n="0x"+t.slice(1)-65536;return e||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},rt=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,it=function(t,e){return e?"\0"===t?"<22>":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},ot=function(){h()},st=wt((function(t){return!0===t.disabled&&"fieldset"===t.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{I.apply(C=D.call(_.childNodes),_.childNodes),C[_.childNodes.length].nodeType}catch(t){I={apply:C.length?function(t,e){j.apply(t,D.call(e))}:function(t,e){for(var n=t.length,r=0;t[n++]=e[r++];);t.length=n-1}}}function at(t,e,r,i){var o,a,c,l,f,d,m,y=e&&e.ownerDocument,_=e?e.nodeType:9;if(r=r||[],"string"!=typeof t||!t||1!==_&&9!==_&&11!==_)return r;if(!i&&(h(e),e=e||p,g)){if(11!==_&&(f=Z.exec(t)))if(o=f[1]){if(9===_){if(!(c=e.getElementById(o)))return r;if(c.id===o)return r.push(c),r}else if(y&&(c=y.getElementById(o))&&b(e,c)&&c.id===o)return r.push(c),r}else{if(f[2])return I.apply(r,e.getElementsByTagName(t)),r;if((o=f[3])&&n.getElementsByClassName&&e.getElementsByClassName)return I.apply(r,e.getElementsByClassName(o)),r}if(n.qsa&&!k[t+" "]&&(!v||!v.test(t))&&(1!==_||"object"!==e.nodeName.toLowerCase())){if(m=t,y=e,1===_&&(W.test(t)||H.test(t))){for((y=tt.test(t)&&mt(e.parentNode)||e)===e&&n.scope||((l=e.getAttribute("id"))?l=l.replace(rt,it):e.setAttribute("id",l=w)),a=(d=s(t)).length;a--;)d[a]=(l?"#"+l:":scope")+" "+bt(d[a]);m=d.join(",")}try{return I.apply(r,y.querySelectorAll(m)),r}catch(e){k(t,!0)}finally{l===w&&e.removeAttribute("id")}}}return u(t.replace(V,"$1"),e,r,i)}function ut(){var t=[];return function e(n,i){return t.push(n+" ")>r.cacheLength&&delete e[t.shift()],e[n+" "]=i}}function ct(t){return t[w]=!0,t}function lt(t){var e=p.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function ft(t,e){for(var n=t.split("|"),i=n.length;i--;)r.attrHandle[n[i]]=e}function ht(t,e){var n=e&&t,r=n&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function pt(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function dt(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}function gt(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&st(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function vt(t){return ct((function(e){return e=+e,ct((function(n,r){for(var i,o=t([],n.length,e),s=o.length;s--;)n[i=o[s]]&&(n[i]=!(r[i]=n[i]))}))}))}function mt(t){return t&&void 0!==t.getElementsByTagName&&t}for(e in n=at.support={},o=at.isXML=function(t){var e=t.namespaceURI,n=(t.ownerDocument||t).documentElement;return!X.test(e||n&&n.nodeName||"HTML")},h=at.setDocument=function(t){var e,i,s=t?t.ownerDocument||t:_;return s!=p&&9===s.nodeType&&s.documentElement?(d=(p=s).documentElement,g=!o(p),_!=p&&(i=p.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",ot,!1):i.attachEvent&&i.attachEvent("onunload",ot)),n.scope=lt((function(t){return d.appendChild(t).appendChild(p.createElement("div")),void 0!==t.querySelectorAll&&!t.querySelectorAll(":scope fieldset div").length})),n.attributes=lt((function(t){return t.className="i",!t.getAttribute("className")})),n.getElementsByTagName=lt((function(t){return t.appendChild(p.createComment("")),!t.getElementsByTagName("*").length})),n.getElementsByClassName=K.test(p.getElementsByClassName),n.getById=lt((function(t){return d.appendChild(t).id=w,!p.getElementsByName||!p.getElementsByName(w).length})),n.getById?(r.filter.ID=function(t){var e=t.replace(et,nt);return function(t){return t.getAttribute("id")===e}},r.find.ID=function(t,e){if(void 0!==e.getElementById&&g){var n=e.getElementById(t);return n?[n]:[]}}):(r.filter.ID=function(t){var e=t.replace(et,nt);return function(t){var n=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}},r.find.ID=function(t,e){if(void 0!==e.getElementById&&g){var n,r,i,o=e.getElementById(t);if(o){if((n=o.getAttributeNode("id"))&&n.value===t)return[o];for(i=e.getElementsByName(t),r=0;o=i[r++];)if((n=o.getAttributeNode("id"))&&n.value===t)return[o]}return[]}}),r.find.TAG=n.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):n.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,r=[],i=0,o=e.getElementsByTagName(t);if("*"===t){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},r.find.CLASS=n.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&g)return e.getElementsByClassName(t)},m=[],v=[],(n.qsa=K.test(p.querySelectorAll))&&(lt((function(t){var e;d.appendChild(t).innerHTML="<a id='"+w+"'></a><select id='"+w+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+P+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||v.push("\\["+P+"*(?:value|"+M+")"),t.querySelectorAll("[id~="+w+"-]").length||v.push("~="),(e=p.createElement("input")).setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||v.push("\\["+P+"*name"+P+"*="+P+"*(?:''|\"\")"),t.querySelectorAll(":checked").length||v.push(":checked"),t.querySelectorAll("a#"+w+"+*").length||v.push(".#.+[+~]"),t.querySelectorAll("\\\f"),v.push("[\\r\\n\\f]")})),lt((function(t){t.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var e=p.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&v.push("name"+P+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),d.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),v.push(",.*:")}))),(n.matchesSelector=K.test(y=d.matches||d.webkitMatchesSelector||d.mozMatchesSelector||d.oMatchesSelector||d.msMatchesSelector))&<((function(t){n.disconnectedMatch=y.call(t,"*"),y.call(t,"[s!='']:x"),m.push("!=",B)})),v=v.length&&new RegExp(v.join("|")),m=m.length&&new RegExp(m.join("|")),e=K.test(d.compareDocumentPosition),b=e||K.test(d.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,r=e&&e.parentNode;return t===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):t.compareDocumentPosition&&16&t.compareDocumentPosition(r)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},O=e?function(t,e){if(t===e)return f=!0,0;var r=!t.compareDocumentPosition-!e.compareDocumentPosition;return r||(1&(r=(t.ownerDocument||t)==(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!n.sortDetached&&e.compareDocumentPosition(t)===r?t==p||t.ownerDocument==_&&b(_,t)?-1:e==p||e.ownerDocument==_&&b(_,e)?1:l?R(l,t)-R(l,e):0:4&r?-1:1)}:function(t,e){if(t===e)return f=!0,0;var n,r=0,i=t.parentNode,o=e.parentNode,s=[t],a=[e];if(!i||!o)return t==p?-1:e==p?1:i?-1:o?1:l?R(l,t)-R(l,e):0;if(i===o)return ht(t,e);for(n=t;n=n.parentNode;)s.unshift(n);for(n=e;n=n.parentNode;)a.unshift(n);for(;s[r]===a[r];)r++;return r?ht(s[r],a[r]):s[r]==_?-1:a[r]==_?1:0},p):p},at.matches=function(t,e){return at(t,null,null,e)},at.matchesSelector=function(t,e){if(h(t),n.matchesSelector&&g&&!k[e+" "]&&(!m||!m.test(e))&&(!v||!v.test(e)))try{var r=y.call(t,e);if(r||n.disconnectedMatch||t.document&&11!==t.document.nodeType)return r}catch(t){k(e,!0)}return at(e,p,null,[t]).length>0},at.contains=function(t,e){return(t.ownerDocument||t)!=p&&h(t),b(t,e)},at.attr=function(t,e){(t.ownerDocument||t)!=p&&h(t);var i=r.attrHandle[e.toLowerCase()],o=i&&N.call(r.attrHandle,e.toLowerCase())?i(t,e,!g):void 0;return void 0!==o?o:n.attributes||!g?t.getAttribute(e):(o=t.getAttributeNode(e))&&o.specified?o.value:null},at.escape=function(t){return(t+"").replace(rt,it)},at.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},at.uniqueSort=function(t){var e,r=[],i=0,o=0;if(f=!n.detectDuplicates,l=!n.sortStable&&t.slice(0),t.sort(O),f){for(;e=t[o++];)e===t[o]&&(i=r.push(o));for(;i--;)t.splice(r[i],1)}return l=null,t},i=at.getText=function(t){var e,n="",r=0,o=t.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=i(t)}else if(3===o||4===o)return t.nodeValue}else for(;e=t[r++];)n+=i(e);return n},(r=at.selectors={cacheLength:50,createPseudo:ct,match:Y,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(et,nt),t[3]=(t[3]||t[4]||t[5]||"").replace(et,nt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||at.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&at.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return Y.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&z.test(n)&&(e=s(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(et,nt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=S[t+" "];return e||(e=new RegExp("(^|"+P+")"+t+"("+P+"|$)"))&&S(t,(function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")}))},ATTR:function(t,e,n){return function(r){var i=at.attr(r,t);return null==i?"!="===e:!e||(i+="","="===e?i===n:"!="===e?i!==n:"^="===e?n&&0===i.indexOf(n):"*="===e?n&&i.indexOf(n)>-1:"$="===e?n&&i.slice(-n.length)===n:"~="===e?(" "+i.replace(q," ")+" ").indexOf(n)>-1:"|="===e&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,n,r,i){var o="nth"!==t.slice(0,3),s="last"!==t.slice(-4),a="of-type"===e;return 1===r&&0===i?function(t){return!!t.parentNode}:function(e,n,u){var c,l,f,h,p,d,g=o!==s?"nextSibling":"previousSibling",v=e.parentNode,m=a&&e.nodeName.toLowerCase(),y=!u&&!a,b=!1;if(v){if(o){for(;g;){for(h=e;h=h[g];)if(a?h.nodeName.toLowerCase()===m:1===h.nodeType)return!1;d=g="only"===t&&!d&&"nextSibling"}return!0}if(d=[s?v.firstChild:v.lastChild],s&&y){for(b=(p=(c=(l=(f=(h=v)[w]||(h[w]={}))[h.uniqueID]||(f[h.uniqueID]={}))[t]||[])[0]===x&&c[1])&&c[2],h=p&&v.childNodes[p];h=++p&&h&&h[g]||(b=p=0)||d.pop();)if(1===h.nodeType&&++b&&h===e){l[t]=[x,p,b];break}}else if(y&&(b=p=(c=(l=(f=(h=e)[w]||(h[w]={}))[h.uniqueID]||(f[h.uniqueID]={}))[t]||[])[0]===x&&c[1]),!1===b)for(;(h=++p&&h&&h[g]||(b=p=0)||d.pop())&&((a?h.nodeName.toLowerCase()!==m:1!==h.nodeType)||!++b||(y&&((l=(f=h[w]||(h[w]={}))[h.uniqueID]||(f[h.uniqueID]={}))[t]=[x,b]),h!==e)););return(b-=i)===r||b%r==0&&b/r>=0}}},PSEUDO:function(t,e){var n,i=r.pseudos[t]||r.setFilters[t.toLowerCase()]||at.error("unsupported pseudo: "+t);return i[w]?i(e):i.length>1?(n=[t,t,"",e],r.setFilters.hasOwnProperty(t.toLowerCase())?ct((function(t,n){for(var r,o=i(t,e),s=o.length;s--;)t[r=R(t,o[s])]=!(n[r]=o[s])})):function(t){return i(t,0,n)}):i}},pseudos:{not:ct((function(t){var e=[],n=[],r=a(t.replace(V,"$1"));return r[w]?ct((function(t,e,n,i){for(var o,s=r(t,null,i,[]),a=t.length;a--;)(o=s[a])&&(t[a]=!(e[a]=o))})):function(t,i,o){return e[0]=t,r(e,null,o,n),e[0]=null,!n.pop()}})),has:ct((function(t){return function(e){return at(t,e).length>0}})),contains:ct((function(t){return t=t.replace(et,nt),function(e){return(e.textContent||i(e)).indexOf(t)>-1}})),lang:ct((function(t){return G.test(t||"")||at.error("unsupported lang: "+t),t=t.replace(et,nt).toLowerCase(),function(e){var n;do{if(n=g?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(n=n.toLowerCase())===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}})),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===d},focus:function(t){return t===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:gt(!1),disabled:gt(!0),checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!r.pseudos.empty(t)},header:function(t){return Q.test(t.nodeName)},input:function(t){return J.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:vt((function(){return[0]})),last:vt((function(t,e){return[e-1]})),eq:vt((function(t,e,n){return[n<0?n+e:n]})),even:vt((function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t})),odd:vt((function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t})),lt:vt((function(t,e,n){for(var r=n<0?n+e:n>e?e:n;--r>=0;)t.push(r);return t})),gt:vt((function(t,e,n){for(var r=n<0?n+e:n;++r<e;)t.push(r);return t}))}}).pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[e]=pt(e);for(e in{submit:!0,reset:!0})r.pseudos[e]=dt(e);function yt(){}function bt(t){for(var e=0,n=t.length,r="";e<n;e++)r+=t[e].value;return r}function wt(t,e,n){var r=e.dir,i=e.next,o=i||r,s=n&&"parentNode"===o,a=E++;return e.first?function(e,n,i){for(;e=e[r];)if(1===e.nodeType||s)return t(e,n,i);return!1}:function(e,n,u){var c,l,f,h=[x,a];if(u){for(;e=e[r];)if((1===e.nodeType||s)&&t(e,n,u))return!0}else for(;e=e[r];)if(1===e.nodeType||s)if(l=(f=e[w]||(e[w]={}))[e.uniqueID]||(f[e.uniqueID]={}),i&&i===e.nodeName.toLowerCase())e=e[r]||e;else{if((c=l[o])&&c[0]===x&&c[1]===a)return h[2]=c[2];if(l[o]=h,h[2]=t(e,n,u))return!0}return!1}}function _t(t){return t.length>1?function(e,n,r){for(var i=t.length;i--;)if(!t[i](e,n,r))return!1;return!0}:t[0]}function xt(t,e,n,r,i){for(var o,s=[],a=0,u=t.length,c=null!=e;a<u;a++)(o=t[a])&&(n&&!n(o,r,i)||(s.push(o),c&&e.push(a)));return s}function Et(t,e,n,r,i,o){return r&&!r[w]&&(r=Et(r)),i&&!i[w]&&(i=Et(i,o)),ct((function(o,s,a,u){var c,l,f,h=[],p=[],d=s.length,g=o||function(t,e,n){for(var r=0,i=e.length;r<i;r++)at(t,e[r],n);return n}(e||"*",a.nodeType?[a]:a,[]),v=!t||!o&&e?g:xt(g,h,t,a,u),m=n?i||(o?t:d||r)?[]:s:v;if(n&&n(v,m,a,u),r)for(c=xt(m,p),r(c,[],a,u),l=c.length;l--;)(f=c[l])&&(m[p[l]]=!(v[p[l]]=f));if(o){if(i||t){if(i){for(c=[],l=m.length;l--;)(f=m[l])&&c.push(v[l]=f);i(null,m=[],c,u)}for(l=m.length;l--;)(f=m[l])&&(c=i?R(o,f):h[l])>-1&&(o[c]=!(s[c]=f))}}else m=xt(m===s?m.splice(d,m.length):m),i?i(null,s,m,u):I.apply(s,m)}))}function St(t){for(var e,n,i,o=t.length,s=r.relative[t[0].type],a=s||r.relative[" "],u=s?1:0,l=wt((function(t){return t===e}),a,!0),f=wt((function(t){return R(e,t)>-1}),a,!0),h=[function(t,n,r){var i=!s&&(r||n!==c)||((e=n).nodeType?l(t,n,r):f(t,n,r));return e=null,i}];u<o;u++)if(n=r.relative[t[u].type])h=[wt(_t(h),n)];else{if((n=r.filter[t[u].type].apply(null,t[u].matches))[w]){for(i=++u;i<o&&!r.relative[t[i].type];i++);return Et(u>1&&_t(h),u>1&&bt(t.slice(0,u-1).concat({value:" "===t[u-2].type?"*":""})).replace(V,"$1"),n,u<i&&St(t.slice(u,i)),i<o&&St(t=t.slice(i)),i<o&&bt(t))}h.push(n)}return _t(h)}return yt.prototype=r.filters=r.pseudos,r.setFilters=new yt,s=at.tokenize=function(t,e){var n,i,o,s,a,u,c,l=T[t+" "];if(l)return e?0:l.slice(0);for(a=t,u=[],c=r.preFilter;a;){for(s in n&&!(i=$.exec(a))||(i&&(a=a.slice(i[0].length)||a),u.push(o=[])),n=!1,(i=H.exec(a))&&(n=i.shift(),o.push({value:n,type:i[0].replace(V," ")}),a=a.slice(n.length)),r.filter)!(i=Y[s].exec(a))||c[s]&&!(i=c[s](i))||(n=i.shift(),o.push({value:n,type:s,matches:i}),a=a.slice(n.length));if(!n)break}return e?a.length:a?at.error(t):T(t,u).slice(0)},a=at.compile=function(t,e){var n,i=[],o=[],a=A[t+" "];if(!a){for(e||(e=s(t)),n=e.length;n--;)(a=St(e[n]))[w]?i.push(a):o.push(a);(a=A(t,function(t,e){var n=e.length>0,i=t.length>0,o=function(o,s,a,u,l){var f,d,v,m=0,y="0",b=o&&[],w=[],_=c,E=o||i&&r.find.TAG("*",l),S=x+=null==_?1:Math.random()||.1,T=E.length;for(l&&(c=s==p||s||l);y!==T&&null!=(f=E[y]);y++){if(i&&f){for(d=0,s||f.ownerDocument==p||(h(f),a=!g);v=t[d++];)if(v(f,s||p,a)){u.push(f);break}l&&(x=S)}n&&((f=!v&&f)&&m--,o&&b.push(f))}if(m+=y,n&&y!==m){for(d=0;v=e[d++];)v(b,w,s,a);if(o){if(m>0)for(;y--;)b[y]||w[y]||(w[y]=F.call(u));w=xt(w)}I.apply(u,w),l&&!o&&w.length>0&&m+e.length>1&&at.uniqueSort(u)}return l&&(x=S,c=_),b};return n?ct(o):o}(o,i))).selector=t}return a},u=at.select=function(t,e,n,i){var o,u,c,l,f,h="function"==typeof t&&t,p=!i&&s(t=h.selector||t);if(n=n||[],1===p.length){if((u=p[0]=p[0].slice(0)).length>2&&"ID"===(c=u[0]).type&&9===e.nodeType&&g&&r.relative[u[1].type]){if(!(e=(r.find.ID(c.matches[0].replace(et,nt),e)||[])[0]))return n;h&&(e=e.parentNode),t=t.slice(u.shift().value.length)}for(o=Y.needsContext.test(t)?0:u.length;o--&&(c=u[o],!r.relative[l=c.type]);)if((f=r.find[l])&&(i=f(c.matches[0].replace(et,nt),tt.test(u[0].type)&&mt(e.parentNode)||e))){if(u.splice(o,1),!(t=i.length&&bt(u)))return I.apply(n,i),n;break}}return(h||a(t,p))(i,e,!g,n,!e||tt.test(t)&&mt(e.parentNode)||e),n},n.sortStable=w.split("").sort(O).join("")===w,n.detectDuplicates=!!f,h(),n.sortDetached=lt((function(t){return 1&t.compareDocumentPosition(p.createElement("fieldset"))})),lt((function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")}))||ft("type|href|height|width",(function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)})),n.attributes&<((function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")}))||ft("value",(function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue})),lt((function(t){return null==t.getAttribute("disabled")}))||ft(M,(function(t,e,n){var r;if(!n)return!0===t[e]?e.toLowerCase():(r=t.getAttributeNode(e))&&r.specified?r.value:null})),at}(n);E.find=T,E.expr=T.selectors,E.expr[":"]=E.expr.pseudos,E.uniqueSort=E.unique=T.uniqueSort,E.text=T.getText,E.isXMLDoc=T.isXML,E.contains=T.contains,E.escapeSelector=T.escape;var A=function(t,e,n){for(var r=[],i=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(i&&E(t).is(n))break;r.push(t)}return r},k=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},O=E.expr.match.needsContext;function N(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}var C=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function F(t,e,n){return m(e)?E.grep(t,(function(t,r){return!!e.call(t,r,t)!==n})):e.nodeType?E.grep(t,(function(t){return t===e!==n})):"string"!=typeof e?E.grep(t,(function(t){return l.call(e,t)>-1!==n})):E.filter(e,t,n)}E.filter=function(t,e,n){var r=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===r.nodeType?E.find.matchesSelector(r,t)?[r]:[]:E.find.matches(t,E.grep(e,(function(t){return 1===t.nodeType})))},E.fn.extend({find:function(t){var e,n,r=this.length,i=this;if("string"!=typeof t)return this.pushStack(E(t).filter((function(){for(e=0;e<r;e++)if(E.contains(i[e],this))return!0})));for(n=this.pushStack([]),e=0;e<r;e++)E.find(t,i[e],n);return r>1?E.uniqueSort(n):n},filter:function(t){return this.pushStack(F(this,t||[],!1))},not:function(t){return this.pushStack(F(this,t||[],!0))},is:function(t){return!!F(this,"string"==typeof t&&O.test(t)?E(t):t||[],!1).length}});var j,I=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(E.fn.init=function(t,e,n){var r,i;if(!t)return this;if(n=n||j,"string"==typeof t){if(!(r="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:I.exec(t))||!r[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(r[1]){if(e=e instanceof E?e[0]:e,E.merge(this,E.parseHTML(r[1],e&&e.nodeType?e.ownerDocument||e:b,!0)),C.test(r[1])&&E.isPlainObject(e))for(r in e)m(this[r])?this[r](e[r]):this.attr(r,e[r]);return this}return(i=b.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):m(t)?void 0!==n.ready?n.ready(t):t(E):E.makeArray(t,this)}).prototype=E.fn,j=E(b);var D=/^(?:parents|prev(?:Until|All))/,R={children:!0,contents:!0,next:!0,prev:!0};function M(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}E.fn.extend({has:function(t){var e=E(t,this),n=e.length;return this.filter((function(){for(var t=0;t<n;t++)if(E.contains(this,e[t]))return!0}))},closest:function(t,e){var n,r=0,i=this.length,o=[],s="string"!=typeof t&&E(t);if(!O.test(t))for(;r<i;r++)for(n=this[r];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(s?s.index(n)>-1:1===n.nodeType&&E.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(o.length>1?E.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?l.call(E(t),this[0]):l.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(E.uniqueSort(E.merge(this.get(),E(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),E.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return A(t,"parentNode")},parentsUntil:function(t,e,n){return A(t,"parentNode",n)},next:function(t){return M(t,"nextSibling")},prev:function(t){return M(t,"previousSibling")},nextAll:function(t){return A(t,"nextSibling")},prevAll:function(t){return A(t,"previousSibling")},nextUntil:function(t,e,n){return A(t,"nextSibling",n)},prevUntil:function(t,e,n){return A(t,"previousSibling",n)},siblings:function(t){return k((t.parentNode||{}).firstChild,t)},children:function(t){return k(t.firstChild)},contents:function(t){return null!=t.contentDocument&&s(t.contentDocument)?t.contentDocument:(N(t,"template")&&(t=t.content||t),E.merge([],t.childNodes))}},(function(t,e){E.fn[t]=function(n,r){var i=E.map(this,e,n);return"Until"!==t.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=E.filter(r,i)),this.length>1&&(R[t]||E.uniqueSort(i),D.test(t)&&i.reverse()),this.pushStack(i)}}));var P=/[^\x20\t\r\n\f]+/g;function L(t){return t}function U(t){throw t}function B(t,e,n,r){var i;try{t&&m(i=t.promise)?i.call(t).done(e).fail(n):t&&m(i=t.then)?i.call(t,e,n):e.apply(void 0,[t].slice(r))}catch(t){n.apply(void 0,[t])}}E.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return E.each(t.match(P)||[],(function(t,n){e[n]=!0})),e}(t):E.extend({},t);var e,n,r,i,o=[],s=[],a=-1,u=function(){for(i=i||t.once,r=e=!0;s.length;a=-1)for(n=s.shift();++a<o.length;)!1===o[a].apply(n[0],n[1])&&t.stopOnFalse&&(a=o.length,n=!1);t.memory||(n=!1),e=!1,i&&(o=n?[]:"")},c={add:function(){return o&&(n&&!e&&(a=o.length-1,s.push(n)),function e(n){E.each(n,(function(n,r){m(r)?t.unique&&c.has(r)||o.push(r):r&&r.length&&"string"!==x(r)&&e(r)}))}(arguments),n&&!e&&u()),this},remove:function(){return E.each(arguments,(function(t,e){for(var n;(n=E.inArray(e,o,n))>-1;)o.splice(n,1),n<=a&&a--})),this},has:function(t){return t?E.inArray(t,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=s=[],o=n="",this},disabled:function(){return!o},lock:function(){return i=s=[],n||e||(o=n=""),this},locked:function(){return!!i},fireWith:function(t,n){return i||(n=[t,(n=n||[]).slice?n.slice():n],s.push(n),e||u()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},E.extend({Deferred:function(t){var e=[["notify","progress",E.Callbacks("memory"),E.Callbacks("memory"),2],["resolve","done",E.Callbacks("once memory"),E.Callbacks("once memory"),0,"resolved"],["reject","fail",E.Callbacks("once memory"),E.Callbacks("once memory"),1,"rejected"]],r="pending",i={state:function(){return r},always:function(){return o.done(arguments).fail(arguments),this},catch:function(t){return i.then(null,t)},pipe:function(){var t=arguments;return E.Deferred((function(n){E.each(e,(function(e,r){var i=m(t[r[4]])&&t[r[4]];o[r[1]]((function(){var t=i&&i.apply(this,arguments);t&&m(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,i?[t]:arguments)}))})),t=null})).promise()},then:function(t,r,i){var o=0;function s(t,e,r,i){return function(){var a=this,u=arguments,c=function(){var n,c;if(!(t<o)){if((n=r.apply(a,u))===e.promise())throw new TypeError("Thenable self-resolution");c=n&&("object"==typeof n||"function"==typeof n)&&n.then,m(c)?i?c.call(n,s(o,e,L,i),s(o,e,U,i)):(o++,c.call(n,s(o,e,L,i),s(o,e,U,i),s(o,e,L,e.notifyWith))):(r!==L&&(a=void 0,u=[n]),(i||e.resolveWith)(a,u))}},l=i?c:function(){try{c()}catch(n){E.Deferred.exceptionHook&&E.Deferred.exceptionHook(n,l.stackTrace),t+1>=o&&(r!==U&&(a=void 0,u=[n]),e.rejectWith(a,u))}};t?l():(E.Deferred.getStackHook&&(l.stackTrace=E.Deferred.getStackHook()),n.setTimeout(l))}}return E.Deferred((function(n){e[0][3].add(s(0,n,m(i)?i:L,n.notifyWith)),e[1][3].add(s(0,n,m(t)?t:L)),e[2][3].add(s(0,n,m(r)?r:U))})).promise()},promise:function(t){return null!=t?E.extend(t,i):i}},o={};return E.each(e,(function(t,n){var s=n[2],a=n[5];i[n[1]]=s.add,a&&s.add((function(){r=a}),e[3-t][2].disable,e[3-t][3].disable,e[0][2].lock,e[0][3].lock),s.add(n[3].fire),o[n[0]]=function(){return o[n[0]+"With"](this===o?void 0:this,arguments),this},o[n[0]+"With"]=s.fireWith})),i.promise(o),t&&t.call(o,o),o},when:function(t){var e=arguments.length,n=e,r=Array(n),i=a.call(arguments),o=E.Deferred(),s=function(t){return function(n){r[t]=this,i[t]=arguments.length>1?a.call(arguments):n,--e||o.resolveWith(r,i)}};if(e<=1&&(B(t,o.done(s(n)).resolve,o.reject,!e),"pending"===o.state()||m(i[n]&&i[n].then)))return o.then();for(;n--;)B(i[n],s(n),o.reject);return o.promise()}});var q=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;E.Deferred.exceptionHook=function(t,e){n.console&&n.console.warn&&t&&q.test(t.name)&&n.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},E.readyException=function(t){n.setTimeout((function(){throw t}))};var V=E.Deferred();function $(){b.removeEventListener("DOMContentLoaded",$),n.removeEventListener("load",$),E.ready()}E.fn.ready=function(t){return V.then(t).catch((function(t){E.readyException(t)})),this},E.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--E.readyWait:E.isReady)||(E.isReady=!0,!0!==t&&--E.readyWait>0||V.resolveWith(b,[E]))}}),E.ready.then=V.then,"complete"===b.readyState||"loading"!==b.readyState&&!b.documentElement.doScroll?n.setTimeout(E.ready):(b.addEventListener("DOMContentLoaded",$),n.addEventListener("load",$));var H=function(t,e,n,r,i,o,s){var a=0,u=t.length,c=null==n;if("object"===x(n))for(a in i=!0,n)H(t,e,a,n[a],!0,o,s);else if(void 0!==r&&(i=!0,m(r)||(s=!0),c&&(s?(e.call(t,r),e=null):(c=e,e=function(t,e,n){return c.call(E(t),n)})),e))for(;a<u;a++)e(t[a],n,s?r:r.call(t[a],a,e(t[a],n)));return i?t:c?e.call(t):u?e(t[0],n):o},W=/^-ms-/,z=/-([a-z])/g;function G(t,e){return e.toUpperCase()}function Y(t){return t.replace(W,"ms-").replace(z,G)}var X=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};function J(){this.expando=E.expando+J.uid++}J.uid=1,J.prototype={cache:function(t){var e=t[this.expando];return e||(e=Object.create(null),X(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,n){var r,i=this.cache(t);if("string"==typeof e)i[Y(e)]=n;else for(r in e)i[Y(r)]=e[r];return i},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][Y(e)]},access:function(t,e,n){return void 0===e||e&&"string"==typeof e&&void 0===n?this.get(t,e):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,r=t[this.expando];if(void 0!==r){if(void 0!==e){n=(e=Array.isArray(e)?e.map(Y):(e=Y(e))in r?[e]:e.match(P)||[]).length;for(;n--;)delete r[e[n]]}(void 0===e||E.isEmptyObject(r))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!E.isEmptyObject(e)}};var Q=new J,K=new J,Z=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,tt=/[A-Z]/g;function et(t,e,n){var r;if(void 0===n&&1===t.nodeType)if(r="data-"+e.replace(tt,"-$&").toLowerCase(),"string"==typeof(n=t.getAttribute(r))){try{n=function(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:Z.test(t)?JSON.parse(t):t)}(n)}catch(t){}K.set(t,e,n)}else n=void 0;return n}E.extend({hasData:function(t){return K.hasData(t)||Q.hasData(t)},data:function(t,e,n){return K.access(t,e,n)},removeData:function(t,e){K.remove(t,e)},_data:function(t,e,n){return Q.access(t,e,n)},_removeData:function(t,e){Q.remove(t,e)}}),E.fn.extend({data:function(t,e){var n,r,i,o=this[0],s=o&&o.attributes;if(void 0===t){if(this.length&&(i=K.get(o),1===o.nodeType&&!Q.get(o,"hasDataAttrs"))){for(n=s.length;n--;)s[n]&&0===(r=s[n].name).indexOf("data-")&&(r=Y(r.slice(5)),et(o,r,i[r]));Q.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof t?this.each((function(){K.set(this,t)})):H(this,(function(e){var n;if(o&&void 0===e)return void 0!==(n=K.get(o,t))||void 0!==(n=et(o,t))?n:void 0;this.each((function(){K.set(this,t,e)}))}),null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each((function(){K.remove(this,t)}))}}),E.extend({queue:function(t,e,n){var r;if(t)return e=(e||"fx")+"queue",r=Q.get(t,e),n&&(!r||Array.isArray(n)?r=Q.access(t,e,E.makeArray(n)):r.push(n)),r||[]},dequeue:function(t,e){e=e||"fx";var n=E.queue(t,e),r=n.length,i=n.shift(),o=E._queueHooks(t,e);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===e&&n.unshift("inprogress"),delete o.stop,i.call(t,(function(){E.dequeue(t,e)}),o)),!r&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return Q.get(t,n)||Q.access(t,n,{empty:E.Callbacks("once memory").add((function(){Q.remove(t,[e+"queue",n])}))})}}),E.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?E.queue(this[0],t):void 0===e?this:this.each((function(){var n=E.queue(this,t,e);E._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&E.dequeue(this,t)}))},dequeue:function(t){return this.each((function(){E.dequeue(this,t)}))},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,r=1,i=E.Deferred(),o=this,s=this.length,a=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";s--;)(n=Q.get(o[s],t+"queueHooks"))&&n.empty&&(r++,n.empty.add(a));return a(),i.promise(e)}});var nt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,rt=new RegExp("^(?:([+-])=|)("+nt+")([a-z%]*)$","i"),it=["Top","Right","Bottom","Left"],ot=b.documentElement,st=function(t){return E.contains(t.ownerDocument,t)},at={composed:!0};ot.getRootNode&&(st=function(t){return E.contains(t.ownerDocument,t)||t.getRootNode(at)===t.ownerDocument});var ut=function(t,e){return"none"===(t=e||t).style.display||""===t.style.display&&st(t)&&"none"===E.css(t,"display")};function ct(t,e,n,r){var i,o,s=20,a=r?function(){return r.cur()}:function(){return E.css(t,e,"")},u=a(),c=n&&n[3]||(E.cssNumber[e]?"":"px"),l=t.nodeType&&(E.cssNumber[e]||"px"!==c&&+u)&&rt.exec(E.css(t,e));if(l&&l[3]!==c){for(u/=2,c=c||l[3],l=+u||1;s--;)E.style(t,e,l+c),(1-o)*(1-(o=a()/u||.5))<=0&&(s=0),l/=o;l*=2,E.style(t,e,l+c),n=n||[]}return n&&(l=+l||+u||0,i=n[1]?l+(n[1]+1)*n[2]:+n[2],r&&(r.unit=c,r.start=l,r.end=i)),i}var lt={};function ft(t){var e,n=t.ownerDocument,r=t.nodeName,i=lt[r];return i||(e=n.body.appendChild(n.createElement(r)),i=E.css(e,"display"),e.parentNode.removeChild(e),"none"===i&&(i="block"),lt[r]=i,i)}function ht(t,e){for(var n,r,i=[],o=0,s=t.length;o<s;o++)(r=t[o]).style&&(n=r.style.display,e?("none"===n&&(i[o]=Q.get(r,"display")||null,i[o]||(r.style.display="")),""===r.style.display&&ut(r)&&(i[o]=ft(r))):"none"!==n&&(i[o]="none",Q.set(r,"display",n)));for(o=0;o<s;o++)null!=i[o]&&(t[o].style.display=i[o]);return t}E.fn.extend({show:function(){return ht(this,!0)},hide:function(){return ht(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each((function(){ut(this)?E(this).show():E(this).hide()}))}});var pt,dt,gt=/^(?:checkbox|radio)$/i,vt=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,mt=/^$|^module$|\/(?:java|ecma)script/i;pt=b.createDocumentFragment().appendChild(b.createElement("div")),(dt=b.createElement("input")).setAttribute("type","radio"),dt.setAttribute("checked","checked"),dt.setAttribute("name","t"),pt.appendChild(dt),v.checkClone=pt.cloneNode(!0).cloneNode(!0).lastChild.checked,pt.innerHTML="<textarea>x</textarea>",v.noCloneChecked=!!pt.cloneNode(!0).lastChild.defaultValue,pt.innerHTML="<option></option>",v.option=!!pt.lastChild;var yt={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,"",""]};function bt(t,e){var n;return n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&N(t,e)?E.merge([t],n):n}function wt(t,e){for(var n=0,r=t.length;n<r;n++)Q.set(t[n],"globalEval",!e||Q.get(e[n],"globalEval"))}yt.tbody=yt.tfoot=yt.colgroup=yt.caption=yt.thead,yt.th=yt.td,v.option||(yt.optgroup=yt.option=[1,"<select multiple='multiple'>","</select>"]);var _t=/<|&#?\w+;/;function xt(t,e,n,r,i){for(var o,s,a,u,c,l,f=e.createDocumentFragment(),h=[],p=0,d=t.length;p<d;p++)if((o=t[p])||0===o)if("object"===x(o))E.merge(h,o.nodeType?[o]:o);else if(_t.test(o)){for(s=s||f.appendChild(e.createElement("div")),a=(vt.exec(o)||["",""])[1].toLowerCase(),u=yt[a]||yt._default,s.innerHTML=u[1]+E.htmlPrefilter(o)+u[2],l=u[0];l--;)s=s.lastChild;E.merge(h,s.childNodes),(s=f.firstChild).textContent=""}else h.push(e.createTextNode(o));for(f.textContent="",p=0;o=h[p++];)if(r&&E.inArray(o,r)>-1)i&&i.push(o);else if(c=st(o),s=bt(f.appendChild(o),"script"),c&&wt(s),n)for(l=0;o=s[l++];)mt.test(o.type||"")&&n.push(o);return f}var Et=/^key/,St=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Tt=/^([^.]*)(?:\.(.+)|)/;function At(){return!0}function kt(){return!1}function Ot(t,e){return t===function(){try{return b.activeElement}catch(t){}}()==("focus"===e)}function Nt(t,e,n,r,i,o){var s,a;if("object"==typeof e){for(a in"string"!=typeof n&&(r=r||n,n=void 0),e)Nt(t,a,n,r,e[a],o);return t}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=kt;else if(!i)return t;return 1===o&&(s=i,(i=function(t){return E().off(t),s.apply(this,arguments)}).guid=s.guid||(s.guid=E.guid++)),t.each((function(){E.event.add(this,e,i,r,n)}))}function Ct(t,e,n){n?(Q.set(t,e,!1),E.event.add(t,e,{namespace:!1,handler:function(t){var r,i,o=Q.get(this,e);if(1&t.isTrigger&&this[e]){if(o.length)(E.event.special[e]||{}).delegateType&&t.stopPropagation();else if(o=a.call(arguments),Q.set(this,e,o),r=n(this,e),this[e](),o!==(i=Q.get(this,e))||r?Q.set(this,e,!1):i={},o!==i)return t.stopImmediatePropagation(),t.preventDefault(),i.value}else o.length&&(Q.set(this,e,{value:E.event.trigger(E.extend(o[0],E.Event.prototype),o.slice(1),this)}),t.stopImmediatePropagation())}})):void 0===Q.get(t,e)&&E.event.add(t,e,At)}E.event={global:{},add:function(t,e,n,r,i){var o,s,a,u,c,l,f,h,p,d,g,v=Q.get(t);if(X(t))for(n.handler&&(n=(o=n).handler,i=o.selector),i&&E.find.matchesSelector(ot,i),n.guid||(n.guid=E.guid++),(u=v.events)||(u=v.events=Object.create(null)),(s=v.handle)||(s=v.handle=function(e){return void 0!==E&&E.event.triggered!==e.type?E.event.dispatch.apply(t,arguments):void 0}),c=(e=(e||"").match(P)||[""]).length;c--;)p=g=(a=Tt.exec(e[c])||[])[1],d=(a[2]||"").split(".").sort(),p&&(f=E.event.special[p]||{},p=(i?f.delegateType:f.bindType)||p,f=E.event.special[p]||{},l=E.extend({type:p,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&E.expr.match.needsContext.test(i),namespace:d.join(".")},o),(h=u[p])||((h=u[p]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(t,r,d,s)||t.addEventListener&&t.addEventListener(p,s)),f.add&&(f.add.call(t,l),l.handler.guid||(l.handler.guid=n.guid)),i?h.splice(h.delegateCount++,0,l):h.push(l),E.event.global[p]=!0)},remove:function(t,e,n,r,i){var o,s,a,u,c,l,f,h,p,d,g,v=Q.hasData(t)&&Q.get(t);if(v&&(u=v.events)){for(c=(e=(e||"").match(P)||[""]).length;c--;)if(p=g=(a=Tt.exec(e[c])||[])[1],d=(a[2]||"").split(".").sort(),p){for(f=E.event.special[p]||{},h=u[p=(r?f.delegateType:f.bindType)||p]||[],a=a[2]&&new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=h.length;o--;)l=h[o],!i&&g!==l.origType||n&&n.guid!==l.guid||a&&!a.test(l.namespace)||r&&r!==l.selector&&("**"!==r||!l.selector)||(h.splice(o,1),l.selector&&h.delegateCount--,f.remove&&f.remove.call(t,l));s&&!h.length&&(f.teardown&&!1!==f.teardown.call(t,d,v.handle)||E.removeEvent(t,p,v.handle),delete u[p])}else for(p in u)E.event.remove(t,p+e[c],n,r,!0);E.isEmptyObject(u)&&Q.remove(t,"handle events")}},dispatch:function(t){var e,n,r,i,o,s,a=new Array(arguments.length),u=E.event.fix(t),c=(Q.get(this,"events")||Object.create(null))[u.type]||[],l=E.event.special[u.type]||{};for(a[0]=u,e=1;e<arguments.length;e++)a[e]=arguments[e];if(u.delegateTarget=this,!l.preDispatch||!1!==l.preDispatch.call(this,u)){for(s=E.event.handlers.call(this,u,c),e=0;(i=s[e++])&&!u.isPropagationStopped();)for(u.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!u.isImmediatePropagationStopped();)u.rnamespace&&!1!==o.namespace&&!u.rnamespace.test(o.namespace)||(u.handleObj=o,u.data=o.data,void 0!==(r=((E.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,a))&&!1===(u.result=r)&&(u.preventDefault(),u.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,u),u.result}},handlers:function(t,e){var n,r,i,o,s,a=[],u=e.delegateCount,c=t.target;if(u&&c.nodeType&&!("click"===t.type&&t.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==t.type||!0!==c.disabled)){for(o=[],s={},n=0;n<u;n++)void 0===s[i=(r=e[n]).selector+" "]&&(s[i]=r.needsContext?E(i,this).index(c)>-1:E.find(i,this,null,[c]).length),s[i]&&o.push(r);o.length&&a.push({elem:c,handlers:o})}return c=this,u<e.length&&a.push({elem:c,handlers:e.slice(u)}),a},addProp:function(t,e){Object.defineProperty(E.Event.prototype,t,{enumerable:!0,configurable:!0,get:m(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(t){return t[E.expando]?t:new E.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){var e=this||t;return gt.test(e.type)&&e.click&&N(e,"input")&&Ct(e,"click",At),!1},trigger:function(t){var e=this||t;return gt.test(e.type)&&e.click&&N(e,"input")&&Ct(e,"click"),!0},_default:function(t){var e=t.target;return gt.test(e.type)&&e.click&&N(e,"input")&&Q.get(e,"click")||N(e,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},E.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},E.Event=function(t,e){if(!(this instanceof E.Event))return new E.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?At:kt,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&E.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[E.expando]=!0},E.Event.prototype={constructor:E.Event,isDefaultPrevented:kt,isPropagationStopped:kt,isImmediatePropagationStopped:kt,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=At,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=At,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=At,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},E.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,code:!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(t){var e=t.button;return null==t.which&&Et.test(t.type)?null!=t.charCode?t.charCode:t.keyCode:!t.which&&void 0!==e&&St.test(t.type)?1&e?1:2&e?3:4&e?2:0:t.which}},E.event.addProp),E.each({focus:"focusin",blur:"focusout"},(function(t,e){E.event.special[t]={setup:function(){return Ct(this,t,Ot),!1},trigger:function(){return Ct(this,t),!0},delegateType:e}})),E.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(t,e){E.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,r=this,i=t.relatedTarget,o=t.handleObj;return i&&(i===r||E.contains(r,i))||(t.type=o.origType,n=o.handler.apply(this,arguments),t.type=e),n}}})),E.fn.extend({on:function(t,e,n,r){return Nt(this,t,e,n,r)},one:function(t,e,n,r){return Nt(this,t,e,n,r,1)},off:function(t,e,n){var r,i;if(t&&t.preventDefault&&t.handleObj)return r=t.handleObj,E(t.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof t){for(i in t)this.off(i,e,t[i]);return this}return!1!==e&&"function"!=typeof e||(n=e,e=void 0),!1===n&&(n=kt),this.each((function(){E.event.remove(this,t,n,e)}))}});var Ft=/<script|<style|<link/i,jt=/checked\s*(?:[^=]|=\s*.checked.)/i,It=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Dt(t,e){return N(t,"table")&&N(11!==e.nodeType?e:e.firstChild,"tr")&&E(t).children("tbody")[0]||t}function Rt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Mt(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function Pt(t,e){var n,r,i,o,s,a;if(1===e.nodeType){if(Q.hasData(t)&&(a=Q.get(t).events))for(i in Q.remove(e,"handle events"),a)for(n=0,r=a[i].length;n<r;n++)E.event.add(e,i,a[i][n]);K.hasData(t)&&(o=K.access(t),s=E.extend({},o),K.set(e,s))}}function Lt(t,e){var n=e.nodeName.toLowerCase();"input"===n&>.test(t.type)?e.checked=t.checked:"input"!==n&&"textarea"!==n||(e.defaultValue=t.defaultValue)}function Ut(t,e,n,r){e=u(e);var i,o,s,a,c,l,f=0,h=t.length,p=h-1,d=e[0],g=m(d);if(g||h>1&&"string"==typeof d&&!v.checkClone&&jt.test(d))return t.each((function(i){var o=t.eq(i);g&&(e[0]=d.call(this,i,o.html())),Ut(o,e,n,r)}));if(h&&(o=(i=xt(e,t[0].ownerDocument,!1,t,r)).firstChild,1===i.childNodes.length&&(i=o),o||r)){for(a=(s=E.map(bt(i,"script"),Rt)).length;f<h;f++)c=i,f!==p&&(c=E.clone(c,!0,!0),a&&E.merge(s,bt(c,"script"))),n.call(t[f],c,f);if(a)for(l=s[s.length-1].ownerDocument,E.map(s,Mt),f=0;f<a;f++)c=s[f],mt.test(c.type||"")&&!Q.access(c,"globalEval")&&E.contains(l,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?E._evalUrl&&!c.noModule&&E._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},l):_(c.textContent.replace(It,""),c,l))}return t}function Bt(t,e,n){for(var r,i=e?E.filter(e,t):t,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||E.cleanData(bt(r)),r.parentNode&&(n&&st(r)&&wt(bt(r,"script")),r.parentNode.removeChild(r));return t}E.extend({htmlPrefilter:function(t){return t},clone:function(t,e,n){var r,i,o,s,a=t.cloneNode(!0),u=st(t);if(!(v.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||E.isXMLDoc(t)))for(s=bt(a),r=0,i=(o=bt(t)).length;r<i;r++)Lt(o[r],s[r]);if(e)if(n)for(o=o||bt(t),s=s||bt(a),r=0,i=o.length;r<i;r++)Pt(o[r],s[r]);else Pt(t,a);return(s=bt(a,"script")).length>0&&wt(s,!u&&bt(t,"script")),a},cleanData:function(t){for(var e,n,r,i=E.event.special,o=0;void 0!==(n=t[o]);o++)if(X(n)){if(e=n[Q.expando]){if(e.events)for(r in e.events)i[r]?E.event.remove(n,r):E.removeEvent(n,r,e.handle);n[Q.expando]=void 0}n[K.expando]&&(n[K.expando]=void 0)}}}),E.fn.extend({detach:function(t){return Bt(this,t,!0)},remove:function(t){return Bt(this,t)},text:function(t){return H(this,(function(t){return void 0===t?E.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)}))}),null,t,arguments.length)},append:function(){return Ut(this,arguments,(function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Dt(this,t).appendChild(t)}))},prepend:function(){return Ut(this,arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=Dt(this,t);e.insertBefore(t,e.firstChild)}}))},before:function(){return Ut(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this)}))},after:function(){return Ut(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)}))},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(E.cleanData(bt(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map((function(){return E.clone(this,t,e)}))},html:function(t){return H(this,(function(t){var e=this[0]||{},n=0,r=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!Ft.test(t)&&!yt[(vt.exec(t)||["",""])[1].toLowerCase()]){t=E.htmlPrefilter(t);try{for(;n<r;n++)1===(e=this[n]||{}).nodeType&&(E.cleanData(bt(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)}),null,t,arguments.length)},replaceWith:function(){var t=[];return Ut(this,arguments,(function(e){var n=this.parentNode;E.inArray(this,t)<0&&(E.cleanData(bt(this)),n&&n.replaceChild(e,this))}),t)}}),E.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(t,e){E.fn[t]=function(t){for(var n,r=[],i=E(t),o=i.length-1,s=0;s<=o;s++)n=s===o?this:this.clone(!0),E(i[s])[e](n),c.apply(r,n.get());return this.pushStack(r)}}));var qt=new RegExp("^("+nt+")(?!px)[a-z%]+$","i"),Vt=function(t){var e=t.ownerDocument.defaultView;return e&&e.opener||(e=n),e.getComputedStyle(t)},$t=function(t,e,n){var r,i,o={};for(i in e)o[i]=t.style[i],t.style[i]=e[i];for(i in r=n.call(t),e)t.style[i]=o[i];return r},Ht=new RegExp(it.join("|"),"i");function Wt(t,e,n){var r,i,o,s,a=t.style;return(n=n||Vt(t))&&(""!==(s=n.getPropertyValue(e)||n[e])||st(t)||(s=E.style(t,e)),!v.pixelBoxStyles()&&qt.test(s)&&Ht.test(e)&&(r=a.width,i=a.minWidth,o=a.maxWidth,a.minWidth=a.maxWidth=a.width=s,s=n.width,a.width=r,a.minWidth=i,a.maxWidth=o)),void 0!==s?s+"":s}function zt(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}!function(){function t(){if(l){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",l.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",ot.appendChild(c).appendChild(l);var t=n.getComputedStyle(l);r="1%"!==t.top,u=12===e(t.marginLeft),l.style.right="60%",s=36===e(t.right),i=36===e(t.width),l.style.position="absolute",o=12===e(l.offsetWidth/3),ot.removeChild(c),l=null}}function e(t){return Math.round(parseFloat(t))}var r,i,o,s,a,u,c=b.createElement("div"),l=b.createElement("div");l.style&&(l.style.backgroundClip="content-box",l.cloneNode(!0).style.backgroundClip="",v.clearCloneStyle="content-box"===l.style.backgroundClip,E.extend(v,{boxSizingReliable:function(){return t(),i},pixelBoxStyles:function(){return t(),s},pixelPosition:function(){return t(),r},reliableMarginLeft:function(){return t(),u},scrollboxSize:function(){return t(),o},reliableTrDimensions:function(){var t,e,r,i;return null==a&&(t=b.createElement("table"),e=b.createElement("tr"),r=b.createElement("div"),t.style.cssText="position:absolute;left:-11111px",e.style.height="1px",r.style.height="9px",ot.appendChild(t).appendChild(e).appendChild(r),i=n.getComputedStyle(e),a=parseInt(i.height)>3,ot.removeChild(t)),a}}))}();var Gt=["Webkit","Moz","ms"],Yt=b.createElement("div").style,Xt={};function Jt(t){var e=E.cssProps[t]||Xt[t];return e||(t in Yt?t:Xt[t]=function(t){for(var e=t[0].toUpperCase()+t.slice(1),n=Gt.length;n--;)if((t=Gt[n]+e)in Yt)return t}(t)||t)}var Qt=/^(none|table(?!-c[ea]).+)/,Kt=/^--/,Zt={position:"absolute",visibility:"hidden",display:"block"},te={letterSpacing:"0",fontWeight:"400"};function ee(t,e,n){var r=rt.exec(e);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):e}function ne(t,e,n,r,i,o){var s="width"===e?1:0,a=0,u=0;if(n===(r?"border":"content"))return 0;for(;s<4;s+=2)"margin"===n&&(u+=E.css(t,n+it[s],!0,i)),r?("content"===n&&(u-=E.css(t,"padding"+it[s],!0,i)),"margin"!==n&&(u-=E.css(t,"border"+it[s]+"Width",!0,i))):(u+=E.css(t,"padding"+it[s],!0,i),"padding"!==n?u+=E.css(t,"border"+it[s]+"Width",!0,i):a+=E.css(t,"border"+it[s]+"Width",!0,i));return!r&&o>=0&&(u+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-o-u-a-.5))||0),u}function re(t,e,n){var r=Vt(t),i=(!v.boxSizingReliable()||n)&&"border-box"===E.css(t,"boxSizing",!1,r),o=i,s=Wt(t,e,r),a="offset"+e[0].toUpperCase()+e.slice(1);if(qt.test(s)){if(!n)return s;s="auto"}return(!v.boxSizingReliable()&&i||!v.reliableTrDimensions()&&N(t,"tr")||"auto"===s||!parseFloat(s)&&"inline"===E.css(t,"display",!1,r))&&t.getClientRects().length&&(i="border-box"===E.css(t,"boxSizing",!1,r),(o=a in t)&&(s=t[a])),(s=parseFloat(s)||0)+ne(t,e,n||(i?"border":"content"),o,r,s)+"px"}function ie(t,e,n,r,i){return new ie.prototype.init(t,e,n,r,i)}E.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=Wt(t,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(t,e,n,r){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var i,o,s,a=Y(e),u=Kt.test(e),c=t.style;if(u||(e=Jt(a)),s=E.cssHooks[e]||E.cssHooks[a],void 0===n)return s&&"get"in s&&void 0!==(i=s.get(t,!1,r))?i:c[e];"string"===(o=typeof n)&&(i=rt.exec(n))&&i[1]&&(n=ct(t,e,i),o="number"),null!=n&&n==n&&("number"!==o||u||(n+=i&&i[3]||(E.cssNumber[a]?"":"px")),v.clearCloneStyle||""!==n||0!==e.indexOf("background")||(c[e]="inherit"),s&&"set"in s&&void 0===(n=s.set(t,n,r))||(u?c.setProperty(e,n):c[e]=n))}},css:function(t,e,n,r){var i,o,s,a=Y(e);return Kt.test(e)||(e=Jt(a)),(s=E.cssHooks[e]||E.cssHooks[a])&&"get"in s&&(i=s.get(t,!0,n)),void 0===i&&(i=Wt(t,e,r)),"normal"===i&&e in te&&(i=te[e]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),E.each(["height","width"],(function(t,e){E.cssHooks[e]={get:function(t,n,r){if(n)return!Qt.test(E.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?re(t,e,r):$t(t,Zt,(function(){return re(t,e,r)}))},set:function(t,n,r){var i,o=Vt(t),s=!v.scrollboxSize()&&"absolute"===o.position,a=(s||r)&&"border-box"===E.css(t,"boxSizing",!1,o),u=r?ne(t,e,r,a,o):0;return a&&s&&(u-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(o[e])-ne(t,e,"border",!1,o)-.5)),u&&(i=rt.exec(n))&&"px"!==(i[3]||"px")&&(t.style[e]=n,n=E.css(t,e)),ee(0,n,u)}}})),E.cssHooks.marginLeft=zt(v.reliableMarginLeft,(function(t,e){if(e)return(parseFloat(Wt(t,"marginLeft"))||t.getBoundingClientRect().left-$t(t,{marginLeft:0},(function(){return t.getBoundingClientRect().left})))+"px"})),E.each({margin:"",padding:"",border:"Width"},(function(t,e){E.cssHooks[t+e]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[t+it[r]+e]=o[r]||o[r-2]||o[0];return i}},"margin"!==t&&(E.cssHooks[t+e].set=ee)})),E.fn.extend({css:function(t,e){return H(this,(function(t,e,n){var r,i,o={},s=0;if(Array.isArray(e)){for(r=Vt(t),i=e.length;s<i;s++)o[e[s]]=E.css(t,e[s],!1,r);return o}return void 0!==n?E.style(t,e,n):E.css(t,e)}),t,e,arguments.length>1)}}),E.Tween=ie,ie.prototype={constructor:ie,init:function(t,e,n,r,i,o){this.elem=t,this.prop=n,this.easing=i||E.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=r,this.unit=o||(E.cssNumber[n]?"":"px")},cur:function(){var t=ie.propHooks[this.prop];return t&&t.get?t.get(this):ie.propHooks._default.get(this)},run:function(t){var e,n=ie.propHooks[this.prop];return this.options.duration?this.pos=e=E.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):ie.propHooks._default.set(this),this}},ie.prototype.init.prototype=ie.prototype,ie.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=E.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){E.fx.step[t.prop]?E.fx.step[t.prop](t):1!==t.elem.nodeType||!E.cssHooks[t.prop]&&null==t.elem.style[Jt(t.prop)]?t.elem[t.prop]=t.now:E.style(t.elem,t.prop,t.now+t.unit)}}},ie.propHooks.scrollTop=ie.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},E.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},E.fx=ie.prototype.init,E.fx.step={};var oe,se,ae=/^(?:toggle|show|hide)$/,ue=/queueHooks$/;function ce(){se&&(!1===b.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(ce):n.setTimeout(ce,E.fx.interval),E.fx.tick())}function le(){return n.setTimeout((function(){oe=void 0})),oe=Date.now()}function fe(t,e){var n,r=0,i={height:t};for(e=e?1:0;r<4;r+=2-e)i["margin"+(n=it[r])]=i["padding"+n]=t;return e&&(i.opacity=i.width=t),i}function he(t,e,n){for(var r,i=(pe.tweeners[e]||[]).concat(pe.tweeners["*"]),o=0,s=i.length;o<s;o++)if(r=i[o].call(n,e,t))return r}function pe(t,e,n){var r,i,o=0,s=pe.prefilters.length,a=E.Deferred().always((function(){delete u.elem})),u=function(){if(i)return!1;for(var e=oe||le(),n=Math.max(0,c.startTime+c.duration-e),r=1-(n/c.duration||0),o=0,s=c.tweens.length;o<s;o++)c.tweens[o].run(r);return a.notifyWith(t,[c,r,n]),r<1&&s?n:(s||a.notifyWith(t,[c,1,0]),a.resolveWith(t,[c]),!1)},c=a.promise({elem:t,props:E.extend({},e),opts:E.extend(!0,{specialEasing:{},easing:E.easing._default},n),originalProperties:e,originalOptions:n,startTime:oe||le(),duration:n.duration,tweens:[],createTween:function(e,n){var r=E.Tween(t,c.opts,e,n,c.opts.specialEasing[e]||c.opts.easing);return c.tweens.push(r),r},stop:function(e){var n=0,r=e?c.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)c.tweens[n].run(1);return e?(a.notifyWith(t,[c,1,0]),a.resolveWith(t,[c,e])):a.rejectWith(t,[c,e]),this}}),l=c.props;for(!function(t,e){var n,r,i,o,s;for(n in t)if(i=e[r=Y(n)],o=t[n],Array.isArray(o)&&(i=o[1],o=t[n]=o[0]),n!==r&&(t[r]=o,delete t[n]),(s=E.cssHooks[r])&&"expand"in s)for(n in o=s.expand(o),delete t[r],o)n in t||(t[n]=o[n],e[n]=i);else e[r]=i}(l,c.opts.specialEasing);o<s;o++)if(r=pe.prefilters[o].call(c,t,l,c.opts))return m(r.stop)&&(E._queueHooks(c.elem,c.opts.queue).stop=r.stop.bind(r)),r;return E.map(l,he,c),m(c.opts.start)&&c.opts.start.call(t,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),E.fx.timer(E.extend(u,{elem:t,anim:c,queue:c.opts.queue})),c}E.Animation=E.extend(pe,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return ct(n.elem,t,rt.exec(e),n),n}]},tweener:function(t,e){m(t)?(e=t,t=["*"]):t=t.match(P);for(var n,r=0,i=t.length;r<i;r++)n=t[r],pe.tweeners[n]=pe.tweeners[n]||[],pe.tweeners[n].unshift(e)},prefilters:[function(t,e,n){var r,i,o,s,a,u,c,l,f="width"in e||"height"in e,h=this,p={},d=t.style,g=t.nodeType&&ut(t),v=Q.get(t,"fxshow");for(r in n.queue||(null==(s=E._queueHooks(t,"fx")).unqueued&&(s.unqueued=0,a=s.empty.fire,s.empty.fire=function(){s.unqueued||a()}),s.unqueued++,h.always((function(){h.always((function(){s.unqueued--,E.queue(t,"fx").length||s.empty.fire()}))}))),e)if(i=e[r],ae.test(i)){if(delete e[r],o=o||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!v||void 0===v[r])continue;g=!0}p[r]=v&&v[r]||E.style(t,r)}if((u=!E.isEmptyObject(e))||!E.isEmptyObject(p))for(r in f&&1===t.nodeType&&(n.overflow=[d.overflow,d.overflowX,d.overflowY],null==(c=v&&v.display)&&(c=Q.get(t,"display")),"none"===(l=E.css(t,"display"))&&(c?l=c:(ht([t],!0),c=t.style.display||c,l=E.css(t,"display"),ht([t]))),("inline"===l||"inline-block"===l&&null!=c)&&"none"===E.css(t,"float")&&(u||(h.done((function(){d.display=c})),null==c&&(l=d.display,c="none"===l?"":l)),d.display="inline-block")),n.overflow&&(d.overflow="hidden",h.always((function(){d.overflow=n.overflow[0],d.overflowX=n.overflow[1],d.overflowY=n.overflow[2]}))),u=!1,p)u||(v?"hidden"in v&&(g=v.hidden):v=Q.access(t,"fxshow",{display:c}),o&&(v.hidden=!g),g&&ht([t],!0),h.done((function(){for(r in g||ht([t]),Q.remove(t,"fxshow"),p)E.style(t,r,p[r])}))),u=he(g?v[r]:0,r,h),r in v||(v[r]=u.start,g&&(u.end=u.start,u.start=0))}],prefilter:function(t,e){e?pe.prefilters.unshift(t):pe.prefilters.push(t)}}),E.speed=function(t,e,n){var r=t&&"object"==typeof t?E.extend({},t):{complete:n||!n&&e||m(t)&&t,duration:t,easing:n&&e||e&&!m(e)&&e};return E.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in E.fx.speeds?r.duration=E.fx.speeds[r.duration]:r.duration=E.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){m(r.old)&&r.old.call(this),r.queue&&E.dequeue(this,r.queue)},r},E.fn.extend({fadeTo:function(t,e,n,r){return this.filter(ut).css("opacity",0).show().end().animate({opacity:e},t,n,r)},animate:function(t,e,n,r){var i=E.isEmptyObject(t),o=E.speed(e,n,r),s=function(){var e=pe(this,E.extend({},t),o);(i||Q.get(this,"finish"))&&e.stop(!0)};return s.finish=s,i||!1===o.queue?this.each(s):this.queue(o.queue,s)},stop:function(t,e,n){var r=function(t){var e=t.stop;delete t.stop,e(n)};return"string"!=typeof t&&(n=e,e=t,t=void 0),e&&this.queue(t||"fx",[]),this.each((function(){var e=!0,i=null!=t&&t+"queueHooks",o=E.timers,s=Q.get(this);if(i)s[i]&&s[i].stop&&r(s[i]);else for(i in s)s[i]&&s[i].stop&&ue.test(i)&&r(s[i]);for(i=o.length;i--;)o[i].elem!==this||null!=t&&o[i].queue!==t||(o[i].anim.stop(n),e=!1,o.splice(i,1));!e&&n||E.dequeue(this,t)}))},finish:function(t){return!1!==t&&(t=t||"fx"),this.each((function(){var e,n=Q.get(this),r=n[t+"queue"],i=n[t+"queueHooks"],o=E.timers,s=r?r.length:0;for(n.finish=!0,E.queue(this,t,[]),i&&i.stop&&i.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===t&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;e<s;e++)r[e]&&r[e].finish&&r[e].finish.call(this);delete n.finish}))}}),E.each(["toggle","show","hide"],(function(t,e){var n=E.fn[e];E.fn[e]=function(t,r,i){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(fe(e,!0),t,r,i)}})),E.each({slideDown:fe("show"),slideUp:fe("hide"),slideToggle:fe("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(t,e){E.fn[t]=function(t,n,r){return this.animate(e,t,n,r)}})),E.timers=[],E.fx.tick=function(){var t,e=0,n=E.timers;for(oe=Date.now();e<n.length;e++)(t=n[e])()||n[e]!==t||n.splice(e--,1);n.length||E.fx.stop(),oe=void 0},E.fx.timer=function(t){E.timers.push(t),E.fx.start()},E.fx.interval=13,E.fx.start=function(){se||(se=!0,ce())},E.fx.stop=function(){se=null},E.fx.speeds={slow:600,fast:200,_default:400},E.fn.delay=function(t,e){return t=E.fx&&E.fx.speeds[t]||t,e=e||"fx",this.queue(e,(function(e,r){var i=n.setTimeout(e,t);r.stop=function(){n.clearTimeout(i)}}))},function(){var t=b.createElement("input"),e=b.createElement("select").appendChild(b.createElement("option"));t.type="checkbox",v.checkOn=""!==t.value,v.optSelected=e.selected,(t=b.createElement("input")).value="t",t.type="radio",v.radioValue="t"===t.value}();var de,ge=E.expr.attrHandle;E.fn.extend({attr:function(t,e){return H(this,E.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each((function(){E.removeAttr(this,t)}))}}),E.extend({attr:function(t,e,n){var r,i,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===t.getAttribute?E.prop(t,e,n):(1===o&&E.isXMLDoc(t)||(i=E.attrHooks[e.toLowerCase()]||(E.expr.match.bool.test(e)?de:void 0)),void 0!==n?null===n?void E.removeAttr(t,e):i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:(t.setAttribute(e,n+""),n):i&&"get"in i&&null!==(r=i.get(t,e))?r:null==(r=E.find.attr(t,e))?void 0:r)},attrHooks:{type:{set:function(t,e){if(!v.radioValue&&"radio"===e&&N(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,r=0,i=e&&e.match(P);if(i&&1===t.nodeType)for(;n=i[r++];)t.removeAttribute(n)}}),de={set:function(t,e,n){return!1===e?E.removeAttr(t,n):t.setAttribute(n,n),n}},E.each(E.expr.match.bool.source.match(/\w+/g),(function(t,e){var n=ge[e]||E.find.attr;ge[e]=function(t,e,r){var i,o,s=e.toLowerCase();return r||(o=ge[s],ge[s]=i,i=null!=n(t,e,r)?s:null,ge[s]=o),i}}));var ve=/^(?:input|select|textarea|button)$/i,me=/^(?:a|area)$/i;function ye(t){return(t.match(P)||[]).join(" ")}function be(t){return t.getAttribute&&t.getAttribute("class")||""}function we(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(P)||[]}E.fn.extend({prop:function(t,e){return H(this,E.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each((function(){delete this[E.propFix[t]||t]}))}}),E.extend({prop:function(t,e,n){var r,i,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&E.isXMLDoc(t)||(e=E.propFix[e]||e,i=E.propHooks[e]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:t[e]=n:i&&"get"in i&&null!==(r=i.get(t,e))?r:t[e]},propHooks:{tabIndex:{get:function(t){var e=E.find.attr(t,"tabindex");return e?parseInt(e,10):ve.test(t.nodeName)||me.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),v.optSelected||(E.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),E.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){E.propFix[this.toLowerCase()]=this})),E.fn.extend({addClass:function(t){var e,n,r,i,o,s,a,u=0;if(m(t))return this.each((function(e){E(this).addClass(t.call(this,e,be(this)))}));if((e=we(t)).length)for(;n=this[u++];)if(i=be(n),r=1===n.nodeType&&" "+ye(i)+" "){for(s=0;o=e[s++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");i!==(a=ye(r))&&n.setAttribute("class",a)}return this},removeClass:function(t){var e,n,r,i,o,s,a,u=0;if(m(t))return this.each((function(e){E(this).removeClass(t.call(this,e,be(this)))}));if(!arguments.length)return this.attr("class","");if((e=we(t)).length)for(;n=this[u++];)if(i=be(n),r=1===n.nodeType&&" "+ye(i)+" "){for(s=0;o=e[s++];)for(;r.indexOf(" "+o+" ")>-1;)r=r.replace(" "+o+" "," ");i!==(a=ye(r))&&n.setAttribute("class",a)}return this},toggleClass:function(t,e){var n=typeof t,r="string"===n||Array.isArray(t);return"boolean"==typeof e&&r?e?this.addClass(t):this.removeClass(t):m(t)?this.each((function(n){E(this).toggleClass(t.call(this,n,be(this),e),e)})):this.each((function(){var e,i,o,s;if(r)for(i=0,o=E(this),s=we(t);e=s[i++];)o.hasClass(e)?o.removeClass(e):o.addClass(e);else void 0!==t&&"boolean"!==n||((e=be(this))&&Q.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===t?"":Q.get(this,"__className__")||""))}))},hasClass:function(t){var e,n,r=0;for(e=" "+t+" ";n=this[r++];)if(1===n.nodeType&&(" "+ye(be(n))+" ").indexOf(e)>-1)return!0;return!1}});var _e=/\r/g;E.fn.extend({val:function(t){var e,n,r,i=this[0];return arguments.length?(r=m(t),this.each((function(n){var i;1===this.nodeType&&(null==(i=r?t.call(this,n,E(this).val()):t)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=E.map(i,(function(t){return null==t?"":t+""}))),(e=E.valHooks[this.type]||E.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,i,"value")||(this.value=i))}))):i?(e=E.valHooks[i.type]||E.valHooks[i.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(_e,""):null==n?"":n:void 0}}),E.extend({valHooks:{option:{get:function(t){var e=E.find.attr(t,"value");return null!=e?e:ye(E.text(t))}},select:{get:function(t){var e,n,r,i=t.options,o=t.selectedIndex,s="select-one"===t.type,a=s?null:[],u=s?o+1:i.length;for(r=o<0?u:s?o:0;r<u;r++)if(((n=i[r]).selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!N(n.parentNode,"optgroup"))){if(e=E(n).val(),s)return e;a.push(e)}return a},set:function(t,e){for(var n,r,i=t.options,o=E.makeArray(e),s=i.length;s--;)((r=i[s]).selected=E.inArray(E.valHooks.option.get(r),o)>-1)&&(n=!0);return n||(t.selectedIndex=-1),o}}}}),E.each(["radio","checkbox"],(function(){E.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=E.inArray(E(t).val(),e)>-1}},v.checkOn||(E.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})})),v.focusin="onfocusin"in n;var xe=/^(?:focusinfocus|focusoutblur)$/,Ee=function(t){t.stopPropagation()};E.extend(E.event,{trigger:function(t,e,r,i){var o,s,a,u,c,l,f,h,d=[r||b],g=p.call(t,"type")?t.type:t,v=p.call(t,"namespace")?t.namespace.split("."):[];if(s=h=a=r=r||b,3!==r.nodeType&&8!==r.nodeType&&!xe.test(g+E.event.triggered)&&(g.indexOf(".")>-1&&(v=g.split("."),g=v.shift(),v.sort()),c=g.indexOf(":")<0&&"on"+g,(t=t[E.expando]?t:new E.Event(g,"object"==typeof t&&t)).isTrigger=i?2:3,t.namespace=v.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),e=null==e?[t]:E.makeArray(e,[t]),f=E.event.special[g]||{},i||!f.trigger||!1!==f.trigger.apply(r,e))){if(!i&&!f.noBubble&&!y(r)){for(u=f.delegateType||g,xe.test(u+g)||(s=s.parentNode);s;s=s.parentNode)d.push(s),a=s;a===(r.ownerDocument||b)&&d.push(a.defaultView||a.parentWindow||n)}for(o=0;(s=d[o++])&&!t.isPropagationStopped();)h=s,t.type=o>1?u:f.bindType||g,(l=(Q.get(s,"events")||Object.create(null))[t.type]&&Q.get(s,"handle"))&&l.apply(s,e),(l=c&&s[c])&&l.apply&&X(s)&&(t.result=l.apply(s,e),!1===t.result&&t.preventDefault());return t.type=g,i||t.isDefaultPrevented()||f._default&&!1!==f._default.apply(d.pop(),e)||!X(r)||c&&m(r[g])&&!y(r)&&((a=r[c])&&(r[c]=null),E.event.triggered=g,t.isPropagationStopped()&&h.addEventListener(g,Ee),r[g](),t.isPropagationStopped()&&h.removeEventListener(g,Ee),E.event.triggered=void 0,a&&(r[c]=a)),t.result}},simulate:function(t,e,n){var r=E.extend(new E.Event,n,{type:t,isSimulated:!0});E.event.trigger(r,null,e)}}),E.fn.extend({trigger:function(t,e){return this.each((function(){E.event.trigger(t,e,this)}))},triggerHandler:function(t,e){var n=this[0];if(n)return E.event.trigger(t,e,n,!0)}}),v.focusin||E.each({focus:"focusin",blur:"focusout"},(function(t,e){var n=function(t){E.event.simulate(e,t.target,E.event.fix(t))};E.event.special[e]={setup:function(){var r=this.ownerDocument||this.document||this,i=Q.access(r,e);i||r.addEventListener(t,n,!0),Q.access(r,e,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,i=Q.access(r,e)-1;i?Q.access(r,e,i):(r.removeEventListener(t,n,!0),Q.remove(r,e))}}}));var Se=n.location,Te={guid:Date.now()},Ae=/\?/;E.parseXML=function(t){var e;if(!t||"string"!=typeof t)return null;try{e=(new n.DOMParser).parseFromString(t,"text/xml")}catch(t){e=void 0}return e&&!e.getElementsByTagName("parsererror").length||E.error("Invalid XML: "+t),e};var ke=/\[\]$/,Oe=/\r?\n/g,Ne=/^(?:submit|button|image|reset|file)$/i,Ce=/^(?:input|select|textarea|keygen)/i;function Fe(t,e,n,r){var i;if(Array.isArray(e))E.each(e,(function(e,i){n||ke.test(t)?r(t,i):Fe(t+"["+("object"==typeof i&&null!=i?e:"")+"]",i,n,r)}));else if(n||"object"!==x(e))r(t,e);else for(i in e)Fe(t+"["+i+"]",e[i],n,r)}E.param=function(t,e){var n,r=[],i=function(t,e){var n=m(e)?e():e;r[r.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==n?"":n)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!E.isPlainObject(t))E.each(t,(function(){i(this.name,this.value)}));else for(n in t)Fe(n,t[n],e,i);return r.join("&")},E.fn.extend({serialize:function(){return E.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var t=E.prop(this,"elements");return t?E.makeArray(t):this})).filter((function(){var t=this.type;return this.name&&!E(this).is(":disabled")&&Ce.test(this.nodeName)&&!Ne.test(t)&&(this.checked||!gt.test(t))})).map((function(t,e){var n=E(this).val();return null==n?null:Array.isArray(n)?E.map(n,(function(t){return{name:e.name,value:t.replace(Oe,"\r\n")}})):{name:e.name,value:n.replace(Oe,"\r\n")}})).get()}});var je=/%20/g,Ie=/#.*$/,De=/([?&])_=[^&]*/,Re=/^(.*?):[ \t]*([^\r\n]*)$/gm,Me=/^(?:GET|HEAD)$/,Pe=/^\/\//,Le={},Ue={},Be="*/".concat("*"),qe=b.createElement("a");function Ve(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var r,i=0,o=e.toLowerCase().match(P)||[];if(m(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(t[r]=t[r]||[]).unshift(n)):(t[r]=t[r]||[]).push(n)}}function $e(t,e,n,r){var i={},o=t===Ue;function s(a){var u;return i[a]=!0,E.each(t[a]||[],(function(t,a){var c=a(e,n,r);return"string"!=typeof c||o||i[c]?o?!(u=c):void 0:(e.dataTypes.unshift(c),s(c),!1)})),u}return s(e.dataTypes[0])||!i["*"]&&s("*")}function He(t,e){var n,r,i=E.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((i[n]?t:r||(r={}))[n]=e[n]);return r&&E.extend(!0,t,r),t}qe.href=Se.href,E.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Se.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Se.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Be,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":E.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?He(He(t,E.ajaxSettings),e):He(E.ajaxSettings,t)},ajaxPrefilter:Ve(Le),ajaxTransport:Ve(Ue),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var r,i,o,s,a,u,c,l,f,h,p=E.ajaxSetup({},e),d=p.context||p,g=p.context&&(d.nodeType||d.jquery)?E(d):E.event,v=E.Deferred(),m=E.Callbacks("once memory"),y=p.statusCode||{},w={},_={},x="canceled",S={readyState:0,getResponseHeader:function(t){var e;if(c){if(!s)for(s={};e=Re.exec(o);)s[e[1].toLowerCase()+" "]=(s[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=s[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return c?o:null},setRequestHeader:function(t,e){return null==c&&(t=_[t.toLowerCase()]=_[t.toLowerCase()]||t,w[t]=e),this},overrideMimeType:function(t){return null==c&&(p.mimeType=t),this},statusCode:function(t){var e;if(t)if(c)S.always(t[S.status]);else for(e in t)y[e]=[y[e],t[e]];return this},abort:function(t){var e=t||x;return r&&r.abort(e),T(0,e),this}};if(v.promise(S),p.url=((t||p.url||Se.href)+"").replace(Pe,Se.protocol+"//"),p.type=e.method||e.type||p.method||p.type,p.dataTypes=(p.dataType||"*").toLowerCase().match(P)||[""],null==p.crossDomain){u=b.createElement("a");try{u.href=p.url,u.href=u.href,p.crossDomain=qe.protocol+"//"+qe.host!=u.protocol+"//"+u.host}catch(t){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=E.param(p.data,p.traditional)),$e(Le,p,e,S),c)return S;for(f in(l=E.event&&p.global)&&0==E.active++&&E.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Me.test(p.type),i=p.url.replace(Ie,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(je,"+")):(h=p.url.slice(i.length),p.data&&(p.processData||"string"==typeof p.data)&&(i+=(Ae.test(i)?"&":"?")+p.data,delete p.data),!1===p.cache&&(i=i.replace(De,"$1"),h=(Ae.test(i)?"&":"?")+"_="+Te.guid+++h),p.url=i+h),p.ifModified&&(E.lastModified[i]&&S.setRequestHeader("If-Modified-Since",E.lastModified[i]),E.etag[i]&&S.setRequestHeader("If-None-Match",E.etag[i])),(p.data&&p.hasContent&&!1!==p.contentType||e.contentType)&&S.setRequestHeader("Content-Type",p.contentType),S.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Be+"; q=0.01":""):p.accepts["*"]),p.headers)S.setRequestHeader(f,p.headers[f]);if(p.beforeSend&&(!1===p.beforeSend.call(d,S,p)||c))return S.abort();if(x="abort",m.add(p.complete),S.done(p.success),S.fail(p.error),r=$e(Ue,p,e,S)){if(S.readyState=1,l&&g.trigger("ajaxSend",[S,p]),c)return S;p.async&&p.timeout>0&&(a=n.setTimeout((function(){S.abort("timeout")}),p.timeout));try{c=!1,r.send(w,T)}catch(t){if(c)throw t;T(-1,t)}}else T(-1,"No Transport");function T(t,e,s,u){var f,h,b,w,_,x=e;c||(c=!0,a&&n.clearTimeout(a),r=void 0,o=u||"",S.readyState=t>0?4:0,f=t>=200&&t<300||304===t,s&&(w=function(t,e,n){for(var r,i,o,s,a=t.contents,u=t.dataTypes;"*"===u[0];)u.shift(),void 0===r&&(r=t.mimeType||e.getResponseHeader("Content-Type"));if(r)for(i in a)if(a[i]&&a[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||t.converters[i+" "+u[0]]){o=i;break}s||(s=i)}o=o||s}if(o)return o!==u[0]&&u.unshift(o),n[o]}(p,S,s)),!f&&E.inArray("script",p.dataTypes)>-1&&(p.converters["text script"]=function(){}),w=function(t,e,n,r){var i,o,s,a,u,c={},l=t.dataTypes.slice();if(l[1])for(s in t.converters)c[s.toLowerCase()]=t.converters[s];for(o=l.shift();o;)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!u&&r&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),u=o,o=l.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(s=c[u+" "+o]||c["* "+o]))for(i in c)if((a=i.split(" "))[1]===o&&(s=c[u+" "+a[0]]||c["* "+a[0]])){!0===s?s=c[i]:!0!==c[i]&&(o=a[0],l.unshift(a[1]));break}if(!0!==s)if(s&&t.throws)e=s(e);else try{e=s(e)}catch(t){return{state:"parsererror",error:s?t:"No conversion from "+u+" to "+o}}}return{state:"success",data:e}}(p,w,S,f),f?(p.ifModified&&((_=S.getResponseHeader("Last-Modified"))&&(E.lastModified[i]=_),(_=S.getResponseHeader("etag"))&&(E.etag[i]=_)),204===t||"HEAD"===p.type?x="nocontent":304===t?x="notmodified":(x=w.state,h=w.data,f=!(b=w.error))):(b=x,!t&&x||(x="error",t<0&&(t=0))),S.status=t,S.statusText=(e||x)+"",f?v.resolveWith(d,[h,x,S]):v.rejectWith(d,[S,x,b]),S.statusCode(y),y=void 0,l&&g.trigger(f?"ajaxSuccess":"ajaxError",[S,p,f?h:b]),m.fireWith(d,[S,x]),l&&(g.trigger("ajaxComplete",[S,p]),--E.active||E.event.trigger("ajaxStop")))}return S},getJSON:function(t,e,n){return E.get(t,e,n,"json")},getScript:function(t,e){return E.get(t,void 0,e,"script")}}),E.each(["get","post"],(function(t,e){E[e]=function(t,n,r,i){return m(n)&&(i=i||r,r=n,n=void 0),E.ajax(E.extend({url:t,type:e,dataType:i,data:n,success:r},E.isPlainObject(t)&&t))}})),E.ajaxPrefilter((function(t){var e;for(e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")})),E._evalUrl=function(t,e,n){return E.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){E.globalEval(t,e,n)}})},E.fn.extend({wrapAll:function(t){var e;return this[0]&&(m(t)&&(t=t.call(this[0])),e=E(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map((function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t})).append(this)),this},wrapInner:function(t){return m(t)?this.each((function(e){E(this).wrapInner(t.call(this,e))})):this.each((function(){var e=E(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)}))},wrap:function(t){var e=m(t);return this.each((function(n){E(this).wrapAll(e?t.call(this,n):t)}))},unwrap:function(t){return this.parent(t).not("body").each((function(){E(this).replaceWith(this.childNodes)})),this}}),E.expr.pseudos.hidden=function(t){return!E.expr.pseudos.visible(t)},E.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},E.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(t){}};var We={0:200,1223:204},ze=E.ajaxSettings.xhr();v.cors=!!ze&&"withCredentials"in ze,v.ajax=ze=!!ze,E.ajaxTransport((function(t){var e,r;if(v.cors||ze&&!t.crossDomain)return{send:function(i,o){var s,a=t.xhr();if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(s in t.xhrFields)a[s]=t.xhrFields[s];for(s in t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)a.setRequestHeader(s,i[s]);e=function(t){return function(){e&&(e=r=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null,"abort"===t?a.abort():"error"===t?"number"!=typeof a.status?o(0,"error"):o(a.status,a.statusText):o(We[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=e(),r=a.onerror=a.ontimeout=e("error"),void 0!==a.onabort?a.onabort=r:a.onreadystatechange=function(){4===a.readyState&&n.setTimeout((function(){e&&r()}))},e=e("abort");try{a.send(t.hasContent&&t.data||null)}catch(t){if(e)throw t}},abort:function(){e&&e()}}})),E.ajaxPrefilter((function(t){t.crossDomain&&(t.contents.script=!1)})),E.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return E.globalEval(t),t}}}),E.ajaxPrefilter("script",(function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")})),E.ajaxTransport("script",(function(t){var e,n;if(t.crossDomain||t.scriptAttrs)return{send:function(r,i){e=E("<script>").attr(t.scriptAttrs||{}).prop({charset:t.scriptCharset,src:t.url}).on("load error",n=function(t){e.remove(),n=null,t&&i("error"===t.type?404:200,t.type)}),b.head.appendChild(e[0])},abort:function(){n&&n()}}}));var Ge,Ye=[],Xe=/(=)\?(?=&|$)|\?\?/;E.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Ye.pop()||E.expando+"_"+Te.guid++;return this[t]=!0,t}}),E.ajaxPrefilter("json jsonp",(function(t,e,r){var i,o,s,a=!1!==t.jsonp&&(Xe.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Xe.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=m(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(Xe,"$1"+i):!1!==t.jsonp&&(t.url+=(Ae.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return s||E.error(i+" was not called"),s[0]},t.dataTypes[0]="json",o=n[i],n[i]=function(){s=arguments},r.always((function(){void 0===o?E(n).removeProp(i):n[i]=o,t[i]&&(t.jsonpCallback=e.jsonpCallback,Ye.push(i)),s&&m(o)&&o(s[0]),s=o=void 0})),"script"})),v.createHTMLDocument=((Ge=b.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Ge.childNodes.length),E.parseHTML=function(t,e,n){return"string"!=typeof t?[]:("boolean"==typeof e&&(n=e,e=!1),e||(v.createHTMLDocument?((r=(e=b.implementation.createHTMLDocument("")).createElement("base")).href=b.location.href,e.head.appendChild(r)):e=b),o=!n&&[],(i=C.exec(t))?[e.createElement(i[1])]:(i=xt([t],e,o),o&&o.length&&E(o).remove(),E.merge([],i.childNodes)));var r,i,o},E.fn.load=function(t,e,n){var r,i,o,s=this,a=t.indexOf(" ");return a>-1&&(r=ye(t.slice(a)),t=t.slice(0,a)),m(e)?(n=e,e=void 0):e&&"object"==typeof e&&(i="POST"),s.length>0&&E.ajax({url:t,type:i||"GET",dataType:"html",data:e}).done((function(t){o=arguments,s.html(r?E("<div>").append(E.parseHTML(t)).find(r):t)})).always(n&&function(t,e){s.each((function(){n.apply(this,o||[t.responseText,e,t])}))}),this},E.expr.pseudos.animated=function(t){return E.grep(E.timers,(function(e){return t===e.elem})).length},E.offset={setOffset:function(t,e,n){var r,i,o,s,a,u,c=E.css(t,"position"),l=E(t),f={};"static"===c&&(t.style.position="relative"),a=l.offset(),o=E.css(t,"top"),u=E.css(t,"left"),("absolute"===c||"fixed"===c)&&(o+u).indexOf("auto")>-1?(s=(r=l.position()).top,i=r.left):(s=parseFloat(o)||0,i=parseFloat(u)||0),m(e)&&(e=e.call(t,n,E.extend({},a))),null!=e.top&&(f.top=e.top-a.top+s),null!=e.left&&(f.left=e.left-a.left+i),"using"in e?e.using.call(t,f):("number"==typeof f.top&&(f.top+="px"),"number"==typeof f.left&&(f.left+="px"),l.css(f))}},E.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each((function(e){E.offset.setOffset(this,t,e)}));var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,n,r=this[0],i={top:0,left:0};if("fixed"===E.css(r,"position"))e=r.getBoundingClientRect();else{for(e=this.offset(),n=r.ownerDocument,t=r.offsetParent||n.documentElement;t&&(t===n.body||t===n.documentElement)&&"static"===E.css(t,"position");)t=t.parentNode;t&&t!==r&&1===t.nodeType&&((i=E(t).offset()).top+=E.css(t,"borderTopWidth",!0),i.left+=E.css(t,"borderLeftWidth",!0))}return{top:e.top-i.top-E.css(r,"marginTop",!0),left:e.left-i.left-E.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var t=this.offsetParent;t&&"static"===E.css(t,"position");)t=t.offsetParent;return t||ot}))}}),E.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(t,e){var n="pageYOffset"===e;E.fn[t]=function(r){return H(this,(function(t,r,i){var o;if(y(t)?o=t:9===t.nodeType&&(o=t.defaultView),void 0===i)return o?o[e]:t[r];o?o.scrollTo(n?o.pageXOffset:i,n?i:o.pageYOffset):t[r]=i}),t,r,arguments.length)}})),E.each(["top","left"],(function(t,e){E.cssHooks[e]=zt(v.pixelPosition,(function(t,n){if(n)return n=Wt(t,e),qt.test(n)?E(t).position()[e]+"px":n}))})),E.each({Height:"height",Width:"width"},(function(t,e){E.each({padding:"inner"+t,content:e,"":"outer"+t},(function(n,r){E.fn[r]=function(i,o){var s=arguments.length&&(n||"boolean"!=typeof i),a=n||(!0===i||!0===o?"margin":"border");return H(this,(function(e,n,i){var o;return y(e)?0===r.indexOf("outer")?e["inner"+t]:e.document.documentElement["client"+t]:9===e.nodeType?(o=e.documentElement,Math.max(e.body["scroll"+t],o["scroll"+t],e.body["offset"+t],o["offset"+t],o["client"+t])):void 0===i?E.css(e,n,a):E.style(e,n,i,a)}),e,s?i:void 0,s)}}))})),E.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(t,e){E.fn[e]=function(t){return this.on(e,t)}})),E.fn.extend({bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,r){return this.on(e,t,n,r)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)},hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),E.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(t,e){E.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}}));var Je=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;E.proxy=function(t,e){var n,r,i;if("string"==typeof e&&(n=t[e],e=t,t=n),m(t))return r=a.call(arguments,2),(i=function(){return t.apply(e||this,r.concat(a.call(arguments)))}).guid=t.guid=t.guid||E.guid++,i},E.holdReady=function(t){t?E.readyWait++:E.ready(!0)},E.isArray=Array.isArray,E.parseJSON=JSON.parse,E.nodeName=N,E.isFunction=m,E.isWindow=y,E.camelCase=Y,E.type=x,E.now=Date.now,E.isNumeric=function(t){var e=E.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},E.trim=function(t){return null==t?"":(t+"").replace(Je,"")},void 0===(r=function(){return E}.apply(e,[]))||(t.exports=r);var Qe=n.jQuery,Ke=n.$;return E.noConflict=function(t){return n.$===E&&(n.$=Ke),t&&n.jQuery===E&&(n.jQuery=Qe),E},void 0===i&&(n.jQuery=n.$=E),E}))},112:function(module,exports,__webpack_require__){var $=__webpack_require__("shim/jquery");(function(){!function(global){if(Splunk.namespace("util"),Splunk.util={logger:{info:function(){},log:function(){},debug:function(){},warn:function(){},error:function(){}},propToQueryString:function(t){var e,n=[];for(var r in t)Array.isArray(t[r])?t[r].forEach((function(t){n.push(encodeURIComponent(r)+"="+encodeURIComponent(t))})):(e=t[r],n.push(encodeURIComponent(r)+"="+encodeURIComponent(e)));return n.join("&")},queryStringToProp:function(t){if(!(t=this.trim(t,"&?#"))||0==t.length)return{};for(var e,n,r,i=t.split("&"),o={},s=0;s<i.length;s++){r=i[s].split("=");try{e=decodeURIComponent(r.shift()),n=decodeURIComponent(r.join("=").replace(/\+/g," "))}catch(t){continue}if(o.hasOwnProperty(e))if(Array.isArray(o[e]))o[e].push(n);else{var a=[];a.push(o[e]),a.push(n),o[e]=a}else o[e]=n}return o},getHash:function(){var t=window.location.href.indexOf("#");if(-1==t)return"";var e=window.location.href.indexOf("?",t);return-1!=e?window.location.href.substr(e):window.location.href.substr(t)},parseDate:function(t,e){if(!t||!t.indexOf||0==t.indexOf("mm"))return null;var n=0,r=-1,i=0,o=t.split(/\W+/),s=e.match(/%./g),a=0,u=0,c=0,l=0;for(a=0;a<o.length;++a)if(o[a])switch(s[a]){case"%d":i=parseInt(o[a],10);break;case"%m":r=parseInt(o[a],10)-1;break;case"%Y":case"%y":(n=parseInt(o[a],10))<100&&(n+=n>29?1900:2e3);break;case"%H":u=parseInt(o[a],10);break;case"%M":c=parseInt(o[a],10);break;case"%S":l=parseInt(o[a],10)}return 0!=n&&-1!=r&&0!=i&&new Date(n,r,i,u,c,l)},getTimezoneOffsetDelta:function(t,e){return Splunk.util.isInt(t)?1e3*((t*=-60)-60*e.getTimezoneOffset()):0},getEpochTimeFromISO:function(isoStr){this._isoTimeRegex||(this._isoTimeRegex=/([\+\-])?(\d{4,})(?:(?:\-(\d{2}))(?:(?:\-(\d{2}))(?:(?:[T ](\d{2}))(?:(?:\:(\d{2}))(?:(?:\:(\d{2}(?:\.\d+)?)))?)?(?:(Z)|([\+\-])(\d{2})[:]*(\d{2})?)?)?)?)?/);var m=this._isoTimeRegex.exec(isoStr),seconds,millisecondsStr;m[7]?(seconds=m[7].substring(0,2),millisecondsStr=m[7].substring(2)):millisecondsStr="";var offset=eval(m[9]+(60*m[10]+parseInt(m[11]||0,10))),str=sprintf("%s/%s/%s %s:%s:%s",m[3],m[4],m[2],m[5],m[6],seconds),t=new Date(str);t.setTime(t.getTime()+this.getTimezoneOffsetDelta(offset,t));var startTime=t.getTime()/1e3;return startTime+millisecondsStr},getConfigValue:function(t,e){if(window.$C&&window.$C.hasOwnProperty(t))return window.$C[t];if("FORM_KEY"===t)return this.getFormKey();if(void 0!==e)return e;throw new Error("getConfigValue - "+t+" not set, no default provided")},getCookie:function(t){var e=null;if(document.cookie&&""!=document.cookie)for(var n=document.cookie.split(";"),r=0;r<n.length;r++){var i=$.trim(n[r]);if(i.substring(0,t.length+1)==t+"="){e=decodeURIComponent(i.substring(t.length+1));break}}return e},deleteCookie:function(t){var e=new Date;e.setTime(e.getTime()+-864e5),e.toUTCString(),document.cookie=sprintf("%s=;expires=%s;path=/",t,e)},getFormKey:function(){var t="splunkweb_csrf_token_"+Splunk.util.getConfigValue("MRSPARKLE_PORT_NUMBER",""),e=Splunk.util.getCookie(t);return e||""},loginCheck:function(){return Splunk.util.getCookie("login")},getPlatform:function(){return window.navigator.platform},isWindowsPlatform:function(){return!!this.getPlatform()&&this.getPlatform().toLocaleLowerCase().indexOf("win")>=0},isLinuxPlatform:function(){return!!this.getPlatform()&&this.getPlatform().toLocaleLowerCase().indexOf("linux")>=0},isMacPlatform:function(){return!!this.getPlatform()&&this.getPlatform().toLocaleLowerCase().indexOf("mac")>=0},make_url:function(){for(var t,e,n="",r=0,i=arguments.length;r<i;r++)(e=(t=arguments[r].toString()).length)>1&&"/"==t.charAt(e-1)&&(t=t.substring(0,e-1)),"/"!=t.charAt(0)?n+="/"+t:n+=t;if("/"!=n){var o=n.split("/"),s=o[1];if("static"==s||"modules"==s){var a=n.substring(s.length+2,n.length);n="/"+s+"/@"+window.$C.BUILD_NUMBER,window.$C.BUILD_PUSH_NUMBER&&(n+="."+window.$C.BUILD_PUSH_NUMBER),"app"==o[2]&&(n+=":"+this.getConfigValue("APP_BUILD",0)),n+="/"+a}}var u=Splunk.util.getConfigValue("MRSPARKLE_ROOT_PATH","/"),c=Splunk.util.getConfigValue("LOCALE","en-US"),l="/"+c+n;return""==u||"/"==u?l:u+l},make_full_url:function(t,e){return t=this.make_url(t),e&&(t=t+"?"+this.propToQueryString(e)),t},redirect_to:function(t,e,n,r){t=this.make_full_url(t,e),n||(n=window),n.document.location=t,r&&n.focus&&n.focus()},getCurrentApp:function(){return $(document.body).attr("s:app")||"UNKNOWN_APP"},getCurrentView:function(){return $(document.body).attr("s:view")||"UNKNOWN_VIEW"},getCurrentDisplayView:function(){return $(document.body).attr("s:displayview")||this.getCurrentView()},getAutoCancelInterval:function(){var t=$(document.body).attr("s:autoCancelInterval");return t||(this.logger.error("no autoCancelInterval found. Returning 0"),t=0),t},getCurrentViewConfig:function(){return $.extend({},Splunk.ViewConfig)},getPath:function(t){void 0===t&&(t=document.location.pathname);var e=this.getConfigValue("LOCALE").toString();if(!this.getConfigValue("LOCALE")||-1==t.indexOf(e))return t;var n=e.length+t.indexOf(e);return t.slice(n)},getCumlativeOffsetTop:function(t){return t?t.offsetTop+this.getCumlativeOffsetTop(t.offsetParent):0},getCumlativeOffsetLeft:function(t){return t?t.offsetLeft+this.getCumlativeOffsetLeft(t.offsetParent):0},getPageYOffset:function(){var t=0;return window.pageYOffset?t=window.pageYOffset:document.documentElement&&document.documentElement.scrollTop&&(t=document.documentElement.scrollTop),t},getWindowDimensions:function(){return{width:isNaN(window.innerWidth)?document.documentElement.clientWidth||0:window.innerWidth,height:isNaN(window.innerHeight)?document.documentElement.clientHeight||0:window.innerHeight}},getComputedStyleHelper:function(t,e){if(t.currentStyle)return t.currentStyle[e];if(window.getComputedStyle){var n=e.replace(/([A-Z])/g,"-$1").toLowerCase();return window.getComputedStyle(t,"").getPropertyValue(n)}return""},getParameter:function(t,e){return(e=e||window.location.search)&&e.indexOf(t+"=")+1?e.split(t+"=")[1].split("&")[0]:null},getHEX:function(t){var e=t.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/),n=(e[1]<<16|e[2]<<8|e[3]).toString(16);return"#"+Array(6-n.length).concat([n]).toString().replace(/,/g,0)},normalizeColor:function(t){if(normalizedColor=null,"#"===t.charAt(0))4===t.length?normalizedColor=t+t.charAt(1)+t.charAt(2)+t.charAt(3):normalizedColor=t;else try{normalizedColor=this.getHEX(t)}catch(t){}return normalizedColor},validateCronString:function(t){return!!/^((0*([0-9]|[1-5][0-9])|\*)(-0*([0-9]|[1-5][0-9]))?(\/\d+)?,)*(0*([0-9]|[1-5][0-9])|\*)(-0*([0-9]|[1-5][0-9]))?(\/\d+)?\s((0*([0-9]|1[0-9]|2[0-3])|\*)(-0*([0-9]|1[0-9]|2[0-3]))?(\/\d+)?,)*(0*([0-9]|1[0-9]|2[0-3])|\*)(-0*([0-9]|1[0-9]|2[0-3]))?(\/\d+)?\s((0*([1-9]|[1-2][0-9]|3[0-1])|\*)(-0*([1-9]|[1-2][0-9]|3[0-1]))?(\/\d+)?,)*(0*([1-9]|[1-2][0-9]|3[0-1])|\*)(-0*([1-9]|[1-2][0-9]|3[0-1]))?(\/\d+)?\s((0*([1-9]|1[0-2])|\*)(-0*([1-9]|1[0-2]))?(\/\d+)?,)*(0*([1-9]|1[0-2])|\*)(-0*([1-9]|1[0-2]))?(\/\d+)?\s((0*[0-7]|\*)(-0*[0-7])?(\/\d+)?,)*(0*[0-7]|\*)(-0*[0-7])?(\/\d+)?$/.test(t)},turboInnerHTML:function(t,e){
|
|
|
/*@cc_on //innerHTML is faster for IE
|
|
|
target.innerHTML = innerHTML;
|
|
|
return target;
|
|
|
@*/
|
|
|
var n=t.cloneNode(!1);return n.innerHTML=e,t.parentNode.replaceChild(n,t),n},normalizeBoolean:function(t,e){switch("string"==typeof t&&(t=t.toLowerCase()),t){case!0:case 1:case"1":case"yes":case"on":case"true":return!0;case!1:case 0:case"0":case"no":case"off":case"false":return!1;default:if(e)throw TypeError("Unable to cast value into boolean: "+t);return t}},getCommaFormattedNumber:function(t){for(var e=(t+="").split("."),n=e[0],r=e.length>1?"."+e[1]:"",i=/(\d+)(\d{3})/;i.test(n);)n=n.replace(i,"$1,$2");return n+r},reLTrim:/^[\s\t\r\n]+/,reLTrimCommand:/^[\s\t\r\n\|]+/,reRNormalize:/[\s\t\r\n]+$/,addLeadingSearchCommand:function(t,e){var n=""+t;return"|"==(n=n.replace(this.reLTrim,"").replace(this.reRNormalize," ")).substring(0,1)||!e&&"search "==n.substring(0,7)&&n.length>7?t:"search "+n},stripLeadingSearchCommand:function(t){var e=""+t;return"search "==(e=e.replace(this.reLTrimCommand,"")).substring(0,7)?e.substring(7).replace(this.reLTrimCommand,""):t},stringToFieldList:function(t){if("string"!=typeof t||!t)return[];for(var e=[],n=[],r=!1,i=$.trim(t),o=0,s=i.length;o<s;o++)if("\\"!=i.charAt(o))if('"'!=i.charAt(o))" "!=i.charAt(o)&&","!=i.charAt(o)||r?n.push(i.charAt(o)):(n.length>0&&e.push(n.join("")),n=[]);else{if(r){r=!1,e.push(n.join("")),n=[];continue}r=!0}else{var a=o+1;if(s>a&&("\\"==i.charAt(a)||'"'==i.charAt(a))){n.push(i.charAt(a)),o++;continue}n.push(i.charAt(o))}return n.length>0&&e.push(n.join("")),e},_sflQuotable:/([\\",\s])/,_sflEscapable:/([\\"])/g,fieldListToString:function(t){if(!t)return"";for(var e=[],n=0,r=t.length;n<r;n++){var i=$.trim(t[n]);""!=i&&(i.search(this._sflEscapable)>-1&&(i=i.replace(this._sflEscapable,"\\$1")),i.search(this._sflQuotable)>-1&&(i=['"',i,'"'].join("")),e.push(i))}return e.join(",")},searchEscape:function(t,e){return t.match(/[\s\,=|\[\]\"]/)?'"'+t.replace(/(\"|\\)/g,"\\$1")+'"':e&&e.forceQuotes?'"'+t+'"':t},searchUnescape:function(t){return'"'!==t[0]||'"'!==t[t.length-1]?t:t.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\")},objectSimilarity:function(t,e){if(t instanceof Array&&e instanceof Array){if(t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(!this.objectSimilarity(t[n],e[n]))return!1}else if(t instanceof Object&&e instanceof Object){if(t!=e){for(var r in e)if(!t.hasOwnProperty(r))return!1;for(var i in t)if(t.hasOwnProperty(i)){if(!e.hasOwnProperty(i))return!1;if(!this.objectSimilarity(t[i],e[i]))return!1}}}else if("function"==typeof t&&"function"==typeof e){if(t.toString()!==e.toString())return!1}else if(t!==e)return!1;return!0},StopWatch:function(){var t=this,e=null,n=null,r=[],o=function(t){return null!=t},s=function(){return o(e)},a=function(){return o(n)},u=function(){e=null,n=null};t.start=function(){if(s())throw new Error("cannot call start, start already invoked.");e=new Date},t.stop=function(){if(!s())throw new Error("cannot call stop, start not invoked.");if(a())throw new Error("cannot call stop, stop already invoked.");n=new Date,time=n-e,r.push(time)},t.pause=function(){if(!s())throw new Error("cannot call pause, start not invoked.");if(a())throw new Error("cannot call pause, stop already invoked.");t.stop(),u()},t.reset=function(){u(),r=[]},t.time=function(){var t=0;for(i=0;i<r.length;i++)t+=r[i];return s()&&!a()&&(t+=new Date-e),t/1e3}},isInt:function(t){return""!==t&&!isNaN(parseInt(t,10))&&parseInt(t,10)==t/1},smartTrim:function(t,e){if(!t)return t;if(e<1)return t;if(t.length<=e)return t;if(1==e)return t.substring(0,1)+"...";var n=Math.ceil(t.length/2),r=t.length-e,i=Math.ceil(r/2),o=r-i;return t.substring(0,n-i)+"..."+t.substring(n+o)},_tokenDiscoverer:/\$([^$]+)\$/g,discoverReplacementTokens:function(t){var e,n=[],r=Splunk.util._tokenDiscoverer;if("string"==typeof t){if(t.match(r)){e=t.match(r);for(var i=0;i<e.length;i++)e[i]=e[i].substring(1,e[i].length-1);return e}return[]}if("function"==typeof t)return[];for(var o in t){e=[],e=Splunk.util.discoverReplacementTokens(t[o]);for(var s=o.match(r)||[],a=0;a<s.length;a++)e.push(s[a].substring(1,s[a].length-1));for(var u=0;u<e.length;u++)-1==n.indexOf(e[u])&&n.push(e[u])}return n},replaceTokens:function(t,e,n){if("string"==typeof t)return t.match(e)&&(t=t.replace(e,n)),t;if("function"==typeof t)return t;var r={};for(var i in t)"object"==typeof t[i]?Splunk.util.replaceTokens(t[i],e,n):"string"==typeof t[i]&&t[i].match(e)&&(t[i]=t[i].replace(e,n)),i.match(e)&&(r[i]=i.replace(e,n));for(var o in r){t[r[o]]=t[o],delete t[o]}return t},getServerTimezoneOffset:function(){return Splunk.util.getConfigValue("SERVER_TIMEZONE_OFFSET")},moduleLoadStates:{WAITING_FOR_INITIALIZATION:1,WAITING_FOR_HIERARCHY:2,WAITING_FOR_CONTEXT:6,HAS_CONTEXT:7},getRetryInterval:function(t,e,n,r){return t>=r?parseFloat(n):Math.min(n*Math.pow(t/parseFloat(r),3)+e,n)},escapeHtml:function(t){return(""+t).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},escapeBackslash:function(t){return(""+t).replace(/\\/g,"\\\\")},escapeQuotes:function(t){return(""+t).replace('"','\\"')},escapeRegex:function(t){return(t+"").replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")},escapeSelector:function(t){return(""+t).replace(/([;&,\.\+\*\~':"\!\^#$%@\[\]\(\)=>\|])/g,"\\$1")},trimToAlphaNumeric:function(t){return(""+t).replace(/([\s;&,\.\+\*\~':"\!\^#$%@\[\]\(\)=<>`\/\|\\])/g,"")},trim:function(t,e){return e?t.replace(new RegExp("^[\\s"+e+"]+"),"").replace(new RegExp("[\\s"+e+"]+$"),""):t.replace(/^\s\s*/,"").replace(/\s\s*$/,"")},lowerTrimStr:function(t,e){return t?this.trim(t).toLowerCase():e||t},focusFirstField:function(t){var e=$(":input:visible:enabled:first",t),n=$("select:visible:enabled:first",t);e.is(":button")&&e.hasClass("splButton-secondary")&&$(":input:button.splButton-primary:first",t).length&&(e=$(":input:button.splButton-primary:first",t));var r=!!e.length&&e.offset().top,i=!!n.length&&n.offset().top,o=e;r&&i&&i<r&&(o=n),o.focus(),o.is(":focus")||setTimeout((function(){o.focus()}),10)},getWikiTransform:function(t){var e=Splunk.util.escapeHtml(t);return e=(e=(e=(e=e.replace(/\[(\!?)(\w+\:\/\/[^\s]+)\s+([^\]]+)\]/g,'<a href="$2" #~#$1#~#>$3</a>')).replace(/\[\[(\!?)([^\|]+)\|([^\]]+)\]\]/g,Splunk.util._generateInternalLink)).replace(/#~#!#~#/g,'target="_blank"')).replace(/\s*#~##~#/g,"")},_generateInternalLink:function(t,e,n,r){return'<a href="'+(n=Splunk.util.make_url(n))+'"#~#'+e+"#~#>"+r+"</a>"},findMatchIndices:function(t,e){for(var n=e.match(t),r=0,i=[],o=n.length,s=0;s<o;s++){var a=n[s];-1!=(r=e.indexOf(a,r))&&i.push({match:a,start:r,end:r+a.length-1}),r++}return i},isRainmakr:function(t,e){return!t&&e},isStackmakr:function(t,e){return t&&e},getIEVersion:function(){var t=navigator.userAgent.toLowerCase();return-1!=t.indexOf("msie")?parseInt(t.split("msie")[1],10):-1!=t.indexOf("trident")?parseInt(t.split(" rv:")[1],10):-1},restart_server:function(t){var e,n,r,i=!1,o=0,s=!1,a=!1,u=[],c=function(t){Splunk.Messenger.System.getInstance().send("error","restart_server",t),$(document).trigger("restart_failed")},l=function(){var e;a||(a=!0,alert(_("Restart successful - close this dialog to redirect back to login page")),e=t?n+this.make_full_url("/account/login",{return_to:t}):n+this.make_url("/"),window.location.href=e)}.bind(this),f=function(){s||(o++>=180?c(_("Timed out waiting for restart")):($.ajax({type:"GET",dataType:"json",cache:!1,url:n+this.make_url("/api/config/UI_UNIX_START_TIME"),success:function(t){t.start_time>e&&(s=!0,clearTimeout(i),l())}}),i=setTimeout(f,2e3)))}.bind(this),h=function(){s=!0,clearTimeout(i),l()},p=function(){if(!s){var t=new Image;t.onload=h,t.src=n+this.make_url("/config/img?proto="+r+"&_="+Math.random()),t.alt=_("Restart check status"),u.push(t),i=setTimeout(p,2e3)}}.bind(this);$.post(this.make_url("/api/manager/control"),{operation:"restart_server"},function(t){if("OK"==t.status){e=t.start_time,"window"==t.ssl&&(t.ssl="https:"==window.location.protocol),r=t.ssl?"https":"http",n=(t.ssl?"https://":"http://")+window.location.hostname+(80==t.port||t.ssl&&443==t.port?"":":"+t.port),Splunk.Logger.mode.Default=Splunk.Logger.mode.None,Splunk.Messenger&&(Splunk.Messenger.System.getInstance().abortRequests=!0),Splunk.Session.getInstance().signalRestart(),o=0;var i=window.location.port||("http:"==window.location.protocol?80:443),s="https:"==window.location.protocol;if(!s&&t.ssl||t.ssl&&i!=t.port)return void $(document).trigger({type:"restart_ssl",sslBase:n});t.ssl!=s||i!=t.port?p():f()}else"PERMS"==t.status?c(_("Permission Denied - You are not authorized to restart the server")):"AUTH"==t.status?c(_("Restart failed")):"FAIL"==t.status?c(_("Restart failed: "+t.reason)):c(_("Restart failed"))}.bind(this),"json")},/*trackEvent:function(t){window._splunk_metrics_events&&"object"==typeof t&&window._splunk_metrics_events.push(t)},*/assemblePageInteractionData:function(t,e,n){return{type:"page.interact",data:{app:t,action:e,custom:n||{}}}},trackPageInteraction:function(t,e,n){ /*try{this.trackEvent(this.assemblePageInteractionData(t,e,n))}catch(t){console.log("Error in trackPageInteration. Error: "+t)}*/ }},!Function.prototype.bind){var $A=function(t){if(!t)return[];if(t.toArray)return t.toArray();for(var e=[],n=0,r=t.length;n<r;n++)e.push(t[n]);return e};Function.prototype.bind=function(){var t=this,e=$A(arguments),n=e.shift();return function(){return t.apply(n,e.concat($A(arguments)))}}}String.prototype.repeat||(String.prototype.repeat=function(t){return new Array(t+1).join(this)}),String.prototype.reverse||(String.prototype.reverse=function(){return this.split("").reverse().join("")}),String.prototype.rsplit||(String.prototype.rsplit=function(t,e){var n=this.split(t);if(e&&n.length>e){for(var r=[],i=0;i<e;i++)r[i]=n[n.length-e+i];return r}return n}),Array.prototype.indexOf||(Array.prototype.indexOf=function(t,e){e||(e=0);for(var n=0;n<this.length;n++)if(this[n]===t)return n;return-1}),Array.prototype.extend||(Array.prototype.extend=function(t){for(var e=0;e<t.length;e++)this.push(t[e])});var sprintf=global.sprintf=function(){var t=/%%|%(\d+\$)?(\([^)]+\))?([-+#0 ]*)(\*\d+\$|\*|\d+)?(\.(\*\d+\$|\*|\d+))?([scboxXuidfegEG])/g,e=arguments,n=0,r=e[n];n++;var i=function(t,e,n,r){var i=t.length>=e?"":Array(1+e-t.length>>>0).join(n);return r?t+i:i+t},o=function(t,e,n,r,o){var s=r-t.length;return s>0&&(t=n||!o?i(t,r," ",n):t.slice(0,e.length)+i("",s,"0",!0)+t.slice(e.length)),t},s=function(t,e,n,r,s,a,u){var c=t>>>0;return t=(n=n&&c&&{2:"0b",8:"0",16:"0x"}[e]||"")+i(c.toString(e),a||0,"0",!1),o(t,n,r,s,u)},a=function(t,e,n,r,i){return null!=r&&(t=t.slice(0,r)),o(t,"",e,n,i)},u=function(t,r,u,c,l,f,h,p){if("%%"==t)return"%";for(var d,g,v,m=!1,y="",b=!1,w=!1,_=c.length,x=0;c&&x<_;x++)switch(c.charAt(x)){case" ":y=" ";break;case"+":y="+";break;case"-":m=!0;break;case"0":b=!0;break;case"#":w=!0}if(l?"*"==l?(l=+e[n],n++):l="*"==l.charAt(0)?+e[l.slice(1,-1)]:+l:l=0,l<0&&(l=-l,m=!0),!isFinite(l))throw new Error("sprintf: (minimum-)width must be finite");switch(h?"*"==h?(h=+e[n],n++):h="*"==h.charAt(0)?+e[h.slice(1,-1)]:+h:h="fFeE".indexOf(p)>-1?6:"d"==p?0:void 0,u?(u=u.substr(1,u.length-2),d=e[1].__getitem__?e[1].__getitem__(u):e[1][u]):r?d=e[r.slice(0,-1)]:(d=e[n],n++),p){case"s":return a(String(d),m,l,h,b);case"c":return a(String.fromCharCode(+d),m,l,h,b);case"b":return s(d,2,w,m,l,h,b);case"o":return s(d,8,w,m,l,h,b);case"x":return s(d,16,w,m,l,h,b);case"X":return s(d,16,w,m,l,h,b).toUpperCase();case"u":return s(d,10,w,m,l,h,b);case"i":case"d":return d=(v=(g=parseInt(+d,10))<0?"-":y)+i(String(Math.abs(g)),h,"0",!1),o(d,v,m,l,b);case"e":case"E":case"f":case"F":case"g":case"G":v=(g=+d)<0?"-":y;var E=["toExponential","toFixed","toPrecision"]["efg".indexOf(p.toLowerCase())],S=["toString","toUpperCase"]["eEfFgG".indexOf(p)%2];return d=v+Math.abs(g)[E](h),o(d,v,m,l,b)[S]();default:return t}};return r.replace(t,u)}}(this)}).call(window)},113:function(t,e){var n,r,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(t){n=o}try{r="function"==typeof clearTimeout?clearTimeout:s}catch(t){r=s}}();var u,c=[],l=!1,f=-1;function h(){l&&u&&(l=!1,u.length?c=u.concat(c):f=-1,c.length&&p())}function p(){if(!l){var t=a(h);l=!0;for(var e=c.length;e;){for(u=c,c=[];++f<e;)u&&u[f].run();f=-1,e=c.length}u=null,l=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function d(t,e){this.fun=t,this.array=e}function g(){}i.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];c.push(new d(t,e)),1!==c.length||l||a(p)},d.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=g,i.addListener=g,i.once=g,i.off=g,i.removeListener=g,i.removeAllListeners=g,i.emit=g,i.prependListener=g,i.prependOnceListener=g,i.listeners=function(t){return[]},i.binding=function(t){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},114:function(t,e,n){"use strict";(function(t){
|
|
|
/*!
|
|
|
* The buffer module from node.js, for the browser.
|
|
|
*
|
|
|
* @author Feross Aboukhadijeh <http://feross.org>
|
|
|
* @license MIT
|
|
|
*/
|
|
|
var r=n(116),i=n(117),o=n(118);function s(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(t,e){if(s()<e)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=u.prototype:(null===t&&(t=new u(e)),t.length=e),t}function u(t,e,n){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(t,e,n);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return f(this,t)}return c(this,t,e,n)}function c(t,e,n,r){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,n,r){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");e=void 0===n&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,n):new Uint8Array(e,n,r);u.TYPED_ARRAY_SUPPORT?(t=e).__proto__=u.prototype:t=h(t,e);return t}(t,e,n,r):"string"==typeof e?function(t,e,n){"string"==typeof n&&""!==n||(n="utf8");if(!u.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|d(e,n),i=(t=a(t,r)).write(e,n);i!==r&&(t=t.slice(0,i));return t}(t,e,n):function(t,e){if(u.isBuffer(e)){var n=0|p(e.length);return 0===(t=a(t,n)).length||e.copy(t,0,0,n),t}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(r=e.length)!=r?a(t,0):h(t,e);if("Buffer"===e.type&&o(e.data))return h(t,e.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function l(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function f(t,e){if(l(e),t=a(t,e<0?0:0|p(e)),!u.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function h(t,e){var n=e.length<0?0:0|p(e.length);t=a(t,n);for(var r=0;r<n;r+=1)t[r]=255&e[r];return t}function p(t){if(t>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|t}function d(t,e){if(u.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return B(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return q(t).length;default:if(r)return B(t).length;e=(""+e).toLowerCase(),r=!0}}function g(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return N(this,e,n);case"utf8":case"utf-8":return A(this,e,n);case"ascii":return k(this,e,n);case"latin1":case"binary":return O(this,e,n);case"base64":return T(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function v(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function m(t,e,n,r,i){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof e&&(e=u.from(e,r)),u.isBuffer(e))return 0===e.length?-1:y(t,e,n,r,i);if("number"==typeof e)return e&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):y(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function y(t,e,n,r,i){var o,s=1,a=t.length,u=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;s=2,a/=2,u/=2,n/=2}function c(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(i){var l=-1;for(o=n;o<a;o++)if(c(t,o)===c(e,-1===l?0:o-l)){if(-1===l&&(l=o),o-l+1===u)return l*s}else-1!==l&&(o-=o-l),l=-1}else for(n+u>a&&(n=a-u),o=n;o>=0;o--){for(var f=!0,h=0;h<u;h++)if(c(t,o+h)!==c(e,h)){f=!1;break}if(f)return o}return-1}function b(t,e,n,r){n=Number(n)||0;var i=t.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var s=0;s<r;++s){var a=parseInt(e.substr(2*s,2),16);if(isNaN(a))return s;t[n+s]=a}return s}function w(t,e,n,r){return V(B(e,t.length-n),t,n,r)}function _(t,e,n,r){return V(function(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}(e),t,n,r)}function x(t,e,n,r){return _(t,e,n,r)}function E(t,e,n,r){return V(q(e),t,n,r)}function S(t,e,n,r){return V(function(t,e){for(var n,r,i,o=[],s=0;s<t.length&&!((e-=2)<0);++s)n=t.charCodeAt(s),r=n>>8,i=n%256,o.push(i),o.push(r);return o}(e,t.length-n),t,n,r)}function T(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}function A(t,e,n){n=Math.min(t.length,n);for(var r=[],i=e;i<n;){var o,s,a,u,c=t[i],l=null,f=c>239?4:c>223?3:c>191?2:1;if(i+f<=n)switch(f){case 1:c<128&&(l=c);break;case 2:128==(192&(o=t[i+1]))&&(u=(31&c)<<6|63&o)>127&&(l=u);break;case 3:o=t[i+1],s=t[i+2],128==(192&o)&&128==(192&s)&&(u=(15&c)<<12|(63&o)<<6|63&s)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:o=t[i+1],s=t[i+2],a=t[i+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&(u=(15&c)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&u<1114112&&(l=u)}null===l?(l=65533,f=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=f}return function(t){var e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);var n="",r=0;for(;r<e;)n+=String.fromCharCode.apply(String,t.slice(r,r+=4096));return n}(r)}e.Buffer=u,e.SlowBuffer=function(t){+t!=t&&(t=0);return u.alloc(+t)},e.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=s(),u.poolSize=8192,u._augment=function(t){return t.__proto__=u.prototype,t},u.from=function(t,e,n){return c(null,t,e,n)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(t,e,n){return function(t,e,n,r){return l(e),e<=0?a(t,e):void 0!==n?"string"==typeof r?a(t,e).fill(n,r):a(t,e).fill(n):a(t,e)}(null,t,e,n)},u.allocUnsafe=function(t){return f(null,t)},u.allocUnsafeSlow=function(t){return f(null,t)},u.isBuffer=function(t){return!(null==t||!t._isBuffer)},u.compare=function(t,e){if(!u.isBuffer(t)||!u.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,r=e.length,i=0,o=Math.min(n,r);i<o;++i)if(t[i]!==e[i]){n=t[i],r=e[i];break}return n<r?-1:r<n?1:0},u.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(t,e){if(!o(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return u.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var r=u.allocUnsafe(e),i=0;for(n=0;n<t.length;++n){var s=t[n];if(!u.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(r,i),i+=s.length}return r},u.byteLength=d,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)v(this,e,e+1);return this},u.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)v(this,e,e+3),v(this,e+1,e+2);return this},u.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)v(this,e,e+7),v(this,e+1,e+6),v(this,e+2,e+5),v(this,e+3,e+4);return this},u.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?A(this,0,t):g.apply(this,arguments)},u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===u.compare(this,t)},u.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"},u.prototype.compare=function(t,e,n,r,i){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(r>>>=0),s=(n>>>=0)-(e>>>=0),a=Math.min(o,s),c=this.slice(r,i),l=t.slice(e,n),f=0;f<a;++f)if(c[f]!==l[f]){o=c[f],s=l[f];break}return o<s?-1:s<o?1:0},u.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},u.prototype.indexOf=function(t,e,n){return m(this,t,e,n,!0)},u.prototype.lastIndexOf=function(t,e,n){return m(this,t,e,n,!1)},u.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-e;if((void 0===n||n>i)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return b(this,t,e,n);case"utf8":case"utf-8":return w(this,t,e,n);case"ascii":return _(this,t,e,n);case"latin1":case"binary":return x(this,t,e,n);case"base64":return E(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function k(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(127&t[i]);return r}function O(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(t[i]);return r}function N(t,e,n){var r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=e;o<n;++o)i+=U(t[o]);return i}function C(t,e,n){for(var r=t.slice(e,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function F(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function j(t,e,n,r,i,o){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(n+r>t.length)throw new RangeError("Index out of range")}function I(t,e,n,r){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-n,2);i<o;++i)t[n+i]=(e&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function D(t,e,n,r){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-n,4);i<o;++i)t[n+i]=e>>>8*(r?i:3-i)&255}function R(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function M(t,e,n,r,o){return o||R(t,0,n,4),i.write(t,e,n,r,23,4),n+4}function P(t,e,n,r,o){return o||R(t,0,n,8),i.write(t,e,n,r,52,8),n+8}u.prototype.slice=function(t,e){var n,r=this.length;if((t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t),u.TYPED_ARRAY_SUPPORT)(n=this.subarray(t,e)).__proto__=u.prototype;else{var i=e-t;n=new u(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+t]}return n},u.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||F(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+o]*i;return r},u.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||F(t,e,this.length);for(var r=this[t+--e],i=1;e>0&&(i*=256);)r+=this[t+--e]*i;return r},u.prototype.readUInt8=function(t,e){return e||F(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,e){return e||F(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,e){return e||F(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,e){return e||F(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUInt32BE=function(t,e){return e||F(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||F(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*e)),r},u.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||F(t,e,this.length);for(var r=e,i=1,o=this[t+--r];r>0&&(i*=256);)o+=this[t+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},u.prototype.readInt8=function(t,e){return e||F(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){e||F(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(t,e){e||F(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(t,e){return e||F(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return e||F(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return e||F(t,4,this.length),i.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return e||F(t,4,this.length),i.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return e||F(t,8,this.length),i.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return e||F(t,8,this.length),i.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,e,n,r){(t=+t,e|=0,n|=0,r)||j(this,t,e,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[e]=255&t;++o<n&&(i*=256);)this[e+o]=t/i&255;return e+n},u.prototype.writeUIntBE=function(t,e,n,r){(t=+t,e|=0,n|=0,r)||j(this,t,e,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+n},u.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||j(this,t,e,1,255,0),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},u.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||j(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):I(this,t,e,!0),e+2},u.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||j(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):I(this,t,e,!1),e+2},u.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||j(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):D(this,t,e,!0),e+4},u.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||j(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):D(this,t,e,!1),e+4},u.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);j(this,t,e,n,i-1,-i)}var o=0,s=1,a=0;for(this[e]=255&t;++o<n&&(s*=256);)t<0&&0===a&&0!==this[e+o-1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+n},u.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);j(this,t,e,n,i-1,-i)}var o=n-1,s=1,a=0;for(this[e+o]=255&t;--o>=0&&(s*=256);)t<0&&0===a&&0!==this[e+o+1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+n},u.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||j(this,t,e,1,127,-128),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||j(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):I(this,t,e,!0),e+2},u.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||j(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):I(this,t,e,!1),e+2},u.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||j(this,t,e,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):D(this,t,e,!0),e+4},u.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||j(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):D(this,t,e,!1),e+4},u.prototype.writeFloatLE=function(t,e,n){return M(this,t,e,!0,n)},u.prototype.writeFloatBE=function(t,e,n){return M(this,t,e,!1,n)},u.prototype.writeDoubleLE=function(t,e,n){return P(this,t,e,!0,n)},u.prototype.writeDoubleBE=function(t,e,n){return P(this,t,e,!1,n)},u.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);var i,o=r-n;if(this===t&&n<e&&e<r)for(i=o-1;i>=0;--i)t[i+e]=this[i+n];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)t[i+e]=this[i+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+o),e);return o},u.prototype.fill=function(t,e,n,r){if("string"==typeof t){if("string"==typeof e?(r=e,e=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!u.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;var o;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(o=e;o<n;++o)this[o]=t;else{var s=u.isBuffer(t)?t:B(new u(t,r).toString()),a=s.length;for(o=0;o<n-e;++o)this[o+e]=s[o%a]}return this};var L=/[^+\/0-9A-Za-z-_]/g;function U(t){return t<16?"0"+t.toString(16):t.toString(16)}function B(t,e){var n;e=e||1/0;for(var r=t.length,i=null,o=[],s=0;s<r;++s){if((n=t.charCodeAt(s))>55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(s+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function q(t){return r.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(L,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function V(t,e,n,r){for(var i=0;i<r&&!(i+n>=e.length||i>=t.length);++i)e[i+n]=t[i];return i}}).call(this,n(115))},115:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},116:function(t,e,n){"use strict";e.byteLength=function(t){var e=c(t),n=e[0],r=e[1];return 3*(n+r)/4-r},e.toByteArray=function(t){var e,n,r=c(t),s=r[0],a=r[1],u=new o(function(t,e,n){return 3*(e+n)/4-n}(0,s,a)),l=0,f=a>0?s-4:s;for(n=0;n<f;n+=4)e=i[t.charCodeAt(n)]<<18|i[t.charCodeAt(n+1)]<<12|i[t.charCodeAt(n+2)]<<6|i[t.charCodeAt(n+3)],u[l++]=e>>16&255,u[l++]=e>>8&255,u[l++]=255&e;2===a&&(e=i[t.charCodeAt(n)]<<2|i[t.charCodeAt(n+1)]>>4,u[l++]=255&e);1===a&&(e=i[t.charCodeAt(n)]<<10|i[t.charCodeAt(n+1)]<<4|i[t.charCodeAt(n+2)]>>2,u[l++]=e>>8&255,u[l++]=255&e);return u},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,o=[],s=0,a=n-i;s<a;s+=16383)o.push(l(t,s,s+16383>a?a:s+16383));1===i?(e=t[n-1],o.push(r[e>>2]+r[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],o.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"="));return o.join("")};for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,u=s.length;a<u;++a)r[a]=s[a],i[s.charCodeAt(a)]=a;function c(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function l(t,e,n){for(var i,o,s=[],a=e;a<n;a+=3)i=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(255&t[a+2]),s.push(r[(o=i)>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return s.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},117:function(t,e){
|
|
|
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
|
e.read=function(t,e,n,r,i){var o,s,a=8*i-r-1,u=(1<<a)-1,c=u>>1,l=-7,f=n?i-1:0,h=n?-1:1,p=t[e+f];for(f+=h,o=p&(1<<-l)-1,p>>=-l,l+=a;l>0;o=256*o+t[e+f],f+=h,l-=8);for(s=o&(1<<-l)-1,o>>=-l,l+=r;l>0;s=256*s+t[e+f],f+=h,l-=8);if(0===o)o=1-c;else{if(o===u)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,r),o-=c}return(p?-1:1)*s*Math.pow(2,o-r)},e.write=function(t,e,n,r,i,o){var s,a,u,c=8*o-i-1,l=(1<<c)-1,f=l>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,d=r?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=l):(s=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-s))<1&&(s--,u*=2),(e+=s+f>=1?h/u:h*Math.pow(2,1-f))*u>=2&&(s++,u/=2),s+f>=l?(a=0,s=l):s+f>=1?(a=(e*u-1)*Math.pow(2,i),s+=f):(a=e*Math.pow(2,f-1)*Math.pow(2,i),s=0));i>=8;t[n+p]=255&a,p+=d,a/=256,i-=8);for(s=s<<i|a,c+=i;c>0;t[n+p]=255&s,p+=d,s/=256,c-=8);t[n+p-d]|=128*g}},118:function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},119:function(t,e,n){(t.exports=n(120)(!1)).push([t.i,".splunk-viz-msg {\n overflow: hidden;\n position: absolute;\n width: 100%;\n height: 100%;\n}\n\n.splunk-table .splunk-viz-msg {\n overflow: auto;\n position: static;\n}\n\n.splunk-message-container {\n display: flex;\n height: 100%;\n align-items: center;\n justify-content: center;\n}\n\n.splunk-message-container.compact {\n display: block;\n height: auto;\n padding: 0px 40px 10px 40px;\n min-height: 0;\n}",""])},12:function(t,e,n){var r=n(4),i=n(13),o=n(11),s=n(29)("src"),a=n(127),u=(""+a).split("toString");n(24).inspectSource=function(t){return a.call(t)},(t.exports=function(t,e,n,a){var c="function"==typeof n;c&&(o(n,"name")||i(n,"name",e)),t[e]!==n&&(c&&(o(n,s)||i(n,s,t[e]?""+t[e]:u.join(String(e)))),t===r?t[e]=n:a?t[e]?t[e]=n:i(t,e,n):(delete t[e],i(t,e,n)))})(Function.prototype,"toString",(function(){return"function"==typeof this&&this[s]||a.call(this)}))},120:function(t,e){t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=function(t,e){var n=t[1]||"",r=t[3];if(!r)return n;if(e&&"function"==typeof btoa){var i=(s=r,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(s))))+" */"),o=r.sources.map((function(t){return"/*# sourceURL="+r.sourceRoot+t+" */"}));return[n].concat(o).concat([i]).join("\n")}var s;return[n].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+n+"}":n})).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},i=0;i<this.length;i++){var o=this[i][0];"number"==typeof o&&(r[o]=!0)}for(i=0;i<t.length;i++){var s=t[i];"number"==typeof s[0]&&r[s[0]]||(n&&!s[2]?s[2]=n:n&&(s[2]="("+s[2]+") and ("+n+")"),e.push(s))}},e}},121:function(t,e,n){var r,i,o={},s=(r=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===i&&(i=r.apply(this,arguments)),i}),a=function(t,e){return e?e.querySelector(t):document.querySelector(t)},u=function(t){var e={};return function(t,n){if("function"==typeof t)return t();if(void 0===e[t]){var r=a.call(this,t,n);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(t){r=null}e[t]=r}return e[t]}}(),c=null,l=0,f=[],h=n(122);function p(t,e){for(var n=0;n<t.length;n++){var r=t[n],i=o[r.id];if(i){i.refs++;for(var s=0;s<i.parts.length;s++)i.parts[s](r.parts[s]);for(;s<r.parts.length;s++)i.parts.push(b(r.parts[s],e))}else{var a=[];for(s=0;s<r.parts.length;s++)a.push(b(r.parts[s],e));o[r.id]={id:r.id,refs:1,parts:a}}}}function d(t,e){for(var n=[],r={},i=0;i<t.length;i++){var o=t[i],s=e.base?o[0]+e.base:o[0],a={css:o[1],media:o[2],sourceMap:o[3]};r[s]?r[s].parts.push(a):n.push(r[s]={id:s,parts:[a]})}return n}function g(t,e){var n=u(t.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var r=f[f.length-1];if("top"===t.insertAt)r?r.nextSibling?n.insertBefore(e,r.nextSibling):n.appendChild(e):n.insertBefore(e,n.firstChild),f.push(e);else if("bottom"===t.insertAt)n.appendChild(e);else{if("object"!=typeof t.insertAt||!t.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var i=u(t.insertAt.before,n);n.insertBefore(e,i)}}function v(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t);var e=f.indexOf(t);e>=0&&f.splice(e,1)}function m(t){var e=document.createElement("style");if(void 0===t.attrs.type&&(t.attrs.type="text/css"),void 0===t.attrs.nonce){var r=function(){0;return n.nc}();r&&(t.attrs.nonce=r)}return y(e,t.attrs),g(t,e),e}function y(t,e){Object.keys(e).forEach((function(n){t.setAttribute(n,e[n])}))}function b(t,e){var n,r,i,o;if(e.transform&&t.css){if(!(o="function"==typeof e.transform?e.transform(t.css):e.transform.default(t.css)))return function(){};t.css=o}if(e.singleton){var s=l++;n=c||(c=m(e)),r=x.bind(null,n,s,!1),i=x.bind(null,n,s,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(t){var e=document.createElement("link");return void 0===t.attrs.type&&(t.attrs.type="text/css"),t.attrs.rel="stylesheet",y(e,t.attrs),g(t,e),e}(e),r=S.bind(null,n,e),i=function(){v(n),n.href&&URL.revokeObjectURL(n.href)}):(n=m(e),r=E.bind(null,n),i=function(){v(n)});return r(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;r(t=e)}else i()}}t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(e=e||{}).attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||"boolean"==typeof e.singleton||(e.singleton=s()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var n=d(t,e);return p(n,e),function(t){for(var r=[],i=0;i<n.length;i++){var s=n[i];(a=o[s.id]).refs--,r.push(a)}t&&p(d(t,e),e);for(i=0;i<r.length;i++){var a;if(0===(a=r[i]).refs){for(var u=0;u<a.parts.length;u++)a.parts[u]();delete o[a.id]}}}};var w,_=(w=[],function(t,e){return w[t]=e,w.filter(Boolean).join("\n")});function x(t,e,n,r){var i=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=_(e,i);else{var o=document.createTextNode(i),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(o,s[e]):t.appendChild(o)}}function E(t,e){var n=e.css,r=e.media;if(r&&t.setAttribute("media",r),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}function S(t,e,n){var r=n.css,i=n.sourceMap,o=void 0===e.convertToAbsoluteUrls&&i;(e.convertToAbsoluteUrls||o)&&(r=h(r)),i&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */");var s=new Blob([r],{type:"text/css"}),a=t.href;t.href=URL.createObjectURL(s),a&&URL.revokeObjectURL(a)}},122:function(t,e){t.exports=function(t){var e="undefined"!=typeof window&&window.location;if(!e)throw new Error("fixUrls requires window.location");if(!t||"string"!=typeof t)return t;var n=e.protocol+"//"+e.host,r=n+e.pathname.replace(/\/[^\/]*$/,"/");return t.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,(function(t,e){var i,o=e.trim().replace(/^"(.*)"$/,(function(t,e){return e})).replace(/^'(.*)'$/,(function(t,e){return e}));return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(o)?t:(i=0===o.indexOf("//")?o:0===o.indexOf("/")?n+o:r+o.replace(/^\.\//,""),"url("+JSON.stringify(i)+")")}))}},123:function(t,e,n){!function(t){var e=function(e){var n=this.superclass&&this.superclass.prototype,r=t.keys(e);t.keys({toString:!0}).length||r.push("toString","valueOf");for(var i=0,o=r.length;i<o;i++){var s=r[i],a=e[s];if(n&&t.isFunction(a)&&"$super"==t.argumentNames(a)[0]){var u=a;a=t.extend(t.wrap(function(t){return function(){return n[t].apply(this,arguments)}}(s),u),{valueOf:function(){return u},toString:function(){return u.toString()}})}this.prototype[s]=a}return this};t.extend({keys:function(t){var e=[];for(var n in t)e.push(n);return e},argumentNames:function(t){var e=t.toString().match(/^[\s\(]*function[^(]*\((.*?)\)/)[1].split(/, ?/);return 1!=e.length||e[0]?e:[]},bind:function(e,n){return function(){return e.apply(n,t.makeArray(arguments))}},wrap:function(e,n){var r=e;return function(){return n.apply(this,[t.bind(r,this)].concat(t.makeArray(arguments)))}},klass:function(){var n=null,r=t.makeArray(arguments);t.isFunction(r[0])&&(n=r.shift());var i=function(){this.initialize.apply(this,arguments)};if(i.superclass=n,i.subclasses=[],i.addMethods=e,n){var o=function(){};o.prototype=n.prototype,i.prototype=new o,n.subclasses.push(i)}for(var s=0;s<r.length;s++)i.addMethods(r[s]);return i.prototype.initialize||(i.prototype.initialize=function(){}),i.prototype.constructor=i,i}});var n=function(e,n,r){var i=function(e){return t.klass(e,{initialize:function(e,n,r){this.element=t(n),e&&e.apply(this,r)}})}(n);return instance=new i(e,r),function(e){for(var n in e)n.match(/^on(.+)/)&&"function"==typeof e[n]&&e.element.bind(RegExp.$1,t.bind(e[n],e))}(instance),n.instances||(n.instances=[]),n.instances.push(instance),instance};t.fn.extend({attach:function(){var e=t.makeArray(arguments),r=e.shift();return t.livequery&&this.selector?this.livequery((function(){n(this,r,e)})):this.each((function(){n(this,r,e)}))},attachAndReturn:function(){var e=t.makeArray(arguments),r=e.shift();return t.map(this,(function(t){return n(t,r,e)}))},attached:function(e){var n=[];return e.instances?(this.each((function(r,i){t.each(e.instances,(function(t,e){e.element.get(0)==i&&n.push(e)}))})),n):n},firstAttached:function(t){return this.attached(t)[0]}});var r=t.klass({initialize:function(t){"FORM"==this.element.attr("nodeName")?this.element.attach(r.Form,t):this.element.attach(r.Link,t)}});r.Base=t.klass({initialize:function(e){this.options=t.extend({},e||{})},_makeRequest:function(e){return t.ajax(e),!1}}),r.Link=t.klass(r.Base,{onclick:function(){var e=t.extend({url:this.element.attr("href"),type:"GET"},this.options);return this._makeRequest(e)}}),r.Form=t.klass(r.Base,{onclick:function(e){var n=e.target;t.inArray(n.nodeName.toLowerCase(),["input","button"])>=0&&n.type.match(/submit|image/)&&(this._submitButton=n)},onsubmit:function(){var e=this.element.serializeArray();this._submitButton&&e.push({name:this._submitButton.name,value:this._submitButton.value});var n=t.extend({url:this.element.attr("action"),type:this.element.attr("method")||"GET",data:e},this.options);return this._makeRequest(n),!1}}),t.ajaxSetup({beforeSend:function(t){t.setRequestHeader("Accept","text/javascript, text/html, application/xml, text/xml, */*")}})}(n("shim/jquery"))},124:function(t,e,n){var r=n("shim/jquery");Splunk.namespace("Splunk.Session"),Splunk.Session=r.klass({EVENT_BUFFER_TIMEOUT:1e3,UI_INACTIVITY_TIMEOUT:60,START_EVENT:"SessionStart",TIMEOUT_EVENT:"SessionTimeout",RESTART_EVENT:"HaltOnRestart",UI_EVENT_TYPES:["click","keydown","mouseover","scroll"],initialize:function(){this.logger=Splunk.Logger.getLogger("session.js"),this.eventBuffer=[],this.timeoutDelay=Splunk.util.getConfigValue("UI_INACTIVITY_TIMEOUT",this.UI_INACTIVITY_TIMEOUT),this.timeoutDelay*=6e4,this.timeoutDelay>2147483647&&(this.logger.warn("ui_inactivity_timeout must be treated as minutes not milliseconds. Defaulting to 60 min"),this.timeoutDelay=36e5),this.timeoutID=null,r(document).bind(this.START_EVENT,this.onSessionStart.bind(this)),!this.timeoutDelay<1&&(r(document).bind(this.TIMEOUT_EVENT,this.onSessionTimeout.bind(this)),r(document).bind(this.UI_EVENT_TYPES.join(" "),this.onUIEvent.bind(this)),this.startTimeout()),r(document).trigger(this.START_EVENT,new Date)},onUIEvent:function(t){this.timeoutID?(this.eventBuffer.push(""),1===this.eventBuffer.length&&(this.resetTimeout(),setTimeout(function(){this.eventBuffer=[]}.bind(this),this.EVENT_BUFFER_TIMEOUT))):(this.startTimeout(),r(document).trigger(this.START_EVENT,new Date))},onSessionStart:function(t,e){},onSessionTimeout:function(t,e){},resetTimeout:function(){this.stopTimeout(),this.startTimeout()},signalRestart:function(){r(document).trigger(this.RESTART_EVENT)},startTimeout:function(){this.timeoutID=window.setTimeout(this.timeoutHandler.bind(this),this.timeoutDelay)},stopTimeout:function(){this.timeoutID&&(window.clearTimeout(this.timeoutID),this.timeoutID=null)},timeoutHandler:function(){this.stopTimeout(),r(document).trigger(this.TIMEOUT_EVENT,new Date)}}),Splunk.Session.instance=null,Splunk.Session.getInstance=function(){return Splunk.Session.instance||(Splunk.Session.instance=new Splunk.Session),Splunk.Session.instance}},125:function(t,e,n){n(126),n(130),n(131),n(132),n(133),n(134),n(135),n(136),n(137),n(138),n(139),n(140),n(141),n(142),n(143),n(144),n(145),n(146),n(147),n(148),n(149),n(150),n(151),n(152),n(153),n(154),n(155),n(156),n(157),n(158),n(159),n(160),n(161),n(162),n(163),n(164),n(165),n(166),n(167),n(168),n(169),n(170),n(171),n(173),n(174),n(175),n(176),n(177),n(178),n(179),n(180),n(181),n(182),n(183),n(184),n(185),n(186),n(187),n(188),n(189),n(190),n(191),n(192),n(193),n(194),n(195),n(196),n(197),n(198),n(199),n(200),n(201),n(202),n(203),n(204),n(205),n(206),n(208),n(209),n(211),n(212),n(213),n(214),n(215),n(216),n(217),n(220),n(221),n(222),n(223),n(224),n(225),n(226),n(227),n(228),n(229),n(230),n(231),n(232),n(99),n(233),n(101),n(234),n(102),n(235),n(236),n(237),n(238),n(239),n(244),n(245),n(246),n(247),n(248),n(249),n(250),n(251),n(252),n(253),n(254),n(255),n(256),n(257),n(258),n(259),n(260),n(261),n(262),n(263),n(264),n(265),n(266),n(267),n(268),n(269),n(271),n(272),n(273),t.exports=n(24)},126:function(t,e,n){"use strict";var r=n(4),i=n(11),o=n(8),s=n(0),a=n(12),u=n(26).KEY,c=n(1),l=n(45),f=n(36),h=n(29),p=n(5),d=n(80),g=n(128),v=n(129),m=n(61),y=n(2),b=n(3),w=n(9),_=n(15),x=n(25),E=n(28),S=n(32),T=n(83),A=n(22),k=n(46),O=n(6),N=n(40),C=A.f,F=O.f,j=T.f,I=r.Symbol,D=r.JSON,R=D&&D.stringify,M=p("_hidden"),P=p("toPrimitive"),L={}.propertyIsEnumerable,U=l("symbol-registry"),B=l("symbols"),q=l("op-symbols"),V=Object.prototype,$="function"==typeof I&&!!k.f,H=r.QObject,W=!H||!H.prototype||!H.prototype.findChild,z=o&&c((function(){return 7!=S(F({},"a",{get:function(){return F(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=C(V,e);r&&delete V[e],F(t,e,n),r&&t!==V&&F(V,e,r)}:F,G=function(t){var e=B[t]=S(I.prototype);return e._k=t,e},Y=$&&"symbol"==typeof I.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof I},X=function(t,e,n){return t===V&&X(q,e,n),y(t),e=x(e,!0),y(n),i(B,e)?(n.enumerable?(i(t,M)&&t[M][e]&&(t[M][e]=!1),n=S(n,{enumerable:E(0,!1)})):(i(t,M)||F(t,M,E(1,{})),t[M][e]=!0),z(t,e,n)):F(t,e,n)},J=function(t,e){y(t);for(var n,r=v(e=_(e)),i=0,o=r.length;o>i;)X(t,n=r[i++],e[n]);return t},Q=function(t){var e=L.call(this,t=x(t,!0));return!(this===V&&i(B,t)&&!i(q,t))&&(!(e||!i(this,t)||!i(B,t)||i(this,M)&&this[M][t])||e)},K=function(t,e){if(t=_(t),e=x(e,!0),t!==V||!i(B,e)||i(q,e)){var n=C(t,e);return!n||!i(B,e)||i(t,M)&&t[M][e]||(n.enumerable=!0),n}},Z=function(t){for(var e,n=j(_(t)),r=[],o=0;n.length>o;)i(B,e=n[o++])||e==M||e==u||r.push(e);return r},tt=function(t){for(var e,n=t===V,r=j(n?q:_(t)),o=[],s=0;r.length>s;)!i(B,e=r[s++])||n&&!i(V,e)||o.push(B[e]);return o};$||(a((I=function(){if(this instanceof I)throw TypeError("Symbol is not a constructor!");var t=h(arguments.length>0?arguments[0]:void 0),e=function(n){this===V&&e.call(q,n),i(this,M)&&i(this[M],t)&&(this[M][t]=!1),z(this,t,E(1,n))};return o&&W&&z(V,t,{configurable:!0,set:e}),G(t)}).prototype,"toString",(function(){return this._k})),A.f=K,O.f=X,n(33).f=T.f=Z,n(47).f=Q,k.f=tt,o&&!n(30)&&a(V,"propertyIsEnumerable",Q,!0),d.f=function(t){return G(p(t))}),s(s.G+s.W+s.F*!$,{Symbol:I});for(var et="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),nt=0;et.length>nt;)p(et[nt++]);for(var rt=N(p.store),it=0;rt.length>it;)g(rt[it++]);s(s.S+s.F*!$,"Symbol",{for:function(t){return i(U,t+="")?U[t]:U[t]=I(t)},keyFor:function(t){if(!Y(t))throw TypeError(t+" is not a symbol!");for(var e in U)if(U[e]===t)return e},useSetter:function(){W=!0},useSimple:function(){W=!1}}),s(s.S+s.F*!$,"Object",{create:function(t,e){return void 0===e?S(t):J(S(t),e)},defineProperty:X,defineProperties:J,getOwnPropertyDescriptor:K,getOwnPropertyNames:Z,getOwnPropertySymbols:tt});var ot=c((function(){k.f(1)}));s(s.S+s.F*ot,"Object",{getOwnPropertySymbols:function(t){return k.f(w(t))}}),D&&s(s.S+s.F*(!$||c((function(){var t=I();return"[null]"!=R([t])||"{}"!=R({a:t})||"{}"!=R(Object(t))}))),"JSON",{stringify:function(t){for(var e,n,r=[t],i=1;arguments.length>i;)r.push(arguments[i++]);if(n=e=r[1],(b(e)||void 0!==t)&&!Y(t))return m(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!Y(e))return e}),r[1]=e,R.apply(D,r)}}),I.prototype[P]||n(13)(I.prototype,P,I.prototype.valueOf),f(I,"Symbol"),f(Math,"Math",!0),f(r.JSON,"JSON",!0)},127:function(t,e,n){t.exports=n(45)("native-function-to-string",Function.toString)},128:function(t,e,n){var r=n(4),i=n(24),o=n(30),s=n(80),a=n(6).f;t.exports=function(t){var e=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||a(e,t,{value:s.f(t)})}},129:function(t,e,n){var r=n(40),i=n(46),o=n(47);t.exports=function(t){var e=r(t),n=i.f;if(n)for(var s,a=n(t),u=o.f,c=0;a.length>c;)u.call(t,s=a[c++])&&e.push(s);return e}},13:function(t,e,n){var r=n(6),i=n(28);t.exports=n(8)?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},130:function(t,e,n){var r=n(0);r(r.S,"Object",{create:n(32)})},131:function(t,e,n){var r=n(0);r(r.S+r.F*!n(8),"Object",{defineProperty:n(6).f})},132:function(t,e,n){var r=n(0);r(r.S+r.F*!n(8),"Object",{defineProperties:n(82)})},133:function(t,e,n){var r=n(15),i=n(22).f;n(17)("getOwnPropertyDescriptor",(function(){return function(t,e){return i(r(t),e)}}))},134:function(t,e,n){var r=n(9),i=n(34);n(17)("getPrototypeOf",(function(){return function(t){return i(r(t))}}))},135:function(t,e,n){var r=n(9),i=n(40);n(17)("keys",(function(){return function(t){return i(r(t))}}))},136:function(t,e,n){n(17)("getOwnPropertyNames",(function(){return n(83).f}))},137:function(t,e,n){var r=n(3),i=n(26).onFreeze;n(17)("freeze",(function(t){return function(e){return t&&r(e)?t(i(e)):e}}))},138:function(t,e,n){var r=n(3),i=n(26).onFreeze;n(17)("seal",(function(t){return function(e){return t&&r(e)?t(i(e)):e}}))},139:function(t,e,n){var r=n(3),i=n(26).onFreeze;n(17)("preventExtensions",(function(t){return function(e){return t&&r(e)?t(i(e)):e}}))},14:function(t,e,n){"use strict";var r=n(1);t.exports=function(t,e){return!!t&&r((function(){e?t.call(null,(function(){}),1):t.call(null)}))}},140:function(t,e,n){var r=n(3);n(17)("isFrozen",(function(t){return function(e){return!r(e)||!!t&&t(e)}}))},141:function(t,e,n){var r=n(3);n(17)("isSealed",(function(t){return function(e){return!r(e)||!!t&&t(e)}}))},142:function(t,e,n){var r=n(3);n(17)("isExtensible",(function(t){return function(e){return!!r(e)&&(!t||t(e))}}))},143:function(t,e,n){var r=n(0);r(r.S+r.F,"Object",{assign:n(84)})},144:function(t,e,n){var r=n(0);r(r.S,"Object",{is:n(85)})},145:function(t,e,n){var r=n(0);r(r.S,"Object",{setPrototypeOf:n(63).set})},146:function(t,e,n){"use strict";var r=n(42),i={};i[n(5)("toStringTag")]="z",i+""!="[object z]"&&n(12)(Object.prototype,"toString",(function(){return"[object "+r(this)+"]"}),!0)},147:function(t,e,n){var r=n(0);r(r.P,"Function",{bind:n(86)})},148:function(t,e,n){var r=n(6).f,i=Function.prototype,o=/^\s*function ([^ (]*)/;"name"in i||n(8)&&r(i,"name",{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(t){return""}}})},149:function(t,e,n){"use strict";var r=n(3),i=n(34),o=n(5)("hasInstance"),s=Function.prototype;o in s||n(6).f(s,o,{value:function(t){if("function"!=typeof this||!r(t))return!1;if(!r(this.prototype))return t instanceof this;for(;t=i(t);)if(this.prototype===t)return!0;return!1}})},15:function(t,e,n){var r=n(41),i=n(27);t.exports=function(t){return r(i(t))}},150:function(t,e,n){var r=n(0),i=n(88);r(r.G+r.F*(parseInt!=i),{parseInt:i})},151:function(t,e,n){var r=n(0),i=n(89);r(r.G+r.F*(parseFloat!=i),{parseFloat:i})},152:function(t,e,n){"use strict";var r=n(4),i=n(11),o=n(21),s=n(65),a=n(25),u=n(1),c=n(33).f,l=n(22).f,f=n(6).f,h=n(48).trim,p=r.Number,d=p,g=p.prototype,v="Number"==o(n(32)(g)),m="trim"in String.prototype,y=function(t){var e=a(t,!1);if("string"==typeof e&&e.length>2){var n,r,i,o=(e=m?e.trim():h(e,3)).charCodeAt(0);if(43===o||45===o){if(88===(n=e.charCodeAt(2))||120===n)return NaN}else if(48===o){switch(e.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+e}for(var s,u=e.slice(2),c=0,l=u.length;c<l;c++)if((s=u.charCodeAt(c))<48||s>i)return NaN;return parseInt(u,r)}}return+e};if(!p(" 0o1")||!p("0b1")||p("+0x1")){p=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof p&&(v?u((function(){g.valueOf.call(n)})):"Number"!=o(n))?s(new d(y(e)),n,p):y(e)};for(var b,w=n(8)?c(d):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),_=0;w.length>_;_++)i(d,b=w[_])&&!i(p,b)&&f(p,b,l(d,b));p.prototype=g,g.constructor=p,n(12)(r,"Number",p)}},153:function(t,e,n){"use strict";var r=n(0),i=n(16),o=n(90),s=n(91),a=1..toFixed,u=Math.floor,c=[0,0,0,0,0,0],l="Number.toFixed: incorrect invocation!",f=function(t,e){for(var n=-1,r=e;++n<6;)r+=t*c[n],c[n]=r%1e7,r=u(r/1e7)},h=function(t){for(var e=6,n=0;--e>=0;)n+=c[e],c[e]=u(n/t),n=n%t*1e7},p=function(){for(var t=6,e="";--t>=0;)if(""!==e||0===t||0!==c[t]){var n=String(c[t]);e=""===e?n:e+s.call("0",7-n.length)+n}return e},d=function(t,e,n){return 0===e?n:e%2==1?d(t,e-1,n*t):d(t*t,e/2,n)};r(r.P+r.F*(!!a&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!n(1)((function(){a.call({})}))),"Number",{toFixed:function(t){var e,n,r,a,u=o(this,l),c=i(t),g="",v="0";if(c<0||c>20)throw RangeError(l);if(u!=u)return"NaN";if(u<=-1e21||u>=1e21)return String(u);if(u<0&&(g="-",u=-u),u>1e-21)if(n=(e=function(t){for(var e=0,n=t;n>=4096;)e+=12,n/=4096;for(;n>=2;)e+=1,n/=2;return e}(u*d(2,69,1))-69)<0?u*d(2,-e,1):u/d(2,e,1),n*=4503599627370496,(e=52-e)>0){for(f(0,n),r=c;r>=7;)f(1e7,0),r-=7;for(f(d(10,r,1),0),r=e-1;r>=23;)h(1<<23),r-=23;h(1<<r),f(1,1),h(2),v=p()}else f(0,n),f(1<<-e,0),v=p()+s.call("0",c);return v=c>0?g+((a=v.length)<=c?"0."+s.call("0",c-a)+v:v.slice(0,a-c)+"."+v.slice(a-c)):g+v}})},154:function(t,e,n){"use strict";var r=n(0),i=n(1),o=n(90),s=1..toPrecision;r(r.P+r.F*(i((function(){return"1"!==s.call(1,void 0)}))||!i((function(){s.call({})}))),"Number",{toPrecision:function(t){var e=o(this,"Number#toPrecision: incorrect invocation!");return void 0===t?s.call(e):s.call(e,t)}})},155:function(t,e,n){var r=n(0);r(r.S,"Number",{EPSILON:Math.pow(2,-52)})},156:function(t,e,n){var r=n(0),i=n(4).isFinite;r(r.S,"Number",{isFinite:function(t){return"number"==typeof t&&i(t)}})},157:function(t,e,n){var r=n(0);r(r.S,"Number",{isInteger:n(92)})},158:function(t,e,n){var r=n(0);r(r.S,"Number",{isNaN:function(t){return t!=t}})},159:function(t,e,n){var r=n(0),i=n(92),o=Math.abs;r(r.S,"Number",{isSafeInteger:function(t){return i(t)&&o(t)<=9007199254740991}})},16:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},160:function(t,e,n){var r=n(0);r(r.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},161:function(t,e,n){var r=n(0);r(r.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},162:function(t,e,n){var r=n(0),i=n(89);r(r.S+r.F*(Number.parseFloat!=i),"Number",{parseFloat:i})},163:function(t,e,n){var r=n(0),i=n(88);r(r.S+r.F*(Number.parseInt!=i),"Number",{parseInt:i})},164:function(t,e,n){var r=n(0),i=n(93),o=Math.sqrt,s=Math.acosh;r(r.S+r.F*!(s&&710==Math.floor(s(Number.MAX_VALUE))&&s(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:i(t-1+o(t-1)*o(t+1))}})},165:function(t,e,n){var r=n(0),i=Math.asinh;r(r.S+r.F*!(i&&1/i(0)>0),"Math",{asinh:function t(e){return isFinite(e=+e)&&0!=e?e<0?-t(-e):Math.log(e+Math.sqrt(e*e+1)):e}})},166:function(t,e,n){var r=n(0),i=Math.atanh;r(r.S+r.F*!(i&&1/i(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},167:function(t,e,n){var r=n(0),i=n(66);r(r.S,"Math",{cbrt:function(t){return i(t=+t)*Math.pow(Math.abs(t),1/3)}})},168:function(t,e,n){var r=n(0);r(r.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},169:function(t,e,n){var r=n(0),i=Math.exp;r(r.S,"Math",{cosh:function(t){return(i(t=+t)+i(-t))/2}})},17:function(t,e,n){var r=n(0),i=n(24),o=n(1);t.exports=function(t,e){var n=(i.Object||{})[t]||Object[t],s={};s[t]=e(n),r(r.S+r.F*o((function(){n(1)})),"Object",s)}},170:function(t,e,n){var r=n(0),i=n(67);r(r.S+r.F*(i!=Math.expm1),"Math",{expm1:i})},171:function(t,e,n){var r=n(0);r(r.S,"Math",{fround:n(172)})},172:function(t,e,n){var r=n(66),i=Math.pow,o=i(2,-52),s=i(2,-23),a=i(2,127)*(2-s),u=i(2,-126);t.exports=Math.fround||function(t){var e,n,i=Math.abs(t),c=r(t);return i<u?c*(i/u/s+1/o-1/o)*u*s:(n=(e=(1+s/o)*i)-(e-i))>a||n!=n?c*(1/0):c*n}},173:function(t,e,n){var r=n(0),i=Math.abs;r(r.S,"Math",{hypot:function(t,e){for(var n,r,o=0,s=0,a=arguments.length,u=0;s<a;)u<(n=i(arguments[s++]))?(o=o*(r=u/n)*r+1,u=n):o+=n>0?(r=n/u)*r:n;return u===1/0?1/0:u*Math.sqrt(o)}})},174:function(t,e,n){var r=n(0),i=Math.imul;r(r.S+r.F*n(1)((function(){return-5!=i(4294967295,5)||2!=i.length})),"Math",{imul:function(t,e){var n=+t,r=+e,i=65535&n,o=65535&r;return 0|i*o+((65535&n>>>16)*o+i*(65535&r>>>16)<<16>>>0)}})},175:function(t,e,n){var r=n(0);r(r.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}})},176:function(t,e,n){var r=n(0);r(r.S,"Math",{log1p:n(93)})},177:function(t,e,n){var r=n(0);r(r.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},178:function(t,e,n){var r=n(0);r(r.S,"Math",{sign:n(66)})},179:function(t,e,n){var r=n(0),i=n(67),o=Math.exp;r(r.S+r.F*n(1)((function(){return-2e-17!=!Math.sinh(-2e-17)})),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(i(t)-i(-t))/2:(o(t-1)-o(-t-1))*(Math.E/2)}})},18:function(t,e,n){var r=n(19),i=n(41),o=n(9),s=n(7),a=n(218);t.exports=function(t,e){var n=1==t,u=2==t,c=3==t,l=4==t,f=6==t,h=5==t||f,p=e||a;return function(e,a,d){for(var g,v,m=o(e),y=i(m),b=r(a,d,3),w=s(y.length),_=0,x=n?p(e,w):u?p(e,0):void 0;w>_;_++)if((h||_ in y)&&(v=b(g=y[_],_,m),t))if(n)x[_]=v;else if(v)switch(t){case 3:return!0;case 5:return g;case 6:return _;case 2:x.push(g)}else if(l)return!1;return f?-1:c||l?l:x}}},180:function(t,e,n){var r=n(0),i=n(67),o=Math.exp;r(r.S,"Math",{tanh:function(t){var e=i(t=+t),n=i(-t);return e==1/0?1:n==1/0?-1:(e-n)/(o(t)+o(-t))}})},181:function(t,e,n){var r=n(0);r(r.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}})},182:function(t,e,n){var r=n(0),i=n(31),o=String.fromCharCode,s=String.fromCodePoint;r(r.S+r.F*(!!s&&1!=s.length),"String",{fromCodePoint:function(t){for(var e,n=[],r=arguments.length,s=0;r>s;){if(e=+arguments[s++],i(e,1114111)!==e)throw RangeError(e+" is not a valid code point");n.push(e<65536?o(e):o(55296+((e-=65536)>>10),e%1024+56320))}return n.join("")}})},183:function(t,e,n){var r=n(0),i=n(15),o=n(7);r(r.S,"String",{raw:function(t){for(var e=i(t.raw),n=o(e.length),r=arguments.length,s=[],a=0;n>a;)s.push(String(e[a++])),a<r&&s.push(String(arguments[a]));return s.join("")}})},184:function(t,e,n){"use strict";n(48)("trim",(function(t){return function(){return t(this,3)}}))},185:function(t,e,n){"use strict";var r=n(68)(!0);n(69)(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})}))},186:function(t,e,n){"use strict";var r=n(0),i=n(68)(!1);r(r.P,"String",{codePointAt:function(t){return i(this,t)}})},187:function(t,e,n){"use strict";var r=n(0),i=n(7),o=n(70),s="".endsWith;r(r.P+r.F*n(72)("endsWith"),"String",{endsWith:function(t){var e=o(this,t,"endsWith"),n=arguments.length>1?arguments[1]:void 0,r=i(e.length),a=void 0===n?r:Math.min(i(n),r),u=String(t);return s?s.call(e,u,a):e.slice(a-u.length,a)===u}})},188:function(t,e,n){"use strict";var r=n(0),i=n(70);r(r.P+r.F*n(72)("includes"),"String",{includes:function(t){return!!~i(this,t,"includes").indexOf(t,arguments.length>1?arguments[1]:void 0)}})},189:function(t,e,n){var r=n(0);r(r.P,"String",{repeat:n(91)})},19:function(t,e,n){var r=n(20);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},190:function(t,e,n){"use strict";var r=n(0),i=n(7),o=n(70),s="".startsWith;r(r.P+r.F*n(72)("startsWith"),"String",{startsWith:function(t){var e=o(this,t,"startsWith"),n=i(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),r=String(t);return s?s.call(e,r,n):e.slice(n,n+r.length)===r}})},191:function(t,e,n){"use strict";n(10)("anchor",(function(t){return function(e){return t(this,"a","name",e)}}))},192:function(t,e,n){"use strict";n(10)("big",(function(t){return function(){return t(this,"big","","")}}))},193:function(t,e,n){"use strict";n(10)("blink",(function(t){return function(){return t(this,"blink","","")}}))},194:function(t,e,n){"use strict";n(10)("bold",(function(t){return function(){return t(this,"b","","")}}))},195:function(t,e,n){"use strict";n(10)("fixed",(function(t){return function(){return t(this,"tt","","")}}))},196:function(t,e,n){"use strict";n(10)("fontcolor",(function(t){return function(e){return t(this,"font","color",e)}}))},197:function(t,e,n){"use strict";n(10)("fontsize",(function(t){return function(e){return t(this,"font","size",e)}}))},198:function(t,e,n){"use strict";n(10)("italics",(function(t){return function(){return t(this,"i","","")}}))},199:function(t,e,n){"use strict";n(10)("link",(function(t){return function(e){return t(this,"a","href",e)}}))},2:function(t,e,n){var r=n(3);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},20:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},200:function(t,e,n){"use strict";n(10)("small",(function(t){return function(){return t(this,"small","","")}}))},201:function(t,e,n){"use strict";n(10)("strike",(function(t){return function(){return t(this,"strike","","")}}))},202:function(t,e,n){"use strict";n(10)("sub",(function(t){return function(){return t(this,"sub","","")}}))},203:function(t,e,n){"use strict";n(10)("sup",(function(t){return function(){return t(this,"sup","","")}}))},204:function(t,e,n){var r=n(0);r(r.S,"Date",{now:function(){return(new Date).getTime()}})},205:function(t,e,n){"use strict";var r=n(0),i=n(9),o=n(25);r(r.P+r.F*n(1)((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})})),"Date",{toJSON:function(t){var e=i(this),n=o(e);return"number"!=typeof n||isFinite(n)?e.toISOString():null}})},206:function(t,e,n){var r=n(0),i=n(207);r(r.P+r.F*(Date.prototype.toISOString!==i),"Date",{toISOString:i})},207:function(t,e,n){"use strict";var r=n(1),i=Date.prototype.getTime,o=Date.prototype.toISOString,s=function(t){return t>9?t:"0"+t};t.exports=r((function(){return"0385-07-25T07:06:39.999Z"!=o.call(new Date(-50000000000001))}))||!r((function(){o.call(new Date(NaN))}))?function(){if(!isFinite(i.call(this)))throw RangeError("Invalid time value");var t=this,e=t.getUTCFullYear(),n=t.getUTCMilliseconds(),r=e<0?"-":e>9999?"+":"";return r+("00000"+Math.abs(e)).slice(r?-6:-4)+"-"+s(t.getUTCMonth()+1)+"-"+s(t.getUTCDate())+"T"+s(t.getUTCHours())+":"+s(t.getUTCMinutes())+":"+s(t.getUTCSeconds())+"."+(n>99?n:"0"+s(n))+"Z"}:o},208:function(t,e,n){var r=Date.prototype,i=r.toString,o=r.getTime;new Date(NaN)+""!="Invalid Date"&&n(12)(r,"toString",(function(){var t=o.call(this);return t==t?i.call(this):"Invalid Date"}))},209:function(t,e,n){var r=n(5)("toPrimitive"),i=Date.prototype;r in i||n(13)(i,r,n(210))},21:function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},210:function(t,e,n){"use strict";var r=n(2),i=n(25);t.exports=function(t){if("string"!==t&&"number"!==t&&"default"!==t)throw TypeError("Incorrect hint");return i(r(this),"number"!=t)}},211:function(t,e,n){var r=n(0);r(r.S,"Array",{isArray:n(61)})},212:function(t,e,n){"use strict";var r=n(19),i=n(0),o=n(9),s=n(95),a=n(73),u=n(7),c=n(96),l=n(74);i(i.S+i.F*!n(49)((function(t){Array.from(t)})),"Array",{from:function(t){var e,n,i,f,h=o(t),p="function"==typeof this?this:Array,d=arguments.length,g=d>1?arguments[1]:void 0,v=void 0!==g,m=0,y=l(h);if(v&&(g=r(g,d>2?arguments[2]:void 0,2)),null==y||p==Array&&a(y))for(n=new p(e=u(h.length));e>m;m++)c(n,m,v?g(h[m],m):h[m]);else for(f=y.call(h),n=new p;!(i=f.next()).done;m++)c(n,m,v?s(f,g,[i.value,m],!0):i.value);return n.length=m,n}})},213:function(t,e,n){"use strict";var r=n(0),i=n(96);r(r.S+r.F*n(1)((function(){function t(){}return!(Array.of.call(t)instanceof t)})),"Array",{of:function(){for(var t=0,e=arguments.length,n=new("function"==typeof this?this:Array)(e);e>t;)i(n,t,arguments[t++]);return n.length=e,n}})},214:function(t,e,n){"use strict";var r=n(0),i=n(15),o=[].join;r(r.P+r.F*(n(41)!=Object||!n(14)(o)),"Array",{join:function(t){return o.call(i(this),void 0===t?",":t)}})},215:function(t,e,n){"use strict";var r=n(0),i=n(62),o=n(21),s=n(31),a=n(7),u=[].slice;r(r.P+r.F*n(1)((function(){i&&u.call(i)})),"Array",{slice:function(t,e){var n=a(this.length),r=o(this);if(e=void 0===e?n:e,"Array"==r)return u.call(this,t,e);for(var i=s(t,n),c=s(e,n),l=a(c-i),f=new Array(l),h=0;h<l;h++)f[h]="String"==r?this.charAt(i+h):this[i+h];return f}})},216:function(t,e,n){"use strict";var r=n(0),i=n(20),o=n(9),s=n(1),a=[].sort,u=[1,2,3];r(r.P+r.F*(s((function(){u.sort(void 0)}))||!s((function(){u.sort(null)}))||!n(14)(a)),"Array",{sort:function(t){return void 0===t?a.call(o(this)):a.call(o(this),i(t))}})},217:function(t,e,n){"use strict";var r=n(0),i=n(18)(0),o=n(14)([].forEach,!0);r(r.P+r.F*!o,"Array",{forEach:function(t){return i(this,t,arguments[1])}})},218:function(t,e,n){var r=n(219);t.exports=function(t,e){return new(r(t))(e)}},219:function(t,e,n){var r=n(3),i=n(61),o=n(5)("species");t.exports=function(t){var e;return i(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!i(e.prototype)||(e=void 0),r(e)&&null===(e=e[o])&&(e=void 0)),void 0===e?Array:e}},22:function(t,e,n){var r=n(47),i=n(28),o=n(15),s=n(25),a=n(11),u=n(79),c=Object.getOwnPropertyDescriptor;e.f=n(8)?c:function(t,e){if(t=o(t),e=s(e,!0),u)try{return c(t,e)}catch(t){}if(a(t,e))return i(!r.f.call(t,e),t[e])}},220:function(t,e,n){"use strict";var r=n(0),i=n(18)(1);r(r.P+r.F*!n(14)([].map,!0),"Array",{map:function(t){return i(this,t,arguments[1])}})},221:function(t,e,n){"use strict";var r=n(0),i=n(18)(2);r(r.P+r.F*!n(14)([].filter,!0),"Array",{filter:function(t){return i(this,t,arguments[1])}})},222:function(t,e,n){"use strict";var r=n(0),i=n(18)(3);r(r.P+r.F*!n(14)([].some,!0),"Array",{some:function(t){return i(this,t,arguments[1])}})},223:function(t,e,n){"use strict";var r=n(0),i=n(18)(4);r(r.P+r.F*!n(14)([].every,!0),"Array",{every:function(t){return i(this,t,arguments[1])}})},224:function(t,e,n){"use strict";var r=n(0),i=n(97);r(r.P+r.F*!n(14)([].reduce,!0),"Array",{reduce:function(t){return i(this,t,arguments.length,arguments[1],!1)}})},225:function(t,e,n){"use strict";var r=n(0),i=n(97);r(r.P+r.F*!n(14)([].reduceRight,!0),"Array",{reduceRight:function(t){return i(this,t,arguments.length,arguments[1],!0)}})},226:function(t,e,n){"use strict";var r=n(0),i=n(58)(!1),o=[].indexOf,s=!!o&&1/[1].indexOf(1,-0)<0;r(r.P+r.F*(s||!n(14)(o)),"Array",{indexOf:function(t){return s?o.apply(this,arguments)||0:i(this,t,arguments[1])}})},227:function(t,e,n){"use strict";var r=n(0),i=n(15),o=n(16),s=n(7),a=[].lastIndexOf,u=!!a&&1/[1].lastIndexOf(1,-0)<0;r(r.P+r.F*(u||!n(14)(a)),"Array",{lastIndexOf:function(t){if(u)return a.apply(this,arguments)||0;var e=i(this),n=s(e.length),r=n-1;for(arguments.length>1&&(r=Math.min(r,o(arguments[1]))),r<0&&(r=n+r);r>=0;r--)if(r in e&&e[r]===t)return r||0;return-1}})},228:function(t,e,n){var r=n(0);r(r.P,"Array",{copyWithin:n(98)}),n(44)("copyWithin")},229:function(t,e,n){var r=n(0);r(r.P,"Array",{fill:n(75)}),n(44)("fill")},23:function(t,e,n){"use strict";if(n(8)){var r=n(30),i=n(4),o=n(1),s=n(0),a=n(56),u=n(78),c=n(19),l=n(38),f=n(28),h=n(13),p=n(39),d=n(16),g=n(7),v=n(107),m=n(31),y=n(25),b=n(11),w=n(42),_=n(3),x=n(9),E=n(73),S=n(32),T=n(34),A=n(33).f,k=n(74),O=n(29),N=n(5),C=n(18),F=n(58),j=n(53),I=n(99),D=n(43),R=n(49),M=n(37),P=n(75),L=n(98),U=n(6),B=n(22),q=U.f,V=B.f,$=i.RangeError,H=i.TypeError,W=i.Uint8Array,z=Array.prototype,G=u.ArrayBuffer,Y=u.DataView,X=C(0),J=C(2),Q=C(3),K=C(4),Z=C(5),tt=C(6),et=F(!0),nt=F(!1),rt=I.values,it=I.keys,ot=I.entries,st=z.lastIndexOf,at=z.reduce,ut=z.reduceRight,ct=z.join,lt=z.sort,ft=z.slice,ht=z.toString,pt=z.toLocaleString,dt=N("iterator"),gt=N("toStringTag"),vt=O("typed_constructor"),mt=O("def_constructor"),yt=a.CONSTR,bt=a.TYPED,wt=a.VIEW,_t=C(1,(function(t,e){return At(j(t,t[mt]),e)})),xt=o((function(){return 1===new W(new Uint16Array([1]).buffer)[0]})),Et=!!W&&!!W.prototype.set&&o((function(){new W(1).set({})})),St=function(t,e){var n=d(t);if(n<0||n%e)throw $("Wrong offset!");return n},Tt=function(t){if(_(t)&&bt in t)return t;throw H(t+" is not a typed array!")},At=function(t,e){if(!_(t)||!(vt in t))throw H("It is not a typed array constructor!");return new t(e)},kt=function(t,e){return Ot(j(t,t[mt]),e)},Ot=function(t,e){for(var n=0,r=e.length,i=At(t,r);r>n;)i[n]=e[n++];return i},Nt=function(t,e,n){q(t,e,{get:function(){return this._d[n]}})},Ct=function(t){var e,n,r,i,o,s,a=x(t),u=arguments.length,l=u>1?arguments[1]:void 0,f=void 0!==l,h=k(a);if(null!=h&&!E(h)){for(s=h.call(a),r=[],e=0;!(o=s.next()).done;e++)r.push(o.value);a=r}for(f&&u>2&&(l=c(l,arguments[2],2)),e=0,n=g(a.length),i=At(this,n);n>e;e++)i[e]=f?l(a[e],e):a[e];return i},Ft=function(){for(var t=0,e=arguments.length,n=At(this,e);e>t;)n[t]=arguments[t++];return n},jt=!!W&&o((function(){pt.call(new W(1))})),It=function(){return pt.apply(jt?ft.call(Tt(this)):Tt(this),arguments)},Dt={copyWithin:function(t,e){return L.call(Tt(this),t,e,arguments.length>2?arguments[2]:void 0)},every:function(t){return K(Tt(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return P.apply(Tt(this),arguments)},filter:function(t){return kt(this,J(Tt(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return Z(Tt(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return tt(Tt(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){X(Tt(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return nt(Tt(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return et(Tt(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return ct.apply(Tt(this),arguments)},lastIndexOf:function(t){return st.apply(Tt(this),arguments)},map:function(t){return _t(Tt(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return at.apply(Tt(this),arguments)},reduceRight:function(t){return ut.apply(Tt(this),arguments)},reverse:function(){for(var t,e=Tt(this).length,n=Math.floor(e/2),r=0;r<n;)t=this[r],this[r++]=this[--e],this[e]=t;return this},some:function(t){return Q(Tt(this),t,arguments.length>1?arguments[1]:void 0)},sort:function(t){return lt.call(Tt(this),t)},subarray:function(t,e){var n=Tt(this),r=n.length,i=m(t,r);return new(j(n,n[mt]))(n.buffer,n.byteOffset+i*n.BYTES_PER_ELEMENT,g((void 0===e?r:m(e,r))-i))}},Rt=function(t,e){return kt(this,ft.call(Tt(this),t,e))},Mt=function(t){Tt(this);var e=St(arguments[1],1),n=this.length,r=x(t),i=g(r.length),o=0;if(i+e>n)throw $("Wrong length!");for(;o<i;)this[e+o]=r[o++]},Pt={entries:function(){return ot.call(Tt(this))},keys:function(){return it.call(Tt(this))},values:function(){return rt.call(Tt(this))}},Lt=function(t,e){return _(t)&&t[bt]&&"symbol"!=typeof e&&e in t&&String(+e)==String(e)},Ut=function(t,e){return Lt(t,e=y(e,!0))?f(2,t[e]):V(t,e)},Bt=function(t,e,n){return!(Lt(t,e=y(e,!0))&&_(n)&&b(n,"value"))||b(n,"get")||b(n,"set")||n.configurable||b(n,"writable")&&!n.writable||b(n,"enumerable")&&!n.enumerable?q(t,e,n):(t[e]=n.value,t)};yt||(B.f=Ut,U.f=Bt),s(s.S+s.F*!yt,"Object",{getOwnPropertyDescriptor:Ut,defineProperty:Bt}),o((function(){ht.call({})}))&&(ht=pt=function(){return ct.call(this)});var qt=p({},Dt);p(qt,Pt),h(qt,dt,Pt.values),p(qt,{slice:Rt,set:Mt,constructor:function(){},toString:ht,toLocaleString:It}),Nt(qt,"buffer","b"),Nt(qt,"byteOffset","o"),Nt(qt,"byteLength","l"),Nt(qt,"length","e"),q(qt,gt,{get:function(){return this[bt]}}),t.exports=function(t,e,n,u){var c=t+((u=!!u)?"Clamped":"")+"Array",f="get"+t,p="set"+t,d=i[c],m=d||{},y=d&&T(d),b=!d||!a.ABV,x={},E=d&&d.prototype,k=function(t,n){q(t,n,{get:function(){return function(t,n){var r=t._d;return r.v[f](n*e+r.o,xt)}(this,n)},set:function(t){return function(t,n,r){var i=t._d;u&&(r=(r=Math.round(r))<0?0:r>255?255:255&r),i.v[p](n*e+i.o,r,xt)}(this,n,t)},enumerable:!0})};b?(d=n((function(t,n,r,i){l(t,d,c,"_d");var o,s,a,u,f=0,p=0;if(_(n)){if(!(n instanceof G||"ArrayBuffer"==(u=w(n))||"SharedArrayBuffer"==u))return bt in n?Ot(d,n):Ct.call(d,n);o=n,p=St(r,e);var m=n.byteLength;if(void 0===i){if(m%e)throw $("Wrong length!");if((s=m-p)<0)throw $("Wrong length!")}else if((s=g(i)*e)+p>m)throw $("Wrong length!");a=s/e}else a=v(n),o=new G(s=a*e);for(h(t,"_d",{b:o,o:p,l:s,e:a,v:new Y(o)});f<a;)k(t,f++)})),E=d.prototype=S(qt),h(E,"constructor",d)):o((function(){d(1)}))&&o((function(){new d(-1)}))&&R((function(t){new d,new d(null),new d(1.5),new d(t)}),!0)||(d=n((function(t,n,r,i){var o;return l(t,d,c),_(n)?n instanceof G||"ArrayBuffer"==(o=w(n))||"SharedArrayBuffer"==o?void 0!==i?new m(n,St(r,e),i):void 0!==r?new m(n,St(r,e)):new m(n):bt in n?Ot(d,n):Ct.call(d,n):new m(v(n))})),X(y!==Function.prototype?A(m).concat(A(y)):A(m),(function(t){t in d||h(d,t,m[t])})),d.prototype=E,r||(E.constructor=d));var O=E[dt],N=!!O&&("values"==O.name||null==O.name),C=Pt.values;h(d,vt,!0),h(E,bt,c),h(E,wt,!0),h(E,mt,d),(u?new d(1)[gt]==c:gt in E)||q(E,gt,{get:function(){return c}}),x[c]=d,s(s.G+s.W+s.F*(d!=m),x),s(s.S,c,{BYTES_PER_ELEMENT:e}),s(s.S+s.F*o((function(){m.of.call(d,1)})),c,{from:Ct,of:Ft}),"BYTES_PER_ELEMENT"in E||h(E,"BYTES_PER_ELEMENT",e),s(s.P,c,Dt),M(c),s(s.P+s.F*Et,c,{set:Mt}),s(s.P+s.F*!N,c,Pt),r||E.toString==ht||(E.toString=ht),s(s.P+s.F*o((function(){new d(1).slice()})),c,{slice:Rt}),s(s.P+s.F*(o((function(){return[1,2].toLocaleString()!=new d([1,2]).toLocaleString()}))||!o((function(){E.toLocaleString.call([1,2])}))),c,{toLocaleString:It}),D[c]=N?O:C,r||N||h(E,dt,C)}}else t.exports=function(){}},230:function(t,e,n){"use strict";var r=n(0),i=n(18)(5),o=!0;"find"in[]&&Array(1).find((function(){o=!1})),r(r.P+r.F*o,"Array",{find:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),n(44)("find")},231:function(t,e,n){"use strict";var r=n(0),i=n(18)(6),o="findIndex",s=!0;o in[]&&Array(1)[o]((function(){s=!1})),r(r.P+r.F*s,"Array",{findIndex:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),n(44)(o)},232:function(t,e,n){n(37)("Array")},233:function(t,e,n){var r=n(4),i=n(65),o=n(6).f,s=n(33).f,a=n(71),u=n(50),c=r.RegExp,l=c,f=c.prototype,h=/a/g,p=/a/g,d=new c(h)!==h;if(n(8)&&(!d||n(1)((function(){return p[n(5)("match")]=!1,c(h)!=h||c(p)==p||"/a/i"!=c(h,"i")})))){c=function(t,e){var n=this instanceof c,r=a(t),o=void 0===e;return!n&&r&&t.constructor===c&&o?t:i(d?new l(r&&!o?t.source:t,e):l((r=t instanceof c)?t.source:t,r&&o?u.call(t):e),n?this:f,c)};for(var g=function(t){t in c||o(c,t,{configurable:!0,get:function(){return l[t]},set:function(e){l[t]=e}})},v=s(l),m=0;v.length>m;)g(v[m++]);f.constructor=c,c.prototype=f,n(12)(r,"RegExp",c)}n(37)("RegExp")},234:function(t,e,n){"use strict";n(102);var r=n(2),i=n(50),o=n(8),s=/./.toString,a=function(t){n(12)(RegExp.prototype,"toString",t,!0)};n(1)((function(){return"/a/b"!=s.call({source:"a",flags:"b"})}))?a((function(){var t=r(this);return"/".concat(t.source,"/","flags"in t?t.flags:!o&&t instanceof RegExp?i.call(t):void 0)})):"toString"!=s.name&&a((function(){return s.call(this)}))},235:function(t,e,n){"use strict";var r=n(2),i=n(7),o=n(77),s=n(51);n(52)("match",1,(function(t,e,n,a){return[function(n){var r=t(this),i=null==n?void 0:n[e];return void 0!==i?i.call(n,r):new RegExp(n)[e](String(r))},function(t){var e=a(n,t,this);if(e.done)return e.value;var u=r(t),c=String(this);if(!u.global)return s(u,c);var l=u.unicode;u.lastIndex=0;for(var f,h=[],p=0;null!==(f=s(u,c));){var d=String(f[0]);h[p]=d,""===d&&(u.lastIndex=o(c,i(u.lastIndex),l)),p++}return 0===p?null:h}]}))},236:function(t,e,n){"use strict";var r=n(2),i=n(9),o=n(7),s=n(16),a=n(77),u=n(51),c=Math.max,l=Math.min,f=Math.floor,h=/\$([$&`']|\d\d?|<[^>]*>)/g,p=/\$([$&`']|\d\d?)/g;n(52)("replace",2,(function(t,e,n,d){return[function(r,i){var o=t(this),s=null==r?void 0:r[e];return void 0!==s?s.call(r,o,i):n.call(String(o),r,i)},function(t,e){var i=d(n,t,this,e);if(i.done)return i.value;var f=r(t),h=String(this),p="function"==typeof e;p||(e=String(e));var v=f.global;if(v){var m=f.unicode;f.lastIndex=0}for(var y=[];;){var b=u(f,h);if(null===b)break;if(y.push(b),!v)break;""===String(b[0])&&(f.lastIndex=a(h,o(f.lastIndex),m))}for(var w,_="",x=0,E=0;E<y.length;E++){b=y[E];for(var S=String(b[0]),T=c(l(s(b.index),h.length),0),A=[],k=1;k<b.length;k++)A.push(void 0===(w=b[k])?w:String(w));var O=b.groups;if(p){var N=[S].concat(A,T,h);void 0!==O&&N.push(O);var C=String(e.apply(void 0,N))}else C=g(S,h,T,A,O,e);T>=x&&(_+=h.slice(x,T)+C,x=T+S.length)}return _+h.slice(x)}];function g(t,e,r,o,s,a){var u=r+t.length,c=o.length,l=p;return void 0!==s&&(s=i(s),l=h),n.call(a,l,(function(n,i){var a;switch(i.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,r);case"'":return e.slice(u);case"<":a=s[i.slice(1,-1)];break;default:var l=+i;if(0===l)return n;if(l>c){var h=f(l/10);return 0===h?n:h<=c?void 0===o[h-1]?i.charAt(1):o[h-1]+i.charAt(1):n}a=o[l-1]}return void 0===a?"":a}))}}))},237:function(t,e,n){"use strict";var r=n(2),i=n(85),o=n(51);n(52)("search",1,(function(t,e,n,s){return[function(n){var r=t(this),i=null==n?void 0:n[e];return void 0!==i?i.call(n,r):new RegExp(n)[e](String(r))},function(t){var e=s(n,t,this);if(e.done)return e.value;var a=r(t),u=String(this),c=a.lastIndex;i(c,0)||(a.lastIndex=0);var l=o(a,u);return i(a.lastIndex,c)||(a.lastIndex=c),null===l?-1:l.index}]}))},238:function(t,e,n){"use strict";var r=n(71),i=n(2),o=n(53),s=n(77),a=n(7),u=n(51),c=n(76),l=n(1),f=Math.min,h=[].push,p="length",d=!l((function(){RegExp(4294967295,"y")}));n(52)("split",2,(function(t,e,n,l){var g;return g="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1)[p]||2!="ab".split(/(?:ab)*/)[p]||4!=".".split(/(.?)(.?)/)[p]||".".split(/()()/)[p]>1||"".split(/.?/)[p]?function(t,e){var i=String(this);if(void 0===t&&0===e)return[];if(!r(t))return n.call(i,t,e);for(var o,s,a,u=[],l=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),f=0,d=void 0===e?4294967295:e>>>0,g=new RegExp(t.source,l+"g");(o=c.call(g,i))&&!((s=g.lastIndex)>f&&(u.push(i.slice(f,o.index)),o[p]>1&&o.index<i[p]&&h.apply(u,o.slice(1)),a=o[0][p],f=s,u[p]>=d));)g.lastIndex===o.index&&g.lastIndex++;return f===i[p]?!a&&g.test("")||u.push(""):u.push(i.slice(f)),u[p]>d?u.slice(0,d):u}:"0".split(void 0,0)[p]?function(t,e){return void 0===t&&0===e?[]:n.call(this,t,e)}:n,[function(n,r){var i=t(this),o=null==n?void 0:n[e];return void 0!==o?o.call(n,i,r):g.call(String(i),n,r)},function(t,e){var r=l(g,t,this,e,g!==n);if(r.done)return r.value;var c=i(t),h=String(this),p=o(c,RegExp),v=c.unicode,m=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(d?"y":"g"),y=new p(d?c:"^(?:"+c.source+")",m),b=void 0===e?4294967295:e>>>0;if(0===b)return[];if(0===h.length)return null===u(y,h)?[h]:[];for(var w=0,_=0,x=[];_<h.length;){y.lastIndex=d?_:0;var E,S=u(y,d?h:h.slice(_));if(null===S||(E=f(a(y.lastIndex+(d?0:_)),h.length))===w)_=s(h,_,v);else{if(x.push(h.slice(w,_)),x.length===b)return x;for(var T=1;T<=S.length-1;T++)if(x.push(S[T]),x.length===b)return x;_=w=E}}return x.push(h.slice(w)),x}]}))},239:function(t,e,n){"use strict";var r,i,o,s,a=n(30),u=n(4),c=n(19),l=n(42),f=n(0),h=n(3),p=n(20),d=n(38),g=n(54),v=n(53),m=n(103).set,y=n(240)(),b=n(104),w=n(241),_=n(242),x=n(243),E=u.TypeError,S=u.process,T=S&&S.versions,A=T&&T.v8||"",k=u.Promise,O="process"==l(S),N=function(){},C=i=b.f,F=!!function(){try{var t=k.resolve(1),e=(t.constructor={})[n(5)("species")]=function(t){t(N,N)};return(O||"function"==typeof PromiseRejectionEvent)&&t.then(N)instanceof e&&0!==A.indexOf("6.6")&&-1===_.indexOf("Chrome/66")}catch(t){}}(),j=function(t){var e;return!(!h(t)||"function"!=typeof(e=t.then))&&e},I=function(t,e){if(!t._n){t._n=!0;var n=t._c;y((function(){for(var r=t._v,i=1==t._s,o=0,s=function(e){var n,o,s,a=i?e.ok:e.fail,u=e.resolve,c=e.reject,l=e.domain;try{a?(i||(2==t._h&&M(t),t._h=1),!0===a?n=r:(l&&l.enter(),n=a(r),l&&(l.exit(),s=!0)),n===e.promise?c(E("Promise-chain cycle")):(o=j(n))?o.call(n,u,c):u(n)):c(r)}catch(t){l&&!s&&l.exit(),c(t)}};n.length>o;)s(n[o++]);t._c=[],t._n=!1,e&&!t._h&&D(t)}))}},D=function(t){m.call(u,(function(){var e,n,r,i=t._v,o=R(t);if(o&&(e=w((function(){O?S.emit("unhandledRejection",i,t):(n=u.onunhandledrejection)?n({promise:t,reason:i}):(r=u.console)&&r.error&&r.error("Unhandled promise rejection",i)})),t._h=O||R(t)?2:1),t._a=void 0,o&&e.e)throw e.v}))},R=function(t){return 1!==t._h&&0===(t._a||t._c).length},M=function(t){m.call(u,(function(){var e;O?S.emit("rejectionHandled",t):(e=u.onrejectionhandled)&&e({promise:t,reason:t._v})}))},P=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),I(e,!0))},L=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw E("Promise can't be resolved itself");(e=j(t))?y((function(){var r={_w:n,_d:!1};try{e.call(t,c(L,r,1),c(P,r,1))}catch(t){P.call(r,t)}})):(n._v=t,n._s=1,I(n,!1))}catch(t){P.call({_w:n,_d:!1},t)}}};F||(k=function(t){d(this,k,"Promise","_h"),p(t),r.call(this);try{t(c(L,this,1),c(P,this,1))}catch(t){P.call(this,t)}},(r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(39)(k.prototype,{then:function(t,e){var n=C(v(this,k));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=O?S.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&I(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new r;this.promise=t,this.resolve=c(L,t,1),this.reject=c(P,t,1)},b.f=C=function(t){return t===k||t===s?new o(t):i(t)}),f(f.G+f.W+f.F*!F,{Promise:k}),n(36)(k,"Promise"),n(37)("Promise"),s=n(24).Promise,f(f.S+f.F*!F,"Promise",{reject:function(t){var e=C(this);return(0,e.reject)(t),e.promise}}),f(f.S+f.F*(a||!F),"Promise",{resolve:function(t){return x(a&&this===s?k:this,t)}}),f(f.S+f.F*!(F&&n(49)((function(t){k.all(t).catch(N)}))),"Promise",{all:function(t){var e=this,n=C(e),r=n.resolve,i=n.reject,o=w((function(){var n=[],o=0,s=1;g(t,!1,(function(t){var a=o++,u=!1;n.push(void 0),s++,e.resolve(t).then((function(t){u||(u=!0,n[a]=t,--s||r(n))}),i)})),--s||r(n)}));return o.e&&i(o.v),n.promise},race:function(t){var e=this,n=C(e),r=n.reject,i=w((function(){g(t,!1,(function(t){e.resolve(t).then(n.resolve,r)}))}));return i.e&&r(i.v),n.promise}})},24:function(t,e){var n=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},240:function(t,e,n){var r=n(4),i=n(103).set,o=r.MutationObserver||r.WebKitMutationObserver,s=r.process,a=r.Promise,u="process"==n(21)(s);t.exports=function(){var t,e,n,c=function(){var r,i;for(u&&(r=s.domain)&&r.exit();t;){i=t.fn,t=t.next;try{i()}catch(r){throw t?n():e=void 0,r}}e=void 0,r&&r.enter()};if(u)n=function(){s.nextTick(c)};else if(!o||r.navigator&&r.navigator.standalone)if(a&&a.resolve){var l=a.resolve(void 0);n=function(){l.then(c)}}else n=function(){i.call(r,c)};else{var f=!0,h=document.createTextNode("");new o(c).observe(h,{characterData:!0}),n=function(){h.data=f=!f}}return function(r){var i={fn:r,next:void 0};e&&(e.next=i),t||(t=i,n()),e=i}}},241:function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},242:function(t,e,n){var r=n(4).navigator;t.exports=r&&r.userAgent||""},243:function(t,e,n){var r=n(2),i=n(3),o=n(104);t.exports=function(t,e){if(r(t),i(e)&&e.constructor===t)return e;var n=o.f(t);return(0,n.resolve)(e),n.promise}},244:function(t,e,n){"use strict";var r=n(105),i=n(35);t.exports=n(55)("Map",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{get:function(t){var e=r.getEntry(i(this,"Map"),t);return e&&e.v},set:function(t,e){return r.def(i(this,"Map"),0===t?0:t,e)}},r,!0)},245:function(t,e,n){"use strict";var r=n(105),i=n(35);t.exports=n(55)("Set",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(t){return r.def(i(this,"Set"),t=0===t?0:t,t)}},r)},246:function(t,e,n){"use strict";var r,i=n(4),o=n(18)(0),s=n(12),a=n(26),u=n(84),c=n(106),l=n(3),f=n(35),h=n(35),p=!i.ActiveXObject&&"ActiveXObject"in i,d=a.getWeak,g=Object.isExtensible,v=c.ufstore,m=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},y={get:function(t){if(l(t)){var e=d(t);return!0===e?v(f(this,"WeakMap")).get(t):e?e[this._i]:void 0}},set:function(t,e){return c.def(f(this,"WeakMap"),t,e)}},b=t.exports=n(55)("WeakMap",m,y,c,!0,!0);h&&p&&(u((r=c.getConstructor(m,"WeakMap")).prototype,y),a.NEED=!0,o(["delete","has","get","set"],(function(t){var e=b.prototype,n=e[t];s(e,t,(function(e,i){if(l(e)&&!g(e)){this._f||(this._f=new r);var o=this._f[t](e,i);return"set"==t?this:o}return n.call(this,e,i)}))})))},247:function(t,e,n){"use strict";var r=n(106),i=n(35);n(55)("WeakSet",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(t){return r.def(i(this,"WeakSet"),t,!0)}},r,!1,!0)},248:function(t,e,n){"use strict";var r=n(0),i=n(56),o=n(78),s=n(2),a=n(31),u=n(7),c=n(3),l=n(4).ArrayBuffer,f=n(53),h=o.ArrayBuffer,p=o.DataView,d=i.ABV&&l.isView,g=h.prototype.slice,v=i.VIEW;r(r.G+r.W+r.F*(l!==h),{ArrayBuffer:h}),r(r.S+r.F*!i.CONSTR,"ArrayBuffer",{isView:function(t){return d&&d(t)||c(t)&&v in t}}),r(r.P+r.U+r.F*n(1)((function(){return!new h(2).slice(1,void 0).byteLength})),"ArrayBuffer",{slice:function(t,e){if(void 0!==g&&void 0===e)return g.call(s(this),t);for(var n=s(this).byteLength,r=a(t,n),i=a(void 0===e?n:e,n),o=new(f(this,h))(u(i-r)),c=new p(this),l=new p(o),d=0;r<i;)l.setUint8(d++,c.getUint8(r++));return o}}),n(37)("ArrayBuffer")},249:function(t,e,n){var r=n(0);r(r.G+r.W+r.F*!n(56).ABV,{DataView:n(78).DataView})},25:function(t,e,n){var r=n(3);t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},250:function(t,e,n){n(23)("Int8",1,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},251:function(t,e,n){n(23)("Uint8",1,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},252:function(t,e,n){n(23)("Uint8",1,(function(t){return function(e,n,r){return t(this,e,n,r)}}),!0)},253:function(t,e,n){n(23)("Int16",2,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},254:function(t,e,n){n(23)("Uint16",2,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},255:function(t,e,n){n(23)("Int32",4,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},256:function(t,e,n){n(23)("Uint32",4,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},257:function(t,e,n){n(23)("Float32",4,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},258:function(t,e,n){n(23)("Float64",8,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},259:function(t,e,n){var r=n(0),i=n(20),o=n(2),s=(n(4).Reflect||{}).apply,a=Function.apply;r(r.S+r.F*!n(1)((function(){s((function(){}))})),"Reflect",{apply:function(t,e,n){var r=i(t),u=o(n);return s?s(r,e,u):a.call(r,e,u)}})},26:function(t,e,n){var r=n(29)("meta"),i=n(3),o=n(11),s=n(6).f,a=0,u=Object.isExtensible||function(){return!0},c=!n(1)((function(){return u(Object.preventExtensions({}))})),l=function(t){s(t,r,{value:{i:"O"+ ++a,w:{}}})},f=t.exports={KEY:r,NEED:!1,fastKey:function(t,e){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,r)){if(!u(t))return"F";if(!e)return"E";l(t)}return t[r].i},getWeak:function(t,e){if(!o(t,r)){if(!u(t))return!0;if(!e)return!1;l(t)}return t[r].w},onFreeze:function(t){return c&&f.NEED&&u(t)&&!o(t,r)&&l(t),t}}},260:function(t,e,n){var r=n(0),i=n(32),o=n(20),s=n(2),a=n(3),u=n(1),c=n(86),l=(n(4).Reflect||{}).construct,f=u((function(){function t(){}return!(l((function(){}),[],t)instanceof t)})),h=!u((function(){l((function(){}))}));r(r.S+r.F*(f||h),"Reflect",{construct:function(t,e){o(t),s(e);var n=arguments.length<3?t:o(arguments[2]);if(h&&!f)return l(t,e,n);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var r=[null];return r.push.apply(r,e),new(c.apply(t,r))}var u=n.prototype,p=i(a(u)?u:Object.prototype),d=Function.apply.call(t,p,e);return a(d)?d:p}})},261:function(t,e,n){var r=n(6),i=n(0),o=n(2),s=n(25);i(i.S+i.F*n(1)((function(){Reflect.defineProperty(r.f({},1,{value:1}),1,{value:2})})),"Reflect",{defineProperty:function(t,e,n){o(t),e=s(e,!0),o(n);try{return r.f(t,e,n),!0}catch(t){return!1}}})},262:function(t,e,n){var r=n(0),i=n(22).f,o=n(2);r(r.S,"Reflect",{deleteProperty:function(t,e){var n=i(o(t),e);return!(n&&!n.configurable)&&delete t[e]}})},263:function(t,e,n){"use strict";var r=n(0),i=n(2),o=function(t){this._t=i(t),this._i=0;var e,n=this._k=[];for(e in t)n.push(e)};n(94)(o,"Object",(function(){var t,e=this._k;do{if(this._i>=e.length)return{value:void 0,done:!0}}while(!((t=e[this._i++])in this._t));return{value:t,done:!1}})),r(r.S,"Reflect",{enumerate:function(t){return new o(t)}})},264:function(t,e,n){var r=n(22),i=n(34),o=n(11),s=n(0),a=n(3),u=n(2);s(s.S,"Reflect",{get:function t(e,n){var s,c,l=arguments.length<3?e:arguments[2];return u(e)===l?e[n]:(s=r.f(e,n))?o(s,"value")?s.value:void 0!==s.get?s.get.call(l):void 0:a(c=i(e))?t(c,n,l):void 0}})},265:function(t,e,n){var r=n(22),i=n(0),o=n(2);i(i.S,"Reflect",{getOwnPropertyDescriptor:function(t,e){return r.f(o(t),e)}})},266:function(t,e,n){var r=n(0),i=n(34),o=n(2);r(r.S,"Reflect",{getPrototypeOf:function(t){return i(o(t))}})},267:function(t,e,n){var r=n(0);r(r.S,"Reflect",{has:function(t,e){return e in t}})},268:function(t,e,n){var r=n(0),i=n(2),o=Object.isExtensible;r(r.S,"Reflect",{isExtensible:function(t){return i(t),!o||o(t)}})},269:function(t,e,n){var r=n(0);r(r.S,"Reflect",{ownKeys:n(270)})},27:function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},270:function(t,e,n){var r=n(33),i=n(46),o=n(2),s=n(4).Reflect;t.exports=s&&s.ownKeys||function(t){var e=r.f(o(t)),n=i.f;return n?e.concat(n(t)):e}},271:function(t,e,n){var r=n(0),i=n(2),o=Object.preventExtensions;r(r.S,"Reflect",{preventExtensions:function(t){i(t);try{return o&&o(t),!0}catch(t){return!1}}})},272:function(t,e,n){var r=n(6),i=n(22),o=n(34),s=n(11),a=n(0),u=n(28),c=n(2),l=n(3);a(a.S,"Reflect",{set:function t(e,n,a){var f,h,p=arguments.length<4?e:arguments[3],d=i.f(c(e),n);if(!d){if(l(h=o(e)))return t(h,n,a,p);d=u(0)}if(s(d,"value")){if(!1===d.writable||!l(p))return!1;if(f=i.f(p,n)){if(f.get||f.set||!1===f.writable)return!1;f.value=a,r.f(p,n,f)}else r.f(p,n,u(0,a));return!0}return void 0!==d.set&&(d.set.call(p,a),!0)}})},273:function(t,e,n){var r=n(0),i=n(63);i&&r(r.S,"Reflect",{setPrototypeOf:function(t,e){i.check(t,e);try{return i.set(t,e),!0}catch(t){return!1}}})},28:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},29:function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},3:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},30:function(t,e){t.exports=!1},31:function(t,e,n){var r=n(16),i=Math.max,o=Math.min;t.exports=function(t,e){return(t=r(t))<0?i(t+e,0):o(t,e)}},32:function(t,e,n){var r=n(2),i=n(82),o=n(60),s=n(59)("IE_PROTO"),a=function(){},u=function(){var t,e=n(57)("iframe"),r=o.length;for(e.style.display="none",n(62).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),u=t.F;r--;)delete u.prototype[o[r]];return u()};t.exports=Object.create||function(t,e){var n;return null!==t?(a.prototype=r(t),n=new a,a.prototype=null,n[s]=t):n=u(),void 0===e?n:i(n,e)}},33:function(t,e,n){var r=n(81),i=n(60).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},34:function(t,e,n){var r=n(11),i=n(9),o=n(59)("IE_PROTO"),s=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},35:function(t,e,n){var r=n(3);t.exports=function(t,e){if(!r(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t}},36:function(t,e,n){var r=n(6).f,i=n(11),o=n(5)("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},37:function(t,e,n){"use strict";var r=n(4),i=n(6),o=n(8),s=n(5)("species");t.exports=function(t){var e=r[t];o&&e&&!e[s]&&i.f(e,s,{configurable:!0,get:function(){return this}})}},38:function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},39:function(t,e,n){var r=n(12);t.exports=function(t,e,n){for(var i in e)r(t,i,e[i],n);return t}},4:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},40:function(t,e,n){var r=n(81),i=n(60);t.exports=Object.keys||function(t){return r(t,i)}},41:function(t,e,n){var r=n(21);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},42:function(t,e,n){var r=n(21),i=n(5)("toStringTag"),o="Arguments"==r(function(){return arguments}());t.exports=function(t){var e,n,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),i))?n:o?r(e):"Object"==(s=r(e))&&"function"==typeof e.callee?"Arguments":s}},43:function(t,e){t.exports={}},44:function(t,e,n){var r=n(5)("unscopables"),i=Array.prototype;null==i[r]&&n(13)(i,r,{}),t.exports=function(t){i[r][t]=!0}},45:function(t,e,n){var r=n(24),i=n(4),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n(30)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},46:function(t,e){e.f=Object.getOwnPropertySymbols},47:function(t,e){e.f={}.propertyIsEnumerable},48:function(t,e,n){var r=n(0),i=n(27),o=n(1),s=n(64),a="["+s+"]",u=RegExp("^"+a+a+"*"),c=RegExp(a+a+"*$"),l=function(t,e,n){var i={},a=o((function(){return!!s[t]()||"
"!="
"[t]()})),u=i[t]=a?e(f):s[t];n&&(i[n]=u),r(r.P+r.F*a,"String",i)},f=l.trim=function(t,e){return t=String(i(t)),1&e&&(t=t.replace(u,"")),2&e&&(t=t.replace(c,"")),t};t.exports=l},49:function(t,e,n){var r=n(5)("iterator"),i=!1;try{var o=[7][r]();o.return=function(){i=!0},Array.from(o,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var o=[7],s=o[r]();s.next=function(){return{done:n=!0}},o[r]=function(){return s},t(o)}catch(t){}return n}},5:function(t,e,n){var r=n(45)("wks"),i=n(29),o=n(4).Symbol,s="function"==typeof o;(t.exports=function(t){return r[t]||(r[t]=s&&o[t]||(s?o:i)("Symbol."+t))}).store=r},50:function(t,e,n){"use strict";var r=n(2);t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},51:function(t,e,n){"use strict";var r=n(42),i=RegExp.prototype.exec;t.exports=function(t,e){var n=t.exec;if("function"==typeof n){var o=n.call(t,e);if("object"!=typeof o)throw new TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==r(t))throw new TypeError("RegExp#exec called on incompatible receiver");return i.call(t,e)}},52:function(t,e,n){"use strict";n(101);var r=n(12),i=n(13),o=n(1),s=n(27),a=n(5),u=n(76),c=a("species"),l=!o((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),f=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();t.exports=function(t,e,n){var h=a(t),p=!o((function(){var e={};return e[h]=function(){return 7},7!=""[t](e)})),d=p?!o((function(){var e=!1,n=/a/;return n.exec=function(){return e=!0,null},"split"===t&&(n.constructor={},n.constructor[c]=function(){return n}),n[h](""),!e})):void 0;if(!p||!d||"replace"===t&&!l||"split"===t&&!f){var g=/./[h],v=n(s,h,""[t],(function(t,e,n,r,i){return e.exec===u?p&&!i?{done:!0,value:g.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}})),m=v[0],y=v[1];r(String.prototype,t,m),i(RegExp.prototype,h,2==e?function(t,e){return y.call(t,this,e)}:function(t){return y.call(t,this)})}}},53:function(t,e,n){var r=n(2),i=n(20),o=n(5)("species");t.exports=function(t,e){var n,s=r(t).constructor;return void 0===s||null==(n=r(s)[o])?e:i(n)}},54:function(t,e,n){var r=n(19),i=n(95),o=n(73),s=n(2),a=n(7),u=n(74),c={},l={};(e=t.exports=function(t,e,n,f,h){var p,d,g,v,m=h?function(){return t}:u(t),y=r(n,f,e?2:1),b=0;if("function"!=typeof m)throw TypeError(t+" is not iterable!");if(o(m)){for(p=a(t.length);p>b;b++)if((v=e?y(s(d=t[b])[0],d[1]):y(t[b]))===c||v===l)return v}else for(g=m.call(t);!(d=g.next()).done;)if((v=i(g,y,d.value,e))===c||v===l)return v}).BREAK=c,e.RETURN=l},55:function(t,e,n){"use strict";var r=n(4),i=n(0),o=n(12),s=n(39),a=n(26),u=n(54),c=n(38),l=n(3),f=n(1),h=n(49),p=n(36),d=n(65);t.exports=function(t,e,n,g,v,m){var y=r[t],b=y,w=v?"set":"add",_=b&&b.prototype,x={},E=function(t){var e=_[t];o(_,t,"delete"==t||"has"==t?function(t){return!(m&&!l(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return m&&!l(t)?void 0:e.call(this,0===t?0:t)}:"add"==t?function(t){return e.call(this,0===t?0:t),this}:function(t,n){return e.call(this,0===t?0:t,n),this})};if("function"==typeof b&&(m||_.forEach&&!f((function(){(new b).entries().next()})))){var S=new b,T=S[w](m?{}:-0,1)!=S,A=f((function(){S.has(1)})),k=h((function(t){new b(t)})),O=!m&&f((function(){for(var t=new b,e=5;e--;)t[w](e,e);return!t.has(-0)}));k||((b=e((function(e,n){c(e,b,t);var r=d(new y,e,b);return null!=n&&u(n,v,r[w],r),r}))).prototype=_,_.constructor=b),(A||O)&&(E("delete"),E("has"),v&&E("get")),(O||T)&&E(w),m&&_.clear&&delete _.clear}else b=g.getConstructor(e,t,v,w),s(b.prototype,n),a.NEED=!0;return p(b,t),x[t]=b,i(i.G+i.W+i.F*(b!=y),x),m||g.setStrong(b,t,v),b}},56:function(t,e,n){for(var r,i=n(4),o=n(13),s=n(29),a=s("typed_array"),u=s("view"),c=!(!i.ArrayBuffer||!i.DataView),l=c,f=0,h="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");f<9;)(r=i[h[f++]])?(o(r.prototype,a,!0),o(r.prototype,u,!0)):l=!1;t.exports={ABV:c,CONSTR:l,TYPED:a,VIEW:u}},57:function(t,e,n){var r=n(3),i=n(4).document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},58:function(t,e,n){var r=n(15),i=n(7),o=n(31);t.exports=function(t){return function(e,n,s){var a,u=r(e),c=i(u.length),l=o(s,c);if(t&&n!=n){for(;c>l;)if((a=u[l++])!=a)return!0}else for(;c>l;l++)if((t||l in u)&&u[l]===n)return t||l||0;return!t&&-1}}},59:function(t,e,n){var r=n(45)("keys"),i=n(29);t.exports=function(t){return r[t]||(r[t]=i(t))}},6:function(t,e,n){var r=n(2),i=n(79),o=n(25),s=Object.defineProperty;e.f=n(8)?Object.defineProperty:function(t,e,n){if(r(t),e=o(e,!0),r(n),i)try{return s(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},60:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},61:function(t,e,n){var r=n(21);t.exports=Array.isArray||function(t){return"Array"==r(t)}},62:function(t,e,n){var r=n(4).document;t.exports=r&&r.documentElement},63:function(t,e,n){var r=n(3),i=n(2),o=function(t,e){if(i(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{(r=n(19)(Function.call,n(22).f(Object.prototype,"__proto__").set,2))(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return o(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:o}},64:function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},65:function(t,e,n){var r=n(3),i=n(63).set;t.exports=function(t,e,n){var o,s=e.constructor;return s!==n&&"function"==typeof s&&(o=s.prototype)!==n.prototype&&r(o)&&i&&i(t,o),t}},66:function(t,e){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},67:function(t,e){var n=Math.expm1;t.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:n},68:function(t,e,n){var r=n(16),i=n(27);t.exports=function(t){return function(e,n){var o,s,a=String(i(e)),u=r(n),c=a.length;return u<0||u>=c?t?"":void 0:(o=a.charCodeAt(u))<55296||o>56319||u+1===c||(s=a.charCodeAt(u+1))<56320||s>57343?t?a.charAt(u):o:t?a.slice(u,u+2):s-56320+(o-55296<<10)+65536}}},69:function(t,e,n){"use strict";var r=n(30),i=n(0),o=n(12),s=n(13),a=n(43),u=n(94),c=n(36),l=n(34),f=n(5)("iterator"),h=!([].keys&&"next"in[].keys()),p=function(){return this};t.exports=function(t,e,n,d,g,v,m){u(n,e,d);var y,b,w,_=function(t){if(!h&&t in T)return T[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},x=e+" Iterator",E="values"==g,S=!1,T=t.prototype,A=T[f]||T["@@iterator"]||g&&T[g],k=A||_(g),O=g?E?_("entries"):k:void 0,N="Array"==e&&T.entries||A;if(N&&(w=l(N.call(new t)))!==Object.prototype&&w.next&&(c(w,x,!0),r||"function"==typeof w[f]||s(w,f,p)),E&&A&&"values"!==A.name&&(S=!0,k=function(){return A.call(this)}),r&&!m||!h&&!S&&T[f]||s(T,f,k),a[e]=k,a[x]=p,g)if(y={values:E?k:_("values"),keys:v?k:_("keys"),entries:O},m)for(b in y)b in T||o(T,b,y[b]);else i(i.P+i.F*(h||S),e,y);return y}},7:function(t,e,n){var r=n(16),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},70:function(t,e,n){var r=n(71),i=n(27);t.exports=function(t,e,n){if(r(e))throw TypeError("String#"+n+" doesn't accept regex!");return String(i(t))}},71:function(t,e,n){var r=n(3),i=n(21),o=n(5)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==i(t))}},72:function(t,e,n){var r=n(5)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,!"/./"[t](e)}catch(t){}}return!0}},73:function(t,e,n){var r=n(43),i=n(5)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||o[i]===t)}},74:function(t,e,n){var r=n(42),i=n(5)("iterator"),o=n(43);t.exports=n(24).getIteratorMethod=function(t){if(null!=t)return t[i]||t["@@iterator"]||o[r(t)]}},75:function(t,e,n){"use strict";var r=n(9),i=n(31),o=n(7);t.exports=function(t){for(var e=r(this),n=o(e.length),s=arguments.length,a=i(s>1?arguments[1]:void 0,n),u=s>2?arguments[2]:void 0,c=void 0===u?n:i(u,n);c>a;)e[a++]=t;return e}},76:function(t,e,n){"use strict";var r,i,o=n(50),s=RegExp.prototype.exec,a=String.prototype.replace,u=s,c=(r=/a/,i=/b*/g,s.call(r,"a"),s.call(i,"a"),0!==r.lastIndex||0!==i.lastIndex),l=void 0!==/()??/.exec("")[1];(c||l)&&(u=function(t){var e,n,r,i,u=this;return l&&(n=new RegExp("^"+u.source+"$(?!\\s)",o.call(u))),c&&(e=u.lastIndex),r=s.call(u,t),c&&r&&(u.lastIndex=u.global?r.index+r[0].length:e),l&&r&&r.length>1&&a.call(r[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(r[i]=void 0)})),r}),t.exports=u},77:function(t,e,n){"use strict";var r=n(68)(!0);t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},78:function(t,e,n){"use strict";var r=n(4),i=n(8),o=n(30),s=n(56),a=n(13),u=n(39),c=n(1),l=n(38),f=n(16),h=n(7),p=n(107),d=n(33).f,g=n(6).f,v=n(75),m=n(36),y=r.ArrayBuffer,b=r.DataView,w=r.Math,_=r.RangeError,x=r.Infinity,E=y,S=w.abs,T=w.pow,A=w.floor,k=w.log,O=w.LN2,N=i?"_b":"buffer",C=i?"_l":"byteLength",F=i?"_o":"byteOffset";function j(t,e,n){var r,i,o,s=new Array(n),a=8*n-e-1,u=(1<<a)-1,c=u>>1,l=23===e?T(2,-24)-T(2,-77):0,f=0,h=t<0||0===t&&1/t<0?1:0;for((t=S(t))!=t||t===x?(i=t!=t?1:0,r=u):(r=A(k(t)/O),t*(o=T(2,-r))<1&&(r--,o*=2),(t+=r+c>=1?l/o:l*T(2,1-c))*o>=2&&(r++,o/=2),r+c>=u?(i=0,r=u):r+c>=1?(i=(t*o-1)*T(2,e),r+=c):(i=t*T(2,c-1)*T(2,e),r=0));e>=8;s[f++]=255&i,i/=256,e-=8);for(r=r<<e|i,a+=e;a>0;s[f++]=255&r,r/=256,a-=8);return s[--f]|=128*h,s}function I(t,e,n){var r,i=8*n-e-1,o=(1<<i)-1,s=o>>1,a=i-7,u=n-1,c=t[u--],l=127&c;for(c>>=7;a>0;l=256*l+t[u],u--,a-=8);for(r=l&(1<<-a)-1,l>>=-a,a+=e;a>0;r=256*r+t[u],u--,a-=8);if(0===l)l=1-s;else{if(l===o)return r?NaN:c?-x:x;r+=T(2,e),l-=s}return(c?-1:1)*r*T(2,l-e)}function D(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function R(t){return[255&t]}function M(t){return[255&t,t>>8&255]}function P(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function L(t){return j(t,52,8)}function U(t){return j(t,23,4)}function B(t,e,n){g(t.prototype,e,{get:function(){return this[n]}})}function q(t,e,n,r){var i=p(+n);if(i+e>t[C])throw _("Wrong index!");var o=t[N]._b,s=i+t[F],a=o.slice(s,s+e);return r?a:a.reverse()}function V(t,e,n,r,i,o){var s=p(+n);if(s+e>t[C])throw _("Wrong index!");for(var a=t[N]._b,u=s+t[F],c=r(+i),l=0;l<e;l++)a[u+l]=c[o?l:e-l-1]}if(s.ABV){if(!c((function(){y(1)}))||!c((function(){new y(-1)}))||c((function(){return new y,new y(1.5),new y(NaN),"ArrayBuffer"!=y.name}))){for(var $,H=(y=function(t){return l(this,y),new E(p(t))}).prototype=E.prototype,W=d(E),z=0;W.length>z;)($=W[z++])in y||a(y,$,E[$]);o||(H.constructor=y)}var G=new b(new y(2)),Y=b.prototype.setInt8;G.setInt8(0,2147483648),G.setInt8(1,2147483649),!G.getInt8(0)&&G.getInt8(1)||u(b.prototype,{setInt8:function(t,e){Y.call(this,t,e<<24>>24)},setUint8:function(t,e){Y.call(this,t,e<<24>>24)}},!0)}else y=function(t){l(this,y,"ArrayBuffer");var e=p(t);this._b=v.call(new Array(e),0),this[C]=e},b=function(t,e,n){l(this,b,"DataView"),l(t,y,"DataView");var r=t[C],i=f(e);if(i<0||i>r)throw _("Wrong offset!");if(i+(n=void 0===n?r-i:h(n))>r)throw _("Wrong length!");this[N]=t,this[F]=i,this[C]=n},i&&(B(y,"byteLength","_l"),B(b,"buffer","_b"),B(b,"byteLength","_l"),B(b,"byteOffset","_o")),u(b.prototype,{getInt8:function(t){return q(this,1,t)[0]<<24>>24},getUint8:function(t){return q(this,1,t)[0]},getInt16:function(t){var e=q(this,2,t,arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=q(this,2,t,arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return D(q(this,4,t,arguments[1]))},getUint32:function(t){return D(q(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return I(q(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return I(q(this,8,t,arguments[1]),52,8)},setInt8:function(t,e){V(this,1,t,R,e)},setUint8:function(t,e){V(this,1,t,R,e)},setInt16:function(t,e){V(this,2,t,M,e,arguments[2])},setUint16:function(t,e){V(this,2,t,M,e,arguments[2])},setInt32:function(t,e){V(this,4,t,P,e,arguments[2])},setUint32:function(t,e){V(this,4,t,P,e,arguments[2])},setFloat32:function(t,e){V(this,4,t,U,e,arguments[2])},setFloat64:function(t,e){V(this,8,t,L,e,arguments[2])}});m(y,"ArrayBuffer"),m(b,"DataView"),a(b.prototype,s.VIEW,!0),e.ArrayBuffer=y,e.DataView=b},79:function(t,e,n){t.exports=!n(8)&&!n(1)((function(){return 7!=Object.defineProperty(n(57)("div"),"a",{get:function(){return 7}}).a}))},8:function(t,e,n){t.exports=!n(1)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},80:function(t,e,n){e.f=n(5)},81:function(t,e,n){var r=n(11),i=n(15),o=n(58)(!1),s=n(59)("IE_PROTO");t.exports=function(t,e){var n,a=i(t),u=0,c=[];for(n in a)n!=s&&r(a,n)&&c.push(n);for(;e.length>u;)r(a,n=e[u++])&&(~o(c,n)||c.push(n));return c}},82:function(t,e,n){var r=n(6),i=n(2),o=n(40);t.exports=n(8)?Object.defineProperties:function(t,e){i(t);for(var n,s=o(e),a=s.length,u=0;a>u;)r.f(t,n=s[u++],e[n]);return t}},83:function(t,e,n){var r=n(15),i=n(33).f,o={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return s&&"[object Window]"==o.call(t)?function(t){try{return i(t)}catch(t){return s.slice()}}(t):i(r(t))}},84:function(t,e,n){"use strict";var r=n(8),i=n(40),o=n(46),s=n(47),a=n(9),u=n(41),c=Object.assign;t.exports=!c||n(1)((function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=c({},t)[n]||Object.keys(c({},e)).join("")!=r}))?function(t,e){for(var n=a(t),c=arguments.length,l=1,f=o.f,h=s.f;c>l;)for(var p,d=u(arguments[l++]),g=f?i(d).concat(f(d)):i(d),v=g.length,m=0;v>m;)p=g[m++],r&&!h.call(d,p)||(n[p]=d[p]);return n}:c},85:function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},86:function(t,e,n){"use strict";var r=n(20),i=n(3),o=n(87),s=[].slice,a={},u=function(t,e,n){if(!(e in a)){for(var r=[],i=0;i<e;i++)r[i]="a["+i+"]";a[e]=Function("F,a","return new F("+r.join(",")+")")}return a[e](t,n)};t.exports=Function.bind||function(t){var e=r(this),n=s.call(arguments,1),a=function(){var r=n.concat(s.call(arguments));return this instanceof a?u(e,r.length,r):o(e,r,t)};return i(e.prototype)&&(a.prototype=e.prototype),a}},87:function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},88:function(t,e,n){var r=n(4).parseInt,i=n(48).trim,o=n(64),s=/^[-+]?0[xX]/;t.exports=8!==r(o+"08")||22!==r(o+"0x16")?function(t,e){var n=i(String(t),3);return r(n,e>>>0||(s.test(n)?16:10))}:r},89:function(t,e,n){var r=n(4).parseFloat,i=n(48).trim;t.exports=1/r(n(64)+"-0")!=-1/0?function(t){var e=i(String(t),3),n=r(e);return 0===n&&"-"==e.charAt(0)?-0:n}:r},9:function(t,e,n){var r=n(27);t.exports=function(t){return Object(r(t))}},90:function(t,e,n){var r=n(21);t.exports=function(t,e){if("number"!=typeof t&&"Number"!=r(t))throw TypeError(e);return+t}},91:function(t,e,n){"use strict";var r=n(16),i=n(27);t.exports=function(t){var e=String(i(this)),n="",o=r(t);if(o<0||o==1/0)throw RangeError("Count can't be negative");for(;o>0;(o>>>=1)&&(e+=e))1&o&&(n+=e);return n}},92:function(t,e,n){var r=n(3),i=Math.floor;t.exports=function(t){return!r(t)&&isFinite(t)&&i(t)===t}},93:function(t,e){t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)}},94:function(t,e,n){"use strict";var r=n(32),i=n(28),o=n(36),s={};n(13)(s,n(5)("iterator"),(function(){return this})),t.exports=function(t,e,n){t.prototype=r(s,{next:i(1,n)}),o(t,e+" Iterator")}},95:function(t,e,n){var r=n(2);t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(e){var o=t.return;throw void 0!==o&&r(o.call(t)),e}}},96:function(t,e,n){"use strict";var r=n(6),i=n(28);t.exports=function(t,e,n){e in t?r.f(t,e,i(0,n)):t[e]=n}},97:function(t,e,n){var r=n(20),i=n(9),o=n(41),s=n(7);t.exports=function(t,e,n,a,u){r(e);var c=i(t),l=o(c),f=s(c.length),h=u?f-1:0,p=u?-1:1;if(n<2)for(;;){if(h in l){a=l[h],h+=p;break}if(h+=p,u?h<0:f<=h)throw TypeError("Reduce of empty array with no initial value")}for(;u?h>=0:f>h;h+=p)h in l&&(a=e(a,l[h],h,c));return a}},98:function(t,e,n){"use strict";var r=n(9),i=n(31),o=n(7);t.exports=[].copyWithin||function(t,e){var n=r(this),s=o(n.length),a=i(t,s),u=i(e,s),c=arguments.length>2?arguments[2]:void 0,l=Math.min((void 0===c?s:i(c,s))-u,s-a),f=1;for(u<a&&a<u+l&&(f=-1,u+=l-1,a+=l-1);l-- >0;)u in n?n[a]=n[u]:delete n[a],a+=f,u+=f;return n}},99:function(t,e,n){"use strict";var r=n(44),i=n(100),o=n(43),s=n(15);t.exports=n(69)(Array,"Array",(function(t,e){this._t=s(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,i(1)):i(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])}),"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},"contrib/backbone":function(t,e,n){var r,i,o;o=this,r=[n("require/underscore"),n("shim/jquery"),e],void 0===(i=function(t,e,n){o.Backbone=function(t,e,n,r){var i=t.Backbone,o=[],s=o.slice;e.VERSION="1.1.2",e.$=r,e.noConflict=function(){return t.Backbone=i,this},e.emulateHTTP=!1,e.emulateJSON=!1;var a=e.Events={on:function(t,e,n){return c(this,"on",t,[e,n])&&e?(this._events||(this._events={}),(this._events[t]||(this._events[t]=[])).push({callback:e,context:n,ctx:n||this}),this):this},once:function(t,e,r){if(!c(this,"once",t,[e,r])||!e)return this;var i=this,o=n.once((function(){i.off(t,o),e.apply(this,arguments)}));return o._callback=e,this.on(t,o,r)},off:function(t,e,r){var i,o,s,a,u,l,f,h;if(!this._events||!c(this,"off",t,[e,r]))return this;if(!t&&!e&&!r)return this._events=void 0,this;for(u=0,l=(a=t?[t]:n.keys(this._events)).length;u<l;u++)if(t=a[u],s=this._events[t]){if(this._events[t]=i=[],e||r)for(f=0,h=s.length;f<h;f++)o=s[f],(e&&e!==o.callback&&e!==o.callback._callback||r&&r!==o.context)&&i.push(o);i.length||delete this._events[t]}return this},trigger:function(t){if(!this._events)return this;var e=s.call(arguments,1);if(!c(this,"trigger",t,e))return this;var n=this._events[t],r=this._events.all;return n&&l(n,e),r&&l(r,arguments),this},stopListening:function(t,e,r){var i=this._listeningTo;if(!i)return this;var o=!e&&!r;for(var s in r||"object"!=typeof e||(r=this),t&&((i={})[t._listenId]=t),i)(t=i[s]).off(e,r,this),(o||n.isEmpty(t._events))&&delete this._listeningTo[s];return this}},u=/\s+/,c=function(t,e,n,r){if(!n)return!0;if("object"==typeof n){for(var i in n)t[e].apply(t,[i,n[i]].concat(r));return!1}if(u.test(n)){for(var o=n.split(u),s=0,a=o.length;s<a;s++)t[e].apply(t,[o[s]].concat(r));return!1}return!0},l=function(t,e){var n,r=-1,i=t.length,o=e[0],s=e[1],a=e[2];switch(e.length){case 0:for(;++r<i;)(n=t[r]).callback.call(n.ctx);return;case 1:for(;++r<i;)(n=t[r]).callback.call(n.ctx,o);return;case 2:for(;++r<i;)(n=t[r]).callback.call(n.ctx,o,s);return;case 3:for(;++r<i;)(n=t[r]).callback.call(n.ctx,o,s,a);return;default:for(;++r<i;)(n=t[r]).callback.apply(n.ctx,e);return}};n.each({listenTo:"on",listenToOnce:"once"},(function(t,e){a[e]=function(e,r,i){return(this._listeningTo||(this._listeningTo={}))[e._listenId||(e._listenId=n.uniqueId("l"))]=e,i||"object"!=typeof r||(i=this),e[t](r,i,this),this}})),a.bind=a.on,a.unbind=a.off,n.extend(e,a);var f=e.Model=function(t,e){var r=t||{};e||(e={}),this.cid=n.uniqueId("c"),this.attributes={},e.collection&&(this.collection=e.collection),e.parse&&(r=this.parse(r,e)||{}),r=n.defaults({},r,n.result(this,"defaults")),this.set(r,e),this.changed={},this.initialize.apply(this,arguments)};n.extend(f.prototype,a,{changed:null,validationError:null,idAttribute:"id",initialize:function(){},toJSON:function(t){return n.clone(this.attributes)},sync:function(){return e.sync.apply(this,arguments)},get:function(t){return this.attributes[t]},escape:function(t){return n.escape(this.get(t))},has:function(t){return null!=this.get(t)},set:function(t,e,r){var i,o,s,a,u,c,l,f;if(null==t)return this;if("object"==typeof t?(o=t,r=e):(o={})[t]=e,r||(r={}),!this._validate(o,r))return!1;for(i in s=r.unset,u=r.silent,a=[],c=this._changing,this._changing=!0,c||(this._previousAttributes=n.clone(this.attributes),this.changed={}),f=this.attributes,l=this._previousAttributes,this.idAttribute in o&&(this.id=o[this.idAttribute]),o)e=o[i],n.isEqual(f[i],e)||a.push(i),n.isEqual(l[i],e)?delete this.changed[i]:this.changed[i]=e,s?delete f[i]:f[i]=e;if(!u){a.length&&(this._pending=r);for(var h=0,p=a.length;h<p;h++)this.trigger("change:"+a[h],this,f[a[h]],r)}if(c)return this;if(!u)for(;this._pending;)r=this._pending,this._pending=!1,this.trigger("change",this,r);return this._pending=!1,this._changing=!1,this},unset:function(t,e){return this.set(t,void 0,n.extend({},e,{unset:!0}))},clear:function(t){var e={};for(var r in this.attributes)e[r]=void 0;return this.set(e,n.extend({},t,{unset:!0}))},hasChanged:function(t){return null==t?!n.isEmpty(this.changed):n.has(this.changed,t)},changedAttributes:function(t){if(!t)return!!this.hasChanged()&&n.clone(this.changed);var e,r=!1,i=this._changing?this._previousAttributes:this.attributes;for(var o in t)n.isEqual(i[o],e=t[o])||((r||(r={}))[o]=e);return r},previous:function(t){return null!=t&&this._previousAttributes?this._previousAttributes[t]:null},previousAttributes:function(){return n.clone(this._previousAttributes)},fetch:function(t){void 0===(t=t?n.clone(t):{}).parse&&(t.parse=!0);var e=this,r=t.success;return t.success=function(n){if(!e.set(e.parse(n,t),t))return!1;r&&r(e,n,t),e.trigger("sync",e,n,t)},j(this,t),this.sync("read",this,t)},save:function(t,e,r){var i,o,s,a=this.attributes;if(null==t||"object"==typeof t?(i=t,r=e):(i={})[t]=e,r=n.extend({validate:!0},r),i&&!r.wait){if(!this.set(i,r))return!1}else if(!this._validate(i,r))return!1;i&&r.wait&&(this.attributes=n.extend({},a,i)),void 0===r.parse&&(r.parse=!0);var u=this,c=r.success;return r.success=function(t){u.attributes=a;var e=u.parse(t,r);if(r.wait&&(e=n.extend(i||{},e)),n.isObject(e)&&!u.set(e,r))return!1;c&&c(u,t,r),u.trigger("sync",u,t,r)},j(this,r),"patch"==(o=this.isNew()?"create":r.patch?"patch":"update")&&(r.attrs=i),s=this.sync(o,this,r),i&&r.wait&&(this.attributes=a),s},destroy:function(t){t=t?n.clone(t):{};var e=this,r=t.success,i=function(){e.trigger("destroy",e,e.collection,t)};if(t.success=function(n){(t.wait||e.isNew())&&i(),r&&r(e,n,t),e.isNew()||e.trigger("sync",e,n,t)},this.isNew())return t.success(),!1;j(this,t);var o=this.sync("delete",this,t);return t.wait||i(),o},url:function(){var t=n.result(this,"urlRoot")||n.result(this.collection,"url")||F();return this.isNew()?t:t.replace(/([^\/])$/,"$1/")+encodeURIComponent(this.id)},parse:function(t,e){return t},clone:function(){return new this.constructor(this.attributes)},isNew:function(){return!this.has(this.idAttribute)},isValid:function(t){return this._validate({},n.extend(t||{},{validate:!0}))},_validate:function(t,e){if(!e.validate||!this.validate)return!0;t=n.extend({},this.attributes,t);var r=this.validationError=this.validate(t,e)||null;return!r||(this.trigger("invalid",this,r,n.extend(e,{validationError:r})),!1)}}),n.each(["keys","values","pairs","invert","pick","omit"],(function(t){f.prototype[t]=function(){var e=s.call(arguments);return e.unshift(this.attributes),n[t].apply(n,e)}}));var h=e.Collection=function(t,e){e||(e={}),e.model&&(this.model=e.model),void 0!==e.comparator&&(this.comparator=e.comparator),this._reset(),this.initialize.apply(this,arguments),t&&this.reset(t,n.extend({silent:!0},e))},p={add:!0,remove:!0,merge:!0},d={add:!0,remove:!1};n.extend(h.prototype,a,{model:f,initialize:function(){},toJSON:function(t){return this.map((function(e){return e.toJSON(t)}))},sync:function(){return e.sync.apply(this,arguments)},add:function(t,e){return this.set(t,n.extend({merge:!1},e,d))},remove:function(t,e){var r,i,o,s,a=!n.isArray(t);for(e||(e={}),r=0,i=(t=a?[t]:n.clone(t)).length;r<i;r++)(s=t[r]=this.get(t[r]))&&(delete this._byId[s.id],delete this._byId[s.cid],o=this.indexOf(s),this.models.splice(o,1),this.length--,e.silent||(e.index=o,s.trigger("remove",s,this,e)),this._removeReference(s,e));return a?t[0]:t},set:function(t,e){(e=n.defaults({},e,p)).parse&&(t=this.parse(t,e));var r,i,o,s,a,u,c,l=!n.isArray(t);t=l?t?[t]:[]:n.clone(t);var h=e.at,d=this.model,g=this.comparator&&null==h&&!1!==e.sort,v=n.isString(this.comparator)?this.comparator:null,m=[],y=[],b={},w=e.add,_=e.merge,x=e.remove,E=!(g||!w||!x)&&[];for(r=0,i=t.length;r<i;r++){if(o=(a=t[r]||{})instanceof f?s=a:a[d.prototype.idAttribute||"id"],u=this.get(o))x&&(b[u.cid]=!0),_&&(a=a===s?s.attributes:a,e.parse&&(a=u.parse(a,e)),u.set(a,e),g&&!c&&u.hasChanged(v)&&(c=!0)),t[r]=u;else if(w){if(!(s=t[r]=this._prepareModel(a,e)))continue;m.push(s),this._addReference(s,e)}s=u||s,!E||!s.isNew()&&b[s.id]||E.push(s),b[s.id]=!0}if(x){for(r=0,i=this.length;r<i;++r)b[(s=this.models[r]).cid]||y.push(s);y.length&&this.remove(y,e)}if(m.length||E&&E.length)if(g&&(c=!0),this.length+=m.length,null!=h)for(r=0,i=m.length;r<i;r++)this.models.splice(h+r,0,m[r]);else{E&&(this.models.length=0);var S=E||m;for(r=0,i=S.length;r<i;r++)this.models.push(S[r])}if(c&&this.sort({silent:!0}),!e.silent){for(r=0,i=m.length;r<i;r++)(s=m[r]).trigger("add",s,this,e);(c||E&&E.length)&&this.trigger("sort",this,e)}return l?t[0]:t},reset:function(t,e){e||(e={});for(var r=0,i=this.models.length;r<i;r++)this._removeReference(this.models[r],e);return e.previousModels=this.models,this._reset(),t=this.add(t,n.extend({silent:!0},e)),e.silent||this.trigger("reset",this,e),t},push:function(t,e){return this.add(t,n.extend({at:this.length},e))},pop:function(t){var e=this.at(this.length-1);return this.remove(e,t),e},unshift:function(t,e){return this.add(t,n.extend({at:0},e))},shift:function(t){var e=this.at(0);return this.remove(e,t),e},slice:function(){return s.apply(this.models,arguments)},get:function(t){if(null!=t)return this._byId[t]||this._byId[t.id]||this._byId[t.cid]},at:function(t){return this.models[t]},where:function(t,e){return n.isEmpty(t)?e?void 0:[]:this[e?"find":"filter"]((function(e){for(var n in t)if(t[n]!==e.get(n))return!1;return!0}))},findWhere:function(t){return this.where(t,!0)},sort:function(t){if(!this.comparator)throw new Error("Cannot sort a set without a comparator");return t||(t={}),n.isString(this.comparator)||1===this.comparator.length?this.models=this.sortBy(this.comparator,this):this.models.sort(n.bind(this.comparator,this)),t.silent||this.trigger("sort",this,t),this},pluck:function(t){return n.invoke(this.models,"get",t)},fetch:function(t){void 0===(t=t?n.clone(t):{}).parse&&(t.parse=!0);var e=t.success,r=this;return t.success=function(n){var i=t.reset?"reset":"set";r[i](n,t),e&&e(r,n,t),r.trigger("sync",r,n,t)},j(this,t),this.sync("read",this,t)},create:function(t,e){if(e=e?n.clone(e):{},!(t=this._prepareModel(t,e)))return!1;e.wait||this.add(t,e);var r=this,i=e.success;return e.success=function(t,n){e.wait&&r.add(t,e),i&&i(t,n,e)},t.save(null,e),t},parse:function(t,e){return t},clone:function(){return new this.constructor(this.models)},_reset:function(){this.length=0,this.models=[],this._byId={}},_prepareModel:function(t,e){if(t instanceof f)return t;(e=e?n.clone(e):{}).collection=this;var r=new this.model(t,e);return r.validationError?(this.trigger("invalid",this,r.validationError,e),!1):r},_addReference:function(t,e){this._byId[t.cid]=t,null!=t.id&&(this._byId[t.id]=t),t.collection||(t.collection=this),t.on("all",this._onModelEvent,this)},_removeReference:function(t,e){this===t.collection&&delete t.collection,t.off("all",this._onModelEvent,this)},_onModelEvent:function(t,e,n,r){("add"!==t&&"remove"!==t||n===this)&&("destroy"===t&&this.remove(e,r),e&&t==="change:"+e.idAttribute&&(delete this._byId[e.previous(e.idAttribute)],null!=e.id&&(this._byId[e.id]=e)),this.trigger.apply(this,arguments))}}),n.each(["forEach","each","map","collect","reduce","foldl","inject","reduceRight","foldr","find","detect","filter","select","reject","every","all","some","any","include","contains","invoke","max","min","toArray","size","first","head","take","initial","rest","tail","drop","last","without","difference","indexOf","shuffle","lastIndexOf","isEmpty","chain","sample"],(function(t){h.prototype[t]=function(){var e=s.call(arguments);return e.unshift(this.models),n[t].apply(n,e)}})),n.each(["groupBy","countBy","sortBy","indexBy"],(function(t){h.prototype[t]=function(e,r){var i=n.isFunction(e)?e:function(t){return t.get(e)};return n[t](this.models,i,r)}}));var g=e.View=function(t){this.cid=n.uniqueId("view"),t||(t={}),n.extend(this,n.pick(t,m)),this._ensureElement(),this.initialize.apply(this,arguments),this.delegateEvents()},v=/^(\S+)\s*(.*)$/,m=["model","collection","el","id","attributes","className","tagName","events"];n.extend(g.prototype,a,{tagName:"div",$:function(t){return this.$el.find(t)},initialize:function(){},render:function(){return this},remove:function(){return this.$el.remove(),this.stopListening(),this},setElement:function(t,n){return this.$el&&this.undelegateEvents(),this.$el=t instanceof e.$?t:e.$(t),this.el=this.$el[0],!1!==n&&this.delegateEvents(),this},delegateEvents:function(t){if(!t&&!(t=n.result(this,"events")))return this;for(var e in this.undelegateEvents(),t){var r=t[e];if(n.isFunction(r)||(r=this[t[e]]),r){var i=e.match(v),o=i[1],s=i[2];r=n.bind(r,this),o+=".delegateEvents"+this.cid,""===s?this.$el.on(o,r):this.$el.on(o,s,r)}}return this},undelegateEvents:function(){return this.$el.off(".delegateEvents"+this.cid),this},_ensureElement:function(){if(this.el)this.setElement(n.result(this,"el"),!1);else{var t=n.extend({},n.result(this,"attributes"));this.id&&(t.id=n.result(this,"id")),this.className&&(t.class=n.result(this,"className"));var r=e.$("<"+n.result(this,"tagName")+">").attr(t);this.setElement(r,!1)}}}),e.sync=function(t,r,i){var o=b[t];n.defaults(i||(i={}),{emulateHTTP:e.emulateHTTP,emulateJSON:e.emulateJSON});var s={type:o,dataType:"json"};if(i.url||(s.url=n.result(r,"url")||F()),null!=i.data||!r||"create"!==t&&"update"!==t&&"patch"!==t||(s.contentType="application/json",s.data=JSON.stringify(i.attrs||r.toJSON(i))),i.emulateJSON&&(s.contentType="application/x-www-form-urlencoded",s.data=s.data?{model:s.data}:{}),i.emulateHTTP&&("PUT"===o||"DELETE"===o||"PATCH"===o)){s.type="POST",i.emulateJSON&&(s.data._method=o);var a=i.beforeSend;i.beforeSend=function(t){if(t.setRequestHeader("X-HTTP-Method-Override",o),a)return a.apply(this,arguments)}}"GET"===s.type||i.emulateJSON||(s.processData=!1),"PATCH"===s.type&&y&&(s.xhr=function(){return new ActiveXObject("Microsoft.XMLHTTP")});var u=i.xhr=e.ajax(n.extend(s,i));return r.trigger("request",r,u,i),u};var y=!("undefined"==typeof window||!window.ActiveXObject||window.XMLHttpRequest&&(new XMLHttpRequest).dispatchEvent),b={create:"POST",update:"PUT",patch:"PATCH",delete:"DELETE",read:"GET"};e.ajax=function(){return e.$.ajax.apply(e.$,arguments)};var w=e.Router=function(t){t||(t={}),t.routes&&(this.routes=t.routes),this._bindRoutes(),this.initialize.apply(this,arguments)},_=/\((.*?)\)/g,x=/(\(\?)?:\w+/g,E=/\*\w+/g,S=/[\-{}\[\]+?.,\\\^$|#\s]/g;n.extend(w.prototype,a,{initialize:function(){},route:function(t,r,i){n.isRegExp(t)||(t=this._routeToRegExp(t)),n.isFunction(r)&&(i=r,r=""),i||(i=this[r]);var o=this;return e.history.route(t,(function(n){var s=o._extractParameters(t,n);o.execute(i,s),o.trigger.apply(o,["route:"+r].concat(s)),o.trigger("route",r,s),e.history.trigger("route",o,r,s)})),this},execute:function(t,e){t&&t.apply(this,e)},navigate:function(t,n){return e.history.navigate(t,n),this},_bindRoutes:function(){if(this.routes){this.routes=n.result(this,"routes");for(var t,e=n.keys(this.routes);null!=(t=e.pop());)this.route(t,this.routes[t])}},_routeToRegExp:function(t){return t=t.replace(S,"\\$&").replace(_,"(?:$1)?").replace(x,(function(t,e){return e?t:"([^/?]+)"})).replace(E,"([^?]*?)"),new RegExp("^"+t+"(?:\\?([\\s\\S]*))?$")},_extractParameters:function(t,e){var r=t.exec(e).slice(1);return n.map(r,(function(t,e){return e===r.length-1?t||null:t?decodeURIComponent(t):null}))}});var T=e.History=function(){this.handlers=[],n.bindAll(this,"checkUrl"),"undefined"!=typeof window&&(this.location=window.location,this.history=window.history)},A=/^[#\/]|\s+$/g,k=/^\/+|\/+$/g,O=/msie [\w.]+/,N=/\/$/,C=/#.*$/;T.started=!1,n.extend(T.prototype,a,{interval:50,atRoot:function(){return this.location.pathname.replace(/[^\/]$/,"$&/")===this.root},getHash:function(t){var e=(t||this).location.href.match(/#(.*)$/);return e?e[1]:""},getFragment:function(t,e){if(null==t)if(this._hasPushState||!this._wantsHashChange||e){t=decodeURI(this.location.pathname+this.location.search);var n=this.root.replace(N,"");t.indexOf(n)||(t=t.slice(n.length))}else t=this.getHash();return t.replace(A,"")},start:function(t){if(T.started)throw new Error("Backbone.history has already been started");T.started=!0,this.options=n.extend({root:"/"},this.options,t),this.root=this.options.root,this._wantsHashChange=!1!==this.options.hashChange,this._wantsPushState=!!this.options.pushState,this._hasPushState=!!(this.options.pushState&&this.history&&this.history.pushState);var r=this.getFragment(),i=document.documentMode,o=O.exec(navigator.userAgent.toLowerCase())&&(!i||i<=7);if(this.root=("/"+this.root+"/").replace(k,"/"),o&&this._wantsHashChange){var s=e.$('<iframe src="javascript:0" tabindex="-1">');this.iframe=s.hide().appendTo("body")[0].contentWindow,this.navigate(r)}this._hasPushState?e.$(window).on("popstate",this.checkUrl):this._wantsHashChange&&"onhashchange"in window&&!o?e.$(window).on("hashchange",this.checkUrl):this._wantsHashChange&&(this._checkUrlInterval=setInterval(this.checkUrl,this.interval)),this.fragment=r;var a=this.location;if(this._wantsHashChange&&this._wantsPushState){if(!this._hasPushState&&!this.atRoot())return this.fragment=this.getFragment(null,!0),this.location.replace(this.root+"#"+this.fragment),!0;this._hasPushState&&this.atRoot()&&a.hash&&(this.fragment=this.getHash().replace(A,""),this.history.replaceState({},document.title,this.root+this.fragment))}if(!this.options.silent)return this.loadUrl()},stop:function(){e.$(window).off("popstate",this.checkUrl).off("hashchange",this.checkUrl),this._checkUrlInterval&&clearInterval(this._checkUrlInterval),T.started=!1},route:function(t,e){this.handlers.unshift({route:t,callback:e})},checkUrl:function(t){var e=this.getFragment();if(e===this.fragment&&this.iframe&&(e=this.getFragment(this.getHash(this.iframe))),e===this.fragment)return!1;this.iframe&&this.navigate(e),this.loadUrl()},loadUrl:function(t){return t=this.fragment=this.getFragment(t),n.any(this.handlers,(function(e){if(e.route.test(t))return e.callback(t),!0}))},navigate:function(t,e){if(!T.started)return!1;e&&!0!==e||(e={trigger:!!e});var n=this.root+(t=this.getFragment(t||""));if(t=t.replace(C,""),this.fragment!==t){if(this.fragment=t,""===t&&"/"!==n&&(n=n.slice(0,-1)),this._hasPushState)this.history[e.replace?"replaceState":"pushState"]({},document.title,n);else{if(!this._wantsHashChange)return this.location.assign(n);this._updateHash(this.location,t,e.replace),this.iframe&&t!==this.getFragment(this.getHash(this.iframe))&&(e.replace||this.iframe.document.open().close(),this._updateHash(this.iframe.location,t,e.replace))}return e.trigger?this.loadUrl(t):void 0}},_updateHash:function(t,e,n){if(n){var r=t.href.replace(/(javascript:|#).*$/,"");t.replace(r+"#"+e)}else t.hash="#"+e}}),e.history=new T,f.extend=h.extend=w.extend=g.extend=T.extend=function(t,e){var r,i=this;r=t&&n.has(t,"constructor")?t.constructor:function(){return i.apply(this,arguments)},n.extend(r,i,e);var o=function(){this.constructor=r};return o.prototype=i.prototype,r.prototype=new o,t&&n.extend(r.prototype,t),r.__super__=i.prototype,r};var F=function(){throw new Error('A "url" property or function must be specified')},j=function(t,e){var n=e.error;e.error=function(r){n&&n(t,r,e),t.trigger("error",t,r,e)}};return e}(o,n,t,e)}.apply(e,r))||(t.exports=i)},"contrib/backbone-validation-amd":function(t,e,n){t.exports=function(t,e){return t.Validation=function(e){"use strict";var n,r,i,o,s,a,u,c,l,f={forceUpdate:!1,selector:"name",labelFormatter:"sentenceCase",valid:Function.prototype,invalid:Function.prototype},h={formatLabel:function(t,e){return y[f.labelFormatter](t,e)},format:function(){var t=Array.prototype.slice.call(arguments),e=t.shift();return e.replace(/\{(\d+)\}/g,(function(e,n){return void 0!==t[n]?t[n]:e}))}},p=function(n,r,i){return r=r||{},i=i||"",e.each(n,(function(e,o){n.hasOwnProperty(o)&&(e&&"object"==typeof e&&!(e instanceof Array||e instanceof Date||e instanceof RegExp||e instanceof t.Model||e instanceof t.Collection)?p(e,r,i+o+"."):r[i+o]=e)})),r},d=(n=function(t,n,r,i){return e.reduce(function(t,n){var r=t.validation&&e.result(t,"validation")[n]||{};return(e.isFunction(r)||e.isString(r))&&(r={fn:r}),e.isArray(r)||(r=[r]),e.reduce(r,(function(t,n){return e.each(e.without(e.keys(n),"msg"),(function(e){t.push({fn:b[e],val:n[e],msg:n.msg})})),t}),[])}(t,n),(function(o,s){var a=e.extend({},h,b),u=s.fn.call(a,r,n,s.val,t,i);return!1!==u&&!1!==o&&(u&&!o?e.result(s,"msg")||u:o)}),"")},i=function(t,n,i){e.extend(n,r(t,i))},o=function(t){delete t.validate,delete t.preValidate,delete t.isValid},s=function(t){i(this.view,t,this.options)},a=function(t){o(t)},{version:"0.9.1",configure:function(t){e.extend(f,t)},bind:function(t,n){var r=(n=e.extend({},f,g,n)).model||t.model,o=n.collection||t.collection;if(void 0===r&&void 0===o)throw"Before you execute the binding your view must have a model or a collection.\nSee http://thedersen.com/projects/backbone-validation/#using-form-model-validation for more information.";r?i(t,r,n):o&&(o.each((function(e){i(t,e,n)})),o.bind("add",s,{view:t,options:n}),o.bind("remove",a))},unbind:function(t,n){var r=(n=e.extend({},n)).model||t.model,i=n.collection||t.collection;r?o(r):i&&(i.each((function(t){o(t)})),i.unbind("add",s),i.unbind("remove",a))},mixin:(r=function(t,r){return{preValidate:function(t,r){var i,o=this,s={};return e.isObject(t)?(e.each(t,(function(t,e){(i=o.preValidate(e,t))&&(s[e]=i)})),e.isEmpty(s)?void 0:s):n(this,t,r,e.extend({},this.attributes))},isValid:function(t){var r=p(this.attributes);return e.isString(t)?!n(this,t,r[t],e.extend({},this.attributes)):e.isArray(t)?e.reduce(t,(function(t,i){return t&&!n(this,i,r[i],e.extend({},this.attributes))}),!0,this):(!0===t&&this.validate(),!this.validation||this._isValid)},validate:function(i,o){var s=this,a=!i,u=e.extend({},r,o),c=function(t){return e.reduce(e.keys(e.result(t,"validation")||{}),(function(t,e){return t[e]=void 0,t}),{})}(s),l=e.extend({},c,s.attributes,i),f=p(i||l),h=function(t,r){var i,o={},s=!0,a=e.clone(r),u=p(r);return e.each(u,(function(e,r){(i=n(t,r,e,a))&&(o[r]=i,s=!1)})),{invalidAttrs:o,isValid:s}}(s,l);if(s._isValid=h.isValid,e.each(c,(function(e,n){h.invalidAttrs.hasOwnProperty(n)||u.valid(t,n,u.selector)})),e.each(c,(function(e,n){var r=h.invalidAttrs.hasOwnProperty(n),i=f.hasOwnProperty(n);r&&(i||a)&&u.invalid(t,n,h.invalidAttrs[n],u.selector)})),e.defer((function(){s.trigger("validated",s._isValid,s,h.invalidAttrs),s.trigger("validated:"+(s._isValid?"valid":"invalid"),s,h.invalidAttrs)})),!u.forceUpdate&&e.intersection(e.keys(h.invalidAttrs),e.keys(f)).length>0)return h.invalidAttrs}}})(null,f)}),g=d.callbacks={valid:function(t,e,n){t.$("["+n+'~="'+e+'"]').removeClass("invalid").removeAttr("data-error")},invalid:function(t,e,n,r){t.$("["+r+'~="'+e+'"]').addClass("invalid").attr("data-error",n)}},v=d.patterns={digits:/^\d+$/,number:/^-?(?:\d+|\d{1,3}(?:,\d{3})+)(?:\.\d+)?$/,email:/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i,url:/^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i},m=d.messages={required:"{0} is required",acceptance:"{0} must be accepted",min:"{0} must be greater than or equal to {1}",max:"{0} must be less than or equal to {1}",range:"{0} must be between {1} and {2}",length:"{0} must be {1} characters",minLength:"{0} must be at least {1} characters",maxLength:"{0} must be at most {1} characters",rangeLength:"{0} must be between {1} and {2} characters",oneOf:"{0} must be one of: {1}",equalTo:"{0} must be the same as {1}",digits:"{0} must only contain digits",number:"{0} must be a number",email:"{0} must be a valid email",url:"{0} must be a valid url",inlinePattern:"{0} is invalid"},y=d.labelFormatters={none:function(t){return t},sentenceCase:function(t){return t.replace(/(?:^\w|[A-Z]|\b\w)/g,(function(t,e){return 0===e?t.toUpperCase():" "+t.toLowerCase()})).replace(/_/g," ")},label:function(t,e){return e.labels&&e.labels[t]||y.sentenceCase(t,e)}},b=d.validators=(u=String.prototype.trim?function(t){return null===t?"":String.prototype.trim.call(t)}:function(t){return null===t?"":t.toString().replace(/^\s+/,"").replace(/\s+$/,"")},c=function(t){return e.isNumber(t)||e.isString(t)&&t.match(v.number)},l=function(t){return!(e.isNull(t)||e.isUndefined(t)||e.isString(t)&&""===u(t)||e.isArray(t)&&e.isEmpty(t))},{fn:function(t,n,r,i,o){return e.isString(r)&&(r=i[r]),r.call(i,t,n,o)},required:function(t,n,r,i,o){var s=e.isFunction(r)?r.call(i,t,n,o):r;return!(!s&&!l(t))&&(s&&!l(t)?this.format(m.required,this.formatLabel(n,i)):void 0)},acceptance:function(t,n,r,i){if("true"!==t&&(!e.isBoolean(t)||!1===t))return this.format(m.acceptance,this.formatLabel(n,i))},min:function(t,e,n,r){if(!c(t)||t<n)return this.format(m.min,this.formatLabel(e,r),n)},max:function(t,e,n,r){if(!c(t)||t>n)return this.format(m.max,this.formatLabel(e,r),n)},range:function(t,e,n,r){if(!c(t)||t<n[0]||t>n[1])return this.format(m.range,this.formatLabel(e,r),n[0],n[1])},length:function(t,n,r,i){if(!e.isString(t)||t.length!==r)return this.format(m.length,this.formatLabel(n,i),r)},minLength:function(t,n,r,i){if(!e.isString(t)||t.length<r)return this.format(m.minLength,this.formatLabel(n,i),r)},maxLength:function(t,n,r,i){if(!e.isString(t)||t.length>r)return this.format(m.maxLength,this.formatLabel(n,i),r)},rangeLength:function(t,n,r,i){if(!e.isString(t)||t.length<r[0]||t.length>r[1])return this.format(m.rangeLength,this.formatLabel(n,i),r[0],r[1])},oneOf:function(t,n,r,i){if(!e.include(r,t))return this.format(m.oneOf,this.formatLabel(n,i),r.join(", "))},equalTo:function(t,e,n,r,i){if(t!==i[n])return this.format(m.equalTo,this.formatLabel(e,r),this.formatLabel(n,r))},pattern:function(t,e,n,r){if(!l(t)||!t.toString().match(v[n]||n))return this.format(m[n]||m.inlinePattern,this.formatLabel(e,r),n)}});return e.each(b,(function(t,n){b[n]=e.bind(b[n],e.extend({},h,b))})),d}(e),t.Validation}(n("require/backbone"),n("require/underscore"))},"contrib/strftime":function(t,e){Number.prototype.pad=function(t,e){var n=""+this;for(e=e||"0";n.length<t;)n=e+n;return n},Date.prototype.months=["January","February","March","April","May","June","July","August","September","October","November","December"],Date.prototype.weekdays=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Date.prototype.dpm=[31,28,31,30,31,30,31,31,30,31,30,31],Date.prototype.strftime_f={A:function(t){return t.weekdays[t.getDay()]},a:function(t){return t.weekdays[t.getDay()].substring(0,3)},B:function(t){return t.months[t.getMonth()]},b:function(t){return t.months[t.getMonth()].substring(0,3)},C:function(t){return Math.floor(t.getFullYear()/100)},c:function(t){return t.toString()},D:function(t){return t.strftime_f.m(t)+"/"+t.strftime_f.d(t)+"/"+t.strftime_f.y(t)},d:function(t){return t.getDate().pad(2,"0")},e:function(t){return t.getDate()},F:function(t){return t.strftime_f.Y(t)+"-"+t.strftime_f.m(t)+"-"+t.strftime_f.d(t)},H:function(t){return t.getHours().pad(2,"0")},I:function(t){return(t.getHours()%12||12).pad(2)},j:function(t){var e=t.getDate(),n=t.getMonth()-1;if(n>1){var r=t.getYear();(r%100==0&&r%400==0||r%4==0)&&++e}for(;n>-1;)e+=t.dpm[n--];return e.pad(3,"0")},k:function(t){return t.getHours().pad(2," ")},l:function(t){return t.getHours()%12||12},M:function(t){return t.getMinutes().pad(2,"0")},m:function(t){return(t.getMonth()+1).pad(2,"0")},n:function(t){return"\n"},p:function(t){return t.getHours()>11?"PM":"AM"},Q:function(t){return 0==t.getMilliseconds()?"000":t.getMilliseconds().pad(3,"0")},R:function(t){return t.strftime_f.H(t)+":"+t.strftime_f.M(t)},r:function(t){return t.strftime_f.I(t)+":"+t.strftime_f.M(t)+":"+t.strftime_f.S(t)+" "+t.strftime_f.p(t)},S:function(t){return t.getSeconds().pad(2,"0")},s:function(t){return Math.floor(t.getTime()/1e3)},T:function(t){return t.strftime_f.H(t)+":"+t.strftime_f.M(t)+":"+t.strftime_f.S(t)},t:function(t){return"\t"},u:function(t){return t.getDay()||7},v:function(t){return t.strftime_f.e(t)+"-"+t.strftime_f.b(t)+"-"+t.strftime_f.Y(t)},w:function(t){return t.getDay()},X:function(t){return t.toTimeString()},x:function(t){return t.toDateString()},Y:function(t){return t.getFullYear()},y:function(t){return(t.getYear()%100).pad(2)},z:function(t){return""},Z:function(t){return""},"%":function(t){return"%"}},Date.prototype.strftime_f["+"]=Date.prototype.strftime_f.c,Date.prototype.strftime_f.h=Date.prototype.strftime_f.b,Date.prototype.strftime=function(t){var e;if(e=this[t])return e;for(var n=[],r=0;r<t.length;){var i=t.charAt(r);"%"==i?(i=t.charAt(++r),n.push(this.strftime_f[i]?this.strftime_f[i](this):i)):n.push(i),++r}return this[t]=n.join("")}},"contrib/underscore":function(t,e,n){var r;(function(){var n=this,i=n._,o={},s=Array.prototype,a=Object.prototype,u=Function.prototype,c=s.push,l=s.slice,f=s.concat,h=a.toString,p=a.hasOwnProperty,d=s.forEach,g=s.map,v=s.reduce,m=s.reduceRight,y=s.filter,b=s.every,w=s.some,_=s.indexOf,x=s.lastIndexOf,E=Array.isArray,S=Object.keys,T=u.bind,A=function(t){return t instanceof A?t:this instanceof A?void(this._wrapped=t):new A(t)};t.exports&&(e=t.exports=A),e._=A,A.VERSION="1.6.0";var k=A.each=A.forEach=function(t,e,n){if(null==t)return t;if(d&&t.forEach===d)t.forEach(e,n);else if(t.length===+t.length){for(var r=0,i=t.length;r<i;r++)if(e.call(n,t[r],r,t)===o)return}else{var s=A.keys(t);for(r=0,i=s.length;r<i;r++)if(e.call(n,t[s[r]],s[r],t)===o)return}return t};A.map=A.collect=function(t,e,n){var r=[];return null==t?r:g&&t.map===g?t.map(e,n):(k(t,(function(t,i,o){r.push(e.call(n,t,i,o))})),r)};var O="Reduce of empty array with no initial value";A.reduce=A.foldl=A.inject=function(t,e,n,r){var i=arguments.length>2;if(null==t&&(t=[]),v&&t.reduce===v)return r&&(e=A.bind(e,r)),i?t.reduce(e,n):t.reduce(e);if(k(t,(function(t,o,s){i?n=e.call(r,n,t,o,s):(n=t,i=!0)})),!i)throw new TypeError(O);return n},A.reduceRight=A.foldr=function(t,e,n,r){var i=arguments.length>2;if(null==t&&(t=[]),m&&t.reduceRight===m)return r&&(e=A.bind(e,r)),i?t.reduceRight(e,n):t.reduceRight(e);var o=t.length;if(o!==+o){var s=A.keys(t);o=s.length}if(k(t,(function(a,u,c){u=s?s[--o]:--o,i?n=e.call(r,n,t[u],u,c):(n=t[u],i=!0)})),!i)throw new TypeError(O);return n},A.find=A.detect=function(t,e,n){var r;return N(t,(function(t,i,o){if(e.call(n,t,i,o))return r=t,!0})),r},A.filter=A.select=function(t,e,n){var r=[];return null==t?r:y&&t.filter===y?t.filter(e,n):(k(t,(function(t,i,o){e.call(n,t,i,o)&&r.push(t)})),r)},A.reject=function(t,e,n){return A.filter(t,(function(t,r,i){return!e.call(n,t,r,i)}),n)},A.every=A.all=function(t,e,n){e||(e=A.identity);var r=!0;return null==t?r:b&&t.every===b?t.every(e,n):(k(t,(function(t,i,s){if(!(r=r&&e.call(n,t,i,s)))return o})),!!r)};var N=A.some=A.any=function(t,e,n){e||(e=A.identity);var r=!1;return null==t?r:w&&t.some===w?t.some(e,n):(k(t,(function(t,i,s){if(r||(r=e.call(n,t,i,s)))return o})),!!r)};A.contains=A.include=function(t,e){return null!=t&&(_&&t.indexOf===_?-1!=t.indexOf(e):N(t,(function(t){return t===e})))},A.invoke=function(t,e){var n=l.call(arguments,2),r=A.isFunction(e);return A.map(t,(function(t){return(r?e:t[e]).apply(t,n)}))},A.pluck=function(t,e){return A.map(t,A.property(e))},A.where=function(t,e){return A.filter(t,A.matches(e))},A.findWhere=function(t,e){return A.find(t,A.matches(e))},A.max=function(t,e,n){if(!e&&A.isArray(t)&&t[0]===+t[0]&&t.length<65535)return Math.max.apply(Math,t);var r=-1/0,i=-1/0;return k(t,(function(t,o,s){var a=e?e.call(n,t,o,s):t;a>i&&(r=t,i=a)})),r},A.min=function(t,e,n){if(!e&&A.isArray(t)&&t[0]===+t[0]&&t.length<65535)return Math.min.apply(Math,t);var r=1/0,i=1/0;return k(t,(function(t,o,s){var a=e?e.call(n,t,o,s):t;a<i&&(r=t,i=a)})),r},A.shuffle=function(t){var e,n=0,r=[];return k(t,(function(t){e=A.random(n++),r[n-1]=r[e],r[e]=t})),r},A.sample=function(t,e,n){return null==e||n?(t.length!==+t.length&&(t=A.values(t)),t[A.random(t.length-1)]):A.shuffle(t).slice(0,Math.max(0,e))};var C=function(t){return null==t?A.identity:A.isFunction(t)?t:A.property(t)};A.sortBy=function(t,e,n){return e=C(e),A.pluck(A.map(t,(function(t,r,i){return{value:t,index:r,criteria:e.call(n,t,r,i)}})).sort((function(t,e){var n=t.criteria,r=e.criteria;if(n!==r){if(n>r||void 0===n)return 1;if(n<r||void 0===r)return-1}return t.index-e.index})),"value")};var F=function(t){return function(e,n,r){var i={};return n=C(n),k(e,(function(o,s){var a=n.call(r,o,s,e);t(i,a,o)})),i}};A.groupBy=F((function(t,e,n){A.has(t,e)?t[e].push(n):t[e]=[n]})),A.indexBy=F((function(t,e,n){t[e]=n})),A.countBy=F((function(t,e){A.has(t,e)?t[e]++:t[e]=1})),A.sortedIndex=function(t,e,n,r){for(var i=(n=C(n)).call(r,e),o=0,s=t.length;o<s;){var a=o+s>>>1;n.call(r,t[a])<i?o=a+1:s=a}return o},A.toArray=function(t){return t?A.isArray(t)?l.call(t):t.length===+t.length?A.map(t,A.identity):A.values(t):[]},A.size=function(t){return null==t?0:t.length===+t.length?t.length:A.keys(t).length},A.first=A.head=A.take=function(t,e,n){if(null!=t)return null==e||n?t[0]:e<0?[]:l.call(t,0,e)},A.initial=function(t,e,n){return l.call(t,0,t.length-(null==e||n?1:e))},A.last=function(t,e,n){if(null!=t)return null==e||n?t[t.length-1]:l.call(t,Math.max(t.length-e,0))},A.rest=A.tail=A.drop=function(t,e,n){return l.call(t,null==e||n?1:e)},A.compact=function(t){return A.filter(t,A.identity)};var j=function(t,e,n){return e&&A.every(t,A.isArray)?f.apply(n,t):(k(t,(function(t){A.isArray(t)||A.isArguments(t)?e?c.apply(n,t):j(t,e,n):n.push(t)})),n)};A.flatten=function(t,e){return j(t,e,[])},A.without=function(t){return A.difference(t,l.call(arguments,1))},A.partition=function(t,e,n){e=C(e);var r=[],i=[];return k(t,(function(t){(e.call(n,t)?r:i).push(t)})),[r,i]},A.uniq=A.unique=function(t,e,n,r){A.isFunction(e)&&(r=n,n=e,e=!1);var i=n?A.map(t,n,r):t,o=[],s=[];return k(i,(function(n,r){(e?r&&s[s.length-1]===n:A.contains(s,n))||(s.push(n),o.push(t[r]))})),o},A.union=function(){return A.uniq(A.flatten(arguments,!0))},A.intersection=function(t){var e=l.call(arguments,1);return A.filter(A.uniq(t),(function(t){return A.every(e,(function(e){return A.contains(e,t)}))}))},A.difference=function(t){var e=f.apply(s,l.call(arguments,1));return A.filter(t,(function(t){return!A.contains(e,t)}))},A.zip=function(){for(var t=A.max(A.pluck(arguments,"length").concat(0)),e=new Array(t),n=0;n<t;n++)e[n]=A.pluck(arguments,""+n);return e},A.object=function(t,e){if(null==t)return{};for(var n={},r=0,i=t.length;r<i;r++)e?n[t[r]]=e[r]:n[t[r][0]]=t[r][1];return n},A.indexOf=function(t,e,n){if(null==t)return-1;var r=0,i=t.length;if(n){if("number"!=typeof n)return t[r=A.sortedIndex(t,e)]===e?r:-1;r=n<0?Math.max(0,i+n):n}if(_&&t.indexOf===_)return t.indexOf(e,n);for(;r<i;r++)if(t[r]===e)return r;return-1},A.lastIndexOf=function(t,e,n){if(null==t)return-1;var r=null!=n;if(x&&t.lastIndexOf===x)return r?t.lastIndexOf(e,n):t.lastIndexOf(e);for(var i=r?n:t.length;i--;)if(t[i]===e)return i;return-1},A.range=function(t,e,n){arguments.length<=1&&(e=t||0,t=0),n=arguments[2]||1;for(var r=Math.max(Math.ceil((e-t)/n),0),i=0,o=new Array(r);i<r;)o[i++]=t,t+=n;return o};var I=function(){};A.bind=function(t,e){var n,r;if(T&&t.bind===T)return T.apply(t,l.call(arguments,1));if(!A.isFunction(t))throw new TypeError;return n=l.call(arguments,2),r=function(){if(!(this instanceof r))return t.apply(e,n.concat(l.call(arguments)));I.prototype=t.prototype;var i=new I;I.prototype=null;var o=t.apply(i,n.concat(l.call(arguments)));return Object(o)===o?o:i}},A.partial=function(t){var e=l.call(arguments,1);return function(){for(var n=0,r=e.slice(),i=0,o=r.length;i<o;i++)r[i]===A&&(r[i]=arguments[n++]);for(;n<arguments.length;)r.push(arguments[n++]);return t.apply(this,r)}},A.bindAll=function(t){var e=l.call(arguments,1);if(0===e.length)throw new Error("bindAll must be passed function names");return k(e,(function(e){t[e]=A.bind(t[e],t)})),t},A.memoize=function(t,e){var n={};return e||(e=A.identity),function(){var r=e.apply(this,arguments);return A.has(n,r)?n[r]:n[r]=t.apply(this,arguments)}},A.delay=function(t,e){var n=l.call(arguments,2);return setTimeout((function(){return t.apply(null,n)}),e)},A.defer=function(t){return A.delay.apply(A,[t,1].concat(l.call(arguments,1)))},A.throttle=function(t,e,n){var r,i,o,s=null,a=0;n||(n={});var u=function(){a=!1===n.leading?0:A.now(),s=null,o=t.apply(r,i),r=i=null};return function(){var c=A.now();a||!1!==n.leading||(a=c);var l=e-(c-a);return r=this,i=arguments,l<=0?(clearTimeout(s),s=null,a=c,o=t.apply(r,i),r=i=null):s||!1===n.trailing||(s=setTimeout(u,l)),o}},A.debounce=function(t,e,n){var r,i,o,s,a,u=function(){var c=A.now()-s;c<e?r=setTimeout(u,e-c):(r=null,n||(a=t.apply(o,i),o=i=null))};return function(){o=this,i=arguments,s=A.now();var c=n&&!r;return r||(r=setTimeout(u,e)),c&&(a=t.apply(o,i),o=i=null),a}},A.once=function(t){var e,n=!1;return function(){return n||(n=!0,e=t.apply(this,arguments),t=null),e}},A.wrap=function(t,e){return A.partial(e,t)},A.compose=function(){var t=arguments;return function(){for(var e=arguments,n=t.length-1;n>=0;n--)e=[t[n].apply(this,e)];return e[0]}},A.after=function(t,e){return function(){if(--t<1)return e.apply(this,arguments)}},A.keys=function(t){if(!A.isObject(t))return[];if(S)return S(t);var e=[];for(var n in t)A.has(t,n)&&e.push(n);return e},A.values=function(t){for(var e=A.keys(t),n=e.length,r=new Array(n),i=0;i<n;i++)r[i]=t[e[i]];return r},A.pairs=function(t){for(var e=A.keys(t),n=e.length,r=new Array(n),i=0;i<n;i++)r[i]=[e[i],t[e[i]]];return r},A.invert=function(t){for(var e={},n=A.keys(t),r=0,i=n.length;r<i;r++)e[t[n[r]]]=n[r];return e},A.functions=A.methods=function(t){var e=[];for(var n in t)A.isFunction(t[n])&&e.push(n);return e.sort()},A.extend=function(t){return k(l.call(arguments,1),(function(e){if(e)for(var n in e)t[n]=e[n]})),t},A.pick=function(t){var e={},n=f.apply(s,l.call(arguments,1));return k(n,(function(n){n in t&&(e[n]=t[n])})),e},A.omit=function(t){var e={},n=f.apply(s,l.call(arguments,1));for(var r in t)A.contains(n,r)||(e[r]=t[r]);return e},A.defaults=function(t){return k(l.call(arguments,1),(function(e){if(e)for(var n in e)void 0===t[n]&&(t[n]=e[n])})),t},A.clone=function(t){return A.isObject(t)?A.isArray(t)?t.slice():A.extend({},t):t},A.tap=function(t,e){return e(t),t};var D=function(t,e,n,r){if(t===e)return 0!==t||1/t==1/e;if(null==t||null==e)return t===e;t instanceof A&&(t=t._wrapped),e instanceof A&&(e=e._wrapped);var i=h.call(t);if(i!=h.call(e))return!1;switch(i){case"[object String]":return t==String(e);case"[object Number]":return t!=+t?e!=+e:0==t?1/t==1/e:t==+e;case"[object Date]":case"[object Boolean]":return+t==+e;case"[object RegExp]":return t.source==e.source&&t.global==e.global&&t.multiline==e.multiline&&t.ignoreCase==e.ignoreCase}if("object"!=typeof t||"object"!=typeof e)return!1;for(var o=n.length;o--;)if(n[o]==t)return r[o]==e;var s=t.constructor,a=e.constructor;if(s!==a&&!(A.isFunction(s)&&s instanceof s&&A.isFunction(a)&&a instanceof a)&&"constructor"in t&&"constructor"in e)return!1;n.push(t),r.push(e);var u=0,c=!0;if("[object Array]"==i){if(c=(u=t.length)==e.length)for(;u--&&(c=D(t[u],e[u],n,r)););}else{for(var l in t)if(A.has(t,l)&&(u++,!(c=A.has(e,l)&&D(t[l],e[l],n,r))))break;if(c){for(l in e)if(A.has(e,l)&&!u--)break;c=!u}}return n.pop(),r.pop(),c};A.isEqual=function(t,e){return D(t,e,[],[])},A.isEmpty=function(t){if(null==t)return!0;if(A.isArray(t)||A.isString(t))return 0===t.length;for(var e in t)if(A.has(t,e))return!1;return!0},A.isElement=function(t){return!(!t||1!==t.nodeType)},A.isArray=E||function(t){return"[object Array]"==h.call(t)},A.isObject=function(t){return t===Object(t)},k(["Arguments","Function","String","Number","Date","RegExp"],(function(t){A["is"+t]=function(e){return h.call(e)=="[object "+t+"]"}})),A.isArguments(arguments)||(A.isArguments=function(t){return!(!t||!A.has(t,"callee"))}),A.isFunction=function(t){return"function"==typeof t},A.isFinite=function(t){return isFinite(t)&&!isNaN(parseFloat(t))},A.isNaN=function(t){return A.isNumber(t)&&t!=+t},A.isBoolean=function(t){return!0===t||!1===t||"[object Boolean]"==h.call(t)},A.isNull=function(t){return null===t},A.isUndefined=function(t){return void 0===t},A.has=function(t,e){return p.call(t,e)},A.noConflict=function(){return n._=i,this},A.identity=function(t){return t},A.constant=function(t){return function(){return t}},A.property=function(t){return function(e){return e[t]}},A.matches=function(t){return function(e){if(e===t)return!0;for(var n in t)if(t[n]!==e[n])return!1;return!0}},A.times=function(t,e,n){for(var r=Array(Math.max(0,t)),i=0;i<t;i++)r[i]=e.call(n,i);return r},A.random=function(t,e){return null==e&&(e=t,t=0),t+Math.floor(Math.random()*(e-t+1))},A.now=Date.now||function(){return(new Date).getTime()};var R={escape:{"&":"&","<":"<",">":">",'"':""","'":"'"}};R.unescape=A.invert(R.escape);var M={escape:new RegExp("["+A.keys(R.escape).join("")+"]","g"),unescape:new RegExp("("+A.keys(R.unescape).join("|")+")","g")};A.each(["escape","unescape"],(function(t){A[t]=function(e){return null==e?"":(""+e).replace(M[t],(function(e){return R[t][e]}))}})),A.result=function(t,e){if(null!=t){var n=t[e];return A.isFunction(n)?n.call(t):n}},A.mixin=function(t){k(A.functions(t),(function(e){var n=A[e]=t[e];A.prototype[e]=function(){var t=[this._wrapped];return c.apply(t,arguments),q.call(this,n.apply(A,t))}}))};var P=0;A.uniqueId=function(t){var e=++P+"";return t?t+e:e},A.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var L=/(.)^/,U={"'":"'","\\":"\\","\r":"r","\n":"n","\t":"t","\u2028":"u2028","\u2029":"u2029"},B=/\\|'|\r|\n|\t|\u2028|\u2029/g;A.template=function(t,e,n){var r;n=A.defaults({},n,A.templateSettings);var i=new RegExp([(n.escape||L).source,(n.interpolate||L).source,(n.evaluate||L).source].join("|")+"|$","g"),o=0,s="__p+='";t.replace(i,(function(e,n,r,i,a){return s+=t.slice(o,a).replace(B,(function(t){return"\\"+U[t]})),n&&(s+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'"),r&&(s+="'+\n((__t=("+r+"))==null?'':__t)+\n'"),i&&(s+="';\n"+i+"\n__p+='"),o=a+e.length,e})),s+="';\n",n.variable||(s="with(obj||{}){\n"+s+"}\n"),s="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+s+"return __p;\n";try{r=new Function(n.variable||"obj","_",s)}catch(t){throw t.source=s,t}if(e)return r(e,A);var a=function(t){return r.call(this,t,A)};return a.source="function("+(n.variable||"obj")+"){\n"+s+"}",a},A.chain=function(t){return A(t).chain()};var q=function(t){return this._chain?A(t).chain():t};A.mixin(A),k(["pop","push","reverse","shift","sort","splice","unshift"],(function(t){var e=s[t];A.prototype[t]=function(){var n=this._wrapped;return e.apply(n,arguments),"shift"!=t&&"splice"!=t||0!==n.length||delete n[0],q.call(this,n)}})),k(["concat","join","slice"],(function(t){var e=s[t];A.prototype[t]=function(){return q.call(this,e.apply(this._wrapped,arguments))}})),A.extend(A.prototype,{chain:function(){return this._chain=!0,this},value:function(){return this._wrapped}}),void 0===(r=function(){return A}.apply(e,[]))||(t.exports=r)}).call(this)},"dashboard/mixins/ComponentBindingMixin":function(t,e,n){"use strict";n(125),Object.defineProperty(e,"__esModule",{value:!0});var r=o(n("splunkjs/mvc")),i=o(n("require/underscore"));function o(t){return t&&t.__esModule?t:{default:t}}var s={bindToComponentSetting:function(t,e,n){var r=this;this.listenTo(this.settings,"change:"+t,(function(t,i){r.binding&&r.binding.dispose(),r.binding=r.bindToComponent(i,e,n)}),this);var i=this.settings.get(t);this.binding=this.bindToComponent(i,e,n)},bindToComponent:function(t,e,n){var o=this;if(!e)throw new Error("callback function is required");var s=this.registry||r.default.Components,a=(i.default.isArray(t)?t:[t]).filter(i.default.identity),u=function(t,r){var o=a.map((function(e){return t.get(e)})).filter(i.default.identity);e.call(n,o,r)},c={dispose:function(){i.default.each(a,(function(t){o.stopListening(s,"change:"+t,u)}),o)}};return 0===a.length?(e.call(n,[],null),c):(i.default.each(a,(function(t){o.listenTo(s,"change:"+t,u)}),this),i.default.defer((function(){o._removed||i.default.each(a,(function(t){u(s,s.get(t))}),o)})),c)}};e.default=s,t.exports=e.default},"global/GlobalReflowQueue":function(t,e,n){var r;void 0===(r=function(t,e,r){var i,o=n("require/underscore"),s=[],a={add:function(t){s.push(t),1===s.length&&(i=window.setInterval(a.validateViews,50))},validateViews:function(){for(var t=o.sortBy(s,(function(t){return t.getReflowDepth()})),e=0;e<t.length;e++)t[e].validateReflow();0===s.length&&clearInterval(i)},remove:function(t){var e=s.indexOf(t);e>-1&&s.splice(e,1),0===s.length&&clearInterval(i)},getTickInterval:function(){return 50},clear:function(){s=[]}};return a}.call(e,n,e,t))||(t.exports=r)},"helpers/Session":function(t,e,n){var r,i;r=[n("shim/jquery"),n("require/backbone"),n("require/underscore"),n("shim/splunk.session"),n("util/console"),n("shim/splunk.util")],void 0===(i=function(t,e,n,r,i,o){var s=function(){this._session=r.getInstance(),this.cid=n.uniqueId(),this.timeout="SessionTimeout."+this.cid,this.start="SessionStart."+this.cid,this.restart="HaltOnRestart."+this.cid,t(document).on(this.timeout,function(){i.log("ui_inactivity_timeout occurred, current limit is: "+o.getConfigValue("UI_INACTIVITY_TIMEOUT",this._session.UI_INACTIVITY_TIMEOUT)+" minute(s)"),this.trigger("timeout")}.bind(this)),t(document).on(this.start,function(){this.trigger("start")}.bind(this)),t(document).on(this.restart,function(){this.trigger("restart")}.bind(this))};return n.extend(s.prototype,e.Events,{dispose:function(){t(document).off(this.timeout),t(document).off(this.start),t(document).off(this.restart)}}),new s}.apply(e,r))||(t.exports=i)},logger:function(t,e){!function(t){Splunk.namespace("Splunk.Logger"),Splunk.Logger.getLogger=function(t,e){var n;e=e||Splunk.Logger.mode.Default;try{n=new e(t)}catch(r){throw n=this,new Error("Splunk.Logger mode is undefined, not callable or thrown an exception. mode="+e+" and fileName="+t+". Check to make sure the mode you are defining exist (see: web.conf js_logger_mode) and is a proper closure. Stack trace:"+r)}return n},Splunk.Logger.hasConsole=function(){return"undefined"!=typeof console},Splunk.Logger.mode={},Splunk.Logger.mode.None=function(){this.info=this.log=this.debug=this.warn=this.error=this.trace=function(){}},Splunk.Logger.mode.Firebug=Splunk.Logger.mode.None,Splunk.Logger.mode.Server=function(t){var e=Splunk.Logger.mode.Server.Buffer.getInstance(),n=function(n,r){n=n||[];for(var i=0;i<n.length;i++)if("object"==typeof n[i])try{n[i]=JSON.stringify(n[i])}catch(t){}var o=Array.apply(null,n).join(" "),s={level:r,class:t,message:o};e.push(s)};this.info=function(){n(arguments,"info")},this.log=function(){n(arguments,"log")},this.debug=function(){n(arguments,"debug")},this.warn=function(){n(arguments,"warn")},this.error=function(){n(arguments,"error")},this.trace=function(){var t="";try{t=(new Error).stack.replace(/^Error/,"")}catch(t){}t&&n([t],"debug")}},Splunk.Logger.mode.Server.Buffer=function(){var t=this,e=[],n=function(){var t;t=JSON.stringify(e),$.post(Splunk.Logger.mode.Server.END_POINT,{data:t}),e=[]};t.push=function(t){e.push(t),e.length>Splunk.Logger.mode.Server.MAX_BUFFER&&n()},t.poller=function(){e.length>0&&n()},t.size=function(){return e.length},t.Buffer=void setInterval(t.poller,Splunk.Logger.mode.Server.POLL_BUFFER)},Splunk.Logger.mode.Server.Buffer.instance=null,Splunk.Logger.mode.Server.Buffer.getInstance=function(){return null==Splunk.Logger.mode.Server.Buffer.instance&&(Splunk.Logger.mode.Server.Buffer.instance=new Splunk.Logger.mode.Server.Buffer),Splunk.Logger.mode.Server.Buffer.instance},Splunk.Logger.mode.Server.END_POINT=Splunk.util.make_url(Splunk.util.getConfigValue("JS_LOGGER_MODE_SERVER_END_POINT","util/log/js")),Splunk.Logger.mode.Server.POLL_BUFFER=Splunk.util.getConfigValue("JS_LOGGER_MODE_SERVER_POLL_BUFFER",1e3),Splunk.Logger.mode.Server.MAX_BUFFER=Splunk.util.getConfigValue("JS_LOGGER_MODE_SERVER_MAX_BUFFER",100),Splunk.Logger.mode.Default=Splunk.Logger.mode[Splunk.util.getConfigValue("JS_LOGGER_MODE","None")],Splunk.log=function(t,e,n){Splunk.Logger.getLogger("logger.js").warn("WARNING! Splunk.log is now deprecated. See Splunk.Logger class for more details.","Original Message:",t," Original Category:",e,"Original Source:",n)};var e=t.D={};e.logger=Splunk.Logger.getLogger("logger.js"),e.wrapper=function(t,n){e.logger.warn("WARNING! D.",n,"is now deprecated. See Splunk.Logger class for more details.",t)},e.debug=function(t){e.wrapper(t,"debug")},e.error=function(t){e.wrapper(t,"error")},e.warn=function(t){e.wrapper(t,"warn")},Splunk.util.logger=Splunk.Logger.getLogger("util.js")}(this)},"mixins/domtracker":function(t,e,n){var r;void 0===(r=function(t,e,r){var i=n("require/underscore");return{listenToDOM:function(t,e,n){if(t&&!t.jquery)throw new Error("listenToDOM supports only jQuery objects");var r=this._domListeners||(this._domListeners=[]),o=i.bind(n,this),s=e.split(" ");i.each(s,(function(e){t.on(e,o);var i={$el:t,eventName:e,handler:n,bindedHandler:o};r.push(i)}))},stopListeningDOM:function(t,e,n){if(t&&!t.jquery)throw new Error("stopListeningDOM supports only jQuery objects");var r=this._domListeners||(this._domListeners=[]),o=e?e.split(" "):e;this._domListeners=i.filter(r,(function(e){return!!(t&&!e.$el.is(t)||o&&!(i.indexOf(o,e.eventName)>=0)||n&&e.handler!==n)||(e.$el.off(e.eventName,e.bindedHandler),!1)}))}}}.call(e,n,e,t))||(t.exports=r)},"mixins/modelcollection":function(t,e,n){var r,i;r=[n("require/underscore"),n("util/Ticker"),n("helpers/Session")],void 0===(i=function(t,e,n){return{safeFetch:function(){this.isFetching()?this.touched=arguments:(delete this.touched,this.fetch.apply(this,arguments))},isFetching:function(){return this.fetchXhr&&this.fetchXhr.state&&"pending"===this.fetchXhr.state()},fetchAbort:function(){this.isFetching()&&(delete this.touched,t.isFunction(this.fetchXhr.abort)&&this.fetchXhr.abort())},deepOff:function(){this.fetchAbort(),t(this.associated).each((function(e){t.isFunction(e.deepOff)&&e.deepOff()}),this),t.isFunction(this.fetchData.deepOff)?this.fetchData.deepOff():this.fetchData.off(),this.off()},DEFAULT_POLLING_DELAY:1e3,ticker:null,startPolling:function(t){if(t=t||{},this.ticker)throw new Error("startPolling cannot be called while already polling");this.ticker=new e({interval:t.delay||this.DEFAULT_POLLING_DELAY}),this.ticker.on("tick",(function(){t.condition&&!t.condition(this)?this.stopPolling():this.safeFetch({data:t.data})}),this),!1!==t.stopOnError&&this.on("error",this.stopPolling,this),t.uiInactivity&&n.on("timeout",this.stopPolling,this),this.ticker.start(!0)},stopPolling:function(){this.ticker&&(this.ticker.stop(),this.ticker.off()),this.off("error",this.stopPolling,this),n.off("timeout",this.stopPolling,this),this.ticker=null}}}.apply(e,r))||(t.exports=i)},"mixins/viewlogging":function(t,e,n){var r,i;r=[n("require/underscore"),n("require/backbone"),n("shim/splunk.logger"),n("shim/splunk.util")],void 0===(i=function(t,e,n,r){var i=r.getConfigValue("JS_LOGGER_MODE","None"),o=r.getConfigValue("JS_LOGGER_LEVEL","INFO"),s="None"!==i&&"DEBUG"===o,a=["mousemove","scroll"],u=null;return{delegateEvents:function(r){if(!s)return e.View.prototype.delegateEvents.call(this,r);if(!(r=r||t.result(this,"events")))return e.View.prototype.delegateEvents.call(this,r);var i={};return t(r).each((function(e,r){var o=t.isFunction(e)?e:this[e];if(t.isFunction(o)&&-1===t(a).indexOf(r)){var s=this.moduleId+"/"+this.cid;i[r]=function(){u||(u=n.getLogger("viewlogging.js")),u.debug("view "+s+" is handling event "+r.replace(/\s+/g," ")),o.apply(this,arguments)}}else i[r]=e}),this),e.View.prototype.delegateEvents.call(this,i)}}}.apply(e,r))||(t.exports=i)},"models/Base":function(t,e,n){var r,i;r=[n("shim/jquery"),n("require/underscore"),n("require/backbone"),n("mixins/modelcollection"),n("util/general_utils"),n("util/splunkd_utils"),n("validation/ValidationMixin")],void 0===(i=function(t,e,n,r,i,o,s){var a=n.Model.extend({initialize:function(t,r){n.Model.prototype.initialize.apply(this,arguments),this.error=new n.Model,this.fetchData=r&&r.fetchData?r.fetchData:new n.Model,this.associated=this.associated||{},this.associated.error=this.error,this.fetchData.on("change",e.debounce((function(){this.safeFetch()}),0),this),this.on("sync",this._onsync,this),this.on("error",this._onerror,this),this.on("validated",this._rebroadcastValidation,this)},fetch:function(e){var r=t.extend(!0,{},{data:this.fetchData.toJSON()},e);this.fetchXhr=n.Model.prototype.fetch.call(this,r);var i=this;return this.fetchXhr.done((function(){i.touched&&i.safeFetch.apply(i,i.touched)})),this.fetchXhr},binaryPromiseFetch:function(e){e||(e={});var n=t.Deferred(),r=e.success,i=e.error;return e.success=function(){n.resolve(!0),r&&r.apply(this,arguments)},e.error=function(){n.resolve(!1),i&&i.apply(this,arguments)},this.fetch(e),n},clear:function(t){if(t=t||{},e.each(this.associated,(function(e){e instanceof n.Model?e.clear(t):e instanceof n.Collection&&e.reset(null,t)})),this.error.clear(t),n.Model.prototype.clear.call(this,t),t.setDefaults){var r=e.result(this,"defaults");r&&this.set(r,t)}return this},clone:function(){var t=n.Model.prototype.clone.call(this);return e.each(this.associated,(function(e,r){if(e instanceof n.Model){var i=e.clone();t[r]=i,t.associated[r]=i}else if(e instanceof n.Collection){var o=new e.constructor(e.map((function(t){return t.clone()})));t[r]=o,t.associated[r]=o}})),t},associatedOff:function(t,n,r){e(this.associated).each((function(i){i.off(t,n,r),e.isFunction(i.associatedOff)&&i.associatedOff(t,n,r)}),this),this.fetchData.off(t,n,r)},clearErrors:function(){this.trigger("serverValidated",!0,this,[]),this.trigger("validated",!0,this,[])},messageHasError:function(t){return t.type===o.ERROR||t.type===o.FATAL},responseHasErrors:function(t,n){return e(n).any((function(t){return this.messageHasError(t)}),this)},_rebroadcastValidation:function(t,n,r){var i=e.union(e.keys(this.attributes),e.keys(r));e(i).each((function(t){this.trigger("attributeValidated:"+t,!e.has(r,t),t,r[t])}),this)},_onerror:function(t,e,n){t.error.clear();var r=o.xhrErrorResponseParser(e,this.id);this.trigger("serverValidated",!1,this,r),t.error.set("messages",r)},_onsync:function(t,e,n){t.error.clear();var r=this.parseSplunkDMessages(e),i=this.responseHasErrors(e,r);this.trigger("serverValidated",!i,this,r),i&&t.error.set("messages",r)},parseSplunkDMessages:function(t){return t?o.parseMessagesObject(t.messages):[]},filterByKeys:function(t,n,r){n=n||{};var i={},o=e.isString(n.strip)?n.strip:"",s=!!n.allowEmpty;return e.each(this.toJSON(r),(function(n,r){-1!=e.indexOf(t,r)&&(e.isUndefined(n)||(""!==n||s)&&(i[r.replace(o,"")]=n))}),this),i},filterByWildcards:function(t,e,n){return i.filterObjectByRegexes(this.toJSON(n),t,e)},filterChangedByWildcards:function(t,e){return i.filterObjectByRegexes(this.changedAttributes()||{},t,e)},toObject:function(t){var e=this.get(t);try{e=JSON.parse(e)}catch(t){}return e},replace:function(t,e){this.clear({silent:!0}),this.set(t,e)},restoreDefaults:function(t){var n=e.isFunction(this.defaults)?this.defaults():this.defaults;this.clear(t),this.set(n,t)}});return e.extend(a.prototype,s),e.extend(a.prototype,r),a}.apply(e,r))||(t.exports=i)},"require/backbone":function(t,e,n){var r,i;r=[n("shim/jquery"),n("require/underscore"),n("contrib/backbone")],void 0===(i=function(t,e,n){return n.$=t,n.noConflict()}.apply(e,r))||(t.exports=i)},"require/underscore":function(t,e,n){var r,i;r=[n("contrib/underscore"),n("stubs/i18n")],void 0===(i=function(t,e){return t.mixin({t:function(t){return e._(t)}}),t.noConflict()}.apply(e,r))||(t.exports=i)},"shim/jquery":function(t,e,n){var r,i;r=[n(111)],void 0===(i=function(t){window.$||(window.$=t,window.jQuery=t);var e=setInterval((function(){window._splunk_metrics_events&&!Array.isArray(window._splunk_metrics_events)/* &&(clearInterval(e),window._splunk_metrics_events.push({type:"jquery",data:{library:"jquery-"+t.fn.jquery}})) */}),500);return t}.apply(e,r))||(t.exports=i)},"shim/lowpro":function(t,e,n){var r,i;r=[n("shim/jquery"),n(123)],void 0===(i=function(){}.apply(e,r))||(t.exports=i)},"shim/splunk":function(t,e,n){var r,i;r=[n(109)],void 0===(i=function(){return window.Splunk}.apply(e,r))||(t.exports=i)},"shim/splunk.logger":function(t,e,n){var r,i;r=[n("shim/splunk"),n("shim/splunk.util"),n("logger")],void 0===(i=function(t){return t.Logger}.apply(e,r))||(t.exports=i)},"shim/splunk.session":function(t,e,n){var r,i;r=[n("shim/splunk"),n("shim/jquery"),n("shim/lowpro"),n("shim/splunk.logger"),n("shim/splunk.util"),n(124)],void 0===(i=function(t){return t.Session}.apply(e,r))||(t.exports=i)},"shim/splunk.util":function(t,e,n){var r,i;r=[n("shim/splunk"),n("util/sprintf"),n("shim/jquery"),n("stubs/splunk.config"),n(112)],void 0===(i=function(t,e){return t.util.sprintf=e,t.util}.apply(e,r))||(t.exports=i)},"shim/splunkjs":function(t,e,n){var r,i;r=[n("shim/jquery"),n("splunkjs/splunk")],void 0===(i=function(){return window.splunkjs}.apply(e,r))||(t.exports=i)},"splunkjs/css/messages.css":function(t,e,n){var r=n(119);"string"==typeof r&&(r=[[t.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n(121)(r,i);r.locals&&(t.exports=r.locals)},"splunkjs/generated/urlresolver":function(t,e,n){var r;void 0===(r=function(t,e,n){return{reverse:function(t,e,n){throw new Error("Path reverse is not supported in this configuration of the framework.")}}}.call(e,n,e,t))||(t.exports=r)},"splunkjs/mvc":function(t,e,n){var r;void 0===(r=function(t,e,r){return n("splunkjs/mvc/mvc")}.call(e,n,e,t))||(t.exports=r)},"splunkjs/mvc/basemanager":function(t,e,n){var r;void 0===(r=function(t,e,r){var i=n("require/underscore"),o=n("require/backbone"),s=n("util/console"),a=n("mixins/domtracker"),u=n("splunkjs/mvc/mvc"),c=o.Model.extend({constructor:function(t,e){t=t||{};var n=(e=e||{}).id||t.id;void 0===n&&void 0!==(n=e.name||t.name)&&s.log("Use of 'name' to specify the ID of a Splunk model is deprecated."),void 0===n&&(n=i.uniqueId("manager_")),this.id=this.name=e.name=e.id=n,this.registry=e.registry||e._tokenRegistry||u.Components;var r=o.Model.prototype.constructor.apply(this,arguments);return this.registry.registerInstance(this.id,this,{replace:e.replace}),r},_start:function(){},dispose:function(){this.stopListeningDOM(),this.stopListening(),this.registry.getInstance(this.id)===this&&this.registry.revokeInstance(this.id)},getType:function(){return this.settings.get("type")||"primary"}});return i.extend(c.prototype,a),c}.call(e,n,e,t))||(t.exports=r)},"splunkjs/mvc/basesplunkview":function(t,e,n){var r;void 0===(r=function(t,e,r){var i=n("require/underscore"),o=n("splunkjs/mvc/mvc"),s=n("util/console"),a=n("require/backbone"),u=n("splunkjs/mvc/settings"),c=n("mixins/viewlogging"),l=n("dashboard/mixins/ComponentBindingMixin"),f=a.View.extend({_numConfigureCalls:0,omitFromSettings:[],_uniqueIdPrefix:"view_",constructor:function(t,e){e=e||{},(t=t||{}).settingsOptions=i.extend(t.settingsOptions||{},e),this._removed=!1;var n=t.id;void 0===n&&t.name&&(n=t.name,s.warn("Use of 'name' to specify the ID of a Splunk model is deprecated.")),void 0===n&&(n=i.uniqueId(this._uniqueIdPrefix||"view_")),this.name=this.id=t.name=t.id=n,this.options=i.extend({},this.options,t),this.registry=this.options.settingsOptions.registry||this.options.settingsOptions._tokenRegistry||o.Components;var r=a.View.prototype.constructor.apply(this,arguments);return 0==this._numConfigureCalls&&this.configure(),this.registry.registerInstance(this.id,this,{replace:e.replace}),r},configure:function(){if(this._numConfigureCalls++,this._numConfigureCalls>1)throw new Error("BaseSplunkView.configure() called multiple times.");var t=this.options.settings;if(t&&t instanceof u)return this.settings=t,this;var e=(this.omitFromSettings||[]).concat(["model","collection","el","attributes","className","tagName","events","settingsOptions"]),n=i.omit(this.options,e),r=this.options.settingsOptions;return this.settings=new u(n,i.extend({},r,{_tokenRegistry:this.registry})),this},initialize:function(){a.View.prototype.initialize.apply(this,arguments)},remove:function(){return this._removed=!0,this.settings.dispose(),a.View.prototype.remove.apply(this,arguments),this.registry.getInstance(this.id)===this&&this.registry.revokeInstance(this.id),this},dispose:function(){this.remove()},setElement:function(){return a.View.prototype.setElement.apply(this,arguments),this.$el.addClass("splunk-view"),this.className&&this.$el.addClass(this.className),this.$el.attr("id")||this.$el.attr("id",this.id),this.moduleId&&this.$el.attr("data-view",this.moduleId),this}});return i.extend(f.prototype,l,c),f}.call(e,n,e,t))||(t.exports=r)},"splunkjs/mvc/basetokenmodel":function(t,e,n){var r;void 0===(r=function(t,e,r){return n("require/backbone").Model.extend({moduleId:r.i})}.call(e,n,e,t))||(t.exports=r)},"splunkjs/mvc/debugger":function(t,e,n){var r;void 0===(r=function(t,e,r){var i=n("require/underscore"),o=n("require/backbone"),s=n("splunkjs/mvc/basemanager"),a=n("splunkjs/mvc/basesplunkview"),u=n("splunkjs/mvc/basetokenmodel"),c=n("splunkjs/mvc/searchmodel"),l=window.console,f=function(t){for(var e="",n=0;n<t;n++)e+=" ";return e},h=function(t){return"WARNING: "+t},p={MANAGER:"manager",VIEW:"view",NAMESPACE:"namespace",UNKNOWN:"unknown"};return o.Model.extend({ready:!1,initialize:function(){this.registry=this.get("registry"),this.registry?l.log("The Splunkjs debugger is running. For help, enter 'splunkjs.mvc.Debugger.help()'"):l.log("splunk.mvc debugging interface could not find the registry")},isReady:function(){return this.ready},getDebugData:function(){var t=this,e=[],n=t.registry.getInstanceNames();i.each(n,(function(n){var r=t.registry.getInstance(n),o=t._getComponentType(r),s=t._getComponentCategory(r),a=[],u={id:n,category:s,type:o,warnings:[]};if(s===p.VIEW){var c=null,l={};a=t._getValidViewOptions(r),r.settings&&(c=r.settings.get("managerid")||null,l=i.clone(r.settings.attributes),i.each(i.keys(l),(function(t){if(!i.contains(a,t)){var e=t.split(".")[0];"mapping"!==e&&"charting"!==e&&u.warnings.push(h(t+" is not a recognized setting."))}}))),u.managerid=c,u.settings=l,u.el=r.el||"no element set"}if(s===p.NAMESPACE&&(u.tokens=[],i.each(r.attributes,(function(t,e){var n={name:e,value:t,listenerIds:[]};u.tokens.push(n)}))),s===p.MANAGER){if(a=t._getValidManagerOptions(r),r.attributes){var f=i.clone(r.attributes);i.each(i.keys(f),(function(t){i.contains(a,t)||u.warnings.push(h(t+" is not a recognized attribute"))}))}u.attributes=r.attributes,u.query=r.query,u.search=r.search}s!==p.NAMESPACE&&(u.bindings=t._getComponentBindings(n)),e.push(u)}));var r=i.where(e,{category:p.MANAGER}),o=i.where(e,{category:p.VIEW}),s=i.where(e,{category:p.NAMESPACE});return i.each(r,(function(t){t.viewIds=i.pluck(i.where(o,{managerid:t.id}),"id"),t.viewIds.length<1&&t.warnings.push(h("no views bound to search manager."))})),i.each(o,(function(t){t.managerid&&(i.contains(i.pluck(r,"id"),t.managerid)||t.warnings.push(h(t.managerid+" is not a registered manager.")))})),i.each(s,(function(t){i.each(t.tokens,(function(e){var n=i.filter(i.union(r,o),(function(n){return i.some(n.bindings,(function(n){if(n&&n.observes&&n.observes.length>0)return i.some(n.observes,(function(n){return n.namespace===t.id&&n.name===e.name}))}))}));e.listenerIds=i.pluck(n,"id")}))})),e},_getValidViewOptions:function(t){var e=["id","name","managerid","manager","app","el","data"];return t.constructor.prototype.options&&(e=i.union(e,i.keys(t.constructor.prototype.options))),e},_getValidManagerOptions:function(t){return i.union(["app","id","owner","name","data"],i.keys(t.constructor.prototype.defaults)||[],c.SearchSettingsModel.ALLOWED_ATTRIBUTES)},_getComponentType:function(t){var e="Unknown type";if(t.moduleId){var n=t.moduleId.split("/").pop();n.length>0&&(e=n)}return e},_getComponentCategory:function(t){var e=p.UNKNOWN;return t instanceof a?e=p.VIEW:t instanceof s?e=p.MANAGER:t instanceof u&&(e=p.NAMESPACE),e},_getComponentTokenBoundProperties:function(t){var e=this._getComponentBindings(t);return i.keys(e)},_getComponentBindings:function(t){var e=this.registry.getInstance(t),n={};return e&&e.settings&&(n=i.extend(n,i.clone(e.settings._bindings))),n},createError:function(t){return t},printViewInfo:function(){var t=this.getInfoForViews();l.log("Views:"),i.each(t,(function(t){l.log(f(1)+"ID: "+t.id),l.log(f(2)+"Type: "+t.type),l.log(f(2)+"Manager: "+t.managerid),l.log(f(2)+"Element: ",t.el),l.log(f(2)+"Settings: "),i.each(i.keys(t.settings),(function(e){var n="",r=t.bindings[e];r&&r.observes&&r.observes.length>0&&(n=" [bound: "+JSON.stringify(r.template)+", resolved: "+JSON.stringify(r.computeValue(!0))+"]");l.log(f(3)+e+": "+JSON.stringify(t.settings[e])+n)})),t.warnings.length>0&&(l.log(f(2)+"WARNINGS: "),i.each(t.warnings,(function(t){l.log(f(3)+t)})))}))},printSearchManagerInfo:function(){var t=this.getInfoForManagers();l.log("Search Managers:"),i.each(t,(function(t){if(l.log(f(1)+"ID: "+t.id),l.log(f(2)+"Type: "+t.type),t.attributes){l.log(f(2)+"Attributes: ");var e=c.SearchSettingsModel.ALLOWED_ATTRIBUTES;i.each(t.attributes,(function(t,n){i.contains(e,n)||l.log(f(3)+n+": "+JSON.stringify(t))}))}t.settings&&t.settings.attributes&&(l.log(f(2)+"Search Properties: "),i.each(t.settings.attributes,(function(e,n){var r="",i=t.bindings[n];i&&i.observes&&i.observes.length>0&&(r=" [bound: "+JSON.stringify(i.template)+", resolved: "+JSON.stringify(i.computeValue(!0))+"]");l.log(f(3)+n+": "+JSON.stringify(e)+r)}))),l.log(f(2)+"Views bound to manager: "),i.each(t.viewIds,(function(t){l.log(f(3)+t)})),t.warnings.length>0&&(l.log(f(2)+"WARNINGS: "),i.each(t.warnings,(function(t){l.log(f(3)+t)})))}))},printTokenNamespaceInfo:function(){var t=this.getInfoForNamespaces();l.log("Token Namespaces:"),i.each(t,(function(t){l.log(f(1)+"ID: "+t.id),l.log(f(2)+"Type: "+t.type),l.log(f(2)+"Tokens: "),i.each(t.tokens,(function(t){l.log(f(3)+t.name+": "),l.log(f(4)+"value: "+JSON.stringify(t.value)),l.log(f(4)+"listeners: "+t.listenerIds.join(", "))}))}))},printComponentInfo:function(){this.printViewInfo(),this.printSearchManagerInfo(),this.printTokenNamespaceInfo()},printWarnings:function(){var t=this.getDebugData();l.log("WARNINGS:"),i.each(t,(function(t){t.warnings.length>0&&(l.log(f(1),"ID: "+t.id+": "),i.each(t.warnings,(function(t){l.log(f(2)+t)})))}))},_getInfoForComponents:function(t){var e=this.getDebugData();return void 0!==t?i.where(e,{category:p[t]}):e},getInfoForViews:function(){return this._getInfoForComponents("VIEW")},getInfoForManagers:function(){return this._getInfoForComponents("MANAGER")},getInfoForNamespaces:function(){return this._getInfoForComponents("NAMESPACE")},help:function(){l.log("Splunkjs Debugger Commands"),l.log(f(1)+"- printWarnings(): Prints all warnings to the console."),l.log(f(1)+"- printComponentInfo(): Prints all debug info and warnings to the console by component."),l.log(f(1)+"- printViewInfo(): Prints debug info for all Splunk views."),l.log(f(1)+"- printSearchManagerInfo(): Prints debug info for all Splunk search managers."),l.log(f(1)+"- printTokenNamespaceInfo(): Prints debug info for Splunk token namespaces."),l.log(f(1)+"- getDebugData(): Returns all debug metadata for components and namespaces."),l.log(f(1)+"- getInfoForViews(): Returns debug metadata for all Splunk views."),l.log(f(1)+"- getInfoForManagers(): Returns debug metadata for all Splunk managers."),l.log(f(1)+"- getInfoForNamespaces(): Returns debug metadata for all Splunk token namespaces.")}})}.call(e,n,e,t))||(t.exports=r)},"splunkjs/mvc/messages":function(t,e,n){var r;void 0===(r=function(t,e,r){var i=n("require/underscore"),o=(n("splunkjs/mvc/mvc"),n("util/console"));n("splunkjs/css/messages.css");var s={cancelled:{icon:"info-circle",level:"info",message:i("Search was cancelled").t()},refresh:{icon:"info-circle",level:"info",message:i("Search is refreshing...").t()},empty:{icon:"blank",level:"info",message:""},"unresolved-search":{icon:"warning-sign",level:"error",message:i("Search is waiting for input...").t()},"unresolved-tokens":{icon:"warning-sign",level:"error",message:i("Search was not dispatched. To adjust search dispatch settings, edit the dashboard XML.").t()},"no-events":{icon:"info-circle",level:"info",message:i("Search did not return any events.").t()},"no-results":{icon:"blank",level:"info",message:i("No results found.").t()},"no-search":{icon:"info-circle",level:"info",message:i("No search set.").t()},"no-stats":{icon:"warning-sign",level:"error",message:i("Search isn't generating any statistical results.").t()},"not-started":{icon:"info-circle",level:"info",message:i("No search started.").t()},waiting:{icon:"blank",level:"info",message:i("Waiting for data...").t()},"waiting-queued":{icon:"info-circle",level:"info",message:i("Waiting for queued job to start.").t()},"waiting-preparing":{icon:"info-circle",level:"info",message:i("Waiting for search to start: job is preparing.").t()}},a={FATAL:1,ERROR:2,WARN:3,INFO:4,DEBUG:5},u={messageTemplate:'<div class="splunk-message-container <%- compact ? \'compact\' : \'\' %>"> <div class="alert alert-<%= level %>"> <i class="icon-alert"></i> <%- message %> </div> </div>',messages:s,render:function(t,e){i.isString(t)&&(t=this.messages[t]),t?(t.compact=!!t.compact,e.jquery?e.html(i.template(this.messageTemplate,t)):e.innerHTML=i.template(this.messageTemplate,t)):o.log("Warning: Unknown message: "+t)},resolve:function(t){return this.messages[t]},_extractErrorMessage:function(t,e,n,r){if(t){var o=t[e||"content"];if(o&&o.isZombie)return i("The search job terminated unexpectedly.").t();if(o&&o.messages&&o.messages.length){var s=i(o.messages).filter((function(t){return("ERROR"===t.type||"FATAL"===t.type)&&!!t.text}));if(s.length){var u=i.chain(s).sortBy((function(t){return a[t.type]||99})).pluck("text").unique().value();return n?u.join("; "):u[0]}}}return r},getSearchErrorMessage:function(t){return u._extractErrorMessage(t,"data",!0)},getSearchFailureMessage:function(t){return u._extractErrorMessage(t,"content",!1,i("The search failed").t())}};return u}.call(e,n,e,t))||(t.exports=r)},"splunkjs/mvc/mvc":function(t,e,n){var r;void 0===(r=function(t,e,r){var i=n("shim/jquery"),o=n("require/underscore"),s=n("require/backbone"),a=n("util/console"),u=(n("splunkjs/mvc/protections"),n("splunkjs/mvc/registry")),c=n("splunkjs/generated/urlresolver"),l=n("shim/splunkjs"),f=n("stubs/splunk.config"),h=n("splunkjs/mvc/tokenescapestring"),p=n("splunkjs/mvc/tokensafestring"),d=n("splunkjs/mvc/tokenutils"),g=n("splunkjs/mvc/utils"),v=n("shim/splunk.util");n("shim/splunk.logger"),n("util/ajax_logging");var m=null,y=function(t){this.Components=new u,this.initialize.apply(this,arguments)};o.extend(y.prototype,s.Events,{started:!1,initialize:function(){},drilldown:function(t,e){var n=i.param(e||{});n&&(t=t+"?"+n),this.setLocationHref(t)},setLocationHref:function(t){window.location.href=t},loadDebugger:function(t){var e=this;Promise.resolve().then((function(){var r=[n("splunkjs/mvc/debugger")];(function(n){e.Debugger=new n({registry:e.Components}),e.trigger("debugger:ready",e),t&&t(e.Debugger)}).apply(null,r)})).catch(n.oe)},loadDrilldown:function(t){var e=window.location.search.substr(1)||"",n=this.deParamArgs(e,n),r=this;o.each(n,(function(t,e){if(r.Components.has(e)){var n=r.Components.getInstance(e);n.settings?n.settings.set(t):n.set?n.set(t):a.log("Could not find a setter for '"+e+"'",t)}}))},deParamArgs:function(t,e){return o.extend({},v.queryStringToProp(t),e)},reverse:function(t,e,n){return c.reverse(t,e,n)},_setSessionKey:function(t){m=t},createService:function(t){t=t||{},m&&(t.sessionKey=m);var e=t.http||new l.ProxyHttp(f.SPLUNKD_PATH);return t.scheme=t.scheme||f.SCHEME,t.host=t.host||f.HOST,t.port=t.port||f.PORT,t.version=t.version||"5.0",t.app=t.app||g.getPageInfo().app||"-",t.owner=t.owner||f.USERNAME,new l.Service(e,t)},tokenSafe:function(t){return new p(t)},tokenEscape:function(t){return new h(t)},setFilter:function(t,e){d.setFilter(t,e,b.Components)},getFilter:function(t){return d.getFilter(t,b.Components)}}),window.splunkjs||(window.splunkjs={});var b=new y;window.splunkjs.mvc=b;return b}.call(e,n,e,t))||(t.exports=r)},"splunkjs/mvc/protections":function(t,e,n){var r;void 0===(r=function(t,e,r){var i=n("shim/splunk.util");return{enableCSRFProtection:function(t){var e=i.getFormKey();t.ajaxPrefilter((function(t,n,r){t.hasOwnProperty("crossDomain")||(t.crossDomain=!1);var i=t.type||"";/^(GET|HEAD|OPTIONS|TRACE)$/.test(i)||e&&r.setRequestHeader("X-Splunk-Form-Key",e)}))},enableUnauthorizationRedirection:function(t,e,n){t(document).bind("ajaxError",(function(t,r,i,o){var s=window.location.pathname;if(401===r.status&&-1===s.indexOf(n)){var a=encodeURIComponent(s+document.location.search);document.location=e+"?return_to="+a}}))}}}.call(e,n,e,t))||(t.exports=r)},"splunkjs/mvc/registry":function(t,e,n){var r;void 0===(r=function(t,e,r){var i=n("require/underscore"),o=n("require/backbone"),s=n("util/console"),a=n("splunkjs/mvc/basetokenmodel");return o.Model.extend({initialize:function(){this.registerInstance("default",this._createTokenModel("default"))},createError:function(t){return t},registerInstance:function(t,e,n){if(n=n||{},!t)throw new Error("You must pass in an ID when registering an instance.");if(this.has(t)&&!n.replace)throw new Error(this.createError("Already have instance with id: "+t));return this.set(t,e,n),e},revokeInstance:function(t,e){this.unset(t,e)},hasInstance:function(t){return this.has(t)},getInstance:function(t,e){return e=e||{},this.has(t)||(e.create?this.registerInstance(t,this._createTokenModel(t)):s.error(this.createError("No instance with id: "+t))),this.get(t)},getInstances:function(){return i.values(this.attributes)},getInstanceNames:function(){return i.keys(this.attributes)},_createTokenModel:function(t){var e=new a;return e.id=t,e}})}.call(e,n,e,t))||(t.exports=r)},"splunkjs/mvc/searchmodel":function(t,e,n){var r;void 0===(r=function(t,e,r){n("require/underscore");var i=n("splunkjs/mvc/tokenawaremodel"),o=n("splunkjs/mvc/tokensafestring"),s=n("shim/splunk.util"),a=i.extend({set:function(t,e,n){var r;return null==t?this:("object"==typeof t?(r=t,n=e):(r={})[t]=e,n&&n.qualified&&r.search&&(r.search instanceof o?r.search=new o(s.stripLeadingSearchCommand(r.search.value)):r.search=s.stripLeadingSearchCommand(r.search)),i.prototype.set.call(this,r,n))},get:function(t,e){var n=i.prototype.get.apply(this,arguments);return"search"===t&&e&&e.qualified&&n&&(n=s.addLeadingSearchCommand(n)),n},resolve:function(t){return this.get("search",t)}});return a.ALLOWED_ATTRIBUTES=["adhoc_search_level","app","auto_cancel","auto_finalize_ec","auto_pause","buckets","earliest_time","enable_lookups","exec_mode","force_bundle_replication","indexedRealtime","indexedRealtimeOffset","latest_time","label","lookups","max_count","max_time","namespace","now","owner","preview","reduce_freq","reload_macros","remote_server_list","required_field_list","rf","rt_backfill","rt_blocking","rt_indexfilter","rt_maxblocksecs","rt_queue_size","search","search_listener","search_mode","spawn_process","status_buckets","sync_bundle_replication","time_format","timeout","ttl","sample_ratio","provenance","postprocess_searches","check_risky_command"],{SearchSettingsModel:a,SearchJob:a,SearchQuery:a}}.call(e,n,e,t))||(t.exports=r)},"splunkjs/mvc/settings":function(t,e,n){var r;void 0===(r=function(t,e,r){return n("splunkjs/mvc/tokenawaremodel").extend({sync:function(){return!1}})}.call(e,n,e,t))||(t.exports=r)},"splunkjs/mvc/tokenawaremodel":function(t,e,n){var r;void 0===(r=function(t,e,r){var i=n("require/underscore"),o=n("splunkjs/mvc"),s=n("splunkjs/mvc/tokenescapestring"),a=n("splunkjs/mvc/tokensafestring"),u=(n("util/console"),n("splunkjs/mvc/tokenutils")),c=n("models/Base"),l=c.extend({applyTokensByDefault:!1,retrieveTokensByDefault:!1,constructor:function(t,e){t=t||{},e=e||{},this._tokenNamespace=e.tokenNamespace||void 0,this._retainUnmatchedTokens=e.retainUnmatchedTokens,this._tokenEscaper=e.tokenEscaper||void 0,this._allowNoEscape=e.allowNoEscape,this._tokenRegistry=e._tokenRegistry||o.Components,this._applyTokensByDefault=e.hasOwnProperty("applyTokensByDefault")?e.applyTokensByDefault:this.applyTokensByDefault,this._retrieveTokensByDefault=e.hasOwnProperty("retrieveTokensByDefault")?e.retrieveTokensByDefault:this.retrieveTokensByDefault,c.prototype.constructor.call(this,{}),this._templates=new c({}),this._bindings={},this._pushed_properties=[],this.listenTo(this._templates,"change",(function(t,e){this._updateBindingsForProperties(t.changed,e)})),this.set(t,e)},_updateBindingsForProperties:function(t,e){var n=this;i.each(t,(function(t,r){var o;if(void 0===t)o=void 0;else{var s=u.getTokens(t,{tokenNamespace:n._tokenNamespace}),a=[];i.each(s,(function(t){a.push({namespace:t.namespace,name:t.name}),i.each(t.filters,(function(t){a.push({namespace:u._FILTER_NAMESPACE,name:t.name})}))})),o={observes:a,template:t,computeValue:function(e){if(u.isToken(t)){var r=s[0],o=n._tokenRegistry.getInstance(r.namespace,{create:!0}).get(r.name);if(!i.isString(o)&&void 0!==o)return o}return i.all(s,(function(t){var e=n._tokenRegistry.getInstance(t.namespace,{create:!0}).get(t.name),r=i.all(t.filters,(function(t){return void 0!==u.getFilter(t.name,n._tokenRegistry)}));return void 0!==e&&r}))||n._retainUnmatchedTokens||e?u.replaceTokens(t,n._tokenRegistry,{tokenNamespace:n._tokenNamespace,escaper:n._tokenEscaper,allowNoEscape:n._allowNoEscape}):void 0}}}n._setBinding(r,o,e)}))},_setBinding:function(t,e,n){var r=this;this._disposeBindingListeners(this._bindings[t]),this._bindings[t]=e,void 0!==e&&(e._listeners=[],i.each(e.observes,(function(n){var i=r._tokenRegistry.getInstance(n.namespace,{create:!0}),o=n.name,s=function(){r._pullPropertyValue(t)};r.listenTo(i,"change:"+o,s),s.dispose=function(){r.stopListening(i,"change:"+o,s)},e._listeners.push(s)})),this._isPushEnabled(t)&&this._configureBindingForPush(t),this._isPushEnabled(t)&&void 0!==this.get(t)?this._pushPropertyValue(t,n):this._pullPropertyValue(t,n))},_pullPropertyValue:function(t,e){var n=this._bindings[t].computeValue();(e=e||{}).hasOwnProperty("_silent")&&(e.silent=e._silent,delete e._silent),c.prototype.set.call(this,t,n,e)},enablePush:function(t){this._isPushEnabled(t)||(this._pushed_properties.push(t),void 0!==this._bindings[t]&&this._configureBindingForPush(t))},_isPushEnabled:function(t){return i.contains(this._pushed_properties,t)},_configureBindingForPush:function(t){var e=this._bindings[t];if(u.isToken(e.template)){var n=this,r=function(e,r,i){n._pushPropertyValue(t)};this.listenTo(this,"change:"+t,r),r.dispose=function(){n.stopListening(n,"change:"+t,r)},e._listeners.push(r)}},_pushPropertyValue:function(t,e){var n=this._bindings[t],r=this.get(t),i=n.observes[0],o=this._tokenRegistry.getInstance(i.namespace,{create:!0}),s=i.name;(e=e||{}).hasOwnProperty("_silent")&&(e.silent=e._silent,delete e._silent),o.set(s,r,e)},set:function(t,e,n){var r,o=this;"object"==typeof t?(r=t,n=e):(r={})[t]=e,(n=n||{}).hasOwnProperty("tokens")||(n.tokens=this._applyTokensByDefault);var u={},l=[],f={},h=function(t,e){u[t]=e},p=function(t,e){o._isPushEnabled(t)||l.push(t),f[t]=e};i.each(r,(function(t,e){t instanceof a?h(e,t.value):t instanceof s?p(e,t.value):i.isString(t)&&n.tokens?h(e,t):p(e,t)}));var d=i.clone(n);n.hasOwnProperty("silent")&&(d._silent=n.silent,delete d.silent),i.isEmpty(u)||this._templates.set(u,d),i.isEmpty(l)||i.each(l,(function(t){o._templates&&o._templates.has(t)&&o._templates.unset(t,d)})),i.isEmpty(f)||c.prototype.set.call(this,f,n)},get:function(t,e){if(e||(e={}),e.hasOwnProperty("tokens")||(e.tokens=this._retrieveTokensByDefault),e.tokens)return this._templates.has(t)?this._templates.get(t):u.quoteAsTokenString(c.prototype.get.call(this,t));var n=c.prototype.get.call(this,t);return null==n&&e.retainUnmatchedTokens&&this._templates.has(t)&&(n=u.replaceTokens(this._templates.get(t),this._tokenRegistry,{tokenNamespace:this._tokenNamespace,escaper:this._tokenEscaper,allowNoEscape:this._allowNoEscape})),n},extractWithPrefix:function(t){var e=this,n={};return i.each(i.keys(this.attributes),(function(r){if(0===r.indexOf(t)){var i,s=r.substring(t.length),a=e.get(r,{tokens:!0});i=void 0!==a?o.tokenSafe(a):e.get(r),n[s]=i}})),n},toJSON:function(t){if(t||(t={}),t.hasOwnProperty("tokens")||(t.tokens=this._retrieveTokensByDefault),t.tokens){var e=this,n={};return i.each(this.attributes,(function(t,r){n[r]=e.get(r,{tokens:!0})})),n=i.extend(n,this._templates.toJSON())}return c.prototype.toJSON.apply(this,arguments)},dispose:function(){this._templates.deepOff(),i.each(this._bindings,this._disposeBindingListeners),this._bindings={},this.deepOff()},_disposeBindingListeners:function(t){t&&(i.each(t._listeners,(function(t){t.dispose()})),t._listeners=[])}});return l._createReportModel=function(t,e){return e=e||{},new l(t||{},i.extend({applyTokensByDefault:!0,retainUnmatchedTokens:!0},e))},l}.call(e,n,e,t))||(t.exports=r)},"splunkjs/mvc/tokenescapestring":function(t,e,n){var r;void 0===(r=function(t,e,n){return function(t){this.value=t}}.call(e,n,e,t))||(t.exports=r)},"splunkjs/mvc/tokensafestring":function(t,e,n){var r;void 0===(r=function(t,e,n){return function(t){this.value=t}}.call(e,n,e,t))||(t.exports=r)},"splunkjs/mvc/tokenutils":function(t,e,n){var r;void 0===(r=function(t,e,r){var i=n("require/underscore"),o=n("splunkjs/mvc/registry"),s={search:function(t){return JSON.stringify(String(t))},url:function(t){return encodeURIComponent(String(t))},html:function(t){return i.escape(String(t))},noEscape:function(t){return t}};i.extend(s,{h:s.html,u:s.url,s:s.search,n:s.noEscape});var a=new RegExp(/\$/.source+/(\w+:)?/.source+/([^$|:]+?)(\|[|\w]+)?/.source+/\$/.source+"|"+/\$\$/.source,"g"),u=/^[suh]{1,3}$/,c=function(t){var e="";return t.global&&(e+="g"),t.multiline&&(e+="m"),t.ignoreCase&&(e+="i"),new RegExp(t.source,e)},l={_FILTER_NAMESPACE:"__filters",getTokens:function(t,e){for(var n=(e=e||{}).tokenNamespace||"default",r=[],o=c(a);;){var s=o.exec(t);if(e._isToken)return s&&0===s.index&&s[0].length===t.length&&s[0].length>2;if(!s)break;var u=s[1],f=s[2],h=s[3];if(u||f){var p;if(u=u?u.substring(0,u.length-1):n,h){var d=l._parseFilterChain(h);p=i.map(d,(function(t){return{name:t}}))}else p=[];r.push({namespace:u,name:f,filters:p})}}return r},getTokenNames:function(t){var e=l.getTokens(t),n=[];return i.each(e,(function(t){"default"===t.namespace&&n.push(t.name)})),n},replaceTokens:function(t,e,n){var r,o=(r=i.isFunction(n)?{escaper:n}:n||{}).escaper,u=r.tokenNamespace||"default";return t.replace(c(a),(function(t,n,a,c){if(!n&&!a)return"$";n=n?n.substring(0,n.length-1):u;var f=e.get(n);if(void 0===f)return t;var h=f.get(a);if(void 0===h)return t;if(c){var p=l._parseFilterChain(c,o,e),d=i.map(p,(function(t){return l.getFilter(t,e)}));if(i.compact(d).length!==d.length)return t;i.each(d,(function(t){t&&(h=t(h),t===s.noEscape&&!1!==r.allowNoEscape&&(o=null))}))}return i.isFunction(o)&&(h=o(h)),h}))},_parseFilterChain:function(t,e,n){var r=t.substring(1).split("|");return 1===r.length&&u.test(r[0])&&(r=r[0].split(""),e&&(r=i.filter(r,(function(t){return l.getFilter(t,n)!==e})))),r},replaceTokenNames:function(t,e,n,r){var s=new o;return s.getInstance("default",{create:!0}).set(e),r&&i(r).each((function(t,e){l.setFilter(e,t,s)})),l.replaceTokens(t,s,n)},hasToken:function(t){return l.getTokens(t).length>0},hasTokenName:function(t){return i.some(l.getTokens(t),(function(t){return"default"===t.namespace}))},isToken:function(t){return l.getTokens(t,{_isToken:!0})},isTokenName:function(t){return l.isToken(t)&&"default"===l.getTokens(t)[0].namespace},getTokenName:function(t){return l.isTokenName(t)&&l.getTokenNames(t)[0]},quoteAsTokenString:function(t){return i.isString(t)?t.replace(/\$/g,(function(t){return"$$"})):t},setFilter:function(t,e,n){if(l.getEscaper(t)||u.test(t))throw new Error('Cannot register new filter with reserved name "'+t+'".');n.getInstance(l._FILTER_NAMESPACE,{create:!0}).set(t,e)},getFilter:function(t,e){var n=l.getEscaper(t);return n||e.getInstance(l._FILTER_NAMESPACE,{create:!0}).get(t)},getFilters:function(t){return t.getInstance(l._FILTER_NAMESPACE,{create:!0}).toJSON()},getEscaper:function(t){return s[t]},isTokenDefined:function(t,e){return t.getInstance(e.namespace).has(e.name)},listenToTokenDependencyChange:function(t,e,n,r){if(t){var o=l.getTokenDeps(t,"submitted");i(o.all).each((function(t){var o=e.get(t.namespace),s="change:"+t.name,a=i.wrap(n,(function(e,n,i){var o=!!n.previous(t.name);(!(i=!!i)||!o&&i)&&e.call(r)}));o.on(s,a)}),r)}},stopListeningToTokenDependencyChange:function(t,e){if(t){var n=l.getTokenDeps(t,"submitted");i(n.all).each((function(t){var n=e.get(t.namespace),r="change:"+t.name;n.off(r)}))}},getTokenDeps:function(t,e){var n={};if(e=e||"submitted",t){var r=t.depends?l.getTokens(t.depends,{tokenNamespace:e}):[],i=t.rejects?l.getTokens(t.rejects,{tokenNamespace:e}):[],o=r.concat(i);n={required:r,rejected:i,all:o}}return n},tokenDependenciesMet:function(t,e){var n=i.partial(l.isTokenDefined,e),r=l.getTokenDeps(t,"submitted");return i(r.required).all(n)&&!i(r.rejected).any(n)}};return l}.call(e,n,e,t))||(t.exports=r)},"splunkjs/mvc/utils":function(t,e,n){var r;void 0===(r=function(t,e,r){var i=n("shim/jquery"),o=n("require/underscore"),s=n("util/console"),a=n("stubs/splunk.config"),u=n("splunkjs/mvc/tokenutils"),c=function(t){t=t||{},this.source=t.source,this.prefix=t.prefix||"",this.dest=t.dest,this.destSetter=t.save||t.saveDest?"save":"set",this.sourceSetter=t.save||t.saveSource?"save":"set",this.debug=t.debug,this.aliasMap=t.alias||{},this.tokens=void 0===t.tokens||t.tokens,this.include(t.include),this.exclude(t.exclude),!0===t.auto?(this.auto("push"),this.auto("pull")):o.isString(t.auto)&&this.auto(t.auto)};o.extend(c.prototype,{include:function(t){return this.includes=o.isArray(t)?o.object(t,o.map(t,(function(){return!0}))):t,this},exclude:function(t){return this.excludes=o.isArray(t)?o.object(t,o.map(t,(function(){return!0}))):t,this},auto:function(t){return"push"===t?(this.source.on("change",this.push,this),this.push()):"pull"==t&&(this.dest.on("change",this.pull,this),this.pull()),this},push:function(t,e){var n={tokens:this.tokens},r=e&&e.unset?t.changed:this.source.toJSON(n),i={},a=this.aliasMap||{},u=this.includes,c=this.excludes||{},l=this.prefix,f=this.dest;o(r).each((function(t,e){if((void 0===u||u[e])&&!c[e]){var r=a[e],o=void 0!==r?r:l+e;f.get(o,n)!==t&&(i[o]=t)}})),o(i).isEmpty()||(this.debug&&s.log("PUSH",i,o.isObject(e)?o.pick(e,["unset"]):void 0),this.dest[this.destSetter](i,o.extend(n,o.isObject(e)?o.pick(e,["unset"]):void 0)))},pull:function(t,e){var n={tokens:this.tokens},r=e&&e.unset?t.changed:this.dest.toJSON(n),i={},a=o.invert(this.aliasMap||{}),u=this.includes,c=this.excludes||{},l=this.prefix,f=this.source;o(r).each((function(t,e){if(a[e])i[a[e]]=t;else if(e.substring(0,l.length)==l){var r=e.substring(l.length);void 0!==u&&!u[r]||c[r]||f.get(r,n)!==t&&(i[r]=t)}})),o(i).isEmpty()||(this.debug&&s.log("PULL",i,o.isObject(e)?o.pick(e,["unset"]):void 0),this.source[this.sourceSetter](i,o.extend(n,o.isObject(e)?o.pick(e,["unset"]):void 0)))},destroy:function(){this.source.off(null,null,this),this.dest.off(null,null,this)}});var l={getPageInfo:function(){return a.INDEPENDENT_MODE?{root:void 0,locale:a.LOCALE,app:a.APP,page:void 0}:l._getUrlInfo(window.location.pathname)},_getUrlInfo:o.memoize((function(t){var e,n,r,i=t.substring(1).split("/"),s=o.indexOf(i,"app",1),a=o.indexOf(i,"manager",1);return s>1?(n=o.first(i,s-1).join("/"),e=i[s-1],r=o.rest(i,s+1)):a>1?(n=o.first(i,a-1).join("/"),e=i[a-1],r=o.rest(i,a+1)):(e=i[0],r=o.rest(i,2)),{root:n,locale:e,app:r[0],page:r[1]}})),getCurrentApp:function(){return l.getPageInfo().app},replaceTokens:function(t,e,n){return u.replaceTokenNames(t,e,n)},getTokenName:function(t){return u.getTokenName(t)},discoverReplacementTokens:function(t){return u.getTokenNames(t)},isToken:function(t){return u.isTokenName(t)},hasToken:function(t){return u.hasTokenName(t)},quoteAsTokenString:function(t){return u.quoteAsTokenString(t)},syncModels:function(t,e,n){var r=n;return 1==arguments.length?r=t:(r=r||{},o.extend(r,{source:t,dest:e})),new c(r)},redirect:function(t,e,n,r){var a="(?:javascript|jscript|livescript|vbscript|data|about|mocha):";r&&(a="^"+a);var u,c=new RegExp(a,"i");(u=t,c.test(function(t){var e=i.trim(t||"");try{e=decodeURIComponent(e)}catch(t){s.log("Caught an exception: "+t),e=o.unescape(e)}return e.replace(/\s/gim,"")}(u)))?s.log("Invalid URL format: "+t):e?window.open(t,"_blank"):n?window.open(t,n):window.location=t}};return l}.call(e,n,e,t))||(t.exports=r)},"splunkjs/splunk":function(t,e,n){(function(t,e){var n,r,i;(i=function(t,e){var n=i.resolve(t,e||"/"),r=i.modules[n];if(!r)throw new Error("Failed to resolve module "+t+", tried "+n);return r._cached?r._cached:r()}).paths=[],i.modules={},i.extensions=[".js",".coffee"],i._core={assert:!0,events:!0,fs:!0,path:!0,vm:!0},i.resolve=function(t,e){if(e||(e="/"),i._core[t])return t;var n=i.modules.path(),r=(e=n.resolve("/",e))||"/";if(t.match(/^(?:\.\.?\/|\/)/)){var o=a(n.resolve(r,t))||u(n.resolve(r,t));if(o)return o}var s=function(t,e){for(var r=function(t){var e;e="/"===t?[""]:n.normalize(t).split("/");for(var r=[],i=e.length-1;i>=0;i--)if("node_modules"!==e[i]){var o=e.slice(0,i+1).join("/")+"/node_modules";r.push(o)}return r}(e),i=0;i<r.length;i++){var o=r[i];if(c=a(o+"/"+t))return c;var s=u(o+"/"+t);if(s)return s}var c;if(c=a(t))return c}(t,r);if(s)return s;throw new Error("Cannot find module '"+t+"'");function a(t){if(i.modules[t])return t;for(var e=0;e<i.extensions.length;e++){var n=i.extensions[e];if(i.modules[t+n])return t+n}}function u(t){var e=(t=t.replace(/\/+$/,""))+"/package.json";if(i.modules[e]){var r=i.modules[e](),o=r.browserify;if("object"==typeof o&&o.main){if(s=a(n.resolve(t,o.main)))return s}else if("string"==typeof o){if(s=a(n.resolve(t,o)))return s}else if(r.main){var s;if(s=a(n.resolve(t,r.main)))return s}}return a(t+"/index")}},i.alias=function(t,e){var n=i.modules.path(),r=null;try{r=i.resolve(t+"/package.json","/")}catch(e){r=i.resolve(t,"/")}for(var o=n.dirname(r),s=(Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e})(i.modules),a=0;a<s.length;a++){var u=s[a];if(u.slice(0,o.length+1)===o+"/"){var c=u.slice(o.length);i.modules[e+c]=i.modules[o+c]}else u===o&&(i.modules[e]=i.modules[o])}},i.define=function(t,e){var n=i._core[t]?"":i.modules.path().dirname(t),r=function(t){return i(t,n)};r.resolve=function(t){return i.resolve(t,n)},r.modules=i.modules,r.define=i.define;var o={exports:{}};i.modules[t]=function(){return i.modules[t]._cached=o.exports,e.call(o.exports,r,o,o.exports,n,t),i.modules[t]._cached=o.exports,o.exports}},void 0===t&&(t={}),t.nextTick||(t.nextTick=(n=[],(r="undefined"!=typeof window&&window.postMessage&&window.addEventListener)&&window.addEventListener("message",(function(t){t.source===window&&"browserify-tick"===t.data&&(t.stopPropagation(),n.length>0&&n.shift()())}),!0),function(t){r?(n.push(t),window.postMessage("browserify-tick","*")):setTimeout(t,0)})),t.title||(t.title="browser"),t.binding||(t.binding=function(t){if("evals"===t)return i("vm");throw new Error("No such module")}),t.cwd||(t.cwd=function(){return"."}),i.define("path",(function(e,n,r,i,o){function s(t,e){for(var n=[],r=0;r<t.length;r++)e(t[r],r,t)&&n.push(t[r]);return n}function a(t,e){for(var n=0,r=t.length;r>=0;r--){var i=t[r];"."==i?t.splice(r,1):".."===i?(t.splice(r,1),n++):n&&(t.splice(r,1),n--)}if(e)for(;n--;n)t.unshift("..");return t}var u=/^(.+\/(?!$)|\/)?((?:.+?)?(\.[^.]*)?)$/;r.resolve=function(){for(var e="",n=!1,r=arguments.length;r>=-1&&!n;r--){var i=r>=0?arguments[r]:t.cwd();"string"==typeof i&&i&&(e=i+"/"+e,n="/"===i.charAt(0))}return(n?"/":"")+(e=a(s(e.split("/"),(function(t){return!!t})),!n).join("/"))||"."},r.normalize=function(t){var e="/"===t.charAt(0),n="/"===t.slice(-1);return(t=a(s(t.split("/"),(function(t){return!!t})),!e).join("/"))||e||(t="."),t&&n&&(t+="/"),(e?"/":"")+t},r.join=function(){var t=Array.prototype.slice.call(arguments,0);return r.normalize(s(t,(function(t,e){return t&&"string"==typeof t})).join("/"))},r.dirname=function(t){var e=u.exec(t)[1]||"";return e?1===e.length?e:e.substring(0,e.length-1):"."},r.basename=function(t,e){var n=u.exec(t)[2]||"";return e&&n.substr(-1*e.length)===e&&(n=n.substr(0,n.length-e.length)),n},r.extname=function(t){return u.exec(t)[3]||""}})),i.define("/package.json",(function(t,e,n,r,i){e.exports={main:"index.js"}})),i.define("/index.js",(function(e,n,r,i,o){!function(){var i=r||this;t.env=t.env||{},n.exports=i={Logger:e("./lib/log").Logger,Context:e("./lib/context"),Service:e("./lib/service"),Http:e("./lib/http"),Utils:e("./lib/utils"),Async:e("./lib/async"),Paths:e("./lib/paths").Paths,Class:e("./lib/jquery.class").Class,ModularInputs:e("./lib/modularinputs")},"undefined"==typeof window&&(i.NodeHttp=e("./lib/platform/node/node_http").NodeHttp)}()})),i.define("/lib/log.js",(function(e,n,r,i,o){
|
|
|
/*!*/
|
|
|
!function(){"use strict";var n,i,o,s,a=e("./utils"),u={ALL:4,INFO:3,WARN:2,ERROR:1,NONE:0},c=function(e){a.isString(e)&&u.hasOwnProperty(e)?t.env.LOG_LEVEL=u[e]:!isNaN(parseInt(e,10))&&a.keyOf(parseInt(e,10),u)?t.env.LOG_LEVEL=e:t.env.LOG_LEVEL=u.ERROR};if(t.env.LOG_LEVEL?c(t.env.LOG_LEVEL):t.env.LOG_LEVEL=u.ERROR,n=i=o=s=function(){},"undefined"!=typeof console){var l=function(t){return function(e){try{console[t].apply(console,arguments)}catch(n){console[t](e)}}};console.log&&(n=l("log")),console.error&&(o=l("error")),console.warn&&(i=l("warn")),console.info&&(s=l("info"))}r.Logger={log:function(){t.env.LOG_LEVEL>=u.ALL&&n.apply(null,arguments)},error:function(){t.env.LOG_LEVEL>=u.ERROR&&o.apply(null,arguments)},warn:function(){t.env.LOG_LEVEL>=u.WARN&&i.apply(null,arguments)},info:function(){t.env.LOG_LEVEL>=u.INFO&&s.apply(null,arguments)},printMessages:function(t){t=t||[];for(var e=0;e<t.length;e++){var n=t[e],r=n.type,i="[SPLUNKD] "+n.text;switch(r){case"HTTP":case"FATAL":case"ERROR":this.error(i);break;case"WARN":this.warn(i);break;case"INFO":this.info(i);break;case"HTTP":this.error(i);break;default:this.info(i)}}},setLevel:function(t){c.apply(this,arguments)},
|
|
|
/*!*/
|
|
|
levels:u}}()})),i.define("/lib/utils.js",(function(t,e,n,r,i){
|
|
|
/*!*/
|
|
|
!function(){"use strict";var e=t("fs"),r=t("path"),i=n||this;i.bind=function(t,e){return function(){return e.apply(t,arguments)}},i.trim=function(t){return t=t||"",String.prototype.trim?String.prototype.trim.call(t):t.replace(/^\s\s*/,"").replace(/\s\s*$/,"")},i.indexOf=function(t,e){for(var n=0;n<t.length;n++)if(t[n]===e)return n;return-1},i.contains=function(t,e){return t=t||[],i.indexOf(t,e)>=0},i.startsWith=function(t,e){var n=t.match("^"+e);return n&&n.length>0&&n[0]===e},i.endsWith=function(t,e){var n=t.match(e+"$");return n&&n.length>0&&n[0]===e};var o=Object.prototype.toString;i.toArray=function(t){return Array.prototype.slice.call(t)},i.isArray=Array.isArray||function(t){return"[object Array]"===o.call(t)},i.isFunction=function(t){return!!(t&&t.constructor&&t.call&&t.apply)},i.isNumber=function(t){return!!(0===t||t&&t.toExponential&&t.toFixed)},i.isString=function(t){return!!(""===t||t&&t.charCodeAt&&t.substr)},i.isObject=function(t){return t===Object(t)},i.isEmpty=function(t){if(i.isArray(t)||i.isString(t))return 0===t.length;for(var e in t)if(this.hasOwnProperty.call(t,e))return!1;return!0},i.forEach=function(t,e,n){if(null!==t)if(Array.prototype.forEach&&t.forEach===Array.prototype.forEach)t.forEach(e,n);else if(t.length===+t.length){for(var r=0,i=t.length;r<i;r++)if(r in t&&e.call(n,t[r],r,t)==={})return}else for(var o in t)if(t.hasOwnProperty(o)&&e.call(n,t[o],o,t)==={})return},i.extend=function(t){return i.forEach(Array.prototype.slice.call(arguments,1),(function(e){for(var n in e)t[n]=e[n]})),t},i.clone=function(t){return i.isObject(t)?i.isArray(t)?t.slice():i.extend({},t):t},i.namespaceFromProperties=function(t){return i.isUndefined(t)||i.isUndefined(t.acl)?{owner:"",app:"",sharing:""}:{owner:t.acl.owner,app:t.acl.app,sharing:t.acl.sharing}},i.keyOf=function(t,e){for(var n in e)if(e.hasOwnProperty(n)&&e[n]===t)return n},i.getWithVersion=function(t,e){e=e||{};for(var n=t+""||"";""!==n;){if(e.hasOwnProperty(n))return e[n];n=n.slice(0,n.lastIndexOf("."))}return e.default},i.isUndefined=function(t){return void 0===t},i.readFile=function(t,n){return e.readFileSync(r.resolve(t,n)).toString()}}()})),i.define("fs",(function(t,e,n,r,i){})),i.define("/lib/context.js",(function(t,e,n,r,i){
|
|
|
/*!*/
|
|
|
!function(){"use strict";var r=t("./paths").Paths,i=t("./jquery.class").Class,o=t("./http"),s=t("./utils"),a=n||this,u={5:"",4.3:"/services/json/v2",default:""};e.exports=a=i.extend({init:function(e,n){if(e instanceof o||n||(n=e,e=null),n=n||{},this.scheme=n.scheme||"https",this.host=n.host||"localhost",this.port=n.port||8089,this.username=n.username||null,this.password=n.password||null,this.owner=n.owner,this.app=n.app,this.sessionKey=n.sessionKey||"",this.authorization=n.authorization||"Splunk",this.paths=n.paths||r,this.version=n.version||"default",this.timeout=n.timeout||0,this.autologin=!0,n.hasOwnProperty("autologin")&&(this.autologin=n.autologin),!e){if("undefined"!=typeof window)throw new Error("Http instance required when creating a Context within a browser.");e=new(0,t("./platform/node/node_http").NodeHttp)}this.http=e,this.http._setSplunkVersion(this.version);var i=s.getWithVersion(this.version,u);this.prefix=this.scheme+"://"+this.host+":"+this.port+i,this._headers=s.bind(this,this._headers),this.fullpath=s.bind(this,this.fullpath),this.urlify=s.bind(this,this.urlify),this.get=s.bind(this,this.get),this.del=s.bind(this,this.del),this.post=s.bind(this,this.post),this.login=s.bind(this,this.login),this._shouldAutoLogin=s.bind(this,this._shouldAutoLogin),this._requestWrapper=s.bind(this,this._requestWrapper)},_headers:function(t){return t=t||{},this.sessionKey&&(t.Authorization=this.authorization+" "+this.sessionKey),t},
|
|
|
/*!*/
|
|
|
_shouldAutoLogin:function(){return this.username&&this.password&&this.autologin},
|
|
|
/*!*/
|
|
|
_requestWrapper:function(t,e){e=e||function(){};var n=this,r=null;return r=!this._shouldAutoLogin()||this.sessionKey?t((function(i){r.wasAborted||(i&&401===i.status&&n._shouldAutoLogin()?(n.sessionKey=null,n.login((function(n,i){r.wasAborted||(n?e(n):t(e))}))):e.apply(null,arguments))})):this.login((function(n,i){r.wasAborted||(n?e(n):t(e))}))},fullpath:function(t,e){if(e=e||{},s.startsWith(t,"/"))return t;if(!e.app&&!this.app&&e.sharing!==a.Sharing.SYSTEM)return"/services/"+t;var n=e.owner||this.owner||"-",r=e.app||this.app||"-";return e.sharing=(e.sharing||"").toLowerCase(),e.sharing===a.Sharing.APP||e.sharing===a.Sharing.GLOBAL?n="nobody":e.sharing===a.Sharing.SYSTEM&&(n="nobody",r="system"),s.trim("/servicesNS/"+encodeURIComponent(n)+"/"+encodeURIComponent(r)+"/"+t)},urlify:function(t){return this.prefix+this.fullpath(t)},login:function(t){var e=this,n=this.paths.login,r={username:this.username,password:this.password};return t=t||function(){},this.http.post(this.urlify(n),this._headers(),r,this.timeout,(function(n,r){var i=!(n||!r.data||!r.data.sessionKey);n||!i?t(n||"No session key available",!1):(e.sessionKey=r.data.sessionKey,t(null,!0))}))},get:function(t,e,n){var r=this;return this._requestWrapper((function(n){return r.http.get(r.urlify(t),r._headers(),e,r.timeout,n)}),n)},del:function(t,e,n){var r=this;return this._requestWrapper((function(n){return r.http.del(r.urlify(t),r._headers(),e,r.timeout,n)}),n)},post:function(t,e,n){var r=this;return this._requestWrapper((function(n){return r.http.post(r.urlify(t),r._headers(),e,r.timeout,n)}),n)},request:function(t,e,n,r,i,o,s){var a=this;return this._requestWrapper((function(s){return a.http.request(a.urlify(t),{method:e,headers:a._headers(o),query:n,post:r,body:i,timeout:a.timeout},s)}),s)},versionCompare:function(t){var e=this.version;"default"===e&&(e="5.0");for(var n=e.split("."),r=t.split("."),i=Math.max(n.length,r.length),o=0;o<i;o++){var s=o<n.length?parseInt(n[o],10):0,a=o<r.length?parseInt(r[o],10):0;if(s<a)return-1;if(s>a)return 1}return 0}}),
|
|
|
/*!*/
|
|
|
a.Sharing={USER:"user",APP:"app",GLOBAL:"global",SYSTEM:"system"}}()})),i.define("/lib/paths.js",(function(t,e,n,r,i){
|
|
|
/*!*/
|
|
|
!function(){"use strict";(n||this).Paths={apps:"/services/apps/local",capabilities:"authorization/capabilities",configurations:"configs",dataModels:"datamodel/model",deploymentClient:"deployment/client",deploymentServers:"deployment/server",deploymentServerClasses:"deployment/serverclass",deploymentTenants:"deployment/tenants",eventTypes:"saved/eventtypes",firedAlerts:"alerts/fired_alerts",indexes:"data/indexes",info:"/services/server/info",inputs:null,jobs:"search/jobs",licenseGroups:"licenser/groups",licenseMessages:"licenser/messages",licensePools:"licenser/pools",licenseSlaves:"licenser/slaves",licenseStacks:"licenser/stacks",licenses:"licenser/licenses",loggers:"server/logger",login:"/services/auth/login",messages:"messages",passwords:"admin/passwords",parser:"search/parser",pivot:"datamodel/pivot",properties:"properties",roles:"authorization/roles",savedSearches:"saved/searches",settings:"server/settings",storagePasswords:"storage/passwords",users:"/services/authentication/users",typeahead:"search/typeahead",views:"data/ui/views",currentUser:"/services/authentication/current-context",submitEvent:"/services/receivers/simple"}}()})),i.define("/lib/jquery.class.js",(function(t,e,n,r,i){
|
|
|
/*! Simple JavaScript Inheritance
|
|
|
* By John Resig http://ejohn.org/
|
|
|
* MIT Licensed.
|
|
|
* Inspired by base2 and Prototype
|
|
|
*/
|
|
|
!function(){var t=n||this,e=!1,r=/xyz/.test((function(){return xyz}))?/\b_super\b/:/.*/;t.Class=function(){},t.Class.extend=function(t){var n=this.prototype;e=!0;var i=new this;for(var o in e=!1,t)i[o]="function"==typeof t[o]&&"function"==typeof n[o]&&r.test(t[o])?function(t,e){return function(){var r=this._super;this._super=n[t];var i=e.apply(this,arguments);return this._super=r,i}}(o,t[o]):t[o];function s(){!e&&this.init&&this.init.apply(this,arguments)}return s.prototype=i,s.constructor=s,s.extend=arguments.callee,s}}()})),i.define("/lib/http.js",(function(t,e,n,r,i){
|
|
|
/*!*/
|
|
|
!function(){"use strict";var n=t("./jquery.class").Class,r=t("./log").Logger,i=t("./utils"),o=null,s={5:function(t){var e=t.query||{},n=t.post||{},r=e.output_mode||n.output_mode||"json";return i.startsWith(r,"json")||(r="json"),e.output_mode=r,e},4:function(t){return t.query||{}},default:function(t){return s[5](t)},none:function(t){return t.query||{}}};e.exports=o=n.extend({init:function(){this.get=i.bind(this,this.get),this.del=i.bind(this,this.del),this.post=i.bind(this,this.post),this.request=i.bind(this,this.request),this._buildResponse=i.bind(this,this._buildResponse),this._setSplunkVersion("none")},
|
|
|
/*!*/
|
|
|
_setSplunkVersion:function(t){this.version=t},get:function(t,e,n,r,i){var o={method:"GET",headers:e,timeout:r,query:n};return this.request(t,o,i)},post:function(t,e,n,r,i){e["Content-Type"]="application/x-www-form-urlencoded";var o={method:"POST",headers:e,timeout:r,post:n};return this.request(t,o,i)},del:function(t,e,n,r,i){var o={method:"DELETE",headers:e,timeout:r,query:n};return this.request(t,o,i)},request:function(t,e,n){var r=i.getWithVersion(this.version,s)(e),a=e.post||{},u=t+"?"+o.encode(r),c=e.body?e.body:o.encode(a),l={method:e.method,headers:e.headers,timeout:e.timeout,body:c};return this.makeRequest(u,l,(function(t){n=n||function(){},t.status<400&&"abort"!==t.status?n(null,t):n(t)}))},makeRequest:function(t,e,n){throw new Error("UNDEFINED FUNCTION - OVERRIDE REQUIRED")},parseJson:function(t){throw new Error("UNDEFINED FUNCTION - OVERRIDE REQUIRED")},_buildResponse:function(t,e,n){var o={},s=null;if(e&&e.headers&&(s=i.trim(e.headers["content-type"]||e.headers["Content-Type"]||e.headers["Content-type"]||e.headers.contentType)),i.startsWith(s,"application/json")&&n)try{o=this.parseJson(n)||{}}catch(t){r.error("Error in parsing JSON:",n,t),o=n}else o=n;return o&&r.printMessages(o.messages),{response:e,status:e?e.statusCode:0,data:o,error:t}}}),o.encode=function(t){var e="";for(var n in t)if(t.hasOwnProperty(n)){e&&"&"!==e[e.length-1]&&(e+="&");var r=t[n];if(r instanceof Array)for(var i=0;i<r.length;i++)e=e+n+"="+encodeURIComponent(r[i])+"&";else if("object"==typeof r)for(var o in r)r.hasOwnProperty(o)&&(r[o],e=e+n+"="+encodeURIComponent(r[o])+"&");else e=e+n+"="+encodeURIComponent(r)}return"&"===e[e.length-1]&&(e=e.substr(0,e.length-1)),e}}()})),i.define("/lib/service.js",(function(t,e,n,r,i){
|
|
|
/*!*/
|
|
|
!function(){"use strict";var r=t("./context"),i=(t("./http"),t("./async")),o=t("./paths").Paths,s=t("./jquery.class").Class,a=t("./utils"),u=n||this,c=null,l=r.extend({init:function(){this._super.apply(this,arguments)}});e.exports=u=c=l.extend({init:function(){this._super.apply(this,arguments),this.specialize=a.bind(this,this.specialize),this.apps=a.bind(this,this.apps),this.configurations=a.bind(this,this.configurations),this.indexes=a.bind(this,this.indexes),this.savedSearches=a.bind(this,this.savedSearches),this.jobs=a.bind(this,this.jobs),this.users=a.bind(this,this.users),this.currentUser=a.bind(this,this.currentUser),this.views=a.bind(this,this.views),this.firedAlertGroups=a.bind(this,this.firedAlertGroups),this.dataModels=a.bind(this,this.dataModels)},specialize:function(t,e){return new c(this.http,{scheme:this.scheme,host:this.host,port:this.port,username:this.username,password:this.password,owner:t,app:e,sessionKey:this.sessionKey,version:this.version})},apps:function(){return new u.Applications(this)},configurations:function(t){return new u.Configurations(this,t)},indexes:function(t){return new u.Indexes(this,t)},savedSearches:function(t){return new u.SavedSearches(this,t)},storagePasswords:function(t){return new u.StoragePasswords(this,t)},firedAlertGroups:function(t){return new u.FiredAlertGroupCollection(this,t)},jobs:function(t){return new u.Jobs(this,t)},dataModels:function(t){return new u.DataModels(this,t)},users:function(){return new u.Users(this)},views:function(t){return new u.Views(this,t)},search:function(t,e,n,r){return!r&&a.isFunction(n)&&(r=n,n=null),new u.Jobs(this,n).search(t,e,r)},getJob:function(t,e,n){return!n&&a.isFunction(e)&&(n=e,e=null),new u.Job(this,t,e).fetch({},n)},oneshotSearch:function(t,e,n,r){return!r&&a.isFunction(n)&&(r=n,n=null),new u.Jobs(this,n).oneshotSearch(t,e,r)},currentUser:function(t){t=t||function(){};var e=this,n=this.get(o.currentUser,{},(function(r,i){if(r)t(r);else{var o=i.data.entry[0].content.username;new u.User(e,o).fetch((function(){n.wasAborted||t.apply(null,arguments)}))}}));return n},serverInfo:function(t){return t=t||function(){},new u.ServerInfo(this).fetch(t)},parse:function(t,e,n){return!n&&a.isFunction(e)&&(n=e,e={}),n=n||function(){},(e=e||{}).q=t,this.get(o.parser,e,(function(t,e){t?n(t):n(null,e.data)}))},typeahead:function(t,e,n){!n&&a.isFunction(e)&&(n=e,e=10),n=n||function(){};var r={count:e||10,prefix:t};return this.get(o.typeahead,r,(function(t,e){if(t)n(t);else{var r=(e.data||{}).results;n(null,r||[])}}))},log:function(t,e,n){!n&&a.isFunction(e)&&(n=e,e={}),n=n||function(){},e=e||{},a.isObject(t)&&(t=JSON.stringify(t));var r=this.paths.submitEvent,i=t,o=e;return this.request(r,"POST",o,{},i,{"Content-Type":"text/plain"},(function(t,e){t?n(t):n(null,e.data)}))}}),u.Endpoint=s.extend({init:function(t,e){if(!t)throw new Error("Passed in a null Service.");if(!e)throw new Error("Passed in an empty path.");this.service=t,this.qualifiedPath=e,this.get=a.bind(this,this.get),this.post=a.bind(this,this.post),this.del=a.bind(this,this.del)},get:function(t,e,n){var r=this.qualifiedPath;return t&&(r=r+"/"+t),this.service.get(r,e,n)},post:function(t,e,n){var r=this.qualifiedPath;return t&&(r=r+"/"+t),this.service.post(r,e,n)},del:function(t,e,n){var r=this.qualifiedPath;return t&&(r=r+"/"+t),this.service.del(r,e,n)}}),u.Resource=u.Endpoint.extend({init:function(t,e,n){var r=t.fullpath(e,n);this._super(t,r),this.namespace=n,this._properties={},this._state={},this._load=a.bind(this,this._load),this.fetch=a.bind(this,this.fetch),this.properties=a.bind(this,this.properties),this.state=a.bind(this,this.state),this.path=a.bind(this,this.path)},path:function(){throw new Error("MUST BE OVERRIDDEN")},_load:function(t){this._properties=t||{},this._state=t||{}},fetch:function(t){throw new Error("MUST BE OVERRIDDEN")},properties:function(){return this._properties},state:function(){return this._state}}),u.Entity=u.Resource.extend({fetchOnUpdate:!1,init:function(t,e,n){this._super(t,e,n),this._load=a.bind(this,this._load),this.fetch=a.bind(this,this.fetch),this.remove=a.bind(this,this.remove),this.update=a.bind(this,this.update),this.fields=a.bind(this,this.fields),this.links=a.bind(this,this.links),this.acl=a.bind(this,this.acl),this.author=a.bind(this,this.author),this.updated=a.bind(this,this.updated),this.published=a.bind(this,this.published),this.enable=a.bind(this,this.enable),this.disable=a.bind(this,this.disable),this.reload=a.bind(this,this.reload),this._properties={},this._fields={},this._acl={},this._links={}},_load:function(t){t=(t=a.isArray(t)?t[0]:t)||{content:{},fields:{},acl:{},links:{}},this._super(t),this._properties=t.content||{},this._fields=t.fields||this._fields||{},this._acl=t.acl||{},this._links=t.links||{},this._author=t.author||null,this._updated=t.updated||null,this._published=t.published||null},fields:function(){return this._fields},acl:function(){return this._acl},links:function(){return this._links},author:function(){return this._author},updated:function(){return this._updated},published:function(){return this._published},fetch:function(t,e){!e&&a.isFunction(t)&&(e=t,t={}),e=e||function(){},t=t||{};var n=this;return this.get("",t,(function(t,r){t?e(t):(n._load(r.data?r.data.entry:null),e(null,n))}))},remove:function(t){return t=t||function(){},this.del("",{},(function(e){t(e)}))},update:function(t,e){if(e=e||function(){},t.hasOwnProperty("name"))throw new Error("Cannot set 'name' field in 'update'");var n=this,r=this.post("",t,(function(t,i){t||n.fetchOnUpdate?!t&&n.fetchOnUpdate?n.fetch((function(){r.wasAborted||e.apply(null,arguments)})):e(t,n):(n._load(i.data.entry),e(t,n))}));return r},disable:function(t){t=t||function(){};var e=this;this.post("disable",{},(function(n,r){n?t(n):t(null,e)}))},enable:function(t){t=t||function(){};var e=this;this.post("enable",{},(function(n,r){n?t(n):t(null,e)}))},reload:function(t){t=t||function(){};var e=this;this.post("_reload",{},(function(n,r){n?t(n):t(null,e)}))}}),u.Collection=u.Resource.extend({fetchOnEntityCreation:!1,init:function(t,e,n){this._super(t,e,n),this._load=a.bind(this,this._load),this.fetch=a.bind(this,this.fetch),this.create=a.bind(this,this.create),this.list=a.bind(this,this.list),this.item=a.bind(this,this.item),this.instantiateEntity=a.bind(this,this.instantiateEntity),this._entities=[],this._entitiesByName={},this._properties={},this._paging={},this._links={}},instantiateEntity:function(t){throw new Error("MUST BE OVERRIDDEN")},_load:function(t){this._super(t);for(var e=[],n={},r=t.entry||[],i=0;i<r.length;i++){var o=r[i],s=this.instantiateEntity(o);s._load(o),e.push(s),n.hasOwnProperty(s.name)?n[s.name].push(s):n[s.name]=[s]}this._entities=e,this._entitiesByName=n,this._paging=t.paging||{},this._links=t.links||{},this._updated=t.updated||null},links:function(){return this._links},paging:function(){return this._paging},updated:function(){return this._updated},fetch:function(t,e){!e&&a.isFunction(t)&&(e=t,t={}),e=e||function(){},(t=t||{}).count||(t.count=0);var n=this;return n.get("",t,(function(t,r){t?e(t):(n._load(r.data),e(null,n))}))},item:function(t,e){if(a.isEmpty(e)&&(e=null),!t)throw new Error("Must suply a non-empty name.");if(e&&("-"===e.app||"-"===e.owner))throw new Error("When searching for an entity, wildcards are not allowed in the namespace. Please refine your search.");var n=null;if(!this._entitiesByName.hasOwnProperty(t))return null;var r=this._entitiesByName[t];if(1===r.length&&!e)return r[0];if(1===r.length&&e)return n=this.service.fullpath(r[0].path(),e),r[0].qualifiedPath===n?r[0]:null;if(r.length>1&&!e)throw new Error("Ambiguous match for name '"+t+"'");for(var i=0;i<r.length;i++){var o=r[i];if(n=this.service.fullpath(r[i].path(),e),o.qualifiedPath===n)return o}},create:function(t,e){e=e||function(){};var n=this,r=this.post("",t,(function(t,i){if(t)e(t);else{var o=i.data.entry;a.isArray(o)&&(o=o[0]);var s=n.instantiateEntity(o);s._load(o),n.fetchOnEntityCreation?s.fetch((function(){r.wasAborted||e.apply(null,arguments)})):e(null,s)}}));return r},list:function(t){return t=t||function(){},a.clone(this._entities)}}),u.SavedSearch=u.Entity.extend({path:function(){return o.savedSearches+"/"+encodeURIComponent(this.name)},init:function(t,e,n){this.name=e,this._super(t,this.path(),n),this.acknowledge=a.bind(this,this.acknowledge),this.dispatch=a.bind(this,this.dispatch),this.history=a.bind(this,this.history),this.suppressInfo=a.bind(this,this.suppressInfo)},alertCount:function(){return parseInt(this.properties().triggered_alert_count,10)||0},acknowledge:function(t){t=t||function(){};var e=this;return this.post("acknowledge",{},(function(n){t(n,e)}))},dispatch:function(t,e){!e&&a.isFunction(t)&&(e=t,t={}),e=e||function(){},t=t||{};var n=this;return this.post("dispatch",t,(function(t,r){if(t)e(t);else{var i=r.data.sid,o=new u.Job(n.service,i,n.namespace);e(null,o,n)}}))},firedAlertGroup:function(){return new u.FiredAlertGroup(this.service,this.name)},history:function(t){t=t||function(){};var e=this;return this.get("history",{},(function(n,r){if(n)t(n);else{for(var i=[],o=r.data.entry||[],s=0;s<o.length;s++){var c=r.data.entry[s],l=a.namespaceFromProperties(c),f=new u.Job(e.service,c.name,l);f._load(c),i.push(f)}t(null,i,e)}}))},suppressInfo:function(t){t=t||function(){};var e=this;return this.get("suppress",{},(function(n,r){t(n,r.data.entry.content,e)}))},update:function(t,e){if((t=t||{}).search)return this._super(t,e);var n=this._super,r=this.fetch((function(i,o){i?e(i):(t.search=o.properties().search,n.call(o,t,(function(){r.wasAborted||e.apply(null,arguments)})))}));return r}}),u.SavedSearches=u.Collection.extend({path:function(){return o.savedSearches},instantiateEntity:function(t){var e=a.namespaceFromProperties(t);return new u.SavedSearch(this.service,t.name,e)},init:function(t,e){this._super(t,this.path(),e)}}),u.StoragePassword=u.Entity.extend({path:function(){return o.storagePasswords+"/"+encodeURIComponent(this.name)},init:function(t,e,n){this.name=e,this._super(t,this.path(),n)}}),u.StoragePasswords=u.Collection.extend({path:function(){return o.storagePasswords},instantiateEntity:function(t){var e=a.namespaceFromProperties(t);return new u.StoragePassword(this.service,t.name,e)},init:function(t,e){this._super(t,this.path(),e)}}),u.FiredAlert=u.Entity.extend({path:function(){return o.firedAlerts+"/"+encodeURIComponent(this.name)},actions:function(){return this.properties().actions||[]},alertType:function(){return this.properties().alert_type||null},isDigestMode:function(){return!!this.properties().digest_mode},expirationTime:function(){return this.properties().expiration_time_rendered||null},savedSearchName:function(){return this.properties().savedsearch_name||null},severity:function(){return parseInt(this.properties().severity,10)||-1},sid:function(){return this.properties().sid||null},triggerTime:function(){return this.properties().trigger_time||null},triggerTimeRendered:function(){return this.properties().trigger_time_rendered||null},triggeredAlertCount:function(){return parseInt(this.properties().triggered_alerts,10)||-1},init:function(t,e,n){this.name=e,this._super(t,this.path(),n)}}),u.FiredAlertGroup=u.Entity.extend({path:function(){return o.firedAlerts+"/"+encodeURIComponent(this.name)},count:function(){return parseInt(this.properties().triggered_alert_count,10)||0},list:function(t,e){!e&&a.isFunction(t)&&(e=t,t={}),e=e||function(){},t=t||{};var n=this;return this.get("",t,(function(t,r){if(t)e(t);else{for(var i=[],o=r.data.entry||[],s=0;s<o.length;s++){var c=r.data.entry[s],l=a.namespaceFromProperties(c),f=new u.FiredAlert(n.service,c.name,l);f._load(c),i.push(f)}e(null,i,n)}}))},init:function(t,e,n){this.name=e,this._super(t,this.path(),n),this.list=a.bind(this,this.list)}}),u.FiredAlertGroupCollection=u.Collection.extend({path:function(){return o.firedAlerts},instantiateEntity:function(t){var e=a.namespaceFromProperties(t);return new u.FiredAlertGroup(this.service,t.name,e)},remove:function(){throw new Error("To remove an alert, remove the saved search with the same name.")},init:function(t,e){this._super(t,this.path(),e),this.instantiateEntity=a.bind(this,this.instantiateEntity),this.remove=a.bind(this,this.remove)}}),u.Application=u.Entity.extend({fetchOnUpdate:!0,path:function(){return o.apps+"/"+encodeURIComponent(this.name)},init:function(t,e){this.name=e,this._super(t,this.path(),{}),this.setupInfo=a.bind(this,this.setupInfo),this.updateInfo=a.bind(this,this.updateInfo)},setupInfo:function(t){t=t||function(){};var e=this;return this.get("setup",{},(function(n,r){n?t(n):t(null,r.data.entry.content,e)}))},updateInfo:function(t){t=t||function(){};var e=this;return this.get("update",{},(function(n,r){n?t(n):t(null,r.data.entry.content,e)}))}}),u.Applications=u.Collection.extend({fetchOnEntityCreation:!0,path:function(){return o.apps},instantiateEntity:function(t){return new u.Application(this.service,t.name,{})},init:function(t){this._super(t,this.path(),{})}}),u.ServerInfo=u.Entity.extend({path:function(){return o.info},init:function(t){this.name="server-info",this._super(t,this.path(),{})}}),u.User=u.Entity.extend({path:function(){return o.users+"/"+encodeURIComponent(this.name)},init:function(t,e){this.name=e,this._super(t,this.path(),{})}}),u.Users=u.Collection.extend({fetchOnEntityCreation:!0,path:function(){return o.users},instantiateEntity:function(t){return new u.User(this.service,t.name,{})},init:function(t){this._super(t,this.path(),{})},create:function(t,e){e=e||function(){};var n=this,r=this.post("",t,(function(i,o){if(i)e(i);else{var s={name:t.name};n.instantiateEntity(s).fetch((function(){r.wasAborted||e.apply(null,arguments)}))}}));return r}}),u.View=u.Entity.extend({path:function(){return o.views+"/"+encodeURIComponent(this.name)},init:function(t,e,n){this.name=e,this._super(t,this.path(),n)}}),u.Views=u.Collection.extend({path:function(){return o.views},instantiateEntity:function(t){var e=a.namespaceFromProperties(t);return new u.View(this.service,t.name,e)},init:function(t,e){this._super(t,this.path(),e)}}),u.Index=u.Entity.extend({path:function(){return o.indexes+"/"+encodeURIComponent(this.name)},init:function(t,e,n){this.name=e,this._super(t,this.path(),n),this.submitEvent=a.bind(this,this.submitEvent)},submitEvent:function(t,e,n){!n&&a.isFunction(e)&&(n=e,e={}),n=n||function(){},(e=e||{}).index=this.name;var r=this;return this.service.log(t,e,(function(t,e){n(t,e,r)}))},remove:function(t){if(this.service.versionCompare("5.0")<0)throw new Error("Indexes cannot be removed in Splunk 4.x");return this._super(t)}}),u.Indexes=u.Collection.extend({path:function(){return o.indexes},instantiateEntity:function(t){var e=a.namespaceFromProperties(t);return new u.Index(this.service,t.name,e)},init:function(t,e){this._super(t,this.path(),e)},create:function(t,e,n){return a.isObject(t)&&a.isFunction(e)&&!n&&(n=e,t=(e=t).name),(e=e||{}).name=t,this._super(e,n)}}),u.ConfigurationStanza=u.Entity.extend({path:function(){var t="default"===this.name?"_new":this.name;return o.configurations+"/conf-"+encodeURIComponent(this.file)+"/"+encodeURIComponent(t)},init:function(t,e,n,r){this.name=n,this.file=e,this._super(t,this.path(),r)}}),u.ConfigurationFile=u.Collection.extend({path:function(){return o.configurations+"/conf-"+encodeURIComponent(this.name)},getDefaultStanza:function(){return new u.ConfigurationStanza(this.service,this.name,"default",this.namespace)},instantiateEntity:function(t){var e=a.namespaceFromProperties(t);return new u.ConfigurationStanza(this.service,this.name,t.name,e)},init:function(t,e,n){this.name=e,this._super(t,this.path(),n)},create:function(t,e,n){return a.isObject(t)&&a.isFunction(e)&&!n&&(n=e,t=(e=t).name),a.isFunction(e)&&!n&&(n=e,e={}),(e=e||{}).name=t,this._super(e,n)}}),u.Configurations=u.Collection.extend({fetchOnEntityCreation:!0,path:function(){return o.properties},instantiateEntity:function(t){return new u.ConfigurationFile(this.service,t.name,this.namespace)},init:function(t,e){if(!e||"-"===e.owner||"-"===e.app)throw new Error("Configurations requires a non-wildcard owner/app");this._super(t,this.path(),e)},create:function(t,e){a.isObject(t)&&(t=t.__conf),e=e||function(){};var n=this,r=this.post("",{__conf:t},(function(i,o){i?e(i):new u.ConfigurationFile(n.service,t).fetch((function(){r.wasAborted||e.apply(null,arguments)}))}));return r}}),u.Job=u.Entity.extend({path:function(){return o.jobs+"/"+encodeURIComponent(this.name)},init:function(t,e,n){this.name=e,this._super(t,this.path(),n),this.sid=e,this.cancel=a.bind(this,this.cancel),this.disablePreview=a.bind(this,this.disablePreview),this.enablePreview=a.bind(this,this.enablePreview),this.events=a.bind(this,this.events),this.finalize=a.bind(this,this.finalize),this.pause=a.bind(this,this.pause),this.preview=a.bind(this,this.preview),this.results=a.bind(this,this.results),this.searchlog=a.bind(this,this.searchlog),this.setPriority=a.bind(this,this.setPriority),this.setTTL=a.bind(this,this.setTTL),this.summary=a.bind(this,this.summary),this.timeline=a.bind(this,this.timeline),this.touch=a.bind(this,this.touch),this.unpause=a.bind(this,this.unpause)},cancel:function(t){return this.post("control",{action:"cancel"},t)},disablePreview:function(t){t=t||function(){};var e=this;return this.post("control",{action:"disablepreview"},(function(n){t(n,e)}))},enablePreview:function(t){t=t||function(){};var e=this;return this.post("control",{action:"enablepreview"},(function(n){t(n,e)}))},events:function(t,e){e=e||function(){},(t=t||{}).output_mode=t.output_mode||"json_rows";var n=this;return this.get("events",t,(function(t,r){t?e(t):e(null,r.data,n)}))},finalize:function(t){t=t||function(){};var e=this;return this.post("control",{action:"finalize"},(function(n){t(n,e)}))},iterator:function(t,e){return new u.PaginatedEndpointIterator(this[t],e)},pause:function(t){t=t||function(){};var e=this;return this.post("control",{action:"pause"},(function(n){t(n,e)}))},preview:function(t,e){e=e||function(){},(t=t||{}).output_mode=t.output_mode||"json_rows";var n=this;return this.get("results_preview",t,(function(t,r){t?e(t):e(null,r.data,n)}))},results:function(t,e){e=e||function(){},(t=t||{}).output_mode=t.output_mode||"json_rows";var n=this;return this.get("results",t,(function(t,r){t?e(t):e(null,r.data,n)}))},searchlog:function(t){t=t||function(){};var e=this;return this.get("search.log",{},(function(n,r){n?t(n):t(null,r.data,e)}))},setPriority:function(t,e){e=e||function(){};var n=this;return this.post("control",{action:"setpriority",priority:t},(function(t){e(t,n)}))},setTTL:function(t,e){e=e||function(){};var n=this;return this.post("control",{action:"setttl",ttl:t},(function(t){e(t,n)}))},summary:function(t,e){e=e||function(){};var n=this;return this.get("summary",t,(function(t,r){t?e(t):e(null,r.data,n)}))},timeline:function(t,e){e=e||function(){};var n=this;return this.get("timeline",t,(function(t,r){t?e(t):e(null,r.data,n)}))},touch:function(t){t=t||function(){};var e=this;return this.post("control",{action:"touch"},(function(n){t(n,e)}))},track:function(t,e){var n=t.period||500;a.isFunction(e)&&(e={done:e});var r=!(e.progress||e.done||e.failed||e.error);e.ready=e.ready||function(){},e.progress=e.progress||function(){},e.done=e.done||function(){},e.failed=e.failed||function(){},e.error=e.error||function(){},e._preready=e._preready||function(){},e._stoppedAfterReady=e._stoppedAfterReady||function(){};var o=this,s=!1,u=!1;i.whilst((function(){return!u}),(function(t){o.fetch((function(o,a){if(o)t(o);else{var c=a.properties().dispatchState;if("QUEUED"===c||"PARSING"===c)e._preready(a);else{if(!s&&(e.ready(a),s=!0,r))return e._stoppedAfterReady(a),u=!0,void t();e.progress(a);var l=a.properties();if("DONE"===c&&l.isDone)return e.done(a),u=!0,void t();if("FAILED"===c&&l.isFailed)return e.failed(a),u=!0,void t()}i.sleep(n,t)}}))}),(function(t){t&&e.error(t)}))},unpause:function(t){t=t||function(){};var e=this;return this.post("control",{action:"unpause"},(function(n){t(n,e)}))}}),u.Jobs=u.Collection.extend({path:function(){return o.jobs},instantiateEntity:function(t){var e=t.content.sid,n=a.namespaceFromProperties(t);return new u.Job(this.service,e,n)},init:function(t,e){this._super(t,this.path(),e),this.create=a.bind(this,this.create)},create:function(t,e,n){if(a.isObject(t)&&a.isFunction(e)&&!n&&(n=e,t=(e=t).search),n=n||function(){},(e=e||{}).search=t,"oneshot"===(e.exec_mode||"").toLowerCase())throw new Error("Please use splunkjs.Service.Jobs.oneshotSearch for exec_mode=oneshot");if(e.search){var r=this;return this.post("",e,(function(t,e){if(t)n(t);else{var i=new u.Job(r.service,e.data.sid,r.namespace);n(null,i)}}))}n("Must provide a query to create a search job")},search:function(t,e,n){return this.create(t,e,n)},oneshotSearch:function(t,e,n){a.isObject(t)&&a.isFunction(e)&&!n&&(n=e,t=(e=t).search),n=n||function(){},(e=e||{}).search=t,e.exec_mode="oneshot",e.search||n("Must provide a query to create a search job");var r=e.output_mode||"json_rows",i=this.qualifiedPath,o=e,s={output_mode:r};return this.service.request(i,"POST",s,o,null,{},(function(t,e){t?n(t):n(null,e.data)}))}}),u.DataModelField=s.extend({_types:["string","number","timestamp","objectCount","childCount","ipv4","boolean"],init:function(t){(t=t||{}).owner=t.owner||"",this.name=t.fieldName,this.displayName=t.displayName,this.type=t.type,this.multivalued=t.multivalue,this.required=t.required,this.hidden=t.hidden,this.editable=t.editable,this.comment=t.comment||null,this.fieldSearch=t.fieldSearch,this.lineage=t.owner.split("."),this.owner=this.lineage[this.lineage.length-1]},isString:function(){return"string"===this.type},isNumber:function(){return"number"===this.type},isTimestamp:function(){return"timestamp"===this.type},isObjectcount:function(){return"objectCount"===this.type},isChildcount:function(){return"childCount"===this.type},isIPv4:function(){return"ipv4"===this.type},isBoolean:function(){return"boolean"===this.type}}),u.DataModelConstraint=s.extend({init:function(t){(t=t||{}).owner=t.owner||"",this.query=t.search,this.lineage=t.owner.split("."),this.owner=this.lineage[this.lineage.length-1]}}),u.DataModelCalculation=s.extend({_types:["Lookup","Eval","GeoIP","Rex"],init:function(t){(t=t||{}).owner=t.owner||"",this.id=t.calculationID,this.type=t.calculationType,this.comment=t.comment||null,this.editable=t.editable,this.lineage=t.owner.split("."),this.owner=this.lineage[this.lineage.length-1],this.outputFields=[];for(var e=0;e<t.outputFields.length;e++)this.outputFields[t.outputFields[e].fieldName]=new u.DataModelField(t.outputFields[e]);"Eval"!==this.type&&"Rex"!==this.type||(this.expression=t.expression),"GeoIP"!==this.type&&"Rex"!==this.type||(this.inputField=t.inputField),"Lookup"===this.type&&(this.lookupName=t.lookupName,this.inputFieldMappings=t.lookupInputs[0])},outputFieldNames:function(){return Object.keys(this.outputFields)},isEditable:function(){return!!this.editable},isLookup:function(){return"Lookup"===this.type},isEval:function(){return"Eval"===this.type},isRex:function(){return"Rex"===this.type},isGeoIP:function(){return"GeoIP"===this.type}}),u.Pivot=s.extend({init:function(t,e){this.service=t,this.search=e.search,this.drilldownSearch=e.drilldown_search,this.prettyQuery=this.openInSearch=e.open_in_search,this.pivotSearch=e.pivot_search,this.tstatsSearch=e.tstats_search||null,this.run=a.bind(this,this.run)},run:function(t,e){a.isUndefined(e)&&(e=t,t={}),t&&0!==Object.keys(t).length||(t={}),this.service.search(this.tstatsSearch||this.pivotSearch,t,e)}}),u.PivotSpecification=s.extend({_comparisons:{boolean:["=","is","isNull","isNotNull"],string:["=","is","isNull","isNotNull","contains","doesNotContain","startsWith","endsWith","regex"],number:["=","!=","<",">","<=",">=","is","isNull","isNotNull"],ipv4:["is","isNull","isNotNull","contains","doesNotContain","startsWith"]},_binning:["auto","year","month","day","hour","minute","second"],_sortDirection:["ASCENDING","DESCENDING","DEFAULT"],_statsFunctions:["list","values","first","last","count","dc","sum","average","max","min","stdev","duration","earliest","latest"],init:function(t){this.dataModelObject=t,this.columns=[],this.rows=[],this.filters=[],this.cells=[],this.accelerationNamespace=t.dataModel.isAccelerated()?t.dataModel.name:null,this.run=a.bind(this,this.run),this.pivot=a.bind(this,this.pivot)},setAccelerationJob:function(t){if(t&&t instanceof c.Job&&(t=t.sid),!t)throw new Error("Sid to use for acceleration must not be null.");return this.accelerationNamespace="sid="+t,this},addFilter:function(t,e,n,r){if(!this.dataModelObject.hasField(t))throw new Error("Cannot add filter on a nonexistent field.");if(e!==this.dataModelObject.fieldByName(t).type)throw new Error("Cannot add "+e+" filter on "+t+" because it is of type "+this.dataModelObject.fieldByName(t).type);if(!a.contains(this._comparisons[e],n))throw new Error("Cannot add "+e+" filter because "+n+" is not a valid comparison operator");var i={fieldName:t,owner:this.dataModelObject.fieldByName(t).lineage.join("."),type:e};return a.contains(["boolean","string","ipv4","number"],i.type)&&(i.comparator=n,i.compareTo=r),this.filters.push(i),this},addLimitFilter:function(t,e,n,r,i){if(!this.dataModelObject.hasField(t))throw new Error("Cannot add limit filter on a nonexistent field.");var o=this.dataModelObject.fieldByName(t);if(!a.contains(["string","number","objectCount"],o.type))throw new Error("Cannot add limit filter on "+t+" because it is of type "+o.type);if("string"===o.type&&!a.contains(["count","dc"],i))throw new Error("Stats function for fields of type string must be COUNT or DISTINCT_COUNT; found "+i);if("number"===o.type&&!a.contains(["count","dc","average","sum"],i))throw new Error("Stats function for fields of type number must be one of COUNT, DISTINCT_COUNT, SUM, or AVERAGE; found "+i);if("objectCount"===o.type&&!a.contains(["count"],i))throw new Error("Stats function for fields of type object count must be COUNT; found "+i);var s={fieldName:t,owner:o.lineage.join("."),type:o.type,attributeName:e,attributeOwner:this.dataModelObject.fieldByName(e).lineage.join("."),sortDirection:n,limitAmount:r,statsFn:i};return s.limitType="ASCENDING"===n?"lowest":"highest",this.filters.push(s),this},addRowSplit:function(t,e){if(!this.dataModelObject.hasField(t))throw new Error("Did not find field "+t);var n=this.dataModelObject.fieldByName(t);if(!a.contains(["number","string"],n.type))throw new Error("Field was of type "+n.type+", expected number or string.");var r={fieldName:t,owner:n.owner,type:n.type,label:e};return"number"===n.type&&(r.display="all"),this.rows.push(r),this},addRangeRowSplit:function(t,e,n){if(!this.dataModelObject.hasField(t))throw new Error("Did not find field "+t);var r=this.dataModelObject.fieldByName(t);if("number"!==r.type)throw new Error("Field was of type "+r.type+", expected number.");var i={};return a.isUndefined(n.start)||null===n.start||(i.start=n.start),a.isUndefined(n.end)||null===n.end||(i.end=n.end),a.isUndefined(n.step)||null===n.step||(i.size=n.step),a.isUndefined(n.limit)||null===n.limit||(i.maxNumberOf=n.limit),this.rows.push({fieldName:t,owner:r.owner,type:r.type,label:e,display:"ranges",ranges:i}),this},addBooleanRowSplit:function(t,e,n,r){if(!this.dataModelObject.fieldByName(t))throw new Error("Did not find field "+t);var i=this.dataModelObject.fieldByName(t);if("boolean"!==i.type)throw new Error("Field was of type "+i.type+", expected boolean.");return this.rows.push({fieldName:t,owner:i.owner,type:i.type,label:e,trueLabel:n,falseLabel:r}),this},addTimestampRowSplit:function(t,e,n){if(!this.dataModelObject.hasField(t))throw new Error("Did not find field "+t);var r=this.dataModelObject.fieldByName(t);if("timestamp"!==r.type)throw new Error("Field was of type "+r.type+", expected timestamp.");if(!a.contains(this._binning,n))throw new Error("Invalid binning "+n+" found. Valid values are: "+this._binning.join(", "));return this.rows.push({fieldName:t,owner:r.owner,type:r.type,label:e,period:n}),this},addColumnSplit:function(t){if(!this.dataModelObject.hasField(t))throw new Error("Did not find field "+t);var e=this.dataModelObject.fieldByName(t);if(!a.contains(["number","string"],e.type))throw new Error("Field was of type "+e.type+", expected number or string.");var n={fieldName:t,owner:e.owner,type:e.type};return"number"===e.type&&(n.display="all"),this.columns.push(n),this},addRangeColumnSplit:function(t,e){if(!this.dataModelObject.hasField(t))throw new Error("Did not find field "+t);var n=this.dataModelObject.fieldByName(t);if("number"!==n.type)throw new Error("Field was of type "+n.type+", expected number.");var r={};return a.isUndefined(e.start)||null===e.start||(r.start=e.start),a.isUndefined(e.end)||null===e.end||(r.end=e.end),a.isUndefined(e.step)||null===e.step||(r.size=e.step),a.isUndefined(e.limit)||null===e.limit||(r.maxNumberOf=e.limit),this.columns.push({fieldName:t,owner:n.owner,type:n.type,display:"ranges",ranges:r}),this},addBooleanColumnSplit:function(t,e,n){if(!this.dataModelObject.fieldByName(t))throw new Error("Did not find field "+t);var r=this.dataModelObject.fieldByName(t);if("boolean"!==r.type)throw new Error("Field was of type "+r.type+", expected boolean.");return this.columns.push({fieldName:t,owner:r.owner,type:r.type,trueLabel:e,falseLabel:n}),this},addTimestampColumnSplit:function(t,e){if(!this.dataModelObject.hasField(t))throw new Error("Did not find field "+t);var n=this.dataModelObject.fieldByName(t);if("timestamp"!==n.type)throw new Error("Field was of type "+n.type+", expected timestamp.");if(!a.contains(this._binning,e))throw new Error("Invalid binning "+e+" found. Valid values are: "+this._binning.join(", "));return this.columns.push({fieldName:t,owner:n.owner,type:n.type,period:e}),this},addCellValue:function(t,e,n){if(!this.dataModelObject.hasField(t))throw new Error("Did not find field "+t);var r=this.dataModelObject.fieldByName(t);if(a.contains(["string","ipv4"],r.type)&&!a.contains(["list","values","first","last","count","dc"],n))throw new Error("Stats function on string and IPv4 fields must be one of: list, distinct_values, first, last, count, or distinct_count; found "+n);if("number"===r.type&&!a.contains(["sum","count","average","min","max","stdev","list","values"],n))throw new Error("Stats function on number field must be must be one of: sum, count, average, max, min, stdev, list, or distinct_values; found "+n);if("timestamp"===r.type&&!a.contains(["duration","earliest","latest","list","values"],n))throw new Error("Stats function on timestamp field must be one of: duration, earliest, latest, list, or distinct values; found "+n);if(a.contains(["objectCount","childCount"],r.type)&&"count"!==n)throw new Error("Stats function on childcount and objectcount fields must be count; found "+n);if("boolean"===r.type)throw new Error("Cannot use boolean valued fields as cell values.");return this.cells.push({fieldName:t,owner:r.lineage.join("."),type:r.type,label:e,sparkline:!1,value:n}),this},toJsonObject:function(){return{dataModel:this.dataModelObject.dataModel.name,baseClass:this.dataModelObject.name,rows:this.rows,columns:this.columns,cells:this.cells,filters:this.filters}},pivot:function(t){var e=this.dataModelObject.dataModel.service,n={pivot_json:JSON.stringify(this.toJsonObject())};return a.isUndefined(this.accelerationNamespace)||(n.namespace=this.accelerationNamespace),e.get(o.pivot+"/"+encodeURIComponent(this.dataModelObject.dataModel.name),n,(function(n,r){n?t(new Error(n.data.messages[0].text),r):r.data.entry&&r.data.entry[0]?t(null,new u.Pivot(e,r.data.entry[0].content)):t(new Error("Didn't get a Pivot report back from Splunk"),r)}))},run:function(t,e){e||(e=t,t={}),t=t||{},this.pivot((function(n,r){n?e(n,null,null):r.run(t,i.augment(e,r))}))}}),u.DataModelObject=s.extend({init:function(t,e){(t=t||{}).owner=t.owner||"",this.dataModel=e,this.name=t.objectName,this.displayName=t.displayName,this.parentName=t.parentName,this.lineage=t.lineage.split("."),t.hasOwnProperty("groupByFields")&&(this.groupByFields=t.groupByFields),t.hasOwnProperty("objectsToGroup")&&(this.objectsToGroup=t.objectsToGroup),t.hasOwnProperty("transactionMaxTimeSpan")&&(this.maxSpan=t.transactionMaxTimeSpan),t.hasOwnProperty("transactionMaxPause")&&(this.maxPause=t.transactionMaxPause),t.hasOwnProperty("baseSearch")&&(this.baseSearch=t.baseSearch),this.fields={};for(var n=0;n<t.fields.length;n++)this.fields[t.fields[n].fieldName]=new u.DataModelField(t.fields[n]);this.constraints=[];for(var r=0;r<t.constraints.length;r++)this.constraints.push(new u.DataModelConstraint(t.constraints[r]));this.calculations=[];for(var i=0;i<t.calculations.length;i++)this.calculations[t.calculations[i].calculationID]=new u.DataModelCalculation(t.calculations[i])},isBaseSearch:function(){return!a.isUndefined(this.baseSearch)},isBaseTransaction:function(){return!a.isUndefined(this.maxSpan)},fieldNames:function(){return Object.keys(this.fields)},fieldByName:function(t){return this.calculatedFields()[t]||this.fields[t]||null},allFields:function(){var t=[];for(var e in this.fields)this.fields.hasOwnProperty(e)&&(t[e]=this.fields[e]);var n=this.calculatedFields();for(var r in n)n.hasOwnProperty(r)&&(t[r]=n[r]);return t},allFieldNames:function(){return Object.keys(this.allFields())},calculatedFields:function(){for(var t={},e=this.calculationIDs(),n=this.calculations,r=0;r<e.length;r++)for(var i=n[e[r]],o=0;o<i.outputFieldNames().length;o++)t[i.outputFieldNames()[o]]=i.outputFields[i.outputFieldNames()[o]];return t},calculatedFieldNames:function(){return Object.keys(this.calculatedFields())},hasField:function(t){return a.contains(this.allFieldNames(),t)},calculationIDs:function(){return Object.keys(this.calculations)},createLocalAccelerationJob:function(t,e){!e&&a.isFunction(t)&&(e=t,t=void 0);var n='| datamodel "'+this.dataModel.name+'" '+this.name+" search | tscollect",r=t?{earliest_time:t}:{};this.dataModel.service.search(n,r,e)},startSearch:function(t,e,n){var r="| datamodel "+this.dataModel.name+" "+this.name+" search";e=e?" "+e:"",this.dataModel.service.search(r+e,t,n)},parent:function(){return this.dataModel.objectByName(this.parentName)},createPivotSpecification:function(){return new u.PivotSpecification(this)}}),u.DataModel=c.Entity.extend({path:function(){return o.dataModels+"/"+encodeURIComponent(this.name)},init:function(t,e,n,r){r||(r=n,n={}),this.name=e,this._super(t,this.path(),n),this.acceleration=JSON.parse(r.content.acceleration)||{},this.acceleration.hasOwnProperty("enabled")&&(this.acceleration.enabled=!!this.acceleration.enabled),r.hasOwnProperty("concise")&&!a.isUndefined(r.concise)||(this.concise="0");var i=JSON.parse(r.content.description);this.objectNames=i.objectNameList,this.displayName=i.displayName,this.description=i.description;var o=i.objects;this.objects=[];for(var s=0;s<o.length;s++)this.objects.push(new u.DataModelObject(o[s],this));this.remove=a.bind(this,this.remove),this.update=a.bind(this,this.update)},isAccelerated:function(){return!!this.acceleration.enabled},objectByName:function(t){for(var e=0;e<this.objects.length;e++)if(this.objects[e].name===t)return this.objects[e];return null},hasObject:function(t){return a.contains(this.objectNames,t)},update:function(t,e){if(a.isUndefined(e)&&(e=t,t={}),e=e||function(){},t){if(!t.hasOwnProperty("name")){var n={acceleration:JSON.stringify({enabled:t.accceleration&&t.acceleration.enabled||this.acceleration.enabled,earliest_time:t.accceleration&&t.acceleration.earliestTime||this.acceleration.earliestTime,cron_schedule:t.accceleration&&t.acceleration.cronSchedule||this.acceleration.cronSchedule})},r=this;return this.post("",n,(function(t,n){if(t)e(t,r);else{var i=a.namespaceFromProperties(n.data.entry[0]);e(null,new u.DataModel(r.service,n.data.entry[0].name,i,n.data.entry[0]))}}))}e(new Error("Cannot set 'name' field in 'update'"),this)}else e(new Error("Must specify a props argument to update a data model."))}}),u.DataModels=c.Collection.extend({path:function(){return o.dataModels},init:function(t,e){e=e||{},this._super(t,this.path(),e),this.create=a.bind(this,this.create)},create:function(t,e,n){a.isFunction(e)&&!n&&(n=e,e={}),e=e||{},n=n||function(){},t=t.replace(/ /g,"_");var r=this;return this.post("",{name:t,description:JSON.stringify(e)},(function(t,e){if(t)n(t);else{var i=new u.DataModel(r.service,e.data.entry[0].name,r.namespace,e.data.entry[0]);n(null,i)}}))},instantiateEntity:function(t){var e=a.namespaceFromProperties(t);return new u.DataModel(this.service,t.name,e,t)}}),
|
|
|
/*!*/
|
|
|
u.PaginatedEndpointIterator=s.extend({init:function(t,e){e=e||{},this._endpoint=t,this._pagesize=e.pagesize||0,this._offset=0},next:function(t){t=t||function(){};var e=this,n={count:this._pagesize,offset:this._offset};return this._endpoint(n,(function(n,r){if(n)t(n);else{var i=r.rows?r.rows.length:0;e._offset+=i,t(null,r,i>0)}}))}})}()})),i.define("/lib/async.js",(function(t,e,n,r,i){
|
|
|
/*!*/
|
|
|
!function(){"use strict";var e=t("./utils"),r=n||this;r.whilst=function(t,e,n){e=e||function(t){t()},n=n||function(){},(t=t||function(){return!1})()?e((function(i){i?n(i):r.whilst(t,e,n)})):n(null)},r.parallel=function(t,n){if(arguments.length>1&&e.isFunction(arguments[0])){var r=e.toArray(arguments);t=r.slice(0,r.length-1),n=r[r.length-1]}n=n||function(){},0===(t=t||[]).length&&n();for(var i=t.length,o=[],s=function(t){return function(r){if(r)n&&n(r),n=null;else{var s=e.toArray(arguments);s.shift(),1===s.length&&(s=s[0]),o[t]=s,0==--i&&(o.unshift(null),n&&n.apply(null,o))}}},a=0;a<t.length;a++){var u=t[a];u(s(a))}},r.series=function(t,n){if(arguments.length>1&&e.isFunction(arguments[0])){var r=e.toArray(arguments);t=r.slice(0,r.length-1),n=r[r.length-1]}n=n||function(){};var i=function(t,n,r,o){if(!t)return r.unshift(null),void o.apply(null,r);t((function(t){if(t)o&&o(t),o=null;else{var s=e.toArray(arguments);s.shift(),1===s.length&&(s=s[0]),r.push(s),i(n[0],n.slice(1),r,o)}}))};i((t=t||[])[0],t.slice(1),[],n)},r.parallelMap=function(t,n,i){t=t||[],i=i||function(){};for(var o=[],s=function(t,e){return function(r){n(t,e,r)}},a=0;a<t.length;a++)o.push(s(t[a],a));r.parallel(o,(function(t){if(t)i&&i(t),i=null;else{var n=e.toArray(arguments);n.shift(),i(null,n)}}))},r.seriesMap=function(t,n,i){t=t||[],i=i||function(){};for(var o=[],s=function(t,e){return function(r){n(t,e,r)}},a=0;a<t.length;a++)o.push(s(t[a],a));r.series(o,(function(t){if(t)i&&i(t);else{var n=e.toArray(arguments);n.shift(),i(null,n)}}))},r.parallelEach=function(t,e,n){t=t||[],n=n||function(){},r.parallelMap(t,e,(function(t,e){n(t)}))},r.seriesEach=function(t,e,n){t=t||[],n=n||function(){},r.seriesMap(t,e,(function(t,e){n(t)}))},r.chain=function(t,n){if(arguments.length>1&&e.isFunction(arguments[0])){var r=e.toArray(arguments);t=r.slice(0,r.length-1),n=r[r.length-1]}if(n=n||function(){},(t=t||[]).length){var i=function(t,r,o){var s=o;r.length?s.push((function(t){if(t)n(t),n=function(){};else{var o=e.toArray(arguments);o.shift(),i(r[0],r.slice(1),o)}})):s.push(n),t.apply(null,s)};i(t[0],t.slice(1),[])}else n()},r.sleep=function(t,e){setTimeout((function(){e()}),t)},r.augment=function(t){var e=Array.prototype.slice.call(arguments,1);return function(){for(var n=Array.prototype.slice.call(arguments),r=0;r<e.length;r++)n.push(e[r]);t.apply(null,n)}}}()})),i.define("/lib/modularinputs/index.js",(function(e,n,r,i,o){var s=e("../async"),a={utils:e("./utils"),ValidationDefinition:e("./validationdefinition"),InputDefinition:e("./inputdefinition"),Event:e("./event"),EventWriter:e("./eventwriter"),Argument:e("./argument"),Scheme:e("./scheme"),ModularInput:e("./modularinput"),Logger:e("./logger"),execute:function(n,r){if(e.main===r){var i=t.argv;("node"===i[0]||a.utils.contains(i[0],"node.exe"))&&(i=i.slice(1,i.length)),n.setup=n.setup||a.ModularInput.prototype.setup,n.start=n.start||a.ModularInput.prototype.start,n.end=n.end||a.ModularInput.prototype.end,n.teardown=n.teardown||a.ModularInput.prototype.teardown,n._inputDefinition=n._inputDefinition||null,n._service=n._service||null;var o,u=new this.EventWriter;s.chain([function(t){n.setup(t)},function(e){a.ModularInput.runScript(n,i,u,t.stdin,e)},function(t,e){o=t,n.teardown(e)}],(function(e){e&&a.Logger.error("",e,u._err),t.stdout.once("drain",(function(){t.exit(o||e?1:0)}))}))}}};n.exports=a})),i.define("/lib/modularinputs/utils.js",(function(t,e,n,r,i){
|
|
|
/*!*/
|
|
|
var o=t("../utils");o.parseParameters=function(t){switch(t.tag){case"param":return t.text;case"param_list":for(var e=[],n=t.getchildren(),r=0;r<n.length;r++){var i=n[r];e.push(i.text)}return e;default:throw new Error("Invalid configuration scheme, <"+t.tag+"> tag unexpected.")}},o.parseXMLData=function(t,e){for(var n={},r=t.getchildren(),i=0;i<r.length;i++){var s=r[i];if(s.tag===e){if("stanza"===e){n[s.get("name")]={};for(var a=s.getchildren(),u=0;u<a.length;u++){var c=a[u];n[s.get("name")][c.get("name")]=o.parseParameters(c)}}}else"item"===t.tag&&(n[s.get("name")]=o.parseParameters(s))}return n},e.exports=o})),i.define("/lib/modularinputs/validationdefinition.js",(function(t,e,n,r,i){
|
|
|
/*!*/
|
|
|
!function(){var n=t("elementtree"),r=t("./utils");function i(){this.metadata={},this.parameters={}}i.parse=function(t){for(var e=new i,o=n.parse(t).getroot().getchildren(),s=0;s<o.length;s++){var a=o[s];"item"===a.tag?(e.metadata.name=a.get("name"),e.parameters=r.parseXMLData(a,"")):e.metadata[a.tag]=a.text}return e},e.exports=i}()})),i.define("/node_modules/elementtree/package.json",(function(t,e,n,r,i){e.exports={main:"lib/elementtree.js"}})),i.define("/node_modules/elementtree/lib/elementtree.js",(function(t,e,n,r,i){var o=t("./sprintf").sprintf,s=t("./utils"),a=t("./elementpath"),u=t("./treebuilder").TreeBuilder,c=t("./parser").get_parser,l=t("./constants"),f=0;function h(t,e){this._id=f++,this.tag=t,this.attrib={},this.text=null,this.tail=null,this._children=[],e&&(this.attrib=s.merge(this.attrib,e))}function p(t){var e=new h(p);return t&&(e.text=t),e}function d(t){var e=new h(d);return t&&(e.text=t),e}function g(t,e){var n=new h(g);return n.text=t,e&&(n.text=n.text+" "+e),n}function v(t,e){e&&(t=o("{%s}%s",t,e)),this.text=t}function m(t){this._root=t}h.prototype.toString=function(){return o("<Element %s at %s>",this.tag,this._id)},h.prototype.makeelement=function(t,e){return new h(t,e)},h.prototype.len=function(){return this._children.length},h.prototype.getItem=function(t){return this._children[t]},h.prototype.setItem=function(t,e){this._children[t]=e},h.prototype.delItem=function(t){this._children.splice(t,1)},h.prototype.getSlice=function(t,e){return this._children.slice(t,e)},h.prototype.setSlice=function(t,e,n){var r,i=0;for(r=t;r<e;r++,i++)this._children[r]=n[i]},h.prototype.delSlice=function(t,e){this._children.splice(t,e-t)},h.prototype.append=function(t){this._children.push(t)},h.prototype.extend=function(t){this._children.concat(t)},h.prototype.insert=function(t,e){this._children[t]=e},h.prototype.remove=function(t){this._children=this._children.filter((function(e){return e._id!==t._id}))},h.prototype.getchildren=function(){return this._children},h.prototype.find=function(t){return a.find(this,t)},h.prototype.findtext=function(t,e){return a.findtext(this,t,e)},h.prototype.findall=function(t,e){return a.findall(this,t,e)},h.prototype.clear=function(){this.attrib={},this._children=[],this.text=null,this.tail=null},h.prototype.get=function(t,e){return void 0!==this.attrib[t]?this.attrib[t]:e},h.prototype.set=function(t,e){this.attrib[t]=e},h.prototype.keys=function(){return Object.keys(this.attrib)},h.prototype.items=function(){return s.items(this.attrib)},h.prototype.iter=function(t,e){var n;for("*"===t&&(t=null),null!==t&&this.tag!==t||e(this),n=0;n<this._children.length;n++)this._children[n].iter(t,(function(t){e(t)}))},h.prototype.itertext=function(t){this.iter(null,(function(e){e.text&&t(e.text),e.tail&&t(e.tail)}))},v.prototype.toString=function(){return this.text},m.prototype.getroot=function(){return this._root},m.prototype._setroot=function(t){this._root=t},m.prototype.parse=function(t,e){return e||(e=new((e=c(l.DEFAULT_PARSER)).XMLParser)(new u)),e.feed(t),this._root=e.close(),this._root},m.prototype.iter=function(t,e){this._root.iter(t,e)},m.prototype.find=function(t){return this._root.find(t)},m.prototype.findtext=function(t,e){return this._root.findtext(t,e)},m.prototype.findall=function(t){return this._root.findall(t)},m.prototype.write=function(t){var e=[];if(!1!==(t=s.merge({encoding:"utf-8",xml_declaration:null,default_namespace:null,method:"xml"},t)).xml_declaration&&e.push("<?xml version='1.0' encoding='"+t.encoding+"'?>\n"),"text"===t.method)_serialize_text(e,self._root,encoding);else{var n,r,i,a,u=function(t,e,n){var r={},i={};function s(t){if("{"===t[0]){var e=t.substring(1).split("}",2),s=e[0],a=e[1],u=i[s];void 0===u&&(void 0===(u=y[s])&&(u="ns"+Object.keys(i).length),"xml"!==u&&(i[s]=u)),r[t]=u?o("%s:%s",u,a):a}else{if(n)throw new Error("cannot use non-qualified names with default_namespace option");r[t]=t}}return n&&(i[n]=""),t.iter(null,(function(t){var e=t.tag,n=t.text,i=t.items();if(e instanceof v&&void 0===r[e.text])s(e.text);else if("string"==typeof e)s(e);else if(null!==e&&e!==p&&e!==d&&e!==g)throw new Error("Invalid tag type for serialization: "+e);n instanceof v&&void 0===r[n.text]&&s(n.text),i.forEach((function(t){var e=t[0],n=t[1];e instanceof v&&(e=e.text),void 0===r[e]&&s(e),n instanceof v&&void 0===r[n.text]&&s(n.text)}))})),[r,i]}(this._root,t.encoding,t.default_namespace);if(n=u[0],r=u[1],t.hasOwnProperty("indent")?(i=0,a=new Array(t.indent+1).join(" ")):i=!1,"xml"!==t.method)throw new Error("unknown serialization method "+t.method);!function t(e,n,r,i,a,u,c){var l,f=n.tag,h=n.text,m=u||0===u;e(Array(u+1).join(c)),f===p?e(o("\x3c!--%s--\x3e",_(h))):f===g?e(o("<?%s?>",_(h))):f===d?e(o("<![CDATA[%s]]>",h=h||"")):void 0===(f=i[f])?(h&&e(x(h)),n.iter((function(n){t(e,n,r,i,null,!!m&&u+1,c)}))):(e("<"+f),((l=n.items())||a)&&(l.sort(),l.forEach((function(t){var n=t[0],r=t[1];n instanceof v&&(n=n.text),r=r instanceof v?i[r.text]:w(r),e(o(' %s="%s"',i[n],r))})),a&&((l=s.items(a)).sort((function(t,e){return t[1]<e[1]})),l.forEach((function(t){var n=t[1],r=t[0];n&&(n=":"+n),e(o(' xmlns%s="%s"',n,w(r)))})))),h||n.len()?(h&&h.toString().match(/^\s*$/)&&(h=null),e(">"),!h&&m&&e("\n"),h&&e(x(h)),n._children.forEach((function(n){t(e,n,r,i,null,!!m&&u+1,c)})),!h&&u&&e(Array(u+1).join(c)),e("</"+f+">")):e(" />")),m&&e("\n")}((function(t){e.push(t)}),this._root,t.encoding,n,r,i,a)}return e.join("")};var y={"http://www.w3.org/XML/1998/namespace":"xml","http://www.w3.org/1999/xhtml":"html","http://www.w3.org/1999/02/22-rdf-syntax-ns#":"rdf","http://schemas.xmlsoap.org/wsdl/":"wsdl","http://www.w3.org/2001/XMLSchema":"xs","http://www.w3.org/2001/XMLSchema-instance":"xsi","http://purl.org/dc/elements/1.1/":"dc"};function b(t,e,n,r){return t&&(t=(t=(t=(t=t.toString()).replace(/&/g,"&")).replace(/</g,"<")).replace(/>/g,">"),r||(t=(t=t.replace(/\n/g,"
")).replace(/\r/g,"
")),n&&(t=t.replace(/"/g,"""))),t}function w(t,e){return b(t,0,!0)}function _(t,e){return b(t,0,!1)}function x(t,e){return b(t,0,!1,!0)}n.PI=g,n.Comment=p,n.CData=d,n.ProcessingInstruction=g,n.SubElement=function(t,e,n){var r=t.makeelement(e,n);return t.append(r),r},n.QName=v,n.ElementTree=m,n.ElementPath=a,n.Element=function(t,e){return new h(t,e)},n.XML=function(t){return(new m).parse(t)},n.parse=function(t,e){var n=new m;return n.parse(t,e),n},n.register_namespace=function(t,e){if(/ns\d+$/.test(t))throw new Error("Prefix format reserved for internal use");y.hasOwnProperty(e)&&y[e]===t&&delete y[e],y[e]=t},n.tostring=function(t,e){return new m(t).write(e)}})),i.define("/node_modules/elementtree/lib/sprintf.js",(function(t,e,n,r,i){var o={},s={"'":"\\'","\n":"\\n"};function a(t){var e,n=t,r=0,i=1,a="return '";for(e=0;e<t.length;e++)if("%"===t[e])switch(t[e+1]){case"s":a+=t.slice(r,e)+"' + arguments["+i+"] + '",r=e+2,i++;break;case"j":a+=t.slice(r,e)+"' + JSON.stringify(arguments["+i+"]) + '",r=e+2,i++;break;case"%":a+=t.slice(r,e+1),r=e+2,e++}else s[t[e]]&&(a+=t.slice(r,e)+s[t[e]],r=e+1);a+=t.slice(r)+"';",o[n]=new Function(a)}n.sprintf=function(t,e){return o[t]||a(t),o[t].apply(null,arguments)}})),i.define("/node_modules/elementtree/lib/utils.js",(function(t,e,n,r,i){n.items=function(t,e){e=e||null;var n,r,i=[];for(n in t)!t.hasOwnProperty(n)||(r=e,e&&0!==e.length&&e.indexOf(r))||i.push([n,t[n]]);return i},n.findall=function(t,e){for(var n,r=[];n=t.exec(e);)r.push(n);return r},n.merge=function(t,e){var n,r={};for(n in t)t.hasOwnProperty(n)&&(r[n]=t[n]);for(n in e)e.hasOwnProperty(n)&&(r[n]=e[n]);return r}})),i.define("/node_modules/elementtree/lib/elementpath.js",(function(t,e,n,r,i){var o=t("./sprintf").sprintf,s=t("./utils"),a=t("./errors").SyntaxError,u={},c=new RegExp("('[^']*'|\"[^\"]*\"|::|//?|\\.\\.|\\(\\)|[/.*:\\[\\]\\(\\)@=])|((?:\\{[^}]+\\})?[^/\\[\\]\\(\\)@=\\s]+)|\\s+","g"),l=s.findall.bind(null,c),f={"":function(t,e){var n=e[0];return function(t,e){var r,i,o=[];for(r=0,i=e.length;r<i;r++)e[r]._children.forEach((function(t){t.tag===n&&o.push(t)}));return o}},"*":function(t,e){return function(t,e){var n,r,i=[];for(n=0,r=e.length;n<r;n++)e[n]._children.forEach((function(t){i.push(t)}));return i}},".":function(t,e){return function(t,e){var n,r,i,o=[];for(n=0,r=e.length;n<r;n++)i=e[n],o.push(i);return o}},"..":function(t,e){return function(t,e){var n,r,i,o=[],s=t.parent_map;for(s||(t.parent_map=s={},t.root.iter(null,(function(t){t._children.forEach((function(e){s[e]=t}))}))),n=0,r=e.length;n<r;n++)i=e[n],s.hasOwnProperty(i)&&o.push(s[i]);return o}},"//":function(t,e){var n;if("*"===(e=t())[1])n="*";else{if(e[1])throw new a(e);n=e[0]||""}return function(t,e){var r,i,o,s=[];for(r=0,i=e.length;r<i;r++)(o=e[r]).iter(n,(function(t){t!==o&&s.push(t)}));return s}},"[":function(t,e){var n,r,i,o;if("@"===(e=t())[1]){if((e=t())[1])throw new a(e,"Invalid attribute predicate");if(r=e[0],"]"===(e=t())[1])o=function(t,e){var n,i,o,s=[];for(n=0,i=e.length;n<i;n++)(o=e[n]).get(r)&&s.push(o);return s};else if("="===e[1]){if('"'!==(i=t()[1])[0]&&"'"!==i[i.length-1])throw new a(e,"Ivalid comparison target");i=i.slice(1,i.length-1),e=t(),o=function(t,e){var n,o,s,a=[];for(n=0,o=e.length;n<o;n++)(s=e[n]).get(r)===i&&a.push(s);return a}}if("]"!==e[1])throw new a(e,"Invalid attribute predicate")}else{if(e[1])throw new a(null,"Invalid predicate");if(n=e[0]||"","]"!==(e=t())[1])throw new a(e,"Invalid node predicate");o=function(t,e){var r,i,o,s=[];for(r=0,i=e.length;r<i;r++)(o=e[r]).find(n)&&s.push(o);return s}}return o}};function h(t){this.parent_map=null,this.root=t}function p(t,e){var n,r,i,s,c,p,d,g;if(u.hasOwnProperty(e))n=u[e];else{if(Object.keys(u).length>100&&(u={}),"/"===e.charAt(0))throw new a(null,"Cannot use absolute path on element");function v(){return r.shift()}for(r=l(e),n=[],c=v();;){var m=c[1]||"";if(!(p=f[m](v,c)))throw new a(null,o("Invalid path: %s",e));if(n.push(p),!(c=v()))break;if("/"===c[1]&&(c=v()),!c)break}u[e]=n}for(r=[t],g=new h(t),i=0,s=n.length;i<s;i++)d=n[i],r=d(g,r);return r||[]}n.find=function(t,e){var n=p(t,e);return n&&n.length>0?n[0]:null},n.findall=p,n.findtext=function(t,e,n){var r=p(t,e);return r&&r.length>0?r[0].text:n}})),i.define("/node_modules/elementtree/lib/errors.js",(function(t,e,n,r,i){var o=t("util"),s=t("./sprintf").sprintf;function a(t,e){e=e||s("Syntax Error at token %s",t.toString()),this.token=t,this.message=e,Error.call(this,e)}o.inherits(a,Error),n.SyntaxError=a})),i.define("util",(function(t,e,n,r,i){function o(t){return t instanceof Array||Array.isArray(t)||t&&t!==Object.prototype&&o(t.__proto__)}function s(t){return t instanceof RegExp||"object"==typeof t&&"[object RegExp]"===Object.prototype.toString.call(t)}function a(t){if(t instanceof Date)return!0;if("object"!=typeof t)return!1;var e=Date.prototype&&c(Date.prototype),n=t.__proto__&&c(t.__proto__);return JSON.stringify(n)===JSON.stringify(e)}t("events"),n.print=function(){},n.puts=function(){},n.debug=function(){},n.inspect=function(t,e,r,i){var l=[],f=function(t,e){var n={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},r={special:"cyan",number:"blue",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"}[e];return r?"["+n[r][0]+"m"+t+"["+n[r][1]+"m":t};return i||(f=function(t,e){return t}),function t(r,i){if(r&&"function"==typeof r.inspect&&r!==n&&(!r.constructor||r.constructor.prototype!==r))return r.inspect(i);switch(typeof r){case"undefined":return f("undefined","undefined");case"string":var h="'"+JSON.stringify(r).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return f(h,"string");case"number":return f(""+r,"number");case"boolean":return f(""+r,"boolean")}if(null===r)return f("null","null");var p,d,g,v=u(r),m=e?c(r):v;if("function"==typeof r&&0===m.length){if(s(r))return f(""+r,"regexp");var y=r.name?": "+r.name:"";return f("[Function"+y+"]","special")}if(a(r)&&0===m.length)return f(r.toUTCString(),"date");if(o(r)?(d="Array",g=["[","]"]):(d="Object",g=["{","}"]),"function"==typeof r){var b=r.name?": "+r.name:"";p=s(r)?" "+r:" [Function"+b+"]"}else p="";if(a(r)&&(p=" "+r.toUTCString()),0===m.length)return g[0]+p+g[1];if(i<0)return s(r)?f(""+r,"regexp"):f("[Object]","special");l.push(r);var w=m.map((function(e){var n,s;if(r.__lookupGetter__&&(r.__lookupGetter__(e)?s=r.__lookupSetter__(e)?f("[Getter/Setter]","special"):f("[Getter]","special"):r.__lookupSetter__(e)&&(s=f("[Setter]","special"))),v.indexOf(e)<0&&(n="["+e+"]"),s||(l.indexOf(r[e])<0?(s=null===i?t(r[e]):t(r[e],i-1)).indexOf("\n")>-1&&(s=o(r)?s.split("\n").map((function(t){return" "+t})).join("\n").substr(2):"\n"+s.split("\n").map((function(t){return" "+t})).join("\n")):s=f("[Circular]","special")),void 0===n){if("Array"===d&&e.match(/^\d+$/))return s;(n=JSON.stringify(""+e)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(n=n.substr(1,n.length-2),n=f(n,"name")):(n=n.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),n=f(n,"string"))}return n+": "+s}));l.pop();var _=w.reduce((function(t,e){return e.indexOf("\n"),t+e.length+1}),0);return w=_>50?g[0]+(""===p?"":p+"\n ")+" "+w.join(",\n ")+" "+g[1]:g[0]+p+" "+w.join(", ")+" "+g[1]}(t,void 0===r?2:r)},n.log=function(t){},n.pump=null;var u=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e},c=Object.getOwnPropertyNames||function(t){var e=[];for(var n in t)Object.hasOwnProperty.call(t,n)&&e.push(n);return e},l=Object.create||function(t,e){var n;if(null===t)n={__proto__:null};else{if("object"!=typeof t)throw new TypeError("typeof prototype["+typeof t+"] != 'object'");var r=function(){};r.prototype=t,(n=new r).__proto__=t}return void 0!==e&&Object.defineProperties&&Object.defineProperties(n,e),n};n.inherits=function(t,e){t.super_=e,t.prototype=l(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}})),i.define("events",(function(e,n,r,i,o){t.EventEmitter||(t.EventEmitter=function(){});var s=r.EventEmitter=t.EventEmitter,a="function"==typeof Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.toString.call(t)};s.prototype.setMaxListeners=function(t){this._events||(this._events={}),this._events.maxListeners=t},s.prototype.emit=function(t){if("error"===t&&(!this._events||!this._events.error||a(this._events.error)&&!this._events.error.length))throw arguments[1]instanceof Error?arguments[1]:new Error("Uncaught, unspecified 'error' event.");if(!this._events)return!1;var e=this._events[t];if(!e)return!1;if("function"==typeof e){switch(arguments.length){case 1:e.call(this);break;case 2:e.call(this,arguments[1]);break;case 3:e.call(this,arguments[1],arguments[2]);break;default:var n=Array.prototype.slice.call(arguments,1);e.apply(this,n)}return!0}if(a(e)){n=Array.prototype.slice.call(arguments,1);for(var r=e.slice(),i=0,o=r.length;i<o;i++)r[i].apply(this,n);return!0}return!1},s.prototype.addListener=function(t,e){if("function"!=typeof e)throw new Error("addListener only takes instances of Function");if(this._events||(this._events={}),this.emit("newListener",t,e),this._events[t])if(a(this._events[t])){var n;this._events[t].warned||(n=void 0!==this._events.maxListeners?this._events.maxListeners:10)&&n>0&&this._events[t].length>n&&(this._events[t].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[t].length),console.trace()),this._events[t].push(e)}else this._events[t]=[this._events[t],e];else this._events[t]=e;return this},s.prototype.on=s.prototype.addListener,s.prototype.once=function(t,e){var n=this;return n.on(t,(function r(){n.removeListener(t,r),e.apply(this,arguments)})),this},s.prototype.removeListener=function(t,e){if("function"!=typeof e)throw new Error("removeListener only takes instances of Function");if(!this._events||!this._events[t])return this;var n=this._events[t];if(a(n)){var r=n.indexOf(e);if(r<0)return this;n.splice(r,1),0==n.length&&delete this._events[t]}else this._events[t]===e&&delete this._events[t];return this},s.prototype.removeAllListeners=function(t){return t&&this._events&&this._events[t]&&(this._events[t]=null),this},s.prototype.listeners=function(t){return this._events||(this._events={}),this._events[t]||(this._events[t]=[]),a(this._events[t])||(this._events[t]=[this._events[t]]),this._events[t]}})),i.define("/node_modules/elementtree/lib/treebuilder.js",(function(t,e,n,r,i){function o(e){this._data=[],this._elem=[],this._last=null,this._tail=null,e||(e=t("./elementtree").Element),this._factory=e}o.prototype.close=function(){return this._last},o.prototype._flush=function(){if(this._data){if(null!==this._last){var t=this._data.join("");this._tail?this._last.tail=t:this._last.text=t}this._data=[]}},o.prototype.data=function(t){this._data.push(t)},o.prototype.start=function(t,e){this._flush();var n=this._factory(t,e);this._last=n,this._elem.length&&this._elem[this._elem.length-1].append(n),this._elem.push(n),this._tail=null},o.prototype.end=function(t){if(this._flush(),this._last=this._elem.pop(),this._last.tag!==t)throw new Error("end tag mismatch");return this._tail=1,this._last},n.TreeBuilder=o})),i.define("/node_modules/elementtree/lib/parser.js",(function(t,e,n,r,i){t("util");var o=t("./parsers/index");n.get_parser=function(t){if("sax"===t)return o.sax;throw new Error("Invalid parser: "+t)}})),i.define("/node_modules/elementtree/lib/parsers/index.js",(function(t,e,n,r,i){n.sax=t("./sax")})),i.define("/node_modules/elementtree/lib/parsers/sax.js",(function(t,e,n,r,i){t("util");var o=t("sax"),s=t("./../treebuilder").TreeBuilder;function a(t){this.parser=o.parser(!0),this.target=t||new s,this.parser.onopentag=this._handleOpenTag.bind(this),this.parser.ontext=this._handleText.bind(this),this.parser.oncdata=this._handleCdata.bind(this),this.parser.ondoctype=this._handleDoctype.bind(this),this.parser.oncomment=this._handleComment.bind(this),this.parser.onclosetag=this._handleCloseTag.bind(this),this.parser.onerror=this._handleError.bind(this)}a.prototype._handleOpenTag=function(t){this.target.start(t.name,t.attributes)},a.prototype._handleText=function(t){this.target.data(t)},a.prototype._handleCdata=function(t){this.target.data(t)},a.prototype._handleDoctype=function(t){},a.prototype._handleComment=function(t){},a.prototype._handleCloseTag=function(t){this.target.end(t)},a.prototype._handleError=function(t){throw t},a.prototype.feed=function(t){this.parser.write(t)},a.prototype.close=function(){return this.parser.close(),this.target.close()},n.XMLParser=a})),i.define("/node_modules/elementtree/node_modules/sax/package.json",(function(t,e,n,r,i){e.exports={main:"lib/sax.js"}})),i.define("/node_modules/elementtree/node_modules/sax/lib/sax.js",(function(t,e,n,r,i){!function(e){e.parser=function(t,e){return new r(t,e)},e.SAXParser=r,e.SAXStream=s,e.createStream=function(t,e){return new s(t,e)},e.MAX_BUFFER_LENGTH=65536;var n=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];function r(t,i){if(!(this instanceof r))return new r(t,i);!function(t){for(var e=0,r=n.length;e<r;e++)t[n[e]]=""}(this),this.q=this.c="",this.bufferCheckPosition=e.MAX_BUFFER_LENGTH,this.opt=i||{},this.tagCase=this.opt.lowercasetags?"toLowerCase":"toUpperCase",this.tags=[],this.closed=this.closedRoot=this.sawRoot=!1,this.tag=this.error=null,this.strict=!!t,this.noscript=!(!t&&!this.opt.noscript),this.state=w.BEGIN,this.ENTITIES=Object.create(e.ENTITIES),this.attribList=[],this.opt.xmlns&&(this.ns=Object.create(v)),this.position=this.line=this.column=0,_(this,"onready")}e.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"],Object.create||(Object.create=function(t){function e(){this.__proto__=t}return e.prototype=t,new e}),Object.getPrototypeOf||(Object.getPrototypeOf=function(t){return t.__proto__}),Object.keys||(Object.keys=function(t){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e}),r.prototype={end:function(){A(this)},write:function(t){if(this.error)throw this.error;if(this.closed)return T(this,"Cannot write after close. Assign an onready handler.");if(null===t)return A(this);for(var r=0,i="";this.c=i=t.charAt(r++);)switch(this.position++,"\n"===i?(this.line++,this.column=0):this.column++,this.state){case w.BEGIN:"<"===i?this.state=w.OPEN_WAKA:b(a,i)&&(k(this,"Non-whitespace before first tag."),this.textNode=i,this.state=w.TEXT);continue;case w.TEXT:if(this.sawRoot&&!this.closedRoot){for(var o=r-1;i&&"<"!==i&&"&"!==i;)(i=t.charAt(r++))&&(this.position++,"\n"===i?(this.line++,this.column=0):this.column++);this.textNode+=t.substring(o,r-1)}"<"===i?this.state=w.OPEN_WAKA:(!b(a,i)||this.sawRoot&&!this.closedRoot||k("Text data outside of root node."),"&"===i?this.state=w.TEXT_ENTITY:this.textNode+=i);continue;case w.SCRIPT:"<"===i?this.state=w.SCRIPT_ENDING:this.script+=i;continue;case w.SCRIPT_ENDING:"/"===i?(x(this,"onscript",this.script),this.state=w.CLOSE_TAG,this.script="",this.tagName=""):(this.script+="<"+i,this.state=w.SCRIPT);continue;case w.OPEN_WAKA:"!"===i?(this.state=w.SGML_DECL,this.sgmlDecl=""):y(a,i)||(y(l,i)?(this.startTagPosition=this.position-1,this.state=w.OPEN_TAG,this.tagName=i):"/"===i?(this.startTagPosition=this.position-1,this.state=w.CLOSE_TAG,this.tagName=""):"?"===i?(this.state=w.PROC_INST,this.procInstName=this.procInstBody=""):(k(this,"Unencoded <"),this.textNode+="<"+i,this.state=w.TEXT));continue;case w.SGML_DECL:"[CDATA["===(this.sgmlDecl+i).toUpperCase()?(x(this,"onopencdata"),this.state=w.CDATA,this.sgmlDecl="",this.cdata=""):this.sgmlDecl+i==="--"?(this.state=w.COMMENT,this.comment="",this.sgmlDecl=""):"DOCTYPE"===(this.sgmlDecl+i).toUpperCase()?(this.state=w.DOCTYPE,(this.doctype||this.sawRoot)&&k(this,"Inappropriately located doctype declaration"),this.doctype="",this.sgmlDecl=""):">"===i?(x(this,"onsgmldeclaration",this.sgmlDecl),this.sgmlDecl="",this.state=w.TEXT):y(h,i)?(this.state=w.SGML_DECL_QUOTED,this.sgmlDecl+=i):this.sgmlDecl+=i;continue;case w.SGML_DECL_QUOTED:i===this.q&&(this.state=w.SGML_DECL,this.q=""),this.sgmlDecl+=i;continue;case w.DOCTYPE:">"===i?(this.state=w.TEXT,x(this,"ondoctype",this.doctype),this.doctype=!0):(this.doctype+=i,"["===i?this.state=w.DOCTYPE_DTD:y(h,i)&&(this.state=w.DOCTYPE_QUOTED,this.q=i));continue;case w.DOCTYPE_QUOTED:this.doctype+=i,i===this.q&&(this.q="",this.state=w.DOCTYPE);continue;case w.DOCTYPE_DTD:this.doctype+=i,"]"===i?this.state=w.DOCTYPE:y(h,i)&&(this.state=w.DOCTYPE_DTD_QUOTED,this.q=i);continue;case w.DOCTYPE_DTD_QUOTED:this.doctype+=i,i===this.q&&(this.state=w.DOCTYPE_DTD,this.q="");continue;case w.COMMENT:"-"===i?this.state=w.COMMENT_ENDING:this.comment+=i;continue;case w.COMMENT_ENDING:"-"===i?(this.state=w.COMMENT_ENDED,this.comment=S(this.opt,this.comment),this.comment&&x(this,"oncomment",this.comment),this.comment=""):(this.comment+="-"+i,this.state=w.COMMENT);continue;case w.COMMENT_ENDED:">"!==i?(k(this,"Malformed comment"),this.comment+="--"+i,this.state=w.COMMENT):this.state=w.TEXT;continue;case w.CDATA:"]"===i?this.state=w.CDATA_ENDING:this.cdata+=i;continue;case w.CDATA_ENDING:"]"===i?this.state=w.CDATA_ENDING_2:(this.cdata+="]"+i,this.state=w.CDATA);continue;case w.CDATA_ENDING_2:">"===i?(this.cdata&&x(this,"oncdata",this.cdata),x(this,"onclosecdata"),this.cdata="",this.state=w.TEXT):"]"===i?this.cdata+="]":(this.cdata+="]]"+i,this.state=w.CDATA);continue;case w.PROC_INST:"?"===i?this.state=w.PROC_INST_ENDING:y(a,i)?this.state=w.PROC_INST_BODY:this.procInstName+=i;continue;case w.PROC_INST_BODY:if(!this.procInstBody&&y(a,i))continue;"?"===i?this.state=w.PROC_INST_ENDING:y(h,i)?(this.state=w.PROC_INST_QUOTED,this.q=i,this.procInstBody+=i):this.procInstBody+=i;continue;case w.PROC_INST_ENDING:">"===i?(x(this,"onprocessinginstruction",{name:this.procInstName,body:this.procInstBody}),this.procInstName=this.procInstBody="",this.state=w.TEXT):(this.procInstBody+="?"+i,this.state=w.PROC_INST_BODY);continue;case w.PROC_INST_QUOTED:this.procInstBody+=i,i===this.q&&(this.state=w.PROC_INST_BODY,this.q="");continue;case w.OPEN_TAG:y(f,i)?this.tagName+=i:(O(this),">"===i?F(this):"/"===i?this.state=w.OPEN_TAG_SLASH:(b(a,i)&&k(this,"Invalid character in tag name"),this.state=w.ATTRIB));continue;case w.OPEN_TAG_SLASH:">"===i?(F(this,!0),j(this)):(k(this,"Forward-slash in opening tag not followed by >"),this.state=w.ATTRIB);continue;case w.ATTRIB:if(y(a,i))continue;">"===i?F(this):"/"===i?this.state=w.OPEN_TAG_SLASH:y(l,i)?(this.attribName=i,this.attribValue="",this.state=w.ATTRIB_NAME):k(this,"Invalid attribute name");continue;case w.ATTRIB_NAME:"="===i?this.state=w.ATTRIB_VALUE:y(a,i)?this.state=w.ATTRIB_NAME_SAW_WHITE:y(f,i)?this.attribName+=i:k(this,"Invalid attribute name");continue;case w.ATTRIB_NAME_SAW_WHITE:if("="===i)this.state=w.ATTRIB_VALUE;else{if(y(a,i))continue;k(this,"Attribute without value"),this.tag.attributes[this.attribName]="",this.attribValue="",x(this,"onattribute",{name:this.attribName,value:""}),this.attribName="",">"===i?F(this):y(l,i)?(this.attribName=i,this.state=w.ATTRIB_NAME):(k(this,"Invalid attribute name"),this.state=w.ATTRIB)}continue;case w.ATTRIB_VALUE:if(y(a,i))continue;y(h,i)?(this.q=i,this.state=w.ATTRIB_VALUE_QUOTED):(k(this,"Unquoted attribute value"),this.state=w.ATTRIB_VALUE_UNQUOTED,this.attribValue=i);continue;case w.ATTRIB_VALUE_QUOTED:if(i!==this.q){"&"===i?this.state=w.ATTRIB_VALUE_ENTITY_Q:this.attribValue+=i;continue}C(this),this.q="",this.state=w.ATTRIB;continue;case w.ATTRIB_VALUE_UNQUOTED:if(b(d,i)){"&"===i?this.state=w.ATTRIB_VALUE_ENTITY_U:this.attribValue+=i;continue}C(this),">"===i?F(this):this.state=w.ATTRIB;continue;case w.CLOSE_TAG:if(this.tagName)">"===i?j(this):y(f,i)?this.tagName+=i:(b(a,i)&&k(this,"Invalid tagname in closing tag"),this.state=w.CLOSE_TAG_SAW_WHITE);else{if(y(a,i))continue;b(l,i)?k(this,"Invalid tagname in closing tag."):this.tagName=i}continue;case w.CLOSE_TAG_SAW_WHITE:if(y(a,i))continue;">"===i?j(this):k("Invalid characters in closing tag");continue;case w.TEXT_ENTITY:case w.ATTRIB_VALUE_ENTITY_Q:case w.ATTRIB_VALUE_ENTITY_U:switch(this.state){case w.TEXT_ENTITY:var s=w.TEXT,u="textNode";break;case w.ATTRIB_VALUE_ENTITY_Q:s=w.ATTRIB_VALUE_QUOTED,u="attribValue";break;case w.ATTRIB_VALUE_ENTITY_U:s=w.ATTRIB_VALUE_UNQUOTED,u="attribValue"}";"===i?(this[u]+=I(this),this.entity="",this.state=s):y(p,i)?this.entity+=i:(k("Invalid character entity"),this[u]+="&"+this.entity+i,this.entity="",this.state=s);continue;default:throw new Error(this,"Unknown state: "+this.state)}return this.position>=this.bufferCheckPosition&&function(t){for(var r=Math.max(e.MAX_BUFFER_LENGTH,10),i=0,o=0,s=n.length;o<s;o++){var a=t[n[o]].length;if(a>r)switch(n[o]){case"textNode":E(t);break;case"cdata":x(t,"oncdata",t.cdata),t.cdata="";break;case"script":x(t,"onscript",t.script),t.script="";break;default:T(t,"Max buffer length exceeded: "+n[o])}i=Math.max(i,a)}t.bufferCheckPosition=e.MAX_BUFFER_LENGTH-i+t.position}(this),this},resume:function(){return this.error=null,this},close:function(){return this.write(null)},end:function(){return this.write(null)}};try{var i=t("stream").Stream}catch(t){i=function(){}}var o=e.EVENTS.filter((function(t){return"error"!==t&&"end"!==t}));function s(t,e){if(!(this instanceof s))return new s(t,e);i.apply(n),this._parser=new r(t,e),this.writable=!0,this.readable=!0;var n=this;this._parser.onend=function(){n.emit("end")},this._parser.onerror=function(t){n.emit("error",t),n._parser.error=null},o.forEach((function(t){Object.defineProperty(n,"on"+t,{get:function(){return n._parser["on"+t]},set:function(e){if(!e)return n.removeAllListeners(t),n._parser["on"+t]=e;n.on(t,e)},enumerable:!0,configurable:!1})}))}s.prototype=Object.create(i.prototype,{constructor:{value:s}}),s.prototype.write=function(t){return this._parser.write(t.toString()),this.emit("data",t),!0},s.prototype.end=function(t){return t&&t.length&&this._parser.write(t.toString()),this._parser.end(),!0},s.prototype.on=function(t,e){var n=this;return n._parser["on"+t]||-1===o.indexOf(t)||(n._parser["on"+t]=function(){var e=1===arguments.length?[arguments[0]]:Array.apply(null,arguments);e.splice(0,0,t),n.emit.apply(n,e)}),i.prototype.on.call(n,t,e)};var a="\r\n\t ",u="0124356789",c="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",l=c+"_:",f=l+u+"-.",h="'\"",p=u+c+"#",d=a+">",g="http://www.w3.org/XML/1998/namespace",v={xml:g,xmlns:"http://www.w3.org/2000/xmlns/"};function m(t){return t.split("").reduce((function(t,e){return t[e]=!0,t}),{})}function y(t,e){return t[e]}function b(t,e){return!t[e]}a=m(a),u=m(u),c=m(c),l=m(l),f=m(f),h=m(h),p=m(p),d=m(d);var w=0;for(var w in e.STATE={BEGIN:w++,TEXT:w++,TEXT_ENTITY:w++,OPEN_WAKA:w++,SGML_DECL:w++,SGML_DECL_QUOTED:w++,DOCTYPE:w++,DOCTYPE_QUOTED:w++,DOCTYPE_DTD:w++,DOCTYPE_DTD_QUOTED:w++,COMMENT_STARTING:w++,COMMENT:w++,COMMENT_ENDING:w++,COMMENT_ENDED:w++,CDATA:w++,CDATA_ENDING:w++,CDATA_ENDING_2:w++,PROC_INST:w++,PROC_INST_BODY:w++,PROC_INST_QUOTED:w++,PROC_INST_ENDING:w++,OPEN_TAG:w++,OPEN_TAG_SLASH:w++,ATTRIB:w++,ATTRIB_NAME:w++,ATTRIB_NAME_SAW_WHITE:w++,ATTRIB_VALUE:w++,ATTRIB_VALUE_QUOTED:w++,ATTRIB_VALUE_UNQUOTED:w++,ATTRIB_VALUE_ENTITY_Q:w++,ATTRIB_VALUE_ENTITY_U:w++,CLOSE_TAG:w++,CLOSE_TAG_SAW_WHITE:w++,SCRIPT:w++,SCRIPT_ENDING:w++},e.ENTITIES={apos:"'",quot:'"',amp:"&",gt:">",lt:"<"},e.STATE)e.STATE[e.STATE[w]]=w;function _(t,e,n){t[e]&&t[e](n)}function x(t,e,n){t.textNode&&E(t),_(t,e,n)}function E(t){t.textNode=S(t.opt,t.textNode),t.textNode&&_(t,"ontext",t.textNode),t.textNode=""}function S(t,e){return t.trim&&(e=e.trim()),t.normalize&&(e=e.replace(/\s+/g," ")),e}function T(t,e){return E(t),e+="\nLine: "+t.line+"\nColumn: "+t.column+"\nChar: "+t.c,e=new Error(e),t.error=e,_(t,"onerror",e),t}function A(t){return t.state!==w.TEXT&&T(t,"Unexpected end"),E(t),t.c="",t.closed=!0,_(t,"onend"),r.call(t,t.strict,t.opt),t}function k(t,e){t.strict&&T(t,e)}function O(t){t.strict||(t.tagName=t.tagName[t.tagCase]());var e=t.tags[t.tags.length-1]||t,n=t.tag={name:t.tagName,attributes:{}};t.opt.xmlns&&(n.ns=e.ns),t.attribList.length=0}function N(t){var e=t.indexOf(":")<0?["",t]:t.split(":"),n=e[0],r=e[1];return"xmlns"===t&&(n="xmlns",r=""),{prefix:n,local:r}}function C(t){if(t.opt.xmlns){var e=N(t.attribName),n=e.prefix,r=e.local;if("xmlns"===n)if("xml"===r&&t.attribValue!==g)k(t,"xml: prefix must be bound to "+g+"\nActual: "+t.attribValue);else if("xmlns"===r&&"http://www.w3.org/2000/xmlns/"!==t.attribValue)k(t,"xmlns: prefix must be bound to http://www.w3.org/2000/xmlns/\nActual: "+t.attribValue);else{var i=t.tag,o=t.tags[t.tags.length-1]||t;i.ns===o.ns&&(i.ns=Object.create(o.ns)),i.ns[r]=t.attribValue}t.attribList.push([t.attribName,t.attribValue])}else t.tag.attributes[t.attribName]=t.attribValue,x(t,"onattribute",{name:t.attribName,value:t.attribValue});t.attribName=t.attribValue=""}function F(t,e){if(t.opt.xmlns){var n=t.tag,r=N(t.tagName);n.prefix=r.prefix,n.local=r.local,n.uri=n.ns[r.prefix]||r.prefix,n.prefix&&!n.uri&&k(t,"Unbound namespace prefix: "+JSON.stringify(t.tagName));var i=t.tags[t.tags.length-1]||t;n.ns&&i.ns!==n.ns&&Object.keys(n.ns).forEach((function(e){x(t,"onopennamespace",{prefix:e,uri:n.ns[e]})}));for(var o=0,s=t.attribList.length;o<s;o++){var a=t.attribList[o],u=a[0],c=a[1],l=N(u),f=l.prefix,h=l.local,p=n.ns[f]||"",d={name:u,value:c,prefix:f,local:h,uri:p};f&&"xmlns"!=f&&!p&&(k(t,"Unbound namespace prefix: "+JSON.stringify(f)),d.uri=f),t.tag.attributes[u]=d,x(t,"onattribute",d)}t.attribList.length=0}t.sawRoot=!0,t.tags.push(t.tag),x(t,"onopentag",t.tag),e||(t.noscript||"script"!==t.tagName.toLowerCase()?t.state=w.TEXT:t.state=w.SCRIPT,t.tag=null,t.tagName=""),t.attribName=t.attribValue="",t.attribList.length=0}function j(t){if(!t.tagName)return k(t,"Weird empty close tag."),t.textNode+="</>",void(t.state=w.TEXT);var e=t.tags.length,n=t.tagName;t.strict||(n=n[t.tagCase]());for(var r=n;e--&&t.tags[e].name!==r;)k(t,"Unexpected close tag");if(e<0)return k(t,"Unmatched closing tag: "+t.tagName),t.textNode+="</"+t.tagName+">",void(t.state=w.TEXT);t.tagName=n;for(var i=t.tags.length;i-- >e;){var o=t.tag=t.tags.pop();t.tagName=t.tag.name,x(t,"onclosetag",t.tagName);var s={};for(var a in o.ns)s[a]=o.ns[a];var u=t.tags[t.tags.length-1]||t;t.opt.xmlns&&o.ns!==u.ns&&Object.keys(o.ns).forEach((function(e){var n=o.ns[e];x(t,"onclosenamespace",{prefix:e,uri:n})}))}0===e&&(t.closedRoot=!0),t.tagName=t.attribValue=t.attribName="",t.attribList.length=0,t.state=w.TEXT}function I(t){var e,n=t.entity.toLowerCase(),r="";return t.ENTITIES[n]?t.ENTITIES[n]:("#"===n.charAt(0)&&("x"===n.charAt(1)?(n=n.slice(2),r=(e=parseInt(n,16)).toString(16)):(n=n.slice(1),r=(e=parseInt(n,10)).toString(10))),n=n.replace(/^0+/,""),r.toLowerCase()!==n?(k(t,"Invalid character entity"),"&"+t.entity+";"):String.fromCharCode(e))}w=e.STATE}(void 0===n?sax={}:n)})),i.define("stream",(function(t,e,n,r,i){var o=t("events");function s(){o.EventEmitter.call(this)}t("util").inherits(s,o.EventEmitter),e.exports=s,s.Stream=s,s.prototype.pipe=function(t,e){var n=this;function r(e){t.writable&&!1===t.write(e)&&n.pause&&n.pause()}function i(){n.readable&&n.resume&&n.resume()}n.on("data",r),t.on("drain",i),t._isStdio||e&&!1===e.end||(t._pipeCount=t._pipeCount||0,t._pipeCount++,n.on("end",s),n.on("close",a));var o=!1;function s(){o||(o=!0,t._pipeCount--,c(),t._pipeCount>0||t.end())}function a(){o||(o=!0,t._pipeCount--,c(),t._pipeCount>0||t.destroy())}function u(t){if(c(),0===this.listeners("error").length)throw t}function c(){n.removeListener("data",r),t.removeListener("drain",i),n.removeListener("end",s),n.removeListener("close",a),n.removeListener("error",u),t.removeListener("error",u),n.removeListener("end",c),n.removeListener("close",c),t.removeListener("end",c),t.removeListener("close",c)}return n.on("error",u),t.on("error",u),n.on("end",c),n.on("close",c),t.on("end",c),t.on("close",c),t.emit("pipe",n),t}})),i.define("/node_modules/elementtree/lib/constants.js",(function(t,e,n,r,i){n.DEFAULT_PARSER="sax"})),i.define("/lib/modularinputs/inputdefinition.js",(function(t,e,n,r,i){
|
|
|
/*!*/
|
|
|
!function(){var n=t("elementtree"),r=t("./utils");function i(){this.metadata={},this.inputs={}}i.parse=function(t){for(var e=new i,o=n.parse(t).getroot().getchildren(),s=0;s<o.length;s++){var a=o[s];"configuration"===a.tag?e.inputs=r.parseXMLData(a,"stanza"):e.metadata[a.tag]=a.text}return e},e.exports=i}()})),i.define("/lib/modularinputs/event.js",(function(t,e,n,r,i){
|
|
|
/*!*/
|
|
|
!function(){var n=t("elementtree"),r=t("./utils");function i(t){t=r.isUndefined(t)?{}:t,this.data=r.isUndefined(t.data)?null:t.data,this.done=!!r.isUndefined(t.done)||t.done,this.host=r.isUndefined(t.host)?null:t.host,this.index=r.isUndefined(t.index)?null:t.index,this.source=r.isUndefined(t.source)?null:t.source,this.sourcetype=r.isUndefined(t.sourcetype)?null:t.sourcetype,this.stanza=r.isUndefined(t.stanza)?null:t.stanza,this.unbroken=!!r.isUndefined(t.unbroken)||t.unbroken,this.time=r.isUndefined(t.time)?null:t.time}i.formatTime=function(t){return t instanceof Date&&(t=t.valueOf()),t&&null!==t?-1!==t.toString().indexOf(".")?(t=parseFloat(t).toFixed(3)).toString().indexOf(".")>=10?parseFloat(t.toString().substring(0,14)).toFixed(3):t.toString().length<=13||t.toString().indexOf(".")<10?parseFloat(t).toFixed(3):(parseFloat(t.toString().substring(0,14))/1e3).toFixed(3):13===t.toString().length?(parseFloat(t)/1e3).toFixed(3):t.toString().length<=12?parseFloat(t).toFixed(3):parseFloat(t.toString().substring(0,13)/1e3).toFixed(3):null},i.prototype._writeTo=function(t){if(!this.data)throw new Error("Events must have at least the data field set to be written to XML.");var e=n.Element("event");this.stanza&&e.set("stanza",this.stanza),e.set("unbroken",(+this.unbroken).toString()),r.isUndefined(this.time)||null===this.time||(n.SubElement(e,"time").text=i.formatTime(this.time).toString()),"object"==typeof this.data&&(this.data=JSON.stringify(this.data));for(var o=[{tag:"source",text:this.source},{tag:"sourcetype",text:this.sourcetype},{tag:"index",text:this.index},{tag:"host",text:this.host},{tag:"data",text:this.data}],s=0;s<o.length;s++){var a=o[s];a.text&&(n.SubElement(e,a.tag).text=a.text)}!this.done&&r.isUndefined(this.done)||n.SubElement(e,"done");var u=n.tostring(e,{xml_declaration:!1});t.write(u)},e.exports=i}()})),i.define("/lib/modularinputs/eventwriter.js",(function(e,n,r,i,o){
|
|
|
/*!*/
|
|
|
!function(){var r=e("elementtree"),i=e("./utils"),o=e("./logger");function s(e,n){this._out=i.isUndefined(e)?t.stdout:e,this._err=i.isUndefined(n)?t.stderr:n,this._headerWritten=!1}e("stream"),e("../async"),s.prototype.writeEvent=function(t){this._headerWritten||(this._out.write("<stream>"),this._headerWritten=!0);try{t._writeTo(this._out)}catch(t){if("Events must have at least the data field set to be written to XML."===t.message)throw o.warn("",t.message,this._err),t;throw o.error("",t.message,this._err),t}},s.prototype.writeXMLDocument=function(t){var e=r.tostring(t,{xml_declaration:!1});this._out.write(e)},s.prototype.close=function(){this._out.write("</stream>")},n.exports=s}()})),i.define("/lib/modularinputs/logger.js",(function(e,n,r,i,o){
|
|
|
/*!*/
|
|
|
!function(){"use strict";e("./utils");var i=r||this;i.DEBUG="DEBUG",i.INFO="INFO",i.WARN="WARN",i.ERROR="ERROR",i.FATAL="FATAL",i._log=function(e,n,r,i){i=i||t.stderr,n&&n.length>0&&(n+=" ");var o=e+" Modular input "+n+r+"\n";i.write(o)},i.debug=function(t,e,n){try{i._log(i.DEBUG,t,e,n)}catch(t){throw t}},i.info=function(t,e,n){try{i._log(i.INFO,t,e,n)}catch(t){throw t}},i.warn=function(t,e,n){try{i._log(i.WARN,t,e,n)}catch(t){throw t}},i.error=function(t,e,n){try{i._log(i.ERROR,t,e,n)}catch(t){throw t}},i.fatal=function(t,e,n){try{i._log(i.FATAL,t,e,n)}catch(t){throw t}},n.exports=i}()})),i.define("/lib/modularinputs/argument.js",(function(t,e,n,r,i){
|
|
|
/*!*/
|
|
|
!function(){var n=t("elementtree"),r=t("./utils");function i(t){t||(t={}),this.name=r.isUndefined(t.name)?"":t.name,this.description=r.isUndefined(t.description)?null:t.description,this.validation=r.isUndefined(t.validation)?null:t.validation,this.dataType=r.isUndefined(t.dataType)?i.dataTypeString:t.dataType,this.requiredOnEdit=!r.isUndefined(t.requiredOnEdit)&&t.requiredOnEdit,this.requiredOnCreate=!r.isUndefined(t.requiredOnCreate)&&t.requiredOnCreate}i.dataTypeBoolean="BOOLEAN",i.dataTypeNumber="NUMBER",i.dataTypeString="STRING",i.prototype.addToDocument=function(t){var e=n.SubElement(t,"arg");e.set("name",this.name),this.description&&(n.SubElement(e,"description").text=this.description),this.validation&&(n.SubElement(e,"validation").text=this.validation);for(var r=[{tag:"data_type",value:this.dataType},{tag:"required_on_edit",value:this.requiredOnEdit},{tag:"required_on_create",value:this.requiredOnCreate}],i=0;i<r.length;i++)n.SubElement(e,r[i].tag).text=r[i].value.toString().toLowerCase();return e},e.exports=i}()})),i.define("/lib/modularinputs/scheme.js",(function(t,e,n,r,i){
|
|
|
/*!*/
|
|
|
!function(){var n=t("elementtree"),r=t("./utils");function i(t){this.title=r.isUndefined(t)?"":t,this.description=null,this.useExternalValidation=!0,this.useSingleInstance=!1,this.streamingMode=i.streamingModeXML,this.args=[]}t("./argument"),i.streamingModeSimple="SIMPLE",i.streamingModeXML="XML",i.prototype.addArgument=function(t){t&&this.args.push(t)},i.prototype.toXML=function(){var t=n.Element("scheme");n.SubElement(t,"title").text=this.title,this.description&&(n.SubElement(t,"description").text=this.description);for(var e=[{tag:"use_external_validation",value:this.useExternalValidation},{tag:"use_single_instance",value:this.useSingleInstance},{tag:"streaming_mode",value:this.streamingMode}],r=0;r<e.length;r++)n.SubElement(t,e[r].tag).text=e[r].value.toString().toLowerCase();for(var i=n.SubElement(n.SubElement(t,"endpoint"),"args"),o=0;o<this.args.length;o++)this.args[o].addToDocument(i);return t},e.exports=i}()})),i.define("/lib/modularinputs/modularinput.js",(function(t,n,r,i,o){
|
|
|
/*!*/
|
|
|
!function(){var r=t("elementtree"),i=t("url"),o=t("./utils"),s=t("../async"),a=t("./validationdefinition"),u=t("./inputdefinition"),c=(t("./eventwriter"),t("./scheme"),t("../service")),l=t("./logger");function f(){this._inputDefinition=null,this._service=null}f.runScript=function(t,n,i,c,h){t.setup=t.setup||f.prototype.setup,t.start=t.start||f.prototype.start,t.end=t.end||f.prototype.end,t.teardown=t.teardown||f.prototype.teardown;var p=this;c.resume&&c.resume();var d=new e(0);if(1===n.length){var g=setTimeout((function(){h(new Error("Receiving input definitions prior to streaming timed out."),1)}),30500);c.on("data",(function(n){var r=(d=e.concat([d,n])).toString("utf8",0,d.length).trim();if(o.endsWith(r,"</input>")){clearTimeout(g);var a=u.parse(r);t._inputDefinition=a,p._inputDefinition=a,s.chain([function(e){s.parallelEach(Object.keys(t._inputDefinition.inputs),(function(e,n,r){var o=t._inputDefinition.inputs[e];s.chain([function(n){t.start(e,o,n)},function(n){t.streamEvents(e,o,i,n)},function(n){t.end(e,o,n)}],(function(t){r(t,t?1:0)}))}),(function(t){e(t,t?1:0)}))}],(function(t){i._headerWritten&&i.close(),h(t,t?1:0)}))}}))}else if(n.length>=2&&"--scheme"===n[1].toString().toLowerCase()){var v=t.getScheme();if(v)try{i.writeXMLDocument(v.toXML()),h(null,0)}catch(t){l.fatal("","script could not return the scheme, error: "+t,i._err),h(t,1)}else l.fatal("","script returned a null scheme.",i._err),h(null,1)}else if(n.length>=2&&"--validate-arguments"===n[1].toString().toLowerCase()){var m=setTimeout((function(){h(new Error("Receiving validation definition prior to validating timed out."),1)}),30500);c.on("data",(function(n){var u=(d=e.concat([d,n])).toString("utf8",0,d.length).trim();o.endsWith(u,"</items>")&&(clearTimeout(m),s.chain([function(e){try{if(o.isUndefined(t.validateInput))e();else{var n=a.parse(d.toString("utf8",0,d.length));t.validateInput(n,e)}}catch(t){e(t)}}],(function(t){if(t){l.error("",t.message),l.error("","Stack trace for a modular input error: "+t.stack);try{var e=r.Element("error");r.SubElement(e,"message").text=t.message,i.writeXMLDocument(e),h(t,1)}catch(t){h(t,1)}}else h(null,0)})))}))}else{var y="Invalid arguments to modular input script: "+n.join()+"\n";l.error("",y,i._err),h(y,1)}},f.service=function(){if(this._service)return this._service;if(!this._inputDefinition)return null;var t=this._inputDefinition.metadata.server_uri,e=this._inputDefinition.metadata.session_key,n=i.parse(t),r=n.protocol.replace(":",""),o=n.hostname,s=n.port;return this._service=new c({scheme:r,host:o,port:s,token:e}),this._service},f.prototype.setup=function(t){t()},f.prototype.start=function(t,e,n){n()},f.prototype.end=function(t,e,n){n()},f.prototype.teardown=function(t){t()},n.exports=f}()})),i.define("url",(function(t,e,n,r,i){var o=function(t){return t};n.parse=b,n.resolve=function(t,e){return w(_(t,e))},n.resolveObject=_,n.format=w;var s=/^([a-z0-9.+-]+:)/i,a=/:[0-9]+$/,u=["<",">",'"',"`"," ","\r","\n","\t"],c=["{","}","|","\\","^","~","[","]","`"].concat(u),l=["'"],f=["%","/","?",";","#"].concat(c).concat(l),h=["/","@","?","#"].concat(u),p=/^[a-zA-Z0-9][a-z0-9A-Z_-]{0,62}$/,d=/^([a-zA-Z0-9][a-z0-9A-Z_-]{0,62})(.*)$/,g={javascript:!0,"javascript:":!0},v={javascript:!0,"javascript:":!0},m={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},y=t("querystring");function b(t,e,n){if(t&&"object"==typeof t&&t.href)return t;if("string"!=typeof t)throw new TypeError("Parameter 'url' must be a string, not "+typeof t);for(var r={},i=t,c=0,b=i.length;c<b&&-1!==u.indexOf(i.charAt(c));c++);0!==c&&(i=i.substr(c));var _=s.exec(i);if(_){var x=(_=_[0]).toLowerCase();r.protocol=x,i=i.substr(_.length)}if(n||_||i.match(/^\/\/[^@\/]+@[^@\/]+/)){var E="//"===i.substr(0,2);!E||_&&v[_]||(i=i.substr(2),r.slashes=!0)}if(!v[_]&&(E||_&&!m[_])){var S=i.indexOf("@");if(-1!==S){var T=!0;for(c=0,b=h.length;c<b;c++)if(-1!==(k=i.indexOf(h[c]))&&k<S){T=!1;break}T&&(r.auth=i.substr(0,S),i=i.substr(S+1))}var A=-1;for(c=0,b=f.length;c<b;c++){var k;-1!==(k=i.indexOf(f[c]))&&(A<0||k<A)&&(A=k)}-1!==A?(r.host=i.substr(0,A),i=i.substr(A)):(r.host=i,i="");var O=function(t){var e={},n=a.exec(t);return n&&(n=n[0],e.port=n.substr(1),t=t.substr(0,t.length-n.length)),t&&(e.hostname=t),e}(r.host),N=Object.keys(O);for(c=0,b=N.length;c<b;c++){var C=N[c];r[C]=O[C]}if(r.hostname=r.hostname||"",r.hostname.length>255)r.hostname="";else{var F=r.hostname.split(/\./);for(c=0,b=F.length;c<b;c++){var j=F[c];if(j&&!j.match(p)){for(var I="",D=0,R=j.length;D<R;D++)j.charCodeAt(D)>127?I+="x":I+=j[D];if(!I.match(p)){var M=F.slice(0,c),P=F.slice(c+1),L=j.match(d);L&&(M.push(L[1]),P.unshift(L[2])),P.length&&(i="/"+P.join(".")+i),r.hostname=M.join(".");break}}}}r.hostname=r.hostname.toLowerCase();var U=r.hostname.split("."),B=[];for(c=0;c<U.length;++c){var q=U[c];B.push(q.match(/[^A-Za-z0-9_-]/)?"xn--"+o(q):q)}r.hostname=B.join("."),r.host=(r.hostname||"")+(r.port?":"+r.port:""),r.href+=r.host}if(!g[x]){for(c=0,b=l.length;c<b;c++){var V=l[c],$=encodeURIComponent(V);$===V&&($=escape(V)),i=i.split(V).join($)}var H=i.length;for(c=0,b=u.length;c<b;c++){var W=i.indexOf(u[c]);-1!==W&&(H=Math.min(W,H))}i=i.substr(0,H)}var z=i.indexOf("#");-1!==z&&(r.hash=i.substr(z),i=i.slice(0,z));var G=i.indexOf("?");return-1!==G?(r.search=i.substr(G),r.query=i.substr(G+1),e&&(r.query=y.parse(r.query)),i=i.slice(0,G)):e&&(r.search="",r.query={}),i&&(r.pathname=i),m[_]&&r.hostname&&!r.pathname&&(r.pathname="/"),(r.pathname||r.search)&&(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=w(r),r}function w(t){"string"==typeof t&&(t=b(t));var e=t.auth||"";if(e){e=e.split("@").join("%40");for(var n=0,r=h.length;n<r;n++){var i=h[n];e=e.split(i).join(encodeURIComponent(i))}e+="@"}var o=t.protocol||"",s=void 0!==t.host?e+t.host:void 0!==t.hostname&&e+t.hostname+(t.port?":"+t.port:""),a=t.pathname||"",u=t.query&&("object"==typeof t.query&&Object.keys(t.query).length?y.stringify(t.query):"")||"",c=t.search||u&&"?"+u||"",l=t.hash||"";return o&&":"!==o.substr(-1)&&(o+=":"),t.slashes||(!o||m[o])&&!1!==s?(s="//"+(s||""),a&&"/"!==a.charAt(0)&&(a="/"+a)):s||(s=""),l&&"#"!==l.charAt(0)&&(l="#"+l),c&&"?"!==c.charAt(0)&&(c="?"+c),o+s+a+c+l}function _(t,e){if(!t)return e;if(t=b(w(t),!1,!0),e=b(w(e),!1,!0),t.hash=e.hash,""===e.href)return t.href=w(t),t;if(e.slashes&&!e.protocol)return e.protocol=t.protocol,m[e.protocol]&&e.hostname&&!e.pathname&&(e.path=e.pathname="/"),e.href=w(e),e;if(e.protocol&&e.protocol!==t.protocol){if(!m[e.protocol])return e.href=w(e),e;if(t.protocol=e.protocol,!e.host&&!v[e.protocol]){for(var n=(e.pathname||"").split("/");n.length&&!(e.host=n.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==n[0]&&n.unshift(""),n.length<2&&n.unshift(""),e.pathname=n.join("/")}return t.pathname=e.pathname,t.search=e.search,t.query=e.query,t.host=e.host||"",t.auth=e.auth,t.hostname=e.hostname||e.host,t.port=e.port,void 0===t.pathname&&void 0===t.search||(t.path=(t.pathname?t.pathname:"")+(t.search?t.search:"")),t.slashes=t.slashes||e.slashes,t.href=w(t),t}var r=t.pathname&&"/"===t.pathname.charAt(0),i=void 0!==e.host||e.pathname&&"/"===e.pathname.charAt(0),o=i||r||t.host&&e.pathname,s=o,a=t.pathname&&t.pathname.split("/")||[],u=(n=e.pathname&&e.pathname.split("/")||[],t.protocol&&!m[t.protocol]);if(u&&(delete t.hostname,delete t.port,t.host&&(""===a[0]?a[0]=t.host:a.unshift(t.host)),delete t.host,e.protocol&&(delete e.hostname,delete e.port,e.host&&(""===n[0]?n[0]=e.host:n.unshift(e.host)),delete e.host),o=o&&(""===n[0]||""===a[0])),i)t.host=e.host||""===e.host?e.host:t.host,t.hostname=e.hostname||""===e.hostname?e.hostname:t.hostname,t.search=e.search,t.query=e.query,a=n;else if(n.length)a||(a=[]),a.pop(),a=a.concat(n),t.search=e.search,t.query=e.query;else if("search"in e)return u&&(t.hostname=t.host=a.shift(),(p=!!(t.host&&t.host.indexOf("@")>0)&&t.host.split("@"))&&(t.auth=p.shift(),t.host=t.hostname=p.shift())),t.search=e.search,t.query=e.query,void 0===t.pathname&&void 0===t.search||(t.path=(t.pathname?t.pathname:"")+(t.search?t.search:"")),t.href=w(t),t;if(!a.length)return delete t.pathname,t.search?delete t.path:t.path="/"+t.search,t.href=w(t),t;for(var c=a.slice(-1)[0],l=(t.host||e.host)&&("."===c||".."===c)||""===c,f=0,h=a.length;h>=0;h--)"."==(c=a[h])?a.splice(h,1):".."===c?(a.splice(h,1),f++):f&&(a.splice(h,1),f--);if(!o&&!s)for(;f--;f)a.unshift("..");!o||""===a[0]||a[0]&&"/"===a[0].charAt(0)||a.unshift(""),l&&"/"!==a.join("/").substr(-1)&&a.push("");var p,d=""===a[0]||a[0]&&"/"===a[0].charAt(0);return u&&(t.hostname=t.host=d?"":a.length?a.shift():"",(p=!!(t.host&&t.host.indexOf("@")>0)&&t.host.split("@"))&&(t.auth=p.shift(),t.host=t.hostname=p.shift())),(o=o||t.host&&a.length)&&!d&&a.unshift(""),t.pathname=a.join("/"),void 0===t.pathname&&void 0===t.search||(t.path=(t.pathname?t.pathname:"")+(t.search?t.search:"")),t.auth=e.auth||t.auth,t.slashes=t.slashes||e.slashes,t.href=w(t),t}})),i.define("querystring",(function(t,e,n,r,i){var o="function"==typeof Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.toString.call(t)};
|
|
|
/*!
|
|
|
* querystring
|
|
|
* Copyright(c) 2010 TJ Holowaychuk <tj@vision-media.ca>
|
|
|
* MIT Licensed
|
|
|
*/n.version="0.3.1";var s=Object.prototype.toString,a=/[^0-9]/;n.parse=function(t){if(null==t||""==t)return{};function e(t,e){if(0==t[e].length)return t[e]={};var n={};for(var r in t[e])n[r]=t[e][r];return t[e]=n,n}return String(t).split("&").reduce((function(t,n){try{n=decodeURIComponent(n.replace(/\+/g," "))}catch(t){}var r=n.indexOf("="),i=function(t){for(var e,n,r=t.length,i=0;i<r;++i)if("]"==(n=t[i])&&(e=!1),"["==n&&(e=!0),"="==n&&!e)return i}(n),s=n.substr(0,i||r),u=(u=n.substr(i||r,n.length)).substr(u.indexOf("=")+1,u.length),c=t;if(""==s&&(s=n,u=""),~s.indexOf("]")){var l=s.split("[");l.length,function t(n,r,i){var s=n.shift();s?(obj=r[i]=r[i]||[],"]"==s?o(obj)?""!=u&&obj.push(u):"object"==typeof obj?obj[Object.keys(obj).length]=u:obj=r[i]=[r[i],u]:~s.indexOf("]")?(s=s.substr(0,s.length-1),a.test(s)&&o(obj)&&(obj=e(r,i)),t(n,obj,s)):(a.test(s)&&o(obj)&&(obj=e(r,i)),t(n,obj,s))):o(r[i])?r[i].push(u):"object"==typeof r[i]||void 0===r[i]?r[i]=u:r[i]=[r[i],u]}(l,c,"base")}else{if(a.test(s)&&o(c.base)){var f={};for(var h in c.base)f[h]=c.base[h];c.base=f}!function(t,e,n){var r=t[e];void 0===r?t[e]=n:o(r)?r.push(n):t[e]=[r,n]}(c.base,s,u)}return t}),{base:{}}).base};var u=n.stringify=function(t,e){return o(t)?function(t,e){var n=[];if(!e)throw new TypeError("stringify expects an object");for(var r=0;r<t.length;r++)n.push(u(t[r],e+"[]"));return n.join("&")}(t,e):"[object Object]"==s.call(t)?function(t,e){for(var n,r=[],i=Object.keys(t),o=0,s=i.length;o<s;++o)n=i[o],r.push(u(t[n],e?e+"["+encodeURIComponent(n)+"]":encodeURIComponent(n)));return r.join("&")}(t,e):"string"==typeof t?function(t,e){if(!e)throw new TypeError("stringify expects an object");return e+"="+encodeURIComponent(t)}(t,e):e}})),i.define("/lib/platform/client/jquery_http.js",(function(t,e,n,r,i){!function(){var e=t("../../http"),r=t("../../utils"),i=function(t){for(var e={},n=t.split("\n"),i=0;i<n.length;i++)if(""!==r.trim(n[i])){var o=n[i].split(": ");e[o[0]]=o[1]}return e};(n||this).JQueryHttp=e.extend({init:function(t){this._super(t)},makeRequest:function(t,e,n){var o=this,s={url:t,type:e.method,headers:e.headers,data:e.body||"",timeout:e.timeout||0,dataType:"json",success:r.bind(this,(function(t,e,r){var o={statusCode:r.status,headers:i(r.getAllResponseHeaders())},s=this._buildResponse(e,o,t);n(s)})),error:function(t,e,r){var s={statusCode:t.status,headers:i(t.getAllResponseHeaders())};"abort"===e&&(s.statusCode="abort",t.responseText="{}");var a=JSON.parse(t.responseText),u=o._buildResponse(r,s,a);n(u)}};return $.ajax(s)},parseJson:function(t){return t}})}()})),i.define("/lib/platform/client/proxy_http.js",(function(t,e,n,r,i){!function(){var e=t("../../http"),r=t("../../utils"),i=n||this,o=function(t){for(var e={},n=t.split("\n"),i=0;i<n.length;i++)if(""!==r.trim(n[i])){var o=n[i].split(": ");e[o[0]]=o[1]}return e};function s(t){for(var e=s.options,n=e.parser[e.strictMode?"strict":"loose"].exec(t),r={},i=14;i--;)r[e.key[i]]=n[i]||"";return r[e.q.name]={},r[e.key[12]].replace(e.q.parser,(function(t,n,i){n&&(r[e.q.name][n]=i)})),r}s.options={strictMode:!1,key:["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],q:{name:"queryKey",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},parser:{strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/}};var a=/[.*+?|()\[\]{}\\$\^]/g;i.ProxyHttp=e.extend({init:function(t){this.prefix=t,this._super()},makeRequest:function(t,e,n){e.headers["X-ProxyDestination"]=t;var r=s(t),i=(r.protocol?r.protocol:"")+"://"+r.authority;t=t.replace(new RegExp((i||"").replace(a,"\\$&"),"i"),""),t=this.prefix+t;var u=this,c={url:t,type:e.method,headers:e.headers,data:e.body||"",timeout:e.timeout||0,dataType:"text",success:function(t,e,r){if(!l.wasAborted){var i={statusCode:r.status,headers:o(r.getAllResponseHeaders())},s=u._buildResponse(e,i,t);n(s)}},error:function(t,e,r){if(!l.wasAborted){var i={statusCode:t.status,headers:o(t.getAllResponseHeaders())};"abort"===e&&(i.statusCode="abort",t.responseText="{}");var s=t.responseText,a=u._buildResponse(r,i,s);n(a),"abort"===e&&(l.wasAborted=!0)}}},l=$.ajax(c);return l},parseJson:function(t){return JSON.parse(t)}}),i.SplunkWebHttp=i.ProxyHttp.extend({init:function(){this._super("/en-US/splunkd/__raw")}})}()})),i.define("/lib/entries/browser.ui.entry.js",(function(t,e,n,r,i){!function(e){var n=t("../../contrib/script");window.splunkjs||(window.splunkjs={}),window.splunkjs.UI||(window.splunkjs.UI={});var r=window.splunkjs.UI,i=0,o=function(t,e,r){if(!t)throw new Error("Must specify a path to load from.");n(t,e,r=r||function(){})};r.loadTimeline=function(t,e){var n="timeline"+i++;return o(t,n,e),n},r.loadCharting=function(t,e){var n="charting"+i++;return o(t,n,e),n},r.load=function(t,e){if(!t)throw new Error("Must specify paths to load components from");e=e||function(){};var r="all"+r++;return n(t,r,(function(){e()})),r},r.ready=function(t,e){e=e||function(){},n.ready(t,e)}}()})),i.define("/contrib/script.js",(function(t,e,n,r,i){
|
|
|
/*!
|
|
|
* $script.js Async loader & dependency manager
|
|
|
* https://github.com/ded/script.js
|
|
|
* (c) Dustin Diaz, Jacob Thornton 2011
|
|
|
* License: MIT
|
|
|
*/
|
|
|
!function(t,n){void 0!==e?e.exports=n():this.$script=n()}(0,(function(){function t(t,e,n){for(n=0,j=t.length;n<j;++n)if(!e(t[n]))return d;return 1}function e(e,n){t(e,(function(t){return!n(t)}))}function n(o,s,a){function c(t){return t.call?t():l[t]}function d(){if(!--b)for(var n in l[y]=1,m&&m(),h)t(n.split("|"),c)&&!e(h[n],c)&&(h[n]=[])}o=o[g]?o:[o];var v=s&&s.call,m=v?s:a,y=v?o.join(""):s,b=o.length;return setTimeout((function(){e(o,(function(t){if(p[t])return y&&(f[y]=1),2==p[t]&&d();p[t]=1,y&&(f[y]=1),r(!u.test(t)&&i?i+t+".js":t,d)}))}),0),n}function r(t,e){var n=s.createElement("script"),r=d;n.onload=n.onerror=n[b]=function(){n[m]&&!/^c|loade/.test(n[m])||r||(n.onload=n[b]=null,r=1,p[t]=2,e())},n.async=1,n.src=t,a.insertBefore(n,a.firstChild)}var i,o=this,s=document,a=s.getElementsByTagName("head")[0],u=/^https?:\/\//,c=o.$script,l={},f={},h={},p={},d=!1,g="push",v="DOMContentLoaded",m="readyState",y="addEventListener",b="onreadystatechange";return!s[m]&&s[y]&&(s[y](v,(function t(){s.removeEventListener(v,t,d),s[m]="complete"}),d),s[m]="loading"),n.get=r,n.order=function(t,e,r){!function i(o){o=t.shift(),t.length?n(o,i):n(o,e,r)}()},n.path=function(t){i=t},n.ready=function(r,i,o){r=r[g]?r:[r];var s=[];return!e(r,(function(t){l[t]||s[g](t)}))&&t(r,(function(t){return l[t]}))?i():function(t){h[t]=h[t]||[],h[t][g](i),o&&o(s)}(r.join("|")),n},n.noConflict=function(){return o.$script=c,this},n}))})),i.define("/browser.entry.js",(function(t,e,n,r,i){var o,s,a,u,c,l;o=window.splunkjs,s=t("../../index"),a=t("../../lib/platform/client/jquery_http").JQueryHttp,u=t("../../lib/platform/client/proxy_http"),c=u.ProxyHttp,l=u.SplunkWebHttp,window.splunkjs=s,window.splunkjs.ProxyHttp=c,window.splunkjs.JQueryHttp=a,window.splunkjs.SplunkWebHttp=l,window.splunkjs.noConflict=function(t){return window.splunkjs=o,s},t("../../lib/entries/browser.ui.entry")})),i("/browser.entry.js")}).call(this,n(113),n(114).Buffer)},"stubs/i18n":function(t,e,n){var r,i;r=[n("contrib/strftime"),n("shim/splunk.util")],void 0===(i=function(){window.locale_name()in{ko_KR:!0,zh_CN:!0,zh_TW:!0}&&(window._i18n_locale.date_formats.short={pattern:"yy/MM/dd",format:"%(yy)s/%(MM)s/%(dd)s"},window._i18n_locale.date_formats.medium={pattern:"yyyy/MM/dd",format:"%(yyyy)s/%(MM)s/%(dd)s"},window._i18n_locale.time_formats.short={pattern:"H:mm",format:"%(H)s:%(mm)s"},window._i18n_locale.time_formats.medium={pattern:"H:mm:ss",format:"%(H)s:%(mm)s:%(ss)s"});var t=[[/^ccc MMM d$/,"M/d (ccc)"],[/^YYYY-MM/,"YYYY/MM"],[/MM-dd/,"MM/dd"]],e={ja_JP:t,ko_KR:t,zh_CN:t,zh_TW:t},n=[["MMM d","d MMM"]],r=window.format_date;return window.format_date=function(t,i){i=i||"medium";var o,s,a=window.locale_name();if(i&&"string"==typeof i&&window.locale_uses_day_before_month())for(s=n,o=0;o<s.length;o++)i=i.replace(s[o][0],s[o][1]);if(i&&"string"==typeof i&&a in e)for(s=e[a],o=0;o<s.length;o++){var u=s[o];i=i.replace(u[0],u[1])}return r(t,i)},{_:window.gettext,ungettext:window.ungettext,format_decimal:window.format_decimal,format_number:window.format_number,format_percent:window.format_percent,format_scientific:window.format_scientific,format_date:window.format_date,format_datetime:window.format_datetime,format_time:window.format_time,format_datetime_microseconds:window.format_datetime_microseconds,format_time_microseconds:window.format_time_microseconds,locale_uses_day_before_month:window.locale_uses_day_before_month,format_datetime_range:window.format_datetime_range,locale_name:window.locale_name,DateTime:window.DateTime,moment_install:window.moment_install,numeral_install:window.numeral_install,jQuery_ui_datepicker_install:window.jQuery_ui_datepicker_install}}.apply(e,r))||(t.exports=i)},"stubs/splunk.config":function(t,e,n){var r;void 0===(r=function(){return window.$C}.call(e,n,e,t))||(t.exports=r)},"util/Ticker":function(t,e,n){var r,i;r=[n("require/underscore"),n("require/backbone")],void 0===(i=function(t,e){var n=function(e){e||(e={}),this.interval=e.interval||1e3,this.cid=t.uniqueId("ticker"),e.params&&(this.params=e.params),e.tick&&this.tick(),e.start&&this.start()};return t.extend(n.prototype,e.Events,{start:function(e){return!this._intervalId&&(e&&this.tick(),this._intervalId=setInterval(t.bind(this.tick,this),this.interval),!0)},stop:function(t){return!!this._intervalId&&(t&&this.tick(),clearInterval(this._intervalId),delete this._intervalId,!0)},restart:function(t){t||(t={}),this.stop(),t.interval&&(this.interval=t.interval),t.params&&(this.params=t.params),this.start(t.tick)},tick:function(e){e||(e=this.params);var n=t.isArray(e)?e:[e];this.trigger.apply(this,["tick"].concat(n))}}),n}.apply(e,r))||(t.exports=i)},"util/ajax_logging":function(t,e,n){var r,i;r=[n("shim/jquery"),n("require/underscore"),n("shim/splunk.logger"),n("shim/splunk.util")],void 0===(i=function(t,e,n,r){var i=r.getConfigValue("JS_LOGGER_MODE","None"),o=r.getConfigValue("JS_LOGGER_LEVEL","INFO");if("None"!==i&&"DEBUG"===o){var s=n.getLogger("ajax_logging.js"),a=[n.mode.Server.END_POINT,"services/messages"];t.ajaxPrefilter((function(t,n,r){e(a).every((function(e){return-1===t.url.indexOf(e)}))&&(s.debug("sending AJAX request to ",t.url),s.trace())})),t.ajaxPrefilter((function(t,n,r){e(a).every((function(e){return-1===t.url.indexOf(e)}))&&(s.debug("sending AJAX request to ",t.url),s.trace())}))}}.apply(e,r))||(t.exports=i)},"util/console":function(t,e,n){var r,i;r=[n("require/underscore"),n("util/console_dev"),n("shim/splunk.logger"),n("shim/splunk.util")],void 0===(i=function(t,e,n,r){return n.getLogger(r.getConfigValue("USERNAME","")+":::"+window.location.href)}.apply(e,r))||(t.exports=i)},"util/console_dev":function(t,e,n){var r;void 0===(r=function(){function t(t,e){return function(){t.apply(e,arguments)}}var e,n=window.console,r=n,i=["log","trace","error","warn","info","debug"],o=function(){};try{r.DEBUG_ENABLED=!0}catch(t){r={DEBUG_ENABLED:!0}}for(e=0;e<i.length;e++){var s=i[e];"function"!=typeof r[s]&&(void 0!==n&&"function"==typeof n[s]?r[s]=t(n[s],n):r[s]=o)}return r}.apply(e,[]))||(t.exports=r)},"util/general_utils":function(t,e,n){var r,i;r=[n("shim/jquery"),n("require/underscore"),n("shim/splunk.util"),n("util/math_utils")],void 0===(i=function(t,e,n,r){var i=function(t){return e.each(t,(function(n,r){void 0===n?delete t[r]:e.isObject(n)&&i(n)})),t},o=function(t){var n,r=t.split("");"*"!==e.first(r)&&r.unshift("^"),"*"!==e.last(r)&&r.push("$"),t=r.join("").replace(/\*/g,".*");try{n=new RegExp(t)}catch(t){}return n},s=function(t){return!0===(t="string"==typeof t?t.toLowerCase():t)||1===t||"true"===t||"1"===t||"on"===t||"yes"===t},a=function(t){return!1===(t="string"==typeof t?t.toLowerCase():t)||0===t||"false"===t||"0"===t||"off"===t||"no"===t},u=function(t){return s(t)||a(t)},c=function(t,e){return e||(e={}),!!s(t)||!a(t)&&(!!e.hasOwnProperty("default")&&("boolean"==typeof e.default?e.default:c(e.default)))},l=/(\'.*?\')|(\".*?\")|([^\s]+)/g,f=/^(\".*\")$|^(\'.*\')$/;return{VALUES_REGEX:l,QUOTES_REGEX:f,compareWithDirection:function(t,e,n){var r=0;return t==e?r:(r=t<e?-1:1,n?r:-r)},unionWithKey:function(t,n,r){var i=e.union(t,n);return e.map(i,(function(t){var e={};return e[r]=t,e}))},differenceWithKey:function(t,n,r){var i=e.difference(t,n);return e.map(i,(function(t){var e={};return e[r]=t,e}))},filterObjectByRegexes:function(t,n,r){r=r||{},e(n).isArray()||(n=[n]),n=e.map(n,(function(t){return t instanceof RegExp?t:new RegExp(t)}));var i,o={},s=e.isString(r.strip)?r.strip:"",a=!!r.allowEmpty,u=!!r.allowObject;return e.each(t,(function(t,r){i=r.replace(s,""),o[i]||e.each(n,(function(n){if(n.test(r)&&!e.isUndefined(t)){if(e.isString(t)&&""==t&&!a||e.isObject(t)&&!u)return;o[i]=t}}),this)}),this),o},deleteFromObjectByRegexes:function(n,r){e(r).isArray()||(r=[r]),r=e.map(r,(function(t){return t instanceof RegExp?t:new RegExp(t)}));var i=t.extend(!0,{},n);return e.each(i,(function(t,n){e.each(r,(function(t){t.test(n)&&delete i[n]}),this)}),this),i},stripUndefinedAttrs:i,globber:o,valuesAreNumeric:function(t){var n=0,i=0;return e(t).each((function(t){(e(t).isArray()&&(t=t.length>0?t[0]:null),e(t).isNull())||(i++,(!!r.strictParseFloat(t)||r.isCommaSeparatedNumber(t))&&n++)})),0!==i&&n>=i/2},valuesAreNumericAndFinite:function(t){var n=!0;return e(t).each((function(t){!isNaN(t)&&isFinite(t)||(n=!1)})),n},getPercentiles:function(t,e,n){if(0===t.length)return{upper:null,lower:null};var r=function(t,e){var n=function(t,e){var n=t*(e-1)+1,r=Math.floor(n);return[n,r,n-r]}(t,e.length),r=(n[0],n[1]),i=n[2];return 0===r||1===e.length?e[0]:r===e.length-1?e[e.length-1]:e[r]+i*(e[r+1]-e[r])};return{lower:r(e,t),upper:r(n,t)}},transferKey:function(t,n,r){e.isUndefined(t[n])||(t[r]=t[n],delete t[n])},convertNumToString:function(t){return t?t.toString().replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1,"):null},stringToArray:function(e){if(!e)return!1;var r=(e=t.trim(e)).length;return"["===e.charAt(0)&&"]"===e.charAt(r-1)&&(/^\[\s*\]$/.test(e)?[]:(e=e.substr(1,r-2),n.stringToFieldList(e)))},invert:function(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[t[n]]=n);return e},isValidPivotSearch:function(t){return!!/^\s*\|\s*pivot\s+/.test(t)&&2===(t=(t=t.replace(/(\\"|\\')/g,"")).replace(/"[^"]*"/g,"").replace(/'[^']*'/g,"")).split("|").length},getMouseSelection:function(){return window.getSelection?window.getSelection().toString():document.selection?document.selection.createRange().text:null},normalizeBoolean:c,isBooleanEquivalent:u,checkEquality:function(t,n){return u(t)&&u(n)?c(t)===c(n):e.isEqual(t,n)},isFuzzySubset:function(t,n){return n.length||(n=["*"]),e(t).filter((function(t){var r=o(t.toString());return e(n).find((function(t){return null!==t.toString().match(r)}))})).length==t.length},asArray:function(t){return null==t?[]:e.isArray(t)?t:[t]},generateFilterRegex:function(t){var r=(t=n.escapeRegex(t))?t.match(l):[];if(r.length){var i=e.chain(r).map((function(t){if(t.match(f)){var e=t.length;t=t.substring(1,e-1)}return["(?=.*",t,")"].join("")})).join("").value();return new RegExp("^"+i,"im")}return new RegExp(".*")},parseBooleanOrInt:function(t){return r.isInteger(t)?parseInt(t,10):c(t)},generateUUID:function(){var t=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var n=(t+16*Math.random())%16|0;return t=Math.floor(t/16),("x"==e?n:3&n|8).toString(16)}))},formatSize:function(t,e){var n={size:t,format:e||"MB"};if(!isNaN(t)){var r=t/1024,i=r/1024,o=-1!==r.toString().indexOf(".");-1!==i.toString().indexOf(".")?o||(n={size:r,format:"GB"}):n={size:i,format:"TB"}}return n},convertSecondsToPeriod:function(t){var e={value:1*t,format:"Seconds"};return isNaN(t)||(t%86400==0?(e.value=t/86400,e.format="Days"):t%3600==0?(e.value=t/3600,e.format="Hours"):t%60==0&&(e.value=t/60,e.format="Minutes")),e},formatSizeForSave:function(t,e){var n=t;return isNaN(t)||("TB"===e?n*=1048576:"GB"===e&&(n*=1024),-1!==n.toString().indexOf(".")&&(n=Math.floor(n))),n},convertPeriodToSec:function(t,e){var n=1*t;return isNaN(t)||("Days"===e?n*=86400:"Hours"===e?n*=3600:"Minutes"===e&&(n*=60),-1!==n.toString().indexOf(".")&&(n=Math.floor(n))),n}}}.apply(e,r))||(t.exports=i)},"util/math_utils":function(t,e,n){var r,i;r=[n("require/underscore")],void 0===(i=function(t){var e=/(^[-+]?[0-9]*[.]?[0-9]*$)|(^[-+]?[0-9][.]?[0-9]*e[-+]?[0-9][0-9]*$)/i,n=/(^[-+]?([0]|([1-9][0-9]{0,2})|(([1-9][0-9]{0,2}[,])([0-9]{3}[,])*[0-9]{3}))(([.][0-9]+)?)$)/,r=function(t){return e.test(t)?parseFloat(t):NaN};return{strictParseFloat:r,isCommaSeparatedNumber:function(t){return!!n.test(t)},roundToDecimal:function(t,e){return void 0===e||0==+e?Math.round(t):(t=+t,e=+e,isNaN(t)||"number"!=typeof e||e%1!=0?NaN:(t=t.toString().split("e"),+((t=(t=Math.round(+(t[0]+"e"+(t[1]?+t[1]-e:-e)))).toString().split("e"))[0]+"e"+(t[1]?+t[1]+e:e))))},isInteger:function(t){var e=r(t);return!isNaN(e)&&e%1==0},nearestMatchAndIndexInArray:function(e,n){var r,i;return t.each(n,(function(t,n){(null==r||Math.abs(e-t)<Math.abs(r-e))&&(r=t,i=n)})),{value:r,index:i}},nearestPowerOfTen:function(t){return Math.pow(10,Math.floor(Math.log(t)/Math.LN10))},isLessThanMinSafeInt:function(t){return"number"==typeof t&&t<=-9007199254740991},isGreaterThanMaxSafeInt:function(t){return"number"==typeof t&&t>=9007199254740991},stripFloatingPointErrors:function(t){return parseFloat(t.toPrecision(12))},convertToTwoDecimalPercentage:function(t,e){return(parseFloat(t)/e*100).toFixed(2)}}}.apply(e,r))||(t.exports=i)},"util/splunkd_utils":function(t,e,n){var r,i;r=[n("shim/jquery"),n("require/underscore"),n("shim/splunk.util"),n("stubs/splunk.config"),n("util/general_utils")],void 0===(i=function(t,e,n,r,i){var o=function(t,e){e=e||{};var n=/^\/services/.test(t),i=/^\/.*/.test(t);if(/^http[s]?:\/\//.test(t))return t;if(i&&!n)return t;if(i&&n)return r.SPLUNKD_PATH+t;if(!e.app&&!e.owner)return r.SPLUNKD_PATH+"/services/"+t;var o=e.owner||"-",s=e.app||"-";return e.sharing=(e.sharing||"").toLowerCase(),"app"===e.sharing||"global"===e.sharing?o="nobody":"system"===e.sharing&&(o="nobody",s="system"),r.SPLUNKD_PATH+"/servicesNS/"+encodeURIComponent(o)+"/"+encodeURIComponent(s)+"/"+t},s=function(t,n,r){t=t.toLowerCase();var i=n.indexOf("~!~{"),o=n.lastIndexOf("}~!~"),s=n;if(-1!=i&&-1!=o)try{var a=n.slice(i+3,o+1);s=JSON.parse(a).errorMessageEnglish}catch(t){}return{key:e.uniqueId("splunkd_"+t),type:t,message:s,text:s,help:r}},a=function(t){return t?e(t).map((function(t){return s(t.type,t.text,t.help||"")})):[]},u=function(t){for(var e={},n=t.split("\n"),r=0;r<n.length;r++)if(""!==n[r].trim()){var i=n[r].split(": ");e[i[0]]=i[1]}return e};return{RISKY_COMMAND:"risky_command",FATAL:"fatal",ERROR:"error",WARNING:"warn",INFO:"info",NOT_FOUND:"404",NETWORK_ERROR:"network_error",SYSTEM:"system",GLOBAL:"global",APP:"app",USER:"user",NOBODY:"nobody",WILDCARD:"-",VERBOSE:"verbose",FAST:"fast",SMART:"smart",VALUES_REGEX:i.VALUES_REGEX,QUOTES_REGEX:i.QUOTES_REGEX,DEFAULT_LOCALE:"en-US",fullpath:o,prepareSyncOptions:function(e,n){var r={},i={data:{output_mode:"json"}};return e&&e.data&&(r=t.extend(r,{app:e.data.app||void 0,owner:e.data.owner||void 0,sharing:e.data.sharing||void 0}),delete e.data.app,delete e.data.owner,delete e.data.sharing),i.url=o(n,r),t.extend(!0,i,e||{})},nameFromString:function(t){return(t=t||"").toLowerCase().replace(/\s/g,"_").replace(/\W/g,"")},quoteSearchFilterValue:function(t){return JSON.stringify(String(t))},createSearchFilterString:function(t,n,r){var o=t&&t.match(i.VALUES_REGEX)||[];return r=r||{},e(n).map((function(t){if(o.length){var n="("+e.chain(o).map((function(e){if(e.match(i.QUOTES_REGEX)){var n=e.length;e=e.substring(1,n-1)}return[t,'="*',e.replace(/'/g,"\\'").replace(/"/g,'\\"'),'*"'].join("")}),this).join(" AND ").value();return r.conditions&&r.conditions[t]&&(n+=" AND "+r.conditions[t]),n+")"}return[t,"=*"].join("")}),this).join(" OR ")},createSearchFilterObj:function(t,n){var r=t&&t.match(i.VALUES_REGEX)||[],o={};if(r.length){var s=[];e(r).each((function(t){if(t.match(i.QUOTES_REGEX)){var e=t.length;t=t.substring(1,e-1)}s.push(t.replace(/'/g,"\\'").replace(/"/g,'"'))}),this),e(n).each((function(t){o[t]=s}),this)}return o},parseError:function(t){var n,r={};if(t.responseText){try{n=JSON.parse(t.responseText)}catch(t){n={}}n.messages&&e.each(n.messages,(function(t){r["splunkD:"+t.type]=t.text}))}else r=t;return r},parseMessagesObject:a,createMessageObject:s,messagesContainsOneOfTypes:function(t,n){if(t)for(var r=0;r<t.length;r++)if(-1!=e.indexOf(n,t[r].type))return!0;return!1},addAnchorsToWildcardArray:function(t){return e.map(t,(function(t){return/^\^/.test(t)?t:"^"+t}))},createSplunkDMessage:function(t,e){return{messages:[{type:t,text:e}]}},getSharingLabel:function(t){switch(t){case"user":return e("Private").t();case"app":return e("App").t();case"global":case"system":return e("Global").t()}},getPermissionLabel:function(t,r){switch(t){case"user":return n.sprintf(e("Private. Owned by %s.").t(),r);case"app":return n.sprintf(e("Shared in App. Owned by %s.").t(),r);case"global":case"system":return n.sprintf(e("Shared Globally. Owned by %s.").t(),r)}return""},normalizeType:function(t){return"fatal"===t?"error":"warn"===t?"warning":t},filterMessagesByTypes:function(t,n){var r=[];if(t)for(var i=0;i<t.length;i++)-1!=e.indexOf(n,t[i].type)&&r.push(t[i]);return r},xhrErrorResponseParser:function(r,i){var o={},u=!0,c=[];if(i=i||e("object from SplunkD").t(),r.hasOwnProperty("responseText")&&r.hasOwnProperty("getResponseHeader")){var l=r.getResponseHeader("Content-Type");if(l&&l.indexOf("application/json")>-1&&r.responseText)try{o=JSON.parse(r.responseText)}catch(t){u=!1}}if(r.hasOwnProperty("data")&&(o=o.data),r.hasOwnProperty("status")&&(404==r.status&&t.isEmptyObject(o)?c.push(s("404",n.sprintf(e("Could not retrieve %s. Make sure that this resource exists and has the correct permissions.").t(),i))):0!=r.status&&12029!=r.status||c.push(s("network_error",e("Your network connection may have been lost or Splunk may be down.").t()))),u)if(o.messages)c=c.concat(a(o.messages));else if(r.messages){var f=a(r.messages);f.length?c=c.concat(f):c.push(s("error",e("Server error").t()))}else e.isString(r)&&c.push(s("error",r));else c.push(s("error",n.sprintf(e("Invalid JSON from: %s.").t(),i)));return c.length||c.push(s("error",e("Server error").t())),c},normalizeValuesForPOST:function(n){var r=t.extend(!0,{},n);return e.each(r,(function(t,e){"boolean"==typeof t&&(r[e]=t?"1":"0")})),r},normalizeBooleanTo01String:function(t){return n.normalizeBoolean(t)?"1":"0"},isExistingEntity:function(t){return!(!(t&&t.entry&&e.isArray(t.entry)&&t.entry[0].links&&t.entry[0].links.alternate)||/.\/_new$/.test(t.entry[0].links.alternate))},getHeaders:u,convertToSDKResponse:function(t){return{status:t.status,error:t.statusText,data:t.responseJSON,response:{statusCode:t.status,headers:u(t.getAllResponseHeaders())}}}}}.apply(e,r))||(t.exports=i)},"util/sprintf":function(t,e,n){var r,i;r=[n(110)],void 0===(i=function(t){return t}.apply(e,r))||(t.exports=i)},"validation/ValidationMixin":function(t,e,n){var r,i;r=[n("require/underscore"),n("require/backbone"),n("contrib/backbone-validation-amd")],void 0===(i=function(t,e){return t.extend(e.Validation.messages,{required:"{label} is required",acceptance:"{label} must be accepted",min:"{label} must be greater than or equal to {1}",max:"{label} must be less than or equal to {1}",range:"{label} must be between {1} and {2}",length:"{label} must be {1} characters",minLength:"{label} must be at least {1} characters",maxLength:"{label} must be at most {1} characters",rangeLength:"{label} must be between {1} and {2} characters",oneOf:"{label} must be one of: {1}",equalTo:"{label} must be the same as {1}",pattern:"{label} must be a valid {1}"}),e.Validation.mixin}.apply(e,r))||(t.exports=i)},"views/Base":function(t,e,n){var r,i;r=[n("shim/jquery"),n("require/backbone"),n("require/underscore"),n("mixins/viewlogging"),n("util/console"),n("global/GlobalReflowQueue")],void 0===(i=function(t,e,n,r,i,o){var s=e.View.extend({awake:!0,touch:!1,active:!1,isReflowValid:!0,constructor:function(t){this.options=t||{},this.children={},this.options.moduleId&&(this.moduleId=this.options.moduleId),this.options.template&&(this.template=this.options.template),this.template&&(this.compiledTemplate=this.compileTemplate(this.template)),this.css&&Object.keys(this.css)&&!this.className&&(this.options.dontAddModuleIdAsClass=!0),this.css&&(this.css=n.clone(this.css)),e.View.apply(this,arguments)},initialize:function(){var t=this.render;if(this.render=n.bind((function(){var e,n=(new Date).getTime();return this.awake?t.apply(this,arguments):this.touch=!0,e=(new Date).getTime(),!1!==this.options.instrument&&this.$el.attr("data-render-time",(e-n)/1e3),this}),this),this.$el.attr("data-cid",this.cid),this.$el.attr("version","2"),this.moduleId){var e=this.cssNamespace();this.options.dontAddModuleIdAsClass||this.$el.addClass(e),this.$el.attr("data-view",this.moduleId)}this.css&&this.css.view&&this.$el.addClass(this.css.view)},invokeOnChildren:function(t){if(!n.isString(t))throw new Error("Your method must be a string");var e=Array.prototype.slice.call(arguments,1);n.each(this.children,(function(r){n.isArray(r)?n.each(r,(function(r){n.isFunction(r[t])&&r[t].apply(r,e)})):r&&n.isFunction(r[t])&&r[t].apply(r,e)}))},eachChild:function(t,e){if(!n.isFunction(t))throw new Error("Your iterator must be a function");n.each(this.children,(function(r){n.isArray(r)?n.each(r,(function(r){n.isNull(r)||t.call(e,r)})):n.isNull(r)||t.call(e,r)}))},wake:function(t){return t||(t={}),this.awake=!0,this.touch&&(this.touch=!1,t.syncRender?this.render():this.debouncedRender()),this.invokeOnChildren("wake",t),this},sleep:function(){return this.awake=!1,this.invokeOnChildren("sleep"),this},debouncedRender:function(){this._debouncedRender||(this._debouncedRender=n.debounce(this.render,0)),this._debouncedRender.apply(this,arguments)},compileTemplate:n.memoize((function(t){return n.template(t)})),cssNamespace:function(){return(this.moduleId||"").toLowerCase().replace(/\//g,"-").replace(/\_/g,"").replace(/^views-/,"").replace(/-master$/,"")},uniqueNS:function(){return(this.moduleId||"unidentified").toLowerCase().replace(/\//g,"-")+"-"+this.cid},startListening:function(){},stopListening:function(){0===arguments.length&&(this.modelsOff(this.model),this.collectionsOff(this.collection)),e.View.prototype.stopListening.apply(this,arguments)},remove:function(){return this.removeChildren(),this._isAddedToDocument&&(this.onRemovedFromDocument(),this._isAddedToDocument=!1),this.stopListening(),this.$el.remove(),o.remove(this),this},debouncedRemove:function(t){t||(t={});var e={detach:!1};return n.defaults(t,e),t.detach&&this.$el.detach(),this._debouncedRemove||(this._debouncedRemove=n.debounce(this.remove,0)),this._debouncedRemove.apply(this,arguments),this},removeChildren:function(){this.invokeOnChildren("remove")},ensureDeactivated:function(t){this.active&&this.deactivate(t)},activate:function(t){t||(t={});var e=n.extend({startListening:!0,trigger:!0},t);return delete t.startListening,delete t.trigger,!this.active&&e.startListening&&this.startListening(),this.active?i.debug("Calling activate again on view:"+this.moduleId,this.cid):(this.active=!0,e.trigger&&this.trigger("activated")),t.deep&&this.invokeOnChildren("activate",t),this},deactivate:function(t){t||(t={});var e=n.extend({stopListening:!0,trigger:!0},t);return delete t.stopListening,delete t.trigger,t.deep&&this.invokeOnChildren("deactivate",t),this.active&&e.stopListening&&this.stopListening(),this.active?(this.active=!1,e.trigger&&this.trigger("deactivated")):i.debug("Calling deactivate again on view:"+this.moduleId,this.cid),this},modelsOff:function(r){return r instanceof e.Model?(n.isFunction(r.associatedOff)&&r.associatedOff(null,null,this),r.off(null,null,this)):n.isArray(r)||t.isPlainObject(r)?n(r).each((function(t){this.modelsOff(t)}),this):r instanceof e.Collection?(i.warn("Warning: trying to call modelsOff() on a Backbone.Collection object, please move it to this.collection instead."),this.collectionsOff(r)):null!=r&&i.warn("Warning: trying to call modelsOff() on non-Backbone.Model object! Maybe move it to this.options?"),this},collectionsOff:function(r){return r instanceof e.Collection?r.off(null,null,this):n.isArray(r)||t.isPlainObject(r)?n(r).each((function(t){this.collectionsOff(t)}),this):r instanceof e.Model?(i.warn("Warning: trying to call collectionsOff() on a Backbone.Model object, pleaes move it to this.model instead."),this.modelsOff(r)):null!=r&&i.warn("Warning: trying to call collectionsOff() on non-Backbone.Collection object! Maybe move it to this.options?"),this},detach:function(){this._isAddedToDocument&&(this.onRemovedFromDocument(),this._isAddedToDocument=!1),this.$el.detach()},replaceContentsOf:function(e){if(n.isString(e))throw new Error("replaceContentsOf does not support selectors or HTML strings");return(e=t(e)).empty(),this.attachToDocument(e,"appendTo")},appendTo:function(t){return this.attachToDocument(t,"appendTo")},prependTo:function(t){return this.attachToDocument(t,"prependTo")},replaceAll:function(t){return this.attachToDocument(t,"replaceAll")},insertAfter:function(t){return this.attachToDocument(t,"insertAfter")},insertBefore:function(t){return this.attachToDocument(t,"insertBefore")},attachToDocument:function(e,r){if(n.isString(e))throw new Error(r+" does not support selectors or HTML strings");if(0===(e=t(e)).length)return this;var i=e[0],o=this.el.parentNode;return o&&o!==i&&this._isAddedToDocument&&(this.onRemovedFromDocument(),this._isAddedToDocument=!1),this.$el[r](e),o!==i&&t.contains(document.documentElement,this.el)&&(this._isAddedToDocument=!0,this.onAddedToDocument()),this},onAddedToDocument:function(){this.invalidateReflow(),this.eachChild((function(t){n.isFunction(t.onAddedToDocument)&&this.isAncestorOf(t)&&!t._isAddedToDocument&&(t._isAddedToDocument=!0,t.onAddedToDocument())}),this),this.trigger("addedToDocument")},onRemovedFromDocument:function(){this.isReflowValid=!0,o.remove(this),this.eachChild((function(t){n.isFunction(t.onRemovedFromDocument)&&this.isAncestorOf(t)&&t._isAddedToDocument&&(t.onRemovedFromDocument(),t._isAddedToDocument=!1)}),this),this.trigger("removedFromDocument")},isAddedToDocument:function(){return this._isAddedToDocument},isAncestorOf:function(e){return!!e.el&&t.contains(this.el,e.el)},isDescendantOf:function(e){return!!e.el&&t.contains(e.el,this.el)},reflow:function(){},getAncestors:function(t){for(var e=[],r=this.$el;(r=r.parent()).length>0;){var i=r.attr("data-view");if(n(i).isUndefined()||n(i).isEmpty()||e.unshift(i),!n(t).isUndefined()&&t==e.length)break}return e},invalidateReflow:function(){this.isReflowValid&&(this.isReflowValid=!1,o.add(this))},validateReflow:function(t){this.isReflowValid&&!t||(this.reflow(),this.isReflowValid=!0,o.remove(this)),this.invokeOnChildren("validateReflow")},getReflowDepth:function(){for(var t=0,e=this.el.parentNode;e;e=e.parentNode)t++;return t}});return n.extend(s.prototype,r),s}.apply(e,r))||(t.exports=i)},"views/search/title/SearchName":function(t,e,n){var r,i;r=[n("require/underscore"),t,n("views/Base")],void 0===(i=function(t,e,n){return n.extend({moduleId:e.i,tagName:"h1",className:"search-name section-title",initialize:function(){n.prototype.initialize.apply(this,arguments),this.activate()},startListening:function(){this.listenTo(this.model.report.entry.content,"change:name",this.render)},render:function(){var e=this.model.report.entry.get("name"),n=t("Search").t();e&&"_new"!==e?n=e:this.model.searchJob.isNew()&&!this.model.report.entry.content.get("search")||(n=t("New Search").t()),this.$el.attr("title",n);var r=this.compiledTemplate({searchName:n});this.$el.html(r)},template:" <%- searchName %> "})}.apply(e,r))||(t.exports=i)}})})); |