Market Futures
"use strict";function _arrayLikeToArray(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n
1?e-1:0),r=1;r32){for(var e=[],n=t.ctx.length/32,r=0;r>1);n(o)<=r?t=o+1:e=o}return t}function init_hydrate(t){if(!t.hydrate_init){t.hydrate_init=!0;var e=t.childNodes;if("HEAD"===t.nodeName){for(var n=[],r=0;r0&&e[i[c]].claim_order<=u?c+1:upper_bound(1,c,function(t){return e[i[t]].claim_order},u))-1;a[s]=i[l]+1;var _=l+1;i[_]=s,c=Math.max(_,c)}for(var f=[],d=[],p=e.length-1,h=i[c]+1;0!=h;h=a[h-1]){for(f.push(e[h-1]);p>=h;p--)d.push(e[p]);p--}for(;p>=0;p--)d.push(e[p]);f.reverse(),d.sort(function(t,e){return t.claim_order-e.claim_order});for(var v=0,m=0;v=f[m].claim_order;)m++;var y=m4&&void 0!==arguments[4]&&arguments[4];init_claim_info(t);var i=function(){for(var i=t.claim_info.last_index;i=0;s--){var u=t[s];if(e(u)){var l=n(u);return void 0===l?t.splice(s,1):t[s]=l,o?void 0===l&&t.claim_info.last_index--:t.claim_info.last_index=s,u}}return r()}();return i.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,i}function claim_element_base(t,e,n,r){return claim_node(t,function(t){return t.nodeName===e},function(t){for(var e=[],r=0;ronresize=function(){parent.postMessage(0,'*')}<\/script>",r=listen(window,"message",function(t){t.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=function(){r=listen(n.contentWindow,"resize",e)}),append(t,n),function(){o?r():r&&n.contentWindow&&r(),detach(n)}}function toggle_class(t,e,n){t.classList[n?"add":"remove"](e)}function custom_event(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.bubbles,o=void 0!==r&&r,i=n.cancelable,a=void 0!==i&&i,c=document.createEvent("CustomEvent");return c.initCustomEvent(t,o,a,e),c}var current_component,HtmlTag=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];_classCallCheck(this,t),this.is_svg=!1,this.is_svg=e,this.e=this.n=null}return _createClass(t,[{key:"c",value:function(t){this.h(t)}},{key:"m",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.e||(this.is_svg?this.e=svg_element(e.nodeName):this.e=element(e.nodeName),this.t=e,this.c(t)),this.i(n)}},{key:"h",value:function(t){this.e.innerHTML=t,this.n=Array.from(this.e.childNodes)}},{key:"i",value:function(t){for(var e=0;e1&&void 0!==arguments[1]&&arguments[1];return _classCallCheck(this,n),(r=e.call(this,o)).e=r.n=null,r.l=t,r}return _createClass(n,[{key:"c",value:function(t){this.l?this.n=this.l:_get(_getPrototypeOf(n.prototype),"c",this).call(this,t)}},{key:"i",value:function(t){for(var e=0;e>>0}function create_style_information(t,e){var n={stylesheet:append_empty_stylesheet(e),rules:{}};return managed_styles.set(t,n),n}function create_rule(t,e,n,r,o,i,a){for(var c=arguments.length>7&&void 0!==arguments[7]?arguments[7]:0,s=16.666/r,u="{\n",l=0;l<=1;l+=s){var _=e+(n-e)*i(l);u+=100*l+"%{".concat(a(_,1-_),"}\n")}var f=u+"100% {".concat(a(n,1-n),"}\n}"),d="__svelte_".concat(hash(f),"_").concat(c),p=get_root_for_style(t),h=managed_styles.get(p)||create_style_information(p,t),v=h.stylesheet,m=h.rules;m[d]||(m[d]=!0,v.insertRule("@keyframes ".concat(d," ").concat(f),v.cssRules.length));var y=t.style.animation||"";return t.style.animation="".concat(y?"".concat(y,", "):"").concat(d," ").concat(r,"ms linear ").concat(o,"ms 1 both"),active+=1,d}function delete_rule(t,e){var n=(t.style.animation||"").split(", "),r=n.filter(e?function(t){return t.indexOf(e)<0}:function(t){return-1===t.indexOf("__svelte")}),o=n.length-r.length;o&&(t.style.animation=r.join(", "),(active-=o)||clear_rules())}function clear_rules(){raf(function(){active||(managed_styles.forEach(function(t){for(var e=t.stylesheet,n=e.cssRules.length;n--;)e.deleteRule(n);t.rules={}}),managed_styles.clear())})}function create_animation(t,e,n,r){var o=function(){b&&delete_rule(t,a),x=!1};if(!e)return noop;var i=t.getBoundingClientRect();if(e.left===i.left&&e.right===i.right&&e.top===i.top&&e.bottom===i.bottom)return noop;var a,c=n(t,{from:e,to:i},r),s=c.delay,u=void 0===s?0:s,l=c.duration,_=void 0===l?300:l,f=c.easing,d=void 0===f?identity:f,p=c.start,h=void 0===p?now()+u:p,v=c.end,m=void 0===v?h+_:v,y=c.tick,g=void 0===y?noop:y,b=c.css,x=!0,k=!1;return loop(function(t){if(!k&&t>=h&&(k=!0),k&&t>=m&&(g(1,0),o()),!x)return!1;if(k){var e=0+1*d((t-h)/_);g(e,1-e)}return!0}),b&&(a=create_rule(t,0,1,_,u,d,b)),u||(k=!0),g(0,1),o}function fix_position(t){var e=getComputedStyle(t);if("absolute"!==e.position&&"fixed"!==e.position){var n=e.width,r=e.height,o=t.getBoundingClientRect();t.style.position="absolute",t.style.width=n,t.style.height=r,add_transform(t,o)}}function add_transform(t,e){var n=t.getBoundingClientRect();if(e.left!==n.left||e.top!==n.top){var r=getComputedStyle(t),o="none"===r.transform?"":r.transform;t.style.transform="".concat(o," translate(").concat(e.left-n.left,"px, ").concat(e.top-n.top,"px)")}}function set_current_component(t){current_component=t}function get_current_component(){if(!current_component)throw new Error("Function called outside component initialization");return current_component}function beforeUpdate(t){get_current_component().$$.before_update.push(t)}function onMount(t){get_current_component().$$.on_mount.push(t)}function afterUpdate(t){get_current_component().$$.after_update.push(t)}function onDestroy(t){get_current_component().$$.on_destroy.push(t)}function createEventDispatcher(){var t=get_current_component();return function(e,n){var r=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).cancelable,o=void 0!==r&&r,i=t.$$.callbacks[e];if(i){var a=custom_event(e,n,{cancelable:o});return i.slice().forEach(function(e){e.call(t,a)}),!a.defaultPrevented}return!0}}function setContext(t,e){return get_current_component().$$.context.set(t,e),e}function getContext(t){return get_current_component().$$.context.get(t)}function bubble(t,e){var n=this,r=t.$$.callbacks[e.type];r&&r.slice().forEach(function(t){return t.call(n,e)})}var dirty_components=[],binding_callbacks=[],render_callbacks=[],flush_callbacks=[],resolved_promise=Promise.resolve(),update_scheduled=!1;function schedule_update(){update_scheduled||(update_scheduled=!0,resolved_promise.then(flush))}function tick(){return schedule_update(),resolved_promise}function add_render_callback(t){render_callbacks.push(t)}function add_flush_callback(t){flush_callbacks.push(t)}var promise,seen_callbacks=new Set,flushidx=0;function flush(){var t=current_component;do{for(;flushidx=y)return h(1,0),dispatch(t,!0,"end"),i(),s=!1;if(e>=m){var n=d((e-m)/_);h(n,1-n)}}return s})},c=e(t,n),s=!1,u=0,l=!1;return{start:function(){l||(l=!0,delete_rule(t),is_function(c)?(c=c(),wait().then(a)):a())},invalidate:function(){l=!1},end:function(){s&&(i(),s=!1)}}}function create_out_transition(t,e,n){var r,o=function(){var e=i||null_transition,n=e.delay,o=void 0===n?0:n,s=e.duration,u=void 0===s?300:s,l=e.easing,_=void 0===l?identity:l,f=e.tick,d=void 0===f?noop:f,p=e.css;p&&(r=create_rule(t,1,0,u,o,_,p));var h=now()+o,v=h+u;add_render_callback(function(){return dispatch(t,!1,"start")}),loop(function(e){if(a){if(e>=v)return d(0,1),dispatch(t,!1,"end"),--c.r||run_all(c.c),!1;if(e>=h){var n=_((e-h)/u);d(1-n,n)}}return a})},i=e(t,n),a=!0,c=outros;return c.r+=1,is_function(i)?wait().then(function(){i=i(),o()}):o(),{end:function(e){e&&i.tick&&i.tick(1,0),a&&(r&&delete_rule(t,r),a=!1)}}}function create_bidirectional_transition(t,e,n,r){var o=function(){_&&delete_rule(t,_)},i=function(t,e){var n=t.b-s;return e*=Math.abs(n),{a:s,b:t.b,d:n,duration:e,start:t.start,end:t.start+e,group:t.group}},a=function(e){var n=c||null_transition,r=n.delay,a=void 0===r?0:r,f=n.duration,d=void 0===f?300:f,p=n.easing,h=void 0===p?identity:p,v=n.tick,m=void 0===v?noop:v,y=n.css,g={start:now()+a,b:e};e||(g.group=outros,outros.r+=1),u||l?l=g:(y&&(o(),_=create_rule(t,s,e,d,a,h,y)),e&&m(0,1),u=i(g,d),add_render_callback(function(){return dispatch(t,e,"start")}),loop(function(e){if(l&&e>l.start&&(u=i(l,d),l=null,dispatch(t,u.b,"start"),y&&(o(),_=create_rule(t,s,u.b,u.duration,0,h,c.css))),u)if(e>=u.end)m(s=u.b,1-s),dispatch(t,u.b,"end"),l||(u.b?o():--u.group.r||run_all(u.group.c)),u=null;else if(e>=u.start){var n=e-u.start;s=u.a+u.d*h(n/u.duration),m(s,1-s)}return!(!u&&!l)}))},c=e(t,n),s=r?0:1,u=null,l=null,_=null;return{run:function(t){is_function(c)?wait().then(function(){c=c(),a(t)}):a(t)},end:function(){o(),u=l=null}}}var globals="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function destroy_block(t,e){t.d(1),e.delete(t.key)}function outro_and_destroy_block(t,e){transition_out(t,1,1,function(){e.delete(t.key)})}function fix_and_outro_and_destroy_block(t,e){t.f(),outro_and_destroy_block(t,e)}function update_keyed_each(t,e,n,r,o,i,a,c,s,u,l,_){for(var f=function(t){transition_in(t,1),t.m(c,l),a.set(t.key,t),l=t.first,p--},d=t.length,p=i.length,h=d,v={};h--;)v[t[h].key]=h;var m=[],y=new Map,g=new Map;for(h=p;h--;){var b=_(o,i,h),x=n(b),k=a.get(x);k?r&&k.p(b,e):(k=u(x,b)).c(),y.set(x,m[h]=k),x in v&&g.set(x,Math.abs(h-v[x]))}for(var $=new Set,w=new Set;d&&p;){var C=m[p-1],S=t[d-1],O=C.key,A=S.key;C===S?(l=C.first,d--,p--):y.has(A)?!a.has(O)||$.has(O)?f(C):w.has(A)?d--:g.get(O)>g.get(A)?(w.add(O),f(C)):($.add(A),d--):(s(S,a),d--)}for(;d--;){var T=t[d];y.has(T.key)||s(T,a)}for(;p;)f(m[p-1]);return m}function get_spread_update(t,e){for(var n={},r={},o={$$scope:1},i=t.length;i--;){var a=t[i],c=e[i];if(c){for(var s in a)s in c||(r[s]=1);for(var u in c)o[u]||(n[u]=c[u],o[u]=1);t[i]=c}else for(var l in a)o[l]=1}for(var _ in r)_ in n||(n[_]=void 0);return n}function get_spread_object(t){return"object"==typeof t&&null!==t?t:{}}function bind(t,e,n){var r=t.$$.props[e];void 0!==r&&(t.$$.bound[r]=n,n(t.$$.ctx[r]))}function create_component(t){t&&t.c()}function claim_component(t,e){t&&t.l(e)}function mount_component(t,e,n,r){var o=t.$$,i=o.fragment,a=o.on_mount,c=o.on_destroy,s=o.after_update;i&&i.m(e,n),r||add_render_callback(function(){var e,n=a.map(run).filter(is_function);c?(e=c).push.apply(e,_toConsumableArray(n)):run_all(n);t.$$.on_mount=[]}),s.forEach(add_render_callback)}function destroy_component(t,e){var n=t.$$;null!==n.fragment&&(run_all(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function make_dirty(t,e){-1===t.$$.dirty[0]&&(dirty_components.push(t),schedule_update(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<7&&void 0!==arguments[7]?arguments[7]:[-1],s=current_component;set_current_component(t);var u=t.$$={fragment:null,ctx:null,props:i,update:noop,not_equal:o,bound:blank_object(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:blank_object(),dirty:c,skip_bound:!1,root:e.target||s.$$.root};a&&a(u.root);var l=!1;if(u.ctx=n?n(t,e.props||{},function(e,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),a=2;a