(function(){function t(e,r){if(Error.captureStackTrace)Error.captureStackTrace(this,t);else{var n=Error().stack;n&&(this.stack=n)}e&&(this.message=String(e)),void 0!==r&&(this.cause=r),this.reportErrorToServer=!0}function e(e,r){for(var n=e.split("%s"),o="",i=n.length-1,a=0;a<i;a++)o+=n[a]+(a<r.length?r[a]:"%s");t.call(this,o+n[i]),this.messagePattern=e}var r,n=function(t){var e=0;return function(){return e<t.length?{done:!1,value:t[e++]}:{done:!0}}},o="function"==typeof Object.defineProperties?Object.defineProperty:function(t,e,r){return t==Array.prototype||t==Object.prototype?t:(t[e]=r.value,t)},i=function(t){t=["object"==typeof globalThis&&globalThis,t,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var e=0;e<t.length;++e){var r=t[e];if(r&&r.Math==Math)return r}throw Error("Cannot find global object")},a=i(this),s=function(t,e){if(e)t:{var r=a;t=t.split(".");for(var n=0;n<t.length-1;n++){var i=t[n];if(!(i in r))break t;r=r[i]}t=t[t.length-1],n=r[t],e=e(n),e!=n&&null!=e&&o(r,t,{configurable:!0,writable:!0,value:e})}};s("Symbol",function(t){if(t)return t;var e=function(t,e){this.$jscomp$symbol$id_=t,o(this,"description",{configurable:!0,writable:!0,value:e})};e.prototype.toString=function(){return this.$jscomp$symbol$id_};var r="jscomp_symbol_"+(1e9*Math.random()>>>0)+"_",n=0,i=function(t){if(this instanceof i)throw new TypeError("Symbol is not a constructor");return new e(r+(t||"")+"_"+n++,t)};return i},"es6","es3"),s("Symbol.iterator",function(t){if(t)return t;t=Symbol("Symbol.iterator");for(var e="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),r=0;r<e.length;r++){var i=a[e[r]];"function"==typeof i&&"function"!=typeof i.prototype[t]&&o(i.prototype,t,{configurable:!0,writable:!0,value:function(){return c(n(this))}})}return t},"es6","es3");var c=function(t){return t={next:t},t[Symbol.iterator]=function(){return this},t},l=function(t,e,r){if(null==t)throw new TypeError("The 'this' value for String.prototype."+r+" must not be null or undefined");if(e instanceof RegExp)throw new TypeError("First argument to String.prototype."+r+" must not be a regular expression");return t+""};s("Array.prototype.find",function(t){return t||function(t,e){t:{var r=this;r instanceof String&&(r=String(r));for(var n=r.length,o=0;o<n;o++){var i=r[o];if(t.call(e,i,o,r)){t=i;break t}}t=void 0}return t}},"es6","es3");var u=function(t,e){t instanceof String&&(t+="");var r=0,n=!1,o={next:function(){if(!n&&r<t.length){var o=r++;return{value:e(o,t[o]),done:!1}}return n=!0,{done:!0,value:void 0}}};return o[Symbol.iterator]=function(){return o},o};s("Array.prototype.entries",function(t){return t||function(){return u(this,function(t,e){return[t,e]})}},"es6","es3"),s("Array.prototype.keys",function(t){return t||function(){return u(this,function(t){return t})}},"es6","es3"),s("Array.prototype.values",function(t){return t||function(){return u(this,function(t,e){return e})}},"es8","es3"),s("String.prototype.repeat",function(t){return t||function(t){var e=l(this,null,"repeat");if(0>t||1342177279<t)throw new RangeError("Invalid count value");t|=0;for(var r="";t;)1&t&&(r+=e),(t>>>=1)&&(e+=e);return r}},"es6","es3"),s("String.prototype.padStart",function(t){return t||function(t,e){var r=l(this,null,"padStart");return t-=r.length,e=void 0!==e?String(e):" ",(0<t&&e?e.repeat(Math.ceil(t/e.length)).substring(0,t):"")+r}},"es8","es3");var p=this||self,f=function(t,e,r,n){t=t.split("."),n=n||p,t[0]in n||void 0===n.execScript||n.execScript("var "+t[0]);for(var o;t.length&&(o=t.shift());)if(t.length||void 0===e)n=n[o]&&n[o]!==Object.prototype[o]?n[o]:n[o]={};else if(!r&&d(e)&&d(n[o]))for(var i in e)e.hasOwnProperty(i)&&(n[o][i]=e[i]);else n[o]=e},d=function(t){var e=typeof t;return"object"==e&&null!=t||"function"==e},h=function(t,e){function r(){}r.prototype=e.prototype,t.superClass_=e.prototype,t.prototype=new r,t.prototype.constructor=t,t.base=function(t,r,n){for(var o=Array(arguments.length-2),i=2;i<arguments.length;i++)o[i-2]=arguments[i];return e.prototype[r].apply(t,o)}},g=function(t){return t};h(t,Error),t.prototype.name="CustomError",h(e,t),e.prototype.name="AssertionError";var m,y=function(t,r){throw new e("Failure"+(t?": "+t:""),Array.prototype.slice.call(arguments,1))},v=function(t,e){if(e!==_)throw Error("SafeUrl is not meant to be built directly");this.privateDoNotAccessOrElseSafeUrlWrappedValue_=t};v.prototype.toString=function(){return this.privateDoNotAccessOrElseSafeUrlWrappedValue_.toString()},v.prototype.implementsGoogStringTypedString=!0,v.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeUrlWrappedValue_.toString()};var _={};new v("about:invalid#zClosurez",_),new v("about:blank",_);var S={},b=function(t,e){if(e!==S)throw Error("SafeStyle is not meant to be built directly");this.privateDoNotAccessOrElseSafeStyleWrappedValue_=t,this.implementsGoogStringTypedString=!0};b.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeStyleWrappedValue_},b.prototype.toString=function(){return this.privateDoNotAccessOrElseSafeStyleWrappedValue_.toString()},new b("",S);var E={},w=function(t,e){if(e!==E)throw Error("SafeStyleSheet is not meant to be built directly");this.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_=t,this.implementsGoogStringTypedString=!0};w.prototype.toString=function(){return this.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_.toString()},w.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_},new w("",E);var T={},I=function(t,e){if(e!==T)throw Error("SafeHtml is not meant to be built directly");this.privateDoNotAccessOrElseSafeHtmlWrappedValue_=t,this.implementsGoogStringTypedString=!0};I.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeHtmlWrappedValue_.toString()},I.prototype.toString=function(){return this.privateDoNotAccessOrElseSafeHtmlWrappedValue_.toString()},new I(p.trustedTypes&&p.trustedTypes.emptyHTML||"",T);var x=function(t,e){this.name=t,this.value=e};x.prototype.toString=function(){return this.name};var A,D=new x("OFF",1/0),N=new x("WARNING",900),O=new x("CONFIG",700),R=function(t){this.capacity_="number"==typeof t?t:0,this.clear()};r=R.prototype,r.addRecord=function(t,e,r){if(!this.isBufferingEnabled())return new M(t,e,r);var n=(this.curIndex_+1)%this.capacity_;return this.curIndex_=n,this.isFull_?(n=this.buffer_[n],n.reset(t,e,r),n):(this.isFull_=n==this.capacity_-1,this.buffer_[n]=new M(t,e,r))},r.forEachRecord=function(t){var e=this.buffer_;if(e[0]){var r=this.curIndex_,n=this.isFull_?r:-1;do{n=(n+1)%this.capacity_,t(e[n])}while(n!==r)}},r.isBufferingEnabled=function(){return 0<this.capacity_},r.isFull=function(){return this.isFull_},r.clear=function(){this.buffer_=Array(this.capacity_),this.curIndex_=-1,this.isFull_=!1};var M=function(t,e,r,n,o){this.exception_=void 0,this.reset(t||D,e,r,n,o)};r=M.prototype,r.reset=function(t,e,r,n,o){this.time_=n||Date.now(),this.level_=t,this.msg_=e,this.loggerName_=r,this.exception_=void 0,this.sequenceNumber_="number"==typeof o?o:C},r.getLoggerName=function(){return this.loggerName_},r.setLoggerName=function(t){this.loggerName_=t},r.getException=function(){return this.exception_},r.setException=function(t){this.exception_=t},r.getLevel=function(){return this.level_},r.setLevel=function(t){this.level_=t},r.getMessage=function(){return this.msg_},r.setMessage=function(t){this.msg_=t},r.getMillis=function(){return this.time_},r.setMillis=function(t){this.time_=t},r.getSequenceNumber=function(){return this.sequenceNumber_};var C=0,W=function(t,e){this.level=null,this.handlers=[],this.parent=(void 0===e?null:e)||null,this.children=[],this.logger={getName:function(){return t}}};W.prototype.getEffectiveLevel=function(){return this.level?this.level:this.parent?this.parent.getEffectiveLevel():(y("Root logger has no level set."),D)},W.prototype.publish=function(t){for(var e=this;e;)e.handlers.forEach(function(e){e(t)}),e=e.parent};var L,P=function(){this.entries={};var t=new W("");t.level=O,this.entries[""]=t};P.prototype.getLogRegistryEntry=function(t,e){var r=this.entries[t];if(r)return void 0!==e&&(r.level=e),r;r=this.getLogRegistryEntry(t.slice(0,Math.max(t.lastIndexOf("."),0)));var n=new W(t,r);return this.entries[t]=n,r.children.push(n),void 0!==e&&(n.level=e),n},P.prototype.getAllLoggers=function(){var t=this;return Object.keys(this.entries).map(function(e){return t.entries[e].logger})};var j=function(){return L||(L=new P),L},H=[],F=function(t){var e=j().getLogRegistryEntry("safevalues",void 0).logger;if(e){var r,n=N;if(t="A URL with content '"+t+"' was sanitized away.",(r=e)&&(r=e&&n)){r=n.value;var o=e?j().getLogRegistryEntry(e.getName()).getEffectiveLevel():D;r=r>=o.value}r&&(n=n||D,r=j().getLogRegistryEntry(e.getName()),"function"==typeof t&&(t=t()),A||(A=new R(0)),e=A.addRecord(n,t,e.getName()),e.setException(void 0),r.publish(e))}};-1===H.indexOf(F)&&H.push(F);var $=function(t,e){this.lodash_=t,this.timeout_=e};$.prototype.copyWidgetData=function(t){t=t||[],this.copyToClipboard_(this.parseWidgetData_(t))},$.prototype.parseWidgetData_=function(t){var e=t[1].values,r=[];return r.push(t[0].value),e.forEach(function(t,e){return r.push(e+1+") "+t)}),r},$.prototype.copyToClipboard_=function(t){var e=t.join("\r\n"),r=document.createElement("div");r.textContent=e,r.style.opacity="0",document.body.appendChild(r);var n=document.createRange();n.selectNode(r),window.getSelection().removeAllRanges(),window.getSelection().addRange(n);var o=function(r){document.removeEventListener("copy",o),void 0!==r.clipboardData&&(r.clipboardData.setData("text/plain",e),r.clipboardData.setData("text/html",t.join("<br>")),r.preventDefault())};document.addEventListener("copy",o),document.execCommand("copy"),r.remove(),this.onCopyNotify_()},$.prototype.onCopyNotify_=function(){if(0===document.getElementsByClassName("copy-notification").length){var t=document.createElement("div");t.textContent=document.getElementsByClassName("translate-patch")[0].textContent,t.className="copy-notification",document.body.appendChild(t),this.timeout_(this.lodash_.bind(function(){t.remove()},t),2e3)}},f("$jscomp$scope$1445061910$0$ClipboardService",$,!0,void 0),$.$inject=["lodash","$timeout"];var k=function(){this.oldTypeToNewTypeDictionary_={TIMESERIES_GRAPH_AVERAGES_CHART:"TIMESERIES",TIMESERIES_GRAPH_0:"TIMESERIES",GEO_TABLE:"GEO_MAP",TOP_ENTITIES:"RELATED_TOPICS",TOP_QUERIES:"RELATED_QUERIES",RISING_QUERIES:"RELATED_QUERIES",GEO_MAP:"GEO_MAP"}};r=k.prototype,r.convertDateWithHours_=function(t,e){var r=t.match(e);e=r[1],t=parseInt(r[2],10),r=r[4];var n=new Date(e);return n.setHours(t),e=new Date(e),e.setHours(parseInt(t,10)+parseInt(r,10)),this.dateTimeStringFormat_(n)+" "+this.dateTimeStringFormat_(e)},r.dateStringFormat_=function(t){return t.getFullYear()+"-"+(t.getMonth()+1).toString().padStart(2,"0")+"-"+t.getDate().toString().padStart(2,"0")},r.convertDateWithMonth_=function(t,e){t=t.match(e),e=parseInt(t[1],10);var r=parseInt(t[2],10),n=new Date(r,e-1,1);return r=new Date(r,e-1,1),r.setMonth(e+parseInt(t[3],10)-1,0),this.dateStringFormat_(n)+" "+this.dateStringFormat_(r)},r.dateTimeStringFormat_=function(t){return this.dateStringFormat_(t)+"T"+t.getHours().toString().padStart(2,"0")},r.convertOldEmbedParams=function(t){var e,r=this,n={};if(0===Object.keys(t).length)return null;t.geo&&(e=t.geo.replace(/(\w+,?)\s?/g,"$1"));var o=t.date?t.date.split(",").map(function(t){return r.convertDateParam_(t)}).join(","):"all";t.cat&&(n.cat=t.cat.replace(/(.*-)?(\d+)$/,"$2")),n.comparisonItems={};var i=[];t.q&&t.q.split(",").forEach(function(t){i.push({keyword:t,geo:e||"",time:o})},this);var a=t.cid||"",s="",c=a.match(/(^\w*)[_](\d)[_]\d/);return c&&0<c.length&&(a=c[1],0!=c[2]&&(s="_"+c[2])),a=this.oldTypeToNewTypeDictionary_[a]+s,n.q=t.q,n.widgetType=a,n.comparisonItems.comparisonItem=i,n.comparisonItems.category=n.cat||0,n.comparisonItems.property=t.gprop||"",n},r.convertDateParam_=function(t){if(""===t)return"all";if(t=t.replace(/\+/g," "),/now|today/.test(t))return t;var e=null,r=/(\d{1,2})\/(\d{4}) (\d*)M/i,n=/(\d{4}-\d{2}-\d{2})T(\d{2})([\d\\:]*) (\d+)H/i;return r.test(t)?e=this.convertDateWithMonth_(t,r):n.test(t)&&(e=this.convertDateWithHours_(t,n)),e},f("$jscomp$scope$1847708173$0$OldFeCompatibilityUtil",k,!0,void 0);var U,V=new k,q=function(t,e,r){r||(r={}),r.guestPath||(r.guestPath="https://trends.google.com/trends/embed/"),this.url_=t||"",this.params_=e||{},this.config_=r},G=function(t,e,r){return new q(e?t+"/"+e:t,{},r)},z=function(t,e,r){return new q("yis/"+r+"/"+(e.geo||"GLOBAL")+"/"+t,{},e)},B=function(t,e,r){return new q("explore/"+t,{req:e,tz:(new Date).getTimezoneOffset()},r)};r=q.prototype,r.createIframe_=function(t){var e,r=document.createElement("iframe");for(e in t)r.setAttribute(e,t[e]);return r},r.createIframeCycle_=function(t,e){var r=this;this.socketHandshake_(t,e,function(e){e.data.isReady&&(t.style.borderRadius="2px",t.style.boxShadow="0px 0px 2px 0px rgba(0,0,0,0.12), 0px 2px 2px 0px rgba(0,0,0,0.24)"),e.data.height&&(t.style.height=e.data.height+"px",e.data.isIeAndLineChart&&r.setMobilePreviewLineChartWidthInIe_())})},r.setMobilePreviewLineChartWidthInIe_=function(){var t=document.getElementsByTagName("embed-widget-preview")[0];0!==t.length&&"false"!==t.getAttribute("force-mobile-mode")&&(t=t.find("iframe"))&&(t=t.contentDocument.getElementsByClassName("fe-line-chart"),0!==t.length&&t[0].setAttribute("width",this.IFRAME_WIDTH_+"px"))},r.generate_=function(){if(!/^(https?:\/\/)?([a-z0-9\.]+)?(\.google\.com)?/i.test(this.config_.guestPath)&&/^[^.]+\.[a-z]{2,4}\/?/i.test(this.config_.guestPath))console.error("Iframe caller domain name not allowed!");else{if(!this.config_.width||/^\d{1,4}(px|%)?$/i.test(this.config_.width)){var t,e=this.config_.guestPath+this.url_,r=[],n="trends-widget-"+this.generateSeed_();for(t in this.params_)Object.prototype.hasOwnProperty.call(this.params_,t)&&r.push(t+"="+encodeURIComponent(JSON.stringify(this.params_[t])));this.config_.timeStamp&&r.push("ts="+this.config_.timeStamp),void 0!==this.config_.forceMobileMode&&r.push("forceMobileMode="+!!this.config_.forceMobileMode),void 0!==this.config_.isPreviewMode&&r.push("isPreviewMode="+!!this.config_.isPreviewMode),this.config_.exploreQuery&&r.push("eq="+encodeURIComponent(this.config_.exploreQuery)),this.config_.locale&&r.push("hl="+this.config_.locale.replace(/[^a-z]/gi,"")),this.config_.geo&&r.push("geo="+this.config_.geo),r.length&&(e+="?"+r.join("&"));var o=document.createElement("div");return o.style.position="relative",e=this.createIframe_({id:n,title:n,src:e,width:this.config_.width||"100%",frameBorder:0,scrolling:0,style:"display: block"}),o.appendChild(e),{id:n,element:o}}console.error("Width parameter contain illegal value!")}},r.generateSeed_=function(){return U?++U:U=1},r.render=function(){var t=this.generate_();if(t){var e,r=t.element.outerHTML;if(r=null===r?"null":void 0===r?"undefined":r,"string"!=typeof r)throw Error("Expected a string");if(void 0===m){var n=null;if((e=p.trustedTypes)&&e.createPolicy)try{n=e.createPolicy("goog#html",{createHTML:g,createScript:g,createScriptURL:g})}catch(t){p.console&&p.console.error(t.message)}m=n}if(r=(n=m)?n.createHTML(r):r,e=new I(r,T),r=document,n=r.write,e instanceof I&&e.constructor===I)e=e.privateDoNotAccessOrElseSafeHtmlWrappedValue_;else{var o=typeof e;y("expected object of type SafeHtml, got '"+e+"' of type "+("object"!=o?o:e?Array.isArray(e)?"array":o:"null")),e="type_error:SafeHtml"}n.call(r,e),r=document.getElementById(t.id),this.createIframeCycle_(r,t.id)}return r},r.renderTo=function(t){var e=this.generate_();if(e){var r=e.element;t.appendChild(r),this.createIframeCycle_(r,e.id)}return r},r.socketHandshake_=function(t,e,r){t.addEventListener("load",function(r){t.contentWindow.postMessage({uniqueID:e},"*");const n=t;n.insertAdjacentHTML("afterend",`<div class="trends-embed-footer">\n              <a href="https://meetglimpse.com" target="_blank">Web Search Trends</a>\n            </div>\n            <style>\n            .trends-embed-footer {\n              all:unset;\n              font-size: 12px;\n              line-height: 15px;\n              position: absolute;\n              background: white;\n              color: rgb(117, 117, 117);\n              -webkit-font-smoothing: antialiased;\n              font-family: 'Roboto','Heebo',Arial,sans-serif;\n              bottom: 12px;\n              right: 0;\n              left: 0;\n              text-align: center;\n            }\n            .trends-embed-footer a {\n              color: inherit;\n              text-decoration:none;\n            }\n            #${n.id} {\n              padding-bottom: 16px\n            }\n            @media (min-width: 657px) {\n              #${n.id} {\n                padding-bottom: 0;\n              }\n              .trends-embed-footer {\n                height: 30px;\n                top: auto;\n                left: auto;\n                bottom: 0;\n                right: 24px;\n                font-size: 14px;\n              }\n            }\n            </style>`)}),window.addEventListener("message",function(t){t.data.uniqueID===e&&r(t)},!1)},f("trends.embed.renderWidget",function(t,e,r){return new G(t,e,r).render()},!0,void 0),f("trends.embed.renderTopChartsWidget",function(t,e,r){return new z(t,e,r).render()},!0,void 0),f("trends.embed.renderWidgetTo",function(t,e,r,n){return new G(e,r,n).renderTo(t)},!0,void 0),f("trends.embed.renderTopChartsWidgetTo",function(t,e,r,n){return new z(e,r,n).renderTo(t)},!0,void 0);var Q=function(t,e,r){return new B(t,e,r).render()};f("trends.embed.renderExploreWidget",Q,!0,void 0),f("trends.embed.renderExploreWidgetTo",function(t,e,r,n){return new B(e,r,n).renderTo(t)},!0,void 0),f("trends.embed.renderExploreWidgetFromOldParamaters",function(t){t=J(t);var e=V.convertOldEmbedParams(t),r="";t.cat&&(r=t.cat.split("-"),r="&cat="+r[r.length-1]),Q(e.widgetType,e.comparisonItems,{exploreQuery:"date="+e.comparisonItems.comparisonItem[0].time+"&q="+e.q+(t.geo?"&geo="+t.geo:"")+(t.gprop?"&gprop="+t.gprop:"")+r},{exploreQuery:"q="+e.q+"&date="+e.comparisonItems.comparisonItem[0].time,guestPath:"https://trends.google.com/trends/"})},!0,void 0);var J=function(t){var e={};return t.replace(/[?&](.+?)=([^&#]*)/g,function(t,r,n){e[r]=decodeURI(n).replace(/\+/g," ")}),e}}).call(this);