require=functione(t,n,r){functions(o,u){if(!n[o]){if(!t[o]){vara="function"==typeofrequire&&require;if(!u&&a)returna(o,!0);if(i)returni(o,!0);varf=newError("Cannot find module '"+o+"'");throwf.code="MODULE_NOT_FOUND",f}varl=n[o]={exports:{}};t[o][0].call(l.exports,function(e){varn=t[o][1][e];returns(n?n:e)},l,l.exports,e,t,n,r)}returnn[o].exports}for(vari="function"==typeofrequire&&require,o=0;o<r.length;o++)s(r[o]);returns}({1:[function(require,module,exports){"use strict";require("babel-polyfill"),require("../../../../thirdparty/jquery/jquery.js"),require("../../../../thirdparty/jquery-ondemand/jquery.ondemand.js"),require("../legacy/sspath.js"),require("../../../../thirdparty/jquery-ui/jquery-ui.js"),require("../../../../thirdparty/jquery-entwine/dist/jquery.entwine-dist.js"),require("../../../../thirdparty/jquery-cookie/jquery.cookie.js"),require("../../../../thirdparty/jquery-query/jquery.query.js"),require("../../../../thirdparty/jquery-form/jquery.form.js"),require("../../../thirdparty/jquery-notice/jquery.notice.js"),require("../../../thirdparty/jsizes/lib/jquery.sizes.js"),require("../../../thirdparty/jlayout/lib/jlayout.border.js"),require("../../../thirdparty/jlayout/lib/jquery.jlayout.js"),require("../../../../thirdparty/jstree/jquery.jstree.js"),require("../../../thirdparty/jquery-hoverIntent/jquery.hoverIntent.js"),require("../../../../thirdparty/jquery-changetracker/lib/jquery.changetracker.js"),require("../../../../client/src/legacy/TreeDropdownField.js"),require("../../../../client/src/legacy/DateField.js"),require("../../../../client/src/legacy/HtmlEditorField.js"),require("../../../../client/src/legacy/TabSet.js"),require("../legacy/ssui.core.js"),require("../../../../client/src/legacy/GridField.js"),require("json-js")},{"../../../../client/src/legacy/DateField.js":17,"../../../../client/src/legacy/GridField.js":18,"../../../../client/src/legacy/HtmlEditorField.js":19,"../../../../client/src/legacy/TabSet.js":20,"../../../../client/src/legacy/TreeDropdownField.js":21,"../../../../thirdparty/jquery-changetracker/lib/jquery.changetracker.js":825,"../../../../thirdparty/jquery-cookie/jquery.cookie.js":826,"../../../../thirdparty/jquery-entwine/dist/jquery.entwine-dist.js":827,"../../../../thirdparty/jquery-form/jquery.form.js":828,"../../../../thirdparty/jquery-ondemand/jquery.ondemand.js":829,"../../../../thirdparty/jquery-query/jquery.query.js":830,"../../../../thirdparty/jquery-ui/jquery-ui.js":831,"../../../../thirdparty/jquery/jquery.js":832,"../../../../thirdparty/jstree/jquery.jstree.js":833,"../../../thirdparty/jlayout/lib/jlayout.border.js":12,"../../../thirdparty/jlayout/lib/jquery.jlayout.js":13,"../../../thirdparty/jquery-hoverIntent/jquery.hoverIntent.js":14,"../../../thirdparty/jquery-notice/jquery.notice.js":15,"../../../thirdparty/jsizes/lib/jquery.sizes.js":16,"../legacy/sspath.js":3,"../legacy/ssui.core.js":4,"babel-polyfill":22,"json-js":320}],2:[function(require,module,exports){"use strict";function_interopRequireDefault(obj){returnobj&&obj.__esModule?obj:{"default":obj}}function_defaults(obj,defaults){for(varkeys=Object.getOwnPropertyNames(defaults),i=0;i<keys.length;i++){varkey=keys[i],value=Object.getOwnPropertyDescriptor(defaults,key);value&&value.configurable&&void0===obj[key]&&Object.defineProperty(obj,key,value)}returnobj}function_classCallCheck(instance,Constructor){if(!(instanceinstanceofConstructor))thrownewTypeError("Cannot call a class as a function")}function_possibleConstructorReturn(self,call){if(!self)thrownewReferenceError("this hasn't been initialised - super() hasn't been called");return!call||"object"!=typeofcall&&"function"!=typeofcall?self:call}function_inherits(subClass,superClass){if("function"!=typeofsuperClass&&null!==superClass)thrownewTypeError("Super expression must either be null or a function, not "+typeofsuperClass);subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:!1,writable:!0,configurable:!0}}),superClass&&(Object.setPrototypeOf?Object.setPrototypeOf(subCla
require("./_core").inspectSource=function(it){return$toString.call(it)},(module.exports=function(O,key,val,safe){varisFunction="function"==typeofval;isFunction&&(has(val,"name")||hide(val,"name",key)),O[key]!==val&&(isFunction&&(has(val,SRC)||hide(val,SRC,O[key]?""+O[key]:TPL.join(String(key)))),O===global?O[key]=val:safe?O[key]?O[key]=val:hide(O,key,val):(deleteO[key],hide(O,key,val)))})(Function.prototype,TO_STRING,function(){return"function"==typeofthis&&this[SRC]||$toString.call(this)})},{"./_core":44,"./_global":59,"./_has":60,"./_hide":61,"./_uid":135}],109:[function(require,module,exports){module.exports=function(regExp,replace){varreplacer=replace===Object(replace)?function(part){returnreplace[part]}:replace;returnfunction(it){returnString(it).replace(regExp,replacer)}}},{}],110:[function(require,module,exports){module.exports=Object.is||function(x,y){returnx===y?0!==x||1/x===1/y:x!=x&&y!=y}},{}],111:[function(require,module,exports){varisObject=require("./_is-object"),anObject=require("./_an-object"),check=function(O,proto){if(anObject(O),!isObject(proto)&&null!==proto)throwTypeError(proto+": can't set as prototype!")};module.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(test,buggy,set){try{set=require("./_ctx")(Function.call,require("./_object-gopd").f(Object.prototype,"__proto__").set,2),set(test,[]),buggy=!(testinstanceofArray)}catch(e){buggy=!0}returnfunction(O,proto){returncheck(O,proto),buggy?O.__proto__=proto:set(O,proto),O}}({},!1):void0),check:check}},{"./_an-object":29,"./_ctx":46,"./_is-object":70,"./_object-gopd":91}],112:[function(require,module,exports){"use strict";varglobal=require("./_global"),dP=require("./_object-dp"),DESCRIPTORS=require("./_descriptors"),SPECIES=require("./_wks")("species");module.exports=function(KEY){varC=global[KEY];DESCRIPTORS&&C&&!C[SPECIES]&&dP.f(C,SPECIES,{configurable:!0,get:function(){returnthis}})}},{"./_descriptors":49,"./_global":59,"./_object-dp":88,"./_wks":136}],113:[function(require,module,exports){vardef=require("./_object-dp").f,has=require("./_has"),TAG=require("./_wks")("toStringTag");module.exports=function(it,tag,stat){it&&!has(it=stat?it:it.prototype,TAG)&&def(it,TAG,{configurable:!0,value:tag})}},{"./_has":60,"./_object-dp":88,"./_wks":136}],114:[function(require,module,exports){varshared=require("./_shared")("keys"),uid=require("./_uid");module.exports=function(key){returnshared[key]||(shared[key]=uid(key))}},{"./_shared":115,"./_uid":135}],115:[function(require,module,exports){varglobal=require("./_global"),SHARED="__core-js_shared__",store=global[SHARED]||(global[SHARED]={});module.exports=function(key){returnstore[key]||(store[key]={})}},{"./_global":59}],116:[function(require,module,exports){varanObject=require("./_an-object"),aFunction=require("./_a-function"),SPECIES=require("./_wks")("species");module.exports=function(O,D){varS,C=anObject(O).constructor;returnvoid0===C||void0==(S=anObject(C)[SPECIES])?D:aFunction(S)}},{"./_a-function":25,"./_an-object":29,"./_wks":136}],117:[function(require,module,exports){varfails=require("./_fails");module.exports=function(method,arg){return!!method&&fails(function(){arg?method.call(null,function(){},1):method.call(null)})}},{"./_fails":55}],118:[function(require,module,exports){vartoInteger=require("./_to-integer"),defined=require("./_defined");module.exports=function(TO_STRING){returnfunction(that,pos){vara,b,s=String(defined(that)),i=toInteger(pos),l=s.length;return0>i||i>=l?TO_STRING?"":void0:(a=s.charCodeAt(i),55296>a||a>56319||i+1===l||(b=s.charCodeAt(i+1))<56320||b>57343?TO_STRING?s.charAt(i):a:TO_STRING?s.slice(i,i+2):(a-55296<<10)+(b-56320)+65536)}}},{"./_defined":48,"./_to-integer":127}],119:[function(require,module,exports){varisRegExp=require("./_is-regexp"),defined=require("./_defined");module.exports=function(that,searchString,NAME){if(isRegExp(searchString))throwTypeError("String#"+NAME+" doesn't accept regex!");returnString(defined(that))}},{"./_defined":48,"./_is-regexp":71}],120:[function(require,module,exports){var$export=require("./
reaction.fail||!isUnhandled(reaction.promise))return!1;return!0},onHandleUnhandled=function(promise){task.call(global,function(){varhandler;isNode?process.emit("rejectionHandled",promise):(handler=global.onrejectionhandled)&&handler({promise:promise,reason:promise._v})})},$reject=function(value){varpromise=this;promise._d||(promise._d=!0,promise=promise._w||promise,promise._v=value,promise._s=2,promise._a||(promise._a=promise._c.slice()),notify(promise,!0))},$resolve=function(value){varthen,promise=this;if(!promise._d){promise._d=!0,promise=promise._w||promise;try{if(promise===value)throwTypeError("Promise can't be resolved itself");(then=isThenable(value))?microtask(function(){varwrapper={_w:promise,_d:!1};try{then.call(value,ctx($resolve,wrapper,1),ctx($reject,wrapper,1))}catch(e){$reject.call(wrapper,e)}}):(promise._v=value,promise._s=1,notify(promise,!1))}catch(e){$reject.call({_w:promise,_d:!1},e)}}};USE_NATIVE||($Promise=function(executor){anInstance(this,$Promise,PROMISE,"_h"),aFunction(executor),Internal.call(this);try{executor(ctx($resolve,this,1),ctx($reject,this,1))}catch(err){$reject.call(this,err)}},Internal=function(executor){this._c=[],this._a=void0,this._s=0,this._d=!1,this._v=void0,this._h=0,this._n=!1},Internal.prototype=require("./_redefine-all")($Promise.prototype,{then:function(onFulfilled,onRejected){varreaction=newPromiseCapability(speciesConstructor(this,$Promise));returnreaction.ok="function"==typeofonFulfilled?onFulfilled:!0,reaction.fail="function"==typeofonRejected&&onRejected,reaction.domain=isNode?process.domain:void0,this._c.push(reaction),this._a&&this._a.push(reaction),this._s&¬ify(this,!1),reaction.promise},"catch":function(onRejected){returnthis.then(void0,onRejected)}}),PromiseCapability=function(){varpromise=newInternal;this.promise=promise,this.resolve=ctx($resolve,promise,1),this.reject=ctx($reject,promise,1)}),$export($export.G+$export.W+$export.F*!USE_NATIVE,{Promise:$Promise}),require("./_set-to-string-tag")($Promise,PROMISE),require("./_set-species")(PROMISE),Wrapper=require("./_core")[PROMISE],$export($export.S+$export.F*!USE_NATIVE,PROMISE,{reject:function(r){varcapability=newPromiseCapability(this),$$reject=capability.reject;return$$reject(r),capability.promise}}),$export($export.S+$export.F*(LIBRARY||!USE_NATIVE),PROMISE,{resolve:function(x){if(xinstanceof$Promise&&sameConstructor(x.constructor,this))returnx;varcapability=newPromiseCapability(this),$$resolve=capability.resolve;return$$resolve(x),capability.promise}}),$export($export.S+$export.F*!(USE_NATIVE&&require("./_iter-detect")(function(iter){$Promise.all(iter)["catch"](empty)})),PROMISE,{all:function(iterable){varC=this,capability=newPromiseCapability(C),resolve=capability.resolve,reject=capability.reject,abrupt=perform(function(){varvalues=[],index=0,remaining=1;forOf(iterable,!1,function(promise){var$index=index++,alreadyCalled=!1;values.push(void0),remaining++,C.resolve(promise).then(function(value){alreadyCalled||(alreadyCalled=!0,values[$index]=value,--remaining||resolve(values))},reject)}),--remaining||resolve(values)});returnabrupt&&reject(abrupt.error),capability.promise},race:function(iterable){varC=this,capability=newPromiseCapability(C),reject=capability.reject,abrupt=perform(function(){forOf(iterable,!1,function(promise){C.resolve(promise).then(capability.resolve,reject)})});returnabrupt&&reject(abrupt.error),capability.promise}})},{"./_a-function":25,"./_an-instance":28,"./_an-object":29,"./_classof":38,"./_core":44,"./_ctx":46,"./_export":53,"./_for-of":58,"./_global":59,"./_is-object":70,"./_iter-detect":75,"./_library":79,"./_microtask":85,"./_redefine-all":107,"./_set-proto":111,"./_set-species":112,"./_set-to-string-tag":113,"./_species-constructor":116,"./_task":125,"./_wks":136}],219:[function(require,module,exports){var$export=require("./_export"),_apply=Function.apply;$export($export.S,"Reflect",{apply:function(target,thisArgument,argumentsList){return_apply.call(target,thisArgument,argumentsList)}})},{"./_export":53}],220:[function(require,module,exports){var
queue.length&&drainQueue()}functiondrainQueue(){if(!draining){vartimeout=setTimeout(cleanUpNextTick);draining=!0;for(varlen=queue.length;len;){for(currentQueue=queue,queue=[];++queueIndex<len;)currentQueue&¤tQueue[queueIndex].run();queueIndex=-1,len=queue.length}currentQueue=null,draining=!1,clearTimeout(timeout)}}functionItem(fun,array){this.fun=fun,this.array=array}functionnoop(){}varcurrentQueue,process=module.exports={},queue=[],draining=!1,queueIndex=-1;process.nextTick=function(fun){varargs=newArray(arguments.length-1);if(arguments.length>1)for(vari=1;i<arguments.length;i++)args[i-1]=arguments[i];queue.push(newItem(fun,args)),1!==queue.length||draining||setTimeout(drainQueue,0)},Item.prototype.run=function(){this.fun.apply(null,this.array)},process.title="browser",process.browser=!0,process.env={},process.argv=[],process.version="",process.versions={},process.on=noop,process.addListener=noop,process.once=noop,process.off=noop,process.removeListener=noop,process.removeAllListeners=noop,process.emit=noop,process.binding=function(name){thrownewError("process.binding is not supported")},process.cwd=function(){return"/"},process.chdir=function(dir){thrownewError("process.chdir is not supported")},process.umask=function(){return0}},{}],314:[function(require,module,exports){(function(global){!function(root){functionerror(type){thrownewRangeError(errors[type])}functionmap(array,fn){for(varlength=array.length,result=[];length--;)result[length]=fn(array[length]);returnresult}functionmapDomain(string,fn){varparts=string.split("@"),result="";parts.length>1&&(result=parts[0]+"@",string=parts[1]),string=string.replace(regexSeparators,".");varlabels=string.split("."),encoded=map(labels,fn).join(".");returnresult+encoded}functionucs2decode(string){for(varvalue,extra,output=[],counter=0,length=string.length;length>counter;)value=string.charCodeAt(counter++),value>=55296&&56319>=value&&length>counter?(extra=string.charCodeAt(counter++),56320==(64512&extra)?output.push(((1023&value)<<10)+(1023&extra)+65536):(output.push(value),counter--)):output.push(value);returnoutput}functionucs2encode(array){returnmap(array,function(value){varoutput="";returnvalue>65535&&(value-=65536,output+=stringFromCharCode(value>>>10&1023|55296),value=56320|1023&value),output+=stringFromCharCode(value)}).join("")}functionbasicToDigit(codePoint){return10>codePoint-48?codePoint-22:26>codePoint-65?codePoint-65:26>codePoint-97?codePoint-97:base}functiondigitToBasic(digit,flag){returndigit+22+75*(26>digit)-((0!=flag)<<5)}functionadapt(delta,numPoints,firstTime){vark=0;for(delta=firstTime?floor(delta/damp):delta>>1,delta+=floor(delta/numPoints);delta>baseMinusTMin*tMax>>1;k+=base)delta=floor(delta/baseMinusTMin);returnfloor(k+(baseMinusTMin+1)*delta/(delta+skew))}functiondecode(input){varout,basic,j,index,oldi,w,k,digit,t,baseMinusT,output=[],inputLength=input.length,i=0,n=initialN,bias=initialBias;for(basic=input.lastIndexOf(delimiter),0>basic&&(basic=0),j=0;basic>j;++j)input.charCodeAt(j)>=128&&error("not-basic"),output.push(input.charCodeAt(j));for(index=basic>0?basic+1:0;inputLength>index;){for(oldi=i,w=1,k=base;index>=inputLength&&error("invalid-input"),digit=basicToDigit(input.charCodeAt(index++)),(digit>=base||digit>floor((maxInt-i)/w))&&error("overflow"),i+=digit*w,t=bias>=k?tMin:k>=bias+tMax?tMax:k-bias,!(t>digit);k+=base)baseMinusT=base-t,w>floor(maxInt/baseMinusT)&&error("overflow"),w*=baseMinusT;out=output.length+1,bias=adapt(i-oldi,out,0==oldi),floor(i/out)>maxInt-n&&error("overflow"),n+=floor(i/out),i%=out,output.splice(i++,0,n)}returnucs2encode(output)}functionencode(input){varn,delta,handledCPCount,basicLength,bias,j,m,q,k,t,currentValue,inputLength,handledCPCountPlusOne,baseMinusT,qMinusT,output=[];for(input=ucs2decode(input),inputLength=input.length,n=initialN,delta=0,bias=initialBias,j=0;inputLength>j;++j)currentValue=input[j],128>currentValue&&output.push(stringFromCharCode(currentValue));for(handledCPCount=basicLength=output.length,basicLength&&output.push(delimiter);inputLength>handledCPCount
classes[_utilsBootstrapUtils2["default"].prefix({bsClass:bsClass},"nav")]=!0,classes[_utilsBootstrapUtils2["default"].prefix({bsClass:bsClass},"right")]=navbarRight,classes[_utilsBootstrapUtils2["default"].prefix({bsClass:bsClass},"left")]=this.props.pullLeft}elseclasses["pull-right"]=this.props.pullRight,classes["pull-left"]=this.props.pullLeft;varlist=_react2["default"].createElement("ul",_extends({ref:"ul"},this.props,{id:ulId||id,role:"tabs"===this.props.bsStyle?"tablist":null,className:_classnames2["default"](className,ulClassName,classes)}),_utilsValidComponentChildren2["default"].map(this.props.children,this.renderNavItem,this));returnthis.context.$bs_deprecated_navbar&&this.props.collapsible&&(list=_react2["default"].createElement(_Collapse2["default"],{"in":this.props.expanded,className:isNavbar?"navbar-collapse":void0},_react2["default"].createElement("div",null,list))),list},Nav.prototype.getChildActiveProp=function(child){returnchild.props.active?!0:null!=this.props.activeKey&&child.props.eventKey===this.props.activeKey?!0:null!=this.props.activeHref&&child.props.href===this.props.activeHref?!0:child.props.active},Nav.prototype.renderNavItem=function(child,index){return_react.cloneElement(child,{role:"tabs"===this.props.bsStyle?"tab":null,active:this.getChildActiveProp(child),activeKey:this.props.activeKey,activeHref:this.props.activeHref,onSelect:_utilsCreateChainedFunction2["default"](child.props.onSelect,this.props.onSelect),key:child.key?child.key:index,navItem:!0})},Nav}(_react2["default"].Component);Nav.propTypes={activeHref:_react2["default"].PropTypes.string,activeKey:_react2["default"].PropTypes.any,stacked:_react2["default"].PropTypes.bool,justified:_reactPropTypesLibAll2["default"](_react2["default"].PropTypes.bool,function(_ref){varjustified=_ref.justified,navbar=_ref.navbar;returnjustified&&navbar?Error("justified navbar `Nav`s are not supported"):null}),onSelect:_react2["default"].PropTypes.func,className:_react2["default"].PropTypes.string,id:_react2["default"].PropTypes.oneOfType([_react2["default"].PropTypes.string,_react2["default"].PropTypes.number]),ulClassName:_reactPropTypesLibDeprecated2["default"](_react2["default"].PropTypes.string,"The wrapping `<nav>` has been removed you can use `className` now"),ulId:_reactPropTypesLibDeprecated2["default"](_react2["default"].PropTypes.string,"The wrapping `<nav>` has been removed you can use `id` now"),navbar:_react2["default"].PropTypes.bool,eventKey:_react2["default"].PropTypes.any,pullRight:_react2["default"].PropTypes.bool,pullLeft:_react2["default"].PropTypes.bool,right:_reactPropTypesLibDeprecated2["default"](_react2["default"].PropTypes.bool,"Use the `pullRight` prop instead"),expanded:_react2["default"].PropTypes.bool,collapsible:_reactPropTypesLibDeprecated2["default"](_react2["default"].PropTypes.bool,"Use `Navbar.Collapse` instead, to create collapsible Navbars")},Nav.contextTypes={$bs_navbar:_react2["default"].PropTypes.bool,$bs_navbar_bsClass:_react2["default"].PropTypes.string,$bs_deprecated_navbar:_react2["default"].PropTypes.bool},Nav.defaultProps={justified:!1,pullRight:!1,pullLeft:!1,stacked:!1},exports["default"]=_utilsBootstrapUtils.bsClass("nav",_utilsBootstrapUtils.bsStyles(["tabs","pills"],Nav)),module.exports=exports["default"]},{"./Collapse":339,"./utils/ValidComponentChildren":408,"./utils/bootstrapUtils":409,"./utils/createChainedFunction":412,"babel-runtime/helpers/class-call-check":419,"babel-runtime/helpers/extends":420,"babel-runtime/helpers/inherits":421,"babel-runtime/helpers/interop-require-default":422,classnames:448,react:"react","react-prop-types/lib/all":567,"react-prop-types/lib/deprecated":569}],374:[function(require,module,exports){"use strict";var_interopRequireDefault=require("babel-runtime/helpers/interop-require-default")["default"];exports.__esModule=!0;var_NavbarBrand=require("./NavbarBrand"),_NavbarBrand2=_interopRequireDefault(_NavbarBrand),_utilsDeprecationWarning=require("./utils/deprecationWarning"),_utilsDeprecationWarning2=_interopRequireDefault(_utilsDeprecationWarning);exports["de
"use strict";var_Object$assign=require("babel-runtime/core-js/object/assign")["default"],_Object$create=require("babel-runtime/core-js/object/create")["default"],_Object$keys=require("babel-runtime/core-js/object/keys")["default"];exports.__esModule=!0;varconstant=function(obj){return_Object$assign(_Object$create({values:function(){var_this=this;return_Object$keys(this).map(function(k){return_this[k]})}}),obj)},styleMaps={SIZES:{large:"lg",medium:"md",small:"sm",xsmall:"xs",lg:"lg",md:"md",sm:"sm",xs:"xs"},GRID_COLUMNS:12},Sizes=constant({LARGE:"large",MEDIUM:"medium",SMALL:"small",XSMALL:"xsmall"});exports.Sizes=Sizes;varState=constant({SUCCESS:"success",WARNING:"warning",DANGER:"danger",INFO:"info"});exports.State=State;varDEFAULT="default";exports.DEFAULT=DEFAULT;varPRIMARY="primary";exports.PRIMARY=PRIMARY;varSECONDARY="secondary";exports.SECONDARY=SECONDARY;varLINK="link";exports.LINK=LINK;varINVERSE="inverse";exports.INVERSE=INVERSE,exports["default"]=styleMaps},{"babel-runtime/core-js/object/assign":415,"babel-runtime/core-js/object/create":416,"babel-runtime/core-js/object/keys":417}],406:[function(require,module,exports){"use strict";var_interopRequireDefault=require("babel-runtime/helpers/interop-require-default")["default"];exports.__esModule=!0;var_reactPropTypesLibCommon=require("react-prop-types/lib/common"),_childrenToArray=require("./childrenToArray"),_childrenToArray2=_interopRequireDefault(_childrenToArray);exports["default"]={requiredRoles:function(){for(var_len=arguments.length,roles=Array(_len),_key=0;_len>_key;_key++)roles[_key]=arguments[_key];return_reactPropTypesLibCommon.createChainableTypeChecker(function(props,propName,component){varmissing=void0,children=_childrenToArray2["default"](props.children),inRole=function(role,child){returnrole===child.props.bsRole};returnroles.every(function(role){returnchildren.some(function(child){returninRole(role,child)})?!0:(missing=role,!1)}),missing?newError("(children) "+component+" - Missing a required child with bsRole: "+missing+". "+(component+" must have at least one child of each of the following bsRoles: "+roles.join(", "))):void0})},exclusiveRoles:function(){for(var_len2=arguments.length,roles=Array(_len2),_key2=0;_len2>_key2;_key2++)roles[_key2]=arguments[_key2];return_reactPropTypesLibCommon.createChainableTypeChecker(function(props,propName,component){varchildren=_childrenToArray2["default"](props.children),duplicate=void0;returnroles.every(function(role){varchildrenWithRole=children.filter(function(child){returnchild.props.bsRole===role});returnchildrenWithRole.length>1?(duplicate=role,!1):!0}),duplicate?newError("(children) "+component+" - Duplicate children detected of bsRole: "+duplicate+". Only one child each allowed with the following bsRoles: "+roles.join(", ")):void0})}},module.exports=exports["default"]},{"./childrenToArray":410,"babel-runtime/helpers/interop-require-default":422,"react-prop-types/lib/common":568}],407:[function(require,module,exports){"use strict";functiondetectEvents(){vartestEl=document.createElement("div"),style=testEl.style;"AnimationEvent"inwindow||deleteEVENT_NAME_MAP.animationend.animation,"TransitionEvent"inwindow||deleteEVENT_NAME_MAP.transitionend.transition;for(varbaseEventNameinEVENT_NAME_MAP){varbaseEvents=EVENT_NAME_MAP[baseEventName];for(varstyleNameinbaseEvents)if(styleNameinstyle){endEvents.push(baseEvents[styleName]);break}}}functionaddEventListener(node,eventName,eventListener){node.addEventListener(eventName,eventListener,!1)}functionremoveEventListener(node,eventName,eventListener){node.removeEventListener(eventName,eventListener,!1)}exports.__esModule=!0;varcanUseDOM=!("undefined"==typeofwindow||!window.document||!window.document.createElement),EVENT_NAME_MAP={transitionend:{transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"mozTransitionEnd",OTransition:"oTransitionEnd",msTransition:"MSTransitionEnd"},animationend:{animation:"animationend",WebkitAnimation:"webkitAnimationEnd",MozAnimation:"mozAnimationEnd",OAnimatio
(found=element.getElementById(nameOnly))?[found]:[]):toArray(element.getElementsByClassName&&maybeClass?element.getElementsByClassName(nameOnly):element.getElementsByTagName(selector)):toArray(element.querySelectorAll(selector))}},{}],465:[function(require,module,exports){"use strict";vargetWindow=require("./isWindow");module.exports=function(node,val){varwin=getWindow(node);returnvoid0===val?win?"pageXOffset"inwin?win.pageXOffset:win.document.documentElement.scrollLeft:node.scrollLeft:void(win?win.scrollTo(val,"pageYOffset"inwin?win.pageYOffset:win.document.documentElement.scrollTop):node.scrollLeft=val)}},{"./isWindow":460}],466:[function(require,module,exports){"use strict";vargetWindow=require("./isWindow");module.exports=function(node,val){varwin=getWindow(node);returnvoid0===val?win?"pageYOffset"inwin?win.pageYOffset:win.document.documentElement.scrollTop:node.scrollTop:void(win?win.scrollTo("pageXOffset"inwin?win.pageXOffset:win.document.documentElement.scrollLeft,val):node.scrollTop=val)}},{"./isWindow":460}],467:[function(require,module,exports){"use strict";varbabelHelpers=require("../util/babelHelpers.js"),_utilCamelizeStyle=require("../util/camelizeStyle"),_utilCamelizeStyle2=babelHelpers.interopRequireDefault(_utilCamelizeStyle),rposition=/^(top|right|bottom|left)$/,rnumnonpx=/^([+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|))(?!px)[a-z%]+$/i;module.exports=function(node){if(!node)thrownewTypeError("No Element passed to `getComputedStyle()`");vardoc=node.ownerDocument;return"defaultView"indoc?doc.defaultView.opener?node.ownerDocument.defaultView.getComputedStyle(node,null):window.getComputedStyle(node,null):{getPropertyValue:function(prop){varstyle=node.style;prop=(0,_utilCamelizeStyle2["default"])(prop),"float"==prop&&(prop="styleFloat");varcurrent=node.currentStyle[prop]||null;if(null==current&&style&&style[prop]&&(current=style[prop]),rnumnonpx.test(current)&&!rposition.test(prop)){varleft=style.left,runStyle=node.runtimeStyle,rsLeft=runStyle&&runStyle.left;rsLeft&&(runStyle.left=node.currentStyle.left),style.left="fontSize"===prop?"1em":current,current=style.pixelLeft+"px",style.left=left,rsLeft&&(runStyle.left=rsLeft)}returncurrent}}}},{"../util/babelHelpers.js":471,"../util/camelizeStyle":473}],468:[function(require,module,exports){"use strict";varcamelize=require("../util/camelizeStyle"),hyphenate=require("../util/hyphenateStyle"),_getComputedStyle=require("./getComputedStyle"),removeStyle=require("./removeStyle"),has=Object.prototype.hasOwnProperty;module.exports=function(node,property,value){varcss="",props=property;if("string"==typeofproperty){if(void0===value)returnnode.style[camelize(property)]||_getComputedStyle(node).getPropertyValue(hyphenate(property));(props={})[property]=value}for(varkeyinprops)has.call(props,key)&&(props[key]||0===props[key]?css+=hyphenate(key)+":"+props[key]+";":removeStyle(node,hyphenate(key)));node.style.cssText+=";"+css}},{"../util/camelizeStyle":473,"../util/hyphenateStyle":475,"./getComputedStyle":467,"./removeStyle":469}],469:[function(require,module,exports){"use strict";module.exports=function(node,key){return"removeProperty"innode.style?node.style.removeProperty(key):node.style.removeAttribute(key)}},{}],470:[function(require,module,exports){"use strict";functiongetTransitionProperties(){varendEvent,prefix="",transitions={O:"otransitionend",Moz:"transitionend",Webkit:"webkitTransitionEnd",ms:"MSTransitionEnd"},element=document.createElement("div");for(varvendorintransitions)if(has.call(transitions,vendor)&&void0!==element.style[vendor+"TransitionProperty"]){prefix="-"+vendor.toLowerCase()+"-",endEvent=transitions[vendor];break}returnendEvent||void0===element.style.transitionProperty||(endEvent="transitionend"),{end:endEvent,prefix:prefix}}vartransitionTiming,transitionDuration,transitionProperty,transitionDelay,canUseDOM=require("../util/inDOM"),has=Object.prototype.hasOwnProperty,transform="transform",transition={};canUseDOM&&(transition=getTransitionProperties(),transform=transition.prefix+transform,transitionProperty=transition.pref
handler&&(component._notifying=!0,handler.call.apply(handler,[component,value].concat(args)),component._notifying=!1),component._values[propName]=value,component.isMounted()&&component.forceUpdate()}exports.__esModule=!0;var_createUncontrollable=require("./createUncontrollable"),_createUncontrollable2=_interopRequireDefault(_createUncontrollable),mixin={shouldComponentUpdate:function(){return!this._notifying}};exports["default"]=(0,_createUncontrollable2["default"])([mixin],set),module.exports=exports["default"]},{"./createUncontrollable":573}],575:[function(require,module,exports){(function(process){"use strict";function_interopRequireDefault(obj){returnobj&&obj.__esModule?obj:{"default":obj}}functioncustomPropType(handler,propType,name){returnfunction(props,propName){returnvoid0!==props[propName]?props[handler]?propType&&propType(props,propName,name):newError("You have provided a `"+propName+"` prop to `"+name+"` without an `"+handler+"` handler. This will render a read-only field. If the field should be mutable use `"+defaultKey(propName)+"`. Otherwise, set `"+handler+"`"):void0}}functionuncontrolledPropTypes(controlledValues,basePropTypes,displayName){varpropTypes={};return"production"!==process.env.NODE_ENV&&basePropTypes&&transform(controlledValues,function(obj,handler,prop){vartype=basePropTypes[prop];(0,_invariant2["default"])("string"==typeofhandler&&handler.trim().length,"Uncontrollable - [%s]: the prop `%s` needs a valid handler key name in order to make it uncontrollable",displayName,prop),obj[prop]=customPropType(handler,type,displayName),void0!==type&&(obj[defaultKey(prop)]=type)},propTypes),propTypes}functiongetType(component){returnversion[0]>=15||0===version[0]&&version[1]>=13?component:component.type}functiongetValue(props,name){varlinkPropName=getLinkName(name);returnlinkPropName&&!isProp(props,name)&&isProp(props,linkPropName)?props[linkPropName].value:props[name]}functionisProp(props,prop){returnvoid0!==props[prop]}functiongetLinkName(name){return"value"===name?"valueLink":"checked"===name?"checkedLink":null}functiondefaultKey(key){return"default"+key.charAt(0).toUpperCase()+key.substr(1)}functionchain(thisArg,a,b){returnfunction(){for(var_len=arguments.length,args=Array(_len),_key=0;_len>_key;_key++)args[_key]=arguments[_key];a&&a.call.apply(a,[thisArg].concat(args)),b&&b.call.apply(b,[thisArg].concat(args))}}functiontransform(obj,cb,seed){returneach(obj,cb.bind(null,seed=seed||(Array.isArray(obj)?[]:{}))),seed}functioneach(obj,cb,thisArg){if(Array.isArray(obj))returnobj.forEach(cb,thisArg);for(varkeyinobj)has(obj,key)&&cb.call(thisArg,obj[key],key,obj)}functionisReactComponent(component){return!!(component&&component.prototype&&component.prototype.isReactComponent)}functionhas(o,k){returno?Object.prototype.hasOwnProperty.call(o,k):!1}exports.__esModule=!0,exports.version=void0,exports.customPropType=customPropType,exports.uncontrolledPropTypes=uncontrolledPropTypes,exports.getType=getType,exports.getValue=getValue,exports.getLinkName=getLinkName,exports.defaultKey=defaultKey,exports.chain=chain,exports.transform=transform,exports.each=each,exports.isReactComponent=isReactComponent,exports.has=has;var_react=require("react"),_react2=_interopRequireDefault(_react),_invariant=require("invariant"),_invariant2=_interopRequireDefault(_invariant),version=exports.version=_react2["default"].version.split(".").map(parseFloat)}).call(this,require("_process"))},{_process:313,invariant:478,react:"react"}],576:[function(require,module,exports){"use strict";varwarning=function(){};module.exports=warning},{}],577:[function(require,module,exports){"use strict";function_interopRequireDefault(obj){returnobj&&obj.__esModule?obj:{"default":obj}}function_classCallCheck(instance,Constructor){if(!(instanceinstanceofConstructor))thrownewTypeError("Cannot call a class as a function")}function_possibleConstructorReturn(self,call){if(!self)thrownewReferenceError("this hasn't been initialised - super() hasn't been called");return!call||"object"!=typeofcall&&"function"!=typeof
}:to}exports.__esModule=!0;var_extends=Object.assign||function(target){for(vari=1;i<arguments.length;i++){varsource=arguments[i];for(varkeyinsource)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key])}returntarget},_react=require("react"),_react2=_interopRequireDefault(_react),_routerWarning=require("./routerWarning"),_routerWarning2=_interopRequireDefault(_routerWarning),_PropTypes=require("./PropTypes"),_React$PropTypes=_react2["default"].PropTypes,bool=_React$PropTypes.bool,object=_React$PropTypes.object,string=_React$PropTypes.string,func=_React$PropTypes.func,oneOfType=_React$PropTypes.oneOfType,Link=_react2["default"].createClass({displayName:"Link",contextTypes:{router:_PropTypes.routerShape},propTypes:{to:oneOfType([string,object]).isRequired,query:object,hash:string,state:object,activeStyle:object,activeClassName:string,onlyActiveOnIndex:bool.isRequired,onClick:func,target:string},getDefaultProps:function(){return{onlyActiveOnIndex:!1,style:{}}},handleClick:function(event){varallowTransition=!0;if(this.props.onClick&&this.props.onClick(event),!isModifiedEvent(event)&&isLeftClickEvent(event)){if(event.defaultPrevented===!0&&(allowTransition=!1),this.props.target)returnvoid(allowTransition||event.preventDefault());if(event.preventDefault(),allowTransition){var_props=this.props,to=_props.to,query=_props.query,hash=_props.hash,state=_props.state,location=createLocationDescriptor(to,{query:query,hash:hash,state:state});this.context.router.push(location)}}},render:function(){var_props2=this.props,to=_props2.to,query=_props2.query,hash=_props2.hash,state=_props2.state,activeClassName=_props2.activeClassName,activeStyle=_props2.activeStyle,onlyActiveOnIndex=_props2.onlyActiveOnIndex,props=_objectWithoutProperties(_props2,["to","query","hash","state","activeClassName","activeStyle","onlyActiveOnIndex"]);"production"!==process.env.NODE_ENV?(0,_routerWarning2["default"])(!(query||hash||state),"the `query`, `hash`, and `state` props on `<Link>` are deprecated, use `<Link to={{ pathname, query, hash, state }}/>. http://tiny.cc/router-isActivedeprecated"):void0;varrouter=this.context.router;if(router){varlocation=createLocationDescriptor(to,{query:query,hash:hash,state:state});props.href=router.createHref(location),(activeClassName||null!=activeStyle&&!isEmptyObject(activeStyle))&&router.isActive(location,onlyActiveOnIndex)&&(activeClassName&&(props.className?props.className+=" "+activeClassName:props.className=activeClassName),activeStyle&&(props.style=_extends({},props.style,activeStyle)))}return_react2["default"].createElement("a",_extends({},props,{onClick:this.handleClick}))}});exports["default"]=Link,module.exports=exports["default"]}).call(this,require("_process"))},{"./PropTypes":601,"./routerWarning":624,_process:313,react:"react"}],600:[function(require,module,exports){(function(process){"use strict";function_interopRequireDefault(obj){returnobj&&obj.__esModule?obj:{"default":obj}}functionescapeRegExp(string){returnstring.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function_compilePattern(pattern){for(varregexpSource="",paramNames=[],tokens=[],match=void0,lastIndex=0,matcher=/:([a-zA-Z_$][a-zA-Z0-9_$]*)|\*\*|\*|\(|\)/g;match=matcher.exec(pattern);)match.index!==lastIndex&&(tokens.push(pattern.slice(lastIndex,match.index)),regexpSource+=escapeRegExp(pattern.slice(lastIndex,match.index))),match[1]?(regexpSource+="([^/]+)",paramNames.push(match[1])):"**"===match[0]?(regexpSource+="(.*)",paramNames.push("splat")):"*"===match[0]?(regexpSource+="(.*?)",paramNames.push("splat")):"("===match[0]?regexpSource+="(?:":")"===match[0]&&(regexpSource+=")?"),tokens.push(match[0]),lastIndex=matcher.lastIndex;returnlastIndex!==pattern.length&&(tokens.push(pattern.slice(lastIndex,pattern.length)),regexpSource+=escapeRegExp(pattern.slice(lastIndex,pattern.length))),{pattern:pattern,regexpSource:regexpSource,paramNames:paramNames,tokens:tokens}}functioncompilePattern(pattern){returnpatterninCompiledPatternsCache||(CompiledPatternsCache[pattern]=_compilePattern(pattern)),CompiledPatternsCache[
returnwindow.location.href.split("#")[1]||""}functionreplaceHashPath(path){window.location.replace(window.location.pathname+window.location.search+"#"+path)}functiongetWindowPath(){returnwindow.location.pathname+window.location.search+window.location.hash}functiongo(n){n&&window.history.go(n)}functiongetUserConfirmation(message,callback){callback(window.confirm(message))}functionsupportsHistory(){varua=navigator.userAgent;return-1===ua.indexOf("Android 2.")&&-1===ua.indexOf("Android 4.0")||-1===ua.indexOf("Mobile Safari")||-1!==ua.indexOf("Chrome")||-1!==ua.indexOf("Windows Phone")?window.history&&"pushState"inwindow.history:!1}functionsupportsGoWithoutReloadUsingHash(){varua=navigator.userAgent;return-1===ua.indexOf("Firefox")}exports.__esModule=!0,exports.addEventListener=addEventListener,exports.removeEventListener=removeEventListener,exports.getHashPath=getHashPath,exports.replaceHashPath=replaceHashPath,exports.getWindowPath=getWindowPath,exports.go=go,exports.getUserConfirmation=getUserConfirmation,exports.supportsHistory=supportsHistory,exports.supportsGoWithoutReloadUsingHash=supportsGoWithoutReloadUsingHash},{}],632:[function(require,module,exports){"use strict";exports.__esModule=!0;varcanUseDOM=!("undefined"==typeofwindow||!window.document||!window.document.createElement);exports.canUseDOM=canUseDOM},{}],633:[function(require,module,exports){(function(process){"use strict";function_interopRequireDefault(obj){returnobj&&obj.__esModule?obj:{"default":obj}}functionextractPath(string){varmatch=string.match(/^https?:\/\/[^\/]*/);returnnull==match?string:string.substring(match[0].length)}functionparsePath(path){varpathname=extractPath(path),search="",hash="";"production"!==process.env.NODE_ENV?_warning2["default"](path===pathname,'A path must be pathname + search + hash only, not a fully qualified URL like "%s"',path):void0;varhashIndex=pathname.indexOf("#");-1!==hashIndex&&(hash=pathname.substring(hashIndex),pathname=pathname.substring(0,hashIndex));varsearchIndex=pathname.indexOf("?");return-1!==searchIndex&&(search=pathname.substring(searchIndex),pathname=pathname.substring(0,searchIndex)),""===pathname&&(pathname="/"),{pathname:pathname,search:search,hash:hash}}exports.__esModule=!0,exports.extractPath=extractPath,exports.parsePath=parsePath;var_warning=require("warning"),_warning2=_interopRequireDefault(_warning)}).call(this,require("_process"))},{_process:313,warning:651}],634:[function(require,module,exports){(function(process){"use strict";function_interopRequireDefault(obj){returnobj&&obj.__esModule?obj:{"default":obj}}functioncreateBrowserHistory(){functiongetCurrentLocation(historyState){try{historyState=historyState||window.history.state||{}}catch(e){historyState={}}varpath=_DOMUtils.getWindowPath(),_historyState=historyState,key=_historyState.key,state=void0;key?state=_DOMStateStorage.readState(key):(state=null,key=history.createKey(),isSupported&&window.history.replaceState(_extends({},historyState,{key:key}),null));varlocation=_PathUtils.parsePath(path);returnhistory.createLocation(_extends({},location,{state:state}),void0,key)}functionstartPopStateListener(_ref){functionpopStateListener(event){void0!==event.state&&transitionTo(getCurrentLocation(event.state))}vartransitionTo=_ref.transitionTo;return_DOMUtils.addEventListener(window,"popstate",popStateListener),function(){_DOMUtils.removeEventListener(window,"popstate",popStateListener)}}functionfinishTransition(location){varbasename=location.basename,pathname=location.pathname,search=location.search,hash=location.hash,state=location.state,action=location.action,key=location.key;if(action!==_Actions.POP){_DOMStateStorage.saveState(key,state);varpath=(basename||"")+pathname+search+hash,historyState={key:key};if(action===_Actions.PUSH){if(useRefresh)returnwindow.location.href=path,!1;window.history.pushState(historyState,null,path)}else{if(useRefresh)returnwindow.location.replace(path),!1;window.history.replaceState(historyState,null,path)}}}functionlistenBefore(listener){1===++listenerCount&&(stopPopStateLis
}functioncreatePath(location,query){return"production"!==process.env.NODE_ENV?_warning2["default"](!query,"the query argument to createPath is deprecated; use a location descriptor instead"):void0,history.createPath(appendQuery(location,query||location.query))}functioncreateHref(location,query){return"production"!==process.env.NODE_ENV?_warning2["default"](!query,"the query argument to createHref is deprecated; use a location descriptor instead"):void0,history.createHref(appendQuery(location,query||location.query))}functioncreateLocation(location){for(var_len=arguments.length,args=Array(_len>1?_len-1:0),_key=1;_len>_key;_key++)args[_key-1]=arguments[_key];varfullLocation=history.createLocation.apply(history,[appendQuery(location,location.query)].concat(args));returnlocation.query&&(fullLocation.query=location.query),addQuery(fullLocation)}functionpushState(state,path,query){"string"==typeofpath&&(path=_PathUtils.parsePath(path)),push(_extends({state:state},path,{query:query}))}functionreplaceState(state,path,query){"string"==typeofpath&&(path=_PathUtils.parsePath(path)),replace(_extends({state:state},path,{query:query}))}varoptions=arguments.length<=0||void0===arguments[0]?{}:arguments[0],history=createHistory(options),stringifyQuery=options.stringifyQuery,parseQueryString=options.parseQueryString;return"function"!=typeofstringifyQuery&&(stringifyQuery=defaultStringifyQuery),"function"!=typeofparseQueryString&&(parseQueryString=defaultParseQueryString),_extends({},history,{listenBefore:listenBefore,listen:listen,push:push,replace:replace,createPath:createPath,createHref:createHref,createLocation:createLocation,pushState:_deprecate2["default"](pushState,"pushState is deprecated; use push instead"),replaceState:_deprecate2["default"](replaceState,"replaceState is deprecated; use replace instead")})}}exports.__esModule=!0;var_extends=Object.assign||function(target){for(vari=1;i<arguments.length;i++){varsource=arguments[i];for(varkeyinsource)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key])}returntarget},_warning=require("warning"),_warning2=_interopRequireDefault(_warning),_queryString=require("query-string"),_runTransitionHook=require("./runTransitionHook"),_runTransitionHook2=_interopRequireDefault(_runTransitionHook),_PathUtils=require("./PathUtils"),_deprecate=require("./deprecate"),_deprecate2=_interopRequireDefault(_deprecate),SEARCH_BASE_KEY="$searchBase",defaultParseQueryString=_queryString.parse;exports["default"]=useQueries,module.exports=exports["default"]}).call(this,require("_process"))},{"./PathUtils":633,"./deprecate":640,"./runTransitionHook":641,_process:313,"query-string":647,warning:651}],644:[function(require,module,exports){functionisUndefinedOrNull(value){returnnull===value||void0===value}functionisBuffer(x){returnx&&"object"==typeofx&&"number"==typeofx.length?"function"!=typeofx.copy||"function"!=typeofx.slice?!1:!(x.length>0&&"number"!=typeofx[0]):!1}functionobjEquiv(a,b,opts){vari,key;if(isUndefinedOrNull(a)||isUndefinedOrNull(b))return!1;if(a.prototype!==b.prototype)return!1;if(isArguments(a))returnisArguments(b)?(a=pSlice.call(a),b=pSlice.call(b),deepEqual(a,b,opts)):!1;if(isBuffer(a)){if(!isBuffer(b))return!1;if(a.length!==b.length)return!1;for(i=0;i<a.length;i++)if(a[i]!==b[i])return!1;return!0}try{varka=objectKeys(a),kb=objectKeys(b)}catch(e){return!1}if(ka.length!=kb.length)return!1;for(ka.sort(),kb.sort(),i=ka.length-1;i>=0;i--)if(ka[i]!=kb[i])return!1;for(i=ka.length-1;i>=0;i--)if(key=ka[i],!deepEqual(a[key],b[key],opts))return!1;returntypeofa==typeofb}varpSlice=Array.prototype.slice,objectKeys=require("./lib/keys.js"),isArguments=require("./lib/is_arguments.js"),deepEqual=module.exports=function(actual,expected,opts){returnopts||(opts={}),actual===expected?!0:actualinstanceofDate&&expectedinstanceofDate?actual.getTime()===expected.getTime():!actual||!expected||"object"!=typeofactual&&"object"!=typeofexpected?opts.strict?actual===expected:actual==expected:objEquiv(actual,expected,opts)}},{"./lib/is_arguments.js":645,"
}],721:[function(require,module,exports){"use strict";functiongetComponentClassForElement(element){if("function"==typeofelement.type)returnelement.type;vartag=element.type,componentClass=tagToComponentClass[tag];returnnull==componentClass&&(tagToComponentClass[tag]=componentClass=autoGenerateWrapperClass(tag)),componentClass}functioncreateInternalComponent(element){returngenericComponentClass?void0:invariant(!1),newgenericComponentClass(element.type,element.props)}functioncreateInstanceForText(text){returnnewtextComponentClass(text)}functionisTextComponent(component){returncomponentinstanceoftextComponentClass}varassign=require("./Object.assign"),invariant=require("fbjs/lib/invariant"),autoGenerateWrapperClass=null,genericComponentClass=null,tagToComponentClass={},textComponentClass=null,ReactNativeComponentInjection={injectGenericComponentClass:function(componentClass){genericComponentClass=componentClass},injectTextComponentClass:function(componentClass){textComponentClass=componentClass},injectComponentClasses:function(componentClasses){assign(tagToComponentClass,componentClasses)}},ReactNativeComponent={getComponentClassForElement:getComponentClassForElement,createInternalComponent:createInternalComponent,createInstanceForText:createInstanceForText,isTextComponent:isTextComponent,injection:ReactNativeComponentInjection};module.exports=ReactNativeComponent},{"./Object.assign":673,"fbjs/lib/invariant":802}],722:[function(require,module,exports){"use strict";functionwarnTDZ(publicInstance,callerName){}varReactNoopUpdateQueue=(require("fbjs/lib/warning"),{isMounted:function(publicInstance){return!1},enqueueCallback:function(publicInstance,callback){},enqueueForceUpdate:function(publicInstance){warnTDZ(publicInstance,"forceUpdate")},enqueueReplaceState:function(publicInstance,completeState){warnTDZ(publicInstance,"replaceState")},enqueueSetState:function(publicInstance,partialState){warnTDZ(publicInstance,"setState")},enqueueSetProps:function(publicInstance,partialProps){warnTDZ(publicInstance,"setProps")},enqueueReplaceProps:function(publicInstance,props){warnTDZ(publicInstance,"replaceProps")}});module.exports=ReactNoopUpdateQueue},{"fbjs/lib/warning":813}],723:[function(require,module,exports){"use strict";varinvariant=require("fbjs/lib/invariant"),ReactOwner={isValidOwner:function(object){return!(!object||"function"!=typeofobject.attachRef||"function"!=typeofobject.detachRef)},addComponentAsRefTo:function(component,ref,owner){ReactOwner.isValidOwner(owner)?void0:invariant(!1),owner.attachRef(ref,component)},removeComponentAsRefFrom:function(component,ref,owner){ReactOwner.isValidOwner(owner)?void0:invariant(!1),owner.getPublicInstance().refs[ref]===component.getPublicInstance()&&owner.detachRef(ref)}};module.exports=ReactOwner},{"fbjs/lib/invariant":802}],724:[function(require,module,exports){"use strict";function_noMeasure(objName,fnName,func){returnfunc}varReactPerf={enableMeasure:!1,storedMeasure:_noMeasure,measureMethods:function(object,objectName,methodNames){},measure:function(objName,fnName,func){returnfunc},injection:{injectMeasure:function(measure){ReactPerf.storedMeasure=measure}}};module.exports=ReactPerf},{}],725:[function(require,module,exports){"use strict";varReactPropTypeLocationNames={};module.exports=ReactPropTypeLocationNames},{}],726:[function(require,module,exports){"use strict";varkeyMirror=require("fbjs/lib/keyMirror"),ReactPropTypeLocations=keyMirror({prop:null,context:null,childContext:null});module.exports=ReactPropTypeLocations},{"fbjs/lib/keyMirror":805}],727:[function(require,module,exports){"use strict";functioncreateChainableTypeChecker(validate){functioncheckType(isRequired,props,propName,componentName,location,propFullName){if(componentName=componentName||ANONYMOUS,propFullName=propFullName||propName,null==props[propName]){varlocationName=ReactPropTypeLocationNames[location];returnisRequired?newError("Required "+locationName+" `"+propFullName+"` was not specified in "+("`"+componentName+"`.")):null}returnvalidate(props,propName,componentName,locatio
if("undefined"==typeofdocument)returnnull;try{returndocument.activeElement||document.body}catch(e){returndocument.body}}module.exports=getActiveElement},{}],798:[function(require,module,exports){"use strict";functiongetMarkupWrap(nodeName){returndummyNode?void0:invariant(!1),markupWrap.hasOwnProperty(nodeName)||(nodeName="*"),shouldWrap.hasOwnProperty(nodeName)||("*"===nodeName?dummyNode.innerHTML="<link />":dummyNode.innerHTML="<"+nodeName+"></"+nodeName+">",shouldWrap[nodeName]=!dummyNode.firstChild),shouldWrap[nodeName]?markupWrap[nodeName]:null}varExecutionEnvironment=require("./ExecutionEnvironment"),invariant=require("./invariant"),dummyNode=ExecutionEnvironment.canUseDOM?document.createElement("div"):null,shouldWrap={},selectWrap=[1,'<select multiple="true">',"</select>"],tableWrap=[1,"<table>","</table>"],trWrap=[3,"<table><tbody><tr>","</tr></tbody></table>"],svgWrap=[1,'<svg xmlns="http://www.w3.org/2000/svg">',"</svg>"],markupWrap={"*":[1,"?<div>","</div>"],area:[1,"<map>","</map>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],legend:[1,"<fieldset>","</fieldset>"],param:[1,"<object>","</object>"],tr:[2,"<table><tbody>","</tbody></table>"],optgroup:selectWrap,option:selectWrap,caption:tableWrap,colgroup:tableWrap,tbody:tableWrap,tfoot:tableWrap,thead:tableWrap,td:trWrap,th:trWrap},svgElements=["circle","clipPath","defs","ellipse","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","text","tspan"];svgElements.forEach(function(nodeName){markupWrap[nodeName]=svgWrap,shouldWrap[nodeName]=!0}),module.exports=getMarkupWrap},{"./ExecutionEnvironment":788,"./invariant":802}],799:[function(require,module,exports){"use strict";functiongetUnboundedScrollPosition(scrollable){returnscrollable===window?{x:window.pageXOffset||document.documentElement.scrollLeft,y:window.pageYOffset||document.documentElement.scrollTop}:{x:scrollable.scrollLeft,y:scrollable.scrollTop}}module.exports=getUnboundedScrollPosition},{}],800:[function(require,module,exports){"use strict";functionhyphenate(string){returnstring.replace(_uppercasePattern,"-$1").toLowerCase()}var_uppercasePattern=/([A-Z])/g;module.exports=hyphenate},{}],801:[function(require,module,exports){"use strict";functionhyphenateStyleName(string){returnhyphenate(string).replace(msPattern,"-ms-")}varhyphenate=require("./hyphenate"),msPattern=/^ms-/;module.exports=hyphenateStyleName},{"./hyphenate":800}],802:[function(require,module,exports){"use strict";functioninvariant(condition,format,a,b,c,d,e,f){if(!condition){varerror;if(void0===format)error=newError("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{varargs=[a,b,c,d,e,f],argIndex=0;error=newError(format.replace(/%s/g,function(){returnargs[argIndex++]})),error.name="Invariant Violation"}throwerror.framesToPop=1,error}}module.exports=invariant},{}],803:[function(require,module,exports){"use strict";functionisNode(object){return!(!object||!("function"==typeofNode?objectinstanceofNode:"object"==typeofobject&&"number"==typeofobject.nodeType&&"string"==typeofobject.nodeName))}module.exports=isNode},{}],804:[function(require,module,exports){"use strict";functionisTextNode(object){returnisNode(object)&&3==object.nodeType}varisNode=require("./isNode");module.exports=isTextNode},{"./isNode":803}],805:[function(require,module,exports){"use strict";varinvariant=require("./invariant"),keyMirror=function(obj){varkey,ret={};objinstanceofObject&&!Array.isArray(obj)?void0:invariant(!1);for(keyinobj)obj.hasOwnProperty(key)&&(ret[key]=key);returnret};module.exports=keyMirror},{"./invariant":802}],806:[function(require,module,exports){"use strict";varkeyOf=function(oneKeyObj){varkey;for(keyinoneKeyObj)if(oneKeyObj.hasOwnProperty(key))returnkey;returnnull};module.exports=keyOf},{}],807:[function(require,module,exports){"use strict";functionmapObject(object,callback,context){if(!object)returnnull;varresult={};for(varnameinobject)has
returnthis.map[normalizeName(name)]||[]},Headers.prototype.has=function(name){returnthis.map.hasOwnProperty(normalizeName(name))},Headers.prototype.set=function(name,value){this.map[normalizeName(name)]=[normalizeValue(value)]},Headers.prototype.forEach=function(callback,thisArg){Object.getOwnPropertyNames(this.map).forEach(function(name){this.map[name].forEach(function(value){callback.call(thisArg,value,name,this)},this)},this)};varsupport={blob:"FileReader"inself&&"Blob"inself&&function(){try{returnnewBlob,!0}catch(e){return!1}}(),formData:"FormData"inself,arrayBuffer:"ArrayBuffer"inself},methods=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];Request.prototype.clone=function(){returnnewRequest(this)},Body.call(Request.prototype),Body.call(Response.prototype),Response.prototype.clone=function(){returnnewResponse(this._bodyInit,{status:this.status,statusText:this.statusText,headers:newHeaders(this.headers),url:this.url})},Response.error=function(){varresponse=newResponse(null,{status:0,statusText:""});returnresponse.type="error",response};varredirectStatuses=[301,302,303,307,308];Response.redirect=function(url,status){if(-1===redirectStatuses.indexOf(status))thrownewRangeError("Invalid status code");returnnewResponse(null,{status:status,headers:{location:url}})},self.Headers=Headers,self.Request=Request,self.Response=Response,self.fetch=function(input,init){returnnewPromise(function(resolve,reject){functionresponseURL(){return"responseURL"inxhr?xhr.responseURL:/^X-Request-URL:/m.test(xhr.getAllResponseHeaders())?xhr.getResponseHeader("X-Request-URL"):void0}varrequest;request=Request.prototype.isPrototypeOf(input)&&!init?input:newRequest(input,init);varxhr=newXMLHttpRequest;xhr.onload=function(){varstatus=1223===xhr.status?204:xhr.status;if(100>status||status>599)returnvoidreject(newTypeError("Network request failed"));varoptions={status:status,statusText:xhr.statusText,headers:headers(xhr),url:responseURL()},body="response"inxhr?xhr.response:xhr.responseText;resolve(newResponse(body,options))},xhr.onerror=function(){reject(newTypeError("Network request failed"))},xhr.open(request.method,request.url,!0),"include"===request.credentials&&(xhr.withCredentials=!0),"responseType"inxhr&&support.blob&&(xhr.responseType="blob"),request.headers.forEach(function(value,name){xhr.setRequestHeader(name,value)}),xhr.send("undefined"==typeofrequest._bodyInit?null:request._bodyInit)})},self.fetch.polyfill=!0}}("undefined"!=typeofself?self:this)},{}],825:[function(require,module,exports){!function($){$.fn.changetracker=function(_options){varself=this;if(this.length>1)returnthis.each(function(i,item){this.changetracker(_options)}),this;this.defaults={fieldSelector:":input:not(:submit)",ignoreFieldSelector:"",changedCssClass:"changed"};varoptions=$.extend({},this.defaults,_options);if(this.initialize=function(){$.meta&&(options=$.extend({},options,this.data()));varorigVal,dirty=!1,onchange=function(e){varnewVal,$field=$(e.target),origVal=$field.data("changetracker.origVal");newVal=$field.is(":checkbox")?$field.is(":checked")?1:0:$field.val(),null===origVal||newVal!=origVal?($field.addClass(options.changedCssClass),self.addClass(options.changedCssClass)):($field.removeClass(options.changedCssClass),$field.is(":radio")&&self.find(":radio[name="+$field.attr("name")+"]").removeClass(options.changedCssClass),dirty||self.getFields().filter("."+options.changedCssClass).length||self.removeClass(options.changedCssClass))},fields=this.getFields();fields.filter(":radio,:checkbox").bind("click.changetracker",onchange),fields.not(":radio,:checkbox").bind("change.changetracker",onchange),fields.each(function(){origVal=$(this).is(":radio,:checkbox")?self.find(":input[name="+$(this).attr("name")+"]:checked").val():$(this).val(),$(this).data("changetracker.origVal",origVal)}),self.bind("dirty.changetracker",function(){dirty=!0,self.addClass(options.changedCssClass)}),this.data("changetracker",!0)},this.destroy=function(){this.getFields().unbind(".changetracker").removeClass(options.changedCssClass).removeData(
break;case"keydown":(13===e.keyCode&&!jQuery.nodeName(elem,"textarea")||32===e.keyCode&&("checkbox"===type||"radio"===type)||"select-multiple"===type)&&testChange.apply(this,arguments);break;case"focusin":case"beforeactivate":jQuery.data(elem,"_entwine_change_data",getVal(elem))}};returnprxy},bind_event:function(selector,name,func,event){varfuncs=this.store[name]||(this.store[name]=$.entwine.RuleList()),proxies=funcs.proxies||(funcs.proxies={}),rule=funcs.addRule(selector,name);if(rule.func=func,!proxies[name]){switch(name){case"onmouseenter":proxies[name]=this.build_mouseenterleave_proxy(name),event="mouseover";break;case"onmouseleave":proxies[name]=this.build_mouseenterleave_proxy(name),event="mouseout";break;case"onchange":$.support.changeBubbles||(proxies[name]=this.build_change_proxy(name),event="click keydown focusin focusout beforeactivate beforedeactivate");break;case"onsubmit":event="delegatedSubmit";break;case"onfocus":case"onblur":$.entwine.warn("Event "+event+" not supported - using focusin / focusout instead",$.entwine.WARN_LEVEL_IMPORTANT)}proxies[name]||(proxies[name]=this.build_event_proxy(name)),$(document).bind(event.replace(/(\s+|$)/g,".entwine$1"),proxies[name])}}}),$.entwine.Namespace.addHandler({order:40,bind:function(selector,k,v){varmatch,event;return$.isFunction(v)&&(match=k.match(/^on(.*)/))?(event=match[1],this.bind_event(selector,k,v,event),!0):void0}});vardelegate_submit=function(e,data){vardelegationEvent=$.Event("delegatedSubmit");returndelegationEvent.delegatedEvent=e,$(document).trigger(delegationEvent,data)};$(document).bind("EntwineElementsAdded",function(e){varforms=$(e.targets).filter("form");forms.length&&forms.bind("submit.entwine_delegate_submit",delegate_submit)})}(jQuery),function($){$.entwine.Namespace.addMethods({bind_capture:function(selector,event,name,capture){varstore=this.captures||(this.captures={}),rulelists=store[event]||(store[event]={}),rulelist=rulelists[name]||(rulelists[name]=$.entwine.RuleList()),rule=rulelist.addRule(selector,event);rule.handler=name,this.bind_proxy(selector,name,capture)}});varbindings=$.entwine.capture_bindings={},event_proxy=function(event){returnfunction(e){varnamespace,capturelists,forevent,capturelist,rule,handler,sel;for(varkin$.entwine.namespaces)if(namespace=$.entwine.namespaces[k],capturelists=namespace.captures,capturelists&&(forevent=capturelists[event]))for(varkinforevent)for(varcapturelist=forevent[k],triggered=namespace.$([]),j=capturelist.length;j--;){rule=capturelist[j],handler=rule.handler,sel=rule.selector.selector;varmatching=namespace.$(sel).not(triggered);matching[handler].apply(matching,arguments),triggered=triggered.add(matching)}}},selector_proxy=function(selector,handler,includechildren){varmatcher=$.selector(selector);returnfunction(e){returnmatcher.matches(e.target)?handler.apply(this,arguments):void0}},document_proxy=function(selector,handler,includechildren){returnfunction(e){returne.target===document?handler.apply(this,arguments):void0}},window_proxy=function(selector,handler,includechildren){returnfunction(e){returne.target===window?handler.apply(this,arguments):void0}},property_proxy=function(property,handler,includechildren){returnfunction(e){varmatch=this["get"+property]();if("string"==typeofmatch){varmatcher=matcher&&match==matcher.selector?matcher:$.selector(match);if(matcher.matches(e.target))returnhandler.apply(this,arguments)}elseif(-1!==$.inArray(e.target,match))returnhandler.apply(this,arguments)}};$.entwine.Namespace.addHandler({order:10,bind:function(selector,k,v){varmatch;if($.isPlainObject(v)&&(match=k.match(/^from\s*(.*)/))){varproxyGen,from=match[1];proxyGen=from.match(/[^\w]/)?selector_proxy:"Window"==from||"window"==from?window_proxy:"Document"==from||"document"==from?document_proxy:property_proxy;for(varoneventinv){varhandler=v[onevent];match=onevent.match(/^on(.*)/);varevent=match[1];if(this.bind_capture(selector,event,k+"_"+event,proxyGen(from,handler)),!bindings[event]){varnamespaced=event.replace(/(\s+|$)/g,".entwine$1");bindings[event]=event_pro
key:props.id},props))})},FormBuilderComponent.prototype.mapActionsToComponents=function(actions){returnthis.mapFieldsToComponents(actions)},FormBuilderComponent.prototype.mergeFieldData=function(structure,state){return_merge2["default"].recursive(!0,structure,{data:state.data,messages:state.messages,valid:state.valid,value:state.value})},FormBuilderComponent.prototype.removeForm=function(formId){this.props.formActions.removeForm(formId)},FormBuilderComponent.prototype.render=function(){var_this5=this,formId=this.getFormId();if(!formId)returnnull;varformSchema=this.getFormSchema(),formState=this.props.form[formId];if(!formSchema)returnnull;varattributes=_extends({},formSchema.schema.attributes,{"class":null,className:formSchema.schema.attributes["class"],enctype:null,encType:formSchema.schema.attributes.enctype}),fieldData=formSchema.schema&&formState&&formState.fields?formSchema.schema.fields.map(function(f,i){return_this5.mergeFieldData(f,formState.fields[i])}):formSchema.schema.fields,formProps={actions:formSchema.schema.actions,attributes:attributes,componentWillUnmount:this.removeForm,data:formSchema.schema.data,fields:fieldData,formId:formId,handleSubmit:this.handleSubmit,mapActionsToComponents:this.mapActionsToComponents,mapFieldsToComponents:this.mapFieldsToComponents};return_react2["default"].createElement(_Form2["default"],formProps)},FormBuilderComponent}(_SilverStripeComponent2["default"]);FormBuilderComponent.propTypes={config:_react2["default"].PropTypes.object,createFn:_react2["default"].PropTypes.func,form:_react2["default"].PropTypes.object.isRequired,formActions:_react2["default"].PropTypes.object.isRequired,handleSubmit:_react2["default"].PropTypes.func,schemas:_react2["default"].PropTypes.object.isRequired,schemaActions:_react2["default"].PropTypes.object.isRequired,schemaUrl:_react2["default"].PropTypes.string.isRequired},exports["default"]=(0,_reactRedux.connect)(mapStateToProps,mapDispatchToProps)(FormBuilderComponent)},{"components/Form/Form":"components/Form/Form","es6-promise":318,"isomorphic-fetch":319,"lib/Backend":"lib/Backend","lib/Injector":"lib/Injector","lib/SilverStripeComponent":"lib/SilverStripeComponent",merge:321,react:"react","react-redux":"react-redux",redux:"redux","state/form/FormActions":7,"state/schema/SchemaActions":11}],"components/GridField/GridFieldCell":[function(require,module,exports){"use strict";function_interopRequireDefault(obj){returnobj&&obj.__esModule?obj:{"default":obj}}function_defaults(obj,defaults){for(varkeys=Object.getOwnPropertyNames(defaults),i=0;i<keys.length;i++){varkey=keys[i],value=Object.getOwnPropertyDescriptor(defaults,key);value&&value.configurable&&void0===obj[key]&&Object.defineProperty(obj,key,value)}returnobj}function_classCallCheck(instance,Constructor){if(!(instanceinstanceofConstructor))thrownewTypeError("Cannot call a class as a function")}function_possibleConstructorReturn(self,call){if(!self)thrownewReferenceError("this hasn't been initialised - super() hasn't been called");return!call||"object"!=typeofcall&&"function"!=typeofcall?self:call}function_inherits(subClass,superClass){if("function"!=typeofsuperClass&&null!==superClass)thrownewTypeError("Super expression must either be null or a function, not "+typeofsuperClass);subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:!1,writable:!0,configurable:!0}}),superClass&&(Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):_defaults(subClass,superClass))}Object.defineProperty(exports,"__esModule",{value:!0});var_react=require("react"),_react2=_interopRequireDefault(_react),_SilverStripeComponent=require("lib/SilverStripeComponent"),_SilverStripeComponent2=_interopRequireDefault(_SilverStripeComponent),GridFieldCell=function(_SilverStripeComponen){functionGridFieldCell(props){_classCallCheck(this,GridFieldCell);var_this=_possibleConstructorReturn(this,_SilverStripeComponen.call(this,props));return_this.handleDrillDown=_this.handleDrillDown.bind(_this),_this}return_inherits(GridFieldCell,_Sil
for(varparts=str.split("\n"),i=0;i<parts.length;i+=1)parts[i]=stripStr(parts[i]);returnstripStr(parts.join(" "))},i18n.prototype.sprintf=function(s){for(var_len=arguments.length,params=Array(_len>1?_len-1:0),_key=1;_len>_key;_key++)params[_key-1]=arguments[_key];if(0===params.length)returns;varregx=newRegExp("(.?)(%s)","g"),i=0;returns.replace(regx,function(match,subMatch1,subMatch2,offset,string){return"%"===subMatch1?match:subMatch1+params[i++]})},i18n.prototype.inject=function(s,map){varregx=newRegExp("{([A-Za-z0-9_]*)}","g");returns.replace(regx,function(match,key,offset,string){returnmap[key]?map[key]:match})},i18n.prototype.detectLocale=function(){varrawLocale,detectedLocale;if(rawLocale=jQuery("body").attr("lang"),!rawLocale)for(varmetas=document.getElementsByTagName("meta"),i=0;i<metas.length;i++)metas[i].attributes["http-equiv"]&&"content-language"==metas[i].attributes["http-equiv"].nodeValue.toLowerCase()&&(rawLocale=metas[i].attributes.content.nodeValue);rawLocale||(rawLocale=this.defaultLocale);varrawLocaleParts=rawLocale.match(/([^-|_]*)[-|_](.*)/);if(2==rawLocale.length){for(varcompareLocaleini18n.lang)if(compareLocale.substr(0,2).toLowerCase()==rawLocale.toLowerCase()){detectedLocale=compareLocale;break}}elserawLocaleParts&&(detectedLocale=rawLocaleParts[1].toLowerCase()+"_"+rawLocaleParts[2].toUpperCase());returndetectedLocale},i18n.prototype.addEvent=function(obj,evType,fn,useCapture){returnobj.addEventListener?(obj.addEventListener(evType,fn,useCapture),!0):obj.attachEvent?obj.attachEvent("on"+evType,fn):voidconsole.log("Handler could not be attached")},i18n}(),_i18n=newi18n;window.ss="undefined"!=typeofwindow.ss?window.ss:{},window.ss.i18n=window.i18n=_i18n,exports["default"]=_i18n},{}],jQuery:[function(require,module,exports){"use strict";varjQuery="undefined"!=typeofwindow.jQuery?window.jQuery:null;module.exports=jQuery},{}],"lib/Backend":[function(require,module,exports){"use strict";function_interopRequireDefault(obj){returnobj&&obj.__esModule?obj:{"default":obj}}function_defineProperty(obj,key,value){returnkeyinobj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function_classCallCheck(instance,Constructor){if(!(instanceinstanceofConstructor))thrownewTypeError("Cannot call a class as a function")}functioncheckStatus(response){varret=void0,error=void0;if(!(response.status>=200&&response.status<300))throwerror=newError(response.statusText),error.response=response,error;returnret=response}Object.defineProperty(exports,"__esModule",{value:!0});var_extends=Object.assign||function(target){for(vari=1;i<arguments.length;i++){varsource=arguments[i];for(varkeyinsource)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key])}returntarget},_isomorphicFetch=require("isomorphic-fetch"),_isomorphicFetch2=_interopRequireDefault(_isomorphicFetch),_es6Promise=require("es6-promise"),_es6Promise2=_interopRequireDefault(_es6Promise),_qs=require("qs"),_qs2=_interopRequireDefault(_qs),_merge=require("merge"),_merge2=_interopRequireDefault(_merge);_es6Promise2["default"].polyfill();varBackend=function(){functionBackend(){_classCallCheck(this,Backend),this.fetch=_isomorphicFetch2["default"]}returnBackend.prototype.createEndpointFetcher=function(endpointSpec){functionencode(contentType,data){switch(contentType){case"application/x-www-form-urlencoded":return_qs2["default"].stringify(data);case"application/json":case"application/x-json":case"application/x-javascript":case"text/javascript":case"text/x-javascript":case"text/x-json":returnJSON.stringify(data);default:thrownewError("Can't encode format: "+contentType)}}functiondecode(contentType,text){switch(contentType){case"application/x-www-form-urlencoded":return_qs2["default"].parse(text);case"application/json":case"application/x-json":case"application/x-javascript":case"text/javascript":case"text/x-javascript":case"text/x-json":returnJSON.parse(text);default:thrownewError("Can't decode format: "+contentType)}}functionaddQuerystring(u