(()=>{var t,e,i,r={2679:(t,e,i)=>{var r={"./bg":[4444,444],"./bg.js":[4444,444],"./de":[1572,572],"./de.js":[1572,572],"./el":[4870,870],"./el.js":[4870,870],"./en":[6412,412],"./en.js":[6412,412],"./es":[8335,335],"./es.js":[8335,335],"./fi":[1198,198],"./fi.js":[1198,198],"./fr":[4115,115],"./fr.js":[4115,115],"./id":[9218,218],"./id.js":[9218,218],"./it":[1970,970],"./it.js":[1970,970],"./ja":[1570,570],"./ja.js":[1570,570],"./kde":[189,189],"./kde.js":[189,189],"./ko":[5121,121],"./ko.js":[5121,121],"./nl":[89,89],"./nl.js":[89,89],"./nn":[4215,215],"./nn.js":[4215,215],"./pl":[1407,407],"./pl.js":[1407,407],"./pt":[6983,983],"./pt.js":[6983,983],"./ro":[6900,900],"./ro.js":[6900,900],"./ru":[6214,214],"./ru.js":[6214,214],"./ses":[5306,306],"./ses.js":[5306,306],"./sv":[1650,650],"./sv.js":[1650,650],"./th":[5079,79],"./th.js":[5079,79],"./tr":[3201,201],"./tr.js":[3201,201],"./vi":[638,638],"./vi.js":[638,638],"./zh":[8185,185],"./zh.js":[8185,185]};function n(t){if(!i.o(r,t))return Promise.resolve().then((()=>{var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}));var e=r[t],n=e[0];return i.e(e[1]).then((()=>i.t(n,23)))}n.keys=()=>Object.keys(r),n.id=2679,t.exports=n},230:t=>{t.exports={scenes:{main:{c:"MainMenu",p:{backgroundColor:1713247},":":[{c:"Resizer",p:{name:"middle",relativeX:!0,xPos:.5,relativeY:!0,yPos:.5},":":[{c:"OrientationTrigger",p:{name:"bg",portraitX:-183,portraitScaleX:.53},":":[{c:"BG",p:{name:"bg",x:-1,y:1,"scale.x":4.76,"scale.y":5.47,image:"bg/bg.jpg"}}]},{c:"Trigger",p:{dataPath:"game.currentScene.isLeftPanelTurnedOn",invert:!0,pow:.05,damp:.7,alphaShift:0,xShift:76,isApplyInteractivity:!1},":":[{c:"Sprite",p:{x:-348,y:-308,rotation:-.756,alpha:.09,image:"bg/bg-flowers.png"}}]},{c:"Resizer",p:{name:"left-panel-btn",relativeX:!0,xPos:-.5},":":[{c:"Trigger",p:{x:9,dataPath:"game.currentScene.isLeftPanelVisible",invert:!0,pow:.04,damp:.7,xShift:-30},":":[{c:"Button",p:{name:"open-table-btn",x:21,y:3,image:"ui/arrow-tabl-left.png",hoverImage:"ui/arrow-tabl-left.png",pressImage:"ui/arrow-tabl-left.png",disabledImage:"ui/arrow-tabl-left.png",onClick:"game.currentScene.toggleTableView",sndClick:"click",sndOver:"over"}}]}]},{c:"Resizer",p:{name:"right-panel-btn",y:-1,relativeX:!0,xPos:.5},":":[{c:"Trigger",p:{x:-9,"scale.x":-1,"scale.y":-1,dataPath:"game.currentScene.isRightPanelVisible",invert:!0,pow:.04,damp:.7,xShift:30},":":[{c:"Button",p:{name:"open-table-btn",x:21,y:3,image:"ui/arrow-tabl-left.png",hoverImage:"ui/arrow-tabl-left.png",pressImage:"ui/arrow-tabl-left.png",disabledImage:"ui/arrow-tabl-left.png",onClick:"game.currentScene.toggleTableView",sndClick:"click",sndOver:"over"}}]}]},{c:"Trigger",p:{name:"left-panel-switcher",x:1,y:1,dataPath:"game.currentScene.isLeftPanelVisible",pow:.05,damp:.7,alphaShift:-.97,xShift:-900},":":[{c:"OrientationTrigger",p:{name:"left-part",portraitX:525,portraitY:17},":":[{c:"Text",p:{x:-774,y:-345,translatableText:"plinko.time","style.fontSize":22,verticalAlign:"center","style.fontWeight":"bold",maxWidth:108}},{c:"Text",p:{x:-638,y:-345,translatableText:"plinko.bet_history","style.fontSize":22,verticalAlign:"center","style.fontWeight":"bold",maxWidth:108}},{c:"Text",p:{x:-496,y:-345,translatableText:"plinko.payout","style.fontSize":22,verticalAlign:"center","style.fontWeight":"bold",maxWidth:108}},{c:"Text",p:{x:-335,y:-345,translatableText:"plinko.profit","style.fontSize":22,verticalAlign:"center","style.fontWeight":"bold",maxWidth:108}},{c:"Sprite",p:{x:-821,y:-323,"scale.x":5.4,image:"ui/line.png"}},{c:"ResultList",p:{name:"resultList",x:-892,y:-293}},{c:"OrientationTrigger",p:{landscapeY:16,landscapeAlpha:0,portraitX:-539,portraitY:-484},":":[{c:"Sprite",p:{y:57,"scale.x":.5,"scale.y":.5,"pivot.x":204,"pivot.y":118,image:"ui/logo.png"},":":[{c:"Trigger",p:{dataPath:"game.casinoOptions.ui.logo_visible",isApplyInteractivity:!1},":":[{c:"Sprite",p:{x:104,y:182,alpha:.4,"scale.x":.5,"scale.y":.5,image:"ui/brand-logo.png"}}]}]}]}]}]},{c:"Trigger",p:{name:"right-panel-switcher",dataPath:"game.currentScene.isRightPanelVisible",pow:.05,damp:.7,alphaShift:-.97,xShift:900},":":[{c:"Trigger",p:{name:"ios-safari-fix",dataPath:"game.isLandscapeSafariIos",invert:!0,pow:1,alphaShift:0,yShift:-70,isApplyInteractivity:!1},":":[{c:"OrientationTrigger",p:{name:"right-part",portraitX:-505},":":[{c:"Trigger",p:{x:682,y:350,dataPath:"game.data.autoPanelActiveted",pow:.06,damp:.7,alphaShift:0,yShift:45,isApplyInteractivity:!1},":":[{c:"NineSlicePlane",p:{name:"autoplayPanel",x:-65,y:-64,image:"ui/panel-ui.png",width:130,height:146,leftWidth:14,rightWidth:14,topHeight:14,bottomHeight:14},":":[{c:"Text",p:{x:68,y:-1,translatableText:"plinko.bet_mode","style.fontSize":16,verticalAlign:"bottom","style.fill":"#b79dee",maxWidth:128}},{c:"Sprite",p:{x:11,y:41,image:"ui/line.png",tint:9926111}},{c:"Button",p:{name:"manualGameBtn",x:32,y:24,interactive:!1,image:"ui/small-btn.png",hoverImage:"ui/small-btn.png",pressImage:"ui/small-btn.png",disabledImage:"ui/small-btn-d.png",onClick:"game.currentScene.deactivateAutoPanel",sndClick:"click",sndOver:"over"},":":[{c:"DSprite",p:{image:"ui/manual-icon.png"}},{c:"MovieClip",p:{timeline:{l:{"btn-out":3,"btn-over":42},p:.02,d:.85,f:[{n:"alpha",t:[{v:0,t:0,m:1},{v:0,t:13,m:1,a:"this.stop"},{v:1,t:47,m:1}]}]}},":":[{c:"Text",p:{x:14,translatableText:"plinko.manual","style.fontSize":15,"style.align":"left",verticalAlign:"center","style.strokeThickness":1,"style.stroke":"#fff","style.padding":1,maxWidth:74}}]},{c:"Shape",p:{x:-23,y:-20,visible:!1,width:113,height:39,isItHitArea:!0}},{c:"Text",p:{x:15,translatableText:"plinko.manual","style.fontSize":15,"style.align":"left",verticalAlign:"center","style.padding":1,maxWidth:74}}]},{c:"Button",p:{name:"autoGameBtn",x:32,y:65,image:"ui/small-btn.png",hoverImage:"ui/small-btn.png",pressImage:"ui/small-btn.png",disabledImage:"ui/small-btn-d.png",onClick:"game.currentScene.activateAutoPanel",sndClick:"click",sndOver:"over"},":":[{c:"DSprite",p:{image:"ui/auto-icon.png"}},{c:"MovieClip",p:{timeline:{l:{"btn-out":3,"btn-over":42},p:.02,d:.85,f:[{n:"alpha",t:[{v:0,t:0,m:1},{v:0,t:13,m:1,a:"this.stop"},{v:1,t:47,m:1}]}]}},":":[{c:"Text",p:{x:14,translatableText:"plinko.auto","style.fontSize":15,"style.align":"left",verticalAlign:"center","style.strokeThickness":1,"style.stroke":"#fff","style.padding":1,maxWidth:73}}]},{c:"Shape",p:{x:-23,y:-20,visible:!1,width:113,height:39,isItHitArea:!0}},{c:"Text",p:{x:15,translatableText:"plinko.auto","style.fontSize":15,"style.align":"left",verticalAlign:"center","style.padding":1,maxWidth:73}}]},{c:"Trigger",p:{name:"auto-game-counter",dataPath:"game.data.autoPanelActiveted",pow:.06,damp:.7},":":[{c:"Sprite",p:{x:47,y:98,image:"ui/counter-bg.png"},":":[{c:"NumberInput",p:{name:"autoplayNumberInput",x:19,y:12,textView:"counter-text",dataPath:"game.data.autoplayCount",valuesList:"10,20,30,50,70,100,150,200,250,300,400,500,600,700,800,900,1000"},":":[{c:"Shape",p:{x:-23,y:-25,alpha:.71,visible:!1,width:45,height:44,isItHitArea:!0}}]},{c:"Sprite",p:{name:"number-mask",x:1,y:-23,"scale.x":2.2,"scale.y":1.52,image:"WHITE",tint:6440096}},{c:"Sprite",p:{name:"number-mask",x:1,y:22,"scale.x":2.2,"scale.y":1.5,image:"WHITE",tint:6440096}},{c:"Trigger",p:{dataPath:"this.parent.#autoplayNumberInput.canIncrease",alphaShift:-.65},":":[{c:"Button",p:{x:59,y:12,image:"ui/counter-btn.png",hoverImage:"ui/counter-btn-h.png",onClick:"this.parent.parent.#autoplayNumberInput.increase",sndClick:"click",sndOver:"over",repeatDelay:20,repeatInterval:6},":":[{c:"Text",p:{y:-1,text:"+","style.fontSize":18,verticalAlign:"center","style.fontWeight":"bold"}}]}]},{c:"Trigger",p:{dataPath:"this.parent.#autoplayNumberInput.canDecrease",alphaShift:-.65},":":[{c:"Button",p:{x:-21,y:12,image:"ui/counter-btn.png",hoverImage:"ui/counter-btn-h.png",onClick:"this.parent.parent.#autoplayNumberInput.decrease",sndClick:"click",sndOver:"over",repeatDelay:20,repeatInterval:6},":":[{c:"Text",p:{y:-1,text:"—","style.fontSize":18,verticalAlign:"center","style.fontWeight":"bold"}}]}]}]},{c:"Text",p:{x:66,y:96,translatableText:"plinko.autoplay_count",verticalAlign:"bottom",maxWidth:115}}]}]}]},{c:"Container",p:{name:"gameUI"},":":[{c:"NineSlicePlane",p:{x:252,y:286,image:"ui/panel-ui.png",width:130,height:146,leftWidth:14,rightWidth:14,topHeight:14,bottomHeight:14},":":[{c:"Text",p:{x:65,y:-1,translatableText:"plinko.risk_level","style.fontSize":16,verticalAlign:"bottom","style.fill":"#b79dee",maxWidth:128}},{c:"Sprite",p:{x:11,y:41,image:"ui/line.png",tint:9926111}},{c:"Sprite",p:{x:11,y:85,image:"ui/line.png",tint:9926111}},{c:"Button",p:{name:"high-risk-btn",x:32,y:24,image:"ui/small-btn.png",hoverImage:"ui/small-btn.png",disabledImage:"ui/small-btn-d.png",onClick:"all.gameTable.setRiskMode`high",sndClick:"click",sndOver:"over"},":":[{c:"DSprite",p:{image:"ui/lvl-high-icon.png"}},{c:"MovieClip",p:{timeline:{l:{"btn-out":3,"btn-over":42},p:.02,d:.85,f:[{n:"alpha",t:[{v:0,t:0,m:1},{v:0,t:13,m:1,a:"this.stop"},{v:1,t:47,m:1}]}]}},":":[{c:"Text",p:{x:14,translatableText:"plinko.high","style.fontSize":15,"style.align":"left",verticalAlign:"center","style.strokeThickness":1,"style.stroke":"#fff","style.padding":1,maxWidth:73}}]},{c:"Shape",p:{x:-23,y:-20,visible:!1,width:113,height:39,isItHitArea:!0}},{c:"Text",p:{x:15,translatableText:"plinko.high","style.fontSize":15,"style.align":"left",verticalAlign:"center","style.padding":1,maxWidth:73}}]},{c:"Button",p:{name:"medium-risk-btn",x:32,y:65,image:"ui/small-btn.png",hoverImage:"ui/small-btn.png",disabledImage:"ui/small-btn-d.png",onClick:"all.gameTable.setRiskMode`medium",sndClick:"click",sndOver:"over"},":":[{c:"DSprite",p:{image:"ui/lvl-mid-icon.png"}},{c:"MovieClip",p:{timeline:{l:{"btn-out":3,"btn-over":42},p:.02,d:.85,f:[{n:"alpha",t:[{v:0,t:0,m:1},{v:0,t:13,m:1,a:"this.stop"},{v:1,t:47,m:1}]}]}},":":[{c:"Text",p:{x:14,translatableText:"plinko.normal","style.fontSize":15,"style.align":"left",verticalAlign:"center","style.strokeThickness":1,"style.stroke":"#fff","style.padding":1,maxWidth:73}}]},{c:"Shape",p:{x:-23,y:-20,visible:!1,width:113,height:39,isItHitArea:!0}},{c:"Text",p:{x:15,translatableText:"plinko.normal","style.fontSize":15,"style.align":"left",verticalAlign:"center","style.padding":1,maxWidth:73}}]},{c:"Button",p:{name:"low-risk-btn",x:32,y:107,image:"ui/small-btn.png",hoverImage:"ui/small-btn.png",disabledImage:"ui/small-btn-d.png",onClick:"all.gameTable.setRiskMode`low",sndClick:"click",sndOver:"over"},":":[{c:"DSprite",p:{image:"ui/lvl-low-icon.png"}},{c:"MovieClip",p:{timeline:{l:{"btn-out":3,"btn-over":42},p:.02,d:.85,f:[{n:"alpha",t:[{v:0,t:0,m:1},{v:0,t:13,m:1,a:"this.stop"},{v:1,t:47,m:1}]}]}},":":[{c:"Text",p:{x:14,translatableText:"plinko.low","style.fontSize":15,"style.align":"left",verticalAlign:"center","style.strokeThickness":1,"style.stroke":"#fff","style.padding":1,maxWidth:73}}]},{c:"Shape",p:{x:-23,y:-20,visible:!1,width:113,height:39,isItHitArea:!0}},{c:"Text",p:{x:15,translatableText:"plinko.low","style.fontSize":15,"style.align":"left",verticalAlign:"center","style.padding":1,maxWidth:73}}]}]},{c:"Sprite",p:{name:"bet-panel",x:250,y:408,image:"bg/bg-ui.png"},":":[{c:"Trigger",p:{dataPath:"game.currentScene.isBetCanBeDecreased",pow:1,alphaShift:-.65},":":[{c:"Button",p:{x:34,y:43,image:"ui/bet-btn.png",hoverImage:"ui/bet-btn-h.png",onClick:"game.currentScene.minimizeBet",sndClick:"click",sndOver:"over"},":":[{c:"Text",p:{translatableText:"plinko.min","style.fontSize":18,verticalAlign:"center",maxWidth:54}}]},{c:"Button",p:{x:100,y:43,image:"ui/bet-btn.png",hoverImage:"ui/bet-btn-h.png",onClick:"game.currentScene.decreaseBet",sndClick:"click",sndOver:"over"},":":[{c:"Text",p:{text:"—","style.fontSize":18,verticalAlign:"center","style.fontWeight":"bold"}}]}]},{c:"Trigger",p:{dataPath:"game.currentScene.isBetCanBeIncreased",pow:1,alphaShift:-.65},":":[{c:"Button",p:{x:399,y:43,image:"ui/bet-btn.png",hoverImage:"ui/bet-btn-h.png",onClick:"game.currentScene.increaseBet",sndClick:"click",sndOver:"over"},":":[{c:"Text",p:{text:"+","style.fontSize":18,verticalAlign:"center","style.fontWeight":"bold"}}]},{c:"Button",p:{x:465,y:43,image:"ui/bet-btn.png",hoverImage:"ui/bet-btn-h.png",onClick:"game.currentScene.maximizeBet",sndClick:"click",sndOver:"over"},":":[{c:"Text",p:{translatableText:"plinko.max","style.fontSize":18,verticalAlign:"center",maxWidth:54}}]}]},{c:"MoneyLabel",p:{name:"bet-label",x:249,y:49,translatableText:"plinko.bet","style.fontSize":27,verticalAlign:"center","style.fontWeight":"bold","style.letterSpacing":1,maxWidth:225,dataPath:"game.data.bet",refreshInterval:0,decimalsCount:2,dataPath2:"game.data.currency"}},{c:"MoneyLabel",p:{name:"balance-label",x:247,y:100,translatableText:"plinko.balance","style.fontSize":27,verticalAlign:"center","style.fill":"#7a79b2","style.fontWeight":"bold","style.letterSpacing":1,textTransform:1,maxWidth:225,dataPath:"game.data.balance",refreshInterval:0,decimalsCount:2,dataPath2:"game.data.currency",decimalsCountPath:"game.data.balanceDigitsCount"}}]},{c:"Trigger",p:{name:"ios-safari-fix",dataPath:"game.isLandscapeSafariIos",invert:!0,pow:1,alphaShift:0,xShift:50,yShift:130,isApplyInteractivity:!1},":":[{c:"Button",p:{name:"lines-button",x:737,y:-399,image:"ui/select-btn.png",hoverImage:"ui/select-btn-h.png",disabledImage:"ui/select-btn-d.png",onClick:"all.gameTable.setLinesCount`8",sndClick:"click",sndOver:"over"},":":[{c:"Text",p:{name:"label",y:-1,text:"8","style.fontSize":18,verticalAlign:"center","style.fill":"#c6d6e3"}}]},{c:"Button",p:{name:"lines-button",x:737,y:-367.99999999999994,image:"ui/select-btn.png",hoverImage:"ui/select-btn-h.png",disabledImage:"ui/select-btn-d.png",onClick:"all.gameTable.setLinesCount`9",sndClick:"click",sndOver:"over"},":":[{c:"Text",p:{name:"label",y:-1,text:"9","style.fontSize":18,verticalAlign:"center","style.fill":"#c6d6e3"}}]},{c:"Button",p:{name:"lines-button",x:737,y:-336.99999999999994,image:"ui/select-btn.png",hoverImage:"ui/select-btn-h.png",disabledImage:"ui/select-btn-d.png",onClick:"all.gameTable.setLinesCount`10",sndClick:"click",sndOver:"over"},":":[{c:"Text",p:{name:"label",y:-1,text:"10","style.fontSize":18,verticalAlign:"center","style.fill":"#c6d6e3"}}]},{c:"Button",p:{name:"lines-button",x:737,y:-305.99999999999994,image:"ui/select-btn.png",hoverImage:"ui/select-btn-h.png",disabledImage:"ui/select-btn-d.png",onClick:"all.gameTable.setLinesCount`11",sndClick:"click",sndOver:"over"},":":[{c:"Text",p:{name:"label",y:-1,text:"11","style.fontSize":18,verticalAlign:"center","style.fill":"#c6d6e3"}}]},{c:"Button",p:{name:"lines-button",x:737,y:-274.99999999999994,image:"ui/select-btn.png",hoverImage:"ui/select-btn-h.png",disabledImage:"ui/select-btn-d.png",onClick:"all.gameTable.setLinesCount`12",sndClick:"click",sndOver:"over"},":":[{c:"Text",p:{name:"label",y:-1,text:"12","style.fontSize":18,verticalAlign:"center","style.fill":"#c6d6e3"}}]},{c:"Button",p:{name:"lines-button",x:737,y:-243.99999999999994,image:"ui/select-btn.png",hoverImage:"ui/select-btn-h.png",disabledImage:"ui/select-btn-d.png",onClick:"all.gameTable.setLinesCount`13",sndClick:"click",sndOver:"over"},":":[{c:"Text",p:{name:"label",y:-1,text:"13","style.fontSize":18,verticalAlign:"center","style.fill":"#c6d6e3"}}]},{c:"Button",p:{name:"lines-button",x:737,y:-212.99999999999994,image:"ui/select-btn.png",hoverImage:"ui/select-btn-h.png",disabledImage:"ui/select-btn-d.png",onClick:"all.gameTable.setLinesCount`14",sndClick:"click",sndOver:"over"},":":[{c:"Text",p:{name:"label",y:-1,text:"14","style.fontSize":18,verticalAlign:"center","style.fill":"#c6d6e3"}}]},{c:"Button",p:{name:"lines-button",x:737,y:-181.99999999999994,image:"ui/select-btn.png",hoverImage:"ui/select-btn-h.png",disabledImage:"ui/select-btn-d.png",onClick:"all.gameTable.setLinesCount`15",sndClick:"click",sndOver:"over"},":":[{c:"Text",p:{name:"label",y:-1,text:"15","style.fontSize":18,verticalAlign:"center","style.fill":"#c6d6e3"}}]},{c:"Button",p:{name:"lines-button",x:737,y:-150.99999999999994,image:"ui/select-btn.png",hoverImage:"ui/select-btn-h.png",disabledImage:"ui/select-btn-d.png",onClick:"all.gameTable.setLinesCount`16",sndClick:"click",sndOver:"over"},":":[{c:"Text",p:{name:"label",y:-1,text:"16","style.fontSize":18,verticalAlign:"center","style.fill":"#c6d6e3"}}]},{c:"TextInput",p:{x:736,y:-416,translatableText:"plinko.lines","style.fontSize":18,verticalAlign:"bottom","style.fill":"#ace0f4",maxWidth:344}}]}]},{c:"Button",p:{name:"playButton",x:500,y:328,"pivot.x":-15,"pivot.y":-15,image:"ui/play-btn.png",hoverImage:"ui/play-btn-h.png",onClick:"game.currentScene.playButtonClick",sndClick:"play",sndOver:"over"},":":[{c:"Trigger",p:{x:-17,y:-16,dataPath:"game.currentScene.isAutoplayStarted",invert:!0},":":[{c:"Text",p:{x:1,translatableText:"plinko.play","style.fontSize":46,verticalAlign:"center","style.fill":"#f29d1d","style.fontWeight":"bold",textTransform:1,maxWidth:126}}]},{c:"Trigger",p:{x:-17,y:-16,dataPath:"game.currentScene.isAutoplayStarted"},":":[{c:"Text",p:{x:1,translatableText:"plinko.stop","style.fontSize":46,verticalAlign:"center","style.fill":"#f29d1d","style.fontWeight":"bold",textTransform:1,maxWidth:126}},{c:"Label",p:{y:39,text:"22","style.fontSize":25,verticalAlign:"center","style.fill":"#f29d1d","style.fontWeight":"bold",dataPath:"game.data.autoplayCurrentCount"}}]},{c:"Shape",p:{x:-15,y:-15,alpha:0,shape:2,shapeRadius:82,isItHitArea:!0}}]},{c:"MovieClip",p:{name:"win-panel",x:500,isPlaying:!1,timeline:{l:{"on-win":9,hide:262},p:.2,d:.85,f:[{n:"y",t:[{v:214,t:0},{v:214,t:14,s:5},{v:214,t:120}]},{n:"scale.y",t:[{v:0,t:0},{v:1,t:17,m:1},{v:1,t:254,m:1},{v:0,t:269,m:1}]},{n:"scale.x",t:[{v:0,t:0},{v:1,t:17,m:1},{v:1,t:254,m:1},{v:0,t:269,m:1}]}]}},":":[{c:"NineSlicePlane",p:{x:-250,y:-25,image:"ui/win-panel.png",width:500,height:50,leftWidth:25,rightWidth:25,topHeight:25,bottomHeight:25},":":[{c:"Fill",p:{x:10,y:10,"scale.x":3.74,"scale.y":.23,image:"ui/stars-pattern.png",tint:16764160,verticesX:4,xRepeat:3.74,yRepeat:.23,xShiftSpeed:.010480000000000001,yShiftSpeed:.0039900000000000005,xWaveAmp:1.012,xWaveStep:3.357,xWaveSpeed:.01312,yWaveAmp:-.034,yWaveStep:2.064,yWaveSpeed:.0753}},{c:"MoneyLabel",p:{name:"bet-label",x:251,y:24,translatableText:"plinko.win","style.fontSize":27,verticalAlign:"center","style.fill":"#4a2c01","style.fontWeight":"bold","style.letterSpacing":1,maxWidth:225,dataPath:"game.data.winToShow",refreshInterval:0,decimalsCount:2,dataPath2:"game.data.currency"}}]}]},{c:"GameTable",p:{name:"gameTable",x:500,y:-394},":":[{c:"DSprite",p:{name:"hole",image:"ui/hole.png"}},{c:"Container",p:{name:"ballsContainer"}},{c:"Container",p:{name:"pinsContainer"}},{c:"Container",p:{name:"particlesContainer"}},{c:"DSprite",p:{name:"tooltip",x:-185,y:478,"pivot.x":-1,"pivot.y":-2,image:"ui/tooltip.png"},":":[{c:"Sprite",p:{name:"pointer",x:-52,y:56,"pivot.x":10,image:"ui/tooltip-pointer.png"}},{c:"Text",p:{y:-40,translatableText:"plinko.tooltip_win","style.fontSize":22,verticalAlign:"center","style.fill":"#1c3966",maxWidth:98}},{c:"Text",p:{y:18,translatableText:"plinko.chance","style.fontSize":22,verticalAlign:"center","style.fill":"#1c3966",maxWidth:98}},{c:"MoneyLabel",p:{name:"profit",x:1,y:-14,text:"%d %s","style.fontSize":20,verticalAlign:"center","style.fill":"#1c3966","style.letterSpacing":1,maxWidth:141,dataPath:"this.parent.profit",refreshInterval:0,template:"%d %s",decimalsCount:2,dataPath2:"game.data.currency"}},{c:"Label",p:{name:"chance",x:1,y:44,text:"0.123123","style.fontSize":20,verticalAlign:"center","style.fill":"#1c3966",maxWidth:141,dataPath:"this.parent.chance",refreshInterval:0}}]}]},{c:"OrientationTrigger",p:{landscapeY:16,landscapeAlpha:0,portraitX:212,portraitY:-314,portraitR:-1.5707963267948966},":":[{c:"Sprite",p:{y:57,"scale.x":.5,"scale.y":.5,"pivot.x":204,"pivot.y":118,image:"ui/logo.png"},":":[{c:"Trigger",p:{dataPath:"game.casinoOptions.ui.logo_visible",isApplyInteractivity:!1},":":[{c:"Sprite",p:{x:104,y:182,alpha:.4,"scale.x":.5,"scale.y":.5,image:"ui/brand-logo.png"}}]}]}]}]}]}]}]},{c:"PrefabReference",p:{name:"ui",prefabName:"ui/ui-panel"}},{c:"BgMusic",p:{name:"bgMusic",loop:"mus/bg"}}]},paytable:{c:"PaytablePreloaderScene",p:{backgroundColor:0},":":[{c:"PrefabReference",p:{prefabName:"paytable-preloader"}},{c:"Container",p:{name:"slot-UI"}}]},root:{c:"BaseRootScene",p:{backgroundColor:0}}},prefabs:{ball:{c:"Ball",p:{name:"ball","pivot.x":-3,"pivot.y":-5,image:"ui/ball.png"},":":[{c:"MovieClip",p:{x:-3,y:-5,rotation:-.712,timeline:{l:{},p:.02,d:.85,f:[{n:"rotation",t:[{v:-.712,t:0},{v:.768,t:10,m:1},{v:-.712,t:19,m:1},{v:.768,t:26,m:1},{v:-.712,t:33,m:1},{v:.768,t:39,m:1,j:4}]}]}},":":[{c:"Spawner",p:{name:"particles-spawner",x:-1,y:-15,rotation:-1.5707963267948966,prefabToSpawn:"spark",enabled:!1,interval:2,speed:0,speedRandom:0,container:"game.currentScene.all.particlesContainer"}}]}]},"ball-target":{c:"Button",p:{name:"ball-target",hoverImage:"EMPTY",pressImage:"EMPTY",disabledImage:"EMPTY",sndClick:"click",sndOver:"over"},":":[{c:"MovieClip",p:{name:"body",image:"ui/target.png",tint:16776960,isPlaying:!1,timeline:{l:{"ball-touch":12},p:.2,d:.85,f:[{n:"y",t:[{v:0,t:0},{v:0,t:13,s:2.3000000000000003},{v:0,t:80}]},{n:"tintB",t:[{v:0,t:0,m:1},{v:0,t:12,m:1},{v:255,t:15,m:1},{v:0,t:34,m:1}]}]},y:0,tintB:0},":":[{c:"Sprite",p:{x:-31,y:-19,image:"ui/target-overlay.png"}},{c:"Text",p:{name:"label",y:1,alpha:.85,text:"---","style.fontSize":20,verticalAlign:"center","style.fill":"#000022","style.fontWeight":"bold",maxWidth:47}},{c:"SpawnerRing",p:{name:"spawner",rotation:1.5707963267948966,prefabToSpawn:"spark",speed:2,speedRandom:2,count:15,countRandom:5,container:"all.particlesContainer"}}]},{c:"Shape",p:{x:-28,y:-37,width:57,height:76,isItHitArea:!0}}]},container:{c:"Container",p:{name:"container"}},"counter-text":{c:"Text",p:{name:"counter-text",x:640,y:360,text:"100","style.fontSize":20,verticalAlign:"center",maxWidth:34}},"fader/curtains":{c:"Resizer",p:{name:"fader/curtains",relativeX:!0,xPos:.5,relativeY:!0,yPos:.5},":":[{c:"MovieClip",p:{timeline:{l:{},p:.02,d:.85,f:[{n:"visible",t:[{v:!0,t:0,m:2},{v:!0,t:121,m:2,a:"this.playRecursive"}]}]}},":":[{c:"Resizer",p:{resizeX:!0,resizeY:!0},":":[{c:"MovieClip",p:{"scale.y":8.4375,image:"WHITE_FOR_CANVAS.jpg",tint:0,isPlaying:!1,timeline:{l:{"hide fader":81},p:.02,d:.85,f:[{n:"x",t:[{v:-960,t:0},{v:-480,t:70,m:3,b:.4,g:2,a:"game.faderShoot"},{v:-480,t:74,m:1,a:"this.stop"},{v:-480,t:83,m:1},{v:-960,t:120,m:1,a:"game.faderEnd"}]},{n:"scale.x",t:[{v:0,t:0},{v:7.5,t:15,m:1},{v:7.5,t:70,m:1},{v:7.5,t:74,m:1},{v:7.5,t:83,m:1},{v:.1,t:120,m:1}]}]}}},{c:"MovieClip",p:{"scale.y":8.4375,image:"WHITE_FOR_CANVAS.jpg",tint:0,isPlaying:!1,timeline:{l:{"hide fader":81},p:.02,d:.85,f:[{n:"x",t:[{v:960,t:0},{v:480,t:70,m:4,b:.4,g:2},{v:480,t:74,m:1},{v:480,t:83,m:1},{v:966,t:120,m:1}]},{n:"scale.x",t:[{v:.625,t:0},{v:7.5,t:15,m:1},{v:7.5,t:70,m:1},{v:7.5,t:74,m:1,a:"this.stop"},{v:7.5,t:83,m:1},{v:.1,t:120,m:1}]}]}}}]},{c:"MovieClip",p:{isPlaying:!1,timeline:{l:{"hide fader":180},p:.02,d:.85,f:[{n:"alpha",t:[{v:0,t:0,m:1},{v:0,t:123,m:1},{v:1,t:130,m:1},{v:.8200000000000001,t:139,m:1},{v:1,t:150,m:1},{v:.4,t:161,m:1},{v:1,t:173,m:1,j:122}]}]}},":":[{c:"Text",p:{y:26,translatableText:"loading","style.fontSize":35,maxWidth:688}},{c:"MovieClip",p:{y:-22,image:"ui/spinner.png",rSpeed:.03,timeline:{l:{},p:.048,d:.81,f:[{n:"scale.y",t:[{v:.66,t:0},{v:.5499999999999999,t:13},{v:.66,t:60,j:0}]},{n:"scale.x",t:[{v:.66,t:0},{v:.55,t:13},{v:.66,t:60,j:0}]}]}}}]}]}]},"fader/default":{c:"Container",p:{name:"fader/default"},":":[{c:"Resizer",p:{name:"fader/default",resizeX:!0,resizeY:!0,relativeX:!0,xPos:.5,relativeY:!0,yPos:.5},":":[{c:"MovieClip",p:{name:"fader/default","scale.x":15,"scale.y":8.4375,image:"WHITE_FOR_CANVAS.jpg",tint:0,timeline:{l:{"hide fader":74},p:.02,d:.85,f:[{n:"alpha",t:[{v:0,t:0,m:1},{v:1,t:12,m:1,a:"game.faderShoot"},{v:1,t:23,m:1,a:"this.stop"},{v:1,t:74,m:1},{v:0,t:88,m:1,a:"game.faderEnd"}]}]}}}]},{c:"Resizer",p:{relativeX:!0,xPos:.5,relativeY:!0,yPos:.5},":":[{c:"MovieClip",p:{timeline:{l:{"hide fader":324},p:.02,d:.85,f:[{n:"alpha",t:[{v:0,t:0,m:1},{v:0,t:209,m:1},{v:1,t:217,m:1},{v:.8200000000000001,t:228,m:1},{v:1,t:241,m:1},{v:.4,t:255,m:1},{v:1,t:267,m:1,j:213},{v:0,t:335,m:1}]}]}},":":[{c:"Text",p:{y:26,translatableText:"loading","style.fontSize":35,maxWidth:795}},{c:"MovieClip",p:{y:-22,image:"ui/spinner.png",rSpeed:.03,timeline:{l:{},p:.048,d:.81,f:[{n:"scale.y",t:[{v:.66,t:0},{v:.5499999999999999,t:13},{v:.66,t:60,j:0}]},{n:"scale.x",t:[{v:.66,t:0},{v:.55,t:13},{v:.66,t:60,j:0}]}]}}}]}]}]},"fader/default-slow":{c:"Container",p:{name:"fader/default-slow"},":":[{c:"Resizer",p:{name:"fader/default",resizeX:!0,resizeY:!0,relativeX:!0,xPos:.5,relativeY:!0,yPos:.5},":":[{c:"MovieClip",p:{name:"fader/default","scale.x":15,"scale.y":8.4375,image:"WHITE_FOR_CANVAS.jpg",tint:0,timeline:{l:{"hide fader":122},p:.02,d:.85,f:[{n:"alpha",t:[{v:0,t:0,m:1},{v:1,t:60,m:1,a:"game.faderShoot"},{v:1,t:70,m:1,a:"this.stop"},{v:1,t:123,m:1},{v:0,t:187,m:1,a:"game.faderEnd"}]}]}}}]},{c:"Resizer",p:{relativeX:!0,xPos:.5,relativeY:!0,yPos:.5},":":[{c:"MovieClip",p:{timeline:{l:{"hide fader":324},p:.02,d:.85,f:[{n:"alpha",t:[{v:0,t:0,m:1},{v:0,t:209,m:1},{v:1,t:217,m:1},{v:.8200000000000001,t:228,m:1},{v:1,t:241,m:1},{v:.4,t:255,m:1},{v:1,t:267,m:1,j:212},{v:0,t:335,m:1}]}]}},":":[{c:"Text",p:{y:26,translatableText:"loading","style.fontSize":35,maxWidth:824}},{c:"MovieClip",p:{y:-22,image:"ui/spinner.png",rSpeed:.03,timeline:{l:{},p:.048,d:.81,f:[{n:"scale.y",t:[{v:.66,t:0},{v:.5499999999999999,t:13},{v:.66,t:60,j:0}]},{n:"scale.x",t:[{v:.66,t:0},{v:.55,t:13},{v:.66,t:60,j:0}]}]}}}]}]}]},flytext:{c:"FlyText",p:{name:"flytext",x:513,y:295,text:"qwdqwdqwd","style.fontSize":28,verticalAlign:"center","style.fill":"#ffff00","style.strokeThickness":4,"style.stroke":"#773300"}},logo:{c:"DSprite",p:{name:"logo",x:1,y:61,"scale.x":.666,"scale.y":.666,image:"ui/logo.png"},":":[{c:"MovieClip",p:{timeline:{l:{},p:.02,d:.85,f:[{n:"x",t:[{v:122,t:0,m:1},{v:-30,t:9,m:1},{v:122.9661363162408,t:42,m:1,j:0}]},{n:"y",t:[{v:48,t:0,m:1},{v:-80,t:16,m:1},{v:50.41431393721814,t:35,m:1,j:0}]}]}},":":[{c:"MovieClip",p:{image:"ui/particle.png",timeline:{l:{},p:.06,d:.8,f:[{n:"scale.x",t:[{v:0,t:0},{v:0,t:61,a:"this.parent.stop"},{v:1,t:82},{v:0,t:116,j:0,a:"this.parent.play"}]},{n:"scale.y",t:[{v:0,t:0},{v:0,t:61},{v:1,t:83},{v:0,t:116,j:0}]}]}}}]},{c:"MovieClip",p:{timeline:{l:{},p:.02,d:.85,f:[{n:"x",t:[{v:126,t:0,m:1},{v:-31,t:15,m:1},{v:123,t:30,m:1,j:0}]},{n:"y",t:[{v:77,t:0,m:1},{v:-75,t:10,m:1},{v:82,t:23,m:1,j:0}]}]}},":":[{c:"MovieClip",p:{image:"ui/particle.png",timeline:{l:{},p:.06,d:.8,f:[{n:"scale.x",t:[{v:0,t:0},{v:0,t:61,a:"this.parent.stop"},{v:1,t:82},{v:0,t:108,j:0,a:"this.parent.play"}]},{n:"scale.y",t:[{v:0,t:0},{v:0,t:61},{v:1,t:83},{v:0,t:108,j:0}]}]}}}]},{c:"MovieClip",p:{x:-33,y:-36,image:"ui/particle.png",timeline:{l:{},p:.06,d:.8,f:[{n:"scale.x",t:[{v:0,t:0},{v:0,t:29},{v:1.44,t:49},{v:0,t:136,j:0}]},{n:"scale.y",t:[{v:0,t:0},{v:0,t:29},{v:1.44,t:49},{v:0,t:136,j:0}]}]}}},{c:"MovieClip",p:{x:123,y:-66,image:"ui/particle.png",timeline:{l:{},p:.06,d:.8,f:[{n:"scale.x",t:[{v:0,t:0},{v:0,t:87},{v:1.58,t:112},{v:0,t:186,j:0}]},{n:"scale.y",t:[{v:0,t:0},{v:0,t:87},{v:1.67,t:112},{v:0,t:185,j:0}]}]}}},{c:"Trigger",p:{dataPath:"game.casinoOptions.ui.logo_visible"},":":[{c:"Sprite",p:{x:135,y:37,alpha:.4,"scale.x":.37,"scale.y":.37,image:"ui/brand-logo.png"}}]}]},"paytable-preloader":{c:"Container",p:{name:"paytable-preloader"},":":[{c:"Resizer",p:{name:"button",relativeX:!0,xPos:.5,relativeY:!0,yPos:1},":":[{c:"OrientationTrigger",p:{landscapeY:-75,portraitY:-170},":":[{c:"Button",p:{disabledAlpha:.5,onClick:"closeCurrentScene`"},":":[{c:"Shape",p:{x:-150,y:-50,shape:1,width:300,shapeFillColor:8421504}},{c:"Text",p:{y:-3,translatableText:"settings.labels.accept","style.fontSize":46,verticalAlign:"center","style.stroke":"#ad0014","style.fontWeight":"bold",textTransform:1,maxWidth:392}},{c:"Trigger",p:{interactive:!0,dataPath:"isMobile.any"},":":[{c:"Shape",p:{x:-250,y:-100,alpha:.8,visible:!1,width:500,height:200,isItHitArea:!0}}]}]}]}]},{c:"Container",p:{name:"rules"},":":[{c:"AlignedScrollArea",p:{name:"rules-scroll-area",x:110,y:200,scrollLayerPath:"this.#rules-html-overlay",bgNineSlicePlanePath:"this.#bg",scrollBarPath:"this.#scroll-bar",marginLeftRight:50,marginTop:200,marginBottom:150,marginLeftRightPortrait:30,marginTopPortrait:200,marginBottomPortrait:285,maxWidthMobile:2e3,containerMargin:0,scrollBarBottomMargin:200,maxWidthDesktop:1700},":":[{c:"NineSlicePlane",p:{name:"bg",alpha:.7,interactive:!0,image:"WHITE",tint:0,width:1700,height:730,leftWidth:30,rightWidth:30,topHeight:30,bottomHeight:30}},{c:"HTMLOverlay",p:{name:"rules-html-overlay",visibleArea:{x:0,y:0,w:1700,h:730},fullArea:{x:0,y:0,w:1700,h:1916},mouseHandler:"this.parent.#bg",desktopInertia:.99,mobileInertia:.99,className:"casino-modal"}},{c:"ProgressBar",p:{name:"scroll-bar",x:1700,interactive:!0,dataPath:"this.parent.#rules-html-overlay.relativeScrollY",height:530,capMargin:268,refreshInterval:0,max:1,step:1e-5},":":[{c:"Shape",p:{name:"bg",x:-30,alpha:0,"pivot.x":5,shape:1,width:10,height:530,shapeRadius:5,shapeFillAlpha:.5,shapeFillColor:4013902}},{c:"Trigger",p:{x:-30,dataPath:"this.parent.parent.#rules-html-overlay.isYScrollAvailable",onEnable:"setValueByPath`this.parent.#bg.visible,1",onDisable:"setValueByPath`this.parent.#bg.visible,0"},":":[{c:"Button",p:{name:"cap",tint:4276031,hoverImage:"EMPTY",pressImage:"EMPTY",disabledImage:"EMPTY"}}]}]}]},{c:"Resizer",p:{name:"loader-resizer",relativeX:!0,xPos:.5,relativeY:!0,yPos:.5},":":[{c:"Trigger",p:{name:"loader-trigger",dataPath:"all.rules-html-overlay.innerHTML",invert:!0},":":[{c:"DSprite",p:{name:"loader-sprite",x:-3,y:2,"scale.x":2,"scale.y":2,image:"ui/spinner.png",tint:0,rSpeed:.02}}]}]}]},{c:"Resizer",p:{name:"logo",y:50,relativeX:!0,xPos:.5},":":[{c:"OrientationTrigger",p:{name:"logo",landscapeX:1,landscapeY:42,landscapeScaleX:.97,landscapeScaleY:.97,portraitY:40},":":[{c:"DSprite",p:{image:"ui/logo.png"}}]}]}]},pin:{c:"DSprite",p:{name:"pin","pivot.x":-1,"pivot.y":-2,image:"ui/pin.png"}},"pin-light":{c:"MovieClip",p:{name:"pin-light",alpha:1,"scale.x":1,"scale.y":1,"pivot.x":1,"pivot.y":2,image:"ui/light.png",timeline:{l:{},p:.02,d:.85,f:[{n:"alpha",t:[{v:1,t:0,m:1},{v:1,t:3,m:1},{v:0,t:14,m:1,a:"this.remove"}]},{n:"scale.x",t:[{v:1,t:0,m:1},{v:1.5,t:14,m:1}]},{n:"scale.y",t:[{v:1,t:0,m:1},{v:1.5,t:14,m:1}]}]}}},"provability-count-text":{c:"Text",p:{name:"provability-count-text",x:640,y:360,text:"100","style.fontSize":30,verticalAlign:"center","style.fill":"#000000","style.fontWeight":"bold"}},"result-list-item":{c:"ListItem",p:{name:"result-list-item","pivot.x":222,timeline:{l:{remove:69,"no-animation":66},p:.05,d:.74,f:[{n:"alpha",t:[{v:0,t:0,m:1},{v:1,t:23,m:1},{v:1,t:67,m:1},{v:0,t:86,m:1,a:"this.remove"}]},{n:"pivot.x",t:[{v:222,t:0},{v:0,t:61},{v:0,t:67,a:"this.stop",m:1},{v:199,t:86,m:1}]}]},alpha:0},":":[{c:"Sprite",p:{name:"lose-bg",x:447,y:-16,image:"ui/profit-bg.png",tint:2527919},":":[{c:"MoneyLabel",p:{name:"win",x:105,y:15,text:"%d %s","style.fontSize":21,verticalAlign:"center","style.letterSpacing":1,maxWidth:170,dataPath:"this.parent.parent.data.win",refreshInterval:1e5,template:"%d %s",isNumeric:!0,plusMinus:!0,decimalsCount:2,dataPath2:"game.data.currency"}}]},{c:"Sprite",p:{name:"win-bg",x:447,y:-16,image:"ui/profit-bg.png",tint:16292380},":":[{c:"MoneyLabel",p:{name:"win",x:105,y:15,text:"%d %s","style.fontSize":21,verticalAlign:"center","style.fill":"#1c3662","style.letterSpacing":1,maxWidth:171,dataPath:"this.parent.parent.data.win",refreshInterval:1e5,template:"%d %s",isNumeric:!0,plusMinus:!0,decimalsCount:2,dataPath2:"game.data.currency"}}]},{c:"Label",p:{name:"payout",x:397,"scale.x":.9090909090909091,"scale.y":.9090909090909091,text:"1235.88×","style.fontSize":21,verticalAlign:"center",maxWidth:80,dataPath:"this.parent.data.payout",refreshInterval:1e5,template:"%d×",isNumeric:!0,decimalsCount:1}},{c:"Label",p:{name:"time",x:113,text:"12:28:03","style.fontSize":21,verticalAlign:"center",dataPath:"this.parent.data.time",refreshInterval:1e5}},{c:"MoneyLabel",p:{name:"bet",x:258,y:-1,"scale.x":.8294930875576036,"scale.y":.8294930875576036,text:"123123123123%d %s","style.fontSize":21,verticalAlign:"center","style.letterSpacing":1,maxWidth:180,dataPath:"this.parent.data.bet",refreshInterval:1e5,template:"%d %s",isNumeric:!0,decimalsCount:2,dataPath2:"game.data.currency"}}]},spark:{c:"ParticleSimple",p:{name:"spark",x:640,y:360,image:"ui/spark.png"}},"thing-games-utils/api-message":{c:"Resizer",p:{name:"thing-games-utils/api-message",relativeX:!0,xPos:.5,relativeY:!0,yPos:.5},":":[{c:"Resizer",p:{resizeX:!0,resizeY:!0},":":[{c:"MovieClip",p:{name:"backdrop","scale.x":192,"scale.y":108,image:"WHITE",tint:40,timeline:{l:{},p:.02,d:.85,f:[{n:"alpha",t:[{v:0,t:0,m:1},{v:.7,t:7,m:1}]}]}}}]},{c:"MovieClip",p:{name:"main",tint:0,timeline:{l:{},p:.06,d:.73,f:[{n:"scale.x",t:[{v:0,t:0},{v:1,t:12},{v:1,t:16,m:1}]},{n:"scale.y",t:[{v:0,t:0},{v:1,t:12},{v:1,t:16,m:1}]}]}},":":[{c:"Trigger",p:{dataPath:"isMobile.any",invert:!0,pow:1,alphaShift:0,scaleShift:.7,isApplyInteractivity:!1},":":[{c:"NineSlicePlane",p:{x:-300,y:-173,alpha:.9,interactive:!0,image:"ui/panel.png",width:600,height:271,leftWidth:25,rightWidth:25,topHeight:25,bottomHeight:25}},{c:"Text",p:{name:"title",y:-138,alpha:.8,text:"TITLE","style.fontSize":26,verticalAlign:"center","style.fontWeight":"lighter",maxWidth:540}},{c:"MultilineText",p:{name:"message",y:-62,alpha:.7,text:"qw qwe qwe q weq weqwe qweqwe eqwe qwe qwe qwe qwe qwe qw eqw e","style.fontSize":22,verticalAlign:"center","style.fontWeight":"lighter",maxWidthLandscape:540,maxWidthPortrait:540,maxHeightLandscape:130,maxHeightPortrait:130}},{c:"Button",p:{name:"btn",x:-170,y:40,"scale.x":.666666,"scale.y":.666666,image:"ui/btn-long.png",hoverImage:"ui/btn-long-h.png",pressImage:"ui/btn-long.png",disabledImage:"ui/btn-long.png",sndClick:"click",sndOver:"over"},":":[{c:"Text",p:{name:"label",translatableText:"buttons.ok","style.fontSize":45,verticalAlign:"center","style.fill":"#000000","style.fontWeight":"lighter",maxWidth:173}}]},{c:"Button",p:{name:"btn",y:40,"scale.x":.666666,"scale.y":.666666,image:"ui/btn-long.png",hoverImage:"ui/btn-long-h.png",pressImage:"ui/btn-long.png",disabledImage:"ui/btn-long.png",sndClick:"click",sndOver:"over"},":":[{c:"Text",p:{name:"label",translatableText:"buttons.ok","style.fontSize":45,verticalAlign:"center","style.fill":"#000000","style.fontWeight":"lighter",maxWidth:173}}]},{c:"Button",p:{name:"btn",x:170,y:40,"scale.x":.666666,"scale.y":.666666,image:"ui/btn-long.png",hoverImage:"ui/btn-long-h.png",pressImage:"ui/btn-long.png",disabledImage:"ui/btn-long.png",sndClick:"click",sndOver:"over"},":":[{c:"Text",p:{name:"label",translatableText:"buttons.ok","style.fontSize":45,verticalAlign:"center","style.fill":"#000000","style.fontWeight":"lighter",maxWidth:173}}]},{c:"Button",p:{name:"close-btn",x:270,y:-140,image:"ui/close-btn.png",hoverImage:"ui/close-btn-h.png",pressImage:"ui/close-btn-p.png",onClick:"all.popupsLayer.hideAll",hotkey:27,sndClick:"click",sndOver:"over"},":":[{c:"Shape",p:{x:-25,y:-25,alpha:.8,visible:!1,width:50,height:50,isItHitArea:!0}}]}]}]}]},"thing-games-utils/html-popup":{c:"Resizer",p:{name:"thing-games-utils/html-popup",relativeX:!0,xPos:.5,relativeY:!0,yPos:.5},":":[{c:"Resizer",p:{resizeX:!0,resizeY:!0},":":[{c:"MovieClip",p:{name:"backdrop","scale.x":192,"scale.y":108,timeline:{l:{},p:.02,d:.85,f:[{n:"alpha",t:[{v:0,t:0,m:1},{v:1,t:7,m:1}]}]}},":":[{c:"Button",p:{name:"easyCloseBtn",alpha:.7000000000000001,"scale.x":.625,"scale.y":.625,image:"WHITE",tint:40,hoverImage:"WHITE",pressImage:"WHITE",disabledImage:"WHITE",onClick:"game.hideModal",hotkey:27,sndClick:"click"}}]}]},{c:"MovieClip",p:{name:"main",tint:0,timeline:{l:{},p:.06,d:.73,f:[{n:"scale.x",t:[{v:0,t:0},{v:1,t:25}]},{n:"scale.y",t:[{v:0,t:0},{v:1,t:25}]}]}},":":[{c:"Resizer",p:{relativeX:!0,xPos:-.5,relativeY:!0,yPos:-.5},":":[{c:"FullscreenPopup",p:{name:"POPUP-SIZER",x:510,y:110,scrollLayerPath:"this.#html",bgNineSlicePlanePath:"this.#bg",scrollBarPath:"this.#scroll-bar",marginLeftRight:30,marginTopBottom:60,containerMargin:50,scrollBarBottomMargin:120,maxWidthDesktop:1e3},":":[{c:"NineSlicePlane",p:{name:"bg",x:-50,y:-50,alpha:.9,interactive:!0,image:"ui/panel.png",width:1e3,height:960,leftWidth:25,rightWidth:25,topHeight:25,bottomHeight:25}},{c:"HTMLOverlay",p:{name:"html",visibleArea:{x:0,y:0,w:900,h:860},fullArea:{x:0,y:0,w:1200,h:3283.8832668486248},className:"casino-modal"}},{c:"ProgressBar",p:{name:"scroll-bar",x:950,y:25,interactive:!0,dataPath:"this.parent.#html.relativeScrollY",height:840,capMargin:30,refreshInterval:0,max:1,step:1e-5},":":[{c:"NineSlicePlane",p:{name:"bg",x:-21,alpha:0,"scale.x":.625,"scale.y":.625,image:"WHITE",width:17.1,height:840}},{c:"Trigger",p:{dataPath:"this.parent.parent.#html.isYScrollAvailable"},":":[{c:"Button",p:{name:"cap",x:-11,y:20,image:"ui/scroller.png",hoverImage:"ui/scroller.png",pressImage:"ui/scroller.png",disabledImage:"ui/scroller.png"}}]},{c:"Trigger",p:{x:-26,y:-47,dataPath:"this.parent.parent.isMobileLandscape",invert:!0,pow:1,alphaShift:0,scaleShift:.5,isApplyInteractivity:!1},":":[{c:"Button",p:{name:"close-btn",x:-4,y:4,image:"ui/close-btn.png",onClick:"game.hideModal",hotkey:27,sndClick:"click",sndOver:"over"},":":[{c:"Shape",p:{x:-37,y:-35,alpha:.31,width:70,height:70,isItHitArea:!0}}]}]}]},{c:"Trigger",p:{name:"ios-safari-fix",dataPath:"game.isLandscapeSafariIos",pow:.12,damp:.75,alphaShift:0,isApplyInteractivity:!1,onEnable:"setValueByPath`this.parent.marginTopBottom,120",onDisable:"setValueByPath`this.parent.marginTopBottom,60"}}]}]}]}]},"thing-games-utils/offer-question":{c:"Resizer",p:{name:"thing-games-utils/offer-question",relativeX:!0,xPos:.5,relativeY:!0,yPos:.5},":":[{c:"Resizer",p:{resizeX:!0,resizeY:!0},":":[{c:"MovieClip",p:{name:"backdrop","scale.x":192,"scale.y":108,timeline:{l:{},p:.02,d:.85,f:[{n:"alpha",t:[{v:0,t:0,m:1},{v:1,t:7,m:1}]}]}},":":[{c:"Button",p:{name:"easyCloseBtn",alpha:.7000000000000001,"scale.x":.625,"scale.y":.625,image:"WHITE",tint:40,hoverImage:"WHITE",pressImage:"WHITE",disabledImage:"WHITE",hotkey:27,sndClick:"click",sndOver:"over"}},{c:"Trigger",p:{dataPath:"isMobile.any",pow:1,alphaShift:0,scaleShift:.7,isApplyInteractivity:!1},":":[{c:"OrientationTrigger",p:{landscapeX:-2.5,landscapeScaleY:1.5,landscapeR:-1.57,portraitY:-4,portraitScaleY:1.8},":":[{c:"DSprite",p:{name:"easyCloseDisable",y:4.5,alpha:1e-5,interactive:!0,"scale.x":.625,"scale.y":.065,image:"WHITE",tint:0}}]}]},{c:"Trigger",p:{dataPath:"isMobile.any",invert:!0,pow:1,alphaShift:0,scaleShift:.7,isApplyInteractivity:!1},":":[{c:"DSprite",p:{name:"easyCloseDisable",y:4.5,alpha:1e-5,interactive:!0,"scale.x":.625,"scale.y":.065,image:"WHITE",tint:0}}]}]}]},{c:"MovieClip",p:{name:"main",tint:0,timeline:{l:{},p:.06,d:.73,f:[{n:"scale.x",t:[{v:0,t:0},{v:1,t:12},{v:1,t:16,m:1}]},{n:"scale.y",t:[{v:0,t:0},{v:1,t:12},{v:1,t:16,m:1}]}]}},":":[{c:"Trigger",p:{dataPath:"isMobile.any",invert:!0,pow:1,alphaShift:0,scaleShift:.7,isApplyInteractivity:!1},":":[{c:"NineSlicePlane",p:{x:-257,y:-190,interactive:!0,image:"ui/panel.png",width:514,height:345,leftWidth:25,rightWidth:25,topHeight:25,bottomHeight:25}},{c:"Text",p:{name:"title",y:-110,translatableText:"slot.popups.enable_quick_spin_question","style.fontSize":78,verticalAlign:"center","style.strokeThickness":3,"style.stroke":"#ffffff","style.fontWeight":"lighter",maxWidth:300}},{c:"MultilineText",p:{name:"message",y:-20,translatableText:"slot.popups.enable_quick_spin_description","style.fontSize":30,verticalAlign:"center","style.fill":"#848484","style.fontWeight":"lighter",maxWidthLandscape:380,maxWidthPortrait:380,maxHeightLandscape:130,maxHeightPortrait:130}},{c:"Button",p:{name:"okBtn",x:115,y:80,"scale.x":.9,"scale.y":.9,image:"ui/btn-long.png",hoverImage:"ui/btn-long-h.png",pressImage:"ui/btn-long.png",disabledImage:"ui/btn-long.png",sndClick:"click",sndOver:"over"},":":[{c:"Text",p:{name:"label",translatableText:"slot.popups.buy_bonus.enable","style.fontSize":45,verticalAlign:"center","style.fontWeight":"lighter",maxWidth:173}}]},{c:"Button",p:{name:"noBtn",x:-115,y:80,"scale.x":.9,"scale.y":.9,image:"ui/btn-long.png",hoverImage:"ui/btn-long-h.png",pressImage:"ui/btn-long.png",disabledImage:"ui/btn-long.png",sndClick:"click",sndOver:"over"},":":[{c:"Text",p:{name:"label",translatableText:"slot.popups.buy_bonus.no","style.fontSize":45,verticalAlign:"center","style.fontWeight":"lighter",maxWidth:173}}]},{c:"Button",p:{name:"close-btn",x:225,y:-160,image:"ui/close-btn.png",hoverImage:"ui/close-btn-h.png",pressImage:"ui/close-btn-p.png",onClick:"all.popupsLayer.hideAll",hotkey:27,sndClick:"click",sndOver:"over"},":":[{c:"Shape",p:{x:-25,y:-25,alpha:.8,visible:!1,width:50,height:50,isItHitArea:!0}}]}]}]}]},"thing-games-utils/pause-popup":{c:"Resizer",p:{name:"thing-games-utils/pause-popup",relativeX:!0,xPos:.5,relativeY:!0,yPos:.5},":":[{c:"Resizer",p:{resizeX:!0,resizeY:!0},":":[{c:"MovieClip",p:{name:"backdrop","scale.x":120,"scale.y":67.5,image:"WHITE",tint:0,timeline:{l:{},p:.02,d:.85,f:[{n:"alpha",t:[{v:0,t:0,m:1},{v:.7,t:7,m:1}]}]}}}]},{c:"MovieClip",p:{name:"main",tint:0,timeline:{l:{},p:.06,d:.73,f:[{n:"scale.x",t:[{v:0,t:0},{v:1,t:12},{v:1,t:16,m:1}]},{n:"scale.y",t:[{v:0,t:0},{v:1,t:12},{v:1,t:16,m:1}]}]}},":":[{c:"Trigger",p:{dataPath:"isMobile.any",invert:!0,pow:1,alphaShift:0,scaleShift:.7,isApplyInteractivity:!1},":":[{c:"NineSlicePlane",p:{x:-300,y:-173,alpha:.9,interactive:!0,image:"ui/panel.png",width:600,height:271,leftWidth:25,rightWidth:25,topHeight:25,bottomHeight:25}},{c:"Text",p:{name:"title",y:-138,alpha:.8,translatableText:"buttons.pause","style.fontSize":26,verticalAlign:"center","style.fontWeight":"lighter",maxWidth:540}},{c:"Button",p:{name:"close-btn",y:40,"scale.x":.666666,"scale.y":.666666,image:"ui/btn-long.png",hoverImage:"ui/btn-long-h.png",pressImage:"ui/btn-long.png",disabledImage:"ui/btn-long.png",sndClick:"click",sndOver:"over"},":":[{c:"Text",p:{name:"label",translatableText:"buttons.resume","style.fontSize":45,verticalAlign:"center","style.fill":"#000000","style.fontWeight":"lighter",maxWidth:174}}]}]}]}]},"thing-games-utils/provability-panel":{c:"ProvabilityPanel",p:{name:"thing-games-utils/provability-panel",pow:.1,damp:.64,xShift:-100},":":[{c:"Trigger",p:{name:"shift-for-spin",dataPath:"this.parent.isHidedForSpin",invert:!0,alphaShift:0,xShift:-130,isApplyInteractivity:!1},":":[{c:"NineSlicePlane",p:{name:"provability-background",interactive:!0,"pivot.x":100,image:"ui/panel.png",width:540,height:1080}},{c:"Container",p:{name:"provability-container",x:220,y:540},":":[{c:"Trigger",p:{name:"orientation-trigger",state:!0,pow:1,alphaShift:0,yShift:160,isApplyInteractivity:!1},":":[{c:"Text",p:{name:"provability-title",y:-419,translatableText:"provability.title","style.fontSize":34,verticalAlign:"center","style.fontWeight":"lighter","style.padding":7,maxWidth:376}}]},{c:"Trigger",p:{name:"orientation-trigger",y:54,state:!0,pow:1,damp:.999,alphaShift:0,xShift:-200,yShift:142,isApplyInteractivity:!1},":":[{c:"Container",p:{name:"next-game-container",y:-309},":":[{c:"Text",p:{y:-110,tint:8684676,translatableText:"provability.next_game","style.fontSize":30,verticalAlign:"center","style.fontWeight":"lighter",textTransform:1,maxWidth:134}},{c:"Text",p:{name:"hash-result-secret-label",y:107,alpha:.5,text:"Hash (Result + Secret)","style.fontSize":17,verticalAlign:"center","style.fontWeight":"lighter",maxWidth:377}},{c:"Button",p:{name:"next-game-hash-btn",y:143,hoverImage:"EMPTY",pressImage:"EMPTY",disabledImage:"EMPTY",sndClick:"click",sndOver:"over"},":":[{c:"NineSlicePlane",p:{x:-189,y:-22,image:"ui/provability/input-gray.png",width:378,height:44,leftWidth:7,rightWidth:52,topHeight:7,bottomHeight:7},":":[{c:"Scissors",p:{rect:{x:0,y:0,w:325,h:41}},":":[{c:"Label",p:{name:"label",x:13,y:13,text:"01234567890123456789012345678901234567890123","style.fontSize":16,"style.align":"left","style.fill":"#000000","style.fontWeight":"lighter"}}]},{c:"Sprite",p:{x:248,y:3,"scale.x":5,"scale.y":.9,image:"ui/provability/input-fade.png"}}]}]},{c:"PrefabReference",p:{name:"provability-seed",prefabName:"ui/game-provability"}}]}]},{c:"Trigger",p:{y:54,dataPath:"this.parent.parent.parent.data.1",pow:.06,damp:.7},":":[{c:"Trigger",p:{name:"orientation-trigger",state:!0,pow:1,damp:.999,yShift:160,isApplyInteractivity:!1},":":[{c:"Sprite",p:{x:-189,y:-116,alpha:.3,"scale.x":23.625,"scale.y":.1875,image:"WHITE"}}]},{c:"Trigger",p:{name:"orientation-trigger",state:!0,pow:1,damp:.999,alphaShift:0,xShift:200,yShift:-198,isApplyInteractivity:!1},":":[{c:"Container",p:{name:"last-game-container",y:13},":":[{c:"Text",p:{y:-93,tint:8684676,translatableText:"provability.last_game","style.fontSize":29,verticalAlign:"center","style.fontWeight":"lighter",textTransform:1,maxWidth:134}},{c:"Text",p:{name:"hash-result-secret-label2",x:67,y:63,alpha:.5,text:"Hash (Result + Secret)","style.fontSize":17,verticalAlign:"center","style.fontWeight":"lighter",maxWidth:271}},{c:"Text",p:{x:-128,y:63,alpha:.5,translatableText:"provability.client_seed","style.fontSize":17,verticalAlign:"center","style.fontWeight":"lighter",maxWidth:175}},{c:"Text",p:{name:"result-secret-label",y:-56,alpha:.5,text:"Result + Secret","style.fontSize":17,verticalAlign:"center","style.fontWeight":"lighter",maxWidth:376}},{c:"Text",p:{y:142,alpha:.5,translatableText:"provability.final_result","style.fontSize":17,verticalAlign:"center","style.fontWeight":"lighter",maxWidth:376}},{c:"Button",p:{name:"last-game-hash-btn",x:26,y:100,hoverImage:"EMPTY",pressImage:"EMPTY",disabledImage:"EMPTY",sndClick:"click",sndOver:"over"},":":[{c:"NineSlicePlane",p:{x:-82,y:-23,image:"ui/provability/input-gray.png",width:245,height:44,leftWidth:7,rightWidth:52,topHeight:7,bottomHeight:7},":":[{c:"Scissors",p:{rect:{x:0,y:0,w:193,h:50}},":":[{c:"Label",p:{name:"label",x:13,y:13,text:"012345678901234567890123456","style.fontSize":16,"style.align":"left","style.fill":"#000000","style.fontWeight":"lighter"}}]},{c:"Sprite",p:{x:115,y:3,"scale.x":5,"scale.y":.9,image:"ui/provability/input-fade.png"}}]}]},{c:"Button",p:{name:"last-game-final-result-btn",y:179,hoverImage:"EMPTY",pressImage:"EMPTY",disabledImage:"EMPTY",sndClick:"click",sndOver:"over"},":":[{c:"NineSlicePlane",p:{x:-189,y:-23,image:"ui/provability/input-yellow.png",width:378,height:80,leftWidth:7,rightWidth:52,topHeight:40,bottomHeight:6},":":[{c:"Scissors",p:{rect:{x:0,y:0,w:329,h:69}},":":[{c:"MultilineText",p:{name:"label",x:13,y:11,text:'{dymbols":["j","a",2{"symbols":["j","a",2{"symbols":["j","a",2{"symbols":["j","a",2{"symbols":["j","a",2{"symbols":["j","a",2{"symbols":["j",',"style.fontSize":16,"style.align":"left","style.fill":"#000000","style.fontWeight":"lighter",maxWidthLandscape:307,maxWidthPortrait:307,breakWords:!0}}]},{c:"Sprite",p:{x:242,y:48,"scale.x":5,"scale.y":.54,image:"ui/provability/input-fade-yellow.png"}}]}]},{c:"Button",p:{name:"last-game-result-btn",x:-107,y:-19,hoverImage:"EMPTY",pressImage:"EMPTY",disabledImage:"EMPTY",sndClick:"click",sndOver:"over"},":":[{c:"NineSlicePlane",p:{x:-82,y:-23,image:"ui/provability/input-gray.png",width:378,height:80,leftWidth:7,rightWidth:52,topHeight:40,bottomHeight:6},":":[{c:"Scissors",p:{rect:{x:0,y:0,w:329,h:66}},":":[{c:"MultilineText",p:{name:"label",x:13,y:11,text:'{dymbols":["j","a",2{"symbols":["j","a",2{"symbols":["j","a",2{"symbols":["j","a",2{"symbols":["j","a",2{"symbols":["j","a",2{"symbols":["j",',"style.fontSize":16,"style.align":"left","style.fill":"#000000","style.fontWeight":"lighter",maxWidthLandscape:307,maxWidthPortrait:307,breakWords:!0}}]},{c:"Sprite",p:{x:242,y:48,"scale.x":5,"scale.y":.54,image:"ui/provability/input-fade.png"}}]}]},{c:"NineSlicePlane",p:{name:"last-game-client-seed",x:-189,y:77,image:"ui/provability/label-gray.png",width:120,height:44,leftWidth:7,rightWidth:7,topHeight:7,bottomHeight:7},":":[{c:"Label",p:{name:"label",x:13,y:13,text:"3454","style.fontSize":16,"style.align":"left","style.fill":"#000000","style.fontWeight":"lighter",maxWidth:100}}]}]}]},{c:"Trigger",p:{name:"orientation-trigger",state:!0,pow:1,damp:.999,alphaShift:0,yShift:-198,isApplyInteractivity:!1},":":[{c:"Trigger",p:{dataPath:"this.parent.parent.parent.parent.parent.isVerified",invert:!0,alphaShift:0,xShift:-105,isApplyInteractivity:!1},":":[{c:"Button",p:{name:"provability-verify",y:300,image:"ui/provability/verify-btn.png",hoverImage:"ui/provability/verify-btn-h.png",onClick:"this.parent.parent.parent.parent.parent.parent.onVerifyClick",sndClick:"click",sndOver:"over"},":":[{c:"Text",p:{verticalAlign:"center","style.fontWeight":"lighter"},":":[{c:"Text",p:{translatableText:"provability.verify","style.fontSize":23,verticalAlign:"center","style.fontWeight":"lighter",textTransform:1,maxWidth:149}}]}]}]},{c:"Trigger",p:{dataPath:"this.parent.parent.parent.parent.parent.isVerified"},":":[{c:"Trigger",p:{dataPath:"this.parent.parent.parent.parent.parent.parent.isVerificationSuccess"},":":[{c:"Text",p:{x:95,y:260,translatableText:"provability.messages.successful_verification","style.fontSize":17,"style.fill":"#0edc17","style.fontWeight":"lighter",textTransform:1,maxWidth:185}},{c:"MultilineText",p:{x:95,y:281,translatableText:"provability.messages.success_message","style.fontSize":15,"style.fontWeight":"lighter",maxWidthLandscape:186,maxWidthPortrait:186}}]},{c:"Trigger",p:{dataPath:"this.parent.parent.parent.parent.parent.parent.isVerificationSuccess",invert:!0},":":[{c:"Text",p:{x:95,y:260,translatableText:"provability.messages.failed_verification","style.fontSize":17,"style.fill":"#ff0303","style.fontWeight":"lighter",textTransform:1,maxWidth:185}},{c:"MultilineText",p:{x:95,y:281,translatableText:"provability.messages.error_message","style.fontSize":15,"style.fontWeight":"lighter",maxWidthLandscape:186,maxWidthPortrait:186}}]}]}]}]}]},{c:"Button",p:{name:"provability-close-btn-container",x:440,"pivot.x":32,"pivot.y":-32,image:"ui/close-btn.png",hoverImage:"ui/close-btn-h.png",pressImage:"ui/close-btn-p.png",disabledImage:"EMPTY",onClick:"this.parent.parent.hide",hotkey:27,sndClick:"click",sndOver:"over"}}]}]},"thing-games-utils/provability-seed":{c:"Container",p:{name:"thing-games-utils/provability-seed"},":":[{c:"Container",p:{name:"client-seed-controls","scale.x":.8,"scale.y":.8},":":[{c:"Container",p:{name:"1",x:-200,y:25},":":[{c:"Label",p:{y:-62,alpha:.5,translatableText:"provability.reel_count","style.fontSize":25,verticalAlign:"bottom",maxWidth:94,dataPath:"this.parent.name"}},{c:"NumberInput",p:{name:"clien-seed-input",max:9,textView:"provability-count-text",dataPath:"game.data.provability.clientSeed.0",wrapValue:!0},":":[{c:"Sprite",p:{"pivot.x":30,"pivot.y":22,image:"ui/provability/counter-bg.png"}}]},{c:"Button",p:{name:"provability-seed-decrease",y:40,rotation:-3.141592653589793,image:"ui/provability/counter-btn.png",hoverImage:"ui/provability/counter-btn-h.png",disabledImage:"ui/provability/counter-btn-d.png",onClick:"this.parent.#clien-seed-input.decrease",sndClick:"click",sndOver:"over",repeatDelay:21,repeatInterval:7}},{c:"Button",p:{name:"provability-seed-increase",y:-40,image:"ui/provability/counter-btn.png",hoverImage:"ui/provability/counter-btn-h.png",disabledImage:"ui/provability/counter-btn-d.png",onClick:"this.parent.#clien-seed-input.increase",sndClick:"click",sndOver:"over",repeatDelay:21,repeatInterval:7}}]},{c:"Container",p:{name:"2",x:-100,y:25},":":[{c:"Label",p:{y:-62,alpha:.5,translatableText:"provability.reel_count","style.fontSize":25,verticalAlign:"bottom",maxWidth:94,dataPath:"this.parent.name"}},{c:"NumberInput",p:{name:"clien-seed-input",max:9,textView:"provability-count-text",dataPath:"game.data.provability.clientSeed.1",wrapValue:!0},":":[{c:"Sprite",p:{"pivot.x":30,"pivot.y":22,image:"ui/provability/counter-bg.png"}}]},{c:"Button",p:{name:"provability-seed-decrease",y:40,rotation:-3.141592653589793,image:"ui/provability/counter-btn.png",hoverImage:"ui/provability/counter-btn-h.png",disabledImage:"ui/provability/counter-btn-d.png",onClick:"this.parent.#clien-seed-input.decrease",sndClick:"click",sndOver:"over",repeatDelay:21,repeatInterval:7}},{c:"Button",p:{name:"provability-seed-increase",y:-40,image:"ui/provability/counter-btn.png",hoverImage:"ui/provability/counter-btn-h.png",disabledImage:"ui/provability/counter-btn-d.png",onClick:"this.parent.#clien-seed-input.increase",sndClick:"click",sndOver:"over",repeatDelay:21,repeatInterval:7}}]},{c:"Container",p:{name:"3",y:25},":":[{c:"Label",p:{y:-62,alpha:.5,translatableText:"provability.reel_count","style.fontSize":25,verticalAlign:"bottom",maxWidth:94,dataPath:"this.parent.name"}},{c:"NumberInput",p:{name:"clien-seed-input",max:9,textView:"provability-count-text",dataPath:"game.data.provability.clientSeed.2",wrapValue:!0},":":[{c:"Sprite",p:{"pivot.x":30,"pivot.y":22,image:"ui/provability/counter-bg.png"}}]},{c:"Button",p:{name:"provability-seed-decrease",y:40,rotation:-3.141592653589793,image:"ui/provability/counter-btn.png",hoverImage:"ui/provability/counter-btn-h.png",disabledImage:"ui/provability/counter-btn-d.png",onClick:"this.parent.#clien-seed-input.decrease",sndClick:"click",sndOver:"over",repeatDelay:21,repeatInterval:7}},{c:"Button",p:{name:"provability-seed-increase",y:-40,image:"ui/provability/counter-btn.png",hoverImage:"ui/provability/counter-btn-h.png",disabledImage:"ui/provability/counter-btn-d.png",onClick:"this.parent.#clien-seed-input.increase",sndClick:"click",sndOver:"over",repeatDelay:21,repeatInterval:7}}]},{c:"Container",p:{name:"4",x:100,y:25},":":[{c:"Label",p:{y:-62,alpha:.5,translatableText:"provability.reel_count","style.fontSize":25,verticalAlign:"bottom",maxWidth:94,dataPath:"this.parent.name"}},{c:"NumberInput",p:{name:"clien-seed-input",max:9,textView:"provability-count-text",dataPath:"game.data.provability.clientSeed.3",wrapValue:!0},":":[{c:"Sprite",p:{"pivot.x":30,"pivot.y":22,image:"ui/provability/counter-bg.png"}}]},{c:"Button",p:{name:"provability-seed-decrease",y:40,rotation:-3.141592653589793,image:"ui/provability/counter-btn.png",hoverImage:"ui/provability/counter-btn-h.png",disabledImage:"ui/provability/counter-btn-d.png",onClick:"this.parent.#clien-seed-input.decrease",sndClick:"click",sndOver:"over",repeatDelay:21,repeatInterval:7}},{c:"Button",p:{name:"provability-seed-increase",y:-40,image:"ui/provability/counter-btn.png",hoverImage:"ui/provability/counter-btn-h.png",disabledImage:"ui/provability/counter-btn-d.png",onClick:"this.parent.#clien-seed-input.increase",sndClick:"click",sndOver:"over",repeatDelay:21,repeatInterval:7}}]},{c:"Container",p:{name:"5",x:200,y:25},":":[{c:"Label",p:{y:-62,alpha:.5,translatableText:"provability.reel_count","style.fontSize":25,verticalAlign:"bottom",maxWidth:94,dataPath:"this.parent.name"}},{c:"NumberInput",p:{name:"clien-seed-input",max:9,textView:"provability-count-text",dataPath:"game.data.provability.clientSeed.4",wrapValue:!0},":":[{c:"Sprite",p:{"pivot.x":30,"pivot.y":22,image:"ui/provability/counter-bg.png"}}]},{c:"Button",p:{name:"provability-seed-decrease",y:40,rotation:-3.141592653589793,image:"ui/provability/counter-btn.png",hoverImage:"ui/provability/counter-btn-h.png",disabledImage:"ui/provability/counter-btn-d.png",onClick:"this.parent.#clien-seed-input.decrease",sndClick:"click",sndOver:"over",repeatDelay:21,repeatInterval:7}},{c:"Button",p:{name:"provability-seed-increase",y:-40,image:"ui/provability/counter-btn.png",hoverImage:"ui/provability/counter-btn-h.png",disabledImage:"ui/provability/counter-btn-d.png",onClick:"this.parent.#clien-seed-input.increase",sndClick:"click",sndOver:"over",repeatDelay:21,repeatInterval:7}}]}]},{c:"Label",p:{name:"game-provability-tip",y:-70,alpha:.5,translatableText:"provability.enter_client_seed","style.fontSize":22,verticalAlign:"center","style.fontWeight":"lighter","style.leading":4,maxWidth:376,dataPath:"game.data.provability.seedLimits",refreshInterval:1e3}}]},"thing-games-utils/reality-check-popup":{c:"RealityCheckPopup",p:{name:"thing-games-utils/reality-check-popup",relativeX:!0,xPos:.5,relativeY:!0,yPos:.5},":":[{c:"Resizer",p:{resizeX:!0,resizeY:!0},":":[{c:"MovieClip",p:{name:"backdrop",interactive:!0,"scale.x":120,"scale.y":67.5,image:"WHITE",tint:0,timeline:{l:{close:15},p:.02,d:.85,f:[{n:"alpha",t:[{v:0,t:0,m:1},{v:.7,t:7,m:1,a:"this.stop"},{v:.7,t:15,m:1},{v:0,t:23,m:1,a:"this.stop"}]}]}}}]},{c:"MovieClip",p:{name:"main",tint:0,timeline:{l:{close:20},p:.06,d:.73,f:[{n:"scale.x",t:[{v:0,t:0},{v:1,t:12},{v:1,t:16,m:1,a:"this.stop"},{v:1,t:20},{v:0,t:30,a:"this.parent.hidePopup"}]},{n:"scale.y",t:[{v:0,t:0},{v:1,t:12},{v:1,t:16,m:1},{v:1,t:20},{v:0,t:30,a:"this.stop"}]}]}},":":[{c:"Trigger",p:{dataPath:"isMobile.any",invert:!0,pow:1,alphaShift:0,scaleShift:.4,isApplyInteractivity:!1},":":[{c:"Shape",p:{x:-255,y:-380,width:510,height:755,shapeFillColor:5460819}},{c:"Shape",p:{x:-255,y:-380,width:510,height:15,shapeFillColor:10987431}},{c:"Text",p:{y:-292,translatableText:"reality_check.reality_check","style.fontSize":41,verticalAlign:"center",maxWidth:446}},{c:"MultilineText",p:{y:-242,translatableText:"reality_check.description","style.fontSize":23,"style.leading":4,maxWidthLandscape:450,maxWidthPortrait:450,maxHeightLandscape:135,maxHeightPortrait:135}},{c:"Text",p:{x:-221,y:-90,translatableText:"reality_check.session_time","style.fontSize":29,"style.align":"left",verticalAlign:"center",maxWidth:233}},{c:"Label",p:{name:"sessionTimeLable",x:220,y:-90,translatableText:"reality_check.minutes","style.fontSize":29,"style.align":"right",verticalAlign:"center","style.fontWeight":"bold",maxWidth:200,dataPath:"this.parent.parent.parent.sessionTime",isNumeric:!0}},{c:"Shape",p:{x:-221,y:-60,width:440,height:2,shapeFillColor:10987431}},{c:"Text",p:{x:-221,y:-30,translatableText:"reality_check.bets","style.fontSize":29,"style.align":"left",verticalAlign:"center",maxWidth:135}},{c:"MoneyLabel",p:{name:"sessionBetsLable",x:220,y:-30,text:"%d %s","style.fontSize":29,"style.align":"right",verticalAlign:"center","style.fontWeight":"bold",maxWidth:200,dataPath:"this.parent.parent.parent.sessionBets",template:"%d %s",dataPath2:"data.currency",decimalsCountPath:"data.balanceDigitsCount"}},{c:"Shape",p:{x:-221,y:1,width:440,height:2,shapeFillColor:10987431}},{c:"Text",p:{x:-221,y:33,translatableText:"reality_check.win","style.fontSize":29,"style.align":"left",verticalAlign:"center",maxWidth:135}},{c:"MoneyLabel",p:{name:"sessionWonLable",x:220,y:32,text:"%d %s","style.fontSize":29,"style.align":"right",verticalAlign:"center","style.fontWeight":"bold",maxWidth:200,dataPath:"this.parent.parent.parent.sessionWin",template:"%d %s",dataPath2:"data.currency",decimalsCountPath:"data.balanceDigitsCount"}},{c:"Shape",p:{x:-221,y:65,width:440,height:2,shapeFillColor:10987431}},{c:"Text",p:{x:-221,y:94,translatableText:"reality_check.lose","style.fontSize":29,"style.align":"left",verticalAlign:"center",maxWidth:135}},{c:"MoneyLabel",p:{name:"sessionLoseLable",x:220,y:93,text:"%d %s","style.fontSize":29,"style.align":"right",verticalAlign:"center","style.fontWeight":"bold",maxWidth:200,dataPath:"this.parent.parent.parent.sessionLose",template:"%d %s",dataPath2:"data.currency",decimalsCountPath:"data.balanceDigitsCount"}},{c:"Button",p:{name:"rc-close-button",x:217,y:-327,image:"reality-check/rc-popup-close-btn.png",onClick:"this.parent.parent.parent.onContinue",sndClick:"click",sndOver:"over"}},{c:"Trigger",p:{y:-18,dataPath:"casinoOptions.history_url",pow:1,damp:0},":":[{c:"Button",p:{name:"rc-history-button",y:153,onClick:"SharedAPI.openHistory",sndClick:"click",sndOver:"over"},":":[{c:"Shape",p:{x:-220,width:440,height:61,shapeFillColor:10987431}},{c:"Text",p:{y:30,translatableText:"reality_check.view_history","style.fontSize":30,verticalAlign:"center",textTransform:1,maxWidth:420}}]}]},{c:"Button",p:{name:"rc-leave-button",y:215,onClick:"this.parent.parent.parent.onLeaveTheGame",sndClick:"click",sndOver:"over"},":":[{c:"Shape",p:{x:-220,width:440,height:61,shapeFillColor:10987431}},{c:"Text",p:{y:30,translatableText:"reality_check.leave_the_game","style.fontSize":30,verticalAlign:"center",textTransform:1,maxWidth:420}}]},{c:"Button",p:{name:"rc-continue-button",y:291,onClick:"this.parent.parent.parent.onContinue",sndClick:"click",sndOver:"over"},":":[{c:"Shape",p:{x:-220,width:440,height:66}},{c:"Text",p:{y:30,translatableText:"reality_check.continue","style.fontSize":30,verticalAlign:"center",textTransform:1,maxWidth:420}}]}]}]}]},"thing-games-utils/safari-arrow-up":{c:"SafariArrowUp",p:{name:"thing-games-utils/safari-arrow-up"},":":[{c:"Resizer",p:{resizeX:!0,resizeY:!0},":":[{c:"Sprite",p:{alpha:.75,interactive:!0,"scale.x":120,"scale.y":67.5,image:"WHITE",tint:0}}]},{c:"Resizer",p:{"scale.x":1.5,"scale.y":1.5,relativeX:!0,xPos:.5,relativeY:!0,yPos:.5},":":[{c:"MovieClip",p:{image:"ui/arrow-up.png",timeline:{l:{},p:.02,d:.85,f:[{n:"y",t:[{v:-35,t:0},{v:-35,t:25},{v:-57,t:36},{v:-57,t:52},{v:-35,t:72,j:0}]}]}}},{c:"MovieClip",p:{x:56,image:"ui/hand.png",timeline:{l:{},p:.012,d:.85,f:[{n:"alpha",t:[{v:0,t:0,m:1},{v:1,t:13,m:1},{v:1,t:45,m:1},{v:0,t:59,m:1},{v:0,t:72,m:1,j:0}]},{n:"scale.y",t:[{v:2,t:0},{v:1,t:14,m:1},{v:1,t:47,m:1},{v:2,t:72,j:0,m:1}]},{n:"scale.x",t:[{v:2,t:0},{v:1,t:14,m:1},{v:1,t:47,m:1},{v:2,t:72,j:0,m:1}]},{n:"y",t:[{v:130,t:0},{v:130,t:1,m:2},{v:130,t:21},{v:-99,t:60},{v:130,t:72,j:0}]}]}}}]}]},"thing-games-utils/snd-mus-button":{c:"ClickOutsideTrigger",p:{name:"thing-games-utils/snd-mus-button",x:-45,y:45,onClickOutside:"this.#volume-show.hide"},":":[{c:"Trigger",p:{name:"volume-show","scale.x":1.3,"scale.y":1.3,pow:.10200000000000002,damp:.749,scaleShift:-.5100000000000003},":":[{c:"NineSlicePlane",p:{x:-141,y:-32,alpha:.96,interactive:!0,"scale.x":.8,"scale.y":.8,image:"ui/panel.png",width:215,height:420,leftWidth:38,rightWidth:38,topHeight:38,bottomHeight:38}},{c:"ProgressBar",p:{x:9,y:241,rotation:-3.141592653589793,interactive:!0,dataPath:"game.Sound.soundsVol",refreshInterval:1,afterSlide:"game.Sound.play`click",max:1,step:.01},":":[{c:"Sprite",p:{name:"bg",x:-22,alpha:.2,"scale.y":1.0101010101010102,image:"ui/bar-mask.png"}},{c:"Fill",p:{name:"bar",x:-22,image:"ui/bar-mask.png"}},{c:"Container",p:{name:"cap",x:14,y:-200}}]},{c:"ProgressBar",p:{x:-69,y:241,rotation:-3.141592653589793,interactive:!0,dataPath:"game.Sound.musicVol",refreshInterval:1,afterSlide:"game.Sound.play`click",max:1,step:.01},":":[{c:"Sprite",p:{name:"bg",x:-22,alpha:.2,"scale.y":1.0101010101010102,image:"ui/bar-mask.png"}},{c:"Fill",p:{name:"bar",x:-22,image:"ui/bar-mask.png"}},{c:"Container",p:{name:"cap",x:14,y:-200}}]},{c:"Trigger",p:{x:-13,y:271,dataPath:"game.Sound.soundEnabled",invert:!0,pow:.06,damp:.8,scaleShift:-.5},":":[{c:"Button",p:{name:"snd toggle btn",hoverImage:"EMPTY",pressImage:"EMPTY",onClick:"game.Sound.toggleSounds",sndClick:"click",sndOver:"over"},":":[{c:"MovieClip",p:{alpha:.6900000000000001,image:"ui/snd-off.png",isPlaying:!1,timeline:{l:{"btn-over":2,"btn-out":53},p:.02,d:.85,f:[{n:"alpha",t:[{v:.6900000000000001,t:0,m:1},{v:1,t:7,m:1,a:"this.stop"},{v:1,t:49,m:1},{v:.7,t:59,m:1,a:"this.stop"}]}]}}}]}]},{c:"Trigger",p:{x:-13,y:271,dataPath:"game.Sound.soundEnabled",pow:.06,damp:.8,scaleShift:-.5},":":[{c:"Button",p:{name:"snd toggle btn",hoverImage:"EMPTY",pressImage:"EMPTY",onClick:"game.Sound.toggleSounds",sndClick:"click",sndOver:"over"},":":[{c:"MovieClip",p:{alpha:.6900000000000001,image:"ui/snd-on.png",isPlaying:!1,timeline:{l:{"btn-over":2,"btn-out":53},p:.02,d:.85,f:[{n:"alpha",t:[{v:.6900000000000001,t:0,m:1},{v:1,t:7,m:1,a:"this.stop"},{v:1,t:49,m:1},{v:.7,t:59,m:1,a:"this.stop"}]}]}}}]}]},{c:"Trigger",p:{x:-91,y:271,dataPath:"game.Sound.musicEnabled",invert:!0,pow:.06,damp:.8,scaleShift:-.5},":":[{c:"Button",p:{name:"snd toggle btn",hoverImage:"EMPTY",pressImage:"EMPTY",onClick:"game.Sound.toggleMusic",sndClick:"click",sndOver:"over"},":":[{c:"MovieClip",p:{alpha:.6900000000000001,image:"ui/mus-off.png",isPlaying:!1,timeline:{l:{"btn-over":2,"btn-out":53},p:.02,d:.85,f:[{n:"alpha",t:[{v:.6900000000000001,t:0,m:1},{v:1,t:7,m:1,a:"this.stop"},{v:1,t:49,m:1},{v:.7,t:59,m:1,a:"this.stop"}]}]}}}]}]},{c:"Trigger",p:{x:-91,y:271,dataPath:"game.Sound.musicEnabled",pow:.06,damp:.8,scaleShift:-.5},":":[{c:"Button",p:{name:"snd toggle btn",hoverImage:"EMPTY",pressImage:"EMPTY",onClick:"game.Sound.toggleMusic",sndClick:"click",sndOver:"over"},":":[{c:"MovieClip",p:{alpha:.6900000000000001,image:"ui/mus-on.png",isPlaying:!1,timeline:{l:{"btn-over":2,"btn-out":53},p:.02,d:.85,f:[{n:"alpha",t:[{v:.6900000000000001,t:0,m:1},{v:1,t:7,m:1,a:"this.stop"},{v:1,t:49,m:1},{v:.7,t:59,m:1,a:"this.stop"}]}]}}}]}]}]},{c:"Button",p:{hoverImage:"EMPTY",pressImage:"EMPTY",disabledImage:"EMPTY",onClick:"all.volume-show.toggle",sndClick:"click",sndOver:"over"},":":[{c:"Trigger",p:{dataPath:"classes.MainMenu.anySoundEnabled",invert:!0,pow:.06,damp:.8,scaleShift:-.5},":":[{c:"MovieClip",p:{image:"ui/snd-b-off.png",isPlaying:!1,timeline:{l:{"btn-over":7,"btn-out":44},p:.02,d:.85,f:[{n:"image",t:[{v:"ui/snd-b-off.png",t:0,m:2},{v:"ui/snd-b-off-h.png",t:8,m:2,a:"this.stop"},{v:"ui/snd-b-off.png",t:45,m:2}]}]}}}]},{c:"Trigger",p:{dataPath:"classes.MainMenu.anySoundEnabled",pow:.06,damp:.8,scaleShift:-.5},":":[{c:"MovieClip",p:{image:"ui/snd-b-on.png",isPlaying:!1,timeline:{l:{"btn-out":44,"btn-over":7},p:.02,d:.85,f:[{n:"image",t:[{v:"ui/snd-b-on.png",t:0,m:2},{v:"ui/snd-b-on-h.png",t:8,m:2,a:"this.stop"},{v:"ui/snd-b-on.png",t:45,m:2}]}]}}}]},{c:"Shape",p:{name:"hit-area",x:-66,y:-56,alpha:.46,width:121,height:119,isItHitArea:!0}}]}]},"thing-games-utils/sure-question":{c:"Resizer",p:{name:"thing-games-utils/sure-question",relativeX:!0,xPos:.5,relativeY:!0,yPos:.5},":":[{c:"Resizer",p:{resizeX:!0,resizeY:!0},":":[{c:"MovieClip",p:{name:"backdrop","scale.x":192,"scale.y":108,timeline:{l:{},p:.02,d:.85,f:[{n:"alpha",t:[{v:.01,t:0,m:1},{v:1,t:7,m:1}]}]}},":":[{c:"Button",p:{name:"easyCloseBtn",alpha:.7000000000000001,interactive:!1,"scale.x":.625,"scale.y":.625,image:"WHITE",tint:40,hoverImage:"WHITE",pressImage:"WHITE",disabledImage:"WHITE",hotkey:27,sndClick:"click",sndOver:"over"}}]}]},{c:"MovieClip",p:{name:"main",tint:0,timeline:{l:{},p:.06,d:.73,f:[{n:"scale.x",t:[{v:0,t:0},{v:1,t:12},{v:1,t:16,m:1}]},{n:"scale.y",t:[{v:0,t:0},{v:1,t:12},{v:1,t:16,m:1}]}]}},":":[{c:"Trigger",p:{dataPath:"isMobile.any",invert:!0,pow:1,alphaShift:0,scaleShift:.7,isApplyInteractivity:!1},":":[{c:"NineSlicePlane",p:{x:-200,y:-173,interactive:!0,image:"ui/panel.png",width:400,height:271,leftWidth:25,rightWidth:25,topHeight:25,bottomHeight:25}},{c:"Text",p:{name:"title",y:-138,alpha:.8,text:"TITLE","style.fontSize":26,verticalAlign:"center","style.fontWeight":"lighter",maxWidth:250}},{c:"MultilineText",p:{name:"message",y:-62,alpha:.7,text:"qw qwe qwe q weq weqwe qweqwe eqwe qwe qwe qwe qwe qwe qw eqw e","style.fontSize":22,verticalAlign:"center","style.fontWeight":"lighter",maxWidthLandscape:340,maxWidthPortrait:340,maxHeightLandscape:130,maxHeightPortrait:130}},{c:"Button",p:{name:"okBtn",x:100,y:40,"scale.x":.666666,"scale.y":.666666,image:"ui/btn-long.png",hoverImage:"ui/btn-long-h.png",pressImage:"ui/btn-long.png",disabledImage:"ui/btn-long.png",sndClick:"click",sndOver:"over"},":":[{c:"Text",p:{name:"label",translatableText:"buttons.ok","style.fontSize":45,verticalAlign:"center","style.fill":"#000000","style.fontWeight":"lighter",maxWidth:173}}]},{c:"Button",p:{name:"noBtn",x:-100,y:40,"scale.x":.666666,"scale.y":.666666,image:"ui/btn-long.png",hoverImage:"ui/btn-long-h.png",pressImage:"ui/btn-long.png",disabledImage:"ui/btn-long.png",sndClick:"click",sndOver:"over"},":":[{c:"Text",p:{name:"label",text:"--","style.fontSize":45,verticalAlign:"center","style.fill":"#000000","style.fontWeight":"lighter",maxWidth:173}}]},{c:"Sprite",p:{name:"alert-icon",x:-197,y:-182,image:"ui/alert-icon.png"}}]}]}]},"thing-games-utils/sure-question700":{c:"Resizer",p:{name:"thing-games-utils/sure-question700",relativeX:!0,xPos:.5,relativeY:!0,yPos:.5},":":[{c:"Resizer",p:{resizeX:!0,resizeY:!0},":":[{c:"MovieClip",p:{name:"backdrop","scale.x":192,"scale.y":108,image:"WHITE",tint:40,timeline:{l:{},p:.02,d:.85,f:[{n:"alpha",t:[{v:0,t:0,m:1},{v:.7,t:7,m:1}]}]}}}]},{c:"MovieClip",p:{name:"main",tint:0,timeline:{l:{},p:.06,d:.73,f:[{n:"scale.x",t:[{v:0,t:0},{v:1,t:12},{v:1,t:16,m:1}]},{n:"scale.y",t:[{v:0,t:0},{v:1,t:12},{v:1,t:16,m:1}]}]}},":":[{c:"Trigger",p:{dataPath:"isMobile.any",invert:!0,pow:1,alphaShift:0,scaleShift:.7,isApplyInteractivity:!1},":":[{c:"NineSlicePlane",p:{x:-300,y:-173,alpha:.9,interactive:!0,image:"ui/panel.png",width:600,height:271,leftWidth:25,rightWidth:25,topHeight:25,bottomHeight:25}},{c:"Text",p:{name:"title",y:-138,alpha:.8,text:"TITLE","style.fontSize":26,verticalAlign:"center","style.fontWeight":"lighter",maxWidth:540}},{c:"MultilineText",p:{name:"message",y:-62,alpha:.7,text:"qw qwe qwe q weq weqwe qweqwe eqwe qwe qwe qwe qwe qwe qw eqw e","style.fontSize":22,verticalAlign:"center","style.fontWeight":"lighter",maxWidthLandscape:540,maxWidthPortrait:540,maxHeightLandscape:130,maxHeightPortrait:130}},{c:"Button",p:{name:"btn",x:-170,y:40,"scale.x":.666666,"scale.y":.666666,image:"ui/btn-long.png",hoverImage:"ui/btn-long-h.png",pressImage:"ui/btn-long.png",disabledImage:"ui/btn-long.png",sndClick:"click",sndOver:"over"},":":[{c:"Text",p:{name:"label",translatableText:"buttons.ok","style.fontSize":45,verticalAlign:"center","style.fill":"#000000","style.fontWeight":"lighter",maxWidth:173}}]},{c:"Button",p:{name:"btn",y:40,"scale.x":.666666,"scale.y":.666666,image:"ui/btn-long.png",hoverImage:"ui/btn-long-h.png",pressImage:"ui/btn-long.png",disabledImage:"ui/btn-long.png",sndClick:"click",sndOver:"over"},":":[{c:"Text",p:{name:"label",translatableText:"buttons.ok","style.fontSize":45,verticalAlign:"center","style.fill":"#000000","style.fontWeight":"lighter",maxWidth:173}}]},{c:"Button",p:{name:"btn",x:170,y:40,"scale.x":.666666,"scale.y":.666666,image:"ui/btn-long.png",hoverImage:"ui/btn-long-h.png",pressImage:"ui/btn-long.png",disabledImage:"ui/btn-long.png",sndClick:"click",sndOver:"over"},":":[{c:"Text",p:{name:"label",translatableText:"buttons.ok","style.fontSize":45,verticalAlign:"center","style.fill":"#000000","style.fontWeight":"lighter",maxWidth:173}}]}]}]}]},"ui/game-provability":{c:"Container",p:{name:"ui/game-provability"},":":[{c:"Container",p:{name:"client-seed-controls"},":":[{c:"Container",p:{},":":[{c:"NumberInput",p:{name:"clien-seed-input",y:35,max:16,textView:"provability-count-text",dataPath:"game.data.provability.clientSeed.0",wrapValue:!0},":":[{c:"Sprite",p:{"pivot.x":30,"pivot.y":22,image:"ui/provability/counter-bg.png"}}]},{c:"Button",p:{x:-43,y:35,rotation:-1.5707963267948966,"scale.x":.72,"scale.y":.72,image:"ui/provability/counter-btn.png",hoverImage:"ui/provability/counter-btn-h.png",disabledImage:"ui/provability/counter-btn-d.png",onClick:"this.parent.#clien-seed-input.decrease",sndClick:"click",sndOver:"over",repeatDelay:21,repeatInterval:7}},{c:"Button",p:{x:43,y:35,rotation:1.5707963267948966,"scale.x":.72,"scale.y":.72,image:"ui/provability/counter-btn.png",hoverImage:"ui/provability/counter-btn-h.png",disabledImage:"ui/provability/counter-btn-d.png",onClick:"this.parent.#clien-seed-input.increase",sndClick:"click",sndOver:"over",repeatDelay:21,repeatInterval:7}}]}]},{c:"Label",p:{name:"game-provability-tip",y:-26,translatableText:"plinko.provability","style.fontSize":20,verticalAlign:"center","style.leading":4,maxWidth:376,dataPath:"game.data.provability.seedLimits",refreshInterval:1e3}}]},"ui/html-popup":{c:"PrefabReference",p:{name:"ui/html-popup",prefabName:"thing-games-utils/html-popup"}},"ui/sure-question":{c:"PrefabReference",p:{name:"ui/sure-question",prefabName:"thing-games-utils/sure-question"}},"ui/ui-panel":{c:"Container",p:{name:"ui/ui-panel"},":":[{c:"Resizer",p:{name:"top-middle",relativeX:!0,xPos:.5},":":[{c:"OrientationTrigger",p:{landscapeY:16,portraitY:16,portraitAlpha:0},":":[{c:"Sprite",p:{y:57,"scale.x":.5,"scale.y":.5,"pivot.x":204,"pivot.y":118,image:"ui/logo.png"},":":[{c:"Trigger",p:{dataPath:"game.casinoOptions.ui.logo_visible",isApplyInteractivity:!1},":":[{c:"Sprite",p:{x:284,y:188,alpha:.4,"scale.x":.5,"scale.y":.5,image:"ui/brand-logo.png"}}]}]}]}]},{c:"Trigger",p:{name:"ios-safari-fix",dataPath:"game.isLandscapeSafariIos",invert:!0,pow:1,alphaShift:0,yShift:80,isApplyInteractivity:!1},":":[{c:"Trigger",p:{x:44,y:44,dataPath:"game.casinoOptions.ui.home_button",pow:1},":":[{c:"Button",p:{image:"ui/home.png",hoverImage:"ui/home-h.png",pressImage:"ui/home.png",disabledImage:"ui/home.png",onClick:"SharedAPI.gotoHome",sndClick:"click",sndOver:"over"}},{c:"Label",p:{name:"time-label",x:62,y:-3,text:"15:46","style.fontSize":22,"style.align":"left",verticalAlign:"center","style.letterSpacing":1,dataPath:"game.currentScene.currentTime",refreshInterval:120,counterSpeed:.259,decimalsCount:2}}]},{c:"Resizer",p:{name:"right-top",relativeX:!0,xPos:1,relativeY:!0},":":[{c:"Button",p:{x:-134,y:44,image:"ui/help-btn.png",hoverImage:"ui/help-btn-h.png",pressImage:"ui/help-btn.png",disabledImage:"EMPTY",onClick:"game.currentScene.showRules",sndClick:"click",sndOver:"over"}},{c:"Trigger",p:{dataPath:"all.provability-panel.data"},":":[{c:"Trigger",p:{x:-90,dataPath:"casinoOptions.history_url",pow:1,damp:0,alphaShift:0,xShift:90,isApplyInteractivity:!1},":":[{c:"Button",p:{name:"provability-btn",x:-224,y:44,image:"ui/provability/provability-btn.png",hoverImage:"ui/provability/provability-btn-h.png",pressImage:"ui/provability/provability-btn.png",disabledImage:"EMPTY",onClick:"all.provability-panel.toggle",sndClick:"click",sndOver:"over"}}]}]},{c:"Trigger",p:{dataPath:"casinoOptions.history_url",pow:1,damp:0},":":[{c:"Button",p:{name:"provability-btn",x:-224,y:44,image:"ui/history-btn.png",hoverImage:"ui/history-btn-h.png",pressImage:"ui/history-btn.png",disabledImage:"EMPTY",onClick:"SharedAPI.openHistory",sndClick:"click",sndOver:"over"}}]},{c:"PrefabReference",p:{x:-44,y:44,prefabName:"thing-games-utils/snd-mus-button"}}]}]},{c:"PrefabReference",p:{name:"provability-panel",y:5684341886080802e-29,prefabName:"thing-games-utils/provability-panel"}}]}},images:{"ui/provability/counter-bg.png":{e:".png_100.webp",f_e:".f.png_90_100.png"},"ui/provability/counter-btn-d.png":{e:".png_90_90.webp",f_e:".f.png_80_90.png"},"ui/provability/counter-btn-h.png":{e:".png_100.webp",f_e:".f.png_80_90.png"},"ui/provability/counter-btn.png":{e:".png_100.webp",f_e:".f.png_80_90.png"},"ui/provability/input-fade-yellow.png":{e:".png_80_90.png"},"ui/provability/input-fade.png":{e:".png_100.webp",f_e:".f.png_80_90.png"},"ui/provability/input-gray.png":{e:".png_100.webp",f_e:".f.png_80_90.png"},"ui/provability/input-yellow.png":{e:".png_100.webp",f_e:".f.png_80_90.png"},"ui/provability/label-gray.png":{e:".png_100.webp",f_e:".f.png_90_100.png"},"ui/provability/verify-btn-h.png":{e:".png_100.webp",f_e:".f.png_80_90.png"},"ui/provability/verify-btn.png":{e:".png_100.webp",f_e:".f.png_80_90.png"},"distortion_map.png":{e:".png_100_100.webp",f_e:".f.png"},"reality-check/rc-popup-close-btn.png":{e:".png_100.webp",f_e:".f.png_80_90.png"},"round_gradient.png":{e:".png_100_100.webp",f_e:".f.png_80_90.png"},"ui/alert-icon.png":{e:".png_80_90.png"},"ui/arrow-up.png":{e:".png_80_80.webp",f_e:".f.png_80_90.png"},"ui/bar-mask.png":{e:".png_100_100.webp",f_e:".f.png_80_90.png"},"ui/brand-logo.png":{e:".png_80_90.png"},"ui/close-btn-h.png":{e:".png_100.webp",f_e:".f.png_80_90.png"},"ui/close-btn-p.png":{e:".png_100.webp",f_e:".f.png_80_90.png"},"ui/close-btn.png":{e:".png_100.webp",f_e:".f.png_80_90.png"},"ui/hand.png":{e:".png_80_90.png"},"ui/mus-off.png":{e:".png_100.webp",f_e:".f.png_80_90.png"},"ui/mus-on.png":{e:".png_100.webp",f_e:".f.png_80_90.png"},"ui/panel.png":{e:".png_100.webp",f_e:".f.png_90_100.png"},"ui/scroller.png":{e:".png_100.webp",f_e:".f.png_80_90.png"},"ui/snd-off.png":{e:".png_100.webp",f_e:".f.png_80_90.png"},"ui/snd-on.png":{e:".png_100.webp",f_e:".f.png_80_90.png"},"ui/spinner.png":{e:".png_100.webp",f_e:".f.png_80_90.png"},"WHITE_FOR_CANVAS.jpg":{e:".jpg_100_100.webp",f_e:".f.jpg"},"ui/play-btn-h.png":{e:".png_80_80.webp",f_e:".f.png_80_90.png"},"ui/play-btn.png":{e:".png_80_80.webp",f_e:".f.png_90_100.png"},"ui/profit-bg.png":{e:".png_100.webp",f_e:".f.png_80_90.png"},"ui/provability/provability-btn-h.png":{e:".png_80_90.png"},"ui/provability/provability-btn.png":{e:".png_80_90.png"},"ui/select-btn-d.png":{e:".png_100.webp",f_e:".f.png_90_100.png"},"ui/select-btn-h.png":{e:".png_100.webp",f_e:".f.png_80_90.png"},"ui/select-btn.png":{e:".png_100.webp",f_e:".f.png_80_90.png"},"ui/small-btn-d.png":{e:".png_100.webp",f_e:".f.png_80_90.png"},"ui/small-btn.png":{e:".png_100.webp",f_e:".f.png_80_90.png"},"ui/snd-b-off-h.png":{e:".png_80_90.png"},"ui/snd-b-off.png":{e:".png_80_90.png"},"ui/snd-b-on-h.png":{e:".png_80_90.png"},"ui/snd-b-on.png":{e:".png_80_90.png"},"ui/spark.png":{e:".png_100.webp",f_e:".f.png_90_100.png"},"ui/star.png":{e:".png_100.webp",f_e:".f.png_80_90.png"},"ui/stars-pattern.png":{e:".png_100.webp",f_e:".f.png_80_90.png"},"ui/target-overlay.png":{e:".png_100.webp",f_e:".f.png_80_90.png"},"ui/target.png":{e:".png_100.webp",f_e:".f.png_80_90.png"},"ui/tooltip-pointer.png":{e:".png_100.webp",f_e:".f.png_80_90.png"},"ui/tooltip.png":{e:".png_100.webp",f_e:".f.png_80_90.png"},"ui/win-panel.png":{e:".png_80_90.png"},"bg/bg.jpg":{e:".jpg_80_80.webp",f_e:".f.jpg"},"ui/arrow-tabl-left.png":{e:".png_80_80.webp",f_e:".f.png_80_90.png"},"ui/auto-icon.png":{e:".png_100.webp",f_e:".f.png_80_90.png"},"ui/ball.png":{e:".png_80_80.webp",f_e:".f.png_80_90.png"},"ui/bet-btn-h.png":{e:".png_100.webp",f_e:".f.png_80_90.png"},"ui/bet-btn.png":{e:".png_100.webp",f_e:".f.png_80_90.png"},"ui/btn-long-h.png":{e:".png_80_80.webp",f_e:".f.png_80_90.png"},"ui/btn-long.png":{e:".png_80_80.webp",f_e:".f.png_80_90.png"},"ui/close.png":{e:".png_100_100.webp",f_e:".f.png_80_90.png"},"ui/counter-bg.png":{e:".png_100.webp",f_e:".f.png_90_100.png"},"ui/counter-btn-h.png":{e:".png_100.webp",f_e:".f.png_90_100.png"},"ui/counter-btn.png":{e:".png_100.webp",f_e:".f.png_90_100.png"},"ui/fullscreen.png":{e:".png_100.webp",f_e:".f.png_90_100.png"},"ui/help-btn-h.png":{e:".png_80_90.png"},"ui/help-btn.png":{e:".png_80_90.png"},"ui/history-btn-h.png":{e:".png_80_90.png"},"ui/history-btn.png":{e:".png_80_90.png"},"ui/hole.png":{e:".png_80_90.png"},"ui/home-h.png":{e:".png_80_90.png"},"ui/home.png":{e:".png_80_90.png"},"ui/light.png":{e:".png_80_90.png"},"ui/line.png":{e:".png_100.webp",f_e:".f.png_90_100.png"},"ui/logo.png":{e:".png_90_100.png"},"ui/lvl-high-icon.png":{e:".png_100.webp",f_e:".f.png_80_90.png"},"ui/lvl-low-icon.png":{e:".png_100.webp",f_e:".f.png_80_90.png"},"ui/lvl-mid-icon.png":{e:".png_100.webp",f_e:".f.png_80_90.png"},"ui/manual-icon.png":{e:".png_100.webp",f_e:".f.png_80_90.png"},"ui/panel-ui.png":{e:".png_100.webp",f_e:".f.png_80_90.png"},"ui/particle.png":{e:".png_100.webp",f_e:".f.png_80_90.png"},"ui/pin.png":{e:".png_100.webp",f_e:".f.png_80_90.png"},"bg/bg-flowers.png":{e:".png_80_90.png"},"bg/bg-ui.png":{e:".png_100.webp",f_e:".f.png_90_100.png"}},resources:{},sounds:{"ball2/2":["ball2/2.ogg","ball2/2.aac",.320862],big_win:["big_win.ogg","big_win.aac",.56449],click:["click.ogg","click.aac"],"mus/bg":["mus/bg.ogg","mus/bg.aac",99.548367],over:["over.ogg","over.aac"],play:["play.ogg","play.aac",.771338],win_sound:["win_sound.ogg","win_sound.aac",.469093]},projectDesc:{mainScene:"root",renderResolution:2,renderResolutionMobile:1,dynamicStageSize:!0,preventUpscale:!1,screenOrientation:"auto",defaultFont:"'Roboto', Arial",soundFormats:["ogg","aac"],width:1920,height:1080,portraitWidth:607,portraitHeight:1080,webfontloader:{google:{families:["Roboto:400,700:cyrillic"]},timeout:6e3},loadOnDemandSounds:{},muteOnFocusLost:!0,version:"0.0.1",framesSkipLimit:10,embedLocales:!1,loadOnDemandTextures:{"ui/stars-pattern.png":8},autoFullscreenDesktop:!1,autoFullscreenMobile:!0,soundDefaultBitrate:64,soundBitrates:{},defaultLanguage:"en",fontHolderText:"ЯSфz",mipmap:!1,defaultMusVol:1,defaultSoundsVol:1,keepSoundWhilePageUpdate:!1,slotPhrasesPrefix:"phrases.",jpgQuality:95,pngQuality:[.95,1],errorPhrasesPrefix:"errors.",title:"plinko",id:"plinko.softswiss.com",icon:"../../shared/img/ui/logo.png",assetsDelimiter:"\t",libs:["thing-games-utils/common","thing-games-utils/casual","thing-games-utils/provability","../../shared"]},resourceImages:{}}},7119:(t,e,i)=>{"use strict";var r=i(9135),n=i(5222),a=i(2468),s=i(9443),o=i(9080),l=i(1233);class h extends l.NineSlicePlane{constructor(){super(r.A.getTexture("WHITE"),3,3,3,3)}}var u=i(4222),c=i(1233),p=2*Math.PI,d="\n\n\tprecision mediump float;\n\n\tattribute vec2 aVertexPosition;\n\tattribute float aColor;\n\tattribute vec2 aTextureCoord;\n\n\tuniform mat3 translationMatrix;\n\tuniform mat3 projectionMatrix;\n\tuniform vec4 uColor;\n\n\tvarying vec2 vUvs;\n\tvarying vec4 vColor;\n\n\tvoid main() {\n\n\tvUvs = aTextureCoord;\n\tvColor = uColor * aColor;\n\tgl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n\n}",f="\n\n\tprecision mediump float;\n\n\tvarying vec4 vColor;\n\tvarying vec2 vUvs;\n\n\tuniform sampler2D uSampler;\n\n\tvoid main() {\n\n\tgl_FragColor = texture2D(uSampler, vUvs) * vColor;\n}";class g extends c.Mesh{constructor(t){t||(t=new c.MeshMaterial(c.Texture.WHITE,{program:c.Program.from(d,f)})),super(new c.PlaneGeometry(2,2,2,2),t),this.geometry.addAttribute("aColor",[0,0,1,1],1)}refreshSize(){var t=this.geometry;t.segWidth=this.verticesX,t.segHeight=this.verticesY,t.width=this.texture.width,t.height=this.texture.height,t.build(),this._applied_verticesX=this.verticesX,this._applied_verticesY=this.verticesY,this.updateFilling(),this.fillUpdated=!1,this.updateTransparency()}cropLeftRight(t,e){var i=this.texture.width;(t/=i)<0&&(t=0),(e/=i)<0&&(e=0),this.scale.x=Math.min(1,1-t-e),this.xRepeat=this.scale.x,this.xShift=t}cropTopBottom(t,e){var i=this.texture.height;(t/=i)<0&&(t=0),(e/=i)<0&&(e=0),this.scale.y=Math.min(1,1-t-e),this.yRepeat=this.scale.y,this.yShift=t}update(){0!==this.xShiftSpeed&&(this.xShift+=this.xShiftSpeed,s.A.isCanvasMode&&(this._xShift>2?this._xShift-=2:this._xShift<-2&&(this._xShift+=2))),0!==this.yShiftSpeed&&(this.yShift+=this.yShiftSpeed,s.A.isCanvasMode&&(this._yShift>2?this._yShift-=2:this._yShift<-2&&(this._yShift+=2))),0!==this.xWaveSpeed&&(this.xWavePhase+=this.xWaveSpeed,this._xWavePhase>p?this._xWavePhase-=p:this._xWavePhase<0&&(this._xWavePhase+=p)),0!==this.yWaveSpeed&&(this.yWavePhase+=this.yWaveSpeed,this._yWavePhase>p?this._yWavePhase-=p:this._yWavePhase<0&&(this._yWavePhase+=p)),super.update()}set texture(t){t!==super.texture&&(this.meshResized=this.meshResized||super.texture.width!==t.width||super.texture.height!==t.height,super.texture=t)}get texture(){return super.texture}render(t){this.validateFill(),super.render(t)}_renderCanvas(t){this.validateFill(),super._renderCanvas(t)}validateFill(){this.meshResized&&(this.refreshSize(),this.meshResized=!1),this.fillUpdated&&(this.updateFilling(),this.fillUpdated=!1),this.transparencyUpdated&&this.updateTransparency()}calculateVertices(){this.meshResized&&(this.refreshSize(),this.meshResized=!1),super.calculateVertices()}set transparentTop(t){this._transparentTop!==t&&(this._transparentTop=t,this.transparencyUpdated=!0)}get transparentTop(){return this._transparentTop}set transparentBottom(t){this._transparentBottom!==t&&(this._transparentBottom=t,this.transparencyUpdated=!0)}get transparentBottom(){return this._transparentBottom}set transparentLeft(t){this._transparentLeft!==t&&(this._transparentLeft=t,this.transparencyUpdated=!0)}get transparentLeft(){return this._transparentLeft}set transparentRight(t){this._transparentRight!==t&&(this._transparentRight=t,this.transparencyUpdated=!0)}get transparentRight(){return this._transparentRight}set alpha(t){super.alpha!==t&&(this.transparencyUpdated=!0,super.alpha=t)}get alpha(){return super.alpha}set tintR(t){super.tintR!==t&&(this.transparencyUpdated=!0,super.tintR=t)}get tintR(){return super.tintR}set verticesX(t){this._verticesX!==t&&(this._verticesX=t,this.meshResized=!0)}get verticesX(){return this._verticesX}set verticesY(t){this._verticesY!==t&&(this._verticesY=t,this.meshResized=!0)}get verticesY(){return this._verticesY}updateTransparency(){var t=this.verticesX*this.verticesY,e=this.geometry.buffers[3];e.data.length!==t&&(e.data=new Float32Array(t));for(var i=e.data,r=0;r=0;n--)i[n]=0;if(this.transparentBottom)for(var a=t-this.verticesX;a2){for(var e of(t=[],this._shapePoints))t.push(e.x,e.y);this.drawPolygon(t)}}}getHitareaShape(){if(!this._hitAreaCache)switch(this.shape){case v:this._hitAreaCache=new m.RoundedRectangle(this.x,this.y,this.width,this.height,this.shapeRadius);break;case A:this._hitAreaCache=new m.Rectangle(this.x,this.y,this.width,this.height);break;case y:this._hitAreaCache=new m.Circle(this.x,this.y,this.shapeRadius);break;case _:this._hitAreaCache=new m.Ellipse(this.x,this.y,this.width,this.height);break;case b:if(this._shapePoints.length>2){var t=[];for(var e of this._shapePoints)t.push(e.x+this.x,e.y+this.y);this._hitAreaCache=new m.Polygon(t)}}return this._hitAreaCache}applyHitAreaToParent(){this.parent.hitArea=this.getHitareaShape(),this.visible=!1}onRemove(){super.onRemove(),this.clear(),this.isItHitArea&&this.parent&&(this.parent.hitArea=null)}set shape(t){this._shape=t,this.__deserialized&&this._drawThing()}get shape(){return this._shape}set width(t){this._width=t,this.__deserialized&&this._drawThing()}get width(){return this._width}set height(t){this._height=t,this.__deserialized&&this._drawThing()}get height(){return this._height}set shapeRadius(t){this._shapeRadius=t,this.__deserialized&&this._drawThing()}get shapeRadius(){return this._shapeRadius}set shapeLineColor(t){this._lColor=t,this.__deserialized&&this._drawThing()}get shapeLineColor(){return this._lColor}set shapeFillColor(t){this._fColor=t,this.__deserialized&&this._drawThing()}get shapeFillColor(){return this._fColor}set shapeFillAlpha(t){this._fAlpha=t,this.__deserialized&&this._drawThing()}get shapeFillAlpha(){return this._fAlpha}set shapeLineAlpha(t){this._lAlpha=t,this.__deserialized&&this._drawThing()}get shapeLineAlpha(){return this._lAlpha}set shapeLineWidth(t){this._lWidth=t,this.__deserialized&&this._drawThing()}get shapeLineWidth(){return this._lWidth}set shapeLineAlignment(t){this._lAlignment=t,this.__deserialized&&this._drawThing()}get shapeLineAlignment(){return this._lAlignment}}var T=new(i(1233).Point);function E(t,e){t instanceof x||t instanceof h?t.height=e:t.texture&&(t.scale.y=e/t.texture.height,t instanceof g&&(t.yRepeat=t.scale.y))}class S extends n.A{constructor(){super()}init(){super.init(),this.scrolling=!1,this.currentInterval=0,this.showedVal=void 0,this.bar=this.findChildByName("bar"),this.cap=this.findChildByName("cap"),this.buttonMode=this.interactive,this.on("pointerdown",this.onDown),this._applyBgHeight()}get height(){return this._height||200}set height(t){this._height!==t&&(this._height=t,this.applyValue(this.showedVal||0),this._applyBgHeight())}_applyBgHeight(){var t=this.getChildByName("bg");t&&E(t,this._height)}onRemove(){super.onRemove(),this._height=void 0,this.bar=null,this.cap=null,this.removeListener("pointerdown",this.onDown)}onDown(){this.isCanBePressed&&(this.scrolling=!0)}update(){if(this.scrolling)if(s.A.mouse.click){var t=this.toLocal(s.A.mouse,s.A.stage,T,!0).y/this._height;t<0?t=0:t>1&&(t=1);var e=this.min+t*(this.max-this.min);this.step>0&&(e=Math.round(e/this.step)*this.step),this.applyValue(e),this.dataPath&&(0,a.W)(this.dataPath,e,this)}else this.scrolling=!1,this.afterSlide&&(0,u.A)(this.afterSlide,this);else if(this.currentInterval<=0&&this.dataPath){var i=(0,a.A)(this.dataPath,this);i||0===i?(i>this.max&&(i=this.max),i0&&e>r&&(i+=Math.round((e-r)/2),e=r);var n=s.A.H-this.getMarginTop()-this.getMarginBottom();if(this.x=i+this.containerMargin||0,this.y=this.getMarginTop()+this.containerMargin||0,this.bgNineSlicePlanePath){var o=(0,a.A)(this.bgNineSlicePlanePath,this);o&&(o.x=-this.containerMargin,o.y=-this.containerMargin,o.width=e,o.height=n)}if(this.scrollBarPath){var l=(0,a.A)(this.scrollBarPath,this);l&&(l.x=e-this.containerMargin,l.height=n-this.scrollBarBottomMargin)}if(this.scrollLayerPath){var h=(0,a.A)(this.scrollLayerPath,this);if(h){var u=h.visibleArea;if(u.w=e-2*this.containerMargin,u.h=n-2*this.containerMargin,h.fullArea.w=u.w,h.parent instanceof R){var c=h.parent.rect;c.w=u.w,c.h=u.h}var p=h.getChildByName("centralized-content");if(p&&(p.x=Math.round(u.w/2)),t){var d=h.findChildByName("bottom-edge");d&&(d.visible=!1,h.fullArea.h=h.toLocal(d,d.parent).y)}}}}getMarginLeftRight(){return(s.A.isPortrait?this.marginLeftRightPortrait:this.marginLeftRight)||0}getMarginTop(){return(s.A.isPortrait?this.marginTopPortrait:this.marginTop)||0}getMarginBottom(){return(s.A.isPortrait?this.marginBottomPortrait:this.marginBottom)||0}_onRenderResize(){this._applyLayout(),this.needApplyLayout=!0}}var O=i(6711),M=i(5622);class B{init(t,e,i,r){this.target=t,this.fieldName=e.n,this.timeline=e.t,this.pow=i,this.damper=r,this.reset()}reset(){this.time=0,this.currentFrame=this.timeline[0],this.currentFrame.hasOwnProperty("r")&&(this.time+=Math.round(Math.random()*this.currentFrame.r)),this.val=this.currentFrame.v,this.targetVal=this.val,this.speed=0,this.target[this.fieldName]=this.val}goto(t,e){if(this.time=t,this.currentFrame=e,1===e.m){var i=e.t-this.time;this.speed=i>0?(e.v-this.val)/i:0}else 2===e.m&&(this.speed=0)}update(){var t=this.currentFrame;if(this.time===t.t){var e;if(t.hasOwnProperty("a")&&(e=t.a),1!==t.m&&2!==t.m||(this.val=t.v),this.time=t.j,t.hasOwnProperty("r")&&(this.time+=Math.round(Math.random()*t.r)),0===t.m&&(this.speed+=(t.v-this.val)*this.pow,this.val+=this.speed,this.speed*=this.damper),t.hasOwnProperty("s")&&(this.speed=t.s),this.currentFrame=t=t.n,1===t.m){var i=t.t-this.time;this.speed=i>0?(t.v-this.val)/i:0}!!e&&(0,u.A)(e,this.target)}else 0===t.m?(this.speed+=(t.v-this.val)*this.pow,this.val+=this.speed,this.speed*=this.damper):1===t.m?this.val+=this.speed:3===t.m?(this.speed+=t.g,this.val+=this.speed,this.val>=t.v&&(this.val=t.v,this.speed*=-t.b)):4===t.m&&(this.speed-=t.g,this.val+=this.speed,this.val<=t.v&&(this.val=t.v,this.speed*=-t.b));this.time++,this.target[this.fieldName]=this.val}}class D extends O.A{constructor(){super(),this.fieldPlayers=[]}update(){if(this.isPlaying)if(this.delay>0)this.delay--;else{if(this._goToLabelNextFrame){var t=this._timelineData.l[this._goToLabelNextFrame];this._goToLabelNextFrame=!1;for(var e=this.fieldPlayers.length,i=0;ie)return r;i=r}return i}static _findPreviousKeyframe(t,e){var i;for(var r of t){if(r.t>e)return i;i=r}return i}static _deserializeTimelineData(t){var e=t.f.map((t=>{var e=t.t.map((t=>{var e=Object.assign({},t);return e.hasOwnProperty("j")||(e.j=e.t),e.hasOwnProperty("m")||(e.m=0),e}));for(var i of e)i.n=D._findNextKeyframe(e,i.j);return{n:t.n,t:e}})),i={},r=function(){var r=t.l[n],a=e.map((t=>D._findNextKeyframe(t.t,r-1)));i[n]={t:r,n:a}};for(var n in t.l)r();return{l:i,p:t.p,d:t.d,f:e}}_disposePlayers(){for(;this.fieldPlayers.length>0;)M.A.dispose(this.fieldPlayers.pop())}set timeline(t){if(this._goToLabelNextFrame=!1,this._disposePlayers(),null!==t){if(!L.has(t)){var e=D._deserializeTimelineData(t);!0&&L.set(t,e),t=e}else t=L.get(t);this._timelineData=t;for(var i=t.p,r=t.d,n=t.f,a=0;a1&&(this.appearingPhase=1),this.alpha=this.appearingPhase,this.scale.x=this.scale.y=this.ballSize*(.5+.5*this.appearingPhase),this.y=(j-X)*this.scale.x):this.path&&this.processBallLogic()}processBallLogic(){if(this.keepBallInServerPath(),this.processPinCollisions(),this.y>this.table.targets[0].y){var t,e=1e5,i=this.path[this.path.length-1],r=(i.min+i.max)/2;for(var n of this.table.targets){var a=Math.abs(r-n.x);athis.y){t=this.path[e];break}e++}t=t||this.path[this.path.length-1],this.xt.max&&(this.xSpeed=0,this.x=t.max)}}_playBallSound(t=1,e=1){this.ballId>=Q&&(Q=this.ballId),this.ballId>=Q-1&&(this.ballId===Q-1&&(t/=2),H.A.play("ball2/2",t,1,0,!0))}processPinCollisions(){var t=1;for(var e of this.table.lines){var i=e.y-this.y;if(Math.abs(i)5&&n.addChild(r.A.loadPrefab("pin-light")),c>1&&this._playBallSound(.07*c,t);var p=Math.sqrt(s),d=this.pinToBallCollizionRadius-p;d>0&&(c-=Math.min(V,d));var f=c*(1-Math.max(0,Math.abs(Math.cos(h)))*(1-Y));this.xSpeed=-Math.cos(u)*f,this.ySpeed=-Math.sin(u)*f;var g=Math.cos(o),m=Math.sin(o);if(this.x=n.x-g*this.pinToBallCollizionRadius,this.y=e.y-m*this.pinToBallCollizionRadius,e.y>this.y)return this.ySpeed+=g*g*V,void(this.xSpeed-=m*g*V)}return void(this.ySpeed+=V)}}t*=1.0594}this.ySpeed+=V,this.finalPitch=t}setBallData(t){this.findChildByName("particles-spawner").enable(),this.rollResult=t;var e=1;this.path=t.game.outcome.map(((t,i)=>{var r,n=this.table.lines[i];return r=t?{min:n.children[e].x+.2+Math.random(),max:n.children[e+1].x-.2-Math.random()}:{max:n.children[e].x-.2-Math.random(),min:n.children[e-1].x+.2+Math.random()},e+=t?1:0,r}))}}var K,J,$,tt=i(874),et=i(1232),it=i(808),rt=i(1707),nt=i(5055);function at(t){return t.type===J.literal}function st(t){return t.type===J.argument}function ot(t){return t.type===J.number}function lt(t){return t.type===J.date}function ht(t){return t.type===J.time}function ut(t){return t.type===J.select}function ct(t){return t.type===J.plural}function pt(t){return t.type===J.pound}function dt(t){return t.type===J.tag}function ft(t){return!(!t||"object"!=typeof t||t.type!==$.number)}function gt(t){return!(!t||"object"!=typeof t||t.type!==$.dateTime)}(function(t){t[t.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",t[t.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",t[t.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",t[t.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",t[t.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",t[t.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",t[t.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",t[t.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",t[t.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",t[t.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",t[t.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",t[t.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",t[t.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",t[t.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",t[t.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",t[t.INVALID_TAG=23]="INVALID_TAG",t[t.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",t[t.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",t[t.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(K||(K={})),function(t){t[t.literal=0]="literal",t[t.argument=1]="argument",t[t.number=2]="number",t[t.date=3]="date",t[t.time=4]="time",t[t.select=5]="select",t[t.plural=6]="plural",t[t.pound=7]="pound",t[t.tag=8]="tag"}(J||(J={})),function(t){t[t.number=0]="number",t[t.dateTime=1]="dateTime"}($||($={}));var mt=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,At=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function vt(t){var e={};return t.replace(At,(function(t){var i=t.length;switch(t[0]){case"G":e.era=4===i?"long":5===i?"narrow":"short";break;case"y":e.year=2===i?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":e.month=["numeric","2-digit","short","long","narrow"][i-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":e.day=["numeric","2-digit"][i-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":e.weekday=4===i?"short":5===i?"narrow":"short";break;case"e":if(i<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][i-4];break;case"c":if(i<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][i-4];break;case"a":e.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":e.hourCycle="h12",e.hour=["numeric","2-digit"][i-1];break;case"H":e.hourCycle="h23",e.hour=["numeric","2-digit"][i-1];break;case"K":e.hourCycle="h11",e.hour=["numeric","2-digit"][i-1];break;case"k":e.hourCycle="h24",e.hour=["numeric","2-digit"][i-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":e.minute=["numeric","2-digit"][i-1];break;case"s":e.second=["numeric","2-digit"][i-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":e.timeZoneName=i<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),e}var yt=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function _t(t){if(0===t.length)throw new Error("Number skeleton cannot be empty");for(var e=t.split(yt).filter((function(t){return t.length>0})),i=[],r=0,n=e;r1)throw new RangeError("integer-width stems only accept a single optional option");n.options[0].replace(Et,(function(t,i,r,n,a,s){if(i)e.minimumIntegerDigits=r.length;else{if(n&&a)throw new Error("We currently do not support maximum integer digits");if(s)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(St.test(n.stem))e.minimumIntegerDigits=n.stem.length;else if(xt.test(n.stem)){if(n.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");n.stem.replace(xt,(function(t,i,r,n,a,s){return"*"===r?e.minimumFractionDigits=i.length:n&&"#"===n[0]?e.maximumFractionDigits=n.length:a&&s?(e.minimumFractionDigits=a.length,e.maximumFractionDigits=a.length+s.length):(e.minimumFractionDigits=i.length,e.maximumFractionDigits=i.length),""}));var a=n.options[0];"w"===a?e=(0,nt.__assign)((0,nt.__assign)({},e),{trailingZeroDisplay:"stripIfInteger"}):a&&(e=(0,nt.__assign)((0,nt.__assign)({},e),wt(a)))}else if(Tt.test(n.stem))e=(0,nt.__assign)((0,nt.__assign)({},e),wt(n.stem));else{var s=Pt(n.stem);s&&(e=(0,nt.__assign)((0,nt.__assign)({},e),s));var o=It(n.stem);o&&(e=(0,nt.__assign)((0,nt.__assign)({},e),o))}}return e}var Ot,Mt={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};function Bt(t,e){for(var i="",r=0;r>1),l="a",h=Dt(e);for("H"!=h&&"k"!=h||(o=0);o-- >0;)i+=l;for(;s-- >0;)i=h+i}else i+="J"===n?"H":n}return i}function Dt(t){var e=t.hourCycle;if(void 0===e&&t.hourCycles&&t.hourCycles.length&&(e=t.hourCycles[0]),e)switch(e){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var i,r=t.language;return"root"!==r&&(i=t.maximize().region),(Mt[i||""]||Mt[r||""]||Mt["".concat(r,"-001")]||Mt["001"])[0]}var Lt=new RegExp("^".concat(mt.source,"*")),kt=new RegExp("".concat(mt.source,"*$"));function Nt(t,e){return{start:t,end:e}}var Ft=!!String.prototype.startsWith,Gt=!!String.fromCodePoint,Ut=!!Object.fromEntries,Ht=!!String.prototype.codePointAt,Xt=!!String.prototype.trimStart,jt=!!String.prototype.trimEnd,Wt=!!Number.isSafeInteger?Number.isSafeInteger:function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},Vt=!0;try{Vt="a"===(null===(Ot=$t("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Ot?void 0:Ot[0])}catch(Va){Vt=!1}var Yt,zt=Ft?function(t,e,i){return t.startsWith(e,i)}:function(t,e,i){return t.slice(i,i+e.length)===e},qt=Gt?String.fromCodePoint:function(){for(var t=[],e=0;ea;){if((i=t[a++])>1114111)throw RangeError(i+" is not a valid code point");r+=i<65536?String.fromCharCode(i):String.fromCharCode(55296+((i-=65536)>>10),i%1024+56320)}return r},Qt=Ut?Object.fromEntries:function(t){for(var e={},i=0,r=t;i=i)){var r,n=t.charCodeAt(e);return n<55296||n>56319||e+1===i||(r=t.charCodeAt(e+1))<56320||r>57343?n:r-56320+(n-55296<<10)+65536}},Kt=Xt?function(t){return t.trimStart()}:function(t){return t.replace(Lt,"")},Jt=jt?function(t){return t.trimEnd()}:function(t){return t.replace(kt,"")};function $t(t,e){return new RegExp(t,e)}if(Vt){var te=$t("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Yt=function(t,e){var i;return te.lastIndex=e,null!==(i=te.exec(t)[1])&&void 0!==i?i:""}}else Yt=function(t,e){for(var i=[];;){var r=Zt(t,e);if(void 0===r||ae(r)||se(r))break;i.push(r),e+=r>=65536?2:1}return qt.apply(void 0,i)};var ee=function(){function t(t,e){void 0===e&&(e={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!e.ignoreTag,this.locale=e.locale,this.requiresOtherClause=!!e.requiresOtherClause,this.shouldParseSkeletons=!!e.shouldParseSkeletons}return t.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},t.prototype.parseMessage=function(t,e,i){for(var r=[];!this.isEOF();){var n=this.char();if(123===n){if((a=this.parseArgument(t,i)).err)return a;r.push(a.val)}else{if(125===n&&t>0)break;if(35!==n||"plural"!==e&&"selectordinal"!==e){if(60===n&&!this.ignoreTag&&47===this.peek()){if(i)break;return this.error(K.UNMATCHED_CLOSING_TAG,Nt(this.clonePosition(),this.clonePosition()))}if(60===n&&!this.ignoreTag&&ie(this.peek()||0)){if((a=this.parseTag(t,e)).err)return a;r.push(a.val)}else{var a;if((a=this.parseLiteral(t,e)).err)return a;r.push(a.val)}}else{var s=this.clonePosition();this.bump(),r.push({type:J.pound,location:Nt(s,this.clonePosition())})}}}return{val:r,err:null}},t.prototype.parseTag=function(t,e){var i=this.clonePosition();this.bump();var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:J.literal,value:"<".concat(r,"/>"),location:Nt(i,this.clonePosition())},err:null};if(this.bumpIf(">")){var n=this.parseMessage(t+1,e,!0);if(n.err)return n;var a=n.val,s=this.clonePosition();if(this.bumpIf("")?{val:{type:J.tag,value:r,children:a,location:Nt(i,this.clonePosition())},err:null}:this.error(K.INVALID_TAG,Nt(s,this.clonePosition())))}return this.error(K.UNCLOSED_TAG,Nt(i,this.clonePosition()))}return this.error(K.INVALID_TAG,Nt(i,this.clonePosition()))},t.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&ne(this.char());)this.bump();return this.message.slice(t,this.offset())},t.prototype.parseLiteral=function(t,e){for(var i=this.clonePosition(),r="";;){var n=this.tryParseQuote(e);if(n)r+=n;else{var a=this.tryParseUnquoted(t,e);if(a)r+=a;else{var s=this.tryParseLeftAngleBracket();if(!s)break;r+=s}}}var o=Nt(i,this.clonePosition());return{val:{type:J.literal,value:r,location:o},err:null}},t.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&re(this.peek()||0)?null:(this.bump(),"<")},t.prototype.tryParseQuote=function(t){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===t||"selectordinal"===t)break;return null;default:return null}this.bump();var e=[this.char()];for(this.bump();!this.isEOF();){var i=this.char();if(39===i){if(39!==this.peek()){this.bump();break}e.push(39),this.bump()}else e.push(i);this.bump()}return qt.apply(void 0,e)},t.prototype.tryParseUnquoted=function(t,e){if(this.isEOF())return null;var i=this.char();return 60===i||123===i||35===i&&("plural"===e||"selectordinal"===e)||125===i&&t>0?null:(this.bump(),qt(i))},t.prototype.parseArgument=function(t,e){var i=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(K.EXPECT_ARGUMENT_CLOSING_BRACE,Nt(i,this.clonePosition()));if(125===this.char())return this.bump(),this.error(K.EMPTY_ARGUMENT,Nt(i,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(K.MALFORMED_ARGUMENT,Nt(i,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(K.EXPECT_ARGUMENT_CLOSING_BRACE,Nt(i,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:J.argument,value:r,location:Nt(i,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(K.EXPECT_ARGUMENT_CLOSING_BRACE,Nt(i,this.clonePosition())):this.parseArgumentOptions(t,e,r,i);default:return this.error(K.MALFORMED_ARGUMENT,Nt(i,this.clonePosition()))}},t.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),e=this.offset(),i=Yt(this.message,e),r=e+i.length;return this.bumpTo(r),{value:i,location:Nt(t,this.clonePosition())}},t.prototype.parseArgumentOptions=function(t,e,i,r){var n,a=this.clonePosition(),s=this.parseIdentifierIfPossible().value,o=this.clonePosition();switch(s){case"":return this.error(K.EXPECT_ARGUMENT_TYPE,Nt(a,o));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var h=this.clonePosition();if((A=this.parseSimpleArgStyleIfPossible()).err)return A;if(0===(d=Jt(A.val)).length)return this.error(K.EXPECT_ARGUMENT_STYLE,Nt(this.clonePosition(),this.clonePosition()));l={style:d,styleLocation:Nt(h,this.clonePosition())}}if((v=this.tryParseArgumentClose(r)).err)return v;var u=Nt(r,this.clonePosition());if(l&&zt(null==l?void 0:l.style,"::",0)){var c=Kt(l.style.slice(2));if("number"===s)return(A=this.parseNumberSkeletonFromString(c,l.styleLocation)).err?A:{val:{type:J.number,value:i,location:u,style:A.val},err:null};if(0===c.length)return this.error(K.EXPECT_DATE_TIME_SKELETON,u);var p=c;this.locale&&(p=Bt(c,this.locale));var d={type:$.dateTime,pattern:p,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?vt(p):{}};return{val:{type:"date"===s?J.date:J.time,value:i,location:u,style:d},err:null}}return{val:{type:"number"===s?J.number:"date"===s?J.date:J.time,value:i,location:u,style:null!==(n=null==l?void 0:l.style)&&void 0!==n?n:null},err:null};case"plural":case"selectordinal":case"select":var f=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(K.EXPECT_SELECT_ARGUMENT_OPTIONS,Nt(f,(0,nt.__assign)({},f)));this.bumpSpace();var g=this.parseIdentifierIfPossible(),m=0;if("select"!==s&&"offset"===g.value){if(!this.bumpIf(":"))return this.error(K.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Nt(this.clonePosition(),this.clonePosition()));var A;if(this.bumpSpace(),(A=this.tryParseDecimalInteger(K.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,K.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return A;this.bumpSpace(),g=this.parseIdentifierIfPossible(),m=A.val}var v,y=this.tryParsePluralOrSelectOptions(t,s,e,g);if(y.err)return y;if((v=this.tryParseArgumentClose(r)).err)return v;var _=Nt(r,this.clonePosition());return"select"===s?{val:{type:J.select,value:i,options:Qt(y.val),location:_},err:null}:{val:{type:J.plural,value:i,options:Qt(y.val),offset:m,pluralType:"plural"===s?"cardinal":"ordinal",location:_},err:null};default:return this.error(K.INVALID_ARGUMENT_TYPE,Nt(a,o))}},t.prototype.tryParseArgumentClose=function(t){return this.isEOF()||125!==this.char()?this.error(K.EXPECT_ARGUMENT_CLOSING_BRACE,Nt(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},t.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,e=this.clonePosition();!this.isEOF();){switch(this.char()){case 39:this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(K.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Nt(i,this.clonePosition()));this.bump();break;case 123:t+=1,this.bump();break;case 125:if(!(t>0))return{val:this.message.slice(e.offset,this.offset()),err:null};t-=1;break;default:this.bump()}}return{val:this.message.slice(e.offset,this.offset()),err:null}},t.prototype.parseNumberSkeletonFromString=function(t,e){var i=[];try{i=_t(t)}catch(Ir){return this.error(K.INVALID_NUMBER_SKELETON,e)}return{val:{type:$.number,tokens:i,location:e,parsedOptions:this.shouldParseSkeletons?Ct(i):{}},err:null}},t.prototype.tryParsePluralOrSelectOptions=function(t,e,i,r){for(var n,a=!1,s=[],o=new Set,l=r.value,h=r.location;;){if(0===l.length){var u=this.clonePosition();if("select"===e||!this.bumpIf("="))break;var c=this.tryParseDecimalInteger(K.EXPECT_PLURAL_ARGUMENT_SELECTOR,K.INVALID_PLURAL_ARGUMENT_SELECTOR);if(c.err)return c;h=Nt(u,this.clonePosition()),l=this.message.slice(u.offset,this.offset())}if(o.has(l))return this.error("select"===e?K.DUPLICATE_SELECT_ARGUMENT_SELECTOR:K.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,h);"other"===l&&(a=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===e?K.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:K.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Nt(this.clonePosition(),this.clonePosition()));var d=this.parseMessage(t+1,e,i);if(d.err)return d;var f=this.tryParseArgumentClose(p);if(f.err)return f;s.push([l,{value:d.val,location:Nt(p,this.clonePosition())}]),o.add(l),this.bumpSpace(),l=(n=this.parseIdentifierIfPossible()).value,h=n.location}return 0===s.length?this.error("select"===e?K.EXPECT_SELECT_ARGUMENT_SELECTOR:K.EXPECT_PLURAL_ARGUMENT_SELECTOR,Nt(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(K.MISSING_OTHER_CLAUSE,Nt(this.clonePosition(),this.clonePosition())):{val:s,err:null}},t.prototype.tryParseDecimalInteger=function(t,e){var i=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(i=-1);for(var n=!1,a=0;!this.isEOF();){var s=this.char();if(!(s>=48&&s<=57))break;n=!0,a=10*a+(s-48),this.bump()}var o=Nt(r,this.clonePosition());return n?Wt(a*=i)?{val:a,err:null}:this.error(e,o):this.error(t,o)},t.prototype.offset=function(){return this.position.offset},t.prototype.isEOF=function(){return this.offset()===this.message.length},t.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},t.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var e=Zt(this.message,t);if(void 0===e)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return e},t.prototype.error=function(t,e){return{val:null,err:{kind:t,message:this.message,location:e}}},t.prototype.bump=function(){if(!this.isEOF()){var t=this.char();10===t?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},t.prototype.bumpIf=function(t){if(zt(this.message,t,this.offset())){for(var e=0;e=0?(this.bumpTo(i),!0):(this.bumpTo(this.message.length),!1)},t.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var e=this.offset();if(e===t)break;if(e>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},t.prototype.bumpSpace=function(){for(;!this.isEOF()&&ae(this.char());)this.bump()},t.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),e=this.offset(),i=this.message.charCodeAt(e+(t>=65536?2:1));return null!=i?i:null},t}();function ie(t){return t>=97&&t<=122||t>=65&&t<=90}function re(t){return ie(t)||47===t}function ne(t){return 45===t||46===t||t>=48&&t<=57||95===t||t>=97&&t<=122||t>=65&&t<=90||183==t||t>=192&&t<=214||t>=216&&t<=246||t>=248&&t<=893||t>=895&&t<=8191||t>=8204&&t<=8205||t>=8255&&t<=8256||t>=8304&&t<=8591||t>=11264&&t<=12271||t>=12289&&t<=55295||t>=63744&&t<=64975||t>=65008&&t<=65533||t>=65536&&t<=983039}function ae(t){return t>=9&&t<=13||32===t||133===t||t>=8206&&t<=8207||8232===t||8233===t}function se(t){return t>=33&&t<=35||36===t||t>=37&&t<=39||40===t||41===t||42===t||43===t||44===t||45===t||t>=46&&t<=47||t>=58&&t<=59||t>=60&&t<=62||t>=63&&t<=64||91===t||92===t||93===t||94===t||96===t||123===t||124===t||125===t||126===t||161===t||t>=162&&t<=165||166===t||167===t||169===t||171===t||172===t||174===t||176===t||177===t||182===t||187===t||191===t||215===t||247===t||t>=8208&&t<=8213||t>=8214&&t<=8215||8216===t||8217===t||8218===t||t>=8219&&t<=8220||8221===t||8222===t||8223===t||t>=8224&&t<=8231||t>=8240&&t<=8248||8249===t||8250===t||t>=8251&&t<=8254||t>=8257&&t<=8259||8260===t||8261===t||8262===t||t>=8263&&t<=8273||8274===t||8275===t||t>=8277&&t<=8286||t>=8592&&t<=8596||t>=8597&&t<=8601||t>=8602&&t<=8603||t>=8604&&t<=8607||8608===t||t>=8609&&t<=8610||8611===t||t>=8612&&t<=8613||8614===t||t>=8615&&t<=8621||8622===t||t>=8623&&t<=8653||t>=8654&&t<=8655||t>=8656&&t<=8657||8658===t||8659===t||8660===t||t>=8661&&t<=8691||t>=8692&&t<=8959||t>=8960&&t<=8967||8968===t||8969===t||8970===t||8971===t||t>=8972&&t<=8991||t>=8992&&t<=8993||t>=8994&&t<=9e3||9001===t||9002===t||t>=9003&&t<=9083||9084===t||t>=9085&&t<=9114||t>=9115&&t<=9139||t>=9140&&t<=9179||t>=9180&&t<=9185||t>=9186&&t<=9254||t>=9255&&t<=9279||t>=9280&&t<=9290||t>=9291&&t<=9311||t>=9472&&t<=9654||9655===t||t>=9656&&t<=9664||9665===t||t>=9666&&t<=9719||t>=9720&&t<=9727||t>=9728&&t<=9838||9839===t||t>=9840&&t<=10087||10088===t||10089===t||10090===t||10091===t||10092===t||10093===t||10094===t||10095===t||10096===t||10097===t||10098===t||10099===t||10100===t||10101===t||t>=10132&&t<=10175||t>=10176&&t<=10180||10181===t||10182===t||t>=10183&&t<=10213||10214===t||10215===t||10216===t||10217===t||10218===t||10219===t||10220===t||10221===t||10222===t||10223===t||t>=10224&&t<=10239||t>=10240&&t<=10495||t>=10496&&t<=10626||10627===t||10628===t||10629===t||10630===t||10631===t||10632===t||10633===t||10634===t||10635===t||10636===t||10637===t||10638===t||10639===t||10640===t||10641===t||10642===t||10643===t||10644===t||10645===t||10646===t||10647===t||10648===t||t>=10649&&t<=10711||10712===t||10713===t||10714===t||10715===t||t>=10716&&t<=10747||10748===t||10749===t||t>=10750&&t<=11007||t>=11008&&t<=11055||t>=11056&&t<=11076||t>=11077&&t<=11078||t>=11079&&t<=11084||t>=11085&&t<=11123||t>=11124&&t<=11125||t>=11126&&t<=11157||11158===t||t>=11159&&t<=11263||t>=11776&&t<=11777||11778===t||11779===t||11780===t||11781===t||t>=11782&&t<=11784||11785===t||11786===t||11787===t||11788===t||11789===t||t>=11790&&t<=11798||11799===t||t>=11800&&t<=11801||11802===t||11803===t||11804===t||11805===t||t>=11806&&t<=11807||11808===t||11809===t||11810===t||11811===t||11812===t||11813===t||11814===t||11815===t||11816===t||11817===t||t>=11818&&t<=11822||11823===t||t>=11824&&t<=11833||t>=11834&&t<=11835||t>=11836&&t<=11839||11840===t||11841===t||11842===t||t>=11843&&t<=11855||t>=11856&&t<=11857||11858===t||t>=11859&&t<=11903||t>=12289&&t<=12291||12296===t||12297===t||12298===t||12299===t||12300===t||12301===t||12302===t||12303===t||12304===t||12305===t||t>=12306&&t<=12307||12308===t||12309===t||12310===t||12311===t||12312===t||12313===t||12314===t||12315===t||12316===t||12317===t||t>=12318&&t<=12319||12320===t||12336===t||64830===t||64831===t||t>=65093&&t<=65094}function oe(t){t.forEach((function(t){if(delete t.location,ut(t)||ct(t))for(var e in t.options)delete t.options[e].location,oe(t.options[e].value);else ot(t)&&ft(t.style)||(lt(t)||ht(t))&>(t.style)?delete t.style.location:dt(t)&&oe(t.children)}))}function le(t,e){void 0===e&&(e={}),e=(0,nt.__assign)({shouldParseSkeletons:!0,requiresOtherClause:!0},e);var i=new ee(t,e).parse();if(i.err){var r=SyntaxError(K[i.err.kind]);throw r.location=i.err.location,r.originalMessage=i.err.message,r}return(null==e?void 0:e.captureLocation)||oe(i.val),i.val}function he(t,e){var i=e&&e.cache?e.cache:_e,r=e&&e.serializer?e.serializer:Ae;return(e&&e.strategy?e.strategy:fe)(t,{cache:i,serializer:r})}function ue(t){return null==t||"number"==typeof t||"boolean"==typeof t}function ce(t,e,i,r){var n=ue(r)?r:i(r),a=e.get(n);return void 0===a&&(a=t.call(this,r),e.set(n,a)),a}function pe(t,e,i){var r=Array.prototype.slice.call(arguments,3),n=i(r),a=e.get(n);return void 0===a&&(a=t.apply(this,r),e.set(n,a)),a}function de(t,e,i,r,n){return i.bind(e,t,r,n)}function fe(t,e){return de(t,this,1===t.length?ce:pe,e.cache.create(),e.serializer)}function ge(t,e){return de(t,this,pe,e.cache.create(),e.serializer)}function me(t,e){return de(t,this,ce,e.cache.create(),e.serializer)}var Ae=function(){return JSON.stringify(arguments)};function ve(){this.cache=Object.create(null)}ve.prototype.get=function(t){return this.cache[t]},ve.prototype.set=function(t,e){this.cache[t]=e};var ye,_e={create:function(){return new ve}},be={variadic:ge,monadic:me};(function(t){t.MISSING_VALUE="MISSING_VALUE",t.INVALID_VALUE="INVALID_VALUE",t.MISSING_INTL_API="MISSING_INTL_API"})(ye||(ye={}));var xe,Te=function(t){function e(e,i,r){var n=t.call(this,e)||this;return n.code=i,n.originalMessage=r,n}return(0,nt.__extends)(e,t),e.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},e}(Error),Ee=function(t){function e(e,i,r,n){return t.call(this,'Invalid values for "'.concat(e,'": "').concat(i,'". Options are "').concat(Object.keys(r).join('", "'),'"'),ye.INVALID_VALUE,n)||this}return(0,nt.__extends)(e,t),e}(Te),Se=function(t){function e(e,i,r){return t.call(this,'Value for "'.concat(e,'" must be of type ').concat(i),ye.INVALID_VALUE,r)||this}return(0,nt.__extends)(e,t),e}(Te),we=function(t){function e(e,i){return t.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(i,'"'),ye.MISSING_VALUE,i)||this}return(0,nt.__extends)(e,t),e}(Te);function Pe(t){return t.length<2?t:t.reduce((function(t,e){var i=t[t.length-1];return i&&i.type===xe.literal&&e.type===xe.literal?i.value+=e.value:t.push(e),t}),[])}function Ie(t){return"function"==typeof t}function Re(t,e,i,r,n,a,s){if(1===t.length&&at(t[0]))return[{type:xe.literal,value:t[0].value}];for(var o=[],l=0,h=t;l0?new Intl.Locale(e[0]):new Intl.Locale("string"==typeof t?t:t[0])},t.__parse=le,t.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},t}();var Le,ke,Ne;function Fe(t){return t.type===ke.number}function Ge(t){return t.type===ke.date}function Ue(t){return t.type===ke.time}function He(t){return t.type===ke.select}function Xe(t){return t.type===ke.plural}function je(t){return t.type===ke.tag}function We(t){return!(!t||"object"!=typeof t||t.type!==Ne.number)}function Ve(t){return!(!t||"object"!=typeof t||t.type!==Ne.dateTime)}(function(t){t[t.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",t[t.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",t[t.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",t[t.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",t[t.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",t[t.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",t[t.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",t[t.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",t[t.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",t[t.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",t[t.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",t[t.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",t[t.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",t[t.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",t[t.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",t[t.INVALID_TAG=23]="INVALID_TAG",t[t.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",t[t.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",t[t.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(Le||(Le={})),function(t){t[t.literal=0]="literal",t[t.argument=1]="argument",t[t.number=2]="number",t[t.date=3]="date",t[t.time=4]="time",t[t.select=5]="select",t[t.plural=6]="plural",t[t.pound=7]="pound",t[t.tag=8]="tag"}(ke||(ke={})),function(t){t[t.number=0]="number",t[t.dateTime=1]="dateTime"}(Ne||(Ne={}));var Ye=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,ze=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function qe(t){var e={};return t.replace(ze,(function(t){var i=t.length;switch(t[0]){case"G":e.era=4===i?"long":5===i?"narrow":"short";break;case"y":e.year=2===i?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":e.month=["numeric","2-digit","short","long","narrow"][i-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":e.day=["numeric","2-digit"][i-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":e.weekday=4===i?"long":5===i?"narrow":"short";break;case"e":if(i<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][i-4];break;case"c":if(i<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][i-4];break;case"a":e.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":e.hourCycle="h12",e.hour=["numeric","2-digit"][i-1];break;case"H":e.hourCycle="h23",e.hour=["numeric","2-digit"][i-1];break;case"K":e.hourCycle="h11",e.hour=["numeric","2-digit"][i-1];break;case"k":e.hourCycle="h24",e.hour=["numeric","2-digit"][i-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":e.minute=["numeric","2-digit"][i-1];break;case"s":e.second=["numeric","2-digit"][i-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":e.timeZoneName=i<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),e}var Qe=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Ze(t){if(0===t.length)throw new Error("Number skeleton cannot be empty");for(var e=t.split(Qe).filter((function(t){return t.length>0})),i=[],r=0,n=e;r1)throw new RangeError("integer-width stems only accept a single optional option");n.options[0].replace(ti,(function(t,i,r,n,a,s){if(i)e.minimumIntegerDigits=r.length;else{if(n&&a)throw new Error("We currently do not support maximum integer digits");if(s)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(ei.test(n.stem))e.minimumIntegerDigits=n.stem.length;else if(Je.test(n.stem)){if(n.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");n.stem.replace(Je,(function(t,i,r,n,a,s){return"*"===r?e.minimumFractionDigits=i.length:n&&"#"===n[0]?e.maximumFractionDigits=n.length:a&&s?(e.minimumFractionDigits=a.length,e.maximumFractionDigits=a.length+s.length):(e.minimumFractionDigits=i.length,e.maximumFractionDigits=i.length),""}));var a=n.options[0];"w"===a?e=(0,nt.__assign)((0,nt.__assign)({},e),{trailingZeroDisplay:"stripIfInteger"}):a&&(e=(0,nt.__assign)((0,nt.__assign)({},e),ii(a)))}else if($e.test(n.stem))e=(0,nt.__assign)((0,nt.__assign)({},e),ii(n.stem));else{var s=ri(n.stem);s&&(e=(0,nt.__assign)((0,nt.__assign)({},e),s));var o=ni(n.stem);o&&(e=(0,nt.__assign)((0,nt.__assign)({},e),o))}}return e}var oi,li={"001":["H","h"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["H","h","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["H","hB","h","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["H","h","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["H","hB","h","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["H","h","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["H","h","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["H","h","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["H","h","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["H","hB","h","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["H","h","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["H","h","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["H","h","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function hi(t,e){for(var i="",r=0;r>1),l="a",h=ui(e);for("H"!=h&&"k"!=h||(o=0);o-- >0;)i+=l;for(;s-- >0;)i=h+i}else i+="J"===n?"H":n}return i}function ui(t){var e=t.hourCycle;if(void 0===e&&t.hourCycles&&t.hourCycles.length&&(e=t.hourCycles[0]),e)switch(e){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var i,r=t.language;return"root"!==r&&(i=t.maximize().region),(li[i||""]||li[r||""]||li["".concat(r,"-001")]||li["001"])[0]}var ci=new RegExp("^".concat(Ye.source,"*")),pi=new RegExp("".concat(Ye.source,"*$"));function di(t,e){return{start:t,end:e}}var fi=!!String.prototype.startsWith&&"_a".startsWith("a",1),gi=!!String.fromCodePoint,mi=!!Object.fromEntries,Ai=!!String.prototype.codePointAt,vi=!!String.prototype.trimStart,yi=!!String.prototype.trimEnd,_i=!!Number.isSafeInteger?Number.isSafeInteger:function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},bi=!0;try{bi="a"===(null===(oi=Ri("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===oi?void 0:oi[0])}catch(Va){bi=!1}var xi,Ti=fi?function(t,e,i){return t.startsWith(e,i)}:function(t,e,i){return t.slice(i,i+e.length)===e},Ei=gi?String.fromCodePoint:function(){for(var t=[],e=0;ea;){if((i=t[a++])>1114111)throw RangeError(i+" is not a valid code point");r+=i<65536?String.fromCharCode(i):String.fromCharCode(55296+((i-=65536)>>10),i%1024+56320)}return r},Si=mi?Object.fromEntries:function(t){for(var e={},i=0,r=t;i=i)){var r,n=t.charCodeAt(e);return n<55296||n>56319||e+1===i||(r=t.charCodeAt(e+1))<56320||r>57343?n:r-56320+(n-55296<<10)+65536}},Pi=vi?function(t){return t.trimStart()}:function(t){return t.replace(ci,"")},Ii=yi?function(t){return t.trimEnd()}:function(t){return t.replace(pi,"")};function Ri(t,e){return new RegExp(t,e)}if(bi){var Ci=Ri("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");xi=function(t,e){var i;return Ci.lastIndex=e,null!==(i=Ci.exec(t)[1])&&void 0!==i?i:""}}else xi=function(t,e){for(var i=[];;){var r=wi(t,e);if(void 0===r||Li(r)||ki(r))break;i.push(r),e+=r>=65536?2:1}return Ei.apply(void 0,i)};var Oi=function(){function t(t,e){void 0===e&&(e={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!e.ignoreTag,this.locale=e.locale,this.requiresOtherClause=!!e.requiresOtherClause,this.shouldParseSkeletons=!!e.shouldParseSkeletons}return t.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},t.prototype.parseMessage=function(t,e,i){for(var r=[];!this.isEOF();){var n=this.char();if(123===n){if((a=this.parseArgument(t,i)).err)return a;r.push(a.val)}else{if(125===n&&t>0)break;if(35!==n||"plural"!==e&&"selectordinal"!==e){if(60===n&&!this.ignoreTag&&47===this.peek()){if(i)break;return this.error(Le.UNMATCHED_CLOSING_TAG,di(this.clonePosition(),this.clonePosition()))}if(60===n&&!this.ignoreTag&&Mi(this.peek()||0)){if((a=this.parseTag(t,e)).err)return a;r.push(a.val)}else{var a;if((a=this.parseLiteral(t,e)).err)return a;r.push(a.val)}}else{var s=this.clonePosition();this.bump(),r.push({type:ke.pound,location:di(s,this.clonePosition())})}}}return{val:r,err:null}},t.prototype.parseTag=function(t,e){var i=this.clonePosition();this.bump();var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:ke.literal,value:"<".concat(r,"/>"),location:di(i,this.clonePosition())},err:null};if(this.bumpIf(">")){var n=this.parseMessage(t+1,e,!0);if(n.err)return n;var a=n.val,s=this.clonePosition();if(this.bumpIf("")?{val:{type:ke.tag,value:r,children:a,location:di(i,this.clonePosition())},err:null}:this.error(Le.INVALID_TAG,di(s,this.clonePosition())))}return this.error(Le.UNCLOSED_TAG,di(i,this.clonePosition()))}return this.error(Le.INVALID_TAG,di(i,this.clonePosition()))},t.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&Di(this.char());)this.bump();return this.message.slice(t,this.offset())},t.prototype.parseLiteral=function(t,e){for(var i=this.clonePosition(),r="";;){var n=this.tryParseQuote(e);if(n)r+=n;else{var a=this.tryParseUnquoted(t,e);if(a)r+=a;else{var s=this.tryParseLeftAngleBracket();if(!s)break;r+=s}}}var o=di(i,this.clonePosition());return{val:{type:ke.literal,value:r,location:o},err:null}},t.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&Bi(this.peek()||0)?null:(this.bump(),"<")},t.prototype.tryParseQuote=function(t){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===t||"selectordinal"===t)break;return null;default:return null}this.bump();var e=[this.char()];for(this.bump();!this.isEOF();){var i=this.char();if(39===i){if(39!==this.peek()){this.bump();break}e.push(39),this.bump()}else e.push(i);this.bump()}return Ei.apply(void 0,e)},t.prototype.tryParseUnquoted=function(t,e){if(this.isEOF())return null;var i=this.char();return 60===i||123===i||35===i&&("plural"===e||"selectordinal"===e)||125===i&&t>0?null:(this.bump(),Ei(i))},t.prototype.parseArgument=function(t,e){var i=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(Le.EXPECT_ARGUMENT_CLOSING_BRACE,di(i,this.clonePosition()));if(125===this.char())return this.bump(),this.error(Le.EMPTY_ARGUMENT,di(i,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(Le.MALFORMED_ARGUMENT,di(i,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Le.EXPECT_ARGUMENT_CLOSING_BRACE,di(i,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:ke.argument,value:r,location:di(i,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(Le.EXPECT_ARGUMENT_CLOSING_BRACE,di(i,this.clonePosition())):this.parseArgumentOptions(t,e,r,i);default:return this.error(Le.MALFORMED_ARGUMENT,di(i,this.clonePosition()))}},t.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),e=this.offset(),i=xi(this.message,e),r=e+i.length;return this.bumpTo(r),{value:i,location:di(t,this.clonePosition())}},t.prototype.parseArgumentOptions=function(t,e,i,r){var n,a=this.clonePosition(),s=this.parseIdentifierIfPossible().value,o=this.clonePosition();switch(s){case"":return this.error(Le.EXPECT_ARGUMENT_TYPE,di(a,o));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var h=this.clonePosition();if((A=this.parseSimpleArgStyleIfPossible()).err)return A;if(0===(d=Ii(A.val)).length)return this.error(Le.EXPECT_ARGUMENT_STYLE,di(this.clonePosition(),this.clonePosition()));l={style:d,styleLocation:di(h,this.clonePosition())}}if((v=this.tryParseArgumentClose(r)).err)return v;var u=di(r,this.clonePosition());if(l&&Ti(null==l?void 0:l.style,"::",0)){var c=Pi(l.style.slice(2));if("number"===s)return(A=this.parseNumberSkeletonFromString(c,l.styleLocation)).err?A:{val:{type:ke.number,value:i,location:u,style:A.val},err:null};if(0===c.length)return this.error(Le.EXPECT_DATE_TIME_SKELETON,u);var p=c;this.locale&&(p=hi(c,this.locale));var d={type:Ne.dateTime,pattern:p,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?qe(p):{}};return{val:{type:"date"===s?ke.date:ke.time,value:i,location:u,style:d},err:null}}return{val:{type:"number"===s?ke.number:"date"===s?ke.date:ke.time,value:i,location:u,style:null!==(n=null==l?void 0:l.style)&&void 0!==n?n:null},err:null};case"plural":case"selectordinal":case"select":var f=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(Le.EXPECT_SELECT_ARGUMENT_OPTIONS,di(f,(0,nt.__assign)({},f)));this.bumpSpace();var g=this.parseIdentifierIfPossible(),m=0;if("select"!==s&&"offset"===g.value){if(!this.bumpIf(":"))return this.error(Le.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,di(this.clonePosition(),this.clonePosition()));var A;if(this.bumpSpace(),(A=this.tryParseDecimalInteger(Le.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Le.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return A;this.bumpSpace(),g=this.parseIdentifierIfPossible(),m=A.val}var v,y=this.tryParsePluralOrSelectOptions(t,s,e,g);if(y.err)return y;if((v=this.tryParseArgumentClose(r)).err)return v;var _=di(r,this.clonePosition());return"select"===s?{val:{type:ke.select,value:i,options:Si(y.val),location:_},err:null}:{val:{type:ke.plural,value:i,options:Si(y.val),offset:m,pluralType:"plural"===s?"cardinal":"ordinal",location:_},err:null};default:return this.error(Le.INVALID_ARGUMENT_TYPE,di(a,o))}},t.prototype.tryParseArgumentClose=function(t){return this.isEOF()||125!==this.char()?this.error(Le.EXPECT_ARGUMENT_CLOSING_BRACE,di(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},t.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,e=this.clonePosition();!this.isEOF();){switch(this.char()){case 39:this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(Le.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,di(i,this.clonePosition()));this.bump();break;case 123:t+=1,this.bump();break;case 125:if(!(t>0))return{val:this.message.slice(e.offset,this.offset()),err:null};t-=1;break;default:this.bump()}}return{val:this.message.slice(e.offset,this.offset()),err:null}},t.prototype.parseNumberSkeletonFromString=function(t,e){var i=[];try{i=Ze(t)}catch(Ir){return this.error(Le.INVALID_NUMBER_SKELETON,e)}return{val:{type:Ne.number,tokens:i,location:e,parsedOptions:this.shouldParseSkeletons?si(i):{}},err:null}},t.prototype.tryParsePluralOrSelectOptions=function(t,e,i,r){for(var n,a=!1,s=[],o=new Set,l=r.value,h=r.location;;){if(0===l.length){var u=this.clonePosition();if("select"===e||!this.bumpIf("="))break;var c=this.tryParseDecimalInteger(Le.EXPECT_PLURAL_ARGUMENT_SELECTOR,Le.INVALID_PLURAL_ARGUMENT_SELECTOR);if(c.err)return c;h=di(u,this.clonePosition()),l=this.message.slice(u.offset,this.offset())}if(o.has(l))return this.error("select"===e?Le.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Le.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,h);"other"===l&&(a=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===e?Le.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Le.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,di(this.clonePosition(),this.clonePosition()));var d=this.parseMessage(t+1,e,i);if(d.err)return d;var f=this.tryParseArgumentClose(p);if(f.err)return f;s.push([l,{value:d.val,location:di(p,this.clonePosition())}]),o.add(l),this.bumpSpace(),l=(n=this.parseIdentifierIfPossible()).value,h=n.location}return 0===s.length?this.error("select"===e?Le.EXPECT_SELECT_ARGUMENT_SELECTOR:Le.EXPECT_PLURAL_ARGUMENT_SELECTOR,di(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(Le.MISSING_OTHER_CLAUSE,di(this.clonePosition(),this.clonePosition())):{val:s,err:null}},t.prototype.tryParseDecimalInteger=function(t,e){var i=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(i=-1);for(var n=!1,a=0;!this.isEOF();){var s=this.char();if(!(s>=48&&s<=57))break;n=!0,a=10*a+(s-48),this.bump()}var o=di(r,this.clonePosition());return n?_i(a*=i)?{val:a,err:null}:this.error(e,o):this.error(t,o)},t.prototype.offset=function(){return this.position.offset},t.prototype.isEOF=function(){return this.offset()===this.message.length},t.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},t.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var e=wi(this.message,t);if(void 0===e)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return e},t.prototype.error=function(t,e){return{val:null,err:{kind:t,message:this.message,location:e}}},t.prototype.bump=function(){if(!this.isEOF()){var t=this.char();10===t?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},t.prototype.bumpIf=function(t){if(Ti(this.message,t,this.offset())){for(var e=0;e=0?(this.bumpTo(i),!0):(this.bumpTo(this.message.length),!1)},t.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var e=this.offset();if(e===t)break;if(e>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},t.prototype.bumpSpace=function(){for(;!this.isEOF()&&Li(this.char());)this.bump()},t.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),e=this.offset(),i=this.message.charCodeAt(e+(t>=65536?2:1));return null!=i?i:null},t}();function Mi(t){return t>=97&&t<=122||t>=65&&t<=90}function Bi(t){return Mi(t)||47===t}function Di(t){return 45===t||46===t||t>=48&&t<=57||95===t||t>=97&&t<=122||t>=65&&t<=90||183==t||t>=192&&t<=214||t>=216&&t<=246||t>=248&&t<=893||t>=895&&t<=8191||t>=8204&&t<=8205||t>=8255&&t<=8256||t>=8304&&t<=8591||t>=11264&&t<=12271||t>=12289&&t<=55295||t>=63744&&t<=64975||t>=65008&&t<=65533||t>=65536&&t<=983039}function Li(t){return t>=9&&t<=13||32===t||133===t||t>=8206&&t<=8207||8232===t||8233===t}function ki(t){return t>=33&&t<=35||36===t||t>=37&&t<=39||40===t||41===t||42===t||43===t||44===t||45===t||t>=46&&t<=47||t>=58&&t<=59||t>=60&&t<=62||t>=63&&t<=64||91===t||92===t||93===t||94===t||96===t||123===t||124===t||125===t||126===t||161===t||t>=162&&t<=165||166===t||167===t||169===t||171===t||172===t||174===t||176===t||177===t||182===t||187===t||191===t||215===t||247===t||t>=8208&&t<=8213||t>=8214&&t<=8215||8216===t||8217===t||8218===t||t>=8219&&t<=8220||8221===t||8222===t||8223===t||t>=8224&&t<=8231||t>=8240&&t<=8248||8249===t||8250===t||t>=8251&&t<=8254||t>=8257&&t<=8259||8260===t||8261===t||8262===t||t>=8263&&t<=8273||8274===t||8275===t||t>=8277&&t<=8286||t>=8592&&t<=8596||t>=8597&&t<=8601||t>=8602&&t<=8603||t>=8604&&t<=8607||8608===t||t>=8609&&t<=8610||8611===t||t>=8612&&t<=8613||8614===t||t>=8615&&t<=8621||8622===t||t>=8623&&t<=8653||t>=8654&&t<=8655||t>=8656&&t<=8657||8658===t||8659===t||8660===t||t>=8661&&t<=8691||t>=8692&&t<=8959||t>=8960&&t<=8967||8968===t||8969===t||8970===t||8971===t||t>=8972&&t<=8991||t>=8992&&t<=8993||t>=8994&&t<=9e3||9001===t||9002===t||t>=9003&&t<=9083||9084===t||t>=9085&&t<=9114||t>=9115&&t<=9139||t>=9140&&t<=9179||t>=9180&&t<=9185||t>=9186&&t<=9254||t>=9255&&t<=9279||t>=9280&&t<=9290||t>=9291&&t<=9311||t>=9472&&t<=9654||9655===t||t>=9656&&t<=9664||9665===t||t>=9666&&t<=9719||t>=9720&&t<=9727||t>=9728&&t<=9838||9839===t||t>=9840&&t<=10087||10088===t||10089===t||10090===t||10091===t||10092===t||10093===t||10094===t||10095===t||10096===t||10097===t||10098===t||10099===t||10100===t||10101===t||t>=10132&&t<=10175||t>=10176&&t<=10180||10181===t||10182===t||t>=10183&&t<=10213||10214===t||10215===t||10216===t||10217===t||10218===t||10219===t||10220===t||10221===t||10222===t||10223===t||t>=10224&&t<=10239||t>=10240&&t<=10495||t>=10496&&t<=10626||10627===t||10628===t||10629===t||10630===t||10631===t||10632===t||10633===t||10634===t||10635===t||10636===t||10637===t||10638===t||10639===t||10640===t||10641===t||10642===t||10643===t||10644===t||10645===t||10646===t||10647===t||10648===t||t>=10649&&t<=10711||10712===t||10713===t||10714===t||10715===t||t>=10716&&t<=10747||10748===t||10749===t||t>=10750&&t<=11007||t>=11008&&t<=11055||t>=11056&&t<=11076||t>=11077&&t<=11078||t>=11079&&t<=11084||t>=11085&&t<=11123||t>=11124&&t<=11125||t>=11126&&t<=11157||11158===t||t>=11159&&t<=11263||t>=11776&&t<=11777||11778===t||11779===t||11780===t||11781===t||t>=11782&&t<=11784||11785===t||11786===t||11787===t||11788===t||11789===t||t>=11790&&t<=11798||11799===t||t>=11800&&t<=11801||11802===t||11803===t||11804===t||11805===t||t>=11806&&t<=11807||11808===t||11809===t||11810===t||11811===t||11812===t||11813===t||11814===t||11815===t||11816===t||11817===t||t>=11818&&t<=11822||11823===t||t>=11824&&t<=11833||t>=11834&&t<=11835||t>=11836&&t<=11839||11840===t||11841===t||11842===t||t>=11843&&t<=11855||t>=11856&&t<=11857||11858===t||t>=11859&&t<=11903||t>=12289&&t<=12291||12296===t||12297===t||12298===t||12299===t||12300===t||12301===t||12302===t||12303===t||12304===t||12305===t||t>=12306&&t<=12307||12308===t||12309===t||12310===t||12311===t||12312===t||12313===t||12314===t||12315===t||12316===t||12317===t||t>=12318&&t<=12319||12320===t||12336===t||64830===t||64831===t||t>=65093&&t<=65094}function Ni(t){t.forEach((function(t){if(delete t.location,He(t)||Xe(t))for(var e in t.options)delete t.options[e].location,Ni(t.options[e].value);else Fe(t)&&We(t.style)||(Ge(t)||Ue(t))&&Ve(t.style)?delete t.style.location:je(t)&&Ni(t.children)}))}function Fi(t,e){void 0===e&&(e={}),e=(0,nt.__assign)({shouldParseSkeletons:!0,requiresOtherClause:!0},e);var i=new Oi(t,e).parse();if(i.err){var r=SyntaxError(Le[i.err.kind]);throw r.location=i.err.location,r.originalMessage=i.err.message,r}return(null==e?void 0:e.captureLocation)||Ni(i.val),i.val}var Gi=i(4497),Ui=i.n(Gi);async function Hi(t,e){(0,it.shouldPolyfill)()&&await Promise.all([i.e(553),i.e(182)]).then(i.bind(i,2182)),(0,rt.shouldPolyfill)()&&await Promise.all([i.e(553),i.e(31)]).then(i.bind(i,7031));var r=tt.A.getCurrentLanguageId().split("-")[0];(0,et.shouldPolyfill)(r)&&(await i.e(854).then(i.bind(i,1854)),/bg|de|el|en|es|fi|fr|id|it|ja|ko|nl|nn|pl|pt|ro|ru|sv|th|tr|vi|zh$/.test(r)?await i(2679)(`./${r}`):await i.e(412).then(i.t.bind(i,6412,23))),Xi(t,e)}function Xi(t,e){var i={getNumberFormat:Ui()(((t,e)=>new Intl.NumberFormat(t,e))),getDateTimeFormat:Ui()(((t,e)=>new Intl.DateTimeFormat(t,e))),getPluralRules:Ui()(((t,e)=>new Intl.PluralRules(t,e)))},r=Ui()(e);tt.A.messageProcessor=(e,n,a)=>{var s="object"==typeof n&&null!==n?n:{count:isNaN(n)?10:n};return new t(r(e),tt.A.getCurrentLanguageId(),void 0,{formatters:i}).format(s)}}Hi(De,Fi);var ji=i(9649),Wi=i(4894),Vi=i(3800),Yi=i(4381),zi=i(4051),qi=i(4418),Qi=i(1233),Zi=60;class Ki{init(){s.A.pixiApp.renderer.textureGC&&(s.A.pixiApp.renderer.textureGC.mode=Qi.GC_MODES.AUTO,s.A.pixiApp.renderer.textureGC.maxIdle=Zi,s.A.pixiApp.renderer.textureGC.run())}}const Ji=new Ki;var $i=i(2449),tr=i.n($i),er=i(230);s.A.isMobile.any||(er.projectDesc.screenOrientation="landscape");class ir extends ji.A{init(){if(super.init(),Ji.init(),location.href.includes("enableSeleniumInterface")&&i.e(338).then(i.bind(i,5338)).then((t=>{t.default(s.A)})),s.A.isMobile.any){var t=new(tr()),e=0;function r(){var i=Date.now();i-4e3>e&&(e=i,t.enable())}function n(){s.A.addOnClickOnce(r)}document.addEventListener("touchend",n),document.addEventListener("click",n)}}onShow(){var t=s.A.isMobile.any?"main-mobile":"main-desktop";s.A.showScene(r.A.hasScene(t)?t:"main");var e=s.A.settings.getItem("isIntroShowedBefore");qi.A.isReplayMode()||!r.A.hasScene("intro")||e&&!s.A.Sound.isSoundsLockedByBrowser||(s.A.showScene("intro"),s.A.settings.setItem("isIntroShowedBefore",!0)),s.A.casinoOptions.show_paytable&&r.A.hasScene("paytable")&&s.A.showScene("paytable")}}var rr,nr=i(684),ar=i(9401);class sr extends n.A{init(){if(rr=s.A.pixiApp.renderer.plugins.interaction,super.init(),this.onStageDown=this.onStageDown.bind(this),this.handlerAdded=!1,this._insideContainers=[this],this.additionalContainers)for(var t of this.additionalContainers.split(",")){var e=(0,a.A)(t,this);this._insideContainers.push(e)}}onRemove(){super.onRemove(),this.removeHandler()}onStageDown(t){if(s.A.time-this.time>1)this.removeHandler();else if(t.target)for(var e=t.target;e;){if(this._insideContainers.indexOf(e)>=0)return;if(e===s.A.stage)return void this.fire();e=e.parent}else this.fire()}fire(){this.onClickOutside&&(0,u.A)(this.onClickOutside,this)}_onDisableByTrigger(){this.removeHandler()}update(){this.handlerAdded||(this.handlerAdded=!0,rr.on("pointerdown",this.onStageDown)),this.time=s.A.time,super.update()}removeHandler(){this.handlerAdded&&(this.handlerAdded=!1,rr.removeListener("pointerdown",this.onStageDown))}}class or extends Wi.A{init(){super.init(),this.phase=0}hide(){this.phase=0}update(){super.update(),this.y-=1,this.phase--,this.phase<=0?(this.alpha-=.05,this.alpha<=0&&this.remove()):this.alpha<.95&&(this.alpha+=.2)}static flyText(t,e=null,i=null,n="flytext",o=0,l){"number"!=typeof e&&(e=s.A.W/2),"number"!=typeof i&&(i=s.A.H/2);var h=r.A.loadPrefab(n);h.text=t,h.phase=6*t.length+o;var u=h.width/2+5;return es.A.W-u&&(e=s.A.W-u),h.alpha=0,h.x=e,h.y=i,l?"string"==typeof l&&(l=(0,a.A)(l,s.A.currentContainer)):l=s.A.currentContainer,l.addChild(h),h}}class lr extends n.A{init(){super.init(),this.needApplyLayout=!0,this._applyLayout()}update(){super.update(),this.needApplyLayout&&(this._applyLayout(),this.needApplyLayout=!1)}_applyLayout(){var t=s.A.W-2*this.marginLeftRight,e=this.marginLeftRight,i=s.A.isMobile.any?this.maxWidthMobile:this.maxWidthDesktop;i>0&&t>i&&(e+=Math.round((t-i)/2),t=i);var r=s.A.H-2*this.marginTopBottom;if(this.bgNineSlicePlanePath){var n=(0,a.A)(this.bgNineSlicePlanePath,this);this.x=e+this.containerMargin,this.y=this.marginTopBottom+this.containerMargin,n&&(n.x=-this.containerMargin,n.y=-this.containerMargin,n.width=t,n.height=r)}if(this.scrollBarPath){var o=(0,a.A)(this.scrollBarPath,this);o&&(o.x=t-this.containerMargin,o.height=r-this.scrollBarBottomMargin)}if(this.scrollLayerPath){var l=(0,a.A)(this.scrollLayerPath,this);if(l){var h=l.visibleArea;h.w=t-2*this.containerMargin,h.h=r-2*this.containerMargin}}}_onRenderResize(){this._applyLayout(),this.isMobileLandscape=!s.A.isPortrait&&s.A.isMobile.any}}var hr=560,ur=500,cr=30,pr=52,dr=174;class fr extends n.A{init(){super.init(),this.riskButtons=[s.A.currentScene.all["high-risk-btn"],s.A.currentScene.all["medium-risk-btn"],s.A.currentScene.all["low-risk-btn"]],this.lines=[],this.targets=[],this.tooltip=this.getChildByName("tooltip"),this.pinsContainer=this.getChildByName("pinsContainer"),this.hole=this.getChildByName("hole"),this.linesButtons=s.A.currentScene.findChildrenByName("lines-button"),this.hideTooltip(),this.colors={center:{r:this.centerR,g:this.centerG},low:{r:this.lowR,g:this.lowG},medium:{r:this.mediumR,g:this.mediumG},high:{r:this.highR,g:this.highG}}}update(){super.update(),this.targets.indexOf(ar.A.overredButton||ar.A.downedButton)>=0?this.showTooltip(ar.A.overredButton||ar.A.downedButton):s.A.isMobile.any&&!s.A.mouse.click||this.hideTooltip()}showTooltip(t){this.tooltip.target!==t&&(this.tooltip.visible=!0,this.tooltip.x=t.x,this.tooltip.x<-dr&&(this.tooltip.x=-dr),this.tooltip.x>dr&&(this.tooltip.x=dr),this.tooltip.profit=t.payout*s.A.currentScene.getBet(),this.tooltip.chance=t.chance,this.tooltip.getChildByName("pointer").x=t.x-this.tooltip.x)}hideTooltip(){this.tooltip.visible=!1,this.tooltip.target=null}initializePaytable(){this.setRiskMode(s.A.settings.getItem("riskMode","low")),this.setLinesCount(s.A.settings.getItem("linesCount",8))}setRiskMode(t){for(var e of(this.riskMode=t,s.A.settings.setItem("riskMode",t),this._applyPaytable(),this.riskButtons))e.name.startsWith(t)?e.disable():e.enable()}setLinesCount(t){for(var e of(this._releaseTable(),this.linesCount=t,s.A.settings.setItem("linesCount",t),this.linesButtons)){var i=e.getChildByName("label");i.text==t?(e.disable(),i.style.fill="#1e4e79"):(e.enable(),i.style.fill="#c6d6e3")}this._generateTable()}launchBall(){this.ballWaitingPath=r.A.loadPrefab("ball"),this.ballWaitingPath.setPinsDistance(this.pinsDistance,this.pinRadius,this),this.getChildByName("ballsContainer").addChildAt(this.ballWaitingPath,0)}setBallData(t){var e=this.ballWaitingPath.ballId;return this.ballWaitingPath.setBallData(t),this.ballWaitingPath=null,e}onRemove(){super.onRemove(),this._releaseTable()}_generateTable(){var t=ur/(this.linesCount+1),e=t,i=(hr-e-cr)/(this.linesCount-.5);this.pinsDistance=t,this.pinRadius=Math.max(.5,Math.min(1,.02*t));var n=Z.getBallSize(this.pinsDistance,this.pinRadius);this.hole.scale.x=n,this.hole.scale.y=n;for(var a=0;a0;l--){var h=r.A.loadPrefab("pin");h.x=Math.round(o),h.scale.x=this.pinRadius,h.scale.y=this.pinRadius,o+=t,s.addChild(h)}this.lines.push(s),this.pinsContainer.addChild(s)}for(var u=Math.min(1,t/pr),c=-(ur-pr*u)/2,p=this.linesCount;p>=0;p--){var d=r.A.loadPrefab("ball-target");d.x=Math.round(c),c+=t,d.y=hr,d.scale.x=u,d.scale.y=u,this.pinsContainer.addChild(d),this.targets.push(d)}this._applyPaytable()}_applyPaytable(){for(var t=this.targets.length-1;t>=0;t--){var e=this.targets[t],i=e.findChildByName("label"),r=e.findChildByName("body"),n=s.A.data.initData.paytable[this.linesCount],a=n[this.riskMode][t];i.text="×"+a,e.payout=a,e.chance=n.chances[t];var o=2*Math.abs(e.x)/ur;r.tintR=Math.min(255,this.colors[this.riskMode].r*o+this.colors.center.r*(1-o)),r.tintG=Math.min(255,this.colors[this.riskMode].g*o+this.colors.center.g*(1-o))}}_releaseTable(){for(;this.lines.length>0;)this.lines.pop().remove();for(;this.targets.length>0;)this.targets.pop().remove()}}var gr=i(4319),mr=null,Ar=1;function vr(){mr||(mr=s.A.pixiApp.view.getBoundingClientRect(),Ar=mr.width/s.A.W)}class yr extends o.A{init(){this.bouncingBounds=!1,super.init(),this.currentHtmlScale=0,this.currentHtmlOpacity=0,this.interactive=!0,this._overlayIntervalUpdate=this._overlayIntervalUpdate.bind(this),this._scripts=[]}onRemove(){super.onRemove(),this._releaseHtmlDiv()}update(){mr=null,vr(),this.handleScroll&&this._htmlDiv&&(this._htmlDiv.scrollHeight>this._htmlDiv.clientHeight?this.fullArea.h=Math.max(this.visibleArea.h,Math.floor(this._htmlDiv.scrollHeight/Ar-1)):this.fullArea.h=this.visibleArea.h),super.update(),this.latestTime=s.A.time,this.handleScroll&&this._htmlDiv&&(this._htmlDiv.scrollTop=-this.y*Ar,this.y=-Math.round(this._htmlDiv.scrollTop/Ar)),this._updateHtmlOpacity()}_updateHtmlOpacity(){var t=this.worldVisible&&this._htmlContent&&this.isCanBePressed&&Math.abs(this.worldTransform.a)>.1&&!this._isHtmlContentInvalidated?this.worldAlpha:0;this.currentHtmlOpacity=(0,gr.CR)(this.currentHtmlOpacity,t,this.fadeSpeed)}_overlayIntervalUpdate(){s.A.time-this.latestTime>1&&this._updateHtmlOpacity(),this.worldVisible||this._releaseHtmlDiv()}_releaseHtmlDiv(){this._htmlDiv&&(this._htmlDiv.remove(),this._htmlDiv=null,clearInterval(this._overlayInterval),this._isHtmlContentInvalidated=!1,this.currentHtmlScale=0,this.currentHtmlOpacity=0);for(var t=0;t<(null===(e=this._scripts)||void 0===e?void 0:e.length);t++){var e;this._scripts[t].remove()}this._scripts=[]}render(t){this._renderHtmlContainer(),super.render(t)}_renderCanvas(t){this._renderHtmlContainer(),super._renderCanvas(t)}_renderHtmlContainer(){if(this.currentHtmlOpacity>.001){if(!this._htmlDiv){this._htmlDiv=document.createElement("div"),this._htmlDiv.style.position="fixed",this._htmlDiv.innerHTML=this._htmlContent,this._htmlDiv.style.overflow="hidden",this._htmlDiv.style.zIndex=this.zIndex,this._htmlDiv.style.transformOrigin="0 0",this._applyClassName(),this.handleScroll&&(this._htmlDiv.style.pointerEvents="none",this._htmlDiv.style.overflow="auto");for(var t=0;t<(null===(e=this.domScripts)||void 0===e?void 0:e.length);t++){var e,i=this.domScripts[t],r=document.createElement("script");r.textContent=i,this._scripts.push(r)}document.body.appendChild(this._htmlDiv);for(var n=0;n.001&&(this.currentHtmlScale=this.worldTransform.a,this._htmlDiv.style.transform="scale("+(this.currentHtmlScale/s.A.stage.scale.x).toFixed(3)+")")}else this._releaseHtmlDiv()}_onRenderResize(){this._applyClassName()}_applyClassName(){this._htmlDiv&&(this._htmlDiv.className=this.className+(s.A.isPortrait?" portrait-":" landscape-")+this.className,this.handleScroll&&this._htmlDiv.classList.add("casino-modal-scroll"))}get innerHTML(){return this._htmlContent}set innerHTML(t){this._htmlContent!==t&&(this._isHtmlContentInvalidated=!!this._htmlDiv,this._htmlContent=t)}get domScripts(){return this._domScripts}set domScripts(t){this._domScripts!==t&&(this._domScripts=t)}}class _r extends D{setY(t,e=!1){this.yTo=t,e&&(this.y=t,this.gotoLabelRecursive("no-animation"))}update(){this.ySpeed+=.05*(this.yTo-this.y),this.ySpeed*=.74,super.update()}getData(){return this.data}setData(t){this.data=t,t.win>0?this.getChildByName("lose-bg").remove():(0===t.win&&(this.getChildByName("lose-bg").image="EMPTY"),this.getChildByName("win-bg").remove())}startRemoving(){this.gotoLabelRecursive("remove")}}class br extends n.A{static delay(t,e,i=s.A.currentContainer){if(!(e<=0)){var r=M.A.create(br);return r.delay=e,r.callback=t,i.addChild(r),r}t()}constructor(){super(),this.visible=!1}skip(){this.callback(),this.callback=null,this.remove()}update(){this.delay--,this.delay<1&&(this.callback(),this.remove())}}class xr extends n.A{constructor(){super(),this._removedChildren=[]}init(){super.init(),this.initialAlpha=this.alpha,this.initialScale=this.scale.x,this.initialX=this.x,this.initialY=this.y,this.qSpeed=0,this.triggering=!1,this._processedState=void 0,this.applyInstantly(),this.lastUpdateTime=s.A.time}getState(){return!!this.invert==!(0,a.A)(this.dataPath,this)}applyInstantly(){this.dataPath?this._state=this.getState():this._state=!!this.invert,this._state?this.q=0:this.q=1,this.qSpeed=0,this.updatePhase(),this.interactiveChildren=this._state||!this.isApplyInteractivity}show(){this._state=!0,this.interactiveChildren=!0,this.triggering=!0}set state(t){t?this.show():this.hide()}get state(){return this._state}hide(){this._state=!1,this.isApplyInteractivity&&(this.interactiveChildren=!1),this.triggering=!0,this.forAllChildren(Tr)}toggle(){this._state?this.hide():this.show()}updatePhase(){var t=this._state?0:1;if(1===this.pow||Math.abs(t-this.q)<.002&&Math.abs(this.qSpeed)<.002?(this.triggering=!1,this.q=t):(this.qSpeed+=(t-this.q)*this.pow,this.qSpeed*=this.damp,this.q+=this.qSpeed),this.alpha=this.initialAlpha+this.q*this.alphaShift,0!==this.scaleShift){var e=this.initialScale+this.q*this.scaleShift;this.scale.x=e,this.scale.y=e}this.visible=this.alpha>.015&&Math.abs(this.scale.x)>.0015,!this.visible&&!this._state&&this.initialAlpha+this.alphaShift<=.015&&(this.triggering=!1,this.q=t),0!==this.xShift&&(this.x=this.initialX+this.q*this.xShift),0!==this.yShift&&(this.y=this.initialY+this.q*this.yShift)}update(){if(this.dataPath){var t=this.getState();this._state!==t&&this.toggle()}this.triggering&&(this.updatePhase(),!this._state&&s.A.time-this.lastUpdateTime>1&&this.applyInstantly()),this.visible&&super.update(),this._processedState!==this._state&&(this._processedState=this._state,this._processedState?this.onEnable&&(0,u.A)(this.onEnable,this):this.onDisable&&(0,u.A)(this.onDisable,this)),this.lastUpdateTime=s.A.time}}var Tr=t=>{t._onDisableByTrigger&&t._onDisableByTrigger()},Er=i(9087);class Sr{static fetch(t,e,i="json",r){var n=Er.A.promise(((t,n)=>{fetch(e,r).then((t=>t[i]())).then(t).catch(n)}),t);return n.name="Request: "+e,n}}class wr extends n.A{constructor(){super(),this.onWheel=this.onWheel.bind(this)}onWheel(t){if(this.isCanBePressed){var e=0,i=s.A.mouseEventToGlobalXY(t);this.hitArea?(this.toLocal(i,void 0,i),this.hitArea.contains(i.x,i.y)&&(e=t.deltaY,t.stopPropagation(),t.preventDefault())):this.getBounds().contains(i.x,i.y)&&(e=t.deltaY,t.stopPropagation(),t.preventDefault()),e<0?this.canIncrease?this.increase():this.ySpeed=-1:e>0&&(this.canDecrease?this.decrease():this.ySpeed=1)}}init(){super.init(),this.currentInterval=0,this.showedVal=void 0,this.defaultValue=this.value,this.on("pointerdown",this.onDown),this.buttonMode=!0,this.cursor="ns-resize",this.dragging=!1,this.ySpeed=0,this._currentTextField=null,this._prevTextField=null,this.valuesList?this.setValuesList(this.valuesList.split(",").map((t=>parseFloat(t)))):this._values=null,this.resetValue(),document.addEventListener("wheel",this.onWheel,!0)}onRemove(){super.onRemove(),this._prevTextField=null,this._currentTextField=null,document.removeEventListener("wheel",this.onWheel,!0)}get canDecrease(){return this.value>this.min||this.wrapValue}get canIncrease(){return this.valuethis.min||this.wrapValue)&&this.isCanBePressed}get canIncreaseVisual(){return(this.valuen;){if(!this.canDecrease){this.startDragY=s.A.mouse.y;break}this.decrease(),o-=2*n,this.startDragY+=2*n}for(;o<-n;){if(!this.canIncrease){this.startDragY=s.A.mouse.y;break}this.increase(),o+=2*n,this.startDragY-=2*n}this.ySpeed+=.1*(s.A.mouse.y-this.prevDragY),this.prevDragY=s.A.mouse.y}else this.dragging=!1;this._currentTextField&&(this.ySpeed+=-.15*this._currentTextField.y,this.ySpeed*=.7,this._currentTextField.y+=this.ySpeed,this._currentTextField.alpha=1-Math.abs(this._currentTextField.y/this._currentTextField.height)),this._prevTextField&&(this._prevTextField.y+=this.ySpeed,this._prevTextField.alpha=1-this._currentTextField.alpha,Math.abs(this._prevTextField.y)>=this._prevTextField.height-4&&(this._prevTextField.remove(),this._prevTextField=null)),super.update()}onDown(){this.dragging=!0,this.prevDragY=s.A.mouse.y,this.startDragY=this.prevDragY}resetValue(){this.setValue(this.defaultValue)}increase(t){if(this._values){var e=this._values;this.wrapValue?this.setValue(e[(e.indexOf(this.value)+1)%e.length]):this.setValue(e[Math.min(e.indexOf(this.value)+1,e.length-1)])}else this.setValue(this.value+(t||this.step))}decrease(t){if(this._values){var e=this._values;this.wrapValue?this.setValue(e[(e.indexOf(this.value)-1)%e.length]):this.setValue(e[Math.max(e.indexOf(this.value)-1,0)])}else this.setValue(this.value-(t||this.step))}_modValue(t){var e=this.max-this.min+1;return((t-this.min)%e+e)%e+this.min}setValue(t){tthis.max&&(t=this.wrapValue?this._modValue(t):this.max),t!==this.value&&(this.dataPath&&(0,a.W)(this.dataPath,t,this),this.value=t,this.onChanged&&(0,u.A)(this.onChanged,this))}refreshNow(){this.currentInterval=0}}function Pr(t,e,i,r){return new(i||(i=Promise))((function(n,a){function s(t){try{l(r.next(t))}catch(t){a(t)}}function o(t){try{l(r.throw(t))}catch(t){a(t)}}function l(t){var e;t.done?n(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(s,o)}l((r=r.apply(t,e||[])).next())}))}function Ir(t,e){var i,r,n,a,s={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return a={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function o(a){return function(o){return function(a){if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,r&&(n=2&a[0]?r.return:a[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,a[1])).done)return n;switch(r=0,n&&(a=[2&a[0],n.value]),a[0]){case 0:case 1:n=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((n=(n=s.trys).length>0&&n[n.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!n||a[1]>n[0]&&a[1]-1?(Cr('UA "Edge" => assuming success'),[2,!0]):Wr(document.body,t)?(Cr("copyUsingTempSelection worked"),[2,!0]):function(t){var e=document.createElement("div");e.setAttribute("style","-webkit-user-select: text !important"),e.textContent="temporary element",document.body.appendChild(e);var i=Wr(e,t);return document.body.removeChild(e),i}(t)?(Cr("copyUsingTempElem worked"),[2,!0]):function(t){Cr("copyTextUsingDOM");var e=document.createElement("div");e.setAttribute("style","-webkit-user-select: text !important");var i=e;e.attachShadow&&(Cr("Using shadow DOM."),i=e.attachShadow({mode:"open"}));var r=document.createElement("span");r.innerText=t,i.appendChild(r),document.body.appendChild(e),Vr(r);var n=document.execCommand("copy");return Yr(),document.body.removeChild(e),n}(t["text/plain"])?(Cr("copyTextUsingDOM worked"),[2,!0]):[2,!1]}))}))}function qr(t){return Pr(this,void 0,void 0,(function(){return Ir(this,(function(e){if(Nr)return Cr("Using `navigator.clipboard.writeText()`."),[2,Nr(t)];if(!zr(function(t){var e={};return e["text/plain"]=t,e}(t)))throw new Error("writeText() failed");return[2]}))}))}(function(){function t(t,e){var i;for(var r in void 0===e&&(e={}),this.types=Object.keys(t),this._items={},t){var n=t[r];this._items[r]="string"==typeof n?Qr(r,n):n}this.presentationStyle=null!==(i=null==e?void 0:e.presentationStyle)&&void 0!==i?i:"unspecified"}t.prototype.getType=function(t){return Pr(this,void 0,void 0,(function(){return Ir(this,(function(e){return[2,this._items[t]]}))}))}})();function Qr(t,e){return new Blob([e],{type:t})}class Zr extends xr{get isItMobile(){return s.A.isMobile.any}init(){s.A.data.provability={clientSeed:[]},this.data=null;var t=this.findChildByName("client-seed-controls");this.clientSeedInputs=t.findChildrenByType(wr),this.slotLeftBorder=this.findChildByName("slot-left-border"),this.randomizeClientSeed(),super.init()}onRemove(){super.onRemove(),this.shiftForSpinTrigger=null,this.clientSeedInputs=null,this.slotLeftBorder=null}show(){super.show(),this._applyLayout(),this.isHidedForSpin=!1}hideProvabilityForSpin(){this.isItMobile?s.A.all.popupsLayer.hideAll():this.isHidedForSpin=!0}showProvabilityAfterSpin(){this.isItMobile?s.A.all.popupsLayer.showProvability():this.isHidedForSpin=!1}get isProvabilityEnabled(){return this.data}_applyTextToButton(t,e){var i=this.findChildByName(t);i.findChildByName("label").text=e,i instanceof ar.A&&(i.callback=()=>{this.copyTextToClipboard(e)})}copyTextToClipboard(t){qr(t).then((()=>{or.flyText((0,tt.A)("provability.copied_to_clipboard"),s.A.mouse.x,s.A.mouse.y-30,void 0,-90)}))}applyResult(t){t&&t.extra_data&&t.extra_data.provable_data&&(this.randomizeClientSeed(),this.data=t.extra_data.provable_data,this.isVerified=!1,this._applyTextToButton("next-game-hash-btn",this.data[0].hash),this.data[1]&&(this._applyTextToButton("last-game-hash-btn",this.data[1].hash),this._applyTextToButton("last-game-final-result-btn",this.data[1].result),this._applyTextToButton("last-game-result-btn",this.data[1].secret),this._applyTextToButton("last-game-client-seed",this.data[1].client_seed)))}randomizeClientSeed(){for(var t of(s.A.data.provability.clientSeed=[],this.clientSeedInputs))(0,a.W)(t.dataPath,Math.floor(t.min+Math.random()*(t.max-t.min)),t)}onVerifyClick(){Sr.fetch(this,s.A.casinoOptions.provable_fair.verify_url,"json",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({secret:this.data[1].secret,client_seed:this.data[1].client_seed})}).then((t=>{t&&(this.isVerified=!0,this.isVerificationSuccess=t.hash===this.data[1].hash)}))}_applyLayout(){var t=s.A.W,e=s.A.H,i=this.isItMobile&&!s.A.isPortrait;this.pow=this.isItMobile?1:.1,this.isItMobile||(t=Math.round(.5*e)-100);var r=this.findChildrenByName("orientation-trigger");for(var n of r)i?n.hide():n.show();this.findChildByName("provability-close-btn-container").x=t;var a=this.findChildByName("provability-background");a&&(a.pivot.x=100,a.width=t+100,a.height=e);var o,l=this.findChildByName("provability-container");l&&(l.x=Math.round(t/2),l.y=Math.round(e/2),o=i?Math.min((t-600)/800,e/600):this.isItMobile?Math.min(t/440,(e-310)/1080):Math.min(t/440,e/1080),l.scale.x=o,l.scale.y=o);var h=(0,tt.A)("provability.hash"),u=(0,tt.A)("provability.result"),c=(0,tt.A)("provability.secret"),p=this.findChildByName("hash-result-secret-label"),d=this.findChildByName("hash-result-secret-label2"),f=this.findChildByName("result-secret-label");p.text=d.text=h+" ("+u+" + "+c+")",f.text=u+" + "+c;var g=this.findChildByName("shift-for-spin");if(g&&!this.isItMobile&&a){var m=s.A.W/2-650;g.xShift=Math.min(m-(a.width-a.pivot.x),0),g.state=!!g.state}}static getCurrentClientSeed(){return Number(s.A.data.provability.clientSeed.join(""))||0}_onRenderResize(){this._applyLayout()}}var Kr=i(6113),Jr=!1,$r="application/json",tn={};class en{constructor(t){this.setCasinoOptions(t)}setCasinoOptions(t){tn={},this.currentGameId=t.identifier,this.apiUrl=t.api,this.rulesUrl=t.rules_url,this.lobbyUrl=t.lobby_launch_url,this.headers={"Content-Type":$r},this.headers[t.csrfTokenHeaderName]=t.csrfTokenHeaderValue,on()&&Jr&&Jr.initialize()}requestRules(){return fetch(this.rulesUrl,{headers:{Accept:$r}}).then(rn)}addRoundSeriesId(t){var e,i=null===(e=window)||void 0===e||null===(e=e.extraData)||void 0===e?void 0:e.round_series_id;return i&&(t&&t.extra_data?(t.extra_data=t.extra_data||{},t.extra_data.round_series_id=i):t.extra_data={round_series_id:i}),t}requestURL(t,e,i){var r={method:e?"POST":"GET",headers:this.headers};if(e&&(null==Jr||!Jr.isPlaybackActive)){if(this.addRoundSeriesId(e),r.body=JSON.stringify(e),tn[r.body]){var n=Promise.resolve(tn[r.body]);return tn[r.body]=null,n}tn[r.body]=null}if(on()&&null!=Jr&&Jr.isPlaybackActive){var a=null==Jr?void 0:Jr.getItem(e);return Promise.resolve(a)}return new Promise(((n,a)=>{sn(t,r,(s=>(this.additionalResponseProcessing(s,t,e,i),rn(s).then((async e=>{if(!i&&on()&&Jr){var n={command:"init"};this.addRoundSeriesId(n);var a=JSON.stringify(n);await(null==Jr?void 0:Jr.addItem(r,e,t,{method:"POST",headers:this.headers,body:a}))}return e})).then(n).catch(a))),a)}))}request(t,e){return this.requestURL(this.apiUrl,t,e)}prepareRequest(t){var e=JSON.stringify(t);tn.hasOwnProperty(e)||(this.request(t).then((t=>{tn.hasOwnProperty(e)||(tn[e]=t)})),delete tn[e])}additionalResponseProcessing(t,e,i,r){this.verifyDigest(t,e),r||this.addSentryBreadcrumb(t,e,i)}async addSentryBreadcrumb(t,e,i){try{if(!Kr.T||!Sentry)return;var r=await t.clone().json();r.options&&(r.options="{...}"),Sentry.addBreadcrumb({type:"info",category:"api.response",data:{url:e,request:JSON.stringify(i),response:JSON.stringify(r)},level:Sentry.Severity.Info})}catch(n){return}}async verifyDigest(t,e){if(t.headers.has("digest"))try{var i=t.headers.get("digest"),[r,n]=i.split("=");if(!n)return;var a=atob(n),s=await t.clone().text();a!==await this.generateDigest(r,s)&&Kr.T&&Sentry.withScope((i=>{i.setExtra("request-url",e),i.setExtra("x-request-id",t.headers.get("x-request-id")),i.setExtra("responseText",s.substring(0,199e3)),Sentry.captureException(new Error("Response checksum mismatch"))}))}catch(Ir){return}}async generateDigest(t,e){var i=(new TextEncoder).encode(e),r=await crypto.subtle.digest(t,i),n=Array.from(new Uint8Array(r)).map((t=>t.toString(16).padStart(2,"0"))).join("");return n}}var rn=t=>t.json(),nn=!1,an=[];function sn(t,e,i,r){if(nn)an.push(Array.from(arguments));else{nn=!0;var n=!1,a=()=>{n||(nn=!1,an.length&&sn.apply(null,an.shift()),n=!0)};fetch(t,e).then((t=>{a(),i(t)})).catch((t=>{a(),r(t)}))}}function on(){return window.location.origin.indexOf("dev.bgaming-system")>-1||!1}var ln=(s.A.isMobile.apple.phone||s.A.isMobile.apple.ipod)&&navigator.vendor&&navigator.vendor.indexOf("Apple")>-1&&navigator.userAgent&&-1==navigator.userAgent.indexOf("CriOS")&&-1==navigator.userAgent.indexOf("FxiOS");function hn(){try{return window.self!==window.top}catch(Ir){return!0}}s.A.isIosSafari=ln;var un,cn,pn,dn=hn(),fn="",gn=!s.A.isPortrait,mn=document.body.style,An=.9;function vn(){un=document.createElement("div"),cn=Math.min(screen.width,screen.height),un.style.height=cn+3e3+"px",un.style.width="100%",un.style.position="absolute",document.body.appendChild(un),window.addEventListener("touchend",(function(){s.A.isPortrait&&!s.A.isNeedScrollTopIosSafari&&(clearTimeout(pn),pn=setTimeout((()=>{un.style.height=window.innerHeight+"px",this.setTimeout((()=>s.A.onResize()))}),100))}))}ln&&setInterval((function(){if(s.A.currentContainer&&s.A.casinoOptions.ui.full_screen_prompt){s.A.isLandscapeSafariIos=!s.A.isPortrait,(s.A.isLandscapeSafariIos||gn)&&(cn=Math.min(screen.width,screen.height),s.A.isNeedScrollTopIosSafari=window.innerHeight{window.scrollTo(0,2),window.scrollTo(0,0)}),80)):(s.A.pixiApp.renderer.plugins.interaction.autoPreventDefault=!0,un.style.zIndex=-1,mn.overflow="hidden",mn.height="100%",document.documentElement.style.height="100%",document.documentElement.style.overflow="hidden"),un.style.display=s.A.isPortrait?"none":"inline")),s.A.isPortrait&&0!==window.scrollY&&window.scrollTo(0,0),!dn&&s.A.isNeedScrollTopIosSafari&&(s.A.currentFader||s.A.isPortrait||"thing-games-utils/safari-arrow-up"===s.A.currentContainer.name||s.A.showModal("thing-games-utils/safari-arrow-up"))}}),100);class yn{isLogOutEnabled=!1;logOutTriggerInterval=0;isPopupActive=!1;popupTriggeredTime=0;sessionStart=Date.now();get isNeedToShowPopup(){var t=wn.isActive();return!(this.isPopupActive||!this.isLogOutEnabled||t)&&(0!==this.logOutTriggerInterval&&(this.sessionTime>this.logOutTriggerInterval&&this.timeFromLastPopupShown>=this.logOutTriggerInterval))}get sessionTime(){return Date.now()-this.sessionStart}get timeFromLastPopupShown(){return Date.now()-this.popupTriggeredTime}get timeToNextTrigger(){var t=Math.max(this.logOutTriggerInterval-this.timeFromLastPopupShown,0);return this.isLogOutEnabled?t:-1}}const _n=yn;class bn{constructor(){this.model=new _n,this.checkTimeoutId=void 0}isActive(){return this.model.isPopupActive}initialize(){this.checkBounded=this.checkForReality.bind(this),Yi.A.addListener(((t,e,i)=>this._gameEventHandler(t,e,i)))}startSession(t=216e6){this.model.sessionStart=Date.now(),this.model.popupTriggeredTime=Date.now(),this.model.logOutTriggerInterval=t,this.model.isLogOutEnabled=void 0!==t&&t>0,this._scheduleLogOutCheck()}updateLogOutLastPopupTriggeredTime(){this.model.popupTriggeredTime=Date.now()}clearLogOutSchedule(){var t;void 0!==this.checkTimeoutId&&null!==(t=this.model)&&void 0!==t&&t.isLogOutEnabled&&clearTimeout(this.checkTimeoutId)}checkForReality(){if(this.model.isNeedToShowPopup){this.model.isPopupActive=!0;var t=(0,tt.A)("log_out");s.A.showQuestion("",t,"buttons.ok",(()=>{s.A.SharedAPI.gotoHome()}))}this._scheduleLogOutCheck()}_scheduleLogOutCheck(){if(this.clearLogOutSchedule(),this.model.isLogOutEnabled){var t=this.model.timeToNextTrigger;this.checkTimeoutId=setTimeout(this.checkBounded,t)}}_gameEventHandler(t,e,i){switch(t){case Vi.A.GAME_INITIALIZED:this.startSession(this._logOutInterval);break;case Vi.A.FINISH_SPIN_ANIMATIONS:case Vi.A.FINISH_ROUND_ANIMATIONS:this.checkForReality();break;case Vi.A.PRE_PLAY:this.clearLogOutSchedule(),this.updateLogOutLastPopupTriggeredTime()}}get _logOutInterval(){var t;return(null===(t=s.A.casinoOptions)||void 0===t||null===(t=t.license_rules)||void 0===t||null===(t=t.log_out)||void 0===t?void 0:t.interval)||0}}const xn=new bn;class Tn{isRealityCheckEnabled=!1;realityCheckTriggerInterval=0;isPopupActive=!1;popupTriggeredTime=0;sessionStart=Date.now();userOverallBet=0;userOverallWin=0;get isNeedToShowPopup(){var t=xn.isActive();return!(this.isPopupActive||!this.isRealityCheckEnabled||t)&&(0!==this.realityCheckTriggerInterval&&(this.sessionTime>this.realityCheckTriggerInterval&&this.timeFromLastPopupShown>=this.realityCheckTriggerInterval))}get userOverallLose(){return Math.max(this.userOverallBet-this.userOverallWin,0)}get sessionTime(){return Date.now()-this.sessionStart}get timeFromLastPopupShown(){return Date.now()-this.popupTriggeredTime}get timeToNextTrigger(){var t=Math.max(this.realityCheckTriggerInterval-this.timeFromLastPopupShown,0);return this.isRealityCheckEnabled?t:-1}}const En=Tn;class Sn{constructor(){this.model=new En,this.checkTimeoutId=void 0}isActive(){return this.model.isPopupActive}initialize(){this.checkBounded=this.checkForReality.bind(this),Yi.A.addListener(((t,e,i)=>this._gameEventHandler(t,e,i)))}startSession(t=216e6){this.model.sessionStart=Date.now(),this.model.popupTriggeredTime=Date.now(),this.model.userOverallBet=0,this.model.userOverallWin=0,this.model.realityCheckTriggerInterval=t,this.model.isRealityCheckEnabled=void 0!==t&&t>0,this._scheduleRealityCheck()}restartRealityCheckSession(){this.model.sessionStart=Date.now(),this.model.popupTriggeredTime=Date.now(),this._scheduleRealityCheck()}updateRealityCheckLastPopupTriggeredTime(){this.model.popupTriggeredTime=Date.now()}clearRealityCheckSchedule(){var t;void 0!==this.checkTimeoutId&&null!==(t=this.model)&&void 0!==t&&t.isRealityCheckEnabled&&clearTimeout(this.checkTimeoutId)}checkForReality(){this.model.isNeedToShowPopup&&(this.model.isPopupActive=!0,s.A.showModal("thing-games-utils/reality-check-popup",(()=>{this.model.isPopupActive=!1,xn.checkForReality(),this.model.popupTriggeredTime=Date.now()}))),this._scheduleRealityCheck()}updateSessionBet(t){t>0&&(this.model.userOverallBet+=t)}updateSessionWin(t){t>0&&(this.model.userOverallWin+=t)}_scheduleRealityCheck(){if(this.clearRealityCheckSchedule(),this.model.isRealityCheckEnabled){var t=this.model.timeToNextTrigger;this.checkTimeoutId=setTimeout(this.checkBounded,t)}}_gameEventHandler(t,e,i){switch(t){case Vi.A.GAME_INITIALIZED:this.startSession(this._realityCheckInterval);break;case Vi.A.FINISH_SPIN_ANIMATIONS:case Vi.A.FINISH_ROUND_ANIMATIONS:this.checkForReality();break;case Vi.A.PRE_PLAY:this.clearRealityCheckSchedule(),this.updateRealityCheckLastPopupTriggeredTime();break;case Vi.A.PLAY:this.updateSessionBet(s.A.data.balanceChargedForSpin),this.updateSessionWin(i.win)}}get _realityCheckInterval(){var t;return(null===(t=s.A.casinoOptions)||void 0===t||null===(t=t.license_rules)||void 0===t||null===(t=t.reality_check)||void 0===t?void 0:t.interval)||0}}const wn=new Sn;var Pn=i(1233),In=i(230),Rn={finish:"close",check_card:"gamble"},Cn={command:"init"},On=new URLSearchParams(window.location.search).get("lang");function Mn(){s.A.casinoOptions=window.__OPTIONS__,On&&(s.A.casinoOptions.rules_url=s.A.casinoOptions.rules_url.replace("/"+s.A.casinoOptions.locale+"/","/"+On+"/"),s.A.casinoOptions.locale=On),s.A.casinoOptions.ui.logo_visible="hidden"!==s.A.casinoOptions.ui.logo,s.A.casinoOptions.ui.isTinyAutospinsDialog="tiny"===s.A.casinoOptions.ui.autospins_dialog,s.A.casinoOptions.ui.isAutospinAvailable="disable"!==s.A.casinoOptions.ui.autospins_dialog,Pn.utils.isMobile.any&&(s.A.casinoOptions.ui.home_button=!0),s.A.casinoOptions.actions.return||(s.A.casinoOptions.ui.home_button=!1),s.A.casinoOptions.history_url=s.A.casinoOptions.actions.history&&s.A.casinoOptions.actions.history.link}Mn(),wn.initialize(),xn.initialize();var Bn,Dn,Ln,kn=new en(s.A.casinoOptions);function Nn(){Dn=Date.now()}var Fn=5e3;function Gn(){if(s.A.casinoOptions.replay)return!1;if(Ln)Nn();else if(Date.now()>Dn+Fn-500)return!0}function Un(t){s.A.data.lastDataWithBalanceForBalanceChecking&&(isNaN(s.A.data.lastDataWithBalanceForBalanceChecking.balance)?"object"!=typeof s.A.data.lastDataWithBalanceForBalanceChecking.balance||isNaN(s.A.data.lastDataWithBalanceForBalanceChecking.balance.wallet)||(s.A.data.lastDataWithBalanceForBalanceChecking.balance.wallet=t):s.A.data.lastDataWithBalanceForBalanceChecking.balance=t,s.A.data.latestReceivedBalance=t,s.A.currentScene&&s.A.currentScene.refreshBalanceFast&&s.A.currentScene.refreshBalanceFast())}function Hn(t){var e=t.balance;return"object"==typeof e&&(e=e.wallet),e}function Xn(t){return t&&!isNaN(Hn(t))}class jn{constructor(){jn.instance=this,s.A.SharedAPI=this,this.isRequestCommandAvailable=this.isRequestCommandAvailable.bind(this),s.A.__APIBalanceUpdateInterval&&clearInterval(s.A.__APIBalanceUpdateInterval),s.A.__APIBalanceUpdateInterval=setInterval((()=>{Gn()&&this.request({command:"init",options:{balance:!0}},null,!0).then((t=>{if(Gn()&&t){var e=Hn(t);"number"==typeof e&&e!==s.A.data.latestReceivedBalance&&Un(e)}})).finally((()=>{Nn()}))}),1e3),this.onApiReady()}restartGame(t){Vn(t)}initCurrency(t,e){var i=t.options.currency,r=i.subunits,n=Math.log10(r);this.subUnits=r,jn.subunitsDigitsCount=n;var o,l=t=>{var e=(t/r).toString(),i=e.split("."),n=e.split("e");return i.length>1&&n.length>1?i[1].split("e")[0].replace(/0+$/gm,"").length+Math.abs(+n[1]):i.length>1?i[1].replace(/0+$/gm,"").length:n.length>1?Math.abs(+n[1]):0};Array.isArray(e)||(e=[e]);var h=(()=>{var e=t.options.paytable||t.options.paytables||t.paytable||{},i=Object.values(e).flat(1/0);return i.length&&isNaN(i[0])&&(i=i.map((t=>Object.values(t))).flat(1/0)),i})(),u=h.map((t=>e.map((e=>(e||0)*t)))).flat().filter((t=>t>0)).map(l);o=Math.max.apply(null,u),o=Math.min(n,o),s.A.data.currencyDigits=Math.max(i.exponent||0,o),s.A.data.currency=(0,a.A)("this.options.currency.code",t)||"BTC";var c,p=(t.balance/this.subUnits).toString().split(".");c=p.length>1?p[1].replace(/0+$/gm,"").length:0,c=Math.min(jn.subunitsDigitsCount,c),s.A.data.balanceDigitsCount=Math.max(s.A.data.currencyDigits,c)}openHistory(){Yi.A.track("go_history"),jn.actionExec(s.A.casinoOptions.actions.history)}globalDataHandler(t){if(t&&(s.A.data.latestData=t,t.options&&(s.A.data.currencyDivider=t.options.currency.subunits),t.flow||(t.flow={state:t.game.state,available_actions:t.available_commands,command:t.requested_command}),t.hasOwnProperty("balance")&&(isNaN(t.balance)&&(t.gameTotalWin=t.balance.game,t.balance.game>0&&"closed"===t.flow.state&&(t.balance.hasOwnProperty("free_rounds")?t.balance.free_rounds+=t.balance.game:t.balance.wallet+=t.balance.game,t.balance.game=0),t.free_rounds&&(t.free_rounds.win=t.balance.free_rounds,"played"===t.free_rounds.status&&(t.balance.wallet+=t.balance.free_rounds,t.balance.free_rounds=0)),t.balance=t.balance.wallet),s.A.data.latestReceivedBalance=t.balance),t.flow.available_actions)){var e={};for(var i of t.flow.available_actions)Rn.hasOwnProperty(i)&&(i=Rn[i]),e[i]=!0;t.available_commands=e}}setGameId(t){kn.currentGameId!==t&&this.request(kn.lobbyUrl+(kn.lobbyUrl.indexOf("?")>0?"&":"?")+"game="+t+"&from="+kn.currentGameId,s.A.currentFader).then((e=>{kn.setCasinoOptions(e),Bn=null,window.initializeCasinoOptions(e),Mn();try{window.history.replaceState(t,t,e.game_page_url)}catch(i){}})).catch((()=>{this.showError()}))}request(t,e=null,i=!1){i||Nn();var r=this.currentRequestInProgress,n="string"==typeof t,a=Er.A.promise(((e,a)=>{var s=()=>{if(qi.A.isReplayMode())return e(qi.A.getNextResponse());(n?kn.requestURL(t,null,i):kn.request(t,i)).then(e).catch(a)};r?r.finally(s):s()}),e||s.A.currentContainer).then((e=>{if(this.currentRequestInProgress===a&&(this.currentRequestInProgress=null,Ln=!1),!n){if(this.handleDataErrors(e,i))return s.A.data.lastDataWithBalanceForBalanceChecking&&Un(Hn(s.A.data.lastDataWithBalanceForBalanceChecking)),null;e.requested_command=t.command,Xn(e)&&(s.A.data.lastDataWithBalanceForBalanceChecking=e),i||(this.checkForMessagesToShow(e),this.globalDataHandler(e)),i||t!==Cn||(Yi.A.track(Vi.A.BALANCE_UPDATE,null,{amount:e.balance}),Yi.A.track(Vi.A.GAME_LOADED,s.A.casinoOptions.identifier)),Yi.A.track(Vi.A.API_RESPONSE,e.requested_command,{responseData:e,isBalanceCheckRequest:i})}})).catch((()=>{this.currentRequestInProgress===a&&(this.currentRequestInProgress=null,Ln=!1),s.A.data.lastDataWithBalanceForBalanceChecking&&Un(Hn(s.A.data.lastDataWithBalanceForBalanceChecking)),i||this.showError()})).finally((()=>{this.currentRequestInProgress===a&&(this.currentRequestInProgress=null,Ln=!1),i||Nn()}));return this.currentRequestInProgress=a,Ln=!0,a}isRequestCommandAvailable(t){return!t.command||"init"===t.command||this.isCommandAvailable(t.command)}initGame(t=s.A.currentFader){return qi.A.initGame(),this.request(Cn,t)}onApiReady(){In.projectDesc.disableInitDataPreparing||kn.prepareRequest(Cn)}showRules(t=""){var e=s.A.showModal("ui/html-popup").findChildByName("html");Bn?(e.domScripts=Bn.scripts,e.innerHTML=Bn.content):(e.domScripts=[],e.innerHTML=(0,tt.A)("loading"),this.requestRulesContent(t).then((({content:t,scripts:i})=>{e.domScripts=i,e.innerHTML=t})))}requestRulesContent(t=""){if(Bn)return Er.A.resolve(Bn);var e=s.A.all.hasOwnProperty("slot-UI")?s.A.all["slot-UI"]:void 0;return Er.A.promise((e=>{kn.requestRules().then((i=>{var r=i?i.content:"";if(i&&i.contentUpdateScript)try{r=new Function("content",i.contentUpdateScript)(r)}catch(Ir){}Bn={content:r=""+r+"

",scripts:(null==i?void 0:i.domScripts)||[]},e(Bn)}))}),e)}isCommandAvailable(t){return s.A.data.available_commands&&s.A.data.available_commands[t]}playGame(t,e,i){return this.request({command:"play",options:{bet:t,risk_level:e,rows:i}})}handleDataErrors(t,e){if(!t)return e||this.showError(),!0;if(t.errors&&t.errors.length>0){if(!e){var i=t.errors[0],r=null==i?void 0:i.code;700===r?this.showCustomButtonsMessage(i):this.showError(r,null==i?void 0:i.text,i)}return!0}}showCustomButtonsMessage(t){var e=r.A.loadPrefab("thing-games-utils/sure-question700");e.findChildByName("title").text=t.desc,e.findChildByName("message").text=t.text;var i=e.findChildrenByName("btn"),n=[],a=t.buttons.filter((t=>"history"!==t.action||s.A.casinoOptions.actions.history));i.forEach(((t,e)=>{var i=a[e];t.visible=i&&!0,t.visible&&(n.push(t),t.findChildByName("label").text=i.text,t.callback=()=>{switch(Yi.A.track(Vi.A.DIALOG_BUTTON_CLICK,i.action,i),i.action){case"home":this.gotoHome();break;case"history":this.openHistory();break;case"deposit":Wn(),Vn();break;default:Vn()}})}));var o=i[1].x-i[0].x,l=-Math.round(o*(n.length-1)/2);for(var h of n)h.x=l,l+=o;s.A.showModal(e)}static actionExec(t,e=(()=>{})){if(t)switch(Yi.A.track(Vi.A.ACTION_EXEC,t.mode),t.mode){case"continue":e();break;case"open":s.A.openUrl(t.link),e();break;case"redirect":s.A.openUrl(t.link,"_top"),e();break;case"request":kn.requestURL(t.link),e();break;case"request_with_response":kn.requestURL(t.link).finally((()=>e()));break;case"back":window.history.go(-1),e();break;default:t.link&&s.A.openUrl(t.link),e()}}checkForMessagesToShow(t){t&&t.messages&&t.messages.forEach((t=>{var e=r.A.loadPrefab("thing-games-utils/api-message");e.findChildByName("title").text=t.title,e.findChildByName("message").text=t.text;var i,n=e.findChildByName("close-btn"),a=e.findChildrenByName("btn"),o=[],l=()=>{t.intrusive||s.A.hideModal(i)};n.visible=!t.intrusive,n.callback=l,a.forEach(((e,i)=>{var r=t.actions?t.actions[i]:null;e.visible=!!r,e.visible&&(o.push(e),e.findChildByName("label").text=r.text,e.callback=()=>{jn.actionExec(r,l)})}));var h=a[1].x-a[0].x,u=-Math.round(h*(o.length-1)/2);for(var c of o)c.x=u,u+=h;i=s.A.showModal(e)}))}setFatalErrorWithExpiry(t,e=36e5){var i={value:t,expiery:(new Date).getTime()+e};localStorage.setItem("fatalError",JSON.stringify(i))}getFatalErrorWithExpiry(){var t=localStorage.getItem("fatalError");if(!t)return null;var e=JSON.parse(t);return(new Date).getTime()>e.expiry?(localStorage.removeItem(key),null):e.value}showError(t="some_error",e=null,i=null){var r=s.A.projectDesc.errorPhrasesPrefix+t;tt.A.has(r)||(r="errors.default");var n=301==t,a=s.A.casinoOptions.actions.deposit,o=103===t,l=104===t,h=201==t,u=110===t,c=[101,202,203,204,600].includes(t);n&&!a&&(r+="nodep");var p="",d=e||(0,tt.A)(r,{code:t||0});if(Yi.A.track(Vi.A.ERROR,t,{messageText:d,sourceError:i}),n&&a)s.A.showQuestion(p,d,"buttons.deposit",(()=>{Wn(),Yn(t)}),"buttons.ok",Yn);else if(o||l||h||u)s.A.showQuestion(p,d,"buttons.ok",(()=>{Yi.A.track(Vi.A.GO_HOME),jn.actionExec(s.A.casinoOptions.actions.return)}),void 0,(()=>{Yn(t)}));else if(c){var f=this.getFatalErrorWithExpiry(),g=Number(localStorage.getItem("fatalErrorCount"));if(!f||f&&f!==t)return this.setFatalErrorWithExpiry(t),void s.A.showQuestion(p,d,"buttons.ok",(()=>{localStorage.setItem("fatalErrorCount",1),Yn(t)}),void 0,(()=>{Yn(t)}));if(f&&g<=3&&f===t){var m=g+1;localStorage.setItem("fatalErrorCount",m),s.A.showQuestion(p,d,"buttons.ok",(()=>{Yn(t)}),void 0,(()=>{Yn(t)}))}else localStorage.removeItem("fatalErrorCount"),localStorage.removeItem("fatalError"),s.A.showQuestion(p,d,"buttons.home",(()=>{this.gotoHome()}),void 0,(()=>{Yn(t)}))}else s.A.showQuestion(p,d,"buttons.ok",(()=>{Yn(t)}),void 0,(()=>{Yn(t)}))}static sendSentryError(t){var e=new Error(t);setTimeout((()=>{throw e}),0)}gotoHome(){Yi.A.track(Vi.A.GO_HOME),jn.actionExec(s.A.casinoOptions.actions.return)}}function Wn(){Yi.A.track("go_deposit",null,{target:s.A.casinoOptions.actions.deposit.link}),jn.actionExec(s.A.casinoOptions.actions.deposit)}function Vn(t){s.A.closeAllScenes(t)}function Yn(){Vn()}var zn="\n.casino-modal h1 {\n\ttext-align: center;\n\tfont-size: 120%;\n\tmargin:9px 0;\n\tmargin-top: 30px;\n\tcolor: #ffffff;\n}\n.casino-modal h2 {\n\ttext-align: center;\n\tfont-size: 110%;\n\tmargin:7px 0;\n\tmargin-top: 20px;\n\tcolor: #ffffff;\n}\n\n.casino-modal {\n\tline-height: 1.6;\n\tfont-family: Arial;\n\t-webkit-text-size-adjust: 100%;\n\tcolor: #b2b2b2;\n\t-webkit-mask-image:linear-gradient( to bottom, rgba(0,0,0,0), rgba(0,0,0,1) 40px, rgba(0,0,0,1) calc(100% - 40px), rgba(0,0,0,0) );\n\tmask-image:linear-gradient( to bottom, rgba(0,0,0,0), rgba(0,0,0,1) 40px, rgba(0,0,0,1) calc(100% - 40px), rgba(0,0,0,0) );\n}\n\n.casino-modal th, .casino-modal td {\n\tcolor: #b2b2b2;\n\tpadding: 5px 5px;\n\tborder: 2px solid #333333;\n}\n\n.casino-modal table {\n\ttext-align: center;\n\twidth: 100%;\n\tmargin: 20px 0;\n\tborder-collapse: collapse;\n}\n\n.casino-modal-scroll {\n\tscrollbar-width: none;\n\t-ms-overflow-style: none;\n}\n\n.casino-modal-scroll::-webkit-scrollbar {\n\tdisplay: none;\n}\n";class qn extends jn{playGame(t,e,i){var r=s.A.data.bet;return Yi.A.track(Vi.A.PRE_PLAY,null,{totalBet:r,bet:r,isAutoSpin:!!s.A.currentScene.isAutoplayStarted,isFreeSpin:!1,isRespin:!1,purchasedFeature:{}}),this.request({command:"play",extra_data:{client_seed:Zr.getCurrentClientSeed()},options:{bet:t,risk_level:e,rows:i}}).then((t=>{t&&Yi.A.track(Vi.A.PLAY,null,{win:t.result,totalBet:r,bet:r,isFreeSpin:!1,isRespin:!1,isAutoSpin:!!s.A.currentScene.isAutoplayStarted,purchasedFeature:{}})}))}}const Qn=new qn;var Zn,Kn,Jn=[1,2,3,5,10,15,20,30,50,75,100,150,200,300,500,750,1e3,2e3,3e3,5e3,1e4,15e3,2e4,3e4,5e4,75e3,1e5,15e4,2e5,3e5,5e5,75e4,1e6],$n=.06,ta=60,ea="(0-16)",ia=["switzerland","danish","swedish","italian"];function ra(t){return t>9?t:"0"+t}function na(t,e){var i;return(null===(i=s.A.casinoOptions)||void 0===i||null===(i=i.license_rules)||void 0===i?void 0:i.license)===e&&(t.all.autoplayPanel.visible=!1,!0)}class aa extends ji.A{MIN_SPIN_TIME=0;MIN_SPIN_TIME_AUTOPLAY_DELAY=0;spinStartTime=0;rollInProgress=!1;constructor(){super(),this.onPlayResultReceived=this.onPlayResultReceived.bind(this)}init(){var t;super.init(),s.A.data={},this.gameTable=this.all.gameTable,Kn={},s.A.data.autoplayCount=s.A.settings.getItem("autoplayCount",10),Qn.initGame().then((t=>{if(t){Yi.A.track(Vi.A.GAME_INITIALIZED,s.A.casinoOptions.identifier),this.loadAutoplaySettings(),s.A.data.initData=t;var e=t.paytable[8].high[4]*t.options.min_bet;Qn.initCurrency(t,e);var i=s.A.data.initData.options.max_bet,r=s.A.data.initData.options.min_bet;for(var n of(Zn=[],Jn)){var o=n*r;if(o>i&&(o=i),Zn.push(o),o===i)break}this.loadDefauiltBet(),s.A.data.balance=t.balance,s.A.data.currency=(0,a.A)("game.data.initData.options.currency.symbol",this)||"BTC";var l=s.A.settings.getItem("restoringData");for(var h in this.restoringDataArray=[],l){var u=l[h];this.restoringDataArray.push(u),s.A.data.balance-=u.result,s.A.data.balance+=u.bets.bet}this.restoreDelay=20,s.A.casinoOptions.ui.max_autospin_value&&(this.all.autoplayNumberInput.max=s.A.casinoOptions.ui.max_autospin_value),this.gameTable.initializePaytable(),this.all["provability-panel"].applyResult(t),s.A.data.provability.seedLimits=ea,na(this,"netherlands")}}));var e=s.A.data.balance;Object.defineProperty(s.A.data,"balance",{get:()=>e,set(t){e!==t&&Yi.A.track(Vi.A.BALANCE_UPDATE,null,{amount:t}),e=t},configurable:!0}),this.spinStartTime=0,this.MIN_SPIN_TIME=(null===(t=s.A.casinoOptions)||void 0===t||null===(t=t.license_rules)||void 0===t?void 0:t.min_spin_time)||0,this.MIN_SPIN_TIME_AUTOPLAY_DELAY=Math.round(this.MIN_SPIN_TIME*$n),this.rollInProgress=!1}enablePlayButton(t=!0){if(t){var e;if(ia.includes(null===(e=s.A.casinoOptions)||void 0===e||null===(e=e.license_rules)||void 0===e?void 0:e.license)||na(this,"netherlands"))return;var i=this.getFramesToToNextSpin();i>1?br.delay((()=>this.all.playButton.enable()),i):this.all.playButton.enable()}else this.all.playButton.disable()}enableGameUI(t=!0){var e;for(var i of(this.all.gameUI.interactiveChildren=t,this.all.gameUI.findChildrenByType(ar.A)))i.parent.alpha>.99&&(i.alpha=t?1:.35);(ia.includes(null===(e=s.A.casinoOptions)||void 0===e||null===(e=e.license_rules)||void 0===e?void 0:e.license)||na(this,"netherlands"))&&(t?(this.all.playButton.enable(),this.rollInProgress=!1):s.A.data.autoplayCurrentCount||this.all.playButton.disable())}loadAutoplaySettings(){s.A.data.autoplayCount=s.A.settings.getItem("autoplayCount",this.all.autoplayNumberInput._values[0])}saveAutoplaySettings(){s.A.settings.setItem("autoplayCount",s.A.data.autoplayCount)}get isRightPanelVisible(){return!s.A.isPortrait||!this.isLeftPanelTurnedOn}get isLeftPanelVisible(){return!s.A.isPortrait||this.isLeftPanelTurnedOn}toggleTableView(){this.isLeftPanelTurnedOn=!this.isLeftPanelTurnedOn}showRules(){Qn.showRules()}getPreloadingProgress(){return 1/(Qn.requestsInProgressCount+1)}getBet(){return s.A.data.bet}chargeBetFromBalance(){s.A.data.balance-=this.getBet(),s.A.data.balance<0&&(s.A.data.balance=0),this.all["balance-label"].refreshNow()}get isAutoplayStarted(){return s.A.data.autoplayCurrentCount}stopAutoplay(){var t;s.A.data.autoplayCurrentCount=0,ia.includes(null===(t=s.A.casinoOptions)||void 0===t||null===(t=t.license_rules)||void 0===t?void 0:t.license)||na(this,"netherlands")?this.rollInProgress&&this.enablePlayButton(!1):this.all.playButton.interactive&&this.rollInProgress&&(this.enablePlayButton(!1),this.enablePlayButton())}playButtonClick(){this.isAutoplayStarted?this.stopAutoplay():this.gameTable.ballWaitingPath||this.rollInProgress||(s.A.data.autoPanelActiveted&&(s.A.data.autoplayCurrentCount=s.A.data.autoplayCount-1,s.A.settings.setItem("autoplayCount",s.A.data.autoplayCount)),this.saveBetAsDefault(),this.startRoll(),this.all["win-panel"].gotoLabelRecursive("hide"))}isRestoringDataAwaiting(){return this.restoringDataArray&&this.restoringDataArray.length>0}update(){super.update(),this.isRestoringDataAwaiting()?this.restoreDelay>0?this.restoreDelay--:(this.startRoll(this.restoringDataArray.shift()),this.restoreDelay=ta):this.delayToNextAutoreplay>0?this.delayToNextAutoreplay--:s.A.data.autoplayCurrentCount>0&&(s.A.data.balance1,this.rollInProgress&&br.delay((()=>this.rollInProgress=!1),r)}}getFramesToToNextSpin(){return this.MIN_SPIN_TIME>0?Math.round((this.MIN_SPIN_TIME-(Date.now()-this.spinStartTime))*$n):0}onBallFinish(t,e,i){var r=t.result;delete Kn[i],s.A.settings.setItem("restoringData",Kn),0===e&&this.enableGameUI();var n=new Date,a=this.getBet();this.all.resultList.addEntry({bet:a,win:r-a,payout:r/a,time:ra(n.getHours())+":"+ra(n.getMinutes())+":"+ra(n.getSeconds())}),s.A.data.balance=0===e?s.A.data.latestData.balance:Math.max(0,t.balance-e*this.getBet()),s.A.data.winToShow=r,this.all["provability-panel"].applyResult(t),this.all["win-panel"].gotoLabelRecursive("on-win"),r/a>1.00001?H.A.play("big_win"):H.A.play("win_sound"),Yi.A.track(Vi.A.FINISH_ROUND_ANIMATIONS)}refreshBalanceFast(){s.A.data.balance=s.A.data.latestReceivedBalance,this.all["balance-label"].refreshNow(),this.all["balance-label"].update()}setBet(t){for(var e of Zn)if(e>=t)return void(s.A.data.bet=e);s.A.data.bet=Zn[Zn.length-1]}saveBetAsDefault(){s.A.settings.setItem("bet",s.A.data.bet)}loadDefauiltBet(){this.setBet(s.A.settings.getItem("bet",s.A.data.initData.options.default_bet||s.A.data.initData.options.min_bet))}increaseBet(){var t=Zn.indexOf(this.getBet())+1;t=Math.max(0,t),t=Math.min(Zn.length-1,t),this.setBet(Zn[t]),this.saveBetAsDefault()}decreaseBet(){var t=Zn.indexOf(this.getBet())-1;t=Math.max(0,t),t=Math.min(Zn.length-1,t),this.setBet(Zn[t]),this.saveBetAsDefault()}maximizeBet(){this.setBet(Zn[Zn.length-1]),this.saveBetAsDefault()}minimizeBet(){this.setBet(Zn[0]),this.saveBetAsDefault()}get isBetCanBeIncreased(){return!s.A.data.autoplayStarted&&Zn&&this.getBet()Zn[0]}_onRenderResize(){this.switchPanelsInstantly(),this.isLeftPanelTurnedOn=!1}switchPanelsInstantly(){this.all["left-panel-switcher"].applyInstantly(),this.all["right-panel-switcher"].applyInstantly()}activateAutoPanel(){s.A.data.autoPanelActiveted=!0,this.all.manualGameBtn.enable(),this.all.autoGameBtn.disable()}deactivateAutoPanel(){s.A.data.autoPanelActiveted=!1,this.all.manualGameBtn.disable(),this.all.autoGameBtn.enable()}static get anySoundEnabled(){return s.A.Sound.soundEnabled||s.A.Sound.musicEnabled}}const sa=aa;var oa=i(4581);class la extends Wi.A{init(){super.init(),this.applyForceWordsBreaking(),this.applyWorldWrapping()}applyForceWordsBreaking(){tt.A.isCurrentLanguageHieroglyphic()&&(this.breakWords=!0)}applyWorldWrapping(){this.style&&(this.style.wordWrapWidth=s.A.isPortrait?this.maxWidthPortrait:this.maxWidthLandscape,this.style.wordWrap=!0,this.updateSize())}_onRenderResize(){this.applyWorldWrapping()}get maxHeightLandscape(){return this._maxHeightLandscape}set maxHeightLandscape(t){this._maxHeightLandscape=t,s.A.isPortrait||0===t||this.updateSize()}get maxHeightPortrait(){return this._maxHeightPortrait}set maxHeightPortrait(t){this._maxHeightPortrait=t,s.A.isPortrait&&0!==t&&this.updateSize()}get breakWords(){return this.style.breakWords}set breakWords(t){this.style.breakWords=t}recalculateTextSize(){this.style&&(this.maxWidth=this.style.wordWrapWidth);var{scale:t,_texture:e}=this,i=t.x,r=t.y,n=super.recalculateTextSize(),a=s.A.isPortrait?this._maxHeightPortrait:this._maxHeightLandscape;if(a>0&&t.y*e.height>a){var o=a/e.height;if(t.x!==o||t.y!==o)return t.set(o),(i!==o||r!==o)&&!!this.parent}return n}}class ha extends n.A{init(){super.init(),this.applyOrientation()}applyOrientation(){this.__currentOrientationIsPortrait=s.A.isPortrait,s.A.isPortrait?(this.x=this.portraitX,this.y=this.portraitY,this["scale.x"]=this.portraitScaleX,this["scale.y"]=this.portraitScaleY,super.alpha=this.portraitAlpha,this.rotation=this.portraitR,this._callHandler(this.onPortrait)):(this.x=this.landscapeX,this.y=this.landscapeY,this["scale.x"]=this.landscapeScaleX,this["scale.y"]=this.landscapeScaleY,this.alpha=this.landscapeAlpha,this.rotation=this.landscapeR,this._callHandler(this.onLandscape))}_callHandler(t){this.visible=this.alpha>.015&&Math.abs(this.scale.x)>.0015&&Math.abs(this.scale.y)>.0015,!!t&&(0,u.A)(t,this)}update(){this.visible&&super.update()}_onRenderResize(){this.__currentOrientationIsPortrait!==s.A.isPortrait&&this.applyOrientation()}}class ua extends O.A{init(){super.init(),this.rSpeed=Math.random()-.5,this.rotation=Math.random(),this.life=3+Math.random(),this.scl=.6*Math.random()+.2,this.scale.x=this.scl,this.scale.y=this.scl}update(){this.xSpeed+=.3*(Math.random()-.5),this.ySpeed+=.3*(Math.random()-.6),this.xSpeed*=.95,this.ySpeed*=.95,super.update(),this.life-=.1,this.life<.001?this.remove():this.life<=1&&(this.scale.x=this.scl*this.life,this.scale.y=this.scl*this.life)}}const ca=i(9372).A;var pa=i(1233),da=new pa.Point(0,0),fa=new pa.Point(1,1),ga=new pa.Point,ma=new pa.Point;class Aa extends n.A{init(){super.init(),this.recalculateSize()}_onRenderResize(){this.recalculateSize()}recalculateSize(){this.fixed&&this.parent?((this.relativeX||this.relativeY)&&(ga.x=Math.round(this._xPos*s.A.W),ga.y=Math.round(this._yPos*s.A.H),this.parent.toLocal(ga,s.A.stage,ga,!1),this.relativeX&&(this.x=ga.x),this.relativeY&&(this.y=ga.y)),(this.resizeX||this.resizeY)&&(this.parent.toLocal(da,s.A.stage,ga,!1),this.parent.toLocal(fa,s.A.stage,ma,!1),this.resizeX&&(this.scale.x=s.A.W/s.A.projectDesc.width*(ma.x-ga.x||1e-6)),this.resizeY&&(this.scale.y=s.A.H/s.A.projectDesc.height*(ma.y-ga.y||1e-6)))):(this.resizeX&&(this.scale.x=s.A.W/s.A.projectDesc.width),this.resizeY&&(this.scale.y=s.A.H/s.A.projectDesc.height),this.relativeX&&(this.x=Math.round(s.A.W*this._xPos)),this.relativeY&&(this.y=Math.round(s.A.H*this._yPos)))}update(){this.fixed&&this.recalculateSize(),super.update()}set xPos(t){this._xPos=t,this.relativeX&&this.recalculateSize()}get xPos(){return this._xPos}set yPos(t){this._yPos=t,this.relativeY&&this.recalculateSize()}get yPos(){return this._yPos}}var va={INIT:"init",PLAY:"play",ON_RESPONSE:"on_response",ROUND_FINISHED:"round_finished",ON_INIT_RESPONSE:"on_init_response",UNLOCK_FLOW:"unlock_flow",LOCK_FLOW:"lock_flow"};var ya={ON_RESPONSE:"api_on_response",ON_INIT_RESPONSE:"api_on_init_response"};class _a extends jn{constructor(){super(),this.extensions=[]}init(){ca.on(va.INIT,this.initGame,this),ca.on(va.PLAY,this.playGame,this),this.playCommand="spin",this.freeSpinCommand="freespin",this.extensions.forEach((t=>t.init()))}initGame(t=s.A.currentFader){super.initGame(t).then((t=>{s.A.data.initData=t,s.A.data.latestRecievedBalance=t.balance,s.A.data.balance=t.balance,s.A.data.latestData=null,ca.emit(ya.ON_INIT_RESPONSE,t),ca.emit(va.ON_INIT_RESPONSE,t)}))}globalDataHandler(t){isNaN(t.balance)&&(s.A.data.balance_game=t.balance.game,s.A.data.balance_free_rounds=t.balance.free_rounds),super.globalDataHandler(t)}playGame(){this.request({command:s.A.data.isFreeSpin?this.freeSpinCommand:this.playCommand,options:{bet:s.A.data.totalBet,bonus:!!s.A.data.currentFreeRounds,...s.A.data.additionalPlayData}}).then((t=>{s.A.data.latestData=t,s.A.data.latestRecievedBalance=t.balance,s.A.data.balance=t.balance,ca.emit(ya.ON_RESPONSE,t),ca.emit(va.ON_RESPONSE,t)}))}}var ba=new _a;s.A.api=ba;class xa extends ji.A{init(){super.init(),ba.init(),ba.requestRulesContent().then((t=>{s.A.all["rules-html-overlay"].domScripts=t.scripts,s.A.all["rules-html-overlay"].innerHTML=t.content}))}}const Ta=xa;class Ea extends n.A{}class Sa extends Aa{onContinue(){this.gotoLabelRecursive("close")}onLeaveTheGame(){this.gotoLabelRecursive("close"),s.A.SharedAPI.gotoHome()}hidePopup(){s.A.hideModal(this)}get sessionTime(){return Math.round(wn.model.sessionTime/60/1e3)}get sessionBets(){return wn.model.userOverallBet}get sessionWin(){return wn.model.userOverallWin}get sessionLose(){return wn.model.userOverallLose}}var wa=i(1233),Pa=16,Ia=50;class Ra extends wa.Container{init(){super.init(),this.entries=[],this.entriesMap=new WeakMap;var t=s.A.settings.getItem("history");if(t)for(var e of(t.reverse(),t))this.addEntry(e,!0)}addEntry(t,e=!1){for(this.entries.unshift(t);this.entries.length>Pa;)this.entriesMap.get(this.entries.pop()).startRemoving();var i=r.A.loadPrefab("result-list-item");i.setData(t),this.entriesMap.set(t,i),this.addChild(i);var n=0;for(var a of this.entries)(i=this.entriesMap.get(a)).setY(n,e),n+=Ia;s.A.settings.setItem("history",this.entries)}}class Ca extends n.A{update(){super.update(),s.A.isNeedScrollTopIosSafari&&!s.A.isPortrait||s.A.hideModal(this)}}var Oa=i(1233),Ma=new Oa.Point;class Ba extends n.A{init(){super.init(),this.curInterval=Math.round(Math.random()*this.intervalRandom)}enable(){this.enabled=!0}disable(){this.enabled=!1}setSpeed(t){this.speed=t}update(){this.enabled&&this.worldVisible&&(this.delay>0?this.delay--:this.curInterval>0?this.curInterval--:(this.spawn(),this.curInterval=this.getNextInterval())),super.update()}getNextInterval(){return this.intervalRandom>0?this.interval+Math.round(Math.random()*this.intervalRandom):this.interval}setTargetContainer(t){this._container=t?t instanceof n.A?t:(0,a.A)(t,this):s.A.currentContainer}spawn(){this._container||this.setTargetContainer(this.container);var t=r.A.loadPrefab(this.prefabToSpawn);if(this.applyRotation&&(t.rotation=this.getGlobalRotation()),this._container.addChild(t),t.parent.toLocal(Ma,this,t),0!==this.speed||0!==this.speedRandom){var e=this.speed+Math.random()*this.speedRandom;Da.x=e,t.parent.toLocal(Da,this,La,!0),t.xSpeed=La.x-t.x,t.ySpeed=La.y-t.y}}}var Da=new Oa.Point,La=new Oa.Point,ka=i(1233),Na=new ka.Point,Fa=2*Math.PI;class Ga extends n.A{init(){super.init(),this.curInterval=this.interval}spawn(){this._container||(this.container?this._container=(0,a.A)(this.container,this):this._container=s.A.currentContainer),this._container.toLocal(Na,this,Ua);for(var t=Fa/(this.count+this.countRandom*Math.random()),e=0;e2&&(e.length=2,t=e.join("."))}return t}update(){if(this.htmlInput){if(this.text!=this.htmlInput.value){var t=this.filterText(this.htmlInput.value);this.htmlInput.value=t,this.text=t,"number"!==this.inputType&&(this.htmlInput.selectionEnd=this.htmlInput.selectionStart=this.htmlInput.value.length),this.onChange&&(0,u.A)(this.onChange,this)}(!this.worldVisible||this.worldAlpha<.01)&&this.blurInput()}this.cursorObject&&(this.cursorObject.x="center"===this.style.align?this.texture.width/2:this.texture.width,this.cursorObject.visible=this.isFocused),super.update()}set text(t){this.maxInputLen&&(t=t.substr(0,this.maxInputLen)),super.text=t,this.htmlInput&&(this.htmlInput.value=this.filterText(t))}get text(){return super.text}get isEmpty(){return!this.text.trim()}focus(){s.A.addOnClickOnce((t=>{this.htmlInput||(this.htmlInput=document.createElement("input"),this.htmlInput.style.opacity=0,"number"===this.inputType&&(this.htmlInput.pattern="d*"),this.htmlInput.style.position="absolute",this.htmlInput.style.pointerEvents="none",this.htmlInput.addEventListener("keydown",(t=>{13===t.keyCode&&this.blurInput()})),document.body.appendChild(this.htmlInput)),this.htmlInput.value=this.filterText(this.text),this.htmlInput.focus(),t.stopPropagation(),t.preventDefault()}))}static prompt(t,e,i="",n=16,a,o=null,l=null,h=null,u=!0,c="ui/prompt"){if(ja.latestPromptText=void 0,r.A.hasPrefab(c)){var p,d=s.A.showQuestion(t,e,a,(()=>{ja.latestPromptText=p.text.trim(),o&&o(ja.latestPromptText)}),l,(()=>{h&&h()}),u,c);return(p=d.findChildrenByType(ja)[0]).text=i,p.maxInputLen=n,p.focus(),d}var f=window.prompt(t,i)||"";(f=f.trim()).length>n&&(f=f.substr(0,n)),f?o(f):h&&h()}}var Wa={};Wa.AlignedScrollArea=C,Wa.BG=U,Wa.Ball=Z,Wa.BaseRootScene=ir,Wa.BgMusic=nr.A,Wa.Button=ar.A,Wa.ClickOutsideTrigger=sr,Wa.Container=n.A,Wa.DSprite=O.A,Wa.Fill=g,Wa.FlyText=or,Wa.FullscreenPopup=lr,Wa.GameTable=fr,Wa.HTMLOverlay=yr,Wa.Label=zi.A,Wa.ListItem=_r,Wa.MainMenu=sa,Wa.MoneyLabel=oa.A,Wa.MovieClip=D,Wa.MultilineText=la,Wa.NineSlicePlane=h,Wa.NumberInput=wr,Wa.OrientationTrigger=ha,Wa.ParticleSimple=ua,Wa.PaytablePreloaderScene=Ta,Wa.PrefabReference=Ea,Wa.ProgressBar=S,Wa.ProvabilityPanel=Zr,Wa.RealityCheckPopup=Sa,Wa.Resizer=Aa,Wa.ResultList=Ra,Wa.SafariArrowUp=Ca,Wa.Scene=ji.A,Wa.Scissors=R,Wa.ScrollLayer=o.A,Wa.Shape=x,Wa.Spawner=Ba,Wa.SpawnerRing=Ga,Wa.Sprite=Ha.A,Wa.Text=Wi.A,Wa.TextInput=ja,Wa.Trigger=xr,r.A._setClasses(Wa,{AlignedScrollArea:{maxWidthDesktop:700,scrollBarBottomMargin:10,containerMargin:10,maxWidthMobile:0,marginBottomPortrait:10,marginTopPortrait:10,marginLeftRightPortrait:10,marginBottom:10,marginTop:10,marginLeftRight:10,scrollBarPath:null,bgNineSlicePlanePath:null,scrollLayerPath:null,"pivot.y":0,"pivot.x":0,"skew.y":0,"skew.x":0,"scale.y":1,"scale.x":1,interactive:!1,visible:!0,alpha:1,rotation:0,y:0,x:0,name:null},BG:{timeline:null,delay:0,isPlaying:!0,rSpeed:0,ySpeed:0,xSpeed:0,blendMode:0,tint:16777215,image:"EMPTY","pivot.y":0,"pivot.x":0,"skew.y":0,"skew.x":0,"scale.y":1,"scale.x":1,interactive:!1,visible:!0,alpha:1,rotation:0,y:0,x:0,name:null},Ball:{table:null,rSpeed:0,ySpeed:0,xSpeed:0,blendMode:0,tint:16777215,image:"EMPTY","pivot.y":0,"pivot.x":0,"skew.y":0,"skew.x":0,"scale.y":1,"scale.x":1,interactive:!1,visible:!0,alpha:1,rotation:0,y:0,x:0,name:null},BaseRootScene:{faderType:null,backgroundColor:16777215,isNoStackable:!1,isStatic:!1,"pivot.y":0,"pivot.x":0,"skew.y":0,"skew.x":0,"scale.y":1,"scale.x":1,interactive:!1,visible:!0,alpha:1,rotation:0,y:0,x:0},BgMusic:{dynamicPreloading:!1,onIntroFinish:null,volumeUnderModals:.25,fadeOut:.2,fadeIn:.2,globalVolumePath:null,volume:1,resetPositionOnPlay:!0,isPlaying:!0,loop:null,visible:!1,intro:null,"pivot.y":0,"pivot.x":0,"skew.y":0,"skew.x":0,"scale.y":1,"scale.x":1,interactive:!1,alpha:1,rotation:0,y:0,x:0,name:null},Button:{interactive:!0,repeatInterval:0,repeatDelay:0,scrollable:!1,sndOver:null,sndClick:null,hotkey:0,afterClick:null,onClick:null,disabledAlpha:.76,disabledImage:"",pressImage:"",hoverImage:"",rSpeed:0,ySpeed:0,xSpeed:0,blendMode:0,tint:16777215,image:"EMPTY","pivot.y":0,"pivot.x":0,"skew.y":0,"skew.x":0,"scale.y":1,"scale.x":1,visible:!0,alpha:1,rotation:0,y:0,x:0,name:null},ClickOutsideTrigger:{additionalContainers:null,onClickOutside:null,"pivot.y":0,"pivot.x":0,"skew.y":0,"skew.x":0,"scale.y":1,"scale.x":1,interactive:!1,visible:!0,alpha:1,rotation:0,y:0,x:0,name:null},Container:{"pivot.y":0,"pivot.x":0,"skew.y":0,"skew.x":0,"scale.y":1,"scale.x":1,interactive:!1,visible:!0,alpha:1,rotation:0,y:0,x:0,name:null},DSprite:{rSpeed:0,ySpeed:0,xSpeed:0,blendMode:0,tint:16777215,image:"EMPTY","pivot.y":0,"pivot.x":0,"skew.y":0,"skew.x":0,"scale.y":1,"scale.x":1,interactive:!1,visible:!0,alpha:1,rotation:0,y:0,x:0,name:null},Fill:{transparentRight:!1,transparentLeft:!1,transparentBottom:!1,transparentTop:!1,yWaveSpeed:0,yWavePhase:0,yWaveStep:1,yWaveAmp:0,xWaveSpeed:0,xWavePhase:0,xWaveStep:1,xWaveAmp:0,yShiftSpeed:0,xShiftSpeed:0,yShift:0,xShift:0,yRepeat:1,xRepeat:1,verticesY:2,verticesX:2,blendMode:0,tint:16777215,image:"EMPTY","pivot.y":0,"pivot.x":0,"skew.y":0,"skew.x":0,"scale.y":1,"scale.x":1,interactive:!1,visible:!0,alpha:1,rotation:0,y:0,x:0,name:null},FlyText:{maxWidth:0,textTransform:0,"style.letterSpacing":0,"style.padding":0,"style.leading":0,"style.fontWeight":"normal","style.fontFamily":null,"style.drShDistance":5,"style.drShBlur":0,"style.drShAngle":.524,"style.drShAlpha":1,"style.drShColor":"#000000","style.dropShadow":!1,"style.stroke":"#000000","style.strokeThickness":0,"style.fillGradientStops":null,"style.fill":"#ffffff",verticalAlign:"top","style.align":"center","style.fontSize":12,translatableText:null,text:"",image:null,blendMode:0,tint:16777215,"pivot.y":0,"pivot.x":0,"skew.y":0,"skew.x":0,"scale.y":1,"scale.x":1,interactive:!1,visible:!0,alpha:1,rotation:0,y:0,x:0,name:null},FullscreenPopup:{maxWidthDesktop:700,scrollBarBottomMargin:10,containerMargin:10,maxWidthMobile:0,marginTopBottom:10,marginLeftRight:10,scrollBarPath:null,bgNineSlicePlanePath:null,scrollLayerPath:null,"pivot.y":0,"pivot.x":0,"skew.y":0,"skew.x":0,"scale.y":1,"scale.x":1,interactive:!1,visible:!0,alpha:1,rotation:0,y:0,x:0,name:null},GameTable:{highG:0,highR:455,mediumG:122,mediumR:455,lowG:255,lowR:255,centerG:455,centerR:0,ballWaitingPath:null,pinsContainer:null,tooltip:null,hole:null,"pivot.y":0,"pivot.x":0,"skew.y":0,"skew.x":0,"scale.y":1,"scale.x":1,interactive:!1,visible:!0,alpha:1,rotation:0,y:0,x:0,name:null},HTMLOverlay:{bouncingBounds:!1,fadeSpeed:.1,className:null,zIndex:1e4,handleScroll:!0,innerHTML:null,_mouseHandlerContainer:null,mobileInertia:.92,desktopInertia:.8,mouseHandler:null,fullArea:null,visibleArea:null,"pivot.y":0,"pivot.x":0,"skew.y":0,"skew.x":0,"scale.y":1,"scale.x":1,interactive:!1,visible:!0,alpha:1,rotation:0,y:0,x:0,name:null},Label:{onCounterFinish:null,onCounter:null,onChanged:null,decimalsCount:0,counterSpeed:1,plusMinus:!1,isNumeric:!1,template:null,refreshInterval:10,dataPath:null,maxWidth:0,textTransform:0,"style.letterSpacing":0,"style.padding":0,"style.leading":0,"style.fontWeight":"normal","style.fontFamily":null,"style.drShDistance":5,"style.drShBlur":0,"style.drShAngle":.524,"style.drShAlpha":1,"style.drShColor":"#000000","style.dropShadow":!1,"style.stroke":"#000000","style.strokeThickness":0,"style.fillGradientStops":null,"style.fill":"#ffffff",verticalAlign:"top","style.align":"center","style.fontSize":12,translatableText:null,text:"",image:null,blendMode:0,tint:16777215,"pivot.y":0,"pivot.x":0,"skew.y":0,"skew.x":0,"scale.y":1,"scale.x":1,interactive:!1,visible:!0,alpha:1,rotation:0,y:0,x:0,name:null},ListItem:{timeline:null,delay:0,isPlaying:!0,rSpeed:0,ySpeed:0,xSpeed:0,blendMode:0,tint:16777215,image:"EMPTY","pivot.y":0,"pivot.x":0,"skew.y":0,"skew.x":0,"scale.y":1,"scale.x":1,interactive:!1,visible:!0,alpha:1,rotation:0,y:0,x:0,name:null},MainMenu:{gameTable:null,faderType:null,backgroundColor:16777215,isNoStackable:!1,isStatic:!1,"pivot.y":0,"pivot.x":0,"skew.y":0,"skew.x":0,"scale.y":1,"scale.x":1,interactive:!1,visible:!0,alpha:1,rotation:0,y:0,x:0},MoneyLabel:{countOnStart:!1,isNumeric:!0,maxWidthLandscape:0,maxWidthPortrait:0,decimalsCountPath:null,dataPath2:null,onCounterFinish:null,onCounter:null,onChanged:null,decimalsCount:0,counterSpeed:1,plusMinus:!1,template:null,refreshInterval:10,dataPath:null,maxWidth:0,textTransform:0,"style.letterSpacing":0,"style.padding":0,"style.leading":0,"style.fontWeight":"normal","style.fontFamily":null,"style.drShDistance":5,"style.drShBlur":0,"style.drShAngle":.524,"style.drShAlpha":1,"style.drShColor":"#000000","style.dropShadow":!1,"style.stroke":"#000000","style.strokeThickness":0,"style.fillGradientStops":null,"style.fill":"#ffffff",verticalAlign:"top","style.align":"center","style.fontSize":12,translatableText:null,text:"",image:null,blendMode:0,tint:16777215,"pivot.y":0,"pivot.x":0,"skew.y":0,"skew.x":0,"scale.y":1,"scale.x":1,interactive:!1,visible:!0,alpha:1,rotation:0,y:0,x:0,name:null},MovieClip:{timeline:null,delay:0,isPlaying:!0,rSpeed:0,ySpeed:0,xSpeed:0,blendMode:0,tint:16777215,image:"EMPTY","pivot.y":0,"pivot.x":0,"skew.y":0,"skew.x":0,"scale.y":1,"scale.x":1,interactive:!1,visible:!0,alpha:1,rotation:0,y:0,x:0,name:null},MultilineText:{breakWords:!1,maxHeightPortrait:0,maxHeightLandscape:0,maxWidthPortrait:400,maxWidthLandscape:400,maxWidth:0,textTransform:0,"style.letterSpacing":0,"style.padding":0,"style.leading":0,"style.fontWeight":"normal","style.fontFamily":null,"style.drShDistance":5,"style.drShBlur":0,"style.drShAngle":.524,"style.drShAlpha":1,"style.drShColor":"#000000","style.dropShadow":!1,"style.stroke":"#000000","style.strokeThickness":0,"style.fillGradientStops":null,"style.fill":"#ffffff",verticalAlign:"top","style.align":"center","style.fontSize":12,translatableText:null,text:"",image:null,blendMode:0,tint:16777215,"pivot.y":0,"pivot.x":0,"skew.y":0,"skew.x":0,"scale.y":1,"scale.x":1,interactive:!1,visible:!0,alpha:1,rotation:0,y:0,x:0,name:null},NineSlicePlane:{bottomHeight:5,topHeight:5,rightWidth:5,leftWidth:5,height:200,width:200,blendMode:0,tint:16777215,image:"EMPTY","pivot.y":0,"pivot.x":0,"skew.y":0,"skew.x":0,"scale.y":1,"scale.x":1,interactive:!1,visible:!0,alpha:1,rotation:0,y:0,x:0,name:null},NumberInput:{wrapValue:!1,_currentTextField:null,interactive:!0,valuesList:null,onChanged:null,refreshInterval:10,dataPath:null,textView:null,decimalsCount:0,step:1,min:0,max:100,value:0,"pivot.y":0,"pivot.x":0,"skew.y":0,"skew.x":0,"scale.y":1,"scale.x":1,visible:!0,alpha:1,rotation:0,y:0,x:0,name:null},OrientationTrigger:{portraitR:0,portraitScaleX:1,portraitScaleY:1,portraitAlpha:1,portraitY:0,portraitX:0,landscapeR:0,landscapeScaleY:1,landscapeScaleX:1,landscapeAlpha:1,landscapeY:0,landscapeX:0,onLandscape:null,onPortrait:null,"pivot.y":0,"pivot.x":0,"skew.y":0,"skew.x":0,"scale.y":1,"scale.x":1,interactive:!1,visible:!0,alpha:1,rotation:0,y:0,x:0,name:null},ParticleSimple:{rSpeed:0,ySpeed:0,xSpeed:0,blendMode:0,tint:16777215,image:"EMPTY","pivot.y":0,"pivot.x":0,"skew.y":0,"skew.x":0,"scale.y":1,"scale.x":1,interactive:!1,visible:!0,alpha:1,rotation:0,y:0,x:0,name:null},PaytablePreloaderScene:{faderType:null,backgroundColor:16777215,isNoStackable:!1,isStatic:!1,"pivot.y":0,"pivot.x":0,"skew.y":0,"skew.x":0,"scale.y":1,"scale.x":1,interactive:!1,visible:!0,alpha:1,rotation:0,y:0,x:0},PrefabReference:{inheritProps:!0,dynamicPrefabName:null,prefabName:null,"pivot.y":0,"pivot.x":0,"skew.y":0,"skew.x":0,"scale.y":1,"scale.x":1,interactive:!1,visible:!0,alpha:1,rotation:0,y:0,x:0,name:null},ProgressBar:{cap:null,bar:null,step:1,max:100,min:0,afterSlide:null,onChanged:null,refreshInterval:10,capMargin:5,height:200,dataPath:null,"pivot.y":0,"pivot.x":0,"skew.y":0,"skew.x":0,"scale.y":1,"scale.x":1,interactive:!1,visible:!0,alpha:1,rotation:0,y:0,x:0,name:null},ProvabilityPanel:{onDisable:null,onEnable:null,isApplyInteractivity:!0,yShift:0,xShift:0,scaleShift:0,alphaShift:-1,damp:.85,pow:.02,invert:!1,dataPath:null,state:!1,"pivot.y":0,"pivot.x":0,"skew.y":0,"skew.x":0,"scale.y":1,"scale.x":1,interactive:!1,visible:!0,alpha:1,rotation:0,y:0,x:0,name:null},RealityCheckPopup:{fixed:!1,yPos:0,relativeY:!1,xPos:0,relativeX:!1,resizeY:!1,resizeX:!1,"pivot.y":0,"pivot.x":0,"skew.y":0,"skew.x":0,"scale.y":1,"scale.x":1,interactive:!1,visible:!0,alpha:1,rotation:0,y:0,x:0,name:null},Resizer:{fixed:!1,yPos:0,relativeY:!1,xPos:0,relativeX:!1,resizeY:!1,resizeX:!1,"pivot.y":0,"pivot.x":0,"skew.y":0,"skew.x":0,"scale.y":1,"scale.x":1,interactive:!1,visible:!0,alpha:1,rotation:0,y:0,x:0,name:null},ResultList:{"pivot.y":0,"pivot.x":0,"skew.y":0,"skew.x":0,"scale.y":1,"scale.x":1,interactive:!1,visible:!0,alpha:1,rotation:0,y:0,x:0,name:null},SafariArrowUp:{"pivot.y":0,"pivot.x":0,"skew.y":0,"skew.x":0,"scale.y":1,"scale.x":1,interactive:!1,visible:!0,alpha:1,rotation:0,y:0,x:0,name:null},Scissors:{enabled:!0,rect:null,"pivot.y":0,"pivot.x":0,"skew.y":0,"skew.x":0,"scale.y":1,"scale.x":1,interactive:!1,visible:!0,alpha:1,rotation:0,y:0,x:0,name:null},Shape:{_shapePoints:null,_spriteRect:null,shapeLineAlignment:1,shapeLineAlpha:1,shapeLineColor:16777215,shapeLineWidth:0,isItHitArea:!1,shapeFillColor:0,shapeFillAlpha:1,shapeRadius:10,height:100,width:100,shape:0,"pivot.y":0,"pivot.x":0,"skew.y":0,"skew.x":0,"scale.y":1,"scale.x":1,interactive:!1,visible:!0,alpha:1,rotation:0,y:0,x:0,name:null},Spawner:{_container:null,container:null,applyRotation:!1,speedRandom:10,speed:10,intervalRandom:0,interval:0,delay:0,enabled:!0,prefabToSpawn:null,"pivot.y":0,"pivot.x":0,"skew.y":0,"skew.x":0,"scale.y":1,"scale.x":1,interactive:!1,visible:!0,alpha:1,rotation:0,y:0,x:0,name:null},SpawnerRing:{_container:null,container:null,radius:10,countRandom:10,count:10,speedRandom:10,speed:10,prefabToSpawn:null,"pivot.y":0,"pivot.x":0,"skew.y":0,"skew.x":0,"scale.y":1,"scale.x":1,interactive:!1,visible:!0,alpha:1,rotation:0,y:0,x:0,name:null},Sprite:{blendMode:0,tint:16777215,image:"EMPTY","pivot.y":0,"pivot.x":0,"skew.y":0,"skew.x":0,"scale.y":1,"scale.x":1,interactive:!1,visible:!0,alpha:1,rotation:0,y:0,x:0,name:null},Text:{maxWidth:0,textTransform:0,"style.letterSpacing":0,"style.padding":0,"style.leading":0,"style.fontWeight":"normal","style.fontFamily":null,"style.drShDistance":5,"style.drShBlur":0,"style.drShAngle":.524,"style.drShAlpha":1,"style.drShColor":"#000000","style.dropShadow":!1,"style.stroke":"#000000","style.strokeThickness":0,"style.fillGradientStops":null,"style.fill":"#ffffff",verticalAlign:"top","style.align":"center","style.fontSize":12,translatableText:null,text:"",image:null,blendMode:0,tint:16777215,"pivot.y":0,"pivot.x":0,"skew.y":0,"skew.x":0,"scale.y":1,"scale.x":1,interactive:!1,visible:!0,alpha:1,rotation:0,y:0,x:0,name:null},TextInput:{cursorObject:null,onChange:null,inputType:"text",maxInputLen:0,maxWidth:0,textTransform:0,"style.letterSpacing":0,"style.padding":0,"style.leading":0,"style.fontWeight":"normal","style.fontFamily":null,"style.drShDistance":5,"style.drShBlur":0,"style.drShAngle":.524,"style.drShAlpha":1,"style.drShColor":"#000000","style.dropShadow":!1,"style.stroke":"#000000","style.strokeThickness":0,"style.fillGradientStops":null,"style.fill":"#ffffff",verticalAlign:"top","style.align":"center","style.fontSize":12,translatableText:null,text:"",image:null,blendMode:0,tint:16777215,"pivot.y":0,"pivot.x":0,"skew.y":0,"skew.x":0,"scale.y":1,"scale.x":1,interactive:!1,visible:!0,alpha:1,rotation:0,y:0,x:0,name:null},Trigger:{onDisable:null,onEnable:null,isApplyInteractivity:!0,yShift:0,xShift:0,scaleShift:0,alphaShift:-1,damp:.85,pow:.02,invert:!1,dataPath:null,state:!1,"pivot.y":0,"pivot.x":0,"skew.y":0,"skew.x":0,"scale.y":1,"scale.x":1,interactive:!1,visible:!0,alpha:1,rotation:0,y:0,x:0,name:null}})},1469:(t,e,i)=>{"use strict";var r,n=i(9443),a=i(874),s=new Promise((t=>{r=t}));const o=(t,e,i,n,a,s)=>{function o(e){return new Promise((i=>{var r=new Image;r.src=e.indexOf("//")>0?e:t+e,r.onload=i}))}var l;a&&(n=n.concat(s?["preloader-assets/split.png","preloader-assets/spin.gif","preloader-assets/spin2.gif","preloader-assets/spin3.gif","preloader-assets/b.png","preloader-assets/i.png","preloader-assets/g.png","preloader-assets/a.png","preloader-assets/m.png","preloader-assets/i.png","preloader-assets/n.png"]:["preloader-assets/logo.png"])),window.__OPTIONS__.ui.brand_logo?(n.push(window.__OPTIONS__.ui.brand_logo),l=300):l=150;var h=400+l;function u(){var t=document.querySelector(".preloader");if(t){var e=Math.min(window.innerWidth/700,window.innerHeight/h,1);t.style.transform="scale("+e+")",t.style.left=Math.round(window.innerWidth/2-350)+"px",t.style.top=Math.round(window.innerHeight/2-h/2)+"px"}else window.removeEventListener("resize",u)}function c(){var n=document.getElementsByClassName("preloader")[0];n&&(n.innerHTML=(`\n\t\t\t\n\t
\n'+e+'
\n\t
'+(a?`
`+(s?'
\n\t\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t
\n\t\t\t\t\t':"")+"
":"")+'
\n\t\t\t
\n\t\t
'+(window.__OPTIONS__.ui.brand_logo?'':"")+"
").replace(/_resourcesPath_/g,t)),r(),u(),window.addEventListener("resize",u)}Promise.all(n.map(o)).then(c)},l=t=>{o(t,u,c,h,n.A.casinoOptions.ui.logo_visible)};var h=["preloader-assets/loader-img.png"],u='\n
\n',c='\n.game-image {\n\t\theight: 400px;\n\t\tmax-width: 700px;\n\t\tbackground-image: url("_resourcesPath_preloader-assets/loader-img.png");\n\t\tbackground-size: contain;\n\t\tbackground-repeat: no-repeat;\n\t\tbackground-position: center;\n\t}\n',p=(i(6113),i(4381)),d=i(4051),f=i(3800),g=-1!==window.location.origin.indexOf("bgaming-system");window.addEventListener("keydown",(t=>{g&&80===t.keyCode&&t.ctrlKey&&(t.preventDefault(),y.toggleGame(!0))}));var m,A,v={PAUSE:"pause_gameplay",PAUSE_SAFE:"pause_safe_gameplay",RESUME:"resume_gameplay"};window.addEventListener("message",(t=>{if(t.data){var e=t.data;if("string"==typeof e)try{e=JSON.parse(e)}catch(i){return}switch((e.name||e.Name||"").toLowerCase()){case v.PAUSE:y.pauseGame(!0);break;case v.PAUSE_SAFE:y.pauseGameSafe(!0,(()=>{t.source.postMessage(e.callback||"game_paused",t.origin)}));break;case v.RESUME:y.resumeGame()}}}),!1),p.A.addListener((t=>{switch(t){case f.A.GAME_LOADED:case f.A.FINISH_ROUND_ANIMATIONS:y._onGameRoundAnimationsFinish()}}));var y={game:n.A,toggleGame(t){m?y.resumeGame():y.pauseGame(t)},pauseGame(t){m||((m=n.A.showModal("thing-games-utils/pause-popup")).alpha=t?0:1,m.findChildByName("close-btn").callback=()=>{n.A.hideModal(m),m=null})},pauseGameSafe(t,e=(()=>{})){var i=A||(()=>y.pauseGame(t));A=()=>{i(),e()},(m||n.A.currentScene&&!n.A.currentScene.flowLocked)&&(A(),A=null)},resumeGame(){m&&(n.A.hideModal(m),m=null),A=null},stopAutospins(){n.A.currentScene&&n.A.currentScene.autospinPanel?n.A.currentScene.autospinPanel.stopAutospins():n.A.currentScene.stopAutoplay&&n.A.currentScene.stopAutoplay()},setAudioSfx(t){n.A.Sound.soundEnabled=t},setAudioMusic(t){n.A.Sound.musicEnabled=t},formatMoney:t=>d.A.formatMoney(t/n.A.data.currencyDivider,n.A.data.currencyDigits),formatMoneyToNumber:t=>t/n.A.data.currencyDivider,_onGameRoundAnimationsFinish(){A&&(A(),A=null)},showPaytable(){var t;null===(t=this.game.all.popupsLayer)||void 0===t||t.showPaytable()},hidePaytable(){var t;null===(t=this.game.all.popupsLayer)||void 0===t||t.togglePaytable()},showRules(){var t;null===(t=this.game.all.popupsLayer)||void 0===t||t.showRules()},hideRules(){var t;null===(t=this.game.all.popupsLayer)||void 0===t||t.toggleRules()}};const _=y;var b=i(4581),x=i(4418),T=i(9372),E=i(8201),S=i(230);class w{static initGame(t,e,i,r=s){function n(){var e="\n\t\tbody, html, canvas {\n\t\t\tposition: absolute;\n\t\t\ttop: 0; \n\t\t\tbottom: 0;\n\t\t\tleft: 0;\n\t\t\tright: 0;\n\t\t\tmargin: 0;\n\t\t\tpadding: 0;\n\t\t\toverflow: visible;\n\t\t\twidth:100%;\n\t\t}\n\n\t\thtml {\n\t\t\toverflow: hidden;\n\t\t}\n\n\t\tcanvas {\n\t\t\theight:100%;\n\t\t\tposition: fixed;\n\t\t\t-webkit-touch-callout: none; /* iOS Safari */\n\t\t\t-webkit-user-select: none; /* Safari */\n\t\t\tuser-select: none; /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */\n\t\t}\n\n\t\t.preloader{\n\t\t\tz-index: 20;\n\t\t}\n\t\t";t.applyCSS(e)}window.addEventListener("load",(()=>{x.A.beforeGameInit();var a=t.casinoOptions;n();var s=a.resources_path+"/",o=S.projectDesc,l=o.imagesToRemove||[],h=o.mobileUIPath||"ui/mobile-slot/",u=o.desktopUIPath||"ui/desktop-slot/";l.push(t.isMobile.any?u:h);var c=function(t){l.some((e=>t.startsWith(e)))&&delete S.images[t]};for(var d in S.images)c(d);S.projectDesc.localeResourcesPath="https://translations.bgaming-network.com/Plinko",e.setCurrentLanguage(a.locale,{isHieroglyphic:/ja|zh$/.test(a.locale)}),b.A.initMoneyFormatter(a.locale),console.log(o.title+" v"+o.version),p.A.track(f.A.START_LOADING,null,_),T.A.once(E.k.GAME_PRELOADER_COMPLETE,(()=>{p.A.track(f.A.GAME_RESOURCES_LOADED)})),T.A.on(E.k.GAME_SHOW_MODAL,(()=>{p.A.track(f.A.SHOW_MODAL)})),i(s),r.then((()=>{t.init(void 0,o.id+a.cache_player_id,s)}))}))}}w.initGame(n.A,a.A,l)},684:(t,e,i)=>{"use strict";i.d(e,{A:()=>f});var r,n=i(9443),a=i(4049),s=i(9135),o=i(5222),l=i(4222),h=i(2468),u=i(2982),c=.0101,p=[],d=!1;class f extends o.A{constructor(){super(),this._externalVolume=0}init(){this._externalVolume=0,super.init(),p.push(this),f._recalculateMusic(),this.dynamicPreloading||(s.A.preloadSound(this.intro),s.A.preloadSound(this.loop)),this._musInitialized=!0,this.applyResetPosition(),f._recalculateMusic(),this._initIosSoundFix()}onRemove(){super.onRemove();var t=p.indexOf(this);t>=0&&p.splice(t,1),f._recalculateMusic(),u.A.onMusicRemove(this),this.musicFragmentHash=void 0,this._externalVolume=0,this._musInitialized=!1,this.customFade=null,this.onIntroFinish=null,this._removeIosSoundFix()}setVolume(t){this.volume=t}update(){super.update(),this._isPlaying&&this.globalVolumePath&&this._appliedPathVol!==(0,h.A)(this.globalVolumePath,this)&&f._recalculateMusic()}applyResetPosition(){this.isPlaying&&this.resetPositionOnPlay&&this.resetPosition()}get isPlaying(){return this._isPlaying}set isPlaying(t){this._isPlaying!==t&&(this._isPlaying=t,this.applyResetPosition(),f._recalculateMusic())}get intro(){return this._intro}set intro(t){this._intro!==t&&(this._intro=t,this.musicFragmentHash=(this._intro||"")+"#"+(this._loop||""),f._recalculateMusic())}get loop(){return this._loop}set loop(t){this._loop!==t&&(this._loop=t,this.musicFragmentHash=(this._intro||"")+"#"+(this._loop||""),f._recalculateMusic())}get volume(){return this._volume}set volume(t){this._volume!==t&&(this._volume=t,f._recalculateMusic())}_getTargetVol(){return this._isPlaying&&this._musInitialized?(this.globalVolumePath?(this._appliedPathVol=(0,h.A)(this.globalVolumePath,this),t=this._appliedPathVol):t=a.A.musicVol,this._volume*this._externalVolume*t||0):0;var t}play(t){this.customFade=t,this.isPlaying=!0}stop(t){this.customFade=t,this.isPlaying=!1}_getFade(t){return"number"==typeof this.customFade?this.customFade:t?this.fadeOut:this.fadeIn}resetPosition(){u.A.resetPosition(this.musicFragmentHash)}_onIntroFinish(){this.onIntroFinish&&(0,l.A)(this.onIntroFinish,this)}_touchStartHandler(){"suspended"!==Howler.ctx.state&&"interrupted"!==Howler.ctx.state||Howler.ctx.resume().then((()=>{f._recalculateMusic()}))}_initIosSoundFix(){(n.A.isMobile.apple.phone||n.A.isMobile.apple.ipod)&&!d&&(document.addEventListener("touchstart",this._touchStartHandler),d=!0)}_removeIosSoundFix(){d&&(document.removeEventListener("touchstart",this._touchStartHandler),d=!1)}static _recalculateMusic(){r||(setTimeout(A,1),r=!0)}static _clearCustomFades(t=null){for(var e of p)e.customFade=t;u.A._applyFadeForAll(t)}set fade(t){this.fadeIn=t,this.fadeOut=t}}var g=1e6,m=1e5;function A(){if(r=!1,!n.A._isWaitingToHideFader){var t=[],e=new Map,i=n.A.currentFader;for(var s of(i&&(e.set(g,[]),t.push(g)),p)){var o=s.getRootContainer(),l=void 0;if(o===n.A.currentContainer)l=m;else if(o===i)l=g;else{if(!o.parent){s._externalVolume=0;continue}l=o.parent.getChildIndex(o)}e.has(l)||(t.push(l),e.set(l,[])),e.get(l).push(s)}t.sort(v);var h=a.A.isSoundsLockedByBrowser||n.A._loadingErrorIsDisplayed||!n.A.isVisible;for(var d of t){var f=e.get(d);for(var A of f)A._externalVolume=h?0:d=c&&(_._loop||_._intro)&&(_._cachedTargetVol=b,y.push(_))}u.A.setPlayingBGMusics(y)}}var v=(t,e)=>e-t},9401:(t,e,i)=>{"use strict";i.d(e,{A:()=>u});var r,n=i(9443),a=i(4222),s=i(6711),o=i(4049),l=(i(9135),0),h=30;class u extends s.A{init(){super.init(),this.on("pointerdown",this.onDown),this.on("pointerup",this.onUp),this.on("pointerover",this.onOver),this.on("pointerout",this.onOut),c.unshift(this),this.buttonMode=!0,this.initialScale=this.scale.x,this.initialImage=this.image,this.interactive?this.enable():this.disable(),this.scrollable&&(this.pointerStartPos=null)}onRemove(){super.onRemove(),this.onOut(),this.removeListener("pointerdown",this.onDown),this.removeListener("pointerup",this.onUp),this.removeListener("pointerover",this.onOver),this.removeListener("pointerout",this.onOut);var t=c.indexOf(this);t>=0&&c.splice(t,1),r===this&&(r=null),this.initialImage=null,this.interactive=!1,this.buttonMode=!1,this.hasOwnProperty("callback")&&delete this.callback}disable(){this.initialImage&&(this.onUp(),this.onOut(),this.disabledImage?this.image=this.disabledImage:this.alpha=this.disabledAlpha),this.interactive=!1}enable(){this.initialImage&&(this.disabledImage?this.image=this.initialImage:this.alpha=1),this.interactive=!0}get isOvered(){return this===u.overredButton}get isDowned(){return this===u.downedButton}callClick(){this.isCanBePressed&&this._executeOnClick("invoke")}_executeOnClick(t){u.globalOnClick&&u.globalOnClick(this,t),u.clickedButton=this,this.callback&&this.callback(),this.onClick&&(0,a.A)(this.onClick,this),this.afterClick&&(0,a.A)(this.afterClick,this),u.clickedButton=null,this.sndClick&&o.A.play(this.sndClick),l=n.A.time}onDown(t,e="pointerdown"){if(o.A._unlockSound(),!(n.A.time===l)){if(t){if(1!==t.data.buttons)return;n.A._mouseHandlerGlobal(t)}this.isCanBePressed&&Math.abs(l-n.A.time)>1&&u.downedButton!==this&&(u.downedButton&&u.downedButton.onUp(),this.pressImage?this.image=this.pressImage:this.scale.x=this.scale.y=this.initialScale*(this.isOvered?1:.9),u.downedButton=this,this.curDelay=this.repeatDelay,this.scrollable?this.pointerStartPos={x:n.A.mouse.x,y:n.A.mouse.y}:this._executeOnClick(e))}}update(){this.isDowned&&(n.A.mouse.click||r===this?this.curDelay>0&&(this.curDelay--,0===this.curDelay&&(this.isCanBePressed&&Math.abs(l-n.A.time)>1&&this._executeOnClick("autorepeat"),this.curDelay=this.repeatInterval)):this.onUp()),super.update()}onUp(){u.downedButton===this&&(this.interactive&&(this.pressImage?this.initialImage&&(this.image=this.initialImage):this.scale.x=this.scale.y=this.initialScale*(this.isOvered?1.05:1)),u.downedButton=null,this.scrollable&&Math.hypot(n.A.mouse.x-this.pointerStartPos.x,n.A.mouse.y-this.pointerStartPos.y)<=h&&this._executeOnClick("pointerup"))}onOver(){n.A.isTouchscreen||u.overredButton!==this&&(u.overredButton&&u.overredButton.onOut(),u.overredButton=this,this.hoverImage?this.image=this.hoverImage:this.scale.x=this.scale.y=1.05*this.initialScale,this.sndOver&&o.A.play(this.sndOver),this.gotoLabelRecursive("btn-over"))}_onDisableByTrigger(){this.onOut()}onOut(){u.overredButton===this&&(u.overredButton=null,this.interactive&&(this.hoverImage?this.initialImage&&(this.image=this.initialImage):this.scale.x=this.scale.y=this.initialScale),this.onUp(),this.gotoLabelRecursive("btn-out"))}static _tryToClickByKeycode(t){for(var e of c)if(e.hotkey===t&&e.isCanBePressed)return e.onDown(null,"hotkey"),e}}var c=[];function p(){var t;null!==(t=r)&&void 0!==t&&t.isDowned&&(r.onUp(),r=null)}window.addEventListener("keydown",(t=>{t.repeat||(r=u._tryToClickByKeycode(t.keyCode))})),window.addEventListener("blur",p),window.addEventListener("visibilitychange",p),window.addEventListener("keyup",(t=>{r&&r.hotkey===t.keyCode&&(r.onUp(),r=null)}))},5222:(t,e,i)=>{"use strict";i.d(e,{A:()=>d});var r,n,a=i(9443),s=(i(3951),i(1233).Container);s.prototype.update=function(){for(var t of this.children)t.update()},s.prototype.init=()=>{},s.prototype.onRemove=()=>{};var o,l,h=t=>{t.name===r&&(n=t)};s.prototype.findChildByName=function(t){return r=t,n=null,this.forAllChildren(h),n};var u,c=t=>{t instanceof l&&o.push(t)};s.prototype.findChildrenByType=function(t){return l=t,o=[],this.forAllChildren(c),o};var p=t=>{t.name===u&&o.push(t)};s.prototype.findChildrenByName=function(t){return u=t,o=[],this.forAllChildren(p),o},s.prototype.forAllChildren=function(t){for(var e of this.children)t(e),e.forAllChildren(t)},Object.defineProperty(s.prototype,"isCanBePressed",{get:function(){if(!this.interactive||a.A.disableAllButtons)return!1;for(var t=this.parent;t!==a.A.stage&&t.interactiveChildren&&t.visible;)t=t.parent;return t.interactiveChildren&&t.visible},enumerable:!0});const d=s},6711:(t,e,i)=>{"use strict";i.d(e,{A:()=>n});var r=i(1220);class n extends r.A{constructor(){super(),this.anchor.set(.5)}angleBySpeed(){this.rotation=Math.atan2(this.ySpeed,this.xSpeed)}update(){this.x+=this.xSpeed,this.y+=this.ySpeed,this.rotation+=this.rSpeed,super.update()}}},3951:(t,e,i)=>{"use strict";var r=i(9135),n=i(9443),a=i(1233).DisplayObject;a.prototype.getGlobalRotation=function(){for(var t=this.rotation,e=this.parent;e&&e!==n.A.stage;)t+=e.rotation,e=e.parent;return t},a.prototype.getScenePosition=function(t,e=!1){return n.A.stage.toLocal(this,this.parent,t,e)},a.prototype.getRootContainer=function(){for(var t=this;t&&t.parent!==n.A.stage&&t.parent;)t=t.parent;return t},a.prototype.detachFromParent=function(){this.parent&&this.parent.removeChild(this)},a.prototype.init=()=>{},a.prototype.onRemove=()=>{},a.prototype.remove=function(){r.A.destroyObjectAndChildren(this,!0)},a.prototype.removeWithoutHolder=function(){r.A.destroyObjectAndChildren(this)},a.prototype.findParentByType=function(t){for(var e=this.parent;e&&!(e instanceof t);)e=e.parent;return e},a.prototype.findParentByName=function(t){for(var e=this.parent;e&&e.name!==t;)e=e.parent;return e},a.prototype.addFilter=function(t){this.filters?this.filters.push(t):this.filters=[t]},a.prototype.removeFilter=function(t){var e=this.filters.indexOf(t);e>=0&&this.filters.splice(e,1)};Object.defineProperties(a.prototype,{___info:{get:function(){for(var t=getObjectName(this),e=this.parent;e&&e!==n.A.stage;)t+=" > "+getObjectName(e),e=e.parent;return t}},"scale.x":{get:function(){return this.transform.scale.x},set:function(t){this.transform.scale.x=t},configurable:!0},"scale.y":{get:function(){return this.transform.scale.y},set:function(t){this.transform.scale.y=t},configurable:!0},"skew.x":{get:function(){return this.transform.skew.x},set:function(t){this.transform.skew.x=t},configurable:!0},"skew.y":{get:function(){return this.transform.skew.y},set:function(t){this.transform.skew.y=t},configurable:!0},"pivot.x":{get:function(){return this.transform.pivot.x},set:function(t){this.transform.pivot.x=t},configurable:!0},"pivot.y":{get:function(){return this.transform.pivot.y},set:function(t){this.transform.pivot.y=t},configurable:!0}})},4051:(t,e,i)=>{"use strict";i.d(e,{A:()=>u});var r=i(2468),n=i(4222),a=i(874),s=i(4894),o=i(9443),l=i(4319);function h(t,e=0){var i,r=t<0;if(r&&(t=-t),e>0){var n=t.toFixed(e).split(".");n[0].length>3&&(n[0]=n[0].replace(/(.)(?=(.{3})+$)/g,"$1 ")),i=n.join(".")}else i=t.toFixed(0).replace(/(.)(?=(.{3})+$)/g,"$1 ");return r?"-"+i:i}class u extends s.A{init(){super.init(),this.currentInterval=0,this.text="",this.showedVal=void 0,this.processedVal=void 0,this.lastUpdateTime=o.A.time}onLanguageChanged(){this._translatableText&&(this.showedVal=void 0,this.refreshNow(),o.A.__paused&&super.onLanguageChanged())}customizeVal(t){return t}update(){if(o.A.time-this.lastUpdateTime>1&&this.refreshNow(),this.lastUpdateTime=o.A.time,this.currentInterval<=0&&this.dataPath){var t=(0,r.A)(this.dataPath,this);(t=this.customizeVal(t))||0===t?(t!==this.processedVal&&(this.onChanged&&(0,n.A)(this.onChanged,this),this.processedVal=t),t!==this.showedVal&&(this.visible=!0,this.applyValue(t))):(this.processedVal=void 0,this.showedVal=void 0,this.visible=!1),this.currentInterval=this.refreshInterval}else this.currentInterval--;super.update()}applyValue(t){if(this.isNumeric){if(this.counterSpeed<1&&void 0!==this.showedVal){var e=Math.max(1/Math.pow(10,this.decimalsCount),Math.abs((t-(this.showedVal||0))*this.counterSpeed));this.showedVal=(0,l.CR)(this.showedVal||0,t,e),this.showedVal===t?this.onCounterFinish&&(0,n.A)(this.onCounterFinish,this):this.onCounter&&(0,n.A)(this.onCounter,this)}else this.showedVal=t;t=this.plusMinus&&t>0?"+"+u.formatMoney(this.showedVal,this.decimalsCount):u.formatMoney(this.showedVal,this.decimalsCount)}else this.showedVal=t;this.template?this.text=this.template.replace("%d",t):this._translatableText?this.text=(0,a.A)(this._translatableText,t):this.text=t}freezeCounter(){this.currentInterval=1e9}unfreezeCounter(){this.currentInterval=0}refreshNow(){this.currentInterval=0}}u.formatMoney=h},9087:(t,e,i)=>{"use strict";i.d(e,{A:()=>l});var r=i(5222),n=i(5622),a=i(9443),s={},o=0;class l extends r.A{static promise(t,e=a.A.currentContainer){var i=n.A.create(l);e.addChild(i),i._promiseWaitForResult=!0;var r=o++;return i._promiseId=r,t((t=>{i._promiseId===r&&(i._promiseResultWaiting=t)}),(t=>{i._promiseId===r&&(i._promiseErrorWaiting=t)}),i),i}static resolve(t){return l.promise((e=>{e(t)}))}static all(t,e=a.A.currentContainer){var i=[],r=t.length;return l.promise(((e,n,a)=>{t.some(((t,s)=>{a.addChild(t),t.then((t=>{i[s]=t})),t.catch((t=>{(i=[])[s]=t,n(i),i=null})),t.finally((()=>{0===--r&&i&&e(i)}))}))}),e)}onRemove(){super.onRemove(),this._promiseWaitForResult&&(this._promiseWaitForResult=!1,this._handleFinally()),this._promiseId=-1,this._rejectHandlers.length=0,this._resolveHandlers.length=0,this._finallyHandlers.length=0,this._promiseResultWaiting=s,this._promiseErrorWaiting=s}then(t){return this._resolveHandlers.push(t),this}catch(t){return this._rejectHandlers.push(t),this}finally(t){return this._finallyHandlers.push(t),this}constructor(){super(),this._resolveHandlers=[],this._finallyHandlers=[],this._rejectHandlers=[],this.visible=!1,this._promiseResultWaiting=s,this._promiseErrorWaiting=s}_handleFinally(){for(var t,e=this,i=function(){try{e._finallyHandlers.shift()()}catch(t){return setTimeout((()=>{throw t}),0),e._turnPromiseRejected(t),{v:void 0}}};this._finallyHandlers.length>0;)if(t=i())return t.v;this._promiseWaitForResult=!1}_turnPromiseRejected(t){this._promiseErrorWaiting===s&&(this._resolveHandlers.length=0,this._promiseResultWaiting=s,this._promiseErrorWaiting=t)}update(){var t=this;if(this._promiseResultWaiting!==s&&(this.getRootContainer()===a.A.currentContainer||this.getRootContainer()===a.A.currentFader)){for(var e,i=this._promiseResultWaiting,r=function(){try{var e=t._resolveHandlers.shift()(i);void 0!==e&&(i=e)}catch(r){return 0===t._rejectHandlers.length&&setTimeout((()=>{throw r}),0),t._turnPromiseRejected(r),{v:void 0}}};this._resolveHandlers.length>0;)if(e=r())return e.v;this._handleFinally()}if(this._promiseErrorWaiting!==s){for(var n=this._promiseErrorWaiting,o=function(){try{var e=t._rejectHandlers.shift()(n);void 0!==e&&(n=e)}catch(i){0===t._rejectHandlers.length&&setTimeout((()=>{throw i}),0)}};this._rejectHandlers.length>0;)o();this._handleFinally()}super.update(),this._promiseWaitForResult||this.remove()}}},9649:(t,e,i)=>{"use strict";i.d(e,{A:()=>s});i(3951);var r,n=i(5222),a=i(9443);class s extends n.A{constructor(){super(),this.backgroundColor=0}get name(){return this.__libSceneName}onShow(){}onHide(){}onMouseDown(t,e){}onMouseMove(t,e){}onMouseUp(t,e){}init(){super.init(),this._refreshAllObjectRefs(),a.A.__savedCurrentSceneForInitTime=a.A.currentScene,a.A._setCurrentScene(this)}_refreshAllObjectRefs(){this.all={},r=this.all,this.forAllChildren(o),a.A.currentScene===this&&(a.A.all=this.all)}}var o=t=>{t.name&&(r[t.name]=t)}},9080:(t,e,i)=>{"use strict";i.d(e,{A:()=>c});var r,n,a,s=i(5222),o=i(9443),l=i(4319),h=i(2468),u={passive:!1,capture:!0};class c extends s.A{constructor(){super(),this.onDown=this.onDown.bind(this),this.onWheel=this.onWheel.bind(this)}init(){super.init(),this.mouseHandler?this._mouseHandlerContainer=(0,h.A)(this.mouseHandler,this):this._mouseHandlerContainer=o.A.pixiApp.renderer.plugins.interaction,this._mouseHandlerContainer.on("pointerdown",this.onDown),document.addEventListener("wheel",this.onWheel,u),this.autoScrolling=!1,this.xSpeed=0,this.ySpeed=0,this._virtualScrollX=this.x,this._virtualScrollY=this.y}onWheel(t){if(!this.autoScrolling){var e=0;if(this._mouseHandlerContainer!==o.A.pixiApp.renderer.plugins.interaction){if(this._mouseHandlerContainer.isCanBePressed){var i=o.A.mouseEventToGlobalXY(t);this._mouseHandlerContainer.getBounds().contains(i.x,i.y)&&(e=t.deltaY,t.stopPropagation(),t.preventDefault())}}else this.isCanBePressed&&(e=t.deltaY,t.stopPropagation(),t.preventDefault());e&&(1===t.deltaMode&&(e*=60),e=Math.min(60,Math.max(-60,e)),this.isYScrollAvailable?this.ySpeed=-e:this.isXScrollAvailable&&(this.xSpeed=e))}}onDown(t){this.worldVisible&&(o.A._mouseHandlerGlobal(t),r=this,n=o.A.mouse.x,a=o.A.mouse.y)}static updateGlobal(){r&&(r.autoScrolling||r.updateGlobal())}updateGlobal(){o.A.mouse.click&&(this.fullArea.w>this.visibleArea.w&&(this.xSpeed=o.A.mouse.x-n,this._virtualScrollX+=this.xSpeed),this.fullArea.h>this.visibleArea.h&&(this.ySpeed=o.A.mouse.y-a,this._virtualScrollY+=this.ySpeed),n=o.A.mouse.x,a=o.A.mouse.y)}onRemove(){r===this&&(r=null),document.removeEventListener("wheel",this.onWheel,u),this._mouseHandlerContainer.removeListener("pointerdown",this.onDown),super.onRemove()}update(){if(this.visible){o.A.mouse.click||(this._virtualScrollX+=this.xSpeed,this._virtualScrollY+=this.ySpeed,this.autoScrolling?(this.xSpeed*=.98,this.ySpeed*=.98):(o.A.isMobile.any?(this.xSpeed*=this.mobileInertia,this.ySpeed*=this.mobileInertia):(this.xSpeed*=this.desktopInertia,this.ySpeed*=this.desktopInertia),this.xSpeed=(0,l.CR)(this.xSpeed,0,.1),this.ySpeed=(0,l.CR)(this.ySpeed,0,.1)));var t=this.visibleArea,e=this.fullArea;this.autoScrolling&&(this._checkScrollToBounds(),this.xSpeed+=.06*(this.scrollToX-this._virtualScrollX),this.ySpeed+=.06*(this.scrollToY-this._virtualScrollY),this.xSpeed*=.7,this.ySpeed*=.7,Math.abs(this.scrollToX-this._virtualScrollX)<=1&&Math.abs(this.xSpeed)<.5&&Math.abs(this.scrollToY-this._virtualScrollY)<=1&&Math.abs(this.ySpeed)<.5&&(this.xSpeed=0,this.ySpeed=0,this.callAfterScroll&&this.callAfterScroll(),this._virtualScrollX=this.scrollToX,this._virtualScrollY=this.scrollToY,this.callAfterScroll=!1,this.autoScrolling=!1));var i=0;t.x+t.w-this._virtualScrollX>e.x+e.w&&(i=t.x+t.w-this._virtualScrollX-(e.x+e.w)),t.x-this._virtualScrollX-ie.y+e.h&&(i=t.y+t.h-this._virtualScrollY-(e.y+e.h)),t.y-this._virtualScrollY-i-e.x?this.scrollToX=-e.x:this.scrollToX<-(e.x+e.w-t.w)&&(this.scrollToX=-(e.x+e.w-t.w)),this.scrollToY>-e.y?this.scrollToY=-e.y:this.scrollToY<-(e.y+e.h-t.h)&&(this.scrollToY=-(e.y+e.h-t.h))}scrollTo(t,e,i=!1){if(!t)return this.autoScrolling=!1,this.xSpeed=0,void(this.ySpeed=0);"string"==typeof t&&(t=this.getChildByName(t)),this.autoScrolling=!0,this.scrollToX=this.visibleArea.w/2-t.x,this.scrollToY=this.visibleArea.h/2-t.y,this._checkScrollToBounds(),i&&(this._virtualScrollX=this.scrollToX,this._virtualScrollY=this.scrollToY),this.callAfterScroll=e}}},1220:(t,e,i)=>{"use strict";i.d(e,{A:()=>o});var r=i(9135),n=i(1233),a=n.Sprite,s=n.Mesh;const o=a;var l={get:function(){return this._imageID},set:function(t){this._imageID!==t&&(this._imageID=t,this.texture=r.A.getTexture(t))}};Object.defineProperty(a.prototype,"image",l),Object.defineProperty(s.prototype,"image",l),a.imagePropertyDescriptor=l;var h={get:function(){return this.tint>>16},set:function(t){this.tint=65535&this.tint|t<<16},configurable:!0};Object.defineProperty(a.prototype,"tintR",h),Object.defineProperty(s.prototype,"tintR",h);var u={get:function(){return(65280&this.tint)>>8},set:function(t){this.tint=16711935&this.tint|t<<8},configurable:!0};Object.defineProperty(a.prototype,"tintG",u),Object.defineProperty(s.prototype,"tintG",u);var c={get:function(){return 255&this.tint},set:function(t){this.tint=16776960&this.tint|t},configurable:!0};Object.defineProperty(a.prototype,"tintB",c),Object.defineProperty(s.prototype,"tintB",c)},4894:(t,e,i)=>{"use strict";i.d(e,{A:()=>o});var r=i(874),n=i(9443),a=i(2468),s=i(1233).Text;const o=s;var l="center",h=!("letterSpacing"in CanvasRenderingContext2D.prototype||"textLetterSpacing"in CanvasRenderingContext2D.prototype),u={center:.5,left:0,right:1,top:0,bottom:1},c={none:0,uppercase:1,capitalize:2,lowercase:3},p=(t,e)=>e===c.none?t:e===c.uppercase?t.toUpperCase():e===c.lowercase?t.toLowerCase():e===c.capitalize?t.replace(/(?:^|\s)\S/g,(t=>t.toUpperCase())):void 0;Object.defineProperties(s.prototype,{translatableText:{get:function(){return this._translatableText},set:function(t){this._translatableText!==t&&(t&&(this.text=(0,r.A)(t)),this._translatableText=t)}},image:{get:function(){},set:function(){}},"style.align":{get:function(){return this.style.align},set:function(t){this.style.align!=t&&(this.style.align=t,this._refreshAnchor(),this.checkAlignBlur())},configurable:!0},verticalAlign:{get:function(){return this._verticalAlign},set:function(t){this._verticalAlign!=t&&(this._verticalAlign=t,this._refreshAnchor(),this.checkAlignBlur())},configurable:!0},"style.fill":{get:function(){return this._styleFill},set:function(t){if(t&&t.indexOf(",")>=0){var e=t.split(",");this.style.fill=e}else this.style.fill=t;this._styleFill=t},configurable:!0},"style.fillGradientStops":{get:function(){return this._styleFillGradientStops},set:function(t){t?(t=t.replace(/\s/g,""),this.style.fillGradientStops=t.split(",").map((t=>t?parseFloat(t):1))):this.style.fillGradientStops.length=0,this._styleFillGradientStops=t},configurable:!0},"style.fontFamily":{get:function(){return this._fontFamily},set:function(t){this.style.fontFamily=t||n.A.projectDesc.defaultFont,this._fontFamily=t},configurable:!0},"style.fontWeight":{get:function(){return this.style.fontWeight},set:function(t){this.style.fontWeight=t},configurable:!0},"style.fontSize":{get:function(){return this.style.fontSize},set:function(t){this.style.fontSize=t},configurable:!0},"style.leading":{get:function(){return this.style.leading},set:function(t){this.style.leading=t},configurable:!0},"style.padding":{get:function(){return this.style.padding},set:function(t){this.style.padding=t},configurable:!0},"style.letterSpacing":{get:function(){return this.style.letterSpacing},set:function(t){this.style.letterSpacing=0===t&&h?.001:t},configurable:!0},"style.stroke":{get:function(){return this.style.stroke},set:function(t){this.style.stroke=t},configurable:!0},"style.strokeThickness":{get:function(){return this.style.strokeThickness},set:function(t){this.style.strokeThickness=t,this.style.lineJoin="round"},configurable:!0},"style.dropShadow":{get:function(){return this.style.dropShadow},set:function(t){this.style.dropShadow=t},configurable:!0},"style.drShColor":{get:function(){return this.style.dropShadowColor},set:function(t){this.style.dropShadowColor=t},configurable:!0},"style.drShAlpha":{get:function(){return this.style.dropShadowAlpha},set:function(t){this.style.dropShadowAlpha=t},configurable:!0},"style.drShAngle":{get:function(){return this.style.dropShadowAngle},set:function(t){this.style.dropShadowAngle=t},configurable:!0},"style.drShBlur":{get:function(){return this.style.dropShadowBlur},set:function(t){this.style.dropShadowBlur=t},configurable:!0},"style.drShDistance":{get:function(){return this.style.dropShadowDistance},set:function(t){this.style.dropShadowDistance=t},configurable:!0},textTransform:{get:function(){return this._textTransform},set:function(t){t!==this._textTransform&&(this._textTransform=t,t&&this._text&&(this._text=p(this._text,this.textTransform),this.dirty=!0))},configurable:!0},maxWidth:{get:function(){return this._maxWidth},set:function(t){this._maxWidth!==t&&(this._maxWidth=t,this.updateSize())},configurable:!0}});var d=Object.getOwnPropertyDescriptor(s.prototype,"text"),f=d.set;d.set=function(t){this.textTransform&&t?f.call(this,p(t,this.textTransform)):f.call(this,t)},Object.defineProperty(s.prototype,"text",d);var g=s.prototype._onTextureUpdate;s.prototype._onTextureUpdate=function(t=!1){this.checkAlignBlur(),g.call(this);var e=this.recalculateTextSize();t||e&&this.updateTransform()},s.prototype.updateSize=function(){this.recalculateTextSize()&&this.updateTransform()},s.prototype.onRemove=function(){this._maxWidth=0},s.prototype.setTextByPath=function(t){this.text=(0,a.A)(t,this)},s.prototype.setAlign=function(t){this["style.align"]=t},s.prototype.checkAlignBlur=function(){var t=this.texture.width;if(t>0){this.style.align===l&&(this.anchor.x=Math.round(.5*t)/t);var e=this.texture.height;this.style._verticalAlign===l&&(this.anchor.y=Math.round(.5*e)/e)}},s.prototype.onLanguageChanged=function(){if(this._translatableText){var t=this._translatableText;this._translatableText=null,this.translatableText=t}},s.prototype._refreshAnchor=function(){this.anchor.set(u[this.style.align],u[this._verticalAlign])},s.prototype.recalculateTextSize=function(){var{scale:t,_texture:e,_maxWidth:i}=this;if(0===this._maxWidth)return!1;var r=e.width>i?i/e.width:1;return(r!==t.x||r!==t.y)&&(t.set(r),!!this.parent)}},8201:(t,e,i)=>{"use strict";i.d(e,{k:()=>r});var r={GAME_PRELOADER_PROGRESS:"CommonEvent.GAME_PRELOADER_PROGRESS",GAME_PRELOADER_START:"CommonEvent.GAME_PRELOADER_START",GAME_PRELOADER_COMPLETE:"CommonEvent.GAME_PRELOADER_COMPLETE",GAME_SHOW_MODAL:"CommonEvent.GAME_SHOW_MODAL",GAME_CLOSE_MODAL:"CommonEvent.GAME_CLOSE_MODAL"}},9372:(t,e,i)=>{"use strict";i.d(e,{A:()=>a});var r=i(1233);class n extends r.utils.EventEmitter{isLoggingEnabled=!1;emit(t,e){if("string"==typeof e)try{e=JSON.parse(e)}catch(i){}this.isLoggingEnabled&&console.log(`%c ${t} `,"background: #c00; color: #fff",e),super.emit(t,e)}}const a=new n},9443:(t,e,i)=>{"use strict";i.d(e,{A:()=>dt});var r=i(4319),n=i(7781),a=i(9135),s=i(5222),o=i(9372),l=i(8201),h=(i(6711),i(9649)),u=i(9062);class c{constructor(){this.updatePreloader=this.updatePreloader.bind(this),this.currentProgress=0,this.updateInterval=setInterval(this.updatePreloader),u.A.preloader=this,this.complete=!1,this.maxCount=0,this.progressGroupItems=[],this.progressGroup=Array.from(document.querySelectorAll(".progress-group")),this.progressGroup.length&&this.progressGroup.forEach((t=>this.progressGroupItems.push(Array.from(t.querySelectorAll(".progress-item"))))),this.progressItems=Array.from(document.querySelectorAll(":not(.progress-group) > .progress-item")),this.progressItems.length&&this.progressGroupItems.push(this.progressItems)}updatePreloader(){this.preloaderText=this.preloaderText||document.getElementsByClassName("preloader-text")[0],this.preloaderBar=this.preloaderBar||document.getElementsByClassName("preloader-bar")[0],this.preloader=this.preloader||document.getElementsByClassName("preloader")[0];var t=dt.getLoadingCount();this.maxCount=Math.max(1,this.maxCount,t);var e=(this.maxCount-t)/this.maxCount*100;this.currentProgress=(0,r.CR)(this.currentProgress,e,2),this.preloaderText&&(this.preloaderText.innerHTML="Loading "+Math.round(this.currentProgress)+"%"),this.preloaderBar&&(this.preloaderBar.style.width=this.currentProgress+"%"),this.progressGroupItems.length&&this.progressGroupItems.forEach((t=>{for(var e=t.length*this.currentProgress/100,i=0;i=100&&this.started&&this.currentProgress>=100}destroy(){this.preloader&&this.preloader.parentElement.removeChild(this.preloader),clearInterval(this.updateInterval),this.callback(),o.A.emit(l.k.GAME_PRELOADER_COMPLETE)}onComplete(){this.texturesCompleted=!0}start(t){this.callback=t,this.started=!0,o.A.emit(l.k.GAME_PRELOADER_START)}}var p=i(874),d=i(4049),f={},g=[],m=window;try{for(;m&&(m.addEventListener("keydown",(t=>{f[t.keyCode]=!0,t.keyCode>=37&&t.keyCode<=40&&t.preventDefault()})),m.addEventListener("keyup",(t=>{g.push(t.keyCode)})),m.parent!==m);)m=m.parent}catch(wt){}class A{static update(){for(;g.length>0;)f[g.pop()]=!1}static get all(){return f}static get up(){return f[38]||f[87]}static set up(t){t?f[38]=!0:(f[38]=!1,f[87]=!1)}static get down(){return f[40]||f[83]}static set down(t){t?f[40]=!0:(f[40]=!1,f[83]=!1)}static get shiftKey(){return f[16]}static get altKey(){return f[18]}static get ctrlKey(){return f[17]}static get left(){return f[37]||f[65]}static set left(t){t?f[37]=!0:(f[37]=!1,f[65]=!1)}static get right(){return f[39]||f[68]}static set right(t){t?f[39]=!0:(f[39]=!1,f[68]=!1)}static isKeycodePressed(t){return f[t]}static resetAll(){f={}}}var v=i(4222);class y{static init(t,e,i,r,n,a,s,o){var l=()=>{dt.hideModal(t),n&&("string"==typeof n?(0,v.A)(n,this):n())},h=()=>{dt.hideModal(t),s&&("string"==typeof s?(0,v.A)(s,this):s())},u=t.findChildByName("easyCloseBtn");if(u&&(o?u.callback=h:u.disable()),"string"==typeof e){var c=t.findChildByName("title");c&&(c.text=e)}if("string"==typeof i){var d=t.findChildByName("message");d&&(d.text=i)}var f=t.findChildByName("okBtn");if(f){if(r){var g=f.findChildByName("label");g&&(p.A.has(r)?g.translatableText=r:(g.translatableText=null,g.text=r))}f.callback=l}var m=t.findChildByName("noBtn");if(m){if(a){var A=m.findChildByName("label");A&&(p.A.has(a)?A.translatableText=a:(A.translatableText=null,A.text=a))}a||s&&!o?m.callback=h:(m.visible=!1,f.x=(f.x+m.x)/2)}}}var _=document.documentElement;class b{static get isFullscreen(){return!!(document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement)}static open(){dt.addOnClickOnce(b._openInner)}static _openInner(){try{_.requestFullscreen?_.requestFullscreen():_.mozRequestFullScreen?_.mozRequestFullScreen():_.webkitRequestFullscreen?_.webkitRequestFullscreen():_.msRequestFullscreen&&_.msRequestFullscreen(),dt._fireNextOnResizeImmediately()}catch(t){}}static toggle(){b.isFullscreen?b.close():b.open()}static close(){dt.addOnClickOnce(b._closeInner),dt.projectDesc.autoFullscreenMobile=dt.projectDesc.autoFullscreenDesktop=!1}static _closeInner(){dt._fireNextOnResizeImmediately(),document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen()}}b.isAvailable=(_.requestFullscreen||_.mozRequestFullScreen||_.webkitRequestFullscreen||_.msRequestFullscreen)&&!window.cordova;var x=i(9080),T=i(684),E=i(9401),S=i(1220),w=i(5622),P=i(1233),I=new P.Point;class R extends s.A{constructor(){super(),this.tiles=new Map,this.autoUpdate=!1}init(){super.init(),this.renewAllMap()}set tilemap(t){this._tileMapData=t}get tilemap(){return this.map}set texture(t){if(this._texture!==t)for(var e of(this._texture=t,this.children))e instanceof O&&(e.texture=t)}get texture(){return this._texture}getTile(t,e){return this.map[t+e*this.columns]}setTile(t,e,i){var r=t+e*this.columns;this.map[r]!==i&&(this.map[r]=i,this.getTile8x8(t,e).setTile(t%8,e%8,i))}getTile8x8(t,e){var i=(e>>=3)+32*(t>>=3);if(!this.tiles.has(i)){var r=w.A.create(O);return r.clearMap(),r.x=(8*t+4)*this.tileW-this.wField,r.y=(8*e+4)*this.tileH-this.hField,r.xRandomShift=t<<3,r.yRandomShift=e<<3,r.verticesRandomization=this.verticesRandomization,r.verticesRandomizationMod=2*this.verticesRandomization+1,this.tiles.set(i,r),this.addChild(r),r.setProps(),r}return this.tiles.get(i)}updateView(){this.getScenePosition(I);var t,e,i=dt.W/2,r=dt.H/2,n=I.x-i,a=I.y-r,s=i+4*this.tileW,o=r+4*this.tileH;for(var l of this.children)t=n+l.x,e=a+l.y,l.visible=t-s&&e-o,l.visible&&l.updateView()}dispose8x8Tiles(){this.tiles.forEach(C),this.tiles=new Map}onRemove(){super.onRemove(),this.dispose8x8Tiles(),this.map=null}clear(){for(var t=0;tt);return(this._tileMapData||this.map).map(t)}renewAllMap(){if(a.A.hasTexture(this.image)){var t=this.texture.width,e=this.texture.height;if(this.srcTileW=this.tileW+2*this.wField,this.srcTileH=this.tileH+2*this.hField,this.tilesOnTextureW=Math.floor(t/this.srcTileW),this.tilesOnTextureH=Math.floor(e/this.srcTileH),this.uvTileW=this.srcTileW/t,this.uvTileH=this.srcTileH/e,this.resizeMapIfNeed(),this.__maxTileIndex=this.tilesOnTextureH*this.tilesOnTextureW-1,this._tileMapData){for(var i=this.columns*this.rows-1,r=this._tileMapData,n=this.rows-1;n>=0;n--)for(var s=this.columns-1;s>=0;s--)this.setTile(s,n,r[i--]);this._tileMapData=null}}}}Object.defineProperty(R.prototype,"image",S.A.imagePropertyDescriptor);var C=t=>{a.A.destroyObjectAndChildren(t)};class O extends P.SimpleMesh{constructor(){super(),this.drawMode=P.DRAW_MODES.TRIANGLES,this.map=[]}setProps(){this.texture=this.parent.texture,this.pivot.x=4*this.parent.tileW,this.pivot.y=4*this.parent.tileH,this.tileW=this.parent.tileW,this.tileH=this.parent.tileH,this.pureTileW=this.tileW,this.srcTileW=this.parent.srcTileW,this.srcTileH=this.parent.srcTileH,this.uvTileW=this.parent.uvTileW,this.uvTileH=this.parent.uvTileH,this.tilesOnTextureW=this.parent.tilesOnTextureW}setTile(t,e,i){this.needRefresh=!0,this.map[t+(e<<3)]=i}clearMap(){for(var t=0;t<64;t++)this.map[t]=-1;this.needRefresh=!0}updateView(){this.needRefresh&&(this.refreshTiles(),this.needRefresh=!1)}rndX(t,e){return this.verticesRandomization?(12347*(t+=this.xRandomShift)+7323*(e+=this.yRandomShift)^123949)%this.verticesRandomizationMod-this.verticesRandomization:0}rndY(t,e){return this.verticesRandomization?(27389*(t+=this.xRandomShift)+12765*(e+=this.yRandomShift)^123949)%this.verticesRandomizationMod-this.verticesRandomization:0}refreshTiles(){for(var t,e=[],i=[],r=[],n=this.tileW,a=this.tileH,s=this.srcTileW,o=this.srcTileH,l=this.uvTileW,h=this.uvTileH,u=0,c=0,p=0;p<8;p++)for(var d=0;d<8;d++)if((t=this.map[u++])>=0){var f=d*n,g=p*a;e.push(f+this.rndX(d,p),g+this.rndY(d,p)),f+=s,e.push(f+this.rndX(d+1,p),g+this.rndY(d+1,p)),g+=o,e.push(f+this.rndX(d+1,p+1),g+this.rndY(d+1,p+1)),f-=s,e.push(f+this.rndX(d,p+1),g+this.rndY(d,p+1)),f=t%this.tilesOnTextureW*l,g=Math.floor(t/this.tilesOnTextureW)*h,i.push(f,g),f+=l,i.push(f,g),g+=h,i.push(f,g),f-=l,i.push(f,g),r.push(c,c+1,c+2),r.push(c,c+2,c+3),c+=4}this.verticesBuffer.data=new Float32Array(e),this.uvBuffer.data=new Float32Array(i),this.geometry.buffers[2].data=new Uint16Array(r),this.uvBuffer._updateID++,this.verticesBuffer._updateID++,this.geometry.buffers[2]._updateID++}}var M,B,D,L,k,N,F,G,U,H,X,j=i(2468),W=i(9087),V=i(1233),Y=i(230),z=0,q=4,Q=1,Z=0,K=[],J=[],$=[],tt=[],et=1,it=[];class rt{constructor(){this.data={},this.isMobile=V.utils.isMobile,this.all=null,this.isVisible=!1,this.isFocused=!1}get modalsCount(){return K.length}get currentContainer(){return K.length>0?K[K.length-1]:this.currentScene}get currentFader(){return k}onResize(){var t,e;if(F){F===document.body?(t=window.innerWidth,e=window.innerHeight):(t=F.clientWidth,e=F.clientHeight);var i,r,n,a=pt.projectDesc.dynamicStageSize;switch("auto"===(i=this.projectDesc.screenOrientation)&&(i=te,pt.isPortrait=!0;break;case"auto":pt.isPortrait=tt,pt.isPortrait=!1}if(!V.utils.isMobile.any&&(r=!1),pt.isPortrait?(this.W=this.projectDesc.portraitWidth||408,this.H=this.projectDesc.portraitHeight||720):(this.W=this.projectDesc.width||1280,this.H=this.projectDesc.height||720),!a)pt.projectDesc.preventUpscale&&(r?(t=Math.min(this.H,t),e=Math.min(this.W,e)):(t=Math.min(this.W,t),e=Math.min(this.H,e)));n=r?Math.min(e/this.W,t/this.H):Math.min(t/this.W,e/this.H),a&&(pt.projectDesc.preventUpscale?(n<1&&(t/=n,e/=n),n=1):(t/=n,e/=n));var s,o,l=1;if(this.isMobile.any?pt.projectDesc.renderResolutionMobile&&(l=pt.projectDesc.renderResolutionMobile):pt.projectDesc.renderResolution&&(l=pt.projectDesc.renderResolution),n*=l=Math.max(window.devicePixelRatio||1,l),n=Math.min(3,n),this.pixiApp&&this.pixiApp.renderer&&(pt.isCanvasMode=!this.pixiApp.renderer.gl,!pt.isCanvasMode)){var h=this.pixiApp.renderer.gl,u=h.getParameter(h.MAX_TEXTURE_SIZE);u<3e3&&(n=Math.min(1,n)),t*n>u&&(n=u/t),e*n>u&&(n=u/e)}a&&(r?(this.H=t,this.W=e):(this.W=t,this.H=e)),r?(s=this.H,o=this.W):(s=this.W,o=this.H),this.W=Math.round(this.W),this.H=Math.round(this.H),1&this.W&&this.W++,1&this.H&&this.H++;var c=G!==s||U!==o||et!==n;if(pt.pixiApp){G=s,U=o,et=n;var p=pt.stage;if(pt._isCanvasRotated=r,r?(p.rotation=Math.PI/2,p.x=this.H):(p.rotation=0,p.x=0),c){if(!0){var d=pt.pixiApp.renderer;d.resolution=et,V.InteractionManager.resolution=et,d.plugins.interaction.resolution=et,d.rootRenderTarget&&(d.rootRenderTarget.resolution=et),d.resize(G+1e-4,U+1e-4)}this.forAllChildrenEverywhere(at)}}}}openUrl(t,e="_blank"){var i=()=>{window.open(t,e)};Object.defineProperty(i,"openNewTab",{get:()=>!0}),pt.addOnClickOnce(i)}init(t,e,r=""){pt.additionalLoadingsInProgress=0,this.getValueByPath=j.A,pt.Lib=a.A,this.game=pt,this.Sound=d.A,this.L=p.A,this.setValueByPath=j.W,this.classes=a.A.classes,this.onResize=this.onResize.bind(this),this.time=0,this.projectDesc=this.projectDesc||{};this.fullscreen=b,!0,this.keys=A,e||(e=Y.projectDesc.id),this.settings=new n.A(e),this.gameId=e,this._updateGlobal=this._updateGlobal.bind(this),this.mouse=new V.Point,this.resourcesPath=r;var s=new Promise((t=>{this._gameInitializedResolve=t}));return F=t||document.body,D=Y,this.applyProjectDesc(D.projectDesc),V.utils.isWebGLSupported()?this._initInner():i.e(69).then(i.bind(i,2069)).then((()=>this._initInner())),s}_getTextureSettingsBits(t,e){var i=pt.projectDesc.loadOnDemandTextures;return i.hasOwnProperty(t)?i[t]&e:0}addOnClickOnce(t){it.push(t)}applyProjectDesc(t){var e={defaultFont:"Arial",screenOrientation:"landscape",width:1280,height:720,portraitWidth:408,portraitHeight:720,renderResolution:1,renderResolutionMobile:1,framesSkipLimit:4,dynamicStageSize:!1,preventUpscale:!1,webfontloader:null,fontHolderText:"ЯSфz",mipmap:!1,version:"0.0.1",soundFormats:["ogg","aac"],soundDefaultBitrate:96,soundBitrates:{},loadOnDemandSounds:{},loadOnDemandTextures:{},__loadOnDemandTexturesFolders:{},defaultMusVol:1,defaultSoundsVol:1,embedLocales:!0,__localesNewKeysPrefix:"",__externalTranslations:[],autoFullscreenDesktop:!1,autoFullscreenMobile:!1,__proxyFetchesViaNodeServer:!1,__group:"",__webpack:{debug:"config/webpack.debug.js",production:"config/webpack.prod.js"},jpgQuality:95,pngQuality:[.95,1]},i=!1;for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r],i=!0);t.screenOrientation;return V.settings.MIPMAP_TEXTURES=t.mipmap?V.MIPMAP_MODES.ON:V.MIPMAP_MODES.OFF,this.projectDesc=t,this.onResize(),i}_initInner(){pt.additionalLoadingsInProgress++;Promise.all([_t(),bt(),xt()]).then((()=>{pt.additionalLoadingsInProgress--}));this.onResize();var t=yt();B=new V.Application({width:G,height:U,backgroundColor:0,preserveDrawingBuffer:t}),this.pixiApp=B,F.appendChild(B.view);var e=t=>{for(var e=it.some((t=>t.openNewTab));it.length>0;){var i=it.shift();e&&!i.openNewTab||i(t)}var r=pt.isMobile.any?pt.projectDesc.autoFullscreenMobile:pt.projectDesc.autoFullscreenDesktop;!e&&r&&pt.fullscreen.isAvailable&&!pt.fullscreen.isFullscreen&&pt.fullscreen._openInner()};B.view.addEventListener("click",e),B.view.addEventListener("touchend",e);var i=pt.pixiApp.renderer.plugins.interaction;i.on("pointerdown",st),i.on("pointermove",lt),i.on("pointerup",ot),this._mouseHandlerGlobal=ct,(M=new s.A).name="stage",this.stage=M,this.onResize(),B.stage.addChild(M),B.ticker.add(this._updateGlobal),d.A.init(),this._gameInitializedResolve(),delete this._gameInitializedResolve,this._startGame(),B.view.addEventListener("wheel",(t=>t.preventDefault())),window.addEventListener("resize",this._onContainerResize.bind(this))}_fireNextOnResizeImmediately(){X=!0}_onContainerResize(){if(H&&clearTimeout(H),X)X=!1,this.onResize();else{var t=pt.isMobile.any;H=setTimeout((()=>{if(H=!1,t)for(var e of[20,40,80,200,500,1e3,1500,2e3,3e3])setTimeout(this.onResize,e);this.onResize()}),t?1:200)}}_startGame(){var t=new c;if(a.A._setPrefabs(D.prefabs),a.A._setScenes(D.scenes),a.A._setSounds(D.sounds),D.resources)for(var e in D.resources)a.A.addResource(e,{metadata:{...D.resourceImages,...D.resources[e]}});V.Texture.WHITE.baseTexture.resource.source.getContext("2d").fillRect(0,0,1,1),a.A.addTexture("EMPTY",V.Texture.EMPTY),a.A.addTexture("WHITE",V.Texture.WHITE);var i=new u.A;for(var r in D.images)pt._getTextureSettingsBits(r,3)||i.add(Tt(r),void 0,{metadata:D.images[r]});i.load(),t.start((()=>{for(var t in D.sounds&&Object.keys(D.sounds).length&&d.A.checkSoundLockByBrowser(),D.images){var e=V.utils.TextureCache[Tt(t)];e&&a.A.addTexture(t,e)}Object.values(D.prefabs).forEach(a.A._filterStaticTriggersRecursive),Object.values(D.scenes).forEach(a.A._filterStaticTriggersRecursive),this.showScene(D.projectDesc.mainScene||"main"),a.A._preCacheSoundsAndTextures()}))}_setCurrentScene(t){pt.all=t?t.all:null,pt.currentScene=t}_setCurrentSceneContent(t){return t=ft(t),this._setCurrentScene(t),t.interactiveChildren=!1,M.addChildAt(t,0),t._onShowCalled=!1,t}get disableAllButtons(){return!!k}faderShoot(){for(;L.length>0;){var t=L.pop(),e=K.indexOf(t);e>=0&&(K.splice(e,1),a.A.destroyObjectAndChildren(t))}for(;J.length>0;){var i=J.pop();a.A.destroyObjectAndChildren(i)}pt._isWaitingToHideFader=!0}_processScenesStack(){for(;;){var t=tt[tt.length-1];if(t===pt.currentScene)break;pt.currentScene&&(pt.currentScene._onShowCalled&&pt.currentScene.onHide(),gt()),t=tt[tt.length-1],tt[tt.length-1]=pt._setCurrentSceneContent(t)}}faderEnd(){if(N){var t=$.indexOf(N);$.splice(t,1),a.A.destroyObjectAndChildren(N),N=null}}replaceScene(t,e){mt(tt.pop()),tt.push(t),pt._startFaderIfNeed(e)}showScene(t,e){tt.push(t),pt._startFaderIfNeed(e)}closeAllScenes(t){for(;tt.length>1;)pt.closeCurrentScene(t)}closeCurrentScene(t){mt(tt.pop()),pt._startFaderIfNeed(t)}_startFaderIfNeed(t){tt[tt.length-1]!==pt.currentScene&&(L=K.slice(),k||(t||(t=this.currentScene&&this.currentScene.faderType?this.currentScene.faderType:"fader/default"),k=a.A.loadPrefab(t),this.stage.addChild(k),T.A._recalculateMusic()))}_getScenesStack(){return tt}showQuestion(t,e,i=null,r=null,n=null,s=null,o=!0,l="ui/sure-question"){var h=a.A.loadPrefab(l);return y.init(h,t,e,i,r,n,s,o),pt.showModal(h)}showModal(t,e){return"string"==typeof t&&(t=a.A.loadPrefab(t)),o.A.emit(l.k.GAME_SHOW_MODAL),K.push(t),t._onModalHide=e,t.interactiveChildren=!1,pt.stage.addChild(t),T.A._recalculateMusic(),t}hideModal(t=null,e=!1){var i;if(t){var r=K.indexOf(t);if(r<0)return;i=K[r],K.splice(r,1)}else i=K.pop();o.A.emit(l.k.GAME_CLOSE_MODAL),!!i._onModalHide&&(i._onModalHide(),delete i._onModalHide),e?a.A.destroyObjectAndChildren(i):(i.interactiveChildren=!1,J.push(i)),T.A._recalculateMusic()}mouseEventToGlobalXY(t){var e=B.view.getBoundingClientRect(),i=t.clientX-e.left;return nt.x=i*(pt.W/e.width),i=t.clientY-e.top,nt.y=i*(pt.H/e.height),nt}_updateGlobal(t){if(!0)for(x.A.updateGlobal(),t=Math.min(t,q),Z+=t,Z=Math.min(Z,Q*pt.projectDesc.framesSkipLimit);Z>Q;)Z-=Q,pt.isUpdateBeforeRender=!(Z>Q),this._updateFrame();if(this.currentScene){B.renderer.backgroundColor=this.currentScene.backgroundColor,this.currentScene.interactiveChildren=0===this.modalsCount&&!k;for(var e=this.modalsCount-1,i=!k;e>=0;)K[e].interactiveChildren=i,i=!1,e--}}forAllChildrenEverywhereBack(t){for(var e of tt)"string"!=typeof e&&(t(e),e.parent||(t(e),e.forAllChildren(t)));var i=a.A._getStaticScenes();for(var r in i){var n=i[r];n.parent||(t(n),n.forAllChildren(t))}}getLoadingCount(){var t=a.A.getSoundsLoadingCount();return t+=u.A.getLoadingCount(),pt.additionalLoadingsInProgress&&(t+=pt.additionalLoadingsInProgress),!!k&&(t+=k.findChildrenByType(W.A).length),t}forAllChildrenEverywhere(t){pt.stage.forAllChildren(t),pt.forAllChildrenEverywhereBack(t)}_hideCurrentFaderAndStartScene(){k.gotoLabelRecursive("hide fader"),$.unshift(k),k=null,T.A._recalculateMusic()}_updateFrame(){if(!pt._loadingErrorIsDisplayed){if(!pt.isCanvasMode){if(pt.pixiApp.renderer.gl.isContextLost())return void(pt.isVisible&&60===++z&&pt._reloadGame());z=0}pt._isWaitingToHideFader?0===pt.getLoadingCount()&&(pt._processScenesStack(),pt.currentScene._onShowCalled?(pt._hideCurrentFaderAndStartScene(),pt._isWaitingToHideFader=!1):(pt.currentScene._onShowCalled=!0,pt.currentScene.onShow(),St())):this.currentContainer&&(!k||this.currentContainer!==this.currentScene||J.length<1)&&this.currentContainer.update(),k&&k.update();for(var t=$.length-1;t>=0;){var e=$[t];N=e,e.update(),t--}if(!k)for(var i=J.length-1;i>=0;){var r=J[i];r.alpha-=.1,r.alpha<=.01&&(a.A.destroyObjectAndChildren(r),J.splice(i,1)),i--}this.keys.update(),a.A._cleanupRemoveHolders(),this.time++}}fetchResource(t){return new Promise((e=>{var i=new u.A;i.add(t,t),i.load(((i,r)=>{e(r[t].data)}))}))}_onLoadingError(t){if(!pt._loadingErrorIsDisplayed){u.A.destroyAllLoaders(),pt._loadingErrorIsDisplayed=!0,T.A._recalculateMusic();var e=document.createElement("div");e.innerHTML='\n\n
\n\t
\n\t\t
'+pt.projectDesc.title+'
\n\t\t
\n\t\t\tLOADING ERROR
\n\t\t
(click to reload)
\n\t
\n
',document.body.appendChild(e),document.addEventListener("click",(()=>{pt._reloadGame()}))}}_reloadGame(){pt.onGameReload&&pt.onGameReload(),window.location.reload()}applyCSS(t){var e=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css",i.styleSheet?i.styleSheet.cssText=t:i.appendChild(document.createTextNode(t)),e.appendChild(i)}}var nt=new V.Point,at=t=>{t._onRenderResize&&t._onRenderResize()},st=t=>{if(!ut.hasOwnProperty(t.data.pointerId)){var e={x:t.data.global.x,y:t.data.global.y};ut[t.data.pointerId]=e,ht.unshift(e)}pt.isFocused||vt(!0),pt.mouse.click=!0,ct(t),pt.currentContainer&&pt.currentContainer.onMouseDown&&pt.currentContainer.interactiveChildren&&(d.A._unlockSound(),pt.currentContainer.onMouseDown(pt.mouse,t))},ot=t=>{var e=t.data.global.x,i=t.data.global.y;ut.hasOwnProperty(t.data.pointerId)&&(ht.splice(ht.indexOf(ut[t.data.pointerId]),1),delete ut[t.data.pointerId]),ht.length>0?(t.data.global.x=ht[0].x,t.data.global.y=ht[0].y):pt.mouse.click=!1,ct(t),t.data.global.x=e,t.data.global.y=i,pt.currentContainer&&pt.currentContainer.onMouseUp&&pt.currentContainer.interactiveChildren&&pt.currentContainer.onMouseUp(pt.mouse,t)},lt=t=>{var e=t.data.global.x,i=t.data.global.y,r=ut[t.data.pointerId];r&&(r.x=t.data.global.x,r.y=t.data.global.y),(r=ht[0])&&(t.data.global.x=r.x,t.data.global.y=r.y),0===t.data.buttons&&(pt.mouse.click=!1),ct(t),t.data.global.x=e,t.data.global.y=i,pt.currentContainer&&pt.currentContainer.onMouseMove&&pt.currentContainer.interactiveChildren&&pt.currentContainer.onMouseMove(pt.mouse,t)},ht=[],ut={},ct=t=>{if(isFinite(t.data.global.x)){var e=pt.mouse,i=pt.stage.toLocal(t.data.global,pt.pixiApp.stage),r=Math.round(i.x),n=Math.round(i.y);r>pt.W?r=pt.W:r<0&&(r=0),n>pt.H?n=pt.H:n<0&&(n=0),e.x=r,e.y=n}},pt=new rt;pt.globalEventDispatcher=o.A;const dt=pt;function ft(t){return"string"==typeof t&&(t=a.A.loadScene(t)),t}function gt(){var t=pt.currentScene;pt._setCurrentScene(null),mt(t)}function mt(t){t instanceof h.A&&t!==pt.currentScene&&(!t.isStatic&&tt.indexOf(t)<0?a.A.destroyObjectAndChildren(t):t.detachFromParent())}window.cordova&&(document.addEventListener("backbutton",(function(){E.A._tryToClickByKeycode(27)}),!1),pt.exitApp=(t=!1)=>{t?navigator.app.exitApp():pt.showQuestion((0,p.A)("SUREEXIT_TITLE"),(0,p.A)("SUREEXIT_TEXT"),void 0,(()=>{pt.exitApp(!0)}))}),window.addEventListener("focus",(()=>vt(!0))),window.addEventListener("blur",(()=>vt(!1))),document.addEventListener("visibilitychange",(()=>At()));var At=()=>{var t="visible"===document.visibilityState;pt.isVisible!==t&&(pt.isVisible=t,pt.pixiApp&&setTimeout((()=>{T.A._clearCustomFades(.2),T.A._recalculateMusic()}),10),vt(t))},vt=t=>{pt.isFocused!==t&&(pt.isFocused=t,pt.pixiApp&&setTimeout((()=>pt.keys.resetAll()),10))};function yt(){try{var t=document.createElement("canvas");t.setAttribute("width","1"),t.setAttribute("height","1"),document.body.appendChild(t);var e=t.getContext("webgl",{stencil:!0});if(t.parentNode.removeChild(t),!e)return!1;var i=e.getExtension("WEBGL_debug_renderer_info");return null!=i&&-1!=e.getParameter(i.UNMASKED_RENDERER_WEBGL).search("Mali-400")}catch(r){}}function _t(){return pt.projectDesc.webfontloader?new Promise((t=>{setTimeout((()=>{if(pt.projectDesc.fontHolderText){var e=document.createElement("span");for(var r in e.style.opacity=0,e.style.color="rgba(0,0,0,0.01)",e.style.position="absolute",e.style.zIndex=-1,pt.projectDesc.webfontloader){var n=pt.projectDesc.webfontloader[r].families;if(n)for(var a of n){if("custom"===r){var s=pt.resourcesPath+"fonts/"+a.replace(/ /g,"");pt.applyCSS("\n\t\t\t\t\t\t\t\t\t\t@font-face {\n\t\t\t\t\t\t\t\t\t\t\tfont-family: '"+a+"';\n\t\t\t\t\t\t\t\t\t\t\tsrc: url('"+s+".woff2') format('woff2'),\n\t\t\t\t\t\t\t\t\t\t\turl('"+s+".woff') format('woff');\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t")}var o=a.split(":"),l=o[0],h=o[1]?o[1].split(","):["normal"];for(var u of h){var c=document.createElement("span");c.style.fontFamily=`"${l}"`,c.style.fontWeight=u,c.innerHTML=pt.projectDesc.fontHolderText,e.appendChild(c)}}}document.body.appendChild(e)}setTimeout((()=>{if(!window.WebFont)try{window.WebFont=i(1537)}catch(n){}var e=pt.projectDesc.webfontloader;e.timeout=e.timeout||6e3;var r=!1;e.inactive=e.active=()=>{r||(r=!0,t())},window.WebFont.load(e)}),1)}),1)})):Promise.resolve()}function bt(){if(pt.projectDesc.embedLocales)return p.A.setLanguagesAssets(D.text),Promise.resolve(D.text);var t=pt.projectDesc.localeResourcesPath||pt.resourcesPath+"i18n";return p.A.loadLanguages(void 0,t)}async function xt(){var{lossy:t,lossless:e}=await(0,r.kT)();pt.isWebpAvailable=t&&e}vt(!0),At();var Tt=t=>t?pt.resourcesPath+"img/"+t:null;pt._textureNameToPath=Tt,pt.getImageMetadata=t=>D.images[t]||{};var Et=t=>t.replace(pt.resourcesPath+"img/","");function St(){var t,e,i,r={};pt.stage.forAllChildren((n=>{if(n instanceof S.A||n instanceof V.Mesh||n instanceof R){var s=n.image;if(s&&!a.A.hasTexture(s)&&pt._getTextureSettingsBits(s,3)){if(n.texture=a.A.getTexture("EMPTY"),t||(e={},i=[],t=new u.A),!e.hasOwnProperty(s)){e[s]=!0;var o=Tt(s),l={metadata:D&&D.images?D.images[s]:{}};t.add(o,void 0,l)}i.push(n)}else pt._getTextureSettingsBits(s,3)&&(n.texture.baseTexture||(n.texture=a.A.getTexture(s)),r[s]=!0)}})),t&&t.load(((t,e)=>{for(var r in e){var n=Et(r);a.A.addTexture(n,e[r].texture)}for(var s of i){var o=s.image;s.image="EMPTY",s.image=o}}))}},9135:(t,e,i)=>{"use strict";i.d(e,{A:()=>R});var r,n,a=i(5622),s=(i(9649),i(3951),i(9443)),o=i(2468),l=i(9062),h=i(1233),u={},c={},p={},d={},f={},g={};class m extends h.Container{constructor(){super(),this.visible=!1}onRemove(){super.onRemove();var t=A.indexOf(this);t>=0&&A.splice(t,1)}update(){}}var A=[],v=t=>{if(!t._thing_initialized){t._thing_initialized=!0,t.init();for(var e=t.children,i=e.length,r=0;r{var r=i[t];if(_.resources[t]=r,r.textures)for(var n in r.textures)_.addTexture(n,r.textures[n])}))}}addTexture(t,e){"EMPTY"!==t&&"WHITE"!==t&&_.hasTexture(t)&&_._unloadTexture(t),P(t),p[t]=e;var i=p[t].baseTexture;switch(s.A._getTextureSettingsBits(t,24)){case 0:i.wrapMode=h.WRAP_MODES.CLAMP;break;case 8:i.wrapMode=h.WRAP_MODES.REPEAT;break;default:i.wrapMode=h.WRAP_MODES.MIRRORED_REPEAT}s.A._getTextureSettingsBits(t,4)&&(i.mipmap=h.MIPMAP_MODES.ON),s.A.isCanvasMode||s.A.pixiApp.renderer.texture.updateTexture(i)}_unloadTexture(t){var e=p[t];e&&(h.Texture.removeFromCache(e),e.destroy(!0),delete p[t])}_filterStaticTriggers(t){return"StaticTrigger"===t.c?t.p.invert!==!(0,o.A)(t.p.dataPath||n.StaticTrigger.dataPath,s.A):!t[":"]||!t[":"].some((t=>"StaticTrigger"===t.c&&!!t.p.invert!=!(0,o.A)(t.p.dataPath||n.StaticTrigger.dataPath,s.A)))}_filterStaticTriggersRecursive(t){if(t[":"]){var e=t[":"].filter(_._filterStaticTriggers);t[":"]=e,e.forEach(_._filterStaticTriggersRecursive)}}_setSounds(t,e=!1){for(var i in d=t,f)f[i].unload();var r=!0;for(var n in r&&(f={}),d){var a=d[n],o=void 0;if("number"==typeof a[a.length-1]&&(o=a.pop()),!0){var l=b({src:a.map(T),preload:!s.A.projectDesc.loadOnDemandSounds.hasOwnProperty(n)},o);l.lastPlayStartFrame=0,f[n]=l}}}_preCacheSoundsAndTextures(){var t,e={};t=setInterval((()=>{if(0===s.A.getLoadingCount()){for(var i in d)if(2===s.A.projectDesc.loadOnDemandSounds[i]&&_.preloadSound(i))return;for(var r in s.A.projectDesc.loadOnDemandTextures)if(2===s.A._getTextureSettingsBits(r,3)&&!e[r])return e[r]=!0,void l.A.easyPreloadImage(r);clearInterval(t)}}),1e3)}getSoundsLoadingCount(){var t=0;for(var e in f){E(f[e])||t++}return t}hasSound(t){return d.hasOwnProperty(t)}getSound(t,e){return f[t]}preloadSound(t){if(t){var e=f[t];if("unloaded"===e.state())return e.load(),!0}}__clearAssetsLists(){p={},_.resources={},_.__texturesList=[],__allTextures={},_.__resourcesList=[]}_loadClassInstanceById(t){var e=a.A.create(c[t]);return Object.assign(e,n[t]),v(e),e}hasTexture(t){return p.hasOwnProperty(t)}getTextureEndingWith(t){var e=Object.keys(p).find((e=>e.endsWith(t)));return e&&_.getTexture(e)}getTexture(t){return!p.hasOwnProperty(t)&&s.A._getTextureSettingsBits(t,3)?h.Texture.WHITE:p[t]}destroyObjectAndChildren(t,e){if(t.onRemove(),t._thing_initialized=!1,e){var i=a.A.create(m),r=t.parent.children;r[r.indexOf(t)]=i,i.parent=t.parent,A.push(i),t.parent=null}else t.detachFromParent();for(;t.children.length>0;)_.destroyObjectAndChildren(t.getChildAt(t.children.length-1));a.A.dispose(t),t.interactiveChildren=!0}_deserializeObject(t){var e,i;"PrefabReference"===t.c?(i=t.p.hasOwnProperty("dynamicPrefabName")?(0,o.A)(t.p.dynamicPrefabName,this):t.p.prefabName,e=_._deserializeObject(u[i]),t.p.hasOwnProperty("inheritProps")||Object.assign(e,n[t.c],t.p)):(e=a.A.create(c[t.c]),Object.assign(e,n[t.c],t.p));if(t.hasOwnProperty(":")){var r=t[":"];for(var s of r)e.addChild(_._deserializeObject(s))}return e}loadScene(t){if(g.hasOwnProperty(t))return g[t];r.hasOwnProperty(t)||(t=Object.keys(r)[0]);var e=r[t];e.p.__libSceneName=t;var i=x(e);return delete e.p.__libSceneName,s.A.hasOwnProperty("__savedCurrentSceneForInitTime")&&(s.A._setCurrentScene(s.A.__savedCurrentSceneForInitTime),delete s.A.__savedCurrentSceneForInitTime),i.isStatic&&(g[t]=i),i}_cleanupRemoveHolders(){for(;A.length>0;)_.destroyObjectAndChildren(A.pop())}hasPrefab(t){return u.hasOwnProperty(t)}hasScene(t){return r.hasOwnProperty(t)}_getStaticScenes(){return g}}var _=new y;function b(t,e){var i=new Howl(t);return i.once("loaderror",(t=>{i.loadedWithError=!0})),i.once("load",(()=>{e&&(i._duration=e,i._sprite.__default[1]=1e3*e)})),i}var x=t=>{var e=_._deserializeObject(t);return v(e),e};function T(t){return s.A.resourcesPath+"snd/"+t}function E(t){return"loading"!==t.state()||t.loadedWithError}var S,w=new Set;function P(t){S&&clearTimeout(S),S=setTimeout(I,10),w.add(t)}function I(){S=null,s.A.forAllChildrenEverywhere((t=>{if(t.image&&w.has(t.image)){var e=t.image;t.image="EMPTY",t.image=e}})),w.clear()}_.resources={},_.loadPrefab=function(t){return x(u[t])};const R=_},4222:(t,e,i)=>{"use strict";i.d(e,{A:()=>c,t:()=>o});var r=i(2468),n=i(9443),a=(t,e)=>{var i,a=o(t),s=a.p,l=s[0];i="this"===l?e:n.A[l];for(var h,u=1;u{if(s.hasOwnProperty(t))return s[t];var e={},i=t.split("`");return e.p=i[0].split(".").map(u),i.length>1&&(e.v=i[1].split(",").map(h)),s[t]=e,e},l=/^\-?[\.0-9]+$/,h=t=>t.match(l)?parseFloat(t):t,u=t=>35===t.charCodeAt(0)?{s:t.substr(1)}:t;const c=a},2468:(t,e,i)=>{"use strict";i.d(e,{A:()=>s,W:()=>a});var r=i(9443),n=(i(3951),i(4222)),a=(t,e,i)=>{var a,s=(0,n.t)(t).p,o=s[0];a="this"===o?i:r.A[o];for(var l=1;l{var i,a=(0,n.t)(t),s=a.p,o=s[0];i="this"===o?e:r.A[o];for(var l,h=1;h{"use strict";i.d(e,{A:()=>f});var r,n=i(9443),a={},s={},o=window.navigator&&navigator.language?navigator.language.split("-")[0]:"en",l=!1,h=!1;function u(t,e=void 0,i=void 0){var r;return a.hasOwnProperty(t)?(r=a[t],u.messageProcessor&&(r=u.messageProcessor(r,e,i))):r=t,void 0!==e&&(r=r.replace("%d",e),void 0!==i&&(r=r.replace("%s",i))),r}function c(t,e){if(!h)return r=t,void(l=!(null==e||!e.isHieroglyphic));if(o!==t){if(s.hasOwnProperty(t))o=t;else if(o=n.A.projectDesc.defaultLanguage,window.navigator&&navigator.languages)for(var i of navigator.languages)if(i=i.split("-")[0],s.hasOwnProperty(i)){o=i;break}a=s[o],u.fefreshAllTextEverywhere()}}function p(t){t.onLanguageChanged&&t.onLanguageChanged()}function d(t,e,i){for(var r in t)if(t.hasOwnProperty(r)){var n=t[r];"string"==typeof n?i?e[i+r]=t[r]:e[r]=t[r]:d(n,e,i?i+r+".":r+".")}}u.setLanguagesAssets=t=>{h=!0,s=t;var e=r||o;r=null,o=null,c(e)},u.loadLanguages=function(t,e){return t||(t=r),new Promise((i=>{var r=e+"/"+t+".json";return n.A.fetchResource(r).then((e=>{e=u._deserializeLanguage(e),s[t]=e,this.setLanguagesAssets(s),i(e)}))}))},u.has=t=>a.hasOwnProperty(t),u.fefreshAllTextEverywhere=function(){n.A.stage&&n.A.forAllChildrenEverywhere(p)},u.getCurrentLanguageId=()=>o,u.getLanguagesList=()=>Object.keys(s),u.setCurrentLanguage=c,u._deserializeLanguage=function(t){var e={};return d(t,e),e},u.isCurrentLanguageHieroglyphic=()=>l;const f=u},2982:(t,e,i)=>{"use strict";i.d(e,{A:()=>u});var r=i(4319),n=i(9135),a=(i(9443),.0101),s=40,o=1/s,l={},h={};setInterval((()=>{for(var t in h)h[t]._updateFading()}),s);class u{constructor(t){t.dynamicPreloading&&(t.loop&&n.A.preloadSound(t.loop),t.intro&&n.A.preloadSound(t.intro)),this.onIntroEnd=this.onIntroEnd.bind(this),this.intro=t.intro,this.loop=t.loop,this.musicFragmentHash=t.musicFragmentHash}_updateFading(){var t=this.getVolume();this._fadeToVol!==t&&((t=(0,r.CR)(t,this._fadeToVol,1/(this._fadeSpeed+1e-4)*o)){"use strict";i.d(e,{A:()=>n});var r=new Map;class n{static clearAll(){r.clear()}static create(t){if(!r.has(t))return new t;var e=r.get(t);return 0===e.length?new t:e.pop()}static dispose(t){var e=t.constructor;r.has(e)||r.set(e,[]),r.get(e).push(t)}}},9062:(t,e,i)=>{"use strict";i.d(e,{A:()=>l});var r=i(9443),n=i(1233),a=[],s=n.Spritesheet.prototype.parse;n.Spritesheet.prototype.parse=function(){try{return s.apply(this,arguments)}catch(t){r.A._onLoadingError("Spritesheet parsing error ("+this.data.meta.image+"): "+t.message)}};var o=new RegExp(/\.[^.]+$/);class l{constructor(){this._createNewLoader(),this.attempt=0,this.count=1,this.resources={}}static pre(t,e){var i=t.url.slice(t.url.indexOf("/img/")+5),n=t.metadata&&t.metadata[i]?t.metadata[i]:t.metadata,a=n.e||t.extension;n.f_e&&a.endsWith("webp")&&!r.A.isWebpAvailable&&(a=n.f_e),a!==t.extension&&(t.orig_url=t.url,t.url=t.url.replace(o,a),t.extension=a.slice(a.lastIndexOf(".")+1)),e()}static easyPreloadImage(t){var e={url:r.A._textureNameToPath(t),metadata:r.A.getImageMetadata(t),extension:t.slice(t.lastIndexOf(".")+1)};l.pre(e,(()=>{})),(new Image).src=e.url}add(t,e=t,i={}){var r=i.metadata||{};i.metadata={...r,imageMetadata:r,spineAtlas:r.s_a},this.loader.add(t,e,i),this.resources[t]=!0,this.count++}static getLoadingCount(){var t=0;for(var e of a)t+=e.count;return t}static destroyAllLoaders(){for(var t of a)t.loader.destroy()}load(t,e){var i;e||a.push(this),this.loader.onLoad.add(((t,e)=>{this.resources[e.name]&&this.count--})),this.loader.load((()=>{if(!r.A._loadingErrorIsDisplayed){for(var e of Object.values(this.loader.resources))if(e.error){if(i||(i=[]),!this.resources[e.name]){i=i.concat(Object.keys(this.resources).map((t=>this.loader.resources[t])));break}i.push(e)}if(i)this.attempt++<3?setTimeout((()=>{for(var e of(this._createNewLoader(),this.count=1,i))e.metadata&&(e.metadata.f_e&&(e.metadata.e=e.metadata.f_e),Object.values(e.metadata).forEach((t=>{t&&t.f_e&&(t.e=t.f_e)}))),this.add(e.name,e.orig_url||e.url,{metadata:e.metadata});this.load(t,!0)}),1e3*this.attempt):r.A._onLoadingError(i[0].url);else{this.resources=Object.assign(this.resources,this.loader.resources);var n=a.indexOf(this);a.splice(n,1),r.A._loadingErrorIsDisplayed||(t&&t(this,this.resources),0===a.length&&l.preloader&&(l.preloader.onComplete(),l.preloader=null))}}}))}_createNewLoader(){this.loader=new n.Loader("",1e3),this.loader.pre(l.pre)}}},7781:(t,e,i)=>{"use strict";i.d(e,{A:()=>n});i(9443);class r{constructor(t){this._storageId=t;try{"undefined"!=typeof Storage&&localStorage.hasOwnProperty(t)&&(this.data=JSON.parse(localStorage[t]))}catch(e){this.data={}}this.hasOwnProperty("data")||(this.data={}),this.flush=this.flush.bind(this)}getItem(t,e){return this.data.hasOwnProperty(t)?this.data[t]:e}setItem(t,e){e===this.data[t]&&"object"!=typeof e||(this.data[t]=e,this.changed(),r.globalOnChanged&&r.globalOnChanged(t,e))}removeItem(t){this.data.hasOwnProperty(t)&&(delete this.data[t],this.changed())}changed(){this.hasOwnProperty("__flushInterval")||(this.__flushInterval=setTimeout(this.flush,10,this))}clear(){this.data={},this.changed()}flush(){if("undefined"!=typeof Storage){delete this.__flushInterval;try{localStorage.setItem(this._storageId,JSON.stringify(this.data))}catch(t){this.data=this.data||{}}}}}const n=r},4049:(t,e,i)=>{"use strict";i.d(e,{A:()=>p});var r,n,a,s=i(9443),o=i(9135),l=i(684),h=(i(2982),.005),u=.05;function c(t,e){return t>u?t:e}class p{static get soundsVol(){return f}static setSoundsVol(t){p.soundsVol=t}static set soundsVol(t){t=Math.max(0,Math.min(1,t)),f=t,s.A.settings.setItem("soundsVol",f)}static get musicVol(){return g}static setMusicVol(t){p.musicVol=t}static set musicVol(t){t=Math.max(0,Math.min(1,t)),g!==t&&l.A._clearCustomFades(.2),g=t,s.A.settings.setItem("musicVol",g),l.A._recalculateMusic()}static get fullVol(){return Math.max(f,g)}static set fullVol(t){var e=s.A.settings.getItem("musicEnabled",!0),i=s.A.settings.getItem("soundEnabled",!0);e||i||(e=i=!0),e?p.musicVol=t:s.A.settings.setItem("musicVolEnabling",t),i?p.soundsVol=t:s.A.settings.setItem("soundsVolEnabling",t)}static get musicEnabled(){return g>=h}static set musicEnabled(t){p.musicEnabled!==t&&(l.A._clearCustomFades(.2),t?p.musicVol=c(s.A.settings.getItem("musicVolEnabling"),s.A.projectDesc.defaultMusVol):(s.A.settings.setItem("musicVolEnabling",g),p.musicVol=0),p.rememberEnablings())}static rememberEnablings(){d||(d=setTimeout(y,10))}static toggleMusic(){p.musicEnabled=!p.musicEnabled}static get soundEnabled(){return f>=h}static set soundEnabled(t){p.soundEnabled!==t&&(t?p.soundsVol=c(s.A.settings.getItem("soundsVolEnabling"),s.A.projectDesc.defaultSoundsVol):(s.A.settings.setItem("soundsVolEnabling",f),p.soundsVol=0),p.rememberEnablings())}static toggleSounds(){p.soundEnabled=!p.soundEnabled}static toggleFullSound(){p.soundEnabled||p.musicEnabled?(p.soundEnabled=!1,p.musicEnabled=!1):(p.musicEnabled=!0,p.soundEnabled=!0)}static init(){f=s.A.settings.getItem("soundsVol",s.A.projectDesc.defaultSoundsVol),g=s.A.settings.getItem("musicVol",s.A.projectDesc.defaultMusVol)}static play(t,e=1,i=1,r=0,n=!1){if(!(p.isSoundsLockedByBrowser||!s.A.isVisible)){var a=o.A.getSound(t);if(a){if(a.lastPlayStartFrame.01))try{n?(a.soundIdSaved=a.play(),a.volume(e,a.soundIdSaved),a.rate(i,a.soundIdSaved),0!==r&&a.seek(r,a.soundIdSaved)):(a.volume(e),a.rate(i),0!==r&&a.seek(r),a.soundIdSaved=a.play(a.soundIdSaved)),a.lastPlayStartFrame=s.A.time+2}catch(l){}}else{var l=new Error('Attempt to play unknown sound "'+t+'"');setTimeout((()=>{throw l}))}}}static playPitched(t,e=200,i=1.0594630943592953,r=3){var n,a=v[t],o=s.A.time-a;o<2||(n=om(!0),e=()=>m(!1);(r=new Howl({src:"data:audio/mp3;base64,SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU2LjM2LjEwMAAAAAAAAAAAAAAA//OEAAAAAAAAAAAAAAAAAAAAAAAASW5mbwAAAA8AAAAEAAABIADAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDV1dXV1dXV1dXV1dXV1dXV1dXV1dXV1dXV6urq6urq6urq6urq6urq6urq6urq6urq6v////////////////////////////////8AAAAATGF2YzU2LjQxAAAAAAAAAAAAAAAAJAAAAAAAAAAAASDs90hvAAAAAAAAAAAAAAAAAAAA//MUZAAAAAGkAAAAAAAAA0gAAAAATEFN//MUZAMAAAGkAAAAAAAAA0gAAAAARTMu//MUZAYAAAGkAAAAAAAAA0gAAAAAOTku//MUZAkAAAGkAAAAAAAAA0gAAAAANVVV"})).once("playerror",t),r.once("end",e),n=setTimeout(t,500);try{r.play()}catch(i){m(!0)}}static _unlockSound(){p.isSoundsLockedByBrowser&&m(!1)}}var d,f,g,m=t=>{a||(s.A.additionalLoadingsInProgress--,a=!0,clearTimeout(n)),t||(r.off("playerror"),r.off("play"),r.unload(),p.isSoundsLockedByBrowser=!1,s.A.classes.BgMusic&&s.A.classes.BgMusic._recalculateMusic())},A={},v={};function y(){d=null,(p.soundEnabled||p.musicEnabled)&&(s.A.settings.setItem("soundEnabled",p.soundEnabled),s.A.settings.setItem("musicEnabled",p.musicEnabled))}},4319:(t,e,i)=>{"use strict";i.d(e,{CR:()=>r,Go:()=>n,kT:()=>a});i(9443),Math.PI;var r=(t,e,i)=>Math.abs(t-e)<=i?e:t>e?t-i:t+i;function n(t){return JSON.parse(JSON.stringify(t))}async function a(){var t={lossy:"UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA",lossless:"UklGRhoAAABXRUJQVlA4TA0AAAAvAAAAEAcQERGIiP4HAA==",alpha:"UklGRkoAAABXRUJQVlA4WAoAAAAQAAAAAAAAAAAAQUxQSAwAAAARBxAR/Q9ERP8DAABWUDggGAAAABQBAJ0BKgEAAQAAAP4AAA3AAP7mtQAAAA==",animation:"UklGRlIAAABXRUJQVlA4WAoAAAASAAAAAAAAAAAAQU5JTQYAAAD/////AABBTk1GJgAAAAAAAAAAAAAAAAAAAGQAAABWUDhMDQAAAC8AAAAQBxAREYiI/gcA"};return await Promise.all(Object.entries(t).map((([t,e])=>new Promise((i=>{var r=new Image;r.onload=()=>i([t,r.width>0&&r.height>0]),r.onerror=()=>i([t,!1]),r.src=`data:image/webp;base64,${e}`}))))).then((t=>t.reduce(((t,[e,i])=>(t[e]=i,t)),{})))}},3800:(t,e,i)=>{"use strict";i.d(e,{A:()=>r});const r={START_LOADING:"start_loading",GAME_RESOURCES_LOADED:"game_resources_loaded",GAME_LOADED:"game_loaded",GAME_INITIALIZED:"game_initialized",ACTION_EXEC:"action_exec",BET_CHANGED:"bet_changed",FINISH_SPIN_ANIMATIONS:"finish_spin_animations",FINISH_ROUND_ANIMATIONS:"finish_round_animations",API_RESPONSE:"api_response",BALANCE_UPDATE:"balance_update",BUTTON_CLICK:"button-click",DIALOG_BUTTON_CLICK:"dialog_button_click",PRE_PLAY:"pre_play",PLAY:"play",AUTOSPINS_STARTED:"autospins_started",AUTOSPINS_STOPPED:"autospins_stopped",GO_HOME:"go_home",SET_SKIN:"set_skin",ERROR:"game_error",SET_LINES_COUNT:"set_lines_count",SET_VOLATILITY:"set_volatility",SHOW_MODAL:"show_modal",CUSTOM_EVENT:"custom_event",GAME_UI_BET_PANEL_OPENED:"game_ui_bet_panel_opened",GAME_UI_BET_PANEL_CLOSED:"game_ui_bet_panel_closed",GAME_UI_SETTINGS_OPENED:"game_ui_settings_opened",GAME_UI_SETTINGS_CLOSED:"game_ui_settings_closed",GAME_UI_RULES_OPENED:"game_ui_rules_opened",GAME_UI_RULES_CLOSED:"game_ui_rules_closed",GAME_UI_PAYTABLE_OPENED:"game_ui_paytable_opened",GAME_UI_PAYTABLE_CLOSED:"game_ui_paytable_closed",GAME_UI_AUTOSPINS_PANEL_OPENED:"game_ui_autospins_panel_opened",GAME_UI_AUTOSPINS_PANEL_CLOSED:"game_ui_autospins_panel_closed",GAME_UI_QUICK_SPIN_OFFER_OPENED:"game_ui_quick_spin_offer_opened",GAME_UI_QUICK_SPIN_OFFER_CLOSED:"game_ui_quick_spin_offer_closed"}},4581:(t,e,i)=>{"use strict";i.d(e,{A:()=>o});var r=i(4051),n=i(2468),a=i(874),s=i(9443);class o extends r.A{init(){super.init(),this.showedVal2=void 0,this.countOnStart&&(this.showedVal=0),this.template&&(this.template=this.template.replace("\\n","\n")),this.savedTemplate=null,s.A.data&&this.refreshDecimalsCount(),this.applyMaxWidth()}refreshDecimalsCount(){var t;"number"==typeof(t=this.decimalsCountPath?(0,n.A)(this.decimalsCountPath,this):s.A.data.currencyDigits)&&(this.decimalsCount=t)}update(){if(this.refreshDecimalsCount(),this.dataPath2&&this.currentInterval===this.refreshInterval){var t=(0,n.A)(this.dataPath2,this);void 0!==t&&t!==this.showedVal2&&(this.showedVal2=t,this.setSymbol(t))}super.update()}refreshNow(){this.showedVal=void 0,super.refreshNow()}customizeVal(t){return t?t/s.A.data.currencyDivider:t}setSymbol(t){this.translatableText?this.template=(0,a.A)(this.translatableText):this.savedTemplate?this.template=this.savedTemplate:this.savedTemplate=this.template,this.template=this.template.replace("%s",t),this.symbol=t,this.currentInterval=0,this.showedVal=void 0}onLanguageChanged(){this.symbol&&this.translatableText&&this.setSymbol(this.symbol),super.onLanguageChanged()}_onRenderResize(){this.applyMaxWidth()}applyMaxWidth(){var t=s.A.isPortrait?this.maxWidthPortrait:this.maxWidthLandscape;t>0&&(this.maxWidth=t)}static initMoneyFormatter(t){"object"==typeof Intl&&(r.A.formatMoney=(e,i)=>{var r=l[i];return r||(r=Intl.NumberFormat(t.substr(0,2),{maximumFractionDigits:i,minimumFractionDigits:i}).format,l[i]=r),r(e)})}}var l={}},4381:(t,e,i)=>{"use strict";i.d(e,{A:()=>g});var r=i(9401),n=i(7781),a=i(9443),s=i(9135),o=i(3800),l=i(4049);window.trackGameEventListeners||(window.trackGameEventListeners=[]);var h={QUICK_SPIN_SETTINGS:"quick_spin_default",QUICK_SPINS_POPUP_OFFER:"quick_spins_popup_offer",SOUND_VALUE:"sound_value"},u=[{name:h.QUICK_SPIN_SETTINGS,handler:t=>{var e;if(void 0!==(null===(e=a.A.casinoOptions)||void 0===e||null===(e=e.license_rules)||void 0===e?void 0:e.min_spin_time))return!1;var i=a.A.settings.getItem("quickSpin",!1),r=a.A.settings.getItem("growthbook_quickSpin");return void 0===r&&(r=t.value,a.A.settings.setItem("growthbook_quickSpin",r)),i!==r&&(a.A.data.quickSpin=r,a.A.settings.setItem("quickSpin",a.A.data.quickSpin)),window.trackGameEventListeners.push(((t,e,i)=>{"settings-change"===t&&"quickSpin"===e&&a.A.settings.setItem("growthbook_quickSpin",i)})),!0}},{name:h.SOUND_VALUE,handler:t=>{if(a.A.settings.getItem("gb_sound_value_applied"))return!0;var e=.01*t.value;return l.A.soundEnabled=l.A.musicEnabled=!!e,0!==e&&(l.A.fullVol=e),a.A.settings.setItem("gb_sound_value_applied",!0),!0}}],c=[],p={game_loaded:!0,game_initialized:!0,render_resize:!0},d=(t,e,i)=>{if(t===o.A.GAME_LOADED&&y(),p[t]&&(i={width:a.A.W,height:a.A.H,isPortrait:a.A.isPortrait,isMobile:a.A.isMobile.any,isGambleAvailable:a.A.projectDesc.libs.indexOf("thing-games-utils/gamble")>0||s.A.hasScene("gamble"),isProvabilityAvailable:s.A.hasPrefab("thing-games-utils/provability-panel"),isBuyFeaturesAvailable:a.A.data.initData&&a.A.data.initData.options&&a.A.data.initData.options.feature_options&&a.A.data.initData.options.feature_options.feature_multipliers,ignoreOrientationEvents:!1}),window.trackGameEventListeners&&window.trackGameEventListeners.length)for(var r=window.trackGameEventListeners.length;r--;)window.trackGameEventListeners[r]&&window.trackGameEventListeners[r](t,e,i);try{c.forEach((r=>r(t,e,i)))}catch(n){}},f={addListener:t=>{c.push(t)},track:d,trackCustom:(t,e,i,r)=>{d(o.A.CUSTOM_EVENT,null,{action:t,label:e,value:i,isNonInteraction:r})}};const g=f;var m={cap:!0,"space to skip button":!0,"debug-button":!0};r.A.globalOnClick=(t,e)=>{for(var i,r=t;r;){if(r.name){i=r.name;break}r=r.parent}m.hasOwnProperty(i)||d("button-click",i,e)};var A=["latestSpinResultV2","__allSymbolsIds","latestSpinResultTimeV2","last-spins-indexes","growthbook_"],v={},y=()=>{v={},n.A.globalOnChanged=(t,e)=>{A.every((e=>-1===t.indexOf(e)))&&("object"==typeof t&&null!==t||(void 0===e&&(e="undefined"),v[t]=e))},d("initial-settings",null,a.A.settings.data)};setInterval((()=>{if(a.A.mouse&&!a.A.mouse.click)for(var t of Object.keys(v))d("settings-change",t,v[t]),delete v[t]}),200),a.A.onGameReload=()=>{d("game_reloading")},f.addListener((t=>{t===o.A.SET_SKIN&&d("game_reloading")}));var _=!1;function b({detail:t}){"initialized"===t.type&&console.log("[thing-games-utils] Analytics available in window.analytics",window.analytics),console.log("[thing-games-utils] Received message from analytics: ",t)}function x(t){window.dispatchEvent(new CustomEvent("experiment/incoming",{detail:{type:"addFeature",payload:{name:t.name,handler:t.handler}}}))}window.dispatchEvent(new CustomEvent("analytics/incoming",{detail:{type:"start",payload:{isEditor:_}}})),window.addEventListener("analytics/outgoing",b),window.addEventListener("experiment/outgoing",(({detail:t})=>{if("ready"===t.type)for(var e of(console.log("[Utils Analytics] ExperimentManager Ready!",t),u))console.log("[Utils Analytics] Add Feature",e),x(e)}))},4418:(t,e,i)=>{"use strict";i.d(e,{A:()=>c});var r=i(9443),n=i(874),a=i(4319),s=i(230);class o{initGame(){this.initReplayData(),this.isReplayMode()&&(r.A.all["spin-button"].hotkey=0,this.speed||(this.speed=1),this.started=!1,this.replayData&&(this.initView(),r.A.settings.clear()),this.clickToContinueDelay=0,this.refreshView())}isReplayMode(){return Boolean(this.replayData)}getNextResponse(){return this.replayData.shift()}beforeGameInit(){this.replayData&&(s.projectDesc.id="replay-mode")}initView(){if(!this.viewInitialized){setInterval(this.update.bind(this),1e3/60*10),this.viewInitialized=!0;var t=document.createElement("div");t.id="replay-panel",r.A.pixiApp.view.parentElement.appendChild(t);var e=document.createElement("button");e.addEventListener("pointerdown",(()=>{this.setSpeed(1)})),e.innerText="×1",t.appendChild(e),this.x1btn=e;var i=document.createElement("button");i.addEventListener("pointerdown",(()=>{this.setSpeed(2)})),i.innerText="×2",t.appendChild(i),this.x2btn=i;var a=document.createElement("button");a.addEventListener("pointerdown",(()=>{this.setSpeed(4)})),a.innerText="×4",t.appendChild(a),this.x4btn=a,t.appendChild(document.createTextNode((0,n.A)("replay")));var s=document.createElement("button");s.addEventListener("pointerdown",(()=>{this.paused=!0,r.A.pixiApp.ticker.speed=0,r.A.SharedAPI.restartGame()})),s.innerText="⏮",t.appendChild(s),this.restartButton=s;var o=document.createElement("button");o.addEventListener("pointerdown",(()=>{this.started?(this.paused=!this.paused,r.A.pixiApp.ticker.speed=this.paused?0:this.speed,this.refreshView()):this.clickSpin()})),t.appendChild(o),this.playBtn=o;var l=document.createElement("div");l.id="pause-message",t.appendChild(l),l.innerText="P A U S E",this.pauseMessage=l;var h=document.createElement("button");h.style.position="absolute",h.style.right="10px",h.addEventListener("pointerdown",(()=>{this.clickSpin()})),h.innerText="Help",t.appendChild(h),this.helpMessage=h,this.refreshView()}}clickSpin(){var t=r.A.all["spin-button"];t&&t.isCanBePressed&&(t.callClick(),this.started=!0,this.refreshView())}skipClickToContinuePopups(){var t=!1;r.A.currentContainer&&r.A.currentContainer.forAllChildren((e=>{e instanceof r.A.classes.Text&&(e.worldVisible&&e.worldAlpha||this.clickToContinueDelay>0)&&e.translatableText&&(e.translatableText.includes("tap_to_continue")||e.translatableText.includes("click_to_continue")||e.translatableText.includes("push_to_continue")||e.translatableText.includes("tap_to_start")||e.translatableText.includes("push_to_start")||e.translatableText.includes("click_to_start")||e.translatableText.includes("tap_to_spin")||e.translatableText.includes("push_to_spin")||e.translatableText.includes("click_to_spin")||e.translatableText.includes("tap_to_play")||e.translatableText.includes("push_to_play")||e.translatableText.includes("click_to_play"))&&(this.clickToContinueDelay++,12===this.clickToContinueDelay&&this.clickSpin(),t=!0)})),t||(this.clickToContinueDelay=0)}chooseFeature(){if(this.replayData.length&&r.A.currentContainer){var t=l(this.replayData[0]);if(t){var e=r.A.currentContainer.findChildByName("choose-btn-"+t);e&&this.clickButton(e)}}}gamblePlay(){if(this.replayData.length&&r.A.currentContainer){var t=h(this.replayData[0]);if(t){var e=r.A.currentContainer.findChildByName("gamble-btn");if(e&&e.isCanBePressed)return this.clickButton(e),!0;e=null;var i="currentScene.playGamble`"+t;r.A.currentContainer.forAllChildren((t=>{t instanceof r.A.classes.Button&&t.onClick===i&&(e=t)})),e&&this.clickButton(e)}}}update(){this.paused||(this.buttonClickWaits?this.processClickWaitingButton():(this.skipClickToContinuePopups(),this.chooseFeature()||this.gamblePlay()))}clickButton(t){this.buttonClickWaits=t,this.clickButtonDelay=0}processClickWaitingButton(){if(this.buttonClickWaits)return this.buttonClickWaits.isCanBePressed&&(this.clickButtonDelay++,6===this.clickButtonDelay&&this.buttonClickWaits.onOver(),12===this.clickButtonDelay&&(this.buttonClickWaits.callClick(),this.buttonClickWaits=null)),!0}setSpeed(t){this.speed=t,r.A.pixiApp.ticker.speed=t,this.refreshView()}refreshView(){this.playBtn.innerText=!this.started||this.paused?"⏵":"⏸",this.pauseMessage.style.display=!this.started||this.paused?"block":"none",this.started?this.playBtn.classList.remove("highlight"):this.playBtn.classList.add("highlight"),this.restartButton.disabled=!this.started,this.x1btn.disabled=1===this.speed,this.x2btn.disabled=2===this.speed,this.x4btn.disabled=4===this.speed}initStyles(){this.initReplayData(),this.replayData&&r.A.applyCSS("\ncanvas {\n\tpointer-events: none;\n\tborder: #ffcc29 3px solid;\n\tbox-sizing: border-box;\n\tborder-top-width: 45px;\n}\n\n#replay-panel {\n\theight: 45px;\n z-index: 100;\n position: absolute;\n top: 0;\n font-family: 'Arial';\n color: #000000;\n display: flex;\n\twidth: 100%;\n align-items: baseline;\n justify-content: center;\n\tfont-size: 20px;\n\tfont-weight: 700;\n}\n\n#replay-panel button {\n\tcursor: pointer;\n padding: 6px 13px;\n background: #ff8f00;\n margin: 5px;\n border-radius: 5px;\n font-size: 17px;\n\tfont-weight: 700;\n}\n\n#replay-panel button:hover {\n\toutline: 1px solid #774400;\n\toutline-offset: 2px;\n}\n\n#replay-panel button:disabled {\n\tpointer-events: none;\n\tcursor: unset;\n\topacity: 0.5;\n}\n\n.highlight {\n\tanimation: highlight 1s ease 0s infinite normal forwards;\n\toutline-offset: 2px;\n\toutline: 3px solid #ff0000;\n}\n\n#pause-message {\n\tanimation: flash 1s ease 0s infinite normal forwards;\n position: absolute;\n\tfont-family: 'Arial';\n color: #ffffff;\n\ttop: 43vh;\n font-size: 400%;\n text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;\n}\n\n@keyframes highlight {\n\t0%,\n\t100% {\n\t\toutline-color: #ff0000;\n\t}\n\t50% {\n\t\toutline-color: #ffcc29;\n\t}\n}\n\n@keyframes flash {\n\t0%,\n\t100% {\n\t\topacity: 1;\n\t}\n\t50% {\n\t\topacity: 0;\n\t}\n}\n\n")}initReplayData(){this.replayData=(0,a.Go)(window.__OPTIONS__.replay||null),this.replayData&&this.replayData.some((t=>{if(t&&t.outcome&&t.outcome.bet){var e=t.outcome.bet,i=this.replayData[0].options;return i.currency||(i.currency={code:"FUN",symbol:"FUN",subunits:100,exponent:2}),i.default_bet=e,i.available_bets.indexOf(e)<0&&(i.available_bets.push(e),i.available_bets.sort(((t,e)=>t-e))),!0}}))}}function l(t){if(t.features)return t.features.freespins_type}function h(t){if(t.gamble)return t.gamble.value[1]}var u=new o;u.initStyles();const c=u},6113:(t,e,i)=>{"use strict";i.d(e,{T:()=>a});var r=i(4381),n=window.Sentry,a=void 0;a&&(n.init({environment:window.__OPTIONS__.environment,dsn:void 0,release:"Plinko (game: v0.0.41_v14.13.3, utils: v14.13.3)",ignoreErrors:[],beforeBreadcrumb:t=>"ui.click"===t.category?null:t,tracesSampleRate:.1,attachStacktrace:!0,denyUrls:[/moz-extension:/,/chrome-extension:/,/edge-extension:/]}),window.user_id&&n.setUser({id:window.user_id}),r.A.addListener(((t,e,i)=>{n.addBreadcrumb({type:"info",category:"game.event",message:t,data:{eventName:t,targetName:e,source:JSON.stringify(i)},level:n.Severity.Info})})))},808:(t,e)=>{"use strict";function i(){return"undefined"==typeof Intl||!("getCanonicalLocales"in Intl)||"x-private"===Intl.getCanonicalLocales("und-x-private")[0]}Object.defineProperty(e,"__esModule",{value:!0}),e.shouldPolyfill=void 0,e.shouldPolyfill=i},1707:(t,e)=>{"use strict";function i(){try{return"x-private"===new Intl.Locale("und-x-private").toString()}catch(t){return!0}}function r(){return!("Locale"in Intl)||i()}Object.defineProperty(e,"__esModule",{value:!0}),e.shouldPolyfill=void 0,e.shouldPolyfill=r},1626:(t,e,i)=>{"use strict";function r(t,e){for(var i=e;;){if(t.has(i))return i;var r=i.lastIndexOf("-");if(!~r)return;r>=2&&"-"===i[r-2]&&(r-=2),i=i.slice(0,r)}}i.d(e,{q:()=>r})},234:(t,e,i)=>{"use strict";i.d(e,{s:()=>a});var r=i(9400),n=i(1626);function a(t,e){for(var i=[],a=0,s=e;a{"use strict";i.d(e,{B:()=>l});var r=i(9400),n=i(1626);function a(t,e,i){for(var a={locale:""},s=0,o=e;s2){var T=c.indexOf("-x-");if(-1===T)c+=d;else{var E=c.slice(0,T),S=c.slice(T,c.length);c=E+d+S}c=Intl.getCanonicalLocales(c)[0]}return p.locale=c,p}},9400:(t,e,i)=>{"use strict";i.d(e,{K:()=>r,V:()=>n});var r=/-u(?:-[0-9a-z]{2,8})+/gi;function n(t,e,i){if(void 0===i&&(i=Error),!t)throw new i(e)}},7343:(t,e,i)=>{"use strict";function r(t){return Intl.getCanonicalLocales(t)}i.r(e),i.d(e,{LookupSupportedLocales:()=>a.s,ResolveLocale:()=>n.B,match:()=>s});var n=i(722),a=i(234);function s(t,e,i,a){var s=e.reduce((function(t,e){return t.add(e),t}),new Set);return(0,n.B)(s,r(t),{localeMatcher:(null==a?void 0:a.algorithm)||"best fit"},[],{},(function(){return i})).locale}},1232:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.shouldPolyfill=void 0;var r=i(7343),n=i(6673);function a(t){if(!t)return!0;var e=Array.isArray(t)?t:[t];return Intl.PluralRules.supportedLocalesOf(e).length===e.length}function s(t){if(void 0===t&&(t="en"),!("PluralRules"in Intl)||"one"===new Intl.PluralRules("en",{minimumFractionDigits:2}).select(1)||!a(t))return t?(0,r.match)([t],n.supportedLocales,"en"):void 0}e.shouldPolyfill=s},6673:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.supportedLocales=void 0,e.supportedLocales=["af","ak","am","an","ar","ars","as","asa","ast","az","bal","be","bem","bez","bg","bho","bm","bn","bo","br","brx","bs","ca","ce","ceb","cgg","chr","ckb","cs","cy","da","de","doi","dsb","dv","dz","ee","el","en","eo","es","et","eu","fa","ff","fi","fil","fo","fr","fur","fy","ga","gd","gl","gsw","gu","guw","gv","ha","haw","he","hi","hnj","hr","hsb","hu","hy","ia","id","ig","ii","io","is","it","iu","ja","jbo","jgo","jmc","jv","jw","ka","kab","kaj","kcg","kde","kea","kk","kkj","kl","km","kn","ko","ks","ksb","ksh","ku","kw","ky","lag","lb","lg","lij","lkt","ln","lo","lt","lv","mas","mg","mgo","mk","ml","mn","mo","mr","ms","mt","my","nah","naq","nb","nd","ne","nl","nn","nnh","no","nqo","nr","nso","ny","nyn","om","or","os","osa","pa","pap","pcm","pl","prg","ps","pt-PT","pt","rm","ro","rof","ru","rwk","sah","saq","sat","sc","scn","sd","sdh","se","seh","ses","sg","sh","shi","si","sk","sl","sma","smi","smj","smn","sms","sn","so","sq","sr","ss","ssy","st","su","sv","sw","syr","ta","te","teo","th","ti","tig","tk","tl","tn","to","tpi","tr","ts","tzm","ug","uk","und","ur","uz","ve","vi","vo","vun","wa","wae","wo","xh","xog","yi","yo","yue","zh","zu"]},6317:(t,e,i)=>{"use strict";var r=i(6535),n=i(9829),a=n(r("String.prototype.indexOf"));t.exports=function(t,e){var i=r(t,!!e);return"function"==typeof i&&a(t,".prototype.")>-1?n(i):i}},9829:(t,e,i)=>{"use strict";var r=i(9477),n=i(6535),a=i(1451),s=i(9525),o=n("%Function.prototype.apply%"),l=n("%Function.prototype.call%"),h=n("%Reflect.apply%",!0)||r.call(l,o),u=i(4749),c=n("%Math.max%");t.exports=function(t){if("function"!=typeof t)throw new s("a function is required");var e=h(r,l,arguments);return a(e,1+c(0,t.length-(arguments.length-1)),!0)};var p=function(){return h(r,o,arguments)};u?u(t.exports,"apply",{value:p}):t.exports.apply=p},7675:(t,e,i)=>{"use strict";var r=i(4749),n=i(1902),a=i(9525),s=i(9857);t.exports=function(t,e,i){if(!t||"object"!=typeof t&&"function"!=typeof t)throw new a("`obj` must be an object or a function`");if("string"!=typeof e&&"symbol"!=typeof e)throw new a("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new a("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new a("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new a("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new a("`loose`, if provided, must be a boolean");var o=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,h=arguments.length>5?arguments[5]:null,u=arguments.length>6&&arguments[6],c=!!s&&s(t,e);if(r)r(t,e,{configurable:null===h&&c?c.configurable:!h,enumerable:null===o&&c?c.enumerable:!o,value:i,writable:null===l&&c?c.writable:!l});else{if(!u&&(o||l||h))throw new n("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");t[e]=i}}},2840:t=>{"use strict";function e(t,e,r){r=r||2;var a,s,o,l,u,c,p,d=e&&e.length,f=d?e[0]*r:t.length,g=i(t,0,f,r,!0),m=[];if(!g||g.next===g.prev)return m;if(d&&(g=h(t,e,g,r)),t.length>80*r){a=o=t[0],s=l=t[1];for(var A=r;Ao&&(o=u),c>l&&(l=c);p=0!==(p=Math.max(o-a,l-s))?32767/p:0}return n(g,m,r,a,s,p,0),m}function i(t,e,i,r,n){var a,s;if(n===M(t,e,i,r)>0)for(a=e;a=e;a-=r)s=R(a,t[a],t[a+1],s);return s&&b(s,s.next)&&(C(s),s=s.next),s}function r(t,e){if(!t)return t;e||(e=t);var i,r=t;do{if(i=!1,r.steiner||!b(r,r.next)&&0!==_(r.prev,r,r.next))r=r.next;else{if(C(r),(r=e=r.prev)===r.next)break;i=!0}}while(i||r!==e);return e}function n(t,e,i,h,u,c,p){if(t){!p&&c&&f(t,h,u,c);for(var d,g,m=t;t.prev!==t.next;)if(d=t.prev,g=t.next,c?s(t,h,u,c):a(t))e.push(d.i/i|0),e.push(t.i/i|0),e.push(g.i/i|0),C(t),t=g.next,m=g.next;else if((t=g)===m){p?1===p?n(t=o(r(t),e,i),e,i,h,u,c,2):2===p&&l(t,e,i,h,u,c):n(r(t),e,i,h,u,c,1);break}}}function a(t){var e=t.prev,i=t,r=t.next;if(_(e,i,r)>=0)return!1;for(var n=e.x,a=i.x,s=r.x,o=e.y,l=i.y,h=r.y,u=na?n>s?n:s:a>s?a:s,d=o>l?o>h?o:h:l>h?l:h,f=r.next;f!==e;){if(f.x>=u&&f.x<=p&&f.y>=c&&f.y<=d&&v(n,o,a,l,s,h,f.x,f.y)&&_(f.prev,f,f.next)>=0)return!1;f=f.next}return!0}function s(t,e,i,r){var n=t.prev,a=t,s=t.next;if(_(n,a,s)>=0)return!1;for(var o=n.x,l=a.x,h=s.x,u=n.y,c=a.y,p=s.y,d=ol?o>h?o:h:l>h?l:h,A=u>c?u>p?u:p:c>p?c:p,y=m(d,f,e,i,r),b=m(g,A,e,i,r),x=t.prevZ,T=t.nextZ;x&&x.z>=y&&T&&T.z<=b;){if(x.x>=d&&x.x<=g&&x.y>=f&&x.y<=A&&x!==n&&x!==s&&v(o,u,l,c,h,p,x.x,x.y)&&_(x.prev,x,x.next)>=0)return!1;if(x=x.prevZ,T.x>=d&&T.x<=g&&T.y>=f&&T.y<=A&&T!==n&&T!==s&&v(o,u,l,c,h,p,T.x,T.y)&&_(T.prev,T,T.next)>=0)return!1;T=T.nextZ}for(;x&&x.z>=y;){if(x.x>=d&&x.x<=g&&x.y>=f&&x.y<=A&&x!==n&&x!==s&&v(o,u,l,c,h,p,x.x,x.y)&&_(x.prev,x,x.next)>=0)return!1;x=x.prevZ}for(;T&&T.z<=b;){if(T.x>=d&&T.x<=g&&T.y>=f&&T.y<=A&&T!==n&&T!==s&&v(o,u,l,c,h,p,T.x,T.y)&&_(T.prev,T,T.next)>=0)return!1;T=T.nextZ}return!0}function o(t,e,i){var n=t;do{var a=n.prev,s=n.next.next;!b(a,s)&&x(a,n,n.next,s)&&w(a,s)&&w(s,a)&&(e.push(a.i/i|0),e.push(n.i/i|0),e.push(s.i/i|0),C(n),C(n.next),n=t=s),n=n.next}while(n!==t);return r(n)}function l(t,e,i,a,s,o){var l=t;do{for(var h=l.next.next;h!==l.prev;){if(l.i!==h.i&&y(l,h)){var u=I(l,h);return l=r(l,l.next),u=r(u,u.next),n(l,e,i,a,s,o,0),void n(u,e,i,a,s,o,0)}h=h.next}l=l.next}while(l!==t)}function h(t,e,r,n){var a,s,o,l=[];for(a=0,s=e.length;a=r.next.y&&r.next.y!==r.y){var o=r.x+(a-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(o<=n&&o>s&&(s=o,i=r.x=r.x&&r.x>=u&&n!==r.x&&v(ai.x||r.x===i.x&&d(i,r)))&&(i=r,p=l)),r=r.next}while(r!==h);return i}function d(t,e){return _(t.prev,t,e.prev)<0&&_(e.next,t,t.next)<0}function f(t,e,i,r){var n=t;do{0===n.z&&(n.z=m(n.x,n.y,e,i,r)),n.prevZ=n.prev,n.nextZ=n.next,n=n.next}while(n!==t);n.prevZ.nextZ=null,n.prevZ=null,g(n)}function g(t){var e,i,r,n,a,s,o,l,h=1;do{for(i=t,t=null,a=null,s=0;i;){for(s++,r=i,o=0,e=0;e0||l>0&&r;)0!==o&&(0===l||!r||i.z<=r.z)?(n=i,i=i.nextZ,o--):(n=r,r=r.nextZ,l--),a?a.nextZ=n:t=n,n.prevZ=a,a=n;i=r}a.nextZ=null,h*=2}while(s>1);return t}function m(t,e,i,r,n){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=(t-i)*n|0)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=(e-r)*n|0)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function A(t){var e=t,i=t;do{(e.x=(t-s)*(a-o)&&(t-s)*(r-o)>=(i-s)*(e-o)&&(i-s)*(a-o)>=(n-s)*(r-o)}function y(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!S(t,e)&&(w(t,e)&&w(e,t)&&P(t,e)&&(_(t.prev,t,e.prev)||_(t,e.prev,e))||b(t,e)&&_(t.prev,t,t.next)>0&&_(e.prev,e,e.next)>0)}function _(t,e,i){return(e.y-t.y)*(i.x-e.x)-(e.x-t.x)*(i.y-e.y)}function b(t,e){return t.x===e.x&&t.y===e.y}function x(t,e,i,r){var n=E(_(t,e,i)),a=E(_(t,e,r)),s=E(_(i,r,t)),o=E(_(i,r,e));return n!==a&&s!==o||(!(0!==n||!T(t,i,e))||(!(0!==a||!T(t,r,e))||(!(0!==s||!T(i,t,r))||!(0!==o||!T(i,e,r)))))}function T(t,e,i){return e.x<=Math.max(t.x,i.x)&&e.x>=Math.min(t.x,i.x)&&e.y<=Math.max(t.y,i.y)&&e.y>=Math.min(t.y,i.y)}function E(t){return t>0?1:t<0?-1:0}function S(t,e){var i=t;do{if(i.i!==t.i&&i.next.i!==t.i&&i.i!==e.i&&i.next.i!==e.i&&x(i,i.next,t,e))return!0;i=i.next}while(i!==t);return!1}function w(t,e){return _(t.prev,t,t.next)<0?_(t,e,t.next)>=0&&_(t,t.prev,e)>=0:_(t,e,t.prev)<0||_(t,t.next,e)<0}function P(t,e){var i=t,r=!1,n=(t.x+e.x)/2,a=(t.y+e.y)/2;do{i.y>a!=i.next.y>a&&i.next.y!==i.y&&n<(i.next.x-i.x)*(a-i.y)/(i.next.y-i.y)+i.x&&(r=!r),i=i.next}while(i!==t);return r}function I(t,e){var i=new O(t.i,t.x,t.y),r=new O(e.i,e.x,e.y),n=t.next,a=e.prev;return t.next=e,e.prev=t,i.next=n,n.prev=i,r.next=i,i.prev=r,a.next=r,r.prev=a,r}function R(t,e,i,r){var n=new O(t,e,i);return r?(n.next=r.next,n.prev=r,r.next.prev=n,r.next=n):(n.prev=n,n.next=n),n}function C(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function O(t,e,i){this.i=t,this.x=e,this.y=i,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}function M(t,e,i,r){for(var n=0,a=e,s=i-r;a0&&(r+=t[n-1].length,i.holes.push(r))}return i}},4749:(t,e,i)=>{"use strict";var r=i(6535)("%Object.defineProperty%",!0)||!1;if(r)try{r({},"a",{value:1})}catch(n){r=!1}t.exports=r},6235:t=>{"use strict";t.exports=EvalError},209:t=>{"use strict";t.exports=Error},2460:t=>{"use strict";t.exports=RangeError},7080:t=>{"use strict";t.exports=ReferenceError},1902:t=>{"use strict";t.exports=SyntaxError},9525:t=>{"use strict";t.exports=TypeError},3451:t=>{"use strict";t.exports=URIError},9846:t=>{"use strict";var e=Object.prototype.hasOwnProperty,i="~";function r(){}function n(t,e,i){this.fn=t,this.context=e,this.once=i||!1}function a(t,e,r,a,s){if("function"!=typeof r)throw new TypeError("The listener must be a function");var o=new n(r,a||t,s),l=i?i+e:e;return t._events[l]?t._events[l].fn?t._events[l]=[t._events[l],o]:t._events[l].push(o):(t._events[l]=o,t._eventsCount++),t}function s(t,e){0==--t._eventsCount?t._events=new r:delete t._events[e]}function o(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(i=!1)),o.prototype.eventNames=function(){var t,r,n=[];if(0===this._eventsCount)return n;for(r in t=this._events)e.call(t,r)&&n.push(i?r.slice(1):r);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(t)):n},o.prototype.listeners=function(t){var e=i?i+t:t,r=this._events[e];if(!r)return[];if(r.fn)return[r.fn];for(var n=0,a=r.length,s=new Array(a);n{function e(t,e){var i=e&&e.cache?e.cache:c,r=e&&e.serializer?e.serializer:h;return(e&&e.strategy?e.strategy:s)(t,{cache:i,serializer:r})}function i(t){return null==t||"number"==typeof t||"boolean"==typeof t}function r(t,e,r,n){var a=i(n)?n:r(n),s=e.get(a);return void 0===s&&(s=t.call(this,n),e.set(a,s)),s}function n(t,e,i){var r=Array.prototype.slice.call(arguments,3),n=i(r),a=e.get(n);return void 0===a&&(a=t.apply(this,r),e.set(n,a)),a}function a(t,e,i,r,n){return i.bind(e,t,r,n)}function s(t,e){return a(t,this,1===t.length?r:n,e.cache.create(),e.serializer)}function o(t,e){return a(t,this,n,e.cache.create(),e.serializer)}function l(t,e){return a(t,this,r,e.cache.create(),e.serializer)}function h(){return JSON.stringify(arguments)}function u(){this.cache=Object.create(null)}u.prototype.has=function(t){return t in this.cache},u.prototype.get=function(t){return this.cache[t]},u.prototype.set=function(t,e){this.cache[t]=e};var c={create:function(){return new u}};t.exports=e,t.exports.strategies={variadic:o,monadic:l}},7787:t=>{"use strict";var e="Function.prototype.bind called on incompatible ",i=Object.prototype.toString,r=Math.max,n="[object Function]",a=function(t,e){for(var i=[],r=0;r{"use strict";var r=i(7787);t.exports=Function.prototype.bind||r},6535:(t,e,i)=>{"use strict";var r,n=i(209),a=i(6235),s=i(2460),o=i(7080),l=i(1902),h=i(9525),u=i(3451),c=Function,p=function(t){try{return c('"use strict"; return ('+t+").constructor;")()}catch(e){}},d=Object.getOwnPropertyDescriptor;if(d)try{d({},"")}catch(k){d=null}var f=function(){throw new h},g=d?function(){try{return f}catch(t){try{return d(arguments,"callee").get}catch(e){return f}}}():f,m=i(6445)(),A=i(6274)(),v=Object.getPrototypeOf||(A?function(t){return t.__proto__}:null),y={},_="undefined"!=typeof Uint8Array&&v?v(Uint8Array):r,b={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":m&&v?v([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":y,"%AsyncGenerator%":y,"%AsyncGeneratorFunction%":y,"%AsyncIteratorPrototype%":y,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":n,"%eval%":eval,"%EvalError%":a,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":c,"%GeneratorFunction%":y,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":m&&v?v(v([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&m&&v?v((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":s,"%ReferenceError%":o,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&m&&v?v((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":m&&v?v(""[Symbol.iterator]()):r,"%Symbol%":m?Symbol:r,"%SyntaxError%":l,"%ThrowTypeError%":g,"%TypedArray%":_,"%TypeError%":h,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":u,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet};if(v)try{null.error}catch(k){var x=v(v(k));b["%Error.prototype%"]=x}var T=function t(e){var i;if("%AsyncFunction%"===e)i=p("async function () {}");else if("%GeneratorFunction%"===e)i=p("function* () {}");else if("%AsyncGeneratorFunction%"===e)i=p("async function* () {}");else if("%AsyncGenerator%"===e){var r=t("%AsyncGeneratorFunction%");r&&(i=r.prototype)}else if("%AsyncIteratorPrototype%"===e){var n=t("%AsyncGenerator%");n&&v&&(i=v(n.prototype))}return b[e]=i,i},E={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},S=i(9477),w=i(2931),P=S.call(Function.call,Array.prototype.concat),I=S.call(Function.apply,Array.prototype.splice),R=S.call(Function.call,String.prototype.replace),C=S.call(Function.call,String.prototype.slice),O=S.call(Function.call,RegExp.prototype.exec),M=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,B=/\\(\\)?/g,D=function(t){var e=C(t,0,1),i=C(t,-1);if("%"===e&&"%"!==i)throw new l("invalid intrinsic syntax, expected closing `%`");if("%"===i&&"%"!==e)throw new l("invalid intrinsic syntax, expected opening `%`");var r=[];return R(t,M,(function(t,e,i,n){r[r.length]=i?R(n,B,"$1"):e||t})),r},L=function(t,e){var i,r=t;if(w(E,r)&&(r="%"+(i=E[r])[0]+"%"),w(b,r)){var n=b[r];if(n===y&&(n=T(r)),void 0===n&&!e)throw new h("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:r,value:n}}throw new l("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new h("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new h('"allowMissing" argument must be a boolean');if(null===O(/^%?[^%]*%?$/,t))throw new l("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var i=D(t),r=i.length>0?i[0]:"",n=L("%"+r+"%",e),a=n.name,s=n.value,o=!1,u=n.alias;u&&(r=u[0],I(i,P([0,1],u)));for(var c=1,p=!0;c=i.length){var A=d(s,f);s=(p=!!A)&&"get"in A&&!("originalValue"in A.get)?A.get:s[f]}else p=w(s,f),s=s[f];p&&!o&&(b[a]=s)}}return s}},9857:(t,e,i)=>{"use strict";var r=i(6535)("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch(n){r=null}t.exports=r},7214:(t,e,i)=>{"use strict";var r=i(4749),n=function(){return!!r};n.hasArrayLengthDefineBug=function(){if(!r)return null;try{return 1!==r([],"length",{value:1}).length}catch(t){return!0}},t.exports=n},6274:t=>{"use strict";var e={__proto__:null,foo:{}},i=Object;t.exports=function(){return{__proto__:e}.foo===e.foo&&!(e instanceof i)}},6445:(t,e,i)=>{"use strict";var r="undefined"!=typeof Symbol&&Symbol,n=i(9071);t.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&n())))}},9071:t=>{"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),i=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(i))return!1;var r=42;for(e in t[e]=r,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var n=Object.getOwnPropertySymbols(t);if(1!==n.length||n[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var a=Object.getOwnPropertyDescriptor(t,e);if(a.value!==r||!0!==a.enumerable)return!1}return!0}},2931:(t,e,i)=>{"use strict";var r=Function.prototype.call,n=Object.prototype.hasOwnProperty,a=i(9477);t.exports=a.call(r,n)},2449:(t,e,i)=>{var{webm:r,mp4:n}=i(3621),a=()=>"undefined"!=typeof navigator&&parseFloat((""+(/CPU.*OS ([0-9_]{3,4})[0-9_]{0,1}|(CPU like).*AppleWebKit.*Mobile/i.exec(navigator.userAgent)||[0,""])[1]).replace("undefined","3_2").replace("_",".").replace("_",""))<10&&!window.MSStream,s=()=>"wakeLock"in navigator;class o{constructor(){if(this.enabled=!1,s()){this._wakeLock=null;var t=()=>{null!==this._wakeLock&&"visible"===document.visibilityState&&this.enable()};document.addEventListener("visibilitychange",t),document.addEventListener("fullscreenchange",t)}else a()?this.noSleepTimer=null:(this.noSleepVideo=document.createElement("video"),this.noSleepVideo.setAttribute("title","No Sleep"),this.noSleepVideo.setAttribute("playsinline",""),this._addSourceToVideo(this.noSleepVideo,"webm",r),this._addSourceToVideo(this.noSleepVideo,"mp4",n),this.noSleepVideo.addEventListener("loadedmetadata",(()=>{this.noSleepVideo.duration<=1?this.noSleepVideo.setAttribute("loop",""):this.noSleepVideo.addEventListener("timeupdate",(()=>{this.noSleepVideo.currentTime>.5&&(this.noSleepVideo.currentTime=Math.random())}))})))}_addSourceToVideo(t,e,i){var r=document.createElement("source");r.src=i,r.type=`video/${e}`,t.appendChild(r)}get isEnabled(){return this.enabled}enable(){return s()?navigator.wakeLock.request("screen").then((t=>{this._wakeLock=t,this.enabled=!0,console.log("Wake Lock active."),this._wakeLock.addEventListener("release",(()=>{console.log("Wake Lock released.")}))})).catch((t=>{throw this.enabled=!1,console.error(`${t.name}, ${t.message}`),t})):a()?(this.disable(),console.warn("\n NoSleep enabled for older iOS devices. This can interrupt\n active or long-running network requests from completing successfully.\n See https://github.com/richtr/NoSleep.js/issues/15 for more details.\n "),this.noSleepTimer=window.setInterval((()=>{document.hidden||(window.location.href=window.location.href.split("#")[0],window.setTimeout(window.stop,0))}),15e3),this.enabled=!0,Promise.resolve()):this.noSleepVideo.play().then((t=>(this.enabled=!0,t))).catch((t=>{throw this.enabled=!1,t}))}disable(){s()?(this._wakeLock&&this._wakeLock.release(),this._wakeLock=null):a()?this.noSleepTimer&&(console.warn("\n NoSleep now disabled for older iOS devices.\n "),window.clearInterval(this.noSleepTimer),this.noSleepTimer=null):this.noSleepVideo.pause(),this.enabled=!1}}t.exports=o},3621:t=>{t.exports={webm:"data:video/webm;base64,GkXfowEAAAAAAAAfQoaBAUL3gQFC8oEEQvOBCEKChHdlYm1Ch4EEQoWBAhhTgGcBAAAAAAAVkhFNm3RALE27i1OrhBVJqWZTrIHfTbuMU6uEFlSua1OsggEwTbuMU6uEHFO7a1OsghV17AEAAAAAAACkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAVSalmAQAAAAAAAEUq17GDD0JATYCNTGF2ZjU1LjMzLjEwMFdBjUxhdmY1NS4zMy4xMDBzpJBlrrXf3DCDVB8KcgbMpcr+RImIQJBgAAAAAAAWVK5rAQAAAAAAD++uAQAAAAAAADLXgQFzxYEBnIEAIrWcg3VuZIaFVl9WUDiDgQEj44OEAmJaAOABAAAAAAAABrCBsLqBkK4BAAAAAAAPq9eBAnPFgQKcgQAitZyDdW5khohBX1ZPUkJJU4OBAuEBAAAAAAAAEZ+BArWIQOdwAAAAAABiZIEgY6JPbwIeVgF2b3JiaXMAAAAAAoC7AAAAAAAAgLUBAAAAAAC4AQN2b3JiaXMtAAAAWGlwaC5PcmcgbGliVm9yYmlzIEkgMjAxMDExMDEgKFNjaGF1ZmVudWdnZXQpAQAAABUAAABlbmNvZGVyPUxhdmM1NS41Mi4xMDIBBXZvcmJpcyVCQ1YBAEAAACRzGCpGpXMWhBAaQlAZ4xxCzmvsGUJMEYIcMkxbyyVzkCGkoEKIWyiB0JBVAABAAACHQXgUhIpBCCGEJT1YkoMnPQghhIg5eBSEaUEIIYQQQgghhBBCCCGERTlokoMnQQgdhOMwOAyD5Tj4HIRFOVgQgydB6CCED0K4moOsOQghhCQ1SFCDBjnoHITCLCiKgsQwuBaEBDUojILkMMjUgwtCiJqDSTX4GoRnQXgWhGlBCCGEJEFIkIMGQcgYhEZBWJKDBjm4FITLQagahCo5CB+EIDRkFQCQAACgoiiKoigKEBqyCgDIAAAQQFEUx3EcyZEcybEcCwgNWQUAAAEACAAAoEiKpEiO5EiSJFmSJVmSJVmS5omqLMuyLMuyLMsyEBqyCgBIAABQUQxFcRQHCA1ZBQBkAAAIoDiKpViKpWiK54iOCISGrAIAgAAABAAAEDRDUzxHlETPVFXXtm3btm3btm3btm3btm1blmUZCA1ZBQBAAAAQ0mlmqQaIMAMZBkJDVgEACAAAgBGKMMSA0JBVAABAAACAGEoOogmtOd+c46BZDppKsTkdnEi1eZKbirk555xzzsnmnDHOOeecopxZDJoJrTnnnMSgWQqaCa0555wnsXnQmiqtOeeccc7pYJwRxjnnnCateZCajbU555wFrWmOmkuxOeecSLl5UptLtTnnnHPOOeecc84555zqxekcnBPOOeecqL25lpvQxTnnnE/G6d6cEM4555xzzjnnnHPOOeecIDRkFQAABABAEIaNYdwpCNLnaCBGEWIaMulB9+gwCRqDnELq0ehopJQ6CCWVcVJKJwgNWQUAAAIAQAghhRRSSCGFFFJIIYUUYoghhhhyyimnoIJKKqmooowyyyyzzDLLLLPMOuyssw47DDHEEEMrrcRSU2011lhr7jnnmoO0VlprrbVSSimllFIKQkNWAQAgAAAEQgYZZJBRSCGFFGKIKaeccgoqqIDQkFUAACAAgAAAAABP8hzRER3RER3RER3RER3R8RzPESVREiVREi3TMjXTU0VVdWXXlnVZt31b2IVd933d933d+HVhWJZlWZZlWZZlWZZlWZZlWZYgNGQVAAACAAAghBBCSCGFFFJIKcYYc8w56CSUEAgNWQUAAAIACAAAAHAUR3EcyZEcSbIkS9IkzdIsT/M0TxM9URRF0zRV0RVdUTdtUTZl0zVdUzZdVVZtV5ZtW7Z125dl2/d93/d93/d93/d93/d9XQdCQ1YBABIAADqSIymSIimS4ziOJElAaMgqAEAGAEAAAIriKI7jOJIkSZIlaZJneZaomZrpmZ4qqkBoyCoAABAAQAAAAAAAAIqmeIqpeIqoeI7oiJJomZaoqZoryqbsuq7ruq7ruq7ruq7ruq7ruq7ruq7ruq7ruq7ruq7ruq7ruq4LhIasAgAkAAB0JEdyJEdSJEVSJEdygNCQVQCADACAAAAcwzEkRXIsy9I0T/M0TxM90RM901NFV3SB0JBVAAAgAIAAAAAAAAAMybAUy9EcTRIl1VItVVMt1VJF1VNVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVN0zRNEwgNWQkAkAEAkBBTLS3GmgmLJGLSaqugYwxS7KWxSCpntbfKMYUYtV4ah5RREHupJGOKQcwtpNApJq3WVEKFFKSYYyoVUg5SIDRkhQAQmgHgcBxAsixAsiwAAAAAAAAAkDQN0DwPsDQPAAAAAAAAACRNAyxPAzTPAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABA0jRA8zxA8zwAAAAAAAAA0DwP8DwR8EQRAAAAAAAAACzPAzTRAzxRBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABA0jRA8zxA8zwAAAAAAAAAsDwP8EQR0DwRAAAAAAAAACzPAzxRBDzRAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAEOAAABBgIRQasiIAiBMAcEgSJAmSBM0DSJYFTYOmwTQBkmVB06BpME0AAAAAAAAAAAAAJE2DpkHTIIoASdOgadA0iCIAAAAAAAAAAAAAkqZB06BpEEWApGnQNGgaRBEAAAAAAAAAAAAAzzQhihBFmCbAM02IIkQRpgkAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAGHAAAAgwoQwUGrIiAIgTAHA4imUBAIDjOJYFAACO41gWAABYliWKAABgWZooAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAYcAAACDChDBQashIAiAIAcCiKZQHHsSzgOJYFJMmyAJYF0DyApgFEEQAIAAAocAAACLBBU2JxgEJDVgIAUQAABsWxLE0TRZKkaZoniiRJ0zxPFGma53meacLzPM80IYqiaJoQRVE0TZimaaoqME1VFQAAUOAAABBgg6bE4gCFhqwEAEICAByKYlma5nmeJ4qmqZokSdM8TxRF0TRNU1VJkqZ5niiKommapqqyLE3zPFEURdNUVVWFpnmeKIqiaaqq6sLzPE8URdE0VdV14XmeJ4qiaJqq6roQRVE0TdNUTVV1XSCKpmmaqqqqrgtETxRNU1Vd13WB54miaaqqq7ouEE3TVFVVdV1ZBpimaaqq68oyQFVV1XVdV5YBqqqqruu6sgxQVdd1XVmWZQCu67qyLMsCAAAOHAAAAoygk4wqi7DRhAsPQKEhKwKAKAAAwBimFFPKMCYhpBAaxiSEFEImJaXSUqogpFJSKRWEVEoqJaOUUmopVRBSKamUCkIqJZVSAADYgQMA2IGFUGjISgAgDwCAMEYpxhhzTiKkFGPOOScRUoox55yTSjHmnHPOSSkZc8w556SUzjnnnHNSSuacc845KaVzzjnnnJRSSuecc05KKSWEzkEnpZTSOeecEwAAVOAAABBgo8jmBCNBhYasBABSAQAMjmNZmuZ5omialiRpmud5niiapiZJmuZ5nieKqsnzPE8URdE0VZXneZ4oiqJpqirXFUXTNE1VVV2yLIqmaZqq6rowTdNUVdd1XZimaaqq67oubFtVVdV1ZRm2raqq6rqyDFzXdWXZloEsu67s2rIAAPAEBwCgAhtWRzgpGgssNGQlAJABAEAYg5BCCCFlEEIKIYSUUggJAAAYcAAACDChDBQashIASAUAAIyx1lprrbXWQGettdZaa62AzFprrbXWWmuttdZaa6211lJrrbXWWmuttdZaa6211lprrbXWWmuttdZaa6211lprrbXWWmuttdZaa6211lprrbXWWmstpZRSSimllFJKKaWUUkoppZRSSgUA+lU4APg/2LA6wknRWGChISsBgHAAAMAYpRhzDEIppVQIMeacdFRai7FCiDHnJKTUWmzFc85BKCGV1mIsnnMOQikpxVZjUSmEUlJKLbZYi0qho5JSSq3VWIwxqaTWWoutxmKMSSm01FqLMRYjbE2ptdhqq7EYY2sqLbQYY4zFCF9kbC2m2moNxggjWywt1VprMMYY3VuLpbaaizE++NpSLDHWXAAAd4MDAESCjTOsJJ0VjgYXGrISAAgJACAQUooxxhhzzjnnpFKMOeaccw5CCKFUijHGnHMOQgghlIwx5pxzEEIIIYRSSsaccxBCCCGEkFLqnHMQQgghhBBKKZ1zDkIIIYQQQimlgxBCCCGEEEoopaQUQgghhBBCCKmklEIIIYRSQighlZRSCCGEEEIpJaSUUgohhFJCCKGElFJKKYUQQgillJJSSimlEkoJJYQSUikppRRKCCGUUkpKKaVUSgmhhBJKKSWllFJKIYQQSikFAAAcOAAABBhBJxlVFmGjCRcegEJDVgIAZAAAkKKUUiktRYIipRikGEtGFXNQWoqocgxSzalSziDmJJaIMYSUk1Qy5hRCDELqHHVMKQYtlRhCxhik2HJLoXMOAAAAQQCAgJAAAAMEBTMAwOAA4XMQdAIERxsAgCBEZohEw0JweFAJEBFTAUBigkIuAFRYXKRdXECXAS7o4q4DIQQhCEEsDqCABByccMMTb3jCDU7QKSp1IAAAAAAADADwAACQXAAREdHMYWRobHB0eHyAhIiMkAgAAAAAABcAfAAAJCVAREQ0cxgZGhscHR4fICEiIyQBAIAAAgAAAAAggAAEBAQAAAAAAAIAAAAEBB9DtnUBAAAAAAAEPueBAKOFggAAgACjzoEAA4BwBwCdASqwAJAAAEcIhYWIhYSIAgIABhwJ7kPfbJyHvtk5D32ych77ZOQ99snIe+2TkPfbJyHvtk5D32ych77ZOQ99YAD+/6tQgKOFggADgAqjhYIAD4AOo4WCACSADqOZgQArADECAAEQEAAYABhYL/QACIBDmAYAAKOFggA6gA6jhYIAT4AOo5mBAFMAMQIAARAQABgAGFgv9AAIgEOYBgAAo4WCAGSADqOFggB6gA6jmYEAewAxAgABEBAAGAAYWC/0AAiAQ5gGAACjhYIAj4AOo5mBAKMAMQIAARAQABgAGFgv9AAIgEOYBgAAo4WCAKSADqOFggC6gA6jmYEAywAxAgABEBAAGAAYWC/0AAiAQ5gGAACjhYIAz4AOo4WCAOSADqOZgQDzADECAAEQEAAYABhYL/QACIBDmAYAAKOFggD6gA6jhYIBD4AOo5iBARsAEQIAARAQFGAAYWC/0AAiAQ5gGACjhYIBJIAOo4WCATqADqOZgQFDADECAAEQEAAYABhYL/QACIBDmAYAAKOFggFPgA6jhYIBZIAOo5mBAWsAMQIAARAQABgAGFgv9AAIgEOYBgAAo4WCAXqADqOFggGPgA6jmYEBkwAxAgABEBAAGAAYWC/0AAiAQ5gGAACjhYIBpIAOo4WCAbqADqOZgQG7ADECAAEQEAAYABhYL/QACIBDmAYAAKOFggHPgA6jmYEB4wAxAgABEBAAGAAYWC/0AAiAQ5gGAACjhYIB5IAOo4WCAfqADqOZgQILADECAAEQEAAYABhYL/QACIBDmAYAAKOFggIPgA6jhYICJIAOo5mBAjMAMQIAARAQABgAGFgv9AAIgEOYBgAAo4WCAjqADqOFggJPgA6jmYECWwAxAgABEBAAGAAYWC/0AAiAQ5gGAACjhYICZIAOo4WCAnqADqOZgQKDADECAAEQEAAYABhYL/QACIBDmAYAAKOFggKPgA6jhYICpIAOo5mBAqsAMQIAARAQABgAGFgv9AAIgEOYBgAAo4WCArqADqOFggLPgA6jmIEC0wARAgABEBAUYABhYL/QACIBDmAYAKOFggLkgA6jhYIC+oAOo5mBAvsAMQIAARAQABgAGFgv9AAIgEOYBgAAo4WCAw+ADqOZgQMjADECAAEQEAAYABhYL/QACIBDmAYAAKOFggMkgA6jhYIDOoAOo5mBA0sAMQIAARAQABgAGFgv9AAIgEOYBgAAo4WCA0+ADqOFggNkgA6jmYEDcwAxAgABEBAAGAAYWC/0AAiAQ5gGAACjhYIDeoAOo4WCA4+ADqOZgQObADECAAEQEAAYABhYL/QACIBDmAYAAKOFggOkgA6jhYIDuoAOo5mBA8MAMQIAARAQABgAGFgv9AAIgEOYBgAAo4WCA8+ADqOFggPkgA6jhYID+oAOo4WCBA+ADhxTu2sBAAAAAAAAEbuPs4EDt4r3gQHxghEr8IEK",mp4:"data:video/mp4;base64,AAAAHGZ0eXBNNFYgAAACAGlzb21pc28yYXZjMQAAAAhmcmVlAAAGF21kYXTeBAAAbGliZmFhYyAxLjI4AABCAJMgBDIARwAAArEGBf//rdxF6b3m2Ui3lizYINkj7u94MjY0IC0gY29yZSAxNDIgcjIgOTU2YzhkOCAtIEguMjY0L01QRUctNCBBVkMgY29kZWMgLSBDb3B5bGVmdCAyMDAzLTIwMTQgLSBodHRwOi8vd3d3LnZpZGVvbGFuLm9yZy94MjY0Lmh0bWwgLSBvcHRpb25zOiBjYWJhYz0wIHJlZj0zIGRlYmxvY2s9MTowOjAgYW5hbHlzZT0weDE6MHgxMTEgbWU9aGV4IHN1Ym1lPTcgcHN5PTEgcHN5X3JkPTEuMDA6MC4wMCBtaXhlZF9yZWY9MSBtZV9yYW5nZT0xNiBjaHJvbWFfbWU9MSB0cmVsbGlzPTEgOHg4ZGN0PTAgY3FtPTAgZGVhZHpvbmU9MjEsMTEgZmFzdF9wc2tpcD0xIGNocm9tYV9xcF9vZmZzZXQ9LTIgdGhyZWFkcz02IGxvb2thaGVhZF90aHJlYWRzPTEgc2xpY2VkX3RocmVhZHM9MCBucj0wIGRlY2ltYXRlPTEgaW50ZXJsYWNlZD0wIGJsdXJheV9jb21wYXQ9MCBjb25zdHJhaW5lZF9pbnRyYT0wIGJmcmFtZXM9MCB3ZWlnaHRwPTAga2V5aW50PTI1MCBrZXlpbnRfbWluPTI1IHNjZW5lY3V0PTQwIGludHJhX3JlZnJlc2g9MCByY19sb29rYWhlYWQ9NDAgcmM9Y3JmIG1idHJlZT0xIGNyZj0yMy4wIHFjb21wPTAuNjAgcXBtaW49MCBxcG1heD02OSBxcHN0ZXA9NCB2YnZfbWF4cmF0ZT03NjggdmJ2X2J1ZnNpemU9MzAwMCBjcmZfbWF4PTAuMCBuYWxfaHJkPW5vbmUgZmlsbGVyPTAgaXBfcmF0aW89MS40MCBhcT0xOjEuMDAAgAAAAFZliIQL8mKAAKvMnJycnJycnJycnXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXiEASZACGQAjgCEASZACGQAjgAAAAAdBmjgX4GSAIQBJkAIZACOAAAAAB0GaVAX4GSAhAEmQAhkAI4AhAEmQAhkAI4AAAAAGQZpgL8DJIQBJkAIZACOAIQBJkAIZACOAAAAABkGagC/AySEASZACGQAjgAAAAAZBmqAvwMkhAEmQAhkAI4AhAEmQAhkAI4AAAAAGQZrAL8DJIQBJkAIZACOAAAAABkGa4C/AySEASZACGQAjgCEASZACGQAjgAAAAAZBmwAvwMkhAEmQAhkAI4AAAAAGQZsgL8DJIQBJkAIZACOAIQBJkAIZACOAAAAABkGbQC/AySEASZACGQAjgCEASZACGQAjgAAAAAZBm2AvwMkhAEmQAhkAI4AAAAAGQZuAL8DJIQBJkAIZACOAIQBJkAIZACOAAAAABkGboC/AySEASZACGQAjgAAAAAZBm8AvwMkhAEmQAhkAI4AhAEmQAhkAI4AAAAAGQZvgL8DJIQBJkAIZACOAAAAABkGaAC/AySEASZACGQAjgCEASZACGQAjgAAAAAZBmiAvwMkhAEmQAhkAI4AhAEmQAhkAI4AAAAAGQZpAL8DJIQBJkAIZACOAAAAABkGaYC/AySEASZACGQAjgCEASZACGQAjgAAAAAZBmoAvwMkhAEmQAhkAI4AAAAAGQZqgL8DJIQBJkAIZACOAIQBJkAIZACOAAAAABkGawC/AySEASZACGQAjgAAAAAZBmuAvwMkhAEmQAhkAI4AhAEmQAhkAI4AAAAAGQZsAL8DJIQBJkAIZACOAAAAABkGbIC/AySEASZACGQAjgCEASZACGQAjgAAAAAZBm0AvwMkhAEmQAhkAI4AhAEmQAhkAI4AAAAAGQZtgL8DJIQBJkAIZACOAAAAABkGbgCvAySEASZACGQAjgCEASZACGQAjgAAAAAZBm6AnwMkhAEmQAhkAI4AhAEmQAhkAI4AhAEmQAhkAI4AhAEmQAhkAI4AAAAhubW9vdgAAAGxtdmhkAAAAAAAAAAAAAAAAAAAD6AAABDcAAQAAAQAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAzB0cmFrAAAAXHRraGQAAAADAAAAAAAAAAAAAAABAAAAAAAAA+kAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAABAAAAAALAAAACQAAAAAAAkZWR0cwAAABxlbHN0AAAAAAAAAAEAAAPpAAAAAAABAAAAAAKobWRpYQAAACBtZGhkAAAAAAAAAAAAAAAAAAB1MAAAdU5VxAAAAAAALWhkbHIAAAAAAAAAAHZpZGUAAAAAAAAAAAAAAABWaWRlb0hhbmRsZXIAAAACU21pbmYAAAAUdm1oZAAAAAEAAAAAAAAAAAAAACRkaW5mAAAAHGRyZWYAAAAAAAAAAQAAAAx1cmwgAAAAAQAAAhNzdGJsAAAAr3N0c2QAAAAAAAAAAQAAAJ9hdmMxAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAALAAkABIAAAASAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGP//AAAALWF2Y0MBQsAN/+EAFWdCwA3ZAsTsBEAAAPpAADqYA8UKkgEABWjLg8sgAAAAHHV1aWRraEDyXyRPxbo5pRvPAyPzAAAAAAAAABhzdHRzAAAAAAAAAAEAAAAeAAAD6QAAABRzdHNzAAAAAAAAAAEAAAABAAAAHHN0c2MAAAAAAAAAAQAAAAEAAAABAAAAAQAAAIxzdHN6AAAAAAAAAAAAAAAeAAADDwAAAAsAAAALAAAACgAAAAoAAAAKAAAACgAAAAoAAAAKAAAACgAAAAoAAAAKAAAACgAAAAoAAAAKAAAACgAAAAoAAAAKAAAACgAAAAoAAAAKAAAACgAAAAoAAAAKAAAACgAAAAoAAAAKAAAACgAAAAoAAAAKAAAAiHN0Y28AAAAAAAAAHgAAAEYAAANnAAADewAAA5gAAAO0AAADxwAAA+MAAAP2AAAEEgAABCUAAARBAAAEXQAABHAAAASMAAAEnwAABLsAAATOAAAE6gAABQYAAAUZAAAFNQAABUgAAAVkAAAFdwAABZMAAAWmAAAFwgAABd4AAAXxAAAGDQAABGh0cmFrAAAAXHRraGQAAAADAAAAAAAAAAAAAAACAAAAAAAABDcAAAAAAAAAAAAAAAEBAAAAAAEAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAkZWR0cwAAABxlbHN0AAAAAAAAAAEAAAQkAAADcAABAAAAAAPgbWRpYQAAACBtZGhkAAAAAAAAAAAAAAAAAAC7gAAAykBVxAAAAAAALWhkbHIAAAAAAAAAAHNvdW4AAAAAAAAAAAAAAABTb3VuZEhhbmRsZXIAAAADi21pbmYAAAAQc21oZAAAAAAAAAAAAAAAJGRpbmYAAAAcZHJlZgAAAAAAAAABAAAADHVybCAAAAABAAADT3N0YmwAAABnc3RzZAAAAAAAAAABAAAAV21wNGEAAAAAAAAAAQAAAAAAAAAAAAIAEAAAAAC7gAAAAAAAM2VzZHMAAAAAA4CAgCIAAgAEgICAFEAVBbjYAAu4AAAADcoFgICAAhGQBoCAgAECAAAAIHN0dHMAAAAAAAAAAgAAADIAAAQAAAAAAQAAAkAAAAFUc3RzYwAAAAAAAAAbAAAAAQAAAAEAAAABAAAAAgAAAAIAAAABAAAAAwAAAAEAAAABAAAABAAAAAIAAAABAAAABgAAAAEAAAABAAAABwAAAAIAAAABAAAACAAAAAEAAAABAAAACQAAAAIAAAABAAAACgAAAAEAAAABAAAACwAAAAIAAAABAAAADQAAAAEAAAABAAAADgAAAAIAAAABAAAADwAAAAEAAAABAAAAEAAAAAIAAAABAAAAEQAAAAEAAAABAAAAEgAAAAIAAAABAAAAFAAAAAEAAAABAAAAFQAAAAIAAAABAAAAFgAAAAEAAAABAAAAFwAAAAIAAAABAAAAGAAAAAEAAAABAAAAGQAAAAIAAAABAAAAGgAAAAEAAAABAAAAGwAAAAIAAAABAAAAHQAAAAEAAAABAAAAHgAAAAIAAAABAAAAHwAAAAQAAAABAAAA4HN0c3oAAAAAAAAAAAAAADMAAAAaAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAACMc3RjbwAAAAAAAAAfAAAALAAAA1UAAANyAAADhgAAA6IAAAO+AAAD0QAAA+0AAAQAAAAEHAAABC8AAARLAAAEZwAABHoAAASWAAAEqQAABMUAAATYAAAE9AAABRAAAAUjAAAFPwAABVIAAAVuAAAFgQAABZ0AAAWwAAAFzAAABegAAAX7AAAGFwAAAGJ1ZHRhAAAAWm1ldGEAAAAAAAAAIWhkbHIAAAAAAAAAAG1kaXJhcHBsAAAAAAAAAAAAAAAALWlsc3QAAAAlqXRvbwAAAB1kYXRhAAAAAQAAAABMYXZmNTUuMzMuMTAw"}},9726:t=>{"use strict";var e=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function a(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},i=0;i<10;i++)e["_"+String.fromCharCode(i)]=i;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(t){r[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(n){return!1}}t.exports=a()?Object.assign:function(t,a){for(var s,o,l=n(t),h=1;h{var r="function"==typeof Map&&Map.prototype,n=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,a=r&&n&&"function"==typeof n.get?n.get:null,s=r&&Map.prototype.forEach,o="function"==typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,h=o&&l&&"function"==typeof l.get?l.get:null,u=o&&Set.prototype.forEach,c="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,p="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,d="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,f=Boolean.prototype.valueOf,g=Object.prototype.toString,m=Function.prototype.toString,A=String.prototype.match,v=String.prototype.slice,y=String.prototype.replace,_=String.prototype.toUpperCase,b=String.prototype.toLowerCase,x=RegExp.prototype.test,T=Array.prototype.concat,E=Array.prototype.join,S=Array.prototype.slice,w=Math.floor,P="function"==typeof BigInt?BigInt.prototype.valueOf:null,I=Object.getOwnPropertySymbols,R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,C="function"==typeof Symbol&&"object"==typeof Symbol.iterator,O="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===C||"symbol")?Symbol.toStringTag:null,M=Object.prototype.propertyIsEnumerable,B=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function D(t,e){if(t===1/0||t===-1/0||t!=t||t&&t>-1e3&&t<1e3||x.call(/e/,e))return e;var i=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof t){var r=t<0?-w(-t):w(t);if(r!==t){var n=String(r),a=v.call(e,n.length+1);return y.call(n,i,"$&_")+"."+y.call(y.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return y.call(e,i,"$&_")}var L=i(2290),k=L.custom,N=z(k)?k:null;function F(t,e,i){var r="double"===(i.quoteStyle||e)?'"':"'";return r+t+r}function G(t){return y.call(String(t),/"/g,""")}function U(t){return!("[object Array]"!==K(t)||O&&"object"==typeof t&&O in t)}function H(t){return!("[object Date]"!==K(t)||O&&"object"==typeof t&&O in t)}function X(t){return!("[object RegExp]"!==K(t)||O&&"object"==typeof t&&O in t)}function j(t){return!("[object Error]"!==K(t)||O&&"object"==typeof t&&O in t)}function W(t){return!("[object String]"!==K(t)||O&&"object"==typeof t&&O in t)}function V(t){return!("[object Number]"!==K(t)||O&&"object"==typeof t&&O in t)}function Y(t){return!("[object Boolean]"!==K(t)||O&&"object"==typeof t&&O in t)}function z(t){if(C)return t&&"object"==typeof t&&t instanceof Symbol;if("symbol"==typeof t)return!0;if(!t||"object"!=typeof t||!R)return!1;try{return R.call(t),!0}catch(e){}return!1}function q(t){if(!t||"object"!=typeof t||!P)return!1;try{return P.call(t),!0}catch(e){}return!1}t.exports=function t(e,r,n,o){var l=r||{};if(Z(l,"quoteStyle")&&"single"!==l.quoteStyle&&"double"!==l.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Z(l,"maxStringLength")&&("number"==typeof l.maxStringLength?l.maxStringLength<0&&l.maxStringLength!==1/0:null!==l.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var c=!Z(l,"customInspect")||l.customInspect;if("boolean"!=typeof c&&"symbol"!==c)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Z(l,"indent")&&null!==l.indent&&"\t"!==l.indent&&!(parseInt(l.indent,10)===l.indent&&l.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Z(l,"numericSeparator")&&"boolean"!=typeof l.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var p=l.numericSeparator;if(void 0===e)return"undefined";if(null===e)return"null";if("boolean"==typeof e)return e?"true":"false";if("string"==typeof e)return st(e,l);if("number"==typeof e){if(0===e)return 1/0/e>0?"0":"-0";var d=String(e);return p?D(e,d):d}if("bigint"==typeof e){var g=String(e)+"n";return p?D(e,g):g}var m=void 0===l.depth?5:l.depth;if(void 0===n&&(n=0),n>=m&&m>0&&"object"==typeof e)return U(e)?"[Array]":"[Object]";var A=pt(l,n);if(void 0===o)o=[];else if($(o,e)>=0)return"[Circular]";function _(e,i,r){if(i&&(o=S.call(o)).push(i),r){var a={depth:l.depth};return Z(l,"quoteStyle")&&(a.quoteStyle=l.quoteStyle),t(e,a,n+1,o)}return t(e,l,n+1,o)}if("function"==typeof e&&!X(e)){var x=J(e),w=ft(e,_);return"[Function"+(x?": "+x:" (anonymous)")+"]"+(w.length>0?" { "+E.call(w,", ")+" }":"")}if(z(e)){var I=C?y.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):R.call(e);return"object"!=typeof e||C?I:lt(I)}if(at(e)){for(var k="<"+b.call(String(e.nodeName)),Q=e.attributes||[],ot=0;ot"}if(U(e)){if(0===e.length)return"[]";var gt=ft(e,_);return A&&!ct(gt)?"["+dt(gt,A)+"]":"[ "+E.call(gt,", ")+" ]"}if(j(e)){var mt=ft(e,_);return"cause"in Error.prototype||!("cause"in e)||M.call(e,"cause")?0===mt.length?"["+String(e)+"]":"{ ["+String(e)+"] "+E.call(mt,", ")+" }":"{ ["+String(e)+"] "+E.call(T.call("[cause]: "+_(e.cause),mt),", ")+" }"}if("object"==typeof e&&c){if(N&&"function"==typeof e[N]&&L)return L(e,{depth:m-n});if("symbol"!==c&&"function"==typeof e.inspect)return e.inspect()}if(tt(e)){var At=[];return s&&s.call(e,(function(t,i){At.push(_(i,e,!0)+" => "+_(t,e))})),ut("Map",a.call(e),At,A)}if(rt(e)){var vt=[];return u&&u.call(e,(function(t){vt.push(_(t,e))})),ut("Set",h.call(e),vt,A)}if(et(e))return ht("WeakMap");if(nt(e))return ht("WeakSet");if(it(e))return ht("WeakRef");if(V(e))return lt(_(Number(e)));if(q(e))return lt(_(P.call(e)));if(Y(e))return lt(f.call(e));if(W(e))return lt(_(String(e)));if("undefined"!=typeof window&&e===window)return"{ [object Window] }";if(e===i.g)return"{ [object globalThis] }";if(!H(e)&&!X(e)){var yt=ft(e,_),_t=B?B(e)===Object.prototype:e instanceof Object||e.constructor===Object,bt=e instanceof Object?"":"null prototype",xt=!_t&&O&&Object(e)===e&&O in e?v.call(K(e),8,-1):bt?"Object":"",Tt=(_t||"function"!=typeof e.constructor?"":e.constructor.name?e.constructor.name+" ":"")+(xt||bt?"["+E.call(T.call([],xt||[],bt||[]),": ")+"] ":"");return 0===yt.length?Tt+"{}":A?Tt+"{"+dt(yt,A)+"}":Tt+"{ "+E.call(yt,", ")+" }"}return String(e)};var Q=Object.prototype.hasOwnProperty||function(t){return t in this};function Z(t,e){return Q.call(t,e)}function K(t){return g.call(t)}function J(t){if(t.name)return t.name;var e=A.call(m.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function $(t,e){if(t.indexOf)return t.indexOf(e);for(var i=0,r=t.length;ie.maxStringLength){var i=t.length-e.maxStringLength,r="... "+i+" more character"+(i>1?"s":"");return st(v.call(t,0,e.maxStringLength),e)+r}return F(y.call(y.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,ot),"single",e)}function ot(t){var e=t.charCodeAt(0),i={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return i?"\\"+i:"\\x"+(e<16?"0":"")+_.call(e.toString(16))}function lt(t){return"Object("+t+")"}function ht(t){return t+" { ? }"}function ut(t,e,i,r){return t+" ("+e+") {"+(r?dt(i,r):E.call(i,", "))+"}"}function ct(t){for(var e=0;e=0)return!1;return!0}function pt(t,e){var i;if("\t"===t.indent)i="\t";else{if(!("number"==typeof t.indent&&t.indent>0))return null;i=E.call(Array(t.indent+1)," ")}return{base:i,prev:E.call(Array(e+1),i)}}function dt(t,e){if(0===t.length)return"";var i="\n"+e.prev+e.base;return i+E.call(t,","+i)+"\n"+e.prev}function ft(t,e){var i=U(t),r=[];if(i){r.length=t.length;for(var n=0;n{"use strict";var r=i(6535),n=i(7675),a=i(7214)(),s=i(9857),o=i(9525),l=r("%Math.floor%");t.exports=function(t,e){if("function"!=typeof t)throw new o("`fn` is not a function");if("number"!=typeof e||e<0||e>4294967295||l(e)!==e)throw new o("`length` must be a positive 32-bit integer");var i=arguments.length>2&&!!arguments[2],r=!0,h=!0;if("length"in t&&s){var u=s(t,"length");u&&!u.configurable&&(r=!1),u&&!u.writable&&(h=!1)}return(r||h||!i)&&(a?n(t,"length",e,!0,!0):n(t,"length",e)),t}},9078:(t,e,i)=>{"use strict";var r=i(6535),n=i(6317),a=i(4869),s=i(9525),o=r("%WeakMap%",!0),l=r("%Map%",!0),h=n("WeakMap.prototype.get",!0),u=n("WeakMap.prototype.set",!0),c=n("WeakMap.prototype.has",!0),p=n("Map.prototype.get",!0),d=n("Map.prototype.set",!0),f=n("Map.prototype.has",!0),g=function(t,e){for(var i,r=t;null!==(i=r.next);r=i)if(i.key===e)return r.next=i.next,i.next=t.next,t.next=i,i},m=function(t,e){var i=g(t,e);return i&&i.value},A=function(t,e,i){var r=g(t,e);r?r.value=i:t.next={key:e,next:t.next,value:i}},v=function(t,e){return!!g(t,e)};t.exports=function(){var t,e,i,r={assert:function(t){if(!r.has(t))throw new s("Side channel does not contain "+a(t))},get:function(r){if(o&&r&&("object"==typeof r||"function"==typeof r)){if(t)return h(t,r)}else if(l){if(e)return p(e,r)}else if(i)return m(i,r)},has:function(r){if(o&&r&&("object"==typeof r||"function"==typeof r)){if(t)return c(t,r)}else if(l){if(e)return f(e,r)}else if(i)return v(i,r);return!1},set:function(r,n){o&&r&&("object"==typeof r||"function"==typeof r)?(t||(t=new o),u(t,r,n)):l?(e||(e=new l),d(e,r,n)):(i||(i={key:{},next:null}),A(i,r,n))}};return r}},2008:function(t,e,i){var r;t=i.nmd(t),function(n){e&&e.nodeType,t&&t.nodeType;var a="object"==typeof i.g&&i.g;a.global!==a&&a.window!==a&&a.self;var s,o=2147483647,l=36,h=1,u=26,c=38,p=700,d=72,f=128,g="-",m=/^xn--/,A=/[^\x20-\x7E]/,v=/[\x2E\u3002\uFF0E\uFF61]/g,y={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},_=l-h,b=Math.floor,x=String.fromCharCode;function T(t){throw new RangeError(y[t])}function E(t,e){for(var i=t.length,r=[];i--;)r[i]=e(t[i]);return r}function S(t,e){var i=t.split("@"),r="";return i.length>1&&(r=i[0]+"@",t=i[1]),r+E((t=t.replace(v,".")).split("."),e).join(".")}function w(t){for(var e,i,r=[],n=0,a=t.length;n=55296&&e<=56319&&n65535&&(e+=x((t-=65536)>>>10&1023|55296),t=56320|1023&t),e+=x(t)})).join("")}function I(t){return t-48<10?t-22:t-65<26?t-65:t-97<26?t-97:l}function R(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function C(t,e,i){var r=0;for(t=i?b(t/p):t>>1,t+=b(t/e);t>_*u>>1;r+=l)t=b(t/_);return b(r+(_+1)*t/(t+c))}function O(t){var e,i,r,n,a,s,c,p,m,A,v=[],y=t.length,_=0,x=f,E=d;for((i=t.lastIndexOf(g))<0&&(i=0),r=0;r=128&&T("not-basic"),v.push(t.charCodeAt(r));for(n=i>0?i+1:0;n=y&&T("invalid-input"),((p=I(t.charCodeAt(n++)))>=l||p>b((o-_)/s))&&T("overflow"),_+=p*s,!(p<(m=c<=E?h:c>=E+u?u:c-E));c+=l)s>b(o/(A=l-m))&&T("overflow"),s*=A;E=C(_-a,e=v.length+1,0==a),b(_/e)>o-x&&T("overflow"),x+=b(_/e),_%=e,v.splice(_++,0,x)}return P(v)}function M(t){var e,i,r,n,a,s,c,p,m,A,v,y,_,E,S,P=[];for(y=(t=w(t)).length,e=f,i=0,a=d,s=0;s=e&&vb((o-i)/(_=r+1))&&T("overflow"),i+=(c-e)*_,e=c,s=0;so&&T("overflow"),v==e){for(p=i,m=l;!(p<(A=m<=a?h:m>=a+u?u:m-a));m+=l)S=p-A,E=l-A,P.push(x(R(A+S%E,0))),p=b(S/E);P.push(x(R(p,0))),a=C(i,_,r==n),i=0,++r}++i,++e}return P.join("")}function B(t){return S(t,(function(t){return m.test(t)?O(t.slice(4).toLowerCase()):t}))}function D(t){return S(t,(function(t){return A.test(t)?"xn--"+M(t):t}))}s={version:"1.4.1",ucs2:{decode:w,encode:P},decode:O,encode:M,toASCII:D,toUnicode:B},void 0===(r=function(){return s}.call(e,i,e,t))||(t.exports=r)}()},1856:t=>{"use strict";var e=String.prototype.replace,i=/%20/g,r={RFC1738:"RFC1738",RFC3986:"RFC3986"};t.exports={default:r.RFC3986,formatters:{RFC1738:function(t){return e.call(t,i,"+")},RFC3986:function(t){return String(t)}},RFC1738:r.RFC1738,RFC3986:r.RFC3986}},4096:(t,e,i)=>{"use strict";var r=i(9853),n=i(2947),a=i(1856);t.exports={formats:a,parse:n,stringify:r}},2947:(t,e,i)=>{"use strict";var r=i(5433),n=Object.prototype.hasOwnProperty,a=Array.isArray,s={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},o=function(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))},l=function(t,e){return t&&"string"==typeof t&&e.comma&&t.indexOf(",")>-1?t.split(","):t},h="utf8=%26%2310003%3B",u="utf8=%E2%9C%93",c=function(t,e){var i,c={__proto__:null},p=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,d=e.parameterLimit===1/0?void 0:e.parameterLimit,f=p.split(e.delimiter,d),g=-1,m=e.charset;if(e.charsetSentinel)for(i=0;i-1&&(v=a(v)?[v]:v),n.call(c,A)?c[A]=r.combine(c[A],v):c[A]=v}return c},p=function(t,e,i,r){for(var n=r?e:l(e,i),a=t.length-1;a>=0;--a){var s,o=t[a];if("[]"===o&&i.parseArrays)s=[].concat(n);else{s=i.plainObjects?Object.create(null):{};var h="["===o.charAt(0)&&"]"===o.charAt(o.length-1)?o.slice(1,-1):o,u=parseInt(h,10);i.parseArrays||""!==h?!isNaN(u)&&o!==h&&String(u)===h&&u>=0&&i.parseArrays&&u<=i.arrayLimit?(s=[])[u]=n:"__proto__"!==h&&(s[h]=n):s={0:n}}n=s}return n},d=function(t,e,i,r){if(t){var a=i.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,s=/(\[[^[\]]*])/,o=/(\[[^[\]]*])/g,l=i.depth>0&&s.exec(a),h=l?a.slice(0,l.index):a,u=[];if(h){if(!i.plainObjects&&n.call(Object.prototype,h)&&!i.allowPrototypes)return;u.push(h)}for(var c=0;i.depth>0&&null!==(l=o.exec(a))&&c{"use strict";var r=i(9078),n=i(5433),a=i(1856),s=Object.prototype.hasOwnProperty,o={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},l=Array.isArray,h=Array.prototype.push,u=function(t,e){h.apply(t,l(e)?e:[e])},c=Date.prototype.toISOString,p=a.default,d={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:n.encode,encodeValuesOnly:!1,format:p,formatter:a.formatters[p],indices:!1,serializeDate:function(t){return c.call(t)},skipNulls:!1,strictNullHandling:!1},f=function(t){return"string"==typeof t||"number"==typeof t||"boolean"==typeof t||"symbol"==typeof t||"bigint"==typeof t},g={},m=function t(e,i,a,s,o,h,c,p,m,A,v,y,_,b,x,T){for(var E=e,S=T,w=0,P=!1;void 0!==(S=S.get(g))&&!P;){var I=S.get(e);if(w+=1,void 0!==I){if(I===w)throw new RangeError("Cyclic object value");P=!0}void 0===S.get(g)&&(w=0)}if("function"==typeof p?E=p(i,E):E instanceof Date?E=v(E):"comma"===a&&l(E)&&(E=n.maybeMap(E,(function(t){return t instanceof Date?v(t):t}))),null===E){if(o)return c&&!b?c(i,d.encoder,x,"key",y):i;E=""}if(f(E)||n.isBuffer(E))return c?[_(b?i:c(i,d.encoder,x,"key",y))+"="+_(c(E,d.encoder,x,"value",y))]:[_(i)+"="+_(String(E))];var R,C=[];if(void 0===E)return C;if("comma"===a&&l(E))b&&c&&(E=n.maybeMap(E,c)),R=[{value:E.length>0?E.join(",")||null:void 0}];else if(l(p))R=p;else{var O=Object.keys(E);R=m?O.sort(m):O}for(var M=s&&l(E)&&1===E.length?i+"[]":i,B=0;B0?y+v:""}},5433:(t,e,i)=>{"use strict";var r=i(1856),n=Object.prototype.hasOwnProperty,a=Array.isArray,s=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),o=function(t){for(;t.length>1;){var e=t.pop(),i=e.obj[e.prop];if(a(i)){for(var r=[],n=0;n=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||a===r.RFC1738&&(40===u||41===u)?l+=o.charAt(h):u<128?l+=s[u]:u<2048?l+=s[192|u>>6]+s[128|63&u]:u<55296||u>=57344?l+=s[224|u>>12]+s[128|u>>6&63]+s[128|63&u]:(h+=1,u=65536+((1023&u)<<10|1023&o.charCodeAt(h)),l+=s[240|u>>18]+s[128|u>>12&63]+s[128|u>>6&63]+s[128|63&u])}return l},d=function(t){for(var e=[{obj:{o:t},prop:"o"}],i=[],r=0;r{"use strict";var r=i(2008);function n(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var a=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,o=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,l=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),h=["'"].concat(l),u=["%","/","?",";","#"].concat(h),c=["/","?","#"],p=255,d=/^[+a-z0-9A-Z_-]{0,63}$/,f=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,g={javascript:!0,"javascript:":!0},m={javascript:!0,"javascript:":!0},A={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},v=i(4096);function y(t,e,i){if(t&&"object"==typeof t&&t instanceof n)return t;var r=new n;return r.parse(t,e,i),r}function _(t){return"string"==typeof t&&(t=y(t)),t instanceof n?t.format():n.prototype.format.call(t)}function b(t,e){return y(t,!1,!0).resolve(e)}function x(t,e){return t?y(t,!1,!0).resolveObject(e):e}n.prototype.parse=function(t,e,i){if("string"!=typeof t)throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var n=t.indexOf("?"),s=-1!==n&&n127?D+="x":D+=B[L];if(!D.match(d)){var N=O.slice(0,I),F=O.slice(I+1),G=B.match(f);G&&(N.push(G[1]),F.unshift(G[2])),F.length&&(_="/"+F.join(".")+_),this.hostname=N.join(".");break}}}this.hostname.length>p?this.hostname="":this.hostname=this.hostname.toLowerCase(),C||(this.hostname=r.toASCII(this.hostname));var U=this.port?":"+this.port:"",H=this.hostname||"";this.host=H+U,this.href+=this.host,C&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==_[0]&&(_="/"+_))}if(!g[T])for(I=0,M=h.length;I0)&&i.host.split("@"))&&(i.auth=I.shift(),i.hostname=I.shift(),i.host=i.hostname);return i.search=t.search,i.query=t.query,null===i.pathname&&null===i.search||(i.path=(i.pathname?i.pathname:"")+(i.search?i.search:"")),i.href=i.format(),i}if(!x.length)return i.pathname=null,i.search?i.path="/"+i.search:i.path=null,i.href=i.format(),i;for(var E=x.slice(-1)[0],S=(i.host||t.host||x.length>1)&&("."===E||".."===E)||""===E,w=0,P=x.length;P>=0;P--)"."===(E=x[P])?x.splice(P,1):".."===E?(x.splice(P,1),w++):w&&(x.splice(P,1),w--);if(!_&&!b)for(;w--;w)x.unshift("..");!_||""===x[0]||x[0]&&"/"===x[0].charAt(0)||x.unshift(""),S&&"/"!==x.join("/").substr(-1)&&x.push("");var I,R=""===x[0]||x[0]&&"/"===x[0].charAt(0);T&&(i.hostname=R?"":x.length?x.shift():"",i.host=i.hostname,(I=!!(i.host&&i.host.indexOf("@")>0)&&i.host.split("@"))&&(i.auth=I.shift(),i.hostname=I.shift(),i.host=i.hostname));return(_=_||i.host&&x.length)&&!R&&x.unshift(""),x.length>0?i.pathname=x.join("/"):(i.pathname=null,i.path=null),null===i.pathname&&null===i.search||(i.path=(i.pathname?i.pathname:"")+(i.search?i.search:"")),i.auth=t.auth||i.auth,i.slashes=i.slashes||t.slashes,i.href=i.format(),i},n.prototype.parseHost=function(){var t=this.host,e=s.exec(t);e&&(":"!==(e=e[0])&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)},e.qg=y,e.hd=b,e.GP=_},1537:function(t,e){(function(){function e(t,e,i){return t.call.apply(t.bind,arguments)}function i(t,e,i){if(!t)throw Error();if(2=e.f?a():t.fonts.load(b(e.a),e.h).then((function(t){1<=t.length?r():setTimeout(s,25)}),(function(){a()}))}s()})),a=null,s=new Promise((function(t,i){a=setTimeout(i,e.f)}));Promise.race([s,r]).then((function(){a&&(clearTimeout(a),a=null),e.g(e.a)}),(function(){e.j(e.a)}))};var N={D:"serif",C:"sans-serif"},F=null;function G(){if(null===F){var t=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);F=!!t&&(536>parseInt(t[1],10)||536===parseInt(t[1],10)&&11>=parseInt(t[2],10))}return F}function U(t,e,i){for(var r in N)if(N.hasOwnProperty(r)&&e===t.f[N[r]]&&i===t.f[N[r]])return!0;return!1}function H(t){var e,i=t.g.a.offsetWidth,r=t.h.a.offsetWidth;(e=i===t.f.serif&&r===t.f["sans-serif"])||(e=G()&&U(t,i,r)),e?n()-t.A>=t.w?G()&&U(t,i,r)&&(null===t.u||t.u.hasOwnProperty(t.a.c))?j(t,t.v):j(t,t.B):X(t):j(t,t.v)}function X(t){setTimeout(r((function(){H(this)}),t),50)}function j(t,e){setTimeout(r((function(){h(this.g.a),h(this.h.a),h(this.j.a),h(this.m.a),e(this.a)}),t),0)}function W(t,e,i){this.c=t,this.a=e,this.f=0,this.m=this.j=!1,this.s=i}k.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=n(),H(this)};var V=null;function Y(t){0==--t.f&&t.j&&(t.m?((t=t.a).g&&u(t.f,[t.a.c("wf","active")],[t.a.c("wf","loading"),t.a.c("wf","inactive")]),R(t,"active")):I(t.a))}function z(t){this.j=t,this.a=new C,this.h=0,this.f=this.g=!0}function q(t,e,i,n,a){var s=0==--t.h;(t.f||t.g)&&setTimeout((function(){var t=a||null,o=n||{};if(0===i.length&&s)I(e.a);else{e.f+=i.length,s&&(e.j=s);var l,h=[];for(l=0;l{"use strict";var r="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==i.g&&i.g||{},n={searchParams:"URLSearchParams"in r,iterable:"Symbol"in r&&"iterator"in Symbol,blob:"FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in r,arrayBuffer:"ArrayBuffer"in r};function a(t){return t&&DataView.prototype.isPrototypeOf(t)}if(n.arrayBuffer)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],o=ArrayBuffer.isView||function(t){return t&&s.indexOf(Object.prototype.toString.call(t))>-1};function l(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||""===t)throw new TypeError('Invalid character in header field name: "'+t+'"');return t.toLowerCase()}function h(t){return"string"!=typeof t&&(t=String(t)),t}function u(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return n.iterable&&(e[Symbol.iterator]=function(){return e}),e}function c(t){this.map={},t instanceof c?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){if(2!=t.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+t.length);this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function p(t){if(!t._noBody)return t.bodyUsed?Promise.reject(new TypeError("Already read")):void(t.bodyUsed=!0)}function d(t){return new Promise((function(e,i){t.onload=function(){e(t.result)},t.onerror=function(){i(t.error)}}))}function f(t){var e=new FileReader,i=d(e);return e.readAsArrayBuffer(t),i}function g(t){var e=new FileReader,i=d(e),r=/charset=([A-Za-z0-9_-]+)/.exec(t.type),n=r?r[1]:"utf-8";return e.readAsText(t,n),i}function m(t){for(var e=new Uint8Array(t),i=new Array(e.length),r=0;r-1?e:t}function b(t,e){if(!(this instanceof b))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var i=(e=e||{}).body;if(t instanceof b){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new c(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,i||null==t._bodyInit||(i=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new c(e.headers)),this.method=_(e.method||this.method||"GET"),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal||function(){if("AbortController"in r)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(i),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==e.cache&&"no-cache"!==e.cache)){var n=/([?&])_=[^&]*/;if(n.test(this.url))this.url=this.url.replace(n,"$1_="+(new Date).getTime());else{var a=/\?/;this.url+=(a.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function x(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var i=t.split("="),r=i.shift().replace(/\+/g," "),n=i.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(n))}})),e}function T(t){var e=new c;return t.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(t){return 0===t.indexOf("\n")?t.substr(1,t.length):t})).forEach((function(t){var i=t.split(":"),r=i.shift().trim();if(r){var n=i.join(":").trim();try{e.append(r,n)}catch(a){console.warn("Response "+a.message)}}})),e}function E(t,e){if(!(this instanceof E))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===e.statusText?"":""+e.statusText,this.headers=new c(e.headers),this.url=e.url||"",this._initBody(t)}b.prototype.clone=function(){return new b(this,{body:this._bodyInit})},v.call(b.prototype),v.call(E.prototype),E.prototype.clone=function(){return new E(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new c(this.headers),url:this.url})},E.error=function(){var t=new E(null,{status:200,statusText:""});return t.ok=!1,t.status=0,t.type="error",t};var S=[301,302,303,307,308];E.redirect=function(t,e){if(-1===S.indexOf(e))throw new RangeError("Invalid status code");return new E(null,{status:e,headers:{location:t}})};var w=r.DOMException;try{new w}catch(I){(w=function(t,e){this.message=t,this.name=e;var i=Error(t);this.stack=i.stack}).prototype=Object.create(Error.prototype),w.prototype.constructor=w}function P(t,e){return new Promise((function(i,a){var s=new b(t,e);if(s.signal&&s.signal.aborted)return a(new w("Aborted","AbortError"));var o=new XMLHttpRequest;function u(){o.abort()}function p(t){try{return""===t&&r.location.href?r.location.href:t}catch(e){return t}}if(o.onload=function(){var t={statusText:o.statusText,headers:T(o.getAllResponseHeaders()||"")};0===s.url.indexOf("file://")&&(o.status<200||o.status>599)?t.status=200:t.status=o.status,t.url="responseURL"in o?o.responseURL:t.headers.get("X-Request-URL");var e="response"in o?o.response:o.responseText;setTimeout((function(){i(new E(e,t))}),0)},o.onerror=function(){setTimeout((function(){a(new TypeError("Network request failed"))}),0)},o.ontimeout=function(){setTimeout((function(){a(new TypeError("Network request timed out"))}),0)},o.onabort=function(){setTimeout((function(){a(new w("Aborted","AbortError"))}),0)},o.open(s.method,p(s.url),!0),"include"===s.credentials?o.withCredentials=!0:"omit"===s.credentials&&(o.withCredentials=!1),"responseType"in o&&(n.blob?o.responseType="blob":n.arrayBuffer&&(o.responseType="arraybuffer")),e&&"object"==typeof e.headers&&!(e.headers instanceof c||r.Headers&&e.headers instanceof r.Headers)){var d=[];Object.getOwnPropertyNames(e.headers).forEach((function(t){d.push(l(t)),o.setRequestHeader(t,h(e.headers[t]))})),s.headers.forEach((function(t,e){-1===d.indexOf(e)&&o.setRequestHeader(e,t)}))}else s.headers.forEach((function(t,e){o.setRequestHeader(e,t)}));s.signal&&(s.signal.addEventListener("abort",u),o.onreadystatechange=function(){4===o.readyState&&s.signal.removeEventListener("abort",u)}),o.send(void 0===s._bodyInit?null:s._bodyInit)}))}P.polyfill=!0,r.fetch||(r.fetch=P,r.Headers=c,r.Request=b,r.Response=E)},8145:(t,e,i)=>{var r;!function(){"use strict";var n=function(){this.init()};n.prototype={init:function(){var t=this||a;return t._counter=1e3,t._html5AudioPool=[],t.html5PoolSize=10,t._codecs={},t._howls=[],t._muted=!1,t._volume=1,t._canPlayEvent="canplaythrough",t._navigator="undefined"!=typeof window&&window.navigator?window.navigator:null,t.masterGain=null,t.noAudio=!1,t.usingWebAudio=!0,t.autoSuspend=!0,t.ctx=null,t.autoUnlock=!0,t._setup(),t},volume:function(t){var e=this||a;if(t=parseFloat(t),e.ctx||d(),void 0!==t&&t>=0&&t<=1){if(e._volume=t,e._muted)return e;e.usingWebAudio&&e.masterGain.gain.setValueAtTime(t,a.ctx.currentTime);for(var i=0;i=0;e--)t._howls[e].unload();return t.usingWebAudio&&t.ctx&&void 0!==t.ctx.close&&(t.ctx.close(),t.ctx=null,d()),t},codecs:function(t){return(this||a)._codecs[t.replace(/^x-/,"")]},_setup:function(){var t=this||a;if(t.state=t.ctx&&t.ctx.state||"suspended",t._autoSuspend(),!t.usingWebAudio)if("undefined"!=typeof Audio)try{void 0===(new Audio).oncanplaythrough&&(t._canPlayEvent="canplay")}catch(a){t.noAudio=!0}else t.noAudio=!0;try{(new Audio).muted&&(t.noAudio=!0)}catch(t){}return t.noAudio||t._setupCodecs(),t},_setupCodecs:function(){var t=this||a,e=null;try{e="undefined"!=typeof Audio?new Audio:null}catch(a){return t}if(!e||"function"!=typeof e.canPlayType)return t;var i=e.canPlayType("audio/mpeg;").replace(/^no$/,""),r=t._navigator?t._navigator.userAgent:"",n=r.match(/OPR\/(\d+)/g),s=n&&parseInt(n[0].split("/")[1],10)<33,o=-1!==r.indexOf("Safari")&&-1===r.indexOf("Chrome"),l=r.match(/Version\/(.*?) /),h=o&&l&&parseInt(l[1],10)<15;return t._codecs={mp3:!(s||!i&&!e.canPlayType("audio/mp3;").replace(/^no$/,"")),mpeg:!!i,opus:!!e.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/,""),ogg:!!e.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),oga:!!e.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),wav:!!(e.canPlayType('audio/wav; codecs="1"')||e.canPlayType("audio/wav")).replace(/^no$/,""),aac:!!e.canPlayType("audio/aac;").replace(/^no$/,""),caf:!!e.canPlayType("audio/x-caf;").replace(/^no$/,""),m4a:!!(e.canPlayType("audio/x-m4a;")||e.canPlayType("audio/m4a;")||e.canPlayType("audio/aac;")).replace(/^no$/,""),m4b:!!(e.canPlayType("audio/x-m4b;")||e.canPlayType("audio/m4b;")||e.canPlayType("audio/aac;")).replace(/^no$/,""),mp4:!!(e.canPlayType("audio/x-mp4;")||e.canPlayType("audio/mp4;")||e.canPlayType("audio/aac;")).replace(/^no$/,""),weba:!(h||!e.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),webm:!(h||!e.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),dolby:!!e.canPlayType('audio/mp4; codecs="ec-3"').replace(/^no$/,""),flac:!!(e.canPlayType("audio/x-flac;")||e.canPlayType("audio/flac;")).replace(/^no$/,"")},t},_unlockAudio:function(){var t=this||a;if(!t._audioUnlocked&&t.ctx){t._audioUnlocked=!1,t.autoUnlock=!1,t._mobileUnloaded||44100===t.ctx.sampleRate||(t._mobileUnloaded=!0,t.unload()),t._scratchBuffer=t.ctx.createBuffer(1,1,22050);var e=function(i){for(;t._html5AudioPool.length0?o._seek:i._sprite[t][0]/1e3),u=Math.max(0,(i._sprite[t][0]+i._sprite[t][1])/1e3-h),c=1e3*u/Math.abs(o._rate),p=i._sprite[t][0]/1e3,d=(i._sprite[t][0]+i._sprite[t][1])/1e3;o._sprite=t,o._ended=!1;var f=function(){o._paused=!1,o._seek=h,o._start=p,o._stop=d,o._loop=!(!o._loop&&!i._sprite[t][2])};if(!(h>=d)){var g=o._node;if(i._webAudio){var m=function(){i._playLock=!1,f(),i._refreshBuffer(o);var t=o._muted||i._muted?0:o._volume;g.gain.setValueAtTime(t,a.ctx.currentTime),o._playStart=a.ctx.currentTime,void 0===g.bufferSource.start?o._loop?g.bufferSource.noteGrainOn(0,h,86400):g.bufferSource.noteGrainOn(0,h,u):o._loop?g.bufferSource.start(0,h,86400):g.bufferSource.start(0,h,u),c!==1/0&&(i._endTimers[o._id]=setTimeout(i._ended.bind(i,o),c)),e||setTimeout((function(){i._emit("play",o._id),i._loadQueue()}),0)};"running"===a.state&&"interrupted"!==a.ctx.state?m():(i._playLock=!0,i.once("resume",m),i._clearTimer(o._id))}else{var A=function(){g.currentTime=h,g.muted=o._muted||i._muted||a._muted||g.muted,g.volume=o._volume*a.volume(),g.playbackRate=o._rate;try{var r=g.play();if(r&&"undefined"!=typeof Promise&&(r instanceof Promise||"function"==typeof r.then)?(i._playLock=!0,f(),r.then((function(){i._playLock=!1,g._unlocked=!0,e?i._loadQueue():i._emit("play",o._id)})).catch((function(){i._playLock=!1,i._emit("playerror",o._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction."),o._ended=!0,o._paused=!0}))):e||(i._playLock=!1,f(),i._emit("play",o._id)),g.playbackRate=o._rate,g.paused)return void i._emit("playerror",o._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction.");"__default"!==t||o._loop?i._endTimers[o._id]=setTimeout(i._ended.bind(i,o),c):(i._endTimers[o._id]=function(){i._ended(o),g.removeEventListener("ended",i._endTimers[o._id],!1)},g.addEventListener("ended",i._endTimers[o._id],!1))}catch(t){i._emit("playerror",o._id,t)}};"data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA"===g.src&&(g.src=i._src,g.load());var v=window&&window.ejecta||!g.readyState&&a._navigator.isCocoonJS;if(g.readyState>=3||v)A();else{i._playLock=!0,i._state="loading";var y=function(){i._state="loaded",A(),g.removeEventListener(a._canPlayEvent,y,!1)};g.addEventListener(a._canPlayEvent,y,!1),i._clearTimer(o._id)}}return o._id}i._ended(o)},pause:function(t){var e=this;if("loaded"!==e._state||e._playLock)return e._queue.push({event:"pause",action:function(){e.pause(t)}}),e;for(var i=e._getSoundIds(t),r=0;r=0?e=parseInt(n[0],10):t=parseFloat(n[0]):n.length>=2&&(t=parseFloat(n[0]),e=parseInt(n[1],10)),!(void 0!==t&&t>=0&&t<=1))return(i=e?r._soundById(e):r._sounds[0])?i._volume:0;if("loaded"!==r._state||r._playLock)return r._queue.push({event:"volume",action:function(){r.volume.apply(r,n)}}),r;void 0===e&&(r._volume=t),e=r._getSoundIds(e);for(var s=0;s0?r/h:r),c=Date.now();t._fadeTo=i,t._interval=setInterval((function(){var n=(Date.now()-c)/r;c=Date.now(),o+=l*n,o=Math.round(100*o)/100,o=l<0?Math.max(i,o):Math.min(i,o),s._webAudio?t._volume=o:s.volume(o,t._id,!0),a&&(s._volume=o),(ie&&o>=i)&&(clearInterval(t._interval),t._interval=null,t._fadeTo=null,s.volume(i,t._id),s._emit("fade",t._id))}),u)},_stopFade:function(t){var e=this,i=e._soundById(t);return i&&i._interval&&(e._webAudio&&i._node.gain.cancelScheduledValues(a.ctx.currentTime),clearInterval(i._interval),i._interval=null,e.volume(i._fadeTo,t),i._fadeTo=null,e._emit("fade",t)),e},loop:function(){var t,e,i,r=this,n=arguments;if(0===n.length)return r._loop;if(1===n.length){if("boolean"!=typeof n[0])return!!(i=r._soundById(parseInt(n[0],10)))&&i._loop;t=n[0],r._loop=t}else 2===n.length&&(t=n[0],e=parseInt(n[1],10));for(var a=r._getSoundIds(e),s=0;s=0?e=parseInt(n[0],10):t=parseFloat(n[0])}else 2===n.length&&(t=parseFloat(n[0]),e=parseInt(n[1],10));if("number"!=typeof t)return(i=r._soundById(e))?i._rate:r._rate;if("loaded"!==r._state||r._playLock)return r._queue.push({event:"rate",action:function(){r.rate.apply(r,n)}}),r;void 0===e&&(r._rate=t),e=r._getSoundIds(e);for(var s=0;s=0?e=parseInt(r[0],10):i._sounds.length&&(e=i._sounds[0]._id,t=parseFloat(r[0]))}else 2===r.length&&(t=parseFloat(r[0]),e=parseInt(r[1],10));if(void 0===e)return 0;if("number"==typeof t&&("loaded"!==i._state||i._playLock))return i._queue.push({event:"seek",action:function(){i.seek.apply(i,r)}}),i;var n=i._soundById(e);if(n){if(!("number"==typeof t&&t>=0)){if(i._webAudio){var s=i.playing(e)?a.ctx.currentTime-n._playStart:0,o=n._rateSeek?n._rateSeek-n._seek:0;return n._seek+(o+s*Math.abs(n._rate))}return n._node.currentTime}var l=i.playing(e);l&&i.pause(e,!0),n._seek=t,n._ended=!1,i._clearTimer(e),i._webAudio||!n._node||isNaN(n._node.duration)||(n._node.currentTime=t);var h=function(){l&&i.play(e,!0),i._emit("seek",e)};if(l&&!i._webAudio){var u=function(){i._playLock?setTimeout(u,0):h()};setTimeout(u,0)}else h()}return i},playing:function(t){var e=this;if("number"==typeof t){var i=e._soundById(t);return!!i&&!i._paused}for(var r=0;r=0&&a._howls.splice(r,1);var n=!0;for(i=0;i=0){n=!1;break}return l&&n&&delete l[t._src],a.noAudio=!1,t._state="unloaded",t._sounds=[],t=null,null},on:function(t,e,i,r){var n=this,a=n["_on"+t];return"function"==typeof e&&a.push(r?{id:i,fn:e,once:r}:{id:i,fn:e}),n},off:function(t,e,i){var r=this,n=r["_on"+t],a=0;if("number"==typeof e&&(i=e,e=null),e||i)for(a=0;a=0;a--)n[a].id&&n[a].id!==e&&"load"!==t||(setTimeout(function(t){t.call(this,e,i)}.bind(r,n[a].fn),0),n[a].once&&r.off(t,n[a].fn,n[a].id));return r._loadQueue(t),r},_loadQueue:function(t){var e=this;if(e._queue.length>0){var i=e._queue[0];i.event===t&&(e._queue.shift(),e._loadQueue()),t||i.action()}return e},_ended:function(t){var e=this,i=t._sprite;if(!e._webAudio&&t._node&&!t._node.paused&&!t._node.ended&&t._node.currentTime=0;r--){if(i<=e)return;t._sounds[r]._ended&&(t._webAudio&&t._sounds[r]._node&&t._sounds[r]._node.disconnect(0),t._sounds.splice(r,1),i--)}}},_getSoundIds:function(t){var e=this;if(void 0===t){for(var i=[],r=0;r=0;if(!t.bufferSource)return e;if(a._scratchBuffer&&t.bufferSource&&(t.bufferSource.onended=null,t.bufferSource.disconnect(0),i))try{t.bufferSource.buffer=a._scratchBuffer}catch(t){}return t.bufferSource=null,e},_clearSound:function(t){/MSIE |Trident\//.test(a._navigator&&a._navigator.userAgent)||(t.src="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA")}};var o=function(t){this._parent=t,this.init()};o.prototype={init:function(){var t=this,e=t._parent;return t._muted=e._muted,t._loop=e._loop,t._volume=e._volume,t._rate=e._rate,t._seek=0,t._paused=!0,t._ended=!0,t._sprite="__default",t._id=++a._counter,e._sounds.push(t),t.create(),t},create:function(){var t=this,e=t._parent,i=a._muted||t._muted||t._parent._muted?0:t._volume;return e._webAudio?(t._node=void 0===a.ctx.createGain?a.ctx.createGainNode():a.ctx.createGain(),t._node.gain.setValueAtTime(i,a.ctx.currentTime),t._node.paused=!0,t._node.connect(a.masterGain)):a.noAudio||(t._node=a._obtainHtml5Audio(),t._errorFn=t._errorListener.bind(t),t._node.addEventListener("error",t._errorFn,!1),t._loadFn=t._loadListener.bind(t),t._node.addEventListener(a._canPlayEvent,t._loadFn,!1),t._endFn=t._endListener.bind(t),t._node.addEventListener("ended",t._endFn,!1),t._node.src=e._src,t._node.preload=!0===e._preload?"auto":e._preload,t._node.volume=i*a.volume(),t._node.load()),t},reset:function(){var t=this,e=t._parent;return t._muted=e._muted,t._loop=e._loop,t._volume=e._volume,t._rate=e._rate,t._seek=0,t._rateSeek=0,t._paused=!0,t._ended=!0,t._sprite="__default",t._id=++a._counter,t},_errorListener:function(){var t=this;t._parent._emit("loaderror",t._id,t._node.error?t._node.error.code:0),t._node.removeEventListener("error",t._errorFn,!1)},_loadListener:function(){var t=this,e=t._parent;e._duration=Math.ceil(10*t._node.duration)/10,0===Object.keys(e._sprite).length&&(e._sprite={__default:[0,1e3*e._duration]}),"loaded"!==e._state&&(e._state="loaded",e._emit("load"),e._loadQueue()),t._node.removeEventListener(a._canPlayEvent,t._loadFn,!1)},_endListener:function(){var t=this,e=t._parent;e._duration===1/0&&(e._duration=Math.ceil(10*t._node.duration)/10,e._sprite.__default[1]===1/0&&(e._sprite.__default[1]=1e3*e._duration),e._ended(t)),t._node.removeEventListener("ended",t._endFn,!1)}};var l={},h=function(t){var e=t._src;if(l[e])return t._duration=l[e].duration,void p(t);if(/^data:[^;]+;base64,/.test(e)){for(var i=atob(e.split(",")[1]),r=new Uint8Array(i.length),n=0;n0?(l[e._src]=t,p(e,t)):i()};"undefined"!=typeof Promise&&1===a.ctx.decodeAudioData.length?a.ctx.decodeAudioData(t).then(r).catch(i):a.ctx.decodeAudioData(t,r,i)},p=function(t,e){e&&!t._duration&&(t._duration=e.duration),0===Object.keys(t._sprite).length&&(t._sprite={__default:[0,1e3*t._duration]}),"loaded"!==t._state&&(t._state="loaded",t._emit("load"),t._loadQueue())},d=function(){if(a.usingWebAudio){try{"undefined"!=typeof AudioContext?a.ctx=new AudioContext:"undefined"!=typeof webkitAudioContext?a.ctx=new webkitAudioContext:a.usingWebAudio=!1}catch(t){a.usingWebAudio=!1}a.ctx||(a.usingWebAudio=!1);var t=/iP(hone|od|ad)/.test(a._navigator&&a._navigator.platform),e=a._navigator&&a._navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/),i=e?parseInt(e[1],10):null;if(t&&i&&i<9){var r=/safari/.test(a._navigator&&a._navigator.userAgent.toLowerCase());a._navigator&&!r&&(a.usingWebAudio=!1)}a.usingWebAudio&&(a.masterGain=void 0===a.ctx.createGain?a.ctx.createGainNode():a.ctx.createGain(),a.masterGain.gain.setValueAtTime(a._muted?0:a._volume,a.ctx.currentTime),a.masterGain.connect(a.ctx.destination)),a._setup()}};void 0!==(r=function(){return{Howler:a,Howl:s}}.apply(e,[]))&&(t.exports=r),a,s,void 0!==i.g?(i.g.HowlerGlobal=n,i.g.Howler=a,i.g.Howl=s,i.g.Sound=o):"undefined"!=typeof window&&(window.HowlerGlobal=n,window.Howler=a,window.Howl=s,window.Sound=o)}()},2290:()=>{},805:(t,e,i)=>{"use strict";var r,n,a,s,o,l,h,u,c,p,d,f,g,m,A,v,y,_,b,x;i.d(e,{B9:()=>s,E8:()=>f,Eq:()=>_,Gk:()=>g,Km:()=>r,M6:()=>p,OS:()=>A,Pk:()=>v,QE:()=>u,XZ:()=>c,_4:()=>o,dW:()=>h,fr:()=>m,h3:()=>n,hR:()=>l,he:()=>b,uR:()=>d,vg:()=>y,wn:()=>a,yw:()=>x}),function(t){t[t.WEBGL_LEGACY=0]="WEBGL_LEGACY",t[t.WEBGL=1]="WEBGL",t[t.WEBGL2=2]="WEBGL2"}(r||(r={})),function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.WEBGL=1]="WEBGL",t[t.CANVAS=2]="CANVAS"}(n||(n={})),function(t){t[t.COLOR=16384]="COLOR",t[t.DEPTH=256]="DEPTH",t[t.STENCIL=1024]="STENCIL"}(a||(a={})),function(t){t[t.NORMAL=0]="NORMAL",t[t.ADD=1]="ADD",t[t.MULTIPLY=2]="MULTIPLY",t[t.SCREEN=3]="SCREEN",t[t.OVERLAY=4]="OVERLAY",t[t.DARKEN=5]="DARKEN",t[t.LIGHTEN=6]="LIGHTEN",t[t.COLOR_DODGE=7]="COLOR_DODGE",t[t.COLOR_BURN=8]="COLOR_BURN",t[t.HARD_LIGHT=9]="HARD_LIGHT",t[t.SOFT_LIGHT=10]="SOFT_LIGHT",t[t.DIFFERENCE=11]="DIFFERENCE",t[t.EXCLUSION=12]="EXCLUSION",t[t.HUE=13]="HUE",t[t.SATURATION=14]="SATURATION",t[t.COLOR=15]="COLOR",t[t.LUMINOSITY=16]="LUMINOSITY",t[t.NORMAL_NPM=17]="NORMAL_NPM",t[t.ADD_NPM=18]="ADD_NPM",t[t.SCREEN_NPM=19]="SCREEN_NPM",t[t.NONE=20]="NONE",t[t.SRC_OVER=0]="SRC_OVER",t[t.SRC_IN=21]="SRC_IN",t[t.SRC_OUT=22]="SRC_OUT",t[t.SRC_ATOP=23]="SRC_ATOP",t[t.DST_OVER=24]="DST_OVER",t[t.DST_IN=25]="DST_IN",t[t.DST_OUT=26]="DST_OUT",t[t.DST_ATOP=27]="DST_ATOP",t[t.ERASE=26]="ERASE",t[t.SUBTRACT=28]="SUBTRACT",t[t.XOR=29]="XOR"}(s||(s={})),function(t){t[t.POINTS=0]="POINTS",t[t.LINES=1]="LINES",t[t.LINE_LOOP=2]="LINE_LOOP",t[t.LINE_STRIP=3]="LINE_STRIP",t[t.TRIANGLES=4]="TRIANGLES",t[t.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",t[t.TRIANGLE_FAN=6]="TRIANGLE_FAN"}(o||(o={})),function(t){t[t.RGBA=6408]="RGBA",t[t.RGB=6407]="RGB",t[t.RG=33319]="RG",t[t.RED=6403]="RED",t[t.RGBA_INTEGER=36249]="RGBA_INTEGER",t[t.RGB_INTEGER=36248]="RGB_INTEGER",t[t.RG_INTEGER=33320]="RG_INTEGER",t[t.RED_INTEGER=36244]="RED_INTEGER",t[t.ALPHA=6406]="ALPHA",t[t.LUMINANCE=6409]="LUMINANCE",t[t.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",t[t.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",t[t.DEPTH_STENCIL=34041]="DEPTH_STENCIL"}(l||(l={})),function(t){t[t.TEXTURE_2D=3553]="TEXTURE_2D",t[t.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",t[t.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",t[t.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",t[t.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",t[t.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",t[t.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z"}(h||(h={})),function(t){t[t.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",t[t.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",t[t.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",t[t.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",t[t.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",t[t.UNSIGNED_INT=5125]="UNSIGNED_INT",t[t.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",t[t.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",t[t.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",t[t.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",t[t.BYTE=5120]="BYTE",t[t.SHORT=5122]="SHORT",t[t.INT=5124]="INT",t[t.FLOAT=5126]="FLOAT",t[t.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",t[t.HALF_FLOAT=36193]="HALF_FLOAT"}(u||(u={})),function(t){t[t.FLOAT=0]="FLOAT",t[t.INT=1]="INT",t[t.UINT=2]="UINT"}(c||(c={})),function(t){t[t.NEAREST=0]="NEAREST",t[t.LINEAR=1]="LINEAR"}(p||(p={})),function(t){t[t.CLAMP=33071]="CLAMP",t[t.REPEAT=10497]="REPEAT",t[t.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT"}(d||(d={})),function(t){t[t.OFF=0]="OFF",t[t.POW2=1]="POW2",t[t.ON=2]="ON",t[t.ON_MANUAL=3]="ON_MANUAL"}(f||(f={})),function(t){t[t.NPM=0]="NPM",t[t.UNPACK=1]="UNPACK",t[t.PMA=2]="PMA",t[t.NO_PREMULTIPLIED_ALPHA=0]="NO_PREMULTIPLIED_ALPHA",t[t.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",t[t.PREMULTIPLY_ALPHA=2]="PREMULTIPLY_ALPHA",t[t.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA"}(g||(g={})),function(t){t[t.NO=0]="NO",t[t.YES=1]="YES",t[t.AUTO=2]="AUTO",t[t.BLEND=0]="BLEND",t[t.CLEAR=1]="CLEAR",t[t.BLIT=2]="BLIT"}(m||(m={})),function(t){t[t.AUTO=0]="AUTO",t[t.MANUAL=1]="MANUAL"}(A||(A={})),function(t){t.LOW="lowp",t.MEDIUM="mediump",t.HIGH="highp"}(v||(v={})),function(t){t[t.NONE=0]="NONE",t[t.SCISSOR=1]="SCISSOR",t[t.STENCIL=2]="STENCIL",t[t.SPRITE=3]="SPRITE",t[t.COLOR=4]="COLOR"}(y||(y={})),function(t){t[t.RED=1]="RED",t[t.GREEN=2]="GREEN",t[t.BLUE=4]="BLUE",t[t.ALPHA=8]="ALPHA"}(_||(_={})),function(t){t[t.NONE=0]="NONE",t[t.LOW=2]="LOW",t[t.MEDIUM=4]="MEDIUM",t[t.HIGH=8]="HIGH"}(b||(b={})),function(t){t[t.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",t[t.ARRAY_BUFFER=34962]="ARRAY_BUFFER",t[t.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER"}(x||(x={}))},1947:(t,e,i)=>{"use strict";i.d(e,{$P:()=>Pe,$Z:()=>It,$f:()=>w,A4:()=>Ve,A5:()=>P,A6:()=>rt,Ag:()=>s.A,BP:()=>Ht,Bu:()=>T,Bw:()=>de,CF:()=>Ee,CI:()=>_,D8:()=>Le,ES:()=>si,Eo:()=>qe,FW:()=>m,GW:()=>O,Gj:()=>S,He:()=>ye,JH:()=>ei,LE:()=>M,LQ:()=>ti,Ln:()=>u,MT:()=>ze,Mt:()=>Xt,NW:()=>ie,Nc:()=>c,O1:()=>F,OE:()=>B,OO:()=>J,Pt:()=>it,RO:()=>ve,Ru:()=>Fe,SD:()=>$e,Uw:()=>Qt,V2:()=>z,WD:()=>_t,WQ:()=>E,X1:()=>Q,XN:()=>ct,XO:()=>s.X,Y7:()=>N,_H:()=>be,_J:()=>Ae,aV:()=>b,ah:()=>re,bD:()=>at,cc:()=>Ke,ch:()=>ai,dJ:()=>Jt,dZ:()=>A,di:()=>I,gP:()=>k,hk:()=>ue,hp:()=>H,hq:()=>Ze,iH:()=>he,iQ:()=>Qe,iW:()=>ne,jH:()=>x,k2:()=>K,kO:()=>q,kb:()=>ut,kp:()=>Xe,lB:()=>ke,n1:()=>_e,nV:()=>hi,nW:()=>G,nj:()=>lt,oA:()=>ni,pq:()=>st,q5:()=>Ye,s9:()=>le,t5:()=>y,u3:()=>Je,u9:()=>et,uC:()=>Lt,vB:()=>Ge,xv:()=>ci});var r=i(9615),n=i(805),a=i(3785),s=i(6919),o=i(935),l=i(4775),h=i(7239);r.W0.PREFER_ENV=a.isMobile.any?n.Km.WEBGL:n.Km.WEBGL2,r.W0.STRICT_TEXTURE_CACHE=!1;var u=[];function c(t,e){if(!t)return null;var i="";if("string"==typeof t){var r=/\.(\w{3,4})(?:$|\?|#)/i.exec(t);r&&(i=r[1].toLowerCase())}for(var n=u.length-1;n>=0;--n){var a=u[n];if(a.test&&a.test(t,i))return new a(t,e)}throw new Error("Unrecognized source type to auto-detect Resource")}var p=function(t,e){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},p(t,e)};function d(t,e){function i(){this.constructor=t}p(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}var f=function(){return f=Object.assign||function(t){for(var e,i=arguments,r=1,n=arguments.length;r0&&d>0,s.textureCacheIds=[],s.destroyed=!1,s.resource=null,s._batchEnabled=0,s._batchLocation=0,s.parentTextureArray=null,s.setResource(e),s}return d(e,t),Object.defineProperty(e.prototype,"realWidth",{get:function(){return Math.round(this.width*this.resolution)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"realHeight",{get:function(){return Math.round(this.height*this.resolution)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mipmap",{get:function(){return this._mipmap},set:function(t){this._mipmap!==t&&(this._mipmap=t,this.dirtyStyleId++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleMode",{get:function(){return this._scaleMode},set:function(t){this._scaleMode!==t&&(this._scaleMode=t,this.dirtyStyleId++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"wrapMode",{get:function(){return this._wrapMode},set:function(t){this._wrapMode!==t&&(this._wrapMode=t,this.dirtyStyleId++)},enumerable:!1,configurable:!0}),e.prototype.setStyle=function(t,e){var i;return void 0!==t&&t!==this.scaleMode&&(this.scaleMode=t,i=!0),void 0!==e&&e!==this.mipmap&&(this.mipmap=e,i=!0),i&&this.dirtyStyleId++,this},e.prototype.setSize=function(t,e,i){return i=i||this.resolution,this.setRealSize(t*i,e*i,i)},e.prototype.setRealSize=function(t,e,i){return this.resolution=i||this.resolution,this.width=Math.round(t)/this.resolution,this.height=Math.round(e)/this.resolution,this._refreshPOT(),this.update(),this},e.prototype._refreshPOT=function(){this.isPowerOfTwo=(0,a.isPow2)(this.realWidth)&&(0,a.isPow2)(this.realHeight)},e.prototype.setResolution=function(t){var e=this.resolution;return e===t||(this.resolution=t,this.valid&&(this.width=Math.round(this.width*e)/t,this.height=Math.round(this.height*e)/t,this.emit("update",this)),this._refreshPOT()),this},e.prototype.setResource=function(t){if(this.resource===t)return this;if(this.resource)throw new Error("Resource can be set only once");return t.bind(this),this.resource=t,this},e.prototype.update=function(){this.valid?(this.dirtyId++,this.dirtyStyleId++,this.emit("update",this)):this.width>0&&this.height>0&&(this.valid=!0,this.emit("loaded",this),this.emit("update",this))},e.prototype.onError=function(t){this.emit("error",this,t)},e.prototype.destroy=function(){this.resource&&(this.resource.unbind(this),this.resource.internal&&this.resource.destroy(),this.resource=null),this.cacheId&&(delete a.BaseTextureCache[this.cacheId],delete a.TextureCache[this.cacheId],this.cacheId=null),this.dispose(),e.removeFromCache(this),this.textureCacheIds=null,this.destroyed=!0},e.prototype.dispose=function(){this.emit("dispose",this)},e.prototype.castToBaseTexture=function(){return this},e.from=function(t,i,n){void 0===n&&(n=r.W0.STRICT_TEXTURE_CACHE);var s="string"==typeof t,o=null;if(s)o=t;else{if(!t._pixiId){var l=i&&i.pixiIdPrefix||"pixiid";t._pixiId=l+"_"+(0,a.uid)()}o=t._pixiId}var h=a.BaseTextureCache[o];if(s&&n&&!h)throw new Error('The cacheId "'+o+'" does not exist in BaseTextureCache.');return h||((h=new e(t,i)).cacheId=o,e.addToCache(h,o)),h},e.fromBuffer=function(t,i,r,a){t=t||new Float32Array(i*r*4);var s=new A(t,{width:i,height:r}),o=t instanceof Float32Array?n.QE.FLOAT:n.QE.UNSIGNED_BYTE;return new e(s,Object.assign({},v,a||{width:i,height:r,type:o}))},e.addToCache=function(t,e){e&&(-1===t.textureCacheIds.indexOf(e)&&t.textureCacheIds.push(e),a.BaseTextureCache[e]&&console.warn("BaseTexture added to the cache with an id ["+e+"] that already had an entry"),a.BaseTextureCache[e]=t)},e.removeFromCache=function(t){if("string"==typeof t){var e=a.BaseTextureCache[t];if(e){var i=e.textureCacheIds.indexOf(t);return i>-1&&e.textureCacheIds.splice(i,1),delete a.BaseTextureCache[t],e}}else if(t&&t.textureCacheIds){for(var r=0;r0){if(!t.resource)throw new Error("CubeResource does not support copying of renderTexture.");this.addResourceAt(t.resource,e)}else t.target=n.dW.TEXTURE_CUBE_MAP_POSITIVE_X+e,t.parentTextureArray=this.baseTexture,this.items[e]=t;return t.valid&&!this.valid&&this.resize(t.realWidth,t.realHeight),this.items[e]=t,this},e.prototype.upload=function(t,i,r){for(var n=this.itemDirtyIds,a=0;a)?\s*()]*-->)?\s*\]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*>/i,e}(x),P=function(t){function e(i,r){var n=this;if(r=r||{},!(i instanceof HTMLVideoElement)){var a=document.createElement("video");a.setAttribute("preload","auto"),a.setAttribute("webkit-playsinline",""),a.setAttribute("playsinline",""),"string"==typeof i&&(i=[i]);var s=i[0].src||i[0];x.crossOrigin(a,s,r.crossorigin);for(var o=0;o2},e.prototype._onPlayStart=function(){this.valid||this._onCanPlay(),this.autoUpdate&&!this._isConnectedToTicker&&(l.Rv.shared.add(this.update,this),this._isConnectedToTicker=!0)},e.prototype._onPlayStop=function(){this._isConnectedToTicker&&(l.Rv.shared.remove(this.update,this),this._isConnectedToTicker=!1)},e.prototype._onCanPlay=function(){var t=this.source;t.removeEventListener("canplay",this._onCanPlay),t.removeEventListener("canplaythrough",this._onCanPlay);var e=this.valid;this.resize(t.videoWidth,t.videoHeight),!e&&this._resolve&&(this._resolve(this),this._resolve=null),this._isSourcePlaying()?this._onPlayStart():this.autoPlay&&t.play()},e.prototype.dispose=function(){this._isConnectedToTicker&&(l.Rv.shared.remove(this.update,this),this._isConnectedToTicker=!1);var e=this.source;e&&(e.removeEventListener("error",this._onError,!0),e.pause(),e.src="",e.load()),t.prototype.dispose.call(this)},Object.defineProperty(e.prototype,"autoUpdate",{get:function(){return this._autoUpdate},set:function(t){t!==this._autoUpdate&&(this._autoUpdate=t,!this._autoUpdate&&this._isConnectedToTicker?(l.Rv.shared.remove(this.update,this),this._isConnectedToTicker=!1):this._autoUpdate&&!this._isConnectedToTicker&&this._isSourcePlaying()&&(l.Rv.shared.add(this.update,this),this._isConnectedToTicker=!0))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"updateFPS",{get:function(){return this._updateFPS},set:function(t){t!==this._updateFPS&&(this._updateFPS=t)},enumerable:!1,configurable:!0}),e.test=function(t,i){return globalThis.HTMLVideoElement&&t instanceof HTMLVideoElement||e.TYPES.indexOf(i)>-1},e.TYPES=["mp4","m4v","webm","ogg","ogv","h264","avi","mov"],e.MIME_TYPES={ogv:"video/ogg",mov:"video/quicktime",m4v:"video/mp4"},e}(x),I=function(t){function e(e){return t.call(this,e)||this}return d(e,t),e.test=function(t){return!!globalThis.createImageBitmap&&"undefined"!=typeof ImageBitmap&&t instanceof ImageBitmap},e}(x);u.push(S,I,T,P,w,A,E,b);var R={__proto__:null,Resource:m,BaseImageResource:x,INSTALLED:u,autoDetectResource:c,AbstractMultiResource:_,ArrayResource:b,BufferResource:A,CanvasResource:T,CubeResource:E,ImageResource:S,SVGResource:w,VideoResource:P,ImageBitmapResource:I},C=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return d(e,t),e.prototype.upload=function(t,e,i){var r=t.gl;r.pixelStorei(r.UNPACK_PREMULTIPLY_ALPHA_WEBGL,e.alphaMode===n.Gk.UNPACK);var a=e.realWidth,s=e.realHeight;return i.width===a&&i.height===s?r.texSubImage2D(e.target,0,0,0,a,s,e.format,i.type,this.data):(i.width=a,i.height=s,r.texImage2D(e.target,0,i.internalFormat,a,s,0,e.format,i.type,this.data)),!0},e}(A),O=function(){function t(t,e){this.width=Math.round(t||100),this.height=Math.round(e||100),this.stencil=!1,this.depth=!1,this.dirtyId=0,this.dirtyFormat=0,this.dirtySize=0,this.depthTexture=null,this.colorTextures=[],this.glFramebuffers={},this.disposeRunner=new o.b("disposeFramebuffer"),this.multisample=n.he.NONE}return Object.defineProperty(t.prototype,"colorTexture",{get:function(){return this.colorTextures[0]},enumerable:!1,configurable:!0}),t.prototype.addColorTexture=function(t,e){return void 0===t&&(t=0),this.colorTextures[t]=e||new y(null,{scaleMode:n.M6.NEAREST,resolution:1,mipmap:n.E8.OFF,width:this.width,height:this.height}),this.dirtyId++,this.dirtyFormat++,this},t.prototype.addDepthTexture=function(t){return this.depthTexture=t||new y(new C(null,{width:this.width,height:this.height}),{scaleMode:n.M6.NEAREST,resolution:1,width:this.width,height:this.height,mipmap:n.E8.OFF,format:n.hR.DEPTH_COMPONENT,type:n.QE.UNSIGNED_SHORT}),this.dirtyId++,this.dirtyFormat++,this},t.prototype.enableDepth=function(){return this.depth=!0,this.dirtyId++,this.dirtyFormat++,this},t.prototype.enableStencil=function(){return this.stencil=!0,this.dirtyId++,this.dirtyFormat++,this},t.prototype.resize=function(t,e){if(t=Math.round(t),e=Math.round(e),t!==this.width||e!==this.height){this.width=t,this.height=e,this.dirtyId++,this.dirtySize++;for(var i=0;i-1&&e.textureCacheIds.splice(i,1),delete a.TextureCache[t],e}}else if(t&&t.textureCacheIds){for(var r=0;rthis.baseTexture.width,s=i+n>this.baseTexture.height;if(a||s){var o=a&&s?"and":"or",l="X: "+e+" + "+r+" = "+(e+r)+" > "+this.baseTexture.width,h="Y: "+i+" + "+n+" = "+(i+n)+" > "+this.baseTexture.height;throw new Error("Texture Error: frame does not fit inside the base Texture dimensions: "+l+" "+o+" "+h)}this.valid=r&&n&&this.baseTexture.valid,this.trim||this.rotate||(this.orig=t),this.valid&&this.updateUvs()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rotate",{get:function(){return this._rotate},set:function(t){this._rotate=t,this.valid&&this.updateUvs()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this.orig.width},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.orig.height},enumerable:!1,configurable:!0}),e.prototype.castToBaseTexture=function(){return this.baseTexture},Object.defineProperty(e,"EMPTY",{get:function(){return e._EMPTY||(e._EMPTY=new e(new y),L(e._EMPTY),L(e._EMPTY.baseTexture)),e._EMPTY},enumerable:!1,configurable:!0}),Object.defineProperty(e,"WHITE",{get:function(){if(!e._WHITE){var t=r.W0.ADAPTER.createCanvas(16,16),i=t.getContext("2d");t.width=16,t.height=16,i.fillStyle="white",i.fillRect(0,0,16,16),e._WHITE=new e(y.from(t)),L(e._WHITE),L(e._WHITE.baseTexture)}return e._WHITE},enumerable:!1,configurable:!0}),e}(a.EventEmitter),N=function(t){function e(e,i){var r=t.call(this,e,i)||this;return r.valid=!0,r.filterFrame=null,r.filterPoolKey=null,r.updateUvs(),r}return d(e,t),Object.defineProperty(e.prototype,"framebuffer",{get:function(){return this.baseTexture.framebuffer},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"multisample",{get:function(){return this.framebuffer.multisample},set:function(t){this.framebuffer.multisample=t},enumerable:!1,configurable:!0}),e.prototype.resize=function(t,e,i){void 0===i&&(i=!0);var r=this.baseTexture.resolution,n=Math.round(t*r)/r,a=Math.round(e*r)/r;this.valid=n>0&&a>0,this._frame.width=this.orig.width=n,this._frame.height=this.orig.height=a,i&&this.baseTexture.resize(n,a),this.updateUvs()},e.prototype.setResolution=function(t){var e=this.baseTexture;e.resolution!==t&&(e.setResolution(t),this.resize(e.width,e.height,!1))},e.create=function(t){for(var i=arguments,r=[],n=1;n1?-r:-1:(s=((65535&(t=(0,a.nextPow2)(t)))<<16|65535&(e=(0,a.nextPow2)(e)))>>>0,r>1&&(s+=4294967296*r)),this.texturePool[s]||(this.texturePool[s]=[]);var o=this.texturePool[s].pop();return o||(o=this.createTexture(t,e,r)),o.filterPoolKey=s,o.setResolution(i),o},t.prototype.getFilterTexture=function(t,e,i){var r=this.getOptimalTexture(t.width,t.height,e||t.resolution,i||n.he.NONE);return r.filterFrame=t.filterFrame,r},t.prototype.returnTexture=function(t){var e=t.filterPoolKey;t.filterFrame=null,this.texturePool[e].push(t)},t.prototype.returnFilterTexture=function(t){this.returnTexture(t)},t.prototype.clear=function(t){if(t=!1!==t)for(var e in this.texturePool){var i=this.texturePool[e];if(i)for(var r=0;r0&&t.height>0,this.texturePool)if(Number(e)<0){var i=this.texturePool[e];if(i)for(var r=0;r1){for(var h=0;h1&&((c=this.getOptimalFilterTexture(u.width,u.height,e.resolution)).filterFrame=u.filterFrame),i[p].apply(this,u,c,n.fr.CLEAR,e);var d=u;u=c,c=d}i[p].apply(this,u,h.renderTexture,n.fr.BLEND,e),p>1&&e.multisample>1&&this.returnFilterTexture(e.renderTexture),this.returnFilterTexture(u),this.returnFilterTexture(c)}e.clear(),this.statePool.push(e)},t.prototype.bindAndClear=function(t,e){void 0===e&&(e=n.fr.CLEAR);var i=this.renderer,r=i.renderTexture,a=i.state;if(t===this.defaultFilterStack[this.defaultFilterStack.length-1].renderTexture?this.renderer.projection.transform=this.activeState.transform:this.renderer.projection.transform=null,t&&t.filterFrame){var s=this.tempRect;s.x=0,s.y=0,s.width=t.filterFrame.width,s.height=t.filterFrame.height,r.bind(t,t.filterFrame,s)}else t!==this.defaultFilterStack[this.defaultFilterStack.length-1].renderTexture?r.bind(t):this.renderer.renderTexture.bind(t,this.activeState.bindingSourceFrame,this.activeState.bindingDestinationFrame);var o=1&a.stateId||this.forceClear;(e===n.fr.CLEAR||e===n.fr.BLIT&&o)&&this.renderer.framebuffer.clear(0,0,0,0)},t.prototype.applyFilter=function(t,e,i,r){var a=this.renderer;a.state.set(t.state),this.bindAndClear(i,r),t.uniforms.uSampler=e,t.uniforms.filterGlobals=this.globalUniforms,a.shader.bind(t),t.legacy=!!t.program.attributeData.aTextureCoord,t.legacy?(this.quadUv.map(e._frame,e.filterFrame),a.geometry.bind(this.quadUv),a.geometry.draw(n._4.TRIANGLES)):(a.geometry.bind(this.quad),a.geometry.draw(n._4.TRIANGLE_STRIP))},t.prototype.calculateSpriteMatrix=function(t,e){var i=this.activeState,r=i.sourceFrame,n=i.destinationFrame,a=e._texture.orig,s=t.set(n.width,0,0,n.height,r.x,r.y),o=e.worldTransform.copyTo(h.uq.TEMP_MATRIX);return o.invert(),s.prepend(o),s.scale(1/a.width,1/a.height),s.translate(e.anchor.x,e.anchor.y),s},t.prototype.destroy=function(){this.renderer=null,this.texturePool.clear(!1)},t.prototype.getOptimalFilterTexture=function(t,e,i,r){return void 0===i&&(i=1),void 0===r&&(r=n.he.NONE),this.texturePool.getOptimalTexture(t,e,i,r)},t.prototype.getFilterTexture=function(t,e,i){if("number"==typeof t){var r=t;t=e,e=r}t=t||this.activeState.renderTexture;var a=this.texturePool.getOptimalTexture(t.width,t.height,e||t.resolution,i||n.he.NONE);return a.filterFrame=t.filterFrame,a},t.prototype.returnFilterTexture=function(t){this.texturePool.returnTexture(t)},t.prototype.emptyPool=function(){this.texturePool.clear(!0)},t.prototype.resize=function(){this.texturePool.setScreenSize(this.renderer.view)},t.prototype.transformAABB=function(t,e){var i=$[0],r=$[1],n=$[2],a=$[3];i.set(e.left,e.top),r.set(e.left,e.bottom),n.set(e.right,e.top),a.set(e.right,e.bottom),t.apply(i,i),t.apply(r,r),t.apply(n,n),t.apply(a,a);var s=Math.min(i.x,r.x,n.x,a.x),o=Math.min(i.y,r.y,n.y,a.y),l=Math.max(i.x,r.x,n.x,a.x),h=Math.max(i.y,r.y,n.y,a.y);e.x=s,e.y=o,e.width=l-s,e.height=h-o},t.prototype.roundFrame=function(t,e,i,r,n){if(!(t.width<=0||t.height<=0||i.width<=0||i.height<=0)){if(n){var a=n.a,s=n.b,o=n.c,l=n.d;if((Math.abs(s)>1e-4||Math.abs(o)>1e-4)&&(Math.abs(a)>1e-4||Math.abs(l)>1e-4))return}(n=n?tt.copyFrom(n):tt.identity()).translate(-i.x,-i.y).scale(r.width/i.width,r.height/i.height).translate(r.x,r.y),this.transformAABB(n,t),t.ceil(e),this.transformAABB(n.invert(),t)}},t}(),it=function(){function t(t){this.renderer=t}return t.prototype.flush=function(){},t.prototype.destroy=function(){this.renderer=null},t.prototype.start=function(){},t.prototype.stop=function(){this.flush()},t.prototype.render=function(t){},t}(),rt=function(){function t(t){this.renderer=t,this.emptyRenderer=new it(t),this.currentRenderer=this.emptyRenderer}return t.prototype.setObjectRenderer=function(t){this.currentRenderer!==t&&(this.currentRenderer.stop(),this.currentRenderer=t,this.currentRenderer.start())},t.prototype.flush=function(){this.setObjectRenderer(this.emptyRenderer)},t.prototype.reset=function(){this.setObjectRenderer(this.emptyRenderer)},t.prototype.copyBoundTextures=function(t,e){for(var i=this.renderer.texture.boundTextures,r=e-1;r>=0;--r)t[r]=i[r]||null,t[r]&&(t[r]._batchLocation=r)},t.prototype.boundArray=function(t,e,i,r){for(var n=t.elements,a=t.ids,s=t.count,o=0,l=0;l=0&&u=n.Km.WEBGL2&&(i=t.getContext("webgl2",e)),i)this.webGLVersion=2;else if(this.webGLVersion=1,!(i=t.getContext("webgl",e)||t.getContext("experimental-webgl",e)))throw new Error("This browser does not support WebGL. Try using the canvas renderer");return this.gl=i,this.getExtensions(),this.gl},t.prototype.getExtensions=function(){var t=this.gl,e={loseContext:t.getExtension("WEBGL_lose_context"),anisotropicFiltering:t.getExtension("EXT_texture_filter_anisotropic"),floatTextureLinear:t.getExtension("OES_texture_float_linear"),s3tc:t.getExtension("WEBGL_compressed_texture_s3tc"),s3tc_sRGB:t.getExtension("WEBGL_compressed_texture_s3tc_srgb"),etc:t.getExtension("WEBGL_compressed_texture_etc"),etc1:t.getExtension("WEBGL_compressed_texture_etc1"),pvrtc:t.getExtension("WEBGL_compressed_texture_pvrtc")||t.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc"),atc:t.getExtension("WEBGL_compressed_texture_atc"),astc:t.getExtension("WEBGL_compressed_texture_astc")};1===this.webGLVersion?Object.assign(this.extensions,e,{drawBuffers:t.getExtension("WEBGL_draw_buffers"),depthTexture:t.getExtension("WEBGL_depth_texture"),vertexArrayObject:t.getExtension("OES_vertex_array_object")||t.getExtension("MOZ_OES_vertex_array_object")||t.getExtension("WEBKIT_OES_vertex_array_object"),uint32ElementIndex:t.getExtension("OES_element_index_uint"),floatTexture:t.getExtension("OES_texture_float"),floatTextureLinear:t.getExtension("OES_texture_float_linear"),textureHalfFloat:t.getExtension("OES_texture_half_float"),textureHalfFloatLinear:t.getExtension("OES_texture_half_float_linear")}):2===this.webGLVersion&&Object.assign(this.extensions,e,{colorBufferFloat:t.getExtension("EXT_color_buffer_float")})},t.prototype.handleContextLost=function(t){var e=this;t.preventDefault(),setTimeout((function(){e.gl.isContextLost()&&e.extensions.loseContext&&e.extensions.loseContext.restoreContext()}),0)},t.prototype.handleContextRestored=function(){this.renderer.runners.contextChange.emit(this.gl)},t.prototype.destroy=function(){var t=this.renderer.view;this.renderer=null,t.removeEventListener("webglcontextlost",this.handleContextLost),t.removeEventListener("webglcontextrestored",this.handleContextRestored),this.gl.useProgram(null),this.extensions.loseContext&&this.extensions.loseContext.loseContext()},t.prototype.postrender=function(){this.renderer.renderingToScreen&&this.gl.flush()},t.prototype.validateContext=function(t){var e=t.getContextAttributes(),i="WebGL2RenderingContext"in globalThis&&t instanceof globalThis.WebGL2RenderingContext;i&&(this.webGLVersion=2),e&&!e.stencil&&console.warn("Provided WebGL context does not have a stencil buffer, masks may not render correctly");var r=i||!!t.getExtension("OES_element_index_uint");this.supports.uint32Indices=r,r||console.warn("Provided WebGL context does not support 32 index buffer, complex graphics may not render correctly")},t}(),st=function(){function t(t){this.framebuffer=t,this.stencil=null,this.dirtyId=-1,this.dirtyFormat=-1,this.dirtySize=-1,this.multisample=n.he.NONE,this.msaaBuffer=null,this.blitFramebuffer=null,this.mipLevel=0}return t}(),ot=new h.M_,lt=function(){function t(t){this.renderer=t,this.managedFramebuffers=[],this.unknownFramebuffer=new O(10,10),this.msaaSamples=null}return t.prototype.contextChange=function(){this.disposeAll(!0);var t=this.gl=this.renderer.gl;if(this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.current=this.unknownFramebuffer,this.viewport=new h.M_,this.hasMRT=!0,this.writeDepthTexture=!0,1===this.renderer.context.webGLVersion){var e=this.renderer.context.extensions.drawBuffers,i=this.renderer.context.extensions.depthTexture;r.W0.PREFER_ENV===n.Km.WEBGL_LEGACY&&(e=null,i=null),e?t.drawBuffers=function(t){return e.drawBuffersWEBGL(t)}:(this.hasMRT=!1,t.drawBuffers=function(){}),i||(this.writeDepthTexture=!1)}else this.msaaSamples=t.getInternalformatParameter(t.RENDERBUFFER,t.RGBA8,t.SAMPLES)},t.prototype.bind=function(t,e,i){void 0===i&&(i=0);var r=this.gl;if(t){var n=t.glFramebuffers[this.CONTEXT_UID]||this.initFramebuffer(t);this.current!==t&&(this.current=t,r.bindFramebuffer(r.FRAMEBUFFER,n.framebuffer)),n.mipLevel!==i&&(t.dirtyId++,t.dirtyFormat++,n.mipLevel=i),n.dirtyId!==t.dirtyId&&(n.dirtyId=t.dirtyId,n.dirtyFormat!==t.dirtyFormat?(n.dirtyFormat=t.dirtyFormat,n.dirtySize=t.dirtySize,this.updateFramebuffer(t,i)):n.dirtySize!==t.dirtySize&&(n.dirtySize=t.dirtySize,this.resizeFramebuffer(t)));for(var a=0;a>i,l=e.height>>i,h=o/e.width;this.setViewport(e.x*h,e.y*h,o,l)}else{o=t.width>>i,l=t.height>>i;this.setViewport(0,0,o,l)}}else this.current&&(this.current=null,r.bindFramebuffer(r.FRAMEBUFFER,null)),e?this.setViewport(e.x,e.y,e.width,e.height):this.setViewport(0,0,this.renderer.width,this.renderer.height)},t.prototype.setViewport=function(t,e,i,r){var n=this.viewport;t=Math.round(t),e=Math.round(e),i=Math.round(i),r=Math.round(r),n.width===i&&n.height===r&&n.x===t&&n.y===e||(n.x=t,n.y=e,n.width=i,n.height=r,this.gl.viewport(t,e,i,r))},Object.defineProperty(t.prototype,"size",{get:function(){return this.current?{x:0,y:0,width:this.current.width,height:this.current.height}:{x:0,y:0,width:this.renderer.width,height:this.renderer.height}},enumerable:!1,configurable:!0}),t.prototype.clear=function(t,e,i,r,a){void 0===a&&(a=n.wn.COLOR|n.wn.DEPTH);var s=this.gl;s.clearColor(t,e,i,r),s.clear(a)},t.prototype.initFramebuffer=function(t){var e=this.gl,i=new st(e.createFramebuffer());return i.multisample=this.detectSamples(t.multisample),t.glFramebuffers[this.CONTEXT_UID]=i,this.managedFramebuffers.push(t),t.disposeRunner.add(this),i},t.prototype.resizeFramebuffer=function(t){var e=this.gl,i=t.glFramebuffers[this.CONTEXT_UID];i.msaaBuffer&&(e.bindRenderbuffer(e.RENDERBUFFER,i.msaaBuffer),e.renderbufferStorageMultisample(e.RENDERBUFFER,i.multisample,e.RGBA8,t.width,t.height)),i.stencil&&(e.bindRenderbuffer(e.RENDERBUFFER,i.stencil),i.msaaBuffer?e.renderbufferStorageMultisample(e.RENDERBUFFER,i.multisample,e.DEPTH24_STENCIL8,t.width,t.height):e.renderbufferStorage(e.RENDERBUFFER,e.DEPTH_STENCIL,t.width,t.height));var r=t.colorTextures,n=r.length;e.drawBuffers||(n=Math.min(n,1));for(var a=0;a1&&this.canMultisampleFramebuffer(t)?(r.msaaBuffer=r.msaaBuffer||i.createRenderbuffer(),i.bindRenderbuffer(i.RENDERBUFFER,r.msaaBuffer),i.renderbufferStorageMultisample(i.RENDERBUFFER,r.multisample,i.RGBA8,t.width,t.height),i.framebufferRenderbuffer(i.FRAMEBUFFER,i.COLOR_ATTACHMENT0,i.RENDERBUFFER,r.msaaBuffer)):r.msaaBuffer&&(i.deleteRenderbuffer(r.msaaBuffer),r.msaaBuffer=null,r.blitFramebuffer&&(r.blitFramebuffer.dispose(),r.blitFramebuffer=null));for(var s=[],o=0;o1&&i.drawBuffers(s),t.depthTexture)&&this.writeDepthTexture){var u=t.depthTexture;this.renderer.texture.bind(u,0),i.framebufferTexture2D(i.FRAMEBUFFER,i.DEPTH_ATTACHMENT,i.TEXTURE_2D,u._glTextures[this.CONTEXT_UID].texture,e)}!t.stencil&&!t.depth||t.depthTexture&&this.writeDepthTexture?r.stencil&&(i.deleteRenderbuffer(r.stencil),r.stencil=null):(r.stencil=r.stencil||i.createRenderbuffer(),i.bindRenderbuffer(i.RENDERBUFFER,r.stencil),r.msaaBuffer?i.renderbufferStorageMultisample(i.RENDERBUFFER,r.multisample,i.DEPTH24_STENCIL8,t.width,t.height):i.renderbufferStorage(i.RENDERBUFFER,i.DEPTH_STENCIL,t.width,t.height),i.framebufferRenderbuffer(i.FRAMEBUFFER,i.DEPTH_STENCIL_ATTACHMENT,i.RENDERBUFFER,r.stencil))},t.prototype.canMultisampleFramebuffer=function(t){return 1!==this.renderer.context.webGLVersion&&t.colorTextures.length<=1&&!t.depthTexture},t.prototype.detectSamples=function(t){var e=this.msaaSamples,i=n.he.NONE;if(t<=1||null===e)return i;for(var r=0;r=0&&this.managedFramebuffers.splice(n,1),t.disposeRunner.remove(this),e||(r.deleteFramebuffer(i.framebuffer),i.msaaBuffer&&r.deleteRenderbuffer(i.msaaBuffer),i.stencil&&r.deleteRenderbuffer(i.stencil)),i.blitFramebuffer&&i.blitFramebuffer.dispose()}},t.prototype.disposeAll=function(t){var e=this.managedFramebuffers;this.managedFramebuffers=[];for(var i=0;i=n.Km.WEBGL2&&(e=t.getContext("webgl2",{})),e||((e=t.getContext("webgl",{})||t.getContext("experimental-webgl",{}))?e.getExtension("WEBGL_draw_buffers"):e=null),yt=e}return yt}function bt(){if(!At){At=n.Pk.MEDIUM;var t=_t();if(t&&t.getShaderPrecisionFormat){var e=t.getShaderPrecisionFormat(t.FRAGMENT_SHADER,t.HIGH_FLOAT);At=e.precision?n.Pk.HIGH:n.Pk.MEDIUM}}return At}function xt(t,e,i){if("precision"!==t.substring(0,9)){var r=e;return e===n.Pk.HIGH&&i!==n.Pk.HIGH&&(r=n.Pk.MEDIUM),"precision "+r+" float;\n"+t}return i!==n.Pk.HIGH&&"precision highp"===t.substring(0,15)?t.replace("precision highp","precision mediump"):t}var Tt={float:1,vec2:2,vec3:3,vec4:4,int:1,ivec2:2,ivec3:3,ivec4:4,uint:1,uvec2:2,uvec3:3,uvec4:4,bool:1,bvec2:2,bvec3:3,bvec4:4,mat2:4,mat3:9,mat4:16,sampler2D:1};function Et(t){return Tt[t]}var St=null,wt={FLOAT:"float",FLOAT_VEC2:"vec2",FLOAT_VEC3:"vec3",FLOAT_VEC4:"vec4",INT:"int",INT_VEC2:"ivec2",INT_VEC3:"ivec3",INT_VEC4:"ivec4",UNSIGNED_INT:"uint",UNSIGNED_INT_VEC2:"uvec2",UNSIGNED_INT_VEC3:"uvec3",UNSIGNED_INT_VEC4:"uvec4",BOOL:"bool",BOOL_VEC2:"bvec2",BOOL_VEC3:"bvec3",BOOL_VEC4:"bvec4",FLOAT_MAT2:"mat2",FLOAT_MAT3:"mat3",FLOAT_MAT4:"mat4",SAMPLER_2D:"sampler2D",INT_SAMPLER_2D:"sampler2D",UNSIGNED_INT_SAMPLER_2D:"sampler2D",SAMPLER_CUBE:"samplerCube",INT_SAMPLER_CUBE:"samplerCube",UNSIGNED_INT_SAMPLER_CUBE:"samplerCube",SAMPLER_2D_ARRAY:"sampler2DArray",INT_SAMPLER_2D_ARRAY:"sampler2DArray",UNSIGNED_INT_SAMPLER_2D_ARRAY:"sampler2DArray"};function Pt(t,e){if(!St){var i=Object.keys(wt);St={};for(var r=0;r0&&(e+="\nelse "),i0?this.maskStack[this.maskStack.length-1]._colorMask:15;i!==e&&this.renderer.gl.colorMask(0!=(1&i),0!=(2&i),0!=(4&i),0!=(8&i))},t.prototype.destroy=function(){this.renderer=null},t}(),ae=function(){function t(t){this.renderer=t,this.maskStack=[],this.glConst=0}return t.prototype.getStackLength=function(){return this.maskStack.length},t.prototype.setMaskStack=function(t){var e=this.renderer.gl,i=this.getStackLength();this.maskStack=t;var r=this.getStackLength();r!==i&&(0===r?e.disable(this.glConst):(e.enable(this.glConst),this._useCurrent()))},t.prototype._useCurrent=function(){},t.prototype.destroy=function(){this.renderer=null,this.maskStack=null},t}(),se=new h.uq,oe=[],le=function(t){function e(e){var i=t.call(this,e)||this;return i.glConst=r.W0.ADAPTER.getWebGLRenderingContext().SCISSOR_TEST,i}return d(e,t),e.prototype.getStackLength=function(){var t=this.maskStack[this.maskStack.length-1];return t?t._scissorCounter:0},e.prototype.calcScissorRect=function(t){var e;if(!t._scissorRectLocal){var i=t._scissorRect,r=t.maskObject,n=this.renderer,a=n.renderTexture,s=r.getBounds(!0,null!==(e=oe.pop())&&void 0!==e?e:new h.M_);this.roundFrameToPixels(s,a.current?a.current.resolution:n.resolution,a.sourceFrame,a.destinationFrame,n.projection.transform),i&&s.fit(i),t._scissorRectLocal=s}},e.isMatrixRotated=function(t){if(!t)return!1;var e=t.a,i=t.b,r=t.c,n=t.d;return(Math.abs(i)>1e-4||Math.abs(r)>1e-4)&&(Math.abs(e)>1e-4||Math.abs(n)>1e-4)},e.prototype.testScissor=function(t){var i=t.maskObject;if(!i.isFastRect||!i.isFastRect())return!1;if(e.isMatrixRotated(i.worldTransform))return!1;if(e.isMatrixRotated(this.renderer.projection.transform))return!1;this.calcScissorRect(t);var r=t._scissorRectLocal;return r.width>0&&r.height>0},e.prototype.roundFrameToPixels=function(t,i,r,n,a){e.isMatrixRotated(a)||((a=a?se.copyFrom(a):se.identity()).translate(-r.x,-r.y).scale(n.width/r.width,n.height/r.height).translate(n.x,n.y),this.renderer.filter.transformAABB(a,t),t.fit(n),t.x=Math.round(t.x*i),t.y=Math.round(t.y*i),t.width=Math.round(t.width*i),t.height=Math.round(t.height*i))},e.prototype.push=function(t){t._scissorRectLocal||this.calcScissorRect(t);var e=this.renderer.gl;t._scissorRect||e.enable(e.SCISSOR_TEST),t._scissorCounter++,t._scissorRect=t._scissorRectLocal,this._useCurrent()},e.prototype.pop=function(t){var e=this.renderer.gl;t&&oe.push(t._scissorRectLocal),this.getStackLength()>0?this._useCurrent():e.disable(e.SCISSOR_TEST)},e.prototype._useCurrent=function(){var t,e=this.maskStack[this.maskStack.length-1]._scissorRect;t=this.renderer.renderTexture.current?e.y:this.renderer.height-e.height-e.y,this.renderer.gl.scissor(e.x,t,e.width,e.height)},e}(ae),he=function(t){function e(e){var i=t.call(this,e)||this;return i.glConst=r.W0.ADAPTER.getWebGLRenderingContext().STENCIL_TEST,i}return d(e,t),e.prototype.getStackLength=function(){var t=this.maskStack[this.maskStack.length-1];return t?t._stencilCounter:0},e.prototype.push=function(t){var e=t.maskObject,i=this.renderer.gl,r=t._stencilCounter;0===r&&(this.renderer.framebuffer.forceStencil(),i.clearStencil(0),i.clear(i.STENCIL_BUFFER_BIT),i.enable(i.STENCIL_TEST)),t._stencilCounter++;var n=t._colorMask;0!==n&&(t._colorMask=0,i.colorMask(!1,!1,!1,!1)),i.stencilFunc(i.EQUAL,r,4294967295),i.stencilOp(i.KEEP,i.KEEP,i.INCR),e.renderable=!0,e.render(this.renderer),this.renderer.batch.flush(),e.renderable=!1,0!==n&&(t._colorMask=n,i.colorMask(0!=(1&n),0!=(2&n),0!=(4&n),0!=(8&n))),this._useCurrent()},e.prototype.pop=function(t){var e=this.renderer.gl;if(0===this.getStackLength())e.disable(e.STENCIL_TEST);else{var i=0!==this.maskStack.length?this.maskStack[this.maskStack.length-1]:null,r=i?i._colorMask:15;0!==r&&(i._colorMask=0,e.colorMask(!1,!1,!1,!1)),e.stencilOp(e.KEEP,e.KEEP,e.DECR),t.renderable=!0,t.render(this.renderer),this.renderer.batch.flush(),t.renderable=!1,0!==r&&(i._colorMask=r,e.colorMask(0!=(1&r),0!=(2&r),0!=(4&r),0!=(8&r))),this._useCurrent()}},e.prototype._useCurrent=function(){var t=this.renderer.gl;t.stencilFunc(t.EQUAL,this.getStackLength(),4294967295),t.stencilOp(t.KEEP,t.KEEP,t.KEEP)},e}(ae),ue=function(){function t(t){this.renderer=t,this.destinationFrame=null,this.sourceFrame=null,this.defaultFrame=null,this.projectionMatrix=new h.uq,this.transform=null}return t.prototype.update=function(t,e,i,r){this.destinationFrame=t||this.destinationFrame||this.defaultFrame,this.sourceFrame=e||this.sourceFrame||t,this.calculateProjection(this.destinationFrame,this.sourceFrame,i,r),this.transform&&this.projectionMatrix.append(this.transform);var n=this.renderer;n.globalUniforms.uniforms.projectionMatrix=this.projectionMatrix,n.globalUniforms.update(),n.shader.shader&&n.shader.syncUniformGroup(n.shader.shader.uniforms.globals)},t.prototype.calculateProjection=function(t,e,i,r){var n=this.projectionMatrix,a=r?-1:1;n.identity(),n.a=1/e.width*2,n.d=a*(1/e.height*2),n.tx=-1-e.x*n.a,n.ty=-a-e.y*n.d},t.prototype.setTransform=function(t){},t.prototype.destroy=function(){this.renderer=null},t}(),ce=new h.M_,pe=new h.M_,de=function(){function t(t){this.renderer=t,this.clearColor=t._backgroundColorRgba,this.defaultMaskStack=[],this.current=null,this.sourceFrame=new h.M_,this.destinationFrame=new h.M_,this.viewportFrame=new h.M_}return t.prototype.bind=function(t,e,i){void 0===t&&(t=null);var r,n,a,s=this.renderer;this.current=t,t?(a=(r=t.baseTexture).resolution,e||(ce.width=t.frame.width,ce.height=t.frame.height,e=ce),i||(pe.x=t.frame.x,pe.y=t.frame.y,pe.width=e.width,pe.height=e.height,i=pe),n=r.framebuffer):(a=s.resolution,e||(ce.width=s.screen.width,ce.height=s.screen.height,e=ce),i||((i=ce).width=e.width,i.height=e.height));var o=this.viewportFrame;o.x=i.x*a,o.y=i.y*a,o.width=i.width*a,o.height=i.height*a,t||(o.y=s.view.height-(o.y+o.height)),o.ceil(),this.renderer.framebuffer.bind(n,o),this.renderer.projection.update(i,e,a,!n),t?this.renderer.mask.setMaskStack(r.maskStack):this.renderer.mask.setMaskStack(this.defaultMaskStack),this.sourceFrame.copyFrom(e),this.destinationFrame.copyFrom(i)},t.prototype.clear=function(t,e){t=this.current?t||this.current.baseTexture.clearColor:t||this.clearColor;var i=this.destinationFrame,r=this.current?this.current.baseTexture:this.renderer.screen,n=i.width!==r.width||i.height!==r.height;if(n){var a=this.viewportFrame,s=a.x,o=a.y,l=a.width,h=a.height;s=Math.round(s),o=Math.round(o),l=Math.round(l),h=Math.round(h),this.renderer.gl.enable(this.renderer.gl.SCISSOR_TEST),this.renderer.gl.scissor(s,o,l,h)}this.renderer.framebuffer.clear(t[0],t[1],t[2],t[3],e),n&&this.renderer.scissor.pop()},t.prototype.resize=function(){this.bind(null)},t.prototype.reset=function(){this.bind(null)},t.prototype.destroy=function(){this.renderer=null},t}();function fe(t,e,i,r,n){i.buffer.update(n)}var ge={float:"\n data[offset] = v;\n ",vec2:"\n data[offset] = v[0];\n data[offset+1] = v[1];\n ",vec3:"\n data[offset] = v[0];\n data[offset+1] = v[1];\n data[offset+2] = v[2];\n\n ",vec4:"\n data[offset] = v[0];\n data[offset+1] = v[1];\n data[offset+2] = v[2];\n data[offset+3] = v[3];\n ",mat2:"\n data[offset] = v[0];\n data[offset+1] = v[1];\n\n data[offset+4] = v[2];\n data[offset+5] = v[3];\n ",mat3:"\n data[offset] = v[0];\n data[offset+1] = v[1];\n data[offset+2] = v[2];\n\n data[offset + 4] = v[3];\n data[offset + 5] = v[4];\n data[offset + 6] = v[5];\n\n data[offset + 8] = v[6];\n data[offset + 9] = v[7];\n data[offset + 10] = v[8];\n ",mat4:"\n for(var i = 0; i < 16; i++)\n {\n data[offset + i] = v[i];\n }\n "},me={float:4,vec2:8,vec3:12,vec4:16,int:4,ivec2:8,ivec3:12,ivec4:16,uint:4,uvec2:8,uvec3:12,uvec4:16,bool:4,bvec2:8,bvec3:12,bvec4:16,mat2:32,mat3:48,mat4:64};function Ae(t){for(var e=t.map((function(t){return{data:t,offset:0,dataLen:0,dirty:0}})),i=0,r=0,n=0,a=0;a1&&(i=Math.max(i,16)*s.data.size),s.dataLen=i,r%i!=0&&r<16){var o=r%i%16;r+=o,n+=o}r+i>16?(n=16*Math.ceil(n/16),s.offset=n,n+=i,r=i):(s.offset=n,r+=i,n+=i)}return{uboElements:e,size:n=16*Math.ceil(n/16)}}function ve(t,e){var i=[];for(var r in t)e[r]&&i.push(e[r]);return i.sort((function(t,e){return t.index-e.index})),i}function ye(t,e){if(!t.autoManage)return{size:0,syncFunc:fe};for(var i=Ae(ve(t.uniforms,e)),r=i.uboElements,n=i.size,a=["\n var v = null;\n var v2 = null;\n var cv = null;\n var t = 0;\n var gl = renderer.gl\n var index = 0;\n var data = buffer.data;\n "],s=0;s1){var d=Et(o.data.type),f=Math.max(me[o.data.type]/16,1),g=d/f,m=(4-g%4)%4;a.push("\n cv = ud."+h+".value;\n v = uv."+h+";\n offset = "+o.offset/4+";\n\n t = 0;\n\n for(var i=0; i < "+o.data.size*f+"; i++)\n {\n for(var j = 0; j < "+g+"; j++)\n {\n data[offset++] = v[t++];\n }\n offset += "+m+";\n }\n\n ")}else{var A=ge[o.data.type];a.push("\n cv = ud."+h+".value;\n v = uv."+h+";\n offset = "+o.offset/4+";\n "+A+";\n ")}}return a.push("\n renderer.buffer.update(buffer);\n "),{size:n,syncFunc:new Function("ud","uv","renderer","syncData","buffer",a.join("\n"))}}var _e=function(){function t(){}return t}(),be=function(){function t(t,e){this.program=t,this.uniformData=e,this.uniformGroups={},this.uniformDirtyGroups={},this.uniformBufferBindings={}}return t.prototype.destroy=function(){this.uniformData=null,this.uniformGroups=null,this.uniformDirtyGroups=null,this.uniformBufferBindings=null,this.program=null},t}();function xe(t,e){for(var i={},r=e.getProgramParameter(t,e.ACTIVE_ATTRIBUTES),n=0;ne?1:-1}));for(var s=0;s>=1,i++;this.stateId=t.data}for(i=0;ithis.checkCountMax&&(this.checkCount=0,this.run())))},t.prototype.run=function(){for(var t=this.renderer.texture,e=t.managedTextures,i=!1,r=0;rthis.maxIdle&&(t.destroyTexture(n,!0),e[r]=null,i=!0)}if(i){var a=0;for(r=0;r=0;r--)this.unload(t.children[r])},t.prototype.destroy=function(){this.renderer=null},t}();function Ne(t){var e,i,r,a,s,o,l,h,u,c,p,d,f,g,m,A,v,y,_,b,x,T,E;return"WebGL2RenderingContext"in globalThis&&t instanceof globalThis.WebGL2RenderingContext?((e={})[n.QE.UNSIGNED_BYTE]=((i={})[n.hR.RGBA]=t.RGBA8,i[n.hR.RGB]=t.RGB8,i[n.hR.RG]=t.RG8,i[n.hR.RED]=t.R8,i[n.hR.RGBA_INTEGER]=t.RGBA8UI,i[n.hR.RGB_INTEGER]=t.RGB8UI,i[n.hR.RG_INTEGER]=t.RG8UI,i[n.hR.RED_INTEGER]=t.R8UI,i[n.hR.ALPHA]=t.ALPHA,i[n.hR.LUMINANCE]=t.LUMINANCE,i[n.hR.LUMINANCE_ALPHA]=t.LUMINANCE_ALPHA,i),e[n.QE.BYTE]=((r={})[n.hR.RGBA]=t.RGBA8_SNORM,r[n.hR.RGB]=t.RGB8_SNORM,r[n.hR.RG]=t.RG8_SNORM,r[n.hR.RED]=t.R8_SNORM,r[n.hR.RGBA_INTEGER]=t.RGBA8I,r[n.hR.RGB_INTEGER]=t.RGB8I,r[n.hR.RG_INTEGER]=t.RG8I,r[n.hR.RED_INTEGER]=t.R8I,r),e[n.QE.UNSIGNED_SHORT]=((a={})[n.hR.RGBA_INTEGER]=t.RGBA16UI,a[n.hR.RGB_INTEGER]=t.RGB16UI,a[n.hR.RG_INTEGER]=t.RG16UI,a[n.hR.RED_INTEGER]=t.R16UI,a[n.hR.DEPTH_COMPONENT]=t.DEPTH_COMPONENT16,a),e[n.QE.SHORT]=((s={})[n.hR.RGBA_INTEGER]=t.RGBA16I,s[n.hR.RGB_INTEGER]=t.RGB16I,s[n.hR.RG_INTEGER]=t.RG16I,s[n.hR.RED_INTEGER]=t.R16I,s),e[n.QE.UNSIGNED_INT]=((o={})[n.hR.RGBA_INTEGER]=t.RGBA32UI,o[n.hR.RGB_INTEGER]=t.RGB32UI,o[n.hR.RG_INTEGER]=t.RG32UI,o[n.hR.RED_INTEGER]=t.R32UI,o[n.hR.DEPTH_COMPONENT]=t.DEPTH_COMPONENT24,o),e[n.QE.INT]=((l={})[n.hR.RGBA_INTEGER]=t.RGBA32I,l[n.hR.RGB_INTEGER]=t.RGB32I,l[n.hR.RG_INTEGER]=t.RG32I,l[n.hR.RED_INTEGER]=t.R32I,l),e[n.QE.FLOAT]=((h={})[n.hR.RGBA]=t.RGBA32F,h[n.hR.RGB]=t.RGB32F,h[n.hR.RG]=t.RG32F,h[n.hR.RED]=t.R32F,h[n.hR.DEPTH_COMPONENT]=t.DEPTH_COMPONENT32F,h),e[n.QE.HALF_FLOAT]=((u={})[n.hR.RGBA]=t.RGBA16F,u[n.hR.RGB]=t.RGB16F,u[n.hR.RG]=t.RG16F,u[n.hR.RED]=t.R16F,u),e[n.QE.UNSIGNED_SHORT_5_6_5]=((c={})[n.hR.RGB]=t.RGB565,c),e[n.QE.UNSIGNED_SHORT_4_4_4_4]=((p={})[n.hR.RGBA]=t.RGBA4,p),e[n.QE.UNSIGNED_SHORT_5_5_5_1]=((d={})[n.hR.RGBA]=t.RGB5_A1,d),e[n.QE.UNSIGNED_INT_2_10_10_10_REV]=((f={})[n.hR.RGBA]=t.RGB10_A2,f[n.hR.RGBA_INTEGER]=t.RGB10_A2UI,f),e[n.QE.UNSIGNED_INT_10F_11F_11F_REV]=((g={})[n.hR.RGB]=t.R11F_G11F_B10F,g),e[n.QE.UNSIGNED_INT_5_9_9_9_REV]=((m={})[n.hR.RGB]=t.RGB9_E5,m),e[n.QE.UNSIGNED_INT_24_8]=((A={})[n.hR.DEPTH_STENCIL]=t.DEPTH24_STENCIL8,A),e[n.QE.FLOAT_32_UNSIGNED_INT_24_8_REV]=((v={})[n.hR.DEPTH_STENCIL]=t.DEPTH32F_STENCIL8,v),E=e):((y={})[n.QE.UNSIGNED_BYTE]=((_={})[n.hR.RGBA]=t.RGBA,_[n.hR.RGB]=t.RGB,_[n.hR.ALPHA]=t.ALPHA,_[n.hR.LUMINANCE]=t.LUMINANCE,_[n.hR.LUMINANCE_ALPHA]=t.LUMINANCE_ALPHA,_),y[n.QE.UNSIGNED_SHORT_5_6_5]=((b={})[n.hR.RGB]=t.RGB,b),y[n.QE.UNSIGNED_SHORT_4_4_4_4]=((x={})[n.hR.RGBA]=t.RGBA,x),y[n.QE.UNSIGNED_SHORT_5_5_5_1]=((T={})[n.hR.RGBA]=t.RGBA,T),E=y),E}var Fe=function(){function t(t){this.texture=t,this.width=-1,this.height=-1,this.dirtyId=-1,this.dirtyStyleId=-1,this.mipmap=!1,this.wrapMode=33071,this.type=n.QE.UNSIGNED_BYTE,this.internalFormat=n.hR.RGBA,this.samplerType=0}return t}(),Ge=function(){function t(t){this.renderer=t,this.boundTextures=[],this.currentLocation=-1,this.managedTextures=[],this._unknownBoundTextures=!1,this.unknownTexture=new y,this.hasIntegerTextures=!1}return t.prototype.contextChange=function(){var t=this.gl=this.renderer.gl;this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.webGLVersion=this.renderer.context.webGLVersion,this.internalFormats=Ne(t);var e=t.getParameter(t.MAX_TEXTURE_IMAGE_UNITS);this.boundTextures.length=e;for(var i=0;i=0;--s){var o=i[s];if(o)o._glTextures[a].samplerType!==n.XZ.FLOAT&&this.renderer.texture.unbind(o)}},t.prototype.initTexture=function(t){var e=new Fe(this.gl.createTexture());return e.dirtyId=-1,t._glTextures[this.CONTEXT_UID]=e,this.managedTextures.push(t),t.on("dispose",this.destroyTexture,this),e},t.prototype.initTextureType=function(t,e){var i,r;e.internalFormat=null!==(r=null===(i=this.internalFormats[t.type])||void 0===i?void 0:i[t.format])&&void 0!==r?r:t.format,2===this.webGLVersion&&t.type===n.QE.HALF_FLOAT?e.type=this.gl.HALF_FLOAT:e.type=t.type},t.prototype.updateTexture=function(t){var e=t._glTextures[this.CONTEXT_UID];if(e){var i=this.renderer;if(this.initTextureType(t,e),t.resource&&t.resource.upload(i,t,e))e.samplerType!==n.XZ.FLOAT&&(this.hasIntegerTextures=!0);else{var r=t.realWidth,a=t.realHeight,s=i.gl;(e.width!==r||e.height!==a||e.dirtyId<0)&&(e.width=r,e.height=a,s.texImage2D(t.target,0,e.internalFormat,r,a,0,t.format,e.type,null))}t.dirtyStyleId!==e.dirtyStyleId&&this.updateTextureStyle(t),e.dirtyId=t.dirtyId}},t.prototype.destroyTexture=function(t,e){var i=this.gl;if((t=t.castToBaseTexture())._glTextures[this.CONTEXT_UID]&&(this.unbind(t),i.deleteTexture(t._glTextures[this.CONTEXT_UID].texture),t.off("dispose",this.destroyTexture,this),delete t._glTextures[this.CONTEXT_UID],!e)){var r=this.managedTextures.indexOf(t);-1!==r&&(0,a.removeItems)(this.managedTextures,r,1)}},t.prototype.updateTextureStyle=function(t){var e=t._glTextures[this.CONTEXT_UID];e&&(t.mipmap!==n.E8.POW2&&2===this.webGLVersion||t.isPowerOfTwo?e.mipmap=t.mipmap>=1:e.mipmap=!1,2===this.webGLVersion||t.isPowerOfTwo?e.wrapMode=t.wrapMode:e.wrapMode=n.uR.CLAMP,t.resource&&t.resource.style(this.renderer,t,e)||this.setStyle(t,e),e.dirtyStyleId=t.dirtyStyleId)},t.prototype.setStyle=function(t,e){var i=this.gl;if(e.mipmap&&t.mipmap!==n.E8.ON_MANUAL&&i.generateMipmap(t.target),i.texParameteri(t.target,i.TEXTURE_WRAP_S,e.wrapMode),i.texParameteri(t.target,i.TEXTURE_WRAP_T,e.wrapMode),e.mipmap){i.texParameteri(t.target,i.TEXTURE_MIN_FILTER,t.scaleMode===n.M6.LINEAR?i.LINEAR_MIPMAP_LINEAR:i.NEAREST_MIPMAP_NEAREST);var r=this.renderer.context.extensions.anisotropicFiltering;if(r&&t.anisotropicLevel>0&&t.scaleMode===n.M6.LINEAR){var a=Math.min(t.anisotropicLevel,i.getParameter(r.MAX_TEXTURE_MAX_ANISOTROPY_EXT));i.texParameterf(t.target,r.TEXTURE_MAX_ANISOTROPY_EXT,a)}}else i.texParameteri(t.target,i.TEXTURE_MIN_FILTER,t.scaleMode===n.M6.LINEAR?i.LINEAR:i.NEAREST);i.texParameteri(t.target,i.TEXTURE_MAG_FILTER,t.scaleMode===n.M6.LINEAR?i.LINEAR:i.NEAREST)},t.prototype.destroy=function(){this.renderer=null},t}(),Ue={__proto__:null,FilterSystem:et,BatchSystem:rt,ContextSystem:at,FramebufferSystem:lt,GeometrySystem:ut,MaskSystem:ne,ScissorSystem:le,StencilSystem:he,ProjectionSystem:ue,RenderTextureSystem:de,ShaderSystem:Pe,StateSystem:Le,TextureGCSystem:ke,TextureSystem:Ge},He=new h.uq,Xe=function(t){function e(e,i){void 0===e&&(e=n.h3.UNKNOWN);var s=t.call(this)||this;return i=Object.assign({},r.W0.RENDER_OPTIONS,i),s.options=i,s.type=e,s.screen=new h.M_(0,0,i.width,i.height),s.view=i.view||r.W0.ADAPTER.createCanvas(),s.resolution=i.resolution||r.W0.RESOLUTION,s.useContextAlpha=i.useContextAlpha,s.autoDensity=!!i.autoDensity,s.preserveDrawingBuffer=i.preserveDrawingBuffer,s.clearBeforeRender=i.clearBeforeRender,s._backgroundColor=0,s._backgroundColorRgba=[0,0,0,1],s._backgroundColorString="#000000",s.backgroundColor=i.backgroundColor||s._backgroundColor,s.backgroundAlpha=i.backgroundAlpha,void 0!==i.transparent&&((0,a.deprecation)("6.0.0","Option transparent is deprecated, please use backgroundAlpha instead."),s.useContextAlpha=i.transparent,s.backgroundAlpha=i.transparent?0:1),s._lastObjectRendered=null,s.plugins={},s}return d(e,t),e.prototype.initPlugins=function(t){for(var e in t)this.plugins[e]=new t[e](this)},Object.defineProperty(e.prototype,"width",{get:function(){return this.view.width},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.view.height},enumerable:!1,configurable:!0}),e.prototype.resize=function(t,e){this.view.width=Math.round(t*this.resolution),this.view.height=Math.round(e*this.resolution);var i=this.view.width/this.resolution,r=this.view.height/this.resolution;this.screen.width=i,this.screen.height=r,this.autoDensity&&(this.view.style.width=i+"px",this.view.style.height=r+"px"),this.emit("resize",i,r)},e.prototype.generateTexture=function(t,e,i,r){void 0===e&&(e={}),"number"==typeof e&&((0,a.deprecation)("6.1.0","generateTexture options (scaleMode, resolution, region) are now object options."),e={scaleMode:e,resolution:i,region:r});var n=e.region,s=g(e,["region"]);0===(r=n||t.getLocalBounds(null,!0)).width&&(r.width=1),0===r.height&&(r.height=1);var o=N.create(f({width:r.width,height:r.height},s));return He.tx=-r.x,He.ty=-r.y,this.render(t,{renderTexture:o,clear:!1,transform:He,skipUpdateTransform:!!t.parent}),o},e.prototype.destroy=function(t){for(var e in this.plugins)this.plugins[e].destroy(),this.plugins[e]=null;t&&this.view.parentNode&&this.view.parentNode.removeChild(this.view);var i=this;i.plugins=null,i.type=n.h3.UNKNOWN,i.view=null,i.screen=null,i._tempDisplayObjectParent=null,i.options=null,this._backgroundColorRgba=null,this._backgroundColorString=null,this._lastObjectRendered=null},Object.defineProperty(e.prototype,"backgroundColor",{get:function(){return this._backgroundColor},set:function(t){this._backgroundColor=t,this._backgroundColorString=(0,a.hex2string)(t),(0,a.hex2rgb)(t,this._backgroundColorRgba)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"backgroundAlpha",{get:function(){return this._backgroundColorRgba[3]},set:function(t){this._backgroundColorRgba[3]=t},enumerable:!1,configurable:!0}),e}(a.EventEmitter),je=function(){function t(t){this.buffer=t||null,this.updateID=-1,this.byteLength=-1,this.refCount=0}return t}(),We=function(){function t(t){this.renderer=t,this.managedBuffers={},this.boundBufferBases={}}return t.prototype.destroy=function(){this.renderer=null},t.prototype.contextChange=function(){this.disposeAll(!0),this.gl=this.renderer.gl,this.CONTEXT_UID=this.renderer.CONTEXT_UID},t.prototype.bind=function(t){var e=this,i=e.gl,r=e.CONTEXT_UID,n=t._glBuffers[r]||this.createGLBuffer(t);i.bindBuffer(t.type,n.buffer)},t.prototype.bindBufferBase=function(t,e){var i=this,r=i.gl,n=i.CONTEXT_UID;if(this.boundBufferBases[e]!==t){var a=t._glBuffers[n]||this.createGLBuffer(t);this.boundBufferBases[e]=t,r.bindBufferBase(r.UNIFORM_BUFFER,e,a.buffer)}},t.prototype.bindBufferRange=function(t,e,i){var r=this,n=r.gl,a=r.CONTEXT_UID;i=i||0;var s=t._glBuffers[a]||this.createGLBuffer(t);n.bindBufferRange(n.UNIFORM_BUFFER,e||0,s.buffer,256*i,256)},t.prototype.update=function(t){var e=this,i=e.gl,r=e.CONTEXT_UID,n=t._glBuffers[r];if(t._updateID!==n.updateID)if(n.updateID=t._updateID,i.bindBuffer(t.type,n.buffer),n.byteLength>=t.data.byteLength)i.bufferSubData(t.type,0,t.data);else{var a=t.static?i.STATIC_DRAW:i.DYNAMIC_DRAW;n.byteLength=t.data.byteLength,i.bufferData(t.type,t.data,a)}},t.prototype.dispose=function(t,e){if(this.managedBuffers[t.id]){delete this.managedBuffers[t.id];var i=t._glBuffers[this.CONTEXT_UID],r=this.gl;t.disposeRunner.remove(this),i&&(e||r.deleteBuffer(i.buffer),delete t._glBuffers[this.CONTEXT_UID])}},t.prototype.disposeAll=function(t){for(var e=Object.keys(this.managedBuffers),i=0;i=n.he.HIGH?this.multisample=n.he.HIGH:t>=n.he.MEDIUM?this.multisample=n.he.MEDIUM:t>=n.he.LOW?this.multisample=n.he.LOW:this.multisample=n.he.NONE},e.prototype.addSystem=function(t,e){var i=new t(this);if(this[e])throw new Error('Whoops! The name "'+e+'" is already in use');for(var r in this[e]=i,this.runners)this.runners[r].add(i);return this},e.prototype.render=function(t,e){var i,r,n,s;if(e&&(e instanceof N?((0,a.deprecation)("6.0.0","Renderer#render arguments changed, use options instead."),i=e,r=arguments[2],n=arguments[3],s=arguments[4]):(i=e.renderTexture,r=e.clear,n=e.transform,s=e.skipUpdateTransform)),this.renderingToScreen=!i,this.runners.prerender.emit(),this.emit("prerender"),this.projection.transform=n,!this.context.isLost){if(i||(this._lastObjectRendered=t),!s){var o=t.enableTempParent();t.updateTransform(),t.disableTempParent(o)}this.renderTexture.bind(i),this.batch.currentRenderer.start(),(void 0!==r?r:this.clearBeforeRender)&&this.renderTexture.clear(),t.render(this),this.batch.currentRenderer.flush(),i&&i.baseTexture.update(),this.runners.postrender.emit(),this.projection.transform=null,this.emit("postrender")}},e.prototype.generateTexture=function(e,i,r,n){void 0===i&&(i={});var a=t.prototype.generateTexture.call(this,e,i,r,n);return this.framebuffer.blit(),a},e.prototype.resize=function(e,i){t.prototype.resize.call(this,e,i),this.runners.resize.emit(this.screen.height,this.screen.width)},e.prototype.reset=function(){return this.runners.reset.emit(),this},e.prototype.clear=function(){this.renderTexture.bind(),this.renderTexture.clear()},e.prototype.destroy=function(e){for(var i in this.runners.destroy.emit(),this.runners)this.runners[i].destroy();t.prototype.destroy.call(this,e),this.gl=null},Object.defineProperty(e.prototype,"extract",{get:function(){return(0,a.deprecation)("6.0.0","Renderer#extract has been deprecated, please use Renderer#plugins.extract instead."),this.plugins.extract},enumerable:!1,configurable:!0}),e.registerPlugin=function(t,e){(0,a.deprecation)("6.5.0","Renderer.registerPlugin() has been deprecated, please use extensions.add() instead."),s.X.add({name:t,type:s.A.RendererPlugin,ref:e})},e.__plugins={},e}(Xe);function Ye(t){return Ve.create(t)}s.X.handleByMap(s.A.RendererPlugin,Ve.__plugins);var ze="attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}",qe="attribute vec2 aVertexPosition;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nuniform vec4 inputSize;\nuniform vec4 outputFrame;\n\nvec4 filterVertexPosition( void )\n{\n vec2 position = aVertexPosition * max(outputFrame.zw, vec2(0.)) + outputFrame.xy;\n\n return vec4((projectionMatrix * vec3(position, 1.0)).xy, 0.0, 1.0);\n}\n\nvec2 filterTextureCoord( void )\n{\n return aVertexPosition * (outputFrame.zw * inputSize.zw);\n}\n\nvoid main(void)\n{\n gl_Position = filterVertexPosition();\n vTextureCoord = filterTextureCoord();\n}\n",Qe=function(){function t(t){(0,a.deprecation)("6.1.0","System class is deprecated, implemement ISystem interface instead."),this.renderer=t}return t.prototype.destroy=function(){this.renderer=null},t}(),Ze=function(){function t(){this.texArray=null,this.blend=0,this.type=n._4.TRIANGLES,this.start=0,this.size=0,this.data=null}return t}(),Ke=function(){function t(){this.elements=[],this.ids=[],this.count=0}return t.prototype.clear=function(){for(var t=0;tthis.size&&this.flush(),this._vertexCount+=t.vertexData.length/2,this._indexCount+=t.indices.length,this._bufferedTextures[this._bufferSize]=t._texture.baseTexture,this._bufferedElements[this._bufferSize++]=t)},e.prototype.buildTexturesAndDrawCalls=function(){var t=this,i=t._bufferedTextures,r=t.MAX_TEXTURES,n=e._textureArrayPool,a=this.renderer.batch,s=this._tempBoundTextures,o=this.renderer.textureGC.count,l=++y._globalBatch,h=0,u=n[0],c=0;a.copyBoundTextures(s,r);for(var p=0;p=r&&(a.boundArray(u,s,l,r),this.buildDrawCalls(u,c,p),c=p,u=n[++h],++l),d._batchEnabled=l,d.touched=o,u.elements[u.count++]=d)}u.count>0&&(a.boundArray(u,s,l,r),this.buildDrawCalls(u,c,this._bufferSize),++h,++l);for(p=0;p0&&(e+="\nelse "),i{"use strict";i.d(e,{cz:()=>o,dC:()=>c,mc:()=>d,q9:()=>u});var r=i(9615),n=i(7239),a=i(3785),s=i(805);r.W0.SORTABLE_CHILDREN=!1;var o=function(){function t(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0,this.rect=null,this.updateID=-1}return t.prototype.isEmpty=function(){return this.minX>this.maxX||this.minY>this.maxY},t.prototype.clear=function(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0},t.prototype.getRectangle=function(t){return this.minX>this.maxX||this.minY>this.maxY?n.M_.EMPTY:((t=t||new n.M_(0,0,1,1)).x=this.minX,t.y=this.minY,t.width=this.maxX-this.minX,t.height=this.maxY-this.minY,t)},t.prototype.addPoint=function(t){this.minX=Math.min(this.minX,t.x),this.maxX=Math.max(this.maxX,t.x),this.minY=Math.min(this.minY,t.y),this.maxY=Math.max(this.maxY,t.y)},t.prototype.addPointMatrix=function(t,e){var i=t.a,r=t.b,n=t.c,a=t.d,s=t.tx,o=t.ty,l=i*e.x+n*e.y+s,h=r*e.x+a*e.y+o;this.minX=Math.min(this.minX,l),this.maxX=Math.max(this.maxX,l),this.minY=Math.min(this.minY,h),this.maxY=Math.max(this.maxY,h)},t.prototype.addQuad=function(t){var e=this.minX,i=this.minY,r=this.maxX,n=this.maxY,a=t[0],s=t[1];e=ar?a:r,n=s>n?s:n,e=(a=t[2])r?a:r,n=s>n?s:n,e=(a=t[4])r?a:r,n=s>n?s:n,e=(a=t[6])r?a:r,n=s>n?s:n,this.minX=e,this.minY=i,this.maxX=r,this.maxY=n},t.prototype.addFrame=function(t,e,i,r,n){this.addFrameMatrix(t.worldTransform,e,i,r,n)},t.prototype.addFrameMatrix=function(t,e,i,r,n){var a=t.a,s=t.b,o=t.c,l=t.d,h=t.tx,u=t.ty,c=this.minX,p=this.minY,d=this.maxX,f=this.maxY,g=a*e+o*i+h,m=s*e+l*i+u;c=gd?g:d,f=m>f?m:f,c=(g=a*r+o*i+h)d?g:d,f=m>f?m:f,c=(g=a*e+o*n+h)d?g:d,f=m>f?m:f,c=(g=a*r+o*n+h)d?g:d,f=m>f?m:f,this.minX=c,this.minY=p,this.maxX=d,this.maxY=f},t.prototype.addVertexData=function(t,e,i){for(var r=this.minX,n=this.minY,a=this.maxX,s=this.maxY,o=e;oa?l:a,s=h>s?h:s}this.minX=r,this.minY=n,this.maxX=a,this.maxY=s},t.prototype.addVertices=function(t,e,i,r){this.addVerticesMatrix(t.worldTransform,e,i,r)},t.prototype.addVerticesMatrix=function(t,e,i,r,n,a){void 0===n&&(n=0),void 0===a&&(a=n);for(var s=t.a,o=t.b,l=t.c,h=t.d,u=t.tx,c=t.ty,p=this.minX,d=this.minY,f=this.maxX,g=this.maxY,m=i;mr?t.maxX:r,this.maxY=t.maxY>n?t.maxY:n},t.prototype.addBoundsMask=function(t,e){var i=t.minX>e.minX?t.minX:e.minX,r=t.minY>e.minY?t.minY:e.minY,n=t.maxXl?n:l,this.maxY=a>h?a:h}},t.prototype.addBoundsMatrix=function(t,e){this.addFrameMatrix(e,t.minX,t.minY,t.maxX,t.maxY)},t.prototype.addBoundsArea=function(t,e){var i=t.minX>e.x?t.minX:e.x,r=t.minY>e.y?t.minY:e.y,n=t.maxXl?n:l,this.maxY=a>h?a:h}},t.prototype.pad=function(t,e){void 0===t&&(t=0),void 0===e&&(e=t),this.isEmpty()||(this.minX-=t,this.maxX+=t,this.minY-=e,this.maxY+=e)},t.prototype.addFramePad=function(t,e,i,r,n,a){t-=n,e-=a,i+=n,r+=a,this.minX=this.minXi?this.maxX:i,this.minY=this.minYr?this.maxY:r},t}(),l=function(t,e){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},l(t,e)};function h(t,e){function i(){this.constructor=t}l(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}var u=function(t){function e(){var e=t.call(this)||this;return e.tempDisplayObjectParent=null,e.transform=new n.dL,e.alpha=1,e.visible=!0,e.renderable=!0,e.cullable=!1,e.cullArea=null,e.parent=null,e.worldAlpha=1,e._lastSortedIndex=0,e._zIndex=0,e.filterArea=null,e.filters=null,e._enabledFilters=null,e._bounds=new o,e._localBounds=null,e._boundsID=0,e._boundsRect=null,e._localBoundsRect=null,e._mask=null,e._maskRefCount=0,e._destroyed=!1,e.isSprite=!1,e.isMask=!1,e}return h(e,t),e.mixin=function(t){for(var i=Object.keys(t),r=0;r1)for(var r=0;rthis.children.length)throw new Error(t+"addChildAt: The index "+e+" supplied is out of bounds "+this.children.length);return t.parent&&t.parent.removeChild(t),t.parent=this,this.sortDirty=!0,t.transform._parentID=-1,this.children.splice(e,0,t),this._boundsID++,this.onChildrenChange(e),t.emit("added",this),this.emit("childAdded",t,this,e),t},e.prototype.swapChildren=function(t,e){if(t!==e){var i=this.getChildIndex(t),r=this.getChildIndex(e);this.children[i]=e,this.children[r]=t,this.onChildrenChange(i=this.children.length)throw new Error("The index "+e+" supplied is out of bounds "+this.children.length);var i=this.getChildIndex(t);(0,a.removeItems)(this.children,i,1),this.children.splice(e,0,t),this.onChildrenChange(e)},e.prototype.getChildAt=function(t){if(t<0||t>=this.children.length)throw new Error("getChildAt: Index ("+t+") does not exist.");return this.children[t]},e.prototype.removeChild=function(){for(var t=arguments,e=[],i=0;i1)for(var r=0;r0&&n<=e){i=this.children.splice(r,n);for(var a=0;a1&&this.children.sort(p),this.sortDirty=!1},e.prototype.updateTransform=function(){this.sortableChildren&&this.sortDirty&&this.sortChildren(),this._boundsID++,this.transform.updateTransform(this.parent.transform),this.worldAlpha=this.alpha*this.parent.worldAlpha;for(var t=0,e=this.children.length;t0&&i.height>0){var r,n;if(this.cullArea?(r=this.cullArea,n=this.worldTransform):this._render!==e.prototype._render&&(r=this.getBounds(!0)),r&&i.intersects(r,n))this._render(t);else if(this.cullArea)return;for(var a=0,s=this.children.length;a{"use strict";i.d(e,{A:()=>r,X:()=>s});var r,n=function(){return n=Object.assign||function(t){for(var e,i=arguments,r=1,n=arguments.length;r{"use strict";i.d(e,{A1:()=>U,Mp:()=>n,Sc:()=>N,Zw:()=>c,ie:()=>D,lU:()=>u,lo:()=>H,mk:()=>k,u2:()=>r});var r,n,a=i(1947),s=i(7239),o=i(3785),l=i(805),h=i(903);(function(t){t.MITER="miter",t.BEVEL="bevel",t.ROUND="round"})(r||(r={})),function(t){t.BUTT="butt",t.ROUND="round",t.SQUARE="square"}(n||(n={}));var u={adaptive:!0,maxLength:10,minSegments:8,maxSegments:2048,epsilon:1e-4,_segmentsCount:function(t,e){if(void 0===e&&(e=20),!this.adaptive||!t||isNaN(t))return e;var i=Math.ceil(t/this.maxLength);return ithis.maxSegments&&(i=this.maxSegments),i}},c=function(){function t(){this.color=16777215,this.alpha=1,this.texture=a.gP.WHITE,this.matrix=null,this.visible=!1,this.reset()}return t.prototype.clone=function(){var e=new t;return e.color=this.color,e.alpha=this.alpha,e.texture=this.texture,e.matrix=this.matrix,e.visible=this.visible,e},t.prototype.reset=function(){this.color=16777215,this.alpha=1,this.texture=a.gP.WHITE,this.matrix=null,this.visible=!1},t.prototype.destroy=function(){this.texture=null,this.matrix=null},t}(),p=function(t,e){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},p(t,e)};function d(t,e){function i(){this.constructor=t}p(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}function f(t,e){var i,r;void 0===e&&(e=!1);var n=t.length;if(!(n<6)){for(var a=0,s=0,o=t[n-2],l=t[n-1];s0||e&&a<=0){var c=n/2;for(s=c+c%2;s=6){f(i,!1);for(var s=[],l=0;l=0&&o>=0&&r>=0&&n>=0){var f=Math.ceil(2.3*Math.sqrt(a+o)),g=8*f+(r?4:0)+(n?4:0);if(l.length=g,0!==g){if(0===f)return l.length=8,l[0]=l[6]=e+r,l[1]=l[3]=i+n,l[2]=l[4]=e-r,void(l[5]=l[7]=i-n);var m=0,A=4*f+(r?2:0)+2,v=A,y=g,_=e+(w=r+a),b=e-w,x=i+(P=n);if(l[m++]=_,l[m++]=x,l[--A]=x,l[--A]=b,n){var T=i-P;l[v++]=b,l[v++]=T,l[--y]=T,l[--y]=_}for(var E=1;Ec&&(c+=2*Math.PI);var p=u,d=c-u,f=Math.abs(d),g=Math.sqrt(l*l+h*h),m=1+(15*f*Math.sqrt(g)/Math.PI>>0),A=d/m;if(p+=A,o){s.push(t,e),s.push(i,r);for(var v=1,y=p;v=0&&(l.join===r.ROUND?v+=x(P,I,P-O*N,I-M*N,P-B*N,I-D*N,m,!1)+4:v+=2,m.push(P-B*F,I-D*F),m.push(P+B*N,I+D*N));else{var z=(-O+S)*(-M+I)-(-O+P)*(-M+w),q=(-B+R)*(-D+I)-(-B+P)*(-D+C),Q=(U*q-X*z)/V,Z=(j*z-H*q)/V,K=(Q-P)*(Q-P)+(Z-I)*(Z-I),J=P+(Q-P)*N,$=I+(Z-I)*N,tt=P-(Q-P)*F,et=I-(Z-I)*F,it=Y?N:F;K<=Math.min(U*U+H*H,X*X+j*j)+it*it*T?l.join===r.BEVEL||K/T>E?(Y?(m.push(J,$),m.push(P+O*F,I+M*F),m.push(J,$),m.push(P+B*F,I+D*F)):(m.push(P-O*N,I-M*N),m.push(tt,et),m.push(P-B*N,I-D*N),m.push(tt,et)),v+=2):l.join===r.ROUND?Y?(m.push(J,$),m.push(P+O*F,I+M*F),v+=x(P,I,P+O*F,I+M*F,P+B*F,I+D*F,m,!0)+4,m.push(J,$),m.push(P+B*F,I+D*F)):(m.push(P-O*N,I-M*N),m.push(tt,et),v+=x(P,I,P-O*N,I-M*N,P-B*N,I-D*N,m,!1)+4,m.push(P-B*N,I-D*N),m.push(tt,et)):(m.push(J,$),m.push(tt,et)):(m.push(P-O*N,I-M*N),m.push(P+O*F,I+M*F),l.join===r.ROUND?v+=Y?x(P,I,P+O*F,I+M*F,P+B*F,I+D*F,m,!0)+2:x(P,I,P-O*N,I-M*N,P-B*N,I-D*N,m,!1)+2:l.join===r.MITER&&K/T<=E&&(Y?(m.push(tt,et),m.push(tt,et)):(m.push(J,$),m.push(J,$)),v+=2),m.push(P-B*N,I-D*N),m.push(P+B*F,I+D*F),v+=2)}}S=a[2*(A-2)],w=a[2*(A-2)+1],P=a[2*(A-1)],O=-(w-(I=a[2*(A-1)+1])),M=S-P,O/=L=Math.sqrt(O*O+M*M),M/=L,O*=_,M*=_,m.push(P-O*N,I-M*N),m.push(P+O*F,I+M*F),p||(l.cap===n.ROUND?v+=x(P-O*(N-F)*.5,I-M*(N-F)*.5,P-O*N,I-M*N,P+O*F,I+M*F,m,!1)+2:l.cap===n.SQUARE&&(v+=b(P,I,O,M,N,F,!1,m)));var rt=e.indices,nt=u.epsilon*u.epsilon;for(G=y;Gu*o}},t.arc=function(t,e,i,r,n,a,o,l,h){for(var c=o-a,p=u._segmentsCount(Math.abs(c)*n,40*Math.ceil(Math.abs(c)/s.TO)),d=c/(2*p),f=2*d,g=Math.cos(d),m=Math.sin(d),A=p-1,v=A%1/A,y=0;y<=A;++y){var _=d+a+f*(y+v*y),b=Math.cos(_),x=-Math.sin(_);h.push((g*b+m*x)*n+i,(g*-x+m*b)*n+r)}},t}(),I=function(){function t(){}return t.curveLength=function(t,e,i,r,n,a,s,o){for(var l=10,h=0,u=0,c=0,p=0,d=0,f=0,g=0,m=0,A=0,v=0,y=0,_=t,b=e,x=1;x<=l;++x)v=_-(m=(g=(f=(d=1-(u=x/l))*d)*d)*t+3*f*u*i+3*d*(c=u*u)*n+(p=c*u)*s),y=b-(A=g*e+3*f*u*r+3*d*c*a+p*o),_=m,b=A,h+=Math.sqrt(v*v+y*y);return h},t.curveTo=function(e,i,r,n,a,s,o){var l=o[o.length-2],h=o[o.length-1];o.length-=2;var c=u._segmentsCount(t.curveLength(l,h,e,i,r,n,a,s)),p=0,d=0,f=0,g=0,m=0;o.push(l,h);for(var A=1,v=0;A<=c;++A)f=(d=(p=1-(v=A/c))*p)*p,m=(g=v*v)*v,o.push(f*l+3*d*v*e+3*p*g*r+m*a,f*h+3*d*v*i+3*p*g*n+m*s)},t}(),R=function(){function t(){}return t.curveLength=function(t,e,i,r,n,a){var s=t-2*i+n,o=e-2*r+a,l=2*i-2*t,h=2*r-2*e,u=4*(s*s+o*o),c=4*(s*l+o*h),p=l*l+h*h,d=2*Math.sqrt(u+c+p),f=Math.sqrt(u),g=2*u*f,m=2*Math.sqrt(p),A=c/f;return(g*d+f*c*(d-m)+(4*p*u-c*c)*Math.log((2*f+A+d)/(A+m)))/(4*g)},t.curveTo=function(e,i,r,n,a){for(var s=a[a.length-2],o=a[a.length-1],l=u._segmentsCount(t.curveLength(s,o,e,i,r,n)),h=0,c=0,p=1;p<=l;++p){var d=p/l;h=s+(e-s)*d,c=o+(i-o)*d,a.push(h+(e+(r-e)*d-h)*d,c+(i+(n-i)*d-c)*d)}},t}(),C=function(){function t(){this.reset()}return t.prototype.begin=function(t,e,i){this.reset(),this.style=t,this.start=e,this.attribStart=i},t.prototype.end=function(t,e){this.attribSize=e-this.attribStart,this.size=t-this.start},t.prototype.reset=function(){this.style=null,this.size=0,this.start=0,this.attribStart=0,this.attribSize=0},t}(),O=((w={})[s.HY.POLY]=g,w[s.HY.CIRC]=m,w[s.HY.ELIP]=m,w[s.HY.RECT]=A,w[s.HY.RREC]=_,w),M=[],B=[],D=function(){function t(t,e,i,r){void 0===e&&(e=null),void 0===i&&(i=null),void 0===r&&(r=null),this.points=[],this.holes=[],this.shape=t,this.lineStyle=i,this.fillStyle=e,this.matrix=r,this.type=t.type}return t.prototype.clone=function(){return new t(this.shape,this.fillStyle,this.lineStyle,this.matrix)},t.prototype.destroy=function(){this.shape=null,this.holes.length=0,this.holes=null,this.points.length=0,this.points=null,this.lineStyle=null,this.fillStyle=null},t}(),L=new s.bR,k=function(t){function e(){var e=t.call(this)||this;return e.closePointEps=1e-4,e.boundsPadding=0,e.uvsFloat32=null,e.indicesUint16=null,e.batchable=!1,e.points=[],e.colors=[],e.uvs=[],e.indices=[],e.textureIds=[],e.graphicsData=[],e.drawCalls=[],e.batchDirty=-1,e.batches=[],e.dirty=0,e.cacheDirty=-1,e.clearDirty=0,e.shapeIndex=0,e._bounds=new h.cz,e.boundsDirty=-1,e}return d(e,t),Object.defineProperty(e.prototype,"bounds",{get:function(){return this.updateBatches(),this.boundsDirty!==this.dirty&&(this.boundsDirty=this.dirty,this.calculateBounds()),this._bounds},enumerable:!1,configurable:!0}),e.prototype.invalidate=function(){this.boundsDirty=-1,this.dirty++,this.batchDirty++,this.shapeIndex=0,this.points.length=0,this.colors.length=0,this.uvs.length=0,this.indices.length=0,this.textureIds.length=0;for(var t=0;t0&&(this.invalidate(),this.clearDirty++,this.graphicsData.length=0),this},e.prototype.drawShape=function(t,e,i,r){void 0===e&&(e=null),void 0===i&&(i=null),void 0===r&&(r=null);var n=new D(t,e,i,r);return this.graphicsData.push(n),this.dirty++,this},e.prototype.drawHole=function(t,e){if(void 0===e&&(e=null),!this.graphicsData.length)return null;var i=new D(t,null,null,e),r=this.graphicsData[this.graphicsData.length-1];return i.lineStyle=r.lineStyle,r.holes.push(i),this.dirty++,this},e.prototype.destroy=function(){t.prototype.destroy.call(this);for(var e=0;e0&&(r=(i=this.batches[this.batches.length-1]).style);for(var n=this.shapeIndex;n65535;this.indicesUint16&&this.indices.length===this.indicesUint16.length&&A===this.indicesUint16.BYTES_PER_ELEMENT>2?this.indicesUint16.set(this.indices):this.indicesUint16=A?new Uint32Array(this.indices):new Uint16Array(this.indices),this.batchable=this.isBatchable(),this.batchable?this.packBatches():this.buildDrawCalls()}else this.batchable=!0}}else this.batchable=!0},e.prototype._compareStyles=function(t,e){return!(!t||!e)&&(t.texture.baseTexture===e.texture.baseTexture&&(t.color+t.alpha===e.color+e.alpha&&!!t.native==!!e.native))},e.prototype.validateBatching=function(){if(this.dirty===this.cacheDirty||!this.graphicsData.length)return!1;for(var t=0,e=this.graphicsData.length;t131070)return!1;for(var t=this.batches,i=0;i0&&((n=B.pop())||((n=new a.hq).texArray=new a.cc),this.drawCalls.push(n)),n.start=p,n.size=0,n.texArray.count=0,n.type=c),m.touched=1,m._batchEnabled=t,m._batchLocation=s,m.wrapMode=l.uR.REPEAT,n.texArray.elements[n.texArray.count++]=m,s++)),n.size+=d.size,p+=d.size,h=m._batchLocation,this.addColors(i,g.color,g.alpha,d.attribSize,d.attribStart),this.addTextureIds(r,h,d.attribSize,d.attribStart)}a.t5._globalBatch=t,this.packAttributes()},e.prototype.packAttributes=function(){for(var t=this.points,e=this.uvs,i=this.colors,r=this.textureIds,n=new ArrayBuffer(3*t.length*4),a=new Float32Array(n),s=new Uint32Array(n),o=0,l=0;l>16)+(65280&e)+((255&e)<<16),s=(0,o.premultiplyTint)(a,i);t.length=Math.max(t.length,n+r);for(var l=0;l0&&t.alpha>0;return e?(t.matrix&&(t.matrix=t.matrix.clone(),t.matrix.invert()),Object.assign(this._lineStyle,{visible:e},t)):this._lineStyle.reset(),this},e.prototype.startPoly=function(){if(this.currentPath){var t=this.currentPath.points,e=this.currentPath.points.length;e>2&&(this.drawShape(this.currentPath),this.currentPath=new s.tS,this.currentPath.closeStroke=!1,this.currentPath.points.push(t[e-2],t[e-1]))}else this.currentPath=new s.tS,this.currentPath.closeStroke=!1},e.prototype.finishPoly=function(){this.currentPath&&(this.currentPath.points.length>2?(this.drawShape(this.currentPath),this.currentPath=null):this.currentPath.points.length=0)},e.prototype.moveTo=function(t,e){return this.startPoly(),this.currentPath.points[0]=t,this.currentPath.points[1]=e,this},e.prototype.lineTo=function(t,e){this.currentPath||this.moveTo(0,0);var i=this.currentPath.points,r=i[i.length-2],n=i[i.length-1];return r===t&&n===e||i.push(t,e),this},e.prototype._initCurve=function(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this.currentPath?0===this.currentPath.points.length&&(this.currentPath.points=[t,e]):this.moveTo(t,e)},e.prototype.quadraticCurveTo=function(t,e,i,r){this._initCurve();var n=this.currentPath.points;return 0===n.length&&this.moveTo(0,0),R.curveTo(t,e,i,r,n),this},e.prototype.bezierCurveTo=function(t,e,i,r,n,a){return this._initCurve(),I.curveTo(t,e,i,r,n,a,this.currentPath.points),this},e.prototype.arcTo=function(t,e,i,r,n){this._initCurve(t,e);var a=this.currentPath.points,s=P.curveTo(t,e,i,r,n,a);if(s){var o=s.cx,l=s.cy,h=s.radius,u=s.startAngle,c=s.endAngle,p=s.anticlockwise;this.arc(o,l,h,u,c,p)}return this},e.prototype.arc=function(t,e,i,r,n,a){if(void 0===a&&(a=!1),r===n)return this;if(!a&&n<=r?n+=s.TO:a&&r<=n&&(r+=s.TO),0===n-r)return this;var o=t+Math.cos(r)*i,l=e+Math.sin(r)*i,h=this._geometry.closePointEps,u=this.currentPath?this.currentPath.points:null;if(u){var c=Math.abs(u[u.length-2]-o),p=Math.abs(u[u.length-1]-l);c0;return e?(t.matrix&&(t.matrix=t.matrix.clone(),t.matrix.invert()),Object.assign(this._fillStyle,{visible:e},t)):this._fillStyle.reset(),this},e.prototype.endFill=function(){return this.finishPoly(),this._fillStyle.reset(),this},e.prototype.drawRect=function(t,e,i,r){return this.drawShape(new s.M_(t,e,i,r))},e.prototype.drawRoundedRect=function(t,e,i,r,n){return this.drawShape(new s.TE(t,e,i,r,n))},e.prototype.drawCircle=function(t,e,i){return this.drawShape(new s.jl(t,e,i))},e.prototype.drawEllipse=function(t,e,i,r){return this.drawShape(new s.Pp(t,e,i,r))},e.prototype.drawPolygon=function(){for(var t,e=arguments,i=[],r=0;r>16&255)/255*n,a.tint[1]=(r>>8&255)/255*n,a.tint[2]=(255&r)/255*n,a.tint[3]=n,t.shader.bind(e),t.geometry.bind(i,e),t.state.set(this.state);for(var o=0,l=s.length;o>16)+(65280&n)+((255&n)<<16)}}},e.prototype.calculateVertices=function(){var t=this.transform._worldID;if(this._transformID!==t){this._transformID=t;for(var e=this.transform.worldTransform,i=e.a,r=e.b,n=e.c,a=e.d,s=e.tx,o=e.ty,l=this._geometry.points,h=this.vertexData,u=0,c=0;c{"use strict";i.d(e,{ER:()=>E,HY:()=>r,M_:()=>h,Pp:()=>c,TE:()=>d,TO:()=>n,Td:()=>s,bO:()=>a,bR:()=>o,dL:()=>S,jl:()=>u,oA:()=>f,tS:()=>p,uq:()=>g});var r,n=2*Math.PI,a=180/Math.PI,s=Math.PI/180;(function(t){t[t.POLY=0]="POLY",t[t.RECT=1]="RECT",t[t.CIRC=2]="CIRC",t[t.ELIP=3]="ELIP",t[t.RREC=4]="RREC"})(r||(r={}));var o=function(){function t(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this.x=0,this.y=0,this.x=t,this.y=e}return t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.copyFrom=function(t){return this.set(t.x,t.y),this},t.prototype.copyTo=function(t){return t.set(this.x,this.y),t},t.prototype.equals=function(t){return t.x===this.x&&t.y===this.y},t.prototype.set=function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.x=t,this.y=e,this},t.prototype.toString=function(){return"[@pixi/math:Point x="+this.x+" y="+this.y+"]"},t}(),l=[new o,new o,new o,new o],h=function(){function t(t,e,i,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=0),this.x=Number(t),this.y=Number(e),this.width=Number(i),this.height=Number(n),this.type=r.RECT}return Object.defineProperty(t.prototype,"left",{get:function(){return this.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"right",{get:function(){return this.x+this.width},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"top",{get:function(){return this.y},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bottom",{get:function(){return this.y+this.height},enumerable:!1,configurable:!0}),Object.defineProperty(t,"EMPTY",{get:function(){return new t(0,0,0,0)},enumerable:!1,configurable:!0}),t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copyFrom=function(t){return this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height,this},t.prototype.copyTo=function(t){return t.x=this.x,t.y=this.y,t.width=this.width,t.height=this.height,t},t.prototype.contains=function(t,e){return!(this.width<=0||this.height<=0)&&(t>=this.x&&t=this.y&&et.right?t.right:this.right)<=i)return!1;var r=this.yt.bottom?t.bottom:this.bottom)>r}var n=this.left,a=this.right,s=this.top,o=this.bottom;if(a<=n||o<=s)return!1;var h=l[0].set(t.left,t.top),u=l[1].set(t.left,t.bottom),c=l[2].set(t.right,t.top),p=l[3].set(t.right,t.bottom);if(c.x<=h.x||u.y<=h.y)return!1;var d=Math.sign(e.a*e.d-e.b*e.c);if(0===d)return!1;if(e.apply(h,h),e.apply(u,u),e.apply(c,c),e.apply(p,p),Math.max(h.x,u.x,c.x,p.x)<=n||Math.min(h.x,u.x,c.x,p.x)>=a||Math.max(h.y,u.y,c.y,p.y)<=s||Math.min(h.y,u.y,c.y,p.y)>=o)return!1;var f=d*(u.y-h.y),g=d*(h.x-u.x),m=f*n+g*s,A=f*a+g*s,v=f*n+g*o,y=f*a+g*o;if(Math.max(m,A,v,y)<=f*h.x+g*h.y||Math.min(m,A,v,y)>=f*p.x+g*p.y)return!1;var _=d*(h.y-c.y),b=d*(c.x-h.x),x=_*n+b*s,T=_*a+b*s,E=_*n+b*o,S=_*a+b*o;return!(Math.max(x,T,E,S)<=_*h.x+b*h.y||Math.min(x,T,E,S)>=_*p.x+b*p.y)},t.prototype.pad=function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.x-=t,this.y-=e,this.width+=2*t,this.height+=2*e,this},t.prototype.fit=function(t){var e=Math.max(this.x,t.x),i=Math.min(this.x+this.width,t.x+t.width),r=Math.max(this.y,t.y),n=Math.min(this.y+this.height,t.y+t.height);return this.x=e,this.width=Math.max(i-e,0),this.y=r,this.height=Math.max(n-r,0),this},t.prototype.ceil=function(t,e){void 0===t&&(t=1),void 0===e&&(e=.001);var i=Math.ceil((this.x+this.width-e)*t)/t,r=Math.ceil((this.y+this.height-e)*t)/t;return this.x=Math.floor((this.x+e)*t)/t,this.y=Math.floor((this.y+e)*t)/t,this.width=i-this.x,this.height=r-this.y,this},t.prototype.enlarge=function(t){var e=Math.min(this.x,t.x),i=Math.max(this.x+this.width,t.x+t.width),r=Math.min(this.y,t.y),n=Math.max(this.y+this.height,t.y+t.height);return this.x=e,this.width=i-e,this.y=r,this.height=n-r,this},t.prototype.toString=function(){return"[@pixi/math:Rectangle x="+this.x+" y="+this.y+" width="+this.width+" height="+this.height+"]"},t}(),u=function(){function t(t,e,i){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),this.x=t,this.y=e,this.radius=i,this.type=r.CIRC}return t.prototype.clone=function(){return new t(this.x,this.y,this.radius)},t.prototype.contains=function(t,e){if(this.radius<=0)return!1;var i=this.radius*this.radius,r=this.x-t,n=this.y-e;return(r*=r)+(n*=n)<=i},t.prototype.getBounds=function(){return new h(this.x-this.radius,this.y-this.radius,2*this.radius,2*this.radius)},t.prototype.toString=function(){return"[@pixi/math:Circle x="+this.x+" y="+this.y+" radius="+this.radius+"]"},t}(),c=function(){function t(t,e,i,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=0),this.x=t,this.y=e,this.width=i,this.height=n,this.type=r.ELIP}return t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.contains=function(t,e){if(this.width<=0||this.height<=0)return!1;var i=(t-this.x)/this.width,r=(e-this.y)/this.height;return(i*=i)+(r*=r)<=1},t.prototype.getBounds=function(){return new h(this.x-this.width,this.y-this.height,this.width,this.height)},t.prototype.toString=function(){return"[@pixi/math:Ellipse x="+this.x+" y="+this.y+" width="+this.width+" height="+this.height+"]"},t}(),p=function(){function t(){for(var t=arguments,e=[],i=0;ie!=h>e&&t<(e-o)/(h-o)*(l-s)+s&&(i=!i)}return i},t.prototype.toString=function(){return"[@pixi/math:PolygoncloseStroke="+this.closeStroke+"points="+this.points.reduce((function(t,e){return t+", "+e}),"")+"]"},t}(),d=function(){function t(t,e,i,n,a){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=0),void 0===a&&(a=20),this.x=t,this.y=e,this.width=i,this.height=n,this.radius=a,this.type=r.RREC}return t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height,this.radius)},t.prototype.contains=function(t,e){if(this.width<=0||this.height<=0)return!1;if(t>=this.x&&t<=this.x+this.width&&e>=this.y&&e<=this.y+this.height){var i=Math.max(0,Math.min(this.radius,Math.min(this.width,this.height)/2));if(e>=this.y+i&&e<=this.y+this.height-i||t>=this.x+i&&t<=this.x+this.width-i)return!0;var r=t-(this.x+i),n=e-(this.y+i),a=i*i;if(r*r+n*n<=a)return!0;if((r=t-(this.x+this.width-i))*r+n*n<=a)return!0;if(r*r+(n=e-(this.y+this.height-i))*n<=a)return!0;if((r=t-(this.x+i))*r+n*n<=a)return!0}return!1},t.prototype.toString=function(){return"[@pixi/math:RoundedRectangle x="+this.x+" y="+this.y+"width="+this.width+" height="+this.height+" radius="+this.radius+"]"},t}(),f=function(){function t(t,e,i,r){void 0===i&&(i=0),void 0===r&&(r=0),this._x=i,this._y=r,this.cb=t,this.scope=e}return t.prototype.clone=function(e,i){return void 0===e&&(e=this.cb),void 0===i&&(i=this.scope),new t(e,i,this._x,this._y)},t.prototype.set=function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this._x===t&&this._y===e||(this._x=t,this._y=e,this.cb.call(this.scope)),this},t.prototype.copyFrom=function(t){return this._x===t.x&&this._y===t.y||(this._x=t.x,this._y=t.y,this.cb.call(this.scope)),this},t.prototype.copyTo=function(t){return t.set(this._x,this._y),t},t.prototype.equals=function(t){return t.x===this._x&&t.y===this._y},t.prototype.toString=function(){return"[@pixi/math:ObservablePoint x=0 y=0 scope="+this.scope+"]"},Object.defineProperty(t.prototype,"x",{get:function(){return this._x},set:function(t){this._x!==t&&(this._x=t,this.cb.call(this.scope))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"y",{get:function(){return this._y},set:function(t){this._y!==t&&(this._y=t,this.cb.call(this.scope))},enumerable:!1,configurable:!0}),t}(),g=function(){function t(t,e,i,r,n,a){void 0===t&&(t=1),void 0===e&&(e=0),void 0===i&&(i=0),void 0===r&&(r=1),void 0===n&&(n=0),void 0===a&&(a=0),this.array=null,this.a=t,this.b=e,this.c=i,this.d=r,this.tx=n,this.ty=a}return t.prototype.fromArray=function(t){this.a=t[0],this.b=t[1],this.c=t[3],this.d=t[4],this.tx=t[2],this.ty=t[5]},t.prototype.set=function(t,e,i,r,n,a){return this.a=t,this.b=e,this.c=i,this.d=r,this.tx=n,this.ty=a,this},t.prototype.toArray=function(t,e){this.array||(this.array=new Float32Array(9));var i=e||this.array;return t?(i[0]=this.a,i[1]=this.b,i[2]=0,i[3]=this.c,i[4]=this.d,i[5]=0,i[6]=this.tx,i[7]=this.ty,i[8]=1):(i[0]=this.a,i[1]=this.c,i[2]=this.tx,i[3]=this.b,i[4]=this.d,i[5]=this.ty,i[6]=0,i[7]=0,i[8]=1),i},t.prototype.apply=function(t,e){e=e||new o;var i=t.x,r=t.y;return e.x=this.a*i+this.c*r+this.tx,e.y=this.b*i+this.d*r+this.ty,e},t.prototype.applyInverse=function(t,e){e=e||new o;var i=1/(this.a*this.d+this.c*-this.b),r=t.x,n=t.y;return e.x=this.d*i*r+-this.c*i*n+(this.ty*this.c-this.tx*this.d)*i,e.y=this.a*i*n+-this.b*i*r+(-this.ty*this.a+this.tx*this.b)*i,e},t.prototype.translate=function(t,e){return this.tx+=t,this.ty+=e,this},t.prototype.scale=function(t,e){return this.a*=t,this.d*=e,this.c*=t,this.b*=e,this.tx*=t,this.ty*=e,this},t.prototype.rotate=function(t){var e=Math.cos(t),i=Math.sin(t),r=this.a,n=this.c,a=this.tx;return this.a=r*e-this.b*i,this.b=r*i+this.b*e,this.c=n*e-this.d*i,this.d=n*i+this.d*e,this.tx=a*e-this.ty*i,this.ty=a*i+this.ty*e,this},t.prototype.append=function(t){var e=this.a,i=this.b,r=this.c,n=this.d;return this.a=t.a*e+t.b*r,this.b=t.a*i+t.b*n,this.c=t.c*e+t.d*r,this.d=t.c*i+t.d*n,this.tx=t.tx*e+t.ty*r+this.tx,this.ty=t.tx*i+t.ty*n+this.ty,this},t.prototype.setTransform=function(t,e,i,r,n,a,s,o,l){return this.a=Math.cos(s+l)*n,this.b=Math.sin(s+l)*n,this.c=-Math.sin(s-o)*a,this.d=Math.cos(s-o)*a,this.tx=t-(i*this.a+r*this.c),this.ty=e-(i*this.b+r*this.d),this},t.prototype.prepend=function(t){var e=this.tx;if(1!==t.a||0!==t.b||0!==t.c||1!==t.d){var i=this.a,r=this.c;this.a=i*t.a+this.b*t.c,this.b=i*t.b+this.b*t.d,this.c=r*t.a+this.d*t.c,this.d=r*t.b+this.d*t.d}return this.tx=e*t.a+this.ty*t.c+t.tx,this.ty=e*t.b+this.ty*t.d+t.ty,this},t.prototype.decompose=function(t){var e=this.a,i=this.b,r=this.c,a=this.d,s=t.pivot,o=-Math.atan2(-r,a),l=Math.atan2(i,e),h=Math.abs(o+l);return h<1e-5||Math.abs(n-h)<1e-5?(t.rotation=l,t.skew.x=t.skew.y=0):(t.rotation=0,t.skew.x=o,t.skew.y=l),t.scale.x=Math.sqrt(e*e+i*i),t.scale.y=Math.sqrt(r*r+a*a),t.position.x=this.tx+(s.x*e+s.y*r),t.position.y=this.ty+(s.x*i+s.y*a),t},t.prototype.invert=function(){var t=this.a,e=this.b,i=this.c,r=this.d,n=this.tx,a=t*r-e*i;return this.a=r/a,this.b=-e/a,this.c=-i/a,this.d=t/a,this.tx=(i*this.ty-r*n)/a,this.ty=-(t*this.ty-e*n)/a,this},t.prototype.identity=function(){return this.a=1,this.b=0,this.c=0,this.d=1,this.tx=0,this.ty=0,this},t.prototype.clone=function(){var e=new t;return e.a=this.a,e.b=this.b,e.c=this.c,e.d=this.d,e.tx=this.tx,e.ty=this.ty,e},t.prototype.copyTo=function(t){return t.a=this.a,t.b=this.b,t.c=this.c,t.d=this.d,t.tx=this.tx,t.ty=this.ty,t},t.prototype.copyFrom=function(t){return this.a=t.a,this.b=t.b,this.c=t.c,this.d=t.d,this.tx=t.tx,this.ty=t.ty,this},t.prototype.toString=function(){return"[@pixi/math:Matrix a="+this.a+" b="+this.b+" c="+this.c+" d="+this.d+" tx="+this.tx+" ty="+this.ty+"]"},Object.defineProperty(t,"IDENTITY",{get:function(){return new t},enumerable:!1,configurable:!0}),Object.defineProperty(t,"TEMP_MATRIX",{get:function(){return new t},enumerable:!1,configurable:!0}),t}(),m=[1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1],A=[0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1],v=[0,-1,-1,-1,0,1,1,1,0,1,1,1,0,-1,-1,-1],y=[1,1,0,-1,-1,-1,0,1,-1,-1,0,1,1,1,0,-1],_=[],b=[],x=Math.sign;function T(){for(var t=0;t<16;t++){var e=[];_.push(e);for(var i=0;i<16;i++)for(var r=x(m[t]*m[i]+v[t]*A[i]),n=x(A[t]*m[i]+y[t]*A[i]),a=x(m[t]*v[i]+v[t]*y[i]),s=x(A[t]*v[i]+y[t]*y[i]),o=0;o<16;o++)if(m[o]===r&&A[o]===n&&v[o]===a&&y[o]===s){e.push(o);break}}for(t=0;t<16;t++){var l=new g;l.set(m[t],A[t],v[t],y[t],0,0),b.push(l)}}T();var E={E:0,SE:1,S:2,SW:3,W:4,NW:5,N:6,NE:7,MIRROR_VERTICAL:8,MAIN_DIAGONAL:10,MIRROR_HORIZONTAL:12,REVERSE_DIAGONAL:14,uX:function(t){return m[t]},uY:function(t){return A[t]},vX:function(t){return v[t]},vY:function(t){return y[t]},inv:function(t){return 8&t?15&t:7&-t},add:function(t,e){return _[t][e]},sub:function(t,e){return _[t][E.inv(e)]},rotate180:function(t){return 4^t},isVertical:function(t){return 2==(3&t)},byDirection:function(t,e){return 2*Math.abs(t)<=Math.abs(e)?e>=0?E.S:E.N:2*Math.abs(e)<=Math.abs(t)?t>0?E.E:E.W:e>0?t>0?E.SE:E.SW:t>0?E.NE:E.NW},matrixAppendRotationInv:function(t,e,i,r){void 0===i&&(i=0),void 0===r&&(r=0);var n=b[E.inv(e)];n.tx=i,n.ty=r,t.append(n)}},S=function(){function t(){this.worldTransform=new g,this.localTransform=new g,this.position=new f(this.onChange,this,0,0),this.scale=new f(this.onChange,this,1,1),this.pivot=new f(this.onChange,this,0,0),this.skew=new f(this.updateSkew,this,0,0),this._rotation=0,this._cx=1,this._sx=0,this._cy=0,this._sy=1,this._localID=0,this._currentLocalID=0,this._worldID=0,this._parentID=0}return t.prototype.onChange=function(){this._localID++},t.prototype.updateSkew=function(){this._cx=Math.cos(this._rotation+this.skew.y),this._sx=Math.sin(this._rotation+this.skew.y),this._cy=-Math.sin(this._rotation-this.skew.x),this._sy=Math.cos(this._rotation-this.skew.x),this._localID++},t.prototype.toString=function(){return"[@pixi/math:Transform position=("+this.position.x+", "+this.position.y+") rotation="+this.rotation+" scale=("+this.scale.x+", "+this.scale.y+") skew=("+this.skew.x+", "+this.skew.y+") ]"},t.prototype.updateLocalTransform=function(){var t=this.localTransform;this._localID!==this._currentLocalID&&(t.a=this._cx*this.scale.x,t.b=this._sx*this.scale.x,t.c=this._cy*this.scale.y,t.d=this._sy*this.scale.y,t.tx=this.position.x-(this.pivot.x*t.a+this.pivot.y*t.c),t.ty=this.position.y-(this.pivot.x*t.b+this.pivot.y*t.d),this._currentLocalID=this._localID,this._parentID=-1)},t.prototype.updateTransform=function(t){var e=this.localTransform;if(this._localID!==this._currentLocalID&&(e.a=this._cx*this.scale.x,e.b=this._sx*this.scale.x,e.c=this._cy*this.scale.y,e.d=this._sy*this.scale.y,e.tx=this.position.x-(this.pivot.x*e.a+this.pivot.y*e.c),e.ty=this.position.y-(this.pivot.x*e.b+this.pivot.y*e.d),this._currentLocalID=this._localID,this._parentID=-1),this._parentID!==t._worldID){var i=t.worldTransform,r=this.worldTransform;r.a=e.a*i.a+e.b*i.c,r.b=e.a*i.b+e.b*i.d,r.c=e.c*i.a+e.d*i.c,r.d=e.c*i.b+e.d*i.d,r.tx=e.tx*i.a+e.ty*i.c+i.tx,r.ty=e.tx*i.b+e.ty*i.d+i.ty,this._parentID=t._worldID,this._worldID++}},t.prototype.setFromMatrix=function(t){t.decompose(this),this._localID++},Object.defineProperty(t.prototype,"rotation",{get:function(){return this._rotation},set:function(t){this._rotation!==t&&(this._rotation=t,this.updateSkew())},enumerable:!1,configurable:!0}),t.IDENTITY=new t,t}()},2365:(t,e,i)=>{"use strict";i.d(e,{Bq:()=>h,D8:()=>u,F_:()=>f,bd:()=>l,g:()=>p,js:()=>c});var r=i(2551),n=i(805),a=i(1947),s=function(t,e){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},s(t,e)};function o(t,e){function i(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}var l=function(t){function e(e,i,r,n){void 0===e&&(e=100),void 0===i&&(i=100),void 0===r&&(r=10),void 0===n&&(n=10);var a=t.call(this)||this;return a.segWidth=r,a.segHeight=n,a.width=e,a.height=i,a.build(),a}return o(e,t),e.prototype.build=function(){for(var t=this.segWidth*this.segHeight,e=[],i=[],r=[],n=this.segWidth-1,a=this.segHeight-1,s=this.width/n,o=this.height/a,l=0;l0){var p=o.x-t[u].x,d=o.y-t[u].y,f=Math.sqrt(p*p+d*d);o=t[u],s+=f/l}else s=u/(h-1);n[c]=s,n[c+1]=0,n[c+2]=s,n[c+3]=1}var g=0;for(u=0;u0?this.textureScale*this._width/2:this._width/2;r/=u,n/=u,r*=c,n*=c,a[h]=l.x+r,a[h+1]=l.y+n,a[h+2]=l.x-r,a[h+3]=l.y-n,i=l}this.buffers[0].update()}},e.prototype.update=function(){this.textureScale>0?this.build():this.updateVertices()},e}(r.u),u=function(t){function e(e,i,a){void 0===a&&(a=0);var s=this,o=new h(e.height,i,a),l=new r.PX(e);return a>0&&(e.baseTexture.wrapMode=n.uR.REPEAT),(s=t.call(this,o,l)||this).autoUpdate=!0,s}return o(e,t),e.prototype._render=function(e){var i=this.geometry;(this.autoUpdate||i._width!==this.shader.texture.height)&&(i._width=this.shader.texture.height,i.update()),t.prototype._render.call(this,e)},e}(r.e),c=function(t){function e(e,i,n){var s=this,o=new l(e.width,e.height,i,n),h=new r.PX(a.gP.WHITE);return(s=t.call(this,o,h)||this).texture=e,s.autoResize=!0,s}return o(e,t),e.prototype.textureUpdated=function(){this._textureID=this.shader.texture._updateID;var t=this.geometry,e=this.shader.texture,i=e.width,r=e.height;!this.autoResize||t.width===i&&t.height===r||(t.width=this.shader.texture.width,t.height=this.shader.texture.height,t.build())},Object.defineProperty(e.prototype,"texture",{get:function(){return this.shader.texture},set:function(t){this.shader.texture!==t&&(this.shader.texture=t,this._textureID=-1,t.baseTexture.valid?this.textureUpdated():t.once("update",this.textureUpdated,this))},enumerable:!1,configurable:!0}),e.prototype._render=function(e){this._textureID!==this.shader.texture._updateID&&this.textureUpdated(),t.prototype._render.call(this,e)},e.prototype.destroy=function(e){this.shader.texture.off("update",this.textureUpdated,this),t.prototype.destroy.call(this,e)},e}(r.e),p=function(t){function e(e,i,n,s,o){void 0===e&&(e=a.gP.EMPTY);var l=this,h=new r.u(i,n,s);h.getBuffer("aVertexPosition").static=!1;var u=new r.PX(e);return(l=t.call(this,h,u,null,o)||this).autoUpdate=!0,l}return o(e,t),Object.defineProperty(e.prototype,"vertices",{get:function(){return this.geometry.getBuffer("aVertexPosition").data},set:function(t){this.geometry.getBuffer("aVertexPosition").data=t},enumerable:!1,configurable:!0}),e.prototype._render=function(e){this.autoUpdate&&this.geometry.getBuffer("aVertexPosition").update(),t.prototype._render.call(this,e)},e}(r.e),d=10,f=function(t){function e(e,i,r,n,s){void 0===i&&(i=d),void 0===r&&(r=d),void 0===n&&(n=d),void 0===s&&(s=d);var o=t.call(this,a.gP.WHITE,4,4)||this;return o._origWidth=e.orig.width,o._origHeight=e.orig.height,o._width=o._origWidth,o._height=o._origHeight,o._leftWidth=i,o._rightWidth=n,o._topHeight=r,o._bottomHeight=s,o.texture=e,o}return o(e,t),e.prototype.textureUpdated=function(){this._textureID=this.shader.texture._updateID,this._refresh()},Object.defineProperty(e.prototype,"vertices",{get:function(){return this.geometry.getBuffer("aVertexPosition").data},set:function(t){this.geometry.getBuffer("aVertexPosition").data=t},enumerable:!1,configurable:!0}),e.prototype.updateHorizontalVertices=function(){var t=this.vertices,e=this._getMinScale();t[9]=t[11]=t[13]=t[15]=this._topHeight*e,t[17]=t[19]=t[21]=t[23]=this._height-this._bottomHeight*e,t[25]=t[27]=t[29]=t[31]=this._height},e.prototype.updateVerticalVertices=function(){var t=this.vertices,e=this._getMinScale();t[2]=t[10]=t[18]=t[26]=this._leftWidth*e,t[4]=t[12]=t[20]=t[28]=this._width-this._rightWidth*e,t[6]=t[14]=t[22]=t[30]=this._width},e.prototype._getMinScale=function(){var t=this._leftWidth+this._rightWidth,e=this._width>t?1:this._width/t,i=this._topHeight+this._bottomHeight,r=this._height>i?1:this._height/i;return Math.min(e,r)},Object.defineProperty(e.prototype,"width",{get:function(){return this._width},set:function(t){this._width=t,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this._height},set:function(t){this._height=t,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"leftWidth",{get:function(){return this._leftWidth},set:function(t){this._leftWidth=t,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rightWidth",{get:function(){return this._rightWidth},set:function(t){this._rightWidth=t,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"topHeight",{get:function(){return this._topHeight},set:function(t){this._topHeight=t,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bottomHeight",{get:function(){return this._bottomHeight},set:function(t){this._bottomHeight=t,this._refresh()},enumerable:!1,configurable:!0}),e.prototype._refresh=function(){var t=this.texture,e=this.geometry.buffers[1].data;this._origWidth=t.orig.width,this._origHeight=t.orig.height;var i=1/this._origWidth,r=1/this._origHeight;e[0]=e[8]=e[16]=e[24]=0,e[1]=e[3]=e[5]=e[7]=0,e[6]=e[14]=e[22]=e[30]=1,e[25]=e[27]=e[29]=e[31]=1,e[2]=e[10]=e[18]=e[26]=i*this._leftWidth,e[4]=e[12]=e[20]=e[28]=1-i*this._rightWidth,e[9]=e[11]=e[13]=e[15]=r*this._topHeight,e[17]=e[19]=e[21]=e[23]=1-r*this._bottomHeight,this.updateHorizontalVertices(),this.updateVerticalVertices(),this.geometry.buffers[0].update(),this.geometry.buffers[1].update()},e}(c)},2551:(t,e,i)=>{"use strict";i.d(e,{PX:()=>A,e:()=>f,iM:()=>c,u:()=>v});var r=i(1947),n=i(7239),a=i(805),s=i(903),o=i(9615),l=i(3785),h=function(t,e){return h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},h(t,e)};function u(t,e){function i(){this.constructor=t}h(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}var c=function(){function t(t,e){this.uvBuffer=t,this.uvMatrix=e,this.data=null,this._bufferUpdateId=-1,this._textureUpdateId=-1,this._updateID=0}return t.prototype.update=function(t){if(t||this._bufferUpdateId!==this.uvBuffer._updateID||this._textureUpdateId!==this.uvMatrix._updateID){this._bufferUpdateId=this.uvBuffer._updateID,this._textureUpdateId=this.uvMatrix._updateID;var e=this.uvBuffer.data;this.data&&this.data.length===e.length||(this.data=new Float32Array(e.length)),this.uvMatrix.multiplyUvs(e,this.data),this._updateID++}},t}(),p=new n.bR,d=new n.tS,f=function(t){function e(e,i,n,s){void 0===s&&(s=a._4.TRIANGLES);var l=t.call(this)||this;return l.geometry=e,l.shader=i,l.state=n||r.Uw.for2d(),l.drawMode=s,l.start=0,l.size=0,l.uvs=null,l.indices=null,l.vertexData=new Float32Array(1),l.vertexDirty=-1,l._transformID=-1,l._roundPixels=o.W0.ROUND_PIXELS,l.batchUvs=null,l}return u(e,t),Object.defineProperty(e.prototype,"geometry",{get:function(){return this._geometry},set:function(t){this._geometry!==t&&(this._geometry&&(this._geometry.refCount--,0===this._geometry.refCount&&this._geometry.dispose()),this._geometry=t,this._geometry&&this._geometry.refCount++,this.vertexDirty=-1)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"uvBuffer",{get:function(){return this.geometry.buffers[1]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"verticesBuffer",{get:function(){return this.geometry.buffers[0]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"material",{get:function(){return this.shader},set:function(t){this.shader=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"blendMode",{get:function(){return this.state.blendMode},set:function(t){this.state.blendMode=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"roundPixels",{get:function(){return this._roundPixels},set:function(t){this._roundPixels!==t&&(this._transformID=-1),this._roundPixels=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tint",{get:function(){return"tint"in this.shader?this.shader.tint:null},set:function(t){this.shader.tint=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"texture",{get:function(){return"texture"in this.shader?this.shader.texture:null},set:function(t){this.shader.texture=t},enumerable:!1,configurable:!0}),e.prototype._render=function(t){var i=this.geometry.buffers[0].data;this.shader.batchable&&this.drawMode===a._4.TRIANGLES&&i.length<2*e.BATCHABLE_SIZE?this._renderToBatch(t):this._renderDefault(t)},e.prototype._renderDefault=function(t){var e=this.shader;e.alpha=this.worldAlpha,e.update&&e.update(),t.batch.flush(),e.uniforms.translationMatrix=this.transform.worldTransform.toArray(!0),t.shader.bind(e),t.state.set(this.state),t.geometry.bind(this.geometry,e),t.geometry.draw(this.drawMode,this.size,this.start,this.geometry.instanceCount)},e.prototype._renderToBatch=function(t){var e=this.geometry,i=this.shader;i.uvMatrix&&(i.uvMatrix.update(),this.calculateUvs()),this.calculateVertices(),this.indices=e.indexBuffer.data,this._tintRGB=i._tintRGB,this._texture=i.texture;var r=this.material.pluginName;t.batch.setObjectRenderer(t.plugins[r]),t.plugins[r].render(this)},e.prototype.calculateVertices=function(){var t=this.geometry.buffers[0],e=t.data,i=t._updateID;if(i!==this.vertexDirty||this._transformID!==this.transform._worldID){this._transformID=this.transform._worldID,this.vertexData.length!==e.length&&(this.vertexData=new Float32Array(e.length));for(var r=this.transform.worldTransform,n=r.a,a=r.b,s=r.c,l=r.d,h=r.tx,u=r.ty,c=this.vertexData,p=0;p>16)+(65280&t)+((255&t)<<16),this._colorDirty=!0)},enumerable:!1,configurable:!0}),e.prototype.update=function(){if(this._colorDirty){this._colorDirty=!1;var t=this.texture.baseTexture;(0,l.premultiplyTintToRgba)(this._tint,this._alpha,this.uniforms.uColor,t.alphaMode)}this.uvMatrix.update()&&(this.uniforms.uTextureMatrix=this.uvMatrix.mapCoord)},e}(r.Mt),v=function(t){function e(e,i,n){var s=t.call(this)||this,o=new r.hp(e),l=new r.hp(i,!0),h=new r.hp(n,!0,!0);return s.addAttribute("aVertexPosition",o,2,!1,a.QE.FLOAT).addAttribute("aTextureCoord",l,2,!1,a.QE.FLOAT).addIndex(h),s._updateId=-1,s}return u(e,t),Object.defineProperty(e.prototype,"vertexDirtyId",{get:function(){return this.buffers[0]._updateID},enumerable:!1,configurable:!0}),e}(r.V2)},1571:(t,e,i)=>{"use strict";i.d(e,{e:()=>f,w:()=>u});var r=i(805),n=i(903),a=i(3785),s=i(1947),o=i(7239),l=function(t,e){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},l(t,e)};function h(t,e){function i(){this.constructor=t}l(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}var u=function(t){function e(e,i,n,a){void 0===e&&(e=1500),void 0===n&&(n=16384),void 0===a&&(a=!1);var s=t.call(this)||this,o=16384;return n>o&&(n=o),s._properties=[!1,!0,!1,!1,!1],s._maxSize=e,s._batchSize=n,s._buffers=null,s._bufferUpdateIDs=[],s._updateID=0,s.interactiveChildren=!1,s.blendMode=r.B9.NORMAL,s.autoResize=a,s.roundPixels=!0,s.baseTexture=null,s.setProperties(i),s._tint=0,s.tintRgb=new Float32Array(4),s.tint=16777215,s}return h(e,t),e.prototype.setProperties=function(t){t&&(this._properties[0]="vertices"in t||"scale"in t?!!t.vertices||!!t.scale:this._properties[0],this._properties[1]="position"in t?!!t.position:this._properties[1],this._properties[2]="rotation"in t?!!t.rotation:this._properties[2],this._properties[3]="uvs"in t?!!t.uvs:this._properties[3],this._properties[4]="tint"in t||"alpha"in t?!!t.tint||!!t.alpha:this._properties[4])},e.prototype.updateTransform=function(){this.displayObjectUpdateTransform()},Object.defineProperty(e.prototype,"tint",{get:function(){return this._tint},set:function(t){this._tint=t,(0,a.hex2rgb)(t,this.tintRgb)},enumerable:!1,configurable:!0}),e.prototype.render=function(t){var e=this;this.visible&&!(this.worldAlpha<=0)&&this.children.length&&this.renderable&&(this.baseTexture||(this.baseTexture=this.children[0]._texture.baseTexture,this.baseTexture.valid||this.baseTexture.once("update",(function(){return e.onChildrenChange(0)}))),t.batch.setObjectRenderer(t.plugins.particle),t.plugins.particle.render(this))},e.prototype.onChildrenChange=function(t){for(var e=Math.floor(t/this._batchSize);this._bufferUpdateIDs.lengthi&&!t.autoResize&&(s=i);var o=t._buffers;o||(o=t._buffers=this.generateBuffers(t));var l=e[0]._texture.baseTexture,h=l.alphaMode>0;this.state.blendMode=(0,a.correctBlendMode)(t.blendMode,h),n.state.set(this.state);var u=n.gl,c=t.worldTransform.copyTo(this.tempMatrix);c.prepend(n.globalUniforms.uniforms.projectionMatrix),this.shader.uniforms.translationMatrix=c.toArray(!0),this.shader.uniforms.uColor=(0,a.premultiplyRgba)(t.tintRgb,t.worldAlpha,this.shader.uniforms.uColor,h),this.shader.uniforms.uSampler=l,this.renderer.shader.bind(this.shader);for(var p=!1,d=0,f=0;dr&&(g=r),f>=o.length&&o.push(this._generateOneMoreBuffer(t));var m=o[f];m.uploadDynamic(e,d,g);var A=t._bufferUpdateIDs[f]||0;(p=p||m._updateID0,u=l.alpha,c=u<1&&h?(0,a.premultiplyTint)(l._tintRGB,u):l._tintRGB+(255*u<<24);r[s]=c,r[s+n]=c,r[s+2*n]=c,r[s+3*n]=c,s+=4*n}},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.shader&&(this.shader.destroy(),this.shader=null),this.tempMatrix=null},e.extension={name:"particle",type:s.Ag.RendererPlugin},e}(s.Pt)},1605:(t,e,i)=>{"use strict";i.d(e,{It:()=>p,Ls:()=>_,oP:()=>S,p8:()=>E});var r=i(9615),n=i(1947),a=i(5871),s=i(4775),o=i(903),l=i(8723),h=i(3785);r.W0.UPLOADS_PER_FRAME=4;var u=function(t,e){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},u(t,e)};function c(t,e){function i(){this.constructor=t}u(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}var p=function(){function t(t){this.maxItemsPerFrame=t,this.itemsLeft=0}return t.prototype.beginFrame=function(){this.itemsLeft=this.maxItemsPerFrame},t.prototype.allowedToUpload=function(){return this.itemsLeft-- >0},t}();function d(t,e){var i=!1;if(t&&t._textures&&t._textures.length)for(var r=0;r=0;e--)this.add(t.children[e]);return this},t.prototype.destroy=function(){this.ticking&&s.Rv.system.remove(this.tick,this),this.ticking=!1,this.addHooks=null,this.uploadHooks=null,this.renderer=null,this.completes=null,this.queue=null,this.limiter=null,this.uploadHookHelper=null},t}();function b(t,e){return e instanceof n.t5&&(e._glTextures[t.CONTEXT_UID]||t.texture.bind(e),!0)}function x(t,e){if(!(e instanceof a.A1))return!1;var i=e.geometry;e.finishPoly(),i.updateBatches();for(var r=i.batches,n=0;n{"use strict";i.d(e,{b:()=>r});var r=function(){function t(t){this.items=[],this._name=t,this._aliasCount=0}return t.prototype.emit=function(t,e,i,r,n,a,s,o){if(arguments.length>8)throw new Error("max arguments reached");var l=this,h=l.name,u=l.items;this._aliasCount++;for(var c=0,p=u.length;c0&&this.items.length>1&&(this._aliasCount=0,this.items=this.items.slice(0))},t.prototype.add=function(t){return t[this._name]&&(this.ensureNonAliasedItems(),this.remove(t),this.items.push(t)),this},t.prototype.remove=function(t){var e=this.items.indexOf(t);return-1!==e&&(this.ensureNonAliasedItems(),this.items.splice(e,1)),this},t.prototype.contains=function(t){return-1!==this.items.indexOf(t)},t.prototype.removeAll=function(){return this.ensureNonAliasedItems(),this.items.length=0,this},t.prototype.destroy=function(){this.removeAll(),this.items=null,this._name=null},Object.defineProperty(t.prototype,"empty",{get:function(){return 0===this.items.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),t}();Object.defineProperties(r.prototype,{dispatch:{value:r.prototype.emit},run:{value:r.prototype.emit}})},9615:(t,e,i)=>{"use strict";i.d(e,{Fr:()=>T,OF:()=>n,W0:()=>w});var r=i(805),n={createCanvas:function(t,e){var i=document.createElement("canvas");return i.width=t,i.height=e,i},getWebGLRenderingContext:function(){return WebGLRenderingContext},getNavigator:function(){return navigator},getBaseUrl:function(){var t;return null!==(t=document.baseURI)&&void 0!==t?t:window.location.href},fetch:function(t,e){return fetch(t,e)}},a=/iPhone/i,s=/iPod/i,o=/iPad/i,l=/\biOS-universal(?:.+)Mac\b/i,h=/\bAndroid(?:.+)Mobile\b/i,u=/Android/i,c=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,p=/Silk/i,d=/Windows Phone/i,f=/\bWindows(?:.+)ARM\b/i,g=/BlackBerry/i,m=/BB10/i,A=/Opera Mini/i,v=/\b(CriOS|Chrome)(?:.+)Mobile/i,y=/Mobile(?:.+)Firefox\b/i,_=function(t){return void 0!==t&&"MacIntel"===t.platform&&"number"==typeof t.maxTouchPoints&&t.maxTouchPoints>1&&"undefined"==typeof MSStream};function b(t){return function(e){return e.test(t)}}function x(t){var e={userAgent:"",platform:"",maxTouchPoints:0};t||"undefined"==typeof navigator?"string"==typeof t?e.userAgent=t:t&&t.userAgent&&(e={userAgent:t.userAgent,platform:t.platform,maxTouchPoints:t.maxTouchPoints||0}):e={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0};var i=e.userAgent,r=i.split("[FBAN");void 0!==r[1]&&(i=r[0]),void 0!==(r=i.split("Twitter"))[1]&&(i=r[0]);var n=b(i),x={apple:{phone:n(a)&&!n(d),ipod:n(s),tablet:!n(a)&&(n(o)||_(e))&&!n(d),universal:n(l),device:(n(a)||n(s)||n(o)||n(l)||_(e))&&!n(d)},amazon:{phone:n(c),tablet:!n(c)&&n(p),device:n(c)||n(p)},android:{phone:!n(d)&&n(c)||!n(d)&&n(h),tablet:!n(d)&&!n(c)&&!n(h)&&(n(p)||n(u)),device:!n(d)&&(n(c)||n(p)||n(h)||n(u))||n(/\bokhttp\b/i)},windows:{phone:n(d),tablet:n(f),device:n(d)||n(f)},other:{blackberry:n(g),blackberry10:n(m),opera:n(A),firefox:n(y),chrome:n(v),device:n(g)||n(m)||n(A)||n(y)||n(v)},any:!1,phone:!1,tablet:!1};return x.any=x.apple.device||x.android.device||x.windows.device||x.other.device,x.phone=x.apple.phone||x.android.phone||x.windows.phone,x.tablet=x.apple.tablet||x.android.tablet||x.windows.tablet,x}var T=x(globalThis.navigator);function E(){return!T.apple.device}function S(t){var e=!0;if(T.tablet||T.phone){var i;if(T.apple.device)if(i=navigator.userAgent.match(/OS (\d+)_(\d+)?/))parseInt(i[1],10)<11&&(e=!1);if(T.android.device)if(i=navigator.userAgent.match(/Android\s([0-9.]*)/))parseInt(i[1],10)<7&&(e=!1)}return e?t:4}var w={ADAPTER:n,MIPMAP_TEXTURES:r.E8.POW2,ANISOTROPIC_LEVEL:0,RESOLUTION:1,FILTER_RESOLUTION:1,FILTER_MULTISAMPLE:r.he.NONE,SPRITE_MAX_TEXTURES:S(32),SPRITE_BATCH_SIZE:4096,RENDER_OPTIONS:{view:null,width:800,height:600,autoDensity:!1,backgroundColor:0,backgroundAlpha:1,useContextAlpha:!0,clearBeforeRender:!0,antialias:!1,preserveDrawingBuffer:!1},GC_MODE:r.OS.AUTO,GC_MAX_IDLE:3600,GC_MAX_CHECK_COUNT:600,WRAP_MODE:r.uR.CLAMP,SCALE_MODE:r.M6.LINEAR,PRECISION_VERTEX:r.Pk.HIGH,PRECISION_FRAGMENT:T.apple.device?r.Pk.HIGH:r.Pk.MEDIUM,CAN_UPLOAD_SAME_BUFFER:E(),CREATE_IMAGE_BITMAP:!1,ROUND_PIXELS:!1}},3481:(t,e,i)=>{"use strict";i.d(e,{_:()=>v,t:()=>c});var r=i(1947),n=i(7239),a=i(511),s=i(805),o=i(3785),l=function(t,e){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},l(t,e)};function h(t,e){function i(){this.constructor=t}l(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}var u=new n.bR,c=function(t){function e(e,i,a){void 0===i&&(i=100),void 0===a&&(a=100);var s=t.call(this,e)||this;return s.tileTransform=new n.dL,s._width=i,s._height=a,s.uvMatrix=s.texture.uvMatrix||new r.NW(e),s.pluginName="tilingSprite",s.uvRespectAnchor=!1,s}return h(e,t),Object.defineProperty(e.prototype,"clampMargin",{get:function(){return this.uvMatrix.clampMargin},set:function(t){this.uvMatrix.clampMargin=t,this.uvMatrix.update(!0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tileScale",{get:function(){return this.tileTransform.scale},set:function(t){this.tileTransform.scale.copyFrom(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tilePosition",{get:function(){return this.tileTransform.position},set:function(t){this.tileTransform.position.copyFrom(t)},enumerable:!1,configurable:!0}),e.prototype._onTextureUpdate=function(){this.uvMatrix&&(this.uvMatrix.texture=this._texture),this._cachedTint=16777215},e.prototype._render=function(t){var e=this._texture;e&&e.valid&&(this.tileTransform.updateLocalTransform(),this.uvMatrix.update(),t.batch.setObjectRenderer(t.plugins[this.pluginName]),t.plugins[this.pluginName].render(this))},e.prototype._calculateBounds=function(){var t=this._width*-this._anchor._x,e=this._height*-this._anchor._y,i=this._width*(1-this._anchor._x),r=this._height*(1-this._anchor._y);this._bounds.addFrame(this.transform,t,e,i,r)},e.prototype.getLocalBounds=function(e){return 0===this.children.length?(this._bounds.minX=this._width*-this._anchor._x,this._bounds.minY=this._height*-this._anchor._y,this._bounds.maxX=this._width*(1-this._anchor._x),this._bounds.maxY=this._height*(1-this._anchor._y),e||(this._localBoundsRect||(this._localBoundsRect=new n.M_),e=this._localBoundsRect),this._bounds.getRectangle(e)):t.prototype.getLocalBounds.call(this,e)},e.prototype.containsPoint=function(t){this.worldTransform.applyInverse(t,u);var e=this._width,i=this._height,r=-e*this.anchor._x;if(u.x>=r&&u.x=n&&u.y1?r.Mt.from(g,m,e):r.Mt.from(d,f,e)},e.prototype.render=function(t){var e=this.renderer,i=this.quad,r=i.vertices;r[0]=r[6]=t._width*-t.anchor.x,r[1]=r[3]=t._height*-t.anchor.y,r[2]=r[4]=t._width*(1-t.anchor.x),r[5]=r[7]=t._height*(1-t.anchor.y);var n=t.uvRespectAnchor?t.anchor.x:0,a=t.uvRespectAnchor?t.anchor.y:0;(r=i.uvs)[0]=r[6]=-n,r[1]=r[3]=-a,r[2]=r[4]=1-n,r[5]=r[7]=1-a,i.invalidate();var l=t._texture,h=l.baseTexture,u=h.alphaMode>0,c=t.tileTransform.localTransform,p=t.uvMatrix,d=h.isPowerOfTwo&&l.frame.width===h.width&&l.frame.height===h.height;d&&(h._glTextures[e.CONTEXT_UID]?d=h.wrapMode!==s.uR.CLAMP:h.wrapMode===s.uR.CLAMP&&(h.wrapMode=s.uR.REPEAT));var f=d?this.simpleShader:this.shader,g=l.width,m=l.height,v=t._width,y=t._height;A.set(c.a*g/v,c.b*g/y,c.c*m/v,c.d*m/y,c.tx/v,c.ty/y),A.invert(),d?A.prepend(p.mapCoord):(f.uniforms.uMapCoord=p.mapCoord.toArray(!0),f.uniforms.uClampFrame=p.uClampFrame,f.uniforms.uClampOffset=p.uClampOffset),f.uniforms.uTransform=A.toArray(!0),f.uniforms.uColor=(0,o.premultiplyTintToRgba)(t.tint,t.worldAlpha,f.uniforms.uColor,u),f.uniforms.translationMatrix=t.transform.worldTransform.toArray(!0),f.uniforms.uSampler=l,e.shader.bind(f),e.geometry.bind(i),this.state.blendMode=(0,o.correctBlendMode)(t.blendMode,u),e.state.set(this.state),e.geometry.draw(this.renderer.gl.TRIANGLES,6,0)},e.extension={name:"tilingSprite",type:r.Ag.RendererPlugin},e}(r.Pt)},511:(t,e,i)=>{"use strict";i.d(e,{k:()=>d});var r=i(805),n=i(1947),a=i(903),s=i(7239),o=i(9615),l=i(3785),h=function(t,e){return h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},h(t,e)};function u(t,e){function i(){this.constructor=t}h(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}var c=new s.bR,p=new Uint16Array([0,1,2,0,2,3]),d=function(t){function e(e){var i=t.call(this)||this;return i._anchor=new s.oA(i._onAnchorUpdate,i,e?e.defaultAnchor.x:0,e?e.defaultAnchor.y:0),i._texture=null,i._width=0,i._height=0,i._tint=null,i._tintRGB=null,i.tint=16777215,i.blendMode=r.B9.NORMAL,i._cachedTint=16777215,i.uvs=null,i.texture=e||n.gP.EMPTY,i.vertexData=new Float32Array(8),i.vertexTrimmedData=null,i._transformID=-1,i._textureID=-1,i._transformTrimmedID=-1,i._textureTrimmedID=-1,i.indices=p,i.pluginName="batch",i.isSprite=!0,i._roundPixels=o.W0.ROUND_PIXELS,i}return u(e,t),e.prototype._onTextureUpdate=function(){this._textureID=-1,this._textureTrimmedID=-1,this._cachedTint=16777215,this._width&&(this.scale.x=(0,l.sign)(this.scale.x)*this._width/this._texture.orig.width),this._height&&(this.scale.y=(0,l.sign)(this.scale.y)*this._height/this._texture.orig.height)},e.prototype._onAnchorUpdate=function(){this._transformID=-1,this._transformTrimmedID=-1},e.prototype.calculateVertices=function(){var t=this._texture;if(this._transformID!==this.transform._worldID||this._textureID!==t._updateID){this._textureID!==t._updateID&&(this.uvs=this._texture._uvs.uvsFloat32),this._transformID=this.transform._worldID,this._textureID=t._updateID;var e=this.transform.worldTransform,i=e.a,r=e.b,n=e.c,a=e.d,s=e.tx,l=e.ty,h=this.vertexData,u=t.trim,c=t.orig,p=this._anchor,d=0,f=0,g=0,m=0;if(u?(d=(f=u.x-p._x*c.width)+u.width,g=(m=u.y-p._y*c.height)+u.height):(d=(f=-p._x*c.width)+c.width,g=(m=-p._y*c.height)+c.height),h[0]=i*f+n*m+s,h[1]=a*m+r*f+l,h[2]=i*d+n*m+s,h[3]=a*m+r*d+l,h[4]=i*d+n*g+s,h[5]=a*g+r*d+l,h[6]=i*f+n*g+s,h[7]=a*g+r*f+l,this._roundPixels)for(var A=o.W0.RESOLUTION,v=0;v=r&&c.x=n&&c.y>16)+(65280&t)+((255&t)<<16)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"texture",{get:function(){return this._texture},set:function(t){this._texture!==t&&(this._texture&&this._texture.off("update",this._onTextureUpdate,this),this._texture=t||n.gP.EMPTY,this._cachedTint=16777215,this._textureID=-1,this._textureTrimmedID=-1,t&&(t.baseTexture.valid?this._onTextureUpdate():t.once("update",this._onTextureUpdate,this)))},enumerable:!1,configurable:!0}),e}(a.mc)},8723:(t,e,i)=>{"use strict";i.d(e,{EY:()=>b,T:()=>r,Z1:()=>y,xJ:()=>d});var r,n=i(511),a=i(1947),s=i(9615),o=i(7239),l=i(3785),h=function(t,e){return h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},h(t,e)};function u(t,e){function i(){this.constructor=t}h(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}(function(t){t[t.LINEAR_VERTICAL=0]="LINEAR_VERTICAL",t[t.LINEAR_HORIZONTAL=1]="LINEAR_HORIZONTAL"})(r||(r={}));var c={align:"left",breakWords:!1,dropShadow:!1,dropShadowAlpha:1,dropShadowAngle:Math.PI/6,dropShadowBlur:0,dropShadowColor:"black",dropShadowDistance:5,fill:"black",fillGradientType:r.LINEAR_VERTICAL,fillGradientStops:[],fontFamily:"Arial",fontSize:26,fontStyle:"normal",fontVariant:"normal",fontWeight:"normal",letterSpacing:0,lineHeight:0,lineJoin:"miter",miterLimit:10,padding:0,stroke:"black",strokeThickness:0,textBaseline:"alphabetic",trim:!1,whiteSpace:"pre",wordWrap:!1,wordWrapWidth:100,leading:0},p=["serif","sans-serif","monospace","cursive","fantasy","system-ui"],d=function(){function t(t){this.styleID=0,this.reset(),A(this,t,t)}return t.prototype.clone=function(){var e={};return A(e,this,c),new t(e)},t.prototype.reset=function(){A(this,c,c)},Object.defineProperty(t.prototype,"align",{get:function(){return this._align},set:function(t){this._align!==t&&(this._align=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"breakWords",{get:function(){return this._breakWords},set:function(t){this._breakWords!==t&&(this._breakWords=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dropShadow",{get:function(){return this._dropShadow},set:function(t){this._dropShadow!==t&&(this._dropShadow=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dropShadowAlpha",{get:function(){return this._dropShadowAlpha},set:function(t){this._dropShadowAlpha!==t&&(this._dropShadowAlpha=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dropShadowAngle",{get:function(){return this._dropShadowAngle},set:function(t){this._dropShadowAngle!==t&&(this._dropShadowAngle=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dropShadowBlur",{get:function(){return this._dropShadowBlur},set:function(t){this._dropShadowBlur!==t&&(this._dropShadowBlur=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dropShadowColor",{get:function(){return this._dropShadowColor},set:function(t){var e=g(t);this._dropShadowColor!==e&&(this._dropShadowColor=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dropShadowDistance",{get:function(){return this._dropShadowDistance},set:function(t){this._dropShadowDistance!==t&&(this._dropShadowDistance=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fill",{get:function(){return this._fill},set:function(t){var e=g(t);this._fill!==e&&(this._fill=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fillGradientType",{get:function(){return this._fillGradientType},set:function(t){this._fillGradientType!==t&&(this._fillGradientType=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fillGradientStops",{get:function(){return this._fillGradientStops},set:function(t){m(this._fillGradientStops,t)||(this._fillGradientStops=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fontFamily",{get:function(){return this._fontFamily},set:function(t){this.fontFamily!==t&&(this._fontFamily=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fontSize",{get:function(){return this._fontSize},set:function(t){this._fontSize!==t&&(this._fontSize=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fontStyle",{get:function(){return this._fontStyle},set:function(t){this._fontStyle!==t&&(this._fontStyle=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fontVariant",{get:function(){return this._fontVariant},set:function(t){this._fontVariant!==t&&(this._fontVariant=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fontWeight",{get:function(){return this._fontWeight},set:function(t){this._fontWeight!==t&&(this._fontWeight=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"letterSpacing",{get:function(){return this._letterSpacing},set:function(t){this._letterSpacing!==t&&(this._letterSpacing=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lineHeight",{get:function(){return this._lineHeight},set:function(t){this._lineHeight!==t&&(this._lineHeight=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"leading",{get:function(){return this._leading},set:function(t){this._leading!==t&&(this._leading=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lineJoin",{get:function(){return this._lineJoin},set:function(t){this._lineJoin!==t&&(this._lineJoin=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"miterLimit",{get:function(){return this._miterLimit},set:function(t){this._miterLimit!==t&&(this._miterLimit=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"padding",{get:function(){return this._padding},set:function(t){this._padding!==t&&(this._padding=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"stroke",{get:function(){return this._stroke},set:function(t){var e=g(t);this._stroke!==e&&(this._stroke=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"strokeThickness",{get:function(){return this._strokeThickness},set:function(t){this._strokeThickness!==t&&(this._strokeThickness=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"textBaseline",{get:function(){return this._textBaseline},set:function(t){this._textBaseline!==t&&(this._textBaseline=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"trim",{get:function(){return this._trim},set:function(t){this._trim!==t&&(this._trim=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"whiteSpace",{get:function(){return this._whiteSpace},set:function(t){this._whiteSpace!==t&&(this._whiteSpace=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"wordWrap",{get:function(){return this._wordWrap},set:function(t){this._wordWrap!==t&&(this._wordWrap=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"wordWrapWidth",{get:function(){return this._wordWrapWidth},set:function(t){this._wordWrapWidth!==t&&(this._wordWrapWidth=t,this.styleID++)},enumerable:!1,configurable:!0}),t.prototype.toFontString=function(){var t="number"==typeof this.fontSize?this.fontSize+"px":this.fontSize,e=this.fontFamily;Array.isArray(this.fontFamily)||(e=this.fontFamily.split(","));for(var i=e.length-1;i>=0;i--){var r=e[i].trim();!/([\"\'])[^\'\"]+\1/.test(r)&&p.indexOf(r)<0&&(r='"'+r+'"'),e[i]=r}return this.fontStyle+" "+this.fontVariant+" "+this.fontWeight+" "+t+" "+e.join(",")},t}();function f(t){return"number"==typeof t?(0,l.hex2string)(t):("string"==typeof t&&0===t.indexOf("0x")&&(t=t.replace("0x","#")),t)}function g(t){if(Array.isArray(t)){for(var e=0;ef)if(""!==s&&(o+=t.addLine(s),s="",a=0),t.canBreakWords(A,i.breakWords))for(var x=t.wordWrapSplit(A),T=0;Tf&&(o+=t.addLine(s),d=!1,s="",a=0),s+=E,a+=I}else{s.length>0&&(o+=t.addLine(s),s="",a=0);var R=m===g.length-1;o+=t.addLine(A,!R),d=!1,s="",a=0}else b+a>f&&(d=!1,o+=t.addLine(s),s="",a=0),(s.length>0||!t.isBreakingSpace(A)||d)&&(s+=A,a+=b)}return o+=t.addLine(s,!1)},t.addLine=function(e,i){return void 0===i&&(i=!0),e=t.trimRight(e),e=i?e+"\n":e},t.getFromCache=function(t,e,i,r){var n=i[t];if("number"!=typeof n){var a=t.length*e;n=r.measureText(t).width+a,i[t]=n}return n},t.collapseSpaces=function(t){return"normal"===t||"pre-line"===t},t.collapseNewlines=function(t){return"normal"===t},t.trimRight=function(e){if("string"!=typeof e)return"";for(var i=e.length-1;i>=0;i--){var r=e[i];if(!t.isBreakingSpace(r))break;e=e.slice(0,-1)}return e},t.isNewline=function(e){return"string"==typeof e&&t._newlines.indexOf(e.charCodeAt(0))>=0},t.isBreakingSpace=function(e,i){return"string"==typeof e&&t._breakingSpaces.indexOf(e.charCodeAt(0))>=0},t.tokenize=function(e){var i=[],r="";if("string"!=typeof e)return i;for(var n=0;no;--p){for(g=0;g0&&g>m&&(A=(m+g)/2);var v=m+f,y=i.lineHeight*(d+1),_=v;d+1{"use strict";i.d(e,{Rv:()=>o,dQ:()=>r,y:()=>l});var r,n=i(9615),a=i(6919);n.W0.TARGET_FPMS=.06,function(t){t[t.INTERACTION=50]="INTERACTION",t[t.HIGH=25]="HIGH",t[t.NORMAL=0]="NORMAL",t[t.LOW=-25]="LOW",t[t.UTILITY=-50]="UTILITY"}(r||(r={}));var s=function(){function t(t,e,i,r){void 0===e&&(e=null),void 0===i&&(i=0),void 0===r&&(r=!1),this.next=null,this.previous=null,this._destroyed=!1,this.fn=t,this.context=e,this.priority=i,this.once=r}return t.prototype.match=function(t,e){return void 0===e&&(e=null),this.fn===t&&this.context===e},t.prototype.emit=function(t){this.fn&&(this.context?this.fn.call(this.context,t):this.fn(t));var e=this.next;return this.once&&this.destroy(!0),this._destroyed&&(this.next=null),e},t.prototype.connect=function(t){this.previous=t,t.next&&(t.next.previous=this),this.next=t.next,t.next=this},t.prototype.destroy=function(t){void 0===t&&(t=!1),this._destroyed=!0,this.fn=null,this.context=null,this.previous&&(this.previous.next=this.next),this.next&&(this.next.previous=this.previous);var e=this.next;return this.next=t?null:e,this.previous=null,e},t}(),o=function(){function t(){var t=this;this.autoStart=!1,this.deltaTime=1,this.lastTime=-1,this.speed=1,this.started=!1,this._requestId=null,this._maxElapsedMS=100,this._minElapsedMS=0,this._protected=!1,this._lastFrame=-1,this._head=new s(null,null,1/0),this.deltaMS=1/n.W0.TARGET_FPMS,this.elapsedMS=1/n.W0.TARGET_FPMS,this._tick=function(e){t._requestId=null,t.started&&(t.update(e),t.started&&null===t._requestId&&t._head.next&&(t._requestId=requestAnimationFrame(t._tick)))}}return t.prototype._requestIfNeeded=function(){null===this._requestId&&this._head.next&&(this.lastTime=performance.now(),this._lastFrame=this.lastTime,this._requestId=requestAnimationFrame(this._tick))},t.prototype._cancelIfNeeded=function(){null!==this._requestId&&(cancelAnimationFrame(this._requestId),this._requestId=null)},t.prototype._startIfPossible=function(){this.started?this._requestIfNeeded():this.autoStart&&this.start()},t.prototype.add=function(t,e,i){return void 0===i&&(i=r.NORMAL),this._addListener(new s(t,e,i))},t.prototype.addOnce=function(t,e,i){return void 0===i&&(i=r.NORMAL),this._addListener(new s(t,e,i,!0))},t.prototype._addListener=function(t){var e=this._head.next,i=this._head;if(e){for(;e;){if(t.priority>e.priority){t.connect(i);break}i=e,e=e.next}t.previous||t.connect(i)}else t.connect(i);return this._startIfPossible(),this},t.prototype.remove=function(t,e){for(var i=this._head.next;i;)i=i.match(t,e)?i.destroy():i.next;return this._head.next||this._cancelIfNeeded(),this},Object.defineProperty(t.prototype,"count",{get:function(){if(!this._head)return 0;for(var t=0,e=this._head;e=e.next;)t++;return t},enumerable:!1,configurable:!0}),t.prototype.start=function(){this.started||(this.started=!0,this._requestIfNeeded())},t.prototype.stop=function(){this.started&&(this.started=!1,this._cancelIfNeeded())},t.prototype.destroy=function(){if(!this._protected){this.stop();for(var t=this._head.next;t;)t=t.destroy(!0);this._head.destroy(),this._head=null}},t.prototype.update=function(t){var e;if(void 0===t&&(t=performance.now()),t>this.lastTime){if((e=this.elapsedMS=t-this.lastTime)>this._maxElapsedMS&&(e=this._maxElapsedMS),e*=this.speed,this._minElapsedMS){var i=t-this._lastFrame|0;if(i{"use strict";i.r(e),i.d(e,{BaseTextureCache:()=>z,CanvasRenderTarget:()=>Z,DATA_URI:()=>$,EventEmitter:()=>n,ProgramCache:()=>V,TextureCache:()=>Y,clearTextureCache:()=>Q,correctBlendMode:()=>I,createIndicesForQuads:()=>M,decomposeDataUri:()=>tt,deprecation:()=>W,destroyTextureCache:()=>q,determineCrossOrigin:()=>et,earcut:()=>a,getBufferType:()=>B,getResolutionOfUrl:()=>it,hex2rgb:()=>x,hex2string:()=>T,interleaveTypedArrays:()=>L,isMobile:()=>r.Fr,isPow2:()=>N,isWebGLSupported:()=>_,log2:()=>F,nextPow2:()=>k,path:()=>f,premultiplyBlendMode:()=>P,premultiplyRgba:()=>R,premultiplyTint:()=>C,premultiplyTintToRgba:()=>O,removeItems:()=>G,rgb2hex:()=>S,sayHello:()=>y,sign:()=>U,skipHello:()=>v,string2hex:()=>E,trimCanvas:()=>K,uid:()=>X,url:()=>l});var r=i(9615),n=i(9846),a=i(2840),s=i(3241),o=i(805),l={parse:s.qg,format:s.GP,resolve:s.hd};function h(t){if("string"!=typeof t)throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}function u(t){return t.split("?")[0].split("#")[0]}function c(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function p(t,e,i){return t.replace(new RegExp(c(e),"g"),i)}function d(t,e){for(var i,r="",n=0,a=-1,s=0,o=0;o<=t.length;++o){if(o2){var l=r.lastIndexOf("/");if(l!==r.length-1){-1===l?(r="",n=0):n=(r=r.slice(0,l)).length-1-r.lastIndexOf("/"),a=o,s=0;continue}}else if(2===r.length||1===r.length){r="",n=0,a=o,s=0;continue}e&&(r.length>0?r+="/..":r="..",n=2)}else r.length>0?r+="/"+t.slice(a+1,o):r=t.slice(a+1,o),n=o-a-1;a=o,s=0}else 46===i&&-1!==s?++s:s=-1}return r}var f={toPosix:function(t){return p(t,"\\","/")},isUrl:function(t){return/^https?:/.test(this.toPosix(t))},isDataUrl:function(t){return/^data:([a-z]+\/[a-z0-9-+.]+(;[a-z0-9-.!#$%*+.{}|~`]+=[a-z0-9-.!#$%*+.{}()_|~`]+)*)?(;base64)?,([a-z0-9!$&',()*+;=\-._~:@\/?%\s<>]*?)$/i.test(t)},hasProtocol:function(t){return/^[^/:]+:\//.test(this.toPosix(t))},getProtocol:function(t){h(t),t=this.toPosix(t);var e="",i=/^file:\/\/\//.exec(t),r=/^[^/:]+:\/\//.exec(t),n=/^[^/:]+:\//.exec(t);if(i||r||n){var a=(null==i?void 0:i[0])||(null==r?void 0:r[0])||(null==n?void 0:n[0]);e=a,t=t.slice(a.length)}return e},toAbsolute:function(t,e,i){if(this.isDataUrl(t))return t;var n=u(this.toPosix(null!=e?e:r.W0.ADAPTER.getBaseUrl())),a=u(this.toPosix(null!=i?i:this.rootname(n)));return h(t),(t=this.toPosix(t)).startsWith("/")?f.join(a,t.slice(1)):this.isAbsolute(t)?t:this.join(n,t)},normalize:function(t){if(h(t=this.toPosix(t)),0===t.length)return".";var e="",i=t.startsWith("/");this.hasProtocol(t)&&(e=this.rootname(t),t=t.slice(e.length));var r=t.endsWith("/");return(t=d(t,!1)).length>0&&r&&(t+="/"),i?"/"+t:e+t},isAbsolute:function(t){return h(t),t=this.toPosix(t),!!this.hasProtocol(t)||t.startsWith("/")},join:function(){for(var t,e,i=arguments,r=[],n=0;n0)if(void 0===e)e=s;else{var o=null!==(t=r[a-1])&&void 0!==t?t:"";this.extname(o)?e+="/../"+s:e+="/"+s}}return void 0===e?".":this.normalize(e)},dirname:function(t){if(h(t),0===t.length)return".";for(var e=(t=this.toPosix(t)).charCodeAt(0),i=47===e,r=-1,n=!0,a=this.getProtocol(t),s=t,o=(t=t.slice(a.length)).length-1;o>=1;--o)if(47===(e=t.charCodeAt(o))){if(!n){r=o;break}}else n=!1;return-1===r?i?"/":this.isUrl(s)?a+t:a:i&&1===r?"//":a+t.slice(0,r)},rootname:function(t){h(t);var e="";if(e=(t=this.toPosix(t)).startsWith("/")?"/":this.getProtocol(t),this.isUrl(t)){var i=t.indexOf("/",e.length);(e=-1!==i?t.slice(0,i):t).endsWith("/")||(e+="/")}return e},basename:function(t,e){h(t),e&&h(e),t=this.toPosix(t);var i,r=0,n=-1,a=!0;if(void 0!==e&&e.length>0&&e.length<=t.length){if(e.length===t.length&&e===t)return"";var s=e.length-1,o=-1;for(i=t.length-1;i>=0;--i){var l=t.charCodeAt(i);if(47===l){if(!a){r=i+1;break}}else-1===o&&(a=!1,o=i+1),s>=0&&(l===e.charCodeAt(s)?-1==--s&&(n=i):(s=-1,n=o))}return r===n?n=o:-1===n&&(n=t.length),t.slice(r,n)}for(i=t.length-1;i>=0;--i)if(47===t.charCodeAt(i)){if(!a){r=i+1;break}}else-1===n&&(a=!1,n=i+1);return-1===n?"":t.slice(r,n)},extname:function(t){h(t);for(var e=-1,i=0,r=-1,n=!0,a=0,s=(t=this.toPosix(t)).length-1;s>=0;--s){var o=t.charCodeAt(s);if(47!==o)-1===r&&(n=!1,r=s+1),46===o?-1===e?e=s:1!==a&&(a=1):-1!==e&&(a=-1);else if(!n){i=s+1;break}}return-1===e||-1===r||0===a||1===a&&e===r-1&&e===i+1?"":t.slice(e,r)},parse:function(t){h(t);var e={root:"",dir:"",base:"",ext:"",name:""};if(0===t.length)return e;var i,r=(t=this.toPosix(t)).charCodeAt(0),n=this.isAbsolute(t);e.root=this.rootname(t),i=n||this.hasProtocol(t)?1:0;for(var a=-1,s=0,o=-1,l=!0,u=t.length-1,c=0;u>=i;--u)if(47!==(r=t.charCodeAt(u)))-1===o&&(l=!1,o=u+1),46===r?-1===a?a=u:1!==c&&(c=1):-1!==a&&(c=-1);else if(!l){s=u+1;break}return-1===a||-1===o||0===c||1===c&&a===o-1&&a===s+1?-1!==o&&(e.base=e.name=0===s&&n?t.slice(1,o):t.slice(s,o)):(0===s&&n?(e.name=t.slice(1,a),e.base=t.slice(1,o)):(e.name=t.slice(s,a),e.base=t.slice(s,o)),e.ext=t.slice(a,o)),e.dir=this.dirname(t),e},sep:"/",delimiter:":"};r.W0.RETINA_PREFIX=/@([0-9\.]+)x/,r.W0.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT=!1;var g,m=!1,A="6.5.10";function v(){m=!0}function y(t){var e;if(!m){if(r.W0.ADAPTER.getNavigator().userAgent.toLowerCase().indexOf("chrome")>-1){var i=["\n %c %c %c PixiJS "+A+" - ✰ "+t+" ✰ %c %c http://www.pixijs.com/ %c %c ♥%c♥%c♥ \n\n","background: #ff66a5; padding:5px 0;","background: #ff66a5; padding:5px 0;","color: #ff66a5; background: #030307; padding:5px 0;","background: #ff66a5; padding:5px 0;","background: #ffc3dc; padding:5px 0;","background: #ff66a5; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;"];(e=globalThis.console).log.apply(e,i)}else globalThis.console&&globalThis.console.log("PixiJS "+A+" - "+t+" - http://www.pixijs.com/");m=!0}}function _(){return void 0===g&&(g=function(){var t={stencil:!0,failIfMajorPerformanceCaveat:r.W0.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT};try{if(!r.W0.ADAPTER.getWebGLRenderingContext())return!1;var e=r.W0.ADAPTER.createCanvas(),i=e.getContext("webgl",t)||e.getContext("experimental-webgl",t),n=!(!i||!i.getContextAttributes().stencil);if(i){var a=i.getExtension("WEBGL_lose_context");a&&a.loseContext()}return i=null,n}catch(s){return!1}}()),g}var b={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function x(t,e){return void 0===e&&(e=[]),e[0]=(t>>16&255)/255,e[1]=(t>>8&255)/255,e[2]=(255&t)/255,e}function T(t){var e=t.toString(16);return"#"+(e="000000".substring(0,6-e.length)+e)}function E(t){return"string"==typeof t&&"#"===(t=b[t.toLowerCase()]||t)[0]&&(t=t.slice(1)),parseInt(t,16)}function S(t){return(255*t[0]<<16)+(255*t[1]<<8)+(255*t[2]|0)}function w(){for(var t=[],e=[],i=0;i<32;i++)t[i]=i,e[i]=i;t[o.B9.NORMAL_NPM]=o.B9.NORMAL,t[o.B9.ADD_NPM]=o.B9.ADD,t[o.B9.SCREEN_NPM]=o.B9.SCREEN,e[o.B9.NORMAL]=o.B9.NORMAL_NPM,e[o.B9.ADD]=o.B9.ADD_NPM,e[o.B9.SCREEN]=o.B9.SCREEN_NPM;var r=[];return r.push(e),r.push(t),r}var P=w();function I(t,e){return P[e?1:0][t]}function R(t,e,i,r){return i=i||new Float32Array(4),r||void 0===r?(i[0]=t[0]*e,i[1]=t[1]*e,i[2]=t[2]*e):(i[0]=t[0],i[1]=t[1],i[2]=t[2]),i[3]=e,i}function C(t,e){if(1===e)return(255*e<<24)+t;if(0===e)return 0;var i=t>>16&255,r=t>>8&255,n=255&t;return(255*e<<24)+((i=i*e+.5|0)<<16)+((r=r*e+.5|0)<<8)+(n=n*e+.5|0)}function O(t,e,i,r){return(i=i||new Float32Array(4))[0]=(t>>16&255)/255,i[1]=(t>>8&255)/255,i[2]=(255&t)/255,(r||void 0===r)&&(i[0]*=e,i[1]*=e,i[2]*=e),i[3]=e,i}function M(t,e){void 0===e&&(e=null);var i=6*t;if((e=e||new Uint16Array(i)).length!==i)throw new Error("Out buffer length is incorrect, got "+e.length+" and expected "+i);for(var r=0,n=0;r>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,(t|=t>>>16)+1}function N(t){return!(t&t-1||!t)}function F(t){var e=(t>65535?1:0)<<4,i=((t>>>=e)>255?1:0)<<3;return e|=i,e|=i=((t>>>=i)>15?1:0)<<2,(e|=i=((t>>>=i)>3?1:0)<<1)|(t>>>=i)>>1}function G(t,e,i){var r,n=t.length;if(!(e>=n||0===i)){var a=n-(i=e+i>n?n-e:i);for(r=e;r{"use strict";function r(t){var e=this.constructor;return this.then((function(i){return e.resolve(t()).then((function(){return i}))}),(function(i){return e.resolve(t()).then((function(){return e.reject(i)}))}))}i.r(e),i.d(e,{ALPHA_MODES:()=>et.Gk,AbstractBatchRenderer:()=>O.SD,AbstractMultiResource:()=>O.CI,AbstractRenderer:()=>O.kp,AccessibilityManager:()=>X,AnimatedSprite:()=>zi,AppLoaderPlugin:()=>Pt,Application:()=>Hi,ArrayResource:()=>O.aV,Attribute:()=>O.nW,BLEND_MODES:()=>et.B9,BUFFER_BITS:()=>et.wn,BUFFER_TYPE:()=>et.yw,BaseImageResource:()=>O.jH,BasePrepare:()=>Be.Ls,BaseRenderTexture:()=>O.LE,BaseTexture:()=>O.t5,BatchDrawCall:()=>O.hq,BatchGeometry:()=>O.JH,BatchPluginFactory:()=>O.oA,BatchRenderer:()=>O.ch,BatchShaderGenerator:()=>O.LQ,BatchSystem:()=>O.A6,BatchTextureArray:()=>O.cc,BitmapFont:()=>Je,BitmapFontData:()=>He,BitmapFontLoader:()=>ai,BitmapText:()=>ni,BlobResource:()=>jt,Bounds:()=>C.cz,BrowserAdapter:()=>Lt.OF,Buffer:()=>O.hp,BufferResource:()=>O.dZ,CLEAR_MODES:()=>et.fr,COLOR_MASK_BITS:()=>et.Eq,CanvasResource:()=>O.Bu,Circle:()=>j.jl,CompressedTextureLoader:()=>Vt,CompressedTextureResource:()=>Wt,Container:()=>C.mc,ContextSystem:()=>O.bD,CountLimiter:()=>Be.It,CubeResource:()=>O.WQ,DDSLoader:()=>Ce,DEG_TO_RAD:()=>j.Td,DRAW_MODES:()=>et._4,DisplayObject:()=>C.q9,ENV:()=>et.Km,Ellipse:()=>j.Pp,ExtensionType:()=>O.Ag,Extract:()=>nt,FORMATS:()=>et.hR,FORMATS_TO_COMPONENTS:()=>Ee,FillStyle:()=>Xi.Zw,Filter:()=>O.dJ,FilterState:()=>O.OO,FilterSystem:()=>O.u9,Framebuffer:()=>O.GW,FramebufferSystem:()=>O.nj,GC_MODES:()=>et.OS,GLFramebuffer:()=>O.pq,GLProgram:()=>O._H,GLTexture:()=>O.Ru,GRAPHICS_CURVES:()=>Xi.lU,Geometry:()=>O.V2,GeometrySystem:()=>O.kb,Graphics:()=>Xi.A1,GraphicsData:()=>Xi.ie,GraphicsGeometry:()=>Xi.mk,IGLUniformData:()=>O.n1,INSTALLED:()=>O.Ln,INTERNAL_FORMATS:()=>Dt,INTERNAL_FORMAT_TO_BYTES_PER_PIXEL:()=>kt,ImageBitmapResource:()=>O.di,ImageResource:()=>O.Gj,InteractionData:()=>V,InteractionEvent:()=>q,InteractionManager:()=>tt,InteractionTrackingData:()=>Q,KTXLoader:()=>Oe,LINE_CAP:()=>Xi.Mp,LINE_JOIN:()=>Xi.u2,LineStyle:()=>Xi.Sc,Loader:()=>wt,LoaderResource:()=>yt,MASK_TYPES:()=>et.vg,MIPMAP_MODES:()=>et.E8,MSAA_QUALITY:()=>et.he,MaskData:()=>O.XN,MaskSystem:()=>O.iW,Matrix:()=>j.uq,Mesh:()=>Ne.e,MeshBatchUvs:()=>Ne.iM,MeshGeometry:()=>Ne.u,MeshMaterial:()=>Ne.PX,NineSlicePlane:()=>ji.F_,ObjectRenderer:()=>O.Pt,ObservablePoint:()=>j.oA,PI_2:()=>j.TO,PRECISION:()=>et.Pk,ParticleContainer:()=>Me.w,ParticleRenderer:()=>Me.e,PlaneGeometry:()=>ji.bd,Point:()=>j.bR,Polygon:()=>j.tS,Prepare:()=>Be.p8,Program:()=>O.BP,ProjectionSystem:()=>O.hk,Quad:()=>O.kO,QuadUv:()=>O.X1,RAD_TO_DEG:()=>j.bO,RENDERER_TYPE:()=>et.h3,Rectangle:()=>j.M_,RenderTexture:()=>O.Y7,RenderTexturePool:()=>O.O1,RenderTextureSystem:()=>O.Bw,Renderer:()=>O.A4,ResizePlugin:()=>Ui,Resource:()=>O.FW,RopeGeometry:()=>ji.Bq,RoundedRectangle:()=>j.TE,Runner:()=>Wi.b,SAMPLER_TYPES:()=>et.XZ,SCALE_MODES:()=>et.M6,SHAPES:()=>j.HY,SVGResource:()=>O.$f,ScissorSystem:()=>O.s9,Shader:()=>O.Mt,ShaderSystem:()=>O.$P,SimpleMesh:()=>ji.g,SimplePlane:()=>ji.js,SimpleRope:()=>ji.D8,Sprite:()=>Ni.k,SpriteMaskFilter:()=>O.ah,Spritesheet:()=>De,SpritesheetLoader:()=>Le,State:()=>O.Uw,StateSystem:()=>O.D8,StencilSystem:()=>O.iH,System:()=>O.iQ,TARGETS:()=>et.dW,TEXT_GRADIENT:()=>Fe.T,TYPES:()=>et.QE,TYPES_TO_BYTES_PER_COMPONENT:()=>Te,TYPES_TO_BYTES_PER_PIXEL:()=>Se,TemporaryDisplayObject:()=>C.dC,Text:()=>Fe.EY,TextFormat:()=>Xe,TextMetrics:()=>Fe.Z1,TextStyle:()=>Fe.xJ,Texture:()=>O.gP,TextureGCSystem:()=>O.lB,TextureLoader:()=>It,TextureMatrix:()=>O.NW,TextureSystem:()=>O.vB,TextureUvs:()=>O.OE,Ticker:()=>W.Rv,TickerPlugin:()=>W.y,TilingSprite:()=>ke.t,TilingSpriteRenderer:()=>ke._,TimeLimiter:()=>Be.oP,Transform:()=>j.dL,UPDATE_PRIORITY:()=>W.dQ,UniformGroup:()=>O.k2,VERSION:()=>O.xv,VideoResource:()=>O.A5,ViewableBuffer:()=>O.u3,WRAP_MODES:()=>et.uR,XMLFormat:()=>je,XMLStringFormat:()=>We,accessibleTarget:()=>M,autoDetectFormat:()=>Ye,autoDetectRenderer:()=>O.q5,autoDetectResource:()=>O.Nc,checkMaxIfStatementsInShader:()=>O.uC,createUBOElements:()=>O._J,defaultFilterVertex:()=>O.Eo,defaultVertex:()=>O.MT,extensions:()=>O.XO,filters:()=>qi,generateProgram:()=>O.CF,generateUniformBufferSync:()=>O.He,getTestContext:()=>O.WD,getUBOData:()=>O.RO,graphicsUtils:()=>Xi.lo,groupD8:()=>j.ER,interactiveTarget:()=>K,isMobile:()=>Lt.Fr,parseDDS:()=>ve,parseKTX:()=>we,resources:()=>O.ES,settings:()=>Lt.W0,systems:()=>O.nV,uniformParsers:()=>O.$Z,utils:()=>R});const n=r;function a(t){return new this((function(e,i){if(!t||void 0===t.length)return i(new TypeError(typeof t+" "+t+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var r=Array.prototype.slice.call(t);if(0===r.length)return e([]);var n=r.length;function a(t,i){if(i&&("object"==typeof i||"function"==typeof i)){var s=i.then;if("function"==typeof s)return void s.call(i,(function(e){a(t,e)}),(function(i){r[t]={status:"rejected",reason:i},0==--n&&e(r)}))}r[t]={status:"fulfilled",value:i},0==--n&&e(r)}for(var s=0;s0?1:-1}),Number.isInteger||(Number.isInteger=function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t}),globalThis.ArrayBuffer||(globalThis.ArrayBuffer=Array),globalThis.Float32Array||(globalThis.Float32Array=Array),globalThis.Uint32Array||(globalThis.Uint32Array=Array),globalThis.Uint16Array||(globalThis.Uint16Array=Array),globalThis.Uint8Array||(globalThis.Uint8Array=Array),globalThis.Int32Array||(globalThis.Int32Array=Array);var R=i(3785),C=i(903),O=i(1947),M={accessible:!1,accessibleTitle:null,accessibleHint:null,tabIndex:0,_accessibleActive:!1,_accessibleDiv:null,accessibleType:"button",accessiblePointerEvents:"auto",accessibleChildren:!0,renderId:-1};C.q9.mixin(M);var B=9,D=100,L=0,k=0,N=2,F=1,G=-1e3,U=-1e3,H=2,X=function(){function t(t){this.debug=!1,this._isActive=!1,this._isMobileAccessibility=!1,this.pool=[],this.renderId=0,this.children=[],this.androidUpdateCount=0,this.androidUpdateFrequency=500,this._hookDiv=null,(R.isMobile.tablet||R.isMobile.phone)&&this.createTouchHook();var e=document.createElement("div");e.style.width=D+"px",e.style.height=D+"px",e.style.position="absolute",e.style.top=L+"px",e.style.left=k+"px",e.style.zIndex=N.toString(),this.div=e,this.renderer=t,this._onKeyDown=this._onKeyDown.bind(this),this._onMouseMove=this._onMouseMove.bind(this),globalThis.addEventListener("keydown",this._onKeyDown,!1)}return Object.defineProperty(t.prototype,"isActive",{get:function(){return this._isActive},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isMobileAccessibility",{get:function(){return this._isMobileAccessibility},enumerable:!1,configurable:!0}),t.prototype.createTouchHook=function(){var t=this,e=document.createElement("button");e.style.width=F+"px",e.style.height=F+"px",e.style.position="absolute",e.style.top=G+"px",e.style.left=U+"px",e.style.zIndex=H.toString(),e.style.backgroundColor="#FF0000",e.title="select to enable accessibility for this content",e.addEventListener("focus",(function(){t._isMobileAccessibility=!0,t.activate(),t.destroyTouchHook()})),document.body.appendChild(e),this._hookDiv=e},t.prototype.destroyTouchHook=function(){this._hookDiv&&(document.body.removeChild(this._hookDiv),this._hookDiv=null)},t.prototype.activate=function(){var t;this._isActive||(this._isActive=!0,globalThis.document.addEventListener("mousemove",this._onMouseMove,!0),globalThis.removeEventListener("keydown",this._onKeyDown,!1),this.renderer.on("postrender",this.update,this),null===(t=this.renderer.view.parentNode)||void 0===t||t.appendChild(this.div))},t.prototype.deactivate=function(){var t;this._isActive&&!this._isMobileAccessibility&&(this._isActive=!1,globalThis.document.removeEventListener("mousemove",this._onMouseMove,!0),globalThis.addEventListener("keydown",this._onKeyDown,!1),this.renderer.off("postrender",this.update),null===(t=this.div.parentNode)||void 0===t||t.removeChild(this.div))},t.prototype.updateAccessibleObjects=function(t){if(t.visible&&t.accessibleChildren){t.accessible&&t.interactive&&(t._accessibleActive||this.addChild(t),t.renderId=this.renderId);var e=t.children;if(e)for(var i=0;i title : "+t.title+"
tabIndex: "+t.tabIndex},t.prototype.capHitArea=function(t){t.x<0&&(t.width+=t.x,t.x=0),t.y<0&&(t.height+=t.y,t.y=0);var e=this.renderer,i=e.width,r=e.height;t.x+t.width>i&&(t.width=i-t.x),t.y+t.height>r&&(t.height=r-t.y)},t.prototype.addChild=function(t){var e=this.pool.pop();e||((e=document.createElement("button")).style.width=D+"px",e.style.height=D+"px",e.style.backgroundColor=this.debug?"rgba(255,255,255,0.5)":"transparent",e.style.position="absolute",e.style.zIndex=N.toString(),e.style.borderStyle="none",navigator.userAgent.toLowerCase().indexOf("chrome")>-1?e.setAttribute("aria-live","off"):e.setAttribute("aria-live","polite"),navigator.userAgent.match(/rv:.*Gecko\//)?e.setAttribute("aria-relevant","additions"):e.setAttribute("aria-relevant","text"),e.addEventListener("click",this._onClick.bind(this)),e.addEventListener("focus",this._onFocus.bind(this)),e.addEventListener("focusout",this._onFocusOut.bind(this))),e.style.pointerEvents=t.accessiblePointerEvents,e.type=t.accessibleType,t.accessibleTitle&&null!==t.accessibleTitle?e.title=t.accessibleTitle:t.accessibleHint&&null!==t.accessibleHint||(e.title="displayObject "+t.tabIndex),t.accessibleHint&&null!==t.accessibleHint&&e.setAttribute("aria-label",t.accessibleHint),this.debug&&this.updateDebugHTML(e),t._accessibleActive=!0,t._accessibleDiv=e,e.displayObject=t,this.children.push(t),this.div.appendChild(t._accessibleDiv),t._accessibleDiv.tabIndex=t.tabIndex},t.prototype._onClick=function(t){var e=this.renderer.plugins.interaction,i=t.target.displayObject,r=e.eventData;e.dispatchEvent(i,"click",r),e.dispatchEvent(i,"pointertap",r),e.dispatchEvent(i,"tap",r)},t.prototype._onFocus=function(t){t.target.getAttribute("aria-live")||t.target.setAttribute("aria-live","assertive");var e=this.renderer.plugins.interaction,i=t.target.displayObject,r=e.eventData;e.dispatchEvent(i,"mouseover",r)},t.prototype._onFocusOut=function(t){t.target.getAttribute("aria-live")||t.target.setAttribute("aria-live","polite");var e=this.renderer.plugins.interaction,i=t.target.displayObject,r=e.eventData;e.dispatchEvent(i,"mouseout",r)},t.prototype._onKeyDown=function(t){t.keyCode===B&&this.activate()},t.prototype._onMouseMove=function(t){0===t.movementX&&0===t.movementY||this.deactivate()},t.prototype.destroy=function(){this.destroyTouchHook(),this.div=null,globalThis.document.removeEventListener("mousemove",this._onMouseMove,!0),globalThis.removeEventListener("keydown",this._onKeyDown),this.pool=null,this.children=null,this.renderer=null},t.extension={name:"accessibility",type:[O.Ag.RendererPlugin,O.Ag.CanvasRendererPlugin]},t}(),j=i(7239),W=i(4775),V=function(){function t(){this.pressure=0,this.rotationAngle=0,this.twist=0,this.tangentialPressure=0,this.global=new j.bR,this.target=null,this.originalEvent=null,this.identifier=null,this.isPrimary=!1,this.button=0,this.buttons=0,this.width=0,this.height=0,this.tiltX=0,this.tiltY=0,this.pointerType=null,this.pressure=0,this.rotationAngle=0,this.twist=0,this.tangentialPressure=0}return Object.defineProperty(t.prototype,"pointerId",{get:function(){return this.identifier},enumerable:!1,configurable:!0}),t.prototype.getLocalPosition=function(t,e,i){return t.worldTransform.applyInverse(i||this.global,e)},t.prototype.copyEvent=function(t){"isPrimary"in t&&t.isPrimary&&(this.isPrimary=!0),this.button="button"in t&&t.button;var e="buttons"in t&&t.buttons;this.buttons=Number.isInteger(e)?e:"which"in t&&t.which,this.width="width"in t&&t.width,this.height="height"in t&&t.height,this.tiltX="tiltX"in t&&t.tiltX,this.tiltY="tiltY"in t&&t.tiltY,this.pointerType="pointerType"in t&&t.pointerType,this.pressure="pressure"in t&&t.pressure,this.rotationAngle="rotationAngle"in t&&t.rotationAngle,this.twist="twist"in t&&t.twist||0,this.tangentialPressure="tangentialPressure"in t&&t.tangentialPressure||0},t.prototype.reset=function(){this.isPrimary=!1},t}(),Y=function(t,e){return Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},Y(t,e)};function z(t,e){function i(){this.constructor=t}Y(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}var q=function(){function t(){this.stopped=!1,this.stopsPropagatingAt=null,this.stopPropagationHint=!1,this.target=null,this.currentTarget=null,this.type=null,this.data=null}return t.prototype.stopPropagation=function(){this.stopped=!0,this.stopPropagationHint=!0,this.stopsPropagatingAt=this.currentTarget},t.prototype.reset=function(){this.stopped=!1,this.stopsPropagatingAt=null,this.stopPropagationHint=!1,this.currentTarget=null,this.target=null},t}(),Q=function(){function t(e){this._pointerId=e,this._flags=t.FLAGS.NONE}return t.prototype._doSet=function(t,e){this._flags=e?this._flags|t:this._flags&~t},Object.defineProperty(t.prototype,"pointerId",{get:function(){return this._pointerId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"flags",{get:function(){return this._flags},set:function(t){this._flags=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"none",{get:function(){return this._flags===t.FLAGS.NONE},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"over",{get:function(){return 0!=(this._flags&t.FLAGS.OVER)},set:function(e){this._doSet(t.FLAGS.OVER,e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rightDown",{get:function(){return 0!=(this._flags&t.FLAGS.RIGHT_DOWN)},set:function(e){this._doSet(t.FLAGS.RIGHT_DOWN,e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"leftDown",{get:function(){return 0!=(this._flags&t.FLAGS.LEFT_DOWN)},set:function(e){this._doSet(t.FLAGS.LEFT_DOWN,e)},enumerable:!1,configurable:!0}),t.FLAGS=Object.freeze({NONE:0,OVER:1,LEFT_DOWN:2,RIGHT_DOWN:4}),t}(),Z=function(){function t(){this._tempPoint=new j.bR}return t.prototype.recursiveFindHit=function(t,e,i,r,n){var a;if(!e||!e.visible)return!1;var s=t.data.global,o=!1,l=n=e.interactive||n,h=!0;if(e.hitArea)r&&(e.worldTransform.applyInverse(s,this._tempPoint),e.hitArea.contains(this._tempPoint.x,this._tempPoint.y)?o=!0:(r=!1,h=!1)),l=!1;else if(e._mask&&r){var u=e._mask.isMaskData?e._mask.maskObject:e._mask;u&&!(null===(a=u.containsPoint)||void 0===a?void 0:a.call(u,s))&&(r=!1)}if(h&&e.interactiveChildren&&e.children)for(var c=e.children,p=c.length-1;p>=0;p--){var d=c[p],f=this.recursiveFindHit(t,d,i,r,l);if(f){if(!d.parent)continue;l=!1,f&&(t.target&&(r=!1),o=!0)}}return n&&(r&&!t.target&&!e.hitArea&&e.containsPoint&&e.containsPoint(s)&&(o=!0),e.interactive&&(o&&!t.target&&(t.target=e),i&&i(t,e,!!o))),o},t.prototype.findHit=function(t,e,i,r){this.recursiveFindHit(t,e,i,r,!1)},t}(),K={interactive:!1,interactiveChildren:!0,hitArea:null,get buttonMode(){return"pointer"===this.cursor},set buttonMode(t){t?this.cursor="pointer":"pointer"===this.cursor&&(this.cursor=null)},cursor:null,get trackedPointers(){return void 0===this._trackedPointers&&(this._trackedPointers={}),this._trackedPointers},_trackedPointers:void 0};C.q9.mixin(K);var J=1,$={target:null,data:{global:null}},tt=function(t){function e(e,i){var r=t.call(this)||this;return i=i||{},r.renderer=e,r.autoPreventDefault=void 0===i.autoPreventDefault||i.autoPreventDefault,r.interactionFrequency=i.interactionFrequency||10,r.mouse=new V,r.mouse.identifier=J,r.mouse.global.set(-999999),r.activeInteractionData={},r.activeInteractionData[J]=r.mouse,r.interactionDataPool=[],r.eventData=new q,r.interactionDOMElement=null,r.moveWhenInside=!1,r.eventsAdded=!1,r.tickerAdded=!1,r.mouseOverRenderer=!("PointerEvent"in globalThis),r.supportsTouchEvents="ontouchstart"in globalThis,r.supportsPointerEvents=!!globalThis.PointerEvent,r.onPointerUp=r.onPointerUp.bind(r),r.processPointerUp=r.processPointerUp.bind(r),r.onPointerCancel=r.onPointerCancel.bind(r),r.processPointerCancel=r.processPointerCancel.bind(r),r.onPointerDown=r.onPointerDown.bind(r),r.processPointerDown=r.processPointerDown.bind(r),r.onPointerMove=r.onPointerMove.bind(r),r.processPointerMove=r.processPointerMove.bind(r),r.onPointerOut=r.onPointerOut.bind(r),r.processPointerOverOut=r.processPointerOverOut.bind(r),r.onPointerOver=r.onPointerOver.bind(r),r.cursorStyles={default:"inherit",pointer:"pointer"},r.currentCursorMode=null,r.cursor=null,r.resolution=1,r.delayedEvents=[],r.search=new Z,r._tempDisplayObject=new C.dC,r._eventListenerOptions={capture:!0,passive:!1},r._useSystemTicker=void 0===i.useSystemTicker||i.useSystemTicker,r.setTargetElement(r.renderer.view,r.renderer.resolution),r}return z(e,t),Object.defineProperty(e.prototype,"useSystemTicker",{get:function(){return this._useSystemTicker},set:function(t){this._useSystemTicker=t,t?this.addTickerListener():this.removeTickerListener()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastObjectRendered",{get:function(){return this.renderer._lastObjectRendered||this._tempDisplayObject},enumerable:!1,configurable:!0}),e.prototype.hitTest=function(t,e){return $.target=null,$.data.global=t,e||(e=this.lastObjectRendered),this.processInteractive($,e,null,!0),$.target},e.prototype.setTargetElement=function(t,e){void 0===e&&(e=1),this.removeTickerListener(),this.removeEvents(),this.interactionDOMElement=t,this.resolution=e,this.addEvents(),this.addTickerListener()},e.prototype.addTickerListener=function(){!this.tickerAdded&&this.interactionDOMElement&&this._useSystemTicker&&(W.Rv.system.add(this.tickerUpdate,this,W.dQ.INTERACTION),this.tickerAdded=!0)},e.prototype.removeTickerListener=function(){this.tickerAdded&&(W.Rv.system.remove(this.tickerUpdate,this),this.tickerAdded=!1)},e.prototype.addEvents=function(){if(!this.eventsAdded&&this.interactionDOMElement){var t=this.interactionDOMElement.style;globalThis.navigator.msPointerEnabled?(t.msContentZooming="none",t.msTouchAction="none"):this.supportsPointerEvents&&(t.touchAction="none"),this.supportsPointerEvents?(globalThis.document.addEventListener("pointermove",this.onPointerMove,this._eventListenerOptions),this.interactionDOMElement.addEventListener("pointerdown",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.addEventListener("pointerleave",this.onPointerOut,this._eventListenerOptions),this.interactionDOMElement.addEventListener("pointerover",this.onPointerOver,this._eventListenerOptions),globalThis.addEventListener("pointercancel",this.onPointerCancel,this._eventListenerOptions),globalThis.addEventListener("pointerup",this.onPointerUp,this._eventListenerOptions)):(globalThis.document.addEventListener("mousemove",this.onPointerMove,this._eventListenerOptions),this.interactionDOMElement.addEventListener("mousedown",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.addEventListener("mouseout",this.onPointerOut,this._eventListenerOptions),this.interactionDOMElement.addEventListener("mouseover",this.onPointerOver,this._eventListenerOptions),globalThis.addEventListener("mouseup",this.onPointerUp,this._eventListenerOptions)),this.supportsTouchEvents&&(this.interactionDOMElement.addEventListener("touchstart",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.addEventListener("touchcancel",this.onPointerCancel,this._eventListenerOptions),this.interactionDOMElement.addEventListener("touchend",this.onPointerUp,this._eventListenerOptions),this.interactionDOMElement.addEventListener("touchmove",this.onPointerMove,this._eventListenerOptions)),this.eventsAdded=!0}},e.prototype.removeEvents=function(){if(this.eventsAdded&&this.interactionDOMElement){var t=this.interactionDOMElement.style;globalThis.navigator.msPointerEnabled?(t.msContentZooming="",t.msTouchAction=""):this.supportsPointerEvents&&(t.touchAction=""),this.supportsPointerEvents?(globalThis.document.removeEventListener("pointermove",this.onPointerMove,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("pointerdown",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("pointerleave",this.onPointerOut,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("pointerover",this.onPointerOver,this._eventListenerOptions),globalThis.removeEventListener("pointercancel",this.onPointerCancel,this._eventListenerOptions),globalThis.removeEventListener("pointerup",this.onPointerUp,this._eventListenerOptions)):(globalThis.document.removeEventListener("mousemove",this.onPointerMove,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("mousedown",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("mouseout",this.onPointerOut,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("mouseover",this.onPointerOver,this._eventListenerOptions),globalThis.removeEventListener("mouseup",this.onPointerUp,this._eventListenerOptions)),this.supportsTouchEvents&&(this.interactionDOMElement.removeEventListener("touchstart",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("touchcancel",this.onPointerCancel,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("touchend",this.onPointerUp,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("touchmove",this.onPointerMove,this._eventListenerOptions)),this.interactionDOMElement=null,this.eventsAdded=!1}},e.prototype.tickerUpdate=function(t){this._deltaTime+=t,this._deltaTime0&&(a=t.composedPath()[0]);for(var s=a!==this.interactionDOMElement?"outside":"",o=0;o=2?n.multisample:et.he.NONE;if(r=this.renderer.generateTexture(t,{multisample:o}),o!==et.he.NONE){var l=O.Y7.create({width:r.width,height:r.height});n.framebuffer.bind(r.framebuffer),n.framebuffer.blit(l.framebuffer),n.framebuffer.bind(null),r.destroy(!0),r=l}s=!0}r?(i=r.baseTexture.resolution,e=null!=e?e:r.frame,a=!1,n.renderTexture.bind(r)):(i=n.resolution,e||((e=it).width=n.width,e.height=n.height),a=!0,n.renderTexture.bind(null));var h=Math.round(e.width*i),u=Math.round(e.height*i),c=new Uint8Array(rt*h*u),p=n.gl;return p.readPixels(Math.round(e.x*i),Math.round(e.y*i),h,u,p.RGBA,p.UNSIGNED_BYTE,c),s&&r.destroy(!0),{pixels:c,width:h,height:u,flipY:a}},t.prototype.destroy=function(){this.renderer=null},t.arrayPostDivide=function(t,e){for(var i=0;i0||e.responseType===t.XHR_RESPONSE_TYPE.BUFFER)?r=pt:r===ft&&(r=dt),(r/100|0)===gt){if(this.xhrType===t.XHR_RESPONSE_TYPE.TEXT)this.data=i,this.type=t.TYPE.TEXT;else if(this.xhrType===t.XHR_RESPONSE_TYPE.JSON)try{this.data=JSON.parse(i),this.type=t.TYPE.JSON}catch(s){return void this.abort("Error trying to parse loaded json: "+s)}else if(this.xhrType===t.XHR_RESPONSE_TYPE.DOCUMENT)try{if(globalThis.DOMParser){var n=new DOMParser;this.data=n.parseFromString(i,"text/xml")}else{var a=document.createElement("div");a.innerHTML=i,this.data=a}this.type=t.TYPE.XML}catch(o){return void this.abort("Error trying to parse loaded xml: "+o)}else this.data=e.response||i;this.complete()}else this.abort("["+e.status+"] "+e.statusText+": "+e.responseURL)},t.prototype._determineCrossOrigin=function(t,e){if(0===t.indexOf("data:"))return"";if(globalThis.origin!==globalThis.location.origin)return"anonymous";e=e||globalThis.location,ut||(ut=document.createElement("a")),ut.href=t;var i=ht(ut.href,{strictMode:!0}),r=!i.port&&""===e.port||i.port===e.port,n=i.protocol?i.protocol+":":"";return i.host===e.hostname&&r&&n===e.protocol?"":"anonymous"},t.prototype._determineXhrType=function(){return t._xhrTypeMap[this.extension]||t.XHR_RESPONSE_TYPE.TEXT},t.prototype._determineLoadType=function(){return t._loadTypeMap[this.extension]||t.LOAD_TYPE.XHR},t.prototype._getExtension=function(t){void 0===t&&(t=this.url);var e="";if(this.isDataUrl){var i=t.indexOf("/");e=t.substring(i+1,t.indexOf(";",i))}else{var r=t.indexOf("?"),n=t.indexOf("#"),a=Math.min(r>-1?r:t.length,n>-1?n:t.length);e=(t=t.substring(0,a)).substring(t.lastIndexOf(".")+1)}return e.toLowerCase()},t.prototype._getMimeFromXhrType=function(e){switch(e){case t.XHR_RESPONSE_TYPE.BUFFER:return"application/octet-binary";case t.XHR_RESPONSE_TYPE.BLOB:return"application/blob";case t.XHR_RESPONSE_TYPE.DOCUMENT:return"application/xml";case t.XHR_RESPONSE_TYPE.JSON:return"application/json";case t.XHR_RESPONSE_TYPE.DEFAULT:case t.XHR_RESPONSE_TYPE.TEXT:default:return"text/plain"}},t}();function _t(){}function bt(t){return function(){for(var e=arguments,i=[],r=0;r>2,n[1]=(3&r[0])<<4|r[1]>>4,n[2]=(15&r[1])<<2|r[2]>>6,n[3]=63&r[2],i-(t.length-1)){case 2:n[3]=64,n[2]=64;break;case 1:n[3]=64}for(a=0;a0&&n[n.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!n||a[1]>n[0]&&a[1]=33776&&t<=33779)return"s3tc";if(t>=37488&&t<=37497)return"etc";if(t>=35840&&t<=35843)return"pvrtc";if(t>=36196)return"etc1";if(t>=35986&&t<=34798)return"atc";throw new Error("Invalid (compressed) texture format given!")},e._createLevelBuffers=function(t,e,i,r,n,a,s){for(var o=new Array(i),l=t.byteOffset,h=a,u=s,c=h+r-1&~(r-1),p=u+n-1&~(n-1),d=c*p*kt[e],f=0;f1?h:c,levelHeight:i>1?u:p,levelBuffer:new Uint8Array(t.buffer,l,d)},l+=d,d=(c=(h=h>>1||1)+r-1&~(r-1))*(p=(u=u>>1||1)+n-1&~(n-1))*kt[e];return o},e}(jt),Vt=function(){function t(){}return t.use=function(e,i){var r=e.data,n=this;if(e.type===yt.TYPE.JSON&&r&&r.cacheID&&r.textures){for(var a=r.textures,s=void 0,o=void 0,l=0,h=a.length;l>>=1,T>>>=1}var S=y;for(E=0;E1||0!==a?E:w,levelHeight:d>1||0!==a?S:P,levelBuffer:new Uint8Array(e,M,T)},M+=T}I=(I+=C+4)%4!=0?I+4-I%4:I,T=(w=(E=E>>1||1)+m-1&~(m-1))*(P=(S=S>>1||1)+A-1&~(A-1))*g}return 0!==a?{uncompressed:_.map((function(t){var e=t[0].levelBuffer,i=!1;return a===et.QE.FLOAT?e=new Float32Array(t[0].levelBuffer.buffer,t[0].levelBuffer.byteOffset,t[0].levelBuffer.byteLength/4):a===et.QE.UNSIGNED_INT?(i=!0,e=new Uint32Array(t[0].levelBuffer.buffer,t[0].levelBuffer.byteOffset,t[0].levelBuffer.byteLength/4)):a===et.QE.INT&&(i=!0,e=new Int32Array(t[0].levelBuffer.buffer,t[0].levelBuffer.byteOffset,t[0].levelBuffer.byteLength/4)),{resource:new O.dZ(e,{width:t[0].levelWidth,height:t[0].levelHeight}),type:a,format:i?Ie(s):s}})),kvData:x}:{compressed:_.map((function(t){return new Wt(null,{format:o,width:l,height:h,levels:d,levelBuffers:t})})),kvData:x}}function Pe(t,e){for(var i=0;ie-n){console.error("KTXLoader: keyAndValueByteSize out of bounds");break}for(var l=0;l")>-1){var e=(new globalThis.DOMParser).parseFromString(t,"text/xml");return je.test(e)}return!1},t.parse=function(t){var e=(new globalThis.DOMParser).parseFromString(t,"text/xml");return je.parse(e)},t}(),Ve=[Xe,je,We];function Ye(t){for(var e=0;e=h-S*o){if(0===v)throw new Error("[BitmapFont] textureHeight "+h+"px is too small (fontFamily: '"+c.fontFamily+"', fontSize: "+c.fontSize+"px, char: '"+x+"')");--b,f=null,g=null,m=null,v=0,A=0,y=0}else if(y=Math.max(S+T.fontProperties.descent,y),w*o+A>=p){if(0===A)throw new Error("[BitmapFont] textureWidth "+l+"px is too small (fontFamily: '"+c.fontFamily+"', fontSize: "+c.fontSize+"px, char: '"+x+"')");--b,v+=y*o,v=Math.ceil(v),A=0,y=0}else{qe(f,g,T,A,v,o,c);var P=Ke(T.text);d.char.push({id:P,page:_.length-1,x:A/o,y:v/o,width:w,height:S,xoffset:0,yoffset:0,xadvance:Math.ceil(E-(c.dropShadow?c.dropShadowDistance:0)-(c.stroke?c.strokeThickness:0))}),A+=(w+2*s)*o,A=Math.ceil(A)}}if(!(null==r?void 0:r.skipKerning)){b=0;for(var I=u.length;b 0.99) {\r\n alpha = 1.0;\r\n }\r\n\r\n // NPM Textures, NPM outputs\r\n gl_FragColor = vec4(uColor.rgb, uColor.a * alpha);\r\n\r\n}\r\n",ti="// Mesh material default fragment\r\nattribute vec2 aVertexPosition;\r\nattribute vec2 aTextureCoord;\r\n\r\nuniform mat3 projectionMatrix;\r\nuniform mat3 translationMatrix;\r\nuniform mat3 uTextureMatrix;\r\n\r\nvarying vec2 vTextureCoord;\r\n\r\nvoid main(void)\r\n{\r\n gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\r\n\r\n vTextureCoord = (uTextureMatrix * vec3(aTextureCoord, 1.0)).xy;\r\n}\r\n",ei=[],ii=[],ri=[],ni=function(t){function e(i,r){void 0===r&&(r={});var n=t.call(this)||this;n._tint=16777215;var a=Object.assign({},e.styleDefaults,r),s=a.align,o=a.tint,l=a.maxWidth,h=a.letterSpacing,u=a.fontName,c=a.fontSize;if(!Je.available[u])throw new Error('Missing BitmapFont "'+u+'"');return n._activePagesMeshData=[],n._textWidth=0,n._textHeight=0,n._align=s,n._tint=o,n._font=void 0,n._fontName=u,n._fontSize=c,n.text=i,n._maxWidth=l,n._maxLineHeight=0,n._letterSpacing=h,n._anchor=new j.oA((function(){n.dirty=!0}),n,0,0),n._roundPixels=Lt.W0.ROUND_PIXELS,n.dirty=!0,n._resolution=Lt.W0.RESOLUTION,n._autoResolution=!0,n._textureCache={},n}return Ue(e,t),e.prototype.updateText=function(){for(var t,e=Je.available[this._fontName],i=this.fontSize,r=i/e.size,n=new j.bR,a=[],s=[],o=[],l=Qe(this._text.replace(/(?:\r\n|\r)/g,"\n")||" "),h=this._maxWidth*e.size/i,u="none"===e.distanceFieldType?ei:ii,c=null,p=0,d=0,f=0,g=-1,m=0,A=0,v=0,y=0,_=0;_0&&n.x>h&&(++A,(0,R.removeItems)(a,1+g-A,1+_-g),_=g,g=-1,s.push(m),o.push(a.length>0?a[a.length-1].prevSpaces:0),d=Math.max(d,m),f++,n.x=0,n.y+=e.lineHeight,c=null,y=0)}}else s.push(p),o.push(-1),d=Math.max(d,p),++f,++A,n.x=0,n.y+=e.lineHeight,c=null,y=0}var E=l[l.length-1];"\r"!==E&&"\n"!==E&&(/(?:\s)/.test(E)&&(p=m),s.push(p),d=Math.max(d,p),o.push(-1));var S=[];for(_=0;_<=f;_++){var w=0;"right"===this._align?w=d-s[_]:"center"===this._align?w=(d-s[_])/2:"justify"===this._align&&(w=o[_]<0?0:(d-s[_])/o[_]),S.push(w)}var P=a.length,I={},C=[],M=this._activePagesMeshData;u.push.apply(u,M);for(_=0;_6*G)||$.vertices.length<2*Ne.e.BATCHABLE_SIZE)$.vertices=new Float32Array(8*G),$.uvs=new Float32Array(8*G),$.indices=new Uint16Array(6*G);else for(var U=$.total,H=$.vertices,X=4*U*2;X=r&&(e=t-o-1),a+=l=l.replace("%value%",i[e].toString()),a+="\n"}return n=(n=n.replace("%blur%",a)).replace("%size%",t.toString())}var Ai=function(t){function e(e,i,r,n,a){void 0===i&&(i=8),void 0===r&&(r=4),void 0===n&&(n=Lt.W0.FILTER_RESOLUTION),void 0===a&&(a=5);var s=this,o=di(a,e),l=mi(a);return(s=t.call(this,o,l)||this).horizontal=e,s.resolution=n,s._quality=0,s.quality=r,s.blur=i,s}return ci(e,t),e.prototype.apply=function(t,e,i,r){if(i?this.horizontal?this.uniforms.strength=1/i.width*(i.width/e.width):this.uniforms.strength=1/i.height*(i.height/e.height):this.horizontal?this.uniforms.strength=1/t.renderer.width*(t.renderer.width/e.width):this.uniforms.strength=1/t.renderer.height*(t.renderer.height/e.height),this.uniforms.strength*=this.strength,this.uniforms.strength/=this.passes,1===this.passes)t.applyFilter(this,e,i,r);else{var n=t.getFilterTexture(),a=t.renderer,s=e,o=n;this.state.blend=!1,t.applyFilter(this,s,o,et.fr.CLEAR);for(var l=1;l>16&255)/255,0,0,0,0,0,(t>>8&255)/255,0,0,0,0,0,(255&t)/255,0,0,0,0,0,1,0];this._loadMatrix(i,e)},e.prototype.greyscale=function(t,e){var i=[t,t,t,0,0,t,t,t,0,0,t,t,t,0,0,0,0,0,1,0];this._loadMatrix(i,e)},e.prototype.blackAndWhite=function(t){var e=[.3,.6,.1,0,0,.3,.6,.1,0,0,.3,.6,.1,0,0,0,0,0,1,0];this._loadMatrix(e,t)},e.prototype.hue=function(t,e){t=(t||0)/180*Math.PI;var i=Math.cos(t),r=Math.sin(t),n=1/3,a=(0,Math.sqrt)(n),s=[i+(1-i)*n,n*(1-i)-a*r,n*(1-i)+a*r,0,0,n*(1-i)+a*r,i+n*(1-i),n*(1-i)-a*r,0,0,n*(1-i)-a*r,n*(1-i)+a*r,i+n*(1-i),0,0,0,0,0,1,0];this._loadMatrix(s,e)},e.prototype.contrast=function(t,e){var i=(t||0)+1,r=-.5*(i-1),n=[i,0,0,0,r,0,i,0,0,r,0,0,i,0,r,0,0,0,1,0];this._loadMatrix(n,e)},e.prototype.saturate=function(t,e){void 0===t&&(t=0);var i=2*t/3+1,r=-.5*(i-1),n=[i,r,r,0,0,r,i,r,0,0,r,r,i,0,0,0,0,0,1,0];this._loadMatrix(n,e)},e.prototype.desaturate=function(){this.saturate(-1)},e.prototype.negative=function(t){var e=[-1,0,0,1,0,0,-1,0,1,0,0,0,-1,1,0,0,0,0,1,0];this._loadMatrix(e,t)},e.prototype.sepia=function(t){var e=[.393,.7689999,.18899999,0,0,.349,.6859999,.16799999,0,0,.272,.5339999,.13099999,0,0,0,0,0,1,0];this._loadMatrix(e,t)},e.prototype.technicolor=function(t){var e=[1.9125277891456083,-.8545344976951645,-.09155508482755585,0,11.793603434377337,-.3087833385928097,1.7658908555458428,-.10601743074722245,0,-70.35205161461398,-.231103377548616,-.7501899197440212,1.847597816108189,0,30.950940869491138,0,0,0,1,0];this._loadMatrix(e,t)},e.prototype.polaroid=function(t){var e=[1.438,-.062,-.062,0,0,-.122,1.378,-.122,0,0,-.016,-.016,1.483,0,0,0,0,0,1,0];this._loadMatrix(e,t)},e.prototype.toBGR=function(t){var e=[0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,1,0];this._loadMatrix(e,t)},e.prototype.kodachrome=function(t){var e=[1.1285582396593525,-.3967382283601348,-.03992559172921793,0,63.72958762196502,-.16404339962244616,1.0835251566291304,-.05498805115633132,0,24.732407896706203,-.16786010706155763,-.5603416277695248,1.6014850761964943,0,35.62982807460946,0,0,0,1,0];this._loadMatrix(e,t)},e.prototype.browni=function(t){var e=[.5997023498159715,.34553243048391263,-.2708298674538042,0,47.43192855600873,-.037703249837783157,.8609577587992641,.15059552388459913,0,-36.96841498319127,.24113635128153335,-.07441037908422492,.44972182064877153,0,-7.562075277591283,0,0,0,1,0];this._loadMatrix(e,t)},e.prototype.vintage=function(t){var e=[.6279345635605994,.3202183420819367,-.03965408211312453,0,9.651285835294123,.02578397704808868,.6441188644374771,.03259127616149294,0,7.462829176470591,.0466055556782719,-.0851232987247891,.5241648018700465,0,5.159190588235296,0,0,0,1,0];this._loadMatrix(e,t)},e.prototype.colorTone=function(t,e,i,r,n){var a=((i=i||16770432)>>16&255)/255,s=(i>>8&255)/255,o=(255&i)/255,l=((r=r||3375104)>>16&255)/255,h=(r>>8&255)/255,u=(255&r)/255,c=[.3,.59,.11,0,0,a,s,o,t=t||.2,0,l,h,u,e=e||.15,0,a-l,s-h,o-u,0,0];this._loadMatrix(c,n)},e.prototype.night=function(t,e){var i=[-2*(t=t||.1),-t,0,0,0,-t,0,t,0,0,0,t,2*t,0,0,0,0,0,1,0];this._loadMatrix(i,e)},e.prototype.predator=function(t,e){var i=[11.224130630493164*t,-4.794486999511719*t,-2.8746118545532227*t,0*t,.40342438220977783*t,-3.6330697536468506*t,9.193157196044922*t,-2.951810836791992*t,0*t,-1.316135048866272*t,-3.2184197902679443*t,-4.2375030517578125*t,7.476448059082031*t,0*t,.8044459223747253*t,0,0,0,1,0];this._loadMatrix(i,e)},e.prototype.lsd=function(t){var e=[2,-.4,.5,0,0,-.5,2,-.4,0,0,-.4,-.5,3,0,0,0,0,0,1,0];this._loadMatrix(e,t)},e.prototype.reset=function(){var t=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0];this._loadMatrix(t,!1)},Object.defineProperty(e.prototype,"matrix",{get:function(){return this.uniforms.m},set:function(t){this.uniforms.m=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"alpha",{get:function(){return this.uniforms.uAlpha},set:function(t){this.uniforms.uAlpha=t},enumerable:!1,configurable:!0}),e}(O.dJ);xi.prototype.grayscale=xi.prototype.greyscale;var Ti=function(t,e){return Ti=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},Ti(t,e)};function Ei(t,e){function i(){this.constructor=t}Ti(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}var Si="varying vec2 vFilterCoord;\nvarying vec2 vTextureCoord;\n\nuniform vec2 scale;\nuniform mat2 rotation;\nuniform sampler2D uSampler;\nuniform sampler2D mapSampler;\n\nuniform highp vec4 inputSize;\nuniform vec4 inputClamp;\n\nvoid main(void)\n{\n vec4 map = texture2D(mapSampler, vFilterCoord);\n\n map -= 0.5;\n map.xy = scale * inputSize.zw * (rotation * map.xy);\n\n gl_FragColor = texture2D(uSampler, clamp(vec2(vTextureCoord.x + map.x, vTextureCoord.y + map.y), inputClamp.xy, inputClamp.zw));\n}\n",wi="attribute vec2 aVertexPosition;\n\nuniform mat3 projectionMatrix;\nuniform mat3 filterMatrix;\n\nvarying vec2 vTextureCoord;\nvarying vec2 vFilterCoord;\n\nuniform vec4 inputSize;\nuniform vec4 outputFrame;\n\nvec4 filterVertexPosition( void )\n{\n vec2 position = aVertexPosition * max(outputFrame.zw, vec2(0.)) + outputFrame.xy;\n\n return vec4((projectionMatrix * vec3(position, 1.0)).xy, 0.0, 1.0);\n}\n\nvec2 filterTextureCoord( void )\n{\n return aVertexPosition * (outputFrame.zw * inputSize.zw);\n}\n\nvoid main(void)\n{\n\tgl_Position = filterVertexPosition();\n\tvTextureCoord = filterTextureCoord();\n\tvFilterCoord = ( filterMatrix * vec3( vTextureCoord, 1.0) ).xy;\n}\n",Pi=function(t){function e(e,i){var r=this,n=new j.uq;return e.renderable=!1,(r=t.call(this,wi,Si,{mapSampler:e._texture,filterMatrix:n,scale:{x:1,y:1},rotation:new Float32Array([1,0,0,1])})||this).maskSprite=e,r.maskMatrix=n,null==i&&(i=20),r.scale=new j.bR(i,i),r}return Ei(e,t),e.prototype.apply=function(t,e,i,r){this.uniforms.filterMatrix=t.calculateSpriteMatrix(this.maskMatrix,this.maskSprite),this.uniforms.scale.x=this.scale.x,this.uniforms.scale.y=this.scale.y;var n=this.maskSprite.worldTransform,a=Math.sqrt(n.a*n.a+n.b*n.b),s=Math.sqrt(n.c*n.c+n.d*n.d);0!==a&&0!==s&&(this.uniforms.rotation[0]=n.a/a,this.uniforms.rotation[1]=n.b/a,this.uniforms.rotation[2]=n.c/s,this.uniforms.rotation[3]=n.d/s),t.applyFilter(this,e,i,r)},Object.defineProperty(e.prototype,"map",{get:function(){return this.uniforms.mapSampler},set:function(t){this.uniforms.mapSampler=t},enumerable:!1,configurable:!0}),e}(O.dJ),Ii=function(t,e){return Ii=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},Ii(t,e)};function Ri(t,e){function i(){this.constructor=t}Ii(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}var Ci="\nattribute vec2 aVertexPosition;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 v_rgbNW;\nvarying vec2 v_rgbNE;\nvarying vec2 v_rgbSW;\nvarying vec2 v_rgbSE;\nvarying vec2 v_rgbM;\n\nvarying vec2 vFragCoord;\n\nuniform vec4 inputSize;\nuniform vec4 outputFrame;\n\nvec4 filterVertexPosition( void )\n{\n vec2 position = aVertexPosition * max(outputFrame.zw, vec2(0.)) + outputFrame.xy;\n\n return vec4((projectionMatrix * vec3(position, 1.0)).xy, 0.0, 1.0);\n}\n\nvoid texcoords(vec2 fragCoord, vec2 inverseVP,\n out vec2 v_rgbNW, out vec2 v_rgbNE,\n out vec2 v_rgbSW, out vec2 v_rgbSE,\n out vec2 v_rgbM) {\n v_rgbNW = (fragCoord + vec2(-1.0, -1.0)) * inverseVP;\n v_rgbNE = (fragCoord + vec2(1.0, -1.0)) * inverseVP;\n v_rgbSW = (fragCoord + vec2(-1.0, 1.0)) * inverseVP;\n v_rgbSE = (fragCoord + vec2(1.0, 1.0)) * inverseVP;\n v_rgbM = vec2(fragCoord * inverseVP);\n}\n\nvoid main(void) {\n\n gl_Position = filterVertexPosition();\n\n vFragCoord = aVertexPosition * outputFrame.zw;\n\n texcoords(vFragCoord, inputSize.zw, v_rgbNW, v_rgbNE, v_rgbSW, v_rgbSE, v_rgbM);\n}\n",Oi='varying vec2 v_rgbNW;\nvarying vec2 v_rgbNE;\nvarying vec2 v_rgbSW;\nvarying vec2 v_rgbSE;\nvarying vec2 v_rgbM;\n\nvarying vec2 vFragCoord;\nuniform sampler2D uSampler;\nuniform highp vec4 inputSize;\n\n\n/**\n Basic FXAA implementation based on the code on geeks3d.com with the\n modification that the texture2DLod stuff was removed since it\'s\n unsupported by WebGL.\n\n --\n\n From:\n https://github.com/mitsuhiko/webgl-meincraft\n\n Copyright (c) 2011 by Armin Ronacher.\n\n Some rights reserved.\n\n Redistribution and use in source and binary forms, with or without\n modification, are permitted provided that the following conditions are\n met:\n\n * Redistributions of source code must retain the above copyright\n notice, this list of conditions and the following disclaimer.\n\n * Redistributions in binary form must reproduce the above\n copyright notice, this list of conditions and the following\n disclaimer in the documentation and/or other materials provided\n with the distribution.\n\n * The names of the contributors may not be used to endorse or\n promote products derived from this software without specific\n prior written permission.\n\n THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */\n\n#ifndef FXAA_REDUCE_MIN\n#define FXAA_REDUCE_MIN (1.0/ 128.0)\n#endif\n#ifndef FXAA_REDUCE_MUL\n#define FXAA_REDUCE_MUL (1.0 / 8.0)\n#endif\n#ifndef FXAA_SPAN_MAX\n#define FXAA_SPAN_MAX 8.0\n#endif\n\n//optimized version for mobile, where dependent\n//texture reads can be a bottleneck\nvec4 fxaa(sampler2D tex, vec2 fragCoord, vec2 inverseVP,\n vec2 v_rgbNW, vec2 v_rgbNE,\n vec2 v_rgbSW, vec2 v_rgbSE,\n vec2 v_rgbM) {\n vec4 color;\n vec3 rgbNW = texture2D(tex, v_rgbNW).xyz;\n vec3 rgbNE = texture2D(tex, v_rgbNE).xyz;\n vec3 rgbSW = texture2D(tex, v_rgbSW).xyz;\n vec3 rgbSE = texture2D(tex, v_rgbSE).xyz;\n vec4 texColor = texture2D(tex, v_rgbM);\n vec3 rgbM = texColor.xyz;\n vec3 luma = vec3(0.299, 0.587, 0.114);\n float lumaNW = dot(rgbNW, luma);\n float lumaNE = dot(rgbNE, luma);\n float lumaSW = dot(rgbSW, luma);\n float lumaSE = dot(rgbSE, luma);\n float lumaM = dot(rgbM, luma);\n float lumaMin = min(lumaM, min(min(lumaNW, lumaNE), min(lumaSW, lumaSE)));\n float lumaMax = max(lumaM, max(max(lumaNW, lumaNE), max(lumaSW, lumaSE)));\n\n mediump vec2 dir;\n dir.x = -((lumaNW + lumaNE) - (lumaSW + lumaSE));\n dir.y = ((lumaNW + lumaSW) - (lumaNE + lumaSE));\n\n float dirReduce = max((lumaNW + lumaNE + lumaSW + lumaSE) *\n (0.25 * FXAA_REDUCE_MUL), FXAA_REDUCE_MIN);\n\n float rcpDirMin = 1.0 / (min(abs(dir.x), abs(dir.y)) + dirReduce);\n dir = min(vec2(FXAA_SPAN_MAX, FXAA_SPAN_MAX),\n max(vec2(-FXAA_SPAN_MAX, -FXAA_SPAN_MAX),\n dir * rcpDirMin)) * inverseVP;\n\n vec3 rgbA = 0.5 * (\n texture2D(tex, fragCoord * inverseVP + dir * (1.0 / 3.0 - 0.5)).xyz +\n texture2D(tex, fragCoord * inverseVP + dir * (2.0 / 3.0 - 0.5)).xyz);\n vec3 rgbB = rgbA * 0.5 + 0.25 * (\n texture2D(tex, fragCoord * inverseVP + dir * -0.5).xyz +\n texture2D(tex, fragCoord * inverseVP + dir * 0.5).xyz);\n\n float lumaB = dot(rgbB, luma);\n if ((lumaB < lumaMin) || (lumaB > lumaMax))\n color = vec4(rgbA, texColor.a);\n else\n color = vec4(rgbB, texColor.a);\n return color;\n}\n\nvoid main() {\n\n vec4 color;\n\n color = fxaa(uSampler, vFragCoord, inputSize.zw, v_rgbNW, v_rgbNE, v_rgbSW, v_rgbSE, v_rgbM);\n\n gl_FragColor = color;\n}\n',Mi=function(t){function e(){return t.call(this,Ci,Oi)||this}return Ri(e,t),e}(O.dJ),Bi=function(t,e){return Bi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},Bi(t,e)};function Di(t,e){function i(){this.constructor=t}Bi(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}var Li="precision highp float;\n\nvarying vec2 vTextureCoord;\nvarying vec4 vColor;\n\nuniform float uNoise;\nuniform float uSeed;\nuniform sampler2D uSampler;\n\nfloat rand(vec2 co)\n{\n return fract(sin(dot(co.xy, vec2(12.9898, 78.233))) * 43758.5453);\n}\n\nvoid main()\n{\n vec4 color = texture2D(uSampler, vTextureCoord);\n float randomValue = rand(gl_FragCoord.xy * uSeed);\n float diff = (randomValue - 0.5) * uNoise;\n\n // Un-premultiply alpha before applying the color matrix. See issue #3539.\n if (color.a > 0.0) {\n color.rgb /= color.a;\n }\n\n color.r += diff;\n color.g += diff;\n color.b += diff;\n\n // Premultiply alpha again.\n color.rgb *= color.a;\n\n gl_FragColor = color;\n}\n",ki=function(t){function e(e,i){void 0===e&&(e=.5),void 0===i&&(i=Math.random());var r=t.call(this,O.Eo,Li,{uNoise:0,uSeed:0})||this;return r.noise=e,r.seed=i,r}return Di(e,t),Object.defineProperty(e.prototype,"noise",{get:function(){return this.uniforms.uNoise},set:function(t){this.uniforms.uNoise=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"seed",{get:function(){return this.uniforms.uSeed},set:function(t){this.uniforms.uSeed=t},enumerable:!1,configurable:!0}),e}(O.dJ),Ni=i(511),Fi=new j.uq;C.q9.prototype._cacheAsBitmap=!1,C.q9.prototype._cacheData=null,C.q9.prototype._cacheAsBitmapResolution=null,C.q9.prototype._cacheAsBitmapMultisample=et.he.NONE;var Gi=function(){function t(){this.textureCacheId=null,this.originalRender=null,this.originalRenderCanvas=null,this.originalCalculateBounds=null,this.originalGetLocalBounds=null,this.originalUpdateTransform=null,this.originalDestroy=null,this.originalMask=null,this.originalFilterArea=null,this.originalContainsPoint=null,this.sprite=null}return t}();Object.defineProperties(C.q9.prototype,{cacheAsBitmapResolution:{get:function(){return this._cacheAsBitmapResolution},set:function(t){t!==this._cacheAsBitmapResolution&&(this._cacheAsBitmapResolution=t,this.cacheAsBitmap&&(this.cacheAsBitmap=!1,this.cacheAsBitmap=!0))}},cacheAsBitmapMultisample:{get:function(){return this._cacheAsBitmapMultisample},set:function(t){t!==this._cacheAsBitmapMultisample&&(this._cacheAsBitmapMultisample=t,this.cacheAsBitmap&&(this.cacheAsBitmap=!1,this.cacheAsBitmap=!0))}},cacheAsBitmap:{get:function(){return this._cacheAsBitmap},set:function(t){var e;this._cacheAsBitmap!==t&&(this._cacheAsBitmap=t,t?(this._cacheData||(this._cacheData=new Gi),(e=this._cacheData).originalRender=this.render,e.originalRenderCanvas=this.renderCanvas,e.originalUpdateTransform=this.updateTransform,e.originalCalculateBounds=this.calculateBounds,e.originalGetLocalBounds=this.getLocalBounds,e.originalDestroy=this.destroy,e.originalContainsPoint=this.containsPoint,e.originalMask=this._mask,e.originalFilterArea=this.filterArea,this.render=this._renderCached,this.renderCanvas=this._renderCachedCanvas,this.destroy=this._cacheAsBitmapDestroy):((e=this._cacheData).sprite&&this._destroyCachedDisplayObject(),this.render=e.originalRender,this.renderCanvas=e.originalRenderCanvas,this.calculateBounds=e.originalCalculateBounds,this.getLocalBounds=e.originalGetLocalBounds,this.destroy=e.originalDestroy,this.updateTransform=e.originalUpdateTransform,this.containsPoint=e.originalContainsPoint,this._mask=e.originalMask,this.filterArea=e.originalFilterArea))}}}),C.q9.prototype._renderCached=function(t){!this.visible||this.worldAlpha<=0||!this.renderable||(this._initCachedDisplayObject(t),this._cacheData.sprite.transform._worldID=this.transform._worldID,this._cacheData.sprite.worldAlpha=this.worldAlpha,this._cacheData.sprite._render(t))},C.q9.prototype._initCachedDisplayObject=function(t){var e;if(!this._cacheData||!this._cacheData.sprite){var i=this.alpha;this.alpha=1,t.batch.flush();var r=this.getLocalBounds(null,!0).clone();if(this.filters&&this.filters.length){var n=this.filters[0].padding;r.pad(n)}r.ceil(Lt.W0.RESOLUTION);var a=t.renderTexture.current,s=t.renderTexture.sourceFrame.clone(),o=t.renderTexture.destinationFrame.clone(),l=t.projection.transform,h=O.Y7.create({width:r.width,height:r.height,resolution:this.cacheAsBitmapResolution||t.resolution,multisample:null!==(e=this.cacheAsBitmapMultisample)&&void 0!==e?e:t.multisample}),u="cacheAsBitmap_"+(0,R.uid)();this._cacheData.textureCacheId=u,O.t5.addToCache(h.baseTexture,u),O.gP.addToCache(h,u);var c=this.transform.localTransform.copyTo(Fi).invert().translate(-r.x,-r.y);this.render=this._cacheData.originalRender,t.render(this,{renderTexture:h,clear:!0,transform:c,skipUpdateTransform:!1}),t.framebuffer.blit(),t.projection.transform=l,t.renderTexture.bind(a,s,o),this.render=this._renderCached,this.updateTransform=this.displayObjectUpdateTransform,this.calculateBounds=this._calculateCachedBounds,this.getLocalBounds=this._getCachedLocalBounds,this._mask=null,this.filterArea=null,this.alpha=i;var p=new Ni.k(h);p.transform.worldTransform=this.transform.worldTransform,p.anchor.x=-r.x/r.width,p.anchor.y=-r.y/r.height,p.alpha=i,p._bounds=this._bounds,this._cacheData.sprite=p,this.transform._parentID=-1,this.parent?this.updateTransform():(this.enableTempParent(),this.updateTransform(),this.disableTempParent(null)),this.containsPoint=p.containsPoint.bind(p)}},C.q9.prototype._renderCachedCanvas=function(t){!this.visible||this.worldAlpha<=0||!this.renderable||(this._initCachedDisplayObjectCanvas(t),this._cacheData.sprite.worldAlpha=this.worldAlpha,this._cacheData.sprite._renderCanvas(t))},C.q9.prototype._initCachedDisplayObjectCanvas=function(t){if(!this._cacheData||!this._cacheData.sprite){var e=this.getLocalBounds(null,!0),i=this.alpha;this.alpha=1;var r=t.context,n=t._projTransform;e.ceil(Lt.W0.RESOLUTION);var a=O.Y7.create({width:e.width,height:e.height}),s="cacheAsBitmap_"+(0,R.uid)();this._cacheData.textureCacheId=s,O.t5.addToCache(a.baseTexture,s),O.gP.addToCache(a,s);var o=Fi;this.transform.localTransform.copyTo(o),o.invert(),o.tx-=e.x,o.ty-=e.y,this.renderCanvas=this._cacheData.originalRenderCanvas,t.render(this,{renderTexture:a,clear:!0,transform:o,skipUpdateTransform:!1}),t.context=r,t._projTransform=n,this.renderCanvas=this._renderCachedCanvas,this.updateTransform=this.displayObjectUpdateTransform,this.calculateBounds=this._calculateCachedBounds,this.getLocalBounds=this._getCachedLocalBounds,this._mask=null,this.filterArea=null,this.alpha=i;var l=new Ni.k(a);l.transform.worldTransform=this.transform.worldTransform,l.anchor.x=-e.x/e.width,l.anchor.y=-e.y/e.height,l.alpha=i,l._bounds=this._bounds,this._cacheData.sprite=l,this.transform._parentID=-1,this.parent?this.updateTransform():(this.parent=t._tempDisplayObjectParent,this.updateTransform(),this.parent=null),this.containsPoint=l.containsPoint.bind(l)}},C.q9.prototype._calculateCachedBounds=function(){this._bounds.clear(),this._cacheData.sprite.transform._worldID=this.transform._worldID,this._cacheData.sprite._calculateBounds(),this._bounds.updateID=this._boundsID},C.q9.prototype._getCachedLocalBounds=function(){return this._cacheData.sprite.getLocalBounds(null)},C.q9.prototype._destroyCachedDisplayObject=function(){this._cacheData.sprite._texture.destroy(!0),this._cacheData.sprite=null,O.t5.removeFromCache(this._cacheData.textureCacheId),O.gP.removeFromCache(this._cacheData.textureCacheId),this._cacheData.textureCacheId=null},C.q9.prototype._cacheAsBitmapDestroy=function(t){this.cacheAsBitmap=!1,this.destroy(t)},C.q9.prototype.name=null,C.mc.prototype.getChildByName=function(t,e){for(var i=0,r=this.children.length;i=this._durations[this.currentFrame];)r-=this._durations[this.currentFrame]*n,this._currentTime+=n;this._currentTime+=r/this._durations[this.currentFrame]}else this._currentTime+=e;this._currentTime<0&&!this.loop?(this.gotoAndStop(0),this.onComplete&&this.onComplete()):this._currentTime>=this._textures.length&&!this.loop?(this.gotoAndStop(this._textures.length-1),this.onComplete&&this.onComplete()):i!==this.currentFrame&&(this.loop&&this.onLoop&&(this.animationSpeed>0&&this.currentFramei)&&this.onLoop(),this.updateTexture())}},e.prototype.updateTexture=function(){var t=this.currentFrame;this._previousFrame!==t&&(this._previousFrame=t,this._texture=this._textures[t],this._textureID=-1,this._textureTrimmedID=-1,this._cachedTint=16777215,this.uvs=this._texture._uvs.uvsFloat32,this.updateAnchor&&this._anchor.copyFrom(this._texture.defaultAnchor),this.onFrameChange&&this.onFrameChange(this.currentFrame))},e.prototype.destroy=function(e){this.stop(),t.prototype.destroy.call(this,e),this.onComplete=null,this.onFrameChange=null,this.onLoop=null},e.fromFrames=function(t){for(var i=[],r=0;r{"use strict";i.r(e),i.d(e,{__addDisposableResource:()=>D,__assign:()=>a,__asyncDelegator:()=>S,__asyncGenerator:()=>E,__asyncValues:()=>w,__await:()=>T,__awaiter:()=>f,__classPrivateFieldGet:()=>O,__classPrivateFieldIn:()=>B,__classPrivateFieldSet:()=>M,__createBinding:()=>m,__decorate:()=>o,__disposeResources:()=>k,__esDecorate:()=>h,__exportStar:()=>A,__extends:()=>n,__generator:()=>g,__importDefault:()=>C,__importStar:()=>R,__makeTemplateObject:()=>P,__metadata:()=>d,__param:()=>l,__propKey:()=>c,__read:()=>y,__rest:()=>s,__runInitializers:()=>u,__setFunctionName:()=>p,__spread:()=>_,__spreadArray:()=>x,__spreadArrays:()=>b,__values:()=>v,default:()=>N});var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},r(t,e)};function n(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}var a=function(){return a=Object.assign||function(t){for(var e,i=1,r=arguments.length;i=0;o--)(n=t[o])&&(s=(a<3?n(s):a>3?n(e,i,s):n(e,i))||s);return a>3&&s&&Object.defineProperty(e,i,s),s}function l(t,e){return function(i,r){e(i,r,t)}}function h(t,e,i,r,n,a){function s(t){if(void 0!==t&&"function"!=typeof t)throw new TypeError("Function expected");return t}for(var o,l=r.kind,h="getter"===l?"get":"setter"===l?"set":"value",u=!e&&t?r.static?t:t.prototype:null,c=e||(u?Object.getOwnPropertyDescriptor(u,r.name):{}),p=!1,d=i.length-1;d>=0;d--){var f={};for(var g in r)f[g]="access"===g?{}:r[g];for(var g in r.access)f.access[g]=r.access[g];f.addInitializer=function(t){if(p)throw new TypeError("Cannot add initializers after decoration has completed");a.push(s(t||null))};var m=(0,i[d])("accessor"===l?{get:c.get,set:c.set}:c[h],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(c.get=o),(o=s(m.set))&&(c.set=o),(o=s(m.init))&&n.unshift(o)}else(o=s(m))&&("field"===l?n.unshift(o):c[h]=o)}u&&Object.defineProperty(u,r.name,c),p=!0}function u(t,e,i){for(var r=arguments.length>2,n=0;n0&&n[n.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!n||o[1]>n[0]&&o[1]=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function y(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,a=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=a.next()).done;)s.push(r.value)}catch(o){n={error:o}}finally{try{r&&!r.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return s}function _(){for(var t=[],e=0;e1||o(t,e)}))})}function o(t,e){try{l(n[t](e))}catch(i){c(a[0][3],i)}}function l(t){t.value instanceof T?Promise.resolve(t.value.v).then(h,u):c(a[0][2],t)}function h(t){o("next",t)}function u(t){o("throw",t)}function c(t,e){t(e),a.shift(),a.length&&o(a[0][0],a[0][1])}}function S(t){var e,i;return e={},r("next"),r("throw",(function(t){throw t})),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,n){e[r]=t[r]?function(e){return(i=!i)?{value:T(t[r](e)),done:!1}:n?n(e):e}:n}}function w(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,i=t[Symbol.asyncIterator];return i?i.call(t):(t="function"==typeof v?v(t):t[Symbol.iterator](),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(i){e[i]=t[i]&&function(e){return new Promise((function(r,a){n(r,a,(e=t[i](e)).done,e.value)}))}}function n(t,e,i,r){Promise.resolve(r).then((function(e){t({value:e,done:i})}),e)}}function P(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}var I=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e};function R(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)"default"!==i&&Object.prototype.hasOwnProperty.call(t,i)&&m(e,t,i);return I(e,t),e}function C(t){return t&&t.__esModule?t:{default:t}}function O(t,e,i,r){if("a"===i&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?r:"a"===i?r.call(t):r?r.value:e.get(t)}function M(t,e,i,r,n){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!n)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!n:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?n.call(t,i):n?n.value=i:e.set(t,i),i}function B(t,e){if(null===e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof t?e===t:t.has(e)}function D(t,e,i){if(null!=e){if("object"!=typeof e&&"function"!=typeof e)throw new TypeError("Object expected.");var r;if(i){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=e[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=e[Symbol.dispose]}if("function"!=typeof r)throw new TypeError("Object not disposable.");t.stack.push({value:e,dispose:r,async:i})}else i&&t.stack.push({async:!0});return e}var L="function"==typeof SuppressedError?SuppressedError:function(t,e,i){var r=new Error(i);return r.name="SuppressedError",r.error=t,r.suppressed=e,r};function k(t){function e(e){t.error=t.hasError?new L(e,t.error,"An error was suppressed during disposal."):e,t.hasError=!0}function i(){for(;t.stack.length;){var r=t.stack.pop();try{var n=r.dispose&&r.dispose.call(r.value);if(r.async)return Promise.resolve(n).then(i,(function(t){return e(t),i()}))}catch(a){e(a)}}if(t.hasError)throw t.error}return i()}const N={__extends:n,__assign:a,__rest:s,__decorate:o,__param:l,__metadata:d,__awaiter:f,__generator:g,__createBinding:m,__exportStar:A,__values:v,__read:y,__spread:_,__spreadArrays:b,__spreadArray:x,__await:T,__asyncGenerator:E,__asyncDelegator:S,__asyncValues:w,__makeTemplateObject:P,__importStar:R,__importDefault:C,__classPrivateFieldGet:O,__classPrivateFieldSet:M,__classPrivateFieldIn:B,__addDisposableResource:D,__disposeResources:k}}},n={};function a(t){var e=n[t];if(void 0!==e)return e.exports;var i=n[t]={id:t,loaded:!1,exports:{}};return r[t].call(i.exports,i,i.exports,a),i.loaded=!0,i.exports}a.m=r,a.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return a.d(e,{a:e}),e},e=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__,a.t=function(i,r){if(1&r&&(i=this(i)),8&r)return i;if("object"==typeof i&&i){if(4&r&&i.__esModule)return i;if(16&r&&"function"==typeof i.then)return i}var n=Object.create(null);a.r(n);var s={};t=t||[null,e({}),e([]),e(e)];for(var o=2&r&&i;"object"==typeof o&&!~t.indexOf(o);o=e(o))Object.getOwnPropertyNames(o).forEach((t=>s[t]=()=>i[t]));return s.default=()=>i,a.d(n,s),n},a.d=(t,e)=>{for(var i in e)a.o(e,i)&&!a.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},a.f={},a.e=t=>Promise.all(Object.keys(a.f).reduce(((e,i)=>(a.f[i](t,e),e)),[])),a.u=t=>"chunks/"+t+".js",a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),a.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i={},a.l=(t,e,r,n)=>{if(i[t])i[t].push(e);else{var s,o;if(void 0!==r)for(var l=document.getElementsByTagName("script"),h=0;h{s.onerror=s.onload=null,clearTimeout(p);var n=i[t];if(delete i[t],s.parentNode&&s.parentNode.removeChild(s),n&&n.forEach((t=>t(r))),e)return e(r)},p=setTimeout(c.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=c.bind(null,s.onerror),s.onload=c.bind(null,s.onload),o&&document.head.appendChild(s)}},a.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},a.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),(()=>{var t;a.g.importScripts&&(t=a.g.location+"");var e=a.g.document;if(!t&&e&&(e.currentScript&&(t=e.currentScript.src),!t)){var i=e.getElementsByTagName("script");if(i.length)for(var r=i.length-1;r>-1&&(!t||!/^http(s?):/.test(t));)t=i[r--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),a.p=t})(),(()=>{var t={23:0};a.f.j=(e,i)=>{var r=a.o(t,e)?t[e]:void 0;if(0!==r)if(r)i.push(r[2]);else{var n=new Promise(((i,n)=>r=t[e]=[i,n]));i.push(r[2]=n);var s=a.p+a.u(e),o=new Error,l=i=>{if(a.o(t,e)&&(0!==(r=t[e])&&(t[e]=void 0),r)){var n=i&&("load"===i.type?"missing":i.type),s=i&&i.target&&i.target.src;o.message="Loading chunk "+e+" failed.\n("+n+": "+s+")",o.name="ChunkLoadError",o.type=n,o.request=s,r[1](o)}};a.l(s,l,"chunk-"+e,e)}};var e=(e,i)=>{var r,n,[s,o,l]=i,h=0;if(s.some((e=>0!==t[e]))){for(r in o)a.o(o,r)&&(a.m[r]=o[r]);if(l)l(a)}for(e&&e(i);h