@everymatrix/casino-game-thumb-view 1.56.0 → 1.56.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/casino-game-thumb-view/casino-game-thumb-view.esm.js +1 -1
- package/dist/casino-game-thumb-view/{p-600af885.entry.js → p-0f03c743.entry.js} +1 -1
- package/dist/casino-game-thumb-view/p-358a4af8.entry.js +7 -0
- package/dist/casino-game-thumb-view/p-4ece4698.js +8 -0
- package/dist/casino-game-thumb-view/p-74a4ae4a.entry.js +1 -0
- package/dist/casino-game-thumb-view/p-a0c26052.entry.js +1 -0
- package/dist/casino-game-thumb-view/p-b5a64db5.js +2 -0
- package/dist/casino-game-thumb-view/p-d6ec6d6a.entry.js +1 -0
- package/dist/casino-game-thumb-view/p-fd38189d.entry.js +1 -0
- package/dist/cjs/casino-extrainfo-baccarat.cjs.entry.js +5 -1
- package/dist/cjs/casino-extrainfo-blackjack.cjs.entry.js +6 -1
- package/dist/cjs/casino-extrainfo-roulette.cjs.entry.js +4 -4
- package/dist/cjs/casino-game-thumb-view.cjs.js +2 -2
- package/dist/cjs/casino-game-thumb-view_2.cjs.entry.js +41 -52
- package/dist/cjs/casino-game-thumbnail-betlimit_2.cjs.entry.js +8 -3
- package/dist/cjs/casino-normal-game-thumbnail.cjs.entry.js +2 -1
- package/dist/cjs/{index-b36c6933.js → index-81c5b70d.js} +136 -289
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{utils-c4ed3adc.js → utils-21e506f8.js} +365 -368
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/casino-extrainfo-baccarat/casino-extrainfo-baccarat.js +4 -4
- package/dist/collection/components/casino-extrainfo-blackjack/casino-extrainfo-blackjack.js +7 -2
- package/dist/collection/components/casino-extrainfo-roulette/casino-extrainfo-roulette.js +3 -5
- package/dist/collection/components/casino-game-thumb-view/casino-game-thumb-view.js +33 -99
- package/dist/collection/components/casino-game-thumbnail-betlimit/casino-game-thumbnail-betlimit.js +3 -5
- package/dist/collection/components/casino-game-thumbnail-extrainfo/casino-game-thumbnail-extrainfo.js +4 -3
- package/dist/collection/components/casino-game-thumbnail-overlay/casino-game-thumbnail-overlay.js +6 -27
- package/dist/collection/components/casino-normal-game-thumbnail/casino-normal-game-thumbnail.js +3 -2
- package/dist/esm/casino-extrainfo-baccarat.entry.js +5 -1
- package/dist/esm/casino-extrainfo-blackjack.entry.js +6 -1
- package/dist/esm/casino-extrainfo-roulette.entry.js +4 -4
- package/dist/esm/casino-game-thumb-view.js +3 -3
- package/dist/esm/casino-game-thumb-view_2.entry.js +41 -52
- package/dist/esm/casino-game-thumbnail-betlimit_2.entry.js +8 -3
- package/dist/esm/casino-normal-game-thumbnail.entry.js +2 -1
- package/dist/esm/{index-23b4a4c5.js → index-8058a16f.js} +136 -289
- package/dist/esm/loader.js +2 -2
- package/dist/esm/{utils-090ac2e9.js → utils-d11d0845.js} +365 -368
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/casino-game-thumb-view/.stencil/packages/stencil/casino-game-thumb-view/stencil.config.d.ts +2 -0
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/casino-game-thumb-view/.stencil/packages/stencil/casino-game-thumb-view/stencil.config.dev.d.ts +2 -0
- package/dist/types/stencil-public-runtime.d.ts +0 -6
- package/package.json +1 -1
- package/dist/casino-game-thumb-view/p-13741d4d.js +0 -2
- package/dist/casino-game-thumb-view/p-53ba085b.entry.js +0 -1
- package/dist/casino-game-thumb-view/p-b13b5c25.entry.js +0 -1
- package/dist/casino-game-thumb-view/p-c6ee2783.entry.js +0 -1
- package/dist/casino-game-thumb-view/p-d2580653.js +0 -8
- package/dist/casino-game-thumb-view/p-dd797f50.entry.js +0 -7
- package/dist/casino-game-thumb-view/p-ee2bdcce.entry.js +0 -1
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-game-thumb-view/.stencil/packages/stencil/casino-game-thumb-view/stencil.config.d.ts +0 -2
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-game-thumb-view/.stencil/packages/stencil/casino-game-thumb-view/stencil.config.dev.d.ts +0 -2
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-game-thumb-view/.stencil/tools/plugins/index.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-game-thumb-view/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-game-thumb-view/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-game-thumb-view/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
@@ -1 +1 @@
|
|
1
|
-
import{p as e,b as a}from"./p-
|
1
|
+
import{p as e,b as a}from"./p-b5a64db5.js";export{s as setNonce}from"./p-b5a64db5.js";import{g as n}from"./p-e1255160.js";(()=>{const a=import.meta.url,n={};return""!==a&&(n.resourcesUrl=new URL(".",a).href),e(n)})().then((async e=>(await n(),a([["p-74a4ae4a",[[4,"casino-game-thumbnail-extrainfo",{language:[1],betLimit:[32],gameInfo:[32],gameDetails:[32],onGameLoaded:[64],onGameDetailUpdated:[64]}],[0,"casino-game-thumbnail-betlimit",{betLimit:[16],numberOfPlayers:[2,"number-of-players"]}]]],["p-0f03c743",[[0,"casino-extrainfo-baccarat",{language:[1],showRoundBoard:[4,"show-round-board"],gameInfo:[32],gameDetails:[32],onGameLoaded:[64],onGameDetailUpdated:[64],onBaccaratResultChanged:[64]},null,{gameDetails:["gameDetailsHandler"]}]]],["p-a0c26052",[[0,"casino-extrainfo-blackjack",{language:[1],gameInfo:[32],gameDetails:[32],seatsStatus:[32],isTableFull:[32],onGameLoaded:[64],onGameDetailUpdated:[64]}]]],["p-fd38189d",[[0,"casino-extrainfo-roulette",{language:[1],gameInfo:[32],gameDetails:[32],showLiveClass:[32],onGameLoaded:[64],onGameDetailUpdated:[64]}]]],["p-d6ec6d6a",[[0,"casino-normal-game-thumbnail",{language:[1],onGameLoaded:[64]}]]],["p-358a4af8",[[1,"casino-game-thumb-view",{language:[1],endpoint:[1],userId:[8,"user-id"],showGameName:[4,"show-game-name"],session:[1],showFavoredCategory:[4,"show-favored-category"],clientStyling:[1,"client-styling"],clientStylingUrl:[1,"client-styling-url"],integratedGameframeMobile:[4,"integrated-gameframe-mobile"],gamepageModalurl:[1,"gamepage-modalurl"],integratedGameframeDesktop:[4,"integrated-gameframe-desktop"],loadDetails:[4,"load-details"],showRoundBoard:[4,"show-round-board"],visibilityConnect:[1,"visibility-connect"],connectLive:[1,"connect-live"],gameCategory:[1,"game-category"],livelobbyEndpoint:[1,"livelobby-endpoint"],gameId:[8,"game-id"],gameName:[1,"game-name"],subVendor:[1,"sub-vendor"],gameVendor:[1,"game-vendor"],hasFunMode:[4,"has-fun-mode"],hasAnonymousFunMode:[4,"has-anonymous-fun-mode"],platform:[1],thumbnail:[1],isFavorite:[4,"is-favorite"],isNew:[4,"is-new"],cellSize:[1,"cell-size"],gameTag:[1,"game-tag"],type:[1],gameInfo:[32],isTableFull:[32],hover:[32]},[[1,"mouseenter","handleMouseOver"],[1,"mouseleave","handleMouseOver"],[4,"gameFavorited","gameFavoritedHandler"],[0,"gameDetailChange","gameDetailChangeHandler"]],{session:["onSessionChanged"],userId:["onSessionChanged"],isTableFull:["onTableFullChanged"],connectLive:["connectLiveHandler"],visibilityConnect:["visibilityConnectHandler"]}],[4,"casino-game-thumbnail-overlay",{gamepageModalurl:[1,"gamepage-modalurl"],integratedGameframeMobile:[4,"integrated-gameframe-mobile"],integratedGameframeDesktop:[4,"integrated-gameframe-desktop"],language:[1],gameName:[1,"game-name"],gameVendor:[1,"game-vendor"],gameId:[8,"game-id"],hasFunMode:[4,"has-fun-mode"]}]]]],e))));
|
@@ -1 +1 @@
|
|
1
|
-
import{r as t,h as i,H as s}from"./p-
|
1
|
+
import{r as t,h as i,H as s}from"./p-b5a64db5.js";import{b as n}from"./p-2d02adb1.js";var a,e;!function(t){t.ROULETTE="ROULETTE",t.POKER="POKER",t.BLACKJACK="BLACKJACK"}(a||(a={})),function(t){t.PLAYER="Player",t.WINNER="Banker",t.TIE="Tie"}(e||(e={}));class h{constructor(){this.svgNS="http://www.w3.org/2000/svg",this.svgVersion="1.1",this.markGroupExtraClass={name:"",strokeWidth:1.8,cellPadding:6}}resetSvg(){this.svgGroupObj.innerHTML=""}createTag(t,i){let s=document.createElementNS(this.svgNS,t);return Object.keys(i).forEach((t=>{s.setAttribute(t,i[t])})),s}createHLine(t){return this.createTag("line",{x1:0,x2:this.svgWidth,y1:t*this.cellHeight,y2:t*this.cellHeight})}createVLine(t){return this.createTag("line",{x1:t*this.cellWidth,x2:t*this.cellWidth,y1:0,y2:this.svgHeight})}createBaccaratBoard(t){this.parentEle=t,this.svgWidth=t.clientWidth,this.cellWidth=this.svgWidth/40,this.cellHeight=this.cellWidth,this.svgHeight=6*this.cellHeight;let i={};this.svgWidth<300?i={name:"Min",strokeWidth:.8,cellPadding:2}:this.svgWidth>=300&&this.svgWidth<500&&(i={name:"Mid",strokeWidth:1.5,cellPadding:3.8}),this.markGroupExtraClass=Object.assign(Object.assign({},this.markGroupExtraClass),i),this.markGroupExtraClass.fontSize=this.cellWidth-.8*this.markGroupExtraClass.cellPadding,this.markGroupExtraClass.pairDotR=this.markGroupExtraClass.strokeWidth/2,this.markGroupExtraClass.pairBackDotR=this.markGroupExtraClass.pairDotR+.4;let s=this.createTag("svg",{xmlns:this.svgNS,version:this.svgVersion,width:"100%"}),n=this.createTag("g",{style:"cursor: pointer",stroke:"#a1acb696","stroke-width":"0.6px",fill:"transparent"}),a=this.createTag("g",{style:"cursor: pointer",class:`BoardRoundsGroup ${this.markGroupExtraClass.name}`,"stroke-width":this.markGroupExtraClass.strokeWidth,fill:"transparent"});for(let t=0;t<7;t++)n.appendChild(this.createHLine(t));for(let t=0;t<41;t++)n.appendChild(this.createVLine(t));t.setAttribute("style",`height: ${this.svgHeight}px`),s.appendChild(n),s.appendChild(a),t.replaceChildren(s),this.svgGroupObj=a}getRadius(){return(this.cellHeight-this.markGroupExtraClass.cellPadding)/2}addAnimate(t){let i=this.createTag("animate",{attributeName:"opacity",attributeType:"XML",from:"0",to:.8,repeatCount:"5",begin:"0s",dur:"1.5s",calcMode:"spline",keySplines:"0.1 0.8 0.9 0.1",fill:"freeze"});t.appendChild(i)}markNewRound(t,i,s,n=!1){let a=this.getCenterPoint(t,i),h=this.createTag("g",{class:`Round ${n?"NewRound":""} ${s.winner===e.TIE?"Tie":""}`,part:"Round "+(n?"NewRound":""),opacity:n?.1:1});if(s.winner!==e.TIE){if(h.appendChild(this.createTag("circle",{r:this.getRadius(),class:"Round",stroke:s.color,cx:t*this.cellHeight+this.cellHeight/2,cy:i*this.cellHeight+this.cellHeight/2})),s.ties){if(h.appendChild(this.createTieSvg(t,i)),s.ties>1){let t=this.createTag("text",{x:a.cx-1.5,y:a.cy+this.markGroupExtraClass.fontSize/2-1.1,fill:"#12153d",class:"TieNumber","font-size":`${this.markGroupExtraClass.fontSize}px`,"font-weight":this.markGroupExtraClass.fontSize>7?"bold":""});t.innerHTML=s.ties,h.appendChild(t)}this.svgGroupObj.appendChild(h)}s.bankerPair&&this.createPairDot(t,i,s.pairColor.banker,225).forEach((t=>h.appendChild(t))),s.playerPair&&this.createPairDot(t,i,s.pairColor.player,45).forEach((t=>h.appendChild(t))),s.includeAnimate&&this.addAnimate(h),this.svgGroupObj.appendChild(h)}else{if(h.appendChild(this.createTieSvg(t,i)),this.svgGroupObj.appendChild(h),s.ties&&s.ties>1){let t=this.createTag("text",{x:a.cx-1.5,y:a.cy+this.markGroupExtraClass.fontSize/2-1.1,fill:"#12153d",class:"TieNumber","font-size":`${this.markGroupExtraClass.fontSize}px`,"font-weight":this.markGroupExtraClass.fontSize>7?"bold":""});t.innerHTML=s.ties,h.appendChild(t)}this.svgGroupObj.appendChild(h)}}markRound(t,i,s,n=!1){let a=this.createTag("circle",{r:this.getRadius(),class:"Round",stroke:s,cx:t*this.cellHeight+this.cellHeight/2,cy:i*this.cellHeight+this.cellHeight/2});n&&this.addAnimate(a),this.svgGroupObj.appendChild(a)}getCenterPoint(t,i){return{cx:t*this.cellHeight+this.cellHeight/2,cy:i*this.cellHeight+this.cellHeight/2}}createTieSvg(t,i){let s=this.getCenterPoint(t,i),n=this.cellHeight/2;const a=s.cx+n*Math.cos(135*Math.PI/180),e=s.cy+n*Math.sin(135*Math.PI/180),h=s.cx+n*Math.cos(315*Math.PI/180),o=s.cy+n*Math.sin(315*Math.PI/180);return this.createTag("line",{x1:a,y1:e,x2:h,y2:o,class:"Tie",stroke:"green",opacity:"0.8","stroke-width":"1.8px"})}createPairDot(t,i,s,n){let a=this.getCenterPoint(t,i),e=this.getRadius()+this.markGroupExtraClass.pairDotR;const h=a.cx+e*Math.cos(n*Math.PI/180),o=a.cy+e*Math.sin(n*Math.PI/180);return[this.createTag("circle",{cx:h,cy:o,r:this.markGroupExtraClass.pairBackDotR,class:"DotBack",stroke:"#fff"}),this.createTag("circle",{cx:h,cy:o,r:this.markGroupExtraClass.pairDotR,class:"Dot",stroke:s,"stroke-width":"0.8px",fill:s})]}markTie(t,i,s=!1){let n=this.createTieSvg(t,i);s&&this.addAnimate(n),this.svgGroupObj.appendChild(n)}markPair(t,i,s,n){let a=this.getCenterPoint(t,i),e=this.getRadius()+this.markGroupExtraClass.pairDotR;const h=a.cx+e*Math.cos(n*Math.PI/180),o=a.cy+e*Math.sin(n*Math.PI/180);this.svgGroupObj.appendChild(this.createTag("circle",{cx:h,cy:o,r:this.markGroupExtraClass.pairBackDotR,class:"DotBack",stroke:"#fff"})),this.svgGroupObj.appendChild(this.createTag("circle",{cx:h,cy:o,r:this.markGroupExtraClass.pairDotR,class:"Dot",stroke:s,"stroke-width":"0.8px",fill:s}))}markBankerPair(t,i,s){this.markPair(t,i,s,225)}markPlayerPair(t,i,s){this.markPair(t,i,s,45)}}const o=class{constructor(i){t(this,i),this.baccaratSvg=new h,this.isBoardInited=!1,this.filledCells=[],this.language=void 0,this.showRoundBoard=void 0,this.gameInfo=void 0,this.gameDetails=void 0}gameDetailsHandler(t,i){!t.isOpen||i&&i.isOpen||this.showRoundBoard&&setTimeout((()=>{this.initBaccaratRoundsBoard()}),100)}async onGameLoaded(t){var i;this.gameInfo=t,this.gameDetails=this.gameInfo.details,null===(i=this.infoWrapperRef)||void 0===i||i.onGameLoaded(this.gameInfo)}async onGameDetailUpdated(t){var i;this.gameInfo.details=this.gameDetails=t,this.gameDetails=Object.assign({},this.gameDetails),null===(i=this.infoWrapperRef)||void 0===i||i.onGameDetailUpdated(t),setTimeout((()=>{this.isBoardInited=!0}),200)}async onBaccaratResultChanged(t){if(!t||!this.baccaratRef||this.isResetingRoundBoard)return;let i;this.isBoardInited&&(0==t.length||1==t.length&&(t[0].winner==e.TIE||0==t[0].location.column&&0==t[0].location.row))&&(this.isResetingRoundBoard=!0,(()=>{console.log("Reset Baccarat Board."),this.filledCells=[],this.baccaratSvg.resetSvg(),i=null})(),setTimeout((()=>{this.isResetingRoundBoard=!1}),1e3)),t.forEach(((s,a)=>{if(s.winner==e.TIE){if(a==t.length-1&&(!i||i&&0==i.location.column&&0==i.location.row)){let t="0-0-T";-1==this.filledCells.indexOf(t)&&(this.baccaratSvg.markNewRound(0,0,Object.assign(Object.assign({},s),{pairColor:n}),this.isBoardInited),this.filledCells.push(t))}return}const h=`${s.location.column}-${s.location.row}`,o=`${h}-T`;s.ties>0&&-1==this.filledCells.indexOf(o)&&(this.baccaratSvg.markNewRound(s.location.column,s.location.row,Object.assign(Object.assign({},s),{winner:e.TIE}),this.isBoardInited),this.filledCells.push(o)),i=s,-1==this.filledCells.indexOf(h)&&(this.baccaratSvg.markNewRound(s.location.column,s.location.row,Object.assign(Object.assign({},s),{pairColor:n}),this.isBoardInited),this.filledCells.push(h))}))}initBaccaratRoundsBoard(){var t;this.baccaratSvg.createBaccaratBoard(this.baccaratRef),(null===(t=this.gameDetails.results)||void 0===t?void 0:t.length)>0&&this.onBaccaratResultChanged(this.gameDetails.results)}render(){var t;return i(s,{key:"88be397ce6762f3a57c76c84b40f48dc2ba23db7"},i("casino-game-thumbnail-extrainfo",{key:"177c57f40ef84d7dfa0f458336e558e195aa9ac6",ref:t=>this.infoWrapperRef=t,language:this.language},(null===(t=this.gameDetails)||void 0===t?void 0:t.isOpen)&&this.showRoundBoard&&i("div",{key:"7b2db6ad68e6d9bcac9b97785b2c05b05d146836",slot:"category-details",class:"LiveIcons",part:"LiveIcons"},i("div",{key:"004301f9c4f9bb574757e4eace077bd9fac57472",id:"boardContainer",part:"BaccaratBoard",class:"BaccaratBoard",ref:t=>this.baccaratRef=t}))))}static get watchers(){return{gameDetails:["gameDetailsHandler"]}}};o.style=":host {\n display: block;\n}\n\n.BaccaratBoard {\n container-type: inline-size;\n min-height: 30px;\n width: 100%;\n}\n.BaccaratBoard svg {\n background: #fff;\n opacity: 0.99;\n height: 100%;\n}\n\n.LiveProps.BaccaratProps div.LiveIcons {\n margin-bottom: 0px;\n padding: 0px;\n width: 100%;\n}\n\nsvg circle {\n transition: stroke-dashoffset 0s ease 2s;\n}\n\ng.BoardRoundsGroup {\n stroke-width: 1.8px;\n}\n\n@container (max-width: 300px) {\n g.BoardRoundsGroup {\n stroke-width: 0.9px;\n }\n}\nsvg .Round.NewRound {\n opacity: 1;\n -webkit-animation-name: fadeInFromNone;\n animation-name: fadeInFromNone;\n -webkit-animation-duration: 1.5s;\n animation-duration: 1.5s;\n -webkit-animation-fill-mode: both;\n animation-fill-mode: both;\n}\n\n@-webkit-keyframes fadeInFromNone {\n 0% {\n display: none;\n opacity: 0;\n }\n 1% {\n display: block;\n opacity: 0;\n }\n 100% {\n display: block;\n opacity: 1;\n }\n}\n@-moz-keyframes fadeInFromNone {\n 0% {\n display: none;\n opacity: 0;\n }\n 1% {\n display: block;\n opacity: 0;\n }\n 100% {\n display: block;\n opacity: 1;\n }\n}\n@-o-keyframes fadeInFromNone {\n 0% {\n display: none;\n opacity: 0;\n }\n 1% {\n display: block;\n opacity: 0;\n }\n 30% {\n display: block;\n opacity: 1;\n }\n 60% {\n display: block;\n opacity: 0;\n }\n 100% {\n display: block;\n opacity: 1;\n }\n}\n@keyframes fadeInFromNone {\n 0% {\n display: none;\n opacity: 0;\n }\n 1% {\n display: block;\n opacity: 0;\n }\n 30% {\n display: block;\n opacity: 1;\n }\n 60% {\n display: block;\n opacity: 0;\n }\n 100% {\n display: block;\n opacity: 1;\n }\n}";export{o as casino_extrainfo_baccarat}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import{r as t,c as e,h as i}from"./p-b5a64db5.js";import{c as n,i as a}from"./p-4ece4698.js";import{G as o,a as s,W as r}from"./p-2d02adb1.js";import{t as h}from"./p-59ceeaaa.js";var l,c,d="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},m={exports:{}};
|
2
|
+
/** @license
|
3
|
+
* eventsource.js
|
4
|
+
* Available under MIT License (MIT)
|
5
|
+
* https://github.com/Yaffle/EventSource/
|
6
|
+
*/
|
7
|
+
l=m,c=m.exports,function(t){var e=t.setTimeout,i=t.clearTimeout,n=t.XMLHttpRequest,a=t.XDomainRequest,o=t.ActiveXObject,s=t.EventSource,r=t.document,h=t.Promise,d=t.fetch,m=t.Response,u=t.TextDecoder,g=t.TextEncoder,f=t.AbortController;if("undefined"==typeof window||void 0===r||"readyState"in r||null!=r.body||(r.readyState="loading",window.addEventListener("load",(function(){r.readyState="complete"}),!1)),null==n&&null!=o&&(n=function(){return new o("Microsoft.XMLHTTP")}),null==Object.create&&(Object.create=function(t){function e(){}return e.prototype=t,new e}),Date.now||(Date.now=function(){return(new Date).getTime()}),null==f){var p=d;d=function(t,e){var i=e.signal;return p(t,{headers:e.headers,credentials:e.credentials,cache:e.cache}).then((function(t){var e=t.body.getReader();return i._reader=e,i._aborted&&i._reader.cancel(),{status:t.status,statusText:t.statusText,headers:t.headers,body:{getReader:function(){return e}}}}))},f=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){null!=this.signal._reader&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function v(){this.bitsNeeded=0,this.codePoint=0}v.prototype.decode=function(t){function e(t,e,i){if(1===i)return t>=128>>e&&t<<e<=2047;if(2===i)return t>=2048>>e&&t<<e<=55295||t>=57344>>e&&t<<e<=65535;if(3===i)return t>=65536>>e&&t<<e<=1114111;throw new Error}function i(t,e){if(6===t)return e>>6>15?3:e>31?2:1;if(12===t)return e>15?3:2;if(18===t)return 3;throw new Error}for(var n=65533,a="",o=this.bitsNeeded,s=this.codePoint,r=0;r<t.length;r+=1){var h=t[r];0!==o&&(h<128||h>191||!e(s<<6|63&h,o-6,i(o,s)))&&(o=0,s=n,a+=String.fromCharCode(s)),0===o?(h>=0&&h<=127?(o=0,s=h):h>=192&&h<=223?(o=6,s=31&h):h>=224&&h<=239?(o=12,s=15&h):h>=240&&h<=247?(o=18,s=7&h):(o=0,s=n),0===o||e(s,o,i(o,s))||(o=0,s=n)):(o-=6,s=s<<6|63&h),0===o&&(s<=65535?a+=String.fromCharCode(s):(a+=String.fromCharCode(55296+(s-65535-1>>10)),a+=String.fromCharCode(56320+(s-65535-1&1023))))}return this.bitsNeeded=o,this.codePoint=s,a},null!=u&&null!=g&&function(){try{return"test"===(new u).decode((new g).encode("test"),{stream:!0})}catch(t){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+t)}return!1}()||(u=v);var w=function(){};function b(t){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=w,this.onload=w,this.onerror=w,this.onreadystatechange=w,this._contentType="",this._xhr=t,this._sendTimeout=0,this._abort=w}function I(t){return t.replace(/[A-Z]/g,(function(t){return String.fromCharCode(t.charCodeAt(0)+32)}))}function C(t){for(var e=Object.create(null),i=t.split("\r\n"),n=0;n<i.length;n+=1){var a=i[n].split(": "),o=a.shift(),s=a.join(": ");e[I(o)]=s}this._map=e}function M(){}function L(t){this._headers=t}function G(){}function y(){this._listeners=Object.create(null)}function x(t){e((function(){throw t}),0)}function T(t){this.type=t,this.target=void 0}function j(t,e){T.call(this,t),this.data=e.data,this.lastEventId=e.lastEventId}function N(t,e){T.call(this,t),this.status=e.status,this.statusText=e.statusText,this.headers=e.headers}function A(t,e){T.call(this,t),this.error=e.error}b.prototype.open=function(t,a){this._abort(!0);var o=this,s=this._xhr,r=1,h=0;this._abort=function(t){0!==o._sendTimeout&&(i(o._sendTimeout),o._sendTimeout=0),1!==r&&2!==r&&3!==r||(r=4,s.onload=w,s.onerror=w,s.onabort=w,s.onprogress=w,s.onreadystatechange=w,s.abort(),0!==h&&(i(h),h=0),t||(o.readyState=4,o.onabort(null),o.onreadystatechange())),r=0};var l=function(){if(1===r){var t=0,e="",i=void 0;if("contentType"in s)t=200,e="OK",i=s.contentType;else try{t=s.status,e=s.statusText,i=s.getResponseHeader("Content-Type")}catch(n){t=0,e="",i=void 0}0!==t&&(r=2,o.readyState=2,o.status=t,o.statusText=e,o._contentType=i,o.onreadystatechange())}},c=function(){if(l(),2===r||3===r){r=3;var t="";try{t=s.responseText}catch(t){}o.readyState=3,o.responseText=t,o.onprogress()}},d=function(t,e){if(null!=e&&null!=e.preventDefault||(e={preventDefault:w}),c(),1===r||2===r||3===r){if(r=4,0!==h&&(i(h),h=0),o.readyState=4,"load"===t)o.onload(e);else if("error"===t)o.onerror(e);else{if("abort"!==t)throw new TypeError;o.onabort(e)}o.onreadystatechange()}},m=function(){h=e((function(){m()}),500),3===s.readyState&&c()};"onload"in s&&(s.onload=function(t){d("load",t)}),"onerror"in s&&(s.onerror=function(t){d("error",t)}),"onabort"in s&&(s.onabort=function(t){d("abort",t)}),"onprogress"in s&&(s.onprogress=c),"onreadystatechange"in s&&(s.onreadystatechange=function(t){!function(t){null!=s&&(4===s.readyState?"onload"in s&&"onerror"in s&&"onabort"in s||d(""===s.responseText?"error":"load",t):3===s.readyState?"onprogress"in s||c():2===s.readyState&&l())}(t)}),!("contentType"in s)&&"ontimeout"in n.prototype||(a+=(-1===a.indexOf("?")?"?":"&")+"padding=true"),s.open(t,a,!0),"readyState"in s&&(h=e((function(){m()}),0))},b.prototype.abort=function(){this._abort(!1)},b.prototype.getResponseHeader=function(){return this._contentType},b.prototype.setRequestHeader=function(t,e){var i=this._xhr;"setRequestHeader"in i&&i.setRequestHeader(t,e)},b.prototype.getAllResponseHeaders=function(){return null!=this._xhr.getAllResponseHeaders&&this._xhr.getAllResponseHeaders()||""},b.prototype.send=function(){if("ontimeout"in n.prototype&&("sendAsBinary"in n.prototype||"mozAnon"in n.prototype)||null==r||null==r.readyState||"complete"===r.readyState){var t=this._xhr;"withCredentials"in t&&(t.withCredentials=this.withCredentials);try{t.send(void 0)}catch(t){throw t}}else{var i=this;i._sendTimeout=e((function(){i._sendTimeout=0,i.send()}),4)}},C.prototype.get=function(t){return this._map[I(t)]},null!=n&&null==n.HEADERS_RECEIVED&&(n.HEADERS_RECEIVED=2),M.prototype.open=function(t,e,i,a,o,s,r){t.open("GET",o);var h=0;for(var l in t.onprogress=function(){var e=t.responseText.slice(h);h+=e.length,i(e)},t.onerror=function(t){t.preventDefault(),a(new Error("NetworkError"))},t.onload=function(){a(null)},t.onabort=function(){a(null)},t.onreadystatechange=function(){if(t.readyState===n.HEADERS_RECEIVED){var i=t.status,a=t.statusText,o=t.getResponseHeader("Content-Type"),s=t.getAllResponseHeaders();e(i,a,o,new C(s))}},t.withCredentials=s,r)Object.prototype.hasOwnProperty.call(r,l)&&t.setRequestHeader(l,r[l]);return t.send(),t},L.prototype.get=function(t){return this._headers.get(t)},G.prototype.open=function(t,e,i,n,a,o,s){var r=null,l=new f,c=l.signal,m=new u;return d(a,{headers:s,credentials:o?"include":"same-origin",signal:c,cache:"no-store"}).then((function(t){return r=t.body.getReader(),e(t.status,t.statusText,t.headers.get("Content-Type"),new L(t.headers)),new h((function(t,e){var n=function(){r.read().then((function(e){if(e.done)t(void 0);else{var a=m.decode(e.value,{stream:!0});i(a),n()}})).catch((function(t){e(t)}))};n()}))})).catch((function(t){return"AbortError"===t.name?void 0:t})).then((function(t){n(t)})),{abort:function(){null!=r&&r.cancel(),l.abort()}}},y.prototype.dispatchEvent=function(t){t.target=this;var e=this._listeners[t.type];if(null!=e)for(var i=e.length,n=0;n<i;n+=1){var a=e[n];try{"function"==typeof a.handleEvent?a.handleEvent(t):a.call(this,t)}catch(t){x(t)}}},y.prototype.addEventListener=function(t,e){t=String(t);var i=this._listeners,n=i[t];null==n&&(i[t]=n=[]);for(var a=!1,o=0;o<n.length;o+=1)n[o]===e&&(a=!0);a||n.push(e)},y.prototype.removeEventListener=function(t,e){t=String(t);var i=this._listeners,n=i[t];if(null!=n){for(var a=[],o=0;o<n.length;o+=1)n[o]!==e&&a.push(n[o]);0===a.length?delete i[t]:i[t]=a}},j.prototype=Object.create(T.prototype),N.prototype=Object.create(T.prototype),A.prototype=Object.create(T.prototype);var F=/^text\/event\-stream(;.*)?$/i,D=function(t,e){var i=null==t?e:parseInt(t,10);return i!=i&&(i=e),k(i)},k=function(t){return Math.min(Math.max(t,1e3),18e6)},z=function(t,e,i){try{"function"==typeof e&&e.call(t,i)}catch(t){x(t)}};function O(t,o){y.call(this),o=o||{},this.onopen=void 0,this.onmessage=void 0,this.onerror=void 0,this.url=void 0,this.readyState=void 0,this.withCredentials=void 0,this.headers=void 0,this._close=void 0,function(t,o,s){o=String(o);var r=Boolean(s.withCredentials),h=s.lastEventIdQueryParameterName||"lastEventId",l=k(1e3),c=D(s.heartbeatTimeout,45e3),d="",m=l,u=!1,g=0,f=s.headers||{},p=s.Transport,v=S&&null==p?void 0:new b(null!=p?new p:null!=n&&"withCredentials"in n.prototype||null==a?new n:new a),w=null!=p&&"string"!=typeof p?new p:null==v?new G:new M,I=void 0,C=0,L=-1,y="",x="",T="",O="",E=0,B=0,U=0,Q=function(e,i,n,a){if(0===L)if(200===e&&null!=n&&F.test(n)){L=1,u=Date.now(),m=l,t.readyState=1;var o=new N("open",{status:e,statusText:i,headers:a});t.dispatchEvent(o),z(t,t.onopen,o)}else{var s="";200!==e?(i&&(i=i.replace(/\s+/g," ")),s="EventSource's response has a status "+e+" "+i+" that is not 200. Aborting the connection."):s="EventSource's response has a Content-Type specifying an unsupported type: "+(null==n?"-":n.replace(/\s+/g," "))+". Aborting the connection.",W(),o=new N("error",{status:e,statusText:i,headers:a}),t.dispatchEvent(o),z(t,t.onerror,o),console.error(s)}},Y=function(n){if(1===L){for(var a=-1,o=0;o<n.length;o+=1)(h=n.charCodeAt(o))!=="\n".charCodeAt(0)&&h!=="\r".charCodeAt(0)||(a=o);var s=(-1!==a?O:"")+n.slice(0,a+1);O=(-1===a?O:"")+n.slice(a+1),""!==n&&(u=Date.now(),g+=n.length);for(var r=0;r<s.length;r+=1){var h=s.charCodeAt(r);if(-1===E&&h==="\n".charCodeAt(0))E=0;else if(-1===E&&(E=0),h==="\r".charCodeAt(0)||h==="\n".charCodeAt(0)){if(0!==E){1===E&&(U=r+1);var f=s.slice(B,U-1),p=s.slice(U+(U<r&&s.charCodeAt(U)===" ".charCodeAt(0)?1:0),r);"data"===f?(y+="\n",y+=p):"id"===f?x=p:"event"===f?T=p:"retry"===f?(l=D(p,l),m=l):"heartbeatTimeout"===f&&(c=D(p,c),0!==C&&(i(C),C=e((function(){R()}),c)))}if(0===E){if(""!==y){d=x,""===T&&(T="message");var v=new j(T,{data:y.slice(1),lastEventId:x});if(t.dispatchEvent(v),"open"===T?z(t,t.onopen,v):"message"===T?z(t,t.onmessage,v):"error"===T&&z(t,t.onerror,v),2===L)return}y="",T=""}E=h==="\r".charCodeAt(0)?-1:0}else 0===E&&(B=r,E=1),1===E?h===":".charCodeAt(0)&&(U=r+1,E=2):2===E&&(E=3)}}},P=function(n){if(1===L||0===L){L=-1,0!==C&&(i(C),C=0),C=e((function(){R()}),m),m=k(Math.min(16*l,2*m)),t.readyState=0;var a=new A("error",{error:n});t.dispatchEvent(a),z(t,t.onerror,a),null!=n&&console.error(n)}},W=function(){L=2,null!=I&&(I.abort(),I=void 0),0!==C&&(i(C),C=0),t.readyState=2},R=function(){if(C=0,-1===L){u=!1,g=0,C=e((function(){R()}),c),L=0,y="",T="",x=d,O="",B=0,U=0,E=0;var i=o;if("data:"!==o.slice(0,5)&&"blob:"!==o.slice(0,5)&&""!==d){var n=o.indexOf("?");i=-1===n?o:o.slice(0,n+1)+o.slice(n+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,(function(t,e){return e===h?"":t})),i+=(-1===o.indexOf("?")?"?":"&")+h+"="+encodeURIComponent(d)}var a=t.withCredentials,s={Accept:"text/event-stream"},r=t.headers;if(null!=r)for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(s[l]=r[l]);try{I=w.open(v,Q,Y,P,i,a,s)}catch(t){throw W(),t}}else if(u||null==I){var m=Math.max((u||Date.now())+c-Date.now(),1);u=!1,C=e((function(){R()}),m)}else P(new Error("No activity within "+c+" milliseconds. "+(0===L?"No response received.":g+" chars received.")+" Reconnecting.")),null!=I&&(I.abort(),I=void 0)};t.url=o,t.readyState=0,t.withCredentials=r,t.headers=f,t._close=W,R()}(this,t,o)}var S=null!=d&&null!=m&&"body"in m.prototype;(O.prototype=Object.create(y.prototype)).CONNECTING=0,O.prototype.OPEN=1,O.prototype.CLOSED=2,O.prototype.close=function(){this._close()},O.CONNECTING=0,O.OPEN=1,O.CLOSED=2,O.prototype.withCredentials=void 0;var E,B=s;null==n||null!=s&&"withCredentials"in s.prototype||(B=O),E=function(t){t.EventSourcePolyfill=O,t.NativeEventSource=s,t.EventSource=B}(c),void 0!==E&&(l.exports=E)}("undefined"==typeof globalThis?"undefined"!=typeof window?window:"undefined"!=typeof self?self:d:globalThis);const u=class{constructor(i){t(this,i),this.toggleFavoriteCasinoGameEvent=e(this,"toggleCasinoGameFavorite",7),this.thumbnailLoaded=!1,this.containerClassWhenDetailChange="",this.isUserLoggedIn=!1,this.limitStylingAppends=!1,this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)},this.setClientStylingURL=()=>{let t=new URL(this.clientStylingUrl),e=document.createElement("style");fetch(t.href).then((t=>t.text())).then((t=>{e.innerHTML=t,setTimeout((()=>{this.stylingContainer.prepend(e)}),1)})).catch((t=>{console.error("error ",t)}))},this.getGameCategoryType=()=>this.isLiveCasino&&this.gameCategory&&this.getWidgetTypeByGameCategory(this.gameCategory)?`casino-extrainfo-${this.getWidgetTypeByGameCategory(this.gameCategory).toLowerCase()}`:"casino-normal-game-thumbnail",this.getGameContainerClass=()=>{let t="GameContainer ";return this.gameInfo&&this.gameInfo&&this.gameInfo.details&&(t+=" ListGame ",this.gameInfo.details.isOpen&&this.gameInfo.details.currentRouletteNumbers&&(t+=" GameBackdrop ")),t},this.language="en",this.endpoint=void 0,this.userId=void 0,this.showGameName=void 0,this.session=void 0,this.showFavoredCategory=void 0,this.clientStyling="",this.clientStylingUrl="",this.integratedGameframeMobile=!1,this.gamepageModalurl=void 0,this.integratedGameframeDesktop=!1,this.loadDetails=!1,this.showRoundBoard=!1,this.visibilityConnect=void 0,this.connectLive=void 0,this.gameCategory="",this.livelobbyEndpoint=void 0,this.gameId=void 0,this.gameName=void 0,this.subVendor=void 0,this.gameVendor=void 0,this.hasFunMode=void 0,this.hasAnonymousFunMode=void 0,this.platform="PC",this.thumbnail=void 0,this.isFavorite=void 0,this.isNew=void 0,this.cellSize=void 0,this.gameTag=void 0,this.type=void 0,this.gameInfo=void 0,this.isTableFull=void 0,this.hover=void 0}onSessionChanged(){this.isUserLoggedIn=!(!this.session||!this.userId)}onTableFullChanged(t,e){null!=e&&(this.containerClassWhenDetailChange=t&&!e?"PulsatingRedShadow":"PulsatingGreenShadow")}handleMouseOver(t){this.hover="mouseenter"===t.type}gameFavoritedHandler(t){this.gameInfo.isFavorite=t.detail[this.gameId],this.gameInfo=Object.assign({},this.gameInfo)}connectLiveHandler(){this.toggleConnect()}visibilityConnectHandler(){this.toggleVisibilityConnect()}gameDetailChangeHandler(t){var e,i;let a=JSON.parse(t.data);if(a.needReconnect&&this.liveLobbyConnection)return this.liveLobbyConnection.close(),this.liveLobbyConnection=null,void this.connectGameToLiveLobby();if(!a||a.InternalTableId!=this.gameId)return;let o=a.MessageType;switch(o){case"TableOpened":case"TableClosed":this.gameInfo.details.isOpen=a.Open;break;case"PlayersUpdated":this.gameInfo.details.numberOfPlayers=a.Players;break;case"RouletteResultsUpdated":this.gameInfo.details.currentRouletteNumbers=a.Results;break;case"DoubleBallRouletteResultsUpdated":this.gameInfo.details.currentDoubleBallRouletteNumbers=a.Results;break;case"SeatsUpdated":this.gameInfo.details.currentOccupiedSeats=a.Seats;break;case"DealerChanged":this.gameInfo.details.dealer=a.Dealer;break;case"BaccaratResultsUpdated":if(this.showRoundBoard){const t=a.Results;this.gameInfo.details.results=[],t.forEach((t=>{this.gameInfo.details.results.push(n(t))})),null===(e=this.extraInfoRef)||void 0===e||e.onBaccaratResultChanged(this.gameInfo.details.results)}}this.resetLiveProperties(),null===(i=this.extraInfoRef)||void 0===i||i.onGameDetailUpdated(this.gameInfo.details),window.postMessage({messageType:o,value:t.data})}messageHandler(t){t.data.type!==`AddFavoriteThumbnail_${this.gameId}`||this.showFavoredCategory||(this.gameInfo.isFavorite=!0),t.data.type!==`RemoveFavoriteThumbnail_${this.gameId}`||this.showFavoredCategory||(this.gameInfo.isFavorite=!1),"UserSessionID"===t.data.type&&(this.isUserLoggedIn=!0,this.session=t.data.session,this.userId=t.data.userID)}resetLiveProperties(){var t,e;const i=this.gameInfo.details;this.isBlackJack(this.gameCategory.toLowerCase())?this.isTableFull=i.totalSeats==(null===(t=i.currentOccupiedSeats)||void 0===t?void 0:t.length):this.isBaccarat(this.gameCategory.toLowerCase())&&(null===(e=i.baccaratResults)||void 0===e?void 0:e.length)>0&&(this.gameInfo.details.results=[],i.baccaratResults.forEach((t=>{this.gameInfo.details.results.push(n(t))})),delete i.baccaratResults)}isBlackJack(t){return t.toLowerCase()===o.BLACKJACK}isBaccarat(t){return t.toLowerCase()===o.BACCARAT}initCtrlProperties(){var t;this.isLiveCasino&&(null===(t=this.gameInfo)||void 0===t?void 0:t.details)&&this.resetLiveProperties(),this.gameInfo=Object.assign({},this.gameInfo),this.triggerExtraInfoLoad(),this.isLiveCasino&&"connect"===this.connectLive&&this.connectGameToLiveLobby()}parseGameResponse(t){1==t.length&&(this.gameInfo=t[0],this.isLiveCasino?this.gameInfo.details?this.parseGameDetailsResponse():this.loadGameDetailInfo():this.initCtrlProperties())}parseGameDetailsResponse(){this.initCtrlProperties()}connectGameToLiveLobby(){EventSource&&!this.liveLobbyConnection&&(this.liveLobbyConnection=new m.exports.EventSourcePolyfill(`${this.endpoint}/v1/encoder/lobby/updates/${this.gameInfo.vendor.name}/${this.gameInfo.id}`),this.liveLobbyConnection.addEventListener("message",(t=>{this.gameDetailChangeHandler(t)})))}disconnectGameFromLiveLobby(){this.liveLobbyConnection&&(this.liveLobbyConnection.removeEventListener("message"),this.liveLobbyConnection.close(),this.liveLobbyConnection=void 0)}toggleConnect(){this.isLiveCasino&&("disconnect"===this.connectLive?this.disconnectGameFromLiveLobby():"connect"===this.connectLive&&this.connectGameToLiveLobby())}toggleVisibilityConnect(){this.isLiveCasino&&("disconnect"===this.visibilityConnect?this.disconnectGameFromLiveLobby():"connect"===this.visibilityConnect&&"connect"===this.connectLive&&this.connectGameToLiveLobby())}loadGameById(){fetch(`${this.endpoint}/v1/casino/games/${this.gameId}?expand=vendor&platform=${this.platform}&language=${this.language}`).then((t=>t.json())).then((t=>this.parseGameResponse(t))).catch((t=>{console.error(t)}))}loadGameInfoByLobbyEndpoint(){let t=new URL(`${this.livelobbyEndpoint.split("?")[0]}`);t.searchParams.append("expand","vendor"),t.searchParams.append("platform",this.platform),t.searchParams.append("language",this.language),fetch(t.toString()).then((t=>t.json())).then((t=>this.parseGameResponse(t))).catch((t=>console.error(t)))}loadGameDetailInfo(){let t=new URL(`${this.endpoint}/v1/lobby/tables/${this.gameId}`);t.searchParams.append("platform",this.platform),t.searchParams.append("language",this.language),fetch(t.toString()).then((t=>t.json())).then((t=>{(null==t?void 0:t.category)&&(this.gameInfo.details=t,this.parseGameDetailsResponse())})).catch((t=>{console.error(t),setTimeout((()=>this.loadGameDetailInfo()),1e3)}))}toggleFavoriteGame(t){let e="thumbnail";this.gameInfo.isFavorite?window.postMessage({type:"SetUnfavoredGame",gameId:t,triggerFactor:e},window.location.href):window.postMessage({type:"SetFavoredGame",gameId:t,triggerFactor:e},window.location.href),this.toggleFavoriteCasinoGameEvent.emit(t)}generateGameInfoByProps(){return{id:this.gameId,name:this.gameName,subVendor:this.subVendor,hasFunMode:this.hasFunMode,hasAnonymousFunMode:this.hasAnonymousFunMode,thumbnail:this.thumbnail,cellSize:this.cellSize,gameTag:this.gameTag,vendor:{href:"",name:this.gameVendor},isFavorite:this.isFavorite,isNew:this.isNew,type:this.type,liveCasinoCategory:this.gameCategory||""}}triggerExtraInfoLoad(){var t,e;this.extraInfoRef=this.extraInfoRef||(null===(t=this.extraInfoSlotRef)||void 0===t?void 0:t.querySelector(this.getGameCategoryType())),null===(e=this.extraInfoRef)||void 0===e||e.onGameLoaded(this.gameInfo),window.postMessage({type:"casinoGameLoaded",gameInfo:this.gameInfo})}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0),this.gameInfo&&this.triggerExtraInfoLoad()}componentDidLoad(){window.addEventListener("message",this.messageHandler)}componentWillLoad(){if(this.isLiveCasino=this.type==s.LIVE_CASINO,this.extraInfoWidget=this.getGameCategoryType(),this.isUserLoggedIn=!(!this.session||!this.userId),!this.isLiveCasino||!this.livelobbyEndpoint)return this.thumbnail?(this.gameInfo=this.generateGameInfoByProps(),void(this.isLiveCasino&&this.endpoint&&this.loadDetails&&this.gameId&&this.loadGameDetailInfo())):void(this.gameId&&this.endpoint&&this.loadGameById());this.loadGameInfoByLobbyEndpoint()}disconnectedCallback(){this.liveLobbyConnection&&this.liveLobbyConnection.removeEventListener("message",this.gameDetailChangeHandler),window.removeEventListener("message",this.messageHandler)}getWidgetTypeByGameCategory(t){return r[t.toLowerCase()]}getGameOverlayProps(){var t,e;return{gameName:this.gameInfo.name,gameId:this.gameInfo.gameId,gameVendor:this.gameVendor||(null===(e=null===(t=this.gameInfo)||void 0===t?void 0:t.vendor)||void 0===e?void 0:e.name),hasFunMode:this.gameInfo.hasFunMode,language:this.language,integratedGameframeMobile:this.integratedGameframeMobile,integratedGameframeDesktop:this.integratedGameframeDesktop,gamepageModalurl:this.gamepageModalurl}}render(){var t,e;if(!this.gameInfo)return i("div",{class:"GameInnerContainer",part:"GameInnerContainer",slot:"Game-Inner"},i("img",{src:this.thumbnail,alt:"",loading:"lazy",part:"GameContainer",class:"GameContainer",onLoad:()=>this.thumbnailLoaded=!0}));const n=this.getGameOverlayProps(),o=(null===(t=this.gameInfo)||void 0===t?void 0:t.thumbnail)||(null===(e=this.gameInfo)||void 0===e?void 0:e.defaultThumbnail),s=this.getGameContainerClass(),r=`GameBg ${this.cellSize?"GameBg-"+this.cellSize:""}\n ${this.hover?" GameContainerHovered":""} ${this.thumbnailLoaded?" Loaded":""}`;return i("div",{class:`${s} ${this.containerClassWhenDetailChange}`,part:`${s} ${this.containerClassWhenDetailChange}`,ref:t=>this.stylingContainer=t,"client-styling":this.clientStyling,"client-styling-url-content":this.clientStylingUrl},i("div",{class:"GameInnerContainer "+(this.hover?"Hovered":""),part:"GameInnerContainer "+(this.hover?"Hovered":"")},i("img",{src:o,alt:"Game Thumbnail ",loading:"lazy",part:r,class:r,onLoad:()=>this.thumbnailLoaded=!0}),this.isUserLoggedIn&&i("div",{class:"FavIconContainer "+(this.gameInfo.isFavorite?"Favorited":""),part:"FavIconContainer "+(this.gameInfo.isFavorite?"Favorited":""),onClick:()=>this.toggleFavoriteGame(this.gameId)},this.gameInfo.isFavorite?i("slot",{name:"fav-icon"},i("span",{class:"FavoredIcon",part:"FavoredIcon",innerHTML:"data:image/svg+xml;base64,PHN2ZwogIHZlcnNpb249IjEuMSIKICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgdmlld0JveD0iMCAwIDE5LjQ4MSAxOS40ODEiCiAgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMTkuNDgxIDE5LjQ4MSIKPgogIDxwYXRoCiAgICBkPSJtMTAuMjAxLC43NThsMi40NzgsNS44NjUgNi4zNDQsLjU0NWMwLjQ0LDAuMDM4IDAuNjE5LDAuNTg3IDAuMjg1LDAuODc2bC00LjgxMiw0LjE2OSAxLjQ0Miw2LjIwMmMwLjEsMC40MzEtMC4zNjcsMC43Ny0wLjc0NSwwLjU0MWwtNS40NTItMy4yODgtNS40NTIsMy4yODhjLTAuMzc5LDAuMjI4LTAuODQ1LTAuMTExLTAuNzQ1LTAuNTQxbDEuNDQyLTYuMjAyLTQuODEzLTQuMTdjLTAuMzM0LTAuMjg5LTAuMTU2LTAuODM4IDAuMjg1LTAuODc2bDYuMzQ0LS41NDUgMi40NzgtNS44NjRjMC4xNzItMC40MDggMC43NDktMC40MDggMC45MjEsMHoiLz4KPC9zdmc+Cg=="})):i("slot",{name:"UnFavIcon"},!a(window.navigator.userAgent)&&i("span",{class:"UnfavoredIcon",part:"UnfavoredIcon",innerHTML:"data:image/svg+xml;base64,PHN2ZwogIHZlcnNpb249IjEuMSIKICBjbGFzcz0iVW5mYXZvcmVkSWNvbiIKICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgeD0iMjBweCIKICB5PSIyMHB4IgogIHZpZXdCb3g9IjAgMCA1MTIuMDAxIDUxMi4wMDEiCj4KICA8cGF0aAogICAgZD0iTTUxMS4yNjYsMTk3LjI1NmMtMS43NjQtNS40MzEtNi40NTgtOS4zODgtMTIuMTA4LTEwLjIwOWwtMTU4LjcyMi0yMy4wNjVMMjY5LjQ1MiwyMC4xNTUKICAgICAgICAgICAgICAgICAgICAgIGMtMi41MjctNS4xMi03Ljc0MS04LjM2MS0xMy40NTEtOC4zNjFjLTUuNzA5LDAtMTAuOTI0LDMuMjQyLTEzLjQ1MSw4LjM2MWwtNzAuOTg4LDE0My44MjhMMTIuODQzLDE4Ny4wNDcKICAgICAgICAgICAgICAgICAgICAgIGMtNS42NSwwLjgyMS0xMC4zNDQsNC43NzktMTIuMTA4LDEwLjIwOWMtMS43NjUsNS40My0wLjI5MywxMS4zOTEsMy43OTUsMTUuMzc2bDExNC44NDgsMTExLjk1NUw5Mi4yNyw0ODIuNjcKICAgICAgICAgICAgICAgICAgICAgIGMtMC45NjUsNS42MjcsMS4zNDksMTEuMzE1LDUuOTY4LDE0LjY3YzQuNjE4LDMuMzU1LDEwLjc0LDMuNzk4LDE1Ljc5NywxLjE0MkwyNTYsNDIzLjg0NmwxNDEuOTYxLDc0LjYzNwogICAgICAgICAgICAgICAgICAgICAgYzIuMTk1LDEuMTU0LDQuNTkxLDEuNzIzLDYuOTc5LDEuNzIzYzMuMTEsMCw2LjIwNi0wLjk2Niw4LjgxOC0yLjg2NWM0LjYxOS0zLjM1Niw2LjkzMy05LjA0Myw1Ljk2OC0xNC42NzFMMzkyLjYxLDMyNC41ODcKICAgICAgICAgICAgICAgICAgICAgIGwxMTQuODYtMTExLjk1NEM1MTEuNTU5LDIwOC42NDcsNTEzLjAzMSwyMDIuNjg2LDUxMS4yNjYsMTk3LjI1NnogTTM2Ni4wMjMsMzA4LjYwOGMtMy41MzYsMy40NDYtNS4xNSw4LjQxMi00LjMxNCwxMy4yNzgKICAgICAgICAgICAgICAgICAgICAgIGwyMy4zMTEsMTM1Ljg5OGwtMTIyLjAzOC02NC4xNjJjLTQuMzctMi4yOTctOS41OTEtMi4yOTctMTMuOTYxLDBsLTEyMi4wNDUsNjQuMTYzbDIzLjMwNC0xMzUuOQogICAgICAgICAgICAgICAgICAgICAgYzAuODM0LTQuODY2LTAuNzc5LTkuODMtNC4zMTMtMTMuMjc2bC05OC43MzEtOTYuMjQ0bDEzNi40NDUtMTkuODI5YzQuODg2LTAuNzEsOS4xMDgtMy43NzgsMTEuMjk0LTguMjA1TDI1Niw2MC42ODUKICAgICAgICAgICAgICAgICAgICAgIGw2MS4wMjMsMTIzLjY0NWMyLjE4Niw0LjQyNyw2LjQwOCw3LjQ5NiwxMS4yOTQsOC4yMDZsMTM2LjQ0NywxOS44MjhMMzY2LjAyMywzMDguNjA4eiIKICAvPgo8L3N2Zz4K"}))),i("slot",{name:"game-overlay"},i("casino-game-thumbnail-overlay",Object.assign({language:this.language},n))),i("slot",{name:"extra-info",ref:t=>this.extraInfoSlotRef=t},i(this.extraInfoWidget,{language:this.language,"show-round-board":this.showRoundBoard})),i("slot",{name:"game-property-slot"})),this.showGameName&&i("slot",{name:"game-name"},i("p",{class:"GameNameBelow",part:"GameNameBelow",title:n.gameName},n.gameName)))}static get assetsDirs(){return["static"]}static get watchers(){return{session:["onSessionChanged"],userId:["onSessionChanged"],isTableFull:["onTableFullChanged"],connectLive:["connectLiveHandler"],visibilityConnect:["visibilityConnectHandler"]}}};u.style=':host{display:block}*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.GameContainer{width:100%;height:100%;position:relative}.GameInnerContainer{position:relative;width:100%;height:100%;overflow:hidden;border-radius:5px}.GameInnerContainer .GameBg{width:100%;height:100%;object-fit:unset;transition:all 150ms ease-in-out}.GameInnerContainer .GameBg.GameBg-1x2,.GameInnerContainer .GameBg.GameBg-2x1,.GameInnerContainer .GameBg.GameBg-2x2{object-fit:cover}.GameInnerContainer:hover{cursor:pointer}.GameInnerContainer:hover .GameInfoWrapper{display:block}.GameInnerContainer:hover .GameBg{filter:blur(5px) grayscale(1)}.ListGame.GameBackdrop .GameInnerContainer::after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:linear-gradient(0deg, rgb(0, 0, 0) 15%, rgba(0, 0, 0, 0) 100%)}.ListGame .GameInnerContainer{z-index:0}.ListGame .GameInnerContainer .GameBg{z-index:5}.ListGame .GameInnerContainer::after{content:"";position:absolute;top:0;right:0;bottom:0;left:0}.ListGame .GameInnerContainer.GameInnerContainerUnavailable::after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:rgba(0, 0, 0, 0.9)}.ListGame .GameInnerContainer .ListGame:hover .OpenSeat,.ListGame .GameInnerContainer .ListGame:hover .ClosedSeat,.ListGame .GameInnerContainer .ListGame:hover .LiveLimits,.ListGame .GameInnerContainer .ListGame:hover .LatestResult,.ListGame .GameInnerContainer .ListGame:hover .FullTable,.ListGame .GameInnerContainer .ListGame:active .OpenSeat,.ListGame .GameInnerContainer .ListGame:active .ClosedSeat,.ListGame .GameInnerContainer .ListGame:active .LiveLimits,.ListGame .GameInnerContainer .ListGame:active .LatestResult,.ListGame .GameInnerContainer .ListGame:active .FullTable{opacity:0.2}.ListGame .GameInnerContainer .ListGame.GameContainerDimmed:before{display:block;content:" ";width:100%;height:100%;position:absolute;top:0;right:0;bottom:0;left:0;z-index:5;background:rgba(0, 0, 0, 0.4);color:var(--emw--color-white, #FFFFFF);fill:var(--emw--color-white, #FFFFFF);opacity:1;border-radius:4px}.ListGame .GameInnerContainer .ListGame.GameContainerFullyDimmed:before{display:block;content:" ";width:100%;height:100%;position:absolute;top:0;right:0;bottom:0;left:0;z-index:5;background:rgba(0, 0, 0, 0.8);color:var(--emw--color-white, #FFFFFF);fill:var(--emw--color-white, #FFFFFF);opacity:1;border-radius:4px}.ListGame .GameInnerContainer .ListGame:hover .LiveProps,.ListGame .GameInnerContainer .ListGameLink:hover .LiveProps{opacity:0}@keyframes red-pulse{0%{box-shadow:0 0 2px 0 rgba(255, 0, 0, 0.75)}15%{box-shadow:0 0 10px 2px rgba(255, 0, 0, 0.75)}30%{box-shadow:0 0 2px 0 rgba(255, 0, 0, 0.75)}50%{box-shadow:0 0 10px 2px rgba(255, 0, 0, 0.75)}65%{box-shadow:0 0 2px 0 rgba(255, 0, 0, 0.75)}80%{box-shadow:0 0 10px 2px rgba(255, 0, 0, 0.75)}100%{box-shadow:0 0 0 0 rgba(255, 0, 0, 0.75)}}@keyframes green-pulse{0%{box-shadow:0 0 2px 0 rgba(86, 168, 10, 0.75)}15%{box-shadow:0 0 10px 2px rgba(86, 168, 10, 0.75)}30%{box-shadow:0 0 2px 0 rgba(86, 168, 10, 0.75)}50%{box-shadow:0 0 10px 2px rgba(86, 168, 10, 0.75)}65%{box-shadow:0 0 2px 0 rgba(86, 168, 10, 0.75)}80%{box-shadow:0 0 10px 2px rgba(86, 168, 10, 0.75)}100%{box-shadow:0 0 0 0 rgba(86, 168, 10, 0.75)}}@keyframes flip-open{0%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, 90deg);transform:perspective(400px) rotate3d(0, 1, 0, 90deg);-webkit-transition-timing-function:ease-in;transition-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, -20deg);transform:perspective(400px) rotate3d(0, 1, 0, -20deg);-webkit-transition-timing-function:ease-in;transition-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, 10deg);transform:perspective(400px) rotate3d(0, 1, 0, 10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, -5deg);transform:perspective(400px) rotate3d(0, 1, 0, -5deg)}100%{-webkit-transform:perspective(400px);transform:perspective(400px)}}.ListGame .GameInnerContainer .silde-in-from-left{-webkit-animation-name:silde-in-from-left;animation-name:silde-in-from-left;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both}@-webkit-keyframes silde-in-from-left{0%{-webkit-transform:translateX(-100%);transform:translateX(-100%);visibility:visible}100%{-webkit-transform:translateX(0);transform:translateX(0)}}@keyframes silde-in-from-left{0%{-webkit-transform:translateX(-100%);transform:translateX(-100%);visibility:visible}100%{-webkit-transform:translateX(0);transform:translateX(0)}}@keyframes flip-closed-seat{0%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, 90deg);transform:perspective(400px) rotate3d(0, 1, 0, 90deg);-webkit-transition-timing-function:ease-in;transition-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, -20deg);transform:perspective(400px) rotate3d(0, 1, 0, -20deg);-webkit-transition-timing-function:ease-in;transition-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, 10deg);transform:perspective(400px) rotate3d(0, 1, 0, 10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, -5deg);transform:perspective(400px) rotate3d(0, 1, 0, -5deg)}100%{-webkit-transform:perspective(400px);transform:perspective(400px)}}.ListGame .GameInnerContainer .ListGame.PulsatingGreenShadow{animation:green-pulse 2s linear}.ListGame .GameInnerContainer .ListGame.PulsatingRedShadow{animation:red-pulse 2s linear}.ListGame .GameInnerContainer .Blue{color:#4d90a7}.ListGame .GameInnerContainer .Red{background-color:red}.ListGame .GameInnerContainer .Black{background-color:var(--emw--color-black, #000000)}.ListGame .GameInnerContainer .Green{background-color:#56A80A}.ListGame .GameInnerContainer .White{background-color:var(--emw--color-white, #FFFFFF)}.ListGame .GameInnerContainer .Yellow{background-color:#eeca3d}.ListGame .GameInnerContainer .Gold{background-color:#866d0c}.ListGame .GameInnerContainer .Orange{background-color:#574708}.ListGame .GameInnerContainer .Purple{background-color:#330033}.ListGame .GameInnerContainer .Tie{background-color:var(--emw--color-white, #FFFFFF);background-image:linear-gradient(135deg, var(--emw--color-white, #FFFFFF) 25%, transparent 25%, transparent 50%, #212121 50%, var(--emw--color-white, #FFFFFF) 75%, transparent 75%, var(--emw--color-white, #FFFFFF))}.ListGame .GameInnerContainer .PlayersDisplay{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;padding:2px 10px;background:linear-gradient(to bottom, rgba(33, 33, 33, 0.9) 0%, rgba(33, 33, 33, 0.1) 100%);color:var(--emw--color-white, #FFFFFF)}.ListGame .GameInnerContainer .PlayersDisplay .PlayersIcon{width:14px;height:14px;margin-right:4px}.ListGame .GameInnerContainer .PlayersDisplay .PlayersIcon svg{fill:var(--emw--color-white, #FFFFFF);width:100%;height:100%}.ListGame .GameInnerContainer .ClosedGame{opacity:1;z-index:10;padding:8px 10px;color:var(--emw--color-white, #FFFFFF);font-size:18px}.ListGame .GameInnerContainer .ClosedGame span{font-size:18px}.ListGame .GameInnerContainer .Players{display:inline-block;width:19px;height:19px}.FavIconContainer{position:absolute;top:10px;right:10px;cursor:pointer;z-index:16;width:15px;height:15px;opacity:0}.FavIconContainer.Favorited{opacity:1}.FavIconContainer svg path{fill:#fff}.Hovered .FavIconContainer{opacity:1}.GameNameBelow{color:var(--emw--color-white, #FFFFFF);position:relative;bottom:-5px;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}';const g=class{constructor(i){t(this,i),this.playClicked=e(this,"playCasinoGame",7),this.userAgent=window.navigator.userAgent,this.gamepageModalurl=void 0,this.integratedGameframeMobile=!1,this.integratedGameframeDesktop=!1,this.language="en",this.gameName=void 0,this.gameVendor=void 0,this.gameId=void 0,this.hasFunMode=void 0}onPlayNowClicked(){this.playClicked.emit(this.gameId);let t={gameId:this.gameId,isMobile:a(this.userAgent)},e=this.integratedGameframeMobile||this.integratedGameframeDesktop;window.postMessage({type:e?"OpenGameFrame":"ShowGameModal",eventData:e?Object.assign(Object.assign({},t),{gamefunmode:this.hasFunMode,source:"GameThumbnail",identifier:"Lobby"}):t},window.location.href)}render(){return i("div",{key:"b552e85f9652d467595f9603e564387148d81417",class:"GameInfoWrapper",part:"GameInfoWrapper"},i("div",{key:"c8ad8953997fa38e46f076be71c8a26a5a47afcd",class:"GameInfo ",part:"GameInfo "},i("p",{key:"7477d68d364589d8fd2ef80ec15f4457a0f8c69d",class:"GameInfoName",part:"GameInfoName",title:this.gameName}," ",this.gameName," "),i("button",{key:"280a36956cf541b909c8c6269f2bfd0e51ebf07b",class:"GameInfoBtn",part:"GameInfoBtn",onClick:()=>this.onPlayNowClicked()},h("playNow",this.language))),i("slot",{key:"79c3e4ceb605025b5b25be04339a63096cd36e28",name:"vendor-name"},i("span",{key:"fdb2ebaa6eaf1f3e11356aff6c043ed6a0c41a35",class:"GameInfoVendor",part:"GameInfoVendor"},this.gameVendor)))}};g.style=":host{display:block}.GameInfoWrapper{display:none;position:absolute;width:100%;height:100%;top:0;right:0;bottom:0;left:0;background:rgba(0, 0, 0, 0.65);z-index:15}.GameInfoWrapper .GameInfo{display:flex;width:100%;height:100%;flex-direction:column;align-items:center;justify-content:center}.GameInfoWrapper .GameInfoName{color:white;margin-bottom:10px;text-align:center;font-size:14px}.GameInfoWrapper .GameInfoBtn{appearance:none;padding:6px;background:var(--emw--color-primary, #D0046C);color:var(--emw--color-primary-50, #FBECF4);font-size:16px;border:2px solid var(--emw--color-primary-600, #99034F);border-radius:5px;cursor:pointer;transition:border 150ms ease-in-out}.GameInfoWrapper .GameInfoBtn:hover{border:2px solid var(--emw--color-primary-100, #F1BED9)}.GameInfoVendor{display:block;position:absolute;bottom:8px;right:8px;color:white;font-size:12px;font-weight:normal}.GameInfoWrapper:hover{display:block !important}";export{u as casino_game_thumb_view,g as casino_game_thumbnail_overlay}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
//! moment.js
|
2
|
+
//! version : 2.29.4
|
3
|
+
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
4
|
+
//! license : MIT
|
5
|
+
//! momentjs.com
|
6
|
+
var t,n;function i(){return t.apply(null,arguments)}function e(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function r(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function s(t,n){return Object.prototype.hasOwnProperty.call(t,n)}function u(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var n;for(n in t)if(s(t,n))return!1;return!0}function o(t){return void 0===t}function h(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function a(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function f(t,n){var i,e=[],r=t.length;for(i=0;i<r;++i)e.push(n(t[i],i));return e}function d(t,n){for(var i in n)s(n,i)&&(t[i]=n[i]);return s(n,"toString")&&(t.toString=n.toString),s(n,"valueOf")&&(t.valueOf=n.valueOf),t}function c(t,n,i,e){return En(t,n,i,e,!0).utc()}function l(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),t._pf}function m(t){if(null==t._isValid){var i=l(t),e=n.call(i.parsedDateParts,(function(t){return null!=t})),r=!isNaN(t._d.getTime())&&i.overflow<0&&!i.empty&&!i.invalidEra&&!i.invalidMonth&&!i.invalidWeekday&&!i.weekdayMismatch&&!i.nullInput&&!i.invalidFormat&&!i.userInvalidated&&(!i.meridiem||i.meridiem&&e);if(t._strict&&(r=r&&0===i.charsLeftOver&&0===i.unusedTokens.length&&void 0===i.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return r;t._isValid=r}return t._isValid}function v(t){var n=c(NaN);return null!=t?d(l(n),t):l(n).userInvalidated=!0,n}n=Array.prototype.some?Array.prototype.some:function(t){var n,i=Object(this),e=i.length>>>0;for(n=0;n<e;n++)if(n in i&&t.call(this,i[n],n,i))return!0;return!1};var Y=i.momentProperties=[],M=!1;function y(t,n){var i,e,r,s=Y.length;if(o(n._isAMomentObject)||(t._isAMomentObject=n._isAMomentObject),o(n._i)||(t._i=n._i),o(n._f)||(t._f=n._f),o(n._l)||(t._l=n._l),o(n._strict)||(t._strict=n._strict),o(n._tzm)||(t._tzm=n._tzm),o(n._isUTC)||(t._isUTC=n._isUTC),o(n._offset)||(t._offset=n._offset),o(n._pf)||(t._pf=l(n)),o(n._locale)||(t._locale=n._locale),s>0)for(i=0;i<s;i++)o(r=n[e=Y[i]])||(t[e]=r);return t}function D(t){y(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===M&&(M=!0,i.updateOffset(this),M=!1)}function g(t){return t instanceof D||null!=t&&null!=t._isAMomentObject}function S(t){!1===i.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function w(t,n){var e=!0;return d((function(){if(null!=i.deprecationHandler&&i.deprecationHandler(null,t),e){var r,u,o,h=[],a=arguments.length;for(u=0;u<a;u++){if(r="","object"==typeof arguments[u]){for(o in r+="\n["+u+"] ",arguments[0])s(arguments[0],o)&&(r+=o+": "+arguments[0][o]+", ");r=r.slice(0,-2)}else r=arguments[u];h.push(r)}S(t+"\nArguments: "+Array.prototype.slice.call(h).join("")+"\n"+(new Error).stack),e=!1}return n.apply(this,arguments)}),n)}var N,p={};function b(t,n){null!=i.deprecationHandler&&i.deprecationHandler(t,n),p[t]||(S(n),p[t]=!0)}function k(t){return"undefined"!=typeof Function&&t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function T(t,n){var i,e=d({},t);for(i in n)s(n,i)&&(r(t[i])&&r(n[i])?(e[i]={},d(e[i],t[i]),d(e[i],n[i])):null!=n[i]?e[i]=n[i]:delete e[i]);for(i in t)s(t,i)&&!s(n,i)&&r(t[i])&&(e[i]=d({},e[i]));return e}function _(t){null!=t&&this.set(t)}function H(t,n,i){var e=""+Math.abs(t);return(t>=0?i?"+":"":"-")+Math.pow(10,Math.max(0,n-e.length)).toString().substr(1)+e}i.suppressDeprecationWarnings=!1,i.deprecationHandler=null,N=Object.keys?Object.keys:function(t){var n,i=[];for(n in t)s(t,n)&&i.push(n);return i};var G=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,W=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,E={},x={};function F(t,n,i,e){var r=e;"string"==typeof e&&(r=function(){return this[e]()}),t&&(x[t]=r),n&&(x[n[0]]=function(){return H(r.apply(this,arguments),n[1],n[2])}),i&&(x[i]=function(){return this.localeData().ordinal(r.apply(this,arguments),t)})}function A(t,n){return t.isValid()?(n=O(n,t.localeData()),E[n]=E[n]||function(t){var n,i,e,r=t.match(G);for(n=0,i=r.length;n<i;n++)r[n]=x[r[n]]?x[r[n]]:(e=r[n]).match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"");return function(n){var e,s="";for(e=0;e<i;e++)s+=k(r[e])?r[e].call(n,t):r[e];return s}}(n),E[n](t)):t.localeData().invalidDate()}function O(t,n){var i=5;function e(t){return n.longDateFormat(t)||t}for(W.lastIndex=0;i>=0&&W.test(t);)t=t.replace(W,e),W.lastIndex=0,i-=1;return t}var L={};function j(t,n){var i=t.toLowerCase();L[i]=L[i+"s"]=L[n]=t}function R(t){return"string"==typeof t?L[t]||L[t.toLowerCase()]:void 0}function Z(t){var n,i,e={};for(i in t)s(t,i)&&(n=R(i))&&(e[n]=t[i]);return e}var I={};function C(t,n){I[t]=n}function $(t){return t%4==0&&t%100!=0||t%400==0}function U(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function P(t){var n=+t,i=0;return 0!==n&&isFinite(n)&&(i=U(n)),i}function z(t,n){return function(e){return null!=e?(J(this,t,e),i.updateOffset(this,n),this):q(this,t)}}function q(t,n){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+n]():NaN}function J(t,n,i){t.isValid()&&!isNaN(i)&&("FullYear"===n&&$(t.year())&&1===t.month()&&29===t.date()?(i=P(i),t._d["set"+(t._isUTC?"UTC":"")+n](i,t.month(),Ht(i,t.month()))):t._d["set"+(t._isUTC?"UTC":"")+n](i))}var Q,B=/\d/,X=/\d\d/,K=/\d{3}/,V=/\d{4}/,tt=/[+-]?\d{6}/,nt=/\d\d?/,it=/\d\d\d\d?/,et=/\d\d\d\d\d\d?/,rt=/\d{1,3}/,st=/\d{1,4}/,ut=/[+-]?\d{1,6}/,ot=/\d+/,ht=/[+-]?\d+/,at=/Z|[+-]\d\d:?\d\d/gi,ft=/Z|[+-]\d\d(?::?\d\d)?/gi,dt=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function ct(t,n,i){Q[t]=k(n)?n:function(t){return t&&i?i:n}}function lt(t,n){return s(Q,t)?Q[t](n._strict,n._locale):new RegExp(mt(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(t,n,i,e,r){return n||i||e||r}))))}function mt(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}Q={};var vt={};function Yt(t,n){var i,e,r=n;for("string"==typeof t&&(t=[t]),h(n)&&(r=function(t,i){i[n]=P(t)}),e=t.length,i=0;i<e;i++)vt[t[i]]=r}function Mt(t,n){Yt(t,(function(t,i,e,r){e._w=e._w||{},n(t,e._w,e,r)}))}function yt(t,n,i){null!=n&&s(vt,t)&&vt[t](n,i._a,i,t)}var Dt,gt=0,St=1,wt=2,Nt=3,pt=4,bt=5,kt=6,Tt=7,_t=8;function Ht(t,n){if(isNaN(t)||isNaN(n))return NaN;var i=(n%12+12)%12;return t+=(n-i)/12,1===i?$(t)?29:28:31-i%7%2}Dt=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var n;for(n=0;n<this.length;++n)if(this[n]===t)return n;return-1},F("M",["MM",2],"Mo",(function(){return this.month()+1})),F("MMM",0,0,(function(t){return this.localeData().monthsShort(this,t)})),F("MMMM",0,0,(function(t){return this.localeData().months(this,t)})),j("month","M"),C("month",8),ct("M",nt),ct("MM",nt,X),ct("MMM",(function(t,n){return n.monthsShortRegex(t)})),ct("MMMM",(function(t,n){return n.monthsRegex(t)})),Yt(["M","MM"],(function(t,n){n[St]=P(t)-1})),Yt(["MMM","MMMM"],(function(t,n,i,e){var r=i._locale.monthsParse(t,e,i._strict);null!=r?n[St]=r:l(i).invalidMonth=t}));var Gt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Wt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Et=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,xt=dt,Ft=dt;function At(t,n,i){var e,r,s,u=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],e=0;e<12;++e)s=c([2e3,e]),this._shortMonthsParse[e]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[e]=this.months(s,"").toLocaleLowerCase();return i?"MMM"===n?-1!==(r=Dt.call(this._shortMonthsParse,u))?r:null:-1!==(r=Dt.call(this._longMonthsParse,u))?r:null:"MMM"===n?-1!==(r=Dt.call(this._shortMonthsParse,u))||-1!==(r=Dt.call(this._longMonthsParse,u))?r:null:-1!==(r=Dt.call(this._longMonthsParse,u))||-1!==(r=Dt.call(this._shortMonthsParse,u))?r:null}function Ot(t,n){var i;if(!t.isValid())return t;if("string"==typeof n)if(/^\d+$/.test(n))n=P(n);else if(!h(n=t.localeData().monthsParse(n)))return t;return i=Math.min(t.date(),Ht(t.year(),n)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](n,i),t}function Lt(t){return null!=t?(Ot(this,t),i.updateOffset(this,!0),this):q(this,"Month")}function jt(){function t(t,n){return n.length-t.length}var n,i,e=[],r=[],s=[];for(n=0;n<12;n++)i=c([2e3,n]),e.push(this.monthsShort(i,"")),r.push(this.months(i,"")),s.push(this.months(i,"")),s.push(this.monthsShort(i,""));for(e.sort(t),r.sort(t),s.sort(t),n=0;n<12;n++)e[n]=mt(e[n]),r[n]=mt(r[n]);for(n=0;n<24;n++)s[n]=mt(s[n]);this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+e.join("|")+")","i")}function Rt(t){return $(t)?366:365}F("Y",0,0,(function(){var t=this.year();return t<=9999?H(t,4):"+"+t})),F(0,["YY",2],0,(function(){return this.year()%100})),F(0,["YYYY",4],0,"year"),F(0,["YYYYY",5],0,"year"),F(0,["YYYYYY",6,!0],0,"year"),j("year","y"),C("year",1),ct("Y",ht),ct("YY",nt,X),ct("YYYY",st,V),ct("YYYYY",ut,tt),ct("YYYYYY",ut,tt),Yt(["YYYYY","YYYYYY"],gt),Yt("YYYY",(function(t,n){n[gt]=2===t.length?i.parseTwoDigitYear(t):P(t)})),Yt("YY",(function(t,n){n[gt]=i.parseTwoDigitYear(t)})),Yt("Y",(function(t,n){n[gt]=parseInt(t,10)})),i.parseTwoDigitYear=function(t){return P(t)+(P(t)>68?1900:2e3)};var Zt=z("FullYear",!0);function It(t,n,i,e,r,s,u){var o;return t<100&&t>=0?(o=new Date(t+400,n,i,e,r,s,u),isFinite(o.getFullYear())&&o.setFullYear(t)):o=new Date(t,n,i,e,r,s,u),o}function Ct(t){var n,i;return t<100&&t>=0?((i=Array.prototype.slice.call(arguments))[0]=t+400,n=new Date(Date.UTC.apply(null,i)),isFinite(n.getUTCFullYear())&&n.setUTCFullYear(t)):n=new Date(Date.UTC.apply(null,arguments)),n}function $t(t,n,i){var e=7+n-i;return-(7+Ct(t,0,e).getUTCDay()-n)%7+e-1}function Ut(t,n,i,e,r){var s,u,o=1+7*(n-1)+(7+i-e)%7+$t(t,e,r);return o<=0?u=Rt(s=t-1)+o:o>Rt(t)?(s=t+1,u=o-Rt(t)):(s=t,u=o),{year:s,dayOfYear:u}}function Pt(t,n,i){var e,r,s=$t(t.year(),n,i),u=Math.floor((t.dayOfYear()-s-1)/7)+1;return u<1?e=u+zt(r=t.year()-1,n,i):u>zt(t.year(),n,i)?(e=u-zt(t.year(),n,i),r=t.year()+1):(r=t.year(),e=u),{week:e,year:r}}function zt(t,n,i){var e=$t(t,n,i),r=$t(t+1,n,i);return(Rt(t)-e+r)/7}function qt(t,n){return t.slice(n,7).concat(t.slice(0,n))}F("w",["ww",2],"wo","week"),F("W",["WW",2],"Wo","isoWeek"),j("week","w"),j("isoWeek","W"),C("week",5),C("isoWeek",5),ct("w",nt),ct("ww",nt,X),ct("W",nt),ct("WW",nt,X),Mt(["w","ww","W","WW"],(function(t,n,i,e){n[e.substr(0,1)]=P(t)})),F("d",0,"do","day"),F("dd",0,0,(function(t){return this.localeData().weekdaysMin(this,t)})),F("ddd",0,0,(function(t){return this.localeData().weekdaysShort(this,t)})),F("dddd",0,0,(function(t){return this.localeData().weekdays(this,t)})),F("e",0,0,"weekday"),F("E",0,0,"isoWeekday"),j("day","d"),j("weekday","e"),j("isoWeekday","E"),C("day",11),C("weekday",11),C("isoWeekday",11),ct("d",nt),ct("e",nt),ct("E",nt),ct("dd",(function(t,n){return n.weekdaysMinRegex(t)})),ct("ddd",(function(t,n){return n.weekdaysShortRegex(t)})),ct("dddd",(function(t,n){return n.weekdaysRegex(t)})),Mt(["dd","ddd","dddd"],(function(t,n,i,e){var r=i._locale.weekdaysParse(t,e,i._strict);null!=r?n.d=r:l(i).invalidWeekday=t})),Mt(["d","e","E"],(function(t,n,i,e){n[e]=P(t)}));var Jt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Qt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Bt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Xt=dt,Kt=dt,Vt=dt;function tn(t,n,i){var e,r,s,u=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],e=0;e<7;++e)s=c([2e3,1]).day(e),this._minWeekdaysParse[e]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[e]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[e]=this.weekdays(s,"").toLocaleLowerCase();return i?"dddd"===n?-1!==(r=Dt.call(this._weekdaysParse,u))?r:null:"ddd"===n?-1!==(r=Dt.call(this._shortWeekdaysParse,u))?r:null:-1!==(r=Dt.call(this._minWeekdaysParse,u))?r:null:"dddd"===n?-1!==(r=Dt.call(this._weekdaysParse,u))||-1!==(r=Dt.call(this._shortWeekdaysParse,u))||-1!==(r=Dt.call(this._minWeekdaysParse,u))?r:null:"ddd"===n?-1!==(r=Dt.call(this._shortWeekdaysParse,u))||-1!==(r=Dt.call(this._weekdaysParse,u))||-1!==(r=Dt.call(this._minWeekdaysParse,u))?r:null:-1!==(r=Dt.call(this._minWeekdaysParse,u))||-1!==(r=Dt.call(this._weekdaysParse,u))||-1!==(r=Dt.call(this._shortWeekdaysParse,u))?r:null}function nn(){function t(t,n){return n.length-t.length}var n,i,e,r,s,u=[],o=[],h=[],a=[];for(n=0;n<7;n++)i=c([2e3,1]).day(n),e=mt(this.weekdaysMin(i,"")),r=mt(this.weekdaysShort(i,"")),s=mt(this.weekdays(i,"")),u.push(e),o.push(r),h.push(s),a.push(e),a.push(r),a.push(s);u.sort(t),o.sort(t),h.sort(t),a.sort(t),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+h.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+u.join("|")+")","i")}function en(){return this.hours()%12||12}function rn(t,n){F(t,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),n)}))}function sn(t,n){return n._meridiemParse}F("H",["HH",2],0,"hour"),F("h",["hh",2],0,en),F("k",["kk",2],0,(function(){return this.hours()||24})),F("hmm",0,0,(function(){return""+en.apply(this)+H(this.minutes(),2)})),F("hmmss",0,0,(function(){return""+en.apply(this)+H(this.minutes(),2)+H(this.seconds(),2)})),F("Hmm",0,0,(function(){return""+this.hours()+H(this.minutes(),2)})),F("Hmmss",0,0,(function(){return""+this.hours()+H(this.minutes(),2)+H(this.seconds(),2)})),rn("a",!0),rn("A",!1),j("hour","h"),C("hour",13),ct("a",sn),ct("A",sn),ct("H",nt),ct("h",nt),ct("k",nt),ct("HH",nt,X),ct("hh",nt,X),ct("kk",nt,X),ct("hmm",it),ct("hmmss",et),ct("Hmm",it),ct("Hmmss",et),Yt(["H","HH"],Nt),Yt(["k","kk"],(function(t,n){var i=P(t);n[Nt]=24===i?0:i})),Yt(["a","A"],(function(t,n,i){i._isPm=i._locale.isPM(t),i._meridiem=t})),Yt(["h","hh"],(function(t,n,i){n[Nt]=P(t),l(i).bigHour=!0})),Yt("hmm",(function(t,n,i){var e=t.length-2;n[Nt]=P(t.substr(0,e)),n[pt]=P(t.substr(e)),l(i).bigHour=!0})),Yt("hmmss",(function(t,n,i){var e=t.length-4,r=t.length-2;n[Nt]=P(t.substr(0,e)),n[pt]=P(t.substr(e,2)),n[bt]=P(t.substr(r)),l(i).bigHour=!0})),Yt("Hmm",(function(t,n){var i=t.length-2;n[Nt]=P(t.substr(0,i)),n[pt]=P(t.substr(i))})),Yt("Hmmss",(function(t,n){var i=t.length-4,e=t.length-2;n[Nt]=P(t.substr(0,i)),n[pt]=P(t.substr(i,2)),n[bt]=P(t.substr(e))}));var un,on=z("Hours",!0),hn={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Gt,monthsShort:Wt,week:{dow:0,doy:6},weekdays:Jt,weekdaysMin:Bt,weekdaysShort:Qt,meridiemParse:/[ap]\.?m?\.?/i},an={},fn={};function dn(t,n){var i,e=Math.min(t.length,n.length);for(i=0;i<e;i+=1)if(t[i]!==n[i])return i;return e}function cn(t){return t?t.toLowerCase().replace("_","-"):t}function ln(t){var n=null;if(void 0===an[t]&&"undefined"!=typeof module&&module&&module.exports&&function(t){return null!=t.match("^[^/\\\\]*$")}(t))try{n=un._abbr,require("./locale/"+t),mn(n)}catch(n){an[t]=null}return an[t]}function mn(t,n){var i;return t&&((i=o(n)?Yn(t):vn(t,n))?un=i:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),un._abbr}function vn(t,n){if(null!==n){var i,e=hn;if(n.abbr=t,null!=an[t])b("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),e=an[t]._config;else if(null!=n.parentLocale)if(null!=an[n.parentLocale])e=an[n.parentLocale]._config;else{if(null==(i=ln(n.parentLocale)))return fn[n.parentLocale]||(fn[n.parentLocale]=[]),fn[n.parentLocale].push({name:t,config:n}),null;e=i._config}return an[t]=new _(T(e,n)),fn[t]&&fn[t].forEach((function(t){vn(t.name,t.config)})),mn(t),an[t]}return delete an[t],null}function Yn(t){var n;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return un;if(!e(t)){if(n=ln(t))return n;t=[t]}return function(t){for(var n,i,e,r,s=0;s<t.length;){for(n=(r=cn(t[s]).split("-")).length,i=(i=cn(t[s+1]))?i.split("-"):null;n>0;){if(e=ln(r.slice(0,n).join("-")))return e;if(i&&i.length>=n&&dn(r,i)>=n-1)break;n--}s++}return un}(t)}function Mn(t){var n,i=t._a;return i&&-2===l(t).overflow&&(n=i[St]<0||i[St]>11?St:i[wt]<1||i[wt]>Ht(i[gt],i[St])?wt:i[Nt]<0||i[Nt]>24||24===i[Nt]&&(0!==i[pt]||0!==i[bt]||0!==i[kt])?Nt:i[pt]<0||i[pt]>59?pt:i[bt]<0||i[bt]>59?bt:i[kt]<0||i[kt]>999?kt:-1,l(t)._overflowDayOfYear&&(n<gt||n>wt)&&(n=wt),l(t)._overflowWeeks&&-1===n&&(n=Tt),l(t)._overflowWeekday&&-1===n&&(n=_t),l(t).overflow=n),t}var yn=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Dn=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,gn=/Z|[+-]\d\d(?::?\d\d)?/,Sn=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],wn=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Nn=/^\/?Date\((-?\d+)/i,pn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,bn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function kn(t){var n,i,e,r,s,u,o=t._i,h=yn.exec(o)||Dn.exec(o),a=Sn.length,f=wn.length;if(h){for(l(t).iso=!0,n=0,i=a;n<i;n++)if(Sn[n][1].exec(h[1])){r=Sn[n][0],e=!1!==Sn[n][2];break}if(null==r)return void(t._isValid=!1);if(h[3]){for(n=0,i=f;n<i;n++)if(wn[n][1].exec(h[3])){s=(h[2]||" ")+wn[n][0];break}if(null==s)return void(t._isValid=!1)}if(!e&&null!=s)return void(t._isValid=!1);if(h[4]){if(!gn.exec(h[4]))return void(t._isValid=!1);u="Z"}t._f=r+(s||"")+(u||""),Gn(t)}else t._isValid=!1}function Tn(t){var n,i,e,r,s,u,o,h,a,f=pn.exec(t._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(f){if(i=f[3],e=f[2],r=f[5],s=f[6],u=f[7],o=[(h=f[4],a=parseInt(h,10),a<=49?2e3+a:a<=999?1900+a:a),Wt.indexOf(i),parseInt(e,10),parseInt(r,10),parseInt(s,10)],u&&o.push(parseInt(u,10)),!function(t,n,i){return!t||Qt.indexOf(t)===new Date(n[0],n[1],n[2]).getDay()||(l(i).weekdayMismatch=!0,i._isValid=!1,!1)}(f[1],n=o,t))return;t._a=n,t._tzm=function(t,n,i){if(t)return bn[t];if(n)return 0;var e=parseInt(i,10),r=e%100;return(e-r)/100*60+r}(f[8],f[9],f[10]),t._d=Ct.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),l(t).rfc2822=!0}else t._isValid=!1}function _n(t,n,i){return null!=t?t:null!=n?n:i}function Hn(t){var n,e,r,s,u,o=[];if(!t._d){for(r=function(t){var n=new Date(i.now());return t._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}(t),t._w&&null==t._a[wt]&&null==t._a[St]&&function(t){var n,i,e,r,s,u,o,h,a;null!=(n=t._w).GG||null!=n.W||null!=n.E?(s=1,u=4,i=_n(n.GG,t._a[gt],Pt(xn(),1,4).year),e=_n(n.W,1),((r=_n(n.E,1))<1||r>7)&&(h=!0)):(s=t._locale._week.dow,u=t._locale._week.doy,a=Pt(xn(),s,u),i=_n(n.gg,t._a[gt],a.year),e=_n(n.w,a.week),null!=n.d?((r=n.d)<0||r>6)&&(h=!0):null!=n.e?(r=n.e+s,(n.e<0||n.e>6)&&(h=!0)):r=s),e<1||e>zt(i,s,u)?l(t)._overflowWeeks=!0:null!=h?l(t)._overflowWeekday=!0:(o=Ut(i,e,r,s,u),t._a[gt]=o.year,t._dayOfYear=o.dayOfYear)}(t),null!=t._dayOfYear&&(u=_n(t._a[gt],r[gt]),(t._dayOfYear>Rt(u)||0===t._dayOfYear)&&(l(t)._overflowDayOfYear=!0),e=Ct(u,0,t._dayOfYear),t._a[St]=e.getUTCMonth(),t._a[wt]=e.getUTCDate()),n=0;n<3&&null==t._a[n];++n)t._a[n]=o[n]=r[n];for(;n<7;n++)t._a[n]=o[n]=null==t._a[n]?2===n?1:0:t._a[n];24===t._a[Nt]&&0===t._a[pt]&&0===t._a[bt]&&0===t._a[kt]&&(t._nextDay=!0,t._a[Nt]=0),t._d=(t._useUTC?Ct:It).apply(null,o),s=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[Nt]=24),t._w&&void 0!==t._w.d&&t._w.d!==s&&(l(t).weekdayMismatch=!0)}}function Gn(t){if(t._f!==i.ISO_8601)if(t._f!==i.RFC_2822){t._a=[],l(t).empty=!0;var n,e,r,s,u,o,h,a=""+t._i,f=a.length,d=0;for(h=(r=O(t._f,t._locale).match(G)||[]).length,n=0;n<h;n++)(e=(a.match(lt(s=r[n],t))||[])[0])&&((u=a.substr(0,a.indexOf(e))).length>0&&l(t).unusedInput.push(u),a=a.slice(a.indexOf(e)+e.length),d+=e.length),x[s]?(e?l(t).empty=!1:l(t).unusedTokens.push(s),yt(s,e,t)):t._strict&&!e&&l(t).unusedTokens.push(s);l(t).charsLeftOver=f-d,a.length>0&&l(t).unusedInput.push(a),t._a[Nt]<=12&&!0===l(t).bigHour&&t._a[Nt]>0&&(l(t).bigHour=void 0),l(t).parsedDateParts=t._a.slice(0),l(t).meridiem=t._meridiem,t._a[Nt]=function(t,n,i){var e;return null==i?n:null!=t.meridiemHour?t.meridiemHour(n,i):null!=t.isPM?((e=t.isPM(i))&&n<12&&(n+=12),e||12!==n||(n=0),n):n}(t._locale,t._a[Nt],t._meridiem),null!==(o=l(t).era)&&(t._a[gt]=t._locale.erasConvertYear(o,t._a[gt])),Hn(t),Mn(t)}else Tn(t);else kn(t)}function Wn(t){var n=t._i,s=t._f;return t._locale=t._locale||Yn(t._l),null===n||void 0===s&&""===n?v({nullInput:!0}):("string"==typeof n&&(t._i=n=t._locale.preparse(n)),g(n)?new D(Mn(n)):(a(n)?t._d=n:e(s)?function(t){var n,i,e,r,s,u,o=!1,h=t._f.length;if(0===h)return l(t).invalidFormat=!0,void(t._d=new Date(NaN));for(r=0;r<h;r++)s=0,u=!1,n=y({},t),null!=t._useUTC&&(n._useUTC=t._useUTC),n._f=t._f[r],Gn(n),m(n)&&(u=!0),s+=l(n).charsLeftOver,s+=10*l(n).unusedTokens.length,l(n).score=s,o?s<e&&(e=s,i=n):(null==e||s<e||u)&&(e=s,i=n,u&&(o=!0));d(t,i||n)}(t):s?Gn(t):function(t){var n=t._i;o(n)?t._d=new Date(i.now()):a(n)?t._d=new Date(n.valueOf()):"string"==typeof n?function(t){var n=Nn.exec(t._i);null===n?(kn(t),!1===t._isValid&&(delete t._isValid,Tn(t),!1===t._isValid&&(delete t._isValid,t._strict?t._isValid=!1:i.createFromInputFallback(t)))):t._d=new Date(+n[1])}(t):e(n)?(t._a=f(n.slice(0),(function(t){return parseInt(t,10)})),Hn(t)):r(n)?function(t){if(!t._d){var n=Z(t._i);t._a=f([n.year,n.month,void 0===n.day?n.date:n.day,n.hour,n.minute,n.second,n.millisecond],(function(t){return t&&parseInt(t,10)})),Hn(t)}}(t):h(n)?t._d=new Date(n):i.createFromInputFallback(t)}(t),m(t)||(t._d=null),t))}function En(t,n,i,s,o){var h,a={};return!0!==n&&!1!==n||(s=n,n=void 0),!0!==i&&!1!==i||(s=i,i=void 0),(r(t)&&u(t)||e(t)&&0===t.length)&&(t=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=o,a._l=i,a._i=t,a._f=n,a._strict=s,(h=new D(Mn(Wn(a))))._nextDay&&(h.add(1,"d"),h._nextDay=void 0),h}function xn(t,n,i,e){return En(t,n,i,e,!1)}i.createFromInputFallback=w("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))})),i.ISO_8601=function(){},i.RFC_2822=function(){};var Fn=w("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=xn.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:v()})),An=w("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=xn.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:v()}));function On(t,n){var i,r;if(1===n.length&&e(n[0])&&(n=n[0]),!n.length)return xn();for(i=n[0],r=1;r<n.length;++r)n[r].isValid()&&!n[r][t](i)||(i=n[r]);return i}var Ln=["year","quarter","month","week","day","hour","minute","second","millisecond"];function jn(t){var n=Z(t),i=n.year||0,e=n.quarter||0,r=n.month||0,u=n.week||n.isoWeek||0,o=n.day||0,h=n.hour||0,a=n.minute||0,f=n.second||0,d=n.millisecond||0;this._isValid=function(t){var n,i,e=!1,r=Ln.length;for(n in t)if(s(t,n)&&(-1===Dt.call(Ln,n)||null!=t[n]&&isNaN(t[n])))return!1;for(i=0;i<r;++i)if(t[Ln[i]]){if(e)return!1;parseFloat(t[Ln[i]])!==P(t[Ln[i]])&&(e=!0)}return!0}(n),this._milliseconds=+d+1e3*f+6e4*a+1e3*h*60*60,this._days=+o+7*u,this._months=+r+3*e+12*i,this._data={},this._locale=Yn(),this._bubble()}function Rn(t){return t instanceof jn}function Zn(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function In(t,n){F(t,0,0,(function(){var t=this.utcOffset(),i="+";return t<0&&(t=-t,i="-"),i+H(~~(t/60),2)+n+H(~~t%60,2)}))}In("Z",":"),In("ZZ",""),ct("Z",ft),ct("ZZ",ft),Yt(["Z","ZZ"],(function(t,n,i){i._useUTC=!0,i._tzm=$n(ft,t)}));var Cn=/([\+\-]|\d\d)/gi;function $n(t,n){var i,e,r=(n||"").match(t);return null===r?null:0===(e=60*(i=((r[r.length-1]||[])+"").match(Cn)||["-",0,0])[1]+P(i[2]))?0:"+"===i[0]?e:-e}function Un(t,n){var e,r;return n._isUTC?(e=n.clone(),r=(g(t)||a(t)?t.valueOf():xn(t).valueOf())-e.valueOf(),e._d.setTime(e._d.valueOf()+r),i.updateOffset(e,!1),e):xn(t).local()}function Pn(t){return-Math.round(t._d.getTimezoneOffset())}function zn(){return!!this.isValid()&&this._isUTC&&0===this._offset}i.updateOffset=function(){};var qn=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Jn=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Qn(t,n){var i,e,r,u,o,a,f=t,d=null;return Rn(t)?f={ms:t._milliseconds,d:t._days,M:t._months}:h(t)||!isNaN(+t)?(f={},n?f[n]=+t:f.milliseconds=+t):(d=qn.exec(t))?(i="-"===d[1]?-1:1,f={y:0,d:P(d[wt])*i,h:P(d[Nt])*i,m:P(d[pt])*i,s:P(d[bt])*i,ms:P(Zn(1e3*d[kt]))*i}):(d=Jn.exec(t))?f={y:Bn(d[2],i="-"===d[1]?-1:1),M:Bn(d[3],i),w:Bn(d[4],i),d:Bn(d[5],i),h:Bn(d[6],i),m:Bn(d[7],i),s:Bn(d[8],i)}:null==f?f={}:"object"==typeof f&&("from"in f||"to"in f)&&(u=xn(f.from),o=xn(f.to),r=u.isValid()&&o.isValid()?(o=Un(o,u),u.isBefore(o)?a=Xn(u,o):((a=Xn(o,u)).milliseconds=-a.milliseconds,a.months=-a.months),a):{milliseconds:0,months:0},(f={}).ms=r.milliseconds,f.M=r.months),e=new jn(f),Rn(t)&&s(t,"_locale")&&(e._locale=t._locale),Rn(t)&&s(t,"_isValid")&&(e._isValid=t._isValid),e}function Bn(t,n){var i=t&&parseFloat(t.replace(",","."));return(isNaN(i)?0:i)*n}function Xn(t,n){var i={};return i.months=n.month()-t.month()+12*(n.year()-t.year()),t.clone().add(i.months,"M").isAfter(n)&&--i.months,i.milliseconds=+n-+t.clone().add(i.months,"M"),i}function Kn(t,n){return function(i,e){var r;return null===e||isNaN(+e)||(b(n,"moment()."+n+"(period, number) is deprecated. Please use moment()."+n+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=i,i=e,e=r),Vn(this,Qn(i,e),t),this}}function Vn(t,n,e,r){var s=n._milliseconds,u=Zn(n._days),o=Zn(n._months);t.isValid()&&(r=null==r||r,o&&Ot(t,q(t,"Month")+o*e),u&&J(t,"Date",q(t,"Date")+u*e),s&&t._d.setTime(t._d.valueOf()+s*e),r&&i.updateOffset(t,u||o))}Qn.fn=jn.prototype,Qn.invalid=function(){return Qn(NaN)};var ti=Kn(1,"add"),ni=Kn(-1,"subtract");function ii(t){return"string"==typeof t||t instanceof String}function ei(t,n){if(t.date()<n.date())return-ei(n,t);var i=12*(n.year()-t.year())+(n.month()-t.month()),e=t.clone().add(i,"months");return-(i+(n-e<0?(n-e)/(e-t.clone().add(i-1,"months")):(n-e)/(t.clone().add(i+1,"months")-e)))||0}function ri(t){var n;return void 0===t?this._locale._abbr:(null!=(n=Yn(t))&&(this._locale=n),this)}i.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",i.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var si=w("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(t){return void 0===t?this.localeData():this.locale(t)}));function ui(){return this._locale}var oi=1e3,hi=6e4,ai=36e5,fi=126227808e5;function di(t,n){return(t%n+n)%n}function ci(t,n,i){return t<100&&t>=0?new Date(t+400,n,i)-fi:new Date(t,n,i).valueOf()}function li(t,n,i){return t<100&&t>=0?Date.UTC(t+400,n,i)-fi:Date.UTC(t,n,i)}function mi(t,n){return n.erasAbbrRegex(t)}function vi(){var t,n,i=[],e=[],r=[],s=[],u=this.eras();for(t=0,n=u.length;t<n;++t)e.push(mt(u[t].name)),i.push(mt(u[t].abbr)),r.push(mt(u[t].narrow)),s.push(mt(u[t].name)),s.push(mt(u[t].abbr)),s.push(mt(u[t].narrow));this._erasRegex=new RegExp("^("+s.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+e.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}function Yi(t,n){F(0,[t,t.length],0,n)}function Mi(t,n,i,e,r){var s;return null==t?Pt(this,e,r).year:(n>(s=zt(t,e,r))&&(n=s),yi.call(this,t,n,i,e,r))}function yi(t,n,i,e,r){var s=Ut(t,n,i,e,r),u=Ct(s.year,0,s.dayOfYear);return this.year(u.getUTCFullYear()),this.month(u.getUTCMonth()),this.date(u.getUTCDate()),this}F("N",0,0,"eraAbbr"),F("NN",0,0,"eraAbbr"),F("NNN",0,0,"eraAbbr"),F("NNNN",0,0,"eraName"),F("NNNNN",0,0,"eraNarrow"),F("y",["y",1],"yo","eraYear"),F("y",["yy",2],0,"eraYear"),F("y",["yyy",3],0,"eraYear"),F("y",["yyyy",4],0,"eraYear"),ct("N",mi),ct("NN",mi),ct("NNN",mi),ct("NNNN",(function(t,n){return n.erasNameRegex(t)})),ct("NNNNN",(function(t,n){return n.erasNarrowRegex(t)})),Yt(["N","NN","NNN","NNNN","NNNNN"],(function(t,n,i,e){var r=i._locale.erasParse(t,e,i._strict);r?l(i).era=r:l(i).invalidEra=t})),ct("y",ot),ct("yy",ot),ct("yyy",ot),ct("yyyy",ot),ct("yo",(function(t,n){return n._eraYearOrdinalRegex||ot})),Yt(["y","yy","yyy","yyyy"],gt),Yt(["yo"],(function(t,n,i){var e;i._locale._eraYearOrdinalRegex&&(e=t.match(i._locale._eraYearOrdinalRegex)),n[gt]=i._locale.eraYearOrdinalParse?i._locale.eraYearOrdinalParse(t,e):parseInt(t,10)})),F(0,["gg",2],0,(function(){return this.weekYear()%100})),F(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),Yi("gggg","weekYear"),Yi("ggggg","weekYear"),Yi("GGGG","isoWeekYear"),Yi("GGGGG","isoWeekYear"),j("weekYear","gg"),j("isoWeekYear","GG"),C("weekYear",1),C("isoWeekYear",1),ct("G",ht),ct("g",ht),ct("GG",nt,X),ct("gg",nt,X),ct("GGGG",st,V),ct("gggg",st,V),ct("GGGGG",ut,tt),ct("ggggg",ut,tt),Mt(["gggg","ggggg","GGGG","GGGGG"],(function(t,n,i,e){n[e.substr(0,2)]=P(t)})),Mt(["gg","GG"],(function(t,n,e,r){n[r]=i.parseTwoDigitYear(t)})),F("Q",0,"Qo","quarter"),j("quarter","Q"),C("quarter",7),ct("Q",B),Yt("Q",(function(t,n){n[St]=3*(P(t)-1)})),F("D",["DD",2],"Do","date"),j("date","D"),C("date",9),ct("D",nt),ct("DD",nt,X),ct("Do",(function(t,n){return t?n._dayOfMonthOrdinalParse||n._ordinalParse:n._dayOfMonthOrdinalParseLenient})),Yt(["D","DD"],wt),Yt("Do",(function(t,n){n[wt]=P(t.match(nt)[0])}));var Di=z("Date",!0);F("DDD",["DDDD",3],"DDDo","dayOfYear"),j("dayOfYear","DDD"),C("dayOfYear",4),ct("DDD",rt),ct("DDDD",K),Yt(["DDD","DDDD"],(function(t,n,i){i._dayOfYear=P(t)})),F("m",["mm",2],0,"minute"),j("minute","m"),C("minute",14),ct("m",nt),ct("mm",nt,X),Yt(["m","mm"],pt);var gi=z("Minutes",!1);F("s",["ss",2],0,"second"),j("second","s"),C("second",15),ct("s",nt),ct("ss",nt,X),Yt(["s","ss"],bt);var Si,wi,Ni=z("Seconds",!1);for(F("S",0,0,(function(){return~~(this.millisecond()/100)})),F(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),F(0,["SSS",3],0,"millisecond"),F(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),F(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),F(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),F(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),F(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),F(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),j("millisecond","ms"),C("millisecond",16),ct("S",rt,B),ct("SS",rt,X),ct("SSS",rt,K),Si="SSSS";Si.length<=9;Si+="S")ct(Si,ot);function pi(t,n){n[kt]=P(1e3*("0."+t))}for(Si="S";Si.length<=9;Si+="S")Yt(Si,pi);wi=z("Milliseconds",!1),F("z",0,0,"zoneAbbr"),F("zz",0,0,"zoneName");var bi=D.prototype;function ki(t){return t}bi.add=ti,bi.calendar=function(t,n){var o;1===arguments.length&&(arguments[0]?g(o=arguments[0])||a(o)||ii(o)||h(o)||function(t){var n=e(t),i=!1;return n&&(i=0===t.filter((function(n){return!h(n)&&ii(t)})).length),n&&i}(o)||function(t){var n,i=r(t)&&!u(t),e=!1,o=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],h=o.length;for(n=0;n<h;n+=1)e=e||s(t,o[n]);return i&&e}(o)||null==o?(t=arguments[0],n=void 0):function(t){var n,i=r(t)&&!u(t),e=!1,o=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(n=0;n<o.length;n+=1)e=e||s(t,o[n]);return i&&e}(arguments[0])&&(n=arguments[0],t=void 0):(t=void 0,n=void 0));var f=t||xn(),d=Un(f,this).startOf("day"),c=i.calendarFormat(this,d)||"sameElse",l=n&&(k(n[c])?n[c].call(this,f):n[c]);return this.format(l||this.localeData().calendar(c,this,xn(f)))},bi.clone=function(){return new D(this)},bi.diff=function(t,n,i){var e,r,s;if(!this.isValid())return NaN;if(!(e=Un(t,this)).isValid())return NaN;switch(r=6e4*(e.utcOffset()-this.utcOffset()),n=R(n)){case"year":s=ei(this,e)/12;break;case"month":s=ei(this,e);break;case"quarter":s=ei(this,e)/3;break;case"second":s=(this-e)/1e3;break;case"minute":s=(this-e)/6e4;break;case"hour":s=(this-e)/36e5;break;case"day":s=(this-e-r)/864e5;break;case"week":s=(this-e-r)/6048e5;break;default:s=this-e}return i?s:U(s)},bi.endOf=function(t){var n,e;if(void 0===(t=R(t))||"millisecond"===t||!this.isValid())return this;switch(e=this._isUTC?li:ci,t){case"year":n=e(this.year()+1,0,1)-1;break;case"quarter":n=e(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":n=e(this.year(),this.month()+1,1)-1;break;case"week":n=e(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":n=e(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":n=e(this.year(),this.month(),this.date()+1)-1;break;case"hour":n=this._d.valueOf(),n+=ai-di(n+(this._isUTC?0:this.utcOffset()*hi),ai)-1;break;case"minute":n=this._d.valueOf(),n+=hi-di(n,hi)-1;break;case"second":n=this._d.valueOf(),n+=oi-di(n,oi)-1}return this._d.setTime(n),i.updateOffset(this,!0),this},bi.format=function(t){t||(t=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var n=A(this,t);return this.localeData().postformat(n)},bi.from=function(t,n){return this.isValid()&&(g(t)&&t.isValid()||xn(t).isValid())?Qn({to:this,from:t}).locale(this.locale()).humanize(!n):this.localeData().invalidDate()},bi.fromNow=function(t){return this.from(xn(),t)},bi.to=function(t,n){return this.isValid()&&(g(t)&&t.isValid()||xn(t).isValid())?Qn({from:this,to:t}).locale(this.locale()).humanize(!n):this.localeData().invalidDate()},bi.toNow=function(t){return this.to(xn(),t)},bi.get=function(t){return k(this[t=R(t)])?this[t]():this},bi.invalidAt=function(){return l(this).overflow},bi.isAfter=function(t,n){var i=g(t)?t:xn(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(n=R(n)||"millisecond")?this.valueOf()>i.valueOf():i.valueOf()<this.clone().startOf(n).valueOf())},bi.isBefore=function(t,n){var i=g(t)?t:xn(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(n=R(n)||"millisecond")?this.valueOf()<i.valueOf():this.clone().endOf(n).valueOf()<i.valueOf())},bi.isBetween=function(t,n,i,e){var r=g(t)?t:xn(t),s=g(n)?n:xn(n);return!!(this.isValid()&&r.isValid()&&s.isValid())&&("("===(e=e||"()")[0]?this.isAfter(r,i):!this.isBefore(r,i))&&(")"===e[1]?this.isBefore(s,i):!this.isAfter(s,i))},bi.isSame=function(t,n){var i,e=g(t)?t:xn(t);return!(!this.isValid()||!e.isValid())&&("millisecond"===(n=R(n)||"millisecond")?this.valueOf()===e.valueOf():(i=e.valueOf(),this.clone().startOf(n).valueOf()<=i&&i<=this.clone().endOf(n).valueOf()))},bi.isSameOrAfter=function(t,n){return this.isSame(t,n)||this.isAfter(t,n)},bi.isSameOrBefore=function(t,n){return this.isSame(t,n)||this.isBefore(t,n)},bi.isValid=function(){return m(this)},bi.lang=si,bi.locale=ri,bi.localeData=ui,bi.max=An,bi.min=Fn,bi.parsingFlags=function(){return d({},l(this))},bi.set=function(t,n){if("object"==typeof t){var i,e=function(t){var n,i=[];for(n in t)s(t,n)&&i.push({unit:n,priority:I[n]});return i.sort((function(t,n){return t.priority-n.priority})),i}(t=Z(t)),r=e.length;for(i=0;i<r;i++)this[e[i].unit](t[e[i].unit])}else if(k(this[t=R(t)]))return this[t](n);return this},bi.startOf=function(t){var n,e;if(void 0===(t=R(t))||"millisecond"===t||!this.isValid())return this;switch(e=this._isUTC?li:ci,t){case"year":n=e(this.year(),0,1);break;case"quarter":n=e(this.year(),this.month()-this.month()%3,1);break;case"month":n=e(this.year(),this.month(),1);break;case"week":n=e(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":n=e(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":n=e(this.year(),this.month(),this.date());break;case"hour":n=this._d.valueOf(),n-=di(n+(this._isUTC?0:this.utcOffset()*hi),ai);break;case"minute":n=this._d.valueOf(),n-=di(n,hi);break;case"second":n=this._d.valueOf(),n-=di(n,oi)}return this._d.setTime(n),i.updateOffset(this,!0),this},bi.subtract=ni,bi.toArray=function(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]},bi.toObject=function(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}},bi.toDate=function(){return new Date(this.valueOf())},bi.toISOString=function(t){if(!this.isValid())return null;var n=!0!==t,i=n?this.clone().utc():this;return i.year()<0||i.year()>9999?A(i,n?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):k(Date.prototype.toISOString)?n?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",A(i,"Z")):A(i,n?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},bi.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t,n,i="moment",e="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",e="Z"),t="["+i+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(t+n+"-MM-DD[T]HH:mm:ss.SSS"+e+'[")]')},"undefined"!=typeof Symbol&&null!=Symbol.for&&(bi[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),bi.toJSON=function(){return this.isValid()?this.toISOString():null},bi.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},bi.unix=function(){return Math.floor(this.valueOf()/1e3)},bi.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},bi.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},bi.eraName=function(){var t,n,i,e=this.localeData().eras();for(t=0,n=e.length;t<n;++t){if(i=this.clone().startOf("day").valueOf(),e[t].since<=i&&i<=e[t].until)return e[t].name;if(e[t].until<=i&&i<=e[t].since)return e[t].name}return""},bi.eraNarrow=function(){var t,n,i,e=this.localeData().eras();for(t=0,n=e.length;t<n;++t){if(i=this.clone().startOf("day").valueOf(),e[t].since<=i&&i<=e[t].until)return e[t].narrow;if(e[t].until<=i&&i<=e[t].since)return e[t].narrow}return""},bi.eraAbbr=function(){var t,n,i,e=this.localeData().eras();for(t=0,n=e.length;t<n;++t){if(i=this.clone().startOf("day").valueOf(),e[t].since<=i&&i<=e[t].until)return e[t].abbr;if(e[t].until<=i&&i<=e[t].since)return e[t].abbr}return""},bi.eraYear=function(){var t,n,e,r,s=this.localeData().eras();for(t=0,n=s.length;t<n;++t)if(e=s[t].since<=s[t].until?1:-1,r=this.clone().startOf("day").valueOf(),s[t].since<=r&&r<=s[t].until||s[t].until<=r&&r<=s[t].since)return(this.year()-i(s[t].since).year())*e+s[t].offset;return this.year()},bi.year=Zt,bi.isLeapYear=function(){return $(this.year())},bi.weekYear=function(t){return Mi.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},bi.isoWeekYear=function(t){return Mi.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},bi.quarter=bi.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},bi.month=Lt,bi.daysInMonth=function(){return Ht(this.year(),this.month())},bi.week=bi.weeks=function(t){var n=this.localeData().week(this);return null==t?n:this.add(7*(t-n),"d")},bi.isoWeek=bi.isoWeeks=function(t){var n=Pt(this,1,4).week;return null==t?n:this.add(7*(t-n),"d")},bi.weeksInYear=function(){var t=this.localeData()._week;return zt(this.year(),t.dow,t.doy)},bi.weeksInWeekYear=function(){var t=this.localeData()._week;return zt(this.weekYear(),t.dow,t.doy)},bi.isoWeeksInYear=function(){return zt(this.year(),1,4)},bi.isoWeeksInISOWeekYear=function(){return zt(this.isoWeekYear(),1,4)},bi.date=Di,bi.day=bi.days=function(t){if(!this.isValid())return null!=t?this:NaN;var n=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=function(t,n){return"string"!=typeof t?t:isNaN(t)?"number"==typeof(t=n.weekdaysParse(t))?t:null:parseInt(t,10)}(t,this.localeData()),this.add(t-n,"d")):n},bi.weekday=function(t){if(!this.isValid())return null!=t?this:NaN;var n=(this.day()+7-this.localeData()._week.dow)%7;return null==t?n:this.add(t-n,"d")},bi.isoWeekday=function(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var n=function(t,n){return"string"==typeof t?n.weekdaysParse(t)%7||7:isNaN(t)?null:t}(t,this.localeData());return this.day(this.day()%7?n:n-7)}return this.day()||7},bi.dayOfYear=function(t){var n=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?n:this.add(t-n,"d")},bi.hour=bi.hours=on,bi.minute=bi.minutes=gi,bi.second=bi.seconds=Ni,bi.millisecond=bi.milliseconds=wi,bi.utcOffset=function(t,n,e){var r,s=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=$n(ft,t)))return this}else Math.abs(t)<16&&!e&&(t*=60);return!this._isUTC&&n&&(r=Pn(this)),this._offset=t,this._isUTC=!0,null!=r&&this.add(r,"m"),s!==t&&(!n||this._changeInProgress?Vn(this,Qn(t-s,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?s:Pn(this)},bi.utc=function(t){return this.utcOffset(0,t)},bi.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Pn(this),"m")),this},bi.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=$n(at,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this},bi.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?xn(t).utcOffset():0,(this.utcOffset()-t)%60==0)},bi.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},bi.isLocal=function(){return!!this.isValid()&&!this._isUTC},bi.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},bi.isUtc=zn,bi.isUTC=zn,bi.zoneAbbr=function(){return this._isUTC?"UTC":""},bi.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},bi.dates=w("dates accessor is deprecated. Use date instead.",Di),bi.months=w("months accessor is deprecated. Use month instead",Lt),bi.years=w("years accessor is deprecated. Use year instead",Zt),bi.zone=w("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(t,n){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,n),this):-this.utcOffset()})),bi.isDSTShifted=w("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!o(this._isDSTShifted))return this._isDSTShifted;var t,n={};return y(n,this),(n=Wn(n))._a?(t=n._isUTC?c(n._a):xn(n._a),this._isDSTShifted=this.isValid()&&function(t,n){var i,e=Math.min(t.length,n.length),r=Math.abs(t.length-n.length),s=0;for(i=0;i<e;i++)P(t[i])!==P(n[i])&&s++;return s+r}(n._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}));var Ti=_.prototype;function _i(t,n,i,e){var r=Yn(),s=c().set(e,n);return r[i](s,t)}function Hi(t,n,i){if(h(t)&&(n=t,t=void 0),t=t||"",null!=n)return _i(t,n,i,"month");var e,r=[];for(e=0;e<12;e++)r[e]=_i(t,e,i,"month");return r}function Gi(t,n,i,e){"boolean"==typeof t?(h(n)&&(i=n,n=void 0),n=n||""):(i=n=t,t=!1,h(n)&&(i=n,n=void 0),n=n||"");var r,s=Yn(),u=t?s._week.dow:0,o=[];if(null!=i)return _i(n,(i+u)%7,e,"day");for(r=0;r<7;r++)o[r]=_i(n,(r+u)%7,e,"day");return o}Ti.calendar=function(t,n,i){var e=this._calendar[t]||this._calendar.sameElse;return k(e)?e.call(n,i):e},Ti.longDateFormat=function(t){var n=this._longDateFormat[t],i=this._longDateFormat[t.toUpperCase()];return n||!i?n:(this._longDateFormat[t]=i.match(G).map((function(t){return"MMMM"===t||"MM"===t||"DD"===t||"dddd"===t?t.slice(1):t})).join(""),this._longDateFormat[t])},Ti.invalidDate=function(){return this._invalidDate},Ti.ordinal=function(t){return this._ordinal.replace("%d",t)},Ti.preparse=ki,Ti.postformat=ki,Ti.relativeTime=function(t,n,i,e){var r=this._relativeTime[i];return k(r)?r(t,n,i,e):r.replace(/%d/i,t)},Ti.pastFuture=function(t,n){var i=this._relativeTime[t>0?"future":"past"];return k(i)?i(n):i.replace(/%s/i,n)},Ti.set=function(t){var n,i;for(i in t)s(t,i)&&(k(n=t[i])?this[i]=n:this["_"+i]=n);this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Ti.eras=function(){var t,n,e,r=this._eras||Yn("en")._eras;for(t=0,n=r.length;t<n;++t)switch("string"==typeof r[t].since&&(e=i(r[t].since).startOf("day"),r[t].since=e.valueOf()),typeof r[t].until){case"undefined":r[t].until=1/0;break;case"string":e=i(r[t].until).startOf("day").valueOf(),r[t].until=e.valueOf()}return r},Ti.erasParse=function(t,n,i){var e,r,s,u,o,h=this.eras();for(t=t.toUpperCase(),e=0,r=h.length;e<r;++e)if(s=h[e].name.toUpperCase(),u=h[e].abbr.toUpperCase(),o=h[e].narrow.toUpperCase(),i)switch(n){case"N":case"NN":case"NNN":if(u===t)return h[e];break;case"NNNN":if(s===t)return h[e];break;case"NNNNN":if(o===t)return h[e]}else if([s,u,o].indexOf(t)>=0)return h[e]},Ti.erasConvertYear=function(t,n){var e=t.since<=t.until?1:-1;return void 0===n?i(t.since).year():i(t.since).year()+(n-t.offset)*e},Ti.erasAbbrRegex=function(t){return s(this,"_erasAbbrRegex")||vi.call(this),t?this._erasAbbrRegex:this._erasRegex},Ti.erasNameRegex=function(t){return s(this,"_erasNameRegex")||vi.call(this),t?this._erasNameRegex:this._erasRegex},Ti.erasNarrowRegex=function(t){return s(this,"_erasNarrowRegex")||vi.call(this),t?this._erasNarrowRegex:this._erasRegex},Ti.months=function(t,n){return t?e(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||Et).test(n)?"format":"standalone"][t.month()]:e(this._months)?this._months:this._months.standalone},Ti.monthsShort=function(t,n){return t?e(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[Et.test(n)?"format":"standalone"][t.month()]:e(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Ti.monthsParse=function(t,n,i){var e,r,s;if(this._monthsParseExact)return At.call(this,t,n,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),e=0;e<12;e++){if(r=c([2e3,e]),i&&!this._longMonthsParse[e]&&(this._longMonthsParse[e]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[e]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),i||this._monthsParse[e]||(s="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[e]=new RegExp(s.replace(".",""),"i")),i&&"MMMM"===n&&this._longMonthsParse[e].test(t))return e;if(i&&"MMM"===n&&this._shortMonthsParse[e].test(t))return e;if(!i&&this._monthsParse[e].test(t))return e}},Ti.monthsRegex=function(t){return this._monthsParseExact?(s(this,"_monthsRegex")||jt.call(this),t?this._monthsStrictRegex:this._monthsRegex):(s(this,"_monthsRegex")||(this._monthsRegex=Ft),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},Ti.monthsShortRegex=function(t){return this._monthsParseExact?(s(this,"_monthsRegex")||jt.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(s(this,"_monthsShortRegex")||(this._monthsShortRegex=xt),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},Ti.week=function(t){return Pt(t,this._week.dow,this._week.doy).week},Ti.firstDayOfYear=function(){return this._week.doy},Ti.firstDayOfWeek=function(){return this._week.dow},Ti.weekdays=function(t,n){var i=e(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(n)?"format":"standalone"];return!0===t?qt(i,this._week.dow):t?i[t.day()]:i},Ti.weekdaysMin=function(t){return!0===t?qt(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin},Ti.weekdaysShort=function(t){return!0===t?qt(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort},Ti.weekdaysParse=function(t,n,i){var e,r,s;if(this._weekdaysParseExact)return tn.call(this,t,n,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),e=0;e<7;e++){if(r=c([2e3,1]).day(e),i&&!this._fullWeekdaysParse[e]&&(this._fullWeekdaysParse[e]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[e]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[e]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[e]||(s="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[e]=new RegExp(s.replace(".",""),"i")),i&&"dddd"===n&&this._fullWeekdaysParse[e].test(t))return e;if(i&&"ddd"===n&&this._shortWeekdaysParse[e].test(t))return e;if(i&&"dd"===n&&this._minWeekdaysParse[e].test(t))return e;if(!i&&this._weekdaysParse[e].test(t))return e}},Ti.weekdaysRegex=function(t){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||nn.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(s(this,"_weekdaysRegex")||(this._weekdaysRegex=Xt),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},Ti.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||nn.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Kt),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Ti.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||nn.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(s(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Vt),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Ti.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},Ti.meridiem=function(t,n,i){return t>11?i?"pm":"PM":i?"am":"AM"},mn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var n=t%10;return t+(1===P(t%100/10)?"th":1===n?"st":2===n?"nd":3===n?"rd":"th")}}),i.lang=w("moment.lang is deprecated. Use moment.locale instead.",mn),i.langData=w("moment.langData is deprecated. Use moment.localeData instead.",Yn);var Wi=Math.abs;function Ei(t,n,i,e){var r=Qn(n,i);return t._milliseconds+=e*r._milliseconds,t._days+=e*r._days,t._months+=e*r._months,t._bubble()}function xi(t){return t<0?Math.floor(t):Math.ceil(t)}function Fi(t){return 4800*t/146097}function Ai(t){return 146097*t/4800}function Oi(t){return function(){return this.as(t)}}var Li=Oi("ms"),ji=Oi("s"),Ri=Oi("m"),Zi=Oi("h"),Ii=Oi("d"),Ci=Oi("w"),$i=Oi("M"),Ui=Oi("Q"),Pi=Oi("y");function zi(t){return function(){return this.isValid()?this._data[t]:NaN}}var qi=zi("milliseconds"),Ji=zi("seconds"),Qi=zi("minutes"),Bi=zi("hours"),Xi=zi("days"),Ki=zi("months"),Vi=zi("years"),te=Math.round,ne={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ie(t,n,i,e,r){return r.relativeTime(n||1,!!i,t,e)}var ee=Math.abs;function re(t){return(t>0)-(t<0)||+t}function se(){if(!this.isValid())return this.localeData().invalidDate();var t,n,i,e,r,s,u,o,h=ee(this._milliseconds)/1e3,a=ee(this._days),f=ee(this._months),d=this.asSeconds();return d?(t=U(h/60),n=U(t/60),h%=60,t%=60,i=U(f/12),f%=12,e=h?h.toFixed(3).replace(/\.?0+$/,""):"",r=d<0?"-":"",s=re(this._months)!==re(d)?"-":"",u=re(this._days)!==re(d)?"-":"",o=re(this._milliseconds)!==re(d)?"-":"",r+"P"+(i?s+i+"Y":"")+(f?s+f+"M":"")+(a?u+a+"D":"")+(n||t||h?"T":"")+(n?o+n+"H":"")+(t?o+t+"M":"")+(h?o+e+"S":"")):"P0D"}var ue=jn.prototype;ue.isValid=function(){return this._isValid},ue.abs=function(){var t=this._data;return this._milliseconds=Wi(this._milliseconds),this._days=Wi(this._days),this._months=Wi(this._months),t.milliseconds=Wi(t.milliseconds),t.seconds=Wi(t.seconds),t.minutes=Wi(t.minutes),t.hours=Wi(t.hours),t.months=Wi(t.months),t.years=Wi(t.years),this},ue.add=function(t,n){return Ei(this,t,n,1)},ue.subtract=function(t,n){return Ei(this,t,n,-1)},ue.as=function(t){if(!this.isValid())return NaN;var n,i,e=this._milliseconds;if("month"===(t=R(t))||"quarter"===t||"year"===t)switch(i=this._months+Fi(n=this._days+e/864e5),t){case"month":return i;case"quarter":return i/3;case"year":return i/12}else switch(n=this._days+Math.round(Ai(this._months)),t){case"week":return n/7+e/6048e5;case"day":return n+e/864e5;case"hour":return 24*n+e/36e5;case"minute":return 1440*n+e/6e4;case"second":return 86400*n+e/1e3;case"millisecond":return Math.floor(864e5*n)+e;default:throw new Error("Unknown unit "+t)}},ue.asMilliseconds=Li,ue.asSeconds=ji,ue.asMinutes=Ri,ue.asHours=Zi,ue.asDays=Ii,ue.asWeeks=Ci,ue.asMonths=$i,ue.asQuarters=Ui,ue.asYears=Pi,ue.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*P(this._months/12):NaN},ue._bubble=function(){var t,n,i,e,r,s=this._milliseconds,u=this._days,o=this._months,h=this._data;return s>=0&&u>=0&&o>=0||s<=0&&u<=0&&o<=0||(s+=864e5*xi(Ai(o)+u),u=0,o=0),h.milliseconds=s%1e3,t=U(s/1e3),h.seconds=t%60,n=U(t/60),h.minutes=n%60,i=U(n/60),h.hours=i%24,u+=U(i/24),o+=r=U(Fi(u)),u-=xi(Ai(r)),e=U(o/12),o%=12,h.days=u,h.months=o,h.years=e,this},ue.clone=function(){return Qn(this)},ue.get=function(t){return t=R(t),this.isValid()?this[t+"s"]():NaN},ue.milliseconds=qi,ue.seconds=Ji,ue.minutes=Qi,ue.hours=Bi,ue.days=Xi,ue.weeks=function(){return U(this.days()/7)},ue.months=Ki,ue.years=Vi,ue.humanize=function(t,n){if(!this.isValid())return this.localeData().invalidDate();var i,e,r=!1,s=ne;return"object"==typeof t&&(n=t,t=!1),"boolean"==typeof t&&(r=t),"object"==typeof n&&(s=Object.assign({},ne,n),null!=n.s&&null==n.ss&&(s.ss=n.s-1)),e=function(t,n,i,e){var r=Qn(t).abs(),s=te(r.as("s")),u=te(r.as("m")),o=te(r.as("h")),h=te(r.as("d")),a=te(r.as("M")),f=te(r.as("w")),d=te(r.as("y")),c=s<=i.ss&&["s",s]||s<i.s&&["ss",s]||u<=1&&["m"]||u<i.m&&["mm",u]||o<=1&&["h"]||o<i.h&&["hh",o]||h<=1&&["d"]||h<i.d&&["dd",h];return null!=i.w&&(c=c||f<=1&&["w"]||f<i.w&&["ww",f]),(c=c||a<=1&&["M"]||a<i.M&&["MM",a]||d<=1&&["y"]||["yy",d])[2]=n,c[3]=+t>0,c[4]=e,ie.apply(null,c)}(this,!r,s,i=this.localeData()),r&&(e=i.pastFuture(+this,e)),i.postformat(e)},ue.toISOString=se,ue.toString=se,ue.toJSON=se,ue.locale=ri,ue.localeData=ui,ue.toIsoString=w("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",se),ue.lang=si,F("X",0,0,"unix"),F("x",0,0,"valueOf"),ct("x",ht),ct("X",/[+-]?\d+(\.\d{1,3})?/),Yt("X",(function(t,n,i){i._d=new Date(1e3*parseFloat(t))})),Yt("x",(function(t,n,i){i._d=new Date(P(t))})),
|
7
|
+
//! moment.js
|
8
|
+
i.version="2.29.4",t=xn,i.fn=bi,i.min=function(){return On("isBefore",[].slice.call(arguments,0))},i.max=function(){return On("isAfter",[].slice.call(arguments,0))},i.now=function(){return Date.now?Date.now():+new Date},i.utc=c,i.unix=function(t){return xn(1e3*t)},i.months=function(t,n){return Hi(t,n,"months")},i.isDate=a,i.locale=mn,i.invalid=v,i.duration=Qn,i.isMoment=g,i.weekdays=function(t,n,i){return Gi(t,n,i,"weekdays")},i.parseZone=function(){return xn.apply(null,arguments).parseZone()},i.localeData=Yn,i.isDuration=Rn,i.monthsShort=function(t,n){return Hi(t,n,"monthsShort")},i.weekdaysMin=function(t,n,i){return Gi(t,n,i,"weekdaysMin")},i.defineLocale=vn,i.updateLocale=function(t,n){if(null!=n){var i,e,r=hn;null!=an[t]&&null!=an[t].parentLocale?an[t].set(T(an[t]._config,n)):(null!=(e=ln(t))&&(r=e._config),n=T(r,n),null==e&&(n.abbr=t),(i=new _(n)).parentLocale=an[t],an[t]=i),mn(t)}else null!=an[t]&&(null!=an[t].parentLocale?(an[t]=an[t].parentLocale,t===mn()&&mn(t)):null!=an[t]&&delete an[t]);return an[t]},i.locales=function(){return N(an)},i.weekdaysShort=function(t,n,i){return Gi(t,n,i,"weekdaysShort")},i.normalizeUnits=R,i.relativeTimeRounding=function(t){return void 0===t?te:"function"==typeof t&&(te=t,!0)},i.relativeTimeThreshold=function(t,n){return void 0!==ne[t]&&(void 0===n?ne[t]:(ne[t]=n,"s"===t&&(ne.ss=n-1),!0))},i.calendarFormat=function(t,n){var i=t.diff(n,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"},i.prototype=bi,i.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const oe=(t,n=",")=>null!=t?`${t}`.replace(/\B(?=(\d{3})+(?!\d))/g,n):"",he=t=>!!(t.toLowerCase().match(/android/i)||t.toLowerCase().match(/blackberry|bb/i)||t.toLowerCase().match(/iphone|ipad|ipod/i)||t.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)),ae=t=>{if(0===(null==t?void 0:t.length))return"";let n,e,r=99999999999;const s=new Date(Date.now());return t.forEach(((u,o)=>{const h=new Date(u.schedules[0].startTime),a=new Date(u.schedules[0].endTime);i(a).diff(s)<r&&(r=i(a).diff(s),e=o),i(s).isAfter(h)&&i(s).isBefore(a)&&(n=t[e].name)})),n},fe=t=>{var n,i;return{winner:t.Winner,color:t.Color,location:{column:null===(n=t.Location)||void 0===n?void 0:n.Column,row:null===(i=t.Location)||void 0===i?void 0:i.Row},ties:0|t.Ties,score:t.Score,playerPair:t.PlayerPair,bankerPair:t.BankerPair}};export{ae as a,fe as c,i as h,he as i,oe as n}
|
@@ -0,0 +1 @@
|
|
1
|
+
import{r as e,h as i}from"./p-b5a64db5.js";import{n as t,a,h as s}from"./p-4ece4698.js";import{t as n}from"./p-59ceeaaa.js";import{W as o,c as r}from"./p-2d02adb1.js";const l={AED:"د.إ",AFN:"؋",ALL:"L",AMD:"֏",ANG:"ƒ",AOA:"Kz",ARS:"$",AUD:"$",AWG:"ƒ",AZN:"ман",BAM:"KM",BBD:"$",BDT:"৳",BGN:"лв",BHD:".د.ب",BIF:"FBu",BMD:"$",BND:"$",BOB:"$b",BRL:"R$",BSD:"$",BTC:"฿",BTN:"Nu.",BWP:"P",BYR:"p.",BZD:"BZ$",CAD:"$",CDF:"FC",CHF:"CHF",CLP:"$",CNY:"¥",COP:"$",CRC:"₡",CUC:"$",CUP:"₱",CVE:"$",CZK:"Kč",DJF:"Fdj",DKK:"kr",DOP:"RD$",DZD:"دج",EEK:"kr",EGP:"£",ERN:"Nfk",ETB:"Br",ETH:"Ξ",EUR:"€",FJD:"$",FKP:"£",GBP:"£",GEL:"₾",GGP:"£",GHC:"₵",GHS:"GH₵",GIP:"£",GMD:"D",GNF:"FG",GTQ:"Q",GYD:"$",HKD:"$",HNL:"L",HRK:"kn",HTG:"G",HUF:"Ft",IDR:"Rp",ILS:"₪",IMP:"£",INR:"₹",IQD:"ع.د",IRR:"﷼",ISK:"kr",JEP:"£",JMD:"J$",JOD:"JD",JPY:"¥",KES:"KSh",KGS:"лв",KHR:"៛",KMF:"CF",KPW:"₩",KRW:"₩",KWD:"KD",KYD:"$",KZT:"лв",LAK:"₭",LBP:"£",LKR:"₨",LRD:"$",LSL:"M",LTC:"Ł",LTL:"Lt",LVL:"Ls",LYD:"LD",MAD:"MAD",MDL:"lei",MGA:"Ar",MKD:"ден",MMK:"K",MNT:"₮",MOP:"MOP$",MRO:"UM",MUR:"₨",MVR:"Rf",MWK:"MK",MXN:"$",MYR:"RM",MZN:"MT",NAD:"$",NGN:"₦",NIO:"C$",NOK:"kr",NPR:"₨",NZD:"$",OMR:"﷼",PAB:"B/.",PEN:"S/.",PGK:"K",PHP:"₱",PKR:"₨",PLN:"zł",PYG:"Gs",QAR:"﷼",RMB:"¥",RON:"lei",RSD:"Дин.",RUB:"₽",RWF:"R₣",SAR:"﷼",SBD:"$",SCR:"₨",SDG:"ج.س.",SEK:"kr",SGD:"$",SHP:"£",SLL:"Le",SOS:"S",SRD:"$",SSP:"£",STD:"Db",SVC:"$",SYP:"£",SZL:"E",THB:"฿",TJS:"SM",TMT:"T",TND:"د.ت",TOP:"T$",TRL:"₤",TRY:"₺",TTD:"TT$",TVD:"$",TWD:"NT$",TZS:"TSh",UAH:"₴",UGX:"USh",USD:"$",UYU:"$U",UZS:"лв",VEF:"Bs",VND:"₫",VUV:"VT",WST:"WS$",XAF:"FCFA",XBT:"Ƀ",XCD:"$",XOF:"CFA",XPF:"₣",YER:"﷼",ZAR:"R",ZWD:"Z$"},m=class{constructor(i){e(this,i),this.defaultCurrency="EUR",this.isBetLimitAvailable=!1,this.betLimit=void 0,this.numberOfPlayers=void 0}getCurrencySymbols(e){return l[e]}componentWillRender(){if(this.betLimit){const e=this.betLimit.max?this.betLimit.max:this.betLimit.min||{};this.isBetLimitAvailable=1===Object.keys(e).length,this.currency=this.isBetLimitAvailable?Object.keys(e)[0]:this.defaultCurrency}}render(){return this.isBetLimitAvailable?i("p",{class:"LiveLimits"},i("span",{class:"BetLimitLeft"},this.getCurrencySymbols(this.currency)," ",t(this.betLimit.min[this.currency])," -"," ",t(this.betLimit.max[this.currency])),(this.numberOfPlayers||0==this.numberOfPlayers)&&i("span",{class:"BetLimitRight"},i("svg",{fill:"white",width:"13",height:"13",viewBox:"0 0 13 14",xmlns:"http://www.w3.org/2000/svg"},i("path",{d:"M4 8.2a4.6 4.6 0 0 0 5 0c2.7.8 4 2.6 4 4.8H0c0-2.2 1.3-4 4-4.8zM6.6 8c2 0 3.8-1.7 3.8-4 0-2.1-1.7-4-3.8-4a3.9 3.9 0 0 0-3.8 4c0 2.2 1.7 4 3.8 4z"})),i("span",{class:"NrOfPlayers"},this.numberOfPlayers))):""}};m.style=":host{display:block}";const c=class{constructor(i){e(this,i),this.isNewGame=!1,this.language="en",this.betLimit=void 0,this.gameInfo=void 0,this.gameDetails=void 0}async onGameLoaded(e){var i;this.gameInfo=e,this.isNewGame=this.gameInfo.isNew,"false"===this.gameInfo.gameTag&&(this.gameInfo.gameTag=null),this.gameTag=this.gameInfo.gameTag,this.gameInfo.details&&(this.gameDetails=this.gameInfo.details,this.isDouble=!!this.gameDetails&&this.gameInfo.details.category.toLowerCase()===o.doubleballroulette,this.gameTag=this.gameDetails&&(null===(i=this.gameInfo.advancedTags)||void 0===i?void 0:i.length)>0?a(this.gameInfo.advancedTags):this.gameInfo.gameTag,this.betLimit=this.gameDetails?this.gameDetails.betLimit:null,this.initTimeProperties())}initTimeProperties(){var e,i,t,a,s;"Bounded"===(null===(i=null===(e=this.gameDetails)||void 0===e?void 0:e.openHours)||void 0===i?void 0:i.type)&&(this.gameStartTime=null===(a=null===(t=this.gameDetails)||void 0===t?void 0:t.openHours)||void 0===a?void 0:a.value.startTime,this.gameTimeFormat=null===(s=this.gameDetails)||void 0===s?void 0:s.openHours.value.originalTimeFormat)}async onGameDetailUpdated(e){this.gameInfo.details=this.gameDetails=e,this.gameDetails=Object.assign({},this.gameDetails),this.initTimeProperties()}render(){var e,t,a;return this.gameInfo?i("div",{class:"GameExtraInfo",part:"GameExtraInfo"},this.isNewGame&&i("span",{class:"GameExtraInfoLabel NewGameTag",part:"GameExtraInfoLabel NewGameTag"},n("new",this.language)),this.gameTag&&i("span",{class:"GameExtraInfoLabel PopularGameTag",part:"GameExtraInfoLabel PopularGameTag"},this.gameTag),this.gameDetails&&i("div",{class:`GameProp LiveProps ${r[this.gameDetails.category.toLowerCase()]} ${this.isDouble?" Double":""}`,part:`GameProp LiveProps ${r[this.gameDetails.category.toLowerCase()]} ${this.isDouble?" Double":""}`},this.gameDetails.isOpen?i("slot",{name:"category-details"}):this.gameStartTime&&this.gameTimeFormat&&i("div",{class:"ClosedGame",part:"ClosedGame"},n("opens",this.language),i("span",null," ",s.utc(this.gameStartTime).local().format(this.gameTimeFormat)," ")),(null===(e=this.gameDetails.dealer)||void 0===e?void 0:e.DealerName)&&i("p",{class:"LiveLimits"},i("span",{class:"DealerName"},n("dealer",this.language),":"," ",null===(t=this.gameDetails)||void 0===t?void 0:t.dealer.DealerName," ")),i("casino-game-thumbnail-betlimit",{betLimit:this.betLimit,numberOfPlayers:null===(a=this.gameDetails)||void 0===a?void 0:a.numberOfPlayers}))):""}};c.style=':host{display:block;font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.LiveProps{display:flex;flex-direction:column;position:absolute;bottom:8px;left:-8px;right:0;width:100%;padding:0;background:linear-gradient(to top, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0.3) 80%, rgba(0, 0, 0, 0.99) 100%);color:var(--emw--color-white, #FFFFFF);opacity:1;font-size:14px}.GameExtraInfo{display:block;position:absolute;width:100%;height:100%;top:8px;left:8px;z-index:0}.GameExtraInfoLabel{font-size:11px;padding:3px;background-color:var(--emw--color-primary, #D0046C);color:var(--emw--color-primary-50, #FBECF4);font-weight:bold;text-transform:uppercase;border-radius:5px}.ListGame .GameInnerContainer .GameExtraInfo{z-index:10}.ListGame .GameInnerContainer .ClosedGame{opacity:1;z-index:10;padding:8px 10px;color:var(--emw--color-white, #FFFFFF);font-size:18px}.ListGame .GameInnerContainer .ClosedGame span{font-size:18px}.ListGame .GameInnerContainer .LiveIcons{position:relative;display:flex;padding:0 10px;box-sizing:border-box;flex-direction:row;align-items:center;justify-content:flex-start;min-height:auto;margin-bottom:5px}.ListGame .GameInnerContainer .LiveIcons:first-child{margin-left:0}.ListGame .GameInnerContainer .LiveIcons:last-child{margin-right:0}.ListGame .GameInnerContainer .LiveIcons.Black,.ListGame .GameInnerContainer .LiveIcons.Red,.ListGame .GameInnerContainer .LiveIcons.Green{color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-white, #FFFFFF)}.ListGame .GameInnerContainer .LiveIcons .LatestResult{min-width:12px;padding:2px;margin:0 6px 0 1px;font-size:14px;text-align:center}.ListGame .GameInnerContainer .LiveIcons .LatestResult.FirstElementAnimated{animation:flip-open 2s both;-webkit-animation:flip-open 2s both;-webkit-backface-visibility:visible;backface-visibility:visible}.ListGame .GameInnerContainer .LiveIcons .LatestResult.First{min-width:24px;padding:4px}.ListGame .GameInnerContainer .LiveIcons .LatestResult.First.Black,.ListGame .GameInnerContainer .LiveIcons .LatestResult.First.Red,.ListGame .GameInnerContainer .LiveIcons .LatestResult.First.Green{color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-white, #FFFFFF)}.ListGame .GameInnerContainer .LiveIcons .LatestResult.First.Black{background:var(--emw--color-black, #000000)}.ListGame .GameInnerContainer .LiveIcons .LatestResult.First.Red{background:red}.ListGame .GameInnerContainer .LiveIcons .LatestResult.First.Green{background:#56A80A}.ListGame .GameInnerContainer .LiveIcons .Double{display:flex;flex-direction:column}.ListGame .GameInnerContainer .LiveIcons .Double .LatestResult:first-child{margin-bottom:10px}.ListGame .GameInnerContainer .LiveIcons .Double:first-child .LatestResult{margin-left:0;margin-bottom:0}.ListGame .GameInnerContainer .LiveIcons .Double:last-child .LatestResult{margin-right:0}.ListGame .GameInnerContainer .LiveIcons .Black,.ListGame .GameInnerContainer .LiveIcons .Red,.ListGame .GameInnerContainer .LiveIcons .Green{background-color:transparent}.ListGame .GameInnerContainer .LiveIcons .Black{color:var(--emw--color-white, #FFFFFF)}.ListGame .GameInnerContainer .LiveIcons .Red{color:red}.ListGame .GameInnerContainer .LiveIcons .Green{color:#56A80A}.ListGame .GameInnerContainer .LiveLimits{opacity:1;display:flex;flex-direction:row;justify-content:space-between;padding:2px 10px 5px;background:var(--emw--color-black, #000000);color:var(--emw--color-white, #FFFFFF);font-weight:normal;font-size:12px}.ListGame .GameInnerContainer .LiveLimits span{font-size:12px;vertical-align:top}';export{m as casino_game_thumbnail_betlimit,c as casino_game_thumbnail_extrainfo}
|
@@ -0,0 +1 @@
|
|
1
|
+
import{r as i,h as t,H as e}from"./p-b5a64db5.js";import{D as a}from"./p-2d02adb1.js";import{t as s}from"./p-59ceeaaa.js";const o=class{constructor(t){i(this,t),this.language=void 0,this.gameInfo=void 0,this.gameDetails=void 0,this.seatsStatus=void 0,this.isTableFull=void 0}generateBlackJackSeats(i=a,t=[]){let e=[];for(let a=0;a<i;a++)e.push({seatNo:a,isClosed:t.indexOf((a+1).toString())>-1});return this.isTableFull=i==t.length,e}async onGameLoaded(i){var t,e,a;this.gameInfo=i,this.gameDetails=this.gameInfo.details,this.seatsStatus=this.generateBlackJackSeats(null===(t=this.gameDetails)||void 0===t?void 0:t.totalSeats,null===(e=this.gameDetails)||void 0===e?void 0:e.currentOccupiedSeats),null===(a=this.infoWrapperRef)||void 0===a||a.onGameLoaded(i)}async onGameDetailUpdated(i){var t,e;this.gameInfo.details=this.gameDetails=i,this.seatsStatus=this.generateBlackJackSeats(null===(t=this.gameDetails)||void 0===t?void 0:t.totalSeats,null===(e=this.gameDetails)||void 0===e?void 0:e.currentOccupiedSeats),this.gameDetails=Object.assign({},this.gameDetails)}render(){return t(e,{key:"e75d57ebd1f5827facafd15ffc6631cc84d7ca52"},t("casino-game-thumbnail-extrainfo",{key:"e861149d6e01ef11ecc92d8f3606e9406ca68238",ref:i=>this.infoWrapperRef=i,language:this.language},this.gameDetails&&this.gameDetails.isOpen&&t("div",{key:"e157039d431369c6e9b419cde52e3045765fb6c6",slot:"category-details",class:"LiveIcons",part:"LiveIcons"},this.isTableFull?t("span",{class:"FullTable",part:"FullTable"},s("full",this.language)):this.seatsStatus.map((i=>t("span",{class:(i.isClosed?"ClosedSeat":"OpenSeat")+" svg-container",id:`s${i.seatNo}`,part:(i.isClosed?"ClosedSeat":"OpenSeat")+" svg-container",innerHTML:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMyIgaGVpZ2h0PSIxNCIgdmlld0JveD0iMCAwIDEzIDE0Ij4KICA8cGF0aAogICAgZD0iTTExLjU4IDZjLTEuMTcgMC0yLjEzLjk1LTIuMTMgMi4xMnYuNGE4LjgyIDguODIgMCAwMC0yLjkyLS40Yy0xLjU0IDAtMi40NS4yMi0yLjkyLjR2LS40QTIuMTM2IDIuMTM2IDAgMDAxLjQ4IDZhMS4zMyAxLjMzIDAgMDAtLjUgMi41NWMuMTQuMDcuMjQuMjEuMjQuMzdsLjI2IDEuMDZjMCAuOTYuNzMgMS43NSAxLjY1IDEuODVhLjY1LjY1IDAgMDAuMjggMS4yMy42NS42NSAwIDAwLjMtMS4yMmg1LjY0YS42NS42NSAwIDAwLjMgMS4yMi42NS42NSAwIDAwLjI4LTEuMjNjLjkzLS4xIDEuNjUtLjkgMS42NS0xLjg1bC4yNy0xLjA2YzAtLjE2LjEtLjMuMjQtLjM3QTEuMzMgMS4zMyAwIDAwMTEuNTggNnoiLz4KICA8cGF0aAogICAgZD0iTTQuMzQgNy41Yy41NS0uMSAxLjI3LS4xNyAyLjItLjE3LjkxIDAgMS42My4wNyAyLjE4LjE3LjIxLS45Ni45LTEuNzQgMS44LTIuMVY0YTMuOTkgMy45OSAwIDAwLTcuOTcgMHYxLjRjLjkuMzYgMS41OCAxLjE0IDEuNzkgMi4xeiIvPgo8L3N2Zz4K"}))))))}};o.style=":host{display:block}.OpenSeat,.ClosedSeat{display:inline-block;width:16px;height:16px;margin-right:4px}.OpenSeat svg,.ClosedSeat svg{width:100%;height:100%}.OpenSeat{animation:flip-closed-seat 2s both;-webkit-animation:flip-closed-seat 2s both;-webkit-backface-visibility:visible;backface-visibility:visible}.ClosedSeat{animation:flip-open 2s both;-webkit-animation:flip-open 2s both;-webkit-backface-visibility:visible;backface-visibility:visible}.OpenSeat svg{fill:transparent;stroke:var(--emw--color-white, #FFFFFF)}.ClosedSeat svg{fill:var(--emw--color-white, #FFFFFF)}.FullTable{display:flex;position:relative;z-index:10;height:20px;padding:1px 4px 1px 0;align-items:center;border-radius:3px;font-size:12px;white-space:normal;text-transform:uppercase;-webkit-animation-name:silde-in-from-left;animation-name:silde-in-from-left;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.FullTable svg{width:100%;height:100%;fill:var(--emw--color-white, #FFFFFF)}.FullTable.ClosedSeat{margin-right:-3px}";export{o as casino_extrainfo_blackjack}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
var t=Object.defineProperty,e=new WeakMap,n=t=>e.get(t),o=(t,n)=>e.set(n.t=t,n),l=(t,e)=>e in t,s=(t,e)=>(0,console.error)(t,e),i=new Map,r=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",u="http://www.w3.org/1999/xlink",f="undefined"!=typeof window?window:{},a=f.document||{head:{}},d={o:0,l:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,o)=>t.addEventListener(e,n,o),rel:(t,e,n,o)=>t.removeEventListener(e,n,o),ce:(t,e)=>new CustomEvent(t,e)},h=t=>Promise.resolve(t),p=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),m=!1,v=[],y=[],w=(t,e)=>n=>{t.push(n),m||(m=!0,e&&4&d.o?g(b):d.raf(b))},$=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){s(t)}t.length=0},b=()=>{$(v),$(y),(m=v.length>0)&&d.raf(b)},g=t=>h().then(t),k=w(y,!0),S={},j=t=>"object"==(t=typeof t)||"function"===t;function O(t){var e,n,o;return null!=(o=null==(n=null==(e=t.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((e,n)=>{for(var o in n)t(e,o,{get:n[o],enumerable:!0})})({},{err:()=>x,map:()=>C,ok:()=>E,unwrap:()=>T,unwrapErr:()=>A});var E=t=>({isOk:!0,isErr:!1,value:t}),x=t=>({isOk:!1,isErr:!0,value:t});function C(t,e){if(t.isOk){const n=e(t.value);return n instanceof Promise?n.then((t=>E(t))):E(n)}if(t.isErr)return x(t.value);throw"should never get here"}var M,R,P,T=t=>{if(t.isOk)return t.value;throw t.value},A=t=>{if(t.isErr)return t.value;throw t.value},L=(t,e,...n)=>{let o=null,l=null,s=null,i=!1,r=!1;const c=[],u=e=>{for(let n=0;n<e.length;n++)o=e[n],Array.isArray(o)?u(o):null!=o&&"boolean"!=typeof o&&((i="function"!=typeof t&&!j(o))&&(o+=""),i&&r?c[c.length-1].i+=o:c.push(i?N(null,o):o),r=i)};if(u(n),e){e.key&&(l=e.key),e.name&&(s=e.name);{const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}}if("function"==typeof t)return t(null===e?{}:e,c,D);const f=N(t,null);return f.u=e,c.length>0&&(f.h=c),f.p=l,f.m=s,f},N=(t,e)=>({o:0,v:t,i:e,$:null,h:null,u:null,p:null,m:null}),W={},D={forEach:(t,e)=>t.map(F).forEach(e),map:(t,e)=>t.map(F).map(e).map(H)},F=t=>({vattrs:t.u,vchildren:t.h,vkey:t.p,vname:t.m,vtag:t.v,vtext:t.i}),H=t=>{if("function"==typeof t.vtag){const e={...t.vattrs};return t.vkey&&(e.key=t.vkey),t.vname&&(e.name=t.vname),L(t.vtag,e,...t.vchildren||[])}const e=N(t.vtag,t.vtext);return e.u=t.vattrs,e.h=t.vchildren,e.p=t.vkey,e.m=t.vname,e},U=(t,e,o)=>{const l=(t=>n(t).$hostElement$)(t);return{emit:t=>q(l,e,{bubbles:!!(4&o),composed:!!(2&o),cancelable:!!(1&o),detail:t})}},q=(t,e,n)=>{const o=d.ce(e,n);return t.dispatchEvent(o),o},G=new WeakMap,V=t=>"sc-"+t.k,_=(t,e,n,o,s,i)=>{if(n!==o){let r=l(t,e),c=e.toLowerCase();if("class"===e){const e=t.classList,l=B(n),s=B(o);e.remove(...l.filter((t=>t&&!s.includes(t)))),e.add(...s.filter((t=>t&&!l.includes(t))))}else if("style"===e){for(const e in n)o&&null!=o[e]||(e.includes("-")?t.style.removeProperty(e):t.style[e]="");for(const e in o)n&&o[e]===n[e]||(e.includes("-")?t.style.setProperty(e,o[e]):t.style[e]=o[e])}else if("key"===e);else if("ref"===e)o&&o(t);else if(r||"o"!==e[0]||"n"!==e[1]){const l=j(o);if((r||l&&null!==o)&&!s)try{if(t.tagName.includes("-"))t[e]=o;else{const l=null==o?"":o;"list"===e?r=!1:null!=n&&t[e]==l||(t[e]=l)}}catch(t){}let f=!1;c!==(c=c.replace(/^xlink\:?/,""))&&(e=c,f=!0),null==o||!1===o?!1===o&&""!==t.getAttribute(e)||(f?t.removeAttributeNS(u,e):t.removeAttribute(e)):(!r||4&i||s)&&!l&&(o=!0===o?"":o,f?t.setAttributeNS(u,e,o):t.setAttribute(e,o))}else if(e="-"===e[2]?e.slice(3):l(f,c)?c.slice(2):c[2]+e.slice(3),n||o){const l=e.endsWith(I);e=e.replace(J,""),n&&d.rel(t,e,n,l),o&&d.ael(t,e,o,l)}}},z=/\s/,B=t=>t?t.split(z):[],I="Capture",J=RegExp(I+"$"),K=(t,e,n)=>{const o=11===e.$.nodeType&&e.$.host?e.$.host:e.$,l=t&&t.u||S,s=e.u||S;for(const t of Q(Object.keys(l)))t in s||_(o,t,l[t],void 0,n,e.o);for(const t of Q(Object.keys(s)))_(o,t,l[t],s[t],n,e.o)};function Q(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var X=!1,Y=!1,Z=!1,tt=!1,et=(t,e,n,o)=>{var l;const s=e.h[n];let i,r,c,u=0;if(X||(Z=!0,"slot"===s.v&&(M&&o.classList.add(M+"-s"),s.o|=s.h?2:1)),null!==s.i)i=s.$=a.createTextNode(s.i);else if(1&s.o)i=s.$=a.createTextNode("");else{if(tt||(tt="svg"===s.v),i=s.$=a.createElementNS(tt?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!X&&2&s.o?"slot-fb":s.v),tt&&"foreignObject"===s.v&&(tt=!1),K(null,s,tt),null!=M&&i["s-si"]!==M&&i.classList.add(i["s-si"]=M),s.h)for(u=0;u<s.h.length;++u)r=et(t,s,u,i),r&&i.appendChild(r);"svg"===s.v?tt=!1:"foreignObject"===i.tagName&&(tt=!0)}return i["s-hn"]=P,3&s.o&&(i["s-sr"]=!0,i["s-cr"]=R,i["s-sn"]=s.m||"",i["s-rf"]=null==(l=s.u)?void 0:l.ref,c=t&&t.h&&t.h[n],c&&c.v===s.v&&t.$&&nt(t.$,!1)),i},nt=(t,e)=>{d.o|=1;const n=Array.from(t.childNodes);for(let t=n.length-1;t>=0;t--){const o=n[t];o["s-hn"]!==P&&o["s-ol"]&&(pt(rt(o),o,it(o)),o["s-ol"].remove(),o["s-ol"]=void 0,o["s-sh"]=void 0,Z=!0),e&&nt(o,e)}d.o&=-2},ot=(t,e,n,o,l,s)=>{let i,r=t["s-cr"]&&t["s-cr"].parentNode||t;for(r.shadowRoot&&r.tagName===P&&(r=r.shadowRoot);l<=s;++l)o[l]&&(i=et(null,n,l,t),i&&(o[l].$=i,pt(r,i,it(e))))},lt=(t,e,n)=>{for(let o=e;o<=n;++o){const e=t[o];if(e){const t=e.$;ht(e),t&&(Y=!0,t["s-ol"]?t["s-ol"].remove():nt(t,!0),t.remove())}}},st=(t,e,n=!1)=>t.v===e.v&&("slot"===t.v?t.m===e.m:!!n||t.p===e.p),it=t=>t&&t["s-ol"]||t,rt=t=>(t["s-ol"]?t["s-ol"]:t).parentNode,ct=(t,e,n=!1)=>{const o=e.$=t.$,l=t.h,s=e.h,i=e.v,r=e.i;let c;null===r?(tt="svg"===i||"foreignObject"!==i&&tt,("slot"!==i||X)&&K(t,e,tt),null!==l&&null!==s?((t,e,n,o,l=!1)=>{let s,i,r=0,c=0,u=0,f=0,a=e.length-1,d=e[0],h=e[a],p=o.length-1,m=o[0],v=o[p];for(;r<=a&&c<=p;)if(null==d)d=e[++r];else if(null==h)h=e[--a];else if(null==m)m=o[++c];else if(null==v)v=o[--p];else if(st(d,m,l))ct(d,m,l),d=e[++r],m=o[++c];else if(st(h,v,l))ct(h,v,l),h=e[--a],v=o[--p];else if(st(d,v,l))"slot"!==d.v&&"slot"!==v.v||nt(d.$.parentNode,!1),ct(d,v,l),pt(t,d.$,h.$.nextSibling),d=e[++r],v=o[--p];else if(st(h,m,l))"slot"!==d.v&&"slot"!==v.v||nt(h.$.parentNode,!1),ct(h,m,l),pt(t,h.$,d.$),h=e[--a],m=o[++c];else{for(u=-1,f=r;f<=a;++f)if(e[f]&&null!==e[f].p&&e[f].p===m.p){u=f;break}u>=0?(i=e[u],i.v!==m.v?s=et(e&&e[c],n,u,t):(ct(i,m,l),e[u]=void 0,s=i.$),m=o[++c]):(s=et(e&&e[c],n,c,t),m=o[++c]),s&&pt(rt(d.$),s,it(d.$))}r>a?ot(t,null==o[p+1]?null:o[p+1].$,n,o,c,p):c>p&<(e,r,a)})(o,l,e,s,n):null!==s?(null!==t.i&&(o.textContent=""),ot(o,null,e,s,0,s.length-1)):null!==l&<(l,0,l.length-1),tt&&"svg"===i&&(tt=!1)):(c=o["s-cr"])?c.parentNode.textContent=r:t.i!==r&&(o.data=r)},ut=t=>{const e=t.childNodes;for(const t of e)if(1===t.nodeType){if(t["s-sr"]){const n=t["s-sn"];t.hidden=!1;for(const o of e)if(o!==t)if(o["s-hn"]!==t["s-hn"]||""!==n){if(1===o.nodeType&&(n===o.getAttribute("slot")||n===o["s-sn"])||3===o.nodeType&&n===o["s-sn"]){t.hidden=!0;break}}else if(1===o.nodeType||3===o.nodeType&&""!==o.textContent.trim()){t.hidden=!0;break}}ut(t)}},ft=[],at=t=>{let e,n,o;for(const l of t.childNodes){if(l["s-sr"]&&(e=l["s-cr"])&&e.parentNode){n=e.parentNode.childNodes;const t=l["s-sn"];for(o=n.length-1;o>=0;o--)if(e=n[o],!e["s-cn"]&&!e["s-nr"]&&e["s-hn"]!==l["s-hn"])if(dt(e,t)){let n=ft.find((t=>t.S===e));Y=!0,e["s-sn"]=e["s-sn"]||t,n?(n.S["s-sh"]=l["s-hn"],n.j=l):(e["s-sh"]=l["s-hn"],ft.push({j:l,S:e})),e["s-sr"]&&ft.map((t=>{dt(t.S,e["s-sn"])&&(n=ft.find((t=>t.S===e)),n&&!t.j&&(t.j=n.j))}))}else ft.some((t=>t.S===e))||ft.push({S:e})}1===l.nodeType&&at(l)}},dt=(t,e)=>1===t.nodeType?null===t.getAttribute("slot")&&""===e||t.getAttribute("slot")===e:t["s-sn"]===e||""===e,ht=t=>{t.u&&t.u.ref&&t.u.ref(null),t.h&&t.h.map(ht)},pt=(t,e,n)=>null==t?void 0:t.insertBefore(e,n),mt=(t,e)=>{e&&!t.O&&e["s-p"]&&e["s-p"].push(new Promise((e=>t.O=e)))},vt=(t,e)=>{if(t.o|=16,!(4&t.o))return mt(t,t.C),k((()=>yt(t,e)));t.o|=512},yt=(t,e)=>{const n=t.t;if(!n)throw Error(`Can't render component <${t.$hostElement$.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let o;return e&&(t.o|=256,t.M&&(t.M.map((([t,e])=>jt(n,t,e))),t.M=void 0),o=jt(n,"componentWillLoad")),o=wt(o,(()=>jt(n,"componentWillRender"))),wt(o,(()=>bt(t,n,e)))},wt=(t,e)=>$t(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),$t=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,bt=async(t,e,n)=>{var o;const l=t.$hostElement$,s=l["s-rc"];n&&(t=>{const e=t.R,n=t.$hostElement$,o=e.o,l=((t,e)=>{var n;const o=V(e),l=r.get(o);if(t=11===t.nodeType?t:a,l)if("string"==typeof l){let s,i=G.get(t=t.head||t);if(i||G.set(t,i=new Set),!i.has(o)){{s=a.createElement("style"),s.innerHTML=l;const e=null!=(n=d.P)?n:O(a);null!=e&&s.setAttribute("nonce",e),t.insertBefore(s,t.querySelector("link"))}4&e.o&&(s.innerHTML+=c),i&&i.add(o)}}else t.adoptedStyleSheets.includes(l)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,l]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&o&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(t);gt(t,e,l,n),s&&(s.map((t=>t())),l["s-rc"]=void 0);{const e=null!=(o=l["s-p"])?o:[],n=()=>kt(t);0===e.length?n():(Promise.all(e).then(n),t.o|=4,e.length=0)}},gt=(t,e,n,o)=>{try{e=e.render(),t.o&=-17,t.o|=2,((t,e,n=!1)=>{var o,l,s,i;const r=t.$hostElement$,c=t.R,u=t.T||N(null,null),f=(t=>t&&t.v===W)(e)?e:L(null,null,e);if(P=r.tagName,n&&f.u)for(const t of Object.keys(f.u))r.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(f.u[t]=r[t]);if(f.v=null,f.o|=4,t.T=f,f.$=u.$=r.shadowRoot||r,M=r["s-sc"],X=!!(1&c.o),R=r["s-cr"],Y=!1,ct(u,f,n),d.o|=1,Z){at(f.$);for(const t of ft){const e=t.S;if(!e["s-ol"]){const t=a.createTextNode("");t["s-nr"]=e,pt(e.parentNode,e["s-ol"]=t,e)}}for(const t of ft){const e=t.S,r=t.j;if(r){const t=r.parentNode;let n=r.nextSibling;{let s=null==(o=e["s-ol"])?void 0:o.previousSibling;for(;s;){let o=null!=(l=s["s-nr"])?l:null;if(o&&o["s-sn"]===e["s-sn"]&&t===o.parentNode){for(o=o.nextSibling;o===e||(null==o?void 0:o["s-sr"]);)o=null==o?void 0:o.nextSibling;if(!o||!o["s-nr"]){n=o;break}}s=s.previousSibling}}(!n&&t!==e.parentNode||e.nextSibling!==n)&&e!==n&&(!e["s-hn"]&&e["s-ol"]&&(e["s-hn"]=e["s-ol"].parentNode.nodeName),pt(t,e,n),1===e.nodeType&&(e.hidden=null!=(s=e["s-ih"])&&s)),e&&"function"==typeof r["s-rf"]&&r["s-rf"](e)}else 1===e.nodeType&&(n&&(e["s-ih"]=null!=(i=e.hidden)&&i),e.hidden=!0)}}Y&&ut(f.$),d.o&=-2,ft.length=0,R=void 0})(t,e,o)}catch(e){s(e,t.$hostElement$)}return null},kt=t=>{const e=t.$hostElement$,n=t.t,o=t.C;jt(n,"componentDidRender"),64&t.o||(t.o|=64,Ot(e),jt(n,"componentDidLoad"),t.A(e),o||St()),t.L(e),t.O&&(t.O(),t.O=void 0),512&t.o&&g((()=>vt(t,!1))),t.o&=-517},St=()=>{Ot(a.documentElement),g((()=>q(f,"appload",{detail:{namespace:"casino-game-thumb-view"}})))},jt=(t,e,n)=>{if(t&&t[e])try{return t[e](n)}catch(t){s(t)}},Ot=t=>t.classList.add("hydrated"),Et=(t,e,o)=>{var l,i;const r=t.prototype;if(e.N||e.W||t.watchers){t.watchers&&!e.W&&(e.W=t.watchers);const c=Object.entries(null!=(l=e.N)?l:{});if(c.map((([t,[l]])=>{31&l||2&o&&32&l?Object.defineProperty(r,t,{get(){return((t,e)=>n(this).D.get(e))(0,t)},set(o){((t,e,o,l)=>{const i=n(t);if(!i)throw Error(`Couldn't find host element for "${l.k}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const r=i.$hostElement$,c=i.D.get(e),u=i.o,f=i.t;if(o=((t,e)=>null==t||j(t)?t:4&e?"false"!==t&&(""===t||!!t):2&e?parseFloat(t):1&e?t+"":t)(o,l.N[e][0]),(!(8&u)||void 0===c)&&o!==c&&(!Number.isNaN(c)||!Number.isNaN(o))&&(i.D.set(e,o),f)){if(l.W&&128&u){const t=l.W[e];t&&t.map((t=>{try{f[t](o,c,e)}catch(t){s(t,r)}}))}2==(18&u)&&vt(i,!1)}})(this,t,o,e)},configurable:!0,enumerable:!0}):1&o&&64&l&&Object.defineProperty(r,t,{value(...e){var o;const l=n(this);return null==(o=null==l?void 0:l.F)?void 0:o.then((()=>{var n;return null==(n=l.t)?void 0:n[t](...e)}))}})})),1&o){const o=new Map;r.attributeChangedCallback=function(t,l,s){d.jmp((()=>{var i;const c=o.get(t);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(r.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const o=n(this),r=null==o?void 0:o.o;if(r&&!(8&r)&&128&r&&s!==l){const n=o.t,r=null==(i=e.W)?void 0:i[t];null==r||r.forEach((e=>{null!=n[e]&&n[e].call(n,s,l,t)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(i=e.W)?i:{}),...c.filter((([t,e])=>15&e[0])).map((([t,e])=>{const n=e[1]||t;return o.set(n,t),n}))]))}}return t},xt=t=>{jt(t,"disconnectedCallback")},Ct=(t,o={})=>{var l;const u=[],h=o.exclude||[],m=f.customElements,v=a.head,y=v.querySelector("meta[charset]"),w=a.createElement("style"),$=[];let b,g=!0;Object.assign(d,o),d.l=new URL(o.resourcesUrl||"./",a.baseURI).href;let k=!1;if(t.map((t=>{t[1].map((o=>{var l;const c={o:o[0],k:o[1],N:o[2],H:o[3]};4&c.o&&(k=!0),c.N=o[2],c.H=o[3],c.W=null!=(l=o[4])?l:{};const f=c.k,v=class extends HTMLElement{constructor(t){if(super(t),this.hasRegisteredEventListeners=!1,((t,n)=>{const o={o:0,$hostElement$:t,R:n,D:new Map};o.F=new Promise((t=>o.L=t)),o.U=new Promise((t=>o.A=t)),t["s-p"]=[],t["s-rc"]=[],e.set(t,o)})(t=this,c),1&c.o)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${c.k}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else t.attachShadow({mode:"open"})}connectedCallback(){const t=n(this);this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,Mt(this,t,c.H)),b&&(clearTimeout(b),b=null),g?$.push(this):d.jmp((()=>(t=>{if(!(1&d.o)){const e=n(t),o=e.R,l=()=>{};if(1&e.o)Mt(t,e,o.H),(null==e?void 0:e.t)||(null==e?void 0:e.U)&&e.U.then((()=>{}));else{e.o|=1,12&o.o&&(t=>{const e=t["s-cr"]=a.createComment("");e["s-cn"]=!0,pt(t,e,t.firstChild)})(t);{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){mt(e,e.C=n);break}}o.N&&Object.entries(o.N).map((([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n)=>{let o;if(!(32&e.o)){if(e.o|=32,n.q){const t=(t=>{const e=t.k.replace(/-/g,"_"),n=t.q;if(!n)return;const o=i.get(n);return o?o[e]:import(`./${n}.entry.js`).then((t=>(i.set(n,t),t[e])),s)
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(t&&"then"in t){const e=()=>{};o=await t,e()}else o=t;if(!o)throw Error(`Constructor for "${n.k}#${e.G}" was not found`);o.isProxied||(n.W=o.watchers,Et(o,n,2),o.isProxied=!0);const l=()=>{};e.o|=8;try{new o(e)}catch(t){s(t)}e.o&=-9,e.o|=128,l()}else o=t.constructor,customElements.whenDefined(t.localName).then((()=>e.o|=128));if(o&&o.style){let t;"string"==typeof o.style&&(t=o.style);const e=V(n);if(!r.has(e)){const o=()=>{};((t,e,n)=>{let o=r.get(t);p&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=e:o.replaceSync(e)):o=e,r.set(t,o)})(e,t,!!(1&n.o)),o()}}}const l=e.C,c=()=>vt(e,!0);l&&l["s-rc"]?l["s-rc"].push(c):c()})(t,e,o)}l()}})(this)))}disconnectedCallback(){d.jmp((()=>(async()=>{if(!(1&d.o)){const t=n(this);t.V&&(t.V.map((t=>t())),t.V=void 0),(null==t?void 0:t.t)?xt(t.t):(null==t?void 0:t.U)&&t.U.then((()=>xt(t.t)))}})()))}componentOnReady(){return n(this).U}};c.q=t[0],h.includes(f)||m.get(f)||(u.push(f),m.define(f,Et(v,c,1)))}))})),u.length>0&&(k&&(w.textContent+=c),w.textContent+=u.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",w.innerHTML.length)){w.setAttribute("data-styles","");const t=null!=(l=d.P)?l:O(a);null!=t&&w.setAttribute("nonce",t),v.insertBefore(w,y?y.nextSibling:v.firstChild)}g=!1,$.length?$.map((t=>t.connectedCallback())):d.jmp((()=>b=setTimeout(St,30)))},Mt=(t,e,n)=>{n&&n.map((([n,o,l])=>{const s=Pt(t,n),i=Rt(e,l),r=Tt(n);d.ael(s,o,i,r),(e.V=e.V||[]).push((()=>d.rel(s,o,i,r)))}))},Rt=(t,e)=>n=>{var o;try{256&t.o?null==(o=t.t)||o[e](n):(t.M=t.M||[]).push([e,n])}catch(t){s(t)}},Pt=(t,e)=>4&e?a:t,Tt=t=>({passive:!!(1&t),capture:!!(2&t)}),At=t=>d.P=t;export{W as H,Ct as b,U as c,L as h,h as p,o as r,At as s}
|
@@ -0,0 +1 @@
|
|
1
|
+
import{r as a,h as s,H as e}from"./p-b5a64db5.js";const o=class{constructor(s){a(this,s),this.language=void 0}async onGameLoaded(a){var s;null===(s=this.infoWrapperRef)||void 0===s||s.onGameLoaded(a)}render(){return s(e,{key:"65ecbdb989b2b98974bbe60db24f31032e2e10a7"},s("casino-game-thumbnail-extrainfo",{key:"3633837b728bc4f18745cd87180b73359a403816",ref:a=>this.infoWrapperRef=a,language:this.language}))}};o.style=":host{display:block}";export{o as casino_normal_game_thumbnail}
|
@@ -0,0 +1 @@
|
|
1
|
+
import{r as e,h as t,H as s}from"./p-b5a64db5.js";import{R as o,W as i}from"./p-2d02adb1.js";const a=class{constructor(t){e(this,t),this.language="en",this.gameInfo=void 0,this.gameDetails=void 0,this.showLiveClass=void 0}async onGameLoaded(e){var t;this.gameInfo=Object.assign({},e),this.gameDetails=this.gameInfo.details?Object.assign({},this.gameInfo.details):null,null===(t=this.infoWrapperRef)||void 0===t||t.onGameLoaded(e)}async onGameDetailUpdated(e){this.gameInfo.details=this.gameDetails=e,this.gameInfo=Object.assign({},this.gameInfo),this.gameDetails=Object.assign({},this.gameDetails)}getRouletteNumberColor(e){return o[e]}render(){var e,o,a,l;const r=!!this.gameDetails&&this.gameDetails.category.toLowerCase()===i.doubleballroulette;let c=(r?null===(e=this.gameDetails)||void 0===e?void 0:e.currentDoubleBallRouletteNumbers:null===(o=this.gameDetails)||void 0===o?void 0:o.currentRouletteNumbers)||[];return t(s,{key:"c7c66e8f51bc9a09b78856342203ebe24fd09231"},t("casino-game-thumbnail-extrainfo",{key:"380e499260501a6126ab6944eed0ea1e1ce3877d",ref:e=>this.infoWrapperRef=e,language:this.language},t("div",{key:"233bbf1c16b1d36ac463a4178ef1724124817890",slot:"category-details",class:"LiveIcons "+((null===(a=this.gameDetails)||void 0===a?void 0:a.isOpen)?"GameBackdrop":""),part:"LiveIcons "+((null===(l=this.gameDetails)||void 0===l?void 0:l.isOpen)?"GameBackdrop":"")},c.slice(0,5).map(((e,s)=>!0===r?t("div",{class:"Double",part:"Double"},t("span",{id:`s${s}0`,class:`LatestResult ${0==s?"First":""} ${this.showLiveClass?"FirstElementAnimated":""} ${this.getRouletteNumberColor(e[0])}`}," ",e[0]),t("span",{id:`s${s}1`,class:`LatestResult ${0==s?"First":""} ${this.showLiveClass?"FirstElementAnimated":""} ${this.getRouletteNumberColor(e[1])}`}," ",e[1])):t("span",{id:`s${s}`,class:`LatestResult ${0==s?"First":""} ${this.showLiveClass?"FirstElementAnimated":""} ${this.getRouletteNumberColor(e)}`}," ",e))))))}};a.style=':host{display:block;font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}.Blue{color:#4d90a7}.Red{background-color:red}.Black{background-color:var(--emw--color-black, #000000)}.Green{background-color:#56A80A}.White{background-color:var(--emw--color-white, #FFFFFF)}.Yellow{background-color:#eeca3d}.Gold{background-color:#866d0c}.Orange{background-color:#574708}.Purple{background-color:#330033}';export{a as casino_extrainfo_roulette}
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
const index = require('./index-
|
5
|
+
const index = require('./index-81c5b70d.js');
|
6
6
|
const gameThumbnail = require('./game-thumbnail-5a34c727.js');
|
7
7
|
|
8
8
|
var CasinoGameCategory;
|
@@ -261,6 +261,10 @@ const CasinoExtrainfoBaccarat = class {
|
|
261
261
|
this.baccaratSvg = new BaccaratSvg();
|
262
262
|
this.isBoardInited = false;
|
263
263
|
this.filledCells = [];
|
264
|
+
this.language = undefined;
|
265
|
+
this.showRoundBoard = undefined;
|
266
|
+
this.gameInfo = undefined;
|
267
|
+
this.gameDetails = undefined;
|
264
268
|
}
|
265
269
|
gameDetailsHandler(newVal, oldVal) {
|
266
270
|
if (newVal.isOpen && (!oldVal || !oldVal.isOpen)) {
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
const index = require('./index-
|
5
|
+
const index = require('./index-81c5b70d.js');
|
6
6
|
const gameThumbnail = require('./game-thumbnail-5a34c727.js');
|
7
7
|
const locale_utils = require('./locale.utils-53bf703a.js');
|
8
8
|
|
@@ -14,6 +14,11 @@ const CasinoExtrainfoBlackjackStyle0 = casinoExtrainfoBlackjackCss;
|
|
14
14
|
const CasinoExtrainfoBlackjack = class {
|
15
15
|
constructor(hostRef) {
|
16
16
|
index.registerInstance(this, hostRef);
|
17
|
+
this.language = undefined;
|
18
|
+
this.gameInfo = undefined;
|
19
|
+
this.gameDetails = undefined;
|
20
|
+
this.seatsStatus = undefined;
|
21
|
+
this.isTableFull = undefined;
|
17
22
|
}
|
18
23
|
/**
|
19
24
|
* Generate Jackpot live seats info
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
const index = require('./index-
|
5
|
+
const index = require('./index-81c5b70d.js');
|
6
6
|
const gameThumbnail = require('./game-thumbnail-5a34c727.js');
|
7
7
|
|
8
8
|
const casinoExtrainfoRouletteCss = ":host{display:block;font-family:system-ui, -apple-system, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\"}.Blue{color:#4d90a7}.Red{background-color:red}.Black{background-color:var(--emw--color-black, #000000)}.Green{background-color:#56A80A}.White{background-color:var(--emw--color-white, #FFFFFF)}.Yellow{background-color:#eeca3d}.Gold{background-color:#866d0c}.Orange{background-color:#574708}.Purple{background-color:#330033}";
|
@@ -11,10 +11,10 @@ const CasinoExtrainfoRouletteStyle0 = casinoExtrainfoRouletteCss;
|
|
11
11
|
const CasinoExtrainfoRoulette = class {
|
12
12
|
constructor(hostRef) {
|
13
13
|
index.registerInstance(this, hostRef);
|
14
|
-
/**
|
15
|
-
* Language
|
16
|
-
*/
|
17
14
|
this.language = 'en';
|
15
|
+
this.gameInfo = undefined;
|
16
|
+
this.gameDetails = undefined;
|
17
|
+
this.showLiveClass = undefined;
|
18
18
|
}
|
19
19
|
async onGameLoaded(gameInfo) {
|
20
20
|
var _a;
|
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
const index = require('./index-
|
5
|
+
const index = require('./index-81c5b70d.js');
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
7
7
|
|
8
8
|
/*
|
9
|
-
Stencil Client Patch Browser v4.
|
9
|
+
Stencil Client Patch Browser v4.19.2 | MIT Licensed | https://stenciljs.com
|
10
10
|
*/
|
11
11
|
var patchBrowser = () => {
|
12
12
|
const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('casino-game-thumb-view.cjs.js', document.baseURI).href));
|