@letscooee/web-sdk 9.3.35 → 9.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +1,10 @@
1
- "use strict";(()=>{var sp=Object.create,Ds=Object.defineProperty,ap=Object.defineProperties,up=Object.getOwnPropertyDescriptor,lp=Object.getOwnPropertyDescriptors,cp=Object.getOwnPropertyNames,Qa=Object.getOwnPropertySymbols,fp=Object.getPrototypeOf,Ml=Object.prototype.hasOwnProperty,dp=Object.prototype.propertyIsEnumerable,Xa=(t,e,n)=>e in t?Ds(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,C=(t,e)=>{for(var n in e||={})Ml.call(e,n)&&Xa(t,n,e[n]);if(Qa)for(var n of Qa(e))dp.call(e,n)&&Xa(t,n,e[n]);return t},ht=(t,e)=>ap(t,lp(e)),Mr=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,n)=>(typeof require<"u"?require:e)[n]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')}),hr=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),hp=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of cp(e))!Ml.call(t,i)&&i!==n&&Ds(t,i,{get:()=>e[i],enumerable:!(r=up(e,i))||r.enumerable});return t},pr=(t,e,n)=>(n=t!=null?sp(fp(t)):{},hp(e||!t||!t.__esModule?Ds(n,"default",{value:t,enumerable:!0}):n,t)),pp=hr((t,e)=>{"use strict";(function(n){"use strict";var r={};r.VERSION="1.6.1";var i,o={},s=function(h,y){return function(){return y.apply(h,arguments)}},a=function(){var h=arguments,y=h[0],_,w;for(w=1;w<h.length;w++)for(_ in h[w])!(_ in y)&&h[w].hasOwnProperty(_)&&(y[_]=h[w][_]);return y},u=function(h,y){return{value:h,name:y}};r.TRACE=u(1,"TRACE"),r.DEBUG=u(2,"DEBUG"),r.INFO=u(3,"INFO"),r.TIME=u(4,"TIME"),r.WARN=u(5,"WARN"),r.ERROR=u(8,"ERROR"),r.OFF=u(99,"OFF");var l=function(h){this.context=h,this.setLevel(h.filterLevel),this.log=this.info};l.prototype={setLevel:function(h){h&&"value"in h&&(this.context.filterLevel=h)},getLevel:function(){return this.context.filterLevel},enabledFor:function(h){var y=this.context.filterLevel;return h.value>=y.value},trace:function(){this.invoke(r.TRACE,arguments)},debug:function(){this.invoke(r.DEBUG,arguments)},info:function(){this.invoke(r.INFO,arguments)},warn:function(){this.invoke(r.WARN,arguments)},error:function(){this.invoke(r.ERROR,arguments)},time:function(h){typeof h=="string"&&h.length>0&&this.invoke(r.TIME,[h,"start"])},timeEnd:function(h){typeof h=="string"&&h.length>0&&this.invoke(r.TIME,[h,"end"])},invoke:function(h,y){i&&this.enabledFor(h)&&i(y,a({level:h},this.context))}};var d=new l({filterLevel:r.OFF});(function(){var h=r;h.enabledFor=s(d,d.enabledFor),h.trace=s(d,d.trace),h.debug=s(d,d.debug),h.time=s(d,d.time),h.timeEnd=s(d,d.timeEnd),h.info=s(d,d.info),h.warn=s(d,d.warn),h.error=s(d,d.error),h.log=h.info})(),r.setHandler=function(h){i=h},r.setLevel=function(h){d.setLevel(h);for(var y in o)o.hasOwnProperty(y)&&o[y].setLevel(h)},r.getLevel=function(){return d.getLevel()},r.get=function(h){return o[h]||(o[h]=new l(a({name:h},d.context)))},r.createDefaultHandler=function(h){h=h||{},h.formatter=h.formatter||function(w,T){T.name&&w.unshift("["+T.name+"]")};var y={},_=function(w,T){Function.prototype.apply.call(w,console,T)};return typeof console>"u"?function(){}:function(w,T){w=Array.prototype.slice.call(w);var A=console.log,R;T.level===r.TIME?(R=(T.name?"["+T.name+"] ":"")+w[0],w[1]==="start"?console.time?console.time(R):y[R]=new Date().getTime():console.timeEnd?console.timeEnd(R):_(A,[R+": "+(new Date().getTime()-y[R])+"ms"])):(T.level===r.WARN&&console.warn?A=console.warn:T.level===r.ERROR&&console.error?A=console.error:T.level===r.INFO&&console.info?A=console.info:T.level===r.DEBUG&&console.debug?A=console.debug:T.level===r.TRACE&&console.trace&&(A=console.trace),h.formatter(w,T),_(A,w))}},r.useDefaults=function(h){r.setLevel(h&&h.defaultLevel||r.DEBUG),r.setHandler(r.createDefaultHandler(h))},r.setDefaults=r.useDefaults,typeof define=="function"&&define.amd?define(r):typeof e<"u"&&e.exports?e.exports=r:(r._prevLogger=n.Logger,r.noConflict=function(){return n.Logger=r._prevLogger,r},n.Logger=r)})(t)}),gp=hr(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MilestoneRewardType=t.ProgressBarLayout=t.EngagementContentSource=t.EngagementObjective=t.OnsiteDeliveryType=t.ClickActionType=t.FrequencyGapUnit=t.FrequencyType=t.RedirectBehaviour=t.EngagementPlacementPosition=t.EngagementCollectionSource=t.PromotionType=t.CartFilterEnum=t.CartCurrencyOperator=t.CartCriteria=t.URLCriteria=t.UTMCriteria=t.CartItemSource=t.EngagementItemSource=t.PurchasedVisitor=t.LoggedInVisitor=t.VisitorType=t.SessionType=t.EngagementContentType=t.TriggerType=t.EngagementType=t.EngagementStatus=t.TimePreference=t.ScheduleFrequency=t.CriteriaFrequency=void 0;var e=function(c){return c[c.ONCE_PER_USER=1]="ONCE_PER_USER",c[c.ONCE_PER_SESSION=2]="ONCE_PER_SESSION",c[c.EVERY_TIME=3]="EVERY_TIME",c}(e||(t.CriteriaFrequency=e={})),n=function(c){return c[c.ONE_TIME=1]="ONE_TIME",c[c.MULTIPLE=2]="MULTIPLE",c[c.RECURRING=3]="RECURRING",c}(n||(t.ScheduleFrequency=n={})),r=function(c){return c[c.NOW=1]="NOW",c[c.LATER=2]="LATER",c[c.NEVER=3]="NEVER",c}(r||(t.TimePreference=r={})),i=function(c){return c[c.PUBLISHED=1]="PUBLISHED",c[c.DRAFT=2]="DRAFT",c[c.PAUSED=3]="PAUSED",c[c.FAILED=4]="FAILED",c[c.STOPPED=5]="STOPPED",c[c.COMPLETED=6]="COMPLETED",c[c.ARCHIVED=7]="ARCHIVED",c[c.UNINSTALLED=8]="UNINSTALLED",c}(i||(t.EngagementStatus=i={})),o=function(c){return c[c.POPUP=1]="POPUP",c[c.LEAD_GENERATION=2]="LEAD_GENERATION",c[c.PRODUCT_WIDGET=3]="PRODUCT_WIDGET",c[c.PRODUCT_BUNDLE=4]="PRODUCT_BUNDLE",c[c.ANNOUNCEMENT_BAR=5]="ANNOUNCEMENT_BAR",c[c.CART_REMINDER=6]="CART_REMINDER",c[c.CRO_COPILOT=10]="CRO_COPILOT",c[c.OTHER=11]="OTHER",c}(o||(t.EngagementType=o={})),s=function(c){return c[c.NONE=0]="NONE",c[c.RULE_BASED=1]="RULE_BASED",c[c.INTENT_BASED=2]="INTENT_BASED",c}(s||(t.TriggerType=s={})),a=function(c){return c[c.SINGLE=1]="SINGLE",c[c.EXCLUSION=2]="EXCLUSION",c[c.ABTESTING=3]="ABTESTING",c}(a||(t.EngagementContentType=a={})),u=function(c){return c[c.ALL=0]="ALL",c[c.NEW_ONLY=1]="NEW_ONLY",c[c.RETURNING_ONLY=2]="RETURNING_ONLY",c}(u||(t.SessionType=u={})),l=function(c){return c[c.ALL=0]="ALL",c[c.LOGGED_IN_ONLY=3]="LOGGED_IN_ONLY",c[c.NON_LOGGED_IN_ONLY=4]="NON_LOGGED_IN_ONLY",c[c.PURCHASED=5]="PURCHASED",c[c.NON_PURCHASED=6]="NON_PURCHASED",c[c.ABANDON_CART=7]="ABANDON_CART",c[c.RETURNING_AND_NON_PURCHASED=8]="RETURNING_AND_NON_PURCHASED",c}(l||(t.VisitorType=l={})),d=function(c){return c.ALL="ALL",c.LOGGED_IN="LOGGED_IN",c.NON_LOGGED_IN="NON_LOGGED_IN",c}(d||(t.LoggedInVisitor=d={})),h=function(c){return c.ALL="ALL",c.PURCHASED="PURCHASED",c.NON_PURCHASED="NON_PURCHASED",c}(h||(t.PurchasedVisitor=h={})),y=function(c){return c[c.NONE=0]="NONE",c[c.ITEM_RECOMMENDATION=1]="ITEM_RECOMMENDATION",c[c.MULTIPLE_ITEMS=2]="MULTIPLE_ITEMS",c[c.SINGLE_ITEM=3]="SINGLE_ITEM",c[c.TOP_SELLING=4]="TOP_SELLING",c[c.STOCK_CLEARANCE=5]="STOCK_CLEARANCE",c[c.NEW_ARRIVALS=6]="NEW_ARRIVALS",c[c.RECENTLY_VIEWED=7]="RECENTLY_VIEWED",c[c.EVENT_ITEM=8]="EVENT_ITEM",c[c.CART_ITEM=9]="CART_ITEM",c[c.BUNDLE=10]="BUNDLE",c[c.CURRENT_ITEM=11]="CURRENT_ITEM",c[c.PURCHASED_PREVIOUSLY=12]="PURCHASED_PREVIOUSLY",c[c.COLLECTION_ITEMS=13]="COLLECTION_ITEMS",c[c.TRENDING_ITEMS=14]="TRENDING_ITEMS",c}(y||(t.EngagementItemSource=y={})),_=function(c){return c[c.LAST_ADDED=1]="LAST_ADDED",c[c.FIRST_ADDED=2]="FIRST_ADDED",c[c.HIGHEST_PRICE=3]="HIGHEST_PRICE",c[c.LOWEST_PRICE=4]="LOWEST_PRICE",c[c.FIRST_MATCHING_TAG=5]="FIRST_MATCHING_TAG",c[c.ALL=6]="ALL",c}(_||(t.CartItemSource=_={})),w=function(c){return c[c.ALL=0]="ALL",c[c.ONLY_ORGANIC=1]="ONLY_ORGANIC",c[c.ONLY_NON_ORGANIC=2]="ONLY_NON_ORGANIC",c[c.INCLUDES=3]="INCLUDES",c[c.EXCLUDES=4]="EXCLUDES",c}(w||(t.UTMCriteria=w={})),T=function(c){return c[c.NONE=0]="NONE",c[c.LIKE=1]="LIKE",c[c.NOT_LIKE=2]="NOT_LIKE",c[c.EQUALS=3]="EQUALS",c[c.NOT_EQUALS=4]="NOT_EQUALS",c}(T||(t.URLCriteria=T={})),A=function(c){return c[c.NONE=0]="NONE",c[c.LESS_THAN=1]="LESS_THAN",c[c.GREATER_THAN=2]="GREATER_THAN",c[c.BETWEEN=3]="BETWEEN",c[c.EQUALS=4]="EQUALS",c}(A||(t.CartCriteria=A={})),R=function(c){return c[c.ALL=0]="ALL",c[c.INCLUDES=1]="INCLUDES",c[c.EXCLUDES=2]="EXCLUDES",c}(R||(t.CartCurrencyOperator=R={})),Q=function(c){return c[c.NONE=0]="NONE",c[c.AMOUNT=1]="AMOUNT",c[c.TOTAL_PRODUCT=2]="TOTAL_PRODUCT",c[c.UNIQUE_PRODUCT=3]="UNIQUE_PRODUCT",c}(Q||(t.CartFilterEnum=Q={})),X=function(c){return c[c.NONE=0]="NONE",c[c.ITEM=1]="ITEM",c[c.COLLECTION=2]="COLLECTION",c}(X||(t.PromotionType=X={})),wt=function(c){return c[c.NONE=0]="NONE",c[c.SINGLE=1]="SINGLE",c[c.MULTIPLE=2]="MULTIPLE",c}(wt||(t.EngagementCollectionSource=wt={})),nt=function(c){return c.BEFORE="before",c.AFTER="after",c.INSIDE_FIRST="insideFirst",c.INSIDE_LAST="insideLast",c}(nt||(t.EngagementPlacementPosition=nt={})),Wt=function(c){return c.SHOPIFY_CHECKOUT="shopify_checkout",c.THIRD_PARTY_CHECKOUT="third_party_checkout",c.CART_PAGE="cart_page",c.CART_DRAWER="cart_drawer",c}(Wt||(t.RedirectBehaviour=Wt={})),Mt=function(c){return c.ONCE_IN_SESSION="ONCE_IN_SESSION",c.ACROSS_SESSIONS="ACROSS_SESSIONS",c}(Mt||(t.FrequencyType=Mt={})),k=function(c){return c.DAYS="DAYS",c.HOURS="HOURS",c.MINUTES="MINUTES",c.SECONDS="SECONDS",c}(k||(t.FrequencyGapUnit=k={})),W=function(c){return c[c.NONE=0]="NONE",c[c.REJECT_POPUP=1]="REJECT_POPUP",c[c.ACCEPT_POPUP=2]="ACCEPT_POPUP",c[c.GO_TO_URL=4]="GO_TO_URL",c[c.SHARE=5]="SHARE",c[c.KEY_VALUE=100]="KEY_VALUE",c[c.GO_TO_PRODUCT=101]="GO_TO_PRODUCT",c[c.ADD_TO_CART=102]="ADD_TO_CART",c[c.COPY_COUPON_CODE=103]="COPY_COUPON_CODE",c[c.GO_TO_COLLECTION=104]="GO_TO_COLLECTION",c[c.OPEN_CART=105]="OPEN_CART",c[c.SUBMIT_FORM=106]="SUBMIT_FORM",c[c.INITIATE_CHECKOUT=107]="INITIATE_CHECKOUT",c[c.ADD_BUNDLE=108]="ADD_BUNDLE",c[c.UPGRADE_TO_SUBSCRIPTION=109]="UPGRADE_TO_SUBSCRIPTION",c}(W||(t.ClickActionType=W={})),H=function(c){return c.POPUP="POPUP",c.PAGE_EMBED="PAGE_EMBED",c.CART_EMBED="CART_EMBED",c.ANNOUNCEMENT_BAR="ANNOUNCEMENT_BAR",c}(H||(t.OnsiteDeliveryType=H={})),J=function(c){return c.PRODUCT_PROMOTION="PRODUCT_PROMOTION",c.BUNDLE_AND_UPSELL="BUNDLE_AND_UPSELL",c.CART_RECOVERY="CART_RECOVERY",c.ANNOUNCEMENT="ANNOUNCEMENT",c.LEAD_GENERATION="LEAD_GENERATION",c.DATA_COLLECTION="DATA_COLLECTION",c.SALE_PROMOTION="SALE_PROMOTION",c.SUBSCRIPTION_UPSELL="SUBSCRIPTION_UPSELL",c.SHOPPABLE_VIDEO="SHOPPABLE_VIDEO",c.BYOB="BYOB",c.PROGRESS_BAR="PROGRESS_BAR",c.BUY_NOW="BUY_NOW",c}(J||(t.EngagementObjective=J={})),gt=function(c){return c.COOEE="COOEE",c.KLAVIYO="KLAVIYO",c}(gt||(t.EngagementContentSource=gt={})),Tt=function(c){return c.ICONS="ICONS",c.TILES="TILES",c}(Tt||(t.ProgressBarLayout=Tt={})),Ct=function(c){return c.FREE_SHIPPING="FREE_SHIPPING",c.DISCOUNT="DISCOUNT",c.FREE_AUTO_GIFT="FREE_AUTO_GIFT",c.FREE_GIFT_SELECT="FREE_GIFT_SELECT",c}(Ct||(t.MilestoneRewardType=Ct={}))}),mp=hr(t=>{"use strict";var e=t&&t.__awaiter||function(r,i,o,s){function a(u){return u instanceof o?u:new o(function(l){l(u)})}return new(o||(o=Promise))(function(u,l){function d(_){try{y(s.next(_))}catch(w){l(w)}}function h(_){try{y(s.throw(_))}catch(w){l(w)}}function y(_){_.done?u(_.value):a(_.value).then(d,h)}y((s=s.apply(r,i||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.JSUtils=void 0;var n=class{static isObject(r){return typeof r=="object"&&!Array.isArray(r)&&r!==null}static parseToAny(r){try{return JSON.parse(r.toString())}catch{}return r.toString().match(this.ISO_WITHOUT_MS_REGEX)?new Date(r.toString()):r}static sleep(r){return e(this,void 0,void 0,function*(){return new Promise(i=>setTimeout(i,r))})}static hasKeys(r){return r?Object.keys(r).length>=1:!1}static convertObjectToArray(r,i){return i.reduce((o,s)=>(r.hasOwnProperty(s)&&r[s]!=null&&o.push({[s]:r[s]}),o),[])}static removeNullUndefinedKeys(r){return Object.keys(r).reduce((i,o)=>(r[o]!==null&&r[o]!==void 0&&(i[o]=r[o]),i),{})}static stringify(r){return JSON.stringify(r,function(i,o){return o===void 0?null:o})}};t.JSUtils=n,n.ISO_WITHOUT_MS_REGEX=new RegExp(/\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)/)}),vp=hr((t,e)=>{"use strict";(function(n){if(typeof t=="object"&&typeof e<"u")e.exports=n();else if(typeof define=="function"&&define.amd)define([],n);else{var r;typeof window<"u"?r=window:typeof global<"u"?r=global:typeof self<"u"?r=self:r=this,r.localforage=n()}})(function(){var n,r,i;return function o(s,a,u){function l(y,_){if(!a[y]){if(!s[y]){var w=typeof Mr=="function"&&Mr;if(!_&&w)return w(y,!0);if(d)return d(y,!0);var T=new Error("Cannot find module '"+y+"'");throw T.code="MODULE_NOT_FOUND",T}var A=a[y]={exports:{}};s[y][0].call(A.exports,function(R){var Q=s[y][1][R];return l(Q||R)},A,A.exports,o,s,a,u)}return a[y].exports}for(var d=typeof Mr=="function"&&Mr,h=0;h<u.length;h++)l(u[h]);return l}({1:[function(o,s,a){(function(u){"use strict";var l=u.MutationObserver||u.WebKitMutationObserver,d;if(l){var h=0,y=new l(R),_=u.document.createTextNode("");y.observe(_,{characterData:!0}),d=function(){_.data=h=++h%2}}else if(!u.setImmediate&&typeof u.MessageChannel<"u"){var w=new u.MessageChannel;w.port1.onmessage=R,d=function(){w.port2.postMessage(0)}}else"document"in u&&"onreadystatechange"in u.document.createElement("script")?d=function(){var X=u.document.createElement("script");X.onreadystatechange=function(){R(),X.onreadystatechange=null,X.parentNode.removeChild(X),X=null},u.document.documentElement.appendChild(X)}:d=function(){setTimeout(R,0)};var T,A=[];function R(){T=!0;for(var X,wt,nt=A.length;nt;){for(wt=A,A=[],X=-1;++X<nt;)wt[X]();nt=A.length}T=!1}s.exports=Q;function Q(X){A.push(X)===1&&!T&&d()}}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}],2:[function(o,s,a){"use strict";var u=o(1);function l(){}var d={},h=["REJECTED"],y=["FULFILLED"],_=["PENDING"];s.exports=w;function w(k){if(typeof k!="function")throw new TypeError("resolver must be a function");this.state=_,this.queue=[],this.outcome=void 0,k!==l&&Q(this,k)}w.prototype.catch=function(k){return this.then(null,k)},w.prototype.then=function(k,W){if(typeof k!="function"&&this.state===y||typeof W!="function"&&this.state===h)return this;var H=new this.constructor(l);if(this.state!==_){var J=this.state===y?k:W;A(H,J,this.outcome)}else this.queue.push(new T(H,k,W));return H};function T(k,W,H){this.promise=k,typeof W=="function"&&(this.onFulfilled=W,this.callFulfilled=this.otherCallFulfilled),typeof H=="function"&&(this.onRejected=H,this.callRejected=this.otherCallRejected)}T.prototype.callFulfilled=function(k){d.resolve(this.promise,k)},T.prototype.otherCallFulfilled=function(k){A(this.promise,this.onFulfilled,k)},T.prototype.callRejected=function(k){d.reject(this.promise,k)},T.prototype.otherCallRejected=function(k){A(this.promise,this.onRejected,k)};function A(k,W,H){u(function(){var J;try{J=W(H)}catch(gt){return d.reject(k,gt)}J===k?d.reject(k,new TypeError("Cannot resolve promise with itself")):d.resolve(k,J)})}d.resolve=function(k,W){var H=X(R,W);if(H.status==="error")return d.reject(k,H.value);var J=H.value;if(J)Q(k,J);else{k.state=y,k.outcome=W;for(var gt=-1,Tt=k.queue.length;++gt<Tt;)k.queue[gt].callFulfilled(W)}return k},d.reject=function(k,W){k.state=h,k.outcome=W;for(var H=-1,J=k.queue.length;++H<J;)k.queue[H].callRejected(W);return k};function R(k){var W=k&&k.then;if(k&&(typeof k=="object"||typeof k=="function")&&typeof W=="function")return function(){W.apply(k,arguments)}}function Q(k,W){var H=!1;function J(c){H||(H=!0,d.reject(k,c))}function gt(c){H||(H=!0,d.resolve(k,c))}function Tt(){W(gt,J)}var Ct=X(Tt);Ct.status==="error"&&J(Ct.value)}function X(k,W){var H={};try{H.value=k(W),H.status="success"}catch(J){H.status="error",H.value=J}return H}w.resolve=wt;function wt(k){return k instanceof this?k:d.resolve(new this(l),k)}w.reject=nt;function nt(k){var W=new this(l);return d.reject(W,k)}w.all=Wt;function Wt(k){var W=this;if(Object.prototype.toString.call(k)!=="[object Array]")return this.reject(new TypeError("must be an array"));var H=k.length,J=!1;if(!H)return this.resolve([]);for(var gt=new Array(H),Tt=0,Ct=-1,c=new this(l);++Ct<H;)Yt(k[Ct],Ct);return c;function Yt(je,cn){W.resolve(je).then(Un,function(S){J||(J=!0,d.reject(c,S))});function Un(S){gt[cn]=S,++Tt===H&&!J&&(J=!0,d.resolve(c,gt))}}}w.race=Mt;function Mt(k){var W=this;if(Object.prototype.toString.call(k)!=="[object Array]")return this.reject(new TypeError("must be an array"));var H=k.length,J=!1;if(!H)return this.resolve([]);for(var gt=-1,Tt=new this(l);++gt<H;)Ct(k[gt]);return Tt;function Ct(c){W.resolve(c).then(function(Yt){J||(J=!0,d.resolve(Tt,Yt))},function(Yt){J||(J=!0,d.reject(Tt,Yt))})}}},{1:1}],3:[function(o,s,a){(function(u){"use strict";typeof u.Promise!="function"&&(u.Promise=o(2))}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{2:2}],4:[function(o,s,a){"use strict";var u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f};function l(f,p){if(!(f instanceof p))throw new TypeError("Cannot call a class as a function")}function d(){try{if(typeof indexedDB<"u")return indexedDB;if(typeof webkitIndexedDB<"u")return webkitIndexedDB;if(typeof mozIndexedDB<"u")return mozIndexedDB;if(typeof OIndexedDB<"u")return OIndexedDB;if(typeof msIndexedDB<"u")return msIndexedDB}catch{return}}var h=d();function y(){try{if(!h||!h.open)return!1;var f=typeof openDatabase<"u"&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),p=typeof fetch=="function"&&fetch.toString().indexOf("[native code")!==-1;return(!f||p)&&typeof indexedDB<"u"&&typeof IDBKeyRange<"u"}catch{return!1}}function _(f,p){f=f||[],p=p||{};try{return new Blob(f,p)}catch(E){if(E.name!=="TypeError")throw E;for(var g=typeof BlobBuilder<"u"?BlobBuilder:typeof MSBlobBuilder<"u"?MSBlobBuilder:typeof MozBlobBuilder<"u"?MozBlobBuilder:WebKitBlobBuilder,b=new g,v=0;v<f.length;v+=1)b.append(f[v]);return b.getBlob(p.type)}}typeof Promise>"u"&&o(3);var w=Promise;function T(f,p){p&&f.then(function(g){p(null,g)},function(g){p(g)})}function A(f,p,g){typeof p=="function"&&f.then(p),typeof g=="function"&&f.catch(g)}function R(f){return typeof f!="string"&&(console.warn(f+" used as a key, but it is not a string."),f=String(f)),f}function Q(){if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}var X="local-forage-detect-blob-support",wt=void 0,nt={},Wt=Object.prototype.toString,Mt="readonly",k="readwrite";function W(f){for(var p=f.length,g=new ArrayBuffer(p),b=new Uint8Array(g),v=0;v<p;v++)b[v]=f.charCodeAt(v);return g}function H(f){return new w(function(p){var g=f.transaction(X,k),b=_([""]);g.objectStore(X).put(b,"key"),g.onabort=function(v){v.preventDefault(),v.stopPropagation(),p(!1)},g.oncomplete=function(){var v=navigator.userAgent.match(/Chrome\/(\d+)/),E=navigator.userAgent.match(/Edge\//);p(E||!v||parseInt(v[1],10)>=43)}}).catch(function(){return!1})}function J(f){return typeof wt=="boolean"?w.resolve(wt):H(f).then(function(p){return wt=p,wt})}function gt(f){var p=nt[f.name],g={};g.promise=new w(function(b,v){g.resolve=b,g.reject=v}),p.deferredOperations.push(g),p.dbReady?p.dbReady=p.dbReady.then(function(){return g.promise}):p.dbReady=g.promise}function Tt(f){var p=nt[f.name],g=p.deferredOperations.pop();if(g)return g.resolve(),g.promise}function Ct(f,p){var g=nt[f.name],b=g.deferredOperations.pop();if(b)return b.reject(p),b.promise}function c(f,p){return new w(function(g,b){if(nt[f.name]=nt[f.name]||B(),f.db)if(p)gt(f),f.db.close();else return g(f.db);var v=[f.name];p&&v.push(f.version);var E=h.open.apply(h,v);p&&(E.onupgradeneeded=function(I){var N=E.result;try{N.createObjectStore(f.storeName),I.oldVersion<=1&&N.createObjectStore(X)}catch(D){if(D.name==="ConstraintError")console.warn('The database "'+f.name+'" has been upgraded from version '+I.oldVersion+" to version "+I.newVersion+', but the storage "'+f.storeName+'" already exists.');else throw D}}),E.onerror=function(I){I.preventDefault(),b(E.error)},E.onsuccess=function(){var I=E.result;I.onversionchange=function(N){N.target.close()},g(I),Tt(f)}})}function Yt(f){return c(f,!1)}function je(f){return c(f,!0)}function cn(f,p){if(!f.db)return!0;var g=!f.db.objectStoreNames.contains(f.storeName),b=f.version<f.db.version,v=f.version>f.db.version;if(b&&(f.version!==p&&console.warn('The database "'+f.name+`" can't be downgraded from version `+f.db.version+" to version "+f.version+"."),f.version=f.db.version),v||g){if(g){var E=f.db.version+1;E>f.version&&(f.version=E)}return!0}return!1}function Un(f){return new w(function(p,g){var b=new FileReader;b.onerror=g,b.onloadend=function(v){var E=btoa(v.target.result||"");p({__local_forage_encoded_blob:!0,data:E,type:f.type})},b.readAsBinaryString(f)})}function S(f){var p=W(atob(f.data));return _([p],{type:f.type})}function m(f){return f&&f.__local_forage_encoded_blob}function L(f){var p=this,g=p._initReady().then(function(){var b=nt[p._dbInfo.name];if(b&&b.dbReady)return b.dbReady});return A(g,f,f),g}function j(f){gt(f);for(var p=nt[f.name],g=p.forages,b=0;b<g.length;b++){var v=g[b];v._dbInfo.db&&(v._dbInfo.db.close(),v._dbInfo.db=null)}return f.db=null,Yt(f).then(function(E){return f.db=E,cn(f)?je(f):E}).then(function(E){f.db=p.db=E;for(var I=0;I<g.length;I++)g[I]._dbInfo.db=E}).catch(function(E){throw Ct(f,E),E})}function M(f,p,g,b){b===void 0&&(b=1);try{var v=f.db.transaction(f.storeName,p);g(null,v)}catch(E){if(b>0&&(!f.db||E.name==="InvalidStateError"||E.name==="NotFoundError"))return w.resolve().then(function(){if(!f.db||E.name==="NotFoundError"&&!f.db.objectStoreNames.contains(f.storeName)&&f.version<=f.db.version)return f.db&&(f.version=f.db.version+1),je(f)}).then(function(){return j(f).then(function(){M(f,p,g,b-1)})}).catch(g);g(E)}}function B(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function F(f){var p=this,g={db:null};if(f)for(var b in f)g[b]=f[b];var v=nt[g.name];v||(v=B(),nt[g.name]=v),v.forages.push(p),p._initReady||(p._initReady=p.ready,p.ready=L);var E=[];function I(){return w.resolve()}for(var N=0;N<v.forages.length;N++){var D=v.forages[N];D!==p&&E.push(D._initReady().catch(I))}var x=v.forages.slice(0);return w.all(E).then(function(){return g.db=v.db,Yt(g)}).then(function(O){return g.db=O,cn(g,p._defaultConfig.version)?je(g):O}).then(function(O){g.db=v.db=O,p._dbInfo=g;for(var P=0;P<x.length;P++){var z=x[P];z!==p&&(z._dbInfo.db=g.db,z._dbInfo.version=g.version)}})}function V(f,p){var g=this;f=R(f);var b=new w(function(v,E){g.ready().then(function(){M(g._dbInfo,Mt,function(I,N){if(I)return E(I);try{var D=N.objectStore(g._dbInfo.storeName),x=D.get(f);x.onsuccess=function(){var O=x.result;O===void 0&&(O=null),m(O)&&(O=S(O)),v(O)},x.onerror=function(){E(x.error)}}catch(O){E(O)}})}).catch(E)});return T(b,p),b}function G(f,p){var g=this,b=new w(function(v,E){g.ready().then(function(){M(g._dbInfo,Mt,function(I,N){if(I)return E(I);try{var D=N.objectStore(g._dbInfo.storeName),x=D.openCursor(),O=1;x.onsuccess=function(){var P=x.result;if(P){var z=P.value;m(z)&&(z=S(z));var ut=f(z,P.key,O++);ut!==void 0?v(ut):P.continue()}else v()},x.onerror=function(){E(x.error)}}catch(P){E(P)}})}).catch(E)});return T(b,p),b}function tt(f,p,g){var b=this;f=R(f);var v=new w(function(E,I){var N;b.ready().then(function(){return N=b._dbInfo,Wt.call(p)==="[object Blob]"?J(N.db).then(function(D){return D?p:Un(p)}):p}).then(function(D){M(b._dbInfo,k,function(x,O){if(x)return I(x);try{var P=O.objectStore(b._dbInfo.storeName);D===null&&(D=void 0);var z=P.put(D,f);O.oncomplete=function(){D===void 0&&(D=null),E(D)},O.onabort=O.onerror=function(){var ut=z.error?z.error:z.transaction.error;I(ut)}}catch(ut){I(ut)}})}).catch(I)});return T(v,g),v}function _t(f,p){var g=this;f=R(f);var b=new w(function(v,E){g.ready().then(function(){M(g._dbInfo,k,function(I,N){if(I)return E(I);try{var D=N.objectStore(g._dbInfo.storeName),x=D.delete(f);N.oncomplete=function(){v()},N.onerror=function(){E(x.error)},N.onabort=function(){var O=x.error?x.error:x.transaction.error;E(O)}}catch(O){E(O)}})}).catch(E)});return T(b,p),b}function ot(f){var p=this,g=new w(function(b,v){p.ready().then(function(){M(p._dbInfo,k,function(E,I){if(E)return v(E);try{var N=I.objectStore(p._dbInfo.storeName),D=N.clear();I.oncomplete=function(){b()},I.onabort=I.onerror=function(){var x=D.error?D.error:D.transaction.error;v(x)}}catch(x){v(x)}})}).catch(v)});return T(g,f),g}function mt(f){var p=this,g=new w(function(b,v){p.ready().then(function(){M(p._dbInfo,Mt,function(E,I){if(E)return v(E);try{var N=I.objectStore(p._dbInfo.storeName),D=N.count();D.onsuccess=function(){b(D.result)},D.onerror=function(){v(D.error)}}catch(x){v(x)}})}).catch(v)});return T(g,f),g}function Ot(f,p){var g=this,b=new w(function(v,E){if(f<0){v(null);return}g.ready().then(function(){M(g._dbInfo,Mt,function(I,N){if(I)return E(I);try{var D=N.objectStore(g._dbInfo.storeName),x=!1,O=D.openKeyCursor();O.onsuccess=function(){var P=O.result;if(!P){v(null);return}f===0||x?v(P.key):(x=!0,P.advance(f))},O.onerror=function(){E(O.error)}}catch(P){E(P)}})}).catch(E)});return T(b,p),b}function Y(f){var p=this,g=new w(function(b,v){p.ready().then(function(){M(p._dbInfo,Mt,function(E,I){if(E)return v(E);try{var N=I.objectStore(p._dbInfo.storeName),D=N.openKeyCursor(),x=[];D.onsuccess=function(){var O=D.result;if(!O){b(x);return}x.push(O.key),O.continue()},D.onerror=function(){v(D.error)}}catch(O){v(O)}})}).catch(v)});return T(g,f),g}function At(f,p){p=Q.apply(this,arguments);var g=this.config();f=typeof f!="function"&&f||{},f.name||(f.name=f.name||g.name,f.storeName=f.storeName||g.storeName);var b=this,v;if(!f.name)v=w.reject("Invalid arguments");else{var E=f.name===g.name&&b._dbInfo.db,I=E?w.resolve(b._dbInfo.db):Yt(f).then(function(N){var D=nt[f.name],x=D.forages;D.db=N;for(var O=0;O<x.length;O++)x[O]._dbInfo.db=N;return N});f.storeName?v=I.then(function(N){if(N.objectStoreNames.contains(f.storeName)){var D=N.version+1;gt(f);var x=nt[f.name],O=x.forages;N.close();for(var P=0;P<O.length;P++){var z=O[P];z._dbInfo.db=null,z._dbInfo.version=D}var ut=new w(function(st,bt){var pt=h.open(f.name,D);pt.onerror=function(Kt){var Ji=pt.result;Ji.close(),bt(Kt)},pt.onupgradeneeded=function(){var Kt=pt.result;Kt.deleteObjectStore(f.storeName)},pt.onsuccess=function(){var Kt=pt.result;Kt.close(),st(Kt)}});return ut.then(function(st){x.db=st;for(var bt=0;bt<O.length;bt++){var pt=O[bt];pt._dbInfo.db=st,Tt(pt._dbInfo)}}).catch(function(st){throw(Ct(f,st)||w.resolve()).catch(function(){}),st})}}):v=I.then(function(N){gt(f);var D=nt[f.name],x=D.forages;N.close();for(var O=0;O<x.length;O++){var P=x[O];P._dbInfo.db=null}var z=new w(function(ut,st){var bt=h.deleteDatabase(f.name);bt.onerror=function(){var pt=bt.result;pt&&pt.close(),st(bt.error)},bt.onblocked=function(){console.warn('dropInstance blocked for database "'+f.name+'" until all open connections are closed')},bt.onsuccess=function(){var pt=bt.result;pt&&pt.close(),ut(pt)}});return z.then(function(ut){D.db=ut;for(var st=0;st<x.length;st++){var bt=x[st];Tt(bt._dbInfo)}}).catch(function(ut){throw(Ct(f,ut)||w.resolve()).catch(function(){}),ut})})}return T(v,p),v}var Ft={_driver:"asyncStorage",_initStorage:F,_support:y(),iterate:G,getItem:V,setItem:tt,removeItem:_t,clear:ot,length:mt,key:Ot,keys:Y,dropInstance:At};function Ut(){return typeof openDatabase=="function"}var Nt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",de="~~local_forage_type~",Ht=/^~~local_forage_type~([^~]+)~/,fn="__lfsc__:",Hn=fn.length,Bn="arbf",dn="blob",Dr="si08",$n="ui08",kr="uic8",Ar="si16",zn="si32",Gn="ur16",hn="ui32",Rr="fl32",Lr="fl64",Ba=Hn+Bn.length,$a=Object.prototype.toString;function za(f){var p=f.length*.75,g=f.length,b,v=0,E,I,N,D;f[f.length-1]==="="&&(p--,f[f.length-2]==="="&&p--);var x=new ArrayBuffer(p),O=new Uint8Array(x);for(b=0;b<g;b+=4)E=Nt.indexOf(f[b]),I=Nt.indexOf(f[b+1]),N=Nt.indexOf(f[b+2]),D=Nt.indexOf(f[b+3]),O[v++]=E<<2|I>>4,O[v++]=(I&15)<<4|N>>2,O[v++]=(N&3)<<6|D&63;return x}function Ki(f){var p=new Uint8Array(f),g="",b;for(b=0;b<p.length;b+=3)g+=Nt[p[b]>>2],g+=Nt[(p[b]&3)<<4|p[b+1]>>4],g+=Nt[(p[b+1]&15)<<2|p[b+2]>>6],g+=Nt[p[b+2]&63];return p.length%3===2?g=g.substring(0,g.length-1)+"=":p.length%3===1&&(g=g.substring(0,g.length-2)+"=="),g}function Sh(f,p){var g="";if(f&&(g=$a.call(f)),f&&(g==="[object ArrayBuffer]"||f.buffer&&$a.call(f.buffer)==="[object ArrayBuffer]")){var b,v=fn;f instanceof ArrayBuffer?(b=f,v+=Bn):(b=f.buffer,g==="[object Int8Array]"?v+=Dr:g==="[object Uint8Array]"?v+=$n:g==="[object Uint8ClampedArray]"?v+=kr:g==="[object Int16Array]"?v+=Ar:g==="[object Uint16Array]"?v+=Gn:g==="[object Int32Array]"?v+=zn:g==="[object Uint32Array]"?v+=hn:g==="[object Float32Array]"?v+=Rr:g==="[object Float64Array]"?v+=Lr:p(new Error("Failed to get type for BinaryArray"))),p(v+Ki(b))}else if(g==="[object Blob]"){var E=new FileReader;E.onload=function(){var I=de+f.type+"~"+Ki(this.result);p(fn+dn+I)},E.readAsArrayBuffer(f)}else try{p(JSON.stringify(f))}catch(I){console.error("Couldn't convert value into a JSON string: ",f),p(null,I)}}function Ih(f){if(f.substring(0,Hn)!==fn)return JSON.parse(f);var p=f.substring(Ba),g=f.substring(Hn,Ba),b;if(g===dn&&Ht.test(p)){var v=p.match(Ht);b=v[1],p=p.substring(v[0].length)}var E=za(p);switch(g){case Bn:return E;case dn:return _([E],{type:b});case Dr:return new Int8Array(E);case $n:return new Uint8Array(E);case kr:return new Uint8ClampedArray(E);case Ar:return new Int16Array(E);case Gn:return new Uint16Array(E);case zn:return new Int32Array(E);case hn:return new Uint32Array(E);case Rr:return new Float32Array(E);case Lr:return new Float64Array(E);default:throw new Error("Unkown type: "+g)}}var Zi={serialize:Sh,deserialize:Ih,stringToBuffer:za,bufferToString:Ki};function Ga(f,p,g,b){f.executeSql("CREATE TABLE IF NOT EXISTS "+p.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],g,b)}function Th(f){var p=this,g={db:null};if(f)for(var b in f)g[b]=typeof f[b]!="string"?f[b].toString():f[b];var v=new w(function(E,I){try{g.db=openDatabase(g.name,String(g.version),g.description,g.size)}catch(N){return I(N)}g.db.transaction(function(N){Ga(N,g,function(){p._dbInfo=g,E()},function(D,x){I(x)})},I)});return g.serializer=Zi,v}function we(f,p,g,b,v,E){f.executeSql(g,b,v,function(I,N){N.code===N.SYNTAX_ERR?I.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[p.storeName],function(D,x){x.rows.length?E(D,N):Ga(D,p,function(){D.executeSql(g,b,v,E)},E)},E):E(I,N)},E)}function Ch(f,p){var g=this;f=R(f);var b=new w(function(v,E){g.ready().then(function(){var I=g._dbInfo;I.db.transaction(function(N){we(N,I,"SELECT * FROM "+I.storeName+" WHERE key = ? LIMIT 1",[f],function(D,x){var O=x.rows.length?x.rows.item(0).value:null;O&&(O=I.serializer.deserialize(O)),v(O)},function(D,x){E(x)})})}).catch(E)});return T(b,p),b}function Nh(f,p){var g=this,b=new w(function(v,E){g.ready().then(function(){var I=g._dbInfo;I.db.transaction(function(N){we(N,I,"SELECT * FROM "+I.storeName,[],function(D,x){for(var O=x.rows,P=O.length,z=0;z<P;z++){var ut=O.item(z),st=ut.value;if(st&&(st=I.serializer.deserialize(st)),st=f(st,ut.key,z+1),st!==void 0){v(st);return}}v()},function(D,x){E(x)})})}).catch(E)});return T(b,p),b}function qa(f,p,g,b){var v=this;f=R(f);var E=new w(function(I,N){v.ready().then(function(){p===void 0&&(p=null);var D=p,x=v._dbInfo;x.serializer.serialize(p,function(O,P){P?N(P):x.db.transaction(function(z){we(z,x,"INSERT OR REPLACE INTO "+x.storeName+" (key, value) VALUES (?, ?)",[f,O],function(){I(D)},function(ut,st){N(st)})},function(z){if(z.code===z.QUOTA_ERR){if(b>0){I(qa.apply(v,[f,D,g,b-1]));return}N(z)}})})}).catch(N)});return T(E,g),E}function Oh(f,p,g){return qa.apply(this,[f,p,g,1])}function xh(f,p){var g=this;f=R(f);var b=new w(function(v,E){g.ready().then(function(){var I=g._dbInfo;I.db.transaction(function(N){we(N,I,"DELETE FROM "+I.storeName+" WHERE key = ?",[f],function(){v()},function(D,x){E(x)})})}).catch(E)});return T(b,p),b}function Dh(f){var p=this,g=new w(function(b,v){p.ready().then(function(){var E=p._dbInfo;E.db.transaction(function(I){we(I,E,"DELETE FROM "+E.storeName,[],function(){b()},function(N,D){v(D)})})}).catch(v)});return T(g,f),g}function kh(f){var p=this,g=new w(function(b,v){p.ready().then(function(){var E=p._dbInfo;E.db.transaction(function(I){we(I,E,"SELECT COUNT(key) as c FROM "+E.storeName,[],function(N,D){var x=D.rows.item(0).c;b(x)},function(N,D){v(D)})})}).catch(v)});return T(g,f),g}function Ah(f,p){var g=this,b=new w(function(v,E){g.ready().then(function(){var I=g._dbInfo;I.db.transaction(function(N){we(N,I,"SELECT key FROM "+I.storeName+" WHERE id = ? LIMIT 1",[f+1],function(D,x){var O=x.rows.length?x.rows.item(0).key:null;v(O)},function(D,x){E(x)})})}).catch(E)});return T(b,p),b}function Rh(f){var p=this,g=new w(function(b,v){p.ready().then(function(){var E=p._dbInfo;E.db.transaction(function(I){we(I,E,"SELECT key FROM "+E.storeName,[],function(N,D){for(var x=[],O=0;O<D.rows.length;O++)x.push(D.rows.item(O).key);b(x)},function(N,D){v(D)})})}).catch(v)});return T(g,f),g}function Lh(f){return new w(function(p,g){f.transaction(function(b){b.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(v,E){for(var I=[],N=0;N<E.rows.length;N++)I.push(E.rows.item(N).name);p({db:f,storeNames:I})},function(v,E){g(E)})},function(b){g(b)})})}function Ph(f,p){p=Q.apply(this,arguments);var g=this.config();f=typeof f!="function"&&f||{},f.name||(f.name=f.name||g.name,f.storeName=f.storeName||g.storeName);var b=this,v;return f.name?v=new w(function(E){var I;f.name===g.name?I=b._dbInfo.db:I=openDatabase(f.name,"","",0),f.storeName?E({db:I,storeNames:[f.storeName]}):E(Lh(I))}).then(function(E){return new w(function(I,N){E.db.transaction(function(D){function x(ut){return new w(function(st,bt){D.executeSql("DROP TABLE IF EXISTS "+ut,[],function(){st()},function(pt,Kt){bt(Kt)})})}for(var O=[],P=0,z=E.storeNames.length;P<z;P++)O.push(x(E.storeNames[P]));w.all(O).then(function(){I()}).catch(function(ut){N(ut)})},function(D){N(D)})})}):v=w.reject("Invalid arguments"),T(v,p),v}var Mh={_driver:"webSQLStorage",_initStorage:Th,_support:Ut(),iterate:Nh,getItem:Ch,setItem:Oh,removeItem:xh,clear:Dh,length:kh,key:Ah,keys:Rh,dropInstance:Ph};function jh(){try{return typeof localStorage<"u"&&"setItem"in localStorage&&!!localStorage.setItem}catch{return!1}}function Wa(f,p){var g=f.name+"/";return f.storeName!==p.storeName&&(g+=f.storeName+"/"),g}function Vh(){var f="_localforage_support_test";try{return localStorage.setItem(f,!0),localStorage.removeItem(f),!1}catch{return!0}}function Fh(){return!Vh()||localStorage.length>0}function Uh(f){var p=this,g={};if(f)for(var b in f)g[b]=f[b];return g.keyPrefix=Wa(f,p._defaultConfig),Fh()?(p._dbInfo=g,g.serializer=Zi,w.resolve()):w.reject()}function Hh(f){var p=this,g=p.ready().then(function(){for(var b=p._dbInfo.keyPrefix,v=localStorage.length-1;v>=0;v--){var E=localStorage.key(v);E.indexOf(b)===0&&localStorage.removeItem(E)}});return T(g,f),g}function Bh(f,p){var g=this;f=R(f);var b=g.ready().then(function(){var v=g._dbInfo,E=localStorage.getItem(v.keyPrefix+f);return E&&(E=v.serializer.deserialize(E)),E});return T(b,p),b}function $h(f,p){var g=this,b=g.ready().then(function(){for(var v=g._dbInfo,E=v.keyPrefix,I=E.length,N=localStorage.length,D=1,x=0;x<N;x++){var O=localStorage.key(x);if(O.indexOf(E)===0){var P=localStorage.getItem(O);if(P&&(P=v.serializer.deserialize(P)),P=f(P,O.substring(I),D++),P!==void 0)return P}}});return T(b,p),b}function zh(f,p){var g=this,b=g.ready().then(function(){var v=g._dbInfo,E;try{E=localStorage.key(f)}catch{E=null}return E&&(E=E.substring(v.keyPrefix.length)),E});return T(b,p),b}function Gh(f){var p=this,g=p.ready().then(function(){for(var b=p._dbInfo,v=localStorage.length,E=[],I=0;I<v;I++){var N=localStorage.key(I);N.indexOf(b.keyPrefix)===0&&E.push(N.substring(b.keyPrefix.length))}return E});return T(g,f),g}function qh(f){var p=this,g=p.keys().then(function(b){return b.length});return T(g,f),g}function Wh(f,p){var g=this;f=R(f);var b=g.ready().then(function(){var v=g._dbInfo;localStorage.removeItem(v.keyPrefix+f)});return T(b,p),b}function Yh(f,p,g){var b=this;f=R(f);var v=b.ready().then(function(){p===void 0&&(p=null);var E=p;return new w(function(I,N){var D=b._dbInfo;D.serializer.serialize(p,function(x,O){if(O)N(O);else try{localStorage.setItem(D.keyPrefix+f,x),I(E)}catch(P){(P.name==="QuotaExceededError"||P.name==="NS_ERROR_DOM_QUOTA_REACHED")&&N(P),N(P)}})})});return T(v,g),v}function Kh(f,p){if(p=Q.apply(this,arguments),f=typeof f!="function"&&f||{},!f.name){var g=this.config();f.name=f.name||g.name,f.storeName=f.storeName||g.storeName}var b=this,v;return f.name?v=new w(function(E){f.storeName?E(Wa(f,b._defaultConfig)):E(f.name+"/")}).then(function(E){for(var I=localStorage.length-1;I>=0;I--){var N=localStorage.key(I);N.indexOf(E)===0&&localStorage.removeItem(N)}}):v=w.reject("Invalid arguments"),T(v,p),v}var Zh={_driver:"localStorageWrapper",_initStorage:Uh,_support:jh(),iterate:$h,getItem:Bh,setItem:Yh,removeItem:Wh,clear:Hh,length:qh,key:zh,keys:Gh,dropInstance:Kh},Qh=function(f,p){return f===p||typeof f=="number"&&typeof p=="number"&&isNaN(f)&&isNaN(p)},Xh=function(f,p){for(var g=f.length,b=0;b<g;){if(Qh(f[b],p))return!0;b++}return!1},Ya=Array.isArray||function(f){return Object.prototype.toString.call(f)==="[object Array]"},qn={},Ka={},pn={INDEXEDDB:Ft,WEBSQL:Mh,LOCALSTORAGE:Zh},Jh=[pn.INDEXEDDB._driver,pn.WEBSQL._driver,pn.LOCALSTORAGE._driver],Pr=["dropInstance"],Qi=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(Pr),tp={description:"",driver:Jh.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function ep(f,p){f[p]=function(){var g=arguments;return f.ready().then(function(){return f[p].apply(f,g)})}}function Xi(){for(var f=1;f<arguments.length;f++){var p=arguments[f];if(p)for(var g in p)p.hasOwnProperty(g)&&(Ya(p[g])?arguments[0][g]=p[g].slice():arguments[0][g]=p[g])}return arguments[0]}var np=function(){function f(p){l(this,f);for(var g in pn)if(pn.hasOwnProperty(g)){var b=pn[g],v=b._driver;this[g]=v,qn[v]||this.defineDriver(b)}this._defaultConfig=Xi({},tp),this._config=Xi({},this._defaultConfig,p),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(function(){})}return f.prototype.config=function(p){if((typeof p>"u"?"undefined":u(p))==="object"){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var g in p){if(g==="storeName"&&(p[g]=p[g].replace(/\W/g,"_")),g==="version"&&typeof p[g]!="number")return new Error("Database version must be a number.");this._config[g]=p[g]}return"driver"in p&&p.driver?this.setDriver(this._config.driver):!0}else return typeof p=="string"?this._config[p]:this._config},f.prototype.defineDriver=function(p,g,b){var v=new w(function(E,I){try{var N=p._driver,D=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!p._driver){I(D);return}for(var x=Qi.concat("_initStorage"),O=0,P=x.length;O<P;O++){var z=x[O],ut=!Xh(Pr,z);if((ut||p[z])&&typeof p[z]!="function"){I(D);return}}var st=function(){for(var pt=function(ip){return function(){var op=new Error("Method "+ip+" is not implemented by the current driver"),Za=w.reject(op);return T(Za,arguments[arguments.length-1]),Za}},Kt=0,Ji=Pr.length;Kt<Ji;Kt++){var to=Pr[Kt];p[to]||(p[to]=pt(to))}};st();var bt=function(pt){qn[N]&&console.info("Redefining LocalForage driver: "+N),qn[N]=p,Ka[N]=pt,E()};"_support"in p?p._support&&typeof p._support=="function"?p._support().then(bt,I):bt(!!p._support):bt(!0)}catch(pt){I(pt)}});return A(v,g,b),v},f.prototype.driver=function(){return this._driver||null},f.prototype.getDriver=function(p,g,b){var v=qn[p]?w.resolve(qn[p]):w.reject(new Error("Driver not found."));return A(v,g,b),v},f.prototype.getSerializer=function(p){var g=w.resolve(Zi);return A(g,p),g},f.prototype.ready=function(p){var g=this,b=g._driverSet.then(function(){return g._ready===null&&(g._ready=g._initDriver()),g._ready});return A(b,p,p),b},f.prototype.setDriver=function(p,g,b){var v=this;Ya(p)||(p=[p]);var E=this._getSupportedDrivers(p);function I(){v._config.driver=v.driver()}function N(O){return v._extend(O),I(),v._ready=v._initStorage(v._config),v._ready}function D(O){return function(){var P=0;function z(){for(;P<O.length;){var ut=O[P];return P++,v._dbInfo=null,v._ready=null,v.getDriver(ut).then(N).catch(z)}I();var st=new Error("No available storage method found.");return v._driverSet=w.reject(st),v._driverSet}return z()}}var x=this._driverSet!==null?this._driverSet.catch(function(){return w.resolve()}):w.resolve();return this._driverSet=x.then(function(){var O=E[0];return v._dbInfo=null,v._ready=null,v.getDriver(O).then(function(P){v._driver=P._driver,I(),v._wrapLibraryMethodsWithReady(),v._initDriver=D(E)})}).catch(function(){I();var O=new Error("No available storage method found.");return v._driverSet=w.reject(O),v._driverSet}),A(this._driverSet,g,b),this._driverSet},f.prototype.supports=function(p){return!!Ka[p]},f.prototype._extend=function(p){Xi(this,p)},f.prototype._getSupportedDrivers=function(p){for(var g=[],b=0,v=p.length;b<v;b++){var E=p[b];this.supports(E)&&g.push(E)}return g},f.prototype._wrapLibraryMethodsWithReady=function(){for(var p=0,g=Qi.length;p<g;p++)ep(this,Qi[p])},f.prototype.createInstance=function(p){return new f(p)},f}(),rp=new np;s.exports=rp},{3:3}]},{},[4])(4)})}),yp=hr(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MustacheUtils=void 0;var e=class jl{static escapeHtml(r){return String(r).replace(/"/g,i=>jl.entityMap[i])}};t.MustacheUtils=e,e.entityMap={'"':"&quot;"}});function _p(t,e){return Object.is(t,e)}var St=null,Kr=!1,ks=1,Oe=Symbol("SIGNAL");function et(t){let e=St;return St=t,e}function bp(){return St}var As={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Ep(t){if(Kr)throw new Error("");if(St===null)return;St.consumerOnSignalRead(t);let e=St.nextProducerIndex++;if(Ni(St),e<St.producerNode.length&&St.producerNode[e]!==t&&tr(St)){let n=St.producerNode[e];Ci(n,St.producerIndexOfThis[e])}St.producerNode[e]!==t&&(St.producerNode[e]=t,St.producerIndexOfThis[e]=tr(St)?Bl(t,St,e):0),St.producerLastReadVersion[e]=t.version}function wp(){ks++}function Sp(t){if(!(tr(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===ks)){if(!t.producerMustRecompute(t)&&!Ul(t)){Ja(t);return}t.producerRecomputeValue(t),Ja(t)}}function Vl(t){if(t.liveConsumerNode===void 0)return;let e=Kr;Kr=!0;try{for(let n of t.liveConsumerNode)n.dirty||Ip(n)}finally{Kr=e}}function Fl(){return St?.consumerAllowSignalWrites!==!1}function Ip(t){t.dirty=!0,Vl(t),t.consumerMarkedDirty?.(t)}function Ja(t){t.dirty=!1,t.lastCleanEpoch=ks}function tu(t){return t&&(t.nextProducerIndex=0),et(t)}function Tp(t,e){if(et(e),!(!t||t.producerNode===void 0||t.producerIndexOfThis===void 0||t.producerLastReadVersion===void 0)){if(tr(t))for(let n=t.nextProducerIndex;n<t.producerNode.length;n++)Ci(t.producerNode[n],t.producerIndexOfThis[n]);for(;t.producerNode.length>t.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function Ul(t){Ni(t);for(let e=0;e<t.producerNode.length;e++){let n=t.producerNode[e],r=t.producerLastReadVersion[e];if(r!==n.version||(Sp(n),r!==n.version))return!0}return!1}function Hl(t){if(Ni(t),tr(t))for(let e=0;e<t.producerNode.length;e++)Ci(t.producerNode[e],t.producerIndexOfThis[e]);t.producerNode.length=t.producerLastReadVersion.length=t.producerIndexOfThis.length=0,t.liveConsumerNode&&(t.liveConsumerNode.length=t.liveConsumerIndexOfThis.length=0)}function Bl(t,e,n){if($l(t),t.liveConsumerNode.length===0&&zl(t))for(let r=0;r<t.producerNode.length;r++)t.producerIndexOfThis[r]=Bl(t.producerNode[r],t,r);return t.liveConsumerIndexOfThis.push(n),t.liveConsumerNode.push(e)-1}function Ci(t,e){if($l(t),t.liveConsumerNode.length===1&&zl(t))for(let r=0;r<t.producerNode.length;r++)Ci(t.producerNode[r],t.producerIndexOfThis[r]);let n=t.liveConsumerNode.length-1;if(t.liveConsumerNode[e]=t.liveConsumerNode[n],t.liveConsumerIndexOfThis[e]=t.liveConsumerIndexOfThis[n],t.liveConsumerNode.length--,t.liveConsumerIndexOfThis.length--,e<t.liveConsumerNode.length){let r=t.liveConsumerIndexOfThis[e],i=t.liveConsumerNode[e];Ni(i),i.producerIndexOfThis[r]=e}}function tr(t){return t.consumerIsAlwaysLive||(t?.liveConsumerNode?.length??0)>0}function Ni(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}function $l(t){t.liveConsumerNode??=[],t.liveConsumerIndexOfThis??=[]}function zl(t){return t.producerNode!==void 0}function Cp(){throw new Error}var Gl=Cp;function ql(t){Gl(t)}function Np(t){Gl=t}var Op=null;function xp(t){let e=Object.create(kp);e.value=t;let n=()=>(Ep(e),e.value);return n[Oe]=e,n}function Wl(t,e){Fl()||ql(t),t.equal(t.value,e)||(t.value=e,Ap(t))}function Dp(t,e){Fl()||ql(t),Wl(t,e(t.value))}var kp=ht(C({},As),{equal:_p,value:void 0,kind:"signal"});function Ap(t){t.version++,wp(),Vl(t),Op?.()}function It(t){return typeof t=="function"}function Yl(t){let e=t(n=>{Error.call(n),n.stack=new Error().stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var eo=Yl(t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription:
1
+ "use strict";(()=>{var Xg=Object.create,Oa=Object.defineProperty,ty=Object.defineProperties,ey=Object.getOwnPropertyDescriptor,ny=Object.getOwnPropertyDescriptors,ry=Object.getOwnPropertyNames,al=Object.getOwnPropertySymbols,iy=Object.getPrototypeOf,hf=Object.prototype.hasOwnProperty,oy=Object.prototype.propertyIsEnumerable,ul=(t,e,n)=>e in t?Oa(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,k=(t,e)=>{for(var n in e||={})hf.call(e,n)&&ul(t,n,e[n]);if(al)for(var n of al(e))oy.call(e,n)&&ul(t,n,e[n]);return t},Dt=(t,e)=>ty(t,ny(e)),pi=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,n)=>(typeof require<"u"?require:e)[n]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')}),Wr=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),sy=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of ry(e))!hf.call(t,i)&&i!==n&&Oa(t,i,{get:()=>e[i],enumerable:!(r=ey(e,i))||r.enumerable});return t},Zr=(t,e,n)=>(n=t!=null?Xg(iy(t)):{},sy(e||!t||!t.__esModule?Oa(n,"default",{value:t,enumerable:!0}):n,t)),ay=Wr((t,e)=>{"use strict";(function(n){"use strict";var r={};r.VERSION="1.6.1";var i,o={},s=function(d,b){return function(){return b.apply(d,arguments)}},a=function(){var d=arguments,b=d[0],_,w;for(w=1;w<d.length;w++)for(_ in d[w])!(_ in b)&&d[w].hasOwnProperty(_)&&(b[_]=d[w][_]);return b},u=function(d,b){return{value:d,name:b}};r.TRACE=u(1,"TRACE"),r.DEBUG=u(2,"DEBUG"),r.INFO=u(3,"INFO"),r.TIME=u(4,"TIME"),r.WARN=u(5,"WARN"),r.ERROR=u(8,"ERROR"),r.OFF=u(99,"OFF");var f=function(d){this.context=d,this.setLevel(d.filterLevel),this.log=this.info};f.prototype={setLevel:function(d){d&&"value"in d&&(this.context.filterLevel=d)},getLevel:function(){return this.context.filterLevel},enabledFor:function(d){var b=this.context.filterLevel;return d.value>=b.value},trace:function(){this.invoke(r.TRACE,arguments)},debug:function(){this.invoke(r.DEBUG,arguments)},info:function(){this.invoke(r.INFO,arguments)},warn:function(){this.invoke(r.WARN,arguments)},error:function(){this.invoke(r.ERROR,arguments)},time:function(d){typeof d=="string"&&d.length>0&&this.invoke(r.TIME,[d,"start"])},timeEnd:function(d){typeof d=="string"&&d.length>0&&this.invoke(r.TIME,[d,"end"])},invoke:function(d,b){i&&this.enabledFor(d)&&i(b,a({level:d},this.context))}};var h=new f({filterLevel:r.OFF});(function(){var d=r;d.enabledFor=s(h,h.enabledFor),d.trace=s(h,h.trace),d.debug=s(h,h.debug),d.time=s(h,h.time),d.timeEnd=s(h,h.timeEnd),d.info=s(h,h.info),d.warn=s(h,h.warn),d.error=s(h,h.error),d.log=d.info})(),r.setHandler=function(d){i=d},r.setLevel=function(d){h.setLevel(d);for(var b in o)o.hasOwnProperty(b)&&o[b].setLevel(d)},r.getLevel=function(){return h.getLevel()},r.get=function(d){return o[d]||(o[d]=new f(a({name:d},h.context)))},r.createDefaultHandler=function(d){d=d||{},d.formatter=d.formatter||function(w,T){T.name&&w.unshift("["+T.name+"]")};var b={},_=function(w,T){Function.prototype.apply.call(w,console,T)};return typeof console>"u"?function(){}:function(w,T){w=Array.prototype.slice.call(w);var D=console.log,M;T.level===r.TIME?(M=(T.name?"["+T.name+"] ":"")+w[0],w[1]==="start"?console.time?console.time(M):b[M]=new Date().getTime():console.timeEnd?console.timeEnd(M):_(D,[M+": "+(new Date().getTime()-b[M])+"ms"])):(T.level===r.WARN&&console.warn?D=console.warn:T.level===r.ERROR&&console.error?D=console.error:T.level===r.INFO&&console.info?D=console.info:T.level===r.DEBUG&&console.debug?D=console.debug:T.level===r.TRACE&&console.trace&&(D=console.trace),d.formatter(w,T),_(D,w))}},r.useDefaults=function(d){r.setLevel(d&&d.defaultLevel||r.DEBUG),r.setHandler(r.createDefaultHandler(d))},r.setDefaults=r.useDefaults,typeof define=="function"&&define.amd?define(r):typeof e<"u"&&e.exports?e.exports=r:(r._prevLogger=n.Logger,r.noConflict=function(){return n.Logger=r._prevLogger,r},n.Logger=r)})(t)}),uy=Wr(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MilestoneRewardType=t.ProgressBarLayout=t.EngagementContentSource=t.EngagementObjective=t.OnsiteDeliveryType=t.ClickActionType=t.FrequencyGapUnit=t.FrequencyType=t.RedirectBehaviour=t.EngagementPlacementPosition=t.EngagementCollectionSource=t.PromotionType=t.CartFilterEnum=t.CartCurrencyOperator=t.CartCriteria=t.URLCriteria=t.UTMCriteria=t.CartItemSource=t.EngagementItemSource=t.PurchasedVisitor=t.LoggedInVisitor=t.VisitorType=t.SessionType=t.EngagementContentType=t.TriggerType=t.EngagementType=t.EngagementStatus=t.TimePreference=t.ScheduleFrequency=t.CriteriaFrequency=void 0;var e=function(g){return g[g.ONCE_PER_USER=1]="ONCE_PER_USER",g[g.ONCE_PER_SESSION=2]="ONCE_PER_SESSION",g[g.EVERY_TIME=3]="EVERY_TIME",g}(e||(t.CriteriaFrequency=e={})),n=function(g){return g[g.ONE_TIME=1]="ONE_TIME",g[g.MULTIPLE=2]="MULTIPLE",g[g.RECURRING=3]="RECURRING",g}(n||(t.ScheduleFrequency=n={})),r=function(g){return g[g.NOW=1]="NOW",g[g.LATER=2]="LATER",g[g.NEVER=3]="NEVER",g}(r||(t.TimePreference=r={})),i=function(g){return g[g.PUBLISHED=1]="PUBLISHED",g[g.DRAFT=2]="DRAFT",g[g.PAUSED=3]="PAUSED",g[g.FAILED=4]="FAILED",g[g.STOPPED=5]="STOPPED",g[g.COMPLETED=6]="COMPLETED",g[g.ARCHIVED=7]="ARCHIVED",g[g.UNINSTALLED=8]="UNINSTALLED",g}(i||(t.EngagementStatus=i={})),o=function(g){return g[g.POPUP=1]="POPUP",g[g.LEAD_GENERATION=2]="LEAD_GENERATION",g[g.PRODUCT_WIDGET=3]="PRODUCT_WIDGET",g[g.PRODUCT_BUNDLE=4]="PRODUCT_BUNDLE",g[g.ANNOUNCEMENT_BAR=5]="ANNOUNCEMENT_BAR",g[g.CART_REMINDER=6]="CART_REMINDER",g[g.CRO_COPILOT=10]="CRO_COPILOT",g[g.OTHER=11]="OTHER",g}(o||(t.EngagementType=o={})),s=function(g){return g[g.NONE=0]="NONE",g[g.RULE_BASED=1]="RULE_BASED",g[g.INTENT_BASED=2]="INTENT_BASED",g}(s||(t.TriggerType=s={})),a=function(g){return g[g.SINGLE=1]="SINGLE",g[g.EXCLUSION=2]="EXCLUSION",g[g.ABTESTING=3]="ABTESTING",g}(a||(t.EngagementContentType=a={})),u=function(g){return g[g.ALL=0]="ALL",g[g.NEW_ONLY=1]="NEW_ONLY",g[g.RETURNING_ONLY=2]="RETURNING_ONLY",g}(u||(t.SessionType=u={})),f=function(g){return g[g.ALL=0]="ALL",g[g.LOGGED_IN_ONLY=3]="LOGGED_IN_ONLY",g[g.NON_LOGGED_IN_ONLY=4]="NON_LOGGED_IN_ONLY",g[g.PURCHASED=5]="PURCHASED",g[g.NON_PURCHASED=6]="NON_PURCHASED",g[g.ABANDON_CART=7]="ABANDON_CART",g[g.RETURNING_AND_NON_PURCHASED=8]="RETURNING_AND_NON_PURCHASED",g}(f||(t.VisitorType=f={})),h=function(g){return g.ALL="ALL",g.LOGGED_IN="LOGGED_IN",g.NON_LOGGED_IN="NON_LOGGED_IN",g}(h||(t.LoggedInVisitor=h={})),d=function(g){return g.ALL="ALL",g.PURCHASED="PURCHASED",g.NON_PURCHASED="NON_PURCHASED",g}(d||(t.PurchasedVisitor=d={})),b=function(g){return g[g.NONE=0]="NONE",g[g.ITEM_RECOMMENDATION=1]="ITEM_RECOMMENDATION",g[g.MULTIPLE_ITEMS=2]="MULTIPLE_ITEMS",g[g.SINGLE_ITEM=3]="SINGLE_ITEM",g[g.TOP_SELLING=4]="TOP_SELLING",g[g.STOCK_CLEARANCE=5]="STOCK_CLEARANCE",g[g.NEW_ARRIVALS=6]="NEW_ARRIVALS",g[g.RECENTLY_VIEWED=7]="RECENTLY_VIEWED",g[g.EVENT_ITEM=8]="EVENT_ITEM",g[g.CART_ITEM=9]="CART_ITEM",g[g.BUNDLE=10]="BUNDLE",g[g.CURRENT_ITEM=11]="CURRENT_ITEM",g[g.PURCHASED_PREVIOUSLY=12]="PURCHASED_PREVIOUSLY",g[g.COLLECTION_ITEMS=13]="COLLECTION_ITEMS",g[g.TRENDING_ITEMS=14]="TRENDING_ITEMS",g}(b||(t.EngagementItemSource=b={})),_=function(g){return g[g.LAST_ADDED=1]="LAST_ADDED",g[g.FIRST_ADDED=2]="FIRST_ADDED",g[g.HIGHEST_PRICE=3]="HIGHEST_PRICE",g[g.LOWEST_PRICE=4]="LOWEST_PRICE",g[g.FIRST_MATCHING_TAG=5]="FIRST_MATCHING_TAG",g[g.ALL=6]="ALL",g}(_||(t.CartItemSource=_={})),w=function(g){return g[g.ALL=0]="ALL",g[g.ONLY_ORGANIC=1]="ONLY_ORGANIC",g[g.ONLY_NON_ORGANIC=2]="ONLY_NON_ORGANIC",g[g.INCLUDES=3]="INCLUDES",g[g.EXCLUDES=4]="EXCLUDES",g}(w||(t.UTMCriteria=w={})),T=function(g){return g[g.NONE=0]="NONE",g[g.LIKE=1]="LIKE",g[g.NOT_LIKE=2]="NOT_LIKE",g[g.EQUALS=3]="EQUALS",g[g.NOT_EQUALS=4]="NOT_EQUALS",g}(T||(t.URLCriteria=T={})),D=function(g){return g[g.NONE=0]="NONE",g[g.LESS_THAN=1]="LESS_THAN",g[g.GREATER_THAN=2]="GREATER_THAN",g[g.BETWEEN=3]="BETWEEN",g[g.EQUALS=4]="EQUALS",g}(D||(t.CartCriteria=D={})),M=function(g){return g[g.ALL=0]="ALL",g[g.INCLUDES=1]="INCLUDES",g[g.EXCLUDES=2]="EXCLUDES",g}(M||(t.CartCurrencyOperator=M={})),H=function(g){return g[g.NONE=0]="NONE",g[g.AMOUNT=1]="AMOUNT",g[g.TOTAL_PRODUCT=2]="TOTAL_PRODUCT",g[g.UNIQUE_PRODUCT=3]="UNIQUE_PRODUCT",g}(H||(t.CartFilterEnum=H={})),Y=function(g){return g[g.NONE=0]="NONE",g[g.ITEM=1]="ITEM",g[g.COLLECTION=2]="COLLECTION",g}(Y||(t.PromotionType=Y={})),V=function(g){return g[g.NONE=0]="NONE",g[g.SINGLE=1]="SINGLE",g[g.MULTIPLE=2]="MULTIPLE",g}(V||(t.EngagementCollectionSource=V={})),Q=function(g){return g.BEFORE="before",g.AFTER="after",g.INSIDE_FIRST="insideFirst",g.INSIDE_LAST="insideLast",g}(Q||(t.EngagementPlacementPosition=Q={})),Lt=function(g){return g.SHOPIFY_CHECKOUT="shopify_checkout",g.THIRD_PARTY_CHECKOUT="third_party_checkout",g.CART_PAGE="cart_page",g.CART_DRAWER="cart_drawer",g}(Lt||(t.RedirectBehaviour=Lt={})),Mt=function(g){return g.ONCE_IN_SESSION="ONCE_IN_SESSION",g.ACROSS_SESSIONS="ACROSS_SESSIONS",g}(Mt||(t.FrequencyType=Mt={})),U=function(g){return g.DAYS="DAYS",g.HOURS="HOURS",g.MINUTES="MINUTES",g.SECONDS="SECONDS",g}(U||(t.FrequencyGapUnit=U={})),et=function(g){return g[g.NONE=0]="NONE",g[g.REJECT_POPUP=1]="REJECT_POPUP",g[g.ACCEPT_POPUP=2]="ACCEPT_POPUP",g[g.GO_TO_URL=4]="GO_TO_URL",g[g.SHARE=5]="SHARE",g[g.KEY_VALUE=100]="KEY_VALUE",g[g.GO_TO_PRODUCT=101]="GO_TO_PRODUCT",g[g.ADD_TO_CART=102]="ADD_TO_CART",g[g.COPY_COUPON_CODE=103]="COPY_COUPON_CODE",g[g.GO_TO_COLLECTION=104]="GO_TO_COLLECTION",g[g.OPEN_CART=105]="OPEN_CART",g[g.SUBMIT_FORM=106]="SUBMIT_FORM",g[g.INITIATE_CHECKOUT=107]="INITIATE_CHECKOUT",g[g.ADD_BUNDLE=108]="ADD_BUNDLE",g[g.UPGRADE_TO_SUBSCRIPTION=109]="UPGRADE_TO_SUBSCRIPTION",g}(et||(t.ClickActionType=et={})),J=function(g){return g.POPUP="POPUP",g.PAGE_EMBED="PAGE_EMBED",g.CART_EMBED="CART_EMBED",g.ANNOUNCEMENT_BAR="ANNOUNCEMENT_BAR",g}(J||(t.OnsiteDeliveryType=J={})),it=function(g){return g.PRODUCT_PROMOTION="PRODUCT_PROMOTION",g.BUNDLE_AND_UPSELL="BUNDLE_AND_UPSELL",g.CART_RECOVERY="CART_RECOVERY",g.ANNOUNCEMENT="ANNOUNCEMENT",g.LEAD_GENERATION="LEAD_GENERATION",g.DATA_COLLECTION="DATA_COLLECTION",g.SALE_PROMOTION="SALE_PROMOTION",g.SUBSCRIPTION_UPSELL="SUBSCRIPTION_UPSELL",g.SHOPPABLE_VIDEO="SHOPPABLE_VIDEO",g.BYOB="BYOB",g.PROGRESS_BAR="PROGRESS_BAR",g.BUY_NOW="BUY_NOW",g}(it||(t.EngagementObjective=it={})),wt=function(g){return g.COOEE="COOEE",g.KLAVIYO="KLAVIYO",g}(wt||(t.EngagementContentSource=wt={})),At=function(g){return g.ICONS="ICONS",g.TILES="TILES",g}(At||(t.ProgressBarLayout=At={})),It=function(g){return g.FREE_SHIPPING="FREE_SHIPPING",g.DISCOUNT="DISCOUNT",g.FREE_AUTO_GIFT="FREE_AUTO_GIFT",g.FREE_GIFT_SELECT="FREE_GIFT_SELECT",g}(It||(t.MilestoneRewardType=It={}))}),ly=Wr(t=>{"use strict";var e=t&&t.__awaiter||function(r,i,o,s){function a(u){return u instanceof o?u:new o(function(f){f(u)})}return new(o||(o=Promise))(function(u,f){function h(_){try{b(s.next(_))}catch(w){f(w)}}function d(_){try{b(s.throw(_))}catch(w){f(w)}}function b(_){_.done?u(_.value):a(_.value).then(h,d)}b((s=s.apply(r,i||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.JSUtils=void 0;var n=class{static isObject(r){return typeof r=="object"&&!Array.isArray(r)&&r!==null}static parseToAny(r){try{return JSON.parse(r.toString())}catch{}return r.toString().match(this.ISO_WITHOUT_MS_REGEX)?new Date(r.toString()):r}static sleep(r){return e(this,void 0,void 0,function*(){return new Promise(i=>setTimeout(i,r))})}static hasKeys(r){return r?Object.keys(r).length>=1:!1}static convertObjectToArray(r,i){return i.reduce((o,s)=>(r.hasOwnProperty(s)&&r[s]!=null&&o.push({[s]:r[s]}),o),[])}static removeNullUndefinedKeys(r){return Object.keys(r).reduce((i,o)=>(r[o]!==null&&r[o]!==void 0&&(i[o]=r[o]),i),{})}static stringify(r){return JSON.stringify(r,function(i,o){return o===void 0?null:o})}};t.JSUtils=n,n.ISO_WITHOUT_MS_REGEX=new RegExp(/\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)/)}),cy=Wr((t,e)=>{"use strict";(function(n){if(typeof t=="object"&&typeof e<"u")e.exports=n();else if(typeof define=="function"&&define.amd)define([],n);else{var r;typeof window<"u"?r=window:typeof global<"u"?r=global:typeof self<"u"?r=self:r=this,r.localforage=n()}})(function(){var n,r,i;return function o(s,a,u){function f(b,_){if(!a[b]){if(!s[b]){var w=typeof pi=="function"&&pi;if(!_&&w)return w(b,!0);if(h)return h(b,!0);var T=new Error("Cannot find module '"+b+"'");throw T.code="MODULE_NOT_FOUND",T}var D=a[b]={exports:{}};s[b][0].call(D.exports,function(M){var H=s[b][1][M];return f(H||M)},D,D.exports,o,s,a,u)}return a[b].exports}for(var h=typeof pi=="function"&&pi,d=0;d<u.length;d++)f(u[d]);return f}({1:[function(o,s,a){(function(u){"use strict";var f=u.MutationObserver||u.WebKitMutationObserver,h;if(f){var d=0,b=new f(M),_=u.document.createTextNode("");b.observe(_,{characterData:!0}),h=function(){_.data=d=++d%2}}else if(!u.setImmediate&&typeof u.MessageChannel<"u"){var w=new u.MessageChannel;w.port1.onmessage=M,h=function(){w.port2.postMessage(0)}}else"document"in u&&"onreadystatechange"in u.document.createElement("script")?h=function(){var Y=u.document.createElement("script");Y.onreadystatechange=function(){M(),Y.onreadystatechange=null,Y.parentNode.removeChild(Y),Y=null},u.document.documentElement.appendChild(Y)}:h=function(){setTimeout(M,0)};var T,D=[];function M(){T=!0;for(var Y,V,Q=D.length;Q;){for(V=D,D=[],Y=-1;++Y<Q;)V[Y]();Q=D.length}T=!1}s.exports=H;function H(Y){D.push(Y)===1&&!T&&h()}}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}],2:[function(o,s,a){"use strict";var u=o(1);function f(){}var h={},d=["REJECTED"],b=["FULFILLED"],_=["PENDING"];s.exports=w;function w(U){if(typeof U!="function")throw new TypeError("resolver must be a function");this.state=_,this.queue=[],this.outcome=void 0,U!==f&&H(this,U)}w.prototype.catch=function(U){return this.then(null,U)},w.prototype.then=function(U,et){if(typeof U!="function"&&this.state===b||typeof et!="function"&&this.state===d)return this;var J=new this.constructor(f);if(this.state!==_){var it=this.state===b?U:et;D(J,it,this.outcome)}else this.queue.push(new T(J,U,et));return J};function T(U,et,J){this.promise=U,typeof et=="function"&&(this.onFulfilled=et,this.callFulfilled=this.otherCallFulfilled),typeof J=="function"&&(this.onRejected=J,this.callRejected=this.otherCallRejected)}T.prototype.callFulfilled=function(U){h.resolve(this.promise,U)},T.prototype.otherCallFulfilled=function(U){D(this.promise,this.onFulfilled,U)},T.prototype.callRejected=function(U){h.reject(this.promise,U)},T.prototype.otherCallRejected=function(U){D(this.promise,this.onRejected,U)};function D(U,et,J){u(function(){var it;try{it=et(J)}catch(wt){return h.reject(U,wt)}it===U?h.reject(U,new TypeError("Cannot resolve promise with itself")):h.resolve(U,it)})}h.resolve=function(U,et){var J=Y(M,et);if(J.status==="error")return h.reject(U,J.value);var it=J.value;if(it)H(U,it);else{U.state=b,U.outcome=et;for(var wt=-1,At=U.queue.length;++wt<At;)U.queue[wt].callFulfilled(et)}return U},h.reject=function(U,et){U.state=d,U.outcome=et;for(var J=-1,it=U.queue.length;++J<it;)U.queue[J].callRejected(et);return U};function M(U){var et=U&&U.then;if(U&&(typeof U=="object"||typeof U=="function")&&typeof et=="function")return function(){et.apply(U,arguments)}}function H(U,et){var J=!1;function it(g){J||(J=!0,h.reject(U,g))}function wt(g){J||(J=!0,h.resolve(U,g))}function At(){et(wt,it)}var It=Y(At);It.status==="error"&&it(It.value)}function Y(U,et){var J={};try{J.value=U(et),J.status="success"}catch(it){J.status="error",J.value=it}return J}w.resolve=V;function V(U){return U instanceof this?U:h.resolve(new this(f),U)}w.reject=Q;function Q(U){var et=new this(f);return h.reject(et,U)}w.all=Lt;function Lt(U){var et=this;if(Object.prototype.toString.call(U)!=="[object Array]")return this.reject(new TypeError("must be an array"));var J=U.length,it=!1;if(!J)return this.resolve([]);for(var wt=new Array(J),At=0,It=-1,g=new this(f);++It<J;)qt(U[It],It);return g;function qt(vt,Yt){et.resolve(vt).then(ot,function(N){it||(it=!0,h.reject(g,N))});function ot(N){wt[Yt]=N,++At===J&&!it&&(it=!0,h.resolve(g,wt))}}}w.race=Mt;function Mt(U){var et=this;if(Object.prototype.toString.call(U)!=="[object Array]")return this.reject(new TypeError("must be an array"));var J=U.length,it=!1;if(!J)return this.resolve([]);for(var wt=-1,At=new this(f);++wt<J;)It(U[wt]);return At;function It(g){et.resolve(g).then(function(qt){it||(it=!0,h.resolve(At,qt))},function(qt){it||(it=!0,h.reject(At,qt))})}}},{1:1}],3:[function(o,s,a){(function(u){"use strict";typeof u.Promise!="function"&&(u.Promise=o(2))}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{2:2}],4:[function(o,s,a){"use strict";var u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(y){return typeof y}:function(y){return y&&typeof Symbol=="function"&&y.constructor===Symbol&&y!==Symbol.prototype?"symbol":typeof y};function f(y,m){if(!(y instanceof m))throw new TypeError("Cannot call a class as a function")}function h(){try{if(typeof indexedDB<"u")return indexedDB;if(typeof webkitIndexedDB<"u")return webkitIndexedDB;if(typeof mozIndexedDB<"u")return mozIndexedDB;if(typeof OIndexedDB<"u")return OIndexedDB;if(typeof msIndexedDB<"u")return msIndexedDB}catch{return}}var d=h();function b(){try{if(!d||!d.open)return!1;var y=typeof openDatabase<"u"&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),m=typeof fetch=="function"&&fetch.toString().indexOf("[native code")!==-1;return(!y||m)&&typeof indexedDB<"u"&&typeof IDBKeyRange<"u"}catch{return!1}}function _(y,m){y=y||[],m=m||{};try{return new Blob(y,m)}catch(O){if(O.name!=="TypeError")throw O;for(var v=typeof BlobBuilder<"u"?BlobBuilder:typeof MSBlobBuilder<"u"?MSBlobBuilder:typeof MozBlobBuilder<"u"?MozBlobBuilder:WebKitBlobBuilder,x=new v,I=0;I<y.length;I+=1)x.append(y[I]);return x.getBlob(m.type)}}typeof Promise>"u"&&o(3);var w=Promise;function T(y,m){m&&y.then(function(v){m(null,v)},function(v){m(v)})}function D(y,m,v){typeof m=="function"&&y.then(m),typeof v=="function"&&y.catch(v)}function M(y){return typeof y!="string"&&(console.warn(y+" used as a key, but it is not a string."),y=String(y)),y}function H(){if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}var Y="local-forage-detect-blob-support",V=void 0,Q={},Lt=Object.prototype.toString,Mt="readonly",U="readwrite";function et(y){for(var m=y.length,v=new ArrayBuffer(m),x=new Uint8Array(v),I=0;I<m;I++)x[I]=y.charCodeAt(I);return v}function J(y){return new w(function(m){var v=y.transaction(Y,U),x=_([""]);v.objectStore(Y).put(x,"key"),v.onabort=function(I){I.preventDefault(),I.stopPropagation(),m(!1)},v.oncomplete=function(){var I=navigator.userAgent.match(/Chrome\/(\d+)/),O=navigator.userAgent.match(/Edge\//);m(O||!I||parseInt(I[1],10)>=43)}}).catch(function(){return!1})}function it(y){return typeof V=="boolean"?w.resolve(V):J(y).then(function(m){return V=m,V})}function wt(y){var m=Q[y.name],v={};v.promise=new w(function(x,I){v.resolve=x,v.reject=I}),m.deferredOperations.push(v),m.dbReady?m.dbReady=m.dbReady.then(function(){return v.promise}):m.dbReady=v.promise}function At(y){var m=Q[y.name],v=m.deferredOperations.pop();if(v)return v.resolve(),v.promise}function It(y,m){var v=Q[y.name],x=v.deferredOperations.pop();if(x)return x.reject(m),x.promise}function g(y,m){return new w(function(v,x){if(Q[y.name]=Q[y.name]||X(),y.db)if(m)wt(y),y.db.close();else return v(y.db);var I=[y.name];m&&I.push(y.version);var O=d.open.apply(d,I);m&&(O.onupgradeneeded=function(A){var L=O.result;try{L.createObjectStore(y.storeName),A.oldVersion<=1&&L.createObjectStore(Y)}catch(B){if(B.name==="ConstraintError")console.warn('The database "'+y.name+'" has been upgraded from version '+A.oldVersion+" to version "+A.newVersion+', but the storage "'+y.storeName+'" already exists.');else throw B}}),O.onerror=function(A){A.preventDefault(),x(O.error)},O.onsuccess=function(){var A=O.result;A.onversionchange=function(L){L.target.close()},v(A),At(y)}})}function qt(y){return g(y,!1)}function vt(y){return g(y,!0)}function Yt(y,m){if(!y.db)return!0;var v=!y.db.objectStoreNames.contains(y.storeName),x=y.version<y.db.version,I=y.version>y.db.version;if(x&&(y.version!==m&&console.warn('The database "'+y.name+`" can't be downgraded from version `+y.db.version+" to version "+y.version+"."),y.version=y.db.version),I||v){if(v){var O=y.db.version+1;O>y.version&&(y.version=O)}return!0}return!1}function ot(y){return new w(function(m,v){var x=new FileReader;x.onerror=v,x.onloadend=function(I){var O=btoa(I.target.result||"");m({__local_forage_encoded_blob:!0,data:O,type:y.type})},x.readAsBinaryString(y)})}function N(y){var m=et(atob(y.data));return _([m],{type:y.type})}function S(y){return y&&y.__local_forage_encoded_blob}function $(y){var m=this,v=m._initReady().then(function(){var x=Q[m._dbInfo.name];if(x&&x.dbReady)return x.dbReady});return D(v,y,y),v}function W(y){wt(y);for(var m=Q[y.name],v=m.forages,x=0;x<v.length;x++){var I=v[x];I._dbInfo.db&&(I._dbInfo.db.close(),I._dbInfo.db=null)}return y.db=null,qt(y).then(function(O){return y.db=O,Yt(y)?vt(y):O}).then(function(O){y.db=m.db=O;for(var A=0;A<v.length;A++)v[A]._dbInfo.db=O}).catch(function(O){throw It(y,O),O})}function G(y,m,v,x){x===void 0&&(x=1);try{var I=y.db.transaction(y.storeName,m);v(null,I)}catch(O){if(x>0&&(!y.db||O.name==="InvalidStateError"||O.name==="NotFoundError"))return w.resolve().then(function(){if(!y.db||O.name==="NotFoundError"&&!y.db.objectStoreNames.contains(y.storeName)&&y.version<=y.db.version)return y.db&&(y.version=y.db.version+1),vt(y)}).then(function(){return W(y).then(function(){G(y,m,v,x-1)})}).catch(v);v(O)}}function X(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function K(y){var m=this,v={db:null};if(y)for(var x in y)v[x]=y[x];var I=Q[v.name];I||(I=X(),Q[v.name]=I),I.forages.push(m),m._initReady||(m._initReady=m.ready,m.ready=$);var O=[];function A(){return w.resolve()}for(var L=0;L<I.forages.length;L++){var B=I.forages[L];B!==m&&O.push(B._initReady().catch(A))}var j=I.forages.slice(0);return w.all(O).then(function(){return v.db=I.db,qt(v)}).then(function(P){return v.db=P,Yt(v,m._defaultConfig.version)?vt(v):P}).then(function(P){v.db=I.db=P,m._dbInfo=v;for(var q=0;q<j.length;q++){var at=j[q];at!==m&&(at._dbInfo.db=v.db,at._dbInfo.version=v.version)}})}function Z(y,m){var v=this;y=M(y);var x=new w(function(I,O){v.ready().then(function(){G(v._dbInfo,Mt,function(A,L){if(A)return O(A);try{var B=L.objectStore(v._dbInfo.storeName),j=B.get(y);j.onsuccess=function(){var P=j.result;P===void 0&&(P=null),S(P)&&(P=N(P)),I(P)},j.onerror=function(){O(j.error)}}catch(P){O(P)}})}).catch(O)});return T(x,m),x}function rt(y,m){var v=this,x=new w(function(I,O){v.ready().then(function(){G(v._dbInfo,Mt,function(A,L){if(A)return O(A);try{var B=L.objectStore(v._dbInfo.storeName),j=B.openCursor(),P=1;j.onsuccess=function(){var q=j.result;if(q){var at=q.value;S(at)&&(at=N(at));var Nt=y(at,q.key,P++);Nt!==void 0?I(Nt):q.continue()}else I()},j.onerror=function(){O(j.error)}}catch(q){O(q)}})}).catch(O)});return T(x,m),x}function ft(y,m,v){var x=this;y=M(y);var I=new w(function(O,A){var L;x.ready().then(function(){return L=x._dbInfo,Lt.call(m)==="[object Blob]"?it(L.db).then(function(B){return B?m:ot(m)}):m}).then(function(B){G(x._dbInfo,U,function(j,P){if(j)return A(j);try{var q=P.objectStore(x._dbInfo.storeName);B===null&&(B=void 0);var at=q.put(B,y);P.oncomplete=function(){B===void 0&&(B=null),O(B)},P.onabort=P.onerror=function(){var Nt=at.error?at.error:at.transaction.error;A(Nt)}}catch(Nt){A(Nt)}})}).catch(A)});return T(I,v),I}function Pt(y,m){var v=this;y=M(y);var x=new w(function(I,O){v.ready().then(function(){G(v._dbInfo,U,function(A,L){if(A)return O(A);try{var B=L.objectStore(v._dbInfo.storeName),j=B.delete(y);L.oncomplete=function(){I()},L.onerror=function(){O(j.error)},L.onabort=function(){var P=j.error?j.error:j.transaction.error;O(P)}}catch(P){O(P)}})}).catch(O)});return T(x,m),x}function ht(y){var m=this,v=new w(function(x,I){m.ready().then(function(){G(m._dbInfo,U,function(O,A){if(O)return I(O);try{var L=A.objectStore(m._dbInfo.storeName),B=L.clear();A.oncomplete=function(){x()},A.onabort=A.onerror=function(){var j=B.error?B.error:B.transaction.error;I(j)}}catch(j){I(j)}})}).catch(I)});return T(v,y),v}function pt(y){var m=this,v=new w(function(x,I){m.ready().then(function(){G(m._dbInfo,Mt,function(O,A){if(O)return I(O);try{var L=A.objectStore(m._dbInfo.storeName),B=L.count();B.onsuccess=function(){x(B.result)},B.onerror=function(){I(B.error)}}catch(j){I(j)}})}).catch(I)});return T(v,y),v}function Ft(y,m){var v=this,x=new w(function(I,O){if(y<0){I(null);return}v.ready().then(function(){G(v._dbInfo,Mt,function(A,L){if(A)return O(A);try{var B=L.objectStore(v._dbInfo.storeName),j=!1,P=B.openKeyCursor();P.onsuccess=function(){var q=P.result;if(!q){I(null);return}y===0||j?I(q.key):(j=!0,q.advance(y))},P.onerror=function(){O(P.error)}}catch(q){O(q)}})}).catch(O)});return T(x,m),x}function st(y){var m=this,v=new w(function(x,I){m.ready().then(function(){G(m._dbInfo,Mt,function(O,A){if(O)return I(O);try{var L=A.objectStore(m._dbInfo.storeName),B=L.openKeyCursor(),j=[];B.onsuccess=function(){var P=B.result;if(!P){x(j);return}j.push(P.key),P.continue()},B.onerror=function(){I(B.error)}}catch(P){I(P)}})}).catch(I)});return T(v,y),v}function l(y,m){m=H.apply(this,arguments);var v=this.config();y=typeof y!="function"&&y||{},y.name||(y.name=y.name||v.name,y.storeName=y.storeName||v.storeName);var x=this,I;if(!y.name)I=w.reject("Invalid arguments");else{var O=y.name===v.name&&x._dbInfo.db,A=O?w.resolve(x._dbInfo.db):qt(y).then(function(L){var B=Q[y.name],j=B.forages;B.db=L;for(var P=0;P<j.length;P++)j[P]._dbInfo.db=L;return L});y.storeName?I=A.then(function(L){if(L.objectStoreNames.contains(y.storeName)){var B=L.version+1;wt(y);var j=Q[y.name],P=j.forages;L.close();for(var q=0;q<P.length;q++){var at=P[q];at._dbInfo.db=null,at._dbInfo.version=B}var Nt=new w(function(Et,Ht){var Ut=d.open(y.name,B);Ut.onerror=function(de){var $o=Ut.result;$o.close(),Ht(de)},Ut.onupgradeneeded=function(){var de=Ut.result;de.deleteObjectStore(y.storeName)},Ut.onsuccess=function(){var de=Ut.result;de.close(),Et(de)}});return Nt.then(function(Et){j.db=Et;for(var Ht=0;Ht<P.length;Ht++){var Ut=P[Ht];Ut._dbInfo.db=Et,At(Ut._dbInfo)}}).catch(function(Et){throw(It(y,Et)||w.resolve()).catch(function(){}),Et})}}):I=A.then(function(L){wt(y);var B=Q[y.name],j=B.forages;L.close();for(var P=0;P<j.length;P++){var q=j[P];q._dbInfo.db=null}var at=new w(function(Nt,Et){var Ht=d.deleteDatabase(y.name);Ht.onerror=function(){var Ut=Ht.result;Ut&&Ut.close(),Et(Ht.error)},Ht.onblocked=function(){console.warn('dropInstance blocked for database "'+y.name+'" until all open connections are closed')},Ht.onsuccess=function(){var Ut=Ht.result;Ut&&Ut.close(),Nt(Ut)}});return at.then(function(Nt){B.db=Nt;for(var Et=0;Et<j.length;Et++){var Ht=j[Et];At(Ht._dbInfo)}}).catch(function(Nt){throw(It(y,Nt)||w.resolve()).catch(function(){}),Nt})})}return T(I,m),I}var c={_driver:"asyncStorage",_initStorage:K,_support:b(),iterate:rt,getItem:Z,setItem:ft,removeItem:Pt,clear:ht,length:pt,key:Ft,keys:st,dropInstance:l};function p(){return typeof openDatabase=="function"}var E="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",C="~~local_forage_type~",R=/^~~local_forage_type~([^~]+)~/,F="__lfsc__:",gt=F.length,jt="arbf",yt="blob",Rt="si08",$t="ui08",Ue="uic8",gn="si16",Ke="si32",br="ur16",$n="ui32",fi="fl32",hi="fl64",Qu=gt+jt.length,Xu=Object.prototype.toString;function tl(y){var m=y.length*.75,v=y.length,x,I=0,O,A,L,B;y[y.length-1]==="="&&(m--,y[y.length-2]==="="&&m--);var j=new ArrayBuffer(m),P=new Uint8Array(j);for(x=0;x<v;x+=4)O=E.indexOf(y[x]),A=E.indexOf(y[x+1]),L=E.indexOf(y[x+2]),B=E.indexOf(y[x+3]),P[I++]=O<<2|A>>4,P[I++]=(A&15)<<4|L>>2,P[I++]=(L&3)<<6|B&63;return j}function Uo(y){var m=new Uint8Array(y),v="",x;for(x=0;x<m.length;x+=3)v+=E[m[x]>>2],v+=E[(m[x]&3)<<4|m[x+1]>>4],v+=E[(m[x+1]&15)<<2|m[x+2]>>6],v+=E[m[x+2]&63];return m.length%3===2?v=v.substring(0,v.length-1)+"=":m.length%3===1&&(v=v.substring(0,v.length-2)+"=="),v}function yg(y,m){var v="";if(y&&(v=Xu.call(y)),y&&(v==="[object ArrayBuffer]"||y.buffer&&Xu.call(y.buffer)==="[object ArrayBuffer]")){var x,I=F;y instanceof ArrayBuffer?(x=y,I+=jt):(x=y.buffer,v==="[object Int8Array]"?I+=Rt:v==="[object Uint8Array]"?I+=$t:v==="[object Uint8ClampedArray]"?I+=Ue:v==="[object Int16Array]"?I+=gn:v==="[object Uint16Array]"?I+=br:v==="[object Int32Array]"?I+=Ke:v==="[object Uint32Array]"?I+=$n:v==="[object Float32Array]"?I+=fi:v==="[object Float64Array]"?I+=hi:m(new Error("Failed to get type for BinaryArray"))),m(I+Uo(x))}else if(v==="[object Blob]"){var O=new FileReader;O.onload=function(){var A=C+y.type+"~"+Uo(this.result);m(F+yt+A)},O.readAsArrayBuffer(y)}else try{m(JSON.stringify(y))}catch(A){console.error("Couldn't convert value into a JSON string: ",y),m(null,A)}}function mg(y){if(y.substring(0,gt)!==F)return JSON.parse(y);var m=y.substring(Qu),v=y.substring(gt,Qu),x;if(v===yt&&R.test(m)){var I=m.match(R);x=I[1],m=m.substring(I[0].length)}var O=tl(m);switch(v){case jt:return O;case yt:return _([O],{type:x});case Rt:return new Int8Array(O);case $t:return new Uint8Array(O);case Ue:return new Uint8ClampedArray(O);case gn:return new Int16Array(O);case br:return new Uint16Array(O);case Ke:return new Int32Array(O);case $n:return new Uint32Array(O);case fi:return new Float32Array(O);case hi:return new Float64Array(O);default:throw new Error("Unkown type: "+v)}}var Bo={serialize:yg,deserialize:mg,stringToBuffer:tl,bufferToString:Uo};function el(y,m,v,x){y.executeSql("CREATE TABLE IF NOT EXISTS "+m.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],v,x)}function vg(y){var m=this,v={db:null};if(y)for(var x in y)v[x]=typeof y[x]!="string"?y[x].toString():y[x];var I=new w(function(O,A){try{v.db=openDatabase(v.name,String(v.version),v.description,v.size)}catch(L){return A(L)}v.db.transaction(function(L){el(L,v,function(){m._dbInfo=v,O()},function(B,j){A(j)})},A)});return v.serializer=Bo,I}function Qe(y,m,v,x,I,O){y.executeSql(v,x,I,function(A,L){L.code===L.SYNTAX_ERR?A.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[m.storeName],function(B,j){j.rows.length?O(B,L):el(B,m,function(){B.executeSql(v,x,I,O)},O)},O):O(A,L)},O)}function bg(y,m){var v=this;y=M(y);var x=new w(function(I,O){v.ready().then(function(){var A=v._dbInfo;A.db.transaction(function(L){Qe(L,A,"SELECT * FROM "+A.storeName+" WHERE key = ? LIMIT 1",[y],function(B,j){var P=j.rows.length?j.rows.item(0).value:null;P&&(P=A.serializer.deserialize(P)),I(P)},function(B,j){O(j)})})}).catch(O)});return T(x,m),x}function _g(y,m){var v=this,x=new w(function(I,O){v.ready().then(function(){var A=v._dbInfo;A.db.transaction(function(L){Qe(L,A,"SELECT * FROM "+A.storeName,[],function(B,j){for(var P=j.rows,q=P.length,at=0;at<q;at++){var Nt=P.item(at),Et=Nt.value;if(Et&&(Et=A.serializer.deserialize(Et)),Et=y(Et,Nt.key,at+1),Et!==void 0){I(Et);return}}I()},function(B,j){O(j)})})}).catch(O)});return T(x,m),x}function nl(y,m,v,x){var I=this;y=M(y);var O=new w(function(A,L){I.ready().then(function(){m===void 0&&(m=null);var B=m,j=I._dbInfo;j.serializer.serialize(m,function(P,q){q?L(q):j.db.transaction(function(at){Qe(at,j,"INSERT OR REPLACE INTO "+j.storeName+" (key, value) VALUES (?, ?)",[y,P],function(){A(B)},function(Nt,Et){L(Et)})},function(at){if(at.code===at.QUOTA_ERR){if(x>0){A(nl.apply(I,[y,B,v,x-1]));return}L(at)}})})}).catch(L)});return T(O,v),O}function wg(y,m,v){return nl.apply(this,[y,m,v,1])}function Eg(y,m){var v=this;y=M(y);var x=new w(function(I,O){v.ready().then(function(){var A=v._dbInfo;A.db.transaction(function(L){Qe(L,A,"DELETE FROM "+A.storeName+" WHERE key = ?",[y],function(){I()},function(B,j){O(j)})})}).catch(O)});return T(x,m),x}function Sg(y){var m=this,v=new w(function(x,I){m.ready().then(function(){var O=m._dbInfo;O.db.transaction(function(A){Qe(A,O,"DELETE FROM "+O.storeName,[],function(){x()},function(L,B){I(B)})})}).catch(I)});return T(v,y),v}function Ig(y){var m=this,v=new w(function(x,I){m.ready().then(function(){var O=m._dbInfo;O.db.transaction(function(A){Qe(A,O,"SELECT COUNT(key) as c FROM "+O.storeName,[],function(L,B){var j=B.rows.item(0).c;x(j)},function(L,B){I(B)})})}).catch(I)});return T(v,y),v}function Ng(y,m){var v=this,x=new w(function(I,O){v.ready().then(function(){var A=v._dbInfo;A.db.transaction(function(L){Qe(L,A,"SELECT key FROM "+A.storeName+" WHERE id = ? LIMIT 1",[y+1],function(B,j){var P=j.rows.length?j.rows.item(0).key:null;I(P)},function(B,j){O(j)})})}).catch(O)});return T(x,m),x}function xg(y){var m=this,v=new w(function(x,I){m.ready().then(function(){var O=m._dbInfo;O.db.transaction(function(A){Qe(A,O,"SELECT key FROM "+O.storeName,[],function(L,B){for(var j=[],P=0;P<B.rows.length;P++)j.push(B.rows.item(P).key);x(j)},function(L,B){I(B)})})}).catch(I)});return T(v,y),v}function Og(y){return new w(function(m,v){y.transaction(function(x){x.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(I,O){for(var A=[],L=0;L<O.rows.length;L++)A.push(O.rows.item(L).name);m({db:y,storeNames:A})},function(I,O){v(O)})},function(x){v(x)})})}function Tg(y,m){m=H.apply(this,arguments);var v=this.config();y=typeof y!="function"&&y||{},y.name||(y.name=y.name||v.name,y.storeName=y.storeName||v.storeName);var x=this,I;return y.name?I=new w(function(O){var A;y.name===v.name?A=x._dbInfo.db:A=openDatabase(y.name,"","",0),y.storeName?O({db:A,storeNames:[y.storeName]}):O(Og(A))}).then(function(O){return new w(function(A,L){O.db.transaction(function(B){function j(Nt){return new w(function(Et,Ht){B.executeSql("DROP TABLE IF EXISTS "+Nt,[],function(){Et()},function(Ut,de){Ht(de)})})}for(var P=[],q=0,at=O.storeNames.length;q<at;q++)P.push(j(O.storeNames[q]));w.all(P).then(function(){A()}).catch(function(Nt){L(Nt)})},function(B){L(B)})})}):I=w.reject("Invalid arguments"),T(I,m),I}var Cg={_driver:"webSQLStorage",_initStorage:vg,_support:p(),iterate:_g,getItem:bg,setItem:wg,removeItem:Eg,clear:Sg,length:Ig,key:Ng,keys:xg,dropInstance:Tg};function Ag(){try{return typeof localStorage<"u"&&"setItem"in localStorage&&!!localStorage.setItem}catch{return!1}}function rl(y,m){var v=y.name+"/";return y.storeName!==m.storeName&&(v+=y.storeName+"/"),v}function Rg(){var y="_localforage_support_test";try{return localStorage.setItem(y,!0),localStorage.removeItem(y),!1}catch{return!0}}function kg(){return!Rg()||localStorage.length>0}function Dg(y){var m=this,v={};if(y)for(var x in y)v[x]=y[x];return v.keyPrefix=rl(y,m._defaultConfig),kg()?(m._dbInfo=v,v.serializer=Bo,w.resolve()):w.reject()}function Lg(y){var m=this,v=m.ready().then(function(){for(var x=m._dbInfo.keyPrefix,I=localStorage.length-1;I>=0;I--){var O=localStorage.key(I);O.indexOf(x)===0&&localStorage.removeItem(O)}});return T(v,y),v}function Mg(y,m){var v=this;y=M(y);var x=v.ready().then(function(){var I=v._dbInfo,O=localStorage.getItem(I.keyPrefix+y);return O&&(O=I.serializer.deserialize(O)),O});return T(x,m),x}function Pg(y,m){var v=this,x=v.ready().then(function(){for(var I=v._dbInfo,O=I.keyPrefix,A=O.length,L=localStorage.length,B=1,j=0;j<L;j++){var P=localStorage.key(j);if(P.indexOf(O)===0){var q=localStorage.getItem(P);if(q&&(q=I.serializer.deserialize(q)),q=y(q,P.substring(A),B++),q!==void 0)return q}}});return T(x,m),x}function jg(y,m){var v=this,x=v.ready().then(function(){var I=v._dbInfo,O;try{O=localStorage.key(y)}catch{O=null}return O&&(O=O.substring(I.keyPrefix.length)),O});return T(x,m),x}function Ug(y){var m=this,v=m.ready().then(function(){for(var x=m._dbInfo,I=localStorage.length,O=[],A=0;A<I;A++){var L=localStorage.key(A);L.indexOf(x.keyPrefix)===0&&O.push(L.substring(x.keyPrefix.length))}return O});return T(v,y),v}function Bg(y){var m=this,v=m.keys().then(function(x){return x.length});return T(v,y),v}function Vg(y,m){var v=this;y=M(y);var x=v.ready().then(function(){var I=v._dbInfo;localStorage.removeItem(I.keyPrefix+y)});return T(x,m),x}function Fg(y,m,v){var x=this;y=M(y);var I=x.ready().then(function(){m===void 0&&(m=null);var O=m;return new w(function(A,L){var B=x._dbInfo;B.serializer.serialize(m,function(j,P){if(P)L(P);else try{localStorage.setItem(B.keyPrefix+y,j),A(O)}catch(q){(q.name==="QuotaExceededError"||q.name==="NS_ERROR_DOM_QUOTA_REACHED")&&L(q),L(q)}})})});return T(I,v),I}function $g(y,m){if(m=H.apply(this,arguments),y=typeof y!="function"&&y||{},!y.name){var v=this.config();y.name=y.name||v.name,y.storeName=y.storeName||v.storeName}var x=this,I;return y.name?I=new w(function(O){y.storeName?O(rl(y,x._defaultConfig)):O(y.name+"/")}).then(function(O){for(var A=localStorage.length-1;A>=0;A--){var L=localStorage.key(A);L.indexOf(O)===0&&localStorage.removeItem(L)}}):I=w.reject("Invalid arguments"),T(I,m),I}var Hg={_driver:"localStorageWrapper",_initStorage:Dg,_support:Ag(),iterate:Pg,getItem:Mg,setItem:Fg,removeItem:Vg,clear:Lg,length:Bg,key:jg,keys:Ug,dropInstance:$g},zg=function(y,m){return y===m||typeof y=="number"&&typeof m=="number"&&isNaN(y)&&isNaN(m)},qg=function(y,m){for(var v=y.length,x=0;x<v;){if(zg(y[x],m))return!0;x++}return!1},il=Array.isArray||function(y){return Object.prototype.toString.call(y)==="[object Array]"},_r={},ol={},Hn={INDEXEDDB:c,WEBSQL:Cg,LOCALSTORAGE:Hg},Gg=[Hn.INDEXEDDB._driver,Hn.WEBSQL._driver,Hn.LOCALSTORAGE._driver],di=["dropInstance"],Vo=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(di),Wg={description:"",driver:Gg.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function Zg(y,m){y[m]=function(){var v=arguments;return y.ready().then(function(){return y[m].apply(y,v)})}}function Fo(){for(var y=1;y<arguments.length;y++){var m=arguments[y];if(m)for(var v in m)m.hasOwnProperty(v)&&(il(m[v])?arguments[0][v]=m[v].slice():arguments[0][v]=m[v])}return arguments[0]}var Yg=function(){function y(m){f(this,y);for(var v in Hn)if(Hn.hasOwnProperty(v)){var x=Hn[v],I=x._driver;this[v]=I,_r[I]||this.defineDriver(x)}this._defaultConfig=Fo({},Wg),this._config=Fo({},this._defaultConfig,m),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(function(){})}return y.prototype.config=function(m){if((typeof m>"u"?"undefined":u(m))==="object"){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var v in m){if(v==="storeName"&&(m[v]=m[v].replace(/\W/g,"_")),v==="version"&&typeof m[v]!="number")return new Error("Database version must be a number.");this._config[v]=m[v]}return"driver"in m&&m.driver?this.setDriver(this._config.driver):!0}else return typeof m=="string"?this._config[m]:this._config},y.prototype.defineDriver=function(m,v,x){var I=new w(function(O,A){try{var L=m._driver,B=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!m._driver){A(B);return}for(var j=Vo.concat("_initStorage"),P=0,q=j.length;P<q;P++){var at=j[P],Nt=!qg(di,at);if((Nt||m[at])&&typeof m[at]!="function"){A(B);return}}var Et=function(){for(var Ut=function(Kg){return function(){var Qg=new Error("Method "+Kg+" is not implemented by the current driver"),sl=w.reject(Qg);return T(sl,arguments[arguments.length-1]),sl}},de=0,$o=di.length;de<$o;de++){var Ho=di[de];m[Ho]||(m[Ho]=Ut(Ho))}};Et();var Ht=function(Ut){_r[L]&&console.info("Redefining LocalForage driver: "+L),_r[L]=m,ol[L]=Ut,O()};"_support"in m?m._support&&typeof m._support=="function"?m._support().then(Ht,A):Ht(!!m._support):Ht(!0)}catch(Ut){A(Ut)}});return D(I,v,x),I},y.prototype.driver=function(){return this._driver||null},y.prototype.getDriver=function(m,v,x){var I=_r[m]?w.resolve(_r[m]):w.reject(new Error("Driver not found."));return D(I,v,x),I},y.prototype.getSerializer=function(m){var v=w.resolve(Bo);return D(v,m),v},y.prototype.ready=function(m){var v=this,x=v._driverSet.then(function(){return v._ready===null&&(v._ready=v._initDriver()),v._ready});return D(x,m,m),x},y.prototype.setDriver=function(m,v,x){var I=this;il(m)||(m=[m]);var O=this._getSupportedDrivers(m);function A(){I._config.driver=I.driver()}function L(P){return I._extend(P),A(),I._ready=I._initStorage(I._config),I._ready}function B(P){return function(){var q=0;function at(){for(;q<P.length;){var Nt=P[q];return q++,I._dbInfo=null,I._ready=null,I.getDriver(Nt).then(L).catch(at)}A();var Et=new Error("No available storage method found.");return I._driverSet=w.reject(Et),I._driverSet}return at()}}var j=this._driverSet!==null?this._driverSet.catch(function(){return w.resolve()}):w.resolve();return this._driverSet=j.then(function(){var P=O[0];return I._dbInfo=null,I._ready=null,I.getDriver(P).then(function(q){I._driver=q._driver,A(),I._wrapLibraryMethodsWithReady(),I._initDriver=B(O)})}).catch(function(){A();var P=new Error("No available storage method found.");return I._driverSet=w.reject(P),I._driverSet}),D(this._driverSet,v,x),this._driverSet},y.prototype.supports=function(m){return!!ol[m]},y.prototype._extend=function(m){Fo(this,m)},y.prototype._getSupportedDrivers=function(m){for(var v=[],x=0,I=m.length;x<I;x++){var O=m[x];this.supports(O)&&v.push(O)}return v},y.prototype._wrapLibraryMethodsWithReady=function(){for(var m=0,v=Vo.length;m<v;m++)Zg(this,Vo[m])},y.prototype.createInstance=function(m){return new y(m)},y}(),Jg=new Yg;s.exports=Jg},{3:3}]},{},[4])(4)})}),fy=Wr(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MustacheUtils=void 0;var e=class df{static escapeHtml(r){return String(r).replace(/"/g,i=>df.entityMap[i])}};t.MustacheUtils=e,e.entityMap={'"':"&quot;"}});function hy(t,e){return Object.is(t,e)}var Gt=null,Ai=!1,Ta=1,rn=Symbol("SIGNAL");function dt(t){let e=Gt;return Gt=t,e}function dy(){return Gt}var Ca={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function py(t){if(Ai)throw new Error("");if(Gt===null)return;Gt.consumerOnSignalRead(t);let e=Gt.nextProducerIndex++;if(co(Gt),e<Gt.producerNode.length&&Gt.producerNode[e]!==t&&kr(Gt)){let n=Gt.producerNode[e];lo(n,Gt.producerIndexOfThis[e])}Gt.producerNode[e]!==t&&(Gt.producerNode[e]=t,Gt.producerIndexOfThis[e]=kr(Gt)?vf(t,Gt,e):0),Gt.producerLastReadVersion[e]=t.version}function gy(){Ta++}function yy(t){if(!(kr(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===Ta)){if(!t.producerMustRecompute(t)&&!yf(t)){ll(t);return}t.producerRecomputeValue(t),ll(t)}}function pf(t){if(t.liveConsumerNode===void 0)return;let e=Ai;Ai=!0;try{for(let n of t.liveConsumerNode)n.dirty||my(n)}finally{Ai=e}}function gf(){return Gt?.consumerAllowSignalWrites!==!1}function my(t){t.dirty=!0,pf(t),t.consumerMarkedDirty?.(t)}function ll(t){t.dirty=!1,t.lastCleanEpoch=Ta}function cl(t){return t&&(t.nextProducerIndex=0),dt(t)}function vy(t,e){if(dt(e),!(!t||t.producerNode===void 0||t.producerIndexOfThis===void 0||t.producerLastReadVersion===void 0)){if(kr(t))for(let n=t.nextProducerIndex;n<t.producerNode.length;n++)lo(t.producerNode[n],t.producerIndexOfThis[n]);for(;t.producerNode.length>t.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function yf(t){co(t);for(let e=0;e<t.producerNode.length;e++){let n=t.producerNode[e],r=t.producerLastReadVersion[e];if(r!==n.version||(yy(n),r!==n.version))return!0}return!1}function mf(t){if(co(t),kr(t))for(let e=0;e<t.producerNode.length;e++)lo(t.producerNode[e],t.producerIndexOfThis[e]);t.producerNode.length=t.producerLastReadVersion.length=t.producerIndexOfThis.length=0,t.liveConsumerNode&&(t.liveConsumerNode.length=t.liveConsumerIndexOfThis.length=0)}function vf(t,e,n){if(bf(t),t.liveConsumerNode.length===0&&_f(t))for(let r=0;r<t.producerNode.length;r++)t.producerIndexOfThis[r]=vf(t.producerNode[r],t,r);return t.liveConsumerIndexOfThis.push(n),t.liveConsumerNode.push(e)-1}function lo(t,e){if(bf(t),t.liveConsumerNode.length===1&&_f(t))for(let r=0;r<t.producerNode.length;r++)lo(t.producerNode[r],t.producerIndexOfThis[r]);let n=t.liveConsumerNode.length-1;if(t.liveConsumerNode[e]=t.liveConsumerNode[n],t.liveConsumerIndexOfThis[e]=t.liveConsumerIndexOfThis[n],t.liveConsumerNode.length--,t.liveConsumerIndexOfThis.length--,e<t.liveConsumerNode.length){let r=t.liveConsumerIndexOfThis[e],i=t.liveConsumerNode[e];co(i),i.producerIndexOfThis[r]=e}}function kr(t){return t.consumerIsAlwaysLive||(t?.liveConsumerNode?.length??0)>0}function co(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}function bf(t){t.liveConsumerNode??=[],t.liveConsumerIndexOfThis??=[]}function _f(t){return t.producerNode!==void 0}function by(){throw new Error}var wf=by;function Ef(t){wf(t)}function _y(t){wf=t}var wy=null;function Ey(t){let e=Object.create(Iy);e.value=t;let n=()=>(py(e),e.value);return n[rn]=e,n}function Sf(t,e){gf()||Ef(t),t.equal(t.value,e)||(t.value=e,Ny(t))}function Sy(t,e){gf()||Ef(t),Sf(t,e(t.value))}var Iy=Dt(k({},Ca),{equal:hy,value:void 0,kind:"signal"});function Ny(t){t.version++,gy(),pf(t),wy?.()}function Wt(t){return typeof t=="function"}function If(t){let e=t(n=>{Error.call(n),n.stack=new Error().stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var zo=If(t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription:
2
2
  ${e.map((n,r)=>`${r+1}) ${n.toString()}`).join(`
3
- `)}`:"",this.name="UnsubscriptionError",this.errors=e});function Io(t,e){if(t){let n=t.indexOf(e);0<=n&&t.splice(n,1)}}var ve=class To{constructor(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let e;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let o of n)o.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(It(r))try{r()}catch(o){e=o instanceof eo?o.errors:[o]}let{_finalizers:i}=this;if(i){this._finalizers=null;for(let o of i)try{eu(o)}catch(s){e=e??[],s instanceof eo?e=[...e,...s.errors]:e.push(s)}}if(e)throw new eo(e)}}add(e){var n;if(e&&e!==this)if(this.closed)eu(e);else{if(e instanceof To){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(e)}}_hasParent(e){let{_parentage:n}=this;return n===e||Array.isArray(n)&&n.includes(e)}_addParent(e){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(e),n):n?[n,e]:e}_removeParent(e){let{_parentage:n}=this;n===e?this._parentage=null:Array.isArray(n)&&Io(n,e)}remove(e){let{_finalizers:n}=this;n&&Io(n,e),e instanceof To&&e._removeParent(this)}};ve.EMPTY=(()=>{let t=new ve;return t.closed=!0,t})();var Kl=ve.EMPTY;function Zl(t){return t instanceof ve||t&&"closed"in t&&It(t.remove)&&It(t.add)&&It(t.unsubscribe)}function eu(t){It(t)?t():t.unsubscribe()}var tn={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},si={setTimeout(t,e,...n){let{delegate:r}=si;return r?.setTimeout?r.setTimeout(t,e,...n):setTimeout(t,e,...n)},clearTimeout(t){let{delegate:e}=si;return(e?.clearTimeout||clearTimeout)(t)},delegate:void 0};function Ql(t){si.setTimeout(()=>{let{onUnhandledError:e}=tn;if(e)e(t);else throw t})}function nu(){}var Rp=Rs("C",void 0,void 0);function Lp(t){return Rs("E",void 0,t)}function Pp(t){return Rs("N",t,void 0)}function Rs(t,e,n){return{kind:t,value:e,error:n}}var Ue=null;function Zr(t){if(tn.useDeprecatedSynchronousErrorHandling){let e=!Ue;if(e&&(Ue={errorThrown:!1,error:null}),t(),e){let{errorThrown:n,error:r}=Ue;if(Ue=null,n)throw r}}else t()}function Mp(t){tn.useDeprecatedSynchronousErrorHandling&&Ue&&(Ue.errorThrown=!0,Ue.error=t)}var Ls=class extends ve{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Zl(t)&&t.add(this)):this.destination=Up}static create(t,e,n){return new Co(t,e,n)}next(t){this.isStopped?ro(Pp(t),this):this._next(t)}error(t){this.isStopped?ro(Lp(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?ro(Rp,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},jp=Function.prototype.bind;function no(t,e){return jp.call(t,e)}var Vp=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:e}=this;if(e.next)try{e.next(t)}catch(n){jr(n)}}error(t){let{partialObserver:e}=this;if(e.error)try{e.error(t)}catch(n){jr(n)}else jr(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(e){jr(e)}}},Co=class extends Ls{constructor(t,e,n){super();let r;if(It(t)||!t)r={next:t??void 0,error:e??void 0,complete:n??void 0};else{let i;this&&tn.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),r={next:t.next&&no(t.next,i),error:t.error&&no(t.error,i),complete:t.complete&&no(t.complete,i)}):r=t}this.destination=new Vp(r)}};function jr(t){tn.useDeprecatedSynchronousErrorHandling?Mp(t):Ql(t)}function Fp(t){throw t}function ro(t,e){let{onStoppedNotification:n}=tn;n&&si.setTimeout(()=>n(t,e))}var Up={closed:!0,next:nu,error:Fp,complete:nu},Ps=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Xl(t){return t}function Hp(t){return t.length===0?Xl:t.length===1?t[0]:function(e){return t.reduce((n,r)=>r(n),e)}}var zt=(()=>{class t{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new t;return r.source=this,r.operator=n,r}subscribe(n,r,i){let o=$p(n)?n:new Co(n,r,i);return Zr(()=>{let{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return r=ru(r),new r((i,o)=>{let s=new Co({next:a=>{try{n(a)}catch(u){o(u),s.unsubscribe()}},error:o,complete:i});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[Ps](){return this}pipe(...n){return Hp(n)(this)}toPromise(n){return n=ru(n),new n((r,i)=>{let o;this.subscribe(s=>o=s,s=>i(s),()=>r(o))})}}return t.create=e=>new t(e),t})();function ru(t){var e;return(e=t??tn.Promise)!==null&&e!==void 0?e:Promise}function Bp(t){return t&&It(t.next)&&It(t.error)&&It(t.complete)}function $p(t){return t&&t instanceof Ls||Bp(t)&&Zl(t)}function zp(t){return It(t?.lift)}function gr(t){return e=>{if(zp(e))return e.lift(function(n){try{return t(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function In(t,e,n,r,i){return new Gp(t,e,n,r,i)}var Gp=class extends Ls{constructor(t,e,n,r,i,o){super(t),this.onFinalize=i,this.shouldUnsubscribe=o,this._next=e?function(s){try{e(s)}catch(a){t.error(a)}}:super._next,this._error=r?function(s){try{r(s)}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(s){t.error(s)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:e}=this;super.unsubscribe(),!e&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}},qp=Yl(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}),mr=(()=>{class t extends zt{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new iu(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new qp}next(n){Zr(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){Zr(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){Zr(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){let{hasError:r,isStopped:i,observers:o}=this;return r||i?Kl:(this.currentObservers=null,o.push(n),new ve(()=>{this.currentObservers=null,Io(o,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:i,isStopped:o}=this;r?n.error(i):o&&n.complete()}asObservable(){let n=new zt;return n.source=this,n}}return t.create=(e,n)=>new iu(e,n),t})(),iu=class extends mr{constructor(t,e){super(),this.destination=t,this.source=e}next(t){var e,n;(n=(e=this.destination)===null||e===void 0?void 0:e.next)===null||n===void 0||n.call(e,t)}error(t){var e,n;(n=(e=this.destination)===null||e===void 0?void 0:e.error)===null||n===void 0||n.call(e,t)}complete(){var t,e;(e=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||e===void 0||e.call(t)}_subscribe(t){var e,n;return(n=(e=this.source)===null||e===void 0?void 0:e.subscribe(t))!==null&&n!==void 0?n:Kl}},Wp=class extends mr{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let e=super._subscribe(t);return!e.closed&&t.next(this._value),e}getValue(){let{hasError:t,thrownError:e,_value:n}=this;if(t)throw e;return this._throwIfClosed(),n}next(t){super.next(this._value=t)}},Jl={now(){return(Jl.delegate||Date).now()},delegate:void 0},Yp=class extends mr{constructor(t=1/0,e=1/0,n=Jl){super(),this._bufferSize=t,this._windowTime=e,this._timestampProvider=n,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,e)}next(t){let{isStopped:e,_buffer:n,_infiniteTimeWindow:r,_timestampProvider:i,_windowTime:o}=this;e||(n.push(t),!r&&n.push(i.now()+o)),this._trimBuffer(),super.next(t)}_subscribe(t){this._throwIfClosed(),this._trimBuffer();let e=this._innerSubscribe(t),{_infiniteTimeWindow:n,_buffer:r}=this,i=r.slice();for(let o=0;o<i.length&&!t.closed;o+=n?1:2)t.next(i[o]);return this._checkFinalizedStatuses(t),e}_trimBuffer(){let{_bufferSize:t,_timestampProvider:e,_buffer:n,_infiniteTimeWindow:r}=this,i=(r?1:2)*t;if(t<1/0&&i<n.length&&n.splice(0,n.length-i),!r){let o=e.now(),s=0;for(let a=1;a<n.length&&n[a]<=o;a+=2)s=a;s&&n.splice(0,s+1)}}},Kp=new zt(t=>t.complete());function Zp(t){return t&&It(t.schedule)}function tc(t){return t[t.length-1]}function Qp(t){return Zp(tc(t))?t.pop():void 0}function Xp(t,e){return typeof tc(t)=="number"?t.pop():e}function Jp(t,e,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(d){try{l(r.next(d))}catch(h){s(h)}}function u(d){try{l(r.throw(d))}catch(h){s(h)}}function l(d){d.done?o(d.value):i(d.value).then(a,u)}l((r=r.apply(t,e||[])).next())})}function ou(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function _n(t){return this instanceof _n?(this.v=t,this):new _n(t)}function tg(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(t,e||[]),i,o=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),i[Symbol.asyncIterator]=function(){return this},i;function s(_){return function(w){return Promise.resolve(w).then(_,h)}}function a(_,w){r[_]&&(i[_]=function(T){return new Promise(function(A,R){o.push([_,T,A,R])>1||u(_,T)})},w&&(i[_]=w(i[_])))}function u(_,w){try{l(r[_](w))}catch(T){y(o[0][3],T)}}function l(_){_.value instanceof _n?Promise.resolve(_.value.v).then(d,h):y(o[0][2],_)}function d(_){u("next",_)}function h(_){u("throw",_)}function y(_,w){_(w),o.shift(),o.length&&u(o[0][0],o[0][1])}}function eg(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],n;return e?e.call(t):(t=typeof ou=="function"?ou(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(o){n[o]=t[o]&&function(s){return new Promise(function(a,u){s=t[o](s),i(a,u,s.done,s.value)})}}function i(o,s,a,u){Promise.resolve(u).then(function(l){o({value:l,done:a})},s)}}var ec=t=>t&&typeof t.length=="number"&&typeof t!="function";function nc(t){return It(t?.then)}function rc(t){return It(t[Ps])}function ic(t){return Symbol.asyncIterator&&It(t?.[Symbol.asyncIterator])}function oc(t){return new TypeError(`You provided ${t!==null&&typeof t=="object"?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function ng(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var sc=ng();function ac(t){return It(t?.[sc])}function uc(t){return tg(this,arguments,function*(){let e=t.getReader();try{for(;;){let{value:n,done:r}=yield _n(e.read());if(r)return yield _n(void 0);yield yield _n(n)}}finally{e.releaseLock()}})}function lc(t){return It(t?.getReader)}function en(t){if(t instanceof zt)return t;if(t!=null){if(rc(t))return rg(t);if(ec(t))return ig(t);if(nc(t))return og(t);if(ic(t))return cc(t);if(ac(t))return sg(t);if(lc(t))return ag(t)}throw oc(t)}function rg(t){return new zt(e=>{let n=t[Ps]();if(It(n.subscribe))return n.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function ig(t){return new zt(e=>{for(let n=0;n<t.length&&!e.closed;n++)e.next(t[n]);e.complete()})}function og(t){return new zt(e=>{t.then(n=>{e.closed||(e.next(n),e.complete())},n=>e.error(n)).then(null,Ql)})}function sg(t){return new zt(e=>{for(let n of t)if(e.next(n),e.closed)return;e.complete()})}function cc(t){return new zt(e=>{ug(t,e).catch(n=>e.error(n))})}function ag(t){return cc(uc(t))}function ug(t,e){var n,r,i,o;return Jp(this,void 0,void 0,function*(){try{for(n=eg(t);r=yield n.next(),!r.done;){let s=r.value;if(e.next(s),e.closed)return}}catch(s){i={error:s}}finally{try{r&&!r.done&&(o=n.return)&&(yield o.call(n))}finally{if(i)throw i.error}}e.complete()})}function xe(t,e,n,r=0,i=!1){let o=e.schedule(function(){n(),i?t.add(this.schedule(null,r)):this.unsubscribe()},r);if(t.add(o),!i)return o}function fc(t,e=0){return gr((n,r)=>{n.subscribe(In(r,i=>xe(r,t,()=>r.next(i),e),()=>xe(r,t,()=>r.complete(),e),i=>xe(r,t,()=>r.error(i),e)))})}function dc(t,e=0){return gr((n,r)=>{r.add(t.schedule(()=>n.subscribe(r),e))})}function lg(t,e){return en(t).pipe(dc(e),fc(e))}function cg(t,e){return en(t).pipe(dc(e),fc(e))}function fg(t,e){return new zt(n=>{let r=0;return e.schedule(function(){r===t.length?n.complete():(n.next(t[r++]),n.closed||this.schedule())})})}function dg(t,e){return new zt(n=>{let r;return xe(n,e,()=>{r=t[sc](),xe(n,e,()=>{let i,o;try{({value:i,done:o}=r.next())}catch(s){n.error(s);return}o?n.complete():n.next(i)},0,!0)}),()=>It(r?.return)&&r.return()})}function hc(t,e){if(!t)throw new Error("Iterable cannot be null");return new zt(n=>{xe(n,e,()=>{let r=t[Symbol.asyncIterator]();xe(n,e,()=>{r.next().then(i=>{i.done?n.complete():n.next(i.value)})},0,!0)})})}function hg(t,e){return hc(uc(t),e)}function pg(t,e){if(t!=null){if(rc(t))return lg(t,e);if(ec(t))return fg(t,e);if(nc(t))return cg(t,e);if(ic(t))return hc(t,e);if(ac(t))return dg(t,e);if(lc(t))return hg(t,e)}throw oc(t)}function gg(t,e){return e?pg(t,e):en(t)}function pc(t,e){return gr((n,r)=>{let i=0;n.subscribe(In(r,o=>{r.next(t.call(e,o,i++))}))})}function mg(t,e,n,r,i,o,s,a){let u=[],l=0,d=0,h=!1,y=()=>{h&&!u.length&&!l&&e.complete()},_=T=>l<r?w(T):u.push(T),w=T=>{o&&e.next(T),l++;let A=!1;en(n(T,d++)).subscribe(In(e,R=>{i?.(R),o?_(R):e.next(R)},()=>{A=!0},void 0,()=>{if(A)try{for(l--;u.length&&l<r;){let R=u.shift();s?xe(e,s,()=>w(R)):w(R)}y()}catch(R){e.error(R)}}))};return t.subscribe(In(e,_,()=>{h=!0,y()})),()=>{a?.()}}function gc(t,e,n=1/0){return It(e)?gc((r,i)=>pc((o,s)=>e(r,o,i,s))(en(t(r,i))),n):(typeof e=="number"&&(n=e),gr((r,i)=>mg(r,i,t,n)))}function vg(t=1/0){return gc(Xl,t)}function yg(...t){let e=Qp(t),n=Xp(t,1/0),r=t;return r.length?r.length===1?en(r[0]):vg(n)(gg(r,e)):Kp}function _g(t,e){return gr((n,r)=>{let i=null,o=0,s=!1,a=()=>s&&!i&&r.complete();n.subscribe(In(r,u=>{i?.unsubscribe();let l=0,d=o++;en(t(u,d)).subscribe(i=In(r,h=>r.next(e?e(u,h,d,l++):h),()=>{i=null,a()}))},()=>{s=!0,a()}))})}var mc="https://g.co/ng/security#xss",it=class extends Error{code;constructor(t,e){super(bg(t,e)),this.code=t}};function bg(t,e){return`${`NG0${Math.abs(t)}`}${e?": "+e:""}`}function Eg(t){return{toString:t}.toString()}var ai=globalThis;function ft(t){for(let e in t)if(t[e]===ft)return e;throw Error("Could not find renamed property on target object.")}function re(t){if(typeof t=="string")return t;if(Array.isArray(t))return`[${t.map(re).join(", ")}]`;if(t==null)return""+t;let e=t.overriddenName||t.name;if(e)return`${e}`;let n=t.toString();if(n==null)return""+n;let r=n.indexOf(`
4
- `);return r>=0?n.slice(0,r):n}function su(t,e){return t?e?`${t} ${e}`:t:e||""}var wg=ft({__forward_ref__:ft});function vc(t){return t.__forward_ref__=vc,t.toString=function(){return re(this())},t}function ee(t){return Sg(t)?t():t}function Sg(t){return typeof t=="function"&&t.hasOwnProperty(wg)&&t.__forward_ref__===vc}function Et(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function Ms(t){return au(t,yc)||au(t,_c)}function au(t,e){return t.hasOwnProperty(e)?t[e]:null}function Ig(t){return t&&(t[yc]||t[_c])||null}function uu(t){return t&&(t.hasOwnProperty(lu)||t.hasOwnProperty(Tg))?t[lu]:null}var yc=ft({\u0275prov:ft}),lu=ft({\u0275inj:ft}),_c=ft({ngInjectableDef:ft}),Tg=ft({ngInjectorDef:ft}),ct=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(t,e){this._desc=t,this.\u0275prov=void 0,typeof e=="number"?this.__NG_ELEMENT_ID__=e:e!==void 0&&(this.\u0275prov=Et({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function bc(t){return t&&!!t.\u0275providers}var Cg=ft({\u0275cmp:ft}),Ng=ft({\u0275dir:ft}),Og=ft({\u0275pipe:ft}),cu=ft({\u0275fac:ft}),Jn=ft({__NG_ELEMENT_ID__:ft}),fu=ft({__NG_ENV_ID__:ft});function Oi(t){return typeof t=="string"?t:t==null?"":String(t)}function xg(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():Oi(t)}function Dg(t,e){throw new it(-200,t)}function js(t,e){throw new it(-201,!1)}var q=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(q||{}),No;function Ec(){return No}function jt(t){let e=No;return No=t,e}function wc(t,e,n){let r=Ms(t);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&q.Optional)return null;if(e!==void 0)return e;js(t,"Injector")}var kg={},er=kg,Ag="__NG_DI_FLAG__",ui="ngTempTokenPath",Rg="ngTokenPath",Lg=/\n/gm,Pg="\u0275",du="__source",bn;function Mg(){return bn}function Se(t){let e=bn;return bn=t,e}function jg(t,e=q.Default){if(bn===void 0)throw new it(-203,!1);return bn===null?wc(t,void 0,e):bn.get(t,e&q.Optional?null:void 0,e)}function lt(t,e=q.Default){return(Ec()||jg)(ee(t),e)}function at(t,e=q.Default){return lt(t,xi(e))}function xi(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function Oo(t){let e=[];for(let n=0;n<t.length;n++){let r=ee(t[n]);if(Array.isArray(r)){if(r.length===0)throw new it(900,!1);let i,o=q.Default;for(let s=0;s<r.length;s++){let a=r[s],u=Vg(a);typeof u=="number"?u===-1?i=a.token:o|=u:i=a}e.push(lt(i,o))}else e.push(lt(r))}return e}function Vg(t){return t[Ag]}function Fg(t,e,n,r){let i=t[ui];throw e[du]&&i.unshift(e[du]),t.message=Ug(`
5
- `+t.message,i,n,r),t[Rg]=i,t[ui]=null,t}function Ug(t,e,n,r=null){t=t&&t.charAt(0)===`
6
- `&&t.charAt(1)==Pg?t.slice(2):t;let i=re(e);if(Array.isArray(e))i=e.map(re).join(" -> ");else if(typeof e=="object"){let o=[];for(let s in e)if(e.hasOwnProperty(s)){let a=e[s];o.push(s+":"+(typeof a=="string"?JSON.stringify(a):re(a)))}i=`{${o.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${t.replace(Lg,`
7
- `)}`}function Tn(t,e){return t.hasOwnProperty(cu)?t[cu]:null}function Vs(t,e){t.forEach(n=>Array.isArray(n)?Vs(n,e):e(n))}function Hg(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function Sc(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function Bg(t,e,n,r){let i=t.length;if(i==e)t.push(n,r);else if(i===1)t.push(r,t[0]),t[0]=n;else{for(i--,t.push(t[i-1],t[i]);i>e;){let o=i-2;t[i]=t[o],i--}t[e]=n,t[e+1]=r}}function $g(t,e,n){let r=vr(t,e);return r>=0?t[r|1]=n:(r=~r,Bg(t,r,e,n)),r}function io(t,e){let n=vr(t,e);if(n>=0)return t[n|1]}function vr(t,e){return zg(t,e,1)}function zg(t,e,n){let r=0,i=t.length>>n;for(;i!==r;){let o=r+(i-r>>1),s=t[o<<n];if(e===s)return o<<n;s>e?i=o:r=o+1}return~(i<<n)}var Cn={},ze=[],li=new ct(""),Ic=new ct("",-1),Tc=new ct(""),Cc=class{get(t,e=er){if(e===er){let n=new Error(`NullInjectorError: No provider for ${re(t)}!`);throw n.name="NullInjectorError",n}return e}};function Di(t){return t[Cg]||null}function Nc(t){return t[Ng]||null}function Oc(t){return t[Og]||null}function Gg(t){let e=Di(t)||Nc(t)||Oc(t);return e!==null&&e.standalone}function qg(t){return{\u0275providers:t}}function Wg(...t){return{\u0275providers:xc(!0,t),\u0275fromNgModule:!0}}function xc(t,...e){let n=[],r=new Set,i,o=s=>{n.push(s)};return Vs(e,s=>{let a=s;xo(a,o,[],r)&&(i||=[],i.push(a))}),i!==void 0&&Dc(i,o),n}function Dc(t,e){for(let n=0;n<t.length;n++){let{ngModule:r,providers:i}=t[n];Fs(i,o=>{e(o,r)})}}function xo(t,e,n,r){if(t=ee(t),!t)return!1;let i=null,o=uu(t),s=!o&&Di(t);if(!o&&!s){let u=t.ngModule;if(o=uu(u),o)i=u;else return!1}else{if(s&&!s.standalone)return!1;i=t}let a=r.has(i);if(s){if(a)return!1;if(r.add(i),s.dependencies){let u=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let l of u)xo(l,e,n,r)}}else if(o){if(o.imports!=null&&!a){r.add(i);let l;try{Vs(o.imports,d=>{xo(d,e,n,r)&&(l||=[],l.push(d))})}finally{}l!==void 0&&Dc(l,e)}if(!a){let l=Tn(i)||(()=>new i);e({provide:i,useFactory:l,deps:ze},i),e({provide:Tc,useValue:i,multi:!0},i),e({provide:li,useValue:()=>lt(i),multi:!0},i)}let u=o.providers;if(u!=null&&!a){let l=t;Fs(u,d=>{e(d,l)})}}else return!1;return i!==t&&t.providers!==void 0}function Fs(t,e){for(let n of t)bc(n)&&(n=n.\u0275providers),Array.isArray(n)?Fs(n,e):e(n)}var Yg=ft({provide:String,useValue:ft});function kc(t){return t!==null&&typeof t=="object"&&Yg in t}function Kg(t){return!!(t&&t.useExisting)}function Zg(t){return!!(t&&t.useFactory)}function Do(t){return typeof t=="function"}var Us=new ct(""),Qr={},Qg={},oo;function Hs(){return oo===void 0&&(oo=new Cc),oo}var nr=class{},Bs=class extends nr{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(t,e,n,r){super(),this.parent=e,this.source=n,this.scopes=r,Ao(t,o=>this.processProvider(o)),this.records.set(Ic,gn(void 0,this)),r.has("environment")&&this.records.set(nr,gn(void 0,this));let i=this.records.get(Us);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Tc,ze,q.Self))}destroy(){Kn(this),this._destroyed=!0;let t=et(null);try{for(let n of this._ngOnDestroyHooks)n.ngOnDestroy();let e=this._onDestroyHooks;this._onDestroyHooks=[];for(let n of e)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),et(t)}}onDestroy(t){return Kn(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){Kn(this);let e=Se(this),n=jt(void 0),r;try{return t()}finally{Se(e),jt(n)}}get(t,e=er,n=q.Default){if(Kn(this),t.hasOwnProperty(fu))return t[fu](this);n=xi(n);let r,i=Se(this),o=jt(void 0);try{if(!(n&q.SkipSelf)){let a=this.records.get(t);if(a===void 0){let u=rm(t)&&Ms(t);u&&this.injectableDefInScope(u)?a=gn(ko(t),Qr):a=null,this.records.set(t,a)}if(a!=null)return this.hydrate(t,a)}let s=n&q.Self?Hs():this.parent;return e=n&q.Optional&&e===er?null:e,s.get(t,e)}catch(s){if(s.name==="NullInjectorError"){if((s[ui]=s[ui]||[]).unshift(re(t)),i)throw s;return Fg(s,t,"R3InjectorError",this.source)}else throw s}finally{jt(o),Se(i)}}resolveInjectorInitializers(){let t=et(null),e=Se(this),n=jt(void 0),r;try{let i=this.get(li,ze,q.Self);for(let o of i)o()}finally{Se(e),jt(n),et(t)}}toString(){let t=[],e=this.records;for(let n of e.keys())t.push(re(n));return`R3Injector[${t.join(", ")}]`}processProvider(t){t=ee(t);let e=Do(t)?t:ee(t&&t.provide),n=Jg(t);if(!Do(t)&&t.multi===!0){let r=this.records.get(e);r||(r=gn(void 0,Qr,!0),r.factory=()=>Oo(r.multi),this.records.set(e,r)),e=t,r.multi.push(t)}this.records.set(e,n)}hydrate(t,e){let n=et(null);try{return e.value===Qr&&(e.value=Qg,e.value=e.factory()),typeof e.value=="object"&&e.value&&nm(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}finally{et(n)}}injectableDefInScope(t){if(!t.providedIn)return!1;let e=ee(t.providedIn);return typeof e=="string"?e==="any"||this.scopes.has(e):this.injectorDefTypes.has(e)}removeOnDestroy(t){let e=this._onDestroyHooks.indexOf(t);e!==-1&&this._onDestroyHooks.splice(e,1)}};function ko(t){let e=Ms(t),n=e!==null?e.factory:Tn(t);if(n!==null)return n;if(t instanceof ct)throw new it(204,!1);if(t instanceof Function)return Xg(t);throw new it(204,!1)}function Xg(t){if(t.length>0)throw new it(204,!1);let e=Ig(t);return e!==null?()=>e.factory(t):()=>new t}function Jg(t){if(kc(t))return gn(void 0,t.useValue);{let e=tm(t);return gn(e,Qr)}}function tm(t,e,n){let r;if(Do(t)){let i=ee(t);return Tn(i)||ko(i)}else if(kc(t))r=()=>ee(t.useValue);else if(Zg(t))r=()=>t.useFactory(...Oo(t.deps||[]));else if(Kg(t))r=()=>lt(ee(t.useExisting));else{let i=ee(t&&(t.useClass||t.provide));if(em(t))r=()=>new i(...Oo(t.deps));else return Tn(i)||ko(i)}return r}function Kn(t){if(t.destroyed)throw new it(205,!1)}function gn(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function em(t){return!!t.deps}function nm(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function rm(t){return typeof t=="function"||typeof t=="object"&&t instanceof ct}function Ao(t,e){for(let n of t)Array.isArray(n)?Ao(n,e):n&&bc(n)?Ao(n.\u0275providers,e):e(n)}function Ac(t,e){t instanceof Bs&&Kn(t);let n,r=Se(t),i=jt(void 0);try{return e()}finally{Se(r),jt(i)}}function im(){return Ec()!==void 0||Mg()!=null}var be=0,K=1,U=2,Xt=3,ie=4,ce=5,rr=6,hu=7,kt=8,ir=9,ye=10,Gt=11,or=12,pu=13,Mn=14,le=15,Nn=16,mn=17,On=18,ki=19,Rc=20,De=21,so=22,ci=23,Bt=24,ao=25,Lt=26,Lc=1,sr=7,om=8,fi=9,Vt=10;function Be(t){return Array.isArray(t)&&typeof t[Lc]=="object"}function nn(t){return Array.isArray(t)&&t[Lc]===!0}function Pc(t){return(t.flags&4)!==0}function Ai(t){return t.componentOffset>-1}function Mc(t){return(t.flags&1)===1}function rn(t){return!!t.template}function di(t){return(t[U]&512)!==0}function yr(t){return(t[U]&256)===256}var sm=class{previousValue;currentValue;firstChange;constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}};function jc(t,e,n,r){e!==null?e.applyValueToInputSignal(e,r):t[n]=r}function am(t){return t.type.prototype.ngOnChanges&&(t.setInput=lm),um}function um(){let t=Fc(this),e=t?.current;if(e){let n=t.previous;if(n===Cn)t.previous=e;else for(let r in e)n[r]=e[r];t.current=null,this.ngOnChanges(e)}}function lm(t,e,n,r,i){let o=this.declaredInputs[r],s=Fc(t)||cm(t,{previous:Cn,current:null}),a=s.current||(s.current={}),u=s.previous,l=u[o];a[o]=new sm(l&&l.currentValue,n,u===Cn),jc(t,e,i,n)}var Vc="__ngSimpleChanges__";function Fc(t){return t[Vc]||null}function cm(t,e){return t[Vc]=e}var fm=null,dt=function(t,e=null,n){fm?.(t,e,n)},dm="svg",hm="math";function Ae(t){for(;Array.isArray(t);)t=t[be];return t}function Uc(t,e){return Ae(e[t])}function on(t,e){return Ae(e[t.index])}function $s(t,e){return t.data[e]}function Hc(t,e){return t[e]}function Ge(t,e){let n=e[t];return Be(n)?n:n[be]}function zs(t){return(t[U]&128)===128}function xn(t,e){return e==null?null:t[e]}function Bc(t){t[mn]=0}function Gs(t){t[U]&1024||(t[U]|=1024,zs(t)&&Li(t))}function pm(t,e){for(;t>0;)e=e[Mn],t--;return e}function Ri(t){return!!(t[U]&9216||t[Bt]?.dirty)}function Ro(t){t[ye].changeDetectionScheduler?.notify(8),t[U]&64&&(t[U]|=1024),Ri(t)&&Li(t)}function Li(t){t[ye].changeDetectionScheduler?.notify(0);let e=qe(t);for(;e!==null&&!(e[U]&8192||(e[U]|=8192,!zs(e)));)e=qe(e)}function $c(t,e){if(yr(t))throw new it(911,!1);t[De]===null&&(t[De]=[]),t[De].push(e)}function gm(t,e){if(t[De]===null)return;let n=t[De].indexOf(e);n!==-1&&t[De].splice(n,1)}function qe(t){let e=t[Xt];return nn(e)?e[Xt]:e}var Z={lFrame:Xc(null),bindingsEnabled:!0,skipHydrationRootTNode:null},Lo=!1;function mm(){return Z.lFrame.elementDepthCount}function vm(){Z.lFrame.elementDepthCount++}function ym(){Z.lFrame.elementDepthCount--}function zc(){return Z.bindingsEnabled}function _m(){return Z.skipHydrationRootTNode!==null}function bm(t){return Z.skipHydrationRootTNode===t}function Em(){Z.skipHydrationRootTNode=null}function yt(){return Z.lFrame.lView}function fe(){return Z.lFrame.tView}function _r(){let t=Gc();for(;t!==null&&t.type===64;)t=t.parent;return t}function Gc(){return Z.lFrame.currentTNode}function wm(){let t=Z.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}function jn(t,e){let n=Z.lFrame;n.currentTNode=t,n.isParent=e}function qc(){return Z.lFrame.isParent}function Sm(){Z.lFrame.isParent=!1}function Wc(){return Lo}function gu(t){let e=Lo;return Lo=t,e}function Yc(){let t=Z.lFrame,e=t.bindingRootIndex;return e===-1&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function Im(t){return Z.lFrame.bindingIndex=t}function Pi(){return Z.lFrame.bindingIndex++}function Tm(t){let e=Z.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function Cm(){return Z.lFrame.inI18n}function Nm(t,e){let n=Z.lFrame;n.bindingIndex=n.bindingRootIndex=t,Po(e)}function Om(){return Z.lFrame.currentDirectiveIndex}function Po(t){Z.lFrame.currentDirectiveIndex=t}function xm(t){let e=Z.lFrame.currentDirectiveIndex;return e===-1?null:t[e]}function Kc(t){Z.lFrame.currentQueryIndex=t}function Dm(t){let e=t[K];return e.type===2?e.declTNode:e.type===1?t[ce]:null}function Zc(t,e,n){if(n&q.SkipSelf){let i=e,o=t;for(;(i=i.parent,i===null&&!(n&q.Host))&&(i=Dm(o),!(i===null||(o=o[Mn],i.type&10))););if(i===null)return!1;e=i,t=o}let r=Z.lFrame=Qc();return r.currentTNode=e,r.lView=t,!0}function qs(t){let e=Qc(),n=t[K];Z.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function Qc(){let t=Z.lFrame,e=t===null?null:t.child;return e===null?Xc(t):e}function Xc(t){let e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return t!==null&&(t.child=e),e}function Jc(){let t=Z.lFrame;return Z.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var tf=Jc;function Ws(){let t=Jc();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function km(t){return(Z.lFrame.contextLView=pm(t,Z.lFrame.contextLView))[kt]}function sn(){return Z.lFrame.selectedIndex}function We(t){Z.lFrame.selectedIndex=t}function Am(){let t=Z.lFrame;return $s(t.tView,t.selectedIndex)}function Rm(){return Z.lFrame.currentNamespace}var ef=!0;function Ys(){return ef}function Ks(t){ef=t}function Lm(t,e,n){let{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=e.type.prototype;if(r){let s=am(e);(n.preOrderHooks??=[]).push(t,s),(n.preOrderCheckHooks??=[]).push(t,s)}i&&(n.preOrderHooks??=[]).push(0-t,i),o&&((n.preOrderHooks??=[]).push(t,o),(n.preOrderCheckHooks??=[]).push(t,o))}function nf(t,e){for(let n=e.directiveStart,r=e.directiveEnd;n<r;n++){let i=t.data[n].type.prototype,{ngAfterContentInit:o,ngAfterContentChecked:s,ngAfterViewInit:a,ngAfterViewChecked:u,ngOnDestroy:l}=i;o&&(t.contentHooks??=[]).push(-n,o),s&&((t.contentHooks??=[]).push(n,s),(t.contentCheckHooks??=[]).push(n,s)),a&&(t.viewHooks??=[]).push(-n,a),u&&((t.viewHooks??=[]).push(n,u),(t.viewCheckHooks??=[]).push(n,u)),l!=null&&(t.destroyHooks??=[]).push(n,l)}}function Xr(t,e,n){rf(t,e,3,n)}function Jr(t,e,n,r){(t[U]&3)===n&&rf(t,e,n,r)}function uo(t,e){let n=t[U];(n&3)===e&&(n&=16383,n+=1,t[U]=n)}function rf(t,e,n,r){let i=r!==void 0?t[mn]&65535:0,o=r??-1,s=e.length-1,a=0;for(let u=i;u<s;u++)if(typeof e[u+1]=="number"){if(a=e[u],r!=null&&a>=r)break}else e[u]<0&&(t[mn]+=65536),(a<o||o==-1)&&(Pm(t,n,e,u),t[mn]=(t[mn]&4294901760)+u+2),u++}function mu(t,e){dt(4,t,e);let n=et(null);try{e.call(t)}finally{et(n),dt(5,t,e)}}function Pm(t,e,n,r){let i=n[r]<0,o=n[r+1],s=i?-n[r]:n[r],a=t[s];i?t[U]>>14<t[mn]>>16&&(t[U]&3)===e&&(t[U]+=16384,mu(a,o)):mu(a,o)}var En=-1,Zs=class{factory;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(t,e,n){this.factory=t,this.canSeeViewProviders=e,this.injectImpl=n}};function Mm(t){return t instanceof Zs}function jm(t){return(t.flags&8)!==0}function Vm(t){return(t.flags&16)!==0}function Fm(t,e,n){let r=0;for(;r<n.length;){let i=n[r];if(typeof i=="number"){if(i!==0)break;r++;let o=n[r++],s=n[r++],a=n[r++];t.setAttribute(e,s,a,o)}else{let o=i,s=n[++r];Hm(o)?t.setProperty(e,o,s):t.setAttribute(e,o,s),r++}}return r}function Um(t){return t===3||t===4||t===6}function Hm(t){return t.charCodeAt(0)===64}function Qs(t,e){if(!(e===null||e.length===0))if(t===null||t.length===0)t=e.slice();else{let n=-1;for(let r=0;r<e.length;r++){let i=e[r];typeof i=="number"?n=i:n===0||(n===-1||n===2?vu(t,n,i,null,e[++r]):vu(t,n,i,null,null))}}return t}function vu(t,e,n,r,i){let o=0,s=t.length;if(e===-1)s=-1;else for(;o<t.length;){let a=t[o++];if(typeof a=="number"){if(a===e){s=-1;break}else if(a>e){s=o-1;break}}}for(;o<t.length;){let a=t[o];if(typeof a=="number")break;if(a===n){if(r===null){i!==null&&(t[o+1]=i);return}else if(r===t[o+1]){t[o+2]=i;return}}o++,r!==null&&o++,i!==null&&o++}s!==-1&&(t.splice(s,0,e),o=s+1),t.splice(o++,0,n),r!==null&&t.splice(o++,0,r),i!==null&&t.splice(o++,0,i)}var lo={},Bm=class{injector;parentInjector;constructor(t,e){this.injector=t,this.parentInjector=e}get(t,e,n){n=xi(n);let r=this.injector.get(t,lo,n);return r!==lo||e===lo?r:this.parentInjector.get(t,e,n)}};function $m(t){return t!==En}function Mo(t){return t&32767}function zm(t){return t>>16}function jo(t,e){let n=zm(t),r=e;for(;n>0;)r=r[Mn],n--;return r}var Vo=!0;function hi(t){let e=Vo;return Vo=t,e}var Gm=256,of=Gm-1,sf=5,qm=0,ue={};function Wm(t,e,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(Jn)&&(r=n[Jn]),r==null&&(r=n[Jn]=qm++);let i=r&of,o=1<<i;e.data[t+(i>>sf)]|=o}function af(t,e){let n=uf(t,e);if(n!==-1)return n;let r=e[K];r.firstCreatePass&&(t.injectorIndex=e.length,co(r.data,t),co(e,null),co(r.blueprint,null));let i=lf(t,e),o=t.injectorIndex;if($m(i)){let s=Mo(i),a=jo(i,e),u=a[K].data;for(let l=0;l<8;l++)e[o+l]=a[s+l]|u[s+l]}return e[o+8]=i,o}function co(t,e){t.push(0,0,0,0,0,0,0,0,e)}function uf(t,e){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||e[t.injectorIndex+8]===null?-1:t.injectorIndex}function lf(t,e){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let n=0,r=null,i=e;for(;i!==null;){if(r=gf(i),r===null)return En;if(n++,i=i[Mn],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return En}function Ym(t,e,n){Wm(t,e,n)}function cf(t,e,n){if(n&q.Optional||t!==void 0)return t;js(e,"NodeInjector")}function ff(t,e,n,r){if(n&q.Optional&&r===void 0&&(r=null),(n&(q.Self|q.Host))===0){let i=t[ir],o=jt(void 0);try{return i?i.get(e,r,n&q.Optional):wc(e,r,n&q.Optional)}finally{jt(o)}}return cf(r,e,n)}function df(t,e,n,r=q.Default,i){if(t!==null){if(e[U]&2048&&!(r&q.Self)){let s=Jm(t,e,n,r,ue);if(s!==ue)return s}let o=hf(t,e,n,r,ue);if(o!==ue)return o}return ff(e,n,r,i)}function hf(t,e,n,r,i){let o=Qm(n);if(typeof o=="function"){if(!Zc(e,t,r))return r&q.Host?cf(i,n,r):ff(e,n,r,i);try{let s;if(s=o(r),s==null&&!(r&q.Optional))js(n);else return s}finally{tf()}}else if(typeof o=="number"){let s=null,a=uf(t,e),u=En,l=r&q.Host?e[le][ce]:null;for((a===-1||r&q.SkipSelf)&&(u=a===-1?lf(t,e):e[a+8],u===En||!_u(r,!1)?a=-1:(s=e[K],a=Mo(u),e=jo(u,e)));a!==-1;){let d=e[K];if(yu(o,a,d.data)){let h=Km(a,e,n,s,r,l);if(h!==ue)return h}u=e[a+8],u!==En&&_u(r,e[K].data[a+8]===l)&&yu(o,a,e)?(s=d,a=Mo(u),e=jo(u,e)):a=-1}}return i}function Km(t,e,n,r,i,o){let s=e[K],a=s.data[t+8],u=r==null?Ai(a)&&Vo:r!=s&&(a.type&3)!==0,l=i&q.Host&&o===a,d=Zm(a,s,n,u,l);return d!==null?Fo(e,s,d,a):ue}function Zm(t,e,n,r,i){let o=t.providerIndexes,s=e.data,a=o&1048575,u=t.directiveStart,l=t.directiveEnd,d=o>>20,h=r?a:a+d,y=i?a+d:l;for(let _=h;_<y;_++){let w=s[_];if(_<u&&n===w||_>=u&&w.type===n)return _}if(i){let _=s[u];if(_&&rn(_)&&_.type===n)return u}return null}function Fo(t,e,n,r){let i=t[n],o=e.data;if(Mm(i)){let s=i;s.resolving&&Dg(xg(o[n]));let a=hi(s.canSeeViewProviders);s.resolving=!0;let u,l=s.injectImpl?jt(s.injectImpl):null,d=Zc(t,r,q.Default);try{i=t[n]=s.factory(void 0,o,t,r),e.firstCreatePass&&n>=r.directiveStart&&Lm(n,o[n],e)}finally{l!==null&&jt(l),hi(a),s.resolving=!1,tf()}}return i}function Qm(t){if(typeof t=="string")return t.charCodeAt(0)||0;let e=t.hasOwnProperty(Jn)?t[Jn]:void 0;return typeof e=="number"?e>=0?e&of:Xm:e}function yu(t,e,n){let r=1<<t;return!!(n[e+(t>>sf)]&r)}function _u(t,e){return!(t&q.Self)&&!(t&q.Host&&e)}var pf=class{_tNode;_lView;constructor(t,e){this._tNode=t,this._lView=e}get(t,e,n){return df(this._tNode,this._lView,t,xi(n),e)}};function Xm(){return new pf(_r(),yt())}function Jm(t,e,n,r,i){let o=t,s=e;for(;o!==null&&s!==null&&s[U]&2048&&!di(s);){let a=hf(o,s,n,r|q.Self,ue);if(a!==ue)return a;let u=o.parent;if(!u){let l=s[Rc];if(l){let d=l.get(n,ue,r);if(d!==ue)return d}u=gf(s),s=s[Mn]}o=u}return i}function gf(t){let e=t[K],n=e.type;return n===2?e.declTNode:n===1?t[ce]:null}function bu(t,e=null,n=null,r){let i=tv(t,e,n,r);return i.resolveInjectorInitializers(),i}function tv(t,e=null,n=null,r,i=new Set){let o=[n||ze,Wg(t)];return r=r||(typeof t=="object"?void 0:re(t)),new Bs(o,e||Hs(),r||null,i)}var Mi=class mf{static THROW_IF_NOT_FOUND=er;static NULL=new Cc;static create(e,n){if(Array.isArray(e))return bu({name:""},n,e,"");{let r=e.name??"";return bu({name:r},e.parent,e.providers,r)}}static \u0275prov=Et({token:mf,providedIn:"any",factory:()=>lt(Ic)});static __NG_ELEMENT_ID__=-1},ev=new ct("");ev.__NG_ELEMENT_ID__=t=>{let e=_r();if(e===null)throw new it(204,!1);if(e.type&2)return e.value;if(t&q.Optional)return null;throw new it(204,!1)};var vf=!1,yf=(()=>{class t{static __NG_ELEMENT_ID__=rv;static __NG_ENV_ID__=n=>n}return t})(),nv=class extends yf{_lView;constructor(t){super(),this._lView=t}onDestroy(t){return $c(this._lView,t),()=>gm(this._lView,t)}};function rv(){return new nv(yt())}var br=class{},Xs=new ct("",{providedIn:"root",factory:()=>!1}),_f=new ct(""),Js=new ct(""),ji=(()=>{class t{taskId=0;pendingTasks=new Set;get _hasPendingTasks(){return this.hasPendingTasks.value}hasPendingTasks=new Wp(!1);add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static \u0275prov=Et({token:t,providedIn:"root",factory:()=>new t})}return t})(),iv=class extends mr{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,im()&&(this.destroyRef=at(yf,{optional:!0})??void 0,this.pendingTasks=at(ji,{optional:!0})??void 0)}emit(t){let e=et(null);try{super.next(t)}finally{et(e)}}subscribe(t,e,n){let r=t,i=e||(()=>null),o=n;if(t&&typeof t=="object"){let a=t;r=a.next?.bind(a),i=a.error?.bind(a),o=a.complete?.bind(a)}this.__isAsync&&(i=this.wrapInTimeout(i),r&&(r=this.wrapInTimeout(r)),o&&(o=this.wrapInTimeout(o)));let s=super.subscribe({next:r,error:i,complete:o});return t instanceof ve&&t.add(s),s}wrapInTimeout(t){return e=>{let n=this.pendingTasks?.add();setTimeout(()=>{t(e),n!==void 0&&this.pendingTasks?.remove(n)})}}},Ne=iv;function pi(...t){}function bf(t){let e,n;function r(){t=pi;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),e!==void 0&&clearTimeout(e)}catch{}}return e=setTimeout(()=>{t(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{t(),r()})),()=>r()}function Eu(t){return queueMicrotask(()=>t()),()=>{t=pi}}var ta="isAngularZone",gi=ta+"_ID",ov=0,$t=class Uo{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new Ne(!1);onMicrotaskEmpty=new Ne(!1);onStable=new Ne(!1);onError=new Ne(!1);constructor(e){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:i=!1,scheduleInRootZone:o=vf}=e;if(typeof Zone>"u")throw new it(908,!1);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!i&&r,s.shouldCoalesceRunChangeDetection=i,s.callbackScheduled=!1,s.scheduleInRootZone=o,uv(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(ta)===!0}static assertInAngularZone(){if(!Uo.isInAngularZone())throw new it(909,!1)}static assertNotInAngularZone(){if(Uo.isInAngularZone())throw new it(909,!1)}run(e,n,r){return this._inner.run(e,n,r)}runTask(e,n,r,i){let o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,e,sv,pi,pi);try{return o.runTask(s,n,r)}finally{o.cancelTask(s)}}runGuarded(e,n,r){return this._inner.runGuarded(e,n,r)}runOutsideAngular(e){return this._outer.run(e)}},sv={};function ea(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function av(t){if(t.isCheckStableRunning||t.callbackScheduled)return;t.callbackScheduled=!0;function e(){bf(()=>{t.callbackScheduled=!1,Ho(t),t.isCheckStableRunning=!0,ea(t),t.isCheckStableRunning=!1})}t.scheduleInRootZone?Zone.root.run(()=>{e()}):t._outer.run(()=>{e()}),Ho(t)}function uv(t){let e=()=>{av(t)},n=ov++;t._inner=t._inner.fork({name:"angular",properties:{[ta]:!0,[gi]:n,[gi+n]:!0},onInvokeTask:(r,i,o,s,a,u)=>{if(lv(u))return r.invokeTask(o,s,a,u);try{return wu(t),r.invokeTask(o,s,a,u)}finally{(t.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&e(),Su(t)}},onInvoke:(r,i,o,s,a,u,l)=>{try{return wu(t),r.invoke(o,s,a,u,l)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!cv(u)&&e(),Su(t)}},onHasTask:(r,i,o,s)=>{r.hasTask(o,s),i===o&&(s.change=="microTask"?(t._hasPendingMicrotasks=s.microTask,Ho(t),ea(t)):s.change=="macroTask"&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,i,o,s)=>(r.handleError(o,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}function Ho(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function wu(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Su(t){t._nesting--,ea(t)}var Ef=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new Ne;onMicrotaskEmpty=new Ne;onStable=new Ne;onError=new Ne;run(t,e,n){return t.apply(e,n)}runGuarded(t,e,n){return t.apply(e,n)}runOutsideAngular(t){return t()}runTask(t,e,n,r){return t.apply(e,n)}};function lv(t){return wf(t,"__ignore_ng_zone__")}function cv(t){return wf(t,"__scheduler_tick__")}function wf(t,e){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[e]===!0}var Er=class{_console=console;handleError(t){this._console.error("ERROR",t)}},fv=new ct("",{providedIn:"root",factory:()=>{let t=at($t),e=at(Er);return n=>t.runOutsideAngular(()=>e.handleError(n))}});function dv(){return Sf(_r(),yt())}function Sf(t,e){return new If(on(t,e))}var If=(()=>{class t{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=dv}return t})();function fo(t,e){let n=xp(t),r=n[Oe];return e?.equal&&(r.equal=e.equal),n.set=i=>Wl(r,i),n.update=i=>Dp(r,i),n.asReadonly=hv.bind(n),n}function hv(){let t=this[Oe];if(t.readonlyFn===void 0){let e=()=>this();e[Oe]=t,t.readonlyFn=e}return t.readonlyFn}function Tf(t){return(t.flags&128)===128}var Cf=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}(Cf||{}),Nf=new Map,pv=0;function gv(){return pv++}function mv(t){Nf.set(t[ki],t)}function Bo(t){Nf.delete(t[ki])}var Iu="__ngContext__";function wr(t,e){Be(e)?(t[Iu]=e[ki],mv(e)):t[Iu]=e}function Of(t){return Df(t[or])}function xf(t){return Df(t[ie])}function Df(t){for(;t!==null&&!nn(t);)t=t[ie];return t}var $o;function vv(t){$o=t}function kf(){if($o!==void 0)return $o;if(typeof document<"u")return document;throw new it(210,!1)}var Af=new ct("",{providedIn:"root",factory:()=>yv}),yv="ng",Rf=new ct(""),na=new ct("",{providedIn:"platform",factory:()=>"unknown"}),Lf=new ct("",{providedIn:"root",factory:()=>kf().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null}),_v="h",bv="b",Pf=!1,Ev=new ct("",{providedIn:"root",factory:()=>Pf}),Mf=function(t){return t[t.CHANGE_DETECTION=0]="CHANGE_DETECTION",t[t.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",t}(Mf||{}),ra=new ct(""),Tu=new Set;function Vi(t){Tu.has(t)||(Tu.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}var wv=(()=>{class t{impl=null;execute(){this.impl?.execute()}static \u0275prov=Et({token:t,providedIn:"root",factory:()=>new t})}return t})(),Sv=()=>null;function jf(t,e,n=!1){return Sv(t,e,n)}function Vf(t,e){let n=t.contentQueries;if(n!==null){let r=et(null);try{for(let i=0;i<n.length;i+=2){let o=n[i],s=n[i+1];if(s!==-1){let a=t.data[s];Kc(o),a.contentQueries(2,e[s],s)}}}finally{et(r)}}}function zo(t,e,n){Kc(0);let r=et(null);try{e(t,n)}finally{et(r)}}function Ff(t,e,n){if(Pc(e)){let r=et(null);try{let i=e.directiveStart,o=e.directiveEnd;for(let s=i;s<o;s++){let a=t.data[s];if(a.contentQueries){let u=n[s];a.contentQueries(1,u,s)}}}finally{et(r)}}}var ge=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}(ge||{}),Vr;function Iv(){if(Vr===void 0&&(Vr=null,ai.trustedTypes))try{Vr=ai.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Vr}function Fi(t){return Iv()?.createHTML(t)||t}var Fr;function Tv(){if(Fr===void 0&&(Fr=null,ai.trustedTypes))try{Fr=ai.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Fr}function Cu(t){return Tv()?.createHTML(t)||t}var an=class{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${mc})`}},Cv=class extends an{getTypeName(){return"HTML"}},Nv=class extends an{getTypeName(){return"Style"}},Ov=class extends an{getTypeName(){return"Script"}},xv=class extends an{getTypeName(){return"URL"}},Dv=class extends an{getTypeName(){return"ResourceURL"}};function Ce(t){return t instanceof an?t.changingThisBreaksApplicationSecurity:t}function Fe(t,e){let n=kv(t);if(n!=null&&n!==e){if(n==="ResourceURL"&&e==="URL")return!0;throw new Error(`Required a safe ${e}, got a ${n} (see ${mc})`)}return n===e}function kv(t){return t instanceof an&&t.getTypeName()||null}function Av(t){return new Cv(t)}function Rv(t){return new Nv(t)}function Lv(t){return new Ov(t)}function Pv(t){return new xv(t)}function Mv(t){return new Dv(t)}function jv(t){let e=new Fv(t);return Uv()?new Vv(e):e}var Vv=class{inertDocumentHelper;constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{let e=new window.DOMParser().parseFromString(Fi(t),"text/html").body;return e===null?this.inertDocumentHelper.getInertBodyElement(t):(e.firstChild?.remove(),e)}catch{return null}}},Fv=class{defaultDoc;inertDocument;constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){let e=this.inertDocument.createElement("template");return e.innerHTML=Fi(t),e}};function Uv(){try{return!!new window.DOMParser().parseFromString(Fi(""),"text/html")}catch{return!1}}var Hv=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function ia(t){return t=String(t),t.match(Hv)?t:"unsafe:"+t}function Ee(t){let e={};for(let n of t.split(","))e[n]=!0;return e}function Sr(...t){let e={};for(let n of t)for(let r in n)n.hasOwnProperty(r)&&(e[r]=!0);return e}var Uf=Ee("area,br,col,hr,img,wbr"),Hf=Ee("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Bf=Ee("rp,rt"),Bv=Sr(Bf,Hf),$v=Sr(Hf,Ee("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),zv=Sr(Bf,Ee("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Nu=Sr(Uf,$v,zv,Bv),$f=Ee("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Gv=Ee("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),qv=Ee("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"),Wv=Sr($f,Gv,qv),Yv=Ee("script,style,template"),Kv=class{sanitizedSomething=!1;buf=[];sanitizeChildren(t){let e=t.firstChild,n=!0,r=[];for(;e;){if(e.nodeType===Node.ELEMENT_NODE?n=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,n&&e.firstChild){r.push(e),e=Xv(e);continue}for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let i=Qv(e);if(i){e=i;break}e=r.pop()}}return this.buf.join("")}startElement(t){let e=Ou(t).toLowerCase();if(!Nu.hasOwnProperty(e))return this.sanitizedSomething=!0,!Yv.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);let n=t.attributes;for(let r=0;r<n.length;r++){let i=n.item(r),o=i.name,s=o.toLowerCase();if(!Wv.hasOwnProperty(s)){this.sanitizedSomething=!0;continue}let a=i.value;$f[s]&&(a=ia(a)),this.buf.push(" ",o,'="',xu(a),'"')}return this.buf.push(">"),!0}endElement(t){let e=Ou(t).toLowerCase();Nu.hasOwnProperty(e)&&!Uf.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(t){this.buf.push(xu(t))}};function Zv(t,e){return(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function Qv(t){let e=t.nextSibling;if(e&&t!==e.previousSibling)throw zf(e);return e}function Xv(t){let e=t.firstChild;if(e&&Zv(t,e))throw zf(e);return e}function Ou(t){let e=t.nodeName;return typeof e=="string"?e:"FORM"}function zf(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}var Jv=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ty=/([^\#-~ |!])/g;function xu(t){return t.replace(/&/g,"&amp;").replace(Jv,function(e){let n=e.charCodeAt(0),r=e.charCodeAt(1);return"&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace(ty,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}var Ur;function Gf(t,e){let n=null;try{Ur=Ur||jv(t);let r=e?String(e):"";n=Ur.getInertBodyElement(r);let i=5,o=r;do{if(i===0)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=n.innerHTML,n=Ur.getInertBodyElement(r)}while(r!==o);let s=new Kv().sanitizeChildren(Du(n)||n);return Fi(s)}finally{if(n){let r=Du(n)||n;for(;r.firstChild;)r.firstChild.remove()}}}function Du(t){return"content"in t&&ey(t)?t.content:null}function ey(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}var pe=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(pe||{});function qf(t){let e=Wf();return e?Cu(e.sanitize(pe.HTML,t)||""):Fe(t,"HTML")?Cu(Ce(t)):Gf(kf(),Oi(t))}function ny(t){let e=Wf();return e?e.sanitize(pe.URL,t)||"":Fe(t,"URL")?Ce(t):ia(Oi(t))}function Wf(){let t=yt();return t&&t[ye].sanitizer}function ry(t,e,n){let r=t.length;for(;;){let i=t.indexOf(e,n);if(i===-1)return i;if(i===0||t.charCodeAt(i-1)<=32){let o=e.length;if(i+o===r||t.charCodeAt(i+o)<=32)return i}n=i+1}}var Yf="ng-template";function iy(t,e,n,r){let i=0;if(r){for(;i<e.length&&typeof e[i]=="string";i+=2)if(e[i]==="class"&&ry(e[i+1].toLowerCase(),n,0)!==-1)return!0}else if(oa(t))return!1;if(i=e.indexOf(1,i),i>-1){let o;for(;++i<e.length&&typeof(o=e[i])=="string";)if(o.toLowerCase()===n)return!0}return!1}function oa(t){return t.type===4&&t.value!==Yf}function oy(t,e,n){let r=t.type===4&&!n?Yf:t.value;return e===r}function sy(t,e,n){let r=4,i=t.attrs,o=i!==null?ly(i):0,s=!1;for(let a=0;a<e.length;a++){let u=e[a];if(typeof u=="number"){if(!s&&!te(r)&&!te(u))return!1;if(s&&te(u))continue;s=!1,r=u|r&1;continue}if(!s)if(r&4){if(r=2|r&1,u!==""&&!oy(t,u,n)||u===""&&e.length===1){if(te(r))return!1;s=!0}}else if(r&8){if(i===null||!iy(t,i,u,n)){if(te(r))return!1;s=!0}}else{let l=e[++a],d=ay(u,i,oa(t),n);if(d===-1){if(te(r))return!1;s=!0;continue}if(l!==""){let h;if(d>o?h="":h=i[d+1].toLowerCase(),r&2&&l!==h){if(te(r))return!1;s=!0}}}}return te(r)||s}function te(t){return(t&1)===0}function ay(t,e,n,r){if(e===null)return-1;let i=0;if(r||!n){let o=!1;for(;i<e.length;){let s=e[i];if(s===t)return i;if(s===3||s===6)o=!0;else if(s===1||s===2){let a=e[++i];for(;typeof a=="string";)a=e[++i];continue}else{if(s===4)break;if(s===0){i+=4;continue}}i+=o?1:2}return-1}else return cy(e,t)}function uy(t,e,n=!1){for(let r=0;r<e.length;r++)if(sy(t,e[r],n))return!0;return!1}function ly(t){for(let e=0;e<t.length;e++){let n=t[e];if(Um(n))return e}return t.length}function cy(t,e){let n=t.indexOf(4);if(n>-1)for(n++;n<t.length;){let r=t[n];if(typeof r=="number")return-1;if(r===e)return n;n++}return-1}function ku(t,e){return t?":not("+e.trim()+")":e}function fy(t){let e=t[0],n=1,r=2,i="",o=!1;for(;n<t.length;){let s=t[n];if(typeof s=="string")if(r&2){let a=t[++n];i+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else r&8?i+="."+s:r&4&&(i+=" "+s);else i!==""&&!te(s)&&(e+=ku(o,i),i=""),r=s,o=o||!te(r);n++}return i!==""&&(e+=ku(o,i)),e}function dy(t){return t.map(fy).join(",")}function hy(t){let e=[],n=[],r=1,i=2;for(;r<t.length;){let o=t[r];if(typeof o=="string")i===2?o!==""&&e.push(o,t[++r]):i===8&&n.push(o);else{if(!te(i))break;i=o}r++}return n.length&&e.push(1,...n),e}var Me={};function py(t,e){return t.createText(e)}function gy(t,e,n){t.setValue(e,n)}function Kf(t,e,n){return t.createElement(e,n)}function Go(t,e,n,r,i){t.insertBefore(e,n,r,i)}function Zf(t,e,n){t.appendChild(e,n)}function Au(t,e,n,r,i){r!==null?Go(t,e,n,r,i):Zf(t,e,n)}function my(t,e,n){t.removeChild(null,e,n)}function vy(t,e,n){t.setAttribute(e,"style",n)}function yy(t,e,n){n===""?t.removeAttribute(e,"class"):t.setAttribute(e,"class",n)}function Qf(t,e,n){let{mergedAttrs:r,classes:i,styles:o}=n;r!==null&&Fm(t,e,r),i!==null&&yy(t,e,i),o!==null&&vy(t,e,o)}function sa(t,e,n,r,i,o,s,a,u,l,d){let h=Lt+r,y=h+i,_=_y(h,y),w=typeof l=="function"?l():l;return _[K]={type:t,blueprint:_,template:n,queries:null,viewQuery:a,declTNode:e,data:_.slice().fill(null,h),bindingStartIndex:h,expandoStartIndex:y,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:typeof o=="function"?o():o,pipeRegistry:typeof s=="function"?s():s,firstChild:null,schemas:u,consts:w,incompleteFirstPass:!1,ssrId:d}}function _y(t,e){let n=[];for(let r=0;r<e;r++)n.push(r<t?null:Me);return n}function by(t){let e=t.tView;return e===null||e.incompleteFirstPass?t.tView=sa(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts,t.id):e}function aa(t,e,n,r,i,o,s,a,u,l,d){let h=e.blueprint.slice();return h[be]=i,h[U]=r|4|128|8|64|1024,(l!==null||t&&t[U]&2048)&&(h[U]|=2048),Bc(h),h[Xt]=h[Mn]=t,h[kt]=n,h[ye]=s||t&&t[ye],h[Gt]=a||t&&t[Gt],h[ir]=u||t&&t[ir]||null,h[ce]=o,h[ki]=gv(),h[rr]=d,h[Rc]=l,h[le]=e.type==2?t[le]:h,h}function Ey(t,e,n){let r=on(e,t),i=by(n),o=t[ye].rendererFactory,s=td(t,aa(t,i,null,Xf(n),r,e,null,o.createRenderer(r,n),null,null,null));return t[e.index]=s}function Xf(t){let e=16;return t.signals?e=4096:t.onPush&&(e=64),e}function Jf(t,e,n,r){if(n===0)return-1;let i=e.length;for(let o=0;o<n;o++)e.push(r),t.blueprint.push(r),t.data.push(null);return i}function td(t,e){return t[or]?t[pu][ie]=e:t[or]=e,t[pu]=e,e}function wn(t=1){ed(fe(),yt(),sn()+t,!1)}function ed(t,e,n,r){if(!r)if((e[U]&3)===3){let i=t.preOrderCheckHooks;i!==null&&Xr(e,i,n)}else{let i=t.preOrderHooks;i!==null&&Jr(e,i,0,n)}We(n)}var Ui=function(t){return t[t.None=0]="None",t[t.SignalBased=1]="SignalBased",t[t.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",t}(Ui||{});function qo(t,e,n,r){let i=et(null);try{let[o,s,a]=t.inputs[n],u=null;(s&Ui.SignalBased)!==0&&(u=e[o][Oe]),u!==null&&u.transformFn!==void 0?r=u.transformFn(r):a!==null&&(r=a.call(e,r)),t.setInput!==null?t.setInput(e,u,r,n,o):jc(e,u,o,r)}finally{et(i)}}function nd(t,e,n,r,i){let o=sn(),s=r&2;try{We(-1),s&&e.length>Lt&&ed(t,e,Lt,!1),dt(s?2:0,i),n(r,i)}finally{We(o),dt(s?3:1,i)}}function ua(t,e,n){Oy(t,e,n),(n.flags&64)===64&&xy(t,e,n)}function rd(t,e,n=on){let r=e.localNames;if(r!==null){let i=e.index+1;for(let o=0;o<r.length;o+=2){let s=r[o+1],a=s===-1?n(e,t):t[s];t[i++]=a}}}function wy(t,e,n,r){let i=r.get(Ev,Pf)||n===ge.ShadowDom,o=t.selectRootElement(e,i);return Sy(o),o}function Sy(t){Iy(t)}var Iy=()=>null;function Ty(t){return t==="class"?"className":t==="for"?"htmlFor":t==="formaction"?"formAction":t==="innerHtml"?"innerHTML":t==="readonly"?"readOnly":t==="tabindex"?"tabIndex":t}function Cy(t,e,n,r,i,o,s,a){if(!a&&la(e,t,n,r,i)){Ai(e)&&Ny(n,e.index);return}if(e.type&3){let u=on(e,n);r=Ty(r),i=s!=null?s(i,e.value||"",r):i,o.setProperty(u,r,i)}else e.type&12}function Ny(t,e){let n=Ge(e,t);n[U]&16||(n[U]|=64)}function Oy(t,e,n){let r=n.directiveStart,i=n.directiveEnd;Ai(n)&&Ey(e,n,t.data[r+n.componentOffset]),t.firstCreatePass||af(n,e);let o=n.initialInputs;for(let s=r;s<i;s++){let a=t.data[s],u=Fo(e,t,s,n);if(wr(u,e),o!==null&&ky(e,s-r,u,a,n,o),rn(a)){let l=Ge(n.index,e);l[kt]=Fo(e,t,s,n)}}}function xy(t,e,n){let r=n.directiveStart,i=n.directiveEnd,o=n.index,s=Om();try{We(o);for(let a=r;a<i;a++){let u=t.data[a],l=e[a];Po(a),(u.hostBindings!==null||u.hostVars!==0||u.hostAttrs!==null)&&Dy(u,l)}}finally{We(-1),Po(s)}}function Dy(t,e){t.hostBindings!==null&&t.hostBindings(1,e)}function id(t,e){let n=t.directiveRegistry,r=null;if(n)for(let i=0;i<n.length;i++){let o=n[i];uy(e,o.selectors,!1)&&(r??=[],rn(o)?r.unshift(o):r.push(o))}return r}function ky(t,e,n,r,i,o){let s=o[e];if(s!==null)for(let a=0;a<s.length;a+=2){let u=s[a],l=s[a+1];qo(r,n,u,l)}}function Ay(t,e){let n=t[ir],r=n?n.get(Er,null):null;r&&r.handleError(e)}function la(t,e,n,r,i){let o=t.inputs?.[r],s=t.hostDirectiveInputs?.[r],a=!1;if(s)for(let u=0;u<s.length;u+=2){let l=s[u],d=s[u+1],h=e.data[l];qo(h,n[l],d,i),a=!0}if(o)for(let u of o){let l=n[u],d=e.data[u];qo(d,l,r,i),a=!0}return a}function Ry(t,e){let n=Ge(e,t),r=n[K];Ly(r,n);let i=n[be];i!==null&&n[rr]===null&&(n[rr]=jf(i,n[ir])),dt(18),ca(r,n,n[kt]),dt(19,n[kt])}function Ly(t,e){for(let n=e.length;n<t.blueprint.length;n++)e.push(t.blueprint[n])}function ca(t,e,n){qs(e);try{let r=t.viewQuery;r!==null&&zo(1,r,n);let i=t.template;i!==null&&nd(t,e,i,1,n),t.firstCreatePass&&(t.firstCreatePass=!1),e[On]?.finishViewCreation(t),t.staticContentQueries&&Vf(t,e),t.staticViewQueries&&zo(2,t.viewQuery,n);let o=t.components;o!==null&&Py(e,o)}catch(r){throw t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),r}finally{e[U]&=-5,Ws()}}function Py(t,e){for(let n=0;n<e.length;n++)Ry(t,e[n])}function fa(t,e,n,r){let i=et(null);try{let o=e.tView,s=t[U]&4096?4096:16,a=aa(t,o,n,s,null,e,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),u=t[e.index];a[Nn]=u;let l=t[On];return l!==null&&(a[On]=l.createEmbeddedView(o)),ca(o,a,n),a}finally{et(i)}}function da(t,e){return!e||e.firstChild===null||Tf(t)}var My;function ha(t,e){return My(t,e)}var He=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(He||{});function od(t){return(t.flags&32)===32}function vn(t,e,n,r,i){if(r!=null){let o,s=!1;nn(r)?o=r:Be(r)&&(s=!0,r=r[be]);let a=Ae(r);t===0&&n!==null?i==null?Zf(e,n,a):Go(e,n,a,i||null,!0):t===1&&n!==null?Go(e,n,a,i||null,!0):t===2?my(e,a,s):t===3&&e.destroyNode(a),o!=null&&Yy(e,t,o,n,i)}}function jy(t,e){sd(t,e),e[be]=null,e[ce]=null}function Vy(t,e,n,r,i,o){r[be]=i,r[ce]=e,Hi(t,r,n,1,i,o)}function sd(t,e){e[ye].changeDetectionScheduler?.notify(9),Hi(t,e,e[Gt],2,null,null)}function Fy(t){let e=t[or];if(!e)return ho(t[K],t);for(;e;){let n=null;if(Be(e))n=e[or];else{let r=e[Vt];r&&(n=r)}if(!n){for(;e&&!e[ie]&&e!==t;)Be(e)&&ho(e[K],e),e=e[Xt];e===null&&(e=t),Be(e)&&ho(e[K],e),n=e&&e[ie]}e=n}}function pa(t,e){let n=t[fi],r=n.indexOf(e);n.splice(r,1)}function ga(t,e){if(yr(e))return;let n=e[Gt];n.destroyNode&&Hi(t,e,n,3,null,null),Fy(e)}function ho(t,e){if(yr(e))return;let n=et(null);try{e[U]&=-129,e[U]|=256,e[Bt]&&Hl(e[Bt]),Hy(t,e),Uy(t,e),e[K].type===1&&e[Gt].destroy();let r=e[Nn];if(r!==null&&nn(e[Xt])){r!==e[Xt]&&pa(r,e);let i=e[On];i!==null&&i.detachView(t)}Bo(e)}finally{et(n)}}function Uy(t,e){let n=t.cleanup,r=e[hu];if(n!==null)for(let s=0;s<n.length-1;s+=2)if(typeof n[s]=="string"){let a=n[s+3];a>=0?r[a]():r[-a].unsubscribe(),s+=2}else{let a=r[n[s+1]];n[s].call(a)}r!==null&&(e[hu]=null);let i=e[De];if(i!==null){e[De]=null;for(let s=0;s<i.length;s++){let a=i[s];a()}}let o=e[ci];if(o!==null){e[ci]=null;for(let s of o)s.destroy()}}function Hy(t,e){let n;if(t!=null&&(n=t.destroyHooks)!=null)for(let r=0;r<n.length;r+=2){let i=e[n[r]];if(!(i instanceof Zs)){let o=n[r+1];if(Array.isArray(o))for(let s=0;s<o.length;s+=2){let a=i[o[s]],u=o[s+1];dt(4,a,u);try{u.call(a)}finally{dt(5,a,u)}}else{dt(4,i,o);try{o.call(i)}finally{dt(5,i,o)}}}}}function By(t,e,n){return $y(t,e.parent,n)}function $y(t,e,n){let r=e;for(;r!==null&&r.type&168;)e=r,r=e.parent;if(r===null)return n[be];if(Ai(r)){let{encapsulation:i}=t.data[r.directiveStart+r.componentOffset];if(i===ge.None||i===ge.Emulated)return null}return on(r,n)}function zy(t,e,n){return qy(t,e,n)}function Gy(t,e,n){return t.type&40?on(t,n):null}var qy=Gy,Ru;function ma(t,e,n,r){let i=By(t,r,e),o=e[Gt],s=r.parent||e[ce],a=zy(s,r,e);if(i!=null)if(Array.isArray(n))for(let u=0;u<n.length;u++)Au(o,i,n[u],a,!1);else Au(o,i,n,a,!1);Ru!==void 0&&Ru(o,r,e,n,i)}function Zn(t,e){if(e!==null){let n=e.type;if(n&3)return on(e,t);if(n&4)return Wo(-1,t[e.index]);if(n&8){let r=e.child;if(r!==null)return Zn(t,r);{let i=t[e.index];return nn(i)?Wo(-1,i):Ae(i)}}else{if(n&128)return Zn(t,e.next);if(n&32)return ha(e,t)()||Ae(t[e.index]);{let r=ad(t,e);if(r!==null){if(Array.isArray(r))return r[0];let i=qe(t[le]);return Zn(i,r)}else return Zn(t,e.next)}}}return null}function ad(t,e){if(e!==null){let n=t[le][ce],r=e.projection;return n.projection[r]}return null}function Wo(t,e){let n=Vt+t+1;if(n<e.length){let r=e[n],i=r[K].firstChild;if(i!==null)return Zn(r,i)}return e[sr]}function va(t,e,n,r,i,o,s){for(;n!=null;){if(n.type===128){n=n.next;continue}let a=r[n.index],u=n.type;if(s&&e===0&&(a&&wr(Ae(a),r),n.flags|=2),!od(n))if(u&8)va(t,e,n.child,r,i,o,!1),vn(e,t,i,a,o);else if(u&32){let l=ha(n,r),d;for(;d=l();)vn(e,t,i,d,o);vn(e,t,i,a,o)}else u&16?Wy(t,e,r,n,i,o):vn(e,t,i,a,o);n=s?n.projectionNext:n.next}}function Hi(t,e,n,r,i,o){va(n,r,t.firstChild,e,i,o,!1)}function Wy(t,e,n,r,i,o){let s=n[le],a=s[ce].projection[r.projection];if(Array.isArray(a))for(let u=0;u<a.length;u++){let l=a[u];vn(e,t,i,l,o)}else{let u=a,l=s[Xt];Tf(r)&&(u.flags|=128),va(t,e,u,l,i,o,!0)}}function Yy(t,e,n,r,i){let o=n[sr],s=Ae(n);o!==s&&vn(e,t,r,o,i);for(let a=Vt;a<n.length;a++){let u=n[a];Hi(u[K],u,t,e,r,o)}}function Ky(t,e,n,r,i){if(e)i?t.addClass(n,r):t.removeClass(n,r);else{let o=r.indexOf("-")===-1?void 0:He.DashCase;i==null?t.removeStyle(n,r,o):(typeof i=="string"&&i.endsWith("!important")&&(i=i.slice(0,-10),o|=He.Important),t.setStyle(n,r,i,o))}}function mi(t,e,n,r,i=!1){for(;n!==null;){if(n.type===128){n=i?n.projectionNext:n.next;continue}let o=e[n.index];o!==null&&r.push(Ae(o)),nn(o)&&Zy(o,r);let s=n.type;if(s&8)mi(t,e,n.child,r);else if(s&32){let a=ha(n,e),u;for(;u=a();)r.push(u)}else if(s&16){let a=ad(e,n);if(Array.isArray(a))r.push(...a);else{let u=qe(e[le]);mi(u[K],u,a,r,!0)}}n=i?n.projectionNext:n.next}return r}function Zy(t,e){for(let n=Vt;n<t.length;n++){let r=t[n],i=r[K].firstChild;i!==null&&mi(r[K],r,i,e)}t[sr]!==t[be]&&e.push(t[sr])}function ud(t){if(t[ao]!==null){for(let e of t[ao])e.impl.addSequence(e);t[ao].length=0}}var ld=[];function Qy(t){return t[Bt]??Xy(t)}function Xy(t){let e=ld.pop()??Object.create(t_);return e.lView=t,e}function Jy(t){t.lView[Bt]!==t&&(t.lView=null,ld.push(t))}var t_=ht(C({},As),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:t=>{Li(t.lView)},consumerOnSignalRead(){this.lView[Bt]=this}});function e_(t){let e=t[Bt]??Object.create(n_);return e.lView=t,e}var n_=ht(C({},As),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:t=>{let e=qe(t.lView);for(;e&&!cd(e[K]);)e=qe(e);e&&Gs(e)},consumerOnSignalRead(){this.lView[Bt]=this}});function cd(t){return t.type!==2}function fd(t){if(t[ci]===null)return;let e=!0;for(;e;){let n=!1;for(let r of t[ci])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));e=n&&!!(t[U]&8192)}}var r_=100;function dd(t,e=!0,n=0){let r=t[ye].rendererFactory,i=!1;i||r.begin?.();try{i_(t,n)}catch(o){throw e&&Ay(t,o),o}finally{i||r.end?.()}}function i_(t,e){let n=Wc();try{gu(!0),Yo(t,e);let r=0;for(;Ri(t);){if(r===r_)throw new it(103,!1);r++,Yo(t,1)}}finally{gu(n)}}function o_(t,e,n,r){if(yr(e))return;let i=e[U],o=!1,s=!1;qs(e);let a=!0,u=null,l=null;o||(cd(t)?(l=Qy(e),u=tu(l)):bp()===null?(a=!1,l=e_(e),u=tu(l)):e[Bt]&&(Hl(e[Bt]),e[Bt]=null));try{Bc(e),Im(t.bindingStartIndex),n!==null&&nd(t,e,n,2,r);let d=(i&3)===3;if(!o)if(d){let _=t.preOrderCheckHooks;_!==null&&Xr(e,_,null)}else{let _=t.preOrderHooks;_!==null&&Jr(e,_,0,null),uo(e,0)}if(s||s_(e),fd(e),hd(e,0),t.contentQueries!==null&&Vf(t,e),!o)if(d){let _=t.contentCheckHooks;_!==null&&Xr(e,_)}else{let _=t.contentHooks;_!==null&&Jr(e,_,1),uo(e,1)}u_(t,e);let h=t.components;h!==null&&gd(e,h,0);let y=t.viewQuery;if(y!==null&&zo(2,y,r),!o)if(d){let _=t.viewCheckHooks;_!==null&&Xr(e,_)}else{let _=t.viewHooks;_!==null&&Jr(e,_,2),uo(e,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),e[so]){for(let _ of e[so])_();e[so]=null}o||(ud(e),e[U]&=-73)}catch(d){throw o||Li(e),d}finally{l!==null&&(Tp(l,u),a&&Jy(l)),Ws()}}function hd(t,e){for(let n=Of(t);n!==null;n=xf(n))for(let r=Vt;r<n.length;r++){let i=n[r];pd(i,e)}}function s_(t){for(let e=Of(t);e!==null;e=xf(e)){if(!(e[U]&2))continue;let n=e[fi];for(let r=0;r<n.length;r++){let i=n[r];Gs(i)}}}function a_(t,e,n){dt(18);let r=Ge(e,t);pd(r,n),dt(19,r[kt])}function pd(t,e){zs(t)&&Yo(t,e)}function Yo(t,e){let n=t[K],r=t[U],i=t[Bt],o=!!(e===0&&r&16);if(o||=!!(r&64&&e===0),o||=!!(r&1024),o||=!!(i?.dirty&&Ul(i)),o||=!1,i&&(i.dirty=!1),t[U]&=-9217,o)o_(n,t,n.template,t[kt]);else if(r&8192){fd(t),hd(t,1);let s=n.components;s!==null&&gd(t,s,1),ud(t)}}function gd(t,e,n){for(let r=0;r<e.length;r++)a_(t,e[r],n)}function u_(t,e){let n=t.hostBindingOpCodes;if(n!==null)try{for(let r=0;r<n.length;r++){let i=n[r];if(i<0)We(~i);else{let o=i,s=n[++r],a=n[++r];Nm(s,o);let u=e[o];dt(24,u),a(2,u),dt(25,u)}}}finally{We(-1)}}function md(t,e){let n=Wc()?64:1088;for(t[ye].changeDetectionScheduler?.notify(e);t;){t[U]|=n;let r=qe(t);if(di(t)&&!r)return t;t=r}return null}function l_(t,e,n,r){return[t,!0,0,e,null,r,null,n,null,null]}function vd(t,e){let n=Vt+e;if(n<t.length)return t[n]}function ya(t,e,n,r=!0){let i=e[K];if(c_(i,e,t,n),r){let s=Wo(n,t),a=e[Gt],u=a.parentNode(t[sr]);u!==null&&Vy(i,t[ce],a,e,u,s)}let o=e[rr];o!==null&&o.firstChild!==null&&(o.firstChild=null)}function yd(t,e){let n=_a(t,e);return n!==void 0&&ga(n[K],n),n}function _a(t,e){if(t.length<=Vt)return;let n=Vt+e,r=t[n];if(r){let i=r[Nn];i!==null&&i!==t&&pa(i,r),e>0&&(t[n-1][ie]=r[ie]);let o=Sc(t,Vt+e);jy(r[K],r);let s=o[On];s!==null&&s.detachView(o[K]),r[Xt]=null,r[ie]=null,r[U]&=-129}return r}function c_(t,e,n,r){let i=Vt+r,o=n.length;r>0&&(n[i-1][ie]=e),r<o-Vt?(e[ie]=n[i],Hg(n,Vt+r,e)):(n.push(e),e[ie]=null),e[Xt]=n;let s=e[Nn];s!==null&&n!==s&&_d(s,e);let a=e[On];a!==null&&a.insertView(t),Ro(e),e[U]|=128}function _d(t,e){let n=t[fi],r=e[Xt];if(Be(r))t[U]|=2;else{let i=r[Xt][le];e[le]!==i&&(t[U]|=2)}n===null?t[fi]=[e]:n.push(e)}var f_=class{_lView;_cdRefInjectingView;notifyErrorHandler;_appRef=null;_attachedToViewContainer=!1;get rootNodes(){let t=this._lView,e=t[K];return mi(e,t,e.firstChild,[])}constructor(t,e,n=!0){this._lView=t,this._cdRefInjectingView=e,this.notifyErrorHandler=n}get context(){return this._lView[kt]}get dirty(){return!!(this._lView[U]&9280)||!!this._lView[Bt]?.dirty}set context(t){this._lView[kt]=t}get destroyed(){return yr(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[Xt];if(nn(t)){let e=t[om],n=e?e.indexOf(this):-1;n>-1&&(_a(t,n),Sc(e,n))}this._attachedToViewContainer=!1}ga(this._lView[K],this._lView)}onDestroy(t){$c(this._lView,t)}markForCheck(){md(this._cdRefInjectingView||this._lView,4)}markForRefresh(){Gs(this._cdRefInjectingView||this._lView)}detach(){this._lView[U]&=-129}reattach(){Ro(this._lView),this._lView[U]|=128}detectChanges(){this._lView[U]|=1024,dd(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new it(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=di(this._lView),e=this._lView[Nn];e!==null&&!t&&pa(e,this._lView),sd(this._lView[K],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new it(902,!1);this._appRef=t;let e=di(this._lView),n=this._lView[Nn];n!==null&&!e&&_d(n,this._lView),Ro(this._lView)}};function Bi(t,e,n,r,i){let o=t.data[e];if(o===null)o=d_(t,e,n,r,i),Cm()&&(o.flags|=32);else if(o.type&64){o.type=n,o.value=r,o.attrs=i;let s=wm();o.injectorIndex=s===null?-1:s.injectorIndex}return jn(o,!0),o}function d_(t,e,n,r,i){let o=Gc(),s=qc(),a=s?o:o&&o.parent,u=t.data[e]=p_(t,a,n,e,r,i);return h_(t,u,o,s),u}function h_(t,e,n,r){t.firstChild===null&&(t.firstChild=e),n!==null&&(r?n.child==null&&e.parent!==null&&(n.child=e):n.next===null&&(n.next=e,e.prev=n))}function p_(t,e,n,r,i,o){let s=e?e.injectorIndex:-1,a=0;return _m()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:i,attrs:o,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}var j1=new RegExp(`^(\\d+)*(${bv}|${_v})*(.*)`),g_=()=>null;function ba(t,e){return g_(t,e)}var m_=class{},bd=class{},v_=class{resolveComponentFactory(t){throw Error(`No component factory found for ${re(t)}.`)}},Ir=class{static NULL=new v_},Ea=class{},y_=(()=>{class t{static \u0275prov=Et({token:t,providedIn:"root",factory:()=>null})}return t})();function Lu(t,e,n){let r=n?t.styles:null,i=n?t.classes:null,o=0;if(e!==null)for(let s=0;s<e.length;s++){let a=e[s];if(typeof a=="number")o=a;else if(o==1)i=su(i,a);else if(o==2){let u=a,l=e[++s];r=su(r,u+": "+l+";")}}n?t.styles=r:t.stylesWithoutHost=r,n?t.classes=i:t.classesWithoutHost=i}function $i(t,e=q.Default){let n=yt();if(n===null)return lt(t,e);let r=_r();return df(r,n,ee(t),e)}function Ed(t,e,n,r,i){let o=r===null?null:{"":-1},s=i(t,n);if(s!==null){let a,u=null,l=null,d=b_(s);d===null?a=s:[a,u,l]=d,S_(t,e,n,a,o,u,l)}o!==null&&r!==null&&__(n,r,o)}function __(t,e,n){let r=t.localNames=[];for(let i=0;i<e.length;i+=2){let o=n[e[i+1]];if(o==null)throw new it(-301,!1);r.push(e[i],o)}}function b_(t){let e=null,n=!1;for(let s=0;s<t.length;s++){let a=t[s];if(s===0&&rn(a)&&(e=a),a.findHostDirectiveDefs!==null){n=!0;break}}if(!n)return null;let r=null,i=null,o=null;for(let s of t)s.findHostDirectiveDefs!==null&&(r??=[],i??=new Map,o??=new Map,E_(s,r,o,i)),s===e&&(r??=[],r.push(s));return r!==null?(r.push(...e===null?t:t.slice(1)),[r,i,o]):null}function E_(t,e,n,r){let i=e.length;t.findHostDirectiveDefs(t,e,r),n.set(t,[i,e.length-1])}function w_(t,e,n){e.componentOffset=n,(t.components??=[]).push(e.index)}function S_(t,e,n,r,i,o,s){let a=r.length,u=!1;for(let y=0;y<a;y++){let _=r[y];!u&&rn(_)&&(u=!0,w_(t,n,y)),Ym(af(n,e),t,_.type)}x_(n,t.data.length,a);for(let y=0;y<a;y++){let _=r[y];_.providersResolver&&_.providersResolver(_)}let l=!1,d=!1,h=Jf(t,e,a,null);a>0&&(n.directiveToIndex=new Map);for(let y=0;y<a;y++){let _=r[y];if(n.mergedAttrs=Qs(n.mergedAttrs,_.hostAttrs),T_(t,n,e,h,_),O_(h,_,i),s!==null&&s.has(_)){let[T,A]=s.get(_);n.directiveToIndex.set(_.type,[h,T+n.directiveStart,A+n.directiveStart])}else(o===null||!o.has(_))&&n.directiveToIndex.set(_.type,h);_.contentQueries!==null&&(n.flags|=4),(_.hostBindings!==null||_.hostAttrs!==null||_.hostVars!==0)&&(n.flags|=64);let w=_.type.prototype;!l&&(w.ngOnChanges||w.ngOnInit||w.ngDoCheck)&&((t.preOrderHooks??=[]).push(n.index),l=!0),!d&&(w.ngOnChanges||w.ngDoCheck)&&((t.preOrderCheckHooks??=[]).push(n.index),d=!0),h++}I_(t,n,o)}function I_(t,e,n){for(let r=e.directiveStart;r<e.directiveEnd;r++){let i=t.data[r];if(n===null||!n.has(i))Pu(0,e,i,r),Pu(1,e,i,r),ju(e,r,!1);else{let o=n.get(i);Mu(0,e,o,r),Mu(1,e,o,r),ju(e,r,!0)}}}function Pu(t,e,n,r){let i=t===0?n.inputs:n.outputs;for(let o in i)if(i.hasOwnProperty(o)){let s;t===0?s=e.inputs??={}:s=e.outputs??={},s[o]??=[],s[o].push(r),wd(e,o)}}function Mu(t,e,n,r){let i=t===0?n.inputs:n.outputs;for(let o in i)if(i.hasOwnProperty(o)){let s=i[o],a;t===0?a=e.hostDirectiveInputs??={}:a=e.hostDirectiveOutputs??={},a[s]??=[],a[s].push(r,o),wd(e,s)}}function wd(t,e){e==="class"?t.flags|=8:e==="style"&&(t.flags|=16)}function ju(t,e,n){let{attrs:r,inputs:i,hostDirectiveInputs:o}=t;if(r===null||!n&&i===null||n&&o===null||oa(t)){t.initialInputs??=[],t.initialInputs.push(null);return}let s=null,a=0;for(;a<r.length;){let u=r[a];if(u===0){a+=4;continue}else if(u===5){a+=2;continue}else if(typeof u=="number")break;if(!n&&i.hasOwnProperty(u)){let l=i[u];for(let d of l)if(d===e){s??=[],s.push(u,r[a+1]);break}}else if(n&&o.hasOwnProperty(u)){let l=o[u];for(let d=0;d<l.length;d+=2)if(l[d]===e){s??=[],s.push(l[d+1],r[a+1]);break}}a+=2}t.initialInputs??=[],t.initialInputs.push(s)}function T_(t,e,n,r,i){t.data[r]=i;let o=i.factory||(i.factory=Tn(i.type,!0)),s=new Zs(o,rn(i),$i);t.blueprint[r]=s,n[r]=s,C_(t,e,r,Jf(t,n,i.hostVars,Me),i)}function C_(t,e,n,r,i){let o=i.hostBindings;if(o){let s=t.hostBindingOpCodes;s===null&&(s=t.hostBindingOpCodes=[]);let a=~e.index;N_(s)!=a&&s.push(a),s.push(n,r,o)}}function N_(t){let e=t.length;for(;e>0;){let n=t[--e];if(typeof n=="number"&&n<0)return n}return 0}function O_(t,e,n){if(n){if(e.exportAs)for(let r=0;r<e.exportAs.length;r++)n[e.exportAs[r]]=t;rn(e)&&(n[""]=t)}}function x_(t,e,n){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+n,t.providerIndexes=e}function Sd(t,e,n,r,i,o,s,a){let u=e.consts,l=xn(u,s),d=Bi(e,t,2,r,l);return o&&Ed(e,n,d,xn(u,a),i),d.mergedAttrs=Qs(d.mergedAttrs,d.attrs),d.attrs!==null&&Lu(d,d.attrs,!1),d.mergedAttrs!==null&&Lu(d,d.mergedAttrs,!0),e.queries!==null&&e.queries.elementStart(e,d),d}function Id(t,e){nf(t,e),Pc(e)&&t.queries.elementEnd(e)}var D_=class extends Ir{ngModule;constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){let e=Di(t);return new M_(e,this.ngModule)}};function k_(t){return Object.keys(t).map(e=>{let[n,r,i]=t[e],o={propName:n,templateName:e,isSignal:(r&Ui.SignalBased)!==0};return i&&(o.transform=i),o})}function A_(t){return Object.keys(t).map(e=>({propName:t[e],templateName:e}))}function R_(t,e,n){let r=e instanceof nr?e:e?.injector;return r&&t.getStandaloneInjector!==null&&(r=t.getStandaloneInjector(r)||r),r?new Bm(n,r):n}function L_(t){let e=t.get(Ea,null);if(e===null)throw new it(407,!1);let n=t.get(y_,null),r=t.get(br,null);return{rendererFactory:e,sanitizer:n,changeDetectionScheduler:r}}function P_(t,e){let n=(t.selectors[0][0]||"div").toLowerCase();return Kf(e,n,n==="svg"?dm:n==="math"?hm:null)}var M_=class extends bd{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;get inputs(){return k_(this.componentDef.inputs)}get outputs(){return A_(this.componentDef.outputs)}constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=dy(t.selectors),this.ngContentSelectors=t.ngContentSelectors??[],this.isBoundToModule=!!e}create(t,e,n,r){dt(22);let i=et(null);try{let o=this.componentDef,s=n?["ng-version","19.2.0"]:hy(this.componentDef.selectors[0]),a=sa(0,null,null,1,0,null,null,null,null,[s],null),u=R_(o,r||this.ngModule,t),l=L_(u),d=l.rendererFactory.createRenderer(null,o),h=n?wy(d,n,o.encapsulation,u):P_(o,d),y=aa(null,a,null,512|Xf(o),null,null,l,d,u,null,jf(h,u,!0));y[Lt]=h,qs(y);let _=null;try{let w=Sd(Lt,a,y,"#host",()=>[this.componentDef],!0,0);h&&(Qf(d,h,w),wr(h,y)),ua(a,y,w),Ff(a,w,y),Id(a,w),e!==void 0&&V_(w,this.ngContentSelectors,e),_=Ge(w.index,y),y[kt]=_[kt],ca(a,y,null)}catch(w){throw _!==null&&Bo(_),Bo(y),w}finally{dt(23),Ws()}return new j_(this.componentType,y)}finally{et(i)}}},j_=class extends m_{_rootLView;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(t,e){super(),this._rootLView=e,this._tNode=$s(e[K],Lt),this.location=Sf(this._tNode,e),this.instance=Ge(this._tNode.index,e)[kt],this.hostView=this.changeDetectorRef=new f_(e,void 0,!1),this.componentType=t}setInput(t,e){let n=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),e))return;let r=this._rootLView,i=la(n,r[K],r,t,e);this.previousInputValues.set(t,e);let o=Ge(n.index,r);md(o,1)}get injector(){return new pf(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}};function V_(t,e,n){let r=t.projection=[];for(let i=0;i<e.length;i++){let o=n[i];r.push(o!=null&&o.length?Array.from(o):null)}}var F_=()=>!1;function U_(t,e,n){return F_(t,e,n)}var Ko=class{},Td=class extends Ko{injector;componentFactoryResolver=new D_(this);instance=null;constructor(t){super();let e=new Bs([...t.providers,{provide:Ko,useValue:this},{provide:Ir,useValue:this.componentFactoryResolver}],t.parent||Hs(),t.debugName,new Set(["environment"]));this.injector=e,t.runEnvironmentInitializers&&e.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function H_(t,e,n=null){return new Td({providers:t,parent:e,debugName:n,runEnvironmentInitializers:!0}).injector}var B_=(()=>{class t{_injector;cachedInjectors=new Map;constructor(n){this._injector=n}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=xc(!1,n.type),i=r.length>0?H_([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,i)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=Et({token:t,providedIn:"environment",factory:()=>new t(lt(nr))})}return t})();function $_(t){return Eg(()=>{let e=Y_(t),n=ht(C({},e),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===Cf.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&t.dependencies||null,getStandaloneInjector:e.standalone?i=>i.get(B_).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||ge.Emulated,styles:t.styles||ze,_:null,schemas:t.schemas||null,tView:null,id:""});e.standalone&&Vi("NgStandalone"),K_(n);let r=t.dependencies;return n.directiveDefs=Vu(r,!1),n.pipeDefs=Vu(r,!0),n.id=Z_(n),n})}function z_(t){return Di(t)||Nc(t)}function G_(t){return t!==null}function q_(t,e){if(t==null)return Cn;let n={};for(let r in t)if(t.hasOwnProperty(r)){let i=t[r],o,s,a,u;Array.isArray(i)?(a=i[0],o=i[1],s=i[2]??o,u=i[3]||null):(o=i,s=i,a=Ui.None,u=null),n[o]=[r,a,u],e[o]=s}return n}function W_(t){if(t==null)return Cn;let e={};for(let n in t)t.hasOwnProperty(n)&&(e[t[n]]=n);return e}function wa(t){return{type:t.type,name:t.name,factory:null,pure:t.pure!==!1,standalone:t.standalone??!0,onDestroy:t.type.prototype.ngOnDestroy||null}}function Y_(t){let e={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputConfig:t.inputs||Cn,exportAs:t.exportAs||null,standalone:t.standalone??!0,signals:t.signals===!0,selectors:t.selectors||ze,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:q_(t.inputs,e),outputs:W_(t.outputs),debugInfo:null}}function K_(t){t.features?.forEach(e=>e(t))}function Vu(t,e){if(!t)return null;let n=e?Oc:z_;return()=>(typeof t=="function"?t():t).map(r=>n(r)).filter(G_)}function Z_(t){let e=0,n=typeof t.consts=="function"?"":t.consts,r=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,n,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery];for(let i of r.join("|"))e=Math.imul(31,e)+i.charCodeAt(0)<<0;return e+=2147483648,"c"+e}function Cd(t,e,n){return t[e]=n}function Re(t,e,n){let r=t[e];return Object.is(r,n)?!1:(t[e]=n,!0)}function Q_(t,e,n,r){let i=Re(t,e,n);return Re(t,e+1,r)||i}function X_(t,e,n,r,i,o,s,a,u){let l=e.consts,d=Bi(e,t,4,s||null,a||null);zc()&&Ed(e,n,d,xn(l,u),id),d.mergedAttrs=Qs(d.mergedAttrs,d.attrs),nf(e,d);let h=d.tView=sa(2,d,r,i,o,e.directiveRegistry,e.pipeRegistry,null,e.schemas,l,null);return e.queries!==null&&(e.queries.template(e,d),h.queries=e.queries.embeddedTView(d)),d}function Zo(t,e,n,r,i,o,s,a,u,l){let d=n+Lt,h=e.firstCreatePass?X_(d,e,t,r,i,o,s,a,u):e.data[d];jn(h,!1);let y=J_(e,t,h,n);Ys()&&ma(e,t,y,h),wr(y,t);let _=l_(y,t,y,h);return t[d]=_,td(t,_),U_(_,h,t),Mc(h)&&ua(e,t,h),u!=null&&rd(t,h,l),h}function Nd(t,e,n,r,i,o,s,a){let u=yt(),l=fe(),d=xn(l.consts,o);return Zo(u,l,t,e,n,r,i,d,s,a),Nd}var J_=tb;function tb(t,e,n,r){return Ks(!0),e[Gt].createComment("")}var eb=new ct(""),nb=(()=>{class t{static \u0275prov=Et({token:t,providedIn:"root",factory:()=>new rb})}return t})(),rb=class{queuedEffectCount=0;queues=new Map;schedule(t){this.enqueue(t)}remove(t){let e=t.zone,n=this.queues.get(e);n.has(t)&&(n.delete(t),this.queuedEffectCount--)}enqueue(t){let e=t.zone;this.queues.has(e)||this.queues.set(e,new Set);let n=this.queues.get(e);n.has(t)||(this.queuedEffectCount++,n.add(t))}flush(){for(;this.queuedEffectCount>0;)for(let[t,e]of this.queues)t===null?this.flushQueue(e):t.run(()=>this.flushQueue(e))}flushQueue(t){for(let e of t)t.delete(e),this.queuedEffectCount--,e.run()}};function Od(t){return!!t&&typeof t.then=="function"}function ib(t){return!!t&&typeof t.subscribe=="function"}var ob=new ct(""),xd=(()=>{class t{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=at(ob,{optional:!0})??[];injector=at(Mi);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let i of this.appInits){let o=Ac(this.injector,i);if(Od(o))n.push(o);else if(ib(o)){let s=new Promise((a,u)=>{o.subscribe({complete:a,error:u})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(i=>{this.reject(i)}),n.length===0&&r(),this.initialized=!0}static \u0275fac=function(n){return new(n||t)};static \u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),sb=new ct("");function ab(){Np(()=>{throw new it(600,!1)})}function ub(t){return t.isBoundToModule}var lb=10,Dn=(()=>{class t{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=at(fv);afterRenderManager=at(wv);zonelessEnabled=at(Xs);rootEffectScheduler=at(nb);dirtyFlags=0;tracingSnapshot=null;externalTestViews=new Set;afterTick=new mr;get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];isStable=at(ji).hasPendingTasks.pipe(pc(n=>!n));constructor(){at(ra,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:i=>{i&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=at(nr);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){dt(10);let i=n instanceof bd;if(!this._injector.get(xd).done){let h=!i&&Gg(n),y=!1;throw new it(405,y)}let o;i?o=n:o=this._injector.get(Ir).resolveComponentFactory(n),this.componentTypes.push(o.componentType);let s=ub(o)?void 0:this._injector.get(Ko),a=r||o.selector,u=o.create(Mi.NULL,[],a,s),l=u.location.nativeElement,d=u.injector.get(eb,null);return d?.registerApplication(l),u.onDestroy(()=>{this.detachView(u.hostView),ti(this.components,u),d?.unregisterApplication(l)}),this._loadComponent(u),dt(11,u),u}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){dt(12),this.tracingSnapshot!==null?this.tracingSnapshot.run(Mf.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw new it(101,!1);let n=et(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,et(n),this.afterTick.next(),dt(13)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(Ea,null,{optional:!0}));let n=0;for(;this.dirtyFlags!==0&&n++<lb;)dt(14),this.synchronizeOnce(),dt(15)}synchronizeOnce(){if(this.dirtyFlags&16&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush()),this.dirtyFlags&7){let n=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:r,notifyErrorHandler:i}of this.allViews)cb(r,i,n,this.zonelessEnabled);if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&23)return}else this._rendererFactory?.begin?.(),this._rendererFactory?.end?.();this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:n})=>Ri(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;ti(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(sb,[]).forEach(r=>r(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>ti(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new it(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(n){return new(n||t)};static \u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function ti(t,e){let n=t.indexOf(e);n>-1&&t.splice(n,1)}function cb(t,e,n,r){!n&&!Ri(t)||dd(t,e,n&&!r?0:1)}function fb(t,e,n,r){return Re(t,Pi(),n)?e+Oi(n)+r:Me}function Hr(t,e){return t<<17|e<<2}function Ye(t){return t>>17&32767}function db(t){return(t&2)==2}function hb(t,e){return t&131071|e<<17}function Qo(t){return t|2}function kn(t){return(t&131068)>>2}function po(t,e){return t&-131069|e<<2}function pb(t){return(t&1)===1}function Xo(t){return t|1}function gb(t,e,n,r,i,o){let s=o?e.classBindings:e.styleBindings,a=Ye(s),u=kn(s);t[r]=n;let l=!1,d;if(Array.isArray(n)){let h=n;d=h[1],(d===null||vr(h,d)>0)&&(l=!0)}else d=n;if(i)if(u!==0){let h=Ye(t[a+1]);t[r+1]=Hr(h,a),h!==0&&(t[h+1]=po(t[h+1],r)),t[a+1]=hb(t[a+1],r)}else t[r+1]=Hr(a,0),a!==0&&(t[a+1]=po(t[a+1],r)),a=r;else t[r+1]=Hr(u,0),a===0?a=r:t[u+1]=po(t[u+1],r),u=r;l&&(t[r+1]=Qo(t[r+1])),Fu(t,d,r,!0),Fu(t,d,r,!1),mb(e,d,t,r,o),s=Hr(a,u),o?e.classBindings=s:e.styleBindings=s}function mb(t,e,n,r,i){let o=i?t.residualClasses:t.residualStyles;o!=null&&typeof e=="string"&&vr(o,e)>=0&&(n[r+1]=Xo(n[r+1]))}function Fu(t,e,n,r){let i=t[n+1],o=e===null,s=r?Ye(i):kn(i),a=!1;for(;s!==0&&(a===!1||o);){let u=t[s],l=t[s+1];vb(u,e)&&(a=!0,t[s+1]=r?Xo(l):Qo(l)),s=r?Ye(l):kn(l)}a&&(t[n+1]=r?Qo(i):Xo(i))}function vb(t,e){return t===null||e==null||(Array.isArray(t)?t[1]:t)===e?!0:Array.isArray(t)&&typeof e=="string"?vr(t,e)>=0:!1}function vi(t,e,n){let r=yt(),i=Pi();if(Re(r,i,e)){let o=fe(),s=Am();Cy(o,s,r,t,e,r[Gt],n,!1)}return vi}function Uu(t,e,n,r,i){la(e,t,n,i?"class":"style",r)}function Sa(t,e,n){return yb(t,e,n,!1),Sa}function yb(t,e,n,r){let i=yt(),o=fe(),s=Tm(2);if(o.firstUpdatePass&&bb(o,t,s,r),e!==Me&&Re(i,s,e)){let a=o.data[sn()];Tb(o,a,i,i[Gt],t,i[s+1]=Cb(e,n),r,s)}}function _b(t,e){return e>=t.expandoStartIndex}function bb(t,e,n,r){let i=t.data;if(i[n+1]===null){let o=i[sn()],s=_b(t,n);Nb(o,r)&&e===null&&!s&&(e=!1),e=Eb(i,o,e,r),gb(i,o,e,n,s,r)}}function Eb(t,e,n,r){let i=xm(t),o=r?e.residualClasses:e.residualStyles;if(i===null)(r?e.classBindings:e.styleBindings)===0&&(n=go(null,t,e,n,r),n=ar(n,e.attrs,r),o=null);else{let s=e.directiveStylingLast;if(s===-1||t[s]!==i)if(n=go(i,t,e,n,r),o===null){let a=wb(t,e,r);a!==void 0&&Array.isArray(a)&&(a=go(null,t,e,a[1],r),a=ar(a,e.attrs,r),Sb(t,e,r,a))}else o=Ib(t,e,r)}return o!==void 0&&(r?e.residualClasses=o:e.residualStyles=o),n}function wb(t,e,n){let r=n?e.classBindings:e.styleBindings;if(kn(r)!==0)return t[Ye(r)]}function Sb(t,e,n,r){let i=n?e.classBindings:e.styleBindings;t[Ye(i)]=r}function Ib(t,e,n){let r,i=e.directiveEnd;for(let o=1+e.directiveStylingLast;o<i;o++){let s=t[o].hostAttrs;r=ar(r,s,n)}return ar(r,e.attrs,n)}function go(t,e,n,r,i){let o=null,s=n.directiveEnd,a=n.directiveStylingLast;for(a===-1?a=n.directiveStart:a++;a<s&&(o=e[a],r=ar(r,o.hostAttrs,i),o!==t);)a++;return t!==null&&(n.directiveStylingLast=a),r}function ar(t,e,n){let r=n?1:2,i=-1;if(e!==null)for(let o=0;o<e.length;o++){let s=e[o];typeof s=="number"?i=s:i===r&&(Array.isArray(t)||(t=t===void 0?[]:["",t]),$g(t,s,n?!0:e[++o]))}return t===void 0?null:t}function Tb(t,e,n,r,i,o,s,a){if(!(e.type&3))return;let u=t.data,l=u[a+1],d=pb(l)?Hu(u,e,n,i,kn(l),s):void 0;if(!yi(d)){yi(o)||db(l)&&(o=Hu(u,null,n,i,a,s));let h=Uc(sn(),n);Ky(r,s,h,i,o)}}function Hu(t,e,n,r,i,o){let s=e===null,a;for(;i>0;){let u=t[i],l=Array.isArray(u),d=l?u[1]:u,h=d===null,y=n[i+1];y===Me&&(y=h?ze:void 0);let _=h?io(y,r):d===r?y:void 0;if(l&&!yi(_)&&(_=io(u,r)),yi(_)&&(a=_,s))return a;let w=t[i+1];i=s?Ye(w):kn(w)}if(e!==null){let u=o?e.residualClasses:e.residualStyles;u!=null&&(a=io(u,r))}return a}function yi(t){return t!==void 0}function Cb(t,e){return t==null||t===""||(typeof e=="string"?t=t+e:typeof t=="object"&&(t=re(Ce(t)))),t}function Nb(t,e){return(t.flags&(e?8:16))!==0}var Ob=class{destroy(t){}updateValue(t,e){}swap(t,e){let n=Math.min(t,e),r=Math.max(t,e),i=this.detach(r);if(r-n>1){let o=this.detach(n);this.attach(n,i),this.attach(r,o)}else this.attach(n,i)}move(t,e){this.attach(e,this.detach(t))}};function mo(t,e,n,r,i){return t===n&&Object.is(e,r)?1:Object.is(i(t,e),i(n,r))?-1:0}function xb(t,e,n){let r,i,o=0,s=t.length-1,a;if(Array.isArray(e)){let u=e.length-1;for(;o<=s&&o<=u;){let l=t.at(o),d=e[o],h=mo(o,l,o,d,n);if(h!==0){h<0&&t.updateValue(o,d),o++;continue}let y=t.at(s),_=e[u],w=mo(s,y,u,_,n);if(w!==0){w<0&&t.updateValue(s,_),s--,u--;continue}let T=n(o,l),A=n(s,y),R=n(o,d);if(Object.is(R,A)){let Q=n(u,_);Object.is(Q,T)?(t.swap(o,s),t.updateValue(s,_),u--,s--):t.move(s,o),t.updateValue(o,d),o++;continue}if(r??=new zu,i??=$u(t,o,s,n),Jo(t,r,o,R))t.updateValue(o,d),o++,s++;else if(i.has(R))r.set(T,t.detach(o)),s--;else{let Q=t.create(o,e[o]);t.attach(o,Q),o++,s++}}for(;o<=u;)Bu(t,r,n,o,e[o]),o++}else if(e!=null){let u=e[Symbol.iterator](),l=u.next();for(;!l.done&&o<=s;){let d=t.at(o),h=l.value,y=mo(o,d,o,h,n);if(y!==0)y<0&&t.updateValue(o,h),o++,l=u.next();else{r??=new zu,i??=$u(t,o,s,n);let _=n(o,h);if(Jo(t,r,o,_))t.updateValue(o,h),o++,s++,l=u.next();else if(!i.has(_))t.attach(o,t.create(o,h)),o++,s++,l=u.next();else{let w=n(o,d);r.set(w,t.detach(o)),s--}}}for(;!l.done;)Bu(t,r,n,t.length,l.value),l=u.next()}for(;o<=s;)t.destroy(t.detach(s--));r?.forEach(u=>{t.destroy(u)})}function Jo(t,e,n,r){return e!==void 0&&e.has(r)?(t.attach(n,e.get(r)),e.delete(r),!0):!1}function Bu(t,e,n,r,i){if(Jo(t,e,r,n(r,i)))t.updateValue(r,i);else{let o=t.create(r,i);t.attach(r,o)}}function $u(t,e,n,r){let i=new Set;for(let o=e;o<=n;o++)i.add(r(o,t.at(o)));return i}var zu=class{kvMap=new Map;_vMap=void 0;has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;let e=this.kvMap.get(t);return this._vMap!==void 0&&this._vMap.has(e)?(this.kvMap.set(t,this._vMap.get(e)),this._vMap.delete(e)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,e){if(this.kvMap.has(t)){let n=this.kvMap.get(t);this._vMap===void 0&&(this._vMap=new Map);let r=this._vMap;for(;r.has(n);)n=r.get(n);r.set(n,e)}else this.kvMap.set(t,e)}forEach(t){for(let[e,n]of this.kvMap)if(t(n,e),this._vMap!==void 0){let r=this._vMap;for(;r.has(n);)n=r.get(n),t(n,e)}}};function Db(t,e){Vi("NgControlFlow");let n=yt(),r=Pi(),i=n[r]!==Me?n[r]:-1,o=i!==-1?_i(n,Lt+i):void 0,s=0;if(Re(n,r,t)){let a=et(null);try{if(o!==void 0&&yd(o,s),t!==-1){let u=Lt+t,l=_i(n,u),d=ts(n[K],u),h=ba(l,d.tView.ssrId),y=fa(n,d,e,{dehydratedView:h});ya(l,y,s,da(d,h))}}finally{et(a)}}else if(o!==void 0){let a=vd(o,s);a!==void 0&&(a[kt]=e)}}var kb=class{lContainer;$implicit;$index;constructor(t,e,n){this.lContainer=t,this.$implicit=e,this.$index=n}get $count(){return this.lContainer.length-Vt}},Ab=class{hasEmptyBlock;trackByFn;liveCollection;constructor(t,e,n){this.hasEmptyBlock=t,this.trackByFn=e,this.liveCollection=n}};function Rb(t,e,n,r,i,o,s,a,u,l,d,h,y){Vi("NgControlFlow");let _=yt(),w=fe(),T=u!==void 0,A=yt(),R=a?s.bind(A[le][kt]):s,Q=new Ab(T,R);A[Lt+t]=Q,Zo(_,w,t+1,e,n,r,i,xn(w.consts,o)),T&&Zo(_,w,t+2,u,l,d,h,xn(w.consts,y))}var Lb=class extends Ob{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(t,e,n){super(),this.lContainer=t,this.hostLView=e,this.templateTNode=n}get length(){return this.lContainer.length-Vt}at(t){return this.getLView(t)[kt].$implicit}attach(t,e){let n=e[rr];this.needsIndexUpdate||=t!==this.length,ya(this.lContainer,e,t,da(this.templateTNode,n))}detach(t){return this.needsIndexUpdate||=t!==this.length-1,Mb(this.lContainer,t)}create(t,e){let n=ba(this.lContainer,this.templateTNode.tView.ssrId),r=fa(this.hostLView,this.templateTNode,new kb(this.lContainer,e,t),{dehydratedView:n});return this.operationsCounter?.recordCreate(),r}destroy(t){ga(t[K],t),this.operationsCounter?.recordDestroy()}updateValue(t,e){this.getLView(t)[kt].$implicit=e}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t<this.length;t++)this.getLView(t)[kt].$index=t}getLView(t){return jb(this.lContainer,t)}};function Pb(t){let e=et(null),n=sn();try{let r=yt(),i=r[K],o=r[n],s=n+1,a=_i(r,s);if(o.liveCollection===void 0){let l=ts(i,s);o.liveCollection=new Lb(a,r,l)}else o.liveCollection.reset();let u=o.liveCollection;if(xb(u,t,o.trackByFn),u.updateIndexes(),o.hasEmptyBlock){let l=Pi(),d=u.length===0;if(Re(r,l,d)){let h=n+2,y=_i(r,h);if(d){let _=ts(i,h),w=ba(y,_.tView.ssrId),T=fa(r,_,void 0,{dehydratedView:w});ya(y,T,0,da(_,w))}else yd(y,0)}}}finally{et(e)}}function _i(t,e){return t[e]}function Mb(t,e){return _a(t,e)}function jb(t,e){return vd(t,e)}function ts(t,e){return $s(t,e)}function ur(t,e,n,r){let i=yt(),o=fe(),s=Lt+t,a=i[Gt],u=o.firstCreatePass?Sd(s,o,i,e,id,zc(),n,r):o.data[s],l=Vb(o,i,u,a,e,t);i[s]=l;let d=Mc(u);return jn(u,!0),Qf(a,l,u),!od(u)&&Ys()&&ma(o,i,l,u),(mm()===0||d)&&wr(l,i),vm(),d&&(ua(o,i,u),Ff(o,u,i)),r!==null&&rd(i,u),ur}function lr(){let t=_r();qc()?Sm():(t=t.parent,jn(t,!1));let e=t;bm(e)&&Em(),ym();let n=fe();return n.firstCreatePass&&Id(n,e),e.classesWithoutHost!=null&&jm(e)&&Uu(n,e,yt(),e.classesWithoutHost,!0),e.stylesWithoutHost!=null&&Vm(e)&&Uu(n,e,yt(),e.stylesWithoutHost,!1),lr}function cr(t,e,n,r){return ur(t,e,n,r),lr(),cr}var Vb=(t,e,n,r,i,o)=>(Ks(!0),Kf(r,i,Rm())),bi="en-US",Fb=bi;function Ub(t){typeof t=="string"&&(Fb=t.toLowerCase().replace(/_/g,"-"))}function Dd(t=1){return km(t)}function kd(t,e,n,r){n>=t.data.length&&(t.data[n]=null,t.blueprint[n]=null),e[n]=r}function Hb(t,e=""){let n=yt(),r=fe(),i=t+Lt,o=r.firstCreatePass?Bi(r,i,1,e,null):r.data[i],s=Bb(r,n,o,e,t);n[i]=s,Ys()&&ma(r,n,s,o),jn(o,!1)}var Bb=(t,e,n,r,i)=>(Ks(!0),py(e[Gt],r));function Ad(t){return Rd("",t,""),Ad}function Rd(t,e,n){let r=yt(),i=fb(r,t,e,n);return i!==Me&&$b(r,sn(),i),Rd}function $b(t,e,n){let r=Uc(e,t);gy(t[Gt],r,n)}var zb={};function Ld(t){let e=fe(),n=yt(),r=t+Lt,i=Bi(e,r,128,null,null);return jn(i,!1),kd(e,n,r,zb),Ld}function Pd(t,e){let n=t[e];return n===Me?void 0:n}function Gb(t,e,n,r,i,o){let s=e+n;return Re(t,s,i)?Cd(t,s+1,o?r.call(o,i):r(i)):Pd(t,s+1)}function qb(t,e,n,r,i,o,s){let a=e+n;return Q_(t,a,i,o)?Cd(t,a+2,s?r.call(s,i,o):r(i,o)):Pd(t,a+2)}function Ei(t,e){let n=fe(),r,i=t+Lt;n.firstCreatePass?(r=Wb(e,n.pipeRegistry),n.data[i]=r,r.onDestroy&&(n.destroyHooks??=[]).push(i,r.onDestroy)):r=n.data[i];let o=r.factory||(r.factory=Tn(r.type,!0)),s,a=jt($i);try{let u=hi(!1),l=o();return hi(u),kd(n,yt(),i,l),l}finally{jt(a)}}function Wb(t,e){if(e)for(let n=e.length-1;n>=0;n--){let r=e[n];if(t===r.name)return r}}function es(t,e,n){let r=t+Lt,i=yt(),o=Hc(i,r);return Md(i,r)?Gb(i,Yc(),e,o.transform,n,o):o.transform(n)}function Yb(t,e,n,r){let i=t+Lt,o=yt(),s=Hc(o,i);return Md(o,i)?qb(o,Yc(),e,s.transform,n,r,s):s.transform(n,r)}function Md(t,e){return t[K].data[e].pure}var Kb=(()=>{class t{zone=at($t);changeDetectionScheduler=at(br);applicationRef=at(Dn);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Zb({ngZoneFactory:t,ignoreChangesOutsideZone:e,scheduleInRootZone:n}){return t??=()=>new $t(ht(C({},Qb()),{scheduleInRootZone:n})),[{provide:$t,useFactory:t},{provide:li,multi:!0,useFactory:()=>{let r=at(Kb,{optional:!0});return()=>r.initialize()}},{provide:li,multi:!0,useFactory:()=>{let r=at(Xb);return()=>{r.initialize()}}},e===!0?{provide:_f,useValue:!0}:[],{provide:Js,useValue:n??vf}]}function Qb(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var Xb=(()=>{class t{subscription=new ve;initialized=!1;zone=at($t);pendingTasks=at(ji);initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{$t.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{$t.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),jd=(()=>{class t{appRef=at(Dn);taskService=at(ji);ngZone=at($t);zonelessEnabled=at(Xs);tracing=at(ra,{optional:!0});disableScheduling=at(_f,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new ve;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(gi):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(at(Js,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof Ef||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;let r=!1;switch(n){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 6:{this.appRef.dirtyFlags|=2,r=!0;break}case 12:{this.appRef.dirtyFlags|=16,r=!0;break}case 13:{this.appRef.dirtyFlags|=2,r=!0;break}case 11:{r=!0;break}case 9:case 8:case 7:case 10:default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick(r))return;let i=this.useMicrotaskScheduler?Eu:bf;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>i(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>i(()=>this.tick()))}shouldScheduleTick(n){return!(this.disableScheduling&&!n||this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(gi+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){throw this.taskService.remove(n),r}finally{this.cleanup()}this.useMicrotaskScheduler=!0,Eu(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static \u0275fac=function(n){return new(n||t)};static \u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Jb(){return Vi("NgZoneless"),qg([{provide:br,useExisting:jd},{provide:$t,useClass:Ef},{provide:Xs,useValue:!0},{provide:Js,useValue:!1},[]])}function tE(){return typeof $localize<"u"&&$localize.locale||bi}var Vd=new ct("",{providedIn:"root",factory:()=>at(Vd,q.Optional|q.SkipSelf)||tE()}),ns=new ct(""),eE=new ct("");function Wn(t){return!t.moduleRef}function nE(t){let e=Wn(t)?t.r3Injector:t.moduleRef.injector,n=e.get($t);return n.run(()=>{Wn(t)?t.r3Injector.resolveInjectorInitializers():t.moduleRef.resolveInjectorInitializers();let r=e.get(Er,null),i;if(n.runOutsideAngular(()=>{i=n.onError.subscribe({next:o=>{r.handleError(o)}})}),Wn(t)){let o=()=>e.destroy(),s=t.platformInjector.get(ns);s.add(o),e.onDestroy(()=>{i.unsubscribe(),s.delete(o)})}else{let o=()=>t.moduleRef.destroy(),s=t.platformInjector.get(ns);s.add(o),t.moduleRef.onDestroy(()=>{ti(t.allPlatformModules,t.moduleRef),i.unsubscribe(),s.delete(o)})}return iE(r,n,()=>{let o=e.get(xd);return o.runInitializers(),o.donePromise.then(()=>{let s=e.get(Vd,bi);if(Ub(s||bi),!e.get(eE,!0))return Wn(t)?e.get(Dn):(t.allPlatformModules.push(t.moduleRef),t.moduleRef);if(Wn(t)){let a=e.get(Dn);return t.rootComponent!==void 0&&a.bootstrap(t.rootComponent),a}else return rE(t.moduleRef,t.allPlatformModules),t.moduleRef})})})}function rE(t,e){let n=t.injector.get(Dn);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(r=>n.bootstrap(r));else if(t.instance.ngDoBootstrap)t.instance.ngDoBootstrap(n);else throw new it(-403,!1);e.push(t)}function iE(t,e,n){try{let r=n();return Od(r)?r.catch(i=>{throw e.runOutsideAngular(()=>t.handleError(i)),i}):r}catch(r){throw e.runOutsideAngular(()=>t.handleError(r)),r}}var ei=null;function oE(t=[],e){return Mi.create({name:e,providers:[{provide:Us,useValue:"platform"},{provide:ns,useValue:new Set([()=>ei=null])},...t]})}function sE(t=[]){if(ei)return ei;let e=oE(t);return ei=e,ab(),aE(e),e}function aE(t){let e=t.get(Rf,null);Ac(t,()=>{e?.forEach(n=>n())})}function uE(t){dt(8);try{let{rootComponent:e,appProviders:n,platformProviders:r}=t,i=sE(r),o=[Zb({}),{provide:br,useExisting:jd},...n||[]],s=new Td({providers:o,parent:i,debugName:"",runEnvironmentInitializers:!1});return nE({r3Injector:s.injector,platformInjector:i,rootComponent:e})}catch(e){return Promise.reject(e)}finally{dt(9)}}var V1=class{[Oe];constructor(t){this[Oe]=t}destroy(){this[Oe].destroy()}},lE={schedule(t,e){let n=setTimeout(t,e);return()=>clearTimeout(n)}};function cE(t){return t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}function fE(t){return!!t&&t.nodeType===Node.ELEMENT_NODE}var vo;function dE(t,e){if(!vo){let n=Element.prototype;vo=n.matches||n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}return t.nodeType===Node.ELEMENT_NODE?vo.call(t,e):!1}function hE(t){let e={};return t.forEach(({propName:n,templateName:r,transform:i})=>{e[cE(r)]=[n,i]}),e}function pE(t,e){return e.get(Ir).resolveComponentFactory(t).inputs}function gE(t,e){let n=t.childNodes,r=e.map(()=>[]),i=-1;e.some((o,s)=>o==="*"?(i=s,!0):!1);for(let o=0,s=n.length;o<s;++o){let a=n[o],u=mE(a,e,i);u!==-1&&r[u].push(a)}return r}function mE(t,e,n){let r=n;return fE(t)&&e.some((i,o)=>i!=="*"&&dE(t,i)?(r=o,!0):!1),r}var vE=10,yE=class{componentFactory;inputMap=new Map;constructor(t,e){this.componentFactory=e.get(Ir).resolveComponentFactory(t);for(let n of this.componentFactory.inputs)this.inputMap.set(n.propName,n.templateName)}create(t){return new _E(this.componentFactory,t,this.inputMap)}},_E=class{componentFactory;injector;inputMap;eventEmitters=new Yp(1);events=this.eventEmitters.pipe(_g(t=>yg(...t)));componentRef=null;scheduledDestroyFn=null;initialInputValues=new Map;ngZone;elementZone;appRef;cdScheduler;constructor(t,e,n){this.componentFactory=t,this.injector=e,this.inputMap=n,this.ngZone=this.injector.get($t),this.appRef=this.injector.get(Dn),this.cdScheduler=e.get(br),this.elementZone=typeof Zone>"u"?null:this.ngZone.run(()=>Zone.current)}connect(t){this.runInZone(()=>{if(this.scheduledDestroyFn!==null){this.scheduledDestroyFn(),this.scheduledDestroyFn=null;return}this.componentRef===null&&this.initializeComponent(t)})}disconnect(){this.runInZone(()=>{this.componentRef===null||this.scheduledDestroyFn!==null||(this.scheduledDestroyFn=lE.schedule(()=>{this.componentRef!==null&&(this.componentRef.destroy(),this.componentRef=null)},vE))})}getInputValue(t){return this.runInZone(()=>this.componentRef===null?this.initialInputValues.get(t):this.componentRef.instance[t])}setInputValue(t,e){if(this.componentRef===null){this.initialInputValues.set(t,e);return}this.runInZone(()=>{this.componentRef.setInput(this.inputMap.get(t)??t,e),this.componentRef.hostView.dirty&&(this.componentRef.changeDetectorRef.markForRefresh(),this.cdScheduler.notify(6))})}initializeComponent(t){let e=Mi.create({providers:[],parent:this.injector}),n=gE(t,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(e,n,t),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.appRef.attachView(this.componentRef.hostView),this.componentRef.hostView.detectChanges()}initializeInputs(){for(let[t,e]of this.initialInputValues)this.setInputValue(t,e);this.initialInputValues.clear()}initializeOutputs(t){let e=this.componentFactory.outputs.map(({propName:n,templateName:r})=>{let i=t.instance[n];return new zt(o=>{let s=i.subscribe(a=>o.next({name:r,value:a}));return()=>s.unsubscribe()})});this.eventEmitters.next(e)}runInZone(t){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(t):t()}},bE=class extends HTMLElement{ngElementEventsSubscription=null};function EE(t,e){let n=pE(t,e.injector),r=e.strategyFactory||new yE(t,e.injector),i=hE(n);class o extends bE{injector;static observedAttributes=Object.keys(i);get ngElementStrategy(){if(!this._ngElementStrategy){let a=this._ngElementStrategy=r.create(this.injector||e.injector);n.forEach(({propName:u,transform:l})=>{if(!this.hasOwnProperty(u))return;let d=this[u];delete this[u],a.setInputValue(u,d,l)})}return this._ngElementStrategy}_ngElementStrategy;constructor(a){super(),this.injector=a}attributeChangedCallback(a,u,l,d){let[h,y]=i[a];this.ngElementStrategy.setInputValue(h,l,y)}connectedCallback(){let a=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),a=!0),this.ngElementStrategy.connect(this),a||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(a=>{let u=new CustomEvent(a.name,{detail:a.value});this.dispatchEvent(u)})}}return n.forEach(({propName:s,transform:a})=>{Object.defineProperty(o.prototype,s,{get(){return this.ngElementStrategy.getInputValue(s)},set(u){this.ngElementStrategy.setInputValue(s,u,a)},configurable:!0,enumerable:!0})}),o}var Fd=null;function Ud(){return Fd}function wE(t){Fd??=t}var SE=class{},Le=new ct("");function IE(t,e){e=encodeURIComponent(e);for(let n of t.split(";")){let r=n.indexOf("="),[i,o]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(i.trim()===e)return decodeURIComponent(o)}return null}var TE="browser",CE="server";function Hd(t){return t===CE}var NE=class{},OE=class extends SE{supportsDOMEvents=!0},xE=class Bd extends OE{static makeCurrent(){wE(new Bd)}onAndCancel(e,n,r,i){return e.addEventListener(n,r,i),()=>{e.removeEventListener(n,r,i)}}dispatchEvent(e,n){e.dispatchEvent(n)}remove(e){e.remove()}createElement(e,n){return n=n||this.getDefaultDocument(),n.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,n){return n==="window"?window:n==="document"?e:n==="body"?e.body:null}getBaseHref(e){let n=DE();return n==null?null:kE(n)}resetBaseElement(){Qn=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return IE(document.cookie,e)}},Qn=null;function DE(){return Qn=Qn||document.querySelector("base"),Qn?Qn.getAttribute("href"):null}function kE(t){return new URL(t,document.baseURI).pathname}var AE=(()=>{class t{build(){return new XMLHttpRequest}static \u0275fac=function(n){return new(n||t)};static \u0275prov=Et({token:t,factory:t.\u0275fac})}return t})(),rs=new ct(""),$d=(()=>{class t{_zone;_plugins;_eventNameToPlugin=new Map;constructor(n,r){this._zone=r,n.forEach(i=>{i.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,i,o){return this._findPluginFor(r).addEventListener(n,r,i,o)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(i=>i.supports(n)),!r)throw new it(5101,!1);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(n){return new(n||t)(lt(rs),lt($t))};static \u0275prov=Et({token:t,factory:t.\u0275fac})}return t})(),zd=class{_doc;constructor(t){this._doc=t}manager},ni="ng-app-id";function Gu(t){for(let e of t)e.remove()}function qu(t,e){let n=e.createElement("style");return n.textContent=t,n}function RE(t,e,n,r){let i=t.head?.querySelectorAll(`style[${ni}="${e}"],link[${ni}="${e}"]`);if(i)for(let o of i)o.removeAttribute(ni),o instanceof HTMLLinkElement?r.set(o.href.slice(o.href.lastIndexOf("/")+1),{usage:0,elements:[o]}):o.textContent&&n.set(o.textContent,{usage:0,elements:[o]})}function is(t,e){let n=e.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",t),n}var Gd=(()=>{class t{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(n,r,i,o={}){this.doc=n,this.appId=r,this.nonce=i,this.isServer=Hd(o),RE(n,r,this.inline,this.external),this.hosts.add(n.head)}addStyles(n,r){for(let i of n)this.addUsage(i,this.inline,qu);r?.forEach(i=>this.addUsage(i,this.external,is))}removeStyles(n,r){for(let i of n)this.removeUsage(i,this.inline);r?.forEach(i=>this.removeUsage(i,this.external))}addUsage(n,r,i){let o=r.get(n);o?o.usage++:r.set(n,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,i(n,this.doc)))})}removeUsage(n,r){let i=r.get(n);i&&(i.usage--,i.usage<=0&&(Gu(i.elements),r.delete(n)))}ngOnDestroy(){for(let[,{elements:n}]of[...this.inline,...this.external])Gu(n);this.hosts.clear()}addHost(n){this.hosts.add(n);for(let[r,{elements:i}]of this.inline)i.push(this.addElement(n,qu(r,this.doc)));for(let[r,{elements:i}]of this.external)i.push(this.addElement(n,is(r,this.doc)))}removeHost(n){this.hosts.delete(n)}addElement(n,r){return this.nonce&&r.setAttribute("nonce",this.nonce),this.isServer&&r.setAttribute(ni,this.appId),n.appendChild(r)}static \u0275fac=function(n){return new(n||t)(lt(Le),lt(Af),lt(Lf,8),lt(na))};static \u0275prov=Et({token:t,factory:t.\u0275fac})}return t})(),yo={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},Ia=/%COMP%/g,qd="%COMP%",LE=`_nghost-${qd}`,PE=`_ngcontent-${qd}`,ME=!0,jE=new ct("",{providedIn:"root",factory:()=>ME});function VE(t){return PE.replace(Ia,t)}function FE(t){return LE.replace(Ia,t)}function Wd(t,e){return e.map(n=>n.replace(Ia,t))}var Wu=(()=>{class t{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(n,r,i,o,s,a,u,l=null,d=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=i,this.removeStylesOnCompDestroy=o,this.doc=s,this.platformId=a,this.ngZone=u,this.nonce=l,this.tracingService=d,this.platformIsServer=Hd(a),this.defaultRenderer=new Ta(n,s,u,this.platformIsServer,this.tracingService)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===ge.ShadowDom&&(r=ht(C({},r),{encapsulation:ge.Emulated}));let i=this.getOrCreateRenderer(n,r);return i instanceof Ku?i.applyToHost(n):i instanceof os&&i.applyStyles(),i}getOrCreateRenderer(n,r){let i=this.rendererByCompId,o=i.get(r.id);if(!o){let s=this.doc,a=this.ngZone,u=this.eventManager,l=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,h=this.platformIsServer,y=this.tracingService;switch(r.encapsulation){case ge.Emulated:o=new Ku(u,l,r,this.appId,d,s,a,h,y);break;case ge.ShadowDom:return new UE(u,l,n,r,s,a,this.nonce,h,y);default:o=new os(u,l,r,d,s,a,h,y);break}i.set(r.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(n){this.rendererByCompId.delete(n)}static \u0275fac=function(n){return new(n||t)(lt($d),lt(Gd),lt(Af),lt(jE),lt(Le),lt(na),lt($t),lt(Lf),lt(ra,8))};static \u0275prov=Et({token:t,factory:t.\u0275fac})}return t})(),Ta=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(t,e,n,r,i){this.eventManager=t,this.doc=e,this.ngZone=n,this.platformIsServer=r,this.tracingService=i}destroy(){}destroyNode=null;createElement(t,e){return e?this.doc.createElementNS(yo[e]||e,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,e){(Yu(t)?t.content:t).appendChild(e)}insertBefore(t,e,n){t&&(Yu(t)?t.content:t).insertBefore(e,n)}removeChild(t,e){e.remove()}selectRootElement(t,e){let n=typeof t=="string"?this.doc.querySelector(t):t;if(!n)throw new it(-5104,!1);return e||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,n,r){if(r){e=r+":"+e;let i=yo[r];i?t.setAttributeNS(i,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){let r=yo[n];r?t.removeAttributeNS(r,e):t.removeAttribute(`${n}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,n,r){r&(He.DashCase|He.Important)?t.style.setProperty(e,n,r&He.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&He.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,n){t!=null&&(t[e]=n)}setValue(t,e){t.nodeValue=e}listen(t,e,n,r){if(typeof t=="string"&&(t=Ud().getGlobalEventTarget(this.doc,t),!t))throw new Error(`Unsupported event target ${t} for event ${e}`);let i=this.decoratePreventDefault(n);return this.tracingService!==null&&this.tracingService.wrapEventListener&&(i=this.tracingService.wrapEventListener(t,e,i)),this.eventManager.addEventListener(t,e,i,r)}decoratePreventDefault(t){return e=>{if(e==="__ngUnwrap__")return t;(this.platformIsServer?this.ngZone.runGuarded(()=>t(e)):t(e))===!1&&e.preventDefault()}}};function Yu(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var UE=class extends Ta{sharedStylesHost;hostEl;shadowRoot;constructor(t,e,n,r,i,o,s,a,u){super(t,i,o,a,u),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let l=r.styles;l=Wd(r.id,l);for(let h of l){let y=document.createElement("style");s&&y.setAttribute("nonce",s),y.textContent=h,this.shadowRoot.appendChild(y)}let d=r.getExternalStyles?.();if(d)for(let h of d){let y=is(h,i);s&&y.setAttribute("nonce",s),this.shadowRoot.appendChild(y)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,e){return super.appendChild(this.nodeOrShadowRoot(t),e)}insertBefore(t,e,n){return super.insertBefore(this.nodeOrShadowRoot(t),e,n)}removeChild(t,e){return super.removeChild(null,e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},os=class extends Ta{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(t,e,n,r,i,o,s,a,u){super(t,i,o,s,a),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=r;let l=n.styles;this.styles=u?Wd(u,l):l,this.styleUrls=n.getExternalStyles?.(u)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},Ku=class extends os{contentAttr;hostAttr;constructor(t,e,n,r,i,o,s,a,u){let l=r+"-"+n.id;super(t,e,n,i,o,s,a,u,l),this.contentAttr=VE(l),this.hostAttr=FE(l)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,e){let n=super.createElement(t,e);return super.setAttribute(n,this.contentAttr,""),n}},HE=(()=>{class t extends zd{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,i,o){return n.addEventListener(r,i,o),()=>this.removeEventListener(n,r,i,o)}removeEventListener(n,r,i,o){return n.removeEventListener(r,i,o)}static \u0275fac=function(n){return new(n||t)(lt(Le))};static \u0275prov=Et({token:t,factory:t.\u0275fac})}return t})(),Zu=["alt","control","meta","shift"],BE={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},$E={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},zE=(()=>{class t extends zd{constructor(n){super(n)}supports(n){return t.parseEventName(n)!=null}addEventListener(n,r,i,o){let s=t.parseEventName(r),a=t.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Ud().onAndCancel(n,s.domEventName,a,o))}static parseEventName(n){let r=n.toLowerCase().split("."),i=r.shift();if(r.length===0||!(i==="keydown"||i==="keyup"))return null;let o=t._normalizeKey(r.pop()),s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),Zu.forEach(l=>{let d=r.indexOf(l);d>-1&&(r.splice(d,1),s+=l+".")}),s+=o,r.length!=0||o.length===0)return null;let u={};return u.domEventName=i,u.fullKey=s,u}static matchEventFullKeyCode(n,r){let i=BE[n.key]||n.key,o="";return r.indexOf("code.")>-1&&(i=n.code,o="code."),i==null||!i?!1:(i=i.toLowerCase(),i===" "?i="space":i==="."&&(i="dot"),Zu.forEach(s=>{if(s!==i){let a=$E[s];a(n)&&(o+=s+".")}}),o+=i,o===r)}static eventCallback(n,r,i){return o=>{t.matchEventFullKeyCode(o,n)&&i.runGuarded(()=>r(o))}}static _normalizeKey(n){return n==="esc"?"escape":n}static \u0275fac=function(n){return new(n||t)(lt(Le))};static \u0275prov=Et({token:t,factory:t.\u0275fac})}return t})();function GE(t){return uE(qE(t))}function qE(t){return{appProviders:[...QE,...t?.providers??[]],platformProviders:ZE}}function WE(){xE.makeCurrent()}function YE(){return new Er}function KE(){return vv(document),document}var ZE=[{provide:na,useValue:TE},{provide:Rf,useValue:WE,multi:!0},{provide:Le,useFactory:KE,deps:[]}],QE=[{provide:Us,useValue:"root"},{provide:Er,useFactory:YE,deps:[]},{provide:rs,useClass:HE,multi:!0,deps:[Le]},{provide:rs,useClass:zE,multi:!0,deps:[Le]},Wu,Gd,$d,{provide:Ea,useExisting:Wu},{provide:NE,useClass:AE,deps:[]},[]],Yd=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=Et({token:t,factory:function(n){let r=null;return n?r=new(n||t):r=lt(XE),r},providedIn:"root"})}return t})(),XE=(()=>{class t extends Yd{_doc;constructor(n){super(),this._doc=n}sanitize(n,r){if(r==null)return null;switch(n){case pe.NONE:return r;case pe.HTML:return Fe(r,"HTML")?Ce(r):Gf(this._doc,String(r)).toString();case pe.STYLE:return Fe(r,"Style")?Ce(r):r;case pe.SCRIPT:if(Fe(r,"Script"))return Ce(r);throw new it(5200,!1);case pe.URL:return Fe(r,"URL")?Ce(r):ia(String(r));case pe.RESOURCE_URL:if(Fe(r,"ResourceURL"))return Ce(r);throw new it(5201,!1);default:throw new it(5202,!1)}}bypassSecurityTrustHtml(n){return Av(n)}bypassSecurityTrustStyle(n){return Rv(n)}bypassSecurityTrustScript(n){return Lv(n)}bypassSecurityTrustUrl(n){return Pv(n)}bypassSecurityTrustResourceUrl(n){return Mv(n)}static \u0275fac=function(n){return new(n||t)(lt(Le))};static \u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ss={apiURL:"http://localhost:3003",debug:!0,mode:"local",styleURL:"http://localhost:8002/styles.css"},Zt=pr(pp()),JE="9.3.35",ri=class as{static SDK_VERSION=JE;static SDK_VERSION_CODE;static SDK="WEB";static LOG_PREFIX="CooeeSDK";static COOEE="cooee";static SESSION_STORAGE_SCROLL_ID="sleid";static IDLE_TIME_IN_SECONDS=30*60;static IN_APP_WRAPPER_NAME="cooee-wrapper";static IN_APP_CONTAINER_NAME="cooee-container";static IN_APP_DEFAULT_PADDING=15;static EVENT_SCREEN_VIEW="CE Screen View";static EVENT_APP_BACKGROUND="CE App Background";static EVENT_TRIGGER_DISPLAYED="CE Trigger Displayed";static EVENT_CAMPAIGN_HOLDOUT="CE Campaign Holdout";static EVENT_CAMPAIGN_REJECTED="CE Campaign Rejected";static EVENT_CAMPAIGN_FAILED="CE Campaign Failed";static EVENT_TRIGGER_CLOSED="CE Trigger Closed";static EVENT_SCROLL="CE Scroll";static EVENT_TRIGGER_CLICKED="CE Trigger Clicked";static EVENT_FORM_SUBMITTED="CE Form Submitted";static EVENT_ADD_TO_CART="Add To Cart";static EVENT_REMOVE_FROM_CART="Remove From Cart";static EVENT_VIEW_ITEM="View Item";static EVENT_VIEW_CART="View Cart";static EVENT_VIEW_COLLECTION="View Collection";static EVENT_BUY_NOW_CLICKED="Buy Now Clicked";static EVENT_CHECKOUT_STARTED="Checkout Started";static EVENT_REVIEW_CLICKED="Review Clicked";static EVENT_ITEM_THUMBNAIL_CLICKED="Item Thumbnail Clicked";static JS_LOAD_WHITELIST_EVENTS=[this.EVENT_VIEW_ITEM,this.EVENT_VIEW_CART,this.EVENT_VIEW_COLLECTION];static HASH_INITIATE_CHECKOUT="initiate-checkout";static HASH_OPEN_CART_DRAWER="open-cart-drawer";static CTA_EVENT="letscooee:outbound:cta";static ADD_BUNDLE_CTA_INBOUND_EVENT="letscooee:inbound:cta:add-bundle";static CTA_OPEN_CART_EVENT="letscooee:outbound:open-cart";static CTA_AFTER_REFRESH_UI="letscooee:outbound:refresh-ui";static POPUP_ACTIVITY_EVENT="letscooee:outbound:popup-activities";static THIRD_PARTY_CHECKOUT_EVENT="letscooee:outbound:third-party-initiate-checkout";static CAMPAIGN_DISPLAYED_ACTIVITY="DISPLAYED";static CAMPAIGN_CLICKED_ACTIVITY="CLICKED";static CAMPAIGN_CLOSED_ACTIVITY="CLOSED";static BLACKLISTED_PAGE_NAMES=["collection","product","cart"];static API_CALL_MAX_ATTEMPTS=3;static API_CALL_RETRY_DELAY=1e3;static PLACEHOLDER_IMAGE="https://cdn.global.letscooee.com/images/placeholders/product.png";static CART_UPDATE_BROADCAST="CART_UPDATE";static GRAPHQL_VERSION="2024-10";static GRAPHQL_API_PATH=`/api/${this.GRAPHQL_VERSION}/graphql.json`;static SHADOW_SPLITTER=":shadow";static CAMPAIGN_ATTRIBUTE="_letscooee_campaign";static CONTENT_ATTRIBUTE="_letscooee_content";static VIA="_via";static PAYMENT_MODAL_DETAILS=[{identifier:"#flo-checkout-wrapper",gateway:"Shopflow"},{identifier:"#fastrr-main-container",gateway:"Shiprocket"},{identifier:"#gokwik-modal-wrapper",gateway:"Gokwik"},{identifier:"#zecpe",gateway:"Ecom 360"}];static{let e=as.SDK_VERSION.split(".").map(n=>n.padStart(2,"0")).join("");as.SDK_VERSION_CODE=parseInt(e,10)}},Qt=class{static log(...t){Zt.default.info(...t)}static debug(...t){Zt.default.debug(...t)}static error(...t){Zt.default.error(...t)}static warn(...t){Zt.default.warn(...t)}static info(...t){Zt.default.info(...t)}static trace(...t){Zt.default.trace(...t)}static configure(t=ri.LOG_PREFIX){Zt.default.useDefaults({formatter:function(n){n.unshift(`${t} (v${ri.SDK_VERSION}):`)}});let e=this.getDebugParam();(e==="1"||e==="on")&&(localStorage.cooeeLogLevel="TRACE"),localStorage.cooeeLogLevel?Zt.default.setLevel(Zt.default[localStorage.cooeeLogLevel]):Zt.default.setLevel(ss.debug?Zt.default.TRACE:Zt.default.OFF)}static getDebugParam(){return new URL(location.href).searchParams?.get("cooee-debug")}static logBrand(){let t=`
3
+ `)}`:"",this.name="UnsubscriptionError",this.errors=e});function ms(t,e){if(t){let n=t.indexOf(e);0<=n&&t.splice(n,1)}}var He=class vs{constructor(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let e;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let o of n)o.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(Wt(r))try{r()}catch(o){e=o instanceof zo?o.errors:[o]}let{_finalizers:i}=this;if(i){this._finalizers=null;for(let o of i)try{fl(o)}catch(s){e=e??[],s instanceof zo?e=[...e,...s.errors]:e.push(s)}}if(e)throw new zo(e)}}add(e){var n;if(e&&e!==this)if(this.closed)fl(e);else{if(e instanceof vs){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(e)}}_hasParent(e){let{_parentage:n}=this;return n===e||Array.isArray(n)&&n.includes(e)}_addParent(e){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(e),n):n?[n,e]:e}_removeParent(e){let{_parentage:n}=this;n===e?this._parentage=null:Array.isArray(n)&&ms(n,e)}remove(e){let{_finalizers:n}=this;n&&ms(n,e),e instanceof vs&&e._removeParent(this)}};He.EMPTY=(()=>{let t=new He;return t.closed=!0,t})();var Nf=He.EMPTY;function xf(t){return t instanceof He||t&&"closed"in t&&Wt(t.remove)&&Wt(t.add)&&Wt(t.unsubscribe)}function fl(t){Wt(t)?t():t.unsubscribe()}var Mn={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Fi={setTimeout(t,e,...n){let{delegate:r}=Fi;return r?.setTimeout?r.setTimeout(t,e,...n):setTimeout(t,e,...n)},clearTimeout(t){let{delegate:e}=Fi;return(e?.clearTimeout||clearTimeout)(t)},delegate:void 0};function Of(t){Fi.setTimeout(()=>{let{onUnhandledError:e}=Mn;if(e)e(t);else throw t})}function hl(){}var xy=Aa("C",void 0,void 0);function Oy(t){return Aa("E",void 0,t)}function Ty(t){return Aa("N",t,void 0)}function Aa(t,e,n){return{kind:t,value:e,error:n}}var _n=null;function Ri(t){if(Mn.useDeprecatedSynchronousErrorHandling){let e=!_n;if(e&&(_n={errorThrown:!1,error:null}),t(),e){let{errorThrown:n,error:r}=_n;if(_n=null,n)throw r}}else t()}function Cy(t){Mn.useDeprecatedSynchronousErrorHandling&&_n&&(_n.errorThrown=!0,_n.error=t)}var Ra=class extends He{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,xf(t)&&t.add(this)):this.destination=Dy}static create(t,e,n){return new bs(t,e,n)}next(t){this.isStopped?Go(Ty(t),this):this._next(t)}error(t){this.isStopped?Go(Oy(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Go(xy,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},Ay=Function.prototype.bind;function qo(t,e){return Ay.call(t,e)}var Ry=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:e}=this;if(e.next)try{e.next(t)}catch(n){gi(n)}}error(t){let{partialObserver:e}=this;if(e.error)try{e.error(t)}catch(n){gi(n)}else gi(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(e){gi(e)}}},bs=class extends Ra{constructor(t,e,n){super();let r;if(Wt(t)||!t)r={next:t??void 0,error:e??void 0,complete:n??void 0};else{let i;this&&Mn.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),r={next:t.next&&qo(t.next,i),error:t.error&&qo(t.error,i),complete:t.complete&&qo(t.complete,i)}):r=t}this.destination=new Ry(r)}};function gi(t){Mn.useDeprecatedSynchronousErrorHandling?Cy(t):Of(t)}function ky(t){throw t}function Go(t,e){let{onStoppedNotification:n}=Mn;n&&Fi.setTimeout(()=>n(t,e))}var Dy={closed:!0,next:hl,error:ky,complete:hl},ka=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Tf(t){return t}function Ly(t){return t.length===0?Tf:t.length===1?t[0]:function(e){return t.reduce((n,r)=>r(n),e)}}var ce=(()=>{class t{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new t;return r.source=this,r.operator=n,r}subscribe(n,r,i){let o=Py(n)?n:new bs(n,r,i);return Ri(()=>{let{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return r=dl(r),new r((i,o)=>{let s=new bs({next:a=>{try{n(a)}catch(u){o(u),s.unsubscribe()}},error:o,complete:i});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[ka](){return this}pipe(...n){return Ly(n)(this)}toPromise(n){return n=dl(n),new n((r,i)=>{let o;this.subscribe(s=>o=s,s=>i(s),()=>r(o))})}}return t.create=e=>new t(e),t})();function dl(t){var e;return(e=t??Mn.Promise)!==null&&e!==void 0?e:Promise}function My(t){return t&&Wt(t.next)&&Wt(t.error)&&Wt(t.complete)}function Py(t){return t&&t instanceof Ra||My(t)&&xf(t)}function jy(t){return Wt(t?.lift)}function Yr(t){return e=>{if(jy(e))return e.lift(function(n){try{return t(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function nr(t,e,n,r,i){return new Uy(t,e,n,r,i)}var Uy=class extends Ra{constructor(t,e,n,r,i,o){super(t),this.onFinalize=i,this.shouldUnsubscribe=o,this._next=e?function(s){try{e(s)}catch(a){t.error(a)}}:super._next,this._error=r?function(s){try{r(s)}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(s){t.error(s)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:e}=this;super.unsubscribe(),!e&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}},By=If(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}),Jr=(()=>{class t extends ce{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new pl(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new By}next(n){Ri(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){Ri(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){Ri(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){let{hasError:r,isStopped:i,observers:o}=this;return r||i?Nf:(this.currentObservers=null,o.push(n),new He(()=>{this.currentObservers=null,ms(o,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:i,isStopped:o}=this;r?n.error(i):o&&n.complete()}asObservable(){let n=new ce;return n.source=this,n}}return t.create=(e,n)=>new pl(e,n),t})(),pl=class extends Jr{constructor(t,e){super(),this.destination=t,this.source=e}next(t){var e,n;(n=(e=this.destination)===null||e===void 0?void 0:e.next)===null||n===void 0||n.call(e,t)}error(t){var e,n;(n=(e=this.destination)===null||e===void 0?void 0:e.error)===null||n===void 0||n.call(e,t)}complete(){var t,e;(e=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||e===void 0||e.call(t)}_subscribe(t){var e,n;return(n=(e=this.source)===null||e===void 0?void 0:e.subscribe(t))!==null&&n!==void 0?n:Nf}},Vy=class extends Jr{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let e=super._subscribe(t);return!e.closed&&t.next(this._value),e}getValue(){let{hasError:t,thrownError:e,_value:n}=this;if(t)throw e;return this._throwIfClosed(),n}next(t){super.next(this._value=t)}},Cf={now(){return(Cf.delegate||Date).now()},delegate:void 0},Fy=class extends Jr{constructor(t=1/0,e=1/0,n=Cf){super(),this._bufferSize=t,this._windowTime=e,this._timestampProvider=n,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,e)}next(t){let{isStopped:e,_buffer:n,_infiniteTimeWindow:r,_timestampProvider:i,_windowTime:o}=this;e||(n.push(t),!r&&n.push(i.now()+o)),this._trimBuffer(),super.next(t)}_subscribe(t){this._throwIfClosed(),this._trimBuffer();let e=this._innerSubscribe(t),{_infiniteTimeWindow:n,_buffer:r}=this,i=r.slice();for(let o=0;o<i.length&&!t.closed;o+=n?1:2)t.next(i[o]);return this._checkFinalizedStatuses(t),e}_trimBuffer(){let{_bufferSize:t,_timestampProvider:e,_buffer:n,_infiniteTimeWindow:r}=this,i=(r?1:2)*t;if(t<1/0&&i<n.length&&n.splice(0,n.length-i),!r){let o=e.now(),s=0;for(let a=1;a<n.length&&n[a]<=o;a+=2)s=a;s&&n.splice(0,s+1)}}},$y=new ce(t=>t.complete());function Hy(t){return t&&Wt(t.schedule)}function Af(t){return t[t.length-1]}function zy(t){return Hy(Af(t))?t.pop():void 0}function qy(t,e){return typeof Af(t)=="number"?t.pop():e}function Gy(t,e,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(h){try{f(r.next(h))}catch(d){s(d)}}function u(h){try{f(r.throw(h))}catch(d){s(d)}}function f(h){h.done?o(h.value):i(h.value).then(a,u)}f((r=r.apply(t,e||[])).next())})}function gl(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Kn(t){return this instanceof Kn?(this.v=t,this):new Kn(t)}function Wy(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(t,e||[]),i,o=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),i[Symbol.asyncIterator]=function(){return this},i;function s(_){return function(w){return Promise.resolve(w).then(_,d)}}function a(_,w){r[_]&&(i[_]=function(T){return new Promise(function(D,M){o.push([_,T,D,M])>1||u(_,T)})},w&&(i[_]=w(i[_])))}function u(_,w){try{f(r[_](w))}catch(T){b(o[0][3],T)}}function f(_){_.value instanceof Kn?Promise.resolve(_.value.v).then(h,d):b(o[0][2],_)}function h(_){u("next",_)}function d(_){u("throw",_)}function b(_,w){_(w),o.shift(),o.length&&u(o[0][0],o[0][1])}}function Zy(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],n;return e?e.call(t):(t=typeof gl=="function"?gl(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(o){n[o]=t[o]&&function(s){return new Promise(function(a,u){s=t[o](s),i(a,u,s.done,s.value)})}}function i(o,s,a,u){Promise.resolve(u).then(function(f){o({value:f,done:a})},s)}}var Rf=t=>t&&typeof t.length=="number"&&typeof t!="function";function kf(t){return Wt(t?.then)}function Df(t){return Wt(t[ka])}function Lf(t){return Symbol.asyncIterator&&Wt(t?.[Symbol.asyncIterator])}function Mf(t){return new TypeError(`You provided ${t!==null&&typeof t=="object"?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function Yy(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Pf=Yy();function jf(t){return Wt(t?.[Pf])}function Uf(t){return Wy(this,arguments,function*(){let e=t.getReader();try{for(;;){let{value:n,done:r}=yield Kn(e.read());if(r)return yield Kn(void 0);yield yield Kn(n)}}finally{e.releaseLock()}})}function Bf(t){return Wt(t?.getReader)}function Pn(t){if(t instanceof ce)return t;if(t!=null){if(Df(t))return Jy(t);if(Rf(t))return Ky(t);if(kf(t))return Qy(t);if(Lf(t))return Vf(t);if(jf(t))return Xy(t);if(Bf(t))return tm(t)}throw Mf(t)}function Jy(t){return new ce(e=>{let n=t[ka]();if(Wt(n.subscribe))return n.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Ky(t){return new ce(e=>{for(let n=0;n<t.length&&!e.closed;n++)e.next(t[n]);e.complete()})}function Qy(t){return new ce(e=>{t.then(n=>{e.closed||(e.next(n),e.complete())},n=>e.error(n)).then(null,Of)})}function Xy(t){return new ce(e=>{for(let n of t)if(e.next(n),e.closed)return;e.complete()})}function Vf(t){return new ce(e=>{em(t,e).catch(n=>e.error(n))})}function tm(t){return Vf(Uf(t))}function em(t,e){var n,r,i,o;return Gy(this,void 0,void 0,function*(){try{for(n=Zy(t);r=yield n.next(),!r.done;){let s=r.value;if(e.next(s),e.closed)return}}catch(s){i={error:s}}finally{try{r&&!r.done&&(o=n.return)&&(yield o.call(n))}finally{if(i)throw i.error}}e.complete()})}function on(t,e,n,r=0,i=!1){let o=e.schedule(function(){n(),i?t.add(this.schedule(null,r)):this.unsubscribe()},r);if(t.add(o),!i)return o}function Ff(t,e=0){return Yr((n,r)=>{n.subscribe(nr(r,i=>on(r,t,()=>r.next(i),e),()=>on(r,t,()=>r.complete(),e),i=>on(r,t,()=>r.error(i),e)))})}function $f(t,e=0){return Yr((n,r)=>{r.add(t.schedule(()=>n.subscribe(r),e))})}function nm(t,e){return Pn(t).pipe($f(e),Ff(e))}function rm(t,e){return Pn(t).pipe($f(e),Ff(e))}function im(t,e){return new ce(n=>{let r=0;return e.schedule(function(){r===t.length?n.complete():(n.next(t[r++]),n.closed||this.schedule())})})}function om(t,e){return new ce(n=>{let r;return on(n,e,()=>{r=t[Pf](),on(n,e,()=>{let i,o;try{({value:i,done:o}=r.next())}catch(s){n.error(s);return}o?n.complete():n.next(i)},0,!0)}),()=>Wt(r?.return)&&r.return()})}function Hf(t,e){if(!t)throw new Error("Iterable cannot be null");return new ce(n=>{on(n,e,()=>{let r=t[Symbol.asyncIterator]();on(n,e,()=>{r.next().then(i=>{i.done?n.complete():n.next(i.value)})},0,!0)})})}function sm(t,e){return Hf(Uf(t),e)}function am(t,e){if(t!=null){if(Df(t))return nm(t,e);if(Rf(t))return im(t,e);if(kf(t))return rm(t,e);if(Lf(t))return Hf(t,e);if(jf(t))return om(t,e);if(Bf(t))return sm(t,e)}throw Mf(t)}function um(t,e){return e?am(t,e):Pn(t)}function zf(t,e){return Yr((n,r)=>{let i=0;n.subscribe(nr(r,o=>{r.next(t.call(e,o,i++))}))})}function lm(t,e,n,r,i,o,s,a){let u=[],f=0,h=0,d=!1,b=()=>{d&&!u.length&&!f&&e.complete()},_=T=>f<r?w(T):u.push(T),w=T=>{o&&e.next(T),f++;let D=!1;Pn(n(T,h++)).subscribe(nr(e,M=>{i?.(M),o?_(M):e.next(M)},()=>{D=!0},void 0,()=>{if(D)try{for(f--;u.length&&f<r;){let M=u.shift();s?on(e,s,()=>w(M)):w(M)}b()}catch(M){e.error(M)}}))};return t.subscribe(nr(e,_,()=>{d=!0,b()})),()=>{a?.()}}function qf(t,e,n=1/0){return Wt(e)?qf((r,i)=>zf((o,s)=>e(r,o,i,s))(Pn(t(r,i))),n):(typeof e=="number"&&(n=e),Yr((r,i)=>lm(r,i,t,n)))}function cm(t=1/0){return qf(Tf,t)}function fm(...t){let e=zy(t),n=qy(t,1/0),r=t;return r.length?r.length===1?Pn(r[0]):cm(n)(um(r,e)):$y}function hm(t,e){return Yr((n,r)=>{let i=null,o=0,s=!1,a=()=>s&&!i&&r.complete();n.subscribe(nr(r,u=>{i?.unsubscribe();let f=0,h=o++;Pn(t(u,h)).subscribe(i=nr(r,d=>r.next(e?e(u,d,h,f++):d),()=>{i=null,a()}))},()=>{s=!0,a()}))})}var Gf="https://g.co/ng/security#xss",_t=class extends Error{code;constructor(t,e){super(dm(t,e)),this.code=t}};function dm(t,e){return`${`NG0${Math.abs(t)}`}${e?": "+e:""}`}function pm(t){return{toString:t}.toString()}var $i=globalThis;function kt(t){for(let e in t)if(t[e]===kt)return e;throw Error("Could not find renamed property on target object.")}function xe(t){if(typeof t=="string")return t;if(Array.isArray(t))return`[${t.map(xe).join(", ")}]`;if(t==null)return""+t;let e=t.overriddenName||t.name;if(e)return`${e}`;let n=t.toString();if(n==null)return""+n;let r=n.indexOf(`
4
+ `);return r>=0?n.slice(0,r):n}function _s(t,e){return t?e?`${t} ${e}`:t:e||""}var gm=kt({__forward_ref__:kt});function Wf(t){return t.__forward_ref__=Wf,t.toString=function(){return xe(this())},t}function Ie(t){return ym(t)?t():t}function ym(t){return typeof t=="function"&&t.hasOwnProperty(gm)&&t.__forward_ref__===Wf}function zt(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function Da(t){return yl(t,Zf)||yl(t,Yf)}function yl(t,e){return t.hasOwnProperty(e)?t[e]:null}function mm(t){return t&&(t[Zf]||t[Yf])||null}function ml(t){return t&&(t.hasOwnProperty(vl)||t.hasOwnProperty(vm))?t[vl]:null}var Zf=kt({\u0275prov:kt}),vl=kt({\u0275inj:kt}),Yf=kt({ngInjectableDef:kt}),vm=kt({ngInjectorDef:kt}),Ct=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(t,e){this._desc=t,this.\u0275prov=void 0,typeof e=="number"?this.__NG_ELEMENT_ID__=e:e!==void 0&&(this.\u0275prov=zt({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Jf(t){return t&&!!t.\u0275providers}var bm=kt({\u0275cmp:kt}),_m=kt({\u0275dir:kt}),wm=kt({\u0275pipe:kt}),bl=kt({\u0275fac:kt}),Cr=kt({__NG_ELEMENT_ID__:kt}),_l=kt({__NG_ENV_ID__:kt});function fo(t){return typeof t=="string"?t:t==null?"":String(t)}function Em(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():fo(t)}function Sm(t,e){throw new _t(-200,t)}function La(t,e){throw new _t(-201,!1)}var lt=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(lt||{}),ws;function Kf(){return ws}function oe(t){let e=ws;return ws=t,e}function Qf(t,e,n){let r=Da(t);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&lt.Optional)return null;if(e!==void 0)return e;La(t,"Injector")}var Im={},Dr=Im,Nm="__NG_DI_FLAG__",Hi="ngTempTokenPath",xm="ngTokenPath",Om=/\n/gm,Tm="\u0275",wl="__source",Qn;function Cm(){return Qn}function Xe(t){let e=Qn;return Qn=t,e}function Am(t,e=lt.Default){if(Qn===void 0)throw new _t(-203,!1);return Qn===null?Qf(t,void 0,e):Qn.get(t,e&lt.Optional?null:void 0,e)}function xt(t,e=lt.Default){return(Kf()||Am)(Ie(t),e)}function St(t,e=lt.Default){return xt(t,ho(e))}function ho(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function Es(t){let e=[];for(let n=0;n<t.length;n++){let r=Ie(t[n]);if(Array.isArray(r)){if(r.length===0)throw new _t(900,!1);let i,o=lt.Default;for(let s=0;s<r.length;s++){let a=r[s],u=Rm(a);typeof u=="number"?u===-1?i=a.token:o|=u:i=a}e.push(xt(i,o))}else e.push(xt(r))}return e}function Rm(t){return t[Nm]}function km(t,e,n,r){let i=t[Hi];throw e[wl]&&i.unshift(e[wl]),t.message=Dm(`
5
+ `+t.message,i,n,r),t[xm]=i,t[Hi]=null,t}function Dm(t,e,n,r=null){t=t&&t.charAt(0)===`
6
+ `&&t.charAt(1)==Tm?t.slice(2):t;let i=xe(e);if(Array.isArray(e))i=e.map(xe).join(" -> ");else if(typeof e=="object"){let o=[];for(let s in e)if(e.hasOwnProperty(s)){let a=e[s];o.push(s+":"+(typeof a=="string"?JSON.stringify(a):xe(a)))}i=`{${o.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${t.replace(Om,`
7
+ `)}`}function rr(t,e){return t.hasOwnProperty(bl)?t[bl]:null}function Ma(t,e){t.forEach(n=>Array.isArray(n)?Ma(n,e):e(n))}function Lm(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function Xf(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function Mm(t,e,n,r){let i=t.length;if(i==e)t.push(n,r);else if(i===1)t.push(r,t[0]),t[0]=n;else{for(i--,t.push(t[i-1],t[i]);i>e;){let o=i-2;t[i]=t[o],i--}t[e]=n,t[e+1]=r}}function th(t,e,n){let r=Kr(t,e);return r>=0?t[r|1]=n:(r=~r,Mm(t,r,e,n)),r}function Wo(t,e){let n=Kr(t,e);if(n>=0)return t[n|1]}function Kr(t,e){return Pm(t,e,1)}function Pm(t,e,n){let r=0,i=t.length>>n;for(;i!==r;){let o=r+(i-r>>1),s=t[o<<n];if(e===s)return o<<n;s>e?i=o:r=o+1}return~(i<<n)}var ir={},ze=[],zi=new Ct(""),eh=new Ct("",-1),nh=new Ct(""),rh=class{get(t,e=Dr){if(e===Dr){let n=new Error(`NullInjectorError: No provider for ${xe(t)}!`);throw n.name="NullInjectorError",n}return e}};function po(t){return t[bm]||null}function ih(t){return t[_m]||null}function oh(t){return t[wm]||null}function jm(t){let e=po(t)||ih(t)||oh(t);return e!==null&&e.standalone}function Um(t){return{\u0275providers:t}}function Bm(...t){return{\u0275providers:sh(!0,t),\u0275fromNgModule:!0}}function sh(t,...e){let n=[],r=new Set,i,o=s=>{n.push(s)};return Ma(e,s=>{let a=s;Ss(a,o,[],r)&&(i||=[],i.push(a))}),i!==void 0&&ah(i,o),n}function ah(t,e){for(let n=0;n<t.length;n++){let{ngModule:r,providers:i}=t[n];Pa(i,o=>{e(o,r)})}}function Ss(t,e,n,r){if(t=Ie(t),!t)return!1;let i=null,o=ml(t),s=!o&&po(t);if(!o&&!s){let u=t.ngModule;if(o=ml(u),o)i=u;else return!1}else{if(s&&!s.standalone)return!1;i=t}let a=r.has(i);if(s){if(a)return!1;if(r.add(i),s.dependencies){let u=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let f of u)Ss(f,e,n,r)}}else if(o){if(o.imports!=null&&!a){r.add(i);let f;try{Ma(o.imports,h=>{Ss(h,e,n,r)&&(f||=[],f.push(h))})}finally{}f!==void 0&&ah(f,e)}if(!a){let f=rr(i)||(()=>new i);e({provide:i,useFactory:f,deps:ze},i),e({provide:nh,useValue:i,multi:!0},i),e({provide:zi,useValue:()=>xt(i),multi:!0},i)}let u=o.providers;if(u!=null&&!a){let f=t;Pa(u,h=>{e(h,f)})}}else return!1;return i!==t&&t.providers!==void 0}function Pa(t,e){for(let n of t)Jf(n)&&(n=n.\u0275providers),Array.isArray(n)?Pa(n,e):e(n)}var Vm=kt({provide:String,useValue:kt});function uh(t){return t!==null&&typeof t=="object"&&Vm in t}function Fm(t){return!!(t&&t.useExisting)}function $m(t){return!!(t&&t.useFactory)}function Is(t){return typeof t=="function"}var ja=new Ct(""),ki={},Hm={},Zo;function Ua(){return Zo===void 0&&(Zo=new rh),Zo}var Lr=class{},Ba=class extends Lr{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(t,e,n,r){super(),this.parent=e,this.source=n,this.scopes=r,xs(t,o=>this.processProvider(o)),this.records.set(eh,Gn(void 0,this)),r.has("environment")&&this.records.set(Lr,Gn(void 0,this));let i=this.records.get(ja);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(nh,ze,lt.Self))}destroy(){Ir(this),this._destroyed=!0;let t=dt(null);try{for(let n of this._ngOnDestroyHooks)n.ngOnDestroy();let e=this._onDestroyHooks;this._onDestroyHooks=[];for(let n of e)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),dt(t)}}onDestroy(t){return Ir(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){Ir(this);let e=Xe(this),n=oe(void 0),r;try{return t()}finally{Xe(e),oe(n)}}get(t,e=Dr,n=lt.Default){if(Ir(this),t.hasOwnProperty(_l))return t[_l](this);n=ho(n);let r,i=Xe(this),o=oe(void 0);try{if(!(n&lt.SkipSelf)){let a=this.records.get(t);if(a===void 0){let u=Ym(t)&&Da(t);u&&this.injectableDefInScope(u)?a=Gn(Ns(t),ki):a=null,this.records.set(t,a)}if(a!=null)return this.hydrate(t,a)}let s=n&lt.Self?Ua():this.parent;return e=n&lt.Optional&&e===Dr?null:e,s.get(t,e)}catch(s){if(s.name==="NullInjectorError"){if((s[Hi]=s[Hi]||[]).unshift(xe(t)),i)throw s;return km(s,t,"R3InjectorError",this.source)}else throw s}finally{oe(o),Xe(i)}}resolveInjectorInitializers(){let t=dt(null),e=Xe(this),n=oe(void 0),r;try{let i=this.get(zi,ze,lt.Self);for(let o of i)o()}finally{Xe(e),oe(n),dt(t)}}toString(){let t=[],e=this.records;for(let n of e.keys())t.push(xe(n));return`R3Injector[${t.join(", ")}]`}processProvider(t){t=Ie(t);let e=Is(t)?t:Ie(t&&t.provide),n=qm(t);if(!Is(t)&&t.multi===!0){let r=this.records.get(e);r||(r=Gn(void 0,ki,!0),r.factory=()=>Es(r.multi),this.records.set(e,r)),e=t,r.multi.push(t)}this.records.set(e,n)}hydrate(t,e){let n=dt(null);try{return e.value===ki&&(e.value=Hm,e.value=e.factory()),typeof e.value=="object"&&e.value&&Zm(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}finally{dt(n)}}injectableDefInScope(t){if(!t.providedIn)return!1;let e=Ie(t.providedIn);return typeof e=="string"?e==="any"||this.scopes.has(e):this.injectorDefTypes.has(e)}removeOnDestroy(t){let e=this._onDestroyHooks.indexOf(t);e!==-1&&this._onDestroyHooks.splice(e,1)}};function Ns(t){let e=Da(t),n=e!==null?e.factory:rr(t);if(n!==null)return n;if(t instanceof Ct)throw new _t(204,!1);if(t instanceof Function)return zm(t);throw new _t(204,!1)}function zm(t){if(t.length>0)throw new _t(204,!1);let e=mm(t);return e!==null?()=>e.factory(t):()=>new t}function qm(t){if(uh(t))return Gn(void 0,t.useValue);{let e=Gm(t);return Gn(e,ki)}}function Gm(t,e,n){let r;if(Is(t)){let i=Ie(t);return rr(i)||Ns(i)}else if(uh(t))r=()=>Ie(t.useValue);else if($m(t))r=()=>t.useFactory(...Es(t.deps||[]));else if(Fm(t))r=()=>xt(Ie(t.useExisting));else{let i=Ie(t&&(t.useClass||t.provide));if(Wm(t))r=()=>new i(...Es(t.deps));else return rr(i)||Ns(i)}return r}function Ir(t){if(t.destroyed)throw new _t(205,!1)}function Gn(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function Wm(t){return!!t.deps}function Zm(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function Ym(t){return typeof t=="function"||typeof t=="object"&&t instanceof Ct}function xs(t,e){for(let n of t)Array.isArray(n)?xs(n,e):n&&Jf(n)?xs(n.\u0275providers,e):e(n)}function lh(t,e){t instanceof Ba&&Ir(t);let n,r=Xe(t),i=oe(void 0);try{return e()}finally{Xe(r),oe(i)}}function Jm(){return Kf()!==void 0||Cm()!=null}var Ye=0,ct=1,tt=2,_e=3,Oe=4,je=5,Mr=6,qi=7,Zt=8,Pr=9,qe=10,te=11,jr=12,El=13,pr=14,Pe=15,or=16,Wn=17,sr=18,go=19,ch=20,sn=21,Yo=22,Gi=23,ue=24,Jo=25,ee=26,fh=1,Ur=7,Km=8,Wi=9,se=10;function Sn(t){return Array.isArray(t)&&typeof t[fh]=="object"}function jn(t){return Array.isArray(t)&&t[fh]===!0}function hh(t){return(t.flags&4)!==0}function Qr(t){return t.componentOffset>-1}function Va(t){return(t.flags&1)===1}function Un(t){return!!t.template}function Zi(t){return(t[tt]&512)!==0}function Xr(t){return(t[tt]&256)===256}var Qm=class{previousValue;currentValue;firstChange;constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}};function dh(t,e,n,r){e!==null?e.applyValueToInputSignal(e,r):t[n]=r}function Xm(t){return t.type.prototype.ngOnChanges&&(t.setInput=ev),tv}function tv(){let t=gh(this),e=t?.current;if(e){let n=t.previous;if(n===ir)t.previous=e;else for(let r in e)n[r]=e[r];t.current=null,this.ngOnChanges(e)}}function ev(t,e,n,r,i){let o=this.declaredInputs[r],s=gh(t)||nv(t,{previous:ir,current:null}),a=s.current||(s.current={}),u=s.previous,f=u[o];a[o]=new Qm(f&&f.currentValue,n,u===ir),dh(t,e,i,n)}var ph="__ngSimpleChanges__";function gh(t){return t[ph]||null}function nv(t,e){return t[ph]=e}var rv=null,Tt=function(t,e=null,n){rv?.(t,e,n)},iv="svg",ov="math";function Ge(t){for(;Array.isArray(t);)t=t[Ye];return t}function yh(t,e){return Ge(e[t])}function dn(t,e){return Ge(e[t.index])}function Fa(t,e){return t.data[e]}function mh(t,e){return t[e]}function un(t,e){let n=e[t];return Sn(n)?n:n[Ye]}function $a(t){return(t[tt]&128)===128}function ar(t,e){return e==null?null:t[e]}function vh(t){t[Wn]=0}function Ha(t){t[tt]&1024||(t[tt]|=1024,$a(t)&&mo(t))}function sv(t,e){for(;t>0;)e=e[pr],t--;return e}function yo(t){return!!(t[tt]&9216||t[ue]?.dirty)}function Os(t){t[qe].changeDetectionScheduler?.notify(8),t[tt]&64&&(t[tt]|=1024),yo(t)&&mo(t)}function mo(t){t[qe].changeDetectionScheduler?.notify(0);let e=On(t);for(;e!==null&&!(e[tt]&8192||(e[tt]|=8192,!$a(e)));)e=On(e)}function bh(t,e){if(Xr(t))throw new _t(911,!1);t[sn]===null&&(t[sn]=[]),t[sn].push(e)}function av(t,e){if(t[sn]===null)return;let n=t[sn].indexOf(e);n!==-1&&t[sn].splice(n,1)}function On(t){let e=t[_e];return jn(e)?e[_e]:e}function uv(t){return t[qi]??=[]}function lv(t){return t.cleanup??=[]}var ut={lFrame:Th(null),bindingsEnabled:!0,skipHydrationRootTNode:null},Ts=!1;function cv(){return ut.lFrame.elementDepthCount}function fv(){ut.lFrame.elementDepthCount++}function hv(){ut.lFrame.elementDepthCount--}function _h(){return ut.bindingsEnabled}function dv(){return ut.skipHydrationRootTNode!==null}function pv(t){return ut.skipHydrationRootTNode===t}function gv(){ut.skipHydrationRootTNode=null}function Ot(){return ut.lFrame.lView}function fe(){return ut.lFrame.tView}function yi(t){return ut.lFrame.contextLView=t,t[Zt]}function mi(t){return ut.lFrame.contextLView=null,t}function gr(){let t=wh();for(;t!==null&&t.type===64;)t=t.parent;return t}function wh(){return ut.lFrame.currentTNode}function yv(){let t=ut.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}function yr(t,e){let n=ut.lFrame;n.currentTNode=t,n.isParent=e}function Eh(){return ut.lFrame.isParent}function mv(){ut.lFrame.isParent=!1}function Sh(){return Ts}function Sl(t){let e=Ts;return Ts=t,e}function za(){let t=ut.lFrame,e=t.bindingRootIndex;return e===-1&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function vv(t){return ut.lFrame.bindingIndex=t}function vo(){return ut.lFrame.bindingIndex++}function Ih(t){let e=ut.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function bv(){return ut.lFrame.inI18n}function _v(t,e){let n=ut.lFrame;n.bindingIndex=n.bindingRootIndex=t,Cs(e)}function wv(){return ut.lFrame.currentDirectiveIndex}function Cs(t){ut.lFrame.currentDirectiveIndex=t}function Ev(t){let e=ut.lFrame.currentDirectiveIndex;return e===-1?null:t[e]}function Nh(t){ut.lFrame.currentQueryIndex=t}function Sv(t){let e=t[ct];return e.type===2?e.declTNode:e.type===1?t[je]:null}function xh(t,e,n){if(n&lt.SkipSelf){let i=e,o=t;for(;(i=i.parent,i===null&&!(n&lt.Host))&&(i=Sv(o),!(i===null||(o=o[pr],i.type&10))););if(i===null)return!1;e=i,t=o}let r=ut.lFrame=Oh();return r.currentTNode=e,r.lView=t,!0}function qa(t){let e=Oh(),n=t[ct];ut.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function Oh(){let t=ut.lFrame,e=t===null?null:t.child;return e===null?Th(t):e}function Th(t){let e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return t!==null&&(t.child=e),e}function Ch(){let t=ut.lFrame;return ut.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var Ah=Ch;function Ga(){let t=Ch();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function Iv(t){return(ut.lFrame.contextLView=sv(t,ut.lFrame.contextLView))[Zt]}function pn(){return ut.lFrame.selectedIndex}function Tn(t){ut.lFrame.selectedIndex=t}function Rh(){let t=ut.lFrame;return Fa(t.tView,t.selectedIndex)}function Nv(){return ut.lFrame.currentNamespace}var kh=!0;function Wa(){return kh}function Za(t){kh=t}function xv(t,e,n){let{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=e.type.prototype;if(r){let s=Xm(e);(n.preOrderHooks??=[]).push(t,s),(n.preOrderCheckHooks??=[]).push(t,s)}i&&(n.preOrderHooks??=[]).push(0-t,i),o&&((n.preOrderHooks??=[]).push(t,o),(n.preOrderCheckHooks??=[]).push(t,o))}function Dh(t,e){for(let n=e.directiveStart,r=e.directiveEnd;n<r;n++){let i=t.data[n].type.prototype,{ngAfterContentInit:o,ngAfterContentChecked:s,ngAfterViewInit:a,ngAfterViewChecked:u,ngOnDestroy:f}=i;o&&(t.contentHooks??=[]).push(-n,o),s&&((t.contentHooks??=[]).push(n,s),(t.contentCheckHooks??=[]).push(n,s)),a&&(t.viewHooks??=[]).push(-n,a),u&&((t.viewHooks??=[]).push(n,u),(t.viewCheckHooks??=[]).push(n,u)),f!=null&&(t.destroyHooks??=[]).push(n,f)}}function Di(t,e,n){Lh(t,e,3,n)}function Li(t,e,n,r){(t[tt]&3)===n&&Lh(t,e,n,r)}function Ko(t,e){let n=t[tt];(n&3)===e&&(n&=16383,n+=1,t[tt]=n)}function Lh(t,e,n,r){let i=r!==void 0?t[Wn]&65535:0,o=r??-1,s=e.length-1,a=0;for(let u=i;u<s;u++)if(typeof e[u+1]=="number"){if(a=e[u],r!=null&&a>=r)break}else e[u]<0&&(t[Wn]+=65536),(a<o||o==-1)&&(Ov(t,n,e,u),t[Wn]=(t[Wn]&4294901760)+u+2),u++}function Il(t,e){Tt(4,t,e);let n=dt(null);try{e.call(t)}finally{dt(n),Tt(5,t,e)}}function Ov(t,e,n,r){let i=n[r]<0,o=n[r+1],s=i?-n[r]:n[r],a=t[s];i?t[tt]>>14<t[Wn]>>16&&(t[tt]&3)===e&&(t[tt]+=16384,Il(a,o)):Il(a,o)}var Xn=-1,Ya=class{factory;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(t,e,n){this.factory=t,this.canSeeViewProviders=e,this.injectImpl=n}};function Tv(t){return t instanceof Ya}function Cv(t){return(t.flags&8)!==0}function Av(t){return(t.flags&16)!==0}function Rv(t,e,n){let r=0;for(;r<n.length;){let i=n[r];if(typeof i=="number"){if(i!==0)break;r++;let o=n[r++],s=n[r++],a=n[r++];t.setAttribute(e,s,a,o)}else{let o=i,s=n[++r];Dv(o)?t.setProperty(e,o,s):t.setAttribute(e,o,s),r++}}return r}function kv(t){return t===3||t===4||t===6}function Dv(t){return t.charCodeAt(0)===64}function Ja(t,e){if(!(e===null||e.length===0))if(t===null||t.length===0)t=e.slice();else{let n=-1;for(let r=0;r<e.length;r++){let i=e[r];typeof i=="number"?n=i:n===0||(n===-1||n===2?Nl(t,n,i,null,e[++r]):Nl(t,n,i,null,null))}}return t}function Nl(t,e,n,r,i){let o=0,s=t.length;if(e===-1)s=-1;else for(;o<t.length;){let a=t[o++];if(typeof a=="number"){if(a===e){s=-1;break}else if(a>e){s=o-1;break}}}for(;o<t.length;){let a=t[o];if(typeof a=="number")break;if(a===n){if(r===null){i!==null&&(t[o+1]=i);return}else if(r===t[o+1]){t[o+2]=i;return}}o++,r!==null&&o++,i!==null&&o++}s!==-1&&(t.splice(s,0,e),o=s+1),t.splice(o++,0,n),r!==null&&t.splice(o++,0,r),i!==null&&t.splice(o++,0,i)}var Qo={},Lv=class{injector;parentInjector;constructor(t,e){this.injector=t,this.parentInjector=e}get(t,e,n){n=ho(n);let r=this.injector.get(t,Qo,n);return r!==Qo||e===Qo?r:this.parentInjector.get(t,e,n)}};function Mv(t){return t!==Xn}function As(t){return t&32767}function Pv(t){return t>>16}function Rs(t,e){let n=Pv(t),r=e;for(;n>0;)r=r[pr],n--;return r}var ks=!0;function Yi(t){let e=ks;return ks=t,e}var jv=256,Mh=jv-1,Ph=5,Uv=0,Le={};function Bv(t,e,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(Cr)&&(r=n[Cr]),r==null&&(r=n[Cr]=Uv++);let i=r&Mh,o=1<<i;e.data[t+(i>>Ph)]|=o}function jh(t,e){let n=Uh(t,e);if(n!==-1)return n;let r=e[ct];r.firstCreatePass&&(t.injectorIndex=e.length,Xo(r.data,t),Xo(e,null),Xo(r.blueprint,null));let i=Bh(t,e),o=t.injectorIndex;if(Mv(i)){let s=As(i),a=Rs(i,e),u=a[ct].data;for(let f=0;f<8;f++)e[o+f]=a[s+f]|u[s+f]}return e[o+8]=i,o}function Xo(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Uh(t,e){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||e[t.injectorIndex+8]===null?-1:t.injectorIndex}function Bh(t,e){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let n=0,r=null,i=e;for(;i!==null;){if(r=qh(i),r===null)return Xn;if(n++,i=i[pr],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return Xn}function Vv(t,e,n){Bv(t,e,n)}function Vh(t,e,n){if(n&lt.Optional||t!==void 0)return t;La(e,"NodeInjector")}function Fh(t,e,n,r){if(n&lt.Optional&&r===void 0&&(r=null),(n&(lt.Self|lt.Host))===0){let i=t[Pr],o=oe(void 0);try{return i?i.get(e,r,n&lt.Optional):Qf(e,r,n&lt.Optional)}finally{oe(o)}}return Vh(r,e,n)}function $h(t,e,n,r=lt.Default,i){if(t!==null){if(e[tt]&2048&&!(r&lt.Self)){let s=qv(t,e,n,r,Le);if(s!==Le)return s}let o=Hh(t,e,n,r,Le);if(o!==Le)return o}return Fh(e,n,r,i)}function Hh(t,e,n,r,i){let o=Hv(n);if(typeof o=="function"){if(!xh(e,t,r))return r&lt.Host?Vh(i,n,r):Fh(e,n,r,i);try{let s;if(s=o(r),s==null&&!(r&lt.Optional))La(n);else return s}finally{Ah()}}else if(typeof o=="number"){let s=null,a=Uh(t,e),u=Xn,f=r&lt.Host?e[Pe][je]:null;for((a===-1||r&lt.SkipSelf)&&(u=a===-1?Bh(t,e):e[a+8],u===Xn||!Ol(r,!1)?a=-1:(s=e[ct],a=As(u),e=Rs(u,e)));a!==-1;){let h=e[ct];if(xl(o,a,h.data)){let d=Fv(a,e,n,s,r,f);if(d!==Le)return d}u=e[a+8],u!==Xn&&Ol(r,e[ct].data[a+8]===f)&&xl(o,a,e)?(s=h,a=As(u),e=Rs(u,e)):a=-1}}return i}function Fv(t,e,n,r,i,o){let s=e[ct],a=s.data[t+8],u=r==null?Qr(a)&&ks:r!=s&&(a.type&3)!==0,f=i&lt.Host&&o===a,h=$v(a,s,n,u,f);return h!==null?Ds(e,s,h,a):Le}function $v(t,e,n,r,i){let o=t.providerIndexes,s=e.data,a=o&1048575,u=t.directiveStart,f=t.directiveEnd,h=o>>20,d=r?a:a+h,b=i?a+h:f;for(let _=d;_<b;_++){let w=s[_];if(_<u&&n===w||_>=u&&w.type===n)return _}if(i){let _=s[u];if(_&&Un(_)&&_.type===n)return u}return null}function Ds(t,e,n,r){let i=t[n],o=e.data;if(Tv(i)){let s=i;s.resolving&&Sm(Em(o[n]));let a=Yi(s.canSeeViewProviders);s.resolving=!0;let u,f=s.injectImpl?oe(s.injectImpl):null,h=xh(t,r,lt.Default);try{i=t[n]=s.factory(void 0,o,t,r),e.firstCreatePass&&n>=r.directiveStart&&xv(n,o[n],e)}finally{f!==null&&oe(f),Yi(a),s.resolving=!1,Ah()}}return i}function Hv(t){if(typeof t=="string")return t.charCodeAt(0)||0;let e=t.hasOwnProperty(Cr)?t[Cr]:void 0;return typeof e=="number"?e>=0?e&Mh:zv:e}function xl(t,e,n){let r=1<<t;return!!(n[e+(t>>Ph)]&r)}function Ol(t,e){return!(t&lt.Self)&&!(t&lt.Host&&e)}var zh=class{_tNode;_lView;constructor(t,e){this._tNode=t,this._lView=e}get(t,e,n){return $h(this._tNode,this._lView,t,ho(n),e)}};function zv(){return new zh(gr(),Ot())}function qv(t,e,n,r,i){let o=t,s=e;for(;o!==null&&s!==null&&s[tt]&2048&&!Zi(s);){let a=Hh(o,s,n,r|lt.Self,Le);if(a!==Le)return a;let u=o.parent;if(!u){let f=s[ch];if(f){let h=f.get(n,Le,r);if(h!==Le)return h}u=qh(s),s=s[pr]}o=u}return i}function qh(t){let e=t[ct],n=e.type;return n===2?e.declTNode:n===1?t[je]:null}function Tl(t,e=null,n=null,r){let i=Gv(t,e,n,r);return i.resolveInjectorInitializers(),i}function Gv(t,e=null,n=null,r,i=new Set){let o=[n||ze,Bm(t)];return r=r||(typeof t=="object"?void 0:xe(t)),new Ba(o,e||Ua(),r||null,i)}var bo=class Gh{static THROW_IF_NOT_FOUND=Dr;static NULL=new rh;static create(e,n){if(Array.isArray(e))return Tl({name:""},n,e,"");{let r=e.name??"";return Tl({name:r},e.parent,e.providers,r)}}static \u0275prov=zt({token:Gh,providedIn:"any",factory:()=>xt(eh)});static __NG_ELEMENT_ID__=-1},Wv=new Ct("");Wv.__NG_ELEMENT_ID__=t=>{let e=gr();if(e===null)throw new _t(204,!1);if(e.type&2)return e.value;if(t&lt.Optional)return null;throw new _t(204,!1)};var Wh=!1,Zh=(()=>{class t{static __NG_ELEMENT_ID__=Yv;static __NG_ENV_ID__=n=>n}return t})(),Zv=class extends Zh{_lView;constructor(t){super(),this._lView=t}onDestroy(t){return bh(this._lView,t),()=>av(this._lView,t)}};function Yv(){return new Zv(Ot())}var ti=class{},Ka=new Ct("",{providedIn:"root",factory:()=>!1}),Yh=new Ct(""),Qa=new Ct(""),_o=(()=>{class t{taskId=0;pendingTasks=new Set;get _hasPendingTasks(){return this.hasPendingTasks.value}hasPendingTasks=new Vy(!1);add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static \u0275prov=zt({token:t,providedIn:"root",factory:()=>new t})}return t})(),Jv=class extends Jr{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,Jm()&&(this.destroyRef=St(Zh,{optional:!0})??void 0,this.pendingTasks=St(_o,{optional:!0})??void 0)}emit(t){let e=dt(null);try{super.next(t)}finally{dt(e)}}subscribe(t,e,n){let r=t,i=e||(()=>null),o=n;if(t&&typeof t=="object"){let a=t;r=a.next?.bind(a),i=a.error?.bind(a),o=a.complete?.bind(a)}this.__isAsync&&(i=this.wrapInTimeout(i),r&&(r=this.wrapInTimeout(r)),o&&(o=this.wrapInTimeout(o)));let s=super.subscribe({next:r,error:i,complete:o});return t instanceof He&&t.add(s),s}wrapInTimeout(t){return e=>{let n=this.pendingTasks?.add();setTimeout(()=>{t(e),n!==void 0&&this.pendingTasks?.remove(n)})}}},Me=Jv;function Ji(...t){}function Jh(t){let e,n;function r(){t=Ji;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),e!==void 0&&clearTimeout(e)}catch{}}return e=setTimeout(()=>{t(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{t(),r()})),()=>r()}function Cl(t){return queueMicrotask(()=>t()),()=>{t=Ji}}var Xa="isAngularZone",Ki=Xa+"_ID",Kv=0,le=class Ls{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new Me(!1);onMicrotaskEmpty=new Me(!1);onStable=new Me(!1);onError=new Me(!1);constructor(e){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:i=!1,scheduleInRootZone:o=Wh}=e;if(typeof Zone>"u")throw new _t(908,!1);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!i&&r,s.shouldCoalesceRunChangeDetection=i,s.callbackScheduled=!1,s.scheduleInRootZone=o,t0(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(Xa)===!0}static assertInAngularZone(){if(!Ls.isInAngularZone())throw new _t(909,!1)}static assertNotInAngularZone(){if(Ls.isInAngularZone())throw new _t(909,!1)}run(e,n,r){return this._inner.run(e,n,r)}runTask(e,n,r,i){let o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,e,Qv,Ji,Ji);try{return o.runTask(s,n,r)}finally{o.cancelTask(s)}}runGuarded(e,n,r){return this._inner.runGuarded(e,n,r)}runOutsideAngular(e){return this._outer.run(e)}},Qv={};function tu(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Xv(t){if(t.isCheckStableRunning||t.callbackScheduled)return;t.callbackScheduled=!0;function e(){Jh(()=>{t.callbackScheduled=!1,Ms(t),t.isCheckStableRunning=!0,tu(t),t.isCheckStableRunning=!1})}t.scheduleInRootZone?Zone.root.run(()=>{e()}):t._outer.run(()=>{e()}),Ms(t)}function t0(t){let e=()=>{Xv(t)},n=Kv++;t._inner=t._inner.fork({name:"angular",properties:{[Xa]:!0,[Ki]:n,[Ki+n]:!0},onInvokeTask:(r,i,o,s,a,u)=>{if(e0(u))return r.invokeTask(o,s,a,u);try{return Al(t),r.invokeTask(o,s,a,u)}finally{(t.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&e(),Rl(t)}},onInvoke:(r,i,o,s,a,u,f)=>{try{return Al(t),r.invoke(o,s,a,u,f)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!n0(u)&&e(),Rl(t)}},onHasTask:(r,i,o,s)=>{r.hasTask(o,s),i===o&&(s.change=="microTask"?(t._hasPendingMicrotasks=s.microTask,Ms(t),tu(t)):s.change=="macroTask"&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,i,o,s)=>(r.handleError(o,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}function Ms(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function Al(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Rl(t){t._nesting--,tu(t)}var Kh=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new Me;onMicrotaskEmpty=new Me;onStable=new Me;onError=new Me;run(t,e,n){return t.apply(e,n)}runGuarded(t,e,n){return t.apply(e,n)}runOutsideAngular(t){return t()}runTask(t,e,n,r){return t.apply(e,n)}};function e0(t){return Qh(t,"__ignore_ng_zone__")}function n0(t){return Qh(t,"__scheduler_tick__")}function Qh(t,e){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[e]===!0}var ei=class{_console=console;handleError(t){this._console.error("ERROR",t)}},r0=new Ct("",{providedIn:"root",factory:()=>{let t=St(le),e=St(ei);return n=>t.runOutsideAngular(()=>e.handleError(n))}});function i0(){return Xh(gr(),Ot())}function Xh(t,e){return new td(dn(t,e))}var td=(()=>{class t{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=i0}return t})();function Mi(t,e){let n=Ey(t),r=n[rn];return e?.equal&&(r.equal=e.equal),n.set=i=>Sf(r,i),n.update=i=>Sy(r,i),n.asReadonly=o0.bind(n),n}function o0(){let t=this[rn];if(t.readonlyFn===void 0){let e=()=>this();e[rn]=t,t.readonlyFn=e}return t.readonlyFn}function ed(t){return(t.flags&128)===128}var nd=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}(nd||{}),rd=new Map,s0=0;function a0(){return s0++}function u0(t){rd.set(t[go],t)}function Ps(t){rd.delete(t[go])}var kl="__ngContext__";function ni(t,e){Sn(e)?(t[kl]=e[go],u0(e)):t[kl]=e}function id(t){return sd(t[jr])}function od(t){return sd(t[Oe])}function sd(t){for(;t!==null&&!jn(t);)t=t[Oe];return t}var js;function l0(t){js=t}function ad(){if(js!==void 0)return js;if(typeof document<"u")return document;throw new _t(210,!1)}var ud=new Ct("",{providedIn:"root",factory:()=>c0}),c0="ng",ld=new Ct(""),eu=new Ct("",{providedIn:"platform",factory:()=>"unknown"}),cd=new Ct("",{providedIn:"root",factory:()=>ad().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null}),f0="h",h0="b",fd=!1,d0=new Ct("",{providedIn:"root",factory:()=>fd}),hd=function(t){return t[t.CHANGE_DETECTION=0]="CHANGE_DETECTION",t[t.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",t}(hd||{}),nu=new Ct(""),Dl=new Set;function wo(t){Dl.has(t)||(Dl.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}var p0=(()=>{class t{impl=null;execute(){this.impl?.execute()}static \u0275prov=zt({token:t,providedIn:"root",factory:()=>new t})}return t})(),g0=()=>null;function dd(t,e,n=!1){return g0(t,e,n)}function pd(t,e){let n=t.contentQueries;if(n!==null){let r=dt(null);try{for(let i=0;i<n.length;i+=2){let o=n[i],s=n[i+1];if(s!==-1){let a=t.data[s];Nh(o),a.contentQueries(2,e[s],s)}}}finally{dt(r)}}}function Us(t,e,n){Nh(0);let r=dt(null);try{e(t,n)}finally{dt(r)}}function gd(t,e,n){if(hh(e)){let r=dt(null);try{let i=e.directiveStart,o=e.directiveEnd;for(let s=i;s<o;s++){let a=t.data[s];if(a.contentQueries){let u=n[s];a.contentQueries(1,u,s)}}}finally{dt(r)}}}var Fe=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}(Fe||{}),vi;function y0(){if(vi===void 0&&(vi=null,$i.trustedTypes))try{vi=$i.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return vi}function Eo(t){return y0()?.createHTML(t)||t}var bi;function m0(){if(bi===void 0&&(bi=null,$i.trustedTypes))try{bi=$i.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return bi}function Ll(t){return m0()?.createHTML(t)||t}var Bn=class{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Gf})`}},v0=class extends Bn{getTypeName(){return"HTML"}},b0=class extends Bn{getTypeName(){return"Style"}},_0=class extends Bn{getTypeName(){return"Script"}},w0=class extends Bn{getTypeName(){return"URL"}},E0=class extends Bn{getTypeName(){return"ResourceURL"}};function Re(t){return t instanceof Bn?t.changingThisBreaksApplicationSecurity:t}function bn(t,e){let n=S0(t);if(n!=null&&n!==e){if(n==="ResourceURL"&&e==="URL")return!0;throw new Error(`Required a safe ${e}, got a ${n} (see ${Gf})`)}return n===e}function S0(t){return t instanceof Bn&&t.getTypeName()||null}function I0(t){return new v0(t)}function N0(t){return new b0(t)}function x0(t){return new _0(t)}function O0(t){return new w0(t)}function T0(t){return new E0(t)}function C0(t){let e=new R0(t);return k0()?new A0(e):e}var A0=class{inertDocumentHelper;constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{let e=new window.DOMParser().parseFromString(Eo(t),"text/html").body;return e===null?this.inertDocumentHelper.getInertBodyElement(t):(e.firstChild?.remove(),e)}catch{return null}}},R0=class{defaultDoc;inertDocument;constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){let e=this.inertDocument.createElement("template");return e.innerHTML=Eo(t),e}};function k0(){try{return!!new window.DOMParser().parseFromString(Eo(""),"text/html")}catch{return!1}}var D0=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function ru(t){return t=String(t),t.match(D0)?t:"unsafe:"+t}function Je(t){let e={};for(let n of t.split(","))e[n]=!0;return e}function ri(...t){let e={};for(let n of t)for(let r in n)n.hasOwnProperty(r)&&(e[r]=!0);return e}var yd=Je("area,br,col,hr,img,wbr"),md=Je("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),vd=Je("rp,rt"),L0=ri(vd,md),M0=ri(md,Je("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),P0=ri(vd,Je("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Ml=ri(yd,M0,P0,L0),bd=Je("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),j0=Je("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),U0=Je("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"),B0=ri(bd,j0,U0),V0=Je("script,style,template"),F0=class{sanitizedSomething=!1;buf=[];sanitizeChildren(t){let e=t.firstChild,n=!0,r=[];for(;e;){if(e.nodeType===Node.ELEMENT_NODE?n=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,n&&e.firstChild){r.push(e),e=z0(e);continue}for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let i=H0(e);if(i){e=i;break}e=r.pop()}}return this.buf.join("")}startElement(t){let e=Pl(t).toLowerCase();if(!Ml.hasOwnProperty(e))return this.sanitizedSomething=!0,!V0.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);let n=t.attributes;for(let r=0;r<n.length;r++){let i=n.item(r),o=i.name,s=o.toLowerCase();if(!B0.hasOwnProperty(s)){this.sanitizedSomething=!0;continue}let a=i.value;bd[s]&&(a=ru(a)),this.buf.push(" ",o,'="',jl(a),'"')}return this.buf.push(">"),!0}endElement(t){let e=Pl(t).toLowerCase();Ml.hasOwnProperty(e)&&!yd.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(t){this.buf.push(jl(t))}};function $0(t,e){return(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function H0(t){let e=t.nextSibling;if(e&&t!==e.previousSibling)throw _d(e);return e}function z0(t){let e=t.firstChild;if(e&&$0(t,e))throw _d(e);return e}function Pl(t){let e=t.nodeName;return typeof e=="string"?e:"FORM"}function _d(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}var q0=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,G0=/([^\#-~ |!])/g;function jl(t){return t.replace(/&/g,"&amp;").replace(q0,function(e){let n=e.charCodeAt(0),r=e.charCodeAt(1);return"&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace(G0,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}var _i;function wd(t,e){let n=null;try{_i=_i||C0(t);let r=e?String(e):"";n=_i.getInertBodyElement(r);let i=5,o=r;do{if(i===0)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=n.innerHTML,n=_i.getInertBodyElement(r)}while(r!==o);let s=new F0().sanitizeChildren(Ul(n)||n);return Eo(s)}finally{if(n){let r=Ul(n)||n;for(;r.firstChild;)r.firstChild.remove()}}}function Ul(t){return"content"in t&&W0(t)?t.content:null}function W0(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}var Ve=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(Ve||{});function Ed(t){let e=Sd();return e?Ll(e.sanitize(Ve.HTML,t)||""):bn(t,"HTML")?Ll(Re(t)):wd(ad(),fo(t))}function wn(t){let e=Sd();return e?e.sanitize(Ve.URL,t)||"":bn(t,"URL")?Re(t):ru(fo(t))}function Sd(){let t=Ot();return t&&t[qe].sanitizer}function Z0(t,e,n){let r=t.length;for(;;){let i=t.indexOf(e,n);if(i===-1)return i;if(i===0||t.charCodeAt(i-1)<=32){let o=e.length;if(i+o===r||t.charCodeAt(i+o)<=32)return i}n=i+1}}var Id="ng-template";function Y0(t,e,n,r){let i=0;if(r){for(;i<e.length&&typeof e[i]=="string";i+=2)if(e[i]==="class"&&Z0(e[i+1].toLowerCase(),n,0)!==-1)return!0}else if(iu(t))return!1;if(i=e.indexOf(1,i),i>-1){let o;for(;++i<e.length&&typeof(o=e[i])=="string";)if(o.toLowerCase()===n)return!0}return!1}function iu(t){return t.type===4&&t.value!==Id}function J0(t,e,n){let r=t.type===4&&!n?Id:t.value;return e===r}function K0(t,e,n){let r=4,i=t.attrs,o=i!==null?tb(i):0,s=!1;for(let a=0;a<e.length;a++){let u=e[a];if(typeof u=="number"){if(!s&&!Se(r)&&!Se(u))return!1;if(s&&Se(u))continue;s=!1,r=u|r&1;continue}if(!s)if(r&4){if(r=2|r&1,u!==""&&!J0(t,u,n)||u===""&&e.length===1){if(Se(r))return!1;s=!0}}else if(r&8){if(i===null||!Y0(t,i,u,n)){if(Se(r))return!1;s=!0}}else{let f=e[++a],h=Q0(u,i,iu(t),n);if(h===-1){if(Se(r))return!1;s=!0;continue}if(f!==""){let d;if(h>o?d="":d=i[h+1].toLowerCase(),r&2&&f!==d){if(Se(r))return!1;s=!0}}}}return Se(r)||s}function Se(t){return(t&1)===0}function Q0(t,e,n,r){if(e===null)return-1;let i=0;if(r||!n){let o=!1;for(;i<e.length;){let s=e[i];if(s===t)return i;if(s===3||s===6)o=!0;else if(s===1||s===2){let a=e[++i];for(;typeof a=="string";)a=e[++i];continue}else{if(s===4)break;if(s===0){i+=4;continue}}i+=o?1:2}return-1}else return eb(e,t)}function X0(t,e,n=!1){for(let r=0;r<e.length;r++)if(K0(t,e[r],n))return!0;return!1}function tb(t){for(let e=0;e<t.length;e++){let n=t[e];if(kv(n))return e}return t.length}function eb(t,e){let n=t.indexOf(4);if(n>-1)for(n++;n<t.length;){let r=t[n];if(typeof r=="number")return-1;if(r===e)return n;n++}return-1}function Bl(t,e){return t?":not("+e.trim()+")":e}function nb(t){let e=t[0],n=1,r=2,i="",o=!1;for(;n<t.length;){let s=t[n];if(typeof s=="string")if(r&2){let a=t[++n];i+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else r&8?i+="."+s:r&4&&(i+=" "+s);else i!==""&&!Se(s)&&(e+=Bl(o,i),i=""),r=s,o=o||!Se(r);n++}return i!==""&&(e+=Bl(o,i)),e}function rb(t){return t.map(nb).join(",")}function ib(t){let e=[],n=[],r=1,i=2;for(;r<t.length;){let o=t[r];if(typeof o=="string")i===2?o!==""&&e.push(o,t[++r]):i===8&&n.push(o);else{if(!Se(i))break;i=o}r++}return n.length&&e.push(1,...n),e}var Ee={};function ob(t,e){return t.createText(e)}function sb(t,e,n){t.setValue(e,n)}function Nd(t,e,n){return t.createElement(e,n)}function Bs(t,e,n,r,i){t.insertBefore(e,n,r,i)}function xd(t,e,n){t.appendChild(e,n)}function Vl(t,e,n,r,i){r!==null?Bs(t,e,n,r,i):xd(t,e,n)}function ab(t,e,n){t.removeChild(null,e,n)}function ub(t,e,n){t.setAttribute(e,"style",n)}function lb(t,e,n){n===""?t.removeAttribute(e,"class"):t.setAttribute(e,"class",n)}function Od(t,e,n){let{mergedAttrs:r,classes:i,styles:o}=n;r!==null&&Rv(t,e,r),i!==null&&lb(t,e,i),o!==null&&ub(t,e,o)}function ou(t,e,n,r,i,o,s,a,u,f,h){let d=ee+r,b=d+i,_=cb(d,b),w=typeof f=="function"?f():f;return _[ct]={type:t,blueprint:_,template:n,queries:null,viewQuery:a,declTNode:e,data:_.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:b,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:typeof o=="function"?o():o,pipeRegistry:typeof s=="function"?s():s,firstChild:null,schemas:u,consts:w,incompleteFirstPass:!1,ssrId:h}}function cb(t,e){let n=[];for(let r=0;r<e;r++)n.push(r<t?null:Ee);return n}function fb(t){let e=t.tView;return e===null||e.incompleteFirstPass?t.tView=ou(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts,t.id):e}function su(t,e,n,r,i,o,s,a,u,f,h){let d=e.blueprint.slice();return d[Ye]=i,d[tt]=r|4|128|8|64|1024,(f!==null||t&&t[tt]&2048)&&(d[tt]|=2048),vh(d),d[_e]=d[pr]=t,d[Zt]=n,d[qe]=s||t&&t[qe],d[te]=a||t&&t[te],d[Pr]=u||t&&t[Pr]||null,d[je]=o,d[go]=a0(),d[Mr]=h,d[ch]=f,d[Pe]=e.type==2?t[Pe]:d,d}function hb(t,e,n){let r=dn(e,t),i=fb(n),o=t[qe].rendererFactory,s=Ad(t,su(t,i,null,Td(n),r,e,null,o.createRenderer(r,n),null,null,null));return t[e.index]=s}function Td(t){let e=16;return t.signals?e=4096:t.onPush&&(e=64),e}function Cd(t,e,n,r){if(n===0)return-1;let i=e.length;for(let o=0;o<n;o++)e.push(r),t.blueprint.push(r),t.data.push(null);return i}function Ad(t,e){return t[jr]?t[El][Oe]=e:t[jr]=e,t[El]=e,e}function ne(t=1){Rd(fe(),Ot(),pn()+t,!1)}function Rd(t,e,n,r){if(!r)if((e[tt]&3)===3){let i=t.preOrderCheckHooks;i!==null&&Di(e,i,n)}else{let i=t.preOrderHooks;i!==null&&Li(e,i,0,n)}Tn(n)}var So=function(t){return t[t.None=0]="None",t[t.SignalBased=1]="SignalBased",t[t.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",t}(So||{});function Vs(t,e,n,r){let i=dt(null);try{let[o,s,a]=t.inputs[n],u=null;(s&So.SignalBased)!==0&&(u=e[o][rn]),u!==null&&u.transformFn!==void 0?r=u.transformFn(r):a!==null&&(r=a.call(e,r)),t.setInput!==null?t.setInput(e,u,r,n,o):dh(e,u,o,r)}finally{dt(i)}}function kd(t,e,n,r,i){let o=pn(),s=r&2;try{Tn(-1),s&&e.length>ee&&Rd(t,e,ee,!1),Tt(s?2:0,i),n(r,i)}finally{Tn(o),Tt(s?3:1,i)}}function au(t,e,n){vb(t,e,n),(n.flags&64)===64&&bb(t,e,n)}function Dd(t,e,n=dn){let r=e.localNames;if(r!==null){let i=e.index+1;for(let o=0;o<r.length;o+=2){let s=r[o+1],a=s===-1?n(e,t):t[s];t[i++]=a}}}function db(t,e,n,r){let i=r.get(d0,fd)||n===Fe.ShadowDom,o=t.selectRootElement(e,i);return pb(o),o}function pb(t){gb(t)}var gb=()=>null;function yb(t){return t==="class"?"className":t==="for"?"htmlFor":t==="formaction"?"formAction":t==="innerHtml"?"innerHTML":t==="readonly"?"readOnly":t==="tabindex"?"tabIndex":t}function Ld(t,e,n,r,i,o,s,a){if(!a&&uu(e,t,n,r,i)){Qr(e)&&mb(n,e.index);return}if(e.type&3){let u=dn(e,n);r=yb(r),i=s!=null?s(i,e.value||"",r):i,o.setProperty(u,r,i)}else e.type&12}function mb(t,e){let n=un(e,t);n[tt]&16||(n[tt]|=64)}function vb(t,e,n){let r=n.directiveStart,i=n.directiveEnd;Qr(n)&&hb(e,n,t.data[r+n.componentOffset]),t.firstCreatePass||jh(n,e);let o=n.initialInputs;for(let s=r;s<i;s++){let a=t.data[s],u=Ds(e,t,s,n);if(ni(u,e),o!==null&&wb(e,s-r,u,a,n,o),Un(a)){let f=un(n.index,e);f[Zt]=Ds(e,t,s,n)}}}function bb(t,e,n){let r=n.directiveStart,i=n.directiveEnd,o=n.index,s=wv();try{Tn(o);for(let a=r;a<i;a++){let u=t.data[a],f=e[a];Cs(a),(u.hostBindings!==null||u.hostVars!==0||u.hostAttrs!==null)&&_b(u,f)}}finally{Tn(-1),Cs(s)}}function _b(t,e){t.hostBindings!==null&&t.hostBindings(1,e)}function Md(t,e){let n=t.directiveRegistry,r=null;if(n)for(let i=0;i<n.length;i++){let o=n[i];X0(e,o.selectors,!1)&&(r??=[],Un(o)?r.unshift(o):r.push(o))}return r}function wb(t,e,n,r,i,o){let s=o[e];if(s!==null)for(let a=0;a<s.length;a+=2){let u=s[a],f=s[a+1];Vs(r,n,u,f)}}function Pd(t,e){let n=t[Pr],r=n?n.get(ei,null):null;r&&r.handleError(e)}function uu(t,e,n,r,i){let o=t.inputs?.[r],s=t.hostDirectiveInputs?.[r],a=!1;if(s)for(let u=0;u<s.length;u+=2){let f=s[u],h=s[u+1],d=e.data[f];Vs(d,n[f],h,i),a=!0}if(o)for(let u of o){let f=n[u],h=e.data[u];Vs(h,f,r,i),a=!0}return a}function Eb(t,e){let n=un(e,t),r=n[ct];Sb(r,n);let i=n[Ye];i!==null&&n[Mr]===null&&(n[Mr]=dd(i,n[Pr])),Tt(18),lu(r,n,n[Zt]),Tt(19,n[Zt])}function Sb(t,e){for(let n=e.length;n<t.blueprint.length;n++)e.push(t.blueprint[n])}function lu(t,e,n){qa(e);try{let r=t.viewQuery;r!==null&&Us(1,r,n);let i=t.template;i!==null&&kd(t,e,i,1,n),t.firstCreatePass&&(t.firstCreatePass=!1),e[sr]?.finishViewCreation(t),t.staticContentQueries&&pd(t,e),t.staticViewQueries&&Us(2,t.viewQuery,n);let o=t.components;o!==null&&Ib(e,o)}catch(r){throw t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),r}finally{e[tt]&=-5,Ga()}}function Ib(t,e){for(let n=0;n<e.length;n++)Eb(t,e[n])}function cu(t,e,n,r){let i=dt(null);try{let o=e.tView,s=t[tt]&4096?4096:16,a=su(t,o,n,s,null,e,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),u=t[e.index];a[or]=u;let f=t[sr];return f!==null&&(a[sr]=f.createEmbeddedView(o)),lu(o,a,n),a}finally{dt(i)}}function fu(t,e){return!e||e.firstChild===null||ed(t)}var Nb;function hu(t,e){return Nb(t,e)}var En=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(En||{});function jd(t){return(t.flags&32)===32}function Zn(t,e,n,r,i){if(r!=null){let o,s=!1;jn(r)?o=r:Sn(r)&&(s=!0,r=r[Ye]);let a=Ge(r);t===0&&n!==null?i==null?xd(e,n,a):Bs(e,n,a,i||null,!0):t===1&&n!==null?Bs(e,n,a,i||null,!0):t===2?ab(e,a,s):t===3&&e.destroyNode(a),o!=null&&jb(e,t,o,n,i)}}function xb(t,e){Ud(t,e),e[Ye]=null,e[je]=null}function Ob(t,e,n,r,i,o){r[Ye]=i,r[je]=e,Io(t,r,n,1,i,o)}function Ud(t,e){e[qe].changeDetectionScheduler?.notify(9),Io(t,e,e[te],2,null,null)}function Tb(t){let e=t[jr];if(!e)return ts(t[ct],t);for(;e;){let n=null;if(Sn(e))n=e[jr];else{let r=e[se];r&&(n=r)}if(!n){for(;e&&!e[Oe]&&e!==t;)Sn(e)&&ts(e[ct],e),e=e[_e];e===null&&(e=t),Sn(e)&&ts(e[ct],e),n=e&&e[Oe]}e=n}}function du(t,e){let n=t[Wi],r=n.indexOf(e);n.splice(r,1)}function pu(t,e){if(Xr(e))return;let n=e[te];n.destroyNode&&Io(t,e,n,3,null,null),Tb(e)}function ts(t,e){if(Xr(e))return;let n=dt(null);try{e[tt]&=-129,e[tt]|=256,e[ue]&&mf(e[ue]),Ab(t,e),Cb(t,e),e[ct].type===1&&e[te].destroy();let r=e[or];if(r!==null&&jn(e[_e])){r!==e[_e]&&du(r,e);let i=e[sr];i!==null&&i.detachView(t)}Ps(e)}finally{dt(n)}}function Cb(t,e){let n=t.cleanup,r=e[qi];if(n!==null)for(let s=0;s<n.length-1;s+=2)if(typeof n[s]=="string"){let a=n[s+3];a>=0?r[a]():r[-a].unsubscribe(),s+=2}else{let a=r[n[s+1]];n[s].call(a)}r!==null&&(e[qi]=null);let i=e[sn];if(i!==null){e[sn]=null;for(let s=0;s<i.length;s++){let a=i[s];a()}}let o=e[Gi];if(o!==null){e[Gi]=null;for(let s of o)s.destroy()}}function Ab(t,e){let n;if(t!=null&&(n=t.destroyHooks)!=null)for(let r=0;r<n.length;r+=2){let i=e[n[r]];if(!(i instanceof Ya)){let o=n[r+1];if(Array.isArray(o))for(let s=0;s<o.length;s+=2){let a=i[o[s]],u=o[s+1];Tt(4,a,u);try{u.call(a)}finally{Tt(5,a,u)}}else{Tt(4,i,o);try{o.call(i)}finally{Tt(5,i,o)}}}}}function Rb(t,e,n){return kb(t,e.parent,n)}function kb(t,e,n){let r=e;for(;r!==null&&r.type&168;)e=r,r=e.parent;if(r===null)return n[Ye];if(Qr(r)){let{encapsulation:i}=t.data[r.directiveStart+r.componentOffset];if(i===Fe.None||i===Fe.Emulated)return null}return dn(r,n)}function Db(t,e,n){return Mb(t,e,n)}function Lb(t,e,n){return t.type&40?dn(t,n):null}var Mb=Lb,Fl;function gu(t,e,n,r){let i=Rb(t,r,e),o=e[te],s=r.parent||e[je],a=Db(s,r,e);if(i!=null)if(Array.isArray(n))for(let u=0;u<n.length;u++)Vl(o,i,n[u],a,!1);else Vl(o,i,n,a,!1);Fl!==void 0&&Fl(o,r,e,n,i)}function Nr(t,e){if(e!==null){let n=e.type;if(n&3)return dn(e,t);if(n&4)return Fs(-1,t[e.index]);if(n&8){let r=e.child;if(r!==null)return Nr(t,r);{let i=t[e.index];return jn(i)?Fs(-1,i):Ge(i)}}else{if(n&128)return Nr(t,e.next);if(n&32)return hu(e,t)()||Ge(t[e.index]);{let r=Bd(t,e);if(r!==null){if(Array.isArray(r))return r[0];let i=On(t[Pe]);return Nr(i,r)}else return Nr(t,e.next)}}}return null}function Bd(t,e){if(e!==null){let n=t[Pe][je],r=e.projection;return n.projection[r]}return null}function Fs(t,e){let n=se+t+1;if(n<e.length){let r=e[n],i=r[ct].firstChild;if(i!==null)return Nr(r,i)}return e[Ur]}function yu(t,e,n,r,i,o,s){for(;n!=null;){if(n.type===128){n=n.next;continue}let a=r[n.index],u=n.type;if(s&&e===0&&(a&&ni(Ge(a),r),n.flags|=2),!jd(n))if(u&8)yu(t,e,n.child,r,i,o,!1),Zn(e,t,i,a,o);else if(u&32){let f=hu(n,r),h;for(;h=f();)Zn(e,t,i,h,o);Zn(e,t,i,a,o)}else u&16?Pb(t,e,r,n,i,o):Zn(e,t,i,a,o);n=s?n.projectionNext:n.next}}function Io(t,e,n,r,i,o){yu(n,r,t.firstChild,e,i,o,!1)}function Pb(t,e,n,r,i,o){let s=n[Pe],a=s[je].projection[r.projection];if(Array.isArray(a))for(let u=0;u<a.length;u++){let f=a[u];Zn(e,t,i,f,o)}else{let u=a,f=s[_e];ed(r)&&(u.flags|=128),yu(t,e,u,f,i,o,!0)}}function jb(t,e,n,r,i){let o=n[Ur],s=Ge(n);o!==s&&Zn(e,t,r,o,i);for(let a=se;a<n.length;a++){let u=n[a];Io(u[ct],u,t,e,r,o)}}function Ub(t,e,n,r,i){if(e)i?t.addClass(n,r):t.removeClass(n,r);else{let o=r.indexOf("-")===-1?void 0:En.DashCase;i==null?t.removeStyle(n,r,o):(typeof i=="string"&&i.endsWith("!important")&&(i=i.slice(0,-10),o|=En.Important),t.setStyle(n,r,i,o))}}function Qi(t,e,n,r,i=!1){for(;n!==null;){if(n.type===128){n=i?n.projectionNext:n.next;continue}let o=e[n.index];o!==null&&r.push(Ge(o)),jn(o)&&Bb(o,r);let s=n.type;if(s&8)Qi(t,e,n.child,r);else if(s&32){let a=hu(n,e),u;for(;u=a();)r.push(u)}else if(s&16){let a=Bd(e,n);if(Array.isArray(a))r.push(...a);else{let u=On(e[Pe]);Qi(u[ct],u,a,r,!0)}}n=i?n.projectionNext:n.next}return r}function Bb(t,e){for(let n=se;n<t.length;n++){let r=t[n],i=r[ct].firstChild;i!==null&&Qi(r[ct],r,i,e)}t[Ur]!==t[Ye]&&e.push(t[Ur])}function Vd(t){if(t[Jo]!==null){for(let e of t[Jo])e.impl.addSequence(e);t[Jo].length=0}}var Fd=[];function Vb(t){return t[ue]??Fb(t)}function Fb(t){let e=Fd.pop()??Object.create(Hb);return e.lView=t,e}function $b(t){t.lView[ue]!==t&&(t.lView=null,Fd.push(t))}var Hb=Dt(k({},Ca),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:t=>{mo(t.lView)},consumerOnSignalRead(){this.lView[ue]=this}});function zb(t){let e=t[ue]??Object.create(qb);return e.lView=t,e}var qb=Dt(k({},Ca),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:t=>{let e=On(t.lView);for(;e&&!$d(e[ct]);)e=On(e);e&&Ha(e)},consumerOnSignalRead(){this.lView[ue]=this}});function $d(t){return t.type!==2}function Hd(t){if(t[Gi]===null)return;let e=!0;for(;e;){let n=!1;for(let r of t[Gi])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));e=n&&!!(t[tt]&8192)}}var Gb=100;function zd(t,e=!0,n=0){let r=t[qe].rendererFactory,i=!1;i||r.begin?.();try{Wb(t,n)}catch(o){throw e&&Pd(t,o),o}finally{i||r.end?.()}}function Wb(t,e){let n=Sh();try{Sl(!0),$s(t,e);let r=0;for(;yo(t);){if(r===Gb)throw new _t(103,!1);r++,$s(t,1)}}finally{Sl(n)}}function Zb(t,e,n,r){if(Xr(e))return;let i=e[tt],o=!1,s=!1;qa(e);let a=!0,u=null,f=null;o||($d(t)?(f=Vb(e),u=cl(f)):dy()===null?(a=!1,f=zb(e),u=cl(f)):e[ue]&&(mf(e[ue]),e[ue]=null));try{vh(e),vv(t.bindingStartIndex),n!==null&&kd(t,e,n,2,r);let h=(i&3)===3;if(!o)if(h){let _=t.preOrderCheckHooks;_!==null&&Di(e,_,null)}else{let _=t.preOrderHooks;_!==null&&Li(e,_,0,null),Ko(e,0)}if(s||Yb(e),Hd(e),qd(e,0),t.contentQueries!==null&&pd(t,e),!o)if(h){let _=t.contentCheckHooks;_!==null&&Di(e,_)}else{let _=t.contentHooks;_!==null&&Li(e,_,1),Ko(e,1)}Kb(t,e);let d=t.components;d!==null&&Wd(e,d,0);let b=t.viewQuery;if(b!==null&&Us(2,b,r),!o)if(h){let _=t.viewCheckHooks;_!==null&&Di(e,_)}else{let _=t.viewHooks;_!==null&&Li(e,_,2),Ko(e,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),e[Yo]){for(let _ of e[Yo])_();e[Yo]=null}o||(Vd(e),e[tt]&=-73)}catch(h){throw o||mo(e),h}finally{f!==null&&(vy(f,u),a&&$b(f)),Ga()}}function qd(t,e){for(let n=id(t);n!==null;n=od(n))for(let r=se;r<n.length;r++){let i=n[r];Gd(i,e)}}function Yb(t){for(let e=id(t);e!==null;e=od(e)){if(!(e[tt]&2))continue;let n=e[Wi];for(let r=0;r<n.length;r++){let i=n[r];Ha(i)}}}function Jb(t,e,n){Tt(18);let r=un(e,t);Gd(r,n),Tt(19,r[Zt])}function Gd(t,e){$a(t)&&$s(t,e)}function $s(t,e){let n=t[ct],r=t[tt],i=t[ue],o=!!(e===0&&r&16);if(o||=!!(r&64&&e===0),o||=!!(r&1024),o||=!!(i?.dirty&&yf(i)),o||=!1,i&&(i.dirty=!1),t[tt]&=-9217,o)Zb(n,t,n.template,t[Zt]);else if(r&8192){Hd(t),qd(t,1);let s=n.components;s!==null&&Wd(t,s,1),Vd(t)}}function Wd(t,e,n){for(let r=0;r<e.length;r++)Jb(t,e[r],n)}function Kb(t,e){let n=t.hostBindingOpCodes;if(n!==null)try{for(let r=0;r<n.length;r++){let i=n[r];if(i<0)Tn(~i);else{let o=i,s=n[++r],a=n[++r];_v(s,o);let u=e[o];Tt(24,u),a(2,u),Tt(25,u)}}}finally{Tn(-1)}}function mu(t,e){let n=Sh()?64:1088;for(t[qe].changeDetectionScheduler?.notify(e);t;){t[tt]|=n;let r=On(t);if(Zi(t)&&!r)return t;t=r}return null}function Qb(t,e,n,r){return[t,!0,0,e,null,r,null,n,null,null]}function Zd(t,e){let n=se+e;if(n<t.length)return t[n]}function vu(t,e,n,r=!0){let i=e[ct];if(Xb(i,e,t,n),r){let s=Fs(n,t),a=e[te],u=a.parentNode(t[Ur]);u!==null&&Ob(i,t[je],a,e,u,s)}let o=e[Mr];o!==null&&o.firstChild!==null&&(o.firstChild=null)}function Yd(t,e){let n=bu(t,e);return n!==void 0&&pu(n[ct],n),n}function bu(t,e){if(t.length<=se)return;let n=se+e,r=t[n];if(r){let i=r[or];i!==null&&i!==t&&du(i,r),e>0&&(t[n-1][Oe]=r[Oe]);let o=Xf(t,se+e);xb(r[ct],r);let s=o[sr];s!==null&&s.detachView(o[ct]),r[_e]=null,r[Oe]=null,r[tt]&=-129}return r}function Xb(t,e,n,r){let i=se+r,o=n.length;r>0&&(n[i-1][Oe]=e),r<o-se?(e[Oe]=n[i],Lm(n,se+r,e)):(n.push(e),e[Oe]=null),e[_e]=n;let s=e[or];s!==null&&n!==s&&Jd(s,e);let a=e[sr];a!==null&&a.insertView(t),Os(e),e[tt]|=128}function Jd(t,e){let n=t[Wi],r=e[_e];if(Sn(r))t[tt]|=2;else{let i=r[_e][Pe];e[Pe]!==i&&(t[tt]|=2)}n===null?t[Wi]=[e]:n.push(e)}var t_=class{_lView;_cdRefInjectingView;notifyErrorHandler;_appRef=null;_attachedToViewContainer=!1;get rootNodes(){let t=this._lView,e=t[ct];return Qi(e,t,e.firstChild,[])}constructor(t,e,n=!0){this._lView=t,this._cdRefInjectingView=e,this.notifyErrorHandler=n}get context(){return this._lView[Zt]}get dirty(){return!!(this._lView[tt]&9280)||!!this._lView[ue]?.dirty}set context(t){this._lView[Zt]=t}get destroyed(){return Xr(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[_e];if(jn(t)){let e=t[Km],n=e?e.indexOf(this):-1;n>-1&&(bu(t,n),Xf(e,n))}this._attachedToViewContainer=!1}pu(this._lView[ct],this._lView)}onDestroy(t){bh(this._lView,t)}markForCheck(){mu(this._cdRefInjectingView||this._lView,4)}markForRefresh(){Ha(this._cdRefInjectingView||this._lView)}detach(){this._lView[tt]&=-129}reattach(){Os(this._lView),this._lView[tt]|=128}detectChanges(){this._lView[tt]|=1024,zd(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new _t(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=Zi(this._lView),e=this._lView[or];e!==null&&!t&&du(e,this._lView),Ud(this._lView[ct],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new _t(902,!1);this._appRef=t;let e=Zi(this._lView),n=this._lView[or];n!==null&&!e&&Jd(n,this._lView),Os(this._lView)}};function No(t,e,n,r,i){let o=t.data[e];if(o===null)o=e_(t,e,n,r,i),bv()&&(o.flags|=32);else if(o.type&64){o.type=n,o.value=r,o.attrs=i;let s=yv();o.injectorIndex=s===null?-1:s.injectorIndex}return yr(o,!0),o}function e_(t,e,n,r,i){let o=wh(),s=Eh(),a=s?o:o&&o.parent,u=t.data[e]=r_(t,a,n,e,r,i);return n_(t,u,o,s),u}function n_(t,e,n,r){t.firstChild===null&&(t.firstChild=e),n!==null&&(r?n.child==null&&e.parent!==null&&(n.child=e):n.next===null&&(n.next=e,e.prev=n))}function r_(t,e,n,r,i,o){let s=e?e.injectorIndex:-1,a=0;return dv()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:i,attrs:o,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}var DO=new RegExp(`^(\\d+)*(${h0}|${f0})*(.*)`),i_=()=>null;function _u(t,e){return i_(t,e)}var o_=class{},Kd=class{},s_=class{resolveComponentFactory(t){throw Error(`No component factory found for ${xe(t)}.`)}},ii=class{static NULL=new s_},wu=class{},a_=(()=>{class t{static \u0275prov=zt({token:t,providedIn:"root",factory:()=>null})}return t})();function $l(t,e,n){let r=n?t.styles:null,i=n?t.classes:null,o=0;if(e!==null)for(let s=0;s<e.length;s++){let a=e[s];if(typeof a=="number")o=a;else if(o==1)i=_s(i,a);else if(o==2){let u=a,f=e[++s];r=_s(r,u+": "+f+";")}}n?t.styles=r:t.stylesWithoutHost=r,n?t.classes=i:t.classesWithoutHost=i}function xo(t,e=lt.Default){let n=Ot();if(n===null)return xt(t,e);let r=gr();return $h(r,n,Ie(t),e)}function Qd(t,e,n,r,i){let o=r===null?null:{"":-1},s=i(t,n);if(s!==null){let a,u=null,f=null,h=l_(s);h===null?a=s:[a,u,f]=h,h_(t,e,n,a,o,u,f)}o!==null&&r!==null&&u_(n,r,o)}function u_(t,e,n){let r=t.localNames=[];for(let i=0;i<e.length;i+=2){let o=n[e[i+1]];if(o==null)throw new _t(-301,!1);r.push(e[i],o)}}function l_(t){let e=null,n=!1;for(let s=0;s<t.length;s++){let a=t[s];if(s===0&&Un(a)&&(e=a),a.findHostDirectiveDefs!==null){n=!0;break}}if(!n)return null;let r=null,i=null,o=null;for(let s of t)s.findHostDirectiveDefs!==null&&(r??=[],i??=new Map,o??=new Map,c_(s,r,o,i)),s===e&&(r??=[],r.push(s));return r!==null?(r.push(...e===null?t:t.slice(1)),[r,i,o]):null}function c_(t,e,n,r){let i=e.length;t.findHostDirectiveDefs(t,e,r),n.set(t,[i,e.length-1])}function f_(t,e,n){e.componentOffset=n,(t.components??=[]).push(e.index)}function h_(t,e,n,r,i,o,s){let a=r.length,u=!1;for(let b=0;b<a;b++){let _=r[b];!u&&Un(_)&&(u=!0,f_(t,n,b)),Vv(jh(n,e),t,_.type)}v_(n,t.data.length,a);for(let b=0;b<a;b++){let _=r[b];_.providersResolver&&_.providersResolver(_)}let f=!1,h=!1,d=Cd(t,e,a,null);a>0&&(n.directiveToIndex=new Map);for(let b=0;b<a;b++){let _=r[b];if(n.mergedAttrs=Ja(n.mergedAttrs,_.hostAttrs),p_(t,n,e,d,_),m_(d,_,i),s!==null&&s.has(_)){let[T,D]=s.get(_);n.directiveToIndex.set(_.type,[d,T+n.directiveStart,D+n.directiveStart])}else(o===null||!o.has(_))&&n.directiveToIndex.set(_.type,d);_.contentQueries!==null&&(n.flags|=4),(_.hostBindings!==null||_.hostAttrs!==null||_.hostVars!==0)&&(n.flags|=64);let w=_.type.prototype;!f&&(w.ngOnChanges||w.ngOnInit||w.ngDoCheck)&&((t.preOrderHooks??=[]).push(n.index),f=!0),!h&&(w.ngOnChanges||w.ngDoCheck)&&((t.preOrderCheckHooks??=[]).push(n.index),h=!0),d++}d_(t,n,o)}function d_(t,e,n){for(let r=e.directiveStart;r<e.directiveEnd;r++){let i=t.data[r];if(n===null||!n.has(i))Hl(0,e,i,r),Hl(1,e,i,r),ql(e,r,!1);else{let o=n.get(i);zl(0,e,o,r),zl(1,e,o,r),ql(e,r,!0)}}}function Hl(t,e,n,r){let i=t===0?n.inputs:n.outputs;for(let o in i)if(i.hasOwnProperty(o)){let s;t===0?s=e.inputs??={}:s=e.outputs??={},s[o]??=[],s[o].push(r),Xd(e,o)}}function zl(t,e,n,r){let i=t===0?n.inputs:n.outputs;for(let o in i)if(i.hasOwnProperty(o)){let s=i[o],a;t===0?a=e.hostDirectiveInputs??={}:a=e.hostDirectiveOutputs??={},a[s]??=[],a[s].push(r,o),Xd(e,s)}}function Xd(t,e){e==="class"?t.flags|=8:e==="style"&&(t.flags|=16)}function ql(t,e,n){let{attrs:r,inputs:i,hostDirectiveInputs:o}=t;if(r===null||!n&&i===null||n&&o===null||iu(t)){t.initialInputs??=[],t.initialInputs.push(null);return}let s=null,a=0;for(;a<r.length;){let u=r[a];if(u===0){a+=4;continue}else if(u===5){a+=2;continue}else if(typeof u=="number")break;if(!n&&i.hasOwnProperty(u)){let f=i[u];for(let h of f)if(h===e){s??=[],s.push(u,r[a+1]);break}}else if(n&&o.hasOwnProperty(u)){let f=o[u];for(let h=0;h<f.length;h+=2)if(f[h]===e){s??=[],s.push(f[h+1],r[a+1]);break}}a+=2}t.initialInputs??=[],t.initialInputs.push(s)}function p_(t,e,n,r,i){t.data[r]=i;let o=i.factory||(i.factory=rr(i.type,!0)),s=new Ya(o,Un(i),xo);t.blueprint[r]=s,n[r]=s,g_(t,e,r,Cd(t,n,i.hostVars,Ee),i)}function g_(t,e,n,r,i){let o=i.hostBindings;if(o){let s=t.hostBindingOpCodes;s===null&&(s=t.hostBindingOpCodes=[]);let a=~e.index;y_(s)!=a&&s.push(a),s.push(n,r,o)}}function y_(t){let e=t.length;for(;e>0;){let n=t[--e];if(typeof n=="number"&&n<0)return n}return 0}function m_(t,e,n){if(n){if(e.exportAs)for(let r=0;r<e.exportAs.length;r++)n[e.exportAs[r]]=t;Un(e)&&(n[""]=t)}}function v_(t,e,n){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+n,t.providerIndexes=e}function tp(t,e,n,r,i,o,s,a){let u=e.consts,f=ar(u,s),h=No(e,t,2,r,f);return o&&Qd(e,n,h,ar(u,a),i),h.mergedAttrs=Ja(h.mergedAttrs,h.attrs),h.attrs!==null&&$l(h,h.attrs,!1),h.mergedAttrs!==null&&$l(h,h.mergedAttrs,!0),e.queries!==null&&e.queries.elementStart(e,h),h}function ep(t,e){Dh(t,e),hh(e)&&t.queries.elementEnd(e)}var b_=class extends ii{ngModule;constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){let e=po(t);return new N_(e,this.ngModule)}};function __(t){return Object.keys(t).map(e=>{let[n,r,i]=t[e],o={propName:n,templateName:e,isSignal:(r&So.SignalBased)!==0};return i&&(o.transform=i),o})}function w_(t){return Object.keys(t).map(e=>({propName:t[e],templateName:e}))}function E_(t,e,n){let r=e instanceof Lr?e:e?.injector;return r&&t.getStandaloneInjector!==null&&(r=t.getStandaloneInjector(r)||r),r?new Lv(n,r):n}function S_(t){let e=t.get(wu,null);if(e===null)throw new _t(407,!1);let n=t.get(a_,null),r=t.get(ti,null);return{rendererFactory:e,sanitizer:n,changeDetectionScheduler:r}}function I_(t,e){let n=(t.selectors[0][0]||"div").toLowerCase();return Nd(e,n,n==="svg"?iv:n==="math"?ov:null)}var N_=class extends Kd{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;get inputs(){return __(this.componentDef.inputs)}get outputs(){return w_(this.componentDef.outputs)}constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=rb(t.selectors),this.ngContentSelectors=t.ngContentSelectors??[],this.isBoundToModule=!!e}create(t,e,n,r){Tt(22);let i=dt(null);try{let o=this.componentDef,s=n?["ng-version","19.2.0"]:ib(this.componentDef.selectors[0]),a=ou(0,null,null,1,0,null,null,null,null,[s],null),u=E_(o,r||this.ngModule,t),f=S_(u),h=f.rendererFactory.createRenderer(null,o),d=n?db(h,n,o.encapsulation,u):I_(o,h),b=su(null,a,null,512|Td(o),null,null,f,h,u,null,dd(d,u,!0));b[ee]=d,qa(b);let _=null;try{let w=tp(ee,a,b,"#host",()=>[this.componentDef],!0,0);d&&(Od(h,d,w),ni(d,b)),au(a,b,w),gd(a,w,b),ep(a,w),e!==void 0&&O_(w,this.ngContentSelectors,e),_=un(w.index,b),b[Zt]=_[Zt],lu(a,b,null)}catch(w){throw _!==null&&Ps(_),Ps(b),w}finally{Tt(23),Ga()}return new x_(this.componentType,b)}finally{dt(i)}}},x_=class extends o_{_rootLView;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(t,e){super(),this._rootLView=e,this._tNode=Fa(e[ct],ee),this.location=Xh(this._tNode,e),this.instance=un(this._tNode.index,e)[Zt],this.hostView=this.changeDetectorRef=new t_(e,void 0,!1),this.componentType=t}setInput(t,e){let n=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),e))return;let r=this._rootLView,i=uu(n,r[ct],r,t,e);this.previousInputValues.set(t,e);let o=un(n.index,r);mu(o,1)}get injector(){return new zh(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}};function O_(t,e,n){let r=t.projection=[];for(let i=0;i<e.length;i++){let o=n[i];r.push(o!=null&&o.length?Array.from(o):null)}}var T_=()=>!1;function C_(t,e,n){return T_(t,e,n)}var Hs=class{},np=class extends Hs{injector;componentFactoryResolver=new b_(this);instance=null;constructor(t){super();let e=new Ba([...t.providers,{provide:Hs,useValue:this},{provide:ii,useValue:this.componentFactoryResolver}],t.parent||Ua(),t.debugName,new Set(["environment"]));this.injector=e,t.runEnvironmentInitializers&&e.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function A_(t,e,n=null){return new np({providers:t,parent:e,debugName:n,runEnvironmentInitializers:!0}).injector}var R_=(()=>{class t{_injector;cachedInjectors=new Map;constructor(n){this._injector=n}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=sh(!1,n.type),i=r.length>0?A_([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,i)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=zt({token:t,providedIn:"environment",factory:()=>new t(xt(Lr))})}return t})();function rp(t){return pm(()=>{let e=P_(t),n=Dt(k({},e),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===nd.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&t.dependencies||null,getStandaloneInjector:e.standalone?i=>i.get(R_).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||Fe.Emulated,styles:t.styles||ze,_:null,schemas:t.schemas||null,tView:null,id:""});e.standalone&&wo("NgStandalone"),j_(n);let r=t.dependencies;return n.directiveDefs=Gl(r,!1),n.pipeDefs=Gl(r,!0),n.id=U_(n),n})}function k_(t){return po(t)||ih(t)}function D_(t){return t!==null}function L_(t,e){if(t==null)return ir;let n={};for(let r in t)if(t.hasOwnProperty(r)){let i=t[r],o,s,a,u;Array.isArray(i)?(a=i[0],o=i[1],s=i[2]??o,u=i[3]||null):(o=i,s=i,a=So.None,u=null),n[o]=[r,a,u],e[o]=s}return n}function M_(t){if(t==null)return ir;let e={};for(let n in t)t.hasOwnProperty(n)&&(e[t[n]]=n);return e}function Eu(t){return{type:t.type,name:t.name,factory:null,pure:t.pure!==!1,standalone:t.standalone??!0,onDestroy:t.type.prototype.ngOnDestroy||null}}function P_(t){let e={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputConfig:t.inputs||ir,exportAs:t.exportAs||null,standalone:t.standalone??!0,signals:t.signals===!0,selectors:t.selectors||ze,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:L_(t.inputs,e),outputs:M_(t.outputs),debugInfo:null}}function j_(t){t.features?.forEach(e=>e(t))}function Gl(t,e){if(!t)return null;let n=e?oh:k_;return()=>(typeof t=="function"?t():t).map(r=>n(r)).filter(D_)}function U_(t){let e=0,n=typeof t.consts=="function"?"":t.consts,r=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,n,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery];for(let i of r.join("|"))e=Math.imul(31,e)+i.charCodeAt(0)<<0;return e+=2147483648,"c"+e}function Su(t,e,n){return t[e]=n}function B_(t,e){return t[e]}function We(t,e,n){let r=t[e];return Object.is(r,n)?!1:(t[e]=n,!0)}function V_(t,e,n,r){let i=We(t,e,n);return We(t,e+1,r)||i}function F_(t,e,n,r,i,o,s,a,u){let f=e.consts,h=No(e,t,4,s||null,a||null);_h()&&Qd(e,n,h,ar(f,u),Md),h.mergedAttrs=Ja(h.mergedAttrs,h.attrs),Dh(e,h);let d=h.tView=ou(2,h,r,i,o,e.directiveRegistry,e.pipeRegistry,null,e.schemas,f,null);return e.queries!==null&&(e.queries.template(e,h),d.queries=e.queries.embeddedTView(h)),h}function zs(t,e,n,r,i,o,s,a,u,f){let h=n+ee,d=e.firstCreatePass?F_(h,e,t,r,i,o,s,a,u):e.data[h];yr(d,!1);let b=$_(e,t,d,n);Wa()&&gu(e,t,b,d),ni(b,t);let _=Qb(b,t,b,d);return t[h]=_,Ad(t,_),C_(_,d,t),Va(d)&&au(e,t,d),u!=null&&Dd(t,d,f),d}function ip(t,e,n,r,i,o,s,a){let u=Ot(),f=fe(),h=ar(f.consts,o);return zs(u,f,t,e,n,r,i,h,s,a),ip}var $_=H_;function H_(t,e,n,r){return Za(!0),e[te].createComment("")}var z_=new Ct(""),q_=(()=>{class t{static \u0275prov=zt({token:t,providedIn:"root",factory:()=>new G_})}return t})(),G_=class{queuedEffectCount=0;queues=new Map;schedule(t){this.enqueue(t)}remove(t){let e=t.zone,n=this.queues.get(e);n.has(t)&&(n.delete(t),this.queuedEffectCount--)}enqueue(t){let e=t.zone;this.queues.has(e)||this.queues.set(e,new Set);let n=this.queues.get(e);n.has(t)||(this.queuedEffectCount++,n.add(t))}flush(){for(;this.queuedEffectCount>0;)for(let[t,e]of this.queues)t===null?this.flushQueue(e):t.run(()=>this.flushQueue(e))}flushQueue(t){for(let e of t)t.delete(e),this.queuedEffectCount--,e.run()}};function op(t){return!!t&&typeof t.then=="function"}function W_(t){return!!t&&typeof t.subscribe=="function"}var Z_=new Ct(""),sp=(()=>{class t{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=St(Z_,{optional:!0})??[];injector=St(bo);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let i of this.appInits){let o=lh(this.injector,i);if(op(o))n.push(o);else if(W_(o)){let s=new Promise((a,u)=>{o.subscribe({complete:a,error:u})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(i=>{this.reject(i)}),n.length===0&&r(),this.initialized=!0}static \u0275fac=function(n){return new(n||t)};static \u0275prov=zt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Y_=new Ct("");function J_(){_y(()=>{throw new _t(600,!1)})}function K_(t){return t.isBoundToModule}var Q_=10,ur=(()=>{class t{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=St(r0);afterRenderManager=St(p0);zonelessEnabled=St(Ka);rootEffectScheduler=St(q_);dirtyFlags=0;tracingSnapshot=null;externalTestViews=new Set;afterTick=new Jr;get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];isStable=St(_o).hasPendingTasks.pipe(zf(n=>!n));constructor(){St(nu,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:i=>{i&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=St(Lr);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){Tt(10);let i=n instanceof Kd;if(!this._injector.get(sp).done){let d=!i&&jm(n),b=!1;throw new _t(405,b)}let o;i?o=n:o=this._injector.get(ii).resolveComponentFactory(n),this.componentTypes.push(o.componentType);let s=K_(o)?void 0:this._injector.get(Hs),a=r||o.selector,u=o.create(bo.NULL,[],a,s),f=u.location.nativeElement,h=u.injector.get(z_,null);return h?.registerApplication(f),u.onDestroy(()=>{this.detachView(u.hostView),Pi(this.components,u),h?.unregisterApplication(f)}),this._loadComponent(u),Tt(11,u),u}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){Tt(12),this.tracingSnapshot!==null?this.tracingSnapshot.run(hd.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw new _t(101,!1);let n=dt(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,dt(n),this.afterTick.next(),Tt(13)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(wu,null,{optional:!0}));let n=0;for(;this.dirtyFlags!==0&&n++<Q_;)Tt(14),this.synchronizeOnce(),Tt(15)}synchronizeOnce(){if(this.dirtyFlags&16&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush()),this.dirtyFlags&7){let n=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:r,notifyErrorHandler:i}of this.allViews)X_(r,i,n,this.zonelessEnabled);if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&23)return}else this._rendererFactory?.begin?.(),this._rendererFactory?.end?.();this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:n})=>yo(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;Pi(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(Y_,[]).forEach(r=>r(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>Pi(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new _t(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(n){return new(n||t)};static \u0275prov=zt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Pi(t,e){let n=t.indexOf(e);n>-1&&t.splice(n,1)}function X_(t,e,n,r){!n&&!yo(t)||zd(t,e,n&&!r?0:1)}function ap(t,e,n,r){return We(t,vo(),n)?e+fo(n)+r:Ee}function wi(t,e){return t<<17|e<<2}function Cn(t){return t>>17&32767}function t1(t){return(t&2)==2}function e1(t,e){return t&131071|e<<17}function qs(t){return t|2}function lr(t){return(t&131068)>>2}function es(t,e){return t&-131069|e<<2}function n1(t){return(t&1)===1}function Gs(t){return t|1}function r1(t,e,n,r,i,o){let s=o?e.classBindings:e.styleBindings,a=Cn(s),u=lr(s);t[r]=n;let f=!1,h;if(Array.isArray(n)){let d=n;h=d[1],(h===null||Kr(d,h)>0)&&(f=!0)}else h=n;if(i)if(u!==0){let d=Cn(t[a+1]);t[r+1]=wi(d,a),d!==0&&(t[d+1]=es(t[d+1],r)),t[a+1]=e1(t[a+1],r)}else t[r+1]=wi(a,0),a!==0&&(t[a+1]=es(t[a+1],r)),a=r;else t[r+1]=wi(u,0),a===0?a=r:t[u+1]=es(t[u+1],r),u=r;f&&(t[r+1]=qs(t[r+1])),Wl(t,h,r,!0),Wl(t,h,r,!1),i1(e,h,t,r,o),s=wi(a,u),o?e.classBindings=s:e.styleBindings=s}function i1(t,e,n,r,i){let o=i?t.residualClasses:t.residualStyles;o!=null&&typeof e=="string"&&Kr(o,e)>=0&&(n[r+1]=Gs(n[r+1]))}function Wl(t,e,n,r){let i=t[n+1],o=e===null,s=r?Cn(i):lr(i),a=!1;for(;s!==0&&(a===!1||o);){let u=t[s],f=t[s+1];o1(u,e)&&(a=!0,t[s+1]=r?Gs(f):qs(f)),s=r?Cn(f):lr(f)}a&&(t[n+1]=r?qs(i):Gs(i))}function o1(t,e){return t===null||e==null||(Array.isArray(t)?t[1]:t)===e?!0:Array.isArray(t)&&typeof e=="string"?Kr(t,e)>=0:!1}var re={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function s1(t){return t.substring(re.key,re.keyEnd)}function a1(t){return t.substring(re.value,re.valueEnd)}function u1(t){return l1(t),up(t,Xi(t,0,re.textEnd))}function up(t,e){let n=re.textEnd,r=re.key=Xi(t,e,n);return n===r?-1:(r=re.keyEnd=c1(t,r,n),r=Zl(t,r,n,58),r=re.value=Xi(t,r,n),r=re.valueEnd=f1(t,r,n),Zl(t,r,n,59))}function l1(t){re.key=0,re.keyEnd=0,re.value=0,re.valueEnd=0,re.textEnd=t.length}function Xi(t,e,n){for(;e<n&&t.charCodeAt(e)<=32;)e++;return e}function c1(t,e,n){let r;for(;e<n&&((r=t.charCodeAt(e))===45||r===95||(r&-33)>=65&&(r&-33)<=90||r>=48&&r<=57);)e++;return e}function Zl(t,e,n,r){return e=Xi(t,e,n),e<n&&e++,e}function f1(t,e,n){let r=-1,i=-1,o=-1,s=e,a=s;for(;s<n;){let u=t.charCodeAt(s++);if(u===59)return a;u===34||u===39?a=s=Yl(t,u,s,n):e===s-4&&o===85&&i===82&&r===76&&u===40?a=s=Yl(t,41,s,n):u>32&&(a=s),o=i,i=r,r=u&-33}return a}function Yl(t,e,n,r){let i=-1,o=n;for(;o<r;){let s=t.charCodeAt(o++);if(s==e&&i!==92)return o;s==92&&i===92?i=0:i=s}throw new Error}function ln(t,e,n){let r=Ot(),i=vo();if(We(r,i,e)){let o=fe(),s=Rh();Ld(o,s,r,t,e,r[te],n,!1)}return ln}function Ws(t,e,n,r,i){uu(e,t,n,i?"class":"style",r)}function Iu(t,e,n){return p1(t,e,n,!1),Iu}function h1(t){g1(fp,d1,t,!1)}function d1(t,e){for(let n=u1(e);n>=0;n=up(e,n))fp(t,s1(e),a1(e))}function p1(t,e,n,r){let i=Ot(),o=fe(),s=Ih(2);if(o.firstUpdatePass&&cp(o,t,s,r),e!==Ee&&We(i,s,e)){let a=o.data[pn()];hp(o,a,i,i[te],t,i[s+1]=E1(e,n),r,s)}}function g1(t,e,n,r){let i=fe(),o=Ih(2);i.firstUpdatePass&&cp(i,null,o,r);let s=Ot();if(n!==Ee&&We(s,o,n)){let a=i.data[pn()];if(dp(a,r)&&!lp(i,o)){let u=r?a.classesWithoutHost:a.stylesWithoutHost;u!==null&&(n=_s(u,n||"")),Ws(i,a,s,n,r)}else w1(i,a,s,s[te],s[o+1],s[o+1]=_1(t,e,n),r,o)}}function lp(t,e){return e>=t.expandoStartIndex}function cp(t,e,n,r){let i=t.data;if(i[n+1]===null){let o=i[pn()],s=lp(t,n);dp(o,r)&&e===null&&!s&&(e=!1),e=y1(i,o,e,r),r1(i,o,e,n,s,r)}}function y1(t,e,n,r){let i=Ev(t),o=r?e.residualClasses:e.residualStyles;if(i===null)(r?e.classBindings:e.styleBindings)===0&&(n=ns(null,t,e,n,r),n=Br(n,e.attrs,r),o=null);else{let s=e.directiveStylingLast;if(s===-1||t[s]!==i)if(n=ns(i,t,e,n,r),o===null){let a=m1(t,e,r);a!==void 0&&Array.isArray(a)&&(a=ns(null,t,e,a[1],r),a=Br(a,e.attrs,r),v1(t,e,r,a))}else o=b1(t,e,r)}return o!==void 0&&(r?e.residualClasses=o:e.residualStyles=o),n}function m1(t,e,n){let r=n?e.classBindings:e.styleBindings;if(lr(r)!==0)return t[Cn(r)]}function v1(t,e,n,r){let i=n?e.classBindings:e.styleBindings;t[Cn(i)]=r}function b1(t,e,n){let r,i=e.directiveEnd;for(let o=1+e.directiveStylingLast;o<i;o++){let s=t[o].hostAttrs;r=Br(r,s,n)}return Br(r,e.attrs,n)}function ns(t,e,n,r,i){let o=null,s=n.directiveEnd,a=n.directiveStylingLast;for(a===-1?a=n.directiveStart:a++;a<s&&(o=e[a],r=Br(r,o.hostAttrs,i),o!==t);)a++;return t!==null&&(n.directiveStylingLast=a),r}function Br(t,e,n){let r=n?1:2,i=-1;if(e!==null)for(let o=0;o<e.length;o++){let s=e[o];typeof s=="number"?i=s:i===r&&(Array.isArray(t)||(t=t===void 0?[]:["",t]),th(t,s,n?!0:e[++o]))}return t===void 0?null:t}function _1(t,e,n){if(n==null||n==="")return ze;let r=[],i=Re(n);if(Array.isArray(i))for(let o=0;o<i.length;o++)t(r,i[o],!0);else if(typeof i=="object")for(let o in i)i.hasOwnProperty(o)&&t(r,o,i[o]);else typeof i=="string"&&e(r,i);return r}function fp(t,e,n){th(t,e,Re(n))}function w1(t,e,n,r,i,o,s,a){i===Ee&&(i=ze);let u=0,f=0,h=0<i.length?i[0]:null,d=0<o.length?o[0]:null;for(;h!==null||d!==null;){let b=u<i.length?i[u+1]:void 0,_=f<o.length?o[f+1]:void 0,w=null,T;h===d?(u+=2,f+=2,b!==_&&(w=d,T=_)):d===null||h!==null&&h<d?(u+=2,w=h):(f+=2,w=d,T=_),w!==null&&hp(t,e,n,r,w,T,s,a),h=u<i.length?i[u]:null,d=f<o.length?o[f]:null}}function hp(t,e,n,r,i,o,s,a){if(!(e.type&3))return;let u=t.data,f=u[a+1],h=n1(f)?Jl(u,e,n,i,lr(f),s):void 0;if(!to(h)){to(o)||t1(f)&&(o=Jl(u,null,n,i,a,s));let d=yh(pn(),n);Ub(r,s,d,i,o)}}function Jl(t,e,n,r,i,o){let s=e===null,a;for(;i>0;){let u=t[i],f=Array.isArray(u),h=f?u[1]:u,d=h===null,b=n[i+1];b===Ee&&(b=d?ze:void 0);let _=d?Wo(b,r):h===r?b:void 0;if(f&&!to(_)&&(_=Wo(u,r)),to(_)&&(a=_,s))return a;let w=t[i+1];i=s?Cn(w):lr(w)}if(e!==null){let u=o?e.residualClasses:e.residualStyles;u!=null&&(a=Wo(u,r))}return a}function to(t){return t!==void 0}function E1(t,e){return t==null||t===""||(typeof e=="string"?t=t+e:typeof t=="object"&&(t=xe(Re(t)))),t}function dp(t,e){return(t.flags&(e?8:16))!==0}var S1=class{destroy(t){}updateValue(t,e){}swap(t,e){let n=Math.min(t,e),r=Math.max(t,e),i=this.detach(r);if(r-n>1){let o=this.detach(n);this.attach(n,i),this.attach(r,o)}else this.attach(n,i)}move(t,e){this.attach(e,this.detach(t))}};function rs(t,e,n,r,i){return t===n&&Object.is(e,r)?1:Object.is(i(t,e),i(n,r))?-1:0}function I1(t,e,n){let r,i,o=0,s=t.length-1,a;if(Array.isArray(e)){let u=e.length-1;for(;o<=s&&o<=u;){let f=t.at(o),h=e[o],d=rs(o,f,o,h,n);if(d!==0){d<0&&t.updateValue(o,h),o++;continue}let b=t.at(s),_=e[u],w=rs(s,b,u,_,n);if(w!==0){w<0&&t.updateValue(s,_),s--,u--;continue}let T=n(o,f),D=n(s,b),M=n(o,h);if(Object.is(M,D)){let H=n(u,_);Object.is(H,T)?(t.swap(o,s),t.updateValue(s,_),u--,s--):t.move(s,o),t.updateValue(o,h),o++;continue}if(r??=new Xl,i??=Ql(t,o,s,n),Zs(t,r,o,M))t.updateValue(o,h),o++,s++;else if(i.has(M))r.set(T,t.detach(o)),s--;else{let H=t.create(o,e[o]);t.attach(o,H),o++,s++}}for(;o<=u;)Kl(t,r,n,o,e[o]),o++}else if(e!=null){let u=e[Symbol.iterator](),f=u.next();for(;!f.done&&o<=s;){let h=t.at(o),d=f.value,b=rs(o,h,o,d,n);if(b!==0)b<0&&t.updateValue(o,d),o++,f=u.next();else{r??=new Xl,i??=Ql(t,o,s,n);let _=n(o,d);if(Zs(t,r,o,_))t.updateValue(o,d),o++,s++,f=u.next();else if(!i.has(_))t.attach(o,t.create(o,d)),o++,s++,f=u.next();else{let w=n(o,h);r.set(w,t.detach(o)),s--}}}for(;!f.done;)Kl(t,r,n,t.length,f.value),f=u.next()}for(;o<=s;)t.destroy(t.detach(s--));r?.forEach(u=>{t.destroy(u)})}function Zs(t,e,n,r){return e!==void 0&&e.has(r)?(t.attach(n,e.get(r)),e.delete(r),!0):!1}function Kl(t,e,n,r,i){if(Zs(t,e,r,n(r,i)))t.updateValue(r,i);else{let o=t.create(r,i);t.attach(r,o)}}function Ql(t,e,n,r){let i=new Set;for(let o=e;o<=n;o++)i.add(r(o,t.at(o)));return i}var Xl=class{kvMap=new Map;_vMap=void 0;has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;let e=this.kvMap.get(t);return this._vMap!==void 0&&this._vMap.has(e)?(this.kvMap.set(t,this._vMap.get(e)),this._vMap.delete(e)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,e){if(this.kvMap.has(t)){let n=this.kvMap.get(t);this._vMap===void 0&&(this._vMap=new Map);let r=this._vMap;for(;r.has(n);)n=r.get(n);r.set(n,e)}else this.kvMap.set(t,e)}forEach(t){for(let[e,n]of this.kvMap)if(t(n,e),this._vMap!==void 0){let r=this._vMap;for(;r.has(n);)n=r.get(n),t(n,e)}}};function N1(t,e){wo("NgControlFlow");let n=Ot(),r=vo(),i=n[r]!==Ee?n[r]:-1,o=i!==-1?eo(n,ee+i):void 0,s=0;if(We(n,r,t)){let a=dt(null);try{if(o!==void 0&&Yd(o,s),t!==-1){let u=ee+t,f=eo(n,u),h=Ys(n[ct],u),d=_u(f,h.tView.ssrId),b=cu(n,h,e,{dehydratedView:d});vu(f,b,s,fu(h,d))}}finally{dt(a)}}else if(o!==void 0){let a=Zd(o,s);a!==void 0&&(a[Zt]=e)}}var x1=class{lContainer;$implicit;$index;constructor(t,e,n){this.lContainer=t,this.$implicit=e,this.$index=n}get $count(){return this.lContainer.length-se}};function O1(t,e){return e}var T1=class{hasEmptyBlock;trackByFn;liveCollection;constructor(t,e,n){this.hasEmptyBlock=t,this.trackByFn=e,this.liveCollection=n}};function Vr(t,e,n,r,i,o,s,a,u,f,h,d,b){wo("NgControlFlow");let _=Ot(),w=fe(),T=u!==void 0,D=Ot(),M=a?s.bind(D[Pe][Zt]):s,H=new T1(T,M);D[ee+t]=H,zs(_,w,t+1,e,n,r,i,ar(w.consts,o)),T&&zs(_,w,t+2,u,f,h,d,ar(w.consts,b))}var C1=class extends S1{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(t,e,n){super(),this.lContainer=t,this.hostLView=e,this.templateTNode=n}get length(){return this.lContainer.length-se}at(t){return this.getLView(t)[Zt].$implicit}attach(t,e){let n=e[Mr];this.needsIndexUpdate||=t!==this.length,vu(this.lContainer,e,t,fu(this.templateTNode,n))}detach(t){return this.needsIndexUpdate||=t!==this.length-1,A1(this.lContainer,t)}create(t,e){let n=_u(this.lContainer,this.templateTNode.tView.ssrId),r=cu(this.hostLView,this.templateTNode,new x1(this.lContainer,e,t),{dehydratedView:n});return this.operationsCounter?.recordCreate(),r}destroy(t){pu(t[ct],t),this.operationsCounter?.recordDestroy()}updateValue(t,e){this.getLView(t)[Zt].$implicit=e}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t<this.length;t++)this.getLView(t)[Zt].$index=t}getLView(t){return R1(this.lContainer,t)}};function Fr(t){let e=dt(null),n=pn();try{let r=Ot(),i=r[ct],o=r[n],s=n+1,a=eo(r,s);if(o.liveCollection===void 0){let f=Ys(i,s);o.liveCollection=new C1(a,r,f)}else o.liveCollection.reset();let u=o.liveCollection;if(I1(u,t,o.trackByFn),u.updateIndexes(),o.hasEmptyBlock){let f=vo(),h=u.length===0;if(We(r,f,h)){let d=n+2,b=eo(r,d);if(h){let _=Ys(i,d),w=_u(b,_.tView.ssrId),T=cu(r,_,void 0,{dehydratedView:w});vu(b,T,0,fu(_,w))}else Yd(b,0)}}}finally{dt(e)}}function eo(t,e){return t[e]}function A1(t,e){return bu(t,e)}function R1(t,e){return Zd(t,e)}function Ys(t,e){return Fa(t,e)}function Qt(t,e,n,r){let i=Ot(),o=fe(),s=ee+t,a=i[te],u=o.firstCreatePass?tp(s,o,i,e,Md,_h(),n,r):o.data[s],f=k1(o,i,u,a,e,t);i[s]=f;let h=Va(u);return yr(u,!0),Od(a,f,u),!jd(u)&&Wa()&&gu(o,i,f,u),(cv()===0||h)&&ni(f,i),fv(),h&&(au(o,i,u),gd(o,u,i)),r!==null&&Dd(i,u),Qt}function ve(){let t=gr();Eh()?mv():(t=t.parent,yr(t,!1));let e=t;pv(e)&&gv(),hv();let n=fe();return n.firstCreatePass&&ep(n,e),e.classesWithoutHost!=null&&Cv(e)&&Ws(n,e,Ot(),e.classesWithoutHost,!0),e.stylesWithoutHost!=null&&Av(e)&&Ws(n,e,Ot(),e.stylesWithoutHost,!1),ve}function cn(t,e,n,r){return Qt(t,e,n,r),ve(),cn}var k1=(t,e,n,r,i,o)=>(Za(!0),Nd(r,i,Nv()));function D1(){return Ot()}var no="en-US",L1=no;function M1(t){typeof t=="string"&&(L1=t.toLowerCase().replace(/_/g,"-"))}var P1=(t,e,n)=>{};function xr(t,e,n,r){let i=Ot(),o=fe(),s=gr();return U1(o,i,i[te],s,t,e,r),xr}function j1(t,e,n,r){let i=t.cleanup;if(i!=null)for(let o=0;o<i.length-1;o+=2){let s=i[o];if(s===n&&i[o+1]===r){let a=e[qi],u=i[o+2];return a.length>u?a[u]:null}typeof s=="string"&&(o+=2)}return null}function U1(t,e,n,r,i,o,s){let a=Va(r),u=t.firstCreatePass?lv(t):null,f=e[Zt],h=uv(e),d=!0;if(r.type&3||s){let b=dn(r,e),_=s?s(b):b,w=h.length,T=s?M=>s(Ge(M[r.index])):r.index,D=null;if(!s&&a&&(D=j1(t,e,i,r.index)),D!==null){let M=D.__ngLastListenerFn__||D;M.__ngNextListenerFn__=o,D.__ngLastListenerFn__=o,d=!1}else{o=nc(r,e,f,o),P1(b,i,o);let M=n.listen(_,i,o);h.push(o,M),u&&u.push(i,T,w,w+1)}}else o=nc(r,e,f,o);if(d){let b=r.outputs?.[i],_=r.hostDirectiveOutputs?.[i];if(_&&_.length)for(let w=0;w<_.length;w+=2){let T=_[w],D=_[w+1];tc(r,t,e,T,D,i,o,h,u)}if(b&&b.length)for(let w of b)tc(r,t,e,w,i,i,o,h,u)}}function tc(t,e,n,r,i,o,s,a,u){let f=n[r],h=e.data[r].outputs[i],d=f[h].subscribe(s),b=a.length;a.push(s,d),u&&u.push(o,t.index,b,-(b+1))}function ec(t,e,n,r){let i=dt(null);try{return Tt(6,e,n),n(r)!==!1}catch(o){return Pd(t,o),!1}finally{Tt(7,e,n),dt(i)}}function nc(t,e,n,r){return function i(o){if(o===Function)return r;let s=Qr(t)?un(t.index,e):e;mu(s,5);let a=ec(e,n,r,o),u=i.__ngNextListenerFn__;for(;u;)a=ec(e,n,u,o)&&a,u=u.__ngNextListenerFn__;return a}}function ye(t=1){return Iv(t)}function tr(t,e,n){return Nu(t,"",e,"",n),tr}function Nu(t,e,n,r,i){let o=Ot(),s=ap(o,e,n,r);if(s!==Ee){let a=fe(),u=Rh();Ld(a,u,o,t,s,o[te],i,!1)}return Nu}function pp(t,e,n,r){n>=t.data.length&&(t.data[n]=null,t.blueprint[n]=null),e[n]=r}function Ar(t,e=""){let n=Ot(),r=fe(),i=t+ee,o=r.firstCreatePass?No(r,i,1,e,null):r.data[i],s=B1(r,n,o,e,t);n[i]=s,Wa()&&gu(r,n,s,o),yr(o,!1)}var B1=(t,e,n,r,i)=>(Za(!0),ob(e[te],r));function xu(t){return Ou("",t,""),xu}function Ou(t,e,n){let r=Ot(),i=ap(r,t,e,n);return i!==Ee&&V1(r,pn(),i),Ou}function V1(t,e,n){let r=yh(e,t);sb(t[te],r,n)}var F1={};function Tu(t){let e=fe(),n=Ot(),r=t+ee,i=No(e,r,128,null,null);return yr(i,!1),pp(e,n,r,F1),Tu}function $1(t,e,n){let r=za()+t,i=Ot();return i[r]===Ee?Su(i,r,n?e.call(n):e()):B_(i,r)}function gp(t,e){let n=t[e];return n===Ee?void 0:n}function H1(t,e,n,r,i,o){let s=e+n;return We(t,s,i)?Su(t,s+1,o?r.call(o,i):r(i)):gp(t,s+1)}function z1(t,e,n,r,i,o,s){let a=e+n;return V_(t,a,i,o)?Su(t,a+2,s?r.call(s,i,o):r(i,o)):gp(t,a+2)}function $r(t,e){let n=fe(),r,i=t+ee;n.firstCreatePass?(r=q1(e,n.pipeRegistry),n.data[i]=r,r.onDestroy&&(n.destroyHooks??=[]).push(i,r.onDestroy)):r=n.data[i];let o=r.factory||(r.factory=rr(r.type,!0)),s,a=oe(xo);try{let u=Yi(!1),f=o();return Yi(u),pp(n,Ot(),i,f),f}finally{oe(a)}}function q1(t,e){if(e)for(let n=e.length-1;n>=0;n--){let r=e[n];if(t===r.name)return r}}function ro(t,e,n){let r=t+ee,i=Ot(),o=mh(i,r);return yp(i,r)?H1(i,za(),e,o.transform,n,o):o.transform(n)}function G1(t,e,n,r){let i=t+ee,o=Ot(),s=mh(o,i);return yp(o,i)?z1(o,za(),e,s.transform,n,r,s):s.transform(n,r)}function yp(t,e){return t[ct].data[e].pure}var W1=(()=>{class t{zone=St(le);changeDetectionScheduler=St(ti);applicationRef=St(ur);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=zt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Z1({ngZoneFactory:t,ignoreChangesOutsideZone:e,scheduleInRootZone:n}){return t??=()=>new le(Dt(k({},Y1()),{scheduleInRootZone:n})),[{provide:le,useFactory:t},{provide:zi,multi:!0,useFactory:()=>{let r=St(W1,{optional:!0});return()=>r.initialize()}},{provide:zi,multi:!0,useFactory:()=>{let r=St(J1);return()=>{r.initialize()}}},e===!0?{provide:Yh,useValue:!0}:[],{provide:Qa,useValue:n??Wh}]}function Y1(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var J1=(()=>{class t{subscription=new He;initialized=!1;zone=St(le);pendingTasks=St(_o);initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{le.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{le.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=zt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),mp=(()=>{class t{appRef=St(ur);taskService=St(_o);ngZone=St(le);zonelessEnabled=St(Ka);tracing=St(nu,{optional:!0});disableScheduling=St(Yh,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new He;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Ki):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(St(Qa,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof Kh||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;let r=!1;switch(n){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 6:{this.appRef.dirtyFlags|=2,r=!0;break}case 12:{this.appRef.dirtyFlags|=16,r=!0;break}case 13:{this.appRef.dirtyFlags|=2,r=!0;break}case 11:{r=!0;break}case 9:case 8:case 7:case 10:default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick(r))return;let i=this.useMicrotaskScheduler?Cl:Jh;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>i(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>i(()=>this.tick()))}shouldScheduleTick(n){return!(this.disableScheduling&&!n||this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Ki+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){throw this.taskService.remove(n),r}finally{this.cleanup()}this.useMicrotaskScheduler=!0,Cl(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static \u0275fac=function(n){return new(n||t)};static \u0275prov=zt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function K1(){return wo("NgZoneless"),Um([{provide:ti,useExisting:mp},{provide:le,useClass:Kh},{provide:Ka,useValue:!0},{provide:Qa,useValue:!1},[]])}function Q1(){return typeof $localize<"u"&&$localize.locale||no}var vp=new Ct("",{providedIn:"root",factory:()=>St(vp,lt.Optional|lt.SkipSelf)||Q1()}),Js=new Ct(""),X1=new Ct("");function wr(t){return!t.moduleRef}function tw(t){let e=wr(t)?t.r3Injector:t.moduleRef.injector,n=e.get(le);return n.run(()=>{wr(t)?t.r3Injector.resolveInjectorInitializers():t.moduleRef.resolveInjectorInitializers();let r=e.get(ei,null),i;if(n.runOutsideAngular(()=>{i=n.onError.subscribe({next:o=>{r.handleError(o)}})}),wr(t)){let o=()=>e.destroy(),s=t.platformInjector.get(Js);s.add(o),e.onDestroy(()=>{i.unsubscribe(),s.delete(o)})}else{let o=()=>t.moduleRef.destroy(),s=t.platformInjector.get(Js);s.add(o),t.moduleRef.onDestroy(()=>{Pi(t.allPlatformModules,t.moduleRef),i.unsubscribe(),s.delete(o)})}return nw(r,n,()=>{let o=e.get(sp);return o.runInitializers(),o.donePromise.then(()=>{let s=e.get(vp,no);if(M1(s||no),!e.get(X1,!0))return wr(t)?e.get(ur):(t.allPlatformModules.push(t.moduleRef),t.moduleRef);if(wr(t)){let a=e.get(ur);return t.rootComponent!==void 0&&a.bootstrap(t.rootComponent),a}else return ew(t.moduleRef,t.allPlatformModules),t.moduleRef})})})}function ew(t,e){let n=t.injector.get(ur);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(r=>n.bootstrap(r));else if(t.instance.ngDoBootstrap)t.instance.ngDoBootstrap(n);else throw new _t(-403,!1);e.push(t)}function nw(t,e,n){try{let r=n();return op(r)?r.catch(i=>{throw e.runOutsideAngular(()=>t.handleError(i)),i}):r}catch(r){throw e.runOutsideAngular(()=>t.handleError(r)),r}}var ji=null;function rw(t=[],e){return bo.create({name:e,providers:[{provide:ja,useValue:"platform"},{provide:Js,useValue:new Set([()=>ji=null])},...t]})}function iw(t=[]){if(ji)return ji;let e=rw(t);return ji=e,J_(),ow(e),e}function ow(t){let e=t.get(ld,null);lh(t,()=>{e?.forEach(n=>n())})}function sw(t){Tt(8);try{let{rootComponent:e,appProviders:n,platformProviders:r}=t,i=iw(r),o=[Z1({}),{provide:ti,useExisting:mp},...n||[]],s=new np({providers:o,parent:i,debugName:"",runEnvironmentInitializers:!1});return tw({r3Injector:s.injector,platformInjector:i,rootComponent:e})}catch(e){return Promise.reject(e)}finally{Tt(9)}}var LO=class{[rn];constructor(t){this[rn]=t}destroy(){this[rn].destroy()}},aw={schedule(t,e){let n=setTimeout(t,e);return()=>clearTimeout(n)}};function uw(t){return t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}function lw(t){return!!t&&t.nodeType===Node.ELEMENT_NODE}var is;function cw(t,e){if(!is){let n=Element.prototype;is=n.matches||n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}return t.nodeType===Node.ELEMENT_NODE?is.call(t,e):!1}function fw(t){let e={};return t.forEach(({propName:n,templateName:r,transform:i})=>{e[uw(r)]=[n,i]}),e}function hw(t,e){return e.get(ii).resolveComponentFactory(t).inputs}function dw(t,e){let n=t.childNodes,r=e.map(()=>[]),i=-1;e.some((o,s)=>o==="*"?(i=s,!0):!1);for(let o=0,s=n.length;o<s;++o){let a=n[o],u=pw(a,e,i);u!==-1&&r[u].push(a)}return r}function pw(t,e,n){let r=n;return lw(t)&&e.some((i,o)=>i!=="*"&&cw(t,i)?(r=o,!0):!1),r}var gw=10,yw=class{componentFactory;inputMap=new Map;constructor(t,e){this.componentFactory=e.get(ii).resolveComponentFactory(t);for(let n of this.componentFactory.inputs)this.inputMap.set(n.propName,n.templateName)}create(t){return new mw(this.componentFactory,t,this.inputMap)}},mw=class{componentFactory;injector;inputMap;eventEmitters=new Fy(1);events=this.eventEmitters.pipe(hm(t=>fm(...t)));componentRef=null;scheduledDestroyFn=null;initialInputValues=new Map;ngZone;elementZone;appRef;cdScheduler;constructor(t,e,n){this.componentFactory=t,this.injector=e,this.inputMap=n,this.ngZone=this.injector.get(le),this.appRef=this.injector.get(ur),this.cdScheduler=e.get(ti),this.elementZone=typeof Zone>"u"?null:this.ngZone.run(()=>Zone.current)}connect(t){this.runInZone(()=>{if(this.scheduledDestroyFn!==null){this.scheduledDestroyFn(),this.scheduledDestroyFn=null;return}this.componentRef===null&&this.initializeComponent(t)})}disconnect(){this.runInZone(()=>{this.componentRef===null||this.scheduledDestroyFn!==null||(this.scheduledDestroyFn=aw.schedule(()=>{this.componentRef!==null&&(this.componentRef.destroy(),this.componentRef=null)},gw))})}getInputValue(t){return this.runInZone(()=>this.componentRef===null?this.initialInputValues.get(t):this.componentRef.instance[t])}setInputValue(t,e){if(this.componentRef===null){this.initialInputValues.set(t,e);return}this.runInZone(()=>{this.componentRef.setInput(this.inputMap.get(t)??t,e),this.componentRef.hostView.dirty&&(this.componentRef.changeDetectorRef.markForRefresh(),this.cdScheduler.notify(6))})}initializeComponent(t){let e=bo.create({providers:[],parent:this.injector}),n=dw(t,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(e,n,t),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.appRef.attachView(this.componentRef.hostView),this.componentRef.hostView.detectChanges()}initializeInputs(){for(let[t,e]of this.initialInputValues)this.setInputValue(t,e);this.initialInputValues.clear()}initializeOutputs(t){let e=this.componentFactory.outputs.map(({propName:n,templateName:r})=>{let i=t.instance[n];return new ce(o=>{let s=i.subscribe(a=>o.next({name:r,value:a}));return()=>s.unsubscribe()})});this.eventEmitters.next(e)}runInZone(t){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(t):t()}},vw=class extends HTMLElement{ngElementEventsSubscription=null};function bw(t,e){let n=hw(t,e.injector),r=e.strategyFactory||new yw(t,e.injector),i=fw(n);class o extends vw{injector;static observedAttributes=Object.keys(i);get ngElementStrategy(){if(!this._ngElementStrategy){let a=this._ngElementStrategy=r.create(this.injector||e.injector);n.forEach(({propName:u,transform:f})=>{if(!this.hasOwnProperty(u))return;let h=this[u];delete this[u],a.setInputValue(u,h,f)})}return this._ngElementStrategy}_ngElementStrategy;constructor(a){super(),this.injector=a}attributeChangedCallback(a,u,f,h){let[d,b]=i[a];this.ngElementStrategy.setInputValue(d,f,b)}connectedCallback(){let a=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),a=!0),this.ngElementStrategy.connect(this),a||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(a=>{let u=new CustomEvent(a.name,{detail:a.value});this.dispatchEvent(u)})}}return n.forEach(({propName:s,transform:a})=>{Object.defineProperty(o.prototype,s,{get(){return this.ngElementStrategy.getInputValue(s)},set(u){this.ngElementStrategy.setInputValue(s,u,a)},configurable:!0,enumerable:!0})}),o}var bp=null;function _p(){return bp}function _w(t){bp??=t}var ww=class{},fn=new Ct("");function Ew(t,e){e=encodeURIComponent(e);for(let n of t.split(";")){let r=n.indexOf("="),[i,o]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(i.trim()===e)return decodeURIComponent(o)}return null}var Sw="browser",Iw="server";function wp(t){return t===Iw}var Nw=class{},xw=class extends ww{supportsDOMEvents=!0},Ow=class Ep extends xw{static makeCurrent(){_w(new Ep)}onAndCancel(e,n,r,i){return e.addEventListener(n,r,i),()=>{e.removeEventListener(n,r,i)}}dispatchEvent(e,n){e.dispatchEvent(n)}remove(e){e.remove()}createElement(e,n){return n=n||this.getDefaultDocument(),n.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,n){return n==="window"?window:n==="document"?e:n==="body"?e.body:null}getBaseHref(e){let n=Tw();return n==null?null:Cw(n)}resetBaseElement(){Or=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return Ew(document.cookie,e)}},Or=null;function Tw(){return Or=Or||document.querySelector("base"),Or?Or.getAttribute("href"):null}function Cw(t){return new URL(t,document.baseURI).pathname}var Aw=(()=>{class t{build(){return new XMLHttpRequest}static \u0275fac=function(n){return new(n||t)};static \u0275prov=zt({token:t,factory:t.\u0275fac})}return t})(),Ks=new Ct(""),Sp=(()=>{class t{_zone;_plugins;_eventNameToPlugin=new Map;constructor(n,r){this._zone=r,n.forEach(i=>{i.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,i,o){return this._findPluginFor(r).addEventListener(n,r,i,o)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(i=>i.supports(n)),!r)throw new _t(5101,!1);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(n){return new(n||t)(xt(Ks),xt(le))};static \u0275prov=zt({token:t,factory:t.\u0275fac})}return t})(),Ip=class{_doc;constructor(t){this._doc=t}manager},Ui="ng-app-id";function rc(t){for(let e of t)e.remove()}function ic(t,e){let n=e.createElement("style");return n.textContent=t,n}function Rw(t,e,n,r){let i=t.head?.querySelectorAll(`style[${Ui}="${e}"],link[${Ui}="${e}"]`);if(i)for(let o of i)o.removeAttribute(Ui),o instanceof HTMLLinkElement?r.set(o.href.slice(o.href.lastIndexOf("/")+1),{usage:0,elements:[o]}):o.textContent&&n.set(o.textContent,{usage:0,elements:[o]})}function Qs(t,e){let n=e.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",t),n}var Np=(()=>{class t{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(n,r,i,o={}){this.doc=n,this.appId=r,this.nonce=i,this.isServer=wp(o),Rw(n,r,this.inline,this.external),this.hosts.add(n.head)}addStyles(n,r){for(let i of n)this.addUsage(i,this.inline,ic);r?.forEach(i=>this.addUsage(i,this.external,Qs))}removeStyles(n,r){for(let i of n)this.removeUsage(i,this.inline);r?.forEach(i=>this.removeUsage(i,this.external))}addUsage(n,r,i){let o=r.get(n);o?o.usage++:r.set(n,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,i(n,this.doc)))})}removeUsage(n,r){let i=r.get(n);i&&(i.usage--,i.usage<=0&&(rc(i.elements),r.delete(n)))}ngOnDestroy(){for(let[,{elements:n}]of[...this.inline,...this.external])rc(n);this.hosts.clear()}addHost(n){this.hosts.add(n);for(let[r,{elements:i}]of this.inline)i.push(this.addElement(n,ic(r,this.doc)));for(let[r,{elements:i}]of this.external)i.push(this.addElement(n,Qs(r,this.doc)))}removeHost(n){this.hosts.delete(n)}addElement(n,r){return this.nonce&&r.setAttribute("nonce",this.nonce),this.isServer&&r.setAttribute(Ui,this.appId),n.appendChild(r)}static \u0275fac=function(n){return new(n||t)(xt(fn),xt(ud),xt(cd,8),xt(eu))};static \u0275prov=zt({token:t,factory:t.\u0275fac})}return t})(),os={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},Cu=/%COMP%/g,xp="%COMP%",kw=`_nghost-${xp}`,Dw=`_ngcontent-${xp}`,Lw=!0,Mw=new Ct("",{providedIn:"root",factory:()=>Lw});function Pw(t){return Dw.replace(Cu,t)}function jw(t){return kw.replace(Cu,t)}function Op(t,e){return e.map(n=>n.replace(Cu,t))}var oc=(()=>{class t{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(n,r,i,o,s,a,u,f=null,h=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=i,this.removeStylesOnCompDestroy=o,this.doc=s,this.platformId=a,this.ngZone=u,this.nonce=f,this.tracingService=h,this.platformIsServer=wp(a),this.defaultRenderer=new Au(n,s,u,this.platformIsServer,this.tracingService)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===Fe.ShadowDom&&(r=Dt(k({},r),{encapsulation:Fe.Emulated}));let i=this.getOrCreateRenderer(n,r);return i instanceof ac?i.applyToHost(n):i instanceof Xs&&i.applyStyles(),i}getOrCreateRenderer(n,r){let i=this.rendererByCompId,o=i.get(r.id);if(!o){let s=this.doc,a=this.ngZone,u=this.eventManager,f=this.sharedStylesHost,h=this.removeStylesOnCompDestroy,d=this.platformIsServer,b=this.tracingService;switch(r.encapsulation){case Fe.Emulated:o=new ac(u,f,r,this.appId,h,s,a,d,b);break;case Fe.ShadowDom:return new Uw(u,f,n,r,s,a,this.nonce,d,b);default:o=new Xs(u,f,r,h,s,a,d,b);break}i.set(r.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(n){this.rendererByCompId.delete(n)}static \u0275fac=function(n){return new(n||t)(xt(Sp),xt(Np),xt(ud),xt(Mw),xt(fn),xt(eu),xt(le),xt(cd),xt(nu,8))};static \u0275prov=zt({token:t,factory:t.\u0275fac})}return t})(),Au=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(t,e,n,r,i){this.eventManager=t,this.doc=e,this.ngZone=n,this.platformIsServer=r,this.tracingService=i}destroy(){}destroyNode=null;createElement(t,e){return e?this.doc.createElementNS(os[e]||e,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,e){(sc(t)?t.content:t).appendChild(e)}insertBefore(t,e,n){t&&(sc(t)?t.content:t).insertBefore(e,n)}removeChild(t,e){e.remove()}selectRootElement(t,e){let n=typeof t=="string"?this.doc.querySelector(t):t;if(!n)throw new _t(-5104,!1);return e||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,n,r){if(r){e=r+":"+e;let i=os[r];i?t.setAttributeNS(i,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){let r=os[n];r?t.removeAttributeNS(r,e):t.removeAttribute(`${n}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,n,r){r&(En.DashCase|En.Important)?t.style.setProperty(e,n,r&En.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&En.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,n){t!=null&&(t[e]=n)}setValue(t,e){t.nodeValue=e}listen(t,e,n,r){if(typeof t=="string"&&(t=_p().getGlobalEventTarget(this.doc,t),!t))throw new Error(`Unsupported event target ${t} for event ${e}`);let i=this.decoratePreventDefault(n);return this.tracingService!==null&&this.tracingService.wrapEventListener&&(i=this.tracingService.wrapEventListener(t,e,i)),this.eventManager.addEventListener(t,e,i,r)}decoratePreventDefault(t){return e=>{if(e==="__ngUnwrap__")return t;(this.platformIsServer?this.ngZone.runGuarded(()=>t(e)):t(e))===!1&&e.preventDefault()}}};function sc(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var Uw=class extends Au{sharedStylesHost;hostEl;shadowRoot;constructor(t,e,n,r,i,o,s,a,u){super(t,i,o,a,u),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let f=r.styles;f=Op(r.id,f);for(let d of f){let b=document.createElement("style");s&&b.setAttribute("nonce",s),b.textContent=d,this.shadowRoot.appendChild(b)}let h=r.getExternalStyles?.();if(h)for(let d of h){let b=Qs(d,i);s&&b.setAttribute("nonce",s),this.shadowRoot.appendChild(b)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,e){return super.appendChild(this.nodeOrShadowRoot(t),e)}insertBefore(t,e,n){return super.insertBefore(this.nodeOrShadowRoot(t),e,n)}removeChild(t,e){return super.removeChild(null,e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Xs=class extends Au{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(t,e,n,r,i,o,s,a,u){super(t,i,o,s,a),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=r;let f=n.styles;this.styles=u?Op(u,f):f,this.styleUrls=n.getExternalStyles?.(u)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},ac=class extends Xs{contentAttr;hostAttr;constructor(t,e,n,r,i,o,s,a,u){let f=r+"-"+n.id;super(t,e,n,i,o,s,a,u,f),this.contentAttr=Pw(f),this.hostAttr=jw(f)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,e){let n=super.createElement(t,e);return super.setAttribute(n,this.contentAttr,""),n}},Bw=(()=>{class t extends Ip{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,i,o){return n.addEventListener(r,i,o),()=>this.removeEventListener(n,r,i,o)}removeEventListener(n,r,i,o){return n.removeEventListener(r,i,o)}static \u0275fac=function(n){return new(n||t)(xt(fn))};static \u0275prov=zt({token:t,factory:t.\u0275fac})}return t})(),uc=["alt","control","meta","shift"],Vw={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Fw={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},$w=(()=>{class t extends Ip{constructor(n){super(n)}supports(n){return t.parseEventName(n)!=null}addEventListener(n,r,i,o){let s=t.parseEventName(r),a=t.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>_p().onAndCancel(n,s.domEventName,a,o))}static parseEventName(n){let r=n.toLowerCase().split("."),i=r.shift();if(r.length===0||!(i==="keydown"||i==="keyup"))return null;let o=t._normalizeKey(r.pop()),s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),uc.forEach(f=>{let h=r.indexOf(f);h>-1&&(r.splice(h,1),s+=f+".")}),s+=o,r.length!=0||o.length===0)return null;let u={};return u.domEventName=i,u.fullKey=s,u}static matchEventFullKeyCode(n,r){let i=Vw[n.key]||n.key,o="";return r.indexOf("code.")>-1&&(i=n.code,o="code."),i==null||!i?!1:(i=i.toLowerCase(),i===" "?i="space":i==="."&&(i="dot"),uc.forEach(s=>{if(s!==i){let a=Fw[s];a(n)&&(o+=s+".")}}),o+=i,o===r)}static eventCallback(n,r,i){return o=>{t.matchEventFullKeyCode(o,n)&&i.runGuarded(()=>r(o))}}static _normalizeKey(n){return n==="esc"?"escape":n}static \u0275fac=function(n){return new(n||t)(xt(fn))};static \u0275prov=zt({token:t,factory:t.\u0275fac})}return t})();function Hw(t){return sw(zw(t))}function zw(t){return{appProviders:[...Yw,...t?.providers??[]],platformProviders:Zw}}function qw(){Ow.makeCurrent()}function Gw(){return new ei}function Ww(){return l0(document),document}var Zw=[{provide:eu,useValue:Sw},{provide:ld,useValue:qw,multi:!0},{provide:fn,useFactory:Ww,deps:[]}],Yw=[{provide:ja,useValue:"root"},{provide:ei,useFactory:Gw,deps:[]},{provide:Ks,useClass:Bw,multi:!0,deps:[fn]},{provide:Ks,useClass:$w,multi:!0,deps:[fn]},oc,Np,Sp,{provide:wu,useExisting:oc},{provide:Nw,useClass:Aw,deps:[]},[]],Tp=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=zt({token:t,factory:function(n){let r=null;return n?r=new(n||t):r=xt(Jw),r},providedIn:"root"})}return t})(),Jw=(()=>{class t extends Tp{_doc;constructor(n){super(),this._doc=n}sanitize(n,r){if(r==null)return null;switch(n){case Ve.NONE:return r;case Ve.HTML:return bn(r,"HTML")?Re(r):wd(this._doc,String(r)).toString();case Ve.STYLE:return bn(r,"Style")?Re(r):r;case Ve.SCRIPT:if(bn(r,"Script"))return Re(r);throw new _t(5200,!1);case Ve.URL:return bn(r,"URL")?Re(r):ru(String(r));case Ve.RESOURCE_URL:if(bn(r,"ResourceURL"))return Re(r);throw new _t(5201,!1);default:throw new _t(5202,!1)}}bypassSecurityTrustHtml(n){return I0(n)}bypassSecurityTrustStyle(n){return N0(n)}bypassSecurityTrustScript(n){return x0(n)}bypassSecurityTrustUrl(n){return O0(n)}bypassSecurityTrustResourceUrl(n){return T0(n)}static \u0275fac=function(n){return new(n||t)(xt(fn))};static \u0275prov=zt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ta={apiURL:"http://localhost:3003",debug:!0,mode:"local",styleURL:"http://localhost:8002/styles.css",widgetURL:"http://localhost:8002/main.js"},pe=Zr(ay()),Kw="9.4.1",Rr=class ea{static SDK_VERSION=Kw;static SDK_VERSION_CODE;static SDK="WEB";static LOG_PREFIX="CooeeSDK";static COOEE="cooee";static SESSION_STORAGE_SCROLL_ID="sleid";static IDLE_TIME_IN_SECONDS=30*60;static IN_APP_WRAPPER_NAME="cooee-wrapper";static IN_APP_CONTAINER_NAME="cooee-container";static IN_APP_DEFAULT_PADDING=15;static EVENT_SCREEN_VIEW="CE Screen View";static EVENT_APP_BACKGROUND="CE App Background";static EVENT_TRIGGER_DISPLAYED="CE Trigger Displayed";static EVENT_CAMPAIGN_HOLDOUT="CE Campaign Holdout";static EVENT_CAMPAIGN_REJECTED="CE Campaign Rejected";static EVENT_CAMPAIGN_FAILED="CE Campaign Failed";static EVENT_TRIGGER_CLOSED="CE Trigger Closed";static EVENT_SCROLL="CE Scroll";static EVENT_TRIGGER_CLICKED="CE Trigger Clicked";static EVENT_FORM_SUBMITTED="CE Form Submitted";static EVENT_ADD_TO_CART="Add To Cart";static EVENT_REMOVE_FROM_CART="Remove From Cart";static EVENT_VIEW_ITEM="View Item";static EVENT_VIEW_CART="View Cart";static EVENT_VIEW_COLLECTION="View Collection";static EVENT_BUY_NOW_CLICKED="Buy Now Clicked";static EVENT_CHECKOUT_STARTED="Checkout Started";static EVENT_REVIEW_CLICKED="Review Clicked";static EVENT_ITEM_THUMBNAIL_CLICKED="Item Thumbnail Clicked";static JS_LOAD_WHITELIST_EVENTS=[this.EVENT_VIEW_ITEM,this.EVENT_VIEW_CART,this.EVENT_VIEW_COLLECTION];static HASH_INITIATE_CHECKOUT="initiate-checkout";static HASH_OPEN_CART_DRAWER="open-cart-drawer";static CTA_EVENT="letscooee:outbound:cta";static ADD_BUNDLE_CTA_INBOUND_EVENT="letscooee:inbound:cta:add-bundle";static CTA_OPEN_CART_EVENT="letscooee:outbound:open-cart";static CTA_AFTER_REFRESH_UI="letscooee:outbound:refresh-ui";static POPUP_ACTIVITY_EVENT="letscooee:outbound:popup-activities";static THIRD_PARTY_CHECKOUT_EVENT="letscooee:outbound:third-party-initiate-checkout";static CAMPAIGN_DISPLAYED_ACTIVITY="DISPLAYED";static CAMPAIGN_CLICKED_ACTIVITY="CLICKED";static CAMPAIGN_CLOSED_ACTIVITY="CLOSED";static BLACKLISTED_PAGE_NAMES=["collection","product","cart"];static API_CALL_MAX_ATTEMPTS=3;static API_CALL_RETRY_DELAY=1e3;static PLACEHOLDER_IMAGE="https://cdn.global.letscooee.com/images/placeholders/product.png";static CART_UPDATE_BROADCAST="CART_UPDATE";static GRAPHQL_VERSION="2024-10";static GRAPHQL_API_PATH=`/api/${this.GRAPHQL_VERSION}/graphql.json`;static SHADOW_SPLITTER=":shadow";static CAMPAIGN_ATTRIBUTE="_letscooee_campaign";static CONTENT_ATTRIBUTE="_letscooee_content";static VIA="_via";static PAYMENT_MODAL_DETAILS=[{identifier:"#flo-checkout-wrapper",gateway:"Shopflow"},{identifier:"#fastrr-main-container",gateway:"Shiprocket"},{identifier:"#gokwik-modal-wrapper",gateway:"Gokwik"},{identifier:"#zecpe",gateway:"Ecom 360"}];static{let e=ea.SDK_VERSION.split(".").map(n=>n.padStart(2,"0")).join("");ea.SDK_VERSION_CODE=parseInt(e,10)}},be=class{static log(...t){pe.default.info(...t)}static debug(...t){pe.default.debug(...t)}static error(...t){pe.default.error(...t)}static warn(...t){pe.default.warn(...t)}static info(...t){pe.default.info(...t)}static trace(...t){pe.default.trace(...t)}static configure(t=Rr.LOG_PREFIX){pe.default.useDefaults({formatter:function(n){n.unshift(`${t} (v${Rr.SDK_VERSION}):`)}});let e=this.getDebugParam();(e==="1"||e==="on")&&(localStorage.cooeeLogLevel="TRACE"),localStorage.cooeeLogLevel?pe.default.setLevel(pe.default[localStorage.cooeeLogLevel]):pe.default.setLevel(ta.debug?pe.default.TRACE:pe.default.OFF)}static getDebugParam(){return new URL(location.href).searchParams?.get("cooee-debug")}static logBrand(){let t=`
8
8
  display: inline-block;
9
9
  font-size: 14px;
10
10
  background: linear-gradient(90deg, #d52dc8 25%, #2179e2 82%);
@@ -19,23 +19,26 @@ ${e.map((n,r)=>`${r+1}) ${n.toString()}`).join(`
19
19
  `,e+=`
20
20
 
21
21
  `,e+=`Learn more: https://www.letscooee.com
22
- Cooee SDK: v${ri.SDK_VERSION}`,console.group("%c Elevate your ecommerce experience with Cooee \u{1F680} ",t),console.log(`%c${e}`,"font-size: 13px; line-height: 1.8;"),console.groupEnd()}},t0={providers:[Jb()]},_o=pr(gp()),e0=class{gaEnabled;gaMeasurementID;pixelPush;website;currencyCount;money;storefrontToken;skipItemAttribute;currency;static get(){return window.CooeeSDK.config}update(t){return t??={},this.gaEnabled=t.gaEnabled,this.gaMeasurementID=t.gaMeasurementID,this.pixelPush=t.pixelPush,this.website=t.website??{},this.currencyCount=t.currencyCount??0,this.money=t.money,this.currency=t.currency,this.storefrontToken=t.storefrontToken,this.skipItemAttribute=t.skipItemAttribute,this}},n0=class{static format(t,e){let n=/{{\s*(\w+)\s*}}/;return e.replace(n,(r,i)=>{switch(i){case"amount":return this.formatWithDelimiters(t,2);case"amount_no_decimals":return this.formatWithDelimiters(t,0);case"amount_with_comma_separator":return this.formatWithDelimiters(t,2,".",",");case"amount_no_decimals_with_comma_separator":return this.formatWithDelimiters(t,0,".",",");case"amount_with_apostrophe_separator":return this.formatWithDelimiters(t,2,"'",".");case"amount_no_decimals_with_space_separator":return this.formatWithDelimiters(t,0," ");case"amount_with_space_separator":return this.formatWithDelimiters(t,2," ",",");case"amount_with_period_and_space_separator":return this.formatWithDelimiters(t,2," ",".");default:return r}})}static formatWithDelimiters(t,e=2,n=",",r="."){if(isNaN(t)||t==null)return"0";let i=(t/100).toFixed(e).split("."),o=i[0].replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1"+n),s=i[1]?r+i[1]:"";return o+s}},r0=class{id;mID;vID;vName;imageURL;name;link;quantity;price;constructor(t){this.id=t.id,this.mID=t.mID,this.vID=t.vID,this.vName=t.vName,this.imageURL=t.imageURL,this.name=t.name,this.link=t.link,this.quantity=t.quantity,this.price=t.price}},i0=class{isCartDirty=!0;cartEngagements;isGoKwikPopupOpen;previewIDs;previewVariant;pageName;moneyFormat;jsLoadTime=new Date;shopCurrencyCode;inInactive=!1;lastEnterActive=new Date;lastEnterInactive=null;currentItem;_currencyCode;get currencyCode(){return this._currencyCode}set currencyCode(t){this._currencyCode=t}static get(){return window.CooeeSDK.runtimeData}isInactive(){return this.inInactive}async setInactive(){return this.inInactive?0:(this.inInactive=!0,this.lastEnterInactive=new Date,Math.max((this.lastEnterInactive.getTime()-this.lastEnterActive.getTime())/1e3,0))}setActive(){return this.inInactive?(this.inInactive=!1,this.lastEnterActive=new Date,Math.max((this.lastEnterActive.getTime()-this.lastEnterInactive.getTime())/1e3,0)):0}isFirstActive(){return this.lastEnterInactive==null}getCurrentItem(){return this.currentItem}setCurrentItem(t){this.currentItem=new r0(t)}},o0=pr(mp()),Qu=pr(vp());function Kd(t){return Qu.default.createInstance({name:"lc",storeName:t,driver:Qu.default.LOCALSTORAGE})}var Zd=class{static storage;static async get(t,e){return await this.storage?.getItem(t)??e}static set(t,e){return this.storage?.setItem(t,e)}static remove(t){return this.storage?.removeItem(t)}static clear(){return this.storage?.clear()}static getForage(){return this.storage}},s0=class extends Zd{static storeName="usr";static{this.storage=Kd(this.storeName)}},Xu=class{static ID="id";static SESSION_LANDING_PAGE="landing";static SESSION_LAST_USED_TIME="lastUsedTime";static SESSION_SYNCED="synced";static APP_CONFIG="conf";static DEVICE_ID="did";static SDK_TOKEN="token";static FIRST_SEEN="firstSeen";static SESSION_NUMBER="sessionNumber";static GA_CLIENT_ID="gacid";static CURRENT_CART="cart"},a0=class extends Zd{static storeName="ses";static{this.storage=Kd(this.storeName)}},Qd=Object.prototype.toString;function Ca(t){switch(Qd.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return Ke(t,Error)}}function Vn(t,e){return Qd.call(t)===`[object ${e}]`}function Xd(t){return Vn(t,"ErrorEvent")}function Ju(t){return Vn(t,"DOMError")}function u0(t){return Vn(t,"DOMException")}function me(t){return Vn(t,"String")}function Na(t){return typeof t=="object"&&t!==null&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function Oa(t){return t===null||Na(t)||typeof t!="object"&&typeof t!="function"}function An(t){return Vn(t,"Object")}function zi(t){return typeof Event<"u"&&Ke(t,Event)}function l0(t){return typeof Element<"u"&&Ke(t,Element)}function c0(t){return Vn(t,"RegExp")}function Gi(t){return!!(t&&t.then&&typeof t.then=="function")}function f0(t){return An(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function Ke(t,e){try{return t instanceof e}catch{return!1}}function Jd(t){return!!(typeof t=="object"&&t!==null&&(t.__isVue||t._isVue))}function Sn(t,e=0){return typeof t!="string"||e===0||t.length<=e?t:`${t.slice(0,e)}...`}function tl(t,e){if(!Array.isArray(t))return"";let n=[];for(let r=0;r<t.length;r++){let i=t[r];try{Jd(i)?n.push("[VueViewModel]"):n.push(String(i))}catch{n.push("[value cannot be serialized]")}}return n.join(e)}function d0(t,e,n=!1){return me(t)?c0(e)?e.test(t):me(e)?n?t===e:t.includes(e):!1:!1}function qi(t,e=[],n=!1){return e.some(r=>d0(t,r,n))}function h0(t,e,n=250,r,i,o,s){if(!o.exception||!o.exception.values||!s||!Ke(s.originalException,Error))return;let a=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;a&&(o.exception.values=p0(us(t,e,i,s.originalException,r,o.exception.values,a,0),n))}function us(t,e,n,r,i,o,s,a){if(o.length>=n+1)return o;let u=[...o];if(Ke(r[i],Error)){el(s,a);let l=t(e,r[i]),d=u.length;nl(l,i,d,a),u=us(t,e,n,r[i],i,[l,...u],l,d)}return Array.isArray(r.errors)&&r.errors.forEach((l,d)=>{if(Ke(l,Error)){el(s,a);let h=t(e,l),y=u.length;nl(h,`errors[${d}]`,y,a),u=us(t,e,n,l,i,[h,...u],h,y)}}),u}function el(t,e){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism=ht(C(C({},t.mechanism),t.type==="AggregateError"&&{is_exception_group:!0}),{exception_id:e})}function nl(t,e,n,r){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism=ht(C({},t.mechanism),{type:"chained",source:e,exception_id:n,parent_id:r})}function p0(t,e){return t.map(n=>(n.value&&(n.value=Sn(n.value,e)),n))}var $e="8.18.0",rt=globalThis;function xa(t,e,n){let r=n||rt,i=r.__SENTRY__=r.__SENTRY__||{},o=i[$e]=i[$e]||{};return o[t]||(o[t]=e())}var Da=rt,g0=80;function th(t,e={}){if(!t)return"<unknown>";try{let n=t,r=5,i=[],o=0,s=0,a=" > ",u=a.length,l,d=Array.isArray(e)?e:e.keyAttrs,h=!Array.isArray(e)&&e.maxStringLength||g0;for(;n&&o++<r&&(l=m0(n,d),!(l==="html"||o>1&&s+i.length*u+l.length>=h));)i.push(l),s+=l.length,n=n.parentNode;return i.reverse().join(a)}catch{return"<unknown>"}}function m0(t,e){let n=t,r=[];if(!n||!n.tagName)return"";if(Da.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());let i=e&&e.length?e.filter(s=>n.getAttribute(s)).map(s=>[s,n.getAttribute(s)]):null;if(i&&i.length)i.forEach(s=>{r.push(`[${s[0]}="${s[1]}"]`)});else{n.id&&r.push(`#${n.id}`);let s=n.className;if(s&&me(s)){let a=s.split(/\s+/);for(let u of a)r.push(`.${u}`)}}let o=["aria-label","type","name","title","alt"];for(let s of o){let a=n.getAttribute(s);a&&r.push(`[${s}="${a}"]`)}return r.join("")}function v0(){try{return Da.document.location.href}catch{return""}}function y0(t){if(!Da.HTMLElement)return null;let e=t,n=5;for(let r=0;r<n;r++){if(!e)return null;if(e instanceof HTMLElement){if(e.dataset.sentryComponent)return e.dataset.sentryComponent;if(e.dataset.sentryElement)return e.dataset.sentryElement}e=e.parentNode}return null}var Tr=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,_0="Sentry Logger ",ls=["debug","info","warn","error","log","assert","trace"],wi={};function ka(t){if(!("console"in rt))return t();let e=rt.console,n={},r=Object.keys(wi);r.forEach(i=>{let o=wi[i];n[i]=e[i],e[i]=o});try{return t()}finally{r.forEach(i=>{e[i]=n[i]})}}function b0(){let t=!1,e={enable:()=>{t=!0},disable:()=>{t=!1},isEnabled:()=>t};return Tr?ls.forEach(n=>{e[n]=(...r)=>{t&&ka(()=>{rt.console[n](`${_0}[${n}]:`,...r)})}}):ls.forEach(n=>{e[n]=()=>{}}),e}var $=b0(),E0=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function w0(t){return t==="http"||t==="https"}function Wi(t,e=!1){let{host:n,path:r,pass:i,port:o,projectId:s,protocol:a,publicKey:u}=t;return`${a}://${u}${e&&i?`:${i}`:""}@${n}${o?`:${o}`:""}/${r&&`${r}/`}${s}`}function S0(t){let e=E0.exec(t);if(!e){ka(()=>{console.error(`Invalid Sentry Dsn: ${t}`)});return}let[n,r,i="",o="",s="",a=""]=e.slice(1),u="",l=a,d=l.split("/");if(d.length>1&&(u=d.slice(0,-1).join("/"),l=d.pop()),l){let h=l.match(/^\d+/);h&&(l=h[0])}return eh({host:o,pass:i,path:u,projectId:l,port:s,protocol:n,publicKey:r})}function eh(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function I0(t){if(!Tr)return!0;let{port:e,projectId:n,protocol:r}=t;return["protocol","publicKey","host","projectId"].find(i=>t[i]?!1:($.error(`Invalid Sentry Dsn: ${i} missing`),!0))?!1:n.match(/^\d+$/)?w0(r)?e&&isNaN(parseInt(e,10))?($.error(`Invalid Sentry Dsn: Invalid port ${e}`),!1):!0:($.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):($.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function T0(t){let e=typeof t=="string"?S0(t):eh(t);if(!(!e||!I0(e)))return e}var ae=class extends Error{constructor(t,e="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=e}};function Dt(t,e,n){if(!(e in t))return;let r=t[e],i=n(r);typeof i=="function"&&nh(i,r),t[e]=i}function Ze(t,e,n){try{Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}catch{Tr&&$.log(`Failed to add non-enumerable property "${e}" to object`,t)}}function nh(t,e){try{let n=e.prototype||{};t.prototype=e.prototype=n,Ze(t,"__sentry_original__",e)}catch{}}function Aa(t){return t.__sentry_original__}function C0(t){return Object.keys(t).map(e=>`${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`).join("&")}function rh(t){if(Ca(t))return C({message:t.message,name:t.name,stack:t.stack},il(t));if(zi(t)){let e=C({type:t.type,target:rl(t.target),currentTarget:rl(t.currentTarget)},il(t));return typeof CustomEvent<"u"&&Ke(t,CustomEvent)&&(e.detail=t.detail),e}else return t}function rl(t){try{return l0(t)?th(t):Object.prototype.toString.call(t)}catch{return"<unknown>"}}function il(t){if(typeof t=="object"&&t!==null){let e={};for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}else return{}}function N0(t,e=40){let n=Object.keys(rh(t));n.sort();let r=n[0];if(!r)return"[object has no keys]";if(r.length>=e)return Sn(r,e);for(let i=n.length;i>0;i--){let o=n.slice(0,i).join(", ");if(!(o.length>e))return i===n.length?o:Sn(o,e)}return""}function ne(t){return cs(t,new Map)}function cs(t,e){if(O0(t)){let n=e.get(t);if(n!==void 0)return n;let r={};e.set(t,r);for(let i of Object.keys(t))typeof t[i]<"u"&&(r[i]=cs(t[i],e));return r}if(Array.isArray(t)){let n=e.get(t);if(n!==void 0)return n;let r=[];return e.set(t,r),t.forEach(i=>{r.push(cs(i,e))}),r}return t}function O0(t){if(!An(t))return!1;try{let e=Object.getPrototypeOf(t).constructor.name;return!e||e==="Object"}catch{return!0}}var Qe="?",ol=/\(error: (.*)\)/,sl=/captureMessage|captureException/;function x0(...t){let e=t.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,i=0)=>{let o=[],s=n.split(`
23
- `);for(let a=r;a<s.length;a++){let u=s[a];if(u.length>1024)continue;let l=ol.test(u)?u.replace(ol,"$1"):u;if(!l.match(/\S*Error: /)){for(let d of e){let h=d(l);if(h){o.push(h);break}}if(o.length>=50+i)break}}return D0(o.slice(i))}}function D0(t){if(!t.length)return[];let e=Array.from(t);return/sentryWrapped/.test(Br(e).function||"")&&e.pop(),e.reverse(),sl.test(Br(e).function||"")&&(e.pop(),sl.test(Br(e).function||"")&&e.pop()),e.slice(0,50).map(n=>ht(C({},n),{filename:n.filename||Br(e).filename,function:n.function||Qe}))}function Br(t){return t[t.length-1]||{}}var bo="<anonymous>";function Pe(t){try{return!t||typeof t!="function"?bo:t.name||bo}catch{return bo}}function al(t){let e=t.exception;if(e){let n=[];try{return e.values.forEach(r=>{r.stacktrace.frames&&n.push(...r.stacktrace.frames)}),n}catch{return}}}var ii={},ul={};function un(t,e){ii[t]=ii[t]||[],ii[t].push(e)}function ln(t,e){ul[t]||(e(),ul[t]=!0)}function oe(t,e){let n=t&&ii[t];if(n)for(let r of n)try{r(e)}catch(i){Tr&&$.error(`Error while triggering instrumentation handler.
22
+ Cooee SDK: v${Rr.SDK_VERSION}`,console.group("%c Elevate your ecommerce experience with Cooee \u{1F680} ",t),console.log(`%c${e}`,"font-size: 13px; line-height: 1.8;"),console.groupEnd()}},Qw={providers:[K1()]},ss=Zr(uy()),Xw=class{gaEnabled;gaMeasurementID;pixelPush;website;currencyCount;money;storefrontToken;skipItemAttribute;currency;static get(){return window.CooeeSDK.config}update(t){return t??={},this.gaEnabled=t.gaEnabled,this.gaMeasurementID=t.gaMeasurementID,this.pixelPush=t.pixelPush,this.website=t.website??{},this.currencyCount=t.currencyCount??0,this.money=t.money,this.currency=t.currency,this.storefrontToken=t.storefrontToken,this.skipItemAttribute=t.skipItemAttribute,this}},tE=class{static format(t,e){let n=/{{\s*(\w+)\s*}}/;return e.replace(n,(r,i)=>{switch(i){case"amount":return this.formatWithDelimiters(t,2);case"amount_no_decimals":return this.formatWithDelimiters(t,0);case"amount_with_comma_separator":return this.formatWithDelimiters(t,2,".",",");case"amount_no_decimals_with_comma_separator":return this.formatWithDelimiters(t,0,".",",");case"amount_with_apostrophe_separator":return this.formatWithDelimiters(t,2,"'",".");case"amount_no_decimals_with_space_separator":return this.formatWithDelimiters(t,0," ");case"amount_with_space_separator":return this.formatWithDelimiters(t,2," ",",");case"amount_with_period_and_space_separator":return this.formatWithDelimiters(t,2," ",".");default:return r}})}static formatWithDelimiters(t,e=2,n=",",r="."){if(isNaN(t)||t==null)return"0";let i=(t/100).toFixed(e).split("."),o=i[0].replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1"+n),s=i[1]?r+i[1]:"";return o+s}},eE=class{id;mID;vID;vName;imageURL;name;link;quantity;price;constructor(t){this.id=t.id,this.mID=t.mID,this.vID=t.vID,this.vName=t.vName,this.imageURL=t.imageURL,this.name=t.name,this.link=t.link,this.quantity=t.quantity,this.price=t.price}},nE=class{isCartDirty=!0;cartEngagements;isGoKwikPopupOpen;previewIDs;previewVariant;pageName;moneyFormat;jsLoadTime=new Date;shopCurrencyCode;locale;inInactive=!1;lastEnterActive=new Date;lastEnterInactive=null;currentItem;_currencyCode;get currencyCode(){return this._currencyCode}set currencyCode(t){this._currencyCode=t}static get(){return window.CooeeSDK.runtimeData}isInactive(){return this.inInactive}async setInactive(){return this.inInactive?0:(this.inInactive=!0,this.lastEnterInactive=new Date,Math.max((this.lastEnterInactive.getTime()-this.lastEnterActive.getTime())/1e3,0))}setActive(){return this.inInactive?(this.inInactive=!1,this.lastEnterActive=new Date,Math.max((this.lastEnterActive.getTime()-this.lastEnterInactive.getTime())/1e3,0)):0}isFirstActive(){return this.lastEnterInactive==null}getCurrentItem(){return this.currentItem}setCurrentItem(t){this.currentItem=new eE(t)}},rE=Zr(ly()),lc=Zr(cy());function Cp(t){return lc.default.createInstance({name:"lc",storeName:t,driver:lc.default.LOCALSTORAGE})}var Ap=class{static storage;static async get(t,e){return await this.storage?.getItem(t)??e}static set(t,e){return this.storage?.setItem(t,e)}static remove(t){return this.storage?.removeItem(t)}static clear(){return this.storage?.clear()}static getForage(){return this.storage}},iE=class extends Ap{static storeName="usr";static{this.storage=Cp(this.storeName)}},cc=class{static ID="id";static SESSION_LANDING_PAGE="landing";static SESSION_LAST_USED_TIME="lastUsedTime";static SESSION_SYNCED="synced";static APP_CONFIG="conf";static DEVICE_ID="did";static SDK_TOKEN="token";static FIRST_SEEN="firstSeen";static SESSION_NUMBER="sessionNumber";static GA_CLIENT_ID="gacid";static CURRENT_CART="cart"},oE=class extends Ap{static storeName="ses";static{this.storage=Cp(this.storeName)}},Rp=Object.prototype.toString;function Ru(t){switch(Rp.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return An(t,Error)}}function mr(t,e){return Rp.call(t)===`[object ${e}]`}function kp(t){return mr(t,"ErrorEvent")}function fc(t){return mr(t,"DOMError")}function sE(t){return mr(t,"DOMException")}function $e(t){return mr(t,"String")}function ku(t){return typeof t=="object"&&t!==null&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function Du(t){return t===null||ku(t)||typeof t!="object"&&typeof t!="function"}function cr(t){return mr(t,"Object")}function Oo(t){return typeof Event<"u"&&An(t,Event)}function aE(t){return typeof Element<"u"&&An(t,Element)}function uE(t){return mr(t,"RegExp")}function To(t){return!!(t&&t.then&&typeof t.then=="function")}function lE(t){return cr(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function An(t,e){try{return t instanceof e}catch{return!1}}function Dp(t){return!!(typeof t=="object"&&t!==null&&(t.__isVue||t._isVue))}function er(t,e=0){return typeof t!="string"||e===0||t.length<=e?t:`${t.slice(0,e)}...`}function hc(t,e){if(!Array.isArray(t))return"";let n=[];for(let r=0;r<t.length;r++){let i=t[r];try{Dp(i)?n.push("[VueViewModel]"):n.push(String(i))}catch{n.push("[value cannot be serialized]")}}return n.join(e)}function cE(t,e,n=!1){return $e(t)?uE(e)?e.test(t):$e(e)?n?t===e:t.includes(e):!1:!1}function Co(t,e=[],n=!1){return e.some(r=>cE(t,r,n))}function fE(t,e,n=250,r,i,o,s){if(!o.exception||!o.exception.values||!s||!An(s.originalException,Error))return;let a=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;a&&(o.exception.values=hE(na(t,e,i,s.originalException,r,o.exception.values,a,0),n))}function na(t,e,n,r,i,o,s,a){if(o.length>=n+1)return o;let u=[...o];if(An(r[i],Error)){dc(s,a);let f=t(e,r[i]),h=u.length;pc(f,i,h,a),u=na(t,e,n,r[i],i,[f,...u],f,h)}return Array.isArray(r.errors)&&r.errors.forEach((f,h)=>{if(An(f,Error)){dc(s,a);let d=t(e,f),b=u.length;pc(d,`errors[${h}]`,b,a),u=na(t,e,n,f,i,[d,...u],d,b)}}),u}function dc(t,e){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism=Dt(k(k({},t.mechanism),t.type==="AggregateError"&&{is_exception_group:!0}),{exception_id:e})}function pc(t,e,n,r){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism=Dt(k({},t.mechanism),{type:"chained",source:e,exception_id:n,parent_id:r})}function hE(t,e){return t.map(n=>(n.value&&(n.value=er(n.value,e)),n))}var In="8.18.0",bt=globalThis;function Lu(t,e,n){let r=n||bt,i=r.__SENTRY__=r.__SENTRY__||{},o=i[In]=i[In]||{};return o[t]||(o[t]=e())}var Mu=bt,dE=80;function Lp(t,e={}){if(!t)return"<unknown>";try{let n=t,r=5,i=[],o=0,s=0,a=" > ",u=a.length,f,h=Array.isArray(e)?e:e.keyAttrs,d=!Array.isArray(e)&&e.maxStringLength||dE;for(;n&&o++<r&&(f=pE(n,h),!(f==="html"||o>1&&s+i.length*u+f.length>=d));)i.push(f),s+=f.length,n=n.parentNode;return i.reverse().join(a)}catch{return"<unknown>"}}function pE(t,e){let n=t,r=[];if(!n||!n.tagName)return"";if(Mu.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());let i=e&&e.length?e.filter(s=>n.getAttribute(s)).map(s=>[s,n.getAttribute(s)]):null;if(i&&i.length)i.forEach(s=>{r.push(`[${s[0]}="${s[1]}"]`)});else{n.id&&r.push(`#${n.id}`);let s=n.className;if(s&&$e(s)){let a=s.split(/\s+/);for(let u of a)r.push(`.${u}`)}}let o=["aria-label","type","name","title","alt"];for(let s of o){let a=n.getAttribute(s);a&&r.push(`[${s}="${a}"]`)}return r.join("")}function gE(){try{return Mu.document.location.href}catch{return""}}function yE(t){if(!Mu.HTMLElement)return null;let e=t,n=5;for(let r=0;r<n;r++){if(!e)return null;if(e instanceof HTMLElement){if(e.dataset.sentryComponent)return e.dataset.sentryComponent;if(e.dataset.sentryElement)return e.dataset.sentryElement}e=e.parentNode}return null}var oi=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,mE="Sentry Logger ",ra=["debug","info","warn","error","log","assert","trace"],io={};function Pu(t){if(!("console"in bt))return t();let e=bt.console,n={},r=Object.keys(io);r.forEach(i=>{let o=io[i];n[i]=e[i],e[i]=o});try{return t()}finally{r.forEach(i=>{e[i]=n[i]})}}function vE(){let t=!1,e={enable:()=>{t=!0},disable:()=>{t=!1},isEnabled:()=>t};return oi?ra.forEach(n=>{e[n]=(...r)=>{t&&Pu(()=>{bt.console[n](`${mE}[${n}]:`,...r)})}}):ra.forEach(n=>{e[n]=()=>{}}),e}var nt=vE(),bE=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function _E(t){return t==="http"||t==="https"}function Ao(t,e=!1){let{host:n,path:r,pass:i,port:o,projectId:s,protocol:a,publicKey:u}=t;return`${a}://${u}${e&&i?`:${i}`:""}@${n}${o?`:${o}`:""}/${r&&`${r}/`}${s}`}function wE(t){let e=bE.exec(t);if(!e){Pu(()=>{console.error(`Invalid Sentry Dsn: ${t}`)});return}let[n,r,i="",o="",s="",a=""]=e.slice(1),u="",f=a,h=f.split("/");if(h.length>1&&(u=h.slice(0,-1).join("/"),f=h.pop()),f){let d=f.match(/^\d+/);d&&(f=d[0])}return Mp({host:o,pass:i,path:u,projectId:f,port:s,protocol:n,publicKey:r})}function Mp(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function EE(t){if(!oi)return!0;let{port:e,projectId:n,protocol:r}=t;return["protocol","publicKey","host","projectId"].find(i=>t[i]?!1:(nt.error(`Invalid Sentry Dsn: ${i} missing`),!0))?!1:n.match(/^\d+$/)?_E(r)?e&&isNaN(parseInt(e,10))?(nt.error(`Invalid Sentry Dsn: Invalid port ${e}`),!1):!0:(nt.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(nt.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function SE(t){let e=typeof t=="string"?wE(t):Mp(t);if(!(!e||!EE(e)))return e}var ke=class extends Error{constructor(t,e="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=e}};function Kt(t,e,n){if(!(e in t))return;let r=t[e],i=n(r);typeof i=="function"&&Pp(i,r),t[e]=i}function Rn(t,e,n){try{Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}catch{oi&&nt.log(`Failed to add non-enumerable property "${e}" to object`,t)}}function Pp(t,e){try{let n=e.prototype||{};t.prototype=e.prototype=n,Rn(t,"__sentry_original__",e)}catch{}}function ju(t){return t.__sentry_original__}function IE(t){return Object.keys(t).map(e=>`${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`).join("&")}function jp(t){if(Ru(t))return k({message:t.message,name:t.name,stack:t.stack},yc(t));if(Oo(t)){let e=k({type:t.type,target:gc(t.target),currentTarget:gc(t.currentTarget)},yc(t));return typeof CustomEvent<"u"&&An(t,CustomEvent)&&(e.detail=t.detail),e}else return t}function gc(t){try{return aE(t)?Lp(t):Object.prototype.toString.call(t)}catch{return"<unknown>"}}function yc(t){if(typeof t=="object"&&t!==null){let e={};for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}else return{}}function NE(t,e=40){let n=Object.keys(jp(t));n.sort();let r=n[0];if(!r)return"[object has no keys]";if(r.length>=e)return er(r,e);for(let i=n.length;i>0;i--){let o=n.slice(0,i).join(", ");if(!(o.length>e))return i===n.length?o:er(o,e)}return""}function Ne(t){return ia(t,new Map)}function ia(t,e){if(xE(t)){let n=e.get(t);if(n!==void 0)return n;let r={};e.set(t,r);for(let i of Object.keys(t))typeof t[i]<"u"&&(r[i]=ia(t[i],e));return r}if(Array.isArray(t)){let n=e.get(t);if(n!==void 0)return n;let r=[];return e.set(t,r),t.forEach(i=>{r.push(ia(i,e))}),r}return t}function xE(t){if(!cr(t))return!1;try{let e=Object.getPrototypeOf(t).constructor.name;return!e||e==="Object"}catch{return!0}}var kn="?",mc=/\(error: (.*)\)/,vc=/captureMessage|captureException/;function OE(...t){let e=t.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,i=0)=>{let o=[],s=n.split(`
23
+ `);for(let a=r;a<s.length;a++){let u=s[a];if(u.length>1024)continue;let f=mc.test(u)?u.replace(mc,"$1"):u;if(!f.match(/\S*Error: /)){for(let h of e){let d=h(f);if(d){o.push(d);break}}if(o.length>=50+i)break}}return TE(o.slice(i))}}function TE(t){if(!t.length)return[];let e=Array.from(t);return/sentryWrapped/.test(Ei(e).function||"")&&e.pop(),e.reverse(),vc.test(Ei(e).function||"")&&(e.pop(),vc.test(Ei(e).function||"")&&e.pop()),e.slice(0,50).map(n=>Dt(k({},n),{filename:n.filename||Ei(e).filename,function:n.function||kn}))}function Ei(t){return t[t.length-1]||{}}var as="<anonymous>";function hn(t){try{return!t||typeof t!="function"?as:t.name||as}catch{return as}}function bc(t){let e=t.exception;if(e){let n=[];try{return e.values.forEach(r=>{r.stacktrace.frames&&n.push(...r.stacktrace.frames)}),n}catch{return}}}var Bi={},_c={};function Vn(t,e){Bi[t]=Bi[t]||[],Bi[t].push(e)}function Fn(t,e){_c[t]||(e(),_c[t]=!0)}function Te(t,e){let n=t&&Bi[t];if(n)for(let r of n)try{r(e)}catch(i){oi&&nt.error(`Error while triggering instrumentation handler.
24
24
  Type: ${t}
25
- Name: ${Pe(r)}
26
- Error:`,i)}}function k0(t){let e="console";un(e,t),ln(e,A0)}function A0(){"console"in rt&&ls.forEach(function(t){t in rt.console&&Dt(rt.console,t,function(e){return wi[t]=e,function(...n){oe("console",{args:n,level:t});let r=wi[t];r&&r.apply(rt.console,n)}})})}var fs=rt;function R0(){if(!("fetch"in fs))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function ds(t){return t&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function L0(){if(typeof EdgeRuntime=="string")return!0;if(!R0())return!1;if(ds(fs.fetch))return!0;let t=!1,e=fs.document;if(e&&typeof e.createElement=="function")try{let n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(t=ds(n.contentWindow.fetch)),e.head.removeChild(n)}catch(n){Tr&&$.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return t}var ih=1e3;function Cr(){return Date.now()/ih}function P0(){let{performance:t}=rt;if(!t||!t.now)return Cr;let e=Date.now()-t.now(),n=t.timeOrigin==null?e:t.timeOrigin;return()=>(n+t.now())/ih}var ke=P0(),$r,F1=(()=>{let{performance:t}=rt;if(!t||!t.now){$r="none";return}let e=3600*1e3,n=t.now(),r=Date.now(),i=t.timeOrigin?Math.abs(t.timeOrigin+n-r):e,o=i<e,s=t.timing&&t.timing.navigationStart,a=typeof s=="number"?Math.abs(s+n-r):e,u=a<e;return o||u?i<=a?($r="timeOrigin",t.timeOrigin):($r="navigationStart",s):($r="dateNow",r)})();function M0(t){let e="fetch";un(e,t),ln(e,j0)}function j0(){L0()&&Dt(rt,"fetch",function(t){return function(...e){let{method:n,url:r}=V0(e),i={args:e,fetchData:{method:n,url:r},startTimestamp:ke()*1e3};oe("fetch",C({},i));let o=new Error().stack;return t.apply(rt,e).then(s=>{let a=ht(C({},i),{endTimestamp:ke()*1e3,response:s});return oe("fetch",a),s},s=>{let a=ht(C({},i),{endTimestamp:ke()*1e3,error:s});throw oe("fetch",a),Ca(s)&&s.stack===void 0&&(s.stack=o,Ze(s,"framesToPop",1)),s})}})}function hs(t,e){return!!t&&typeof t=="object"&&!!t[e]}function ll(t){return typeof t=="string"?t:t?hs(t,"url")?t.url:t.toString?t.toString():"":""}function V0(t){if(t.length===0)return{method:"GET",url:""};if(t.length===2){let[n,r]=t;return{url:ll(n),method:hs(r,"method")?String(r.method).toUpperCase():"GET"}}let e=t[0];return{url:ll(e),method:hs(e,"method")?String(e.method).toUpperCase():"GET"}}var zr=null;function F0(t){let e="error";un(e,t),ln(e,U0)}function U0(){zr=rt.onerror,rt.onerror=function(t,e,n,r,i){return oe("error",{column:r,error:i,line:n,msg:t,url:e}),zr&&!zr.__SENTRY_LOADER__?zr.apply(this,arguments):!1},rt.onerror.__SENTRY_INSTRUMENTED__=!0}var Gr=null;function H0(t){let e="unhandledrejection";un(e,t),ln(e,B0)}function B0(){Gr=rt.onunhandledrejection,rt.onunhandledrejection=function(t){return oe("unhandledrejection",t),Gr&&!Gr.__SENTRY_LOADER__?Gr.apply(this,arguments):!0},rt.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function $0(){return"npm"}function z0(){let t=typeof WeakSet=="function",e=t?new WeakSet:[];function n(i){if(t)return e.has(i)?!0:(e.add(i),!1);for(let o=0;o<e.length;o++)if(e[o]===i)return!0;return e.push(i),!1}function r(i){if(t)e.delete(i);else for(let o=0;o<e.length;o++)if(e[o]===i){e.splice(o,1);break}}return[n,r]}function se(){let t=rt,e=t.crypto||t.msCrypto,n=()=>Math.random()*16;try{if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");e&&e.getRandomValues&&(n=()=>{let r=new Uint8Array(1);return e.getRandomValues(r),r[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,r=>(r^(n()&15)>>r/4).toString(16))}function oh(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function Ie(t){let{message:e,event_id:n}=t;if(e)return e;let r=oh(t);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function ps(t,e,n){let r=t.exception=t.exception||{},i=r.values=r.values||[],o=i[0]=i[0]||{};o.value||(o.value=e||""),o.type||(o.type=n||"Error")}function fr(t,e){let n=oh(t);if(!n)return;let r={type:"generic",handled:!0},i=n.mechanism;if(n.mechanism=C(C(C({},r),i),e),e&&"data"in e){let o=C(C({},i&&i.data),e.data);n.mechanism.data=o}}function cl(t){if(t&&t.__sentry_captured__)return!0;try{Ze(t,"__sentry_captured__",!0)}catch{}return!1}function G0(t){return Array.isArray(t)?t:[t]}function Te(t,e=100,n=1/0){try{return gs("",t,e,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function sh(t,e=3,n=100*1024){let r=Te(t,e);return K0(r)>n?sh(t,e-1,n):r}function gs(t,e,n=1/0,r=1/0,i=z0()){let[o,s]=i;if(e==null||["number","boolean","string"].includes(typeof e)&&!Number.isNaN(e))return e;let a=q0(t,e);if(!a.startsWith("[object "))return a;if(e.__sentry_skip_normalization__)return e;let u=typeof e.__sentry_override_normalization_depth__=="number"?e.__sentry_override_normalization_depth__:n;if(u===0)return a.replace("object ","");if(o(e))return"[Circular ~]";let l=e;if(l&&typeof l.toJSON=="function")try{let _=l.toJSON();return gs("",_,u-1,r,i)}catch{}let d=Array.isArray(e)?[]:{},h=0,y=rh(e);for(let _ in y){if(!Object.prototype.hasOwnProperty.call(y,_))continue;if(h>=r){d[_]="[MaxProperties ~]";break}let w=y[_];d[_]=gs(_,w,u-1,r,i),h++}return s(e),d}function q0(t,e){try{if(t==="domain"&&e&&typeof e=="object"&&e._events)return"[Domain]";if(t==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&e===global)return"[Global]";if(typeof window<"u"&&e===window)return"[Window]";if(typeof document<"u"&&e===document)return"[Document]";if(Jd(e))return"[VueViewModel]";if(f0(e))return"[SyntheticEvent]";if(typeof e=="number"&&e!==e)return"[NaN]";if(typeof e=="function")return`[Function: ${Pe(e)}]`;if(typeof e=="symbol")return`[${String(e)}]`;if(typeof e=="bigint")return`[BigInt: ${String(e)}]`;let n=W0(e);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function W0(t){let e=Object.getPrototypeOf(t);return e?e.constructor.name:"null prototype"}function Y0(t){return~-encodeURI(t).split(/%..|./).length}function K0(t){return Y0(JSON.stringify(t))}var he;(function(t){t[t.PENDING=0]="PENDING";let e=1;t[t.RESOLVED=e]="RESOLVED";let n=2;t[t.REJECTED=n]="REJECTED"})(he||(he={}));function Xe(t){return new Nr(e=>{e(t)})}function Si(t){return new Nr((e,n)=>{n(t)})}var Nr=class Ve{constructor(e){Ve.prototype.__init.call(this),Ve.prototype.__init2.call(this),Ve.prototype.__init3.call(this),Ve.prototype.__init4.call(this),this._state=he.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(n){this._reject(n)}}then(e,n){return new Ve((r,i)=>{this._handlers.push([!1,o=>{if(!e)r(o);else try{r(e(o))}catch(s){i(s)}},o=>{if(!n)i(o);else try{r(n(o))}catch(s){i(s)}}]),this._executeHandlers()})}catch(e){return this.then(n=>n,e)}finally(e){return new Ve((n,r)=>{let i,o;return this.then(s=>{o=!1,i=s,e&&e()},s=>{o=!0,i=s,e&&e()}).then(()=>{if(o){r(i);return}n(i)})})}__init(){this._resolve=e=>{this._setResult(he.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(he.REJECTED,e)}}__init3(){this._setResult=(e,n)=>{if(this._state===he.PENDING){if(Gi(n)){n.then(this._resolve,this._reject);return}this._state=e,this._value=n,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===he.PENDING)return;let e=this._handlers.slice();this._handlers=[],e.forEach(n=>{n[0]||(this._state===he.RESOLVED&&n[1](this._value),this._state===he.REJECTED&&n[2](this._value),n[0]=!0)})}}};function Z0(t){let e=[];function n(){return t===void 0||e.length<t}function r(s){return e.splice(e.indexOf(s),1)[0]||Promise.resolve(void 0)}function i(s){if(!n())return Si(new ae("Not adding Promise because buffer limit was reached."));let a=s();return e.indexOf(a)===-1&&e.push(a),a.then(()=>r(a)).then(null,()=>r(a).then(null,()=>{})),a}function o(s){return new Nr((a,u)=>{let l=e.length;if(!l)return a(!0);let d=setTimeout(()=>{s&&s>0&&a(!1)},s);e.forEach(h=>{Xe(h).then(()=>{--l||(clearTimeout(d),a(!0))},u)})})}return{$:e,add:i,drain:o}}function Eo(t){if(!t)return{};let e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};let n=e[6]||"",r=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],search:n,hash:r,relative:e[5]+n+r}}var Q0=["fatal","error","warning","log","info","debug"];function X0(t){return t==="warn"?"warning":Q0.includes(t)?t:"log"}var J0="sentry-",tw=/^sentry-/;function ew(t){let e=nw(t);if(!e)return;let n=Object.entries(e).reduce((r,[i,o])=>{if(i.match(tw)){let s=i.slice(J0.length);r[s]=o}return r},{});if(Object.keys(n).length>0)return n}function nw(t){if(!(!t||!me(t)&&!Array.isArray(t)))return Array.isArray(t)?t.reduce((e,n)=>{let r=fl(n);return Object.entries(r).forEach(([i,o])=>{e[i]=o}),e},{}):fl(t)}function fl(t){return t.split(",").map(e=>e.split("=").map(n=>decodeURIComponent(n.trim()))).reduce((e,[n,r])=>(n&&r&&(e[n]=r),e),{})}function Or(t,e=[]){return[t,e]}function rw(t,e){let[n,r]=t;return[n,[...r,e]]}function dl(t,e){let n=t[1];for(let r of n){let i=r[0].type;if(e(r,i))return!0}return!1}function ms(t){return rt.__SENTRY__&&rt.__SENTRY__.encodePolyfill?rt.__SENTRY__.encodePolyfill(t):new TextEncoder().encode(t)}function iw(t){let[e,n]=t,r=JSON.stringify(e);function i(o){typeof r=="string"?r=typeof o=="string"?r+o:[ms(r),o]:r.push(typeof o=="string"?ms(o):o)}for(let o of n){let[s,a]=o;if(i(`
25
+ Name: ${hn(r)}
26
+ Error:`,i)}}function CE(t){let e="console";Vn(e,t),Fn(e,AE)}function AE(){"console"in bt&&ra.forEach(function(t){t in bt.console&&Kt(bt.console,t,function(e){return io[t]=e,function(...n){Te("console",{args:n,level:t});let r=io[t];r&&r.apply(bt.console,n)}})})}var oa=bt;function RE(){if(!("fetch"in oa))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function sa(t){return t&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function kE(){if(typeof EdgeRuntime=="string")return!0;if(!RE())return!1;if(sa(oa.fetch))return!0;let t=!1,e=oa.document;if(e&&typeof e.createElement=="function")try{let n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(t=sa(n.contentWindow.fetch)),e.head.removeChild(n)}catch(n){oi&&nt.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return t}var Up=1e3;function si(){return Date.now()/Up}function DE(){let{performance:t}=bt;if(!t||!t.now)return si;let e=Date.now()-t.now(),n=t.timeOrigin==null?e:t.timeOrigin;return()=>(n+t.now())/Up}var an=DE(),Si,MO=(()=>{let{performance:t}=bt;if(!t||!t.now){Si="none";return}let e=3600*1e3,n=t.now(),r=Date.now(),i=t.timeOrigin?Math.abs(t.timeOrigin+n-r):e,o=i<e,s=t.timing&&t.timing.navigationStart,a=typeof s=="number"?Math.abs(s+n-r):e,u=a<e;return o||u?i<=a?(Si="timeOrigin",t.timeOrigin):(Si="navigationStart",s):(Si="dateNow",r)})();function LE(t){let e="fetch";Vn(e,t),Fn(e,ME)}function ME(){kE()&&Kt(bt,"fetch",function(t){return function(...e){let{method:n,url:r}=PE(e),i={args:e,fetchData:{method:n,url:r},startTimestamp:an()*1e3};Te("fetch",k({},i));let o=new Error().stack;return t.apply(bt,e).then(s=>{let a=Dt(k({},i),{endTimestamp:an()*1e3,response:s});return Te("fetch",a),s},s=>{let a=Dt(k({},i),{endTimestamp:an()*1e3,error:s});throw Te("fetch",a),Ru(s)&&s.stack===void 0&&(s.stack=o,Rn(s,"framesToPop",1)),s})}})}function aa(t,e){return!!t&&typeof t=="object"&&!!t[e]}function wc(t){return typeof t=="string"?t:t?aa(t,"url")?t.url:t.toString?t.toString():"":""}function PE(t){if(t.length===0)return{method:"GET",url:""};if(t.length===2){let[n,r]=t;return{url:wc(n),method:aa(r,"method")?String(r.method).toUpperCase():"GET"}}let e=t[0];return{url:wc(e),method:aa(e,"method")?String(e.method).toUpperCase():"GET"}}var Ii=null;function jE(t){let e="error";Vn(e,t),Fn(e,UE)}function UE(){Ii=bt.onerror,bt.onerror=function(t,e,n,r,i){return Te("error",{column:r,error:i,line:n,msg:t,url:e}),Ii&&!Ii.__SENTRY_LOADER__?Ii.apply(this,arguments):!1},bt.onerror.__SENTRY_INSTRUMENTED__=!0}var Ni=null;function BE(t){let e="unhandledrejection";Vn(e,t),Fn(e,VE)}function VE(){Ni=bt.onunhandledrejection,bt.onunhandledrejection=function(t){return Te("unhandledrejection",t),Ni&&!Ni.__SENTRY_LOADER__?Ni.apply(this,arguments):!0},bt.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function FE(){return"npm"}function $E(){let t=typeof WeakSet=="function",e=t?new WeakSet:[];function n(i){if(t)return e.has(i)?!0:(e.add(i),!1);for(let o=0;o<e.length;o++)if(e[o]===i)return!0;return e.push(i),!1}function r(i){if(t)e.delete(i);else for(let o=0;o<e.length;o++)if(e[o]===i){e.splice(o,1);break}}return[n,r]}function Ce(){let t=bt,e=t.crypto||t.msCrypto,n=()=>Math.random()*16;try{if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");e&&e.getRandomValues&&(n=()=>{let r=new Uint8Array(1);return e.getRandomValues(r),r[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,r=>(r^(n()&15)>>r/4).toString(16))}function Bp(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function tn(t){let{message:e,event_id:n}=t;if(e)return e;let r=Bp(t);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function ua(t,e,n){let r=t.exception=t.exception||{},i=r.values=r.values||[],o=i[0]=i[0]||{};o.value||(o.value=e||""),o.type||(o.type=n||"Error")}function Hr(t,e){let n=Bp(t);if(!n)return;let r={type:"generic",handled:!0},i=n.mechanism;if(n.mechanism=k(k(k({},r),i),e),e&&"data"in e){let o=k(k({},i&&i.data),e.data);n.mechanism.data=o}}function Ec(t){if(t&&t.__sentry_captured__)return!0;try{Rn(t,"__sentry_captured__",!0)}catch{}return!1}function HE(t){return Array.isArray(t)?t:[t]}function en(t,e=100,n=1/0){try{return la("",t,e,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function Vp(t,e=3,n=100*1024){let r=en(t,e);return WE(r)>n?Vp(t,e-1,n):r}function la(t,e,n=1/0,r=1/0,i=$E()){let[o,s]=i;if(e==null||["number","boolean","string"].includes(typeof e)&&!Number.isNaN(e))return e;let a=zE(t,e);if(!a.startsWith("[object "))return a;if(e.__sentry_skip_normalization__)return e;let u=typeof e.__sentry_override_normalization_depth__=="number"?e.__sentry_override_normalization_depth__:n;if(u===0)return a.replace("object ","");if(o(e))return"[Circular ~]";let f=e;if(f&&typeof f.toJSON=="function")try{let _=f.toJSON();return la("",_,u-1,r,i)}catch{}let h=Array.isArray(e)?[]:{},d=0,b=jp(e);for(let _ in b){if(!Object.prototype.hasOwnProperty.call(b,_))continue;if(d>=r){h[_]="[MaxProperties ~]";break}let w=b[_];h[_]=la(_,w,u-1,r,i),d++}return s(e),h}function zE(t,e){try{if(t==="domain"&&e&&typeof e=="object"&&e._events)return"[Domain]";if(t==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&e===global)return"[Global]";if(typeof window<"u"&&e===window)return"[Window]";if(typeof document<"u"&&e===document)return"[Document]";if(Dp(e))return"[VueViewModel]";if(lE(e))return"[SyntheticEvent]";if(typeof e=="number"&&e!==e)return"[NaN]";if(typeof e=="function")return`[Function: ${hn(e)}]`;if(typeof e=="symbol")return`[${String(e)}]`;if(typeof e=="bigint")return`[BigInt: ${String(e)}]`;let n=qE(e);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function qE(t){let e=Object.getPrototypeOf(t);return e?e.constructor.name:"null prototype"}function GE(t){return~-encodeURI(t).split(/%..|./).length}function WE(t){return GE(JSON.stringify(t))}var Be;(function(t){t[t.PENDING=0]="PENDING";let e=1;t[t.RESOLVED=e]="RESOLVED";let n=2;t[t.REJECTED=n]="REJECTED"})(Be||(Be={}));function Dn(t){return new ai(e=>{e(t)})}function oo(t){return new ai((e,n)=>{n(t)})}var ai=class vn{constructor(e){vn.prototype.__init.call(this),vn.prototype.__init2.call(this),vn.prototype.__init3.call(this),vn.prototype.__init4.call(this),this._state=Be.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(n){this._reject(n)}}then(e,n){return new vn((r,i)=>{this._handlers.push([!1,o=>{if(!e)r(o);else try{r(e(o))}catch(s){i(s)}},o=>{if(!n)i(o);else try{r(n(o))}catch(s){i(s)}}]),this._executeHandlers()})}catch(e){return this.then(n=>n,e)}finally(e){return new vn((n,r)=>{let i,o;return this.then(s=>{o=!1,i=s,e&&e()},s=>{o=!0,i=s,e&&e()}).then(()=>{if(o){r(i);return}n(i)})})}__init(){this._resolve=e=>{this._setResult(Be.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(Be.REJECTED,e)}}__init3(){this._setResult=(e,n)=>{if(this._state===Be.PENDING){if(To(n)){n.then(this._resolve,this._reject);return}this._state=e,this._value=n,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===Be.PENDING)return;let e=this._handlers.slice();this._handlers=[],e.forEach(n=>{n[0]||(this._state===Be.RESOLVED&&n[1](this._value),this._state===Be.REJECTED&&n[2](this._value),n[0]=!0)})}}};function ZE(t){let e=[];function n(){return t===void 0||e.length<t}function r(s){return e.splice(e.indexOf(s),1)[0]||Promise.resolve(void 0)}function i(s){if(!n())return oo(new ke("Not adding Promise because buffer limit was reached."));let a=s();return e.indexOf(a)===-1&&e.push(a),a.then(()=>r(a)).then(null,()=>r(a).then(null,()=>{})),a}function o(s){return new ai((a,u)=>{let f=e.length;if(!f)return a(!0);let h=setTimeout(()=>{s&&s>0&&a(!1)},s);e.forEach(d=>{Dn(d).then(()=>{--f||(clearTimeout(h),a(!0))},u)})})}return{$:e,add:i,drain:o}}function us(t){if(!t)return{};let e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};let n=e[6]||"",r=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],search:n,hash:r,relative:e[5]+n+r}}var YE=["fatal","error","warning","log","info","debug"];function JE(t){return t==="warn"?"warning":YE.includes(t)?t:"log"}var KE="sentry-",QE=/^sentry-/;function XE(t){let e=tS(t);if(!e)return;let n=Object.entries(e).reduce((r,[i,o])=>{if(i.match(QE)){let s=i.slice(KE.length);r[s]=o}return r},{});if(Object.keys(n).length>0)return n}function tS(t){if(!(!t||!$e(t)&&!Array.isArray(t)))return Array.isArray(t)?t.reduce((e,n)=>{let r=Sc(n);return Object.entries(r).forEach(([i,o])=>{e[i]=o}),e},{}):Sc(t)}function Sc(t){return t.split(",").map(e=>e.split("=").map(n=>decodeURIComponent(n.trim()))).reduce((e,[n,r])=>(n&&r&&(e[n]=r),e),{})}function ui(t,e=[]){return[t,e]}function eS(t,e){let[n,r]=t;return[n,[...r,e]]}function Ic(t,e){let n=t[1];for(let r of n){let i=r[0].type;if(e(r,i))return!0}return!1}function ca(t){return bt.__SENTRY__&&bt.__SENTRY__.encodePolyfill?bt.__SENTRY__.encodePolyfill(t):new TextEncoder().encode(t)}function nS(t){let[e,n]=t,r=JSON.stringify(e);function i(o){typeof r=="string"?r=typeof o=="string"?r+o:[ca(r),o]:r.push(typeof o=="string"?ca(o):o)}for(let o of n){let[s,a]=o;if(i(`
27
27
  ${JSON.stringify(s)}
28
- `),typeof a=="string"||a instanceof Uint8Array)i(a);else{let u;try{u=JSON.stringify(a)}catch{u=JSON.stringify(Te(a))}i(u)}}return typeof r=="string"?r:ow(r)}function ow(t){let e=t.reduce((i,o)=>i+o.length,0),n=new Uint8Array(e),r=0;for(let i of t)n.set(i,r),r+=i.length;return n}function sw(t){let e=typeof t.data=="string"?ms(t.data):t.data;return[ne({type:"attachment",length:e.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType}),e]}var aw={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function hl(t){return aw[t]}function ah(t){if(!t||!t.sdk)return;let{name:e,version:n}=t.sdk;return{name:e,version:n}}function uw(t,e,n,r){let i=t.sdkProcessingMetadata&&t.sdkProcessingMetadata.dynamicSamplingContext;return C(C(C({event_id:t.event_id,sent_at:new Date().toISOString()},e&&{sdk:e}),!!n&&r&&{dsn:Wi(r)}),i&&{trace:ne(C({},i))})}function lw(t,e,n){let r=[{type:"client_report"},{timestamp:n||Cr(),discarded_events:t}];return Or(e?{dsn:e}:{},[r])}function cw(t,e=Date.now()){let n=parseInt(`${t}`,10);if(!isNaN(n))return n*1e3;let r=Date.parse(`${t}`);return isNaN(r)?6e4:r-e}function fw(t,e){return t[e]||t.all||0}function dw(t,e,n=Date.now()){return fw(t,e)>n}function hw(t,{statusCode:e,headers:n},r=Date.now()){let i=C({},t),o=n&&n["x-sentry-rate-limits"],s=n&&n["retry-after"];if(o)for(let a of o.trim().split(",")){let[u,l,,,d]=a.split(":",5),h=parseInt(u,10),y=(isNaN(h)?60:h)*1e3;if(!l)i.all=r+y;else for(let _ of l.split(";"))_==="metric_bucket"?(!d||d.split(";").includes("custom"))&&(i[_]=r+y):i[_]=r+y}else s?i.all=r+cw(s,r):e===429&&(i.all=r+60*1e3);return i}function pl(){return{traceId:se(),spanId:se().substring(16)}}var qr=rt;function pw(){let t=qr.chrome,e=t&&t.app&&t.app.runtime,n="history"in qr&&!!qr.history.pushState&&!!qr.history.replaceState;return!e&&n}var vt=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function Yi(){return Ra(rt),rt}function Ra(t){let e=t.__SENTRY__=t.__SENTRY__||{};return e.version=e.version||$e,e[$e]=e[$e]||{}}function vs(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),!t.did&&!e.did&&(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||ke(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=e.sid.length===32?e.sid:se()),e.init!==void 0&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),typeof e.started=="number"&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if(typeof e.duration=="number")t.duration=e.duration;else{let n=t.timestamp-t.started;t.duration=n>=0?n:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),typeof e.errors=="number"&&(t.errors=e.errors),e.status&&(t.status=e.status)}var ys="_sentrySpan";function gl(t,e){e?Ze(t,ys,e):delete t[ys]}function ml(t){return t[ys]}var gw=100,mw=class uh{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=pl()}clone(){let e=new uh;return e._breadcrumbs=[...this._breadcrumbs],e._tags=C({},this._tags),e._extra=C({},this._extra),e._contexts=C({},this._contexts),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata=C({},this._sdkProcessingMetadata),e._propagationContext=C({},this._propagationContext),e._client=this._client,e._lastEventId=this._lastEventId,gl(e,ml(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&vs(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags=C(C({},this._tags),e),this._notifyScopeListeners(),this}setTag(e,n){return this._tags=ht(C({},this._tags),{[e]:n}),this._notifyScopeListeners(),this}setExtras(e){return this._extra=C(C({},this._extra),e),this._notifyScopeListeners(),this}setExtra(e,n){return this._extra=ht(C({},this._extra),{[e]:n}),this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,n){return n===null?delete this._contexts[e]:this._contexts[e]=n,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;let n=typeof e=="function"?e(this):e,[r,i]=n instanceof _e?[n.getScopeData(),n.getRequestSession()]:An(n)?[e,e.requestSession]:[],{tags:o,extra:s,user:a,contexts:u,level:l,fingerprint:d=[],propagationContext:h}=r||{};return this._tags=C(C({},this._tags),o),this._extra=C(C({},this._extra),s),this._contexts=C(C({},this._contexts),u),a&&Object.keys(a).length&&(this._user=a),l&&(this._level=l),d.length&&(this._fingerprint=d),h&&(this._propagationContext=h),i&&(this._requestSession=i),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,gl(this,void 0),this._attachments=[],this._propagationContext=pl(),this._notifyScopeListeners(),this}addBreadcrumb(e,n){let r=typeof n=="number"?n:gw;if(r<=0)return this;let i=C({timestamp:Cr()},e),o=this._breadcrumbs;return o.push(i),this._breadcrumbs=o.length>r?o.slice(-r):o,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:ml(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=C(C({},this._sdkProcessingMetadata),e),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,n){let r=n&&n.event_id?n.event_id:se();if(!this._client)return $.warn("No client configured on scope - will not capture exception!"),r;let i=new Error("Sentry syntheticException");return this._client.captureException(e,ht(C({originalException:e,syntheticException:i},n),{event_id:r}),this),r}captureMessage(e,n,r){let i=r&&r.event_id?r.event_id:se();if(!this._client)return $.warn("No client configured on scope - will not capture message!"),i;let o=new Error(e);return this._client.captureMessage(e,n,ht(C({originalException:e,syntheticException:o},r),{event_id:i}),this),i}captureEvent(e,n){let r=n&&n.event_id?n.event_id:se();return this._client?(this._client.captureEvent(e,ht(C({},n),{event_id:r}),this),r):($.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}},_e=mw;function vw(){return xa("defaultCurrentScope",()=>new _e)}function yw(){return xa("defaultIsolationScope",()=>new _e)}var _w=class{constructor(t,e){let n;t?n=t:n=new _e;let r;e?r=e:r=new _e,this._stack=[{scope:n}],this._isolationScope=r}withScope(t){let e=this._pushScope(),n;try{n=t(e)}catch(r){throw this._popScope(),r}return Gi(n)?n.then(r=>(this._popScope(),r),r=>{throw this._popScope(),r}):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}};function Rn(){let t=Yi(),e=Ra(t);return e.stack=e.stack||new _w(vw(),yw())}function bw(t){return Rn().withScope(t)}function Ew(t,e){let n=Rn();return n.withScope(()=>(n.getStackTop().scope=t,e(t)))}function vl(t){return Rn().withScope(()=>t(Rn().getIsolationScope()))}function ww(){return{withIsolationScope:vl,withScope:bw,withSetScope:Ew,withSetIsolationScope:(t,e)=>vl(e),getCurrentScope:()=>Rn().getScope(),getIsolationScope:()=>Rn().getIsolationScope()}}function La(t){let e=Ra(t);return e.acs?e.acs:ww()}function Pa(){let t=Yi();return La(t).getCurrentScope()}function lh(){let t=Yi();return La(t).getIsolationScope()}function Sw(){return xa("globalScope",()=>new _e)}function Iw(...t){let e=Yi(),n=La(e);if(t.length===2){let[r,i]=t;return r?n.withSetScope(r,i):n.withScope(i)}return n.withScope(t[0])}function qt(){return Pa().getClient()}var Tw="_sentryMetrics";function Cw(t){let e=t[Tw];if(!e)return;let n={};for(let[,[r,i]]of e)(n[r]||(n[r]=[])).push(ne(i));return n}var Nw="sentry.source",Ow="sentry.sample_rate",xw="sentry.op",Dw="sentry.origin",kw=1;function Aw(t){let{spanId:e,traceId:n}=t.spanContext(),{parent_span_id:r}=Ii(t);return ne({parent_span_id:r,span_id:e,trace_id:n})}function yl(t){return typeof t=="number"?_l(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?_l(t.getTime()):ke()}function _l(t){return t>9999999999?t/1e3:t}function Ii(t){if(Lw(t))return t.getSpanJSON();try{let{spanId:e,traceId:n}=t.spanContext();if(Rw(t)){let{attributes:r,startTime:i,name:o,endTime:s,parentSpanId:a,status:u}=t;return ne({span_id:e,trace_id:n,data:r,description:o,parent_span_id:a,start_timestamp:yl(i),timestamp:yl(s)||void 0,status:Mw(u),op:r[xw],origin:r[Dw],_metrics_summary:Cw(t)})}return{span_id:e,trace_id:n}}catch{return{}}}function Rw(t){let e=t;return!!e.attributes&&!!e.startTime&&!!e.name&&!!e.endTime&&!!e.status}function Lw(t){return typeof t.getSpanJSON=="function"}function Pw(t){let{traceFlags:e}=t.spanContext();return e===kw}function Mw(t){if(!(!t||t.code===0))return t.code===1?"ok":t.message||"unknown_error"}var jw="_sentryRootSpan";function ch(t){return t[jw]||t}var fh="production",Vw="_frozenDsc";function dh(t,e){let n=e.getOptions(),{publicKey:r}=e.getDsn()||{},i=ne({environment:n.environment||fh,release:n.release,public_key:r,trace_id:t});return e.emit("createDsc",i),i}function Fw(t){let e=qt();if(!e)return{};let n=dh(Ii(t).trace_id||"",e),r=ch(t),i=r[Vw];if(i)return i;let o=r.spanContext().traceState,s=o&&o.get("sentry.dsc"),a=s&&ew(s);if(a)return a;let u=Ii(r),l=u.data||{},d=l[Ow];d!=null&&(n.sample_rate=`${d}`);let h=l[Nw],y=u.description;return h!=="url"&&y&&(n.transaction=y),n.sampled=String(Pw(r)),e.emit("createDsc",n,r),n}function Uw(t){if(typeof t=="boolean")return Number(t);let e=typeof t=="string"?parseFloat(t):t;if(typeof e!="number"||isNaN(e)||e<0||e>1){vt&&$.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(t)} of type ${JSON.stringify(typeof t)}.`);return}return e}function Hw(t,e){return e&&(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||e.name,t.sdk.version=t.sdk.version||e.version,t.sdk.integrations=[...t.sdk.integrations||[],...e.integrations||[]],t.sdk.packages=[...t.sdk.packages||[],...e.packages||[]]),t}function Bw(t,e,n,r){let i=ah(n),o=C(C({sent_at:new Date().toISOString()},i&&{sdk:i}),!!r&&e&&{dsn:Wi(e)}),s="aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()];return Or(o,[s])}function $w(t,e,n,r){let i=ah(n),o=t.type&&t.type!=="replay_event"?t.type:"event";Hw(t,n&&n.sdk);let s=uw(t,i,r,e);return delete t.sdkProcessingMetadata,Or(s,[[{type:o},t]])}function _s(t,e,n,r=0){return new Nr((i,o)=>{let s=t[r];if(e===null||typeof s!="function")i(e);else{let a=s(C({},e),n);vt&&s.id&&a===null&&$.log(`Event processor "${s.id}" dropped event`),Gi(a)?a.then(u=>_s(t,u,n,r+1).then(i)).then(null,o):_s(t,a,n,r+1).then(i).then(null,o)}})}function zw(t,e){let{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:o}=e;Gw(t,e),r&&Yw(t,r),Kw(t,n),qw(t,i),Ww(t,o)}function bl(t,e){let{extra:n,tags:r,user:i,contexts:o,level:s,sdkProcessingMetadata:a,breadcrumbs:u,fingerprint:l,eventProcessors:d,attachments:h,propagationContext:y,transactionName:_,span:w}=e;Yn(t,"extra",n),Yn(t,"tags",r),Yn(t,"user",i),Yn(t,"contexts",o),Yn(t,"sdkProcessingMetadata",a),s&&(t.level=s),_&&(t.transactionName=_),w&&(t.span=w),u.length&&(t.breadcrumbs=[...t.breadcrumbs,...u]),l.length&&(t.fingerprint=[...t.fingerprint,...l]),d.length&&(t.eventProcessors=[...t.eventProcessors,...d]),h.length&&(t.attachments=[...t.attachments,...h]),t.propagationContext=C(C({},t.propagationContext),y)}function Yn(t,e,n){if(n&&Object.keys(n).length){t[e]=C({},t[e]);for(let r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[e][r]=n[r])}}function Gw(t,e){let{extra:n,tags:r,user:i,contexts:o,level:s,transactionName:a}=e,u=ne(n);u&&Object.keys(u).length&&(t.extra=C(C({},u),t.extra));let l=ne(r);l&&Object.keys(l).length&&(t.tags=C(C({},l),t.tags));let d=ne(i);d&&Object.keys(d).length&&(t.user=C(C({},d),t.user));let h=ne(o);h&&Object.keys(h).length&&(t.contexts=C(C({},h),t.contexts)),s&&(t.level=s),a&&t.type!=="transaction"&&(t.transaction=a)}function qw(t,e){let n=[...t.breadcrumbs||[],...e];t.breadcrumbs=n.length?n:void 0}function Ww(t,e){t.sdkProcessingMetadata=C(C({},t.sdkProcessingMetadata),e)}function Yw(t,e){t.contexts=C({trace:Aw(e)},t.contexts),t.sdkProcessingMetadata=C({dynamicSamplingContext:Fw(e)},t.sdkProcessingMetadata);let n=ch(e),r=Ii(n).description;r&&!t.transaction&&t.type==="transaction"&&(t.transaction=r)}function Kw(t,e){t.fingerprint=t.fingerprint?G0(t.fingerprint):[],e&&(t.fingerprint=t.fingerprint.concat(e)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}function Zw(t,e,n,r,i,o){let{normalizeDepth:s=3,normalizeMaxBreadth:a=1e3}=t,u=ht(C({},e),{event_id:e.event_id||n.event_id||se(),timestamp:e.timestamp||Cr()}),l=n.integrations||t.integrations.map(T=>T.name);Qw(u,t),tS(u,l),i&&i.emit("applyFrameMetadata",e),e.type===void 0&&Xw(u,t.stackParser);let d=nS(r,n.captureContext);n.mechanism&&fr(u,n.mechanism);let h=i?i.getEventProcessors():[],y=Sw().getScopeData();if(o){let T=o.getScopeData();bl(y,T)}if(d){let T=d.getScopeData();bl(y,T)}let _=[...n.attachments||[],...y.attachments];_.length&&(n.attachments=_),zw(u,y);let w=[...h,...y.eventProcessors];return _s(w,u,n).then(T=>(T&&Jw(T),typeof s=="number"&&s>0?eS(T,s,a):T))}function Qw(t,e){let{environment:n,release:r,dist:i,maxValueLength:o=250}=e;"environment"in t||(t.environment="environment"in e?n:fh),t.release===void 0&&r!==void 0&&(t.release=r),t.dist===void 0&&i!==void 0&&(t.dist=i),t.message&&(t.message=Sn(t.message,o));let s=t.exception&&t.exception.values&&t.exception.values[0];s&&s.value&&(s.value=Sn(s.value,o));let a=t.request;a&&a.url&&(a.url=Sn(a.url,o))}var El=new WeakMap;function Xw(t,e){let n=rt._sentryDebugIds;if(!n)return;let r,i=El.get(e);i?r=i:(r=new Map,El.set(e,r));let o=Object.entries(n).reduce((s,[a,u])=>{let l,d=r.get(a);d?l=d:(l=e(a),r.set(a,l));for(let h=l.length-1;h>=0;h--){let y=l[h];if(y.filename){s[y.filename]=u;break}}return s},{});try{t.exception.values.forEach(s=>{s.stacktrace.frames.forEach(a=>{a.filename&&(a.debug_id=o[a.filename])})})}catch{}}function Jw(t){let e={};try{t.exception.values.forEach(r=>{r.stacktrace.frames.forEach(i=>{i.debug_id&&(i.abs_path?e[i.abs_path]=i.debug_id:i.filename&&(e[i.filename]=i.debug_id),delete i.debug_id)})})}catch{}if(Object.keys(e).length===0)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];let n=t.debug_meta.images;Object.entries(e).forEach(([r,i])=>{n.push({type:"sourcemap",code_file:r,debug_id:i})})}function tS(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}function eS(t,e,n){if(!t)return null;let r=C(C(C(C(C({},t),t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(i=>C(C({},i),i.data&&{data:Te(i.data,e,n)}))}),t.user&&{user:Te(t.user,e,n)}),t.contexts&&{contexts:Te(t.contexts,e,n)}),t.extra&&{extra:Te(t.extra,e,n)});return t.contexts&&t.contexts.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=Te(t.contexts.trace.data,e,n))),t.spans&&(r.spans=t.spans.map(i=>C(C({},i),i.data&&{data:Te(i.data,e,n)}))),r}function nS(t,e){if(!e)return t;let n=t?t.clone():new _e;return n.update(e),n}function rS(t){if(t)return iS(t)?{captureContext:t}:sS(t)?{captureContext:t}:t}function iS(t){return t instanceof _e||typeof t=="function"}var oS=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function sS(t){return Object.keys(t).some(e=>oS.includes(e))}function aS(t,e){return Pa().captureException(t,rS(e))}function hh(t,e){return Pa().captureEvent(t,e)}var uS="7";function lS(t){let e=t.protocol?`${t.protocol}:`:"",n=t.port?`:${t.port}`:"";return`${e}//${t.host}${n}${t.path?`/${t.path}`:""}/api/`}function cS(t){return`${lS(t)}${t.projectId}/envelope/`}function fS(t,e){return C0(C({sentry_key:t.publicKey,sentry_version:uS},e&&{sentry_client:`${e.name}/${e.version}`}))}function dS(t,e,n){return e||`${cS(t)}?${fS(t,n)}`}var wl=[];function hS(t,e){let n={};return e.forEach(r=>{r&&ph(t,r,n)}),n}function Sl(t,e){for(let n of e)n&&n.afterAllSetup&&n.afterAllSetup(t)}function ph(t,e,n){if(n[e.name]){vt&&$.log(`Integration skipped because it was already installed: ${e.name}`);return}if(n[e.name]=e,wl.indexOf(e.name)===-1&&typeof e.setupOnce=="function"&&(e.setupOnce(),wl.push(e.name)),e.setup&&typeof e.setup=="function"&&e.setup(t),typeof e.preprocessEvent=="function"){let r=e.preprocessEvent.bind(e);t.on("preprocessEvent",(i,o)=>r(i,o,t))}if(typeof e.processEvent=="function"){let r=e.processEvent.bind(e),i=Object.assign((o,s)=>r(o,s,t),{id:e.name});t.addEventProcessor(i)}vt&&$.log(`Integration installed: ${e.name}`)}var Il="Not capturing exception because it's already been captured.",pS=class{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=T0(t.dsn):vt&&$.warn("No DSN provided, client will not send events."),this._dsn){let e=dS(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport(ht(C({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this)},t.transportOptions),{url:e}))}}captureException(t,e,n){let r=se();if(cl(t))return vt&&$.log(Il),r;let i=C({event_id:r},e);return this._process(this.eventFromException(t,i).then(o=>this._captureEvent(o,i,n))),i.event_id}captureMessage(t,e,n,r){let i=C({event_id:se()},n),o=Na(t)?t:String(t),s=Oa(t)?this.eventFromMessage(o,e,i):this.eventFromException(t,i);return this._process(s.then(a=>this._captureEvent(a,i,r))),i.event_id}captureEvent(t,e,n){let r=se();if(e&&e.originalException&&cl(e.originalException))return vt&&$.log(Il),r;let i=C({event_id:r},e),o=(t.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(t,i,o||n)),i.event_id}captureSession(t){typeof t.release!="string"?vt&&$.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),vs(t,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){let e=this._transport;return e?(this.emit("flush"),this._isClientDoneProcessing(t).then(n=>e.flush(t).then(r=>n&&r))):Xe(!0)}close(t){return this.flush(t).then(e=>(this.getOptions().enabled=!1,this.emit("close"),e))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){let e=this._integrations[t.name];ph(this,t,this._integrations),e||Sl(this,[t])}sendEvent(t,e={}){this.emit("beforeSendEvent",t,e);let n=$w(t,this._dsn,this._options._metadata,this._options.tunnel);for(let i of e.attachments||[])n=rw(n,sw(i));let r=this.sendEnvelope(n);r&&r.then(i=>this.emit("afterSendEvent",t,i),null)}sendSession(t){let e=Bw(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(e)}recordDroppedEvent(t,e,n){if(this._options.sendClientReports){let r=`${t}:${e}`;vt&&$.log(`Adding outcome: "${r}"`),this._outcomes[r]=(this._outcomes[r]||0)+1}}on(t,e){let n=this._hooks[t]=this._hooks[t]||[];return n.push(e),()=>{let r=n.indexOf(e);r>-1&&n.splice(r,1)}}emit(t,...e){let n=this._hooks[t];n&&n.forEach(r=>r(...e))}sendEnvelope(t){return this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport?this._transport.send(t).then(null,e=>(vt&&$.error("Error while sending event:",e),e)):(vt&&$.error("Transport disabled"),Xe({}))}_setupIntegrations(){let{integrations:t}=this._options;this._integrations=hS(this,t),Sl(this,t)}_updateSessionFromEvent(t,e){let n=!1,r=!1,i=e.exception&&e.exception.values;if(i){r=!0;for(let s of i){let a=s.mechanism;if(a&&a.handled===!1){n=!0;break}}}let o=t.status==="ok";(o&&t.errors===0||o&&n)&&(vs(t,ht(C({},n&&{status:"crashed"}),{errors:t.errors||Number(r||n)})),this.captureSession(t))}_isClientDoneProcessing(t){return new Nr(e=>{let n=0,r=1,i=setInterval(()=>{this._numProcessing==0?(clearInterval(i),e(!0)):(n+=r,t&&n>=t&&(clearInterval(i),e(!1)))},r)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,e,n,r=lh()){let i=this.getOptions(),o=Object.keys(this._integrations);return!e.integrations&&o.length>0&&(e.integrations=o),this.emit("preprocessEvent",t,e),t.type||r.setLastEventId(t.event_id||e.event_id),Zw(i,t,e,n,this,r).then(s=>{if(s===null)return s;let a=C(C({},r.getPropagationContext()),n?n.getPropagationContext():void 0);if(!(s.contexts&&s.contexts.trace)&&a){let{traceId:u,spanId:l,parentSpanId:d,dsc:h}=a;s.contexts=C({trace:ne({trace_id:u,span_id:l,parent_span_id:d})},s.contexts);let y=h||dh(u,this);s.sdkProcessingMetadata=C({dynamicSamplingContext:y},s.sdkProcessingMetadata)}return s})}_captureEvent(t,e={},n){return this._processEvent(t,e,n).then(r=>r.event_id,r=>{if(vt){let i=r;i.logLevel==="log"?$.log(i.message):$.warn(i)}})}_processEvent(t,e,n){let r=this.getOptions(),{sampleRate:i}=r,o=bs(t),s=gh(t),a=t.type||"error",u=`before send for type \`${a}\``,l=typeof i>"u"?void 0:Uw(i);if(s&&typeof l=="number"&&Math.random()>l)return this.recordDroppedEvent("sample_rate","error",t),Si(new ae(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));let d=a==="replay_event"?"replay":a,h=(t.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(t,e,n,h).then(y=>{if(y===null)throw this.recordDroppedEvent("event_processor",d,t),new ae("An event processor returned `null`, will not send event.","log");if(e.data&&e.data.__sentry__===!0)return y;let _=mS(this,r,y,e);return gS(_,u)}).then(y=>{if(y===null){if(this.recordDroppedEvent("before_send",d,t),bs(t)){let T=1+(t.spans||[]).length;this._outcomes.span=(this._outcomes.span||0)+T}throw new ae(`${u} returned \`null\`, will not send event.`,"log")}let _=n&&n.getSession();!o&&_&&this._updateSessionFromEvent(_,y);let w=y.transaction_info;if(o&&w&&y.transaction!==t.transaction){let T="custom";y.transaction_info=ht(C({},w),{source:T})}return this.sendEvent(y,e),y}).then(null,y=>{throw y instanceof ae?y:(this.captureException(y,{data:{__sentry__:!0},originalException:y}),new ae(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
29
- Reason: ${y}`))})}_process(t){this._numProcessing++,t.then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e))}_clearOutcomes(){let t=this._outcomes;return this._outcomes={},Object.entries(t).map(([e,n])=>{let[r,i]=e.split(":");return{reason:r,category:i,quantity:n}})}};function gS(t,e){let n=`${e} must return \`null\` or a valid event.`;if(Gi(t))return t.then(r=>{if(!An(r)&&r!==null)throw new ae(n);return r},r=>{throw new ae(`${e} rejected with ${r}`)});if(!An(t)&&t!==null)throw new ae(n);return t}function mS(t,e,n,r){let{beforeSend:i,beforeSendTransaction:o,beforeSendSpan:s}=e;if(gh(n)&&i)return i(n,r);if(bs(n)){if(n.spans&&s){let a=[];for(let u of n.spans){let l=s(u);l?a.push(l):t.recordDroppedEvent("before_send","span")}n.spans=a}if(o)return o(n,r)}return n}function gh(t){return t.type===void 0}function bs(t){return t.type==="transaction"}var vS=64;function yS(t,e,n=Z0(t.bufferSize||vS)){let r={},i=s=>n.drain(s);function o(s){let a=[];if(dl(s,(h,y)=>{let _=hl(y);if(dw(r,_)){let w=Tl(h,y);t.recordDroppedEvent("ratelimit_backoff",_,w)}else a.push(h)}),a.length===0)return Xe({});let u=Or(s[0],a),l=h=>{dl(u,(y,_)=>{let w=Tl(y,_);t.recordDroppedEvent(h,hl(_),w)})},d=()=>e({body:iw(u)}).then(h=>(h.statusCode!==void 0&&(h.statusCode<200||h.statusCode>=300)&&vt&&$.warn(`Sentry responded with status code ${h.statusCode} to sent event.`),r=hw(r,h),h),h=>{throw l("network_error"),h});return n.add(d).then(h=>h,h=>{if(h instanceof ae)return vt&&$.error("Skipped sending event because buffer is full."),l("queue_overflow"),Xe({});throw h})}return{send:o,flush:i}}function Tl(t,e){if(!(e!=="event"&&e!=="transaction"))return Array.isArray(t)?t[1]:void 0}function _S(t,e,n=[e],r="npm"){let i=t._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${e}`,packages:n.map(o=>({name:`${r}:@sentry/${o}`,version:$e})),version:$e}),t._metadata=i}var bS=100;function Je(t,e){let n=qt(),r=lh();if(!n)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:o=bS}=n.getOptions();if(o<=0)return;let s=Cr(),a=C({timestamp:s},t),u=i?ka(()=>i(a,e)):a;u!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",u,e),r.addBreadcrumb(u,o))}var Cl,ES="FunctionToString",Nl=new WeakMap,wS=()=>({name:ES,setupOnce(){Cl=Function.prototype.toString;try{Function.prototype.toString=function(...t){let e=Aa(this),n=Nl.has(qt())&&e!==void 0?e:this;return Cl.apply(n,t)}}catch{}},setup(t){Nl.set(t,!0)}}),SS=wS,IS=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,"undefined is not an object (evaluating 'a.L')",`can't redefine non-configurable property "solana"`,"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler"],TS="InboundFilters",CS=(t={})=>({name:TS,processEvent(e,n,r){let i=r.getOptions(),o=OS(t,i);return xS(e,o)?null:e}}),NS=CS;function OS(t={},e={}){return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...t.disableErrorDefaults?[]:IS],ignoreTransactions:[...t.ignoreTransactions||[],...e.ignoreTransactions||[]],ignoreInternal:t.ignoreInternal!==void 0?t.ignoreInternal:!0}}function xS(t,e){return e.ignoreInternal&&PS(t)?(vt&&$.warn(`Event dropped due to being internal Sentry Error.
30
- Event: ${Ie(t)}`),!0):DS(t,e.ignoreErrors)?(vt&&$.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
31
- Event: ${Ie(t)}`),!0):jS(t)?(vt&&$.warn(`Event dropped due to not having an error message, error type or stacktrace.
32
- Event: ${Ie(t)}`),!0):kS(t,e.ignoreTransactions)?(vt&&$.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
33
- Event: ${Ie(t)}`),!0):AS(t,e.denyUrls)?(vt&&$.warn(`Event dropped due to being matched by \`denyUrls\` option.
34
- Event: ${Ie(t)}.
35
- Url: ${Ti(t)}`),!0):RS(t,e.allowUrls)?!1:(vt&&$.warn(`Event dropped due to not being matched by \`allowUrls\` option.
36
- Event: ${Ie(t)}.
37
- Url: ${Ti(t)}`),!0)}function DS(t,e){return t.type||!e||!e.length?!1:LS(t).some(n=>qi(n,e))}function kS(t,e){if(t.type!=="transaction"||!e||!e.length)return!1;let n=t.transaction;return n?qi(n,e):!1}function AS(t,e){if(!e||!e.length)return!1;let n=Ti(t);return n?qi(n,e):!1}function RS(t,e){if(!e||!e.length)return!0;let n=Ti(t);return n?qi(n,e):!0}function LS(t){let e=[];t.message&&e.push(t.message);let n;try{n=t.exception.values[t.exception.values.length-1]}catch{}return n&&n.value&&(e.push(n.value),n.type&&e.push(`${n.type}: ${n.value}`)),e}function PS(t){try{return t.exception.values[0].type==="SentryError"}catch{}return!1}function MS(t=[]){for(let e=t.length-1;e>=0;e--){let n=t[e];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function Ti(t){try{let e;try{e=t.exception.values[0].stacktrace.frames}catch{}return e?MS(e):null}catch{return vt&&$.error(`Cannot extract url for event ${Ie(t)}`),null}}function jS(t){return t.type||!t.exception||!t.exception.values||t.exception.values.length===0?!1:!t.message&&!t.exception.values.some(e=>e.stacktrace||e.type&&e.type!=="Error"||e.value)}var VS="Dedupe",FS=()=>{let t;return{name:VS,processEvent(e){if(e.type)return e;try{if(HS(e,t))return vt&&$.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return t=e}}},US=FS;function HS(t,e){return e?!!(BS(t,e)||$S(t,e)):!1}function BS(t,e){let n=t.message,r=e.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!vh(t,e)||!mh(t,e))}function $S(t,e){let n=Ol(e),r=Ol(t);return!(!n||!r||n.type!==r.type||n.value!==r.value||!vh(t,e)||!mh(t,e))}function mh(t,e){let n=al(t),r=al(e);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let i=0;i<r.length;i++){let o=r[i],s=n[i];if(o.filename!==s.filename||o.lineno!==s.lineno||o.colno!==s.colno||o.function!==s.function)return!1}return!0}function vh(t,e){let n=t.fingerprint,r=e.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join("")===r.join("")}catch{return!1}}function Ol(t){return t.exception&&t.exception.values&&t.exception.values[0]}var xt=rt,Es=0;function yh(){return Es>0}function zS(){Es++,setTimeout(()=>{Es--})}function Ln(t,e={},n){if(typeof t!="function")return t;try{let i=t.__sentry_wrapped__;if(i)return i;if(Aa(t))return t}catch{return t}let r=function(){let i=Array.prototype.slice.call(arguments);try{n&&typeof n=="function"&&n.apply(this,arguments);let o=i.map(s=>Ln(s,e));return t.apply(this,o)}catch(o){throw zS(),Iw(s=>{s.addEventProcessor(a=>(e.mechanism&&(ps(a,void 0,void 0),fr(a,e.mechanism)),a.extra=ht(C({},a.extra),{arguments:i}),a)),aS(o)}),o}};try{for(let i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=t[i])}catch{}nh(r,t),Ze(t,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return t.name}})}catch{}return r}var yn=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function Ma(t,e){let n=ja(t,e),r={type:e&&e.name,value:KS(e)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function GS(t,e,n,r){let i=qt(),o=i&&i.getOptions().normalizeDepth,s=tI(e),a={__serialized__:sh(e,o)};if(s)return{exception:{values:[Ma(t,s)]},extra:a};let u={exception:{values:[{type:zi(e)?e.constructor.name:r?"UnhandledRejection":"Error",value:XS(e,{isUnhandledRejection:r})}]},extra:a};if(n){let l=ja(t,n);l.length&&(u.exception.values[0].stacktrace={frames:l})}return u}function wo(t,e){return{exception:{values:[Ma(t,e)]}}}function ja(t,e){let n=e.stacktrace||e.stack||"",r=WS(e),i=YS(e);try{return t(n,r,i)}catch{}return[]}var qS=/Minified React error #\d+;/i;function WS(t){return t&&qS.test(t.message)?1:0}function YS(t){return typeof t.framesToPop=="number"?t.framesToPop:0}function KS(t){let e=t&&t.message;return e?e.error&&typeof e.error.message=="string"?e.error.message:e:"No error message"}function ZS(t,e,n,r){let i=n&&n.syntheticException||void 0,o=Va(t,e,i,r);return fr(o),o.level="error",n&&n.event_id&&(o.event_id=n.event_id),Xe(o)}function QS(t,e,n="info",r,i){let o=r&&r.syntheticException||void 0,s=ws(t,e,o,i);return s.level=n,r&&r.event_id&&(s.event_id=r.event_id),Xe(s)}function Va(t,e,n,r,i){let o;if(Xd(e)&&e.error)return wo(t,e.error);if(Ju(e)||u0(e)){let s=e;if("stack"in e)o=wo(t,e);else{let a=s.name||(Ju(s)?"DOMError":"DOMException"),u=s.message?`${a}: ${s.message}`:a;o=ws(t,u,n,r),ps(o,u)}return"code"in s&&(o.tags=ht(C({},o.tags),{"DOMException.code":`${s.code}`})),o}return Ca(e)?wo(t,e):An(e)||zi(e)?(o=GS(t,e,n,i),fr(o,{synthetic:!0}),o):(o=ws(t,e,n,r),ps(o,`${e}`,void 0),fr(o,{synthetic:!0}),o)}function ws(t,e,n,r){let i={};if(r&&n){let o=ja(t,n);o.length&&(i.exception={values:[{value:e,stacktrace:{frames:o}}]})}if(Na(e)){let{__sentry_template_string__:o,__sentry_template_values__:s}=e;return i.logentry={message:o,params:s},i}return i.message=e,i}function XS(t,{isUnhandledRejection:e}){let n=N0(t),r=e?"promise rejection":"exception";return Xd(t)?`Event \`ErrorEvent\` captured as ${r} with message \`${t.message}\``:zi(t)?`Event \`${JS(t)}\` (type=${t.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function JS(t){try{let e=Object.getPrototypeOf(t);return e?e.constructor.name:void 0}catch{}}function tI(t){for(let e in t)if(Object.prototype.hasOwnProperty.call(t,e)){let n=t[e];if(n instanceof Error)return n}}function eI(t,{metadata:e,tunnel:n,dsn:r}){let i=C(C({event_id:t.event_id,sent_at:new Date().toISOString()},e&&e.sdk&&{sdk:{name:e.sdk.name,version:e.sdk.version}}),!!n&&!!r&&{dsn:Wi(r)}),o=nI(t);return Or(i,[o])}function nI(t){return[{type:"user_report"},t]}var rI=class extends pS{constructor(t){let e=C({parentSpanIsAlwaysRootSpan:!0},t),n=xt.SENTRY_SDK_SOURCE||$0();_S(e,"browser",["browser"],n),super(e),e.sendClientReports&&xt.document&&xt.document.addEventListener("visibilitychange",()=>{xt.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(t,e){return ZS(this._options.stackParser,t,e,this._options.attachStacktrace)}eventFromMessage(t,e="info",n){return QS(this._options.stackParser,t,e,n,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled()){yn&&$.warn("SDK not enabled, will not capture user feedback.");return}let e=eI(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(e)}_prepareEvent(t,e,n){return t.platform=t.platform||"javascript",super._prepareEvent(t,e,n)}_flushOutcomes(){let t=this._clearOutcomes();if(t.length===0){yn&&$.log("No outcomes to send");return}if(!this._dsn){yn&&$.log("No dsn provided, will not send outcomes");return}yn&&$.log("Sending outcomes:",t);let e=lw(t,this._options.tunnel&&Wi(this._dsn));this.sendEnvelope(e)}},iI=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Rt=rt,oI=1e3,xl,Ss,Is;function sI(t){let e="dom";un(e,t),ln(e,aI)}function aI(){if(!Rt.document)return;let t=oe.bind(null,"dom"),e=Dl(t,!0);Rt.document.addEventListener("click",e,!1),Rt.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach(n=>{let r=Rt[n]&&Rt[n].prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(Dt(r,"addEventListener",function(i){return function(o,s,a){if(o==="click"||o=="keypress")try{let u=this,l=u.__sentry_instrumentation_handlers__=u.__sentry_instrumentation_handlers__||{},d=l[o]=l[o]||{refCount:0};if(!d.handler){let h=Dl(t);d.handler=h,i.call(this,o,h,a)}d.refCount++}catch{}return i.call(this,o,s,a)}}),Dt(r,"removeEventListener",function(i){return function(o,s,a){if(o==="click"||o=="keypress")try{let u=this,l=u.__sentry_instrumentation_handlers__||{},d=l[o];d&&(d.refCount--,d.refCount<=0&&(i.call(this,o,d.handler,a),d.handler=void 0,delete l[o]),Object.keys(l).length===0&&delete u.__sentry_instrumentation_handlers__)}catch{}return i.call(this,o,s,a)}}))})}function uI(t){if(t.type!==Ss)return!1;try{if(!t.target||t.target._sentryId!==Is)return!1}catch{}return!0}function lI(t,e){return t!=="keypress"?!1:!e||!e.tagName?!0:!(e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable)}function Dl(t,e=!1){return n=>{if(!n||n._sentryCaptured)return;let r=cI(n);if(lI(n.type,r))return;Ze(n,"_sentryCaptured",!0),r&&!r._sentryId&&Ze(r,"_sentryId",se());let i=n.type==="keypress"?"input":n.type;uI(n)||(t({event:n,name:i,global:e}),Ss=n.type,Is=r?r._sentryId:void 0),clearTimeout(xl),xl=Rt.setTimeout(()=>{Is=void 0,Ss=void 0},oI)}}function cI(t){try{return t.target}catch{return null}}var Wr;function fI(t){let e="history";un(e,t),ln(e,dI)}function dI(){if(!pw())return;let t=Rt.onpopstate;Rt.onpopstate=function(...n){let r=Rt.location.href,i=Wr;if(Wr=r,oe("history",{from:i,to:r}),t)try{return t.apply(this,n)}catch{}};function e(n){return function(...r){let i=r.length>2?r[2]:void 0;if(i){let o=Wr,s=String(i);Wr=s,oe("history",{from:o,to:s})}return n.apply(this,r)}}Dt(Rt.history,"pushState",e),Dt(Rt.history,"replaceState",e)}var oi={};function hI(t){let e=oi[t];if(e)return e;let n=Rt[t];if(ds(n))return oi[t]=n.bind(Rt);let r=Rt.document;if(r&&typeof r.createElement=="function")try{let i=r.createElement("iframe");i.hidden=!0,r.head.appendChild(i);let o=i.contentWindow;o&&o[t]&&(n=o[t]),r.head.removeChild(i)}catch(i){iI&&$.warn(`Could not create sandbox iframe for ${t} check, bailing to window.${t}: `,i)}return n&&(oi[t]=n.bind(Rt))}function kl(t){oi[t]=void 0}var Xn="__sentry_xhr_v3__";function pI(t){let e="xhr";un(e,t),ln(e,gI)}function gI(){if(!Rt.XMLHttpRequest)return;let t=XMLHttpRequest.prototype;Dt(t,"open",function(e){return function(...n){let r=ke()*1e3,i=me(n[0])?n[0].toUpperCase():void 0,o=mI(n[1]);if(!i||!o)return e.apply(this,n);this[Xn]={method:i,url:o,request_headers:{}},i==="POST"&&o.match(/sentry_key/)&&(this.__sentry_own_request__=!0);let s=()=>{let a=this[Xn];if(a&&this.readyState===4){try{a.status_code=this.status}catch{}let u={endTimestamp:ke()*1e3,startTimestamp:r,xhr:this};oe("xhr",u)}};return"onreadystatechange"in this&&typeof this.onreadystatechange=="function"?Dt(this,"onreadystatechange",function(a){return function(...u){return s(),a.apply(this,u)}}):this.addEventListener("readystatechange",s),Dt(this,"setRequestHeader",function(a){return function(...u){let[l,d]=u,h=this[Xn];return h&&me(l)&&me(d)&&(h.request_headers[l.toLowerCase()]=d),a.apply(this,u)}}),e.apply(this,n)}}),Dt(t,"send",function(e){return function(...n){let r=this[Xn];if(!r)return e.apply(this,n);n[0]!==void 0&&(r.body=n[0]);let i={startTimestamp:ke()*1e3,xhr:this};return oe("xhr",i),e.apply(this,n)}})}function mI(t){if(me(t))return t;try{return t.toString()}catch{}}function vI(t,e=hI("fetch")){let n=0,r=0;function i(o){let s=o.body.length;n+=s,r++;let a=C({body:o.body,method:"POST",referrerPolicy:"origin",headers:t.headers,keepalive:n<=6e4&&r<15},t.fetchOptions);if(!e)return kl("fetch"),Si("No fetch implementation available");try{return e(t.url,a).then(u=>(n-=s,r--,{statusCode:u.status,headers:{"x-sentry-rate-limits":u.headers.get("X-Sentry-Rate-Limits"),"retry-after":u.headers.get("Retry-After")}}))}catch(u){return kl("fetch"),n-=s,r--,Si(u)}}return yS(t,i)}var yI=30,_I=50;function Ts(t,e,n,r){let i={filename:t,function:e==="<anonymous>"?Qe:e,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}var bI=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,EI=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,wI=/\((\S*)(?::(\d+))(?::(\d+))\)/,SI=t=>{let e=bI.exec(t);if(e){let[,r,i,o]=e;return Ts(r,Qe,+i,+o)}let n=EI.exec(t);if(n){if(n[2]&&n[2].indexOf("eval")===0){let o=wI.exec(n[2]);o&&(n[2]=o[1],n[3]=o[2],n[4]=o[3])}let[r,i]=_h(n[1]||Qe,n[2]);return Ts(i,r,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}},II=[yI,SI],TI=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,CI=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,NI=t=>{let e=TI.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){let i=CI.exec(e[3]);i&&(e[1]=e[1]||"eval",e[3]=i[1],e[4]=i[2],e[5]="")}let n=e[3],r=e[1]||Qe;return[r,n]=_h(r,n),Ts(n,r,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}},OI=[_I,NI],xI=[II,OI],DI=x0(...xI),_h=(t,e)=>{let n=t.indexOf("safari-extension")!==-1,r=t.indexOf("safari-web-extension")!==-1;return n||r?[t.indexOf("@")!==-1?t.split("@")[0]:Qe,n?`safari-extension:${e}`:`safari-web-extension:${e}`]:[t,e]},Yr=1024,kI="Breadcrumbs",AI=(t={})=>{let e=C({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},t);return{name:kI,setup(n){e.console&&k0(MI(n)),e.dom&&sI(PI(n,e.dom)),e.xhr&&pI(jI(n)),e.fetch&&M0(VI(n)),e.history&&fI(FI(n)),e.sentry&&n.on("beforeSendEvent",LI(n))}}},RI=AI;function LI(t){return function(e){qt()===t&&Je({category:`sentry.${e.type==="transaction"?"transaction":"event"}`,event_id:e.event_id,level:e.level,message:Ie(e)},{event:e})}}function PI(t,e){return function(n){if(qt()!==t)return;let r,i,o=typeof e=="object"?e.serializeAttribute:void 0,s=typeof e=="object"&&typeof e.maxStringLength=="number"?e.maxStringLength:void 0;s&&s>Yr&&(yn&&$.warn(`\`dom.maxStringLength\` cannot exceed ${Yr}, but a value of ${s} was configured. Sentry will use ${Yr} instead.`),s=Yr),typeof o=="string"&&(o=[o]);try{let u=n.event,l=UI(u)?u.target:u;r=th(l,{keyAttrs:o,maxStringLength:s}),i=y0(l)}catch{r="<unknown>"}if(r.length===0)return;let a={category:`ui.${n.name}`,message:r};i&&(a.data={"ui.component_name":i}),Je(a,{event:n.event,name:n.name,global:n.global})}}function MI(t){return function(e){if(qt()!==t)return;let n={category:"console",data:{arguments:e.args,logger:"console"},level:X0(e.level),message:tl(e.args," ")};if(e.level==="assert")if(e.args[0]===!1)n.message=`Assertion failed: ${tl(e.args.slice(1)," ")||"console.assert"}`,n.data.arguments=e.args.slice(1);else return;Je(n,{input:e.args,level:e.level})}}function jI(t){return function(e){if(qt()!==t)return;let{startTimestamp:n,endTimestamp:r}=e,i=e.xhr[Xn];if(!n||!r||!i)return;let{method:o,url:s,status_code:a,body:u}=i,l={method:o,url:s,status_code:a},d={xhr:e.xhr,input:u,startTimestamp:n,endTimestamp:r};Je({category:"xhr",data:l,type:"http"},d)}}function VI(t){return function(e){if(qt()!==t)return;let{startTimestamp:n,endTimestamp:r}=e;if(r&&!(e.fetchData.url.match(/sentry_key/)&&e.fetchData.method==="POST"))if(e.error){let i=e.fetchData,o={data:e.error,input:e.args,startTimestamp:n,endTimestamp:r};Je({category:"fetch",data:i,level:"error",type:"http"},o)}else{let i=e.response,o=ht(C({},e.fetchData),{status_code:i&&i.status}),s={input:e.args,response:i,startTimestamp:n,endTimestamp:r};Je({category:"fetch",data:o,type:"http"},s)}}}function FI(t){return function(e){if(qt()!==t)return;let n=e.from,r=e.to,i=Eo(xt.location.href),o=n?Eo(n):void 0,s=Eo(r);(!o||!o.path)&&(o=i),i.protocol===s.protocol&&i.host===s.host&&(r=s.relative),i.protocol===o.protocol&&i.host===o.host&&(n=o.relative),Je({category:"navigation",data:{from:n,to:r}})}}function UI(t){return!!t&&!!t.target}var HI=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],BI="BrowserApiErrors",$I=(t={})=>{let e=C({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},t);return{name:BI,setupOnce(){e.setTimeout&&Dt(xt,"setTimeout",Al),e.setInterval&&Dt(xt,"setInterval",Al),e.requestAnimationFrame&&Dt(xt,"requestAnimationFrame",GI),e.XMLHttpRequest&&"XMLHttpRequest"in xt&&Dt(XMLHttpRequest.prototype,"send",qI);let n=e.eventTarget;n&&(Array.isArray(n)?n:HI).forEach(WI)}}},zI=$I;function Al(t){return function(...e){let n=e[0];return e[0]=Ln(n,{mechanism:{data:{function:Pe(t)},handled:!1,type:"instrument"}}),t.apply(this,e)}}function GI(t){return function(e){return t.apply(this,[Ln(e,{mechanism:{data:{function:"requestAnimationFrame",handler:Pe(t)},handled:!1,type:"instrument"}})])}}function qI(t){return function(...e){let n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(r=>{r in n&&typeof n[r]=="function"&&Dt(n,r,function(i){let o={mechanism:{data:{function:r,handler:Pe(i)},handled:!1,type:"instrument"}},s=Aa(i);return s&&(o.mechanism.data.handler=Pe(s)),Ln(i,o)})}),t.apply(this,e)}}function WI(t){let e=xt,n=e[t]&&e[t].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(Dt(n,"addEventListener",function(r){return function(i,o,s){try{typeof o.handleEvent=="function"&&(o.handleEvent=Ln(o.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Pe(o),target:t},handled:!1,type:"instrument"}}))}catch{}return r.apply(this,[i,Ln(o,{mechanism:{data:{function:"addEventListener",handler:Pe(o),target:t},handled:!1,type:"instrument"}}),s])}}),Dt(n,"removeEventListener",function(r){return function(i,o,s){let a=o;try{let u=a&&a.__sentry_wrapped__;u&&r.call(this,i,u,s)}catch{}return r.call(this,i,a,s)}}))}var YI="GlobalHandlers",KI=(t={})=>{let e=C({onerror:!0,onunhandledrejection:!0},t);return{name:YI,setupOnce(){Error.stackTraceLimit=50},setup(n){e.onerror&&(QI(n),Rl("onerror")),e.onunhandledrejection&&(XI(n),Rl("onunhandledrejection"))}}},ZI=KI;function QI(t){F0(e=>{let{stackParser:n,attachStacktrace:r}=bh();if(qt()!==t||yh())return;let{msg:i,url:o,line:s,column:a,error:u}=e,l=e1(Va(n,u||i,void 0,r,!1),o,s,a);l.level="error",hh(l,{originalException:u,mechanism:{handled:!1,type:"onerror"}})})}function XI(t){H0(e=>{let{stackParser:n,attachStacktrace:r}=bh();if(qt()!==t||yh())return;let i=JI(e),o=Oa(i)?t1(i):Va(n,i,void 0,r,!0);o.level="error",hh(o,{originalException:i,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function JI(t){if(Oa(t))return t;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch{}return t}function t1(t){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(t)}`}]}}}function e1(t,e,n,r){let i=t.exception=t.exception||{},o=i.values=i.values||[],s=o[0]=o[0]||{},a=s.stacktrace=s.stacktrace||{},u=a.frames=a.frames||[],l=isNaN(parseInt(r,10))?void 0:r,d=isNaN(parseInt(n,10))?void 0:n,h=me(e)&&e.length>0?e:v0();return u.length===0&&u.push({colno:l,filename:h,function:Qe,in_app:!0,lineno:d}),t}function Rl(t){yn&&$.log(`Global Handler attached: ${t}`)}function bh(){let t=qt();return t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}var n1=()=>({name:"HttpContext",preprocessEvent(t){if(!xt.navigator&&!xt.location&&!xt.document)return;let e=t.request&&t.request.url||xt.location&&xt.location.href,{referrer:n}=xt.document||{},{userAgent:r}=xt.navigator||{},i=C(C(C({},t.request&&t.request.headers),n&&{Referer:n}),r&&{"User-Agent":r}),o=ht(C(C({},t.request),e&&{url:e}),{headers:i});t.request=o}}),r1="cause",i1=5,o1="LinkedErrors",s1=(t={})=>{let e=t.limit||i1,n=t.key||r1;return{name:o1,preprocessEvent(r,i,o){let s=o.getOptions();h0(Ma,s.stackParser,s.maxValueLength,n,e,r,i)}}},a1=s1;function u1(t){return[NS(),SS(),zI(),RI(),ZI(),a1(),US(),n1()]}var l1=class extends Error{cause;constructor(t,e){super(t),this.cause=e}},c1=class Eh{static INSTANCE;contexts={};tags;client;user;constructor(){this.init()}static getInstance(){return this.INSTANCE||(this.INSTANCE=new Eh),this.INSTANCE}captureException(e,n,r){Qt.error(e),this.getNewScope(n,r).captureException(e)}captureMessage(e,n,r,i){this.getNewScope(r,i).captureMessage(e,n??"error")}captureError(e,n,r,i){Qt.error(e,n);let o=this.getNewScope(r,i),s=new l1(e,n);o.captureException(s)}setGlobalContext(e,n){this.contexts[e]=C({context:n},this.contexts[e])}setUser(e){this.user=e}setTags(e){this.tags=e}getNewScope(e,n){let r=new _e;if(r.setClient(this.client),r.setUser(this.user),e?.triggerContext){let i=e.triggerContext;r.setExtras(i.triggerData.sentryContext()),delete e.triggerContext}return e&&r.setExtras(e),this.tags&&r.setTags(this.tags),n&&r.setTags(n),Object.keys(this.contexts).forEach(i=>{r.setContext(i,this.contexts[i])}),r.setTag("language",navigator.language),r.setTag("timezone",Fa.getTimezone()),r}init(){let e=u1({}).filter(n=>!["BrowserApiErrors","Breadcrumbs","GlobalHandlers"].includes(n.name));this.client=new rI({dsn:"https://1bc3dda4c861f60cd6be1b67584f4bc6@o559187.ingest.us.sentry.io/4507626484203520",transport:vI,stackParser:DI,integrations:e,environment:ss.mode,release:`web-sdk@${ri.SDK_VERSION}`,debug:ss.debug}),this.client.init()}},Fa=class{static tz;static isValidURL(t){try{return new URL(t)}catch{return}}static isNull(t){return!t||t==="null"||t==="undefined"}static removeFromArray(t,e){let n=t.indexOf(e);return n===-1?!1:(t.splice(n,1),!0)}static formatCurrency(t,e){if(t==0&&e)return"Free";let n=i0.get(),r=e0.get(),i=n.shopCurrencyCode||r.currency,o=n.currencyCode;o||Qt.warn("Currency code is not set in RuntimeData");let s=r.money?.format??n.moneyFormat,a;if(s&&i===o)a=n0.format(t*100,s);else{let u;try{u=new Intl.NumberFormat(this.getLang(),{style:"currency",currency:o||i,minimumFractionDigits:0,maximumFractionDigits:2})}catch(l){return c1.getInstance().captureException(l,{currentCurrency:o,shopCurrency:i}),""}a=u.format(t),a=a.replace("\u20B9","Rs. "),r.money?.showCurrency&&o!=="INR"&&(a=a.concat(` ${o}`))}return a}static formatNumber(t){return new Intl.NumberFormat(this.getLang(),{notation:"compact"}).format(t)}static getLang(){return navigator.languages!==void 0?navigator.languages[0].split("-")[0]:navigator.language??"en"}static getTimezone(){if(this.tz)return this.tz;try{return this.tz=Intl.DateTimeFormat().resolvedOptions().timeZone,this.tz}catch{return""}}static documentReady(t){document.readyState!=="loading"?t():document.addEventListener("DOMContentLoaded",t)}static onDocumentLoaded(t){document.readyState==="complete"?t():document.addEventListener("readystatechange",()=>{document.readyState==="complete"&&t()})}static showSnackbar(t){let e=document.createElement("span");e.id="snackbar",e.innerText=t,document.body.appendChild(e),e.className="show",setTimeout(()=>{e.classList.remove("show"),document.body.removeChild(e)},3e3)}static async retrySelectorForElements(t,e=10,n=document){let r=0,i=document.querySelectorAll("nonexistent-tag");for(;r<e;){let o=Math.min(100*2**r,5e3);if(await o0.JSUtils.sleep(o),i=n.querySelectorAll(t),i.length)return Qt.debug(`Attempt ${r+1}: ${i.length} elements found with ${t}`),i;Qt.debug(`Attempt ${r+1}: Elements not found with ${t}. Retrying after ${o}ms.`),r++}return Qt.warn(`Max attempts reached. Element not found with ${t}.`),i}static async retrySelector(t,e=10,n=document){return(await this.retrySelectorForElements(t,e,n)).item(0)}static async getCartAttributes(){let t=await s0.get(Xu.DEVICE_ID),e=await a0.get(Xu.ID,"");return[{key:"letscooee_did",value:t},{key:"letscooee_sid",value:e},{key:"__letscooee_time",value:new Date().toLocaleString()},{key:"__letscooee_via",value:"Buy Now"}]}},f1=class Cs{transform(e){return e?Fa.formatCurrency(e):null}static \u0275fac=function(e){return new(e||Cs)};static \u0275pipe=wa({name:"cooeeCurrency",type:Cs,pure:!0})},d1=pr(yp()),h1=Object.prototype.toString,Fn=Array.isArray||function(t){return h1.call(t)==="[object Array]"};function Ua(t){return typeof t=="function"}function p1(t){return Fn(t)?"array":typeof t}function So(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function Ll(t,e){return t!=null&&typeof t=="object"&&e in t}function g1(t,e){return t!=null&&typeof t!="object"&&t.hasOwnProperty&&t.hasOwnProperty(e)}var m1=RegExp.prototype.test;function v1(t,e){return m1.call(t,e)}var y1=/\S/;function _1(t){return!v1(y1,t)}var b1={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"};function E1(t){return String(t).replace(/[&<>"'`=\/]/g,function(e){return b1[e]})}var w1=/\s*/,S1=/\s+/,Pl=/\s*=/,I1=/\s*\}/,T1=/#|\^|\/|>|\{|&|=|!/;function C1(t,e){if(!t)return[];var n=!1,r=[],i=[],o=[],s=!1,a=!1,u="",l=0;function d(){if(s&&!a)for(;o.length;)delete i[o.pop()];else o=[];s=!1,a=!1}var h,y,_;function w(k){if(typeof k=="string"&&(k=k.split(S1,2)),!Fn(k)||k.length!==2)throw new Error("Invalid tags: "+k);h=new RegExp(So(k[0])+"\\s*"),y=new RegExp("\\s*"+So(k[1])),_=new RegExp("\\s*"+So("}"+k[1]))}w(e||Jt.tags);for(var T=new xr(t),A,R,Q,X,wt,nt;!T.eos();){if(A=T.pos,Q=T.scanUntil(h),Q)for(var Wt=0,Mt=Q.length;Wt<Mt;++Wt)X=Q.charAt(Wt),_1(X)?(o.push(i.length),u+=X):(a=!0,n=!0,u+=" "),i.push(["text",X,A,A+1]),A+=1,X===`
38
- `&&(d(),u="",l=0,n=!1);if(!T.scan(h))break;if(s=!0,R=T.scan(T1)||"name",T.scan(w1),R==="="?(Q=T.scanUntil(Pl),T.scan(Pl),T.scanUntil(y)):R==="{"?(Q=T.scanUntil(_),T.scan(I1),T.scanUntil(y),R="&"):Q=T.scanUntil(y),!T.scan(y))throw new Error("Unclosed tag at "+T.pos);if(R==">"?wt=[R,Q,A,T.pos,u,l,n]:wt=[R,Q,A,T.pos],l++,i.push(wt),R==="#"||R==="^")r.push(wt);else if(R==="/"){if(nt=r.pop(),!nt)throw new Error('Unopened section "'+Q+'" at '+A);if(nt[1]!==Q)throw new Error('Unclosed section "'+nt[1]+'" at '+A)}else R==="name"||R==="{"||R==="&"?a=!0:R==="="&&w(Q)}if(d(),nt=r.pop(),nt)throw new Error('Unclosed section "'+nt[1]+'" at '+T.pos);return O1(N1(i))}function N1(t){for(var e=[],n,r,i=0,o=t.length;i<o;++i)n=t[i],n&&(n[0]==="text"&&r&&r[0]==="text"?(r[1]+=n[1],r[3]=n[3]):(e.push(n),r=n));return e}function O1(t){for(var e=[],n=e,r=[],i,o,s=0,a=t.length;s<a;++s)switch(i=t[s],i[0]){case"#":case"^":n.push(i),r.push(i),n=i[4]=[];break;case"/":o=r.pop(),o[5]=i[2],n=r.length>0?r[r.length-1][4]:e;break;default:n.push(i)}return e}function xr(t){this.string=t,this.tail=t,this.pos=0}xr.prototype.eos=function(){return this.tail===""};xr.prototype.scan=function(t){var e=this.tail.match(t);if(!e||e.index!==0)return"";var n=e[0];return this.tail=this.tail.substring(n.length),this.pos+=n.length,n};xr.prototype.scanUntil=function(t){var e=this.tail.search(t),n;switch(e){case-1:n=this.tail,this.tail="";break;case 0:n="";break;default:n=this.tail.substring(0,e),this.tail=this.tail.substring(e)}return this.pos+=n.length,n};function Pn(t,e){this.view=t,this.cache={".":this.view},this.parent=e}Pn.prototype.push=function(t){return new Pn(t,this)};Pn.prototype.lookup=function(t){var e=this.cache,n;if(e.hasOwnProperty(t))n=e[t];else{for(var r=this,i,o,s,a=!1;r;){if(t.indexOf(".")>0)for(i=r.view,o=t.split("."),s=0;i!=null&&s<o.length;)s===o.length-1&&(a=Ll(i,o[s])||g1(i,o[s])),i=i[o[s++]];else i=r.view[t],a=Ll(r.view,t);if(a){n=i;break}r=r.parent}e[t]=n}return Ua(n)&&(n=n.call(this.view)),n};function Pt(){this.templateCache={_cache:{},set:function(t,e){this._cache[t]=e},get:function(t){return this._cache[t]},clear:function(){this._cache={}}}}Pt.prototype.clearCache=function(){typeof this.templateCache<"u"&&this.templateCache.clear()};Pt.prototype.parse=function(t,e){var n=this.templateCache,r=t+":"+(e||Jt.tags).join(":"),i=typeof n<"u",o=i?n.get(r):void 0;return o==null&&(o=C1(t,e),i&&n.set(r,o)),o};Pt.prototype.render=function(t,e,n,r){var i=this.getConfigTags(r),o=this.parse(t,i),s=e instanceof Pn?e:new Pn(e,void 0);return this.renderTokens(o,s,n,t,r)};Pt.prototype.renderTokens=function(t,e,n,r,i){for(var o="",s,a,u,l=0,d=t.length;l<d;++l)u=void 0,s=t[l],a=s[0],a==="#"?u=this.renderSection(s,e,n,r,i):a==="^"?u=this.renderInverted(s,e,n,r,i):a===">"?u=this.renderPartial(s,e,n,i):a==="&"?u=this.unescapedValue(s,e):a==="name"?u=this.escapedValue(s,e,i):a==="text"&&(u=this.rawValue(s)),u!==void 0&&(o+=u);return o};Pt.prototype.renderSection=function(t,e,n,r,i){var o=this,s="",a=e.lookup(t[1]);function u(h){return o.render(h,e,n,i)}if(a){if(Fn(a))for(var l=0,d=a.length;l<d;++l)s+=this.renderTokens(t[4],e.push(a[l]),n,r,i);else if(typeof a=="object"||typeof a=="string"||typeof a=="number")s+=this.renderTokens(t[4],e.push(a),n,r,i);else if(Ua(a)){if(typeof r!="string")throw new Error("Cannot use higher-order sections without the original template");a=a.call(e.view,r.slice(t[3],t[5]),u),a!=null&&(s+=a)}else s+=this.renderTokens(t[4],e,n,r,i);return s}};Pt.prototype.renderInverted=function(t,e,n,r,i){var o=e.lookup(t[1]);if(!o||Fn(o)&&o.length===0)return this.renderTokens(t[4],e,n,r,i)};Pt.prototype.indentPartial=function(t,e,n){for(var r=e.replace(/[^ \t]/g,""),i=t.split(`
28
+ `),typeof a=="string"||a instanceof Uint8Array)i(a);else{let u;try{u=JSON.stringify(a)}catch{u=JSON.stringify(en(a))}i(u)}}return typeof r=="string"?r:rS(r)}function rS(t){let e=t.reduce((i,o)=>i+o.length,0),n=new Uint8Array(e),r=0;for(let i of t)n.set(i,r),r+=i.length;return n}function iS(t){let e=typeof t.data=="string"?ca(t.data):t.data;return[Ne({type:"attachment",length:e.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType}),e]}var oS={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function Nc(t){return oS[t]}function Fp(t){if(!t||!t.sdk)return;let{name:e,version:n}=t.sdk;return{name:e,version:n}}function sS(t,e,n,r){let i=t.sdkProcessingMetadata&&t.sdkProcessingMetadata.dynamicSamplingContext;return k(k(k({event_id:t.event_id,sent_at:new Date().toISOString()},e&&{sdk:e}),!!n&&r&&{dsn:Ao(r)}),i&&{trace:Ne(k({},i))})}function aS(t,e,n){let r=[{type:"client_report"},{timestamp:n||si(),discarded_events:t}];return ui(e?{dsn:e}:{},[r])}function uS(t,e=Date.now()){let n=parseInt(`${t}`,10);if(!isNaN(n))return n*1e3;let r=Date.parse(`${t}`);return isNaN(r)?6e4:r-e}function lS(t,e){return t[e]||t.all||0}function cS(t,e,n=Date.now()){return lS(t,e)>n}function fS(t,{statusCode:e,headers:n},r=Date.now()){let i=k({},t),o=n&&n["x-sentry-rate-limits"],s=n&&n["retry-after"];if(o)for(let a of o.trim().split(",")){let[u,f,,,h]=a.split(":",5),d=parseInt(u,10),b=(isNaN(d)?60:d)*1e3;if(!f)i.all=r+b;else for(let _ of f.split(";"))_==="metric_bucket"?(!h||h.split(";").includes("custom"))&&(i[_]=r+b):i[_]=r+b}else s?i.all=r+uS(s,r):e===429&&(i.all=r+60*1e3);return i}function xc(){return{traceId:Ce(),spanId:Ce().substring(16)}}var xi=bt;function hS(){let t=xi.chrome,e=t&&t.app&&t.app.runtime,n="history"in xi&&!!xi.history.pushState&&!!xi.history.replaceState;return!e&&n}var Bt=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function Ro(){return Uu(bt),bt}function Uu(t){let e=t.__SENTRY__=t.__SENTRY__||{};return e.version=e.version||In,e[In]=e[In]||{}}function fa(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),!t.did&&!e.did&&(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||an(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=e.sid.length===32?e.sid:Ce()),e.init!==void 0&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),typeof e.started=="number"&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if(typeof e.duration=="number")t.duration=e.duration;else{let n=t.timestamp-t.started;t.duration=n>=0?n:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),typeof e.errors=="number"&&(t.errors=e.errors),e.status&&(t.status=e.status)}var ha="_sentrySpan";function Oc(t,e){e?Rn(t,ha,e):delete t[ha]}function Tc(t){return t[ha]}var dS=100,pS=class $p{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=xc()}clone(){let e=new $p;return e._breadcrumbs=[...this._breadcrumbs],e._tags=k({},this._tags),e._extra=k({},this._extra),e._contexts=k({},this._contexts),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata=k({},this._sdkProcessingMetadata),e._propagationContext=k({},this._propagationContext),e._client=this._client,e._lastEventId=this._lastEventId,Oc(e,Tc(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&fa(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags=k(k({},this._tags),e),this._notifyScopeListeners(),this}setTag(e,n){return this._tags=Dt(k({},this._tags),{[e]:n}),this._notifyScopeListeners(),this}setExtras(e){return this._extra=k(k({},this._extra),e),this._notifyScopeListeners(),this}setExtra(e,n){return this._extra=Dt(k({},this._extra),{[e]:n}),this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,n){return n===null?delete this._contexts[e]:this._contexts[e]=n,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;let n=typeof e=="function"?e(this):e,[r,i]=n instanceof Ze?[n.getScopeData(),n.getRequestSession()]:cr(n)?[e,e.requestSession]:[],{tags:o,extra:s,user:a,contexts:u,level:f,fingerprint:h=[],propagationContext:d}=r||{};return this._tags=k(k({},this._tags),o),this._extra=k(k({},this._extra),s),this._contexts=k(k({},this._contexts),u),a&&Object.keys(a).length&&(this._user=a),f&&(this._level=f),h.length&&(this._fingerprint=h),d&&(this._propagationContext=d),i&&(this._requestSession=i),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,Oc(this,void 0),this._attachments=[],this._propagationContext=xc(),this._notifyScopeListeners(),this}addBreadcrumb(e,n){let r=typeof n=="number"?n:dS;if(r<=0)return this;let i=k({timestamp:si()},e),o=this._breadcrumbs;return o.push(i),this._breadcrumbs=o.length>r?o.slice(-r):o,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:Tc(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=k(k({},this._sdkProcessingMetadata),e),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,n){let r=n&&n.event_id?n.event_id:Ce();if(!this._client)return nt.warn("No client configured on scope - will not capture exception!"),r;let i=new Error("Sentry syntheticException");return this._client.captureException(e,Dt(k({originalException:e,syntheticException:i},n),{event_id:r}),this),r}captureMessage(e,n,r){let i=r&&r.event_id?r.event_id:Ce();if(!this._client)return nt.warn("No client configured on scope - will not capture message!"),i;let o=new Error(e);return this._client.captureMessage(e,n,Dt(k({originalException:e,syntheticException:o},r),{event_id:i}),this),i}captureEvent(e,n){let r=n&&n.event_id?n.event_id:Ce();return this._client?(this._client.captureEvent(e,Dt(k({},n),{event_id:r}),this),r):(nt.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}},Ze=pS;function gS(){return Lu("defaultCurrentScope",()=>new Ze)}function yS(){return Lu("defaultIsolationScope",()=>new Ze)}var mS=class{constructor(t,e){let n;t?n=t:n=new Ze;let r;e?r=e:r=new Ze,this._stack=[{scope:n}],this._isolationScope=r}withScope(t){let e=this._pushScope(),n;try{n=t(e)}catch(r){throw this._popScope(),r}return To(n)?n.then(r=>(this._popScope(),r),r=>{throw this._popScope(),r}):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}};function fr(){let t=Ro(),e=Uu(t);return e.stack=e.stack||new mS(gS(),yS())}function vS(t){return fr().withScope(t)}function bS(t,e){let n=fr();return n.withScope(()=>(n.getStackTop().scope=t,e(t)))}function Cc(t){return fr().withScope(()=>t(fr().getIsolationScope()))}function _S(){return{withIsolationScope:Cc,withScope:vS,withSetScope:bS,withSetIsolationScope:(t,e)=>Cc(e),getCurrentScope:()=>fr().getScope(),getIsolationScope:()=>fr().getIsolationScope()}}function Bu(t){let e=Uu(t);return e.acs?e.acs:_S()}function Vu(){let t=Ro();return Bu(t).getCurrentScope()}function Hp(){let t=Ro();return Bu(t).getIsolationScope()}function wS(){return Lu("globalScope",()=>new Ze)}function ES(...t){let e=Ro(),n=Bu(e);if(t.length===2){let[r,i]=t;return r?n.withSetScope(r,i):n.withScope(i)}return n.withScope(t[0])}function he(){return Vu().getClient()}var SS="_sentryMetrics";function IS(t){let e=t[SS];if(!e)return;let n={};for(let[,[r,i]]of e)(n[r]||(n[r]=[])).push(Ne(i));return n}var NS="sentry.source",xS="sentry.sample_rate",OS="sentry.op",TS="sentry.origin",CS=1;function AS(t){let{spanId:e,traceId:n}=t.spanContext(),{parent_span_id:r}=so(t);return Ne({parent_span_id:r,span_id:e,trace_id:n})}function Ac(t){return typeof t=="number"?Rc(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?Rc(t.getTime()):an()}function Rc(t){return t>9999999999?t/1e3:t}function so(t){if(kS(t))return t.getSpanJSON();try{let{spanId:e,traceId:n}=t.spanContext();if(RS(t)){let{attributes:r,startTime:i,name:o,endTime:s,parentSpanId:a,status:u}=t;return Ne({span_id:e,trace_id:n,data:r,description:o,parent_span_id:a,start_timestamp:Ac(i),timestamp:Ac(s)||void 0,status:LS(u),op:r[OS],origin:r[TS],_metrics_summary:IS(t)})}return{span_id:e,trace_id:n}}catch{return{}}}function RS(t){let e=t;return!!e.attributes&&!!e.startTime&&!!e.name&&!!e.endTime&&!!e.status}function kS(t){return typeof t.getSpanJSON=="function"}function DS(t){let{traceFlags:e}=t.spanContext();return e===CS}function LS(t){if(!(!t||t.code===0))return t.code===1?"ok":t.message||"unknown_error"}var MS="_sentryRootSpan";function zp(t){return t[MS]||t}var qp="production",PS="_frozenDsc";function Gp(t,e){let n=e.getOptions(),{publicKey:r}=e.getDsn()||{},i=Ne({environment:n.environment||qp,release:n.release,public_key:r,trace_id:t});return e.emit("createDsc",i),i}function jS(t){let e=he();if(!e)return{};let n=Gp(so(t).trace_id||"",e),r=zp(t),i=r[PS];if(i)return i;let o=r.spanContext().traceState,s=o&&o.get("sentry.dsc"),a=s&&XE(s);if(a)return a;let u=so(r),f=u.data||{},h=f[xS];h!=null&&(n.sample_rate=`${h}`);let d=f[NS],b=u.description;return d!=="url"&&b&&(n.transaction=b),n.sampled=String(DS(r)),e.emit("createDsc",n,r),n}function US(t){if(typeof t=="boolean")return Number(t);let e=typeof t=="string"?parseFloat(t):t;if(typeof e!="number"||isNaN(e)||e<0||e>1){Bt&&nt.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(t)} of type ${JSON.stringify(typeof t)}.`);return}return e}function BS(t,e){return e&&(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||e.name,t.sdk.version=t.sdk.version||e.version,t.sdk.integrations=[...t.sdk.integrations||[],...e.integrations||[]],t.sdk.packages=[...t.sdk.packages||[],...e.packages||[]]),t}function VS(t,e,n,r){let i=Fp(n),o=k(k({sent_at:new Date().toISOString()},i&&{sdk:i}),!!r&&e&&{dsn:Ao(e)}),s="aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()];return ui(o,[s])}function FS(t,e,n,r){let i=Fp(n),o=t.type&&t.type!=="replay_event"?t.type:"event";BS(t,n&&n.sdk);let s=sS(t,i,r,e);return delete t.sdkProcessingMetadata,ui(s,[[{type:o},t]])}function da(t,e,n,r=0){return new ai((i,o)=>{let s=t[r];if(e===null||typeof s!="function")i(e);else{let a=s(k({},e),n);Bt&&s.id&&a===null&&nt.log(`Event processor "${s.id}" dropped event`),To(a)?a.then(u=>da(t,u,n,r+1).then(i)).then(null,o):da(t,a,n,r+1).then(i).then(null,o)}})}function $S(t,e){let{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:o}=e;HS(t,e),r&&GS(t,r),WS(t,n),zS(t,i),qS(t,o)}function kc(t,e){let{extra:n,tags:r,user:i,contexts:o,level:s,sdkProcessingMetadata:a,breadcrumbs:u,fingerprint:f,eventProcessors:h,attachments:d,propagationContext:b,transactionName:_,span:w}=e;Er(t,"extra",n),Er(t,"tags",r),Er(t,"user",i),Er(t,"contexts",o),Er(t,"sdkProcessingMetadata",a),s&&(t.level=s),_&&(t.transactionName=_),w&&(t.span=w),u.length&&(t.breadcrumbs=[...t.breadcrumbs,...u]),f.length&&(t.fingerprint=[...t.fingerprint,...f]),h.length&&(t.eventProcessors=[...t.eventProcessors,...h]),d.length&&(t.attachments=[...t.attachments,...d]),t.propagationContext=k(k({},t.propagationContext),b)}function Er(t,e,n){if(n&&Object.keys(n).length){t[e]=k({},t[e]);for(let r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[e][r]=n[r])}}function HS(t,e){let{extra:n,tags:r,user:i,contexts:o,level:s,transactionName:a}=e,u=Ne(n);u&&Object.keys(u).length&&(t.extra=k(k({},u),t.extra));let f=Ne(r);f&&Object.keys(f).length&&(t.tags=k(k({},f),t.tags));let h=Ne(i);h&&Object.keys(h).length&&(t.user=k(k({},h),t.user));let d=Ne(o);d&&Object.keys(d).length&&(t.contexts=k(k({},d),t.contexts)),s&&(t.level=s),a&&t.type!=="transaction"&&(t.transaction=a)}function zS(t,e){let n=[...t.breadcrumbs||[],...e];t.breadcrumbs=n.length?n:void 0}function qS(t,e){t.sdkProcessingMetadata=k(k({},t.sdkProcessingMetadata),e)}function GS(t,e){t.contexts=k({trace:AS(e)},t.contexts),t.sdkProcessingMetadata=k({dynamicSamplingContext:jS(e)},t.sdkProcessingMetadata);let n=zp(e),r=so(n).description;r&&!t.transaction&&t.type==="transaction"&&(t.transaction=r)}function WS(t,e){t.fingerprint=t.fingerprint?HE(t.fingerprint):[],e&&(t.fingerprint=t.fingerprint.concat(e)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}function ZS(t,e,n,r,i,o){let{normalizeDepth:s=3,normalizeMaxBreadth:a=1e3}=t,u=Dt(k({},e),{event_id:e.event_id||n.event_id||Ce(),timestamp:e.timestamp||si()}),f=n.integrations||t.integrations.map(T=>T.name);YS(u,t),QS(u,f),i&&i.emit("applyFrameMetadata",e),e.type===void 0&&JS(u,t.stackParser);let h=tI(r,n.captureContext);n.mechanism&&Hr(u,n.mechanism);let d=i?i.getEventProcessors():[],b=wS().getScopeData();if(o){let T=o.getScopeData();kc(b,T)}if(h){let T=h.getScopeData();kc(b,T)}let _=[...n.attachments||[],...b.attachments];_.length&&(n.attachments=_),$S(u,b);let w=[...d,...b.eventProcessors];return da(w,u,n).then(T=>(T&&KS(T),typeof s=="number"&&s>0?XS(T,s,a):T))}function YS(t,e){let{environment:n,release:r,dist:i,maxValueLength:o=250}=e;"environment"in t||(t.environment="environment"in e?n:qp),t.release===void 0&&r!==void 0&&(t.release=r),t.dist===void 0&&i!==void 0&&(t.dist=i),t.message&&(t.message=er(t.message,o));let s=t.exception&&t.exception.values&&t.exception.values[0];s&&s.value&&(s.value=er(s.value,o));let a=t.request;a&&a.url&&(a.url=er(a.url,o))}var Dc=new WeakMap;function JS(t,e){let n=bt._sentryDebugIds;if(!n)return;let r,i=Dc.get(e);i?r=i:(r=new Map,Dc.set(e,r));let o=Object.entries(n).reduce((s,[a,u])=>{let f,h=r.get(a);h?f=h:(f=e(a),r.set(a,f));for(let d=f.length-1;d>=0;d--){let b=f[d];if(b.filename){s[b.filename]=u;break}}return s},{});try{t.exception.values.forEach(s=>{s.stacktrace.frames.forEach(a=>{a.filename&&(a.debug_id=o[a.filename])})})}catch{}}function KS(t){let e={};try{t.exception.values.forEach(r=>{r.stacktrace.frames.forEach(i=>{i.debug_id&&(i.abs_path?e[i.abs_path]=i.debug_id:i.filename&&(e[i.filename]=i.debug_id),delete i.debug_id)})})}catch{}if(Object.keys(e).length===0)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];let n=t.debug_meta.images;Object.entries(e).forEach(([r,i])=>{n.push({type:"sourcemap",code_file:r,debug_id:i})})}function QS(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}function XS(t,e,n){if(!t)return null;let r=k(k(k(k(k({},t),t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(i=>k(k({},i),i.data&&{data:en(i.data,e,n)}))}),t.user&&{user:en(t.user,e,n)}),t.contexts&&{contexts:en(t.contexts,e,n)}),t.extra&&{extra:en(t.extra,e,n)});return t.contexts&&t.contexts.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=en(t.contexts.trace.data,e,n))),t.spans&&(r.spans=t.spans.map(i=>k(k({},i),i.data&&{data:en(i.data,e,n)}))),r}function tI(t,e){if(!e)return t;let n=t?t.clone():new Ze;return n.update(e),n}function eI(t){if(t)return nI(t)?{captureContext:t}:iI(t)?{captureContext:t}:t}function nI(t){return t instanceof Ze||typeof t=="function"}var rI=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function iI(t){return Object.keys(t).some(e=>rI.includes(e))}function oI(t,e){return Vu().captureException(t,eI(e))}function Wp(t,e){return Vu().captureEvent(t,e)}var sI="7";function aI(t){let e=t.protocol?`${t.protocol}:`:"",n=t.port?`:${t.port}`:"";return`${e}//${t.host}${n}${t.path?`/${t.path}`:""}/api/`}function uI(t){return`${aI(t)}${t.projectId}/envelope/`}function lI(t,e){return IE(k({sentry_key:t.publicKey,sentry_version:sI},e&&{sentry_client:`${e.name}/${e.version}`}))}function cI(t,e,n){return e||`${uI(t)}?${lI(t,n)}`}var Lc=[];function fI(t,e){let n={};return e.forEach(r=>{r&&Zp(t,r,n)}),n}function Mc(t,e){for(let n of e)n&&n.afterAllSetup&&n.afterAllSetup(t)}function Zp(t,e,n){if(n[e.name]){Bt&&nt.log(`Integration skipped because it was already installed: ${e.name}`);return}if(n[e.name]=e,Lc.indexOf(e.name)===-1&&typeof e.setupOnce=="function"&&(e.setupOnce(),Lc.push(e.name)),e.setup&&typeof e.setup=="function"&&e.setup(t),typeof e.preprocessEvent=="function"){let r=e.preprocessEvent.bind(e);t.on("preprocessEvent",(i,o)=>r(i,o,t))}if(typeof e.processEvent=="function"){let r=e.processEvent.bind(e),i=Object.assign((o,s)=>r(o,s,t),{id:e.name});t.addEventProcessor(i)}Bt&&nt.log(`Integration installed: ${e.name}`)}var Pc="Not capturing exception because it's already been captured.",hI=class{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=SE(t.dsn):Bt&&nt.warn("No DSN provided, client will not send events."),this._dsn){let e=cI(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport(Dt(k({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this)},t.transportOptions),{url:e}))}}captureException(t,e,n){let r=Ce();if(Ec(t))return Bt&&nt.log(Pc),r;let i=k({event_id:r},e);return this._process(this.eventFromException(t,i).then(o=>this._captureEvent(o,i,n))),i.event_id}captureMessage(t,e,n,r){let i=k({event_id:Ce()},n),o=ku(t)?t:String(t),s=Du(t)?this.eventFromMessage(o,e,i):this.eventFromException(t,i);return this._process(s.then(a=>this._captureEvent(a,i,r))),i.event_id}captureEvent(t,e,n){let r=Ce();if(e&&e.originalException&&Ec(e.originalException))return Bt&&nt.log(Pc),r;let i=k({event_id:r},e),o=(t.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(t,i,o||n)),i.event_id}captureSession(t){typeof t.release!="string"?Bt&&nt.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),fa(t,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){let e=this._transport;return e?(this.emit("flush"),this._isClientDoneProcessing(t).then(n=>e.flush(t).then(r=>n&&r))):Dn(!0)}close(t){return this.flush(t).then(e=>(this.getOptions().enabled=!1,this.emit("close"),e))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){let e=this._integrations[t.name];Zp(this,t,this._integrations),e||Mc(this,[t])}sendEvent(t,e={}){this.emit("beforeSendEvent",t,e);let n=FS(t,this._dsn,this._options._metadata,this._options.tunnel);for(let i of e.attachments||[])n=eS(n,iS(i));let r=this.sendEnvelope(n);r&&r.then(i=>this.emit("afterSendEvent",t,i),null)}sendSession(t){let e=VS(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(e)}recordDroppedEvent(t,e,n){if(this._options.sendClientReports){let r=`${t}:${e}`;Bt&&nt.log(`Adding outcome: "${r}"`),this._outcomes[r]=(this._outcomes[r]||0)+1}}on(t,e){let n=this._hooks[t]=this._hooks[t]||[];return n.push(e),()=>{let r=n.indexOf(e);r>-1&&n.splice(r,1)}}emit(t,...e){let n=this._hooks[t];n&&n.forEach(r=>r(...e))}sendEnvelope(t){return this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport?this._transport.send(t).then(null,e=>(Bt&&nt.error("Error while sending event:",e),e)):(Bt&&nt.error("Transport disabled"),Dn({}))}_setupIntegrations(){let{integrations:t}=this._options;this._integrations=fI(this,t),Mc(this,t)}_updateSessionFromEvent(t,e){let n=!1,r=!1,i=e.exception&&e.exception.values;if(i){r=!0;for(let s of i){let a=s.mechanism;if(a&&a.handled===!1){n=!0;break}}}let o=t.status==="ok";(o&&t.errors===0||o&&n)&&(fa(t,Dt(k({},n&&{status:"crashed"}),{errors:t.errors||Number(r||n)})),this.captureSession(t))}_isClientDoneProcessing(t){return new ai(e=>{let n=0,r=1,i=setInterval(()=>{this._numProcessing==0?(clearInterval(i),e(!0)):(n+=r,t&&n>=t&&(clearInterval(i),e(!1)))},r)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,e,n,r=Hp()){let i=this.getOptions(),o=Object.keys(this._integrations);return!e.integrations&&o.length>0&&(e.integrations=o),this.emit("preprocessEvent",t,e),t.type||r.setLastEventId(t.event_id||e.event_id),ZS(i,t,e,n,this,r).then(s=>{if(s===null)return s;let a=k(k({},r.getPropagationContext()),n?n.getPropagationContext():void 0);if(!(s.contexts&&s.contexts.trace)&&a){let{traceId:u,spanId:f,parentSpanId:h,dsc:d}=a;s.contexts=k({trace:Ne({trace_id:u,span_id:f,parent_span_id:h})},s.contexts);let b=d||Gp(u,this);s.sdkProcessingMetadata=k({dynamicSamplingContext:b},s.sdkProcessingMetadata)}return s})}_captureEvent(t,e={},n){return this._processEvent(t,e,n).then(r=>r.event_id,r=>{if(Bt){let i=r;i.logLevel==="log"?nt.log(i.message):nt.warn(i)}})}_processEvent(t,e,n){let r=this.getOptions(),{sampleRate:i}=r,o=pa(t),s=Yp(t),a=t.type||"error",u=`before send for type \`${a}\``,f=typeof i>"u"?void 0:US(i);if(s&&typeof f=="number"&&Math.random()>f)return this.recordDroppedEvent("sample_rate","error",t),oo(new ke(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));let h=a==="replay_event"?"replay":a,d=(t.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(t,e,n,d).then(b=>{if(b===null)throw this.recordDroppedEvent("event_processor",h,t),new ke("An event processor returned `null`, will not send event.","log");if(e.data&&e.data.__sentry__===!0)return b;let _=pI(this,r,b,e);return dI(_,u)}).then(b=>{if(b===null){if(this.recordDroppedEvent("before_send",h,t),pa(t)){let T=1+(t.spans||[]).length;this._outcomes.span=(this._outcomes.span||0)+T}throw new ke(`${u} returned \`null\`, will not send event.`,"log")}let _=n&&n.getSession();!o&&_&&this._updateSessionFromEvent(_,b);let w=b.transaction_info;if(o&&w&&b.transaction!==t.transaction){let T="custom";b.transaction_info=Dt(k({},w),{source:T})}return this.sendEvent(b,e),b}).then(null,b=>{throw b instanceof ke?b:(this.captureException(b,{data:{__sentry__:!0},originalException:b}),new ke(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
29
+ Reason: ${b}`))})}_process(t){this._numProcessing++,t.then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e))}_clearOutcomes(){let t=this._outcomes;return this._outcomes={},Object.entries(t).map(([e,n])=>{let[r,i]=e.split(":");return{reason:r,category:i,quantity:n}})}};function dI(t,e){let n=`${e} must return \`null\` or a valid event.`;if(To(t))return t.then(r=>{if(!cr(r)&&r!==null)throw new ke(n);return r},r=>{throw new ke(`${e} rejected with ${r}`)});if(!cr(t)&&t!==null)throw new ke(n);return t}function pI(t,e,n,r){let{beforeSend:i,beforeSendTransaction:o,beforeSendSpan:s}=e;if(Yp(n)&&i)return i(n,r);if(pa(n)){if(n.spans&&s){let a=[];for(let u of n.spans){let f=s(u);f?a.push(f):t.recordDroppedEvent("before_send","span")}n.spans=a}if(o)return o(n,r)}return n}function Yp(t){return t.type===void 0}function pa(t){return t.type==="transaction"}var gI=64;function yI(t,e,n=ZE(t.bufferSize||gI)){let r={},i=s=>n.drain(s);function o(s){let a=[];if(Ic(s,(d,b)=>{let _=Nc(b);if(cS(r,_)){let w=jc(d,b);t.recordDroppedEvent("ratelimit_backoff",_,w)}else a.push(d)}),a.length===0)return Dn({});let u=ui(s[0],a),f=d=>{Ic(u,(b,_)=>{let w=jc(b,_);t.recordDroppedEvent(d,Nc(_),w)})},h=()=>e({body:nS(u)}).then(d=>(d.statusCode!==void 0&&(d.statusCode<200||d.statusCode>=300)&&Bt&&nt.warn(`Sentry responded with status code ${d.statusCode} to sent event.`),r=fS(r,d),d),d=>{throw f("network_error"),d});return n.add(h).then(d=>d,d=>{if(d instanceof ke)return Bt&&nt.error("Skipped sending event because buffer is full."),f("queue_overflow"),Dn({});throw d})}return{send:o,flush:i}}function jc(t,e){if(!(e!=="event"&&e!=="transaction"))return Array.isArray(t)?t[1]:void 0}function mI(t,e,n=[e],r="npm"){let i=t._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${e}`,packages:n.map(o=>({name:`${r}:@sentry/${o}`,version:In})),version:In}),t._metadata=i}var vI=100;function Ln(t,e){let n=he(),r=Hp();if(!n)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:o=vI}=n.getOptions();if(o<=0)return;let s=si(),a=k({timestamp:s},t),u=i?Pu(()=>i(a,e)):a;u!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",u,e),r.addBreadcrumb(u,o))}var Uc,bI="FunctionToString",Bc=new WeakMap,_I=()=>({name:bI,setupOnce(){Uc=Function.prototype.toString;try{Function.prototype.toString=function(...t){let e=ju(this),n=Bc.has(he())&&e!==void 0?e:this;return Uc.apply(n,t)}}catch{}},setup(t){Bc.set(t,!0)}}),wI=_I,EI=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,"undefined is not an object (evaluating 'a.L')",`can't redefine non-configurable property "solana"`,"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler"],SI="InboundFilters",II=(t={})=>({name:SI,processEvent(e,n,r){let i=r.getOptions(),o=xI(t,i);return OI(e,o)?null:e}}),NI=II;function xI(t={},e={}){return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...t.disableErrorDefaults?[]:EI],ignoreTransactions:[...t.ignoreTransactions||[],...e.ignoreTransactions||[]],ignoreInternal:t.ignoreInternal!==void 0?t.ignoreInternal:!0}}function OI(t,e){return e.ignoreInternal&&DI(t)?(Bt&&nt.warn(`Event dropped due to being internal Sentry Error.
30
+ Event: ${tn(t)}`),!0):TI(t,e.ignoreErrors)?(Bt&&nt.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
31
+ Event: ${tn(t)}`),!0):MI(t)?(Bt&&nt.warn(`Event dropped due to not having an error message, error type or stacktrace.
32
+ Event: ${tn(t)}`),!0):CI(t,e.ignoreTransactions)?(Bt&&nt.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
33
+ Event: ${tn(t)}`),!0):AI(t,e.denyUrls)?(Bt&&nt.warn(`Event dropped due to being matched by \`denyUrls\` option.
34
+ Event: ${tn(t)}.
35
+ Url: ${ao(t)}`),!0):RI(t,e.allowUrls)?!1:(Bt&&nt.warn(`Event dropped due to not being matched by \`allowUrls\` option.
36
+ Event: ${tn(t)}.
37
+ Url: ${ao(t)}`),!0)}function TI(t,e){return t.type||!e||!e.length?!1:kI(t).some(n=>Co(n,e))}function CI(t,e){if(t.type!=="transaction"||!e||!e.length)return!1;let n=t.transaction;return n?Co(n,e):!1}function AI(t,e){if(!e||!e.length)return!1;let n=ao(t);return n?Co(n,e):!1}function RI(t,e){if(!e||!e.length)return!0;let n=ao(t);return n?Co(n,e):!0}function kI(t){let e=[];t.message&&e.push(t.message);let n;try{n=t.exception.values[t.exception.values.length-1]}catch{}return n&&n.value&&(e.push(n.value),n.type&&e.push(`${n.type}: ${n.value}`)),e}function DI(t){try{return t.exception.values[0].type==="SentryError"}catch{}return!1}function LI(t=[]){for(let e=t.length-1;e>=0;e--){let n=t[e];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function ao(t){try{let e;try{e=t.exception.values[0].stacktrace.frames}catch{}return e?LI(e):null}catch{return Bt&&nt.error(`Cannot extract url for event ${tn(t)}`),null}}function MI(t){return t.type||!t.exception||!t.exception.values||t.exception.values.length===0?!1:!t.message&&!t.exception.values.some(e=>e.stacktrace||e.type&&e.type!=="Error"||e.value)}var PI="Dedupe",jI=()=>{let t;return{name:PI,processEvent(e){if(e.type)return e;try{if(BI(e,t))return Bt&&nt.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return t=e}}},UI=jI;function BI(t,e){return e?!!(VI(t,e)||FI(t,e)):!1}function VI(t,e){let n=t.message,r=e.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!Kp(t,e)||!Jp(t,e))}function FI(t,e){let n=Vc(e),r=Vc(t);return!(!n||!r||n.type!==r.type||n.value!==r.value||!Kp(t,e)||!Jp(t,e))}function Jp(t,e){let n=bc(t),r=bc(e);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let i=0;i<r.length;i++){let o=r[i],s=n[i];if(o.filename!==s.filename||o.lineno!==s.lineno||o.colno!==s.colno||o.function!==s.function)return!1}return!0}function Kp(t,e){let n=t.fingerprint,r=e.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join("")===r.join("")}catch{return!1}}function Vc(t){return t.exception&&t.exception.values&&t.exception.values[0]}var Jt=bt,ga=0;function Qp(){return ga>0}function $I(){ga++,setTimeout(()=>{ga--})}function hr(t,e={},n){if(typeof t!="function")return t;try{let i=t.__sentry_wrapped__;if(i)return i;if(ju(t))return t}catch{return t}let r=function(){let i=Array.prototype.slice.call(arguments);try{n&&typeof n=="function"&&n.apply(this,arguments);let o=i.map(s=>hr(s,e));return t.apply(this,o)}catch(o){throw $I(),ES(s=>{s.addEventProcessor(a=>(e.mechanism&&(ua(a,void 0,void 0),Hr(a,e.mechanism)),a.extra=Dt(k({},a.extra),{arguments:i}),a)),oI(o)}),o}};try{for(let i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=t[i])}catch{}Pp(r,t),Rn(t,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return t.name}})}catch{}return r}var Yn=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function Fu(t,e){let n=$u(t,e),r={type:e&&e.name,value:WI(e)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function HI(t,e,n,r){let i=he(),o=i&&i.getOptions().normalizeDepth,s=QI(e),a={__serialized__:Vp(e,o)};if(s)return{exception:{values:[Fu(t,s)]},extra:a};let u={exception:{values:[{type:Oo(e)?e.constructor.name:r?"UnhandledRejection":"Error",value:JI(e,{isUnhandledRejection:r})}]},extra:a};if(n){let f=$u(t,n);f.length&&(u.exception.values[0].stacktrace={frames:f})}return u}function ls(t,e){return{exception:{values:[Fu(t,e)]}}}function $u(t,e){let n=e.stacktrace||e.stack||"",r=qI(e),i=GI(e);try{return t(n,r,i)}catch{}return[]}var zI=/Minified React error #\d+;/i;function qI(t){return t&&zI.test(t.message)?1:0}function GI(t){return typeof t.framesToPop=="number"?t.framesToPop:0}function WI(t){let e=t&&t.message;return e?e.error&&typeof e.error.message=="string"?e.error.message:e:"No error message"}function ZI(t,e,n,r){let i=n&&n.syntheticException||void 0,o=Hu(t,e,i,r);return Hr(o),o.level="error",n&&n.event_id&&(o.event_id=n.event_id),Dn(o)}function YI(t,e,n="info",r,i){let o=r&&r.syntheticException||void 0,s=ya(t,e,o,i);return s.level=n,r&&r.event_id&&(s.event_id=r.event_id),Dn(s)}function Hu(t,e,n,r,i){let o;if(kp(e)&&e.error)return ls(t,e.error);if(fc(e)||sE(e)){let s=e;if("stack"in e)o=ls(t,e);else{let a=s.name||(fc(s)?"DOMError":"DOMException"),u=s.message?`${a}: ${s.message}`:a;o=ya(t,u,n,r),ua(o,u)}return"code"in s&&(o.tags=Dt(k({},o.tags),{"DOMException.code":`${s.code}`})),o}return Ru(e)?ls(t,e):cr(e)||Oo(e)?(o=HI(t,e,n,i),Hr(o,{synthetic:!0}),o):(o=ya(t,e,n,r),ua(o,`${e}`,void 0),Hr(o,{synthetic:!0}),o)}function ya(t,e,n,r){let i={};if(r&&n){let o=$u(t,n);o.length&&(i.exception={values:[{value:e,stacktrace:{frames:o}}]})}if(ku(e)){let{__sentry_template_string__:o,__sentry_template_values__:s}=e;return i.logentry={message:o,params:s},i}return i.message=e,i}function JI(t,{isUnhandledRejection:e}){let n=NE(t),r=e?"promise rejection":"exception";return kp(t)?`Event \`ErrorEvent\` captured as ${r} with message \`${t.message}\``:Oo(t)?`Event \`${KI(t)}\` (type=${t.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function KI(t){try{let e=Object.getPrototypeOf(t);return e?e.constructor.name:void 0}catch{}}function QI(t){for(let e in t)if(Object.prototype.hasOwnProperty.call(t,e)){let n=t[e];if(n instanceof Error)return n}}function XI(t,{metadata:e,tunnel:n,dsn:r}){let i=k(k({event_id:t.event_id,sent_at:new Date().toISOString()},e&&e.sdk&&{sdk:{name:e.sdk.name,version:e.sdk.version}}),!!n&&!!r&&{dsn:Ao(r)}),o=tN(t);return ui(i,[o])}function tN(t){return[{type:"user_report"},t]}var eN=class extends hI{constructor(t){let e=k({parentSpanIsAlwaysRootSpan:!0},t),n=Jt.SENTRY_SDK_SOURCE||FE();mI(e,"browser",["browser"],n),super(e),e.sendClientReports&&Jt.document&&Jt.document.addEventListener("visibilitychange",()=>{Jt.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(t,e){return ZI(this._options.stackParser,t,e,this._options.attachStacktrace)}eventFromMessage(t,e="info",n){return YI(this._options.stackParser,t,e,n,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled()){Yn&&nt.warn("SDK not enabled, will not capture user feedback.");return}let e=XI(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(e)}_prepareEvent(t,e,n){return t.platform=t.platform||"javascript",super._prepareEvent(t,e,n)}_flushOutcomes(){let t=this._clearOutcomes();if(t.length===0){Yn&&nt.log("No outcomes to send");return}if(!this._dsn){Yn&&nt.log("No dsn provided, will not send outcomes");return}Yn&&nt.log("Sending outcomes:",t);let e=aS(t,this._options.tunnel&&Ao(this._dsn));this.sendEnvelope(e)}},nN=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Xt=bt,rN=1e3,Fc,ma,va;function iN(t){let e="dom";Vn(e,t),Fn(e,oN)}function oN(){if(!Xt.document)return;let t=Te.bind(null,"dom"),e=$c(t,!0);Xt.document.addEventListener("click",e,!1),Xt.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach(n=>{let r=Xt[n]&&Xt[n].prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(Kt(r,"addEventListener",function(i){return function(o,s,a){if(o==="click"||o=="keypress")try{let u=this,f=u.__sentry_instrumentation_handlers__=u.__sentry_instrumentation_handlers__||{},h=f[o]=f[o]||{refCount:0};if(!h.handler){let d=$c(t);h.handler=d,i.call(this,o,d,a)}h.refCount++}catch{}return i.call(this,o,s,a)}}),Kt(r,"removeEventListener",function(i){return function(o,s,a){if(o==="click"||o=="keypress")try{let u=this,f=u.__sentry_instrumentation_handlers__||{},h=f[o];h&&(h.refCount--,h.refCount<=0&&(i.call(this,o,h.handler,a),h.handler=void 0,delete f[o]),Object.keys(f).length===0&&delete u.__sentry_instrumentation_handlers__)}catch{}return i.call(this,o,s,a)}}))})}function sN(t){if(t.type!==ma)return!1;try{if(!t.target||t.target._sentryId!==va)return!1}catch{}return!0}function aN(t,e){return t!=="keypress"?!1:!e||!e.tagName?!0:!(e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable)}function $c(t,e=!1){return n=>{if(!n||n._sentryCaptured)return;let r=uN(n);if(aN(n.type,r))return;Rn(n,"_sentryCaptured",!0),r&&!r._sentryId&&Rn(r,"_sentryId",Ce());let i=n.type==="keypress"?"input":n.type;sN(n)||(t({event:n,name:i,global:e}),ma=n.type,va=r?r._sentryId:void 0),clearTimeout(Fc),Fc=Xt.setTimeout(()=>{va=void 0,ma=void 0},rN)}}function uN(t){try{return t.target}catch{return null}}var Oi;function lN(t){let e="history";Vn(e,t),Fn(e,cN)}function cN(){if(!hS())return;let t=Xt.onpopstate;Xt.onpopstate=function(...n){let r=Xt.location.href,i=Oi;if(Oi=r,Te("history",{from:i,to:r}),t)try{return t.apply(this,n)}catch{}};function e(n){return function(...r){let i=r.length>2?r[2]:void 0;if(i){let o=Oi,s=String(i);Oi=s,Te("history",{from:o,to:s})}return n.apply(this,r)}}Kt(Xt.history,"pushState",e),Kt(Xt.history,"replaceState",e)}var Vi={};function fN(t){let e=Vi[t];if(e)return e;let n=Xt[t];if(sa(n))return Vi[t]=n.bind(Xt);let r=Xt.document;if(r&&typeof r.createElement=="function")try{let i=r.createElement("iframe");i.hidden=!0,r.head.appendChild(i);let o=i.contentWindow;o&&o[t]&&(n=o[t]),r.head.removeChild(i)}catch(i){nN&&nt.warn(`Could not create sandbox iframe for ${t} check, bailing to window.${t}: `,i)}return n&&(Vi[t]=n.bind(Xt))}function Hc(t){Vi[t]=void 0}var Tr="__sentry_xhr_v3__";function hN(t){let e="xhr";Vn(e,t),Fn(e,dN)}function dN(){if(!Xt.XMLHttpRequest)return;let t=XMLHttpRequest.prototype;Kt(t,"open",function(e){return function(...n){let r=an()*1e3,i=$e(n[0])?n[0].toUpperCase():void 0,o=pN(n[1]);if(!i||!o)return e.apply(this,n);this[Tr]={method:i,url:o,request_headers:{}},i==="POST"&&o.match(/sentry_key/)&&(this.__sentry_own_request__=!0);let s=()=>{let a=this[Tr];if(a&&this.readyState===4){try{a.status_code=this.status}catch{}let u={endTimestamp:an()*1e3,startTimestamp:r,xhr:this};Te("xhr",u)}};return"onreadystatechange"in this&&typeof this.onreadystatechange=="function"?Kt(this,"onreadystatechange",function(a){return function(...u){return s(),a.apply(this,u)}}):this.addEventListener("readystatechange",s),Kt(this,"setRequestHeader",function(a){return function(...u){let[f,h]=u,d=this[Tr];return d&&$e(f)&&$e(h)&&(d.request_headers[f.toLowerCase()]=h),a.apply(this,u)}}),e.apply(this,n)}}),Kt(t,"send",function(e){return function(...n){let r=this[Tr];if(!r)return e.apply(this,n);n[0]!==void 0&&(r.body=n[0]);let i={startTimestamp:an()*1e3,xhr:this};return Te("xhr",i),e.apply(this,n)}})}function pN(t){if($e(t))return t;try{return t.toString()}catch{}}function gN(t,e=fN("fetch")){let n=0,r=0;function i(o){let s=o.body.length;n+=s,r++;let a=k({body:o.body,method:"POST",referrerPolicy:"origin",headers:t.headers,keepalive:n<=6e4&&r<15},t.fetchOptions);if(!e)return Hc("fetch"),oo("No fetch implementation available");try{return e(t.url,a).then(u=>(n-=s,r--,{statusCode:u.status,headers:{"x-sentry-rate-limits":u.headers.get("X-Sentry-Rate-Limits"),"retry-after":u.headers.get("Retry-After")}}))}catch(u){return Hc("fetch"),n-=s,r--,oo(u)}}return yI(t,i)}var yN=30,mN=50;function ba(t,e,n,r){let i={filename:t,function:e==="<anonymous>"?kn:e,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}var vN=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,bN=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,_N=/\((\S*)(?::(\d+))(?::(\d+))\)/,wN=t=>{let e=vN.exec(t);if(e){let[,r,i,o]=e;return ba(r,kn,+i,+o)}let n=bN.exec(t);if(n){if(n[2]&&n[2].indexOf("eval")===0){let o=_N.exec(n[2]);o&&(n[2]=o[1],n[3]=o[2],n[4]=o[3])}let[r,i]=Xp(n[1]||kn,n[2]);return ba(i,r,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}},EN=[yN,wN],SN=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,IN=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,NN=t=>{let e=SN.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){let i=IN.exec(e[3]);i&&(e[1]=e[1]||"eval",e[3]=i[1],e[4]=i[2],e[5]="")}let n=e[3],r=e[1]||kn;return[r,n]=Xp(r,n),ba(n,r,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}},xN=[mN,NN],ON=[EN,xN],TN=OE(...ON),Xp=(t,e)=>{let n=t.indexOf("safari-extension")!==-1,r=t.indexOf("safari-web-extension")!==-1;return n||r?[t.indexOf("@")!==-1?t.split("@")[0]:kn,n?`safari-extension:${e}`:`safari-web-extension:${e}`]:[t,e]},Ti=1024,CN="Breadcrumbs",AN=(t={})=>{let e=k({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},t);return{name:CN,setup(n){e.console&&CE(LN(n)),e.dom&&iN(DN(n,e.dom)),e.xhr&&hN(MN(n)),e.fetch&&LE(PN(n)),e.history&&lN(jN(n)),e.sentry&&n.on("beforeSendEvent",kN(n))}}},RN=AN;function kN(t){return function(e){he()===t&&Ln({category:`sentry.${e.type==="transaction"?"transaction":"event"}`,event_id:e.event_id,level:e.level,message:tn(e)},{event:e})}}function DN(t,e){return function(n){if(he()!==t)return;let r,i,o=typeof e=="object"?e.serializeAttribute:void 0,s=typeof e=="object"&&typeof e.maxStringLength=="number"?e.maxStringLength:void 0;s&&s>Ti&&(Yn&&nt.warn(`\`dom.maxStringLength\` cannot exceed ${Ti}, but a value of ${s} was configured. Sentry will use ${Ti} instead.`),s=Ti),typeof o=="string"&&(o=[o]);try{let u=n.event,f=UN(u)?u.target:u;r=Lp(f,{keyAttrs:o,maxStringLength:s}),i=yE(f)}catch{r="<unknown>"}if(r.length===0)return;let a={category:`ui.${n.name}`,message:r};i&&(a.data={"ui.component_name":i}),Ln(a,{event:n.event,name:n.name,global:n.global})}}function LN(t){return function(e){if(he()!==t)return;let n={category:"console",data:{arguments:e.args,logger:"console"},level:JE(e.level),message:hc(e.args," ")};if(e.level==="assert")if(e.args[0]===!1)n.message=`Assertion failed: ${hc(e.args.slice(1)," ")||"console.assert"}`,n.data.arguments=e.args.slice(1);else return;Ln(n,{input:e.args,level:e.level})}}function MN(t){return function(e){if(he()!==t)return;let{startTimestamp:n,endTimestamp:r}=e,i=e.xhr[Tr];if(!n||!r||!i)return;let{method:o,url:s,status_code:a,body:u}=i,f={method:o,url:s,status_code:a},h={xhr:e.xhr,input:u,startTimestamp:n,endTimestamp:r};Ln({category:"xhr",data:f,type:"http"},h)}}function PN(t){return function(e){if(he()!==t)return;let{startTimestamp:n,endTimestamp:r}=e;if(r&&!(e.fetchData.url.match(/sentry_key/)&&e.fetchData.method==="POST"))if(e.error){let i=e.fetchData,o={data:e.error,input:e.args,startTimestamp:n,endTimestamp:r};Ln({category:"fetch",data:i,level:"error",type:"http"},o)}else{let i=e.response,o=Dt(k({},e.fetchData),{status_code:i&&i.status}),s={input:e.args,response:i,startTimestamp:n,endTimestamp:r};Ln({category:"fetch",data:o,type:"http"},s)}}}function jN(t){return function(e){if(he()!==t)return;let n=e.from,r=e.to,i=us(Jt.location.href),o=n?us(n):void 0,s=us(r);(!o||!o.path)&&(o=i),i.protocol===s.protocol&&i.host===s.host&&(r=s.relative),i.protocol===o.protocol&&i.host===o.host&&(n=o.relative),Ln({category:"navigation",data:{from:n,to:r}})}}function UN(t){return!!t&&!!t.target}var BN=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],VN="BrowserApiErrors",FN=(t={})=>{let e=k({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},t);return{name:VN,setupOnce(){e.setTimeout&&Kt(Jt,"setTimeout",zc),e.setInterval&&Kt(Jt,"setInterval",zc),e.requestAnimationFrame&&Kt(Jt,"requestAnimationFrame",HN),e.XMLHttpRequest&&"XMLHttpRequest"in Jt&&Kt(XMLHttpRequest.prototype,"send",zN);let n=e.eventTarget;n&&(Array.isArray(n)?n:BN).forEach(qN)}}},$N=FN;function zc(t){return function(...e){let n=e[0];return e[0]=hr(n,{mechanism:{data:{function:hn(t)},handled:!1,type:"instrument"}}),t.apply(this,e)}}function HN(t){return function(e){return t.apply(this,[hr(e,{mechanism:{data:{function:"requestAnimationFrame",handler:hn(t)},handled:!1,type:"instrument"}})])}}function zN(t){return function(...e){let n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(r=>{r in n&&typeof n[r]=="function"&&Kt(n,r,function(i){let o={mechanism:{data:{function:r,handler:hn(i)},handled:!1,type:"instrument"}},s=ju(i);return s&&(o.mechanism.data.handler=hn(s)),hr(i,o)})}),t.apply(this,e)}}function qN(t){let e=Jt,n=e[t]&&e[t].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(Kt(n,"addEventListener",function(r){return function(i,o,s){try{typeof o.handleEvent=="function"&&(o.handleEvent=hr(o.handleEvent,{mechanism:{data:{function:"handleEvent",handler:hn(o),target:t},handled:!1,type:"instrument"}}))}catch{}return r.apply(this,[i,hr(o,{mechanism:{data:{function:"addEventListener",handler:hn(o),target:t},handled:!1,type:"instrument"}}),s])}}),Kt(n,"removeEventListener",function(r){return function(i,o,s){let a=o;try{let u=a&&a.__sentry_wrapped__;u&&r.call(this,i,u,s)}catch{}return r.call(this,i,a,s)}}))}var GN="GlobalHandlers",WN=(t={})=>{let e=k({onerror:!0,onunhandledrejection:!0},t);return{name:GN,setupOnce(){Error.stackTraceLimit=50},setup(n){e.onerror&&(YN(n),qc("onerror")),e.onunhandledrejection&&(JN(n),qc("onunhandledrejection"))}}},ZN=WN;function YN(t){jE(e=>{let{stackParser:n,attachStacktrace:r}=tg();if(he()!==t||Qp())return;let{msg:i,url:o,line:s,column:a,error:u}=e,f=XN(Hu(n,u||i,void 0,r,!1),o,s,a);f.level="error",Wp(f,{originalException:u,mechanism:{handled:!1,type:"onerror"}})})}function JN(t){BE(e=>{let{stackParser:n,attachStacktrace:r}=tg();if(he()!==t||Qp())return;let i=KN(e),o=Du(i)?QN(i):Hu(n,i,void 0,r,!0);o.level="error",Wp(o,{originalException:i,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function KN(t){if(Du(t))return t;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch{}return t}function QN(t){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(t)}`}]}}}function XN(t,e,n,r){let i=t.exception=t.exception||{},o=i.values=i.values||[],s=o[0]=o[0]||{},a=s.stacktrace=s.stacktrace||{},u=a.frames=a.frames||[],f=isNaN(parseInt(r,10))?void 0:r,h=isNaN(parseInt(n,10))?void 0:n,d=$e(e)&&e.length>0?e:gE();return u.length===0&&u.push({colno:f,filename:d,function:kn,in_app:!0,lineno:h}),t}function qc(t){Yn&&nt.log(`Global Handler attached: ${t}`)}function tg(){let t=he();return t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}var tx=()=>({name:"HttpContext",preprocessEvent(t){if(!Jt.navigator&&!Jt.location&&!Jt.document)return;let e=t.request&&t.request.url||Jt.location&&Jt.location.href,{referrer:n}=Jt.document||{},{userAgent:r}=Jt.navigator||{},i=k(k(k({},t.request&&t.request.headers),n&&{Referer:n}),r&&{"User-Agent":r}),o=Dt(k(k({},t.request),e&&{url:e}),{headers:i});t.request=o}}),ex="cause",nx=5,rx="LinkedErrors",ix=(t={})=>{let e=t.limit||nx,n=t.key||ex;return{name:rx,preprocessEvent(r,i,o){let s=o.getOptions();fE(Fu,s.stackParser,s.maxValueLength,n,e,r,i)}}},ox=ix;function sx(t){return[NI(),wI(),$N(),RN(),ZN(),ox(),UI(),tx()]}var ax=class extends Error{cause;constructor(t,e){super(t),this.cause=e}},ux=class eg{static INSTANCE;contexts={};tags;client;user;constructor(){this.init()}static getInstance(){return this.INSTANCE||(this.INSTANCE=new eg),this.INSTANCE}captureException(e,n,r){be.error(e),this.getNewScope(n,r).captureException(e)}captureMessage(e,n,r,i){this.getNewScope(r,i).captureMessage(e,n??"error")}captureError(e,n,r,i){be.error(e,n);let o=this.getNewScope(r,i),s=new ax(e,n);o.captureException(s)}setGlobalContext(e,n){this.contexts[e]=k({context:n},this.contexts[e])}setUser(e){this.user=e}setTags(e){this.tags=e}getNewScope(e,n){let r=new Ze;if(r.setClient(this.client),r.setUser(this.user),e?.triggerContext){let i=e.triggerContext;r.setExtras(i.triggerData.sentryContext()),delete e.triggerContext}return e&&r.setExtras(e),this.tags&&r.setTags(this.tags),n&&r.setTags(n),Object.keys(this.contexts).forEach(i=>{r.setContext(i,this.contexts[i])}),r.setTag("language",navigator.language),r.setTag("timezone",zu.getTimezone()),r}init(){let e=sx({}).filter(n=>!["BrowserApiErrors","Breadcrumbs","GlobalHandlers"].includes(n.name));this.client=new eN({dsn:"https://1bc3dda4c861f60cd6be1b67584f4bc6@o559187.ingest.us.sentry.io/4507626484203520",transport:gN,stackParser:TN,integrations:e,environment:ta.mode,release:`web-sdk@${Rr.SDK_VERSION}`,debug:ta.debug}),this.client.init()}},zu=class{static tz;static isValidURL(t){try{return new URL(t)}catch{return}}static isNull(t){return!t||t==="null"||t==="undefined"}static removeFromArray(t,e){let n=t.indexOf(e);return n===-1?!1:(t.splice(n,1),!0)}static formatCurrency(t,e){if(t==0&&e)return"Free";let n=nE.get(),r=Xw.get(),i=n.shopCurrencyCode||r.currency,o=n.currencyCode;o||be.warn("Currency code is not set in RuntimeData");let s=r.money?.format??n.moneyFormat,a;if(s&&i===o)a=tE.format(t*100,s);else{let u;try{u=new Intl.NumberFormat(this.getLang(),{style:"currency",currency:o||i,minimumFractionDigits:0,maximumFractionDigits:2})}catch(f){return ux.getInstance().captureException(f,{currentCurrency:o,shopCurrency:i}),""}a=u.format(t),a=a.replace("\u20B9","Rs. "),r.money?.showCurrency&&o!=="INR"&&(a=a.concat(` ${o}`))}return a}static formatNumber(t){return new Intl.NumberFormat(this.getLang(),{notation:"compact"}).format(t)}static getLang(){return navigator.languages!==void 0?navigator.languages[0].split("-")[0]:navigator.language??"en"}static getTimezone(){if(this.tz)return this.tz;try{return this.tz=Intl.DateTimeFormat().resolvedOptions().timeZone,this.tz}catch{return""}}static documentReady(t){document.readyState!=="loading"?t():document.addEventListener("DOMContentLoaded",t)}static onDocumentLoaded(t){document.readyState==="complete"?t():document.addEventListener("readystatechange",()=>{document.readyState==="complete"&&t()})}static showSnackbar(t){let e=document.createElement("span");e.id="snackbar",e.innerText=t,document.body.appendChild(e),e.className="show",setTimeout(()=>{e.classList.remove("show"),document.body.removeChild(e)},3e3)}static async retrySelectorForElements(t,e=10,n=document){let r=0,i=document.querySelectorAll("nonexistent-tag");for(;r<e;){let o=Math.min(100*2**r,5e3);if(await rE.JSUtils.sleep(o),i=n.querySelectorAll(t),i.length)return be.debug(`Attempt ${r+1}: ${i.length} elements found with ${t}`),i;be.debug(`Attempt ${r+1}: Elements not found with ${t}. Retrying after ${o}ms.`),r++}return be.warn(`Max attempts reached. Element not found with ${t}.`),i}static async retrySelector(t,e=10,n=document){return(await this.retrySelectorForElements(t,e,n)).item(0)}static async getCartAttributes(){let t=await iE.get(cc.DEVICE_ID),e=await oE.get(cc.ID,"");return[{key:"letscooee_did",value:t},{key:"letscooee_sid",value:e},{key:"__letscooee_time",value:new Date().toLocaleString()},{key:"__letscooee_via",value:"Buy Now"}]}static onNodesRemoved(t,e,n=document.body){let r=new MutationObserver(i=>{i.forEach(o=>{o.removedNodes.forEach(s=>{(s===t||s.contains(t))&&(e(),r.disconnect())})})});r.observe(n,{childList:!0})}},ng=class _a{transform(e){return e?zu.formatCurrency(e):null}static \u0275fac=function(e){return new(e||_a)};static \u0275pipe=Eu({name:"cooeeCurrency",type:_a,pure:!0})},lx=Zr(fy()),cx=Object.prototype.toString,vr=Array.isArray||function(t){return cx.call(t)==="[object Array]"};function qu(t){return typeof t=="function"}function fx(t){return vr(t)?"array":typeof t}function cs(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function Gc(t,e){return t!=null&&typeof t=="object"&&e in t}function hx(t,e){return t!=null&&typeof t!="object"&&t.hasOwnProperty&&t.hasOwnProperty(e)}var dx=RegExp.prototype.test;function px(t,e){return dx.call(t,e)}var gx=/\S/;function yx(t){return!px(gx,t)}var mx={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"};function vx(t){return String(t).replace(/[&<>"'`=\/]/g,function(e){return mx[e]})}var bx=/\s*/,_x=/\s+/,Wc=/\s*=/,wx=/\s*\}/,Ex=/#|\^|\/|>|\{|&|=|!/;function Sx(t,e){if(!t)return[];var n=!1,r=[],i=[],o=[],s=!1,a=!1,u="",f=0;function h(){if(s&&!a)for(;o.length;)delete i[o.pop()];else o=[];s=!1,a=!1}var d,b,_;function w(U){if(typeof U=="string"&&(U=U.split(_x,2)),!vr(U)||U.length!==2)throw new Error("Invalid tags: "+U);d=new RegExp(cs(U[0])+"\\s*"),b=new RegExp("\\s*"+cs(U[1])),_=new RegExp("\\s*"+cs("}"+U[1]))}w(e||we.tags);for(var T=new li(t),D,M,H,Y,V,Q;!T.eos();){if(D=T.pos,H=T.scanUntil(d),H)for(var Lt=0,Mt=H.length;Lt<Mt;++Lt)Y=H.charAt(Lt),yx(Y)?(o.push(i.length),u+=Y):(a=!0,n=!0,u+=" "),i.push(["text",Y,D,D+1]),D+=1,Y===`
38
+ `&&(h(),u="",f=0,n=!1);if(!T.scan(d))break;if(s=!0,M=T.scan(Ex)||"name",T.scan(bx),M==="="?(H=T.scanUntil(Wc),T.scan(Wc),T.scanUntil(b)):M==="{"?(H=T.scanUntil(_),T.scan(wx),T.scanUntil(b),M="&"):H=T.scanUntil(b),!T.scan(b))throw new Error("Unclosed tag at "+T.pos);if(M==">"?V=[M,H,D,T.pos,u,f,n]:V=[M,H,D,T.pos],f++,i.push(V),M==="#"||M==="^")r.push(V);else if(M==="/"){if(Q=r.pop(),!Q)throw new Error('Unopened section "'+H+'" at '+D);if(Q[1]!==H)throw new Error('Unclosed section "'+Q[1]+'" at '+D)}else M==="name"||M==="{"||M==="&"?a=!0:M==="="&&w(H)}if(h(),Q=r.pop(),Q)throw new Error('Unclosed section "'+Q[1]+'" at '+T.pos);return Nx(Ix(i))}function Ix(t){for(var e=[],n,r,i=0,o=t.length;i<o;++i)n=t[i],n&&(n[0]==="text"&&r&&r[0]==="text"?(r[1]+=n[1],r[3]=n[3]):(e.push(n),r=n));return e}function Nx(t){for(var e=[],n=e,r=[],i,o,s=0,a=t.length;s<a;++s)switch(i=t[s],i[0]){case"#":case"^":n.push(i),r.push(i),n=i[4]=[];break;case"/":o=r.pop(),o[5]=i[2],n=r.length>0?r[r.length-1][4]:e;break;default:n.push(i)}return e}function li(t){this.string=t,this.tail=t,this.pos=0}li.prototype.eos=function(){return this.tail===""};li.prototype.scan=function(t){var e=this.tail.match(t);if(!e||e.index!==0)return"";var n=e[0];return this.tail=this.tail.substring(n.length),this.pos+=n.length,n};li.prototype.scanUntil=function(t){var e=this.tail.search(t),n;switch(e){case-1:n=this.tail,this.tail="";break;case 0:n="";break;default:n=this.tail.substring(0,e),this.tail=this.tail.substring(e)}return this.pos+=n.length,n};function dr(t,e){this.view=t,this.cache={".":this.view},this.parent=e}dr.prototype.push=function(t){return new dr(t,this)};dr.prototype.lookup=function(t){var e=this.cache,n;if(e.hasOwnProperty(t))n=e[t];else{for(var r=this,i,o,s,a=!1;r;){if(t.indexOf(".")>0)for(i=r.view,o=t.split("."),s=0;i!=null&&s<o.length;)s===o.length-1&&(a=Gc(i,o[s])||hx(i,o[s])),i=i[o[s++]];else i=r.view[t],a=Gc(r.view,t);if(a){n=i;break}r=r.parent}e[t]=n}return qu(n)&&(n=n.call(this.view)),n};function ie(){this.templateCache={_cache:{},set:function(t,e){this._cache[t]=e},get:function(t){return this._cache[t]},clear:function(){this._cache={}}}}ie.prototype.clearCache=function(){typeof this.templateCache<"u"&&this.templateCache.clear()};ie.prototype.parse=function(t,e){var n=this.templateCache,r=t+":"+(e||we.tags).join(":"),i=typeof n<"u",o=i?n.get(r):void 0;return o==null&&(o=Sx(t,e),i&&n.set(r,o)),o};ie.prototype.render=function(t,e,n,r){var i=this.getConfigTags(r),o=this.parse(t,i),s=e instanceof dr?e:new dr(e,void 0);return this.renderTokens(o,s,n,t,r)};ie.prototype.renderTokens=function(t,e,n,r,i){for(var o="",s,a,u,f=0,h=t.length;f<h;++f)u=void 0,s=t[f],a=s[0],a==="#"?u=this.renderSection(s,e,n,r,i):a==="^"?u=this.renderInverted(s,e,n,r,i):a===">"?u=this.renderPartial(s,e,n,i):a==="&"?u=this.unescapedValue(s,e):a==="name"?u=this.escapedValue(s,e,i):a==="text"&&(u=this.rawValue(s)),u!==void 0&&(o+=u);return o};ie.prototype.renderSection=function(t,e,n,r,i){var o=this,s="",a=e.lookup(t[1]);function u(d){return o.render(d,e,n,i)}if(a){if(vr(a))for(var f=0,h=a.length;f<h;++f)s+=this.renderTokens(t[4],e.push(a[f]),n,r,i);else if(typeof a=="object"||typeof a=="string"||typeof a=="number")s+=this.renderTokens(t[4],e.push(a),n,r,i);else if(qu(a)){if(typeof r!="string")throw new Error("Cannot use higher-order sections without the original template");a=a.call(e.view,r.slice(t[3],t[5]),u),a!=null&&(s+=a)}else s+=this.renderTokens(t[4],e,n,r,i);return s}};ie.prototype.renderInverted=function(t,e,n,r,i){var o=e.lookup(t[1]);if(!o||vr(o)&&o.length===0)return this.renderTokens(t[4],e,n,r,i)};ie.prototype.indentPartial=function(t,e,n){for(var r=e.replace(/[^ \t]/g,""),i=t.split(`
39
39
  `),o=0;o<i.length;o++)i[o].length&&(o>0||!n)&&(i[o]=r+i[o]);return i.join(`
40
- `)};Pt.prototype.renderPartial=function(t,e,n,r){if(n){var i=this.getConfigTags(r),o=Ua(n)?n(t[1]):n[t[1]];if(o!=null){var s=t[6],a=t[5],u=t[4],l=o;a==0&&u&&(l=this.indentPartial(o,u,s));var d=this.parse(l,i);return this.renderTokens(d,e,n,l,r)}}};Pt.prototype.unescapedValue=function(t,e){var n=e.lookup(t[1]);if(n!=null)return n};Pt.prototype.escapedValue=function(t,e,n){var r=this.getConfigEscape(n)||Jt.escape,i=e.lookup(t[1]);if(i!=null)return typeof i=="number"&&r===Jt.escape?String(i):r(i)};Pt.prototype.rawValue=function(t){return t[1]};Pt.prototype.getConfigTags=function(t){return Fn(t)?t:t&&typeof t=="object"?t.tags:void 0};Pt.prototype.getConfigEscape=function(t){if(t&&typeof t=="object"&&!Fn(t))return t.escape};var Jt={name:"mustache.js",version:"4.2.0",tags:["{{","}}"],clearCache:void 0,escape:void 0,parse:void 0,render:void 0,Scanner:void 0,Context:void 0,Writer:void 0,set templateCache(t){dr.templateCache=t},get templateCache(){return dr.templateCache}},dr=new Pt;Jt.clearCache=function(){return dr.clearCache()};Jt.parse=function(t,e){return dr.parse(t,e)};Jt.render=function(t,e,n,r){if(typeof t!="string")throw new TypeError('Invalid template! Template should be a "string" but "'+p1(t)+'" was given as the first argument for mustache#render(template, view, partials)');return dr.render(t,e,n,r)};Jt.escape=E1;Jt.Scanner=xr;Jt.Context=Pn;Jt.Writer=Pt;var wh=Jt;wh.escape=d1.MustacheUtils.escapeHtml;var x1=class Ns{transform(e,n){return e?wh.render(e,C({},n)):null}static \u0275fac=function(e){return new(e||Ns)};static \u0275pipe=wa({name:"cooeeDynamicVariables",type:Ns,pure:!0})},Ha={};(function t(e,n,r,i){var o=!!(e.Worker&&e.Blob&&e.Promise&&e.OffscreenCanvas&&e.OffscreenCanvasRenderingContext2D&&e.HTMLCanvasElement&&e.HTMLCanvasElement.prototype.transferControlToOffscreen&&e.URL&&e.URL.createObjectURL),s=typeof Path2D=="function"&&typeof DOMMatrix=="function",a=function(){if(!e.OffscreenCanvas)return!1;var S=new OffscreenCanvas(1,1),m=S.getContext("2d");m.fillRect(0,0,1,1);var L=S.transferToImageBitmap();try{m.createPattern(L,"no-repeat")}catch{return!1}return!0}();function u(){}function l(S){var m=n.exports.Promise,L=m!==void 0?m:e.Promise;return typeof L=="function"?new L(S):(S(u,u),null)}var d=function(S,m){return{transform:function(L){if(S)return L;if(m.has(L))return m.get(L);var j=new OffscreenCanvas(L.width,L.height),M=j.getContext("2d");return M.drawImage(L,0,0),m.set(L,j),j},clear:function(){m.clear()}}}(a,new Map),h=function(){var S=Math.floor(16.666666666666668),m,L,j={},M=0;return typeof requestAnimationFrame=="function"&&typeof cancelAnimationFrame=="function"?(m=function(B){var F=Math.random();return j[F]=requestAnimationFrame(function V(G){M===G||M+S-1<G?(M=G,delete j[F],B()):j[F]=requestAnimationFrame(V)}),F},L=function(B){j[B]&&cancelAnimationFrame(j[B])}):(m=function(B){return setTimeout(B,S)},L=function(B){return clearTimeout(B)}),{frame:m,cancel:L}}(),y=function(){var S,m,L={};function j(M){function B(F,V){M.postMessage({options:F||{},callback:V})}M.init=function(F){var V=F.transferControlToOffscreen();M.postMessage({canvas:V},[V])},M.fire=function(F,V,G){if(m)return B(F,null),m;var tt=Math.random().toString(36).slice(2);return m=l(function(_t){function ot(mt){mt.data.callback===tt&&(delete L[tt],M.removeEventListener("message",ot),m=null,d.clear(),G(),_t())}M.addEventListener("message",ot),B(F,tt),L[tt]=ot.bind(null,{data:{callback:tt}})}),m},M.reset=function(){M.postMessage({reset:!0});for(var F in L)L[F](),delete L[F]}}return function(){if(S)return S;if(!r&&o){var M=["var CONFETTI, SIZE = {}, module = {};","("+t.toString()+")(this, module, true, SIZE);","onmessage = function(msg) {"," if (msg.data.options) {"," CONFETTI(msg.data.options).then(function () {"," if (msg.data.callback) {"," postMessage({ callback: msg.data.callback });"," }"," });"," } else if (msg.data.reset) {"," CONFETTI && CONFETTI.reset();"," } else if (msg.data.resize) {"," SIZE.width = msg.data.resize.width;"," SIZE.height = msg.data.resize.height;"," } else if (msg.data.canvas) {"," SIZE.width = msg.data.canvas.width;"," SIZE.height = msg.data.canvas.height;"," CONFETTI = module.exports.create(msg.data.canvas);"," }","}"].join(`
41
- `);try{S=new Worker(URL.createObjectURL(new Blob([M])))}catch(B){return typeof console!==void 0&&typeof console.warn=="function"&&console.warn("\u{1F38A} Could not load worker",B),null}j(S)}return S}}(),_={particleCount:50,angle:90,spread:45,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,x:.5,y:.5,shapes:["square","circle"],zIndex:100,colors:["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff"],disableForReducedMotion:!1,scalar:1};function w(S,m){return m?m(S):S}function T(S){return S!=null}function A(S,m,L){return w(S&&T(S[m])?S[m]:_[m],L)}function R(S){return S<0?0:Math.floor(S)}function Q(S,m){return Math.floor(Math.random()*(m-S))+S}function X(S){return parseInt(S,16)}function wt(S){return S.map(nt)}function nt(S){var m=String(S).replace(/[^0-9a-f]/gi,"");return m.length<6&&(m=m[0]+m[0]+m[1]+m[1]+m[2]+m[2]),{r:X(m.substring(0,2)),g:X(m.substring(2,4)),b:X(m.substring(4,6))}}function Wt(S){var m=A(S,"origin",Object);return m.x=A(m,"x",Number),m.y=A(m,"y",Number),m}function Mt(S){S.width=document.documentElement.clientWidth,S.height=document.documentElement.clientHeight}function k(S){var m=S.getBoundingClientRect();S.width=m.width,S.height=m.height}function W(S){var m=document.createElement("canvas");return m.style.position="fixed",m.style.top="0px",m.style.left="0px",m.style.pointerEvents="none",m.style.zIndex=S,m}function H(S,m,L,j,M,B,F,V,G){S.save(),S.translate(m,L),S.rotate(B),S.scale(j,M),S.arc(0,0,1,F,V,G),S.restore()}function J(S){var m=S.angle*(Math.PI/180),L=S.spread*(Math.PI/180);return{x:S.x,y:S.y,wobble:Math.random()*10,wobbleSpeed:Math.min(.11,Math.random()*.1+.05),velocity:S.startVelocity*.5+Math.random()*S.startVelocity,angle2D:-m+(.5*L-Math.random()*L),tiltAngle:(Math.random()*(.75-.25)+.25)*Math.PI,color:S.color,shape:S.shape,tick:0,totalTicks:S.ticks,decay:S.decay,drift:S.drift,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:S.gravity*3,ovalScalar:.6,scalar:S.scalar,flat:S.flat}}function gt(S,m){m.x+=Math.cos(m.angle2D)*m.velocity+m.drift,m.y+=Math.sin(m.angle2D)*m.velocity+m.gravity,m.velocity*=m.decay,m.flat?(m.wobble=0,m.wobbleX=m.x+10*m.scalar,m.wobbleY=m.y+10*m.scalar,m.tiltSin=0,m.tiltCos=0,m.random=1):(m.wobble+=m.wobbleSpeed,m.wobbleX=m.x+10*m.scalar*Math.cos(m.wobble),m.wobbleY=m.y+10*m.scalar*Math.sin(m.wobble),m.tiltAngle+=.1,m.tiltSin=Math.sin(m.tiltAngle),m.tiltCos=Math.cos(m.tiltAngle),m.random=Math.random()+2);var L=m.tick++/m.totalTicks,j=m.x+m.random*m.tiltCos,M=m.y+m.random*m.tiltSin,B=m.wobbleX+m.random*m.tiltCos,F=m.wobbleY+m.random*m.tiltSin;if(S.fillStyle="rgba("+m.color.r+", "+m.color.g+", "+m.color.b+", "+(1-L)+")",S.beginPath(),s&&m.shape.type==="path"&&typeof m.shape.path=="string"&&Array.isArray(m.shape.matrix))S.fill(je(m.shape.path,m.shape.matrix,m.x,m.y,Math.abs(B-j)*.1,Math.abs(F-M)*.1,Math.PI/10*m.wobble));else if(m.shape.type==="bitmap"){var V=Math.PI/10*m.wobble,G=Math.abs(B-j)*.1,tt=Math.abs(F-M)*.1,_t=m.shape.bitmap.width*m.scalar,ot=m.shape.bitmap.height*m.scalar,mt=new DOMMatrix([Math.cos(V)*G,Math.sin(V)*G,-Math.sin(V)*tt,Math.cos(V)*tt,m.x,m.y]);mt.multiplySelf(new DOMMatrix(m.shape.matrix));var Ot=S.createPattern(d.transform(m.shape.bitmap),"no-repeat");Ot.setTransform(mt),S.globalAlpha=1-L,S.fillStyle=Ot,S.fillRect(m.x-_t/2,m.y-ot/2,_t,ot),S.globalAlpha=1}else if(m.shape==="circle")S.ellipse?S.ellipse(m.x,m.y,Math.abs(B-j)*m.ovalScalar,Math.abs(F-M)*m.ovalScalar,Math.PI/10*m.wobble,0,2*Math.PI):H(S,m.x,m.y,Math.abs(B-j)*m.ovalScalar,Math.abs(F-M)*m.ovalScalar,Math.PI/10*m.wobble,0,2*Math.PI);else if(m.shape==="star")for(var Y=Math.PI/2*3,At=4*m.scalar,Ft=8*m.scalar,Ut=m.x,Nt=m.y,de=5,Ht=Math.PI/de;de--;)Ut=m.x+Math.cos(Y)*Ft,Nt=m.y+Math.sin(Y)*Ft,S.lineTo(Ut,Nt),Y+=Ht,Ut=m.x+Math.cos(Y)*At,Nt=m.y+Math.sin(Y)*At,S.lineTo(Ut,Nt),Y+=Ht;else S.moveTo(Math.floor(m.x),Math.floor(m.y)),S.lineTo(Math.floor(m.wobbleX),Math.floor(M)),S.lineTo(Math.floor(B),Math.floor(F)),S.lineTo(Math.floor(j),Math.floor(m.wobbleY));return S.closePath(),S.fill(),m.tick<m.totalTicks}function Tt(S,m,L,j,M){var B=m.slice(),F=S.getContext("2d"),V,G,tt=l(function(_t){function ot(){V=G=null,F.clearRect(0,0,j.width,j.height),d.clear(),M(),_t()}function mt(){r&&!(j.width===i.width&&j.height===i.height)&&(j.width=S.width=i.width,j.height=S.height=i.height),!j.width&&!j.height&&(L(S),j.width=S.width,j.height=S.height),F.clearRect(0,0,j.width,j.height),B=B.filter(function(Ot){return gt(F,Ot)}),B.length?V=h.frame(mt):ot()}V=h.frame(mt),G=ot});return{addFettis:function(_t){return B=B.concat(_t),tt},canvas:S,promise:tt,reset:function(){V&&h.cancel(V),G&&G()}}}function Ct(S,m){var L=!S,j=!!A(m||{},"resize"),M=!1,B=A(m,"disableForReducedMotion",Boolean),F=o&&!!A(m||{},"useWorker"),V=F?y():null,G=L?Mt:k,tt=S&&V?!!S.__confetti_initialized:!1,_t=typeof matchMedia=="function"&&matchMedia("(prefers-reduced-motion)").matches,ot;function mt(Y,At,Ft){for(var Ut=A(Y,"particleCount",R),Nt=A(Y,"angle",Number),de=A(Y,"spread",Number),Ht=A(Y,"startVelocity",Number),fn=A(Y,"decay",Number),Hn=A(Y,"gravity",Number),Bn=A(Y,"drift",Number),dn=A(Y,"colors",wt),Dr=A(Y,"ticks",Number),$n=A(Y,"shapes"),kr=A(Y,"scalar"),Ar=!!A(Y,"flat"),zn=Wt(Y),Gn=Ut,hn=[],Rr=S.width*zn.x,Lr=S.height*zn.y;Gn--;)hn.push(J({x:Rr,y:Lr,angle:Nt,spread:de,startVelocity:Ht,color:dn[Gn%dn.length],shape:$n[Q(0,$n.length)],ticks:Dr,decay:fn,gravity:Hn,drift:Bn,scalar:kr,flat:Ar}));return ot?ot.addFettis(hn):(ot=Tt(S,hn,G,At,Ft),ot.promise)}function Ot(Y){var At=B||A(Y,"disableForReducedMotion",Boolean),Ft=A(Y,"zIndex",Number);if(At&&_t)return l(function(Ht){Ht()});L&&ot?S=ot.canvas:L&&!S&&(S=W(Ft),document.body.appendChild(S)),j&&!tt&&G(S);var Ut={width:S.width,height:S.height};V&&!tt&&V.init(S),tt=!0,V&&(S.__confetti_initialized=!0);function Nt(){if(V){var Ht={getBoundingClientRect:function(){if(!L)return S.getBoundingClientRect()}};G(Ht),V.postMessage({resize:{width:Ht.width,height:Ht.height}});return}Ut.width=Ut.height=null}function de(){ot=null,j&&(M=!1,e.removeEventListener("resize",Nt)),L&&S&&(document.body.contains(S)&&document.body.removeChild(S),S=null,tt=!1)}return j&&!M&&(M=!0,e.addEventListener("resize",Nt,!1)),V?V.fire(Y,Ut,de):mt(Y,Ut,de)}return Ot.reset=function(){V&&V.reset(),ot&&ot.reset()},Ot}var c;function Yt(){return c||(c=Ct(null,{useWorker:!0,resize:!0})),c}function je(S,m,L,j,M,B,F){var V=new Path2D(S),G=new Path2D;G.addPath(V,new DOMMatrix(m));var tt=new Path2D;return tt.addPath(G,new DOMMatrix([Math.cos(F)*M,Math.sin(F)*M,-Math.sin(F)*B,Math.cos(F)*B,L,j])),tt}function cn(S){if(!s)throw new Error("path confetti are not supported in this browser");var m,L;typeof S=="string"?m=S:(m=S.path,L=S.matrix);var j=new Path2D(m),M=document.createElement("canvas"),B=M.getContext("2d");if(!L){for(var F=1e3,V=F,G=F,tt=0,_t=0,ot,mt,Ot=0;Ot<F;Ot+=2)for(var Y=0;Y<F;Y+=2)B.isPointInPath(j,Ot,Y,"nonzero")&&(V=Math.min(V,Ot),G=Math.min(G,Y),tt=Math.max(tt,Ot),_t=Math.max(_t,Y));ot=tt-V,mt=_t-G;var At=10,Ft=Math.min(At/ot,At/mt);L=[Ft,0,0,Ft,-Math.round(ot/2+V)*Ft,-Math.round(mt/2+G)*Ft]}return{type:"path",path:m,matrix:L}}function Un(S){var m,L=1,j="#000000",M='"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "EmojiOne Color", "Android Emoji", "Twemoji Mozilla", "system emoji", sans-serif';typeof S=="string"?m=S:(m=S.text,L="scalar"in S?S.scalar:L,M="fontFamily"in S?S.fontFamily:M,j="color"in S?S.color:j);var B=10*L,F=""+B+"px "+M,V=new OffscreenCanvas(B,B),G=V.getContext("2d");G.font=F;var tt=G.measureText(m),_t=Math.ceil(tt.actualBoundingBoxRight+tt.actualBoundingBoxLeft),ot=Math.ceil(tt.actualBoundingBoxAscent+tt.actualBoundingBoxDescent),mt=2,Ot=tt.actualBoundingBoxLeft+mt,Y=tt.actualBoundingBoxAscent+mt;_t+=mt+mt,ot+=mt+mt,V=new OffscreenCanvas(_t,ot),G=V.getContext("2d"),G.font=F,G.fillStyle=j,G.fillText(m,Ot,Y);var At=1/L;return{type:"bitmap",bitmap:V.transferToImageBitmap(),matrix:[At,0,0,At,-_t*At/2,-ot*At/2]}}n.exports=function(){return Yt().apply(this,arguments)},n.exports.reset=function(){Yt().reset()},n.exports.create=Ct,n.exports.shapeFromPath=cn,n.exports.shapeFromText=Un})(function(){return typeof window<"u"?window:typeof self<"u"?self:this||{}}(),Ha,!1);var D1=Ha.exports,U1=Ha.exports.create,k1=class{static DEFAULTS={scalar:1.4,zIndex:1e4,shapes:["circle","circle","square"],colors:["#f51c8f","#2179e2","#d52dc8","#01a9d9","#78ff44","#fdff6a"]};static async basic(){await this.fire({particleCount:100,spread:70,origin:{y:.6}})}static async leftRight(t=100){let e=[],n=Date.now()+2e3,r=()=>{e.push(this.fire({angle:60,spread:55,origin:{x:0}}),this.fire({angle:120,spread:55,origin:{x:1}})),Date.now()<n&&t>0&&(requestAnimationFrame(r),t--)};r(),await Promise.all(e)}static async realistic(){await Promise.all([this.realisticFire(.25,{spread:26,startVelocity:55}),this.realisticFire(.2,{spread:60}),this.realisticFire(.35,{spread:100,decay:.91,scalar:.8}),this.realisticFire(.1,{spread:120,startVelocity:25,decay:.92,scalar:1.2}),this.realisticFire(.1,{spread:120,startVelocity:45})])}static async fire(t){Object.assign(t,this.DEFAULTS,t),t.particleCount=t.particleCount??this.DEFAULTS.colors.length,await D1(t)}static async realisticFire(t,e){let n={origin:{y:.7}};await this.fire(Object.assign({},n,e,{particleCount:Math.floor(200*t)}))}},A1=class Os{constructor(e){this.sanitizer=e}transform(e){return e?this.sanitizer.bypassSecurityTrustHtml(e):""}static \u0275fac=function(e){return new(e||Os)($i(Yd,16))};static \u0275pipe=wa({name:"safeHtml",type:Os,pure:!0})},R1=(t,e)=>e.minValue;function L1(t,e){if(t&1&&(ur(0,"li",6)(1,"div",7),cr(2,"div",8),Ei(3,"cooeeCurrency"),Ei(4,"safeHtml"),cr(5,"img",9),ur(6,"div",10),Hb(7),lr()()()),t&2){let n=e.$implicit,r=Dd(2);Sa("left",n.calculatedAlignment+"%"),wn(2),vi("innerHTML",es(4,7,es(3,5,n.minValue)),qf),wn(3),vi("src",r.getIconURL(n),ny),wn(2),Ad(n.label)}}function P1(t,e){if(t&1&&(Ld(0)(1),cr(2,"div",0),Ei(3,"cooeeDynamicVariables"),Ei(4,"safeHtml"),ur(5,"div",1)(6,"ul",2)(7,"div",3),cr(8,"div",4),lr(),Rb(9,L1,8,9,"li",5,R1),lr()()),t&2){let n=Dd(),r=n.calculatedState(),i=r.nextMilestone?r.nextMilestone.reachingText:r.lastMilestone.reachedText;wn(2),vi("innerHTML",es(4,6,Yb(3,3,i,n.localDynamicVariables())),qf),wn(6),Sa("width",r.cartValuePercentage+"%"),wn(),Pb(r.milestones)}}var M1=class xs{constructor(e){this.elementRef=e,this.elementRef.nativeElement.update=this.update.bind(this)}cart;localDynamicVariables=fo({});calculatedState=fo({});_engagementTrigger=fo(null);set engagementTrigger(e){this._engagementTrigger.set(e)}ngOnInit(){Qt.debug("Init progressbar"),this.calculateMilestonesSilently()}ngOnDestroy(){Qt.debug("Destroying progressbar")}update(){this.calculateMilestonesSilently()}getIconURL(e){return e.rewardType===_o.MilestoneRewardType.FREE_SHIPPING?"https://img.icons8.com/ios-filled/50/FFFFFF/free-shipping.png":e.rewardType===_o.MilestoneRewardType.DISCOUNT?"https://img.icons8.com/ios-glyphs/30/FFFFFF/sale-price-tag.png":e.rewardType===_o.MilestoneRewardType.FREE_AUTO_GIFT?"https://img.icons8.com/ios-filled/50/FFFFFF/gift--v1.png":""}calculateMilestonesSilently(){this.calculateMilestones().catch(e=>Qt.error(e))}async calculateMilestones(){let e=this._engagementTrigger();if(!e?.progressBarConfig?.milestones?.length){Qt.warn("Milestones not available in progress bar config",e);return}let n=await this.cart.getNormalisedCart(),r=e.progressBarConfig,i=r.milestones.at(-1),o=i.minValue+Math.floor(i.minValue*5/100),s=n.originalAmount,a=Math.min(s,o),u=100/r.milestones.length,l=u;for(let _ of r.milestones)_.calculatedAlignment=l,l+=u;let d=this.calculateTrackedProgress(a,r.milestones);Qt.debug("Cart value:",s,`, percentage: ${d}%`),this.celebrate(e,s);let h={milestonesReady:!0,cartValuePercentage:d,milestones:r.milestones},y=r.milestones.find(_=>_.minValue>s);if(y){this.localDynamicVariables.set({amount_left:Fa.formatCurrency(y.minValue-s)}),h.nextMilestone=y,this.calculatedState.set(h);return}h.lastMilestone=i,this.calculatedState.set(h)}celebrate(e,n){let r=[...e.progressBarConfig.milestones].reverse().find(o=>o.minValue<n);if(!r)return;let i=`lc/en/${e.shortID}/${r.minValue}`;sessionStorage.getItem(i)||(sessionStorage.setItem(i,"1"),k1.realistic())}calculateTrackedProgress(e,n){if(e<=n[0].minValue)return e/n[0].minValue*n[0].calculatedAlignment;if(e>=n[n.length-1].minValue)return 100;for(let r=0;r<n.length-1;r++){let i=n[r].minValue,o=n[r+1].minValue,s=n[r].calculatedAlignment,a=n[r+1].calculatedAlignment;if(e>=i&&e<=o)return(e-i)/(o-i)*(a-s)+s}return 0}static \u0275fac=function(e){return new(e||xs)($i(If))};static \u0275cmp=$_({type:xs,selectors:[["cooee-progressbar"]],inputs:{cart:"cart",engagementTrigger:"engagementTrigger"},decls:1,vars:1,consts:[["id","lc-heading",1,"lc:font-medium","lc:text-center","lc:text-[12px]","lc-primary-text",3,"innerHTML"],[1,"lc:mt-4","lc:w-[95%]"],["id","lc-milestone-list",1,"lc:flex","lc:items-center","lc:relative","lc:text-[10px]","lc:font-medium"],["id","lc-untracked-path",1,"lc:w-full","lc:bg-gray-200","lc:h-1","lc:absolute","lc-progress-rail"],["id","lc-tracked-path",1,"lc:bg-green-700","lc:h-full","lc:block!"],["id","lc-milestone-list-item",1,"lc:relative","lc:flex","lc:flex-col","lc:items-center","lc:h-[75px]",3,"left"],["id","lc-milestone-list-item",1,"lc:relative","lc:flex","lc:flex-col","lc:items-center","lc:h-[75px]"],[1,"lc:flex","lc:flex-col","lc:items-center","lc:justify-between","lc:absolute","lc:h-full","lc:w-[100px]"],["id","lc-milestone-value",1,"lc-milestone-value",3,"innerHTML"],["width","20","height","20","id","lc-milestone-icon","alt","milestone icon",1,"lc-milestone-icon","lc:bg-green-700",3,"src"],["id","lc-milestone-label",1,"lc="]],template:function(e,n){e&1&&Nd(0,P1,11,8),e&2&&Db(n.calculatedState().milestonesReady?0:-1)},dependencies:[x1,A1,f1],styles:["[_nghost-%COMP%]{display:block;padding:10px;background:linear-gradient(0deg,rgba(44,135,74,.1) 0%,transparent 100%)}.lc-milestone-icon[_ngcontent-%COMP%]{padding:5px;border-radius:1000px}.lc-progress-rail[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{transition:width .5s ease-in-out}"]})};Qt.configure("CooeeWidgetSDK");(async()=>{let t=await GE(t0),e=EE(M1,{injector:t.injector});customElements.define("cooee-progressbar",e)})();})();
40
+ `)};ie.prototype.renderPartial=function(t,e,n,r){if(n){var i=this.getConfigTags(r),o=qu(n)?n(t[1]):n[t[1]];if(o!=null){var s=t[6],a=t[5],u=t[4],f=o;a==0&&u&&(f=this.indentPartial(o,u,s));var h=this.parse(f,i);return this.renderTokens(h,e,n,f,r)}}};ie.prototype.unescapedValue=function(t,e){var n=e.lookup(t[1]);if(n!=null)return n};ie.prototype.escapedValue=function(t,e,n){var r=this.getConfigEscape(n)||we.escape,i=e.lookup(t[1]);if(i!=null)return typeof i=="number"&&r===we.escape?String(i):r(i)};ie.prototype.rawValue=function(t){return t[1]};ie.prototype.getConfigTags=function(t){return vr(t)?t:t&&typeof t=="object"?t.tags:void 0};ie.prototype.getConfigEscape=function(t){if(t&&typeof t=="object"&&!vr(t))return t.escape};var we={name:"mustache.js",version:"4.2.0",tags:["{{","}}"],clearCache:void 0,escape:void 0,parse:void 0,render:void 0,Scanner:void 0,Context:void 0,Writer:void 0,set templateCache(t){zr.templateCache=t},get templateCache(){return zr.templateCache}},zr=new ie;we.clearCache=function(){return zr.clearCache()};we.parse=function(t,e){return zr.parse(t,e)};we.render=function(t,e,n,r){if(typeof t!="string")throw new TypeError('Invalid template! Template should be a "string" but "'+fx(t)+'" was given as the first argument for mustache#render(template, view, partials)');return zr.render(t,e,n,r)};we.escape=vx;we.Scanner=li;we.Context=dr;we.Writer=ie;var rg=we;rg.escape=lx.MustacheUtils.escapeHtml;var xx=class wa{transform(e,n){return e?rg.render(e,k({},n)):null}static \u0275fac=function(e){return new(e||wa)};static \u0275pipe=Eu({name:"cooeeDynamicVariables",type:wa,pure:!0})},Gu={};(function t(e,n,r,i){var o=!!(e.Worker&&e.Blob&&e.Promise&&e.OffscreenCanvas&&e.OffscreenCanvasRenderingContext2D&&e.HTMLCanvasElement&&e.HTMLCanvasElement.prototype.transferControlToOffscreen&&e.URL&&e.URL.createObjectURL),s=typeof Path2D=="function"&&typeof DOMMatrix=="function",a=function(){if(!e.OffscreenCanvas)return!1;var N=new OffscreenCanvas(1,1),S=N.getContext("2d");S.fillRect(0,0,1,1);var $=N.transferToImageBitmap();try{S.createPattern($,"no-repeat")}catch{return!1}return!0}();function u(){}function f(N){var S=n.exports.Promise,$=S!==void 0?S:e.Promise;return typeof $=="function"?new $(N):(N(u,u),null)}var h=function(N,S){return{transform:function($){if(N)return $;if(S.has($))return S.get($);var W=new OffscreenCanvas($.width,$.height),G=W.getContext("2d");return G.drawImage($,0,0),S.set($,W),W},clear:function(){S.clear()}}}(a,new Map),d=function(){var N=Math.floor(16.666666666666668),S,$,W={},G=0;return typeof requestAnimationFrame=="function"&&typeof cancelAnimationFrame=="function"?(S=function(X){var K=Math.random();return W[K]=requestAnimationFrame(function Z(rt){G===rt||G+N-1<rt?(G=rt,delete W[K],X()):W[K]=requestAnimationFrame(Z)}),K},$=function(X){W[X]&&cancelAnimationFrame(W[X])}):(S=function(X){return setTimeout(X,N)},$=function(X){return clearTimeout(X)}),{frame:S,cancel:$}}(),b=function(){var N,S,$={};function W(G){function X(K,Z){G.postMessage({options:K||{},callback:Z})}G.init=function(K){var Z=K.transferControlToOffscreen();G.postMessage({canvas:Z},[Z])},G.fire=function(K,Z,rt){if(S)return X(K,null),S;var ft=Math.random().toString(36).slice(2);return S=f(function(Pt){function ht(pt){pt.data.callback===ft&&(delete $[ft],G.removeEventListener("message",ht),S=null,h.clear(),rt(),Pt())}G.addEventListener("message",ht),X(K,ft),$[ft]=ht.bind(null,{data:{callback:ft}})}),S},G.reset=function(){G.postMessage({reset:!0});for(var K in $)$[K](),delete $[K]}}return function(){if(N)return N;if(!r&&o){var G=["var CONFETTI, SIZE = {}, module = {};","("+t.toString()+")(this, module, true, SIZE);","onmessage = function(msg) {"," if (msg.data.options) {"," CONFETTI(msg.data.options).then(function () {"," if (msg.data.callback) {"," postMessage({ callback: msg.data.callback });"," }"," });"," } else if (msg.data.reset) {"," CONFETTI && CONFETTI.reset();"," } else if (msg.data.resize) {"," SIZE.width = msg.data.resize.width;"," SIZE.height = msg.data.resize.height;"," } else if (msg.data.canvas) {"," SIZE.width = msg.data.canvas.width;"," SIZE.height = msg.data.canvas.height;"," CONFETTI = module.exports.create(msg.data.canvas);"," }","}"].join(`
41
+ `);try{N=new Worker(URL.createObjectURL(new Blob([G])))}catch(X){return typeof console!==void 0&&typeof console.warn=="function"&&console.warn("\u{1F38A} Could not load worker",X),null}W(N)}return N}}(),_={particleCount:50,angle:90,spread:45,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,x:.5,y:.5,shapes:["square","circle"],zIndex:100,colors:["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff"],disableForReducedMotion:!1,scalar:1};function w(N,S){return S?S(N):N}function T(N){return N!=null}function D(N,S,$){return w(N&&T(N[S])?N[S]:_[S],$)}function M(N){return N<0?0:Math.floor(N)}function H(N,S){return Math.floor(Math.random()*(S-N))+N}function Y(N){return parseInt(N,16)}function V(N){return N.map(Q)}function Q(N){var S=String(N).replace(/[^0-9a-f]/gi,"");return S.length<6&&(S=S[0]+S[0]+S[1]+S[1]+S[2]+S[2]),{r:Y(S.substring(0,2)),g:Y(S.substring(2,4)),b:Y(S.substring(4,6))}}function Lt(N){var S=D(N,"origin",Object);return S.x=D(S,"x",Number),S.y=D(S,"y",Number),S}function Mt(N){N.width=document.documentElement.clientWidth,N.height=document.documentElement.clientHeight}function U(N){var S=N.getBoundingClientRect();N.width=S.width,N.height=S.height}function et(N){var S=document.createElement("canvas");return S.style.position="fixed",S.style.top="0px",S.style.left="0px",S.style.pointerEvents="none",S.style.zIndex=N,S}function J(N,S,$,W,G,X,K,Z,rt){N.save(),N.translate(S,$),N.rotate(X),N.scale(W,G),N.arc(0,0,1,K,Z,rt),N.restore()}function it(N){var S=N.angle*(Math.PI/180),$=N.spread*(Math.PI/180);return{x:N.x,y:N.y,wobble:Math.random()*10,wobbleSpeed:Math.min(.11,Math.random()*.1+.05),velocity:N.startVelocity*.5+Math.random()*N.startVelocity,angle2D:-S+(.5*$-Math.random()*$),tiltAngle:(Math.random()*(.75-.25)+.25)*Math.PI,color:N.color,shape:N.shape,tick:0,totalTicks:N.ticks,decay:N.decay,drift:N.drift,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:N.gravity*3,ovalScalar:.6,scalar:N.scalar,flat:N.flat}}function wt(N,S){S.x+=Math.cos(S.angle2D)*S.velocity+S.drift,S.y+=Math.sin(S.angle2D)*S.velocity+S.gravity,S.velocity*=S.decay,S.flat?(S.wobble=0,S.wobbleX=S.x+10*S.scalar,S.wobbleY=S.y+10*S.scalar,S.tiltSin=0,S.tiltCos=0,S.random=1):(S.wobble+=S.wobbleSpeed,S.wobbleX=S.x+10*S.scalar*Math.cos(S.wobble),S.wobbleY=S.y+10*S.scalar*Math.sin(S.wobble),S.tiltAngle+=.1,S.tiltSin=Math.sin(S.tiltAngle),S.tiltCos=Math.cos(S.tiltAngle),S.random=Math.random()+2);var $=S.tick++/S.totalTicks,W=S.x+S.random*S.tiltCos,G=S.y+S.random*S.tiltSin,X=S.wobbleX+S.random*S.tiltCos,K=S.wobbleY+S.random*S.tiltSin;if(N.fillStyle="rgba("+S.color.r+", "+S.color.g+", "+S.color.b+", "+(1-$)+")",N.beginPath(),s&&S.shape.type==="path"&&typeof S.shape.path=="string"&&Array.isArray(S.shape.matrix))N.fill(vt(S.shape.path,S.shape.matrix,S.x,S.y,Math.abs(X-W)*.1,Math.abs(K-G)*.1,Math.PI/10*S.wobble));else if(S.shape.type==="bitmap"){var Z=Math.PI/10*S.wobble,rt=Math.abs(X-W)*.1,ft=Math.abs(K-G)*.1,Pt=S.shape.bitmap.width*S.scalar,ht=S.shape.bitmap.height*S.scalar,pt=new DOMMatrix([Math.cos(Z)*rt,Math.sin(Z)*rt,-Math.sin(Z)*ft,Math.cos(Z)*ft,S.x,S.y]);pt.multiplySelf(new DOMMatrix(S.shape.matrix));var Ft=N.createPattern(h.transform(S.shape.bitmap),"no-repeat");Ft.setTransform(pt),N.globalAlpha=1-$,N.fillStyle=Ft,N.fillRect(S.x-Pt/2,S.y-ht/2,Pt,ht),N.globalAlpha=1}else if(S.shape==="circle")N.ellipse?N.ellipse(S.x,S.y,Math.abs(X-W)*S.ovalScalar,Math.abs(K-G)*S.ovalScalar,Math.PI/10*S.wobble,0,2*Math.PI):J(N,S.x,S.y,Math.abs(X-W)*S.ovalScalar,Math.abs(K-G)*S.ovalScalar,Math.PI/10*S.wobble,0,2*Math.PI);else if(S.shape==="star")for(var st=Math.PI/2*3,l=4*S.scalar,c=8*S.scalar,p=S.x,E=S.y,C=5,R=Math.PI/C;C--;)p=S.x+Math.cos(st)*c,E=S.y+Math.sin(st)*c,N.lineTo(p,E),st+=R,p=S.x+Math.cos(st)*l,E=S.y+Math.sin(st)*l,N.lineTo(p,E),st+=R;else N.moveTo(Math.floor(S.x),Math.floor(S.y)),N.lineTo(Math.floor(S.wobbleX),Math.floor(G)),N.lineTo(Math.floor(X),Math.floor(K)),N.lineTo(Math.floor(W),Math.floor(S.wobbleY));return N.closePath(),N.fill(),S.tick<S.totalTicks}function At(N,S,$,W,G){var X=S.slice(),K=N.getContext("2d"),Z,rt,ft=f(function(Pt){function ht(){Z=rt=null,K.clearRect(0,0,W.width,W.height),h.clear(),G(),Pt()}function pt(){r&&!(W.width===i.width&&W.height===i.height)&&(W.width=N.width=i.width,W.height=N.height=i.height),!W.width&&!W.height&&($(N),W.width=N.width,W.height=N.height),K.clearRect(0,0,W.width,W.height),X=X.filter(function(Ft){return wt(K,Ft)}),X.length?Z=d.frame(pt):ht()}Z=d.frame(pt),rt=ht});return{addFettis:function(Pt){return X=X.concat(Pt),ft},canvas:N,promise:ft,reset:function(){Z&&d.cancel(Z),rt&&rt()}}}function It(N,S){var $=!N,W=!!D(S||{},"resize"),G=!1,X=D(S,"disableForReducedMotion",Boolean),K=o&&!!D(S||{},"useWorker"),Z=K?b():null,rt=$?Mt:U,ft=N&&Z?!!N.__confetti_initialized:!1,Pt=typeof matchMedia=="function"&&matchMedia("(prefers-reduced-motion)").matches,ht;function pt(st,l,c){for(var p=D(st,"particleCount",M),E=D(st,"angle",Number),C=D(st,"spread",Number),R=D(st,"startVelocity",Number),F=D(st,"decay",Number),gt=D(st,"gravity",Number),jt=D(st,"drift",Number),yt=D(st,"colors",V),Rt=D(st,"ticks",Number),$t=D(st,"shapes"),Ue=D(st,"scalar"),gn=!!D(st,"flat"),Ke=Lt(st),br=p,$n=[],fi=N.width*Ke.x,hi=N.height*Ke.y;br--;)$n.push(it({x:fi,y:hi,angle:E,spread:C,startVelocity:R,color:yt[br%yt.length],shape:$t[H(0,$t.length)],ticks:Rt,decay:F,gravity:gt,drift:jt,scalar:Ue,flat:gn}));return ht?ht.addFettis($n):(ht=At(N,$n,rt,l,c),ht.promise)}function Ft(st){var l=X||D(st,"disableForReducedMotion",Boolean),c=D(st,"zIndex",Number);if(l&&Pt)return f(function(R){R()});$&&ht?N=ht.canvas:$&&!N&&(N=et(c),document.body.appendChild(N)),W&&!ft&&rt(N);var p={width:N.width,height:N.height};Z&&!ft&&Z.init(N),ft=!0,Z&&(N.__confetti_initialized=!0);function E(){if(Z){var R={getBoundingClientRect:function(){if(!$)return N.getBoundingClientRect()}};rt(R),Z.postMessage({resize:{width:R.width,height:R.height}});return}p.width=p.height=null}function C(){ht=null,W&&(G=!1,e.removeEventListener("resize",E)),$&&N&&(document.body.contains(N)&&document.body.removeChild(N),N=null,ft=!1)}return W&&!G&&(G=!0,e.addEventListener("resize",E,!1)),Z?Z.fire(st,p,C):pt(st,p,C)}return Ft.reset=function(){Z&&Z.reset(),ht&&ht.reset()},Ft}var g;function qt(){return g||(g=It(null,{useWorker:!0,resize:!0})),g}function vt(N,S,$,W,G,X,K){var Z=new Path2D(N),rt=new Path2D;rt.addPath(Z,new DOMMatrix(S));var ft=new Path2D;return ft.addPath(rt,new DOMMatrix([Math.cos(K)*G,Math.sin(K)*G,-Math.sin(K)*X,Math.cos(K)*X,$,W])),ft}function Yt(N){if(!s)throw new Error("path confetti are not supported in this browser");var S,$;typeof N=="string"?S=N:(S=N.path,$=N.matrix);var W=new Path2D(S),G=document.createElement("canvas"),X=G.getContext("2d");if(!$){for(var K=1e3,Z=K,rt=K,ft=0,Pt=0,ht,pt,Ft=0;Ft<K;Ft+=2)for(var st=0;st<K;st+=2)X.isPointInPath(W,Ft,st,"nonzero")&&(Z=Math.min(Z,Ft),rt=Math.min(rt,st),ft=Math.max(ft,Ft),Pt=Math.max(Pt,st));ht=ft-Z,pt=Pt-rt;var l=10,c=Math.min(l/ht,l/pt);$=[c,0,0,c,-Math.round(ht/2+Z)*c,-Math.round(pt/2+rt)*c]}return{type:"path",path:S,matrix:$}}function ot(N){var S,$=1,W="#000000",G='"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "EmojiOne Color", "Android Emoji", "Twemoji Mozilla", "system emoji", sans-serif';typeof N=="string"?S=N:(S=N.text,$="scalar"in N?N.scalar:$,G="fontFamily"in N?N.fontFamily:G,W="color"in N?N.color:W);var X=10*$,K=""+X+"px "+G,Z=new OffscreenCanvas(X,X),rt=Z.getContext("2d");rt.font=K;var ft=rt.measureText(S),Pt=Math.ceil(ft.actualBoundingBoxRight+ft.actualBoundingBoxLeft),ht=Math.ceil(ft.actualBoundingBoxAscent+ft.actualBoundingBoxDescent),pt=2,Ft=ft.actualBoundingBoxLeft+pt,st=ft.actualBoundingBoxAscent+pt;Pt+=pt+pt,ht+=pt+pt,Z=new OffscreenCanvas(Pt,ht),rt=Z.getContext("2d"),rt.font=K,rt.fillStyle=W,rt.fillText(S,Ft,st);var l=1/$;return{type:"bitmap",bitmap:Z.transferToImageBitmap(),matrix:[l,0,0,l,-Pt*l/2,-ht*l/2]}}n.exports=function(){return qt().apply(this,arguments)},n.exports.reset=function(){qt().reset()},n.exports.create=It,n.exports.shapeFromPath=Yt,n.exports.shapeFromText=ot})(function(){return typeof window<"u"?window:typeof self<"u"?self:this||{}}(),Gu,!1);var Ox=Gu.exports,PO=Gu.exports.create,Tx=class{static DEFAULTS={scalar:1.4,zIndex:1e4,shapes:["circle","circle","square"],colors:["#f51c8f","#2179e2","#d52dc8","#01a9d9","#78ff44","#fdff6a"]};static async basic(){await this.fire({particleCount:100,spread:70,origin:{y:.6}})}static async leftRight(t=100){let e=[],n=Date.now()+2e3,r=()=>{e.push(this.fire({angle:60,spread:55,origin:{x:0}}),this.fire({angle:120,spread:55,origin:{x:1}})),Date.now()<n&&t>0&&(requestAnimationFrame(r),t--)};r(),await Promise.all(e)}static async realistic(){await Promise.all([this.realisticFire(.25,{spread:26,startVelocity:55}),this.realisticFire(.2,{spread:60}),this.realisticFire(.35,{spread:100,decay:.91,scalar:.8}),this.realisticFire(.1,{spread:120,startVelocity:25,decay:.92,scalar:1.2}),this.realisticFire(.1,{spread:120,startVelocity:45})])}static async fire(t){Object.assign(t,this.DEFAULTS,t),t.particleCount=t.particleCount??this.DEFAULTS.colors.length,await Ox(t)}static async realisticFire(t,e){let n={origin:{y:.7}};await this.fire(Object.assign({},n,e,{particleCount:Math.floor(200*t)}))}},Cx=class Ea{constructor(e){this.sanitizer=e}transform(e){return e?this.sanitizer.bypassSecurityTrustHtml(e):""}static \u0275fac=function(e){return new(e||Ea)(xo(Tp,16))};static \u0275pipe=Eu({name:"safeHtml",type:Ea,pure:!0})},Ax=(t,e)=>e.minValue;function Rx(t,e){if(t&1&&(Qt(0,"li",6)(1,"div",7),cn(2,"div",8),$r(3,"cooeeCurrency"),$r(4,"safeHtml"),cn(5,"img",9),Qt(6,"div",10),Ar(7),ve()()()),t&2){let n=e.$implicit,r=ye(2);Iu("left",n.calculatedAlignment+"%"),ne(2),ln("innerHTML",ro(4,7,ro(3,5,n.minValue)),Ed),ne(3),ln("src",r.getIconURL(n),wn),ne(2),xu(n.label)}}function kx(t,e){if(t&1&&(Tu(0)(1),cn(2,"div",0),$r(3,"cooeeDynamicVariables"),$r(4,"safeHtml"),Qt(5,"div",1)(6,"ul",2)(7,"div",3),cn(8,"div",4),ve(),Vr(9,Rx,8,9,"li",5,Ax),ve()()),t&2){let n=ye(),r=n.calculatedState(),i=r.nextMilestone?r.nextMilestone.reachingText:r.lastMilestone.reachedText;ne(2),ln("innerHTML",ro(4,6,G1(3,3,i,n.localDynamicVariables())),Ed),ne(6),Iu("width",r.cartValuePercentage+"%"),ne(),Fr(r.milestones)}}var Dx=class Sa{constructor(e){this.elementRef=e,this.elementRef.nativeElement.update=this.update.bind(this)}cart;localDynamicVariables=Mi({});calculatedState=Mi({});_engagementTrigger=Mi(null);set engagementTrigger(e){this._engagementTrigger.set(e)}ngOnInit(){be.debug("Init progressbar"),this.calculateMilestonesSilently()}ngOnDestroy(){be.debug("Destroying progressbar")}update(){this.calculateMilestonesSilently()}getIconURL(e){return e.rewardType===ss.MilestoneRewardType.FREE_SHIPPING?"https://img.icons8.com/ios-filled/50/FFFFFF/free-shipping.png":e.rewardType===ss.MilestoneRewardType.DISCOUNT?"https://img.icons8.com/ios-glyphs/30/FFFFFF/sale-price-tag.png":e.rewardType===ss.MilestoneRewardType.FREE_AUTO_GIFT?"https://img.icons8.com/ios-filled/50/FFFFFF/gift--v1.png":""}calculateMilestonesSilently(){this.calculateMilestones().catch(e=>be.error(e))}async calculateMilestones(){let e=this._engagementTrigger();if(!e?.progressBarConfig?.milestones?.length){be.warn("Milestones not available in progress bar config",e);return}let n=await this.cart.getNormalisedCart(),r=e.progressBarConfig,i=r.milestones.at(-1),o=i.minValue+Math.floor(i.minValue*5/100),s=n.originalAmount,a=Math.min(s,o),u=100/r.milestones.length,f=u;for(let _ of r.milestones)_.calculatedAlignment=f,f+=u;let h=this.calculateTrackedProgress(a,r.milestones);be.debug("Cart value:",s,`, percentage: ${h}%`),this.celebrate(e,s);let d={milestonesReady:!0,cartValuePercentage:h,milestones:r.milestones},b=r.milestones.find(_=>_.minValue>s);if(b){this.localDynamicVariables.set({amount_left:zu.formatCurrency(b.minValue-s)}),d.nextMilestone=b,this.calculatedState.set(d);return}d.lastMilestone=i,this.calculatedState.set(d)}celebrate(e,n){let r=[...e.progressBarConfig.milestones].reverse().find(o=>o.minValue<n);if(!r)return;let i=`lc/en/${e.shortID}/${r.minValue}`;sessionStorage.getItem(i)||(sessionStorage.setItem(i,"1"),Tx.realistic())}calculateTrackedProgress(e,n){if(e<=n[0].minValue)return e/n[0].minValue*n[0].calculatedAlignment;if(e>=n[n.length-1].minValue)return 100;for(let r=0;r<n.length-1;r++){let i=n[r].minValue,o=n[r+1].minValue,s=n[r].calculatedAlignment,a=n[r+1].calculatedAlignment;if(e>=i&&e<=o)return(e-i)/(o-i)*(a-s)+s}return 0}static \u0275fac=function(e){return new(e||Sa)(xo(td))};static \u0275cmp=rp({type:Sa,selectors:[["cooee-progressbar"]],inputs:{cart:"cart",engagementTrigger:"engagementTrigger"},decls:1,vars:1,consts:[["id","lc-heading",1,"lc:font-medium","lc:text-center","lc:text-[12px]","lc-primary-text",3,"innerHTML"],[1,"lc:mt-4","lc:w-[95%]"],["id","lc-milestone-list",1,"lc:flex","lc:items-center","lc:relative","lc:text-[10px]","lc:font-medium"],["id","lc-untracked-path",1,"lc:w-full","lc:bg-gray-200","lc:h-1","lc:absolute","lc-progress-rail"],["id","lc-tracked-path",1,"lc:bg-green-700","lc:h-full","lc:block!"],["id","lc-milestone-list-item",1,"lc:relative","lc:flex","lc:flex-col","lc:items-center","lc:h-[75px]",3,"left"],["id","lc-milestone-list-item",1,"lc:relative","lc:flex","lc:flex-col","lc:items-center","lc:h-[75px]"],[1,"lc:flex","lc:flex-col","lc:items-center","lc:justify-between","lc:absolute","lc:h-full","lc:w-[100px]"],["id","lc-milestone-value",1,"lc-milestone-value",3,"innerHTML"],["width","20","height","20","id","lc-milestone-icon","alt","milestone icon",1,"lc-milestone-icon","lc:bg-green-700",3,"src"],["id","lc-milestone-label",1,"lc="]],template:function(e,n){e&1&&ip(0,kx,11,8),e&2&&N1(n.calculatedState().milestonesReady?0:-1)},dependencies:[xx,Cx,ng],styles:["[_nghost-%COMP%]{display:block;padding:10px;background:linear-gradient(0deg,rgba(44,135,74,.1) 0%,transparent 100%)}.lc-milestone-icon[_ngcontent-%COMP%]{padding:5px;border-radius:1000px}.lc-progress-rail[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{transition:width .5s ease-in-out}"]})};function Lx(t,e){return e={exports:{}},t(e,e.exports),e.exports}var Mx=Bx,Px=Fx,jx=zx,De=[],me=[],Ux=typeof Uint8Array<"u"?Uint8Array:Array,fs="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(yn=0,Zc=fs.length;yn<Zc;++yn)De[yn]=fs[yn],me[fs.charCodeAt(yn)]=yn;var yn,Zc;me[45]=62;me[95]=63;function ig(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");n===-1&&(n=e);var r=n===e?0:4-n%4;return[n,r]}function Bx(t){var e=ig(t),n=e[0],r=e[1];return(n+r)*3/4-r}function Vx(t,e,n){return(e+n)*3/4-n}function Fx(t){var e,n=ig(t),r=n[0],i=n[1],o=new Ux(Vx(t,r,i)),s=0,a=i>0?r-4:r,u;for(u=0;u<a;u+=4)e=me[t.charCodeAt(u)]<<18|me[t.charCodeAt(u+1)]<<12|me[t.charCodeAt(u+2)]<<6|me[t.charCodeAt(u+3)],o[s++]=e>>16&255,o[s++]=e>>8&255,o[s++]=e&255;return i===2&&(e=me[t.charCodeAt(u)]<<2|me[t.charCodeAt(u+1)]>>4,o[s++]=e&255),i===1&&(e=me[t.charCodeAt(u)]<<10|me[t.charCodeAt(u+1)]<<4|me[t.charCodeAt(u+2)]>>2,o[s++]=e>>8&255,o[s++]=e&255),o}function $x(t){return De[t>>18&63]+De[t>>12&63]+De[t>>6&63]+De[t&63]}function Hx(t,e,n){for(var r,i=[],o=e;o<n;o+=3)r=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(t[o+2]&255),i.push($x(r));return i.join("")}function zx(t){for(var e,n=t.length,r=n%3,i=[],o=16383,s=0,a=n-r;s<a;s+=o)i.push(Hx(t,s,s+o>a?a:s+o));return r===1?(e=t[n-1],i.push(De[e>>2]+De[e<<4&63]+"==")):r===2&&(e=(t[n-2]<<8)+t[n-1],i.push(De[e>>10]+De[e>>4&63]+De[e<<2&63]+"=")),i.join("")}var hs={byteLength:Mx,toByteArray:Px,fromByteArray:jx},qx=function(t,e,n,r,i){var o,s,a=i*8-r-1,u=(1<<a)-1,f=u>>1,h=-7,d=n?i-1:0,b=n?-1:1,_=t[e+d];for(d+=b,o=_&(1<<-h)-1,_>>=-h,h+=a;h>0;o=o*256+t[e+d],d+=b,h-=8);for(s=o&(1<<-h)-1,o>>=-h,h+=r;h>0;s=s*256+t[e+d],d+=b,h-=8);if(o===0)o=1-f;else{if(o===u)return s?NaN:(_?-1:1)*(1/0);s=s+Math.pow(2,r),o=o-f}return(_?-1:1)*s*Math.pow(2,o-r)},Gx=function(t,e,n,r,i,o){var s,a,u,f=o*8-i-1,h=(1<<f)-1,d=h>>1,b=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,_=r?0:o-1,w=r?1:-1,T=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=h):(s=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-s))<1&&(s--,u*=2),s+d>=1?e+=b/u:e+=b*Math.pow(2,1-d),e*u>=2&&(s++,u/=2),s+d>=h?(a=0,s=h):s+d>=1?(a=(e*u-1)*Math.pow(2,i),s=s+d):(a=e*Math.pow(2,d-1)*Math.pow(2,i),s=0));i>=8;t[n+_]=a&255,_+=w,a/=256,i-=8);for(s=s<<i|a,f+=i;f>0;t[n+_]=s&255,_+=w,s/=256,f-=8);t[n+_-w]|=T*128},zn={read:qx,write:Gx},ko=Lx(function(t,e){var n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=s,e.SlowBuffer=M,e.INSPECT_MAX_BYTES=50;var r=2147483647;e.kMaxLength=r,s.TYPED_ARRAY_SUPPORT=i(),!s.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function i(){try{var l=new Uint8Array(1),c={foo:function(){return 42}};return Object.setPrototypeOf(c,Uint8Array.prototype),Object.setPrototypeOf(l,c),l.foo()===42}catch{return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function o(l){if(l>r)throw new RangeError('The value "'+l+'" is invalid for option "size"');var c=new Uint8Array(l);return Object.setPrototypeOf(c,s.prototype),c}function s(l,c,p){if(typeof l=="number"){if(typeof c=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return h(l)}return a(l,c,p)}s.poolSize=8192;function a(l,c,p){if(typeof l=="string")return d(l,c);if(ArrayBuffer.isView(l))return _(l);if(l==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+babelHelpers.typeof(l));if(pt(l,ArrayBuffer)||l&&pt(l.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(pt(l,SharedArrayBuffer)||l&&pt(l.buffer,SharedArrayBuffer)))return w(l,c,p);if(typeof l=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var E=l.valueOf&&l.valueOf();if(E!=null&&E!==l)return s.from(E,c,p);var C=T(l);if(C)return C;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof l[Symbol.toPrimitive]=="function")return s.from(l[Symbol.toPrimitive]("string"),c,p);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+babelHelpers.typeof(l))}s.from=function(l,c,p){return a(l,c,p)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function u(l){if(typeof l!="number")throw new TypeError('"size" argument must be of type number');if(l<0)throw new RangeError('The value "'+l+'" is invalid for option "size"')}function f(l,c,p){return u(l),l<=0?o(l):c!==void 0?typeof p=="string"?o(l).fill(c,p):o(l).fill(c):o(l)}s.alloc=function(l,c,p){return f(l,c,p)};function h(l){return u(l),o(l<0?0:D(l)|0)}s.allocUnsafe=function(l){return h(l)},s.allocUnsafeSlow=function(l){return h(l)};function d(l,c){if((typeof c!="string"||c==="")&&(c="utf8"),!s.isEncoding(c))throw new TypeError("Unknown encoding: "+c);var p=H(l,c)|0,E=o(p),C=E.write(l,c);return C!==p&&(E=E.slice(0,C)),E}function b(l){for(var c=l.length<0?0:D(l.length)|0,p=o(c),E=0;E<c;E+=1)p[E]=l[E]&255;return p}function _(l){if(pt(l,Uint8Array)){var c=new Uint8Array(l);return w(c.buffer,c.byteOffset,c.byteLength)}return b(l)}function w(l,c,p){if(c<0||l.byteLength<c)throw new RangeError('"offset" is outside of buffer bounds');if(l.byteLength<c+(p||0))throw new RangeError('"length" is outside of buffer bounds');var E;return c===void 0&&p===void 0?E=new Uint8Array(l):p===void 0?E=new Uint8Array(l,c):E=new Uint8Array(l,c,p),Object.setPrototypeOf(E,s.prototype),E}function T(l){if(s.isBuffer(l)){var c=D(l.length)|0,p=o(c);return p.length===0||l.copy(p,0,0,c),p}if(l.length!==void 0)return typeof l.length!="number"||Ft(l.length)?o(0):b(l);if(l.type==="Buffer"&&Array.isArray(l.data))return b(l.data)}function D(l){if(l>=r)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return l|0}function M(l){return+l!=l&&(l=0),s.alloc(+l)}s.isBuffer=function(l){return l!=null&&l._isBuffer===!0&&l!==s.prototype},s.compare=function(l,c){if(pt(l,Uint8Array)&&(l=s.from(l,l.offset,l.byteLength)),pt(c,Uint8Array)&&(c=s.from(c,c.offset,c.byteLength)),!s.isBuffer(l)||!s.isBuffer(c))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(l===c)return 0;for(var p=l.length,E=c.length,C=0,R=Math.min(p,E);C<R;++C)if(l[C]!==c[C]){p=l[C],E=c[C];break}return p<E?-1:E<p?1:0},s.isEncoding=function(l){switch(String(l).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(l,c){if(!Array.isArray(l))throw new TypeError('"list" argument must be an Array of Buffers');if(l.length===0)return s.alloc(0);var p;if(c===void 0)for(c=0,p=0;p<l.length;++p)c+=l[p].length;var E=s.allocUnsafe(c),C=0;for(p=0;p<l.length;++p){var R=l[p];if(pt(R,Uint8Array))C+R.length>E.length?s.from(R).copy(E,C):Uint8Array.prototype.set.call(E,R,C);else if(s.isBuffer(R))R.copy(E,C);else throw new TypeError('"list" argument must be an Array of Buffers');C+=R.length}return E};function H(l,c){if(s.isBuffer(l))return l.length;if(ArrayBuffer.isView(l)||pt(l,ArrayBuffer))return l.byteLength;if(typeof l!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+babelHelpers.typeof(l));var p=l.length,E=arguments.length>2&&arguments[2]===!0;if(!E&&p===0)return 0;for(var C=!1;;)switch(c){case"ascii":case"latin1":case"binary":return p;case"utf8":case"utf-8":return Z(l).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return p*2;case"hex":return p>>>1;case"base64":return Pt(l).length;default:if(C)return E?-1:Z(l).length;c=(""+c).toLowerCase(),C=!0}}s.byteLength=H;function Y(l,c,p){var E=!1;if((c===void 0||c<0)&&(c=0),c>this.length||((p===void 0||p>this.length)&&(p=this.length),p<=0)||(p>>>=0,c>>>=0,p<=c))return"";for(l||(l="utf8");;)switch(l){case"hex":return Yt(this,c,p);case"utf8":case"utf-8":return At(this,c,p);case"ascii":return qt(this,c,p);case"latin1":case"binary":return vt(this,c,p);case"base64":return wt(this,c,p);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ot(this,c,p);default:if(E)throw new TypeError("Unknown encoding: "+l);l=(l+"").toLowerCase(),E=!0}}s.prototype._isBuffer=!0;function V(l,c,p){var E=l[c];l[c]=l[p],l[p]=E}s.prototype.swap16=function(){var l=this.length;if(l%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var c=0;c<l;c+=2)V(this,c,c+1);return this},s.prototype.swap32=function(){var l=this.length;if(l%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var c=0;c<l;c+=4)V(this,c,c+3),V(this,c+1,c+2);return this},s.prototype.swap64=function(){var l=this.length;if(l%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var c=0;c<l;c+=8)V(this,c,c+7),V(this,c+1,c+6),V(this,c+2,c+5),V(this,c+3,c+4);return this},s.prototype.toString=function(){var l=this.length;return l===0?"":arguments.length===0?At(this,0,l):Y.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(l){if(!s.isBuffer(l))throw new TypeError("Argument must be a Buffer");return this===l?!0:s.compare(this,l)===0},s.prototype.inspect=function(){var l="",c=e.INSPECT_MAX_BYTES;return l=this.toString("hex",0,c).replace(/(.{2})/g,"$1 ").trim(),this.length>c&&(l+=" ... "),"<Buffer "+l+">"},n&&(s.prototype[n]=s.prototype.inspect),s.prototype.compare=function(l,c,p,E,C){if(pt(l,Uint8Array)&&(l=s.from(l,l.offset,l.byteLength)),!s.isBuffer(l))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+babelHelpers.typeof(l));if(c===void 0&&(c=0),p===void 0&&(p=l?l.length:0),E===void 0&&(E=0),C===void 0&&(C=this.length),c<0||p>l.length||E<0||C>this.length)throw new RangeError("out of range index");if(E>=C&&c>=p)return 0;if(E>=C)return-1;if(c>=p)return 1;if(c>>>=0,p>>>=0,E>>>=0,C>>>=0,this===l)return 0;for(var R=C-E,F=p-c,gt=Math.min(R,F),jt=this.slice(E,C),yt=l.slice(c,p),Rt=0;Rt<gt;++Rt)if(jt[Rt]!==yt[Rt]){R=jt[Rt],F=yt[Rt];break}return R<F?-1:F<R?1:0};function Q(l,c,p,E,C){if(l.length===0)return-1;if(typeof p=="string"?(E=p,p=0):p>2147483647?p=2147483647:p<-2147483648&&(p=-2147483648),p=+p,Ft(p)&&(p=C?0:l.length-1),p<0&&(p=l.length+p),p>=l.length){if(C)return-1;p=l.length-1}else if(p<0)if(C)p=0;else return-1;if(typeof c=="string"&&(c=s.from(c,E)),s.isBuffer(c))return c.length===0?-1:Lt(l,c,p,E,C);if(typeof c=="number")return c=c&255,typeof Uint8Array.prototype.indexOf=="function"?C?Uint8Array.prototype.indexOf.call(l,c,p):Uint8Array.prototype.lastIndexOf.call(l,c,p):Lt(l,[c],p,E,C);throw new TypeError("val must be string, number or Buffer")}function Lt(l,c,p,E,C){var R=1,F=l.length,gt=c.length;if(E!==void 0&&(E=String(E).toLowerCase(),E==="ucs2"||E==="ucs-2"||E==="utf16le"||E==="utf-16le")){if(l.length<2||c.length<2)return-1;R=2,F/=2,gt/=2,p/=2}function jt(gn,Ke){return R===1?gn[Ke]:gn.readUInt16BE(Ke*R)}var yt;if(C){var Rt=-1;for(yt=p;yt<F;yt++)if(jt(l,yt)===jt(c,Rt===-1?0:yt-Rt)){if(Rt===-1&&(Rt=yt),yt-Rt+1===gt)return Rt*R}else Rt!==-1&&(yt-=yt-Rt),Rt=-1}else for(p+gt>F&&(p=F-gt),yt=p;yt>=0;yt--){for(var $t=!0,Ue=0;Ue<gt;Ue++)if(jt(l,yt+Ue)!==jt(c,Ue)){$t=!1;break}if($t)return yt}return-1}s.prototype.includes=function(l,c,p){return this.indexOf(l,c,p)!==-1},s.prototype.indexOf=function(l,c,p){return Q(this,l,c,p,!0)},s.prototype.lastIndexOf=function(l,c,p){return Q(this,l,c,p,!1)};function Mt(l,c,p,E){p=Number(p)||0;var C=l.length-p;E?(E=Number(E),E>C&&(E=C)):E=C;var R=c.length;E>R/2&&(E=R/2);for(var F=0;F<E;++F){var gt=parseInt(c.substr(F*2,2),16);if(Ft(gt))return F;l[p+F]=gt}return F}function U(l,c,p,E){return ht(Z(c,l.length-p),l,p,E)}function et(l,c,p,E){return ht(rt(c),l,p,E)}function J(l,c,p,E){return ht(Pt(c),l,p,E)}function it(l,c,p,E){return ht(ft(c,l.length-p),l,p,E)}s.prototype.write=function(l,c,p,E){if(c===void 0)E="utf8",p=this.length,c=0;else if(p===void 0&&typeof c=="string")E=c,p=this.length,c=0;else if(isFinite(c))c=c>>>0,isFinite(p)?(p=p>>>0,E===void 0&&(E="utf8")):(E=p,p=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var C=this.length-c;if((p===void 0||p>C)&&(p=C),l.length>0&&(p<0||c<0)||c>this.length)throw new RangeError("Attempt to write outside buffer bounds");E||(E="utf8");for(var R=!1;;)switch(E){case"hex":return Mt(this,l,c,p);case"utf8":case"utf-8":return U(this,l,c,p);case"ascii":case"latin1":case"binary":return et(this,l,c,p);case"base64":return J(this,l,c,p);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return it(this,l,c,p);default:if(R)throw new TypeError("Unknown encoding: "+E);E=(""+E).toLowerCase(),R=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function wt(l,c,p){return c===0&&p===l.length?hs.fromByteArray(l):hs.fromByteArray(l.slice(c,p))}function At(l,c,p){p=Math.min(l.length,p);for(var E=[],C=c;C<p;){var R=l[C],F=null,gt=R>239?4:R>223?3:R>191?2:1;if(C+gt<=p){var jt,yt,Rt,$t;switch(gt){case 1:R<128&&(F=R);break;case 2:jt=l[C+1],(jt&192)===128&&($t=(R&31)<<6|jt&63,$t>127&&(F=$t));break;case 3:jt=l[C+1],yt=l[C+2],(jt&192)===128&&(yt&192)===128&&($t=(R&15)<<12|(jt&63)<<6|yt&63,$t>2047&&($t<55296||$t>57343)&&(F=$t));break;case 4:jt=l[C+1],yt=l[C+2],Rt=l[C+3],(jt&192)===128&&(yt&192)===128&&(Rt&192)===128&&($t=(R&15)<<18|(jt&63)<<12|(yt&63)<<6|Rt&63,$t>65535&&$t<1114112&&(F=$t))}}F===null?(F=65533,gt=1):F>65535&&(F-=65536,E.push(F>>>10&1023|55296),F=56320|F&1023),E.push(F),C+=gt}return g(E)}var It=4096;function g(l){var c=l.length;if(c<=It)return String.fromCharCode.apply(String,l);for(var p="",E=0;E<c;)p+=String.fromCharCode.apply(String,l.slice(E,E+=It));return p}function qt(l,c,p){var E="";p=Math.min(l.length,p);for(var C=c;C<p;++C)E+=String.fromCharCode(l[C]&127);return E}function vt(l,c,p){var E="";p=Math.min(l.length,p);for(var C=c;C<p;++C)E+=String.fromCharCode(l[C]);return E}function Yt(l,c,p){var E=l.length;(!c||c<0)&&(c=0),(!p||p<0||p>E)&&(p=E);for(var C="",R=c;R<p;++R)C+=st[l[R]];return C}function ot(l,c,p){for(var E=l.slice(c,p),C="",R=0;R<E.length-1;R+=2)C+=String.fromCharCode(E[R]+E[R+1]*256);return C}s.prototype.slice=function(l,c){var p=this.length;l=~~l,c=c===void 0?p:~~c,l<0?(l+=p,l<0&&(l=0)):l>p&&(l=p),c<0?(c+=p,c<0&&(c=0)):c>p&&(c=p),c<l&&(c=l);var E=this.subarray(l,c);return Object.setPrototypeOf(E,s.prototype),E};function N(l,c,p){if(l%1!==0||l<0)throw new RangeError("offset is not uint");if(l+c>p)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(l,c,p){l=l>>>0,c=c>>>0,p||N(l,c,this.length);for(var E=this[l],C=1,R=0;++R<c&&(C*=256);)E+=this[l+R]*C;return E},s.prototype.readUintBE=s.prototype.readUIntBE=function(l,c,p){l=l>>>0,c=c>>>0,p||N(l,c,this.length);for(var E=this[l+--c],C=1;c>0&&(C*=256);)E+=this[l+--c]*C;return E},s.prototype.readUint8=s.prototype.readUInt8=function(l,c){return l=l>>>0,c||N(l,1,this.length),this[l]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(l,c){return l=l>>>0,c||N(l,2,this.length),this[l]|this[l+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(l,c){return l=l>>>0,c||N(l,2,this.length),this[l]<<8|this[l+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(l,c){return l=l>>>0,c||N(l,4,this.length),(this[l]|this[l+1]<<8|this[l+2]<<16)+this[l+3]*16777216},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(l,c){return l=l>>>0,c||N(l,4,this.length),this[l]*16777216+(this[l+1]<<16|this[l+2]<<8|this[l+3])},s.prototype.readIntLE=function(l,c,p){l=l>>>0,c=c>>>0,p||N(l,c,this.length);for(var E=this[l],C=1,R=0;++R<c&&(C*=256);)E+=this[l+R]*C;return C*=128,E>=C&&(E-=Math.pow(2,8*c)),E},s.prototype.readIntBE=function(l,c,p){l=l>>>0,c=c>>>0,p||N(l,c,this.length);for(var E=c,C=1,R=this[l+--E];E>0&&(C*=256);)R+=this[l+--E]*C;return C*=128,R>=C&&(R-=Math.pow(2,8*c)),R},s.prototype.readInt8=function(l,c){return l=l>>>0,c||N(l,1,this.length),this[l]&128?(255-this[l]+1)*-1:this[l]},s.prototype.readInt16LE=function(l,c){l=l>>>0,c||N(l,2,this.length);var p=this[l]|this[l+1]<<8;return p&32768?p|4294901760:p},s.prototype.readInt16BE=function(l,c){l=l>>>0,c||N(l,2,this.length);var p=this[l+1]|this[l]<<8;return p&32768?p|4294901760:p},s.prototype.readInt32LE=function(l,c){return l=l>>>0,c||N(l,4,this.length),this[l]|this[l+1]<<8|this[l+2]<<16|this[l+3]<<24},s.prototype.readInt32BE=function(l,c){return l=l>>>0,c||N(l,4,this.length),this[l]<<24|this[l+1]<<16|this[l+2]<<8|this[l+3]},s.prototype.readFloatLE=function(l,c){return l=l>>>0,c||N(l,4,this.length),zn.read(this,l,!0,23,4)},s.prototype.readFloatBE=function(l,c){return l=l>>>0,c||N(l,4,this.length),zn.read(this,l,!1,23,4)},s.prototype.readDoubleLE=function(l,c){return l=l>>>0,c||N(l,8,this.length),zn.read(this,l,!0,52,8)},s.prototype.readDoubleBE=function(l,c){return l=l>>>0,c||N(l,8,this.length),zn.read(this,l,!1,52,8)};function S(l,c,p,E,C,R){if(!s.isBuffer(l))throw new TypeError('"buffer" argument must be a Buffer instance');if(c>C||c<R)throw new RangeError('"value" argument is out of bounds');if(p+E>l.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(l,c,p,E){if(l=+l,c=c>>>0,p=p>>>0,!E){var C=Math.pow(2,8*p)-1;S(this,l,c,p,C,0)}var R=1,F=0;for(this[c]=l&255;++F<p&&(R*=256);)this[c+F]=l/R&255;return c+p},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(l,c,p,E){if(l=+l,c=c>>>0,p=p>>>0,!E){var C=Math.pow(2,8*p)-1;S(this,l,c,p,C,0)}var R=p-1,F=1;for(this[c+R]=l&255;--R>=0&&(F*=256);)this[c+R]=l/F&255;return c+p},s.prototype.writeUint8=s.prototype.writeUInt8=function(l,c,p){return l=+l,c=c>>>0,p||S(this,l,c,1,255,0),this[c]=l&255,c+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(l,c,p){return l=+l,c=c>>>0,p||S(this,l,c,2,65535,0),this[c]=l&255,this[c+1]=l>>>8,c+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(l,c,p){return l=+l,c=c>>>0,p||S(this,l,c,2,65535,0),this[c]=l>>>8,this[c+1]=l&255,c+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(l,c,p){return l=+l,c=c>>>0,p||S(this,l,c,4,4294967295,0),this[c+3]=l>>>24,this[c+2]=l>>>16,this[c+1]=l>>>8,this[c]=l&255,c+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(l,c,p){return l=+l,c=c>>>0,p||S(this,l,c,4,4294967295,0),this[c]=l>>>24,this[c+1]=l>>>16,this[c+2]=l>>>8,this[c+3]=l&255,c+4},s.prototype.writeIntLE=function(l,c,p,E){if(l=+l,c=c>>>0,!E){var C=Math.pow(2,8*p-1);S(this,l,c,p,C-1,-C)}var R=0,F=1,gt=0;for(this[c]=l&255;++R<p&&(F*=256);)l<0&&gt===0&&this[c+R-1]!==0&&(gt=1),this[c+R]=(l/F>>0)-gt&255;return c+p},s.prototype.writeIntBE=function(l,c,p,E){if(l=+l,c=c>>>0,!E){var C=Math.pow(2,8*p-1);S(this,l,c,p,C-1,-C)}var R=p-1,F=1,gt=0;for(this[c+R]=l&255;--R>=0&&(F*=256);)l<0&&gt===0&&this[c+R+1]!==0&&(gt=1),this[c+R]=(l/F>>0)-gt&255;return c+p},s.prototype.writeInt8=function(l,c,p){return l=+l,c=c>>>0,p||S(this,l,c,1,127,-128),l<0&&(l=255+l+1),this[c]=l&255,c+1},s.prototype.writeInt16LE=function(l,c,p){return l=+l,c=c>>>0,p||S(this,l,c,2,32767,-32768),this[c]=l&255,this[c+1]=l>>>8,c+2},s.prototype.writeInt16BE=function(l,c,p){return l=+l,c=c>>>0,p||S(this,l,c,2,32767,-32768),this[c]=l>>>8,this[c+1]=l&255,c+2},s.prototype.writeInt32LE=function(l,c,p){return l=+l,c=c>>>0,p||S(this,l,c,4,2147483647,-2147483648),this[c]=l&255,this[c+1]=l>>>8,this[c+2]=l>>>16,this[c+3]=l>>>24,c+4},s.prototype.writeInt32BE=function(l,c,p){return l=+l,c=c>>>0,p||S(this,l,c,4,2147483647,-2147483648),l<0&&(l=4294967295+l+1),this[c]=l>>>24,this[c+1]=l>>>16,this[c+2]=l>>>8,this[c+3]=l&255,c+4};function $(l,c,p,E,C,R){if(p+E>l.length)throw new RangeError("Index out of range");if(p<0)throw new RangeError("Index out of range")}function W(l,c,p,E,C){return c=+c,p=p>>>0,C||$(l,c,p,4),zn.write(l,c,p,E,23,4),p+4}s.prototype.writeFloatLE=function(l,c,p){return W(this,l,c,!0,p)},s.prototype.writeFloatBE=function(l,c,p){return W(this,l,c,!1,p)};function G(l,c,p,E,C){return c=+c,p=p>>>0,C||$(l,c,p,8),zn.write(l,c,p,E,52,8),p+8}s.prototype.writeDoubleLE=function(l,c,p){return G(this,l,c,!0,p)},s.prototype.writeDoubleBE=function(l,c,p){return G(this,l,c,!1,p)},s.prototype.copy=function(l,c,p,E){if(!s.isBuffer(l))throw new TypeError("argument should be a Buffer");if(p||(p=0),!E&&E!==0&&(E=this.length),c>=l.length&&(c=l.length),c||(c=0),E>0&&E<p&&(E=p),E===p||l.length===0||this.length===0)return 0;if(c<0)throw new RangeError("targetStart out of bounds");if(p<0||p>=this.length)throw new RangeError("Index out of range");if(E<0)throw new RangeError("sourceEnd out of bounds");E>this.length&&(E=this.length),l.length-c<E-p&&(E=l.length-c+p);var C=E-p;return this===l&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(c,p,E):Uint8Array.prototype.set.call(l,this.subarray(p,E),c),C},s.prototype.fill=function(l,c,p,E){if(typeof l=="string"){if(typeof c=="string"?(E=c,c=0,p=this.length):typeof p=="string"&&(E=p,p=this.length),E!==void 0&&typeof E!="string")throw new TypeError("encoding must be a string");if(typeof E=="string"&&!s.isEncoding(E))throw new TypeError("Unknown encoding: "+E);if(l.length===1){var C=l.charCodeAt(0);(E==="utf8"&&C<128||E==="latin1")&&(l=C)}}else typeof l=="number"?l=l&255:typeof l=="boolean"&&(l=Number(l));if(c<0||this.length<c||this.length<p)throw new RangeError("Out of range index");if(p<=c)return this;c=c>>>0,p=p===void 0?this.length:p>>>0,l||(l=0);var R;if(typeof l=="number")for(R=c;R<p;++R)this[R]=l;else{var F=s.isBuffer(l)?l:s.from(l,E),gt=F.length;if(gt===0)throw new TypeError('The value "'+l+'" is invalid for argument "value"');for(R=0;R<p-c;++R)this[R+c]=F[R%gt]}return this};var X=/[^+/0-9A-Za-z-_]/g;function K(l){if(l=l.split("=")[0],l=l.trim().replace(X,""),l.length<2)return"";for(;l.length%4!==0;)l=l+"=";return l}function Z(l,c){c=c||1/0;for(var p,E=l.length,C=null,R=[],F=0;F<E;++F){if(p=l.charCodeAt(F),p>55295&&p<57344){if(!C){if(p>56319){(c-=3)>-1&&R.push(239,191,189);continue}else if(F+1===E){(c-=3)>-1&&R.push(239,191,189);continue}C=p;continue}if(p<56320){(c-=3)>-1&&R.push(239,191,189),C=p;continue}p=(C-55296<<10|p-56320)+65536}else C&&(c-=3)>-1&&R.push(239,191,189);if(C=null,p<128){if((c-=1)<0)break;R.push(p)}else if(p<2048){if((c-=2)<0)break;R.push(p>>6|192,p&63|128)}else if(p<65536){if((c-=3)<0)break;R.push(p>>12|224,p>>6&63|128,p&63|128)}else if(p<1114112){if((c-=4)<0)break;R.push(p>>18|240,p>>12&63|128,p>>6&63|128,p&63|128)}else throw new Error("Invalid code point")}return R}function rt(l){for(var c=[],p=0;p<l.length;++p)c.push(l.charCodeAt(p)&255);return c}function ft(l,c){for(var p,E,C,R=[],F=0;F<l.length&&!((c-=2)<0);++F)p=l.charCodeAt(F),E=p>>8,C=p%256,R.push(C),R.push(E);return R}function Pt(l){return hs.toByteArray(K(l))}function ht(l,c,p,E){for(var C=0;C<E&&!(C+p>=c.length||C>=l.length);++C)c[C+p]=l[C];return C}function pt(l,c){return l instanceof c||l!=null&&l.constructor!=null&&l.constructor.name!=null&&l.constructor.name===c.name}function Ft(l){return l!==l}var st=function(){for(var l="0123456789abcdef",c=new Array(256),p=0;p<16;++p)for(var E=p*16,C=0;C<16;++C)c[E+C]=l[p]+l[C];return c}()}),mt=ko.Buffer;ko.SlowBuffer;ko.INSPECT_MAX_BYTES;ko.kMaxLength;var Ia=function(t,e){return Ia=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)r.hasOwnProperty(i)&&(n[i]=r[i])},Ia(t,e)};function Do(t,e){Ia(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var Nn=function(t){Do(e,t);function e(n){var r=t.call(this,n)||this;return Object.setPrototypeOf(r,e.prototype),r}return Object.defineProperty(e.prototype,"name",{get:function(){return"BSONError"},enumerable:!1,configurable:!0}),e}(Error),Vt=function(t){Do(e,t);function e(n){var r=t.call(this,n)||this;return Object.setPrototypeOf(r,e.prototype),r}return Object.defineProperty(e.prototype,"name",{get:function(){return"BSONTypeError"},enumerable:!1,configurable:!0}),e}(TypeError);function Ci(t){return t&&t.Math==Math&&t}function og(){return Ci(typeof globalThis=="object"&&globalThis)||Ci(typeof window=="object"&&window)||Ci(typeof self=="object"&&self)||Ci(typeof global=="object"&&global)||Function("return this")()}function Wx(){var t=og();return typeof t.navigator=="object"&&t.navigator.product==="ReactNative"}var Zx=function(t){var e=Wx()?"BSON: For React Native please polyfill crypto.getRandomValues, e.g. using: https://www.npmjs.com/package/react-native-get-random-values.":"BSON: No cryptographic implementation for random bytes present, falling back to a less secure implementation.";console.warn(e);for(var n=mt.alloc(t),r=0;r<t;++r)n[r]=Math.floor(Math.random()*256);return n},Yx=function(){{if(typeof window<"u"){var t=window.crypto||window.msCrypto;if(t&&t.getRandomValues)return function(e){return t.getRandomValues(mt.alloc(e))}}return typeof global<"u"&&global.crypto&&global.crypto.getRandomValues?function(e){return global.crypto.getRandomValues(mt.alloc(e))}:Zx}},sg=Yx();function Jx(t){return["[object ArrayBuffer]","[object SharedArrayBuffer]"].includes(Object.prototype.toString.call(t))}function Wu(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}function Kx(t){return Object.prototype.toString.call(t)==="[object RegExp]"}function Qx(t){return ci(t)&&Object.prototype.toString.call(t)==="[object Date]"}function ci(t){return typeof t=="object"&&t!==null}function Lo(t,e){var n=!1;function r(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return n||(console.warn(e),n=!0),t.apply(this,i)}return r}function uo(t){if(ArrayBuffer.isView(t))return mt.from(t.buffer,t.byteOffset,t.byteLength);if(Jx(t))return mt.from(t);throw new Vt("Must use either Buffer or TypedArray")}var Xx=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|[0-9a-f]{12}4[0-9a-f]{3}[89ab][0-9a-f]{15})$/i,ag=function(t){return typeof t=="string"&&Xx.test(t)},Na=function(t){if(!ag(t))throw new Vt('UUID string representations must be a 32 or 36 character hex string (dashes excluded/included). Format: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" or "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx".');var e=t.replace(/-/g,"");return mt.from(e,"hex")},Yc=function(t,e){return e===void 0&&(e=!0),e?t.toString("hex",0,4)+"-"+t.toString("hex",4,6)+"-"+t.toString("hex",6,8)+"-"+t.toString("hex",8,10)+"-"+t.toString("hex",10,16):t.toString("hex")},jO=Math.pow(2,63)-1,UO=-Math.pow(2,63),tO=Math.pow(2,53),eO=-Math.pow(2,53),ug=4,xn=function(){function t(e,n){if(!(this instanceof t))return new t(e,n);if(e!=null&&typeof e!="string"&&!ArrayBuffer.isView(e)&&!(e instanceof ArrayBuffer)&&!Array.isArray(e))throw new Vt("Binary can only be constructed from string, Buffer, TypedArray, or Array<number>");this.sub_type=n??t.BSON_BINARY_SUBTYPE_DEFAULT,e==null?(this.buffer=mt.alloc(t.BUFFER_SIZE),this.position=0):(typeof e=="string"?this.buffer=mt.from(e,"binary"):Array.isArray(e)?this.buffer=mt.from(e):this.buffer=uo(e),this.position=this.buffer.byteLength)}return t.prototype.put=function(e){if(typeof e=="string"&&e.length!==1)throw new Vt("only accepts single character String");if(typeof e!="number"&&e.length!==1)throw new Vt("only accepts single character Uint8Array or Array");var n;if(typeof e=="string"?n=e.charCodeAt(0):typeof e=="number"?n=e:n=e[0],n<0||n>255)throw new Vt("only accepts number in a valid unsigned byte range 0-255");if(this.buffer.length>this.position)this.buffer[this.position++]=n;else{var r=mt.alloc(t.BUFFER_SIZE+this.buffer.length);this.buffer.copy(r,0,0,this.buffer.length),this.buffer=r,this.buffer[this.position++]=n}},t.prototype.write=function(e,n){if(n=typeof n=="number"?n:this.position,this.buffer.length<n+e.length){var r=mt.alloc(this.buffer.length+e.length);this.buffer.copy(r,0,0,this.buffer.length),this.buffer=r}ArrayBuffer.isView(e)?(this.buffer.set(uo(e),n),this.position=n+e.byteLength>this.position?n+e.length:this.position):typeof e=="string"&&(this.buffer.write(e,n,e.length,"binary"),this.position=n+e.length>this.position?n+e.length:this.position)},t.prototype.read=function(e,n){return n=n&&n>0?n:this.position,this.buffer.slice(e,e+n)},t.prototype.value=function(e){return e=!!e,e&&this.buffer.length===this.position?this.buffer:e?this.buffer.slice(0,this.position):this.buffer.toString("binary",0,this.position)},t.prototype.length=function(){return this.position},t.prototype.toJSON=function(){return this.buffer.toString("base64")},t.prototype.toString=function(e){return this.buffer.toString(e)},t.prototype.toExtendedJSON=function(e){e=e||{};var n=this.buffer.toString("base64"),r=Number(this.sub_type).toString(16);return e.legacy?{$binary:n,$type:r.length===1?"0"+r:r}:{$binary:{base64:n,subType:r.length===1?"0"+r:r}}},t.prototype.toUUID=function(){if(this.sub_type===t.SUBTYPE_UUID)return new Jc(this.buffer.slice(0,this.position));throw new Nn('Binary sub_type "'.concat(this.sub_type,'" is not supported for converting to UUID. Only "').concat(t.SUBTYPE_UUID,'" is currently supported.'))},t.fromExtendedJSON=function(e,n){n=n||{};var r,i;if("$binary"in e?n.legacy&&typeof e.$binary=="string"&&"$type"in e?(i=e.$type?parseInt(e.$type,16):0,r=mt.from(e.$binary,"base64")):typeof e.$binary!="string"&&(i=e.$binary.subType?parseInt(e.$binary.subType,16):0,r=mt.from(e.$binary.base64,"base64")):"$uuid"in e&&(i=4,r=Na(e.$uuid)),!r)throw new Vt("Unexpected Binary Extended JSON format ".concat(JSON.stringify(e)));return i===ug?new Jc(r):new t(r,i)},t.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.inspect()},t.prototype.inspect=function(){var e=this.value(!0);return'new Binary(Buffer.from("'.concat(e.toString("hex"),'", "hex"), ').concat(this.sub_type,")")},t.BSON_BINARY_SUBTYPE_DEFAULT=0,t.BUFFER_SIZE=256,t.SUBTYPE_DEFAULT=0,t.SUBTYPE_FUNCTION=1,t.SUBTYPE_BYTE_ARRAY=2,t.SUBTYPE_UUID_OLD=3,t.SUBTYPE_UUID=4,t.SUBTYPE_MD5=5,t.SUBTYPE_ENCRYPTED=6,t.SUBTYPE_COLUMN=7,t.SUBTYPE_USER_DEFINED=128,t}();Object.defineProperty(xn.prototype,"_bsontype",{value:"Binary"});var ds=16,Jc=function(t){Do(e,t);function e(n){var r=this,i,o;if(n==null)i=e.generate();else if(n instanceof e)i=mt.from(n.buffer),o=n.__id;else if(ArrayBuffer.isView(n)&&n.byteLength===ds)i=uo(n);else if(typeof n=="string")i=Na(n);else throw new Vt("Argument passed in UUID constructor must be a UUID, a 16 byte Buffer or a 32/36 character hex string (dashes excluded/included, format: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).");return r=t.call(this,i,ug)||this,r.__id=o,r}return Object.defineProperty(e.prototype,"id",{get:function(){return this.buffer},set:function(n){this.buffer=n,e.cacheHexString&&(this.__id=Yc(n))},enumerable:!1,configurable:!0}),e.prototype.toHexString=function(n){if(n===void 0&&(n=!0),e.cacheHexString&&this.__id)return this.__id;var r=Yc(this.id,n);return e.cacheHexString&&(this.__id=r),r},e.prototype.toString=function(n){return n?this.id.toString(n):this.toHexString()},e.prototype.toJSON=function(){return this.toHexString()},e.prototype.equals=function(n){if(!n)return!1;if(n instanceof e)return n.id.equals(this.id);try{return new e(n).id.equals(this.id)}catch{return!1}},e.prototype.toBinary=function(){return new xn(this.id,xn.SUBTYPE_UUID)},e.generate=function(){var n=sg(ds);return n[6]=n[6]&15|64,n[8]=n[8]&63|128,mt.from(n)},e.isValid=function(n){return n?n instanceof e?!0:typeof n=="string"?ag(n):Wu(n)?n.length!==ds?!1:(n[6]&240)===64&&(n[8]&128)===128:!1:!1},e.createFromHexString=function(n){var r=Na(n);return new e(r)},e.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.inspect()},e.prototype.inspect=function(){return'new UUID("'.concat(this.toHexString(),'")')},e}(xn),Mo=function(){function t(e,n){if(!(this instanceof t))return new t(e,n);this.code=e,this.scope=n}return t.prototype.toJSON=function(){return{code:this.code,scope:this.scope}},t.prototype.toExtendedJSON=function(){return this.scope?{$code:this.code,$scope:this.scope}:{$code:this.code}},t.fromExtendedJSON=function(e){return new t(e.$code,e.$scope)},t.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.inspect()},t.prototype.inspect=function(){var e=this.toJSON();return'new Code("'.concat(String(e.code),'"').concat(e.scope?", ".concat(JSON.stringify(e.scope)):"",")")},t}();Object.defineProperty(Mo.prototype,"_bsontype",{value:"Code"});function nO(t){return ci(t)&&t.$id!=null&&typeof t.$ref=="string"&&(t.$db==null||typeof t.$db=="string")}var qr=function(){function t(e,n,r,i){if(!(this instanceof t))return new t(e,n,r,i);var o=e.split(".");o.length===2&&(r=o.shift(),e=o.shift()),this.collection=e,this.oid=n,this.db=r,this.fields=i||{}}return Object.defineProperty(t.prototype,"namespace",{get:function(){return this.collection},set:function(e){this.collection=e},enumerable:!1,configurable:!0}),t.prototype.toJSON=function(){var e=Object.assign({$ref:this.collection,$id:this.oid},this.fields);return this.db!=null&&(e.$db=this.db),e},t.prototype.toExtendedJSON=function(e){e=e||{};var n={$ref:this.collection,$id:this.oid};return e.legacy||(this.db&&(n.$db=this.db),n=Object.assign(n,this.fields)),n},t.fromExtendedJSON=function(e){var n=Object.assign({},e);return delete n.$ref,delete n.$id,delete n.$db,new t(e.$ref,e.$id,e.$db,n)},t.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.inspect()},t.prototype.inspect=function(){var e=this.oid===void 0||this.oid.toString===void 0?this.oid:this.oid.toString();return'new DBRef("'.concat(this.namespace,'", new ObjectId("').concat(String(e),'")').concat(this.db?', "'.concat(this.db,'"'):"",")")},t}();Object.defineProperty(qr.prototype,"_bsontype",{value:"DBRef"});var ge=void 0;try{ge=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch{}var Kc=65536,rO=1<<24,Jn=Kc*Kc,lg=Jn*Jn,Qc=lg/2,Xc={},tf={},z=function(){function t(e,n,r){if(e===void 0&&(e=0),!(this instanceof t))return new t(e,n,r);typeof e=="bigint"?Object.assign(this,t.fromBigInt(e,!!n)):typeof e=="string"?Object.assign(this,t.fromString(e,!!n)):(this.low=e|0,this.high=n|0,this.unsigned=!!r),Object.defineProperty(this,"__isLong__",{value:!0,configurable:!1,writable:!1,enumerable:!1})}return t.fromBits=function(e,n,r){return new t(e,n,r)},t.fromInt=function(e,n){var r,i,o;return n?(e>>>=0,(o=0<=e&&e<256)&&(i=tf[e],i)?i:(r=t.fromBits(e,(e|0)<0?-1:0,!0),o&&(tf[e]=r),r)):(e|=0,(o=-128<=e&&e<128)&&(i=Xc[e],i)?i:(r=t.fromBits(e,e<0?-1:0,!1),o&&(Xc[e]=r),r))},t.fromNumber=function(e,n){if(isNaN(e))return n?t.UZERO:t.ZERO;if(n){if(e<0)return t.UZERO;if(e>=lg)return t.MAX_UNSIGNED_VALUE}else{if(e<=-Qc)return t.MIN_VALUE;if(e+1>=Qc)return t.MAX_VALUE}return e<0?t.fromNumber(-e,n).neg():t.fromBits(e%Jn|0,e/Jn|0,n)},t.fromBigInt=function(e,n){return t.fromString(e.toString(),n)},t.fromString=function(e,n,r){if(e.length===0)throw Error("empty string");if(e==="NaN"||e==="Infinity"||e==="+Infinity"||e==="-Infinity")return t.ZERO;if(typeof n=="number"?(r=n,n=!1):n=!!n,r=r||10,r<2||36<r)throw RangeError("radix");var i;if((i=e.indexOf("-"))>0)throw Error("interior hyphen");if(i===0)return t.fromString(e.substring(1),n,r).neg();for(var o=t.fromNumber(Math.pow(r,8)),s=t.ZERO,a=0;a<e.length;a+=8){var u=Math.min(8,e.length-a),f=parseInt(e.substring(a,a+u),r);if(u<8){var h=t.fromNumber(Math.pow(r,u));s=s.mul(h).add(t.fromNumber(f))}else s=s.mul(o),s=s.add(t.fromNumber(f))}return s.unsigned=n,s},t.fromBytes=function(e,n,r){return r?t.fromBytesLE(e,n):t.fromBytesBE(e,n)},t.fromBytesLE=function(e,n){return new t(e[0]|e[1]<<8|e[2]<<16|e[3]<<24,e[4]|e[5]<<8|e[6]<<16|e[7]<<24,n)},t.fromBytesBE=function(e,n){return new t(e[4]<<24|e[5]<<16|e[6]<<8|e[7],e[0]<<24|e[1]<<16|e[2]<<8|e[3],n)},t.isLong=function(e){return ci(e)&&e.__isLong__===!0},t.fromValue=function(e,n){return typeof e=="number"?t.fromNumber(e,n):typeof e=="string"?t.fromString(e,n):t.fromBits(e.low,e.high,typeof n=="boolean"?n:e.unsigned)},t.prototype.add=function(e){t.isLong(e)||(e=t.fromValue(e));var n=this.high>>>16,r=this.high&65535,i=this.low>>>16,o=this.low&65535,s=e.high>>>16,a=e.high&65535,u=e.low>>>16,f=e.low&65535,h=0,d=0,b=0,_=0;return _+=o+f,b+=_>>>16,_&=65535,b+=i+u,d+=b>>>16,b&=65535,d+=r+a,h+=d>>>16,d&=65535,h+=n+s,h&=65535,t.fromBits(b<<16|_,h<<16|d,this.unsigned)},t.prototype.and=function(e){return t.isLong(e)||(e=t.fromValue(e)),t.fromBits(this.low&e.low,this.high&e.high,this.unsigned)},t.prototype.compare=function(e){if(t.isLong(e)||(e=t.fromValue(e)),this.eq(e))return 0;var n=this.isNegative(),r=e.isNegative();return n&&!r?-1:!n&&r?1:this.unsigned?e.high>>>0>this.high>>>0||e.high===this.high&&e.low>>>0>this.low>>>0?-1:1:this.sub(e).isNegative()?-1:1},t.prototype.comp=function(e){return this.compare(e)},t.prototype.divide=function(e){if(t.isLong(e)||(e=t.fromValue(e)),e.isZero())throw Error("division by zero");if(ge){if(!this.unsigned&&this.high===-2147483648&&e.low===-1&&e.high===-1)return this;var n=(this.unsigned?ge.div_u:ge.div_s)(this.low,this.high,e.low,e.high);return t.fromBits(n,ge.get_high(),this.unsigned)}if(this.isZero())return this.unsigned?t.UZERO:t.ZERO;var r,i,o;if(this.unsigned){if(e.unsigned||(e=e.toUnsigned()),e.gt(this))return t.UZERO;if(e.gt(this.shru(1)))return t.UONE;o=t.UZERO}else{if(this.eq(t.MIN_VALUE)){if(e.eq(t.ONE)||e.eq(t.NEG_ONE))return t.MIN_VALUE;if(e.eq(t.MIN_VALUE))return t.ONE;var s=this.shr(1);return r=s.div(e).shl(1),r.eq(t.ZERO)?e.isNegative()?t.ONE:t.NEG_ONE:(i=this.sub(e.mul(r)),o=r.add(i.div(e)),o)}else if(e.eq(t.MIN_VALUE))return this.unsigned?t.UZERO:t.ZERO;if(this.isNegative())return e.isNegative()?this.neg().div(e.neg()):this.neg().div(e).neg();if(e.isNegative())return this.div(e.neg()).neg();o=t.ZERO}for(i=this;i.gte(e);){r=Math.max(1,Math.floor(i.toNumber()/e.toNumber()));for(var a=Math.ceil(Math.log(r)/Math.LN2),u=a<=48?1:Math.pow(2,a-48),f=t.fromNumber(r),h=f.mul(e);h.isNegative()||h.gt(i);)r-=u,f=t.fromNumber(r,this.unsigned),h=f.mul(e);f.isZero()&&(f=t.ONE),o=o.add(f),i=i.sub(h)}return o},t.prototype.div=function(e){return this.divide(e)},t.prototype.equals=function(e){return t.isLong(e)||(e=t.fromValue(e)),this.unsigned!==e.unsigned&&this.high>>>31===1&&e.high>>>31===1?!1:this.high===e.high&&this.low===e.low},t.prototype.eq=function(e){return this.equals(e)},t.prototype.getHighBits=function(){return this.high},t.prototype.getHighBitsUnsigned=function(){return this.high>>>0},t.prototype.getLowBits=function(){return this.low},t.prototype.getLowBitsUnsigned=function(){return this.low>>>0},t.prototype.getNumBitsAbs=function(){if(this.isNegative())return this.eq(t.MIN_VALUE)?64:this.neg().getNumBitsAbs();var e=this.high!==0?this.high:this.low,n;for(n=31;n>0&&(e&1<<n)===0;n--);return this.high!==0?n+33:n+1},t.prototype.greaterThan=function(e){return this.comp(e)>0},t.prototype.gt=function(e){return this.greaterThan(e)},t.prototype.greaterThanOrEqual=function(e){return this.comp(e)>=0},t.prototype.gte=function(e){return this.greaterThanOrEqual(e)},t.prototype.ge=function(e){return this.greaterThanOrEqual(e)},t.prototype.isEven=function(){return(this.low&1)===0},t.prototype.isNegative=function(){return!this.unsigned&&this.high<0},t.prototype.isOdd=function(){return(this.low&1)===1},t.prototype.isPositive=function(){return this.unsigned||this.high>=0},t.prototype.isZero=function(){return this.high===0&&this.low===0},t.prototype.lessThan=function(e){return this.comp(e)<0},t.prototype.lt=function(e){return this.lessThan(e)},t.prototype.lessThanOrEqual=function(e){return this.comp(e)<=0},t.prototype.lte=function(e){return this.lessThanOrEqual(e)},t.prototype.modulo=function(e){if(t.isLong(e)||(e=t.fromValue(e)),ge){var n=(this.unsigned?ge.rem_u:ge.rem_s)(this.low,this.high,e.low,e.high);return t.fromBits(n,ge.get_high(),this.unsigned)}return this.sub(this.div(e).mul(e))},t.prototype.mod=function(e){return this.modulo(e)},t.prototype.rem=function(e){return this.modulo(e)},t.prototype.multiply=function(e){if(this.isZero())return t.ZERO;if(t.isLong(e)||(e=t.fromValue(e)),ge){var n=ge.mul(this.low,this.high,e.low,e.high);return t.fromBits(n,ge.get_high(),this.unsigned)}if(e.isZero())return t.ZERO;if(this.eq(t.MIN_VALUE))return e.isOdd()?t.MIN_VALUE:t.ZERO;if(e.eq(t.MIN_VALUE))return this.isOdd()?t.MIN_VALUE:t.ZERO;if(this.isNegative())return e.isNegative()?this.neg().mul(e.neg()):this.neg().mul(e).neg();if(e.isNegative())return this.mul(e.neg()).neg();if(this.lt(t.TWO_PWR_24)&&e.lt(t.TWO_PWR_24))return t.fromNumber(this.toNumber()*e.toNumber(),this.unsigned);var r=this.high>>>16,i=this.high&65535,o=this.low>>>16,s=this.low&65535,a=e.high>>>16,u=e.high&65535,f=e.low>>>16,h=e.low&65535,d=0,b=0,_=0,w=0;return w+=s*h,_+=w>>>16,w&=65535,_+=o*h,b+=_>>>16,_&=65535,_+=s*f,b+=_>>>16,_&=65535,b+=i*h,d+=b>>>16,b&=65535,b+=o*f,d+=b>>>16,b&=65535,b+=s*u,d+=b>>>16,b&=65535,d+=r*h+i*f+o*u+s*a,d&=65535,t.fromBits(_<<16|w,d<<16|b,this.unsigned)},t.prototype.mul=function(e){return this.multiply(e)},t.prototype.negate=function(){return!this.unsigned&&this.eq(t.MIN_VALUE)?t.MIN_VALUE:this.not().add(t.ONE)},t.prototype.neg=function(){return this.negate()},t.prototype.not=function(){return t.fromBits(~this.low,~this.high,this.unsigned)},t.prototype.notEquals=function(e){return!this.equals(e)},t.prototype.neq=function(e){return this.notEquals(e)},t.prototype.ne=function(e){return this.notEquals(e)},t.prototype.or=function(e){return t.isLong(e)||(e=t.fromValue(e)),t.fromBits(this.low|e.low,this.high|e.high,this.unsigned)},t.prototype.shiftLeft=function(e){return t.isLong(e)&&(e=e.toInt()),(e&=63)===0?this:e<32?t.fromBits(this.low<<e,this.high<<e|this.low>>>32-e,this.unsigned):t.fromBits(0,this.low<<e-32,this.unsigned)},t.prototype.shl=function(e){return this.shiftLeft(e)},t.prototype.shiftRight=function(e){return t.isLong(e)&&(e=e.toInt()),(e&=63)===0?this:e<32?t.fromBits(this.low>>>e|this.high<<32-e,this.high>>e,this.unsigned):t.fromBits(this.high>>e-32,this.high>=0?0:-1,this.unsigned)},t.prototype.shr=function(e){return this.shiftRight(e)},t.prototype.shiftRightUnsigned=function(e){if(t.isLong(e)&&(e=e.toInt()),e&=63,e===0)return this;var n=this.high;if(e<32){var r=this.low;return t.fromBits(r>>>e|n<<32-e,n>>>e,this.unsigned)}else return e===32?t.fromBits(n,0,this.unsigned):t.fromBits(n>>>e-32,0,this.unsigned)},t.prototype.shr_u=function(e){return this.shiftRightUnsigned(e)},t.prototype.shru=function(e){return this.shiftRightUnsigned(e)},t.prototype.subtract=function(e){return t.isLong(e)||(e=t.fromValue(e)),this.add(e.neg())},t.prototype.sub=function(e){return this.subtract(e)},t.prototype.toInt=function(){return this.unsigned?this.low>>>0:this.low},t.prototype.toNumber=function(){return this.unsigned?(this.high>>>0)*Jn+(this.low>>>0):this.high*Jn+(this.low>>>0)},t.prototype.toBigInt=function(){return BigInt(this.toString())},t.prototype.toBytes=function(e){return e?this.toBytesLE():this.toBytesBE()},t.prototype.toBytesLE=function(){var e=this.high,n=this.low;return[n&255,n>>>8&255,n>>>16&255,n>>>24,e&255,e>>>8&255,e>>>16&255,e>>>24]},t.prototype.toBytesBE=function(){var e=this.high,n=this.low;return[e>>>24,e>>>16&255,e>>>8&255,e&255,n>>>24,n>>>16&255,n>>>8&255,n&255]},t.prototype.toSigned=function(){return this.unsigned?t.fromBits(this.low,this.high,!1):this},t.prototype.toString=function(e){if(e=e||10,e<2||36<e)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative())if(this.eq(t.MIN_VALUE)){var n=t.fromNumber(e),r=this.div(n),i=r.mul(n).sub(this);return r.toString(e)+i.toInt().toString(e)}else return"-"+this.neg().toString(e);for(var o=t.fromNumber(Math.pow(e,6),this.unsigned),s=this,a="";;){var u=s.div(o),f=s.sub(u.mul(o)).toInt()>>>0,h=f.toString(e);if(s=u,s.isZero())return h+a;for(;h.length<6;)h="0"+h;a=""+h+a}},t.prototype.toUnsigned=function(){return this.unsigned?this:t.fromBits(this.low,this.high,!0)},t.prototype.xor=function(e){return t.isLong(e)||(e=t.fromValue(e)),t.fromBits(this.low^e.low,this.high^e.high,this.unsigned)},t.prototype.eqz=function(){return this.isZero()},t.prototype.le=function(e){return this.lessThanOrEqual(e)},t.prototype.toExtendedJSON=function(e){return e&&e.relaxed?this.toNumber():{$numberLong:this.toString()}},t.fromExtendedJSON=function(e,n){var r=t.fromString(e.$numberLong);return n&&n.relaxed?r.toNumber():r},t.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.inspect()},t.prototype.inspect=function(){return'new Long("'.concat(this.toString(),'"').concat(this.unsigned?", true":"",")")},t.TWO_PWR_24=t.fromInt(rO),t.MAX_UNSIGNED_VALUE=t.fromBits(-1,-1,!0),t.ZERO=t.fromInt(0),t.UZERO=t.fromInt(0,!0),t.ONE=t.fromInt(1),t.UONE=t.fromInt(1,!0),t.NEG_ONE=t.fromInt(-1),t.MAX_VALUE=t.fromBits(-1,2147483647,!1),t.MIN_VALUE=t.fromBits(0,-2147483648,!1),t}();Object.defineProperty(z.prototype,"__isLong__",{value:!0});Object.defineProperty(z.prototype,"_bsontype",{value:"Long"});var iO=/^(\+|-)?(\d+|(\d*\.\d*))?(E|e)?([-+])?(\d+)?$/,oO=/^(\+|-)?(Infinity|inf)$/i,sO=/^(\+|-)?NaN$/i,Sr=6111,ps=-6176,ef=6176,aO=34,gs=[124,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].reverse(),nf=[248,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].reverse(),rf=[120,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].reverse(),uO=/^([-+])?(\d+)?$/,lO=31,of=16383,cO=30,fO=31;function sf(t){return!isNaN(parseInt(t,10))}function hO(t){var e=z.fromNumber(1e9),n=z.fromNumber(0);if(!t.parts[0]&&!t.parts[1]&&!t.parts[2]&&!t.parts[3])return{quotient:t,rem:n};for(var r=0;r<=3;r++)n=n.shiftLeft(32),n=n.add(new z(t.parts[r],0)),t.parts[r]=n.div(e).low,n=n.modulo(e);return{quotient:t,rem:n}}function dO(t,e){if(!t&&!e)return{high:z.fromNumber(0),low:z.fromNumber(0)};var n=t.shiftRightUnsigned(32),r=new z(t.getLowBits(),0),i=e.shiftRightUnsigned(32),o=new z(e.getLowBits(),0),s=n.multiply(i),a=n.multiply(o),u=r.multiply(i),f=r.multiply(o);return s=s.add(a.shiftRightUnsigned(32)),a=new z(a.getLowBits(),0).add(u).add(f.shiftRightUnsigned(32)),s=s.add(a.shiftRightUnsigned(32)),f=a.shiftLeft(32).add(new z(f.getLowBits(),0)),{high:s,low:f}}function pO(t,e){var n=t.high>>>0,r=e.high>>>0;if(n<r)return!0;if(n===r){var i=t.low>>>0,o=e.low>>>0;if(i<o)return!0}return!1}function qn(t,e){throw new Vt('"'.concat(t,'" is not a valid Decimal128 string - ').concat(e))}var Zu=function(){function t(e){if(!(this instanceof t))return new t(e);if(typeof e=="string")this.bytes=t.fromString(e).bytes;else if(Wu(e)){if(e.byteLength!==16)throw new Vt("Decimal128 must take a Buffer of 16 bytes");this.bytes=e}else throw new Vt("Decimal128 must take a Buffer or string")}return t.fromString=function(e){var n=!1,r=!1,i=!1,o=0,s=0,a=0,u=0,f=0,h=[0],d=0,b=0,_=0,w=0,T=0,D=0,M=new z(0,0),H=new z(0,0),Y=0,V=0;if(e.length>=7e3)throw new Vt(""+e+" not a valid Decimal128 string");var Q=e.match(iO),Lt=e.match(oO),Mt=e.match(sO);if(!Q&&!Lt&&!Mt||e.length===0)throw new Vt(""+e+" not a valid Decimal128 string");if(Q){var U=Q[2],et=Q[4],J=Q[5],it=Q[6];et&&it===void 0&&qn(e,"missing exponent power"),et&&U===void 0&&qn(e,"missing exponent base"),et===void 0&&(J||it)&&qn(e,"missing e before exponent")}if((e[V]==="+"||e[V]==="-")&&(n=e[V++]==="-"),!sf(e[V])&&e[V]!=="."){if(e[V]==="i"||e[V]==="I")return new t(mt.from(n?nf:rf));if(e[V]==="N")return new t(mt.from(gs))}for(;sf(e[V])||e[V]===".";){if(e[V]==="."){r&&qn(e,"contains multiple periods"),r=!0,V=V+1;continue}d<34&&(e[V]!=="0"||i)&&(i||(f=s),i=!0,h[b++]=parseInt(e[V],10),d=d+1),i&&(a=a+1),r&&(u=u+1),s=s+1,V=V+1}if(r&&!s)throw new Vt(""+e+" not a valid Decimal128 string");if(e[V]==="e"||e[V]==="E"){var wt=e.substr(++V).match(uO);if(!wt||!wt[2])return new t(mt.from(gs));T=parseInt(wt[0],10),V=V+wt[0].length}if(e[V])return new t(mt.from(gs));if(_=0,!d)_=0,w=0,h[0]=0,a=1,d=1,o=0;else if(w=d-1,o=a,o!==1)for(;h[f+o-1]===0;)o=o-1;for(T<=u&&u-T>16384?T=ps:T=T-u;T>Sr;){if(w=w+1,w-_>aO){var At=h.join("");if(At.match(/^0+$/)){T=Sr;break}qn(e,"overflow")}T=T-1}for(;T<ps||d<a;){if(w===0&&o<d){T=ps,o=0;break}if(d<a?a=a-1:w=w-1,T<Sr)T=T+1;else{var At=h.join("");if(At.match(/^0+$/)){T=Sr;break}qn(e,"overflow")}}if(w-_+1<o){var It=s;r&&(f=f+1,It=It+1),n&&(f=f+1,It=It+1);var g=parseInt(e[f+w+1],10),qt=0;if(g>=5&&(qt=1,g===5)){for(qt=h[w]%2===1?1:0,D=f+w+2;D<It;D++)if(parseInt(e[D],10)){qt=1;break}}if(qt){for(var vt=w;vt>=0;vt--)if(++h[vt]>9&&(h[vt]=0,vt===0))if(T<Sr)T=T+1,h[vt]=1;else return new t(mt.from(n?nf:rf))}}if(M=z.fromNumber(0),H=z.fromNumber(0),o===0)M=z.fromNumber(0),H=z.fromNumber(0);else if(w-_<17){var vt=_;for(H=z.fromNumber(h[vt++]),M=new z(0,0);vt<=w;vt++)H=H.multiply(z.fromNumber(10)),H=H.add(z.fromNumber(h[vt]))}else{var vt=_;for(M=z.fromNumber(h[vt++]);vt<=w-17;vt++)M=M.multiply(z.fromNumber(10)),M=M.add(z.fromNumber(h[vt]));for(H=z.fromNumber(h[vt++]);vt<=w;vt++)H=H.multiply(z.fromNumber(10)),H=H.add(z.fromNumber(h[vt]))}var Yt=dO(M,z.fromString("100000000000000000"));Yt.low=Yt.low.add(H),pO(Yt.low,H)&&(Yt.high=Yt.high.add(z.fromNumber(1))),Y=T+ef;var ot={low:z.fromNumber(0),high:z.fromNumber(0)};Yt.high.shiftRightUnsigned(49).and(z.fromNumber(1)).equals(z.fromNumber(1))?(ot.high=ot.high.or(z.fromNumber(3).shiftLeft(61)),ot.high=ot.high.or(z.fromNumber(Y).and(z.fromNumber(16383).shiftLeft(47))),ot.high=ot.high.or(Yt.high.and(z.fromNumber(0x7fffffffffff)))):(ot.high=ot.high.or(z.fromNumber(Y&16383).shiftLeft(49)),ot.high=ot.high.or(Yt.high.and(z.fromNumber(562949953421311)))),ot.low=Yt.low,n&&(ot.high=ot.high.or(z.fromString("9223372036854775808")));var N=mt.alloc(16);return V=0,N[V++]=ot.low.low&255,N[V++]=ot.low.low>>8&255,N[V++]=ot.low.low>>16&255,N[V++]=ot.low.low>>24&255,N[V++]=ot.low.high&255,N[V++]=ot.low.high>>8&255,N[V++]=ot.low.high>>16&255,N[V++]=ot.low.high>>24&255,N[V++]=ot.high.low&255,N[V++]=ot.high.low>>8&255,N[V++]=ot.high.low>>16&255,N[V++]=ot.high.low>>24&255,N[V++]=ot.high.high&255,N[V++]=ot.high.high>>8&255,N[V++]=ot.high.high>>16&255,N[V++]=ot.high.high>>24&255,new t(N)},t.prototype.toString=function(){for(var e,n=0,r=new Array(36),i=0;i<r.length;i++)r[i]=0;var o=0,s=!1,a,u={parts:[0,0,0,0]},f,h,d=[];o=0;var b=this.bytes,_=b[o++]|b[o++]<<8|b[o++]<<16|b[o++]<<24,w=b[o++]|b[o++]<<8|b[o++]<<16|b[o++]<<24,T=b[o++]|b[o++]<<8|b[o++]<<16|b[o++]<<24,D=b[o++]|b[o++]<<8|b[o++]<<16|b[o++]<<24;o=0;var M={low:new z(_,w),high:new z(T,D)};M.high.lessThan(z.ZERO)&&d.push("-");var H=D>>26&lO;if(H>>3===3){if(H===cO)return d.join("")+"Infinity";if(H===fO)return"NaN";e=D>>15&of,a=8+(D>>14&1)}else a=D>>14&7,e=D>>17&of;var Y=e-ef;if(u.parts[0]=(D&16383)+((a&15)<<14),u.parts[1]=T,u.parts[2]=w,u.parts[3]=_,u.parts[0]===0&&u.parts[1]===0&&u.parts[2]===0&&u.parts[3]===0)s=!0;else for(h=3;h>=0;h--){var V=0,Q=hO(u);if(u=Q.quotient,V=Q.rem.low,!!V)for(f=8;f>=0;f--)r[h*9+f]=V%10,V=Math.floor(V/10)}if(s)n=1,r[o]=0;else for(n=36;!r[o];)n=n-1,o=o+1;var Lt=n-1+Y;if(Lt>=34||Lt<=-7||Y>0){if(n>34)return d.push("".concat(0)),Y>0?d.push("E+".concat(Y)):Y<0&&d.push("E".concat(Y)),d.join("");d.push("".concat(r[o++])),n=n-1,n&&d.push(".");for(var i=0;i<n;i++)d.push("".concat(r[o++]));d.push("E"),Lt>0?d.push("+".concat(Lt)):d.push("".concat(Lt))}else if(Y>=0)for(var i=0;i<n;i++)d.push("".concat(r[o++]));else{var Mt=n+Y;if(Mt>0)for(var i=0;i<Mt;i++)d.push("".concat(r[o++]));else d.push("0");for(d.push(".");Mt++<0;)d.push("0");for(var i=0;i<n-Math.max(Mt-1,0);i++)d.push("".concat(r[o++]))}return d.join("")},t.prototype.toJSON=function(){return{$numberDecimal:this.toString()}},t.prototype.toExtendedJSON=function(){return{$numberDecimal:this.toString()}},t.fromExtendedJSON=function(e){return t.fromString(e.$numberDecimal)},t.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.inspect()},t.prototype.inspect=function(){return'new Decimal128("'.concat(this.toString(),'")')},t}();Object.defineProperty(Zu.prototype,"_bsontype",{value:"Decimal128"});var Po=function(){function t(e){if(!(this instanceof t))return new t(e);e instanceof Number&&(e=e.valueOf()),this.value=+e}return t.prototype.valueOf=function(){return this.value},t.prototype.toJSON=function(){return this.value},t.prototype.toString=function(e){return this.value.toString(e)},t.prototype.toExtendedJSON=function(e){return e&&(e.legacy||e.relaxed&&isFinite(this.value))?this.value:Object.is(Math.sign(this.value),-0)?{$numberDouble:"-".concat(this.value.toFixed(1))}:{$numberDouble:Number.isInteger(this.value)?this.value.toFixed(1):this.value.toString()}},t.fromExtendedJSON=function(e,n){var r=parseFloat(e.$numberDouble);return n&&n.relaxed?r:new t(r)},t.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.inspect()},t.prototype.inspect=function(){var e=this.toExtendedJSON();return"new Double(".concat(e.$numberDouble,")")},t}();Object.defineProperty(Po.prototype,"_bsontype",{value:"Double"});var jo=function(){function t(e){if(!(this instanceof t))return new t(e);e instanceof Number&&(e=e.valueOf()),this.value=+e|0}return t.prototype.valueOf=function(){return this.value},t.prototype.toString=function(e){return this.value.toString(e)},t.prototype.toJSON=function(){return this.value},t.prototype.toExtendedJSON=function(e){return e&&(e.relaxed||e.legacy)?this.value:{$numberInt:this.value.toString()}},t.fromExtendedJSON=function(e,n){return n&&n.relaxed?parseInt(e.$numberInt,10):new t(e.$numberInt)},t.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.inspect()},t.prototype.inspect=function(){return"new Int32(".concat(this.valueOf(),")")},t}();Object.defineProperty(jo.prototype,"_bsontype",{value:"Int32"});var Yu=function(){function t(){if(!(this instanceof t))return new t}return t.prototype.toExtendedJSON=function(){return{$maxKey:1}},t.fromExtendedJSON=function(){return new t},t.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.inspect()},t.prototype.inspect=function(){return"new MaxKey()"},t}();Object.defineProperty(Yu.prototype,"_bsontype",{value:"MaxKey"});var Ju=function(){function t(){if(!(this instanceof t))return new t}return t.prototype.toExtendedJSON=function(){return{$minKey:1}},t.fromExtendedJSON=function(){return new t},t.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.inspect()},t.prototype.inspect=function(){return"new MinKey()"},t}();Object.defineProperty(Ju.prototype,"_bsontype",{value:"MinKey"});var gO=new RegExp("^[0-9a-fA-F]{24}$"),mn=null,Ae=Symbol("id"),ae=function(){function t(e){if(!(this instanceof t))return new t(e);var n;if(typeof e=="object"&&e&&"id"in e){if(typeof e.id!="string"&&!ArrayBuffer.isView(e.id))throw new Vt("Argument passed in must have an id that is of type string or Buffer");"toHexString"in e&&typeof e.toHexString=="function"?n=mt.from(e.toHexString(),"hex"):n=e.id}else n=e;if(n==null||typeof n=="number")this[Ae]=t.generate(typeof n=="number"?n:void 0);else if(ArrayBuffer.isView(n)&&n.byteLength===12)this[Ae]=n instanceof mt?n:uo(n);else if(typeof n=="string")if(n.length===12){var r=mt.from(n);if(r.byteLength===12)this[Ae]=r;else throw new Vt("Argument passed in must be a string of 12 bytes")}else if(n.length===24&&gO.test(n))this[Ae]=mt.from(n,"hex");else throw new Vt("Argument passed in must be a string of 12 bytes or a string of 24 hex characters or an integer");else throw new Vt("Argument passed in does not match the accepted types");t.cacheHexString&&(this.__id=this.id.toString("hex"))}return Object.defineProperty(t.prototype,"id",{get:function(){return this[Ae]},set:function(e){this[Ae]=e,t.cacheHexString&&(this.__id=e.toString("hex"))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"generationTime",{get:function(){return this.id.readInt32BE(0)},set:function(e){this.id.writeUInt32BE(e,0)},enumerable:!1,configurable:!0}),t.prototype.toHexString=function(){if(t.cacheHexString&&this.__id)return this.__id;var e=this.id.toString("hex");return t.cacheHexString&&!this.__id&&(this.__id=e),e},t.getInc=function(){return t.index=(t.index+1)%16777215},t.generate=function(e){typeof e!="number"&&(e=Math.floor(Date.now()/1e3));var n=t.getInc(),r=mt.alloc(12);return r.writeUInt32BE(e,0),mn===null&&(mn=sg(5)),r[4]=mn[0],r[5]=mn[1],r[6]=mn[2],r[7]=mn[3],r[8]=mn[4],r[11]=n&255,r[10]=n>>8&255,r[9]=n>>16&255,r},t.prototype.toString=function(e){return e?this.id.toString(e):this.toHexString()},t.prototype.toJSON=function(){return this.toHexString()},t.prototype.equals=function(e){if(e==null)return!1;if(e instanceof t)return this[Ae][11]===e[Ae][11]&&this[Ae].equals(e[Ae]);if(typeof e=="string"&&t.isValid(e)&&e.length===12&&Wu(this.id))return e===mt.prototype.toString.call(this.id,"latin1");if(typeof e=="string"&&t.isValid(e)&&e.length===24)return e.toLowerCase()===this.toHexString();if(typeof e=="string"&&t.isValid(e)&&e.length===12)return mt.from(e).equals(this.id);if(typeof e=="object"&&"toHexString"in e&&typeof e.toHexString=="function"){var n=e.toHexString(),r=this.toHexString().toLowerCase();return typeof n=="string"&&n.toLowerCase()===r}return!1},t.prototype.getTimestamp=function(){var e=new Date,n=this.id.readUInt32BE(0);return e.setTime(Math.floor(n)*1e3),e},t.createPk=function(){return new t},t.createFromTime=function(e){var n=mt.from([0,0,0,0,0,0,0,0,0,0,0,0]);return n.writeUInt32BE(e,0),new t(n)},t.createFromHexString=function(e){if(typeof e>"u"||e!=null&&e.length!==24)throw new Vt("Argument passed in must be a single String of 12 bytes or a string of 24 hex characters");return new t(mt.from(e,"hex"))},t.isValid=function(e){if(e==null)return!1;try{return new t(e),!0}catch{return!1}},t.prototype.toExtendedJSON=function(){return this.toHexString?{$oid:this.toHexString()}:{$oid:this.toString("hex")}},t.fromExtendedJSON=function(e){return new t(e.$oid)},t.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.inspect()},t.prototype.inspect=function(){return'new ObjectId("'.concat(this.toHexString(),'")')},t.index=Math.floor(Math.random()*16777215),t}();Object.defineProperty(ae.prototype,"generate",{value:Lo(function(t){return ae.generate(t)},"Please use the static `ObjectId.generate(time)` instead")});Object.defineProperty(ae.prototype,"getInc",{value:Lo(function(){return ae.getInc()},"Please use the static `ObjectId.getInc()` instead")});Object.defineProperty(ae.prototype,"get_inc",{value:Lo(function(){return ae.getInc()},"Please use the static `ObjectId.getInc()` instead")});Object.defineProperty(ae,"get_inc",{value:Lo(function(){return ae.getInc()},"Please use the static `ObjectId.getInc()` instead")});Object.defineProperty(ae.prototype,"_bsontype",{value:"ObjectID"});function yO(t){return t.split("").sort().join("")}var Gr=function(){function t(e,n){if(!(this instanceof t))return new t(e,n);if(this.pattern=e,this.options=yO(n??""),this.pattern.indexOf("\0")!==-1)throw new Nn("BSON Regex patterns cannot contain null bytes, found: ".concat(JSON.stringify(this.pattern)));if(this.options.indexOf("\0")!==-1)throw new Nn("BSON Regex options cannot contain null bytes, found: ".concat(JSON.stringify(this.options)));for(var r=0;r<this.options.length;r++)if(!(this.options[r]==="i"||this.options[r]==="m"||this.options[r]==="x"||this.options[r]==="l"||this.options[r]==="s"||this.options[r]==="u"))throw new Nn("The regular expression option [".concat(this.options[r],"] is not supported"))}return t.parseOptions=function(e){return e?e.split("").sort().join(""):""},t.prototype.toExtendedJSON=function(e){return e=e||{},e.legacy?{$regex:this.pattern,$options:this.options}:{$regularExpression:{pattern:this.pattern,options:this.options}}},t.fromExtendedJSON=function(e){if("$regex"in e)if(typeof e.$regex!="string"){if(e.$regex._bsontype==="BSONRegExp")return e}else return new t(e.$regex,t.parseOptions(e.$options));if("$regularExpression"in e)return new t(e.$regularExpression.pattern,t.parseOptions(e.$regularExpression.options));throw new Vt("Unexpected BSONRegExp EJSON object form: ".concat(JSON.stringify(e)))},t}();Object.defineProperty(Gr.prototype,"_bsontype",{value:"BSONRegExp"});var Ku=function(){function t(e){if(!(this instanceof t))return new t(e);this.value=e}return t.prototype.valueOf=function(){return this.value},t.prototype.toString=function(){return this.value},t.prototype.inspect=function(){return'new BSONSymbol("'.concat(this.value,'")')},t.prototype.toJSON=function(){return this.value},t.prototype.toExtendedJSON=function(){return{$symbol:this.value}},t.fromExtendedJSON=function(e){return new t(e.$symbol)},t.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.inspect()},t}();Object.defineProperty(Ku.prototype,"_bsontype",{value:"Symbol"});var mO=z,cg=function(t){Do(e,t);function e(n,r){var i=this;return i instanceof e?(z.isLong(n)?i=t.call(this,n.low,n.high,!0)||this:ci(n)&&typeof n.t<"u"&&typeof n.i<"u"?i=t.call(this,n.i,n.t,!0)||this:i=t.call(this,n,r,!0)||this,Object.defineProperty(i,"_bsontype",{value:"Timestamp",writable:!1,configurable:!1,enumerable:!1}),i):new e(n,r)}return e.prototype.toJSON=function(){return{$timestamp:this.toString()}},e.fromInt=function(n){return new e(z.fromInt(n,!0))},e.fromNumber=function(n){return new e(z.fromNumber(n,!0))},e.fromBits=function(n,r){return new e(n,r)},e.fromString=function(n,r){return new e(z.fromString(n,!0,r))},e.prototype.toExtendedJSON=function(){return{$timestamp:{t:this.high>>>0,i:this.low>>>0}}},e.fromExtendedJSON=function(n){return new e(n.$timestamp)},e.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.inspect()},e.prototype.inspect=function(){return"new Timestamp({ t: ".concat(this.getHighBits(),", i: ").concat(this.getLowBits()," })")},e.MAX_VALUE=z.MAX_UNSIGNED_VALUE,e}(mO);function vO(t){return ci(t)&&Reflect.has(t,"_bsontype")&&typeof t._bsontype=="string"}var fg=2147483647,hg=-2147483648,dg=9223372036854776e3,pg=-9223372036854776e3,bO={$oid:ae,$binary:xn,$uuid:xn,$symbol:Ku,$numberInt:jo,$numberDecimal:Zu,$numberDouble:Po,$numberLong:z,$minKey:Ju,$maxKey:Yu,$regex:Gr,$regularExpression:Gr,$timestamp:cg};function gg(t,e){if(e===void 0&&(e={}),typeof t=="number"){if(e.relaxed||e.legacy)return t;if(Math.floor(t)===t){if(t>=hg&&t<=fg)return new jo(t);if(t>=pg&&t<=dg)return z.fromNumber(t)}return new Po(t)}if(t==null||typeof t!="object")return t;if(t.$undefined)return null;for(var n=Object.keys(t).filter(function(d){return d.startsWith("$")&&t[d]!=null}),r=0;r<n.length;r++){var i=bO[n[r]];if(i)return i.fromExtendedJSON(t,e)}if(t.$date!=null){var o=t.$date,s=new Date;return e.legacy?typeof o=="number"?s.setTime(o):typeof o=="string"&&s.setTime(Date.parse(o)):typeof o=="string"?s.setTime(Date.parse(o)):z.isLong(o)?s.setTime(o.toNumber()):typeof o=="number"&&e.relaxed&&s.setTime(o),s}if(t.$code!=null){var a=Object.assign({},t);return t.$scope&&(a.$scope=gg(t.$scope)),Mo.fromExtendedJSON(t)}if(nO(t)||t.$dbPointer){var u=t.$ref?t:t.$dbPointer;if(u instanceof qr)return u;var f=Object.keys(u).filter(function(d){return d.startsWith("$")}),h=!0;if(f.forEach(function(d){["$ref","$id","$db"].indexOf(d)===-1&&(h=!1)}),h)return qr.fromExtendedJSON(u)}return t}function _O(t,e){return t.map(function(n,r){e.seenObjects.push({propertyName:"index ".concat(r),obj:null});try{return nn(n,e)}finally{e.seenObjects.pop()}})}function af(t){var e=t.toISOString();return t.getUTCMilliseconds()!==0?e:e.slice(0,-5)+"Z"}function nn(t,e){if((typeof t=="object"||typeof t=="function")&&t!==null){var n=e.seenObjects.findIndex(function(M){return M.obj===t});if(n!==-1){var r=e.seenObjects.map(function(M){return M.propertyName}),i=r.slice(0,n).map(function(M){return"".concat(M," -> ")}).join(""),o=r[n],s=" -> "+r.slice(n+1,r.length-1).map(function(M){return"".concat(M," -> ")}).join(""),a=r[r.length-1],u=" ".repeat(i.length+o.length/2),f="-".repeat(s.length+(o.length+a.length)/2-1);throw new Vt(`Converting circular structure to EJSON:
42
+ `+" ".concat(i).concat(o).concat(s).concat(a,`
43
+ `)+" ".concat(u,"\\").concat(f,"/"))}e.seenObjects[e.seenObjects.length-1].obj=t}if(Array.isArray(t))return _O(t,e);if(t===void 0)return null;if(t instanceof Date||Qx(t)){var h=t.getTime(),d=h>-1&&h<2534023188e5;return e.legacy?e.relaxed&&d?{$date:t.getTime()}:{$date:af(t)}:e.relaxed&&d?{$date:af(t)}:{$date:{$numberLong:t.getTime().toString()}}}if(typeof t=="number"&&(!e.relaxed||!isFinite(t))){if(Math.floor(t)===t){var b=t>=hg&&t<=fg,_=t>=pg&&t<=dg;if(b)return{$numberInt:t.toString()};if(_)return{$numberLong:t.toString()}}return{$numberDouble:t.toString()}}if(t instanceof RegExp||Kx(t)){var w=t.flags;if(w===void 0){var T=t.toString().match(/[gimuy]*$/);T&&(w=T[0])}var D=new Gr(t.source,w);return D.toExtendedJSON(e)}return t!=null&&typeof t=="object"?EO(t,e):t}var wO={Binary:function(t){return new xn(t.value(),t.sub_type)},Code:function(t){return new Mo(t.code,t.scope)},DBRef:function(t){return new qr(t.collection||t.namespace,t.oid,t.db,t.fields)},Decimal128:function(t){return new Zu(t.bytes)},Double:function(t){return new Po(t.value)},Int32:function(t){return new jo(t.value)},Long:function(t){return z.fromBits(t.low!=null?t.low:t.low_,t.low!=null?t.high:t.high_,t.low!=null?t.unsigned:t.unsigned_)},MaxKey:function(){return new Yu},MinKey:function(){return new Ju},ObjectID:function(t){return new ae(t)},ObjectId:function(t){return new ae(t)},BSONRegExp:function(t){return new Gr(t.pattern,t.options)},Symbol:function(t){return new Ku(t.value)},Timestamp:function(t){return cg.fromBits(t.low,t.high)}};function EO(t,e){if(t==null||typeof t!="object")throw new Nn("not an object instance");var n=t._bsontype;if(typeof n>"u"){var r={};for(var i in t){e.seenObjects.push({propertyName:i,obj:null});try{var o=nn(t[i],e);i==="__proto__"?Object.defineProperty(r,i,{value:o,writable:!0,enumerable:!0,configurable:!0}):r[i]=o}finally{e.seenObjects.pop()}}return r}else if(vO(t)){var s=t;if(typeof s.toExtendedJSON!="function"){var a=wO[t._bsontype];if(!a)throw new Vt("Unrecognized or invalid _bsontype: "+t._bsontype);s=a(s)}return n==="Code"&&s.scope?s=new Mo(s.code,nn(s.scope,e)):n==="DBRef"&&s.oid&&(s=new qr(nn(s.collection,e),nn(s.oid,e),nn(s.db,e),nn(s.fields,e))),s.toExtendedJSON(e)}else throw new Nn("_bsontype must be a string, but was: "+typeof n)}var uf;(function(t){function e(o,s){var a=Object.assign({},{relaxed:!0,legacy:!1},s);return typeof a.relaxed=="boolean"&&(a.strict=!a.relaxed),typeof a.strict=="boolean"&&(a.relaxed=!a.strict),JSON.parse(o,function(u,f){if(u.indexOf("\0")!==-1)throw new Nn("BSON Document field names cannot contain null bytes, found: ".concat(JSON.stringify(u)));return gg(f,a)})}t.parse=e;function n(o,s,a,u){a!=null&&typeof a=="object"&&(u=a,a=0),s!=null&&typeof s=="object"&&!Array.isArray(s)&&(u=s,s=void 0,a=0);var f=Object.assign({relaxed:!0,legacy:!1},u,{seenObjects:[{propertyName:"(root)",obj:null}]}),h=nn(o,f);return JSON.stringify(h,s,a)}t.stringify=n;function r(o,s){return s=s||{},JSON.parse(n(o,s))}t.serialize=r;function i(o,s){return s=s||{},e(JSON.stringify(o),s)}t.deserialize=i})(uf||(uf={}));var lf,cf=og();cf.Map?lf=cf.Map:lf=function(){function t(e){e===void 0&&(e=[]),this._keys=[],this._values={};for(var n=0;n<e.length;n++)if(e[n]!=null){var r=e[n],i=r[0],o=r[1];this._keys.push(i),this._values[i]={v:o,i:this._keys.length-1}}}return t.prototype.clear=function(){this._keys=[],this._values={}},t.prototype.delete=function(e){var n=this._values[e];return n==null?!1:(delete this._values[e],this._keys.splice(n.i,1),!0)},t.prototype.entries=function(){var e=this,n=0;return{next:function(){var r=e._keys[n++];return{value:r!==void 0?[r,e._values[r].v]:void 0,done:r===void 0}}}},t.prototype.forEach=function(e,n){n=n||this;for(var r=0;r<this._keys.length;r++){var i=this._keys[r];e.call(n,this._values[i].v,i,n)}},t.prototype.get=function(e){return this._values[e]?this._values[e].v:void 0},t.prototype.has=function(e){return this._values[e]!=null},t.prototype.keys=function(){var e=this,n=0;return{next:function(){var r=e._keys[n++];return{value:r!==void 0?r:void 0,done:r===void 0}}}},t.prototype.set=function(e,n){return this._values[e]?(this._values[e].v=n,this):(this._keys.push(e),this._values[e]={v:n,i:this._keys.length-1},this)},t.prototype.values=function(){var e=this,n=0;return{next:function(){var r=e._keys[n++];return{value:r!==void 0?e._values[r].v:void 0,done:r===void 0}}}},Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!1,configurable:!0}),t}();var BO=z.fromNumber(tO),VO=z.fromNumber(eO),ys=new Uint8Array(8),FO=new DataView(ys.buffer,ys.byteOffset,ys.byteLength),SO=1024*1024*17,$O=mt.alloc(SO),IO=class{triggerID;nudgeID;engagementID;contentID;shortID;contentType;variation;props;objective;onsiteDeliveryType;holdout;constructor(t){t=t||{},this.triggerID=t.id||t.triggerID,this.nudgeID=t.nudgeID,this.shortID=t.shortID,this.contentType=t.contentType,this.engagementID=t.engagementID,this.contentID=t.contentID,this.variation=t.variation,this.props=t.props,this.objective=t.objective,this.onsiteDeliveryType=t.onsiteDeliveryType,this.holdout=t.holdout}},NO=class{constructor(t,e={},n,r){this.name=t,this.properties=e,this.id=r?new ae(r):new ae,this.occurred=new Date,n&&(this.trigger=new IO(n)),this.newEvent=!r}trigger;items;id;newEvent;cart;currentItem;deviceProps;landingPage;occurred;page;sessionID;sessionNumber;locale},xO=()=>({flex:"1 1 0"}),OO=(t,e)=>e.mID,ff=(t,e)=>e.url;function TO(t,e){if(t&1&&cn(0,"source",6),t&2){let n=e.$implicit;tr("type",n.mimeType),Nu("media","(max-width: ",n.width,"px)"),ln("src",n.url,wn)}}function CO(t,e){if(t&1&&cn(0,"source",7),t&2){let n=e.$implicit;tr("type",n.mimeType),ln("src",n.url,wn)}}function AO(t,e){if(t&1){let n=D1();Qt(0,"div",3),Tu(1),Qt(2,"a",4),xr("click",function(){yi(n);let r=ye().$implicit,i=ye();return mi(i.sendTriggerClicked(r,"video"))}),Qt(3,"video",5),Vr(4,TO,1,4,"source",6,ff),Vr(6,CO,1,2,"source",7,ff),ve()(),Qt(8,"div",8)(9,"div",9)(10,"a",4),xr("click",function(){yi(n);let r=ye().$implicit,i=ye();return mi(i.sendTriggerClicked(r,"image"))}),cn(11,"img",10),ve(),Qt(12,"div",11)(13,"a",4),xr("click",function(){yi(n);let r=ye().$implicit,i=ye();return mi(i.sendTriggerClicked(r,"title"))}),Qt(14,"div",12)(15,"span",13),Ar(16),ve()()(),Qt(17,"div",14)(18,"div",13),Ar(19),$r(20,"cooeeCurrency"),ve()(),Qt(21,"button",15),xr("click",function(){yi(n);let r=ye().$implicit,i=ye();return mi(i.performCTA.emit(r))}),Qt(22,"span"),Ar(23,"Add"),ve()()()()()()}if(t&2){let n=e.$implicit,r=ye().$implicit,i=ye();h1($1(11,xO));let o=r.selectedOrFirstVariant.value.link;ne(2),ln("href",o,wn),ne(2),Fr(n.sources),ne(2),Fr(i.getBestSources(n.sources)),ne(4),tr("href",o,wn),ne(),tr("alt",r.selectedOrFirstVariant.value.name),ln("src",r.imageURL,wn),ne(2),tr("href",o,wn),ne(3),xu(r.name),ne(3),Ou(" ",ro(20,9,r.selectedOrFirstVariant.value.price.d)," ")}}function RO(t,e){if(t&1&&Vr(0,AO,24,12,"div",2,O1),t&2){let n=e.$implicit;Fr(n.portraitVideos)}}var kO=class xa{items;triggerClicked=new Me;performCTA=new Me;_engagementTrigger=Mi(null);set engagementTrigger(e){this._engagementTrigger.set(e)}getBestSources(e){if(!e)return[];let n=[],r=e.filter(o=>o.format==="mp4").sort((o,s)=>s.width-o.width)[0];r&&n.push(r);let i=e.filter(o=>o.format==="m3u8").sort((o,s)=>s.width-o.width)[0];return i&&n.push(i),n}sendTriggerClicked(e,n){let r=new NO(Rr.EVENT_TRIGGER_CLICKED,{from:n},this.engagementTrigger);r.items=[e.toEmbed()],this.triggerClicked.emit(r)}static \u0275fac=function(e){return new(e||xa)};static \u0275cmp=rp({type:xa,selectors:[["cooee-shoppable-videos"]],inputs:{items:"items",engagementTrigger:"engagementTrigger"},outputs:{triggerClicked:"triggerClicked",performCTA:"performCTA"},decls:5,vars:0,consts:[["id","lc-heading-text",1,"lc:mb-[15px]","lc:text-[16px]","lc:block","lc:text-center","lc:font-bold"],["id","lc-video-list",1,"lc:flex","lc:overflow-x-auto","lc:m-[10px]","lc:gap-[10px]"],["id","lc-video",1,"lc-video-card","lc:w-[260px]",3,"style"],["id","lc-video",1,"lc-video-card","lc:w-[260px]"],[3,"click","href"],["width","100%","autoplay","","muted","","loop",""],[3,"src","type","media"],[3,"src","type"],["id","lc-single-product",1,"lc:w-full","lc:h-auto","lc:p-[5px]","lc:block","lc:min-w-[240px]"],[1,"lc:flex","lc:justify-center","lc:items-center","lc:gap-[10px]","lc:w-full"],["id","lc-item-image",1,"lc:w-[70px]","lc:h-[80px]","lc:mb-[5px]","lc:object-cover","lc:box-border",3,"alt","src"],[1,"lc:w-full","lc:flex","lc:flex-col","lc:gap-[7px]"],["id","lc-item-name",1,"lc:text-[12px]","lc:font-semibold"],[1,"lc:line-clamp-2"],["id","lc-item-price",1,"lc:text-[13px]","lc:font-medium"],["id","lc-cta-button",1,"lc:bg-black","lc:w-full","lc:h-auto","lc:p-[7px]","lc:text-[12px]","lc:block","lc:text-center","lc:font-normal","lc:text-white","lc:cursor-pointer",3,"click"]],template:function(e,n){e&1&&(Qt(0,"div",0),Ar(1,` WATCH & SHOP - NEW LAUNCHES
44
+ `),ve(),Qt(2,"div",1),Vr(3,RO,2,0,null,null,OO),ve()),e&2&&(ne(3),Fr(n.items))},dependencies:[ng],styles:["[_nghost-%COMP%]{display:block;margin-top:30px}"]})};be.configure("CooeeWidgetSDK");(async()=>{let t=await Hw(Qw),e=(n,r)=>{let i=bw(n,{injector:t.injector});customElements.define(r,i)};e(Dx,"cooee-progressbar"),e(kO,"cooee-shoppable-videos")})();})();