(()=>{var Pn=Object.create;var Z=Object.defineProperty;var Ft=Object.getOwnPropertyDescriptor;var En=Object.getOwnPropertyNames,Kt=Object.getOwnPropertySymbols,Rn=Object.getPrototypeOf,Jt=Object.prototype.hasOwnProperty,jn=Object.prototype.propertyIsEnumerable;var $t=(t,e,r)=>e in t?Z(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,je=(t,e)=>{for(var r in e||(e={}))Jt.call(e,r)&&$t(t,r,e[r]);if(Kt)for(var r of Kt(e))jn.call(e,r)&&$t(t,r,e[r]);return t};var qn=t=>Z(t,"__esModule",{value:!0}),o=(t,e)=>Z(t,"name",{value:e,configurable:!0});var h=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Bn=(t,e,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of En(e))!Jt.call(t,n)&&n!=="default"&&Z(t,n,{get:()=>e[n],enumerable:!(r=Ft(e,n))||r.enumerable});return t},D=t=>Bn(qn(Z(t!=null?Pn(Rn(t)):{},"default",t&&t.__esModule&&"default"in t?{get:()=>t.default,enumerable:!0}:{value:t,enumerable:!0})),t),xt=(t,e,r,n)=>{for(var s=n>1?void 0:n?Ft(e,r):e,c=t.length-1,u;c>=0;c--)(u=t[c])&&(s=(n?u(e,r,s):u(s))||s);return n&&s&&Z(e,r,s),s};var w=h((To,Le)=>{var Zt,Yt,Qt,Xt,It,Nt,er,tr,rr,qe,wt,nr,ir,or,Y,sr,ar,cr,ur,lr,fr,dr,yr,pr,Be;(function(t){var e=typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&undefined?define("tslib",["exports"],function(n){t(r(e,r(n)))}):typeof Le=="object"&&typeof Le.exports=="object"?t(r(e,r(Le.exports))):t(r(e));function r(n,s){return n!==e&&(typeof Object.create=="function"?Object.defineProperty(n,"__esModule",{value:!0}):n.__esModule=!0),function(c,u){return n[c]=s?s(c,u):u}}o(r,"createExporter")})(function(t){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var c in s)Object.prototype.hasOwnProperty.call(s,c)&&(n[c]=s[c])};Zt=o(function(n,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");e(n,s);function c(){this.constructor=n}o(c,"__"),n.prototype=s===null?Object.create(s):(c.prototype=s.prototype,new c)},"__extends"),Yt=Object.assign||function(n){for(var s,c=1,u=arguments.length;c=0;m--)(d=n[m])&&(f=(l<3?d(f):l>3?d(s,c,f):d(s,c))||f);return l>3&&f&&Object.defineProperty(s,c,f),f},"__decorate"),It=o(function(n,s){return function(c,u){s(c,u,n)}},"__param"),Nt=o(function(n,s){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,s)},"__metadata"),er=o(function(n,s,c,u){function l(f){return f instanceof c?f:new c(function(d){d(f)})}return o(l,"adopt"),new(c||(c=Promise))(function(f,d){function m(A){try{p(u.next(A))}catch(J){d(J)}}o(m,"fulfilled");function T(A){try{p(u.throw(A))}catch(J){d(J)}}o(T,"rejected");function p(A){A.done?f(A.value):l(A.value).then(m,T)}o(p,"step"),p((u=u.apply(n,s||[])).next())})},"__awaiter"),tr=o(function(n,s){var c={label:0,sent:function(){if(f[0]&1)throw f[1];return f[1]},trys:[],ops:[]},u,l,f,d;return d={next:m(0),throw:m(1),return:m(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function m(p){return function(A){return T([p,A])}}function T(p){if(u)throw new TypeError("Generator is already executing.");for(;c;)try{if(u=1,l&&(f=p[0]&2?l.return:p[0]?l.throw||((f=l.return)&&f.call(l),0):l.next)&&!(f=f.call(l,p[1])).done)return f;switch(l=0,f&&(p=[p[0]&2,f.value]),p[0]){case 0:case 1:f=p;break;case 4:return c.label++,{value:p[1],done:!1};case 5:c.label++,l=p[1],p=[0];continue;case 7:p=c.ops.pop(),c.trys.pop();continue;default:if(f=c.trys,!(f=f.length>0&&f[f.length-1])&&(p[0]===6||p[0]===2)){c=0;continue}if(p[0]===3&&(!f||p[1]>f[0]&&p[1]=n.length&&(n=void 0),{value:n&&n[u++],done:!n}}};throw new TypeError(s?"Object is not iterable.":"Symbol.iterator is not defined.")},"__values"),wt=o(function(n,s){var c=typeof Symbol=="function"&&n[Symbol.iterator];if(!c)return n;var u=c.call(n),l,f=[],d;try{for(;(s===void 0||s-- >0)&&!(l=u.next()).done;)f.push(l.value)}catch(m){d={error:m}}finally{try{l&&!l.done&&(c=u.return)&&c.call(u)}finally{if(d)throw d.error}}return f},"__read"),nr=o(function(){for(var n=[],s=0;s1||m(v,$)})})}function m(v,$){try{T(u[v]($))}catch(bt){J(f[0][3],bt)}}function T(v){v.value instanceof Y?Promise.resolve(v.value.v).then(p,A):J(f[0][2],v)}function p(v){m("next",v)}function A(v){m("throw",v)}function J(v,$){v($),f.shift(),f.length&&m(f[0][0],f[0][1])}},"__asyncGenerator"),ar=o(function(n){var s,c;return s={},u("next"),u("throw",function(l){throw l}),u("return"),s[Symbol.iterator]=function(){return this},s;function u(l,f){s[l]=n[l]?function(d){return(c=!c)?{value:Y(n[l](d)),done:l==="return"}:f?f(d):d}:f}},"__asyncDelegator"),cr=o(function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var s=n[Symbol.asyncIterator],c;return s?s.call(n):(n=typeof qe=="function"?qe(n):n[Symbol.iterator](),c={},u("next"),u("throw"),u("return"),c[Symbol.asyncIterator]=function(){return this},c);function u(f){c[f]=n[f]&&function(d){return new Promise(function(m,T){d=n[f](d),l(m,T,d.done,d.value)})}}function l(f,d,m,T){Promise.resolve(T).then(function(p){f({value:p,done:m})},d)}},"__asyncValues"),ur=o(function(n,s){return Object.defineProperty?Object.defineProperty(n,"raw",{value:s}):n.raw=s,n},"__makeTemplateObject");var r=Object.create?function(n,s){Object.defineProperty(n,"default",{enumerable:!0,value:s})}:function(n,s){n.default=s};lr=o(function(n){if(n&&n.__esModule)return n;var s={};if(n!=null)for(var c in n)c!=="default"&&Object.prototype.hasOwnProperty.call(n,c)&&Be(s,n,c);return r(s,n),s},"__importStar"),fr=o(function(n){return n&&n.__esModule?n:{default:n}},"__importDefault"),dr=o(function(n,s,c,u){if(c==="a"&&!u)throw new TypeError("Private accessor was defined without a getter");if(typeof s=="function"?n!==s||!u:!s.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return c==="m"?u:c==="a"?u.call(n):u?u.value:s.get(n)},"__classPrivateFieldGet"),yr=o(function(n,s,c,u,l){if(u==="m")throw new TypeError("Private method is not writable");if(u==="a"&&!l)throw new TypeError("Private accessor was defined without a setter");if(typeof s=="function"?n!==s||!l:!s.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return u==="a"?l.call(n,c):l?l.value=c:s.set(n,c),c},"__classPrivateFieldSet"),pr=o(function(n,s){if(s===null||typeof s!="object"&&typeof s!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof n=="function"?s===n:n.has(s)},"__classPrivateFieldIn"),t("__extends",Zt),t("__assign",Yt),t("__rest",Qt),t("__decorate",Xt),t("__param",It),t("__metadata",Nt),t("__awaiter",er),t("__generator",tr),t("__exportStar",rr),t("__createBinding",Be),t("__values",qe),t("__read",wt),t("__spread",nr),t("__spreadArrays",ir),t("__spreadArray",or),t("__await",Y),t("__asyncGenerator",sr),t("__asyncDelegator",ar),t("__asyncValues",cr),t("__makeTemplateObject",ur),t("__importStar",lr),t("__importDefault",fr),t("__classPrivateFieldGet",dr),t("__classPrivateFieldSet",yr),t("__classPrivateFieldIn",pr)})});var ge=h(Q=>{"use strict";Object.defineProperty(Q,"__esModule",{value:!0});Q.compose=Q.CompositeTransducer=void 0;var Ce=class{constructor(e,r){this.a=e,this.b=r}async_(e){return this.b.async_(this.a.async_(e))}sync(e){return this.b.sync(this.a.sync(e))}};o(Ce,"CompositeTransducer");Q.CompositeTransducer=Ce;function Ln(t,e){return new Ce(t,e)}o(Ln,"compose");Q.compose=Ln});var hr=h(Me=>{"use strict";Object.defineProperty(Me,"__esModule",{value:!0});Me.decompose=void 0;var Cn=ge();function*Ot(t){t instanceof Cn.CompositeTransducer?(yield*Ot(t.a),yield*Ot(t.b)):yield t}o(Ot,"decompose");Me.decompose=Ot});var R=h(y=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});y.syncReturned=y.asyncReturned=y.isReturned=y.isYielded=y.AsyncIteratorHandler=y.by=y.toAsyncIterable=y.isArrayLike=y.asyncIterable=y.iterable=y.toIterable=y.isPromiseLike=y.isAsyncIterable=y.isIterable=y.value=y.key=y.comparators=y.descending=y.ascending=void 0;var B=w();function ze(t,e){return te?1:0}o(ze,"ascending");y.ascending=ze;function Mn(t,e){return te?-1:0}o(Mn,"descending");y.descending=Mn;function zn(...t){return(e,r)=>{for(let n of t){let s=n(e,r);if(s!=0)return s}return 0}}o(zn,"comparators");y.comparators=zn;function Gn(t){return Object.assign(e=>e[t],{name:t})}o(Gn,"key");y.key=Gn;function Wn(t){return e=>e[t]}o(Wn,"value");y.value=Wn;function Dn(t){return typeof t=="object"&&Symbol.iterator in t}o(Dn,"isIterable");y.isIterable=Dn;function Vn(t){return typeof t=="object"&&Symbol.asyncIterator in t}o(Vn,"isAsyncIterable");y.isAsyncIterable=Vn;function Un(t){return typeof t=="object"&&"then"in t}o(Un,"isPromiseLike");y.isPromiseLike=Un;function Fn(...t){return t}o(Fn,"toIterable");y.toIterable=Fn;function*Kn(t){for(let e=0;ee(r[t],n[t])}o(Qn,"byKey");function Xn(t,e=ze){return(r,n)=>e(t(r),t(n))}o(Xn,"byFn");var vt=class{constructor(){this.handlers=[],this.state=[]}value(e){this.newState({value:e,done:!1})}error(e){this.newState(e)}close(e){this.newState({value:e,done:!0})}[Symbol.asyncIterator](){return this}next(){return new Promise((e,r)=>{this.newHandler([e,r])})}newState(e){let r=this.handlers.shift();if(typeof r=="undefined")return this.state.push(e);let n=this.state.shift();if(typeof n=="undefined")return this.consume(e,r);this.consume(n,r),this.newState(e)}newHandler(e){let r=this.state.shift();if(typeof r=="undefined")return this.handlers.push(e);let n=this.handlers.shift();if(typeof n=="undefined")return this.consume(r,e);this.consume(r,n),this.newHandler(e)}consume(e,[r,n]){e instanceof Error?n(e):r(e)}};o(vt,"AsyncIteratorHandler");y.AsyncIteratorHandler=vt;function In(t){return t&&typeof t=="object"&&"yielded"in t}o(In,"isYielded");y.isYielded=In;function Nn(t){return t&&typeof t=="object"&&"returned"in t}o(Nn,"isReturned");y.isReturned=Nn;function ei(t){return B.__asyncGenerator(this,arguments,o(function*(){for(;;){let{value:r,done:n}=yield B.__await(t.next());if(n){yield yield B.__await({returned:r});break}else yield yield B.__await({yielded:r})}},"asyncReturned_1"))}o(ei,"asyncReturned");y.asyncReturned=ei;function*ti(t){for(;;){let{value:e,done:r}=t.next();if(r){yield{returned:e};break}else yield{yielded:e}}}o(ti,"syncReturned");y.syncReturned=ti});var mr=h(I=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0});I.dedupe=I.DedupeTransducer=void 0;var X=w(),ri=R(),Ge=class{constructor(e){this.comparator=e}async_(e){return X.__asyncGenerator(this,arguments,o(function*(){var n,s;let c;try{for(var u=X.__asyncValues(e),l;l=yield X.__await(u.next()),!l.done;){let f=l.value;typeof c=="undefined"?yield yield X.__await(f):this.comparator(f,c)!==0&&(yield yield X.__await(f)),c=f}}catch(f){n={error:f}}finally{try{l&&!l.done&&(s=u.return)&&(yield X.__await(s.call(u)))}finally{if(n)throw n.error}}},"async_1"))}*sync(e){let r;for(let n of e)typeof r=="undefined"?yield n:this.comparator(n,r)!==0&&(yield n),r=n}};o(Ge,"DedupeTransducer");I.DedupeTransducer=Ge;function ni(t=ri.ascending){return new Ge(t)}o(ni,"dedupe");I.dedupe=ni});var gr=h(N=>{"use strict";Object.defineProperty(N,"__esModule",{value:!0});N.drop=N.DropTransducer=void 0;var be=w(),We=class{constructor(e){if(this.count=e,typeof e=="undefined")throw new Error("Count can not be undefined")}async_(e){return be.__asyncGenerator(this,arguments,o(function*(){var n,s;try{for(var c=be.__asyncValues(e),u;u=yield be.__await(c.next()),!u.done;){let l=u.value;--this.count<0&&(yield yield be.__await(l))}}catch(l){n={error:l}}finally{try{u&&!u.done&&(s=c.return)&&(yield be.__await(s.call(c)))}finally{if(n)throw n.error}}},"async_1"))}*sync(e){for(let r of e)--this.count<0&&(yield r)}};o(We,"DropTransducer");N.DropTransducer=We;function ii(t){return new We(t)}o(ii,"drop");N.drop=ii});var br=h(ee=>{"use strict";Object.defineProperty(ee,"__esModule",{value:!0});ee.dropWhile=ee.DropWhileTransducer=void 0;var xe=w(),De=class{constructor(e){this.predicate=e}async_(e){return xe.__asyncGenerator(this,arguments,o(function*(){var n,s;let c=!0;try{for(var u=xe.__asyncValues(e),l;l=yield xe.__await(u.next()),!l.done;){let f=l.value;c&&(c=this.predicate(f)),c||(yield yield xe.__await(f))}}catch(f){n={error:f}}finally{try{l&&!l.done&&(s=u.return)&&(yield xe.__await(s.call(u)))}finally{if(n)throw n.error}}},"async_1"))}*sync(e){let r=!0;for(let n of e)r&&(r=this.predicate(n)),r||(yield n)}};o(De,"DropWhileTransducer");ee.DropWhileTransducer=De;function oi(t){return new De(t)}o(oi,"dropWhile");ee.dropWhile=oi});var Ue=h(L=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0});L.accept=L.filter=L.FilterTransducer=void 0;var we=w(),Ve=class{constructor(e){this.predicate=e}async_(e){return we.__asyncGenerator(this,arguments,o(function*(){var n,s;try{for(var c=we.__asyncValues(e),u;u=yield we.__await(c.next()),!u.done;){let l=u.value;this.predicate(l)&&(yield yield we.__await(l))}}catch(l){n={error:l}}finally{try{u&&!u.done&&(s=c.return)&&(yield we.__await(s.call(c)))}finally{if(n)throw n.error}}},"async_1"))}*sync(e){for(let r of e)this.predicate(r)&&(yield r)}};o(Ve,"FilterTransducer");L.FilterTransducer=Ve;function xr(t){return new Ve(t)}o(xr,"filter");L.filter=xr;L.accept=xr});var kt=h(re=>{"use strict";Object.defineProperty(re,"__esModule",{value:!0});re.first=re.FirstTransducer=void 0;var te=w(),Fe=class{async_(e){return te.__asyncGenerator(this,arguments,o(function*(){var n,s;try{for(var c=te.__asyncValues(e),u;u=yield te.__await(c.next()),!u.done;){let l=u.value;return yield te.__await(yield yield te.__await(l))}}catch(l){n={error:l}}finally{try{u&&!u.done&&(s=c.return)&&(yield te.__await(s.call(c)))}finally{if(n)throw n.error}}},"async_1"))}*sync(e){for(let r of e)return yield r}};o(Fe,"FirstTransducer");re.FirstTransducer=Fe;function si(){return new Fe}o(si,"first");re.first=si});var wr=h(Ke=>{"use strict";Object.defineProperty(Ke,"__esModule",{value:!0});Ke.find=void 0;var ai=Ue(),ci=kt(),ui=ge();function li(t){return(0,ui.compose)((0,ai.filter)(t),(0,ci.first)())}o(li,"find");Ke.find=li});var Or=h(ne=>{"use strict";Object.defineProperty(ne,"__esModule",{value:!0});ne.flatMap=ne.FlatMapTransducer=void 0;var V=w(),Je=class{constructor(e){this.mapper=e}async_(e){return V.__asyncGenerator(this,arguments,o(function*(){var n,s;try{for(var c=V.__asyncValues(e),u;u=yield V.__await(c.next()),!u.done;){let l=u.value;yield V.__await(yield*V.__asyncDelegator(V.__asyncValues(this.mapper(l))))}}catch(l){n={error:l}}finally{try{u&&!u.done&&(s=c.return)&&(yield V.__await(s.call(c)))}finally{if(n)throw n.error}}},"async_1"))}*sync(e){for(let r of e)yield*this.mapper(r)}};o(Je,"FlatMapTransducer");ne.FlatMapTransducer=Je;function fi(t){return new Je(t)}o(fi,"flatMap");ne.flatMap=fi});var kr=h(C=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0});C.transducer=C.identity=C.IdentityTransducer=void 0;var $e=class{async_(e){return e}sync(e){return e}};o($e,"IdentityTransducer");C.IdentityTransducer=$e;function vr(){return new $e}o(vr,"identity");C.identity=vr;C.transducer=vr});var St=h(ie=>{"use strict";Object.defineProperty(ie,"__esModule",{value:!0});ie.last=ie.LastTransducer=void 0;var Oe=w(),Ze=class{async_(e){return Oe.__asyncGenerator(this,arguments,o(function*(){var n,s;let c;try{for(var u=Oe.__asyncValues(e),l;l=yield Oe.__await(u.next()),!l.done;)c=l.value}catch(f){n={error:f}}finally{try{l&&!l.done&&(s=u.return)&&(yield Oe.__await(s.call(u)))}finally{if(n)throw n.error}}c!==void 0&&(yield yield Oe.__await(c))},"async_1"))}*sync(e){let r;for(r of e);r!==void 0&&(yield r)}};o(Ze,"LastTransducer");ie.LastTransducer=Ze;function di(){return new Ze}o(di,"last");ie.last=di});var Sr=h(oe=>{"use strict";Object.defineProperty(oe,"__esModule",{value:!0});oe.map=oe.MapTransducer=void 0;var ve=w(),Ye=class{constructor(e){this.mapper=e}async_(e){return ve.__asyncGenerator(this,arguments,o(function*(){var n,s;try{for(var c=ve.__asyncValues(e),u;u=yield ve.__await(c.next()),!u.done;){let l=u.value;yield yield ve.__await(this.mapper(l))}}catch(l){n={error:l}}finally{try{u&&!u.done&&(s=c.return)&&(yield ve.__await(s.call(c)))}finally{if(n)throw n.error}}},"async_1"))}*sync(e){for(let r of e)yield this.mapper(r)}};o(Ye,"MapTransducer");oe.MapTransducer=Ye;function yi(t){return new Ye(t)}o(yi,"map");oe.map=yi});var _t=h(ae=>{"use strict";Object.defineProperty(ae,"__esModule",{value:!0});ae.scan=ae.ScanTransducer=void 0;var se=w(),Qe=class{constructor(e,r){this.reducer=e,this.seed=r}async_(e){return se.__asyncGenerator(this,arguments,o(function*(){var n,s;let c=this.seed;yield yield se.__await(c);try{for(var u=se.__asyncValues(e),l;l=yield se.__await(u.next()),!l.done;){let f=l.value;yield yield se.__await(c=this.reducer(c,f))}}catch(f){n={error:f}}finally{try{l&&!l.done&&(s=u.return)&&(yield se.__await(s.call(u)))}finally{if(n)throw n.error}}},"async_1"))}*sync(e){let r=this.seed;yield r;for(let n of e)yield r=this.reducer(r,n)}};o(Qe,"ScanTransducer");ae.ScanTransducer=Qe;function pi(t,e){return new Qe(t,e)}o(pi,"scan");ae.scan=pi});var _r=h(Xe=>{"use strict";Object.defineProperty(Xe,"__esModule",{value:!0});Xe.reduce=void 0;var hi=ge(),mi=St(),gi=_t();function bi(t,e){return(0,hi.compose)((0,gi.scan)(t,e),(0,mi.last)())}o(bi,"reduce");Xe.reduce=bi});var Tr=h(Ie=>{"use strict";Object.defineProperty(Ie,"__esModule",{value:!0});Ie.reject=void 0;var xi=Ue();function wi(t){return new xi.FilterTransducer(e=>!t(e))}o(wi,"reject");Ie.reject=wi});var Ar=h(j=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0});j.sum=j.subtract=j.add=j.increment=void 0;function Oi(t){return t+1}o(Oi,"increment");j.increment=Oi;function vi(t,e){return e===void 0?r=>t+r:t+e}o(vi,"add");j.add=vi;function ki(t,e){return e===void 0?r=>r-t:t-e}o(ki,"subtract");j.subtract=ki;var Si=o((t,e)=>t+e,"sum");j.sum=Si});var tt=h(S=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0});S.AsyncSequence=S.Sequence=S.sequence=S.range=S.repeat=S.iterate=void 0;var Tt=Ar(),At=R(),Hr=Se();function*Ne(t,e){for(;;)yield e,e=t(e)}o(Ne,"iterate");S.iterate=Ne;function*_i(t){for(;;)yield t()}o(_i,"repeat");S.repeat=_i;function*Ti(t,e,r=1){if(r===0)throw new Error("step can not be 0");if(e===void 0)yield*Ne((0,Tt.add)(r),t);else{let n=Math.abs(r);es>=e)):yield*Ht(Ne((0,Tt.add)(n),t),(0,Hr.takeWhile)(s=>s<=e))}}o(Ti,"range");S.range=Ti;function Ht(t,...e){return(0,At.isIterable)(t)?new ke(t,e):(0,At.isArrayLike)(t)?new ke((0,At.iterable)(t),e):new et(t,e)}o(Ht,"sequence");S.sequence=Ht;var ke=class{constructor(e,r){this.source=e,this.transducers=r}[Symbol.iterator](){return this.transducers.reduce((e,r)=>r.sync(e),this.source)[Symbol.iterator]()}};o(ke,"Sequence");S.Sequence=ke;var et=class{constructor(e,r){this.source=e,this.transducers=r}[Symbol.asyncIterator](){return this.transducers.reduce((e,r)=>r.async_(e),this.source)[Symbol.asyncIterator]()}};o(et,"AsyncSequence");S.AsyncSequence=et});var Rr=h(rt=>{"use strict";Object.defineProperty(rt,"__esModule",{value:!0});rt.single=void 0;var Pr=w(),Ai=R(),Er=tt();function Hi(t,...e){return(0,Ai.isIterable)(t)?Pi((0,Er.sequence)(t,...e)):Ei((0,Er.sequence)(t,...e))}o(Hi,"single");rt.single=Hi;function Pi(t){for(let e of t)return e;throw new Error("Expected a single value")}o(Pi,"toSingle");function Ei(t){var e,r,n,s;return Pr.__awaiter(this,void 0,void 0,function*(){try{for(e=Pr.__asyncValues(t);r=yield e.next(),!r.done;)return r.value}catch(c){n={error:c}}finally{try{r&&!r.done&&(s=e.return)&&(yield s.call(e))}finally{if(n)throw n.error}}throw new Error("Expected a single value")})}o(Ei,"toSinglePromise")});var Pt=h(nt=>{"use strict";Object.defineProperty(nt,"__esModule",{value:!0});nt.array=void 0;var jr=w(),qr=R(),Br=tt();function Ri(t,...e){return(0,qr.isIterable)(t)||(0,qr.isArrayLike)(t)?ji((0,Br.sequence)(t,...e)):qi((0,Br.sequence)(t,...e))}o(Ri,"array");nt.array=Ri;function ji(t){let e=[];for(let r of t)e.push(r);return e}o(ji,"toArray");function qi(t){var e,r,n,s;return jr.__awaiter(this,void 0,void 0,function*(){let c=[];try{for(e=jr.__asyncValues(t);r=yield e.next(),!r.done;){let u=r.value;c.push(u)}}catch(u){n={error:u}}finally{try{r&&!r.done&&(s=e.return)&&(yield s.call(e))}finally{if(n)throw n.error}}return c})}o(qi,"toPromiseArray")});var Cr=h(ce=>{"use strict";Object.defineProperty(ce,"__esModule",{value:!0});ce.sort=ce.SortTransducer=void 0;var _e=w(),Bi=R(),Lr=Pt(),it=class{constructor(e){this.comparator=e}async_(e){return _e.__asyncGenerator(this,arguments,o(function*(){let n=yield _e.__await((0,Lr.array)(e));n.sort(this.comparator),yield _e.__await(yield*_e.__asyncDelegator(_e.__asyncValues(n)))},"async_1"))}*sync(e){let r=(0,Lr.array)(e);r.sort(this.comparator),yield*r}};o(it,"SortTransducer");ce.SortTransducer=it;function Li(t=Bi.ascending){return new it(t)}o(Li,"sort");ce.sort=Li});var Mr=h(ue=>{"use strict";Object.defineProperty(ue,"__esModule",{value:!0});ue.take=ue.TakeTransducer=void 0;var U=w(),ot=class{constructor(e){if(this.count=e,typeof e=="undefined")throw new Error("Count can not be undefined")}async_(e){return U.__asyncGenerator(this,arguments,o(function*(){var n,s;if(this.count<1)return yield U.__await(void 0);try{for(var c=U.__asyncValues(e),u;u=yield U.__await(c.next()),!u.done;){let l=u.value;if(yield yield U.__await(l),--this.count<1)return yield U.__await(void 0)}}catch(l){n={error:l}}finally{try{u&&!u.done&&(s=c.return)&&(yield U.__await(s.call(c)))}finally{if(n)throw n.error}}},"async_1"))}*sync(e){if(!(this.count<1)){for(let r of e)if(yield r,--this.count<1)return}}};o(ot,"TakeTransducer");ue.TakeTransducer=ot;function Ci(t){return new ot(t)}o(Ci,"take");ue.take=Ci});var zr=h(fe=>{"use strict";Object.defineProperty(fe,"__esModule",{value:!0});fe.takeWhile=fe.TakeWhileTransducer=void 0;var le=w(),st=class{constructor(e){this.predicate=e}async_(e){return le.__asyncGenerator(this,arguments,o(function*(){var n,s;try{for(var c=le.__asyncValues(e),u;u=yield le.__await(c.next()),!u.done;){let l=u.value;if(this.predicate(l))yield yield le.__await(l);else return yield le.__await(void 0)}}catch(l){n={error:l}}finally{try{u&&!u.done&&(s=c.return)&&(yield le.__await(s.call(c)))}finally{if(n)throw n.error}}},"async_1"))}*sync(e){for(let r of e)if(this.predicate(r))yield r;else return}};o(st,"TakeWhileTransducer");fe.TakeWhileTransducer=st;function Mi(t){return new st(t)}o(Mi,"takeWhile");fe.takeWhile=Mi});var Wr=h(Gr=>{"use strict";Object.defineProperty(Gr,"__esModule",{value:!0})});var Et=h(M=>{"use strict";Object.defineProperty(M,"__esModule",{value:!0});M.container=M.lazy=M.replace=void 0;function Dr(t,e,r){return Object.defineProperty(t,e,{value:r})}o(Dr,"replace");M.replace=Dr;function Vr(t,e,r){if(typeof r.get=="undefined")throw new Error("@lazy can only decorate getter methods");return Object.defineProperty(t,e,Object.assign(Object.assign({},r),{get(){return Dr(this,e,r.get.call(this))[e]}}))}o(Vr,"lazy");M.lazy=Vr;function zi(t){return Object.keys(t).reduce((e,r)=>Vr(e,r,{configurable:!0,get:()=>t[r](e)}),{})}o(zi,"container");M.container=zi});var Yr=h(ct=>{"use strict";Object.defineProperty(ct,"__esModule",{value:!0});ct.AVLTree=void 0;var Ur=w(),at=R(),Fr=Et(),E=class{constructor(e){this.comparator=e}static empty(e=at.ascending){return new Rt(e)}static create(e,r,n=at.ascending){let s=E.empty(n);return new H(n,e,r,s,s)}static of(e,r=at.ascending){return E.preSorted(e.sort((0,at.by)(0)),r,E.empty(r))}static preSorted(e,r,n){let s=e.length;switch(s){case 0:return n;case 1:{let[[c,u]]=e;return new H(r,c,u,n,n)}default:{let c=Math.floor(s/2),u=E.preSorted(e.slice(0,c),r,n),l=E.preSorted(e.slice(c+1),r,n),[f,d]=e[c];return new H(r,f,d,u,l)}}}};o(E,"AVLTree");ct.AVLTree=E;var Rt=class extends E{constructor(e){super(e);this.isEmpty=!0,this.height=0,this.balance=0}insert(e,r){return new H(this.comparator,e,r,this,this)}contains(e){return!1}lookup(e){}delete(e){return{tree:this}}first(){}last(){}removeFirst(){return{tree:this}}removeLast(){return{tree:this}}toString(){return""}*keys(){}*values(){}*entries(){return[]}};o(Rt,"Empty");var H=class extends E{constructor(e,r,n,s,c){super(e);this.key=r,this.value=n,this.left=s,this.right=c,this.isEmpty=!1}insert(e,r){let n=this.comparator(e,this.key);return n===0?new H(this.comparator,e,r,this.left,this.right):n<0?this.replaceLeft(this.left.insert(e,r)):this.replaceRight(this.right.insert(e,r))}contains(e){let r=this.comparator(e,this.key);return r===0?!0:r<0?this.left.contains(e):this.right.contains(e)}lookup(e){let r=this.comparator(e,this.key);return r===0?this.value:r<0?this.left.lookup(e):this.right.lookup(e)}delete(e){let r=this.comparator(e,this.key);if(r===0){if(this.left.isEmpty)return{tree:this.right,key:this.key,value:this.value};if(this.right.isEmpty)return{tree:this.left,key:this.key,value:this.value};let{tree:u,key:l,value:f}=this.left.removeLast();return{tree:jt(new H(this.comparator,l,f,u,this.right)),key:this.key,value:this.value}}if(r<0){let{tree:u,key:l,value:f}=this.left.delete(e);return{tree:this.replaceLeft(u),key:l,value:f}}let{tree:n,key:s,value:c}=this.right.delete(e);return{tree:this.replaceRight(n),key:s,value:c}}first(){return this.left.isEmpty?this.value:this.left.first()}last(){return this.right.isEmpty?this.value:this.right.last()}removeFirst(){if(this.left.isEmpty)return{tree:this.right,key:this.key,value:this.value};let{tree:e,key:r,value:n}=this.left.removeFirst();return{tree:this.replaceLeft(e),key:r,value:n}}removeLast(){if(this.right.isEmpty)return{tree:this.left,key:this.key,value:this.value};let{tree:e,key:r,value:n}=this.right.removeLast();return{tree:this.replaceRight(e),key:r,value:n}}replaceLeft(e){return jt(new H(this.comparator,this.key,this.value,e,this.right))}replaceRight(e){return jt(new H(this.comparator,this.key,this.value,this.left,e))}toString(){return`(${this.left} ${this.key}=${this.value} ${this.right})`}get balance(){return this.left.height-this.right.height}get height(){return Math.max(this.left.height,this.right.height)+1}*keys(){yield*this.left.keys(),yield this.key,yield*this.right.keys()}*values(){yield*this.left.values(),yield this.value,yield*this.right.values()}*entries(){yield*this.left.entries(),yield[this.key,this.value],yield*this.right.entries()}};o(H,"Node");Ur.__decorate([Fr.lazy],H.prototype,"balance",null);Ur.__decorate([Fr.lazy],H.prototype,"height",null);function jt(t){let e=t.balance;return e==-2?Wi(t):e==2?Gi(t):t}o(jt,"balance");function Gi(t){let e=t.left.balance;return e==-1?Di(t):e==1?Kr(t):t}o(Gi,"balanceLeft");function Wi(t){let e=t.right.balance;return e==1?Vi(t):e==-1?Jr(t):t}o(Wi,"balanceRight");function Kr(t){return Zr(t)}o(Kr,"balanceLeftLeft");function Di(t){let e=$r(t.left);return Kr(t.replaceLeft(e))}o(Di,"balanceLeftRight");function Jr(t){return $r(t)}o(Jr,"balanceRightRight");function Vi(t){let e=Zr(t.right);return Jr(t.replaceRight(e))}o(Vi,"balanceRightLeft");function $r(t){let e=t.right,r=e.left,n=t.replaceRight(r);return e.replaceLeft(n)}o($r,"rotateLeft");function Zr(t){let e=t.left,r=e.right,n=t.replaceLeft(r);return e.replaceRight(n)}o(Zr,"rotateRight")});var Xr=h(de=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0});de.unique=de.UniqueTransducer=void 0;var Te=w(),Ui=R(),Qr=Yr(),ut=class{constructor(e){this.comparator=e}async_(e){return Te.__asyncGenerator(this,arguments,o(function*(){var n,s;let c=Qr.AVLTree.empty(this.comparator);try{for(var u=Te.__asyncValues(e),l;l=yield Te.__await(u.next()),!l.done;){let f=l.value;c.contains(f)||(c=c.insert(f,void 0),yield yield Te.__await(f))}}catch(f){n={error:f}}finally{try{l&&!l.done&&(s=u.return)&&(yield Te.__await(s.call(u)))}finally{if(n)throw n.error}}},"async_1"))}*sync(e){let r=Qr.AVLTree.empty(this.comparator);for(let n of e)r.contains(n)||(r=r.insert(n,void 0),yield n)}};o(ut,"UniqueTransducer");de.UniqueTransducer=ut;function Fi(t=Ui.ascending){return new ut(t)}o(Fi,"unique");de.unique=Fi});var Ir=h(pe=>{"use strict";Object.defineProperty(pe,"__esModule",{value:!0});pe.WindowedTransducer=pe.windowed=void 0;var ye=w();function Ki(t,e=1,r=!1){return new lt(t,e,r)}o(Ki,"windowed");pe.windowed=Ki;var lt=class{constructor(e,r,n){this.size=e,this.step=r,this.remainder=n}async_(e){return ye.__asyncGenerator(this,arguments,o(function*(){var n,s;let c=[],u=0;try{for(var l=ye.__asyncValues(e),f;f=yield ye.__await(l.next()),!f.done;){let d=f.value;if(u>0){u--;continue}c.push(d),c.length===this.size&&(yield yield ye.__await([...c]),c=c.slice(this.step),this.step>this.size&&(u=this.step-this.size))}}catch(d){n={error:d}}finally{try{f&&!f.done&&(s=l.return)&&(yield ye.__await(s.call(l)))}finally{if(n)throw n.error}}this.remainder&&(yield yield ye.__await([...c]))},"async_1"))}*sync(e){let r=[],n=0;for(let s of e){if(n>0){n--;continue}r.push(s),r.length===this.size&&(yield[...r],r=r.slice(this.step),this.step>this.size&&(n=this.step-this.size))}this.remainder&&(yield[...r])}};o(lt,"WindowedTransducer");pe.WindowedTransducer=lt});var en=h(z=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0});z.zipWithIndex=z.zip=z.ZipTransducer=void 0;var ft=w(),Nr=R(),Ji=tt(),Ae=class{constructor(e){this.other=e}async_(e){return ft.__asyncGenerator(this,arguments,o(function*(){if(!(0,Nr.isAsyncIterable)(this.other))throw new Error("Unsupported operation exception");let n=e[Symbol.asyncIterator](),s=this.other[Symbol.asyncIterator]();for(;;){let[c,u]=yield ft.__await(Promise.all([n.next(),s.next()]));if(c.done||u.done)return yield ft.__await(void 0);yield yield ft.__await([c.value,u.value])}},"async_1"))}*sync(e){if(!(0,Nr.isIterable)(this.other))throw new Error("Unsupported operation exception");let r=e[Symbol.iterator](),n=this.other[Symbol.iterator]();for(;;){let s=r.next(),c=n.next();if(s.done||c.done)return;yield[s.value,c.value]}}};o(Ae,"ZipTransducer");z.ZipTransducer=Ae;function $i(t){return new Ae(t)}o($i,"zip");z.zip=$i;function Zi(){return new Ae((0,Ji.range)(0))}o(Zi,"zipWithIndex");z.zipWithIndex=Zi});var Se=h(g=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0});var b=w();b.__exportStar(ge(),g);b.__exportStar(hr(),g);b.__exportStar(mr(),g);b.__exportStar(gr(),g);b.__exportStar(br(),g);b.__exportStar(Ue(),g);b.__exportStar(wr(),g);b.__exportStar(kt(),g);b.__exportStar(Or(),g);b.__exportStar(kr(),g);b.__exportStar(St(),g);b.__exportStar(Sr(),g);b.__exportStar(_r(),g);b.__exportStar(Tr(),g);b.__exportStar(_t(),g);b.__exportStar(Rr(),g);b.__exportStar(Cr(),g);b.__exportStar(Mr(),g);b.__exportStar(zr(),g);b.__exportStar(Wr(),g);b.__exportStar(Xr(),g);b.__exportStar(Ir(),g);b.__exportStar(en(),g)});var nn=h(me=>{"use strict";Object.defineProperty(me,"__esModule",{value:!0});me.caching=me.cache=void 0;function Ii(t,e,r){if(typeof r.value!="function")throw new Error("@cache can only decorate methods");let n=new WeakMap;function s(c){let u=n.get(c);if(u)return u;let l=new Map;return n.set(c,l),l}return o(s,"getCache"),Object.defineProperty(t,e,Object.assign(Object.assign({},r),{value:function(...c){let u=JSON.stringify(c),l=s(this),f=l.get(u);if(typeof f!="undefined"||l.has(u))return f;let d=r.value.call(this,...c);return l.set(u,d),d}}))}o(Ii,"cache");me.cache=Ii;function Ni(t){let e=new Map;return function(...r){let n=JSON.stringify(r),s=e.get(n);if(typeof s!="undefined"||e.has(n))return s;let c=t(...r);return e.set(n,c),c}}o(Ni,"caching");me.caching=Ni});var tn=D(Se()),Yi=D(R()),Qi=D(Se());function Xi(t){switch(typeof t){case"undefined":return!0;case"string":return t.trim()==="";case"number":return isNaN(t);case"object":{if(t==null)return!0;if(x.isObject(t))return Object.keys(t).length===0;if(Array.isArray(t))return t.length===0}}return!1}o(Xi,"isEmpty");var he=class{static noWhitespace(e){return e&&typeof e=="string"?e.replace(/\s+/g,""):""}static startWith(e,r){return e?e.substring(0,r.length)===r:e===r}static endsWith(e,r){return e.substring(e.length-r.length,e.length)===r}static isEmpty(e){return e===void 0||e===null?!0:e.trim().length===0}static isEmail(e){return typeof e=="string"&&this.validEmailPattern.test(e)}static isLowerCase(e){return e===e.toLowerCase()&&e!==e.toUpperCase()}static isUpperCase(e){return e===e.toUpperCase()&&e!==e.toLowerCase()}static kebabCase(e){return he.delimiterCase(e,"-")}static snakeCase(e){return he.delimiterCase(e,"_")}static delimiterCase(e,r){return e.replace(/([A-Z][a-z]+|\d+)/gm,`${r}$1`).replace(new RegExp(`^${r}`),"").toLowerCase()}static titleCase(e){return he.isEmpty(e)?"":e.replace(/\w\S*/g,r=>r.charAt(0).toUpperCase()+r.substr(1).toLowerCase())}static camelCase(e){return he.isEmpty(e)?"":e.replace(/([A-Za-z]+|\d+)/gm,r=>r.charAt(0).toUpperCase()+r.substr(1).toLowerCase()).replace(new RegExp("^."),r=>r.toLowerCase()).replace(new RegExp(/[_\-\s]/g),"")}},G=he;o(G,"Strings"),G.validEmailPattern=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+$/;function He(t,e,r){if(e(t))return r(t);switch(typeof t){case"undefined":return;case"object":{if(t===null)return null;if(Array.isArray(t))return t.map(n=>He(n,e,r));if(x.isObject(t))return x.keys(t).sort().reduce((n,s)=>{let c=t[s];return n[s]=He(c,e,r),n},{})}}return t}o(He,"walkValues");function dt(t,e){switch(typeof t){case"undefined":return;case"object":{if(t===null)return null;if(Array.isArray(t))return t.map(r=>dt(r,e));if(x.isObject(t))return x.keys(t).sort().reduce((r,n)=>{let s=t[n];return r[e(String(n))]=dt(s,e),r},{})}}return t}o(dt,"walkKeys");var x=class{static isObject(e){return e&&typeof e=="object"&&(e.constructor===Object||/Object.*native/.test(e.constructor.toString()))}static keys(e){return Object.keys(e)}static values(e){return Object.keys(e).map(r=>e[r])}static entries(e){return Object.keys(e).map(r=>[r,e[r]])}static removeEmpty(e){return e&&(x.isObject(e)?Object.keys(e).reduce((r,n)=>{let s=x.removeEmpty(e[n]);return Xi(s)||(r[n]=s),r},{}):e)}static sort(e){return e&&(Array.isArray(e)?e.map(x.sort):x.isObject(e)?Object.keys(e).sort().reduce((r,n)=>{let s=e[n];return r[n]=x.sort(s),r},{}):e)}static toLowerCase(e){return typeof e=="string"?e.toLowerCase():Array.isArray(e)?e.map(x.toLowerCase):O(()=>x.isObject(e))?Object.entries(e).reduce((r,[n,s])=>(r[n]=x.toLowerCase(s),r),{}):e}static snakeCase(e){return dt(e,G.snakeCase)}static camelCase(e){return dt(e,G.camelCase)}static filter(e,r){let n=x.keys(e).filter(r);return x.pick(e,...n)}static omit(e,...r){return r.reduce((n,s)=>(Reflect.deleteProperty(n,s),n),e)}static pick(e,...r){return r.reduce((n,s)=>(n[s]=e[s],n),{})}};o(x,"Objects");function O(t,e=void 0){try{let r=t();return typeof r=="undefined"?e:r}catch(r){return e}}o(O,"get");var q=(()=>typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof module!="undefined"?module:Function("return this")())();function rn(t,e,r){let n=t[e];return typeof n=="undefined"?t[e]=r:Array.isArray(n)?n.indexOf(r)==-1&&n.push(r):t[e]=[n,r],t}o(rn,"accumulateMultipleValues");function Pe(t=q){return t.triptease=t.triptease||{},t.triptease.onboard=t.triptease.onboard||{},{triptease:t.triptease,onboard:t.triptease.onboard}}o(Pe,"globalObjects");var qt=class{constructor(e){let r=qt.RFC_3986.exec(e);if(!r)throw new Error(`Invalid Uri: ${e}`);let[,,n,,s,c,,u,,l]=r;this.scheme=n,this.authority=s?new yt(s):void 0,this.path=c,this.query=u,this.fragment=l}toString(){let e=[];return typeof this.scheme!="undefined"&&e.push(this.scheme,":"),typeof this.authority!="undefined"&&e.push("//",this.authority.toString()),e.push(this.path),typeof this.query!="undefined"&&e.push("?",this.query),typeof this.fragment!="undefined"&&e.push("#",this.fragment),e.join("")}get host(){return this.authority&&this.authority.host}get port(){return this.authority&&this.authority.port}get userInfo(){return this.authority&&this.authority.userInfo}},k=qt;o(k,"Uri"),k.RFC_3986=/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;var Bt=class{constructor(e){let r=Bt.RFC_3986.exec(e);if(!r)throw new Error(`Invalid Authority: ${e}`);let[,n,s,c]=r;this.userInfo=n,this.host=s,this.port=c}toString(){let e=[];return typeof this.userInfo!="undefined"&&e.push(this.userInfo,"@"),typeof this.host!="undefined"&&e.push(this.host),typeof this.port!="undefined"&&e.push(":",this.port),e.join("")}},yt=Bt;o(yt,"Authority"),yt.RFC_3986=/(?:([^@]+)@)?([^:]+)(?::([\d]+))?/;var on=D(nn()),sn=D(Et());var F;(function(n){n.Native="native",n.NonNative="non-native",n.NotImplemented="not-implemented"})(F||(F={}));function an(t,e){return O(()=>e.split(".").reduce((r,n)=>r[n],t))}o(an,"getProperty");function eo(t){return t==null?F.NotImplemented:typeof t=="function"?t.toString().includes("native code")?F.Native:F.NonNative:F.Native}o(eo,"isNative");var pt=class{static exposeApi(){let e=Pe(q).triptease;e.native||(e.native=pt)}static getProperty(e){let r=an(q,e);return eo(r)!==F.NonNative?r:an(pt.window,e)}static get window(){let e=q;if(!e.document)return e;try{let r=e.document,n=r.querySelector("[name='triptease.native']");if(n)return n.contentWindow;let s=r.createElement("iframe");return s.style.display="none",s.setAttribute("title","blank"),s.setAttribute("aria-hidden","true"),s.setAttribute("name","triptease.native"),r.documentElement.appendChild(s),s.contentWindow}catch(r){return e}}},_=pt;o(_,"Native"),xt([on.cache],_,"getProperty",1),xt([sn.lazy],_,"window",1);var to=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}\.\d{3}Z)?$/;function ro(t){return He(t,e=>typeof e=="string"&&to.test(e),e=>{let r=new Date(e);return isNaN(r.valueOf())?e:r})}o(ro,"convertDates");var no=_.getProperty("JSON.parse"),cn=_.getProperty("JSON.stringify"),io=_.getProperty("Date.prototype.toISOString"),oo=_.getProperty("atob"),so=_.getProperty("btoa"),K=class{static parse(e){return no(e)}static parseWithDates(e){return ro(K.parse(e))}static stringify(e){return cn(this.clean(e))}static clean(e){return He(e,r=>{let n=typeof r;switch(n){case"undefined":case"string":case"number":case"boolean":return!0;case"object":{if(r===null)return!0;if(Array.isArray(r)||x.isObject(r))return!1;if("toJSON"in r)return!0}}throw new Error(`Illegal JsonValue: ${n} ${r} `)},r=>r instanceof Date?io.call(r):r)}static atob(e){try{let r=oo(e);return K.parseWithDates(r)}catch(r){}}static btoa(e){try{if(!x.isObject(e))return;let r=cn(e);return so(r)}catch(r){}}};o(K,"Json");function Lt(t,e=!0){return t?(t.indexOf("?")==0&&(t=t.substring(1,t.length)),t.split("&").map(function(r){return r.split("=")}).reduce(function(r,n){let s=n[0],c=n[1];if(!s)return r;let u=un(c),l=e?ao(u):u;return rn(r,un(s),l)},{})):{}}o(Lt,"queryObject");function un(t){return O(()=>decodeURIComponent(t.replace(/\+/g,"%20")),t)}o(un,"decode");function ao(t){try{return K.parse(t)}catch(e){return t}}o(ao,"coerce");var ln=_.getProperty("console.log"),co=_.getProperty("console.error"),uo=_.getProperty("console.debug"),Ct=class{constructor(e=ln,r=co,n=uo||ln){this.log=e;this.error=r;this.debug=n}};o(Ct,"ConsoleLogger");var Mt=class{constructor(){this.log=o(()=>{},"log");this.error=o(()=>{},"error");this.debug=o(()=>{},"debug")}};o(Mt,"NoOpLogger");var fn="triptease-debug",lo=256;function fo(t,e=fn){let r=O(()=>{var n;return Lt((n=t.location)==null?void 0:n.search,!1)[e]})||O(()=>{var n;return Lt(new k((n=t.location)==null?void 0:n.originalHref).query,!1)[e]})||O(()=>{var n,s;return(s=(n=t.process)==null?void 0:n.env)==null?void 0:s.DEBUG})||O(()=>{var n;return((n=t.localStorage)==null?void 0:n.getItem)&&t.localStorage.getItem(e)})||O(()=>{var n;return((n=t.sessionStorage)==null?void 0:n.getItem)&&t.sessionStorage.getItem(e)})||"";return O(()=>r.substring(0,lo),"")}o(fo,"globalParameter");function yo(t){return fo(t,fn).split(",").map(e=>e.trim())}o(yo,"debugPatterns");function dn(t){let e=t.replace(/\./g,"\\.").replace(/\*/g,".*");return new RegExp("^"+e+"$")}o(dn,"wildcardToRegexp");function po(t,e=q){try{let r=yo(e),n=r.filter(s=>s[0]==="!").map(s=>s.substr(1));return n.length>0?!n.some(s=>dn(s).test(t)):r.some(s=>s==="true"||dn(s).test(t))}catch(r){return!1}}o(po,"nameMatches");var zt=class{constructor(e){this.name=e;this.console=new Ct}debug(e,...r){this.console.debug(`[${this.name}] ${e}`,...r)}log(e,...r){this.console.log(`[${this.name}] ${e}`,...r)}error(e,...r){this.console.error(`[${this.name}] ${e}`,...r)}};o(zt,"NamedLogger");function yn(t,e=q){return po(t,e)?new zt(t):new Mt}o(yn,"namedLogger");function P(t){return t&&O(()=>t instanceof HTMLAnchorElement,t.tagName==="A")}o(P,"isAnchor");function pn(t){return t&&O(()=>t instanceof HTMLInputElement,t.tagName==="INPUT")}o(pn,"isInput");function hn(t){return t&&O(()=>t instanceof HTMLButtonElement,t.tagName==="BUTTON")}o(hn,"isButton");function W(t){var r,n;if(P(t))return Array.from(t.relList);let e=t.form;return e?(n=(r=e.getAttribute("rel"))==null?void 0:r.split(/\s+/))!=null?n:[]:[]}o(W,"relList");function mn(t,e){if(P(t)){t.relList.contains(e)||t.relList.add(e);return}let r=t.form;if(!r)return;let n=new Set(W(t));n.add(e),r.setAttribute("rel",Array.from(n).join(" "))}o(mn,"addRel");function Gt(t,e){if(P(t)){t.relList.remove(e);return}let r=t.form;if(!r)return;let n=new Set(W(t));n.delete(e),r.setAttribute("rel",Array.from(n).join(" "))}o(Gt,"removeRel");var ho=new Set([null,"","_top","_parent","_self"]);function gn(t,e){if(P(t)){t.target=e;return}let r=t.form;if(!!r)return r.target=e}o(gn,"setTarget");function Ee(t){let e=t.target||t.getAttribute("target");return!ho.has(e)}o(Ee,"opensInNewWindow");var ht=class{static get(){return O(()=>{let e="8975.130923";return e?"v"+e:"latest"})}};o(ht,"Version");var mo=ht.get();function go(t){return`https://onboard.triptease.io/integrations/${mo}/${t}.js`}o(go,"onboard");function Wt(t){return typeof t!="string"?"":t.split(/[^A-Za-z0-9-]/)[0].replace(/-/g,"").toLowerCase()}o(Wt,"cleanName");var a=class{constructor(e){this.name=e;if(!/[A-Za-z0-9]/.test(e))throw new Error("Only alpha numeric allowed");a.Lookup.set(Wt(e),this)}static values(){return Array.from(a.Lookup.values())}static parse(e){let r=a.Lookup.get(Wt(e));if(!r)throw new Error(`Invalid booking engine name: ${e}`);return r}toString(){return this.name}get canonical(){return Wt(this.name)}get folder(){return this.isSelfIntegration()?a.Default.folder:G.kebabCase(this.name)}get script(){return go(this.folder)}isSelfIntegration(){return a.SelfIntegration.has(this)}},i=a;o(i,"IntegrationName"),i.Lookup=new Map,i.AboveProperty=new a("AboveProperty"),i.AfricaAlbida=new a("AfricaAlbida"),i.Alaric=new a("Alaric"),i.Ascott=new a("Ascott"),i.ASIWebRes=new a("ASIWebRes"),i.AtlantisORS=new a("AtlantisORS"),i.Auberge=new a("Auberge"),i.AvailPro=new a("AvailPro"),i.Avvio=new a("Avvio"),i.Ayana=new a("Ayana"),i.AZDS=new a("AZDS"),i.BestWesternFrance=new a("BestWesternFrance"),i.BestWesternItaly=new a("BestWesternItaly"),i.BestWesternUk=new a("BestWesternUk"),i.Betsy=new a("Betsy"),i.Bloom=new a("Bloom"),i.BookAssist=new a("BookAssist"),i.BookEasy=new a("BookEasy"),i.Bookolo=new a("Bookolo"),i.BookOnlineNow=new a("BookOnlineNow"),i.BookVisit=new a("BookVisit"),i.Booking=new a("Booking"),i.Booking2Hotels=new a("Booking2Hotels"),i.BookingExpert=new a("BookingExpert"),i.BrochnerHotels=new a("BrochnerHotels"),i.BusyRooms=new a("BusyRooms"),i.BWHHotelGroup=new a("BWHHotelGroup"),i.CenterHotels=new a("CenterHotels"),i.CityExpress=new a("CityExpress"),i.Clink=new a("Clink"),i.Clock=new a("Clock"),i.CloudBeds=new a("CloudBeds"),i.Cocotel=new a("Cocotel"),i.CompuRez=new a("CompuRez"),i.Comwell=new a("Comwell"),i.ConstanceHotels=new a("ConstanceHotels"),i.Default=new a("Default"),i.DerqueBooking=new a("DerqueBooking"),i.DeutscheHospitality=new a("DeutscheHospitality"),i.Dingus=new a("Dingus"),i.Dirs21=new a("Dirs21"),i.DoyleCollection=new a("DoyleCollection"),i.EasyBooking=new a("EasyBooking"),i.EasyConsulting=new a("EasyConsulting"),i.Erez=new a("Erez"),i.EGds=new a("EGds"),i.Evancy=new a("Evancy"),i.Exely=new a("Exely"),i.Everly=new a("Everly"),i.ExtendedStayAmerica=new a("ExtendedStayAmerica"),i.Ezee=new a("Ezee"),i.FastBooking=new a("FastBooking"),i.Firmdale=new a("Firmdale"),i.FourSeasons=new a("FourSeasons"),i.FrontDeskMaster=new a("FrontDeskMaster"),i.FullertonHotels=new a("FullertonHotels"),i.Furama=new a("Furama"),i.GemHotels=new a("GemHotels"),i.Generic=new a("Generic"),i.GlenEagles=new a("GlenEagles"),i.GothiaTowers=new a("GothiaTowers"),i.GuestCentric=new a("GuestCentric"),i.GuestDesk=new a("GuestDesk"),i.GuestLine=new a("GuestLine"),i.GuestPro=new a("GuestPro"),i.Guild=new a("Guild"),i.HamiltonIsland=new a("HamiltonIsland"),i.HamiltonIslandHolidayHomes=new a("HamiltonIslandHolidayHomes"),i.HandPickedHotels=new a("HandPickedHotels"),i.Hart=new a("Hart"),i.HHotels=new a("HHotels"),i.HighLevelSoftware=new a("HighLevelSoftware"),i.Hipotels=new a("Hipotels"),i.HiUsa=new a("HiUsa"),i.Hoteliers=new a("Hoteliers"),i.HoteliersGuru=new a("HoteliersGuru"),i.HotelKeyApp=new a("HotelKeyApp"),i.HotelNetSolutions=new a("HotelNetSolutions"),i.HotelPartner=new a("HotelPartner"),i.Hotetec=new a("Hotetec"),i.Hotusa=new a("Hotusa"),i.Hoxton=new a("Hoxton"),i.HspRez=new a("HspRez"),i.HtiSystems=new a("HtiSystems"),i.Hyatt=new a("Hyatt"),i.GHS=new a("GHS"),i.GuestRez=new a("GuestRez"),i.Iberostar=new a("Iberostar"),i.Infotera=new a("Infotera"),i.Inkaterra=new a("Inkaterra"),i.InnQuest=new a("InnQuest"),i.InnRoad=new a("InnRoad"),i.InnStyle=new a("InnStyle"),i.Inntopia=new a("Inntopia"),i.Iperbooking=new a("Iperbooking"),i.IRM=new a("IRM"),i.JazHotels=new a("JazHotels"),i.Journey=new a("Journey"),i.Kasa=new a("Kasa"),i.KeaHotels=new a("KeaHotels"),i.Kempinski=new a("Kempinski"),i.Kerzner=new a("Kerzner"),i.LatourHotelsAndResorts=new a("LatourHotelsAndResorts"),i.LHW=new a("LHW"),i.LifeHouse=new a("LifeHouse"),i.Loews=new a("Loews"),i.Lotte=new a("Lotte"),i.LumaHotels=new a("LumaHotels"),i.Luxscapia=new a("Luxscapia"),i.McDreams=new a("McDreams"),i.Mews=new a("Mews"),i.MgmResorts=new a("MgmResorts"),i.MillenniumHotels=new a("MillenniumHotels"),i.MinorHotels=new a("MinorHotels"),i.Mirai=new a("Mirai"),i.Namastay=new a("Namastay"),i.NativePlaces=new a("NativePlaces"),i.NeoBookings=new a("NeoBookings"),i.NetAffinity=new a("NetAffinity"),i.NHHotels=new a("NHHotels"),i.OKU=new a("OKU"),i.OmegaHotelManagement=new a("OmegaHotelManagement"),i.Omnibees=new a("Omnibees"),i.OneHotels=new a("OneHotels"),i.Opera=new a("Opera"),i.OpenHotel=new a("OpenHotel"),i.P3=new a("P3"),i.PalaceResorts=new a("PalaceResorts"),i.PanHospitality=new a("PanHospitality"),i.Paraty=new a("Paraty"),i.Pegasus=new a("Pegasus"),i.Pelican=new a("Pelican"),i.Phobs=new a("Phobs"),i.Planet=new a("Planet"),i.PointAHotels=new a("PointAHotels"),i.Prestige=new a("Prestige"),i.ProfitRoom=new a("ProfitRoom"),i.Protel=new a("Protel"),i.PursuitCollection=new a("PursuitCollection"),i.RedPlanet=new a("RedPlanet"),i.RegalHotels=new a("RegalHotels"),i.ReserveHotel=new a("ReserveHotel"),i.ReserveOnline=new a("ReserveOnline"),i.ReservationResources=new a("ReservationResources"),i.Reservit=new a("Reservit"),i.Reseze=new a("Reseze"),i.ResNexus=new a("ResNexus"),i.ResOnTheWeb=new a("ResOnTheWeb"),i.Retargeting=new a("Retargeting"),i.Revenatium=new a("Revenatium"),i.Reztrip=new a("Reztrip"),i.RGuest=new a("RGuest"),i.RMSCloud=new a("RMSCloud"),i.Roiback=new a("Roiback"),i.RoomKey=new a("RoomKey"),i.RoomMaster=new a("RoomMaster"),i.RoomSome=new a("RoomSome"),i.RoomStay=new a("RoomStay"),i.SandsVegas=new a("SandsVegas"),i.Sandrix=new a("Sandrix"),i.Sbe=new a("Sbe"),i.SeamillHydro=new a("SeamillHydro"),i.Seekda=new a("Seekda"),i.Selfbook=new a("Selfbook"),i.Shr=new a("Shr"),i.SimpleBooking=new a("SimpleBooking"),i.SiteMinder=new a("SiteMinder"),i.Skipper=new a("Skipper"),i.Staah=new a("Staah"),i.StationCasinos=new a("StationCasinos"),i.Stayntouch=new a("Stayntouch"),i.Sweett=new a("Sweett"),i.Synxis=new a("Synxis"),i.SysHotelOnline=new a("SysHotelOnline"),i.Taj=new a("Taj"),i.ThinkReservations=new a("ThinkReservations"),i.Travelanium=new a("Travelanium"),i.TravelClick=new a("TravelClick"),i.Uibscrs=new a("Uibscrs"),i.Up=new a("Up"),i.VacationMarbella=new a("VacationMarbella"),i.Valamar=new a("Valamar"),i.VerticalBooking=new a("VerticalBooking"),i.Viato=new a("Viato"),i.Vinpearl=new a("Vinpearl"),i.WebRezPro=new a("WebRezPro"),i.WestCordHotels=new a("WestCordHotels"),i.Witbooking=new a("Witbooking"),i.Youngs=new a("Youngs"),i.Zafiro=new a("Zafiro"),i.SelfIntegration=new Set([a.Dirs21,a.HtiSystems,a.ExtendedStayAmerica]);function bn(t){let e=O(()=>t.host.toLowerCase(),""),r=t.toString().toLowerCase();if(e==="gc.synxis.com")return i.Synxis;if(e==="be.synxis.com")return i.Synxis;if(e.indexOf("travelclick")!==-1)return i.TravelClick;if(e.indexOf("bookingbutton")!==-1||e.indexOf("book-directonline")!==-1||e.indexOf("direct-book.com")!==-1)return i.SiteMinder;if(e.indexOf(".hyatt.")!==-1)return i.Hyatt;if(e.indexOf(".bookonthenet.")!==-1)return i.RoomKey;if(e.indexOf("firmdalehotels")!==-1)return i.Firmdale;if(e.indexOf("apxhotelsapartments")!==-1||e.indexOf("mews.li")!==-1)return i.Mews;if(e.indexOf(".guestline.")!==-1||e.indexOf(".roomlynx.")!==-1)return i.GuestLine;if(e.indexOf("book-onlinenow.net")!==-1)return i.BookOnlineNow;if(e.indexOf("windsurfercrs.com")!==-1)return i.Shr;if(e.indexOf("bestwestern.fr")!==-1)return i.BestWesternFrance;if(r.indexOf("webrez.com")!==-1||e.indexOf("worldweb.com")!==-1||e.indexOf("webrez.com/v")!==-1)return i.WebRezPro;if(e.indexOf("hoteliers.com")!==-1)return i.Hoteliers;if(e.indexOf("doylecollection")!==-1)return i.DoyleCollection;if(r.indexOf("/bookcore/")!==-1)return i.Roiback;if(e.indexOf("nativeplaces.com")!==-1)return i.NativePlaces;if(r.indexOf("/cgi-bin/lansaweb")!==-1)return i.StationCasinos;if(e==="www.palms.com")return i.StationCasinos;if(e.indexOf(".webhotel.")!==-1)return i.Opera;if(e.indexOf("online.bookvisit.")!==-1)return i.BookVisit;if(e.indexOf("direct-reservation")!==-1)return i.BusyRooms;if(e.indexOf("youngshotels")!==-1)return i.Youngs;if(e.indexOf("loewshotels")!==-1)return i.Loews;if(e.indexOf("regalhotel")!==-1)return i.RegalHotels;if(e.indexOf("live.high-level-software")!==-1)return i.HighLevelSoftware;if(e.indexOf("premiereserve.com")!==-1||e.indexOf("teg-hotels.com")!==-1)return i.Everly;if(e.indexOf("simplebooking")!==-1||e.indexOf("booking.crimsonhotel")!==-1)return i.SimpleBooking;if(e.indexOf("bookassist.com")!==-1)return i.BookAssist;if(e.indexOf("booking.africaalbidatourism.com")!==-1)return i.AfricaAlbida;if(e.indexOf("onepagebooking.com")!==-1)return i.HotelNetSolutions;if(e.indexOf("reservhotel.com")!==-1)return i.ReserveHotel;if(r.indexOf("/irmng")!==-1)return i.IRM;if(e.indexOf("booking-channel.com")!==-1)return i.Hotusa;if(e.includes(".venetian.")||e.includes(".venetianlasvegas."))return i.SandsVegas;if(e.indexOf("clock-software.com")!==-1||e.indexOf("villasriomar.com")!==-1)return i.Clock;if(e.indexOf("tajinnercircle.com")!==-1||e.indexOf("tajhotels.com")!==-1||e.indexOf("gateway-hotels.")!==-1)return i.Taj;if(e.indexOf("booking.iberostartheclub.com")!==-1)return i.Iberostar;if(e.indexOf("services.comwell.com")!==-1)return i.Comwell;if(e.indexOf(".profitroom.")!==-1)return i.ProfitRoom;if(e.indexOf("bookingexpert.it")!==-1)return i.BookingExpert;if(e.indexOf("cloud-reservations.net")!==-1)return i.Hart;if(e.indexOf("pr.palaceresorts.com")!==-1||e.indexOf("pr.moonpalace.com")!==-1||e.indexOf("pr.leblancsparesorts.com")!==-1||e.indexOf(".palaceelite.com")!==-1)return i.PalaceResorts;if(e.indexOf(".iqwebbook.com")!==-1)return i.InnQuest;if(e.indexOf("theguild.co")!==-1)return i.Guild;if(e.indexOf(".innroad.com")!==-1)return i.InnRoad;if(e.indexOf(".furama.com")!==-1)return i.Furama;if(e.indexOf(".reztrip.com")!==-1)return i.Reztrip;if(e.indexOf("nisekoportfolio.com")!==-1)return i.BookEasy;if(e.indexOf(".steigenberger.com")!==-1||e.indexOf(".intercityhotel.com")!==-1||e.indexOf(".maxxhotel.com")!==-1||e.indexOf(".jaz-hotel.com")!==-1)return i.DeutscheHospitality;if(e.indexOf(".cloudbeds.com")!==-1)return i.CloudBeds;if(e.indexOf(".thehoxton.com")!==-1)return i.Hoxton;if(e.indexOf(".lottehotel.com")!==-1)return i.Lotte;if(e.indexOf("kempinski.com")!==-1)return i.Kempinski;if(e.indexOf("derquebooking")!==-1)return i.DerqueBooking;if(e.indexOf(".gfhoteles.")!==-1)return i.DerqueBooking;if(e.indexOf(".gleneagles.com")!==-1)return i.GlenEagles;if(e.indexOf(".redplanethotels.com")!==-1)return i.RedPlanet;if(e.indexOf(".banffjaspercollection.com")!==-1||e.indexOf(".glacierparkcollection.com")!==-1)return i.PursuitCollection;if(e.indexOf(".bestwestern.co.uk")!==-1)return i.BestWesternUk;if(e.indexOf(".sbe.com")!==-1)return i.Sbe;if(e.indexOf(".reserve-online.net")!==-1)return i.ReserveOnline;if(e.indexOf("secure-hotel-booking.com")!==-1)return i.AvailPro;if(e.indexOf(".syshotelonline.it")!==-1)return i.SysHotelOnline;if(e.indexOf(".reservit.com")!==-1)return i.Reservit;if(e.indexOf("vinpearl.com")!==-1)return i.Vinpearl;if(e.indexOf(".omnibees.com")!==-1)return i.Omnibees;if(e.indexOf(".hipotels.com")!==-1)return i.Hipotels;if(e.indexOf(".handpickedhotels.co.uk")!==-1)return i.HandPickedHotels;if(e.indexOf("bookings.zafirohotels.com")!==-1)return i.Zafiro;if(e.indexOf(".viatocrs.de")!==-1)return i.Viato;if(e.indexOf(".easy-booking.")!==-1)return i.EasyBooking;if(e.indexOf(".ipms247.")!==-1||e.indexOf("reservas.hotelkokai.com")!==-1)return i.Ezee;if(e.indexOf(".innstyle.")!==-1)return i.InnStyle;if(e.indexOf(".book-secure.")!==-1)return i.FastBooking;if(e.indexOf(".cityexpress.")!==-1)return i.CityExpress;if(e.indexOf(".hoteleasyreservations.")!==-1)return i.EasyConsulting;if(e.indexOf(".travelanium.")!==-1)return i.Travelanium;if(e.indexOf(".e-gds.")!==-1)return i.EGds;if(e.indexOf(".booking.com")!==-1)return i.Booking;if(e.indexOf(".iperbooking.")!==-1)return i.Iperbooking;if(e.indexOf(".okuhotels.")!==-1)return i.OKU;if(e.indexOf(".pegsbe.")!==-1)return i.Pegasus;if(e.indexOf(".the-ascott.")!==-1||e.indexOf(".discoverasr.")!==-1)return i.Ascott;if(e.indexOf("kasa.")!==-1)return i.Kasa;if(e.indexOf("verticalbooking.")!==-1)return i.VerticalBooking;if(e.indexOf(".avvio.")!==-1)return i.Avvio;if(e.indexOf(".bestwestern.it")!==-1)return i.BestWesternItaly;if(e.indexOf("extendedstayamerica.")!==-1)return i.ExtendedStayAmerica;if(e.indexOf(".fourseasons.")!==-1||e.indexOf(".fourseasonscountryclub.")!==-1||e.indexOf(".fsweb.")!==-1)return i.FourSeasons;if(e.indexOf(".hti-systems.")!==-1)return i.HtiSystems;if(e.indexOf("lhw.")!==-1)return i.LHW;if(e.indexOf("nh-hotels.")!==-1||e.indexOf(".nh-hoteles.")!==-1||e.indexOf("nh-collection.")!==-1)return i.NHHotels;if(e.indexOf(".h-hotels.")!==-1)return i.HHotels;if(e.indexOf(".gothiatowers.")!==-1||e.indexOf(".upperhouse.")!==-1)return i.GothiaTowers;if(e.indexOf(".1hotels.")!==-1)return i.OneHotels;if(e.indexOf(".asiwebres.")!==-1)return i.ASIWebRes;if(e.indexOf(".bwhhotelgroup.")!==-1)return i.BWHHotelGroup;if(e.indexOf(".frontdeskmaster.")!==-1)return i.FrontDeskMaster;if(e.indexOf(".evancy.")!==-1)return i.Evancy;if(e.indexOf(".brochner-hotels.")!==-1)return i.BrochnerHotels;if(e.indexOf(".welcome-anywhere.")!==-1)return i.RoomMaster;if(e.indexOf("staybloom.")!==-1)return i.Bloom;if(e.indexOf(".keahotels.")!==-1)return i.KeaHotels;if(e.indexOf("westcordhotels.")!==-1)return i.WestCordHotels;if(e.indexOf(".lumahotels.")!==-1)return i.LumaHotels;if(e.indexOf(".reservation-system.")!==-1||e.indexOf(".allhandsmarketing.")!==-1)return i.Pelican;if(e.indexOf(".pointahotels.")!==-1)return i.PointAHotels;if(e.indexOf(".hoteliers.guru")!==-1)return i.HoteliersGuru;if(e.indexOf(".reseze.")!==-1)return i.Reseze;if(e.indexOf(".aboveproperty.")!==-1)return i.AboveProperty;if(e.indexOf(".superghs.")!==-1)return i.GHS;if(e.indexOf(".rguest.")!==-1)return i.RGuest;if(e.indexOf(".ayana.")!==-1)return i.Ayana;if(e.indexOf("erez.")!==-1)return i.Erez;if(e.indexOf(".valamar.")!==-1)return i.Valamar;if(e.indexOf(".stayntouch.")!==-1)return i.Stayntouch;if(e.indexOf("resnexus.com")!==-1)return i.ResNexus;if(e.indexOf(".namastay.io")!==-1)return i.Namastay;if(e.indexOf("guestrez.")!==-1)return i.GuestRez;if(e.indexOf(".phobs.")!==-1)return i.Phobs;if(e.indexOf(".staah.")!==-1||e.indexOf(".swiftbook.")!==-1)return i.Staah;if(e.indexOf(".hamiltonisland.")!==-1||e.indexOf(".qualia.")!==-1)return i.HamiltonIsland;if(e.indexOf(".hamiltonislandholidayhomes.")!==-1)return i.HamiltonIslandHolidayHomes;if(r.indexOf("luxguests")!==-1)return i.Luxscapia;if(r.indexOf(".thinkreservations.")!==-1)return i.ThinkReservations;if(r.indexOf(".witbooking.")!==-1)return i.Witbooking;if(r.indexOf(".onejourney.")!==-1)return i.Journey;if(r.indexOf(".resontheweb.")!==-1)return i.ResOnTheWeb;if(e.indexOf(".bookoloengine.")!==-1)return i.Bookolo;if(e.indexOf(".openhotel.")!==-1)return i.OpenHotel;if(e.indexOf(".revenatium.")!==-1)return i.Revenatium;if(e.indexOf(".millenniumhotels.")!==-1)return i.MillenniumHotels;if(e.indexOf(".hotelkeyapp.")!==-1)return i.HotelKeyApp;if(e.indexOf(".omegahotelmanagement.")!==-1)return i.OmegaHotelManagement;if(e.indexOf(".panhospitality.")!==-1)return i.PanHospitality;if(e.indexOf("honeycomb.rt.triptease.io")!==-1||e.indexOf("b.triptease.io")!==-1)return i.Retargeting}o(bn,"bookingEngines");var xn=D(Pt()),wn=D(Se());function Dt(t){var e;return((e=t.host)==null?void 0:e.split("."))||[]}o(Dt,"parts");function On(t,e){let r=Dt(t).reverse(),n=Dt(e).reverse(),s=0;for(let[c,u]of(0,xn.array)(r,(0,wn.zip)(n)))if(c===u)s++;else break;return s>=3?!0:s===2?[r[s],n[s]].filter(c=>![void 0,"www"].includes(c)).length<=1:!1}o(On,"sameDomain");function Re(t){let[e]=Dt(t);return e}o(Re,"subdomain");var bo=new Set([void 0,i.Default]);function vn(t){return!bo.has(bn(t))}o(vn,"knownBookingEngine");function kn(t,e){if(t.host===e.host)return!1;let r=On(t,e);return!!(!r&&vn(e)||r&&xo(e))}o(kn,"isBookingEngineUrl");function xo(t){let e=Re(t);return e&&(e.includes("book")||e.includes("reservation"))}o(xo,"isBookingSubDomain");var wo=new Set(["book now","book","book room","book your stay","booking","check rates","check availability","cancel reservation","my reservations","reservations","reserve agora"]);function Sn(t){return mt(t).some(e=>wo.has(e))}o(Sn,"hasBookNowLabel");function Vt(t,e){let r=new k(e.href);return!!(kn(t,r)||Sn(e))}o(Vt,"isBookingEngineAnchor");function Ut(t,e){let r=e.form;if(!r)return!1;let n=new k(e.formAction||e.getAttribute("formaction")||r.action);return!!(kn(t,n)||Sn(e))}o(Ut,"isBookingEngineInput");function _n(t,e){return vn(t)?!1:P(e)?Vt(t,e):Ut(t,e)}o(_n,"isBookingEngineButton");function mt(t){return[t.innerText||t.textContent,t.value,t.title,t.getAttribute("alt")].filter(Boolean).map(e=>e.trim().toLowerCase())}o(mt,"labels");var Oo=yn("cross-domain-tracking"),vo={preserveRel:!1,preserveTarget:!1},gt=class{constructor(e,r={}){this.window=e;this.eventHandler=o(e=>{try{(P(e.target)||pn(e.target)||hn(e.target))&&this.handleClick(e.target)}catch(r){Oo.error("eventHandler threw error ",r)}},"eventHandler");this.config=je(je({},vo),r)}enable(){this.window.addEventListener("click",this.eventHandler,{capture:!0,passive:!0})}disable(){this.window.removeEventListener("click",this.eventHandler)}handleClick(e){this.matches(e)&&(this.handleOpener(e),this.handleReferrer(e),this.handleNewWindow(e))}matches(e){var n;if(this.config.customSelector)return!P(e)&&((n=e.form)==null?void 0:n.matches(this.config.customSelector))?!0:e.matches(this.config.customSelector);let r=new k(this.window.location.href);return _n(r,e)}handleOpener(e){let r=W(e);if(r.includes("noopener")){if(this.config.preserveRel)return;Gt(e,"noopener")}r.includes("opener")||mn(e,"opener")}handleReferrer(e){var n;if(W(e).includes("noreferrer")){if(this.config.preserveRel)return;Gt(e,"noreferrer")}P(e)?e.referrerPolicy="no-referrer-when-downgrade":(n=e.form)==null||n.setAttribute("referrerpolicy","no-referrer-when-downgrade")}handleNewWindow(e){Ee(e)||this.config.preserveTarget||gn(e,"_blank")}};o(gt,"CrossOriginTracking");function ko(t){let e=new k(t.href);return{type:t.tagName.toLowerCase(),uri:t.href,subdomain:Re(e),classList:Array.from(t.classList),relList:W(t),newWindow:Ee(t),target:t.getAttribute("target")||"_self",labels:mt(t)}}o(ko,"analyseAnchor");function So(t){let e=t.form;if(!e)return[];let r=new k(e.action);return[{type:t.tagName.toLowerCase(),uri:e.action,subdomain:Re(r),classList:[...Array.from(t.classList),...Array.from(e.classList)],relList:W(t),newWindow:Ee(e),target:e.getAttribute("target")||"_self",labels:mt(t)}]}o(So,"analyseInput");function Tn(t){let e=new k(t.location.href),n=Array.from(t.document.querySelectorAll("a[href]")).filter(f=>Vt(e,f)).map(ko),c=Array.from(t.document.querySelectorAll("form[action] input[type=submit], form[action] button[type=submit]")).filter(f=>Ut(e,f)).flatMap(So),u=[...n,...c],l=u.reduce((f,d)=>Object.keys(f).reduce((m,T)=>(m[T]=m[T].concat(d[T]),m),f),{type:[],uri:[],subdomain:[],classList:[],relList:[],newWindow:[],target:[],labels:[]});return{data:u,summary:l}}o(Tn,"findBookingButtons");var An=new gt(window);Pe(window).onboard.CrossOriginTracking=An;Pe(window).onboard.findBookingButtons=()=>Tn(window);An.enable();})();