Atheism 4 Lent???

Enjoy the 1st 2 weeks of our Lenten adventure into Atheism …and remember these are sermon notes so don’t read with an editing eye, but an open mind!

Week 1

As the Story for All Ages alluded, Christian churches all over the world commemorate the first Sunday of lent Today — the story of Jesus’ 40 day dessert-deprived dance of discernment into the desert that proceeded his public ministry.

I use that terminology not simply because of my addiction to alliteration, but to reiterate a comment I made a few months ago relating religion to an ice-cream shop.

A place of many flavors where any and all are free to order according to their unique tastes or cravings… where cones of various creamy fillings can be consumed side by side in communion.
…And most importantly, in recognition that dinner is dismal minus dessert, a place that embraces spirituality as the sweet compliment to this meal we call life.

Despite the Lenten lead in, today isn’t about Christianity or any one spiritual path in particular — after all there is no ‘wrong’ ice cream — allbeit modern day sugar, dairy, fat and glutton-free vegan varieties of the uber health-conscious do cut it close…. Instead we approach spirituality on the broad spectrum.

Diets and dessert are actually quite common conversational topics in a contemporary culture

whose secularization of the traditional lenten fast has turned it into a well-timed kickstart to bathing suit season dieting; however, standing on the precipice of a lenten adventure into the world of atheism, we are a far cry from traditional…

But for as poorly as my call to atheism might go over in the Presbyterian pulpits I visit most Sundays— it isn’t as off the wall as would seem —that is once we overcome the stigma of sacrilege surrounding the term.

To understand why we are diving into atheism this lenten season maybe it’d help to know, what it is (or isn’t)?

Contrary to popular perception, Atheism is not a religion. Think of it this way…
Atheism is a religion, as much as not playing basketball is a sport.

Religion attempts to define what is – atheism embraces what isn’t.

Religion is like the paint we put on a canvas, while atheism is the blank space… And the true artists are the ones who don’t feel the need to clutter their canvas, but utilize the blank space to emphasis the other elements of their work.

Unfortunately, because of embedded beliefs, fears of the unknown and biases imposed upon us from birth by family, friends, institutions and media few ever experience a blank canvas — and most wouldn’t know what to do with it if they did!

I dabbled in oil painting during college, but given my budget, or lack there of, I had to learn to reuse canvases.

This prescribed dip into atheism is just that… the whitewashing of our canvases in order that upon picking up a paintbrush following this period of self and soul-exploration and spiritual fasting (or fasting from the spiritual) — we are able to chose colors in a more intentional and authentic way.

My favorite atheist, Epicurus, sheds a bit of wisdom in this regard. The name may be familiar as it remains an adjective to describe rich food — an ironic allusion given the ice-cream analogy!

Epicurus’ taught that the ultimate pursuit of life lies in our embrace and awareness of the present so to choose the path of greatest fulfillment or enjoyment in any give situation…

…and for this he was deemed a heretic! Choose enjoyment? blasphemy!
To this day the Greek word for ‘heretic’ is Epicuric — a term that quite simply means ‘to chose.’

The problem of religion, if I might carry the metaphor, is not that the flavors are limited, but that we limit our opportunity to savor their diversity via the prescriptive or superficial manner we approach them.

The problem with religion lies in our approach… As a society we often blindly accept the one

passed on to us by the loudest voice instead choosing the one that calls to our unique cravings. Choosing is heretical remember!

How often do we clear our pallets and sit with our emptiness long enough to identify what it is we are truly craving?

Instead we repeat religious rituals of others in a routine fashion that relegates the richness of the menu before us.

Thus the Complacent Christian at the counter orders vanilla, Buddhist’s steer towards soy sorbet, Muslims break Ramadan with rum raisin, Quakers call for cookie dough, Mormon freshen their breath with mint chocolate chip (helps with the door to door greeting), and the crazy Universalist Unitarian’s ruffles things up with rainbow sherbet!

Thats great, but the joy of the ice cream shop is tasting the diversity!

So what if we took the 40-day lenten fast as an opportunity to step out of the routine, ritual, perception and practices imposed on us by the world and wandered into the wilderness of our souls instead?

What would it look like if we approached this longstanding tradition of religious observance as an opportunity to fast from religion as a whole?

The word Lent is derived from the word Lenz, or ‘long.’ Originally depicting the progressive length of springtime sunlight, but later was associated with the modern word ‘lens.’

Wandering into the wilderness of self- introspection is not easy… the days might indeed be long and lonely (their supposed to, that’s part of the name and game)
Open reflection, these not always pleasant times of deprivation and longing polish the lens through which we see the world we return to.

The call for fasting and introspection is far from unique to the Christian tradition, nor is the number 40…

Throughout the Judeo-Christian Old testament: 1.In Genesis 40 days and nights of rain caused a

flood which destroyed the earth
2.The Hebrews spent 40 years in the wilderness

before reaching the promised land and… 3.Moses fasted for 40 days before receiving the

ten commandments on Mount Sinai.

However, our goal these next weeks was to shut the cover of other’s stories and edit our own, …so inspired by a statement of the acclaimed AA Milne, author of the one and only Winnie the Pooh we start with the Bible:

‘The Old Testament,” says Milne, “is responsible for more atheism, agnosticism, disbelief than any book ever written. It has emptied more churches than all the counter-attractions of cinema, motor- bicycle and golf course.’

Amidst these 40-ish days when we shut bibles, gitas, or Korans and maybe we’ll open up one of Millan’s works instead! In all seriousness, one of my favorite personal religious reads of all time is the ‘Tao of Pooh!’

I found myself apologizing to Ben a few weeks ago after getting a message he couldn’t volunteer on our retreat.

“What do you mean?” I asked in an annoyed response.”

Well, I am stuck in China he responded… and if

we get out, we have to lock ourselves in the house for two weeks.

We like to approach adventure in an outward fashion. Where will we go, what will we see. It’s exciting and enticing. Even a vacation…

The Sandals wandered east in anticipation of a culturally rich celebration and exploration of Chinese new year; however, they were thrown

into a much wilder wilderness upon entering Corona quarantine.

Fun fact, I did the math and today marks 40 days since the sandals first boarded the plane!

The Sandal’s trip east got me thinking of a predecessor, a kindred spirit of Jesus who bears a parallel story of wandering; but with an inward focus.

Little did Gautama Buddha know upon stumbling on the Bodhi tree after 6 years of outward exploration, that his true adventure was just beginning!

Thus preceding pooh bear’s taoism, Jesus’s wanderings, and Epicurus’s heresy; Guatama sat down to embark on a 49 day adventure into the unknown — without ever moving!

Fun Fact: Devout Eastern Christians match the over-achieving 49 days of Guatama by culminating lent with a 9 day silent reflection.

Siddhartha Gautama had learned a lot in 6 years of aesthetic exploration wandering lands of India, but true enlightenment came when he wandered within.

This past Wednesday people of all shapes and sizes spread ashes or dust on their foreheads in light of the unifying theme of overcoming ego that both Buddha’s inward and Jesus’ outward wanderings insinuated…

Today I hope we heed the call of the wild…and embrace the uncomfortable feelings, the unanswered questions, the darkness of doubt and instances of isolation that await our turning inward without a spiritual safety net.

I hope each of us is able to set aside a time and space to empty ourselves of ego and embedded distractions so to explore what lies within the covers of our own stories…

To close our eyes and reground ourselves… for of dust we were formed and to it we return…

Dust in the Wind:

I usually split the first Sunday sermon with Russ… but today I am going to split it with myself! I revealed my bi-polarity in a past sermon so this shouldn’t catch anyone off gaurd.!

The first half of my atheism reflection was partially inspired by a Sufi saying:
We must first travel to god, then from God, then with…

This second half first we journey out, then in, then together:
I will dance lightly through my story in hope that inspires you to explore your own and find parallels that might allow us to wander the wilderness in partnership in the weeks, months and so forth to come…

***Rev Ryan took this time to share his personal story***

Week 2:

Childrens sermon notes:  

What does a Banana taste like?

How about a Kiwi?

Garlic (ew)

Which is better… being told what something tastes like or tasting it??

Last week during the old people sermon I compared religion to an ice cream shop where we are able to taste a variety of flavors — pretty much everything but Garlic!.   

I didn’t want to put ice cream in Rev Russ’ box because that could get messy… but candy doesn’t melt. 

Just like ice cream, candy, or Banana’s, religion is better tasted then explained!

Readings: 

Ruldolf Otto on Worship: 

“…it grips or stirs the human mind..The feeling of it may at times come sweeping like a gentle tide, pervading the mind with a tranquil mood of deepest worship. It may pass over into a more set and lasting attitude of the soul, continuing, as it were, thrillingly vibrant and resonant, until at last it dies away and the soul resumes its “profane,” non-religious mood of everyday experience. It may burst in sudden eruption up from the depths of the soul with spasms and convulsions, or lead to the strongest excitements, to intoxicated frenzy, to transport, and to ecstasy. It has its wild and demonic forms and can sink to an almost grisly horror and shuddering.” 

And now a mystical and magical dragon counterpart of rounds out Otto’s acceptations… Here is the mighty Puff speaking of that same spirit- 

…Now, I’m going to borrow the living thing inside you,” speaks to Jackie Draper (the real boy,)” and place it INSIDE Jackie Paper. Your living thing. You wonder what it is? It is that what causes you to laugh and to cry and to care. It is that which makes apples crunchy and tells your nose to tingle on a crystal winter’s morning. It’s kept in your left ear, you know.

Music break: Puff the magic dragon

Sermon: 

15%… That number is exponentially higher than it was when Alduous Huxely first penned the novel “A Brave New World,’ and that was recorded before our response to the recent stock market turmoil and Corona virus fears that have thrown America into an anxiety inducing frenzy.  Yes, 15% or 1 in every 6 individuals in our population currently take a prescribed anti-depressant or anxiety medication… and that doesn’t take into account the ‘self-medicating’ masses, who given the prevalence of liquor stores and dispensaries lining many more than 15% of our city streets, likely comes in a bit higher than 1 in 6! Self-medication is a wide spectrum and standing here in a pulpit on a Sunday maybe it is morning mass or a yogaic meditation that provides your fix!

For the non-nerdy, Huxely’s 1932 novel, A Brave New World, is a dystopian satire based on an SSRI-satiated society — quieted and controlled by a happy little make pretend pill, Soma, the precursor to our modern day Prozac! 

“But I don’t want comfort. I want God,” proclaims the protagonist, Jon the Savage, from perched with pill in hand in observance of the sheeple and subdued society he had broken away from. 

“I want poetry! I want real danger, I want freedom, I want goodness. I want sin,” the savage finally screams out in an act of existential extremism as he choses to battle the extremes of pain and pleasure over the happy numbness of a pill. 

Jon the savage sought to taste the sweetness of the spirit, to bite into the banana we alluded to in the children’s sermon firsthand, instead of entertain the adjectives another uses to describe it. 

Despite his initial hope to satiate the savage, the controller must agree to Jon’s rebellion: “Actual happiness always looks pretty squalid in comparison with the overcompensations for misery. And, of course,” he continues, ‘stability,’ [though safe,] isn’t nearly so spectacular as instability. And being contented has none of the glamour of a good fight against misfortune, none of the picturesqueness of a struggle with temptation, or a fatal overthrow by passion or doubt. 

Happiness,” he concludes, “is never grand.”

I feel it is important to note early on that I do not write in critique of, but as one of, the 15%. Over the years I have been on and off anti-anxiety medications myself… 

As a teen doctors sought to ease my eating disorder dance with Paxil; pacifying me for a period via a state of passion-less ‘happiness’, but soon enough I sought the same savage sensations of Jon’s character and gave up the stability of my modern day “soma.” 

I made it for a bit, thriving off the elation of endurance athletics and a dose of ego as I allowed adrenaline and dopamine to become my new drugs of choice. I felt I had found my spiritual, social and emotional flow — balanced by bursts of runners high and religious education.  

But balance is a fleeting thing, especially when rooted in ego over authenticity, and I found myself literally and physically knocked out of ‘stability’ when my professional running career came to a crashing end along with my confidence upon being stuck by a car.  I was thrown into the wilderness, a depressed atheist amidst a Christian seminary and a has-been athlete whose lack of identity and fears of the unknown finally found him a new friend in Zoloft.

The comfort was great, but just as before when comfort corrodes into complacency, that savage voice starts to speak from deep in the soul. So again I weened off the pills and returned to the wilderness… 

That was until some recent health hiccups proved a bit to much to handle as of late and a little Ativan was needed to aid in my adventures. 

So where does this fit into Sunday morning worship? Outside the fact that you likely need an anti-anxiety med in order to make it through one of my off the wall sermons! 

Glad you asked!   Today we revisit a call into the wilderness that I introduced last week… 

A call to an adventure of introspection and exploration from an atheistic approach of the Lenten season. 

A time of which to explore our emotions — which may come as an experience of fullness and elation or emptiness and isolation — or a rollercoaster ride between them!

 It may be pleasant or painful, but it is only in these times of which in ditching safety net of our spiritual ‘Soma’ that we might hear the deeper yearnings of our soul in route to finding the proper prescription moving forward. 

It is only by stepping back from the comforts of religious routine that we might re-evaluate, relegate and/or reinvigorate therituals of our religious experience.  

It is only by shedding the superficial — and that means emptying ourselves as a whole — that we might reintroduce the mystical aspects of what the institution has made mundane moving forward. 

That can be scary! It should be! For as Rudolf Otto acknowledged of authentic experience in our reading, “It has its wild and demonic forms and can sink to an almost grisly horror and shuddering.” But remember, experiences are temporal and the fear is part of the ecstasy.   

“What do we do?” Jackie Paper asked Puff the Magic Dragon in anticipatory anxiety of stepping into the unknown.

“Well, have no fear is all,” Puff replied in utter simplicity.

“I am scared to have no fear!” Said Jackie, unable let go of control of fear, but yearning to frolic freely in the Autumn mist on a land called Honah Lee.

The world controls us via fear — and either consciously or subconsciously, as Jackie Paper alludes, we are kind of addicted to it. “We are scared to have no fear!”  Or maybe scared of what we will do and feel if we free ourselves from fear! 

You see it daily, whether in fear-rooted rallying calls shouted through megaphones of street corner prophets or through newscasts that dramatize viruses into pandemics.  

We live in a world of fear, but our adherence to it is a choice. “Be not conformed to this world, but transformed by the renewal of your mind,” declares the similarly savage voice of the Apostle Paul in his Biblical Book to the Roman’s, “For it is only by testing that you may discern what is good and acceptable and perfect.

I love sailing. And in order to maintain the fastest point of sail one must consistently ‘test’ the wind by tightening all your sails while slowly steering into the wind until the angle becomes too much and you reach what is known as the dead zone. As soon as the sails begin to luff you pull back on the rudder just far enough so that they snap with the sound of the wind and then — VAMOOSE — the boat tilts to its side and leaps forward! 

Authentic spirituality, real religion, is alive and unpredictable just like the wind and in order to keep on a relevant and reverent course we must periodically allow ourselves to luff helplessly for brief periods in order to find the best angle.

In freeing ourselves from worldly conformity, comfort, and complacency we must consistently test the balance of: 

Ritual vs routine 

Elation vs Depression

And Mystical vs Mundane 

And in such we cannot fear ‘feeling’ — because we strip the feel of faith if always attempting to define faith with words or satiate our yearnings with a quick-fix spiritual ssri’s.

The best way to to strip the mystical from the majestic, to forgo the fantasy of Puff the Magic Dragon, is to attempt to define, describe, or defend it. In such Puff (the dragon or the existential experience of ineffability that Peter, Paul and Mary were more likely speaking of) loses its magic. 

German theologian, Rudolf Otto described the ineffable or ‘numatic’ experience deemed ‘worship’ in our opening reading as a “griping or stirring  of the human mind. A feeling sweeping like a gentle tide and tranquil mood passing over into a more set and lasting attitude of the soul; vibrant and resonant, until bursting in a sudden eruption of spasms and convulsions that lead to the strongest excitements, intoxicated frenzy, transport, and ecstasy.” 

When was the last time you described a church ritual in that fashion? In a society satiated by spiritually-based rituals that have become more repetitious than religious, it is essential to seek out the deeper meaning that these experiences of worship signify in your personal life — and in doing such, to open yourself to new experiences as well. 

To this I find often times that it is the awestricken atheist — entranced in the aesthetic wonder and beauty of the present, the splendor of a wave or sweetness of a rose, to be nearer to the divine and the experience of eternity than a ‘believer’ caught up in formulaic definitions of the divine.

I balanced dual Bachelors degrees during my undergraduate studies — Theology and English — and it was in my junior year that I had the opportunity to read the Bible with one foot in both.  

I was in an English class at the time that approached the text from a literary standpoint with a focus on the transcendental elements of the poetic writings of Jewish mystics authors… while at the same time enrolled in an exegetical course that took a dry and dispensational (or literal) vantage point to the same text.

Whereas the secularized English approach emphasized an artistic reading apart from discrepancies over minute details allowed me to feel the emotions and ecstasy of the authors…

the prescriptive fashion and rules that came with the religious reading indeed made mundane its mystical magnitude. 

We wouldn’t read Milton’s ‘Paradise Lost’ in skeptical sogginess arguing over the accuracy of the fall from Edan would we? But wars have been fought over parallel beliefs around the Book of Genesis and Adam and Eve’s accuracy.  

We wouldn’t approach the mystical journey in Moby Dick with the same skeptic lens as one would read the Book of Mormon or a Shakespearean sonnet in the same fashion as a psalm (fun fact, Shakespeare was said to have actually translated King James Bible!) 

This has been a heavy sermon thus far… and that’s with reason as heavy s more often how we approach Religion. 

We too often see spirituality with an overly serious slightly soggy sense! However, as the late great satirical Saint Thomas Aquainas might agree, maybe the trick lies in our gaity… our turn towards the playfulness of Puff the Magic Dragon instead of pains of things such as purgatory!  

“Jokes and plays are words and gestures that are not instructive but merely seek to give lively pleasure” he writes of scripture. “We should enjoy them. They are governed by the virtue of witty gaiety to which Aristotle refers (Ethics II28aI) and which we call pleasantness. 

“A ready-witted man is quick with repartee and turns speech and action to light relief. For it is against reason,” he continues, “to be burdensome to others, showing no amusement and acting as a wet blanket

Those without a sense of fun, who never say anything ridiculous, and are cantankerous with those who do, these are vicious, and are called grumpy and rude.”

There is a reason I have and will keep returning to the allegory of religion as an ice-cream shop throughout these weeks… several actually! 

First and foremost: Religion is far too important to be taken seriously!  For all the big words and philosophical conundrums I’ve created in the last 15 minutes just remember that! 

Laugh at yourself and when the road gets rough, remember rocky road is waiting in a cone at the counter! 

Second: Lent is a time of fasting… If you were to eat ice-cream every meal of every day it would not be quite as special. It is important every so often that you sit with your hunger and cravings, not seek to satiate them with the first thing on the menu The same is true with our feelings and our grabbing the nearest SSRI. It is only then will you be able to discern how to truly fill your emptiness moving forward and thus figure out what your soul (and stomach) truly crave to fill the void. 

Finally, double and triple scoops are welcome! I am a double scoop of Unitarian Universalist and Presbyterian. At least in orthodoxy! In an attempt at a more authentic definition I have actually qualified myself in the past as an ‘Agnostic Christian Mystic.” Say that slowly and it will make sense: 

Agnostic – A (not) Gnostic (know)… 

Christian – One who finds the whole Jesus-y flavor of ice cream best tickles my taste buds.

And Mystic – One who, all said and done, ditches definitions as a and simply attempts to lose themselves to the experience.

So one who lives by experience, claims not to know the truth, but likes the Christian flavor for the time. 

That doesn’t even touch on the toppings we could put on it!  

So this week continue into the unknown and explore the emptiness of your soul in order that you can experience the ecstatic experience Otto and the gang alluded to earlier when you return to the Ice Cream store counter…

And though you may hit some scary spots along the way, remember not to take yourself or your spirituality too seriously and it will all be okay! 


!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).version={})}(this,(function(exports){"use strict";function __awaiter(e,t,n,i){return new(n||(n=Promise))((function(s,a){function o(e){try{d(i.next(e))}catch(e){a(e)}}function r(e){try{d(i.throw(e))}catch(e){a(e)}}function d(e){var t;e.done?s(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,r)}d((i=i.apply(e,t||[])).next())}))}var Blocking;"function"==typeof SuppressedError&&SuppressedError,function(e){e.PENDING="pending",e.NONE="none",e.BLOCKED="blocked",e.ALLOWED="allowed"}(Blocking||(Blocking={}));class Adblock{constructor(e){this.state=Blocking.PENDING,this._mocked=!1,e?(this.state=e,this._mocked=!0):this.state=Blocking.ALLOWED}inject(){return __awaiter(this,void 0,void 0,(function*(){}))}get isBlocked(){return this.state===Blocking.BLOCKED}get isAllowed(){return this.state===Blocking.ALLOWED}toContext(){return{user_has_ad_blocker:null,is_ad_blocked:null}}}const OBFUSCATING_BASE_64_PREFIX="UxFdVMwNFNwN0wzODEybV",encode=e=>OBFUSCATING_BASE_64_PREFIX+btoa(unescape(encodeURIComponent(JSON.stringify(e))));function decode$1(e){return JSON.parse(decodeURIComponent(escape(atob(e.replace(OBFUSCATING_BASE_64_PREFIX,"")))))}var version="0.3.5";const APP_ENV="production",TRACKING_DOMAIN="https://click-use1.bodis.com/",SALES_JS_URL="https://parking.bodiscdn.com/js/inquiry.js",GOOGLE_CAF_TIMEOUT_SCRIPTS="0",GOOGLE_CAF_TIMEOUT_CALLBACKS="0",GOOGLE_MV3_URL_PARAMS="abp=1&bodis=true",APP_VERSION=version,COOKIE_CONSENT_JS_URL="",isLocal=(e=!0)=>"production"!==APP_ENV;function log(...e){}const FIND_DOMAIN_URL="_fd",getFindDomain=()=>{const e=`/${FIND_DOMAIN_URL}${window.location.search}`;return fetch(e,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"}}).then((e=>e.text())).then(decode$1)};var ZeroClickReasons;!function(e){e.CAF_TIMEDOUT="caf_timedout",e.CAF_ADLOAD_FAIL_RS="caf_adloadfail_rs",e.CAF_ADLOAD_FAIL_ADS="caf_adloadfail_ads",e.DISABLED_GB="disabled_gb",e.DISABLED_AB="disabled_ab",e.DISABLED_DS="disabled_ds",e.AD_BLOCKED="ad_blocked",e.PREFERRED="preferred"}(ZeroClickReasons||(ZeroClickReasons={}));const getZeroClick=e=>__awaiter(void 0,void 0,void 0,(function*(){const t=Object.assign(Object.assign({},e),{type:"zc_fetch"});return fetch("/_zc",{method:"POST",body:JSON.stringify({signature:encode(t)}),headers:{Accept:"application/json","Content-Type":"application/json"}}).then((e=>__awaiter(void 0,void 0,void 0,(function*(){try{return decode$1(yield e.text())}catch(e){return{}}}))))})),waiter=(e,t)=>new Promise((n=>{t(e),e<=0&&n();let i=e;const s=()=>{i>0?(i-=1,t(i),setTimeout(s,1e3)):n()};s()})),decode=()=>JSON.parse(atob(window.park||""));var PAGE_STYLES='* {\n font-smoothing: antialiased;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\nhtml, body {\n width: 100%;\n margin: 0;\n}\n\nhtml {\n background-color: #2B2B2B;\n height: 100%;\n}\n\nbody {\n min-height: 90%;\n font-family: Arial, sans-serif;\n letter-spacing: 1.2px;\n color: #ccc;\n text-align: center;\n}\n\n/* App Target - This starts hidden until we apply a class to "activate" it */\n\n#target {\n opacity: 0;\n visibility: hidden;\n}\n\n/* Status Messages - These are displayed when we are not rendering ad blocks or Related Search */\n\n#pk-status-message {\n height: 100vh;\n width: 100%;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n}\n\n/* Sales Box - Default State */\n\n#sales-box {\n display: block;\n width: 100%;\n padding: 3px;\n text-align: center;\n text-decoration: none;\n color: #8EABC0;\n}\n\n#sales-box a {\n display: block;\n width: 100%;\n text-decoration: inherit;\n color: #8EABC0;\n cursor: pointer;\n}\n\n/* Sales Box - Highlighted State */\n\n#sales-box.is-highlighted {\n position: relative;\n z-index: 1;\n background: #032438 linear-gradient(to top, #044368 0%, #000 100%);\n box-shadow: 0 0 15px 0 #000;\n border-bottom: 3px solid #262626;\n}\n\n#sales-box.is-highlighted a {\n line-height: 1.3;\n display: inline-block;\n font-size: 18px;\n color: #fff;\n text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);\n background: none;\n}\n\n/* Ellipsis Loader */\n\n.pk-loader {\n display: inline-block;\n position: relative;\n width: 80px;\n height: 80px;\n}\n\n.pk-loader div {\n position: absolute;\n top: 33px;\n width: 13px;\n height: 13px;\n border-radius: 50%;\n background: #ccc;\n animation-timing-function: cubic-bezier(0, 1, 1, 0);\n}\n\n.pk-loader div:nth-child(1) {\n left: 8px;\n animation: pk-anim-1 0.6s infinite;\n}\n\n.pk-loader div:nth-child(2) {\n left: 8px;\n animation: pk-anim-2 0.6s infinite;\n}\n\n.pk-loader div:nth-child(3) {\n left: 32px;\n animation: pk-anim-2 0.6s infinite;\n}\n\n.pk-loader div:nth-child(4) {\n left: 56px;\n animation: pk-anim-1 0.6s infinite;\n animation-direction: reverse;\n}\n\n.pk-loader-text {\n position: fixed;\n font-size: 12px;\n right: 20px;\n bottom: 20px;\n font-weight: lighter;\n}\n\n/* Utilities */\n\n.pk-message-title {\n font-size: 2em;\n font-weight: bold;\n}\n\n.pk-page-ready {\n opacity: 1 !important;\n visibility: visible !important;\n}\n\n@media only screen and (max-width: 600px) {\n .hidden-xs {\n opacity: 0;\n visibility: hidden;\n }\n}\n\n/* Animation */\n\n@keyframes pk-anim-1 {\n 0% {\n transform: scale(0);\n }\n 100% {\n transform: scale(1);\n }\n}\n\n@keyframes pk-anim-2 {\n 0% {\n transform: translate(0, 0);\n }\n 100% {\n transform: translate(24px, 0);\n }\n}\n';const APP_TARGET="#target",MESSAGE_SELECTOR="#pk-status-message",PAGE_READY_CLASS="pk-page-ready",MESSAGE_TEMPLATE='
';class Renderer{constructor(e){this._domIsReady=!1,this.revealPage=()=>{this.domNode&&this.domNode.classList.add(PAGE_READY_CLASS)},this.injectMetaDescription=e=>{if(!e||0===e.length)return;window.document.title=e;const t=document.createElement("meta");t.setAttribute("name","description"),t.setAttribute("content",`See relevant content for ${e}`),document.getElementsByTagName("head")[0].appendChild(t)},this.domNode=document.querySelector(e)}get domIsReady(){return this._domIsReady}set domIsReady(e){this._domIsReady=e,e&&this.injectStyles(PAGE_STYLES)}message(e,t=""){if(this.injectHTML(MESSAGE_TEMPLATE),this.domNode){const t=this.domNode.querySelector(MESSAGE_SELECTOR);t&&(t.innerHTML=e)}t&&this.injectMetaDescription(t)}salesBanner(e){if(!e)return;const{href:t,position:n,message:i,theme:s}=e,a=document.createElement("div"),o=n||"",r="HIGHLIGHT"===s?"is-highlighted":"";a.innerHTML=t?`\n
\n ${i}\n
\n `:`\n
\n ${i}\n
\n `,"BOTTOM"===n?(a.style.marginTop="30px",document.body.appendChild(a)):document.body.prepend(a)}loading(e){let t="a few";e>0&&(t=`${e}`),this.message(`\n
\n
\n
\n
\n
\n
\n \n `)}adBlockMessage(){this.message("\n

Ad block detected

\n Please disable your ad blocker and reload the page.\n ")}errorParkingUnavailable(){this.message("\n

An Error Occurred

\n

Parking is currently unavailable. We'll be right back.

\n ")}errorParkingServicesDisabled(){this.message("\n

An Error Occurred

\n

Services for this domain name have been disabled.

\n ")}errorParkingNoSponsors(e){this.message(`\n
\n No sponsors\n
\n \n ${window.location.hostname} currently does not have any sponsors for you.\n \n `,e)}imprint(e){if(!e)return;const t=document.querySelector("#imprint-text");t&&(t.innerHTML=e.replace(/(?:\r\n|\r|\n)/g,"
"))}injectStyles(e){if(!e)return;const t=document.createElement("style");t.innerHTML=e.toString(),document.head.appendChild(t)}injectScript(e){if(!e)return;const t=document.createElement("script");t.type="text/javascript",t.src=e,document.body.appendChild(t)}injectJS(js){js&&0!==js.length&&eval(js)}injectHTML(e){this.domNode?(e&&(this.domNode.innerHTML=e),this.domIsReady=!0):(this.domIsReady=!1,console.error("An error occurred when trying to render this page. DOM node not found."))}prerender(e){this.injectMetaDescription(e.domain),this.injectHTML(e.html)}template(e){var t;this.domIsReady||this.prerender(e),this.injectStyles(e.stylesheet),this.imprint(e.imprint),this.salesBanner(e.salesBanner),this.injectJS(e.javascript),null===(t=e.scripts)||void 0===t||t.forEach((e=>{this.injectScript(e)}))}}const Render=new Renderer(APP_TARGET);var Type;!function(e){e[e.Failed=0]="Failed",e[e.Disabled=1]="Disabled",e[e.Redirect=2]="Redirect",e[e.Parking=3]="Parking",e[e.Sales=4]="Sales"}(Type||(Type={}));let State$2=class{get trackingType(){return this._trackingType}set trackingType(e){this._trackingType=e}get track(){return!!this.trackingType}};class Disabled extends State$2{constructor(){super(...arguments),this.type=Type.Disabled}static build(e,t){let n;switch(t===Blocking.BLOCKED&&(n="adblocker"),e.cannotPark){case"disabled_mr":case"disabled_rc":n=e.cannotPark}if(n){const t=new Disabled;return t.reason=n,t.domain=e.domainName,t}}get message(){switch(this.reason){case"adblocker":return"

Ad block detected

Please disable your ad blocker and reload the page.";case"disabled_mr":return`

Invalid URL

Referral traffic for ${this.domain} does not meet requirements.`;default:return`

No sponsors

${this.domain} currently does not have any sponsors for you.`}}get trackingType(){switch(this.reason){case"adblocker":return"ad_blocked_message";case"disabled_mr":return"invalid_referral";case"disabled_rc":return"revenue_cap_reached";default:return"no_sponsors_message"}}toContext(){return{cannotPark:this.reason}}}class Failed extends State$2{constructor(){super(...arguments),this.type=Type.Failed}static cannotPark({cannotPark:e}){switch(e){case"disabled_b":case"prohibited_ua":case"disabled_fr":case"revenue_cap_reached":case"disabled_mr":case"disabled_rc":case"disabled_cp":case"invalid_domain":{const t=new Failed;return t.reason=e,t}}}static noSponsors({cannotLoadAds:e}){if(e){const e=new Failed;return e.reason="no_sponsors",e}}static fromError(e){const t=new Failed;return t.reason="js_error",t.error=e,t}get track(){return!!this.trackingType}get message(){switch(this.reason){case"disabled_fr":case"disabled_rc":case"no_sponsors":return`\n

No Sponsors

\n

${this.domain} currently does not have any sponsors for you.

`;case"disabled_mr":return`\n

Invalid URL

\n

Referral traffic for ${this.domain} does not meet requirements.

`;case"js_error":return"\n

An Error Occurred

\n

Parking is currently unavailable. We'll be right back.

\n ";default:return"\n

An Error Occurred

\n

Services for this domain name have been disabled.

\n "}}get trackingType(){switch(this.reason){case"disabled_rc":return"revenue_cap_reached";case"disabled_mr":return"invalid_referral";case"adblock":return"ad_blocked_message";case"no_sponsors":return"no_sponsors_message"}}get domain(){return window.location.hostname}toContext(){return{cannotPark:this.reason}}}function unpackPHPArrayObject(e,t){const n=e[t];if(n&&!Array.isArray(n))return n}class Parking extends State$2{constructor(){super(...arguments),this.type=Type.Parking}static build(e,t){const n=new Parking;n.domain=e.domainName,n.html=e.template,n.scripts=e.scripts||[],n.javascript=e.inlineJs,n.stylesheet=e.styles,n.imprint=e.imprintText;const i=unpackPHPArrayObject(e,"salesSettings"),s=(null==i?void 0:i.status)&&"NOT_FOR_SALE"!==(null==i?void 0:i.status);if(s){const{status:e,location:t,message:s,link:a,type:o}=i;n.salesBanner={message:s,href:a,position:t,theme:o}}return t.wantsToServeAds?n.trackingType="ctr":s&&window.location.pathname.startsWith("/listing")?n.trackingType="sales":n.trackingType="visit",n}toContext(){return{}}}class Sales extends State$2{constructor(){super(...arguments),this.type=Type.Sales}static build(e){const t=unpackPHPArrayObject(e,"salesSettings");if(!t)return;const{status:n}=t;return["NOT_FOR_SALE","EXTERNAL_MARKET","URL"].includes(n)?void 0:window.location.pathname.startsWith("/listing")?new Sales:void 0}toContext(){return{}}get trackingType(){return"sales"}init(e){window.context=e;const t=document.createElement("script");t.type="text/javascript",t.src=SALES_JS_URL,document.head.append(t)}}class Redirect extends State$2{constructor(){super(...arguments),this.type=Type.Redirect}static build(e,t,n){const i=unpackPHPArrayObject(e,"salesSettings"),{zeroClickDelay:s,skenzoRedirect:a,skenzoUrl:o,showInquiryForm:r,canZeroClick:d,cannotPark:c}=e;if(window.location.pathname.startsWith("/listing")&&["EXTERNAL_MARKET","URL"].includes(null==i?void 0:i.status)){if(null==i?void 0:i.external)return Redirect.toState(i.external,"sales");if(null==i?void 0:i.link)return Redirect.toState(i.link,"sales")}if(n.cannotLoadAds&&n.wantsToServeAds)return Redirect.toState(n.noAdsRedirectUrl,"no_ads_redirect");if(d&&(null==t?void 0:t.reason)){if(null==t?void 0:t.redirect)return Redirect.toState(t.redirect,"zc_redirect",s);if(a&&o)return Redirect.toState(o,"skenzo_redirect")}return(null==i?void 0:i.status)&&"NOT_FOR_SALE"!==(null==i?void 0:i.status)&&(n.cannotLoadAds||n.cannotLoadAds&&!d||r)?Redirect.toState(`${window.location.origin}/listing`):void 0}static toState(e,t,n=0){const i=new Redirect;return i.url=e,i.delay=n,i.trackingType=t,i}toContext(){return{}}}const browserState=()=>{var e,t,n,i,s;const{screen:{width:a,height:o},self:r,top:d,matchMedia:c,opener:l}=window,{documentElement:{clientWidth:h,clientHeight:u}}=document;let p;try{p=(new Date).getTimezoneOffset()/60*-1}catch(e){p=null}return{popup:!(!l||l===window),timezone_offset:p,user_preference:null===(e=null===Intl||void 0===Intl?void 0:Intl.DateTimeFormat())||void 0===e?void 0:e.resolvedOptions(),user_using_darkmode:Boolean(c&&c("(prefers-color-scheme: dark)").matches),user_supports_darkmode:Boolean(c),window_resolution:{width:null!=h?h:0,height:null!=u?u:0},screen_resolution:{width:null!=a?a:0,height:null!=o?o:0},frame:d===r?null:{innerWidth:null!==(t=null==r?void 0:r.innerWidth)&&void 0!==t?t:0,innerHeight:null!==(n=null==r?void 0:r.innerHeight)&&void 0!==n?n:0,outerWidth:null!==(i=null==r?void 0:r.outerWidth)&&void 0!==i?i:0,outerHeight:null!==(s=null==r?void 0:r.outerHeight)&&void 0!==s?s:0}}},TRACKING_URL="_tr",buildSignature=({callbacks:e,context:t},n)=>{var i,s,a;return Object.assign({ad_loaded_callback:null==e?void 0:e.adLoadedCallback,app_version:version,caf_client_id:null===(i=null==t?void 0:t.pageOptions)||void 0===i?void 0:i.pubId,caf_timed_out:null==e?void 0:e.cafTimedOut,caf_loaded_ms:null==e?void 0:e.cafLoadedMs,channel:null===(s=null==t?void 0:t.pageOptions)||void 0===s?void 0:s.channel,fd_server_datetime:t.fd_server_datetime,fd_server:t.fd_server,flex_rule:t.flex_rule,host:t.host,ip:t.ip,ivt:null===(a=null==t?void 0:t.pageOptions)||void 0===a?void 0:a.ivt,js_error:t.js_error,no_ads_redirect:t.noAdsRedirect,page_headers:t.page_headers,page_loaded_callback:null==e?void 0:e.pageLoadedCallback,page_method:t.page_method,page_request:t.page_request,page_time:t.page_time,page_url:t.page_url,reportable_channel:t.reportableChannel,reportable_style_id:t.reportableStyleId,template_id:t.templateId,type:n,user_has_ad_blocker:t.user_has_ad_blocker,uuid:t.uuid,zeroclick:t.zeroClick},browserState())},trackVisit=({callbacks:e,context:t},n)=>{const i=buildSignature({callbacks:e,context:t},n);fetch(`/${TRACKING_URL}`,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({signature:encode(i)})})};var State$1;!function(){if(!window.CustomEvent){function e(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};const n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}e.prototype=window.Event.prototype,window.CustomEvent=e}}(),function(e){e[e.Pending=0]="Pending",e[e.Loaded=1]="Loaded",e[e.Failed=2]="Failed"}(State$1||(State$1={}));class Provider{constructor(e){this.timeoutSeconds=5,this.handlePixelEvent=e=>{switch(this.state){case State$1.Failed:break;case State$1.Pending:setTimeout((()=>this.handlePixelEvent(e)),100);break;case State$1.Loaded:this.onPixelEvent(e)}},this.watch=()=>{switch(this.state){case State$1.Loaded:case State$1.Failed:break;case State$1.Pending:this.isLoaded()?this.state=State$1.Loaded:this.isTimedOut()?this.state=State$1.Failed:setTimeout(this.watch,50)}},this.config=e,this.identifier&&this.identifier.length>0?(this.state=State$1.Pending,this.timeoutAt=new Date,this.timeoutAt.setSeconds(this.timeoutAt.getSeconds()+this.timeoutAfter()),this.injectPixel()):this.state=State$1.Failed}get identifier(){var e;return null===(e=this.config)||void 0===e?void 0:e.key}get pixelEvents(){var e;return null===(e=this.config)||void 0===e?void 0:e.pixel_events}injectPixel(){this.injectedAt||(this.injectedAt=new Date,this.inject(),this.watch())}inject(){const e=document.createElement("script");e.text=this.script,document.head.appendChild(e)}isTimedOut(){return+new Date>=+this.timeoutAt}timeoutAfter(){return this.timeoutSeconds}selectPixelEvents(e){if(Array.isArray(this.pixelEvents))return this.pixelEvents.filter((t=>"term-view"===t.trigger&&"visit"===e||(!(!["term-click","ad-view"].includes(t.trigger)||"ctr"!==e)||"ad-click"===t.trigger&&"click"===e)))}}class Facebook extends Provider{get script(){return`!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window, document,'script','https://connect.facebook.net/en_US/fbevents.js');fbq('init', '${this.identifier}');`}onPixelEvent(e){this.selectPixelEvents(e).forEach((e=>{e&&(e.custom?window.fbq("trackCustom",e.event):window.fbq("track",e.event))}))}isLoaded(){return!!window.fbq}}class Outbrain extends Provider{get script(){return`!function(_window, _document) {var OB_ADV_ID = '${this.identifier}';if (_window.obApi) {var toArray = function(object) {return Object.prototype.toString.call(object) === '[object Array]' ? object : [object];};_window.obApi.marketerId = toArray(_window.obApi.marketerId).concat(toArray(OB_ADV_ID));return;}var api = _window.obApi = function() {api.dispatch ? api.dispatch.apply(api, arguments) : api.queue.push(arguments);};api.version = '1.1';api.loaded = true;api.marketerId = OB_ADV_ID;api.queue = [];var tag = _document.createElement('script');tag.async = true;tag.src = '//amplify.outbrain.com/cp/obtp.js';tag.type = 'text/javascript';var script = _document.getElementsByTagName('script')[0];script.parentNode.insertBefore(tag, script);}(window, document);`}onPixelEvent(e){this.selectPixelEvents(e).forEach((e=>{e&&window.obApi("track",e.event)}))}isLoaded(){return!!window.obApi}}class Revcontent extends Provider{get script(){return""}inject(){const e=document.createElement("script");e.src="https://assets.revcontent.com/master/rev.js",document.head.appendChild(e)}onPixelEvent(e){this.selectPixelEvents(e).forEach((e=>{e&&window.rev("event",e.event)}))}isLoaded(){return!!window.rev}}class Taboola extends Provider{get script(){return"window._tfa = window._tfa || [];!function (t, f, a, x) {if (!document.getElementById(x)) {t.async = 1;t.src = a;t.id=x;f.parentNode.insertBefore(t, f);}}(document.createElement('script'),document.getElementsByTagName('script')[0],'//cdn.taboola.com/libtrc/unip/1451879/tfa.js','tb_tfa_script');"}onPixelEvent(e){this.selectPixelEvents(e).forEach((e=>{e&&window._tfa.push({notify:"event",name:e.event,id:e.pixel_id})}))}isLoaded(){return Array.isArray(window._tfa)}}class Tiktok extends Provider{constructor(e,t){super(e),this.useAltTikTokEventsForAdsPlatformUser=t}get script(){return`!function (w, d, t) {w.TiktokAnalyticsObject=t;var ttq=w[t]=w[t]||[];ttq.methods=["page","track","identify","instances","debug","on","off","once","ready","alias","group","enableCookie","disableCookie"],ttq.setAndDefer=function(t,e){t[e]=function(){t.push([e].concat(Array.prototype.slice.call(arguments,0)))}};for(var i=0;i{e&&window.ttq.instance(this.identifier).track(e.event)}))}isLoaded(){return!!window.ttq}}const ADS_PARAM$1="?caf",MESSAGE_PREFIX="FSXDC,.aCS:",ALLOWED_ORIGINS=["https://www.google.com","https://www.adsensecustomsearchads.com"];class Pixels{static build(e){const t=unpackPHPArrayObject(e,"pixel_tracking_data");if(t)return t.useAltTikTokEventsForAdsPlatformUser=e.is_ads,new Pixels(t)}constructor(e){this.onPixelEvent=e=>{const{detail:{type:t}}=e;switch(t){case"visit":case"ctr":case"click":this.providers.forEach((e=>e.handlePixelEvent(t)))}},this.providers=[new Facebook(e.facebook),new Tiktok(e.tiktok,e.useAltTikTokEventsForAdsPlatformUser),new Taboola(e.taboola),new Revcontent(e.revcontent),new Outbrain(e.outbrain)]}listenForEvents(){document.addEventListener("pixel",(e=>{this.onPixelEvent(e)}));window.onmessage=e=>{const{origin:t,data:n}=e;ALLOWED_ORIGINS.includes(t)&&(null==n?void 0:n.startsWith(MESSAGE_PREFIX))&&window.location.search.startsWith(ADS_PARAM$1)&&document.dispatchEvent(new CustomEvent("pixel",{detail:{type:"click"}}))}}dispatchEvent(e){document.dispatchEvent(new CustomEvent("pixel",{detail:e}))}}var State;!function(e){e[e.Pending=0]="Pending",e[e.Loaded=1]="Loaded",e[e.Failure=2]="Failure",e[e.TimedOut=3]="TimedOut",e[e.Errored=4]="Errored"}(State||(State={}));const CAF_SCRIPT_SRC=`https://www.google.com/adsense/domains/caf.js?${GOOGLE_MV3_URL_PARAMS}`,TIMEOUT_SCRIPTS=Number(GOOGLE_CAF_TIMEOUT_SCRIPTS),TIMEOUT_CALLBACKS=Number(GOOGLE_CAF_TIMEOUT_CALLBACKS);class StateMachine{constructor(){this.state=State.Pending}transitionTo(e){this.state=e}transitionFromPendingTo(e){this.done||(this.state=e)}get loaded(){return this.state===State.Loaded}get timedOut(){return this.state===State.TimedOut}get done(){return this.state!==State.Pending}}class Ads{constructor(e,t){this.state={script:new StateMachine,blocks:new StateMachine},this.blocksLoaded=[],this.injectScriptTags=()=>__awaiter(this,void 0,void 0,(function*(){return new Promise((e=>{const t=document.createElement("script");t.type="text/javascript",t.src=CAF_SCRIPT_SRC,t.addEventListener("load",(()=>e(!0))),t.addEventListener("error",(()=>e(!1))),document.body.appendChild(t),TIMEOUT_SCRIPTS>0&&setTimeout((()=>e(!1)),TIMEOUT_SCRIPTS)}))})),this.onPageLoaded=(e,t)=>{if(this.pageLoaded={requestAccepted:e,status:t},this.state.script.done)return;const n=null==t?void 0:t.error_code;n?(this.state.script.transitionTo(State.Failure),this.failureReason=`caf_pageloaderror_${n}`):this.state.script.transitionTo(State.Loaded)},this.onBlockLoaded=(e,t,n,i)=>{this.blocksLoaded.push({containerName:e,adsLoaded:t,isExperimentVariant:n,callbackOptions:i}),this.state.blocks.done||(t?this.state.blocks.transitionTo(State.Loaded):this.blocksLoaded.length>=this.blocks.length&&(this.state.blocks.transitionTo(State.Failure),this.failureReason=`caf_adloadfail_${e}`))},this.onTimeout=()=>{this.state.script.transitionFromPendingTo(State.TimedOut),this.state.blocks.transitionFromPendingTo(State.TimedOut)},this.blocks=e,this.options=t}get loaded(){return this.state.script.loaded&&!this.blocksLoaded.map((e=>e.adsLoaded)).includes(!1)}waitForBlocks(){return __awaiter(this,void 0,void 0,(function*(){return new Promise((e=>{const t=()=>{const n=performance.now();if(this.state.blocks.done)return this.cafLoadTime=Math.round(n-this.cafStartTime),void e();const i=this.blocksLoaded.map((e=>e.adsLoaded));i.includes(!1)||i.length>=this.blocks.length?e():setTimeout(t,50)};t()}))}))}inject(){return __awaiter(this,void 0,void 0,(function*(){try{const e=yield this.injectScriptTags();return this.cafStartTime=performance.now(),e&&void 0!==window.google?(new window.google.ads.domains.Caf(Object.assign(Object.assign({},this.options),{pageLoadedCallback:this.onPageLoaded,adLoadedCallback:this.onBlockLoaded}),...this.blocks),TIMEOUT_CALLBACKS>0&&setTimeout(this.onTimeout,TIMEOUT_CALLBACKS),yield new Promise((e=>{const t=()=>{this.state.script.done?e():setTimeout(t,10)};t()}))):void this.state.script.transitionTo(State.Failure)}catch(e){return void(this.error=e.toString())}}))}toCallbacks(){return{adLoadedCallback:this.blocksLoaded.slice(-1)[0],pageLoadedCallback:this.pageLoaded,cafTimedOut:this.state.script.timedOut||this.state.blocks.timedOut,cafLoadedMs:this.cafLoadTime,googleAdsFailure:!!this.failureReason}}toContext(){const e={cafScriptWasLoaded:this.state.script.loaded,cafScriptLoadTime:this.cafLoadTime,callbacks:this.toCallbacks};return this.error&&(e.js_error={message:this.error}),this.state.script.loaded||(e.zeroclick={reason:"googleAdsFailure"}),e}mockFailedState(){this.state.blocks.transitionTo(State.Failure),this.state.script.transitionTo(State.Failure)}}class TagManager{constructor(e){this.injected=!1,this.identifier=e}inject(){if(this.injected)return;if(!this.identifier)return;if("TEST"===this.identifier)return;const e=document.createElement("script");e.setAttribute("src",`https://www.googletagmanager.com/gtag/js?id=${this.identifier}`),document.head.appendChild(e),this.track(),this.injected=!0}track(){this.push("js",new Date),this.push("config",this.identifier)}push(e,t){window.dataLayer||(window.dataLayer=[]),window.dataLayer.push(arguments)}}const ADS_PARAM="caf",ADS_TRACKING_URL="_tr",BLOCKS_TYPE="ads",BLOCKS_CONTAINER="rs",KNOWN_CAF_PARAMS=["caf","query","afdToken","pcsa","nb","nm","nx","ny","is","clkt"];class Google{static build({pageOptions:e,preferredLanguage:t,blocks:n,googleAnalytics:i},s,a,o){let r={};e&&(r=Object.assign({},e),r.hl||(r.hl=t));let d=null==e?void 0:e.resultsPageBaseUrl;d||(d=window.location.origin);return new Google(s.uuid,n,r,i,d,o)}constructor(e,t,n,i,s,a){this._blocks=t,this._pageOptions=n,this.uuid=e,this._baseURL=new URL(s),this._signature=a,this.ads=new Ads(this.blocks,this.pageOptions),this.tagManager=new TagManager(i)}injectTagManager(){this.tagManager.inject()}injectAds(){return __awaiter(this,void 0,void 0,(function*(){yield this.ads.inject()}))}waitForBlocks(){return __awaiter(this,void 0,void 0,(function*(){return this.ads.waitForBlocks()}))}get blocks(){return(this._blocks||[]).filter((e=>this.wantsToServeAds?e.type===BLOCKS_TYPE:e.container===BLOCKS_CONTAINER)).map((e=>{const t=this.baseURL,n=new URLSearchParams(window.location.search);n.forEach(((e,n)=>{t.searchParams.has(n)||t.searchParams.append(n,e)}));const i=Object.assign({},e);return i.resultsPageBaseUrl=t.toString(),this.wantsToServeAds&&(n.append("click","true"),n.append("session",this.uuid),i.clicktrackUrl=`${TRACKING_DOMAIN}${ADS_TRACKING_URL}?${n.toString()}`),i}))}get baseURL(){const e=new URL(this._baseURL.origin);return e.searchParams.append(ADS_PARAM,"1"),this._baseURL.searchParams.forEach(((t,n)=>{e.searchParams.append(n,t)})),e}get pageOptions(){const e=Object.assign({},this._pageOptions);return Object.keys(this._pageOptions).forEach((t=>{t.startsWith("bodis")&&delete e[t]})),e}get cannotLoadAds(){return!this.ads.loaded}get wantsToServeAds(){return new URLSearchParams(window.location.search).has(ADS_PARAM)}get adsMode(){return this.ads.loaded&&this.wantsToServeAds}get adsReady(){return this.wantsToServeAds&&!this.cannotLoadAds}get noAdsRedirectUrl(){const e=new URLSearchParams(window.location.search);return KNOWN_CAF_PARAMS.forEach((t=>e.delete(t))),`${window.location.origin}?${e.toString()}`}get callbacks(){return this.ads.toCallbacks()}toContext(){return Object.assign({blocks:this.blocks,pageOptions:this.pageOptions},this.ads.toContext())}}class CookieConsentManager{constructor(){this.injectScriptTag=()=>__awaiter(this,void 0,void 0,(function*(){return new Promise((e=>{const t=document.createElement("script");t.setAttribute("src",COOKIE_CONSENT_JS_URL),t.addEventListener("load",(()=>this.awaitConsent(e))),t.addEventListener("error",(()=>e(!1))),document.head.appendChild(t)}))}))}inject(){return __awaiter(this,void 0,void 0,(function*(){this.injected||!COOKIE_CONSENT_JS_URL||isLocal()||(this.injected=yield this.injectScriptTag())}))}awaitConsent(e){let t=0;const n=setInterval((()=>{t+=1,20===t&&(clearInterval(n),e(!0)),void 0!==window.__tcfapi&&(window.addEventListener("ConsentActivity",(t=>{const{detail:{status:n}}=t;n&&e(!0)})),clearInterval(n))}),50)}}class App{main(){var e,t;return __awaiter(this,void 0,void 0,(function*(){if(this.parkResponse=decode(),this.findDomainResponse=yield getFindDomain(),!this.findDomainResponse)throw new Error("Domain failed to load.");this.pixels=Pixels.build(this.findDomainResponse),null===(e=this.pixels)||void 0===e||e.listenForEvents(),this.adblock=new Adblock,yield this.adblock.inject(),this.google=Google.build(this.findDomainResponse,this.parkResponse,this.adblock,buildSignature({context:this.context,callbacks:null===(t=this.google)||void 0===t?void 0:t.callbacks},"click")),this.google.injectTagManager();const n=Parking.build(this.findDomainResponse,this.google);Render.prerender(n),this.cookieConsentManager=new CookieConsentManager,yield this.cookieConsentManager.inject();let i=Failed.cannotPark(this.findDomainResponse);if(i)return void(yield this.transitionToFailed(i));yield this.google.injectAds();const s=Disabled.build(this.findDomainResponse,this.adblock.state);if(s)return void(yield this.transitionToDisabled(s));const a=Sales.build(this.findDomainResponse);if(a)return void(yield this.transitionToSales(a));this.eligibleForZeroClick&&(this.zeroClickResponse=yield getZeroClick(this.context));const o=Redirect.build(this.findDomainResponse,this.zeroClickResponse,this.google);o?yield this.transitionToRedirect(o):(i=Failed.noSponsors(this.google),i?yield this.transitionToFailed(i):yield this.transitionToParking(n))}))}transitionToParking(e){return __awaiter(this,void 0,void 0,(function*(){this.state=e,Render.template(e),Render.revealPage(),yield this.google.waitForBlocks(),yield this.track()}))}transitionToRedirect(e){return __awaiter(this,void 0,void 0,(function*(){this.state=e;const t=this.track();Render.revealPage(),yield waiter(e.delay,(e=>Render.loading(e))),yield t,window.location.href=e.url,log(`➡ Redirecting [${e.url}]`)}))}transitionToFailed(e){return __awaiter(this,void 0,void 0,(function*(){this.state=e,Render.message(e.message),Render.revealPage(),yield this.track()}))}transitionToSales(e){return __awaiter(this,void 0,void 0,(function*(){this.state=e,e.init(this.context),yield this.track()}))}transitionToDisabled(e){return __awaiter(this,void 0,void 0,(function*(){this.state=e,Render.message(e.message),Render.revealPage(),yield this.track()}))}track(){var e;return __awaiter(this,void 0,void 0,(function*(){if(!this.state.track)return Promise.resolve();try{const t=this.state.trackingType;return null===(e=this.pixels)||void 0===e||e.dispatchEvent({type:t}),trackVisit({context:this.context,callbacks:this.google.callbacks},t)}catch(e){return}}))}get eligibleForZeroClick(){const{cannotPark:e,canZeroClick:t,zeroClick:n}=this.findDomainResponse,{cannotLoadAds:i,wantsToServeAds:s}=this.google;return!!t&&(!!e||(!(!i||s)||!!(null==n?void 0:n.reason)))}get context(){var e,t,n,i;const s=this.findDomainResponse,a=this.parkResponse,o=null===(e=this.state)||void 0===e?void 0:e.toContext(),r=null===(t=this.adblock)||void 0===t?void 0:t.toContext(),d=null===(n=this.google)||void 0===n?void 0:n.toContext(),c=browserState(),l=Object.assign(Object.assign({},null===(i=this.findDomainResponse)||void 0===i?void 0:i.zeroClick),this.zeroClickResponse);return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({app_version:APP_VERSION},s),a),r),d),o),c),{zeroClick:l})}init(){return __awaiter(this,void 0,void 0,(function*(){try{window.__parkour=this,yield this.main()}catch(e){console.error("app",e);const t=Failed.fromError(e);this.state=t,Render.message(t.message),Render.revealPage()}}))}}(new App).init(),exports.App=App}));