parcelRequire=function(e,r,t,n){var i,o="function"==typeof parcelRequire&&parcelRequire,u="function"==typeof require&&require;function f(t,n){if(!r[t]){if(!e[t]){var i="function"==typeof parcelRequire&&parcelRequire;if(!n&&i)return i(t,!0);if(o)return o(t,!0);if(u&&"string"==typeof t)return u(t);var c=new Error("Cannot find module '"+t+"'");throw c.code="MODULE_NOT_FOUND",c}p.resolve=function(r){return e[t][1][r]||r},p.cache={};var l=r[t]=new f.Module(t);e[t][0].call(l.exports,p,l,l.exports,this)}return r[t].exports;function p(e){return f(p.resolve(e))}}f.isParcelRequire=!0,f.Module=function(e){this.id=e,this.bundle=f,this.exports={}},f.modules=e,f.cache=r,f.parent=o,f.register=function(r,t){e[r]=[function(e,r){r.exports=t},{}]};for(var c=0;c<t.length;c++)try{f(t[c])}catch(e){i||(i=e)}if(t.length){var l=f(t[t.length-1]);"object"==typeof exports&&"undefined"!=typeof module?module.exports=l:"function"==typeof define&&define.amd?define(function(){return l}):n&&(this[n]=l)}if(parcelRequire=f,i)throw i;return f}({"tG4k":[function(require,module,exports) {
var e="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(e){var o=new Uint8Array(16);module.exports=function(){return e(o),o}}else{var r=new Array(16);module.exports=function(){for(var e,o=0;o<16;o++)0==(3&o)&&(e=4294967296*Math.random()),r[o]=e>>>((3&o)<<3)&255;return r}}
},{}],"NxCc":[function(require,module,exports) {
for(var r=[],o=0;o<256;++o)r[o]=(o+256).toString(16).substr(1);function t(o,t){var n=t||0,u=r;return[u[o[n++]],u[o[n++]],u[o[n++]],u[o[n++]],"-",u[o[n++]],u[o[n++]],"-",u[o[n++]],u[o[n++]],"-",u[o[n++]],u[o[n++]],"-",u[o[n++]],u[o[n++]],u[o[n++]],u[o[n++]],u[o[n++]],u[o[n++]]].join("")}module.exports=t;
},{}],"A0Zv":[function(require,module,exports) {
var r=require("./lib/rng"),n=require("./lib/bytesToUuid");function e(e,i,u){var a=i&&u||0;"string"==typeof e&&(i="binary"===e?new Array(16):null,e=null);var l=(e=e||{}).random||(e.rng||r)();if(l[6]=15&l[6]|64,l[8]=63&l[8]|128,i)for(var o=0;o<16;++o)i[a+o]=l[o];return i||n(l)}module.exports=e;
},{"./lib/rng":"tG4k","./lib/bytesToUuid":"NxCc"}],"i38W":[function(require,module,exports) {
"use strict";var e=t(require("uuid/v4"));function t(e){return e&&e.__esModule?e:{default:e}}function n(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"linear",i=arguments.length>3?arguments[3]:void 0;const o={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>e*(2-e),easeInOutQuad:e=>e<.5?2*e*e:(4-2*e)*e-1,easeInCubic:e=>e*e*e,easeOutCubic:e=>--e*e*e+1,easeInOutCubic:e=>e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1- --e*e*e*e,easeInOutQuart:e=>e<.5?8*e*e*e*e:1-8*--e*e*e*e,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1+--e*e*e*e*e,easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1+16*--e*e*e*e*e},d=window.pageYOffset,a="now"in window.performance?performance.now():(new Date).getTime(),r=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight),s=window.innerHeight||document.documentElement.clientHeight||document.getElementsByTagName("body")[0].clientHeight,c="number"==typeof e?e:e.offsetTop,l=Math.round(r-c<s?r-s:c);if("requestAnimationFrame"in window==!1)return window.scroll(0,l),void(i&&i());!function e(){const r="now"in window.performance?performance.now():(new Date).getTime(),s=Math.min(1,(r-a)/t),c=o[n](s);window.scroll(0,Math.ceil(c*(l-d)+d)),Math.ceil(window.pageYOffset)!==l?requestAnimationFrame(e):i&&i()}()}Math.easeInOutQuad=function(e,t,n,i){return(e/=i/2)<1?n/2*e*e+t:-n/2*(--e*(e-2)-1)+t};let i=!1;function o(){if(i)return;i=!0;const e=document.querySelector("head"),t=document.createElement("style");e.appendChild(t),t.type="text/css",t.innerHTML="\n\tiframe.--animate {\n\t\ttransition: 0.2s height;\n\t\twill-change: height;\n\t}\n\t"}class d{constructor(e){this.iframe=e,window.addEventListener("scroll",e=>this.update(),!1),window.addEventListener("resize",e=>this.update(),!1),window.addEventListener("orientationchange",e=>this.update(),!1),this.update()}update(){const e={cmd:"dimensions",dimensions:{width:window.innerWidth,height:window.innerHeight,scrollX:window.scrollX,scrollY:window.scrollY}};this.iframe._boundingClientRect=this.iframe.getBoundingClientRect(),this.iframe.contentWindow.postMessage(e,"*")}}function a(){try{throw new Error}catch(a){let r=a.stack.match(/(https?\:\/\/[^\s]+\.js)/);if(!r)return;const s=r[1],c=document.createElement("a");c.setAttribute("href",s);const l=c.protocol+"//"+c.hostname+(c.port&&!~["80","443",80,443].indexOf(c.port)?":"+c.port:""),u=document.querySelectorAll("[data-freddiemac-chart]"),m={};let w=0;for(w=0;w<u.length;w++){let n=u[w];if(n.querySelector("iframe"))continue;let i=document.createElement("iframe"),d=n.getAttribute("data-freddiemac-chart"),a=[],r=[].filter.call(n.attributes,function(e){return/^data-/.test(e.name)}),c=0;for(c=0;c<r.length;c++){let e=r[c],t=e.name.replace(/^data\-/,"").replace(/-(\w)/,e=>e[1].toUpperCase());a.push(t+"="+encodeURIComponent(e.value))}var t=(0,e.default)();a.push("_id="+t),i.setAttribute("src",s.replace(/common\/embed.*$/,d+"/embed.html?"+a.join("&"))),i.setAttribute("scrolling","no"),i.setAttribute("style","width:1px;min-width: 100%;border: 0;height:300px;display: block;"),n.appendChild(i),i._boundingClientRect=i.getBoundingClientRect(),m[t]=i,o()}function i(e){var t=null;for(t in m){const n=m[t];n._boundingClientRect||(n._boundingClientRect=n.getBoundingClientRect()),n.contentWindow.postMessage({cmd:e.type,event:{pageX:e.pageX,pageY:e.pageY,scrollX:window.scrollX,scrollY:window.scrollY},boundingClientRect:n._boundingClientRect,x:n._boundingClientRect.x+window.scrollX,y:n._boundingClientRect.y+window.scrollY},"*")}}window.addEventListener("message",function(e){if(l!==e.origin)return;let t=e.data;if(!t||!t.id||!m[t.id])return;let i=m[t.id];if("height"==t.event&&t.data.height)i.classList.add("--animate"),i.addEventListener("transitionend",function(){this.classList.remove("--animate")},{once:!0}),i.style.height=t.data.height+"px";else if("scroll"==t.event&&t.data.scrollTo>-1){const e=i.getBoundingClientRect();n(t.data.scrollTo+e.top+(void 0===window.scrollY?window.pageYOffset:window.scrollY),400,"easeInOutQuad")}else"watchDimensions"==t.event&&new d(i)}),window.addEventListener("mouseup",i,!1),window.addEventListener("mousedown",i,!1),window.addEventListener("mousemove",i,!1)}}"complete"===document.readyState?a():document.addEventListener("DOMContentLoaded",a);
},{"uuid/v4":"A0Zv"}]},{},["i38W"], null)
//# sourceMappingURL=/embed.js.map