(self.webpackChunkcircle=self.webpackChunkcircle||[]).push([[1034],{56463:t=>{function e(t){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}e.keys=()=>[],e.resolve=e,e.id=56463,t.exports=e},28729:(t,e,o)=>{var n=o(56463);n.keys().forEach(n)},41307:(t,e,o)=>{"use strict";var n=o(80812),i=o(76614),r=o.n(i),s=(o(55552),o(85810),o(79253));o(66337),window.Rails=o(18535),o(12918).start(),o(79292).start(),o(28729),o(22837),o(7552),window.I18n=n.Z,r().start();window.initialiseTippy=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,e=(0,s.ZP)(t.querySelectorAll("[data-tippy-content]"),{allowHTML:!0});document.addEventListener("touchstart",(function t(){e.forEach((function(t){t.destroy()})),document.removeEventListener("touchstart",t)}))},document.addEventListener("turbolinks:load",(function(){if(window.initialiseTippy(),document.querySelectorAll(".iframe-mode")[0])for(var t=document.getElementsByTagName("a"),e=0,o=t.length;e<o;e++)t[e].target="_blank";window.location.href.includes("show_back_link=true")&&window.history.replaceState({},document.title,location.href.split("?")[0])})),document.addEventListener("turbolinks:click",(function(t){var e=t.target;e.hash&&e.origin===window.location.origin&&e.pathname===window.location.pathname&&(Turbolinks.controller.pushHistoryWithLocationAndRestorationIdentifier(t.data.url,Turbolinks.uuid()),t.preventDefault())})),document.addEventListener("turbolinks:load",(function(){if(window.location.hash){var t=document.getElementById(window.location.hash.slice(1));if(t)return void t.scrollIntoView(!0);var e=document.getElementsByName(window.location.hash.slice(1));e.length&&e[0].scrollIntoView(!0)}})),window.loadOembed=function(){var t,e,o,n;null===(t=window.instgrm)||void 0===t||t.Embeds.process(),null===(e=window.FB)||void 0===e||e.init({xfbml:!0,version:"v12.0"}),null===(o=window.twttr)||void 0===o||null===(n=o.widgets)||void 0===n||n.load()},document.addEventListener("turbolinks:load",(function(){window.loadOembed()})),window.webview={isComingFromReactNativeWebview:!1,isComingFromReactNativeAuthenticatedWebview:!1,isInsideMobileWebview:!1},Rails.start()},66337:()=>{!function(){"use strict";if("object"===typeof window)if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var t=function(t){for(var e=window.document,o=i(e);o;)o=i(e=o.ownerDocument);return e}(),e=[],o=null,n=null;s.prototype.THROTTLE_TIMEOUT=100,s.prototype.POLL_INTERVAL=null,s.prototype.USE_MUTATION_OBSERVER=!0,s._setupCrossOriginUpdater=function(){return o||(o=function(t,o){n=t&&o?l(t,o):{top:0,bottom:0,left:0,right:0,width:0,height:0},e.forEach((function(t){t._checkForIntersections()}))}),o},s._resetCrossOriginUpdater=function(){o=null,n=null},s.prototype.observe=function(t){if(!this._observationTargets.some((function(e){return e.element==t}))){if(!t||1!=t.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:t,entry:null}),this._monitorIntersections(t.ownerDocument),this._checkForIntersections()}},s.prototype.unobserve=function(t){this._observationTargets=this._observationTargets.filter((function(e){return e.element!=t})),this._unmonitorIntersections(t.ownerDocument),0==this._observationTargets.length&&this._unregisterInstance()},s.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},s.prototype.takeRecords=function(){var t=this._queuedEntries.slice();return this._queuedEntries=[],t},s.prototype._initThresholds=function(t){var e=t||[0];return Array.isArray(e)||(e=[e]),e.sort().filter((function(t,e,o){if("number"!=typeof t||isNaN(t)||t<0||t>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return t!==o[e-1]}))},s.prototype._parseRootMargin=function(t){var e=(t||"0px").split(/\s+/).map((function(t){var e=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(!e)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(e[1]),unit:e[2]}}));return e[1]=e[1]||e[0],e[2]=e[2]||e[0],e[3]=e[3]||e[1],e},s.prototype._monitorIntersections=function(e){var o=e.defaultView;if(o&&-1==this._monitoringDocuments.indexOf(e)){var n=this._checkForIntersections,r=null,s=null;this.POLL_INTERVAL?r=o.setInterval(n,this.POLL_INTERVAL):(h(o,"resize",n,!0),h(e,"scroll",n,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in o&&(s=new o.MutationObserver(n)).observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(e),this._monitoringUnsubscribes.push((function(){var t=e.defaultView;t&&(r&&t.clearInterval(r),c(t,"resize",n,!0)),c(e,"scroll",n,!0),s&&s.disconnect()}));var u=this.root&&(this.root.ownerDocument||this.root)||t;if(e!=u){var a=i(e);a&&this._monitorIntersections(a.ownerDocument)}}},s.prototype._unmonitorIntersections=function(e){var o=this._monitoringDocuments.indexOf(e);if(-1!=o){var n=this.root&&(this.root.ownerDocument||this.root)||t,r=this._observationTargets.some((function(t){var o=t.element.ownerDocument;if(o==e)return!0;for(;o&&o!=n;){var r=i(o);if((o=r&&r.ownerDocument)==e)return!0}return!1}));if(!r){var s=this._monitoringUnsubscribes[o];if(this._monitoringDocuments.splice(o,1),this._monitoringUnsubscribes.splice(o,1),s(),e!=n){var h=i(e);h&&this._unmonitorIntersections(h.ownerDocument)}}}},s.prototype._unmonitorAllIntersections=function(){var t=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var e=0;e<t.length;e++)t[e]()},s.prototype._checkForIntersections=function(){if(this.root||!o||n){var t=this._rootIsInDom(),e=t?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach((function(n){var i=n.element,s=u(i),h=this._rootContainsTarget(i),c=n.entry,a=t&&h&&this._computeTargetAndRootIntersection(i,s,e),l=null;this._rootContainsTarget(i)?o&&!this.root||(l=e):l={top:0,bottom:0,left:0,right:0,width:0,height:0};var d=n.entry=new r({time:window.performance&&performance.now&&performance.now(),target:i,boundingClientRect:s,rootBounds:l,intersectionRect:a});c?t&&h?this._hasCrossedThreshold(c,d)&&this._queuedEntries.push(d):c&&c.isIntersecting&&this._queuedEntries.push(d):this._queuedEntries.push(d)}),this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},s.prototype._computeTargetAndRootIntersection=function(e,i,r){if("none"!=window.getComputedStyle(e).display){for(var s,h,c,a,d,p,m,g,w=i,v=f(e),b=!1;!b&&v;){var _=null,y=1==v.nodeType?window.getComputedStyle(v):{};if("none"==y.display)return null;if(v==this.root||9==v.nodeType)if(b=!0,v==this.root||v==t)o&&!this.root?!n||0==n.width&&0==n.height?(v=null,_=null,w=null):_=n:_=r;else{var E=f(v),I=E&&u(E),T=E&&this._computeTargetAndRootIntersection(E,I,r);I&&T?(v=E,_=l(I,T)):(v=null,w=null)}else{var R=v.ownerDocument;v!=R.body&&v!=R.documentElement&&"visible"!=y.overflow&&(_=u(v))}if(_&&(s=_,h=w,c=void 0,a=void 0,d=void 0,p=void 0,m=void 0,g=void 0,c=Math.max(s.top,h.top),a=Math.min(s.bottom,h.bottom),d=Math.max(s.left,h.left),p=Math.min(s.right,h.right),g=a-c,w=(m=p-d)>=0&&g>=0&&{top:c,bottom:a,left:d,right:p,width:m,height:g}||null),!w)break;v=v&&f(v)}return w}},s.prototype._getRootRect=function(){var e;if(this.root&&!p(this.root))e=u(this.root);else{var o=p(this.root)?this.root:t,n=o.documentElement,i=o.body;e={top:0,left:0,right:n.clientWidth||i.clientWidth,width:n.clientWidth||i.clientWidth,bottom:n.clientHeight||i.clientHeight,height:n.clientHeight||i.clientHeight}}return this._expandRectByRootMargin(e)},s.prototype._expandRectByRootMargin=function(t){var e=this._rootMarginValues.map((function(e,o){return"px"==e.unit?e.value:e.value*(o%2?t.width:t.height)/100})),o={top:t.top-e[0],right:t.right+e[1],bottom:t.bottom+e[2],left:t.left-e[3]};return o.width=o.right-o.left,o.height=o.bottom-o.top,o},s.prototype._hasCrossedThreshold=function(t,e){var o=t&&t.isIntersecting?t.intersectionRatio||0:-1,n=e.isIntersecting?e.intersectionRatio||0:-1;if(o!==n)for(var i=0;i<this.thresholds.length;i++){var r=this.thresholds[i];if(r==o||r==n||r<o!==r<n)return!0}},s.prototype._rootIsInDom=function(){return!this.root||d(t,this.root)},s.prototype._rootContainsTarget=function(e){var o=this.root&&(this.root.ownerDocument||this.root)||t;return d(o,e)&&(!this.root||o==e.ownerDocument)},s.prototype._registerInstance=function(){e.indexOf(this)<0&&e.push(this)},s.prototype._unregisterInstance=function(){var t=e.indexOf(this);-1!=t&&e.splice(t,1)},window.IntersectionObserver=s,window.IntersectionObserverEntry=r}function i(t){try{return t.defaultView&&t.defaultView.frameElement||null}catch(e){return null}}function r(t){this.time=t.time,this.target=t.target,this.rootBounds=a(t.rootBounds),this.boundingClientRect=a(t.boundingClientRect),this.intersectionRect=a(t.intersectionRect||{top:0,bottom:0,left:0,right:0,width:0,height:0}),this.isIntersecting=!!t.intersectionRect;var e=this.boundingClientRect,o=e.width*e.height,n=this.intersectionRect,i=n.width*n.height;this.intersectionRatio=o?Number((i/o).toFixed(4)):this.isIntersecting?1:0}function s(t,e){var o,n,i,r=e||{};if("function"!=typeof t)throw new Error("callback must be a function");if(r.root&&1!=r.root.nodeType&&9!=r.root.nodeType)throw new Error("root must be a Document or Element");this._checkForIntersections=(o=this._checkForIntersections.bind(this),n=this.THROTTLE_TIMEOUT,i=null,function(){i||(i=setTimeout((function(){o(),i=null}),n))}),this._callback=t,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(r.rootMargin),this.thresholds=this._initThresholds(r.threshold),this.root=r.root||null,this.rootMargin=this._rootMarginValues.map((function(t){return t.value+t.unit})).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}function h(t,e,o,n){"function"==typeof t.addEventListener?t.addEventListener(e,o,n||!1):"function"==typeof t.attachEvent&&t.attachEvent("on"+e,o)}function c(t,e,o,n){"function"==typeof t.removeEventListener?t.removeEventListener(e,o,n||!1):"function"==typeof t.detatchEvent&&t.detatchEvent("on"+e,o)}function u(t){var e;try{e=t.getBoundingClientRect()}catch(o){}return e?(e.width&&e.height||(e={top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.right-e.left,height:e.bottom-e.top}),e):{top:0,bottom:0,left:0,right:0,width:0,height:0}}function a(t){return!t||"x"in t?t:{top:t.top,y:t.top,bottom:t.bottom,left:t.left,x:t.left,right:t.right,width:t.width,height:t.height}}function l(t,e){var o=e.top-t.top,n=e.left-t.left;return{top:o,left:n,height:e.height,width:e.width,bottom:o+e.height,right:n+e.width}}function d(t,e){for(var o=e;o;){if(o==t)return!0;o=f(o)}return!1}function f(e){var o=e.parentNode;return 9==e.nodeType&&e!=t?i(e):(o&&o.assignedSlot&&(o=o.assignedSlot.parentNode),o&&11==o.nodeType&&o.host?o.host:o)}function p(t){return t&&9===t.nodeType}}()}},t=>{t.O(0,[532,589,7762,3530,7686,2837,9541,3041,4,3854,2873,3316,1443,4476,5591,3739,3694,8838,3252,4593,4061,1956,1356,4040,5363,6254,7844,8535,2028,6674,7392,1574,8286,6030,6144,7209,6106,123,7649,4049,6270,6508,6769,8111],(()=>{return e=41307,t(t.s=e);var e}));t.O()}]);
//# sourceMappingURL=/packs/js/application-8ea6aed4684d13772124.js.map