webpackJsonp([0],[,function(e,t,a){"use strict";t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,a){"use strict";t.__esModule=!0;var n=a(544),r=function(e){return e&&e.__esModule?e:{default:e}}(n);t.default=function(){function e(e,t){for(var a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(s[a]=e[a])}return s}var r=a(357);e.exports=n},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var a=function(){};a.prototype=t.prototype,e.prototype=new a,e.prototype.constructor=e}},function(e,t,a){function n(e,t){for(var a in e)t[a]=e[a]}function r(e,t,a){return l(e,t,a)}var s=a(27),l=s.Buffer;l.from&&l.alloc&&l.allocUnsafe&&l.allocUnsafeSlow?e.exports=s:(n(s,t),t.Buffer=r),n(l,r),r.from=function(e,t,a){if("number"==typeof e)throw new TypeError("Argument must not be a number");return l(e,t,a)},r.alloc=function(e,t,a){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=l(e);return void 0!==t?"string"==typeof a?n.fill(t,a):n.fill(t):n.fill(0),n},r.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return l(e)},r.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return s.SlowBuffer(e)}},function(e,t,a){var n,r;!function(){"use strict";function a(){for(var e=[],t=0;t1&&void 0!==arguments[1]?arguments[1]:{};return function(a){var r,E=t.withTheme,v=void 0!==E&&E,y=t.flip,_=void 0===y?null:y,j=t.name,T=(0,u.default)(t,["withTheme","flip","name"]),M=(0,k.default)(e),D=M.themingEnabled||"string"==typeof j||v;C+=1,M.options.index=C;var R=function(e){function t(e,a){var r;(0,o.default)(this,t),r=(0,i.default)(this,(0,m.default)(t).call(this,e,a)),r.jss=a[b.default.jss]||S,r.sheetsManager=A,r.unsubscribeId=null;var s=a.muiThemeProviderOptions;return s&&(s.sheetsManager&&(r.sheetsManager=s.sheetsManager),r.sheetsCache=s.sheetsCache,r.disableStylesGeneration=s.disableStylesGeneration),r.stylesCreatorSaved=M,r.sheetOptions=(0,l.default)({generateClassName:P},a[b.default.sheetOptions]),r.theme=D?w.default.initial(a)||n():O,r.attach(r.theme),r.cacheClasses={value:null,lastProp:null,lastJSS:{}},r}return(0,d.default)(t,e),(0,c.default)(t,[{key:"componentDidMount",value:function(){var e=this;D&&(this.unsubscribeId=w.default.subscribe(this.context,function(t){var a=e.theme;e.theme=t,e.attach(e.theme),e.setState({},function(){e.detach(a)})}))}},{key:"componentDidUpdate",value:function(){this.stylesCreatorSaved,0}},{key:"componentWillUnmount",value:function(){this.detach(this.theme),null!==this.unsubscribeId&&w.default.unsubscribe(this.context,this.unsubscribeId)}},{key:"getClasses",value:function(){if(this.disableStylesGeneration)return this.props.classes||{};var e=!1,t=g.default.get(this.sheetsManager,this.stylesCreatorSaved,this.theme);return t.sheet.classes!==this.cacheClasses.lastJSS&&(this.cacheClasses.lastJSS=t.sheet.classes,e=!0),this.props.classes!==this.cacheClasses.lastProp&&(this.cacheClasses.lastProp=this.props.classes,e=!0),e&&(this.cacheClasses.value=(0,N.default)({baseClasses:this.cacheClasses.lastJSS,newClasses:this.props.classes,Component:a})),this.cacheClasses.value}},{key:"attach",value:function(e){if(!this.disableStylesGeneration){var t=this.stylesCreatorSaved,a=g.default.get(this.sheetsManager,t,e);if(a||(a={refs:0,sheet:null},g.default.set(this.sheetsManager,t,e,a)),0===a.refs){var n;this.sheetsCache&&(n=g.default.get(this.sheetsCache,t,e)),n||(n=this.createSheet(e),n.attach(),this.sheetsCache&&g.default.set(this.sheetsCache,t,e,n)),a.sheet=n;var r=this.context[b.default.sheetsRegistry];r&&r.add(n)}a.refs+=1}}},{key:"createSheet",value:function(e){var t=this.stylesCreatorSaved.create(e,j),n=j;return this.jss.createStyleSheet(t,(0,l.default)({meta:n,classNamePrefix:n,flip:"boolean"==typeof _?_:"rtl"===e.direction,link:!1},this.sheetOptions,this.stylesCreatorSaved.options,{name:j||a.displayName},T))}},{key:"detach",value:function(e){if(!this.disableStylesGeneration){var t=g.default.get(this.sheetsManager,this.stylesCreatorSaved,e);if(t.refs-=1,0===t.refs){g.default.delete(this.sheetsManager,this.stylesCreatorSaved,e),this.jss.removeStyleSheet(t.sheet);var a=this.context[b.default.sheetsRegistry];a&&a.remove(t.sheet)}}}},{key:"render",value:function(){var e=this.props,t=(e.classes,e.innerRef),n=(0,u.default)(e,["classes","innerRef"]),r=(0,x.default)({theme:this.theme,name:j,props:n});return v&&!r.theme&&(r.theme=this.theme),p.default.createElement(a,(0,l.default)({},r,{classes:this.getClasses(),ref:t}))}}]),t}(p.default.Component);return R.propTypes={},R.contextTypes=(0,l.default)((r={muiThemeProviderOptions:f.default.object},(0,s.default)(r,b.default.jss,f.default.object),(0,s.default)(r,b.default.sheetOptions,f.default.object),(0,s.default)(r,b.default.sheetsRegistry,f.default.object),r),D?w.default.contextTypes:{}),(0,h.default)(R,a),R}};E.ponyfillGlobal.__MUI_STYLES__||(E.ponyfillGlobal.__MUI_STYLES__={}),E.ponyfillGlobal.__MUI_STYLES__.withStyles||(E.ponyfillGlobal.__MUI_STYLES__.withStyles=M);var D=E.ponyfillGlobal.__MUI_STYLES__.withStyles;t.default=D},function(e,t,a){"use strict";var n=a(1),r=a.n(n),s=a(2),l=a.n(s),o=a(4),c=a.n(o),i=a(3),m=a.n(i),d=a(0),u=a.n(d),p=function(e){function t(e){return r()(this,t),c()(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return m()(t,e),l()(t,[{key:"render",value:function(){return u.a.createElement("div",null," ",u.a.createElement("h3",null,"Compatibility"),u.a.createElement("table",{style:{width:"auto"}},u.a.createElement("tbody",null,u.a.createElement("tr",null,u.a.createElement("td",{className:"b top"},"Page"),u.a.createElement("td",{className:"b top"},"Support")),u.a.createElement("tr",null,u.a.createElement("td",{className:"b",style:{paddingTop:4}},"Dashboard"),u.a.createElement("td",{style:{textAlign:"center"}},!0===this.props.dashboard?u.a.createElement("i",{className:"material-icons",style:{position:"relative",top:3,fontSize:24,color:"#388E3C",fontWeight:"bold"}},"done"):u.a.createElement("i",{className:"material-icons",style:{position:"relative",top:3,fontSize:24,color:"#D32F2F",fontWeight:"bold"}},"close"))),u.a.createElement("tr",null,u.a.createElement("td",{className:"b",style:{paddingTop:4}},"Record"),u.a.createElement("td",{style:{textAlign:"center"}},!0===this.props.record?u.a.createElement("i",{className:"material-icons",style:{position:"relative",top:3,fontSize:24,color:"#388E3C",fontWeight:"bold"}},"done"):u.a.createElement("i",{className:"material-icons",style:{position:"relative",top:3,fontSize:24,color:"#D32F2F",fontWeight:"bold"}},"close"))),u.a.createElement("tr",null,u.a.createElement("td",{className:"b",style:{paddingTop:4}},"Report"),u.a.createElement("td",{style:{textAlign:"center"}},!0===this.props.report?u.a.createElement("i",{className:"material-icons",style:{position:"relative",top:3,fontSize:24,color:"#388E3C",fontWeight:"bold"}},"done"):u.a.createElement("i",{className:"material-icons",style:{position:"relative",top:3,fontSize:24,color:"#D32F2F",fontWeight:"bold"}},"close"))),u.a.createElement("tr",null,u.a.createElement("td",{className:"b",style:{paddingTop:4}},"Search"),u.a.createElement("td",{style:{textAlign:"center"}},!0===this.props.search?u.a.createElement("i",{className:"material-icons",style:{position:"relative",top:3,fontSize:24,color:"#388E3C",fontWeight:"bold"}},"done"):u.a.createElement("i",{className:"material-icons",style:{position:"relative",top:3,fontSize:24,color:"#D32F2F",fontWeight:"bold"}},"close"))))))}}]),t}(d.Component);t.a=p},function(e,t){function a(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}e.exports=a},function(e,t,a){"use strict";var n=a(1),r=a.n(n),s=a(2),l=a.n(s),o=a(4),c=a.n(o),i=a(3),m=a.n(i),d=a(0),u=a.n(d),p=function(e){function t(e){r()(this,t);var a=c()(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));if(a.state={properties:[]},!0===a.props.hide&&a.state.properties.push({property:"hide",description:"Hides component from the interface.",defaults:"true, false default is false"},{property:"hide_if_eval",description:"Hides the component in the interface using a eval logic for more information look up component eval in this documentation.",defaults:"(NL.Record.data.text_name !== 'John Smith')"}),!0===a.props.onClick&&a.state.properties.push({property:"on_click_eval",description:"onClick event when clicking on the component.",defaults:"\"NL.Interface.navigateTo('record/ contact / CON - ' + NL.Record.data.object_contact.text_id)\""}),!0===a.props.order&&a.state.properties.push({property:"order",description:"The layout order that component will be displayed within the container.",defaults:"1-10000"}),!0===a.props.padding&&a.state.properties.push({property:"padding",description:"Adds the horizontal 8px padding on each side of the component.",defaults:"true, false default true"},{property:"padding_bottom",description:"Adds the vertical 16px padding on the bottom of the component.",defaults:"true, false default true"},{property:"padding_top",description:"Adds the vertical 16px padding on the top of the component.",defaults:"true, false default false"}),!0===a.props.tabIndex&&a.state.properties.push({property:"tab_index",description:"Interface html tab-index used for tab keyboard shortcut.",defaults:"1-10000"}),!0===a.props.button&&a.state.properties.push({property:"button_color",description:"The color of the button.",defaults:'"#F44336" default is "#1E88E5"'},{property:"button_font_color",description:"The color of the text in the button.",defaults:'"#212121" default is "#FFFFFF"'},{property:"button_position",description:"The postion in the column the button will be displayed.",defaults:'"left", "center", "right" default is "left"'},{property:"button_raised",description:"Button displayed as raised or flat.",defaults:"true, false default is true"},{property:"button_width",description:'The width of the button in pixels. button_width also supports "full" and "auto".',defaults:'220 default is "auto"'}),!0===a.props.readOnly&&a.state.properties.push({property:"read_only",description:"Changes the control to read only stopping the user from entering data.",defaults:"true, false default false"},{property:"read_only_eval",description:"Changes the control to be read only when a boolean condition is met.",defaults:"(NL.Record.data.text_name !== 'John Smith')"}),!0===a.props.displayName&&a.state.properties.push({property:"display_name",description:"Display name shown over component in the interface.",defaults:'"My field name"'}),!0===a.props.onChangeEval&&a.state.properties.push({property:"on_change_eval",description:"Allows you to insert javascript code at the client level when this data is edited.",defaults:"\"console.log('NL and event in console.', { NL: NL, event: event })\""}),!0===a.props.searchGroup&&a.state.properties.push({property:"search_group",warning:!0,description:"The search_group property is required to link the filter to the search results component.",defaults:'"my_search_group"'}),!0===a.props.sourceUrl&&a.state.properties.push({property:"source_url_api",description:"source data type component links to.",defaults:'"data_type"'},{property:"source_url_api_system_object",description:'Is the source data type a system object like "user".',defaults:"true, false default is false"},{property:"source_sort",description:"Sort the records returned by the database select record function.",defaults:"{ ... }"},{property:"source_query",description:"Gives you the ability to write a query on the database select record function.",defaults:"{ ... }"},{property:"source_size",description:"Limits the number of options retrieved from the database.",defaults:"1-10000 default is 100"}),!0===a.props.sourceDebug&&a.state.properties.push({property:"source_debug",description:"Source debug is a setting to help you develop and debug complex reports. We do not recommend this setting should be used in live production systems. When the source debug is turned on, the report component will output the report data at each stage into the web browser development console (typically F12 to view). ",defaults:"true, false default is false"}),!0===a.props.sourceAggs&&a.state.properties.push({property:"source_aggs",description:"Aggregate searches are ElasticsSearch's equivalent of SQL's group by function. An Aggregate search can sum, count, average groups within a dataset. For more information, please review the Aggregate search documentation on the ElasticsSearch website.",defaults:"{ ... }"},{property:"source_aggs_convert",description:"Aggregate searches by default return the result as a single record. By default, we convert the aggregated result buckets into separate records. This feature can be turned ed off by setting the source aggs convert to false.",defaults:"true, false default is true"}),!0===a.props.sourceSave&&a.state.properties.push({property:"source_save",description:"Fields saved in the database.",defaults:'["text_my_field_1", "text_my_field_2"]'}),!0===a.props.sourceJoin&&a.state.properties.push({property:"source_join",description:"Source join allows you to look up and join other data types to your record. Source join allows for multiple joins. There are three components to a source join. The secondary data source made up of the API URL and whether it's a system object — the primary ID which is the ID of the secondary dataset record — and finally, the output or data you want from the secondary record.",description2:"source_url_api: The secondary api source.",description3:"source_url_api_system_object: Set if the secondary api source is a system object.",description4:"source_primary_id: The feild in the prmary record which contains the secondary ID.",description5:"source_output: The feilds you want collected from the secondary record.",defaults:"{ ... }"}),!0===a.props.displaySort&&a.state.properties.push({property:"display_sort",description:"Set the default display sort by field. This is different from the source_sort property in that display_sort happens after all joins and data manipulations where source_sort occurs at the database level and can only be applied to numbers and dates.",defaults:'"record.text_my_field_2" default is undefined'},{property:"display_sort_up",description:"By default, display_sort sorts data in ascending order. To invert this set display_sort_up to true.",defaults:"true, false default is false"}),"string"==typeof a.props.autoFill&&a.state.properties.push({property:"auto_fill",description:"Autofill component with value if empty.",defaults:a.props.autoFill}),"string"==typeof a.props.dataNameDefault&&a.state.properties.push({property:"data_name",warning:!0,description:"Field in the database bound to this component.",defaults:a.props.dataNameDefault}),Array.isArray(a.props.properties))for(var n=0;ne.property?-1:t.property=49&&l<=54?l-49+10:l>=17&&l<=22?l-17+10:15&l}return n}function o(e,t,a,n){for(var r=0,s=Math.min(e.length,a),l=t;l=49?o-49+10:o>=17?o-17+10:o}return r}function c(e){for(var t=new Array(e.bitLength()),a=0;a>>r}return t}function i(e,t,a){a.negative=t.negative^e.negative;var n=e.length+t.length|0;a.length=n,n=n-1|0;var r=0|e.words[0],s=0|t.words[0],l=r*s,o=67108863&l,c=l/67108864|0;a.words[0]=o;for(var i=1;i>>26,d=67108863&c,u=Math.min(i,t.length-1),p=Math.max(0,i-e.length+1);p<=u;p++){var f=i-p|0;r=0|e.words[f],s=0|t.words[p],l=r*s+d,m+=l/67108864|0,d=67108863&l}a.words[i]=0|d,c=0|m}return 0!==c?a.words[i]=0|c:a.length--,a.strip()}function m(e,t,a){a.negative=t.negative^e.negative,a.length=e.length+t.length;for(var n=0,r=0,s=0;s>>26)|0,r+=l>>>26,l&=67108863}a.words[s]=o,n=l,l=r}return 0!==n?a.words[s]=n:a.length--,a.strip()}function d(e,t,a){return(new u).mulp(e,t,a)}function u(e,t){this.x=e,this.y=t}function p(e,t){this.name=e,this.p=new s(t,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function f(){p.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function h(){p.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function E(){p.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function v(){p.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function b(e){if("string"==typeof e){var t=s._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function y(e){b.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}"object"==typeof e?e.exports=s:t.BN=s,s.BN=s,s.wordSize=26;var N;try{N=a(852).Buffer}catch(e){}s.isBN=function(e){return e instanceof s||null!==e&&"object"==typeof e&&e.constructor.wordSize===s.wordSize&&Array.isArray(e.words)},s.max=function(e,t){return e.cmp(t)>0?e:t},s.min=function(e,t){return e.cmp(t)<0?e:t},s.prototype._init=function(e,t,a){if("number"==typeof e)return this._initNumber(e,t,a);if("object"==typeof e)return this._initArray(e,t,a);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36),e=e.toString().replace(/\s+/g,"");var r=0;"-"===e[0]&&r++,16===t?this._parseHex(e,r):this._parseBase(e,t,r),"-"===e[0]&&(this.negative=1),this.strip(),"le"===a&&this._initArray(this.toArray(),t,a)},s.prototype._initNumber=function(e,t,a){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===a&&this._initArray(this.toArray(),t,a)},s.prototype._initArray=function(e,t,a){if(n("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var r=0;r=0;r-=3)l=e[r]|e[r-1]<<8|e[r-2]<<16,this.words[s]|=l<>>26-o&67108863,(o+=24)>=26&&(o-=26,s++);else if("le"===a)for(r=0,s=0;r>>26-o&67108863,(o+=24)>=26&&(o-=26,s++);return this.strip()},s.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var a=0;a=t;a-=6)r=l(e,a,a+6),this.words[n]|=r<>>26-s&4194303,(s+=24)>=26&&(s-=26,n++);a+6!==t&&(r=l(e,t,a+6),this.words[n]|=r<>>26-s&4194303),this.strip()},s.prototype._parseBase=function(e,t,a){this.words=[0],this.length=1;for(var n=0,r=1;r<=67108863;r*=t)n++;n--,r=r/t|0;for(var s=e.length-a,l=s%n,c=Math.min(s,s-l)+a,i=0,m=a;m1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},s.prototype.inspect=function(){return(this.red?""};var g=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],_=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],w=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];s.prototype.toString=function(e,t){e=e||10,t=0|t||1;var a;if(16===e||"hex"===e){a="";for(var r=0,s=0,l=0;l>>24-r&16777215,a=0!==s||l!==this.length-1?g[6-c.length]+c+a:c+a,r+=2,r>=26&&(r-=26,l--)}for(0!==s&&(a=s.toString(16)+a);a.length%t!=0;)a="0"+a;return 0!==this.negative&&(a="-"+a),a}if(e===(0|e)&&e>=2&&e<=36){var i=_[e],m=w[e];a="";var d=this.clone();for(d.negative=0;!d.isZero();){var u=d.modn(m).toString(e);d=d.idivn(m),a=d.isZero()?u+a:g[i-u.length]+u+a}for(this.isZero()&&(a="0"+a);a.length%t!=0;)a="0"+a;return 0!==this.negative&&(a="-"+a),a}n(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(e,t){return n(void 0!==N),this.toArrayLike(N,e,t)},s.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},s.prototype.toArrayLike=function(e,t,a){var r=this.byteLength(),s=a||Math.max(1,r);n(r<=s,"byte array longer than desired length"),n(s>0,"Requested array length <= 0"),this.strip();var l,o,c="le"===t,i=new e(s),m=this.clone();if(c){for(o=0;!m.isZero();o++)l=m.andln(255),m.iushrn(8),i[o]=l;for(;o=4096&&(a+=13,t>>>=13),t>=64&&(a+=7,t>>>=7),t>=8&&(a+=4,t>>>=4),t>=2&&(a+=2,t>>>=2),a+t},s.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,a=0;return 0==(8191&t)&&(a+=13,t>>>=13),0==(127&t)&&(a+=7,t>>>=7),0==(15&t)&&(a+=4,t>>>=4),0==(3&t)&&(a+=2,t>>>=2),0==(1&t)&&a++,a},s.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},s.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},s.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var a=0;ae.length?this.clone().iand(e):e.clone().iand(this)},s.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},s.prototype.iuxor=function(e){var t,a;this.length>e.length?(t=this,a=e):(t=e,a=this);for(var n=0;ne.length?this.clone().ixor(e):e.clone().ixor(this)},s.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},s.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),a=e%26;this._expand(t),a>0&&t--;for(var r=0;r0&&(this.words[r]=~this.words[r]&67108863>>26-a),this.strip()},s.prototype.notn=function(e){return this.clone().inotn(e)},s.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var a=e/26|0,r=e%26;return this._expand(a+1),this.words[a]=t?this.words[a]|1<e.length?(a=this,n=e):(a=e,n=this);for(var r=0,s=0;s>>26;for(;0!==r&&s>>26;if(this.length=a.length,0!==r)this.words[this.length]=r,this.length++;else if(a!==this)for(;se.length?this.clone().iadd(e):e.clone().iadd(this)},s.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var a=this.cmp(e);if(0===a)return this.negative=0,this.length=1,this.words[0]=0,this;var n,r;a>0?(n=this,r=e):(n=e,r=this);for(var s=0,l=0;l>26,this.words[l]=67108863&t;for(;0!==s&&l>26,this.words[l]=67108863&t;if(0===s&&l>>13,p=0|l[1],f=8191&p,h=p>>>13,E=0|l[2],v=8191&E,b=E>>>13,y=0|l[3],N=8191&y,g=y>>>13,_=0|l[4],w=8191&_,j=_>>>13,k=0|l[5],x=8191&k,S=k>>>13,P=0|l[6],C=8191&P,A=P>>>13,T=0|l[7],O=8191&T,M=T>>>13,D=0|l[8],R=8191&D,G=D>>>13,I=0|l[9],L=8191&I,Y=I>>>13,F=0|o[0],B=8191&F,z=F>>>13,q=0|o[1],W=8191&q,U=q>>>13,H=0|o[2],V=8191&H,K=H>>>13,J=0|o[3],$=8191&J,X=J>>>13,Z=0|o[4],Q=8191&Z,ee=Z>>>13,te=0|o[5],ae=8191&te,ne=te>>>13,re=0|o[6],se=8191&re,le=re>>>13,oe=0|o[7],ce=8191&oe,ie=oe>>>13,me=0|o[8],de=8191&me,ue=me>>>13,pe=0|o[9],fe=8191&pe,he=pe>>>13;a.negative=e.negative^t.negative,a.length=19,n=Math.imul(d,B),r=Math.imul(d,z),r=r+Math.imul(u,B)|0,s=Math.imul(u,z);var Ee=(i+n|0)+((8191&r)<<13)|0;i=(s+(r>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(f,B),r=Math.imul(f,z),r=r+Math.imul(h,B)|0,s=Math.imul(h,z),n=n+Math.imul(d,W)|0,r=r+Math.imul(d,U)|0,r=r+Math.imul(u,W)|0,s=s+Math.imul(u,U)|0;var ve=(i+n|0)+((8191&r)<<13)|0;i=(s+(r>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(v,B),r=Math.imul(v,z),r=r+Math.imul(b,B)|0,s=Math.imul(b,z),n=n+Math.imul(f,W)|0,r=r+Math.imul(f,U)|0,r=r+Math.imul(h,W)|0,s=s+Math.imul(h,U)|0,n=n+Math.imul(d,V)|0,r=r+Math.imul(d,K)|0,r=r+Math.imul(u,V)|0,s=s+Math.imul(u,K)|0;var be=(i+n|0)+((8191&r)<<13)|0;i=(s+(r>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(N,B),r=Math.imul(N,z),r=r+Math.imul(g,B)|0,s=Math.imul(g,z),n=n+Math.imul(v,W)|0,r=r+Math.imul(v,U)|0,r=r+Math.imul(b,W)|0,s=s+Math.imul(b,U)|0,n=n+Math.imul(f,V)|0,r=r+Math.imul(f,K)|0,r=r+Math.imul(h,V)|0,s=s+Math.imul(h,K)|0,n=n+Math.imul(d,$)|0,r=r+Math.imul(d,X)|0,r=r+Math.imul(u,$)|0,s=s+Math.imul(u,X)|0;var ye=(i+n|0)+((8191&r)<<13)|0;i=(s+(r>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(w,B),r=Math.imul(w,z),r=r+Math.imul(j,B)|0,s=Math.imul(j,z),n=n+Math.imul(N,W)|0,r=r+Math.imul(N,U)|0,r=r+Math.imul(g,W)|0,s=s+Math.imul(g,U)|0,n=n+Math.imul(v,V)|0,r=r+Math.imul(v,K)|0,r=r+Math.imul(b,V)|0,s=s+Math.imul(b,K)|0,n=n+Math.imul(f,$)|0,r=r+Math.imul(f,X)|0,r=r+Math.imul(h,$)|0,s=s+Math.imul(h,X)|0,n=n+Math.imul(d,Q)|0,r=r+Math.imul(d,ee)|0,r=r+Math.imul(u,Q)|0,s=s+Math.imul(u,ee)|0;var Ne=(i+n|0)+((8191&r)<<13)|0;i=(s+(r>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,n=Math.imul(x,B),r=Math.imul(x,z),r=r+Math.imul(S,B)|0,s=Math.imul(S,z),n=n+Math.imul(w,W)|0,r=r+Math.imul(w,U)|0,r=r+Math.imul(j,W)|0,s=s+Math.imul(j,U)|0,n=n+Math.imul(N,V)|0,r=r+Math.imul(N,K)|0,r=r+Math.imul(g,V)|0,s=s+Math.imul(g,K)|0,n=n+Math.imul(v,$)|0,r=r+Math.imul(v,X)|0,r=r+Math.imul(b,$)|0,s=s+Math.imul(b,X)|0,n=n+Math.imul(f,Q)|0,r=r+Math.imul(f,ee)|0,r=r+Math.imul(h,Q)|0,s=s+Math.imul(h,ee)|0,n=n+Math.imul(d,ae)|0,r=r+Math.imul(d,ne)|0,r=r+Math.imul(u,ae)|0,s=s+Math.imul(u,ne)|0;var ge=(i+n|0)+((8191&r)<<13)|0;i=(s+(r>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(C,B),r=Math.imul(C,z),r=r+Math.imul(A,B)|0,s=Math.imul(A,z),n=n+Math.imul(x,W)|0,r=r+Math.imul(x,U)|0,r=r+Math.imul(S,W)|0,s=s+Math.imul(S,U)|0,n=n+Math.imul(w,V)|0,r=r+Math.imul(w,K)|0,r=r+Math.imul(j,V)|0,s=s+Math.imul(j,K)|0,n=n+Math.imul(N,$)|0,r=r+Math.imul(N,X)|0,r=r+Math.imul(g,$)|0,s=s+Math.imul(g,X)|0,n=n+Math.imul(v,Q)|0,r=r+Math.imul(v,ee)|0,r=r+Math.imul(b,Q)|0,s=s+Math.imul(b,ee)|0,n=n+Math.imul(f,ae)|0,r=r+Math.imul(f,ne)|0,r=r+Math.imul(h,ae)|0,s=s+Math.imul(h,ne)|0,n=n+Math.imul(d,se)|0,r=r+Math.imul(d,le)|0,r=r+Math.imul(u,se)|0,s=s+Math.imul(u,le)|0;var _e=(i+n|0)+((8191&r)<<13)|0;i=(s+(r>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(O,B),r=Math.imul(O,z),r=r+Math.imul(M,B)|0,s=Math.imul(M,z),n=n+Math.imul(C,W)|0,r=r+Math.imul(C,U)|0,r=r+Math.imul(A,W)|0,s=s+Math.imul(A,U)|0,n=n+Math.imul(x,V)|0,r=r+Math.imul(x,K)|0,r=r+Math.imul(S,V)|0,s=s+Math.imul(S,K)|0,n=n+Math.imul(w,$)|0,r=r+Math.imul(w,X)|0,r=r+Math.imul(j,$)|0,s=s+Math.imul(j,X)|0,n=n+Math.imul(N,Q)|0,r=r+Math.imul(N,ee)|0,r=r+Math.imul(g,Q)|0,s=s+Math.imul(g,ee)|0,n=n+Math.imul(v,ae)|0,r=r+Math.imul(v,ne)|0,r=r+Math.imul(b,ae)|0,s=s+Math.imul(b,ne)|0,n=n+Math.imul(f,se)|0,r=r+Math.imul(f,le)|0,r=r+Math.imul(h,se)|0,s=s+Math.imul(h,le)|0,n=n+Math.imul(d,ce)|0,r=r+Math.imul(d,ie)|0,r=r+Math.imul(u,ce)|0,s=s+Math.imul(u,ie)|0;var we=(i+n|0)+((8191&r)<<13)|0;i=(s+(r>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(R,B),r=Math.imul(R,z),r=r+Math.imul(G,B)|0,s=Math.imul(G,z),n=n+Math.imul(O,W)|0,r=r+Math.imul(O,U)|0,r=r+Math.imul(M,W)|0,s=s+Math.imul(M,U)|0,n=n+Math.imul(C,V)|0,r=r+Math.imul(C,K)|0,r=r+Math.imul(A,V)|0,s=s+Math.imul(A,K)|0,n=n+Math.imul(x,$)|0,r=r+Math.imul(x,X)|0,r=r+Math.imul(S,$)|0,s=s+Math.imul(S,X)|0,n=n+Math.imul(w,Q)|0,r=r+Math.imul(w,ee)|0,r=r+Math.imul(j,Q)|0,s=s+Math.imul(j,ee)|0,n=n+Math.imul(N,ae)|0,r=r+Math.imul(N,ne)|0,r=r+Math.imul(g,ae)|0,s=s+Math.imul(g,ne)|0,n=n+Math.imul(v,se)|0,r=r+Math.imul(v,le)|0,r=r+Math.imul(b,se)|0,s=s+Math.imul(b,le)|0,n=n+Math.imul(f,ce)|0,r=r+Math.imul(f,ie)|0,r=r+Math.imul(h,ce)|0,s=s+Math.imul(h,ie)|0,n=n+Math.imul(d,de)|0,r=r+Math.imul(d,ue)|0,r=r+Math.imul(u,de)|0,s=s+Math.imul(u,ue)|0;var je=(i+n|0)+((8191&r)<<13)|0;i=(s+(r>>>13)|0)+(je>>>26)|0,je&=67108863,n=Math.imul(L,B),r=Math.imul(L,z),r=r+Math.imul(Y,B)|0,s=Math.imul(Y,z),n=n+Math.imul(R,W)|0,r=r+Math.imul(R,U)|0,r=r+Math.imul(G,W)|0,s=s+Math.imul(G,U)|0,n=n+Math.imul(O,V)|0,r=r+Math.imul(O,K)|0,r=r+Math.imul(M,V)|0,s=s+Math.imul(M,K)|0,n=n+Math.imul(C,$)|0,r=r+Math.imul(C,X)|0,r=r+Math.imul(A,$)|0,s=s+Math.imul(A,X)|0,n=n+Math.imul(x,Q)|0,r=r+Math.imul(x,ee)|0,r=r+Math.imul(S,Q)|0,s=s+Math.imul(S,ee)|0,n=n+Math.imul(w,ae)|0,r=r+Math.imul(w,ne)|0,r=r+Math.imul(j,ae)|0,s=s+Math.imul(j,ne)|0,n=n+Math.imul(N,se)|0,r=r+Math.imul(N,le)|0,r=r+Math.imul(g,se)|0,s=s+Math.imul(g,le)|0,n=n+Math.imul(v,ce)|0,r=r+Math.imul(v,ie)|0,r=r+Math.imul(b,ce)|0,s=s+Math.imul(b,ie)|0,n=n+Math.imul(f,de)|0,r=r+Math.imul(f,ue)|0,r=r+Math.imul(h,de)|0,s=s+Math.imul(h,ue)|0,n=n+Math.imul(d,fe)|0,r=r+Math.imul(d,he)|0,r=r+Math.imul(u,fe)|0,s=s+Math.imul(u,he)|0;var ke=(i+n|0)+((8191&r)<<13)|0;i=(s+(r>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(L,W),r=Math.imul(L,U),r=r+Math.imul(Y,W)|0,s=Math.imul(Y,U),n=n+Math.imul(R,V)|0,r=r+Math.imul(R,K)|0,r=r+Math.imul(G,V)|0,s=s+Math.imul(G,K)|0,n=n+Math.imul(O,$)|0,r=r+Math.imul(O,X)|0,r=r+Math.imul(M,$)|0,s=s+Math.imul(M,X)|0,n=n+Math.imul(C,Q)|0,r=r+Math.imul(C,ee)|0,r=r+Math.imul(A,Q)|0,s=s+Math.imul(A,ee)|0,n=n+Math.imul(x,ae)|0,r=r+Math.imul(x,ne)|0,r=r+Math.imul(S,ae)|0,s=s+Math.imul(S,ne)|0,n=n+Math.imul(w,se)|0,r=r+Math.imul(w,le)|0,r=r+Math.imul(j,se)|0,s=s+Math.imul(j,le)|0,n=n+Math.imul(N,ce)|0,r=r+Math.imul(N,ie)|0,r=r+Math.imul(g,ce)|0,s=s+Math.imul(g,ie)|0,n=n+Math.imul(v,de)|0,r=r+Math.imul(v,ue)|0,r=r+Math.imul(b,de)|0,s=s+Math.imul(b,ue)|0,n=n+Math.imul(f,fe)|0,r=r+Math.imul(f,he)|0,r=r+Math.imul(h,fe)|0,s=s+Math.imul(h,he)|0;var xe=(i+n|0)+((8191&r)<<13)|0;i=(s+(r>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(L,V),r=Math.imul(L,K),r=r+Math.imul(Y,V)|0,s=Math.imul(Y,K),n=n+Math.imul(R,$)|0,r=r+Math.imul(R,X)|0,r=r+Math.imul(G,$)|0,s=s+Math.imul(G,X)|0,n=n+Math.imul(O,Q)|0,r=r+Math.imul(O,ee)|0,r=r+Math.imul(M,Q)|0,s=s+Math.imul(M,ee)|0,n=n+Math.imul(C,ae)|0,r=r+Math.imul(C,ne)|0,r=r+Math.imul(A,ae)|0,s=s+Math.imul(A,ne)|0,n=n+Math.imul(x,se)|0,r=r+Math.imul(x,le)|0,r=r+Math.imul(S,se)|0,s=s+Math.imul(S,le)|0,n=n+Math.imul(w,ce)|0,r=r+Math.imul(w,ie)|0,r=r+Math.imul(j,ce)|0,s=s+Math.imul(j,ie)|0,n=n+Math.imul(N,de)|0,r=r+Math.imul(N,ue)|0,r=r+Math.imul(g,de)|0,s=s+Math.imul(g,ue)|0,n=n+Math.imul(v,fe)|0,r=r+Math.imul(v,he)|0,r=r+Math.imul(b,fe)|0,s=s+Math.imul(b,he)|0;var Se=(i+n|0)+((8191&r)<<13)|0;i=(s+(r>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(L,$),r=Math.imul(L,X),r=r+Math.imul(Y,$)|0,s=Math.imul(Y,X),n=n+Math.imul(R,Q)|0,r=r+Math.imul(R,ee)|0,r=r+Math.imul(G,Q)|0,s=s+Math.imul(G,ee)|0,n=n+Math.imul(O,ae)|0,r=r+Math.imul(O,ne)|0,r=r+Math.imul(M,ae)|0,s=s+Math.imul(M,ne)|0,n=n+Math.imul(C,se)|0,r=r+Math.imul(C,le)|0,r=r+Math.imul(A,se)|0,s=s+Math.imul(A,le)|0,n=n+Math.imul(x,ce)|0,r=r+Math.imul(x,ie)|0,r=r+Math.imul(S,ce)|0,s=s+Math.imul(S,ie)|0,n=n+Math.imul(w,de)|0,r=r+Math.imul(w,ue)|0,r=r+Math.imul(j,de)|0,s=s+Math.imul(j,ue)|0,n=n+Math.imul(N,fe)|0,r=r+Math.imul(N,he)|0,r=r+Math.imul(g,fe)|0,s=s+Math.imul(g,he)|0;var Pe=(i+n|0)+((8191&r)<<13)|0;i=(s+(r>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(L,Q),r=Math.imul(L,ee),r=r+Math.imul(Y,Q)|0,s=Math.imul(Y,ee),n=n+Math.imul(R,ae)|0,r=r+Math.imul(R,ne)|0,r=r+Math.imul(G,ae)|0,s=s+Math.imul(G,ne)|0,n=n+Math.imul(O,se)|0,r=r+Math.imul(O,le)|0,r=r+Math.imul(M,se)|0,s=s+Math.imul(M,le)|0,n=n+Math.imul(C,ce)|0,r=r+Math.imul(C,ie)|0,r=r+Math.imul(A,ce)|0,s=s+Math.imul(A,ie)|0,n=n+Math.imul(x,de)|0,r=r+Math.imul(x,ue)|0,r=r+Math.imul(S,de)|0,s=s+Math.imul(S,ue)|0,n=n+Math.imul(w,fe)|0,r=r+Math.imul(w,he)|0,r=r+Math.imul(j,fe)|0,s=s+Math.imul(j,he)|0;var Ce=(i+n|0)+((8191&r)<<13)|0;i=(s+(r>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(L,ae),r=Math.imul(L,ne),r=r+Math.imul(Y,ae)|0,s=Math.imul(Y,ne),n=n+Math.imul(R,se)|0,r=r+Math.imul(R,le)|0,r=r+Math.imul(G,se)|0,s=s+Math.imul(G,le)|0,n=n+Math.imul(O,ce)|0,r=r+Math.imul(O,ie)|0,r=r+Math.imul(M,ce)|0,s=s+Math.imul(M,ie)|0,n=n+Math.imul(C,de)|0,r=r+Math.imul(C,ue)|0,r=r+Math.imul(A,de)|0,s=s+Math.imul(A,ue)|0,n=n+Math.imul(x,fe)|0,r=r+Math.imul(x,he)|0,r=r+Math.imul(S,fe)|0,s=s+Math.imul(S,he)|0;var Ae=(i+n|0)+((8191&r)<<13)|0;i=(s+(r>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(L,se),r=Math.imul(L,le),r=r+Math.imul(Y,se)|0,s=Math.imul(Y,le),n=n+Math.imul(R,ce)|0,r=r+Math.imul(R,ie)|0,r=r+Math.imul(G,ce)|0,s=s+Math.imul(G,ie)|0,n=n+Math.imul(O,de)|0,r=r+Math.imul(O,ue)|0,r=r+Math.imul(M,de)|0,s=s+Math.imul(M,ue)|0,n=n+Math.imul(C,fe)|0,r=r+Math.imul(C,he)|0,r=r+Math.imul(A,fe)|0,s=s+Math.imul(A,he)|0;var Te=(i+n|0)+((8191&r)<<13)|0;i=(s+(r>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(L,ce),r=Math.imul(L,ie),r=r+Math.imul(Y,ce)|0,s=Math.imul(Y,ie),n=n+Math.imul(R,de)|0,r=r+Math.imul(R,ue)|0,r=r+Math.imul(G,de)|0,s=s+Math.imul(G,ue)|0,n=n+Math.imul(O,fe)|0,r=r+Math.imul(O,he)|0,r=r+Math.imul(M,fe)|0,s=s+Math.imul(M,he)|0;var Oe=(i+n|0)+((8191&r)<<13)|0;i=(s+(r>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(L,de),r=Math.imul(L,ue),r=r+Math.imul(Y,de)|0,s=Math.imul(Y,ue),n=n+Math.imul(R,fe)|0,r=r+Math.imul(R,he)|0,r=r+Math.imul(G,fe)|0,s=s+Math.imul(G,he)|0;var Me=(i+n|0)+((8191&r)<<13)|0;i=(s+(r>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(L,fe),r=Math.imul(L,he),r=r+Math.imul(Y,fe)|0,s=Math.imul(Y,he);var De=(i+n|0)+((8191&r)<<13)|0;return i=(s+(r>>>13)|0)+(De>>>26)|0,De&=67108863,c[0]=Ee,c[1]=ve,c[2]=be,c[3]=ye,c[4]=Ne,c[5]=ge,c[6]=_e,c[7]=we,c[8]=je,c[9]=ke,c[10]=xe,c[11]=Se,c[12]=Pe,c[13]=Ce,c[14]=Ae,c[15]=Te,c[16]=Oe,c[17]=Me,c[18]=De,0!==i&&(c[19]=i,a.length++),a};Math.imul||(j=i),s.prototype.mulTo=function(e,t){var a=this.length+e.length;return 10===this.length&&10===e.length?j(this,e,t):a<63?i(this,e,t):a<1024?m(this,e,t):d(this,e,t)},u.prototype.makeRBT=function(e){for(var t=new Array(e),a=s.prototype._countBits(e)-1,n=0;n>=1;return n},u.prototype.permute=function(e,t,a,n,r,s){for(var l=0;l>>=1)r++;return 1<>>=13,a[2*l+1]=8191&s,s>>>=13;for(l=2*t;l>=26,t+=r/67108864|0,t+=s>>>26,this.words[a]=67108863&s}return 0!==t&&(this.words[a]=t,this.length++),this},s.prototype.muln=function(e){return this.clone().imuln(e)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(e){var t=c(e);if(0===t.length)return new s(1);for(var a=this,n=0;n=0);var t,a=e%26,r=(e-a)/26,s=67108863>>>26-a<<26-a;if(0!==a){var l=0;for(t=0;t>>26-a}l&&(this.words[t]=l,this.length++)}if(0!==r){for(t=this.length-1;t>=0;t--)this.words[t+r]=this.words[t];for(t=0;t=0);var r;r=t?(t-t%26)/26:0;var s=e%26,l=Math.min((e-s)/26,this.length),o=67108863^67108863>>>s<l)for(this.length-=l,i=0;i=0&&(0!==m||i>=r);i--){var d=0|this.words[i];this.words[i]=m<<26-s|d>>>s,m=d&o}return c&&0!==m&&(c.words[c.length++]=m),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(e,t,a){return n(0===this.negative),this.iushrn(e,t,a)},s.prototype.shln=function(e){return this.clone().ishln(e)},s.prototype.ushln=function(e){return this.clone().iushln(e)},s.prototype.shrn=function(e){return this.clone().ishrn(e)},s.prototype.ushrn=function(e){return this.clone().iushrn(e)},s.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,a=(e-t)/26,r=1<=0);var t=e%26,a=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=a)return this;if(0!==t&&a++,this.length=Math.min(a,this.length),0!==t){var r=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},s.prototype.isubn=function(e){if(n("number"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(c/67108864|0),this.words[r+a]=67108863&l}for(;r>26,this.words[r+a]=67108863&l;if(0===o)return this.strip();for(n(-1===o),o=0,r=0;r>26,this.words[r]=67108863&l;return this.negative=1,this.strip()},s.prototype._wordDiv=function(e,t){var a=this.length-e.length,n=this.clone(),r=e,l=0|r.words[r.length-1];0!==(a=26-this._countBits(l))&&(r=r.ushln(a),n.iushln(a),l=0|r.words[r.length-1]);var o,c=n.length-r.length;if("mod"!==t){o=new s(null),o.length=c+1,o.words=new Array(o.length);for(var i=0;i=0;d--){var u=67108864*(0|n.words[r.length+d])+(0|n.words[r.length+d-1]);for(u=Math.min(u/l|0,67108863),n._ishlnsubmul(r,u,d);0!==n.negative;)u--,n.negative=0,n._ishlnsubmul(r,1,d),n.isZero()||(n.negative^=1);o&&(o.words[d]=u)}return o&&o.strip(),n.strip(),"div"!==t&&0!==a&&n.iushrn(a),{div:o||null,mod:n}},s.prototype.divmod=function(e,t,a){if(n(!e.isZero()),this.isZero())return{div:new s(0),mod:new s(0)};var r,l,o;return 0!==this.negative&&0===e.negative?(o=this.neg().divmod(e,t),"mod"!==t&&(r=o.div.neg()),"div"!==t&&(l=o.mod.neg(),a&&0!==l.negative&&l.iadd(e)),{div:r,mod:l}):0===this.negative&&0!==e.negative?(o=this.divmod(e.neg(),t),"mod"!==t&&(r=o.div.neg()),{div:r,mod:o.mod}):0!=(this.negative&e.negative)?(o=this.neg().divmod(e.neg(),t),"div"!==t&&(l=o.mod.neg(),a&&0!==l.negative&&l.isub(e)),{div:o.div,mod:l}):e.length>this.length||this.cmp(e)<0?{div:new s(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new s(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new s(this.modn(e.words[0]))}:this._wordDiv(e,t)},s.prototype.div=function(e){return this.divmod(e,"div",!1).div},s.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},s.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},s.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var a=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),r=e.andln(1),s=a.cmp(n);return s<0||1===r&&0===s?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},s.prototype.modn=function(e){n(e<=67108863);for(var t=(1<<26)%e,a=0,r=this.length-1;r>=0;r--)a=(t*a+(0|this.words[r]))%e;return a},s.prototype.idivn=function(e){n(e<=67108863);for(var t=0,a=this.length-1;a>=0;a--){var r=(0|this.words[a])+67108864*t;this.words[a]=r/e|0,t=r%e}return this.strip()},s.prototype.divn=function(e){return this.clone().idivn(e)},s.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,a=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var r=new s(1),l=new s(0),o=new s(0),c=new s(1),i=0;t.isEven()&&a.isEven();)t.iushrn(1),a.iushrn(1),++i;for(var m=a.clone(),d=t.clone();!t.isZero();){for(var u=0,p=1;0==(t.words[0]&p)&&u<26;++u,p<<=1);if(u>0)for(t.iushrn(u);u-- >0;)(r.isOdd()||l.isOdd())&&(r.iadd(m),l.isub(d)),r.iushrn(1),l.iushrn(1);for(var f=0,h=1;0==(a.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(a.iushrn(f);f-- >0;)(o.isOdd()||c.isOdd())&&(o.iadd(m),c.isub(d)),o.iushrn(1),c.iushrn(1);t.cmp(a)>=0?(t.isub(a),r.isub(o),l.isub(c)):(a.isub(t),o.isub(r),c.isub(l))}return{a:o,b:c,gcd:a.iushln(i)}},s.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,a=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var r=new s(1),l=new s(0),o=a.clone();t.cmpn(1)>0&&a.cmpn(1)>0;){for(var c=0,i=1;0==(t.words[0]&i)&&c<26;++c,i<<=1);if(c>0)for(t.iushrn(c);c-- >0;)r.isOdd()&&r.iadd(o),r.iushrn(1);for(var m=0,d=1;0==(a.words[0]&d)&&m<26;++m,d<<=1);if(m>0)for(a.iushrn(m);m-- >0;)l.isOdd()&&l.iadd(o),l.iushrn(1);t.cmp(a)>=0?(t.isub(a),r.isub(l)):(a.isub(t),l.isub(r))}var u;return u=0===t.cmpn(1)?r:l,u.cmpn(0)<0&&u.iadd(e),u},s.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),a=e.clone();t.negative=0,a.negative=0;for(var n=0;t.isEven()&&a.isEven();n++)t.iushrn(1),a.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;a.isEven();)a.iushrn(1);var r=t.cmp(a);if(r<0){var s=t;t=a,a=s}else if(0===r||0===a.cmpn(1))break;t.isub(a)}return a.iushln(n)},s.prototype.invm=function(e){return this.egcd(e).a.umod(e)},s.prototype.isEven=function(){return 0==(1&this.words[0])},s.prototype.isOdd=function(){return 1==(1&this.words[0])},s.prototype.andln=function(e){return this.words[0]&e},s.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,a=(e-t)/26,r=1<>>26,o&=67108863,this.words[l]=o}return 0!==s&&(this.words[l]=s,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(e){var t=e<0;if(0!==this.negative&&!t)return-1;if(0===this.negative&&t)return 1;this.strip();var a;if(this.length>1)a=1;else{t&&(e=-e),n(e<=67108863,"Number is too big");var r=0|this.words[0];a=r===e?0:re.length)return 1;if(this.length=0;a--){var n=0|this.words[a],r=0|e.words[a];if(n!==r){nr&&(t=1);break}}return t},s.prototype.gtn=function(e){return 1===this.cmpn(e)},s.prototype.gt=function(e){return 1===this.cmp(e)},s.prototype.gten=function(e){return this.cmpn(e)>=0},s.prototype.gte=function(e){return this.cmp(e)>=0},s.prototype.ltn=function(e){return-1===this.cmpn(e)},s.prototype.lt=function(e){return-1===this.cmp(e)},s.prototype.lten=function(e){return this.cmpn(e)<=0},s.prototype.lte=function(e){return this.cmp(e)<=0},s.prototype.eqn=function(e){return 0===this.cmpn(e)},s.prototype.eq=function(e){return 0===this.cmp(e)},s.red=function(e){return new b(e)},s.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},s.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(e){return this.red=e,this},s.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},s.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},s.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},s.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},s.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},s.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},s.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},s.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},s.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var k={k256:null,p224:null,p192:null,p25519:null};p.prototype._tmp=function(){var e=new s(null);return e.words=new Array(Math.ceil(this.n/13)),e},p.prototype.ireduce=function(e){var t,a=e;do{this.split(a,this.tmp),a=this.imulK(a),a=a.iadd(this.tmp),t=a.bitLength()}while(t>this.n);var n=t0?a.isub(this.p):a.strip(),a},p.prototype.split=function(e,t){e.iushrn(this.n,0,t)},p.prototype.imulK=function(e){return e.imul(this.k)},r(f,p),f.prototype.split=function(e,t){for(var a=Math.min(e.length,9),n=0;n>>22,r=s}r>>>=22,e.words[n-10]=r,0===r&&e.length>10?e.length-=10:e.length-=9},f.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,a=0;a>>=26,e.words[a]=r,t=n}return 0!==t&&(e.words[e.length++]=t),e},s._prime=function(e){if(k[e])return k[e];var t;if("k256"===e)t=new f;else if("p224"===e)t=new h;else if("p192"===e)t=new E;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new v}return k[e]=t,t},b.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},b.prototype._verify2=function(e,t){n(0==(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},b.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},b.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},b.prototype.add=function(e,t){this._verify2(e,t);var a=e.add(t);return a.cmp(this.m)>=0&&a.isub(this.m),a._forceRed(this)},b.prototype.iadd=function(e,t){this._verify2(e,t);var a=e.iadd(t);return a.cmp(this.m)>=0&&a.isub(this.m),a},b.prototype.sub=function(e,t){this._verify2(e,t);var a=e.sub(t);return a.cmpn(0)<0&&a.iadd(this.m),a._forceRed(this)},b.prototype.isub=function(e,t){this._verify2(e,t);var a=e.isub(t);return a.cmpn(0)<0&&a.iadd(this.m),a},b.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},b.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},b.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},b.prototype.isqr=function(e){return this.imul(e,e.clone())},b.prototype.sqr=function(e){return this.mul(e,e)},b.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var a=this.m.add(new s(1)).iushrn(2);return this.pow(e,a)}for(var r=this.m.subn(1),l=0;!r.isZero()&&0===r.andln(1);)l++,r.iushrn(1);n(!r.isZero());var o=new s(1).toRed(this),c=o.redNeg(),i=this.m.subn(1).iushrn(1),m=this.m.bitLength();for(m=new s(2*m*m).toRed(this);0!==this.pow(m,i).cmp(c);)m.redIAdd(c);for(var d=this.pow(m,r),u=this.pow(e,r.addn(1).iushrn(1)),p=this.pow(e,r),f=l;0!==p.cmp(o);){for(var h=p,E=0;0!==h.cmp(o);E++)h=h.redSqr();n(E=0;n--){for(var i=t.words[n],m=c-1;m>=0;m--){var d=i>>m&1;r!==a[0]&&(r=this.sqr(r)),0!==d||0!==l?(l<<=1,l|=d,(4===++o||0===n&&0===m)&&(r=this.mul(r,a[l]),o=0,l=0)):o=0}c=26}return r},b.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},b.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},s.mont=function(e){return new y(e)},r(y,b),y.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},y.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},y.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var a=e.imul(t),n=a.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=a.isub(n).iushrn(this.shift),s=r;return r.cmp(this.m)>=0?s=r.isub(this.m):r.cmpn(0)<0&&(s=r.iadd(this.m)),s._forceRed(this)},y.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new s(0)._forceRed(this);var a=e.mul(t),n=a.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=a.isub(n).iushrn(this.shift),l=r;return r.cmp(this.m)>=0?l=r.isub(this.m):r.cmpn(0)<0&&(l=r.iadd(this.m)),l._forceRed(this)},y.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(void 0===e||e,this)}).call(t,a(848)(e))},function(e,t,a){"use strict";var n=function(){};e.exports=n},function(e,t,a){"use strict";(function(e){function n(){return s.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function r(e,t){if(n()=n())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n().toString(16)+" bytes");return 0|e}function h(e){return+e!=e&&(e=0),s.alloc(+e)}function E(e,t){if(s.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var a=e.length;if(0===a)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return a;case"utf8":case"utf-8":case void 0:return W(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*a;case"hex":return a>>>1;case"base64":return V(e).length;default:if(n)return W(e).length;t=(""+t).toLowerCase(),n=!0}}function v(e,t,a){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===a||a>this.length)&&(a=this.length),a<=0)return"";if(a>>>=0,t>>>=0,a<=t)return"";for(e||(e="utf8");;)switch(e){case"hex":return O(this,t,a);case"utf8":case"utf-8":return P(this,t,a);case"ascii":return A(this,t,a);case"latin1":case"binary":return T(this,t,a);case"base64":return S(this,t,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,t,a);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function b(e,t,a){var n=e[t];e[t]=e[a],e[a]=n}function y(e,t,a,n,r){if(0===e.length)return-1;if("string"==typeof a?(n=a,a=0):a>2147483647?a=2147483647:a<-2147483648&&(a=-2147483648),a=+a,isNaN(a)&&(a=r?0:e.length-1),a<0&&(a=e.length+a),a>=e.length){if(r)return-1;a=e.length-1}else if(a<0){if(!r)return-1;a=0}if("string"==typeof t&&(t=s.from(t,n)),s.isBuffer(t))return 0===t.length?-1:N(e,t,a,n,r);if("number"==typeof t)return t&=255,s.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(e,t,a):Uint8Array.prototype.lastIndexOf.call(e,t,a):N(e,[t],a,n,r);throw new TypeError("val must be string, number or Buffer")}function N(e,t,a,n,r){function s(e,t){return 1===l?e[t]:e.readUInt16BE(t*l)}var l=1,o=e.length,c=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;l=2,o/=2,c/=2,a/=2}var i;if(r){var m=-1;for(i=a;io&&(a=o-c),i=a;i>=0;i--){for(var d=!0,u=0;ur&&(n=r):n=r;var s=t.length;if(s%2!=0)throw new TypeError("Invalid hex string");n>s/2&&(n=s/2);for(var l=0;l239?4:s>223?3:s>191?2:1;if(r+o<=a){var c,i,m,d;switch(o){case 1:s<128&&(l=s);break;case 2:c=e[r+1],128==(192&c)&&(d=(31&s)<<6|63&c)>127&&(l=d);break;case 3:c=e[r+1],i=e[r+2],128==(192&c)&&128==(192&i)&&(d=(15&s)<<12|(63&c)<<6|63&i)>2047&&(d<55296||d>57343)&&(l=d);break;case 4:c=e[r+1],i=e[r+2],m=e[r+3],128==(192&c)&&128==(192&i)&&128==(192&m)&&(d=(15&s)<<18|(63&c)<<12|(63&i)<<6|63&m)>65535&&d<1114112&&(l=d)}}null===l?(l=65533,o=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),r+=o}return C(n)}function C(e){var t=e.length;if(t<=Q)return String.fromCharCode.apply(String,e);for(var a="",n=0;nn)&&(a=n);for(var r="",s=t;sa)throw new RangeError("Trying to access beyond buffer length")}function R(e,t,a,n,r,l){if(!s.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>r||te.length)throw new RangeError("Index out of range")}function G(e,t,a,n){t<0&&(t=65535+t+1);for(var r=0,s=Math.min(e.length-a,2);r>>8*(n?r:1-r)}function I(e,t,a,n){t<0&&(t=4294967295+t+1);for(var r=0,s=Math.min(e.length-a,4);r>>8*(n?r:3-r)&255}function L(e,t,a,n,r,s){if(a+n>e.length)throw new RangeError("Index out of range");if(a<0)throw new RangeError("Index out of range")}function Y(e,t,a,n,r){return r||L(e,t,a,4,3.4028234663852886e38,-3.4028234663852886e38),X.write(e,t,a,n,23,4),a+4}function F(e,t,a,n,r){return r||L(e,t,a,8,1.7976931348623157e308,-1.7976931348623157e308),X.write(e,t,a,n,52,8),a+8}function B(e){if(e=z(e).replace(ee,""),e.length<2)return"";for(;e.length%4!=0;)e+="=";return e}function z(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function q(e){return e<16?"0"+e.toString(16):e.toString(16)}function W(e,t){t=t||1/0;for(var a,n=e.length,r=null,s=[],l=0;l55295&&a<57344){if(!r){if(a>56319){(t-=3)>-1&&s.push(239,191,189);continue}if(l+1===n){(t-=3)>-1&&s.push(239,191,189);continue}r=a;continue}if(a<56320){(t-=3)>-1&&s.push(239,191,189),r=a;continue}a=65536+(r-55296<<10|a-56320)}else r&&(t-=3)>-1&&s.push(239,191,189);if(r=null,a<128){if((t-=1)<0)break;s.push(a)}else if(a<2048){if((t-=2)<0)break;s.push(a>>6|192,63&a|128)}else if(a<65536){if((t-=3)<0)break;s.push(a>>12|224,a>>6&63|128,63&a|128)}else{if(!(a<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;s.push(a>>18|240,a>>12&63|128,a>>6&63|128,63&a|128)}}return s}function U(e){for(var t=[],a=0;a>8,r=a%256,s.push(r),s.push(n);return s}function V(e){return $.toByteArray(B(e))}function K(e,t,a,n){for(var r=0;r=t.length||r>=e.length);++r)t[r+a]=e[r];return r}function J(e){return e!==e}var $=a(586),X=a(663),Z=a(232);t.Buffer=s,t.SlowBuffer=h,t.INSPECT_MAX_BYTES=50,s.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=n(),s.poolSize=8192,s._augment=function(e){return e.__proto__=s.prototype,e},s.from=function(e,t,a){return l(null,e,t,a)},s.TYPED_ARRAY_SUPPORT&&(s.prototype.__proto__=Uint8Array.prototype,s.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&s[Symbol.species]===s&&Object.defineProperty(s,Symbol.species,{value:null,configurable:!0})),s.alloc=function(e,t,a){return c(null,e,t,a)},s.allocUnsafe=function(e){return i(null,e)},s.allocUnsafeSlow=function(e){return i(null,e)},s.isBuffer=function(e){return!(null==e||!e._isBuffer)},s.compare=function(e,t){if(!s.isBuffer(e)||!s.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var a=e.length,n=t.length,r=0,l=Math.min(a,n);r0&&(e=this.toString("hex",0,a).match(/.{2}/g).join(" "),this.length>a&&(e+=" ... ")),""},s.prototype.compare=function(e,t,a,n,r){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===a&&(a=e?e.length:0),void 0===n&&(n=0),void 0===r&&(r=this.length),t<0||a>e.length||n<0||r>this.length)throw new RangeError("out of range index");if(n>=r&&t>=a)return 0;if(n>=r)return-1;if(t>=a)return 1;if(t>>>=0,a>>>=0,n>>>=0,r>>>=0,this===e)return 0;for(var l=r-n,o=a-t,c=Math.min(l,o),i=this.slice(n,r),m=e.slice(t,a),d=0;dr)&&(a=r),e.length>0&&(a<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var s=!1;;)switch(n){case"hex":return g(this,e,t,a);case"utf8":case"utf-8":return _(this,e,t,a);case"ascii":return w(this,e,t,a);case"latin1":case"binary":return j(this,e,t,a);case"base64":return k(this,e,t,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,e,t,a);default:if(s)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),s=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Q=4096;s.prototype.slice=function(e,t){var a=this.length;e=~~e,t=void 0===t?a:~~t,e<0?(e+=a)<0&&(e=0):e>a&&(e=a),t<0?(t+=a)<0&&(t=0):t>a&&(t=a),t0&&(r*=256);)n+=this[e+--t]*r;return n},s.prototype.readUInt8=function(e,t){return t||D(e,1,this.length),this[e]},s.prototype.readUInt16LE=function(e,t){return t||D(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUInt16BE=function(e,t){return t||D(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUInt32LE=function(e,t){return t||D(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUInt32BE=function(e,t){return t||D(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,a){e|=0,t|=0,a||D(e,t,this.length);for(var n=this[e],r=1,s=0;++s=r&&(n-=Math.pow(2,8*t)),n},s.prototype.readIntBE=function(e,t,a){e|=0,t|=0,a||D(e,t,this.length);for(var n=t,r=1,s=this[e+--n];n>0&&(r*=256);)s+=this[e+--n]*r;return r*=128,s>=r&&(s-=Math.pow(2,8*t)),s},s.prototype.readInt8=function(e,t){return t||D(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},s.prototype.readInt16LE=function(e,t){t||D(e,2,this.length);var a=this[e]|this[e+1]<<8;return 32768&a?4294901760|a:a},s.prototype.readInt16BE=function(e,t){t||D(e,2,this.length);var a=this[e+1]|this[e]<<8;return 32768&a?4294901760|a:a},s.prototype.readInt32LE=function(e,t){return t||D(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return t||D(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return t||D(e,4,this.length),X.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return t||D(e,4,this.length),X.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return t||D(e,8,this.length),X.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return t||D(e,8,this.length),X.read(this,e,!1,52,8)},s.prototype.writeUIntLE=function(e,t,a,n){if(e=+e,t|=0,a|=0,!n){R(this,e,t,a,Math.pow(2,8*a)-1,0)}var r=1,s=0;for(this[t]=255&e;++s=0&&(s*=256);)this[t+r]=e/s&255;return t+a},s.prototype.writeUInt8=function(e,t,a){return e=+e,t|=0,a||R(this,e,t,1,255,0),s.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},s.prototype.writeUInt16LE=function(e,t,a){return e=+e,t|=0,a||R(this,e,t,2,65535,0),s.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):G(this,e,t,!0),t+2},s.prototype.writeUInt16BE=function(e,t,a){return e=+e,t|=0,a||R(this,e,t,2,65535,0),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):G(this,e,t,!1),t+2},s.prototype.writeUInt32LE=function(e,t,a){return e=+e,t|=0,a||R(this,e,t,4,4294967295,0),s.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):I(this,e,t,!0),t+4},s.prototype.writeUInt32BE=function(e,t,a){return e=+e,t|=0,a||R(this,e,t,4,4294967295,0),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):I(this,e,t,!1),t+4},s.prototype.writeIntLE=function(e,t,a,n){if(e=+e,t|=0,!n){var r=Math.pow(2,8*a-1);R(this,e,t,a,r-1,-r)}var s=0,l=1,o=0;for(this[t]=255&e;++s>0)-o&255;return t+a},s.prototype.writeIntBE=function(e,t,a,n){if(e=+e,t|=0,!n){var r=Math.pow(2,8*a-1);R(this,e,t,a,r-1,-r)}var s=a-1,l=1,o=0;for(this[t+s]=255&e;--s>=0&&(l*=256);)e<0&&0===o&&0!==this[t+s+1]&&(o=1),this[t+s]=(e/l>>0)-o&255;return t+a},s.prototype.writeInt8=function(e,t,a){return e=+e,t|=0,a||R(this,e,t,1,127,-128),s.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,a){return e=+e,t|=0,a||R(this,e,t,2,32767,-32768),s.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):G(this,e,t,!0),t+2},s.prototype.writeInt16BE=function(e,t,a){return e=+e,t|=0,a||R(this,e,t,2,32767,-32768),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):G(this,e,t,!1),t+2},s.prototype.writeInt32LE=function(e,t,a){return e=+e,t|=0,a||R(this,e,t,4,2147483647,-2147483648),s.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):I(this,e,t,!0),t+4},s.prototype.writeInt32BE=function(e,t,a){return e=+e,t|=0,a||R(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):I(this,e,t,!1),t+4},s.prototype.writeFloatLE=function(e,t,a){return Y(this,e,t,!0,a)},s.prototype.writeFloatBE=function(e,t,a){return Y(this,e,t,!1,a)},s.prototype.writeDoubleLE=function(e,t,a){return F(this,e,t,!0,a)},s.prototype.writeDoubleBE=function(e,t,a){return F(this,e,t,!1,a)},s.prototype.copy=function(e,t,a,n){if(a||(a=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t=0;--r)e[r+t]=this[r+a];else if(l<1e3||!s.TYPED_ARRAY_SUPPORT)for(r=0;r>>=0,a=void 0===a?this.length:a>>>0,e||(e=0);var l;if("number"==typeof e)for(l=t;l2&&void 0!==arguments[2]?arguments[2]:function(){return{}},n=arguments[3],r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},s=function(n){return _.a.createElement(C,l()({},n,{network:e,networkLink:t,opts:a(n)}))};return s.propTypes=n,s.defaultProps=r,s}var s=a(90),l=a.n(s),o=a(195),c=a.n(o),i=a(1),m=a.n(i),d=a(2),u=a.n(d),p=a(4),f=a.n(p),h=a(3),E=a.n(h),v=a(196),b=a.n(v),y=a(91),N=a.n(y),g=a(0),_=a.n(g),w=a(8),j=a.n(w),k=a(13),x=a.n(k),S=a(268),P=function(e){return!!e&&("object"===(void 0===e?"undefined":N()(e))||"function"==typeof e)&&"function"==typeof e.then},C=function(e){function t(){var e,a,r,s;m()(this,t);for(var l=arguments.length,o=Array(l),i=0;i=0;o--)if(c[o]!==i[o])return!1;for(o=c.length-1;o>=0;o--)if(l=c[o],!p(e[l],t[l],a,n))return!1;return!0}function E(e,t,a){p(e,t,!0)&&d(e,t,a,"notDeepStrictEqual",E)}function v(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(e){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function b(e){var t;try{e()}catch(e){t=e}return t}function y(e,t,a,n){var r;if("function"!=typeof t)throw new TypeError('"block" argument must be a function');"string"==typeof a&&(n=a,a=null),r=b(t),n=(a&&a.name?" ("+a.name+").":".")+(n?" "+n:"."),e&&!r&&d(r,a,"Missing expected exception"+n);var s="string"==typeof n,l=!e&&N.isError(r),o=!e&&r&&!a;if((l&&s&&v(r,a)||o)&&d(r,a,"Got unwanted exception"+n),e&&r&&a&&!v(r,a)||!e&&r)throw r}var N=a(845),g=Object.prototype.hasOwnProperty,_=Array.prototype.slice,w=function(){return"foo"===function(){}.name}(),j=e.exports=u,k=/\s*function\s+([^\(\s]*)\s*/;j.AssertionError=function(e){this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=m(this),this.generatedMessage=!0);var t=e.stackStartFunction||d;if(Error.captureStackTrace)Error.captureStackTrace(this,t);else{var a=new Error;if(a.stack){var n=a.stack,r=o(t),s=n.indexOf("\n"+r);if(s>=0){var l=n.indexOf("\n",s+1);n=n.substring(l+1)}this.stack=n}}},N.inherits(j.AssertionError,Error),j.fail=d,j.ok=u,j.equal=function(e,t,a){e!=t&&d(e,t,a,"==",j.equal)},j.notEqual=function(e,t,a){e==t&&d(e,t,a,"!=",j.notEqual)},j.deepEqual=function(e,t,a){p(e,t,!1)||d(e,t,a,"deepEqual",j.deepEqual)},j.deepStrictEqual=function(e,t,a){p(e,t,!0)||d(e,t,a,"deepStrictEqual",j.deepStrictEqual)},j.notDeepEqual=function(e,t,a){p(e,t,!1)&&d(e,t,a,"notDeepEqual",j.notDeepEqual)},j.notDeepStrictEqual=E,j.strictEqual=function(e,t,a){e!==t&&d(e,t,a,"===",j.strictEqual)},j.notStrictEqual=function(e,t,a){e===t&&d(e,t,a,"!==",j.notStrictEqual)},j.throws=function(e,t,a){y(!0,e,t,a)},j.doesNotThrow=function(e,t,a){y(!1,e,t,a)},j.ifError=function(e){if(e)throw e};var x=Object.keys||function(e){var t=[];for(var a in e)g.call(e,a)&&t.push(a);return t}}).call(t,a(29))},function(e,t,a){"use strict";function n(e,t){var a=function(a){var n=a.className,r=a.iconBgStyle,l=a.logoFillColor,o=a.round,c=a.size,i={width:c,height:c},m="social-icon social-icon--"+e+" "+n;return s.a.createElement("div",{style:i},s.a.createElement("svg",{viewBox:"0 0 64 64",width:c,height:c,className:m},s.a.createElement("g",null,o?s.a.createElement("circle",{cx:"32",cy:"32",r:"31",fill:t.color,style:r}):s.a.createElement("rect",{width:"64",height:"64",fill:t.color,style:r})),s.a.createElement("g",null,s.a.createElement("path",{d:t.icon,fill:l}))))};return a.propTypes={className:o.a.string,iconBgStyle:o.a.object,logoFillColor:o.a.string,round:o.a.bool,size:o.a.number},a.defaultProps={className:"",iconBgStyle:{},logoFillColor:"white",size:64},a}t.a=n;var r=a(0),s=a.n(r),l=a(8),o=a.n(l)},,,function(e,t,a){"use strict";var n=t;n.version=a(643).version,n.utils=a(642),n.rand=a(209),n.curve=a(99),n.curves=a(634),n.ec=a(635),n.eddsa=a(638)},,function(e,t){var a=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=a)},function(e,t){function a(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=a,a.equal=function(e,t,a){if(e!=t)throw new Error(a||"Assertion failed: "+e+" != "+t)}},function(e,t){function a(e){return e&&e.__esModule?e:{default:e}}e.exports=a},function(e,t){function a(){throw new Error("setTimeout has not been defined")}function n(){throw new Error("clearTimeout has not been defined")}function r(e){if(m===setTimeout)return setTimeout(e,0);if((m===a||!m)&&setTimeout)return m=setTimeout,setTimeout(e,0);try{return m(e,0)}catch(t){try{return m.call(null,e,0)}catch(t){return m.call(this,e,0)}}}function s(e){if(d===clearTimeout)return clearTimeout(e);if((d===n||!d)&&clearTimeout)return d=clearTimeout,clearTimeout(e);try{return d(e)}catch(t){try{return d.call(null,e)}catch(t){return d.call(this,e)}}}function l(){h&&p&&(h=!1,p.length?f=p.concat(f):E=-1,f.length&&o())}function o(){if(!h){var e=r(l);h=!0;for(var t=f.length;t;){for(p=f,f=[];++E1)for(var a=1;a>8,l=255&r;s?a.push(s,l):a.push(l)}else for(n=0;n>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function l(e,t){for(var a="",n=0;n>>0}return s}function m(e,t){for(var a=new Array(4*e.length),n=0,r=0;n>>24,a[r+1]=s>>>16&255,a[r+2]=s>>>8&255,a[r+3]=255&s):(a[r+3]=s>>>24,a[r+2]=s>>>16&255,a[r+1]=s>>>8&255,a[r]=255&s)}return a}function d(e,t){return e>>>t|e<<32-t}function u(e,t){return e<>>32-t}function p(e,t){return e+t>>>0}function f(e,t,a){return e+t+a>>>0}function h(e,t,a,n){return e+t+a+n>>>0}function E(e,t,a,n,r){return e+t+a+n+r>>>0}function v(e,t,a,n){var r=e[t],s=e[t+1],l=n+s>>>0,o=(l>>0,e[t+1]=l}function b(e,t,a,n){return(t+n>>>0>>0}function y(e,t,a,n){return t+n>>>0}function N(e,t,a,n,r,s,l,o){var c=0,i=t;return i=i+n>>>0,c+=i>>0,c+=i>>0,c+=i>>0}function g(e,t,a,n,r,s,l,o){return t+n+s+o>>>0}function _(e,t,a,n,r,s,l,o,c,i){var m=0,d=t;return d=d+n>>>0,m+=d>>0,m+=d>>0,m+=d>>0,m+=d>>0}function w(e,t,a,n,r,s,l,o,c,i){return t+n+s+o+i>>>0}function j(e,t,a){return(t<<32-a|e>>>a)>>>0}function k(e,t,a){return(e<<32-a|t>>>a)>>>0}function x(e,t,a){return e>>>a}function S(e,t,a){return(e<<32-a|t>>>a)>>>0}var P=a(37),C=a(11);t.inherits=C,t.toArray=n,t.toHex=r,t.htonl=s,t.toHex32=l,t.zero2=o,t.zero8=c,t.join32=i,t.split32=m,t.rotr32=d,t.rotl32=u,t.sum32=p,t.sum32_3=f,t.sum32_4=h,t.sum32_5=E,t.sum64=v,t.sum64_hi=b,t.sum64_lo=y,t.sum64_4_hi=N,t.sum64_4_lo=g,t.sum64_5_hi=_,t.sum64_5_lo=w,t.rotr64_hi=j,t.rotr64_lo=k,t.shr64_hi=x,t.shr64_lo=S},function(e,t,a){"use strict";function n(e){return e.charAt(0).toUpperCase()+e.slice(1)}function r(e,t){return Object.keys(t).every(function(a){return e.hasOwnProperty(a)&&e[a]===t[a]})}function s(e,t){for(var a=(0,i.default)(t),n=0;n-1?e[a]:void 0}function o(){for(var e=arguments.length,t=new Array(e),a=0;a65536)throw new Error("requested too many random bytes");var r=new t.Uint8Array(e);e>0&&o.getRandomValues(r);var s=l.from(r.buffer);return"function"==typeof a?n.nextTick(function(){a(null,s)}):s}var l=a(12).Buffer,o=t.crypto||t.msCrypto;o&&o.getRandomValues?e.exports=s:e.exports=r}).call(t,a(29),a(39))},,,function(e,t,a){function n(e,t){this._block=r.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}var r=a(12).Buffer;n.prototype.update=function(e,t){"string"==typeof e&&(t=t||"utf8",e=r.from(e,t));for(var a=this._block,n=this._blockSize,s=e.length,l=this._len,o=0;o=this._finalSize&&(this._update(this._block),this._block.fill(0));var a=8*this._len;if(a<=4294967295)this._block.writeUInt32BE(a,this._blockSize-4);else{var n=(4294967295&a)>>>0,r=(a-n)/4294967296;this._block.writeUInt32BE(r,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var s=this._hash();return e?s.toString(e):s},n.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=n},function(e,t){e.exports=[{section:"Overview",description:"Get a better understanding of how the Nexoid ecosystem.",menu:[{title:"Getting Started",heading:!0},{title:"Overview",link:"overview",keywords:"nexoid platform overview system overview getting started",description:"Understand how the Nexoid platform fits together"},{title:"Database",heading:!0},{title:"Database Overview",link:"database_overview",keywords:"database overview nosql elastic search api elasticsearch database limits database limit foreign key constraints tables table record index indices document",description:"Understand how the Nexoid database works."},{title:"Field Naming Schema",link:"database_naming",keywords:"naming convention schema field database text string number int interger double long money date datetime array objects object",description:"Field naming convention for creating and updating records."}]},{section:"API",description:"Learn how to manipulate your data through the Nexoid API.",menu:[{title:"Getting Started",heading:!0},{title:"API Overview",link:"api_overview",keywords:"Nexoid API overview restapi rest api",description:"Get an understanding of how the Nexoid API works."},{title:"Get API URL",link:"url",keywords:"customer id customer url customer api url client id client url client api url get customer get client regional url region api ",description:"Get your Customer ID and API URL."},{title:"Using Postman",link:"postman",keywords:"download postman setup postman setup api api development environment dev environment",description:"How to setup postman for use with Nexoid API."},{title:"Response Codes",link:"response_codes",keywords:"HTTP API reponse codes 200 400 401 403 404 500 504 server error service timed out not found forbidden unauthorized bad request",description:"API reponse codes table and explanation."},{title:"Authentication",heading:!0},{title:"Sign In",link:"sign_in",keywords:"API Authentication Sign In signin login sign_in log in log_in",description:"How to sign in and get a Session ID."},{title:"Sign Out",link:"sign_out",keywords:"API Authentication Sign Out Sign Out All signout signoutall sign_out sign_out_all",description:"How to sign out an individual session or sign out all sessions connected to a user."},{title:"Change Password",link:"change_password",keywords:"API Authentication change password change_password",description:"How to change a user's password."},{title:"Authenticator",link:"authenticator",keywords:"API Authentication authenticator check password test password",description:"Test a user’s credentials against Nexoid’s Authentication engine."},{title:"Records",heading:!0},{title:"Record Overview",link:"record_overview",keywords:"API record records API record database db querrystring querry string",description:"Get an understanding of how the Record API works."},{title:"Create Record",link:"create_record",keywords:"API record records post_record post record bulk create insert database db insert_record create_record insert_records create_records",description:"Create or insert records to database."},{title:"Read Record",link:"read_record",keywords:"API record read read record get record database db read_record get_record",description:"Read records from database."},{title:"Update Record",link:"update_record",keywords:"API record update record patch record database db update_record patch_record",description:"Update a record in database."},{title:"Replace Record",link:"replace_record",keywords:"API record replace record put record database db replace_record put_record",description:"Replace a record in database."},{title:"Delete Record",link:"delete_record",keywords:"API record records bulk delete deletion remove database db delete_record delete_records",description:"Delete records from database."},{title:"Search Records",link:"search_records",keywords:"API record search record search records scroll record scroll records database db search_record search_records scroll_record scroll_records",description:"Search records in database."},{title:"Count Records",link:"count_records",keywords:"API record count record count records database db count_record count_records",description:"Count records in database."},{title:"View Record Audit",link:"view_record_audit",keywords:"API record search audit record audit records record history get history security autdit records database db audit_record audit_records scroll_audit_record scroll_audit_records",description:"Get the history of a record."},{title:"Delete Record Audit",link:"delete_record_audit",keywords:"API delete record audit record delete audit auditclean",description:"Delete record audit history."},{title:"Record Attachments",heading:!0},{title:"Attachments Overview",link:"attachments_overview",keywords:"API Authentication record attachment upload file attachments",description:"Get an understanding of how the Attachments API works."},{title:"Attachment Upload",link:"attachments_upload",keywords:"API record attachment upload file attach file add file to record record database db attach_file",description:"Upload a file to a record."},{title:"Attachment Rename",link:"attachments_rename",keywords:"API record attachment reaname file database db attach_rename file_rename file rename rename file",description:"Rename a file attached to a record."},{title:"Attachment Delete",link:"attachments_delete",keywords:"API record attachment delete file delete files database db attach_delete file_delete file",description:"Delete files attached to a record."},{title:"Search Attachments",link:"attachments_search",keywords:"API search records search attachments search record search attachment download records download attachments download record download attachment",description:"Search and download files attached to a record."},{title:"Notifications",heading:!0},{title:"Notifications Overview",link:"notifications_overview",keywords:"API create notification read notification get notifications",description:"Get an understanding of how the notifications API works."},{title:"Create Notification",link:"notifications_create",keywords:"API notification create notification_create",description:"Create a user notification."},{title:"View Notifications",link:"notifications_view",keywords:"API notification get notification view notification",description:"Get a users Notifications"},{title:"Mark Notification as Read",link:"notifications_mark_as_read",keywords:"API notification mark as read Mark_as_read",description:"Mark as a notification as read."},{title:"Email",heading:!0},{title:"Email Overview",link:"email_overview",keywords:"send email with api",description:"Get an understanding of how the email api works."},{title:"Send Email",link:"send_email",keywords:"API send email email send send_email",description:"Send an email"},{title:"PDF",heading:!0},{title:"PDF Overview",link:"pdf_overview",keywords:"pdf from html pdf make pdf s3 pdf",description:"Get an understanding of how the PDF engine works."},{title:"Create PDF",link:"pdf_create",keywords:"API create pdf create pdf from html html pdf html2pdf url2pdf make pdf from url",description:"Create a PDF from either html or a URL"},{title:"SMS",heading:!0},{title:"SMS Overview",link:"sms_overview",keywords:"send sms with api send text message with api overview",description:"How the SMS api works."},{title:"Send SMS",link:"send_sms",keywords:"API send sms api send text message send_sms",description:"Send an SMS or text message"},{title:"System Records",heading:!0},{title:"System Overview",link:"system_overview",keywords:"API system objects users groups user group email log keyword dashboard counter report rlp session user varibale workflow workflow log",description:"Get an understanding of how the system objects API works."},{title:"Data Types",link:"system_objects",keywords:"API system objects users groups user group email log keyword dashboard counter report rlp session user varibale workflow workflow log",description:"System objects used by Nexoid App."}]},{section:"Interface",description:"Build your own data interfaces and midify pre-built business modules.",menu:[{title:"Getting Started",heading:!0},{title:"Interface Overview",link:"interface_overview",keywords:"interface overview design",description:"Learn how to manipulate the interface."},{title:"Working with JSON",link:"working_with_json",keywords:"json xml script scripting ",description:"Understand how to work with JSON."},{title:"Inheritance Hierarchy",link:"inheritance_hierarchy",keywords:"override change interface design colors menu change",description:"Learn how the Nexoid model hierarchy works."},{title:"Importing and Exporting",link:"Importing_and_exporting",keywords:"import importing save export migrate model module interface",description:"How to import and export your modules."},{title:"Interface layouts",heading:!0},{title:"Layout Overview",link:"layout_overview",keywords:"interface layout object overview",description:"Learn how to create and modify your own interface layouts."},{title:"Layout Structure",link:"layout_structure",keywords:"interface layout object structure record search dashboard report cells cell cards card compoent containers container cars containers components",description:"Defines the structure of interface layouts from cells, cards, containers and components."},{title:"Layout Action Menus",link:"layout_action_menus",keywords:"interface layout object structure record search dashboard report menu action menu",description:"Add options and functions to the actions menu on on record pages."},{title:"Layout Create Options",link:"layout_create_options",keywords:"interface layout object structure record create customer create create record menu create menu",description:"Custom create record button with different default record data."},{title:"Layout Tab Menu",link:"layout_tab_menu",keywords:"interface layout object structure record search dashboard report tab section tab menu sections on page",description:"Break up complex record pages into logical sections using the tab menu."},{title:"Components",heading:!0},{title:"Component Overview",link:"component_overview",keywords:"interface components component overview",description:"Understand the basics of interface components."},{title:"Component EVAL",link:"component_record_eval",keywords:"interface record component textbox textfeild text box text feild",description:"Create textbox in the record interface."},{title:"Information Components",heading:!0},{title:"Information Component Overview",link:"information_component_overview",keywords:"interface information components overview information component overview",description:"Understand the basics of information components."},{title:"Information Heading",link:"component_information_heading",keywords:"interface information components heading title h1 h2 h3 h4",description:"Add a heading to your record, report, search or dashboard."},{title:"Information Paragraph",link:"component_information_paragraph",keywords:"interface information components paragraph text description",description:"Add a text block to your record, report, search or dashboard."},{title:"Record Components",heading:!0},{title:"Record Component Overview",link:"record_component_overview",keywords:"interface record components overview record component overview",description:"Understand the basics of record components."},{title:"Record Attachments",link:"component_record_attachments",keywords:"interface record component attachments file file upload s3",description:"Upload and view attachments in the record interface."},{title:"Record Button",link:"component_record_button",keywords:"interface record component button trigger event",description:"Trigger an event from the record page."},{title:"Record Button Set",link:"component_record_button_set",keywords:"interface record component button set trigger event",description:"Group buttons together."},{title:"Record Checkbox",link:"component_record_checkbox",keywords:"interface record component checkbox check box bool true false",description:"Select a true false value."},{title:"Record Code Editor",link:"component_record_code_editor",keywords:"interface record component html json js javascript edit code ide code editor",description:"Edit code"},{title:"Record Drag and Drop",link:"component_record_drag_and_drop_list",keywords:"interface record component drag and drop list reoder rearange drag drop dnd list",description:"Allow the user to reorder a list using drag and drop."},{title:"Record Keywords",link:"component_record_keywords",keywords:"interface record component keyword keywords tag tags chip chips key word key words",description:"Mapping keywords in the record interface."},{title:"Record Notes",link:"component_record_notes",keywords:"interface record component notes note",description:"Add notes to the record interface."},{title:"Record Select (Date)",link:"component_record_select_date",keywords:"interface record component textbox textfeild text box text feild",description:"Select foreign objects in the record interface."},{title:"Record Select (List)",link:"component_record_select_list",keywords:"interface record component textbox textfeild text box text feild",description:"Select foreign objects in the record interface."},{title:"Record Select (Object)",link:"component_record_select_object",keywords:"interface record component textbox textfeild text box text feild",description:"Select foreign objects in the record interface."},{title:"Record Textbox",link:"component_record_textbox",keywords:"interface record component textbox textfeild text box text feild",description:"Create textbox in the record interface."},{title:"Record Textbox List",link:"component_record_textbox_list",keywords:"interface record component textbox list textfeild list text box list text feild list",description:"Create textbox list in the record interface."},{title:"Record Timestamp",link:"component_record_timestamp",keywords:"interface record component textbox textfeild text box text feild",description:"Create textbox in the record interface."},{title:"Search Components",heading:!0},{title:"Search Component Overview",link:"search_component_overview",keywords:"search component overview search overview",description:"Understand the basics of search components."},{title:"Search Filter Date Range",link:"component_search_filter_date_range",keywords:"search component filter date range sort by date query by date",description:"Filter search results by a date range."},{title:"Search Filter Field",link:"component_search_filter_field",keywords:"search component filter field drop down dropdown select",description:"Filter search results on a specific field."},{title:"Search Filter Foreign Object",link:"component_search_filter_foreign_object",keywords:"search component linking to foreign object select foreign object assigned",description:"Filter search results on a foreing object ID."},{title:"Search Filter Number Range",link:"component_search_filter_number_range",keywords:"search component filter number range sort by number query by number decimal decimals",description:"Filter search results by a number range."},{title:"Search Free Text",link:"component_search_free_text",keywords:"search component filter text fields find in field search free text search",description:"Filter search results on using free text search."},{title:"Search Reset",link:"component_search_reset",keywords:"search component reset results reset default",description:"Reset all search filters to default."},{title:"Search Results",link:"component_search_results",keywords:"search component search results display search results show results display list",description:"Display search results in a list."},{title:"Search Sort",link:"component_search_sort",keywords:"search sort order sort filtered results",description:"Allow the user to sort search results."},{title:"Report Components",heading:!0},{title:"Report Component Overview",link:"report_component_overview",keywords:"report component overview reports overview report overview report permissions report permisson download csv report csv",description:"Understand the basics of report components."},{title:"Report Table",link:"component_report_table",keywords:"report component overview reports overview report overview",description:"Create powerful reports."},{title:"Report HTML",link:"component_report_html",keywords:"report html component overview html reports html report custom report",description:"Create custom HTML reports."},{title:"Dashboard Components",heading:!0},{title:"Dashboard Component Overview",link:"dashboard_component_overview",keywords:"dashboard component overview dashboards overview dashboard overview dashboard permissions",description:"Understand the basics of dashboard components."},{title:"Bar Chart",link:"component_dashboard_bar_chart",keywords:"dashboard graph chart bar chart bar graph",description:"Display data in a bar chart."},{title:"Doughnut Chart",link:"component_dashboard_doughnut_chart",keywords:"dashboard graph chart doughnut chart doughnut graph",description:"Display data in a doughnut chart."},{title:"Horizontal Bar Chart",link:"component_dashboard_horizontal_bar_chart",keywords:"dashboard graph chart horizontal bar chart horizontal bar graph",description:"Display data in a horizontal bar chart."},{title:"Line Chart",link:"component_dashboard_line_chart",keywords:"dashboard graph chart line chart line graph",description:"Display data in a line chart."},{title:"Pie Chart",link:"component_dashboard_pie_chart",keywords:"dashboard graph chart pie chart pie graph",description:"Display data in a pie chart."},{title:"Polar Chart",link:"component_dashboard_polar_chart",keywords:"dashboard graph chart polar chart polar graph",description:"Display data in a polar chart."},{title:"Material Design",heading:!0},{title:"Material Colors",link:"material_colors",keywords:"interface material colour color design choose colours colors pretty",description:"Colors from Google Material Design"},{title:"Material Icons",link:"material_icons",keywords:"interface material icons icon googel icon font",description:"Icons from Google Material Design"}]},{section:"Workflow",description:"Create simple yet powerful workflow automation.",menu:[{title:"Getting Started",heading:!0},{title:"Workflow Overview",link:"workflow_overview",keywords:"NL library Nexoid library Nexoid workflow overview nl library",description:"Get an understanding of how the Nexoid workflow engine works."},{title:"Application Events",link:"application_events",keywords:"NL library Nexoid library app.nexoid.com app applicaton event events button menu",description:"Understand events in application like buttons and menus."},{title:"Workflow Events",link:"workflow_events",keywords:"NL library Nexoid library workflow engine events workflow event",description:"Understand events from system workflow triggers."},{title:"Nexoid Library",heading:!0},{title:"NL Overview",link:"nl_overview",keywords:"NL library Nexoid library Nexoid workflow overview nl library",description:"Get an understanding of how the Nexoid workflow engine works."},{title:"NL.Interface",heading:!0},{title:"getQueryString",link:"nl_interface_getquerystring",keywords:"nl.interface.getquerystring get query string get querystring workflow NL library Nexoid library workflow",description:"NL.Interface.getQueryString allows you to get a querystring variable."},{title:"getQueryStringObject",link:"nl_interface_getquerystringobject",keywords:"nl.interface.getquerystringobject get query string object get querystring object workflow NL library Nexoid library workflow",description:"NL.Interface.getQueryStringObject allows you to get a querystring as an object."},{title:"isQueryString",link:"nl_interface_isquerystring",keywords:"nl.interface.isquerystring test query string test querystring workflow NL library Nexoid library workflow",description:"NL.Interface.isQueryString allows you to test if a querystring variable exists."},{title:"Navigate To",link:"nl_interface_navigateto",keywords:"nl.interface.navigateto navigate to redirect change url redirect to workflow NL library Nexoid library workflow",description:"NL.Interface.navigateTo allows you redirect the user within the Nexoid application."},{title:"Interface Update Record",link:"nl_interface_updaterecord",keywords:"nl.interface.updaterecord update record in interface interface update workflow NL library Nexoid library workflow",description:"NL.Interface.updateRecord allows you update the record variables within the Nexoid application."},{title:"NL.Record",heading:!0},{title:"Create Record",link:"nl_record_create",keywords:"nl.record.create record.create create record workflow NL library Nexoid library Workflow",description:"NL.Record.create allows you to create a record from a workflow event"},{title:"Read Record",link:"nl_record_read",keywords:"nl.record.read record.read read record workflow NL library Nexoid library Workflow",description:"NL.Record.read allows you to read a record from a workflow event"},{title:"Update Record",link:"nl_record_update",keywords:"nl.record.update record.update update record workflow NL library Nexoid library Workflow",description:"NL.Record.update allows you to update a record from a workflow event"},{title:"Replace Record",link:"nl_record_replace",keywords:"nl.record.replace record.replace replace record workflow NL library Nexoid library Workflow",description:"NL.Record.replace allows you to replace a record from a workflow event"},{title:"Delete Record",link:"nl_record_delete",keywords:"nl.record.delete record.delete delete record workflow NL library Nexoid library Workflow",description:"NL.Record.delete allows you to delete a record from a workflow event"},{title:"Search Record",link:"nl_record_search",keywords:"nl.record.search record.search search record workflow NL library Nexoid library Workflow",description:"NL.Record.search allows you to search records from a workflow event"},{title:"Audit Delete",link:"nl_record_audit_delete",keywords:"nl.record.audit_delete record.audit_delete audit delete record workflow NL library Nexoid library Workflow",description:"NL.Record.audit_delete allows you to delete old audit records"},{title:"NL.Authentication",heading:!0},{title:"Authenticator",link:"nl_authentication_authenticator",keywords:"nl.authentication.authenticator authentication.authenticator authenticator NL library Nexoid library Workflow",description:"NL.Authentication.authenticator allows you to test a user’s credentials against Nexoid’s Authentication engine."},{title:"NL.Notification",heading:!0},{title:"Create Notification",link:"nl_notification_create",keywords:"nl.notification.create notification.create create notification workflow NL library Nexoid library Workflow",description:"NL.Notification.create allows you to create a notification from a workflow event"},{title:"View Notifications",link:"nl_notification_view",keywords:"nl.notification.view notification.view view notification notifications workflow NL library Nexoid library Workflow",description:"NL.Notification.view allows you to view notifications from a workflow event"},{title:"Mark Notificaton as Read",link:"nl_notification_markasread",keywords:"nl.notification.markasread notification.markasread markasread notification workflow NL library Nexoid library Workflow",description:"NL.Notification.markAsRead allows you to mark a notification as read from a workflow event"},{title:"NL.Email",heading:!0},{title:"Send Email",link:"nl_email_send",keywords:"nl.email.send email.send send email workflow NL library Nexoid library Workflow",description:"NL.Email.send allows you to send email from a workflow event"},{title:"NL.PDF",heading:!0},{title:"Create PDF",link:"nl_pdf_create",keywords:"nl.pdf.create pdf.create create pdf workflow NL library Nexoid library Workflow",description:"NL.PDF.create allows you to create a PDF from either a URL or HTML string"},{title:"NL.SMS",heading:!0},{title:"Send SMS",link:"nl_sms_send",keywords:"nl.sms.send sms.send send sms send text workflow NL library Nexoid library Workflow",description:"NL.SMS.send allows you to send SMS from a workflow event"},{title:"NL.Geo",heading:!0},{title:"Get Geo",link:"nl_geo_get",keywords:"nl.geo.get geo.get ip ipv4 ip geo ip address workflow NL library Nexoid library Workflow",description:"NL.Geo.get get the geo location data from an IPv4 address"},{title:"NL.S3",heading:!0},{title:"Init S3",link:"nl_s3_init",keywords:"nl.s3.init s3.init aws s3 initation s3 bucket",description:"NL.S3.init connect to your own AWS S3 bucket"},{title:"Delete File S3",link:"nl_s3_delete",keywords:"nl.s3.delete s3.delete aws s3 delete file s3 bucket delete key s3 key",description:"NL.S3.delete delete a file or key from your own AWS S3 bucket"},{title:"Delete Folder S3",link:"nl_s3_delete_files",keywords:"nl.s3.deletefiles s3.deletefiles aws s3 delete folder delete files s3 bucket delete keys s3 keys",description:"NL.S3.deleteFiles delete folder from your own AWS S3 bucket"},{title:"Download File S3",link:"nl_s3_download",keywords:"nl.s3.download s3.download aws s3 download file s3 bucket download key s3 key",description:"NL.S3.download a file from your own AWS S3 bucket"},{title:"Download Files S3",link:"nl_s3_download_files",keywords:"nl.s3.downloadfiles s3.downloadfiles aws s3 download files s3 bucket download keys s3 keys",description:"NL.S3.downloadFiles multiple files from your own AWS S3 bucket"},{title:"List Files S3",link:"nl_s3_list",keywords:"nl.s3.list s3.list aws s3 list files s3 bucket list keys s3 keys",description:"NL.S3.list list files in a folder in your own AWS S3 bucket"},{title:"Upload File S3",link:"nl_s3_upload",keywords:"nl.s3.upload s3.upload aws s3 upload file s3 bucket download key s3 key",description:"NL.S3.upload update a file to your own AWS S3 bucket"},{title:"Upload Files S3",link:"nl_s3_upload_files",keywords:"nl.s3.uploadfiles s3.uploadfiles aws s3 upload files s3 bucket upload keys s3 keys",description:"NL.S3.uploadFiles upload multiple files to your own AWS S3 bucket"},{title:"NL.Translate",heading:!0},{title:"Init Translate",link:"nl_translate_init",keywords:"nl.translate.init translate.init aws translate initation translate",description:"NL.Translate.init initiate the AWS translation framework with S3 cache"},{title:"Translate",link:"nl_translate_translate",keywords:"nl.translate.translate translate.translate aws translate text",description:"NL.Translate.translate text into multiple languages."},{title:"Save Cache",link:"nl_translate_savecache",keywords:"nl.Translate.savecache Translate.savecache aws translate save cache",description:"NL.Translate.savecache saves the cache file to the S3"}]},{section:"Security",description:"Understand the Nexoid object and record level permission structure.",menu:[{title:"Security",heading:!0},{title:"Overview",link:"security_overview",keywords:"Security and Permission Overview RLP",description:"Get an understanding of record level permissions and object level permissions."},{title:"Permissions",link:"system_permissions",keywords:"System Permissions Permission notificationcreate emailsend auditclean noaudit auth usersread reportsdownload reportsread dashboardread keywordcreate keywordread admin",description:"Built in special system permissions."},{title:"Permissions Objects",link:"permissions_objects",keywords:"Object Level Permissions Permission",description:"Create permissions on an object level."},{title:"Permissions RLP",link:"permissions_rlp",keywords:"Record Level Permissions Permission rlp",description:"Create permissions on an record level."},{title:"Permissions RLP Settings",link:"permissions_rlp_settings",keywords:"Record Level Permissions Permission rlp setting set default customise overwrite model create record default",description:"How to set a records RLP and set a user or group to automatically create a record under a RLP."}]},{section:"Integration",description:"Integration with active directory exchange server and other third-party systems.",menu:[{title:"Getting Started",heading:!0},{title:"Overview",link:"integration_overview",keywords:"integrate overview integration overview",description:"Get an understanding of intergration with Nexoid."},{title:"Nexoid Agent",heading:!0},{title:"Download Agent",link:"nexoid_agent",keywords:"download nexoid agent agent nexoid download imap sso sso agent sso download sso agent download ad integration integrate ad active directory integration inegrate active directroy",description:"Nexoid agent is a small light weight integration tool used to by the Nexoid framework and some modules. "},{title:"Setup SSO",link:"nexoid_agent_sso",keywords:"sso single sign on download nexoid agent agent nexoid download imap sso sso agent sso download sso agent ad integration integrate ad active directory integration inegrate active directroy",description:"Setup Nexoid agent to allow Single Sign On. "},{title:"Tools",heading:!0},{title:"Node.js 2 JSON",link:"node_js_2_json",keywords:"convert node.js 2 json node.js to json json to node.js json 2 node.js json2node.js node.js2json node2json json2node",description:"Help you convert Node.js to JSON for Model creation."}]}]},function(e,t){function a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}e.exports=a},function(e,t,a){var n=t;n.bignum=a(25),n.define=a(382).define,n.base=a(74),n.constants=a(189),n.decoders=a(386),n.encoders=a(388)},function(e,t,a){var n=t;n.Reporter=a(384).Reporter,n.DecoderBuffer=a(188).DecoderBuffer,n.EncoderBuffer=a(188).EncoderBuffer,n.Node=a(383)},function(e,t,a){var n=a(62);e.exports=function(e){if(!n(e))throw TypeError(e+" is not an object!");return e}},function(e,t,a){var n=a(206),r=a(125);e.exports=Object.keys||function(e){return n(e,r)}},function(e,t,a){(function(t){e.exports=function(e,a){for(var n=Math.min(e.length,a.length),r=new t(n),s=0;s=this._delta8){e=this.pending;var a=e.length%this._delta8;this.pending=e.slice(e.length-a,e.length),0===this.pending.length&&(this.pending=null),e=r.join32(e,0,e.length-a,this.endian);for(var n=0;n>>24&255,n[r++]=e>>>16&255,n[r++]=e>>>8&255,n[r++]=255&e}else for(n[r++]=255&e,n[r++]=e>>>8&255,n[r++]=e>>>16&255,n[r++]=e>>>24&255,n[r++]=0,n[r++]=0,n[r++]=0,n[r++]=0,s=8;s>>24]^m[f>>>16&255]^d[h>>>8&255]^u[255&E]^t[v++],l=i[f>>>24]^m[h>>>16&255]^d[E>>>8&255]^u[255&p]^t[v++],o=i[h>>>24]^m[E>>>16&255]^d[p>>>8&255]^u[255&f]^t[v++],c=i[E>>>24]^m[p>>>16&255]^d[f>>>8&255]^u[255&h]^t[v++],p=s,f=l,h=o,E=c;return s=(n[p>>>24]<<24|n[f>>>16&255]<<16|n[h>>>8&255]<<8|n[255&E])^t[v++],l=(n[f>>>24]<<24|n[h>>>16&255]<<16|n[E>>>8&255]<<8|n[255&p])^t[v++],o=(n[h>>>24]<<24|n[E>>>16&255]<<16|n[p>>>8&255]<<8|n[255&f])^t[v++],c=(n[E>>>24]<<24|n[p>>>16&255]<<16|n[f>>>8&255]<<8|n[255&h])^t[v++],s>>>=0,l>>>=0,o>>>=0,c>>>=0,[s,l,o,c]}function l(e){this._key=n(e),this._reset()}var o=a(12).Buffer,c=[0,1,2,4,8,16,32,64,128,27,54],i=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var a=[],n=[],r=[[],[],[],[]],s=[[],[],[],[]],l=0,o=0,c=0;c<256;++c){var i=o^o<<1^o<<2^o<<3^o<<4;i=i>>>8^255&i^99,a[l]=i,n[i]=l;var m=e[l],d=e[m],u=e[d],p=257*e[i]^16843008*i;r[0][l]=p<<24|p>>>8,r[1][l]=p<<16|p>>>16,r[2][l]=p<<8|p>>>24,r[3][l]=p,p=16843009*u^65537*d^257*m^16843008*l,s[0][i]=p<<24|p>>>8,s[1][i]=p<<16|p>>>16,s[2][i]=p<<8|p>>>24,s[3][i]=p,0===l?l=o=1:(l=m^e[e[e[u^m]]],o^=e[e[o]])}return{SBOX:a,INV_SBOX:n,SUB_MIX:r,INV_SUB_MIX:s}}();l.blockSize=16,l.keySize=32,l.prototype.blockSize=l.blockSize,l.prototype.keySize=l.keySize,l.prototype._reset=function(){for(var e=this._key,t=e.length,a=t+6,n=4*(a+1),r=[],s=0;s>>24,l=i.SBOX[l>>>24]<<24|i.SBOX[l>>>16&255]<<16|i.SBOX[l>>>8&255]<<8|i.SBOX[255&l],l^=c[s/t|0]<<24):t>6&&s%t==4&&(l=i.SBOX[l>>>24]<<24|i.SBOX[l>>>16&255]<<16|i.SBOX[l>>>8&255]<<8|i.SBOX[255&l]),r[s]=r[s-t]^l}for(var o=[],m=0;m>>24]]^i.INV_SUB_MIX[1][i.SBOX[u>>>16&255]]^i.INV_SUB_MIX[2][i.SBOX[u>>>8&255]]^i.INV_SUB_MIX[3][i.SBOX[255&u]]}this._nRounds=a,this._keySchedule=r,this._invKeySchedule=o},l.prototype.encryptBlockRaw=function(e){return e=n(e),s(e,this._keySchedule,i.SUB_MIX,i.SBOX,this._nRounds)},l.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),a=o.allocUnsafe(16);return a.writeUInt32BE(t[0],0),a.writeUInt32BE(t[1],4),a.writeUInt32BE(t[2],8),a.writeUInt32BE(t[3],12),a},l.prototype.decryptBlock=function(e){e=n(e);var t=e[1];e[1]=e[3],e[3]=t;var a=s(e,this._invKeySchedule,i.INV_SUB_MIX,i.INV_SBOX,this._nRounds),r=o.allocUnsafe(16);return r.writeUInt32BE(a[0],0),r.writeUInt32BE(a[3],4),r.writeUInt32BE(a[2],8),r.writeUInt32BE(a[1],12),r},l.prototype.scrub=function(){r(this._keySchedule),r(this._invKeySchedule),r(this._key)},e.exports.AES=l},function(e,t,a){"use strict";function n(e){return!!e&&"object"==typeof e}function r(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||s(e)}function s(e){return e.$$typeof===p}function l(e){return Array.isArray(e)?[]:{}}function o(e,t){return!1!==t.clone&&t.isMergeableObject(e)?m(l(e),e,t):e}function c(e,t,a){return e.concat(t).map(function(e){return o(e,a)})}function i(e,t,a){var n={};return a.isMergeableObject(e)&&Object.keys(e).forEach(function(t){n[t]=o(e[t],a)}),Object.keys(t).forEach(function(r){a.isMergeableObject(t[r])&&e[r]?n[r]=m(e[r],t[r],a):n[r]=o(t[r],a)}),n}function m(e,t,a){a=a||{},a.arrayMerge=a.arrayMerge||c,a.isMergeableObject=a.isMergeableObject||d;var n=Array.isArray(t);return n===Array.isArray(e)?n?a.arrayMerge(e,t,a):i(e,t,a):o(t,a)}Object.defineProperty(t,"__esModule",{value:!0});var d=function(e){return n(e)&&!r(e)},u="function"==typeof Symbol&&Symbol.for,p=u?Symbol.for("react.element"):60103;m.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,a){return m(e,a,t)},{})};var f=m;t.default=f},function(e,t,a){"use strict";var n=t;n.base=a(630),n.short=a(633),n.mont=a(632),n.edwards=a(631)},function(e,t,a){function n(e,t,a,n){if(r.isBuffer(e)||(e=r.from(e,"binary")),t&&(r.isBuffer(t)||(t=r.from(t,"binary")),8!==t.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var l=a/8,o=r.alloc(l),c=r.alloc(n||0),i=r.alloc(0);l>0||n>0;){var m=new s;m.update(i),m.update(e),t&&m.update(t),i=m.digest();var d=0;if(l>0){var u=o.length-l;d=Math.min(l,i.length),i.copy(o,u,0,d),l-=d}if(d0){var p=c.length-n,f=Math.min(n,i.length-d);i.copy(c,p,d,d+f),n-=f}}return i.fill(0),{key:o,iv:c}}var r=a(12).Buffer,s=a(152);e.exports=n},,,function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),a.d(t,"isBrowser",function(){return r});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r="object"===("undefined"==typeof window?"undefined":n(window))&&"object"===("undefined"==typeof document?"undefined":n(document))&&9===document.nodeType;t.default=r},function(e,t,a){var n,r;!function(t,a){"use strict";"object"==typeof e&&"object"==typeof e.exports?e.exports=t.document?a(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return a(e)}:a(t)}("undefined"!=typeof window?window:this,function(a,s){"use strict";function l(e,t,a){t=t||me;var n,r=t.createElement("script");if(r.text=e,a)for(n in je)a[n]&&(r[n]=a[n]);t.head.appendChild(r).parentNode.removeChild(r)}function o(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?Ee[ve.call(e)]||"object":typeof e}function c(e){var t=!!e&&"length"in e&&e.length,a=o(e);return!_e(e)&&!we(e)&&("array"===a||0===t||"number"==typeof t&&t>0&&t-1 in e)}function i(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}function m(e,t,a){return _e(t)?ke.grep(e,function(e,n){return!!t.call(e,n,e)!==a}):t.nodeType?ke.grep(e,function(e){return e===t!==a}):"string"!=typeof t?ke.grep(e,function(e){return he.call(t,e)>-1!==a}):ke.filter(t,e,a)}function d(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function u(e){var t={};return ke.each(e.match(Ge)||[],function(e,a){t[a]=!0}),t}function p(e){return e}function f(e){throw e}function h(e,t,a,n){var r;try{e&&_e(r=e.promise)?r.call(e).done(t).fail(a):e&&_e(r=e.then)?r.call(e,t,a):t.apply(void 0,[e].slice(n))}catch(e){a.apply(void 0,[e])}}function E(){me.removeEventListener("DOMContentLoaded",E),a.removeEventListener("load",E),ke.ready()}function v(e,t){return t.toUpperCase()}function b(e){return e.replace(Fe,"ms-").replace(Be,v)}function y(){this.expando=ke.expando+y.uid++}function N(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:Ue.test(e)?JSON.parse(e):e)}function g(e,t,a){var n;if(void 0===a&&1===e.nodeType)if(n="data-"+t.replace(He,"-$&").toLowerCase(),"string"==typeof(a=e.getAttribute(n))){try{a=N(a)}catch(e){}We.set(e,t,a)}else a=void 0;return a}function _(e,t,a,n){var r,s,l=20,o=n?function(){return n.cur()}:function(){return ke.css(e,t,"")},c=o(),i=a&&a[3]||(ke.cssNumber[t]?"":"px"),m=(ke.cssNumber[t]||"px"!==i&&+c)&&Ke.exec(ke.css(e,t));if(m&&m[3]!==i){for(c/=2,i=i||m[3],m=+c||1;l--;)ke.style(e,t,m+i),(1-s)*(1-(s=o()/c||.5))<=0&&(l=0),m/=s;m*=2,ke.style(e,t,m+i),a=a||[]}return a&&(m=+m||+c||0,r=a[1]?m+(a[1]+1)*a[2]:+a[2],n&&(n.unit=i,n.start=m,n.end=r)),r}function w(e){var t,a=e.ownerDocument,n=e.nodeName,r=Ze[n];return r||(t=a.body.appendChild(a.createElement(n)),r=ke.css(t,"display"),t.parentNode.removeChild(t),"none"===r&&(r="block"),Ze[n]=r,r)}function j(e,t){for(var a,n,r=[],s=0,l=e.length;s-1)r&&r.push(s);else if(m=ke.contains(s.ownerDocument,s),l=k(u.appendChild(s),"script"),m&&x(l),a)for(d=0;s=l[d++];)tt.test(s.type||"")&&a.push(s);return u}function P(){return!0}function C(){return!1}function A(){try{return me.activeElement}catch(e){}}function T(e,t,a,n,r,s){var l,o;if("object"==typeof t){"string"!=typeof a&&(n=n||a,a=void 0);for(o in t)T(e,o,a,n,t[o],s);return e}if(null==n&&null==r?(r=a,n=a=void 0):null==r&&("string"==typeof a?(r=n,n=void 0):(r=n,n=a,a=void 0)),!1===r)r=C;else if(!r)return e;return 1===s&&(l=r,r=function(e){return ke().off(e),l.apply(this,arguments)},r.guid=l.guid||(l.guid=ke.guid++)),e.each(function(){ke.event.add(this,t,r,n,a)})}function O(e,t){return i(e,"table")&&i(11!==t.nodeType?t:t.firstChild,"tr")?ke(e).children("tbody")[0]||e:e}function M(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function D(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function R(e,t){var a,n,r,s,l,o,c,i;if(1===t.nodeType){if(qe.hasData(e)&&(s=qe.access(e),l=qe.set(t,s),i=s.events)){delete l.handle,l.events={};for(r in i)for(a=0,n=i[r].length;a1&&"string"==typeof f&&!ge.checkClone&&mt.test(f))return e.each(function(r){var s=e.eq(r);h&&(t[0]=f.call(this,r,s.html())),I(s,t,a,n)});if(u&&(r=S(t,e[0].ownerDocument,!1,e,n),s=r.firstChild,1===r.childNodes.length&&(r=s),s||n)){for(o=ke.map(k(r,"script"),M),c=o.length;d=0&&(c+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-s-c-o-.5))),c}function U(e,t,a){var n=pt(e),r=Y(e,t,n),s="border-box"===ke.css(e,"boxSizing",!1,n),l=s;if(ut.test(r)){if(!a)return r;r="auto"}return l=l&&(ge.boxSizingReliable()||r===e.style[t]),("auto"===r||!parseFloat(r)&&"inline"===ke.css(e,"display",!1,n))&&(r=e["offset"+t[0].toUpperCase()+t.slice(1)],l=!0),(r=parseFloat(r)||0)+W(e,t,a||(s?"border":"content"),l,n,r)+"px"}function H(e,t,a,n,r){return new H.prototype.init(e,t,a,n,r)}function V(){_t&&(!1===me.hidden&&a.requestAnimationFrame?a.requestAnimationFrame(V):a.setTimeout(V,ke.fx.interval),ke.fx.tick())}function K(){return a.setTimeout(function(){gt=void 0}),gt=Date.now()}function J(e,t){var a,n=0,r={height:e};for(t=t?1:0;n<4;n+=2-t)a=Je[n],r["margin"+a]=r["padding"+a]=e;return t&&(r.opacity=r.width=e),r}function $(e,t,a){for(var n,r=(Q.tweeners[t]||[]).concat(Q.tweeners["*"]),s=0,l=r.length;s=0&&ag.cacheLength&&delete e[t.shift()],e[a+" "]=n}var t=[];return e}function n(e){return e[L]=!0,e}function r(e){var t=T.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function s(e,t){for(var a=e.split("|"),n=a.length;n--;)g.attrHandle[a[n]]=t}function l(e,t){var a=t&&e,n=a&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(n)return n;if(a)for(;a=a.nextSibling;)if(a===t)return-1;return e?1:-1}function o(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&_e(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function c(e){return n(function(t){return t=+t,n(function(a,n){for(var r,s=e([],a.length,t),l=s.length;l--;)a[r=s[l]]&&(a[r]=!(n[r]=a[r]))})})}function i(e){return e&&void 0!==e.getElementsByTagName&&e}function m(){}function d(e){for(var t=0,a=e.length,n="";t1?function(t,a,n){for(var r=e.length;r--;)if(!e[r](t,a,n))return!1;return!0}:e[0]}function f(e,a,n){for(var r=0,s=a.length;r-1&&(n[i]=!(l[i]=d))}}else y=h(y===l?y.splice(E,y.length):y),s?s(null,l,y,c):$.apply(l,y)})}function v(e){for(var t,a,n,r=e.length,s=g.relative[e[0].type],l=s||g.relative[" "],o=s?1:0,c=u(function(e){return e===t},l,!0),i=u(function(e){return Z(t,e)>-1},l,!0),m=[function(e,a,n){var r=!s&&(n||a!==S)||((t=a).nodeType?c(e,a,n):i(e,a,n));return t=null,r}];o1&&p(m),o>1&&d(e.slice(0,o-1).concat({value:" "===e[o-2].type?"*":""})).replace(se,"$1"),a,o0,s=e.length>0,l=function(n,l,o,c,i){var m,d,u,p=0,f="0",E=n&&[],v=[],b=S,y=n||s&&g.find.TAG("*",i),N=F+=null==b?1:Math.random()||.1,_=y.length;for(i&&(S=l===T||l||i);f!==_&&null!=(m=y[f]);f++){if(s&&m){for(d=0,l||m.ownerDocument===T||(A(m),o=!M);u=e[d++];)if(u(m,l||T,o)){c.push(m);break}i&&(F=N)}r&&((m=!u&&m)&&p--,n&&E.push(m))}if(p+=f,r&&f!==p){for(d=0;u=a[d++];)u(E,v,l,o);if(n){if(p>0)for(;f--;)E[f]||v[f]||(v[f]=K.call(c));v=h(v)}$.apply(c,v),i&&!n&&v.length>0&&p+a.length>1&&t.uniqueSort(c)}return i&&(F=N,S=b),E};return r?n(l):l}var y,N,g,_,w,j,k,x,S,P,C,A,T,O,M,D,R,G,I,L="sizzle"+1*new Date,Y=e.document,F=0,B=0,z=a(),q=a(),W=a(),U=function(e,t){return e===t&&(C=!0),0},H={}.hasOwnProperty,V=[],K=V.pop,J=V.push,$=V.push,X=V.slice,Z=function(e,t){for(var a=0,n=e.length;a+~]|"+ee+")"+ee+"*"),ce=new RegExp("="+ee+"*([^\\]'\"]*?)"+ee+"*\\]","g"),ie=new RegExp(ne),me=new RegExp("^"+te+"$"),de={ID:new RegExp("^#("+te+")"),CLASS:new RegExp("^\\.("+te+")"),TAG:new RegExp("^("+te+"|[*])"),ATTR:new RegExp("^"+ae),PSEUDO:new RegExp("^"+ne),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ee+"*(even|odd|(([+-]|)(\\d*)n|)"+ee+"*(?:([+-]|)"+ee+"*(\\d+)|))"+ee+"*\\)|)","i"),bool:new RegExp("^(?:"+Q+")$","i"),needsContext:new RegExp("^"+ee+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ee+"*((?:-\\d)?\\d*)"+ee+"*\\)|)(?=[^-]|$)","i")},ue=/^(?:input|select|textarea|button)$/i,pe=/^h\d$/i,fe=/^[^{]+\{\s*\[native \w/,he=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Ee=/[+~]/,ve=new RegExp("\\\\([\\da-f]{1,6}"+ee+"?|("+ee+")|.)","ig"),be=function(e,t,a){var n="0x"+t-65536;return n!==n||a?t:n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320)},ye=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,Ne=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ge=function(){A()},_e=u(function(e){return!0===e.disabled&&("form"in e||"label"in e)},{dir:"parentNode",next:"legend"});try{$.apply(V=X.call(Y.childNodes),Y.childNodes),V[Y.childNodes.length].nodeType}catch(e){$={apply:V.length?function(e,t){J.apply(e,X.call(t))}:function(e,t){for(var a=e.length,n=0;e[a++]=t[n++];);e.length=a-1}}}N=t.support={},w=t.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},A=t.setDocument=function(e){var t,a,n=e?e.ownerDocument||e:Y;return n!==T&&9===n.nodeType&&n.documentElement?(T=n,O=T.documentElement,M=!w(T),Y!==T&&(a=T.defaultView)&&a.top!==a&&(a.addEventListener?a.addEventListener("unload",ge,!1):a.attachEvent&&a.attachEvent("onunload",ge)),N.attributes=r(function(e){return e.className="i",!e.getAttribute("className")}),N.getElementsByTagName=r(function(e){return e.appendChild(T.createComment("")),!e.getElementsByTagName("*").length}),N.getElementsByClassName=fe.test(T.getElementsByClassName),N.getById=r(function(e){return O.appendChild(e).id=L,!T.getElementsByName||!T.getElementsByName(L).length}),N.getById?(g.filter.ID=function(e){var t=e.replace(ve,be);return function(e){return e.getAttribute("id")===t}},g.find.ID=function(e,t){if(void 0!==t.getElementById&&M){var a=t.getElementById(e);return a?[a]:[]}}):(g.filter.ID=function(e){var t=e.replace(ve,be);return function(e){var a=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return a&&a.value===t}},g.find.ID=function(e,t){if(void 0!==t.getElementById&&M){var a,n,r,s=t.getElementById(e);if(s){if((a=s.getAttributeNode("id"))&&a.value===e)return[s];for(r=t.getElementsByName(e),n=0;s=r[n++];)if((a=s.getAttributeNode("id"))&&a.value===e)return[s]}return[]}}),g.find.TAG=N.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):N.qsa?t.querySelectorAll(e):void 0}:function(e,t){var a,n=[],r=0,s=t.getElementsByTagName(e);if("*"===e){for(;a=s[r++];)1===a.nodeType&&n.push(a);return n}return s},g.find.CLASS=N.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&M)return t.getElementsByClassName(e)},R=[],D=[],(N.qsa=fe.test(T.querySelectorAll))&&(r(function(e){O.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&D.push("[*^$]="+ee+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||D.push("\\["+ee+"*(?:value|"+Q+")"),e.querySelectorAll("[id~="+L+"-]").length||D.push("~="),e.querySelectorAll(":checked").length||D.push(":checked"),e.querySelectorAll("a#"+L+"+*").length||D.push(".#.+[+~]")}),r(function(e){e.innerHTML="";var t=T.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&D.push("name"+ee+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&D.push(":enabled",":disabled"),O.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&D.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),D.push(",.*:")})),(N.matchesSelector=fe.test(G=O.matches||O.webkitMatchesSelector||O.mozMatchesSelector||O.oMatchesSelector||O.msMatchesSelector))&&r(function(e){N.disconnectedMatch=G.call(e,"*"),G.call(e,"[s!='']:x"),R.push("!=",ne)}),D=D.length&&new RegExp(D.join("|")),R=R.length&&new RegExp(R.join("|")),t=fe.test(O.compareDocumentPosition),I=t||fe.test(O.contains)?function(e,t){var a=9===e.nodeType?e.documentElement:e,n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(a.contains?a.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},U=t?function(e,t){if(e===t)return C=!0,0;var a=!e.compareDocumentPosition-!t.compareDocumentPosition;return a||(a=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&a||!N.sortDetached&&t.compareDocumentPosition(e)===a?e===T||e.ownerDocument===Y&&I(Y,e)?-1:t===T||t.ownerDocument===Y&&I(Y,t)?1:P?Z(P,e)-Z(P,t):0:4&a?-1:1)}:function(e,t){if(e===t)return C=!0,0;var a,n=0,r=e.parentNode,s=t.parentNode,o=[e],c=[t];if(!r||!s)return e===T?-1:t===T?1:r?-1:s?1:P?Z(P,e)-Z(P,t):0;if(r===s)return l(e,t);for(a=e;a=a.parentNode;)o.unshift(a);for(a=t;a=a.parentNode;)c.unshift(a);for(;o[n]===c[n];)n++;return n?l(o[n],c[n]):o[n]===Y?-1:c[n]===Y?1:0},T):T},t.matches=function(e,a){return t(e,null,null,a)},t.matchesSelector=function(e,a){if((e.ownerDocument||e)!==T&&A(e),a=a.replace(ce,"='$1']"),N.matchesSelector&&M&&!W[a+" "]&&(!R||!R.test(a))&&(!D||!D.test(a)))try{var n=G.call(e,a);if(n||N.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){}return t(a,T,null,[e]).length>0},t.contains=function(e,t){return(e.ownerDocument||e)!==T&&A(e),I(e,t)},t.attr=function(e,t){(e.ownerDocument||e)!==T&&A(e);var a=g.attrHandle[t.toLowerCase()],n=a&&H.call(g.attrHandle,t.toLowerCase())?a(e,t,!M):void 0;return void 0!==n?n:N.attributes||!M?e.getAttribute(t):(n=e.getAttributeNode(t))&&n.specified?n.value:null},t.escape=function(e){return(e+"").replace(ye,Ne)},t.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},t.uniqueSort=function(e){var t,a=[],n=0,r=0;if(C=!N.detectDuplicates,P=!N.sortStable&&e.slice(0),e.sort(U),C){for(;t=e[r++];)t===e[r]&&(n=a.push(r));for(;n--;)e.splice(a[n],1)}return P=null,e},_=t.getText=function(e){var t,a="",n=0,r=e.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)a+=_(e)}else if(3===r||4===r)return e.nodeValue}else for(;t=e[n++];)a+=_(t);return a},g=t.selectors={cacheLength:50,createPseudo:n,match:de,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(ve,be),e[3]=(e[3]||e[4]||e[5]||"").replace(ve,be),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||t.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&t.error(e[0]),e},PSEUDO:function(e){var t,a=!e[6]&&e[2];return de.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":a&&ie.test(a)&&(t=j(a,!0))&&(t=a.indexOf(")",a.length-t)-a.length)&&(e[0]=e[0].slice(0,t),e[2]=a.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(ve,be).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=z[e+" "];return t||(t=new RegExp("(^|"+ee+")"+e+"("+ee+"|$)"))&&z(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,a,n){return function(r){var s=t.attr(r,e);return null==s?"!="===a:!a||(s+="","="===a?s===n:"!="===a?s!==n:"^="===a?n&&0===s.indexOf(n):"*="===a?n&&s.indexOf(n)>-1:"$="===a?n&&s.slice(-n.length)===n:"~="===a?(" "+s.replace(re," ")+" ").indexOf(n)>-1:"|="===a&&(s===n||s.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,a,n,r){var s="nth"!==e.slice(0,3),l="last"!==e.slice(-4),o="of-type"===t;return 1===n&&0===r?function(e){return!!e.parentNode}:function(t,a,c){var i,m,d,u,p,f,h=s!==l?"nextSibling":"previousSibling",E=t.parentNode,v=o&&t.nodeName.toLowerCase(),b=!c&&!o,y=!1;if(E){if(s){for(;h;){for(u=t;u=u[h];)if(o?u.nodeName.toLowerCase()===v:1===u.nodeType)return!1;f=h="only"===e&&!f&&"nextSibling"}return!0}if(f=[l?E.firstChild:E.lastChild],l&&b){for(u=E,d=u[L]||(u[L]={}),m=d[u.uniqueID]||(d[u.uniqueID]={}),i=m[e]||[],p=i[0]===F&&i[1],y=p&&i[2],u=p&&E.childNodes[p];u=++p&&u&&u[h]||(y=p=0)||f.pop();)if(1===u.nodeType&&++y&&u===t){m[e]=[F,p,y];break}}else if(b&&(u=t,d=u[L]||(u[L]={}),m=d[u.uniqueID]||(d[u.uniqueID]={}),i=m[e]||[],p=i[0]===F&&i[1],y=p),!1===y)for(;(u=++p&&u&&u[h]||(y=p=0)||f.pop())&&((o?u.nodeName.toLowerCase()!==v:1!==u.nodeType)||!++y||(b&&(d=u[L]||(u[L]={}),m=d[u.uniqueID]||(d[u.uniqueID]={}),m[e]=[F,y]),u!==t)););return(y-=r)===n||y%n==0&&y/n>=0}}},PSEUDO:function(e,a){var r,s=g.pseudos[e]||g.setFilters[e.toLowerCase()]||t.error("unsupported pseudo: "+e);return s[L]?s(a):s.length>1?(r=[e,e,"",a],g.setFilters.hasOwnProperty(e.toLowerCase())?n(function(e,t){for(var n,r=s(e,a),l=r.length;l--;)n=Z(e,r[l]),e[n]=!(t[n]=r[l])}):function(e){return s(e,0,r)}):s}},pseudos:{not:n(function(e){var t=[],a=[],r=k(e.replace(se,"$1"));return r[L]?n(function(e,t,a,n){for(var s,l=r(e,null,n,[]),o=e.length;o--;)(s=l[o])&&(e[o]=!(t[o]=s))}):function(e,n,s){return t[0]=e,r(t,null,s,a),t[0]=null,!a.pop()}}),has:n(function(e){return function(a){return t(e,a).length>0}}),contains:n(function(e){return e=e.replace(ve,be),function(t){return(t.textContent||t.innerText||_(t)).indexOf(e)>-1}}),lang:n(function(e){return me.test(e||"")||t.error("unsupported lang: "+e),e=e.replace(ve,be).toLowerCase(),function(t){var a;do{if(a=M?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(a=a.toLowerCase())===e||0===a.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var a=e.location&&e.location.hash;return a&&a.slice(1)===t.id},root:function(e){return e===O},focus:function(e){return e===T.activeElement&&(!T.hasFocus||T.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:o(!1),disabled:o(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!g.pseudos.empty(e)},header:function(e){return pe.test(e.nodeName)},input:function(e){return ue.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:c(function(){return[0]}),last:c(function(e,t){return[t-1]}),eq:c(function(e,t,a){return[a<0?a+t:a]}),even:c(function(e,t){for(var a=0;a=0;)e.push(n);return e}),gt:c(function(e,t,a){for(var n=a<0?a+t:a;++n2&&"ID"===(l=s[0]).type&&9===t.nodeType&&M&&g.relative[s[1].type]){if(!(t=(g.find.ID(l.matches[0].replace(ve,be),t)||[])[0]))return a;m&&(t=t.parentNode),e=e.slice(s.shift().value.length)}for(r=de.needsContext.test(e)?0:s.length;r--&&(l=s[r],!g.relative[o=l.type]);)if((c=g.find[o])&&(n=c(l.matches[0].replace(ve,be),Ee.test(s[0].type)&&i(t.parentNode)||t))){if(s.splice(r,1),!(e=n.length&&d(s)))return $.apply(a,n),a;break}}return(m||k(e,u))(n,t,!M,a,!t||Ee.test(e)&&i(t.parentNode)||t),a},N.sortStable=L.split("").sort(U).join("")===L,N.detectDuplicates=!!C,A(),N.sortDetached=r(function(e){return 1&e.compareDocumentPosition(T.createElement("fieldset"))}),r(function(e){return e.innerHTML="","#"===e.firstChild.getAttribute("href")})||s("type|href|height|width",function(e,t,a){if(!a)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),N.attributes&&r(function(e){return e.innerHTML="",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||s("value",function(e,t,a){if(!a&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),r(function(e){return null==e.getAttribute("disabled")})||s(Q,function(e,t,a){var n;if(!a)return!0===e[t]?t.toLowerCase():(n=e.getAttributeNode(t))&&n.specified?n.value:null}),t}(a);ke.find=Se,ke.expr=Se.selectors,ke.expr[":"]=ke.expr.pseudos,ke.uniqueSort=ke.unique=Se.uniqueSort,ke.text=Se.getText,ke.isXMLDoc=Se.isXML,ke.contains=Se.contains,ke.escapeSelector=Se.escape;var Pe=function(e,t,a){for(var n=[],r=void 0!==a;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(r&&ke(e).is(a))break;n.push(e)}return n},Ce=function(e,t){for(var a=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&a.push(e);return a},Ae=ke.expr.match.needsContext,Te=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;ke.filter=function(e,t,a){var n=t[0];return a&&(e=":not("+e+")"),1===t.length&&1===n.nodeType?ke.find.matchesSelector(n,e)?[n]:[]:ke.find.matches(e,ke.grep(t,function(e){return 1===e.nodeType}))},ke.fn.extend({find:function(e){var t,a,n=this.length,r=this;if("string"!=typeof e)return this.pushStack(ke(e).filter(function(){for(t=0;t1?ke.uniqueSort(a):a},filter:function(e){return this.pushStack(m(this,e||[],!1))},not:function(e){return this.pushStack(m(this,e||[],!0))},is:function(e){return!!m(this,"string"==typeof e&&Ae.test(e)?ke(e):e||[],!1).length}});var Oe,Me=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(ke.fn.init=function(e,t,a){var n,r;if(!e)return this;if(a=a||Oe,"string"==typeof e){if(!(n="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:Me.exec(e))||!n[1]&&t)return!t||t.jquery?(t||a).find(e):this.constructor(t).find(e);if(n[1]){if(t=t instanceof ke?t[0]:t,ke.merge(this,ke.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:me,!0)),Te.test(n[1])&&ke.isPlainObject(t))for(n in t)_e(this[n])?this[n](t[n]):this.attr(n,t[n]);return this}return r=me.getElementById(n[2]),r&&(this[0]=r,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):_e(e)?void 0!==a.ready?a.ready(e):e(ke):ke.makeArray(e,this)}).prototype=ke.fn,Oe=ke(me);var De=/^(?:parents|prev(?:Until|All))/,Re={children:!0,contents:!0,next:!0,prev:!0};ke.fn.extend({has:function(e){var t=ke(e,this),a=t.length;return this.filter(function(){for(var e=0;e-1:1===a.nodeType&&ke.find.matchesSelector(a,e))){s.push(a);break}return this.pushStack(s.length>1?ke.uniqueSort(s):s)},index:function(e){return e?"string"==typeof e?he.call(ke(e),this[0]):he.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(ke.uniqueSort(ke.merge(this.get(),ke(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),ke.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return Pe(e,"parentNode")},parentsUntil:function(e,t,a){return Pe(e,"parentNode",a)},next:function(e){return d(e,"nextSibling")},prev:function(e){return d(e,"previousSibling")},nextAll:function(e){return Pe(e,"nextSibling")},prevAll:function(e){return Pe(e,"previousSibling")},nextUntil:function(e,t,a){return Pe(e,"nextSibling",a)},prevUntil:function(e,t,a){return Pe(e,"previousSibling",a)},siblings:function(e){return Ce((e.parentNode||{}).firstChild,e)},children:function(e){return Ce(e.firstChild)},contents:function(e){return i(e,"iframe")?e.contentDocument:(i(e,"template")&&(e=e.content||e),ke.merge([],e.childNodes))}},function(e,t){ke.fn[e]=function(a,n){var r=ke.map(this,t,a);return"Until"!==e.slice(-5)&&(n=a),n&&"string"==typeof n&&(r=ke.filter(n,r)),this.length>1&&(Re[e]||ke.uniqueSort(r),De.test(e)&&r.reverse()),this.pushStack(r)}});var Ge=/[^\x20\t\r\n\f]+/g;ke.Callbacks=function(e){e="string"==typeof e?u(e):ke.extend({},e);var t,a,n,r,s=[],l=[],c=-1,i=function(){for(r=r||e.once,n=t=!0;l.length;c=-1)for(a=l.shift();++c-1;)s.splice(a,1),a<=c&&c--}),this},has:function(e){return e?ke.inArray(e,s)>-1:s.length>0},empty:function(){return s&&(s=[]),this},disable:function(){return r=l=[],s=a="",this},disabled:function(){return!s},lock:function(){return r=l=[],a||t||(s=a=""),this},locked:function(){return!!r},fireWith:function(e,a){return r||(a=a||[],a=[e,a.slice?a.slice():a],l.push(a),t||i()),this},fire:function(){return m.fireWith(this,arguments),this},fired:function(){return!!n}};return m},ke.extend({Deferred:function(e){var t=[["notify","progress",ke.Callbacks("memory"),ke.Callbacks("memory"),2],["resolve","done",ke.Callbacks("once memory"),ke.Callbacks("once memory"),0,"resolved"],["reject","fail",ke.Callbacks("once memory"),ke.Callbacks("once memory"),1,"rejected"]],n="pending",r={state:function(){return n},always:function(){return s.done(arguments).fail(arguments),this},catch:function(e){return r.then(null,e)},pipe:function(){var e=arguments;return ke.Deferred(function(a){ke.each(t,function(t,n){var r=_e(e[n[4]])&&e[n[4]];s[n[1]](function(){var e=r&&r.apply(this,arguments);e&&_e(e.promise)?e.promise().progress(a.notify).done(a.resolve).fail(a.reject):a[n[0]+"With"](this,r?[e]:arguments)})}),e=null}).promise()},then:function(e,n,r){function s(e,t,n,r){return function(){var o=this,c=arguments,i=function(){var a,i;if(!(e=l&&(n!==f&&(o=void 0,c=[a]),t.rejectWith(o,c))}};e?m():(ke.Deferred.getStackHook&&(m.stackTrace=ke.Deferred.getStackHook()),a.setTimeout(m))}}var l=0;return ke.Deferred(function(a){t[0][3].add(s(0,a,_e(r)?r:p,a.notifyWith)),t[1][3].add(s(0,a,_e(e)?e:p)),t[2][3].add(s(0,a,_e(n)?n:f))}).promise()},promise:function(e){return null!=e?ke.extend(e,r):r}},s={};return ke.each(t,function(e,a){var l=a[2],o=a[5];r[a[1]]=l.add,o&&l.add(function(){n=o},t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),l.add(a[3].fire),s[a[0]]=function(){return s[a[0]+"With"](this===s?void 0:this,arguments),this},s[a[0]+"With"]=l.fireWith}),r.promise(s),e&&e.call(s,s),s},when:function(e){var t=arguments.length,a=t,n=Array(a),r=ue.call(arguments),s=ke.Deferred(),l=function(e){return function(a){n[e]=this,r[e]=arguments.length>1?ue.call(arguments):a,--t||s.resolveWith(n,r)}};if(t<=1&&(h(e,s.done(l(a)).resolve,s.reject,!t),"pending"===s.state()||_e(r[a]&&r[a].then)))return s.then();for(;a--;)h(r[a],l(a),s.reject);return s.promise()}});var Ie=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;ke.Deferred.exceptionHook=function(e,t){a.console&&a.console.warn&&e&&Ie.test(e.name)&&a.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},ke.readyException=function(e){a.setTimeout(function(){throw e})};var Le=ke.Deferred();ke.fn.ready=function(e){return Le.then(e).catch(function(e){ke.readyException(e)}),this},ke.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--ke.readyWait:ke.isReady)||(ke.isReady=!0,!0!==e&&--ke.readyWait>0||Le.resolveWith(me,[ke]))}}),ke.ready.then=Le.then,"complete"===me.readyState||"loading"!==me.readyState&&!me.documentElement.doScroll?a.setTimeout(ke.ready):(me.addEventListener("DOMContentLoaded",E),a.addEventListener("load",E));var Ye=function(e,t,a,n,r,s,l){var c=0,i=e.length,m=null==a;if("object"===o(a)){r=!0;for(c in a)Ye(e,t,c,a[c],!0,s,l)}else if(void 0!==n&&(r=!0,_e(n)||(l=!0),m&&(l?(t.call(e,n),t=null):(m=t,t=function(e,t,a){return m.call(ke(e),a)})),t))for(;c1,null,!0)},removeData:function(e){return this.each(function(){We.remove(this,e)})}}),ke.extend({queue:function(e,t,a){var n;if(e)return t=(t||"fx")+"queue",n=qe.get(e,t),a&&(!n||Array.isArray(a)?n=qe.access(e,t,ke.makeArray(a)):n.push(a)),n||[]},dequeue:function(e,t){t=t||"fx";var a=ke.queue(e,t),n=a.length,r=a.shift(),s=ke._queueHooks(e,t),l=function(){ke.dequeue(e,t)};"inprogress"===r&&(r=a.shift(),n--),r&&("fx"===t&&a.unshift("inprogress"),delete s.stop,r.call(e,l,s)),!n&&s&&s.empty.fire()},_queueHooks:function(e,t){var a=t+"queueHooks";return qe.get(e,a)||qe.access(e,a,{empty:ke.Callbacks("once memory").add(function(){qe.remove(e,[t+"queue",a])})})}}),ke.fn.extend({queue:function(e,t){var a=2;return"string"!=typeof e&&(t=e,e="fx",a--),arguments.length\x20\t\r\n\f]+)/i,tt=/^$|^module$|\/(?:java|ecma)script/i,at={option:[1,""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};at.optgroup=at.option,at.tbody=at.tfoot=at.colgroup=at.caption=at.thead,at.th=at.td;var nt=/<|&#?\w+;/;!function(){var e=me.createDocumentFragment(),t=e.appendChild(me.createElement("div")),a=me.createElement("input");a.setAttribute("type","radio"),a.setAttribute("checked","checked"),a.setAttribute("name","t"),t.appendChild(a),ge.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,t.innerHTML="",ge.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue}();var rt=me.documentElement,st=/^key/,lt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ot=/^([^.]*)(?:\.(.+)|)/;ke.event={global:{},add:function(e,t,a,n,r){var s,l,o,c,i,m,d,u,p,f,h,E=qe.get(e);if(E)for(a.handler&&(s=a,a=s.handler,r=s.selector),r&&ke.find.matchesSelector(rt,r),a.guid||(a.guid=ke.guid++),(c=E.events)||(c=E.events={}),(l=E.handle)||(l=E.handle=function(t){return void 0!==ke&&ke.event.triggered!==t.type?ke.event.dispatch.apply(e,arguments):void 0}),t=(t||"").match(Ge)||[""],i=t.length;i--;)o=ot.exec(t[i])||[],p=h=o[1],f=(o[2]||"").split(".").sort(),p&&(d=ke.event.special[p]||{},p=(r?d.delegateType:d.bindType)||p,d=ke.event.special[p]||{},m=ke.extend({type:p,origType:h,data:n,handler:a,guid:a.guid,selector:r,needsContext:r&&ke.expr.match.needsContext.test(r),namespace:f.join(".")},s),(u=c[p])||(u=c[p]=[],u.delegateCount=0,d.setup&&!1!==d.setup.call(e,n,f,l)||e.addEventListener&&e.addEventListener(p,l)),d.add&&(d.add.call(e,m),m.handler.guid||(m.handler.guid=a.guid)),r?u.splice(u.delegateCount++,0,m):u.push(m),ke.event.global[p]=!0)},remove:function(e,t,a,n,r){var s,l,o,c,i,m,d,u,p,f,h,E=qe.hasData(e)&&qe.get(e);if(E&&(c=E.events)){for(t=(t||"").match(Ge)||[""],i=t.length;i--;)if(o=ot.exec(t[i])||[],p=h=o[1],f=(o[2]||"").split(".").sort(),p){for(d=ke.event.special[p]||{},p=(n?d.delegateType:d.bindType)||p,u=c[p]||[],o=o[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),l=s=u.length;s--;)m=u[s],!r&&h!==m.origType||a&&a.guid!==m.guid||o&&!o.test(m.namespace)||n&&n!==m.selector&&("**"!==n||!m.selector)||(u.splice(s,1),m.selector&&u.delegateCount--,d.remove&&d.remove.call(e,m));l&&!u.length&&(d.teardown&&!1!==d.teardown.call(e,f,E.handle)||ke.removeEvent(e,p,E.handle),delete c[p])}else for(p in c)ke.event.remove(e,p+t[i],a,n,!0);ke.isEmptyObject(c)&&qe.remove(e,"handle events")}},dispatch:function(e){var t,a,n,r,s,l,o=ke.event.fix(e),c=new Array(arguments.length),i=(qe.get(this,"events")||{})[o.type]||[],m=ke.event.special[o.type]||{};for(c[0]=o,t=1;t=1))for(;i!==this;i=i.parentNode||this)if(1===i.nodeType&&("click"!==e.type||!0!==i.disabled)){for(s=[],l={},a=0;a-1:ke.find(r,this,null,[i]).length),l[r]&&s.push(n);s.length&&o.push({elem:i,handlers:s})}return i=this,c\x20\t\r\n\f]*)[^>]*)\/>/gi,it=/\s*$/g;ke.extend({htmlPrefilter:function(e){return e.replace(ct,"<$1>")},clone:function(e,t,a){var n,r,s,l,o=e.cloneNode(!0),c=ke.contains(e.ownerDocument,e);if(!(ge.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||ke.isXMLDoc(e)))for(l=k(o),s=k(e),n=0,r=s.length;n0&&x(l,!c&&k(e,"script")),o},cleanData:function(e){for(var t,a,n,r=ke.event.special,s=0;void 0!==(a=e[s]);s++)if(ze(a)){if(t=a[qe.expando]){if(t.events)for(n in t.events)r[n]?ke.event.remove(a,n):ke.removeEvent(a,n,t.handle);a[qe.expando]=void 0}a[We.expando]&&(a[We.expando]=void 0)}}}),ke.fn.extend({detach:function(e){return L(this,e,!0)},remove:function(e){return L(this,e)},text:function(e){return Ye(this,function(e){return void 0===e?ke.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return I(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){O(this,e).appendChild(e)}})},prepend:function(){return I(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=O(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return I(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return I(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(ke.cleanData(k(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return ke.clone(this,e,t)})},html:function(e){return Ye(this,function(e){var t=this[0]||{},a=0,n=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!it.test(e)&&!at[(et.exec(e)||["",""])[1].toLowerCase()]){e=ke.htmlPrefilter(e);try{for(;a1)}}),ke.Tween=H,H.prototype={constructor:H,init:function(e,t,a,n,r,s){this.elem=e,this.prop=a,this.easing=r||ke.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=n,this.unit=s||(ke.cssNumber[a]?"":"px")},cur:function(){var e=H.propHooks[this.prop];return e&&e.get?e.get(this):H.propHooks._default.get(this)},run:function(e){var t,a=H.propHooks[this.prop];return this.options.duration?this.pos=t=ke.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),a&&a.set?a.set(this):H.propHooks._default.set(this),this}},H.prototype.init.prototype=H.prototype,H.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=ke.css(e.elem,e.prop,""),t&&"auto"!==t?t:0)},set:function(e){ke.fx.step[e.prop]?ke.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[ke.cssProps[e.prop]]&&!ke.cssHooks[e.prop]?e.elem[e.prop]=e.now:ke.style(e.elem,e.prop,e.now+e.unit)}}},H.propHooks.scrollTop=H.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},ke.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},ke.fx=H.prototype.init,ke.fx.step={};var gt,_t,wt=/^(?:toggle|show|hide)$/,jt=/queueHooks$/;ke.Animation=ke.extend(Q,{tweeners:{"*":[function(e,t){var a=this.createTween(e,t);return _(a.elem,e,Ke.exec(t),a),a}]},tweener:function(e,t){_e(e)?(t=e,e=["*"]):e=e.match(Ge);for(var a,n=0,r=e.length;n1)},removeAttr:function(e){return this.each(function(){ke.removeAttr(this,e)})}}),ke.extend({attr:function(e,t,a){var n,r,s=e.nodeType;if(3!==s&&8!==s&&2!==s)return void 0===e.getAttribute?ke.prop(e,t,a):(1===s&&ke.isXMLDoc(e)||(r=ke.attrHooks[t.toLowerCase()]||(ke.expr.match.bool.test(t)?kt:void 0)),void 0!==a?null===a?void ke.removeAttr(e,t):r&&"set"in r&&void 0!==(n=r.set(e,a,t))?n:(e.setAttribute(t,a+""),a):r&&"get"in r&&null!==(n=r.get(e,t))?n:(n=ke.find.attr(e,t),null==n?void 0:n))},attrHooks:{type:{set:function(e,t){if(!ge.radioValue&&"radio"===t&&i(e,"input")){var a=e.value;return e.setAttribute("type",t),a&&(e.value=a),t}}}},removeAttr:function(e,t){var a,n=0,r=t&&t.match(Ge);if(r&&1===e.nodeType)for(;a=r[n++];)e.removeAttribute(a)}}),kt={set:function(e,t,a){return!1===t?ke.removeAttr(e,a):e.setAttribute(a,a),a}},ke.each(ke.expr.match.bool.source.match(/\w+/g),function(e,t){var a=xt[t]||ke.find.attr;xt[t]=function(e,t,n){var r,s,l=t.toLowerCase();return n||(s=xt[l],xt[l]=r,r=null!=a(e,t,n)?l:null,xt[l]=s),r}});var St=/^(?:input|select|textarea|button)$/i,Pt=/^(?:a|area)$/i;ke.fn.extend({prop:function(e,t){return Ye(this,ke.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[ke.propFix[e]||e]})}}),ke.extend({prop:function(e,t,a){var n,r,s=e.nodeType;if(3!==s&&8!==s&&2!==s)return 1===s&&ke.isXMLDoc(e)||(t=ke.propFix[t]||t,r=ke.propHooks[t]),void 0!==a?r&&"set"in r&&void 0!==(n=r.set(e,a,t))?n:e[t]=a:r&&"get"in r&&null!==(n=r.get(e,t))?n:e[t]},propHooks:{tabIndex:{get:function(e){var t=ke.find.attr(e,"tabindex");return t?parseInt(t,10):St.test(e.nodeName)||Pt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),ge.optSelected||(ke.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),ke.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){ke.propFix[this.toLowerCase()]=this}),ke.fn.extend({addClass:function(e){var t,a,n,r,s,l,o,c=0;if(_e(e))return this.each(function(t){ke(this).addClass(e.call(this,t,te(this)))});if(t=ae(e),t.length)for(;a=this[c++];)if(r=te(a),n=1===a.nodeType&&" "+ee(r)+" "){for(l=0;s=t[l++];)n.indexOf(" "+s+" ")<0&&(n+=s+" ");o=ee(n),r!==o&&a.setAttribute("class",o)}return this},removeClass:function(e){var t,a,n,r,s,l,o,c=0;if(_e(e))return this.each(function(t){ke(this).removeClass(e.call(this,t,te(this)))});if(!arguments.length)return this.attr("class","");if(t=ae(e),t.length)for(;a=this[c++];)if(r=te(a),n=1===a.nodeType&&" "+ee(r)+" "){for(l=0;s=t[l++];)for(;n.indexOf(" "+s+" ")>-1;)n=n.replace(" "+s+" "," ");o=ee(n),r!==o&&a.setAttribute("class",o)}return this},toggleClass:function(e,t){var a=typeof e,n="string"===a||Array.isArray(e);return"boolean"==typeof t&&n?t?this.addClass(e):this.removeClass(e):_e(e)?this.each(function(a){ke(this).toggleClass(e.call(this,a,te(this),t),t)}):this.each(function(){var t,r,s,l;if(n)for(r=0,s=ke(this),l=ae(e);t=l[r++];)s.hasClass(t)?s.removeClass(t):s.addClass(t);else void 0!==e&&"boolean"!==a||(t=te(this),t&&qe.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":qe.get(this,"__className__")||""))})},hasClass:function(e){var t,a,n=0;for(t=" "+e+" ";a=this[n++];)if(1===a.nodeType&&(" "+ee(te(a))+" ").indexOf(t)>-1)return!0;return!1}});var Ct=/\r/g;ke.fn.extend({val:function(e){var t,a,n,r=this[0];{if(arguments.length)return n=_e(e),this.each(function(a){var r;1===this.nodeType&&(r=n?e.call(this,a,ke(this).val()):e,null==r?r="":"number"==typeof r?r+="":Array.isArray(r)&&(r=ke.map(r,function(e){return null==e?"":e+""})),(t=ke.valHooks[this.type]||ke.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,r,"value")||(this.value=r))});if(r)return(t=ke.valHooks[r.type]||ke.valHooks[r.nodeName.toLowerCase()])&&"get"in t&&void 0!==(a=t.get(r,"value"))?a:(a=r.value,"string"==typeof a?a.replace(Ct,""):null==a?"":a)}}}),ke.extend({valHooks:{option:{get:function(e){var t=ke.find.attr(e,"value");return null!=t?t:ee(ke.text(e))}},select:{get:function(e){var t,a,n,r=e.options,s=e.selectedIndex,l="select-one"===e.type,o=l?null:[],c=l?s+1:r.length;for(n=s<0?c:l?s:0;n-1)&&(a=!0);return a||(e.selectedIndex=-1),s}}}}),ke.each(["radio","checkbox"],function(){ke.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=ke.inArray(ke(e).val(),t)>-1}},ge.checkOn||(ke.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),ge.focusin="onfocusin"in a;var At=/^(?:focusinfocus|focusoutblur)$/,Tt=function(e){e.stopPropagation()};ke.extend(ke.event,{trigger:function(e,t,n,r){var s,l,o,c,i,m,d,u,p=[n||me],f=be.call(e,"type")?e.type:e,h=be.call(e,"namespace")?e.namespace.split("."):[];if(l=u=o=n=n||me,3!==n.nodeType&&8!==n.nodeType&&!At.test(f+ke.event.triggered)&&(f.indexOf(".")>-1&&(h=f.split("."),f=h.shift(),h.sort()),i=f.indexOf(":")<0&&"on"+f,e=e[ke.expando]?e:new ke.Event(f,"object"==typeof e&&e),e.isTrigger=r?2:3,e.namespace=h.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:ke.makeArray(t,[e]),d=ke.event.special[f]||{},r||!d.trigger||!1!==d.trigger.apply(n,t))){if(!r&&!d.noBubble&&!we(n)){for(c=d.delegateType||f,At.test(c+f)||(l=l.parentNode);l;l=l.parentNode)p.push(l),o=l;o===(n.ownerDocument||me)&&p.push(o.defaultView||o.parentWindow||a)}for(s=0;(l=p[s++])&&!e.isPropagationStopped();)u=l,e.type=s>1?c:d.bindType||f,m=(qe.get(l,"events")||{})[e.type]&&qe.get(l,"handle"),m&&m.apply(l,t),(m=i&&l[i])&&m.apply&&ze(l)&&(e.result=m.apply(l,t),!1===e.result&&e.preventDefault());return e.type=f,r||e.isDefaultPrevented()||d._default&&!1!==d._default.apply(p.pop(),t)||!ze(n)||i&&_e(n[f])&&!we(n)&&(o=n[i],o&&(n[i]=null),ke.event.triggered=f,e.isPropagationStopped()&&u.addEventListener(f,Tt),n[f](),e.isPropagationStopped()&&u.removeEventListener(f,Tt),ke.event.triggered=void 0,o&&(n[i]=o)),e.result}},simulate:function(e,t,a){var n=ke.extend(new ke.Event,a,{type:e,isSimulated:!0});ke.event.trigger(n,null,t)}}),ke.fn.extend({trigger:function(e,t){return this.each(function(){ke.event.trigger(e,t,this)})},triggerHandler:function(e,t){var a=this[0];if(a)return ke.event.trigger(e,t,a,!0)}}),ge.focusin||ke.each({focus:"focusin",blur:"focusout"},function(e,t){var a=function(e){ke.event.simulate(t,e.target,ke.event.fix(e))};ke.event.special[t]={setup:function(){var n=this.ownerDocument||this,r=qe.access(n,t);r||n.addEventListener(e,a,!0),qe.access(n,t,(r||0)+1)},teardown:function(){var n=this.ownerDocument||this,r=qe.access(n,t)-1;r?qe.access(n,t,r):(n.removeEventListener(e,a,!0),qe.remove(n,t))}}});var Ot=a.location,Mt=Date.now(),Dt=/\?/;ke.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new a.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||ke.error("Invalid XML: "+e),t};var Rt=/\[\]$/,Gt=/\r?\n/g,It=/^(?:submit|button|image|reset|file)$/i,Lt=/^(?:input|select|textarea|keygen)/i;ke.param=function(e,t){var a,n=[],r=function(e,t){var a=_e(t)?t():t;n[n.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==a?"":a)};if(Array.isArray(e)||e.jquery&&!ke.isPlainObject(e))ke.each(e,function(){r(this.name,this.value)});else for(a in e)ne(a,e[a],t,r);return n.join("&")},ke.fn.extend({serialize:function(){return ke.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=ke.prop(this,"elements");return e?ke.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!ke(this).is(":disabled")&&Lt.test(this.nodeName)&&!It.test(e)&&(this.checked||!Qe.test(e))}).map(function(e,t){var a=ke(this).val();return null==a?null:Array.isArray(a)?ke.map(a,function(e){return{name:t.name,value:e.replace(Gt,"\r\n")}}):{name:t.name,value:a.replace(Gt,"\r\n")}}).get()}});var Yt=/%20/g,Ft=/#.*$/,Bt=/([?&])_=[^&]*/,zt=/^(.*?):[ \t]*([^\r\n]*)$/gm,qt=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Wt=/^(?:GET|HEAD)$/,Ut=/^\/\//,Ht={},Vt={},Kt="*/".concat("*"),Jt=me.createElement("a");Jt.href=Ot.href,ke.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ot.href,type:"GET",isLocal:qt.test(Ot.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Kt,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":ke.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?le(le(e,ke.ajaxSettings),t):le(ke.ajaxSettings,e)},ajaxPrefilter:re(Ht),ajaxTransport:re(Vt),ajax:function(e,t){function n(e,t,n,o){var i,u,p,N,g,_=t;m||(m=!0,c&&a.clearTimeout(c),r=void 0,l=o||"",w.readyState=e>0?4:0,i=e>=200&&e<300||304===e,n&&(N=oe(f,w,n)),N=ce(f,N,w,i),i?(f.ifModified&&(g=w.getResponseHeader("Last-Modified"),g&&(ke.lastModified[s]=g),(g=w.getResponseHeader("etag"))&&(ke.etag[s]=g)),204===e||"HEAD"===f.type?_="nocontent":304===e?_="notmodified":(_=N.state,u=N.data,p=N.error,i=!p)):(p=_,!e&&_||(_="error",e<0&&(e=0))),w.status=e,w.statusText=(t||_)+"",i?v.resolveWith(h,[u,_,w]):v.rejectWith(h,[w,_,p]),w.statusCode(y),y=void 0,d&&E.trigger(i?"ajaxSuccess":"ajaxError",[w,f,i?u:p]),b.fireWith(h,[w,_]),d&&(E.trigger("ajaxComplete",[w,f]),--ke.active||ke.event.trigger("ajaxStop")))}"object"==typeof e&&(t=e,e=void 0),t=t||{};var r,s,l,o,c,i,m,d,u,p,f=ke.ajaxSetup({},t),h=f.context||f,E=f.context&&(h.nodeType||h.jquery)?ke(h):ke.event,v=ke.Deferred(),b=ke.Callbacks("once memory"),y=f.statusCode||{},N={},g={},_="canceled",w={readyState:0,getResponseHeader:function(e){var t;if(m){if(!o)for(o={};t=zt.exec(l);)o[t[1].toLowerCase()]=t[2];t=o[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return m?l:null},setRequestHeader:function(e,t){return null==m&&(e=g[e.toLowerCase()]=g[e.toLowerCase()]||e,N[e]=t),this},overrideMimeType:function(e){return null==m&&(f.mimeType=e),this},statusCode:function(e){var t;if(e)if(m)w.always(e[w.status]);else for(t in e)y[t]=[y[t],e[t]];return this},abort:function(e){var t=e||_;return r&&r.abort(t),n(0,t),this}};if(v.promise(w),f.url=((e||f.url||Ot.href)+"").replace(Ut,Ot.protocol+"//"),f.type=t.method||t.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(Ge)||[""],null==f.crossDomain){i=me.createElement("a");try{i.href=f.url,i.href=i.href,f.crossDomain=Jt.protocol+"//"+Jt.host!=i.protocol+"//"+i.host}catch(e){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=ke.param(f.data,f.traditional)),se(Ht,f,t,w),m)return w;d=ke.event&&f.global,d&&0==ke.active++&&ke.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!Wt.test(f.type),s=f.url.replace(Ft,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(Yt,"+")):(p=f.url.slice(s.length),f.data&&(f.processData||"string"==typeof f.data)&&(s+=(Dt.test(s)?"&":"?")+f.data,delete f.data),!1===f.cache&&(s=s.replace(Bt,"$1"),p=(Dt.test(s)?"&":"?")+"_="+Mt+++p),f.url=s+p),f.ifModified&&(ke.lastModified[s]&&w.setRequestHeader("If-Modified-Since",ke.lastModified[s]),ke.etag[s]&&w.setRequestHeader("If-None-Match",ke.etag[s])),(f.data&&f.hasContent&&!1!==f.contentType||t.contentType)&&w.setRequestHeader("Content-Type",f.contentType),w.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Kt+"; q=0.01":""):f.accepts["*"]);for(u in f.headers)w.setRequestHeader(u,f.headers[u]);if(f.beforeSend&&(!1===f.beforeSend.call(h,w,f)||m))return w.abort();if(_="abort",b.add(f.complete),w.done(f.success),w.fail(f.error),r=se(Vt,f,t,w)){if(w.readyState=1,d&&E.trigger("ajaxSend",[w,f]),m)return w;f.async&&f.timeout>0&&(c=a.setTimeout(function(){w.abort("timeout")},f.timeout));try{m=!1,r.send(N,n)}catch(e){if(m)throw e;n(-1,e)}}else n(-1,"No Transport");return w},getJSON:function(e,t,a){return ke.get(e,t,a,"json")},getScript:function(e,t){return ke.get(e,void 0,t,"script")}}),ke.each(["get","post"],function(e,t){ke[t]=function(e,a,n,r){return _e(a)&&(r=r||n,n=a,a=void 0),ke.ajax(ke.extend({url:e,type:t,dataType:r,data:a,success:n},ke.isPlainObject(e)&&e))}}),ke._evalUrl=function(e){return ke.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},ke.fn.extend({wrapAll:function(e){var t;return this[0]&&(_e(e)&&(e=e.call(this[0])),t=ke(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return _e(e)?this.each(function(t){ke(this).wrapInner(e.call(this,t))}):this.each(function(){var t=ke(this),a=t.contents();a.length?a.wrapAll(e):t.append(e)})},wrap:function(e){var t=_e(e);return this.each(function(a){ke(this).wrapAll(t?e.call(this,a):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){ke(this).replaceWith(this.childNodes)}),this}}),ke.expr.pseudos.hidden=function(e){return!ke.expr.pseudos.visible(e)},ke.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},ke.ajaxSettings.xhr=function(){try{return new a.XMLHttpRequest}catch(e){}};var $t={0:200,1223:204},Xt=ke.ajaxSettings.xhr();ge.cors=!!Xt&&"withCredentials"in Xt,ge.ajax=Xt=!!Xt,ke.ajaxTransport(function(e){var t,n;if(ge.cors||Xt&&!e.crossDomain)return{send:function(r,s){var l,o=e.xhr();if(o.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(l in e.xhrFields)o[l]=e.xhrFields[l];e.mimeType&&o.overrideMimeType&&o.overrideMimeType(e.mimeType),e.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest");for(l in r)o.setRequestHeader(l,r[l]);t=function(e){return function(){t&&(t=n=o.onload=o.onerror=o.onabort=o.ontimeout=o.onreadystatechange=null,"abort"===e?o.abort():"error"===e?"number"!=typeof o.status?s(0,"error"):s(o.status,o.statusText):s($t[o.status]||o.status,o.statusText,"text"!==(o.responseType||"text")||"string"!=typeof o.responseText?{binary:o.response}:{text:o.responseText},o.getAllResponseHeaders()))}},o.onload=t(),n=o.onerror=o.ontimeout=t("error"),void 0!==o.onabort?o.onabort=n:o.onreadystatechange=function(){4===o.readyState&&a.setTimeout(function(){t&&n()})},t=t("abort");try{o.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}}),ke.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),ke.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return ke.globalEval(e),e}}}),ke.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),ke.ajaxTransport("script",function(e){if(e.crossDomain){var t,a;return{send:function(n,r){t=ke("