UNPKG

react-foundation-apps

Version:
6 lines 63.4 kB
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.RFA=e(require("react")):t.RFA=e(t.React)}(this,function(t){return function(t){function e(i){if(n[i])return n[i].exports;var o=n[i]={exports:{},id:i,loaded:!1};return t[i].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){t.exports={Accordion:n(24),ActionSheet:n(2),Iconic:n(3),Interchange:n(4),Modal:n(5),Notification:n(6),OffCanvas:n(7),Panel:n(8),Popup:n(9),Tabs:n(10),Trigger:n(11)}},function(t,e,n){var i,o;/*! tether 0.6.5 */ !function(r,s){i=s,o="function"==typeof i?i.call(e,n,e,t):i,!(void 0!==o&&(t.exports=o))}(this,function(t,e,n){return function(){var t,e,n,i,o,r,s,a,c,l,u,h,p,f,d,g,m,v,b,y={}.hasOwnProperty,w=[].indexOf||function(t){for(var e=0,n=this.length;n>e;e++)if(e in this&&this[e]===t)return e;return-1},E=[].slice;null==this.Tether&&(this.Tether={modules:[]}),h=function(t){var e,n,i,o,r;if(n=getComputedStyle(t).position,"fixed"===n)return t;for(i=void 0,e=t;e=e.parentNode;){try{o=getComputedStyle(e)}catch(s){}if(null==o)return e;if(/(auto|scroll)/.test(o.overflow+o.overflowY+o.overflowX)&&("absolute"!==n||"relative"===(r=o.position)||"absolute"===r||"fixed"===r))return e}return document.body},m=function(){var t;return t=0,function(){return t++}}(),b={},l=function(t){var e,i,r,s,a;if(r=t._tetherZeroElement,null==r&&(r=t.createElement("div"),r.setAttribute("data-tether-id",m()),o(r.style,{top:0,left:0,position:"absolute"}),t.body.appendChild(r),t._tetherZeroElement=r),e=r.getAttribute("data-tether-id"),null==b[e]){b[e]={},a=r.getBoundingClientRect();for(i in a)s=a[i],b[e][i]=s;n(function(){return b[e]=void 0})}return b[e]},f=null,s=function(t){var e,n,i,o,r,s,a;t===document?(n=document,t=document.documentElement):n=t.ownerDocument,i=n.documentElement,e={},a=t.getBoundingClientRect();for(o in a)s=a[o],e[o]=s;return r=l(n),e.top-=r.top,e.left-=r.left,null==e.width&&(e.width=document.body.scrollWidth-e.left-e.right),null==e.height&&(e.height=document.body.scrollHeight-e.top-e.bottom),e.top=e.top-i.clientTop,e.left=e.left-i.clientLeft,e.right=n.body.clientWidth-e.width-e.left,e.bottom=n.body.clientHeight-e.height-e.top,e},c=function(t){return t.offsetParent||document.documentElement},u=function(){var t,e,n,i,r;return t=document.createElement("div"),t.style.width="100%",t.style.height="200px",e=document.createElement("div"),o(e.style,{position:"absolute",top:0,left:0,pointerEvents:"none",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),e.appendChild(t),document.body.appendChild(e),i=t.offsetWidth,e.style.overflow="scroll",r=t.offsetWidth,i===r&&(r=e.clientWidth),document.body.removeChild(e),n=i-r,{width:n,height:n}},o=function(t){var e,n,i,o,r,s,a;for(null==t&&(t={}),e=[],Array.prototype.push.apply(e,arguments),a=e.slice(1),r=0,s=a.length;s>r;r++)if(i=a[r])for(n in i)y.call(i,n)&&(o=i[n],t[n]=o);return t},d=function(t,e){var n,i,o,r,s,c;if(null!=t.classList){for(s=e.split(" "),c=[],o=0,r=s.length;r>o;o++)i=s[o],i.trim()&&c.push(t.classList.remove(i));return c}return n=a(t).replace(new RegExp("(^| )"+e.split(" ").join("|")+"( |$)","gi")," "),g(t,n)},e=function(t,e){var n,i,o,r,s;if(null!=t.classList){for(r=e.split(" "),s=[],i=0,o=r.length;o>i;i++)n=r[i],n.trim()&&s.push(t.classList.add(n));return s}return d(t,e),n=a(t)+(" "+e),g(t,n)},p=function(t,e){return null!=t.classList?t.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(a(t))},a=function(t){return t.className instanceof SVGAnimatedString?t.className.baseVal:t.className},g=function(t,e){return t.setAttribute("class",e)},v=function(t,n,i){var o,r,s,a,c,l;for(r=0,a=i.length;a>r;r++)o=i[r],w.call(n,o)<0&&p(t,o)&&d(t,o);for(l=[],s=0,c=n.length;c>s;s++)o=n[s],l.push(p(t,o)?void 0:e(t,o));return l},i=[],n=function(t){return i.push(t)},r=function(){var t,e;for(e=[];t=i.pop();)e.push(t());return e},t=function(){function t(){}return t.prototype.on=function(t,e,n,i){var o;return null==i&&(i=!1),null==this.bindings&&(this.bindings={}),null==(o=this.bindings)[t]&&(o[t]=[]),this.bindings[t].push({handler:e,ctx:n,once:i})},t.prototype.once=function(t,e,n){return this.on(t,e,n,!0)},t.prototype.off=function(t,e){var n,i,o;if(null!=(null!=(i=this.bindings)?i[t]:void 0)){if(null==e)return delete this.bindings[t];for(n=0,o=[];n<this.bindings[t].length;)o.push(this.bindings[t][n].handler===e?this.bindings[t].splice(n,1):n++);return o}},t.prototype.trigger=function(){var t,e,n,i,o,r,s,a,c;if(n=arguments[0],t=2<=arguments.length?E.call(arguments,1):[],null!=(s=this.bindings)?s[n]:void 0){for(o=0,c=[];o<this.bindings[n].length;)a=this.bindings[n][o],i=a.handler,e=a.ctx,r=a.once,i.apply(null!=e?e:this,t),c.push(r?this.bindings[n].splice(o,1):o++);return c}},t}(),this.Tether.Utils={getScrollParent:h,getBounds:s,getOffsetParent:c,extend:o,addClass:e,removeClass:d,hasClass:p,updateClasses:v,defer:n,flush:r,uniqueId:m,Evented:t,getScrollBarSize:u}}.call(this),function(){var t,e,n,i,o,r,s,a,c,l,u,h,p,f,d,g,m,v,b,y,w,E,C,x,O,S,A,T,N,M=[].slice,P=function(t,e){return function(){return t.apply(e,arguments)}};if(null==this.Tether)throw new Error("You must include the utils.js file before tether.js");i=this.Tether,N=i.Utils,g=N.getScrollParent,m=N.getSize,f=N.getOuterSize,h=N.getBounds,p=N.getOffsetParent,l=N.extend,o=N.addClass,C=N.removeClass,S=N.updateClasses,c=N.defer,u=N.flush,d=N.getScrollBarSize,A=function(t,e,n){return null==n&&(n=1),t+n>=e&&e>=t-n},O=function(){var t,e,n,i,o;for(t=document.createElement("div"),o=["transform","webkitTransform","OTransform","MozTransform","msTransform"],n=0,i=o.length;i>n;n++)if(e=o[n],void 0!==t.style[e])return e}(),x=[],E=function(){var t,e,n;for(e=0,n=x.length;n>e;e++)t=x[e],t.position(!1);return u()},v=function(){var t;return null!=(t="undefined"!=typeof performance&&null!==performance&&"function"==typeof performance.now?performance.now():void 0)?t:+new Date},function(){var t,e,n,i,o,r,s,a,c;for(e=null,n=null,i=null,o=function(){if(null!=n&&n>16)return n=Math.min(n-16,250),void(i=setTimeout(o,250));if(!(null!=e&&v()-e<10))return null!=i&&(clearTimeout(i),i=null),e=v(),E(),n=v()-e},a=["resize","scroll","touchmove"],c=[],r=0,s=a.length;s>r;r++)t=a[r],c.push(window.addEventListener(t,o));return c}(),t={center:"center",left:"right",right:"left"},e={middle:"middle",top:"bottom",bottom:"top"},n={top:0,left:0,middle:"50%",center:"50%",bottom:"100%",right:"100%"},a=function(n,i){var o,r;return o=n.left,r=n.top,"auto"===o&&(o=t[i.left]),"auto"===r&&(r=e[i.top]),{left:o,top:r}},s=function(t){var e,i;return{left:null!=(e=n[t.left])?e:t.left,top:null!=(i=n[t.top])?i:t.top}},r=function(){var t,e,n,i,o,r,s;for(e=1<=arguments.length?M.call(arguments,0):[],n={top:0,left:0},o=0,r=e.length;r>o;o++)s=e[o],i=s.top,t=s.left,"string"==typeof i&&(i=parseFloat(i,10)),"string"==typeof t&&(t=parseFloat(t,10)),n.top+=i,n.left+=t;return n},b=function(t,e){return"string"==typeof t.left&&-1!==t.left.indexOf("%")&&(t.left=parseFloat(t.left,10)/100*e.width),"string"==typeof t.top&&-1!==t.top.indexOf("%")&&(t.top=parseFloat(t.top,10)/100*e.height),t},y=w=function(t){var e,n,i;return i=t.split(" "),n=i[0],e=i[1],{top:n,left:e}},T=function(){function t(t){this.position=P(this.position,this);var e,n,o,r,s;for(x.push(this),this.history=[],this.setOptions(t,!1),r=i.modules,n=0,o=r.length;o>n;n++)e=r[n],null!=(s=e.initialize)&&s.call(this);this.position()}return t.modules=[],t.prototype.getClass=function(t){var e,n;return(null!=(e=this.options.classes)?e[t]:void 0)?this.options.classes[t]:(null!=(n=this.options.classes)?n[t]:void 0)!==!1?this.options.classPrefix?""+this.options.classPrefix+"-"+t:t:""},t.prototype.setOptions=function(t,e){var n,i,r,s,a,c;for(this.options=t,null==e&&(e=!0),n={offset:"0 0",targetOffset:"0 0",targetAttachment:"auto auto",classPrefix:"tether"},this.options=l(n,this.options),a=this.options,this.element=a.element,this.target=a.target,this.targetModifier=a.targetModifier,"viewport"===this.target?(this.target=document.body,this.targetModifier="visible"):"scroll-handle"===this.target&&(this.target=document.body,this.targetModifier="scroll-handle"),c=["element","target"],r=0,s=c.length;s>r;r++){if(i=c[r],null==this[i])throw new Error("Tether Error: Both element and target must be defined");null!=this[i].jquery?this[i]=this[i][0]:"string"==typeof this[i]&&(this[i]=document.querySelector(this[i]))}if(o(this.element,this.getClass("element")),o(this.target,this.getClass("target")),!this.options.attachment)throw new Error("Tether Error: You must provide an attachment");return this.targetAttachment=y(this.options.targetAttachment),this.attachment=y(this.options.attachment),this.offset=w(this.options.offset),this.targetOffset=w(this.options.targetOffset),null!=this.scrollParent&&this.disable(),"scroll-handle"===this.targetModifier?this.scrollParent=this.target:this.scrollParent=g(this.target),this.options.enabled!==!1?this.enable(e):void 0},t.prototype.getTargetBounds=function(){var t,e,n,i,o,r,s,a,c;if(null==this.targetModifier)return h(this.target);switch(this.targetModifier){case"visible":return this.target===document.body?{top:pageYOffset,left:pageXOffset,height:innerHeight,width:innerWidth}:(t=h(this.target),o={height:t.height,width:t.width,top:t.top,left:t.left},o.height=Math.min(o.height,t.height-(pageYOffset-t.top)),o.height=Math.min(o.height,t.height-(t.top+t.height-(pageYOffset+innerHeight))),o.height=Math.min(innerHeight,o.height),o.height-=2,o.width=Math.min(o.width,t.width-(pageXOffset-t.left)),o.width=Math.min(o.width,t.width-(t.left+t.width-(pageXOffset+innerWidth))),o.width=Math.min(innerWidth,o.width),o.width-=2,o.top<pageYOffset&&(o.top=pageYOffset),o.left<pageXOffset&&(o.left=pageXOffset),o);case"scroll-handle":return c=this.target,c===document.body?(c=document.documentElement,t={left:pageXOffset,top:pageYOffset,height:innerHeight,width:innerWidth}):t=h(c),a=getComputedStyle(c),n=c.scrollWidth>c.clientWidth||"scroll"===[a.overflow,a.overflowX]||this.target!==document.body,r=0,n&&(r=15),i=t.height-parseFloat(a.borderTopWidth)-parseFloat(a.borderBottomWidth)-r,o={width:15,height:.975*i*(i/c.scrollHeight),left:t.left+t.width-parseFloat(a.borderLeftWidth)-15},e=0,408>i&&this.target===document.body&&(e=-11e-5*Math.pow(i,2)-.00727*i+22.58),this.target!==document.body&&(o.height=Math.max(o.height,24)),s=this.target.scrollTop/(c.scrollHeight-i),o.top=s*(i-o.height-e)+t.top+parseFloat(a.borderTopWidth),this.target===document.body&&(o.height=Math.max(o.height,24)),o}},t.prototype.clearCache=function(){return this._cache={}},t.prototype.cache=function(t,e){return null==this._cache&&(this._cache={}),null==this._cache[t]&&(this._cache[t]=e.call(this)),this._cache[t]},t.prototype.enable=function(t){return null==t&&(t=!0),o(this.target,this.getClass("enabled")),o(this.element,this.getClass("enabled")),this.enabled=!0,this.scrollParent!==document&&this.scrollParent.addEventListener("scroll",this.position),t?this.position():void 0},t.prototype.disable=function(){return C(this.target,this.getClass("enabled")),C(this.element,this.getClass("enabled")),this.enabled=!1,null!=this.scrollParent?this.scrollParent.removeEventListener("scroll",this.position):void 0},t.prototype.destroy=function(){var t,e,n,i,o;for(this.disable(),o=[],t=n=0,i=x.length;i>n;t=++n){if(e=x[t],e===this){x.splice(t,1);break}o.push(void 0)}return o},t.prototype.updateAttachClasses=function(t,e){var n,i,o,r,s,a,l,u,h,p=this;for(null==t&&(t=this.attachment),null==e&&(e=this.targetAttachment),r=["left","top","bottom","right","middle","center"],(null!=(h=this._addAttachClasses)?h.length:void 0)&&this._addAttachClasses.splice(0,this._addAttachClasses.length),n=null!=this._addAttachClasses?this._addAttachClasses:this._addAttachClasses=[],t.top&&n.push(""+this.getClass("element-attached")+"-"+t.top),t.left&&n.push(""+this.getClass("element-attached")+"-"+t.left),e.top&&n.push(""+this.getClass("target-attached")+"-"+e.top),e.left&&n.push(""+this.getClass("target-attached")+"-"+e.left),i=[],s=0,l=r.length;l>s;s++)o=r[s],i.push(""+this.getClass("element-attached")+"-"+o);for(a=0,u=r.length;u>a;a++)o=r[a],i.push(""+this.getClass("target-attached")+"-"+o);return c(function(){return null!=p._addAttachClasses?(S(p.element,p._addAttachClasses,i),S(p.target,p._addAttachClasses,i),p._addAttachClasses=void 0):void 0})},t.prototype.position=function(t){var e,n,o,c,l,f,g,m,v,y,w,E,C,x,O,S,A,T,N,M,P,I,j,k,D,L,W,_,B,q,z,H,U,F,R,V=this;if(null==t&&(t=!0),this.enabled){for(this.clearCache(),M=a(this.targetAttachment,this.attachment),this.updateAttachClasses(this.attachment,M),e=this.cache("element-bounds",function(){return h(V.element)}),D=e.width,o=e.height,0===D&&0===o&&null!=this.lastSize?(q=this.lastSize,D=q.width,o=q.height):this.lastSize={width:D,height:o},j=I=this.cache("target-bounds",function(){return V.getTargetBounds()}),v=b(s(this.attachment),{width:D,height:o}),P=b(s(M),j),l=b(this.offset,{width:D,height:o}),f=b(this.targetOffset,j),v=r(v,l),P=r(P,f),c=I.left+P.left-v.left,k=I.top+P.top-v.top,z=i.modules,L=0,_=z.length;_>L;L++)if(g=z[L],O=g.position.call(this,{left:c,top:k,targetAttachment:M,targetPos:I,attachment:this.attachment,elementPos:e,offset:v,targetOffset:P,manualOffset:l,manualTargetOffset:f,scrollbarSize:T}),null!=O&&"object"==typeof O){if(O===!1)return!1;k=O.top,c=O.left}if(m={page:{top:k,left:c},viewport:{top:k-pageYOffset,bottom:pageYOffset-k-o+innerHeight,left:c-pageXOffset,right:pageXOffset-c-D+innerWidth}},document.body.scrollWidth>window.innerWidth&&(T=this.cache("scrollbar-size",d),m.viewport.bottom-=T.height),document.body.scrollHeight>window.innerHeight&&(T=this.cache("scrollbar-size",d),m.viewport.right-=T.width),(""!==(H=document.body.style.position)&&"static"!==H||""!==(U=document.body.parentElement.style.position)&&"static"!==U)&&(m.page.bottom=document.body.scrollHeight-k-o,m.page.right=document.body.scrollWidth-c-D),(null!=(F=this.options.optimizations)?F.moveElement:void 0)!==!1&&null==this.targetModifier){for(w=this.cache("target-offsetparent",function(){return p(V.target)}),x=this.cache("target-offsetparent-bounds",function(){return h(w)}),C=getComputedStyle(w),n=getComputedStyle(this.element),E=x,y={},R=["Top","Left","Bottom","Right"],W=0,B=R.length;B>W;W++)N=R[W],y[N.toLowerCase()]=parseFloat(C["border"+N+"Width"]);x.right=document.body.scrollWidth-x.left-E.width+y.right,x.bottom=document.body.scrollHeight-x.top-E.height+y.bottom,m.page.top>=x.top+y.top&&m.page.bottom>=x.bottom&&m.page.left>=x.left+y.left&&m.page.right>=x.right&&(A=w.scrollTop,S=w.scrollLeft,m.offset={top:m.page.top-x.top+A-y.top,left:m.page.left-x.left+S-y.left})}return this.move(m),this.history.unshift(m),this.history.length>3&&this.history.pop(),t&&u(),!0}},t.prototype.move=function(t){var e,n,i,o,r,s,a,u,h,f,d,g,m,v,b,y,w,E=this;if(null!=this.element.parentNode){u={};for(f in t){u[f]={};for(o in t[f]){for(i=!1,y=this.history,v=0,b=y.length;b>v;v++)if(a=y[v],!A(null!=(w=a[f])?w[o]:void 0,t[f][o])){i=!0;break}i||(u[f][o]=!0)}}e={top:"",left:"",right:"",bottom:""},h=function(t,n){var i,o,r;return(null!=(r=E.options.optimizations)?r.gpu:void 0)===!1?(t.top?e.top=""+n.top+"px":e.bottom=""+n.bottom+"px",t.left?e.left=""+n.left+"px":e.right=""+n.right+"px"):(t.top?(e.top=0,o=n.top):(e.bottom=0,o=-n.bottom),t.left?(e.left=0,i=n.left):(e.right=0,i=-n.right),e[O]="translateX("+Math.round(i)+"px) translateY("+Math.round(o)+"px)","msTransform"!==O?e[O]+=" translateZ(0)":void 0)},r=!1,(u.page.top||u.page.bottom)&&(u.page.left||u.page.right)?(e.position="absolute",h(u.page,t.page)):(u.viewport.top||u.viewport.bottom)&&(u.viewport.left||u.viewport.right)?(e.position="fixed",h(u.viewport,t.viewport)):null!=u.offset&&u.offset.top&&u.offset.left?(e.position="absolute",s=this.cache("target-offsetparent",function(){return p(E.target)}),p(this.element)!==s&&c(function(){return E.element.parentNode.removeChild(E.element),s.appendChild(E.element)}),h(u.offset,t.offset),r=!0):(e.position="absolute",h({top:!0,left:!0},t.page)),r||"BODY"===this.element.parentNode.tagName||(this.element.parentNode.removeChild(this.element),document.body.appendChild(this.element)),m={},g=!1;for(o in e)d=e[o],n=this.element.style[o],""===n||""===d||"top"!==o&&"left"!==o&&"bottom"!==o&&"right"!==o||(n=parseFloat(n),d=parseFloat(d)),n!==d&&(g=!0,m[o]=e[o]);return g?c(function(){return l(E.element.style,m)}):void 0}},t}(),i.position=E,this.Tether=l(T,i)}.call(this),function(){var t,e,n,i,o,r,s,a,c,l,u=[].indexOf||function(t){for(var e=0,n=this.length;n>e;e++)if(e in this&&this[e]===t)return e;return-1};l=this.Tether.Utils,s=l.getOuterSize,r=l.getBounds,a=l.getSize,i=l.extend,c=l.updateClasses,n=l.defer,e={left:"right",right:"left",top:"bottom",bottom:"top",middle:"middle"},t=["left","top","right","bottom"],o=function(e,n){var i,o,s,a,c,l,u;if("scrollParent"===n?n=e.scrollParent:"window"===n&&(n=[pageXOffset,pageYOffset,innerWidth+pageXOffset,innerHeight+pageYOffset]),n===document&&(n=n.documentElement),null!=n.nodeType)for(o=a=r(n),c=getComputedStyle(n),n=[o.left,o.top,a.width+o.left,a.height+o.top],i=l=0,u=t.length;u>l;i=++l)s=t[i],s=s[0].toUpperCase()+s.substr(1),"Top"===s||"Left"===s?n[i]+=parseFloat(c["border"+s+"Width"]):n[i]-=parseFloat(c["border"+s+"Width"]);return n},this.Tether.modules.push({position:function(e){var s,a,l,h,p,f,d,g,m,v,b,y,w,E,C,x,O,S,A,T,N,M,P,I,j,k,D,L,W,_,B,q,z,H,U,F,R,V,X,G,Y,$,Z,J,K,Q,tt,et=this;if(k=e.top,b=e.left,N=e.targetAttachment,!this.options.constraints)return!0;for(S=function(e){var n,i,o,r;for(et.removeClass(e),r=[],i=0,o=t.length;o>i;i++)n=t[i],r.push(et.removeClass(""+e+"-"+n));return r},G=this.cache("element-bounds",function(){return r(et.element)}),v=G.height,D=G.width,0===D&&0===v&&null!=this.lastSize&&(Y=this.lastSize,D=Y.width,v=Y.height),P=this.cache("target-bounds",function(){return et.getTargetBounds()}),M=P.height,I=P.width,T={},m={},a=[this.getClass("pinned"),this.getClass("out-of-bounds")],$=this.options.constraints,L=0,q=$.length;q>L;L++)g=$[L],g.outOfBoundsClass&&a.push(g.outOfBoundsClass),g.pinnedClass&&a.push(g.pinnedClass);for(W=0,z=a.length;z>W;W++)for(d=a[W],Z=["left","top","right","bottom"],_=0,H=Z.length;H>_;_++)A=Z[_],a.push(""+d+"-"+A);for(s=[],T=i({},N),m=i({},this.attachment),J=this.options.constraints,B=0,U=J.length;U>B;B++){if(g=J[B],j=g.to,l=g.attachment,C=g.pin,null==l&&(l=""),u.call(l," ")>=0?(K=l.split(" "),f=K[0],p=K[1]):p=f=l,h=o(this,j),("target"===f||"both"===f)&&(k<h[1]&&"top"===T.top&&(k+=M,T.top="bottom"),k+v>h[3]&&"bottom"===T.top&&(k-=M,T.top="top")),"together"===f&&(k<h[1]&&"top"===T.top&&("bottom"===m.top?(k+=M,T.top="bottom",k+=v,m.top="top"):"top"===m.top&&(k+=M,T.top="bottom",k-=v,m.top="bottom")),k+v>h[3]&&"bottom"===T.top&&("top"===m.top?(k-=M,T.top="top",k-=v,m.top="bottom"):"bottom"===m.top&&(k-=M,T.top="top",k+=v,m.top="top")),"middle"===T.top&&(k+v>h[3]&&"top"===m.top?(k-=v,m.top="bottom"):k<h[1]&&"bottom"===m.top&&(k+=v,m.top="top"))),("target"===p||"both"===p)&&(b<h[0]&&"left"===T.left&&(b+=I,T.left="right"),b+D>h[2]&&"right"===T.left&&(b-=I,T.left="left")),"together"===p&&(b<h[0]&&"left"===T.left?"right"===m.left?(b+=I,T.left="right",b+=D,m.left="left"):"left"===m.left&&(b+=I,T.left="right",b-=D,m.left="right"):b+D>h[2]&&"right"===T.left?"left"===m.left?(b-=I,T.left="left",b-=D,m.left="right"):"right"===m.left&&(b-=I,T.left="left",b+=D,m.left="left"):"center"===T.left&&(b+D>h[2]&&"left"===m.left?(b-=D,m.left="right"):b<h[0]&&"right"===m.left&&(b+=D,m.left="left"))),("element"===f||"both"===f)&&(k<h[1]&&"bottom"===m.top&&(k+=v,m.top="top"),k+v>h[3]&&"top"===m.top&&(k-=v,m.top="bottom")),("element"===p||"both"===p)&&(b<h[0]&&"right"===m.left&&(b+=D,m.left="left"),b+D>h[2]&&"left"===m.left&&(b-=D,m.left="right")),"string"==typeof C?C=function(){var t,e,n,i;for(n=C.split(","),i=[],e=0,t=n.length;t>e;e++)E=n[e],i.push(E.trim());return i}():C===!0&&(C=["top","left","right","bottom"]),C||(C=[]),x=[],y=[],k<h[1]&&(u.call(C,"top")>=0?(k=h[1],x.push("top")):y.push("top")),k+v>h[3]&&(u.call(C,"bottom")>=0?(k=h[3]-v,x.push("bottom")):y.push("bottom")),b<h[0]&&(u.call(C,"left")>=0?(b=h[0],x.push("left")):y.push("left")),b+D>h[2]&&(u.call(C,"right")>=0?(b=h[2]-D,x.push("right")):y.push("right")),x.length)for(O=null!=(Q=this.options.pinnedClass)?Q:this.getClass("pinned"),s.push(O),V=0,F=x.length;F>V;V++)A=x[V],s.push(""+O+"-"+A);if(y.length)for(w=null!=(tt=this.options.outOfBoundsClass)?tt:this.getClass("out-of-bounds"),s.push(w),X=0,R=y.length;R>X;X++)A=y[X],s.push(""+w+"-"+A);(u.call(x,"left")>=0||u.call(x,"right")>=0)&&(m.left=T.left=!1),(u.call(x,"top")>=0||u.call(x,"bottom")>=0)&&(m.top=T.top=!1),(T.top!==N.top||T.left!==N.left||m.top!==this.attachment.top||m.left!==this.attachment.left)&&this.updateAttachClasses(m,T)}return n(function(){return c(et.target,s,a),c(et.element,s,a)}),{top:k,left:b}}})}.call(this),function(){var t,e,n,i;i=this.Tether.Utils,e=i.getBounds,n=i.updateClasses,t=i.defer,this.Tether.modules.push({position:function(i){var o,r,s,a,c,l,u,h,p,f,d,g,m,v,b,y,w,E,C,x,O,S,A,T,N,M=this;if(d=i.top,l=i.left,O=this.cache("element-bounds",function(){return e(M.element)}),c=O.height,g=O.width,f=this.getTargetBounds(),a=d+c,u=l+g,o=[],d<=f.bottom&&a>=f.top)for(S=["left","right"],m=0,w=S.length;w>m;m++)h=S[m],((A=f[h])===l||A===u)&&o.push(h);if(l<=f.right&&u>=f.left)for(T=["top","bottom"],v=0,E=T.length;E>v;v++)h=T[v],((N=f[h])===d||N===a)&&o.push(h);for(s=[],r=[],p=["left","top","right","bottom"],s.push(this.getClass("abutted")),b=0,C=p.length;C>b;b++)h=p[b],s.push(""+this.getClass("abutted")+"-"+h);for(o.length&&r.push(this.getClass("abutted")),y=0,x=o.length;x>y;y++)h=o[y],r.push(""+this.getClass("abutted")+"-"+h);return t(function(){return n(M.target,r,s),n(M.element,r,s)}),!0}})}.call(this),function(){this.Tether.modules.push({position:function(t){var e,n,i,o,r,s,a;return s=t.top,e=t.left,this.options.shift?(n=function(t){return"function"==typeof t?t.call(this,{top:s,left:e}):t},i=n(this.options.shift),"string"==typeof i?(i=i.split(" "),i[1]||(i[1]=i[0]),r=i[0],o=i[1],r=parseFloat(r,10),o=parseFloat(o,10)):(a=[i.top,i.left],r=a[0],o=a[1]),s+=r,e+=o,{top:s,left:e}):void 0}})}.call(this),this.Tether})},function(t,e,n){"use strict";var i=n(12),o=n(25),r=n(13),s=i.createClass({displayName:"ActionSheet",getInitialState:function(){return{active:!1}},setActiveState:function(t){this.setState({active:t})},onBodyClick:function(t){var e=t.target,n=!1;do if(e.classList&&e.classList.contains("action-sheet-container")){n=!0;break}while(e=e.parentNode);n||this.setActiveState(!1)},componentDidMount:function(){this.props.id&&r.subscribe(this.props.id,function(t,e){"open"===e?this.setState({active:!0}):"close"===e?this.setState({active:!1}):"toggle"===e&&this.setState({active:!this.state.active})}.bind(this)),document.body.addEventListener("click",this.onBodyClick)},componentWillUnmount:function(){this.props.id&&r.unsubscribe(this.props.id),document.body.removeEventListener("click",this.onBodyClick)},render:function(){var t=i.Children.map(this.props.children,function(t,e){var n={active:this.state.active};return"ActionSheetButton"===t.type.displayName&&(n.setActiveState=this.setActiveState),o(t,n)}.bind(this));return i.createElement("div",{id:this.props.id,"data-closable":!0,className:"action-sheet-container"},t)}});t.exports=s,s.Button=n(16),s.Content=n(17)},function(t,e,n){"use strict";var i=n(12),o=n(26),r=o.canUseDOM&&n(14),s=(n(25),i.createClass({displayName:"Iconic",inject:function(){var t=r();t.inject(this.getDOMNode())},componentDidMount:function(){this.inject()},componentDidUpdate:function(){this.inject()},render:function(){return i.Children.only(this.props.children)}}));t.exports=s},function(t,e,n){"use strict";var i=n(12),o=n(23),r=i.createClass({displayName:"Interchange",mixins:[o],getInitialState:function(){return{matchedMedia:"large"}},componentDidMount:function(){this.media({minWidth:0,maxWidth:640},function(){this.setState({matchedMedia:"small"})}.bind(this)),this.media({minWidth:641,maxWidth:1200},function(){this.setState({matchedMedia:"medium"})}.bind(this)),this.media({minWidth:1200,maxWidth:1440},function(){this.setState({matchedMedia:"large"})}.bind(this))},render:function(){var t=null;return i.Children.forEach(this.props.children,function(e){e.props.media===this.state.matchedMedia&&(t=e)}.bind(this)),t}});t.exports=r},function(t,e,n){"use strict";var i=n(12),o=(n(27),n(18)),r=n(13),s=i.createClass({displayName:"Modal",getInitialState:function(){return{open:!1}},getDefaultProps:function(){return{overlay:!0,overlayClose:!0,animationIn:"fadeIn",animationOut:"fadeOut"}},componentDidMount:function(){r.subscribe(this.props.id,function(t,e){"open"===e?this.setState({open:!0}):"close"===e?this.setState({open:!1}):"toggle"===e&&this.setState({open:!this.state.open})}.bind(this))},componentWillUnmount:function(){r.unsubscribe(this.props.id)},hideOverlay:function(t){t.preventDefault(),this.props.overlayClose&&this.setState({open:!1})},stopClickPropagation:function(t){t.preventDefault(),t.stopProppagation()},render:function(){var t={};return this.props.overlay||(t.background="transparent"),i.createElement(o,{active:this.state.open,animationIn:"fadeIn",animationOut:"fadeOut"},i.createElement("div",{className:"modal-overlay",style:t,onClick:this.hideOverlay},i.createElement(o,{active:this.state.open,animationIn:this.props.animationIn,animationOut:this.props.animationOut},i.createElement("div",{id:this.props.id,"data-closable":!0,className:"modal",onClick:this.stopClickPropagation},this.props.children))))}});t.exports=s},function(t,e,n){"use strict";t.exports={Set:n(19),Static:n(20)}},function(t,e,n){"use strict";var i=n(12),o=n(27),r=n(13),s=i.createClass({displayName:"Offcanvas",getInitialState:function(){return{open:!1}},getDefaultProps:function(){return{position:"left"}},componentDidMount:function(){r.subscribe(this.props.id,function(t,e){"open"===e?this.setState({open:!0}):"close"===e?this.setState({open:!1}):"toggle"===e&&this.setState({open:!this.state.open})}.bind(this))},componentWillUnmount:function(){r.unsubscribe(this.props.id)},render:function(){var t={"off-canvas":!0,"is-active":this.state.open};return t[this.props.position]=!0,this.props.className&&(t[this.props.className]=!0),i.createElement("div",{id:this.props.id,"data-closable":!0,className:o(t)},this.props.children)}});t.exports=s},function(t,e,n){"use strict";var i=n(12),o=(n(27),n(18)),r=n(13),s=i.createClass({displayName:"Panel",getInitialState:function(){return{open:!1}},getDefaultProps:function(){return{position:"left"}},componentDidMount:function(){r.subscribe(this.props.id,function(t,e){"open"===e?this.setState({open:!0}):"close"===e?this.setState({open:!1}):"toggle"===e&&this.setState({open:!this.state.open})}.bind(this))},componentWillUnmount:function(){r.unsubscribe(this.props.id)},render:function(){var t,e,n="panel panel-"+this.props.position;return this.props.className&&(n+=" "+this.props.className),"left"===this.props.position?(t=this.props.animationIn||"slideInRight",e=this.props.animationOut||"slideOutLeft"):"right"===this.props.position?(t=this.props.animationIn||"slideInLeft",e=this.props.animationOut||"slideOutRight"):"top"===this.props.position?(t=this.props.animationIn||"slideInDown",e=this.props.animationOut||"slideOutUp"):"bottom"===this.props.position&&(t=this.props.animationIn||"slideInUp",e=this.props.animationOut||"slideOutBottom"),i.createElement(o,{active:this.state.open,animationIn:t,animationOut:e},i.createElement("div",{"data-closable":!0,id:this.props.id,className:n},this.props.children))}});t.exports=s},function(t,e,n){"use strict";var i=n(12),o=n(27),r=n(26),s=n(13),a=r.canUseDOM&&n(1),c=i.createClass({displayName:"Popup",getInitialState:function(){return{active:!1,tetherInit:!1}},getDefaultProps:function(){return{pinTo:"top center",pinAt:""}},componentDidMount:function(){this.tether={},s.subscribe(this.props.id,function(t,e){"toggle"===e[0]&&this.toggle(e[1])}.bind(this))},toggle:function(t){var e=!this.state.active;this.setState({active:e},function(){e?this.tetherElement(t):this.tether.destroy()}.bind(this))},tetherElement:function(t){var e=document.getElementById(t),n="top center";this.tether=new a({element:this.getDOMNode(),target:e,attachment:n})},render:function(){var t={popup:!0,"is-active":this.state.active};return i.createElement("div",{id:this.props.id,className:o(t),"data-closable":"popup"},this.props.children)}});t.exports=c},function(t,e,n){"use strict";var i=n(12),o=n(25),r=i.createClass({displayName:"Tabs",getInitialState:function(){return{selectedTab:0,content:null}},selectTab:function(t){this.setState(t)},render:function(){var t=i.Children.map(this.props.children,function(t,e){return o(t,{active:e===this.state.selectedTab,index:e,selectTab:this.selectTab})}.bind(this));return i.createElement("div",null,i.createElement("div",{className:"tabs"},t),i.createElement("div",null,this.state.content))}});t.exports=r,r.Tab=n(21)},function(t,e,n){"use strict";var i=n(12),o=n(25),r=n(13),s=n(22),a=i.createClass({displayName:"Trigger",getDefaultProps:function(){return{open:null,close:null,toggle:null,hardToggle:null,popupToggle:null,notify:null}},getCloseId:function(){if(this.props.close)return this.props.close;for(var t=!1,e=this.getDOMNode().parentNode;t===!1;)"BODY"==e.nodeName&&(t=""),"undefined"!=typeof e.getAttribute("data-closable")&&e.getAttribute("data-closable")!==!1&&(t=e),e=e.parentNode;return t.getAttribute("id")},clickHandler:function(t){t.preventDefault(),this.props.open?r.publish(this.props.open,"open"):null!==this.props.close?r.publish(this.getCloseId(),"close"):this.props.toggle?r.publish(this.props.toggle,"toggle"):this.props.hardToggle?(r.closeActiveElements({exclude:this.props.hardToggle}),r.publish(this.props.hardToggle,"toggle")):this.props.notify&&r.publish(this.props.notify,{title:this.props.title,content:this.props.content,position:this.props.position,color:this.props.color,image:this.props.image})},render:function(){if(this.props.popupToggle)return i.createElement(s,this.props);var t=i.Children.only(this.props.children);return o(t,{onClick:this.clickHandler})}});t.exports=a},function(e,n,i){e.exports=t},function(t,e,n){var i=n(36),o=(n(31),{}),r=[],s={subscribe:i.subscribe,publish:i.publish,unsubscribe:i.unsubscribe,closeActiveElements:function(t){var e=this;t=t||{};var n=document.querySelectorAll(".is-active[data-closable]");Array.prototype.forEach.call(n,function(n){t.exclude!==n.id&&e.publish(n.id,"close")})},getSettings:function(){return o},modifySettings:function(t){return o=angular.extend(o,t)},generateUuid:function(){var t="";do{t+="zf-uuid-";for(var e=0;15>e;e++)t+=Math.floor(16*Math.random()).toString(16)}while(!r.indexOf(t));return r.push(t),t}};t.exports=s},function(t,e,n){/*! * iconic.js v0.4.0 - The Iconic JavaScript library * Copyright (c) 2014 Waybury - http://useiconic.com */ !function(n){"object"==typeof e?t.exports=n():"function"==typeof define&&define.amd?define(n):"undefined"!=typeof window?window.IconicJS=n():"undefined"!=typeof global?global.IconicJS=n():"undefined"!=typeof self&&(self.IconicJS=n())}(function(){var t;return function e(t,n,i){function o(s,a){if(!n[s]){if(!t[s]){var c="function"==typeof require&&require;if(!a&&c)return c(s,!0);if(r)return r(s,!0);throw new Error("Cannot find module '"+s+"'")}var l=n[s]={exports:{}};t[s][0].call(l.exports,function(e){var n=t[s][1][e];return o(n?n:e)},l,l.exports,e,t,n,i)}return n[s].exports}for(var r="function"==typeof require&&require,s=0;s<i.length;s++)o(i[s]);return o}({1:[function(t,e){var n=(t("./modules/polyfills"),t("./modules/svg-injector")),i=t("./modules/extend"),o=t("./modules/responsive"),r=t("./modules/position"),s=t("./modules/container"),a=t("./modules/log"),c={},l=window.iconicSmartIconApis={},u=("file:"===window.location.protocol,0),h=function(t,e,o){e=i({},c,e||{});var r={evalScripts:e.evalScripts,pngFallback:e.pngFallback};r.each=function(t){if(t)if("string"==typeof t)a.debug(t);else if(t instanceof SVGSVGElement){var n=t.getAttribute("data-icon");if(n&&l[n]){var i=l[n](t);for(var o in i)t[o]=i[o]}/iconic-bg-/.test(t.getAttribute("class"))&&s.addBackground(t),p(t),u++,e&&e.each&&"function"==typeof e.each&&e.each(t)}},"string"==typeof t&&(t=document.querySelectorAll(t)),n(t,r,o)},p=function(t){var e=[];t?"string"==typeof t?e=document.querySelectorAll(t):void 0!==t.length?e=t:"object"==typeof t&&e.push(t):e=document.querySelectorAll("svg.iconic"),Array.prototype.forEach.call(e,function(t){t instanceof SVGSVGElement&&(t.update&&t.update(),o.refresh(t),r.refresh(t))})},f=function(){c.debug&&console.time&&console.time("autoInjectSelector - "+c.autoInjectSelector);var t=u;h(c.autoInjectSelector,{},function(){if(c.debug&&console.timeEnd&&console.timeEnd("autoInjectSelector - "+c.autoInjectSelector),a.debug("AutoInjected: "+(u-t)),o.refreshAll(),c.autoInjectDone&&"function"==typeof c.autoInjectDone){var e=u-t;c.autoInjectDone(e)}})},d=function(t){t&&""!==t&&"complete"!==document.readyState?document.addEventListener("DOMContentLoaded",f):document.removeEventListener("DOMContentLoaded",f)},g=function(t){return t=t||{},i(c,t),d(c.autoInjectSelector),a.enableDebug(c.debug),window._Iconic?window._Iconic:{inject:h,update:p,smartIconApis:l,svgInjectedCount:u}};e.exports=g,window._Iconic=new g({autoInjectSelector:"img.iconic",evalScripts:"once",pngFallback:!1,each:null,autoInjectDone:null,debug:!1})},{"./modules/container":2,"./modules/extend":3,"./modules/log":4,"./modules/polyfills":5,"./modules/position":6,"./modules/responsive":7,"./modules/svg-injector":8}],2:[function(t,e){var n=function(t){var e=t.getAttribute("class").split(" "),n=-1!==e.indexOf("iconic-fluid"),i=[],o=["iconic-bg"];Array.prototype.forEach.call(e,function(t){switch(t){case"iconic-sm":case"iconic-md":case"iconic-lg":i.push(t),n||o.push(t.replace(/-/,"-bg-"));break;case"iconic-fluid":i.push(t),o.push(t.replace(/-/,"-bg-"));break;case"iconic-bg-circle":case"iconic-bg-rounded-rect":case"iconic-bg-badge":o.push(t);break;default:i.push(t)}}),t.setAttribute("class",i.join(" "));var r=t.parentNode,s=Array.prototype.indexOf.call(r.childNodes,t),a=document.createElement("span");a.setAttribute("class",o.join(" ")),a.appendChild(t),r.insertBefore(a,r.childNodes[s])};e.exports={addBackground:n}},{}],3:[function(t,e){e.exports=function(t){return Array.prototype.forEach.call(Array.prototype.slice.call(arguments,1),function(e){if(e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])}),t}},{}],4:[function(t,e){var n=!1,i=function(t){console&&console.log&&console.log(t)},o=function(t){i("Iconic INFO: "+t)},r=function(t){i("Iconic WARNING: "+t)},s=function(t){n&&i("Iconic DEBUG: "+t)},a=function(t){n=t};e.exports={info:o,warn:r,debug:s,enableDebug:a}},{}],5:[function(){Array.prototype.forEach||(Array.prototype.forEach=function(t,e){"use strict";if(void 0===this||null===this||"function"!=typeof t)throw new TypeError;var n,i=this.length>>>0;for(n=0;i>n;++n)n in this&&t.call(e,this[n],n,this)}),function(){if(Event.prototype.preventDefault||(Event.prototype.preventDefault=function(){this.returnValue=!1}),Event.prototype.stopPropagation||(Event.prototype.stopPropagation=function(){this.cancelBubble=!0}),!Element.prototype.addEventListener){var t=[],e=function(e,n){var i=this,o=function(t){t.target=t.srcElement,t.currentTarget=i,n.handleEvent?n.handleEvent(t):n.call(i,t)};if("DOMContentLoaded"==e){var r=function(t){"complete"==document.readyState&&o(t)};if(document.attachEvent("onreadystatechange",r),t.push({object:this,type:e,listener:n,wrapper:r}),"complete"==document.readyState){var s=new Event;s.srcElement=window,r(s)}}else this.attachEvent("on"+e,o),t.push({object:this,type:e,listener:n,wrapper:o})},n=function(e,n){for(var i=0;i<t.length;){var o=t[i];if(o.object==this&&o.type==e&&o.listener==n){"DOMContentLoaded"==e?this.detachEvent("onreadystatechange",o.wrapper):this.detachEvent("on"+e,o.wrapper);break}++i}};Element.prototype.addEventListener=e,Element.prototype.removeEventListener=n,HTMLDocument&&(HTMLDocument.prototype.addEventListener=e,HTMLDocument.prototype.removeEventListener=n),Window&&(Window.prototype.addEventListener=e,Window.prototype.removeEventListener=n)}}()},{}],6:[function(t,e){var n=function(t){var e=t.getAttribute("data-position");if(e&&""!==e){var n,i,o,r,s,a,c,l=t.getAttribute("width"),u=t.getAttribute("height"),h=e.split("-"),p=t.querySelectorAll("g.iconic-container");Array.prototype.forEach.call(p,function(t){if(n=t.getAttribute("data-width"),i=t.getAttribute("data-height"),n!==l||i!==u){if(o=t.getAttribute("transform"),r=1,o){var e=o.match(/scale\((\d)/);r=e&&e[1]?e[1]:1}s=Math.floor((l/r-n)/2),a=Math.floor((u/r-i)/2),Array.prototype.forEach.call(h,function(t){switch(t){case"top":a=0;break;case"bottom":a=u/r-i;break;case"left":s=0;break;case"right":s=l/r-n;break;case"center":break;default:console&&console.log&&console.log("Unknown position: "+t)}}),c=0===a?s:s+" "+a,c="translate("+c+")",o?/translate/.test(o)?o=o.replace(/translate\(.*?\)/,c):o+=" "+c:o=c,t.setAttribute("transform",o)}})}};e.exports={refresh:n}},{}],7:[function(t,e){var n=/(iconic-sm\b|iconic-md\b|iconic-lg\b)/,i=function(t,e){var n="undefined"!=typeof window.getComputedStyle&&window.getComputedStyle(t,null).getPropertyValue(e);return!n&&t.currentStyle&&(n=t.currentStyle[e.replace(/([a-z])\-([a-z])/,function(t,e,n){return e+n.toUpperCase()})]||t.currentStyle[e]),n},o=function(t){var e=t.style.display;t.style.display="block";var n=parseFloat(i(t,"width").slice(0,-2)),o=parseFloat(i(t,"height").slice(0,-2));return t.style.display=e,{width:n,height:o}},r=function(){var t="/* Iconic Responsive Support Styles */\n.iconic-property-fill, .iconic-property-text {stroke: none !important;}\n.iconic-property-stroke {fill: none !important;}\nsvg.iconic.iconic-fluid {height:100% !important;width:100% !important;}\nsvg.iconic.iconic-sm:not(.iconic-size-md):not(.iconic-size-lg), svg.iconic.iconic-size-sm{width:16px;height:16px;}\nsvg.iconic.iconic-md:not(.iconic-size-sm):not(.iconic-size-lg), svg.iconic.iconic-size-md{width:32px;height:32px;}\nsvg.iconic.iconic-lg:not(.iconic-size-sm):not(.iconic-size-md), svg.iconic.iconic-size-lg{width:128px;height:128px;}\nsvg.iconic-sm > g.iconic-md, svg.iconic-sm > g.iconic-lg, svg.iconic-md > g.iconic-sm, svg.iconic-md > g.iconic-lg, svg.iconic-lg > g.iconic-sm, svg.iconic-lg > g.iconic-md {display: none;}\nsvg.iconic.iconic-icon-sm > g.iconic-lg, svg.iconic.iconic-icon-md > g.iconic-lg {display:none;}\nsvg.iconic-sm:not(.iconic-icon-md):not(.iconic-icon-lg) > g.iconic-sm, svg.iconic-md.iconic-icon-sm > g.iconic-sm, svg.iconic-lg.iconic-icon-sm > g.iconic-sm {display:inline;}\nsvg.iconic-md:not(.iconic-icon-sm):not(.iconic-icon-lg) > g.iconic-md, svg.iconic-sm.iconic-icon-md > g.iconic-md, svg.iconic-lg.iconic-icon-md > g.iconic-md {display:inline;}\nsvg.iconic-lg:not(.iconic-icon-sm):not(.iconic-icon-md) > g.iconic-lg, svg.iconic-sm.iconic-icon-lg > g.iconic-lg, svg.iconic-md.iconic-icon-lg > g.iconic-lg {display:inline;}";navigator&&navigator.userAgent&&/MSIE 10\.0/.test(navigator.userAgent)&&(t+="svg.iconic{zoom:1.0001;}");var e=document.createElement("style");e.id="iconic-responsive-css",e.type="text/css",e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t)),(document.head||document.getElementsByTagName("head")[0]).appendChild(e)},s=function(t){if(/iconic-fluid/.test(t.getAttribute("class"))){var e,i=o(t),r=t.viewBox.baseVal.width/t.viewBox.baseVal.height;e=1===r?Math.min(i.width,i.height):1>r?i.width:i.height;var s;s=32>e?"iconic-sm":e>=32&&128>e?"iconic-md":"iconic-lg";var a=t.getAttribute("class"),c=n.test(a)?a.replace(n,s):a+" "+s;t.setAttribute("class",c)}},a=function(){var t=document.querySelectorAll(".injected-svg.iconic-fluid");Array.prototype.forEach.call(t,function(t){s(t)})};document.addEventListener("DOMContentLoaded",function(){r()}),window.addEventListener("resize",function(){a()}),e.exports={refresh:s,refreshAll:a}},{}],8:[function(e,n,i){!function(e,o){"use strict";function r(t){t=t.split(" ");for(var e={},n=t.length,i=[];n--;)e.hasOwnProperty(t[n])||(e[t[n]]=1,i.unshift(t[n]));return i.join(" ")}var s="file:"===e.location.protocol,a=o.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1"),c=Array.prototype.forEach||function(t,e){if(void 0===this||null===this||"function"!=typeof t)throw new TypeError;var n,i=this.length>>>0;for(n=0;i>n;++n)n in this&&t.call(e,this[n],n,this)},l={},u=0,h=[],p=[],f={},d=function(t){return t.cloneNode(!0)},g=function(t,e){p[t]=p[t]||[],p[t].push(e)},m=function(t){for(var e=0,n=p[t].length;n>e;e++)!function(e){setTimeout(function(){p[t][e](d(l[t]))},0)}(e)},v=function(t,n){if(void 0!==l[t])l[t]instanceof SVGSVGElement?n(d(l[t])):g(t,n);else{if(!e.XMLHttpRequest)return n("Browser does not support XMLHttpRequest"),!1;l[t]={},g(t,n);var i=new XMLHttpRequest;i.onreadystatechange=function(){if(4===i.readyState){if(404===i.status||null===i.responseXML)return n("Unable to load SVG file: "+t),s&&n("Note: SVG injection ajax calls do not work locally without adjusting security setting in your browser. Or consider using a local webserver."),n(),!1;if(!(200===i.status||s&&0===i.status))return n("There was a problem injecting the SVG: "+i.status+" "+i.statusText),!1;if(i.responseXML instanceof Document)l[t]=i.responseXML.documentElement;else if(DOMParser&&DOMParser instanceof Function){var e;try{var o=new DOMParser;e=o.parseFromString(i.responseText,"text/xml")}catch(r){e=void 0}if(!e||e.getElementsByTagName("parsererror").length)return n("Unable to parse SVG file: "+t),!1;l[t]=e.documentElement}m(t)}},i.open("GET",t),i.overrideMimeType&&i.overrideMimeType("text/xml"),i.send()}},b=function(t,n,i,o){var s=t.getAttribute("data-src")||t.getAttribute("src");if(!/svg$/i.test(s))return void o("Attempted to inject a file with a non-svg extension: "+s);if(!a){var l=t.getAttribute("data-fallback")||t.getAttribute("data-png");return void(l?(t.setAttribute("src",l),o(null)):i?(t.setAttribute("src",i+"/"+s.split("/").pop().replace(".svg",".png")),o(null)):o("This browser does not support SVG and no PNG fallback was defined."))}-1===h.indexOf(t)&&(h.push(t),t.setAttribute("src",""),v(s,function(i){if("undefined"==typeof i||"string"==typeof i)return o(i),!1;var a=t.getAttribute("id");a&&i.setAttribute("id",a);var l=t.getAttribute("title");l&&i.setAttribute("title",l);var p=[].concat(i.getAttribute("class")||[],"injected-svg",t.getAttribute("class")||[]).join(" ");i.setAttribute("class",r(p));var d=t.getAttribute("style");d&&i.setAttribute("style",d);var g=[].filter.call(t.attributes,function(t){return/^data-\w[\w\-]*$/.test(t.name)});c.call(g,function(t){t.name&&t.value&&i.setAttribute(t.name,t.value)});for(var m,v=i.querySelectorAll("defs clipPath[id]"),b=0,y=v.length;y>b;b++){m=v[b].id+"-"+u;for(var w=i.querySelectorAll('[clip-path*="'+v[b].id+'"]'),E=0,C=w.length;C>E;E++)w[E].setAttribute("clip-path","url(#"+m+")");v[b].id=m}i.removeAttribute("xmlns:a");for(var x,O,S=i.querySelectorAll("script"),A=[],T=0,N=S.length;N>T;T++)O=S[T].getAttribute("type"),O&&"application/ecmascript"!==O&&"application/javascript"!==O||(x=S[T].innerText||S[T].textContent,A.push(x),i.removeChild(S[T]));if(A.length>0&&("always"===n||"once"===n&&!f[s])){for(var M=0,P=A.length;P>M;M++)new Function(A[M])(e);f[s]=!0}t.parentNode.replaceChild(i,t),delete h[h.indexOf(t)],t=null,u++,o(i)}))},y=function(t,e,n){e=e||{};var i=e.evalScripts||"always",o=e.pngFallback||!1,r=e.each;if(void 0!==t.length){var s=0;c.call(t,function(e){b(e,i,o,function(e){r&&"function"==typeof r&&r(e),n&&t.length===++s&&n(s)})})}else t?b(t,i,o,function(e){r&&"function"==typeof r&&r(e),n&&n(1),t=null}):n&&n(0)};"object"==typeof n&&"object"==typeof n.exports?n.exports=i=y:"function"==typeof t&&t.amd?t(function(){return y}):"object"==typeof e&&(e.SVGInjector=y)}(window,document)},{}]},{},[1])(1)})},function(t,e,n){"use strict";var i=n(12),o=n(27),r=i.createClass({displayName:"AccordionItem",render:function(){var t={"accordion-item":!0,"is-active":this.props.active};return i.createElement("div",{className:o(t)},i.createElement("div",{className:"accordion-title",onClick:this.props.activate},this.props.title),i.createElement("div",{className:"accordion-content"},this.props.children))}});t.exports=r},function(t,e,n){"use strict";var i=n(12),o=i.createClass({displayName:"ActionSheetButton",toggle:function(){this.props.setActiveState(!this.props.active)},render:function(){var t=null;return this.props.title.length>0&&(t=i.createElement("a",{className:"button"},this.props.title)),i.createElement("div",{onClick:this.toggle},t,i.createElement("div",null,this.props.children))}});t.exports=o},function(t,e,n){"use strict";var i=n(12),o=n(27),r=i.createClass({displayName:"ActionSheetContent",getDefaultProps:function(){return{position:"bottom"}},render:function(){var t={"action-sheet":!0,"is-active":this.props.active};return i.createElement("div",{className:o(t)},this.props.children)}});t.exports=r},function(t,e,n){"use strict";var i=n(12),o=n(28),r=n(29),s=n(25),a=(n(27),i.createClass({displayName:"Animation",getInitialState:function(){return{}},getDefaultProps:function(){return{active:!1,animationIn:"",animationOut:""}},reflow:function(t){return t.offsetWidth},reset:function(t){t.style.transitionDuration=0,r.removeClass(t,"ng-enter"),r.removeClass(t,"ng-leave"),r.removeClass(t,"ng-enter-active"),r.removeClass(t,"ng-leave-active"),r.removeClass(t,this.props.animationIn),r.removeClass(t,this.props.animationOut)},finishAnimation:function(){var t=this.getDOMNode();this.reset(t),r.removeClass(t,this.props.active?"":"is-active"),this.reflow(t),o.removeEndEventListener(t,this.finishAnimation)},animate:function(t,e){var n=this.getDOMNode(),i="ng-"+e,s=i+"-active";this.reset(n),r.addClass(n,t),r.addClass(n,i),r.addClass(n,"is-active"),this.reflow(n),n.style.transitionDuration="",r.addClass(n,s),o.addEndEventListener(n,this.finishAnimation)},componentDidUpdate:function(t){if(t.active!==this.props.active){var e=this.props.active?this.props.animationIn:this.props.animationOut,n=this.props.active?"enter":"leave";this.animate(e,n)}},render:function(){var t=i.Children.only(this.props.children),e={};return s(t,e)}}));t.exports=a},function(t,e,n){"use strict";var i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},o=n(12),r=n(13),s=n(30),a=(n(18),o.createClass({displayName:"NotificationSet",getInitialState:function(){return{notifications:[]}},componentDidMount:function(){r.subscribe(this.props.id,function(t,e){"clearall"===e?this.clearAll():this.addNotification(e)}.bind(this))},addNotification:function(t){t.id=r.generateUuid();var e=this.state.notifications.concat(t);this.setState({notifications:e})},removeNotifcation:function(t){return function(e){var n=[];this.state.notifications.forEach(function(e){e.id!==t&&n.push(e)}),this.setState({notifications:n}),e.preventDefault()}.bind(this)},clearAll:function(){this.setState({notifications:[]})},render:function(){var t=this.state.notifications.map(function(t){return o.createElement(s,i({key:t.id},t,{closeHandler:this.removeNotifcation(t.id),className:"is-active"}),t.content)}.bind(this));return o.createElement("div",null,t)}}));t.exports=a},function(t,e,n){"use strict";var i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},o=n(12),r=(n(27),n(13)),s=n(18),a=n(30),c=o.createClass({displayName:"NotificationStatic",getInitialState:function(){return{open:!1}},componentDidMount:function(){r.subscribe(this.props.id,function(t,e){"open"===e?this.setState({open:!0}):"close"===e&&this.setState({open:!1})}.bind(this))},componentWillUnmount:function(){r.unsubscribe(this.props.id)},closeHandler:function(t){this.setState({open:!1}),t.preventDefault(),t.stopPropagation()},render:function(){return o.createElement(s,{active:this.state.open,animationIn:"fadeIn",animationOut:"fadeOut"},o.createElement(a,i({},this.props,{closeHandler:this.closeHandler}),this.props.children))}});t.exports=c},function(t,e,n){"use strict";var i=n(12),o=n(27),r=i.createClass({displayName:"Tab",componentDidMount:function(){this.props.active&&this.select()},select:function(){var t={selectedTab:this.props.index,content:this.props.children};this.props.selectTab(t)},render:function(){var t={"tab-item":!0,"is-active":this.props.active};return i.createElement("div",{className:o(t),onClick:this.select},this.props.title)}});t.exports=r},function(t,e,n){"use strict";var i=n(12),o=n(13),r=n(25),s=i.createClass({displayName:"PopupToggle",clickHandler:function(t,e){e.preventDefault(),o.publish(this.props.popupToggle,["toggle",t])},render:function(){var t=i.Children.only(this.props.children),e=this.props.id||o.generateUuid();return r(t,{id:e,onClick:this.clickHandler.bind(this,e)})}});t.exports=s},function(t,e,n){var i=n(37),o=i&&n(40),r=n(38),s={media:function(t,e){t=r(t),"function"==typeof e&&(e={match:e}),o.register(t,e),this._responsiveMediaHandlers||(this._responsiveMediaHandlers=[]),this._responsiveMediaHandlers.push({query:t,handler:e})},componentWillUnmount:function(){this._responsiveMediaHandlers.forEach(function(t){o.unregister(t.query,t.handler)})}};t.exports=s},function(t,e,n){"use strict";var i=n(12),o=n(25),r=i.createClass({displayName:"Accordion",getInitialState:function(){return{sections:[]}},getDefaultProps:function(){return{autoOpen:!0,multiOpen:!1,collapsible:!1}},componentWillMount:function(){var t=[];i.Children.forEach(this.props.children,function(e,n){t.push({active:!1})}),this.props.autoOpen&&(t[0].active=!0),this.setState({sections:t})},select:function(t){var e=this.state.sections;e.forEach(function(e,n){this.props.multiOpen?n===t&&(e.active=!e.active):n===t?e.active=this.props.collapsible===!0?!e.active:!0