attributes-kit
Version:
React component for MSON rendering
6 lines • 716 kB
JavaScript
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.AttributesKit=t():e.AttributesKit=t()}(this,function(){return function(e){function t(n){if(a[n])return a[n].exports;var o=a[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var a={};return t.m=e,t.c=a,t.i=function(e){return e},t.d=function(e,a,n){t.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(a,"a",a),a},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=601)}([function(e,t,a){"use strict";e.exports=a(34)},function(e,t,a){var n=a(373),o=a(396),i=o(function(e,t,a){n(e,t,a)});e.exports=i},function(e,t,a){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function o(e){return(0,r.default)(e)}Object.defineProperty(t,"__esModule",{value:!0});var i=a(160),r=n(i),s=a(165),c=n(s),u=a(467),l=n(u),p=a(465),f=n(p),m=a(162),d=n(m),h=a(468),g=n(h),y=a(166);o.Plugins=c.default,o.Style=l.default,o.StyleRoot=f.default,o.getState=d.default,o.keyframes=g.default,o.__clearStateForTests=y.__clearStateForTests,t.default=o,e.exports=t.default},function(e,t,a){"use strict";function n(e,t,a,n,i,r,s,c){if(o(t),!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[a,n,i,r,s,c],p=0;u=new Error(t.replace(/%s/g,function(){return l[p++]})),u.name="Invariant Violation"}throw u.framesToPop=1,u}}var o=function(e){};e.exports=n},function(e,t,a){"use strict";function n(e){for(var t=arguments.length-1,a="Minified React error #"+e+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+e,n=0;n<t;n++)a+="&args[]="+encodeURIComponent(arguments[n+1]);a+=" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";var o=new Error(a);throw o.name="Invariant Violation",o.framesToPop=1,o}e.exports=n},function(e,t,a){"use strict";var n=a(21),o=n;e.exports=o},function(e,t,a){"use strict";function n(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}/*
object-assign
(c) Sindre Sorhus
@license MIT
*/
var o=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},a=0;a<10;a++)t["_"+String.fromCharCode(a)]=a;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(e){n[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var a,s,c=n(e),u=1;u<arguments.length;u++){a=Object(arguments[u]);for(var l in a)i.call(a,l)&&(c[l]=a[l]);if(o){s=o(a);for(var p=0;p<s.length;p++)r.call(a,s[p])&&(c[s[p]]=a[s[p]])}}return c}},function(e,t,a){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s,c,u,l=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),p=a(0),f=n(p),m=a(2),d=n(m),h=a(1),g=n(h),y=(0,d.default)((u=c=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),l(t,[{key:"render",value:function(){return f.default.createElement("div",{style:this.style},this.props.children)}},{key:"style",get:function(){var e={height:"auto",width:"100%",display:"flex",flexDirection:"column",flexWrap:"no-wrap",justifyContent:"flex-start",alignItems:"flex-start"};return(0,g.default)(e,this.props.style)}}]),t}(f.default.Component),c.propTypes={style:f.default.PropTypes.object,children:f.default.PropTypes.oneOfType([f.default.PropTypes.object,f.default.PropTypes.array])},s=u))||s;t.default=y,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a(584);Object.keys(n).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}})});var o=a(585);Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}})});var i=a(586);Object.keys(i).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}})});var r=a(587);Object.keys(r).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}})});var s=a(588);Object.keys(s).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}})});var c=a(589);Object.keys(c).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}})});var u=a(590);Object.keys(u).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return u[e]}})});var l=a(591);Object.keys(l).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}})});var p=a(110);Object.keys(p).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return p[e]}})});var f=a(592);Object.keys(f).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return f[e]}})})},function(e,t){var a=Array.isArray;e.exports=a},function(e,t,a){"use strict";function n(e,t){return 1===e.nodeType&&e.getAttribute(d)===String(t)||8===e.nodeType&&e.nodeValue===" react-text: "+t+" "||8===e.nodeType&&e.nodeValue===" react-empty: "+t+" "}function o(e){for(var t;t=e._renderedComponent;)e=t;return e}function i(e,t){var a=o(e);a._hostNode=t,t[g]=a}function r(e){var t=e._hostNode;t&&(delete t[g],e._hostNode=null)}function s(e,t){if(!(e._flags&h.hasCachedChildNodes)){var a=e._renderedChildren,r=t.firstChild;e:for(var s in a)if(a.hasOwnProperty(s)){var c=a[s],u=o(c)._domID;if(0!==u){for(;null!==r;r=r.nextSibling)if(n(r,u)){i(c,r);continue e}p("32",u)}}e._flags|=h.hasCachedChildNodes}}function c(e){if(e[g])return e[g];for(var t=[];!e[g];){if(t.push(e),!e.parentNode)return null;e=e.parentNode}for(var a,n;e&&(n=e[g]);e=t.pop())a=n,t.length&&s(n,e);return a}function u(e){var t=c(e);return null!=t&&t._hostNode===e?t:null}function l(e){if(void 0===e._hostNode&&p("33"),e._hostNode)return e._hostNode;for(var t=[];!e._hostNode;)t.push(e),e._hostParent||p("34"),e=e._hostParent;for(;t.length;e=t.pop())s(e,e._hostNode);return e._hostNode}var p=a(4),f=a(31),m=a(170),d=(a(3),f.ID_ATTRIBUTE_NAME),h=m,g="__reactInternalInstance$"+Math.random().toString(36).slice(2),y={getClosestInstanceFromNode:c,getInstanceFromNode:u,getNodeFromInstance:l,precacheChildNodes:s,precacheNode:i,uncacheNode:r};e.exports=y},function(e,t,a){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s,c,u=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),l=a(0),p=n(l),f=a(1),m=n(f),d=(c=s=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),u(t,[{key:"getStyles",value:function(){var e={width:"100%",height:"auto",display:"flex",flexDirection:"row",flexWrap:"no-wrap",justifyContent:"flex-start",alignItems:"stretch",position:"relative"};return(0,m.default)(e,this.props.style||{})}},{key:"render",value:function(){return p.default.createElement("div",{style:this.getStyles(),onClick:this.props.onClick},this.props.children)}}]),t}(p.default.Component),s.propTypes={onClick:p.default.PropTypes.func,style:p.default.PropTypes.object,children:p.default.PropTypes.any},c);t.default=d,e.exports=t.default},function(e,t){function a(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}e.exports=a},function(e,t,a){"use strict";var n=!("undefined"==typeof window||!window.document||!window.document.createElement),o={canUseDOM:n,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:n&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:n&&!!window.screen,isInWorker:!n};e.exports=o},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.DEFAULT_FONT_FAMILY="'Source Sans Pro', -apple-system, Helvetica, sans-serif",t.MONO_FONT_FAMILY="'Source Code Pro', monospace"},function(e,t,a){function n(e){if(null==e)return!0;if(c(e)&&(s(e)||"string"==typeof e||"function"==typeof e.splice||u(e)||p(e)||r(e)))return!e.length;var t=i(e);if(t==f||t==m)return!e.size;if(l(e))return!o(e).length;for(var a in e)if(h.call(e,a))return!1;return!0}var o=a(139),i=a(84),r=a(63),s=a(9),c=a(27),u=a(43),l=a(60),p=a(64),f="[object Map]",m="[object Set]",d=Object.prototype,h=d.hasOwnProperty;e.exports=n},function(e,t,a){"use strict";var n=null;e.exports={debugTool:n}},function(e,t,a){var n=a(146),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();e.exports=i},function(e,t,a){"use strict";function n(){C.ReactReconcileTransaction&&x||l("123")}function o(){this.reinitializeTransaction(),this.dirtyComponentsLength=null,this.callbackQueue=f.getPooled(),this.reconcileTransaction=C.ReactReconcileTransaction.getPooled(!0)}function i(e,t,a,o,i,r){return n(),x.batchedUpdates(e,t,a,o,i,r)}function r(e,t){return e._mountOrder-t._mountOrder}function s(e){var t=e.dirtyComponentsLength;t!==y.length&&l("124",t,y.length),y.sort(r),v++;for(var a=0;a<t;a++){var n=y[a],o=n._pendingCallbacks;n._pendingCallbacks=null;var i;if(d.logTopLevelRenders){var s=n;n._currentElement.type.isReactTopLevelWrapper&&(s=n._renderedComponent),i="React update: "+s.getName(),console.time(i)}if(h.performUpdateIfNecessary(n,e.reconcileTransaction,v),i&&console.timeEnd(i),o)for(var c=0;c<o.length;c++)e.callbackQueue.enqueue(o[c],n.getPublicInstance())}}function c(e){if(n(),!x.isBatchingUpdates)return void x.batchedUpdates(c,e);y.push(e),null==e._updateBatchNumber&&(e._updateBatchNumber=v+1)}function u(e,t){x.isBatchingUpdates||l("125"),b.enqueue(e,t),w=!0}var l=a(4),p=a(6),f=a(168),m=a(28),d=a(173),h=a(32),g=a(69),y=(a(3),[]),v=0,b=f.getPooled(),w=!1,x=null,j={initialize:function(){this.dirtyComponentsLength=y.length},close:function(){this.dirtyComponentsLength!==y.length?(y.splice(0,this.dirtyComponentsLength),E()):y.length=0}},_={initialize:function(){this.callbackQueue.reset()},close:function(){this.callbackQueue.notifyAll()}},k=[j,_];p(o.prototype,g,{getTransactionWrappers:function(){return k},destructor:function(){this.dirtyComponentsLength=null,f.release(this.callbackQueue),this.callbackQueue=null,C.ReactReconcileTransaction.release(this.reconcileTransaction),this.reconcileTransaction=null},perform:function(e,t,a){return g.perform.call(this,this.reconcileTransaction.perform,this.reconcileTransaction,e,t,a)}}),m.addPoolingTo(o);var E=function(){for(;y.length||w;){if(y.length){var e=o.getPooled();e.perform(s,null,e),o.release(e)}if(w){w=!1;var t=b;b=f.getPooled(),t.notifyAll(),f.release(t)}}},z={injectReconcileTransaction:function(e){e||l("126"),C.ReactReconcileTransaction=e},injectBatchingStrategy:function(e){e||l("127"),"function"!=typeof e.batchedUpdates&&l("128"),"boolean"!=typeof e.isBatchingUpdates&&l("129"),x=e}},C={ReactReconcileTransaction:null,batchedUpdates:i,enqueueUpdate:c,flushBatchedUpdates:E,injection:z,asap:u};e.exports=C},function(e,t,a){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.Value=void 0;var s,c,u=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),l=a(45),p=n(l),f=a(0),m=n(f),d=a(8),h=a(580),g=a(74),y=n(g),v=(c=s=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),u(t,[{key:"render",value:function(){return this.props.element?(0,d.isMember)(this.props.element)?(0,d.isStructured)(this.props.element)?m.default.createElement(y.default,{element:this.props.element.content.value,expandableCollapsible:this.props.expandableCollapsible,parentElement:this.props.parentElement,style:this.props.style,isSample:this.props.isSample}):m.default.createElement(h.PrimitiveValue,{value:this.props.element.content.value.content,style:this.props.style}):(0,d.isStructured)(this.props.element)?m.default.createElement(y.default,{element:this.props.element,expandableCollapsible:this.props.expandableCollapsible,parentElement:this.props.parentElement,style:this.props.style,isSample:this.props.isSample}):(0,d.isObject)(this.props.element)||(0,d.isArray)(this.props.element)||(0,d.isSelect)(this.props.element)||(0,d.isEnum)(this.props.element)?m.default.createElement(y.default,{element:this.props.element,expandableCollapsible:this.props.expandableCollapsible,parentElement:this.props.parentElement,style:this.props.style,isSample:this.props.isSample}):(0,p.default)(this.props.element.content)?null:m.default.createElement(h.PrimitiveValue,{value:this.props.element.content,style:this.props.style}):null}}]),t}(m.default.Component),s.propTypes={element:m.default.PropTypes.object,parentElement:m.default.PropTypes.object,style:m.default.PropTypes.object,expandableCollapsible:m.default.PropTypes.bool,isSample:m.default.PropTypes.bool},c);t.Value=v},function(e,t,a){"use strict";function n(e,t,a,n){this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=a;var o=this.constructor.Interface;for(var i in o)if(o.hasOwnProperty(i)){var s=o[i];s?this[i]=s(a):"target"===i?this.target=n:this[i]=a[i]}var c=null!=a.defaultPrevented?a.defaultPrevented:!1===a.returnValue;return this.isDefaultPrevented=c?r.thatReturnsTrue:r.thatReturnsFalse,this.isPropagationStopped=r.thatReturnsFalse,this}var o=a(6),i=a(28),r=a(21),s=(a(5),["dispatchConfig","_targetInst","nativeEvent","isDefaultPrevented","isPropagationStopped","_dispatchListeners","_dispatchInstances"]),c={type:null,target:null,currentTarget:r.thatReturnsNull,eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};o(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=r.thatReturnsTrue)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=r.thatReturnsTrue)},persist:function(){this.isPersistent=r.thatReturnsTrue},isPersistent:r.thatReturnsFalse,destructor:function(){var e=this.constructor.Interface;for(var t in e)this[t]=null;for(var a=0;a<s.length;a++)this[s[a]]=null}}),n.Interface=c,n.augmentClass=function(e,t){var a=this,n=function(){};n.prototype=a.prototype;var r=new n;o(r,e.prototype),e.prototype=r,e.prototype.constructor=e,e.Interface=o({},a.Interface,t),e.augmentClass=a.augmentClass,i.addPoolingTo(e,i.fourArgumentPooler)},i.addPoolingTo(n,i.fourArgumentPooler),e.exports=n},function(e,t,a){"use strict";function n(e){return function(){return e}}var o=function(){};o.thatReturns=n,o.thatReturnsFalse=n(!1),o.thatReturnsTrue=n(!0),o.thatReturnsNull=n(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},e.exports=o},function(e,t,a){"use strict";var n={current:null};e.exports=n},function(e,t){function a(e){return null!=e&&"object"==typeof e}e.exports=a},function(e,t,a){"use strict";var n=a(114),o=n;e.exports=o},function(e,t,a){function n(e){return null==e?void 0===e?c:s:u&&u in Object(e)?i(e):r(e)}var o=a(38),i=a(403),r=a(429),s="[object Null]",c="[object Undefined]",u=o?o.toStringTag:void 0;e.exports=n},function(e,t,a){function n(e,t){var a=i(e,t);return o(a)?a:void 0}var o=a(367),i=a(404);e.exports=n},function(e,t,a){function n(e){return null!=e&&i(e.length)&&!o(e)}var o=a(87),i=a(88);e.exports=n},function(e,t,a){"use strict";var n=a(4),o=(a(3),function(e){var t=this;if(t.instancePool.length){var a=t.instancePool.pop();return t.call(a,e),a}return new t(e)}),i=function(e,t){var a=this;if(a.instancePool.length){var n=a.instancePool.pop();return a.call(n,e,t),n}return new a(e,t)},r=function(e,t,a){var n=this;if(n.instancePool.length){var o=n.instancePool.pop();return n.call(o,e,t,a),o}return new n(e,t,a)},s=function(e,t,a,n){var o=this;if(o.instancePool.length){var i=o.instancePool.pop();return o.call(i,e,t,a,n),i}return new o(e,t,a,n)},c=function(e){var t=this;e instanceof t||n("25"),e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)},u=o,l=function(e,t){var a=e;return a.instancePool=[],a.getPooled=t||u,a.poolSize||(a.poolSize=10),a.release=c,a},p={addPoolingTo:l,oneArgumentPooler:o,twoArgumentPooler:i,threeArgumentPooler:r,fourArgumentPooler:s};e.exports=p},function(e,t,a){function n(e){return r(e)?o(e):i(e)}var o=a(130),i=a(139),r=a(27);e.exports=n},function(e,t,a){"use strict";function n(e){if(d){var t=e.node,a=e.children;if(a.length)for(var n=0;n<a.length;n++)h(t,a[n],null);else null!=e.html?p(t,e.html):null!=e.text&&m(t,e.text)}}function o(e,t){e.parentNode.replaceChild(t.node,e),n(t)}function i(e,t){d?e.children.push(t):e.node.appendChild(t.node)}function r(e,t){d?e.html=t:p(e.node,t)}function s(e,t){d?e.text=t:m(e.node,t)}function c(){return this.node.nodeName}function u(e){return{node:e,children:[],html:null,text:null,toString:c}}var l=a(94),p=a(71),f=a(102),m=a(185),d="undefined"!=typeof document&&"number"==typeof document.documentMode||"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent&&/\bEdge\/\d/.test(navigator.userAgent),h=f(function(e,t,a){11===t.node.nodeType||1===t.node.nodeType&&"object"===t.node.nodeName.toLowerCase()&&(null==t.node.namespaceURI||t.node.namespaceURI===l.html)?(n(t),e.insertBefore(t.node,a)):(e.insertBefore(t.node,a),n(t))});u.insertTreeBefore=h,u.replaceChildWithTree=o,u.queueChild=i,u.queueHTML=r,u.queueText=s,e.exports=u},function(e,t,a){"use strict";function n(e,t){return(e&t)===t}var o=a(4),i=(a(3),{MUST_USE_PROPERTY:1,HAS_BOOLEAN_VALUE:4,HAS_NUMERIC_VALUE:8,HAS_POSITIVE_NUMERIC_VALUE:24,HAS_OVERLOADED_BOOLEAN_VALUE:32,injectDOMPropertyConfig:function(e){var t=i,a=e.Properties||{},r=e.DOMAttributeNamespaces||{},c=e.DOMAttributeNames||{},u=e.DOMPropertyNames||{},l=e.DOMMutationMethods||{};e.isCustomAttribute&&s._isCustomAttributeFunctions.push(e.isCustomAttribute);for(var p in a){s.properties.hasOwnProperty(p)&&o("48",p);var f=p.toLowerCase(),m=a[p],d={attributeName:f,attributeNamespace:null,propertyName:p,mutationMethod:null,mustUseProperty:n(m,t.MUST_USE_PROPERTY),hasBooleanValue:n(m,t.HAS_BOOLEAN_VALUE),hasNumericValue:n(m,t.HAS_NUMERIC_VALUE),hasPositiveNumericValue:n(m,t.HAS_POSITIVE_NUMERIC_VALUE),hasOverloadedBooleanValue:n(m,t.HAS_OVERLOADED_BOOLEAN_VALUE)};if(d.hasBooleanValue+d.hasNumericValue+d.hasOverloadedBooleanValue<=1||o("50",p),c.hasOwnProperty(p)){var h=c[p];d.attributeName=h}r.hasOwnProperty(p)&&(d.attributeNamespace=r[p]),u.hasOwnProperty(p)&&(d.propertyName=u[p]),l.hasOwnProperty(p)&&(d.mutationMethod=l[p]),s.properties[p]=d}}}),r=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",s={ID_ATTRIBUTE_NAME:"data-reactid",ROOT_ATTRIBUTE_NAME:"data-reactroot",ATTRIBUTE_NAME_START_CHAR:r,ATTRIBUTE_NAME_CHAR:r+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",properties:{},getPossibleStandardName:null,_isCustomAttributeFunctions:[],isCustomAttribute:function(e){for(var t=0;t<s._isCustomAttributeFunctions.length;t++){if((0,s._isCustomAttributeFunctions[t])(e))return!0}return!1},injection:i};e.exports=s},function(e,t,a){"use strict";function n(){o.attachRefs(this,this._currentElement)}var o=a(514),i=(a(16),a(5),{mountComponent:function(e,t,a,o,i,r){var s=e.mountComponent(t,a,o,i,r);return e._currentElement&&null!=e._currentElement.ref&&t.getReactMountReady().enqueue(n,e),s},getHostNode:function(e){return e.getHostNode()},unmountComponent:function(e,t){o.detachRefs(e,e._currentElement),e.unmountComponent(t)},receiveComponent:function(e,t,a,i){var r=e._currentElement;if(t!==r||i!==e._context){var s=o.shouldUpdateRefs(r,t);s&&o.detachRefs(e,r),e.receiveComponent(t,a,i),s&&e._currentElement&&null!=e._currentElement.ref&&a.getReactMountReady().enqueue(n,e)}},performUpdateIfNecessary:function(e,t,a){e._updateBatchNumber===a&&e.performUpdateIfNecessary(t)}});e.exports=i},function(e,t,a){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s,c,u,l=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),p=a(0),f=n(p),m=a(2),d=n(m),h=a(1),g=n(h),y=a(7),v=n(y),b=a(11),w=n(b),x=a(14),j=(0,d.default)((u=c=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),l(t,[{key:"renderStyles",value:function(){var e=this.context.theme.SAMPLE_TOGGLE_TITLE_COLOR,t={root:{cursor:"pointer"},iconColumn:{width:"12px",minWidth:"12px",maxWidth:"12px"},icon:{width:"12",height:"12px",backgroundRepeat:"no-repeat",backgroundPosition:"left center"},title:{userSelect:"none",lineHeight:"12px",letterSpacing:"0.85px",fontFamily:x.DEFAULT_FONT_FAMILY,fontSize:"12px",color:e,textTransform:"uppercase",paddingLeft:"6px"}};return this.props.isExpanded?(t.icon.backgroundImage="url("+a(618)+")",t.icon.backgroundSize="12px 7px"):(t.icon.backgroundImage="url("+a(617)+")",t.icon.backgroundSize="7px 12px"),(0,g.default)(t,this.props.style||{})}},{key:"render",value:function(){return f.default.createElement(w.default,{style:this.renderStyles().root,onClick:this.props.onClick},f.default.createElement(v.default,{style:this.renderStyles().iconColumn},f.default.createElement("div",{style:this.renderStyles().icon})),f.default.createElement(v.default,null,f.default.createElement("div",{style:this.renderStyles().title},this.props.sampleTitle||"Sample")))}}]),t}(f.default.Component),c.propTypes={onClick:f.default.PropTypes.func,sampleName:f.default.PropTypes.string,isExpanded:f.default.PropTypes.bool,style:f.default.PropTypes.object,sampleTitle:f.default.PropTypes.string},c.contextTypes={theme:f.default.PropTypes.object},s=u))||s;t.default=j,e.exports=t.default},function(e,t,a){"use strict";var n=a(6),o=a(604),i=a(112),r=a(609),s=a(605),c=a(606),u=a(35),l=a(607),p=a(610),f=a(611),m=(a(24),u.createElement),d=u.createFactory,h=u.cloneElement,g=n,y={Children:{map:o.map,forEach:o.forEach,count:o.count,toArray:o.toArray,only:f},Component:i,PureComponent:r,createElement:m,cloneElement:h,isValidElement:u.isValidElement,PropTypes:l,createClass:s.createClass,createFactory:d,createMixin:function(e){return e},DOM:c,version:p,__spread:g};e.exports=y},function(e,t,a){"use strict";function n(e){return void 0!==e.ref}function o(e){return void 0!==e.key}var i=a(6),r=a(22),s=(a(24),a(201),Object.prototype.hasOwnProperty),c=a(199),u={key:!0,ref:!0,__self:!0,__source:!0},l=function(e,t,a,n,o,i,r){var s={$$typeof:c,type:e,key:t,ref:a,props:r,_owner:i};return s};l.createElement=function(e,t,a){var i,c={},p=null,f=null;if(null!=t){n(t)&&(f=t.ref),o(t)&&(p=""+t.key),void 0===t.__self?null:t.__self,void 0===t.__source?null:t.__source;for(i in t)s.call(t,i)&&!u.hasOwnProperty(i)&&(c[i]=t[i])}var m=arguments.length-2;if(1===m)c.children=a;else if(m>1){for(var d=Array(m),h=0;h<m;h++)d[h]=arguments[h+2];c.children=d}if(e&&e.defaultProps){var g=e.defaultProps;for(i in g)void 0===c[i]&&(c[i]=g[i])}return l(e,p,f,0,0,r.current,c)},l.createFactory=function(e){var t=l.createElement.bind(null,e);return t.type=e,t},l.cloneAndReplaceKey=function(e,t){return l(e.type,t,e.ref,e._self,e._source,e._owner,e.props)},l.cloneElement=function(e,t,a){var c,p=i({},e.props),f=e.key,m=e.ref,d=(e._self,e._source,e._owner);if(null!=t){n(t)&&(m=t.ref,d=r.current),o(t)&&(f=""+t.key);var h;e.type&&e.type.defaultProps&&(h=e.type.defaultProps);for(c in t)s.call(t,c)&&!u.hasOwnProperty(c)&&(void 0===t[c]&&void 0!==h?p[c]=h[c]:p[c]=t[c])}var g=arguments.length-2;if(1===g)p.children=a;else if(g>1){for(var y=Array(g),v=0;v<g;v++)y[v]=arguments[v+2];p.children=y}return l(e.type,f,m,0,0,d,p)},l.isValidElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===c},e.exports=l},function(e,t,a){"use strict";function n(e){for(var t=arguments.length-1,a="Minified React error #"+e+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+e,n=0;n<t;n++)a+="&args[]="+encodeURIComponent(arguments[n+1]);a+=" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";var o=new Error(a);throw o.name="Invariant Violation",o.framesToPop=1,o}e.exports=n},function(e,t,a){"use strict";function n(e,t,a,n,i,r,s,c){if(o(t),!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[a,n,i,r,s,c],p=0;u=new Error(t.replace(/%s/g,function(){return l[p++]})),u.name="Invariant Violation"}throw u.framesToPop=1,u}}var o=function(e){};e.exports=n},function(e,t,a){var n=a(17),o=n.Symbol;e.exports=o},function(e,t,a){var n=a(361),o=a(397),i=o(n);e.exports=i},function(e,t,a){function n(e,t,a,n){var r=!a;a||(a={});for(var s=-1,c=t.length;++s<c;){var u=t[s],l=n?n(a[u],e[u],u,a,e):void 0;void 0===l&&(l=e[u]),r?i(a,u,l):o(a,u,l)}return a}var o=a(134),i=a(80);e.exports=n},function(e,t){function a(e,t){return e===t||e!==e&&t!==t}e.exports=a},function(e,t){function a(e){return e}e.exports=a},function(e,t,a){(function(e){var n=a(17),o=a(456),i="object"==typeof t&&t&&!t.nodeType&&t,r=i&&"object"==typeof e&&e&&!e.nodeType&&e,s=r&&r.exports===i,c=s?n.Buffer:void 0,u=c?c.isBuffer:void 0,l=u||o;e.exports=l}).call(t,a(116)(e))},function(e,t,a){function n(e){return"symbol"==typeof e||i(e)&&o(e)==r}var o=a(25),i=a(23),r="[object Symbol]";e.exports=n},function(e,t){function a(e){return void 0===e}e.exports=a},function(e,t,a){"use strict";function n(e){return"button"===e||"input"===e||"select"===e||"textarea"===e}function o(e,t,a){switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":return!(!a.disabled||!n(t));default:return!1}}var i=a(4),r=a(95),s=a(96),c=a(100),u=a(179),l=a(180),p=(a(3),{}),f=null,m=function(e,t){e&&(s.executeDispatchesInOrder(e,t),e.isPersistent()||e.constructor.release(e))},d=function(e){return m(e,!0)},h=function(e){return m(e,!1)},g=function(e){return"."+e._rootNodeID},y={injection:{injectEventPluginOrder:r.injectEventPluginOrder,injectEventPluginsByName:r.injectEventPluginsByName},putListener:function(e,t,a){"function"!=typeof a&&i("94",t,typeof a);var n=g(e);(p[t]||(p[t]={}))[n]=a;var o=r.registrationNameModules[t];o&&o.didPutListener&&o.didPutListener(e,t,a)},getListener:function(e,t){var a=p[t];if(o(t,e._currentElement.type,e._currentElement.props))return null;var n=g(e);return a&&a[n]},deleteListener:function(e,t){var a=r.registrationNameModules[t];a&&a.willDeleteListener&&a.willDeleteListener(e,t);var n=p[t];if(n){delete n[g(e)]}},deleteAllListeners:function(e){var t=g(e);for(var a in p)if(p.hasOwnProperty(a)&&p[a][t]){var n=r.registrationNameModules[a];n&&n.willDeleteListener&&n.willDeleteListener(e,a),delete p[a][t]}},extractEvents:function(e,t,a,n){for(var o,i=r.plugins,s=0;s<i.length;s++){var c=i[s];if(c){var l=c.extractEvents(e,t,a,n);l&&(o=u(o,l))}}return o},enqueueEvents:function(e){e&&(f=u(f,e))},processEventQueue:function(e){var t=f;f=null,e?l(t,d):l(t,h),f&&i("95"),c.rethrowCaughtError()},__purge:function(){p={}},__getListenerBank:function(){return p}};e.exports=y},function(e,t,a){"use strict";function n(e,t,a){var n=t.dispatchConfig.phasedRegistrationNames[a];return y(e,n)}function o(e,t,a){var o=n(e,a,t);o&&(a._dispatchListeners=h(a._dispatchListeners,o),a._dispatchInstances=h(a._dispatchInstances,e))}function i(e){e&&e.dispatchConfig.phasedRegistrationNames&&d.traverseTwoPhase(e._targetInst,o,e)}function r(e){if(e&&e.dispatchConfig.phasedRegistrationNames){var t=e._targetInst,a=t?d.getParentInstance(t):null;d.traverseTwoPhase(a,o,e)}}function s(e,t,a){if(a&&a.dispatchConfig.registrationName){var n=a.dispatchConfig.registrationName,o=y(e,n);o&&(a._dispatchListeners=h(a._dispatchListeners,o),a._dispatchInstances=h(a._dispatchInstances,e))}}function c(e){e&&e.dispatchConfig.registrationName&&s(e._targetInst,null,e)}function u(e){g(e,i)}function l(e){g(e,r)}function p(e,t,a,n){d.traverseEnterLeave(a,n,s,e,t)}function f(e){g(e,c)}var m=a(46),d=a(96),h=a(179),g=a(180),y=(a(5),m.getListener),v={accumulateTwoPhaseDispatches:u,accumulateTwoPhaseDispatchesSkipTarget:l,accumulateDirectDispatches:f,accumulateEnterLeaveDispatches:p};e.exports=v},function(e,t,a){"use strict";var n={remove:function(e){e._reactInternalInstance=void 0},get:function(e){return e._reactInternalInstance},has:function(e){return void 0!==e._reactInternalInstance},set:function(e,t){e._reactInternalInstance=t}};e.exports=n},function(e,t,a){"use strict";function n(e,t,a,n){return o.call(this,e,t,a,n)}var o=a(20),i=a(105),r={view:function(e){if(e.view)return e.view;var t=i(e);if(t.window===t)return t;var a=t.ownerDocument;return a?a.defaultView||a.parentWindow:window},detail:function(e){return e.detail||0}};o.augmentClass(n,r),e.exports=n},function(e,t,a){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s,c,u,l=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),p=a(12),f=n(p),m=a(448),d=n(m),h=a(462),g=n(h),y=a(1),v=n(y),b=a(2),w=n(b),x=a(0),j=n(x),_=a(14);g.default.setOptions({sanitize:!0});var k=(0,w.default)((u=c=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),l(t,[{key:"render",value:function(){var e=this.context.theme.DESCRIPTION_COLOR,a=t.getDescription(this.props.element);if(!a)return!1;var n={__html:(0,g.default)(a)};return j.default.createElement("div",null,j.default.createElement(b.Style,{scopeSelector:".attributesKit",rules:{p:{marginBottom:"4px",fontFamily:_.DEFAULT_FONT_FAMILY,fontSize:"14px",color:e,lineHeight:"21px",fontWeight:"regular"},"p:last-child":{marginBottom:"0px"},ul:{marginLeft:"20px"},a:{color:"#747E8E",textDecoration:"none",borderBottom:"1px solid #DCE0E8"},"a:hover":{borderBottom:"none"}}}),j.default.createElement("div",{style:this.style.base,dangerouslySetInnerHTML:n}))}},{key:"style",get:function(){var e=this.context.theme.DESCRIPTION_COLOR,t={base:{fontFamily:_.DEFAULT_FONT_FAMILY,fontSize:"13px",color:e,lineHeight:"150%",fontWeight:"regular"}};return(0,v.default)(t,this.props.style||{})}}],[{key:"getDescription",value:function(e){if(e.meta&&e.meta.description){if((0,d.default)(e.meta.description))return e.meta.description;if((0,f.default)(e.meta.description))return e.meta.description.content}return null}}]),t}(j.default.Component),c.propTypes={element:j.default.PropTypes.object,style:j.default.PropTypes.object},c.contextTypes={theme:j.default.PropTypes.object},s=u))||s;t.default=k,e.exports=t.default},function(e,t,a){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s,c,u=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),l=a(0),p=n(l),f=a(2),m=n(f),d=a(1),h=n(d),g=a(8),y=a(14),v=(c=s=function(e){function t(){var e,a,n,r;o(this,t);for(var s=arguments.length,c=Array(s),u=0;u<s;u++)c[u]=arguments[u];return a=n=i(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(c))),n.handleClick=function(e){var t=(0,g.getReference)(n.props.element),a=(0,g.findElement)(t,n.context.dereferencedDataStructures);return n.context.onElementLinkClick?n.context.onElementLinkClick(a.meta.id,a,e):null},r=a,i(n,r)}return r(t,e),u(t,[{key:"render",value:function(){if(this.props.reference)return p.default.createElement("div",{style:this.style.reference,onClick:this.handleClick},this.props.reference);if(this.props.type)return p.default.createElement("div",{style:this.style.type},this.props.type);if(this.props.element){var e=(0,g.getType)(this.props.element);if(e)return p.default.createElement("div",{style:this.style.type},e)}return null}},{key:"style",get:function(){var e=this.context.theme.TYPE_COLOR,t={type:{width:"100%",fontFamily:y.MONO_FONT_FAMILY,fontWeight:"regular",fontSize:"13px",color:e,lineHeight:"13px"},reference:{width:"100%",fontFamily:y.MONO_FONT_FAMILY,fontWeight:"regular",fontSize:"13px",color:e,textDecoration:"underline",cursor:"pointer",":hover":{textDecoration:"none"}}};return(0,h.default)(t,this.props.style||{})}}]),t}(p.default.Component),s.propTypes={type:p.default.PropTypes.string,reference:p.default.PropTypes.bool,element:p.default.PropTypes.object,onClick:p.default.PropTypes.func,style:p.default.PropTypes.object},s.contextTypes={theme:p.default.PropTypes.object,onElementLinkClick:p.default.PropTypes.func,dereferencedDataStructures:p.default.PropTypes.array},c);t.default=(0,m.default)(v),e.exports=t.default},function(e,t,a){"use strict";function n(e){this.name="MissingCacheObjectException",this.message=(0,r.default)(o,JSON.stringify(e,null,2))}Object.defineProperty(t,"__esModule",{value:!0}),t.MissingCacheObjectException=void 0;var o=function(e,t){return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n The element is missing the ‘cache’ object. Please check that the the Refract tree has been preprocessed. Element is ‘","’.\n "],["\n The element is missing the ‘cache’ object. Please check that the the Refract \\\n tree has been preprocessed. Element is ‘","’.\n "]),i=a(214),r=function(e){return e&&e.__esModule?e:{default:e}}(i);n.prototype=new Error,t.MissingCacheObjectException=n},function(e,t){var a;a=function(){return this}();try{a=a||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(a=window)}e.exports=a},function(e,t,a){function n(e){var t=-1,a=null==e?0:e.length;for(this.clear();++t<a;){var n=e[t];this.set(n[0],n[1])}}var o=a(415),i=a(416),r=a(417),s=a(418),c=a(419);n.prototype.clear=o,n.prototype.delete=i,n.prototype.get=r,n.prototype.has=s,n.prototype.set=c,e.exports=n},function(e,t,a){function n(e){var t=this.__data__=new o(e);this.size=t.size}var o=a(54),i=a(435),r=a(436),s=a(437),c=a(438),u=a(439);n.prototype.clear=i,n.prototype.delete=r,n.prototype.get=s,n.prototype.has=c,n.prototype.set=u,e.exports=n},function(e,t,a){function n(e,t){for(var a=e.length;a--;)if(o(e[a][0],t))return a;return-1}var o=a(41);e.exports=n},function(e,t,a){function n(e){return"function"==typeof e?e:null==e?r:"object"==typeof e?s(e)?i(e[0],e[1]):o(e):c(e)}var o=a(371),i=a(372),r=a(42),s=a(9),c=a(452);e.exports=n},function(e,t,a){function n(e,t){var a=e.__data__;return o(t)?a["string"==typeof t?"string":"hash"]:a.map}var o=a(413);e.exports=n},function(e,t,a){function n(e,t,a){if(!s(a))return!1;var n=typeof t;return!!("number"==n?i(a)&&r(t,a.length):"string"==n&&t in a)&&o(a[t],e)}var o=a(41),i=a(27),r=a(85),s=a(12);e.exports=n},function(e,t){function a(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}var n=Object.prototype;e.exports=a},function(e,t,a){var n=a(26),o=n(Object,"create");e.exports=o},function(e,t,a){function n(e){if("string"==typeof e||o(e))return e;var t=e+"";return"0"==t&&1/e==-i?"-0":t}var o=a(44),i=1/0;e.exports=n},function(e,t,a){var n=a(364),o=a(23),i=Object.prototype,r=i.hasOwnProperty,s=i.propertyIsEnumerable,c=n(function(){return arguments}())?n:function(e){return o(e)&&r.call(e,"callee")&&!s.call(e,"callee")};e.exports=c},function(e,t,a){var n=a(368),o=a(384),i=a(428),r=i&&i.isTypedArray,s=r?o(r):n;e.exports=s},function(e,t,a){function n(e){return r(e)?o(e,!0):i(e)}var o=a(130),i=a(369),r=a(27);e.exports=n},function(e,t,a){function n(e,t){return(s(e)?o:r)(e,i(t,3))}var o=a(78),i=a(57),r=a(370),s=a(9);e.exports=n},function(e,t,a){"use strict";function n(e){return Object.prototype.hasOwnProperty.call(e,h)||(e[h]=m++,p[e[h]]={}),p[e[h]]}var o,i=a(6),r=a(95),s=a(506),c=a(178),u=a(539),l=a(106),p={},f=!1,m=0,d={topAbort:"abort",topAnimationEnd:u("animationend")||"animationend",topAnimationIteration:u("animationiteration")||"animationiteration",topAnimationStart:u("animationstart")||"animationstart",topBlur:"blur",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topChange:"change",topClick:"click",topCompositionEnd:"compositionend",topCompositionStart:"compositionstart",topCompositionUpdate:"compositionupdate",topContextMenu:"contextmenu",topCopy:"copy",topCut:"cut",topDoubleClick:"dblclick",topDrag:"drag",topDragEnd:"dragend",topDragEnter:"dragenter",topDragExit:"dragexit",topDragLeave:"dragleave",topDragOver:"dragover",topDragStart:"dragstart",topDrop:"drop",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topFocus:"focus",topInput:"input",topKeyDown:"keydown",topKeyPress:"keypress",topKeyUp:"keyup",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topMouseDown:"mousedown",topMouseMove:"mousemove",topMouseOut:"mouseout",topMouseOver:"mouseover",topMouseUp:"mouseup",topPaste:"paste",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topScroll:"scroll",topSeeked:"seeked",topSeeking:"seeking",topSelectionChange:"selectionchange",topStalled:"stalled",topSuspend:"suspend",topTextInput:"textInput",topTimeUpdate:"timeupdate",topTouchCancel:"touchcancel",topTouchEnd:"touchend",topTouchMove:"touchmove",topTouchStart:"touchstart",topTransitionEnd:u("transitionend")||"transitionend",topVolumeChange:"volumechange",topWaiting:"waiting",topWheel:"wheel"},h="_reactListenersID"+String(Math.random()).slice(2),g=i({},s,{ReactEventListener:null,injection:{injectReactEventListener:function(e){e.setHandleTopLevel(g.handleTopLevel),g.ReactEventListener=e}},setEnabled:function(e){g.ReactEventListener&&g.ReactEventListener.setEnabled(e)},isEnabled:function(){return!(!g.ReactEventListener||!g.ReactEventListener.isEnabled())},listenTo:function(e,t){for(var a=t,o=n(a),i=r.registrationNameDependencies[e],s=0;s<i.length;s++){var c=i[s];o.hasOwnProperty(c)&&o[c]||("topWheel"===c?l("wheel")?g.ReactEventListener.trapBubbledEvent("topWheel","wheel",a):l("mousewheel")?g.ReactEventListener.trapBubbledEvent("topWheel","mousewheel",a):g.ReactEventListener.trapBubbledEvent("topWheel","DOMMouseScroll",a):"topScroll"===c?l("scroll",!0)?g.ReactEventListener.trapCapturedEvent("topScroll","scroll",a):g.ReactEventListener.trapBubbledEvent("topScroll","scroll",g.ReactEventListener.WINDOW_HANDLE):"topFocus"===c||"topBlur"===c?(l("focus",!0)?(g.ReactEventListener.trapCapturedEvent("topFocus","focus",a),g.ReactEventListener.trapCapturedEvent("topBlur","blur",a)):l("focusin")&&(g.ReactEventListener.trapBubbledEvent("topFocus","focusin",a),g.ReactEventListener.trapBubbledEvent("topBlur","focusout",a)),o.topBlur=!0,o.topFocus=!0):d.hasOwnProperty(c)&&g.ReactEventListener.trapBubbledEvent(c,d[c],a),o[c]=!0)}},trapBubbledEvent:function(e,t,a){return g.ReactEventListener.trapBubbledEvent(e,t,a)},trapCapturedEvent:function(e,t,a){return g.ReactEventListener.trapCapturedEvent(e,t,a)},supportsEventPageXY:function(){if(!document.createEvent)return!1;var e=document.createEvent("MouseEvent");return null!=e&&"pageX"in e},ensureScrollValueMonitoring:function(){if(void 0===o&&(o=g.supportsEventPageXY()),!o&&!f){var e=c.refreshScrollValues;g.ReactEventListener.monitorScrollValue(e),f=!0}}});e.exports=g},function(e,t,a){"use strict";function n(e,t,a,n){return o.call(this,e,t,a,n)}var o=a(49),i=a(178),r=a(104),s={screenX:null,screenY:null,clientX:null,clientY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:r,button:function(e){var t=e.button;return"which"in e?t:2===t?2:4===t?1:0},buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},pageX:function(e){return"pageX"in e?e.pageX:e.clientX+i.currentScrollLeft},pageY:function(e){return"pageY"in e?e.pageY:e.clientY+i.currentScrollTop}};o.augmentClass(n,s),e.exports=n},function(e,t,a){"use strict";var n=a(4),o=(a(3),{}),i={reinitializeTransaction:function(){this.transactionWrappers=this.getTransactionWrappers(),this.wrapperInitData?this.wrapperInitData.length=0:this.wrapperInitData=[],this._isInTransaction=!1},_isInTransaction:!1,getTransactionWrappers:null,isInTransaction:function(){return!!this._isInTransaction},perform:function(e,t,a,o,i,r,s,c){this.isInTransaction()&&n("27");var u,l;try{this._isInTransaction=!0,u=!0,this.initializeAll(0),l=e.call(t,a,o,i,r,s,c),u=!1}finally{try{if(u)try{this.closeAll(0)}catch(e){}else this.closeAll(0)}finally{this._isInTransaction=!1}}return l},initializeAll:function(e){for(var t=this.transactionWrappers,a=e;a<t.length;a++){var n=t[a];try{this.wrapperInitData[a]=o,this.wrapperInitData[a]=n.initialize?n.initialize.call(this):null}finally{if(this.wrapperInitData[a]===o)try{this.initializeAll(a+1)}catch(e){}}}},closeAll:function(e){this.isInTransaction()||n("28");for(var t=this.transactionWrappers,a=e;a<t.length;a++){var i,r=t[a],s=this.wrapperInitData[a];try{i=!0,s!==o&&r.close&&r.close.call(this,s),i=!1}finally{if(i)try{this.closeAll(a+1)}catch(e){}}}this.wrapperInitData.length=0}};e.exports=i},function(e,t,a){"use strict";function n(e){var t=""+e,a=i.exec(t);if(!a)return t;var n,o="",r=0,s=0;for(r=a.index;r<t.length;r++){switch(t.charCodeAt(r)){case 34:n=""";break;case 38:n="&";break;case 39:n="'";break;case 60:n="<";break;case 62:n=">";break;default:continue}s!==r&&(o+=t.substring(s,r)),s=r+1,o+=n}return s!==r?o+t.substring(s,r):o}function o(e){return"boolean"==typeof e||"number"==typeof e?""+e:n(e)}var i=/["'&<>]/;e.exports=o},function(e,t,a){"use strict";var n,o=a(13),i=a(94),r=/^[ \r\n\t\f]/,s=/<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/,c=a(102),u=c(function(e,t){if(e.namespaceURI!==i.svg||"innerHTML"in e)e.innerHTML=t;else{n=n||document.createElement("div"),n.innerHTML="<svg>"+t+"</svg>";for(var a=n.firstChild;a.firstChild;)e.appendChild(a.firstChild)}});if(o.canUseDOM){var l=document.createElement("div");l.innerHTML=" ",""===l.innerHTML&&(u=function(e,t){if(e.parentNode&&e.parentNode.replaceChild(e,e),r.test(t)||"<"===t[0]&&s.test(t)){e.innerHTML=String.fromCharCode(65279)+t;var a=e.firstChild;1===a.data.length?e.removeChild(a):a.deleteData(0,1)}else e.innerHTML=t}),l=null}e.exports=u},function(e,t,a){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s,c,u,l=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),p=a(0),f=n(p),m=a(2),d=n(m),h=a(1),g=n(h),y=a(19),v=a(7),b=n(v),w=a(11),x=n(w),j=a(33),_=n(j),k=(0,d.default)((u=c=function(e){function t(e){o(this,t);var a=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.handleExpandCollapse=function(){a.setState({isExpanded:!a.state.isExpanded})},a.state={isExpanded:!1},a}return r(t,e),l(t,[{key:"render",value:function(){return f.default.createElement(x.default,{style:this.style.row},f.default.createElement(b.default,null,f.default.createElement(_.default,{sampleTitle:this.props.title||"Sample",onClick:this.handleExpandCollapse,isExpanded:this.state.isExpanded}),this.state.isExpanded&&f.default.createElement(y.Value,{element:this.props.sample,style:this.style.value})))}},{key:"style",get:function(){var e={row:{width:"100%"},value:{base:{marginTop:"4px",marginBottom:"4px"}}};return(0,g.default)(e,this.props.style||{})}}]),t}(f.default.Component),c.propTypes={style:f.default.PropTypes.object,element:f.default.PropTypes.object,sample:f.default.PropTypes.object,title:f.default.PropTypes.string},s=u))||s;t.default=k,e.exports=t.default},function(e,t){!function(){"use strict";function t(e){return"function"==typeof e}function a(e){return"[object Array]"===Object.prototype.toString.call(e)}function n(e){return e instanceof Date?e.getTime():e instanceof Array?e.map(n):e}function o(e,t){return e.get?e.get(t):e[t]}function i(e){return function(t,n){if(!a(n)||!n.length)return e(t,n);for(var i=0,r=n.length;i<r;i++)if(e(t,o(n,i)))return!0;return!1}}function r(e,t){return e.v(e.a,t)}function s(e,t){for(var a=0;a<e.