1 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="29a8c22a-8ed4-5aec-9d36-c1ce86fb8fd1")}catch(e){}}(); 3import{c as F}from"./aspectRatio-CBGzlSoV.js";import{P as J,b as V,G as j,c as H}from"./SpinnerOverlay-mxA2_NVr.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"437571361f26c206e0fdaf649c721287c3656fd7"}}catch{}})();function G(e){return e&&typeof e.then=="function"}Promise.resolve(!1);Promise.resolve(!0);var d=Promise.resolve();function C(e,t){return e||(e=0),new Promise(function(n){return setTimeout(function(){return n(t)},e)})}function K(e,t){return Math.floor(Math.random()*(t-e+1)+e)}function w(){return Math.random().toString(36).substring(2)}var _=0;function p(){var e=Date.now()*1e3;return e<=_&&(e=_+1),_=e,e}var z=p,Y="native";function q(e){var t={time:p(),messagesCallback:null,bc:new BroadcastChannel(e),subFns:[]};return t.bc.onmessage=function(n){t.messagesCallback&&t.messagesCallback(n.data)},t}function X(e){e.bc.close(),e.subFns=[]}function Q(e,t){try{return e.bc.postMessage(t,!1),d}catch(n){return Promise.reject(n)}}function Z(e,t){e.messagesCallback=t}function ee(){if(typeof globalThis<"u"&&globalThis.Deno&&globalThis.Deno.args)return!0;if((typeof window<"u"||typeof self<"u")&&typeof BroadcastChannel=="function"){if(BroadcastChannel._pubkey)throw new Error("BroadcastChannel: Do not overwrite window.BroadcastChannel with this module, this is not a polyfill");return!0}else return!1}function te(){return 150}var ne={create:q,close:X,onMessage:Z,postMessage:Q,canBeUsed:ee,type:Y,averageResponseTime:te,microSeconds:z};class L{ttl;map=new Map;_to=!1;constructor(t){this.ttl=t}has(t){const n=this.map.get(t);return typeof n>"u"?!1:n<y()-this.ttl?(this.map.delete(t),!1):!0}add(t){this.map.delete(t),this.map.set(t,y()),this._to||(this._to=!0,setTimeout(()=>{this._to=!1,re(this)},0))}clear(){this.map.clear()}}function re(e){const t=y()-e.ttl,n=e.map[Symbol.iterator]();for(;;){const r=n.next().value;if(!r)break;const o=r[0];if(r[1]<t)e.map.delete(o);else break}}function y(){return Date.now()}function b(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=JSON.parse(JSON.stringify(e));return typeof t.webWorkerSupport>"u"&&(t.webWorkerSupport=!0),t.idb||(t.idb={}),t.idb.ttl||(t.idb.ttl=1e3*45),t.idb.fallbackInterval||(t.idb.fallbackInterval=150),e.idb&&typeof e.idb.onclose=="function"&&(t.idb.onclose=e.idb.onclose),t.localstorage||(t.localstorage={}),t.localstorage.removeTimeout||(t.localstorage.removeTimeout=1e3*60),e.methods&&(t.methods=e.methods),t.node||(t.node={}),t.node.ttl||(t.node.ttl=1e3*60*2),t.node.maxParallelWrites||(t.node.maxParallelWrites=2048),typeof t.node.useFastPath>"u"&&(t.node.useFastPath=!0),t}var oe=p,ie="pubkey.broadcast-channel-0-",u="messages",h={durability:"relaxed"},se="idb";function B(){if(typeof indexedDB<"u")return indexedDB;if(typeof window<"u"){if(typeof window.mozIndexedDB<"u")return window.mozIndexedDB;if(typeof window.webkitIndexedDB<"u")return window.webkitIndexedDB;if(typeof window.msIndexedDB<"u")return window.msIndexedDB}return!1}function M(e){e.commit&&e.commit()}function ae(e){var t=B(),n=ie+e,r=t.open(n);return r.onupgradeneeded=function(o){var i=o.target.result;i.createObjectStore(u,{keyPath:"id",autoIncrement:!0})},new Promise(function(o,i){r.onerror=function(s){return i(s)},r.onsuccess=function(){o(r.result)}})}function ue(e,t,n){var r=Date.now(),o={uuid:t,time:r,data:n},i=e.transaction([u],"readwrite",h);return new Promise(function(s,l){i.oncomplete=function(){return s()},i.onerror=function(c){return l(c)};var a=i.objectStore(u);a.add(o),M(i)})}function ce(e,t){var n=e.transaction(u,"readonly",h),r=n.objectStore(u),o=[],i=IDBKeyRange.bound(t+1,1/0);if(r.getAll){var s=r.getAll(i);return new Promise(function(a,c){s.onerror=function(f){return c(f)},s.onsuccess=function(f){a(f.target.result)}})}function l(){try{return i=IDBKeyRange.bound(t+1,1/0),r.openCursor(i)}catch{return r.openCursor()}}return new Promise(function(a,c){var f=l();f.onerror=function(v){return c(v)},f.onsuccess=function(v){var m=v.target.result;m?m.value.id<t+1?m.continue(t+1):(o.push(m.value),m.continue()):(M(n),a(o))}})}function de(e,t){if(e.closed)return Promise.resolve([]);var n=e.db.transaction(u,"readwrite",h),r=n.objectStore(u);return Promise.all(t.map(function(o){var i=r.delete(o);return new Promise(function(s){i.onsuccess=function(){return s()}})}))}function fe(e,t){var n=Date.now()-t,r=e.transaction(u,"readonly",h),o=r.objectStore(u),i=[];return new Promise(function(s){o.openCursor().onsuccess=function(l){var a=l.target.result;if(a){var c=a.value;c.time<n?(i.push(c),a.continue()):(M(r),s(i))}else s(i)}})}function le(e){return fe(e.db,e.options.idb.ttl).then(function(t){return de(e,t.map(function(n){return n.id}))})}function me(e,t){return t=b(t),ae(e).then(function(n){var r={closed:!1,lastCursorId:0,channelName:e,options:t,uuid:w(),eMIs:new L(t.idb.ttl*2),writeBlockPromise:d,messagesCallback:null,readQueuePromises:[],db:n};
3return n.onclose=function(){r.closed=!0,t.idb.onclose&&t.idb.onclose()},D(r),r})}function D(e){e.closed||x(e).then(function(){return C(e.options.idb.fallbackInterval)}).then(function(){return D(e)})}function pe(e,t){return!(e.uuid===t.uuid||t.eMIs.has(e.id)||e.data.time<t.messagesCallbackTime)}function x(e){return e.closed||!e.messagesCallback?d:ce(e.db,e.lastCursorId).then(function(t){var n=t.filter(function(r){return!!r}).map(function(r){return r.id>e.lastCursorId&&(e.lastCursorId=r.id),r}).filter(function(r){return pe(r,e)}).sort(function(r,o){return r.time-o.time});return n.forEach(function(r){e.messagesCallback&&(e.eMIs.add(r.id),e.messagesCallback(r.data))}),d})}function ge(e){e.closed=!0,e.db.close()}function he(e,t){return e.writeBlockPromise=e.writeBlockPromise.then(function(){return ue(e.db,e.uuid,t)}).then(function(){K(0,10)===0&&le(e)}),e.writeBlockPromise}function ve(e,t,n){e.messagesCallbackTime=n,e.messagesCallback=t,x(e)}function _e(){return!!B()}function ye(e){return e.idb.fallbackInterval*2}var we={create:me,close:ge,onMessage:ve,postMessage:he,canBeUsed:_e,type:se,averageResponseTime:ye,microSeconds:oe},be=p,Me="pubkey.broadcastChannel-",Ie="localstorage";function $(){var e;if(typeof window>"u")return null;try{e=window.localStorage,e=window["ie8-eventlistener/storage"]||window.localStorage}catch{}return e}function R(e){return Me+e}function Pe(e,t){return new Promise(function(n){C().then(function(){var r=R(e.channelName),o={token:w(),time:Date.now(),data:t,uuid:e.uuid},i=JSON.stringify(o);$().setItem(r,i);var s=document.createEvent("Event");s.initEvent("storage",!0,!0),s.key=r,s.newValue=i,window.dispatchEvent(s),n()})})}function ke(e,t){var n=R(e),r=function(i){i.key===n&&t(JSON.parse(i.newValue))};return window.addEventListener("storage",r),r}function Ee(e){window.removeEventListener("storage",e)}function Se(e,t){if(t=b(t),!A())throw new Error("BroadcastChannel: localstorage cannot be used");var n=w(),r=new L(t.localstorage.removeTimeout),o={channelName:e,uuid:n,eMIs:r};return o.listener=ke(e,function(i){o.messagesCallback&&i.uuid!==n&&(!i.token||r.has(i.token)||i.data.time&&i.data.time<o.messagesCallbackTime||(r.add(i.token),o.messagesCallback(i.data)))}),o}function Te(e){Ee(e.listener)}function Ce(e,t,n){e.messagesCallbackTime=n,e.messagesCallback=t}function A(){var e=$();if(!e)return!1;try{var t="__broadcastchannel_check";e.setItem(t,"works"),e.removeItem(t)}catch{return!1}return!0}function Le(){var e=120,t=navigator.userAgent.toLowerCase();return t.includes("safari")&&!t.includes("chrome")?e*2:e}var Be={create:Se,close:Te,onMessage:Ce,postMessage:Pe,canBeUsed:A,type:Ie,averageResponseTime:Le,microSeconds:be},N=p,De="simulate",I=new Set;function xe(e){var t={time:N(),name:e,messagesCallback:null};return I.add(t),t}function $e(e){I.delete(e)}var O=5;function Re(e,t){return new Promise(function(n){return setTimeout(function(){var r=Array.from(I);r.forEach(function(o){o.name===e.name&&o!==e&&o.messagesCallback&&o.time<t.time&&o.messagesCallback(t)}),n()},O)})}function Ae(e,t){e.messagesCallback=t}function Ne(){return!0}function Oe(){return O}var Ue={create:xe,close:$e,onMessage:Ae,postMessage:Re,canBeUsed:Ne,type:De,averageResponseTime:Oe,microSeconds:N},k=[ne,we,Be];function We(e){var t=[].concat(e.methods,k).filter(Boolean);if(e.type){if(e.type==="simulate")return Ue;var n=t.find(function(o){return o.type===e.type});if(n)return n;throw new Error("method-type "+e.type+" not found")}e.webWorkerSupport||(t=t.filter(function(o){return o.type!=="idb"}));var r=t.find(function(o){return o.canBeUsed()});if(r)return r;throw new Error("No usable method found in "+JSON.stringify(k.map(function(o){return o.type})))}var U=new Set,Fe=0,P=function(t,n){this.id=Fe++,U.add(this),this.name=t,this.options=b(n),this.method=We(this.options),this._iL=!1,this._onML=null,this._addEL={message:[],internal:[]},this._uMP=new Set,this._befC=[],this._prepP=null,Je(this)};P._pubkey=!0;P.prototype={postMessage:function(t){if(this.closed)throw new Error("BroadcastChannel.postMessage(): Cannot post message after channel has closed "+JSON.stringify(t));return E(this,"message",t)},postInternal:function(t){return E(this,"internal",t)},set onmessage(e){var t=this.method.microSeconds(),n={time:t,fn:e};T(this,"message",this._onML),e&&typeof e=="function"?(this._onML=n,S(this,"message",n)):this._onML=null},addEventListener:function(t,n){var r=this.method.microSeconds(),o={time:r,fn:n};S(this,t,o)},removeEventListener:function(t,n){var r=this._addEL[t].find(function(o){return o.fn===n});T(this,t,r)},close:function(){var t=this;if(!this.closed){U.delete(this),this.closed=!0;var n=this._prepP?this._prepP:d;return this._onML=null,this._addEL.message=[],n.then(function(){return Promise.all(Array.from(t._uMP))}).then(function(){return Promise.all(t._befC.map(function(r){return r()}))}).then(function(){return t.method.close(t._state)})}}
3,get type(){return this.method.type},get isClosed(){return this.closed}};function E(e,t,n){var r=e.method.microSeconds(),o={time:r,type:t,data:n},i=e._prepP?e._prepP:d;return i.then(function(){var s=e.method.postMessage(e._state,o);return e._uMP.add(s),s.catch().then(function(){return e._uMP.delete(s)}),s})}function Je(e){var t=e.method.create(e.name,e.options);G(t)?(e._prepP=t,t.then(function(n){e._state=n})):e._state=t}function W(e){return e._addEL.message.length>0||e._addEL.internal.length>0}function S(e,t,n){e._addEL[t].push(n),Ve(e)}function T(e,t,n){e._addEL[t]=e._addEL[t].filter(function(r){return r!==n}),je(e)}function Ve(e){if(!e._iL&&W(e)){var t=function(o){e._addEL[o.type].forEach(function(i){o.time>=i.time&&i.fn(o.data)})},n=e.method.microSeconds();e._prepP?e._prepP.then(function(){e._iL=!0,e.method.onMessage(e._state,t,n)}):(e._iL=!0,e.method.onMessage(e._state,t,n))}}function je(e){if(e._iL&&!W(e)){e._iL=!1;var t=e.method.microSeconds();e.method.onMessage(e._state,null,t)}}const He=e=>{const t=e.highIntentSignInStartedAt?Math.max(0,Date.now()-e.highIntentSignInStartedAt):void 0;J.completed({entry_point:e.entryPoint,product_id:e.productId,revenue_amount:e.price,currency:"USD",paywall_id:e.paywallId,credit_balance:e.creditBalance,high_intent_signin_entry_point:e.highIntentSignInEntryPoint,sign_in_to_purchase_ms:t}),e.highIntentSignInEntryPoint&&typeof t=="number"&&(V.track("high_intent_signin_purchased",{sign_in_entry_point:e.highIntentSignInEntryPoint,checkout_entry_point:e.entryPoint,sign_in_to_purchase_ms:t}),F()),j({event:"purchase",sessionId:e.sessionId,price:e.price,entryPoint:e.entryPoint,productId:e.productId,plan:e.plan}),H({event:"trackWebPlan",info:{plan:{weekly:"web_weekly",yearly:"web_yearly",monthly:"web_monthly","yearly-pro-plus":"web_yearly_plus","monthly-pro-plus":"web_monthly_plus","yearly-max":"web_yearly_max","monthly-max":"web_monthly_max"}[e.plan],revenue_amount:e.price,currency:"USD"}})};let g=null;const Ge=()=>((!g||g.isClosed)&&(g=new P("checkout_success")),g),Ye=Object.freeze(Object.defineProperty({__proto__:null,getCheckoutSuccessChannel:Ge,sendCheckoutSuccessEvents:He},Symbol.toStringTag,{value:"Module"}));export{P as B,Ge as g,Ye as u}; 4 5//# debugId=29a8c22a-8ed4-5aec-9d36-c1ce86fb8fd1
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.