vviinn-widgets 2.4.2 → 2.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/Handler-d1a8a86a.js +329 -0
- package/dist/cjs/{app-globals-d999d944.js → app-globals-474864e0.js} +1 -1
- package/dist/cjs/cropper-handler.cjs.entry.js +27 -0
- package/dist/cjs/{customized-slots-90e8e849.js → customized-slots-0aa6c3d6.js} +1 -1
- package/dist/cjs/{cropper-handler_27.cjs.entry.js → highlight-box_22.cjs.entry.js} +85 -469
- package/dist/cjs/{index-c0d08aca.js → imageSearch.store-076370bf.js} +10575 -14822
- package/dist/cjs/index-34d20028.js +3222 -0
- package/dist/cjs/{index-e8cf5dc5.js → index-61403ab1.js} +1 -1
- package/dist/cjs/{index-53400160.js → index-a87f1a44.js} +1 -1
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{vviinn-carousel_2.cjs.entry.js → vviinn-carousel_3.cjs.entry.js} +212 -25
- package/dist/cjs/vviinn-error.cjs.entry.js +19 -0
- package/dist/cjs/vviinn-preloader.cjs.entry.js +26 -0
- package/dist/cjs/vviinn-recommendations-sidebar.cjs.entry.js +2 -2
- package/dist/cjs/vviinn-vpr-button.cjs.entry.js +2 -2
- package/dist/cjs/vviinn-vps-button.cjs.entry.js +3 -3
- package/dist/cjs/vviinn-vps-widget.cjs.entry.js +162 -0
- package/dist/cjs/vviinn-widgets.cjs.js +3 -3
- package/dist/collection/components/image-search/search-filters/search-filters.js +1 -1
- package/dist/collection/components/vviinn-vps-widget/vviinn-vps-widget.js +3 -0
- package/dist/collection/openApi/index.js +1 -1
- package/dist/esm/Handler-639a4cb3.js +308 -0
- package/dist/esm/{app-globals-f91c6f94.js → app-globals-3888cd41.js} +1 -1
- package/dist/esm/cropper-handler.entry.js +23 -0
- package/dist/esm/{customized-slots-7be7f3b8.js → customized-slots-863113e2.js} +1 -1
- package/dist/esm/{cropper-handler_27.entry.js → highlight-box_22.entry.js} +21 -400
- package/dist/esm/{index-840ec915.js → imageSearch.store-b516d12e.js} +10749 -14986
- package/dist/esm/index-2f8fb0fe.js +3213 -0
- package/dist/esm/{index-00c7b7c2.js → index-36978848.js} +2 -2
- package/dist/esm/{index-d7147986.js → index-56c062df.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{vviinn-carousel_2.entry.js → vviinn-carousel_3.entry.js} +190 -4
- package/dist/esm/vviinn-error.entry.js +15 -0
- package/dist/esm/vviinn-preloader.entry.js +22 -0
- package/dist/esm/vviinn-recommendations-sidebar.entry.js +2 -2
- package/dist/esm/vviinn-vpr-button.entry.js +2 -2
- package/dist/esm/vviinn-vps-button.entry.js +3 -3
- package/dist/esm/vviinn-vps-widget.entry.js +158 -0
- package/dist/esm/vviinn-widgets.js +3 -3
- package/dist/types/components/image-search/search-filters/search-filters.d.ts +1 -1
- package/dist/types/components/vviinn-vpr-widget/vviinn-vpr-vidget.d.ts +1 -1
- package/dist/types/components/vviinn-vps-widget/vviinn-vps-widget.d.ts +2 -1
- package/dist/types/components.d.ts +1 -1
- package/dist/types/openApi/index.d.ts +2 -2
- package/dist/types/tracking/event.d.ts +1 -1
- package/dist/types/tracking/index.d.ts +8 -8
- package/dist/types/tracking/models.d.ts +1 -1
- package/dist/vviinn-widgets/{p-2d4cb17f.entry.js → p-0a9cee09.entry.js} +1 -1
- package/dist/vviinn-widgets/p-28678772.js +1 -0
- package/dist/vviinn-widgets/{p-07d8ba79.entry.js → p-2e6ecda7.entry.js} +1 -1
- package/dist/vviinn-widgets/{p-dc2da207.js → p-47183c9a.js} +1 -1
- package/dist/vviinn-widgets/p-535611cd.entry.js +1 -0
- package/dist/vviinn-widgets/p-606ff863.js +1 -0
- package/dist/vviinn-widgets/p-9cc6f0dd.entry.js +1 -0
- package/{www/build/p-ce96f232.js → dist/vviinn-widgets/p-ac0a2989.js} +1 -1
- package/dist/vviinn-widgets/p-ad29e9c5.entry.js +1 -0
- package/{www/build/p-a66512b2.js → dist/vviinn-widgets/p-b4caf042.js} +1 -1
- package/dist/vviinn-widgets/p-b547a6d0.entry.js +1 -0
- package/dist/vviinn-widgets/{p-7d5af04d.js → p-c853cba8.js} +1 -1
- package/dist/vviinn-widgets/p-d2097302.entry.js +1 -0
- package/dist/vviinn-widgets/p-d8d49616.entry.js +1 -0
- package/dist/vviinn-widgets/p-f582db5c.js +1 -0
- package/dist/vviinn-widgets/{p-9c7297c8.entry.js → p-f9410382.entry.js} +1 -1
- package/dist/vviinn-widgets/vviinn-widgets.esm.js +1 -1
- package/package.json +3 -3
- package/www/build/{p-2d4cb17f.entry.js → p-0a9cee09.entry.js} +1 -1
- package/www/build/p-28678772.js +1 -0
- package/www/build/{p-07d8ba79.entry.js → p-2e6ecda7.entry.js} +1 -1
- package/www/build/{p-dc2da207.js → p-47183c9a.js} +1 -1
- package/www/build/p-535611cd.entry.js +1 -0
- package/www/build/p-606ff863.js +1 -0
- package/www/build/p-7c313f33.js +125 -0
- package/www/build/p-9cc6f0dd.entry.js +1 -0
- package/{dist/vviinn-widgets/p-ce96f232.js → www/build/p-ac0a2989.js} +1 -1
- package/www/build/p-ad29e9c5.entry.js +1 -0
- package/{dist/vviinn-widgets/p-a66512b2.js → www/build/p-b4caf042.js} +1 -1
- package/www/build/p-b547a6d0.entry.js +1 -0
- package/www/build/{p-7d5af04d.js → p-c853cba8.js} +1 -1
- package/www/build/p-d2097302.entry.js +1 -0
- package/www/build/p-d8d49616.entry.js +1 -0
- package/www/build/p-e0153ae2.css +6 -0
- package/www/build/p-f582db5c.js +1 -0
- package/www/build/{p-9c7297c8.entry.js → p-f9410382.entry.js} +1 -1
- package/www/build/vviinn-widgets.esm.js +1 -1
- package/www/index.html +1 -1
- package/dist/vviinn-widgets/p-196479f9.js +0 -1
- package/dist/vviinn-widgets/p-ae524f97.entry.js +0 -1
- package/dist/vviinn-widgets/p-fce4183d.entry.js +0 -1
- package/www/build/p-196479f9.js +0 -1
- package/www/build/p-32bb0615.js +0 -1
- package/www/build/p-a67898be.css +0 -1
- package/www/build/p-ae524f97.entry.js +0 -1
- package/www/build/p-fce4183d.entry.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as n,f as r}from"./p-47183c9a.js";import{t,i as u,l as e,r as o,a as i,b as c,p as f,n as a,s as v,f as d,c as p,d as s,e as l,g as m,H as h,h as I,j as R,k as b}from"./p-f582db5c.js";var U="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function O(n,r,t){return n(t={path:r,exports:{},require:function(){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},t.exports),t.exports}var M=O((function(n,r){function t(n){return n}function u(n){return function(){return n}}function e(n,r,t,u,e,o,i,c,f){switch(arguments.length){case 1:return n;case 2:return function(){return r(n.apply(this,arguments))};case 3:return function(){return t(r(n.apply(this,arguments)))};case 4:return function(){return u(t(r(n.apply(this,arguments))))};case 5:return function(){return e(u(t(r(n.apply(this,arguments)))))};case 6:return function(){return o(e(u(t(r(n.apply(this,arguments))))))};case 7:return function(){return i(o(e(u(t(r(n.apply(this,arguments)))))))};case 8:return function(){return c(i(o(e(u(t(r(n.apply(this,arguments))))))))};case 9:return function(){return f(c(i(o(e(u(t(r(n.apply(this,arguments)))))))))}}}function o(){throw new Error("Called `absurd` function which should be uncallable")}Object.defineProperty(r,"__esModule",{value:!0}),r.getEndomorphismMonoid=r.not=r.SK=r.hole=r.pipe=r.untupled=r.tupled=r.absurd=r.decrement=r.increment=r.tuple=r.flow=r.flip=r.constVoid=r.constUndefined=r.constNull=r.constFalse=r.constTrue=r.constant=r.unsafeCoerce=r.identity=r.apply=r.getRing=r.getSemiring=r.getMonoid=r.getSemigroup=r.getBooleanAlgebra=void 0,r.getBooleanAlgebra=function(n){return function(){return{meet:function(r,t){return function(u){return n.meet(r(u),t(u))}},join:function(r,t){return function(u){return n.join(r(u),t(u))}},zero:function(){return n.zero},one:function(){return n.one},implies:function(r,t){return function(u){return n.implies(r(u),t(u))}},not:function(r){return function(t){return n.not(r(t))}}}}},r.getSemigroup=function(n){return function(){return{concat:function(r,t){return function(u){return n.concat(r(u),t(u))}}}}},r.getMonoid=function(n){var t=r.getSemigroup(n);return function(){return{concat:t().concat,empty:function(){return n.empty}}}},r.getSemiring=function(n){return{add:function(r,t){return function(u){return n.add(r(u),t(u))}},zero:function(){return n.zero},mul:function(r,t){return function(u){return n.mul(r(u),t(u))}},one:function(){return n.one}}},r.getRing=function(n){var t=r.getSemiring(n);return{add:t.add,mul:t.mul,one:t.one,zero:t.zero,sub:function(r,t){return function(u){return n.sub(r(u),t(u))}}}},r.apply=function(n){return function(r){return r(n)}},r.identity=t,r.unsafeCoerce=t,r.constant=u,r.constTrue=u(!0),r.constFalse=u(!1),r.constNull=u(null),r.constUndefined=u(void 0),r.constVoid=r.constUndefined,r.flip=function(n){return function(r,t){return n(t,r)}},r.flow=e,r.tuple=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return n},r.increment=function(n){return n+1},r.decrement=function(n){return n-1},r.absurd=o,r.tupled=function(n){return function(r){return n.apply(void 0,r)}},r.untupled=function(n){return function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return n(r)}},r.pipe=function(n,r,t,u,e,o,i,c,f){switch(arguments.length){case 1:return n;case 2:return r(n);case 3:return t(r(n));case 4:return u(t(r(n)));case 5:return e(u(t(r(n))));case 6:return o(e(u(t(r(n)))));case 7:return i(o(e(u(t(r(n))))));case 8:return c(i(o(e(u(t(r(n)))))));case 9:return f(c(i(o(e(u(t(r(n))))))));default:for(var a=arguments[0],v=1;v<arguments.length;v++)a=arguments[v](a);return a}},r.hole=o,r.SK=function(n,r){return r},r.not=function(n){return function(r){return!n(r)}},r.getEndomorphismMonoid=function(){return{concat:function(n,r){return e(n,r)},empty:t}}})),g=O((function(n,r){function t(n,r,u){return function(e){for(var o=Array(u.length+1),i=0;i<u.length;i++)o[i]=u[i];return o[u.length]=e,0===r?n.apply(null,o):t(n,r-1,o)}}Object.defineProperty(r,"__esModule",{value:!0}),r.sequenceS=r.sequenceT=r.getApplySemigroup=r.apS=r.apSecond=r.apFirst=r.ap=void 0,r.ap=function(n,r){return function(t){return function(u){return n.ap(n.map(u,(function(n){return function(t){return r.ap(n,t)}})),t)}}},r.apFirst=function(n){return function(r){return function(t){return n.ap(n.map(t,(function(n){return function(){return n}})),r)}}},r.apSecond=function(n){return function(r){return function(t){return n.ap(n.map(t,(function(){return function(n){return n}})),r)}}},r.apS=function(n){return function(r,t){return function(u){return n.ap(n.map(u,(function(n){return function(t){var u;return Object.assign({},n,((u={})[r]=t,u))}})),t)}}},r.getApplySemigroup=function(n){return function(r){return{concat:function(t,u){return n.ap(n.map(t,(function(n){return function(t){return r.concat(n,t)}})),u)}}}};var u={1:function(n){return[n]},2:function(n){return function(r){return[n,r]}},3:function(n){return function(r){return function(t){return[n,r,t]}}},4:function(n){return function(r){return function(t){return function(u){return[n,r,t,u]}}}},5:function(n){return function(r){return function(t){return function(u){return function(e){return[n,r,t,u,e]}}}}}};function e(n){return u.hasOwnProperty(n)||(u[n]=t(M.tuple,n-1,[])),u[n]}r.sequenceT=function(n){return function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];for(var u=r.length,o=e(u),i=n.map(r[0],o),c=1;c<u;c++)i=n.ap(i,r[c]);return i}},r.sequenceS=function(n){return function(r){for(var u=Object.keys(r),e=u.length,o=function(n){var r=n.length;switch(r){case 1:return function(r){var t;return(t={})[n[0]]=r,t};case 2:return function(r){return function(t){var u;return(u={})[n[0]]=r,u[n[1]]=t,u}};case 3:return function(r){return function(t){return function(u){var e;return(e={})[n[0]]=r,e[n[1]]=t,e[n[2]]=u,e}}};case 4:return function(r){return function(t){return function(u){return function(e){var o;return(o={})[n[0]]=r,o[n[1]]=t,o[n[2]]=u,o[n[3]]=e,o}}}};case 5:return function(r){return function(t){return function(u){return function(e){return function(o){var i;return(i={})[n[0]]=r,i[n[1]]=t,i[n[2]]=u,i[n[3]]=e,i[n[4]]=o,i}}}}};default:return t((function(){for(var t=[],u=0;u<arguments.length;u++)t[u]=arguments[u];for(var e={},o=0;o<r;o++)e[n[o]]=t[o];return e}),r-1,[])}}(u),i=n.map(r[u[0]],o),c=1;c<e;c++)i=n.ap(i,r[u[c]]);return i}}})),j=O((function(n,r){Object.defineProperty(r,"__esModule",{value:!0}),r.bind=r.chainFirst=void 0,r.chainFirst=function(n){return function(r){return function(t){return n.chain(t,(function(t){return n.map(r(t),(function(){return t}))}))}}},r.bind=function(n){return function(r,t){return function(u){return n.chain(u,(function(u){return n.map(t(u),(function(n){var t;return Object.assign({},u,((t={})[r]=n,t))}))}))}}}})),w=O((function(n,r){var t=U&&U.__spreadArray||function(n,r){for(var t=0,u=r.length,e=n.length;t<u;t++,e++)n[e]=r[t];return n};Object.defineProperty(r,"__esModule",{value:!0}),r.fromReadonlyNonEmptyArray=r.has=r.emptyRecord=r.emptyReadonlyArray=r.tail=r.head=r.isNonEmpty=r.singleton=r.right=r.left=r.isRight=r.isLeft=r.some=r.none=r.isSome=r.isNone=void 0,r.isNone=function(n){return"None"===n._tag},r.isSome=function(n){return"Some"===n._tag},r.none={_tag:"None"},r.some=function(n){return{_tag:"Some",value:n}},r.isLeft=function(n){return"Left"===n._tag},r.isRight=function(n){return"Right"===n._tag},r.left=function(n){return{_tag:"Left",left:n}},r.right=function(n){return{_tag:"Right",right:n}},r.singleton=function(n){return[n]},r.isNonEmpty=function(n){return n.length>0},r.head=function(n){return n[0]},r.tail=function(n){return n.slice(1)},r.emptyReadonlyArray=[],r.emptyRecord={},r.has=Object.prototype.hasOwnProperty,r.fromReadonlyNonEmptyArray=function(n){return t([n[0]],n.slice(1))}})),x=O((function(n,r){var t=U&&U.__createBinding||(Object.create?function(n,r,t,u){void 0===u&&(u=t),Object.defineProperty(n,u,{enumerable:!0,get:function(){return r[t]}})}:function(n,r,t,u){void 0===u&&(u=t),n[u]=r[t]}),u=U&&U.__setModuleDefault||(Object.create?function(n,r){Object.defineProperty(n,"default",{enumerable:!0,value:r})}:function(n,r){n.default=r}),e=U&&U.__importStar||function(n){if(n&&n.__esModule)return n;var r={};if(null!=n)for(var e in n)"default"!==e&&Object.prototype.hasOwnProperty.call(n,e)&&t(r,n,e);return u(r,n),r};Object.defineProperty(r,"__esModule",{value:!0}),r.filterOrElse=r.chainEitherK=r.fromEitherK=r.chainOptionK=r.fromOptionK=r.fromPredicate=r.fromOption=void 0;var o=e(w);function i(n){return function(r){return function(t){return n.fromEither(o.isNone(t)?o.left(r()):o.right(t.value))}}}function c(n){var r=i(n);return function(n){var t=r(n);return function(n){return M.flow(n,t)}}}function f(n){return function(r){return M.flow(r,n.fromEither)}}r.fromOption=i,r.fromPredicate=function(n){return function(r,t){return function(u){return n.fromEither(r(u)?o.right(u):o.left(t(u)))}}},r.fromOptionK=c,r.chainOptionK=function(n,r){var t=c(n);return function(n){var u=t(n);return function(n){return function(t){return r.chain(t,u(n))}}}},r.fromEitherK=f,r.chainEitherK=function(n,r){var t=f(n);return function(n){return function(u){return r.chain(u,t(n))}}},r.filterOrElse=function(n,r){return function(t,u){return function(e){return r.chain(e,(function(r){return n.fromEither(t(r)?o.right(r):o.left(u(r)))}))}}}})),y=O((function(n,r){function t(n,r){return function(t){return function(u){return n.map(u,(function(n){return r.map(n,t)}))}}}Object.defineProperty(r,"__esModule",{value:!0}),r.getFunctorComposition=r.bindTo=r.flap=r.map=void 0,r.map=t,r.flap=function(n){return function(r){return function(t){return n.map(t,(function(n){return n(r)}))}}},r.bindTo=function(n){return function(r){return function(t){return n.map(t,(function(n){var t;return(t={})[r]=n,t}))}}},r.getFunctorComposition=function(n,r){var u=t(n,r);return{map:function(n,r){return M.pipe(n,u(r))}}}})),_=O((function(n,r){Object.defineProperty(r,"__esModule",{value:!0}),r.eqDate=r.eqNumber=r.eqString=r.eqBoolean=r.eq=r.strictEqual=r.getStructEq=r.getTupleEq=r.Contravariant=r.getMonoid=r.getSemigroup=r.eqStrict=r.URI=r.contramap=r.tuple=r.struct=r.fromEquals=void 0,r.fromEquals=function(n){return{equals:function(r,t){return r===t||n(r,t)}}},r.struct=function(n){return r.fromEquals((function(r,t){for(var u in n)if(!n[u].equals(r[u],t[u]))return!1;return!0}))},r.tuple=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return r.fromEquals((function(r,t){return n.every((function(n,u){return n.equals(r[u],t[u])}))}))},r.contramap=function(n){return function(t){return r.fromEquals((function(r,u){return t.equals(n(r),n(u))}))}},r.URI="Eq",r.eqStrict={equals:function(n,r){return n===r}};var t={equals:function(){return!0}};r.getSemigroup=function(){return{concat:function(n,t){return r.fromEquals((function(r,u){return n.equals(r,u)&&t.equals(r,u)}))}}},r.getMonoid=function(){return{concat:r.getSemigroup().concat,empty:t}},r.Contravariant={URI:r.URI,contramap:function(n,t){return M.pipe(n,r.contramap(t))}},r.getTupleEq=r.tuple,r.getStructEq=r.struct,r.strictEqual=r.eqStrict.equals,r.eq=r.Contravariant,r.eqBoolean=r.eqStrict,r.eqString=r.eqStrict,r.eqNumber=r.eqStrict,r.eqDate={equals:function(n,r){return n.valueOf()===r.valueOf()}}})),W=O((function(n,r){Object.defineProperty(r,"__esModule",{value:!0}),r.ordDate=r.ordNumber=r.ordString=r.ordBoolean=r.ord=r.getDualOrd=r.getTupleOrd=r.between=r.clamp=r.max=r.min=r.geq=r.leq=r.gt=r.lt=r.equals=r.trivial=r.Contravariant=r.getMonoid=r.getSemigroup=r.URI=r.contramap=r.reverse=r.tuple=r.fromCompare=r.equalsDefault=void 0,r.equalsDefault=function(n){return function(r,t){return r===t||0===n(r,t)}},r.fromCompare=function(n){return{equals:r.equalsDefault(n),compare:function(r,t){return r===t?0:n(r,t)}}},r.tuple=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return r.fromCompare((function(r,t){for(var u=0;u<n.length-1;u++){var e=n[u].compare(r[u],t[u]);if(0!==e)return e}return n[u].compare(r[u],t[u])}))},r.reverse=function(n){return r.fromCompare((function(r,t){return n.compare(t,r)}))},r.contramap=function(n){return function(t){return r.fromCompare((function(r,u){return t.compare(n(r),n(u))}))}},r.URI="Ord",r.getSemigroup=function(){return{concat:function(n,t){return r.fromCompare((function(r,u){var e=n.compare(r,u);return 0!==e?e:t.compare(r,u)}))}}},r.getMonoid=function(){return{concat:r.getSemigroup().concat,empty:r.fromCompare((function(){return 0}))}},r.Contravariant={URI:r.URI,contramap:function(n,t){return M.pipe(n,r.contramap(t))}},r.trivial={equals:M.constTrue,compare:M.constant(0)},r.equals=function(n){return function(r){return function(t){return t===r||0===n.compare(t,r)}}},r.lt=function(n){return function(r,t){return-1===n.compare(r,t)}},r.gt=function(n){return function(r,t){return 1===n.compare(r,t)}},r.leq=function(n){return function(r,t){return 1!==n.compare(r,t)}},r.geq=function(n){return function(r,t){return-1!==n.compare(r,t)}},r.min=function(n){return function(r,t){return r===t||n.compare(r,t)<1?r:t}},r.max=function(n){return function(r,t){return r===t||n.compare(r,t)>-1?r:t}},r.clamp=function(n){var t=r.min(n),u=r.max(n);return function(n,r){return function(e){return u(t(e,r),n)}}},r.between=function(n){var t=r.lt(n),u=r.gt(n);return function(n,r){return function(e){return!t(e,n)&&!u(e,r)}}},r.getTupleOrd=r.tuple,r.getDualOrd=r.reverse,r.ord=r.Contravariant;var t={equals:_.eqStrict.equals,compare:function(n,r){return n<r?-1:n>r?1:0}};r.ordBoolean=t,r.ordString=t,r.ordNumber=t,r.ordDate=M.pipe(r.ordNumber,r.contramap((function(n){return n.valueOf()})))})),E=O((function(n,r){Object.defineProperty(r,"__esModule",{value:!0}),r.concatAll=r.endo=r.filterSecond=r.filterFirst=r.reverse=void 0,r.reverse=function(n){return{concat:function(r,t){return n.concat(t,r)}}},r.filterFirst=function(n){return function(r){return{concat:function(t,u){return n(t)?r.concat(t,u):u}}}},r.filterSecond=function(n){return function(r){return{concat:function(t,u){return n(u)?r.concat(t,u):t}}}},r.endo=function(n){return function(r){return{concat:function(t,u){return r.concat(n(t),n(u))}}}},r.concatAll=function(n){return function(r){return function(t){return t.reduce((function(r,t){return n.concat(r,t)}),r)}}}})),k=O((function(n,r){var t=U&&U.__createBinding||(Object.create?function(n,r,t,u){void 0===u&&(u=t),Object.defineProperty(n,u,{enumerable:!0,get:function(){return r[t]}})}:function(n,r,t,u){void 0===u&&(u=t),n[u]=r[t]}),u=U&&U.__setModuleDefault||(Object.create?function(n,r){Object.defineProperty(n,"default",{enumerable:!0,value:r})}:function(n,r){n.default=r}),e=U&&U.__importStar||function(n){if(n&&n.__esModule)return n;var r={};if(null!=n)for(var e in n)"default"!==e&&Object.prototype.hasOwnProperty.call(n,e)&&t(r,n,e);return u(r,n),r};Object.defineProperty(r,"__esModule",{value:!0}),r.semigroupProduct=r.semigroupSum=r.semigroupString=r.getFunctionSemigroup=r.semigroupAny=r.semigroupAll=r.fold=r.getIntercalateSemigroup=r.getMeetSemigroup=r.getJoinSemigroup=r.getDualSemigroup=r.getStructSemigroup=r.getTupleSemigroup=r.getFirstSemigroup=r.getLastSemigroup=r.getObjectSemigroup=r.semigroupVoid=r.concatAll=r.last=r.first=r.intercalate=r.tuple=r.struct=r.reverse=r.constant=r.max=r.min=void 0;var o=e(w),i=e(E),c=e(W);r.min=function(n){return{concat:c.min(n)}},r.max=function(n){return{concat:c.max(n)}},r.constant=function(n){return{concat:function(){return n}}},r.reverse=i.reverse,r.struct=function(n){return{concat:function(r,t){var u={};for(var e in n)o.has.call(n,e)&&(u[e]=n[e].concat(r[e],t[e]));return u}}},r.tuple=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return{concat:function(r,t){return n.map((function(n,u){return n.concat(r[u],t[u])}))}}},r.intercalate=function(n){return function(r){return{concat:function(t,u){return r.concat(t,r.concat(n,u))}}}},r.first=function(){return{concat:M.identity}},r.last=function(){return{concat:function(n,r){return r}}},r.concatAll=i.concatAll,r.semigroupVoid=r.constant(void 0),r.getObjectSemigroup=function(){return{concat:function(n,r){return Object.assign({},n,r)}}},r.getLastSemigroup=r.last,r.getFirstSemigroup=r.first,r.getTupleSemigroup=r.tuple,r.getStructSemigroup=r.struct,r.getDualSemigroup=r.reverse,r.getJoinSemigroup=r.max,r.getMeetSemigroup=r.min,r.getIntercalateSemigroup=r.intercalate,r.fold=function(n){var t=r.concatAll(n);return function(n,r){return void 0===r?t(n):t(n)(r)}},r.semigroupAll={concat:function(n,r){return n&&r}},r.semigroupAny={concat:function(n,r){return n||r}},r.getFunctionSemigroup=M.getSemigroup,r.semigroupString={concat:function(n,r){return n+r}},r.semigroupSum={concat:function(n,r){return n+r}},r.semigroupProduct={concat:function(n,r){return n*r}}})),q=O((function(n,r){var t=U&&U.__createBinding||(Object.create?function(n,r,t,u){void 0===u&&(u=t),Object.defineProperty(n,u,{enumerable:!0,get:function(){return r[t]}})}:function(n,r,t,u){void 0===u&&(u=t),n[u]=r[t]}),u=U&&U.__setModuleDefault||(Object.create?function(n,r){Object.defineProperty(n,"default",{enumerable:!0,value:r})}:function(n,r){n.default=r}),e=U&&U.__importStar||function(n){if(n&&n.__esModule)return n;var r={};if(null!=n)for(var e in n)"default"!==e&&Object.prototype.hasOwnProperty.call(n,e)&&t(r,n,e);return u(r,n),r},o=U&&U.__spreadArray||function(n,r){for(var t=0,u=r.length,e=n.length;t<u;t++,e++)n[e]=r[t];return n};Object.defineProperty(r,"__esModule",{value:!0}),r.reduceRight=r.foldMap=r.reduce=r.mapWithIndex=r.map=r.flatten=r.duplicate=r.extend=r.chain=r.ap=r.alt=r.altW=r.of=r.chunksOf=r.splitAt=r.chop=r.chainWithIndex=r.intersperse=r.prependAll=r.unzip=r.zip=r.zipWith=r.modifyAt=r.updateAt=r.sort=r.groupBy=r.group=r.reverse=r.concat=r.concatW=r.fromArray=r.unappend=r.unprepend=r.range=r.replicate=r.makeBy=r.fromReadonlyArray=r.rotate=r.union=r.sortBy=r.uniq=r.unsafeUpdateAt=r.unsafeInsertAt=r.append=r.appendW=r.prepend=r.prependW=r.isOutOfBound=r.isNonEmpty=r.empty=void 0,r.uncons=r.filterWithIndex=r.filter=r.groupSort=r.updateLast=r.modifyLast=r.updateHead=r.modifyHead=r.matchRight=r.matchLeft=r.concatAll=r.max=r.min=r.init=r.last=r.tail=r.head=r.apS=r.bind=r.bindTo=r.Do=r.Comonad=r.Alt=r.TraversableWithIndex=r.Traversable=r.FoldableWithIndex=r.Foldable=r.Monad=r.chainFirst=r.Chain=r.Applicative=r.apSecond=r.apFirst=r.Apply=r.FunctorWithIndex=r.Pointed=r.flap=r.Functor=r.getUnionSemigroup=r.getEq=r.getSemigroup=r.getShow=r.URI=r.extract=r.traverseWithIndex=r.sequence=r.traverse=r.reduceRightWithIndex=r.foldMapWithIndex=r.reduceWithIndex=void 0,r.readonlyNonEmptyArray=r.fold=r.prependToAll=r.insertAt=r.snoc=r.cons=r.unsnoc=void 0;var i=e(w),c=e(k);function f(n){return function(r){return r.concat(n)}}function a(n,r){return r?n.concat(r):function(r){return r.concat(n)}}function v(n){return function(t){var u=t.length;if(0===u)return r.empty;for(var e=[],o=t[0],i=[o],c=1;c<u;c++){var f=t[c];n.equals(f,o)?i.push(f):(e.push(i),i=[o=f])}return e.push(i),e}}r.empty=i.emptyReadonlyArray,r.isNonEmpty=i.isNonEmpty,r.isOutOfBound=function(n,r){return n<0||n>=r.length},r.prependW=function(n){return function(r){return o([n],r)}},r.prepend=r.prependW,r.appendW=function(n){return function(r){return o(o([],r),[n])}},r.append=r.appendW,r.unsafeInsertAt=function(n,t,u){if(r.isNonEmpty(u)){var e=i.fromReadonlyNonEmptyArray(u);return e.splice(n,0,t),e}return[t]},r.unsafeUpdateAt=function(n,r,t){if(t[n]===r)return t;var u=i.fromReadonlyNonEmptyArray(t);return u[n]=r,u},r.uniq=function(n){return function(t){if(1===t.length)return t;for(var u=[r.head(t)],e=function(r){u.every((function(t){return!n.equals(t,r)}))&&u.push(r)},o=0,i=r.tail(t);o<i.length;o++)e(i[o]);return u}},r.sortBy=function(n){if(r.isNonEmpty(n)){var t=W.getMonoid();return r.sort(n.reduce(t.concat,t.empty))}return M.identity},r.union=function(n){var t=r.uniq(n);return function(n){return function(r){return t(M.pipe(r,a(n)))}}},r.rotate=function(n){return function(t){var u=t.length,e=Math.round(n)%u;if(r.isOutOfBound(Math.abs(e),t)||0===e)return t;if(e<0){var o=r.splitAt(-e)(t);return M.pipe(o[1],a(o[0]))}return r.rotate(e-u)(t)}},r.fromReadonlyArray=function(n){return r.isNonEmpty(n)?i.some(n):i.none},r.makeBy=function(n){return function(r){for(var t=Math.max(0,Math.floor(r)),u=[n(0)],e=1;e<t;e++)u.push(n(e));return u}},r.replicate=function(n){return r.makeBy((function(){return n}))},r.range=function(n,t){return n<=t?r.makeBy((function(r){return n+r}))(t-n+1):[n]},r.unprepend=function(n){return[r.head(n),r.tail(n)]},r.unappend=function(n){return[r.init(n),r.last(n)]},r.fromArray=function(n){return r.fromReadonlyArray(n.slice())},r.concatW=f,r.concat=a,r.reverse=function(n){return 1===n.length?n:o([r.last(n)],n.slice(0,-1).reverse())},r.group=v,r.groupBy=function(n){return function(r){for(var t={},u=0,e=r;u<e.length;u++){var o=e[u],i=n(o);t.hasOwnProperty(i)?t[i].push(o):t[i]=[o]}return t}},r.sort=function(n){return function(r){return 1===r.length?r:r.slice().sort(n.compare)}},r.updateAt=function(n,t){return r.modifyAt(n,(function(){return t}))},r.modifyAt=function(n,t){return function(u){return r.isOutOfBound(n,u)?i.none:i.some(r.unsafeUpdateAt(n,t(u[n]),u))}},r.zipWith=function(n,r,t){for(var u=[t(n[0],r[0])],e=Math.min(n.length,r.length),o=1;o<e;o++)u[o]=t(n[o],r[o]);return u},r.zip=function n(t,u){return void 0===u?function(r){return n(r,t)}:r.zipWith(t,u,(function(n,r){return[n,r]}))},r.unzip=function(n){for(var r=[n[0][0]],t=[n[0][1]],u=1;u<n.length;u++)r[u]=n[u][0],t[u]=n[u][1];return[r,t]},r.prependAll=function(n){return function(r){for(var t=[n,r[0]],u=1;u<r.length;u++)t.push(n,r[u]);return t}},r.intersperse=function(n){return function(t){var u=r.tail(t);return r.isNonEmpty(u)?M.pipe(u,r.prependAll(n),r.prepend(r.head(t))):t}},r.chainWithIndex=function(n){return function(t){for(var u=i.fromReadonlyNonEmptyArray(n(0,r.head(t))),e=1;e<t.length;e++)u.push.apply(u,n(e,t[e]));return u}},r.chop=function(n){return function(t){for(var u=n(t),e=[u[0]],o=u[1];r.isNonEmpty(o);){var i=n(o),c=i[1];e.push(i[0]),o=c}return e}},r.splitAt=function(n){return function(t){var u=Math.max(1,n);return u>=t.length?[t,r.empty]:[M.pipe(t.slice(1,u),r.prepend(r.head(t))),t.slice(u)]}},r.chunksOf=function(n){return r.chop(r.splitAt(n))};var d=function(n,t){return M.pipe(n,r.map(t))},p=function(n,t){return M.pipe(n,r.mapWithIndex(t))},s=function(n,t){return M.pipe(n,r.ap(t))},l=function(n,t){return M.pipe(n,r.chain(t))},m=function(n,t){return M.pipe(n,r.extend(t))},h=function(n,t,u){return M.pipe(n,r.reduce(t,u))},I=function(n){var t=r.foldMap(n);return function(n,r){return M.pipe(n,t(r))}},R=function(n,t,u){return M.pipe(n,r.reduceRight(t,u))},b=function(n){var t=r.traverse(n);return function(n,r){return M.pipe(n,t(r))}},O=function(n,t){return M.pipe(n,r.alt(t))},x=function(n,t,u){return M.pipe(n,r.reduceWithIndex(t,u))},E=function(n){var t=r.foldMapWithIndex(n);return function(n,r){return M.pipe(n,t(r))}},q=function(n,t,u){return M.pipe(n,r.reduceRightWithIndex(t,u))},P=function(n){var t=r.traverseWithIndex(n);return function(n,r){return M.pipe(n,t(r))}};r.of=i.singleton,r.altW=function(n){return function(r){return M.pipe(r,f(n()))}},r.alt=r.altW,r.ap=function(n){return r.chain((function(t){return M.pipe(n,r.map(t))}))},r.chain=function(n){return r.chainWithIndex((function(r,t){return n(t)}))},r.extend=function(n){return function(t){for(var u=r.tail(t),e=[n(t)];r.isNonEmpty(u);)e.push(n(u)),u=r.tail(u);return e}},r.duplicate=r.extend(M.identity),r.flatten=r.chain(M.identity),r.map=function(n){return r.mapWithIndex((function(r,t){return n(t)}))},r.mapWithIndex=function(n){return function(t){for(var u=[n(0,r.head(t))],e=1;e<t.length;e++)u.push(n(e,t[e]));return u}},r.reduce=function(n,t){return r.reduceWithIndex(n,(function(n,r,u){return t(r,u)}))},r.foldMap=function(n){return function(r){return function(t){return t.slice(1).reduce((function(t,u){return n.concat(t,r(u))}),r(t[0]))}}},r.reduceRight=function(n,t){return r.reduceRightWithIndex(n,(function(n,r,u){return t(r,u)}))},r.reduceWithIndex=function(n,r){return function(t){return t.reduce((function(n,t,u){return r(u,n,t)}),n)}},r.foldMapWithIndex=function(n){return function(r){return function(t){return t.slice(1).reduce((function(t,u,e){return n.concat(t,r(e+1,u))}),r(0,t[0]))}}},r.reduceRightWithIndex=function(n,r){return function(t){return t.reduceRight((function(n,t,u){return r(u,t,n)}),n)}},r.traverse=function(n){var t=r.traverseWithIndex(n);return function(n){return t((function(r,t){return n(t)}))}},r.sequence=function(n){return r.traverseWithIndex(n)(M.SK)},r.traverseWithIndex=function(n){return function(t){return function(u){for(var e=n.map(t(0,r.head(u)),r.of),o=1;o<u.length;o++)e=n.ap(n.map(e,(function(n){return function(t){return M.pipe(n,r.append(t))}})),t(o,u[o]));return e}}},r.extract=i.head,r.URI="ReadonlyNonEmptyArray",r.getShow=function(n){return{show:function(r){return"["+r.map(n.show).join(", ")+"]"}}},r.getSemigroup=function(){return{concat:a}},r.getEq=function(n){return _.fromEquals((function(r,t){return r.length===t.length&&r.every((function(r,u){return n.equals(r,t[u])}))}))},r.getUnionSemigroup=function(n){var t=r.union(n);return{concat:function(n,r){return t(r)(n)}}},r.Functor={URI:r.URI,map:d},r.flap=y.flap(r.Functor),r.Pointed={URI:r.URI,of:r.of},r.FunctorWithIndex={URI:r.URI,map:d,mapWithIndex:p},r.Apply={URI:r.URI,map:d,ap:s},r.apFirst=g.apFirst(r.Apply),r.apSecond=g.apSecond(r.Apply),r.Applicative={URI:r.URI,map:d,ap:s,of:r.of},r.Chain={URI:r.URI,map:d,ap:s,chain:l},r.chainFirst=j.chainFirst(r.Chain),r.Monad={URI:r.URI,map:d,ap:s,of:r.of,chain:l},r.Foldable={URI:r.URI,reduce:h,foldMap:I,reduceRight:R},r.FoldableWithIndex={URI:r.URI,reduce:h,foldMap:I,reduceRight:R,reduceWithIndex:x,foldMapWithIndex:E,reduceRightWithIndex:q},r.Traversable={URI:r.URI,map:d,reduce:h,foldMap:I,reduceRight:R,traverse:b,sequence:r.sequence},r.TraversableWithIndex={URI:r.URI,map:d,mapWithIndex:p,reduce:h,foldMap:I,reduceRight:R,traverse:b,sequence:r.sequence,reduceWithIndex:x,foldMapWithIndex:E,reduceRightWithIndex:q,traverseWithIndex:P},r.Alt={URI:r.URI,map:d,alt:O},r.Comonad={URI:r.URI,map:d,extend:m,extract:r.extract},r.Do=r.of(i.emptyRecord),r.bindTo=y.bindTo(r.Functor),r.bind=j.bind(r.Chain),r.apS=g.apS(r.Apply),r.head=r.extract,r.tail=i.tail,r.last=function(n){return n[n.length-1]},r.init=function(n){return n.slice(0,-1)},r.min=function(n){var r=c.min(n);return function(n){return n.reduce(r.concat)}},r.max=function(n){var r=c.max(n);return function(n){return n.reduce(r.concat)}},r.concatAll=function(n){return function(r){return r.reduce(n.concat)}},r.matchLeft=function(n){return function(t){return n(r.head(t),r.tail(t))}},r.matchRight=function(n){return function(t){return n(r.init(t),r.last(t))}},r.modifyHead=function(n){return function(t){return o([n(r.head(t))],r.tail(t))}},r.updateHead=function(n){return r.modifyHead((function(){return n}))},r.modifyLast=function(n){return function(t){return M.pipe(r.init(t),r.append(n(r.last(t))))}},r.updateLast=function(n){return r.modifyLast((function(){return n}))},r.groupSort=function(n){var t=r.sort(n),u=v(n);return function(n){return r.isNonEmpty(n)?u(t(n)):r.empty}},r.filter=function(n){return r.filterWithIndex((function(r,t){return n(t)}))},r.filterWithIndex=function(n){return function(t){return r.fromReadonlyArray(t.filter((function(r,t){return n(t,r)})))}},r.uncons=r.unprepend,r.unsnoc=r.unappend,r.cons=function(n,t){return void 0===t?r.prepend(n):M.pipe(t,r.prepend(n))},r.snoc=function(n,r){return M.pipe(n,a([r]))},r.insertAt=function(n,t){return function(u){return n<0||n>u.length?i.none:i.some(r.unsafeInsertAt(n,t,u))}},r.prependToAll=r.prependAll,r.fold=r.concatAll,r.readonlyNonEmptyArray={URI:r.URI,of:r.of,map:d,mapWithIndex:p,ap:s,chain:l,extend:m,extract:r.extract,reduce:h,foldMap:I,reduceRight:R,traverse:b,sequence:r.sequence,reduceWithIndex:x,foldMapWithIndex:E,reduceRightWithIndex:q,traverseWithIndex:P,alt:O}})),P=O((function(n,r){var t=U&&U.__createBinding||(Object.create?function(n,r,t,u){void 0===u&&(u=t),Object.defineProperty(n,u,{enumerable:!0,get:function(){return r[t]}})}:function(n,r,t,u){void 0===u&&(u=t),n[u]=r[t]}),u=U&&U.__setModuleDefault||(Object.create?function(n,r){Object.defineProperty(n,"default",{enumerable:!0,value:r})}:function(n,r){n.default=r}),e=U&&U.__importStar||function(n){if(n&&n.__esModule)return n;var r={};if(null!=n)for(var e in n)"default"!==e&&Object.prototype.hasOwnProperty.call(n,e)&&t(r,n,e);return u(r,n),r},o=U&&U.__spreadArray||function(n,r){for(var t=0,u=r.length,e=n.length;t<u;t++,e++)n[e]=r[t];return n};Object.defineProperty(r,"__esModule",{value:!0}),r.mapWithIndex=r.map=r.flatten=r.duplicate=r.extend=r.chain=r.ap=r.alt=r.altW=r.chunksOf=r.splitAt=r.chop=r.chainWithIndex=r.foldMap=r.foldMapWithIndex=r.intersperse=r.prependAll=r.unzip=r.zip=r.zipWith=r.of=r.copy=r.modifyAt=r.updateAt=r.insertAt=r.sort=r.groupBy=r.group=r.reverse=r.concat=r.concatW=r.unappend=r.unprepend=r.range=r.replicate=r.makeBy=r.fromArray=r.fromReadonlyNonEmptyArray=r.rotate=r.union=r.sortBy=r.uniq=r.unsafeUpdateAt=r.unsafeInsertAt=r.append=r.appendW=r.prepend=r.prependW=r.isOutOfBound=r.isNonEmpty=void 0,r.filterWithIndex=r.filter=r.groupSort=r.updateLast=r.modifyLast=r.updateHead=r.modifyHead=r.matchRight=r.matchLeft=r.concatAll=r.max=r.min=r.init=r.last=r.tail=r.head=r.apS=r.bind=r.bindTo=r.Do=r.Comonad=r.Alt=r.TraversableWithIndex=r.Traversable=r.FoldableWithIndex=r.Foldable=r.Monad=r.chainFirst=r.Chain=r.Applicative=r.apSecond=r.apFirst=r.Apply=r.FunctorWithIndex=r.Pointed=r.flap=r.Functor=r.getUnionSemigroup=r.getEq=r.getSemigroup=r.getShow=r.URI=r.extract=r.traverseWithIndex=r.sequence=r.traverse=r.reduceRightWithIndex=r.reduceRight=r.reduceWithIndex=r.reduce=void 0,r.nonEmptyArray=r.fold=r.prependToAll=r.snoc=r.cons=r.unsnoc=r.uncons=void 0;var i=e(w),c=e(q);function f(n){return function(r){return r.concat(n)}}function a(n,r){return r?n.concat(r):function(r){return r.concat(n)}}function v(n){return function(r){var t=r.length;if(0===t)return[];for(var u=[],e=r[0],o=[e],i=1;i<t;i++){var c=r[i];n.equals(c,e)?o.push(c):(u.push(o),o=[e=c])}return u.push(o),u}}r.isNonEmpty=function(n){return n.length>0},r.isOutOfBound=function(n,r){return n<0||n>=r.length},r.prependW=function(n){return function(r){return o([n],r)}},r.prepend=r.prependW,r.appendW=function(n){return function(r){return o(o([],r),[n])}},r.append=r.appendW,r.unsafeInsertAt=function(n,t,u){if(r.isNonEmpty(u)){var e=r.fromReadonlyNonEmptyArray(u);return e.splice(n,0,t),e}return[t]},r.unsafeUpdateAt=function(n,t,u){var e=r.fromReadonlyNonEmptyArray(u);return e[n]=t,e},r.uniq=function(n){return function(t){if(1===t.length)return r.copy(t);for(var u=[r.head(t)],e=function(r){u.every((function(t){return!n.equals(t,r)}))&&u.push(r)},o=0,i=r.tail(t);o<i.length;o++)e(i[o]);return u}},r.sortBy=function(n){if(r.isNonEmpty(n)){var t=W.getMonoid();return r.sort(n.reduce(t.concat,t.empty))}return r.copy},r.union=function(n){var t=r.uniq(n);return function(n){return function(r){return t(M.pipe(r,a(n)))}}},r.rotate=function(n){return function(t){var u=t.length,e=Math.round(n)%u;if(r.isOutOfBound(Math.abs(e),t)||0===e)return r.copy(t);if(e<0){var o=r.splitAt(-e)(t);return M.pipe(o[1],a(o[0]))}return r.rotate(e-u)(t)}},r.fromReadonlyNonEmptyArray=i.fromReadonlyNonEmptyArray,r.fromArray=function(n){return r.isNonEmpty(n)?i.some(n):i.none},r.makeBy=function(n){return function(r){for(var t=Math.max(0,Math.floor(r)),u=[n(0)],e=1;e<t;e++)u.push(n(e));return u}},r.replicate=function(n){return r.makeBy((function(){return n}))},r.range=function(n,t){return n<=t?r.makeBy((function(r){return n+r}))(t-n+1):[n]},r.unprepend=function(n){return[r.head(n),r.tail(n)]},r.unappend=function(n){return[r.init(n),r.last(n)]},r.concatW=f,r.concat=a,r.reverse=function(n){return o([r.last(n)],n.slice(0,-1).reverse())},r.group=v,r.groupBy=function(n){return function(r){for(var t={},u=0,e=r;u<e.length;u++){var o=e[u],i=n(o);t.hasOwnProperty(i)?t[i].push(o):t[i]=[o]}return t}},r.sort=function(n){return function(r){return r.slice().sort(n.compare)}},r.insertAt=function(n,t){return function(u){return n<0||n>u.length?i.none:i.some(r.unsafeInsertAt(n,t,u))}},r.updateAt=function(n,t){return r.modifyAt(n,(function(){return t}))},r.modifyAt=function(n,t){return function(u){return r.isOutOfBound(n,u)?i.none:i.some(r.unsafeUpdateAt(n,t(u[n]),u))}},r.copy=r.fromReadonlyNonEmptyArray,r.of=function(n){return[n]},r.zipWith=function(n,r,t){for(var u=[t(n[0],r[0])],e=Math.min(n.length,r.length),o=1;o<e;o++)u[o]=t(n[o],r[o]);return u},r.zip=function n(t,u){return void 0===u?function(r){return n(r,t)}:r.zipWith(t,u,(function(n,r){return[n,r]}))},r.unzip=function(n){for(var r=[n[0][0]],t=[n[0][1]],u=1;u<n.length;u++)r[u]=n[u][0],t[u]=n[u][1];return[r,t]},r.prependAll=function(n){return function(r){for(var t=[n,r[0]],u=1;u<r.length;u++)t.push(n,r[u]);return t}},r.intersperse=function(n){return function(t){var u=r.tail(t);return r.isNonEmpty(u)?M.pipe(u,r.prependAll(n),r.prepend(r.head(t))):r.copy(t)}},r.foldMapWithIndex=c.foldMapWithIndex,r.foldMap=c.foldMap,r.chainWithIndex=function(n){return function(t){for(var u=r.fromReadonlyNonEmptyArray(n(0,r.head(t))),e=1;e<t.length;e++)u.push.apply(u,n(e,t[e]));return u}},r.chop=function(n){return function(t){for(var u=n(t),e=[u[0]],o=u[1];r.isNonEmpty(o);){var i=n(o),c=i[1];e.push(i[0]),o=c}return e}},r.splitAt=function(n){return function(t){var u=Math.max(1,n);return u>=t.length?[r.copy(t),[]]:[M.pipe(t.slice(1,u),r.prepend(r.head(t))),t.slice(u)]}},r.chunksOf=function(n){return r.chop(r.splitAt(n))};var d=function(n,t){return M.pipe(n,r.map(t))},p=function(n,t){return M.pipe(n,r.mapWithIndex(t))},s=function(n,t){return M.pipe(n,r.ap(t))},l=function(n,t){return M.pipe(n,r.chain(t))},m=function(n,t){return M.pipe(n,r.extend(t))},h=function(n,t,u){return M.pipe(n,r.reduce(t,u))},I=function(n){var t=r.foldMap(n);return function(n,r){return M.pipe(n,t(r))}},R=function(n,t,u){return M.pipe(n,r.reduceRight(t,u))},b=function(n){var t=r.traverse(n);return function(n,r){return M.pipe(n,t(r))}},O=function(n,t){return M.pipe(n,r.alt(t))},x=function(n,t,u){return M.pipe(n,r.reduceWithIndex(t,u))},_=function(n){var t=r.foldMapWithIndex(n);return function(n,r){return M.pipe(n,t(r))}},E=function(n,t,u){return M.pipe(n,r.reduceRightWithIndex(t,u))},k=function(n){var t=r.traverseWithIndex(n);return function(n,r){return M.pipe(n,t(r))}};r.altW=function(n){return function(r){return M.pipe(r,f(n()))}},r.alt=r.altW,r.ap=function(n){return r.chain((function(t){return M.pipe(n,r.map(t))}))},r.chain=function(n){return r.chainWithIndex((function(r,t){return n(t)}))},r.extend=function(n){return function(t){for(var u=r.tail(t),e=[n(t)];r.isNonEmpty(u);)e.push(n(u)),u=r.tail(u);return e}},r.duplicate=r.extend(M.identity),r.flatten=r.chain(M.identity),r.map=function(n){return r.mapWithIndex((function(r,t){return n(t)}))},r.mapWithIndex=function(n){return function(t){for(var u=[n(0,r.head(t))],e=1;e<t.length;e++)u.push(n(e,t[e]));return u}},r.reduce=c.reduce,r.reduceWithIndex=c.reduceWithIndex,r.reduceRight=c.reduceRight,r.reduceRightWithIndex=c.reduceRightWithIndex,r.traverse=function(n){var t=r.traverseWithIndex(n);return function(n){return t((function(r,t){return n(t)}))}},r.sequence=function(n){return r.traverseWithIndex(n)((function(n,r){return r}))},r.traverseWithIndex=function(n){return function(t){return function(u){for(var e=n.map(t(0,r.head(u)),r.of),o=1;o<u.length;o++)e=n.ap(n.map(e,(function(n){return function(t){return M.pipe(n,r.append(t))}})),t(o,u[o]));return e}}},r.extract=c.head,r.URI="NonEmptyArray",r.getShow=c.getShow,r.getSemigroup=function(){return{concat:a}},r.getEq=c.getEq,r.getUnionSemigroup=function(n){var t=r.union(n);return{concat:function(n,r){return t(r)(n)}}},r.Functor={URI:r.URI,map:d},r.flap=y.flap(r.Functor),r.Pointed={URI:r.URI,of:r.of},r.FunctorWithIndex={URI:r.URI,map:d,mapWithIndex:p},r.Apply={URI:r.URI,map:d,ap:s},r.apFirst=g.apFirst(r.Apply),r.apSecond=g.apSecond(r.Apply),r.Applicative={URI:r.URI,map:d,ap:s,of:r.of},r.Chain={URI:r.URI,map:d,ap:s,chain:l},r.chainFirst=j.chainFirst(r.Chain),r.Monad={URI:r.URI,map:d,ap:s,of:r.of,chain:l},r.Foldable={URI:r.URI,reduce:h,foldMap:I,reduceRight:R},r.FoldableWithIndex={URI:r.URI,reduce:h,foldMap:I,reduceRight:R,reduceWithIndex:x,foldMapWithIndex:_,reduceRightWithIndex:E},r.Traversable={URI:r.URI,map:d,reduce:h,foldMap:I,reduceRight:R,traverse:b,sequence:r.sequence},r.TraversableWithIndex={URI:r.URI,map:d,mapWithIndex:p,reduce:h,foldMap:I,reduceRight:R,traverse:b,sequence:r.sequence,reduceWithIndex:x,foldMapWithIndex:_,reduceRightWithIndex:E,traverseWithIndex:k},r.Alt={URI:r.URI,map:d,alt:O},r.Comonad={URI:r.URI,map:d,extend:m,extract:r.extract},r.Do=r.of(i.emptyRecord),r.bindTo=y.bindTo(r.Functor),r.bind=j.bind(r.Chain),r.apS=g.apS(r.Apply),r.head=c.head,r.tail=function(n){return n.slice(1)},r.last=c.last,r.init=function(n){return n.slice(0,-1)},r.min=c.min,r.max=c.max,r.concatAll=function(n){return function(r){return r.reduce(n.concat)}},r.matchLeft=function(n){return function(t){return n(r.head(t),r.tail(t))}},r.matchRight=function(n){return function(t){return n(r.init(t),r.last(t))}},r.modifyHead=function(n){return function(t){return o([n(r.head(t))],r.tail(t))}},r.updateHead=function(n){return r.modifyHead((function(){return n}))},r.modifyLast=function(n){return function(t){return M.pipe(r.init(t),r.append(n(r.last(t))))}},r.updateLast=function(n){return r.modifyLast((function(){return n}))},r.groupSort=function(n){var t=r.sort(n),u=v(n);return function(n){return r.isNonEmpty(n)?u(t(n)):[]}},r.filter=function(n){return r.filterWithIndex((function(r,t){return n(t)}))},r.filterWithIndex=function(n){return function(t){return r.fromArray(t.filter((function(r,t){return n(t,r)})))}},r.uncons=r.unprepend,r.unsnoc=r.unappend,r.cons=function(n,t){return void 0===t?r.prepend(n):M.pipe(t,r.prepend(n))},r.snoc=function(n,t){return M.pipe(n,r.append(t))},r.prependToAll=r.prependAll,r.fold=c.concatAll,r.nonEmptyArray={URI:r.URI,of:r.of,map:d,mapWithIndex:p,ap:s,chain:l,extend:m,extract:r.extract,reduce:h,foldMap:I,reduceRight:R,traverse:b,sequence:r.sequence,reduceWithIndex:x,foldMapWithIndex:_,reduceRightWithIndex:E,traverseWithIndex:k,alt:O}})),T=O((function(n,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Field=r.MonoidProduct=r.MonoidSum=r.SemigroupProduct=r.SemigroupSum=r.MagmaSub=r.Show=r.Bounded=r.Ord=r.Eq=r.isNumber=void 0,r.isNumber=function(n){return"number"==typeof n},r.Eq={equals:function(n,r){return n===r}},r.Ord={equals:r.Eq.equals,compare:function(n,r){return n<r?-1:n>r?1:0}},r.Bounded={equals:r.Eq.equals,compare:r.Ord.compare,top:1/0,bottom:-1/0},r.Show={show:function(n){return JSON.stringify(n)}},r.MagmaSub={concat:function(n,r){return n-r}},r.SemigroupSum={concat:function(n,r){return n+r}},r.SemigroupProduct={concat:function(n,r){return n*r}},r.MonoidSum={concat:r.SemigroupSum.concat,empty:0},r.MonoidProduct={concat:r.SemigroupProduct.concat,empty:1},r.Field={add:r.SemigroupSum.concat,zero:0,mul:r.SemigroupProduct.concat,one:1,sub:r.MagmaSub.concat,degree:function(){return 1},div:function(n,r){return n/r},mod:function(n,r){return n%r}}})),A=O((function(n,r){Object.defineProperty(r,"__esModule",{value:!0}),r.right=r.left=r.flap=r.Functor=r.Bifunctor=r.URI=r.bimap=r.mapLeft=r.map=r.separated=void 0,r.separated=function(n,r){return{left:n,right:r}},r.map=function(n){return function(t){return r.separated(r.left(t),n(r.right(t)))}},r.mapLeft=function(n){return function(t){return r.separated(n(r.left(t)),r.right(t))}},r.bimap=function(n,t){return function(u){return r.separated(n(r.left(u)),t(r.right(u)))}},r.URI="Separated",r.Bifunctor={URI:r.URI,mapLeft:function(n,t){return M.pipe(n,r.mapLeft(t))},bimap:function(n,t,u){return M.pipe(n,r.bimap(t,u))}},r.Functor={URI:r.URI,map:function(n,t){return M.pipe(n,r.map(t))}},r.flap=y.flap(r.Functor),r.left=function(n){return n.left},r.right=function(n){return n.right}})),z=O((function(n,r){var t=U&&U.__createBinding||(Object.create?function(n,r,t,u){void 0===u&&(u=t),Object.defineProperty(n,u,{enumerable:!0,get:function(){return r[t]}})}:function(n,r,t,u){void 0===u&&(u=t),n[u]=r[t]}),u=U&&U.__setModuleDefault||(Object.create?function(n,r){Object.defineProperty(n,"default",{enumerable:!0,value:r})}:function(n,r){n.default=r}),e=U&&U.__importStar||function(n){if(n&&n.__esModule)return n;var r={};if(null!=n)for(var e in n)"default"!==e&&Object.prototype.hasOwnProperty.call(n,e)&&t(r,n,e);return u(r,n),r};Object.defineProperty(r,"__esModule",{value:!0}),r.filterE=r.witherDefault=r.wiltDefault=void 0;var o=e(w);r.wiltDefault=function(n,r){return function(t){var u=n.traverse(t);return function(n,e){return t.map(u(n,e),r.separate)}}},r.witherDefault=function(n,r){return function(t){var u=n.traverse(t);return function(n,e){return t.map(u(n,e),r.compact)}}},r.filterE=function(n){return function(r){var t=n.wither(r);return function(n){return function(u){return t(u,(function(t){return r.map(n(t),(function(n){return n?o.some(t):o.none}))}))}}}}})),L=O((function(n,r){Object.defineProperty(r,"__esModule",{value:!0}),r.guard=void 0,r.guard=function(n,r){return function(t){return t?r.of(void 0):n.zero()}}})),N=O((function(n,r){var t=U&&U.__createBinding||(Object.create?function(n,r,t,u){void 0===u&&(u=t),Object.defineProperty(n,u,{enumerable:!0,get:function(){return r[t]}})}:function(n,r,t,u){void 0===u&&(u=t),n[u]=r[t]}),u=U&&U.__setModuleDefault||(Object.create?function(n,r){Object.defineProperty(n,"default",{enumerable:!0,value:r})}:function(n,r){n.default=r}),e=U&&U.__importStar||function(n){if(n&&n.__esModule)return n;var r={};if(null!=n)for(var e in n)"default"!==e&&Object.prototype.hasOwnProperty.call(n,e)&&t(r,n,e);return u(r,n),r},o=U&&U.__spreadArray||function(n,r){for(var t=0,u=r.length,e=n.length;t<u;t++,e++)n[e]=r[t];return n};Object.defineProperty(r,"__esModule",{value:!0}),r.sort=r.lefts=r.rights=r.reverse=r.modifyAt=r.deleteAt=r.updateAt=r.insertAt=r.findLastIndex=r.findLastMap=r.findLast=r.findFirstMap=r.findFirst=r.findIndex=r.dropLeftWhile=r.dropRight=r.dropLeft=r.spanLeft=r.takeLeftWhile=r.takeRight=r.takeLeft=r.init=r.tail=r.last=r.head=r.lookup=r.isOutOfBound=r.size=r.scanRight=r.scanLeft=r.chainWithIndex=r.foldRight=r.matchRight=r.matchRightW=r.foldLeft=r.matchLeft=r.matchLeftW=r.match=r.matchW=r.fromEither=r.fromOption=r.fromPredicate=r.replicate=r.makeBy=r.appendW=r.append=r.prependW=r.prepend=r.isNonEmpty=r.isEmpty=void 0,r.sequence=r.traverse=r.reduceRightWithIndex=r.reduceRight=r.reduceWithIndex=r.foldMap=r.reduce=r.foldMapWithIndex=r.duplicate=r.extend=r.filterWithIndex=r.partitionMapWithIndex=r.partitionMap=r.partitionWithIndex=r.partition=r.compact=r.filterMap=r.filterMapWithIndex=r.filter=r.separate=r.mapWithIndex=r.map=r.flatten=r.chain=r.ap=r.alt=r.altW=r.zero=r.of=r._chainRecBreadthFirst=r._chainRecDepthFirst=r.difference=r.intersection=r.union=r.concat=r.concatW=r.comprehension=r.fromOptionK=r.chunksOf=r.splitAt=r.chop=r.sortBy=r.uniq=r.elem=r.rotate=r.intersperse=r.prependAll=r.unzip=r.zip=r.zipWith=void 0,r.toArray=r.unsafeDeleteAt=r.unsafeUpdateAt=r.unsafeInsertAt=r.fromEitherK=r.FromEither=r.filterE=r.Witherable=r.ChainRecBreadthFirst=r.chainRecBreadthFirst=r.ChainRecDepthFirst=r.chainRecDepthFirst=r.TraversableWithIndex=r.Traversable=r.FoldableWithIndex=r.Foldable=r.FilterableWithIndex=r.Filterable=r.Compactable=r.Extend=r.Alternative=r.guard=r.Zero=r.Alt=r.Unfoldable=r.chainFirst=r.Monad=r.Chain=r.Applicative=r.apSecond=r.apFirst=r.Apply=r.FunctorWithIndex=r.Pointed=r.flap=r.Functor=r.getDifferenceMagma=r.getIntersectionSemigroup=r.getUnionMonoid=r.getUnionSemigroup=r.getOrd=r.getEq=r.getMonoid=r.getSemigroup=r.getShow=r.URI=r.unfold=r.wilt=r.wither=r.traverseWithIndex=void 0,r.readonlyArray=r.prependToAll=r.snoc=r.cons=r.range=r.apS=r.bind=r.bindTo=r.Do=r.exists=r.some=r.every=r.empty=r.fromArray=void 0;var i=e(w),c=e(T),f=e(q);r.isEmpty=function(n){return 0===n.length},r.isNonEmpty=f.isNonEmpty,r.prepend=f.prepend,r.prependW=f.prependW,r.append=f.append,r.appendW=f.appendW,r.makeBy=function(n,t){return n<=0?r.empty:f.makeBy(t)(n)},r.replicate=function(n,t){return r.makeBy(n,(function(){return t}))},r.fromPredicate=function(n){return function(t){return n(t)?[t]:r.empty}},r.fromOption=function(n){return i.isNone(n)?r.empty:[n.value]},r.fromEither=function(n){return i.isLeft(n)?r.empty:[n.right]},r.matchW=function(n,t){return function(u){return r.isNonEmpty(u)?t(u):n()}},r.match=r.matchW,r.matchLeftW=function(n,t){return function(u){return r.isNonEmpty(u)?t(f.head(u),f.tail(u)):n()}},r.matchLeft=r.matchLeftW,r.foldLeft=r.matchLeft,r.matchRightW=function(n,t){return function(u){return r.isNonEmpty(u)?t(f.init(u),f.last(u)):n()}},r.matchRight=r.matchRightW,r.foldRight=r.matchRight,r.chainWithIndex=function(n){return function(t){if(r.isEmpty(t))return r.empty;for(var u=[],e=0;e<t.length;e++)u.push.apply(u,n(e,t[e]));return u}},r.scanLeft=function(n,r){return function(t){var u=t.length,e=new Array(u+1);e[0]=n;for(var o=0;o<u;o++)e[o+1]=r(e[o],t[o]);return e}},r.scanRight=function(n,r){return function(t){var u=t.length,e=new Array(u+1);e[u]=n;for(var o=u-1;o>=0;o--)e[o]=r(t[o],e[o+1]);return e}},r.size=function(n){return n.length},r.isOutOfBound=f.isOutOfBound,r.lookup=function n(t,u){return void 0===u?function(r){return n(t,r)}:r.isOutOfBound(t,u)?i.none:i.some(u[t])},r.head=function(n){return r.isNonEmpty(n)?i.some(f.head(n)):i.none},r.last=function(n){return r.isNonEmpty(n)?i.some(f.last(n)):i.none},r.tail=function(n){return r.isNonEmpty(n)?i.some(f.tail(n)):i.none},r.init=function(n){return r.isNonEmpty(n)?i.some(f.init(n)):i.none},r.takeLeft=function(n){return function(t){return r.isOutOfBound(n,t)?t:0===n?r.empty:t.slice(0,n)}},r.takeRight=function(n){return function(t){return r.isOutOfBound(n,t)?t:0===n?r.empty:t.slice(-n)}},r.takeLeftWhile=function(n){return function(t){for(var u=[],e=0,o=t;e<o.length;e++){var i=o[e];if(!n(i))break;u.push(i)}var c=u.length;return c===t.length?t:0===c?r.empty:u}};var a=function(n,r){for(var t=n.length,u=0;u<t&&r(n[u]);u++);return u};function v(n){return function(r,t){if(void 0===t){var u=v(n);return function(n){return u(r,n)}}for(var e=0;e<t.length;e++)if(n.equals(t[e],r))return!0;return!1}}function d(n){var t=f.union(n);return function(u,e){if(void 0===e){var o=d(n);return function(n){return o(n,u)}}return r.isNonEmpty(u)&&r.isNonEmpty(e)?t(e)(u):r.isNonEmpty(u)?u:e}}function p(n){var r=v(n);return function(t,u){if(void 0===u){var e=p(n);return function(n){return e(n,t)}}return t.filter((function(n){return r(n,u)}))}}function s(n){var r=v(n);return function(t,u){if(void 0===u){var e=s(n);return function(n){return e(n,t)}}return t.filter((function(n){return!r(n,u)}))}}r.spanLeft=function(n){return function(t){var u=r.splitAt(a(t,n))(t);return{init:u[0],rest:u[1]}}},r.dropLeft=function(n){return function(t){return n<=0||r.isEmpty(t)?t:n>=t.length?r.empty:t.slice(n,t.length)}},r.dropRight=function(n){return function(t){return n<=0||r.isEmpty(t)?t:n>=t.length?r.empty:t.slice(0,t.length-n)}},r.dropLeftWhile=function(n){return function(t){var u=a(t,n);return 0===u?t:u===t.length?r.empty:t.slice(u)}},r.findIndex=function(n){return function(r){for(var t=0;t<r.length;t++)if(n(r[t]))return i.some(t);return i.none}},r.findFirst=function(n){return function(r){for(var t=0;t<r.length;t++)if(n(r[t]))return i.some(r[t]);return i.none}},r.findFirstMap=function(n){return function(r){for(var t=0;t<r.length;t++){var u=n(r[t]);if(i.isSome(u))return u}return i.none}},r.findLast=function(n){return function(r){for(var t=r.length-1;t>=0;t--)if(n(r[t]))return i.some(r[t]);return i.none}},r.findLastMap=function(n){return function(r){for(var t=r.length-1;t>=0;t--){var u=n(r[t]);if(i.isSome(u))return u}return i.none}},r.findLastIndex=function(n){return function(r){for(var t=r.length-1;t>=0;t--)if(n(r[t]))return i.some(t);return i.none}},r.insertAt=function(n,r){return function(t){return n<0||n>t.length?i.none:i.some(f.unsafeInsertAt(n,r,t))}},r.updateAt=function(n,t){return r.modifyAt(n,(function(){return t}))},r.deleteAt=function(n){return function(t){return r.isOutOfBound(n,t)?i.none:i.some(r.unsafeDeleteAt(n,t))}},r.modifyAt=function(n,t){return function(u){return r.isOutOfBound(n,u)?i.none:i.some(r.unsafeUpdateAt(n,t(u[n]),u))}},r.reverse=function(n){return n.length<=1?n:n.slice().reverse()},r.rights=function(n){for(var r=[],t=0;t<n.length;t++){var u=n[t];"Right"===u._tag&&r.push(u.right)}return r},r.lefts=function(n){for(var r=[],t=0;t<n.length;t++){var u=n[t];"Left"===u._tag&&r.push(u.left)}return r},r.sort=function(n){return function(r){return r.length<=1?r:r.slice().sort(n.compare)}},r.zipWith=function(n,r,t){for(var u=[],e=Math.min(n.length,r.length),o=0;o<e;o++)u[o]=t(n[o],r[o]);return u},r.zip=function n(t,u){return void 0===u?function(r){return n(r,t)}:r.zipWith(t,u,(function(n,r){return[n,r]}))},r.unzip=function(n){for(var r=[],t=[],u=0;u<n.length;u++)r[u]=n[u][0],t[u]=n[u][1];return[r,t]},r.prependAll=function(n){var t=f.prependAll(n);return function(n){return r.isNonEmpty(n)?t(n):n}},r.intersperse=function(n){var t=f.intersperse(n);return function(n){return r.isNonEmpty(n)?t(n):n}},r.rotate=function(n){var t=f.rotate(n);return function(n){return r.isNonEmpty(n)?t(n):n}},r.elem=v,r.uniq=function(n){var t=f.uniq(n);return function(n){return r.isNonEmpty(n)?t(n):n}},r.sortBy=function(n){var t=f.sortBy(n);return function(n){return r.isNonEmpty(n)?t(n):n}},r.chop=function(n){var t=f.chop(n);return function(n){return r.isNonEmpty(n)?t(n):r.empty}},r.splitAt=function(n){return function(t){return n>=1&&r.isNonEmpty(t)?f.splitAt(n)(t):r.isEmpty(t)?[t,r.empty]:[r.empty,t]}},r.chunksOf=function(n){var t=f.chunksOf(n);return function(n){return r.isNonEmpty(n)?t(n):r.empty}},r.fromOptionK=function(n){return function(){for(var t=[],u=0;u<arguments.length;u++)t[u]=arguments[u];return r.fromOption(n.apply(void 0,t))}},r.comprehension=function(n,t,u){void 0===u&&(u=function(){return!0});var e=function(n,o){return r.isNonEmpty(o)?M.pipe(f.head(o),r.chain((function(t){return e(M.pipe(n,r.append(t)),f.tail(o))}))):u.apply(void 0,n)?[t.apply(void 0,n)]:r.empty};return e(r.empty,n)},r.concatW=function(n){return function(t){return r.isEmpty(t)?n:r.isEmpty(n)?t:t.concat(n)}},r.concat=r.concatW,r.union=d,r.intersection=p,r.difference=s;var l=function(n,t){return M.pipe(n,r.map(t))},m=function(n,t){return M.pipe(n,r.mapWithIndex(t))},h=function(n,t){return M.pipe(n,r.ap(t))},I=function(n,t){return M.pipe(n,r.chain(t))},R=function(n,t){return M.pipe(n,r.filter(t))},b=function(n,t){return M.pipe(n,r.filterMap(t))},O=function(n,t){return M.pipe(n,r.partition(t))},E=function(n,t){return M.pipe(n,r.partitionMap(t))},k=function(n,t){return M.pipe(n,r.partitionWithIndex(t))},P=function(n,t){return M.pipe(n,r.partitionMapWithIndex(t))},N=function(n,t){return M.pipe(n,r.alt(t))},C=function(n,t,u){return M.pipe(n,r.reduce(t,u))},S=function(n){var t=r.foldMap(n);return function(n,r){return M.pipe(n,t(r))}},D=function(n,t,u){return M.pipe(n,r.reduceRight(t,u))},F=function(n,t,u){return M.pipe(n,r.reduceWithIndex(t,u))},H=function(n){var t=r.foldMapWithIndex(n);return function(n,r){return M.pipe(n,t(r))}},J=function(n,t,u){return M.pipe(n,r.reduceRightWithIndex(t,u))},$=function(n,t){return M.pipe(n,r.filterMapWithIndex(t))},G=function(n,t){return M.pipe(n,r.filterWithIndex(t))},B=function(n,t){return M.pipe(n,r.extend(t))},K=function(n){var t=r.traverse(n);return function(n,r){return M.pipe(n,t(r))}},Q=function(n){var t=r.traverseWithIndex(n);return function(n,r){return M.pipe(n,t(r))}};r._chainRecDepthFirst=function(n,t){return M.pipe(n,r.chainRecDepthFirst(t))},r._chainRecBreadthFirst=function(n,t){return M.pipe(n,r.chainRecBreadthFirst(t))},r.of=f.of,r.zero=function(){return r.empty},r.altW=function(n){return function(r){return r.concat(n())}},r.alt=r.altW,r.ap=function(n){return r.chain((function(t){return M.pipe(n,r.map(t))}))},r.chain=function(n){return function(t){return M.pipe(t,r.chainWithIndex((function(r,t){return n(t)})))}},r.flatten=r.chain(M.identity),r.map=function(n){return function(r){return r.map((function(r){return n(r)}))}},r.mapWithIndex=function(n){return function(r){return r.map((function(r,t){return n(t,r)}))}},r.separate=function(n){for(var r=[],t=[],u=0,e=n;u<e.length;u++){var o=e[u];"Left"===o._tag?r.push(o.left):t.push(o.right)}return A.separated(r,t)},r.filter=function(n){return function(r){return r.filter(n)}},r.filterMapWithIndex=function(n){return function(r){for(var t=[],u=0;u<r.length;u++){var e=n(u,r[u]);i.isSome(e)&&t.push(e.value)}return t}},r.filterMap=function(n){return r.filterMapWithIndex((function(r,t){return n(t)}))},r.compact=r.filterMap(M.identity),r.partition=function(n){return r.partitionWithIndex((function(r,t){return n(t)}))},r.partitionWithIndex=function(n){return function(r){for(var t=[],u=[],e=0;e<r.length;e++){var o=r[e];n(e,o)?u.push(o):t.push(o)}return A.separated(t,u)}},r.partitionMap=function(n){return r.partitionMapWithIndex((function(r,t){return n(t)}))},r.partitionMapWithIndex=function(n){return function(r){for(var t=[],u=[],e=0;e<r.length;e++){var o=n(e,r[e]);"Left"===o._tag?t.push(o.left):u.push(o.right)}return A.separated(t,u)}},r.filterWithIndex=function(n){return function(r){return r.filter((function(r,t){return n(t,r)}))}},r.extend=function(n){return function(r){return r.map((function(t,u){return n(r.slice(u))}))}},r.duplicate=r.extend(M.identity),r.foldMapWithIndex=function(n){return function(r){return function(t){return t.reduce((function(t,u,e){return n.concat(t,r(e,u))}),n.empty)}}},r.reduce=function(n,t){return r.reduceWithIndex(n,(function(n,r,u){return t(r,u)}))},r.foldMap=function(n){var t=r.foldMapWithIndex(n);return function(n){return t((function(r,t){return n(t)}))}},r.reduceWithIndex=function(n,r){return function(t){for(var u=t.length,e=n,o=0;o<u;o++)e=r(o,e,t[o]);return e}},r.reduceRight=function(n,t){return r.reduceRightWithIndex(n,(function(n,r,u){return t(r,u)}))},r.reduceRightWithIndex=function(n,r){return function(t){return t.reduceRight((function(n,t,u){return r(u,t,n)}),n)}},r.traverse=function(n){var t=r.traverseWithIndex(n);return function(n){return t((function(r,t){return n(t)}))}},r.sequence=function(n){return function(t){return C(t,n.of(r.zero()),(function(t,u){return n.ap(n.map(t,(function(n){return function(t){return M.pipe(n,r.append(t))}})),u)}))}},r.traverseWithIndex=function(n){return function(t){return r.reduceWithIndex(n.of(r.zero()),(function(u,e,o){return n.ap(n.map(e,(function(n){return function(t){return M.pipe(n,r.append(t))}})),t(u,o))}))}},r.wither=function(n){var r=V(n);return function(n){return function(t){return r(t,n)}}},r.wilt=function(n){var r=X(n);return function(n){return function(t){return r(t,n)}}},r.unfold=function(n,r){for(var t=[],u=n;;){var e=r(u);if(!i.isSome(e))break;var o=e.value,c=o[1];t.push(o[0]),u=c}return t},r.URI="ReadonlyArray",r.getShow=function(n){return{show:function(r){return"["+r.map(n.show).join(", ")+"]"}}},r.getSemigroup=function(){return{concat:function(n,t){return r.isEmpty(n)?t:r.isEmpty(t)?n:n.concat(t)}}},r.getMonoid=function(){return{concat:r.getSemigroup().concat,empty:r.empty}},r.getEq=function(n){return _.fromEquals((function(r,t){return r.length===t.length&&r.every((function(r,u){return n.equals(r,t[u])}))}))},r.getOrd=function(n){return W.fromCompare((function(r,t){for(var u=r.length,e=t.length,o=Math.min(u,e),i=0;i<o;i++){var f=n.compare(r[i],t[i]);if(0!==f)return f}return c.Ord.compare(u,e)}))},r.getUnionSemigroup=function(n){var r=d(n);return{concat:function(n,t){return r(t)(n)}}},r.getUnionMonoid=function(n){return{concat:r.getUnionSemigroup(n).concat,empty:r.empty}},r.getIntersectionSemigroup=function(n){var r=p(n);return{concat:function(n,t){return r(t)(n)}}},r.getDifferenceMagma=function(n){var r=s(n);return{concat:function(n,t){return r(t)(n)}}},r.Functor={URI:r.URI,map:l},r.flap=y.flap(r.Functor),r.Pointed={URI:r.URI,of:r.of},r.FunctorWithIndex={URI:r.URI,map:l,mapWithIndex:m},r.Apply={URI:r.URI,map:l,ap:h},r.apFirst=g.apFirst(r.Apply),r.apSecond=g.apSecond(r.Apply),r.Applicative={URI:r.URI,map:l,ap:h,of:r.of},r.Chain={URI:r.URI,map:l,ap:h,chain:I},r.Monad={URI:r.URI,map:l,ap:h,of:r.of,chain:I},r.chainFirst=j.chainFirst(r.Chain),r.Unfoldable={URI:r.URI,unfold:r.unfold},r.Alt={URI:r.URI,map:l,alt:N},r.Zero={URI:r.URI,zero:r.zero},r.guard=L.guard(r.Zero,r.Pointed),r.Alternative={URI:r.URI,map:l,ap:h,of:r.of,alt:N,zero:r.zero},r.Extend={URI:r.URI,map:l,extend:B},r.Compactable={URI:r.URI,compact:r.compact,separate:r.separate},r.Filterable={URI:r.URI,map:l,compact:r.compact,separate:r.separate,filter:R,filterMap:b,partition:O,partitionMap:E},r.FilterableWithIndex={URI:r.URI,map:l,mapWithIndex:m,compact:r.compact,separate:r.separate,filter:R,filterMap:b,partition:O,partitionMap:E,partitionMapWithIndex:P,partitionWithIndex:k,filterMapWithIndex:$,filterWithIndex:G},r.Foldable={URI:r.URI,reduce:C,foldMap:S,reduceRight:D},r.FoldableWithIndex={URI:r.URI,reduce:C,foldMap:S,reduceRight:D,reduceWithIndex:F,foldMapWithIndex:H,reduceRightWithIndex:J},r.Traversable={URI:r.URI,map:l,reduce:C,foldMap:S,reduceRight:D,traverse:K,sequence:r.sequence},r.TraversableWithIndex={URI:r.URI,map:l,mapWithIndex:m,reduce:C,foldMap:S,reduceRight:D,reduceWithIndex:F,foldMapWithIndex:H,reduceRightWithIndex:J,traverse:K,sequence:r.sequence,traverseWithIndex:Q},r.chainRecDepthFirst=function(n){return function(r){for(var t=o([],n(r)),u=[];t.length>0;){var e=t.shift();i.isLeft(e)?t.unshift.apply(t,n(e.left)):u.push(e.right)}return u}},r.ChainRecDepthFirst={URI:r.URI,map:l,ap:h,chain:I,chainRec:r._chainRecDepthFirst},r.chainRecBreadthFirst=function(n){return function(r){var t=n(r),u=[],e=[];function o(r){i.isLeft(r)?n(r.left).forEach((function(n){return u.push(n)})):e.push(r.right)}for(var c=0,f=t;c<f.length;c++)o(f[c]);for(;u.length>0;)o(u.shift());return e}},r.ChainRecBreadthFirst={URI:r.URI,map:l,ap:h,chain:I,chainRec:r._chainRecBreadthFirst};var V=z.witherDefault(r.Traversable,r.Compactable),X=z.wiltDefault(r.Traversable,r.Compactable);r.Witherable={URI:r.URI,map:l,compact:r.compact,separate:r.separate,filter:R,filterMap:b,partition:O,partitionMap:E,reduce:C,foldMap:S,reduceRight:D,traverse:K,sequence:r.sequence,wither:V,wilt:X},r.filterE=z.filterE(r.Witherable),r.FromEither={URI:r.URI,fromEither:r.fromEither},r.fromEitherK=x.fromEitherK(r.FromEither),r.unsafeInsertAt=f.unsafeInsertAt,r.unsafeUpdateAt=function(n,t,u){return r.isNonEmpty(u)?f.unsafeUpdateAt(n,t,u):u},r.unsafeDeleteAt=function(n,r){var t=r.slice();return t.splice(n,1),t},r.toArray=function(n){return n.slice()},r.fromArray=function(n){return r.isEmpty(n)?r.empty:n.slice()},r.empty=f.empty,r.every=function(n){return function(r){return r.every(n)}},r.some=function(n){return function(r){return r.some(n)}},r.exists=r.some,r.Do=r.of(i.emptyRecord),r.bindTo=y.bindTo(r.Functor),r.bind=j.bind(r.Chain),r.apS=g.apS(r.Apply),r.range=f.range,r.cons=f.cons,r.snoc=f.snoc,r.prependToAll=r.prependAll,r.readonlyArray={URI:r.URI,compact:r.compact,separate:r.separate,map:l,ap:h,of:r.of,chain:I,filter:R,filterMap:b,partition:O,partitionMap:E,mapWithIndex:m,partitionMapWithIndex:P,partitionWithIndex:k,filterMapWithIndex:$,filterWithIndex:G,alt:N,zero:r.zero,unfold:r.unfold,reduce:C,foldMap:S,reduceRight:D,traverse:K,sequence:r.sequence,reduceWithIndex:F,foldMapWithIndex:H,reduceRightWithIndex:J,traverseWithIndex:Q,extend:B,wither:V,wilt:X}})),C=O((function(n,r){var t=U&&U.__createBinding||(Object.create?function(n,r,t,u){void 0===u&&(u=t),Object.defineProperty(n,u,{enumerable:!0,get:function(){return r[t]}})}:function(n,r,t,u){void 0===u&&(u=t),n[u]=r[t]}),u=U&&U.__setModuleDefault||(Object.create?function(n,r){Object.defineProperty(n,"default",{enumerable:!0,value:r})}:function(n,r){n.default=r}),e=U&&U.__importStar||function(n){if(n&&n.__esModule)return n;var r={};if(null!=n)for(var e in n)"default"!==e&&Object.prototype.hasOwnProperty.call(n,e)&&t(r,n,e);return u(r,n),r};Object.defineProperty(r,"__esModule",{value:!0}),r.lefts=r.rights=r.reverse=r.modifyAt=r.deleteAt=r.updateAt=r.insertAt=r.copy=r.findLastIndex=r.findLastMap=r.findLast=r.findFirstMap=r.findFirst=r.findIndex=r.dropLeftWhile=r.dropRight=r.dropLeft=r.spanLeft=r.takeLeftWhile=r.takeRight=r.takeLeft=r.init=r.tail=r.last=r.head=r.lookup=r.isOutOfBound=r.size=r.scanRight=r.scanLeft=r.chainWithIndex=r.foldRight=r.matchRight=r.matchRightW=r.foldLeft=r.matchLeft=r.matchLeftW=r.match=r.matchW=r.fromEither=r.fromOption=r.fromPredicate=r.replicate=r.makeBy=r.appendW=r.append=r.prependW=r.prepend=r.isNonEmpty=r.isEmpty=void 0,r.traverseWithIndex=r.sequence=r.traverse=r.reduceRightWithIndex=r.reduceRight=r.reduceWithIndex=r.reduce=r.foldMapWithIndex=r.foldMap=r.duplicate=r.extend=r.filterWithIndex=r.alt=r.altW=r.partitionMapWithIndex=r.partitionMap=r.partitionWithIndex=r.partition=r.filter=r.separate=r.compact=r.filterMap=r.filterMapWithIndex=r.mapWithIndex=r.flatten=r.chain=r.ap=r.map=r.zero=r.of=r.difference=r.intersection=r.union=r.concat=r.concatW=r.comprehension=r.fromOptionK=r.chunksOf=r.splitAt=r.chop=r.sortBy=r.uniq=r.elem=r.rotate=r.intersperse=r.prependAll=r.unzip=r.zip=r.zipWith=r.sort=void 0,r.some=r.every=r.unsafeDeleteAt=r.unsafeUpdateAt=r.unsafeInsertAt=r.fromEitherK=r.FromEither=r.filterE=r.ChainRecBreadthFirst=r.chainRecBreadthFirst=r.ChainRecDepthFirst=r.chainRecDepthFirst=r.Witherable=r.TraversableWithIndex=r.Traversable=r.FoldableWithIndex=r.Foldable=r.FilterableWithIndex=r.Filterable=r.Compactable=r.Extend=r.Alternative=r.guard=r.Zero=r.Alt=r.Unfoldable=r.Monad=r.chainFirst=r.Chain=r.Applicative=r.apSecond=r.apFirst=r.Apply=r.FunctorWithIndex=r.Pointed=r.flap=r.Functor=r.getDifferenceMagma=r.getIntersectionSemigroup=r.getUnionMonoid=r.getUnionSemigroup=r.getOrd=r.getEq=r.getMonoid=r.getSemigroup=r.getShow=r.URI=r.unfold=r.wilt=r.wither=void 0,r.array=r.prependToAll=r.snoc=r.cons=r.empty=r.range=r.apS=r.bind=r.bindTo=r.Do=r.exists=void 0;var o=e(w),i=e(P),c=e(N);r.isEmpty=function(n){return 0===n.length},r.isNonEmpty=i.isNonEmpty,r.prepend=i.prepend,r.prependW=i.prependW,r.append=i.append,r.appendW=i.appendW,r.makeBy=function(n,r){return n<=0?[]:i.makeBy(r)(n)},r.replicate=function(n,t){return r.makeBy(n,(function(){return t}))},r.fromPredicate=function(n){return function(r){return n(r)?[r]:[]}},r.fromOption=function(n){return o.isNone(n)?[]:[n.value]},r.fromEither=function(n){return o.isLeft(n)?[]:[n.right]},r.matchW=function(n,t){return function(u){return r.isNonEmpty(u)?t(u):n()}},r.match=r.matchW,r.matchLeftW=function(n,t){return function(u){return r.isNonEmpty(u)?t(i.head(u),i.tail(u)):n()}},r.matchLeft=r.matchLeftW,r.foldLeft=r.matchLeft,r.matchRightW=function(n,t){return function(u){return r.isNonEmpty(u)?t(i.init(u),i.last(u)):n()}},r.matchRight=r.matchRightW,r.foldRight=r.matchRight,r.chainWithIndex=function(n){return function(r){for(var t=[],u=0;u<r.length;u++)t.push.apply(t,n(u,r[u]));return t}},r.scanLeft=function(n,r){return function(t){var u=t.length,e=new Array(u+1);e[0]=n;for(var o=0;o<u;o++)e[o+1]=r(e[o],t[o]);return e}},r.scanRight=function(n,r){return function(t){var u=t.length,e=new Array(u+1);e[u]=n;for(var o=u-1;o>=0;o--)e[o]=r(t[o],e[o+1]);return e}},r.size=function(n){return n.length},r.isOutOfBound=i.isOutOfBound,r.lookup=c.lookup,r.head=c.head,r.last=c.last,r.tail=function(n){return r.isNonEmpty(n)?o.some(i.tail(n)):o.none},r.init=function(n){return r.isNonEmpty(n)?o.some(i.init(n)):o.none},r.takeLeft=function(n){return function(t){return r.isOutOfBound(n,t)?r.copy(t):t.slice(0,n)}},r.takeRight=function(n){return function(t){return r.isOutOfBound(n,t)?r.copy(t):0===n?[]:t.slice(-n)}},r.takeLeftWhile=function(n){return function(r){for(var t=[],u=0,e=r;u<e.length;u++){var o=e[u];if(!n(o))break;t.push(o)}return t}};var f=function(n,r){for(var t=n.length,u=0;u<t&&r(n[u]);u++);return u};function a(n){var t=i.union(n);return function(u,e){if(void 0===e){var o=a(n);return function(n){return o(n,u)}}return r.isNonEmpty(u)&&r.isNonEmpty(e)?t(e)(u):r.isNonEmpty(u)?r.copy(u):r.copy(e)}}function v(n){var t=r.elem(n);return function(r,u){if(void 0===u){var e=v(n);return function(n){return e(n,r)}}return r.filter((function(n){return t(n,u)}))}}function d(n){var t=r.elem(n);return function(r,u){if(void 0===u){var e=d(n);return function(n){return e(n,r)}}return r.filter((function(n){return!t(n,u)}))}}r.spanLeft=function(n){return function(t){var u=r.splitAt(f(t,n))(t);return{init:u[0],rest:u[1]}}},r.dropLeft=function(n){return function(t){return n<=0||r.isEmpty(t)?r.copy(t):n>=t.length?[]:t.slice(n,t.length)}},r.dropRight=function(n){return function(t){return n<=0||r.isEmpty(t)?r.copy(t):n>=t.length?[]:t.slice(0,t.length-n)}},r.dropLeftWhile=function(n){return function(r){return r.slice(f(r,n))}},r.findIndex=c.findIndex,r.findFirst=function(n){return c.findFirst(n)},r.findFirstMap=c.findFirstMap,r.findLast=function(n){return c.findLast(n)},r.findLastMap=c.findLastMap,r.findLastIndex=c.findLastIndex,r.copy=function(n){return n.slice()},r.insertAt=function(n,t){return function(u){return n<0||n>u.length?o.none:o.some(r.unsafeInsertAt(n,t,u))}},r.updateAt=function(n,t){return r.modifyAt(n,(function(){return t}))},r.deleteAt=function(n){return function(t){return r.isOutOfBound(n,t)?o.none:o.some(r.unsafeDeleteAt(n,t))}},r.modifyAt=function(n,t){return function(u){return r.isOutOfBound(n,u)?o.none:o.some(r.unsafeUpdateAt(n,t(u[n]),u))}},r.reverse=function(n){return r.isEmpty(n)?[]:n.slice().reverse()},r.rights=function(n){for(var r=[],t=0;t<n.length;t++){var u=n[t];"Right"===u._tag&&r.push(u.right)}return r},r.lefts=function(n){for(var r=[],t=0;t<n.length;t++){var u=n[t];"Left"===u._tag&&r.push(u.left)}return r},r.sort=function(n){return function(t){return t.length<=1?r.copy(t):t.slice().sort(n.compare)}},r.zipWith=function(n,r,t){for(var u=[],e=Math.min(n.length,r.length),o=0;o<e;o++)u[o]=t(n[o],r[o]);return u},r.zip=function n(t,u){return void 0===u?function(r){return n(r,t)}:r.zipWith(t,u,(function(n,r){return[n,r]}))},r.unzip=function(n){for(var r=[],t=[],u=0;u<n.length;u++)r[u]=n[u][0],t[u]=n[u][1];return[r,t]},r.prependAll=function(n){var t=i.prependAll(n);return function(n){return r.isNonEmpty(n)?t(n):[]}},r.intersperse=function(n){var t=i.intersperse(n);return function(n){return r.isNonEmpty(n)?t(n):r.copy(n)}},r.rotate=function(n){var t=i.rotate(n);return function(n){return r.isNonEmpty(n)?t(n):r.copy(n)}},r.elem=c.elem,r.uniq=function(n){var t=i.uniq(n);return function(n){return r.isNonEmpty(n)?t(n):r.copy(n)}},r.sortBy=function(n){var t=i.sortBy(n);return function(n){return r.isNonEmpty(n)?t(n):r.copy(n)}},r.chop=function(n){var t=i.chop(n);return function(n){return r.isNonEmpty(n)?t(n):[]}},r.splitAt=function(n){return function(t){return n>=1&&r.isNonEmpty(t)?i.splitAt(n)(t):r.isEmpty(t)?[r.copy(t),[]]:[[],r.copy(t)]}},r.chunksOf=function(n){var t=i.chunksOf(n);return function(n){return r.isNonEmpty(n)?t(n):[]}},r.fromOptionK=function(n){return function(){for(var t=[],u=0;u<arguments.length;u++)t[u]=arguments[u];return r.fromOption(n.apply(void 0,t))}},r.comprehension=function(n,t,u){void 0===u&&(u=function(){return!0});var e=function(n,o){return r.isNonEmpty(o)?M.pipe(i.head(o),r.chain((function(t){return e(M.pipe(n,r.append(t)),i.tail(o))}))):u.apply(void 0,n)?[t.apply(void 0,n)]:[]};return e([],n)},r.concatW=function(n){return function(t){return r.isEmpty(t)?r.copy(n):r.isEmpty(n)?r.copy(t):t.concat(n)}},r.concat=r.concatW,r.union=a,r.intersection=v,r.difference=d;var p=function(n,t){return M.pipe(n,r.map(t))},s=function(n,t){return M.pipe(n,r.mapWithIndex(t))},l=function(n,t){return M.pipe(n,r.ap(t))},m=function(n,t){return M.pipe(n,r.chain(t))},h=function(n,t){return M.pipe(n,r.filter(t))},I=function(n,t){return M.pipe(n,r.filterMap(t))},R=function(n,t){return M.pipe(n,r.partition(t))},b=function(n,t){return M.pipe(n,r.partitionMap(t))},O=function(n,t){return M.pipe(n,r.partitionWithIndex(t))},_=function(n,t){return M.pipe(n,r.partitionMapWithIndex(t))},W=function(n,t){return M.pipe(n,r.alt(t))},E=function(n,t,u){return M.pipe(n,r.reduce(t,u))},k=function(n){var t=r.foldMap(n);return function(n,r){return M.pipe(n,t(r))}},q=function(n,t,u){return M.pipe(n,r.reduceRight(t,u))},T=function(n,t,u){return M.pipe(n,r.reduceWithIndex(t,u))},C=function(n){var t=r.foldMapWithIndex(n);return function(n,r){return M.pipe(n,t(r))}},S=function(n,t,u){return M.pipe(n,r.reduceRightWithIndex(t,u))},D=function(n,t){return M.pipe(n,r.filterMapWithIndex(t))},F=function(n,t){return M.pipe(n,r.filterWithIndex(t))},H=function(n,t){return M.pipe(n,r.extend(t))},J=function(n){var t=r.traverse(n);return function(n,r){return M.pipe(n,t(r))}},$=function(n){var t=r.traverseWithIndex(n);return function(n,r){return M.pipe(n,t(r))}},G=c._chainRecDepthFirst,B=c._chainRecBreadthFirst;r.of=i.of,r.zero=function(){return[]},r.map=function(n){return function(r){return r.map((function(r){return n(r)}))}},r.ap=function(n){return r.chain((function(t){return M.pipe(n,r.map(t))}))},r.chain=function(n){return function(t){return M.pipe(t,r.chainWithIndex((function(r,t){return n(t)})))}},r.flatten=r.chain(M.identity),r.mapWithIndex=function(n){return function(r){return r.map((function(r,t){return n(t,r)}))}},r.filterMapWithIndex=function(n){return function(r){for(var t=[],u=0;u<r.length;u++){var e=n(u,r[u]);o.isSome(e)&&t.push(e.value)}return t}},r.filterMap=function(n){return r.filterMapWithIndex((function(r,t){return n(t)}))},r.compact=r.filterMap(M.identity),r.separate=function(n){for(var r=[],t=[],u=0,e=n;u<e.length;u++){var o=e[u];"Left"===o._tag?r.push(o.left):t.push(o.right)}return A.separated(r,t)},r.filter=function(n){return function(r){return r.filter(n)}},r.partition=function(n){return r.partitionWithIndex((function(r,t){return n(t)}))},r.partitionWithIndex=function(n){return function(r){for(var t=[],u=[],e=0;e<r.length;e++){var o=r[e];n(e,o)?u.push(o):t.push(o)}return A.separated(t,u)}},r.partitionMap=function(n){return r.partitionMapWithIndex((function(r,t){return n(t)}))},r.partitionMapWithIndex=function(n){return function(r){for(var t=[],u=[],e=0;e<r.length;e++){var o=n(e,r[e]);"Left"===o._tag?t.push(o.left):u.push(o.right)}return A.separated(t,u)}},r.altW=function(n){return function(r){return r.concat(n())}},r.alt=r.altW,r.filterWithIndex=function(n){return function(r){return r.filter((function(r,t){return n(t,r)}))}},r.extend=function(n){return function(r){return r.map((function(t,u){return n(r.slice(u))}))}},r.duplicate=r.extend(M.identity),r.foldMap=c.foldMap,r.foldMapWithIndex=c.foldMapWithIndex,r.reduce=c.reduce,r.reduceWithIndex=c.reduceWithIndex,r.reduceRight=c.reduceRight,r.reduceRightWithIndex=c.reduceRightWithIndex,r.traverse=function(n){var t=r.traverseWithIndex(n);return function(n){return t((function(r,t){return n(t)}))}},r.sequence=function(n){return function(t){return E(t,n.of(r.zero()),(function(t,u){return n.ap(n.map(t,(function(n){return function(t){return M.pipe(n,r.append(t))}})),u)}))}},r.traverseWithIndex=function(n){return function(t){return r.reduceWithIndex(n.of(r.zero()),(function(u,e,o){return n.ap(n.map(e,(function(n){return function(t){return M.pipe(n,r.append(t))}})),t(u,o))}))}},r.wither=function(n){var r=K(n);return function(n){return function(t){return r(t,n)}}},r.wilt=function(n){var r=Q(n);return function(n){return function(t){return r(t,n)}}},r.unfold=function(n,r){for(var t=[],u=n;;){var e=r(u);if(!o.isSome(e))break;var i=e.value,c=i[1];t.push(i[0]),u=c}return t},r.URI="Array",r.getShow=c.getShow,r.getSemigroup=function(){return{concat:function(n,r){return n.concat(r)}}},r.getMonoid=function(){return{concat:r.getSemigroup().concat,empty:[]}},r.getEq=c.getEq,r.getOrd=c.getOrd,r.getUnionSemigroup=function(n){var r=a(n);return{concat:function(n,t){return r(t)(n)}}},r.getUnionMonoid=function(n){return{concat:r.getUnionSemigroup(n).concat,empty:[]}},r.getIntersectionSemigroup=function(n){var r=v(n);return{concat:function(n,t){return r(t)(n)}}},r.getDifferenceMagma=function(n){var r=d(n);return{concat:function(n,t){return r(t)(n)}}},r.Functor={URI:r.URI,map:p},r.flap=y.flap(r.Functor),r.Pointed={URI:r.URI,of:r.of},r.FunctorWithIndex={URI:r.URI,map:p,mapWithIndex:s},r.Apply={URI:r.URI,map:p,ap:l},r.apFirst=g.apFirst(r.Apply),r.apSecond=g.apSecond(r.Apply),r.Applicative={URI:r.URI,map:p,ap:l,of:r.of},r.Chain={URI:r.URI,map:p,ap:l,chain:m},r.chainFirst=j.chainFirst(r.Chain),r.Monad={URI:r.URI,map:p,ap:l,of:r.of,chain:m},r.Unfoldable={URI:r.URI,unfold:r.unfold},r.Alt={URI:r.URI,map:p,alt:W},r.Zero={URI:r.URI,zero:r.zero},r.guard=L.guard(r.Zero,r.Pointed),r.Alternative={URI:r.URI,map:p,ap:l,of:r.of,alt:W,zero:r.zero},r.Extend={URI:r.URI,map:p,extend:H},r.Compactable={URI:r.URI,compact:r.compact,separate:r.separate},r.Filterable={URI:r.URI,map:p,compact:r.compact,separate:r.separate,filter:h,filterMap:I,partition:R,partitionMap:b},r.FilterableWithIndex={URI:r.URI,map:p,mapWithIndex:s,compact:r.compact,separate:r.separate,filter:h,filterMap:I,partition:R,partitionMap:b,partitionMapWithIndex:_,partitionWithIndex:O,filterMapWithIndex:D,filterWithIndex:F},r.Foldable={URI:r.URI,reduce:E,foldMap:k,reduceRight:q},r.FoldableWithIndex={URI:r.URI,reduce:E,foldMap:k,reduceRight:q,reduceWithIndex:T,foldMapWithIndex:C,reduceRightWithIndex:S},r.Traversable={URI:r.URI,map:p,reduce:E,foldMap:k,reduceRight:q,traverse:J,sequence:r.sequence},r.TraversableWithIndex={URI:r.URI,map:p,mapWithIndex:s,reduce:E,foldMap:k,reduceRight:q,reduceWithIndex:T,foldMapWithIndex:C,reduceRightWithIndex:S,traverse:J,sequence:r.sequence,traverseWithIndex:$};var K=z.witherDefault(r.Traversable,r.Compactable),Q=z.wiltDefault(r.Traversable,r.Compactable);r.Witherable={URI:r.URI,map:p,compact:r.compact,separate:r.separate,filter:h,filterMap:I,partition:R,partitionMap:b,reduce:E,foldMap:k,reduceRight:q,traverse:J,sequence:r.sequence,wither:K,wilt:Q},r.chainRecDepthFirst=c.chainRecDepthFirst,r.ChainRecDepthFirst={URI:r.URI,map:p,ap:l,chain:m,chainRec:G},r.chainRecBreadthFirst=c.chainRecBreadthFirst,r.ChainRecBreadthFirst={URI:r.URI,map:p,ap:l,chain:m,chainRec:B},r.filterE=z.filterE(r.Witherable),r.FromEither={URI:r.URI,fromEither:r.fromEither},r.fromEitherK=x.fromEitherK(r.FromEither),r.unsafeInsertAt=i.unsafeInsertAt,r.unsafeUpdateAt=function(n,t,u){return r.isNonEmpty(u)?i.unsafeUpdateAt(n,t,u):[]},r.unsafeDeleteAt=function(n,r){var t=r.slice();return t.splice(n,1),t},r.every=c.every,r.some=function(n){return function(r){return r.some(n)}},r.exists=r.some,r.Do=r.of(o.emptyRecord),r.bindTo=y.bindTo(r.Functor),r.bind=j.bind(r.Chain),r.apS=g.apS(r.Apply),r.range=i.range,r.empty=[],r.cons=i.cons,r.snoc=i.snoc,r.prependToAll=r.prependAll,r.array={URI:r.URI,compact:r.compact,separate:r.separate,map:p,ap:l,of:r.of,chain:m,filter:h,filterMap:I,partition:R,partitionMap:b,mapWithIndex:s,partitionMapWithIndex:_,partitionWithIndex:O,filterMapWithIndex:D,filterWithIndex:F,alt:W,zero:r.zero,unfold:r.unfold,reduce:E,foldMap:k,reduceRight:q,traverse:J,sequence:r.sequence,reduceWithIndex:T,foldMapWithIndex:C,reduceRightWithIndex:S,traverseWithIndex:$,extend:H,wither:K,wilt:Q}})),S=O((function(n,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getApplicativeComposition=r.getApplicativeMonoid=void 0,r.getApplicativeMonoid=function(n){var r=g.getApplySemigroup(n);return function(t){return{concat:r(t).concat,empty:n.of(t.empty)}}},r.getApplicativeComposition=function(n,r){var t=y.getFunctorComposition(n,r).map,u=g.ap(n,r);return{map:t,of:function(t){return n.of(r.of(t))},ap:function(n,r){return M.pipe(n,u(r))}}}})),D=O((function(n,r){Object.defineProperty(r,"__esModule",{value:!0}),r.and=r.or=r.not=r.Contravariant=r.getMonoidAll=r.getSemigroupAll=r.getMonoidAny=r.getSemigroupAny=r.URI=r.contramap=void 0,r.contramap=function(n){return function(r){return M.flow(n,r)}},r.URI="Predicate",r.getSemigroupAny=function(){return{concat:function(n,t){return M.pipe(n,r.or(t))}}},r.getMonoidAny=function(){return{concat:r.getSemigroupAny().concat,empty:M.constFalse}},r.getSemigroupAll=function(){return{concat:function(n,t){return M.pipe(n,r.and(t))}}},r.getMonoidAll=function(){return{concat:r.getSemigroupAll().concat,empty:M.constTrue}},r.Contravariant={URI:r.URI,contramap:function(n,t){return M.pipe(n,r.contramap(t))}},r.not=function(n){return function(r){return!n(r)}},r.or=function(n){return function(r){return function(t){return r(t)||n(t)}}},r.and=function(n){return function(r){return function(t){return r(t)&&n(t)}}}})),F=O((function(n,r){var t=U&&U.__createBinding||(Object.create?function(n,r,t,u){void 0===u&&(u=t),Object.defineProperty(n,u,{enumerable:!0,get:function(){return r[t]}})}:function(n,r,t,u){void 0===u&&(u=t),n[u]=r[t]}),u=U&&U.__setModuleDefault||(Object.create?function(n,r){Object.defineProperty(n,"default",{enumerable:!0,value:r})}:function(n,r){n.default=r}),e=U&&U.__importStar||function(n){if(n&&n.__esModule)return n;var r={};if(null!=n)for(var e in n)"default"!==e&&Object.prototype.hasOwnProperty.call(n,e)&&t(r,n,e);return u(r,n),r};Object.defineProperty(r,"__esModule",{value:!0}),r.fromEither=r.MonadThrow=r.throwError=r.Witherable=r.wilt=r.wither=r.Traversable=r.sequence=r.traverse=r.Filterable=r.partitionMap=r.partition=r.filterMap=r.filter=r.Compactable=r.separate=r.compact=r.Extend=r.extend=r.Alternative=r.guard=r.Zero=r.zero=r.Alt=r.alt=r.altW=r.Foldable=r.reduceRight=r.foldMap=r.reduce=r.Monad=r.Chain=r.chain=r.Applicative=r.Apply=r.ap=r.Pointed=r.of=r.Functor=r.map=r.getMonoid=r.getOrd=r.getEq=r.getShow=r.URI=r.getRight=r.getLeft=r.fromPredicate=r.some=r.none=void 0,r.getLastMonoid=r.getFirstMonoid=r.getApplyMonoid=r.getApplySemigroup=r.option=r.mapNullable=r.getRefinement=r.sequenceArray=r.traverseArray=r.traverseArrayWithIndex=r.traverseReadonlyArrayWithIndex=r.traverseReadonlyNonEmptyArrayWithIndex=r.ApT=r.apS=r.bind=r.bindTo=r.Do=r.exists=r.elem=r.toUndefined=r.toNullable=r.chainNullableK=r.fromNullableK=r.tryCatchK=r.tryCatch=r.fromNullable=r.chainEitherK=r.fromEitherK=r.duplicate=r.chainFirst=r.flatten=r.apSecond=r.apFirst=r.flap=r.getOrElse=r.getOrElseW=r.fold=r.match=r.foldW=r.matchW=r.isNone=r.isSome=r.FromEither=void 0;var o=e(w);r.none=o.none,r.some=o.some,r.fromPredicate=function(n){return function(t){return n(t)?r.some(t):r.none}},r.getLeft=function(n){return"Right"===n._tag?r.none:r.some(n.left)},r.getRight=function(n){return"Left"===n._tag?r.none:r.some(n.right)};var i=function(n,t){return M.pipe(n,r.map(t))},c=function(n,t){return M.pipe(n,r.ap(t))},f=function(n,t){return M.pipe(n,r.chain(t))},a=function(n,t,u){return M.pipe(n,r.reduce(t,u))},v=function(n){var t=r.foldMap(n);return function(n,r){return M.pipe(n,t(r))}},d=function(n,t,u){return M.pipe(n,r.reduceRight(t,u))},p=function(n){var t=r.traverse(n);return function(n,r){return M.pipe(n,t(r))}},s=function(n,t){return M.pipe(n,r.alt(t))},l=function(n,t){return M.pipe(n,r.filter(t))},m=function(n,t){return M.pipe(n,r.filterMap(t))},h=function(n,t){return M.pipe(n,r.extend(t))},I=function(n,t){return M.pipe(n,r.partition(t))},R=function(n,t){return M.pipe(n,r.partitionMap(t))};r.URI="Option",r.getShow=function(n){return{show:function(t){return r.isNone(t)?"none":"some("+n.show(t.value)+")"}}},r.getEq=function(n){return{equals:function(t,u){return t===u||(r.isNone(t)?r.isNone(u):!r.isNone(u)&&n.equals(t.value,u.value))}}},r.getOrd=function(n){return{equals:r.getEq(n).equals,compare:function(t,u){return t===u?0:r.isSome(t)?r.isSome(u)?n.compare(t.value,u.value):1:-1}}},r.getMonoid=function(n){return{concat:function(t,u){return r.isNone(t)?u:r.isNone(u)?t:r.some(n.concat(t.value,u.value))},empty:r.none}},r.map=function(n){return function(t){return r.isNone(t)?r.none:r.some(n(t.value))}},r.Functor={URI:r.URI,map:i},r.of=r.some,r.Pointed={URI:r.URI,of:r.of},r.ap=function(n){return function(t){return r.isNone(t)||r.isNone(n)?r.none:r.some(t.value(n.value))}},r.Apply={URI:r.URI,map:i,ap:c},r.Applicative={URI:r.URI,map:i,ap:c,of:r.of},r.chain=function(n){return function(t){return r.isNone(t)?r.none:n(t.value)}},r.Chain={URI:r.URI,map:i,ap:c,chain:f},r.Monad={URI:r.URI,map:i,ap:c,of:r.of,chain:f},r.reduce=function(n,t){return function(u){return r.isNone(u)?n:t(n,u.value)}},r.foldMap=function(n){return function(t){return function(u){return r.isNone(u)?n.empty:t(u.value)}}},r.reduceRight=function(n,t){return function(u){return r.isNone(u)?n:t(u.value,n)}},r.Foldable={URI:r.URI,reduce:a,foldMap:v,reduceRight:d},r.altW=function(n){return function(t){return r.isNone(t)?n():t}},r.alt=r.altW,r.Alt={URI:r.URI,map:i,alt:s},r.zero=function(){return r.none},r.Zero={URI:r.URI,zero:r.zero},r.guard=L.guard(r.Zero,r.Pointed),r.Alternative={URI:r.URI,map:i,ap:c,of:r.of,alt:s,zero:r.zero},r.extend=function(n){return function(t){return r.isNone(t)?r.none:r.some(n(t))}},r.Extend={URI:r.URI,map:i,extend:h},r.compact=r.chain(M.identity);var b=A.separated(r.none,r.none);r.separate=function(n){return r.isNone(n)?b:A.separated(r.getLeft(n.value),r.getRight(n.value))},r.Compactable={URI:r.URI,compact:r.compact,separate:r.separate},r.filter=function(n){return function(t){return r.isNone(t)?r.none:n(t.value)?t:r.none}},r.filterMap=function(n){return function(t){return r.isNone(t)?r.none:n(t.value)}},r.partition=function(n){return function(r){return A.separated(l(r,D.not(n)),l(r,n))}},r.partitionMap=function(n){return M.flow(r.map(n),r.separate)},r.Filterable={URI:r.URI,map:i,compact:r.compact,separate:r.separate,filter:l,filterMap:m,partition:I,partitionMap:R},r.traverse=function(n){return function(t){return function(u){return r.isNone(u)?n.of(r.none):n.map(t(u.value),r.some)}}},r.sequence=function(n){return function(t){return r.isNone(t)?n.of(r.none):n.map(t.value,r.some)}},r.Traversable={URI:r.URI,map:i,reduce:a,foldMap:v,reduceRight:d,traverse:p,sequence:r.sequence};var O=z.witherDefault(r.Traversable,r.Compactable),_=z.wiltDefault(r.Traversable,r.Compactable);r.wither=function(n){var r=O(n);return function(n){return function(t){return r(t,n)}}},r.wilt=function(n){var r=_(n);return function(n){return function(t){return r(t,n)}}},r.Witherable={URI:r.URI,map:i,reduce:a,foldMap:v,reduceRight:d,traverse:p,sequence:r.sequence,compact:r.compact,separate:r.separate,filter:l,filterMap:m,partition:I,partitionMap:R,wither:O,wilt:_},r.throwError=function(){return r.none},r.MonadThrow={URI:r.URI,map:i,ap:c,of:r.of,chain:f,throwError:r.throwError},r.fromEither=r.getRight,r.FromEither={URI:r.URI,fromEither:r.fromEither},r.isSome=o.isSome,r.isNone=function(n){return"None"===n._tag},r.matchW=function(n,t){return function(u){return r.isNone(u)?n():t(u.value)}},r.foldW=r.matchW,r.match=r.matchW,r.fold=r.match,r.getOrElseW=function(n){return function(t){return r.isNone(t)?n():t.value}},r.getOrElse=r.getOrElseW,r.flap=y.flap(r.Functor),r.apFirst=g.apFirst(r.Apply),r.apSecond=g.apSecond(r.Apply),r.flatten=r.compact,r.chainFirst=j.chainFirst(r.Chain),r.duplicate=r.extend(M.identity),r.fromEitherK=x.fromEitherK(r.FromEither),r.chainEitherK=x.chainEitherK(r.FromEither,r.Chain),r.fromNullable=function(n){return null==n?r.none:r.some(n)},r.tryCatch=function(n){try{return r.some(n())}catch(n){return r.none}},r.tryCatchK=function(n){return function(){for(var t=[],u=0;u<arguments.length;u++)t[u]=arguments[u];return r.tryCatch((function(){return n.apply(void 0,t)}))}},r.fromNullableK=function(n){return M.flow(n,r.fromNullable)},r.chainNullableK=function(n){return function(t){return r.isNone(t)?r.none:r.fromNullable(n(t.value))}},r.toNullable=r.match(M.constNull,M.identity),r.toUndefined=r.match(M.constUndefined,M.identity),r.elem=function n(t){return function(u,e){if(void 0===e){var o=n(t);return function(n){return o(u,n)}}return!r.isNone(e)&&t.equals(u,e.value)}},r.exists=function(n){return function(t){return!r.isNone(t)&&n(t.value)}},r.Do=r.of(o.emptyRecord),r.bindTo=y.bindTo(r.Functor),r.bind=j.bind(r.Chain),r.apS=g.apS(r.Apply),r.ApT=r.of(o.emptyReadonlyArray),r.traverseReadonlyNonEmptyArrayWithIndex=function(n){return function(t){var u=n(0,o.head(t));if(r.isNone(u))return r.none;for(var e=[u.value],i=1;i<t.length;i++){var c=n(i,t[i]);if(r.isNone(c))return r.none;e.push(c.value)}return r.some(e)}},r.traverseReadonlyArrayWithIndex=function(n){var t=r.traverseReadonlyNonEmptyArrayWithIndex(n);return function(n){return o.isNonEmpty(n)?t(n):r.ApT}},r.traverseArrayWithIndex=r.traverseReadonlyArrayWithIndex,r.traverseArray=function(n){return r.traverseReadonlyArrayWithIndex((function(r,t){return n(t)}))},r.sequenceArray=r.traverseArray(M.identity),r.getRefinement=function(n){return function(t){return r.isSome(n(t))}},r.mapNullable=r.chainNullableK,r.option={URI:r.URI,map:i,of:r.of,ap:c,chain:f,reduce:a,foldMap:v,reduceRight:d,traverse:p,sequence:r.sequence,zero:r.zero,alt:s,extend:h,compact:r.compact,separate:r.separate,filter:l,filterMap:m,partition:I,partitionMap:R,wither:O,wilt:_,throwError:r.throwError},r.getApplySemigroup=g.getApplySemigroup(r.Apply),r.getApplyMonoid=S.getApplicativeMonoid(r.Applicative),r.getFirstMonoid=function(){return r.getMonoid(k.first())},r.getLastMonoid=function(){return r.getMonoid(k.last())}}));const H=n=>!("isConnected"in n)||n.isConnected,J=(()=>{let n;return(...r)=>{n&&clearTimeout(n),n=setTimeout((()=>{n=0,(n=>{for(let r of n.keys())n.set(r,n.get(r).filter(H))})(...r)}),2e3)}})(),$=(t,u)=>{const e=((n,r=((n,r)=>n!==r))=>{let t=new Map(Object.entries(null!=n?n:{}));const u={dispose:[],get:[],set:[],reset:[]},e=()=>{t=new Map(Object.entries(null!=n?n:{})),u.reset.forEach((n=>n()))},o=n=>(u.get.forEach((r=>r(n))),t.get(n)),i=(n,e)=>{const o=t.get(n);r(e,o,n)&&(t.set(n,e),u.set.forEach((r=>r(n,e,o))))},c="undefined"==typeof Proxy?{}:new Proxy(n,{get:(n,r)=>o(r),ownKeys:()=>Array.from(t.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(n,r)=>t.has(r),set:(n,r,t)=>(i(r,t),!0)}),f=(n,r)=>(u[n].push(r),()=>{((n,r)=>{const t=n.indexOf(r);t>=0&&(n[t]=n[n.length-1],n.length--)})(u[n],r)});return{state:c,get:o,set:i,on:f,onChange:(r,t)=>{const u=f("set",((n,u)=>{n===r&&t(u)})),e=f("reset",(()=>t(n[r])));return()=>{u(),e()}},use:(...n)=>{const r=n.reduce(((n,r)=>(r.set&&n.push(f("set",r.set)),r.get&&n.push(f("get",r.get)),r.reset&&n.push(f("reset",r.reset)),r.dispose&&n.push(f("dispose",r.dispose)),n)),[]);return()=>r.forEach((n=>n()))},dispose:()=>{u.dispose.forEach((n=>n())),e()},reset:e,forceUpdate:n=>{const r=t.get(n);u.set.forEach((t=>t(n,r,r)))}}})(t,u);return e.use((()=>{if("function"!=typeof n)return{};const t=new Map;return{dispose:()=>t.clear(),get:r=>{const u=n();u&&((n,r,t)=>{const u=n.get(r);u?u.includes(t)||u.push(t):n.set(r,[t])})(t,r,u)},set:n=>{const u=t.get(n);u&&t.set(n,u.filter(r)),J(t)},reset:()=>{t.forEach((n=>n.forEach(r))),J(t)}}})()),e},{state:G,onChange:B}=$(Object.assign({fallbackStyles:"",pricePrefix:null,currencySign:null,apiPath:null,token:null,locale:"de-DE"},{trackingEnabled:!0}));function K(n,r,t){return function(u){for(var e=Array(t.length+1),o=0;o<t.length;o++)e[o]=t[o];return e[t.length]=u,0===r?n.apply(null,e):K(n,r-1,e)}}B("apiPath",(n=>{console.log("apiPathChanged",n)})),B("token",(n=>{console.log("tokenChanged",n)}));var Q={1:function(n){return[n]},2:function(n){return function(r){return[n,r]}},3:function(n){return function(r){return function(t){return[n,r,t]}}},4:function(n){return function(r){return function(t){return function(u){return[n,r,t,u]}}}},5:function(n){return function(r){return function(t){return function(u){return function(e){return[n,r,t,u,e]}}}}}};function V(n){return Q.hasOwnProperty(n)||(Q[n]=K(t,n-1,[])),Q[n]}function X(n){return function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];for(var u=r.length,e=V(u),o=n.map(r[0],e),i=1;i<u;i++)o=n.ap(o,r[i]);return o}}function Y(n){return function(r){return function(t){return n.fromEither(u(t)?e(r()):o(t.value))}}}var Z=e,nn=o,rn=function(n,r){return f(n,tn(r))},tn=function(n){return function(r){return fn(r)?r:nn(n(r.right))}},un={URI:"Either",map:rn},en={URI:"Either",map:rn,ap:function(n,r){return f(n,function(n){return function(r){return fn(r)?r:fn(n)?n:nn(r.right(n.right))}}(r))}},on=function(n){return function(r){return fn(r)?Z(n(r.left)):r}},cn=Y({URI:"Either",fromEither:c}),fn=i,an=function(n,r){return function(t){return fn(t)?n(t.left):r(t.right)}},vn=a,dn=v,pn=function(n){return{concat:function(r,t){return sn(r)?t:sn(t)?r:dn(n.concat(r.value,t.value))},empty:vn}},sn=function(n){return"None"===n._tag},ln=function(n){return null==n?vn:dn(n)};function mn(n){return function(r){return n.map(r,nn)}}function hn(n){return function(n,r){return function(t){return function(u){return n.map(u,(function(n){return r.map(n,t)}))}}}(n,un)}function In(n){return function(n,r){return function(t){return function(u){return n.ap(n.map(u,(function(n){return function(t){return r.ap(n,t)}})),t)}}}(n,en)}function Rn(n){return function(r){return function(t){return n.chain(t,(function(t){return fn(t)?n.of(t):r(t.right)}))}}}function bn(n){return function(r){return function(t){return n.map(t,on(r))}}}function Un(n,r){return function(t){var u=p(t,n.fromTask);return function(n){return r.chain(n,u)}}}var On=function(n){return function(){return Promise.resolve().then(n)}},Mn=function(n,r){return f(n,jn(r))},gn=function(n,r){return f(n,wn(r))},jn=function(n){return function(r){return function(){return Promise.resolve().then(r).then(n)}}},wn=function(n){return function(r){return function(){return Promise.all([Promise.resolve().then(r),Promise.resolve().then(n)]).then((function(n){return(0,n[0])(n[1])}))}}},xn=function(n){return function(){return Promise.resolve(n)}},yn={URI:"Task",map:Mn},_n={URI:"Task",map:Mn,ap:gn},Wn={URI:"Task",map:Mn,of:xn,ap:gn,chain:function(n,r){return f(n,function(n){return function(r){return function(){return Promise.resolve().then(r).then((function(r){return n(r)()}))}}}(r))}},En=mn(yn),kn=p(On,En),qn=En,Pn=xn,Tn=hn(yn),An=bn(yn),zn=In(_n),Ln=Rn(Wn),Nn=Ln,Cn="TaskEither",Sn={URI:Cn,map:function(n,r){return f(n,Tn(r))},ap:function(n,r){return f(n,zn(r))},chain:function(n,r){return f(n,Ln(r))}},Dn=Y({URI:Cn,fromEither:Pn}),Fn=Un({URI:Cn,fromIO:kn,fromTask:qn},Sn),Hn=O((function(n,r){var t=U&&U.__createBinding||(Object.create?function(n,r,t,u){void 0===u&&(u=t),Object.defineProperty(n,u,{enumerable:!0,get:function(){return r[t]}})}:function(n,r,t,u){void 0===u&&(u=t),n[u]=r[t]}),u=U&&U.__setModuleDefault||(Object.create?function(n,r){Object.defineProperty(n,"default",{enumerable:!0,value:r})}:function(n,r){n.default=r}),e=U&&U.__importStar||function(n){if(n&&n.__esModule)return n;var r={};if(null!=n)for(var e in n)"default"!==e&&Object.prototype.hasOwnProperty.call(n,e)&&t(r,n,e);return u(r,n),r};Object.defineProperty(r,"__esModule",{value:!0}),r.getCompactableComposition=r.separate=r.compact=void 0;var o=e(A);function i(n,r){return function(t){return n.map(t,r.compact)}}function c(n,r,t){var u=i(n,r),e=y.map(n,t);return function(n){return o.separated(u(M.pipe(n,e(F.getLeft))),u(M.pipe(n,e(F.getRight))))}}r.compact=i,r.separate=c,r.getCompactableComposition=function(n,r){return{map:y.getFunctorComposition(n,r).map,compact:i(n,r),separate:c(n,r,r)}}})),Jn=O((function(n,r){Object.defineProperty(r,"__esModule",{value:!0}),r.tailRec=void 0,r.tailRec=function(n,r){for(var t=r(n);"Left"===t._tag;)t=r(t.left);return t.right}})),$n=O((function(n,r){var t=U&&U.__createBinding||(Object.create?function(n,r,t,u){void 0===u&&(u=t),Object.defineProperty(n,u,{enumerable:!0,get:function(){return r[t]}})}:function(n,r,t,u){void 0===u&&(u=t),n[u]=r[t]}),u=U&&U.__setModuleDefault||(Object.create?function(n,r){Object.defineProperty(n,"default",{enumerable:!0,value:r})}:function(n,r){n.default=r}),e=U&&U.__importStar||function(n){if(n&&n.__esModule)return n;var r={};if(null!=n)for(var e in n)"default"!==e&&Object.prototype.hasOwnProperty.call(n,e)&&t(r,n,e);return u(r,n),r};Object.defineProperty(r,"__esModule",{value:!0}),r.fold=r.match=r.foldW=r.matchW=r.isRight=r.isLeft=r.fromOption=r.fromPredicate=r.FromEither=r.MonadThrow=r.throwError=r.ChainRec=r.Extend=r.extend=r.Alt=r.alt=r.altW=r.Bifunctor=r.mapLeft=r.bimap=r.Traversable=r.sequence=r.traverse=r.Foldable=r.reduceRight=r.foldMap=r.reduce=r.Monad=r.Chain=r.chain=r.chainW=r.Applicative=r.Apply=r.ap=r.apW=r.Pointed=r.of=r.Functor=r.map=r.getAltValidation=r.getApplicativeValidation=r.getWitherable=r.getFilterable=r.getCompactable=r.getSemigroup=r.getEq=r.getShow=r.URI=r.right=r.left=void 0,r.getValidation=r.getValidationMonoid=r.getValidationSemigroup=r.getApplyMonoid=r.getApplySemigroup=r.either=r.stringifyJSON=r.parseJSON=r.sequenceArray=r.traverseArray=r.traverseArrayWithIndex=r.traverseReadonlyArrayWithIndex=r.traverseReadonlyNonEmptyArrayWithIndex=r.ApT=r.apSW=r.apS=r.bindW=r.bind=r.bindTo=r.Do=r.exists=r.elem=r.toError=r.toUnion=r.chainNullableK=r.fromNullableK=r.tryCatchK=r.tryCatch=r.fromNullable=r.orElse=r.orElseW=r.swap=r.filterOrElseW=r.filterOrElse=r.chainOptionK=r.fromOptionK=r.duplicate=r.flatten=r.flattenW=r.chainFirstW=r.chainFirst=r.apSecond=r.apFirst=r.flap=r.getOrElse=r.getOrElseW=void 0;var o=e(w);r.left=o.left,r.right=o.right;var i=function(n,t){return M.pipe(n,r.map(t))},c=function(n,t){return M.pipe(n,r.ap(t))},f=function(n,t){return M.pipe(n,r.chain(t))},a=function(n,t,u){return M.pipe(n,r.reduce(t,u))},v=function(n){return function(t,u){var e=r.foldMap(n);return M.pipe(t,e(u))}},d=function(n,t,u){return M.pipe(n,r.reduceRight(t,u))},p=function(n){var t=r.traverse(n);return function(n,r){return M.pipe(n,t(r))}},s=function(n,t,u){return M.pipe(n,r.bimap(t,u))},l=function(n,t){return M.pipe(n,r.mapLeft(t))},m=function(n,t){return M.pipe(n,r.alt(t))},h=function(n,t){return M.pipe(n,r.extend(t))},I=function(n,t){return Jn.tailRec(t(n),(function(n){return r.isLeft(n)?r.right(r.left(n.left)):r.isLeft(n.right)?r.left(t(n.right.left)):r.right(r.right(n.right.right))}))};r.URI="Either",r.getShow=function(n,t){return{show:function(u){return r.isLeft(u)?"left("+n.show(u.left)+")":"right("+t.show(u.right)+")"}}},r.getEq=function(n,t){return{equals:function(u,e){return u===e||(r.isLeft(u)?r.isLeft(e)&&n.equals(u.left,e.left):r.isRight(e)&&t.equals(u.right,e.right))}}},r.getSemigroup=function(n){return{concat:function(t,u){return r.isLeft(u)?t:r.isLeft(t)?u:r.right(n.concat(t.right,u.right))}}},r.getCompactable=function(n){var t=r.left(n.empty);return{URI:r.URI,_E:void 0,compact:function(n){return r.isLeft(n)?n:"None"===n.right._tag?t:r.right(n.right.value)},separate:function(n){return r.isLeft(n)?A.separated(n,n):r.isLeft(n.right)?A.separated(r.right(n.right.left),t):A.separated(t,r.right(n.right.right))}}},r.getFilterable=function(n){var t=r.left(n.empty),u=r.getCompactable(n);return{URI:r.URI,_E:void 0,map:i,compact:u.compact,separate:u.separate,filter:function(n,u){return r.isLeft(n)||u(n.right)?n:t},filterMap:function(n,u){if(r.isLeft(n))return n;var e=u(n.right);return"None"===e._tag?t:r.right(e.value)},partition:function(n,u){return r.isLeft(n)?A.separated(n,n):u(n.right)?A.separated(t,r.right(n.right)):A.separated(r.right(n.right),t)},partitionMap:function(n,u){if(r.isLeft(n))return A.separated(n,n);var e=u(n.right);return r.isLeft(e)?A.separated(r.right(e.left),t):A.separated(t,r.right(e.right))}}},r.getWitherable=function(n){var t=r.getFilterable(n),u=r.getCompactable(n);return{URI:r.URI,_E:void 0,map:i,compact:t.compact,separate:t.separate,filter:t.filter,filterMap:t.filterMap,partition:t.partition,partitionMap:t.partitionMap,traverse:p,sequence:r.sequence,reduce:a,foldMap:v,reduceRight:d,wither:z.witherDefault(r.Traversable,u),wilt:z.wiltDefault(r.Traversable,u)}},r.getApplicativeValidation=function(n){return{URI:r.URI,_E:void 0,map:i,ap:function(t,u){return r.isLeft(t)?r.isLeft(u)?r.left(n.concat(t.left,u.left)):t:r.isLeft(u)?u:r.right(t.right(u.right))},of:r.of}},r.getAltValidation=function(n){return{URI:r.URI,_E:void 0,map:i,alt:function(t,u){if(r.isRight(t))return t;var e=u();return r.isLeft(e)?r.left(n.concat(t.left,e.left)):e}}},r.map=function(n){return function(t){return r.isLeft(t)?t:r.right(n(t.right))}},r.Functor={URI:r.URI,map:i},r.of=r.right,r.Pointed={URI:r.URI,of:r.of},r.apW=function(n){return function(t){return r.isLeft(t)?t:r.isLeft(n)?n:r.right(t.right(n.right))}},r.ap=r.apW,r.Apply={URI:r.URI,map:i,ap:c},r.Applicative={URI:r.URI,map:i,ap:c,of:r.of},r.chainW=function(n){return function(t){return r.isLeft(t)?t:n(t.right)}},r.chain=r.chainW,r.Chain={URI:r.URI,map:i,ap:c,chain:f},r.Monad={URI:r.URI,map:i,ap:c,of:r.of,chain:f},r.reduce=function(n,t){return function(u){return r.isLeft(u)?n:t(n,u.right)}},r.foldMap=function(n){return function(t){return function(u){return r.isLeft(u)?n.empty:t(u.right)}}},r.reduceRight=function(n,t){return function(u){return r.isLeft(u)?n:t(u.right,n)}},r.Foldable={URI:r.URI,reduce:a,foldMap:v,reduceRight:d},r.traverse=function(n){return function(t){return function(u){return r.isLeft(u)?n.of(r.left(u.left)):n.map(t(u.right),r.right)}}},r.sequence=function(n){return function(t){return r.isLeft(t)?n.of(r.left(t.left)):n.map(t.right,r.right)}},r.Traversable={URI:r.URI,map:i,reduce:a,foldMap:v,reduceRight:d,traverse:p,sequence:r.sequence},r.bimap=function(n,t){return function(u){return r.isLeft(u)?r.left(n(u.left)):r.right(t(u.right))}},r.mapLeft=function(n){return function(t){return r.isLeft(t)?r.left(n(t.left)):t}},r.Bifunctor={URI:r.URI,bimap:s,mapLeft:l},r.altW=function(n){return function(t){return r.isLeft(t)?n():t}},r.alt=r.altW,r.Alt={URI:r.URI,map:i,alt:m},r.extend=function(n){return function(t){return r.isLeft(t)?t:r.right(n(t))}},r.Extend={URI:r.URI,map:i,extend:h},r.ChainRec={URI:r.URI,map:i,ap:c,chain:f,chainRec:I},r.throwError=r.left,r.MonadThrow={URI:r.URI,map:i,ap:c,of:r.of,chain:f,throwError:r.throwError},r.FromEither={URI:r.URI,fromEither:M.identity},r.fromPredicate=x.fromPredicate(r.FromEither),r.fromOption=x.fromOption(r.FromEither),r.isLeft=o.isLeft,r.isRight=o.isRight,r.matchW=function(n,t){return function(u){return r.isLeft(u)?n(u.left):t(u.right)}},r.foldW=r.matchW,r.match=r.matchW,r.fold=r.match,r.getOrElseW=function(n){return function(t){return r.isLeft(t)?n(t.left):t.right}},r.getOrElse=r.getOrElseW,r.flap=y.flap(r.Functor),r.apFirst=g.apFirst(r.Apply),r.apSecond=g.apSecond(r.Apply),r.chainFirst=j.chainFirst(r.Chain),r.chainFirstW=r.chainFirst,r.flattenW=r.chainW(M.identity),r.flatten=r.flattenW,r.duplicate=r.extend(M.identity),r.fromOptionK=x.fromOptionK(r.FromEither),r.chainOptionK=x.chainOptionK(r.FromEither,r.Chain),r.filterOrElse=x.filterOrElse(r.FromEither,r.Chain),r.filterOrElseW=r.filterOrElse,r.swap=function(n){return r.isLeft(n)?r.right(n.left):r.left(n.right)},r.orElseW=function(n){return function(t){return r.isLeft(t)?n(t.left):t}},r.orElse=r.orElseW,r.fromNullable=function(n){return function(t){return null==t?r.left(n):r.right(t)}},r.tryCatch=function(n,t){try{return r.right(n())}catch(n){return r.left(t(n))}},r.tryCatchK=function(n,t){return function(){for(var u=[],e=0;e<arguments.length;e++)u[e]=arguments[e];return r.tryCatch((function(){return n.apply(void 0,u)}),t)}},r.fromNullableK=function(n){var t=r.fromNullable(n);return function(n){return M.flow(n,t)}},r.chainNullableK=function(n){var t=r.fromNullableK(n);return function(n){return r.chain(t(n))}},r.toUnion=r.foldW(M.identity,M.identity),r.toError=function(n){return n instanceof Error?n:new Error(String(n))},r.elem=function n(t){return function(u,e){if(void 0===e){var o=n(t);return function(n){return o(u,n)}}return!r.isLeft(e)&&t.equals(u,e.right)}},r.exists=function(n){return function(t){return!r.isLeft(t)&&n(t.right)}},r.Do=r.of(o.emptyRecord),r.bindTo=y.bindTo(r.Functor),r.bind=j.bind(r.Chain),r.bindW=r.bind,r.apS=g.apS(r.Apply),r.apSW=r.apS,r.ApT=r.of(o.emptyReadonlyArray),r.traverseReadonlyNonEmptyArrayWithIndex=function(n){return function(t){var u=n(0,o.head(t));if(r.isLeft(u))return u;for(var e=[u.right],i=1;i<t.length;i++){var c=n(i,t[i]);if(r.isLeft(c))return c;e.push(c.right)}return r.right(e)}},r.traverseReadonlyArrayWithIndex=function(n){var t=r.traverseReadonlyNonEmptyArrayWithIndex(n);return function(n){return o.isNonEmpty(n)?t(n):r.ApT}},r.traverseArrayWithIndex=r.traverseReadonlyArrayWithIndex,r.traverseArray=function(n){return r.traverseReadonlyArrayWithIndex((function(r,t){return n(t)}))},r.sequenceArray=r.traverseArray(M.identity),r.parseJSON=function(n,t){return r.tryCatch((function(){return JSON.parse(n)}),t)},r.stringifyJSON=function(n,t){return r.tryCatch((function(){var r=JSON.stringify(n);if("string"!=typeof r)throw new Error("Converting unsupported structure to JSON");return r}),t)},r.either={URI:r.URI,map:i,of:r.of,ap:c,chain:f,reduce:a,foldMap:v,reduceRight:d,traverse:p,sequence:r.sequence,bimap:s,mapLeft:l,alt:m,extend:h,chainRec:I,throwError:r.throwError},r.getApplySemigroup=g.getApplySemigroup(r.Apply),r.getApplyMonoid=S.getApplicativeMonoid(r.Applicative),r.getValidationSemigroup=function(n,t){return g.getApplySemigroup(r.getApplicativeValidation(n))(t)},r.getValidationMonoid=function(n,t){return S.getApplicativeMonoid(r.getApplicativeValidation(n))(t)},r.getValidation=function(n){var t=r.getApplicativeValidation(n).ap,u=r.getAltValidation(n).alt;return{URI:r.URI,_E:void 0,map:i,of:r.of,chain:f,bimap:s,mapLeft:l,reduce:a,foldMap:v,reduceRight:d,extend:h,traverse:p,sequence:r.sequence,chainRec:I,throwError:r.throwError,ap:t,alt:u}}})),Gn=O((function(n,r){var t=U&&U.__createBinding||(Object.create?function(n,r,t,u){void 0===u&&(u=t),Object.defineProperty(n,u,{enumerable:!0,get:function(){return r[t]}})}:function(n,r,t,u){void 0===u&&(u=t),n[u]=r[t]}),u=U&&U.__setModuleDefault||(Object.create?function(n,r){Object.defineProperty(n,"default",{enumerable:!0,value:r})}:function(n,r){n.default=r}),e=U&&U.__importStar||function(n){if(n&&n.__esModule)return n;var r={};if(null!=n)for(var e in n)"default"!==e&&Object.prototype.hasOwnProperty.call(n,e)&&t(r,n,e);return u(r,n),r};Object.defineProperty(r,"__esModule",{value:!0}),r.getEitherM=r.toUnion=r.swap=r.orLeft=r.orElseFirst=r.orElse=r.getOrElse=r.matchE=r.match=r.altValidation=r.mapLeft=r.bimap=r.alt=r.chain=r.ap=r.map=r.leftF=r.rightF=r.left=r.right=void 0;var o=e($n);function i(n){return M.flow(o.right,n.of)}function c(n){return M.flow(o.left,n.of)}function f(n){return function(r){return n.map(r,o.right)}}function a(n){return function(r){return n.map(r,o.left)}}function v(n){return y.map(n,o.Functor)}function d(n){return g.ap(n,o.Apply)}function p(n){return function(r){return function(t){return n.chain(t,(function(t){return o.isLeft(t)?n.of(t):r(t.right)}))}}}function s(n){return function(r){return function(t){return n.chain(t,(function(t){return o.isLeft(t)?r():n.of(t)}))}}}function l(n){return function(r,t){return function(u){return n.map(u,o.bimap(r,t))}}}function m(n){return function(r){return function(t){return n.map(t,o.mapLeft(r))}}}function h(n){return function(r,t){return function(u){return n.chain(u,o.match(r,t))}}}function I(n){return function(r){return function(t){return n.chain(t,o.match(r,n.of))}}}function R(n){return function(r){return function(t){return n.chain(t,(function(t){return o.isLeft(t)?r(t.left):n.of(t)}))}}}function b(n){return function(r){return n.map(r,o.swap)}}r.right=i,r.left=c,r.rightF=f,r.leftF=a,r.map=v,r.ap=d,r.chain=p,r.alt=s,r.bimap=l,r.mapLeft=m,r.altValidation=function(n,r){return function(t){return function(u){return n.chain(u,o.match((function(u){return n.map(t(),o.mapLeft((function(n){return r.concat(u,n)})))}),i(n)))}}},r.match=function(n){return function(r,t){return function(u){return n.map(u,o.match(r,t))}}},r.matchE=h,r.getOrElse=I,r.orElse=R,r.orElseFirst=function(n){var r=R(n);return function(t){return r((function(r){return n.map(t(r),(function(n){return o.isLeft(n)?n:o.left(r)}))}))}},r.orLeft=function(n){return function(r){return function(t){return n.chain(t,o.match((function(t){return n.map(r(t),o.left)}),(function(r){return n.of(o.right(r))})))}}},r.swap=b,r.toUnion=function(n){return function(r){return n.map(r,o.toUnion)}},r.getEitherM=function(n){var r=d(n),t=v(n),u=p(n),e=s(n),o=l(n),U=m(n),O=h(n),g=I(n),j=R(n);return{map:function(n,r){return M.pipe(n,t(r))},ap:function(n,t){return M.pipe(n,r(t))},of:i(n),chain:function(n,r){return M.pipe(n,u(r))},alt:function(n,r){return M.pipe(n,e(r))},bimap:function(n,r,t){return M.pipe(n,o(r,t))},mapLeft:function(n,r){return M.pipe(n,U(r))},fold:function(n,r,t){return M.pipe(n,O(r,t))},getOrElse:function(n,r){return M.pipe(n,g(r))},orElse:function(n,r){return M.pipe(n,j(r))},swap:b(n),rightM:f(n),leftM:a(n),left:c(n)}}})),Bn=O((function(n,r){function t(n,r){return function(t){return function(u){return n.map(u,(function(n){return r.filter(n,t)}))}}}function u(n,r){return function(t){return function(u){return n.map(u,(function(n){return r.filterMap(n,t)}))}}}function e(n,r){var u=t(n,r);return function(n){var r=u(D.not(n)),t=u(n);return function(n){return A.separated(r(n),t(n))}}}function o(n,r){var t=u(n,r);return function(n){return function(r){return A.separated(M.pipe(r,t((function(r){return F.getLeft(n(r))}))),M.pipe(r,t((function(r){return F.getRight(n(r))}))))}}}Object.defineProperty(r,"__esModule",{value:!0}),r.getFilterableComposition=r.partitionMap=r.partition=r.filterMap=r.filter=void 0,r.filter=t,r.filterMap=u,r.partition=e,r.partitionMap=o,r.getFilterableComposition=function(n,r){var i=y.getFunctorComposition(n,r).map,c=Hn.compact(n,r),f=Hn.separate(n,r,r),a=t(n,r),v=u(n,r),d=e(n,r),p=o(n,r);return{map:i,compact:c,separate:f,filter:function(n,r){return M.pipe(n,a(r))},filterMap:function(n,r){return M.pipe(n,v(r))},partition:function(n,r){return M.pipe(n,d(r))},partitionMap:function(n,r){return M.pipe(n,p(r))}}}})),Kn=O((function(n,r){Object.defineProperty(r,"__esModule",{value:!0}),r.chainFirstIOK=r.chainIOK=r.fromIOK=void 0,r.fromIOK=function(n){return function(r){return M.flow(r,n.fromIO)}},r.chainIOK=function(n,r){return function(t){var u=M.flow(t,n.fromIO);return function(n){return r.chain(n,u)}}},r.chainFirstIOK=function(n,r){var t=j.chainFirst(r);return function(r){return t(M.flow(r,n.fromIO))}}})),Qn=O((function(n,r){Object.defineProperty(r,"__esModule",{value:!0}),r.chainFirstTaskK=r.chainTaskK=r.fromTaskK=void 0,r.fromTaskK=function(n){return function(r){return M.flow(r,n.fromTask)}},r.chainTaskK=function(n,r){return function(t){var u=M.flow(t,n.fromTask);return function(n){return r.chain(n,u)}}},r.chainFirstTaskK=function(n,r){var t=j.chainFirst(r);return function(r){return t(M.flow(r,n.fromTask))}}})),Vn=O((function(n,r){var t=U&&U.__createBinding||(Object.create?function(n,r,t,u){void 0===u&&(u=t),Object.defineProperty(n,u,{enumerable:!0,get:function(){return r[t]}})}:function(n,r,t,u){void 0===u&&(u=t),n[u]=r[t]}),u=U&&U.__setModuleDefault||(Object.create?function(n,r){Object.defineProperty(n,"default",{enumerable:!0,value:r})}:function(n,r){n.default=r}),e=U&&U.__importStar||function(n){if(n&&n.__esModule)return n;var r={};if(null!=n)for(var e in n)"default"!==e&&Object.prototype.hasOwnProperty.call(n,e)&&t(r,n,e);return u(r,n),r};Object.defineProperty(r,"__esModule",{value:!0}),r.getMonoid=r.getSemigroup=r.taskSeq=r.task=r.sequenceSeqArray=r.traverseSeqArray=r.traverseSeqArrayWithIndex=r.sequenceArray=r.traverseArray=r.traverseArrayWithIndex=r.traverseReadonlyArrayWithIndexSeq=r.traverseReadonlyNonEmptyArrayWithIndexSeq=r.traverseReadonlyArrayWithIndex=r.traverseReadonlyNonEmptyArrayWithIndex=r.ApT=r.apS=r.bind=r.bindTo=r.Do=r.never=r.FromTask=r.chainFirstIOK=r.chainIOK=r.fromIOK=r.FromIO=r.chainFirst=r.MonadTask=r.fromTask=r.MonadIO=r.Monad=r.Chain=r.ApplicativeSeq=r.ApplySeq=r.ApplicativePar=r.apSecond=r.apFirst=r.ApplyPar=r.Pointed=r.flap=r.Functor=r.getRaceMonoid=r.URI=r.flatten=r.chain=r.of=r.ap=r.map=r.delay=r.fromIO=void 0;var o=e(w);r.fromIO=function(n){return function(){return Promise.resolve().then(n)}},r.delay=function(n){return function(r){return function(){return new Promise((function(t){setTimeout((function(){Promise.resolve().then(r).then(t)}),n)}))}}};var i=function(n,t){return M.pipe(n,r.map(t))},c=function(n,t){return M.pipe(n,r.ap(t))},f=function(n,t){return M.pipe(n,r.chain((function(n){return M.pipe(t,r.map(n))})))},a=function(n,t){return M.pipe(n,r.chain(t))};r.map=function(n){return function(r){return function(){return Promise.resolve().then(r).then(n)}}},r.ap=function(n){return function(r){return function(){return Promise.all([Promise.resolve().then(r),Promise.resolve().then(n)]).then((function(n){return(0,n[0])(n[1])}))}}},r.of=function(n){return function(){return Promise.resolve(n)}},r.chain=function(n){return function(r){return function(){return Promise.resolve().then(r).then((function(r){return n(r)()}))}}},r.flatten=r.chain(M.identity),r.URI="Task",r.getRaceMonoid=function(){return{concat:function(n,r){return function(){return Promise.race([Promise.resolve().then(n),Promise.resolve().then(r)])}},empty:r.never}},r.Functor={URI:r.URI,map:i},r.flap=y.flap(r.Functor),r.Pointed={URI:r.URI,of:r.of},r.ApplyPar={URI:r.URI,map:i,ap:c},r.apFirst=g.apFirst(r.ApplyPar),r.apSecond=g.apSecond(r.ApplyPar),r.ApplicativePar={URI:r.URI,map:i,ap:c,of:r.of},r.ApplySeq={URI:r.URI,map:i,ap:f},r.ApplicativeSeq={URI:r.URI,map:i,ap:f,of:r.of},r.Chain={URI:r.URI,map:i,ap:c,chain:a},r.Monad={URI:r.URI,map:i,of:r.of,ap:c,chain:a},r.MonadIO={URI:r.URI,map:i,of:r.of,ap:c,chain:a,fromIO:r.fromIO},r.fromTask=M.identity,r.MonadTask={URI:r.URI,map:i,of:r.of,ap:c,chain:a,fromIO:r.fromIO,fromTask:r.fromTask},r.chainFirst=j.chainFirst(r.Chain),r.FromIO={URI:r.URI,fromIO:r.fromIO},r.fromIOK=Kn.fromIOK(r.FromIO),r.chainIOK=Kn.chainIOK(r.FromIO,r.Chain),r.chainFirstIOK=Kn.chainFirstIOK(r.FromIO,r.Chain),r.FromTask={URI:r.URI,fromIO:r.fromIO,fromTask:r.fromTask},r.never=function(){return new Promise((function(){}))},r.Do=r.of(o.emptyRecord),r.bindTo=y.bindTo(r.Functor),r.bind=j.bind(r.Chain),r.apS=g.apS(r.ApplyPar),r.ApT=r.of(o.emptyReadonlyArray),r.traverseReadonlyNonEmptyArrayWithIndex=function(n){return function(r){return function(){return Promise.all(r.map((function(r,t){return Promise.resolve().then((function(){return n(t,r)()}))})))}}},r.traverseReadonlyArrayWithIndex=function(n){var t=r.traverseReadonlyNonEmptyArrayWithIndex(n);return function(n){return o.isNonEmpty(n)?t(n):r.ApT}},r.traverseReadonlyNonEmptyArrayWithIndexSeq=function(n){return function(r){return function(){return o.tail(r).reduce((function(r,t,u){return r.then((function(r){return Promise.resolve().then(n(u+1,t)).then((function(n){return r.push(n),r}))}))}),Promise.resolve().then(n(0,o.head(r))).then(o.singleton))}}},r.traverseReadonlyArrayWithIndexSeq=function(n){var t=r.traverseReadonlyNonEmptyArrayWithIndexSeq(n);return function(n){return o.isNonEmpty(n)?t(n):r.ApT}},r.traverseArrayWithIndex=r.traverseReadonlyArrayWithIndex,r.traverseArray=function(n){return r.traverseReadonlyArrayWithIndex((function(r,t){return n(t)}))},r.sequenceArray=r.traverseArray(M.identity),r.traverseSeqArrayWithIndex=r.traverseReadonlyArrayWithIndexSeq,r.traverseSeqArray=function(n){return r.traverseReadonlyArrayWithIndexSeq((function(r,t){return n(t)}))},r.sequenceSeqArray=r.traverseSeqArray(M.identity),r.task={URI:r.URI,map:i,of:r.of,ap:c,chain:a,fromIO:r.fromIO,fromTask:r.fromTask},r.taskSeq={URI:r.URI,map:i,of:r.of,ap:f,chain:a,fromIO:r.fromIO,fromTask:r.fromTask},r.getSemigroup=g.getApplySemigroup(r.ApplySeq),r.getMonoid=S.getApplicativeMonoid(r.ApplicativeSeq)})),Xn=O((function(n,r){var t=U&&U.__createBinding||(Object.create?function(n,r,t,u){void 0===u&&(u=t),Object.defineProperty(n,u,{enumerable:!0,get:function(){return r[t]}})}:function(n,r,t,u){void 0===u&&(u=t),n[u]=r[t]}),u=U&&U.__setModuleDefault||(Object.create?function(n,r){Object.defineProperty(n,"default",{enumerable:!0,value:r})}:function(n,r){n.default=r}),e=U&&U.__importStar||function(n){if(n&&n.__esModule)return n;var r={};if(null!=n)for(var e in n)"default"!==e&&Object.prototype.hasOwnProperty.call(n,e)&&t(r,n,e);return u(r,n),r};Object.defineProperty(r,"__esModule",{value:!0}),r.getCompactable=r.getAltTaskValidation=r.getApplicativeTaskValidation=r.URI=r.throwError=r.of=r.altW=r.alt=r.flatten=r.flattenW=r.chainW=r.chain=r.apW=r.ap=r.mapLeft=r.bimap=r.map=r.chainIOEitherK=r.chainIOEitherKW=r.fromIOEitherK=r.chainTaskOptionK=r.fromTaskOptionK=r.swap=r.orLeft=r.orElseFirstW=r.orElseFirst=r.orElseW=r.orElse=r.toUnion=r.tryCatchK=r.tryCatch=r.getOrElseW=r.getOrElse=r.foldW=r.matchEW=r.fold=r.matchE=r.matchW=r.match=r.fromTaskOption=r.fromIOEither=r.fromEither=r.fromTask=r.fromIO=r.leftIO=r.rightIO=r.leftTask=r.rightTask=r.right=r.left=void 0,r.traverseReadonlyArrayWithIndexSeq=r.traverseReadonlyNonEmptyArrayWithIndexSeq=r.traverseReadonlyArrayWithIndex=r.traverseReadonlyNonEmptyArrayWithIndex=r.ApT=r.apSW=r.apS=r.bindW=r.bind=r.bindTo=r.Do=r.bracket=r.taskify=r.chainFirstTaskK=r.chainTaskK=r.fromTaskK=r.FromTask=r.chainFirstIOK=r.chainIOK=r.fromIOK=r.FromIO=r.fromEitherK=r.filterOrElseW=r.filterOrElse=r.fromPredicate=r.chainEitherKW=r.chainEitherK=r.chainOptionK=r.fromOptionK=r.fromOption=r.FromEither=r.Alt=r.Bifunctor=r.chainFirstW=r.chainFirst=r.MonadThrow=r.MonadTask=r.MonadIO=r.Monad=r.Chain=r.ApplicativeSeq=r.ApplySeq=r.ApplicativePar=r.apSecond=r.apFirst=r.ApplyPar=r.Pointed=r.flap=r.Functor=r.getFilterable=void 0,r.getTaskValidation=r.getSemigroup=r.getApplyMonoid=r.getApplySemigroup=r.taskEitherSeq=r.taskEither=r.sequenceSeqArray=r.traverseSeqArray=r.traverseSeqArrayWithIndex=r.sequenceArray=r.traverseArray=r.traverseArrayWithIndex=void 0;var o=e($n),i=e(Gn),c=e(w),f=e(Vn);r.left=i.left(f.Pointed),r.right=i.right(f.Pointed),r.rightTask=i.rightF(f.Functor),r.leftTask=i.leftF(f.Functor),r.rightIO=M.flow(f.fromIO,r.rightTask),r.leftIO=M.flow(f.fromIO,r.leftTask),r.fromIO=r.rightIO,r.fromTask=r.rightTask,r.fromEither=f.of,r.fromIOEither=f.fromIO,r.fromTaskOption=function(n){return f.map(o.fromOption(n))},r.match=i.match(f.Functor),r.matchW=r.match,r.matchE=i.matchE(f.Monad),r.fold=r.matchE,r.matchEW=r.matchE,r.foldW=r.matchEW,r.getOrElse=i.getOrElse(f.Monad),r.getOrElseW=r.getOrElse,r.tryCatch=function(n,r){return function(){return n().then(c.right,(function(n){return c.left(r(n))}))}},r.tryCatchK=function(n,t){return function(){for(var u=[],e=0;e<arguments.length;e++)u[e]=arguments[e];return r.tryCatch((function(){return n.apply(void 0,u)}),t)}},r.toUnion=i.toUnion(f.Functor),r.orElse=i.orElse(f.Monad),r.orElseW=r.orElse,r.orElseFirst=i.orElseFirst(f.Monad),r.orElseFirstW=r.orElseFirst,r.orLeft=i.orLeft(f.Monad),r.swap=i.swap(f.Functor),r.fromTaskOptionK=function(n){var t=r.fromTaskOption(n);return function(n){return M.flow(n,t)}},r.chainTaskOptionK=function(n){return M.flow(r.fromTaskOptionK(n),r.chain)},r.fromIOEitherK=function(n){return M.flow(n,r.fromIOEither)},r.chainIOEitherKW=function(n){return r.chainW(r.fromIOEitherK(n))},r.chainIOEitherK=r.chainIOEitherKW;var a=function(n,t){return M.pipe(n,r.map(t))},v=function(n,t){return M.pipe(n,r.ap(t))},d=function(n,t){return M.pipe(n,r.chain((function(n){return M.pipe(t,r.map(n))})))},p=function(n,t){return M.pipe(n,r.chain(t))},s=function(n,t,u){return M.pipe(n,r.bimap(t,u))},l=function(n,t){return M.pipe(n,r.mapLeft(t))},m=function(n,t){return M.pipe(n,r.alt(t))};function h(n,t){var u=g.ap(n,o.getApplicativeValidation(t));return{URI:r.URI,_E:void 0,map:a,ap:function(n,r){return M.pipe(n,u(r))},of:r.of}}function I(n){var t=i.altValidation(f.Monad,n);return{URI:r.URI,_E:void 0,map:a,alt:function(n,r){return M.pipe(n,t(r))}}}r.map=i.map(f.Functor),r.bimap=i.bimap(f.Functor),r.mapLeft=i.mapLeft(f.Functor),r.ap=i.ap(f.ApplyPar),r.apW=r.ap,r.chain=i.chain(f.Monad),r.chainW=r.chain,r.flattenW=r.chainW(M.identity),r.flatten=r.flattenW,r.alt=i.alt(f.Monad),r.altW=r.alt,r.of=r.right,r.throwError=r.left,r.URI="TaskEither",r.getApplicativeTaskValidation=h,r.getAltTaskValidation=I,r.getCompactable=function(n){var t=o.getCompactable(n);return{URI:r.URI,_E:void 0,compact:Hn.compact(f.Functor,t),separate:Hn.separate(f.Functor,t,o.Functor)}},r.getFilterable=function(n){var t=o.getFilterable(n),u=r.getCompactable(n),e=Bn.filter(f.Functor,t),i=Bn.filterMap(f.Functor,t),c=Bn.partition(f.Functor,t),v=Bn.partitionMap(f.Functor,t);return{URI:r.URI,_E:void 0,map:a,compact:u.compact,separate:u.separate,filter:function(n,r){return M.pipe(n,e(r))},filterMap:function(n,r){return M.pipe(n,i(r))},partition:function(n,r){return M.pipe(n,c(r))},partitionMap:function(n,r){return M.pipe(n,v(r))}}},r.Functor={URI:r.URI,map:a},r.flap=y.flap(r.Functor),r.Pointed={URI:r.URI,of:r.of},r.ApplyPar={URI:r.URI,map:a,ap:v},r.apFirst=g.apFirst(r.ApplyPar),r.apSecond=g.apSecond(r.ApplyPar),r.ApplicativePar={URI:r.URI,map:a,ap:v,of:r.of},r.ApplySeq={URI:r.URI,map:a,ap:d},r.ApplicativeSeq={URI:r.URI,map:a,ap:d,of:r.of},r.Chain={URI:r.URI,map:a,ap:v,chain:p},r.Monad={URI:r.URI,map:a,ap:v,chain:p,of:r.of},r.MonadIO={URI:r.URI,map:a,ap:v,chain:p,of:r.of,fromIO:r.fromIO},r.MonadTask={URI:r.URI,map:a,ap:v,chain:p,of:r.of,fromIO:r.fromIO,fromTask:r.fromTask},r.MonadThrow={URI:r.URI,map:a,ap:v,chain:p,of:r.of,throwError:r.throwError},r.chainFirst=j.chainFirst(r.Chain),r.chainFirstW=r.chainFirst,r.Bifunctor={URI:r.URI,bimap:s,mapLeft:l},r.Alt={URI:r.URI,map:a,alt:m},r.FromEither={URI:r.URI,fromEither:r.fromEither},r.fromOption=x.fromOption(r.FromEither),r.fromOptionK=x.fromOptionK(r.FromEither),r.chainOptionK=x.chainOptionK(r.FromEither,r.Chain),r.chainEitherK=x.chainEitherK(r.FromEither,r.Chain),r.chainEitherKW=r.chainEitherK,r.fromPredicate=x.fromPredicate(r.FromEither),r.filterOrElse=x.filterOrElse(r.FromEither,r.Chain),r.filterOrElseW=r.filterOrElse,r.fromEitherK=x.fromEitherK(r.FromEither),r.FromIO={URI:r.URI,fromIO:r.fromIO},r.fromIOK=Kn.fromIOK(r.FromIO),r.chainIOK=Kn.chainIOK(r.FromIO,r.Chain),r.chainFirstIOK=Kn.chainFirstIOK(r.FromIO,r.Chain),r.FromTask={URI:r.URI,fromIO:r.fromIO,fromTask:r.fromTask},r.fromTaskK=Qn.fromTaskK(r.FromTask),r.chainTaskK=Qn.chainTaskK(r.FromTask,r.Chain),r.chainFirstTaskK=Qn.chainFirstTaskK(r.FromTask,r.Chain),r.taskify=function(n){return function(){var r=Array.prototype.slice.call(arguments);return function(){return new Promise((function(t){n.apply(null,r.concat((function(n,r){return t(null!=n?c.left(n):c.right(r))})))}))}}},r.bracket=function(n,t,u){return M.pipe(n,r.chain((function(n){return M.pipe(t(n),f.chain((function(t){return M.pipe(u(n,t),r.chain((function(){return f.of(t)})))})))})))},r.Do=r.of(c.emptyRecord),r.bindTo=y.bindTo(r.Functor),r.bind=j.bind(r.Chain),r.bindW=r.bind,r.apS=g.apS(r.ApplyPar),r.apSW=r.apS,r.ApT=r.of(c.emptyReadonlyArray),r.traverseReadonlyNonEmptyArrayWithIndex=function(n){return M.flow(f.traverseReadonlyNonEmptyArrayWithIndex(n),f.map(o.traverseReadonlyNonEmptyArrayWithIndex(M.SK)))},r.traverseReadonlyArrayWithIndex=function(n){var t=r.traverseReadonlyNonEmptyArrayWithIndex(n);return function(n){return c.isNonEmpty(n)?t(n):r.ApT}},r.traverseReadonlyNonEmptyArrayWithIndexSeq=function(n){return function(r){return function(){return c.tail(r).reduce((function(r,t,u){return r.then((function(e){return c.isLeft(e)?r:n(u+1,t)().then((function(n){return c.isLeft(n)?n:(e.right.push(n.right),e)}))}))}),n(0,c.head(r))().then(o.map(c.singleton)))}}},r.traverseReadonlyArrayWithIndexSeq=function(n){var t=r.traverseReadonlyNonEmptyArrayWithIndexSeq(n);return function(n){return c.isNonEmpty(n)?t(n):r.ApT}},r.traverseArrayWithIndex=r.traverseReadonlyArrayWithIndex,r.traverseArray=function(n){return r.traverseReadonlyArrayWithIndex((function(r,t){return n(t)}))},r.sequenceArray=r.traverseArray(M.identity),r.traverseSeqArrayWithIndex=r.traverseReadonlyArrayWithIndexSeq,r.traverseSeqArray=function(n){return r.traverseReadonlyArrayWithIndexSeq((function(r,t){return n(t)}))},r.sequenceSeqArray=r.traverseSeqArray(M.identity),r.taskEither={URI:r.URI,bimap:s,mapLeft:l,map:a,of:r.of,ap:v,chain:p,alt:m,fromIO:r.fromIO,fromTask:r.fromTask,throwError:r.throwError},r.taskEitherSeq={URI:r.URI,bimap:s,mapLeft:l,map:a,of:r.of,ap:d,chain:p,alt:m,fromIO:r.fromIO,fromTask:r.fromTask,throwError:r.throwError},r.getApplySemigroup=g.getApplySemigroup(r.ApplySeq),r.getApplyMonoid=S.getApplicativeMonoid(r.ApplicativeSeq),r.getSemigroup=function(n){return g.getApplySemigroup(f.ApplySeq)(o.getSemigroup(n))},r.getTaskValidation=function(n){var t=h(f.ApplicativePar,n),u=I(n);return{URI:r.URI,_E:void 0,map:a,ap:t.ap,of:r.of,chain:p,bimap:s,mapLeft:l,alt:u.alt,fromIO:r.fromIO,fromTask:r.fromTask,throwError:r.throwError}}}));const Yn=n=>({kind:"server",inner:n}),Zn={kind:"client",inner:"Token not exist or empty"},nr={kind:"client",inner:"Api path empty or missing"},rr=pn({concat:function(n,r){return n+r},empty:""}),tr=()=>f(pn(d()).concat(ln(G.apiPath),ln("https://api.vviinn.com")),cn((()=>nr))),ur={concat:(n,r)=>{const t=new Headers;return void 0!==n&&n.forEach(((n,r)=>t.append(r,n))),void 0!==r&&r.forEach(((n,r)=>t.append(r,n))),t}},er=s({method:{concat:(n,r)=>{const t=rr.concat(ln(n),ln(r));return f(t,(u=()=>"GET",function(n){return sn(n)?u():n.value}));var u}},body:l(),headers:ur}),or=n=>({method:n}),ir=nn(or("GET")),cr=nn(or("POST")),fr=n=>n.status>=200&&n.status<300?Xn.right(n):Xn.left(n),ar=er,vr=(n,r)=>([t,u])=>{const e=new URL(n,t),o=ar.concat(u,r);return M.pipe(((n,r={})=>M.pipe(((n,r={method:"GET"})=>Xn.tryCatch((()=>fetch(n,r)),(n=>n)))(n,r),Xn.chain(fr),Xn.chain((n=>function(n){return Xn.fromTask((()=>n.json()))}(n)))))(e.toString(),o),Xn.mapLeft(Yn))},dr=n=>(n=>0===n.length)(n)?Z("entity is empty"):nn(n),pr=n=>{return f(n,("entity not exist",function(n){return null==n?Z("entity not exist"):nn(n)}),(r=dr,function(n){return fn(n)?n:r(n.right)}));var r},sr=n=>new Headers({Authorization:`Bearer ${n}`}),lr=n=>f(n,pr,$n.mapLeft((()=>Zn))),mr=n=>f(n,lr,$n.map(sr)),hr=g.sequenceT($n.Apply),Ir={equals:(n,r)=>n.class===r.class&&n.score===r.score&&n.rectangle.left===r.rectangle.left&&n.rectangle.top===r.rectangle.top&&n.rectangle.height===r.rectangle.height&&n.rectangle.width===r.rectangle.width},Rr=n=>M.pipe(hr(tr(),cr),Pn,Nn(vr("search/session",n)));var br;!function(n){n.eform="eform",n.etype="etype",n.form="form",n.href="href",n.method="method",n.accepts="accepts",n.produces="produces",n.rel="rel",n.type="type",n.value="value"}(br||(br={}));const Ur=n=>{switch(n.type){case"array":return n.value.map(Ur);default:return n.value}},Or=n=>r=>f(hr(tr(),nn(or(n.method))),Pn,Nn(vr(n.href,r))),Mr=(n,r)=>{const t=I(n),u=m.concat(t,r);return Object.assign(Object.assign({},u),{width:n.width,height:n.height})},gr=(n,r)=>{switch(r.direction){case h.NorthEast:return((n,r)=>{const t=m.concat(I(n),{x:0,y:r.position.y});return Object.assign(Object.assign({},t),{width:n.width+r.position.x,height:n.height-r.position.y})})(n,r);case h.NorthWest:return((n,r)=>{const t=m.concat(I(n),r.position);return Object.assign(Object.assign({},t),{width:n.width-r.position.x,height:n.height-r.position.y})})(n,r);case h.SouthEast:return((n,r)=>Object.assign(Object.assign({},n),{width:n.width+r.position.x,height:n.height+r.position.y}))(n,r);case h.SouthWest:return((n,r)=>{const t=m.concat(I(n),{x:r.position.x,y:0});return Object.assign(Object.assign({},t),{width:n.width-r.position.x,height:n.height+r.position.y})})(n,r)}},jr=n=>({x:0,y:0,width:n.width,height:n.height}),wr=n=>Object.assign({x:n.left,y:n.top},n),xr=n=>r=>({x:r.x*n.width,y:r.y*n.height,width:r.width*n.width,height:r.height*n.height}),yr=n=>({x:n.x+.5*n.width,y:n.y+.5*n.height});var _r;!function(n){n.desc="desc",n.eform="eform",n.enabled="enabled",n.etype="etype",n.form="form",n.label="label",n.max="max",n.maxlength="maxlength",n.maxsize="maxsize",n.min="min",n.minlength="minlength",n.minsize="minsize",n.mutable="mutable",n.name="name",n.options="options",n.pattern="pattern",n.placeholder="placeholder",n.required="required",n.secret="secret",n.type="type",n.value="value",n.visible="visible"}(_r||(_r={}));const Wr=(n,r)=>{const t=new URLSearchParams(Object.entries(r));return[`${n.href}?${t.toString()}`,{method:"GET"}]},Er=(n,r)=>[n.href,{body:JSON.stringify(r),method:n.method,headers:new Headers({"Content-Type":"application/ion+json"})}],kr=(n,r={})=>t=>M.pipe(hr(tr(),M.pipe(((n,r)=>M.pipe(((n,r)=>{const t=n.map((n=>n.name)),u=Object.keys(r),e=t.filter((n=>!u.includes(n)));return 0===e.length?nn(r):Z(`Data should contains fields: ${e.join(", ")}`)})(n.value,r),tn((r=>n.rel.includes("query-form")?Wr(n,r):Er(n,r)))))(n,r),on((n=>({kind:"app",inner:n}))))),Pn,Nn((n=>{const r=n[0],[u,e]=n[1];return vr(u,e)([r,t])}))),qr=async n=>new Promise((r=>{const t=new FileReader;t.addEventListener("load",(()=>{r(t.result)})),t.readAsDataURL(n)})),Pr=g.sequenceT(F.Apply);const Tr=["jpg","jpeg","png","webp"],Ar={kind:"client",inner:"File format not supported"},zr=n=>{const r=n.type.split("/")[1],t=(u=t=>t===r?F.some(n):F.none,function(n){for(var r=0;r<n.length;r++){var t=u(n[r]);if(R(t))return t}return a})(Tr);var u;return M.pipe(t,$n.fromOption((()=>Ar)))},Lr={kind:"app",inner:"File doesnt exist"},Nr=n=>()=>new Promise((r=>{const t=new FileReader,u=new Image;t.onload=n=>{u.src=n.target.result},u.onload=()=>r(u),t.readAsDataURL(n)}));var Cr=O((function(n,r){Object.defineProperty(r,"__esModule",{value:!0}),r.copy=void 0,r.copy=(n,r,t=0,u=0,e=n.width-t,o=n.height-u,i=0,c=0)=>{if(t|=0,u|=0,o|=0,i|=0,c|=0,(e|=0)<=0||o<=0)return;const f=new Uint32Array(n.data.buffer),a=new Uint32Array(r.data.buffer);for(let v=0;v<o;v++){const o=u+v;if(o<0||o>=n.height)continue;const d=c+v;if(!(d<0||d>=r.height))for(let u=0;u<e;u++){const e=t+u;if(e<0||e>=n.width)continue;const c=i+u;c<0||c>=r.width||(a[d*r.width+c]=f[o*n.width+e])}}}})),Sr=O((function(n,r){Object.defineProperty(r,"__esModule",{value:!0}),r.CreateImageFactory=(n=[0,0,0,0],r=4)=>{if(r=Math.floor(r),isNaN(r)||r<1)throw TypeError("channels should be a positive non-zero number");if(!("length"in n)||n.length<r)throw TypeError(`fill should be iterable with at least ${r} members`);const t=(n=new Uint8ClampedArray(n).slice(0,r)).every((n=>0===n));return(u,e,o)=>{if(void 0===u||void 0===e)throw TypeError("Not enough arguments");if(u=Math.floor(u),e=Math.floor(e),isNaN(u)||u<1||isNaN(e)||e<1)throw TypeError("Index or size is negative or greater than the allowed amount");const i=u*e*r;if(void 0===o&&(o=new Uint8ClampedArray(i)),o instanceof Uint8ClampedArray){if(o.length!==i)throw TypeError("Index or size is negative or greater than the allowed amount");if(!t)for(let t=0;t<e;t++)for(let e=0;e<u;e++){const i=(t*u+e)*r;for(let t=0;t<r;t++)o[i+t]=n[t]}return{get width(){return u},get height(){return e},get data(){return o}}}throw TypeError("Expected data to be Uint8ClampedArray or undefined")}},r.createImage=r.CreateImageFactory()})),Dr=O((function(n,r){Object.defineProperty(r,"__esModule",{value:!0}),r.filters=void 0;const t=(n,r)=>{if(n<=-r||n>=r)return 0;if(0==n)return 0;const t=n*Math.PI;return Math.sin(t)/t*Math.sin(t/r)/(t/r)},u=n=>Math.round(16383*n);r.filters=(n,r,e,o,i)=>{const c=i?2:3,f=1/e,a=Math.min(1,e),v=c/a,d=Math.floor(2*(v+1)),p=new Int16Array((d+2)*r);let s=0;for(let e=0;e<r;e++){const i=(e+.5)*f+o,d=Math.max(0,Math.floor(i-v)),l=Math.min(n-1,Math.ceil(i+v)),m=l-d+1,h=new Float32Array(m),I=new Int16Array(m);let R=0,b=0;for(let n=d;n<=l;n++){const r=t((n+.5-i)*a,c);R+=r,h[b]=r,b++}let U=0;for(let n=0;n<h.length;n++){const r=h[n]/R;U+=r,I[n]=u(r)}I[r>>1]+=u(1-U);let O=0;for(;O<I.length&&0===I[O];)O++;let M=I.length-1;for(;M>0&&0===I[M];)M--;const g=M-O+1;p[s++]=d+O,p[s++]=g,p.set(I.subarray(O,M+1),s),s+=g}return p}})),Fr=O((function(n,r){Object.defineProperty(r,"__esModule",{value:!0}),r.convolve=void 0,r.convolve=(n,r,t,u,e,o)=>{let i=0,c=0;for(let f=0;f<u;f++){let a=0;for(let t=0;t<e;t++){let t=i+4*o[a++]|0,e=0,f=0,v=0,d=0;for(let r=o[a++];r>0;r--){const r=o[a++];e=e+r*n[t]|0,f=f+r*n[t+1]|0,v=v+r*n[t+2]|0,d=d+r*n[t+3]|0,t=t+4|0}r[c]=e+8192>>14,r[c+1]=f+8192>>14,r[c+2]=v+8192>>14,r[c+3]=d+8192>>14,c=c+4*u|0}c=4*(f+1)|0,i=(f+1)*t*4|0}}})),Hr=O((function(n,r){Object.defineProperty(r,"__esModule",{value:!0}),r.lanczos2=r.lanczos=void 0;const t=(n,r,t=!1)=>{const u=r.height/n.height,e=Dr.filters(n.width,r.width,r.width/n.width,0,t),o=Dr.filters(n.height,r.height,u,0,t),i=new Uint8ClampedArray(r.width*n.height*4);Fr.convolve(n.data,i,n.width,n.height,r.width,e),Fr.convolve(i,r.data,n.height,r.width,r.height,o)};r.lanczos=(n,r,u=0,e=0,o=n.width-u,i=n.height-e,c=0,f=0,a=r.width-c,v=r.height-f)=>{if(e|=0,i|=0,c|=0,f|=0,a|=0,v|=0,(o|=0)<=0||i<=0||a<=0||v<=0)return;if(0==(u|=0)&&0===e&&o===n.width&&i===n.height&&0===c&&0===f&&a===r.width&&v===r.height)return void t(n,r);const d=Sr.createImage(o,i),p=Sr.createImage(a,v);Cr.copy(n,d,u,e),t(d,p),Cr.copy(p,r,0,0,p.width,p.height,c,f)},r.lanczos2=(n,r,u=0,e=0,o=n.width-u,i=n.height-e,c=0,f=0,a=r.width-c,v=r.height-f)=>{if(e|=0,i|=0,c|=0,f|=0,a|=0,v|=0,(o|=0)<=0||i<=0||a<=0||v<=0)return;if(0==(u|=0)&&0===e&&o===n.width&&i===n.height&&0===c&&0===f&&a===r.width&&v===r.height)return void t(n,r,!0);const d=Sr.createImage(o,i),p=Sr.createImage(a,v);Cr.copy(n,d,u,e),t(d,p,!0),Cr.copy(p,r,0,0,p.width,p.height,c,f)}}));const Jr=n=>({kind:"height",size:n}),$r=W.contramap((n=>n.size))(T.Ord),Gr=C.sort($r),Br=C.sort({equals:(n,r)=>n.kind===r.kind,compare:(n,r)=>n.kind===r.kind?0:"width"===n.kind?-1:1}),Kr=n=>r=>{const t=Gr(r),u=(n=>{const[r,t]=n;return r.size/t.size})(t),e=Object.assign(Object.assign({},t[0]),{size:n*u}),o=Object.assign(Object.assign({},t[1]),{size:n});return Br([o,e])},Qr=n=>{const{naturalWidth:r,naturalHeight:t}=n;return[(u=r,{kind:"width",size:u}),Jr(t)];var u},Vr=()=>{const n=document.createElement("canvas"),r=n.getContext("2d");return[n,r]},Xr=async n=>{const r=await fetch(n),t=await r.blob();return new File([t],"image",{type:t.type,lastModified:Date.now()})},Yr=n=>()=>new Promise((async r=>{const t=await fetch(n),u=await t.blob();r(new File([u],"image",{type:u.type,lastModified:Date.now()}))})),Zr=(n,r)=>n.naturalWidth>r?((n,r)=>{const t=Kr(n),[u,e]=Vr(),o=Qr(r),[i,c]=t(o).map((n=>n.size)),f=new ImageData(i,c),a=(n=>{const{naturalWidth:r,naturalHeight:t}=n,[u,e]=Vr();return u.width=r,u.height=t,e.drawImage(n,0,0),e.getImageData(0,0,r,t)})(r);return u.width=i,u.height=c,Hr.lanczos(a,f),e.putImageData(f,0,0),u.toDataURL()})(r,n):(n=>{const r=document.createElement("canvas"),{naturalWidth:t,naturalHeight:u}=n,e=r.getContext("2d");return r.width=t,r.height=u,e.drawImage(n,0,0,t,u),r.toDataURL()})(n),nt=n=>f(n,mr,tn((n=>({headers:n})))),{state:rt,onChange:tt}=$({token:void 0,results:[],filters:[],resetCategoryLink:void 0,activeIonLink:void 0,cropperHandlers:[],selectedCropper:void 0,rectangleSearchForm:void 0,detectedObjects:[],detectedObject:void 0,objectDetectionInProgress:!1,imageWidth:500,image:F.none,imageUrl:F.none,imageBounds:F.none,searchArea:F.none,resultsComponents:[],serverError:!1,loading:!1}),ut=async n=>{var r,t;rt.results=n.value,rt.filters=(t=Ur(n.filters),Object.entries(t).map((([n,r])=>({name:n,filters:r})))),rt.rectangleSearchForm=n.searchArea,rt.resetCategoryLink=null===(r=n.links)||void 0===r?void 0:r.clearFilters,rt.loading=!1},et=n=>f(nt(rt.token),Pn,Nn(Or(n))),ot=async()=>{rt.loading=!0,f(Pr(rt.imageBounds,rt.searchArea),F.map((async([n,r])=>{const t=(u=n,n=>({x:n.x/u.width,y:n.y/u.height,width:n.width/u.width,height:n.height/u.height}))(r);var u;const e={width:t.width,height:t.height,left:t.x,top:t.y};return await f(nt(rt.token),Pn,Nn(kr(rt.rectangleSearchForm,e)),Tn(ut))()})))},it=n=>{rt.loading=!0;const r=(n=>{const r=new FormData;return r.append("image",n),r})(n),t=hr(mr(rt.token),nn(r));return f(t,tn((([n,r])=>({headers:n,body:r}))),Pn,Ln(Rr),Tn((n=>(ut(n),(async n=>{rt.objectDetectionInProgress=!0;const r={kind:"server",inner:"Can not get a link for objects detection"};var t,u,e;await f((t=n,u="detectedObjects",f(t.links,ln,(e=n=>ln(n[u]),function(n){return sn(n)?vn:e(n.value)}))),Dn((()=>r)),Ln(et),Tn((n=>rt.detectedObjects=Ur(n))))(),rt.objectDetectionInProgress=!1})(n),rt.loading=!1,n))),An((n=>(rt.serverError=!0,rt.loading=!1,n))))},ct=rt;tt("activeIonLink",(async n=>{rt.loading=!0;const r=n||rt.resetCategoryLink;await f(nt(rt.token),Pn,Nn(Or(r)),Tn(ut),An((n=>({kind:"network error",inner:n}))))()})),tt("searchArea",(n=>{f(n,F.map((n=>{rt.cropperHandlers=b(n)})))})),tt("serverError",(()=>{rt.loading=!1}));const ft=n=>{ct.image=F.some(n),ct.imageUrl=F.some(n.src)},at=async n=>{const r=(n=>M.pipe(n,F.fromNullable,$n.fromOption((()=>Lr)),$n.chain(zr)))(n),t=(500,n=>M.pipe(n,Nr,Vn.map((n=>Zr(n,500))),Vn.chain(Yr)));const u=f(r,Pn,Fn(t)),e=await f(u,Ln(it))();return f(hr(e,r),tn((([n,r])=>(async(n,r)=>{const t={image:await(async n=>({name:n.name,mediaType:n.type,value:await qr(n)}))(r)},u=n.uploadHighResolutionImage;await f(nt(rt.token),Pn,Nn(kr(u,t)))()})(n,r)))),await f(u,Fn(Nr),Tn(ft))(),e};export{en as A,$n as E,P as N,F as O,k as S,Xn as T,C as _,M as a,ir as b,Nn as c,X as d,U as e,Pn as f,tr as g,O as h,ct as i,Pr as j,Mr as k,ot as l,vr as m,wr as n,Ur as o,xr as p,yr as q,Ir as r,G as s,gr as t,Xr as u,at as v,an as w,jr as x,Qr as y,Kr as z}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,h as t,H as n}from"./p-47183c9a.js";let r=class{constructor(t){e(this,t)}render(){return t(n,null,t("slot",{name:"icon"}),t("slot",{name:"title"}),t("slot",{name:"text"}),t("slot",{name:"action"}))}};r.style=":host{background:#F4F4F4;border-radius:8px;display:grid;grid-gap:20px;padding:24px;text-align:center}::slotted(svg){display:grid;align-self:center}::slotted(h4){margin:unset;font-weight:600;font-size:18px;line-height:24px}::slotted(span){font-size:14px;line-height:20px}::slotted(button){-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;background:transparent;color:var(--color-primary, var(--color-primary-system));font-weight:600;font-size:16px;line-height:20px;cursor:pointer}";export{r as vviinn_error}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as i,h as t,H as e,g as r}from"./p-47183c9a.js";import{s as o,i as s,O as a}from"./p-606ff863.js";import{s as n}from"./p-c853cba8.js";import{d,e as l,f as p,v as c,a as g,g as h}from"./p-28678772.js";import"./p-f582db5c.js";let m=class{constructor(t){i(this,t),this.apiPath="https://api.vviinn.com",this.active=!1,this.currencySign="€",this.locale="de-DE",this.slidePosition=0,this.width=0,this.wrongImageFormat=!1,this.imageSource=null}activeWatcher(i){i?(this.overflow=document.body.style.overflow,document.body.style.overflow="hidden",this.trackOpenEvent()):document.body.style.overflow=this.overflow}trackRecommendationView({detail:i}){const t=d(Object.assign({session_id:this.uiSessionId},i));this.trackingApi.trackEvent(t)}trackRecommendationClick({detail:i}){const t=d(Object.assign({sessionId:this.uiSessionId},i));this.trackingApi.trackEvent(t)}trachSearchAreaChanges(){const i=l({session_id:this.uiSessionId,source:this.imageSource,search_area:"manual-selection"});this.trackingApi.trackEvent(i)}trackDetectedObject(){const i=l({session_id:this.uiSessionId,source:this.imageSource,search_area:"attention-point"});this.trackingApi.trackEvent(i)}trackFilter({detail:i}){const t=p({session_id:this.uiSessionId,source:this.imageSource,kind:"category",action:i});this.trackingApi.trackEvent(t)}componentWillLoad(){n(this,this.el)}connectedCallback(){o.apiPath=this.apiPath,o.currencySign=this.currencySign,o.locale=this.locale,s.token=this.token,this.uiSessionId=c()}trackOpenEvent(){this.trackingApi=g(this.apiPath,this.token);const i=h({action:"open",session_id:this.uiSessionId});this.trackingApi.trackEvent(i)}handleImageSelection(i){this.imageSource=i,this.slidePosition=1,this.el.shadowRoot.querySelector("vviinn-overlayed-modal").shadowRoot.querySelector("vviinn-overlay").querySelector("vviinn-modal").shadowRoot.querySelector(".body").scrollTop=0,this.trackInitialSearch()}trackInitialSearch(){const i=l({session_id:this.uiSessionId,source:this.imageSource,search_area:"full"});this.trackingApi.trackEvent(i)}resetState(){this.resetScroll("onboarding-block"),this.slidePosition=0,s.image=a.none,s.imageUrl=a.none,s.imageBounds=a.none,s.searchArea=a.none,s.results=[],s.filters=[],s.detectedObjects=[],s.activeIonLink=void 0,s.rectangleSearchForm=void 0,this.resetScroll("results-block")}haveErrors(){return this.wrongImageFormat||s.serverError}resetScroll(i,t="auto"){this.el.shadowRoot.getElementById(i).scroll({top:0,left:0,behavior:t})}handleModalClose(){this.active=!1,this.resetState(),["onboarding-block","results-block"].forEach((i=>this.resetScroll(i)));const i=h({action:"close",session_id:this.uiSessionId});this.trackingApi.trackEvent(i)}render(){return t(e,null,t("vviinn-overlayed-modal",{class:{"first-screen":0===this.slidePosition},active:this.active,onSecondaryActionClicked:()=>this.resetState(),onModalClosed:()=>this.handleModalClose(),exportparts:"secondary-action, title, close-button"},t("vviinn-slider",{showBullets:!1,position:this.slidePosition},t("vviinn-slide",{class:{"start-page":!0}},t("div",{class:{error:this.haveErrors(),"start-page_block":!0}},t("vviinn-wrong-format",{class:{hidden:!this.wrongImageFormat},onActionClick:()=>this.wrongImageFormat=!1}),t("vviinn-server-error",{class:{hidden:!s.serverError},onActionClick:()=>s.serverError=!1}),t("vviinn-teaser",{class:{hidden:this.haveErrors()}}),t("vviinn-image-selector",{class:{hidden:this.haveErrors()},onImageSelected:()=>this.handleImageSelection("upload"),onImageSelectedError:()=>this.wrongImageFormat=!0,part:"select-image_button"},t("span",{slot:"upload-button-text",class:"upload-button-content"},t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"29",height:"28",fill:"none"},t("defs",null),t("path",{fill:"#fff","fill-rule":"evenodd",d:"M10.271 3.89A.875.875 0 0111 3.5h7c.293 0 .566.146.728.39l1.49 2.235h3.033a2.625 2.625 0 012.625 2.625V21a2.625 2.625 0 01-2.625 2.625H5.75A2.625 2.625 0 013.125 21V8.75A2.625 2.625 0 015.75 6.125h3.031l1.49-2.235zm1.197 1.36l-1.49 2.235a.875.875 0 01-.729.39H5.75a.875.875 0 00-.875.875V21a.875.875 0 00.875.875h17.5a.875.875 0 00.875-.875V8.75a.875.875 0 00-.875-.875h-3.5a.875.875 0 01-.729-.39l-1.49-2.235h-6.063z","clip-rule":"evenodd"}),t("path",{fill:"#fff","fill-rule":"evenodd",d:"M14.5 11.375a3.062 3.062 0 100 6.125 3.062 3.062 0 000-6.125zm-4.813 3.063a4.812 4.812 0 119.625 0 4.812 4.812 0 01-9.625 0z","clip-rule":"evenodd"})),t("slot",{name:"vviinn-image-upload-button-text"},t("span",null,"Kamera oder Bild auswählen")))),t("vviinn-privacy-badge",{class:{hidden:this.haveErrors()}})),t("div",{id:"onboarding-block",class:"start-page_block"},t("div",{class:"onboarding-wrapper"},t("vviinn-onboarding",null),t("vviinn-example-images",{onImageSelected:()=>this.handleImageSelection("example"),onImageSelectedError:()=>this.resetScroll("onboarding-block","smooth")})))),t("vviinn-slide",{class:{"results-page":!0,active:1==this.slidePosition}},t("div",{class:"image-wrapper"},t("vviinn-image-view",null),t("div",{class:"filters-wrapper"},t("div",{class:"filters"},s.filters.map((i=>t("search-filters",{filter:i})))))),t("div",{id:"results-block",class:"products-wrapper"},t("div",{class:{"nothing-found":!0,hidden:s.results.length>0}},t("vviinn-empty-results",null),t("vviinn-onboarding",null)),t("div",{class:{hidden:s.results.length<=0,products:!0}},s.results.map(((i,e)=>{var r;return t("vviinn-product-card",{hidden:!0,productTitle:i.title,productId:i.productId,brand:i.brand,deeplink:i.deeplink,price:i.price.actual,salePrice:i.price.sale,imageWidth:160,image:null!==(r=i.image.thumbnail)&&void 0!==r?r:i.image.original,part:"product-card",index:e})}))))))))}get el(){return r(this)}static get watchers(){return{active:["activeWatcher"]}}};m.style=":host{--color-primary-system:#0F62FE;--color-primary-hover-system:#014CDA;--color-icons-system:#2F8EDF;--spacer:8px}:host{display:block}.hidden{visibility:hidden;height:1px}vviinn-overlayed-modal.first-screen::part(title),vviinn-overlayed-modal.first-screen::part(secondary-action){visibility:hidden}.start-page{display:grid;grid-template-columns:repeat(2, 1fr);min-height:580px}.start-page_block{align-content:start;border-right:1px solid #F4F4F4;display:grid;padding:48px}.start-page_block.error{align-content:center}#onboarding-block{border-right:unset;box-sizing:border-box;grid-gap:24px;overflow-y:auto;position:relative;width:100%}vviinn-teaser{margin-bottom:32px;margin-top:-24px}vviinn-image-selector{align-items:center;background:var(--color-primary, var(--color-primary-system));border-color:var(--color-primary, var(--color-primary-system));border-radius:2px;color:white;display:grid;font-size:16px;font-weight:600;height:56px;justify-items:center;margin-bottom:16px;transition:background 0.1s ease-in-out}vviinn-image-selector:hover{background:var(--color-primary-hover, var(--color-primary-hover-system));border-color:var(--color-primary-hover, var(--color-primary-hover-system))}vviinn-image-selector:active{border-color:black}.upload-button-content{display:grid;align-items:center;justify-items:start;justify-content:center;grid-template-columns:-webkit-max-content auto;grid-template-columns:max-content auto;grid-gap:16px}.results-page{display:grid;grid-template-columns:336px auto;box-sizing:border-box}.results-page>*{padding:24px;box-sizing:border-box}.products{align-content:center;align-items:start;box-sizing:border-box;display:grid;grid-gap:32px 16px;grid-template-columns:repeat(auto-fill, minmax(152px, 1fr));justify-items:center;padding:24px;padding-right:0;position:absolute;width:calc(100% - 16px)}.products.hidden{display:none}vviinn-empty-results{width:280px;align-self:center;justify-self:center}.products-wrapper{display:grid;overflow-y:auto;overflow-x:hidden;padding:unset;position:relative;width:100%}.image-wrapper{border-right:1px solid #F4F4F4;display:grid;grid-template-rows:-webkit-min-content 170px;grid-template-rows:min-content 170px;grid-gap:24px;min-width:100%}.onboarding-wrapper{position:absolute;width:100%;padding:48px;box-sizing:border-box;display:grid;grid-gap:64px;padding-bottom:24px}vviinn-product-card{gap:0;width:100%}vviinn-product-card::part(image){border:1px solid #eaeaea;margin-bottom:8px}vviinn-product-card::part(price-container),vviinn-product-card::part(deeplink),vviinn-product-card::part(title){align-self:start}search-filters span{display:none}search-filters::part(filter){background:#F4F4F4;border-radius:4px;border:1px solid #F4F4F4;box-sizing:border-box;color:#161616;font-size:14px;font-weight:600;line-height:20px}search-filters::part(show-more-filters){border:1px solid #f4f4f4;border-radius:4px;box-sizing:border-box;color:#161616;font-size:14px;font-weight:600;line-height:20px;padding:6px 16px}search-filters::part(show-more-filters):hover{background:#EAEAEA}search-filters::part(filter):hover{background:#EAEAEA}search-filters::part(filter):focus{outline:none;border:1px solid var(--color-primary, var(--color-primary-system))}search-filters::part(filter active){background:rgba(15, 98, 254, 0.15);color:var(--color-primary, var(--color-primary-system))}.filters-wrapper{overflow:auto}.results-page:not(.active){display:none}.nothing-found{display:grid;grid-gap:64px;justify-self:center;padding-top:64px;padding-bottom:16px;position:absolute;width:60%}@media (max-width: 768px){.start-page_block{padding:24px}.onboarding-wrapper{padding:24px}}@media (max-width: 640px){.start-page{grid-template-rows:-webkit-min-content;grid-template-rows:min-content;grid-template-columns:unset;grid-gap:48px;padding:24px 0 48px 0}}@media (max-width: 640px) and (min-width: 415px){.onboarding-wrapper{position:unset}#onboarding-block{overflow:unset}.start-page.active{height:1px;overflow:auto}}@media (max-width: 415px){.results-page>*{box-sizing:border-box;padding:24px}vviinn-slide{padding-bottom:48px}.start-page_block:last-of-type{border-right:unset;overflow-y:unset;position:static;box-sizing:border-box;width:unset}.start-page_block{padding:0 24px}vviinn-teaser{margin-top:24px}.onboarding-wrapper{position:static;width:unset;padding:unset;box-sizing:border-box}.results-page{grid-template-columns:unset;grid-template-rows:-webkit-min-content auto;grid-template-rows:min-content auto}.image{margin-bottom:8px}.image-wrapper{grid-template-rows:-webkit-min-content auto;grid-template-rows:min-content auto;width:100%}.products-wrapper{align-content:start;position:static;overflow-y:unset;width:100%;padding-top:0}.products{position:static;padding:0;width:unset;grid-gap:32px 16px;justify-content:center}.nothing-found{position:static;grid-gap:64px;padding:unset;align-content:start;width:unset}}@media (max-width: 320px){.products{grid-template-columns:unset}}vviinn-wrong-format,vviinn-server-error{width:280px;align-self:center;justify-self:center}";export{m as vviinn_vps_widget}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as a}from"./p-
|
|
1
|
+
import{h as a}from"./p-47183c9a.js";const l=()=>a("svg",{width:"12",height:"20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a("path",{d:"M0 10 10 0l1.4 1.4L2.8 10l8.6 8.6L10 20 0 10Z"})),h=()=>a("svg",{width:"22",height:"20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M16.567 3H19A3.01 3.01 0 0 1 22 6v7.69h-2V6c0-.55-.451-1-1.001-1h-3.502l-2.03-3H8.543L6.603 5H3.001c-.55 0-1 .45-1 1v11c0 .55.45 1 1 1h5.933v2H3.001A3.01 3.01 0 0 1 0 17V6c0-1.65 1.35-3 3.001-3h2.522l1.94-3h7.074l2.03 3Zm-5.562 3c1.28 0 2.561.48 3.542 1.46h-.01a4.992 4.992 0 0 1 .64 6.29l3.051 3.05-1.41 1.41-3.052-3.05c-.84.55-1.8.83-2.76.83-1.282 0-2.562-.48-3.543-1.46a5.002 5.002 0 0 1 0-7.07A5.026 5.026 0 0 1 11.005 6Zm-2.771 5a2.763 2.763 0 0 0 2.771 2.77A2.763 2.763 0 0 0 13.776 11a2.763 2.763 0 0 0-2.771-2.77A2.763 2.763 0 0 0 8.234 11Z",fill:"#161616"})),t=()=>a("svg",{xmlns:"http://www.w3.org/2000/svg",width:"120",height:"120",fill:"none"},a("defs",null),a("path",{fill:"#393939",d:"M74.55 20a5.06 5.06 0 014.14 2l4.72 9.32.1.18.11.17A5.07 5.07 0 0087.93 34h13.87c5.07 0 9.2 3.59 9.2 8v50c0 4.41-4.13 8-9.2 8H18.2c-5.07 0-9.2-3.59-9.2-8V42c0-4.41 4.13-8 9.2-8h13.87a5.072 5.072 0 004.31-2.34l.11-.17.1-.18L41.31 22a5.06 5.06 0 014.14-2h29.1zm0-4h-29.1a9 9 0 00-7.6 4L33 29.5a1.13 1.13 0 01-1 .5H18.2C10.91 30 5 35.37 5 42v50c0 6.63 5.91 12 13.2 12h83.6c7.29 0 13.2-5.37 13.2-12V42c0-6.63-5.91-12-13.2-12H87.93a1.13 1.13 0 01-1-.5L82.15 20a9 9 0 00-7.6-4z"}),a("path",{fill:"#393939",d:"M96 46a4 4 0 110 8 4 4 0 010-8zm0-4a8 8 0 100 16.001A8 8 0 0096 42z"}),a("path",{class:"colored",d:"M60 42a24 24 0 100 48.001A24 24 0 0060 42zm12 26H62v10a2 2 0 01-4 0V68H48a2 2 0 010-4h10V54a2 2 0 014 0v10h10a2 2 0 110 4z"})),s=()=>a("svg",{xmlns:"http://www.w3.org/2000/svg",width:"120",height:"120",fill:"none"},a("defs",null),a("path",{fill:"#393939",d:"M110.35 96.52l-24.8-22.66a6.22 6.22 0 00-8.14-.27l-.09.07-10.57 8.93-18.33-17.88a6.001 6.001 0 00-8.51-.35L8.69 91.49a2 2 0 002.62 3l31.3-27.2a2 2 0 012.233-.359 2 2 0 01.637.479l.1.1 45 43.9a2.005 2.005 0 002.83-.03 2.003 2.003 0 00-.03-2.83L69.63 85.39l10.22-8.63a2.3 2.3 0 013 .07l24.77 22.65c.377.343.871.529 1.38.52a2 2 0 001.35-3.48zM75 31a10 10 0 110 20 10 10 0 010-20zm0-4a14 14 0 100 28 14 14 0 000-28z"}),a("path",{class:"colored",d:"M12 36H8V20A12 12 0 0120 8h16v4H20a8 8 0 00-8 8v16zM112 36h-4V20a8.001 8.001 0 00-8-8H84V8h16a11.998 11.998 0 0112 12v16zM36 112H20a11.998 11.998 0 01-12-12V84h4v16a8 8 0 008 8h16v4zM100 112H84v-4h16a8 8 0 008-8V84h4v16c0 3.183-1.264 6.235-3.515 8.485A11.996 11.996 0 01100 112z"})),v=()=>a("svg",{xmlns:"http://www.w3.org/2000/svg",width:"120",height:"120",fill:"none"},a("defs",null),a("path",{class:"colored",d:"M84.09 43.24a.53.53 0 00-.29-.48L60.28 29.4a.522.522 0 00-.27-.07.531.531 0 00-.28.07L36.2 42.76a.54.54 0 000 1l23.53 13.3a.54.54 0 00.55 0L83.8 43.72a.53.53 0 00.29-.48zM57.28 61.23L33.73 47.88a.569.569 0 00-.85.48V75a.54.54 0 00.29.48L56.72 88.8a.56.56 0 00.56 0 .53.53 0 00.28-.48V61.71a.56.56 0 00-.28-.48zM86.84 47.88a.63.63 0 00-.29-.08.55.55 0 00-.28.08L62.73 61.23a.56.56 0 00-.28.48v26.61a.53.53 0 00.28.48.56.56 0 00.56 0l23.54-13.29a.54.54 0 00.29-.48V48.36a.55.55 0 00-.28-.48z"}),a("path",{class:"colored",d:"M100 7.94H20a12 12 0 00-12 12v80a11.998 11.998 0 0012 12h80c3.183 0 6.235-1.264 8.485-3.515A11.996 11.996 0 00112 99.94v-80a11.998 11.998 0 00-12-12zm-8 69.24a1.69 1.69 0 01-.85 1.45l-30.31 17.1a1.77 1.77 0 01-1.67 0l-30.32-17.1a1.689 1.689 0 01-.85-1.45V42.82a1.66 1.66 0 01.85-1.45l30.32-17.21a1.71 1.71 0 011.67 0l30.31 17.21a1.67 1.67 0 01.85 1.45v34.36z"})),w=()=>a("svg",{width:"14",height:"11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a("path",{d:"M5 10.414 0 5.413 1.413 4 5 7.586 12.585 0 14 1.415l-9 8.999Z",fill:"var(--color-primary, var(--color-primary-system))"})),i=()=>a("svg",{width:"9",height:"16",xmlns:"http://www.w3.org/2000/svg"},a("path",{d:"m9 8-7.895 8L0 14.88 6.79 8 0 1.12 1.105 0 9 8Z"})),e=()=>a("svg",{width:"20",height:"20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5 2C3.35 2 2 3.35 2 5v2H0V5c0-2.76 2.24-5 5-5h2v2H5Zm5 3c1.28 0 2.56.48 3.54 1.46h-.01a4.994 4.994 0 0 1 .64 6.29l3.05 3.05-1.41 1.41-3.05-3.05c-.84.55-1.8.83-2.76.83a4.98 4.98 0 0 1-3.54-1.46 5.003 5.003 0 0 1 0-7.07C7.44 5.49 8.72 5 10 5Zm-2.77 5c0 .74.29 1.44.81 1.96s1.22.81 1.96.81 1.44-.29 1.96-.81.81-1.22.81-1.96-.29-1.44-.81-1.96-1.22-.81-1.96-.81-1.44.29-1.96.81-.81 1.22-.81 1.96ZM2 15v-2H0v2c0 2.76 2.24 5 5 5h2v-2H5c-1.65 0-3-1.35-3-3ZM13 0h2c2.76 0 5 2.24 5 5v2h-2V5c0-1.65-1.35-3-3-3h-2V0Z",fill:"#161616"})),c=()=>a("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a("path",{d:"M16 1.4L14.6 0L8 6.6L1.4 0L0 1.4L6.6 8L0 14.6L1.4 16L8 9.4L14.6 16L16 14.6L9.4 8L16 1.4Z",fill:"#161616"}));export{l as A,i as C,t as O,e as V,h as a,c as b,w as c,s as d,v as e}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r,h as e,H as t}from"./p-47183c9a.js";import{i as o}from"./p-606ff863.js";import"./p-f582db5c.js";let a=class{constructor(e){r(this,e)}isActive(){return o.loading||o.objectDetectionInProgress}render(){return e(t,{class:{active:this.isActive()}})}};a.style=":host{--preloader-size:24px;--preloader-width:calc(var(--preloader-size) / 6);transform-origin:center;-webkit-animation:rotate 3s linear infinite;animation:rotate 3s linear infinite;border:var(--preloader-width) solid white;border-radius:50%;border-top-color:transparent;display:none;outline:0;width:var(--preloader-size);height:var(--preloader-size);box-sizing:border-box}:host(.active){display:flex}@-webkit-keyframes rotate{from{transform:rotate(-360deg)}to{transform:rotate(360deg)}}@keyframes rotate{from{transform:rotate(-360deg)}to{transform:rotate(360deg)}}";export{a as vviinn_preloader}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as n}from"./p-
|
|
1
|
+
import{h as n}from"./p-47183c9a.js";const i=["vviinn-onboarding-title","vviinn-onboarding-card-1-icon","vviinn-onboarding-card-1-text","vviinn-onboarding-card-2-icon","vviinn-onboarding-card-2-text","vviinn-onboarding-card-3-icon","vviinn-onboarding-card-3-text","vviinn-example-images-title","vviinn-example-images-1","vviinn-example-images-2","vviinn-example-images-3","vviinn-example-images-4","vviinn-teaser-text","vviinn-image-upload-button-text","vviinn-privacy-badge-text"],a=i=>n("slot",{name:i}),e=()=>i.map(a),v=(n,i)=>{i.innerHTML=n.outerHTML},o=(n,i)=>{n.connectedCallback=function(){document.addEventListener("globalSlotsChanged",(({detail:n})=>{var a;(n=>Array.from(n.shadowRoot.querySelectorAll("slot")))(i).reduce((a=n,(n,i)=>{const e=a.find((v=i,n=>v.getAttribute("name")===n.getAttribute("slot")));var v;return e&&n.set(i,e),n}),new Map).forEach(v)}),!0)},n.connectedCallback.call(n)};export{e as S,o as s}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as i,H as e,g as s,c as r}from"./p-47183c9a.js";import{_ as n,O as o,S as a,a as c,E as h,i as l,s as d,c as u,m as p,f as m,g as v,b as g,d as f,A as b,T as w}from"./p-606ff863.js";import{C as y}from"./p-b4caf042.js";import{p as x}from"./p-f582db5c.js";import{c as k,v as C,a as _,b as P}from"./p-28678772.js";let R=class{constructor(i){t(this,i),this.moveDirection="right",this.contentGroups=[],this.activeContentGroup=0,this.mode="continuity",this.imageWidth=140,this.showScroll=!0,this.recommendations=[],this.columns=0,this.resizeObserver=new ResizeObserver((()=>this.handleResize())),this.mutationObserver=new MutationObserver((()=>this.cloneSlottedContent()))}connectedCallback(){this.setItemWidth()}disconnectedCallback(){this.resizeObserver.disconnect()}componentDidLoad(){this.setWidth(),this.processScrollbarWidth(),this.columns=this.getColumnsNumber();const t=this.el.querySelector(".content");this.mutationObserver.observe(t,{subtree:!0,childList:!0}),this.resizeObserver.observe(this.getHostParent())}getItemWidthFromDocument(){return parseInt(getComputedStyle(document.body).getPropertyValue("--vviinn-carousel-image-width"))}setItemWidth(){const t=this.getItemWidthFromDocument(),i=isNaN(t)?this.imageWidth:t;this.el.style.setProperty("--vviinn-carousel-image-width",`${i}px`)}getContentClassMap(){return{content:!0,[this.moveDirection]:!0,[this.mode]:!0,"show-scrollbar":this.showScroll}}handleResize(){this.setWidth(),this.processScrollbarWidth(),this.setItemWidth();const t=this.getColumnsNumber();t!==this.columns&&(this.columns=t)}calculateMoveStep(){const t=this.getContent().map((t=>t.getBoundingClientRect().width));return t.reduce(((t,i)=>t+i),0)/t.length}getHostParent(){return this.el.parentNode.host.parentElement}setWidth(){const t=this.getHostParent();if(!t)return;const i=getComputedStyle(t),e=t.getBoundingClientRect().width-(parseInt(i["padding-right"])+parseInt(i["padding-left"]));this.el.style.setProperty("--vviinn-carousel-content-width",`${e}px`)}getParent(){return this.el.parentNode.host.parentElement}cloneSlottedContent(){this.setWidth()}getActiveGroupIndex(){var t,i;if(!(null===(i=null===(t=this.getContentNode())||void 0===t?void 0:t.getBoundingClientRect())||void 0===i?void 0:i.left))return 0;const e=this.getContentGroups().map((t=>t.getBoundingClientRect().left)).map(((t,i)=>[t,i])).filter((t=>t[0]>=0));return e.length>0?e[0][1]:0}getContentNode(){return this.el.querySelector(".content")}getContent(){const t=this.getContentNode().children;return Array.from(t).map((t=>t))}getColumnsNumber(){const t=getComputedStyle(this.el).getPropertyValue("--vviinn-carousel-columns-internal");return parseInt(t)}getContentGroups(){return Array.from(this.el.querySelectorAll(".items-group"))}showNext(){this.moveDirection="right";const t=this.getContentNode();requestAnimationFrame((()=>{t.scrollTo({top:0,left:t.scrollLeft+this.calculateMoveStep(),behavior:"smooth"})}))}showPrev(){this.moveDirection="left";const t=this.getContentNode();requestAnimationFrame((()=>{t.scrollTo({top:0,left:t.scrollLeft-this.calculateMoveStep(),behavior:"smooth"})}))}scroll(t){const i=this.getContentNode();requestAnimationFrame((()=>{i.scrollTo({top:0,left:this.calculateMoveStep()*t,behavior:"smooth"})}))}processScrollbarWidth(){const t=this.getContentNode();this.el.style.setProperty("--vviinn-progressbar-width",t.clientWidth*((t.scrollLeft+t.clientWidth)/t.scrollWidth)+"px"),this.activeContentGroup=this.getActiveGroupIndex()}showBullets(){return"grid"===this.mode&&this.showScroll}showScrollbar(){return"continuity"===this.mode&&this.showScroll}getClassMap(){return{[this.mode]:!0,"show-scrollbar":this.showScrollbar()}}renderRecommendation(t,e){return i("vviinn-product-card",{part:"product-part",productId:t.productId,productTitle:t.title,deeplink:t.deeplink,image:t.image.thumbnail,brand:t.brand,imageWidth:this.imageWidth,imageRatio:1,price:t.price.actual,salePrice:t.price.sale,responsive:"grid"===this.mode,dimmedBackground:"continuity"===this.mode,index:e})}renderRecommendationGroup(t){return i("div",{class:"items-group"},t)}renderRecommendationGroups(t){return t.map((t=>this.renderRecommendationGroup(t)))}renderRecommendations(){return"grid"===this.mode?this.renderGrid():this.renderRecommendationsElements()}renderRecommendationsElements(){return this.recommendations.map(((t,i)=>this.renderRecommendation(t,i)))}renderGrid(){const t=this.renderRecommendationsElements(),i=n.chunksOf(this.getColumnsNumber())(t);return this.renderRecommendationGroups(i)}renderBullets(){const t=Math.ceil(this.recommendations.length/this.getColumnsNumber());return Array.from(Array(t).keys()).map((t=>i("div",{class:{bullet:!0,active:this.activeContentGroup===t},onClick:()=>this.scroll(t)})))}render(){return i(e,{class:this.getClassMap()},i("div",{class:Object.assign({body:!0},this.getClassMap())},i("button",{class:"prev",onClick:()=>this.showPrev(),part:"carousel-button"},i(y,null)),i("div",{class:this.getContentClassMap(),onScroll:()=>this.processScrollbarWidth()},this.renderRecommendations()),i("button",{class:"next",onClick:()=>this.showNext(),part:"carousel-button"},i(y,null))),this.showBullets()?i("div",{class:"bullets"},this.renderBullets()):"")}get el(){return s(this)}};R.style=":host{--vviinn-progressbar-width:0;--vviinn-carousel-item-width:150px;--vviinn-carousel-columns-internal:var(--vviinn-carousel-columns, 4);--vviinn-carousel-image-width-system:140px}.body{display:flex;position:relative;width:var(--vviinn-carousel-content-width);flex-direction:column}.content-wrapper *{box-sizing:border-box}.content-wrapper{overflow-y:hidden;overflow-x:auto;flex-grow:1}.bullets{margin-top:16px;display:flex;flex-direction:row;grid-gap:24px;justify-content:center}.bullet{width:10px;height:10px;background:#E0E0E0;border-radius:50%;cursor:pointer}.bullet.active{background:#161616}.content:not(.show-scrollbar),.content.grid{scrollbar-color:#fff0 #fff0}.content:not(.show-scrollbar)::-webkit-scrollbar,.content.grid::-webkit-scrollbar{opacity:0}.content{display:flex;flex-direction:row;grid-gap:8px;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory;overflow-y:hidden;overflow-x:auto;flex-grow:1;padding-bottom:16px}.content.left>*{scroll-snap-align:start}.content.right>*{scroll-snap-align:end}:host(.continuity) button{border-radius:2px}:host(.grid) button{border-radius:50%}button{align-items:center;background-color:white;border:none;box-shadow:0px 2px 6px rgba(0, 0, 0, 0.15);cursor:pointer;display:grid;height:40px;justify-items:center;position:absolute;top:calc(50% - 20px);width:40px;z-index:1;padding:0;margin:0}button{fill:#525252}button.prev svg{transform:rotate(180deg);margin-left:-5px}.prev{left:0}.next{right:0}.items-group{display:grid;grid-gap:16px;grid-template-columns:repeat(var(--vviinn-carousel-columns-internal), 1fr);min-width:100%}vviinn-product-card::part(price-container){text-align:center}:host(.classic) vviinn-product-card::part(title),:host(.classic) vviinn-product-card::part(brand),:host(.classic) vviinn-product-card::part(type){text-align:center}@media (max-width: 480px){:host(.modern) button{display:none}.items-group{grid-template-columns:repeat(2, 1fr)}}";class S{sendImpression(t){var i,e,s;gtag("event","view_item_list",{items:[{id:t.productId,name:t.title,brand:null!==(i=t.brand)&&void 0!==i?i:"",category:null!==(e=t.productType)&&void 0!==e?e:"",list_name:"VI VPR View",price:Math.min(t.price.actual,null!==(s=t.price.sale)&&void 0!==s?s:1/0)}]})}sendClick(t){var i,e,s;gtag("event","select_content",{content_type:"product",items:[{id:t.productId,name:t.title,brand:null!==(i=t.brand)&&void 0!==i?i:"",category:null!==(e=t.productType)&&void 0!==e?e:"",list_name:"VI VPR View",price:Math.min(t.price.actual,null!==(s=t.price.sale)&&void 0!==s?s:1/0)}]})}}class I{constructor(){ga("require","ec")}convertProduct(t){var i,e,s;return{id:t.productId,name:t.title,brand:null!==(i=t.brand)&&void 0!==i?i:"",category:null!==(e=t.productType)&&void 0!==e?e:"",list:"VI VPR View",price:Math.min(t.price.actual,null!==(s=t.price.sale)&&void 0!==s?s:1/0)}}sendImpression(t){ga("ec:addImpression",this.convertProduct(t))}sendClick(t){var i,e,s;ga("ec:addProduct",{id:t.productId,name:t.title,brand:null!==(i=t.brand)&&void 0!==i?i:"",category:null!==(e=t.productType)&&void 0!==e?e:"",price:Math.min(t.price.actual,null!==(s=t.price.sale)&&void 0!==s?s:1/0)}),ga("ec:setAction","click",{list:"VI VPR View"})}}const E=o.getMonoid(a.first()).concat(c.pipe(o.fromNullable(window.gtag),o.map((()=>new S))),c.pipe(o.fromNullable(window.ga),o.map((()=>new I)))),V=/fit\/\d+\//,j=(t,i)=>c.pipe((t=>c.pipe(t.match(V),h.fromNullable(t),h.map((()=>t))))(t),h.map((t=>t.replace(V,`fit/${i}/`))),h.getOrElse((()=>t))),A=(t,e)=>t.deeplink?i("a",{class:t.part,part:t.part,href:t.deeplink},e):e,z=t=>{var e;const s=new Intl.NumberFormat(t.locale,{minimumFractionDigits:2}).format(t.price),r=`${null!==(e=t.prefix)&&void 0!==e?e:""} ${s} ${t.currency}`;return i("span",{class:"price-amount",part:"price-amount"},r)},O=t=>{const e=i(z,{prefix:t.prefix,currency:t.currency,price:t.price,locale:t.locale});return i("span",{class:"price-container",part:"price-container"},t.salePrice?[i("span",{class:"price-sale",part:"price-sale"},i(z,{prefix:t.prefix,currency:t.currency,price:t.salePrice,locale:t.locale})),i("span",{class:"price-outdated",part:"price-outdated"},e)]:i("span",{class:"price-regular",part:"price-regular"},e))};let D=class{constructor(i){t(this,i),this.recommendationLoad=r(this,"recommendationLoad",7),this.recommendationView=r(this,"recommendationView",7),this.recommendationClick=r(this,"recommendationClick",7),this.productImageLoaded=r(this,"productImageLoaded",7),this.currency=void 0,this.imageRatio=1,this.imageWidth=200,this.locale=void 0,this.pricePrefix=void 0,this.responsive=!1,this.dimmedBackground=!1,this.index=0,this.imageLoaded=!1,this.productData=null,this.intersectionObserver=new IntersectionObserver(this.intersectionCallback.bind(this),{threshold:1})}connectedCallback(){this.productData={product:this.productId,rank:this.index}}intersectionCallback(t){t.some((t=>t.isIntersecting))&&(c.pipe(E,o.map((t=>t.sendImpression(this.getProduct())))),this.recommendationView.emit(this.productData),this.intersectionObserver.disconnect())}componentDidLoad(){this.recommendationLoad.emit(this.productData),this.intersectionObserver.observe(this.el),this.el.shadowRoot.querySelectorAll("a").forEach((t=>t.addEventListener("mousedown",(t=>{this.recommendationClick.emit(this.productData),window.ga&&t.preventDefault(),c.pipe(E,o.match((()=>null),(t=>t.sendClick(this.getProduct())))),window.ga&&ga("send","event","UX","click","Results",{hitCallback:function(){document.location.href=this.deeplink}})}))))}getProduct(){return l.results.find((t=>t.productId===this.productId))}renderImage(){const t={width:this.imageWidth,height:this.imageWidth*this.imageRatio,src:this.image,title:this.productTitle,lazy:!1};return this.responsive?((t,e=(()=>{}))=>i("picture",null,i("img",{loading:t.lazy?"lazy":"eager",part:"image",class:"image responsive",src:j(t.src,t.width),alt:t.title,onLoad:e})))(t,(()=>this.kek())):((t,e=(()=>{}))=>i("picture",null,i("img",{loading:t.lazy?"lazy":"eager",part:"image",class:"image",width:t.width,height:t.height,src:j(t.src,t.width),alt:t.title,onLoad:e})))(t,(()=>this.kek()))}kek(){this.productImageLoaded.emit(this.productId)}render(){var t,s,r;return i(e,{part:"product-card",class:{dimmed:this.dimmedBackground},exportparts:"brand, currency, deeplink, image, image-link, price-amount, price-container, price-outdated, price-prefix, price-regular, price-sale, title"},i(A,{deeplink:this.deeplink,part:"image-link"},this.renderImage()),i(A,{deeplink:this.deeplink,part:"deeplink"},i("span",{class:"title",part:"title"},this.productTitle)),i("span",{class:"brand",part:"brand"},this.brand),i("span",{class:"type",part:"type"},this.productType),i(O,{prefix:null!==(t=this.pricePrefix)&&void 0!==t?t:d.pricePrefix,currency:null!==(s=this.currency)&&void 0!==s?s:d.currencySign,price:this.price,salePrice:this.salePrice,locale:null!==(r=this.locale)&&void 0!==r?r:d.locale}))}get el(){return s(this)}};D.style=':host{align-items:center;display:flex;flex-direction:column;gap:8px;height:100%}.price-container{display:flex;flex-direction:column}.price-sale,.price-regular{font-style:normal;font-weight:normal;font-size:16px;line-height:24px;color:#161616}.price-outdated{font-style:normal;font-weight:normal;font-size:16px;line-height:24px;color:#757575;text-decoration:line-through}.product-type{word-wrap:anywhere}.image{display:grid;align-content:center;-o-object-position:50% 50%;object-position:50% 50%;-o-object-fit:contain;object-fit:contain;text-align:center;box-sizing:border-box}img.responsive{width:100%;height:auto;aspect-ratio:1}.brand,.type{display:none}.title{-webkit-box-orient:vertical;-webkit-line-clamp:2;color:#161616;display:-webkit-box;font-size:16px;font-style:normal;font-weight:500;line-height:24px;margin-bottom:8px;overflow:hidden}.deeplink{text-decoration:none}.image-link{display:contents}picture{position:relative;width:100%}:host(.dimmed) picture::before{content:"";width:100%;height:100%;box-sizing:border-box;background:#f7f7f7;display:block;top:0;left:0;position:absolute;mix-blend-mode:multiply}';const $=c.flow((t=>`Bearer ${t}`),(t=>new Headers({Authorization:t})),(t=>({headers:t}))),T=f(b),L=(t,i={})=>x(T(v(),g),m,u(p(t,i))),M=t=>i=>L(`product/${t}/similar-products`,i),N=t=>i=>L(`product/${t}/cross-selling-products`,i);function W(t){return"function"==typeof t}function F(t){const i=t((t=>{Error.call(t),t.stack=(new Error).stack}));return i.prototype=Object.create(Error.prototype),i.prototype.constructor=i,i}const B=F((t=>function(i){t(this),this.message=i?`${i.length} errors occurred during unsubscription:\n${i.map(((t,i)=>`${i+1}) ${t.toString()}`)).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=i}));function G(t,i){if(t){const e=t.indexOf(i);0<=e&&t.splice(e,1)}}class U{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;const{_parentage:i}=this;if(i)if(this._parentage=null,Array.isArray(i))for(const t of i)t.remove(this);else i.remove(this);const{initialTeardown:e}=this;if(W(e))try{e()}catch(i){t=i instanceof B?i.errors:[i]}const{_finalizers:s}=this;if(s){this._finalizers=null;for(const i of s)try{X(i)}catch(i){t=null!=t?t:[],i instanceof B?t=[...t,...i.errors]:t.push(i)}}if(t)throw new B(t)}}add(t){var i;if(t&&t!==this)if(this.closed)X(t);else{if(t instanceof U){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(i=this._finalizers)&&void 0!==i?i:[]).push(t)}}_hasParent(t){const{_parentage:i}=this;return i===t||Array.isArray(i)&&i.includes(t)}_addParent(t){const{_parentage:i}=this;this._parentage=Array.isArray(i)?(i.push(t),i):i?[i,t]:t}_removeParent(t){const{_parentage:i}=this;i===t?this._parentage=null:Array.isArray(i)&&G(i,t)}remove(t){const{_finalizers:i}=this;i&&G(i,t),t instanceof U&&t._removeParent(this)}}U.EMPTY=(()=>{const t=new U;return t.closed=!0,t})();const q=U.EMPTY;function H(t){return t instanceof U||t&&"closed"in t&&W(t.remove)&&W(t.add)&&W(t.unsubscribe)}function X(t){W(t)?t():t.unsubscribe()}const J={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},K={setTimeout(t,i,...e){const{delegate:s}=K;return(null==s?void 0:s.setTimeout)?s.setTimeout(t,i,...e):setTimeout(t,i,...e)},clearTimeout(t){const{delegate:i}=K;return((null==i?void 0:i.clearTimeout)||clearTimeout)(t)},delegate:void 0};function Q(){}const Y=Z("C",void 0,void 0);function Z(t,i,e){return{kind:t,value:i,error:e}}function tt(t){t()}class it extends U{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,H(t)&&t.add(this)):this.destination=ct}static create(t,i,e){return new nt(t,i,e)}next(t){this.isStopped?at(function(t){return Z("N",t,void 0)}(t),this):this._next(t)}error(t){this.isStopped?at(Z("E",void 0,t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?at(Y,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const et=Function.prototype.bind;function st(t,i){return et.call(t,i)}class rt{constructor(t){this.partialObserver=t}next(t){const{partialObserver:i}=this;if(i.next)try{i.next(t)}catch(t){ot(t)}}error(t){const{partialObserver:i}=this;if(i.error)try{i.error(t)}catch(t){ot(t)}else ot(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(t){ot(t)}}}class nt extends it{constructor(t,i,e){let s;if(super(),W(t)||!t)s={next:null!=t?t:void 0,error:null!=i?i:void 0,complete:null!=e?e:void 0};else{let i;this&&J.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),s={next:t.next&&st(t.next,i),error:t.error&&st(t.error,i),complete:t.complete&&st(t.complete,i)}):s=t}this.destination=new rt(s)}}function ot(t){var i;i=t,K.setTimeout((()=>{const{onUnhandledError:t}=J;if(!t)throw i;t(i)}))}function at(t,i){const{onStoppedNotification:e}=J;e&&K.setTimeout((()=>e(t,i)))}const ct={closed:!0,next:Q,error:function(t){throw t},complete:Q},ht="function"==typeof Symbol&&Symbol.observable||"@@observable";function lt(t){return t}class dt{constructor(t){t&&(this._subscribe=t)}lift(t){const i=new dt;return i.source=this,i.operator=t,i}subscribe(t,i,e){const s=(r=t)&&r instanceof it||function(t){return t&&W(t.next)&&W(t.error)&&W(t.complete)}(r)&&H(r)?t:new nt(t,i,e);var r;return tt((()=>{const{operator:t,source:i}=this;s.add(t?t.call(s,i):i?this._subscribe(s):this._trySubscribe(s))})),s}_trySubscribe(t){try{return this._subscribe(t)}catch(i){t.error(i)}}forEach(t,i){return new(i=ut(i))(((i,e)=>{const s=new nt({next:i=>{try{t(i)}catch(t){e(t),s.unsubscribe()}},error:e,complete:i});this.subscribe(s)}))}_subscribe(t){var i;return null===(i=this.source)||void 0===i?void 0:i.subscribe(t)}[ht](){return this}pipe(...t){return(0===(i=t).length?lt:1===i.length?i[0]:function(t){return i.reduce(((t,i)=>i(t)),t)})(this);var i}toPromise(t){return new(t=ut(t))(((t,i)=>{let e;this.subscribe((t=>e=t),(t=>i(t)),(()=>t(e)))}))}}function ut(t){var i;return null!==(i=null!=t?t:J.Promise)&&void 0!==i?i:Promise}dt.create=t=>new dt(t);const pt=F((t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}));class mt extends dt{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(t){const i=new vt(this,this);return i.operator=t,i}_throwIfClosed(){if(this.closed)throw new pt}next(t){tt((()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const i of this.currentObservers)i.next(t)}}))}error(t){tt((()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=t;const{observers:i}=this;for(;i.length;)i.shift().error(t)}}))}complete(){tt((()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:t}=this;for(;t.length;)t.shift().complete()}}))}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var t;return(null===(t=this.observers)||void 0===t?void 0:t.length)>0}_trySubscribe(t){return this._throwIfClosed(),super._trySubscribe(t)}_subscribe(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)}_innerSubscribe(t){const{hasError:i,isStopped:e,observers:s}=this;return i||e?q:(this.currentObservers=null,s.push(t),new U((()=>{this.currentObservers=null,G(s,t)})))}_checkFinalizedStatuses(t){const{hasError:i,thrownError:e,isStopped:s}=this;i?t.error(e):s&&t.complete()}asObservable(){const t=new dt;return t.source=this,t}}mt.create=(t,i)=>new vt(t,i);class vt extends mt{constructor(t,i){super(),this.destination=t,this.source=i}next(t){var i,e;null===(e=null===(i=this.destination)||void 0===i?void 0:i.next)||void 0===e||e.call(i,t)}error(t){var i,e;null===(e=null===(i=this.destination)||void 0===i?void 0:i.error)||void 0===e||e.call(i,t)}complete(){var t,i;null===(i=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===i||i.call(t)}_subscribe(t){var i,e;return null!==(e=null===(i=this.source)||void 0===i?void 0:i.subscribe(t))&&void 0!==e?e:q}}let gt=class{constructor(i){t(this,i),this.recommendationsLoaded=r(this,"recommendationsLoaded",7),this.blockTitle="Recommended products",this.imageRatio=1,this.imageWidth=300,this.currencySign="€",this.mode="continuity",this.campaignType="VPR",this.locale="de-DE",this.apiPath="https://api.vviinn.com",this.useCarousel=!0,this.showScroll=!0,this.cssUrl=null,this.recommendations=[],this.loaded=!1,this.productImageLoadedSubject=new mt}handleProductIdChange(){this.getRecommendations()}handleCampaignTypeChange(){this.getRecommendations()}handleApiPathChange(t){d.apiPath=t,this.getRecommendations()}handleImageLoading({detail:t}){this.productImageLoadedSubject.next(t)}trackRecommendationView({detail:t}){const i=k(Object.assign({session_id:this.uiSessionId},t));this.trackingApi.trackEvent(i)}trackRecommendationClick({detail:t}){const i=k(Object.assign({session_id:this.uiSessionId},t));this.trackingApi.trackEvent(i)}connectedCallback(){d.apiPath=this.apiPath,d.currencySign=this.currencySign,d.locale=this.locale,this.uiSessionId=C(),this.trackingApi=_(this.apiPath,this.token);const t=P({action:"open",session_id:this.uiSessionId});this.trackingApi.trackEvent(t)}disconnectedCallback(){const t=P({action:"close",session_id:this.uiSessionId});this.trackingApi.trackEvent(t)}async componentWillLoad(){d.pricePrefix=this.pricePrefix,d.currencySign=this.currencySign,this.getRecommendations()}async getRecommendations(){if(void 0===this.productId||void 0===this.token)return;const t=this.campaignType.length>0?this.campaignType:"VPR",i=$(this.token),e=c.pipe(w.of((t=>{return c.pipe("VPR"===t?{_tag:"VPR"}:{_tag:"VCS"},(i=()=>M,e=()=>N,t=>(t=>"VPR"===t._tag)(t)?i():e()));var i,e})(t)),w.ap(w.of(this.productId)),w.ap(w.of(i)),w.flatten),s=await e();c.pipe(s,h.fold((t=>this.handleError(t)),(t=>this.handleRecommendationsSucces(t))))}handleError(t){console.log("ERROR:",t)}handleRecommendationsSucces(t){var i;this.recommendations=null!==(i=null==t?void 0:t.extended)&&void 0!==i?i:t,l.results=this.recommendations,this.loaded=!0,this.productIds=this.recommendations.map((t=>t.productId)),this.productImageLoadedSubject.subscribe((t=>{this.productIds=this.productIds.filter((i=>i!==t)),0===this.productIds.length&&this.recommendationsLoaded.emit()}))}isExternalCSS(){return this.cssUrl&&this.cssUrl.length>0}renderExternalCSS(){return this.isExternalCSS()?i("link",{href:this.cssUrl,rel:"stylesheet"}):""}render(){return i(e,{class:{loaded:this.loaded,empty:0==this.recommendations.length,[this.mode]:!0},"aria-hidden":this.loaded?"false":"true"},this.renderExternalCSS(),i("style",null,d.fallbackStyles),i("h2",{part:"recommendations-title"},this.blockTitle),this.useCarousel?this.renderCarousel():this.renderResults())}renderRecommendation(t,e){return i("vviinn-product-card",{part:"product-part",productId:t.productId,productTitle:t.title,deeplink:t.deeplink,image:t.image.thumbnail,brand:t.brand,imageWidth:this.imageWidth,imageRatio:1,price:t.price.actual,salePrice:t.price.sale,responsive:"grid"===this.mode,dimmedBackground:this.useDimmedBackgroundInCard(),index:e})}useDimmedBackgroundInCard(){return"continuity"===this.mode||!this.useCarousel}renderResults(){return i("div",{class:"recommendations-grid",part:"recommendations-grid"},this.recommendations.map(((t,i)=>this.renderRecommendation(t,i))))}renderCarousel(){return i("vviinn-carousel",{mode:this.mode,imageWidth:this.imageWidth,showScroll:this.showScroll,recommendations:this.recommendations})}get el(){return s(this)}static get watchers(){return{productId:["handleProductIdChange"],campaignType:["handleCampaignTypeChange"],apiPath:["handleApiPathChange"]}}};gt.style=":host{display:grid;grid-gap:1rem;width:100%}:host(:not(.loaded)){position:absolute;visibility:hidden}:host(.grid) vviinn-product-card::part(image){border:1px solid #DDDDDD;width:100%}h2{margin:0}vviinn-product-card::part(price-container){align-self:flex-start;text-align:left;display:flex}.results{display:grid;grid-gap:1rem}.visually-hidden{position:absolute;top:0;left:0;z-index:-1;height:0;width:0}h2{margin:0}:host(.grid) h2{justify-content:center}:host(.grid) vviinn-product-card::part(image){min-width:100%}:host(.grid) vviinn-product-card::part(image-link){width:100%}:host(.grid) vviinn-product-card::part(title),:host(.grid) vviinn-product-card::part(brand),:host(.grid) vviinn-product-card::part(type){text-align:center}:host(.grid) vviinn-product-card::part(price-container){align-self:center}:host(.continuity) vviinn-product-card::part(title),:host(.continuity) vviinn-product-card::part(brand),:host(.continuity) vviinn-product-card::part(type),:host(.continuity) vviinn-product-card::part(deeplink){text-align:left;max-width:unset;align-self:start}";export{R as vviinn_carousel,D as vviinn_product_card,gt as vviinn_vpr_widget}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,h as o,H as t}from"./p-47183c9a.js";import{q as r}from"./p-f582db5c.js";let s=class{constructor(o){e(this,o),this.disabled=!1}render(){return o(t,{part:`handle ${r(this.handler.direction)}`,class:{disabled:this.disabled,[r(this.handler.direction)]:!0},style:{"--size":"20px",cursor:r(this.handler.direction)},draggable:!1})}};s.style=":host{--size:20px;background:transparent;border:4px solid white;box-sizing:content-box;display:block;height:var(--size);touch-action:none;position:absolute;width:var(--size);z-index:4;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host(.disabled){opacity:0.25}:host(.nw-resize){border-bottom:none;border-right:none;top:0;left:0}:host(.ne-resize){border-left:none;border-bottom:none;right:0;top:0}:host(.sw-resize){border-right:none;border-top:none;left:0;bottom:0}:host(.se-resize){border-left:none;border-top:none;bottom:0;right:0}";export{s as cropper_handler}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function t(t){return t}function r(t,r,n,e,s,u,c,a,i){switch(arguments.length){case 1:return t;case 2:return function(){return r(t.apply(this,arguments))};case 3:return function(){return n(r(t.apply(this,arguments)))};case 4:return function(){return e(n(r(t.apply(this,arguments))))};case 5:return function(){return s(e(n(r(t.apply(this,arguments)))))};case 6:return function(){return u(s(e(n(r(t.apply(this,arguments))))))};case 7:return function(){return c(u(s(e(n(r(t.apply(this,arguments)))))))};case 8:return function(){return a(c(u(s(e(n(r(t.apply(this,arguments))))))))};case 9:return function(){return i(a(c(u(s(e(n(r(t.apply(this,arguments)))))))))}}}function n(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return t}function e(t,r,n,e,s,u,c,a,i){switch(arguments.length){case 1:return t;case 2:return r(t);case 3:return n(r(t));case 4:return e(n(r(t)));case 5:return s(e(n(r(t))));case 6:return u(s(e(n(r(t)))));case 7:return c(u(s(e(n(r(t))))));case 8:return a(c(u(s(e(n(r(t)))))));case 9:return i(a(c(u(s(e(n(r(t))))))));default:for(var o=arguments[0],f=1;f<arguments.length;f++)o=arguments[f](o);return o}}var s=function(t){return"None"===t._tag},u=function(t){return"Some"===t._tag},c={_tag:"None"},a=function(t){return{_tag:"Some",value:t}},i=function(t){return"Left"===t._tag},o=function(t){return{_tag:"Left",left:t}},f=function(t){return{_tag:"Right",right:t}},h=Object.prototype.hasOwnProperty,x=function(t){return{concat:function(r,n){var e={};for(var s in t)h.call(t,s)&&(e[s]=t[s].concat(r[s],n[s]));return e}}},y=function(){return{concat:t}},z=function(){return{concat:function(t,r){return r}}},d={concat:function(t,r){return t+r}};const g={concat:(t,r)=>t-r},l=({x:t,y:r})=>({x:t,y:r}),p=({clientX:t,clientY:r})=>({x:t,y:r}),v=x({x:g,y:g}),w=x({x:d,y:d});var N;!function(t){t[t.East=0]="East",t[t.North=1]="North",t[t.NorthEast=2]="NorthEast",t[t.NorthWest=3]="NorthWest",t[t.South=4]="South",t[t.SouthEast=5]="SouthEast",t[t.SouthWest=6]="SouthWest",t[t.West=7]="West"}(N||(N={}));const S=t=>{switch(t){case N.East:return"e-resize";case N.North:return"n-resize";case N.NorthEast:return"ne-resize";case N.NorthWest:return"nw-resize";case N.South:return"s-resize";case N.SouthEast:return"se-resize";case N.SouthWest:return"sw-resize";case N.West:return"w-resize";default:return"pointer"}},_=t=>[{position:l(t),direction:N.NorthWest},{position:w.concat(l(t),{x:t.width,y:0}),direction:N.NorthEast},{position:w.concat(l(t),{x:0,y:t.height}),direction:N.SouthWest},{position:w.concat(l(t),{x:t.width,y:t.height}),direction:N.SouthEast}];export{N as H,i as a,t as b,r as c,x as d,z as e,y as f,w as g,l as h,s as i,u as j,_ as k,o as l,v as m,c as n,p as o,e as p,S as q,f as r,a as s,n as t}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as i,h as o,H as r,g as e}from"./p-
|
|
1
|
+
import{r as t,c as i,h as o,H as r,g as e}from"./p-47183c9a.js";import{b as a}from"./p-b4caf042.js";let n=class{constructor(o){t(this,o),this.modalClosed=i(this,"modalClosed",7),this.position="bottom",this.sourceImage=null,this.widgetScrollbar=!1,this.state="idle"}bodyClickListener(t){const{clientX:i,clientY:o}=t,r=this.getSidebarRectangle();r&&(i>=r.left&&i<=r.right&&o>=r.top&&o<=r.bottom||(this.state="closed"))}getClassMap(){return{[this.position]:!0,[this.state]:!0}}getSidebarRectangle(){var t;return null===(t=this.el.shadowRoot.querySelector("aside"))||void 0===t?void 0:t.getBoundingClientRect()}render(){return o(r,{class:this.getClassMap()},o("aside",{class:"sidebar",part:"body",onAnimationEnd:t=>this.handleAnimationEnd(t)},o("header",{class:{"contains-source-img":this.isSourceImageValid()},part:"sidebar-header"},this.isSourceImageValid()?this.renderSourceImage():null,o("span",{class:"title",part:"title"},this.sidebarTitle),o("button",{class:"close-sidebar",onClick:()=>this.state="closed"},o(a,null))),o("main",{part:"sidebar-content"},o("vviinn-vpr-widget",{exportparts:"brand, currency, deeplink, image, image-link, price-amount, price-container, price-outdated, price-prefix, price-regular, price-sale, title: product-title",token:this.token,productId:this.productId,imageWidth:300,blockTitle:"",mode:"bottom"===this.position?"continuity":"grid",useCarousel:"bottom"===this.position,onRecommendationsLoaded:()=>this.state="open",showScroll:this.widgetScrollbar}))))}renderSourceImage(){return o("img",{class:"source-image",part:"source-image",src:this.sourceImage})}isSourceImageValid(){var t;return(null===(t=this.sourceImage)||void 0===t?void 0:t.length)>0}handleAnimationEnd({animationName:t}){t.includes("slideOut")&&this.modalClosed.emit()}get el(){return e(this)}};n.style=":host{--vviinn-carousel-columns:0;box-sizing:border-box;display:block;display:flex;height:100vh;left:0;position:fixed;top:0;transition:background 0.1s ease-in-out;width:100vw}:host(.open){background:rgba(0, 0, 0, 0.2)}:host(.bottom){flex-direction:column;justify-content:end}:host(.right){flex-direction:row;justify-content:flex-end}header{position:relative;text-align:center;padding:32px}header.contains-source-img{display:grid;justify-items:center;grid-gap:12px}img.source-image{width:64px;height:64px;border-radius:50%;box-shadow:0px 2px 4px rgba(0, 0, 0, 0.15);padding:8px}:host(.right) header{box-shadow:0px 2px 6px rgba(0, 0, 0, 0.1)}main{padding:0 24px}:host(.right) main{overflow:auto}.sidebar{background:white;box-sizing:border-box;display:flex;flex-direction:column}:host(.bottom.idle) .sidebar,:host(.bottom.closed) .sidebar{transform:translateY(100%)}:host(.bottom.closed) .sidebar{-webkit-animation-name:slideOutFromBottom;animation-name:slideOutFromBottom;-webkit-animation-duration:0.5s;animation-duration:0.5s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}:host(.bottom.open) .sidebar{-webkit-animation-name:slideInFromBottom;animation-name:slideInFromBottom;-webkit-animation-duration:0.5s;animation-duration:0.5s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}:host(.right.idle) .sidebar{transform:translateX(100%)}:host(.right.closed) .sidebar{-webkit-animation-name:slideOutFromRight;animation-name:slideOutFromRight;-webkit-animation-duration:0.5s;animation-duration:0.5s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}:host(.right.open) .sidebar{-webkit-animation-name:slideInFromRight;animation-name:slideInFromRight;-webkit-animation-duration:0.5s;animation-duration:0.5s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}:host(.right) .sidebar{max-width:480px}:host(.right) vviinn-vpr-widget::part(recommendations-grid){display:grid;grid-template-columns:repeat(2, 1fr);grid-gap:24px}:host(.right) vviinn-vpr-widget{overflow:auto}:host(.right) vviinn-vpr-widget::part(image){border:none}.title{font-style:normal;font-weight:500;font-size:28px;line-height:40px;text-align:center;color:#000000}vviinn-vpr-widget::part(title),vviinn-vpr-widget::part(brand),vviinn-vpr-widget::part(type){text-align:left}vviinn-vpr-widget::part(price-container){align-self:start}.close-sidebar{background:transparent;border:none;cursor:pointer;margin:0;padding:0;position:absolute;right:24px;top:24px}@-webkit-keyframes slideInFromBottom{from{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes slideInFromBottom{from{transform:translateY(100%)}to{transform:translateY(0)}}@-webkit-keyframes slideOutFromBottom{from{transform:translateY(0)}to{transform:translateY(100%)}}@keyframes slideOutFromBottom{from{transform:translateY(0)}to{transform:translateY(100%)}}@-webkit-keyframes slideInFromRight{from{transform:translateX(100%)}to{transform:translateX(0)}}@keyframes slideInFromRight{from{transform:translateX(100%)}to{transform:translateX(0)}}@-webkit-keyframes slideOutFromRight{from{transform:translateX(0)}to{transform:translateX(100%)}}@keyframes slideOutFromRight{from{transform:translateX(0)}to{transform:translateX(100%)}}";export{n as vviinn_recommendations_sidebar}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as i}from"./p-
|
|
1
|
+
import{p as e,b as i}from"./p-47183c9a.js";import{g as r}from"./p-ac0a2989.js";(()=>{const i=import.meta.url,r={};return""!==i&&(r.resourcesUrl=new URL(".",i).href),e(r)})().then((e=>(r(),i([["p-d8d49616",[[1,"cropper-handler",{handler:[16],disabled:[4]}]]],["p-9cc6f0dd",[[1,"vviinn-error"]]],["p-b547a6d0",[[1,"vviinn-preloader"]]],["p-d2097302",[[1,"vviinn-vpr-widget",{blockTitle:[1,"block-title"],imageRatio:[2,"image-ratio"],imageWidth:[2,"image-width"],productId:[1,"product-id"],token:[1],currencySign:[1,"currency-sign"],pricePrefix:[1,"price-prefix"],mode:[1],campaignType:[1,"campaign-type"],locale:[1],apiPath:[1,"api-path"],useCarousel:[4,"use-carousel"],showScroll:[4,"show-scroll"],cssUrl:[1,"css-url"],recommendations:[32],loaded:[32]},[[0,"productImageLoaded","handleImageLoading"],[0,"recommendationView","trackRecommendationView"],[0,"recommendationClick","trackRecommendationClick"]]],[0,"vviinn-carousel",{mode:[1],imageWidth:[2,"image-width"],showScroll:[4,"show-scroll"],recommendations:[16],moveDirection:[32],contentGroups:[32],activeContentGroup:[32]}],[1,"vviinn-product-card",{brand:[1],currency:[1],deeplink:[1],image:[1],imageRatio:[2,"image-ratio"],imageWidth:[2,"image-width"],locale:[1],price:[2],pricePrefix:[1,"price-prefix"],productId:[1,"product-id"],productTitle:[1,"product-title"],productType:[1,"product-type"],salePrice:[2,"sale-price"],responsive:[4],dimmedBackground:[4,"dimmed-background"],index:[2],imageLoaded:[32]}]]],["p-535611cd",[[1,"vviinn-image-view"],[1,"vviinn-onboarding"],[1,"vviinn-example-images",null,[[0,"exampleImageSelected","handleImageSelection"],[0,"exampleImageError","handleImageSelectionError"]]],[1,"vviinn-overlayed-modal",{active:[4]}],[1,"vviinn-empty-results"],[1,"vviinn-image-selector"],[1,"vviinn-server-error"],[1,"vviinn-wrong-format"],[1,"search-filters",{filter:[16],selectedCategoryId:[32],hideFilters:[32]}],[1,"vviinn-privacy-badge"],[1,"vviinn-teaser"],[1,"image-cropper",{disabled:[4],handleMove:[32]}],[1,"vviinn-example-image",{src:[1],width:[2],height:[2],selected:[32]}],[1,"highlight-box"],[1,"vviinn-detected-object",{detectedObject:[16],position:[32]}],[1,"vviinn-modal",{active:[1540],slider:[32]}],[1,"vviinn-onboarding-card-1"],[1,"vviinn-onboarding-card-2"],[1,"vviinn-onboarding-card-3"],[1,"vviinn-overlay"],[1,"vviinn-slide"],[1,"vviinn-slider",{showBullets:[4,"show-bullets"],position:[514],showArrows:[4,"show-arrows"],elementsCount:[32],internalPosition:[32],swipeStartPosition:[32]}]]],["p-ad29e9c5",[[1,"vviinn-vps-widget",{token:[1],apiPath:[1,"api-path"],active:[1028],currencySign:[1,"currency-sign"],locale:[1],slidePosition:[32],width:[32],wrongImageFormat:[32]},[[0,"recommendationView","trackRecommendationView"],[0,"recommendationClick","trackRecommendationClick"],[0,"cropperChanged","trachSearchAreaChanges"],[0,"detectedObjectClicked","trackDetectedObject"],[0,"filterSelected","trackFilter"]]]]],["p-2e6ecda7",[[1,"vviinn-vps-button",{token:[1],currencySign:[1,"currency-sign"],locale:[1],apiPath:[1,"api-path"],pressed:[32]},[[0,"modalClosed","handleModalClosed"]]]]],["p-f9410382",[[1,"vviinn-recommendations-sidebar",{sidebarTitle:[1,"sidebar-title"],token:[1],productId:[1,"product-id"],position:[1],sourceImage:[1,"source-image"],widgetScrollbar:[4,"widget-scrollbar"],state:[32]},[[16,"click","bodyClickListener"]]]]],["p-0a9cee09",[[1,"vviinn-vpr-button",{token:[1],productId:[1,"product-id"],position:[1],sourceImage:[1,"source-image"],sidebarTitle:[1,"sidebar-title"],modalScrollbar:[4,"modal-scrollbar"]}]]]],e))));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vviinn-widgets",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.3",
|
|
4
4
|
"description": "vviinn web components",
|
|
5
5
|
"main": "./dist/index.cjs.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
"www/"
|
|
16
16
|
],
|
|
17
17
|
"scripts": {
|
|
18
|
-
"preinstall": "npm run artifactregistry-login",
|
|
19
18
|
"build": "stencil build --docs",
|
|
19
|
+
"postbuild": "cp .npmrc ./dist",
|
|
20
20
|
"build.watch": "stencil build --watch --docs",
|
|
21
21
|
"build.docs": "stencil build --docs",
|
|
22
22
|
"build_interfaces": "node ./scripts/generate-interfaces.js ./src/interfaces/generated.ts",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@types/google.analytics": "0.0.41",
|
|
38
38
|
"@types/gtag.js": "0.0.4",
|
|
39
39
|
"@types/node": "^14.14.22",
|
|
40
|
-
"
|
|
40
|
+
"vviinn-tracking-client-ts": "^1.0.0",
|
|
41
41
|
"dotenv": "^8.2.0",
|
|
42
42
|
"enhanced-ecommerce-types": "0.0.3",
|
|
43
43
|
"fp-ts": "^2.11",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as o,H as s}from"./p-
|
|
1
|
+
import{r as t,h as o,H as s}from"./p-47183c9a.js";import{V as i}from"./p-b4caf042.js";let n=class{constructor(o){t(this,o),this.position="bottom",this.sourceImage=null,this.sidebarTitle="Visually similar products",this.modalScrollbar=!1,this.sidebar=null,this.sidebarCloseListener=()=>{document.body.removeChild(this.sidebar)}}render(){return o(s,null,o("button",{class:"open-button",part:"button",onClick:()=>this.handleClick()},o("slot",null,o(i,null))))}handleClick(){const t=document.createElement("vviinn-recommendations-sidebar");t.sidebarTitle=this.sidebarTitle,t.productId=this.productId,t.token=this.token,t.position=this.position,t.sourceImage=this.sourceImage,t.widgetScrollbar=this.modalScrollbar,this.sidebar=t,t.addEventListener("modalClosed",this.sidebarCloseListener),document.body.append(this.sidebar)}disconnectedCallback(){this.sidebar.removeEventListener("modalCLosed",this.sidebarCloseListener),document.body.removeChild(this.sidebar)}};n.style=":host{display:block}.open-button{align-items:center;background:rgba(255, 255, 255, 0.8);border-radius:50%;border:none;box-shadow:0px 2px 6px rgba(0, 0, 0, 0.15);box-sizing:border-box;cursor:pointer;display:grid;height:40px;justify-items:center;padding:0;width:40px;transition:all 0.25s ease-in-out}.open-button:hover{box-shadow:0px 2px 6px rgba(0, 0, 0, 0.25)}.open-button:focus{border:2px solid rgba(15, 98, 254, 0.5);outline:none}.open-button:active{background:#F4F4F4;outline:none}";export{n as vviinn_vpr_button}
|